From 3bd3e644e8a941c8ffb3e68af46a678a98bd95ce Mon Sep 17 00:00:00 2001 From: Travis Sharp <94011425+msft-tsharp@users.noreply.github.com> Date: Mon, 11 Sep 2023 14:43:15 -0700 Subject: [PATCH 01/14] Initial Setup --- build.sh | 2 +- clean-repo.cmd | 1 + wrappers/rust/.gitignore | 14 +++++++ wrappers/rust/Cargo.toml | 13 ++++++ wrappers/rust/build.cmd | 12 ++++++ wrappers/rust/build.rs | 90 ++++++++++++++++++++++++++++++++++++++++ wrappers/rust/src/lib.rs | 0 7 files changed, 131 insertions(+), 1 deletion(-) create mode 100644 clean-repo.cmd create mode 100644 wrappers/rust/.gitignore create mode 100644 wrappers/rust/Cargo.toml create mode 100644 wrappers/rust/build.cmd create mode 100644 wrappers/rust/build.rs create mode 100644 wrappers/rust/src/lib.rs diff --git a/build.sh b/build.sh index 41628b5ba..817977d73 100755 --- a/build.sh +++ b/build.sh @@ -46,7 +46,7 @@ if [[ $1 == CUSTOM_BUILD_FLAGS* ]] || [[ $2 == CUSTOM_BUILD_FLAGS* ]] || [[ $3 = fi LINK_TYPE= -CMAKE_OPTS="${CMAKE_OPTS:--DBUILD_SHARED_LIBS=OFF}" +CMAKE_OPTS="${CMAKE_OPTS:-DBUILD_SHARED_LIBS=OFF}" while getopts "h?vl:D:" opt; do case "$opt" in h|\?) diff --git a/clean-repo.cmd b/clean-repo.cmd new file mode 100644 index 000000000..7b67987c2 --- /dev/null +++ b/clean-repo.cmd @@ -0,0 +1 @@ +git clean -xd -f \ No newline at end of file diff --git a/wrappers/rust/.gitignore b/wrappers/rust/.gitignore new file mode 100644 index 000000000..ada8be928 --- /dev/null +++ b/wrappers/rust/.gitignore @@ -0,0 +1,14 @@ +# Generated by Cargo +# will have compiled files and executables +debug/ +target/ + +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries +# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html +Cargo.lock + +# These are backup files generated by rustfmt +**/*.rs.bk + +# MSVC Windows builds of rustc generate these, which store debugging information +*.pdb \ No newline at end of file diff --git a/wrappers/rust/Cargo.toml b/wrappers/rust/Cargo.toml new file mode 100644 index 000000000..663996c26 --- /dev/null +++ b/wrappers/rust/Cargo.toml @@ -0,0 +1,13 @@ +[package] +name = "msft-client-telemetry" +version = "0.1.0" +edition = "2021" +publish = false +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] + +[dev-dependencies] + +[build-dependencies] +bindgen = "0.65.1" \ No newline at end of file diff --git a/wrappers/rust/build.cmd b/wrappers/rust/build.cmd new file mode 100644 index 000000000..a32527875 --- /dev/null +++ b/wrappers/rust/build.cmd @@ -0,0 +1,12 @@ +@echo off + +set VSTOOLS_VERSION=vs2019 +cd %~dp0 + +call ..\..\tools\vcvars.cmd + +REM ******************************************************************** +REM buildgen + rust +REM ******************************************************************** + +cargo build \ No newline at end of file diff --git a/wrappers/rust/build.rs b/wrappers/rust/build.rs new file mode 100644 index 000000000..f69290e92 --- /dev/null +++ b/wrappers/rust/build.rs @@ -0,0 +1,90 @@ +extern crate bindgen; + +use std::fmt::format; +use std::fs; +use std::env; +use std::path::PathBuf; + +use bindgen::CargoCallbacks; + +fn main() { + let rust_wrapper_path = env::current_dir().unwrap(); + let libdir_path = rust_wrapper_path + .join("..\\..\\lib") + .canonicalize() + .expect("cannot canonicalize lib path"); + + // This is the path to the `c` headers file. + let headers_path = libdir_path.join("include\\public"); + let headers_path_str = headers_path.to_str().expect("Path is not a valid string"); + let c_header_path = libdir_path.join("include\\public\\mat.h"); + let c_header_path_str = c_header_path.to_str().expect("Path is not a valid string"); + + // This is the path to the intermediate object file for our library. + let obj_path = libdir_path.join("mat.o"); + // This is the path to the static library file. + let lib_path = libdir_path.join("mat.a"); + + // Tell cargo to look for shared libraries in the specified directory + // println!("cargo:rustc-link-search={}", libdir_path.to_str().unwrap()); + + // Tell cargo to tell rustc to link our `hello` library. Cargo will + // automatically know it must look for a `libmat.a` file. + // println!("cargo:rustc-link-lib=mat"); + + // Tell cargo to invalidate the built crate whenever the header changes. + println!("cargo:rerun-if-changed={}", headers_path_str); + + // // Run `clang` to compile the `mat.c` file into a `mat.o` object file. + // // Unwrap if it is not possible to spawn the process. + // if !std::process::Command::new("clang") + // .arg("-c") + // .arg("-o") + // .arg(&obj_path) + // .arg(libdir_path.join("hello.c")) + // .output() + // .expect("could not spawn `clang`") + // .status + // .success() + // { + // // Panic if the command was not successful. + // panic!("could not compile object file"); + // } + + // // Run `ar` to generate the `libhello.a` file from the `hello.o` file. + // // Unwrap if it is not possible to spawn the process. + // if !std::process::Command::new("ar") + // .arg("rcs") + // .arg(lib_path) + // .arg(obj_path) + // .output() + // .expect("could not spawn `ar`") + // .status + // .success() + // { + // // Panic if the command was not successful. + // panic!("could not emit library file"); + // } + + // The bindgen::Builder is the main entry point + // to bindgen, and lets you build up options for + // the resulting bindings. + let bindings = bindgen::Builder::default() + // The input header we would like to generate + // bindings for. + .header(c_header_path_str) + .clang_arg(format!("-I{}", headers_path_str)) + // Tell cargo to invalidate the built crate whenever any of the + // included header files changed. + .parse_callbacks(Box::new(CargoCallbacks)) + // Finish the builder and generate the bindings. + .generate() + // Unwrap the Result and panic on failure. + .expect("Unable to generate bindings"); + + // Write the bindings to the $OUT_DIR/bindings.rs file. + let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()).join("bindings.rs"); + bindings + .write_to_file(out_path) + .expect("Couldn't write bindings!"); +} diff --git a/wrappers/rust/src/lib.rs b/wrappers/rust/src/lib.rs new file mode 100644 index 000000000..e69de29bb From 0e325000d153eb18fc78e6f0a215846a034053e2 Mon Sep 17 00:00:00 2001 From: Travis Sharp <94011425+msft-tsharp@users.noreply.github.com> Date: Wed, 13 Sep 2023 19:11:49 -0700 Subject: [PATCH 02/14] Initial proof-of-concept hacked together. --- wrappers/rust/Cargo.toml | 18 +- wrappers/rust/build.cmd | 12 - wrappers/rust/build.ps1 | 13 + wrappers/rust/deploy-dll.cmd | 13 + wrappers/rust/include/build-header.cmd | 1 + wrappers/rust/include/ctmacros.hpp | 130 + wrappers/rust/include/mat.h | 640 + wrappers/rust/include/mat.out.h | 115591 ++++++++++++++++ wrappers/rust/{build.rs => old/no_build.rs} | 43 +- wrappers/rust/old/telemetry.rs | 116381 +++++++++++++++++ wrappers/rust/src/lib.rs | 0 wrappers/rust/telemetry-sample/Cargo.toml | 11 + wrappers/rust/telemetry-sample/build.rs | 13 + wrappers/rust/telemetry-sample/src/main.rs | 119 + wrappers/rust/telemetry/Cargo.toml | 13 + wrappers/rust/telemetry/build.rs | 62 + wrappers/rust/telemetry/src/LoadLibrary.rs | 38 + wrappers/rust/telemetry/src/LogManager.rs | 84 + wrappers/rust/telemetry/src/lib.rs | 150 + 19 files changed, 233275 insertions(+), 57 deletions(-) delete mode 100644 wrappers/rust/build.cmd create mode 100644 wrappers/rust/build.ps1 create mode 100644 wrappers/rust/deploy-dll.cmd create mode 100644 wrappers/rust/include/build-header.cmd create mode 100644 wrappers/rust/include/ctmacros.hpp create mode 100644 wrappers/rust/include/mat.h create mode 100644 wrappers/rust/include/mat.out.h rename wrappers/rust/{build.rs => old/no_build.rs} (64%) create mode 100644 wrappers/rust/old/telemetry.rs delete mode 100644 wrappers/rust/src/lib.rs create mode 100644 wrappers/rust/telemetry-sample/Cargo.toml create mode 100644 wrappers/rust/telemetry-sample/build.rs create mode 100644 wrappers/rust/telemetry-sample/src/main.rs create mode 100644 wrappers/rust/telemetry/Cargo.toml create mode 100644 wrappers/rust/telemetry/build.rs create mode 100644 wrappers/rust/telemetry/src/LoadLibrary.rs create mode 100644 wrappers/rust/telemetry/src/LogManager.rs create mode 100644 wrappers/rust/telemetry/src/lib.rs diff --git a/wrappers/rust/Cargo.toml b/wrappers/rust/Cargo.toml index 663996c26..922deb265 100644 --- a/wrappers/rust/Cargo.toml +++ b/wrappers/rust/Cargo.toml @@ -1,13 +1,7 @@ -[package] -name = "msft-client-telemetry" -version = "0.1.0" -edition = "2021" -publish = false -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[workspace] +resolver = "2" -[dependencies] - -[dev-dependencies] - -[build-dependencies] -bindgen = "0.65.1" \ No newline at end of file +members = [ + "telemetry", + "telemetry-sample" +] \ No newline at end of file diff --git a/wrappers/rust/build.cmd b/wrappers/rust/build.cmd deleted file mode 100644 index a32527875..000000000 --- a/wrappers/rust/build.cmd +++ /dev/null @@ -1,12 +0,0 @@ -@echo off - -set VSTOOLS_VERSION=vs2019 -cd %~dp0 - -call ..\..\tools\vcvars.cmd - -REM ******************************************************************** -REM buildgen + rust -REM ******************************************************************** - -cargo build \ No newline at end of file diff --git a/wrappers/rust/build.ps1 b/wrappers/rust/build.ps1 new file mode 100644 index 000000000..e5f91e9eb --- /dev/null +++ b/wrappers/rust/build.ps1 @@ -0,0 +1,13 @@ +# @echo off + +# set VSTOOLS_VERSION=vs2019 +# cd %~dp0 + +# call ..\..\tools\vcvars.cmd +#![allow(non_upper_case_globals)] +#![allow(non_camel_case_types)] +#![allow(non_snake_case)] +#deploy-dll.cmd +#generate-bindings.cmd + +cargo run \ No newline at end of file diff --git a/wrappers/rust/deploy-dll.cmd b/wrappers/rust/deploy-dll.cmd new file mode 100644 index 000000000..30294fb08 --- /dev/null +++ b/wrappers/rust/deploy-dll.cmd @@ -0,0 +1,13 @@ +@echo off +set PROJECT_DIR=%~dp0 + +@mkdir %PROJECT_DIR%\include +copy %PROJECT_DIR%..\..\lib\include\public\mat.h %PROJECT_DIR%\include +copy %PROJECT_DIR%..\..\lib\include\public\Version.h %PROJECT_DIR%\include +copy %PROJECT_DIR%..\..\lib\include\public\ctmacros.hpp %PROJECT_DIR%\include + +@mkdir %PROJECT_DIR%\lib\%1\%2 +copy %PROJECT_DIR%..\..\Solutions\out\%1\%2\win32-dll\*.lib %PROJECT_DIR%\lib\%1\%2 +copy %PROJECT_DIR%..\..\Solutions\out\Release\x64\lib\Release\*.lib %PROJECT_DIR%\lib\%1\%2 + +exit /b 0 \ No newline at end of file diff --git a/wrappers/rust/include/build-header.cmd b/wrappers/rust/include/build-header.cmd new file mode 100644 index 000000000..af7636e35 --- /dev/null +++ b/wrappers/rust/include/build-header.cmd @@ -0,0 +1 @@ +clang -E mat.h -D HAVE_DYNAMIC_C_LIB > mat.out.h \ No newline at end of file diff --git a/wrappers/rust/include/ctmacros.hpp b/wrappers/rust/include/ctmacros.hpp new file mode 100644 index 000000000..42547e41d --- /dev/null +++ b/wrappers/rust/include/ctmacros.hpp @@ -0,0 +1,130 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +#ifndef CTMACROS_HPP +#define CTMACROS_HPP + +#ifdef HAVE_MAT_SHORT_NS +#define MAT_NS_BEGIN MAT +#define MAT_NS_END +#define PAL_NS_BEGIN PAL +#define PAL_NS_END +#else +#define MAT_NS_BEGIN Microsoft { namespace Applications { namespace Events +#define MAT_NS_END }} +#define MAT ::Microsoft::Applications::Events +#define PAL_NS_BEGIN Microsoft { namespace Applications { namespace Events { namespace PlatformAbstraction +#define PAL_NS_END }}} +#define PAL ::Microsoft::Applications::Events::PlatformAbstraction +#endif + +#define MAT_v1 ::Microsoft::Applications::Telemetry + +#ifdef _WIN32 // Windows platforms + +#ifndef MATSDK_SPEC // we use __cdecl by default +#define MATSDK_SPEC __cdecl +#define MATSDK_LIBABI_CDECL __cdecl +# if defined(MATSDK_SHARED_LIB) +# define MATSDK_LIBABI __declspec(dllexport) +# elif defined(MATSDK_STATIC_LIB) +# define MATSDK_LIBABI +# else // Header file included by client +# ifndef MATSDK_LIBABI +# define MATSDK_LIBABI +# endif +# endif +#endif + +#else // Non-windows platforms + +#ifndef MATSDK_SPEC +#define MATSDK_SPEC +#endif + +#ifndef MATSDK_LIBABI_CDECL +#define MATSDK_LIBABI_CDECL +#endif + +#ifndef MATSDK_LIBABI +#define MATSDK_LIBABI +#endif + +// TODO: [MG] - ideally we'd like to use __attribute__((unused)) with gcc/clang +#ifndef UNREFERENCED_PARAMETER +#define UNREFERENCED_PARAMETER(...) +#endif + +#define OACR_USE_PTR(...) + +#ifndef _Out_writes_bytes_ +#define _Out_writes_bytes_(...) +#endif + +#endif + +#ifdef MATSDK_UNUSED +#elif defined(__GNUC__) || defined(__clang__) +# define MATSDK_UNUSED(x) (x) /* __attribute__((unused)) */ +#elif defined(__LCLINT__) +# define MATSDK_UNUSED(x) /*@unused@*/ x +#elif defined(__cplusplus) +# define MATSDK_UNUSED(x) +#else +# define MATSDK_UNUSED(x) x +#endif + +#define STRINGIZE_DETAIL(x) #x +#define STRINGIZE(x) STRINGIZE_DETAIL(x) +#define STRINGIFY(x) #x +#define TOKENPASTE(x, y) x ## y +#define TOKENPASTE2(x, y) TOKENPASTE(x, y) + +// Macro for mutex issues debugging. Supports both std::mutex and std::recursive_mutex +#define LOCKGUARD(macro_mutex) LOG_DEBUG("LOCKGUARD lockin at %s:%d", __FILE__, __LINE__); std::lock_guard TOKENPASTE2(__guard_, __LINE__) (macro_mutex); LOG_DEBUG("LOCKGUARD locked at %s:%d", __FILE__, __LINE__); + +#if defined(_WIN32) || defined(_WIN64) +#ifdef _WIN64 +#define ARCH_64BIT +#else +#define ARCH_32BIT +#endif +#endif + +#if __GNUC__ +#if defined(__x86_64__) || defined(__ppc64__) +#define ARCH_64BIT +#else +#define ARCH_32BIT +#endif +#endif + +/* Exceptions support is optional */ +#if (__cpp_exceptions) || defined(__EXCEPTIONS) +#define HAVE_EXCEPTIONS 1 +#else +#define HAVE_EXCEPTIONS 0 +#endif + +// allow to disable exceptions +#if (HAVE_EXCEPTIONS) +# define MATSDK_TRY try +# define MATSDK_CATCH catch +# define MATSDK_THROW throw +#else +# define MATSDK_TRY if (true) +# define MATSDK_CATCH(...) if (false) +# define MATSDK_THROW(...) std::abort() +#endif + +#if defined(__arm__) || defined(_M_ARM) || defined(_M_ARMT) +/* TODO: add support for 64-bit aarch64 */ +#define ARCH_ARM +#endif + +#define EVTSDK_LIBABI MATSDK_LIBABI +#define EVTSDK_LIBABI_CDECL MATSDK_LIBABI_CDECL +#define EVTSDK_SPEC MATSDK_SPEC + +#endif diff --git a/wrappers/rust/include/mat.h b/wrappers/rust/include/mat.h new file mode 100644 index 000000000..3ad8d36f7 --- /dev/null +++ b/wrappers/rust/include/mat.h @@ -0,0 +1,640 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 + */ +#ifndef TELEMETRY_EVENTS_H +#define TELEMETRY_EVENTS_H + +/* API semver $MAJOR.$MINOR.$PATCH must be updated with every $MAJOR or $MINOR change. + * For version handshake check there is no mandatory requirement to update the $PATCH level. + * Ref. https://semver.org/ for Semantic Versioning documentation. + */ +#define TELEMETRY_EVENTS_VERSION "3.1.0" + +#include "ctmacros.hpp" + +#ifdef _WIN32 +#include +#endif + +#if (_MSC_VER == 1500) || (_MSC_VER == 1600) +/* Visual Studio 2010 */ +typedef __int64 int64_t; +typedef unsigned __int64 uint64_t; +typedef __int32 int32_t; +typedef unsigned __int32 uint32_t; +typedef __int16 int16_t; +typedef unsigned __int16 uint16_t; +typedef __int8 int8_t; +typedef unsigned __int8 uint8_t; +typedef int bool; +#define inline +#else +/* Other compilers with C11 support */ +#include +#include +#endif + +#ifndef EVT_ARRAY_SIZE +#define EVT_ARRAY_SIZE(a) \ + ((sizeof(a) / sizeof(*(a))) / \ + (unsigned)(!(sizeof(a) % sizeof(*(a))))) +#endif + +#ifdef __cplusplus +extern "C" { +#endif + + typedef enum evt_call_t + { + EVT_OP_LOAD = 0x00000001, + EVT_OP_UNLOAD = 0x00000002, + EVT_OP_OPEN = 0x00000003, + EVT_OP_CLOSE = 0x00000004, + EVT_OP_CONFIG = 0x00000005, + EVT_OP_LOG = 0x00000006, + EVT_OP_PAUSE = 0x00000007, + EVT_OP_RESUME = 0x00000008, + EVT_OP_UPLOAD = 0x00000009, + EVT_OP_FLUSH = 0x0000000A, + EVT_OP_VERSION = 0x0000000B, + EVT_OP_OPEN_WITH_PARAMS = 0x0000000C, + EVT_OP_FLUSHANDTEARDOWN = 0x0000000D, + EVT_OP_MAX = EVT_OP_FLUSHANDTEARDOWN + 1, + } evt_call_t; + + typedef enum evt_prop_t + { + /* Basic types */ + TYPE_STRING, + TYPE_INT64, + TYPE_DOUBLE, + TYPE_TIME, + TYPE_BOOLEAN, + TYPE_GUID, + /* Arrays of basic types */ + TYPE_STRING_ARRAY, + TYPE_INT64_ARRAY, + TYPE_DOUBLE_ARRAY, + TYPE_TIME_ARRAY, + TYPE_BOOL_ARRAY, + TYPE_GUID_ARRAY, + /* NULL-type */ + TYPE_NULL + } evt_prop_t; + + typedef struct evt_guid_t + { + /** + * + * Specifies the first eight hexadecimal digits of the GUID. + * + */ + uint32_t Data1; + + /* + * Specifies the first group of four hexadecimal digits. + * + */ + uint16_t Data2; + + /** + * + * Specifies the second group of four hexadecimal digits. + * + */ + uint16_t Data3; + + /** + * An array of eight bytes. + * The first two bytes contain the third group of four hexadecimal digits. + * The remaining six bytes contain the final 12 hexadecimal digits. + * + */ + uint8_t Data4[8]; + } evt_guid_t; + + typedef int64_t evt_handle_t; + typedef int32_t evt_status_t; + typedef struct evt_event evt_event; + + typedef struct evt_context_t + { + evt_call_t call; /* In */ + evt_handle_t handle; /* In / Out */ + void* data; /* In / Out */ + evt_status_t result; /* Out */ + uint32_t size; /* In / Out */ + } evt_context_t; + + /** + * + * Identifies the type of input parameter to 'evt_open_with_params'. New parameter types can be added without + * breaking backwards compatibility. + * + */ + typedef enum evt_open_param_type_t + { + OPEN_PARAM_TYPE_HTTP_HANDLER_SEND = 0, + OPEN_PARAM_TYPE_HTTP_HANDLER_CANCEL = 1, + OPEN_PARAM_TYPE_TASK_DISPATCHER_QUEUE = 2, + OPEN_PARAM_TYPE_TASK_DISPATCHER_CANCEL = 3, + OPEN_PARAM_TYPE_TASK_DISPATCHER_JOIN = 4, + } evt_open_param_type_t; + + /** + * + * Represents a single input parameter to 'evt_open_with_params' + * + */ + typedef struct evt_open_param_t + { + evt_open_param_type_t type; + void* data; + } evt_open_param_t; + + /** + * + * Wraps logger configuration string and all input parameters to 'evt_open_with_params' + * + */ + typedef struct evt_open_with_params_data_t + { + const char* config; + const evt_open_param_t* params; + int32_t paramsCount; + } evt_open_with_params_data_t; + + typedef union evt_prop_v + { + /* Basic types */ + uint64_t as_uint64; + const char* as_string; + int64_t as_int64; + double as_double; + bool as_bool; + evt_guid_t* as_guid; + uint64_t as_time; + /* Array types are nullptr-terminated array of pointers */ + char** as_arr_string; + int64_t** as_arr_int64; + bool** as_arr_bool; + double** as_arr_double; + evt_guid_t** as_arr_guid; + uint64_t** as_arr_time; + } evt_prop_v; + + typedef struct evt_prop + { + const char* name; + evt_prop_t type; + evt_prop_v value; + uint32_t piiKind; + } evt_prop; + + /** + * + * Identifies HTTP request method type + * + */ + typedef enum http_request_type_t + { + HTTP_REQUEST_TYPE_GET = 0, + HTTP_REQUEST_TYPE_POST = 1, + } http_request_type_t; + + /** + * + * Identifies whether an HTTP operation has succeeded or failed, including general failure type + * + */ + typedef enum http_result_t + { + HTTP_RESULT_OK = 0, + HTTP_RESULT_CANCELLED = 1, + HTTP_RESULT_LOCAL_FAILURE = 2, + HTTP_RESULT_NETWORK_FAILURE = 3, + } http_result_t; + + /** + * + * Represents a single HTTP request or response header (key/value pair) + * + */ + typedef struct http_header_t + { + const char* name; + const char* value; + } http_header_t; + + /** + * + * Represents a single HTTP request. Used by optional app-provided HTTP handler callback functions. + * + */ + typedef struct http_request_t + { + const char* id; + http_request_type_t type; + const char* url; + const uint8_t* body; + int32_t bodySize; + const http_header_t* headers; + int32_t headersCount; + } http_request_t; + + /** + * + * Represents a single HTTP response. Used by optional app-provided HTTP handler callback functions. + * + */ + typedef struct http_response_t + { + int32_t statusCode; + const uint8_t* body; + int32_t bodySize; + const http_header_t* headers; + int32_t headersCount; + } http_response_t; + + /* HTTP callback function signatures */ + typedef void (EVTSDK_LIBABI_CDECL *http_complete_fn_t)(const char* /*requestId*/, http_result_t, http_response_t*); + typedef void (EVTSDK_LIBABI_CDECL *http_send_fn_t)(http_request_t*, http_complete_fn_t); + typedef void (EVTSDK_LIBABI_CDECL *http_cancel_fn_t)(const char* /*requestId*/); + + /** + * + * Represents a single asynchronous worker thread item. Used by optional app-provided worker thread callback functions. + * + */ + typedef struct evt_task_t + { + const char* id; + int64_t delayMs; + const char* typeName; + } evt_task_t; + + /* Async worker thread callback function signatures */ + typedef void (EVTSDK_LIBABI_CDECL *task_callback_fn_t)(const char* /*taskId*/); + typedef void(EVTSDK_LIBABI_CDECL* task_dispatcher_queue_fn_t)(evt_task_t*, task_callback_fn_t); + typedef bool (EVTSDK_LIBABI_CDECL *task_dispatcher_cancel_fn_t)(const char* /*taskId*/); + typedef void (EVTSDK_LIBABI_CDECL *task_dispatcher_join_fn_t)(); + +#if (_MSC_VER == 1500) || (_MSC_VER == 1600) || (defined(__cplusplus) && !defined(__GNUG__)) + /* Code to support C89 compiler, including VS2010 */ +#define TELEMETRY_EVENT(...) { __VA_ARGS__ , { NULL, TYPE_NULL } } +/* With C89-style initializers, structure members must be initialized in the order declared. + ...and (!) - only the first member of a union can be initialized. + Which means that we have to do the hack of C-style casting from value to char* ... + */ + +#if defined(__cplusplus) + /* Helper functions needed while compiling in C++ module */ + static inline evt_prop_v _DBL2(evt_prop_v pv, double val) + { + pv.as_double = val; + return pv; + }; +#define _DBL(key, val) { key, TYPE_DOUBLE, _DBL2({ NULL }, val) } +#define PII_DBL(key, val, kind) { key, TYPE_DOUBLE, _DBL2({ NULL }, val), kind } + +/* + static inline evt_prop_v _TIME2(evt_prop_v pv, uint64_t val) + { + pv.as_time = val; + return pv; + } +#define _TIME(key, val) { key, TYPE_TIME, _TIME2({ NULL }, val) } +#define PII_TIME(key, val, kind) { key, TYPE_TIME, _TIME2({ NULL }, val), kind } +*/ +#else +#pragma message ("C89 compiler does not support passing DOUBLE and TIME values via C API") +#endif + +#define _STR(key, val) { key, TYPE_STRING, { (uint64_t)((char *)val) } } +#define _INT(key, val) { key, TYPE_INT64, { (uint64_t)val } } +#define _BOOL(key, val) { key, TYPE_BOOLEAN, { (uint64_t)val } } +#define _GUID(key, val) { key, TYPE_GUID, { (uint64_t)((char *)val) } } +#define _TIME(key, val) { key, TYPE_TIME, { (uint64_t)val } } + +#define PII_STR(key, val, kind) { key, TYPE_STRING, { (uint64_t)((char *)val) }, kind } +#define PII_INT(key, val, kind) { key, TYPE_INT64, { (uint64_t)val }, kind } +#define PII_BOOL(key, val, kind) { key, TYPE_BOOLEAN, { (uint64_t)val }, kind } +#define PII_GUID(key, val, kind) { key, TYPE_GUID, { (uint64_t)((char *)val) }, kind } +#define PII_TIME(key, val, kind) { key, TYPE_TIME, { (uint64_t)val }, kind } + +#else + /* Code to support any modern C99 compiler */ +#define TELEMETRY_EVENT(...) { __VA_ARGS__ , { .name = NULL, .type = TYPE_NULL, .value = { .as_int64 = 0 }, .piiKind = 0 } } + +#define _STR(key, val) { .name = key, .type = TYPE_STRING, .value = { .as_string = val }, .piiKind = 0 } +#define _INT(key, val) { .name = key, .type = TYPE_INT64, .value = { .as_int64 = val }, .piiKind = 0 } +#define _DBL(key, val) { .name = key, .type = TYPE_DOUBLE, .value = { .as_double = val }, .piiKind = 0 } +#define _BOOL(key, val) { .name = key, .type = TYPE_BOOLEAN, .value = { .as_bool = val }, .piiKind = 0 } +#define _GUID(key, val) { .name = key, .type = TYPE_GUID, .value = { .as_string = val }, .piiKind = 0 } +#define _TIME(key, val) { .name = key, .type = TYPE_TIME, .value = { .as_time = val }, .piiKind = 0 } + +#define PII_STR(key, val, kind) { .name = key, .type = TYPE_STRING, .value = { .as_string = val }, .piiKind = kind } +#define PII_INT(key, val, kind) { .name = key, .type = TYPE_INT64, .value = { .as_int64 = val }, .piiKind = kind } +#define PII_DBL(key, val, kind) { .name = key, .type = TYPE_DOUBLE, .value = { .as_double = val }, .piiKind = kind } +#define PII_BOOL(key, val, kind) { .name = key, .type = TYPE_BOOLEAN, .value = { .as_bool = val }, .piiKind = kind } +#define PII_GUID(key, val, kind) { .name = key, .type = TYPE_GUID, .value = { .as_string = val }, .piiKind = kind } +#define PII_TIME(key, val, kind) { .name = key, .type = TYPE_TIME, .value = { .as_time = val }, .piiKind = kind } + +#endif + + typedef evt_status_t(EVTSDK_LIBABI_CDECL *evt_app_call_t)(evt_context_t *); + +#ifdef HAVE_DYNAMIC_C_LIB +#define evt_api_call_default NULL +#else + EVTSDK_LIBABI evt_status_t EVTSDK_LIBABI_CDECL evt_api_call_default(evt_context_t* ctx); +#endif + +#ifdef _MSC_VER + /* User of the library may delay-load the invocation of __impl_evt_api_call to assign their own implementation */ + __declspec(selectany) evt_app_call_t evt_api_call = evt_api_call_default; +#else + /* Implementation of evt_api_call can be provided by the executable module that includes this header */ + __attribute__((weak)) evt_app_call_t evt_api_call = evt_api_call_default; +#endif + + /** + * + * Load alternate implementation of SDK Client Telemetry library at runtime. + * + * Library handle. + * Status code. + */ + static inline evt_status_t evt_load(evt_handle_t handle) + { +#ifdef _WIN32 + /* This code accepts a handle of a library loaded in customer's code */ + evt_app_call_t impl = (evt_app_call_t)GetProcAddress((HMODULE)handle, "evt_api_call_default"); + if (impl != NULL) + { + evt_api_call = impl; + return 0; + } + // Unable to load alternate implementation + return -1; +#else + /* TODO: + * - provide implementation for Linux and Mac + * - consider accepting a library path rather than a library handle for dlopen + */ + evt_context_t ctx; + ctx.call = EVT_OP_LOAD; + ctx.handle = handle; + return evt_api_call(&ctx); +#endif + } + + /** + * + * Unloads SDK instance loaded with evt_load + * + * SDK instance handle. + * + * Status code. + * + */ + static inline evt_status_t evt_unload(evt_handle_t handle) + { + evt_context_t ctx; + ctx.call = EVT_OP_UNLOAD; + ctx.handle = handle; + return evt_api_call(&ctx); + } + + /** + * + * Create or open existing SDK instance. + * + * SDK configuration. + * SDK instance handle. + */ + static inline evt_handle_t evt_open(const char* config) + { + evt_context_t ctx; + ctx.call = EVT_OP_OPEN; + ctx.data = (void *)config; + evt_api_call(&ctx); + return ctx.handle; + } + + /** + * + * Create or open existing SDK instance. + * + * SDK configuration. + * Optional initialization parameters. + * Number of initialization parameters. + * SDK instance handle. + */ + static inline evt_handle_t evt_open_with_params( + const char* config, + evt_open_param_t* params, + int32_t paramsCount) + { + evt_open_with_params_data_t data; + evt_context_t ctx; + + data.config = config; + data.params = params; + data.paramsCount = paramsCount; + + ctx.call = EVT_OP_OPEN_WITH_PARAMS; + ctx.data = (void *)(&data); + evt_api_call(&ctx); + return ctx.handle; + } + + /** + * + * Destroy or close SDK instance by handle + * + * SDK instance handle. + * Status code. + */ + static inline evt_status_t evt_close(evt_handle_t handle) + { + evt_context_t ctx; + ctx.call = EVT_OP_CLOSE; + ctx.handle = handle; + return evt_api_call(&ctx); + } + + /** + * + * Configure SDK instance using configuration provided. + * + * SDK handle. + * The configuration. + * + */ + static inline evt_status_t evt_configure(evt_handle_t handle, const char* config) + { + evt_context_t ctx; + ctx.call = EVT_OP_CONFIG; + ctx.handle = handle; + ctx.data = (void *)config; + return evt_api_call(&ctx); + } + + /** + * + * Logs a telemetry event (security-enhanced _s function) + * + * SDK handle. + * Number of event properties in array. + * Event properties array. + * + */ + static inline evt_status_t evt_log_s(evt_handle_t handle, uint32_t size, evt_prop* evt) + { + evt_context_t ctx; + ctx.call = EVT_OP_LOG; + ctx.handle = handle; + ctx.data = (void *)evt; + ctx.size = size; + return evt_api_call(&ctx); + } + + /** + * + * Logs a telemetry event. + * Last item in evt_prop array must be { .name = NULL, .type = TYPE_NULL } + * + * SDK handle. + * Number of event properties in array. + * Event properties array. + * + */ + static inline evt_status_t evt_log(evt_handle_t handle, evt_prop* evt) + { + evt_context_t ctx; + ctx.call = EVT_OP_LOG; + ctx.handle = handle; + ctx.data = (void *)evt; + ctx.size = 0; + return evt_api_call(&ctx); + } + + /* This macro automagically calculates the array size and passes it down to evt_log_s. + * Developers don't have to calculate the number of event properties passed down to + *'Log Event' API call utilizing the concept of Secure Template Overloads: + * https://docs.microsoft.com/en-us/cpp/c-runtime-library/secure-template-overloads + */ +#if defined(_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES) || defined(_CRT_SECURE_LOG_S) +#if _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES || defined(_CRT_SECURE_LOG_S) +#define evt_log(handle, evt) evt_log_s(handle, EVT_ARRAY_SIZE(evt), evt) +#endif +#endif + + /** + * + * Pauses transmission. In that mode events stay in ram or saved to disk, not sent. + * + * SDK handle. + * Status code. + */ + static inline evt_status_t evt_pause(evt_handle_t handle) + { + evt_context_t ctx; + ctx.call = EVT_OP_PAUSE; + ctx.handle = handle; + return evt_api_call(&ctx); + } + + /** + * + * Resumes transmission. Pending telemetry events should be attempted to be sent. + * + * SDK handle. + * Status code. + */ + static inline evt_status_t evt_resume(evt_handle_t handle) + { + evt_context_t ctx; + ctx.call = EVT_OP_RESUME; + ctx.handle = handle; + return evt_api_call(&ctx); + } + + /** + * Provide a hint to telemetry system to attempt force-upload of events + * without waiting for the next batch timer interval. This API does not + * guarantee the upload. + * + * SDK handle. + * Status code. + */ + static inline evt_status_t evt_upload(evt_handle_t handle) + { + evt_context_t ctx; + ctx.call = EVT_OP_UPLOAD; + ctx.handle = handle; + return evt_api_call(&ctx); + } + + /** + * Flush any pending telemetry events in memory to disk, + * attempt upload of events if tear down interval is configured, + * and eventually tear down the telemetry logging system. + * + * SDK handle. + * Status code. + */ + static inline evt_status_t evt_flushAndTeardown(evt_handle_t handle) + { + evt_context_t ctx; + ctx.call = EVT_OP_FLUSHANDTEARDOWN; + ctx.handle = handle; + return evt_api_call(&ctx); + } + + /** + * Save pending telemetry events to offline storage on disk. + * + * SDK handle. + * Status code. + */ + static inline evt_status_t evt_flush(evt_handle_t handle) + { + evt_context_t ctx; + ctx.call = EVT_OP_FLUSH; + ctx.handle = handle; + return evt_api_call(&ctx); + } + + /** + * Pass down SDK header version to SDK library. Needed for late binding version checking. + * This method provides means of a handshake between library header and a library impl. + * It is up to app dev to verify the value returned, making a decision whether some SDK + * features are implemented/supported by particular SDK version or not. + * + * SDK header semver. + * SDK library semver + */ + static inline const char * evt_version() + { + static const char * libSemver = TELEMETRY_EVENTS_VERSION; + evt_context_t ctx; + ctx.call = EVT_OP_VERSION; + ctx.data = (void*)libSemver; + evt_api_call(&ctx); + return (const char *)(ctx.data); + } + + /* New API calls to be added using evt_api_call(&ctx) for backwards-forward / ABI compat */ + +#ifdef __cplusplus +} +#endif + +#ifdef __cplusplus +#include "CAPIClient.hpp" +#endif + +#endif diff --git a/wrappers/rust/include/mat.out.h b/wrappers/rust/include/mat.out.h new file mode 100644 index 000000000..cef1c5039 --- /dev/null +++ b/wrappers/rust/include/mat.out.h @@ -0,0 +1,115591 @@ +# 1 "mat.h" +# 1 "" 1 +# 1 "" 3 +# 358 "" 3 +# 1 "" 1 +# 1 "" 2 +# 1 "mat.h" 2 +# 14 "mat.h" +# 1 "./ctmacros.hpp" 1 +# 15 "mat.h" 2 + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 1 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winapifamily.h" 1 3 +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winapifamily.h" 3 +#pragma warning(push) +#pragma warning(disable: 4001) + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winpackagefamily.h" 1 3 +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winpackagefamily.h" 3 +#pragma warning(push) +#pragma warning(disable: 4001) +# 87 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winpackagefamily.h" 3 +#pragma warning(pop) +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winapifamily.h" 2 3 +# 247 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winapifamily.h" 3 +#pragma warning(pop) +# 2 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\sdkddkver.h" 1 3 +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\sdkddkver.h" 3 +#pragma warning(push) +#pragma warning(disable: 4668) + +#pragma warning(disable: 4001) +# 309 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\sdkddkver.h" 3 +#pragma warning(pop) +# 23 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 152 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 3 +#pragma warning(disable: 4116) + + + + + + + +#pragma warning(disable: 4514) + +#pragma warning(disable: 4103) + + +#pragma warning(push) + +#pragma warning(disable: 4001) +#pragma warning(disable: 4201) +#pragma warning(disable: 4214) + +# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\excpt.h" 1 3 +# 12 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\excpt.h" 3 +# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 1 3 +# 57 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 3 +# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\sal.h" 1 3 +# 2974 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\sal.h" 3 +# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\concurrencysal.h" 1 3 +# 2975 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\sal.h" 2 3 +# 58 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 2 3 +# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\vadefs.h" 1 3 +# 18 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\vadefs.h" 3 +# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vadefs.h" 1 3 +# 15 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vadefs.h" 3 +#pragma pack(push, 8) +# 47 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vadefs.h" 3 +#pragma warning(push) +#pragma warning(disable: 4514 4820) +# 61 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vadefs.h" 3 + typedef unsigned __int64 uintptr_t; +# 72 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vadefs.h" 3 + typedef char* va_list; +# 155 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vadefs.h" 3 + void __cdecl __va_start(va_list* , ...); +# 207 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vadefs.h" 3 +#pragma warning(pop) +#pragma pack(pop) +# 19 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\vadefs.h" 2 3 +# 59 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 2 3 + +#pragma warning(push) +#pragma warning(disable: 4514 4820) +# 96 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 3 +#pragma pack(push, 8) +# 193 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 3 + typedef unsigned __int64 size_t; + typedef __int64 ptrdiff_t; + typedef __int64 intptr_t; +# 209 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 3 + typedef _Bool __vcrt_bool; +# 228 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 3 + typedef unsigned short wchar_t; +# 377 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 3 + void __cdecl __security_init_cookie(void); +# 386 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 3 + void __cdecl __security_check_cookie( uintptr_t _StackCookie); + __declspec(noreturn) void __cdecl __report_gsfailure( uintptr_t _StackCookie); + + + +extern uintptr_t __security_cookie; + + + + + + + +#pragma pack(pop) + +#pragma warning(pop) +# 13 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\excpt.h" 2 3 + +#pragma warning(push) +#pragma warning(disable: 4514 4820) + +#pragma pack(push, 8) + + + + +typedef enum _EXCEPTION_DISPOSITION +{ + ExceptionContinueExecution, + ExceptionContinueSearch, + ExceptionNestedException, + ExceptionCollidedUnwind +} EXCEPTION_DISPOSITION; +# 48 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\excpt.h" 3 + struct _EXCEPTION_RECORD; + struct _CONTEXT; + struct _DISPATCHER_CONTEXT; + + EXCEPTION_DISPOSITION __cdecl __C_specific_handler( + struct _EXCEPTION_RECORD* ExceptionRecord, + void* EstablisherFrame, + struct _CONTEXT* ContextRecord, + struct _DISPATCHER_CONTEXT* DispatcherContext + ); +# 72 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\excpt.h" 3 +unsigned long __cdecl _exception_code(void); +void * __cdecl _exception_info(void); +int __cdecl _abnormal_termination(void); +# 85 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\excpt.h" 3 +#pragma pack(pop) + +#pragma warning(pop) +# 172 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stdarg.h" 1 3 +# 14 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stdarg.h" 3 +typedef __builtin_va_list __gnuc_va_list; + + + + + + + +typedef __builtin_va_list va_list; +# 173 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 1 3 +# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings.h" 1 3 +# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings.h" 3 +#pragma warning(push) +#pragma warning(disable: 4668) +# 674 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings_strict.h" 1 3 +# 188 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings_strict.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings_undef.h" 1 3 +# 189 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings_strict.h" 2 3 +# 675 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings.h" 2 3 +# 695 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\driverspecs.h" 1 3 +# 125 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\driverspecs.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/sdv_driverspecs.h" 1 3 +# 126 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\driverspecs.h" 2 3 +# 696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings.h" 2 3 +# 711 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings.h" 3 +#pragma warning(pop) +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 2 3 +# 51 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 3 +typedef unsigned long ULONG; +typedef ULONG *PULONG; +typedef unsigned short USHORT; +typedef USHORT *PUSHORT; +typedef unsigned char UCHAR; +typedef UCHAR *PUCHAR; +typedef char *PSZ; +# 156 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 3 +typedef unsigned long DWORD; +typedef int BOOL; +typedef unsigned char BYTE; +typedef unsigned short WORD; +typedef float FLOAT; +typedef FLOAT *PFLOAT; +typedef BOOL *PBOOL; +typedef BOOL *LPBOOL; +typedef BYTE *PBYTE; +typedef BYTE *LPBYTE; +typedef int *PINT; +typedef int *LPINT; +typedef WORD *PWORD; +typedef WORD *LPWORD; +typedef long *LPLONG; +typedef DWORD *PDWORD; +typedef DWORD *LPDWORD; +typedef void *LPVOID; +typedef const void *LPCVOID; + +typedef int INT; +typedef unsigned int UINT; +typedef unsigned int *PUINT; + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 1 3 +# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma warning(push) +#pragma warning(disable: 4668) +#pragma warning(disable: 4820) + +#pragma warning(disable: 4200) +#pragma warning(disable: 4201) +#pragma warning(disable: 4214) + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 1 3 +# 12 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 1 3 +# 121 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 +#pragma warning(push) +#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) +#pragma clang diagnostic push +# 123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +# 123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 +#pragma clang diagnostic ignored "-Wignored-attributes" +# 123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 +#pragma clang diagnostic ignored "-Wignored-pragma-optimize" +# 123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 +#pragma clang diagnostic ignored "-Wunknown-pragmas" + +#pragma pack(push, 8) +# 274 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 + typedef _Bool __crt_bool; +# 371 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 + void __cdecl _invalid_parameter_noinfo(void); + __declspec(noreturn) void __cdecl _invalid_parameter_noinfo_noreturn(void); + +__declspec(noreturn) + void __cdecl _invoke_watson( + wchar_t const* _Expression, + wchar_t const* _FunctionName, + wchar_t const* _FileName, + unsigned int _LineNo, + uintptr_t _Reserved); +# 604 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 +typedef int errno_t; +typedef unsigned short wint_t; +typedef unsigned short wctype_t; +typedef long __time32_t; +typedef __int64 __time64_t; + +typedef struct __crt_locale_data_public +{ + unsigned short const* _locale_pctype; + int _locale_mb_cur_max; + unsigned int _locale_lc_codepage; +} __crt_locale_data_public; + +typedef struct __crt_locale_pointers +{ + struct __crt_locale_data* locinfo; + struct __crt_multibyte_data* mbcinfo; +} __crt_locale_pointers; + +typedef __crt_locale_pointers* _locale_t; + +typedef struct _Mbstatet +{ + unsigned long _Wchar; + unsigned short _Byte, _State; +} _Mbstatet; + +typedef _Mbstatet mbstate_t; +# 645 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 + typedef __time64_t time_t; +# 655 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 + typedef size_t rsize_t; +# 2072 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 +#pragma pack(pop) + +#pragma clang diagnostic pop +#pragma warning(pop) +# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 1 3 +# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 +#pragma warning(push) +#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) +#pragma clang diagnostic push +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 +#pragma clang diagnostic ignored "-Wignored-attributes" +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 +#pragma clang diagnostic ignored "-Wignored-pragma-optimize" +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 +#pragma clang diagnostic ignored "-Wunknown-pragmas" + +#pragma pack(push, 8) +# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 + const unsigned short* __cdecl __pctype_func(void); + const wctype_t* __cdecl __pwctype_func(void); +# 67 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 + int __cdecl iswalnum ( wint_t _C); + int __cdecl iswalpha ( wint_t _C); + int __cdecl iswascii ( wint_t _C); + int __cdecl iswblank ( wint_t _C); + int __cdecl iswcntrl ( wint_t _C); + + + int __cdecl iswdigit ( wint_t _C); + + int __cdecl iswgraph ( wint_t _C); + int __cdecl iswlower ( wint_t _C); + int __cdecl iswprint ( wint_t _C); + int __cdecl iswpunct ( wint_t _C); + int __cdecl iswspace ( wint_t _C); + int __cdecl iswupper ( wint_t _C); + int __cdecl iswxdigit ( wint_t _C); + int __cdecl __iswcsymf( wint_t _C); + int __cdecl __iswcsym ( wint_t _C); + + int __cdecl _iswalnum_l ( wint_t _C, _locale_t _Locale); + int __cdecl _iswalpha_l ( wint_t _C, _locale_t _Locale); + int __cdecl _iswblank_l ( wint_t _C, _locale_t _Locale); + int __cdecl _iswcntrl_l ( wint_t _C, _locale_t _Locale); + int __cdecl _iswdigit_l ( wint_t _C, _locale_t _Locale); + int __cdecl _iswgraph_l ( wint_t _C, _locale_t _Locale); + int __cdecl _iswlower_l ( wint_t _C, _locale_t _Locale); + int __cdecl _iswprint_l ( wint_t _C, _locale_t _Locale); + int __cdecl _iswpunct_l ( wint_t _C, _locale_t _Locale); + int __cdecl _iswspace_l ( wint_t _C, _locale_t _Locale); + int __cdecl _iswupper_l ( wint_t _C, _locale_t _Locale); + int __cdecl _iswxdigit_l( wint_t _C, _locale_t _Locale); + int __cdecl _iswcsymf_l ( wint_t _C, _locale_t _Locale); + int __cdecl _iswcsym_l ( wint_t _C, _locale_t _Locale); + + + wint_t __cdecl towupper( wint_t _C); + wint_t __cdecl towlower( wint_t _C); + int __cdecl iswctype( wint_t _C, wctype_t _Type); + + wint_t __cdecl _towupper_l( wint_t _C, _locale_t _Locale); + wint_t __cdecl _towlower_l( wint_t _C, _locale_t _Locale); + int __cdecl _iswctype_l( wint_t _C, wctype_t _Type, _locale_t _Locale); + + + + int __cdecl isleadbyte( int _C); + int __cdecl _isleadbyte_l( int _C, _locale_t _Locale); + + __declspec(deprecated("This function or variable has been superceded by newer library " "or operating system functionality. Consider using " "iswctype" " " "instead. See online help for details.")) int __cdecl is_wctype( wint_t _C, wctype_t _Type); +# 203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 +#pragma pack(pop) +#pragma clang diagnostic pop +#pragma warning(pop) +# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 2 3 + +#pragma warning(push) +#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) +#pragma clang diagnostic push +# 17 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +# 17 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 +#pragma clang diagnostic ignored "-Wignored-attributes" +# 17 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 +#pragma clang diagnostic ignored "-Wignored-pragma-optimize" +# 17 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 +#pragma clang diagnostic ignored "-Wunknown-pragmas" + +#pragma pack(push, 8) +# 29 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 + int __cdecl _isctype( int _C, int _Type); + int __cdecl _isctype_l( int _C, int _Type, _locale_t _Locale); + int __cdecl isalpha( int _C); + int __cdecl _isalpha_l( int _C, _locale_t _Locale); + int __cdecl isupper( int _C); + int __cdecl _isupper_l( int _C, _locale_t _Locale); + int __cdecl islower( int _C); + int __cdecl _islower_l( int _C, _locale_t _Locale); + + + int __cdecl isdigit( int _C); + + int __cdecl _isdigit_l( int _C, _locale_t _Locale); + int __cdecl isxdigit( int _C); + int __cdecl _isxdigit_l( int _C, _locale_t _Locale); + + + int __cdecl isspace( int _C); + + int __cdecl _isspace_l( int _C, _locale_t _Locale); + int __cdecl ispunct( int _C); + int __cdecl _ispunct_l( int _C, _locale_t _Locale); + int __cdecl isblank( int _C); + int __cdecl _isblank_l( int _C, _locale_t _Locale); + int __cdecl isalnum( int _C); + int __cdecl _isalnum_l( int _C, _locale_t _Locale); + int __cdecl isprint( int _C); + int __cdecl _isprint_l( int _C, _locale_t _Locale); + int __cdecl isgraph( int _C); + int __cdecl _isgraph_l( int _C, _locale_t _Locale); + int __cdecl iscntrl( int _C); + int __cdecl _iscntrl_l( int _C, _locale_t _Locale); + + + int __cdecl toupper( int _C); + + + int __cdecl tolower( int _C); + + int __cdecl _tolower( int _C); + int __cdecl _tolower_l( int _C, _locale_t _Locale); + int __cdecl _toupper( int _C); + int __cdecl _toupper_l( int _C, _locale_t _Locale); + + int __cdecl __isascii( int _C); + int __cdecl __toascii( int _C); + int __cdecl __iscsymf( int _C); + int __cdecl __iscsym( int _C); +# 85 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 +__inline int __cdecl __acrt_locale_get_ctype_array_value( + unsigned short const * const _Locale_pctype_array, + int const _Char_value, + int const _Mask + ) +{ + + + + + + if (_Char_value >= -1 && _Char_value <= 255) + { + return _Locale_pctype_array[_Char_value] & _Mask; + } + + return 0; +} +# 124 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 + int __cdecl ___mb_cur_max_func(void); + + int __cdecl ___mb_cur_max_l_func(_locale_t _Locale); +# 152 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 + __forceinline int __cdecl __ascii_tolower(int const _C) + { + if (_C >= 'A' && _C <= 'Z') + { + return _C - ('A' - 'a'); + } + return _C; + } + + __forceinline int __cdecl __ascii_toupper(int const _C) + { + if (_C >= 'a' && _C <= 'z') + { + return _C - ('a' - 'A'); + } + return _C; + } + + __forceinline int __cdecl __ascii_iswalpha(int const _C) + { + return (_C >= 'A' && _C <= 'Z') || (_C >= 'a' && _C <= 'z'); + } + + __forceinline int __cdecl __ascii_iswdigit(int const _C) + { + return _C >= '0' && _C <= '9'; + } + + __forceinline int __cdecl __ascii_towlower(int const _C) + { + return __ascii_tolower(_C); + } + + __forceinline int __cdecl __ascii_towupper(int const _C) + { + return __ascii_toupper(_C); + } +# 208 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 + __inline __crt_locale_data_public* __cdecl __acrt_get_locale_data_prefix(void const volatile* const _LocalePointers) + { + _locale_t const _TypedLocalePointers = (_locale_t)_LocalePointers; + return (__crt_locale_data_public*)_TypedLocalePointers->locinfo; + } + + + + + + __inline int __cdecl _chvalidchk_l( + int const _C, + int const _Mask, + _locale_t const _Locale + ) + { + + + + if (!_Locale) + { + return (__acrt_locale_get_ctype_array_value(__pctype_func(), (_C), (_Mask))); + } + + return __acrt_locale_get_ctype_array_value(__acrt_get_locale_data_prefix(_Locale)->_locale_pctype, _C, _Mask); + + } + + + + + __inline int __cdecl _ischartype_l( + int const _C, + int const _Mask, + _locale_t const _Locale + ) + { + if (!_Locale) + { + return _chvalidchk_l(_C, _Mask, 0); + } + + if (_C >= -1 && _C <= 255) + { + return __acrt_get_locale_data_prefix(_Locale)->_locale_pctype[_C] & _Mask; + } + + if (__acrt_get_locale_data_prefix(_Locale)->_locale_mb_cur_max > 1) + { + return _isctype_l(_C, _Mask, _Locale); + } + + return 0; + } +# 307 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 +#pragma pack(pop) +#pragma clang diagnostic pop +#pragma warning(pop) +# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 +# 101 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\kernelspecs.h" 1 3 +# 102 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 +# 194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 1 3 +# 23 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 3 +#pragma warning(push) +#pragma warning(disable: 4668) + + + + + typedef unsigned __int64 POINTER_64_INT; +# 75 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 3 +typedef signed char INT8, *PINT8; +typedef signed short INT16, *PINT16; +typedef signed int INT32, *PINT32; +typedef signed __int64 INT64, *PINT64; +typedef unsigned char UINT8, *PUINT8; +typedef unsigned short UINT16, *PUINT16; +typedef unsigned int UINT32, *PUINT32; +typedef unsigned __int64 UINT64, *PUINT64; + + + + + +typedef signed int LONG32, *PLONG32; + + + + + +typedef unsigned int ULONG32, *PULONG32; +typedef unsigned int DWORD32, *PDWORD32; +# 125 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 3 + typedef __int64 INT_PTR, *PINT_PTR; + typedef unsigned __int64 UINT_PTR, *PUINT_PTR; + + typedef __int64 LONG_PTR, *PLONG_PTR; + typedef unsigned __int64 ULONG_PTR, *PULONG_PTR; +# 155 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 3 +typedef void* __ptr64 HANDLE64; +typedef HANDLE64 *PHANDLE64; +# 169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 3 +typedef __int64 SHANDLE_PTR; +typedef unsigned __int64 HANDLE_PTR; +typedef unsigned int UHALF_PTR, *PUHALF_PTR; +typedef int HALF_PTR, *PHALF_PTR; + + +__inline +unsigned long +HandleToULong( + const void *h + ) +{ + return((unsigned long) (ULONG_PTR) h ); +} + +__inline +long +HandleToLong( + const void *h + ) +{ + return((long) (LONG_PTR) h ); +} + +__inline +void * +ULongToHandle( + const unsigned long h + ) +{ + return((void *) (UINT_PTR) h ); +} + + +__inline +void * +LongToHandle( + const long h + ) +{ + return((void *) (INT_PTR) h ); +} + + +__inline +unsigned long +PtrToUlong( + const void *p + ) +{ + return((unsigned long) (ULONG_PTR) p ); +} + +__inline +unsigned int +PtrToUint( + const void *p + ) +{ + return((unsigned int) (UINT_PTR) p ); +} + +__inline +unsigned short +PtrToUshort( + const void *p + ) +{ + return((unsigned short) (unsigned long) (ULONG_PTR) p ); +} + +__inline +long +PtrToLong( + const void *p + ) +{ + return((long) (LONG_PTR) p ); +} + +__inline +int +PtrToInt( + const void *p + ) +{ + return((int) (INT_PTR) p ); +} + +__inline +short +PtrToShort( + const void *p + ) +{ + return((short) (long) (LONG_PTR) p ); +} + +__inline +void * +IntToPtr( + const int i + ) + +{ + return( (void *)(INT_PTR)i ); +} + +__inline +void * +UIntToPtr( + const unsigned int ui + ) + +{ + return( (void *)(UINT_PTR)ui ); +} + +__inline +void * +LongToPtr( + const long l + ) + +{ + return( (void *)(LONG_PTR)l ); +} + +__inline +void * +ULongToPtr( + const unsigned long ul + ) + +{ + return( (void *)(ULONG_PTR)ul ); +} + + + + + + +__inline +void * +Ptr32ToPtr( + const void * __ptr32 p + ) +{ + return((void *) (ULONG_PTR) (unsigned long) p); +} + +__inline +void * +Handle32ToHandle( + const void * __ptr32 h + ) +{ + return((void *) (LONG_PTR) (long) h); +} + +__inline +void * __ptr32 +PtrToPtr32( + const void *p + ) +{ + return((void * __ptr32) (unsigned long) (ULONG_PTR) p); +} +# 434 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 3 +typedef ULONG_PTR SIZE_T, *PSIZE_T; +typedef LONG_PTR SSIZE_T, *PSSIZE_T; +# 483 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 3 +typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR; + + + + + +typedef __int64 LONG64, *PLONG64; + + + + + + +typedef unsigned __int64 ULONG64, *PULONG64; +typedef unsigned __int64 DWORD64, *PDWORD64; + + + + + + + +typedef ULONG_PTR KAFFINITY; +typedef KAFFINITY *PKAFFINITY; + + + + + + + + +#pragma warning(pop) +# 195 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 +# 425 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef void *PVOID; +typedef void * __ptr64 PVOID64; +# 467 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef char CHAR; +typedef short SHORT; +typedef long LONG; + +typedef int INT; +# 480 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef wchar_t WCHAR; + + + + + +typedef WCHAR *PWCHAR, *LPWCH, *PWCH; +typedef const WCHAR *LPCWCH, *PCWCH; + +typedef WCHAR *NWPSTR, *LPWSTR, *PWSTR; +typedef PWSTR *PZPWSTR; +typedef const PWSTR *PCZPWSTR; +typedef WCHAR __unaligned *LPUWSTR, *PUWSTR; +typedef const WCHAR *LPCWSTR, *PCWSTR; +typedef PCWSTR *PZPCWSTR; +typedef const PCWSTR *PCZPCWSTR; +typedef const WCHAR __unaligned *LPCUWSTR, *PCUWSTR; + +typedef WCHAR *PZZWSTR; +typedef const WCHAR *PCZZWSTR; +typedef WCHAR __unaligned *PUZZWSTR; +typedef const WCHAR __unaligned *PCUZZWSTR; + +typedef WCHAR *PNZWCH; +typedef const WCHAR *PCNZWCH; +typedef WCHAR __unaligned *PUNZWCH; +typedef const WCHAR __unaligned *PCUNZWCH; + + + +typedef const WCHAR *LPCWCHAR, *PCWCHAR; +typedef const WCHAR __unaligned *LPCUWCHAR, *PCUWCHAR; + + + + + +typedef unsigned long UCSCHAR; +# 537 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef UCSCHAR *PUCSCHAR; +typedef const UCSCHAR *PCUCSCHAR; + +typedef UCSCHAR *PUCSSTR; +typedef UCSCHAR __unaligned *PUUCSSTR; + +typedef const UCSCHAR *PCUCSSTR; +typedef const UCSCHAR __unaligned *PCUUCSSTR; + +typedef UCSCHAR __unaligned *PUUCSCHAR; +typedef const UCSCHAR __unaligned *PCUUCSCHAR; + + + + + + + +typedef CHAR *PCHAR, *LPCH, *PCH; +typedef const CHAR *LPCCH, *PCCH; + +typedef CHAR *NPSTR, *LPSTR, *PSTR; +typedef PSTR *PZPSTR; +typedef const PSTR *PCZPSTR; +typedef const CHAR *LPCSTR, *PCSTR; +typedef PCSTR *PZPCSTR; +typedef const PCSTR *PCZPCSTR; + +typedef CHAR *PZZSTR; +typedef const CHAR *PCZZSTR; + +typedef CHAR *PNZCH; +typedef const CHAR *PCNZCH; +# 603 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef char TCHAR, *PTCHAR; +typedef unsigned char TBYTE , *PTBYTE ; + + + +typedef LPCH LPTCH, PTCH; +typedef LPCCH LPCTCH, PCTCH; +typedef LPSTR PTSTR, LPTSTR, PUTSTR, LPUTSTR; +typedef LPCSTR PCTSTR, LPCTSTR, PCUTSTR, LPCUTSTR; +typedef PZZSTR PZZTSTR, PUZZTSTR; +typedef PCZZSTR PCZZTSTR, PCUZZTSTR; +typedef PZPSTR PZPTSTR; +typedef PNZCH PNZTCH, PUNZTCH; +typedef PCNZCH PCNZTCH, PCUNZTCH; + + + + + + +typedef SHORT *PSHORT; +typedef LONG *PLONG; +# 633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _PROCESSOR_NUMBER { + WORD Group; + BYTE Number; + BYTE Reserved; +} PROCESSOR_NUMBER, *PPROCESSOR_NUMBER; + + + + + + +typedef struct _GROUP_AFFINITY { + KAFFINITY Mask; + WORD Group; + WORD Reserved[3]; +} GROUP_AFFINITY, *PGROUP_AFFINITY; +# 669 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef void *HANDLE; +# 679 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef HANDLE *PHANDLE; + + + + + + + +typedef BYTE FCHAR; +typedef WORD FSHORT; +typedef DWORD FLONG; +# 700 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef long HRESULT; +# 782 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef char CCHAR; +typedef DWORD LCID; +typedef PDWORD PLCID; +typedef WORD LANGID; +# 794 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum { + UNSPECIFIED_COMPARTMENT_ID = 0, + DEFAULT_COMPARTMENT_ID +} COMPARTMENT_ID, *PCOMPARTMENT_ID; +# 825 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _FLOAT128 { + __int64 LowPart; + __int64 HighPart; +} FLOAT128; + +typedef FLOAT128 *PFLOAT128; +# 840 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef __int64 LONGLONG; +typedef unsigned __int64 ULONGLONG; +# 862 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef LONGLONG *PLONGLONG; +typedef ULONGLONG *PULONGLONG; + + + +typedef LONGLONG USN; + + + + + + +typedef union _LARGE_INTEGER { + struct { + DWORD LowPart; + LONG HighPart; + } ; + struct { + DWORD LowPart; + LONG HighPart; + } u; + LONGLONG QuadPart; +} LARGE_INTEGER; + + +typedef LARGE_INTEGER *PLARGE_INTEGER; + + + + + + +typedef union _ULARGE_INTEGER { + struct { + DWORD LowPart; + DWORD HighPart; + } ; + struct { + DWORD LowPart; + DWORD HighPart; + } u; + ULONGLONG QuadPart; +} ULARGE_INTEGER; + + +typedef ULARGE_INTEGER *PULARGE_INTEGER; + + + + + +typedef LONG_PTR RTL_REFERENCE_COUNT, *PRTL_REFERENCE_COUNT; +typedef LONG RTL_REFERENCE_COUNT32, *PRTL_REFERENCE_COUNT32; +# 924 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _LUID { + DWORD LowPart; + LONG HighPart; +} LUID, *PLUID; + + +typedef ULONGLONG DWORDLONG; +typedef DWORDLONG *PDWORDLONG; +# 1078 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +unsigned char +__cdecl +_rotl8 ( + unsigned char Value, + unsigned char Shift + ); + +unsigned short +__cdecl +_rotl16 ( + unsigned short Value, + unsigned char Shift + ); + +unsigned char +__cdecl +_rotr8 ( + unsigned char Value, + unsigned char Shift + ); + +unsigned short +__cdecl +_rotr16 ( + unsigned short Value, + unsigned char Shift + ); + +#pragma intrinsic(_rotl8) +#pragma intrinsic(_rotl16) +#pragma intrinsic(_rotr8) +#pragma intrinsic(_rotr16) +# 1120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +unsigned int +__cdecl +_rotl ( + unsigned int Value, + int Shift + ); + +unsigned __int64 +__cdecl +_rotl64 ( + unsigned __int64 Value, + int Shift + ); + +unsigned int +__cdecl +_rotr ( + unsigned int Value, + int Shift + ); + +unsigned __int64 +__cdecl +_rotr64 ( + unsigned __int64 Value, + int Shift + ); + +#pragma intrinsic(_rotl) +#pragma intrinsic(_rotl64) +#pragma intrinsic(_rotr) +#pragma intrinsic(_rotr64) +# 1163 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef BYTE BOOLEAN; +typedef BOOLEAN *PBOOLEAN; + + + + + +typedef struct _LIST_ENTRY { + struct _LIST_ENTRY *Flink; + struct _LIST_ENTRY *Blink; +} LIST_ENTRY, *PLIST_ENTRY, * PRLIST_ENTRY; + + + + + + +typedef struct _SINGLE_LIST_ENTRY { + struct _SINGLE_LIST_ENTRY *Next; +} SINGLE_LIST_ENTRY, *PSINGLE_LIST_ENTRY; +# 1191 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct LIST_ENTRY32 { + DWORD Flink; + DWORD Blink; +} LIST_ENTRY32; +typedef LIST_ENTRY32 *PLIST_ENTRY32; + +typedef struct LIST_ENTRY64 { + ULONGLONG Flink; + ULONGLONG Blink; +} LIST_ENTRY64; +typedef LIST_ENTRY64 *PLIST_ENTRY64; + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\guiddef.h" 1 3 +# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\guiddef.h" 3 +typedef struct _GUID { + unsigned long Data1; + unsigned short Data2; + unsigned short Data3; + unsigned char Data4[ 8 ]; +} GUID; +# 75 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\guiddef.h" 3 +typedef GUID *LPGUID; + + + + +typedef const GUID *LPCGUID; + + + + + +typedef GUID IID; +typedef IID *LPIID; + + +typedef GUID CLSID; +typedef CLSID *LPCLSID; + + +typedef GUID FMTID; +typedef FMTID *LPFMTID; +# 146 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\guiddef.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 1 3 +# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 1 3 +# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 1 3 +# 11 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\errno.h" 1 3 +# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\errno.h" 3 +#pragma warning(push) +#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) +#pragma clang diagnostic push +# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\errno.h" 3 +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\errno.h" 3 +#pragma clang diagnostic ignored "-Wignored-attributes" +# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\errno.h" 3 +#pragma clang diagnostic ignored "-Wignored-pragma-optimize" +# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\errno.h" 3 +#pragma clang diagnostic ignored "-Wunknown-pragmas" + +#pragma pack(push, 8) + + + + + int* __cdecl _errno(void); + + + errno_t __cdecl _set_errno( int _Value); + errno_t __cdecl _get_errno( int* _Value); + + unsigned long* __cdecl __doserrno(void); + + + errno_t __cdecl _set_doserrno( unsigned long _Value); + errno_t __cdecl _get_doserrno( unsigned long * _Value); +# 134 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\errno.h" 3 +#pragma pack(pop) +#pragma clang diagnostic pop +#pragma warning(pop) +# 12 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 2 3 +# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime_string.h" 1 3 +# 12 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime_string.h" 3 +#pragma warning(push) +#pragma warning(disable: 4514 4820) + + + +#pragma pack(push, 8) + + + + + void * __cdecl memchr( + void const* _Buf, + int _Val, + size_t _MaxCount + ); + + +int __cdecl memcmp( + void const* _Buf1, + void const* _Buf2, + size_t _Size + ); +# 43 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime_string.h" 3 +void* __cdecl memcpy( + void* _Dst, + void const* _Src, + size_t _Size + ); + + + void* __cdecl memmove( + void* _Dst, + void const* _Src, + size_t _Size + ); +# 63 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime_string.h" 3 +void* __cdecl memset( + void* _Dst, + int _Val, + size_t _Size + ); + + + char * __cdecl strchr( + char const* _Str, + int _Val + ); + + + char * __cdecl strrchr( + char const* _Str, + int _Ch + ); + + + char * __cdecl strstr( + char const* _Str, + char const* _SubStr + ); + + + + wchar_t * __cdecl wcschr( + wchar_t const* _Str, + wchar_t _Ch + ); + + + wchar_t * __cdecl wcsrchr( + wchar_t const* _Str, + wchar_t _Ch + ); + + + + wchar_t * __cdecl wcsstr( + wchar_t const* _Str, + wchar_t const* _SubStr + ); + + + +#pragma pack(pop) + + + +#pragma warning(pop) +# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 2 3 + +#pragma warning(push) +#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) +#pragma clang diagnostic push +# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 3 +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 3 +#pragma clang diagnostic ignored "-Wignored-attributes" +# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 3 +#pragma clang diagnostic ignored "-Wignored-pragma-optimize" +# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 3 +#pragma clang diagnostic ignored "-Wunknown-pragmas" + +#pragma pack(push, 8) +# 39 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 3 + static __inline errno_t __cdecl memcpy_s( + void* const _Destination, + rsize_t const _DestinationSize, + void const* const _Source, + rsize_t const _SourceSize + ) + { + if (_SourceSize == 0) + { + return 0; + } + + { int _Expr_val=!!(_Destination != ((void *)0)); if (!(_Expr_val)) { (*_errno()) = 22; _invalid_parameter_noinfo(); return 22; } }; + if (_Source == ((void *)0) || _DestinationSize < _SourceSize) + { + memset(_Destination, 0, _DestinationSize); + + { int _Expr_val=!!(_Source != ((void *)0)); if (!(_Expr_val)) { (*_errno()) = 22; _invalid_parameter_noinfo(); return 22; } }; + { int _Expr_val=!!(_DestinationSize >= _SourceSize); if (!(_Expr_val)) { (*_errno()) = 34; _invalid_parameter_noinfo(); return 34; } }; + + + return 22; + } + memcpy(_Destination, _Source, _SourceSize); + return 0; + } + + + static __inline errno_t __cdecl memmove_s( + void* const _Destination, + rsize_t const _DestinationSize, + void const* const _Source, + rsize_t const _SourceSize + ) + { + if (_SourceSize == 0) + { + return 0; + } + + { int _Expr_val=!!(_Destination != ((void *)0)); if (!(_Expr_val)) { (*_errno()) = 22; _invalid_parameter_noinfo(); return 22; } }; + { int _Expr_val=!!(_Source != ((void *)0)); if (!(_Expr_val)) { (*_errno()) = 22; _invalid_parameter_noinfo(); return 22; } }; + { int _Expr_val=!!(_DestinationSize >= _SourceSize); if (!(_Expr_val)) { (*_errno()) = 34; _invalid_parameter_noinfo(); return 34; } }; + + memmove(_Destination, _Source, _SourceSize); + return 0; + } + + + + + +#pragma clang diagnostic pop +#pragma warning(pop) +#pragma pack(pop) +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 2 3 + + +#pragma warning(push) +#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) +#pragma clang diagnostic push +# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 3 +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 3 +#pragma clang diagnostic ignored "-Wignored-attributes" +# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 3 +#pragma clang diagnostic ignored "-Wignored-pragma-optimize" +# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 3 +#pragma clang diagnostic ignored "-Wunknown-pragmas" + + + +#pragma pack(push, 8) + + + + + int __cdecl _memicmp( + void const* _Buf1, + void const* _Buf2, + size_t _Size + ); + + + int __cdecl _memicmp_l( + void const* _Buf1, + void const* _Buf2, + size_t _Size, + _locale_t _Locale + ); +# 82 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 3 + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_memccpy" ". See online help for details.")) + void* __cdecl memccpy( + void* _Dst, + void const* _Src, + int _Val, + size_t _Size + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_memicmp" ". See online help for details.")) + int __cdecl memicmp( + void const* _Buf1, + void const* _Buf2, + size_t _Size + ); +# 118 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 3 +#pragma pack(pop) + + +#pragma clang diagnostic pop +#pragma warning(pop) +# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 1 3 +# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 +#pragma warning(push) +#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) +#pragma clang diagnostic push +# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 +#pragma clang diagnostic ignored "-Wignored-attributes" +# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 +#pragma clang diagnostic ignored "-Wignored-pragma-optimize" +# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 +#pragma clang diagnostic ignored "-Wunknown-pragmas" + + + +#pragma pack(push, 8) +# 32 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 + errno_t __cdecl wcscat_s( + wchar_t* _Destination, + rsize_t _SizeInWords, + wchar_t const* _Source + ); + + + errno_t __cdecl wcscpy_s( + wchar_t* _Destination, + rsize_t _SizeInWords, + wchar_t const* _Source + ); + + + errno_t __cdecl wcsncat_s( + wchar_t* _Destination, + rsize_t _SizeInWords, + wchar_t const* _Source, + rsize_t _MaxCount + ); + + + errno_t __cdecl wcsncpy_s( + wchar_t* _Destination, + rsize_t _SizeInWords, + wchar_t const* _Source, + rsize_t _MaxCount + ); + + + wchar_t* __cdecl wcstok_s( + wchar_t* _String, + wchar_t const* _Delimiter, + wchar_t** _Context + ); +# 83 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 + __declspec(allocator) wchar_t* __cdecl _wcsdup( + wchar_t const* _String + ); +# 100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 + __declspec(deprecated("This function or variable may be unsafe. Consider using " "wcscat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl wcscat( wchar_t *_Destination, wchar_t const* _Source); + + + + + + + + int __cdecl wcscmp( + wchar_t const* _String1, + wchar_t const* _String2 + ); + + + + + + + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcscpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl wcscpy( wchar_t *_Destination, wchar_t const* _Source); + + + + + + + size_t __cdecl wcscspn( + wchar_t const* _String, + wchar_t const* _Control + ); + + + size_t __cdecl wcslen( + wchar_t const* _String + ); +# 145 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 + size_t __cdecl wcsnlen( + wchar_t const* _Source, + size_t _MaxCount + ); +# 161 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 + static __inline size_t __cdecl wcsnlen_s( + wchar_t const* _Source, + size_t _MaxCount + ) + { + return (_Source == 0) ? 0 : wcsnlen(_Source, _MaxCount); + } +# 178 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcsncat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl wcsncat( wchar_t *_Destination, wchar_t const* _Source, size_t _Count); +# 187 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 + int __cdecl wcsncmp( + wchar_t const* _String1, + wchar_t const* _String2, + size_t _MaxCount + ); +# 200 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcsncpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl wcsncpy( wchar_t *_Destination, wchar_t const* _Source, size_t _Count); +# 209 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 + wchar_t * __cdecl wcspbrk( + wchar_t const* _String, + wchar_t const* _Control + ); + + + size_t __cdecl wcsspn( + wchar_t const* _String, + wchar_t const* _Control + ); + + __declspec(deprecated("This function or variable may be unsafe. Consider using " "wcstok_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + wchar_t* __cdecl wcstok( + wchar_t* _String, + wchar_t const* _Delimiter, + wchar_t** _Context + ); +# 238 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 + __declspec(deprecated("This function or variable may be unsafe. Consider using " "wcstok_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + static __inline wchar_t* __cdecl _wcstok( + wchar_t* const _String, + wchar_t const* const _Delimiter + ) + { + return wcstok(_String, _Delimiter, 0); + } +# 267 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 + __declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcserror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + wchar_t* __cdecl _wcserror( + int _ErrorNumber + ); + + + errno_t __cdecl _wcserror_s( + wchar_t* _Buffer, + size_t _SizeInWords, + int _ErrorNumber + ); +# 287 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 + __declspec(deprecated("This function or variable may be unsafe. Consider using " "__wcserror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + wchar_t* __cdecl __wcserror( + wchar_t const* _String + ); + + errno_t __cdecl __wcserror_s( + wchar_t* _Buffer, + size_t _SizeInWords, + wchar_t const* _ErrorMessage + ); + + + + + + + + int __cdecl _wcsicmp( + wchar_t const* _String1, + wchar_t const* _String2 + ); + + int __cdecl _wcsicmp_l( + wchar_t const* _String1, + wchar_t const* _String2, + _locale_t _Locale + ); + + int __cdecl _wcsnicmp( + wchar_t const* _String1, + wchar_t const* _String2, + size_t _MaxCount + ); + + int __cdecl _wcsnicmp_l( + wchar_t const* _String1, + wchar_t const* _String2, + size_t _MaxCount, + _locale_t _Locale + ); + + errno_t __cdecl _wcsnset_s( + wchar_t* _Destination, + size_t _SizeInWords, + wchar_t _Value, + size_t _MaxCount + ); +# 342 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsnset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _wcsnset( wchar_t *_String, wchar_t _Value, size_t _MaxCount); + + + + + + + + wchar_t* __cdecl _wcsrev( + wchar_t* _String + ); + + errno_t __cdecl _wcsset_s( + wchar_t* _Destination, + size_t _SizeInWords, + wchar_t _Value + ); + + + + + + + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _wcsset( wchar_t *_String, wchar_t _Value); + + + + + + + errno_t __cdecl _wcslwr_s( + wchar_t* _String, + size_t _SizeInWords + ); + + + + + + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcslwr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _wcslwr( wchar_t *_String); + + + + + + errno_t __cdecl _wcslwr_s_l( + wchar_t* _String, + size_t _SizeInWords, + _locale_t _Locale + ); + + + + + + + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcslwr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _wcslwr_l( wchar_t *_String, _locale_t _Locale); + + + + + + + + errno_t __cdecl _wcsupr_s( + wchar_t* _String, + size_t _Size + ); + + + + + + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsupr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _wcsupr( wchar_t *_String); + + + + + + errno_t __cdecl _wcsupr_s_l( + wchar_t* _String, + size_t _Size, + _locale_t _Locale + ); + + + + + + + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsupr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _wcsupr_l( wchar_t *_String, _locale_t _Locale); +# 446 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 + size_t __cdecl wcsxfrm( + wchar_t* _Destination, + wchar_t const* _Source, + size_t _MaxCount + ); + + + + size_t __cdecl _wcsxfrm_l( + wchar_t* _Destination, + wchar_t const* _Source, + size_t _MaxCount, + _locale_t _Locale + ); + + + int __cdecl wcscoll( + wchar_t const* _String1, + wchar_t const* _String2 + ); + + + int __cdecl _wcscoll_l( + wchar_t const* _String1, + wchar_t const* _String2, + _locale_t _Locale + ); + + + int __cdecl _wcsicoll( + wchar_t const* _String1, + wchar_t const* _String2 + ); + + + int __cdecl _wcsicoll_l( + wchar_t const* _String1, + wchar_t const* _String2, + _locale_t _Locale + ); + + + int __cdecl _wcsncoll( + wchar_t const* _String1, + wchar_t const* _String2, + size_t _MaxCount + ); + + + int __cdecl _wcsncoll_l( + wchar_t const* _String1, + wchar_t const* _String2, + size_t _MaxCount, + _locale_t _Locale + ); + + + int __cdecl _wcsnicoll( + wchar_t const* _String1, + wchar_t const* _String2, + size_t _MaxCount + ); + + + int __cdecl _wcsnicoll_l( + wchar_t const* _String1, + wchar_t const* _String2, + size_t _MaxCount, + _locale_t _Locale + ); +# 569 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsdup" ". See online help for details.")) + wchar_t* __cdecl wcsdup( + wchar_t const* _String + ); +# 581 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsicmp" ". See online help for details.")) + int __cdecl wcsicmp( + wchar_t const* _String1, + wchar_t const* _String2 + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsnicmp" ". See online help for details.")) + int __cdecl wcsnicmp( + wchar_t const* _String1, + wchar_t const* _String2, + size_t _MaxCount + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsnset" ". See online help for details.")) + + wchar_t* __cdecl wcsnset( + wchar_t* _String, + wchar_t _Value, + size_t _MaxCount + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsrev" ". See online help for details.")) + + wchar_t* __cdecl wcsrev( + wchar_t* _String + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsset" ". See online help for details.")) + + wchar_t* __cdecl wcsset( + wchar_t* _String, + wchar_t _Value + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcslwr" ". See online help for details.")) + + wchar_t* __cdecl wcslwr( + wchar_t* _String + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsupr" ". See online help for details.")) + + wchar_t* __cdecl wcsupr( + wchar_t* _String + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsicoll" ". See online help for details.")) + int __cdecl wcsicoll( + wchar_t const* _String1, + wchar_t const* _String2 + ); + + + + + +#pragma pack(pop) + + +#pragma clang diagnostic pop +#pragma warning(pop) +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 2 3 + + + + +#pragma warning(push) +#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) +#pragma clang diagnostic push +# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 +#pragma clang diagnostic ignored "-Wignored-attributes" +# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 +#pragma clang diagnostic ignored "-Wignored-pragma-optimize" +# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 +#pragma clang diagnostic ignored "-Wunknown-pragmas" + +#pragma pack(push, 8) + + + + + + + + + errno_t __cdecl strcpy_s( + char* _Destination, + rsize_t _SizeInBytes, + char const* _Source + ); + + + errno_t __cdecl strcat_s( + char* _Destination, + rsize_t _SizeInBytes, + char const* _Source + ); + + + errno_t __cdecl strerror_s( + char* _Buffer, + size_t _SizeInBytes, + int _ErrorNumber); + + + errno_t __cdecl strncat_s( + char* _Destination, + rsize_t _SizeInBytes, + char const* _Source, + rsize_t _MaxCount + ); + + + errno_t __cdecl strncpy_s( + char* _Destination, + rsize_t _SizeInBytes, + char const* _Source, + rsize_t _MaxCount + ); + + + char* __cdecl strtok_s( + char* _String, + char const* _Delimiter, + char** _Context + ); + + + + void* __cdecl _memccpy( + void* _Dst, + void const* _Src, + int _Val, + size_t _MaxCount + ); +# 91 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 + __declspec(deprecated("This function or variable may be unsafe. Consider using " "strcat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl strcat( char *_Destination, char const* _Source); +# 100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 +int __cdecl strcmp( + char const* _Str1, + char const* _Str2 + ); + + + int __cdecl _strcmpi( + char const* _String1, + char const* _String2 + ); + + + int __cdecl strcoll( + char const* _String1, + char const* _String2 + ); + + + int __cdecl _strcoll_l( + char const* _String1, + char const* _String2, + _locale_t _Locale + ); + + + + + + + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "strcpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl strcpy( char *_Destination, char const* _Source); + + + + + + + size_t __cdecl strcspn( + char const* _Str, + char const* _Control + ); + + + + + + + + __declspec(allocator) char* __cdecl _strdup( + char const* _Source + ); + + + + + + + + __declspec(deprecated("This function or variable may be unsafe. Consider using " "_strerror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl _strerror( + char const* _ErrorMessage + ); + + + errno_t __cdecl _strerror_s( + char* _Buffer, + size_t _SizeInBytes, + char const* _ErrorMessage + ); +# 177 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 + __declspec(deprecated("This function or variable may be unsafe. Consider using " "strerror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl strerror( + int _ErrorMessage + ); +# 189 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 + int __cdecl _stricmp( + char const* _String1, + char const* _String2 + ); + + + int __cdecl _stricoll( + char const* _String1, + char const* _String2 + ); + + + int __cdecl _stricoll_l( + char const* _String1, + char const* _String2, + _locale_t _Locale + ); + + + int __cdecl _stricmp_l( + char const* _String1, + char const* _String2, + _locale_t _Locale + ); + + +size_t __cdecl strlen( + char const* _Str + ); + + + errno_t __cdecl _strlwr_s( + char* _String, + size_t _Size + ); + + + + + + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strlwr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _strlwr( char *_String); + + + + + + errno_t __cdecl _strlwr_s_l( + char* _String, + size_t _Size, + _locale_t _Locale + ); + + + + + + + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strlwr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _strlwr_l( char *_String, _locale_t _Locale); +# 262 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "strncat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl strncat( char *_Destination, char const* _Source, size_t _Count); +# 271 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 + int __cdecl strncmp( + char const* _Str1, + char const* _Str2, + size_t _MaxCount + ); + + + int __cdecl _strnicmp( + char const* _String1, + char const* _String2, + size_t _MaxCount + ); + + + int __cdecl _strnicmp_l( + char const* _String1, + char const* _String2, + size_t _MaxCount, + _locale_t _Locale + ); + + + int __cdecl _strnicoll( + char const* _String1, + char const* _String2, + size_t _MaxCount + ); + + + int __cdecl _strnicoll_l( + char const* _String1, + char const* _String2, + size_t _MaxCount, + _locale_t _Locale + ); + + + int __cdecl _strncoll( + char const* _String1, + char const* _String2, + size_t _MaxCount + ); + + + int __cdecl _strncoll_l( + char const* _String1, + char const* _String2, + size_t _MaxCount, + _locale_t _Locale + ); + + size_t __cdecl __strncnt( + char const* _String, + size_t _Count + ); +# 334 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "strncpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl strncpy( char *_Destination, char const* _Source, size_t _Count); +# 351 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 + size_t __cdecl strnlen( + char const* _String, + size_t _MaxCount + ); +# 367 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 + static __inline size_t __cdecl strnlen_s( + char const* _String, + size_t _MaxCount + ) + { + return _String == 0 ? 0 : strnlen(_String, _MaxCount); + } + + + + + errno_t __cdecl _strnset_s( + char* _String, + size_t _SizeInBytes, + int _Value, + size_t _MaxCount + ); +# 392 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strnset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _strnset( char *_Destination, int _Value, size_t _Count); +# 401 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 + char * __cdecl strpbrk( + char const* _Str, + char const* _Control + ); + + char* __cdecl _strrev( + char* _Str + ); + + + errno_t __cdecl _strset_s( + char* _Destination, + size_t _DestinationSize, + int _Value + ); + + + + + + + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _strset( char *_Destination, int _Value); + + + + + + + size_t __cdecl strspn( + char const* _Str, + char const* _Control + ); + + __declspec(deprecated("This function or variable may be unsafe. Consider using " "strtok_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl strtok( + char* _String, + char const* _Delimiter + ); + + + errno_t __cdecl _strupr_s( + char* _String, + size_t _Size + ); + + + + + + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strupr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _strupr( char *_String); + + + + + + errno_t __cdecl _strupr_s_l( + char* _String, + size_t _Size, + _locale_t _Locale + ); + + + + + + + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strupr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _strupr_l( char *_String, _locale_t _Locale); +# 479 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 + size_t __cdecl strxfrm( + char* _Destination, + char const* _Source, + size_t _MaxCount + ); + + + + size_t __cdecl _strxfrm_l( + char* _Destination, + char const* _Source, + size_t _MaxCount, + _locale_t _Locale + ); +# 531 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strdup" ". See online help for details.")) + char* __cdecl strdup( + char const* _String + ); + + + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strcmpi" ". See online help for details.")) + int __cdecl strcmpi( + char const* _String1, + char const* _String2 + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_stricmp" ". See online help for details.")) + int __cdecl stricmp( + char const* _String1, + char const* _String2 + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strlwr" ". See online help for details.")) + char* __cdecl strlwr( + char* _String + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strnicmp" ". See online help for details.")) + int __cdecl strnicmp( + char const* _String1, + char const* _String2, + size_t _MaxCount + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strnset" ". See online help for details.")) + char* __cdecl strnset( + char* _String, + int _Value, + size_t _MaxCount + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strrev" ". See online help for details.")) + char* __cdecl strrev( + char* _String + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strset" ". See online help for details.")) + char* __cdecl strset( + char* _String, + int _Value); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strupr" ". See online help for details.")) + char* __cdecl strupr( + char* _String + ); + + + + + +#pragma pack(pop) +#pragma clang diagnostic pop +#pragma warning(pop) +# 147 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\guiddef.h" 2 3 +# 1205 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + + + + +typedef struct _OBJECTID { + GUID Lineage; + DWORD Uniquifier; +} OBJECTID; +# 1438 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef + + +EXCEPTION_DISPOSITION +__stdcall +EXCEPTION_ROUTINE ( + struct _EXCEPTION_RECORD *ExceptionRecord, + PVOID EstablisherFrame, + struct _CONTEXT *ContextRecord, + PVOID DispatcherContext + ); + +typedef EXCEPTION_ROUTINE *PEXCEPTION_ROUTINE; +# 2538 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma warning(push) +#pragma warning(disable: 4116) +typedef char __C_ASSERT__[(((LONG)__builtin_offsetof(struct { char x; LARGE_INTEGER test; }, test)) == 8)?1:-1]; +#pragma warning(pop) +# 2623 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef ULONG_PTR KSPIN_LOCK; +typedef KSPIN_LOCK *PKSPIN_LOCK; + + + + + + + +typedef struct __declspec(align(16)) _M128A { + ULONGLONG Low; + LONGLONG High; +} M128A, *PM128A; + + + + + +typedef struct __declspec(align(16)) _XSAVE_FORMAT { + WORD ControlWord; + WORD StatusWord; + BYTE TagWord; + BYTE Reserved1; + WORD ErrorOpcode; + DWORD ErrorOffset; + WORD ErrorSelector; + WORD Reserved2; + DWORD DataOffset; + WORD DataSelector; + WORD Reserved3; + DWORD MxCsr; + DWORD MxCsr_Mask; + M128A FloatRegisters[8]; + + + + M128A XmmRegisters[16]; + BYTE Reserved4[96]; +# 2669 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +} XSAVE_FORMAT, *PXSAVE_FORMAT; + + + + + + + +typedef struct _XSAVE_CET_U_FORMAT { + DWORD64 Ia32CetUMsr; + DWORD64 Ia32Pl3SspMsr; +} XSAVE_CET_U_FORMAT, *PXSAVE_CET_U_FORMAT; + +typedef struct __declspec(align(8)) _XSAVE_AREA_HEADER { + DWORD64 Mask; + DWORD64 CompactionMask; + DWORD64 Reserved2[6]; +} XSAVE_AREA_HEADER, *PXSAVE_AREA_HEADER; + +typedef struct __declspec(align(16)) _XSAVE_AREA { + XSAVE_FORMAT LegacyState; + XSAVE_AREA_HEADER Header; +} XSAVE_AREA, *PXSAVE_AREA; + +typedef struct _XSTATE_CONTEXT { + DWORD64 Mask; + DWORD Length; + DWORD Reserved1; + PXSAVE_AREA Area; + + + + + + PVOID Buffer; + + + + + +} XSTATE_CONTEXT, *PXSTATE_CONTEXT; + +typedef struct _KERNEL_CET_CONTEXT { + DWORD64 Ssp; + DWORD64 Rip; + WORD SegCs; + union { + WORD AllFlags; + struct { + WORD UseWrss : 1; + WORD PopShadowStackOne : 1; + WORD Unused : 14; + } ; + } ; + WORD Fill[2]; +} KERNEL_CET_CONTEXT, *PKERNEL_CET_CONTEXT; + + + +typedef char __C_ASSERT__[(sizeof(KERNEL_CET_CONTEXT) == (3 * sizeof(DWORD64)))?1:-1]; +# 2738 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _SCOPE_TABLE_AMD64 { + DWORD Count; + struct { + DWORD BeginAddress; + DWORD EndAddress; + DWORD HandlerAddress; + DWORD JumpTarget; + } ScopeRecord[1]; +} SCOPE_TABLE_AMD64, *PSCOPE_TABLE_AMD64; +# 2798 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +BOOLEAN +_bittest ( + LONG const *Base, + LONG Offset + ); + +BOOLEAN +_bittestandcomplement ( + LONG *Base, + LONG Offset + ); + +BOOLEAN +_bittestandset ( + LONG *Base, + LONG Offset + ); + +BOOLEAN +_bittestandreset ( + LONG *Base, + LONG Offset + ); + +BOOLEAN +_interlockedbittestandset ( + LONG volatile *Base, + LONG Offset + ); + +BOOLEAN +_interlockedbittestandreset ( + LONG volatile *Base, + LONG Offset + ); + +BOOLEAN +_bittest64 ( + LONG64 const *Base, + LONG64 Offset + ); + +BOOLEAN +_bittestandcomplement64 ( + LONG64 *Base, + LONG64 Offset + ); + +BOOLEAN +_bittestandset64 ( + LONG64 *Base, + LONG64 Offset + ); + +BOOLEAN +_bittestandreset64 ( + LONG64 *Base, + LONG64 Offset + ); + +BOOLEAN +_interlockedbittestandset64 ( + LONG64 volatile *Base, + LONG64 Offset + ); + +BOOLEAN +_interlockedbittestandreset64 ( + LONG64 volatile *Base, + LONG64 Offset + ); + +#pragma intrinsic(_bittest) +#pragma intrinsic(_bittestandcomplement) +#pragma intrinsic(_bittestandset) +#pragma intrinsic(_bittestandreset) + + +#pragma intrinsic(_interlockedbittestandset) +#pragma intrinsic(_interlockedbittestandreset) + + +#pragma intrinsic(_bittest64) +#pragma intrinsic(_bittestandcomplement64) +#pragma intrinsic(_bittestandset64) +#pragma intrinsic(_bittestandreset64) + + +#pragma intrinsic(_interlockedbittestandset64) +#pragma intrinsic(_interlockedbittestandreset64) +# 2900 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +BOOLEAN +_BitScanForward ( + DWORD *Index, + DWORD Mask + ); + + +BOOLEAN +_BitScanReverse ( + DWORD *Index, + DWORD Mask + ); + + +BOOLEAN +_BitScanForward64 ( + DWORD *Index, + DWORD64 Mask + ); + + +BOOLEAN +_BitScanReverse64 ( + DWORD *Index, + DWORD64 Mask + ); + +#pragma intrinsic(_BitScanForward) +#pragma intrinsic(_BitScanReverse) +#pragma intrinsic(_BitScanForward64) +#pragma intrinsic(_BitScanReverse64) +# 3065 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +SHORT +_InterlockedIncrement16 ( + SHORT volatile *Addend + ); + +SHORT +_InterlockedDecrement16 ( + SHORT volatile *Addend + ); + +SHORT +_InterlockedCompareExchange16 ( + SHORT volatile *Destination, + SHORT ExChange, + SHORT Comperand + ); + +LONG +_InterlockedAnd ( + LONG volatile *Destination, + LONG Value + ); + +LONG +_InterlockedOr ( + LONG volatile *Destination, + LONG Value + ); + +LONG +_InterlockedXor ( + LONG volatile *Destination, + LONG Value + ); + +LONG64 +_InterlockedAnd64 ( + LONG64 volatile *Destination, + LONG64 Value + ); + +LONG64 +_InterlockedOr64 ( + LONG64 volatile *Destination, + LONG64 Value + ); + +LONG64 +_InterlockedXor64 ( + LONG64 volatile *Destination, + LONG64 Value + ); + +LONG +_InterlockedIncrement ( + LONG volatile *Addend + ); + +LONG +_InterlockedDecrement ( + LONG volatile *Addend + ); + +LONG +_InterlockedExchange ( + LONG volatile *Target, + LONG Value + ); + +LONG +_InterlockedExchangeAdd ( + LONG volatile *Addend, + LONG Value + ); + + + +__forceinline +LONG +_InlineInterlockedAdd ( + LONG volatile *Addend, + LONG Value + ) + +{ + return _InterlockedExchangeAdd(Addend, Value) + Value; +} + + + +LONG +_InterlockedCompareExchange ( + LONG volatile *Destination, + LONG ExChange, + LONG Comperand + ); + +LONG64 +_InterlockedIncrement64 ( + LONG64 volatile *Addend + ); + +LONG64 +_InterlockedDecrement64 ( + LONG64 volatile *Addend + ); + +LONG64 +_InterlockedExchange64 ( + LONG64 volatile *Target, + LONG64 Value + ); + +LONG64 +_InterlockedExchangeAdd64 ( + LONG64 volatile *Addend, + LONG64 Value + ); + + + +__forceinline +LONG64 +_InlineInterlockedAdd64 ( + LONG64 volatile *Addend, + LONG64 Value + ) + +{ + return _InterlockedExchangeAdd64(Addend, Value) + Value; +} + + + +LONG64 +_InterlockedCompareExchange64 ( + LONG64 volatile *Destination, + LONG64 ExChange, + LONG64 Comperand + ); + +BOOLEAN +_InterlockedCompareExchange128 ( + LONG64 volatile *Destination, + LONG64 ExchangeHigh, + LONG64 ExchangeLow, + LONG64 *ComparandResult + ); + + PVOID +_InterlockedCompareExchangePointer ( + + + + PVOID volatile *Destination, + PVOID Exchange, + PVOID Comperand + ); + + PVOID +_InterlockedExchangePointer( + + + + PVOID volatile *Target, + PVOID Value + ); + + +#pragma intrinsic(_InterlockedIncrement16) +#pragma intrinsic(_InterlockedDecrement16) +#pragma intrinsic(_InterlockedCompareExchange16) +#pragma intrinsic(_InterlockedAnd) +#pragma intrinsic(_InterlockedOr) +#pragma intrinsic(_InterlockedXor) +#pragma intrinsic(_InterlockedIncrement) +#pragma intrinsic(_InterlockedDecrement) +#pragma intrinsic(_InterlockedExchange) +#pragma intrinsic(_InterlockedExchangeAdd) +#pragma intrinsic(_InterlockedCompareExchange) +#pragma intrinsic(_InterlockedAnd64) +#pragma intrinsic(_InterlockedOr64) +#pragma intrinsic(_InterlockedXor64) +#pragma intrinsic(_InterlockedIncrement64) +#pragma intrinsic(_InterlockedDecrement64) +#pragma intrinsic(_InterlockedExchange64) +#pragma intrinsic(_InterlockedExchangeAdd64) +#pragma intrinsic(_InterlockedCompareExchange64) + + + +#pragma intrinsic(_InterlockedCompareExchange128) + + + +#pragma intrinsic(_InterlockedExchangePointer) +#pragma intrinsic(_InterlockedCompareExchangePointer) +# 3272 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +CHAR +_InterlockedExchange8 ( + CHAR volatile *Target, + CHAR Value + ); + +SHORT +_InterlockedExchange16 ( + SHORT volatile *Destination, + SHORT ExChange + ); + + +#pragma intrinsic(_InterlockedExchange8) +#pragma intrinsic(_InterlockedExchange16) +# 3310 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +char +_InterlockedExchangeAdd8 ( + char volatile * _Addend, + char _Value + ); + +char +_InterlockedAnd8 ( + char volatile *Destination, + char Value + ); + +char +_InterlockedOr8 ( + char volatile *Destination, + char Value + ); + +char +_InterlockedXor8 ( + char volatile *Destination, + char Value + ); + +SHORT +_InterlockedAnd16( + SHORT volatile *Destination, + SHORT Value + ); + +SHORT +_InterlockedOr16( + SHORT volatile *Destination, + SHORT Value + ); + +SHORT +_InterlockedXor16( + SHORT volatile *Destination, + SHORT Value + ); + + +#pragma intrinsic (_InterlockedExchangeAdd8) +#pragma intrinsic (_InterlockedAnd8) +#pragma intrinsic (_InterlockedOr8) +#pragma intrinsic (_InterlockedXor8) +#pragma intrinsic (_InterlockedAnd16) +#pragma intrinsic (_InterlockedOr16) +#pragma intrinsic (_InterlockedXor16) +# 3385 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +void + + + +__cpuidex ( + int CPUInfo[4], + int Function, + int SubLeaf + ); + + + +#pragma intrinsic(__cpuidex) +# 3453 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +void +_mm_clflush ( + void const *Address + ); + +#pragma intrinsic(_mm_clflush) + + + + + + + + +void +_ReadWriteBarrier ( + void + ); + +#pragma intrinsic(_ReadWriteBarrier) +# 3501 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +void +__faststorefence ( + void + ); +# 3514 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +void +_mm_lfence ( + void + ); + +void +_mm_mfence ( + void + ); + +void +_mm_sfence ( + void + ); + +void +_mm_pause ( + void + ); + +void +_mm_prefetch ( + CHAR const *a, + int sel + ); + +void +_m_prefetchw ( + volatile const void *Source + ); +# 3562 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma intrinsic(__faststorefence) +# 3572 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma intrinsic(_mm_pause) +#pragma intrinsic(_mm_prefetch) +#pragma intrinsic(_mm_lfence) +#pragma intrinsic(_mm_mfence) +#pragma intrinsic(_mm_sfence) +#pragma intrinsic(_m_prefetchw) +# 3607 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +unsigned int +_mm_getcsr ( + void + ); + +void +_mm_setcsr ( + unsigned int MxCsr + ); + + + +#pragma intrinsic(_mm_getcsr) +#pragma intrinsic(_mm_setcsr) +# 3632 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +unsigned __int32 +__getcallerseflags ( + void + ); + +#pragma intrinsic(__getcallerseflags) + + + + + + + +DWORD +__segmentlimit ( + DWORD Selector + ); + +#pragma intrinsic(__segmentlimit) + + + + + + + +DWORD64 +__readpmc ( + DWORD Counter + ); + +#pragma intrinsic(__readpmc) + + + + + + + +DWORD64 +__rdtsc ( + void + ); + +#pragma intrinsic(__rdtsc) + + + + + +void +__movsb ( + PBYTE Destination, + BYTE const *Source, + SIZE_T Count + ); + +void +__movsw ( + PWORD Destination, + WORD const *Source, + SIZE_T Count + ); + +void +__movsd ( + PDWORD Destination, + DWORD const *Source, + SIZE_T Count + ); + +void +__movsq ( + PDWORD64 Destination, + DWORD64 const *Source, + SIZE_T Count + ); + +#pragma intrinsic(__movsb) +#pragma intrinsic(__movsw) +#pragma intrinsic(__movsd) +#pragma intrinsic(__movsq) + + + + + +void +__stosb ( + PBYTE Destination, + BYTE Value, + SIZE_T Count + ); + +void +__stosw ( + PWORD Destination, + WORD Value, + SIZE_T Count + ); + +void +__stosd ( + PDWORD Destination, + DWORD Value, + SIZE_T Count + ); + +void +__stosq ( + PDWORD64 Destination, + DWORD64 Value, + SIZE_T Count + ); + +#pragma intrinsic(__stosb) +#pragma intrinsic(__stosw) +#pragma intrinsic(__stosd) +#pragma intrinsic(__stosq) + + + + + + + + +LONGLONG +__mulh ( + LONG64 Multiplier, + LONG64 Multiplicand + ); + +ULONGLONG +__umulh ( + DWORD64 Multiplier, + DWORD64 Multiplicand + ); + +#pragma intrinsic(__mulh) +#pragma intrinsic(__umulh) +# 3791 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +DWORD64 +__popcnt64 ( + DWORD64 operand + ); + + + + +#pragma intrinsic(__popcnt64) +# 3820 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +DWORD64 +__shiftleft128 ( + DWORD64 LowPart, + DWORD64 HighPart, + BYTE Shift + ); + +DWORD64 +__shiftright128 ( + DWORD64 LowPart, + DWORD64 HighPart, + BYTE Shift + ); + + + +#pragma intrinsic(__shiftleft128) +#pragma intrinsic(__shiftright128) +# 3856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +LONG64 +_mul128 ( + LONG64 Multiplier, + LONG64 Multiplicand, + LONG64 *HighProduct + ); + + + +#pragma intrinsic(_mul128) + + + + + +DWORD64 +UnsignedMultiply128 ( + DWORD64 Multiplier, + DWORD64 Multiplicand, + DWORD64 *HighProduct + ); +# 3889 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +DWORD64 +_umul128 ( + DWORD64 Multiplier, + DWORD64 Multiplicand, + DWORD64 *HighProduct + ); + +LONG64 +_mul128 ( + LONG64 Multiplier, + LONG64 Multiplicand, + LONG64 *HighProduct + ); + + + +#pragma intrinsic(_umul128) + + + + + +__forceinline +LONG64 +MultiplyExtract128 ( + LONG64 Multiplier, + LONG64 Multiplicand, + BYTE Shift + ) + +{ + + LONG64 extractedProduct; + LONG64 highProduct; + LONG64 lowProduct; + BOOLEAN negate; + DWORD64 uhighProduct; + DWORD64 ulowProduct; + + lowProduct = _mul128(Multiplier, Multiplicand, &highProduct); + negate = 0; + uhighProduct = (DWORD64)highProduct; + ulowProduct = (DWORD64)lowProduct; + if (highProduct < 0) { + negate = 1; + uhighProduct = (DWORD64)(-highProduct); + ulowProduct = (DWORD64)(-lowProduct); + if (ulowProduct != 0) { + uhighProduct -= 1; + } + } + + extractedProduct = (LONG64)__shiftright128(ulowProduct, uhighProduct, Shift); + if (negate != 0) { + extractedProduct = -extractedProduct; + } + + return extractedProduct; +} + +__forceinline +DWORD64 +UnsignedMultiplyExtract128 ( + DWORD64 Multiplier, + DWORD64 Multiplicand, + BYTE Shift + ) + +{ + + DWORD64 extractedProduct; + DWORD64 highProduct; + DWORD64 lowProduct; + + lowProduct = _umul128(Multiplier, Multiplicand, &highProduct); + extractedProduct = __shiftright128(lowProduct, highProduct, Shift); + return extractedProduct; +} + + + + + + + +BYTE +__readgsbyte ( + DWORD Offset + ); + +WORD +__readgsword ( + DWORD Offset + ); + +DWORD +__readgsdword ( + DWORD Offset + ); + +DWORD64 +__readgsqword ( + DWORD Offset + ); + +void +__writegsbyte ( + DWORD Offset, + BYTE Data + ); + +void +__writegsword ( + DWORD Offset, + WORD Data + ); + +void +__writegsdword ( + DWORD Offset, + DWORD Data + ); + +void +__writegsqword ( + DWORD Offset, + DWORD64 Data + ); + +#pragma intrinsic(__readgsbyte) +#pragma intrinsic(__readgsword) +#pragma intrinsic(__readgsdword) +#pragma intrinsic(__readgsqword) +#pragma intrinsic(__writegsbyte) +#pragma intrinsic(__writegsword) +#pragma intrinsic(__writegsdword) +#pragma intrinsic(__writegsqword) + + + +void +__incgsbyte ( + DWORD Offset + ); + +void +__addgsbyte ( + DWORD Offset, + BYTE Value + ); + +void +__incgsword ( + DWORD Offset + ); + +void +__addgsword ( + DWORD Offset, + WORD Value + ); + +void +__incgsdword ( + DWORD Offset + ); + +void +__addgsdword ( + DWORD Offset, + DWORD Value + ); + +void +__incgsqword ( + DWORD Offset + ); + +void +__addgsqword ( + DWORD Offset, + DWORD64 Value + ); +# 4169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef XSAVE_FORMAT XMM_SAVE_AREA32, *PXMM_SAVE_AREA32; +# 4206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct __declspec(align(16)) +# 4206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma warning(push) +# 4206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma warning(disable: 4845) +# 4206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + __declspec(no_init_all) +# 4206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma warning(pop) +# 4206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + _CONTEXT { +# 4215 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + DWORD64 P1Home; + DWORD64 P2Home; + DWORD64 P3Home; + DWORD64 P4Home; + DWORD64 P5Home; + DWORD64 P6Home; + + + + + + DWORD ContextFlags; + DWORD MxCsr; + + + + + + WORD SegCs; + WORD SegDs; + WORD SegEs; + WORD SegFs; + WORD SegGs; + WORD SegSs; + DWORD EFlags; + + + + + + DWORD64 Dr0; + DWORD64 Dr1; + DWORD64 Dr2; + DWORD64 Dr3; + DWORD64 Dr6; + DWORD64 Dr7; + + + + + + DWORD64 Rax; + DWORD64 Rcx; + DWORD64 Rdx; + DWORD64 Rbx; + DWORD64 Rsp; + DWORD64 Rbp; + DWORD64 Rsi; + DWORD64 Rdi; + DWORD64 R8; + DWORD64 R9; + DWORD64 R10; + DWORD64 R11; + DWORD64 R12; + DWORD64 R13; + DWORD64 R14; + DWORD64 R15; + + + + + + DWORD64 Rip; + + + + + + union { + XMM_SAVE_AREA32 FltSave; + struct { + M128A Header[2]; + M128A Legacy[8]; + M128A Xmm0; + M128A Xmm1; + M128A Xmm2; + M128A Xmm3; + M128A Xmm4; + M128A Xmm5; + M128A Xmm6; + M128A Xmm7; + M128A Xmm8; + M128A Xmm9; + M128A Xmm10; + M128A Xmm11; + M128A Xmm12; + M128A Xmm13; + M128A Xmm14; + M128A Xmm15; + } ; + } ; + + + + + + M128A VectorRegister[26]; + DWORD64 VectorControl; + + + + + + DWORD64 DebugControl; + DWORD64 LastBranchToRip; + DWORD64 LastBranchFromRip; + DWORD64 LastExceptionToRip; + DWORD64 LastExceptionFromRip; +} CONTEXT, *PCONTEXT; +# 4332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_RUNTIME_FUNCTION_ENTRY RUNTIME_FUNCTION, *PRUNTIME_FUNCTION; +typedef SCOPE_TABLE_AMD64 SCOPE_TABLE, *PSCOPE_TABLE; +# 4354 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef + +PRUNTIME_FUNCTION +GET_RUNTIME_FUNCTION_CALLBACK ( + DWORD64 ControlPc, + PVOID Context + ); +typedef GET_RUNTIME_FUNCTION_CALLBACK *PGET_RUNTIME_FUNCTION_CALLBACK; + +typedef + +DWORD +OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK ( + HANDLE Process, + PVOID TableAddress, + PDWORD Entries, + PRUNTIME_FUNCTION* Functions + ); +typedef OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK *POUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK; +# 4381 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _DISPATCHER_CONTEXT { + DWORD64 ControlPc; + DWORD64 ImageBase; + PRUNTIME_FUNCTION FunctionEntry; + DWORD64 EstablisherFrame; + DWORD64 TargetIp; + PCONTEXT ContextRecord; + PEXCEPTION_ROUTINE LanguageHandler; + PVOID HandlerData; + struct _UNWIND_HISTORY_TABLE *HistoryTable; + DWORD ScopeIndex; + DWORD Fill0; +} DISPATCHER_CONTEXT, *PDISPATCHER_CONTEXT; +# 4421 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +struct _EXCEPTION_POINTERS; +typedef +LONG +(*PEXCEPTION_FILTER) ( + struct _EXCEPTION_POINTERS *ExceptionPointers, + PVOID EstablisherFrame + ); + +typedef +void +(*PTERMINATION_HANDLER) ( + BOOLEAN _abnormal_termination, + PVOID EstablisherFrame + ); + + + + + +typedef struct _KNONVOLATILE_CONTEXT_POINTERS { + union { + PM128A FloatingContext[16]; + struct { + PM128A Xmm0; + PM128A Xmm1; + PM128A Xmm2; + PM128A Xmm3; + PM128A Xmm4; + PM128A Xmm5; + PM128A Xmm6; + PM128A Xmm7; + PM128A Xmm8; + PM128A Xmm9; + PM128A Xmm10; + PM128A Xmm11; + PM128A Xmm12; + PM128A Xmm13; + PM128A Xmm14; + PM128A Xmm15; + } ; + } ; + + union { + PDWORD64 IntegerContext[16]; + struct { + PDWORD64 Rax; + PDWORD64 Rcx; + PDWORD64 Rdx; + PDWORD64 Rbx; + PDWORD64 Rsp; + PDWORD64 Rbp; + PDWORD64 Rsi; + PDWORD64 Rdi; + PDWORD64 R8; + PDWORD64 R9; + PDWORD64 R10; + PDWORD64 R11; + PDWORD64 R12; + PDWORD64 R13; + PDWORD64 R14; + PDWORD64 R15; + } ; + } ; + +} KNONVOLATILE_CONTEXT_POINTERS, *PKNONVOLATILE_CONTEXT_POINTERS; +# 4497 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _SCOPE_TABLE_ARM { + DWORD Count; + struct + { + DWORD BeginAddress; + DWORD EndAddress; + DWORD HandlerAddress; + DWORD JumpTarget; + } ScopeRecord[1]; +} SCOPE_TABLE_ARM, *PSCOPE_TABLE_ARM; +# 5359 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _SCOPE_TABLE_ARM64 { + DWORD Count; + struct + { + DWORD BeginAddress; + DWORD EndAddress; + DWORD HandlerAddress; + DWORD JumpTarget; + } ScopeRecord[1]; +} SCOPE_TABLE_ARM64, *PSCOPE_TABLE_ARM64; +# 6520 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef union _ARM64_NT_NEON128 { + struct { + ULONGLONG Low; + LONGLONG High; + } ; + double D[2]; + float S[4]; + WORD H[8]; + BYTE B[16]; +} ARM64_NT_NEON128, *PARM64_NT_NEON128; +# 6549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct __declspec(align(16)) +# 6549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma warning(push) +# 6549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma warning(disable: 4845) +# 6549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + __declspec(no_init_all) +# 6549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma warning(pop) +# 6549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + _ARM64_NT_CONTEXT { + + + + + + DWORD ContextFlags; + + + + + + DWORD Cpsr; + union { + struct { + DWORD64 X0; + DWORD64 X1; + DWORD64 X2; + DWORD64 X3; + DWORD64 X4; + DWORD64 X5; + DWORD64 X6; + DWORD64 X7; + DWORD64 X8; + DWORD64 X9; + DWORD64 X10; + DWORD64 X11; + DWORD64 X12; + DWORD64 X13; + DWORD64 X14; + DWORD64 X15; + DWORD64 X16; + DWORD64 X17; + DWORD64 X18; + DWORD64 X19; + DWORD64 X20; + DWORD64 X21; + DWORD64 X22; + DWORD64 X23; + DWORD64 X24; + DWORD64 X25; + DWORD64 X26; + DWORD64 X27; + DWORD64 X28; + DWORD64 Fp; + DWORD64 Lr; + } ; + DWORD64 X[31]; + } ; + DWORD64 Sp; + DWORD64 Pc; + + + + + + ARM64_NT_NEON128 V[32]; + DWORD Fpcr; + DWORD Fpsr; + + + + + + DWORD Bcr[8]; + DWORD64 Bvr[8]; + DWORD Wcr[2]; + DWORD64 Wvr[2]; + + +} ARM64_NT_CONTEXT, *PARM64_NT_CONTEXT; +# 6633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct __declspec(align(16)) +# 6633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma warning(push) +# 6633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma warning(disable: 4845) +# 6633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + __declspec(no_init_all) +# 6633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma warning(pop) +# 6633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + _ARM64EC_NT_CONTEXT { + union { + struct { + + + + + + DWORD64 AMD64_P1Home; + DWORD64 AMD64_P2Home; + DWORD64 AMD64_P3Home; + DWORD64 AMD64_P4Home; + DWORD64 AMD64_P5Home; + DWORD64 AMD64_P6Home; + + + + + + DWORD ContextFlags; + + DWORD AMD64_MxCsr_copy; + + + + + + + WORD AMD64_SegCs; + WORD AMD64_SegDs; + WORD AMD64_SegEs; + WORD AMD64_SegFs; + WORD AMD64_SegGs; + WORD AMD64_SegSs; + + + + + + DWORD AMD64_EFlags; + + + + + + DWORD64 AMD64_Dr0; + DWORD64 AMD64_Dr1; + DWORD64 AMD64_Dr2; + DWORD64 AMD64_Dr3; + DWORD64 AMD64_Dr6; + DWORD64 AMD64_Dr7; + + + + + + DWORD64 X8; + DWORD64 X0; + DWORD64 X1; + DWORD64 X27; + DWORD64 Sp; + DWORD64 Fp; + DWORD64 X25; + DWORD64 X26; + DWORD64 X2; + DWORD64 X3; + DWORD64 X4; + DWORD64 X5; + DWORD64 X19; + DWORD64 X20; + DWORD64 X21; + DWORD64 X22; + + + + + + DWORD64 Pc; + + + + + + struct { + WORD AMD64_ControlWord; + WORD AMD64_StatusWord; + BYTE AMD64_TagWord; + BYTE AMD64_Reserved1; + WORD AMD64_ErrorOpcode; + DWORD AMD64_ErrorOffset; + WORD AMD64_ErrorSelector; + WORD AMD64_Reserved2; + DWORD AMD64_DataOffset; + WORD AMD64_DataSelector; + WORD AMD64_Reserved3; + + DWORD AMD64_MxCsr; + DWORD AMD64_MxCsr_Mask; + + DWORD64 Lr; + WORD X16_0; + WORD AMD64_St0_Reserved1; + DWORD AMD64_St0_Reserved2; + DWORD64 X6; + WORD X16_1; + WORD AMD64_St1_Reserved1; + DWORD AMD64_St1_Reserved2; + DWORD64 X7; + WORD X16_2; + WORD AMD64_St2_Reserved1; + DWORD AMD64_St2_Reserved2; + DWORD64 X9; + WORD X16_3; + WORD AMD64_St3_Reserved1; + DWORD AMD64_St3_Reserved2; + DWORD64 X10; + WORD X17_0; + WORD AMD64_St4_Reserved1; + DWORD AMD64_St4_Reserved2; + DWORD64 X11; + WORD X17_1; + WORD AMD64_St5_Reserved1; + DWORD AMD64_St5_Reserved2; + DWORD64 X12; + WORD X17_2; + WORD AMD64_St6_Reserved1; + DWORD AMD64_St6_Reserved2; + DWORD64 X15; + WORD X17_3; + WORD AMD64_St7_Reserved1; + DWORD AMD64_St7_Reserved2; + + ARM64_NT_NEON128 V[16]; + BYTE AMD64_XSAVE_FORMAT_Reserved4[96]; + } ; + + + + + + ARM64_NT_NEON128 AMD64_VectorRegister[26]; + DWORD64 AMD64_VectorControl; + + + + + + DWORD64 AMD64_DebugControl; + DWORD64 AMD64_LastBranchToRip; + DWORD64 AMD64_LastBranchFromRip; + DWORD64 AMD64_LastExceptionToRip; + DWORD64 AMD64_LastExceptionFromRip; + + + } ; + + + + + + + + } ; +} ARM64EC_NT_CONTEXT, *PARM64EC_NT_CONTEXT; +# 6819 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY ARM64_RUNTIME_FUNCTION, *PARM64_RUNTIME_FUNCTION; +# 6853 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef union _DISPATCHER_CONTEXT_NONVOLREG_ARM64 { + BYTE Buffer[((11) * sizeof(DWORD64)) + ((8) * sizeof(double))]; + + struct { + DWORD64 GpNvRegs[(11)]; + double FpNvRegs [(8)]; + } ; +} DISPATCHER_CONTEXT_NONVOLREG_ARM64; + + + +typedef char __C_ASSERT__[(sizeof(DISPATCHER_CONTEXT_NONVOLREG_ARM64) == (((11) * sizeof(DWORD64)) + ((8) * sizeof(double))))?1:-1]; + + + +typedef struct _DISPATCHER_CONTEXT_ARM64 { + ULONG_PTR ControlPc; + ULONG_PTR ImageBase; + PARM64_RUNTIME_FUNCTION FunctionEntry; + ULONG_PTR EstablisherFrame; + ULONG_PTR TargetPc; + PARM64_NT_CONTEXT ContextRecord; + PEXCEPTION_ROUTINE LanguageHandler; + PVOID HandlerData; + struct _UNWIND_HISTORY_TABLE *HistoryTable; + DWORD ScopeIndex; + BOOLEAN ControlPcIsUnwound; + PBYTE NonVolatileRegisters; +} DISPATCHER_CONTEXT_ARM64, *PDISPATCHER_CONTEXT_ARM64; +# 6952 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _KNONVOLATILE_CONTEXT_POINTERS_ARM64 { + + PDWORD64 X19; + PDWORD64 X20; + PDWORD64 X21; + PDWORD64 X22; + PDWORD64 X23; + PDWORD64 X24; + PDWORD64 X25; + PDWORD64 X26; + PDWORD64 X27; + PDWORD64 X28; + PDWORD64 Fp; + PDWORD64 Lr; + + PDWORD64 D8; + PDWORD64 D9; + PDWORD64 D10; + PDWORD64 D11; + PDWORD64 D12; + PDWORD64 D13; + PDWORD64 D14; + PDWORD64 D15; + +} KNONVOLATILE_CONTEXT_POINTERS_ARM64, *PKNONVOLATILE_CONTEXT_POINTERS_ARM64; +# 7014 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +void +__int2c ( + void + ); + +#pragma intrinsic(__int2c) +# 8334 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _LDT_ENTRY { + WORD LimitLow; + WORD BaseLow; + union { + struct { + BYTE BaseMid; + BYTE Flags1; + BYTE Flags2; + BYTE BaseHi; + } Bytes; + struct { + DWORD BaseMid : 8; + DWORD Type : 5; + DWORD Dpl : 2; + DWORD Pres : 1; + DWORD LimitHi : 4; + DWORD Sys : 1; + DWORD Reserved_0 : 1; + DWORD Default_Big : 1; + DWORD Granularity : 1; + DWORD BaseHi : 8; + } Bits; + } HighWord; +} LDT_ENTRY, *PLDT_ENTRY; +# 8380 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__forceinline +CHAR +ReadAcquire8 ( + CHAR const volatile *Source + ) + +{ + + CHAR Value; + + Value = *Source; + return Value; +} + +__forceinline +CHAR +ReadNoFence8 ( + CHAR const volatile *Source + ) + +{ + + CHAR Value; + + Value = *Source; + return Value; +} + +__forceinline +void +WriteRelease8 ( + CHAR volatile *Destination, + CHAR Value + ) + +{ + + *Destination = Value; + return; +} + +__forceinline +void +WriteNoFence8 ( + CHAR volatile *Destination, + CHAR Value + ) + +{ + + *Destination = Value; + return; +} + +__forceinline +SHORT +ReadAcquire16 ( + SHORT const volatile *Source + ) + +{ + + SHORT Value; + + Value = *Source; + return Value; +} + +__forceinline +SHORT +ReadNoFence16 ( + SHORT const volatile *Source + ) + +{ + + SHORT Value; + + Value = *Source; + return Value; +} + +__forceinline +void +WriteRelease16 ( + SHORT volatile *Destination, + SHORT Value + ) + +{ + + *Destination = Value; + return; +} + +__forceinline +void +WriteNoFence16 ( + SHORT volatile *Destination, + SHORT Value + ) + +{ + + *Destination = Value; + return; +} + +__forceinline +LONG +ReadAcquire ( + LONG const volatile *Source + ) + +{ + + LONG Value; + + Value = *Source; + return Value; +} + +__forceinline +LONG +ReadNoFence ( + LONG const volatile *Source + ) + +{ + + LONG Value; + + Value = *Source; + return Value; +} + +__forceinline +void +WriteRelease ( + LONG volatile *Destination, + LONG Value + ) + +{ + + *Destination = Value; + return; +} + +__forceinline +void +WriteNoFence ( + LONG volatile *Destination, + LONG Value + ) + +{ + + *Destination = Value; + return; +} + +__forceinline +LONG64 +ReadAcquire64 ( + LONG64 const volatile *Source + ) + +{ + + LONG64 Value; + + Value = *Source; + return Value; +} + +__forceinline +LONG64 +ReadNoFence64 ( + LONG64 const volatile *Source + ) + +{ + + LONG64 Value; + + Value = *Source; + return Value; +} + +__forceinline +void +WriteRelease64 ( + LONG64 volatile *Destination, + LONG64 Value + ) + +{ + + *Destination = Value; + return; +} + +__forceinline +void +WriteNoFence64 ( + LONG64 volatile *Destination, + LONG64 Value + ) + +{ + + *Destination = Value; + return; +} + + + +__forceinline +void +BarrierAfterRead ( + void + ) + +{ + _ReadWriteBarrier(); + return; +} +# 8621 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__forceinline +CHAR +ReadRaw8 ( + CHAR const volatile *Source + ) + +{ + + CHAR Value; + + Value = *(CHAR *)Source; + return Value; +} + +__forceinline +void +WriteRaw8 ( + CHAR volatile *Destination, + CHAR Value + ) + +{ + + *(CHAR *)Destination = Value; + return; +} + +__forceinline +SHORT +ReadRaw16 ( + SHORT const volatile *Source + ) + +{ + + SHORT Value; + + Value = *(SHORT *)Source; + return Value; +} + +__forceinline +void +WriteRaw16 ( + SHORT volatile *Destination, + SHORT Value + ) + +{ + + *(SHORT *)Destination = Value; + return; +} + +__forceinline +LONG +ReadRaw ( + LONG const volatile *Source + ) + +{ + + LONG Value; + + Value = *(LONG *)Source; + return Value; +} + +__forceinline +void +WriteRaw ( + LONG volatile *Destination, + LONG Value + ) + +{ + + *(LONG *)Destination = Value; + return; +} + +__forceinline +LONG64 +ReadRaw64 ( + LONG64 const volatile *Source + ) + +{ + + LONG64 Value; + + Value = *(LONG64 *)Source; + return Value; +} + +__forceinline +void +WriteRaw64 ( + LONG64 volatile *Destination, + LONG64 Value + ) + +{ + + *(LONG64 *)Destination = Value; + return; +} + + + + + +__forceinline +BYTE +ReadUCharAcquire ( + BYTE const volatile *Source + ) + +{ + + return (BYTE )ReadAcquire8((PCHAR)Source); +} + +__forceinline +BYTE +ReadUCharNoFence ( + BYTE const volatile *Source + ) + +{ + + return (BYTE )ReadNoFence8((PCHAR)Source); +} + +__forceinline +BYTE +ReadBooleanAcquire ( + BOOLEAN const volatile *Source + ) + +{ + + return (BOOLEAN)ReadAcquire8((PCHAR)Source); +} + +__forceinline +BYTE +ReadBooleanNoFence ( + BOOLEAN const volatile *Source + ) + +{ + + return (BOOLEAN)ReadNoFence8((PCHAR)Source); +} + +__forceinline +BYTE +ReadBooleanRaw ( + BOOLEAN const volatile *Source + ) + +{ + return (BOOLEAN)ReadRaw8((PCHAR)Source); +} + +__forceinline +BYTE +ReadUCharRaw ( + BYTE const volatile *Source + ) + +{ + + return (BYTE )ReadRaw8((PCHAR)Source); +} + +__forceinline +void +WriteUCharRelease ( + BYTE volatile *Destination, + BYTE Value + ) + +{ + + WriteRelease8((PCHAR)Destination, (CHAR)Value); + return; +} + +__forceinline +void +WriteUCharNoFence ( + BYTE volatile *Destination, + BYTE Value + ) + +{ + + WriteNoFence8((PCHAR)Destination, (CHAR)Value); + return; +} + +__forceinline +void +WriteBooleanRelease ( + BOOLEAN volatile *Destination, + BOOLEAN Value + ) + +{ + + WriteRelease8((PCHAR)Destination, (CHAR)Value); + return; +} + +__forceinline +void +WriteBooleanNoFence ( + BOOLEAN volatile *Destination, + BOOLEAN Value + ) + +{ + + WriteNoFence8((PCHAR)Destination, (CHAR)Value); + return; +} + +__forceinline +void +WriteUCharRaw ( + BYTE volatile *Destination, + BYTE Value + ) + +{ + + WriteRaw8((PCHAR)Destination, (CHAR)Value); + return; +} + +__forceinline +WORD +ReadUShortAcquire ( + WORD const volatile *Source + ) + +{ + + return (WORD )ReadAcquire16((PSHORT)Source); +} + +__forceinline +WORD +ReadUShortNoFence ( + WORD const volatile *Source + ) + +{ + + return (WORD )ReadNoFence16((PSHORT)Source); +} + +__forceinline +WORD +ReadUShortRaw ( + WORD const volatile *Source + ) + +{ + + return (WORD )ReadRaw16((PSHORT)Source); +} + +__forceinline +void +WriteUShortRelease ( + WORD volatile *Destination, + WORD Value + ) + +{ + + WriteRelease16((PSHORT)Destination, (SHORT)Value); + return; +} + +__forceinline +void +WriteUShortNoFence ( + WORD volatile *Destination, + WORD Value + ) + +{ + + WriteNoFence16((PSHORT)Destination, (SHORT)Value); + return; +} + +__forceinline +void +WriteUShortRaw ( + WORD volatile *Destination, + WORD Value + ) + +{ + + WriteRaw16((PSHORT)Destination, (SHORT)Value); + return; +} + +__forceinline +DWORD +ReadULongAcquire ( + DWORD const volatile *Source + ) + +{ + + return (DWORD)ReadAcquire((PLONG)Source); +} + +__forceinline +DWORD +ReadULongNoFence ( + DWORD const volatile *Source + ) + +{ + + return (DWORD)ReadNoFence((PLONG)Source); +} + +__forceinline +DWORD +ReadULongRaw ( + DWORD const volatile *Source + ) + +{ + + return (DWORD)ReadRaw((PLONG)Source); +} + +__forceinline +void +WriteULongRelease ( + DWORD volatile *Destination, + DWORD Value + ) + +{ + + WriteRelease((PLONG)Destination, (LONG)Value); + return; +} + +__forceinline +void +WriteULongNoFence ( + DWORD volatile *Destination, + DWORD Value + ) + +{ + + WriteNoFence((PLONG)Destination, (LONG)Value); + return; +} + +__forceinline +void +WriteULongRaw ( + DWORD volatile *Destination, + DWORD Value + ) + +{ + + WriteRaw((PLONG)Destination, (LONG)Value); + return; +} + +__forceinline +INT32 +ReadInt32Acquire ( + INT32 const volatile *Source + ) + +{ + + return (INT32)ReadAcquire((PLONG)Source); +} + +__forceinline +INT32 +ReadInt32NoFence ( + INT32 const volatile *Source + ) + +{ + + return (INT32)ReadNoFence((PLONG)Source); +} + +__forceinline +INT32 +ReadInt32Raw ( + INT32 const volatile *Source + ) + +{ + + return (INT32)ReadRaw((PLONG)Source); +} + +__forceinline +void +WriteInt32Release ( + INT32 volatile *Destination, + INT32 Value + ) + +{ + + WriteRelease((PLONG)Destination, (LONG)Value); + return; +} + +__forceinline +void +WriteInt32NoFence ( + INT32 volatile *Destination, + INT32 Value + ) + +{ + + WriteNoFence((PLONG)Destination, (LONG)Value); + return; +} + +__forceinline +void +WriteInt32Raw ( + INT32 volatile *Destination, + INT32 Value + ) + +{ + + WriteRaw((PLONG)Destination, (LONG)Value); + return; +} + +__forceinline +UINT32 +ReadUInt32Acquire ( + UINT32 const volatile *Source + ) + +{ + + return (UINT32)ReadAcquire((PLONG)Source); +} + +__forceinline +UINT32 +ReadUInt32NoFence ( + UINT32 const volatile *Source + ) + +{ + + return (UINT32)ReadNoFence((PLONG)Source); +} + +__forceinline +UINT32 +ReadUInt32Raw ( + UINT32 const volatile *Source + ) + +{ + + return (UINT32)ReadRaw((PLONG)Source); +} + +__forceinline +void +WriteUInt32Release ( + UINT32 volatile *Destination, + UINT32 Value + ) + +{ + + WriteRelease((PLONG)Destination, (LONG)Value); + return; +} + +__forceinline +void +WriteUInt32NoFence ( + UINT32 volatile *Destination, + UINT32 Value + ) + +{ + + WriteNoFence((PLONG)Destination, (LONG)Value); + return; +} + +__forceinline +void +WriteUInt32Raw ( + UINT32 volatile *Destination, + UINT32 Value + ) + +{ + + WriteRaw((PLONG)Destination, (LONG)Value); + return; +} + +__forceinline +DWORD64 +ReadULong64Acquire ( + DWORD64 const volatile *Source + ) + +{ + + return (DWORD64)ReadAcquire64((PLONG64)Source); +} + +__forceinline +DWORD64 +ReadULong64NoFence ( + DWORD64 const volatile *Source + ) + +{ + + return (DWORD64)ReadNoFence64((PLONG64)Source); +} + +__forceinline +DWORD64 +ReadULong64Raw ( + DWORD64 const volatile *Source + ) + +{ + + return (DWORD64)ReadRaw64((PLONG64)Source); +} + +__forceinline +void +WriteULong64Release ( + DWORD64 volatile *Destination, + DWORD64 Value + ) + +{ + + WriteRelease64((PLONG64)Destination, (LONG64)Value); + return; +} + +__forceinline +void +WriteULong64NoFence ( + DWORD64 volatile *Destination, + DWORD64 Value + ) + +{ + + WriteNoFence64((PLONG64)Destination, (LONG64)Value); + return; +} + +__forceinline +void +WriteULong64Raw ( + DWORD64 volatile *Destination, + DWORD64 Value + ) + +{ + + WriteRaw64((PLONG64)Destination, (LONG64)Value); + return; +} +# 9335 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__forceinline +PVOID +ReadPointerAcquire ( + PVOID const volatile *Source + ) + +{ + + return (PVOID)ReadAcquire64((PLONG64)Source); +} + +__forceinline +PVOID +ReadPointerNoFence ( + PVOID const volatile *Source + ) + +{ + + return (PVOID)ReadNoFence64((PLONG64)Source); +} + +__forceinline +PVOID +ReadPointerRaw ( + PVOID const volatile *Source + ) + +{ + + return (PVOID)ReadRaw64((PLONG64)Source); +} + +__forceinline +void +WritePointerRelease ( + PVOID volatile *Destination, + PVOID Value + ) + +{ + + WriteRelease64((PLONG64)Destination, (LONG64)Value); + return; +} + +__forceinline +void +WritePointerNoFence ( + PVOID volatile *Destination, + PVOID Value + ) + +{ + + WriteNoFence64((PLONG64)Destination, (LONG64)Value); + return; +} + +__forceinline +void +WritePointerRaw ( + PVOID volatile *Destination, + PVOID Value + ) + +{ + + WriteRaw64((PLONG64)Destination, (LONG64)Value); + return; +} +# 9439 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma warning(push) +#pragma warning(disable: 4214) +#pragma warning(disable: 4668) +#pragma warning(disable: 4820) +# 9480 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _WOW64_FLOATING_SAVE_AREA { + DWORD ControlWord; + DWORD StatusWord; + DWORD TagWord; + DWORD ErrorOffset; + DWORD ErrorSelector; + DWORD DataOffset; + DWORD DataSelector; + BYTE RegisterArea[80]; + DWORD Cr0NpxState; +} WOW64_FLOATING_SAVE_AREA; + +typedef WOW64_FLOATING_SAVE_AREA *PWOW64_FLOATING_SAVE_AREA; + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,4) +# 9495 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 +# 9506 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _WOW64_CONTEXT { +# 9526 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + DWORD ContextFlags; + + + + + + + + DWORD Dr0; + DWORD Dr1; + DWORD Dr2; + DWORD Dr3; + DWORD Dr6; + DWORD Dr7; + + + + + + + WOW64_FLOATING_SAVE_AREA FloatSave; + + + + + + + DWORD SegGs; + DWORD SegFs; + DWORD SegEs; + DWORD SegDs; + + + + + + + DWORD Edi; + DWORD Esi; + DWORD Ebx; + DWORD Edx; + DWORD Ecx; + DWORD Eax; + + + + + + + DWORD Ebp; + DWORD Eip; + DWORD SegCs; + DWORD EFlags; + DWORD Esp; + DWORD SegSs; + + + + + + + + BYTE ExtendedRegisters[512]; + +} WOW64_CONTEXT; + +typedef WOW64_CONTEXT *PWOW64_CONTEXT; + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 9595 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + + +typedef struct _WOW64_LDT_ENTRY { + WORD LimitLow; + WORD BaseLow; + union { + struct { + BYTE BaseMid; + BYTE Flags1; + BYTE Flags2; + BYTE BaseHi; + } Bytes; + struct { + DWORD BaseMid : 8; + DWORD Type : 5; + DWORD Dpl : 2; + DWORD Pres : 1; + DWORD LimitHi : 4; + DWORD Sys : 1; + DWORD Reserved_0 : 1; + DWORD Default_Big : 1; + DWORD Granularity : 1; + DWORD BaseHi : 8; + } Bits; + } HighWord; +} WOW64_LDT_ENTRY, *PWOW64_LDT_ENTRY; + +typedef struct _WOW64_DESCRIPTOR_TABLE_ENTRY { + DWORD Selector; + WOW64_LDT_ENTRY Descriptor; +} WOW64_DESCRIPTOR_TABLE_ENTRY, *PWOW64_DESCRIPTOR_TABLE_ENTRY; + + +#pragma warning(pop) +# 9653 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _EXCEPTION_RECORD { + DWORD ExceptionCode; + DWORD ExceptionFlags; + struct _EXCEPTION_RECORD *ExceptionRecord; + PVOID ExceptionAddress; + DWORD NumberParameters; + ULONG_PTR ExceptionInformation[15]; + } EXCEPTION_RECORD; + +typedef EXCEPTION_RECORD *PEXCEPTION_RECORD; + +typedef struct _EXCEPTION_RECORD32 { + DWORD ExceptionCode; + DWORD ExceptionFlags; + DWORD ExceptionRecord; + DWORD ExceptionAddress; + DWORD NumberParameters; + DWORD ExceptionInformation[15]; +} EXCEPTION_RECORD32, *PEXCEPTION_RECORD32; + +typedef struct _EXCEPTION_RECORD64 { + DWORD ExceptionCode; + DWORD ExceptionFlags; + DWORD64 ExceptionRecord; + DWORD64 ExceptionAddress; + DWORD NumberParameters; + DWORD __unusedAlignment; + DWORD64 ExceptionInformation[15]; +} EXCEPTION_RECORD64, *PEXCEPTION_RECORD64; + + + + + +typedef struct _EXCEPTION_POINTERS { + PEXCEPTION_RECORD ExceptionRecord; + PCONTEXT ContextRecord; +} EXCEPTION_POINTERS, *PEXCEPTION_POINTERS; +# 9711 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef PVOID PACCESS_TOKEN; +typedef PVOID PSECURITY_DESCRIPTOR; +typedef PVOID PSID; +typedef PVOID PCLAIMS_BLOB; +# 9755 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef DWORD ACCESS_MASK; +typedef ACCESS_MASK *PACCESS_MASK; +# 9814 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _GENERIC_MAPPING { + ACCESS_MASK GenericRead; + ACCESS_MASK GenericWrite; + ACCESS_MASK GenericExecute; + ACCESS_MASK GenericAll; +} GENERIC_MAPPING; +typedef GENERIC_MAPPING *PGENERIC_MAPPING; +# 9833 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,4) +# 9834 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + +typedef struct _LUID_AND_ATTRIBUTES { + LUID Luid; + DWORD Attributes; + } LUID_AND_ATTRIBUTES, * PLUID_AND_ATTRIBUTES; +typedef LUID_AND_ATTRIBUTES LUID_AND_ATTRIBUTES_ARRAY[1]; +typedef LUID_AND_ATTRIBUTES_ARRAY *PLUID_AND_ATTRIBUTES_ARRAY; + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 9843 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 +# 9877 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _SID_IDENTIFIER_AUTHORITY { + BYTE Value[6]; +} SID_IDENTIFIER_AUTHORITY, *PSID_IDENTIFIER_AUTHORITY; + + + + + +typedef struct _SID { + BYTE Revision; + BYTE SubAuthorityCount; + SID_IDENTIFIER_AUTHORITY IdentifierAuthority; + + + + DWORD SubAuthority[1]; + +} SID, *PISID; +# 9925 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef union _SE_SID { + SID Sid; + BYTE Buffer[(sizeof(SID) - sizeof(DWORD) + ((15) * sizeof(DWORD)))]; +} SE_SID, *PSE_SID; + + + + +typedef enum _SID_NAME_USE { + SidTypeUser = 1, + SidTypeGroup, + SidTypeDomain, + SidTypeAlias, + SidTypeWellKnownGroup, + SidTypeDeletedAccount, + SidTypeInvalid, + SidTypeUnknown, + SidTypeComputer, + SidTypeLabel, + SidTypeLogonSession +} SID_NAME_USE, *PSID_NAME_USE; + +typedef struct _SID_AND_ATTRIBUTES { + + + + PSID Sid; + + DWORD Attributes; + } SID_AND_ATTRIBUTES, * PSID_AND_ATTRIBUTES; + +typedef SID_AND_ATTRIBUTES SID_AND_ATTRIBUTES_ARRAY[1]; +typedef SID_AND_ATTRIBUTES_ARRAY *PSID_AND_ATTRIBUTES_ARRAY; + + +typedef ULONG_PTR SID_HASH_ENTRY, *PSID_HASH_ENTRY; + +typedef struct _SID_AND_ATTRIBUTES_HASH { + DWORD SidCount; + PSID_AND_ATTRIBUTES SidAttr; + SID_HASH_ENTRY Hash[32]; +} SID_AND_ATTRIBUTES_HASH, *PSID_AND_ATTRIBUTES_HASH; +# 10372 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum { + + WinNullSid = 0, + WinWorldSid = 1, + WinLocalSid = 2, + WinCreatorOwnerSid = 3, + WinCreatorGroupSid = 4, + WinCreatorOwnerServerSid = 5, + WinCreatorGroupServerSid = 6, + WinNtAuthoritySid = 7, + WinDialupSid = 8, + WinNetworkSid = 9, + WinBatchSid = 10, + WinInteractiveSid = 11, + WinServiceSid = 12, + WinAnonymousSid = 13, + WinProxySid = 14, + WinEnterpriseControllersSid = 15, + WinSelfSid = 16, + WinAuthenticatedUserSid = 17, + WinRestrictedCodeSid = 18, + WinTerminalServerSid = 19, + WinRemoteLogonIdSid = 20, + WinLogonIdsSid = 21, + WinLocalSystemSid = 22, + WinLocalServiceSid = 23, + WinNetworkServiceSid = 24, + WinBuiltinDomainSid = 25, + WinBuiltinAdministratorsSid = 26, + WinBuiltinUsersSid = 27, + WinBuiltinGuestsSid = 28, + WinBuiltinPowerUsersSid = 29, + WinBuiltinAccountOperatorsSid = 30, + WinBuiltinSystemOperatorsSid = 31, + WinBuiltinPrintOperatorsSid = 32, + WinBuiltinBackupOperatorsSid = 33, + WinBuiltinReplicatorSid = 34, + WinBuiltinPreWindows2000CompatibleAccessSid = 35, + WinBuiltinRemoteDesktopUsersSid = 36, + WinBuiltinNetworkConfigurationOperatorsSid = 37, + WinAccountAdministratorSid = 38, + WinAccountGuestSid = 39, + WinAccountKrbtgtSid = 40, + WinAccountDomainAdminsSid = 41, + WinAccountDomainUsersSid = 42, + WinAccountDomainGuestsSid = 43, + WinAccountComputersSid = 44, + WinAccountControllersSid = 45, + WinAccountCertAdminsSid = 46, + WinAccountSchemaAdminsSid = 47, + WinAccountEnterpriseAdminsSid = 48, + WinAccountPolicyAdminsSid = 49, + WinAccountRasAndIasServersSid = 50, + WinNTLMAuthenticationSid = 51, + WinDigestAuthenticationSid = 52, + WinSChannelAuthenticationSid = 53, + WinThisOrganizationSid = 54, + WinOtherOrganizationSid = 55, + WinBuiltinIncomingForestTrustBuildersSid = 56, + WinBuiltinPerfMonitoringUsersSid = 57, + WinBuiltinPerfLoggingUsersSid = 58, + WinBuiltinAuthorizationAccessSid = 59, + WinBuiltinTerminalServerLicenseServersSid = 60, + WinBuiltinDCOMUsersSid = 61, + WinBuiltinIUsersSid = 62, + WinIUserSid = 63, + WinBuiltinCryptoOperatorsSid = 64, + WinUntrustedLabelSid = 65, + WinLowLabelSid = 66, + WinMediumLabelSid = 67, + WinHighLabelSid = 68, + WinSystemLabelSid = 69, + WinWriteRestrictedCodeSid = 70, + WinCreatorOwnerRightsSid = 71, + WinCacheablePrincipalsGroupSid = 72, + WinNonCacheablePrincipalsGroupSid = 73, + WinEnterpriseReadonlyControllersSid = 74, + WinAccountReadonlyControllersSid = 75, + WinBuiltinEventLogReadersGroup = 76, + WinNewEnterpriseReadonlyControllersSid = 77, + WinBuiltinCertSvcDComAccessGroup = 78, + WinMediumPlusLabelSid = 79, + WinLocalLogonSid = 80, + WinConsoleLogonSid = 81, + WinThisOrganizationCertificateSid = 82, + WinApplicationPackageAuthoritySid = 83, + WinBuiltinAnyPackageSid = 84, + WinCapabilityInternetClientSid = 85, + WinCapabilityInternetClientServerSid = 86, + WinCapabilityPrivateNetworkClientServerSid = 87, + WinCapabilityPicturesLibrarySid = 88, + WinCapabilityVideosLibrarySid = 89, + WinCapabilityMusicLibrarySid = 90, + WinCapabilityDocumentsLibrarySid = 91, + WinCapabilitySharedUserCertificatesSid = 92, + WinCapabilityEnterpriseAuthenticationSid = 93, + WinCapabilityRemovableStorageSid = 94, + WinBuiltinRDSRemoteAccessServersSid = 95, + WinBuiltinRDSEndpointServersSid = 96, + WinBuiltinRDSManagementServersSid = 97, + WinUserModeDriversSid = 98, + WinBuiltinHyperVAdminsSid = 99, + WinAccountCloneableControllersSid = 100, + WinBuiltinAccessControlAssistanceOperatorsSid = 101, + WinBuiltinRemoteManagementUsersSid = 102, + WinAuthenticationAuthorityAssertedSid = 103, + WinAuthenticationServiceAssertedSid = 104, + WinLocalAccountSid = 105, + WinLocalAccountAndAdministratorSid = 106, + WinAccountProtectedUsersSid = 107, + WinCapabilityAppointmentsSid = 108, + WinCapabilityContactsSid = 109, + WinAccountDefaultSystemManagedSid = 110, + WinBuiltinDefaultSystemManagedGroupSid = 111, + WinBuiltinStorageReplicaAdminsSid = 112, + WinAccountKeyAdminsSid = 113, + WinAccountEnterpriseKeyAdminsSid = 114, + WinAuthenticationKeyTrustSid = 115, + WinAuthenticationKeyPropertyMFASid = 116, + WinAuthenticationKeyPropertyAttestationSid = 117, + WinAuthenticationFreshKeyAuthSid = 118, + WinBuiltinDeviceOwnersSid = 119, +} WELL_KNOWN_SID_TYPE; +# 10592 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _ACL { + BYTE AclRevision; + BYTE Sbz1; + WORD AclSize; + WORD AceCount; + WORD Sbz2; +} ACL; +typedef ACL *PACL; +# 10622 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _ACE_HEADER { + BYTE AceType; + BYTE AceFlags; + WORD AceSize; +} ACE_HEADER; +typedef ACE_HEADER *PACE_HEADER; +# 10762 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _ACCESS_ALLOWED_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD SidStart; +} ACCESS_ALLOWED_ACE; + +typedef ACCESS_ALLOWED_ACE *PACCESS_ALLOWED_ACE; + +typedef struct _ACCESS_DENIED_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD SidStart; +} ACCESS_DENIED_ACE; +typedef ACCESS_DENIED_ACE *PACCESS_DENIED_ACE; + +typedef struct _SYSTEM_AUDIT_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD SidStart; +} SYSTEM_AUDIT_ACE; +typedef SYSTEM_AUDIT_ACE *PSYSTEM_AUDIT_ACE; + +typedef struct _SYSTEM_ALARM_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD SidStart; +} SYSTEM_ALARM_ACE; +typedef SYSTEM_ALARM_ACE *PSYSTEM_ALARM_ACE; + +typedef struct _SYSTEM_RESOURCE_ATTRIBUTE_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD SidStart; + +} SYSTEM_RESOURCE_ATTRIBUTE_ACE, *PSYSTEM_RESOURCE_ATTRIBUTE_ACE; + +typedef struct _SYSTEM_SCOPED_POLICY_ID_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD SidStart; +} SYSTEM_SCOPED_POLICY_ID_ACE, *PSYSTEM_SCOPED_POLICY_ID_ACE; + +typedef struct _SYSTEM_MANDATORY_LABEL_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD SidStart; +} SYSTEM_MANDATORY_LABEL_ACE, *PSYSTEM_MANDATORY_LABEL_ACE; + +typedef struct _SYSTEM_PROCESS_TRUST_LABEL_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD SidStart; +} SYSTEM_PROCESS_TRUST_LABEL_ACE, *PSYSTEM_PROCESS_TRUST_LABEL_ACE; + +typedef struct _SYSTEM_ACCESS_FILTER_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD SidStart; + +} SYSTEM_ACCESS_FILTER_ACE, *PSYSTEM_ACCESS_FILTER_ACE; +# 10839 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _ACCESS_ALLOWED_OBJECT_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD Flags; + GUID ObjectType; + GUID InheritedObjectType; + DWORD SidStart; +} ACCESS_ALLOWED_OBJECT_ACE, *PACCESS_ALLOWED_OBJECT_ACE; + +typedef struct _ACCESS_DENIED_OBJECT_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD Flags; + GUID ObjectType; + GUID InheritedObjectType; + DWORD SidStart; +} ACCESS_DENIED_OBJECT_ACE, *PACCESS_DENIED_OBJECT_ACE; + +typedef struct _SYSTEM_AUDIT_OBJECT_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD Flags; + GUID ObjectType; + GUID InheritedObjectType; + DWORD SidStart; +} SYSTEM_AUDIT_OBJECT_ACE, *PSYSTEM_AUDIT_OBJECT_ACE; + +typedef struct _SYSTEM_ALARM_OBJECT_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD Flags; + GUID ObjectType; + GUID InheritedObjectType; + DWORD SidStart; +} SYSTEM_ALARM_OBJECT_ACE, *PSYSTEM_ALARM_OBJECT_ACE; + + + + + + +typedef struct _ACCESS_ALLOWED_CALLBACK_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD SidStart; + +} ACCESS_ALLOWED_CALLBACK_ACE, *PACCESS_ALLOWED_CALLBACK_ACE; + +typedef struct _ACCESS_DENIED_CALLBACK_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD SidStart; + +} ACCESS_DENIED_CALLBACK_ACE, *PACCESS_DENIED_CALLBACK_ACE; + +typedef struct _SYSTEM_AUDIT_CALLBACK_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD SidStart; + +} SYSTEM_AUDIT_CALLBACK_ACE, *PSYSTEM_AUDIT_CALLBACK_ACE; + +typedef struct _SYSTEM_ALARM_CALLBACK_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD SidStart; + +} SYSTEM_ALARM_CALLBACK_ACE, *PSYSTEM_ALARM_CALLBACK_ACE; + +typedef struct _ACCESS_ALLOWED_CALLBACK_OBJECT_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD Flags; + GUID ObjectType; + GUID InheritedObjectType; + DWORD SidStart; + +} ACCESS_ALLOWED_CALLBACK_OBJECT_ACE, *PACCESS_ALLOWED_CALLBACK_OBJECT_ACE; + +typedef struct _ACCESS_DENIED_CALLBACK_OBJECT_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD Flags; + GUID ObjectType; + GUID InheritedObjectType; + DWORD SidStart; + +} ACCESS_DENIED_CALLBACK_OBJECT_ACE, *PACCESS_DENIED_CALLBACK_OBJECT_ACE; + +typedef struct _SYSTEM_AUDIT_CALLBACK_OBJECT_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD Flags; + GUID ObjectType; + GUID InheritedObjectType; + DWORD SidStart; + +} SYSTEM_AUDIT_CALLBACK_OBJECT_ACE, *PSYSTEM_AUDIT_CALLBACK_OBJECT_ACE; + +typedef struct _SYSTEM_ALARM_CALLBACK_OBJECT_ACE { + ACE_HEADER Header; + ACCESS_MASK Mask; + DWORD Flags; + GUID ObjectType; + GUID InheritedObjectType; + DWORD SidStart; + +} SYSTEM_ALARM_CALLBACK_OBJECT_ACE, *PSYSTEM_ALARM_CALLBACK_OBJECT_ACE; +# 10962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _ACL_INFORMATION_CLASS { + AclRevisionInformation = 1, + AclSizeInformation +} ACL_INFORMATION_CLASS; + + + + + + +typedef struct _ACL_REVISION_INFORMATION { + DWORD AclRevision; +} ACL_REVISION_INFORMATION; +typedef ACL_REVISION_INFORMATION *PACL_REVISION_INFORMATION; + + + + + +typedef struct _ACL_SIZE_INFORMATION { + DWORD AceCount; + DWORD AclBytesInUse; + DWORD AclBytesFree; +} ACL_SIZE_INFORMATION; +typedef ACL_SIZE_INFORMATION *PACL_SIZE_INFORMATION; +# 11013 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef WORD SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL; +# 11103 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _SECURITY_DESCRIPTOR_RELATIVE { + BYTE Revision; + BYTE Sbz1; + SECURITY_DESCRIPTOR_CONTROL Control; + DWORD Owner; + DWORD Group; + DWORD Sacl; + DWORD Dacl; + } SECURITY_DESCRIPTOR_RELATIVE, *PISECURITY_DESCRIPTOR_RELATIVE; + +typedef struct _SECURITY_DESCRIPTOR { + BYTE Revision; + BYTE Sbz1; + SECURITY_DESCRIPTOR_CONTROL Control; + PSID Owner; + PSID Group; + PACL Sacl; + PACL Dacl; + + } SECURITY_DESCRIPTOR, *PISECURITY_DESCRIPTOR; + + +typedef struct _SECURITY_OBJECT_AI_PARAMS { + DWORD Size; + DWORD ConstraintMask; +} SECURITY_OBJECT_AI_PARAMS, *PSECURITY_OBJECT_AI_PARAMS; +# 11180 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _OBJECT_TYPE_LIST { + WORD Level; + WORD Sbz; + GUID *ObjectType; +} OBJECT_TYPE_LIST, *POBJECT_TYPE_LIST; +# 11200 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _AUDIT_EVENT_TYPE { + AuditEventObjectAccess, + AuditEventDirectoryServiceAccess +} AUDIT_EVENT_TYPE, *PAUDIT_EVENT_TYPE; +# 11254 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _PRIVILEGE_SET { + DWORD PrivilegeCount; + DWORD Control; + LUID_AND_ATTRIBUTES Privilege[1]; + } PRIVILEGE_SET, * PPRIVILEGE_SET; +# 11275 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _ACCESS_REASON_TYPE{ + + AccessReasonNone = 0x00000000, + + + + + + + AccessReasonAllowedAce = 0x00010000, + AccessReasonDeniedAce = 0x00020000, + + AccessReasonAllowedParentAce = 0x00030000, + AccessReasonDeniedParentAce = 0x00040000, + + AccessReasonNotGrantedByCape = 0x00050000, + AccessReasonNotGrantedByParentCape = 0x00060000, + + AccessReasonNotGrantedToAppContainer = 0x00070000, + + AccessReasonMissingPrivilege = 0x00100000, + AccessReasonFromPrivilege = 0x00200000, + + + AccessReasonIntegrityLevel = 0x00300000, + + AccessReasonOwnership = 0x00400000, + + AccessReasonNullDacl = 0x00500000, + AccessReasonEmptyDacl = 0x00600000, + + AccessReasonNoSD = 0x00700000, + AccessReasonNoGrant = 0x00800000, + + AccessReasonTrustLabel = 0x00900000, + + AccessReasonFilterAce = 0x00a00000 +} +ACCESS_REASON_TYPE; +# 11328 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef DWORD ACCESS_REASON; + +typedef struct _ACCESS_REASONS{ + ACCESS_REASON Data[32]; +} ACCESS_REASONS, *PACCESS_REASONS; +# 11362 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _SE_SECURITY_DESCRIPTOR +{ + DWORD Size; + DWORD Flags; + PSECURITY_DESCRIPTOR SecurityDescriptor; +} SE_SECURITY_DESCRIPTOR, *PSE_SECURITY_DESCRIPTOR; + +typedef struct _SE_ACCESS_REQUEST +{ + DWORD Size; + PSE_SECURITY_DESCRIPTOR SeSecurityDescriptor; + ACCESS_MASK DesiredAccess; + ACCESS_MASK PreviouslyGrantedAccess; + PSID PrincipalSelfSid; + PGENERIC_MAPPING GenericMapping; + DWORD ObjectTypeListCount; + POBJECT_TYPE_LIST ObjectTypeList; +} SE_ACCESS_REQUEST, *PSE_ACCESS_REQUEST; + + +typedef struct _SE_ACCESS_REPLY +{ + DWORD Size; + DWORD ResultListCount; + PACCESS_MASK GrantedAccess; + PDWORD AccessStatus; + PACCESS_REASONS AccessReason; + PPRIVILEGE_SET* Privileges; +} SE_ACCESS_REPLY, *PSE_ACCESS_REPLY; +# 11473 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _SECURITY_IMPERSONATION_LEVEL { + SecurityAnonymous, + SecurityIdentification, + SecurityImpersonation, + SecurityDelegation + } SECURITY_IMPERSONATION_LEVEL, * PSECURITY_IMPERSONATION_LEVEL; +# 11559 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _TOKEN_TYPE { + TokenPrimary = 1, + TokenImpersonation + } TOKEN_TYPE; +typedef TOKEN_TYPE *PTOKEN_TYPE; + + + + + + + +typedef enum _TOKEN_ELEVATION_TYPE { + TokenElevationTypeDefault = 1, + TokenElevationTypeFull, + TokenElevationTypeLimited, +} TOKEN_ELEVATION_TYPE, *PTOKEN_ELEVATION_TYPE; + + + + + + +typedef enum _TOKEN_INFORMATION_CLASS { + TokenUser = 1, + TokenGroups, + TokenPrivileges, + TokenOwner, + TokenPrimaryGroup, + TokenDefaultDacl, + TokenSource, + TokenType, + TokenImpersonationLevel, + TokenStatistics, + TokenRestrictedSids, + TokenSessionId, + TokenGroupsAndPrivileges, + TokenSessionReference, + TokenSandBoxInert, + TokenAuditPolicy, + TokenOrigin, + TokenElevationType, + TokenLinkedToken, + TokenElevation, + TokenHasRestrictions, + TokenAccessInformation, + TokenVirtualizationAllowed, + TokenVirtualizationEnabled, + TokenIntegrityLevel, + TokenUIAccess, + TokenMandatoryPolicy, + TokenLogonSid, + TokenIsAppContainer, + TokenCapabilities, + TokenAppContainerSid, + TokenAppContainerNumber, + TokenUserClaimAttributes, + TokenDeviceClaimAttributes, + TokenRestrictedUserClaimAttributes, + TokenRestrictedDeviceClaimAttributes, + TokenDeviceGroups, + TokenRestrictedDeviceGroups, + TokenSecurityAttributes, + TokenIsRestricted, + TokenProcessTrustLevel, + TokenPrivateNameSpace, + TokenSingletonAttributes, + TokenBnoIsolation, + TokenChildProcessFlags, + TokenIsLessPrivilegedAppContainer, + TokenIsSandboxed, + TokenIsAppSilo, + MaxTokenInfoClass +} TOKEN_INFORMATION_CLASS, *PTOKEN_INFORMATION_CLASS; + + + + + +typedef struct _TOKEN_USER { + SID_AND_ATTRIBUTES User; +} TOKEN_USER, *PTOKEN_USER; + + + +typedef struct _SE_TOKEN_USER { + union { + TOKEN_USER TokenUser; + SID_AND_ATTRIBUTES User; + } ; + + union { + SID Sid; + BYTE Buffer[(sizeof(SID) - sizeof(DWORD) + ((15) * sizeof(DWORD)))]; + } ; + +} SE_TOKEN_USER , PSE_TOKEN_USER; + + + + + + +typedef struct _TOKEN_GROUPS { + DWORD GroupCount; + + + + SID_AND_ATTRIBUTES Groups[1]; + +} TOKEN_GROUPS, *PTOKEN_GROUPS; + +typedef struct _TOKEN_PRIVILEGES { + DWORD PrivilegeCount; + LUID_AND_ATTRIBUTES Privileges[1]; +} TOKEN_PRIVILEGES, *PTOKEN_PRIVILEGES; + + +typedef struct _TOKEN_OWNER { + PSID Owner; +} TOKEN_OWNER, *PTOKEN_OWNER; + + + + + +typedef struct _TOKEN_PRIMARY_GROUP { + PSID PrimaryGroup; +} TOKEN_PRIMARY_GROUP, *PTOKEN_PRIMARY_GROUP; + + +typedef struct _TOKEN_DEFAULT_DACL { + PACL DefaultDacl; +} TOKEN_DEFAULT_DACL, *PTOKEN_DEFAULT_DACL; + +typedef struct _TOKEN_USER_CLAIMS { + PCLAIMS_BLOB UserClaims; +} TOKEN_USER_CLAIMS, *PTOKEN_USER_CLAIMS; + +typedef struct _TOKEN_DEVICE_CLAIMS { + PCLAIMS_BLOB DeviceClaims; +} TOKEN_DEVICE_CLAIMS, *PTOKEN_DEVICE_CLAIMS; + +typedef struct _TOKEN_GROUPS_AND_PRIVILEGES { + DWORD SidCount; + DWORD SidLength; + PSID_AND_ATTRIBUTES Sids; + DWORD RestrictedSidCount; + DWORD RestrictedSidLength; + PSID_AND_ATTRIBUTES RestrictedSids; + DWORD PrivilegeCount; + DWORD PrivilegeLength; + PLUID_AND_ATTRIBUTES Privileges; + LUID AuthenticationId; +} TOKEN_GROUPS_AND_PRIVILEGES, *PTOKEN_GROUPS_AND_PRIVILEGES; + +typedef struct _TOKEN_LINKED_TOKEN { + HANDLE LinkedToken; +} TOKEN_LINKED_TOKEN, *PTOKEN_LINKED_TOKEN; + +typedef struct _TOKEN_ELEVATION { + DWORD TokenIsElevated; +} TOKEN_ELEVATION, *PTOKEN_ELEVATION; + +typedef struct _TOKEN_MANDATORY_LABEL { + SID_AND_ATTRIBUTES Label; +} TOKEN_MANDATORY_LABEL, *PTOKEN_MANDATORY_LABEL; +# 11738 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _TOKEN_MANDATORY_POLICY { + DWORD Policy; +} TOKEN_MANDATORY_POLICY, *PTOKEN_MANDATORY_POLICY; + +typedef PVOID PSECURITY_ATTRIBUTES_OPAQUE; + +typedef struct _TOKEN_ACCESS_INFORMATION { + PSID_AND_ATTRIBUTES_HASH SidHash; + PSID_AND_ATTRIBUTES_HASH RestrictedSidHash; + PTOKEN_PRIVILEGES Privileges; + LUID AuthenticationId; + TOKEN_TYPE TokenType; + SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; + TOKEN_MANDATORY_POLICY MandatoryPolicy; + DWORD Flags; + DWORD AppContainerNumber; + PSID PackageSid; + PSID_AND_ATTRIBUTES_HASH CapabilitiesHash; + PSID TrustLevelSid; + PSECURITY_ATTRIBUTES_OPAQUE SecurityAttributes; +} TOKEN_ACCESS_INFORMATION, *PTOKEN_ACCESS_INFORMATION; + + + + + + + +typedef struct _TOKEN_AUDIT_POLICY { + BYTE PerUserPolicy[(((59)) >> 1) + 1]; +} TOKEN_AUDIT_POLICY, *PTOKEN_AUDIT_POLICY; + + + +typedef struct _TOKEN_SOURCE { + CHAR SourceName[8]; + LUID SourceIdentifier; +} TOKEN_SOURCE, *PTOKEN_SOURCE; + + +typedef struct _TOKEN_STATISTICS { + LUID TokenId; + LUID AuthenticationId; + LARGE_INTEGER ExpirationTime; + TOKEN_TYPE TokenType; + SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; + DWORD DynamicCharged; + DWORD DynamicAvailable; + DWORD GroupCount; + DWORD PrivilegeCount; + LUID ModifiedId; +} TOKEN_STATISTICS, *PTOKEN_STATISTICS; + + + +typedef struct _TOKEN_CONTROL { + LUID TokenId; + LUID AuthenticationId; + LUID ModifiedId; + TOKEN_SOURCE TokenSource; +} TOKEN_CONTROL, *PTOKEN_CONTROL; + +typedef struct _TOKEN_ORIGIN { + LUID OriginatingLogonSession ; +} TOKEN_ORIGIN, * PTOKEN_ORIGIN ; + + +typedef enum _MANDATORY_LEVEL { + MandatoryLevelUntrusted = 0, + MandatoryLevelLow, + MandatoryLevelMedium, + MandatoryLevelHigh, + MandatoryLevelSystem, + MandatoryLevelSecureProcess, + MandatoryLevelCount +} MANDATORY_LEVEL, *PMANDATORY_LEVEL; + +typedef struct _TOKEN_APPCONTAINER_INFORMATION { + PSID TokenAppContainer; +} TOKEN_APPCONTAINER_INFORMATION, *PTOKEN_APPCONTAINER_INFORMATION; + + + + + +typedef struct _TOKEN_SID_INFORMATION { + PSID Sid; +} TOKEN_SID_INFORMATION, *PTOKEN_SID_INFORMATION; + +typedef struct _TOKEN_BNO_ISOLATION_INFORMATION { + PWSTR IsolationPrefix; + BOOLEAN IsolationEnabled; +} TOKEN_BNO_ISOLATION_INFORMATION, *PTOKEN_BNO_ISOLATION_INFORMATION; +# 11861 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE { + DWORD64 Version; + PWSTR Name; +} CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE, *PCLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE; +# 11873 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE { + PVOID pValue; + DWORD ValueLength; +} CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE, + *PCLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE; +# 11945 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _CLAIM_SECURITY_ATTRIBUTE_V1 { + + + + + + + PWSTR Name; + + + + + + WORD ValueType; + + + + + + + WORD Reserved; + + + + + + DWORD Flags; + + + + + + DWORD ValueCount; + + + + + + union { + PLONG64 pInt64; + PDWORD64 pUint64; + PWSTR *ppString; + PCLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE pFqbn; + PCLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE pOctetString; + } Values; +} CLAIM_SECURITY_ATTRIBUTE_V1, *PCLAIM_SECURITY_ATTRIBUTE_V1; + + + + + + +typedef struct _CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 { + + + + + + + DWORD Name; + + + + + + WORD ValueType; + + + + + + + WORD Reserved; + + + + + + DWORD Flags; + + + + + + DWORD ValueCount; + + + + + + union { + DWORD pInt64[1]; + DWORD pUint64[1]; + DWORD ppString[1]; + DWORD pFqbn[1]; + DWORD pOctetString[1]; + } Values; +} CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1, *PCLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1; +# 12064 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _CLAIM_SECURITY_ATTRIBUTES_INFORMATION { + + + + + + WORD Version; + + + + + + WORD Reserved; + + DWORD AttributeCount; + union { + PCLAIM_SECURITY_ATTRIBUTE_V1 pAttributeV1; + } Attribute; +} CLAIM_SECURITY_ATTRIBUTES_INFORMATION, *PCLAIM_SECURITY_ATTRIBUTES_INFORMATION; +# 12091 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef BOOLEAN SECURITY_CONTEXT_TRACKING_MODE, + * PSECURITY_CONTEXT_TRACKING_MODE; + + + + + + + +typedef struct _SECURITY_QUALITY_OF_SERVICE { + DWORD Length; + SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; + SECURITY_CONTEXT_TRACKING_MODE ContextTrackingMode; + BOOLEAN EffectiveOnly; + } SECURITY_QUALITY_OF_SERVICE, * PSECURITY_QUALITY_OF_SERVICE; + + + + + + +typedef struct _SE_IMPERSONATION_STATE { + PACCESS_TOKEN Token; + BOOLEAN CopyOnOpen; + BOOLEAN EffectiveOnly; + SECURITY_IMPERSONATION_LEVEL Level; +} SE_IMPERSONATION_STATE, *PSE_IMPERSONATION_STATE; + + + + + + +typedef DWORD SECURITY_INFORMATION, *PSECURITY_INFORMATION; +# 12147 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef BYTE SE_SIGNING_LEVEL, *PSE_SIGNING_LEVEL; +# 12172 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _SE_IMAGE_SIGNATURE_TYPE +{ + SeImageSignatureNone = 0, + SeImageSignatureEmbedded, + SeImageSignatureCache, + SeImageSignatureCatalogCached, + SeImageSignatureCatalogNotCached, + SeImageSignatureCatalogHint, + SeImageSignaturePackageCatalog, + SeImageSignaturePplMitigated +} SE_IMAGE_SIGNATURE_TYPE, *PSE_IMAGE_SIGNATURE_TYPE; + + +typedef struct _SECURITY_CAPABILITIES { + + + + + PSID AppContainerSid; + PSID_AND_ATTRIBUTES Capabilities; + + DWORD CapabilityCount; + DWORD Reserved; +} SECURITY_CAPABILITIES, *PSECURITY_CAPABILITIES, *LPSECURITY_CAPABILITIES; +# 12263 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _JOB_SET_ARRAY { + HANDLE JobHandle; + DWORD MemberLevel; + DWORD Flags; +} JOB_SET_ARRAY, *PJOB_SET_ARRAY; + + + + + + +typedef struct _EXCEPTION_REGISTRATION_RECORD { + struct _EXCEPTION_REGISTRATION_RECORD *Next; + PEXCEPTION_ROUTINE Handler; +} EXCEPTION_REGISTRATION_RECORD; + +typedef EXCEPTION_REGISTRATION_RECORD *PEXCEPTION_REGISTRATION_RECORD; + + +typedef struct _NT_TIB { + struct _EXCEPTION_REGISTRATION_RECORD *ExceptionList; + PVOID StackBase; + PVOID StackLimit; + PVOID SubSystemTib; + + union { + PVOID FiberData; + DWORD Version; + }; + + + + PVOID ArbitraryUserPointer; + struct _NT_TIB *Self; +} NT_TIB; +typedef NT_TIB *PNT_TIB; + + + + +typedef struct _NT_TIB32 { + DWORD ExceptionList; + DWORD StackBase; + DWORD StackLimit; + DWORD SubSystemTib; + + + union { + DWORD FiberData; + DWORD Version; + }; + + + + + DWORD ArbitraryUserPointer; + DWORD Self; +} NT_TIB32, *PNT_TIB32; + +typedef struct _NT_TIB64 { + DWORD64 ExceptionList; + DWORD64 StackBase; + DWORD64 StackLimit; + DWORD64 SubSystemTib; + + + union { + DWORD64 FiberData; + DWORD Version; + }; + + + + + + DWORD64 ArbitraryUserPointer; + DWORD64 Self; +} NT_TIB64, *PNT_TIB64; +# 12353 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _UMS_CREATE_THREAD_ATTRIBUTES { + DWORD UmsVersion; + PVOID UmsContext; + PVOID UmsCompletionList; +} UMS_CREATE_THREAD_ATTRIBUTES, *PUMS_CREATE_THREAD_ATTRIBUTES; +# 12367 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _COMPONENT_FILTER { + DWORD ComponentFlags; +} COMPONENT_FILTER, *PCOMPONENT_FILTER; +# 12409 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _PROCESS_DYNAMIC_EH_CONTINUATION_TARGET { + ULONG_PTR TargetAddress; + ULONG_PTR Flags; +} PROCESS_DYNAMIC_EH_CONTINUATION_TARGET, *PPROCESS_DYNAMIC_EH_CONTINUATION_TARGET; + +typedef struct _PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION { + WORD NumberOfTargets; + WORD Reserved; + DWORD Reserved2; + PPROCESS_DYNAMIC_EH_CONTINUATION_TARGET Targets; +} PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION, *PPROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION; +# 12442 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE { + ULONG_PTR BaseAddress; + SIZE_T Size; + DWORD Flags; +} PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE, *PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE; + +typedef struct _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION { + WORD NumberOfRanges; + WORD Reserved; + DWORD Reserved2; + PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE Ranges; +} PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION, *PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION; + + + + +typedef struct _QUOTA_LIMITS { + SIZE_T PagedPoolLimit; + SIZE_T NonPagedPoolLimit; + SIZE_T MinimumWorkingSetSize; + SIZE_T MaximumWorkingSetSize; + SIZE_T PagefileLimit; + LARGE_INTEGER TimeLimit; +} QUOTA_LIMITS, *PQUOTA_LIMITS; + + + + + + + +typedef union _RATE_QUOTA_LIMIT { + DWORD RateData; + struct { + DWORD RatePercent : 7; + DWORD Reserved0 : 25; + } ; +} RATE_QUOTA_LIMIT, *PRATE_QUOTA_LIMIT; + +typedef struct _QUOTA_LIMITS_EX { + SIZE_T PagedPoolLimit; + SIZE_T NonPagedPoolLimit; + SIZE_T MinimumWorkingSetSize; + SIZE_T MaximumWorkingSetSize; + SIZE_T PagefileLimit; + LARGE_INTEGER TimeLimit; + SIZE_T WorkingSetLimit; + SIZE_T Reserved2; + SIZE_T Reserved3; + SIZE_T Reserved4; + DWORD Flags; + RATE_QUOTA_LIMIT CpuRateLimit; +} QUOTA_LIMITS_EX, *PQUOTA_LIMITS_EX; + + + + + + +typedef struct _IO_COUNTERS { + ULONGLONG ReadOperationCount; + ULONGLONG WriteOperationCount; + ULONGLONG OtherOperationCount; + ULONGLONG ReadTransferCount; + ULONGLONG WriteTransferCount; + ULONGLONG OtherTransferCount; +} IO_COUNTERS; +typedef IO_COUNTERS *PIO_COUNTERS; + + + + + + + +typedef enum _HARDWARE_COUNTER_TYPE { + PMCCounter, + MaxHardwareCounterType +} HARDWARE_COUNTER_TYPE, *PHARDWARE_COUNTER_TYPE; + + + + +typedef enum _PROCESS_MITIGATION_POLICY { + ProcessDEPPolicy, + ProcessASLRPolicy, + ProcessDynamicCodePolicy, + ProcessStrictHandleCheckPolicy, + ProcessSystemCallDisablePolicy, + ProcessMitigationOptionsMask, + ProcessExtensionPointDisablePolicy, + ProcessControlFlowGuardPolicy, + ProcessSignaturePolicy, + ProcessFontDisablePolicy, + ProcessImageLoadPolicy, + ProcessSystemCallFilterPolicy, + ProcessPayloadRestrictionPolicy, + ProcessChildProcessPolicy, + ProcessSideChannelIsolationPolicy, + ProcessUserShadowStackPolicy, + ProcessRedirectionTrustPolicy, + ProcessUserPointerAuthPolicy, + ProcessSEHOPPolicy, + ProcessActivationContextTrustPolicy, + MaxProcessMitigationPolicy +} PROCESS_MITIGATION_POLICY, *PPROCESS_MITIGATION_POLICY; + + + + + + +typedef struct _PROCESS_MITIGATION_ASLR_POLICY { + union { + DWORD Flags; + struct { + DWORD EnableBottomUpRandomization : 1; + DWORD EnableForceRelocateImages : 1; + DWORD EnableHighEntropy : 1; + DWORD DisallowStrippedImages : 1; + DWORD ReservedFlags : 28; + } ; + } ; +} PROCESS_MITIGATION_ASLR_POLICY, *PPROCESS_MITIGATION_ASLR_POLICY; + +typedef struct _PROCESS_MITIGATION_DEP_POLICY { + union { + DWORD Flags; + struct { + DWORD Enable : 1; + DWORD DisableAtlThunkEmulation : 1; + DWORD ReservedFlags : 30; + } ; + } ; + BOOLEAN Permanent; +} PROCESS_MITIGATION_DEP_POLICY, *PPROCESS_MITIGATION_DEP_POLICY; + +typedef struct _PROCESS_MITIGATION_SEHOP_POLICY { + union { + DWORD Flags; + struct { + DWORD EnableSehop : 1; + DWORD ReservedFlags : 31; + } ; + } ; +} PROCESS_MITIGATION_SEHOP_POLICY, *PPROCESS_MITIGATION_SEHOP_POLICY; + +typedef struct _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY { + union { + DWORD Flags; + struct { + DWORD RaiseExceptionOnInvalidHandleReference : 1; + DWORD HandleExceptionsPermanentlyEnabled : 1; + DWORD ReservedFlags : 30; + } ; + } ; +} PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY, *PPROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY; + +typedef struct _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY { + union { + DWORD Flags; + struct { + DWORD DisallowWin32kSystemCalls : 1; + DWORD AuditDisallowWin32kSystemCalls : 1; + DWORD ReservedFlags : 30; + } ; + } ; +} PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY, *PPROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY; + +typedef struct _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY { + union { + DWORD Flags; + struct { + DWORD DisableExtensionPoints : 1; + DWORD ReservedFlags : 31; + } ; + } ; +} PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY, *PPROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY; + +typedef struct _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY { + union { + DWORD Flags; + struct { + DWORD ProhibitDynamicCode : 1; + DWORD AllowThreadOptOut : 1; + DWORD AllowRemoteDowngrade : 1; + DWORD AuditProhibitDynamicCode : 1; + DWORD ReservedFlags : 28; + } ; + } ; +} PROCESS_MITIGATION_DYNAMIC_CODE_POLICY, *PPROCESS_MITIGATION_DYNAMIC_CODE_POLICY; + +typedef struct _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY { + union { + DWORD Flags; + struct { + DWORD EnableControlFlowGuard : 1; + DWORD EnableExportSuppression : 1; + DWORD StrictMode : 1; + DWORD EnableXfg : 1; + DWORD EnableXfgAuditMode : 1; + DWORD ReservedFlags : 27; + } ; + } ; +} PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY, *PPROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY; + +typedef struct _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY { + union { + DWORD Flags; + struct { + DWORD MicrosoftSignedOnly : 1; + DWORD StoreSignedOnly : 1; + DWORD MitigationOptIn : 1; + DWORD AuditMicrosoftSignedOnly : 1; + DWORD AuditStoreSignedOnly : 1; + DWORD ReservedFlags : 27; + } ; + } ; +} PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY, *PPROCESS_MITIGATION_BINARY_SIGNATURE_POLICY; + +typedef struct _PROCESS_MITIGATION_FONT_DISABLE_POLICY { + union { + DWORD Flags; + struct { + DWORD DisableNonSystemFonts : 1; + DWORD AuditNonSystemFontLoading : 1; + DWORD ReservedFlags : 30; + } ; + } ; +} PROCESS_MITIGATION_FONT_DISABLE_POLICY, *PPROCESS_MITIGATION_FONT_DISABLE_POLICY; + +typedef struct _PROCESS_MITIGATION_IMAGE_LOAD_POLICY { + union { + DWORD Flags; + struct { + DWORD NoRemoteImages : 1; + DWORD NoLowMandatoryLabelImages : 1; + DWORD PreferSystem32Images : 1; + DWORD AuditNoRemoteImages : 1; + DWORD AuditNoLowMandatoryLabelImages : 1; + DWORD ReservedFlags : 27; + } ; + } ; +} PROCESS_MITIGATION_IMAGE_LOAD_POLICY, *PPROCESS_MITIGATION_IMAGE_LOAD_POLICY; + +typedef struct _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY { + union { + DWORD Flags; + struct { + DWORD FilterId: 4; + DWORD ReservedFlags : 28; + } ; + } ; +} PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY, *PPROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY; + +typedef struct _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY { + union { + DWORD Flags; + struct { + DWORD EnableExportAddressFilter : 1; + DWORD AuditExportAddressFilter : 1; + + DWORD EnableExportAddressFilterPlus : 1; + DWORD AuditExportAddressFilterPlus : 1; + + DWORD EnableImportAddressFilter : 1; + DWORD AuditImportAddressFilter : 1; + + DWORD EnableRopStackPivot : 1; + DWORD AuditRopStackPivot : 1; + + DWORD EnableRopCallerCheck : 1; + DWORD AuditRopCallerCheck : 1; + + DWORD EnableRopSimExec : 1; + DWORD AuditRopSimExec : 1; + + DWORD ReservedFlags : 20; + } ; + } ; +} PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY, *PPROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY; + +typedef struct _PROCESS_MITIGATION_CHILD_PROCESS_POLICY { + union { + DWORD Flags; + struct { + DWORD NoChildProcessCreation : 1; + DWORD AuditNoChildProcessCreation : 1; + DWORD AllowSecureProcessCreation : 1; + DWORD ReservedFlags : 29; + } ; + } ; +} PROCESS_MITIGATION_CHILD_PROCESS_POLICY, *PPROCESS_MITIGATION_CHILD_PROCESS_POLICY; + +typedef struct _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY { + union { + DWORD Flags; + struct { + + + + + + DWORD SmtBranchTargetIsolation : 1; +# 12761 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + DWORD IsolateSecurityDomain : 1; + + + + + + + DWORD DisablePageCombine : 1; + + + + + + DWORD SpeculativeStoreBypassDisable : 1; + + + + + + + DWORD RestrictCoreSharing : 1; + + DWORD ReservedFlags : 27; + + } ; + } ; +} PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY, *PPROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY; + +typedef struct _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY { + union { + DWORD Flags; + struct { + DWORD EnableUserShadowStack : 1; + DWORD AuditUserShadowStack : 1; + DWORD SetContextIpValidation : 1; + DWORD AuditSetContextIpValidation : 1; + DWORD EnableUserShadowStackStrictMode : 1; + DWORD BlockNonCetBinaries : 1; + DWORD BlockNonCetBinariesNonEhcont : 1; + DWORD AuditBlockNonCetBinaries : 1; + DWORD CetDynamicApisOutOfProcOnly : 1; + DWORD SetContextIpValidationRelaxedMode : 1; + DWORD ReservedFlags : 22; + + } ; + } ; +} PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY, *PPROCESS_MITIGATION_USER_SHADOW_STACK_POLICY; + +typedef struct _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY { + union { + DWORD Flags; + struct { + DWORD EnablePointerAuthUserIp : 1; + DWORD ReservedFlags : 31; + } ; + } ; +} PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY, *PPROCESS_MITIGATION_USER_POINTER_AUTH_POLICY; + +typedef struct _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY { + union { + DWORD Flags; + struct { + DWORD EnforceRedirectionTrust : 1; + DWORD AuditRedirectionTrust : 1; + DWORD ReservedFlags : 30; + } ; + } ; +} PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY, *PPROCESS_MITIGATION_REDIRECTION_TRUST_POLICY; + +typedef struct _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY { + union { + DWORD Flags; + struct { + DWORD AssemblyManifestRedirectionTrust : 1; + DWORD ReservedFlags : 31; + } ; + } ; +} PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY, *PPROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY; + + + + +typedef struct _JOBOBJECT_BASIC_ACCOUNTING_INFORMATION { + LARGE_INTEGER TotalUserTime; + LARGE_INTEGER TotalKernelTime; + LARGE_INTEGER ThisPeriodTotalUserTime; + LARGE_INTEGER ThisPeriodTotalKernelTime; + DWORD TotalPageFaultCount; + DWORD TotalProcesses; + DWORD ActiveProcesses; + DWORD TotalTerminatedProcesses; +} JOBOBJECT_BASIC_ACCOUNTING_INFORMATION, *PJOBOBJECT_BASIC_ACCOUNTING_INFORMATION; + + +typedef struct _JOBOBJECT_BASIC_LIMIT_INFORMATION { + LARGE_INTEGER PerProcessUserTimeLimit; + LARGE_INTEGER PerJobUserTimeLimit; + DWORD LimitFlags; + SIZE_T MinimumWorkingSetSize; + SIZE_T MaximumWorkingSetSize; + DWORD ActiveProcessLimit; + ULONG_PTR Affinity; + DWORD PriorityClass; + DWORD SchedulingClass; +} JOBOBJECT_BASIC_LIMIT_INFORMATION, *PJOBOBJECT_BASIC_LIMIT_INFORMATION; + + +typedef struct _JOBOBJECT_EXTENDED_LIMIT_INFORMATION { + JOBOBJECT_BASIC_LIMIT_INFORMATION BasicLimitInformation; + IO_COUNTERS IoInfo; + SIZE_T ProcessMemoryLimit; + SIZE_T JobMemoryLimit; + SIZE_T PeakProcessMemoryUsed; + SIZE_T PeakJobMemoryUsed; +} JOBOBJECT_EXTENDED_LIMIT_INFORMATION, *PJOBOBJECT_EXTENDED_LIMIT_INFORMATION; + + + + + +typedef struct _JOBOBJECT_BASIC_PROCESS_ID_LIST { + DWORD NumberOfAssignedProcesses; + DWORD NumberOfProcessIdsInList; + ULONG_PTR ProcessIdList[1]; +} JOBOBJECT_BASIC_PROCESS_ID_LIST, *PJOBOBJECT_BASIC_PROCESS_ID_LIST; + +typedef struct _JOBOBJECT_BASIC_UI_RESTRICTIONS { + DWORD UIRestrictionsClass; +} JOBOBJECT_BASIC_UI_RESTRICTIONS, *PJOBOBJECT_BASIC_UI_RESTRICTIONS; + + + + + +typedef struct _JOBOBJECT_SECURITY_LIMIT_INFORMATION { + DWORD SecurityLimitFlags ; + HANDLE JobToken ; + PTOKEN_GROUPS SidsToDisable ; + PTOKEN_PRIVILEGES PrivilegesToDelete ; + PTOKEN_GROUPS RestrictedSids ; +} JOBOBJECT_SECURITY_LIMIT_INFORMATION, *PJOBOBJECT_SECURITY_LIMIT_INFORMATION ; + +typedef struct _JOBOBJECT_END_OF_JOB_TIME_INFORMATION { + DWORD EndOfJobTimeAction; +} JOBOBJECT_END_OF_JOB_TIME_INFORMATION, *PJOBOBJECT_END_OF_JOB_TIME_INFORMATION; + +typedef struct _JOBOBJECT_ASSOCIATE_COMPLETION_PORT { + PVOID CompletionKey; + HANDLE CompletionPort; +} JOBOBJECT_ASSOCIATE_COMPLETION_PORT, *PJOBOBJECT_ASSOCIATE_COMPLETION_PORT; + +typedef struct _JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION { + JOBOBJECT_BASIC_ACCOUNTING_INFORMATION BasicInfo; + IO_COUNTERS IoInfo; +} JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION, *PJOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION; + +typedef struct _JOBOBJECT_JOBSET_INFORMATION { + DWORD MemberLevel; +} JOBOBJECT_JOBSET_INFORMATION, *PJOBOBJECT_JOBSET_INFORMATION; + +typedef enum _JOBOBJECT_RATE_CONTROL_TOLERANCE { + ToleranceLow = 1, + ToleranceMedium, + ToleranceHigh +} JOBOBJECT_RATE_CONTROL_TOLERANCE, *PJOBOBJECT_RATE_CONTROL_TOLERANCE; + +typedef enum _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL { + ToleranceIntervalShort = 1, + ToleranceIntervalMedium, + ToleranceIntervalLong +} JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, + *PJOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL; + +typedef struct _JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION { + DWORD64 IoReadBytesLimit; + DWORD64 IoWriteBytesLimit; + LARGE_INTEGER PerJobUserTimeLimit; + DWORD64 JobMemoryLimit; + JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlTolerance; + JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL RateControlToleranceInterval; + DWORD LimitFlags; +} JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION, *PJOBOBJECT_NOTIFICATION_LIMIT_INFORMATION; + +typedef struct JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2 { + DWORD64 IoReadBytesLimit; + DWORD64 IoWriteBytesLimit; + LARGE_INTEGER PerJobUserTimeLimit; + union { + DWORD64 JobHighMemoryLimit; + DWORD64 JobMemoryLimit; + } ; + + union { + JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlTolerance; + JOBOBJECT_RATE_CONTROL_TOLERANCE CpuRateControlTolerance; + } ; + + union { + JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL RateControlToleranceInterval; + JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL + CpuRateControlToleranceInterval; + } ; + + DWORD LimitFlags; + JOBOBJECT_RATE_CONTROL_TOLERANCE IoRateControlTolerance; + DWORD64 JobLowMemoryLimit; + JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL IoRateControlToleranceInterval; + JOBOBJECT_RATE_CONTROL_TOLERANCE NetRateControlTolerance; + JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL NetRateControlToleranceInterval; +} JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2; + + + + +typedef struct _JOBOBJECT_LIMIT_VIOLATION_INFORMATION { + DWORD LimitFlags; + DWORD ViolationLimitFlags; + DWORD64 IoReadBytes; + DWORD64 IoReadBytesLimit; + DWORD64 IoWriteBytes; + DWORD64 IoWriteBytesLimit; + LARGE_INTEGER PerJobUserTime; + LARGE_INTEGER PerJobUserTimeLimit; + DWORD64 JobMemory; + DWORD64 JobMemoryLimit; + JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlTolerance; + JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlToleranceLimit; +} JOBOBJECT_LIMIT_VIOLATION_INFORMATION, *PJOBOBJECT_LIMIT_VIOLATION_INFORMATION; + +typedef struct JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2 { + DWORD LimitFlags; + DWORD ViolationLimitFlags; + DWORD64 IoReadBytes; + DWORD64 IoReadBytesLimit; + DWORD64 IoWriteBytes; + DWORD64 IoWriteBytesLimit; + LARGE_INTEGER PerJobUserTime; + LARGE_INTEGER PerJobUserTimeLimit; + DWORD64 JobMemory; + union { + DWORD64 JobHighMemoryLimit; + DWORD64 JobMemoryLimit; + } ; + + union { + JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlTolerance; + JOBOBJECT_RATE_CONTROL_TOLERANCE CpuRateControlTolerance; + } ; + + union { + JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlToleranceLimit; + JOBOBJECT_RATE_CONTROL_TOLERANCE CpuRateControlToleranceLimit; + } ; + + DWORD64 JobLowMemoryLimit; + JOBOBJECT_RATE_CONTROL_TOLERANCE IoRateControlTolerance; + JOBOBJECT_RATE_CONTROL_TOLERANCE IoRateControlToleranceLimit; + JOBOBJECT_RATE_CONTROL_TOLERANCE NetRateControlTolerance; + JOBOBJECT_RATE_CONTROL_TOLERANCE NetRateControlToleranceLimit; +} JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2; + + + + +typedef struct _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION { + DWORD ControlFlags; + union { + DWORD CpuRate; + DWORD Weight; + struct { + WORD MinRate; + WORD MaxRate; + } ; + } ; +} JOBOBJECT_CPU_RATE_CONTROL_INFORMATION, *PJOBOBJECT_CPU_RATE_CONTROL_INFORMATION; + + + + + +typedef enum JOB_OBJECT_NET_RATE_CONTROL_FLAGS { + JOB_OBJECT_NET_RATE_CONTROL_ENABLE = 0x1, + JOB_OBJECT_NET_RATE_CONTROL_MAX_BANDWIDTH = 0x2, + JOB_OBJECT_NET_RATE_CONTROL_DSCP_TAG = 0x4, + JOB_OBJECT_NET_RATE_CONTROL_VALID_FLAGS = 0x7 +} JOB_OBJECT_NET_RATE_CONTROL_FLAGS; + + + + +typedef char __C_ASSERT__[(JOB_OBJECT_NET_RATE_CONTROL_VALID_FLAGS == (JOB_OBJECT_NET_RATE_CONTROL_ENABLE + JOB_OBJECT_NET_RATE_CONTROL_MAX_BANDWIDTH + JOB_OBJECT_NET_RATE_CONTROL_DSCP_TAG))?1:-1]; +# 13060 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct JOBOBJECT_NET_RATE_CONTROL_INFORMATION { + DWORD64 MaxBandwidth; + JOB_OBJECT_NET_RATE_CONTROL_FLAGS ControlFlags; + BYTE DscpTag; +} JOBOBJECT_NET_RATE_CONTROL_INFORMATION; +# 13073 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum JOB_OBJECT_IO_RATE_CONTROL_FLAGS { + JOB_OBJECT_IO_RATE_CONTROL_ENABLE = 0x1, + JOB_OBJECT_IO_RATE_CONTROL_STANDALONE_VOLUME = 0x2, + JOB_OBJECT_IO_RATE_CONTROL_FORCE_UNIT_ACCESS_ALL = 0x4, + JOB_OBJECT_IO_RATE_CONTROL_FORCE_UNIT_ACCESS_ON_SOFT_CAP = 0x8, + JOB_OBJECT_IO_RATE_CONTROL_VALID_FLAGS = JOB_OBJECT_IO_RATE_CONTROL_ENABLE | + JOB_OBJECT_IO_RATE_CONTROL_STANDALONE_VOLUME | + JOB_OBJECT_IO_RATE_CONTROL_FORCE_UNIT_ACCESS_ALL | + JOB_OBJECT_IO_RATE_CONTROL_FORCE_UNIT_ACCESS_ON_SOFT_CAP +} JOB_OBJECT_IO_RATE_CONTROL_FLAGS; + + + + + + + +typedef struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE { + LONG64 MaxIops; + LONG64 MaxBandwidth; + LONG64 ReservationIops; + PWSTR VolumeName; + DWORD BaseIoSize; + JOB_OBJECT_IO_RATE_CONTROL_FLAGS ControlFlags; + WORD VolumeNameLength; +} JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE; + +typedef JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE + JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1; + +typedef struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V2 { + LONG64 MaxIops; + LONG64 MaxBandwidth; + LONG64 ReservationIops; + PWSTR VolumeName; + DWORD BaseIoSize; + JOB_OBJECT_IO_RATE_CONTROL_FLAGS ControlFlags; + WORD VolumeNameLength; + LONG64 CriticalReservationIops; + LONG64 ReservationBandwidth; + LONG64 CriticalReservationBandwidth; + LONG64 MaxTimePercent; + LONG64 ReservationTimePercent; + LONG64 CriticalReservationTimePercent; +} JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V2; + +typedef struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V3 { + LONG64 MaxIops; + LONG64 MaxBandwidth; + LONG64 ReservationIops; + PWSTR VolumeName; + DWORD BaseIoSize; + JOB_OBJECT_IO_RATE_CONTROL_FLAGS ControlFlags; + WORD VolumeNameLength; + LONG64 CriticalReservationIops; + LONG64 ReservationBandwidth; + LONG64 CriticalReservationBandwidth; + LONG64 MaxTimePercent; + LONG64 ReservationTimePercent; + LONG64 CriticalReservationTimePercent; + LONG64 SoftMaxIops; + LONG64 SoftMaxBandwidth; + LONG64 SoftMaxTimePercent; + LONG64 LimitExcessNotifyIops; + LONG64 LimitExcessNotifyBandwidth; + LONG64 LimitExcessNotifyTimePercent; +} JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V3; + + + + +typedef enum JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS { + JOBOBJECT_IO_ATTRIBUTION_CONTROL_ENABLE = 0x1, + JOBOBJECT_IO_ATTRIBUTION_CONTROL_DISABLE = 0x2, + JOBOBJECT_IO_ATTRIBUTION_CONTROL_VALID_FLAGS = 0x3 +} JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS; + +typedef struct _JOBOBJECT_IO_ATTRIBUTION_STATS { + + ULONG_PTR IoCount; + ULONGLONG TotalNonOverlappedQueueTime; + ULONGLONG TotalNonOverlappedServiceTime; + ULONGLONG TotalSize; + +} JOBOBJECT_IO_ATTRIBUTION_STATS, *PJOBOBJECT_IO_ATTRIBUTION_STATS; + +typedef struct _JOBOBJECT_IO_ATTRIBUTION_INFORMATION { + DWORD ControlFlags; + + JOBOBJECT_IO_ATTRIBUTION_STATS ReadStats; + JOBOBJECT_IO_ATTRIBUTION_STATS WriteStats; + +} JOBOBJECT_IO_ATTRIBUTION_INFORMATION, *PJOBOBJECT_IO_ATTRIBUTION_INFORMATION; +# 13304 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _JOBOBJECTINFOCLASS { + JobObjectBasicAccountingInformation = 1, + JobObjectBasicLimitInformation, + JobObjectBasicProcessIdList, + JobObjectBasicUIRestrictions, + JobObjectSecurityLimitInformation, + JobObjectEndOfJobTimeInformation, + JobObjectAssociateCompletionPortInformation, + JobObjectBasicAndIoAccountingInformation, + JobObjectExtendedLimitInformation, + JobObjectJobSetInformation, + JobObjectGroupInformation, + JobObjectNotificationLimitInformation, + JobObjectLimitViolationInformation, + JobObjectGroupInformationEx, + JobObjectCpuRateControlInformation, + JobObjectCompletionFilter, + JobObjectCompletionCounter, + + + + + JobObjectReserved1Information = 18, + JobObjectReserved2Information, + JobObjectReserved3Information, + JobObjectReserved4Information, + JobObjectReserved5Information, + JobObjectReserved6Information, + JobObjectReserved7Information, + JobObjectReserved8Information, + JobObjectReserved9Information, + JobObjectReserved10Information, + JobObjectReserved11Information, + JobObjectReserved12Information, + JobObjectReserved13Information, + JobObjectReserved14Information = 31, + JobObjectNetRateControlInformation, + JobObjectNotificationLimitInformation2, + JobObjectLimitViolationInformation2, + JobObjectCreateSilo, + JobObjectSiloBasicInformation, + JobObjectReserved15Information = 37, + JobObjectReserved16Information = 38, + JobObjectReserved17Information = 39, + JobObjectReserved18Information = 40, + JobObjectReserved19Information = 41, + JobObjectReserved20Information = 42, + JobObjectReserved21Information = 43, + JobObjectReserved22Information = 44, + JobObjectReserved23Information = 45, + JobObjectReserved24Information = 46, + JobObjectReserved25Information = 47, + JobObjectReserved26Information = 48, + JobObjectReserved27Information = 49, + MaxJobObjectInfoClass +} JOBOBJECTINFOCLASS; + + + + +typedef struct _SILOOBJECT_BASIC_INFORMATION { + DWORD SiloId; + DWORD SiloParentId; + DWORD NumberOfProcesses; + BOOLEAN IsInServerSilo; + BYTE Reserved[3]; +} SILOOBJECT_BASIC_INFORMATION, *PSILOOBJECT_BASIC_INFORMATION; + +typedef enum _SERVERSILO_STATE { + SERVERSILO_INITING = 0, + SERVERSILO_STARTED, + SERVERSILO_SHUTTING_DOWN, + SERVERSILO_TERMINATING, + SERVERSILO_TERMINATED, +} SERVERSILO_STATE, *PSERVERSILO_STATE; + +typedef struct _SERVERSILO_BASIC_INFORMATION { + DWORD ServiceSessionId; + SERVERSILO_STATE State; + DWORD ExitStatus; + BOOLEAN IsDownlevelContainer; + PVOID ApiSetSchema; + PVOID HostApiSetSchema; +} SERVERSILO_BASIC_INFORMATION, *PSERVERSILO_BASIC_INFORMATION; +# 13406 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _FIRMWARE_TYPE { + FirmwareTypeUnknown, + FirmwareTypeBios, + FirmwareTypeUefi, + FirmwareTypeMax +} FIRMWARE_TYPE, *PFIRMWARE_TYPE; +# 13451 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _LOGICAL_PROCESSOR_RELATIONSHIP { + RelationProcessorCore, + RelationNumaNode, + RelationCache, + RelationProcessorPackage, + RelationGroup, + RelationProcessorDie, + RelationNumaNodeEx, + RelationProcessorModule, + RelationAll = 0xffff +} LOGICAL_PROCESSOR_RELATIONSHIP; + + + +typedef enum _PROCESSOR_CACHE_TYPE { + CacheUnified, + CacheInstruction, + CacheData, + CacheTrace +} PROCESSOR_CACHE_TYPE; + + + +typedef struct _CACHE_DESCRIPTOR { + BYTE Level; + BYTE Associativity; + WORD LineSize; + DWORD Size; + PROCESSOR_CACHE_TYPE Type; +} CACHE_DESCRIPTOR, *PCACHE_DESCRIPTOR; + +typedef struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION { + ULONG_PTR ProcessorMask; + LOGICAL_PROCESSOR_RELATIONSHIP Relationship; + union { + struct { + BYTE Flags; + } ProcessorCore; + struct { + DWORD NodeNumber; + } NumaNode; + CACHE_DESCRIPTOR Cache; + ULONGLONG Reserved[2]; + } ; +} SYSTEM_LOGICAL_PROCESSOR_INFORMATION, *PSYSTEM_LOGICAL_PROCESSOR_INFORMATION; + +typedef struct _PROCESSOR_RELATIONSHIP { + BYTE Flags; + BYTE EfficiencyClass; + BYTE Reserved[20]; + WORD GroupCount; + GROUP_AFFINITY GroupMask[1]; +} PROCESSOR_RELATIONSHIP, *PPROCESSOR_RELATIONSHIP; + +typedef struct _NUMA_NODE_RELATIONSHIP { + DWORD NodeNumber; + BYTE Reserved[18]; + WORD GroupCount; + union { + GROUP_AFFINITY GroupMask; + + GROUP_AFFINITY GroupMasks[1]; + } ; +} NUMA_NODE_RELATIONSHIP, *PNUMA_NODE_RELATIONSHIP; + +typedef struct _CACHE_RELATIONSHIP { + BYTE Level; + BYTE Associativity; + WORD LineSize; + DWORD CacheSize; + PROCESSOR_CACHE_TYPE Type; + BYTE Reserved[18]; + WORD GroupCount; + union { + GROUP_AFFINITY GroupMask; + + GROUP_AFFINITY GroupMasks[1]; + } ; +} CACHE_RELATIONSHIP, *PCACHE_RELATIONSHIP; + +typedef struct _PROCESSOR_GROUP_INFO { + BYTE MaximumProcessorCount; + BYTE ActiveProcessorCount; + BYTE Reserved[38]; + KAFFINITY ActiveProcessorMask; +} PROCESSOR_GROUP_INFO, *PPROCESSOR_GROUP_INFO; + +typedef struct _GROUP_RELATIONSHIP { + WORD MaximumGroupCount; + WORD ActiveGroupCount; + BYTE Reserved[20]; + PROCESSOR_GROUP_INFO GroupInfo[1]; +} GROUP_RELATIONSHIP, *PGROUP_RELATIONSHIP; + + struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX { + LOGICAL_PROCESSOR_RELATIONSHIP Relationship; + DWORD Size; + union { + PROCESSOR_RELATIONSHIP Processor; + NUMA_NODE_RELATIONSHIP NumaNode; + CACHE_RELATIONSHIP Cache; + GROUP_RELATIONSHIP Group; + } ; +}; + +typedef struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, *PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX; + +typedef enum _CPU_SET_INFORMATION_TYPE { + CpuSetInformation +} CPU_SET_INFORMATION_TYPE, *PCPU_SET_INFORMATION_TYPE; + + struct _SYSTEM_CPU_SET_INFORMATION { + DWORD Size; + CPU_SET_INFORMATION_TYPE Type; + union { + struct { + DWORD Id; + WORD Group; + BYTE LogicalProcessorIndex; + BYTE CoreIndex; + BYTE LastLevelCacheIndex; + BYTE NumaNodeIndex; + BYTE EfficiencyClass; + union { + + + + + + + BYTE AllFlags; + struct { + BYTE Parked : 1; + BYTE Allocated : 1; + BYTE AllocatedToTargetProcess : 1; + BYTE RealTime : 1; + BYTE ReservedFlags : 4; + } ; + } ; + + union { + DWORD Reserved; + BYTE SchedulingClass; + }; + + DWORD64 AllocationTag; + } CpuSet; + } ; +}; + +typedef struct _SYSTEM_CPU_SET_INFORMATION SYSTEM_CPU_SET_INFORMATION, *PSYSTEM_CPU_SET_INFORMATION; + + + + +typedef struct _SYSTEM_POOL_ZEROING_INFORMATION { + BOOLEAN PoolZeroingSupportPresent; +} SYSTEM_POOL_ZEROING_INFORMATION, *PSYSTEM_POOL_ZEROING_INFORMATION; + + + + +typedef struct _SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION { + DWORD64 CycleTime; +} SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION, *PSYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION; + +typedef struct _SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION { + DWORD Machine : 16; + DWORD KernelMode : 1; + DWORD UserMode : 1; + DWORD Native : 1; + DWORD Process : 1; + DWORD WoW64Container : 1; + DWORD ReservedZero0 : 11; +} SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION; +# 13856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _XSTATE_FEATURE { + DWORD Offset; + DWORD Size; +} XSTATE_FEATURE, *PXSTATE_FEATURE; + +typedef struct _XSTATE_CONFIGURATION { + + DWORD64 EnabledFeatures; + + + DWORD64 EnabledVolatileFeatures; + + + DWORD Size; + + + union { + DWORD ControlFlags; + struct + { + DWORD OptimizedSave : 1; + DWORD CompactionEnabled : 1; + DWORD ExtendedFeatureDisable : 1; + } ; + } ; + + + XSTATE_FEATURE Features[(64)]; + + + DWORD64 EnabledSupervisorFeatures; + + + DWORD64 AlignedFeatures; + + + DWORD AllFeatureSize; + + + DWORD AllFeatures[(64)]; + + + DWORD64 EnabledUserVisibleSupervisorFeatures; + + + DWORD64 ExtendedFeatureDisableFeatures; + + + DWORD AllNonLargeFeatureSize; + + DWORD Spare; + +} XSTATE_CONFIGURATION, *PXSTATE_CONFIGURATION; + + + + +typedef struct _MEMORY_BASIC_INFORMATION { + PVOID BaseAddress; + PVOID AllocationBase; + DWORD AllocationProtect; + + WORD PartitionId; + + SIZE_T RegionSize; + DWORD State; + DWORD Protect; + DWORD Type; +} MEMORY_BASIC_INFORMATION, *PMEMORY_BASIC_INFORMATION; + + + +typedef struct _MEMORY_BASIC_INFORMATION32 { + DWORD BaseAddress; + DWORD AllocationBase; + DWORD AllocationProtect; + DWORD RegionSize; + DWORD State; + DWORD Protect; + DWORD Type; +} MEMORY_BASIC_INFORMATION32, *PMEMORY_BASIC_INFORMATION32; + +typedef struct __declspec(align(16)) _MEMORY_BASIC_INFORMATION64 { + ULONGLONG BaseAddress; + ULONGLONG AllocationBase; + DWORD AllocationProtect; + DWORD __alignment1; + ULONGLONG RegionSize; + DWORD State; + DWORD Protect; + DWORD Type; + DWORD __alignment2; +} MEMORY_BASIC_INFORMATION64, *PMEMORY_BASIC_INFORMATION64; +# 13991 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _CFG_CALL_TARGET_INFO { + ULONG_PTR Offset; + ULONG_PTR Flags; +} CFG_CALL_TARGET_INFO, *PCFG_CALL_TARGET_INFO; +# 14071 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _MEM_ADDRESS_REQUIREMENTS { + PVOID LowestStartingAddress; + PVOID HighestEndingAddress; + SIZE_T Alignment; +} MEM_ADDRESS_REQUIREMENTS, *PMEM_ADDRESS_REQUIREMENTS; +# 14098 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum MEM_EXTENDED_PARAMETER_TYPE { + MemExtendedParameterInvalidType = 0, + MemExtendedParameterAddressRequirements, + MemExtendedParameterNumaNode, + MemExtendedParameterPartitionHandle, + MemExtendedParameterUserPhysicalHandle, + MemExtendedParameterAttributeFlags, + MemExtendedParameterImageMachine, + MemExtendedParameterMax +} MEM_EXTENDED_PARAMETER_TYPE, *PMEM_EXTENDED_PARAMETER_TYPE; + + + +typedef struct __declspec(align(8)) MEM_EXTENDED_PARAMETER { + + struct { + DWORD64 Type : 8; + DWORD64 Reserved : 64 - 8; + } ; + + union { + DWORD64 ULong64; + PVOID Pointer; + SIZE_T Size; + HANDLE Handle; + DWORD ULong; + } ; + +} MEM_EXTENDED_PARAMETER, *PMEM_EXTENDED_PARAMETER; +# 14138 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _MEM_DEDICATED_ATTRIBUTE_TYPE { + MemDedicatedAttributeReadBandwidth = 0, + MemDedicatedAttributeReadLatency, + MemDedicatedAttributeWriteBandwidth, + MemDedicatedAttributeWriteLatency, + MemDedicatedAttributeMax +} MEM_DEDICATED_ATTRIBUTE_TYPE, *PMEM_DEDICATED_ATTRIBUTE_TYPE; +# 14160 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum MEM_SECTION_EXTENDED_PARAMETER_TYPE { + MemSectionExtendedParameterInvalidType = 0, + MemSectionExtendedParameterUserPhysicalFlags, + MemSectionExtendedParameterNumaNode, + MemSectionExtendedParameterSigningLevel, + MemSectionExtendedParameterMax +} MEM_SECTION_EXTENDED_PARAMETER_TYPE, *PMEM_SECTION_EXTENDED_PARAMETER_TYPE; +# 14176 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _ENCLAVE_CREATE_INFO_SGX { + BYTE Secs[4096]; +} ENCLAVE_CREATE_INFO_SGX, *PENCLAVE_CREATE_INFO_SGX; + +typedef struct _ENCLAVE_INIT_INFO_SGX { + BYTE SigStruct[1808]; + BYTE Reserved1[240]; + BYTE EInitToken[304]; + BYTE Reserved2[1744]; +} ENCLAVE_INIT_INFO_SGX, *PENCLAVE_INIT_INFO_SGX; + + + +typedef struct _ENCLAVE_CREATE_INFO_VBS { + DWORD Flags; + BYTE OwnerID[32]; +} ENCLAVE_CREATE_INFO_VBS, *PENCLAVE_CREATE_INFO_VBS; + + + + + +typedef struct _ENCLAVE_CREATE_INFO_VBS_BASIC { + DWORD Flags; + BYTE OwnerID[32]; +} ENCLAVE_CREATE_INFO_VBS_BASIC, *PENCLAVE_CREATE_INFO_VBS_BASIC; + +typedef struct _ENCLAVE_LOAD_DATA_VBS_BASIC { + DWORD PageType; +} ENCLAVE_LOAD_DATA_VBS_BASIC, *PENCLAVE_LOAD_DATA_VBS_BASIC; + + + + + + + +typedef struct _ENCLAVE_INIT_INFO_VBS_BASIC { + BYTE FamilyId[16]; + BYTE ImageId[16]; + ULONGLONG EnclaveSize; + DWORD EnclaveSvn; + DWORD Reserved; + union { + HANDLE SignatureInfoHandle; + ULONGLONG Unused; + } ; +} ENCLAVE_INIT_INFO_VBS_BASIC, *PENCLAVE_INIT_INFO_VBS_BASIC; + + +typedef struct _ENCLAVE_INIT_INFO_VBS { + DWORD Length; + DWORD ThreadCount; +} ENCLAVE_INIT_INFO_VBS, *PENCLAVE_INIT_INFO_VBS; + + + +typedef PVOID (ENCLAVE_TARGET_FUNCTION)(PVOID); +typedef ENCLAVE_TARGET_FUNCTION (*PENCLAVE_TARGET_FUNCTION); +typedef PENCLAVE_TARGET_FUNCTION LPENCLAVE_TARGET_FUNCTION; + + + + + + +typedef struct __declspec(align(8)) _MEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE { + MEM_DEDICATED_ATTRIBUTE_TYPE Type; + DWORD Reserved; + DWORD64 Value; +} MEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE, *PMEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE; + +typedef struct __declspec(align(8)) _MEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION { + + + + + + + DWORD NextEntryOffset; + + + + + + DWORD SizeOfInformation; + + + + + + DWORD Flags; + + + + + + + DWORD AttributesOffset; + + + + + + DWORD AttributeCount; + + + + + + DWORD Reserved; + + + + + + DWORD64 TypeId; + +} MEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION, *PMEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION; +# 14433 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _FILE_ID_128 { + BYTE Identifier[16]; +} FILE_ID_128, *PFILE_ID_128; + + + + + +typedef struct _FILE_NOTIFY_INFORMATION { + DWORD NextEntryOffset; + DWORD Action; + DWORD FileNameLength; + WCHAR FileName[1]; +} FILE_NOTIFY_INFORMATION, *PFILE_NOTIFY_INFORMATION; + + +typedef struct _FILE_NOTIFY_EXTENDED_INFORMATION { + DWORD NextEntryOffset; + DWORD Action; + LARGE_INTEGER CreationTime; + LARGE_INTEGER LastModificationTime; + LARGE_INTEGER LastChangeTime; + LARGE_INTEGER LastAccessTime; + LARGE_INTEGER AllocatedLength; + LARGE_INTEGER FileSize; + DWORD FileAttributes; + union { + DWORD ReparsePointTag; + DWORD EaSize; + } ; + LARGE_INTEGER FileId; + LARGE_INTEGER ParentFileId; + DWORD FileNameLength; + WCHAR FileName[1]; +} FILE_NOTIFY_EXTENDED_INFORMATION, *PFILE_NOTIFY_EXTENDED_INFORMATION; +# 14477 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _FILE_NOTIFY_FULL_INFORMATION { + DWORD NextEntryOffset; + DWORD Action; + LARGE_INTEGER CreationTime; + LARGE_INTEGER LastModificationTime; + LARGE_INTEGER LastChangeTime; + LARGE_INTEGER LastAccessTime; + LARGE_INTEGER AllocatedLength; + LARGE_INTEGER FileSize; + DWORD FileAttributes; + union { + DWORD ReparsePointTag; + DWORD EaSize; + } ; + LARGE_INTEGER FileId; + LARGE_INTEGER ParentFileId; + WORD FileNameLength; + BYTE FileNameFlags; + BYTE Reserved; + WCHAR FileName[1]; +} FILE_NOTIFY_FULL_INFORMATION, *PFILE_NOTIFY_FULL_INFORMATION; +# 14512 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef union _FILE_SEGMENT_ELEMENT { + PVOID64 Buffer; + ULONGLONG Alignment; +}FILE_SEGMENT_ELEMENT, *PFILE_SEGMENT_ELEMENT; +# 14583 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _REPARSE_GUID_DATA_BUFFER { + DWORD ReparseTag; + WORD ReparseDataLength; + WORD Reserved; + GUID ReparseGuid; + struct { + BYTE DataBuffer[1]; + } GenericReparseBuffer; +} REPARSE_GUID_DATA_BUFFER, *PREPARSE_GUID_DATA_BUFFER; +# 14738 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _SCRUB_DATA_INPUT { + + + + + + DWORD Size; +# 14753 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + DWORD Flags; + + + + + + + + DWORD MaximumIos; + + + + + + + + DWORD ObjectId[4]; + + + + + + DWORD Reserved[41]; + + + + + + + + BYTE ResumeContext[1040]; + +} SCRUB_DATA_INPUT, *PSCRUB_DATA_INPUT; + + + +typedef struct _SCRUB_PARITY_EXTENT { + + LONGLONG Offset; + + ULONGLONG Length; + +} SCRUB_PARITY_EXTENT, *PSCRUB_PARITY_EXTENT; + +typedef struct _SCRUB_PARITY_EXTENT_DATA { + + + + + + WORD Size; + + + + + + WORD Flags; + + + + + + WORD NumberOfParityExtents; + + + + + + WORD MaximumNumberOfParityExtents; + + + + + + SCRUB_PARITY_EXTENT ParityExtents[1]; + +} SCRUB_PARITY_EXTENT_DATA, *PSCRUB_PARITY_EXTENT_DATA; + + + +typedef struct _SCRUB_DATA_OUTPUT { + + + + + + DWORD Size; +# 14849 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + DWORD Flags; + + + + + + DWORD Status; + + + + + + + ULONGLONG ErrorFileOffset; + + + + + + + ULONGLONG ErrorLength; + + + + + + ULONGLONG NumberOfBytesRepaired; + + + + + + ULONGLONG NumberOfBytesFailed; + + + + + + ULONGLONG InternalFileReference; +# 14898 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + WORD ResumeContextLength; + + + + + + + + WORD ParityExtentDataOffset; + + + + + + DWORD Reserved[9]; +# 14930 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + ULONGLONG NumberOfMetadataBytesProcessed; + + + + + + ULONGLONG NumberOfDataBytesProcessed; + + + + + + ULONGLONG TotalNumberOfMetadataBytesInUse; + + + + + + ULONGLONG TotalNumberOfDataBytesInUse; +# 14962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + ULONGLONG DataBytesSkippedDueToNoAllocation; + + + + + + ULONGLONG DataBytesSkippedDueToInvalidRun; + + + + + + ULONGLONG DataBytesSkippedDueToIntegrityStream; + + + + + + ULONGLONG DataBytesSkippedDueToRegionBeingClean; + + + + + + ULONGLONG DataBytesSkippedDueToLockConflict; + + + + + + ULONGLONG DataBytesSkippedDueToNoScrubDataFlag; + + + + + + ULONGLONG DataBytesSkippedDueToNoScrubNonIntegrityStreamFlag; + + + + + + ULONGLONG DataBytesScrubbed; +# 15025 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + BYTE ResumeContext[1040]; + +} SCRUB_DATA_OUTPUT, *PSCRUB_DATA_OUTPUT; +# 15039 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _SharedVirtualDiskSupportType +{ + + + + SharedVirtualDisksUnsupported = 0, + + + + + SharedVirtualDisksSupported = 1, + + + + + + SharedVirtualDiskSnapshotsSupported = 3, + + + + + + SharedVirtualDiskCDPSnapshotsSupported = 7 +} SharedVirtualDiskSupportType; + +typedef enum _SharedVirtualDiskHandleState +{ + + + + SharedVirtualDiskHandleStateNone = 0, + + + + + + SharedVirtualDiskHandleStateFileShared = 1, + + + + + + SharedVirtualDiskHandleStateHandleShared = 3 +} SharedVirtualDiskHandleState; + + + + + +typedef struct _SHARED_VIRTUAL_DISK_SUPPORT { + + + + + SharedVirtualDiskSupportType SharedVirtualDiskSupport; + + + + + + SharedVirtualDiskHandleState HandleState; +} SHARED_VIRTUAL_DISK_SUPPORT, *PSHARED_VIRTUAL_DISK_SUPPORT; +# 15120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _REARRANGE_FILE_DATA { + + + + + + ULONGLONG SourceStartingOffset; + + + + + ULONGLONG TargetOffset; + + + + + + HANDLE SourceFileHandle; + + + + + DWORD Length; + + + + + DWORD Flags; + +} REARRANGE_FILE_DATA, *PREARRANGE_FILE_DATA; + + + + + + +typedef struct _REARRANGE_FILE_DATA32 { + + ULONGLONG SourceStartingOffset; + ULONGLONG TargetOffset; + UINT32 SourceFileHandle; + DWORD Length; + DWORD Flags; + +} REARRANGE_FILE_DATA32, *PREARRANGE_FILE_DATA32; +# 15180 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _SHUFFLE_FILE_DATA { + + LONGLONG StartingOffset; + LONGLONG Length; + DWORD Flags; + +} SHUFFLE_FILE_DATA, *PSHUFFLE_FILE_DATA; +# 15231 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _NETWORK_APP_INSTANCE_EA { + + + + + + + GUID AppInstanceID; + + + + + + DWORD CsvFlags; + +} NETWORK_APP_INSTANCE_EA, *PNETWORK_APP_INSTANCE_EA; +# 15273 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_MAX_POWER_SAVINGS; + + + + + + +extern const GUID GUID_MIN_POWER_SAVINGS; + + + + + + +extern const GUID GUID_TYPICAL_POWER_SAVINGS; + + + + + + + +extern const GUID NO_SUBGROUP_GUID; + + + + + + + +extern const GUID ALL_POWERSCHEMES_GUID; +# 15340 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_POWERSCHEME_PERSONALITY; +# 15349 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_ACTIVE_POWERSCHEME; +# 15364 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_IDLE_RESILIENCY_SUBGROUP; + + + + + + + +extern const GUID GUID_IDLE_RESILIENCY_PERIOD; + + + + + +extern const GUID GUID_DEEP_SLEEP_ENABLED; +# 15387 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_DEEP_SLEEP_PLATFORM_STATE; + + + + + + +extern const GUID GUID_DISK_COALESCING_POWERDOWN_TIMEOUT; +# 15407 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_EXECUTION_REQUIRED_REQUEST_TIMEOUT; +# 15418 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_VIDEO_SUBGROUP; + + + + + + + +extern const GUID GUID_VIDEO_POWERDOWN_TIMEOUT; +# 15435 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_VIDEO_ANNOYANCE_TIMEOUT; +# 15444 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_VIDEO_ADAPTIVE_PERCENT_INCREASE; + + + + + + + +extern const GUID GUID_VIDEO_DIM_TIMEOUT; + + + + + + + +extern const GUID GUID_VIDEO_ADAPTIVE_POWERDOWN; + + + + + + +extern const GUID GUID_MONITOR_POWER_ON; + + + + + + +extern const GUID GUID_DEVICE_POWER_POLICY_VIDEO_BRIGHTNESS; + + + + + + +extern const GUID GUID_DEVICE_POWER_POLICY_VIDEO_DIM_BRIGHTNESS; + + + + + + +extern const GUID GUID_VIDEO_CURRENT_MONITOR_BRIGHTNESS; + + + + + + + +extern const GUID GUID_VIDEO_ADAPTIVE_DISPLAY_BRIGHTNESS; + + + + + + +extern const GUID GUID_CONSOLE_DISPLAY_STATE; + + + + + + + +extern const GUID GUID_ALLOW_DISPLAY_REQUIRED; +# 15520 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_VIDEO_CONSOLE_LOCK_TIMEOUT; +# 15529 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_ADVANCED_COLOR_QUALITY_BIAS; + + + + + + +extern const GUID GUID_ADAPTIVE_POWER_BEHAVIOR_SUBGROUP; + + + + + + +extern const GUID GUID_NON_ADAPTIVE_INPUT_TIMEOUT; + + + + + + +extern const GUID GUID_ADAPTIVE_INPUT_CONTROLLER_STATE; + + + + + + + +extern const GUID GUID_DISK_SUBGROUP; + + + + +extern const GUID GUID_DISK_MAX_POWER; + + + + + +extern const GUID GUID_DISK_POWERDOWN_TIMEOUT; + + + + + + +extern const GUID GUID_DISK_IDLE_TIMEOUT; +# 15585 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_DISK_BURST_IGNORE_THRESHOLD; + + + + + +extern const GUID GUID_DISK_ADAPTIVE_POWERDOWN; + + + + +extern const GUID GUID_DISK_NVME_NOPPME; +# 15605 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_SLEEP_SUBGROUP; + + + + + + + +extern const GUID GUID_SLEEP_IDLE_THRESHOLD; + + + + + +extern const GUID GUID_STANDBY_TIMEOUT; +# 15628 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_UNATTEND_SLEEP_TIMEOUT; + + + + + +extern const GUID GUID_HIBERNATE_TIMEOUT; + + + + + +extern const GUID GUID_HIBERNATE_FASTS4_POLICY; +# 15649 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_CRITICAL_POWER_TRANSITION; + + + + + +extern const GUID GUID_SYSTEM_AWAYMODE; + + + + + + +extern const GUID GUID_ALLOW_AWAYMODE; + + + + + + +extern const GUID GUID_USER_PRESENCE_PREDICTION; + + + + + + +extern const GUID GUID_STANDBY_BUDGET_GRACE_PERIOD; + + + + + + +extern const GUID GUID_STANDBY_BUDGET_PERCENT; + + + + + + +extern const GUID GUID_STANDBY_RESERVE_GRACE_PERIOD; + + + + + + +extern const GUID GUID_STANDBY_RESERVE_TIME; + + + + + + +extern const GUID GUID_STANDBY_RESET_PERCENT; + + + + + + +extern const GUID GUID_HUPR_ADAPTIVE_DISPLAY_TIMEOUT; + + + + + + + +extern const GUID GUID_HUPR_ADAPTIVE_DIM_TIMEOUT; + + + + + + + +extern const GUID GUID_ALLOW_STANDBY_STATES; + + + + + + +extern const GUID GUID_ALLOW_RTC_WAKE; + + + + + + +extern const GUID GUID_LEGACY_RTC_MITIGATION; + + + + + + + +extern const GUID GUID_ALLOW_SYSTEM_REQUIRED; +# 15758 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_POWER_SAVING_STATUS; + + + + + + + +extern const GUID GUID_ENERGY_SAVER_SUBGROUP; + + + + + + +extern const GUID GUID_ENERGY_SAVER_BATTERY_THRESHOLD; + + + + + + +extern const GUID GUID_ENERGY_SAVER_BRIGHTNESS; + + + + + + +extern const GUID GUID_ENERGY_SAVER_POLICY; +# 15796 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_SYSTEM_BUTTON_SUBGROUP; +# 15817 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_POWERBUTTON_ACTION; + + + + + +extern const GUID GUID_SLEEPBUTTON_ACTION; + + + + + + +extern const GUID GUID_USERINTERFACEBUTTON_ACTION; + + + + + +extern const GUID GUID_LIDCLOSE_ACTION; +extern const GUID GUID_LIDOPEN_POWERSTATE; +# 15846 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_BATTERY_SUBGROUP; +# 15858 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_BATTERY_DISCHARGE_ACTION_0; +extern const GUID GUID_BATTERY_DISCHARGE_LEVEL_0; +extern const GUID GUID_BATTERY_DISCHARGE_FLAGS_0; + +extern const GUID GUID_BATTERY_DISCHARGE_ACTION_1; +extern const GUID GUID_BATTERY_DISCHARGE_LEVEL_1; +extern const GUID GUID_BATTERY_DISCHARGE_FLAGS_1; + +extern const GUID GUID_BATTERY_DISCHARGE_ACTION_2; +extern const GUID GUID_BATTERY_DISCHARGE_LEVEL_2; +extern const GUID GUID_BATTERY_DISCHARGE_FLAGS_2; + +extern const GUID GUID_BATTERY_DISCHARGE_ACTION_3; +extern const GUID GUID_BATTERY_DISCHARGE_LEVEL_3; +extern const GUID GUID_BATTERY_DISCHARGE_FLAGS_3; +# 15883 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_SETTINGS_SUBGROUP; + + + + + +extern const GUID GUID_PROCESSOR_THROTTLE_POLICY; +# 15907 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_THROTTLE_MAXIMUM; +# 15917 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_THROTTLE_MAXIMUM_1; +# 15927 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_THROTTLE_MINIMUM; +# 15937 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_THROTTLE_MINIMUM_1; + + + + + + +extern const GUID GUID_PROCESSOR_FREQUENCY_LIMIT; + + + +extern const GUID GUID_PROCESSOR_FREQUENCY_LIMIT_1; +# 15957 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_ALLOW_THROTTLING; +# 15967 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_IDLESTATE_POLICY; + + + + + +extern const GUID GUID_PROCESSOR_PERFSTATE_POLICY; + + + + + + + +extern const GUID GUID_PROCESSOR_PERF_INCREASE_THRESHOLD; +# 15990 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_INCREASE_THRESHOLD_1; + + + + + + + +extern const GUID GUID_PROCESSOR_PERF_DECREASE_THRESHOLD; +# 16007 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_DECREASE_THRESHOLD_1; + + + + + + + +extern const GUID GUID_PROCESSOR_PERF_INCREASE_POLICY; +# 16024 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_INCREASE_POLICY_1; + + + + + + + +extern const GUID GUID_PROCESSOR_PERF_DECREASE_POLICY; +# 16041 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_DECREASE_POLICY_1; +# 16050 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_INCREASE_TIME; +# 16059 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_INCREASE_TIME_1; +# 16068 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_DECREASE_TIME; +# 16077 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_DECREASE_TIME_1; + + + + + + + +extern const GUID GUID_PROCESSOR_PERF_TIME_CHECK; + + + + + + + +extern const GUID GUID_PROCESSOR_PERF_BOOST_POLICY; +# 16105 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_BOOST_MODE; +# 16123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_AUTONOMOUS_MODE; +# 16134 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE; + + + + + + + +extern const GUID GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE_1; +# 16153 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_AUTONOMOUS_ACTIVITY_WINDOW; +# 16163 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_DUTY_CYCLING; +# 16175 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_IDLE_ALLOW_SCALING; + + + + + + +extern const GUID GUID_PROCESSOR_IDLE_DISABLE; +# 16191 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_IDLE_STATE_MAXIMUM; +# 16200 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_IDLE_TIME_CHECK; +# 16209 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_IDLE_DEMOTE_THRESHOLD; + + + + + + + +extern const GUID GUID_PROCESSOR_IDLE_PROMOTE_THRESHOLD; +# 16226 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_CORE_PARKING_INCREASE_THRESHOLD; +# 16235 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_CORE_PARKING_DECREASE_THRESHOLD; + + + + + + +extern const GUID GUID_PROCESSOR_CORE_PARKING_INCREASE_POLICY; +# 16255 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_CORE_PARKING_DECREASE_POLICY; + + + + + + +extern const GUID GUID_PROCESSOR_CORE_PARKING_MAX_CORES; + + + + + + + +extern const GUID GUID_PROCESSOR_CORE_PARKING_MAX_CORES_1; + + + + + + +extern const GUID GUID_PROCESSOR_CORE_PARKING_MIN_CORES; + + + + + + + +extern const GUID GUID_PROCESSOR_CORE_PARKING_MIN_CORES_1; + + + + + + +extern const GUID GUID_PROCESSOR_CORE_PARKING_INCREASE_TIME; + + + + + + +extern const GUID GUID_PROCESSOR_CORE_PARKING_DECREASE_TIME; + + + + + + +extern const GUID GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_DECREASE_FACTOR; + + + + + + +extern const GUID GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_THRESHOLD; + + + + + + +extern const GUID GUID_PROCESSOR_CORE_PARKING_AFFINITY_WEIGHTING; + + + + + + +extern const GUID GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_DECREASE_FACTOR; + + + + + + +extern const GUID GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_THRESHOLD; + + + + + + +extern const GUID GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_WEIGHTING; + + + + + + +extern const GUID GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_THRESHOLD; + + + + + + + +extern const GUID GUID_PROCESSOR_PARKING_CORE_OVERRIDE; + + + + + + + +extern const GUID GUID_PROCESSOR_PARKING_PERF_STATE; + + + + + + + +extern const GUID GUID_PROCESSOR_PARKING_PERF_STATE_1; + + + + + + + +extern const GUID GUID_PROCESSOR_PARKING_CONCURRENCY_THRESHOLD; + + + + + + + +extern const GUID GUID_PROCESSOR_PARKING_HEADROOM_THRESHOLD; + + + + + + + +extern const GUID GUID_PROCESSOR_PARKING_DISTRIBUTION_THRESHOLD; + + + + + + + +extern const GUID GUID_PROCESSOR_SOFT_PARKING_LATENCY; + + + + + + + +extern const GUID GUID_PROCESSOR_PERF_HISTORY; + + + + + + + +extern const GUID GUID_PROCESSOR_PERF_HISTORY_1; +# 16430 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_INCREASE_HISTORY; +# 16440 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_DECREASE_HISTORY; +# 16450 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_CORE_PARKING_HISTORY; +# 16460 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_PERF_LATENCY_HINT; + + + + + + +extern const GUID GUID_PROCESSOR_PERF_LATENCY_HINT_PERF; + + + + + + + +extern const GUID GUID_PROCESSOR_PERF_LATENCY_HINT_PERF_1; + + + + + + + +extern const GUID GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK; + + + + + + + +extern const GUID GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK_1; + + + + + + +extern const GUID GUID_PROCESSOR_MODULE_PARKING_POLICY; + + + + + + +extern const GUID GUID_PROCESSOR_COMPLEX_PARKING_POLICY; +# 16521 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_SMT_UNPARKING_POLICY; +# 16534 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_DISTRIBUTE_UTILITY; +# 16545 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_HETEROGENEOUS_POLICY; + + + + + + + +extern const GUID GUID_PROCESSOR_HETERO_DECREASE_TIME; + + + + + + + +extern const GUID GUID_PROCESSOR_HETERO_INCREASE_TIME; +# 16570 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_HETERO_DECREASE_THRESHOLD; +# 16579 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_HETERO_DECREASE_THRESHOLD_1; +# 16588 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_HETERO_INCREASE_THRESHOLD; +# 16597 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_HETERO_INCREASE_THRESHOLD_1; +# 16606 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_CLASS0_FLOOR_PERF; +# 16615 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_CLASS1_INITIAL_PERF; + + + + + + +extern const GUID GUID_PROCESSOR_THREAD_SCHEDULING_POLICY; +# 16631 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_SHORT_THREAD_SCHEDULING_POLICY; +# 16640 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_SHORT_THREAD_RUNTIME_THRESHOLD; + + + + + + + +extern const GUID GUID_PROCESSOR_SHORT_THREAD_ARCH_CLASS_UPPER_THRESHOLD; + + + + + + + +extern const GUID GUID_PROCESSOR_SHORT_THREAD_ARCH_CLASS_LOWER_THRESHOLD; + + + + + + + +extern const GUID GUID_PROCESSOR_LONG_THREAD_ARCH_CLASS_UPPER_THRESHOLD; + + + + + + + +extern const GUID GUID_PROCESSOR_LONG_THREAD_ARCH_CLASS_LOWER_THRESHOLD; +# 16681 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_SYSTEM_COOLING_POLICY; +# 16692 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD; +# 16701 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD_1; + + + + + + + +extern const GUID GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD; + + + + + + + +extern const GUID GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD_1; + + + + + + + +extern const GUID GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME; + + + + + + + +extern const GUID GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME_1; + + + + + + + +extern const GUID GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME; + + + + + + + +extern const GUID GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME_1; + + + + + + +extern const GUID GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING; + + + + + + + +extern const GUID GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING_1; + + + + + + + +extern const GUID GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR; + + + + + + + +extern const GUID GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR_1; +# 16791 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_LOCK_CONSOLE_ON_WAKE; +# 16801 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_DEVICE_IDLE_POLICY; +# 16810 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_CONNECTIVITY_IN_STANDBY; +# 16820 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_DISCONNECTED_STANDBY_MODE; +# 16841 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_ACDC_POWER_SOURCE; +# 16857 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_LIDSWITCH_STATE_CHANGE; +# 16872 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_LIDSWITCH_STATE_RELIABILITY; +# 16889 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_BATTERY_PERCENTAGE_REMAINING; +# 16902 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_BATTERY_COUNT; + + + + + + +extern const GUID GUID_GLOBAL_USER_PRESENCE; +# 16920 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_SESSION_DISPLAY_STATUS; +# 16930 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_SESSION_USER_PRESENCE; + + + + + + +extern const GUID GUID_IDLE_BACKGROUND_TASK; + + + + + + +extern const GUID GUID_BACKGROUND_TASK_NOTIFICATION; + + + + + + + +extern const GUID GUID_APPLAUNCH_BUTTON; +# 16963 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_PCIEXPRESS_SETTINGS_SUBGROUP; + + + + + +extern const GUID GUID_PCIEXPRESS_ASPM_POLICY; +# 16981 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_ENABLE_SWITCH_FORCED_SHUTDOWN; + + + + + + +extern const GUID GUID_INTSTEER_SUBGROUP; + + + +extern const GUID GUID_INTSTEER_MODE; + + + +extern const GUID GUID_INTSTEER_LOAD_PER_PROC_TRIGGER; + + + +extern const GUID GUID_INTSTEER_TIME_UNPARK_TRIGGER; +# 17011 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_GRAPHICS_SUBGROUP; + + + + + +extern const GUID GUID_GPU_PREFERENCE_POLICY; +# 17028 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID GUID_MIXED_REALITY_MODE; + + + + + + + +extern const GUID GUID_SPR_ACTIVE_SESSION_CHANGE; + + + +typedef enum _SYSTEM_POWER_STATE { + PowerSystemUnspecified = 0, + PowerSystemWorking = 1, + PowerSystemSleeping1 = 2, + PowerSystemSleeping2 = 3, + PowerSystemSleeping3 = 4, + PowerSystemHibernate = 5, + PowerSystemShutdown = 6, + PowerSystemMaximum = 7 +} SYSTEM_POWER_STATE, *PSYSTEM_POWER_STATE; + + + +typedef enum { + PowerActionNone = 0, + PowerActionReserved, + PowerActionSleep, + PowerActionHibernate, + PowerActionShutdown, + PowerActionShutdownReset, + PowerActionShutdownOff, + PowerActionWarmEject, + PowerActionDisplayOff +} POWER_ACTION, *PPOWER_ACTION; + +typedef enum _DEVICE_POWER_STATE { + PowerDeviceUnspecified = 0, + PowerDeviceD0, + PowerDeviceD1, + PowerDeviceD2, + PowerDeviceD3, + PowerDeviceMaximum +} DEVICE_POWER_STATE, *PDEVICE_POWER_STATE; + +typedef enum _MONITOR_DISPLAY_STATE { + PowerMonitorOff = 0, + PowerMonitorOn, + PowerMonitorDim +} MONITOR_DISPLAY_STATE, *PMONITOR_DISPLAY_STATE; + +typedef enum _USER_ACTIVITY_PRESENCE { + PowerUserPresent = 0, + PowerUserNotPresent, + PowerUserInactive, + PowerUserMaximum, + PowerUserInvalid = PowerUserMaximum +} USER_ACTIVITY_PRESENCE, *PUSER_ACTIVITY_PRESENCE; +# 17096 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef DWORD EXECUTION_STATE, *PEXECUTION_STATE; + +typedef enum { + LT_DONT_CARE, + LT_LOWEST_LATENCY +} LATENCY_TIME; +# 17120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _POWER_REQUEST_TYPE { + PowerRequestDisplayRequired, + PowerRequestSystemRequired, + PowerRequestAwayModeRequired, + PowerRequestExecutionRequired +} POWER_REQUEST_TYPE, *PPOWER_REQUEST_TYPE; +# 17146 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct CM_Power_Data_s { + DWORD PD_Size; + DEVICE_POWER_STATE PD_MostRecentPowerState; + DWORD PD_Capabilities; + DWORD PD_D1Latency; + DWORD PD_D2Latency; + DWORD PD_D3Latency; + DEVICE_POWER_STATE PD_PowerStateMapping[7]; + SYSTEM_POWER_STATE PD_DeepestSystemWake; +} CM_POWER_DATA, *PCM_POWER_DATA; + + + + + +typedef enum { + SystemPowerPolicyAc, + SystemPowerPolicyDc, + VerifySystemPolicyAc, + VerifySystemPolicyDc, + SystemPowerCapabilities, + SystemBatteryState, + SystemPowerStateHandler, + ProcessorStateHandler, + SystemPowerPolicyCurrent, + AdministratorPowerPolicy, + SystemReserveHiberFile, + ProcessorInformation, + SystemPowerInformation, + ProcessorStateHandler2, + LastWakeTime, + LastSleepTime, + SystemExecutionState, + SystemPowerStateNotifyHandler, + ProcessorPowerPolicyAc, + ProcessorPowerPolicyDc, + VerifyProcessorPowerPolicyAc, + VerifyProcessorPowerPolicyDc, + ProcessorPowerPolicyCurrent, + SystemPowerStateLogging, + SystemPowerLoggingEntry, + SetPowerSettingValue, + NotifyUserPowerSetting, + PowerInformationLevelUnused0, + SystemMonitorHiberBootPowerOff, + SystemVideoState, + TraceApplicationPowerMessage, + TraceApplicationPowerMessageEnd, + ProcessorPerfStates, + ProcessorIdleStates, + ProcessorCap, + SystemWakeSource, + SystemHiberFileInformation, + TraceServicePowerMessage, + ProcessorLoad, + PowerShutdownNotification, + MonitorCapabilities, + SessionPowerInit, + SessionDisplayState, + PowerRequestCreate, + PowerRequestAction, + GetPowerRequestList, + ProcessorInformationEx, + NotifyUserModeLegacyPowerEvent, + GroupPark, + ProcessorIdleDomains, + WakeTimerList, + SystemHiberFileSize, + ProcessorIdleStatesHv, + ProcessorPerfStatesHv, + ProcessorPerfCapHv, + ProcessorSetIdle, + LogicalProcessorIdling, + UserPresence, + PowerSettingNotificationName, + GetPowerSettingValue, + IdleResiliency, + SessionRITState, + SessionConnectNotification, + SessionPowerCleanup, + SessionLockState, + SystemHiberbootState, + PlatformInformation, + PdcInvocation, + MonitorInvocation, + FirmwareTableInformationRegistered, + SetShutdownSelectedTime, + SuspendResumeInvocation, + PlmPowerRequestCreate, + ScreenOff, + CsDeviceNotification, + PlatformRole, + LastResumePerformance, + DisplayBurst, + ExitLatencySamplingPercentage, + RegisterSpmPowerSettings, + PlatformIdleStates, + ProcessorIdleVeto, + PlatformIdleVeto, + SystemBatteryStatePrecise, + ThermalEvent, + PowerRequestActionInternal, + BatteryDeviceState, + PowerInformationInternal, + ThermalStandby, + SystemHiberFileType, + PhysicalPowerButtonPress, + QueryPotentialDripsConstraint, + EnergyTrackerCreate, + EnergyTrackerQuery, + UpdateBlackBoxRecorder, + SessionAllowExternalDmaDevices, + SendSuspendResumeNotification, + BlackBoxRecorderDirectAccessBuffer, + PowerInformationLevelMaximum +} POWER_INFORMATION_LEVEL; + + + + + +typedef enum { + UserNotPresent = 0, + UserPresent = 1, + UserUnknown = 0xff +} POWER_USER_PRESENCE_TYPE, *PPOWER_USER_PRESENCE_TYPE; + +typedef struct _POWER_USER_PRESENCE { + POWER_USER_PRESENCE_TYPE UserPresence; +} POWER_USER_PRESENCE, *PPOWER_USER_PRESENCE; + + + + +typedef struct _POWER_SESSION_CONNECT { + BOOLEAN Connected; + BOOLEAN Console; +} POWER_SESSION_CONNECT, *PPOWER_SESSION_CONNECT; + +typedef struct _POWER_SESSION_TIMEOUTS { + DWORD InputTimeout; + DWORD DisplayTimeout; +} POWER_SESSION_TIMEOUTS, *PPOWER_SESSION_TIMEOUTS; + + + + +typedef struct _POWER_SESSION_RIT_STATE { + BOOLEAN Active; + DWORD64 LastInputTime; +} POWER_SESSION_RIT_STATE, *PPOWER_SESSION_RIT_STATE; + + + + +typedef struct _POWER_SESSION_WINLOGON { + DWORD SessionId; + BOOLEAN Console; + BOOLEAN Locked; +} POWER_SESSION_WINLOGON, *PPOWER_SESSION_WINLOGON; + + + + +typedef struct _POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES { + BOOLEAN IsAllowed; +} POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES, *PPOWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES; + + + + +typedef struct _POWER_IDLE_RESILIENCY { + DWORD CoalescingTimeout; + DWORD IdleResiliencyPeriod; +} POWER_IDLE_RESILIENCY, *PPOWER_IDLE_RESILIENCY; + + + + + + +typedef enum { + MonitorRequestReasonUnknown, + MonitorRequestReasonPowerButton, + MonitorRequestReasonRemoteConnection, + MonitorRequestReasonScMonitorpower, + MonitorRequestReasonUserInput, + MonitorRequestReasonAcDcDisplayBurst, + MonitorRequestReasonUserDisplayBurst, + MonitorRequestReasonPoSetSystemState, + MonitorRequestReasonSetThreadExecutionState, + MonitorRequestReasonFullWake, + MonitorRequestReasonSessionUnlock, + MonitorRequestReasonScreenOffRequest, + MonitorRequestReasonIdleTimeout, + MonitorRequestReasonPolicyChange, + MonitorRequestReasonSleepButton, + MonitorRequestReasonLid, + MonitorRequestReasonBatteryCountChange, + MonitorRequestReasonGracePeriod, + MonitorRequestReasonPnP, + MonitorRequestReasonDP, + MonitorRequestReasonSxTransition, + MonitorRequestReasonSystemIdle, + MonitorRequestReasonNearProximity, + MonitorRequestReasonThermalStandby, + MonitorRequestReasonResumePdc, + MonitorRequestReasonResumeS4, + MonitorRequestReasonTerminal, + MonitorRequestReasonPdcSignal, + MonitorRequestReasonAcDcDisplayBurstSuppressed, + MonitorRequestReasonSystemStateEntered, + + + MonitorRequestReasonWinrt, + MonitorRequestReasonUserInputKeyboard, + MonitorRequestReasonUserInputMouse, + MonitorRequestReasonUserInputTouchpad, + MonitorRequestReasonUserInputPen, + MonitorRequestReasonUserInputAccelerometer, + MonitorRequestReasonUserInputHid, + MonitorRequestReasonUserInputPoUserPresent, + MonitorRequestReasonUserInputSessionSwitch, + MonitorRequestReasonUserInputInitialization, + MonitorRequestReasonPdcSignalWindowsMobilePwrNotif, + MonitorRequestReasonPdcSignalWindowsMobileShell, + MonitorRequestReasonPdcSignalHeyCortana, + MonitorRequestReasonPdcSignalHolographicShell, + MonitorRequestReasonPdcSignalFingerprint, + MonitorRequestReasonDirectedDrips, + MonitorRequestReasonDim, + MonitorRequestReasonBuiltinPanel, + MonitorRequestReasonDisplayRequiredUnDim, + MonitorRequestReasonBatteryCountChangeSuppressed, + MonitorRequestReasonResumeModernStandby, + MonitorRequestReasonTerminalInit, + MonitorRequestReasonPdcSignalSensorsHumanPresence, + MonitorRequestReasonBatteryPreCritical, + MonitorRequestReasonUserInputTouch, + MonitorRequestReasonMax +} POWER_MONITOR_REQUEST_REASON; + +typedef enum _POWER_MONITOR_REQUEST_TYPE { + MonitorRequestTypeOff, + MonitorRequestTypeOnAndPresent, + MonitorRequestTypeToggleOn +} POWER_MONITOR_REQUEST_TYPE; + + + + +typedef struct _POWER_MONITOR_INVOCATION { + BOOLEAN Console; + POWER_MONITOR_REQUEST_REASON RequestReason; +} POWER_MONITOR_INVOCATION, *PPOWER_MONITOR_INVOCATION; + + + + + +typedef struct _RESUME_PERFORMANCE { + DWORD PostTimeMs; + ULONGLONG TotalResumeTimeMs; + ULONGLONG ResumeCompleteTimestamp; +} RESUME_PERFORMANCE, *PRESUME_PERFORMANCE; + + + + + +typedef enum { + PoAc, + PoDc, + PoHot, + PoConditionMaximum +} SYSTEM_POWER_CONDITION; + +typedef struct { + + + + + + DWORD Version; + + + + + + GUID Guid; + + + + + + + SYSTEM_POWER_CONDITION PowerCondition; + + + + + DWORD DataLength; + + + + + BYTE Data[1]; +} SET_POWER_SETTING_VALUE, *PSET_POWER_SETTING_VALUE; + + + +typedef struct { + GUID Guid; +} NOTIFY_USER_POWER_SETTING, *PNOTIFY_USER_POWER_SETTING; + + + + + + +typedef struct _APPLICATIONLAUNCH_SETTING_VALUE { + + + + + + LARGE_INTEGER ActivationTime; + + + + + DWORD Flags; + + + + + DWORD ButtonInstanceID; + + +} APPLICATIONLAUNCH_SETTING_VALUE, *PAPPLICATIONLAUNCH_SETTING_VALUE; + + + + + +typedef enum _POWER_PLATFORM_ROLE { + PlatformRoleUnspecified = 0, + PlatformRoleDesktop, + PlatformRoleMobile, + PlatformRoleWorkstation, + PlatformRoleEnterpriseServer, + PlatformRoleSOHOServer, + PlatformRoleAppliancePC, + PlatformRolePerformanceServer, + PlatformRoleSlate, + PlatformRoleMaximum +} POWER_PLATFORM_ROLE, *PPOWER_PLATFORM_ROLE; +# 17522 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _POWER_PLATFORM_INFORMATION { + BOOLEAN AoAc; +} POWER_PLATFORM_INFORMATION, *PPOWER_PLATFORM_INFORMATION; + + + + + +typedef enum POWER_SETTING_ALTITUDE { + ALTITUDE_GROUP_POLICY, + ALTITUDE_USER, + ALTITUDE_RUNTIME_OVERRIDE, + ALTITUDE_PROVISIONING, + ALTITUDE_OEM_CUSTOMIZATION, + ALTITUDE_INTERNAL_OVERRIDE, + ALTITUDE_OS_DEFAULT, +} POWER_SETTING_ALTITUDE, *PPOWER_SETTING_ALTITUDE; + + + + + + +typedef struct { + DWORD Granularity; + DWORD Capacity; +} BATTERY_REPORTING_SCALE, *PBATTERY_REPORTING_SCALE; + + + + +typedef struct { + DWORD Frequency; + DWORD Flags; + DWORD PercentFrequency; +} PPM_WMI_LEGACY_PERFSTATE, *PPPM_WMI_LEGACY_PERFSTATE; + +typedef struct { + DWORD Latency; + DWORD Power; + DWORD TimeCheck; + BYTE PromotePercent; + BYTE DemotePercent; + BYTE StateType; + BYTE Reserved; + DWORD StateFlags; + DWORD Context; + DWORD IdleHandler; + DWORD Reserved1; +} PPM_WMI_IDLE_STATE, *PPPM_WMI_IDLE_STATE; + +typedef struct { + DWORD Type; + DWORD Count; + DWORD TargetState; + DWORD OldState; + DWORD64 TargetProcessors; + PPM_WMI_IDLE_STATE State[1]; +} PPM_WMI_IDLE_STATES, *PPPM_WMI_IDLE_STATES; + +typedef struct { + DWORD Type; + DWORD Count; + DWORD TargetState; + DWORD OldState; + PVOID TargetProcessors; + PPM_WMI_IDLE_STATE State[1]; +} PPM_WMI_IDLE_STATES_EX, *PPPM_WMI_IDLE_STATES_EX; + +typedef struct { + DWORD Frequency; + DWORD Power; + BYTE PercentFrequency; + BYTE IncreaseLevel; + BYTE DecreaseLevel; + BYTE Type; + DWORD IncreaseTime; + DWORD DecreaseTime; + DWORD64 Control; + DWORD64 Status; + DWORD HitCount; + DWORD Reserved1; + DWORD64 Reserved2; + DWORD64 Reserved3; +} PPM_WMI_PERF_STATE, *PPPM_WMI_PERF_STATE; + +typedef struct { + DWORD Count; + DWORD MaxFrequency; + DWORD CurrentState; + DWORD MaxPerfState; + DWORD MinPerfState; + DWORD LowestPerfState; + DWORD ThermalConstraint; + BYTE BusyAdjThreshold; + BYTE PolicyType; + BYTE Type; + BYTE Reserved; + DWORD TimerInterval; + DWORD64 TargetProcessors; + DWORD PStateHandler; + DWORD PStateContext; + DWORD TStateHandler; + DWORD TStateContext; + DWORD FeedbackHandler; + DWORD Reserved1; + DWORD64 Reserved2; + PPM_WMI_PERF_STATE State[1]; +} PPM_WMI_PERF_STATES, *PPPM_WMI_PERF_STATES; + +typedef struct { + DWORD Count; + DWORD MaxFrequency; + DWORD CurrentState; + DWORD MaxPerfState; + DWORD MinPerfState; + DWORD LowestPerfState; + DWORD ThermalConstraint; + BYTE BusyAdjThreshold; + BYTE PolicyType; + BYTE Type; + BYTE Reserved; + DWORD TimerInterval; + PVOID TargetProcessors; + DWORD PStateHandler; + DWORD PStateContext; + DWORD TStateHandler; + DWORD TStateContext; + DWORD FeedbackHandler; + DWORD Reserved1; + DWORD64 Reserved2; + PPM_WMI_PERF_STATE State[1]; +} PPM_WMI_PERF_STATES_EX, *PPPM_WMI_PERF_STATES_EX; + + + + + + + +typedef struct { + DWORD IdleTransitions; + DWORD FailedTransitions; + DWORD InvalidBucketIndex; + DWORD64 TotalTime; + DWORD IdleTimeBuckets[6]; +} PPM_IDLE_STATE_ACCOUNTING, *PPPM_IDLE_STATE_ACCOUNTING; + +typedef struct { + DWORD StateCount; + DWORD TotalTransitions; + DWORD ResetCount; + DWORD64 StartTime; + PPM_IDLE_STATE_ACCOUNTING State[1]; +} PPM_IDLE_ACCOUNTING, *PPPM_IDLE_ACCOUNTING; + + + + + + + +typedef struct { + DWORD64 TotalTimeUs; + DWORD MinTimeUs; + DWORD MaxTimeUs; + DWORD Count; +} PPM_IDLE_STATE_BUCKET_EX, *PPPM_IDLE_STATE_BUCKET_EX; + +typedef struct { + DWORD64 TotalTime; + DWORD IdleTransitions; + DWORD FailedTransitions; + DWORD InvalidBucketIndex; + DWORD MinTimeUs; + DWORD MaxTimeUs; + DWORD CancelledTransitions; + PPM_IDLE_STATE_BUCKET_EX IdleTimeBuckets[16]; +} PPM_IDLE_STATE_ACCOUNTING_EX, *PPPM_IDLE_STATE_ACCOUNTING_EX; + +typedef struct { + DWORD StateCount; + DWORD TotalTransitions; + DWORD ResetCount; + DWORD AbortCount; + DWORD64 StartTime; + PPM_IDLE_STATE_ACCOUNTING_EX State[1]; +} PPM_IDLE_ACCOUNTING_EX, *PPPM_IDLE_ACCOUNTING_EX; +# 17772 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +extern const GUID PPM_PERFSTATE_CHANGE_GUID; + + + +extern const GUID PPM_PERFSTATE_DOMAIN_CHANGE_GUID; + + + +extern const GUID PPM_IDLESTATE_CHANGE_GUID; + + + +extern const GUID PPM_PERFSTATES_DATA_GUID; + + + +extern const GUID PPM_IDLESTATES_DATA_GUID; + + + +extern const GUID PPM_IDLE_ACCOUNTING_GUID; + + + +extern const GUID PPM_IDLE_ACCOUNTING_EX_GUID; + + + +extern const GUID PPM_THERMALCONSTRAINT_GUID; + + + +extern const GUID PPM_PERFMON_PERFSTATE_GUID; + + + +extern const GUID PPM_THERMAL_POLICY_CHANGE_GUID; + + + +typedef struct { + DWORD State; + DWORD Status; + DWORD Latency; + DWORD Speed; + DWORD Processor; +} PPM_PERFSTATE_EVENT, *PPPM_PERFSTATE_EVENT; + +typedef struct { + DWORD State; + DWORD Latency; + DWORD Speed; + DWORD64 Processors; +} PPM_PERFSTATE_DOMAIN_EVENT, *PPPM_PERFSTATE_DOMAIN_EVENT; + +typedef struct { + DWORD NewState; + DWORD OldState; + DWORD64 Processors; +} PPM_IDLESTATE_EVENT, *PPPM_IDLESTATE_EVENT; + +typedef struct { + DWORD ThermalConstraint; + DWORD64 Processors; +} PPM_THERMALCHANGE_EVENT, *PPPM_THERMALCHANGE_EVENT; + +#pragma warning(push) +#pragma warning(disable: 4121) + +typedef struct { + BYTE Mode; + DWORD64 Processors; +} PPM_THERMAL_POLICY_EVENT, *PPPM_THERMAL_POLICY_EVENT; + +#pragma warning(pop) + + + + +typedef struct { + POWER_ACTION Action; + DWORD Flags; + DWORD EventCode; +} POWER_ACTION_POLICY, *PPOWER_ACTION_POLICY; +# 17893 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct { + BOOLEAN Enable; + BYTE Spare[3]; + DWORD BatteryLevel; + POWER_ACTION_POLICY PowerPolicy; + SYSTEM_POWER_STATE MinSystemState; +} SYSTEM_POWER_LEVEL, *PSYSTEM_POWER_LEVEL; +# 17908 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _SYSTEM_POWER_POLICY { + DWORD Revision; + + + POWER_ACTION_POLICY PowerButton; + POWER_ACTION_POLICY SleepButton; + POWER_ACTION_POLICY LidClose; + SYSTEM_POWER_STATE LidOpenWake; + DWORD Reserved; + + + POWER_ACTION_POLICY Idle; + DWORD IdleTimeout; + BYTE IdleSensitivity; + + BYTE DynamicThrottle; + BYTE Spare2[2]; + + + SYSTEM_POWER_STATE MinSleep; + SYSTEM_POWER_STATE MaxSleep; + SYSTEM_POWER_STATE ReducedLatencySleep; + DWORD WinLogonFlags; + + DWORD Spare3; + + + + DWORD DozeS4Timeout; + + + DWORD BroadcastCapacityResolution; + SYSTEM_POWER_LEVEL DischargePolicy[4]; + + + DWORD VideoTimeout; + BOOLEAN VideoDimDisplay; + DWORD VideoReserved[3]; + + + DWORD SpindownTimeout; + + + BOOLEAN OptimizeForPower; + BYTE FanThrottleTolerance; + BYTE ForcedThrottle; + BYTE MinThrottle; + POWER_ACTION_POLICY OverThrottled; + +} SYSTEM_POWER_POLICY, *PSYSTEM_POWER_POLICY; +# 17968 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct { + DWORD TimeCheck; + BYTE DemotePercent; + BYTE PromotePercent; + BYTE Spare[2]; +} PROCESSOR_IDLESTATE_INFO, *PPROCESSOR_IDLESTATE_INFO; + +typedef struct { + WORD Revision; + union { + WORD AsWORD ; + struct { + WORD AllowScaling : 1; + WORD Disabled : 1; + WORD Reserved : 14; + } ; + } Flags; + + DWORD PolicyCount; + PROCESSOR_IDLESTATE_INFO Policy[0x3]; +} PROCESSOR_IDLESTATE_POLICY, *PPROCESSOR_IDLESTATE_POLICY; +# 18003 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _PROCESSOR_POWER_POLICY_INFO { + + + DWORD TimeCheck; + DWORD DemoteLimit; + DWORD PromoteLimit; + + + BYTE DemotePercent; + BYTE PromotePercent; + BYTE Spare[2]; + + + DWORD AllowDemotion:1; + DWORD AllowPromotion:1; + DWORD Reserved:30; + +} PROCESSOR_POWER_POLICY_INFO, *PPROCESSOR_POWER_POLICY_INFO; + + +typedef struct _PROCESSOR_POWER_POLICY { + DWORD Revision; + + + BYTE DynamicThrottle; + BYTE Spare[3]; + + + DWORD DisableCStates:1; + DWORD Reserved:31; + + + + + DWORD PolicyCount; + PROCESSOR_POWER_POLICY_INFO Policy[3]; + +} PROCESSOR_POWER_POLICY, *PPROCESSOR_POWER_POLICY; + + + + + +typedef struct { + DWORD Revision; + BYTE MaxThrottle; + BYTE MinThrottle; + BYTE BusyAdjThreshold; + union { + BYTE Spare; + union { + BYTE AsBYTE ; + struct { + BYTE NoDomainAccounting : 1; + BYTE IncreasePolicy: 2; + BYTE DecreasePolicy: 2; + BYTE Reserved : 3; + } ; + } Flags; + } ; + + DWORD TimeCheck; + DWORD IncreaseTime; + DWORD DecreaseTime; + DWORD IncreasePercent; + DWORD DecreasePercent; +} PROCESSOR_PERFSTATE_POLICY, *PPROCESSOR_PERFSTATE_POLICY; + + +typedef struct _ADMINISTRATOR_POWER_POLICY { + + + SYSTEM_POWER_STATE MinSleep; + SYSTEM_POWER_STATE MaxSleep; + + + DWORD MinVideoTimeout; + DWORD MaxVideoTimeout; + + + DWORD MinSpindownTimeout; + DWORD MaxSpindownTimeout; +} ADMINISTRATOR_POWER_POLICY, *PADMINISTRATOR_POWER_POLICY; + + +typedef enum _HIBERFILE_BUCKET_SIZE { + HiberFileBucket1GB = 0, + HiberFileBucket2GB, + HiberFileBucket4GB, + HiberFileBucket8GB, + HiberFileBucket16GB, + HiberFileBucket32GB, + HiberFileBucketUnlimited, + HiberFileBucketMax +} HIBERFILE_BUCKET_SIZE, *PHIBERFILE_BUCKET_SIZE; + + + + + + +typedef struct _HIBERFILE_BUCKET { + DWORD64 MaxPhysicalMemory; + DWORD PhysicalMemoryPercent[0x03]; +} HIBERFILE_BUCKET, *PHIBERFILE_BUCKET; + +typedef struct { + + BOOLEAN PowerButtonPresent; + BOOLEAN SleepButtonPresent; + BOOLEAN LidPresent; + BOOLEAN SystemS1; + BOOLEAN SystemS2; + BOOLEAN SystemS3; + BOOLEAN SystemS4; + BOOLEAN SystemS5; + BOOLEAN HiberFilePresent; + BOOLEAN FullWake; + BOOLEAN VideoDimPresent; + BOOLEAN ApmPresent; + BOOLEAN UpsPresent; + + + BOOLEAN ThermalControl; + BOOLEAN ProcessorThrottle; + BYTE ProcessorMinThrottle; + + + + + + BYTE ProcessorMaxThrottle; + BOOLEAN FastSystemS4; + BOOLEAN Hiberboot; + BOOLEAN WakeAlarmPresent; + BOOLEAN AoAc; + + + + BOOLEAN DiskSpinDown; + + + + + + BYTE HiberFileType; + BOOLEAN AoAcConnectivitySupported; + BYTE spare3[6]; + + + + BOOLEAN SystemBatteriesPresent; + BOOLEAN BatteriesAreShortTerm; + BATTERY_REPORTING_SCALE BatteryScale[3]; + + + SYSTEM_POWER_STATE AcOnLineWake; + SYSTEM_POWER_STATE SoftLidWake; + SYSTEM_POWER_STATE RtcWake; + SYSTEM_POWER_STATE MinDeviceWakeState; + SYSTEM_POWER_STATE DefaultLowLatencyWake; +} SYSTEM_POWER_CAPABILITIES, *PSYSTEM_POWER_CAPABILITIES; + +typedef struct { + BOOLEAN AcOnLine; + BOOLEAN BatteryPresent; + BOOLEAN Charging; + BOOLEAN Discharging; + BOOLEAN Spare1[3]; + + BYTE Tag; + + DWORD MaxCapacity; + DWORD RemainingCapacity; + DWORD Rate; + DWORD EstimatedTime; + + DWORD DefaultAlert1; + DWORD DefaultAlert2; +} SYSTEM_BATTERY_STATE, *PSYSTEM_BATTERY_STATE; +# 18193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,4) +# 18194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + + + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,2) +# 18202 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 +# 18213 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_DOS_HEADER { + WORD e_magic; + WORD e_cblp; + WORD e_cp; + WORD e_crlc; + WORD e_cparhdr; + WORD e_minalloc; + WORD e_maxalloc; + WORD e_ss; + WORD e_sp; + WORD e_csum; + WORD e_ip; + WORD e_cs; + WORD e_lfarlc; + WORD e_ovno; + WORD e_res[4]; + WORD e_oemid; + WORD e_oeminfo; + WORD e_res2[10]; + LONG e_lfanew; + } IMAGE_DOS_HEADER, *PIMAGE_DOS_HEADER; + +typedef struct _IMAGE_OS2_HEADER { + WORD ne_magic; + CHAR ne_ver; + CHAR ne_rev; + WORD ne_enttab; + WORD ne_cbenttab; + LONG ne_crc; + WORD ne_flags; + WORD ne_autodata; + WORD ne_heap; + WORD ne_stack; + LONG ne_csip; + LONG ne_sssp; + WORD ne_cseg; + WORD ne_cmod; + WORD ne_cbnrestab; + WORD ne_segtab; + WORD ne_rsrctab; + WORD ne_restab; + WORD ne_modtab; + WORD ne_imptab; + LONG ne_nrestab; + WORD ne_cmovent; + WORD ne_align; + WORD ne_cres; + BYTE ne_exetyp; + BYTE ne_flagsothers; + WORD ne_pretthunks; + WORD ne_psegrefbytes; + WORD ne_swaparea; + WORD ne_expver; + } IMAGE_OS2_HEADER, *PIMAGE_OS2_HEADER; + +typedef struct _IMAGE_VXD_HEADER { + WORD e32_magic; + BYTE e32_border; + BYTE e32_worder; + DWORD e32_level; + WORD e32_cpu; + WORD e32_os; + DWORD e32_ver; + DWORD e32_mflags; + DWORD e32_mpages; + DWORD e32_startobj; + DWORD e32_eip; + DWORD e32_stackobj; + DWORD e32_esp; + DWORD e32_pagesize; + DWORD e32_lastpagesize; + DWORD e32_fixupsize; + DWORD e32_fixupsum; + DWORD e32_ldrsize; + DWORD e32_ldrsum; + DWORD e32_objtab; + DWORD e32_objcnt; + DWORD e32_objmap; + DWORD e32_itermap; + DWORD e32_rsrctab; + DWORD e32_rsrccnt; + DWORD e32_restab; + DWORD e32_enttab; + DWORD e32_dirtab; + DWORD e32_dircnt; + DWORD e32_fpagetab; + DWORD e32_frectab; + DWORD e32_impmod; + DWORD e32_impmodcnt; + DWORD e32_impproc; + DWORD e32_pagesum; + DWORD e32_datapage; + DWORD e32_preload; + DWORD e32_nrestab; + DWORD e32_cbnrestab; + DWORD e32_nressum; + DWORD e32_autodata; + DWORD e32_debuginfo; + DWORD e32_debuglen; + DWORD e32_instpreload; + DWORD e32_instdemand; + DWORD e32_heapsize; + BYTE e32_res3[12]; + DWORD e32_winresoff; + DWORD e32_winreslen; + WORD e32_devid; + WORD e32_ddkver; + } IMAGE_VXD_HEADER, *PIMAGE_VXD_HEADER; + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 18324 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + + + + + + +typedef struct _IMAGE_FILE_HEADER { + WORD Machine; + WORD NumberOfSections; + DWORD TimeDateStamp; + DWORD PointerToSymbolTable; + DWORD NumberOfSymbols; + WORD SizeOfOptionalHeader; + WORD Characteristics; +} IMAGE_FILE_HEADER, *PIMAGE_FILE_HEADER; +# 18396 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_DATA_DIRECTORY { + DWORD VirtualAddress; + DWORD Size; +} IMAGE_DATA_DIRECTORY, *PIMAGE_DATA_DIRECTORY; + + + + + + + +typedef struct _IMAGE_OPTIONAL_HEADER { + + + + + WORD Magic; + BYTE MajorLinkerVersion; + BYTE MinorLinkerVersion; + DWORD SizeOfCode; + DWORD SizeOfInitializedData; + DWORD SizeOfUninitializedData; + DWORD AddressOfEntryPoint; + DWORD BaseOfCode; + DWORD BaseOfData; + + + + + + DWORD ImageBase; + DWORD SectionAlignment; + DWORD FileAlignment; + WORD MajorOperatingSystemVersion; + WORD MinorOperatingSystemVersion; + WORD MajorImageVersion; + WORD MinorImageVersion; + WORD MajorSubsystemVersion; + WORD MinorSubsystemVersion; + DWORD Win32VersionValue; + DWORD SizeOfImage; + DWORD SizeOfHeaders; + DWORD CheckSum; + WORD Subsystem; + WORD DllCharacteristics; + DWORD SizeOfStackReserve; + DWORD SizeOfStackCommit; + DWORD SizeOfHeapReserve; + DWORD SizeOfHeapCommit; + DWORD LoaderFlags; + DWORD NumberOfRvaAndSizes; + IMAGE_DATA_DIRECTORY DataDirectory[16]; +} IMAGE_OPTIONAL_HEADER32, *PIMAGE_OPTIONAL_HEADER32; + +typedef struct _IMAGE_ROM_OPTIONAL_HEADER { + WORD Magic; + BYTE MajorLinkerVersion; + BYTE MinorLinkerVersion; + DWORD SizeOfCode; + DWORD SizeOfInitializedData; + DWORD SizeOfUninitializedData; + DWORD AddressOfEntryPoint; + DWORD BaseOfCode; + DWORD BaseOfData; + DWORD BaseOfBss; + DWORD GprMask; + DWORD CprMask[4]; + DWORD GpValue; +} IMAGE_ROM_OPTIONAL_HEADER, *PIMAGE_ROM_OPTIONAL_HEADER; + +typedef struct _IMAGE_OPTIONAL_HEADER64 { + WORD Magic; + BYTE MajorLinkerVersion; + BYTE MinorLinkerVersion; + DWORD SizeOfCode; + DWORD SizeOfInitializedData; + DWORD SizeOfUninitializedData; + DWORD AddressOfEntryPoint; + DWORD BaseOfCode; + ULONGLONG ImageBase; + DWORD SectionAlignment; + DWORD FileAlignment; + WORD MajorOperatingSystemVersion; + WORD MinorOperatingSystemVersion; + WORD MajorImageVersion; + WORD MinorImageVersion; + WORD MajorSubsystemVersion; + WORD MinorSubsystemVersion; + DWORD Win32VersionValue; + DWORD SizeOfImage; + DWORD SizeOfHeaders; + DWORD CheckSum; + WORD Subsystem; + WORD DllCharacteristics; + ULONGLONG SizeOfStackReserve; + ULONGLONG SizeOfStackCommit; + ULONGLONG SizeOfHeapReserve; + ULONGLONG SizeOfHeapCommit; + DWORD LoaderFlags; + DWORD NumberOfRvaAndSizes; + IMAGE_DATA_DIRECTORY DataDirectory[16]; +} IMAGE_OPTIONAL_HEADER64, *PIMAGE_OPTIONAL_HEADER64; + + + + + + +typedef IMAGE_OPTIONAL_HEADER64 IMAGE_OPTIONAL_HEADER; +typedef PIMAGE_OPTIONAL_HEADER64 PIMAGE_OPTIONAL_HEADER; + + + + + + + +typedef struct _IMAGE_NT_HEADERS64 { + DWORD Signature; + IMAGE_FILE_HEADER FileHeader; + IMAGE_OPTIONAL_HEADER64 OptionalHeader; +} IMAGE_NT_HEADERS64, *PIMAGE_NT_HEADERS64; + +typedef struct _IMAGE_NT_HEADERS { + DWORD Signature; + IMAGE_FILE_HEADER FileHeader; + IMAGE_OPTIONAL_HEADER32 OptionalHeader; +} IMAGE_NT_HEADERS32, *PIMAGE_NT_HEADERS32; + +typedef struct _IMAGE_ROM_HEADERS { + IMAGE_FILE_HEADER FileHeader; + IMAGE_ROM_OPTIONAL_HEADER OptionalHeader; +} IMAGE_ROM_HEADERS, *PIMAGE_ROM_HEADERS; + + +typedef IMAGE_NT_HEADERS64 IMAGE_NT_HEADERS; +typedef PIMAGE_NT_HEADERS64 PIMAGE_NT_HEADERS; +# 18605 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct ANON_OBJECT_HEADER { + WORD Sig1; + WORD Sig2; + WORD Version; + WORD Machine; + DWORD TimeDateStamp; + CLSID ClassID; + DWORD SizeOfData; +} ANON_OBJECT_HEADER; + +typedef struct ANON_OBJECT_HEADER_V2 { + WORD Sig1; + WORD Sig2; + WORD Version; + WORD Machine; + DWORD TimeDateStamp; + CLSID ClassID; + DWORD SizeOfData; + DWORD Flags; + DWORD MetaDataSize; + DWORD MetaDataOffset; +} ANON_OBJECT_HEADER_V2; + +typedef struct ANON_OBJECT_HEADER_BIGOBJ { + + WORD Sig1; + WORD Sig2; + WORD Version; + WORD Machine; + DWORD TimeDateStamp; + CLSID ClassID; + DWORD SizeOfData; + DWORD Flags; + DWORD MetaDataSize; + DWORD MetaDataOffset; + + + DWORD NumberOfSections; + DWORD PointerToSymbolTable; + DWORD NumberOfSymbols; +} ANON_OBJECT_HEADER_BIGOBJ; + + + + + + + +typedef struct _IMAGE_SECTION_HEADER { + BYTE Name[8]; + union { + DWORD PhysicalAddress; + DWORD VirtualSize; + } Misc; + DWORD VirtualAddress; + DWORD SizeOfRawData; + DWORD PointerToRawData; + DWORD PointerToRelocations; + DWORD PointerToLinenumbers; + WORD NumberOfRelocations; + WORD NumberOfLinenumbers; + DWORD Characteristics; +} IMAGE_SECTION_HEADER, *PIMAGE_SECTION_HEADER; +# 18733 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,2) +# 18734 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + + + + + + +typedef struct _IMAGE_SYMBOL { + union { + BYTE ShortName[8]; + struct { + DWORD Short; + DWORD Long; + } Name; + DWORD LongName[2]; + } N; + DWORD Value; + SHORT SectionNumber; + WORD Type; + BYTE StorageClass; + BYTE NumberOfAuxSymbols; +} IMAGE_SYMBOL; +typedef IMAGE_SYMBOL __unaligned *PIMAGE_SYMBOL; + + + +typedef struct _IMAGE_SYMBOL_EX { + union { + BYTE ShortName[8]; + struct { + DWORD Short; + DWORD Long; + } Name; + DWORD LongName[2]; + } N; + DWORD Value; + LONG SectionNumber; + WORD Type; + BYTE StorageClass; + BYTE NumberOfAuxSymbols; +} IMAGE_SYMBOL_EX; +typedef IMAGE_SYMBOL_EX __unaligned *PIMAGE_SYMBOL_EX; +# 18896 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,2) +# 18897 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + +typedef struct IMAGE_AUX_SYMBOL_TOKEN_DEF { + BYTE bAuxType; + BYTE bReserved; + DWORD SymbolTableIndex; + BYTE rgbReserved[12]; +} IMAGE_AUX_SYMBOL_TOKEN_DEF; + +typedef IMAGE_AUX_SYMBOL_TOKEN_DEF __unaligned *PIMAGE_AUX_SYMBOL_TOKEN_DEF; + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 18908 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + + + + + +typedef union _IMAGE_AUX_SYMBOL { + struct { + DWORD TagIndex; + union { + struct { + WORD Linenumber; + WORD Size; + } LnSz; + DWORD TotalSize; + } Misc; + union { + struct { + DWORD PointerToLinenumber; + DWORD PointerToNextFunction; + } Function; + struct { + WORD Dimension[4]; + } Array; + } FcnAry; + WORD TvIndex; + } Sym; + struct { + BYTE Name[18]; + } File; + struct { + DWORD Length; + WORD NumberOfRelocations; + WORD NumberOfLinenumbers; + DWORD CheckSum; + SHORT Number; + BYTE Selection; + BYTE bReserved; + SHORT HighNumber; + } Section; + IMAGE_AUX_SYMBOL_TOKEN_DEF TokenDef; + struct { + DWORD crc; + BYTE rgbReserved[14]; + } CRC; +} IMAGE_AUX_SYMBOL; +typedef IMAGE_AUX_SYMBOL __unaligned *PIMAGE_AUX_SYMBOL; + +typedef union _IMAGE_AUX_SYMBOL_EX { + struct { + DWORD WeakDefaultSymIndex; + DWORD WeakSearchType; + BYTE rgbReserved[12]; + } Sym; + struct { + BYTE Name[sizeof(IMAGE_SYMBOL_EX)]; + } File; + struct { + DWORD Length; + WORD NumberOfRelocations; + WORD NumberOfLinenumbers; + DWORD CheckSum; + SHORT Number; + BYTE Selection; + BYTE bReserved; + SHORT HighNumber; + BYTE rgbReserved[2]; + } Section; + struct{ + IMAGE_AUX_SYMBOL_TOKEN_DEF TokenDef; + BYTE rgbReserved[2]; + } ; + struct { + DWORD crc; + BYTE rgbReserved[16]; + } CRC; +} IMAGE_AUX_SYMBOL_EX; +typedef IMAGE_AUX_SYMBOL_EX __unaligned *PIMAGE_AUX_SYMBOL_EX; + +typedef enum IMAGE_AUX_SYMBOL_TYPE { + IMAGE_AUX_SYMBOL_TYPE_TOKEN_DEF = 1, +} IMAGE_AUX_SYMBOL_TYPE; +# 19012 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_RELOCATION { + union { + DWORD VirtualAddress; + DWORD RelocCount; + } ; + DWORD SymbolTableIndex; + WORD Type; +} IMAGE_RELOCATION; +typedef IMAGE_RELOCATION __unaligned *PIMAGE_RELOCATION; +# 19425 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_LINENUMBER { + union { + DWORD SymbolTableIndex; + DWORD VirtualAddress; + } Type; + WORD Linenumber; +} IMAGE_LINENUMBER; +typedef IMAGE_LINENUMBER __unaligned *PIMAGE_LINENUMBER; + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 19436 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + + + + + + + +typedef struct _IMAGE_BASE_RELOCATION { + DWORD VirtualAddress; + DWORD SizeOfBlock; + +} IMAGE_BASE_RELOCATION; +typedef IMAGE_BASE_RELOCATION __unaligned * PIMAGE_BASE_RELOCATION; +# 19492 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_ARCHIVE_MEMBER_HEADER { + BYTE Name[16]; + BYTE Date[12]; + BYTE UserID[6]; + BYTE GroupID[6]; + BYTE Mode[8]; + BYTE Size[10]; + BYTE EndHeader[2]; +} IMAGE_ARCHIVE_MEMBER_HEADER, *PIMAGE_ARCHIVE_MEMBER_HEADER; +# 19513 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_EXPORT_DIRECTORY { + DWORD Characteristics; + DWORD TimeDateStamp; + WORD MajorVersion; + WORD MinorVersion; + DWORD Name; + DWORD Base; + DWORD NumberOfFunctions; + DWORD NumberOfNames; + DWORD AddressOfFunctions; + DWORD AddressOfNames; + DWORD AddressOfNameOrdinals; +} IMAGE_EXPORT_DIRECTORY, *PIMAGE_EXPORT_DIRECTORY; + + + + + + +typedef struct _IMAGE_IMPORT_BY_NAME { + WORD Hint; + CHAR Name[1]; +} IMAGE_IMPORT_BY_NAME, *PIMAGE_IMPORT_BY_NAME; + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,8) +# 19538 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + + +typedef struct _IMAGE_THUNK_DATA64 { + union { + ULONGLONG ForwarderString; + ULONGLONG Function; + ULONGLONG Ordinal; + ULONGLONG AddressOfData; + } u1; +} IMAGE_THUNK_DATA64; +typedef IMAGE_THUNK_DATA64 * PIMAGE_THUNK_DATA64; + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 19551 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + + +typedef struct _IMAGE_THUNK_DATA32 { + union { + DWORD ForwarderString; + DWORD Function; + DWORD Ordinal; + DWORD AddressOfData; + } u1; +} IMAGE_THUNK_DATA32; +typedef IMAGE_THUNK_DATA32 * PIMAGE_THUNK_DATA32; +# 19574 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef void +(__stdcall *PIMAGE_TLS_CALLBACK) ( + PVOID DllHandle, + DWORD Reason, + PVOID Reserved + ); + +typedef struct _IMAGE_TLS_DIRECTORY64 { + ULONGLONG StartAddressOfRawData; + ULONGLONG EndAddressOfRawData; + ULONGLONG AddressOfIndex; + ULONGLONG AddressOfCallBacks; + DWORD SizeOfZeroFill; + union { + DWORD Characteristics; + struct { + DWORD Reserved0 : 20; + DWORD Alignment : 4; + DWORD Reserved1 : 8; + } ; + } ; + +} IMAGE_TLS_DIRECTORY64; + +typedef IMAGE_TLS_DIRECTORY64 * PIMAGE_TLS_DIRECTORY64; + +typedef struct _IMAGE_TLS_DIRECTORY32 { + DWORD StartAddressOfRawData; + DWORD EndAddressOfRawData; + DWORD AddressOfIndex; + DWORD AddressOfCallBacks; + DWORD SizeOfZeroFill; + union { + DWORD Characteristics; + struct { + DWORD Reserved0 : 20; + DWORD Alignment : 4; + DWORD Reserved1 : 8; + } ; + } ; + +} IMAGE_TLS_DIRECTORY32; +typedef IMAGE_TLS_DIRECTORY32 * PIMAGE_TLS_DIRECTORY32; + + + + +typedef IMAGE_THUNK_DATA64 IMAGE_THUNK_DATA; +typedef PIMAGE_THUNK_DATA64 PIMAGE_THUNK_DATA; + +typedef IMAGE_TLS_DIRECTORY64 IMAGE_TLS_DIRECTORY; +typedef PIMAGE_TLS_DIRECTORY64 PIMAGE_TLS_DIRECTORY; +# 19637 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_IMPORT_DESCRIPTOR { + union { + DWORD Characteristics; + DWORD OriginalFirstThunk; + } ; + DWORD TimeDateStamp; + + + + + DWORD ForwarderChain; + DWORD Name; + DWORD FirstThunk; +} IMAGE_IMPORT_DESCRIPTOR; +typedef IMAGE_IMPORT_DESCRIPTOR __unaligned *PIMAGE_IMPORT_DESCRIPTOR; + + + + + +typedef struct _IMAGE_BOUND_IMPORT_DESCRIPTOR { + DWORD TimeDateStamp; + WORD OffsetModuleName; + WORD NumberOfModuleForwarderRefs; + +} IMAGE_BOUND_IMPORT_DESCRIPTOR, *PIMAGE_BOUND_IMPORT_DESCRIPTOR; + +typedef struct _IMAGE_BOUND_FORWARDER_REF { + DWORD TimeDateStamp; + WORD OffsetModuleName; + WORD Reserved; +} IMAGE_BOUND_FORWARDER_REF, *PIMAGE_BOUND_FORWARDER_REF; + +typedef struct _IMAGE_DELAYLOAD_DESCRIPTOR { + union { + DWORD AllAttributes; + struct { + DWORD RvaBased : 1; + DWORD ReservedAttributes : 31; + } ; + } Attributes; + + DWORD DllNameRVA; + DWORD ModuleHandleRVA; + DWORD ImportAddressTableRVA; + DWORD ImportNameTableRVA; + DWORD BoundImportAddressTableRVA; + DWORD UnloadInformationTableRVA; + DWORD TimeDateStamp; + + +} IMAGE_DELAYLOAD_DESCRIPTOR, *PIMAGE_DELAYLOAD_DESCRIPTOR; + +typedef const IMAGE_DELAYLOAD_DESCRIPTOR *PCIMAGE_DELAYLOAD_DESCRIPTOR; +# 19710 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_RESOURCE_DIRECTORY { + DWORD Characteristics; + DWORD TimeDateStamp; + WORD MajorVersion; + WORD MinorVersion; + WORD NumberOfNamedEntries; + WORD NumberOfIdEntries; + +} IMAGE_RESOURCE_DIRECTORY, *PIMAGE_RESOURCE_DIRECTORY; +# 19738 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_RESOURCE_DIRECTORY_ENTRY { + union { + struct { + DWORD NameOffset:31; + DWORD NameIsString:1; + } ; + DWORD Name; + WORD Id; + } ; + union { + DWORD OffsetToData; + struct { + DWORD OffsetToDirectory:31; + DWORD DataIsDirectory:1; + } ; + } ; +} IMAGE_RESOURCE_DIRECTORY_ENTRY, *PIMAGE_RESOURCE_DIRECTORY_ENTRY; +# 19765 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_RESOURCE_DIRECTORY_STRING { + WORD Length; + CHAR NameString[ 1 ]; +} IMAGE_RESOURCE_DIRECTORY_STRING, *PIMAGE_RESOURCE_DIRECTORY_STRING; + + +typedef struct _IMAGE_RESOURCE_DIR_STRING_U { + WORD Length; + WCHAR NameString[ 1 ]; +} IMAGE_RESOURCE_DIR_STRING_U, *PIMAGE_RESOURCE_DIR_STRING_U; +# 19787 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_RESOURCE_DATA_ENTRY { + DWORD OffsetToData; + DWORD Size; + DWORD CodePage; + DWORD Reserved; +} IMAGE_RESOURCE_DATA_ENTRY, *PIMAGE_RESOURCE_DATA_ENTRY; + + + + + + + +typedef struct _IMAGE_LOAD_CONFIG_CODE_INTEGRITY { + WORD Flags; + WORD Catalog; + DWORD CatalogOffset; + DWORD Reserved; +} IMAGE_LOAD_CONFIG_CODE_INTEGRITY, *PIMAGE_LOAD_CONFIG_CODE_INTEGRITY; + + + + + +typedef struct _IMAGE_DYNAMIC_RELOCATION_TABLE { + DWORD Version; + DWORD Size; + +} IMAGE_DYNAMIC_RELOCATION_TABLE, *PIMAGE_DYNAMIC_RELOCATION_TABLE; + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,1) +# 19822 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + +typedef struct _IMAGE_DYNAMIC_RELOCATION32 { + DWORD Symbol; + DWORD BaseRelocSize; + +} IMAGE_DYNAMIC_RELOCATION32, *PIMAGE_DYNAMIC_RELOCATION32; + +typedef struct _IMAGE_DYNAMIC_RELOCATION64 { + ULONGLONG Symbol; + DWORD BaseRelocSize; + +} IMAGE_DYNAMIC_RELOCATION64, *PIMAGE_DYNAMIC_RELOCATION64; + +typedef struct _IMAGE_DYNAMIC_RELOCATION32_V2 { + DWORD HeaderSize; + DWORD FixupInfoSize; + DWORD Symbol; + DWORD SymbolGroup; + DWORD Flags; + + +} IMAGE_DYNAMIC_RELOCATION32_V2, *PIMAGE_DYNAMIC_RELOCATION32_V2; + +typedef struct _IMAGE_DYNAMIC_RELOCATION64_V2 { + DWORD HeaderSize; + DWORD FixupInfoSize; + ULONGLONG Symbol; + DWORD SymbolGroup; + DWORD Flags; + + +} IMAGE_DYNAMIC_RELOCATION64_V2, *PIMAGE_DYNAMIC_RELOCATION64_V2; + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 19856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + + +typedef IMAGE_DYNAMIC_RELOCATION64 IMAGE_DYNAMIC_RELOCATION; +typedef PIMAGE_DYNAMIC_RELOCATION64 PIMAGE_DYNAMIC_RELOCATION; +typedef IMAGE_DYNAMIC_RELOCATION64_V2 IMAGE_DYNAMIC_RELOCATION_V2; +typedef PIMAGE_DYNAMIC_RELOCATION64_V2 PIMAGE_DYNAMIC_RELOCATION_V2; +# 19880 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,1) +# 19881 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + +typedef struct _IMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER { + BYTE PrologueByteCount; + +} IMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER; +typedef IMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER __unaligned * PIMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER; + +typedef struct _IMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER { + DWORD EpilogueCount; + BYTE EpilogueByteCount; + BYTE BranchDescriptorElementSize; + WORD BranchDescriptorCount; + + +} IMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER; +typedef IMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER __unaligned * PIMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER; + +typedef struct _IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION { + DWORD PageRelativeOffset : 12; + DWORD IndirectCall : 1; + DWORD IATIndex : 19; +} IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION; +typedef IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION __unaligned * PIMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION; + +typedef struct _IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION { + WORD PageRelativeOffset : 12; + WORD IndirectCall : 1; + WORD RexWPrefix : 1; + WORD CfgCheck : 1; + WORD Reserved : 1; +} IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION; +typedef IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION __unaligned * PIMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION; + +typedef struct _IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION { + WORD PageRelativeOffset : 12; + WORD RegisterNumber : 4; +} IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION; +typedef IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION __unaligned * PIMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION; + +typedef struct _IMAGE_FUNCTION_OVERRIDE_HEADER { + DWORD FuncOverrideSize; + + +} IMAGE_FUNCTION_OVERRIDE_HEADER; +typedef IMAGE_FUNCTION_OVERRIDE_HEADER __unaligned * PIMAGE_FUNCTION_OVERRIDE_HEADER; + +typedef struct _IMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION { + DWORD OriginalRva; + DWORD BDDOffset; + DWORD RvaSize; + DWORD BaseRelocSize; + + + + + + +} IMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION; +typedef IMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION * PIMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION; + +typedef struct _IMAGE_BDD_INFO { + DWORD Version; + DWORD BDDSize; + +} IMAGE_BDD_INFO; +typedef IMAGE_BDD_INFO * PIMAGE_BDD_INFO; + +typedef struct _IMAGE_BDD_DYNAMIC_RELOCATION { + WORD Left; + WORD Right; + DWORD Value; +} IMAGE_BDD_DYNAMIC_RELOCATION; +typedef IMAGE_BDD_DYNAMIC_RELOCATION * PIMAGE_BDD_DYNAMIC_RELOCATION; +# 19962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 19963 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + + + + + +typedef struct _IMAGE_LOAD_CONFIG_DIRECTORY32 { + DWORD Size; + DWORD TimeDateStamp; + WORD MajorVersion; + WORD MinorVersion; + DWORD GlobalFlagsClear; + DWORD GlobalFlagsSet; + DWORD CriticalSectionDefaultTimeout; + DWORD DeCommitFreeBlockThreshold; + DWORD DeCommitTotalFreeThreshold; + DWORD LockPrefixTable; + DWORD MaximumAllocationSize; + DWORD VirtualMemoryThreshold; + DWORD ProcessHeapFlags; + DWORD ProcessAffinityMask; + WORD CSDVersion; + WORD DependentLoadFlags; + DWORD EditList; + DWORD SecurityCookie; + DWORD SEHandlerTable; + DWORD SEHandlerCount; + DWORD GuardCFCheckFunctionPointer; + DWORD GuardCFDispatchFunctionPointer; + DWORD GuardCFFunctionTable; + DWORD GuardCFFunctionCount; + DWORD GuardFlags; + IMAGE_LOAD_CONFIG_CODE_INTEGRITY CodeIntegrity; + DWORD GuardAddressTakenIatEntryTable; + DWORD GuardAddressTakenIatEntryCount; + DWORD GuardLongJumpTargetTable; + DWORD GuardLongJumpTargetCount; + DWORD DynamicValueRelocTable; + DWORD CHPEMetadataPointer; + DWORD GuardRFFailureRoutine; + DWORD GuardRFFailureRoutineFunctionPointer; + DWORD DynamicValueRelocTableOffset; + WORD DynamicValueRelocTableSection; + WORD Reserved2; + DWORD GuardRFVerifyStackPointerFunctionPointer; + DWORD HotPatchTableOffset; + DWORD Reserved3; + DWORD EnclaveConfigurationPointer; + DWORD VolatileMetadataPointer; + DWORD GuardEHContinuationTable; + DWORD GuardEHContinuationCount; + DWORD GuardXFGCheckFunctionPointer; + DWORD GuardXFGDispatchFunctionPointer; + DWORD GuardXFGTableDispatchFunctionPointer; + DWORD CastGuardOsDeterminedFailureMode; + DWORD GuardMemcpyFunctionPointer; +} IMAGE_LOAD_CONFIG_DIRECTORY32, *PIMAGE_LOAD_CONFIG_DIRECTORY32; + +typedef struct _IMAGE_LOAD_CONFIG_DIRECTORY64 { + DWORD Size; + DWORD TimeDateStamp; + WORD MajorVersion; + WORD MinorVersion; + DWORD GlobalFlagsClear; + DWORD GlobalFlagsSet; + DWORD CriticalSectionDefaultTimeout; + ULONGLONG DeCommitFreeBlockThreshold; + ULONGLONG DeCommitTotalFreeThreshold; + ULONGLONG LockPrefixTable; + ULONGLONG MaximumAllocationSize; + ULONGLONG VirtualMemoryThreshold; + ULONGLONG ProcessAffinityMask; + DWORD ProcessHeapFlags; + WORD CSDVersion; + WORD DependentLoadFlags; + ULONGLONG EditList; + ULONGLONG SecurityCookie; + ULONGLONG SEHandlerTable; + ULONGLONG SEHandlerCount; + ULONGLONG GuardCFCheckFunctionPointer; + ULONGLONG GuardCFDispatchFunctionPointer; + ULONGLONG GuardCFFunctionTable; + ULONGLONG GuardCFFunctionCount; + DWORD GuardFlags; + IMAGE_LOAD_CONFIG_CODE_INTEGRITY CodeIntegrity; + ULONGLONG GuardAddressTakenIatEntryTable; + ULONGLONG GuardAddressTakenIatEntryCount; + ULONGLONG GuardLongJumpTargetTable; + ULONGLONG GuardLongJumpTargetCount; + ULONGLONG DynamicValueRelocTable; + ULONGLONG CHPEMetadataPointer; + ULONGLONG GuardRFFailureRoutine; + ULONGLONG GuardRFFailureRoutineFunctionPointer; + DWORD DynamicValueRelocTableOffset; + WORD DynamicValueRelocTableSection; + WORD Reserved2; + ULONGLONG GuardRFVerifyStackPointerFunctionPointer; + DWORD HotPatchTableOffset; + DWORD Reserved3; + ULONGLONG EnclaveConfigurationPointer; + ULONGLONG VolatileMetadataPointer; + ULONGLONG GuardEHContinuationTable; + ULONGLONG GuardEHContinuationCount; + ULONGLONG GuardXFGCheckFunctionPointer; + ULONGLONG GuardXFGDispatchFunctionPointer; + ULONGLONG GuardXFGTableDispatchFunctionPointer; + ULONGLONG CastGuardOsDeterminedFailureMode; + ULONGLONG GuardMemcpyFunctionPointer; +} IMAGE_LOAD_CONFIG_DIRECTORY64, *PIMAGE_LOAD_CONFIG_DIRECTORY64; + + + + + +typedef IMAGE_LOAD_CONFIG_DIRECTORY64 IMAGE_LOAD_CONFIG_DIRECTORY; +typedef PIMAGE_LOAD_CONFIG_DIRECTORY64 PIMAGE_LOAD_CONFIG_DIRECTORY; + + + + + + + +typedef struct _IMAGE_HOT_PATCH_INFO { + DWORD Version; + DWORD Size; + DWORD SequenceNumber; + DWORD BaseImageList; + DWORD BaseImageCount; + DWORD BufferOffset; + DWORD ExtraPatchSize; +} IMAGE_HOT_PATCH_INFO, *PIMAGE_HOT_PATCH_INFO; + +typedef struct _IMAGE_HOT_PATCH_BASE { + DWORD SequenceNumber; + DWORD Flags; + DWORD OriginalTimeDateStamp; + DWORD OriginalCheckSum; + DWORD CodeIntegrityInfo; + DWORD CodeIntegritySize; + DWORD PatchTable; + DWORD BufferOffset; +} IMAGE_HOT_PATCH_BASE, *PIMAGE_HOT_PATCH_BASE; + +typedef struct _IMAGE_HOT_PATCH_HASHES { + BYTE SHA256[32]; + BYTE SHA1[20]; +} IMAGE_HOT_PATCH_HASHES, *PIMAGE_HOT_PATCH_HASHES; +# 20172 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_CE_RUNTIME_FUNCTION_ENTRY { + DWORD FuncStart; + DWORD PrologLen : 8; + DWORD FuncLen : 22; + DWORD ThirtyTwoBit : 1; + DWORD ExceptionFlag : 1; +} IMAGE_CE_RUNTIME_FUNCTION_ENTRY, * PIMAGE_CE_RUNTIME_FUNCTION_ENTRY; + +typedef struct _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY { + DWORD BeginAddress; + union { + DWORD UnwindData; + struct { + DWORD Flag : 2; + DWORD FunctionLength : 11; + DWORD Ret : 2; + DWORD H : 1; + DWORD Reg : 3; + DWORD R : 1; + DWORD L : 1; + DWORD C : 1; + DWORD StackAdjust : 10; + } ; + } ; +} IMAGE_ARM_RUNTIME_FUNCTION_ENTRY, * PIMAGE_ARM_RUNTIME_FUNCTION_ENTRY; + +typedef enum ARM64_FNPDATA_FLAGS { + PdataRefToFullXdata = 0, + PdataPackedUnwindFunction = 1, + PdataPackedUnwindFragment = 2, +} ARM64_FNPDATA_FLAGS; + +typedef enum ARM64_FNPDATA_CR { + PdataCrUnchained = 0, + PdataCrUnchainedSavedLr = 1, + PdataCrChainedWithPac = 2, + PdataCrChained = 3, +} ARM64_FNPDATA_CR; + +typedef struct _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY { + DWORD BeginAddress; + union { + DWORD UnwindData; + struct { + DWORD Flag : 2; + DWORD FunctionLength : 11; + DWORD RegF : 3; + DWORD RegI : 4; + DWORD H : 1; + DWORD CR : 2; + DWORD FrameSize : 9; + } ; + } ; +} IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, * PIMAGE_ARM64_RUNTIME_FUNCTION_ENTRY; + +typedef union IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY_XDATA { + DWORD HeaderData; + struct { + DWORD FunctionLength : 18; + DWORD Version : 2; + DWORD ExceptionDataPresent : 1; + DWORD EpilogInHeader : 1; + DWORD EpilogCount : 5; + DWORD CodeWords : 5; + } ; +} IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY_XDATA; + +typedef struct _IMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY { + ULONGLONG BeginAddress; + ULONGLONG EndAddress; + ULONGLONG ExceptionHandler; + ULONGLONG HandlerData; + ULONGLONG PrologEndAddress; +} IMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY, *PIMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY; + +typedef struct _IMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY { + DWORD BeginAddress; + DWORD EndAddress; + DWORD ExceptionHandler; + DWORD HandlerData; + DWORD PrologEndAddress; +} IMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY, *PIMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY; + +typedef struct _IMAGE_RUNTIME_FUNCTION_ENTRY { + DWORD BeginAddress; + DWORD EndAddress; + union { + DWORD UnwindInfoAddress; + DWORD UnwindData; + } ; +} _IMAGE_RUNTIME_FUNCTION_ENTRY, *_PIMAGE_RUNTIME_FUNCTION_ENTRY; + +typedef _IMAGE_RUNTIME_FUNCTION_ENTRY IMAGE_IA64_RUNTIME_FUNCTION_ENTRY; +typedef _PIMAGE_RUNTIME_FUNCTION_ENTRY PIMAGE_IA64_RUNTIME_FUNCTION_ENTRY; + +typedef _IMAGE_RUNTIME_FUNCTION_ENTRY IMAGE_AMD64_RUNTIME_FUNCTION_ENTRY; +typedef _PIMAGE_RUNTIME_FUNCTION_ENTRY PIMAGE_AMD64_RUNTIME_FUNCTION_ENTRY; +# 20294 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef _IMAGE_RUNTIME_FUNCTION_ENTRY IMAGE_RUNTIME_FUNCTION_ENTRY; +typedef _PIMAGE_RUNTIME_FUNCTION_ENTRY PIMAGE_RUNTIME_FUNCTION_ENTRY; +# 20306 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_ENCLAVE_CONFIG32 { + DWORD Size; + DWORD MinimumRequiredConfigSize; + DWORD PolicyFlags; + DWORD NumberOfImports; + DWORD ImportList; + DWORD ImportEntrySize; + BYTE FamilyID[16]; + BYTE ImageID[16]; + DWORD ImageVersion; + DWORD SecurityVersion; + DWORD EnclaveSize; + DWORD NumberOfThreads; + DWORD EnclaveFlags; +} IMAGE_ENCLAVE_CONFIG32, *PIMAGE_ENCLAVE_CONFIG32; + +typedef struct _IMAGE_ENCLAVE_CONFIG64 { + DWORD Size; + DWORD MinimumRequiredConfigSize; + DWORD PolicyFlags; + DWORD NumberOfImports; + DWORD ImportList; + DWORD ImportEntrySize; + BYTE FamilyID[16]; + BYTE ImageID[16]; + DWORD ImageVersion; + DWORD SecurityVersion; + ULONGLONG EnclaveSize; + DWORD NumberOfThreads; + DWORD EnclaveFlags; +} IMAGE_ENCLAVE_CONFIG64, *PIMAGE_ENCLAVE_CONFIG64; + + +typedef IMAGE_ENCLAVE_CONFIG64 IMAGE_ENCLAVE_CONFIG; +typedef PIMAGE_ENCLAVE_CONFIG64 PIMAGE_ENCLAVE_CONFIG; +# 20352 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_ENCLAVE_IMPORT { + DWORD MatchType; + DWORD MinimumSecurityVersion; + BYTE UniqueOrAuthorID[32]; + BYTE FamilyID[16]; + BYTE ImageID[16]; + DWORD ImportName; + DWORD Reserved; +} IMAGE_ENCLAVE_IMPORT, *PIMAGE_ENCLAVE_IMPORT; +# 20372 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_DEBUG_DIRECTORY { + DWORD Characteristics; + DWORD TimeDateStamp; + WORD MajorVersion; + WORD MinorVersion; + DWORD Type; + DWORD SizeOfData; + DWORD AddressOfRawData; + DWORD PointerToRawData; +} IMAGE_DEBUG_DIRECTORY, *PIMAGE_DEBUG_DIRECTORY; +# 20412 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_COFF_SYMBOLS_HEADER { + DWORD NumberOfSymbols; + DWORD LvaToFirstSymbol; + DWORD NumberOfLinenumbers; + DWORD LvaToFirstLinenumber; + DWORD RvaToFirstByteOfCode; + DWORD RvaToLastByteOfCode; + DWORD RvaToFirstByteOfData; + DWORD RvaToLastByteOfData; +} IMAGE_COFF_SYMBOLS_HEADER, *PIMAGE_COFF_SYMBOLS_HEADER; + + + + + + +typedef struct _FPO_DATA { + DWORD ulOffStart; + DWORD cbProcSize; + DWORD cdwLocals; + WORD cdwParams; + WORD cbProlog : 8; + WORD cbRegs : 3; + WORD fHasSEH : 1; + WORD fUseBP : 1; + WORD reserved : 1; + WORD cbFrame : 2; +} FPO_DATA, *PFPO_DATA; + + + + + +typedef struct _IMAGE_DEBUG_MISC { + DWORD DataType; + DWORD Length; + + BOOLEAN Unicode; + BYTE Reserved[ 3 ]; + BYTE Data[ 1 ]; +} IMAGE_DEBUG_MISC, *PIMAGE_DEBUG_MISC; +# 20461 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_FUNCTION_ENTRY { + DWORD StartingAddress; + DWORD EndingAddress; + DWORD EndOfPrologue; +} IMAGE_FUNCTION_ENTRY, *PIMAGE_FUNCTION_ENTRY; + +typedef struct _IMAGE_FUNCTION_ENTRY64 { + ULONGLONG StartingAddress; + ULONGLONG EndingAddress; + union { + ULONGLONG EndOfPrologue; + ULONGLONG UnwindInfoAddress; + } ; +} IMAGE_FUNCTION_ENTRY64, *PIMAGE_FUNCTION_ENTRY64; +# 20496 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _IMAGE_SEPARATE_DEBUG_HEADER { + WORD Signature; + WORD Flags; + WORD Machine; + WORD Characteristics; + DWORD TimeDateStamp; + DWORD CheckSum; + DWORD ImageBase; + DWORD SizeOfImage; + DWORD NumberOfSections; + DWORD ExportedNamesSize; + DWORD DebugDirectorySize; + DWORD SectionAlignment; + DWORD Reserved[2]; +} IMAGE_SEPARATE_DEBUG_HEADER, *PIMAGE_SEPARATE_DEBUG_HEADER; + + + +typedef struct _NON_PAGED_DEBUG_INFO { + WORD Signature; + WORD Flags; + DWORD Size; + WORD Machine; + WORD Characteristics; + DWORD TimeDateStamp; + DWORD CheckSum; + DWORD SizeOfImage; + ULONGLONG ImageBase; + + +} NON_PAGED_DEBUG_INFO, *PNON_PAGED_DEBUG_INFO; +# 20550 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _ImageArchitectureHeader { + unsigned int AmaskValue: 1; + + int :7; + unsigned int AmaskShift: 8; + int :16; + DWORD FirstEntryRVA; +} IMAGE_ARCHITECTURE_HEADER, *PIMAGE_ARCHITECTURE_HEADER; + +typedef struct _ImageArchitectureEntry { + DWORD FixupInstRVA; + DWORD NewInst; +} IMAGE_ARCHITECTURE_ENTRY, *PIMAGE_ARCHITECTURE_ENTRY; + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 20565 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + + + + + + + + +typedef struct IMPORT_OBJECT_HEADER { + WORD Sig1; + WORD Sig2; + WORD Version; + WORD Machine; + DWORD TimeDateStamp; + DWORD SizeOfData; + + union { + WORD Ordinal; + WORD Hint; + } ; + + WORD Type : 2; + WORD NameType : 3; + WORD Reserved : 11; +} IMPORT_OBJECT_HEADER; + +typedef enum IMPORT_OBJECT_TYPE +{ + IMPORT_OBJECT_CODE = 0, + IMPORT_OBJECT_DATA = 1, + IMPORT_OBJECT_CONST = 2, +} IMPORT_OBJECT_TYPE; + +typedef enum IMPORT_OBJECT_NAME_TYPE +{ + IMPORT_OBJECT_ORDINAL = 0, + IMPORT_OBJECT_NAME = 1, + IMPORT_OBJECT_NAME_NO_PREFIX = 2, + IMPORT_OBJECT_NAME_UNDECORATE = 3, + + IMPORT_OBJECT_NAME_EXPORTAS = 4, +} IMPORT_OBJECT_NAME_TYPE; + + + + + +typedef enum ReplacesCorHdrNumericDefines +{ + + COMIMAGE_FLAGS_ILONLY =0x00000001, + COMIMAGE_FLAGS_32BITREQUIRED =0x00000002, + COMIMAGE_FLAGS_IL_LIBRARY =0x00000004, + COMIMAGE_FLAGS_STRONGNAMESIGNED =0x00000008, + COMIMAGE_FLAGS_NATIVE_ENTRYPOINT =0x00000010, + COMIMAGE_FLAGS_TRACKDEBUGDATA =0x00010000, + COMIMAGE_FLAGS_32BITPREFERRED =0x00020000, + + + COR_VERSION_MAJOR_V2 =2, + COR_VERSION_MAJOR =COR_VERSION_MAJOR_V2, + COR_VERSION_MINOR =5, + COR_DELETED_NAME_LENGTH =8, + COR_VTABLEGAP_NAME_LENGTH =8, + + + NATIVE_TYPE_MAX_CB =1, + COR_ILMETHOD_SECT_SMALL_MAX_DATASIZE=0xFF, + + + IMAGE_COR_MIH_METHODRVA =0x01, + IMAGE_COR_MIH_EHRVA =0x02, + IMAGE_COR_MIH_BASICBLOCK =0x08, + + + COR_VTABLE_32BIT =0x01, + COR_VTABLE_64BIT =0x02, + COR_VTABLE_FROM_UNMANAGED =0x04, + COR_VTABLE_FROM_UNMANAGED_RETAIN_APPDOMAIN =0x08, + COR_VTABLE_CALL_MOST_DERIVED =0x10, + + + IMAGE_COR_EATJ_THUNK_SIZE =32, + + + + MAX_CLASS_NAME =1024, + MAX_PACKAGE_NAME =1024, +} ReplacesCorHdrNumericDefines; + + +typedef struct IMAGE_COR20_HEADER +{ + + DWORD cb; + WORD MajorRuntimeVersion; + WORD MinorRuntimeVersion; + + + IMAGE_DATA_DIRECTORY MetaData; + DWORD Flags; + + + + union { + DWORD EntryPointToken; + DWORD EntryPointRVA; + } ; + + + IMAGE_DATA_DIRECTORY Resources; + IMAGE_DATA_DIRECTORY StrongNameSignature; + + + IMAGE_DATA_DIRECTORY CodeManagerTable; + IMAGE_DATA_DIRECTORY VTableFixups; + IMAGE_DATA_DIRECTORY ExportAddressTableJumps; + + + IMAGE_DATA_DIRECTORY ManagedNativeHeader; + +} IMAGE_COR20_HEADER, *PIMAGE_COR20_HEADER; +# 20696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\apiset.h" 1 3 +# 20697 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 +# 20709 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__declspec(dllimport) + +WORD +__stdcall +RtlCaptureStackBackTrace( + DWORD FramesToSkip, + DWORD FramesToCapture, + PVOID* BackTrace, + PDWORD BackTraceHash + ); + + + + + +__declspec(dllimport) +void +__stdcall +RtlCaptureContext( + PCONTEXT ContextRecord + ); +# 20743 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__declspec(dllimport) +void +__stdcall +RtlCaptureContext2( + PCONTEXT ContextRecord + ); +# 20767 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _UNWIND_HISTORY_TABLE_ENTRY { + ULONG_PTR ImageBase; + PRUNTIME_FUNCTION FunctionEntry; +} UNWIND_HISTORY_TABLE_ENTRY, *PUNWIND_HISTORY_TABLE_ENTRY; + +typedef struct _UNWIND_HISTORY_TABLE { + DWORD Count; + BYTE LocalHint; + BYTE GlobalHint; + BYTE Search; + BYTE Once; + ULONG_PTR LowAddress; + ULONG_PTR HighAddress; + UNWIND_HISTORY_TABLE_ENTRY Entry[12]; +} UNWIND_HISTORY_TABLE, *PUNWIND_HISTORY_TABLE; + + + + + + +__declspec(dllimport) +void +__stdcall +RtlUnwind( + PVOID TargetFrame, + PVOID TargetIp, + PEXCEPTION_RECORD ExceptionRecord, + PVOID ReturnValue + ); +# 20806 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__declspec(dllimport) +BOOLEAN +__cdecl +RtlAddFunctionTable( + PRUNTIME_FUNCTION FunctionTable, + DWORD EntryCount, + DWORD64 BaseAddress + ); + +__declspec(dllimport) +BOOLEAN +__cdecl +RtlDeleteFunctionTable( + PRUNTIME_FUNCTION FunctionTable + ); + +__declspec(dllimport) +BOOLEAN +__cdecl +RtlInstallFunctionTableCallback( + DWORD64 TableIdentifier, + DWORD64 BaseAddress, + DWORD Length, + PGET_RUNTIME_FUNCTION_CALLBACK Callback, + PVOID Context, + PCWSTR OutOfProcessCallbackDll + ); +# 20842 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__declspec(dllimport) +DWORD +__stdcall +RtlAddGrowableFunctionTable( + PVOID* DynamicTable, + PRUNTIME_FUNCTION FunctionTable, + DWORD EntryCount, + DWORD MaximumEntryCount, + ULONG_PTR RangeBase, + ULONG_PTR RangeEnd + ); + +__declspec(dllimport) +void +__stdcall +RtlGrowFunctionTable( + PVOID DynamicTable, + DWORD NewEntryCount + ); + +__declspec(dllimport) +void +__stdcall +RtlDeleteGrowableFunctionTable( + PVOID DynamicTable + ); +# 20877 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__declspec(dllimport) +PRUNTIME_FUNCTION +__stdcall +RtlLookupFunctionEntry( + DWORD64 ControlPc, + PDWORD64 ImageBase, + PUNWIND_HISTORY_TABLE HistoryTable + ); + +__declspec(dllimport) +void +__cdecl +RtlRestoreContext( + PCONTEXT ContextRecord, + struct _EXCEPTION_RECORD* ExceptionRecord + ); + +__declspec(dllimport) +void +__stdcall +RtlUnwindEx( + PVOID TargetFrame, + PVOID TargetIp, + PEXCEPTION_RECORD ExceptionRecord, + PVOID ReturnValue, + PCONTEXT ContextRecord, + PUNWIND_HISTORY_TABLE HistoryTable + ); + +__declspec(dllimport) +PEXCEPTION_ROUTINE +__stdcall +RtlVirtualUnwind( + DWORD HandlerType, + DWORD64 ImageBase, + DWORD64 ControlPc, + PRUNTIME_FUNCTION FunctionEntry, + PCONTEXT ContextRecord, + PVOID* HandlerData, + PDWORD64 EstablisherFrame, + PKNONVOLATILE_CONTEXT_POINTERS ContextPointers + ); +# 21247 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__declspec(dllimport) +void +__stdcall +RtlRaiseException( + PEXCEPTION_RECORD ExceptionRecord + ); + +__declspec(dllimport) +PVOID +__stdcall +RtlPcToFileHeader( + PVOID PcValue, + PVOID* BaseOfImage + ); +# 21272 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__declspec(dllimport) +SIZE_T +__stdcall +RtlCompareMemory( + const void* Source1, + const void* Source2, + SIZE_T Length + ); +# 21313 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma warning(push) +#pragma warning(disable: 4324) + +typedef struct __declspec(align(16)) _SLIST_ENTRY { + struct _SLIST_ENTRY *Next; +} SLIST_ENTRY, *PSLIST_ENTRY; + +#pragma warning(pop) +# 21330 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef union __declspec(align(16)) _SLIST_HEADER { + struct { + ULONGLONG Alignment; + ULONGLONG Region; + } ; + struct { + ULONGLONG Depth:16; + ULONGLONG Sequence:48; + ULONGLONG Reserved:4; + ULONGLONG NextEntry:60; + } HeaderX64; +} SLIST_HEADER, *PSLIST_HEADER; +# 21389 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__declspec(dllimport) +void +__stdcall +RtlInitializeSListHead ( + PSLIST_HEADER ListHead + ); + + +__declspec(dllimport) +PSLIST_ENTRY +__stdcall +RtlFirstEntrySList ( + const SLIST_HEADER *ListHead + ); + +__declspec(dllimport) +PSLIST_ENTRY +__stdcall +RtlInterlockedPopEntrySList ( + PSLIST_HEADER ListHead + ); + +__declspec(dllimport) +PSLIST_ENTRY +__stdcall +RtlInterlockedPushEntrySList ( + PSLIST_HEADER ListHead, + PSLIST_ENTRY ListEntry + ); + +__declspec(dllimport) +PSLIST_ENTRY +__stdcall +RtlInterlockedPushListSListEx ( + PSLIST_HEADER ListHead, + PSLIST_ENTRY List, + PSLIST_ENTRY ListEnd, + DWORD Count + ); + +__declspec(dllimport) +PSLIST_ENTRY +__stdcall +RtlInterlockedFlushSList ( + PSLIST_HEADER ListHead + ); + +__declspec(dllimport) +WORD +__stdcall +RtlQueryDepthSList ( + PSLIST_HEADER ListHead + ); + + + +__declspec(dllimport) +ULONG_PTR +__stdcall +RtlGetReturnAddressHijackTarget ( + void + ); +# 21482 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef union _RTL_RUN_ONCE { + PVOID Ptr; +} RTL_RUN_ONCE, *PRTL_RUN_ONCE; + + + +typedef struct _RTL_BARRIER { + DWORD Reserved1; + DWORD Reserved2; + ULONG_PTR Reserved3[2]; + DWORD Reserved4; + DWORD Reserved5; +} RTL_BARRIER, *PRTL_BARRIER; +# 21583 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__declspec(noreturn) +void +__fastfail( + unsigned int Code + ); + +#pragma intrinsic(__fastfail) +# 21612 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__forceinline +DWORD +HEAP_MAKE_TAG_FLAGS ( + DWORD TagBase, + DWORD Tag + ) + +{ + return ((DWORD)((TagBase) + ((Tag) << 18))); +} +# 21693 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__forceinline +int +RtlConstantTimeEqualMemory( + const void* v1, + const void* v2, + unsigned long len + ) +{ + char x = 0; + unsigned long i = 0; + + + volatile const char* p1 = (volatile const char*) v1; + volatile const char* p2 = (volatile const char*) v2; + + for (; i < len; i += 1) { + + + + + + + + x |= p1[i] ^ p2[i]; + + + + } + + return x == 0; +} + + + + + +__forceinline +PVOID +RtlSecureZeroMemory( + PVOID ptr, + SIZE_T cnt + ) +{ + volatile char *vptr = (volatile char *)ptr; + + + + __stosb((PBYTE )((DWORD64)vptr), 0, cnt); +# 21762 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 + return ptr; +} +# 21792 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _MESSAGE_RESOURCE_ENTRY { + WORD Length; + WORD Flags; + BYTE Text[ 1 ]; +} MESSAGE_RESOURCE_ENTRY, *PMESSAGE_RESOURCE_ENTRY; + + + + +typedef struct _MESSAGE_RESOURCE_BLOCK { + DWORD LowId; + DWORD HighId; + DWORD OffsetToEntries; +} MESSAGE_RESOURCE_BLOCK, *PMESSAGE_RESOURCE_BLOCK; + +typedef struct _MESSAGE_RESOURCE_DATA { + DWORD NumberOfBlocks; + MESSAGE_RESOURCE_BLOCK Blocks[ 1 ]; +} MESSAGE_RESOURCE_DATA, *PMESSAGE_RESOURCE_DATA; + + +typedef struct _OSVERSIONINFOA { + DWORD dwOSVersionInfoSize; + DWORD dwMajorVersion; + DWORD dwMinorVersion; + DWORD dwBuildNumber; + DWORD dwPlatformId; + CHAR szCSDVersion[ 128 ]; +} OSVERSIONINFOA, *POSVERSIONINFOA, *LPOSVERSIONINFOA; + +typedef struct _OSVERSIONINFOW { + DWORD dwOSVersionInfoSize; + DWORD dwMajorVersion; + DWORD dwMinorVersion; + DWORD dwBuildNumber; + DWORD dwPlatformId; + WCHAR szCSDVersion[ 128 ]; +} OSVERSIONINFOW, *POSVERSIONINFOW, *LPOSVERSIONINFOW, RTL_OSVERSIONINFOW, *PRTL_OSVERSIONINFOW; + + + + + +typedef OSVERSIONINFOA OSVERSIONINFO; +typedef POSVERSIONINFOA POSVERSIONINFO; +typedef LPOSVERSIONINFOA LPOSVERSIONINFO; + + +typedef struct _OSVERSIONINFOEXA { + DWORD dwOSVersionInfoSize; + DWORD dwMajorVersion; + DWORD dwMinorVersion; + DWORD dwBuildNumber; + DWORD dwPlatformId; + CHAR szCSDVersion[ 128 ]; + WORD wServicePackMajor; + WORD wServicePackMinor; + WORD wSuiteMask; + BYTE wProductType; + BYTE wReserved; +} OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA; +typedef struct _OSVERSIONINFOEXW { + DWORD dwOSVersionInfoSize; + DWORD dwMajorVersion; + DWORD dwMinorVersion; + DWORD dwBuildNumber; + DWORD dwPlatformId; + WCHAR szCSDVersion[ 128 ]; + WORD wServicePackMajor; + WORD wServicePackMinor; + WORD wSuiteMask; + BYTE wProductType; + BYTE wReserved; +} OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW, RTL_OSVERSIONINFOEXW, *PRTL_OSVERSIONINFOEXW; + + + + + +typedef OSVERSIONINFOEXA OSVERSIONINFOEX; +typedef POSVERSIONINFOEXA POSVERSIONINFOEX; +typedef LPOSVERSIONINFOEXA LPOSVERSIONINFOEX; +# 21941 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__declspec(dllimport) +ULONGLONG +__stdcall +VerSetConditionMask( + ULONGLONG ConditionMask, + DWORD TypeMask, + BYTE Condition + ); +# 21966 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__declspec(dllimport) +BOOLEAN +__stdcall +RtlGetProductInfo( + DWORD OSMajorVersion, + DWORD OSMinorVersion, + DWORD SpMajorVersion, + DWORD SpMinorVersion, + PDWORD ReturnedProductType + ); +# 21986 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _RTL_UMS_THREAD_INFO_CLASS { + UmsThreadInvalidInfoClass = 0, + UmsThreadUserContext, + UmsThreadPriority, + UmsThreadAffinity, + UmsThreadTeb, + UmsThreadIsSuspended, + UmsThreadIsTerminated, + UmsThreadMaxInfoClass +} RTL_UMS_THREAD_INFO_CLASS, *PRTL_UMS_THREAD_INFO_CLASS; + +typedef enum _RTL_UMS_SCHEDULER_REASON { + UmsSchedulerStartup = 0, + UmsSchedulerThreadBlocked, + UmsSchedulerThreadYield, +} RTL_UMS_SCHEDULER_REASON, *PRTL_UMS_SCHEDULER_REASON; + +typedef + +void +__stdcall +RTL_UMS_SCHEDULER_ENTRY_POINT( + RTL_UMS_SCHEDULER_REASON Reason, + ULONG_PTR ActivationPayload, + PVOID SchedulerParam + ); + +typedef RTL_UMS_SCHEDULER_ENTRY_POINT *PRTL_UMS_SCHEDULER_ENTRY_POINT; +# 22076 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__declspec(dllimport) +DWORD +__stdcall +RtlCrc32( + const void *Buffer, + size_t Size, + DWORD InitialCrc + ); + +__declspec(dllimport) +ULONGLONG +__stdcall +RtlCrc64( + const void *Buffer, + size_t Size, + ULONGLONG InitialCrc + ); +# 22114 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _OS_DEPLOYEMENT_STATE_VALUES { + OS_DEPLOYMENT_STANDARD = 1, + OS_DEPLOYMENT_COMPACT +} OS_DEPLOYEMENT_STATE_VALUES; + +__declspec(dllimport) +OS_DEPLOYEMENT_STATE_VALUES +__stdcall +RtlOsDeploymentState( + DWORD Flags + ); +# 22136 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _NV_MEMORY_RANGE { + void *BaseAddress; + SIZE_T Length; +} NV_MEMORY_RANGE, *PNV_MEMORY_RANGE; +# 22241 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__declspec(dllimport) +DWORD +__stdcall +RtlGetNonVolatileToken ( + PVOID NvBuffer, + SIZE_T Size, + PVOID *NvToken + ); + + +__declspec(dllimport) +DWORD +__stdcall +RtlFreeNonVolatileToken ( + PVOID NvToken + ); + + +__declspec(dllimport) +DWORD +__stdcall +RtlFlushNonVolatileMemory ( + PVOID NvToken, + PVOID NvBuffer, + SIZE_T Size, + DWORD Flags + ); + + +__declspec(dllimport) +DWORD +__stdcall +RtlDrainNonVolatileFlush ( + PVOID NvToken + ); + + +__declspec(dllimport) +DWORD +__stdcall +RtlWriteNonVolatileMemory ( + PVOID NvToken, + void __unaligned *NvDestination, + const void __unaligned *Source, + SIZE_T Size, + DWORD Flags + ); + + + + +__declspec(dllimport) +DWORD +__stdcall +RtlFillNonVolatileMemory ( + PVOID NvToken, + void __unaligned *NvDestination, + SIZE_T Size, + const BYTE Value, + DWORD Flags + ); + + + + +__declspec(dllimport) +DWORD +__stdcall +RtlFlushNonVolatileMemoryRanges ( + PVOID NvToken, + PNV_MEMORY_RANGE NvRanges, + SIZE_T NumRanges, + DWORD Flags + ); +# 22366 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct CORRELATION_VECTOR { + CHAR Version; + CHAR Vector[129]; +} CORRELATION_VECTOR; + +typedef CORRELATION_VECTOR *PCORRELATION_VECTOR; + + + +__declspec(dllimport) +DWORD +__stdcall +RtlInitializeCorrelationVector( + PCORRELATION_VECTOR CorrelationVector, + int Version, + const GUID * Guid + ); + + +__declspec(dllimport) +DWORD +__stdcall +RtlIncrementCorrelationVector( + PCORRELATION_VECTOR CorrelationVector + ); + +__declspec(dllimport) +DWORD +__stdcall +RtlExtendCorrelationVector( + PCORRELATION_VECTOR CorrelationVector + ); + +__declspec(dllimport) +DWORD +__stdcall +RtlValidateCorrelationVector( + PCORRELATION_VECTOR Vector + ); + + + + + + +typedef struct _CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG { + + + + DWORD Size; + + + + + PCWSTR TriggerId; + +} CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG, *PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG; + + +__forceinline +void +CUSTOM_SYSTEM_EVENT_TRIGGER_INIT( + PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG Config, + PCWSTR TriggerId + ) +{ + memset((Config),0,(sizeof(CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG))); + + Config->Size = sizeof(CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG); + Config->TriggerId = TriggerId; +} + + + + +DWORD +__stdcall +RtlRaiseCustomSystemEventTrigger( + PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG TriggerConfig + ); +# 22458 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _IMAGE_POLICY_ENTRY_TYPE { + ImagePolicyEntryTypeNone = 0, + ImagePolicyEntryTypeBool, + ImagePolicyEntryTypeInt8, + ImagePolicyEntryTypeUInt8, + ImagePolicyEntryTypeInt16, + ImagePolicyEntryTypeUInt16, + ImagePolicyEntryTypeInt32, + ImagePolicyEntryTypeUInt32, + ImagePolicyEntryTypeInt64, + ImagePolicyEntryTypeUInt64, + ImagePolicyEntryTypeAnsiString, + ImagePolicyEntryTypeUnicodeString, + ImagePolicyEntryTypeOverride, + ImagePolicyEntryTypeMaximum +} IMAGE_POLICY_ENTRY_TYPE; + +typedef enum _IMAGE_POLICY_ID { + ImagePolicyIdNone = 0, + ImagePolicyIdEtw, + ImagePolicyIdDebug, + ImagePolicyIdCrashDump, + ImagePolicyIdCrashDumpKey, + ImagePolicyIdCrashDumpKeyGuid, + ImagePolicyIdParentSd, + ImagePolicyIdParentSdRev, + ImagePolicyIdSvn, + ImagePolicyIdDeviceId, + ImagePolicyIdCapability, + ImagePolicyIdScenarioId, + ImagePolicyIdMaximum +} IMAGE_POLICY_ID; + +typedef struct _IMAGE_POLICY_ENTRY { + IMAGE_POLICY_ENTRY_TYPE Type; + IMAGE_POLICY_ID PolicyId; + union { + const void* None; + BOOLEAN BoolValue; + INT8 Int8Value; + UINT8 UInt8Value; + INT16 Int16Value; + UINT16 UInt16Value; + INT32 Int32Value; + UINT32 UInt32Value; + INT64 Int64Value; + UINT64 UInt64Value; + PCSTR AnsiStringValue; + PCWSTR UnicodeStringValue; + } u; +} IMAGE_POLICY_ENTRY; +typedef const IMAGE_POLICY_ENTRY* PCIMAGE_POLICY_ENTRY; + + + +#pragma warning(push) +#pragma warning(disable: 4200) +typedef struct _IMAGE_POLICY_METADATA { + BYTE Version; + BYTE Reserved0[7]; + ULONGLONG ApplicationId; + IMAGE_POLICY_ENTRY Policies[]; +} IMAGE_POLICY_METADATA; +typedef const IMAGE_POLICY_METADATA* PCIMAGE_POLICY_METADATA; +#pragma warning(pop) +# 22579 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__declspec(dllimport) +BOOLEAN +__stdcall +RtlIsZeroMemory ( + PVOID Buffer, + SIZE_T Length + ); + + +__declspec(dllimport) +BOOLEAN +__stdcall +RtlNormalizeSecurityDescriptor ( + PSECURITY_DESCRIPTOR *SecurityDescriptor, + DWORD SecurityDescriptorLength, + PSECURITY_DESCRIPTOR *NewSecurityDescriptor, + PDWORD NewSecurityDescriptorLength, + BOOLEAN CheckOnly + ); +# 22613 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _RTL_SYSTEM_GLOBAL_DATA_ID { + GlobalDataIdUnknown = 0, + GlobalDataIdRngSeedVersion, + GlobalDataIdInterruptTime, + GlobalDataIdTimeZoneBias, + GlobalDataIdImageNumberLow, + GlobalDataIdImageNumberHigh, + GlobalDataIdTimeZoneId, + GlobalDataIdNtMajorVersion, + GlobalDataIdNtMinorVersion, + GlobalDataIdSystemExpirationDate, + GlobalDataIdKdDebuggerEnabled, + GlobalDataIdCyclesPerYield, + GlobalDataIdSafeBootMode, + GlobalDataIdLastSystemRITEventTickCount, + GlobalDataIdConsoleSharedDataFlags, + GlobalDataIdNtSystemRootDrive, + GlobalDataIdQpcShift, + GlobalDataIdQpcBypassEnabled, + GlobalDataIdQpcData, + GlobalDataIdQpcBias +} RTL_SYSTEM_GLOBAL_DATA_ID, *PRTL_SYSTEM_GLOBAL_DATA_ID; + +__declspec(dllimport) +DWORD +__stdcall +RtlGetSystemGlobalData ( + RTL_SYSTEM_GLOBAL_DATA_ID DataId, + PVOID Buffer, + DWORD Size + ); + +__declspec(dllimport) +DWORD +__stdcall +RtlSetSystemGlobalData ( + RTL_SYSTEM_GLOBAL_DATA_ID DataId, + PVOID Buffer, + DWORD Size + ); + + + + +typedef struct _RTL_CRITICAL_SECTION_DEBUG { + WORD Type; + WORD CreatorBackTraceIndex; + struct _RTL_CRITICAL_SECTION *CriticalSection; + LIST_ENTRY ProcessLocksList; + DWORD EntryCount; + DWORD ContentionCount; + DWORD Flags; + WORD CreatorBackTraceIndexHigh; + WORD Identifier; +} RTL_CRITICAL_SECTION_DEBUG, *PRTL_CRITICAL_SECTION_DEBUG, RTL_RESOURCE_DEBUG, *PRTL_RESOURCE_DEBUG; +# 22685 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma pack(push, 8) + +typedef struct _RTL_CRITICAL_SECTION { + PRTL_CRITICAL_SECTION_DEBUG DebugInfo; + + + + + + + LONG LockCount; + LONG RecursionCount; + HANDLE OwningThread; + HANDLE LockSemaphore; + ULONG_PTR SpinCount; +} RTL_CRITICAL_SECTION, *PRTL_CRITICAL_SECTION; + +#pragma pack(pop) + +typedef struct _RTL_SRWLOCK { + PVOID Ptr; +} RTL_SRWLOCK, *PRTL_SRWLOCK; + +typedef struct _RTL_CONDITION_VARIABLE { + PVOID Ptr; +} RTL_CONDITION_VARIABLE, *PRTL_CONDITION_VARIABLE; + + +typedef +void +(__stdcall *PAPCFUNC)( + ULONG_PTR Parameter + ); +typedef LONG (__stdcall *PVECTORED_EXCEPTION_HANDLER)( + struct _EXCEPTION_POINTERS *ExceptionInfo + ); + +typedef enum _HEAP_INFORMATION_CLASS { + + HeapCompatibilityInformation = 0, + HeapEnableTerminationOnCorruption = 1 + + + + + , + + HeapOptimizeResources = 3 + + + + + , + + HeapTag = 7 + +} HEAP_INFORMATION_CLASS; + + + + + + +typedef struct _HEAP_OPTIMIZE_RESOURCES_INFORMATION { + DWORD Version; + DWORD Flags; +} HEAP_OPTIMIZE_RESOURCES_INFORMATION, *PHEAP_OPTIMIZE_RESOURCES_INFORMATION; +# 22767 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef void (__stdcall * WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN ); +typedef void (__stdcall * WORKERCALLBACKFUNC) (PVOID ); +typedef void (__stdcall * APC_CALLBACK_FUNCTION) (DWORD , PVOID, PVOID); +typedef WAITORTIMERCALLBACKFUNC WAITORTIMERCALLBACK; +typedef +void +(__stdcall *PFLS_CALLBACK_FUNCTION) ( + PVOID lpFlsData + ); + +typedef +BOOLEAN +(__stdcall *PSECURE_MEMORY_CACHE_CALLBACK) ( + PVOID Addr, + SIZE_T Range + ); + + + + +typedef enum _ACTIVATION_CONTEXT_INFO_CLASS { + ActivationContextBasicInformation = 1, + ActivationContextDetailedInformation = 2, + AssemblyDetailedInformationInActivationContext = 3, + FileInformationInAssemblyOfAssemblyInActivationContext = 4, + RunlevelInformationInActivationContext = 5, + CompatibilityInformationInActivationContext = 6, + ActivationContextManifestResourceName = 7, + MaxActivationContextInfoClass, + + + + + AssemblyDetailedInformationInActivationContxt = 3, + FileInformationInAssemblyOfAssemblyInActivationContxt = 4 +} ACTIVATION_CONTEXT_INFO_CLASS; + + + + +typedef struct _ACTIVATION_CONTEXT_QUERY_INDEX { + DWORD ulAssemblyIndex; + DWORD ulFileIndexInAssembly; +} ACTIVATION_CONTEXT_QUERY_INDEX, * PACTIVATION_CONTEXT_QUERY_INDEX; + +typedef const struct _ACTIVATION_CONTEXT_QUERY_INDEX * PCACTIVATION_CONTEXT_QUERY_INDEX; + + + + + + + +typedef struct _ASSEMBLY_FILE_DETAILED_INFORMATION { + DWORD ulFlags; + DWORD ulFilenameLength; + DWORD ulPathLength; + + PCWSTR lpFileName; + PCWSTR lpFilePath; +} ASSEMBLY_FILE_DETAILED_INFORMATION, *PASSEMBLY_FILE_DETAILED_INFORMATION; +typedef const ASSEMBLY_FILE_DETAILED_INFORMATION *PCASSEMBLY_FILE_DETAILED_INFORMATION; +# 22839 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION { + DWORD ulFlags; + DWORD ulEncodedAssemblyIdentityLength; + DWORD ulManifestPathType; + DWORD ulManifestPathLength; + LARGE_INTEGER liManifestLastWriteTime; + DWORD ulPolicyPathType; + DWORD ulPolicyPathLength; + LARGE_INTEGER liPolicyLastWriteTime; + DWORD ulMetadataSatelliteRosterIndex; + + DWORD ulManifestVersionMajor; + DWORD ulManifestVersionMinor; + DWORD ulPolicyVersionMajor; + DWORD ulPolicyVersionMinor; + DWORD ulAssemblyDirectoryNameLength; + + PCWSTR lpAssemblyEncodedAssemblyIdentity; + PCWSTR lpAssemblyManifestPath; + PCWSTR lpAssemblyPolicyPath; + PCWSTR lpAssemblyDirectoryName; + + DWORD ulFileCount; +} ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION, * PACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION; + +typedef const struct _ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION * PCACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION ; + +typedef enum +{ + ACTCTX_RUN_LEVEL_UNSPECIFIED = 0, + ACTCTX_RUN_LEVEL_AS_INVOKER, + ACTCTX_RUN_LEVEL_HIGHEST_AVAILABLE, + ACTCTX_RUN_LEVEL_REQUIRE_ADMIN, + ACTCTX_RUN_LEVEL_NUMBERS +} ACTCTX_REQUESTED_RUN_LEVEL; + +typedef struct _ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION { + DWORD ulFlags; + ACTCTX_REQUESTED_RUN_LEVEL RunLevel; + DWORD UiAccess; +} ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION, * PACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION; + +typedef const struct _ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION * PCACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION ; + +typedef enum +{ + ACTCTX_COMPATIBILITY_ELEMENT_TYPE_UNKNOWN = 0, + ACTCTX_COMPATIBILITY_ELEMENT_TYPE_OS, + ACTCTX_COMPATIBILITY_ELEMENT_TYPE_MITIGATION, + ACTCTX_COMPATIBILITY_ELEMENT_TYPE_MAXVERSIONTESTED +} ACTCTX_COMPATIBILITY_ELEMENT_TYPE; + +typedef struct _COMPATIBILITY_CONTEXT_ELEMENT { + GUID Id; + ACTCTX_COMPATIBILITY_ELEMENT_TYPE Type; + ULONGLONG MaxVersionTested; +} COMPATIBILITY_CONTEXT_ELEMENT, *PCOMPATIBILITY_CONTEXT_ELEMENT; + +typedef const struct _COMPATIBILITY_CONTEXT_ELEMENT *PCCOMPATIBILITY_CONTEXT_ELEMENT; + + + + +#pragma warning(push) +#pragma warning(disable: 4200) + + +typedef struct _ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION { + DWORD ElementCount; + COMPATIBILITY_CONTEXT_ELEMENT Elements[]; +} ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION, * PACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION; + + +#pragma warning(pop) + + +typedef const struct _ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION * PCACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION; + + + +typedef struct _SUPPORTED_OS_INFO { + WORD MajorVersion; + WORD MinorVersion; +} SUPPORTED_OS_INFO, *PSUPPORTED_OS_INFO; + +typedef struct _MAXVERSIONTESTED_INFO { + ULONGLONG MaxVersionTested; +} MAXVERSIONTESTED_INFO, *PMAXVERSIONTESTED_INFO; + +typedef struct _ACTIVATION_CONTEXT_DETAILED_INFORMATION { + DWORD dwFlags; + DWORD ulFormatVersion; + DWORD ulAssemblyCount; + DWORD ulRootManifestPathType; + DWORD ulRootManifestPathChars; + DWORD ulRootConfigurationPathType; + DWORD ulRootConfigurationPathChars; + DWORD ulAppDirPathType; + DWORD ulAppDirPathChars; + PCWSTR lpRootManifestPath; + PCWSTR lpRootConfigurationPath; + PCWSTR lpAppDirPath; +} ACTIVATION_CONTEXT_DETAILED_INFORMATION, *PACTIVATION_CONTEXT_DETAILED_INFORMATION; + +typedef const struct _ACTIVATION_CONTEXT_DETAILED_INFORMATION *PCACTIVATION_CONTEXT_DETAILED_INFORMATION; + + + + +typedef struct _HARDWARE_COUNTER_DATA { + HARDWARE_COUNTER_TYPE Type; + DWORD Reserved; + DWORD64 Value; +} HARDWARE_COUNTER_DATA, *PHARDWARE_COUNTER_DATA; + + + +typedef struct _PERFORMANCE_DATA { + WORD Size; + BYTE Version; + BYTE HwCountersCount; + DWORD ContextSwitchCount; + DWORD64 WaitReasonBitMap; + DWORD64 CycleTime; + DWORD RetryCount; + DWORD Reserved; + HARDWARE_COUNTER_DATA HwCounters[16]; +} PERFORMANCE_DATA, *PPERFORMANCE_DATA; +# 23055 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +void +__stdcall +RtlGetDeviceFamilyInfoEnum( + ULONGLONG *pullUAPInfo, + DWORD *pulDeviceFamily, + DWORD *pulDeviceForm +); + +DWORD +__stdcall +RtlConvertDeviceFamilyInfoToString( + PDWORD pulDeviceFamilyBufferSize, + PDWORD pulDeviceFormBufferSize, + PWSTR DeviceFamily, + PWSTR DeviceForm + +); + +DWORD +__stdcall +RtlSwitchedVVI( + PRTL_OSVERSIONINFOEXW VersionInfo, + DWORD TypeMask, + ULONGLONG ConditionMask + ); +# 23130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _EVENTLOGRECORD { + DWORD Length; + DWORD Reserved; + DWORD RecordNumber; + DWORD TimeGenerated; + DWORD TimeWritten; + DWORD EventID; + WORD EventType; + WORD NumStrings; + WORD EventCategory; + WORD ReservedFlags; + DWORD ClosingRecordNumber; + DWORD StringOffset; + DWORD UserSidLength; + DWORD UserSidOffset; + DWORD DataLength; + DWORD DataOffset; +# 23158 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +} EVENTLOGRECORD, *PEVENTLOGRECORD; + + + + + + +#pragma warning(push) + +#pragma warning(disable: 4200) + +struct _EVENTSFORLOGFILE; +typedef struct _EVENTSFORLOGFILE EVENTSFORLOGFILE, *PEVENTSFORLOGFILE; + +struct _PACKEDEVENTINFO; +typedef struct _PACKEDEVENTINFO PACKEDEVENTINFO, *PPACKEDEVENTINFO; + + + +struct _EVENTSFORLOGFILE +{ + DWORD ulSize; + WCHAR szLogicalLogFile[256]; + DWORD ulNumRecords; + EVENTLOGRECORD pEventLogRecords[]; +}; + +struct _PACKEDEVENTINFO +{ + DWORD ulSize; + DWORD ulNumEventsForLogFile; + DWORD ulOffsets[]; +}; + + + + +#pragma warning(pop) +# 23435 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _CM_SERVICE_NODE_TYPE { + DriverType = 0x00000001, + FileSystemType = 0x00000002, + Win32ServiceOwnProcess = 0x00000010, + Win32ServiceShareProcess = 0x00000020, + AdapterType = 0x00000004, + RecognizerType = 0x00000008 +} SERVICE_NODE_TYPE; + +typedef enum _CM_SERVICE_LOAD_TYPE { + BootLoad = 0x00000000, + SystemLoad = 0x00000001, + AutoLoad = 0x00000002, + DemandLoad = 0x00000003, + DisableLoad = 0x00000004 +} SERVICE_LOAD_TYPE; + +typedef enum _CM_ERROR_CONTROL_TYPE { + IgnoreError = 0x00000000, + NormalError = 0x00000001, + SevereError = 0x00000002, + CriticalError = 0x00000003 +} SERVICE_ERROR_TYPE; +# 23528 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _TAPE_ERASE { + DWORD Type; + BOOLEAN Immediate; +} TAPE_ERASE, *PTAPE_ERASE; +# 23544 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _TAPE_PREPARE { + DWORD Operation; + BOOLEAN Immediate; +} TAPE_PREPARE, *PTAPE_PREPARE; +# 23558 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _TAPE_WRITE_MARKS { + DWORD Type; + DWORD Count; + BOOLEAN Immediate; +} TAPE_WRITE_MARKS, *PTAPE_WRITE_MARKS; +# 23572 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _TAPE_GET_POSITION { + DWORD Type; + DWORD Partition; + LARGE_INTEGER Offset; +} TAPE_GET_POSITION, *PTAPE_GET_POSITION; +# 23593 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _TAPE_SET_POSITION { + DWORD Method; + DWORD Partition; + LARGE_INTEGER Offset; + BOOLEAN Immediate; +} TAPE_SET_POSITION, *PTAPE_SET_POSITION; +# 23686 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _TAPE_GET_DRIVE_PARAMETERS { + BOOLEAN ECC; + BOOLEAN Compression; + BOOLEAN DataPadding; + BOOLEAN ReportSetmarks; + DWORD DefaultBlockSize; + DWORD MaximumBlockSize; + DWORD MinimumBlockSize; + DWORD MaximumPartitionCount; + DWORD FeaturesLow; + DWORD FeaturesHigh; + DWORD EOTWarningZoneSize; +} TAPE_GET_DRIVE_PARAMETERS, *PTAPE_GET_DRIVE_PARAMETERS; + + + + + +typedef struct _TAPE_SET_DRIVE_PARAMETERS { + BOOLEAN ECC; + BOOLEAN Compression; + BOOLEAN DataPadding; + BOOLEAN ReportSetmarks; + DWORD EOTWarningZoneSize; +} TAPE_SET_DRIVE_PARAMETERS, *PTAPE_SET_DRIVE_PARAMETERS; + + + + + +typedef struct _TAPE_GET_MEDIA_PARAMETERS { + LARGE_INTEGER Capacity; + LARGE_INTEGER Remaining; + DWORD BlockSize; + DWORD PartitionCount; + BOOLEAN WriteProtected; +} TAPE_GET_MEDIA_PARAMETERS, *PTAPE_GET_MEDIA_PARAMETERS; + + + + + +typedef struct _TAPE_SET_MEDIA_PARAMETERS { + DWORD BlockSize; +} TAPE_SET_MEDIA_PARAMETERS, *PTAPE_SET_MEDIA_PARAMETERS; +# 23740 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _TAPE_CREATE_PARTITION { + DWORD Method; + DWORD Count; + DWORD Size; +} TAPE_CREATE_PARTITION, *PTAPE_CREATE_PARTITION; +# 23756 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _TAPE_WMI_OPERATIONS { + DWORD Method; + DWORD DataBufferSize; + PVOID DataBuffer; +} TAPE_WMI_OPERATIONS, *PTAPE_WMI_OPERATIONS; + + + + +typedef enum _TAPE_DRIVE_PROBLEM_TYPE { + TapeDriveProblemNone, TapeDriveReadWriteWarning, + TapeDriveReadWriteError, TapeDriveReadWarning, + TapeDriveWriteWarning, TapeDriveReadError, + TapeDriveWriteError, TapeDriveHardwareError, + TapeDriveUnsupportedMedia, TapeDriveScsiConnectionError, + TapeDriveTimetoClean, TapeDriveCleanDriveNow, + TapeDriveMediaLifeExpired, TapeDriveSnappedTape +} TAPE_DRIVE_PROBLEM_TYPE; +# 23785 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\ktmtypes.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\ktmtypes.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + + +typedef GUID UOW, *PUOW; +typedef GUID CRM_PROTOCOL_ID, *PCRM_PROTOCOL_ID; +# 82 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\ktmtypes.h" 3 +typedef ULONG NOTIFICATION_MASK; +# 137 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\ktmtypes.h" 3 +typedef struct _TRANSACTION_NOTIFICATION { + PVOID TransactionKey; + ULONG TransactionNotification; + LARGE_INTEGER TmVirtualClock; + ULONG ArgumentLength; +} TRANSACTION_NOTIFICATION, *PTRANSACTION_NOTIFICATION; + +typedef struct _TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT { + GUID EnlistmentId; + UOW UOW; +} TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT, *PTRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT; + + + +typedef struct _TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT { + GUID TmIdentity; + ULONG Flags; +} TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT, *PTRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT; + +typedef ULONG SAVEPOINT_ID, *PSAVEPOINT_ID; + +typedef struct _TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT { + SAVEPOINT_ID SavepointId; +} TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT, *PTRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT; + +typedef struct _TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT { + ULONG PropagationCookie; + GUID UOW; + GUID TmIdentity; + ULONG BufferLength; + +} TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT, *PTRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT; + +typedef struct _TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT { + ULONG MarshalCookie; + GUID UOW; +} TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT, *PTRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT; + +typedef TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT TRANSACTION_NOTIFICATION_PROMOTE_ARGUMENT, *PTRANSACTION_NOTIFICATION_PROMOTE_ARGUMENT; + + + + + + + +typedef struct _KCRM_MARSHAL_HEADER { + ULONG VersionMajor; + ULONG VersionMinor; + ULONG NumProtocols; + ULONG Unused; +} KCRM_MARSHAL_HEADER, *PKCRM_MARSHAL_HEADER, * PRKCRM_MARSHAL_HEADER; + +typedef struct _KCRM_TRANSACTION_BLOB { + UOW UOW; + GUID TmIdentity; + ULONG IsolationLevel; + ULONG IsolationFlags; + ULONG Timeout; + WCHAR Description[64]; +} KCRM_TRANSACTION_BLOB, *PKCRM_TRANSACTION_BLOB, * PRKCRM_TRANSACTION_BLOB; + +typedef struct _KCRM_PROTOCOL_BLOB { + CRM_PROTOCOL_ID ProtocolId; + ULONG StaticInfoLength; + ULONG TransactionIdInfoLength; + ULONG Unused1; + ULONG Unused2; +} KCRM_PROTOCOL_BLOB, *PKCRM_PROTOCOL_BLOB, * PRKCRM_PROTOCOL_BLOB; + + +#pragma warning(pop) +# 23786 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 + + +#pragma warning(push) +#pragma warning(disable: 4820) +# 23962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef enum _TRANSACTION_OUTCOME { + TransactionOutcomeUndetermined = 1, + TransactionOutcomeCommitted, + TransactionOutcomeAborted, +} TRANSACTION_OUTCOME; + + +typedef enum _TRANSACTION_STATE { + TransactionStateNormal = 1, + TransactionStateIndoubt, + TransactionStateCommittedNotify, +} TRANSACTION_STATE; + + +typedef struct _TRANSACTION_BASIC_INFORMATION { + GUID TransactionId; + DWORD State; + DWORD Outcome; +} TRANSACTION_BASIC_INFORMATION, *PTRANSACTION_BASIC_INFORMATION; + +typedef struct _TRANSACTIONMANAGER_BASIC_INFORMATION { + GUID TmIdentity; + LARGE_INTEGER VirtualClock; +} TRANSACTIONMANAGER_BASIC_INFORMATION, *PTRANSACTIONMANAGER_BASIC_INFORMATION; + +typedef struct _TRANSACTIONMANAGER_LOG_INFORMATION { + GUID LogIdentity; +} TRANSACTIONMANAGER_LOG_INFORMATION, *PTRANSACTIONMANAGER_LOG_INFORMATION; + +typedef struct _TRANSACTIONMANAGER_LOGPATH_INFORMATION { + DWORD LogPathLength; + WCHAR LogPath[1]; + +} TRANSACTIONMANAGER_LOGPATH_INFORMATION, *PTRANSACTIONMANAGER_LOGPATH_INFORMATION; + +typedef struct _TRANSACTIONMANAGER_RECOVERY_INFORMATION { + ULONGLONG LastRecoveredLsn; +} TRANSACTIONMANAGER_RECOVERY_INFORMATION, *PTRANSACTIONMANAGER_RECOVERY_INFORMATION; + + + +typedef struct _TRANSACTIONMANAGER_OLDEST_INFORMATION { + GUID OldestTransactionGuid; +} TRANSACTIONMANAGER_OLDEST_INFORMATION, *PTRANSACTIONMANAGER_OLDEST_INFORMATION; + + + +typedef struct _TRANSACTION_PROPERTIES_INFORMATION { + DWORD IsolationLevel; + DWORD IsolationFlags; + LARGE_INTEGER Timeout; + DWORD Outcome; + DWORD DescriptionLength; + WCHAR Description[1]; + +} TRANSACTION_PROPERTIES_INFORMATION, *PTRANSACTION_PROPERTIES_INFORMATION; + + + +typedef struct _TRANSACTION_BIND_INFORMATION { + HANDLE TmHandle; +} TRANSACTION_BIND_INFORMATION, *PTRANSACTION_BIND_INFORMATION; + +typedef struct _TRANSACTION_ENLISTMENT_PAIR { + GUID EnlistmentId; + GUID ResourceManagerId; +} TRANSACTION_ENLISTMENT_PAIR, *PTRANSACTION_ENLISTMENT_PAIR; + +typedef struct _TRANSACTION_ENLISTMENTS_INFORMATION { + DWORD NumberOfEnlistments; + TRANSACTION_ENLISTMENT_PAIR EnlistmentPair[1]; +} TRANSACTION_ENLISTMENTS_INFORMATION, *PTRANSACTION_ENLISTMENTS_INFORMATION; + +typedef struct _TRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION { + TRANSACTION_ENLISTMENT_PAIR SuperiorEnlistmentPair; +} TRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION, *PTRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION; + + +typedef struct _RESOURCEMANAGER_BASIC_INFORMATION { + GUID ResourceManagerId; + DWORD DescriptionLength; + WCHAR Description[1]; +} RESOURCEMANAGER_BASIC_INFORMATION, *PRESOURCEMANAGER_BASIC_INFORMATION; + +typedef struct _RESOURCEMANAGER_COMPLETION_INFORMATION { + HANDLE IoCompletionPortHandle; + ULONG_PTR CompletionKey; +} RESOURCEMANAGER_COMPLETION_INFORMATION, *PRESOURCEMANAGER_COMPLETION_INFORMATION; + + + + +typedef enum _TRANSACTION_INFORMATION_CLASS { + TransactionBasicInformation, + TransactionPropertiesInformation, + TransactionEnlistmentInformation, + TransactionSuperiorEnlistmentInformation + + , + + + TransactionBindInformation, + TransactionDTCPrivateInformation + , + +} TRANSACTION_INFORMATION_CLASS; + + +typedef enum _TRANSACTIONMANAGER_INFORMATION_CLASS { + TransactionManagerBasicInformation, + TransactionManagerLogInformation, + TransactionManagerLogPathInformation, + TransactionManagerRecoveryInformation = 4 + + , + + + + TransactionManagerOnlineProbeInformation = 3, + TransactionManagerOldestTransactionInformation = 5 + + + +} TRANSACTIONMANAGER_INFORMATION_CLASS; + + + +typedef enum _RESOURCEMANAGER_INFORMATION_CLASS { + ResourceManagerBasicInformation, + ResourceManagerCompletionInformation, +} RESOURCEMANAGER_INFORMATION_CLASS; + + +typedef struct _ENLISTMENT_BASIC_INFORMATION { + GUID EnlistmentId; + GUID TransactionId; + GUID ResourceManagerId; +} ENLISTMENT_BASIC_INFORMATION, *PENLISTMENT_BASIC_INFORMATION; + +typedef struct _ENLISTMENT_CRM_INFORMATION { + GUID CrmTransactionManagerId; + GUID CrmResourceManagerId; + GUID CrmEnlistmentId; +} ENLISTMENT_CRM_INFORMATION, *PENLISTMENT_CRM_INFORMATION; + + + +typedef enum _ENLISTMENT_INFORMATION_CLASS { + EnlistmentBasicInformation, + EnlistmentRecoveryInformation, + EnlistmentCrmInformation +} ENLISTMENT_INFORMATION_CLASS; + +typedef struct _TRANSACTION_LIST_ENTRY { + UOW UOW; +} TRANSACTION_LIST_ENTRY, *PTRANSACTION_LIST_ENTRY; + +typedef struct _TRANSACTION_LIST_INFORMATION { + DWORD NumberOfTransactions; + TRANSACTION_LIST_ENTRY TransactionInformation[1]; +} TRANSACTION_LIST_INFORMATION, *PTRANSACTION_LIST_INFORMATION; + + + + + + +typedef enum _KTMOBJECT_TYPE { + + KTMOBJECT_TRANSACTION, + KTMOBJECT_TRANSACTION_MANAGER, + KTMOBJECT_RESOURCE_MANAGER, + KTMOBJECT_ENLISTMENT, + KTMOBJECT_INVALID + +} KTMOBJECT_TYPE, *PKTMOBJECT_TYPE; +# 24147 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _KTMOBJECT_CURSOR { + + + + + + GUID LastQuery; + + + + + + DWORD ObjectIdCount; + + + + + + GUID ObjectIds[1]; + +} KTMOBJECT_CURSOR, *PKTMOBJECT_CURSOR; + + + + +#pragma warning(pop) + + + + + + + +typedef DWORD TP_VERSION, *PTP_VERSION; + +typedef struct _TP_CALLBACK_INSTANCE TP_CALLBACK_INSTANCE, *PTP_CALLBACK_INSTANCE; + +typedef void (__stdcall *PTP_SIMPLE_CALLBACK)( + PTP_CALLBACK_INSTANCE Instance, + PVOID Context + ); + +typedef struct _TP_POOL TP_POOL, *PTP_POOL; + +typedef enum _TP_CALLBACK_PRIORITY { + TP_CALLBACK_PRIORITY_HIGH, + TP_CALLBACK_PRIORITY_NORMAL, + TP_CALLBACK_PRIORITY_LOW, + TP_CALLBACK_PRIORITY_INVALID, + TP_CALLBACK_PRIORITY_COUNT = TP_CALLBACK_PRIORITY_INVALID +} TP_CALLBACK_PRIORITY; + +typedef struct _TP_POOL_STACK_INFORMATION { + SIZE_T StackReserve; + SIZE_T StackCommit; +}TP_POOL_STACK_INFORMATION, *PTP_POOL_STACK_INFORMATION; + +typedef struct _TP_CLEANUP_GROUP TP_CLEANUP_GROUP, *PTP_CLEANUP_GROUP; + +typedef void (__stdcall *PTP_CLEANUP_GROUP_CANCEL_CALLBACK)( + PVOID ObjectContext, + PVOID CleanupContext + ); +# 24218 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +typedef struct _TP_CALLBACK_ENVIRON_V3 { + TP_VERSION Version; + PTP_POOL Pool; + PTP_CLEANUP_GROUP CleanupGroup; + PTP_CLEANUP_GROUP_CANCEL_CALLBACK CleanupGroupCancelCallback; + PVOID RaceDll; + struct _ACTIVATION_CONTEXT *ActivationContext; + PTP_SIMPLE_CALLBACK FinalizationCallback; + union { + DWORD Flags; + struct { + DWORD LongFunction : 1; + DWORD Persistent : 1; + DWORD Private : 30; + } s; + } u; + TP_CALLBACK_PRIORITY CallbackPriority; + DWORD Size; +} TP_CALLBACK_ENVIRON_V3; + +typedef TP_CALLBACK_ENVIRON_V3 TP_CALLBACK_ENVIRON, *PTP_CALLBACK_ENVIRON; +# 24266 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +__forceinline +void +TpInitializeCallbackEnviron( + PTP_CALLBACK_ENVIRON CallbackEnviron + ) +{ + + + + CallbackEnviron->Version = 3; + + + + + + + + CallbackEnviron->Pool = ((void *)0); + CallbackEnviron->CleanupGroup = ((void *)0); + CallbackEnviron->CleanupGroupCancelCallback = ((void *)0); + CallbackEnviron->RaceDll = ((void *)0); + CallbackEnviron->ActivationContext = ((void *)0); + CallbackEnviron->FinalizationCallback = ((void *)0); + CallbackEnviron->u.Flags = 0; + + + + CallbackEnviron->CallbackPriority = TP_CALLBACK_PRIORITY_NORMAL; + CallbackEnviron->Size = sizeof(TP_CALLBACK_ENVIRON); + + + +} + +__forceinline +void +TpSetCallbackThreadpool( + PTP_CALLBACK_ENVIRON CallbackEnviron, + PTP_POOL Pool + ) +{ + CallbackEnviron->Pool = Pool; +} + +__forceinline +void +TpSetCallbackCleanupGroup( + PTP_CALLBACK_ENVIRON CallbackEnviron, + PTP_CLEANUP_GROUP CleanupGroup, + PTP_CLEANUP_GROUP_CANCEL_CALLBACK CleanupGroupCancelCallback + ) +{ + CallbackEnviron->CleanupGroup = CleanupGroup; + CallbackEnviron->CleanupGroupCancelCallback = CleanupGroupCancelCallback; +} + +__forceinline +void +TpSetCallbackActivationContext( + PTP_CALLBACK_ENVIRON CallbackEnviron, + struct _ACTIVATION_CONTEXT *ActivationContext + ) +{ + CallbackEnviron->ActivationContext = ActivationContext; +} + +__forceinline +void +TpSetCallbackNoActivationContext( + PTP_CALLBACK_ENVIRON CallbackEnviron + ) +{ + CallbackEnviron->ActivationContext = (struct _ACTIVATION_CONTEXT *)(LONG_PTR) -1; +} + +__forceinline +void +TpSetCallbackLongFunction( + PTP_CALLBACK_ENVIRON CallbackEnviron + ) +{ + CallbackEnviron->u.s.LongFunction = 1; +} + +__forceinline +void +TpSetCallbackRaceWithDll( + PTP_CALLBACK_ENVIRON CallbackEnviron, + PVOID DllHandle + ) +{ + CallbackEnviron->RaceDll = DllHandle; +} + +__forceinline +void +TpSetCallbackFinalizationCallback( + PTP_CALLBACK_ENVIRON CallbackEnviron, + PTP_SIMPLE_CALLBACK FinalizationCallback + ) +{ + CallbackEnviron->FinalizationCallback = FinalizationCallback; +} + + + +__forceinline +void +TpSetCallbackPriority( + PTP_CALLBACK_ENVIRON CallbackEnviron, + TP_CALLBACK_PRIORITY Priority + ) +{ + CallbackEnviron->CallbackPriority = Priority; +} + + + +__forceinline +void +TpSetCallbackPersistent( + PTP_CALLBACK_ENVIRON CallbackEnviron + ) +{ + CallbackEnviron->u.s.Persistent = 1; +} + + +__forceinline +void +TpDestroyCallbackEnviron( + PTP_CALLBACK_ENVIRON CallbackEnviron + ) +{ + + + + + + + (CallbackEnviron); +} + + + + +typedef struct _TP_WORK TP_WORK, *PTP_WORK; + +typedef void (__stdcall *PTP_WORK_CALLBACK)( + PTP_CALLBACK_INSTANCE Instance, + PVOID Context, + PTP_WORK Work + ); + +typedef struct _TP_TIMER TP_TIMER, *PTP_TIMER; + +typedef void (__stdcall *PTP_TIMER_CALLBACK)( + PTP_CALLBACK_INSTANCE Instance, + PVOID Context, + PTP_TIMER Timer + ); + +typedef DWORD TP_WAIT_RESULT; + +typedef struct _TP_WAIT TP_WAIT, *PTP_WAIT; + +typedef void (__stdcall *PTP_WAIT_CALLBACK)( + PTP_CALLBACK_INSTANCE Instance, + PVOID Context, + PTP_WAIT Wait, + TP_WAIT_RESULT WaitResult + ); + +typedef struct _TP_IO TP_IO, *PTP_IO; + + + +__forceinline +struct _TEB * +NtCurrentTeb ( + void + ) + +{ + return (struct _TEB *)__readgsqword(((LONG)__builtin_offsetof(NT_TIB, Self))); +} + +__forceinline +PVOID +GetCurrentFiber ( + void + ) + +{ + + return (PVOID)__readgsqword(((LONG)__builtin_offsetof(NT_TIB, FiberData))); +} + +__forceinline +PVOID +GetFiberData ( + void + ) + +{ + + return *(PVOID *)GetCurrentFiber(); +} +# 24576 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 +#pragma warning(pop) +# 183 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 2 3 + + + +typedef UINT_PTR WPARAM; +typedef LONG_PTR LPARAM; +typedef LONG_PTR LRESULT; +# 209 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 3 +typedef HANDLE *SPHANDLE; +typedef HANDLE *LPHANDLE; +typedef HANDLE HGLOBAL; +typedef HANDLE HLOCAL; +typedef HANDLE GLOBALHANDLE; +typedef HANDLE LOCALHANDLE; + + + +#pragma warning(push) +#pragma warning(disable: 4255) + + + +typedef INT_PTR ( __stdcall *FARPROC)(); +typedef INT_PTR ( __stdcall *NEARPROC)(); +typedef INT_PTR (__stdcall *PROC)(); +# 237 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 3 +#pragma warning(pop) + + + + + + + +typedef WORD ATOM; + +struct HKEY__{int unused;}; typedef struct HKEY__ *HKEY; +typedef HKEY *PHKEY; +struct HMETAFILE__{int unused;}; typedef struct HMETAFILE__ *HMETAFILE; +struct HINSTANCE__{int unused;}; typedef struct HINSTANCE__ *HINSTANCE; +typedef HINSTANCE HMODULE; +struct HRGN__{int unused;}; typedef struct HRGN__ *HRGN; +struct HRSRC__{int unused;}; typedef struct HRSRC__ *HRSRC; +struct HSPRITE__{int unused;}; typedef struct HSPRITE__ *HSPRITE; +struct HLSURF__{int unused;}; typedef struct HLSURF__ *HLSURF; +struct HSTR__{int unused;}; typedef struct HSTR__ *HSTR; +struct HTASK__{int unused;}; typedef struct HTASK__ *HTASK; +struct HWINSTA__{int unused;}; typedef struct HWINSTA__ *HWINSTA; +struct HKL__{int unused;}; typedef struct HKL__ *HKL; + + +typedef int HFILE; +# 271 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 3 +typedef struct _FILETIME { + DWORD dwLowDateTime; + DWORD dwHighDateTime; +} FILETIME, *PFILETIME, *LPFILETIME; +# 25 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 2 3 +# 39 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 +struct HWND__{int unused;}; typedef struct HWND__ *HWND; +struct HHOOK__{int unused;}; typedef struct HHOOK__ *HHOOK; +# 63 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 +typedef void * HGDIOBJ; + + + + + + +struct HACCEL__{int unused;}; typedef struct HACCEL__ *HACCEL; + + +struct HBITMAP__{int unused;}; typedef struct HBITMAP__ *HBITMAP; +struct HBRUSH__{int unused;}; typedef struct HBRUSH__ *HBRUSH; + + +struct HCOLORSPACE__{int unused;}; typedef struct HCOLORSPACE__ *HCOLORSPACE; + + +struct HDC__{int unused;}; typedef struct HDC__ *HDC; + +struct HGLRC__{int unused;}; typedef struct HGLRC__ *HGLRC; +struct HDESK__{int unused;}; typedef struct HDESK__ *HDESK; +struct HENHMETAFILE__{int unused;}; typedef struct HENHMETAFILE__ *HENHMETAFILE; + +struct HFONT__{int unused;}; typedef struct HFONT__ *HFONT; + +struct HICON__{int unused;}; typedef struct HICON__ *HICON; + +struct HMENU__{int unused;}; typedef struct HMENU__ *HMENU; + + +struct HPALETTE__{int unused;}; typedef struct HPALETTE__ *HPALETTE; +struct HPEN__{int unused;}; typedef struct HPEN__ *HPEN; + + + +struct HWINEVENTHOOK__{int unused;}; typedef struct HWINEVENTHOOK__ *HWINEVENTHOOK; +# 110 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 +struct HMONITOR__{int unused;}; typedef struct HMONITOR__ *HMONITOR; +# 120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 +struct HUMPD__{int unused;}; typedef struct HUMPD__ *HUMPD; +# 131 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 +typedef HICON HCURSOR; + + + + +typedef DWORD COLORREF; + + + + + + + +typedef DWORD *LPCOLORREF; +# 154 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 +typedef struct tagRECT +{ + LONG left; + LONG top; + LONG right; + LONG bottom; +} RECT, *PRECT, *NPRECT, *LPRECT; + +typedef const RECT * LPCRECT; + +typedef struct _RECTL +{ + LONG left; + LONG top; + LONG right; + LONG bottom; +} RECTL, *PRECTL, *LPRECTL; + +typedef const RECTL * LPCRECTL; + +typedef struct tagPOINT +{ + LONG x; + LONG y; +} POINT, *PPOINT, *NPPOINT, *LPPOINT; + +typedef struct _POINTL +{ + LONG x; + LONG y; +} POINTL, *PPOINTL; + +typedef struct tagSIZE +{ + LONG cx; + LONG cy; +} SIZE, *PSIZE, *LPSIZE; + +typedef SIZE SIZEL; +typedef SIZE *PSIZEL, *LPSIZEL; + +typedef struct tagPOINTS +{ + + SHORT x; + SHORT y; + + + + +} POINTS, *PPOINTS, *LPPOINTS; + + +typedef struct APP_LOCAL_DEVICE_ID +{ + BYTE value[32]; +} APP_LOCAL_DEVICE_ID; +# 256 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 +struct DPI_AWARENESS_CONTEXT__{int unused;}; typedef struct DPI_AWARENESS_CONTEXT__ *DPI_AWARENESS_CONTEXT; + +typedef enum DPI_AWARENESS { + DPI_AWARENESS_INVALID = -1, + DPI_AWARENESS_UNAWARE = 0, + DPI_AWARENESS_SYSTEM_AWARE = 1, + DPI_AWARENESS_PER_MONITOR_AWARE = 2 +} DPI_AWARENESS; + + + + + + + +typedef enum DPI_HOSTING_BEHAVIOR { + DPI_HOSTING_BEHAVIOR_INVALID = -1, + DPI_HOSTING_BEHAVIOR_DEFAULT = 0, + DPI_HOSTING_BEHAVIOR_MIXED = 1 +} DPI_HOSTING_BEHAVIOR; +# 176 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 1 3 +# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) +#pragma warning(disable: 4668) + +#pragma warning(disable: 4001) +#pragma warning(disable: 4201) +#pragma warning(disable: 4214) + + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\apisetcconv.h" 1 3 +# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\minwinbase.h" 1 3 +# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\minwinbase.h" 3 +#pragma warning(disable: 4514) + +#pragma warning(disable: 4103) + + +#pragma warning(push) +#pragma warning(disable: 4820) + +#pragma warning(disable: 4001) +#pragma warning(disable: 4201) +#pragma warning(disable: 4214) +# 46 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\minwinbase.h" 3 +typedef struct _SECURITY_ATTRIBUTES { + DWORD nLength; + LPVOID lpSecurityDescriptor; + BOOL bInheritHandle; +} SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; + +typedef struct _OVERLAPPED { + ULONG_PTR Internal; + ULONG_PTR InternalHigh; + union { + struct { + DWORD Offset; + DWORD OffsetHigh; + } ; + PVOID Pointer; + } ; + + HANDLE hEvent; +} OVERLAPPED, *LPOVERLAPPED; + +typedef struct _OVERLAPPED_ENTRY { + ULONG_PTR lpCompletionKey; + LPOVERLAPPED lpOverlapped; + ULONG_PTR Internal; + DWORD dwNumberOfBytesTransferred; +} OVERLAPPED_ENTRY, *LPOVERLAPPED_ENTRY; +# 90 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\minwinbase.h" 3 +typedef struct _SYSTEMTIME { + WORD wYear; + WORD wMonth; + WORD wDayOfWeek; + WORD wDay; + WORD wHour; + WORD wMinute; + WORD wSecond; + WORD wMilliseconds; +} SYSTEMTIME, *PSYSTEMTIME, *LPSYSTEMTIME; + + +typedef struct _WIN32_FIND_DATAA { + DWORD dwFileAttributes; + FILETIME ftCreationTime; + FILETIME ftLastAccessTime; + FILETIME ftLastWriteTime; + DWORD nFileSizeHigh; + DWORD nFileSizeLow; + DWORD dwReserved0; + DWORD dwReserved1; + CHAR cFileName[ 260 ]; + CHAR cAlternateFileName[ 14 ]; + + + + + +} WIN32_FIND_DATAA, *PWIN32_FIND_DATAA, *LPWIN32_FIND_DATAA; +typedef struct _WIN32_FIND_DATAW { + DWORD dwFileAttributes; + FILETIME ftCreationTime; + FILETIME ftLastAccessTime; + FILETIME ftLastWriteTime; + DWORD nFileSizeHigh; + DWORD nFileSizeLow; + DWORD dwReserved0; + DWORD dwReserved1; + WCHAR cFileName[ 260 ]; + WCHAR cAlternateFileName[ 14 ]; + + + + + +} WIN32_FIND_DATAW, *PWIN32_FIND_DATAW, *LPWIN32_FIND_DATAW; + + + + + +typedef WIN32_FIND_DATAA WIN32_FIND_DATA; +typedef PWIN32_FIND_DATAA PWIN32_FIND_DATA; +typedef LPWIN32_FIND_DATAA LPWIN32_FIND_DATA; + + + + +typedef enum _FINDEX_INFO_LEVELS { + FindExInfoStandard, + FindExInfoBasic, + FindExInfoMaxInfoLevel +} FINDEX_INFO_LEVELS; + + + + + + + +typedef enum _FINDEX_SEARCH_OPS { + FindExSearchNameMatch, + FindExSearchLimitToDirectories, + FindExSearchLimitToDevices, + FindExSearchMaxSearchOp +} FINDEX_SEARCH_OPS; + + + + +typedef enum _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS { + ReadDirectoryNotifyInformation = 1, + ReadDirectoryNotifyExtendedInformation, + + ReadDirectoryNotifyFullInformation, + + + ReadDirectoryNotifyMaximumInformation +} READ_DIRECTORY_NOTIFY_INFORMATION_CLASS, *PREAD_DIRECTORY_NOTIFY_INFORMATION_CLASS; + + + +typedef enum _GET_FILEEX_INFO_LEVELS { + GetFileExInfoStandard, + GetFileExMaxInfoLevel +} GET_FILEEX_INFO_LEVELS; + + +typedef enum _FILE_INFO_BY_HANDLE_CLASS { + FileBasicInfo, + FileStandardInfo, + FileNameInfo, + FileRenameInfo, + FileDispositionInfo, + FileAllocationInfo, + FileEndOfFileInfo, + FileStreamInfo, + FileCompressionInfo, + FileAttributeTagInfo, + FileIdBothDirectoryInfo, + FileIdBothDirectoryRestartInfo, + FileIoPriorityHintInfo, + FileRemoteProtocolInfo, + FileFullDirectoryInfo, + FileFullDirectoryRestartInfo, + + FileStorageInfo, + FileAlignmentInfo, + FileIdInfo, + FileIdExtdDirectoryInfo, + FileIdExtdDirectoryRestartInfo, + + + FileDispositionInfoEx, + FileRenameInfoEx, + + + FileCaseSensitiveInfo, + FileNormalizedNameInfo, + + MaximumFileInfoByHandleClass +} FILE_INFO_BY_HANDLE_CLASS, *PFILE_INFO_BY_HANDLE_CLASS; + + +typedef RTL_CRITICAL_SECTION CRITICAL_SECTION; +typedef PRTL_CRITICAL_SECTION PCRITICAL_SECTION; +typedef PRTL_CRITICAL_SECTION LPCRITICAL_SECTION; + +typedef RTL_CRITICAL_SECTION_DEBUG CRITICAL_SECTION_DEBUG; +typedef PRTL_CRITICAL_SECTION_DEBUG PCRITICAL_SECTION_DEBUG; +typedef PRTL_CRITICAL_SECTION_DEBUG LPCRITICAL_SECTION_DEBUG; + +typedef +void +(__stdcall *LPOVERLAPPED_COMPLETION_ROUTINE)( + DWORD dwErrorCode, + DWORD dwNumberOfBytesTransfered, + LPOVERLAPPED lpOverlapped + ); + + + + +typedef struct _PROCESS_HEAP_ENTRY { + PVOID lpData; + DWORD cbData; + BYTE cbOverhead; + BYTE iRegionIndex; + WORD wFlags; + union { + struct { + HANDLE hMem; + DWORD dwReserved[ 3 ]; + } Block; + struct { + DWORD dwCommittedSize; + DWORD dwUnCommittedSize; + LPVOID lpFirstBlock; + LPVOID lpLastBlock; + } Region; + } ; +} PROCESS_HEAP_ENTRY, *LPPROCESS_HEAP_ENTRY, *PPROCESS_HEAP_ENTRY; +# 270 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\minwinbase.h" 3 +typedef struct _REASON_CONTEXT { + ULONG Version; + DWORD Flags; + union { + struct { + HMODULE LocalizedReasonModule; + ULONG LocalizedReasonId; + ULONG ReasonStringCount; + LPWSTR *ReasonStrings; + + } Detailed; + + LPWSTR SimpleReasonString; + } Reason; +} REASON_CONTEXT, *PREASON_CONTEXT; +# 299 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\minwinbase.h" 3 +typedef DWORD (__stdcall *PTHREAD_START_ROUTINE)( + LPVOID lpThreadParameter + ); +typedef PTHREAD_START_ROUTINE LPTHREAD_START_ROUTINE; + +typedef LPVOID (__stdcall *PENCLAVE_ROUTINE)( + LPVOID lpThreadParameter + ); +typedef PENCLAVE_ROUTINE LPENCLAVE_ROUTINE; + +typedef struct _EXCEPTION_DEBUG_INFO { + EXCEPTION_RECORD ExceptionRecord; + DWORD dwFirstChance; +} EXCEPTION_DEBUG_INFO, *LPEXCEPTION_DEBUG_INFO; + +typedef struct _CREATE_THREAD_DEBUG_INFO { + HANDLE hThread; + LPVOID lpThreadLocalBase; + LPTHREAD_START_ROUTINE lpStartAddress; +} CREATE_THREAD_DEBUG_INFO, *LPCREATE_THREAD_DEBUG_INFO; + +typedef struct _CREATE_PROCESS_DEBUG_INFO { + HANDLE hFile; + HANDLE hProcess; + HANDLE hThread; + LPVOID lpBaseOfImage; + DWORD dwDebugInfoFileOffset; + DWORD nDebugInfoSize; + LPVOID lpThreadLocalBase; + LPTHREAD_START_ROUTINE lpStartAddress; + LPVOID lpImageName; + WORD fUnicode; +} CREATE_PROCESS_DEBUG_INFO, *LPCREATE_PROCESS_DEBUG_INFO; + +typedef struct _EXIT_THREAD_DEBUG_INFO { + DWORD dwExitCode; +} EXIT_THREAD_DEBUG_INFO, *LPEXIT_THREAD_DEBUG_INFO; + +typedef struct _EXIT_PROCESS_DEBUG_INFO { + DWORD dwExitCode; +} EXIT_PROCESS_DEBUG_INFO, *LPEXIT_PROCESS_DEBUG_INFO; + +typedef struct _LOAD_DLL_DEBUG_INFO { + HANDLE hFile; + LPVOID lpBaseOfDll; + DWORD dwDebugInfoFileOffset; + DWORD nDebugInfoSize; + LPVOID lpImageName; + WORD fUnicode; +} LOAD_DLL_DEBUG_INFO, *LPLOAD_DLL_DEBUG_INFO; + +typedef struct _UNLOAD_DLL_DEBUG_INFO { + LPVOID lpBaseOfDll; +} UNLOAD_DLL_DEBUG_INFO, *LPUNLOAD_DLL_DEBUG_INFO; + +typedef struct _OUTPUT_DEBUG_STRING_INFO { + LPSTR lpDebugStringData; + WORD fUnicode; + WORD nDebugStringLength; +} OUTPUT_DEBUG_STRING_INFO, *LPOUTPUT_DEBUG_STRING_INFO; + +typedef struct _RIP_INFO { + DWORD dwError; + DWORD dwType; +} RIP_INFO, *LPRIP_INFO; + + +typedef struct _DEBUG_EVENT { + DWORD dwDebugEventCode; + DWORD dwProcessId; + DWORD dwThreadId; + union { + EXCEPTION_DEBUG_INFO Exception; + CREATE_THREAD_DEBUG_INFO CreateThread; + CREATE_PROCESS_DEBUG_INFO CreateProcessInfo; + EXIT_THREAD_DEBUG_INFO ExitThread; + EXIT_PROCESS_DEBUG_INFO ExitProcess; + LOAD_DLL_DEBUG_INFO LoadDll; + UNLOAD_DLL_DEBUG_INFO UnloadDll; + OUTPUT_DEBUG_STRING_INFO DebugString; + RIP_INFO RipInfo; + } u; +} DEBUG_EVENT, *LPDEBUG_EVENT; + + + + + + + +typedef PCONTEXT LPCONTEXT; +# 460 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\minwinbase.h" 3 +#pragma warning(pop) +# 36 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\apiquery2.h" 1 3 +# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\apiquery2.h" 3 +BOOL +__stdcall +IsApiSetImplemented( + PCSTR Contract + ); +# 42 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processenv.h" 1 3 +# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processenv.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetEnvironmentStringsW( + LPWCH NewEnvironment + ); +# 44 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processenv.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +GetStdHandle( + DWORD nStdHandle + ); + +__declspec(dllimport) +BOOL +__stdcall +SetStdHandle( + DWORD nStdHandle, + HANDLE hHandle + ); + + + +__declspec(dllimport) +BOOL +__stdcall +SetStdHandleEx( + DWORD nStdHandle, + HANDLE hHandle, + PHANDLE phPrevValue + ); +# 78 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processenv.h" 3 +__declspec(dllimport) +LPSTR +__stdcall +GetCommandLineA( + void + ); + +__declspec(dllimport) +LPWSTR +__stdcall +GetCommandLineW( + void + ); + + + + + + +__declspec(dllimport) + +LPCH +__stdcall +GetEnvironmentStrings( + void + ); + +__declspec(dllimport) + +LPWCH +__stdcall +GetEnvironmentStringsW( + void + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +FreeEnvironmentStringsA( + LPCH penv + ); + +__declspec(dllimport) +BOOL +__stdcall +FreeEnvironmentStringsW( + LPWCH penv + ); + + + + + + +__declspec(dllimport) + +DWORD +__stdcall +GetEnvironmentVariableA( + LPCSTR lpName, + LPSTR lpBuffer, + DWORD nSize + ); + +__declspec(dllimport) + +DWORD +__stdcall +GetEnvironmentVariableW( + LPCWSTR lpName, + LPWSTR lpBuffer, + DWORD nSize + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetEnvironmentVariableA( + LPCSTR lpName, + LPCSTR lpValue + ); + +__declspec(dllimport) +BOOL +__stdcall +SetEnvironmentVariableW( + LPCWSTR lpName, + LPCWSTR lpValue + ); + + + + + + +__declspec(dllimport) + +DWORD +__stdcall +ExpandEnvironmentStringsA( + LPCSTR lpSrc, + LPSTR lpDst, + DWORD nSize + ); + +__declspec(dllimport) + +DWORD +__stdcall +ExpandEnvironmentStringsW( + LPCWSTR lpSrc, + LPWSTR lpDst, + DWORD nSize + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetCurrentDirectoryA( + LPCSTR lpPathName + ); + +__declspec(dllimport) +BOOL +__stdcall +SetCurrentDirectoryW( + LPCWSTR lpPathName + ); + + + + + + +__declspec(dllimport) + +DWORD +__stdcall +GetCurrentDirectoryA( + DWORD nBufferLength, + LPSTR lpBuffer + ); + +__declspec(dllimport) + +DWORD +__stdcall +GetCurrentDirectoryW( + DWORD nBufferLength, + LPWSTR lpBuffer + ); +# 257 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processenv.h" 3 +__declspec(dllimport) +DWORD +__stdcall +SearchPathW( + LPCWSTR lpPath, + LPCWSTR lpFileName, + LPCWSTR lpExtension, + DWORD nBufferLength, + LPWSTR lpBuffer, + LPWSTR* lpFilePart + ); + + + + + + + +__declspec(dllimport) +DWORD +__stdcall +SearchPathA( + LPCSTR lpPath, + LPCSTR lpFileName, + LPCSTR lpExtension, + DWORD nBufferLength, + LPSTR lpBuffer, + LPSTR* lpFilePart + ); +# 294 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processenv.h" 3 +__declspec(dllimport) +BOOL +__stdcall +NeedCurrentDirectoryForExePathA( + LPCSTR ExeName + ); + +__declspec(dllimport) +BOOL +__stdcall +NeedCurrentDirectoryForExePathW( + LPCWSTR ExeName + ); +# 43 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapifromapp.h" 1 3 +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapifromapp.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 1 3 +# 41 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +LONG +__stdcall +CompareFileTime( + const FILETIME* lpFileTime1, + const FILETIME* lpFileTime2 + ); + +__declspec(dllimport) +BOOL +__stdcall +CreateDirectoryA( + LPCSTR lpPathName, + LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); + +__declspec(dllimport) +BOOL +__stdcall +CreateDirectoryW( + LPCWSTR lpPathName, + LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); +# 76 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +CreateFileA( + LPCSTR lpFileName, + DWORD dwDesiredAccess, + DWORD dwShareMode, + LPSECURITY_ATTRIBUTES lpSecurityAttributes, + DWORD dwCreationDisposition, + DWORD dwFlagsAndAttributes, + HANDLE hTemplateFile + ); + +__declspec(dllimport) +HANDLE +__stdcall +CreateFileW( + LPCWSTR lpFileName, + DWORD dwDesiredAccess, + DWORD dwShareMode, + LPSECURITY_ATTRIBUTES lpSecurityAttributes, + DWORD dwCreationDisposition, + DWORD dwFlagsAndAttributes, + HANDLE hTemplateFile + ); +# 113 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DefineDosDeviceW( + DWORD dwFlags, + LPCWSTR lpDeviceName, + LPCWSTR lpTargetPath + ); +# 132 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DeleteFileA( + LPCSTR lpFileName + ); + +__declspec(dllimport) +BOOL +__stdcall +DeleteFileW( + LPCWSTR lpFileName + ); +# 157 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DeleteVolumeMountPointW( + LPCWSTR lpszVolumeMountPoint + ); +# 174 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +FileTimeToLocalFileTime( + const FILETIME* lpFileTime, + LPFILETIME lpLocalFileTime + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +FindClose( + HANDLE hFindFile + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +FindCloseChangeNotification( + HANDLE hChangeHandle + ); + +__declspec(dllimport) +HANDLE +__stdcall +FindFirstChangeNotificationA( + LPCSTR lpPathName, + BOOL bWatchSubtree, + DWORD dwNotifyFilter + ); + +__declspec(dllimport) +HANDLE +__stdcall +FindFirstChangeNotificationW( + LPCWSTR lpPathName, + BOOL bWatchSubtree, + DWORD dwNotifyFilter + ); +# 237 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +FindFirstFileA( + LPCSTR lpFileName, + LPWIN32_FIND_DATAA lpFindFileData + ); + +__declspec(dllimport) +HANDLE +__stdcall +FindFirstFileW( + LPCWSTR lpFileName, + LPWIN32_FIND_DATAW lpFindFileData + ); +# 260 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +FindFirstFileExA( + LPCSTR lpFileName, + FINDEX_INFO_LEVELS fInfoLevelId, + LPVOID lpFindFileData, + FINDEX_SEARCH_OPS fSearchOp, + LPVOID lpSearchFilter, + DWORD dwAdditionalFlags + ); + +__declspec(dllimport) +HANDLE +__stdcall +FindFirstFileExW( + LPCWSTR lpFileName, + FINDEX_INFO_LEVELS fInfoLevelId, + LPVOID lpFindFileData, + FINDEX_SEARCH_OPS fSearchOp, + LPVOID lpSearchFilter, + DWORD dwAdditionalFlags + ); +# 297 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +FindFirstVolumeW( + LPWSTR lpszVolumeName, + DWORD cchBufferLength + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +FindNextChangeNotification( + HANDLE hChangeHandle + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +FindNextFileA( + HANDLE hFindFile, + LPWIN32_FIND_DATAA lpFindFileData + ); + +__declspec(dllimport) +BOOL +__stdcall +FindNextFileW( + HANDLE hFindFile, + LPWIN32_FIND_DATAW lpFindFileData + ); +# 349 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +FindNextVolumeW( + HANDLE hFindVolume, + LPWSTR lpszVolumeName, + DWORD cchBufferLength + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +FindVolumeClose( + HANDLE hFindVolume + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +FlushFileBuffers( + HANDLE hFile + ); + +__declspec(dllimport) +BOOL +__stdcall +GetDiskFreeSpaceA( + LPCSTR lpRootPathName, + LPDWORD lpSectorsPerCluster, + LPDWORD lpBytesPerSector, + LPDWORD lpNumberOfFreeClusters, + LPDWORD lpTotalNumberOfClusters + ); + +__declspec(dllimport) +BOOL +__stdcall +GetDiskFreeSpaceW( + LPCWSTR lpRootPathName, + LPDWORD lpSectorsPerCluster, + LPDWORD lpBytesPerSector, + LPDWORD lpNumberOfFreeClusters, + LPDWORD lpTotalNumberOfClusters + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetDiskFreeSpaceExA( + LPCSTR lpDirectoryName, + PULARGE_INTEGER lpFreeBytesAvailableToCaller, + PULARGE_INTEGER lpTotalNumberOfBytes, + PULARGE_INTEGER lpTotalNumberOfFreeBytes + ); + +__declspec(dllimport) +BOOL +__stdcall +GetDiskFreeSpaceExW( + LPCWSTR lpDirectoryName, + PULARGE_INTEGER lpFreeBytesAvailableToCaller, + PULARGE_INTEGER lpTotalNumberOfBytes, + PULARGE_INTEGER lpTotalNumberOfFreeBytes + ); +# 445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +typedef struct DISK_SPACE_INFORMATION { +# 466 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 + ULONGLONG ActualTotalAllocationUnits; + ULONGLONG ActualAvailableAllocationUnits; + ULONGLONG ActualPoolUnavailableAllocationUnits; +# 482 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 + ULONGLONG CallerTotalAllocationUnits; + ULONGLONG CallerAvailableAllocationUnits; + ULONGLONG CallerPoolUnavailableAllocationUnits; + + + + + + ULONGLONG UsedAllocationUnits; + + + + + + ULONGLONG TotalReservedAllocationUnits; + + + + + + + ULONGLONG VolumeStorageReserveAllocationUnits; +# 517 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 + ULONGLONG AvailableCommittedAllocationUnits; + + + + + + + ULONGLONG PoolAvailableAllocationUnits; + + DWORD SectorsPerAllocationUnit; + DWORD BytesPerSector; + +} DISK_SPACE_INFORMATION; + +__declspec(dllimport) +HRESULT +__stdcall +GetDiskSpaceInformationA( + LPCSTR rootPath, + DISK_SPACE_INFORMATION* diskSpaceInfo + ); + +__declspec(dllimport) +HRESULT +__stdcall +GetDiskSpaceInformationW( + LPCWSTR rootPath, + DISK_SPACE_INFORMATION* diskSpaceInfo + ); +# 558 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +UINT +__stdcall +GetDriveTypeA( + LPCSTR lpRootPathName + ); + +__declspec(dllimport) +UINT +__stdcall +GetDriveTypeW( + LPCWSTR lpRootPathName + ); + + + + + + +typedef struct _WIN32_FILE_ATTRIBUTE_DATA { + DWORD dwFileAttributes; + FILETIME ftCreationTime; + FILETIME ftLastAccessTime; + FILETIME ftLastWriteTime; + DWORD nFileSizeHigh; + DWORD nFileSizeLow; +} WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA; + +__declspec(dllimport) +DWORD +__stdcall +GetFileAttributesA( + LPCSTR lpFileName + ); + +__declspec(dllimport) +DWORD +__stdcall +GetFileAttributesW( + LPCWSTR lpFileName + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetFileAttributesExA( + LPCSTR lpFileName, + GET_FILEEX_INFO_LEVELS fInfoLevelId, + LPVOID lpFileInformation + ); + +__declspec(dllimport) +BOOL +__stdcall +GetFileAttributesExW( + LPCWSTR lpFileName, + GET_FILEEX_INFO_LEVELS fInfoLevelId, + LPVOID lpFileInformation + ); + + + + + + +typedef struct _BY_HANDLE_FILE_INFORMATION { + DWORD dwFileAttributes; + FILETIME ftCreationTime; + FILETIME ftLastAccessTime; + FILETIME ftLastWriteTime; + DWORD dwVolumeSerialNumber; + DWORD nFileSizeHigh; + DWORD nFileSizeLow; + DWORD nNumberOfLinks; + DWORD nFileIndexHigh; + DWORD nFileIndexLow; +} BY_HANDLE_FILE_INFORMATION, *PBY_HANDLE_FILE_INFORMATION, *LPBY_HANDLE_FILE_INFORMATION; + +__declspec(dllimport) +BOOL +__stdcall +GetFileInformationByHandle( + HANDLE hFile, + LPBY_HANDLE_FILE_INFORMATION lpFileInformation + ); + + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetFileSize( + HANDLE hFile, + LPDWORD lpFileSizeHigh + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetFileSizeEx( + HANDLE hFile, + PLARGE_INTEGER lpFileSize + ); + +__declspec(dllimport) +DWORD +__stdcall +GetFileType( + HANDLE hFile + ); + + + +__declspec(dllimport) +DWORD +__stdcall +GetFinalPathNameByHandleA( + HANDLE hFile, + LPSTR lpszFilePath, + DWORD cchFilePath, + DWORD dwFlags + ); + +__declspec(dllimport) +DWORD +__stdcall +GetFinalPathNameByHandleW( + HANDLE hFile, + LPWSTR lpszFilePath, + DWORD cchFilePath, + DWORD dwFlags + ); +# 713 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetFileTime( + HANDLE hFile, + LPFILETIME lpCreationTime, + LPFILETIME lpLastAccessTime, + LPFILETIME lpLastWriteTime + ); + +__declspec(dllimport) + +DWORD +__stdcall +GetFullPathNameW( + LPCWSTR lpFileName, + DWORD nBufferLength, + LPWSTR lpBuffer, + LPWSTR* lpFilePart + ); + + + + + +__declspec(dllimport) + +DWORD +__stdcall +GetFullPathNameA( + LPCSTR lpFileName, + DWORD nBufferLength, + LPSTR lpBuffer, + LPSTR* lpFilePart + ); + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetLogicalDrives( + void + ); + + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetLogicalDriveStringsW( + DWORD nBufferLength, + LPWSTR lpBuffer + ); +# 784 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) + +DWORD +__stdcall +GetLongPathNameA( + LPCSTR lpszShortPath, + LPSTR lpszLongPath, + DWORD cchBuffer + ); + + + + + +__declspec(dllimport) + +DWORD +__stdcall +GetLongPathNameW( + LPCWSTR lpszShortPath, + LPWSTR lpszLongPath, + DWORD cchBuffer + ); +# 820 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +AreShortNamesEnabled( + HANDLE Handle, + BOOL* Enabled + ); + + + +__declspec(dllimport) + +DWORD +__stdcall +GetShortPathNameW( + LPCWSTR lpszLongPath, + LPWSTR lpszShortPath, + DWORD cchBuffer + ); +# 850 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +UINT +__stdcall +GetTempFileNameW( + LPCWSTR lpPathName, + LPCWSTR lpPrefixString, + UINT uUnique, + LPWSTR lpTempFileName + ); +# 872 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetVolumeInformationByHandleW( + HANDLE hFile, + LPWSTR lpVolumeNameBuffer, + DWORD nVolumeNameSize, + LPDWORD lpVolumeSerialNumber, + LPDWORD lpMaximumComponentLength, + LPDWORD lpFileSystemFlags, + LPWSTR lpFileSystemNameBuffer, + DWORD nFileSystemNameSize + ); + + + +__declspec(dllimport) +BOOL +__stdcall +GetVolumeInformationW( + LPCWSTR lpRootPathName, + LPWSTR lpVolumeNameBuffer, + DWORD nVolumeNameSize, + LPDWORD lpVolumeSerialNumber, + LPDWORD lpMaximumComponentLength, + LPDWORD lpFileSystemFlags, + LPWSTR lpFileSystemNameBuffer, + DWORD nFileSystemNameSize + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetVolumePathNameW( + LPCWSTR lpszFileName, + LPWSTR lpszVolumePathName, + DWORD cchBufferLength + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +LocalFileTimeToFileTime( + const FILETIME* lpLocalFileTime, + LPFILETIME lpFileTime + ); + +__declspec(dllimport) +BOOL +__stdcall +LockFile( + HANDLE hFile, + DWORD dwFileOffsetLow, + DWORD dwFileOffsetHigh, + DWORD nNumberOfBytesToLockLow, + DWORD nNumberOfBytesToLockHigh + ); + +__declspec(dllimport) +BOOL +__stdcall +LockFileEx( + HANDLE hFile, + DWORD dwFlags, + DWORD dwReserved, + DWORD nNumberOfBytesToLockLow, + DWORD nNumberOfBytesToLockHigh, + LPOVERLAPPED lpOverlapped + ); + + + + + + + +__declspec(dllimport) +DWORD +__stdcall +QueryDosDeviceW( + LPCWSTR lpDeviceName, + LPWSTR lpTargetPath, + DWORD ucchMax + ); +# 975 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +ReadFile( + HANDLE hFile, + LPVOID lpBuffer, + DWORD nNumberOfBytesToRead, + LPDWORD lpNumberOfBytesRead, + LPOVERLAPPED lpOverlapped + ); + +__declspec(dllimport) + +BOOL +__stdcall +ReadFileEx( + HANDLE hFile, + LPVOID lpBuffer, + DWORD nNumberOfBytesToRead, + LPOVERLAPPED lpOverlapped, + LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine + ); + +__declspec(dllimport) + +BOOL +__stdcall +ReadFileScatter( + HANDLE hFile, + FILE_SEGMENT_ELEMENT aSegmentArray[], + DWORD nNumberOfBytesToRead, + LPDWORD lpReserved, + LPOVERLAPPED lpOverlapped + ); + +__declspec(dllimport) +BOOL +__stdcall +RemoveDirectoryA( + LPCSTR lpPathName + ); + +__declspec(dllimport) +BOOL +__stdcall +RemoveDirectoryW( + LPCWSTR lpPathName + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetEndOfFile( + HANDLE hFile + ); + +__declspec(dllimport) +BOOL +__stdcall +SetFileAttributesA( + LPCSTR lpFileName, + DWORD dwFileAttributes + ); + +__declspec(dllimport) +BOOL +__stdcall +SetFileAttributesW( + LPCWSTR lpFileName, + DWORD dwFileAttributes + ); +# 1060 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetFileInformationByHandle( + HANDLE hFile, + FILE_INFO_BY_HANDLE_CLASS FileInformationClass, + LPVOID lpFileInformation, + DWORD dwBufferSize + ); + + + +__declspec(dllimport) +DWORD +__stdcall +SetFilePointer( + HANDLE hFile, + LONG lDistanceToMove, + PLONG lpDistanceToMoveHigh, + DWORD dwMoveMethod + ); + +__declspec(dllimport) +BOOL +__stdcall +SetFilePointerEx( + HANDLE hFile, + LARGE_INTEGER liDistanceToMove, + PLARGE_INTEGER lpNewFilePointer, + DWORD dwMoveMethod + ); + +__declspec(dllimport) +BOOL +__stdcall +SetFileTime( + HANDLE hFile, + const FILETIME* lpCreationTime, + const FILETIME* lpLastAccessTime, + const FILETIME* lpLastWriteTime + ); + + + +__declspec(dllimport) +BOOL +__stdcall +SetFileValidData( + HANDLE hFile, + LONGLONG ValidDataLength + ); + + + +__declspec(dllimport) +BOOL +__stdcall +UnlockFile( + HANDLE hFile, + DWORD dwFileOffsetLow, + DWORD dwFileOffsetHigh, + DWORD nNumberOfBytesToUnlockLow, + DWORD nNumberOfBytesToUnlockHigh + ); + +__declspec(dllimport) +BOOL +__stdcall +UnlockFileEx( + HANDLE hFile, + DWORD dwReserved, + DWORD nNumberOfBytesToUnlockLow, + DWORD nNumberOfBytesToUnlockHigh, + LPOVERLAPPED lpOverlapped + ); + +__declspec(dllimport) +BOOL +__stdcall +WriteFile( + HANDLE hFile, + LPCVOID lpBuffer, + DWORD nNumberOfBytesToWrite, + LPDWORD lpNumberOfBytesWritten, + LPOVERLAPPED lpOverlapped + ); + +__declspec(dllimport) +BOOL +__stdcall +WriteFileEx( + HANDLE hFile, + LPCVOID lpBuffer, + DWORD nNumberOfBytesToWrite, + LPOVERLAPPED lpOverlapped, + LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine + ); + +__declspec(dllimport) +BOOL +__stdcall +WriteFileGather( + HANDLE hFile, + FILE_SEGMENT_ELEMENT aSegmentArray[], + DWORD nNumberOfBytesToWrite, + LPDWORD lpReserved, + LPOVERLAPPED lpOverlapped + ); + +__declspec(dllimport) +DWORD +__stdcall +GetTempPathW( + DWORD nBufferLength, + LPWSTR lpBuffer + ); +# 1187 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetVolumeNameForVolumeMountPointW( + LPCWSTR lpszVolumeMountPoint, + LPWSTR lpszVolumeName, + DWORD cchBufferLength + ); +# 1208 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetVolumePathNamesForVolumeNameW( + LPCWSTR lpszVolumeName, + LPWCH lpszVolumePathNames, + DWORD cchBufferLength, + PDWORD lpcchReturnLength + ); +# 1232 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +typedef struct _CREATEFILE2_EXTENDED_PARAMETERS { + DWORD dwSize; + DWORD dwFileAttributes; + DWORD dwFileFlags; + DWORD dwSecurityQosFlags; + LPSECURITY_ATTRIBUTES lpSecurityAttributes; + HANDLE hTemplateFile; +} CREATEFILE2_EXTENDED_PARAMETERS, *PCREATEFILE2_EXTENDED_PARAMETERS, *LPCREATEFILE2_EXTENDED_PARAMETERS; + +__declspec(dllimport) +HANDLE +__stdcall +CreateFile2( + LPCWSTR lpFileName, + DWORD dwDesiredAccess, + DWORD dwShareMode, + DWORD dwCreationDisposition, + LPCREATEFILE2_EXTENDED_PARAMETERS pCreateExParams + ); +# 1262 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetFileIoOverlappedRange( + HANDLE FileHandle, + PUCHAR OverlappedRangeStart, + ULONG Length + ); + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetCompressedFileSizeA( + LPCSTR lpFileName, + LPDWORD lpFileSizeHigh + ); + +__declspec(dllimport) +DWORD +__stdcall +GetCompressedFileSizeW( + LPCWSTR lpFileName, + LPDWORD lpFileSizeHigh + ); +# 1300 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +typedef enum _STREAM_INFO_LEVELS { + + FindStreamInfoStandard, + FindStreamInfoMaxInfoLevel + +} STREAM_INFO_LEVELS; + +typedef struct _WIN32_FIND_STREAM_DATA { + + LARGE_INTEGER StreamSize; + WCHAR cStreamName[ 260 + 36 ]; + +} WIN32_FIND_STREAM_DATA, *PWIN32_FIND_STREAM_DATA; + +__declspec(dllimport) +HANDLE +__stdcall +FindFirstStreamW( + LPCWSTR lpFileName, + STREAM_INFO_LEVELS InfoLevel, + LPVOID lpFindStreamData, + DWORD dwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +FindNextStreamW( + HANDLE hFindStream, + LPVOID lpFindStreamData + ); +# 1340 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +AreFileApisANSI( + void + ); + + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetTempPathA( + DWORD nBufferLength, + LPSTR lpBuffer + ); +# 1373 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +FindFirstFileNameW( + LPCWSTR lpFileName, + DWORD dwFlags, + LPDWORD StringLength, + PWSTR LinkName + ); + +__declspec(dllimport) +BOOL +__stdcall +FindNextFileNameW( + HANDLE hFindStream, + LPDWORD StringLength, + PWSTR LinkName + ); +# 1400 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetVolumeInformationA( + LPCSTR lpRootPathName, + LPSTR lpVolumeNameBuffer, + DWORD nVolumeNameSize, + LPDWORD lpVolumeSerialNumber, + LPDWORD lpMaximumComponentLength, + LPDWORD lpFileSystemFlags, + LPSTR lpFileSystemNameBuffer, + DWORD nFileSystemNameSize + ); +# 1424 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +UINT +__stdcall +GetTempFileNameA( + LPCSTR lpPathName, + LPCSTR lpPrefixString, + UINT uUnique, + LPSTR lpTempFileName + ); +# 1443 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) +void +__stdcall +SetFileApisToOEM( + void + ); + +__declspec(dllimport) +void +__stdcall +SetFileApisToANSI( + void + ); +# 1465 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 +__declspec(dllimport) + +DWORD +__stdcall +GetTempPath2W( + DWORD BufferLength, + LPWSTR Buffer + ); + + + + + +__declspec(dllimport) + +DWORD +__stdcall +GetTempPath2A( + DWORD BufferLength, + LPSTR Buffer + ); +# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapifromapp.h" 2 3 +# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapifromapp.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CopyFileFromAppW( + LPCWSTR lpExistingFileName, + LPCWSTR lpNewFileName, + BOOL bFailIfExists + ) + + + +; + +__declspec(dllimport) +BOOL +__stdcall +CreateDirectoryFromAppW( + LPCWSTR lpPathName, + LPSECURITY_ATTRIBUTES lpSecurityAttributes + ) + + + +; + +__declspec(dllimport) +HANDLE +__stdcall +CreateFileFromAppW( + LPCWSTR lpFileName, + DWORD dwDesiredAccess, + DWORD dwShareMode, + LPSECURITY_ATTRIBUTES lpSecurityAttributes, + DWORD dwCreationDisposition, + DWORD dwFlagsAndAttributes, + HANDLE hTemplateFile + ) + + + +; + +__declspec(dllimport) +HANDLE +__stdcall +CreateFile2FromAppW( + LPCWSTR lpFileName, + DWORD dwDesiredAccess, + DWORD dwShareMode, + DWORD dwCreationDisposition, + LPCREATEFILE2_EXTENDED_PARAMETERS pCreateExParams + ) + + + +; + +__declspec(dllimport) +BOOL +__stdcall +DeleteFileFromAppW( + LPCWSTR lpFileName + ) + + + +; + +__declspec(dllimport) +HANDLE +__stdcall +FindFirstFileExFromAppW( + LPCWSTR lpFileName, + FINDEX_INFO_LEVELS fInfoLevelId, + LPVOID lpFindFileData, + FINDEX_SEARCH_OPS fSearchOp, + LPVOID lpSearchFilter, + DWORD dwAdditionalFlags + ) + + + +; + +__declspec(dllimport) +BOOL +__stdcall +GetFileAttributesExFromAppW( + LPCWSTR lpFileName, + GET_FILEEX_INFO_LEVELS fInfoLevelId, + LPVOID lpFileInformation + ) + + + +; + +__declspec(dllimport) +BOOL +__stdcall +MoveFileFromAppW( + LPCWSTR lpExistingFileName, + LPCWSTR lpNewFileName + ) + + + +; + +__declspec(dllimport) +BOOL +__stdcall +RemoveDirectoryFromAppW( + LPCWSTR lpPathName + ) + + + +; + +__declspec(dllimport) +BOOL +__stdcall +ReplaceFileFromAppW( + LPCWSTR lpReplacedFileName, + LPCWSTR lpReplacementFileName, + LPCWSTR lpBackupFileName, + DWORD dwReplaceFlags, + LPVOID lpExclude, + LPVOID lpReserved + ) + + + +; + +__declspec(dllimport) +BOOL +__stdcall +SetFileAttributesFromAppW( + LPCWSTR lpFileName, + DWORD dwFileAttributes + ) + + + +; +# 44 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\debugapi.h" 1 3 +# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\debugapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsDebuggerPresent( + void + ); +# 44 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\debugapi.h" 3 +__declspec(dllimport) +void +__stdcall +DebugBreak( + void + ); + +__declspec(dllimport) +void +__stdcall +OutputDebugStringA( + LPCSTR lpOutputString + ); + +__declspec(dllimport) +void +__stdcall +OutputDebugStringW( + LPCWSTR lpOutputString + ); +# 76 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\debugapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +ContinueDebugEvent( + DWORD dwProcessId, + DWORD dwThreadId, + DWORD dwContinueStatus + ); + +__declspec(dllimport) +BOOL +__stdcall +WaitForDebugEvent( + LPDEBUG_EVENT lpDebugEvent, + DWORD dwMilliseconds + ); + +__declspec(dllimport) +BOOL +__stdcall +DebugActiveProcess( + DWORD dwProcessId + ); + +__declspec(dllimport) +BOOL +__stdcall +DebugActiveProcessStop( + DWORD dwProcessId + ); +# 115 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\debugapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CheckRemoteDebuggerPresent( + HANDLE hProcess, + PBOOL pbDebuggerPresent + ); +# 131 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\debugapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +WaitForDebugEventEx( + LPDEBUG_EVENT lpDebugEvent, + DWORD dwMilliseconds + ); +# 45 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\utilapiset.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\utilapiset.h" 3 +__declspec(dllimport) + +PVOID +__stdcall +EncodePointer( + PVOID Ptr + ); + +__declspec(dllimport) + +PVOID +__stdcall +DecodePointer( + PVOID Ptr + ); + +__declspec(dllimport) + +PVOID +__stdcall +EncodeSystemPointer( + PVOID Ptr + ); + +__declspec(dllimport) + +PVOID +__stdcall +DecodeSystemPointer( + PVOID Ptr + ); + + + + + + + +__declspec(dllimport) +HRESULT +__stdcall +EncodeRemotePointer( + HANDLE ProcessHandle, + PVOID Ptr, + PVOID* EncodedPtr + ); + +__declspec(dllimport) +HRESULT +__stdcall +DecodeRemotePointer( + HANDLE ProcessHandle, + PVOID Ptr, + PVOID* DecodedPtr + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +Beep( + DWORD dwFreq, + DWORD dwDuration + ); +# 46 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\handleapi.h" 1 3 +# 36 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\handleapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CloseHandle( + HANDLE hObject + ); + +__declspec(dllimport) +BOOL +__stdcall +DuplicateHandle( + HANDLE hSourceProcessHandle, + HANDLE hSourceHandle, + HANDLE hTargetProcessHandle, + LPHANDLE lpTargetHandle, + DWORD dwDesiredAccess, + BOOL bInheritHandle, + DWORD dwOptions + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CompareObjectHandles( + HANDLE hFirstObjectHandle, + HANDLE hSecondObjectHandle + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetHandleInformation( + HANDLE hObject, + LPDWORD lpdwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +SetHandleInformation( + HANDLE hObject, + DWORD dwMask, + DWORD dwFlags + ); +# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\errhandlingapi.h" 1 3 +# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\errhandlingapi.h" 3 +typedef LONG (__stdcall *PTOP_LEVEL_EXCEPTION_FILTER)( + struct _EXCEPTION_POINTERS *ExceptionInfo + ); + +typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER; + + + + + +__declspec(dllimport) +void +__stdcall +RaiseException( + DWORD dwExceptionCode, + DWORD dwExceptionFlags, + DWORD nNumberOfArguments, + const ULONG_PTR* lpArguments + ); +# 58 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\errhandlingapi.h" 3 +__declspec(dllimport) +LONG +__stdcall +UnhandledExceptionFilter( + struct _EXCEPTION_POINTERS* ExceptionInfo + ); + + + + + + + +__declspec(dllimport) +LPTOP_LEVEL_EXCEPTION_FILTER +__stdcall +SetUnhandledExceptionFilter( + LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelExceptionFilter + ); + + + +__declspec(dllimport) + + +DWORD +__stdcall +GetLastError( + void + ); + + + +__declspec(dllimport) +void +__stdcall +SetLastError( + DWORD dwErrCode + ); +# 106 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\errhandlingapi.h" 3 +__declspec(dllimport) +UINT +__stdcall +GetErrorMode( + void + ); + + + +__declspec(dllimport) +UINT +__stdcall +SetErrorMode( + UINT uMode + ); +# 130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\errhandlingapi.h" 3 +__declspec(dllimport) + +PVOID +__stdcall +AddVectoredExceptionHandler( + ULONG First, + PVECTORED_EXCEPTION_HANDLER Handler + ); + +__declspec(dllimport) +ULONG +__stdcall +RemoveVectoredExceptionHandler( + PVOID Handle + ); + +__declspec(dllimport) + +PVOID +__stdcall +AddVectoredContinueHandler( + ULONG First, + PVECTORED_EXCEPTION_HANDLER Handler + ); + +__declspec(dllimport) +ULONG +__stdcall +RemoveVectoredContinueHandler( + PVOID Handle + ); +# 190 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\errhandlingapi.h" 3 +__declspec(dllimport) +void +__stdcall +RaiseFailFastException( + PEXCEPTION_RECORD pExceptionRecord, + PCONTEXT pContextRecord, + DWORD dwFlags + ); + + + + + + + +__declspec(dllimport) +void +__stdcall +FatalAppExitA( + UINT uAction, + LPCSTR lpMessageText + ); + +__declspec(dllimport) +void +__stdcall +FatalAppExitW( + UINT uAction, + LPCWSTR lpMessageText + ); +# 232 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\errhandlingapi.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetThreadErrorMode( + void + ); + +__declspec(dllimport) +BOOL +__stdcall +SetThreadErrorMode( + DWORD dwNewMode, + LPDWORD lpOldMode + ); + + + + + + + +__declspec(dllimport) +void +__stdcall +TerminateProcessOnMemoryExhaustion( + SIZE_T FailedAllocationSize + ); +# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fibersapi.h" 1 3 +# 33 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fibersapi.h" 3 +__declspec(dllimport) +DWORD +__stdcall +FlsAlloc( + PFLS_CALLBACK_FUNCTION lpCallback + ); + +__declspec(dllimport) +PVOID +__stdcall +FlsGetValue( + DWORD dwFlsIndex + ); + +__declspec(dllimport) +BOOL +__stdcall +FlsSetValue( + DWORD dwFlsIndex, + PVOID lpFlsData + ); + +__declspec(dllimport) +BOOL +__stdcall +FlsFree( + DWORD dwFlsIndex + ); +# 72 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fibersapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsThreadAFiber( + void + ); +# 49 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\namedpipeapi.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\namedpipeapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CreatePipe( + PHANDLE hReadPipe, + PHANDLE hWritePipe, + LPSECURITY_ATTRIBUTES lpPipeAttributes, + DWORD nSize + ); + +__declspec(dllimport) +BOOL +__stdcall +ConnectNamedPipe( + HANDLE hNamedPipe, + LPOVERLAPPED lpOverlapped + ); + +__declspec(dllimport) +BOOL +__stdcall +DisconnectNamedPipe( + HANDLE hNamedPipe + ); + +__declspec(dllimport) +BOOL +__stdcall +SetNamedPipeHandleState( + HANDLE hNamedPipe, + LPDWORD lpMode, + LPDWORD lpMaxCollectionCount, + LPDWORD lpCollectDataTimeout + ); + +__declspec(dllimport) +BOOL +__stdcall +PeekNamedPipe( + HANDLE hNamedPipe, + LPVOID lpBuffer, + DWORD nBufferSize, + LPDWORD lpBytesRead, + LPDWORD lpTotalBytesAvail, + LPDWORD lpBytesLeftThisMessage + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +TransactNamedPipe( + HANDLE hNamedPipe, + LPVOID lpInBuffer, + DWORD nInBufferSize, + LPVOID lpOutBuffer, + DWORD nOutBufferSize, + LPDWORD lpBytesRead, + LPOVERLAPPED lpOverlapped + ); + + + + + +__declspec(dllimport) +HANDLE +__stdcall +CreateNamedPipeW( + LPCWSTR lpName, + DWORD dwOpenMode, + DWORD dwPipeMode, + DWORD nMaxInstances, + DWORD nOutBufferSize, + DWORD nInBufferSize, + DWORD nDefaultTimeOut, + LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +WaitNamedPipeW( + LPCWSTR lpNamedPipeName, + DWORD nTimeOut + ); +# 131 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\namedpipeapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetNamedPipeClientComputerNameW( + HANDLE Pipe, + LPWSTR ClientComputerName, + ULONG ClientComputerNameLength + ); + + + + + + + +__declspec(dllimport) + +BOOL +__stdcall +ImpersonateNamedPipeClient( + HANDLE hNamedPipe + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetNamedPipeInfo( + HANDLE hNamedPipe, + LPDWORD lpFlags, + LPDWORD lpOutBufferSize, + LPDWORD lpInBufferSize, + LPDWORD lpMaxInstances + ); + +__declspec(dllimport) +BOOL +__stdcall +GetNamedPipeHandleStateW( + HANDLE hNamedPipe, + LPDWORD lpState, + LPDWORD lpCurInstances, + LPDWORD lpMaxCollectionCount, + LPDWORD lpCollectDataTimeout, + LPWSTR lpUserName, + DWORD nMaxUserNameSize + ); +# 192 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\namedpipeapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CallNamedPipeW( + LPCWSTR lpNamedPipeName, + LPVOID lpInBuffer, + DWORD nInBufferSize, + LPVOID lpOutBuffer, + DWORD nOutBufferSize, + LPDWORD lpBytesRead, + DWORD nTimeOut + ); +# 50 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\profileapi.h" 1 3 +# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\profileapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +QueryPerformanceCounter( + LARGE_INTEGER* lpPerformanceCount + ); + +__declspec(dllimport) +BOOL +__stdcall +QueryPerformanceFrequency( + LARGE_INTEGER* lpFrequency + ); +# 51 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\heapapi.h" 1 3 +# 32 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\heapapi.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) +# 43 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\heapapi.h" 3 +typedef struct _HEAP_SUMMARY { + DWORD cb; + SIZE_T cbAllocated; + SIZE_T cbCommitted; + SIZE_T cbReserved; + SIZE_T cbMaxReserve; +} HEAP_SUMMARY, *PHEAP_SUMMARY; +typedef PHEAP_SUMMARY LPHEAP_SUMMARY; + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +HeapCreate( + DWORD flOptions, + SIZE_T dwInitialSize, + SIZE_T dwMaximumSize + ); + +__declspec(dllimport) +BOOL +__stdcall +HeapDestroy( + HANDLE hHeap + ); + +__declspec(dllimport) + + +__declspec(allocator) +LPVOID +__stdcall +HeapAlloc( + HANDLE hHeap, + DWORD dwFlags, + SIZE_T dwBytes + ); + +__declspec(dllimport) + + + +__declspec(allocator) +LPVOID +__stdcall +HeapReAlloc( + HANDLE hHeap, + DWORD dwFlags, + LPVOID lpMem, + SIZE_T dwBytes + ); + +__declspec(dllimport) + +BOOL +__stdcall +HeapFree( + HANDLE hHeap, + DWORD dwFlags, + LPVOID lpMem + ); + +__declspec(dllimport) +SIZE_T +__stdcall +HeapSize( + HANDLE hHeap, + DWORD dwFlags, + LPCVOID lpMem + ); + +__declspec(dllimport) +HANDLE +__stdcall +GetProcessHeap( + void + ); + +__declspec(dllimport) +SIZE_T +__stdcall +HeapCompact( + HANDLE hHeap, + DWORD dwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +HeapSetInformation( + HANDLE HeapHandle, + HEAP_INFORMATION_CLASS HeapInformationClass, + PVOID HeapInformation, + SIZE_T HeapInformationLength + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +HeapValidate( + HANDLE hHeap, + DWORD dwFlags, + LPCVOID lpMem + ); + + + + + + + +BOOL +__stdcall +HeapSummary( + HANDLE hHeap, + DWORD dwFlags, + LPHEAP_SUMMARY lpSummary + ); + + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetProcessHeaps( + DWORD NumberOfHeaps, + PHANDLE ProcessHeaps + ); + +__declspec(dllimport) +BOOL +__stdcall +HeapLock( + HANDLE hHeap + ); + +__declspec(dllimport) +BOOL +__stdcall +HeapUnlock( + HANDLE hHeap + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +HeapWalk( + HANDLE hHeap, + LPPROCESS_HEAP_ENTRY lpEntry + ); + +__declspec(dllimport) +BOOL +__stdcall +HeapQueryInformation( + HANDLE HeapHandle, + HEAP_INFORMATION_CLASS HeapInformationClass, + PVOID HeapInformation, + SIZE_T HeapInformationLength, + PSIZE_T ReturnLength + ); +# 233 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\heapapi.h" 3 +#pragma warning(pop) +# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ioapiset.h" 1 3 +# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ioapiset.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +CreateIoCompletionPort( + HANDLE FileHandle, + HANDLE ExistingCompletionPort, + ULONG_PTR CompletionKey, + DWORD NumberOfConcurrentThreads + ); + +__declspec(dllimport) +BOOL +__stdcall +GetQueuedCompletionStatus( + HANDLE CompletionPort, + LPDWORD lpNumberOfBytesTransferred, + PULONG_PTR lpCompletionKey, + LPOVERLAPPED* lpOverlapped, + DWORD dwMilliseconds + ); + + + +__declspec(dllimport) +BOOL +__stdcall +GetQueuedCompletionStatusEx( + HANDLE CompletionPort, + LPOVERLAPPED_ENTRY lpCompletionPortEntries, + ULONG ulCount, + PULONG ulNumEntriesRemoved, + DWORD dwMilliseconds, + BOOL fAlertable + ); + + + +__declspec(dllimport) +BOOL +__stdcall +PostQueuedCompletionStatus( + HANDLE CompletionPort, + DWORD dwNumberOfBytesTransferred, + ULONG_PTR dwCompletionKey, + LPOVERLAPPED lpOverlapped + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +DeviceIoControl( + HANDLE hDevice, + DWORD dwIoControlCode, + LPVOID lpInBuffer, + DWORD nInBufferSize, + LPVOID lpOutBuffer, + DWORD nOutBufferSize, + LPDWORD lpBytesReturned, + LPOVERLAPPED lpOverlapped + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetOverlappedResult( + HANDLE hFile, + LPOVERLAPPED lpOverlapped, + LPDWORD lpNumberOfBytesTransferred, + BOOL bWait + ); + + + +__declspec(dllimport) +BOOL +__stdcall +CancelIoEx( + HANDLE hFile, + LPOVERLAPPED lpOverlapped + ); +# 130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ioapiset.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CancelIo( + HANDLE hFile + ); + +__declspec(dllimport) +BOOL +__stdcall +GetOverlappedResultEx( + HANDLE hFile, + LPOVERLAPPED lpOverlapped, + LPDWORD lpNumberOfBytesTransferred, + DWORD dwMilliseconds, + BOOL bAlertable + ); +# 156 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ioapiset.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CancelSynchronousIo( + HANDLE hThread + ); +# 53 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 1 3 +# 34 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 +typedef RTL_SRWLOCK SRWLOCK, *PSRWLOCK; + + + +__declspec(dllimport) +void +__stdcall +InitializeSRWLock( + PSRWLOCK SRWLock + ); + +__declspec(dllimport) + +void +__stdcall +ReleaseSRWLockExclusive( + PSRWLOCK SRWLock + ); + +__declspec(dllimport) + +void +__stdcall +ReleaseSRWLockShared( + PSRWLOCK SRWLock + ); + +__declspec(dllimport) + +void +__stdcall +AcquireSRWLockExclusive( + PSRWLOCK SRWLock + ); + +__declspec(dllimport) + +void +__stdcall +AcquireSRWLockShared( + PSRWLOCK SRWLock + ); + +__declspec(dllimport) + +BOOLEAN +__stdcall +TryAcquireSRWLockExclusive( + PSRWLOCK SRWLock + ); + +__declspec(dllimport) + +BOOLEAN +__stdcall +TryAcquireSRWLockShared( + PSRWLOCK SRWLock + ); +# 107 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 +__declspec(dllimport) +void +__stdcall +InitializeCriticalSection( + LPCRITICAL_SECTION lpCriticalSection + ); + + + +__declspec(dllimport) +void +__stdcall +EnterCriticalSection( + LPCRITICAL_SECTION lpCriticalSection + ); + +__declspec(dllimport) +void +__stdcall +LeaveCriticalSection( + LPCRITICAL_SECTION lpCriticalSection + ); + +__declspec(dllimport) + +BOOL +__stdcall +InitializeCriticalSectionAndSpinCount( + LPCRITICAL_SECTION lpCriticalSection, + DWORD dwSpinCount + ); + + + +__declspec(dllimport) +BOOL +__stdcall +InitializeCriticalSectionEx( + LPCRITICAL_SECTION lpCriticalSection, + DWORD dwSpinCount, + DWORD Flags + ); + + + +__declspec(dllimport) +DWORD +__stdcall +SetCriticalSectionSpinCount( + LPCRITICAL_SECTION lpCriticalSection, + DWORD dwSpinCount + ); + + + +__declspec(dllimport) +BOOL +__stdcall +TryEnterCriticalSection( + LPCRITICAL_SECTION lpCriticalSection + ); + + + +__declspec(dllimport) +void +__stdcall +DeleteCriticalSection( + LPCRITICAL_SECTION lpCriticalSection + ); + + + + + +typedef RTL_RUN_ONCE INIT_ONCE; +typedef PRTL_RUN_ONCE PINIT_ONCE; +typedef PRTL_RUN_ONCE LPINIT_ONCE; +# 203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 +typedef +BOOL +(__stdcall *PINIT_ONCE_FN) ( + PINIT_ONCE InitOnce, + PVOID Parameter, + PVOID *Context + ); + + + +__declspec(dllimport) +void +__stdcall +InitOnceInitialize( + PINIT_ONCE InitOnce + ); + +__declspec(dllimport) +BOOL +__stdcall +InitOnceExecuteOnce( + PINIT_ONCE InitOnce, + PINIT_ONCE_FN InitFn, + PVOID Parameter, + LPVOID* Context + ); + +__declspec(dllimport) +BOOL +__stdcall +InitOnceBeginInitialize( + LPINIT_ONCE lpInitOnce, + DWORD dwFlags, + PBOOL fPending, + LPVOID* lpContext + ); + +__declspec(dllimport) +BOOL +__stdcall +InitOnceComplete( + LPINIT_ONCE lpInitOnce, + DWORD dwFlags, + LPVOID lpContext + ); + + + + + + + +typedef RTL_CONDITION_VARIABLE CONDITION_VARIABLE, *PCONDITION_VARIABLE; +# 271 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 +__declspec(dllimport) +void +__stdcall +InitializeConditionVariable( + PCONDITION_VARIABLE ConditionVariable + ); + +__declspec(dllimport) +void +__stdcall +WakeConditionVariable( + PCONDITION_VARIABLE ConditionVariable + ); + +__declspec(dllimport) +void +__stdcall +WakeAllConditionVariable( + PCONDITION_VARIABLE ConditionVariable + ); + +__declspec(dllimport) +BOOL +__stdcall +SleepConditionVariableCS( + PCONDITION_VARIABLE ConditionVariable, + PCRITICAL_SECTION CriticalSection, + DWORD dwMilliseconds + ); + +__declspec(dllimport) +BOOL +__stdcall +SleepConditionVariableSRW( + PCONDITION_VARIABLE ConditionVariable, + PSRWLOCK SRWLock, + DWORD dwMilliseconds, + ULONG Flags + ); + + + +__declspec(dllimport) +BOOL +__stdcall +SetEvent( + HANDLE hEvent + ); + +__declspec(dllimport) +BOOL +__stdcall +ResetEvent( + HANDLE hEvent + ); + +__declspec(dllimport) +BOOL +__stdcall +ReleaseSemaphore( + HANDLE hSemaphore, + LONG lReleaseCount, + LPLONG lpPreviousCount + ); + +__declspec(dllimport) +BOOL +__stdcall +ReleaseMutex( + HANDLE hMutex + ); + +__declspec(dllimport) +DWORD +__stdcall +WaitForSingleObject( + HANDLE hHandle, + DWORD dwMilliseconds + ); + +__declspec(dllimport) +DWORD +__stdcall +SleepEx( + DWORD dwMilliseconds, + BOOL bAlertable + ); + +__declspec(dllimport) +DWORD +__stdcall +WaitForSingleObjectEx( + HANDLE hHandle, + DWORD dwMilliseconds, + BOOL bAlertable + ); + +__declspec(dllimport) +DWORD +__stdcall +WaitForMultipleObjectsEx( + DWORD nCount, + const HANDLE* lpHandles, + BOOL bWaitAll, + DWORD dwMilliseconds, + BOOL bAlertable + ); +# 386 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +CreateMutexA( + LPSECURITY_ATTRIBUTES lpMutexAttributes, + BOOL bInitialOwner, + LPCSTR lpName + ); + +__declspec(dllimport) + +HANDLE +__stdcall +CreateMutexW( + LPSECURITY_ATTRIBUTES lpMutexAttributes, + BOOL bInitialOwner, + LPCWSTR lpName + ); + + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +OpenMutexW( + DWORD dwDesiredAccess, + BOOL bInheritHandle, + LPCWSTR lpName + ); + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +CreateEventA( + LPSECURITY_ATTRIBUTES lpEventAttributes, + BOOL bManualReset, + BOOL bInitialState, + LPCSTR lpName + ); + +__declspec(dllimport) + +HANDLE +__stdcall +CreateEventW( + LPSECURITY_ATTRIBUTES lpEventAttributes, + BOOL bManualReset, + BOOL bInitialState, + LPCWSTR lpName + ); + + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +OpenEventA( + DWORD dwDesiredAccess, + BOOL bInheritHandle, + LPCSTR lpName + ); + +__declspec(dllimport) + +HANDLE +__stdcall +OpenEventW( + DWORD dwDesiredAccess, + BOOL bInheritHandle, + LPCWSTR lpName + ); + + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +OpenSemaphoreW( + DWORD dwDesiredAccess, + BOOL bInheritHandle, + LPCWSTR lpName + ); + + + + + + + +typedef +void +(__stdcall *PTIMERAPCROUTINE)( + LPVOID lpArgToCompletionRoutine, + DWORD dwTimerLowValue, + DWORD dwTimerHighValue + ); + +__declspec(dllimport) + +HANDLE +__stdcall +OpenWaitableTimerW( + DWORD dwDesiredAccess, + BOOL bInheritHandle, + LPCWSTR lpTimerName + ); + + + + + + + +BOOL +__stdcall +SetWaitableTimerEx( + HANDLE hTimer, + const LARGE_INTEGER* lpDueTime, + LONG lPeriod, + PTIMERAPCROUTINE pfnCompletionRoutine, + LPVOID lpArgToCompletionRoutine, + PREASON_CONTEXT WakeContext, + ULONG TolerableDelay + ); + + + +__declspec(dllimport) +BOOL +__stdcall +SetWaitableTimer( + HANDLE hTimer, + const LARGE_INTEGER* lpDueTime, + LONG lPeriod, + PTIMERAPCROUTINE pfnCompletionRoutine, + LPVOID lpArgToCompletionRoutine, + BOOL fResume + ); + +__declspec(dllimport) +BOOL +__stdcall +CancelWaitableTimer( + HANDLE hTimer + ); + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +CreateMutexExA( + LPSECURITY_ATTRIBUTES lpMutexAttributes, + LPCSTR lpName, + DWORD dwFlags, + DWORD dwDesiredAccess + ); + +__declspec(dllimport) + +HANDLE +__stdcall +CreateMutexExW( + LPSECURITY_ATTRIBUTES lpMutexAttributes, + LPCWSTR lpName, + DWORD dwFlags, + DWORD dwDesiredAccess + ); +# 584 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +CreateEventExA( + LPSECURITY_ATTRIBUTES lpEventAttributes, + LPCSTR lpName, + DWORD dwFlags, + DWORD dwDesiredAccess + ); + +__declspec(dllimport) + +HANDLE +__stdcall +CreateEventExW( + LPSECURITY_ATTRIBUTES lpEventAttributes, + LPCWSTR lpName, + DWORD dwFlags, + DWORD dwDesiredAccess + ); + + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +CreateSemaphoreExW( + LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, + LONG lInitialCount, + LONG lMaximumCount, + LPCWSTR lpName, + DWORD dwFlags, + DWORD dwDesiredAccess + ); +# 633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +CreateWaitableTimerExW( + LPSECURITY_ATTRIBUTES lpTimerAttributes, + LPCWSTR lpTimerName, + DWORD dwFlags, + DWORD dwDesiredAccess + ); +# 652 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 +typedef RTL_BARRIER SYNCHRONIZATION_BARRIER; +typedef PRTL_BARRIER PSYNCHRONIZATION_BARRIER; +typedef PRTL_BARRIER LPSYNCHRONIZATION_BARRIER; + + + + + +BOOL +__stdcall +EnterSynchronizationBarrier( + LPSYNCHRONIZATION_BARRIER lpBarrier, + DWORD dwFlags + ); + +BOOL +__stdcall +InitializeSynchronizationBarrier( + LPSYNCHRONIZATION_BARRIER lpBarrier, + LONG lTotalThreads, + LONG lSpinCount + ); + +BOOL +__stdcall +DeleteSynchronizationBarrier( + LPSYNCHRONIZATION_BARRIER lpBarrier + ); + +__declspec(dllimport) +void +__stdcall +Sleep( + DWORD dwMilliseconds + ); + +BOOL +__stdcall +WaitOnAddress( + volatile void* Address, + PVOID CompareAddress, + SIZE_T AddressSize, + DWORD dwMilliseconds + ); + +void +__stdcall +WakeByAddressSingle( + PVOID Address + ); + +void +__stdcall +WakeByAddressAll( + PVOID Address + ); +# 717 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 +__declspec(dllimport) +DWORD +__stdcall +SignalObjectAndWait( + HANDLE hObjectToSignal, + HANDLE hObjectToWaitOn, + DWORD dwMilliseconds, + BOOL bAlertable + ); +# 735 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 +__declspec(dllimport) +DWORD +__stdcall +WaitForMultipleObjects( + DWORD nCount, + const HANDLE* lpHandles, + BOOL bWaitAll, + DWORD dwMilliseconds + ); + +__declspec(dllimport) +HANDLE +__stdcall +CreateSemaphoreW( + LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, + LONG lInitialCount, + LONG lMaximumCount, + LPCWSTR lpName + ); + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +CreateWaitableTimerW( + LPSECURITY_ATTRIBUTES lpTimerAttributes, + BOOL bManualReset, + LPCWSTR lpTimerName + ); +# 54 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\interlockedapi.h" 1 3 +# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\interlockedapi.h" 3 +__declspec(dllimport) +void +__stdcall +InitializeSListHead( + PSLIST_HEADER ListHead + ); + +__declspec(dllimport) +PSLIST_ENTRY +__stdcall +InterlockedPopEntrySList( + PSLIST_HEADER ListHead + ); + +__declspec(dllimport) +PSLIST_ENTRY +__stdcall +InterlockedPushEntrySList( + PSLIST_HEADER ListHead, + PSLIST_ENTRY ListEntry + ); + + + + + +__declspec(dllimport) +PSLIST_ENTRY +__stdcall +InterlockedPushListSListEx( + PSLIST_HEADER ListHead, + PSLIST_ENTRY List, + PSLIST_ENTRY ListEnd, + ULONG Count + ); + + + +__declspec(dllimport) +PSLIST_ENTRY +__stdcall +InterlockedFlushSList( + PSLIST_HEADER ListHead + ); + +__declspec(dllimport) +USHORT +__stdcall +QueryDepthSList( + PSLIST_HEADER ListHead + ); +# 55 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 1 3 +# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +typedef struct _PROCESS_INFORMATION { + HANDLE hProcess; + HANDLE hThread; + DWORD dwProcessId; + DWORD dwThreadId; +} PROCESS_INFORMATION, *PPROCESS_INFORMATION, *LPPROCESS_INFORMATION; + +typedef struct _STARTUPINFOA { + DWORD cb; + LPSTR lpReserved; + LPSTR lpDesktop; + LPSTR lpTitle; + DWORD dwX; + DWORD dwY; + DWORD dwXSize; + DWORD dwYSize; + DWORD dwXCountChars; + DWORD dwYCountChars; + DWORD dwFillAttribute; + DWORD dwFlags; + WORD wShowWindow; + WORD cbReserved2; + LPBYTE lpReserved2; + HANDLE hStdInput; + HANDLE hStdOutput; + HANDLE hStdError; +} STARTUPINFOA, *LPSTARTUPINFOA; +typedef struct _STARTUPINFOW { + DWORD cb; + LPWSTR lpReserved; + LPWSTR lpDesktop; + LPWSTR lpTitle; + DWORD dwX; + DWORD dwY; + DWORD dwXSize; + DWORD dwYSize; + DWORD dwXCountChars; + DWORD dwYCountChars; + DWORD dwFillAttribute; + DWORD dwFlags; + WORD wShowWindow; + WORD cbReserved2; + LPBYTE lpReserved2; + HANDLE hStdInput; + HANDLE hStdOutput; + HANDLE hStdError; +} STARTUPINFOW, *LPSTARTUPINFOW; + + + + +typedef STARTUPINFOA STARTUPINFO; +typedef LPSTARTUPINFOA LPSTARTUPINFO; +# 91 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +DWORD +__stdcall +QueueUserAPC( + PAPCFUNC pfnAPC, + HANDLE hThread, + ULONG_PTR dwData + ); + + + + + +typedef enum _QUEUE_USER_APC_FLAGS { + QUEUE_USER_APC_FLAGS_NONE = 0x00000000, + QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC = 0x00000001, + + + + + + QUEUE_USER_APC_CALLBACK_DATA_CONTEXT = 0x00010000, +} QUEUE_USER_APC_FLAGS; + +typedef struct _APC_CALLBACK_DATA { + ULONG_PTR Parameter; + PCONTEXT ContextRecord; + ULONG_PTR Reserved0; + ULONG_PTR Reserved1; +} APC_CALLBACK_DATA, *PAPC_CALLBACK_DATA; + +__declspec(dllimport) +BOOL +__stdcall +QueueUserAPC2( + PAPCFUNC ApcRoutine, + HANDLE Thread, + ULONG_PTR Data, + QUEUE_USER_APC_FLAGS Flags + ); + + + +__declspec(dllimport) +BOOL +__stdcall +GetProcessTimes( + HANDLE hProcess, + LPFILETIME lpCreationTime, + LPFILETIME lpExitTime, + LPFILETIME lpKernelTime, + LPFILETIME lpUserTime + ); + +__declspec(dllimport) +HANDLE +__stdcall +GetCurrentProcess( + void + ); + +__declspec(dllimport) +DWORD +__stdcall +GetCurrentProcessId( + void + ); + +__declspec(dllimport) +__declspec(noreturn) +void +__stdcall +ExitProcess( + UINT uExitCode + ); + +__declspec(dllimport) +BOOL +__stdcall +TerminateProcess( + HANDLE hProcess, + UINT uExitCode + ); + +__declspec(dllimport) +BOOL +__stdcall +GetExitCodeProcess( + HANDLE hProcess, + LPDWORD lpExitCode + ); + +__declspec(dllimport) +BOOL +__stdcall +SwitchToThread( + void + ); + +__declspec(dllimport) + +HANDLE +__stdcall +CreateThread( + LPSECURITY_ATTRIBUTES lpThreadAttributes, + SIZE_T dwStackSize, + LPTHREAD_START_ROUTINE lpStartAddress, + LPVOID lpParameter, + DWORD dwCreationFlags, + LPDWORD lpThreadId + ); + + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +CreateRemoteThread( + HANDLE hProcess, + LPSECURITY_ATTRIBUTES lpThreadAttributes, + SIZE_T dwStackSize, + LPTHREAD_START_ROUTINE lpStartAddress, + LPVOID lpParameter, + DWORD dwCreationFlags, + LPDWORD lpThreadId + ); + + + + + + + +__declspec(dllimport) +HANDLE +__stdcall +GetCurrentThread( + void + ); + +__declspec(dllimport) +DWORD +__stdcall +GetCurrentThreadId( + void + ); + +__declspec(dllimport) + +HANDLE +__stdcall +OpenThread( + DWORD dwDesiredAccess, + BOOL bInheritHandle, + DWORD dwThreadId + ); + +__declspec(dllimport) +BOOL +__stdcall +SetThreadPriority( + HANDLE hThread, + int nPriority + ); + +__declspec(dllimport) +BOOL +__stdcall +SetThreadPriorityBoost( + HANDLE hThread, + BOOL bDisablePriorityBoost + ); + +__declspec(dllimport) +BOOL +__stdcall +GetThreadPriorityBoost( + HANDLE hThread, + PBOOL pDisablePriorityBoost + ); + +__declspec(dllimport) +int +__stdcall +GetThreadPriority( + HANDLE hThread + ); + +__declspec(dllimport) +__declspec(noreturn) +void +__stdcall +ExitThread( + DWORD dwExitCode + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +TerminateThread( + HANDLE hThread, + DWORD dwExitCode + ); + + + + + + +__declspec(dllimport) + +BOOL +__stdcall +GetExitCodeThread( + HANDLE hThread, + LPDWORD lpExitCode + ); + +__declspec(dllimport) +DWORD +__stdcall +SuspendThread( + HANDLE hThread + ); + +__declspec(dllimport) +DWORD +__stdcall +ResumeThread( + HANDLE hThread + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +TlsAlloc( + void + ); + +__declspec(dllimport) +LPVOID +__stdcall +TlsGetValue( + DWORD dwTlsIndex + ); + +__declspec(dllimport) +BOOL +__stdcall +TlsSetValue( + DWORD dwTlsIndex, + LPVOID lpTlsValue + ); + +__declspec(dllimport) +BOOL +__stdcall +TlsFree( + DWORD dwTlsIndex + ); + +__declspec(dllimport) +BOOL +__stdcall +CreateProcessA( + LPCSTR lpApplicationName, + LPSTR lpCommandLine, + LPSECURITY_ATTRIBUTES lpProcessAttributes, + LPSECURITY_ATTRIBUTES lpThreadAttributes, + BOOL bInheritHandles, + DWORD dwCreationFlags, + LPVOID lpEnvironment, + LPCSTR lpCurrentDirectory, + LPSTARTUPINFOA lpStartupInfo, + LPPROCESS_INFORMATION lpProcessInformation + ); + +__declspec(dllimport) +BOOL +__stdcall +CreateProcessW( + LPCWSTR lpApplicationName, + LPWSTR lpCommandLine, + LPSECURITY_ATTRIBUTES lpProcessAttributes, + LPSECURITY_ATTRIBUTES lpThreadAttributes, + BOOL bInheritHandles, + DWORD dwCreationFlags, + LPVOID lpEnvironment, + LPCWSTR lpCurrentDirectory, + LPSTARTUPINFOW lpStartupInfo, + LPPROCESS_INFORMATION lpProcessInformation + ); +# 409 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetProcessShutdownParameters( + DWORD dwLevel, + DWORD dwFlags + ); + +__declspec(dllimport) +DWORD +__stdcall +GetProcessVersion( + DWORD ProcessId + ); + + + + + + + +__declspec(dllimport) +void +__stdcall +GetStartupInfoW( + LPSTARTUPINFOW lpStartupInfo + ); +# 446 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CreateProcessAsUserW( + HANDLE hToken, + LPCWSTR lpApplicationName, + LPWSTR lpCommandLine, + LPSECURITY_ATTRIBUTES lpProcessAttributes, + LPSECURITY_ATTRIBUTES lpThreadAttributes, + BOOL bInheritHandles, + DWORD dwCreationFlags, + LPVOID lpEnvironment, + LPCWSTR lpCurrentDirectory, + LPSTARTUPINFOW lpStartupInfo, + LPPROCESS_INFORMATION lpProcessInformation + ); +# 487 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__forceinline +HANDLE +GetCurrentProcessToken ( + void + ) +{ + return (HANDLE)(LONG_PTR) -4; +} + +__forceinline +HANDLE +GetCurrentThreadToken ( + void + ) +{ + return (HANDLE)(LONG_PTR) -5; +} + +__forceinline +HANDLE +GetCurrentThreadEffectiveToken ( + void + ) +{ + return (HANDLE)(LONG_PTR) -6; +} + + + + +__declspec(dllimport) + +BOOL +__stdcall +SetThreadToken( + PHANDLE Thread, + HANDLE Token + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +OpenProcessToken( + HANDLE ProcessHandle, + DWORD DesiredAccess, + PHANDLE TokenHandle + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +OpenThreadToken( + HANDLE ThreadHandle, + DWORD DesiredAccess, + BOOL OpenAsSelf, + PHANDLE TokenHandle + ); + +__declspec(dllimport) +BOOL +__stdcall +SetPriorityClass( + HANDLE hProcess, + DWORD dwPriorityClass + ); + +__declspec(dllimport) +DWORD +__stdcall +GetPriorityClass( + HANDLE hProcess + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetThreadStackGuarantee( + PULONG StackSizeInBytes + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +ProcessIdToSessionId( + DWORD dwProcessId, + DWORD* pSessionId + ); + + + + + + + +typedef struct _PROC_THREAD_ATTRIBUTE_LIST *PPROC_THREAD_ATTRIBUTE_LIST, *LPPROC_THREAD_ATTRIBUTE_LIST; +# 615 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetProcessId( + HANDLE Process + ); + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetThreadId( + HANDLE Thread + ); + + + + + +__declspec(dllimport) +void +__stdcall +FlushProcessWriteBuffers( + void + ); +# 654 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetProcessIdOfThread( + HANDLE Thread + ); + +__declspec(dllimport) + +BOOL +__stdcall +InitializeProcThreadAttributeList( + LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList, + DWORD dwAttributeCount, + DWORD dwFlags, + PSIZE_T lpSize + ); + +__declspec(dllimport) +void +__stdcall +DeleteProcThreadAttributeList( + LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList + ); + + + +__declspec(dllimport) +BOOL +__stdcall +UpdateProcThreadAttribute( + LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList, + DWORD dwFlags, + DWORD_PTR Attribute, + PVOID lpValue, + SIZE_T cbSize, + PVOID lpPreviousValue, + PSIZE_T lpReturnSize + ); + + + +__declspec(dllimport) +BOOL +__stdcall +SetProcessDynamicEHContinuationTargets( + HANDLE Process, + USHORT NumberOfTargets, + PPROCESS_DYNAMIC_EH_CONTINUATION_TARGET Targets + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetProcessDynamicEnforcedCetCompatibleRanges( + HANDLE Process, + USHORT NumberOfRanges, + PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE Ranges + ); +# 728 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetProcessAffinityUpdateMode( + HANDLE hProcess, + DWORD dwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +QueryProcessAffinityUpdateMode( + HANDLE hProcess, + LPDWORD lpdwFlags + ); +# 752 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +CreateRemoteThreadEx( + HANDLE hProcess, + LPSECURITY_ATTRIBUTES lpThreadAttributes, + SIZE_T dwStackSize, + LPTHREAD_START_ROUTINE lpStartAddress, + LPVOID lpParameter, + DWORD dwCreationFlags, + LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList, + LPDWORD lpThreadId + ); +# 777 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +void +__stdcall +GetCurrentThreadStackLimits( + PULONG_PTR LowLimit, + PULONG_PTR HighLimit + ); + + + +__declspec(dllimport) +BOOL +__stdcall +GetThreadContext( + HANDLE hThread, + LPCONTEXT lpContext + ); +# 803 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetProcessMitigationPolicy( + HANDLE hProcess, + PROCESS_MITIGATION_POLICY MitigationPolicy, + PVOID lpBuffer, + SIZE_T dwLength + ); +# 821 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetThreadContext( + HANDLE hThread, + const CONTEXT* lpContext + ); +# 837 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetProcessMitigationPolicy( + PROCESS_MITIGATION_POLICY MitigationPolicy, + PVOID lpBuffer, + SIZE_T dwLength + ); +# 856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +FlushInstructionCache( + HANDLE hProcess, + LPCVOID lpBaseAddress, + SIZE_T dwSize + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetThreadTimes( + HANDLE hThread, + LPFILETIME lpCreationTime, + LPFILETIME lpExitTime, + LPFILETIME lpKernelTime, + LPFILETIME lpUserTime + ); + +__declspec(dllimport) +HANDLE +__stdcall +OpenProcess( + DWORD dwDesiredAccess, + BOOL bInheritHandle, + DWORD dwProcessId + ); + +__declspec(dllimport) +BOOL +__stdcall +IsProcessorFeaturePresent( + DWORD ProcessorFeature + ); +# 906 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetProcessHandleCount( + HANDLE hProcess, + PDWORD pdwHandleCount + ); +# 924 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetCurrentProcessorNumber( + void + ); +# 941 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetThreadIdealProcessorEx( + HANDLE hThread, + PPROCESSOR_NUMBER lpIdealProcessor, + PPROCESSOR_NUMBER lpPreviousIdealProcessor + ); + +__declspec(dllimport) +BOOL +__stdcall +GetThreadIdealProcessorEx( + HANDLE hThread, + PPROCESSOR_NUMBER lpIdealProcessor + ); + +__declspec(dllimport) +void +__stdcall +GetCurrentProcessorNumberEx( + PPROCESSOR_NUMBER ProcNumber + ); +# 975 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetProcessPriorityBoost( + HANDLE hProcess, + PBOOL pDisablePriorityBoost + ); + +__declspec(dllimport) +BOOL +__stdcall +SetProcessPriorityBoost( + HANDLE hProcess, + BOOL bDisablePriorityBoost + ); +# 1001 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetThreadIOPendingFlag( + HANDLE hThread, + PBOOL lpIOIsPending + ); +# 1018 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetSystemTimes( + PFILETIME lpIdleTime, + PFILETIME lpKernelTime, + PFILETIME lpUserTime + ); +# 1038 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +typedef enum _THREAD_INFORMATION_CLASS { + ThreadMemoryPriority, + ThreadAbsoluteCpuPriority, + ThreadDynamicCodePolicy, + ThreadPowerThrottling, + ThreadInformationClassMax +} THREAD_INFORMATION_CLASS; + + + +typedef struct _MEMORY_PRIORITY_INFORMATION { + ULONG MemoryPriority; +} MEMORY_PRIORITY_INFORMATION, *PMEMORY_PRIORITY_INFORMATION; + +__declspec(dllimport) +BOOL +__stdcall +GetThreadInformation( + HANDLE hThread, + THREAD_INFORMATION_CLASS ThreadInformationClass, + LPVOID ThreadInformation, + DWORD ThreadInformationSize + ); + +__declspec(dllimport) +BOOL +__stdcall +SetThreadInformation( + HANDLE hThread, + THREAD_INFORMATION_CLASS ThreadInformationClass, + LPVOID ThreadInformation, + DWORD ThreadInformationSize + ); +# 1082 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +typedef struct _THREAD_POWER_THROTTLING_STATE { + ULONG Version; + ULONG ControlMask; + ULONG StateMask; +} THREAD_POWER_THROTTLING_STATE; +# 1098 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsProcessCritical( + HANDLE hProcess, + PBOOL Critical + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetProtectedPolicy( + LPCGUID PolicyGuid, + ULONG_PTR PolicyValue, + PULONG_PTR OldPolicyValue + ); + +__declspec(dllimport) +BOOL +__stdcall +QueryProtectedPolicy( + LPCGUID PolicyGuid, + PULONG_PTR PolicyValue + ); +# 1135 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +DWORD +__stdcall +SetThreadIdealProcessor( + HANDLE hThread, + DWORD dwIdealProcessor + ); + + + + + + + +typedef enum _PROCESS_INFORMATION_CLASS { + ProcessMemoryPriority, + ProcessMemoryExhaustionInfo, + ProcessAppMemoryInfo, + ProcessInPrivateInfo, + ProcessPowerThrottling, + ProcessReservedValue1, + ProcessTelemetryCoverageInfo, + ProcessProtectionLevelInfo, + ProcessLeapSecondInfo, + ProcessMachineTypeInfo, + ProcessInformationClassMax +} PROCESS_INFORMATION_CLASS; + +typedef struct _APP_MEMORY_INFORMATION { + ULONG64 AvailableCommit; + ULONG64 PrivateCommitUsage; + ULONG64 PeakPrivateCommitUsage; + ULONG64 TotalCommitUsage; +} APP_MEMORY_INFORMATION, *PAPP_MEMORY_INFORMATION; + +typedef enum _MACHINE_ATTRIBUTES { + UserEnabled = 0x00000001, + KernelEnabled = 0x00000002, + Wow64Container = 0x00000004 +} MACHINE_ATTRIBUTES; + + + ; + + +typedef struct _PROCESS_MACHINE_INFORMATION { + USHORT ProcessMachine; + USHORT Res0; + MACHINE_ATTRIBUTES MachineAttributes; +} PROCESS_MACHINE_INFORMATION; +# 1193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +typedef enum _PROCESS_MEMORY_EXHAUSTION_TYPE { + PMETypeFailFastOnCommitFailure, + PMETypeMax +} PROCESS_MEMORY_EXHAUSTION_TYPE, *PPROCESS_MEMORY_EXHAUSTION_TYPE; + + + + +typedef struct _PROCESS_MEMORY_EXHAUSTION_INFO { + USHORT Version; + USHORT Reserved; + PROCESS_MEMORY_EXHAUSTION_TYPE Type; + ULONG_PTR Value; +} PROCESS_MEMORY_EXHAUSTION_INFO, *PPROCESS_MEMORY_EXHAUSTION_INFO; +# 1216 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +typedef struct _PROCESS_POWER_THROTTLING_STATE { + ULONG Version; + ULONG ControlMask; + ULONG StateMask; +} PROCESS_POWER_THROTTLING_STATE, *PPROCESS_POWER_THROTTLING_STATE; + +typedef struct PROCESS_PROTECTION_LEVEL_INFORMATION { + DWORD ProtectionLevel; +} PROCESS_PROTECTION_LEVEL_INFORMATION; + + + + + +typedef struct _PROCESS_LEAP_SECOND_INFO { + ULONG Flags; + ULONG Reserved; +} PROCESS_LEAP_SECOND_INFO, *PPROCESS_LEAP_SECOND_INFO; + + + +__declspec(dllimport) +BOOL +__stdcall +SetProcessInformation( + HANDLE hProcess, + PROCESS_INFORMATION_CLASS ProcessInformationClass, + LPVOID ProcessInformation, + DWORD ProcessInformationSize + ); + +__declspec(dllimport) +BOOL +__stdcall +GetProcessInformation( + HANDLE hProcess, + PROCESS_INFORMATION_CLASS ProcessInformationClass, + LPVOID ProcessInformation, + DWORD ProcessInformationSize + ); + + + + + + +BOOL +__stdcall +GetSystemCpuSetInformation( + PSYSTEM_CPU_SET_INFORMATION Information, + ULONG BufferLength, + PULONG ReturnedLength, + HANDLE Process, + ULONG Flags + ); + + +BOOL +__stdcall +GetProcessDefaultCpuSets( + HANDLE Process, + PULONG CpuSetIds, + ULONG CpuSetIdCount, + PULONG RequiredIdCount + ); + + +BOOL +__stdcall +SetProcessDefaultCpuSets( + HANDLE Process, + const ULONG* CpuSetIds, + ULONG CpuSetIdCount + ); + + +BOOL +__stdcall +GetThreadSelectedCpuSets( + HANDLE Thread, + PULONG CpuSetIds, + ULONG CpuSetIdCount, + PULONG RequiredIdCount + ); + + +BOOL +__stdcall +SetThreadSelectedCpuSets( + HANDLE Thread, + const ULONG* CpuSetIds, + ULONG CpuSetIdCount + ); +# 1318 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CreateProcessAsUserA( + HANDLE hToken, + LPCSTR lpApplicationName, + LPSTR lpCommandLine, + LPSECURITY_ATTRIBUTES lpProcessAttributes, + LPSECURITY_ATTRIBUTES lpThreadAttributes, + BOOL bInheritHandles, + DWORD dwCreationFlags, + LPVOID lpEnvironment, + LPCSTR lpCurrentDirectory, + LPSTARTUPINFOA lpStartupInfo, + LPPROCESS_INFORMATION lpProcessInformation + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetProcessShutdownParameters( + LPDWORD lpdwLevel, + LPDWORD lpdwFlags + ); +# 1356 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +BOOL +__stdcall +GetProcessDefaultCpuSetMasks( + HANDLE Process, + PGROUP_AFFINITY CpuSetMasks, + USHORT CpuSetMaskCount, + PUSHORT RequiredMaskCount + ); + + +BOOL +__stdcall +SetProcessDefaultCpuSetMasks( + HANDLE Process, + PGROUP_AFFINITY CpuSetMasks, + USHORT CpuSetMaskCount + ); + + +BOOL +__stdcall +GetThreadSelectedCpuSetMasks( + HANDLE Thread, + PGROUP_AFFINITY CpuSetMasks, + USHORT CpuSetMaskCount, + PUSHORT RequiredMaskCount + ); + + +BOOL +__stdcall +SetThreadSelectedCpuSetMasks( + HANDLE Thread, + PGROUP_AFFINITY CpuSetMasks, + USHORT CpuSetMaskCount + ); +# 1402 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 +HRESULT +__stdcall +GetMachineTypeAttributes( + USHORT Machine, + MACHINE_ATTRIBUTES* MachineTypeAttributes + ); + + + + + +__declspec(dllimport) +HRESULT +__stdcall +SetThreadDescription( + HANDLE hThread, + PCWSTR lpThreadDescription + ); + +__declspec(dllimport) +HRESULT +__stdcall +GetThreadDescription( + HANDLE hThread, + PWSTR* ppszThreadDescription + ); +# 56 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 1 3 +# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +#pragma warning(disable: 4514) + +#pragma warning(disable: 4103) + + +#pragma warning(push) + +#pragma warning(disable: 4001) +#pragma warning(disable: 4201) +#pragma warning(disable: 4214) +# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +typedef struct _SYSTEM_INFO { + union { + DWORD dwOemId; + struct { + WORD wProcessorArchitecture; + WORD wReserved; + } ; + } ; + DWORD dwPageSize; + LPVOID lpMinimumApplicationAddress; + LPVOID lpMaximumApplicationAddress; + DWORD_PTR dwActiveProcessorMask; + DWORD dwNumberOfProcessors; + DWORD dwProcessorType; + DWORD dwAllocationGranularity; + WORD wProcessorLevel; + WORD wProcessorRevision; +} SYSTEM_INFO, *LPSYSTEM_INFO; + +typedef struct _MEMORYSTATUSEX { + DWORD dwLength; + DWORD dwMemoryLoad; + DWORDLONG ullTotalPhys; + DWORDLONG ullAvailPhys; + DWORDLONG ullTotalPageFile; + DWORDLONG ullAvailPageFile; + DWORDLONG ullTotalVirtual; + DWORDLONG ullAvailVirtual; + DWORDLONG ullAvailExtendedVirtual; +} MEMORYSTATUSEX, *LPMEMORYSTATUSEX; + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GlobalMemoryStatusEx( + LPMEMORYSTATUSEX lpBuffer + ); + +__declspec(dllimport) +void +__stdcall +GetSystemInfo( + LPSYSTEM_INFO lpSystemInfo + ); + +__declspec(dllimport) +void +__stdcall +GetSystemTime( + LPSYSTEMTIME lpSystemTime + ); + +__declspec(dllimport) +void +__stdcall +GetSystemTimeAsFileTime( + LPFILETIME lpSystemTimeAsFileTime + ); + +__declspec(dllimport) +void +__stdcall +GetLocalTime( + LPSYSTEMTIME lpSystemTime + ); + + + +__declspec(dllimport) +BOOL +__stdcall +IsUserCetAvailableInEnvironment( + DWORD UserCetEnvironment + ); +# 137 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetSystemLeapSecondInformation( + PBOOL Enabled, + PDWORD Flags + ); +# 153 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +__declspec(deprecated) + +__declspec(dllimport) + +DWORD +__stdcall +GetVersion( + void + ); + +__declspec(dllimport) +BOOL +__stdcall +SetLocalTime( + const SYSTEMTIME* lpSystemTime + ); +# 177 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetTickCount( + void + ); + + + +__declspec(dllimport) +ULONGLONG +__stdcall +GetTickCount64( + void + ); +# 201 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +GetSystemTimeAdjustment( + PDWORD lpTimeAdjustment, + PDWORD lpTimeIncrement, + PBOOL lpTimeAdjustmentDisabled + ); + + + + + + + +__declspec(dllimport) + +BOOL +__stdcall +GetSystemTimeAdjustmentPrecise( + PDWORD64 lpTimeAdjustment, + PDWORD64 lpTimeIncrement, + PBOOL lpTimeAdjustmentDisabled + ); + + + + + + + +__declspec(dllimport) + +UINT +__stdcall +GetSystemDirectoryA( + LPSTR lpBuffer, + UINT uSize + ); + +__declspec(dllimport) + +UINT +__stdcall +GetSystemDirectoryW( + LPWSTR lpBuffer, + UINT uSize + ); +# 262 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +__declspec(dllimport) + + +UINT +__stdcall +GetWindowsDirectoryA( + LPSTR lpBuffer, + UINT uSize + ); + +__declspec(dllimport) + + +UINT +__stdcall +GetWindowsDirectoryW( + LPWSTR lpBuffer, + UINT uSize + ); +# 293 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +__declspec(dllimport) + +UINT +__stdcall +GetSystemWindowsDirectoryA( + LPSTR lpBuffer, + UINT uSize + ); + +__declspec(dllimport) + +UINT +__stdcall +GetSystemWindowsDirectoryW( + LPWSTR lpBuffer, + UINT uSize + ); +# 322 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +typedef enum _COMPUTER_NAME_FORMAT { + ComputerNameNetBIOS, + ComputerNameDnsHostname, + ComputerNameDnsDomain, + ComputerNameDnsFullyQualified, + ComputerNamePhysicalNetBIOS, + ComputerNamePhysicalDnsHostname, + ComputerNamePhysicalDnsDomain, + ComputerNamePhysicalDnsFullyQualified, + ComputerNameMax +} COMPUTER_NAME_FORMAT ; + +__declspec(dllimport) + +BOOL +__stdcall +GetComputerNameExA( + COMPUTER_NAME_FORMAT NameType, + LPSTR lpBuffer, + LPDWORD nSize + ); + +__declspec(dllimport) + +BOOL +__stdcall +GetComputerNameExW( + COMPUTER_NAME_FORMAT NameType, + LPWSTR lpBuffer, + LPDWORD nSize + ); +# 365 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetComputerNameExW( + COMPUTER_NAME_FORMAT NameType, + LPCWSTR lpBuffer + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetSystemTime( + const SYSTEMTIME* lpSystemTime + ); + + + + + + + +__declspec(deprecated) + +__declspec(dllimport) + +BOOL +__stdcall +GetVersionExA( + LPOSVERSIONINFOA lpVersionInformation + ); +__declspec(deprecated) + +__declspec(dllimport) + +BOOL +__stdcall +GetVersionExW( + LPOSVERSIONINFOW lpVersionInformation + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetLogicalProcessorInformation( + PSYSTEM_LOGICAL_PROCESSOR_INFORMATION Buffer, + PDWORD ReturnedLength + ); + + + +__declspec(dllimport) +BOOL +__stdcall +GetLogicalProcessorInformationEx( + LOGICAL_PROCESSOR_RELATIONSHIP RelationshipType, + PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX Buffer, + PDWORD ReturnedLength + ); + + + + + +__declspec(dllimport) +void +__stdcall +GetNativeSystemInfo( + LPSYSTEM_INFO lpSystemInfo + ); + + + + + +__declspec(dllimport) +void +__stdcall +GetSystemTimePreciseAsFileTime( + LPFILETIME lpSystemTimeAsFileTime + ); +# 465 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetProductInfo( + DWORD dwOSMajorVersion, + DWORD dwOSMinorVersion, + DWORD dwSpMajorVersion, + DWORD dwSpMinorVersion, + PDWORD pdwReturnedProductType + ); +# 486 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +__declspec(dllimport) +ULONGLONG +__stdcall +VerSetConditionMask( + ULONGLONG ConditionMask, + ULONG TypeMask, + UCHAR Condition + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetOsSafeBootMode( + PDWORD Flags + ); +# 514 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +__declspec(dllimport) +UINT +__stdcall +EnumSystemFirmwareTables( + DWORD FirmwareTableProviderSignature, + PVOID pFirmwareTableEnumBuffer, + DWORD BufferSize + ); + +__declspec(dllimport) +UINT +__stdcall +GetSystemFirmwareTable( + DWORD FirmwareTableProviderSignature, + DWORD FirmwareTableID, + PVOID pFirmwareTableBuffer, + DWORD BufferSize + ); + + + + + + + +__declspec(dllimport) + +BOOL +__stdcall +DnsHostnameToComputerNameExW( + LPCWSTR Hostname, + LPWSTR ComputerName, + LPDWORD nSize + ); + +__declspec(dllimport) + +BOOL +__stdcall +GetPhysicallyInstalledSystemMemory( + PULONGLONG TotalMemoryInKilobytes + ); + + + +__declspec(dllimport) +BOOL +__stdcall +SetComputerNameEx2W( + COMPUTER_NAME_FORMAT NameType, + DWORD Flags, + LPCWSTR lpBuffer + ); + + + + + +__declspec(dllimport) + +BOOL +__stdcall +SetSystemTimeAdjustment( + DWORD dwTimeAdjustment, + BOOL bTimeAdjustmentDisabled + ); + +__declspec(dllimport) + +BOOL +__stdcall +SetSystemTimeAdjustmentPrecise( + DWORD64 dwTimeAdjustment, + BOOL bTimeAdjustmentDisabled + ); + +__declspec(dllimport) +BOOL +__stdcall +InstallELAMCertificateInfo( + HANDLE ELAMFile + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetProcessorSystemCycleTime( + USHORT Group, + PSYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION Buffer, + PDWORD ReturnedLength + ); +# 618 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetOsManufacturingMode( + PBOOL pbEnabled + ); +# 634 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +__declspec(dllimport) +HRESULT +__stdcall +GetIntegratedDisplaySize( + double* sizeInInches + ); +# 649 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetComputerNameA( + LPCSTR lpComputerName + ); + +__declspec(dllimport) +BOOL +__stdcall +SetComputerNameW( + LPCWSTR lpComputerName + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetComputerNameExA( + COMPUTER_NAME_FORMAT NameType, + LPCSTR lpBuffer + ); +# 689 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 +#pragma warning(pop) +# 57 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 1 3 +# 26 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +#pragma warning(push) +#pragma warning(disable: 4668) +# 51 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +__declspec(dllimport) + + +LPVOID +__stdcall +VirtualAlloc( + LPVOID lpAddress, + SIZE_T dwSize, + DWORD flAllocationType, + DWORD flProtect + ); + +__declspec(dllimport) + +BOOL +__stdcall +VirtualProtect( + LPVOID lpAddress, + SIZE_T dwSize, + DWORD flNewProtect, + PDWORD lpflOldProtect + ); +# 89 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +VirtualFree( + LPVOID lpAddress, + SIZE_T dwSize, + DWORD dwFreeType + ); + +__declspec(dllimport) +SIZE_T +__stdcall +VirtualQuery( + LPCVOID lpAddress, + PMEMORY_BASIC_INFORMATION lpBuffer, + SIZE_T dwLength + ); + +__declspec(dllimport) + + +LPVOID +__stdcall +VirtualAllocEx( + HANDLE hProcess, + LPVOID lpAddress, + SIZE_T dwSize, + DWORD flAllocationType, + DWORD flProtect + ); + +__declspec(dllimport) + +BOOL +__stdcall +VirtualProtectEx( + HANDLE hProcess, + LPVOID lpAddress, + SIZE_T dwSize, + DWORD flNewProtect, + PDWORD lpflOldProtect + ); + + + + + + + +__declspec(dllimport) +SIZE_T +__stdcall +VirtualQueryEx( + HANDLE hProcess, + LPCVOID lpAddress, + PMEMORY_BASIC_INFORMATION lpBuffer, + SIZE_T dwLength + ); + +__declspec(dllimport) + +BOOL +__stdcall +ReadProcessMemory( + HANDLE hProcess, + LPCVOID lpBaseAddress, + LPVOID lpBuffer, + SIZE_T nSize, + SIZE_T* lpNumberOfBytesRead + ); + +__declspec(dllimport) + +BOOL +__stdcall +WriteProcessMemory( + HANDLE hProcess, + LPVOID lpBaseAddress, + LPCVOID lpBuffer, + SIZE_T nSize, + SIZE_T* lpNumberOfBytesWritten + ); + +__declspec(dllimport) + +HANDLE +__stdcall +CreateFileMappingW( + HANDLE hFile, + LPSECURITY_ATTRIBUTES lpFileMappingAttributes, + DWORD flProtect, + DWORD dwMaximumSizeHigh, + DWORD dwMaximumSizeLow, + LPCWSTR lpName + ); + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +OpenFileMappingW( + DWORD dwDesiredAccess, + BOOL bInheritHandle, + LPCWSTR lpName + ); + + + + + +__declspec(dllimport) + +LPVOID +__stdcall +MapViewOfFile( + HANDLE hFileMappingObject, + DWORD dwDesiredAccess, + DWORD dwFileOffsetHigh, + DWORD dwFileOffsetLow, + SIZE_T dwNumberOfBytesToMap + ); + +__declspec(dllimport) + +LPVOID +__stdcall +MapViewOfFileEx( + HANDLE hFileMappingObject, + DWORD dwDesiredAccess, + DWORD dwFileOffsetHigh, + DWORD dwFileOffsetLow, + SIZE_T dwNumberOfBytesToMap, + LPVOID lpBaseAddress + ); +# 246 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +VirtualFreeEx( + HANDLE hProcess, + LPVOID lpAddress, + SIZE_T dwSize, + DWORD dwFreeType + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +FlushViewOfFile( + LPCVOID lpBaseAddress, + SIZE_T dwNumberOfBytesToFlush + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +UnmapViewOfFile( + LPCVOID lpBaseAddress + ); + + + + + + + +__declspec(dllimport) +SIZE_T +__stdcall +GetLargePageMinimum( + void + ); + +__declspec(dllimport) +BOOL +__stdcall +GetProcessWorkingSetSize( + HANDLE hProcess, + PSIZE_T lpMinimumWorkingSetSize, + PSIZE_T lpMaximumWorkingSetSize + ); + +__declspec(dllimport) + +BOOL +__stdcall +GetProcessWorkingSetSizeEx( + HANDLE hProcess, + PSIZE_T lpMinimumWorkingSetSize, + PSIZE_T lpMaximumWorkingSetSize, + PDWORD Flags + ); + +__declspec(dllimport) +BOOL +__stdcall +SetProcessWorkingSetSize( + HANDLE hProcess, + SIZE_T dwMinimumWorkingSetSize, + SIZE_T dwMaximumWorkingSetSize + ); + +__declspec(dllimport) +BOOL +__stdcall +SetProcessWorkingSetSizeEx( + HANDLE hProcess, + SIZE_T dwMinimumWorkingSetSize, + SIZE_T dwMaximumWorkingSetSize, + DWORD Flags + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +VirtualLock( + LPVOID lpAddress, + SIZE_T dwSize + ); + +__declspec(dllimport) +BOOL +__stdcall +VirtualUnlock( + LPVOID lpAddress, + SIZE_T dwSize + ); + + + + + + + +__declspec(dllimport) + +UINT +__stdcall +GetWriteWatch( + DWORD dwFlags, + PVOID lpBaseAddress, + SIZE_T dwRegionSize, + PVOID* lpAddresses, + ULONG_PTR* lpdwCount, + LPDWORD lpdwGranularity + ); + +__declspec(dllimport) +UINT +__stdcall +ResetWriteWatch( + LPVOID lpBaseAddress, + SIZE_T dwRegionSize + ); +# 392 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +typedef enum _MEMORY_RESOURCE_NOTIFICATION_TYPE { + LowMemoryResourceNotification, + HighMemoryResourceNotification +} MEMORY_RESOURCE_NOTIFICATION_TYPE; + +__declspec(dllimport) + +HANDLE +__stdcall +CreateMemoryResourceNotification( + MEMORY_RESOURCE_NOTIFICATION_TYPE NotificationType + ); + +__declspec(dllimport) + +BOOL +__stdcall +QueryMemoryResourceNotification( + HANDLE ResourceNotificationHandle, + PBOOL ResourceState + ); +# 430 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +GetSystemFileCacheSize( + PSIZE_T lpMinimumFileCacheSize, + PSIZE_T lpMaximumFileCacheSize, + PDWORD lpFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +SetSystemFileCacheSize( + SIZE_T MinimumFileCacheSize, + SIZE_T MaximumFileCacheSize, + DWORD Flags + ); +# 459 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +CreateFileMappingNumaW( + HANDLE hFile, + LPSECURITY_ATTRIBUTES lpFileMappingAttributes, + DWORD flProtect, + DWORD dwMaximumSizeHigh, + DWORD dwMaximumSizeLow, + LPCWSTR lpName, + DWORD nndPreferred + ); +# 481 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +typedef struct _WIN32_MEMORY_RANGE_ENTRY { + PVOID VirtualAddress; + SIZE_T NumberOfBytes; +} WIN32_MEMORY_RANGE_ENTRY, *PWIN32_MEMORY_RANGE_ENTRY; + +__declspec(dllimport) +BOOL +__stdcall +PrefetchVirtualMemory( + HANDLE hProcess, + ULONG_PTR NumberOfEntries, + PWIN32_MEMORY_RANGE_ENTRY VirtualAddresses, + ULONG Flags + ); +# 506 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +CreateFileMappingFromApp( + HANDLE hFile, + PSECURITY_ATTRIBUTES SecurityAttributes, + ULONG PageProtection, + ULONG64 MaximumSize, + PCWSTR Name + ); + +__declspec(dllimport) + +PVOID +__stdcall +MapViewOfFileFromApp( + HANDLE hFileMappingObject, + ULONG DesiredAccess, + ULONG64 FileOffset, + SIZE_T NumberOfBytesToMap + ); + +__declspec(dllimport) +BOOL +__stdcall +UnmapViewOfFileEx( + PVOID BaseAddress, + ULONG UnmapFlags + ); +# 547 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +AllocateUserPhysicalPages( + HANDLE hProcess, + PULONG_PTR NumberOfPages, + PULONG_PTR PageArray + ); + +__declspec(dllimport) + +BOOL +__stdcall +FreeUserPhysicalPages( + HANDLE hProcess, + PULONG_PTR NumberOfPages, + PULONG_PTR PageArray + ); + +__declspec(dllimport) + +BOOL +__stdcall +MapUserPhysicalPages( + PVOID VirtualAddress, + ULONG_PTR NumberOfPages, + PULONG_PTR PageArray + ); + + + + + +__declspec(dllimport) + +BOOL +__stdcall +AllocateUserPhysicalPagesNuma( + HANDLE hProcess, + PULONG_PTR NumberOfPages, + PULONG_PTR PageArray, + DWORD nndPreferred + ); + +__declspec(dllimport) + +LPVOID +__stdcall +VirtualAllocExNuma( + HANDLE hProcess, + LPVOID lpAddress, + SIZE_T dwSize, + DWORD flAllocationType, + DWORD flProtect, + DWORD nndPreferred + ); + + + + + + + +__declspec(dllimport) + +BOOL +__stdcall +GetMemoryErrorHandlingCapabilities( + PULONG Capabilities + ); + + +typedef +void +__stdcall +BAD_MEMORY_CALLBACK_ROUTINE( + void + ); + +typedef BAD_MEMORY_CALLBACK_ROUTINE *PBAD_MEMORY_CALLBACK_ROUTINE; + +__declspec(dllimport) + +PVOID +__stdcall +RegisterBadMemoryNotification( + PBAD_MEMORY_CALLBACK_ROUTINE Callback + ); + +__declspec(dllimport) + +BOOL +__stdcall +UnregisterBadMemoryNotification( + PVOID RegistrationHandle + ); +# 663 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +typedef enum OFFER_PRIORITY { + VmOfferPriorityVeryLow = 1, + VmOfferPriorityLow, + VmOfferPriorityBelowNormal, + VmOfferPriorityNormal +} OFFER_PRIORITY; + +DWORD +__stdcall +OfferVirtualMemory( + PVOID VirtualAddress, + SIZE_T Size, + OFFER_PRIORITY Priority + ); + +DWORD +__stdcall +ReclaimVirtualMemory( + void const* VirtualAddress, + SIZE_T Size + ); + +DWORD +__stdcall +DiscardVirtualMemory( + PVOID VirtualAddress, + SIZE_T Size + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetProcessValidCallTargets( + HANDLE hProcess, + PVOID VirtualAddress, + SIZE_T RegionSize, + ULONG NumberOfOffsets, + PCFG_CALL_TARGET_INFO OffsetInformation + ); + +__declspec(dllimport) +BOOL +__stdcall +SetProcessValidCallTargetsForMappedView( + HANDLE Process, + PVOID VirtualAddress, + SIZE_T RegionSize, + ULONG NumberOfOffsets, + PCFG_CALL_TARGET_INFO OffsetInformation, + HANDLE Section, + ULONG64 ExpectedFileOffset + ); + +__declspec(dllimport) + + +PVOID +__stdcall +VirtualAllocFromApp( + PVOID BaseAddress, + SIZE_T Size, + ULONG AllocationType, + ULONG Protection + ); + +__declspec(dllimport) + +BOOL +__stdcall +VirtualProtectFromApp( + PVOID Address, + SIZE_T Size, + ULONG NewProtection, + PULONG OldProtection + ); + +__declspec(dllimport) + +HANDLE +__stdcall +OpenFileMappingFromApp( + ULONG DesiredAccess, + BOOL InheritHandle, + PCWSTR Name + ); +# 862 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +typedef enum WIN32_MEMORY_INFORMATION_CLASS { + MemoryRegionInfo +} WIN32_MEMORY_INFORMATION_CLASS; + + +#pragma warning(push) +#pragma warning(disable: 4201) +#pragma warning(disable: 4214) + + +typedef struct WIN32_MEMORY_REGION_INFORMATION { + PVOID AllocationBase; + ULONG AllocationProtect; + + union { + ULONG Flags; + + struct { + ULONG Private : 1; + ULONG MappedDataFile : 1; + ULONG MappedImage : 1; + ULONG MappedPageFile : 1; + ULONG MappedPhysical : 1; + ULONG DirectMapped : 1; + ULONG Reserved : 26; + } ; + } ; + + SIZE_T RegionSize; + SIZE_T CommitSize; +} WIN32_MEMORY_REGION_INFORMATION; + + +#pragma warning(pop) + + +__declspec(dllimport) + +BOOL +__stdcall +QueryVirtualMemoryInformation( + HANDLE Process, + const void* VirtualAddress, + WIN32_MEMORY_INFORMATION_CLASS MemoryInformationClass, + PVOID MemoryInformation, + SIZE_T MemoryInformationSize, + PSIZE_T ReturnSize + ); + + + + + +__declspec(dllimport) + +PVOID +__stdcall +MapViewOfFileNuma2( + HANDLE FileMappingHandle, + HANDLE ProcessHandle, + ULONG64 Offset, + PVOID BaseAddress, + SIZE_T ViewSize, + ULONG AllocationType, + ULONG PageProtection, + ULONG PreferredNode + ); + + + +__forceinline + +PVOID +MapViewOfFile2( + HANDLE FileMappingHandle, + HANDLE ProcessHandle, + ULONG64 Offset, + PVOID BaseAddress, + SIZE_T ViewSize, + ULONG AllocationType, + ULONG PageProtection + ) +{ + return MapViewOfFileNuma2(FileMappingHandle, + ProcessHandle, + Offset, + BaseAddress, + ViewSize, + AllocationType, + PageProtection, + ((DWORD) -1)); +} +# 965 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +UnmapViewOfFile2( + HANDLE Process, + PVOID BaseAddress, + ULONG UnmapFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +VirtualUnlockEx( + HANDLE Process, + LPVOID Address, + SIZE_T Size + ); +# 991 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +__declspec(dllimport) + + +PVOID +__stdcall +VirtualAlloc2( + HANDLE Process, + PVOID BaseAddress, + SIZE_T Size, + ULONG AllocationType, + ULONG PageProtection, + MEM_EXTENDED_PARAMETER* ExtendedParameters, + ULONG ParameterCount + ); + +__declspec(dllimport) + +PVOID +__stdcall +MapViewOfFile3( + HANDLE FileMapping, + HANDLE Process, + PVOID BaseAddress, + ULONG64 Offset, + SIZE_T ViewSize, + ULONG AllocationType, + ULONG PageProtection, + MEM_EXTENDED_PARAMETER* ExtendedParameters, + ULONG ParameterCount + ); + + + + + + + +__declspec(dllimport) + + +PVOID +__stdcall +VirtualAlloc2FromApp( + HANDLE Process, + PVOID BaseAddress, + SIZE_T Size, + ULONG AllocationType, + ULONG PageProtection, + MEM_EXTENDED_PARAMETER* ExtendedParameters, + ULONG ParameterCount + ); + +__declspec(dllimport) + +PVOID +__stdcall +MapViewOfFile3FromApp( + HANDLE FileMapping, + HANDLE Process, + PVOID BaseAddress, + ULONG64 Offset, + SIZE_T ViewSize, + ULONG AllocationType, + ULONG PageProtection, + MEM_EXTENDED_PARAMETER* ExtendedParameters, + ULONG ParameterCount + ); +# 1069 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +CreateFileMapping2( + HANDLE File, + SECURITY_ATTRIBUTES* SecurityAttributes, + ULONG DesiredAccess, + ULONG PageProtection, + ULONG AllocationAttributes, + ULONG64 MaximumSize, + PCWSTR Name, + MEM_EXTENDED_PARAMETER* ExtendedParameters, + ULONG ParameterCount + ); +# 1095 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +AllocateUserPhysicalPages2( + HANDLE ObjectHandle, + PULONG_PTR NumberOfPages, + PULONG_PTR PageArray, + PMEM_EXTENDED_PARAMETER ExtendedParameters, + ULONG ExtendedParameterCount + ); + +typedef enum WIN32_MEMORY_PARTITION_INFORMATION_CLASS { + MemoryPartitionInfo, + MemoryPartitionDedicatedMemoryInfo +} WIN32_MEMORY_PARTITION_INFORMATION_CLASS; + +typedef struct __declspec(align(8)) WIN32_MEMORY_PARTITION_INFORMATION { + ULONG Flags; + ULONG NumaNode; + ULONG Channel; + ULONG NumberOfNumaNodes; + ULONG64 ResidentAvailablePages; + ULONG64 CommittedPages; + ULONG64 CommitLimit; + ULONG64 PeakCommitment; + ULONG64 TotalNumberOfPages; + ULONG64 AvailablePages; + ULONG64 ZeroPages; + ULONG64 FreePages; + ULONG64 StandbyPages; + ULONG64 Reserved[16]; + ULONG64 MaximumCommitLimit; + ULONG64 Reserved2; + + ULONG PartitionId; + +} WIN32_MEMORY_PARTITION_INFORMATION; + +__declspec(dllimport) +HANDLE +__stdcall +OpenDedicatedMemoryPartition( + HANDLE Partition, + ULONG64 DedicatedMemoryTypeId, + ACCESS_MASK DesiredAccess, + BOOL InheritHandle + ); + +__declspec(dllimport) + +BOOL +__stdcall +QueryPartitionInformation( + HANDLE Partition, + WIN32_MEMORY_PARTITION_INFORMATION_CLASS PartitionInformationClass, + PVOID PartitionInformation, + ULONG PartitionInformationLength + ); + + + + + + + +#pragma warning(pop) +# 58 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\enclaveapi.h" 1 3 +# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\enclaveapi.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +IsEnclaveTypeSupported( + DWORD flEnclaveType + ); + +__declspec(dllimport) + + +LPVOID +__stdcall +CreateEnclave( + HANDLE hProcess, + LPVOID lpAddress, + SIZE_T dwSize, + SIZE_T dwInitialCommitment, + DWORD flEnclaveType, + LPCVOID lpEnclaveInformation, + DWORD dwInfoLength, + LPDWORD lpEnclaveError + ); + +__declspec(dllimport) + +BOOL +__stdcall +LoadEnclaveData( + HANDLE hProcess, + LPVOID lpAddress, + LPCVOID lpBuffer, + SIZE_T nSize, + DWORD flProtect, + LPCVOID lpPageInformation, + DWORD dwInfoLength, + PSIZE_T lpNumberOfBytesWritten, + LPDWORD lpEnclaveError + ); + +__declspec(dllimport) + +BOOL +__stdcall +InitializeEnclave( + HANDLE hProcess, + LPVOID lpAddress, + LPCVOID lpEnclaveInformation, + DWORD dwInfoLength, + LPDWORD lpEnclaveError + ); + + + + + + + +__declspec(dllimport) + +BOOL +__stdcall +LoadEnclaveImageA( + LPVOID lpEnclaveAddress, + LPCSTR lpImageName + ); + +__declspec(dllimport) + +BOOL +__stdcall +LoadEnclaveImageW( + LPVOID lpEnclaveAddress, + LPCWSTR lpImageName + ); + + + + + + +__declspec(dllimport) + +BOOL +__stdcall +CallEnclave( + LPENCLAVE_ROUTINE lpRoutine, + LPVOID lpParameter, + BOOL fWaitForThread, + LPVOID* lpReturnValue + ); + +__declspec(dllimport) + +BOOL +__stdcall +TerminateEnclave( + LPVOID lpAddress, + BOOL fWait + ); + +__declspec(dllimport) + +BOOL +__stdcall +DeleteEnclave( + LPVOID lpAddress + ); +# 59 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\threadpoollegacyapiset.h" 1 3 +# 32 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\threadpoollegacyapiset.h" 3 +__declspec(dllimport) +BOOL +__stdcall +QueueUserWorkItem( + LPTHREAD_START_ROUTINE Function, + PVOID Context, + ULONG Flags + ); + +__declspec(dllimport) + +BOOL +__stdcall +UnregisterWaitEx( + HANDLE WaitHandle, + HANDLE CompletionEvent + ); + + + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +CreateTimerQueue( + void + ); + +__declspec(dllimport) +BOOL +__stdcall +CreateTimerQueueTimer( + PHANDLE phNewTimer, + HANDLE TimerQueue, + WAITORTIMERCALLBACK Callback, + PVOID Parameter, + DWORD DueTime, + DWORD Period, + ULONG Flags + ); + +__declspec(dllimport) + +BOOL +__stdcall +ChangeTimerQueueTimer( + HANDLE TimerQueue, + HANDLE Timer, + ULONG DueTime, + ULONG Period + ); + +__declspec(dllimport) + +BOOL +__stdcall +DeleteTimerQueueTimer( + HANDLE TimerQueue, + HANDLE Timer, + HANDLE CompletionEvent + ); + +__declspec(dllimport) + +BOOL +__stdcall +DeleteTimerQueue( + HANDLE TimerQueue + ); + +__declspec(dllimport) + +BOOL +__stdcall +DeleteTimerQueueEx( + HANDLE TimerQueue, + HANDLE CompletionEvent + ); +# 60 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\threadpoolapiset.h" 1 3 +# 32 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\threadpoolapiset.h" 3 +typedef +void +(__stdcall *PTP_WIN32_IO_CALLBACK)( + PTP_CALLBACK_INSTANCE Instance, + PVOID Context, + PVOID Overlapped, + ULONG IoResult, + ULONG_PTR NumberOfBytesTransferred, + PTP_IO Io + ); + + + +__declspec(dllimport) + +PTP_POOL +__stdcall +CreateThreadpool( + PVOID reserved + ); + +__declspec(dllimport) +void +__stdcall +SetThreadpoolThreadMaximum( + PTP_POOL ptpp, + DWORD cthrdMost + ); + +__declspec(dllimport) +BOOL +__stdcall +SetThreadpoolThreadMinimum( + PTP_POOL ptpp, + DWORD cthrdMic + ); + +__declspec(dllimport) +BOOL +__stdcall +SetThreadpoolStackInformation( + PTP_POOL ptpp, + PTP_POOL_STACK_INFORMATION ptpsi + ); + +__declspec(dllimport) +BOOL +__stdcall +QueryThreadpoolStackInformation( + PTP_POOL ptpp, + PTP_POOL_STACK_INFORMATION ptpsi + ); + +__declspec(dllimport) +void +__stdcall +CloseThreadpool( + PTP_POOL ptpp + ); + +__declspec(dllimport) + +PTP_CLEANUP_GROUP +__stdcall +CreateThreadpoolCleanupGroup( + void + ); + +__declspec(dllimport) +void +__stdcall +CloseThreadpoolCleanupGroupMembers( + PTP_CLEANUP_GROUP ptpcg, + BOOL fCancelPendingCallbacks, + PVOID pvCleanupContext + ); + +__declspec(dllimport) +void +__stdcall +CloseThreadpoolCleanupGroup( + PTP_CLEANUP_GROUP ptpcg + ); + +__declspec(dllimport) +void +__stdcall +SetEventWhenCallbackReturns( + PTP_CALLBACK_INSTANCE pci, + HANDLE evt + ); + +__declspec(dllimport) +void +__stdcall +ReleaseSemaphoreWhenCallbackReturns( + PTP_CALLBACK_INSTANCE pci, + HANDLE sem, + DWORD crel + ); + +__declspec(dllimport) +void +__stdcall +ReleaseMutexWhenCallbackReturns( + PTP_CALLBACK_INSTANCE pci, + HANDLE mut + ); + +__declspec(dllimport) +void +__stdcall +LeaveCriticalSectionWhenCallbackReturns( + PTP_CALLBACK_INSTANCE pci, + PCRITICAL_SECTION pcs + ); + +__declspec(dllimport) +void +__stdcall +FreeLibraryWhenCallbackReturns( + PTP_CALLBACK_INSTANCE pci, + HMODULE mod + ); + +__declspec(dllimport) +BOOL +__stdcall +CallbackMayRunLong( + PTP_CALLBACK_INSTANCE pci + ); + +__declspec(dllimport) +void +__stdcall +DisassociateCurrentThreadFromCallback( + PTP_CALLBACK_INSTANCE pci + ); + +__declspec(dllimport) + +BOOL +__stdcall +TrySubmitThreadpoolCallback( + PTP_SIMPLE_CALLBACK pfns, + PVOID pv, + PTP_CALLBACK_ENVIRON pcbe + ); + +__declspec(dllimport) + +PTP_WORK +__stdcall +CreateThreadpoolWork( + PTP_WORK_CALLBACK pfnwk, + PVOID pv, + PTP_CALLBACK_ENVIRON pcbe + ); + +__declspec(dllimport) +void +__stdcall +SubmitThreadpoolWork( + PTP_WORK pwk + ); + +__declspec(dllimport) +void +__stdcall +WaitForThreadpoolWorkCallbacks( + PTP_WORK pwk, + BOOL fCancelPendingCallbacks + ); + +__declspec(dllimport) +void +__stdcall +CloseThreadpoolWork( + PTP_WORK pwk + ); + +__declspec(dllimport) + +PTP_TIMER +__stdcall +CreateThreadpoolTimer( + PTP_TIMER_CALLBACK pfnti, + PVOID pv, + PTP_CALLBACK_ENVIRON pcbe + ); + +__declspec(dllimport) +void +__stdcall +SetThreadpoolTimer( + PTP_TIMER pti, + PFILETIME pftDueTime, + DWORD msPeriod, + DWORD msWindowLength + ); + +__declspec(dllimport) +BOOL +__stdcall +IsThreadpoolTimerSet( + PTP_TIMER pti + ); + +__declspec(dllimport) +void +__stdcall +WaitForThreadpoolTimerCallbacks( + PTP_TIMER pti, + BOOL fCancelPendingCallbacks + ); + +__declspec(dllimport) +void +__stdcall +CloseThreadpoolTimer( + PTP_TIMER pti + ); + +__declspec(dllimport) + +PTP_WAIT +__stdcall +CreateThreadpoolWait( + PTP_WAIT_CALLBACK pfnwa, + PVOID pv, + PTP_CALLBACK_ENVIRON pcbe + ); + +__declspec(dllimport) +void +__stdcall +SetThreadpoolWait( + PTP_WAIT pwa, + HANDLE h, + PFILETIME pftTimeout + ); + +__declspec(dllimport) +void +__stdcall +WaitForThreadpoolWaitCallbacks( + PTP_WAIT pwa, + BOOL fCancelPendingCallbacks + ); + +__declspec(dllimport) +void +__stdcall +CloseThreadpoolWait( + PTP_WAIT pwa + ); + +__declspec(dllimport) + +PTP_IO +__stdcall +CreateThreadpoolIo( + HANDLE fl, + PTP_WIN32_IO_CALLBACK pfnio, + PVOID pv, + PTP_CALLBACK_ENVIRON pcbe + ); + +__declspec(dllimport) +void +__stdcall +StartThreadpoolIo( + PTP_IO pio + ); + +__declspec(dllimport) +void +__stdcall +CancelThreadpoolIo( + PTP_IO pio + ); + +__declspec(dllimport) +void +__stdcall +WaitForThreadpoolIoCallbacks( + PTP_IO pio, + BOOL fCancelPendingCallbacks + ); + +__declspec(dllimport) +void +__stdcall +CloseThreadpoolIo( + PTP_IO pio + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetThreadpoolTimerEx( + PTP_TIMER pti, + PFILETIME pftDueTime, + DWORD msPeriod, + DWORD msWindowLength + ); + +__declspec(dllimport) +BOOL +__stdcall +SetThreadpoolWaitEx( + PTP_WAIT pwa, + HANDLE h, + PFILETIME pftTimeout, + PVOID Reserved + ); +# 61 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\jobapi.h" 1 3 +# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\jobapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsProcessInJob( + HANDLE ProcessHandle, + HANDLE JobHandle, + PBOOL Result + ); +# 62 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\jobapi2.h" 1 3 +# 26 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\jobapi2.h" 3 +typedef struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION { + LONG64 MaxIops; + LONG64 MaxBandwidth; + LONG64 ReservationIops; + PCWSTR VolumeName; + ULONG BaseIoSize; + ULONG ControlFlags; +} JOBOBJECT_IO_RATE_CONTROL_INFORMATION; + +__declspec(dllimport) +HANDLE +__stdcall +CreateJobObjectW( + LPSECURITY_ATTRIBUTES lpJobAttributes, + LPCWSTR lpName + ); + +__declspec(dllimport) +void +__stdcall +FreeMemoryJobObject( + void* Buffer + ); + +__declspec(dllimport) +HANDLE +__stdcall +OpenJobObjectW( + DWORD dwDesiredAccess, + BOOL bInheritHandle, + LPCWSTR lpName + ); + +__declspec(dllimport) +BOOL +__stdcall +AssignProcessToJobObject( + HANDLE hJob, + HANDLE hProcess + ); + +__declspec(dllimport) +BOOL +__stdcall +TerminateJobObject( + HANDLE hJob, + UINT uExitCode + ); + +__declspec(dllimport) +BOOL +__stdcall +SetInformationJobObject( + HANDLE hJob, + JOBOBJECTINFOCLASS JobObjectInformationClass, + LPVOID lpJobObjectInformation, + DWORD cbJobObjectInformationLength + ); + +__declspec(dllimport) +DWORD +__stdcall +SetIoRateControlInformationJobObject( + HANDLE hJob, + JOBOBJECT_IO_RATE_CONTROL_INFORMATION* IoRateControlInfo + ); + +__declspec(dllimport) +BOOL +__stdcall +QueryInformationJobObject( + HANDLE hJob, + JOBOBJECTINFOCLASS JobObjectInformationClass, + LPVOID lpJobObjectInformation, + DWORD cbJobObjectInformationLength, + LPDWORD lpReturnLength + ); + +__declspec(dllimport) +DWORD +__stdcall +QueryIoRateControlInformationJobObject( + HANDLE hJob, + PCWSTR VolumeName, + JOBOBJECT_IO_RATE_CONTROL_INFORMATION** InfoBlocks, + ULONG* InfoBlockCount + ); +# 63 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 1 3 +# 32 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 3 +__declspec(dllimport) +BOOLEAN +__stdcall +Wow64EnableWow64FsRedirection( + BOOLEAN Wow64FsEnableRedirection + ); + +__declspec(dllimport) +BOOL +__stdcall +Wow64DisableWow64FsRedirection( + PVOID* OldValue + ); + +__declspec(dllimport) +BOOL +__stdcall +Wow64RevertWow64FsRedirection( + PVOID OlValue + ); +# 64 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsWow64Process( + HANDLE hProcess, + PBOOL Wow64Process + ); +# 84 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 3 +__declspec(dllimport) + + +UINT +__stdcall +GetSystemWow64DirectoryA( + LPSTR lpBuffer, + UINT uSize + ); + +__declspec(dllimport) + + +UINT +__stdcall +GetSystemWow64DirectoryW( + LPWSTR lpBuffer, + UINT uSize + ); +# 114 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 3 +__declspec(dllimport) +USHORT +__stdcall +Wow64SetThreadDefaultGuestMachine( + USHORT Machine + ); +# 131 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsWow64Process2( + HANDLE hProcess, + USHORT* pProcessMachine, + USHORT* pNativeMachine + ); +# 150 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 3 +__declspec(dllimport) + + +UINT +__stdcall +GetSystemWow64Directory2A( + LPSTR lpBuffer, + UINT uSize, + WORD ImageFileMachineType + ); + +__declspec(dllimport) + + +UINT +__stdcall +GetSystemWow64Directory2W( + LPWSTR lpBuffer, + UINT uSize, + WORD ImageFileMachineType + ); +# 181 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 3 +__declspec(dllimport) + +HRESULT +__stdcall +IsWow64GuestMachineSupported( + USHORT WowGuestMachine, + BOOL* MachineIsSupported + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +Wow64GetThreadContext( + HANDLE hThread, + PWOW64_CONTEXT lpContext + ); + +__declspec(dllimport) +BOOL +__stdcall +Wow64SetThreadContext( + HANDLE hThread, + const WOW64_CONTEXT* lpContext + ); + +__declspec(dllimport) +DWORD +__stdcall +Wow64SuspendThread( + HANDLE hThread + ); +# 64 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 1 3 +# 40 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 +typedef struct tagENUMUILANG { + ULONG NumOfEnumUILang; + ULONG SizeOfEnumUIBuffer; + LANGID *pEnumUIBuffer; +} ENUMUILANG, *PENUMUILANG; + + + +typedef BOOL (__stdcall* ENUMRESLANGPROCA)( + HMODULE hModule, + LPCSTR lpType, + LPCSTR lpName, + WORD wLanguage, + LONG_PTR lParam); +typedef BOOL (__stdcall* ENUMRESLANGPROCW)( + HMODULE hModule, + LPCWSTR lpType, + LPCWSTR lpName, + WORD wLanguage, + LONG_PTR lParam); + + + + + + +typedef BOOL (__stdcall* ENUMRESNAMEPROCA)( + HMODULE hModule, + LPCSTR lpType, + LPSTR lpName, + LONG_PTR lParam); +typedef BOOL (__stdcall* ENUMRESNAMEPROCW)( + HMODULE hModule, + LPCWSTR lpType, + LPWSTR lpName, + LONG_PTR lParam); + + + + + + +typedef BOOL (__stdcall* ENUMRESTYPEPROCA)( + HMODULE hModule, + LPSTR lpType, + LONG_PTR lParam + ); +typedef BOOL (__stdcall* ENUMRESTYPEPROCW)( + HMODULE hModule, + LPWSTR lpType, + LONG_PTR lParam + ); +# 130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DisableThreadLibraryCalls( + HMODULE hLibModule + ); + +__declspec(dllimport) + +HRSRC +__stdcall +FindResourceExW( + HMODULE hModule, + LPCWSTR lpType, + LPCWSTR lpName, + WORD wLanguage + ); + + + + + + + +__declspec(dllimport) +int +__stdcall +FindStringOrdinal( + DWORD dwFindStringOrdinalFlags, + LPCWSTR lpStringSource, + int cchSource, + LPCWSTR lpStringValue, + int cchValue, + BOOL bIgnoreCase + ); + + + +__declspec(dllimport) +BOOL +__stdcall +FreeLibrary( + HMODULE hLibModule + ); + +__declspec(dllimport) +__declspec(noreturn) +void +__stdcall +FreeLibraryAndExitThread( + HMODULE hLibModule, + DWORD dwExitCode + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +FreeResource( + HGLOBAL hResData + ); + + + + + + + +__declspec(dllimport) + + +DWORD +__stdcall +GetModuleFileNameA( + HMODULE hModule, + LPSTR lpFilename, + DWORD nSize + ); + +__declspec(dllimport) + + +DWORD +__stdcall +GetModuleFileNameW( + HMODULE hModule, + LPWSTR lpFilename, + DWORD nSize + ); + + + + + + +__declspec(dllimport) + + +HMODULE +__stdcall +GetModuleHandleA( + LPCSTR lpModuleName + ); + +__declspec(dllimport) + + +HMODULE +__stdcall +GetModuleHandleW( + LPCWSTR lpModuleName + ); +# 259 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 +typedef +BOOL +(__stdcall* +PGET_MODULE_HANDLE_EXA)( + DWORD dwFlags, + LPCSTR lpModuleName, + HMODULE* phModule + ); +typedef +BOOL +(__stdcall* +PGET_MODULE_HANDLE_EXW)( + DWORD dwFlags, + LPCWSTR lpModuleName, + HMODULE* phModule + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetModuleHandleExA( + DWORD dwFlags, + LPCSTR lpModuleName, + HMODULE* phModule + ); + +__declspec(dllimport) +BOOL +__stdcall +GetModuleHandleExW( + DWORD dwFlags, + LPCWSTR lpModuleName, + HMODULE* phModule + ); +# 306 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 +__declspec(dllimport) +FARPROC +__stdcall +GetProcAddress( + HMODULE hModule, + LPCSTR lpProcName + ); + + + +typedef struct _REDIRECTION_FUNCTION_DESCRIPTOR { + PCSTR DllName; + PCSTR FunctionName; + PVOID RedirectionTarget; +} REDIRECTION_FUNCTION_DESCRIPTOR, *PREDIRECTION_FUNCTION_DESCRIPTOR; + +typedef const REDIRECTION_FUNCTION_DESCRIPTOR *PCREDIRECTION_FUNCTION_DESCRIPTOR; + +typedef struct _REDIRECTION_DESCRIPTOR { + ULONG Version; + ULONG FunctionCount; + PCREDIRECTION_FUNCTION_DESCRIPTOR Redirections; +} REDIRECTION_DESCRIPTOR, *PREDIRECTION_DESCRIPTOR; + +typedef const REDIRECTION_DESCRIPTOR *PCREDIRECTION_DESCRIPTOR; + +__declspec(dllimport) + +HMODULE +__stdcall +LoadLibraryExA( + LPCSTR lpLibFileName, + HANDLE hFile, + DWORD dwFlags + ); + +__declspec(dllimport) + +HMODULE +__stdcall +LoadLibraryExW( + LPCWSTR lpLibFileName, + HANDLE hFile, + DWORD dwFlags + ); +# 394 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 +__declspec(dllimport) + +HGLOBAL +__stdcall +LoadResource( + HMODULE hModule, + HRSRC hResInfo + ); + +__declspec(dllimport) +int +__stdcall +LoadStringA( + HINSTANCE hInstance, + UINT uID, + LPSTR lpBuffer, + int cchBufferMax + ); + +__declspec(dllimport) +int +__stdcall +LoadStringW( + HINSTANCE hInstance, + UINT uID, + LPWSTR lpBuffer, + int cchBufferMax + ); + + + + + + +__declspec(dllimport) +LPVOID +__stdcall +LockResource( + HGLOBAL hResData + ); + +__declspec(dllimport) +DWORD +__stdcall +SizeofResource( + HMODULE hModule, + HRSRC hResInfo + ); + + + + + + + +typedef PVOID DLL_DIRECTORY_COOKIE, *PDLL_DIRECTORY_COOKIE; + +__declspec(dllimport) +DLL_DIRECTORY_COOKIE +__stdcall +AddDllDirectory( + PCWSTR NewDirectory + ); + +__declspec(dllimport) +BOOL +__stdcall +RemoveDllDirectory( + DLL_DIRECTORY_COOKIE Cookie + ); + +__declspec(dllimport) +BOOL +__stdcall +SetDefaultDllDirectories( + DWORD DirectoryFlags + ); +# 480 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumResourceLanguagesExA( + HMODULE hModule, + LPCSTR lpType, + LPCSTR lpName, + ENUMRESLANGPROCA lpEnumFunc, + LONG_PTR lParam, + DWORD dwFlags, + LANGID LangId + ); + +__declspec(dllimport) +BOOL +__stdcall +EnumResourceLanguagesExW( + HMODULE hModule, + LPCWSTR lpType, + LPCWSTR lpName, + ENUMRESLANGPROCW lpEnumFunc, + LONG_PTR lParam, + DWORD dwFlags, + LANGID LangId + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +EnumResourceNamesExA( + HMODULE hModule, + LPCSTR lpType, + ENUMRESNAMEPROCA lpEnumFunc, + LONG_PTR lParam, + DWORD dwFlags, + LANGID LangId + ); + +__declspec(dllimport) +BOOL +__stdcall +EnumResourceNamesExW( + HMODULE hModule, + LPCWSTR lpType, + ENUMRESNAMEPROCW lpEnumFunc, + LONG_PTR lParam, + DWORD dwFlags, + LANGID LangId + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +EnumResourceTypesExA( + HMODULE hModule, + ENUMRESTYPEPROCA lpEnumFunc, + LONG_PTR lParam, + DWORD dwFlags, + LANGID LangId + ); + +__declspec(dllimport) +BOOL +__stdcall +EnumResourceTypesExW( + HMODULE hModule, + ENUMRESTYPEPROCW lpEnumFunc, + LONG_PTR lParam, + DWORD dwFlags, + LANGID LangId + ); +# 575 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 +__declspec(dllimport) + +HRSRC +__stdcall +FindResourceW( + HMODULE hModule, + LPCWSTR lpName, + LPCWSTR lpType + ); + + + + + +__declspec(dllimport) + +HMODULE +__stdcall +LoadLibraryA( + LPCSTR lpLibFileName + ); + +__declspec(dllimport) + +HMODULE +__stdcall +LoadLibraryW( + LPCWSTR lpLibFileName + ); +# 616 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumResourceNamesW( + HMODULE hModule, + LPCWSTR lpType, + ENUMRESNAMEPROCW lpEnumFunc, + LONG_PTR lParam + ); + +__declspec(dllimport) +BOOL +__stdcall +EnumResourceNamesA( + HMODULE hModule, + LPCSTR lpType, + ENUMRESNAMEPROCA lpEnumFunc, + LONG_PTR lParam + ); +# 65 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 1 3 +# 33 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +AccessCheck( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + HANDLE ClientToken, + DWORD DesiredAccess, + PGENERIC_MAPPING GenericMapping, + PPRIVILEGE_SET PrivilegeSet, + LPDWORD PrivilegeSetLength, + LPDWORD GrantedAccess, + LPBOOL AccessStatus + ); + +__declspec(dllimport) +BOOL +__stdcall +AccessCheckAndAuditAlarmW( + LPCWSTR SubsystemName, + LPVOID HandleId, + LPWSTR ObjectTypeName, + LPWSTR ObjectName, + PSECURITY_DESCRIPTOR SecurityDescriptor, + DWORD DesiredAccess, + PGENERIC_MAPPING GenericMapping, + BOOL ObjectCreation, + LPDWORD GrantedAccess, + LPBOOL AccessStatus, + LPBOOL pfGenerateOnClose + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +AccessCheckByType( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + PSID PrincipalSelfSid, + HANDLE ClientToken, + DWORD DesiredAccess, + POBJECT_TYPE_LIST ObjectTypeList, + DWORD ObjectTypeListLength, + PGENERIC_MAPPING GenericMapping, + PPRIVILEGE_SET PrivilegeSet, + LPDWORD PrivilegeSetLength, + LPDWORD GrantedAccess, + LPBOOL AccessStatus + ); + +__declspec(dllimport) +BOOL +__stdcall +AccessCheckByTypeResultList( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + PSID PrincipalSelfSid, + HANDLE ClientToken, + DWORD DesiredAccess, + POBJECT_TYPE_LIST ObjectTypeList, + DWORD ObjectTypeListLength, + PGENERIC_MAPPING GenericMapping, + PPRIVILEGE_SET PrivilegeSet, + LPDWORD PrivilegeSetLength, + LPDWORD GrantedAccessList, + LPDWORD AccessStatusList + ); + +__declspec(dllimport) +BOOL +__stdcall +AccessCheckByTypeAndAuditAlarmW( + LPCWSTR SubsystemName, + LPVOID HandleId, + LPCWSTR ObjectTypeName, + LPCWSTR ObjectName, + PSECURITY_DESCRIPTOR SecurityDescriptor, + PSID PrincipalSelfSid, + DWORD DesiredAccess, + AUDIT_EVENT_TYPE AuditType, + DWORD Flags, + POBJECT_TYPE_LIST ObjectTypeList, + DWORD ObjectTypeListLength, + PGENERIC_MAPPING GenericMapping, + BOOL ObjectCreation, + LPDWORD GrantedAccess, + LPBOOL AccessStatus, + LPBOOL pfGenerateOnClose + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +AccessCheckByTypeResultListAndAuditAlarmW( + LPCWSTR SubsystemName, + LPVOID HandleId, + LPCWSTR ObjectTypeName, + LPCWSTR ObjectName, + PSECURITY_DESCRIPTOR SecurityDescriptor, + PSID PrincipalSelfSid, + DWORD DesiredAccess, + AUDIT_EVENT_TYPE AuditType, + DWORD Flags, + POBJECT_TYPE_LIST ObjectTypeList, + DWORD ObjectTypeListLength, + PGENERIC_MAPPING GenericMapping, + BOOL ObjectCreation, + LPDWORD GrantedAccessList, + LPDWORD AccessStatusList, + LPBOOL pfGenerateOnClose + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +AccessCheckByTypeResultListAndAuditAlarmByHandleW( + LPCWSTR SubsystemName, + LPVOID HandleId, + HANDLE ClientToken, + LPCWSTR ObjectTypeName, + LPCWSTR ObjectName, + PSECURITY_DESCRIPTOR SecurityDescriptor, + PSID PrincipalSelfSid, + DWORD DesiredAccess, + AUDIT_EVENT_TYPE AuditType, + DWORD Flags, + POBJECT_TYPE_LIST ObjectTypeList, + DWORD ObjectTypeListLength, + PGENERIC_MAPPING GenericMapping, + BOOL ObjectCreation, + LPDWORD GrantedAccessList, + LPDWORD AccessStatusList, + LPBOOL pfGenerateOnClose + ); +# 187 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +AddAccessAllowedAce( + PACL pAcl, + DWORD dwAceRevision, + DWORD AccessMask, + PSID pSid + ); + +__declspec(dllimport) +BOOL +__stdcall +AddAccessAllowedAceEx( + PACL pAcl, + DWORD dwAceRevision, + DWORD AceFlags, + DWORD AccessMask, + PSID pSid + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +AddAccessAllowedObjectAce( + PACL pAcl, + DWORD dwAceRevision, + DWORD AceFlags, + DWORD AccessMask, + GUID* ObjectTypeGuid, + GUID* InheritedObjectTypeGuid, + PSID pSid + ); + +__declspec(dllimport) +BOOL +__stdcall +AddAccessDeniedAce( + PACL pAcl, + DWORD dwAceRevision, + DWORD AccessMask, + PSID pSid + ); + +__declspec(dllimport) +BOOL +__stdcall +AddAccessDeniedAceEx( + PACL pAcl, + DWORD dwAceRevision, + DWORD AceFlags, + DWORD AccessMask, + PSID pSid + ); + +__declspec(dllimport) +BOOL +__stdcall +AddAccessDeniedObjectAce( + PACL pAcl, + DWORD dwAceRevision, + DWORD AceFlags, + DWORD AccessMask, + GUID* ObjectTypeGuid, + GUID* InheritedObjectTypeGuid, + PSID pSid + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +AddAce( + PACL pAcl, + DWORD dwAceRevision, + DWORD dwStartingAceIndex, + LPVOID pAceList, + DWORD nAceListLength + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +AddAuditAccessAce( + PACL pAcl, + DWORD dwAceRevision, + DWORD dwAccessMask, + PSID pSid, + BOOL bAuditSuccess, + BOOL bAuditFailure + ); + +__declspec(dllimport) +BOOL +__stdcall +AddAuditAccessAceEx( + PACL pAcl, + DWORD dwAceRevision, + DWORD AceFlags, + DWORD dwAccessMask, + PSID pSid, + BOOL bAuditSuccess, + BOOL bAuditFailure + ); + +__declspec(dllimport) +BOOL +__stdcall +AddAuditAccessObjectAce( + PACL pAcl, + DWORD dwAceRevision, + DWORD AceFlags, + DWORD AccessMask, + GUID* ObjectTypeGuid, + GUID* InheritedObjectTypeGuid, + PSID pSid, + BOOL bAuditSuccess, + BOOL bAuditFailure + ); +# 332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +AddMandatoryAce( + PACL pAcl, + DWORD dwAceRevision, + DWORD AceFlags, + DWORD MandatoryPolicy, + PSID pLabelSid + ); +# 353 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +AddResourceAttributeAce( + PACL pAcl, + DWORD dwAceRevision, + DWORD AceFlags, + DWORD AccessMask, + PSID pSid, + PCLAIM_SECURITY_ATTRIBUTES_INFORMATION pAttributeInfo, + PDWORD pReturnLength + ); + +__declspec(dllimport) +BOOL +__stdcall +AddScopedPolicyIDAce( + PACL pAcl, + DWORD dwAceRevision, + DWORD AceFlags, + DWORD AccessMask, + PSID pSid + ); +# 385 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +AdjustTokenGroups( + HANDLE TokenHandle, + BOOL ResetToDefault, + PTOKEN_GROUPS NewState, + DWORD BufferLength, + PTOKEN_GROUPS PreviousState, + PDWORD ReturnLength + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +AdjustTokenPrivileges( + HANDLE TokenHandle, + BOOL DisableAllPrivileges, + PTOKEN_PRIVILEGES NewState, + DWORD BufferLength, + PTOKEN_PRIVILEGES PreviousState, + PDWORD ReturnLength + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +AllocateAndInitializeSid( + PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority, + BYTE nSubAuthorityCount, + DWORD nSubAuthority0, + DWORD nSubAuthority1, + DWORD nSubAuthority2, + DWORD nSubAuthority3, + DWORD nSubAuthority4, + DWORD nSubAuthority5, + DWORD nSubAuthority6, + DWORD nSubAuthority7, + PSID* pSid + ); + +__declspec(dllimport) +BOOL +__stdcall +AllocateLocallyUniqueId( + PLUID Luid + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +AreAllAccessesGranted( + DWORD GrantedAccess, + DWORD DesiredAccess + ); + +__declspec(dllimport) +BOOL +__stdcall +AreAnyAccessesGranted( + DWORD GrantedAccess, + DWORD DesiredAccess + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CheckTokenMembership( + HANDLE TokenHandle, + PSID SidToCheck, + PBOOL IsMember + ); +# 490 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CheckTokenCapability( + HANDLE TokenHandle, + PSID CapabilitySidToCheck, + PBOOL HasCapability + ); + +__declspec(dllimport) +BOOL +__stdcall +GetAppContainerAce( + PACL Acl, + DWORD StartingAceIndex, + PVOID* AppContainerAce, + DWORD* AppContainerAceIndex + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CheckTokenMembershipEx( + HANDLE TokenHandle, + PSID SidToCheck, + DWORD Flags, + PBOOL IsMember + ); +# 533 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +ConvertToAutoInheritPrivateObjectSecurity( + PSECURITY_DESCRIPTOR ParentDescriptor, + PSECURITY_DESCRIPTOR CurrentSecurityDescriptor, + PSECURITY_DESCRIPTOR* NewSecurityDescriptor, + GUID* ObjectType, + BOOLEAN IsDirectoryObject, + PGENERIC_MAPPING GenericMapping + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CopySid( + DWORD nDestinationSidLength, + PSID pDestinationSid, + PSID pSourceSid + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CreatePrivateObjectSecurity( + PSECURITY_DESCRIPTOR ParentDescriptor, + PSECURITY_DESCRIPTOR CreatorDescriptor, + PSECURITY_DESCRIPTOR* NewDescriptor, + BOOL IsDirectoryObject, + HANDLE Token, + PGENERIC_MAPPING GenericMapping + ); + +__declspec(dllimport) +BOOL +__stdcall +CreatePrivateObjectSecurityEx( + PSECURITY_DESCRIPTOR ParentDescriptor, + PSECURITY_DESCRIPTOR CreatorDescriptor, + PSECURITY_DESCRIPTOR* NewDescriptor, + GUID* ObjectType, + BOOL IsContainerObject, + ULONG AutoInheritFlags, + HANDLE Token, + PGENERIC_MAPPING GenericMapping + ); + +__declspec(dllimport) +BOOL +__stdcall +CreatePrivateObjectSecurityWithMultipleInheritance( + PSECURITY_DESCRIPTOR ParentDescriptor, + PSECURITY_DESCRIPTOR CreatorDescriptor, + PSECURITY_DESCRIPTOR* NewDescriptor, + GUID** ObjectTypes, + ULONG GuidCount, + BOOL IsContainerObject, + ULONG AutoInheritFlags, + HANDLE Token, + PGENERIC_MAPPING GenericMapping + ); + +__declspec(dllimport) +BOOL +__stdcall +CreateRestrictedToken( + HANDLE ExistingTokenHandle, + DWORD Flags, + DWORD DisableSidCount, + PSID_AND_ATTRIBUTES SidsToDisable, + DWORD DeletePrivilegeCount, + PLUID_AND_ATTRIBUTES PrivilegesToDelete, + DWORD RestrictedSidCount, + PSID_AND_ATTRIBUTES SidsToRestrict, + PHANDLE NewTokenHandle + ); +# 630 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CreateWellKnownSid( + WELL_KNOWN_SID_TYPE WellKnownSidType, + PSID DomainSid, + PSID pSid, + DWORD* cbSid + ); + +__declspec(dllimport) + +BOOL +__stdcall +EqualDomainSid( + PSID pSid1, + PSID pSid2, + BOOL* pfEqual + ); + + + +__declspec(dllimport) +BOOL +__stdcall +DeleteAce( + PACL pAcl, + DWORD dwAceIndex + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +DestroyPrivateObjectSecurity( + PSECURITY_DESCRIPTOR* ObjectDescriptor + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +DuplicateToken( + HANDLE ExistingTokenHandle, + SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, + PHANDLE DuplicateTokenHandle + ); + +__declspec(dllimport) +BOOL +__stdcall +DuplicateTokenEx( + HANDLE hExistingToken, + DWORD dwDesiredAccess, + LPSECURITY_ATTRIBUTES lpTokenAttributes, + SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, + TOKEN_TYPE TokenType, + PHANDLE phNewToken + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +EqualPrefixSid( + PSID pSid1, + PSID pSid2 + ); + +__declspec(dllimport) +BOOL +__stdcall +EqualSid( + PSID pSid1, + PSID pSid2 + ); + +__declspec(dllimport) +BOOL +__stdcall +FindFirstFreeAce( + PACL pAcl, + LPVOID* pAce + ); + + + + + + + +__declspec(dllimport) +PVOID +__stdcall +FreeSid( + PSID pSid + ); + +__declspec(dllimport) +BOOL +__stdcall +GetAce( + PACL pAcl, + DWORD dwAceIndex, + LPVOID* pAce + ); + +__declspec(dllimport) +BOOL +__stdcall +GetAclInformation( + PACL pAcl, + LPVOID pAclInformation, + DWORD nAclInformationLength, + ACL_INFORMATION_CLASS dwAclInformationClass + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetFileSecurityW( + LPCWSTR lpFileName, + SECURITY_INFORMATION RequestedInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor, + DWORD nLength, + LPDWORD lpnLengthNeeded + ); +# 790 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetKernelObjectSecurity( + HANDLE Handle, + SECURITY_INFORMATION RequestedInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor, + DWORD nLength, + LPDWORD lpnLengthNeeded + ); + +__declspec(dllimport) + + +DWORD +__stdcall +GetLengthSid( + PSID pSid + ); + + + + + + + +__declspec(dllimport) + +BOOL +__stdcall +GetPrivateObjectSecurity( + PSECURITY_DESCRIPTOR ObjectDescriptor, + SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR ResultantDescriptor, + DWORD DescriptorLength, + PDWORD ReturnLength + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetSecurityDescriptorControl( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + PSECURITY_DESCRIPTOR_CONTROL pControl, + LPDWORD lpdwRevision + ); + +__declspec(dllimport) +BOOL +__stdcall +GetSecurityDescriptorDacl( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + LPBOOL lpbDaclPresent, + PACL* pDacl, + LPBOOL lpbDaclDefaulted + ); + +__declspec(dllimport) +BOOL +__stdcall +GetSecurityDescriptorGroup( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + PSID* pGroup, + LPBOOL lpbGroupDefaulted + ); + +__declspec(dllimport) +DWORD +__stdcall +GetSecurityDescriptorLength( + PSECURITY_DESCRIPTOR pSecurityDescriptor + ); + +__declspec(dllimport) +BOOL +__stdcall +GetSecurityDescriptorOwner( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + PSID* pOwner, + LPBOOL lpbOwnerDefaulted + ); + +__declspec(dllimport) +DWORD +__stdcall +GetSecurityDescriptorRMControl( + PSECURITY_DESCRIPTOR SecurityDescriptor, + PUCHAR RMControl + ); + +__declspec(dllimport) +BOOL +__stdcall +GetSecurityDescriptorSacl( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + LPBOOL lpbSaclPresent, + PACL* pSacl, + LPBOOL lpbSaclDefaulted + ); + +__declspec(dllimport) +PSID_IDENTIFIER_AUTHORITY +__stdcall +GetSidIdentifierAuthority( + PSID pSid + ); + +__declspec(dllimport) +DWORD +__stdcall +GetSidLengthRequired( + UCHAR nSubAuthorityCount + ); + +__declspec(dllimport) +PDWORD +__stdcall +GetSidSubAuthority( + PSID pSid, + DWORD nSubAuthority + ); + +__declspec(dllimport) +PUCHAR +__stdcall +GetSidSubAuthorityCount( + PSID pSid + ); + +__declspec(dllimport) +BOOL +__stdcall +GetTokenInformation( + HANDLE TokenHandle, + TOKEN_INFORMATION_CLASS TokenInformationClass, + LPVOID TokenInformation, + DWORD TokenInformationLength, + PDWORD ReturnLength + ); + + + +__declspec(dllimport) + +BOOL +__stdcall +GetWindowsAccountDomainSid( + PSID pSid, + PSID pDomainSid, + DWORD* cbDomainSid + ); +# 956 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +ImpersonateAnonymousToken( + HANDLE ThreadHandle + ); + + +__declspec(dllimport) +BOOL +__stdcall +ImpersonateLoggedOnUser( + HANDLE hToken + ); + + +__declspec(dllimport) +BOOL +__stdcall +ImpersonateSelf( + SECURITY_IMPERSONATION_LEVEL ImpersonationLevel + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +InitializeAcl( + PACL pAcl, + DWORD nAclLength, + DWORD dwAclRevision + ); + +__declspec(dllimport) +BOOL +__stdcall +InitializeSecurityDescriptor( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + DWORD dwRevision + ); + +__declspec(dllimport) +BOOL +__stdcall +InitializeSid( + PSID Sid, + PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority, + BYTE nSubAuthorityCount + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +IsTokenRestricted( + HANDLE TokenHandle + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +IsValidAcl( + PACL pAcl + ); + +__declspec(dllimport) +BOOL +__stdcall +IsValidSecurityDescriptor( + PSECURITY_DESCRIPTOR pSecurityDescriptor + ); + +__declspec(dllimport) +BOOL +__stdcall +IsValidSid( + PSID pSid + ); + + + +__declspec(dllimport) +BOOL +__stdcall +IsWellKnownSid( + PSID pSid, + WELL_KNOWN_SID_TYPE WellKnownSidType + ); + + + +__declspec(dllimport) + +BOOL +__stdcall +MakeAbsoluteSD( + PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor, + PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor, + LPDWORD lpdwAbsoluteSecurityDescriptorSize, + PACL pDacl, + LPDWORD lpdwDaclSize, + PACL pSacl, + LPDWORD lpdwSaclSize, + PSID pOwner, + LPDWORD lpdwOwnerSize, + PSID pPrimaryGroup, + LPDWORD lpdwPrimaryGroupSize + ); + +__declspec(dllimport) + +BOOL +__stdcall +MakeSelfRelativeSD( + PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor, + PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor, + LPDWORD lpdwBufferLength + ); + + + + + + + +__declspec(dllimport) +void +__stdcall +MapGenericMask( + PDWORD AccessMask, + PGENERIC_MAPPING GenericMapping + ); + +__declspec(dllimport) +BOOL +__stdcall +ObjectCloseAuditAlarmW( + LPCWSTR SubsystemName, + LPVOID HandleId, + BOOL GenerateOnClose + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +ObjectDeleteAuditAlarmW( + LPCWSTR SubsystemName, + LPVOID HandleId, + BOOL GenerateOnClose + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +ObjectOpenAuditAlarmW( + LPCWSTR SubsystemName, + LPVOID HandleId, + LPWSTR ObjectTypeName, + LPWSTR ObjectName, + PSECURITY_DESCRIPTOR pSecurityDescriptor, + HANDLE ClientToken, + DWORD DesiredAccess, + DWORD GrantedAccess, + PPRIVILEGE_SET Privileges, + BOOL ObjectCreation, + BOOL AccessGranted, + LPBOOL GenerateOnClose + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +ObjectPrivilegeAuditAlarmW( + LPCWSTR SubsystemName, + LPVOID HandleId, + HANDLE ClientToken, + DWORD DesiredAccess, + PPRIVILEGE_SET Privileges, + BOOL AccessGranted + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +PrivilegeCheck( + HANDLE ClientToken, + PPRIVILEGE_SET RequiredPrivileges, + LPBOOL pfResult + ); + +__declspec(dllimport) +BOOL +__stdcall +PrivilegedServiceAuditAlarmW( + LPCWSTR SubsystemName, + LPCWSTR ServiceName, + HANDLE ClientToken, + PPRIVILEGE_SET Privileges, + BOOL AccessGranted + ); + + + + + + + +__declspec(dllimport) +void +__stdcall +QuerySecurityAccessMask( + SECURITY_INFORMATION SecurityInformation, + LPDWORD DesiredAccess + ); + + + +__declspec(dllimport) +BOOL +__stdcall +RevertToSelf( + void + ); + +__declspec(dllimport) +BOOL +__stdcall +SetAclInformation( + PACL pAcl, + LPVOID pAclInformation, + DWORD nAclInformationLength, + ACL_INFORMATION_CLASS dwAclInformationClass + ); + +__declspec(dllimport) +BOOL +__stdcall +SetFileSecurityW( + LPCWSTR lpFileName, + SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor + ); +# 1240 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetKernelObjectSecurity( + HANDLE Handle, + SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR SecurityDescriptor + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetPrivateObjectSecurity( + SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR ModificationDescriptor, + PSECURITY_DESCRIPTOR* ObjectsSecurityDescriptor, + PGENERIC_MAPPING GenericMapping, + HANDLE Token + ); + +__declspec(dllimport) +BOOL +__stdcall +SetPrivateObjectSecurityEx( + SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR ModificationDescriptor, + PSECURITY_DESCRIPTOR* ObjectsSecurityDescriptor, + ULONG AutoInheritFlags, + PGENERIC_MAPPING GenericMapping, + HANDLE Token + ); + + + +__declspec(dllimport) +void +__stdcall +SetSecurityAccessMask( + SECURITY_INFORMATION SecurityInformation, + LPDWORD DesiredAccess + ); +# 1296 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetSecurityDescriptorControl( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest, + SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet + ); + +__declspec(dllimport) +BOOL +__stdcall +SetSecurityDescriptorDacl( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + BOOL bDaclPresent, + PACL pDacl, + BOOL bDaclDefaulted + ); + +__declspec(dllimport) +BOOL +__stdcall +SetSecurityDescriptorGroup( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + PSID pGroup, + BOOL bGroupDefaulted + ); + +__declspec(dllimport) +BOOL +__stdcall +SetSecurityDescriptorOwner( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + PSID pOwner, + BOOL bOwnerDefaulted + ); + +__declspec(dllimport) +DWORD +__stdcall +SetSecurityDescriptorRMControl( + PSECURITY_DESCRIPTOR SecurityDescriptor, + PUCHAR RMControl + ); + +__declspec(dllimport) +BOOL +__stdcall +SetSecurityDescriptorSacl( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + BOOL bSaclPresent, + PACL pSacl, + BOOL bSaclDefaulted + ); + +__declspec(dllimport) +BOOL +__stdcall +SetTokenInformation( + HANDLE TokenHandle, + TOKEN_INFORMATION_CLASS TokenInformationClass, + LPVOID TokenInformation, + DWORD TokenInformationLength + ); +# 1369 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetCachedSigningLevel( + PHANDLE SourceFiles, + ULONG SourceFileCount, + ULONG Flags, + HANDLE TargetFile + ); + +__declspec(dllimport) +BOOL +__stdcall +GetCachedSigningLevel( + HANDLE File, + PULONG Flags, + PULONG SigningLevel, + PUCHAR Thumbprint, + PULONG ThumbprintSize, + PULONG ThumbprintAlgorithm + ); +# 1400 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) +LONG +__stdcall +CveEventWrite( + PCWSTR CveId, + PCWSTR AdditionalDetails + ); +# 1417 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DeriveCapabilitySidsFromName( + LPCWSTR CapName, + PSID** CapabilityGroupSids, + DWORD* CapabilityGroupSidCount, + PSID** CapabilitySids, + DWORD* CapabilitySidCount + ); +# 66 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\namespaceapi.h" 1 3 +# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\namespaceapi.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +CreatePrivateNamespaceW( + LPSECURITY_ATTRIBUTES lpPrivateNamespaceAttributes, + LPVOID lpBoundaryDescriptor, + LPCWSTR lpAliasPrefix + ); + +__declspec(dllimport) +HANDLE +__stdcall +OpenPrivateNamespaceW( + LPVOID lpBoundaryDescriptor, + LPCWSTR lpAliasPrefix + ); + +__declspec(dllimport) +BOOLEAN +__stdcall +ClosePrivateNamespace( + HANDLE Handle, + ULONG Flags + ); + +__declspec(dllimport) +HANDLE +__stdcall +CreateBoundaryDescriptorW( + LPCWSTR Name, + ULONG Flags + ); + +__declspec(dllimport) +BOOL +__stdcall +AddSIDToBoundaryDescriptor( + HANDLE* BoundaryDescriptor, + PSID RequiredSid + ); + +__declspec(dllimport) +void +__stdcall +DeleteBoundaryDescriptor( + HANDLE BoundaryDescriptor + ); +# 67 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\systemtopologyapi.h" 1 3 +# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\systemtopologyapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetNumaHighestNodeNumber( + PULONG HighestNodeNumber + ); +# 43 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\systemtopologyapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetNumaNodeProcessorMaskEx( + USHORT Node, + PGROUP_AFFINITY ProcessorMask + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetNumaNodeProcessorMask2( + USHORT NodeNumber, + PGROUP_AFFINITY ProcessorMasks, + USHORT ProcessorMaskCount, + PUSHORT RequiredMaskCount + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetNumaProximityNodeEx( + ULONG ProximityId, + PUSHORT NodeNumber + ); +# 68 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processtopologyapi.h" 1 3 +# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processtopologyapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetProcessGroupAffinity( + HANDLE hProcess, + PUSHORT GroupCount, + PUSHORT GroupArray + ); +# 49 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processtopologyapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetThreadGroupAffinity( + HANDLE hThread, + PGROUP_AFFINITY GroupAffinity + ); + +__declspec(dllimport) +BOOL +__stdcall +SetThreadGroupAffinity( + HANDLE hThread, + const GROUP_AFFINITY* GroupAffinity, + PGROUP_AFFINITY PreviousGroupAffinity + ); +# 69 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securityappcontainer.h" 1 3 +# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securityappcontainer.h" 3 +BOOL +__stdcall +GetAppContainerNamedObjectPath( + HANDLE Token, + PSID AppContainerSid, + ULONG ObjectPathLength, + LPWSTR ObjectPath, + PULONG ReturnLength + ); +# 70 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\realtimeapiset.h" 1 3 +# 29 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\realtimeapiset.h" 3 +__declspec(dllimport) +BOOL +__stdcall +QueryThreadCycleTime( + HANDLE ThreadHandle, + PULONG64 CycleTime + ); + +__declspec(dllimport) +BOOL +__stdcall +QueryProcessCycleTime( + HANDLE ProcessHandle, + PULONG64 CycleTime + ); + +__declspec(dllimport) +BOOL +__stdcall +QueryIdleProcessorCycleTime( + PULONG BufferLength, + PULONG64 ProcessorIdleCycleTime + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +QueryIdleProcessorCycleTimeEx( + USHORT Group, + PULONG BufferLength, + PULONG64 ProcessorIdleCycleTime + ); +# 74 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\realtimeapiset.h" 3 +__declspec(dllimport) +void +__stdcall +QueryInterruptTimePrecise( + PULONGLONG lpInterruptTimePrecise + ); + +__declspec(dllimport) +void +__stdcall +QueryUnbiasedInterruptTimePrecise( + PULONGLONG lpUnbiasedInterruptTimePrecise + ); + +__declspec(dllimport) +void +__stdcall +QueryInterruptTime( + PULONGLONG lpInterruptTime + ); + + + +__declspec(dllimport) +BOOL +__stdcall +QueryUnbiasedInterruptTime( + PULONGLONG UnbiasedTime + ); + + + +__declspec(dllimport) +HRESULT +__stdcall +QueryAuxiliaryCounterFrequency( + PULONGLONG lpAuxiliaryCounterFrequency + ); + +__declspec(dllimport) +HRESULT +__stdcall +ConvertAuxiliaryCounterToPerformanceCounter( + ULONGLONG ullAuxiliaryCounterValue, + PULONGLONG lpPerformanceCounterValue, + PULONGLONG lpConversionError + ); + +__declspec(dllimport) +HRESULT +__stdcall +ConvertPerformanceCounterToAuxiliaryCounter( + ULONGLONG ullPerformanceCounterValue, + PULONGLONG lpAuxiliaryCounterValue, + PULONGLONG lpConversionError + ); +# 71 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 163 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef enum FILE_WRITE_FLAGS +{ + FILE_WRITE_FLAGS_NONE = 0, + FILE_WRITE_FLAGS_WRITE_THROUGH = 0x000000001, +} FILE_WRITE_FLAGS; + + +typedef enum FILE_FLUSH_MODE +{ + FILE_FLUSH_DEFAULT = 0, + FILE_FLUSH_DATA, + FILE_FLUSH_MIN_METADATA, + FILE_FLUSH_NO_SYNC, +} FILE_FLUSH_MODE; +# 350 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef void (__stdcall *PFIBER_START_ROUTINE)( + LPVOID lpFiberParameter + ); +typedef PFIBER_START_ROUTINE LPFIBER_START_ROUTINE; + +typedef LPVOID (__stdcall *PFIBER_CALLOUT_ROUTINE)( + LPVOID lpParameter + ); +# 376 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef LPVOID LPLDT_ENTRY; +# 479 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct _COMMPROP { + WORD wPacketLength; + WORD wPacketVersion; + DWORD dwServiceMask; + DWORD dwReserved1; + DWORD dwMaxTxQueue; + DWORD dwMaxRxQueue; + DWORD dwMaxBaud; + DWORD dwProvSubType; + DWORD dwProvCapabilities; + DWORD dwSettableParams; + DWORD dwSettableBaud; + WORD wSettableData; + WORD wSettableStopParity; + DWORD dwCurrentTxQueue; + DWORD dwCurrentRxQueue; + DWORD dwProvSpec1; + DWORD dwProvSpec2; + WCHAR wcProvChar[1]; +} COMMPROP,*LPCOMMPROP; + + + + + + + +typedef struct _COMSTAT { + DWORD fCtsHold : 1; + DWORD fDsrHold : 1; + DWORD fRlsdHold : 1; + DWORD fXoffHold : 1; + DWORD fXoffSent : 1; + DWORD fEof : 1; + DWORD fTxim : 1; + DWORD fReserved : 25; + DWORD cbInQue; + DWORD cbOutQue; +} COMSTAT, *LPCOMSTAT; +# 534 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct _DCB { + DWORD DCBlength; + DWORD BaudRate; + DWORD fBinary: 1; + DWORD fParity: 1; + DWORD fOutxCtsFlow:1; + DWORD fOutxDsrFlow:1; + DWORD fDtrControl:2; + DWORD fDsrSensitivity:1; + DWORD fTXContinueOnXoff: 1; + DWORD fOutX: 1; + DWORD fInX: 1; + DWORD fErrorChar: 1; + DWORD fNull: 1; + DWORD fRtsControl:2; + DWORD fAbortOnError:1; + DWORD fDummy2:17; + WORD wReserved; + WORD XonLim; + WORD XoffLim; + BYTE ByteSize; + BYTE Parity; + BYTE StopBits; + char XonChar; + char XoffChar; + char ErrorChar; + char EofChar; + char EvtChar; + WORD wReserved1; +} DCB, *LPDCB; + +typedef struct _COMMTIMEOUTS { + DWORD ReadIntervalTimeout; + DWORD ReadTotalTimeoutMultiplier; + DWORD ReadTotalTimeoutConstant; + DWORD WriteTotalTimeoutMultiplier; + DWORD WriteTotalTimeoutConstant; +} COMMTIMEOUTS,*LPCOMMTIMEOUTS; + +typedef struct _COMMCONFIG { + DWORD dwSize; + WORD wVersion; + WORD wReserved; + DCB dcb; + DWORD dwProviderSubType; + + DWORD dwProviderOffset; + + DWORD dwProviderSize; + WCHAR wcProviderData[1]; +} COMMCONFIG,*LPCOMMCONFIG; +# 629 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct _MEMORYSTATUS { + DWORD dwLength; + DWORD dwMemoryLoad; + SIZE_T dwTotalPhys; + SIZE_T dwAvailPhys; + SIZE_T dwTotalPageFile; + SIZE_T dwAvailPageFile; + SIZE_T dwTotalVirtual; + SIZE_T dwAvailVirtual; +} MEMORYSTATUS, *LPMEMORYSTATUS; +# 737 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct _JIT_DEBUG_INFO { + DWORD dwSize; + DWORD dwProcessorArchitecture; + DWORD dwThreadID; + DWORD dwReserved0; + ULONG64 lpExceptionAddress; + ULONG64 lpExceptionRecord; + ULONG64 lpContextRecord; +} JIT_DEBUG_INFO, *LPJIT_DEBUG_INFO; + +typedef JIT_DEBUG_INFO JIT_DEBUG_INFO32, *LPJIT_DEBUG_INFO32; +typedef JIT_DEBUG_INFO JIT_DEBUG_INFO64, *LPJIT_DEBUG_INFO64; +# 757 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef PEXCEPTION_RECORD LPEXCEPTION_RECORD; +typedef PEXCEPTION_POINTERS LPEXCEPTION_POINTERS; +# 1007 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct _OFSTRUCT { + BYTE cBytes; + BYTE fFixedDisk; + WORD nErrCode; + WORD Reserved1; + WORD Reserved2; + CHAR szPathName[128]; +} OFSTRUCT, *LPOFSTRUCT, *POFSTRUCT; +# 1027 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +int + + + + +__stdcall + + + + +WinMain ( + HINSTANCE hInstance, + HINSTANCE hPrevInstance, + LPSTR lpCmdLine, + int nShowCmd + ); + +int + + + +__stdcall + +wWinMain( + HINSTANCE hInstance, + HINSTANCE hPrevInstance, + LPWSTR lpCmdLine, + int nShowCmd + ); + + + + + + + +__declspec(dllimport) + + +__declspec(allocator) +HGLOBAL +__stdcall +GlobalAlloc( + UINT uFlags, + SIZE_T dwBytes + ); + + + + + + + +__declspec(dllimport) + +__declspec(allocator) +HGLOBAL +__stdcall +GlobalReAlloc ( + HGLOBAL hMem, + SIZE_T dwBytes, + UINT uFlags + ); + + + + + + + +__declspec(dllimport) +SIZE_T +__stdcall +GlobalSize ( + HGLOBAL hMem + ); + +__declspec(dllimport) +BOOL +__stdcall +GlobalUnlock( + HGLOBAL hMem + ); + +__declspec(dllimport) + +LPVOID +__stdcall +GlobalLock ( + HGLOBAL hMem + ); + + + + + + + +__declspec(dllimport) +UINT +__stdcall +GlobalFlags ( + HGLOBAL hMem + ); + +__declspec(dllimport) + +HGLOBAL +__stdcall +GlobalHandle ( + LPCVOID pMem + ); + + + + + + + +__declspec(dllimport) + + +HGLOBAL +__stdcall +GlobalFree( + HGLOBAL hMem + ); + + + + + + + +__declspec(dllimport) +SIZE_T +__stdcall +GlobalCompact( + DWORD dwMinFree + ); + +__declspec(dllimport) +void +__stdcall +GlobalFix( + HGLOBAL hMem + ); + +__declspec(dllimport) +void +__stdcall +GlobalUnfix( + HGLOBAL hMem + ); + +__declspec(dllimport) +LPVOID +__stdcall +GlobalWire( + HGLOBAL hMem + ); + +__declspec(dllimport) +BOOL +__stdcall +GlobalUnWire( + HGLOBAL hMem + ); + + +__declspec(dllimport) +void +__stdcall +GlobalMemoryStatus( + LPMEMORYSTATUS lpBuffer + ); + + + + + + + +__declspec(dllimport) + + +__declspec(allocator) +HLOCAL +__stdcall +LocalAlloc( + UINT uFlags, + SIZE_T uBytes + ); + +__declspec(dllimport) + +__declspec(allocator) +HLOCAL +__stdcall +LocalReAlloc( + HLOCAL hMem, + SIZE_T uBytes, + UINT uFlags + ); + + + + + + + +__declspec(dllimport) + +LPVOID +__stdcall +LocalLock( + HLOCAL hMem + ); + + + + + + + +__declspec(dllimport) + +HLOCAL +__stdcall +LocalHandle( + LPCVOID pMem + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +LocalUnlock( + HLOCAL hMem + ); + + + + + + + +__declspec(dllimport) +SIZE_T +__stdcall +LocalSize( + HLOCAL hMem + ); + + + + + + + +__declspec(dllimport) +UINT +__stdcall +LocalFlags( + HLOCAL hMem + ); + + + + + + + +__declspec(dllimport) + + +HLOCAL +__stdcall +LocalFree( + HLOCAL hMem + ); + + + + + + + +__declspec(dllimport) +SIZE_T +__stdcall +LocalShrink( + HLOCAL hMem, + UINT cbNewSize + ); + +__declspec(dllimport) +SIZE_T +__stdcall +LocalCompact( + UINT uMinFree + ); +# 1351 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetBinaryTypeA( + LPCSTR lpApplicationName, + LPDWORD lpBinaryType + ); +__declspec(dllimport) +BOOL +__stdcall +GetBinaryTypeW( + LPCWSTR lpApplicationName, + LPDWORD lpBinaryType + ); + + + + + + +__declspec(dllimport) + +DWORD +__stdcall +GetShortPathNameA( + LPCSTR lpszLongPath, + LPSTR lpszShortPath, + DWORD cchBuffer + ); + + + + + + +__declspec(dllimport) + +DWORD +__stdcall +GetLongPathNameTransactedA( + LPCSTR lpszShortPath, + LPSTR lpszLongPath, + DWORD cchBuffer, + HANDLE hTransaction + ); +__declspec(dllimport) + +DWORD +__stdcall +GetLongPathNameTransactedW( + LPCWSTR lpszShortPath, + LPWSTR lpszLongPath, + DWORD cchBuffer, + HANDLE hTransaction + ); +# 1420 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetProcessAffinityMask( + HANDLE hProcess, + PDWORD_PTR lpProcessAffinityMask, + PDWORD_PTR lpSystemAffinityMask + ); + +__declspec(dllimport) +BOOL +__stdcall +SetProcessAffinityMask( + HANDLE hProcess, + DWORD_PTR dwProcessAffinityMask + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetProcessIoCounters( + HANDLE hProcess, + PIO_COUNTERS lpIoCounters + ); + +__declspec(dllimport) + +void +__stdcall +FatalExit( + int ExitCode + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetEnvironmentStringsA( + LPCH NewEnvironment + ); +# 1489 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +void +__stdcall +SwitchToFiber( + LPVOID lpFiber + ); + +__declspec(dllimport) +void +__stdcall +DeleteFiber( + LPVOID lpFiber + ); + + + +__declspec(dllimport) +BOOL +__stdcall +ConvertFiberToThread( + void + ); + + + +__declspec(dllimport) + +LPVOID +__stdcall +CreateFiberEx( + SIZE_T dwStackCommitSize, + SIZE_T dwStackReserveSize, + DWORD dwFlags, + LPFIBER_START_ROUTINE lpStartAddress, + LPVOID lpParameter + ); + +__declspec(dllimport) + +LPVOID +__stdcall +ConvertThreadToFiberEx( + LPVOID lpParameter, + DWORD dwFlags + ); + + + + + + + +__declspec(dllimport) + +LPVOID +__stdcall +CreateFiber( + SIZE_T dwStackSize, + LPFIBER_START_ROUTINE lpStartAddress, + LPVOID lpParameter + ); + +__declspec(dllimport) + +LPVOID +__stdcall +ConvertThreadToFiber( + LPVOID lpParameter + ); +# 1577 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef void *PUMS_CONTEXT; + +typedef void *PUMS_COMPLETION_LIST; + +typedef enum _RTL_UMS_THREAD_INFO_CLASS UMS_THREAD_INFO_CLASS, *PUMS_THREAD_INFO_CLASS; + +typedef enum _RTL_UMS_SCHEDULER_REASON UMS_SCHEDULER_REASON; + +typedef PRTL_UMS_SCHEDULER_ENTRY_POINT PUMS_SCHEDULER_ENTRY_POINT; + +typedef struct _UMS_SCHEDULER_STARTUP_INFO { + + + + + ULONG UmsVersion; + + + + + PUMS_COMPLETION_LIST CompletionList; + + + + + + PUMS_SCHEDULER_ENTRY_POINT SchedulerProc; + + + + + PVOID SchedulerParam; + +} UMS_SCHEDULER_STARTUP_INFO, *PUMS_SCHEDULER_STARTUP_INFO; + +typedef struct _UMS_SYSTEM_THREAD_INFORMATION { + ULONG UmsVersion; + union { + struct { + ULONG IsUmsSchedulerThread : 1; + ULONG IsUmsWorkerThread : 1; + } ; + ULONG ThreadUmsFlags; + } ; +} UMS_SYSTEM_THREAD_INFORMATION, *PUMS_SYSTEM_THREAD_INFORMATION; + + +__declspec(dllimport) +BOOL +__stdcall +CreateUmsCompletionList( + PUMS_COMPLETION_LIST* UmsCompletionList + ); + +__declspec(dllimport) +BOOL +__stdcall +DequeueUmsCompletionListItems( + PUMS_COMPLETION_LIST UmsCompletionList, + DWORD WaitTimeOut, + PUMS_CONTEXT* UmsThreadList + ); + +__declspec(dllimport) +BOOL +__stdcall +GetUmsCompletionListEvent( + PUMS_COMPLETION_LIST UmsCompletionList, + PHANDLE UmsCompletionEvent + ); + +__declspec(dllimport) +BOOL +__stdcall +ExecuteUmsThread( + PUMS_CONTEXT UmsThread + ); + +__declspec(dllimport) +BOOL +__stdcall +UmsThreadYield( + PVOID SchedulerParam + ); + +__declspec(dllimport) +BOOL +__stdcall +DeleteUmsCompletionList( + PUMS_COMPLETION_LIST UmsCompletionList + ); + +__declspec(dllimport) +PUMS_CONTEXT +__stdcall +GetCurrentUmsThread( + void + ); + +__declspec(dllimport) +PUMS_CONTEXT +__stdcall +GetNextUmsListItem( + PUMS_CONTEXT UmsContext + ); + +__declspec(dllimport) +BOOL +__stdcall +QueryUmsThreadInformation( + PUMS_CONTEXT UmsThread, + UMS_THREAD_INFO_CLASS UmsThreadInfoClass, + PVOID UmsThreadInformation, + ULONG UmsThreadInformationLength, + PULONG ReturnLength + ); + +__declspec(dllimport) +BOOL +__stdcall +SetUmsThreadInformation( + PUMS_CONTEXT UmsThread, + UMS_THREAD_INFO_CLASS UmsThreadInfoClass, + PVOID UmsThreadInformation, + ULONG UmsThreadInformationLength + ); + +__declspec(dllimport) +BOOL +__stdcall +DeleteUmsThreadContext( + PUMS_CONTEXT UmsThread + ); + +__declspec(dllimport) +BOOL +__stdcall +CreateUmsThreadContext( + PUMS_CONTEXT *lpUmsThread + ); + +__declspec(dllimport) +BOOL +__stdcall +EnterUmsSchedulingMode( + PUMS_SCHEDULER_STARTUP_INFO SchedulerStartupInfo + ); + +__declspec(dllimport) +BOOL +__stdcall +GetUmsSystemThreadInformation( + HANDLE ThreadHandle, + PUMS_SYSTEM_THREAD_INFORMATION SystemThreadInfo + ); +# 1747 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +DWORD_PTR +__stdcall +SetThreadAffinityMask( + HANDLE hThread, + DWORD_PTR dwThreadAffinityMask + ); +# 1766 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetProcessDEPPolicy( + DWORD dwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +GetProcessDEPPolicy( + HANDLE hProcess, + LPDWORD lpFlags, + PBOOL lpPermanent + ); + + + +__declspec(dllimport) +BOOL +__stdcall +RequestWakeupLatency( + LATENCY_TIME latency + ); + +__declspec(dllimport) +BOOL +__stdcall +IsSystemResumeAutomatic( + void + ); + +__declspec(dllimport) +BOOL +__stdcall +GetThreadSelectorEntry( + HANDLE hThread, + DWORD dwSelector, + LPLDT_ENTRY lpSelectorEntry + ); + +__declspec(dllimport) +EXECUTION_STATE +__stdcall +SetThreadExecutionState( + EXECUTION_STATE esFlags + ); + + + + + + + +typedef REASON_CONTEXT POWER_REQUEST_CONTEXT, *PPOWER_REQUEST_CONTEXT, *LPPOWER_REQUEST_CONTEXT; + +__declspec(dllimport) +HANDLE +__stdcall +PowerCreateRequest ( + PREASON_CONTEXT Context + ); + +__declspec(dllimport) +BOOL +__stdcall +PowerSetRequest ( + HANDLE PowerRequest, + POWER_REQUEST_TYPE RequestType + ); + +__declspec(dllimport) +BOOL +__stdcall +PowerClearRequest ( + HANDLE PowerRequest, + POWER_REQUEST_TYPE RequestType + ); +# 1908 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetFileCompletionNotificationModes( + HANDLE FileHandle, + UCHAR Flags + ); +# 1933 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +Wow64GetThreadSelectorEntry( + HANDLE hThread, + DWORD dwSelector, + PWOW64_LDT_ENTRY lpSelectorEntry + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +DebugSetProcessKillOnExit( + BOOL KillOnExit + ); + +__declspec(dllimport) +BOOL +__stdcall +DebugBreakProcess ( + HANDLE Process + ); +# 1976 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +PulseEvent( + HANDLE hEvent + ); + +__declspec(dllimport) +ATOM +__stdcall +GlobalDeleteAtom( + ATOM nAtom + ); + +__declspec(dllimport) +BOOL +__stdcall +InitAtomTable( + DWORD nSize + ); + +__declspec(dllimport) +ATOM +__stdcall +DeleteAtom( + ATOM nAtom + ); + +__declspec(dllimport) +UINT +__stdcall +SetHandleCount( + UINT uNumber + ); + +__declspec(dllimport) +BOOL +__stdcall +RequestDeviceWakeup( + HANDLE hDevice + ); + +__declspec(dllimport) +BOOL +__stdcall +CancelDeviceWakeupRequest( + HANDLE hDevice + ); + +__declspec(dllimport) +BOOL +__stdcall +GetDevicePowerState( + HANDLE hDevice, + BOOL *pfOn + ); + +__declspec(dllimport) +BOOL +__stdcall +SetMessageWaitingIndicator( + HANDLE hMsgIndicator, + ULONG ulMsgCount + ); + + +__declspec(dllimport) +BOOL +__stdcall +SetFileShortNameA( + HANDLE hFile, + LPCSTR lpShortName + ); +__declspec(dllimport) +BOOL +__stdcall +SetFileShortNameW( + HANDLE hFile, + LPCWSTR lpShortName + ); +# 2079 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +DWORD +__stdcall +LoadModule( + LPCSTR lpModuleName, + LPVOID lpParameterBlock + ); + + + +__declspec(dllimport) +UINT +__stdcall +WinExec( + LPCSTR lpCmdLine, + UINT uCmdShow + ); +# 2104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +ClearCommBreak( + HANDLE hFile + ); + +__declspec(dllimport) +BOOL +__stdcall +ClearCommError( + HANDLE hFile, + LPDWORD lpErrors, + LPCOMSTAT lpStat + ); + +__declspec(dllimport) +BOOL +__stdcall +SetupComm( + HANDLE hFile, + DWORD dwInQueue, + DWORD dwOutQueue + ); + +__declspec(dllimport) +BOOL +__stdcall +EscapeCommFunction( + HANDLE hFile, + DWORD dwFunc + ); + +__declspec(dllimport) + +BOOL +__stdcall +GetCommConfig( + HANDLE hCommDev, + LPCOMMCONFIG lpCC, + LPDWORD lpdwSize + ); + +__declspec(dllimport) +BOOL +__stdcall +GetCommMask( + HANDLE hFile, + LPDWORD lpEvtMask + ); + +__declspec(dllimport) +BOOL +__stdcall +GetCommProperties( + HANDLE hFile, + LPCOMMPROP lpCommProp + ); + +__declspec(dllimport) +BOOL +__stdcall +GetCommModemStatus( + HANDLE hFile, + LPDWORD lpModemStat + ); + +__declspec(dllimport) +BOOL +__stdcall +GetCommState( + HANDLE hFile, + LPDCB lpDCB + ); + +__declspec(dllimport) +BOOL +__stdcall +GetCommTimeouts( + HANDLE hFile, + LPCOMMTIMEOUTS lpCommTimeouts + ); + +__declspec(dllimport) +BOOL +__stdcall +PurgeComm( + HANDLE hFile, + DWORD dwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +SetCommBreak( + HANDLE hFile + ); + +__declspec(dllimport) +BOOL +__stdcall +SetCommConfig( + HANDLE hCommDev, + LPCOMMCONFIG lpCC, + DWORD dwSize + ); + +__declspec(dllimport) +BOOL +__stdcall +SetCommMask( + HANDLE hFile, + DWORD dwEvtMask + ); + +__declspec(dllimport) +BOOL +__stdcall +SetCommState( + HANDLE hFile, + LPDCB lpDCB + ); + +__declspec(dllimport) +BOOL +__stdcall +SetCommTimeouts( + HANDLE hFile, + LPCOMMTIMEOUTS lpCommTimeouts + ); + +__declspec(dllimport) +BOOL +__stdcall +TransmitCommChar( + HANDLE hFile, + char cChar + ); + +__declspec(dllimport) +BOOL +__stdcall +WaitCommEvent( + HANDLE hFile, + LPDWORD lpEvtMask, + LPOVERLAPPED lpOverlapped + ); + + + + +__declspec(dllimport) +HANDLE +__stdcall +OpenCommPort( + ULONG uPortNumber, + DWORD dwDesiredAccess, + DWORD dwFlagsAndAttributes + ); + + + + + +__declspec(dllimport) +ULONG +__stdcall +GetCommPorts( + PULONG lpPortNumbers, + ULONG uPortNumbersCount, + PULONG puPortNumbersFound + ); +# 2285 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +DWORD +__stdcall +SetTapePosition( + HANDLE hDevice, + DWORD dwPositionMethod, + DWORD dwPartition, + DWORD dwOffsetLow, + DWORD dwOffsetHigh, + BOOL bImmediate + ); + +__declspec(dllimport) +DWORD +__stdcall +GetTapePosition( + HANDLE hDevice, + DWORD dwPositionType, + LPDWORD lpdwPartition, + LPDWORD lpdwOffsetLow, + LPDWORD lpdwOffsetHigh + ); + +__declspec(dllimport) +DWORD +__stdcall +PrepareTape( + HANDLE hDevice, + DWORD dwOperation, + BOOL bImmediate + ); + +__declspec(dllimport) +DWORD +__stdcall +EraseTape( + HANDLE hDevice, + DWORD dwEraseType, + BOOL bImmediate + ); + +__declspec(dllimport) +DWORD +__stdcall +CreateTapePartition( + HANDLE hDevice, + DWORD dwPartitionMethod, + DWORD dwCount, + DWORD dwSize + ); + +__declspec(dllimport) +DWORD +__stdcall +WriteTapemark( + HANDLE hDevice, + DWORD dwTapemarkType, + DWORD dwTapemarkCount, + BOOL bImmediate + ); + +__declspec(dllimport) +DWORD +__stdcall +GetTapeStatus( + HANDLE hDevice + ); + +__declspec(dllimport) +DWORD +__stdcall +GetTapeParameters( + HANDLE hDevice, + DWORD dwOperation, + LPDWORD lpdwSize, + LPVOID lpTapeInformation + ); + + + + +__declspec(dllimport) +DWORD +__stdcall +SetTapeParameters( + HANDLE hDevice, + DWORD dwOperation, + LPVOID lpTapeInformation + ); +# 2384 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +int +__stdcall +MulDiv( + int nNumber, + int nNumerator, + int nDenominator + ); + + + + + + + +typedef enum _DEP_SYSTEM_POLICY_TYPE { + DEPPolicyAlwaysOff = 0, + DEPPolicyAlwaysOn, + DEPPolicyOptIn, + DEPPolicyOptOut, + DEPTotalPolicyCount +} DEP_SYSTEM_POLICY_TYPE; + + + +__declspec(dllimport) +DEP_SYSTEM_POLICY_TYPE +__stdcall +GetSystemDEPPolicy( + void + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetSystemRegistryQuota( + PDWORD pdwQuotaAllowed, + PDWORD pdwQuotaUsed + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +FileTimeToDosDateTime( + const FILETIME *lpFileTime, + LPWORD lpFatDate, + LPWORD lpFatTime + ); + +__declspec(dllimport) +BOOL +__stdcall +DosDateTimeToFileTime( + WORD wFatDate, + WORD wFatTime, + LPFILETIME lpFileTime + ); +# 2461 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + +DWORD +__stdcall +FormatMessageA( + DWORD dwFlags, + LPCVOID lpSource, + DWORD dwMessageId, + DWORD dwLanguageId, + + + LPSTR lpBuffer, + DWORD nSize, + va_list *Arguments + ); +__declspec(dllimport) + +DWORD +__stdcall +FormatMessageW( + DWORD dwFlags, + LPCVOID lpSource, + DWORD dwMessageId, + DWORD dwLanguageId, + + + LPWSTR lpBuffer, + DWORD nSize, + va_list *Arguments + ); +# 2542 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +CreateMailslotA( + LPCSTR lpName, + DWORD nMaxMessageSize, + DWORD lReadTimeout, + LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); +__declspec(dllimport) +HANDLE +__stdcall +CreateMailslotW( + LPCWSTR lpName, + DWORD nMaxMessageSize, + DWORD lReadTimeout, + LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetMailslotInfo( + HANDLE hMailslot, + LPDWORD lpMaxMessageSize, + LPDWORD lpNextSize, + LPDWORD lpMessageCount, + LPDWORD lpReadTimeout + ); + +__declspec(dllimport) +BOOL +__stdcall +SetMailslotInfo( + HANDLE hMailslot, + DWORD lReadTimeout + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +EncryptFileA( + LPCSTR lpFileName + ); +__declspec(dllimport) +BOOL +__stdcall +EncryptFileW( + LPCWSTR lpFileName + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +DecryptFileA( + LPCSTR lpFileName, + DWORD dwReserved + ); +__declspec(dllimport) +BOOL +__stdcall +DecryptFileW( + LPCWSTR lpFileName, + DWORD dwReserved + ); +# 2642 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +FileEncryptionStatusA( + LPCSTR lpFileName, + LPDWORD lpStatus + ); +__declspec(dllimport) +BOOL +__stdcall +FileEncryptionStatusW( + LPCWSTR lpFileName, + LPDWORD lpStatus + ); +# 2668 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef +DWORD +(__stdcall *PFE_EXPORT_FUNC)( + PBYTE pbData, + PVOID pvCallbackContext, + ULONG ulLength + ); + +typedef +DWORD +(__stdcall *PFE_IMPORT_FUNC)( + PBYTE pbData, + PVOID pvCallbackContext, + PULONG ulLength + ); +# 2696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +DWORD +__stdcall +OpenEncryptedFileRawA( + LPCSTR lpFileName, + ULONG ulFlags, + PVOID *pvContext + ); +__declspec(dllimport) +DWORD +__stdcall +OpenEncryptedFileRawW( + LPCWSTR lpFileName, + ULONG ulFlags, + PVOID *pvContext + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +ReadEncryptedFileRaw( + PFE_EXPORT_FUNC pfExportCallback, + PVOID pvCallbackContext, + PVOID pvContext + ); + +__declspec(dllimport) +DWORD +__stdcall +WriteEncryptedFileRaw( + PFE_IMPORT_FUNC pfImportCallback, + PVOID pvCallbackContext, + PVOID pvContext + ); + +__declspec(dllimport) +void +__stdcall +CloseEncryptedFileRaw( + PVOID pvContext + ); +# 2753 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +int +__stdcall +lstrcmpA( + LPCSTR lpString1, + LPCSTR lpString2 + ); +__declspec(dllimport) +int +__stdcall +lstrcmpW( + LPCWSTR lpString1, + LPCWSTR lpString2 + ); + + + + + + +__declspec(dllimport) +int +__stdcall +lstrcmpiA( + LPCSTR lpString1, + LPCSTR lpString2 + ); +__declspec(dllimport) +int +__stdcall +lstrcmpiW( + LPCWSTR lpString1, + LPCWSTR lpString2 + ); +# 2800 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +#pragma warning(push) +#pragma warning(disable: 4995) + + +__declspec(dllimport) + + + + +LPSTR +__stdcall +lstrcpynA( + LPSTR lpString1, + LPCSTR lpString2, + int iMaxLength + ); +__declspec(dllimport) + + + + +LPWSTR +__stdcall +lstrcpynW( + LPWSTR lpString1, + LPCWSTR lpString2, + int iMaxLength + ); + + + + + + +__declspec(dllimport) +LPSTR +__stdcall +lstrcpyA( + LPSTR lpString1, + LPCSTR lpString2 + ); +__declspec(dllimport) +LPWSTR +__stdcall +lstrcpyW( + LPWSTR lpString1, + LPCWSTR lpString2 + ); + + + + + + +__declspec(dllimport) +LPSTR +__stdcall +lstrcatA( + LPSTR lpString1, + LPCSTR lpString2 + ); +__declspec(dllimport) +LPWSTR +__stdcall +lstrcatW( + LPWSTR lpString1, + LPCWSTR lpString2 + ); + + + + + + + +#pragma warning(pop) + + + + + + + + +__declspec(dllimport) +int +__stdcall +lstrlenA( + LPCSTR lpString + ); +__declspec(dllimport) +int +__stdcall +lstrlenW( + LPCWSTR lpString + ); +# 2908 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HFILE +__stdcall +OpenFile( + LPCSTR lpFileName, + LPOFSTRUCT lpReOpenBuff, + UINT uStyle + ); + +__declspec(dllimport) +HFILE +__stdcall +_lopen( + LPCSTR lpPathName, + int iReadWrite + ); + +__declspec(dllimport) +HFILE +__stdcall +_lcreat( + LPCSTR lpPathName, + int iAttribute + ); + +__declspec(dllimport) +UINT +__stdcall +_lread( + HFILE hFile, + LPVOID lpBuffer, + UINT uBytes + ); + +__declspec(dllimport) +UINT +__stdcall +_lwrite( + HFILE hFile, + LPCCH lpBuffer, + UINT uBytes + ); + +__declspec(dllimport) +long +__stdcall +_hread( + HFILE hFile, + LPVOID lpBuffer, + long lBytes + ); + +__declspec(dllimport) +long +__stdcall +_hwrite( + HFILE hFile, + LPCCH lpBuffer, + long lBytes + ); + +__declspec(dllimport) +HFILE +__stdcall +_lclose( + HFILE hFile + ); + +__declspec(dllimport) +LONG +__stdcall +_llseek( + HFILE hFile, + LONG lOffset, + int iOrigin + ); + +__declspec(dllimport) +BOOL +__stdcall +IsTextUnicode( + const void* lpv, + int iSize, + LPINT lpiResult + ); +# 3001 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +DWORD +__stdcall +SignalObjectAndWait( + HANDLE hObjectToSignal, + HANDLE hObjectToWaitOn, + DWORD dwMilliseconds, + BOOL bAlertable + ); +# 3018 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +BackupRead( + HANDLE hFile, + LPBYTE lpBuffer, + DWORD nNumberOfBytesToRead, + LPDWORD lpNumberOfBytesRead, + BOOL bAbort, + BOOL bProcessSecurity, + LPVOID *lpContext + ); + +__declspec(dllimport) +BOOL +__stdcall +BackupSeek( + HANDLE hFile, + DWORD dwLowBytesToSeek, + DWORD dwHighBytesToSeek, + LPDWORD lpdwLowByteSeeked, + LPDWORD lpdwHighByteSeeked, + LPVOID *lpContext + ); + +__declspec(dllimport) +BOOL +__stdcall +BackupWrite( + HANDLE hFile, + LPBYTE lpBuffer, + DWORD nNumberOfBytesToWrite, + LPDWORD lpNumberOfBytesWritten, + BOOL bAbort, + BOOL bProcessSecurity, + LPVOID *lpContext + ); + + + + +typedef struct _WIN32_STREAM_ID { + DWORD dwStreamId ; + DWORD dwStreamAttributes ; + LARGE_INTEGER Size ; + DWORD dwStreamNameSize ; + WCHAR cStreamName[ 1 ] ; +} WIN32_STREAM_ID, *LPWIN32_STREAM_ID ; +# 3140 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct _STARTUPINFOEXA { + STARTUPINFOA StartupInfo; + LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList; +} STARTUPINFOEXA, *LPSTARTUPINFOEXA; +typedef struct _STARTUPINFOEXW { + STARTUPINFOW StartupInfo; + LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList; +} STARTUPINFOEXW, *LPSTARTUPINFOEXW; + + + + +typedef STARTUPINFOEXA STARTUPINFOEX; +typedef LPSTARTUPINFOEXA LPSTARTUPINFOEX; +# 3172 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +OpenMutexA( + DWORD dwDesiredAccess, + BOOL bInheritHandle, + LPCSTR lpName + ); + + + + +__declspec(dllimport) + +HANDLE +__stdcall +CreateSemaphoreA( + LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, + LONG lInitialCount, + LONG lMaximumCount, + LPCSTR lpName + ); +# 3205 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +OpenSemaphoreA( + DWORD dwDesiredAccess, + BOOL bInheritHandle, + LPCSTR lpName + ); +# 3226 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +CreateWaitableTimerA( + LPSECURITY_ATTRIBUTES lpTimerAttributes, + BOOL bManualReset, + LPCSTR lpTimerName + ); + + + + +__declspec(dllimport) + +HANDLE +__stdcall +OpenWaitableTimerA( + DWORD dwDesiredAccess, + BOOL bInheritHandle, + LPCSTR lpTimerName + ); + + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +CreateSemaphoreExA( + LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, + LONG lInitialCount, + LONG lMaximumCount, + LPCSTR lpName, + DWORD dwFlags, + DWORD dwDesiredAccess + ); + + + + +__declspec(dllimport) + +HANDLE +__stdcall +CreateWaitableTimerExA( + LPSECURITY_ATTRIBUTES lpTimerAttributes, + LPCSTR lpTimerName, + DWORD dwFlags, + DWORD dwDesiredAccess + ); +# 3295 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +CreateFileMappingA( + HANDLE hFile, + LPSECURITY_ATTRIBUTES lpFileMappingAttributes, + DWORD flProtect, + DWORD dwMaximumSizeHigh, + DWORD dwMaximumSizeLow, + LPCSTR lpName + ); +# 3319 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +CreateFileMappingNumaA( + HANDLE hFile, + LPSECURITY_ATTRIBUTES lpFileMappingAttributes, + DWORD flProtect, + DWORD dwMaximumSizeHigh, + DWORD dwMaximumSizeLow, + LPCSTR lpName, + DWORD nndPreferred + ); +# 3345 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +OpenFileMappingA( + DWORD dwDesiredAccess, + BOOL bInheritHandle, + LPCSTR lpName + ); +# 3363 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + +DWORD +__stdcall +GetLogicalDriveStringsA( + DWORD nBufferLength, + LPSTR lpBuffer + ); +# 3390 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + +HMODULE +__stdcall +LoadPackagedLibrary ( + LPCWSTR lpwLibFileName, + DWORD Reserved + ); +# 3443 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +QueryFullProcessImageNameA( + HANDLE hProcess, + DWORD dwFlags, + LPSTR lpExeName, + PDWORD lpdwSize + ); +__declspec(dllimport) +BOOL +__stdcall +QueryFullProcessImageNameW( + HANDLE hProcess, + DWORD dwFlags, + LPWSTR lpExeName, + PDWORD lpdwSize + ); +# 3488 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef enum _PROC_THREAD_ATTRIBUTE_NUM { + ProcThreadAttributeParentProcess = 0, + ProcThreadAttributeHandleList = 2, + + ProcThreadAttributeGroupAffinity = 3, + ProcThreadAttributePreferredNode = 4, + ProcThreadAttributeIdealProcessor = 5, + ProcThreadAttributeUmsThread = 6, + ProcThreadAttributeMitigationPolicy = 7, + + + ProcThreadAttributeSecurityCapabilities = 9, + + ProcThreadAttributeProtectionLevel = 11, + + + + ProcThreadAttributeJobList = 13, + ProcThreadAttributeChildProcessPolicy = 14, + ProcThreadAttributeAllApplicationPackagesPolicy = 15, + ProcThreadAttributeWin32kFilter = 16, + + + ProcThreadAttributeSafeOpenPromptOriginClaim = 17, + + + ProcThreadAttributeDesktopAppPolicy = 18, + + + ProcThreadAttributePseudoConsole = 22, + + + + + ProcThreadAttributeMitigationAuditPolicy = 24, + ProcThreadAttributeMachineType = 25, + ProcThreadAttributeComponentFilter = 26, + + + ProcThreadAttributeEnableOptionalXStateFeatures = 27, + + + ProcThreadAttributeTrustedApp = 29, + +} PROC_THREAD_ATTRIBUTE_NUM; +# 4037 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +void +__stdcall +GetStartupInfoA( + LPSTARTUPINFOA lpStartupInfo + ); +# 4113 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetFirmwareEnvironmentVariableA( + LPCSTR lpName, + LPCSTR lpGuid, + PVOID pBuffer, + DWORD nSize + ); +__declspec(dllimport) +DWORD +__stdcall +GetFirmwareEnvironmentVariableW( + LPCWSTR lpName, + LPCWSTR lpGuid, + PVOID pBuffer, + DWORD nSize + ); +# 4139 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetFirmwareEnvironmentVariableExA( + LPCSTR lpName, + LPCSTR lpGuid, + PVOID pBuffer, + DWORD nSize, + PDWORD pdwAttribubutes + ); +__declspec(dllimport) +DWORD +__stdcall +GetFirmwareEnvironmentVariableExW( + LPCWSTR lpName, + LPCWSTR lpGuid, + PVOID pBuffer, + DWORD nSize, + PDWORD pdwAttribubutes + ); +# 4167 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetFirmwareEnvironmentVariableA( + LPCSTR lpName, + LPCSTR lpGuid, + PVOID pValue, + DWORD nSize + ); +__declspec(dllimport) +BOOL +__stdcall +SetFirmwareEnvironmentVariableW( + LPCWSTR lpName, + LPCWSTR lpGuid, + PVOID pValue, + DWORD nSize + ); +# 4193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetFirmwareEnvironmentVariableExA( + LPCSTR lpName, + LPCSTR lpGuid, + PVOID pValue, + DWORD nSize, + DWORD dwAttributes + ); +__declspec(dllimport) +BOOL +__stdcall +SetFirmwareEnvironmentVariableExW( + LPCWSTR lpName, + LPCWSTR lpGuid, + PVOID pValue, + DWORD nSize, + DWORD dwAttributes + ); +# 4229 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetFirmwareType ( + PFIRMWARE_TYPE FirmwareType + ); + + +__declspec(dllimport) +BOOL +__stdcall +IsNativeVhdBoot ( + PBOOL NativeVhdBoot + ); + + + +__declspec(dllimport) + +HRSRC +__stdcall +FindResourceA( + HMODULE hModule, + LPCSTR lpName, + LPCSTR lpType + ); + + + + +__declspec(dllimport) + +HRSRC +__stdcall +FindResourceExA( + HMODULE hModule, + LPCSTR lpType, + LPCSTR lpName, + WORD wLanguage + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +EnumResourceTypesA( + HMODULE hModule, + ENUMRESTYPEPROCA lpEnumFunc, + LONG_PTR lParam + ); +__declspec(dllimport) +BOOL +__stdcall +EnumResourceTypesW( + HMODULE hModule, + ENUMRESTYPEPROCW lpEnumFunc, + LONG_PTR lParam + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +EnumResourceLanguagesA( + HMODULE hModule, + LPCSTR lpType, + LPCSTR lpName, + ENUMRESLANGPROCA lpEnumFunc, + LONG_PTR lParam + ); +__declspec(dllimport) +BOOL +__stdcall +EnumResourceLanguagesW( + HMODULE hModule, + LPCWSTR lpType, + LPCWSTR lpName, + ENUMRESLANGPROCW lpEnumFunc, + LONG_PTR lParam + ); + + + + + + +__declspec(dllimport) +HANDLE +__stdcall +BeginUpdateResourceA( + LPCSTR pFileName, + BOOL bDeleteExistingResources + ); +__declspec(dllimport) +HANDLE +__stdcall +BeginUpdateResourceW( + LPCWSTR pFileName, + BOOL bDeleteExistingResources + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +UpdateResourceA( + HANDLE hUpdate, + LPCSTR lpType, + LPCSTR lpName, + WORD wLanguage, + LPVOID lpData, + DWORD cb + ); +__declspec(dllimport) +BOOL +__stdcall +UpdateResourceW( + HANDLE hUpdate, + LPCWSTR lpType, + LPCWSTR lpName, + WORD wLanguage, + LPVOID lpData, + DWORD cb + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +EndUpdateResourceA( + HANDLE hUpdate, + BOOL fDiscard + ); +__declspec(dllimport) +BOOL +__stdcall +EndUpdateResourceW( + HANDLE hUpdate, + BOOL fDiscard + ); +# 4391 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +ATOM +__stdcall +GlobalAddAtomA( + LPCSTR lpString + ); +__declspec(dllimport) +ATOM +__stdcall +GlobalAddAtomW( + LPCWSTR lpString + ); + + + + + + +__declspec(dllimport) +ATOM +__stdcall +GlobalAddAtomExA( + LPCSTR lpString, + DWORD Flags + ); +__declspec(dllimport) +ATOM +__stdcall +GlobalAddAtomExW( + LPCWSTR lpString, + DWORD Flags + ); + + + + + + +__declspec(dllimport) +ATOM +__stdcall +GlobalFindAtomA( + LPCSTR lpString + ); +__declspec(dllimport) +ATOM +__stdcall +GlobalFindAtomW( + LPCWSTR lpString + ); + + + + + + +__declspec(dllimport) +UINT +__stdcall +GlobalGetAtomNameA( + ATOM nAtom, + LPSTR lpBuffer, + int nSize + ); +__declspec(dllimport) +UINT +__stdcall +GlobalGetAtomNameW( + ATOM nAtom, + LPWSTR lpBuffer, + int nSize + ); + + + + + + +__declspec(dllimport) +ATOM +__stdcall +AddAtomA( + LPCSTR lpString + ); +__declspec(dllimport) +ATOM +__stdcall +AddAtomW( + LPCWSTR lpString + ); + + + + + + +__declspec(dllimport) +ATOM +__stdcall +FindAtomA( + LPCSTR lpString + ); +__declspec(dllimport) +ATOM +__stdcall +FindAtomW( + LPCWSTR lpString + ); + + + + + + +__declspec(dllimport) +UINT +__stdcall +GetAtomNameA( + ATOM nAtom, + LPSTR lpBuffer, + int nSize + ); +__declspec(dllimport) +UINT +__stdcall +GetAtomNameW( + ATOM nAtom, + LPWSTR lpBuffer, + int nSize + ); +# 4533 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +UINT +__stdcall +GetProfileIntA( + LPCSTR lpAppName, + LPCSTR lpKeyName, + INT nDefault + ); +__declspec(dllimport) +UINT +__stdcall +GetProfileIntW( + LPCWSTR lpAppName, + LPCWSTR lpKeyName, + INT nDefault + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetProfileStringA( + LPCSTR lpAppName, + LPCSTR lpKeyName, + LPCSTR lpDefault, + LPSTR lpReturnedString, + DWORD nSize + ); +__declspec(dllimport) +DWORD +__stdcall +GetProfileStringW( + LPCWSTR lpAppName, + LPCWSTR lpKeyName, + LPCWSTR lpDefault, + LPWSTR lpReturnedString, + DWORD nSize + ); +# 4587 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +WriteProfileStringA( + LPCSTR lpAppName, + LPCSTR lpKeyName, + LPCSTR lpString + ); +__declspec(dllimport) +BOOL +__stdcall +WriteProfileStringW( + LPCWSTR lpAppName, + LPCWSTR lpKeyName, + LPCWSTR lpString + ); +# 4615 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetProfileSectionA( + LPCSTR lpAppName, + LPSTR lpReturnedString, + DWORD nSize + ); +__declspec(dllimport) +DWORD +__stdcall +GetProfileSectionW( + LPCWSTR lpAppName, + LPWSTR lpReturnedString, + DWORD nSize + ); +# 4643 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +WriteProfileSectionA( + LPCSTR lpAppName, + LPCSTR lpString + ); +__declspec(dllimport) +BOOL +__stdcall +WriteProfileSectionW( + LPCWSTR lpAppName, + LPCWSTR lpString + ); +# 4669 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +UINT +__stdcall +GetPrivateProfileIntA( + LPCSTR lpAppName, + LPCSTR lpKeyName, + INT nDefault, + LPCSTR lpFileName + ); +__declspec(dllimport) +UINT +__stdcall +GetPrivateProfileIntW( + LPCWSTR lpAppName, + LPCWSTR lpKeyName, + INT nDefault, + LPCWSTR lpFileName + ); +# 4717 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetPrivateProfileStringA( + LPCSTR lpAppName, + LPCSTR lpKeyName, + LPCSTR lpDefault, + LPSTR lpReturnedString, + DWORD nSize, + LPCSTR lpFileName + ); +__declspec(dllimport) +DWORD +__stdcall +GetPrivateProfileStringW( + LPCWSTR lpAppName, + LPCWSTR lpKeyName, + LPCWSTR lpDefault, + LPWSTR lpReturnedString, + DWORD nSize, + LPCWSTR lpFileName + ); +# 4773 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +WritePrivateProfileStringA( + LPCSTR lpAppName, + LPCSTR lpKeyName, + LPCSTR lpString, + LPCSTR lpFileName + ); +__declspec(dllimport) +BOOL +__stdcall +WritePrivateProfileStringW( + LPCWSTR lpAppName, + LPCWSTR lpKeyName, + LPCWSTR lpString, + LPCWSTR lpFileName + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetPrivateProfileSectionA( + LPCSTR lpAppName, + LPSTR lpReturnedString, + DWORD nSize, + LPCSTR lpFileName + ); +__declspec(dllimport) +DWORD +__stdcall +GetPrivateProfileSectionW( + LPCWSTR lpAppName, + LPWSTR lpReturnedString, + DWORD nSize, + LPCWSTR lpFileName + ); +# 4845 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +WritePrivateProfileSectionA( + LPCSTR lpAppName, + LPCSTR lpString, + LPCSTR lpFileName + ); +__declspec(dllimport) +BOOL +__stdcall +WritePrivateProfileSectionW( + LPCWSTR lpAppName, + LPCWSTR lpString, + LPCWSTR lpFileName + ); +# 4873 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetPrivateProfileSectionNamesA( + LPSTR lpszReturnBuffer, + DWORD nSize, + LPCSTR lpFileName + ); +__declspec(dllimport) +DWORD +__stdcall +GetPrivateProfileSectionNamesW( + LPWSTR lpszReturnBuffer, + DWORD nSize, + LPCWSTR lpFileName + ); +# 4917 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetPrivateProfileStructA( + LPCSTR lpszSection, + LPCSTR lpszKey, + LPVOID lpStruct, + UINT uSizeStruct, + LPCSTR szFile + ); +__declspec(dllimport) +BOOL +__stdcall +GetPrivateProfileStructW( + LPCWSTR lpszSection, + LPCWSTR lpszKey, + LPVOID lpStruct, + UINT uSizeStruct, + LPCWSTR szFile + ); +# 4969 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +WritePrivateProfileStructA( + LPCSTR lpszSection, + LPCSTR lpszKey, + LPVOID lpStruct, + UINT uSizeStruct, + LPCSTR szFile + ); +__declspec(dllimport) +BOOL +__stdcall +WritePrivateProfileStructW( + LPCWSTR lpszSection, + LPCWSTR lpszKey, + LPVOID lpStruct, + UINT uSizeStruct, + LPCWSTR szFile + ); +# 5025 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef UINT (__stdcall* PGET_SYSTEM_WOW64_DIRECTORY_A)( LPSTR lpBuffer, UINT uSize); +typedef UINT (__stdcall* PGET_SYSTEM_WOW64_DIRECTORY_W)( LPWSTR lpBuffer, UINT uSize); +# 5099 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetDllDirectoryA( + LPCSTR lpPathName + ); +__declspec(dllimport) +BOOL +__stdcall +SetDllDirectoryW( + LPCWSTR lpPathName + ); +# 5119 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + +DWORD +__stdcall +GetDllDirectoryA( + DWORD nBufferLength, + LPSTR lpBuffer + ); +__declspec(dllimport) + +DWORD +__stdcall +GetDllDirectoryW( + DWORD nBufferLength, + LPWSTR lpBuffer + ); +# 5154 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetSearchPathMode ( + DWORD Flags + ); +# 5193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CreateDirectoryExA( + LPCSTR lpTemplateDirectory, + LPCSTR lpNewDirectory, + LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); +__declspec(dllimport) +BOOL +__stdcall +CreateDirectoryExW( + LPCWSTR lpTemplateDirectory, + LPCWSTR lpNewDirectory, + LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); +# 5223 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CreateDirectoryTransactedA( + LPCSTR lpTemplateDirectory, + LPCSTR lpNewDirectory, + LPSECURITY_ATTRIBUTES lpSecurityAttributes, + HANDLE hTransaction + ); +__declspec(dllimport) +BOOL +__stdcall +CreateDirectoryTransactedW( + LPCWSTR lpTemplateDirectory, + LPCWSTR lpNewDirectory, + LPSECURITY_ATTRIBUTES lpSecurityAttributes, + HANDLE hTransaction + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +RemoveDirectoryTransactedA( + LPCSTR lpPathName, + HANDLE hTransaction + ); +__declspec(dllimport) +BOOL +__stdcall +RemoveDirectoryTransactedW( + LPCWSTR lpPathName, + HANDLE hTransaction + ); + + + + + + +__declspec(dllimport) + +DWORD +__stdcall +GetFullPathNameTransactedA( + LPCSTR lpFileName, + DWORD nBufferLength, + LPSTR lpBuffer, + LPSTR *lpFilePart, + HANDLE hTransaction + ); +__declspec(dllimport) + +DWORD +__stdcall +GetFullPathNameTransactedW( + LPCWSTR lpFileName, + DWORD nBufferLength, + LPWSTR lpBuffer, + LPWSTR *lpFilePart, + HANDLE hTransaction + ); +# 5309 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DefineDosDeviceA( + DWORD dwFlags, + LPCSTR lpDeviceName, + LPCSTR lpTargetPath + ); + + + + +__declspec(dllimport) +DWORD +__stdcall +QueryDosDeviceA( + LPCSTR lpDeviceName, + LPSTR lpTargetPath, + DWORD ucchMax + ); +# 5343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +CreateFileTransactedA( + LPCSTR lpFileName, + DWORD dwDesiredAccess, + DWORD dwShareMode, + LPSECURITY_ATTRIBUTES lpSecurityAttributes, + DWORD dwCreationDisposition, + DWORD dwFlagsAndAttributes, + HANDLE hTemplateFile, + HANDLE hTransaction, + PUSHORT pusMiniVersion, + PVOID lpExtendedParameter + ); +__declspec(dllimport) +HANDLE +__stdcall +CreateFileTransactedW( + LPCWSTR lpFileName, + DWORD dwDesiredAccess, + DWORD dwShareMode, + LPSECURITY_ATTRIBUTES lpSecurityAttributes, + DWORD dwCreationDisposition, + DWORD dwFlagsAndAttributes, + HANDLE hTemplateFile, + HANDLE hTransaction, + PUSHORT pusMiniVersion, + PVOID lpExtendedParameter + ); +# 5389 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +ReOpenFile( + HANDLE hOriginalFile, + DWORD dwDesiredAccess, + DWORD dwShareMode, + DWORD dwFlagsAndAttributes + ); +# 5410 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetFileAttributesTransactedA( + LPCSTR lpFileName, + DWORD dwFileAttributes, + HANDLE hTransaction + ); +__declspec(dllimport) +BOOL +__stdcall +SetFileAttributesTransactedW( + LPCWSTR lpFileName, + DWORD dwFileAttributes, + HANDLE hTransaction + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetFileAttributesTransactedA( + LPCSTR lpFileName, + GET_FILEEX_INFO_LEVELS fInfoLevelId, + LPVOID lpFileInformation, + HANDLE hTransaction + ); +__declspec(dllimport) +BOOL +__stdcall +GetFileAttributesTransactedW( + LPCWSTR lpFileName, + GET_FILEEX_INFO_LEVELS fInfoLevelId, + LPVOID lpFileInformation, + HANDLE hTransaction + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetCompressedFileSizeTransactedA( + LPCSTR lpFileName, + LPDWORD lpFileSizeHigh, + HANDLE hTransaction + ); +__declspec(dllimport) +DWORD +__stdcall +GetCompressedFileSizeTransactedW( + LPCWSTR lpFileName, + LPDWORD lpFileSizeHigh, + HANDLE hTransaction + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +DeleteFileTransactedA( + LPCSTR lpFileName, + HANDLE hTransaction + ); +__declspec(dllimport) +BOOL +__stdcall +DeleteFileTransactedW( + LPCWSTR lpFileName, + HANDLE hTransaction + ); +# 5532 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CheckNameLegalDOS8Dot3A( + LPCSTR lpName, + LPSTR lpOemName, + DWORD OemNameSize, + PBOOL pbNameContainsSpaces , + PBOOL pbNameLegal + ); +__declspec(dllimport) +BOOL +__stdcall +CheckNameLegalDOS8Dot3W( + LPCWSTR lpName, + LPSTR lpOemName, + DWORD OemNameSize, + PBOOL pbNameContainsSpaces , + PBOOL pbNameLegal + ); +# 5570 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +FindFirstFileTransactedA( + LPCSTR lpFileName, + FINDEX_INFO_LEVELS fInfoLevelId, + LPVOID lpFindFileData, + FINDEX_SEARCH_OPS fSearchOp, + LPVOID lpSearchFilter, + DWORD dwAdditionalFlags, + HANDLE hTransaction + ); +__declspec(dllimport) +HANDLE +__stdcall +FindFirstFileTransactedW( + LPCWSTR lpFileName, + FINDEX_INFO_LEVELS fInfoLevelId, + LPVOID lpFindFileData, + FINDEX_SEARCH_OPS fSearchOp, + LPVOID lpSearchFilter, + DWORD dwAdditionalFlags, + HANDLE hTransaction + ); +# 5611 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CopyFileA( + LPCSTR lpExistingFileName, + LPCSTR lpNewFileName, + BOOL bFailIfExists + ); +__declspec(dllimport) +BOOL +__stdcall +CopyFileW( + LPCWSTR lpExistingFileName, + LPCWSTR lpNewFileName, + BOOL bFailIfExists + ); +# 5663 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef +DWORD +(__stdcall *LPPROGRESS_ROUTINE)( + LARGE_INTEGER TotalFileSize, + LARGE_INTEGER TotalBytesTransferred, + LARGE_INTEGER StreamSize, + LARGE_INTEGER StreamBytesTransferred, + DWORD dwStreamNumber, + DWORD dwCallbackReason, + HANDLE hSourceFile, + HANDLE hDestinationFile, + LPVOID lpData + ); + +__declspec(dllimport) +BOOL +__stdcall +CopyFileExA( + LPCSTR lpExistingFileName, + LPCSTR lpNewFileName, + LPPROGRESS_ROUTINE lpProgressRoutine, + LPVOID lpData, + + LPBOOL pbCancel, + DWORD dwCopyFlags + ); +__declspec(dllimport) +BOOL +__stdcall +CopyFileExW( + LPCWSTR lpExistingFileName, + LPCWSTR lpNewFileName, + LPPROGRESS_ROUTINE lpProgressRoutine, + LPVOID lpData, + + LPBOOL pbCancel, + DWORD dwCopyFlags + ); +# 5715 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CopyFileTransactedA( + LPCSTR lpExistingFileName, + LPCSTR lpNewFileName, + LPPROGRESS_ROUTINE lpProgressRoutine, + LPVOID lpData, + LPBOOL pbCancel, + DWORD dwCopyFlags, + HANDLE hTransaction + ); +__declspec(dllimport) +BOOL +__stdcall +CopyFileTransactedW( + LPCWSTR lpExistingFileName, + LPCWSTR lpNewFileName, + LPPROGRESS_ROUTINE lpProgressRoutine, + LPVOID lpData, + LPBOOL pbCancel, + DWORD dwCopyFlags, + HANDLE hTransaction + ); +# 5759 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef enum _COPYFILE2_MESSAGE_TYPE { + COPYFILE2_CALLBACK_NONE = 0, + COPYFILE2_CALLBACK_CHUNK_STARTED, + COPYFILE2_CALLBACK_CHUNK_FINISHED, + COPYFILE2_CALLBACK_STREAM_STARTED, + COPYFILE2_CALLBACK_STREAM_FINISHED, + COPYFILE2_CALLBACK_POLL_CONTINUE, + COPYFILE2_CALLBACK_ERROR, + COPYFILE2_CALLBACK_MAX, +} COPYFILE2_MESSAGE_TYPE; + +typedef enum _COPYFILE2_MESSAGE_ACTION { + COPYFILE2_PROGRESS_CONTINUE = 0, + COPYFILE2_PROGRESS_CANCEL, + COPYFILE2_PROGRESS_STOP, + COPYFILE2_PROGRESS_QUIET, + COPYFILE2_PROGRESS_PAUSE, +} COPYFILE2_MESSAGE_ACTION; + +typedef enum _COPYFILE2_COPY_PHASE { + COPYFILE2_PHASE_NONE = 0, + COPYFILE2_PHASE_PREPARE_SOURCE, + COPYFILE2_PHASE_PREPARE_DEST, + COPYFILE2_PHASE_READ_SOURCE, + COPYFILE2_PHASE_WRITE_DESTINATION, + COPYFILE2_PHASE_SERVER_COPY, + COPYFILE2_PHASE_NAMEGRAFT_COPY, + + COPYFILE2_PHASE_MAX, +} COPYFILE2_COPY_PHASE; + + + +typedef struct COPYFILE2_MESSAGE { + + COPYFILE2_MESSAGE_TYPE Type; + DWORD dwPadding; + + union { + + struct { + DWORD dwStreamNumber; + DWORD dwReserved; + HANDLE hSourceFile; + HANDLE hDestinationFile; + ULARGE_INTEGER uliChunkNumber; + ULARGE_INTEGER uliChunkSize; + ULARGE_INTEGER uliStreamSize; + ULARGE_INTEGER uliTotalFileSize; + } ChunkStarted; + + struct { + DWORD dwStreamNumber; + DWORD dwFlags; + HANDLE hSourceFile; + HANDLE hDestinationFile; + ULARGE_INTEGER uliChunkNumber; + ULARGE_INTEGER uliChunkSize; + ULARGE_INTEGER uliStreamSize; + ULARGE_INTEGER uliStreamBytesTransferred; + ULARGE_INTEGER uliTotalFileSize; + ULARGE_INTEGER uliTotalBytesTransferred; + } ChunkFinished; + + struct { + DWORD dwStreamNumber; + DWORD dwReserved; + HANDLE hSourceFile; + HANDLE hDestinationFile; + ULARGE_INTEGER uliStreamSize; + ULARGE_INTEGER uliTotalFileSize; + } StreamStarted; + + struct { + DWORD dwStreamNumber; + DWORD dwReserved; + HANDLE hSourceFile; + HANDLE hDestinationFile; + ULARGE_INTEGER uliStreamSize; + ULARGE_INTEGER uliStreamBytesTransferred; + ULARGE_INTEGER uliTotalFileSize; + ULARGE_INTEGER uliTotalBytesTransferred; + } StreamFinished; + + struct { + DWORD dwReserved; + } PollContinue; + + struct { + COPYFILE2_COPY_PHASE CopyPhase; + DWORD dwStreamNumber; + HRESULT hrFailure; + DWORD dwReserved; + ULARGE_INTEGER uliChunkNumber; + ULARGE_INTEGER uliStreamSize; + ULARGE_INTEGER uliStreamBytesTransferred; + ULARGE_INTEGER uliTotalFileSize; + ULARGE_INTEGER uliTotalBytesTransferred; + } Error; + + } Info; + +} COPYFILE2_MESSAGE; + +typedef +COPYFILE2_MESSAGE_ACTION (__stdcall *PCOPYFILE2_PROGRESS_ROUTINE)( + const COPYFILE2_MESSAGE *pMessage, + PVOID pvCallbackContext +); + +typedef struct COPYFILE2_EXTENDED_PARAMETERS { + DWORD dwSize; + DWORD dwCopyFlags; + BOOL *pfCancel; + PCOPYFILE2_PROGRESS_ROUTINE pProgressRoutine; + PVOID pvCallbackContext; +} COPYFILE2_EXTENDED_PARAMETERS; +# 5891 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct COPYFILE2_EXTENDED_PARAMETERS_V2 { + + DWORD dwSize; + DWORD dwCopyFlags; + BOOL *pfCancel; + PCOPYFILE2_PROGRESS_ROUTINE pProgressRoutine; + PVOID pvCallbackContext; + + + + DWORD dwCopyFlagsV2; +# 5910 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 + ULONG ioDesiredSize; + + + + ULONG ioDesiredRate; + + + PVOID reserved[8]; + +} COPYFILE2_EXTENDED_PARAMETERS_V2; +# 5936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HRESULT +__stdcall +CopyFile2( + PCWSTR pwszExistingFileName, + PCWSTR pwszNewFileName, + COPYFILE2_EXTENDED_PARAMETERS *pExtendedParameters +); +# 5955 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +MoveFileA( + LPCSTR lpExistingFileName, + LPCSTR lpNewFileName + ); +__declspec(dllimport) +BOOL +__stdcall +MoveFileW( + LPCWSTR lpExistingFileName, + LPCWSTR lpNewFileName + ); +# 6001 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +MoveFileExA( + LPCSTR lpExistingFileName, + LPCSTR lpNewFileName, + DWORD dwFlags + ); +__declspec(dllimport) +BOOL +__stdcall +MoveFileExW( + LPCWSTR lpExistingFileName, + LPCWSTR lpNewFileName, + DWORD dwFlags + ); +# 6030 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +MoveFileWithProgressA( + LPCSTR lpExistingFileName, + LPCSTR lpNewFileName, + LPPROGRESS_ROUTINE lpProgressRoutine, + LPVOID lpData, + DWORD dwFlags + ); +__declspec(dllimport) +BOOL +__stdcall +MoveFileWithProgressW( + LPCWSTR lpExistingFileName, + LPCWSTR lpNewFileName, + LPPROGRESS_ROUTINE lpProgressRoutine, + LPVOID lpData, + DWORD dwFlags + ); +# 6064 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +MoveFileTransactedA( + LPCSTR lpExistingFileName, + LPCSTR lpNewFileName, + LPPROGRESS_ROUTINE lpProgressRoutine, + LPVOID lpData, + DWORD dwFlags, + HANDLE hTransaction + ); +__declspec(dllimport) +BOOL +__stdcall +MoveFileTransactedW( + LPCWSTR lpExistingFileName, + LPCWSTR lpNewFileName, + LPPROGRESS_ROUTINE lpProgressRoutine, + LPVOID lpData, + DWORD dwFlags, + HANDLE hTransaction + ); +# 6123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +ReplaceFileA( + LPCSTR lpReplacedFileName, + LPCSTR lpReplacementFileName, + LPCSTR lpBackupFileName, + DWORD dwReplaceFlags, + LPVOID lpExclude, + LPVOID lpReserved + ); +__declspec(dllimport) +BOOL +__stdcall +ReplaceFileW( + LPCWSTR lpReplacedFileName, + LPCWSTR lpReplacementFileName, + LPCWSTR lpBackupFileName, + DWORD dwReplaceFlags, + LPVOID lpExclude, + LPVOID lpReserved + ); +# 6157 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CreateHardLinkA( + LPCSTR lpFileName, + LPCSTR lpExistingFileName, + LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); +__declspec(dllimport) +BOOL +__stdcall +CreateHardLinkW( + LPCWSTR lpFileName, + LPCWSTR lpExistingFileName, + LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); +# 6192 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CreateHardLinkTransactedA( + LPCSTR lpFileName, + LPCSTR lpExistingFileName, + LPSECURITY_ATTRIBUTES lpSecurityAttributes, + HANDLE hTransaction + ); +__declspec(dllimport) +BOOL +__stdcall +CreateHardLinkTransactedW( + LPCWSTR lpFileName, + LPCWSTR lpExistingFileName, + LPSECURITY_ATTRIBUTES lpSecurityAttributes, + HANDLE hTransaction + ); +# 6220 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +FindFirstStreamTransactedW ( + LPCWSTR lpFileName, + STREAM_INFO_LEVELS InfoLevel, + LPVOID lpFindStreamData, + DWORD dwFlags, + HANDLE hTransaction + ); + +__declspec(dllimport) +HANDLE +__stdcall +FindFirstFileNameTransactedW ( + LPCWSTR lpFileName, + DWORD dwFlags, + LPDWORD StringLength, + PWSTR LinkName, + HANDLE hTransaction + ); +# 6250 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +CreateNamedPipeA( + LPCSTR lpName, + DWORD dwOpenMode, + DWORD dwPipeMode, + DWORD nMaxInstances, + DWORD nOutBufferSize, + DWORD nInBufferSize, + DWORD nDefaultTimeOut, + LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); +# 6273 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetNamedPipeHandleStateA( + HANDLE hNamedPipe, + LPDWORD lpState, + LPDWORD lpCurInstances, + LPDWORD lpMaxCollectionCount, + LPDWORD lpCollectDataTimeout, + LPSTR lpUserName, + DWORD nMaxUserNameSize + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +CallNamedPipeA( + LPCSTR lpNamedPipeName, + LPVOID lpInBuffer, + DWORD nInBufferSize, + LPVOID lpOutBuffer, + DWORD nOutBufferSize, + LPDWORD lpBytesRead, + DWORD nTimeOut + ); +# 6312 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +WaitNamedPipeA( + LPCSTR lpNamedPipeName, + DWORD nTimeOut + ); +# 6338 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetNamedPipeClientComputerNameA( + HANDLE Pipe, + LPSTR ClientComputerName, + ULONG ClientComputerNameLength + ); +# 6357 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetNamedPipeClientProcessId( + HANDLE Pipe, + PULONG ClientProcessId + ); + +__declspec(dllimport) +BOOL +__stdcall +GetNamedPipeClientSessionId( + HANDLE Pipe, + PULONG ClientSessionId + ); + +__declspec(dllimport) +BOOL +__stdcall +GetNamedPipeServerProcessId( + HANDLE Pipe, + PULONG ServerProcessId + ); + +__declspec(dllimport) +BOOL +__stdcall +GetNamedPipeServerSessionId( + HANDLE Pipe, + PULONG ServerSessionId + ); +# 6397 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetVolumeLabelA( + LPCSTR lpRootPathName, + LPCSTR lpVolumeName + ); +__declspec(dllimport) +BOOL +__stdcall +SetVolumeLabelW( + LPCWSTR lpRootPathName, + LPCWSTR lpVolumeName + ); +# 6426 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetFileBandwidthReservation( + HANDLE hFile, + DWORD nPeriodMilliseconds, + DWORD nBytesPerPeriod, + BOOL bDiscardable, + LPDWORD lpTransferSize, + LPDWORD lpNumOutstandingRequests + ); + +__declspec(dllimport) +BOOL +__stdcall +GetFileBandwidthReservation( + HANDLE hFile, + LPDWORD lpPeriodMilliseconds, + LPDWORD lpBytesPerPeriod, + LPBOOL pDiscardable, + LPDWORD lpTransferSize, + LPDWORD lpNumOutstandingRequests + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +ClearEventLogA ( + HANDLE hEventLog, + LPCSTR lpBackupFileName + ); +__declspec(dllimport) +BOOL +__stdcall +ClearEventLogW ( + HANDLE hEventLog, + LPCWSTR lpBackupFileName + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +BackupEventLogA ( + HANDLE hEventLog, + LPCSTR lpBackupFileName + ); +__declspec(dllimport) +BOOL +__stdcall +BackupEventLogW ( + HANDLE hEventLog, + LPCWSTR lpBackupFileName + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CloseEventLog ( + HANDLE hEventLog + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +DeregisterEventSource ( + HANDLE hEventLog + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +NotifyChangeEventLog( + HANDLE hEventLog, + HANDLE hEvent + ); + +__declspec(dllimport) +BOOL +__stdcall +GetNumberOfEventLogRecords ( + HANDLE hEventLog, + PDWORD NumberOfRecords + ); + +__declspec(dllimport) +BOOL +__stdcall +GetOldestEventLogRecord ( + HANDLE hEventLog, + PDWORD OldestRecord + ); + +__declspec(dllimport) +HANDLE +__stdcall +OpenEventLogA ( + LPCSTR lpUNCServerName, + LPCSTR lpSourceName + ); +__declspec(dllimport) +HANDLE +__stdcall +OpenEventLogW ( + LPCWSTR lpUNCServerName, + LPCWSTR lpSourceName + ); +# 6572 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +RegisterEventSourceA ( + LPCSTR lpUNCServerName, + LPCSTR lpSourceName + ); +__declspec(dllimport) +HANDLE +__stdcall +RegisterEventSourceW ( + LPCWSTR lpUNCServerName, + LPCWSTR lpSourceName + ); +# 6597 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +OpenBackupEventLogA ( + LPCSTR lpUNCServerName, + LPCSTR lpFileName + ); +__declspec(dllimport) +HANDLE +__stdcall +OpenBackupEventLogW ( + LPCWSTR lpUNCServerName, + LPCWSTR lpFileName + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +ReadEventLogA ( + HANDLE hEventLog, + DWORD dwReadFlags, + DWORD dwRecordOffset, + LPVOID lpBuffer, + DWORD nNumberOfBytesToRead, + DWORD *pnBytesRead, + DWORD *pnMinNumberOfBytesNeeded + ); +__declspec(dllimport) +BOOL +__stdcall +ReadEventLogW ( + HANDLE hEventLog, + DWORD dwReadFlags, + DWORD dwRecordOffset, + LPVOID lpBuffer, + DWORD nNumberOfBytesToRead, + DWORD *pnBytesRead, + DWORD *pnMinNumberOfBytesNeeded + ); +# 6653 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +ReportEventA ( + HANDLE hEventLog, + WORD wType, + WORD wCategory, + DWORD dwEventID, + PSID lpUserSid, + WORD wNumStrings, + DWORD dwDataSize, + LPCSTR *lpStrings, + LPVOID lpRawData + ); +__declspec(dllimport) +BOOL +__stdcall +ReportEventW ( + HANDLE hEventLog, + WORD wType, + WORD wCategory, + DWORD dwEventID, + PSID lpUserSid, + WORD wNumStrings, + DWORD dwDataSize, + LPCWSTR *lpStrings, + LPVOID lpRawData + ); +# 6695 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct _EVENTLOG_FULL_INFORMATION +{ + DWORD dwFull; +} +EVENTLOG_FULL_INFORMATION, *LPEVENTLOG_FULL_INFORMATION; + +__declspec(dllimport) +BOOL +__stdcall +GetEventLogInformation ( + HANDLE hEventLog, + DWORD dwInfoLevel, + LPVOID lpBuffer, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded + ); +# 6719 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef ULONG OPERATION_ID; + + + + + +typedef struct _OPERATION_START_PARAMETERS { + ULONG Version; + OPERATION_ID OperationId; + ULONG Flags; +} OPERATION_START_PARAMETERS, *POPERATION_START_PARAMETERS; + + + + + + + +typedef struct _OPERATION_END_PARAMETERS { + ULONG Version; + OPERATION_ID OperationId; + ULONG Flags; +} OPERATION_END_PARAMETERS, *POPERATION_END_PARAMETERS; + + + +__declspec(dllimport) +BOOL +__stdcall +OperationStart ( + OPERATION_START_PARAMETERS* OperationStartParams + ); + +__declspec(dllimport) +BOOL +__stdcall +OperationEnd ( + OPERATION_END_PARAMETERS* OperationEndParams + ); +# 6767 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +AccessCheckAndAuditAlarmA ( + LPCSTR SubsystemName, + LPVOID HandleId, + LPSTR ObjectTypeName, + LPSTR ObjectName, + PSECURITY_DESCRIPTOR SecurityDescriptor, + DWORD DesiredAccess, + PGENERIC_MAPPING GenericMapping, + BOOL ObjectCreation, + LPDWORD GrantedAccess, + LPBOOL AccessStatus, + LPBOOL pfGenerateOnClose + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +AccessCheckByTypeAndAuditAlarmA ( + LPCSTR SubsystemName, + LPVOID HandleId, + LPCSTR ObjectTypeName, + LPCSTR ObjectName, + PSECURITY_DESCRIPTOR SecurityDescriptor, + PSID PrincipalSelfSid, + DWORD DesiredAccess, + AUDIT_EVENT_TYPE AuditType, + DWORD Flags, + POBJECT_TYPE_LIST ObjectTypeList, + DWORD ObjectTypeListLength, + PGENERIC_MAPPING GenericMapping, + BOOL ObjectCreation, + LPDWORD GrantedAccess, + LPBOOL AccessStatus, + LPBOOL pfGenerateOnClose + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +AccessCheckByTypeResultListAndAuditAlarmA ( + LPCSTR SubsystemName, + LPVOID HandleId, + LPCSTR ObjectTypeName, + LPCSTR ObjectName, + PSECURITY_DESCRIPTOR SecurityDescriptor, + PSID PrincipalSelfSid, + DWORD DesiredAccess, + AUDIT_EVENT_TYPE AuditType, + DWORD Flags, + POBJECT_TYPE_LIST ObjectTypeList, + DWORD ObjectTypeListLength, + PGENERIC_MAPPING GenericMapping, + BOOL ObjectCreation, + LPDWORD GrantedAccess, + LPDWORD AccessStatusList, + LPBOOL pfGenerateOnClose + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +AccessCheckByTypeResultListAndAuditAlarmByHandleA ( + LPCSTR SubsystemName, + LPVOID HandleId, + HANDLE ClientToken, + LPCSTR ObjectTypeName, + LPCSTR ObjectName, + PSECURITY_DESCRIPTOR SecurityDescriptor, + PSID PrincipalSelfSid, + DWORD DesiredAccess, + AUDIT_EVENT_TYPE AuditType, + DWORD Flags, + POBJECT_TYPE_LIST ObjectTypeList, + DWORD ObjectTypeListLength, + PGENERIC_MAPPING GenericMapping, + BOOL ObjectCreation, + LPDWORD GrantedAccess, + LPDWORD AccessStatusList, + LPBOOL pfGenerateOnClose + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +ObjectOpenAuditAlarmA ( + LPCSTR SubsystemName, + LPVOID HandleId, + LPSTR ObjectTypeName, + LPSTR ObjectName, + PSECURITY_DESCRIPTOR pSecurityDescriptor, + HANDLE ClientToken, + DWORD DesiredAccess, + DWORD GrantedAccess, + PPRIVILEGE_SET Privileges, + BOOL ObjectCreation, + BOOL AccessGranted, + LPBOOL GenerateOnClose + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +ObjectPrivilegeAuditAlarmA ( + LPCSTR SubsystemName, + LPVOID HandleId, + HANDLE ClientToken, + DWORD DesiredAccess, + PPRIVILEGE_SET Privileges, + BOOL AccessGranted + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +ObjectCloseAuditAlarmA ( + LPCSTR SubsystemName, + LPVOID HandleId, + BOOL GenerateOnClose + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +ObjectDeleteAuditAlarmA ( + LPCSTR SubsystemName, + LPVOID HandleId, + BOOL GenerateOnClose + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +PrivilegedServiceAuditAlarmA ( + LPCSTR SubsystemName, + LPCSTR ServiceName, + HANDLE ClientToken, + PPRIVILEGE_SET Privileges, + BOOL AccessGranted + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +AddConditionalAce ( + PACL pAcl, + DWORD dwAceRevision, + DWORD AceFlags, + UCHAR AceType, + DWORD AccessMask, + PSID pSid, + PWCHAR ConditionStr, + DWORD *ReturnLength + ); +# 6962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetFileSecurityA ( + LPCSTR lpFileName, + SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +GetFileSecurityA ( + LPCSTR lpFileName, + SECURITY_INFORMATION RequestedInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor, + DWORD nLength, + LPDWORD lpnLengthNeeded + ); +# 6995 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +ReadDirectoryChangesW( + HANDLE hDirectory, + LPVOID lpBuffer, + DWORD nBufferLength, + BOOL bWatchSubtree, + DWORD dwNotifyFilter, + LPDWORD lpBytesReturned, + LPOVERLAPPED lpOverlapped, + LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine + ); + + +__declspec(dllimport) +BOOL +__stdcall +ReadDirectoryChangesExW( + HANDLE hDirectory, + LPVOID lpBuffer, + DWORD nBufferLength, + BOOL bWatchSubtree, + DWORD dwNotifyFilter, + LPDWORD lpBytesReturned, + LPOVERLAPPED lpOverlapped, + LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, + READ_DIRECTORY_NOTIFY_INFORMATION_CLASS ReadDirectoryNotifyInformationClass + ); +# 7035 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + +LPVOID +__stdcall +MapViewOfFileExNuma( + HANDLE hFileMappingObject, + DWORD dwDesiredAccess, + DWORD dwFileOffsetHigh, + DWORD dwFileOffsetLow, + SIZE_T dwNumberOfBytesToMap, + LPVOID lpBaseAddress, + DWORD nndPreferred + ); + + + +__declspec(dllimport) +BOOL +__stdcall +IsBadReadPtr( + const void *lp, + UINT_PTR ucb + ); + +__declspec(dllimport) +BOOL +__stdcall +IsBadWritePtr( + LPVOID lp, + UINT_PTR ucb + ); + +__declspec(dllimport) +BOOL +__stdcall +IsBadHugeReadPtr( + const void *lp, + UINT_PTR ucb + ); + +__declspec(dllimport) +BOOL +__stdcall +IsBadHugeWritePtr( + LPVOID lp, + UINT_PTR ucb + ); + +__declspec(dllimport) +BOOL +__stdcall +IsBadCodePtr( + FARPROC lpfn + ); + +__declspec(dllimport) +BOOL +__stdcall +IsBadStringPtrA( + LPCSTR lpsz, + UINT_PTR ucchMax + ); +__declspec(dllimport) +BOOL +__stdcall +IsBadStringPtrW( + LPCWSTR lpsz, + UINT_PTR ucchMax + ); +# 7116 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + BOOL +__stdcall +LookupAccountSidA( + LPCSTR lpSystemName, + PSID Sid, + LPSTR Name, + LPDWORD cchName, + LPSTR ReferencedDomainName, + LPDWORD cchReferencedDomainName, + PSID_NAME_USE peUse + ); +__declspec(dllimport) + BOOL +__stdcall +LookupAccountSidW( + LPCWSTR lpSystemName, + PSID Sid, + LPWSTR Name, + LPDWORD cchName, + LPWSTR ReferencedDomainName, + LPDWORD cchReferencedDomainName, + PSID_NAME_USE peUse + ); + + + + + + +__declspec(dllimport) + BOOL +__stdcall +LookupAccountNameA( + LPCSTR lpSystemName, + LPCSTR lpAccountName, + PSID Sid, + LPDWORD cbSid, + LPSTR ReferencedDomainName, + LPDWORD cchReferencedDomainName, + PSID_NAME_USE peUse + ); +__declspec(dllimport) + BOOL +__stdcall +LookupAccountNameW( + LPCWSTR lpSystemName, + LPCWSTR lpAccountName, + PSID Sid, + LPDWORD cbSid, + LPWSTR ReferencedDomainName, + LPDWORD cchReferencedDomainName, + PSID_NAME_USE peUse + ); +# 7184 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + BOOL +__stdcall +LookupAccountNameLocalA( + LPCSTR lpAccountName, + PSID Sid, + LPDWORD cbSid, + LPSTR ReferencedDomainName, + LPDWORD cchReferencedDomainName, + PSID_NAME_USE peUse + ); +__declspec(dllimport) + BOOL +__stdcall +LookupAccountNameLocalW( + LPCWSTR lpAccountName, + PSID Sid, + LPDWORD cbSid, + LPWSTR ReferencedDomainName, + LPDWORD cchReferencedDomainName, + PSID_NAME_USE peUse + ); + + + + + + +__declspec(dllimport) + BOOL +__stdcall +LookupAccountSidLocalA( + PSID Sid, + LPSTR Name, + LPDWORD cchName, + LPSTR ReferencedDomainName, + LPDWORD cchReferencedDomainName, + PSID_NAME_USE peUse + ); +__declspec(dllimport) + BOOL +__stdcall +LookupAccountSidLocalW( + PSID Sid, + LPWSTR Name, + LPDWORD cchName, + LPWSTR ReferencedDomainName, + LPDWORD cchReferencedDomainName, + PSID_NAME_USE peUse + ); +# 7270 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +LookupPrivilegeValueA( + LPCSTR lpSystemName, + LPCSTR lpName, + PLUID lpLuid + ); +__declspec(dllimport) +BOOL +__stdcall +LookupPrivilegeValueW( + LPCWSTR lpSystemName, + LPCWSTR lpName, + PLUID lpLuid + ); + + + + + + +__declspec(dllimport) + BOOL +__stdcall +LookupPrivilegeNameA( + LPCSTR lpSystemName, + PLUID lpLuid, + LPSTR lpName, + LPDWORD cchName + ); +__declspec(dllimport) + BOOL +__stdcall +LookupPrivilegeNameW( + LPCWSTR lpSystemName, + PLUID lpLuid, + LPWSTR lpName, + LPDWORD cchName + ); + + + + + + +__declspec(dllimport) + BOOL +__stdcall +LookupPrivilegeDisplayNameA( + LPCSTR lpSystemName, + LPCSTR lpName, + LPSTR lpDisplayName, + LPDWORD cchDisplayName, + LPDWORD lpLanguageId + ); +__declspec(dllimport) + BOOL +__stdcall +LookupPrivilegeDisplayNameW( + LPCWSTR lpSystemName, + LPCWSTR lpName, + LPWSTR lpDisplayName, + LPDWORD cchDisplayName, + LPDWORD lpLanguageId + ); +# 7348 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +BuildCommDCBA( + LPCSTR lpDef, + LPDCB lpDCB + ); +__declspec(dllimport) +BOOL +__stdcall +BuildCommDCBW( + LPCWSTR lpDef, + LPDCB lpDCB + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +BuildCommDCBAndTimeoutsA( + LPCSTR lpDef, + LPDCB lpDCB, + LPCOMMTIMEOUTS lpCommTimeouts + ); +__declspec(dllimport) +BOOL +__stdcall +BuildCommDCBAndTimeoutsW( + LPCWSTR lpDef, + LPDCB lpDCB, + LPCOMMTIMEOUTS lpCommTimeouts + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CommConfigDialogA( + LPCSTR lpszName, + HWND hWnd, + LPCOMMCONFIG lpCC + ); +__declspec(dllimport) +BOOL +__stdcall +CommConfigDialogW( + LPCWSTR lpszName, + HWND hWnd, + LPCOMMCONFIG lpCC + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetDefaultCommConfigA( + LPCSTR lpszName, + LPCOMMCONFIG lpCC, + LPDWORD lpdwSize + ); +__declspec(dllimport) +BOOL +__stdcall +GetDefaultCommConfigW( + LPCWSTR lpszName, + LPCOMMCONFIG lpCC, + LPDWORD lpdwSize + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetDefaultCommConfigA( + LPCSTR lpszName, + LPCOMMCONFIG lpCC, + DWORD dwSize + ); +__declspec(dllimport) +BOOL +__stdcall +SetDefaultCommConfigW( + LPCWSTR lpszName, + LPCOMMCONFIG lpCC, + DWORD dwSize + ); +# 7468 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +GetComputerNameA ( + LPSTR lpBuffer, + LPDWORD nSize + ); +__declspec(dllimport) + +BOOL +__stdcall +GetComputerNameW ( + LPWSTR lpBuffer, + LPDWORD nSize + ); +# 7499 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +DnsHostnameToComputerNameA ( + LPCSTR Hostname, + LPSTR ComputerName, + LPDWORD nSize + ); +__declspec(dllimport) + +BOOL +__stdcall +DnsHostnameToComputerNameW ( + LPCWSTR Hostname, + LPWSTR ComputerName, + LPDWORD nSize + ); +# 7525 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetUserNameA ( + LPSTR lpBuffer, + LPDWORD pcbBuffer + ); +__declspec(dllimport) +BOOL +__stdcall +GetUserNameW ( + LPWSTR lpBuffer, + LPDWORD pcbBuffer + ); +# 7573 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +LogonUserA ( + LPCSTR lpszUsername, + LPCSTR lpszDomain, + LPCSTR lpszPassword, + DWORD dwLogonType, + DWORD dwLogonProvider, + PHANDLE phToken + ); +__declspec(dllimport) +BOOL +__stdcall +LogonUserW ( + LPCWSTR lpszUsername, + LPCWSTR lpszDomain, + LPCWSTR lpszPassword, + DWORD dwLogonType, + DWORD dwLogonProvider, + PHANDLE phToken + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +LogonUserExA ( + LPCSTR lpszUsername, + LPCSTR lpszDomain, + LPCSTR lpszPassword, + DWORD dwLogonType, + DWORD dwLogonProvider, + PHANDLE phToken, + PSID *ppLogonSid, + PVOID *ppProfileBuffer, + LPDWORD pdwProfileLength, + PQUOTA_LIMITS pQuotaLimits + ); +__declspec(dllimport) +BOOL +__stdcall +LogonUserExW ( + LPCWSTR lpszUsername, + LPCWSTR lpszDomain, + LPCWSTR lpszPassword, + DWORD dwLogonType, + DWORD dwLogonProvider, + PHANDLE phToken, + PSID *ppLogonSid, + PVOID *ppProfileBuffer, + LPDWORD pdwProfileLength, + PQUOTA_LIMITS pQuotaLimits + ); +# 7657 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + BOOL +__stdcall +CreateProcessWithLogonW( + LPCWSTR lpUsername, + LPCWSTR lpDomain, + LPCWSTR lpPassword, + DWORD dwLogonFlags, + LPCWSTR lpApplicationName, + LPWSTR lpCommandLine, + DWORD dwCreationFlags, + LPVOID lpEnvironment, + LPCWSTR lpCurrentDirectory, + LPSTARTUPINFOW lpStartupInfo, + LPPROCESS_INFORMATION lpProcessInformation + ); + +__declspec(dllimport) + BOOL +__stdcall +CreateProcessWithTokenW( + HANDLE hToken, + DWORD dwLogonFlags, + LPCWSTR lpApplicationName, + LPWSTR lpCommandLine, + DWORD dwCreationFlags, + LPVOID lpEnvironment, + LPCWSTR lpCurrentDirectory, + LPSTARTUPINFOW lpStartupInfo, + LPPROCESS_INFORMATION lpProcessInformation + ); + + + +__declspec(dllimport) +BOOL +__stdcall +IsTokenUntrusted( + HANDLE TokenHandle + ); +# 7709 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +RegisterWaitForSingleObject( + PHANDLE phNewWaitObject, + HANDLE hObject, + WAITORTIMERCALLBACK Callback, + PVOID Context, + ULONG dwMilliseconds, + ULONG dwFlags + ); + +__declspec(dllimport) + +BOOL +__stdcall +UnregisterWait( + HANDLE WaitHandle + ); + +__declspec(dllimport) +BOOL +__stdcall +BindIoCompletionCallback ( + HANDLE FileHandle, + LPOVERLAPPED_COMPLETION_ROUTINE Function, + ULONG Flags + ); + +__declspec(dllimport) +HANDLE +__stdcall +SetTimerQueueTimer( + HANDLE TimerQueue, + WAITORTIMERCALLBACK Callback, + PVOID Parameter, + DWORD DueTime, + DWORD Period, + BOOL PreferIo + ); + +__declspec(dllimport) + +BOOL +__stdcall +CancelTimerQueueTimer( + HANDLE TimerQueue, + HANDLE Timer + ); +# 7771 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__forceinline +void +InitializeThreadpoolEnvironment( + PTP_CALLBACK_ENVIRON pcbe + ) +{ + TpInitializeCallbackEnviron(pcbe); +} + +__forceinline +void +SetThreadpoolCallbackPool( + PTP_CALLBACK_ENVIRON pcbe, + PTP_POOL ptpp + ) +{ + TpSetCallbackThreadpool(pcbe, ptpp); +} + +__forceinline +void +SetThreadpoolCallbackCleanupGroup( + PTP_CALLBACK_ENVIRON pcbe, + PTP_CLEANUP_GROUP ptpcg, + PTP_CLEANUP_GROUP_CANCEL_CALLBACK pfng + ) +{ + TpSetCallbackCleanupGroup(pcbe, ptpcg, pfng); +} + +__forceinline +void +SetThreadpoolCallbackRunsLong( + PTP_CALLBACK_ENVIRON pcbe + ) +{ + TpSetCallbackLongFunction(pcbe); +} + +__forceinline +void +SetThreadpoolCallbackLibrary( + PTP_CALLBACK_ENVIRON pcbe, + PVOID mod + ) +{ + TpSetCallbackRaceWithDll(pcbe, mod); +} + + + +__forceinline +void +SetThreadpoolCallbackPriority( + PTP_CALLBACK_ENVIRON pcbe, + TP_CALLBACK_PRIORITY Priority + ) +{ + TpSetCallbackPriority(pcbe, Priority); +} + + + +__forceinline +void +DestroyThreadpoolEnvironment( + PTP_CALLBACK_ENVIRON pcbe + ) +{ + TpDestroyCallbackEnviron(pcbe); +} +# 7858 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__forceinline +void +SetThreadpoolCallbackPersistent( + PTP_CALLBACK_ENVIRON pcbe + ) +{ + TpSetCallbackPersistent(pcbe); +} +# 7879 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +CreatePrivateNamespaceA( + LPSECURITY_ATTRIBUTES lpPrivateNamespaceAttributes, + LPVOID lpBoundaryDescriptor, + LPCSTR lpAliasPrefix + ); + + + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +OpenPrivateNamespaceA( + LPVOID lpBoundaryDescriptor, + LPCSTR lpAliasPrefix + ); +# 7915 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) + +HANDLE +__stdcall +CreateBoundaryDescriptorA( + LPCSTR Name, + ULONG Flags + ); +# 7936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +AddIntegrityLabelToBoundaryDescriptor( + HANDLE * BoundaryDescriptor, + PSID IntegrityLabel + ); +# 7966 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct tagHW_PROFILE_INFOA { + DWORD dwDockInfo; + CHAR szHwProfileGuid[39]; + CHAR szHwProfileName[80]; +} HW_PROFILE_INFOA, *LPHW_PROFILE_INFOA; +typedef struct tagHW_PROFILE_INFOW { + DWORD dwDockInfo; + WCHAR szHwProfileGuid[39]; + WCHAR szHwProfileName[80]; +} HW_PROFILE_INFOW, *LPHW_PROFILE_INFOW; + + + + +typedef HW_PROFILE_INFOA HW_PROFILE_INFO; +typedef LPHW_PROFILE_INFOA LPHW_PROFILE_INFO; + + + +__declspec(dllimport) +BOOL +__stdcall +GetCurrentHwProfileA ( + LPHW_PROFILE_INFOA lpHwProfileInfo + ); +__declspec(dllimport) +BOOL +__stdcall +GetCurrentHwProfileW ( + LPHW_PROFILE_INFOW lpHwProfileInfo + ); +# 8010 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +VerifyVersionInfoA( + LPOSVERSIONINFOEXA lpVersionInformation, + DWORD dwTypeMask, + DWORDLONG dwlConditionMask + ); +__declspec(dllimport) +BOOL +__stdcall +VerifyVersionInfoW( + LPOSVERSIONINFOEXW lpVersionInformation, + DWORD dwTypeMask, + DWORDLONG dwlConditionMask + ); +# 8039 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winerror.h" 1 3 +# 29881 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winerror.h" 3 +__forceinline HRESULT HRESULT_FROM_WIN32(unsigned long x) { return (HRESULT)(x) <= 0 ? (HRESULT)(x) : (HRESULT) (((x) & 0x0000FFFF) | (7 << 16) | 0x80000000);} +# 39427 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winerror.h" 3 +__forceinline HRESULT HRESULT_FROM_SETUPAPI(unsigned long x) { return (((x) & (0x20000000|0xC0000000)) == (0x20000000|0xC0000000)) ? ((HRESULT) (((x) & 0x0000FFFF) | (15 << 16) | 0x80000000)) : HRESULT_FROM_WIN32(x);} +# 8040 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\timezoneapi.h" 1 3 +# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\timezoneapi.h" 3 +typedef struct _TIME_ZONE_INFORMATION { + LONG Bias; + WCHAR StandardName[ 32 ]; + SYSTEMTIME StandardDate; + LONG StandardBias; + WCHAR DaylightName[ 32 ]; + SYSTEMTIME DaylightDate; + LONG DaylightBias; +} TIME_ZONE_INFORMATION, *PTIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION; + +typedef struct _TIME_DYNAMIC_ZONE_INFORMATION { + LONG Bias; + WCHAR StandardName[ 32 ]; + SYSTEMTIME StandardDate; + LONG StandardBias; + WCHAR DaylightName[ 32 ]; + SYSTEMTIME DaylightDate; + LONG DaylightBias; + WCHAR TimeZoneKeyName[ 128 ]; + BOOLEAN DynamicDaylightTimeDisabled; +} DYNAMIC_TIME_ZONE_INFORMATION, *PDYNAMIC_TIME_ZONE_INFORMATION; + +__declspec(dllimport) + +BOOL +__stdcall +SystemTimeToTzSpecificLocalTime( + const TIME_ZONE_INFORMATION* lpTimeZoneInformation, + const SYSTEMTIME* lpUniversalTime, + LPSYSTEMTIME lpLocalTime + ); + +__declspec(dllimport) + +BOOL +__stdcall +TzSpecificLocalTimeToSystemTime( + const TIME_ZONE_INFORMATION* lpTimeZoneInformation, + const SYSTEMTIME* lpLocalTime, + LPSYSTEMTIME lpUniversalTime + ); + +__declspec(dllimport) + +BOOL +__stdcall +FileTimeToSystemTime( + const FILETIME* lpFileTime, + LPSYSTEMTIME lpSystemTime + ); + +__declspec(dllimport) + +BOOL +__stdcall +SystemTimeToFileTime( + const SYSTEMTIME* lpSystemTime, + LPFILETIME lpFileTime + ); + +__declspec(dllimport) + +DWORD +__stdcall +GetTimeZoneInformation( + LPTIME_ZONE_INFORMATION lpTimeZoneInformation + ); + +__declspec(dllimport) +BOOL +__stdcall +SetTimeZoneInformation( + const TIME_ZONE_INFORMATION* lpTimeZoneInformation + ); + + + +__declspec(dllimport) +BOOL +__stdcall +SetDynamicTimeZoneInformation( + const DYNAMIC_TIME_ZONE_INFORMATION* lpTimeZoneInformation + ); + + + + + +__declspec(dllimport) + +DWORD +__stdcall +GetDynamicTimeZoneInformation( + PDYNAMIC_TIME_ZONE_INFORMATION pTimeZoneInformation + ); + + + + + + +BOOL +__stdcall +GetTimeZoneInformationForYear( + USHORT wYear, + PDYNAMIC_TIME_ZONE_INFORMATION pdtzi, + LPTIME_ZONE_INFORMATION ptzi + ); + + + + + + + +__declspec(dllimport) + +DWORD +__stdcall +EnumDynamicTimeZoneInformation( + const DWORD dwIndex, + PDYNAMIC_TIME_ZONE_INFORMATION lpTimeZoneInformation + ); + +__declspec(dllimport) + +DWORD +__stdcall +GetDynamicTimeZoneInformationEffectiveYears( + const PDYNAMIC_TIME_ZONE_INFORMATION lpTimeZoneInformation, + LPDWORD FirstYear, + LPDWORD LastYear + ); + +__declspec(dllimport) + +BOOL +__stdcall +SystemTimeToTzSpecificLocalTimeEx( + const DYNAMIC_TIME_ZONE_INFORMATION* lpTimeZoneInformation, + const SYSTEMTIME* lpUniversalTime, + LPSYSTEMTIME lpLocalTime + ); + +__declspec(dllimport) + +BOOL +__stdcall +TzSpecificLocalTimeToSystemTimeEx( + const DYNAMIC_TIME_ZONE_INFORMATION* lpTimeZoneInformation, + const SYSTEMTIME* lpLocalTime, + LPSYSTEMTIME lpUniversalTime + ); + + + + + +__declspec(dllimport) + +BOOL +__stdcall +LocalFileTimeToLocalSystemTime( + const TIME_ZONE_INFORMATION* timeZoneInformation, + const FILETIME* localFileTime, + SYSTEMTIME* localSystemTime + ); + +__declspec(dllimport) + +BOOL +__stdcall +LocalSystemTimeToLocalFileTime( + const TIME_ZONE_INFORMATION* timeZoneInformation, + const SYSTEMTIME* localSystemTime, + FILETIME* localFileTime + ); +# 8041 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 +# 8057 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetSystemPowerState( + BOOL fSuspend, + BOOL fForce + ); +# 8096 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct _SYSTEM_POWER_STATUS { + BYTE ACLineStatus; + BYTE BatteryFlag; + BYTE BatteryLifePercent; + BYTE SystemStatusFlag; + DWORD BatteryLifeTime; + DWORD BatteryFullLifeTime; +} SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS; + +__declspec(dllimport) +BOOL +__stdcall +GetSystemPowerStatus( + LPSYSTEM_POWER_STATUS lpSystemPowerStatus + ); +# 8125 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +MapUserPhysicalPagesScatter( + PVOID *VirtualAddresses, + ULONG_PTR NumberOfPages, + PULONG_PTR PageArray + ); + + + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +CreateJobObjectA( + LPSECURITY_ATTRIBUTES lpJobAttributes, + LPCSTR lpName + ); + + + + + + + +__declspec(dllimport) + +HANDLE +__stdcall +OpenJobObjectA( + DWORD dwDesiredAccess, + BOOL bInheritHandle, + LPCSTR lpName + ); +# 8177 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CreateJobSet ( + ULONG NumJob, + PJOB_SET_ARRAY UserJobSet, + ULONG Flags); + + + + + + + +__declspec(dllimport) +HANDLE +__stdcall +FindFirstVolumeA( + LPSTR lpszVolumeName, + DWORD cchBufferLength + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +FindNextVolumeA( + HANDLE hFindVolume, + LPSTR lpszVolumeName, + DWORD cchBufferLength + ); +# 8220 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +FindFirstVolumeMountPointA( + LPCSTR lpszRootPathName, + LPSTR lpszVolumeMountPoint, + DWORD cchBufferLength + ); +__declspec(dllimport) +HANDLE +__stdcall +FindFirstVolumeMountPointW( + LPCWSTR lpszRootPathName, + LPWSTR lpszVolumeMountPoint, + DWORD cchBufferLength + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +FindNextVolumeMountPointA( + HANDLE hFindVolumeMountPoint, + LPSTR lpszVolumeMountPoint, + DWORD cchBufferLength + ); +__declspec(dllimport) +BOOL +__stdcall +FindNextVolumeMountPointW( + HANDLE hFindVolumeMountPoint, + LPWSTR lpszVolumeMountPoint, + DWORD cchBufferLength + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +FindVolumeMountPointClose( + HANDLE hFindVolumeMountPoint + ); + +__declspec(dllimport) +BOOL +__stdcall +SetVolumeMountPointA( + LPCSTR lpszVolumeMountPoint, + LPCSTR lpszVolumeName + ); +__declspec(dllimport) +BOOL +__stdcall +SetVolumeMountPointW( + LPCWSTR lpszVolumeMountPoint, + LPCWSTR lpszVolumeName + ); +# 8297 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DeleteVolumeMountPointA( + LPCSTR lpszVolumeMountPoint + ); +# 8317 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetVolumeNameForVolumeMountPointA( + LPCSTR lpszVolumeMountPoint, + LPSTR lpszVolumeName, + DWORD cchBufferLength +); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetVolumePathNameA( + LPCSTR lpszFileName, + LPSTR lpszVolumePathName, + DWORD cchBufferLength + ); +# 8354 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetVolumePathNamesForVolumeNameA( + LPCSTR lpszVolumeName, + LPCH lpszVolumePathNames, + DWORD cchBufferLength, + PDWORD lpcchReturnLength + ); +# 8381 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct tagACTCTXA { + ULONG cbSize; + DWORD dwFlags; + LPCSTR lpSource; + USHORT wProcessorArchitecture; + LANGID wLangId; + LPCSTR lpAssemblyDirectory; + LPCSTR lpResourceName; + LPCSTR lpApplicationName; + HMODULE hModule; +} ACTCTXA, *PACTCTXA; +typedef struct tagACTCTXW { + ULONG cbSize; + DWORD dwFlags; + LPCWSTR lpSource; + USHORT wProcessorArchitecture; + LANGID wLangId; + LPCWSTR lpAssemblyDirectory; + LPCWSTR lpResourceName; + LPCWSTR lpApplicationName; + HMODULE hModule; +} ACTCTXW, *PACTCTXW; + + + + +typedef ACTCTXA ACTCTX; +typedef PACTCTXA PACTCTX; + + +typedef const ACTCTXA *PCACTCTXA; +typedef const ACTCTXW *PCACTCTXW; + + + +typedef PCACTCTXA PCACTCTX; + + + + +__declspec(dllimport) +HANDLE +__stdcall +CreateActCtxA( + PCACTCTXA pActCtx + ); +__declspec(dllimport) +HANDLE +__stdcall +CreateActCtxW( + PCACTCTXW pActCtx + ); + + + + + + +__declspec(dllimport) +void +__stdcall +AddRefActCtx( + HANDLE hActCtx + ); + + +__declspec(dllimport) +void +__stdcall +ReleaseActCtx( + HANDLE hActCtx + ); + +__declspec(dllimport) +BOOL +__stdcall +ZombifyActCtx( + HANDLE hActCtx + ); + + + +__declspec(dllimport) +BOOL +__stdcall +ActivateActCtx( + HANDLE hActCtx, + ULONG_PTR *lpCookie + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +DeactivateActCtx( + DWORD dwFlags, + ULONG_PTR ulCookie + ); + +__declspec(dllimport) +BOOL +__stdcall +GetCurrentActCtx( + HANDLE *lphActCtx); + + +typedef struct tagACTCTX_SECTION_KEYED_DATA_2600 { + ULONG cbSize; + ULONG ulDataFormatVersion; + PVOID lpData; + ULONG ulLength; + PVOID lpSectionGlobalData; + ULONG ulSectionGlobalDataLength; + PVOID lpSectionBase; + ULONG ulSectionTotalLength; + HANDLE hActCtx; + ULONG ulAssemblyRosterIndex; +} ACTCTX_SECTION_KEYED_DATA_2600, *PACTCTX_SECTION_KEYED_DATA_2600; +typedef const ACTCTX_SECTION_KEYED_DATA_2600 * PCACTCTX_SECTION_KEYED_DATA_2600; + +typedef struct tagACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA { + PVOID lpInformation; + PVOID lpSectionBase; + ULONG ulSectionLength; + PVOID lpSectionGlobalDataBase; + ULONG ulSectionGlobalDataLength; +} ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, *PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; +typedef const ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA *PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; + +typedef struct tagACTCTX_SECTION_KEYED_DATA { + ULONG cbSize; + ULONG ulDataFormatVersion; + PVOID lpData; + ULONG ulLength; + PVOID lpSectionGlobalData; + ULONG ulSectionGlobalDataLength; + PVOID lpSectionBase; + ULONG ulSectionTotalLength; + HANDLE hActCtx; + ULONG ulAssemblyRosterIndex; + + ULONG ulFlags; + ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA AssemblyMetadata; +} ACTCTX_SECTION_KEYED_DATA, *PACTCTX_SECTION_KEYED_DATA; +typedef const ACTCTX_SECTION_KEYED_DATA * PCACTCTX_SECTION_KEYED_DATA; +# 8537 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +FindActCtxSectionStringA( + DWORD dwFlags, + const GUID *lpExtensionGuid, + ULONG ulSectionId, + LPCSTR lpStringToFind, + PACTCTX_SECTION_KEYED_DATA ReturnedData + ); + +__declspec(dllimport) +BOOL +__stdcall +FindActCtxSectionStringW( + DWORD dwFlags, + const GUID *lpExtensionGuid, + ULONG ulSectionId, + LPCWSTR lpStringToFind, + PACTCTX_SECTION_KEYED_DATA ReturnedData + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +FindActCtxSectionGuid( + DWORD dwFlags, + const GUID *lpExtensionGuid, + ULONG ulSectionId, + const GUID *lpGuidToFind, + PACTCTX_SECTION_KEYED_DATA ReturnedData + ); + + + + + +typedef struct _ACTIVATION_CONTEXT_BASIC_INFORMATION { + HANDLE hActCtx; + DWORD dwFlags; +} ACTIVATION_CONTEXT_BASIC_INFORMATION, *PACTIVATION_CONTEXT_BASIC_INFORMATION; + +typedef const struct _ACTIVATION_CONTEXT_BASIC_INFORMATION *PCACTIVATION_CONTEXT_BASIC_INFORMATION; +# 8627 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +QueryActCtxW( + DWORD dwFlags, + HANDLE hActCtx, + PVOID pvSubInstance, + ULONG ulInfoClass, + PVOID pvBuffer, + SIZE_T cbBuffer, + SIZE_T *pcbWrittenOrRequired + ); + +typedef BOOL (__stdcall * PQUERYACTCTXW_FUNC)( + DWORD dwFlags, + HANDLE hActCtx, + PVOID pvSubInstance, + ULONG ulInfoClass, + PVOID pvBuffer, + SIZE_T cbBuffer, + SIZE_T *pcbWrittenOrRequired + ); +# 8661 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +DWORD +__stdcall +WTSGetActiveConsoleSessionId( + void + ); + + + + + +__declspec(dllimport) +DWORD +__stdcall +WTSGetServiceSessionId( + void + ); + +__declspec(dllimport) +BOOLEAN +__stdcall +WTSIsServerContainer( + void + ); + + + + + +__declspec(dllimport) +WORD +__stdcall +GetActiveProcessorGroupCount( + void + ); + +__declspec(dllimport) +WORD +__stdcall +GetMaximumProcessorGroupCount( + void + ); + +__declspec(dllimport) +DWORD +__stdcall +GetActiveProcessorCount( + WORD GroupNumber + ); + +__declspec(dllimport) +DWORD +__stdcall +GetMaximumProcessorCount( + WORD GroupNumber + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetNumaProcessorNode( + UCHAR Processor, + PUCHAR NodeNumber + ); + + + +__declspec(dllimport) +BOOL +__stdcall +GetNumaNodeNumberFromHandle( + HANDLE hFile, + PUSHORT NodeNumber + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetNumaProcessorNodeEx( + PPROCESSOR_NUMBER Processor, + PUSHORT NodeNumber + ); + + + +__declspec(dllimport) +BOOL +__stdcall +GetNumaNodeProcessorMask( + UCHAR Node, + PULONGLONG ProcessorMask + ); + +__declspec(dllimport) +BOOL +__stdcall +GetNumaAvailableMemoryNode( + UCHAR Node, + PULONGLONG AvailableBytes + ); + + + +__declspec(dllimport) +BOOL +__stdcall +GetNumaAvailableMemoryNodeEx( + USHORT Node, + PULONGLONG AvailableBytes + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetNumaProximityNode( + ULONG ProximityId, + PUCHAR NodeNumber + ); +# 8805 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef DWORD (__stdcall *APPLICATION_RECOVERY_CALLBACK)(PVOID pvParameter); +# 8843 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HRESULT +__stdcall +RegisterApplicationRecoveryCallback( + APPLICATION_RECOVERY_CALLBACK pRecoveyCallback, + PVOID pvParameter, + DWORD dwPingInterval, + DWORD dwFlags + ); + +__declspec(dllimport) +HRESULT +__stdcall +UnregisterApplicationRecoveryCallback(void); + +__declspec(dllimport) +HRESULT +__stdcall +RegisterApplicationRestart( + PCWSTR pwzCommandline, + DWORD dwFlags + ); + +__declspec(dllimport) +HRESULT +__stdcall +UnregisterApplicationRestart(void); +# 8881 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HRESULT +__stdcall +GetApplicationRecoveryCallback( + HANDLE hProcess, + APPLICATION_RECOVERY_CALLBACK* pRecoveryCallback, + PVOID* ppvParameter, + PDWORD pdwPingInterval, + PDWORD pdwFlags + ); + +__declspec(dllimport) +HRESULT +__stdcall +GetApplicationRestartSettings( + HANDLE hProcess, + PWSTR pwzCommandline, + PDWORD pcchSize, + PDWORD pdwFlags + ); +# 8912 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +HRESULT +__stdcall +ApplicationRecoveryInProgress( + PBOOL pbCancelled + ); + +__declspec(dllimport) +void +__stdcall +ApplicationRecoveryFinished( + BOOL bSuccess + ); +# 8936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct _FILE_BASIC_INFO { + LARGE_INTEGER CreationTime; + LARGE_INTEGER LastAccessTime; + LARGE_INTEGER LastWriteTime; + LARGE_INTEGER ChangeTime; + DWORD FileAttributes; +} FILE_BASIC_INFO, *PFILE_BASIC_INFO; + +typedef struct _FILE_STANDARD_INFO { + LARGE_INTEGER AllocationSize; + LARGE_INTEGER EndOfFile; + DWORD NumberOfLinks; + BOOLEAN DeletePending; + BOOLEAN Directory; +} FILE_STANDARD_INFO, *PFILE_STANDARD_INFO; + +typedef struct _FILE_NAME_INFO { + DWORD FileNameLength; + WCHAR FileName[1]; +} FILE_NAME_INFO, *PFILE_NAME_INFO; + +typedef struct _FILE_CASE_SENSITIVE_INFO { + ULONG Flags; +} FILE_CASE_SENSITIVE_INFO, *PFILE_CASE_SENSITIVE_INFO; +# 8970 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct _FILE_RENAME_INFO { + + union { + BOOLEAN ReplaceIfExists; + DWORD Flags; + } ; + + + + HANDLE RootDirectory; + DWORD FileNameLength; + WCHAR FileName[1]; +} FILE_RENAME_INFO, *PFILE_RENAME_INFO; + +typedef struct _FILE_ALLOCATION_INFO { + LARGE_INTEGER AllocationSize; +} FILE_ALLOCATION_INFO, *PFILE_ALLOCATION_INFO; + +typedef struct _FILE_END_OF_FILE_INFO { + LARGE_INTEGER EndOfFile; +} FILE_END_OF_FILE_INFO, *PFILE_END_OF_FILE_INFO; + +typedef struct _FILE_STREAM_INFO { + DWORD NextEntryOffset; + DWORD StreamNameLength; + LARGE_INTEGER StreamSize; + LARGE_INTEGER StreamAllocationSize; + WCHAR StreamName[1]; +} FILE_STREAM_INFO, *PFILE_STREAM_INFO; + +typedef struct _FILE_COMPRESSION_INFO { + LARGE_INTEGER CompressedFileSize; + WORD CompressionFormat; + UCHAR CompressionUnitShift; + UCHAR ChunkShift; + UCHAR ClusterShift; + UCHAR Reserved[3]; +} FILE_COMPRESSION_INFO, *PFILE_COMPRESSION_INFO; + +typedef struct _FILE_ATTRIBUTE_TAG_INFO { + DWORD FileAttributes; + DWORD ReparseTag; +} FILE_ATTRIBUTE_TAG_INFO, *PFILE_ATTRIBUTE_TAG_INFO; + +typedef struct _FILE_DISPOSITION_INFO { + BOOLEAN DeleteFileA; +} FILE_DISPOSITION_INFO, *PFILE_DISPOSITION_INFO; +# 9028 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct _FILE_DISPOSITION_INFO_EX { + DWORD Flags; +} FILE_DISPOSITION_INFO_EX, *PFILE_DISPOSITION_INFO_EX; + + +typedef struct _FILE_ID_BOTH_DIR_INFO { + DWORD NextEntryOffset; + DWORD FileIndex; + LARGE_INTEGER CreationTime; + LARGE_INTEGER LastAccessTime; + LARGE_INTEGER LastWriteTime; + LARGE_INTEGER ChangeTime; + LARGE_INTEGER EndOfFile; + LARGE_INTEGER AllocationSize; + DWORD FileAttributes; + DWORD FileNameLength; + DWORD EaSize; + CCHAR ShortNameLength; + WCHAR ShortName[12]; + LARGE_INTEGER FileId; + WCHAR FileName[1]; +} FILE_ID_BOTH_DIR_INFO, *PFILE_ID_BOTH_DIR_INFO; + +typedef struct _FILE_FULL_DIR_INFO { + ULONG NextEntryOffset; + ULONG FileIndex; + LARGE_INTEGER CreationTime; + LARGE_INTEGER LastAccessTime; + LARGE_INTEGER LastWriteTime; + LARGE_INTEGER ChangeTime; + LARGE_INTEGER EndOfFile; + LARGE_INTEGER AllocationSize; + ULONG FileAttributes; + ULONG FileNameLength; + ULONG EaSize; + WCHAR FileName[1]; +} FILE_FULL_DIR_INFO, *PFILE_FULL_DIR_INFO; + +typedef enum _PRIORITY_HINT { + IoPriorityHintVeryLow = 0, + IoPriorityHintLow, + IoPriorityHintNormal, + MaximumIoPriorityHintType +} PRIORITY_HINT; + +typedef struct _FILE_IO_PRIORITY_HINT_INFO { + PRIORITY_HINT PriorityHint; +} FILE_IO_PRIORITY_HINT_INFO, *PFILE_IO_PRIORITY_HINT_INFO; + + + + + +typedef struct _FILE_ALIGNMENT_INFO { + ULONG AlignmentRequirement; +} FILE_ALIGNMENT_INFO, *PFILE_ALIGNMENT_INFO; +# 9104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct _FILE_STORAGE_INFO { + ULONG LogicalBytesPerSector; + ULONG PhysicalBytesPerSectorForAtomicity; + ULONG PhysicalBytesPerSectorForPerformance; + ULONG FileSystemEffectivePhysicalBytesPerSectorForAtomicity; + ULONG Flags; + ULONG ByteOffsetForSectorAlignment; + ULONG ByteOffsetForPartitionAlignment; +} FILE_STORAGE_INFO, *PFILE_STORAGE_INFO; + + + + +typedef struct _FILE_ID_INFO { + ULONGLONG VolumeSerialNumber; + FILE_ID_128 FileId; +} FILE_ID_INFO, *PFILE_ID_INFO; + + + + +typedef struct _FILE_ID_EXTD_DIR_INFO { + ULONG NextEntryOffset; + ULONG FileIndex; + LARGE_INTEGER CreationTime; + LARGE_INTEGER LastAccessTime; + LARGE_INTEGER LastWriteTime; + LARGE_INTEGER ChangeTime; + LARGE_INTEGER EndOfFile; + LARGE_INTEGER AllocationSize; + ULONG FileAttributes; + ULONG FileNameLength; + ULONG EaSize; + ULONG ReparsePointTag; + FILE_ID_128 FileId; + WCHAR FileName[1]; +} FILE_ID_EXTD_DIR_INFO, *PFILE_ID_EXTD_DIR_INFO; +# 9183 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +typedef struct _FILE_REMOTE_PROTOCOL_INFO +{ + + USHORT StructureVersion; + USHORT StructureSize; + + ULONG Protocol; + + + USHORT ProtocolMajorVersion; + USHORT ProtocolMinorVersion; + USHORT ProtocolRevision; + + USHORT Reserved; + + + ULONG Flags; + + struct { + ULONG Reserved[8]; + } GenericReserved; +# 9214 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 + union { + + struct { + + struct { + ULONG Capabilities; + } Server; + + struct { + ULONG Capabilities; + + ULONG ShareFlags; + + + + } Share; + + } Smb2; + + ULONG Reserved[16]; + + } ProtocolSpecific; + + + +} FILE_REMOTE_PROTOCOL_INFO, *PFILE_REMOTE_PROTOCOL_INFO; + +__declspec(dllimport) +BOOL +__stdcall +GetFileInformationByHandleEx( + HANDLE hFile, + FILE_INFO_BY_HANDLE_CLASS FileInformationClass, + LPVOID lpFileInformation, + DWORD dwBufferSize +); + + + + + + + +typedef enum _FILE_ID_TYPE { + FileIdType, + ObjectIdType, + ExtendedFileIdType, + MaximumFileIdType +} FILE_ID_TYPE, *PFILE_ID_TYPE; + +typedef struct FILE_ID_DESCRIPTOR { + DWORD dwSize; + FILE_ID_TYPE Type; + union { + LARGE_INTEGER FileId; + GUID ObjectId; + + FILE_ID_128 ExtendedFileId; + + } ; +} FILE_ID_DESCRIPTOR, *LPFILE_ID_DESCRIPTOR; + +__declspec(dllimport) +HANDLE +__stdcall +OpenFileById ( + HANDLE hVolumeHint, + LPFILE_ID_DESCRIPTOR lpFileId, + DWORD dwDesiredAccess, + DWORD dwShareMode, + LPSECURITY_ATTRIBUTES lpSecurityAttributes, + DWORD dwFlagsAndAttributes + ); +# 9317 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOLEAN +__stdcall +CreateSymbolicLinkA ( + LPCSTR lpSymlinkFileName, + LPCSTR lpTargetFileName, + DWORD dwFlags + ); +__declspec(dllimport) +BOOLEAN +__stdcall +CreateSymbolicLinkW ( + LPCWSTR lpSymlinkFileName, + LPCWSTR lpTargetFileName, + DWORD dwFlags + ); +# 9343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +QueryActCtxSettingsW( + DWORD dwFlags, + HANDLE hActCtx, + PCWSTR settingsNameSpace, + PCWSTR settingName, + PWSTR pvBuffer, + SIZE_T dwBuffer, + SIZE_T *pdwWrittenOrRequired + ); +# 9366 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOLEAN +__stdcall +CreateSymbolicLinkTransactedA ( + LPCSTR lpSymlinkFileName, + LPCSTR lpTargetFileName, + DWORD dwFlags, + HANDLE hTransaction + ); +__declspec(dllimport) +BOOLEAN +__stdcall +CreateSymbolicLinkTransactedW ( + LPCWSTR lpSymlinkFileName, + LPCWSTR lpTargetFileName, + DWORD dwFlags, + HANDLE hTransaction + ); +# 9394 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +ReplacePartitionUnit ( + PWSTR TargetPartition, + PWSTR SparePartition, + ULONG Flags + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +AddSecureMemoryCacheCallback( + PSECURE_MEMORY_CACHE_CALLBACK pfnCallBack + ); + +__declspec(dllimport) +BOOL +__stdcall +RemoveSecureMemoryCacheCallback( + PSECURE_MEMORY_CACHE_CALLBACK pfnCallBack + ); +# 9433 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CopyContext( + PCONTEXT Destination, + DWORD ContextFlags, + PCONTEXT Source + ); +# 9449 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +InitializeContext( + PVOID Buffer, + DWORD ContextFlags, + PCONTEXT* Context, + PDWORD ContextLength + ); +# 9468 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +BOOL +__stdcall +InitializeContext2( + PVOID Buffer, + DWORD ContextFlags, + PCONTEXT* Context, + PDWORD ContextLength, + ULONG64 XStateCompactionMask + ); +# 9489 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +DWORD64 +__stdcall +GetEnabledXStateFeatures( + void + ); + + +__declspec(dllimport) +BOOL +__stdcall +GetXStateFeaturesMask( + PCONTEXT Context, + PDWORD64 FeatureMask + ); + + +__declspec(dllimport) +PVOID +__stdcall +LocateXStateFeature( + PCONTEXT Context, + DWORD FeatureId, + PDWORD Length + ); + + +__declspec(dllimport) +BOOL +__stdcall +SetXStateFeaturesMask( + PCONTEXT Context, + DWORD64 FeatureMask + ); + + + +__declspec(dllimport) +DWORD64 +__stdcall +GetThreadEnabledXStateFeatures( + void + ); + + +__declspec(dllimport) +BOOL +__stdcall +EnableProcessOptionalXStateFeatures( + DWORD64 Features + ); +# 9555 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +DWORD +__stdcall +EnableThreadProfiling( + HANDLE ThreadHandle, + DWORD Flags, + DWORD64 HardwareCounters, + HANDLE *PerformanceDataHandle + ); + +__declspec(dllimport) +DWORD +__stdcall +DisableThreadProfiling( + HANDLE PerformanceDataHandle + ); + +__declspec(dllimport) +DWORD +__stdcall +QueryThreadProfiling( + HANDLE ThreadHandle, + PBOOLEAN Enabled + ); + +__declspec(dllimport) +DWORD +__stdcall +ReadThreadProfilingData( + HANDLE PerformanceDataHandle, + DWORD Flags, + PPERFORMANCE_DATA PerformanceData + ); +# 9599 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +__declspec(dllimport) +DWORD +__stdcall +RaiseCustomSystemEventTrigger( + PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG CustomSystemEventTriggerConfig + ); +# 9638 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 +#pragma warning(pop) +# 177 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 1 3 +# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +#pragma warning(push) +#pragma warning(disable: 4201) + + + +#pragma warning(disable: 4820) +# 293 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct _DRAWPATRECT { + POINT ptPosition; + POINT ptSize; + WORD wStyle; + WORD wPattern; +} DRAWPATRECT, *PDRAWPATRECT; +# 425 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct _PSINJECTDATA { + + DWORD DataBytes; + WORD InjectionPoint; + WORD PageNumber; + + + +} PSINJECTDATA, *PPSINJECTDATA; +# 513 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct _PSFEATURE_OUTPUT { + + BOOL bPageIndependent; + BOOL bSetPageDevice; + +} PSFEATURE_OUTPUT, *PPSFEATURE_OUTPUT; + + + + + +typedef struct _PSFEATURE_CUSTPAPER { + + LONG lOrientation; + LONG lWidth; + LONG lHeight; + LONG lWidthOffset; + LONG lHeightOffset; + +} PSFEATURE_CUSTPAPER, *PPSFEATURE_CUSTPAPER; +# 593 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagXFORM + { + FLOAT eM11; + FLOAT eM12; + FLOAT eM21; + FLOAT eM22; + FLOAT eDx; + FLOAT eDy; + } XFORM, *PXFORM, *LPXFORM; + + +typedef struct tagBITMAP + { + LONG bmType; + LONG bmWidth; + LONG bmHeight; + LONG bmWidthBytes; + WORD bmPlanes; + WORD bmBitsPixel; + LPVOID bmBits; + } BITMAP, *PBITMAP, *NPBITMAP, *LPBITMAP; + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,1) +# 619 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 + + + + +typedef struct tagRGBTRIPLE { + BYTE rgbtBlue; + BYTE rgbtGreen; + BYTE rgbtRed; +} RGBTRIPLE, *PRGBTRIPLE, *NPRGBTRIPLE, *LPRGBTRIPLE; + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 + + + + +typedef struct tagRGBQUAD { + BYTE rgbBlue; + BYTE rgbGreen; + BYTE rgbRed; + BYTE rgbReserved; +} RGBQUAD; + + + + + + + +typedef RGBQUAD * LPRGBQUAD; +# 675 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef LONG LCSCSTYPE; + + + +typedef LONG LCSGAMUTMATCH; +# 707 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef long FXPT16DOT16, *LPFXPT16DOT16; +typedef long FXPT2DOT30, *LPFXPT2DOT30; + + + + +typedef struct tagCIEXYZ +{ + FXPT2DOT30 ciexyzX; + FXPT2DOT30 ciexyzY; + FXPT2DOT30 ciexyzZ; +} CIEXYZ; + + + + + + + +typedef CIEXYZ *LPCIEXYZ; + + + + + + + +typedef struct tagICEXYZTRIPLE +{ + CIEXYZ ciexyzRed; + CIEXYZ ciexyzGreen; + CIEXYZ ciexyzBlue; +} CIEXYZTRIPLE; + + + + + + + +typedef CIEXYZTRIPLE *LPCIEXYZTRIPLE; +# 760 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagLOGCOLORSPACEA { + DWORD lcsSignature; + DWORD lcsVersion; + DWORD lcsSize; + LCSCSTYPE lcsCSType; + LCSGAMUTMATCH lcsIntent; + CIEXYZTRIPLE lcsEndpoints; + DWORD lcsGammaRed; + DWORD lcsGammaGreen; + DWORD lcsGammaBlue; + CHAR lcsFilename[260]; +} LOGCOLORSPACEA, *LPLOGCOLORSPACEA; +typedef struct tagLOGCOLORSPACEW { + DWORD lcsSignature; + DWORD lcsVersion; + DWORD lcsSize; + LCSCSTYPE lcsCSType; + LCSGAMUTMATCH lcsIntent; + CIEXYZTRIPLE lcsEndpoints; + DWORD lcsGammaRed; + DWORD lcsGammaGreen; + DWORD lcsGammaBlue; + WCHAR lcsFilename[260]; +} LOGCOLORSPACEW, *LPLOGCOLORSPACEW; + + + + +typedef LOGCOLORSPACEA LOGCOLORSPACE; +typedef LPLOGCOLORSPACEA LPLOGCOLORSPACE; +# 801 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagBITMAPCOREHEADER { + DWORD bcSize; + WORD bcWidth; + WORD bcHeight; + WORD bcPlanes; + WORD bcBitCount; +} BITMAPCOREHEADER, *LPBITMAPCOREHEADER, *PBITMAPCOREHEADER; + + + + + + + +typedef struct tagBITMAPINFOHEADER{ + DWORD biSize; + LONG biWidth; + LONG biHeight; + WORD biPlanes; + WORD biBitCount; + DWORD biCompression; + DWORD biSizeImage; + LONG biXPelsPerMeter; + LONG biYPelsPerMeter; + DWORD biClrUsed; + DWORD biClrImportant; +} BITMAPINFOHEADER, *LPBITMAPINFOHEADER, *PBITMAPINFOHEADER; +# 837 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct { + DWORD bV4Size; + LONG bV4Width; + LONG bV4Height; + WORD bV4Planes; + WORD bV4BitCount; + DWORD bV4V4Compression; + DWORD bV4SizeImage; + LONG bV4XPelsPerMeter; + LONG bV4YPelsPerMeter; + DWORD bV4ClrUsed; + DWORD bV4ClrImportant; + DWORD bV4RedMask; + DWORD bV4GreenMask; + DWORD bV4BlueMask; + DWORD bV4AlphaMask; + DWORD bV4CSType; + CIEXYZTRIPLE bV4Endpoints; + DWORD bV4GammaRed; + DWORD bV4GammaGreen; + DWORD bV4GammaBlue; +} BITMAPV4HEADER, *LPBITMAPV4HEADER, *PBITMAPV4HEADER; +# 868 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct { + DWORD bV5Size; + LONG bV5Width; + LONG bV5Height; + WORD bV5Planes; + WORD bV5BitCount; + DWORD bV5Compression; + DWORD bV5SizeImage; + LONG bV5XPelsPerMeter; + LONG bV5YPelsPerMeter; + DWORD bV5ClrUsed; + DWORD bV5ClrImportant; + DWORD bV5RedMask; + DWORD bV5GreenMask; + DWORD bV5BlueMask; + DWORD bV5AlphaMask; + DWORD bV5CSType; + CIEXYZTRIPLE bV5Endpoints; + DWORD bV5GammaRed; + DWORD bV5GammaGreen; + DWORD bV5GammaBlue; + DWORD bV5Intent; + DWORD bV5ProfileData; + DWORD bV5ProfileSize; + DWORD bV5Reserved; +} BITMAPV5HEADER, *LPBITMAPV5HEADER, *PBITMAPV5HEADER; +# 916 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagBITMAPINFO { + BITMAPINFOHEADER bmiHeader; + RGBQUAD bmiColors[1]; +} BITMAPINFO, *LPBITMAPINFO, *PBITMAPINFO; + + + + + + + +typedef struct tagBITMAPCOREINFO { + BITMAPCOREHEADER bmciHeader; + RGBTRIPLE bmciColors[1]; +} BITMAPCOREINFO, *LPBITMAPCOREINFO, *PBITMAPCOREINFO; + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,2) +# 936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 + + + + +typedef struct tagBITMAPFILEHEADER { + WORD bfType; + DWORD bfSize; + WORD bfReserved1; + WORD bfReserved2; + DWORD bfOffBits; +} BITMAPFILEHEADER, *LPBITMAPFILEHEADER, *PBITMAPFILEHEADER; + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 952 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 +# 961 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagFONTSIGNATURE +{ + DWORD fsUsb[4]; + DWORD fsCsb[2]; +} FONTSIGNATURE, *PFONTSIGNATURE, *LPFONTSIGNATURE; + + + + + + + +typedef struct tagCHARSETINFO +{ + UINT ciCharset; + UINT ciACP; + FONTSIGNATURE fs; +} CHARSETINFO, *PCHARSETINFO, *NPCHARSETINFO, *LPCHARSETINFO; +# 993 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagLOCALESIGNATURE +{ + DWORD lsUsb[4]; + DWORD lsCsbDefault[2]; + DWORD lsCsbSupported[2]; +} LOCALESIGNATURE, *PLOCALESIGNATURE, *LPLOCALESIGNATURE; +# 1013 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagHANDLETABLE + { + HGDIOBJ objectHandle[1]; + } HANDLETABLE, *PHANDLETABLE, *LPHANDLETABLE; + +typedef struct tagMETARECORD + { + DWORD rdSize; + WORD rdFunction; + WORD rdParm[1]; + } METARECORD; + + + + + + + +typedef struct tagMETARECORD __unaligned *PMETARECORD; + + + + + + + +typedef struct tagMETARECORD __unaligned *LPMETARECORD; + +typedef struct tagMETAFILEPICT + { + LONG mm; + LONG xExt; + LONG yExt; + HMETAFILE hMF; + } METAFILEPICT, *LPMETAFILEPICT; + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,2) +# 1053 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 + + + + +typedef struct tagMETAHEADER +{ + WORD mtType; + WORD mtHeaderSize; + WORD mtVersion; + DWORD mtSize; + WORD mtNoObjects; + DWORD mtMaxRecord; + WORD mtNoParameters; +} METAHEADER; +typedef struct tagMETAHEADER __unaligned *PMETAHEADER; +typedef struct tagMETAHEADER __unaligned *LPMETAHEADER; + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 1074 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 + + + + + +typedef struct tagENHMETARECORD +{ + DWORD iType; + DWORD nSize; + DWORD dParm[1]; +} ENHMETARECORD, *PENHMETARECORD, *LPENHMETARECORD; + +typedef struct tagENHMETAHEADER +{ + DWORD iType; + DWORD nSize; + + RECTL rclBounds; + RECTL rclFrame; + DWORD dSignature; + DWORD nVersion; + DWORD nBytes; + DWORD nRecords; + WORD nHandles; + + WORD sReserved; + DWORD nDescription; + + DWORD offDescription; + + DWORD nPalEntries; + SIZEL szlDevice; + SIZEL szlMillimeters; + + DWORD cbPixelFormat; + + DWORD offPixelFormat; + + DWORD bOpenGL; + + + + SIZEL szlMicrometers; + + +} ENHMETAHEADER, *PENHMETAHEADER, *LPENHMETAHEADER; +# 1143 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 + typedef BYTE BCHAR; + + + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,4) +# 1152 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 + + + + +typedef struct tagTEXTMETRICA +{ + LONG tmHeight; + LONG tmAscent; + LONG tmDescent; + LONG tmInternalLeading; + LONG tmExternalLeading; + LONG tmAveCharWidth; + LONG tmMaxCharWidth; + LONG tmWeight; + LONG tmOverhang; + LONG tmDigitizedAspectX; + LONG tmDigitizedAspectY; + BYTE tmFirstChar; + BYTE tmLastChar; + BYTE tmDefaultChar; + BYTE tmBreakChar; + BYTE tmItalic; + BYTE tmUnderlined; + BYTE tmStruckOut; + BYTE tmPitchAndFamily; + BYTE tmCharSet; +} TEXTMETRICA, *PTEXTMETRICA, *NPTEXTMETRICA, *LPTEXTMETRICA; +typedef struct tagTEXTMETRICW +{ + LONG tmHeight; + LONG tmAscent; + LONG tmDescent; + LONG tmInternalLeading; + LONG tmExternalLeading; + LONG tmAveCharWidth; + LONG tmMaxCharWidth; + LONG tmWeight; + LONG tmOverhang; + LONG tmDigitizedAspectX; + LONG tmDigitizedAspectY; + WCHAR tmFirstChar; + WCHAR tmLastChar; + WCHAR tmDefaultChar; + WCHAR tmBreakChar; + BYTE tmItalic; + BYTE tmUnderlined; + BYTE tmStruckOut; + BYTE tmPitchAndFamily; + BYTE tmCharSet; +} TEXTMETRICW, *PTEXTMETRICW, *NPTEXTMETRICW, *LPTEXTMETRICW; + + + + + + +typedef TEXTMETRICA TEXTMETRIC; +typedef PTEXTMETRICA PTEXTMETRIC; +typedef NPTEXTMETRICA NPTEXTMETRIC; +typedef LPTEXTMETRICA LPTEXTMETRIC; + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 1218 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 +# 1234 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,4) +# 1235 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 + + + + +typedef struct tagNEWTEXTMETRICA +{ + LONG tmHeight; + LONG tmAscent; + LONG tmDescent; + LONG tmInternalLeading; + LONG tmExternalLeading; + LONG tmAveCharWidth; + LONG tmMaxCharWidth; + LONG tmWeight; + LONG tmOverhang; + LONG tmDigitizedAspectX; + LONG tmDigitizedAspectY; + BYTE tmFirstChar; + BYTE tmLastChar; + BYTE tmDefaultChar; + BYTE tmBreakChar; + BYTE tmItalic; + BYTE tmUnderlined; + BYTE tmStruckOut; + BYTE tmPitchAndFamily; + BYTE tmCharSet; + DWORD ntmFlags; + UINT ntmSizeEM; + UINT ntmCellHeight; + UINT ntmAvgWidth; +} NEWTEXTMETRICA, *PNEWTEXTMETRICA, *NPNEWTEXTMETRICA, *LPNEWTEXTMETRICA; +typedef struct tagNEWTEXTMETRICW +{ + LONG tmHeight; + LONG tmAscent; + LONG tmDescent; + LONG tmInternalLeading; + LONG tmExternalLeading; + LONG tmAveCharWidth; + LONG tmMaxCharWidth; + LONG tmWeight; + LONG tmOverhang; + LONG tmDigitizedAspectX; + LONG tmDigitizedAspectY; + WCHAR tmFirstChar; + WCHAR tmLastChar; + WCHAR tmDefaultChar; + WCHAR tmBreakChar; + BYTE tmItalic; + BYTE tmUnderlined; + BYTE tmStruckOut; + BYTE tmPitchAndFamily; + BYTE tmCharSet; + DWORD ntmFlags; + UINT ntmSizeEM; + UINT ntmCellHeight; + UINT ntmAvgWidth; +} NEWTEXTMETRICW, *PNEWTEXTMETRICW, *NPNEWTEXTMETRICW, *LPNEWTEXTMETRICW; + + + + + + +typedef NEWTEXTMETRICA NEWTEXTMETRIC; +typedef PNEWTEXTMETRICA PNEWTEXTMETRIC; +typedef NPNEWTEXTMETRICA NPNEWTEXTMETRIC; +typedef LPNEWTEXTMETRICA LPNEWTEXTMETRIC; + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 1309 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 + + + + + + +typedef struct tagNEWTEXTMETRICEXA +{ + NEWTEXTMETRICA ntmTm; + FONTSIGNATURE ntmFontSig; +}NEWTEXTMETRICEXA; +typedef struct tagNEWTEXTMETRICEXW +{ + NEWTEXTMETRICW ntmTm; + FONTSIGNATURE ntmFontSig; +}NEWTEXTMETRICEXW; + + + +typedef NEWTEXTMETRICEXA NEWTEXTMETRICEX; +# 1342 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagPELARRAY + { + LONG paXCount; + LONG paYCount; + LONG paXExt; + LONG paYExt; + BYTE paRGBs; + } PELARRAY, *PPELARRAY, *NPPELARRAY, *LPPELARRAY; +# 1358 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagLOGBRUSH + { + UINT lbStyle; + COLORREF lbColor; + ULONG_PTR lbHatch; + } LOGBRUSH, *PLOGBRUSH, *NPLOGBRUSH, *LPLOGBRUSH; + +typedef struct tagLOGBRUSH32 + { + UINT lbStyle; + COLORREF lbColor; + ULONG lbHatch; + } LOGBRUSH32, *PLOGBRUSH32, *NPLOGBRUSH32, *LPLOGBRUSH32; + + + + + + + +typedef LOGBRUSH PATTERN; +typedef PATTERN *PPATTERN; +typedef PATTERN *NPPATTERN; +typedef PATTERN *LPPATTERN; +# 1390 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagLOGPEN + { + UINT lopnStyle; + POINT lopnWidth; + COLORREF lopnColor; + } LOGPEN, *PLOGPEN, *NPLOGPEN, *LPLOGPEN; + + + + + + + +typedef struct tagEXTLOGPEN { + DWORD elpPenStyle; + DWORD elpWidth; + UINT elpBrushStyle; + COLORREF elpColor; + ULONG_PTR elpHatch; + DWORD elpNumEntries; + DWORD elpStyleEntry[1]; +} EXTLOGPEN, *PEXTLOGPEN, *NPEXTLOGPEN, *LPEXTLOGPEN; + + + + + + + +typedef struct tagEXTLOGPEN32 { + DWORD elpPenStyle; + DWORD elpWidth; + UINT elpBrushStyle; + COLORREF elpColor; + ULONG elpHatch; + DWORD elpNumEntries; + DWORD elpStyleEntry[1]; +} EXTLOGPEN32, *PEXTLOGPEN32, *NPEXTLOGPEN32, *LPEXTLOGPEN32; + + + +typedef struct tagPALETTEENTRY { + BYTE peRed; + BYTE peGreen; + BYTE peBlue; + BYTE peFlags; +} PALETTEENTRY, *PPALETTEENTRY, *LPPALETTEENTRY; + + + + + +typedef struct tagLOGPALETTE { + WORD palVersion; + WORD palNumEntries; + PALETTEENTRY palPalEntry[1]; +} LOGPALETTE, *PLOGPALETTE, *NPLOGPALETTE, *LPLOGPALETTE; + + + + + + +typedef struct tagLOGFONTA +{ + LONG lfHeight; + LONG lfWidth; + LONG lfEscapement; + LONG lfOrientation; + LONG lfWeight; + BYTE lfItalic; + BYTE lfUnderline; + BYTE lfStrikeOut; + BYTE lfCharSet; + BYTE lfOutPrecision; + BYTE lfClipPrecision; + BYTE lfQuality; + BYTE lfPitchAndFamily; + CHAR lfFaceName[32]; +} LOGFONTA, *PLOGFONTA, *NPLOGFONTA, *LPLOGFONTA; +typedef struct tagLOGFONTW +{ + LONG lfHeight; + LONG lfWidth; + LONG lfEscapement; + LONG lfOrientation; + LONG lfWeight; + BYTE lfItalic; + BYTE lfUnderline; + BYTE lfStrikeOut; + BYTE lfCharSet; + BYTE lfOutPrecision; + BYTE lfClipPrecision; + BYTE lfQuality; + BYTE lfPitchAndFamily; + WCHAR lfFaceName[32]; +} LOGFONTW, *PLOGFONTW, *NPLOGFONTW, *LPLOGFONTW; + + + + + + +typedef LOGFONTA LOGFONT; +typedef PLOGFONTA PLOGFONT; +typedef NPLOGFONTA NPLOGFONT; +typedef LPLOGFONTA LPLOGFONT; +# 1508 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagENUMLOGFONTA +{ + LOGFONTA elfLogFont; + BYTE elfFullName[64]; + BYTE elfStyle[32]; +} ENUMLOGFONTA, * LPENUMLOGFONTA; + +typedef struct tagENUMLOGFONTW +{ + LOGFONTW elfLogFont; + WCHAR elfFullName[64]; + WCHAR elfStyle[32]; +} ENUMLOGFONTW, * LPENUMLOGFONTW; + + + + +typedef ENUMLOGFONTA ENUMLOGFONT; +typedef LPENUMLOGFONTA LPENUMLOGFONT; + + + +typedef struct tagENUMLOGFONTEXA +{ + LOGFONTA elfLogFont; + BYTE elfFullName[64]; + BYTE elfStyle[32]; + BYTE elfScript[32]; +} ENUMLOGFONTEXA, *LPENUMLOGFONTEXA; +typedef struct tagENUMLOGFONTEXW +{ + LOGFONTW elfLogFont; + WCHAR elfFullName[64]; + WCHAR elfStyle[32]; + WCHAR elfScript[32]; +} ENUMLOGFONTEXW, *LPENUMLOGFONTEXW; + + + + +typedef ENUMLOGFONTEXA ENUMLOGFONTEX; +typedef LPENUMLOGFONTEXA LPENUMLOGFONTEX; +# 1686 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagPANOSE +{ + BYTE bFamilyType; + BYTE bSerifStyle; + BYTE bWeight; + BYTE bProportion; + BYTE bContrast; + BYTE bStrokeVariation; + BYTE bArmStyle; + BYTE bLetterform; + BYTE bMidline; + BYTE bXHeight; +} PANOSE, * LPPANOSE; +# 1812 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagEXTLOGFONTA { + LOGFONTA elfLogFont; + BYTE elfFullName[64]; + BYTE elfStyle[32]; + DWORD elfVersion; + DWORD elfStyleSize; + DWORD elfMatch; + DWORD elfReserved; + BYTE elfVendorId[4]; + DWORD elfCulture; + PANOSE elfPanose; +} EXTLOGFONTA, *PEXTLOGFONTA, *NPEXTLOGFONTA, *LPEXTLOGFONTA; +typedef struct tagEXTLOGFONTW { + LOGFONTW elfLogFont; + WCHAR elfFullName[64]; + WCHAR elfStyle[32]; + DWORD elfVersion; + DWORD elfStyleSize; + DWORD elfMatch; + DWORD elfReserved; + BYTE elfVendorId[4]; + DWORD elfCulture; + PANOSE elfPanose; +} EXTLOGFONTW, *PEXTLOGFONTW, *NPEXTLOGFONTW, *LPEXTLOGFONTW; + + + + + + +typedef EXTLOGFONTA EXTLOGFONT; +typedef PEXTLOGFONTA PEXTLOGFONT; +typedef NPEXTLOGFONTA NPEXTLOGFONT; +typedef LPEXTLOGFONTA LPEXTLOGFONT; +# 2198 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct _devicemodeA { + BYTE dmDeviceName[32]; + WORD dmSpecVersion; + WORD dmDriverVersion; + WORD dmSize; + WORD dmDriverExtra; + DWORD dmFields; + union { + + struct { + short dmOrientation; + short dmPaperSize; + short dmPaperLength; + short dmPaperWidth; + short dmScale; + short dmCopies; + short dmDefaultSource; + short dmPrintQuality; + } ; + + struct { + POINTL dmPosition; + DWORD dmDisplayOrientation; + DWORD dmDisplayFixedOutput; + } ; + } ; + short dmColor; + short dmDuplex; + short dmYResolution; + short dmTTOption; + short dmCollate; + BYTE dmFormName[32]; + WORD dmLogPixels; + DWORD dmBitsPerPel; + DWORD dmPelsWidth; + DWORD dmPelsHeight; + union { + DWORD dmDisplayFlags; + DWORD dmNup; + } ; + DWORD dmDisplayFrequency; + + DWORD dmICMMethod; + DWORD dmICMIntent; + DWORD dmMediaType; + DWORD dmDitherType; + DWORD dmReserved1; + DWORD dmReserved2; + + DWORD dmPanningWidth; + DWORD dmPanningHeight; + + +} DEVMODEA, *PDEVMODEA, *NPDEVMODEA, *LPDEVMODEA; +typedef struct _devicemodeW { + WCHAR dmDeviceName[32]; + WORD dmSpecVersion; + WORD dmDriverVersion; + WORD dmSize; + WORD dmDriverExtra; + DWORD dmFields; + union { + + struct { + short dmOrientation; + short dmPaperSize; + short dmPaperLength; + short dmPaperWidth; + short dmScale; + short dmCopies; + short dmDefaultSource; + short dmPrintQuality; + } ; + + struct { + POINTL dmPosition; + DWORD dmDisplayOrientation; + DWORD dmDisplayFixedOutput; + } ; + } ; + short dmColor; + short dmDuplex; + short dmYResolution; + short dmTTOption; + short dmCollate; + WCHAR dmFormName[32]; + WORD dmLogPixels; + DWORD dmBitsPerPel; + DWORD dmPelsWidth; + DWORD dmPelsHeight; + union { + DWORD dmDisplayFlags; + DWORD dmNup; + } ; + DWORD dmDisplayFrequency; + + DWORD dmICMMethod; + DWORD dmICMIntent; + DWORD dmMediaType; + DWORD dmDitherType; + DWORD dmReserved1; + DWORD dmReserved2; + + DWORD dmPanningWidth; + DWORD dmPanningHeight; + + +} DEVMODEW, *PDEVMODEW, *NPDEVMODEW, *LPDEVMODEW; + + + + + + +typedef DEVMODEA DEVMODE; +typedef PDEVMODEA PDEVMODE; +typedef NPDEVMODEA NPDEVMODE; +typedef LPDEVMODEA LPDEVMODE; +# 2733 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct _DISPLAY_DEVICEA { + DWORD cb; + CHAR DeviceName[32]; + CHAR DeviceString[128]; + DWORD StateFlags; + CHAR DeviceID[128]; + CHAR DeviceKey[128]; +} DISPLAY_DEVICEA, *PDISPLAY_DEVICEA, *LPDISPLAY_DEVICEA; +typedef struct _DISPLAY_DEVICEW { + DWORD cb; + WCHAR DeviceName[32]; + WCHAR DeviceString[128]; + DWORD StateFlags; + WCHAR DeviceID[128]; + WCHAR DeviceKey[128]; +} DISPLAY_DEVICEW, *PDISPLAY_DEVICEW, *LPDISPLAY_DEVICEW; + + + + + +typedef DISPLAY_DEVICEA DISPLAY_DEVICE; +typedef PDISPLAY_DEVICEA PDISPLAY_DEVICE; +typedef LPDISPLAY_DEVICEA LPDISPLAY_DEVICE; +# 2799 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct DISPLAYCONFIG_RATIONAL +{ + UINT32 Numerator; + UINT32 Denominator; +} DISPLAYCONFIG_RATIONAL; + +typedef enum +{ + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_OTHER = -1, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HD15 = 0, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SVIDEO = 1, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_COMPOSITE_VIDEO = 2, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_COMPONENT_VIDEO = 3, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DVI = 4, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HDMI = 5, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_LVDS = 6, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_D_JPN = 8, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SDI = 9, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EXTERNAL = 10, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EMBEDDED = 11, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_UDI_EXTERNAL = 12, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_UDI_EMBEDDED = 13, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SDTVDONGLE = 14, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_MIRACAST = 15, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INDIRECT_WIRED = 16, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INDIRECT_VIRTUAL = 17, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_USB_TUNNEL = 18, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INTERNAL = 0x80000000, + DISPLAYCONFIG_OUTPUT_TECHNOLOGY_FORCE_UINT32 = 0xFFFFFFFF +} DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY; + +typedef enum +{ + DISPLAYCONFIG_SCANLINE_ORDERING_UNSPECIFIED = 0, + DISPLAYCONFIG_SCANLINE_ORDERING_PROGRESSIVE = 1, + DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED = 2, + DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED_UPPERFIELDFIRST = DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED, + DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED_LOWERFIELDFIRST = 3, + DISPLAYCONFIG_SCANLINE_ORDERING_FORCE_UINT32 = 0xFFFFFFFF +} DISPLAYCONFIG_SCANLINE_ORDERING; + +typedef struct DISPLAYCONFIG_2DREGION +{ + UINT32 cx; + UINT32 cy; +} DISPLAYCONFIG_2DREGION; + +typedef struct DISPLAYCONFIG_VIDEO_SIGNAL_INFO +{ + UINT64 pixelRate; + DISPLAYCONFIG_RATIONAL hSyncFreq; + DISPLAYCONFIG_RATIONAL vSyncFreq; + DISPLAYCONFIG_2DREGION activeSize; + DISPLAYCONFIG_2DREGION totalSize; + + union + { + struct + { + UINT32 videoStandard : 16; + + + UINT32 vSyncFreqDivider : 6; + + UINT32 reserved : 10; + } AdditionalSignalInfo; + + UINT32 videoStandard; + } ; + + + DISPLAYCONFIG_SCANLINE_ORDERING scanLineOrdering; +} DISPLAYCONFIG_VIDEO_SIGNAL_INFO; + +typedef enum +{ + DISPLAYCONFIG_SCALING_IDENTITY = 1, + DISPLAYCONFIG_SCALING_CENTERED = 2, + DISPLAYCONFIG_SCALING_STRETCHED = 3, + DISPLAYCONFIG_SCALING_ASPECTRATIOCENTEREDMAX = 4, + DISPLAYCONFIG_SCALING_CUSTOM = 5, + DISPLAYCONFIG_SCALING_PREFERRED = 128, + DISPLAYCONFIG_SCALING_FORCE_UINT32 = 0xFFFFFFFF +} DISPLAYCONFIG_SCALING; + +typedef enum +{ + DISPLAYCONFIG_ROTATION_IDENTITY = 1, + DISPLAYCONFIG_ROTATION_ROTATE90 = 2, + DISPLAYCONFIG_ROTATION_ROTATE180 = 3, + DISPLAYCONFIG_ROTATION_ROTATE270 = 4, + DISPLAYCONFIG_ROTATION_FORCE_UINT32 = 0xFFFFFFFF +} DISPLAYCONFIG_ROTATION; + +typedef enum +{ + DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE = 1, + DISPLAYCONFIG_MODE_INFO_TYPE_TARGET = 2, + DISPLAYCONFIG_MODE_INFO_TYPE_DESKTOP_IMAGE = 3, + DISPLAYCONFIG_MODE_INFO_TYPE_FORCE_UINT32 = 0xFFFFFFFF +} DISPLAYCONFIG_MODE_INFO_TYPE; + +typedef enum +{ + DISPLAYCONFIG_PIXELFORMAT_8BPP = 1, + DISPLAYCONFIG_PIXELFORMAT_16BPP = 2, + DISPLAYCONFIG_PIXELFORMAT_24BPP = 3, + DISPLAYCONFIG_PIXELFORMAT_32BPP = 4, + DISPLAYCONFIG_PIXELFORMAT_NONGDI = 5, + DISPLAYCONFIG_PIXELFORMAT_FORCE_UINT32 = 0xffffffff +} DISPLAYCONFIG_PIXELFORMAT; + +typedef struct DISPLAYCONFIG_SOURCE_MODE +{ + UINT32 width; + UINT32 height; + DISPLAYCONFIG_PIXELFORMAT pixelFormat; + POINTL position; +} DISPLAYCONFIG_SOURCE_MODE; + +typedef struct DISPLAYCONFIG_TARGET_MODE +{ + DISPLAYCONFIG_VIDEO_SIGNAL_INFO targetVideoSignalInfo; +} DISPLAYCONFIG_TARGET_MODE; + +typedef struct DISPLAYCONFIG_DESKTOP_IMAGE_INFO +{ + POINTL PathSourceSize; + RECTL DesktopImageRegion; + RECTL DesktopImageClip; +} DISPLAYCONFIG_DESKTOP_IMAGE_INFO; + +typedef struct DISPLAYCONFIG_MODE_INFO +{ + DISPLAYCONFIG_MODE_INFO_TYPE infoType; + UINT32 id; + LUID adapterId; + union + { + DISPLAYCONFIG_TARGET_MODE targetMode; + DISPLAYCONFIG_SOURCE_MODE sourceMode; + DISPLAYCONFIG_DESKTOP_IMAGE_INFO desktopImageInfo; + } ; +} DISPLAYCONFIG_MODE_INFO; + + + + + + + +typedef struct DISPLAYCONFIG_PATH_SOURCE_INFO +{ + LUID adapterId; + UINT32 id; + union + { + UINT32 modeInfoIdx; + struct + { + UINT32 cloneGroupId : 16; + UINT32 sourceModeInfoIdx : 16; + } ; + } ; + + UINT32 statusFlags; +} DISPLAYCONFIG_PATH_SOURCE_INFO; + + + + + + + +typedef struct DISPLAYCONFIG_PATH_TARGET_INFO +{ + LUID adapterId; + UINT32 id; + union + { + UINT32 modeInfoIdx; + struct + { + UINT32 desktopModeInfoIdx : 16; + UINT32 targetModeInfoIdx : 16; + } ; + } ; + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY outputTechnology; + DISPLAYCONFIG_ROTATION rotation; + DISPLAYCONFIG_SCALING scaling; + DISPLAYCONFIG_RATIONAL refreshRate; + DISPLAYCONFIG_SCANLINE_ORDERING scanLineOrdering; + BOOL targetAvailable; + UINT32 statusFlags; +} DISPLAYCONFIG_PATH_TARGET_INFO; +# 3005 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct DISPLAYCONFIG_PATH_INFO +{ + DISPLAYCONFIG_PATH_SOURCE_INFO sourceInfo; + DISPLAYCONFIG_PATH_TARGET_INFO targetInfo; + UINT32 flags; +} DISPLAYCONFIG_PATH_INFO; +# 3021 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef enum DISPLAYCONFIG_TOPOLOGY_ID +{ + DISPLAYCONFIG_TOPOLOGY_INTERNAL = 0x00000001, + DISPLAYCONFIG_TOPOLOGY_CLONE = 0x00000002, + DISPLAYCONFIG_TOPOLOGY_EXTEND = 0x00000004, + DISPLAYCONFIG_TOPOLOGY_EXTERNAL = 0x00000008, + DISPLAYCONFIG_TOPOLOGY_FORCE_UINT32 = 0xFFFFFFFF +} DISPLAYCONFIG_TOPOLOGY_ID; + + +typedef enum +{ + DISPLAYCONFIG_DEVICE_INFO_GET_SOURCE_NAME = 1, + DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_NAME = 2, + DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_PREFERRED_MODE = 3, + DISPLAYCONFIG_DEVICE_INFO_GET_ADAPTER_NAME = 4, + DISPLAYCONFIG_DEVICE_INFO_SET_TARGET_PERSISTENCE = 5, + DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_BASE_TYPE = 6, + DISPLAYCONFIG_DEVICE_INFO_GET_SUPPORT_VIRTUAL_RESOLUTION = 7, + DISPLAYCONFIG_DEVICE_INFO_SET_SUPPORT_VIRTUAL_RESOLUTION = 8, + DISPLAYCONFIG_DEVICE_INFO_GET_ADVANCED_COLOR_INFO = 9, + DISPLAYCONFIG_DEVICE_INFO_SET_ADVANCED_COLOR_STATE = 10, + DISPLAYCONFIG_DEVICE_INFO_GET_SDR_WHITE_LEVEL = 11, + DISPLAYCONFIG_DEVICE_INFO_GET_MONITOR_SPECIALIZATION = 12, + DISPLAYCONFIG_DEVICE_INFO_SET_MONITOR_SPECIALIZATION = 13, + DISPLAYCONFIG_DEVICE_INFO_FORCE_UINT32 = 0xFFFFFFFF +} DISPLAYCONFIG_DEVICE_INFO_TYPE; +# 3057 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct DISPLAYCONFIG_DEVICE_INFO_HEADER +{ + DISPLAYCONFIG_DEVICE_INFO_TYPE type; + UINT32 size; + LUID adapterId; + UINT32 id; +} DISPLAYCONFIG_DEVICE_INFO_HEADER; + + + + + + + +typedef struct DISPLAYCONFIG_SOURCE_DEVICE_NAME +{ + DISPLAYCONFIG_DEVICE_INFO_HEADER header; + WCHAR viewGdiDeviceName[32]; +} DISPLAYCONFIG_SOURCE_DEVICE_NAME; + +typedef struct DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS +{ + union + { + struct + { + UINT32 friendlyNameFromEdid : 1; + UINT32 friendlyNameForced : 1; + UINT32 edidIdsValid : 1; + UINT32 reserved : 29; + } ; + UINT32 value; + } ; +} DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS; + +typedef struct DISPLAYCONFIG_TARGET_DEVICE_NAME +{ + DISPLAYCONFIG_DEVICE_INFO_HEADER header; + DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS flags; + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY outputTechnology; + UINT16 edidManufactureId; + UINT16 edidProductCodeId; + UINT32 connectorInstance; + WCHAR monitorFriendlyDeviceName[64]; + WCHAR monitorDevicePath[128]; +} DISPLAYCONFIG_TARGET_DEVICE_NAME; + +typedef struct DISPLAYCONFIG_TARGET_PREFERRED_MODE +{ + DISPLAYCONFIG_DEVICE_INFO_HEADER header; + UINT32 width; + UINT32 height; + DISPLAYCONFIG_TARGET_MODE targetMode; +} DISPLAYCONFIG_TARGET_PREFERRED_MODE; + +typedef struct DISPLAYCONFIG_ADAPTER_NAME +{ + DISPLAYCONFIG_DEVICE_INFO_HEADER header; + WCHAR adapterDevicePath[128]; +} DISPLAYCONFIG_ADAPTER_NAME; + +typedef struct DISPLAYCONFIG_TARGET_BASE_TYPE { + DISPLAYCONFIG_DEVICE_INFO_HEADER header; + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY baseOutputTechnology; +} DISPLAYCONFIG_TARGET_BASE_TYPE; + + +typedef struct DISPLAYCONFIG_SET_TARGET_PERSISTENCE +{ + DISPLAYCONFIG_DEVICE_INFO_HEADER header; + union + { + struct + { + UINT32 bootPersistenceOn : 1; + UINT32 reserved : 31; + } ; + UINT32 value; + } ; +} DISPLAYCONFIG_SET_TARGET_PERSISTENCE; + +typedef struct DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION +{ + DISPLAYCONFIG_DEVICE_INFO_HEADER header; + union + { + struct + { + UINT32 disableMonitorVirtualResolution : 1; + UINT32 reserved : 31; + } ; + UINT32 value; + } ; +} DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION; + +typedef enum _DISPLAYCONFIG_COLOR_ENCODING +{ + DISPLAYCONFIG_COLOR_ENCODING_RGB = 0, + DISPLAYCONFIG_COLOR_ENCODING_YCBCR444 = 1, + DISPLAYCONFIG_COLOR_ENCODING_YCBCR422 = 2, + DISPLAYCONFIG_COLOR_ENCODING_YCBCR420 = 3, + DISPLAYCONFIG_COLOR_ENCODING_INTENSITY = 4, + DISPLAYCONFIG_COLOR_ENCODING_FORCE_UINT32 = 0xFFFFFFFF +} DISPLAYCONFIG_COLOR_ENCODING; + +typedef struct _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO +{ + DISPLAYCONFIG_DEVICE_INFO_HEADER header; + union + { + struct + { + UINT32 advancedColorSupported :1; + UINT32 advancedColorEnabled :1; + UINT32 wideColorEnforced :1; + UINT32 advancedColorForceDisabled :1; + UINT32 reserved :28; + } ; + + UINT32 value; + } ; + + DISPLAYCONFIG_COLOR_ENCODING colorEncoding; + UINT32 bitsPerColorChannel; +} DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO; + +typedef struct _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE +{ + DISPLAYCONFIG_DEVICE_INFO_HEADER header; + union + { + struct + { + UINT32 enableAdvancedColor :1; + UINT32 reserved :31; + } ; + + UINT32 value; + }; +} DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE; + +typedef struct _DISPLAYCONFIG_SDR_WHITE_LEVEL +{ + DISPLAYCONFIG_DEVICE_INFO_HEADER header; + + + + + + ULONG SDRWhiteLevel; +} DISPLAYCONFIG_SDR_WHITE_LEVEL; + +typedef struct _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION +{ + DISPLAYCONFIG_DEVICE_INFO_HEADER header; + union + { + struct + { + UINT32 isSpecializationEnabled : 1; + UINT32 isSpecializationAvailableForMonitor : 1; + UINT32 isSpecializationAvailableForSystem : 1; + UINT32 reserved : 29; + } ; + UINT32 value; + } ; +} DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION; + +typedef struct _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION +{ + DISPLAYCONFIG_DEVICE_INFO_HEADER header; + union + { + struct + { + UINT32 isSpecializationEnabled : 1; + UINT32 reserved : 31; + } ; + UINT32 value; + } ; + + GUID specializationType; + GUID specializationSubType; + + WCHAR specializationApplicationName[128]; +} DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION; +# 3294 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct _RGNDATAHEADER { + DWORD dwSize; + DWORD iType; + DWORD nCount; + DWORD nRgnSize; + RECT rcBound; +} RGNDATAHEADER, *PRGNDATAHEADER; + +typedef struct _RGNDATA { + RGNDATAHEADER rdh; + char Buffer[1]; +} RGNDATA, *PRGNDATA, *NPRGNDATA, *LPRGNDATA; +# 3318 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct _ABC { + int abcA; + UINT abcB; + int abcC; +} ABC, *PABC, *NPABC, *LPABC; + +typedef struct _ABCFLOAT { + FLOAT abcfA; + FLOAT abcfB; + FLOAT abcfC; +} ABCFLOAT, *PABCFLOAT, *NPABCFLOAT, *LPABCFLOAT; +# 3342 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct _OUTLINETEXTMETRICA { + UINT otmSize; + TEXTMETRICA otmTextMetrics; + BYTE otmFiller; + PANOSE otmPanoseNumber; + UINT otmfsSelection; + UINT otmfsType; + int otmsCharSlopeRise; + int otmsCharSlopeRun; + int otmItalicAngle; + UINT otmEMSquare; + int otmAscent; + int otmDescent; + UINT otmLineGap; + UINT otmsCapEmHeight; + UINT otmsXHeight; + RECT otmrcFontBox; + int otmMacAscent; + int otmMacDescent; + UINT otmMacLineGap; + UINT otmusMinimumPPEM; + POINT otmptSubscriptSize; + POINT otmptSubscriptOffset; + POINT otmptSuperscriptSize; + POINT otmptSuperscriptOffset; + UINT otmsStrikeoutSize; + int otmsStrikeoutPosition; + int otmsUnderscoreSize; + int otmsUnderscorePosition; + PSTR otmpFamilyName; + PSTR otmpFaceName; + PSTR otmpStyleName; + PSTR otmpFullName; +} OUTLINETEXTMETRICA, *POUTLINETEXTMETRICA, *NPOUTLINETEXTMETRICA, *LPOUTLINETEXTMETRICA; +typedef struct _OUTLINETEXTMETRICW { + UINT otmSize; + TEXTMETRICW otmTextMetrics; + BYTE otmFiller; + PANOSE otmPanoseNumber; + UINT otmfsSelection; + UINT otmfsType; + int otmsCharSlopeRise; + int otmsCharSlopeRun; + int otmItalicAngle; + UINT otmEMSquare; + int otmAscent; + int otmDescent; + UINT otmLineGap; + UINT otmsCapEmHeight; + UINT otmsXHeight; + RECT otmrcFontBox; + int otmMacAscent; + int otmMacDescent; + UINT otmMacLineGap; + UINT otmusMinimumPPEM; + POINT otmptSubscriptSize; + POINT otmptSubscriptOffset; + POINT otmptSuperscriptSize; + POINT otmptSuperscriptOffset; + UINT otmsStrikeoutSize; + int otmsStrikeoutPosition; + int otmsUnderscoreSize; + int otmsUnderscorePosition; + PSTR otmpFamilyName; + PSTR otmpFaceName; + PSTR otmpStyleName; + PSTR otmpFullName; +} OUTLINETEXTMETRICW, *POUTLINETEXTMETRICW, *NPOUTLINETEXTMETRICW, *LPOUTLINETEXTMETRICW; + + + + + + +typedef OUTLINETEXTMETRICA OUTLINETEXTMETRIC; +typedef POUTLINETEXTMETRICA POUTLINETEXTMETRIC; +typedef NPOUTLINETEXTMETRICA NPOUTLINETEXTMETRIC; +typedef LPOUTLINETEXTMETRICA LPOUTLINETEXTMETRIC; +# 3434 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagPOLYTEXTA +{ + int x; + int y; + UINT n; + LPCSTR lpstr; + UINT uiFlags; + RECT rcl; + int *pdx; +} POLYTEXTA, *PPOLYTEXTA, *NPPOLYTEXTA, *LPPOLYTEXTA; +typedef struct tagPOLYTEXTW +{ + int x; + int y; + UINT n; + LPCWSTR lpstr; + UINT uiFlags; + RECT rcl; + int *pdx; +} POLYTEXTW, *PPOLYTEXTW, *NPPOLYTEXTW, *LPPOLYTEXTW; + + + + + + +typedef POLYTEXTA POLYTEXT; +typedef PPOLYTEXTA PPOLYTEXT; +typedef NPPOLYTEXTA NPPOLYTEXT; +typedef LPPOLYTEXTA LPPOLYTEXT; +# 3472 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct _FIXED { + + WORD fract; + short value; + + + + +} FIXED; + + +typedef struct _MAT2 { + FIXED eM11; + FIXED eM12; + FIXED eM21; + FIXED eM22; +} MAT2, *LPMAT2; + + + +typedef struct _GLYPHMETRICS { + UINT gmBlackBoxX; + UINT gmBlackBoxY; + POINT gmptGlyphOrigin; + short gmCellIncX; + short gmCellIncY; +} GLYPHMETRICS, *LPGLYPHMETRICS; +# 3530 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagPOINTFX +{ + FIXED x; + FIXED y; +} POINTFX, * LPPOINTFX; + +typedef struct tagTTPOLYCURVE +{ + WORD wType; + WORD cpfx; + POINTFX apfx[1]; +} TTPOLYCURVE, * LPTTPOLYCURVE; + +typedef struct tagTTPOLYGONHEADER +{ + DWORD cb; + DWORD dwType; + POINTFX pfxStart; +} TTPOLYGONHEADER, * LPTTPOLYGONHEADER; +# 3600 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagGCP_RESULTSA + { + DWORD lStructSize; + LPSTR lpOutString; + UINT *lpOrder; + int *lpDx; + int *lpCaretPos; + LPSTR lpClass; + LPWSTR lpGlyphs; + UINT nGlyphs; + int nMaxFit; + } GCP_RESULTSA, * LPGCP_RESULTSA; +typedef struct tagGCP_RESULTSW + { + DWORD lStructSize; + LPWSTR lpOutString; + UINT *lpOrder; + int *lpDx; + int *lpCaretPos; + LPSTR lpClass; + LPWSTR lpGlyphs; + UINT nGlyphs; + int nMaxFit; + } GCP_RESULTSW, * LPGCP_RESULTSW; + + + + +typedef GCP_RESULTSA GCP_RESULTS; +typedef LPGCP_RESULTSA LPGCP_RESULTS; +# 3639 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct _RASTERIZER_STATUS { + short nSize; + short wFlags; + short nLanguageID; +} RASTERIZER_STATUS, *LPRASTERIZER_STATUS; +# 3656 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagPIXELFORMATDESCRIPTOR +{ + WORD nSize; + WORD nVersion; + DWORD dwFlags; + BYTE iPixelType; + BYTE cColorBits; + BYTE cRedBits; + BYTE cRedShift; + BYTE cGreenBits; + BYTE cGreenShift; + BYTE cBlueBits; + BYTE cBlueShift; + BYTE cAlphaBits; + BYTE cAlphaShift; + BYTE cAccumBits; + BYTE cAccumRedBits; + BYTE cAccumGreenBits; + BYTE cAccumBlueBits; + BYTE cAccumAlphaBits; + BYTE cDepthBits; + BYTE cStencilBits; + BYTE cAuxBuffers; + BYTE iLayerType; + BYTE bReserved; + DWORD dwLayerMask; + DWORD dwVisibleMask; + DWORD dwDamageMask; +} PIXELFORMATDESCRIPTOR, *PPIXELFORMATDESCRIPTOR, *LPPIXELFORMATDESCRIPTOR; +# 3728 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef int (__stdcall* OLDFONTENUMPROCA)(const LOGFONTA *, const TEXTMETRICA *, DWORD, LPARAM); +typedef int (__stdcall* OLDFONTENUMPROCW)(const LOGFONTW *, const TEXTMETRICW *, DWORD, LPARAM); +# 3745 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef OLDFONTENUMPROCA FONTENUMPROCA; +typedef OLDFONTENUMPROCW FONTENUMPROCW; + + + +typedef FONTENUMPROCA FONTENUMPROC; + + +typedef int (__stdcall* GOBJENUMPROC)(LPVOID, LPARAM); +typedef void (__stdcall* LINEDDAPROC)(int, int, LPARAM); +# 3776 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +__declspec(dllimport) int __stdcall AddFontResourceA( LPCSTR); +__declspec(dllimport) int __stdcall AddFontResourceW( LPCWSTR); + + + + + + + __declspec(dllimport) BOOL __stdcall AnimatePalette( HPALETTE hPal, UINT iStartIndex, UINT cEntries, const PALETTEENTRY * ppe); + __declspec(dllimport) BOOL __stdcall Arc( HDC hdc, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4); + __declspec(dllimport) BOOL __stdcall BitBlt( HDC hdc, int x, int y, int cx, int cy, HDC hdcSrc, int x1, int y1, DWORD rop); +__declspec(dllimport) BOOL __stdcall CancelDC( HDC hdc); + __declspec(dllimport) BOOL __stdcall Chord( HDC hdc, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4); +__declspec(dllimport) int __stdcall ChoosePixelFormat( HDC hdc, const PIXELFORMATDESCRIPTOR *ppfd); +__declspec(dllimport) HMETAFILE __stdcall CloseMetaFile( HDC hdc); +__declspec(dllimport) int __stdcall CombineRgn( HRGN hrgnDst, HRGN hrgnSrc1, HRGN hrgnSrc2, int iMode); +__declspec(dllimport) HMETAFILE __stdcall CopyMetaFileA( HMETAFILE, LPCSTR); +__declspec(dllimport) HMETAFILE __stdcall CopyMetaFileW( HMETAFILE, LPCWSTR); + + + + + + __declspec(dllimport) HBITMAP __stdcall CreateBitmap( int nWidth, int nHeight, UINT nPlanes, UINT nBitCount, const void *lpBits); + __declspec(dllimport) HBITMAP __stdcall CreateBitmapIndirect( const BITMAP *pbm); + __declspec(dllimport) HBRUSH __stdcall CreateBrushIndirect( const LOGBRUSH *plbrush); +__declspec(dllimport) HBITMAP __stdcall CreateCompatibleBitmap( HDC hdc, int cx, int cy); +__declspec(dllimport) HBITMAP __stdcall CreateDiscardableBitmap( HDC hdc, int cx, int cy); +__declspec(dllimport) HDC __stdcall CreateCompatibleDC( HDC hdc); +__declspec(dllimport) HDC __stdcall CreateDCA( LPCSTR pwszDriver, LPCSTR pwszDevice, LPCSTR pszPort, const DEVMODEA * pdm); +__declspec(dllimport) HDC __stdcall CreateDCW( LPCWSTR pwszDriver, LPCWSTR pwszDevice, LPCWSTR pszPort, const DEVMODEW * pdm); + + + + + +__declspec(dllimport) HBITMAP __stdcall CreateDIBitmap( HDC hdc, const BITMAPINFOHEADER *pbmih, DWORD flInit, const void *pjBits, const BITMAPINFO *pbmi, UINT iUsage); +__declspec(dllimport) HBRUSH __stdcall CreateDIBPatternBrush( HGLOBAL h, UINT iUsage); + __declspec(dllimport) HBRUSH __stdcall CreateDIBPatternBrushPt( const void *lpPackedDIB, UINT iUsage); +__declspec(dllimport) HRGN __stdcall CreateEllipticRgn( int x1, int y1, int x2, int y2); +__declspec(dllimport) HRGN __stdcall CreateEllipticRgnIndirect( const RECT *lprect); + __declspec(dllimport) HFONT __stdcall CreateFontIndirectA( const LOGFONTA *lplf); + __declspec(dllimport) HFONT __stdcall CreateFontIndirectW( const LOGFONTW *lplf); + + + + + +__declspec(dllimport) HFONT __stdcall CreateFontA( int cHeight, int cWidth, int cEscapement, int cOrientation, int cWeight, DWORD bItalic, + DWORD bUnderline, DWORD bStrikeOut, DWORD iCharSet, DWORD iOutPrecision, DWORD iClipPrecision, + DWORD iQuality, DWORD iPitchAndFamily, LPCSTR pszFaceName); +__declspec(dllimport) HFONT __stdcall CreateFontW( int cHeight, int cWidth, int cEscapement, int cOrientation, int cWeight, DWORD bItalic, + DWORD bUnderline, DWORD bStrikeOut, DWORD iCharSet, DWORD iOutPrecision, DWORD iClipPrecision, + DWORD iQuality, DWORD iPitchAndFamily, LPCWSTR pszFaceName); + + + + + + +__declspec(dllimport) HBRUSH __stdcall CreateHatchBrush( int iHatch, COLORREF color); +__declspec(dllimport) HDC __stdcall CreateICA( LPCSTR pszDriver, LPCSTR pszDevice, LPCSTR pszPort, const DEVMODEA * pdm); +__declspec(dllimport) HDC __stdcall CreateICW( LPCWSTR pszDriver, LPCWSTR pszDevice, LPCWSTR pszPort, const DEVMODEW * pdm); + + + + + +__declspec(dllimport) HDC __stdcall CreateMetaFileA( LPCSTR pszFile); +__declspec(dllimport) HDC __stdcall CreateMetaFileW( LPCWSTR pszFile); + + + + + + __declspec(dllimport) HPALETTE __stdcall CreatePalette( const LOGPALETTE * plpal); +__declspec(dllimport) HPEN __stdcall CreatePen( int iStyle, int cWidth, COLORREF color); + __declspec(dllimport) HPEN __stdcall CreatePenIndirect( const LOGPEN *plpen); +__declspec(dllimport) HRGN __stdcall CreatePolyPolygonRgn( const POINT *pptl, + const INT *pc, + int cPoly, + int iMode); + __declspec(dllimport) HBRUSH __stdcall CreatePatternBrush( HBITMAP hbm); +__declspec(dllimport) HRGN __stdcall CreateRectRgn( int x1, int y1, int x2, int y2); +__declspec(dllimport) HRGN __stdcall CreateRectRgnIndirect( const RECT *lprect); +__declspec(dllimport) HRGN __stdcall CreateRoundRectRgn( int x1, int y1, int x2, int y2, int w, int h); +__declspec(dllimport) BOOL __stdcall CreateScalableFontResourceA( DWORD fdwHidden, LPCSTR lpszFont, LPCSTR lpszFile, LPCSTR lpszPath); +__declspec(dllimport) BOOL __stdcall CreateScalableFontResourceW( DWORD fdwHidden, LPCWSTR lpszFont, LPCWSTR lpszFile, LPCWSTR lpszPath); + + + + + +__declspec(dllimport) HBRUSH __stdcall CreateSolidBrush( COLORREF color); + +__declspec(dllimport) BOOL __stdcall DeleteDC( HDC hdc); +__declspec(dllimport) BOOL __stdcall DeleteMetaFile( HMETAFILE hmf); + __declspec(dllimport) BOOL __stdcall DeleteObject( HGDIOBJ ho); +__declspec(dllimport) int __stdcall DescribePixelFormat( HDC hdc, + int iPixelFormat, + UINT nBytes, + LPPIXELFORMATDESCRIPTOR ppfd); + + + + + +typedef UINT (__stdcall* LPFNDEVMODE)(HWND, HMODULE, LPDEVMODE, LPSTR, LPSTR, LPDEVMODE, LPSTR, UINT); + +typedef DWORD (__stdcall* LPFNDEVCAPS)(LPSTR, LPSTR, UINT, LPSTR, LPDEVMODE); +# 3970 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +__declspec(dllimport) +int +__stdcall +DeviceCapabilitiesA( + LPCSTR pDevice, + LPCSTR pPort, + WORD fwCapability, + LPSTR pOutput, + const DEVMODEA *pDevMode + ); +__declspec(dllimport) +int +__stdcall +DeviceCapabilitiesW( + LPCWSTR pDevice, + LPCWSTR pPort, + WORD fwCapability, + LPWSTR pOutput, + const DEVMODEW *pDevMode + ); + + + + + + +__declspec(dllimport) int __stdcall DrawEscape( HDC hdc, + int iEscape, + int cjIn, + LPCSTR lpIn); + + __declspec(dllimport) BOOL __stdcall Ellipse( HDC hdc, int left, int top, int right, int bottom); + + +__declspec(dllimport) int __stdcall EnumFontFamiliesExA( HDC hdc, LPLOGFONTA lpLogfont, FONTENUMPROCA lpProc, LPARAM lParam, DWORD dwFlags); +__declspec(dllimport) int __stdcall EnumFontFamiliesExW( HDC hdc, LPLOGFONTW lpLogfont, FONTENUMPROCW lpProc, LPARAM lParam, DWORD dwFlags); + + + + + + + +__declspec(dllimport) int __stdcall EnumFontFamiliesA( HDC hdc, LPCSTR lpLogfont, FONTENUMPROCA lpProc, LPARAM lParam); +__declspec(dllimport) int __stdcall EnumFontFamiliesW( HDC hdc, LPCWSTR lpLogfont, FONTENUMPROCW lpProc, LPARAM lParam); + + + + + +__declspec(dllimport) int __stdcall EnumFontsA( HDC hdc, LPCSTR lpLogfont, FONTENUMPROCA lpProc, LPARAM lParam); +__declspec(dllimport) int __stdcall EnumFontsW( HDC hdc, LPCWSTR lpLogfont, FONTENUMPROCW lpProc, LPARAM lParam); + + + + + + + +__declspec(dllimport) int __stdcall EnumObjects( HDC hdc, int nType, GOBJENUMPROC lpFunc, LPARAM lParam); + + + + + +__declspec(dllimport) BOOL __stdcall EqualRgn( HRGN hrgn1, HRGN hrgn2); + __declspec(dllimport) int __stdcall Escape( HDC hdc, + int iEscape, + int cjIn, + LPCSTR pvIn, + LPVOID pvOut); +__declspec(dllimport) int __stdcall ExtEscape( HDC hdc, + int iEscape, + int cjInput, + LPCSTR lpInData, + int cjOutput, + LPSTR lpOutData); + __declspec(dllimport) int __stdcall ExcludeClipRect( HDC hdc, int left, int top, int right, int bottom); + __declspec(dllimport) HRGN __stdcall ExtCreateRegion( const XFORM * lpx, DWORD nCount, const RGNDATA * lpData); + __declspec(dllimport) BOOL __stdcall ExtFloodFill( HDC hdc, int x, int y, COLORREF color, UINT type); + __declspec(dllimport) BOOL __stdcall FillRgn( HDC hdc, HRGN hrgn, HBRUSH hbr); + __declspec(dllimport) BOOL __stdcall FloodFill( HDC hdc, int x, int y, COLORREF color); + __declspec(dllimport) BOOL __stdcall FrameRgn( HDC hdc, HRGN hrgn, HBRUSH hbr, int w, int h); +__declspec(dllimport) int __stdcall GetROP2( HDC hdc); +__declspec(dllimport) BOOL __stdcall GetAspectRatioFilterEx( HDC hdc, LPSIZE lpsize); +__declspec(dllimport) COLORREF __stdcall GetBkColor( HDC hdc); + + +__declspec(dllimport) COLORREF __stdcall GetDCBrushColor( HDC hdc); +__declspec(dllimport) COLORREF __stdcall GetDCPenColor( HDC hdc); + + +__declspec(dllimport) +int +__stdcall +GetBkMode( + HDC hdc + ); + +__declspec(dllimport) +LONG +__stdcall +GetBitmapBits( + HBITMAP hbit, + LONG cb, + LPVOID lpvBits + ); + +__declspec(dllimport) BOOL __stdcall GetBitmapDimensionEx( HBITMAP hbit, LPSIZE lpsize); +__declspec(dllimport) UINT __stdcall GetBoundsRect( HDC hdc, LPRECT lprect, UINT flags); + +__declspec(dllimport) BOOL __stdcall GetBrushOrgEx( HDC hdc, LPPOINT lppt); + +__declspec(dllimport) BOOL __stdcall GetCharWidthA( HDC hdc, UINT iFirst, UINT iLast, LPINT lpBuffer); +__declspec(dllimport) BOOL __stdcall GetCharWidthW( HDC hdc, UINT iFirst, UINT iLast, LPINT lpBuffer); + + + + + +__declspec(dllimport) BOOL __stdcall GetCharWidth32A( HDC hdc, UINT iFirst, UINT iLast, LPINT lpBuffer); +__declspec(dllimport) BOOL __stdcall GetCharWidth32W( HDC hdc, UINT iFirst, UINT iLast, LPINT lpBuffer); + + + + + +__declspec(dllimport) BOOL __stdcall GetCharWidthFloatA( HDC hdc, UINT iFirst, UINT iLast, PFLOAT lpBuffer); +__declspec(dllimport) BOOL __stdcall GetCharWidthFloatW( HDC hdc, UINT iFirst, UINT iLast, PFLOAT lpBuffer); + + + + + + +__declspec(dllimport) BOOL __stdcall GetCharABCWidthsA( HDC hdc, + UINT wFirst, + UINT wLast, + LPABC lpABC); +__declspec(dllimport) BOOL __stdcall GetCharABCWidthsW( HDC hdc, + UINT wFirst, + UINT wLast, + LPABC lpABC); + + + + + + +__declspec(dllimport) BOOL __stdcall GetCharABCWidthsFloatA( HDC hdc, UINT iFirst, UINT iLast, LPABCFLOAT lpABC); +__declspec(dllimport) BOOL __stdcall GetCharABCWidthsFloatW( HDC hdc, UINT iFirst, UINT iLast, LPABCFLOAT lpABC); + + + + + +__declspec(dllimport) int __stdcall GetClipBox( HDC hdc, LPRECT lprect); +__declspec(dllimport) int __stdcall GetClipRgn( HDC hdc, HRGN hrgn); +__declspec(dllimport) int __stdcall GetMetaRgn( HDC hdc, HRGN hrgn); +__declspec(dllimport) HGDIOBJ __stdcall GetCurrentObject( HDC hdc, UINT type); +__declspec(dllimport) BOOL __stdcall GetCurrentPositionEx( HDC hdc, LPPOINT lppt); +__declspec(dllimport) int __stdcall GetDeviceCaps( HDC hdc, int index); +__declspec(dllimport) int __stdcall GetDIBits( HDC hdc, HBITMAP hbm, UINT start, UINT cLines, + LPVOID lpvBits, LPBITMAPINFO lpbmi, UINT usage); + + +__declspec(dllimport) DWORD __stdcall GetFontData ( HDC hdc, + DWORD dwTable, + DWORD dwOffset, + PVOID pvBuffer, + DWORD cjBuffer + ); + +__declspec(dllimport) DWORD __stdcall GetGlyphOutlineA( HDC hdc, + UINT uChar, + UINT fuFormat, + LPGLYPHMETRICS lpgm, + DWORD cjBuffer, + LPVOID pvBuffer, + const MAT2 *lpmat2 + ); +__declspec(dllimport) DWORD __stdcall GetGlyphOutlineW( HDC hdc, + UINT uChar, + UINT fuFormat, + LPGLYPHMETRICS lpgm, + DWORD cjBuffer, + LPVOID pvBuffer, + const MAT2 *lpmat2 + ); + + + + + + +__declspec(dllimport) int __stdcall GetGraphicsMode( HDC hdc); +__declspec(dllimport) int __stdcall GetMapMode( HDC hdc); +__declspec(dllimport) UINT __stdcall GetMetaFileBitsEx( HMETAFILE hMF, UINT cbBuffer, LPVOID lpData); +__declspec(dllimport) HMETAFILE __stdcall GetMetaFileA( LPCSTR lpName); +__declspec(dllimport) HMETAFILE __stdcall GetMetaFileW( LPCWSTR lpName); + + + + + +__declspec(dllimport) COLORREF __stdcall GetNearestColor( HDC hdc, COLORREF color); +__declspec(dllimport) UINT __stdcall GetNearestPaletteIndex( HPALETTE h, COLORREF color); + +__declspec(dllimport) DWORD __stdcall GetObjectType( HGDIOBJ h); + + + +__declspec(dllimport) UINT __stdcall GetOutlineTextMetricsA( HDC hdc, + UINT cjCopy, + LPOUTLINETEXTMETRICA potm); +__declspec(dllimport) UINT __stdcall GetOutlineTextMetricsW( HDC hdc, + UINT cjCopy, + LPOUTLINETEXTMETRICW potm); +# 4197 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +__declspec(dllimport) UINT __stdcall GetPaletteEntries( HPALETTE hpal, + UINT iStart, + UINT cEntries, + LPPALETTEENTRY pPalEntries); +__declspec(dllimport) COLORREF __stdcall GetPixel( HDC hdc, int x, int y); +__declspec(dllimport) int __stdcall GetPixelFormat( HDC hdc); +__declspec(dllimport) int __stdcall GetPolyFillMode( HDC hdc); +__declspec(dllimport) BOOL __stdcall GetRasterizerCaps( LPRASTERIZER_STATUS lpraststat, + UINT cjBytes); + +__declspec(dllimport) int __stdcall GetRandomRgn ( HDC hdc, HRGN hrgn, INT i); +__declspec(dllimport) DWORD __stdcall GetRegionData( HRGN hrgn, + DWORD nCount, + LPRGNDATA lpRgnData); +__declspec(dllimport) int __stdcall GetRgnBox( HRGN hrgn, LPRECT lprc); +__declspec(dllimport) HGDIOBJ __stdcall GetStockObject( int i); +__declspec(dllimport) int __stdcall GetStretchBltMode( HDC hdc); +__declspec(dllimport) +UINT +__stdcall +GetSystemPaletteEntries( + HDC hdc, + UINT iStart, + UINT cEntries, + LPPALETTEENTRY pPalEntries + ); + +__declspec(dllimport) UINT __stdcall GetSystemPaletteUse( HDC hdc); +__declspec(dllimport) int __stdcall GetTextCharacterExtra( HDC hdc); +__declspec(dllimport) UINT __stdcall GetTextAlign( HDC hdc); +__declspec(dllimport) COLORREF __stdcall GetTextColor( HDC hdc); + +__declspec(dllimport) +BOOL +__stdcall +GetTextExtentPointA( + HDC hdc, + LPCSTR lpString, + int c, + LPSIZE lpsz + ); +__declspec(dllimport) +BOOL +__stdcall +GetTextExtentPointW( + HDC hdc, + LPCWSTR lpString, + int c, + LPSIZE lpsz + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetTextExtentPoint32A( + HDC hdc, + LPCSTR lpString, + int c, + LPSIZE psizl + ); +__declspec(dllimport) +BOOL +__stdcall +GetTextExtentPoint32W( + HDC hdc, + LPCWSTR lpString, + int c, + LPSIZE psizl + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetTextExtentExPointA( + HDC hdc, + LPCSTR lpszString, + int cchString, + int nMaxExtent, + LPINT lpnFit, + LPINT lpnDx, + LPSIZE lpSize + ); +__declspec(dllimport) +BOOL +__stdcall +GetTextExtentExPointW( + HDC hdc, + LPCWSTR lpszString, + int cchString, + int nMaxExtent, + LPINT lpnFit, + LPINT lpnDx, + LPSIZE lpSize + ); + + + + + + + +__declspec(dllimport) int __stdcall GetTextCharset( HDC hdc); +__declspec(dllimport) int __stdcall GetTextCharsetInfo( HDC hdc, LPFONTSIGNATURE lpSig, DWORD dwFlags); +__declspec(dllimport) BOOL __stdcall TranslateCharsetInfo( DWORD *lpSrc, LPCHARSETINFO lpCs, DWORD dwFlags); +__declspec(dllimport) DWORD __stdcall GetFontLanguageInfo( HDC hdc); +__declspec(dllimport) DWORD __stdcall GetCharacterPlacementA( HDC hdc, LPCSTR lpString, int nCount, int nMexExtent, LPGCP_RESULTSA lpResults, DWORD dwFlags); +__declspec(dllimport) DWORD __stdcall GetCharacterPlacementW( HDC hdc, LPCWSTR lpString, int nCount, int nMexExtent, LPGCP_RESULTSW lpResults, DWORD dwFlags); +# 4329 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagWCRANGE +{ + WCHAR wcLow; + USHORT cGlyphs; +} WCRANGE, *PWCRANGE, *LPWCRANGE; + + +typedef struct tagGLYPHSET +{ + DWORD cbThis; + DWORD flAccel; + DWORD cGlyphsSupported; + DWORD cRanges; + WCRANGE ranges[1]; +} GLYPHSET, *PGLYPHSET, *LPGLYPHSET; +# 4353 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +__declspec(dllimport) DWORD __stdcall GetFontUnicodeRanges( HDC hdc, LPGLYPHSET lpgs); +__declspec(dllimport) DWORD __stdcall GetGlyphIndicesA( HDC hdc, LPCSTR lpstr, int c, LPWORD pgi, DWORD fl); +__declspec(dllimport) DWORD __stdcall GetGlyphIndicesW( HDC hdc, LPCWSTR lpstr, int c, LPWORD pgi, DWORD fl); + + + + + +__declspec(dllimport) BOOL __stdcall GetTextExtentPointI( HDC hdc, LPWORD pgiIn, int cgi, LPSIZE psize); +__declspec(dllimport) BOOL __stdcall GetTextExtentExPointI ( HDC hdc, + LPWORD lpwszString, + int cwchString, + int nMaxExtent, + LPINT lpnFit, + LPINT lpnDx, + LPSIZE lpSize + ); + +__declspec(dllimport) BOOL __stdcall GetCharWidthI( HDC hdc, + UINT giFirst, + UINT cgi, + LPWORD pgi, + LPINT piWidths + ); + +__declspec(dllimport) BOOL __stdcall GetCharABCWidthsI( HDC hdc, + UINT giFirst, + UINT cgi, + LPWORD pgi, + LPABC pabc + ); +# 4394 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagDESIGNVECTOR +{ + DWORD dvReserved; + DWORD dvNumAxes; + LONG dvValues[16]; +} DESIGNVECTOR, *PDESIGNVECTOR, *LPDESIGNVECTOR; + +__declspec(dllimport) int __stdcall AddFontResourceExA( LPCSTR name, DWORD fl, PVOID res); +__declspec(dllimport) int __stdcall AddFontResourceExW( LPCWSTR name, DWORD fl, PVOID res); + + + + + +__declspec(dllimport) BOOL __stdcall RemoveFontResourceExA( LPCSTR name, DWORD fl, PVOID pdv); +__declspec(dllimport) BOOL __stdcall RemoveFontResourceExW( LPCWSTR name, DWORD fl, PVOID pdv); + + + + + +__declspec(dllimport) HANDLE __stdcall AddFontMemResourceEx( PVOID pFileView, + DWORD cjSize, + PVOID pvResrved, + DWORD* pNumFonts); + +__declspec(dllimport) BOOL __stdcall RemoveFontMemResourceEx( HANDLE h); +# 4430 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagAXISINFOA +{ + LONG axMinValue; + LONG axMaxValue; + BYTE axAxisName[16]; +} AXISINFOA, *PAXISINFOA, *LPAXISINFOA; +typedef struct tagAXISINFOW +{ + LONG axMinValue; + LONG axMaxValue; + WCHAR axAxisName[16]; +} AXISINFOW, *PAXISINFOW, *LPAXISINFOW; + + + + + +typedef AXISINFOA AXISINFO; +typedef PAXISINFOA PAXISINFO; +typedef LPAXISINFOA LPAXISINFO; + + +typedef struct tagAXESLISTA +{ + DWORD axlReserved; + DWORD axlNumAxes; + AXISINFOA axlAxisInfo[16]; +} AXESLISTA, *PAXESLISTA, *LPAXESLISTA; +typedef struct tagAXESLISTW +{ + DWORD axlReserved; + DWORD axlNumAxes; + AXISINFOW axlAxisInfo[16]; +} AXESLISTW, *PAXESLISTW, *LPAXESLISTW; + + + + + +typedef AXESLISTA AXESLIST; +typedef PAXESLISTA PAXESLIST; +typedef LPAXESLISTA LPAXESLIST; + + + + + + +typedef struct tagENUMLOGFONTEXDVA +{ + ENUMLOGFONTEXA elfEnumLogfontEx; + DESIGNVECTOR elfDesignVector; +} ENUMLOGFONTEXDVA, *PENUMLOGFONTEXDVA, *LPENUMLOGFONTEXDVA; +typedef struct tagENUMLOGFONTEXDVW +{ + ENUMLOGFONTEXW elfEnumLogfontEx; + DESIGNVECTOR elfDesignVector; +} ENUMLOGFONTEXDVW, *PENUMLOGFONTEXDVW, *LPENUMLOGFONTEXDVW; + + + + + +typedef ENUMLOGFONTEXDVA ENUMLOGFONTEXDV; +typedef PENUMLOGFONTEXDVA PENUMLOGFONTEXDV; +typedef LPENUMLOGFONTEXDVA LPENUMLOGFONTEXDV; + + +__declspec(dllimport) HFONT __stdcall CreateFontIndirectExA( const ENUMLOGFONTEXDVA *); +__declspec(dllimport) HFONT __stdcall CreateFontIndirectExW( const ENUMLOGFONTEXDVW *); + + + + + + + +typedef struct tagENUMTEXTMETRICA +{ + NEWTEXTMETRICEXA etmNewTextMetricEx; + AXESLISTA etmAxesList; +} ENUMTEXTMETRICA, *PENUMTEXTMETRICA, *LPENUMTEXTMETRICA; +typedef struct tagENUMTEXTMETRICW +{ + NEWTEXTMETRICEXW etmNewTextMetricEx; + AXESLISTW etmAxesList; +} ENUMTEXTMETRICW, *PENUMTEXTMETRICW, *LPENUMTEXTMETRICW; + + + + + +typedef ENUMTEXTMETRICA ENUMTEXTMETRIC; +typedef PENUMTEXTMETRICA PENUMTEXTMETRIC; +typedef LPENUMTEXTMETRICA LPENUMTEXTMETRIC; +# 4536 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +__declspec(dllimport) BOOL __stdcall GetViewportExtEx( HDC hdc, LPSIZE lpsize); +__declspec(dllimport) BOOL __stdcall GetViewportOrgEx( HDC hdc, LPPOINT lppoint); +__declspec(dllimport) BOOL __stdcall GetWindowExtEx( HDC hdc, LPSIZE lpsize); +__declspec(dllimport) BOOL __stdcall GetWindowOrgEx( HDC hdc, LPPOINT lppoint); + + __declspec(dllimport) int __stdcall IntersectClipRect( HDC hdc, int left, int top, int right, int bottom); + __declspec(dllimport) BOOL __stdcall InvertRgn( HDC hdc, HRGN hrgn); +__declspec(dllimport) BOOL __stdcall LineDDA( int xStart, int yStart, int xEnd, int yEnd, LINEDDAPROC lpProc, LPARAM data); + __declspec(dllimport) BOOL __stdcall LineTo( HDC hdc, int x, int y); +__declspec(dllimport) BOOL __stdcall MaskBlt( HDC hdcDest, int xDest, int yDest, int width, int height, + HDC hdcSrc, int xSrc, int ySrc, HBITMAP hbmMask, int xMask, int yMask, DWORD rop); +__declspec(dllimport) BOOL __stdcall PlgBlt( HDC hdcDest, const POINT * lpPoint, HDC hdcSrc, int xSrc, int ySrc, int width, + int height, HBITMAP hbmMask, int xMask, int yMask); + + __declspec(dllimport) int __stdcall OffsetClipRgn( HDC hdc, int x, int y); +__declspec(dllimport) int __stdcall OffsetRgn( HRGN hrgn, int x, int y); + __declspec(dllimport) BOOL __stdcall PatBlt( HDC hdc, int x, int y, int w, int h, DWORD rop); + __declspec(dllimport) BOOL __stdcall Pie( HDC hdc, int left, int top, int right, int bottom, int xr1, int yr1, int xr2, int yr2); +__declspec(dllimport) BOOL __stdcall PlayMetaFile( HDC hdc, HMETAFILE hmf); + __declspec(dllimport) BOOL __stdcall PaintRgn( HDC hdc, HRGN hrgn); + __declspec(dllimport) BOOL __stdcall PolyPolygon( HDC hdc, const POINT *apt, const INT *asz, int csz); +__declspec(dllimport) BOOL __stdcall PtInRegion( HRGN hrgn, int x, int y); +__declspec(dllimport) BOOL __stdcall PtVisible( HDC hdc, int x, int y); +__declspec(dllimport) BOOL __stdcall RectInRegion( HRGN hrgn, const RECT * lprect); +__declspec(dllimport) BOOL __stdcall RectVisible( HDC hdc, const RECT * lprect); + __declspec(dllimport) BOOL __stdcall Rectangle( HDC hdc, int left, int top, int right, int bottom); + __declspec(dllimport) BOOL __stdcall RestoreDC( HDC hdc, int nSavedDC); + __declspec(dllimport) HDC __stdcall ResetDCA( HDC hdc, const DEVMODEA * lpdm); + __declspec(dllimport) HDC __stdcall ResetDCW( HDC hdc, const DEVMODEW * lpdm); + + + + + + __declspec(dllimport) UINT __stdcall RealizePalette( HDC hdc); +__declspec(dllimport) BOOL __stdcall RemoveFontResourceA( LPCSTR lpFileName); +__declspec(dllimport) BOOL __stdcall RemoveFontResourceW( LPCWSTR lpFileName); + + + + + + __declspec(dllimport) BOOL __stdcall RoundRect( HDC hdc, int left, int top, int right, int bottom, int width, int height); + __declspec(dllimport) BOOL __stdcall ResizePalette( HPALETTE hpal, UINT n); + + __declspec(dllimport) int __stdcall SaveDC( HDC hdc); + __declspec(dllimport) int __stdcall SelectClipRgn( HDC hdc, HRGN hrgn); +__declspec(dllimport) int __stdcall ExtSelectClipRgn( HDC hdc, HRGN hrgn, int mode); +__declspec(dllimport) int __stdcall SetMetaRgn( HDC hdc); + __declspec(dllimport) HGDIOBJ __stdcall SelectObject( HDC hdc, HGDIOBJ h); + __declspec(dllimport) HPALETTE __stdcall SelectPalette( HDC hdc, HPALETTE hPal, BOOL bForceBkgd); + __declspec(dllimport) COLORREF __stdcall SetBkColor( HDC hdc, COLORREF color); + + +__declspec(dllimport) COLORREF __stdcall SetDCBrushColor( HDC hdc, COLORREF color); +__declspec(dllimport) COLORREF __stdcall SetDCPenColor( HDC hdc, COLORREF color); + + + __declspec(dllimport) int __stdcall SetBkMode( HDC hdc, int mode); + +__declspec(dllimport) +LONG __stdcall +SetBitmapBits( + HBITMAP hbm, + DWORD cb, + const void *pvBits); + +__declspec(dllimport) UINT __stdcall SetBoundsRect( HDC hdc, const RECT * lprect, UINT flags); +__declspec(dllimport) int __stdcall SetDIBits( HDC hdc, HBITMAP hbm, UINT start, UINT cLines, const void *lpBits, const BITMAPINFO * lpbmi, UINT ColorUse); + __declspec(dllimport) int __stdcall SetDIBitsToDevice( HDC hdc, int xDest, int yDest, DWORD w, DWORD h, int xSrc, + int ySrc, UINT StartScan, UINT cLines, const void * lpvBits, const BITMAPINFO * lpbmi, UINT ColorUse); + __declspec(dllimport) DWORD __stdcall SetMapperFlags( HDC hdc, DWORD flags); +__declspec(dllimport) int __stdcall SetGraphicsMode( HDC hdc, int iMode); + __declspec(dllimport) int __stdcall SetMapMode( HDC hdc, int iMode); + + + __declspec(dllimport) DWORD __stdcall SetLayout( HDC hdc, DWORD l); +__declspec(dllimport) DWORD __stdcall GetLayout( HDC hdc); + + +__declspec(dllimport) HMETAFILE __stdcall SetMetaFileBitsEx( UINT cbBuffer, const BYTE *lpData); + __declspec(dllimport) UINT __stdcall SetPaletteEntries( HPALETTE hpal, + UINT iStart, + UINT cEntries, + const PALETTEENTRY *pPalEntries); + __declspec(dllimport) COLORREF __stdcall SetPixel( HDC hdc, int x, int y, COLORREF color); +__declspec(dllimport) BOOL __stdcall SetPixelV( HDC hdc, int x, int y, COLORREF color); +__declspec(dllimport) BOOL __stdcall SetPixelFormat( HDC hdc, int format, const PIXELFORMATDESCRIPTOR * ppfd); + __declspec(dllimport) int __stdcall SetPolyFillMode( HDC hdc, int mode); + __declspec(dllimport) BOOL __stdcall StretchBlt( HDC hdcDest, int xDest, int yDest, int wDest, int hDest, HDC hdcSrc, int xSrc, int ySrc, int wSrc, int hSrc, DWORD rop); +__declspec(dllimport) BOOL __stdcall SetRectRgn( HRGN hrgn, int left, int top, int right, int bottom); + __declspec(dllimport) int __stdcall StretchDIBits( HDC hdc, int xDest, int yDest, int DestWidth, int DestHeight, int xSrc, int ySrc, int SrcWidth, int SrcHeight, + const void * lpBits, const BITMAPINFO * lpbmi, UINT iUsage, DWORD rop); + __declspec(dllimport) int __stdcall SetROP2( HDC hdc, int rop2); + __declspec(dllimport) int __stdcall SetStretchBltMode( HDC hdc, int mode); +__declspec(dllimport) UINT __stdcall SetSystemPaletteUse( HDC hdc, UINT use); + __declspec(dllimport) int __stdcall SetTextCharacterExtra( HDC hdc, int extra); + __declspec(dllimport) COLORREF __stdcall SetTextColor( HDC hdc, COLORREF color); + __declspec(dllimport) UINT __stdcall SetTextAlign( HDC hdc, UINT align); + __declspec(dllimport) BOOL __stdcall SetTextJustification( HDC hdc, int extra, int count); +__declspec(dllimport) BOOL __stdcall UpdateColors( HDC hdc); +# 4687 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef USHORT COLOR16; + +typedef struct _TRIVERTEX +{ + LONG x; + LONG y; + COLOR16 Red; + COLOR16 Green; + COLOR16 Blue; + COLOR16 Alpha; +}TRIVERTEX,*PTRIVERTEX,*LPTRIVERTEX; + + + + + + + +typedef struct _GRADIENT_TRIANGLE +{ + ULONG Vertex1; + ULONG Vertex2; + ULONG Vertex3; +} GRADIENT_TRIANGLE,*PGRADIENT_TRIANGLE,*LPGRADIENT_TRIANGLE; + +typedef struct _GRADIENT_RECT +{ + ULONG UpperLeft; + ULONG LowerRight; +}GRADIENT_RECT,*PGRADIENT_RECT,*LPGRADIENT_RECT; + + + + + + + +typedef struct _BLENDFUNCTION +{ + BYTE BlendOp; + BYTE BlendFlags; + BYTE SourceConstantAlpha; + BYTE AlphaFormat; +}BLENDFUNCTION,*PBLENDFUNCTION; +# 4751 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +__declspec(dllimport) BOOL __stdcall AlphaBlend( + HDC hdcDest, + int xoriginDest, + int yoriginDest, + int wDest, + int hDest, + HDC hdcSrc, + int xoriginSrc, + int yoriginSrc, + int wSrc, + int hSrc, + BLENDFUNCTION ftn); + +__declspec(dllimport) BOOL __stdcall TransparentBlt( + HDC hdcDest, + int xoriginDest, + int yoriginDest, + int wDest, + int hDest, + HDC hdcSrc, + int xoriginSrc, + int yoriginSrc, + int wSrc, + int hSrc, + UINT crTransparent); +# 4787 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GradientFill( + HDC hdc, + PTRIVERTEX pVertex, + ULONG nVertex, + PVOID pMesh, + ULONG nMesh, + ULONG ulMode + ); +# 4810 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +__declspec(dllimport) BOOL __stdcall GdiAlphaBlend( HDC hdcDest, int xoriginDest, int yoriginDest, int wDest, int hDest, HDC hdcSrc, int xoriginSrc, int yoriginSrc, int wSrc, int hSrc, BLENDFUNCTION ftn); + +__declspec(dllimport) BOOL __stdcall GdiTransparentBlt( HDC hdcDest, int xoriginDest, int yoriginDest, int wDest, int hDest, HDC hdcSrc, + int xoriginSrc, int yoriginSrc, int wSrc, int hSrc, UINT crTransparent); + +__declspec(dllimport) BOOL __stdcall GdiGradientFill( HDC hdc, + PTRIVERTEX pVertex, + ULONG nVertex, + PVOID pMesh, + ULONG nCount, + ULONG ulMode); + + + + + + + +__declspec(dllimport) BOOL __stdcall PlayMetaFileRecord( HDC hdc, + LPHANDLETABLE lpHandleTable, + LPMETARECORD lpMR, + UINT noObjs); + +typedef int (__stdcall* MFENUMPROC)( HDC hdc, HANDLETABLE * lpht, METARECORD * lpMR, int nObj, LPARAM param); +__declspec(dllimport) BOOL __stdcall EnumMetaFile( HDC hdc, HMETAFILE hmf, MFENUMPROC proc, LPARAM param); + +typedef int (__stdcall* ENHMFENUMPROC)( HDC hdc, HANDLETABLE * lpht, const ENHMETARECORD * lpmr, int nHandles, LPARAM data); + + + +__declspec(dllimport) HENHMETAFILE __stdcall CloseEnhMetaFile( HDC hdc); +__declspec(dllimport) HENHMETAFILE __stdcall CopyEnhMetaFileA( HENHMETAFILE hEnh, LPCSTR lpFileName); +__declspec(dllimport) HENHMETAFILE __stdcall CopyEnhMetaFileW( HENHMETAFILE hEnh, LPCWSTR lpFileName); + + + + + +__declspec(dllimport) HDC __stdcall CreateEnhMetaFileA( HDC hdc, LPCSTR lpFilename, const RECT *lprc, LPCSTR lpDesc); +__declspec(dllimport) HDC __stdcall CreateEnhMetaFileW( HDC hdc, LPCWSTR lpFilename, const RECT *lprc, LPCWSTR lpDesc); + + + + + +__declspec(dllimport) BOOL __stdcall DeleteEnhMetaFile( HENHMETAFILE hmf); +__declspec(dllimport) BOOL __stdcall EnumEnhMetaFile( HDC hdc, HENHMETAFILE hmf, ENHMFENUMPROC proc, + LPVOID param, const RECT * lpRect); +__declspec(dllimport) HENHMETAFILE __stdcall GetEnhMetaFileA( LPCSTR lpName); +__declspec(dllimport) HENHMETAFILE __stdcall GetEnhMetaFileW( LPCWSTR lpName); + + + + + +__declspec(dllimport) UINT __stdcall GetEnhMetaFileBits( HENHMETAFILE hEMF, + UINT nSize, + LPBYTE lpData); +__declspec(dllimport) UINT __stdcall GetEnhMetaFileDescriptionA( HENHMETAFILE hemf, + UINT cchBuffer, + LPSTR lpDescription); +__declspec(dllimport) UINT __stdcall GetEnhMetaFileDescriptionW( HENHMETAFILE hemf, + UINT cchBuffer, + LPWSTR lpDescription); + + + + + +__declspec(dllimport) UINT __stdcall GetEnhMetaFileHeader( HENHMETAFILE hemf, + UINT nSize, + LPENHMETAHEADER lpEnhMetaHeader); +__declspec(dllimport) UINT __stdcall GetEnhMetaFilePaletteEntries( HENHMETAFILE hemf, + UINT nNumEntries, + LPPALETTEENTRY lpPaletteEntries); + +__declspec(dllimport) UINT __stdcall GetEnhMetaFilePixelFormat( HENHMETAFILE hemf, + UINT cbBuffer, + PIXELFORMATDESCRIPTOR *ppfd); +__declspec(dllimport) UINT __stdcall GetWinMetaFileBits( HENHMETAFILE hemf, + UINT cbData16, + LPBYTE pData16, + INT iMapMode, + HDC hdcRef); +__declspec(dllimport) BOOL __stdcall PlayEnhMetaFile( HDC hdc, HENHMETAFILE hmf, const RECT * lprect); +__declspec(dllimport) BOOL __stdcall PlayEnhMetaFileRecord( HDC hdc, + LPHANDLETABLE pht, + const ENHMETARECORD *pmr, + UINT cht); + +__declspec(dllimport) HENHMETAFILE __stdcall SetEnhMetaFileBits( UINT nSize, + const BYTE * pb); + +__declspec(dllimport) HENHMETAFILE __stdcall SetWinMetaFileBits( UINT nSize, + const BYTE *lpMeta16Data, + HDC hdcRef, + const METAFILEPICT *lpMFP); +__declspec(dllimport) BOOL __stdcall GdiComment( HDC hdc, UINT nSize, const BYTE *lpData); + + + + + +__declspec(dllimport) BOOL __stdcall GetTextMetricsA( HDC hdc, LPTEXTMETRICA lptm); +__declspec(dllimport) BOOL __stdcall GetTextMetricsW( HDC hdc, LPTEXTMETRICW lptm); +# 4945 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagDIBSECTION { + BITMAP dsBm; + BITMAPINFOHEADER dsBmih; + DWORD dsBitfields[3]; + HANDLE dshSection; + DWORD dsOffset; +} DIBSECTION, *LPDIBSECTION, *PDIBSECTION; + + +__declspec(dllimport) BOOL __stdcall AngleArc( HDC hdc, int x, int y, DWORD r, FLOAT StartAngle, FLOAT SweepAngle); +__declspec(dllimport) BOOL __stdcall PolyPolyline( HDC hdc, const POINT *apt, const DWORD *asz, DWORD csz); +__declspec(dllimport) BOOL __stdcall GetWorldTransform( HDC hdc, LPXFORM lpxf); +__declspec(dllimport) BOOL __stdcall SetWorldTransform( HDC hdc, const XFORM * lpxf); +__declspec(dllimport) BOOL __stdcall ModifyWorldTransform( HDC hdc, const XFORM * lpxf, DWORD mode); +__declspec(dllimport) BOOL __stdcall CombineTransform( LPXFORM lpxfOut, const XFORM *lpxf1, const XFORM *lpxf2); + + + + + + +__declspec(dllimport) HBITMAP __stdcall CreateDIBSection( + HDC hdc, + const BITMAPINFO *pbmi, + UINT usage, + + + void **ppvBits, + HANDLE hSection, + DWORD offset); + + + +__declspec(dllimport) UINT __stdcall GetDIBColorTable( HDC hdc, + UINT iStart, + UINT cEntries, + RGBQUAD *prgbq); +__declspec(dllimport) UINT __stdcall SetDIBColorTable( HDC hdc, + UINT iStart, + UINT cEntries, + const RGBQUAD *prgbq); +# 5022 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagCOLORADJUSTMENT { + WORD caSize; + WORD caFlags; + WORD caIlluminantIndex; + WORD caRedGamma; + WORD caGreenGamma; + WORD caBlueGamma; + WORD caReferenceBlack; + WORD caReferenceWhite; + SHORT caContrast; + SHORT caBrightness; + SHORT caColorfulness; + SHORT caRedGreenTint; +} COLORADJUSTMENT, *PCOLORADJUSTMENT, *LPCOLORADJUSTMENT; + +__declspec(dllimport) BOOL __stdcall SetColorAdjustment( HDC hdc, const COLORADJUSTMENT *lpca); +__declspec(dllimport) BOOL __stdcall GetColorAdjustment( HDC hdc, LPCOLORADJUSTMENT lpca); +__declspec(dllimport) HPALETTE __stdcall CreateHalftonePalette( HDC hdc); + + +typedef BOOL (__stdcall* ABORTPROC)( HDC, int); + + + + +typedef struct _DOCINFOA { + int cbSize; + LPCSTR lpszDocName; + LPCSTR lpszOutput; + + LPCSTR lpszDatatype; + DWORD fwType; + +} DOCINFOA, *LPDOCINFOA; +typedef struct _DOCINFOW { + int cbSize; + LPCWSTR lpszDocName; + LPCWSTR lpszOutput; + + LPCWSTR lpszDatatype; + DWORD fwType; + +} DOCINFOW, *LPDOCINFOW; + + + + +typedef DOCINFOA DOCINFO; +typedef LPDOCINFOA LPDOCINFO; + + + + + + + + __declspec(dllimport) int __stdcall StartDocA( HDC hdc, const DOCINFOA *lpdi); + __declspec(dllimport) int __stdcall StartDocW( HDC hdc, const DOCINFOW *lpdi); + + + + + + __declspec(dllimport) int __stdcall EndDoc( HDC hdc); + __declspec(dllimport) int __stdcall StartPage( HDC hdc); + __declspec(dllimport) int __stdcall EndPage( HDC hdc); + __declspec(dllimport) int __stdcall AbortDoc( HDC hdc); +__declspec(dllimport) int __stdcall SetAbortProc( HDC hdc, ABORTPROC proc); + +__declspec(dllimport) BOOL __stdcall AbortPath( HDC hdc); +__declspec(dllimport) BOOL __stdcall ArcTo( HDC hdc, int left, int top, int right, int bottom, int xr1, int yr1, int xr2, int yr2); +__declspec(dllimport) BOOL __stdcall BeginPath( HDC hdc); +__declspec(dllimport) BOOL __stdcall CloseFigure( HDC hdc); +__declspec(dllimport) BOOL __stdcall EndPath( HDC hdc); +__declspec(dllimport) BOOL __stdcall FillPath( HDC hdc); +__declspec(dllimport) BOOL __stdcall FlattenPath( HDC hdc); +__declspec(dllimport) int __stdcall GetPath( HDC hdc, LPPOINT apt, LPBYTE aj, int cpt); +__declspec(dllimport) HRGN __stdcall PathToRegion( HDC hdc); +__declspec(dllimport) BOOL __stdcall PolyDraw( HDC hdc, const POINT * apt, const BYTE * aj, int cpt); +__declspec(dllimport) BOOL __stdcall SelectClipPath( HDC hdc, int mode); +__declspec(dllimport) int __stdcall SetArcDirection( HDC hdc, int dir); +__declspec(dllimport) BOOL __stdcall SetMiterLimit( HDC hdc, FLOAT limit, PFLOAT old); +__declspec(dllimport) BOOL __stdcall StrokeAndFillPath( HDC hdc); +__declspec(dllimport) BOOL __stdcall StrokePath( HDC hdc); +__declspec(dllimport) BOOL __stdcall WidenPath( HDC hdc); +__declspec(dllimport) HPEN __stdcall ExtCreatePen( DWORD iPenStyle, + DWORD cWidth, + const LOGBRUSH *plbrush, + DWORD cStyle, + const DWORD *pstyle); +__declspec(dllimport) BOOL __stdcall GetMiterLimit( HDC hdc, PFLOAT plimit); +__declspec(dllimport) int __stdcall GetArcDirection( HDC hdc); + +__declspec(dllimport) int __stdcall GetObjectA( HANDLE h, int c, LPVOID pv); +__declspec(dllimport) int __stdcall GetObjectW( HANDLE h, int c, LPVOID pv); +# 5145 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 + __declspec(dllimport) BOOL __stdcall MoveToEx( HDC hdc, int x, int y, LPPOINT lppt); + __declspec(dllimport) BOOL __stdcall TextOutA( HDC hdc, int x, int y, LPCSTR lpString, int c); + __declspec(dllimport) BOOL __stdcall TextOutW( HDC hdc, int x, int y, LPCWSTR lpString, int c); + + + + + + __declspec(dllimport) BOOL __stdcall ExtTextOutA( HDC hdc, int x, int y, UINT options, const RECT * lprect, LPCSTR lpString, UINT c, const INT * lpDx); + __declspec(dllimport) BOOL __stdcall ExtTextOutW( HDC hdc, int x, int y, UINT options, const RECT * lprect, LPCWSTR lpString, UINT c, const INT * lpDx); + + + + + +__declspec(dllimport) BOOL __stdcall PolyTextOutA( HDC hdc, const POLYTEXTA * ppt, int nstrings); +__declspec(dllimport) BOOL __stdcall PolyTextOutW( HDC hdc, const POLYTEXTW * ppt, int nstrings); + + + + + + +__declspec(dllimport) HRGN __stdcall CreatePolygonRgn( const POINT *pptl, + int cPoint, + int iMode); +__declspec(dllimport) BOOL __stdcall DPtoLP( HDC hdc, LPPOINT lppt, int c); +__declspec(dllimport) BOOL __stdcall LPtoDP( HDC hdc, LPPOINT lppt, int c); + __declspec(dllimport) BOOL __stdcall Polygon( HDC hdc, const POINT *apt, int cpt); + __declspec(dllimport) BOOL __stdcall Polyline( HDC hdc, const POINT *apt, int cpt); + +__declspec(dllimport) BOOL __stdcall PolyBezier( HDC hdc, const POINT * apt, DWORD cpt); +__declspec(dllimport) BOOL __stdcall PolyBezierTo( HDC hdc, const POINT * apt, DWORD cpt); +__declspec(dllimport) BOOL __stdcall PolylineTo( HDC hdc, const POINT * apt, DWORD cpt); + + __declspec(dllimport) BOOL __stdcall SetViewportExtEx( HDC hdc, int x, int y, LPSIZE lpsz); + __declspec(dllimport) BOOL __stdcall SetViewportOrgEx( HDC hdc, int x, int y, LPPOINT lppt); + __declspec(dllimport) BOOL __stdcall SetWindowExtEx( HDC hdc, int x, int y, LPSIZE lpsz); + __declspec(dllimport) BOOL __stdcall SetWindowOrgEx( HDC hdc, int x, int y, LPPOINT lppt); + + __declspec(dllimport) BOOL __stdcall OffsetViewportOrgEx( HDC hdc, int x, int y, LPPOINT lppt); + __declspec(dllimport) BOOL __stdcall OffsetWindowOrgEx( HDC hdc, int x, int y, LPPOINT lppt); + __declspec(dllimport) BOOL __stdcall ScaleViewportExtEx( HDC hdc, int xn, int dx, int yn, int yd, LPSIZE lpsz); + __declspec(dllimport) BOOL __stdcall ScaleWindowExtEx( HDC hdc, int xn, int xd, int yn, int yd, LPSIZE lpsz); +__declspec(dllimport) BOOL __stdcall SetBitmapDimensionEx( HBITMAP hbm, int w, int h, LPSIZE lpsz); +__declspec(dllimport) BOOL __stdcall SetBrushOrgEx( HDC hdc, int x, int y, LPPOINT lppt); + +__declspec(dllimport) int __stdcall GetTextFaceA( HDC hdc, int c, LPSTR lpName); +__declspec(dllimport) int __stdcall GetTextFaceW( HDC hdc, int c, LPWSTR lpName); +# 5202 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagKERNINGPAIR { + WORD wFirst; + WORD wSecond; + int iKernAmount; +} KERNINGPAIR, *LPKERNINGPAIR; + +__declspec(dllimport) DWORD __stdcall GetKerningPairsA( HDC hdc, + DWORD nPairs, + LPKERNINGPAIR lpKernPair); +__declspec(dllimport) DWORD __stdcall GetKerningPairsW( HDC hdc, + DWORD nPairs, + LPKERNINGPAIR lpKernPair); + + + + + + + +__declspec(dllimport) BOOL __stdcall GetDCOrgEx( HDC hdc, LPPOINT lppt); +__declspec(dllimport) BOOL __stdcall FixBrushOrgEx( HDC hdc, int x, int y, LPPOINT ptl); +__declspec(dllimport) BOOL __stdcall UnrealizeObject( HGDIOBJ h); + +__declspec(dllimport) BOOL __stdcall GdiFlush(void); +__declspec(dllimport) DWORD __stdcall GdiSetBatchLimit( DWORD dw); +__declspec(dllimport) DWORD __stdcall GdiGetBatchLimit(void); +# 5236 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef int (__stdcall* ICMENUMPROCA)(LPSTR, LPARAM); +typedef int (__stdcall* ICMENUMPROCW)(LPWSTR, LPARAM); + + + + + + +__declspec(dllimport) int __stdcall SetICMMode( HDC hdc, int mode); +__declspec(dllimport) BOOL __stdcall CheckColorsInGamut( HDC hdc, + LPRGBTRIPLE lpRGBTriple, + LPVOID dlpBuffer, + DWORD nCount); + +__declspec(dllimport) HCOLORSPACE __stdcall GetColorSpace( HDC hdc); +__declspec(dllimport) BOOL __stdcall GetLogColorSpaceA( HCOLORSPACE hColorSpace, + LPLOGCOLORSPACEA lpBuffer, + DWORD nSize); +__declspec(dllimport) BOOL __stdcall GetLogColorSpaceW( HCOLORSPACE hColorSpace, + LPLOGCOLORSPACEW lpBuffer, + DWORD nSize); + + + + + + +__declspec(dllimport) HCOLORSPACE __stdcall CreateColorSpaceA( LPLOGCOLORSPACEA lplcs); +__declspec(dllimport) HCOLORSPACE __stdcall CreateColorSpaceW( LPLOGCOLORSPACEW lplcs); + + + + + +__declspec(dllimport) HCOLORSPACE __stdcall SetColorSpace( HDC hdc, HCOLORSPACE hcs); +__declspec(dllimport) BOOL __stdcall DeleteColorSpace( HCOLORSPACE hcs); +__declspec(dllimport) BOOL __stdcall GetICMProfileA( HDC hdc, + LPDWORD pBufSize, + LPSTR pszFilename); +__declspec(dllimport) BOOL __stdcall GetICMProfileW( HDC hdc, + LPDWORD pBufSize, + LPWSTR pszFilename); + + + + + + +__declspec(dllimport) BOOL __stdcall SetICMProfileA( HDC hdc, LPSTR lpFileName); +__declspec(dllimport) BOOL __stdcall SetICMProfileW( HDC hdc, LPWSTR lpFileName); + + + + + +__declspec(dllimport) BOOL __stdcall GetDeviceGammaRamp( HDC hdc, LPVOID lpRamp); +__declspec(dllimport) BOOL __stdcall SetDeviceGammaRamp( HDC hdc, LPVOID lpRamp); +__declspec(dllimport) BOOL __stdcall ColorMatchToTarget( HDC hdc, HDC hdcTarget, DWORD action); +__declspec(dllimport) int __stdcall EnumICMProfilesA( HDC hdc, ICMENUMPROCA proc, LPARAM param); +__declspec(dllimport) int __stdcall EnumICMProfilesW( HDC hdc, ICMENUMPROCW proc, LPARAM param); + + + + + + +__declspec(dllimport) BOOL __stdcall UpdateICMRegKeyA( DWORD reserved, LPSTR lpszCMID, LPSTR lpszFileName, UINT command); + +__declspec(dllimport) BOOL __stdcall UpdateICMRegKeyW( DWORD reserved, LPWSTR lpszCMID, LPWSTR lpszFileName, UINT command); + + + + + + + +#pragma deprecated (UpdateICMRegKeyW) +#pragma deprecated (UpdateICMRegKeyA) + + + + + +__declspec(dllimport) BOOL __stdcall ColorCorrectPalette( HDC hdc, HPALETTE hPal, DWORD deFirst, DWORD num); +# 5484 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +typedef struct tagEMR +{ + DWORD iType; + DWORD nSize; + +} EMR, *PEMR; + + + +typedef struct tagEMRTEXT +{ + POINTL ptlReference; + DWORD nChars; + DWORD offString; + DWORD fOptions; + RECTL rcl; + DWORD offDx; + +} EMRTEXT, *PEMRTEXT; + + + +typedef struct tagABORTPATH +{ + EMR emr; +} EMRABORTPATH, *PEMRABORTPATH, + EMRBEGINPATH, *PEMRBEGINPATH, + EMRENDPATH, *PEMRENDPATH, + EMRCLOSEFIGURE, *PEMRCLOSEFIGURE, + EMRFLATTENPATH, *PEMRFLATTENPATH, + EMRWIDENPATH, *PEMRWIDENPATH, + EMRSETMETARGN, *PEMRSETMETARGN, + EMRSAVEDC, *PEMRSAVEDC, + EMRREALIZEPALETTE, *PEMRREALIZEPALETTE; + +typedef struct tagEMRSELECTCLIPPATH +{ + EMR emr; + DWORD iMode; +} EMRSELECTCLIPPATH, *PEMRSELECTCLIPPATH, + EMRSETBKMODE, *PEMRSETBKMODE, + EMRSETMAPMODE, *PEMRSETMAPMODE, + + EMRSETLAYOUT, *PEMRSETLAYOUT, + + EMRSETPOLYFILLMODE, *PEMRSETPOLYFILLMODE, + EMRSETROP2, *PEMRSETROP2, + EMRSETSTRETCHBLTMODE, *PEMRSETSTRETCHBLTMODE, + EMRSETICMMODE, *PEMRSETICMMODE, + EMRSETTEXTALIGN, *PEMRSETTEXTALIGN; + +typedef struct tagEMRSETMITERLIMIT +{ + EMR emr; + FLOAT eMiterLimit; +} EMRSETMITERLIMIT, *PEMRSETMITERLIMIT; + +typedef struct tagEMRRESTOREDC +{ + EMR emr; + LONG iRelative; +} EMRRESTOREDC, *PEMRRESTOREDC; + +typedef struct tagEMRSETARCDIRECTION +{ + EMR emr; + DWORD iArcDirection; + +} EMRSETARCDIRECTION, *PEMRSETARCDIRECTION; + +typedef struct tagEMRSETMAPPERFLAGS +{ + EMR emr; + DWORD dwFlags; +} EMRSETMAPPERFLAGS, *PEMRSETMAPPERFLAGS; + +typedef struct tagEMRSETTEXTCOLOR +{ + EMR emr; + COLORREF crColor; +} EMRSETBKCOLOR, *PEMRSETBKCOLOR, + EMRSETTEXTCOLOR, *PEMRSETTEXTCOLOR; + +typedef struct tagEMRSELECTOBJECT +{ + EMR emr; + DWORD ihObject; +} EMRSELECTOBJECT, *PEMRSELECTOBJECT, + EMRDELETEOBJECT, *PEMRDELETEOBJECT; + +typedef struct tagEMRSELECTPALETTE +{ + EMR emr; + DWORD ihPal; +} EMRSELECTPALETTE, *PEMRSELECTPALETTE; + +typedef struct tagEMRRESIZEPALETTE +{ + EMR emr; + DWORD ihPal; + DWORD cEntries; +} EMRRESIZEPALETTE, *PEMRRESIZEPALETTE; + +typedef struct tagEMRSETPALETTEENTRIES +{ + EMR emr; + DWORD ihPal; + DWORD iStart; + DWORD cEntries; + PALETTEENTRY aPalEntries[1]; +} EMRSETPALETTEENTRIES, *PEMRSETPALETTEENTRIES; + +typedef struct tagEMRSETCOLORADJUSTMENT +{ + EMR emr; + COLORADJUSTMENT ColorAdjustment; +} EMRSETCOLORADJUSTMENT, *PEMRSETCOLORADJUSTMENT; + +typedef struct tagEMRGDICOMMENT +{ + EMR emr; + DWORD cbData; + BYTE Data[1]; +} EMRGDICOMMENT, *PEMRGDICOMMENT; + +typedef struct tagEMREOF +{ + EMR emr; + DWORD nPalEntries; + DWORD offPalEntries; + DWORD nSizeLast; + + +} EMREOF, *PEMREOF; + +typedef struct tagEMRLINETO +{ + EMR emr; + POINTL ptl; +} EMRLINETO, *PEMRLINETO, + EMRMOVETOEX, *PEMRMOVETOEX; + +typedef struct tagEMROFFSETCLIPRGN +{ + EMR emr; + POINTL ptlOffset; +} EMROFFSETCLIPRGN, *PEMROFFSETCLIPRGN; + +typedef struct tagEMRFILLPATH +{ + EMR emr; + RECTL rclBounds; +} EMRFILLPATH, *PEMRFILLPATH, + EMRSTROKEANDFILLPATH, *PEMRSTROKEANDFILLPATH, + EMRSTROKEPATH, *PEMRSTROKEPATH; + +typedef struct tagEMREXCLUDECLIPRECT +{ + EMR emr; + RECTL rclClip; +} EMREXCLUDECLIPRECT, *PEMREXCLUDECLIPRECT, + EMRINTERSECTCLIPRECT, *PEMRINTERSECTCLIPRECT; + +typedef struct tagEMRSETVIEWPORTORGEX +{ + EMR emr; + POINTL ptlOrigin; +} EMRSETVIEWPORTORGEX, *PEMRSETVIEWPORTORGEX, + EMRSETWINDOWORGEX, *PEMRSETWINDOWORGEX, + EMRSETBRUSHORGEX, *PEMRSETBRUSHORGEX; + +typedef struct tagEMRSETVIEWPORTEXTEX +{ + EMR emr; + SIZEL szlExtent; +} EMRSETVIEWPORTEXTEX, *PEMRSETVIEWPORTEXTEX, + EMRSETWINDOWEXTEX, *PEMRSETWINDOWEXTEX; + +typedef struct tagEMRSCALEVIEWPORTEXTEX +{ + EMR emr; + LONG xNum; + LONG xDenom; + LONG yNum; + LONG yDenom; +} EMRSCALEVIEWPORTEXTEX, *PEMRSCALEVIEWPORTEXTEX, + EMRSCALEWINDOWEXTEX, *PEMRSCALEWINDOWEXTEX; + +typedef struct tagEMRSETWORLDTRANSFORM +{ + EMR emr; + XFORM xform; +} EMRSETWORLDTRANSFORM, *PEMRSETWORLDTRANSFORM; + +typedef struct tagEMRMODIFYWORLDTRANSFORM +{ + EMR emr; + XFORM xform; + DWORD iMode; +} EMRMODIFYWORLDTRANSFORM, *PEMRMODIFYWORLDTRANSFORM; + +typedef struct tagEMRSETPIXELV +{ + EMR emr; + POINTL ptlPixel; + COLORREF crColor; +} EMRSETPIXELV, *PEMRSETPIXELV; + +typedef struct tagEMREXTFLOODFILL +{ + EMR emr; + POINTL ptlStart; + COLORREF crColor; + DWORD iMode; +} EMREXTFLOODFILL, *PEMREXTFLOODFILL; + +typedef struct tagEMRELLIPSE +{ + EMR emr; + RECTL rclBox; +} EMRELLIPSE, *PEMRELLIPSE, + EMRRECTANGLE, *PEMRRECTANGLE; + + +typedef struct tagEMRROUNDRECT +{ + EMR emr; + RECTL rclBox; + SIZEL szlCorner; +} EMRROUNDRECT, *PEMRROUNDRECT; + +typedef struct tagEMRARC +{ + EMR emr; + RECTL rclBox; + POINTL ptlStart; + POINTL ptlEnd; +} EMRARC, *PEMRARC, + EMRARCTO, *PEMRARCTO, + EMRCHORD, *PEMRCHORD, + EMRPIE, *PEMRPIE; + +typedef struct tagEMRANGLEARC +{ + EMR emr; + POINTL ptlCenter; + DWORD nRadius; + FLOAT eStartAngle; + FLOAT eSweepAngle; +} EMRANGLEARC, *PEMRANGLEARC; + +typedef struct tagEMRPOLYLINE +{ + EMR emr; + RECTL rclBounds; + DWORD cptl; + POINTL aptl[1]; +} EMRPOLYLINE, *PEMRPOLYLINE, + EMRPOLYBEZIER, *PEMRPOLYBEZIER, + EMRPOLYGON, *PEMRPOLYGON, + EMRPOLYBEZIERTO, *PEMRPOLYBEZIERTO, + EMRPOLYLINETO, *PEMRPOLYLINETO; + +typedef struct tagEMRPOLYLINE16 +{ + EMR emr; + RECTL rclBounds; + DWORD cpts; + POINTS apts[1]; +} EMRPOLYLINE16, *PEMRPOLYLINE16, + EMRPOLYBEZIER16, *PEMRPOLYBEZIER16, + EMRPOLYGON16, *PEMRPOLYGON16, + EMRPOLYBEZIERTO16, *PEMRPOLYBEZIERTO16, + EMRPOLYLINETO16, *PEMRPOLYLINETO16; + +typedef struct tagEMRPOLYDRAW +{ + EMR emr; + RECTL rclBounds; + DWORD cptl; + POINTL aptl[1]; + BYTE abTypes[1]; +} EMRPOLYDRAW, *PEMRPOLYDRAW; + +typedef struct tagEMRPOLYDRAW16 +{ + EMR emr; + RECTL rclBounds; + DWORD cpts; + POINTS apts[1]; + BYTE abTypes[1]; +} EMRPOLYDRAW16, *PEMRPOLYDRAW16; + +typedef struct tagEMRPOLYPOLYLINE +{ + EMR emr; + RECTL rclBounds; + DWORD nPolys; + DWORD cptl; + DWORD aPolyCounts[1]; + POINTL aptl[1]; +} EMRPOLYPOLYLINE, *PEMRPOLYPOLYLINE, + EMRPOLYPOLYGON, *PEMRPOLYPOLYGON; + +typedef struct tagEMRPOLYPOLYLINE16 +{ + EMR emr; + RECTL rclBounds; + DWORD nPolys; + DWORD cpts; + DWORD aPolyCounts[1]; + POINTS apts[1]; +} EMRPOLYPOLYLINE16, *PEMRPOLYPOLYLINE16, + EMRPOLYPOLYGON16, *PEMRPOLYPOLYGON16; + +typedef struct tagEMRINVERTRGN +{ + EMR emr; + RECTL rclBounds; + DWORD cbRgnData; + BYTE RgnData[1]; +} EMRINVERTRGN, *PEMRINVERTRGN, + EMRPAINTRGN, *PEMRPAINTRGN; + +typedef struct tagEMRFILLRGN +{ + EMR emr; + RECTL rclBounds; + DWORD cbRgnData; + DWORD ihBrush; + BYTE RgnData[1]; +} EMRFILLRGN, *PEMRFILLRGN; + +typedef struct tagEMRFRAMERGN +{ + EMR emr; + RECTL rclBounds; + DWORD cbRgnData; + DWORD ihBrush; + SIZEL szlStroke; + BYTE RgnData[1]; +} EMRFRAMERGN, *PEMRFRAMERGN; + +typedef struct tagEMREXTSELECTCLIPRGN +{ + EMR emr; + DWORD cbRgnData; + DWORD iMode; + BYTE RgnData[1]; +} EMREXTSELECTCLIPRGN, *PEMREXTSELECTCLIPRGN; + +typedef struct tagEMREXTTEXTOUTA +{ + EMR emr; + RECTL rclBounds; + DWORD iGraphicsMode; + FLOAT exScale; + FLOAT eyScale; + EMRTEXT emrtext; + +} EMREXTTEXTOUTA, *PEMREXTTEXTOUTA, + EMREXTTEXTOUTW, *PEMREXTTEXTOUTW; + +typedef struct tagEMRPOLYTEXTOUTA +{ + EMR emr; + RECTL rclBounds; + DWORD iGraphicsMode; + FLOAT exScale; + FLOAT eyScale; + LONG cStrings; + EMRTEXT aemrtext[1]; + +} EMRPOLYTEXTOUTA, *PEMRPOLYTEXTOUTA, + EMRPOLYTEXTOUTW, *PEMRPOLYTEXTOUTW; + +typedef struct tagEMRBITBLT +{ + EMR emr; + RECTL rclBounds; + LONG xDest; + LONG yDest; + LONG cxDest; + LONG cyDest; + DWORD dwRop; + LONG xSrc; + LONG ySrc; + XFORM xformSrc; + COLORREF crBkColorSrc; + DWORD iUsageSrc; + + DWORD offBmiSrc; + DWORD cbBmiSrc; + DWORD offBitsSrc; + DWORD cbBitsSrc; +} EMRBITBLT, *PEMRBITBLT; + +typedef struct tagEMRSTRETCHBLT +{ + EMR emr; + RECTL rclBounds; + LONG xDest; + LONG yDest; + LONG cxDest; + LONG cyDest; + DWORD dwRop; + LONG xSrc; + LONG ySrc; + XFORM xformSrc; + COLORREF crBkColorSrc; + DWORD iUsageSrc; + + DWORD offBmiSrc; + DWORD cbBmiSrc; + DWORD offBitsSrc; + DWORD cbBitsSrc; + LONG cxSrc; + LONG cySrc; +} EMRSTRETCHBLT, *PEMRSTRETCHBLT; + +typedef struct tagEMRMASKBLT +{ + EMR emr; + RECTL rclBounds; + LONG xDest; + LONG yDest; + LONG cxDest; + LONG cyDest; + DWORD dwRop; + LONG xSrc; + LONG ySrc; + XFORM xformSrc; + COLORREF crBkColorSrc; + DWORD iUsageSrc; + + DWORD offBmiSrc; + DWORD cbBmiSrc; + DWORD offBitsSrc; + DWORD cbBitsSrc; + LONG xMask; + LONG yMask; + DWORD iUsageMask; + DWORD offBmiMask; + DWORD cbBmiMask; + DWORD offBitsMask; + DWORD cbBitsMask; +} EMRMASKBLT, *PEMRMASKBLT; + +typedef struct tagEMRPLGBLT +{ + EMR emr; + RECTL rclBounds; + POINTL aptlDest[3]; + LONG xSrc; + LONG ySrc; + LONG cxSrc; + LONG cySrc; + XFORM xformSrc; + COLORREF crBkColorSrc; + DWORD iUsageSrc; + + DWORD offBmiSrc; + DWORD cbBmiSrc; + DWORD offBitsSrc; + DWORD cbBitsSrc; + LONG xMask; + LONG yMask; + DWORD iUsageMask; + DWORD offBmiMask; + DWORD cbBmiMask; + DWORD offBitsMask; + DWORD cbBitsMask; +} EMRPLGBLT, *PEMRPLGBLT; + +typedef struct tagEMRSETDIBITSTODEVICE +{ + EMR emr; + RECTL rclBounds; + LONG xDest; + LONG yDest; + LONG xSrc; + LONG ySrc; + LONG cxSrc; + LONG cySrc; + DWORD offBmiSrc; + DWORD cbBmiSrc; + DWORD offBitsSrc; + DWORD cbBitsSrc; + DWORD iUsageSrc; + DWORD iStartScan; + DWORD cScans; +} EMRSETDIBITSTODEVICE, *PEMRSETDIBITSTODEVICE; + +typedef struct tagEMRSTRETCHDIBITS +{ + EMR emr; + RECTL rclBounds; + LONG xDest; + LONG yDest; + LONG xSrc; + LONG ySrc; + LONG cxSrc; + LONG cySrc; + DWORD offBmiSrc; + DWORD cbBmiSrc; + DWORD offBitsSrc; + DWORD cbBitsSrc; + DWORD iUsageSrc; + DWORD dwRop; + LONG cxDest; + LONG cyDest; +} EMRSTRETCHDIBITS, *PEMRSTRETCHDIBITS; + +typedef struct tagEMREXTCREATEFONTINDIRECTW +{ + EMR emr; + DWORD ihFont; + EXTLOGFONTW elfw; +} EMREXTCREATEFONTINDIRECTW, *PEMREXTCREATEFONTINDIRECTW; + +typedef struct tagEMRCREATEPALETTE +{ + EMR emr; + DWORD ihPal; + LOGPALETTE lgpl; + +} EMRCREATEPALETTE, *PEMRCREATEPALETTE; + +typedef struct tagEMRCREATEPEN +{ + EMR emr; + DWORD ihPen; + LOGPEN lopn; +} EMRCREATEPEN, *PEMRCREATEPEN; + +typedef struct tagEMREXTCREATEPEN +{ + EMR emr; + DWORD ihPen; + DWORD offBmi; + DWORD cbBmi; + + + DWORD offBits; + DWORD cbBits; + EXTLOGPEN32 elp; +} EMREXTCREATEPEN, *PEMREXTCREATEPEN; + +typedef struct tagEMRCREATEBRUSHINDIRECT +{ + EMR emr; + DWORD ihBrush; + LOGBRUSH32 lb; + +} EMRCREATEBRUSHINDIRECT, *PEMRCREATEBRUSHINDIRECT; + +typedef struct tagEMRCREATEMONOBRUSH +{ + EMR emr; + DWORD ihBrush; + DWORD iUsage; + DWORD offBmi; + DWORD cbBmi; + DWORD offBits; + DWORD cbBits; +} EMRCREATEMONOBRUSH, *PEMRCREATEMONOBRUSH; + +typedef struct tagEMRCREATEDIBPATTERNBRUSHPT +{ + EMR emr; + DWORD ihBrush; + DWORD iUsage; + DWORD offBmi; + DWORD cbBmi; + + + DWORD offBits; + DWORD cbBits; +} EMRCREATEDIBPATTERNBRUSHPT, *PEMRCREATEDIBPATTERNBRUSHPT; + +typedef struct tagEMRFORMAT +{ + DWORD dSignature; + DWORD nVersion; + DWORD cbData; + DWORD offData; + +} EMRFORMAT, *PEMRFORMAT; + + + +typedef struct tagEMRGLSRECORD +{ + EMR emr; + DWORD cbData; + BYTE Data[1]; +} EMRGLSRECORD, *PEMRGLSRECORD; + +typedef struct tagEMRGLSBOUNDEDRECORD +{ + EMR emr; + RECTL rclBounds; + DWORD cbData; + BYTE Data[1]; +} EMRGLSBOUNDEDRECORD, *PEMRGLSBOUNDEDRECORD; + +typedef struct tagEMRPIXELFORMAT +{ + EMR emr; + PIXELFORMATDESCRIPTOR pfd; +} EMRPIXELFORMAT, *PEMRPIXELFORMAT; + +typedef struct tagEMRCREATECOLORSPACE +{ + EMR emr; + DWORD ihCS; + LOGCOLORSPACEA lcs; +} EMRCREATECOLORSPACE, *PEMRCREATECOLORSPACE; + +typedef struct tagEMRSETCOLORSPACE +{ + EMR emr; + DWORD ihCS; +} EMRSETCOLORSPACE, *PEMRSETCOLORSPACE, + EMRSELECTCOLORSPACE, *PEMRSELECTCOLORSPACE, + EMRDELETECOLORSPACE, *PEMRDELETECOLORSPACE; + + + + + +typedef struct tagEMREXTESCAPE +{ + EMR emr; + INT iEscape; + INT cbEscData; + BYTE EscData[1]; +} EMREXTESCAPE, *PEMREXTESCAPE, + EMRDRAWESCAPE, *PEMRDRAWESCAPE; + +typedef struct tagEMRNAMEDESCAPE +{ + EMR emr; + INT iEscape; + INT cbDriver; + INT cbEscData; + BYTE EscData[1]; +} EMRNAMEDESCAPE, *PEMRNAMEDESCAPE; + + + +typedef struct tagEMRSETICMPROFILE +{ + EMR emr; + DWORD dwFlags; + DWORD cbName; + DWORD cbData; + BYTE Data[1]; +} EMRSETICMPROFILE, *PEMRSETICMPROFILE, + EMRSETICMPROFILEA, *PEMRSETICMPROFILEA, + EMRSETICMPROFILEW, *PEMRSETICMPROFILEW; + + + +typedef struct tagEMRCREATECOLORSPACEW +{ + EMR emr; + DWORD ihCS; + LOGCOLORSPACEW lcs; + DWORD dwFlags; + DWORD cbData; + BYTE Data[1]; +} EMRCREATECOLORSPACEW, *PEMRCREATECOLORSPACEW; + + + +typedef struct tagCOLORMATCHTOTARGET +{ + EMR emr; + DWORD dwAction; + DWORD dwFlags; + DWORD cbName; + DWORD cbData; + BYTE Data[1]; +} EMRCOLORMATCHTOTARGET, *PEMRCOLORMATCHTOTARGET; + +typedef struct tagCOLORCORRECTPALETTE +{ + EMR emr; + DWORD ihPalette; + DWORD nFirstEntry; + DWORD nPalEntries; + DWORD nReserved; +} EMRCOLORCORRECTPALETTE, *PEMRCOLORCORRECTPALETTE; + +typedef struct tagEMRALPHABLEND +{ + EMR emr; + RECTL rclBounds; + LONG xDest; + LONG yDest; + LONG cxDest; + LONG cyDest; + DWORD dwRop; + LONG xSrc; + LONG ySrc; + XFORM xformSrc; + COLORREF crBkColorSrc; + DWORD iUsageSrc; + + DWORD offBmiSrc; + DWORD cbBmiSrc; + DWORD offBitsSrc; + DWORD cbBitsSrc; + LONG cxSrc; + LONG cySrc; +} EMRALPHABLEND, *PEMRALPHABLEND; + +typedef struct tagEMRGRADIENTFILL +{ + EMR emr; + RECTL rclBounds; + DWORD nVer; + DWORD nTri; + ULONG ulMode; + TRIVERTEX Ver[1]; +}EMRGRADIENTFILL,*PEMRGRADIENTFILL; + +typedef struct tagEMRTRANSPARENTBLT +{ + EMR emr; + RECTL rclBounds; + LONG xDest; + LONG yDest; + LONG cxDest; + LONG cyDest; + DWORD dwRop; + LONG xSrc; + LONG ySrc; + XFORM xformSrc; + COLORREF crBkColorSrc; + DWORD iUsageSrc; + + DWORD offBmiSrc; + DWORD cbBmiSrc; + DWORD offBitsSrc; + DWORD cbBitsSrc; + LONG cxSrc; + LONG cySrc; +} EMRTRANSPARENTBLT, *PEMRTRANSPARENTBLT; +# 6252 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +__declspec(dllimport) BOOL __stdcall wglCopyContext(HGLRC, HGLRC, UINT); +__declspec(dllimport) HGLRC __stdcall wglCreateContext(HDC); +__declspec(dllimport) HGLRC __stdcall wglCreateLayerContext(HDC, int); +__declspec(dllimport) BOOL __stdcall wglDeleteContext(HGLRC); +__declspec(dllimport) HGLRC __stdcall wglGetCurrentContext(void); +__declspec(dllimport) HDC __stdcall wglGetCurrentDC(void); +__declspec(dllimport) PROC __stdcall wglGetProcAddress(LPCSTR); +__declspec(dllimport) BOOL __stdcall wglMakeCurrent(HDC, HGLRC); +__declspec(dllimport) BOOL __stdcall wglShareLists(HGLRC, HGLRC); +__declspec(dllimport) BOOL __stdcall wglUseFontBitmapsA(HDC, DWORD, DWORD, DWORD); +__declspec(dllimport) BOOL __stdcall wglUseFontBitmapsW(HDC, DWORD, DWORD, DWORD); + + + + + +__declspec(dllimport) BOOL __stdcall SwapBuffers(HDC); + +typedef struct _POINTFLOAT { + FLOAT x; + FLOAT y; +} POINTFLOAT, *PPOINTFLOAT; + +typedef struct _GLYPHMETRICSFLOAT { + FLOAT gmfBlackBoxX; + FLOAT gmfBlackBoxY; + POINTFLOAT gmfptGlyphOrigin; + FLOAT gmfCellIncX; + FLOAT gmfCellIncY; +} GLYPHMETRICSFLOAT, *PGLYPHMETRICSFLOAT, *LPGLYPHMETRICSFLOAT; + + + +__declspec(dllimport) BOOL __stdcall wglUseFontOutlinesA(HDC, DWORD, DWORD, DWORD, FLOAT, + FLOAT, int, LPGLYPHMETRICSFLOAT); +__declspec(dllimport) BOOL __stdcall wglUseFontOutlinesW(HDC, DWORD, DWORD, DWORD, FLOAT, + FLOAT, int, LPGLYPHMETRICSFLOAT); + + + + + + + +typedef struct tagLAYERPLANEDESCRIPTOR { + WORD nSize; + WORD nVersion; + DWORD dwFlags; + BYTE iPixelType; + BYTE cColorBits; + BYTE cRedBits; + BYTE cRedShift; + BYTE cGreenBits; + BYTE cGreenShift; + BYTE cBlueBits; + BYTE cBlueShift; + BYTE cAlphaBits; + BYTE cAlphaShift; + BYTE cAccumBits; + BYTE cAccumRedBits; + BYTE cAccumGreenBits; + BYTE cAccumBlueBits; + BYTE cAccumAlphaBits; + BYTE cDepthBits; + BYTE cStencilBits; + BYTE cAuxBuffers; + BYTE iLayerPlane; + BYTE bReserved; + COLORREF crTransparent; +} LAYERPLANEDESCRIPTOR, *PLAYERPLANEDESCRIPTOR, *LPLAYERPLANEDESCRIPTOR; +# 6371 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +__declspec(dllimport) BOOL __stdcall wglDescribeLayerPlane(HDC, int, int, UINT, + LPLAYERPLANEDESCRIPTOR); +__declspec(dllimport) int __stdcall wglSetLayerPaletteEntries(HDC, int, int, int, + const COLORREF *); +__declspec(dllimport) int __stdcall wglGetLayerPaletteEntries(HDC, int, int, int, + COLORREF *); +__declspec(dllimport) BOOL __stdcall wglRealizeLayerPalette(HDC, int, BOOL); +__declspec(dllimport) BOOL __stdcall wglSwapLayerBuffers(HDC, UINT); + + + +typedef struct _WGLSWAP +{ + HDC hdc; + UINT uiFlags; +} WGLSWAP, *PWGLSWAP, *LPWGLSWAP; + + + +__declspec(dllimport) DWORD __stdcall wglSwapMultipleBuffers(UINT, const WGLSWAP *); +# 6411 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 +#pragma warning(pop) +# 178 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 1 3 +# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +#pragma warning(push) + + + +#pragma warning(disable: 4820) +# 69 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef HANDLE HDWP; +typedef void MENUTEMPLATEA; +typedef void MENUTEMPLATEW; + + + +typedef MENUTEMPLATEA MENUTEMPLATE; + +typedef PVOID LPMENUTEMPLATEA; +typedef PVOID LPMENUTEMPLATEW; + + + +typedef LPMENUTEMPLATEA LPMENUTEMPLATE; +# 91 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef LRESULT (__stdcall* WNDPROC)(HWND, UINT, WPARAM, LPARAM); +# 101 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef INT_PTR (__stdcall* DLGPROC)(HWND, UINT, WPARAM, LPARAM); + + + + + + + +typedef void (__stdcall* TIMERPROC)(HWND, UINT, UINT_PTR, DWORD); + + + + + + + +typedef BOOL (__stdcall* GRAYSTRINGPROC)(HDC, LPARAM, int); +typedef BOOL (__stdcall* WNDENUMPROC)(HWND, LPARAM); +typedef LRESULT (__stdcall* HOOKPROC)(int code, WPARAM wParam, LPARAM lParam); +typedef void (__stdcall* SENDASYNCPROC)(HWND, UINT, ULONG_PTR, LRESULT); + +typedef BOOL (__stdcall* PROPENUMPROCA)(HWND, LPCSTR, HANDLE); +typedef BOOL (__stdcall* PROPENUMPROCW)(HWND, LPCWSTR, HANDLE); + +typedef BOOL (__stdcall* PROPENUMPROCEXA)(HWND, LPSTR, HANDLE, ULONG_PTR); +typedef BOOL (__stdcall* PROPENUMPROCEXW)(HWND, LPWSTR, HANDLE, ULONG_PTR); + +typedef int (__stdcall* EDITWORDBREAKPROCA)(LPSTR lpch, int ichCurrent, int cch, int code); +typedef int (__stdcall* EDITWORDBREAKPROCW)(LPWSTR lpch, int ichCurrent, int cch, int code); + + +typedef BOOL (__stdcall* DRAWSTATEPROC)(HDC hdc, LPARAM lData, WPARAM wData, int cx, int cy); +# 192 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef PROPENUMPROCA PROPENUMPROC; +typedef PROPENUMPROCEXA PROPENUMPROCEX; +typedef EDITWORDBREAKPROCA EDITWORDBREAKPROC; + + + + +typedef BOOL (__stdcall* NAMEENUMPROCA)(LPSTR, LPARAM); +typedef BOOL (__stdcall* NAMEENUMPROCW)(LPWSTR, LPARAM); + +typedef NAMEENUMPROCA WINSTAENUMPROCA; +typedef NAMEENUMPROCA DESKTOPENUMPROCA; +typedef NAMEENUMPROCW WINSTAENUMPROCW; +typedef NAMEENUMPROCW DESKTOPENUMPROCW; +# 226 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef WINSTAENUMPROCA WINSTAENUMPROC; +typedef DESKTOPENUMPROCA DESKTOPENUMPROC; +# 299 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +#pragma warning(push) +#pragma warning(disable: 4995) + + +__declspec(dllimport) +int +__stdcall +wvsprintfA( + LPSTR, + LPCSTR, + va_list arglist); +__declspec(dllimport) +int +__stdcall +wvsprintfW( + LPWSTR, + LPCWSTR, + va_list arglist); + + + + + + +__declspec(dllimport) +int +__cdecl +wsprintfA( + LPSTR, + LPCSTR, + ...); +__declspec(dllimport) +int +__cdecl +wsprintfW( + LPWSTR, + LPCWSTR, + ...); + + + + + + + +#pragma warning(pop) +# 853 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagCBT_CREATEWNDA +{ + struct tagCREATESTRUCTA *lpcs; + HWND hwndInsertAfter; +} CBT_CREATEWNDA, *LPCBT_CREATEWNDA; + + + +typedef struct tagCBT_CREATEWNDW +{ + struct tagCREATESTRUCTW *lpcs; + HWND hwndInsertAfter; +} CBT_CREATEWNDW, *LPCBT_CREATEWNDW; + + + + +typedef CBT_CREATEWNDA CBT_CREATEWND; +typedef LPCBT_CREATEWNDA LPCBT_CREATEWND; + + + + + +typedef struct tagCBTACTIVATESTRUCT +{ + BOOL fMouse; + HWND hWndActive; +} CBTACTIVATESTRUCT, *LPCBTACTIVATESTRUCT; +# 894 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagWTSSESSION_NOTIFICATION +{ + DWORD cbSize; + DWORD dwSessionId; + +} WTSSESSION_NOTIFICATION, *PWTSSESSION_NOTIFICATION; +# 1048 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct +{ + HWND hwnd; + RECT rc; +} SHELLHOOKINFO, *LPSHELLHOOKINFO; + + + + +typedef struct tagEVENTMSG { + UINT message; + UINT paramL; + UINT paramH; + DWORD time; + HWND hwnd; +} EVENTMSG, *PEVENTMSGMSG, *NPEVENTMSGMSG, *LPEVENTMSGMSG; + +typedef struct tagEVENTMSG *PEVENTMSG, *NPEVENTMSG, *LPEVENTMSG; + + + + +typedef struct tagCWPSTRUCT { + LPARAM lParam; + WPARAM wParam; + UINT message; + HWND hwnd; +} CWPSTRUCT, *PCWPSTRUCT, *NPCWPSTRUCT, *LPCWPSTRUCT; + + + + + +typedef struct tagCWPRETSTRUCT { + LRESULT lResult; + LPARAM lParam; + WPARAM wParam; + UINT message; + HWND hwnd; +} CWPRETSTRUCT, *PCWPRETSTRUCT, *NPCWPRETSTRUCT, *LPCWPRETSTRUCT; +# 1115 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagKBDLLHOOKSTRUCT { + DWORD vkCode; + DWORD scanCode; + DWORD flags; + DWORD time; + ULONG_PTR dwExtraInfo; +} KBDLLHOOKSTRUCT, *LPKBDLLHOOKSTRUCT, *PKBDLLHOOKSTRUCT; + + + + +typedef struct tagMSLLHOOKSTRUCT { + POINT pt; + DWORD mouseData; + DWORD flags; + DWORD time; + ULONG_PTR dwExtraInfo; +} MSLLHOOKSTRUCT, *LPMSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT; +# 1145 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagDEBUGHOOKINFO +{ + DWORD idThread; + DWORD idThreadInstaller; + LPARAM lParam; + WPARAM wParam; + int code; +} DEBUGHOOKINFO, *PDEBUGHOOKINFO, *NPDEBUGHOOKINFO, * LPDEBUGHOOKINFO; + + + + +typedef struct tagMOUSEHOOKSTRUCT { + POINT pt; + HWND hwnd; + UINT wHitTestCode; + ULONG_PTR dwExtraInfo; +} MOUSEHOOKSTRUCT, *LPMOUSEHOOKSTRUCT, *PMOUSEHOOKSTRUCT; +# 1171 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagMOUSEHOOKSTRUCTEX +{ + MOUSEHOOKSTRUCT ; + DWORD mouseData; +} MOUSEHOOKSTRUCTEX, *LPMOUSEHOOKSTRUCTEX, *PMOUSEHOOKSTRUCTEX; + + + + + + + +typedef struct tagHARDWAREHOOKSTRUCT { + HWND hwnd; + UINT message; + WPARAM wParam; + LPARAM lParam; +} HARDWAREHOOKSTRUCT, *LPHARDWAREHOOKSTRUCT, *PHARDWAREHOOKSTRUCT; +# 1234 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HKL +__stdcall +LoadKeyboardLayoutA( + LPCSTR pwszKLID, + UINT Flags); +__declspec(dllimport) +HKL +__stdcall +LoadKeyboardLayoutW( + LPCWSTR pwszKLID, + UINT Flags); +# 1254 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HKL +__stdcall +ActivateKeyboardLayout( + HKL hkl, + UINT Flags); +# 1270 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +int +__stdcall +ToUnicodeEx( + UINT wVirtKey, + UINT wScanCode, + const BYTE *lpKeyState, + LPWSTR pwszBuff, + int cchBuff, + UINT wFlags, + HKL dwhkl); + + +__declspec(dllimport) +BOOL +__stdcall +UnloadKeyboardLayout( + HKL hkl); + +__declspec(dllimport) +BOOL +__stdcall +GetKeyboardLayoutNameA( + LPSTR pwszKLID); +__declspec(dllimport) +BOOL +__stdcall +GetKeyboardLayoutNameW( + LPWSTR pwszKLID); + + + + + + + +__declspec(dllimport) +int +__stdcall +GetKeyboardLayoutList( + int nBuff, + HKL *lpList); + +__declspec(dllimport) +HKL +__stdcall +GetKeyboardLayout( + DWORD idThread); +# 1330 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagMOUSEMOVEPOINT { + int x; + int y; + DWORD time; + ULONG_PTR dwExtraInfo; +} MOUSEMOVEPOINT, *PMOUSEMOVEPOINT, * LPMOUSEMOVEPOINT; +# 1349 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +int +__stdcall +GetMouseMovePointsEx( + UINT cbSize, + LPMOUSEMOVEPOINT lppt, + LPMOUSEMOVEPOINT lpptBuf, + int nBufPoints, + DWORD resolution); +# 1389 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HDESK +__stdcall +CreateDesktopA( + LPCSTR lpszDesktop, + LPCSTR lpszDevice, + DEVMODEA* pDevmode, + DWORD dwFlags, + ACCESS_MASK dwDesiredAccess, + LPSECURITY_ATTRIBUTES lpsa); +__declspec(dllimport) +HDESK +__stdcall +CreateDesktopW( + LPCWSTR lpszDesktop, + LPCWSTR lpszDevice, + DEVMODEW* pDevmode, + DWORD dwFlags, + ACCESS_MASK dwDesiredAccess, + LPSECURITY_ATTRIBUTES lpsa); + + + + + + +__declspec(dllimport) +HDESK +__stdcall +CreateDesktopExA( + LPCSTR lpszDesktop, + LPCSTR lpszDevice, + DEVMODEA* pDevmode, + DWORD dwFlags, + ACCESS_MASK dwDesiredAccess, + LPSECURITY_ATTRIBUTES lpsa, + ULONG ulHeapSize, + PVOID pvoid); +__declspec(dllimport) +HDESK +__stdcall +CreateDesktopExW( + LPCWSTR lpszDesktop, + LPCWSTR lpszDevice, + DEVMODEW* pDevmode, + DWORD dwFlags, + ACCESS_MASK dwDesiredAccess, + LPSECURITY_ATTRIBUTES lpsa, + ULONG ulHeapSize, + PVOID pvoid); +# 1454 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HDESK +__stdcall +OpenDesktopA( + LPCSTR lpszDesktop, + DWORD dwFlags, + BOOL fInherit, + ACCESS_MASK dwDesiredAccess); +__declspec(dllimport) +HDESK +__stdcall +OpenDesktopW( + LPCWSTR lpszDesktop, + DWORD dwFlags, + BOOL fInherit, + ACCESS_MASK dwDesiredAccess); + + + + + + +__declspec(dllimport) +HDESK +__stdcall +OpenInputDesktop( + DWORD dwFlags, + BOOL fInherit, + ACCESS_MASK dwDesiredAccess); + + +__declspec(dllimport) +BOOL +__stdcall +EnumDesktopsA( + HWINSTA hwinsta, + DESKTOPENUMPROCA lpEnumFunc, + LPARAM lParam); +__declspec(dllimport) +BOOL +__stdcall +EnumDesktopsW( + HWINSTA hwinsta, + DESKTOPENUMPROCW lpEnumFunc, + LPARAM lParam); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +EnumDesktopWindows( + HDESK hDesktop, + WNDENUMPROC lpfn, + LPARAM lParam); + + +__declspec(dllimport) +BOOL +__stdcall +SwitchDesktop( + HDESK hDesktop); + + +__declspec(dllimport) +BOOL +__stdcall +SetThreadDesktop( + HDESK hDesktop); + +__declspec(dllimport) +BOOL +__stdcall +CloseDesktop( + HDESK hDesktop); + +__declspec(dllimport) +HDESK +__stdcall +GetThreadDesktop( + DWORD dwThreadId); +# 1575 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HWINSTA +__stdcall +CreateWindowStationA( + LPCSTR lpwinsta, + DWORD dwFlags, + ACCESS_MASK dwDesiredAccess, + LPSECURITY_ATTRIBUTES lpsa); +__declspec(dllimport) +HWINSTA +__stdcall +CreateWindowStationW( + LPCWSTR lpwinsta, + DWORD dwFlags, + ACCESS_MASK dwDesiredAccess, + LPSECURITY_ATTRIBUTES lpsa); + + + + + + +__declspec(dllimport) +HWINSTA +__stdcall +OpenWindowStationA( + LPCSTR lpszWinSta, + BOOL fInherit, + ACCESS_MASK dwDesiredAccess); +__declspec(dllimport) +HWINSTA +__stdcall +OpenWindowStationW( + LPCWSTR lpszWinSta, + BOOL fInherit, + ACCESS_MASK dwDesiredAccess); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +EnumWindowStationsA( + WINSTAENUMPROCA lpEnumFunc, + LPARAM lParam); +__declspec(dllimport) +BOOL +__stdcall +EnumWindowStationsW( + WINSTAENUMPROCW lpEnumFunc, + LPARAM lParam); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CloseWindowStation( + HWINSTA hWinSta); + +__declspec(dllimport) +BOOL +__stdcall +SetProcessWindowStation( + HWINSTA hWinSta); + +__declspec(dllimport) +HWINSTA +__stdcall +GetProcessWindowStation( + void); +# 1663 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetUserObjectSecurity( + HANDLE hObj, + PSECURITY_INFORMATION pSIRequested, + PSECURITY_DESCRIPTOR pSID); + +__declspec(dllimport) +BOOL +__stdcall +GetUserObjectSecurity( + HANDLE hObj, + PSECURITY_INFORMATION pSIRequested, + PSECURITY_DESCRIPTOR pSID, + DWORD nLength, + LPDWORD lpnLengthNeeded); +# 1697 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagUSEROBJECTFLAGS { + BOOL fInherit; + BOOL fReserved; + DWORD dwFlags; +} USEROBJECTFLAGS, *PUSEROBJECTFLAGS; + +__declspec(dllimport) +BOOL +__stdcall +GetUserObjectInformationA( + HANDLE hObj, + int nIndex, + PVOID pvInfo, + DWORD nLength, + LPDWORD lpnLengthNeeded); +__declspec(dllimport) +BOOL +__stdcall +GetUserObjectInformationW( + HANDLE hObj, + int nIndex, + PVOID pvInfo, + DWORD nLength, + LPDWORD lpnLengthNeeded); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetUserObjectInformationA( + HANDLE hObj, + int nIndex, + PVOID pvInfo, + DWORD nLength); +__declspec(dllimport) +BOOL +__stdcall +SetUserObjectInformationW( + HANDLE hObj, + int nIndex, + PVOID pvInfo, + DWORD nLength); +# 1758 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagWNDCLASSEXA { + UINT cbSize; + + UINT style; + WNDPROC lpfnWndProc; + int cbClsExtra; + int cbWndExtra; + HINSTANCE hInstance; + HICON hIcon; + HCURSOR hCursor; + HBRUSH hbrBackground; + LPCSTR lpszMenuName; + LPCSTR lpszClassName; + + HICON hIconSm; +} WNDCLASSEXA, *PWNDCLASSEXA, *NPWNDCLASSEXA, *LPWNDCLASSEXA; +typedef struct tagWNDCLASSEXW { + UINT cbSize; + + UINT style; + WNDPROC lpfnWndProc; + int cbClsExtra; + int cbWndExtra; + HINSTANCE hInstance; + HICON hIcon; + HCURSOR hCursor; + HBRUSH hbrBackground; + LPCWSTR lpszMenuName; + LPCWSTR lpszClassName; + + HICON hIconSm; +} WNDCLASSEXW, *PWNDCLASSEXW, *NPWNDCLASSEXW, *LPWNDCLASSEXW; + + + + + + +typedef WNDCLASSEXA WNDCLASSEX; +typedef PWNDCLASSEXA PWNDCLASSEX; +typedef NPWNDCLASSEXA NPWNDCLASSEX; +typedef LPWNDCLASSEXA LPWNDCLASSEX; + + + +typedef struct tagWNDCLASSA { + UINT style; + WNDPROC lpfnWndProc; + int cbClsExtra; + int cbWndExtra; + HINSTANCE hInstance; + HICON hIcon; + HCURSOR hCursor; + HBRUSH hbrBackground; + LPCSTR lpszMenuName; + LPCSTR lpszClassName; +} WNDCLASSA, *PWNDCLASSA, *NPWNDCLASSA, *LPWNDCLASSA; +typedef struct tagWNDCLASSW { + UINT style; + WNDPROC lpfnWndProc; + int cbClsExtra; + int cbWndExtra; + HINSTANCE hInstance; + HICON hIcon; + HCURSOR hCursor; + HBRUSH hbrBackground; + LPCWSTR lpszMenuName; + LPCWSTR lpszClassName; +} WNDCLASSW, *PWNDCLASSW, *NPWNDCLASSW, *LPWNDCLASSW; + + + + + + +typedef WNDCLASSA WNDCLASS; +typedef PWNDCLASSA PWNDCLASS; +typedef NPWNDCLASSA NPWNDCLASS; +typedef LPWNDCLASSA LPWNDCLASS; +# 1845 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsHungAppWindow( + HWND hwnd); + + + +__declspec(dllimport) +void +__stdcall +DisableProcessWindowsGhosting( + void); +# 1872 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagMSG { + HWND hwnd; + UINT message; + WPARAM wParam; + LPARAM lParam; + DWORD time; + POINT pt; + + + +} MSG, *PMSG, *NPMSG, *LPMSG; +# 2037 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagMINMAXINFO { + POINT ptReserved; + POINT ptMaxSize; + POINT ptMaxPosition; + POINT ptMinTrackSize; + POINT ptMaxTrackSize; +} MINMAXINFO, *PMINMAXINFO, *LPMINMAXINFO; +# 2093 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagCOPYDATASTRUCT { + ULONG_PTR dwData; + DWORD cbData; + PVOID lpData; +} COPYDATASTRUCT, *PCOPYDATASTRUCT; + + +typedef struct tagMDINEXTMENU +{ + HMENU hmenuIn; + HMENU hmenuNext; + HWND hwndNext; +} MDINEXTMENU, * PMDINEXTMENU, * LPMDINEXTMENU; +# 2355 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct { + GUID PowerSetting; + DWORD DataLength; + UCHAR Data[1]; +} POWERBROADCAST_SETTING, *PPOWERBROADCAST_SETTING; +# 2639 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +UINT +__stdcall +RegisterWindowMessageA( + LPCSTR lpString); +__declspec(dllimport) +UINT +__stdcall +RegisterWindowMessageW( + LPCWSTR lpString); +# 2684 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagWINDOWPOS { + HWND hwnd; + HWND hwndInsertAfter; + int x; + int y; + int cx; + int cy; + UINT flags; +} WINDOWPOS, *LPWINDOWPOS, *PWINDOWPOS; + + + + +typedef struct tagNCCALCSIZE_PARAMS { + RECT rgrc[3]; + PWINDOWPOS lppos; +} NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS; +# 2757 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagTRACKMOUSEEVENT { + DWORD cbSize; + DWORD dwFlags; + HWND hwndTrack; + DWORD dwHoverTime; +} TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT; + +__declspec(dllimport) +BOOL +__stdcall +TrackMouseEvent( + LPTRACKMOUSEEVENT lpEventTrack); +# 2975 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DrawEdge( + HDC hdc, + LPRECT qrc, + UINT edge, + UINT grfFlags); +# 3038 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DrawFrameControl( + HDC, + LPRECT, + UINT, + UINT); +# 3068 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DrawCaption( + HWND hwnd, + HDC hdc, + const RECT * lprect, + UINT flags); +# 3087 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DrawAnimatedRects( + HWND hwnd, + int idAni, + const RECT *lprcFrom, + const RECT *lprcTo); +# 3170 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagACCEL { + + BYTE fVirt; + WORD key; + WORD cmd; + + + + + +} ACCEL, *LPACCEL; + +typedef struct tagPAINTSTRUCT { + HDC hdc; + BOOL fErase; + RECT rcPaint; + BOOL fRestore; + BOOL fIncUpdate; + BYTE rgbReserved[32]; +} PAINTSTRUCT, *PPAINTSTRUCT, *NPPAINTSTRUCT, *LPPAINTSTRUCT; + + + + + + + +typedef struct tagCREATESTRUCTA { + LPVOID lpCreateParams; + HINSTANCE hInstance; + HMENU hMenu; + HWND hwndParent; + int cy; + int cx; + int y; + int x; + LONG style; + LPCSTR lpszName; + LPCSTR lpszClass; + DWORD dwExStyle; +} CREATESTRUCTA, *LPCREATESTRUCTA; +typedef struct tagCREATESTRUCTW { + LPVOID lpCreateParams; + HINSTANCE hInstance; + HMENU hMenu; + HWND hwndParent; + int cy; + int cx; + int y; + int x; + LONG style; + LPCWSTR lpszName; + LPCWSTR lpszClass; + DWORD dwExStyle; +} CREATESTRUCTW, *LPCREATESTRUCTW; + + + + +typedef CREATESTRUCTA CREATESTRUCT; +typedef LPCREATESTRUCTA LPCREATESTRUCT; +# 3239 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagWINDOWPLACEMENT { + UINT length; + UINT flags; + UINT showCmd; + POINT ptMinPosition; + POINT ptMaxPosition; + RECT rcNormalPosition; + + + +} WINDOWPLACEMENT; +typedef WINDOWPLACEMENT *PWINDOWPLACEMENT, *LPWINDOWPLACEMENT; +# 3266 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagNMHDR +{ + HWND hwndFrom; + UINT_PTR idFrom; + UINT code; +} NMHDR; + + + + + + + +typedef NMHDR * LPNMHDR; + +typedef struct tagSTYLESTRUCT +{ + DWORD styleOld; + DWORD styleNew; +} STYLESTRUCT, * LPSTYLESTRUCT; +# 3337 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagMEASUREITEMSTRUCT { + UINT CtlType; + UINT CtlID; + UINT itemID; + UINT itemWidth; + UINT itemHeight; + ULONG_PTR itemData; +} MEASUREITEMSTRUCT, *PMEASUREITEMSTRUCT, *LPMEASUREITEMSTRUCT; + + + + +typedef struct tagDRAWITEMSTRUCT { + UINT CtlType; + UINT CtlID; + UINT itemID; + UINT itemAction; + UINT itemState; + HWND hwndItem; + HDC hDC; + RECT rcItem; + ULONG_PTR itemData; +} DRAWITEMSTRUCT, *PDRAWITEMSTRUCT, *LPDRAWITEMSTRUCT; + + + + +typedef struct tagDELETEITEMSTRUCT { + UINT CtlType; + UINT CtlID; + UINT itemID; + HWND hwndItem; + ULONG_PTR itemData; +} DELETEITEMSTRUCT, *PDELETEITEMSTRUCT, *LPDELETEITEMSTRUCT; + + + + +typedef struct tagCOMPAREITEMSTRUCT { + UINT CtlType; + UINT CtlID; + HWND hwndItem; + UINT itemID1; + ULONG_PTR itemData1; + UINT itemID2; + ULONG_PTR itemData2; + DWORD dwLocaleId; +} COMPAREITEMSTRUCT, *PCOMPAREITEMSTRUCT, *LPCOMPAREITEMSTRUCT; +# 3398 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetMessageA( + LPMSG lpMsg, + HWND hWnd, + UINT wMsgFilterMin, + UINT wMsgFilterMax); +__declspec(dllimport) +BOOL +__stdcall +GetMessageW( + LPMSG lpMsg, + HWND hWnd, + UINT wMsgFilterMin, + UINT wMsgFilterMax); +# 3445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +TranslateMessage( + const MSG *lpMsg); + +__declspec(dllimport) +LRESULT +__stdcall +DispatchMessageA( + const MSG *lpMsg); +__declspec(dllimport) +LRESULT +__stdcall +DispatchMessageW( + const MSG *lpMsg); +# 3491 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetMessageQueue( + int cMessagesMax); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +PeekMessageA( + LPMSG lpMsg, + HWND hWnd, + UINT wMsgFilterMin, + UINT wMsgFilterMax, + UINT wRemoveMsg); +__declspec(dllimport) +BOOL +__stdcall +PeekMessageW( + LPMSG lpMsg, + HWND hWnd, + UINT wMsgFilterMin, + UINT wMsgFilterMax, + UINT wRemoveMsg); +# 3551 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +RegisterHotKey( + HWND hWnd, + int id, + UINT fsModifiers, + UINT vk); + +__declspec(dllimport) +BOOL +__stdcall +UnregisterHotKey( + HWND hWnd, + int id); +# 3631 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +ExitWindowsEx( + UINT uFlags, + DWORD dwReason); + +__declspec(dllimport) +BOOL +__stdcall +SwapMouseButton( + BOOL fSwap); + +__declspec(dllimport) +DWORD +__stdcall +GetMessagePos( + void); + +__declspec(dllimport) +LONG +__stdcall +GetMessageTime( + void); + +__declspec(dllimport) +LPARAM +__stdcall +GetMessageExtraInfo( + void); + + +__declspec(dllimport) +DWORD +__stdcall +GetUnpredictedMessagePos( + void); + + + +__declspec(dllimport) +BOOL +__stdcall +IsWow64Message( + void); + + + +__declspec(dllimport) +LPARAM +__stdcall +SetMessageExtraInfo( + LPARAM lParam); +# 3692 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +LRESULT +__stdcall +SendMessageA( + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam); +__declspec(dllimport) +LRESULT +__stdcall +SendMessageW( + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam); +# 3744 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +LRESULT +__stdcall +SendMessageTimeoutA( + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam, + UINT fuFlags, + UINT uTimeout, + PDWORD_PTR lpdwResult); +__declspec(dllimport) +LRESULT +__stdcall +SendMessageTimeoutW( + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam, + UINT fuFlags, + UINT uTimeout, + PDWORD_PTR lpdwResult); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SendNotifyMessageA( + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam); +__declspec(dllimport) +BOOL +__stdcall +SendNotifyMessageW( + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SendMessageCallbackA( + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam, + SENDASYNCPROC lpResultCallBack, + ULONG_PTR dwData); +__declspec(dllimport) +BOOL +__stdcall +SendMessageCallbackW( + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam, + SENDASYNCPROC lpResultCallBack, + ULONG_PTR dwData); + + + + + + + +typedef struct { + UINT cbSize; + HDESK hdesk; + HWND hwnd; + LUID luid; +} BSMINFO, *PBSMINFO; + +__declspec(dllimport) +long +__stdcall +BroadcastSystemMessageExA( + DWORD flags, + LPDWORD lpInfo, + UINT Msg, + WPARAM wParam, + LPARAM lParam, + PBSMINFO pbsmInfo); +__declspec(dllimport) +long +__stdcall +BroadcastSystemMessageExW( + DWORD flags, + LPDWORD lpInfo, + UINT Msg, + WPARAM wParam, + LPARAM lParam, + PBSMINFO pbsmInfo); +# 3864 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +long +__stdcall +BroadcastSystemMessageA( + DWORD flags, + LPDWORD lpInfo, + UINT Msg, + WPARAM wParam, + LPARAM lParam); +__declspec(dllimport) +long +__stdcall +BroadcastSystemMessageW( + DWORD flags, + LPDWORD lpInfo, + UINT Msg, + WPARAM wParam, + LPARAM lParam); +# 3938 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef PVOID HDEVNOTIFY; +typedef HDEVNOTIFY *PHDEVNOTIFY; + + + + + + + +__declspec(dllimport) +HDEVNOTIFY +__stdcall +RegisterDeviceNotificationA( + HANDLE hRecipient, + LPVOID NotificationFilter, + DWORD Flags); +__declspec(dllimport) +HDEVNOTIFY +__stdcall +RegisterDeviceNotificationW( + HANDLE hRecipient, + LPVOID NotificationFilter, + DWORD Flags); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +UnregisterDeviceNotification( + HDEVNOTIFY Handle + ); + + + + + + + +typedef PVOID HPOWERNOTIFY; +typedef HPOWERNOTIFY *PHPOWERNOTIFY; + + + +__declspec(dllimport) +HPOWERNOTIFY +__stdcall +RegisterPowerSettingNotification( + HANDLE hRecipient, + LPCGUID PowerSettingGuid, + DWORD Flags + ); + +__declspec(dllimport) +BOOL +__stdcall +UnregisterPowerSettingNotification( + HPOWERNOTIFY Handle + ); + +__declspec(dllimport) +HPOWERNOTIFY +__stdcall +RegisterSuspendResumeNotification ( + HANDLE hRecipient, + DWORD Flags + ); + +__declspec(dllimport) +BOOL +__stdcall +UnregisterSuspendResumeNotification ( + HPOWERNOTIFY Handle + ); +# 4026 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +PostMessageA( + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam); +__declspec(dllimport) +BOOL +__stdcall +PostMessageW( + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +PostThreadMessageA( + DWORD idThread, + UINT Msg, + WPARAM wParam, + LPARAM lParam); +__declspec(dllimport) +BOOL +__stdcall +PostThreadMessageW( + DWORD idThread, + UINT Msg, + WPARAM wParam, + LPARAM lParam); +# 4095 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +AttachThreadInput( + DWORD idAttach, + DWORD idAttachTo, + BOOL fAttach); + + +__declspec(dllimport) +BOOL +__stdcall +ReplyMessage( + LRESULT lResult); + +__declspec(dllimport) +BOOL +__stdcall +WaitMessage( + void); + + + + + +__declspec(dllimport) +DWORD +__stdcall +WaitForInputIdle( + HANDLE hProcess, + DWORD dwMilliseconds); + + + + + + + +__declspec(dllimport) + +LRESULT +__stdcall + + + + +DefWindowProcA( + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam); +__declspec(dllimport) + +LRESULT +__stdcall + + + + +DefWindowProcW( + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam); + + + + + + +__declspec(dllimport) +void +__stdcall +PostQuitMessage( + int nExitCode); + + + +__declspec(dllimport) +LRESULT +__stdcall +CallWindowProcA( + WNDPROC lpPrevWndFunc, + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam); +__declspec(dllimport) +LRESULT +__stdcall +CallWindowProcW( + WNDPROC lpPrevWndFunc, + HWND hWnd, + UINT Msg, + WPARAM wParam, + LPARAM lParam); +# 4231 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +InSendMessage( + void); +# 4245 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +DWORD +__stdcall +InSendMessageEx( + LPVOID lpReserved); +# 4268 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +UINT +__stdcall +GetDoubleClickTime( + void); + +__declspec(dllimport) +BOOL +__stdcall +SetDoubleClickTime( + UINT); + + + + + + + +__declspec(dllimport) +ATOM +__stdcall +RegisterClassA( + const WNDCLASSA *lpWndClass); +__declspec(dllimport) +ATOM +__stdcall +RegisterClassW( + const WNDCLASSW *lpWndClass); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +UnregisterClassA( + LPCSTR lpClassName, + HINSTANCE hInstance); +__declspec(dllimport) +BOOL +__stdcall +UnregisterClassW( + LPCWSTR lpClassName, + HINSTANCE hInstance); +# 4327 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetClassInfoA( + HINSTANCE hInstance, + LPCSTR lpClassName, + LPWNDCLASSA lpWndClass); + +__declspec(dllimport) +BOOL +__stdcall +GetClassInfoW( + HINSTANCE hInstance, + LPCWSTR lpClassName, + LPWNDCLASSW lpWndClass); +# 4355 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +ATOM +__stdcall +RegisterClassExA( + const WNDCLASSEXA *); +__declspec(dllimport) +ATOM +__stdcall +RegisterClassExW( + const WNDCLASSEXW *); +# 4378 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetClassInfoExA( + HINSTANCE hInstance, + LPCSTR lpszClass, + LPWNDCLASSEXA lpwcx); + +__declspec(dllimport) +BOOL +__stdcall +GetClassInfoExW( + HINSTANCE hInstance, + LPCWSTR lpszClass, + LPWNDCLASSEXW lpwcx); +# 4415 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef BOOLEAN (__stdcall * PREGISTERCLASSNAMEW)(LPCWSTR); + + +__declspec(dllimport) +HWND +__stdcall +CreateWindowExA( + DWORD dwExStyle, + LPCSTR lpClassName, + LPCSTR lpWindowName, + DWORD dwStyle, + int X, + int Y, + int nWidth, + int nHeight, + HWND hWndParent, + HMENU hMenu, + HINSTANCE hInstance, + LPVOID lpParam); +__declspec(dllimport) +HWND +__stdcall +CreateWindowExW( + DWORD dwExStyle, + LPCWSTR lpClassName, + LPCWSTR lpWindowName, + DWORD dwStyle, + int X, + int Y, + int nWidth, + int nHeight, + HWND hWndParent, + HMENU hMenu, + HINSTANCE hInstance, + LPVOID lpParam); +# 4477 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsWindow( + HWND hWnd); + + +__declspec(dllimport) +BOOL +__stdcall +IsMenu( + HMENU hMenu); + +__declspec(dllimport) +BOOL +__stdcall +IsChild( + HWND hWndParent, + HWND hWnd); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +DestroyWindow( + HWND hWnd); + +__declspec(dllimport) +BOOL +__stdcall +ShowWindow( + HWND hWnd, + int nCmdShow); +# 4523 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +AnimateWindow( + HWND hWnd, + DWORD dwTime, + DWORD dwFlags); +# 4541 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +UpdateLayeredWindow( + HWND hWnd, + HDC hdcDst, + POINT* pptDst, + SIZE* psize, + HDC hdcSrc, + POINT* pptSrc, + COLORREF crKey, + BLENDFUNCTION* pblend, + DWORD dwFlags); + + + + +typedef struct tagUPDATELAYEREDWINDOWINFO +{ + DWORD cbSize; + HDC hdcDst; + const POINT* pptDst; + const SIZE* psize; + HDC hdcSrc; + const POINT* pptSrc; + COLORREF crKey; + const BLENDFUNCTION* pblend; + DWORD dwFlags; + const RECT* prcDirty; +} UPDATELAYEREDWINDOWINFO, *PUPDATELAYEREDWINDOWINFO; + + + + + +__declspec(dllimport) +BOOL +__stdcall +UpdateLayeredWindowIndirect( + HWND hWnd, + const UPDATELAYEREDWINDOWINFO* pULWInfo); +# 4593 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetLayeredWindowAttributes( + HWND hwnd, + COLORREF* pcrKey, + BYTE* pbAlpha, + DWORD* pdwFlags); +# 4609 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +PrintWindow( + HWND hwnd, + HDC hdcBlt, + UINT nFlags); +# 4625 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetLayeredWindowAttributes( + HWND hwnd, + COLORREF crKey, + BYTE bAlpha, + DWORD dwFlags); +# 4655 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +ShowWindowAsync( + HWND hWnd, + int nCmdShow); + + +__declspec(dllimport) +BOOL +__stdcall +FlashWindow( + HWND hWnd, + BOOL bInvert); + + +typedef struct { + UINT cbSize; + HWND hwnd; + DWORD dwFlags; + UINT uCount; + DWORD dwTimeout; +} FLASHWINFO, *PFLASHWINFO; + +__declspec(dllimport) +BOOL +__stdcall +FlashWindowEx( + PFLASHWINFO pfwi); +# 4694 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +ShowOwnedPopups( + HWND hWnd, + BOOL fShow); + +__declspec(dllimport) +BOOL +__stdcall +OpenIcon( + HWND hWnd); + +__declspec(dllimport) +BOOL +__stdcall +CloseWindow( + HWND hWnd); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +MoveWindow( + HWND hWnd, + int X, + int Y, + int nWidth, + int nHeight, + BOOL bRepaint); + +__declspec(dllimport) +BOOL +__stdcall +SetWindowPos( + HWND hWnd, + HWND hWndInsertAfter, + int X, + int Y, + int cx, + int cy, + UINT uFlags); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetWindowPlacement( + HWND hWnd, + WINDOWPLACEMENT *lpwndpl); + +__declspec(dllimport) +BOOL +__stdcall +SetWindowPlacement( + HWND hWnd, + const WINDOWPLACEMENT *lpwndpl); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetWindowDisplayAffinity( + HWND hWnd, + DWORD* pdwAffinity); + +__declspec(dllimport) +BOOL +__stdcall +SetWindowDisplayAffinity( + HWND hWnd, + DWORD dwAffinity); +# 4792 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HDWP +__stdcall +BeginDeferWindowPos( + int nNumWindows); + +__declspec(dllimport) +HDWP +__stdcall +DeferWindowPos( + HDWP hWinPosInfo, + HWND hWnd, + HWND hWndInsertAfter, + int x, + int y, + int cx, + int cy, + UINT uFlags); + + +__declspec(dllimport) +BOOL +__stdcall +EndDeferWindowPos( + HDWP hWinPosInfo); +# 4826 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsWindowVisible( + HWND hWnd); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +IsIconic( + HWND hWnd); + +__declspec(dllimport) +BOOL +__stdcall +AnyPopup( + void); + +__declspec(dllimport) +BOOL +__stdcall +BringWindowToTop( + HWND hWnd); + +__declspec(dllimport) +BOOL +__stdcall +IsZoomed( + HWND hWnd); +# 4901 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,2) +# 4902 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 2 3 + + + + + + + +typedef struct { + DWORD style; + DWORD dwExtendedStyle; + WORD cdit; + short x; + short y; + short cx; + short cy; +} DLGTEMPLATE; + + + + + + + +typedef DLGTEMPLATE *LPDLGTEMPLATEA; +typedef DLGTEMPLATE *LPDLGTEMPLATEW; + + + +typedef LPDLGTEMPLATEA LPDLGTEMPLATE; +# 4939 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef const DLGTEMPLATE *LPCDLGTEMPLATEA; +typedef const DLGTEMPLATE *LPCDLGTEMPLATEW; + + + +typedef LPCDLGTEMPLATEA LPCDLGTEMPLATE; +# 4957 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct { + DWORD style; + DWORD dwExtendedStyle; + short x; + short y; + short cx; + short cy; + WORD id; +} DLGITEMTEMPLATE; +typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEA; +typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEW; + + + +typedef PDLGITEMTEMPLATEA PDLGITEMTEMPLATE; + +typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA; +typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW; + + + +typedef LPDLGITEMTEMPLATEA LPDLGITEMTEMPLATE; + + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 4986 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 2 3 + + + + +__declspec(dllimport) +HWND +__stdcall +CreateDialogParamA( + HINSTANCE hInstance, + LPCSTR lpTemplateName, + HWND hWndParent, + DLGPROC lpDialogFunc, + LPARAM dwInitParam); +__declspec(dllimport) +HWND +__stdcall +CreateDialogParamW( + HINSTANCE hInstance, + LPCWSTR lpTemplateName, + HWND hWndParent, + DLGPROC lpDialogFunc, + LPARAM dwInitParam); + + + + + + +__declspec(dllimport) +HWND +__stdcall +CreateDialogIndirectParamA( + HINSTANCE hInstance, + LPCDLGTEMPLATEA lpTemplate, + HWND hWndParent, + DLGPROC lpDialogFunc, + LPARAM dwInitParam); +__declspec(dllimport) +HWND +__stdcall +CreateDialogIndirectParamW( + HINSTANCE hInstance, + LPCDLGTEMPLATEW lpTemplate, + HWND hWndParent, + DLGPROC lpDialogFunc, + LPARAM dwInitParam); +# 5058 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +INT_PTR +__stdcall +DialogBoxParamA( + HINSTANCE hInstance, + LPCSTR lpTemplateName, + HWND hWndParent, + DLGPROC lpDialogFunc, + LPARAM dwInitParam); +__declspec(dllimport) +INT_PTR +__stdcall +DialogBoxParamW( + HINSTANCE hInstance, + LPCWSTR lpTemplateName, + HWND hWndParent, + DLGPROC lpDialogFunc, + LPARAM dwInitParam); + + + + + + +__declspec(dllimport) +INT_PTR +__stdcall +DialogBoxIndirectParamA( + HINSTANCE hInstance, + LPCDLGTEMPLATEA hDialogTemplate, + HWND hWndParent, + DLGPROC lpDialogFunc, + LPARAM dwInitParam); +__declspec(dllimport) +INT_PTR +__stdcall +DialogBoxIndirectParamW( + HINSTANCE hInstance, + LPCDLGTEMPLATEW hDialogTemplate, + HWND hWndParent, + DLGPROC lpDialogFunc, + LPARAM dwInitParam); +# 5126 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EndDialog( + HWND hDlg, + INT_PTR nResult); + +__declspec(dllimport) +HWND +__stdcall +GetDlgItem( + HWND hDlg, + int nIDDlgItem); + +__declspec(dllimport) +BOOL +__stdcall +SetDlgItemInt( + HWND hDlg, + int nIDDlgItem, + UINT uValue, + BOOL bSigned); + +__declspec(dllimport) +UINT +__stdcall +GetDlgItemInt( + HWND hDlg, + int nIDDlgItem, + BOOL *lpTranslated, + BOOL bSigned); + +__declspec(dllimport) +BOOL +__stdcall +SetDlgItemTextA( + HWND hDlg, + int nIDDlgItem, + LPCSTR lpString); +__declspec(dllimport) +BOOL +__stdcall +SetDlgItemTextW( + HWND hDlg, + int nIDDlgItem, + LPCWSTR lpString); + + + + + + + +__declspec(dllimport) +UINT +__stdcall +GetDlgItemTextA( + HWND hDlg, + int nIDDlgItem, + LPSTR lpString, + int cchMax); + +__declspec(dllimport) +UINT +__stdcall +GetDlgItemTextW( + HWND hDlg, + int nIDDlgItem, + LPWSTR lpString, + int cchMax); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CheckDlgButton( + HWND hDlg, + int nIDButton, + UINT uCheck); + +__declspec(dllimport) +BOOL +__stdcall +CheckRadioButton( + HWND hDlg, + int nIDFirstButton, + int nIDLastButton, + int nIDCheckButton); + +__declspec(dllimport) +UINT +__stdcall +IsDlgButtonChecked( + HWND hDlg, + int nIDButton); + +__declspec(dllimport) +LRESULT +__stdcall +SendDlgItemMessageA( + HWND hDlg, + int nIDDlgItem, + UINT Msg, + WPARAM wParam, + LPARAM lParam); +__declspec(dllimport) +LRESULT +__stdcall +SendDlgItemMessageW( + HWND hDlg, + int nIDDlgItem, + UINT Msg, + WPARAM wParam, + LPARAM lParam); + + + + + + +__declspec(dllimport) +HWND +__stdcall +GetNextDlgGroupItem( + HWND hDlg, + HWND hCtl, + BOOL bPrevious); + +__declspec(dllimport) +HWND +__stdcall +GetNextDlgTabItem( + HWND hDlg, + HWND hCtl, + BOOL bPrevious); + +__declspec(dllimport) +int +__stdcall +GetDlgCtrlID( + HWND hWnd); + +__declspec(dllimport) +long +__stdcall +GetDialogBaseUnits(void); + + +__declspec(dllimport) + +LRESULT +__stdcall + + + + +DefDlgProcA( + HWND hDlg, + UINT Msg, + WPARAM wParam, + LPARAM lParam); +__declspec(dllimport) + +LRESULT +__stdcall + + + + +DefDlgProcW( + HWND hDlg, + UINT Msg, + WPARAM wParam, + LPARAM lParam); + + + + + + +typedef enum DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS { + DCDC_DEFAULT = 0x0000, + DCDC_DISABLE_FONT_UPDATE = 0x0001, + DCDC_DISABLE_RELAYOUT = 0x0002, +} DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS; + + + ; + + +BOOL +__stdcall +SetDialogControlDpiChangeBehavior( + HWND hWnd, + DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS mask, + DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS values); + +DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS +__stdcall +GetDialogControlDpiChangeBehavior( + HWND hWnd); + +typedef enum DIALOG_DPI_CHANGE_BEHAVIORS { + DDC_DEFAULT = 0x0000, + DDC_DISABLE_ALL = 0x0001, + DDC_DISABLE_RESIZE = 0x0002, + DDC_DISABLE_CONTROL_RELAYOUT = 0x0004, +} DIALOG_DPI_CHANGE_BEHAVIORS; + + + ; + + +BOOL +__stdcall +SetDialogDpiChangeBehavior( + HWND hDlg, + DIALOG_DPI_CHANGE_BEHAVIORS mask, + DIALOG_DPI_CHANGE_BEHAVIORS values); + +DIALOG_DPI_CHANGE_BEHAVIORS +__stdcall +GetDialogDpiChangeBehavior( + HWND hDlg); +# 5374 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CallMsgFilterA( + LPMSG lpMsg, + int nCode); +__declspec(dllimport) +BOOL +__stdcall +CallMsgFilterW( + LPMSG lpMsg, + int nCode); +# 5400 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +OpenClipboard( + HWND hWndNewOwner); + +__declspec(dllimport) +BOOL +__stdcall +CloseClipboard( + void); + + + + +__declspec(dllimport) +DWORD +__stdcall +GetClipboardSequenceNumber( + void); + + + +__declspec(dllimport) +HWND +__stdcall +GetClipboardOwner( + void); + +__declspec(dllimport) +HWND +__stdcall +SetClipboardViewer( + HWND hWndNewViewer); + +__declspec(dllimport) +HWND +__stdcall +GetClipboardViewer( + void); + +__declspec(dllimport) +BOOL +__stdcall +ChangeClipboardChain( + HWND hWndRemove, + HWND hWndNewNext); + +__declspec(dllimport) +HANDLE +__stdcall +SetClipboardData( + UINT uFormat, + HANDLE hMem); + +__declspec(dllimport) +HANDLE +__stdcall +GetClipboardData( + UINT uFormat); + +typedef struct tagGETCLIPBMETADATA { + + UINT Version; + BOOL IsDelayRendered; + BOOL IsSynthetic; + +} GETCLIPBMETADATA, *PGETCLIPBMETADATA; + +__declspec(dllimport) +BOOL +__stdcall +GetClipboardMetadata( + UINT format, + PGETCLIPBMETADATA metadata); + +__declspec(dllimport) +UINT +__stdcall +RegisterClipboardFormatA( + LPCSTR lpszFormat); +__declspec(dllimport) +UINT +__stdcall +RegisterClipboardFormatW( + LPCWSTR lpszFormat); + + + + + + +__declspec(dllimport) +int +__stdcall +CountClipboardFormats( + void); + +__declspec(dllimport) +UINT +__stdcall +EnumClipboardFormats( + UINT format); + +__declspec(dllimport) +int +__stdcall +GetClipboardFormatNameA( + UINT format, + LPSTR lpszFormatName, + int cchMaxCount); +__declspec(dllimport) +int +__stdcall +GetClipboardFormatNameW( + UINT format, + LPWSTR lpszFormatName, + int cchMaxCount); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +EmptyClipboard( + void); + +__declspec(dllimport) +BOOL +__stdcall +IsClipboardFormatAvailable( + UINT format); + +__declspec(dllimport) +int +__stdcall +GetPriorityClipboardFormat( + UINT *paFormatPriorityList, + int cFormats); + +__declspec(dllimport) +HWND +__stdcall +GetOpenClipboardWindow( + void); + + +__declspec(dllimport) +BOOL +__stdcall +AddClipboardFormatListener( + HWND hwnd); + +__declspec(dllimport) +BOOL +__stdcall +RemoveClipboardFormatListener( + HWND hwnd); + +__declspec(dllimport) +BOOL +__stdcall +GetUpdatedClipboardFormats( + PUINT lpuiFormats, + UINT cFormats, + PUINT pcFormatsOut); +# 5577 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CharToOemA( + LPCSTR pSrc, + LPSTR pDst); +__declspec(dllimport) +BOOL +__stdcall +CharToOemW( + LPCWSTR pSrc, + LPSTR pDst); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +OemToCharA( + LPCSTR pSrc, + LPSTR pDst); + +__declspec(dllimport) +BOOL +__stdcall +OemToCharW( + LPCSTR pSrc, + LPWSTR pDst); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CharToOemBuffA( + LPCSTR lpszSrc, + LPSTR lpszDst, + DWORD cchDstLength); +__declspec(dllimport) +BOOL +__stdcall +CharToOemBuffW( + LPCWSTR lpszSrc, + LPSTR lpszDst, + DWORD cchDstLength); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +OemToCharBuffA( + LPCSTR lpszSrc, + LPSTR lpszDst, + DWORD cchDstLength); +__declspec(dllimport) +BOOL +__stdcall +OemToCharBuffW( + LPCSTR lpszSrc, + LPWSTR lpszDst, + DWORD cchDstLength); +# 5661 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +LPSTR +__stdcall +CharUpperA( + LPSTR lpsz); +__declspec(dllimport) +LPWSTR +__stdcall +CharUpperW( + LPWSTR lpsz); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +CharUpperBuffA( + LPSTR lpsz, + DWORD cchLength); +__declspec(dllimport) +DWORD +__stdcall +CharUpperBuffW( + LPWSTR lpsz, + DWORD cchLength); + + + + + + +__declspec(dllimport) +LPSTR +__stdcall +CharLowerA( + LPSTR lpsz); +__declspec(dllimport) +LPWSTR +__stdcall +CharLowerW( + LPWSTR lpsz); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +CharLowerBuffA( + LPSTR lpsz, + DWORD cchLength); +__declspec(dllimport) +DWORD +__stdcall +CharLowerBuffW( + LPWSTR lpsz, + DWORD cchLength); + + + + + + +__declspec(dllimport) +LPSTR +__stdcall +CharNextA( + LPCSTR lpsz); +__declspec(dllimport) +LPWSTR +__stdcall +CharNextW( + LPCWSTR lpsz); + + + + + + +__declspec(dllimport) +LPSTR +__stdcall +CharPrevA( + LPCSTR lpszStart, + LPCSTR lpszCurrent); +__declspec(dllimport) +LPWSTR +__stdcall +CharPrevW( + LPCWSTR lpszStart, + LPCWSTR lpszCurrent); + + + + + + + +__declspec(dllimport) +LPSTR +__stdcall +CharNextExA( + WORD CodePage, + LPCSTR lpCurrentChar, + DWORD dwFlags); + +__declspec(dllimport) +LPSTR +__stdcall +CharPrevExA( + WORD CodePage, + LPCSTR lpStart, + LPCSTR lpCurrentChar, + DWORD dwFlags); +# 5807 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsCharAlphaA( + CHAR ch); +__declspec(dllimport) +BOOL +__stdcall +IsCharAlphaW( + WCHAR ch); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +IsCharAlphaNumericA( + CHAR ch); +__declspec(dllimport) +BOOL +__stdcall +IsCharAlphaNumericW( + WCHAR ch); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +IsCharUpperA( + CHAR ch); +__declspec(dllimport) +BOOL +__stdcall +IsCharUpperW( + WCHAR ch); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +IsCharLowerA( + CHAR ch); +__declspec(dllimport) +BOOL +__stdcall +IsCharLowerW( + WCHAR ch); +# 5879 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HWND +__stdcall +SetFocus( + HWND hWnd); + +__declspec(dllimport) +HWND +__stdcall +GetActiveWindow( + void); + +__declspec(dllimport) +HWND +__stdcall +GetFocus( + void); + +__declspec(dllimport) +UINT +__stdcall +GetKBCodePage( + void); + +__declspec(dllimport) +SHORT +__stdcall +GetKeyState( + int nVirtKey); + +__declspec(dllimport) +SHORT +__stdcall +GetAsyncKeyState( + int vKey); + +__declspec(dllimport) + +BOOL +__stdcall +GetKeyboardState( + PBYTE lpKeyState); + +__declspec(dllimport) +BOOL +__stdcall +SetKeyboardState( + LPBYTE lpKeyState); +# 5935 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +int +__stdcall +GetKeyNameTextA( + LONG lParam, + LPSTR lpString, + int cchSize); +__declspec(dllimport) +int +__stdcall +GetKeyNameTextW( + LONG lParam, + LPWSTR lpString, + int cchSize); +# 5962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +int +__stdcall +GetKeyboardType( + int nTypeFlag); + +__declspec(dllimport) +int +__stdcall +ToAscii( + UINT uVirtKey, + UINT uScanCode, + const BYTE *lpKeyState, + LPWORD lpChar, + UINT uFlags); + + +__declspec(dllimport) +int +__stdcall +ToAsciiEx( + UINT uVirtKey, + UINT uScanCode, + const BYTE *lpKeyState, + LPWORD lpChar, + UINT uFlags, + HKL dwhkl); + + +__declspec(dllimport) +int +__stdcall +ToUnicode( + UINT wVirtKey, + UINT wScanCode, + const BYTE *lpKeyState, + LPWSTR pwszBuff, + int cchBuff, + UINT wFlags); + +__declspec(dllimport) +DWORD +__stdcall +OemKeyScan( + WORD wOemChar); + +__declspec(dllimport) +SHORT +__stdcall +VkKeyScanA( + CHAR ch); +__declspec(dllimport) +SHORT +__stdcall +VkKeyScanW( + WCHAR ch); + + + + + + + +__declspec(dllimport) +SHORT +__stdcall +VkKeyScanExA( + CHAR ch, + HKL dwhkl); +__declspec(dllimport) +SHORT +__stdcall +VkKeyScanExW( + WCHAR ch, + HKL dwhkl); +# 6050 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +void +__stdcall +keybd_event( + BYTE bVk, + BYTE bScan, + DWORD dwFlags, + ULONG_PTR dwExtraInfo); +# 6084 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +void +__stdcall +mouse_event( + DWORD dwFlags, + DWORD dx, + DWORD dy, + DWORD dwData, + ULONG_PTR dwExtraInfo); + + + + + + +typedef struct tagMOUSEINPUT { + LONG dx; + LONG dy; + DWORD mouseData; + DWORD dwFlags; + DWORD time; + ULONG_PTR dwExtraInfo; +} MOUSEINPUT, *PMOUSEINPUT, * LPMOUSEINPUT; + +typedef struct tagKEYBDINPUT { + WORD wVk; + WORD wScan; + DWORD dwFlags; + DWORD time; +# 6123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 + ULONG_PTR dwExtraInfo; +} KEYBDINPUT, *PKEYBDINPUT, * LPKEYBDINPUT; + + + + +typedef struct tagHARDWAREINPUT { + DWORD uMsg; + WORD wParamL; + WORD wParamH; +} HARDWAREINPUT, *PHARDWAREINPUT, * LPHARDWAREINPUT; + + + + + +typedef struct tagINPUT { + DWORD type; + + union + { + MOUSEINPUT mi; + KEYBDINPUT ki; + HARDWAREINPUT hi; + } ; +} INPUT, *PINPUT, * LPINPUT; + +__declspec(dllimport) +UINT +__stdcall +SendInput( + UINT cInputs, + LPINPUT pInputs, + int cbSize); +# 6175 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +struct HTOUCHINPUT__{int unused;}; typedef struct HTOUCHINPUT__ *HTOUCHINPUT; + +typedef struct tagTOUCHINPUT { + LONG x; + LONG y; + HANDLE hSource; + DWORD dwID; + DWORD dwFlags; + DWORD dwMask; + DWORD dwTime; + ULONG_PTR dwExtraInfo; + DWORD cxContact; + DWORD cyContact; +} TOUCHINPUT, *PTOUCHINPUT; +typedef TOUCHINPUT const * PCTOUCHINPUT; +# 6222 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetTouchInputInfo( + HTOUCHINPUT hTouchInput, + UINT cInputs, + PTOUCHINPUT pInputs, + int cbSize); + +__declspec(dllimport) +BOOL +__stdcall +CloseTouchInputHandle( + HTOUCHINPUT hTouchInput); +# 6251 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +RegisterTouchWindow( + HWND hwnd, + ULONG ulFlags); + +__declspec(dllimport) +BOOL +__stdcall +UnregisterTouchWindow( + HWND hwnd); + +__declspec(dllimport) +BOOL +__stdcall +IsTouchWindow( + HWND hwnd, + PULONG pulFlags); +# 6283 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +enum tagPOINTER_INPUT_TYPE { + PT_POINTER = 1, + PT_TOUCH = 2, + PT_PEN = 3, + PT_MOUSE = 4, + + PT_TOUCHPAD = 5, + +}; + + +typedef DWORD POINTER_INPUT_TYPE; + +typedef UINT32 POINTER_FLAGS; +# 6331 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef enum tagPOINTER_BUTTON_CHANGE_TYPE { + POINTER_CHANGE_NONE, + POINTER_CHANGE_FIRSTBUTTON_DOWN, + POINTER_CHANGE_FIRSTBUTTON_UP, + POINTER_CHANGE_SECONDBUTTON_DOWN, + POINTER_CHANGE_SECONDBUTTON_UP, + POINTER_CHANGE_THIRDBUTTON_DOWN, + POINTER_CHANGE_THIRDBUTTON_UP, + POINTER_CHANGE_FOURTHBUTTON_DOWN, + POINTER_CHANGE_FOURTHBUTTON_UP, + POINTER_CHANGE_FIFTHBUTTON_DOWN, + POINTER_CHANGE_FIFTHBUTTON_UP, +} POINTER_BUTTON_CHANGE_TYPE; + +typedef struct tagPOINTER_INFO { + POINTER_INPUT_TYPE pointerType; + UINT32 pointerId; + UINT32 frameId; + POINTER_FLAGS pointerFlags; + HANDLE sourceDevice; + HWND hwndTarget; + POINT ptPixelLocation; + POINT ptHimetricLocation; + POINT ptPixelLocationRaw; + POINT ptHimetricLocationRaw; + DWORD dwTime; + UINT32 historyCount; + INT32 InputData; + DWORD dwKeyStates; + UINT64 PerformanceCount; + POINTER_BUTTON_CHANGE_TYPE ButtonChangeType; +} POINTER_INFO; + + +typedef UINT32 TOUCH_FLAGS; + + +typedef UINT32 TOUCH_MASK; + + + + + +typedef struct tagPOINTER_TOUCH_INFO { + POINTER_INFO pointerInfo; + TOUCH_FLAGS touchFlags; + TOUCH_MASK touchMask; + RECT rcContact; + RECT rcContactRaw; + UINT32 orientation; + UINT32 pressure; +} POINTER_TOUCH_INFO; + +typedef UINT32 PEN_FLAGS; + + + + + +typedef UINT32 PEN_MASK; + + + + + + +typedef struct tagPOINTER_PEN_INFO { + POINTER_INFO pointerInfo; + PEN_FLAGS penFlags; + PEN_MASK penMask; + UINT32 pressure; + UINT32 rotation; + INT32 tiltX; + INT32 tiltY; +} POINTER_PEN_INFO; +# 6455 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef enum { + POINTER_FEEDBACK_DEFAULT = 1, + POINTER_FEEDBACK_INDIRECT = 2, + POINTER_FEEDBACK_NONE = 3, +} POINTER_FEEDBACK_MODE; + + + + +__declspec(dllimport) +BOOL +__stdcall +InitializeTouchInjection( + UINT32 maxCount, + DWORD dwMode); + +__declspec(dllimport) +BOOL +__stdcall +InjectTouchInput( + UINT32 count, + const POINTER_TOUCH_INFO *contacts); + +typedef struct tagUSAGE_PROPERTIES { + USHORT level; + USHORT page; + USHORT usage; + INT32 logicalMinimum; + INT32 logicalMaximum; + USHORT unit; + USHORT exponent; + BYTE count; + INT32 physicalMinimum; + INT32 physicalMaximum; +}USAGE_PROPERTIES, *PUSAGE_PROPERTIES; + +typedef struct tagPOINTER_TYPE_INFO { + POINTER_INPUT_TYPE type; + union{ + POINTER_TOUCH_INFO touchInfo; + POINTER_PEN_INFO penInfo; + } ; +}POINTER_TYPE_INFO, *PPOINTER_TYPE_INFO; + +typedef struct tagINPUT_INJECTION_VALUE { + USHORT page; + USHORT usage; + INT32 value; + USHORT index; +}INPUT_INJECTION_VALUE, *PINPUT_INJECTION_VALUE; + +__declspec(dllimport) +BOOL +__stdcall +GetPointerType( + UINT32 pointerId, + POINTER_INPUT_TYPE *pointerType); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerCursorId( + UINT32 pointerId, + UINT32 *cursorId); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerInfo( + UINT32 pointerId, + POINTER_INFO *pointerInfo); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerInfoHistory( + UINT32 pointerId, + UINT32 *entriesCount, + POINTER_INFO *pointerInfo); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerFrameInfo( + UINT32 pointerId, + UINT32 *pointerCount, + POINTER_INFO *pointerInfo); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerFrameInfoHistory( + UINT32 pointerId, + UINT32 *entriesCount, + UINT32 *pointerCount, + POINTER_INFO *pointerInfo); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerTouchInfo( + UINT32 pointerId, + POINTER_TOUCH_INFO *touchInfo); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerTouchInfoHistory( + UINT32 pointerId, + UINT32 *entriesCount, + POINTER_TOUCH_INFO *touchInfo); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerFrameTouchInfo( + UINT32 pointerId, + UINT32 *pointerCount, + POINTER_TOUCH_INFO *touchInfo); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerFrameTouchInfoHistory( + UINT32 pointerId, + UINT32 *entriesCount, + UINT32 *pointerCount, + POINTER_TOUCH_INFO *touchInfo); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerPenInfo( + UINT32 pointerId, + POINTER_PEN_INFO *penInfo); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerPenInfoHistory( + UINT32 pointerId, + UINT32 *entriesCount, + POINTER_PEN_INFO *penInfo); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerFramePenInfo( + UINT32 pointerId, + UINT32 *pointerCount, + POINTER_PEN_INFO *penInfo); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerFramePenInfoHistory( + UINT32 pointerId, + UINT32 *entriesCount, + UINT32 *pointerCount, + POINTER_PEN_INFO *penInfo); + + +__declspec(dllimport) +BOOL +__stdcall +SkipPointerFrameMessages( + UINT32 pointerId); + +__declspec(dllimport) +BOOL +__stdcall +RegisterPointerInputTarget( + HWND hwnd, + POINTER_INPUT_TYPE pointerType); + +__declspec(dllimport) +BOOL +__stdcall +UnregisterPointerInputTarget( + HWND hwnd, + POINTER_INPUT_TYPE pointerType); + +__declspec(dllimport) +BOOL +__stdcall +RegisterPointerInputTargetEx( + HWND hwnd, + POINTER_INPUT_TYPE pointerType, + BOOL fObserve); + +__declspec(dllimport) +BOOL +__stdcall +UnregisterPointerInputTargetEx( + HWND hwnd, + POINTER_INPUT_TYPE pointerType); + + +struct HSYNTHETICPOINTERDEVICE__{int unused;}; typedef struct HSYNTHETICPOINTERDEVICE__ *HSYNTHETICPOINTERDEVICE; +__declspec(dllimport) +HSYNTHETICPOINTERDEVICE +__stdcall +CreateSyntheticPointerDevice( + POINTER_INPUT_TYPE pointerType, + ULONG maxCount, + POINTER_FEEDBACK_MODE mode); + +__declspec(dllimport) +BOOL +__stdcall +InjectSyntheticPointerInput( + HSYNTHETICPOINTERDEVICE device, + const POINTER_TYPE_INFO* pointerInfo, + UINT32 count); + +__declspec(dllimport) +void +__stdcall +DestroySyntheticPointerDevice( + HSYNTHETICPOINTERDEVICE device); + + + +__declspec(dllimport) +BOOL +__stdcall +EnableMouseInPointer( + BOOL fEnable); + +__declspec(dllimport) +BOOL +__stdcall +IsMouseInPointerEnabled( + void); + + +__declspec(dllimport) +BOOL +__stdcall +EnableMouseInPointerForThread(void); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +RegisterTouchHitTestingWindow( + HWND hwnd, + ULONG value); + +typedef struct tagTOUCH_HIT_TESTING_PROXIMITY_EVALUATION +{ + UINT16 score; + POINT adjustedPoint; +} TOUCH_HIT_TESTING_PROXIMITY_EVALUATION, *PTOUCH_HIT_TESTING_PROXIMITY_EVALUATION; + + + + + +typedef struct tagTOUCH_HIT_TESTING_INPUT +{ + UINT32 pointerId; + POINT point; + RECT boundingBox; + RECT nonOccludedBoundingBox; + UINT32 orientation; +} TOUCH_HIT_TESTING_INPUT, *PTOUCH_HIT_TESTING_INPUT; + + + + + +__declspec(dllimport) +BOOL +__stdcall +EvaluateProximityToRect( + const RECT *controlBoundingBox, + const TOUCH_HIT_TESTING_INPUT *pHitTestingInput, + TOUCH_HIT_TESTING_PROXIMITY_EVALUATION *pProximityEval); + +__declspec(dllimport) +BOOL +__stdcall +EvaluateProximityToPolygon( + UINT32 numVertices, + const POINT *controlPolygon, + const TOUCH_HIT_TESTING_INPUT *pHitTestingInput, + TOUCH_HIT_TESTING_PROXIMITY_EVALUATION *pProximityEval); + +__declspec(dllimport) +LRESULT +__stdcall +PackTouchHitTestingProximityEvaluation( + const TOUCH_HIT_TESTING_INPUT *pHitTestingInput, + const TOUCH_HIT_TESTING_PROXIMITY_EVALUATION *pProximityEval); + + +typedef enum tagFEEDBACK_TYPE { + FEEDBACK_TOUCH_CONTACTVISUALIZATION = 1, + FEEDBACK_PEN_BARRELVISUALIZATION = 2, + FEEDBACK_PEN_TAP = 3, + FEEDBACK_PEN_DOUBLETAP = 4, + FEEDBACK_PEN_PRESSANDHOLD = 5, + FEEDBACK_PEN_RIGHTTAP = 6, + FEEDBACK_TOUCH_TAP = 7, + FEEDBACK_TOUCH_DOUBLETAP = 8, + FEEDBACK_TOUCH_PRESSANDHOLD = 9, + FEEDBACK_TOUCH_RIGHTTAP = 10, + FEEDBACK_GESTURE_PRESSANDTAP = 11, + FEEDBACK_MAX = 0xFFFFFFFF +} FEEDBACK_TYPE; + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetWindowFeedbackSetting( + HWND hwnd, + FEEDBACK_TYPE feedback, + DWORD dwFlags, + UINT32* pSize, + void* config); + +__declspec(dllimport) +BOOL +__stdcall +SetWindowFeedbackSetting( + HWND hwnd, + FEEDBACK_TYPE feedback, + DWORD dwFlags, + UINT32 size, + const void* configuration); +# 6809 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +#pragma warning(push) + +#pragma warning(disable: 4201) + +typedef struct tagINPUT_TRANSFORM { + union { + struct { + float _11, _12, _13, _14; + float _21, _22, _23, _24; + float _31, _32, _33, _34; + float _41, _42, _43, _44; + } ; + float m[4][4]; + } ; +} INPUT_TRANSFORM; + + +#pragma warning(pop) + + + +__declspec(dllimport) +BOOL +__stdcall +GetPointerInputTransform( + UINT32 pointerId, + UINT32 historyCount, + INPUT_TRANSFORM *inputTransform); +# 6853 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagLASTINPUTINFO { + UINT cbSize; + DWORD dwTime; +} LASTINPUTINFO, * PLASTINPUTINFO; + +__declspec(dllimport) +BOOL +__stdcall +GetLastInputInfo( + PLASTINPUTINFO plii); +# 6871 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +UINT +__stdcall +MapVirtualKeyA( + UINT uCode, + UINT uMapType); +__declspec(dllimport) +UINT +__stdcall +MapVirtualKeyW( + UINT uCode, + UINT uMapType); + + + + + + + +__declspec(dllimport) +UINT +__stdcall +MapVirtualKeyExA( + UINT uCode, + UINT uMapType, + HKL dwhkl); +__declspec(dllimport) +UINT +__stdcall +MapVirtualKeyExW( + UINT uCode, + UINT uMapType, + HKL dwhkl); +# 6925 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetInputState( + void); + +__declspec(dllimport) +DWORD +__stdcall +GetQueueStatus( + UINT flags); + + +__declspec(dllimport) +HWND +__stdcall +GetCapture( + void); + +__declspec(dllimport) +HWND +__stdcall +SetCapture( + HWND hWnd); + +__declspec(dllimport) +BOOL +__stdcall +ReleaseCapture( + void); + +__declspec(dllimport) +DWORD +__stdcall +MsgWaitForMultipleObjects( + DWORD nCount, + const HANDLE *pHandles, + BOOL fWaitAll, + DWORD dwMilliseconds, + DWORD dwWakeMask); + +__declspec(dllimport) +DWORD +__stdcall +MsgWaitForMultipleObjectsEx( + DWORD nCount, + const HANDLE *pHandles, + DWORD dwMilliseconds, + DWORD dwWakeMask, + DWORD dwFlags); +# 7053 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +UINT_PTR +__stdcall +SetTimer( + HWND hWnd, + UINT_PTR nIDEvent, + UINT uElapse, + TIMERPROC lpTimerFunc); +# 7080 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +UINT_PTR +__stdcall +SetCoalescableTimer( + HWND hWnd, + UINT_PTR nIDEvent, + UINT uElapse, + TIMERPROC lpTimerFunc, + ULONG uToleranceDelay); +# 7098 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +KillTimer( + HWND hWnd, + UINT_PTR uIDEvent); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +IsWindowUnicode( + HWND hWnd); + +__declspec(dllimport) +BOOL +__stdcall +EnableWindow( + HWND hWnd, + BOOL bEnable); + +__declspec(dllimport) +BOOL +__stdcall +IsWindowEnabled( + HWND hWnd); + +__declspec(dllimport) +HACCEL +__stdcall +LoadAcceleratorsA( + HINSTANCE hInstance, + LPCSTR lpTableName); +__declspec(dllimport) +HACCEL +__stdcall +LoadAcceleratorsW( + HINSTANCE hInstance, + LPCWSTR lpTableName); + + + + + + +__declspec(dllimport) +HACCEL +__stdcall +CreateAcceleratorTableA( + LPACCEL paccel, + int cAccel); +__declspec(dllimport) +HACCEL +__stdcall +CreateAcceleratorTableW( + LPACCEL paccel, + int cAccel); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +DestroyAcceleratorTable( + HACCEL hAccel); + +__declspec(dllimport) +int +__stdcall +CopyAcceleratorTableA( + HACCEL hAccelSrc, + LPACCEL lpAccelDst, + int cAccelEntries); +__declspec(dllimport) +int +__stdcall +CopyAcceleratorTableW( + HACCEL hAccelSrc, + LPACCEL lpAccelDst, + int cAccelEntries); +# 7194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +int +__stdcall +TranslateAcceleratorA( + HWND hWnd, + HACCEL hAccTable, + LPMSG lpMsg); +__declspec(dllimport) +int +__stdcall +TranslateAcceleratorW( + HWND hWnd, + HACCEL hAccTable, + LPMSG lpMsg); +# 7384 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +int +__stdcall +GetSystemMetrics( + int nIndex); + + + +__declspec(dllimport) +int +__stdcall +GetSystemMetricsForDpi( + int nIndex, + UINT dpi); +# 7411 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HMENU +__stdcall +LoadMenuA( + HINSTANCE hInstance, + LPCSTR lpMenuName); +__declspec(dllimport) +HMENU +__stdcall +LoadMenuW( + HINSTANCE hInstance, + LPCWSTR lpMenuName); + + + + + + +__declspec(dllimport) +HMENU +__stdcall +LoadMenuIndirectA( + const MENUTEMPLATEA *lpMenuTemplate); +__declspec(dllimport) +HMENU +__stdcall +LoadMenuIndirectW( + const MENUTEMPLATEW *lpMenuTemplate); + + + + + + +__declspec(dllimport) +HMENU +__stdcall +GetMenu( + HWND hWnd); + +__declspec(dllimport) +BOOL +__stdcall +SetMenu( + HWND hWnd, + HMENU hMenu); + +__declspec(dllimport) +BOOL +__stdcall +ChangeMenuA( + HMENU hMenu, + UINT cmd, + LPCSTR lpszNewItem, + UINT cmdInsert, + UINT flags); +__declspec(dllimport) +BOOL +__stdcall +ChangeMenuW( + HMENU hMenu, + UINT cmd, + LPCWSTR lpszNewItem, + UINT cmdInsert, + UINT flags); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +HiliteMenuItem( + HWND hWnd, + HMENU hMenu, + UINT uIDHiliteItem, + UINT uHilite); + +__declspec(dllimport) +int +__stdcall +GetMenuStringA( + HMENU hMenu, + UINT uIDItem, + LPSTR lpString, + int cchMax, + UINT flags); +__declspec(dllimport) +int +__stdcall +GetMenuStringW( + HMENU hMenu, + UINT uIDItem, + LPWSTR lpString, + int cchMax, + UINT flags); + + + + + + +__declspec(dllimport) +UINT +__stdcall +GetMenuState( + HMENU hMenu, + UINT uId, + UINT uFlags); + +__declspec(dllimport) +BOOL +__stdcall +DrawMenuBar( + HWND hWnd); + + + + + + + +__declspec(dllimport) +HMENU +__stdcall +GetSystemMenu( + HWND hWnd, + BOOL bRevert); + + +__declspec(dllimport) +HMENU +__stdcall +CreateMenu( + void); + +__declspec(dllimport) +HMENU +__stdcall +CreatePopupMenu( + void); + +__declspec(dllimport) +BOOL +__stdcall +DestroyMenu( + HMENU hMenu); + +__declspec(dllimport) +DWORD +__stdcall +CheckMenuItem( + HMENU hMenu, + UINT uIDCheckItem, + UINT uCheck); + +__declspec(dllimport) +BOOL +__stdcall +EnableMenuItem( + HMENU hMenu, + UINT uIDEnableItem, + UINT uEnable); + +__declspec(dllimport) +HMENU +__stdcall +GetSubMenu( + HMENU hMenu, + int nPos); + +__declspec(dllimport) +UINT +__stdcall +GetMenuItemID( + HMENU hMenu, + int nPos); + +__declspec(dllimport) +int +__stdcall +GetMenuItemCount( + HMENU hMenu); + +__declspec(dllimport) +BOOL +__stdcall +InsertMenuA( + HMENU hMenu, + UINT uPosition, + UINT uFlags, + UINT_PTR uIDNewItem, + LPCSTR lpNewItem); +__declspec(dllimport) +BOOL +__stdcall +InsertMenuW( + HMENU hMenu, + UINT uPosition, + UINT uFlags, + UINT_PTR uIDNewItem, + LPCWSTR lpNewItem); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +AppendMenuA( + HMENU hMenu, + UINT uFlags, + UINT_PTR uIDNewItem, + LPCSTR lpNewItem); +__declspec(dllimport) +BOOL +__stdcall +AppendMenuW( + HMENU hMenu, + UINT uFlags, + UINT_PTR uIDNewItem, + LPCWSTR lpNewItem); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +ModifyMenuA( + HMENU hMnu, + UINT uPosition, + UINT uFlags, + UINT_PTR uIDNewItem, + LPCSTR lpNewItem); +__declspec(dllimport) +BOOL +__stdcall +ModifyMenuW( + HMENU hMnu, + UINT uPosition, + UINT uFlags, + UINT_PTR uIDNewItem, + LPCWSTR lpNewItem); + + + + + + +__declspec(dllimport) +BOOL +__stdcall RemoveMenu( + HMENU hMenu, + UINT uPosition, + UINT uFlags); + +__declspec(dllimport) +BOOL +__stdcall +DeleteMenu( + HMENU hMenu, + UINT uPosition, + UINT uFlags); + +__declspec(dllimport) +BOOL +__stdcall +SetMenuItemBitmaps( + HMENU hMenu, + UINT uPosition, + UINT uFlags, + HBITMAP hBitmapUnchecked, + HBITMAP hBitmapChecked); + +__declspec(dllimport) +LONG +__stdcall +GetMenuCheckMarkDimensions( + void); + +__declspec(dllimport) +BOOL +__stdcall +TrackPopupMenu( + HMENU hMenu, + UINT uFlags, + int x, + int y, + int nReserved, + HWND hWnd, + const RECT *prcRect); +# 7717 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagTPMPARAMS +{ + UINT cbSize; + RECT rcExclude; +} TPMPARAMS; +typedef TPMPARAMS *LPTPMPARAMS; + +__declspec(dllimport) +BOOL +__stdcall +TrackPopupMenuEx( + HMENU hMenu, + UINT uFlags, + int x, + int y, + HWND hwnd, + LPTPMPARAMS lptpm); + + + +__declspec(dllimport) +BOOL +__stdcall +CalculatePopupWindowPosition( + const POINT *anchorPoint, + const SIZE *windowSize, + UINT flags, + RECT *excludeRect, + RECT *popupWindowPosition); +# 7765 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagMENUINFO +{ + DWORD cbSize; + DWORD fMask; + DWORD dwStyle; + UINT cyMax; + HBRUSH hbrBack; + DWORD dwContextHelpID; + ULONG_PTR dwMenuData; +} MENUINFO, *LPMENUINFO; +typedef MENUINFO const *LPCMENUINFO; + +__declspec(dllimport) +BOOL +__stdcall +GetMenuInfo( + HMENU, + LPMENUINFO); + +__declspec(dllimport) +BOOL +__stdcall +SetMenuInfo( + HMENU, + LPCMENUINFO); + +__declspec(dllimport) +BOOL +__stdcall +EndMenu( + void); + + + + + + + +typedef struct tagMENUGETOBJECTINFO +{ + DWORD dwFlags; + UINT uPos; + HMENU hmenu; + PVOID riid; + PVOID pvObj; +} MENUGETOBJECTINFO, * PMENUGETOBJECTINFO; +# 7853 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagMENUITEMINFOA +{ + UINT cbSize; + UINT fMask; + UINT fType; + UINT fState; + UINT wID; + HMENU hSubMenu; + HBITMAP hbmpChecked; + HBITMAP hbmpUnchecked; + ULONG_PTR dwItemData; + LPSTR dwTypeData; + UINT cch; + + HBITMAP hbmpItem; + +} MENUITEMINFOA, *LPMENUITEMINFOA; +typedef struct tagMENUITEMINFOW +{ + UINT cbSize; + UINT fMask; + UINT fType; + UINT fState; + UINT wID; + HMENU hSubMenu; + HBITMAP hbmpChecked; + HBITMAP hbmpUnchecked; + ULONG_PTR dwItemData; + LPWSTR dwTypeData; + UINT cch; + + HBITMAP hbmpItem; + +} MENUITEMINFOW, *LPMENUITEMINFOW; + + + + +typedef MENUITEMINFOA MENUITEMINFO; +typedef LPMENUITEMINFOA LPMENUITEMINFO; + +typedef MENUITEMINFOA const *LPCMENUITEMINFOA; +typedef MENUITEMINFOW const *LPCMENUITEMINFOW; + + + +typedef LPCMENUITEMINFOA LPCMENUITEMINFO; + + + +__declspec(dllimport) +BOOL +__stdcall +InsertMenuItemA( + HMENU hmenu, + UINT item, + BOOL fByPosition, + LPCMENUITEMINFOA lpmi); +__declspec(dllimport) +BOOL +__stdcall +InsertMenuItemW( + HMENU hmenu, + UINT item, + BOOL fByPosition, + LPCMENUITEMINFOW lpmi); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetMenuItemInfoA( + HMENU hmenu, + UINT item, + BOOL fByPosition, + LPMENUITEMINFOA lpmii); +__declspec(dllimport) +BOOL +__stdcall +GetMenuItemInfoW( + HMENU hmenu, + UINT item, + BOOL fByPosition, + LPMENUITEMINFOW lpmii); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetMenuItemInfoA( + HMENU hmenu, + UINT item, + BOOL fByPositon, + LPCMENUITEMINFOA lpmii); +__declspec(dllimport) +BOOL +__stdcall +SetMenuItemInfoW( + HMENU hmenu, + UINT item, + BOOL fByPositon, + LPCMENUITEMINFOW lpmii); +# 7973 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +UINT +__stdcall +GetMenuDefaultItem( + HMENU hMenu, + UINT fByPos, + UINT gmdiFlags); + +__declspec(dllimport) +BOOL +__stdcall +SetMenuDefaultItem( + HMENU hMenu, + UINT uItem, + UINT fByPos); + +__declspec(dllimport) +BOOL +__stdcall +GetMenuItemRect( + HWND hWnd, + HMENU hMenu, + UINT uItem, + LPRECT lprcItem); + +__declspec(dllimport) +int +__stdcall +MenuItemFromPoint( + HWND hWnd, + HMENU hMenu, + POINT ptScreen); +# 8058 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagDROPSTRUCT +{ + HWND hwndSource; + HWND hwndSink; + DWORD wFmt; + ULONG_PTR dwData; + POINT ptDrop; + DWORD dwControlData; +} DROPSTRUCT, *PDROPSTRUCT, *LPDROPSTRUCT; +# 8084 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +DWORD +__stdcall +DragObject( + HWND hwndParent, + HWND hwndFrom, + UINT fmt, + ULONG_PTR data, + HCURSOR hcur); + +__declspec(dllimport) +BOOL +__stdcall +DragDetect( + HWND hwnd, + POINT pt); +# 8109 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DrawIcon( + HDC hDC, + int X, + int Y, + HICON hIcon); +# 8160 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagDRAWTEXTPARAMS +{ + UINT cbSize; + int iTabLength; + int iLeftMargin; + int iRightMargin; + UINT uiLengthDrawn; +} DRAWTEXTPARAMS, *LPDRAWTEXTPARAMS; +# 8186 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) + +int +__stdcall +DrawTextA( + HDC hdc, + + + LPCSTR lpchText, + int cchText, + LPRECT lprc, + UINT format); +__declspec(dllimport) + +int +__stdcall +DrawTextW( + HDC hdc, + + + LPCWSTR lpchText, + int cchText, + LPRECT lprc, + UINT format); +# 8244 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) + +int +__stdcall +DrawTextExA( + HDC hdc, + + + + LPSTR lpchText, + int cchText, + LPRECT lprc, + UINT format, + LPDRAWTEXTPARAMS lpdtp); +__declspec(dllimport) + +int +__stdcall +DrawTextExW( + HDC hdc, + + + + LPWSTR lpchText, + int cchText, + LPRECT lprc, + UINT format, + LPDRAWTEXTPARAMS lpdtp); +# 8287 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GrayStringA( + HDC hDC, + HBRUSH hBrush, + GRAYSTRINGPROC lpOutputFunc, + LPARAM lpData, + int nCount, + int X, + int Y, + int nWidth, + int nHeight); +__declspec(dllimport) +BOOL +__stdcall +GrayStringW( + HDC hDC, + HBRUSH hBrush, + GRAYSTRINGPROC lpOutputFunc, + LPARAM lpData, + int nCount, + int X, + int Y, + int nWidth, + int nHeight); +# 8345 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DrawStateA( + HDC hdc, + HBRUSH hbrFore, + DRAWSTATEPROC qfnCallBack, + LPARAM lData, + WPARAM wData, + int x, + int y, + int cx, + int cy, + UINT uFlags); +__declspec(dllimport) +BOOL +__stdcall +DrawStateW( + HDC hdc, + HBRUSH hbrFore, + DRAWSTATEPROC qfnCallBack, + LPARAM lData, + WPARAM wData, + int x, + int y, + int cx, + int cy, + UINT uFlags); +# 8387 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +LONG +__stdcall +TabbedTextOutA( + HDC hdc, + int x, + int y, + LPCSTR lpString, + int chCount, + int nTabPositions, + const INT *lpnTabStopPositions, + int nTabOrigin); +__declspec(dllimport) +LONG +__stdcall +TabbedTextOutW( + HDC hdc, + int x, + int y, + LPCWSTR lpString, + int chCount, + int nTabPositions, + const INT *lpnTabStopPositions, + int nTabOrigin); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetTabbedTextExtentA( + HDC hdc, + LPCSTR lpString, + int chCount, + int nTabPositions, + const INT *lpnTabStopPositions); +__declspec(dllimport) +DWORD +__stdcall +GetTabbedTextExtentW( + HDC hdc, + LPCWSTR lpString, + int chCount, + int nTabPositions, + const INT *lpnTabStopPositions); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +UpdateWindow( + HWND hWnd); + +__declspec(dllimport) +HWND +__stdcall +SetActiveWindow( + HWND hWnd); + + +__declspec(dllimport) +HWND +__stdcall +GetForegroundWindow( + void); + + +__declspec(dllimport) +BOOL +__stdcall +PaintDesktop( + HDC hdc); + +__declspec(dllimport) +void +__stdcall +SwitchToThisWindow( + HWND hwnd, + BOOL fUnknown); + + + +__declspec(dllimport) +BOOL +__stdcall +SetForegroundWindow( + HWND hWnd); + + +__declspec(dllimport) +BOOL +__stdcall +AllowSetForegroundWindow( + DWORD dwProcessId); + + + +__declspec(dllimport) +BOOL +__stdcall +LockSetForegroundWindow( + UINT uLockCode); + + + + + + +__declspec(dllimport) +HWND +__stdcall +WindowFromDC( + HDC hDC); + +__declspec(dllimport) +HDC +__stdcall +GetDC( + HWND hWnd); + +__declspec(dllimport) +HDC +__stdcall +GetDCEx( + HWND hWnd, + HRGN hrgnClip, + DWORD flags); +# 8545 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HDC +__stdcall +GetWindowDC( + HWND hWnd); + +__declspec(dllimport) +int +__stdcall +ReleaseDC( + HWND hWnd, + HDC hDC); + +__declspec(dllimport) +HDC +__stdcall +BeginPaint( + HWND hWnd, + LPPAINTSTRUCT lpPaint); + +__declspec(dllimport) +BOOL +__stdcall +EndPaint( + HWND hWnd, + const PAINTSTRUCT *lpPaint); + +__declspec(dllimport) +BOOL +__stdcall +GetUpdateRect( + HWND hWnd, + LPRECT lpRect, + BOOL bErase); + +__declspec(dllimport) +int +__stdcall +GetUpdateRgn( + HWND hWnd, + HRGN hRgn, + BOOL bErase); + +__declspec(dllimport) +int +__stdcall +SetWindowRgn( + HWND hWnd, + HRGN hRgn, + BOOL bRedraw); +# 8603 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +int +__stdcall +GetWindowRgn( + HWND hWnd, + HRGN hRgn); + + + +__declspec(dllimport) +int +__stdcall +GetWindowRgnBox( + HWND hWnd, + LPRECT lprc); + + + +__declspec(dllimport) +int +__stdcall +ExcludeUpdateRgn( + HDC hDC, + HWND hWnd); + +__declspec(dllimport) +BOOL +__stdcall +InvalidateRect( + HWND hWnd, + const RECT *lpRect, + BOOL bErase); + +__declspec(dllimport) +BOOL +__stdcall +ValidateRect( + HWND hWnd, + const RECT *lpRect); + +__declspec(dllimport) +BOOL +__stdcall +InvalidateRgn( + HWND hWnd, + HRGN hRgn, + BOOL bErase); + +__declspec(dllimport) +BOOL +__stdcall +ValidateRgn( + HWND hWnd, + HRGN hRgn); + + +__declspec(dllimport) +BOOL +__stdcall +RedrawWindow( + HWND hWnd, + const RECT *lprcUpdate, + HRGN hrgnUpdate, + UINT flags); +# 8699 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +LockWindowUpdate( + HWND hWndLock); + +__declspec(dllimport) +BOOL +__stdcall +ScrollWindow( + HWND hWnd, + int XAmount, + int YAmount, + const RECT *lpRect, + const RECT *lpClipRect); + +__declspec(dllimport) +BOOL +__stdcall +ScrollDC( + HDC hDC, + int dx, + int dy, + const RECT *lprcScroll, + const RECT *lprcClip, + HRGN hrgnUpdate, + LPRECT lprcUpdate); + +__declspec(dllimport) +int +__stdcall +ScrollWindowEx( + HWND hWnd, + int dx, + int dy, + const RECT *prcScroll, + const RECT *prcClip, + HRGN hrgnUpdate, + LPRECT prcUpdate, + UINT flags); +# 8755 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +int +__stdcall +SetScrollPos( + HWND hWnd, + int nBar, + int nPos, + BOOL bRedraw); + +__declspec(dllimport) +int +__stdcall +GetScrollPos( + HWND hWnd, + int nBar); + +__declspec(dllimport) +BOOL +__stdcall +SetScrollRange( + HWND hWnd, + int nBar, + int nMinPos, + int nMaxPos, + BOOL bRedraw); + +__declspec(dllimport) +BOOL +__stdcall +GetScrollRange( + HWND hWnd, + int nBar, + LPINT lpMinPos, + LPINT lpMaxPos); + +__declspec(dllimport) +BOOL +__stdcall +ShowScrollBar( + HWND hWnd, + int wBar, + BOOL bShow); + +__declspec(dllimport) +BOOL +__stdcall +EnableScrollBar( + HWND hWnd, + UINT wSBflags, + UINT wArrows); +# 8826 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetPropA( + HWND hWnd, + LPCSTR lpString, + HANDLE hData); +__declspec(dllimport) +BOOL +__stdcall +SetPropW( + HWND hWnd, + LPCWSTR lpString, + HANDLE hData); + + + + + + +__declspec(dllimport) +HANDLE +__stdcall +GetPropA( + HWND hWnd, + LPCSTR lpString); +__declspec(dllimport) +HANDLE +__stdcall +GetPropW( + HWND hWnd, + LPCWSTR lpString); + + + + + + +__declspec(dllimport) +HANDLE +__stdcall +RemovePropA( + HWND hWnd, + LPCSTR lpString); +__declspec(dllimport) +HANDLE +__stdcall +RemovePropW( + HWND hWnd, + LPCWSTR lpString); + + + + + + +__declspec(dllimport) +int +__stdcall +EnumPropsExA( + HWND hWnd, + PROPENUMPROCEXA lpEnumFunc, + LPARAM lParam); +__declspec(dllimport) +int +__stdcall +EnumPropsExW( + HWND hWnd, + PROPENUMPROCEXW lpEnumFunc, + LPARAM lParam); + + + + + + +__declspec(dllimport) +int +__stdcall +EnumPropsA( + HWND hWnd, + PROPENUMPROCA lpEnumFunc); +__declspec(dllimport) +int +__stdcall +EnumPropsW( + HWND hWnd, + PROPENUMPROCW lpEnumFunc); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetWindowTextA( + HWND hWnd, + LPCSTR lpString); +__declspec(dllimport) +BOOL +__stdcall +SetWindowTextW( + HWND hWnd, + LPCWSTR lpString); + + + + + + + +__declspec(dllimport) +int +__stdcall +GetWindowTextA( + HWND hWnd, + LPSTR lpString, + int nMaxCount); + +__declspec(dllimport) +int +__stdcall +GetWindowTextW( + HWND hWnd, + LPWSTR lpString, + int nMaxCount); + + + + + + +__declspec(dllimport) +int +__stdcall +GetWindowTextLengthA( + HWND hWnd); +__declspec(dllimport) +int +__stdcall +GetWindowTextLengthW( + HWND hWnd); +# 8982 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetClientRect( + HWND hWnd, + LPRECT lpRect); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetWindowRect( + HWND hWnd, + LPRECT lpRect); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +AdjustWindowRect( + LPRECT lpRect, + DWORD dwStyle, + BOOL bMenu); + +__declspec(dllimport) +BOOL +__stdcall +AdjustWindowRectEx( + LPRECT lpRect, + DWORD dwStyle, + BOOL bMenu, + DWORD dwExStyle); +# 9032 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +AdjustWindowRectExForDpi( + LPRECT lpRect, + DWORD dwStyle, + BOOL bMenu, + DWORD dwExStyle, + UINT dpi); +# 9054 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagHELPINFO +{ + UINT cbSize; + int iContextType; + int iCtrlId; + HANDLE hItemHandle; + DWORD_PTR dwContextId; + POINT MousePos; +} HELPINFO, *LPHELPINFO; + +__declspec(dllimport) +BOOL +__stdcall +SetWindowContextHelpId( + HWND, + DWORD); + +__declspec(dllimport) +DWORD +__stdcall +GetWindowContextHelpId( + HWND); + +__declspec(dllimport) +BOOL +__stdcall +SetMenuContextHelpId( + HMENU, + DWORD); + +__declspec(dllimport) +DWORD +__stdcall +GetMenuContextHelpId( + HMENU); +# 9169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +int +__stdcall +MessageBoxA( + HWND hWnd, + LPCSTR lpText, + LPCSTR lpCaption, + UINT uType); +__declspec(dllimport) +int +__stdcall +MessageBoxW( + HWND hWnd, + LPCWSTR lpText, + LPCWSTR lpCaption, + UINT uType); +# 9215 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +int +__stdcall +MessageBoxExA( + HWND hWnd, + LPCSTR lpText, + LPCSTR lpCaption, + UINT uType, + WORD wLanguageId); +__declspec(dllimport) +int +__stdcall +MessageBoxExW( + HWND hWnd, + LPCWSTR lpText, + LPCWSTR lpCaption, + UINT uType, + WORD wLanguageId); +# 9241 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef void (__stdcall *MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo); + +typedef struct tagMSGBOXPARAMSA +{ + UINT cbSize; + HWND hwndOwner; + HINSTANCE hInstance; + LPCSTR lpszText; + LPCSTR lpszCaption; + DWORD dwStyle; + LPCSTR lpszIcon; + DWORD_PTR dwContextHelpId; + MSGBOXCALLBACK lpfnMsgBoxCallback; + DWORD dwLanguageId; +} MSGBOXPARAMSA, *PMSGBOXPARAMSA, *LPMSGBOXPARAMSA; +typedef struct tagMSGBOXPARAMSW +{ + UINT cbSize; + HWND hwndOwner; + HINSTANCE hInstance; + LPCWSTR lpszText; + LPCWSTR lpszCaption; + DWORD dwStyle; + LPCWSTR lpszIcon; + DWORD_PTR dwContextHelpId; + MSGBOXCALLBACK lpfnMsgBoxCallback; + DWORD dwLanguageId; +} MSGBOXPARAMSW, *PMSGBOXPARAMSW, *LPMSGBOXPARAMSW; + + + + + +typedef MSGBOXPARAMSA MSGBOXPARAMS; +typedef PMSGBOXPARAMSA PMSGBOXPARAMS; +typedef LPMSGBOXPARAMSA LPMSGBOXPARAMS; + + +__declspec(dllimport) +int +__stdcall +MessageBoxIndirectA( + const MSGBOXPARAMSA * lpmbp); +__declspec(dllimport) +int +__stdcall +MessageBoxIndirectW( + const MSGBOXPARAMSW * lpmbp); +# 9304 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +MessageBeep( + UINT uType); +# 9325 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +int +__stdcall +ShowCursor( + BOOL bShow); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetCursorPos( + int X, + int Y); + + +__declspec(dllimport) +BOOL +__stdcall +SetPhysicalCursorPos( + int X, + int Y); +# 9359 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HCURSOR +__stdcall +SetCursor( + HCURSOR hCursor); + +__declspec(dllimport) +BOOL +__stdcall +GetCursorPos( + LPPOINT lpPoint); +# 9378 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetPhysicalCursorPos( + LPPOINT lpPoint); + + + +__declspec(dllimport) +BOOL +__stdcall +GetClipCursor( + LPRECT lpRect); + +__declspec(dllimport) +HCURSOR +__stdcall +GetCursor( + void); + +__declspec(dllimport) +BOOL +__stdcall +CreateCaret( + HWND hWnd, + HBITMAP hBitmap, + int nWidth, + int nHeight); + +__declspec(dllimport) +UINT +__stdcall +GetCaretBlinkTime( + void); + +__declspec(dllimport) +BOOL +__stdcall +SetCaretBlinkTime( + UINT uMSeconds); + +__declspec(dllimport) +BOOL +__stdcall +DestroyCaret( + void); + +__declspec(dllimport) +BOOL +__stdcall +HideCaret( + HWND hWnd); + +__declspec(dllimport) +BOOL +__stdcall +ShowCaret( + HWND hWnd); + +__declspec(dllimport) +BOOL +__stdcall +SetCaretPos( + int X, + int Y); + +__declspec(dllimport) +BOOL +__stdcall +GetCaretPos( + LPPOINT lpPoint); + +__declspec(dllimport) +BOOL +__stdcall +ClientToScreen( + HWND hWnd, + LPPOINT lpPoint); + +__declspec(dllimport) +BOOL +__stdcall +ScreenToClient( + HWND hWnd, + LPPOINT lpPoint); + + +__declspec(dllimport) +BOOL +__stdcall +LogicalToPhysicalPoint( + HWND hWnd, + LPPOINT lpPoint); + +__declspec(dllimport) +BOOL +__stdcall +PhysicalToLogicalPoint( + HWND hWnd, + LPPOINT lpPoint); + + + + +__declspec(dllimport) +BOOL +__stdcall +LogicalToPhysicalPointForPerMonitorDPI( + HWND hWnd, + LPPOINT lpPoint); + +__declspec(dllimport) +BOOL +__stdcall +PhysicalToLogicalPointForPerMonitorDPI( + HWND hWnd, + LPPOINT lpPoint); + + + +__declspec(dllimport) +int +__stdcall +MapWindowPoints( + HWND hWndFrom, + HWND hWndTo, + LPPOINT lpPoints, + UINT cPoints); + +__declspec(dllimport) +HWND +__stdcall +WindowFromPoint( + POINT Point); + + +__declspec(dllimport) +HWND +__stdcall +WindowFromPhysicalPoint( + POINT Point); + + +__declspec(dllimport) +HWND +__stdcall +ChildWindowFromPoint( + HWND hWndParent, + POINT Point); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +ClipCursor( + const RECT *lpRect); +# 9550 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HWND +__stdcall +ChildWindowFromPointEx( + HWND hwnd, + POINT pt, + UINT flags); +# 9629 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetSysColor( + int nIndex); + + +__declspec(dllimport) +HBRUSH +__stdcall +GetSysColorBrush( + int nIndex); + + + + +__declspec(dllimport) +BOOL +__stdcall +SetSysColors( + int cElements, + const INT * lpaElements, + const COLORREF * lpaRgbValues); +# 9661 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DrawFocusRect( + HDC hDC, + const RECT * lprc); + +__declspec(dllimport) +int +__stdcall +FillRect( + HDC hDC, + const RECT *lprc, + HBRUSH hbr); + +__declspec(dllimport) +int +__stdcall +FrameRect( + HDC hDC, + const RECT *lprc, + HBRUSH hbr); + +__declspec(dllimport) +BOOL +__stdcall +InvertRect( + HDC hDC, + const RECT *lprc); + +__declspec(dllimport) +BOOL +__stdcall +SetRect( + LPRECT lprc, + int xLeft, + int yTop, + int xRight, + int yBottom); + +__declspec(dllimport) +BOOL +__stdcall +SetRectEmpty( + LPRECT lprc); + +__declspec(dllimport) +BOOL +__stdcall +CopyRect( + LPRECT lprcDst, + const RECT *lprcSrc); + +__declspec(dllimport) +BOOL +__stdcall +InflateRect( + LPRECT lprc, + int dx, + int dy); + +__declspec(dllimport) +BOOL +__stdcall +IntersectRect( + LPRECT lprcDst, + const RECT *lprcSrc1, + const RECT *lprcSrc2); + +__declspec(dllimport) +BOOL +__stdcall +UnionRect( + LPRECT lprcDst, + const RECT *lprcSrc1, + const RECT *lprcSrc2); + +__declspec(dllimport) +BOOL +__stdcall +SubtractRect( + LPRECT lprcDst, + const RECT *lprcSrc1, + const RECT *lprcSrc2); + +__declspec(dllimport) +BOOL +__stdcall +OffsetRect( + LPRECT lprc, + int dx, + int dy); + +__declspec(dllimport) +BOOL +__stdcall +IsRectEmpty( + const RECT *lprc); + +__declspec(dllimport) +BOOL +__stdcall +EqualRect( + const RECT *lprc1, + const RECT *lprc2); + +__declspec(dllimport) +BOOL +__stdcall +PtInRect( + const RECT *lprc, + POINT pt); + + + +__declspec(dllimport) +WORD +__stdcall +GetWindowWord( + HWND hWnd, + int nIndex); + +__declspec(dllimport) +WORD +__stdcall +SetWindowWord( + HWND hWnd, + int nIndex, + WORD wNewWord); +# 9801 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +LONG +__stdcall +GetWindowLongA( + HWND hWnd, + int nIndex); +__declspec(dllimport) +LONG +__stdcall +GetWindowLongW( + HWND hWnd, + int nIndex); + + + + + + +__declspec(dllimport) +LONG +__stdcall +SetWindowLongA( + HWND hWnd, + int nIndex, + LONG dwNewLong); +__declspec(dllimport) +LONG +__stdcall +SetWindowLongW( + HWND hWnd, + int nIndex, + LONG dwNewLong); +# 9841 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +LONG_PTR +__stdcall +GetWindowLongPtrA( + HWND hWnd, + int nIndex); +__declspec(dllimport) +LONG_PTR +__stdcall +GetWindowLongPtrW( + HWND hWnd, + int nIndex); + + + + + + +__declspec(dllimport) +LONG_PTR +__stdcall +SetWindowLongPtrA( + HWND hWnd, + int nIndex, + LONG_PTR dwNewLong); +__declspec(dllimport) +LONG_PTR +__stdcall +SetWindowLongPtrW( + HWND hWnd, + int nIndex, + LONG_PTR dwNewLong); +# 9909 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +WORD +__stdcall +GetClassWord( + HWND hWnd, + int nIndex); + +__declspec(dllimport) +WORD +__stdcall +SetClassWord( + HWND hWnd, + int nIndex, + WORD wNewWord); + +__declspec(dllimport) +DWORD +__stdcall +GetClassLongA( + HWND hWnd, + int nIndex); +__declspec(dllimport) +DWORD +__stdcall +GetClassLongW( + HWND hWnd, + int nIndex); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +SetClassLongA( + HWND hWnd, + int nIndex, + LONG dwNewLong); +__declspec(dllimport) +DWORD +__stdcall +SetClassLongW( + HWND hWnd, + int nIndex, + LONG dwNewLong); +# 9964 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +ULONG_PTR +__stdcall +GetClassLongPtrA( + HWND hWnd, + int nIndex); +__declspec(dllimport) +ULONG_PTR +__stdcall +GetClassLongPtrW( + HWND hWnd, + int nIndex); + + + + + + +__declspec(dllimport) +ULONG_PTR +__stdcall +SetClassLongPtrA( + HWND hWnd, + int nIndex, + LONG_PTR dwNewLong); +__declspec(dllimport) +ULONG_PTR +__stdcall +SetClassLongPtrW( + HWND hWnd, + int nIndex, + LONG_PTR dwNewLong); +# 10025 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetProcessDefaultLayout( + DWORD *pdwDefaultLayout); + +__declspec(dllimport) +BOOL +__stdcall +SetProcessDefaultLayout( + DWORD dwDefaultLayout); + + +__declspec(dllimport) +HWND +__stdcall +GetDesktopWindow( + void); + + +__declspec(dllimport) +HWND +__stdcall +GetParent( + HWND hWnd); + +__declspec(dllimport) +HWND +__stdcall +SetParent( + HWND hWndChild, + HWND hWndNewParent); + +__declspec(dllimport) +BOOL +__stdcall +EnumChildWindows( + HWND hWndParent, + WNDENUMPROC lpEnumFunc, + LPARAM lParam); + + +__declspec(dllimport) +HWND +__stdcall +FindWindowA( + LPCSTR lpClassName, + LPCSTR lpWindowName); +__declspec(dllimport) +HWND +__stdcall +FindWindowW( + LPCWSTR lpClassName, + LPCWSTR lpWindowName); + + + + + + + +__declspec(dllimport) +HWND +__stdcall +FindWindowExA( + HWND hWndParent, + HWND hWndChildAfter, + LPCSTR lpszClass, + LPCSTR lpszWindow); +__declspec(dllimport) +HWND +__stdcall +FindWindowExW( + HWND hWndParent, + HWND hWndChildAfter, + LPCWSTR lpszClass, + LPCWSTR lpszWindow); + + + + + + +__declspec(dllimport) +HWND +__stdcall +GetShellWindow( + void); + + + + +__declspec(dllimport) +BOOL +__stdcall +RegisterShellHookWindow( + HWND hwnd); + +__declspec(dllimport) +BOOL +__stdcall +DeregisterShellHookWindow( + HWND hwnd); + +__declspec(dllimport) +BOOL +__stdcall +EnumWindows( + WNDENUMPROC lpEnumFunc, + LPARAM lParam); + +__declspec(dllimport) +BOOL +__stdcall +EnumThreadWindows( + DWORD dwThreadId, + WNDENUMPROC lpfn, + LPARAM lParam); +# 10153 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +int +__stdcall +GetClassNameA( + HWND hWnd, + LPSTR lpClassName, + int nMaxCount + ); +__declspec(dllimport) +int +__stdcall +GetClassNameW( + HWND hWnd, + LPWSTR lpClassName, + int nMaxCount + ); +# 10203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HWND +__stdcall +GetTopWindow( + HWND hWnd); + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetWindowThreadProcessId( + HWND hWnd, + LPDWORD lpdwProcessId); + + + +__declspec(dllimport) +BOOL +__stdcall +IsGUIThread( + BOOL bConvert); + + + + + + + +__declspec(dllimport) +HWND +__stdcall +GetLastActivePopup( + HWND hWnd); +# 10256 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HWND +__stdcall +GetWindow( + HWND hWnd, + UINT uCmd); + + + + + + +__declspec(dllimport) +HHOOK +__stdcall +SetWindowsHookA( + int nFilterType, + HOOKPROC pfnFilterProc); +__declspec(dllimport) +HHOOK +__stdcall +SetWindowsHookW( + int nFilterType, + HOOKPROC pfnFilterProc); +# 10308 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +UnhookWindowsHook( + int nCode, + HOOKPROC pfnFilterProc); + +__declspec(dllimport) +HHOOK +__stdcall +SetWindowsHookExA( + int idHook, + HOOKPROC lpfn, + HINSTANCE hmod, + DWORD dwThreadId); +__declspec(dllimport) +HHOOK +__stdcall +SetWindowsHookExW( + int idHook, + HOOKPROC lpfn, + HINSTANCE hmod, + DWORD dwThreadId); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +UnhookWindowsHookEx( + HHOOK hhk); + +__declspec(dllimport) +LRESULT +__stdcall +CallNextHookEx( + HHOOK hhk, + int nCode, + WPARAM wParam, + LPARAM lParam); +# 10448 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CheckMenuRadioItem( + HMENU hmenu, + UINT first, + UINT last, + UINT check, + UINT flags); + + + + + +typedef struct { + WORD versionNumber; + WORD offset; +} MENUITEMTEMPLATEHEADER, *PMENUITEMTEMPLATEHEADER; + +typedef struct { + WORD mtOption; + WORD mtID; + WCHAR mtString[1]; +} MENUITEMTEMPLATE, *PMENUITEMTEMPLATE; +# 10528 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HBITMAP +__stdcall +LoadBitmapA( + HINSTANCE hInstance, + LPCSTR lpBitmapName); +__declspec(dllimport) +HBITMAP +__stdcall +LoadBitmapW( + HINSTANCE hInstance, + LPCWSTR lpBitmapName); +# 10552 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HCURSOR +__stdcall +LoadCursorA( + HINSTANCE hInstance, + LPCSTR lpCursorName); +__declspec(dllimport) +HCURSOR +__stdcall +LoadCursorW( + HINSTANCE hInstance, + LPCWSTR lpCursorName); +# 10576 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HCURSOR +__stdcall +LoadCursorFromFileA( + LPCSTR lpFileName); +__declspec(dllimport) +HCURSOR +__stdcall +LoadCursorFromFileW( + LPCWSTR lpFileName); +# 10598 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HCURSOR +__stdcall +CreateCursor( + HINSTANCE hInst, + int xHotSpot, + int yHotSpot, + int nWidth, + int nHeight, + const void *pvANDPlane, + const void *pvXORPlane); + +__declspec(dllimport) +BOOL +__stdcall +DestroyCursor( + HCURSOR hCursor); +# 10667 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetSystemCursor( + HCURSOR hcur, + DWORD id); + +typedef struct _ICONINFO { + BOOL fIcon; + DWORD xHotspot; + DWORD yHotspot; + HBITMAP hbmMask; + HBITMAP hbmColor; +} ICONINFO; +typedef ICONINFO *PICONINFO; + +__declspec(dllimport) +HICON +__stdcall +LoadIconA( + HINSTANCE hInstance, + LPCSTR lpIconName); +__declspec(dllimport) +HICON +__stdcall +LoadIconW( + HINSTANCE hInstance, + LPCWSTR lpIconName); + + + + + + + +__declspec(dllimport) +UINT +__stdcall +PrivateExtractIconsA( + LPCSTR szFileName, + int nIconIndex, + int cxIcon, + int cyIcon, + HICON *phicon, + UINT *piconid, + UINT nIcons, + UINT flags); +__declspec(dllimport) +UINT +__stdcall +PrivateExtractIconsW( + LPCWSTR szFileName, + int nIconIndex, + int cxIcon, + int cyIcon, + HICON *phicon, + UINT *piconid, + UINT nIcons, + UINT flags); + + + + + + +__declspec(dllimport) +HICON +__stdcall +CreateIcon( + HINSTANCE hInstance, + int nWidth, + int nHeight, + BYTE cPlanes, + BYTE cBitsPixel, + const BYTE *lpbANDbits, + const BYTE *lpbXORbits); + +__declspec(dllimport) +BOOL +__stdcall +DestroyIcon( + HICON hIcon); + +__declspec(dllimport) +int +__stdcall +LookupIconIdFromDirectory( + PBYTE presbits, + BOOL fIcon); + + +__declspec(dllimport) +int +__stdcall +LookupIconIdFromDirectoryEx( + PBYTE presbits, + BOOL fIcon, + int cxDesired, + int cyDesired, + UINT Flags); + + +__declspec(dllimport) +HICON +__stdcall +CreateIconFromResource( + PBYTE presbits, + DWORD dwResSize, + BOOL fIcon, + DWORD dwVer); + + +__declspec(dllimport) +HICON +__stdcall +CreateIconFromResourceEx( + PBYTE presbits, + DWORD dwResSize, + BOOL fIcon, + DWORD dwVer, + int cxDesired, + int cyDesired, + UINT Flags); + + +typedef struct tagCURSORSHAPE +{ + int xHotSpot; + int yHotSpot; + int cx; + int cy; + int cbWidth; + BYTE Planes; + BYTE BitsPixel; +} CURSORSHAPE, *LPCURSORSHAPE; +# 10813 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +UINT +__stdcall +SetThreadCursorCreationScaling( + UINT cursorDpi); +# 10845 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HANDLE +__stdcall +LoadImageA( + HINSTANCE hInst, + LPCSTR name, + UINT type, + int cx, + int cy, + UINT fuLoad); +__declspec(dllimport) +HANDLE +__stdcall +LoadImageW( + HINSTANCE hInst, + LPCWSTR name, + UINT type, + int cx, + int cy, + UINT fuLoad); + + + + + + +__declspec(dllimport) +HANDLE +__stdcall +CopyImage( + HANDLE h, + UINT type, + int cx, + int cy, + UINT flags); +# 10890 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) BOOL __stdcall DrawIconEx( + HDC hdc, + int xLeft, + int yTop, + HICON hIcon, + int cxWidth, + int cyWidth, + UINT istepIfAniCur, + HBRUSH hbrFlickerFreeDraw, + UINT diFlags); +# 10909 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HICON +__stdcall +CreateIconIndirect( + PICONINFO piconinfo); + +__declspec(dllimport) +HICON +__stdcall +CopyIcon( + HICON hIcon); + +__declspec(dllimport) +BOOL +__stdcall +GetIconInfo( + HICON hIcon, + PICONINFO piconinfo); + + +typedef struct _ICONINFOEXA { + DWORD cbSize; + BOOL fIcon; + DWORD xHotspot; + DWORD yHotspot; + HBITMAP hbmMask; + HBITMAP hbmColor; + WORD wResID; + CHAR szModName[260]; + CHAR szResName[260]; +} ICONINFOEXA, *PICONINFOEXA; +typedef struct _ICONINFOEXW { + DWORD cbSize; + BOOL fIcon; + DWORD xHotspot; + DWORD yHotspot; + HBITMAP hbmMask; + HBITMAP hbmColor; + WORD wResID; + WCHAR szModName[260]; + WCHAR szResName[260]; +} ICONINFOEXW, *PICONINFOEXW; + + + + +typedef ICONINFOEXA ICONINFOEX; +typedef PICONINFOEXA PICONINFOEX; + + +__declspec(dllimport) +BOOL +__stdcall +GetIconInfoExA( + HICON hicon, + PICONINFOEXA piconinfo); +__declspec(dllimport) +BOOL +__stdcall +GetIconInfoExW( + HICON hicon, + PICONINFOEXW piconinfo); +# 11308 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef enum { + EDIT_CONTROL_FEATURE_ENTERPRISE_DATA_PROTECTION_PASTE_SUPPORT = 0, + EDIT_CONTROL_FEATURE_PASTE_NOTIFICATIONS = 1, +} EDIT_CONTROL_FEATURE; +# 11492 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsDialogMessageA( + HWND hDlg, + LPMSG lpMsg); +__declspec(dllimport) +BOOL +__stdcall +IsDialogMessageW( + HWND hDlg, + LPMSG lpMsg); +# 11512 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +MapDialogRect( + HWND hDlg, + LPRECT lpRect); + +__declspec(dllimport) +int +__stdcall +DlgDirListA( + HWND hDlg, + LPSTR lpPathSpec, + int nIDListBox, + int nIDStaticPath, + UINT uFileType); +__declspec(dllimport) +int +__stdcall +DlgDirListW( + HWND hDlg, + LPWSTR lpPathSpec, + int nIDListBox, + int nIDStaticPath, + UINT uFileType); +# 11563 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +DlgDirSelectExA( + HWND hwndDlg, + LPSTR lpString, + int chCount, + int idListBox); +__declspec(dllimport) +BOOL +__stdcall +DlgDirSelectExW( + HWND hwndDlg, + LPWSTR lpString, + int chCount, + int idListBox); + + + + + + +__declspec(dllimport) +int +__stdcall +DlgDirListComboBoxA( + HWND hDlg, + LPSTR lpPathSpec, + int nIDComboBox, + int nIDStaticPath, + UINT uFiletype); +__declspec(dllimport) +int +__stdcall +DlgDirListComboBoxW( + HWND hDlg, + LPWSTR lpPathSpec, + int nIDComboBox, + int nIDStaticPath, + UINT uFiletype); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +DlgDirSelectComboBoxExA( + HWND hwndDlg, + LPSTR lpString, + int cchOut, + int idComboBox); +__declspec(dllimport) +BOOL +__stdcall +DlgDirSelectComboBoxExW( + HWND hwndDlg, + LPWSTR lpString, + int cchOut, + int idComboBox); +# 11979 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagSCROLLINFO +{ + UINT cbSize; + UINT fMask; + int nMin; + int nMax; + UINT nPage; + int nPos; + int nTrackPos; +} SCROLLINFO, *LPSCROLLINFO; +typedef SCROLLINFO const *LPCSCROLLINFO; + +__declspec(dllimport) +int +__stdcall +SetScrollInfo( + HWND hwnd, + int nBar, + LPCSCROLLINFO lpsi, + BOOL redraw); + +__declspec(dllimport) +BOOL +__stdcall +GetScrollInfo( + HWND hwnd, + int nBar, + LPSCROLLINFO lpsi); +# 12036 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagMDICREATESTRUCTA { + LPCSTR szClass; + LPCSTR szTitle; + HANDLE hOwner; + int x; + int y; + int cx; + int cy; + DWORD style; + LPARAM lParam; +} MDICREATESTRUCTA, *LPMDICREATESTRUCTA; +typedef struct tagMDICREATESTRUCTW { + LPCWSTR szClass; + LPCWSTR szTitle; + HANDLE hOwner; + int x; + int y; + int cx; + int cy; + DWORD style; + LPARAM lParam; +} MDICREATESTRUCTW, *LPMDICREATESTRUCTW; + + + + +typedef MDICREATESTRUCTA MDICREATESTRUCT; +typedef LPMDICREATESTRUCTA LPMDICREATESTRUCT; + + +typedef struct tagCLIENTCREATESTRUCT { + HANDLE hWindowMenu; + UINT idFirstChild; +} CLIENTCREATESTRUCT, *LPCLIENTCREATESTRUCT; + +__declspec(dllimport) +LRESULT +__stdcall +DefFrameProcA( + HWND hWnd, + HWND hWndMDIClient, + UINT uMsg, + WPARAM wParam, + LPARAM lParam); +__declspec(dllimport) +LRESULT +__stdcall +DefFrameProcW( + HWND hWnd, + HWND hWndMDIClient, + UINT uMsg, + WPARAM wParam, + LPARAM lParam); + + + + + + +__declspec(dllimport) + +LRESULT +__stdcall + + + + +DefMDIChildProcA( + HWND hWnd, + UINT uMsg, + WPARAM wParam, + LPARAM lParam); +__declspec(dllimport) + +LRESULT +__stdcall + + + + +DefMDIChildProcW( + HWND hWnd, + UINT uMsg, + WPARAM wParam, + LPARAM lParam); +# 12129 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +TranslateMDISysAccel( + HWND hWndClient, + LPMSG lpMsg); + + + +__declspec(dllimport) +UINT +__stdcall +ArrangeIconicWindows( + HWND hWnd); + +__declspec(dllimport) +HWND +__stdcall +CreateMDIWindowA( + LPCSTR lpClassName, + LPCSTR lpWindowName, + DWORD dwStyle, + int X, + int Y, + int nWidth, + int nHeight, + HWND hWndParent, + HINSTANCE hInstance, + LPARAM lParam); +__declspec(dllimport) +HWND +__stdcall +CreateMDIWindowW( + LPCWSTR lpClassName, + LPCWSTR lpWindowName, + DWORD dwStyle, + int X, + int Y, + int nWidth, + int nHeight, + HWND hWndParent, + HINSTANCE hInstance, + LPARAM lParam); + + + + + + + +__declspec(dllimport) +WORD +__stdcall +TileWindows( + HWND hwndParent, + UINT wHow, + const RECT * lpRect, + UINT cKids, + const HWND * lpKids); + +__declspec(dllimport) +WORD +__stdcall CascadeWindows( + HWND hwndParent, + UINT wHow, + const RECT * lpRect, + UINT cKids, + const HWND * lpKids); +# 12214 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef DWORD HELPPOLY; +typedef struct tagMULTIKEYHELPA { + + DWORD mkSize; + + + + CHAR mkKeylist; + CHAR szKeyphrase[1]; +} MULTIKEYHELPA, *PMULTIKEYHELPA, *LPMULTIKEYHELPA; +typedef struct tagMULTIKEYHELPW { + + DWORD mkSize; + + + + WCHAR mkKeylist; + WCHAR szKeyphrase[1]; +} MULTIKEYHELPW, *PMULTIKEYHELPW, *LPMULTIKEYHELPW; + + + + + +typedef MULTIKEYHELPA MULTIKEYHELP; +typedef PMULTIKEYHELPA PMULTIKEYHELP; +typedef LPMULTIKEYHELPA LPMULTIKEYHELP; + + +typedef struct tagHELPWININFOA { + int wStructSize; + int x; + int y; + int dx; + int dy; + int wMax; + CHAR rgchMember[2]; +} HELPWININFOA, *PHELPWININFOA, *LPHELPWININFOA; +typedef struct tagHELPWININFOW { + int wStructSize; + int x; + int y; + int dx; + int dy; + int wMax; + WCHAR rgchMember[2]; +} HELPWININFOW, *PHELPWININFOW, *LPHELPWININFOW; + + + + + +typedef HELPWININFOA HELPWININFO; +typedef PHELPWININFOA PHELPWININFO; +typedef LPHELPWININFOA LPHELPWININFO; +# 12311 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +WinHelpA( + HWND hWndMain, + LPCSTR lpszHelp, + UINT uCommand, + ULONG_PTR dwData); +__declspec(dllimport) +BOOL +__stdcall +WinHelpW( + HWND hWndMain, + LPCWSTR lpszHelp, + UINT uCommand, + ULONG_PTR dwData); +# 12356 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetGuiResources( + HANDLE hProcess, + DWORD uiFlags); +# 12553 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagTouchPredictionParameters +{ + UINT cbSize; + UINT dwLatency; + UINT dwSampleTime; + UINT bUseHWTimeStamp; +} TOUCHPREDICTIONPARAMETERS, *PTOUCHPREDICTIONPARAMETERS; +# 12767 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef enum tagHANDEDNESS { + HANDEDNESS_LEFT = 0, + HANDEDNESS_RIGHT +} HANDEDNESS, *PHANDEDNESS; +# 12790 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagNONCLIENTMETRICSA +{ + UINT cbSize; + int iBorderWidth; + int iScrollWidth; + int iScrollHeight; + int iCaptionWidth; + int iCaptionHeight; + LOGFONTA lfCaptionFont; + int iSmCaptionWidth; + int iSmCaptionHeight; + LOGFONTA lfSmCaptionFont; + int iMenuWidth; + int iMenuHeight; + LOGFONTA lfMenuFont; + LOGFONTA lfStatusFont; + LOGFONTA lfMessageFont; + + int iPaddedBorderWidth; + +} NONCLIENTMETRICSA, *PNONCLIENTMETRICSA, * LPNONCLIENTMETRICSA; +typedef struct tagNONCLIENTMETRICSW +{ + UINT cbSize; + int iBorderWidth; + int iScrollWidth; + int iScrollHeight; + int iCaptionWidth; + int iCaptionHeight; + LOGFONTW lfCaptionFont; + int iSmCaptionWidth; + int iSmCaptionHeight; + LOGFONTW lfSmCaptionFont; + int iMenuWidth; + int iMenuHeight; + LOGFONTW lfMenuFont; + LOGFONTW lfStatusFont; + LOGFONTW lfMessageFont; + + int iPaddedBorderWidth; + +} NONCLIENTMETRICSW, *PNONCLIENTMETRICSW, * LPNONCLIENTMETRICSW; + + + + + +typedef NONCLIENTMETRICSA NONCLIENTMETRICS; +typedef PNONCLIENTMETRICSA PNONCLIENTMETRICS; +typedef LPNONCLIENTMETRICSA LPNONCLIENTMETRICS; +# 12865 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagMINIMIZEDMETRICS +{ + UINT cbSize; + int iWidth; + int iHorzGap; + int iVertGap; + int iArrange; +} MINIMIZEDMETRICS, *PMINIMIZEDMETRICS, *LPMINIMIZEDMETRICS; + + + +typedef struct tagICONMETRICSA +{ + UINT cbSize; + int iHorzSpacing; + int iVertSpacing; + int iTitleWrap; + LOGFONTA lfFont; +} ICONMETRICSA, *PICONMETRICSA, *LPICONMETRICSA; +typedef struct tagICONMETRICSW +{ + UINT cbSize; + int iHorzSpacing; + int iVertSpacing; + int iTitleWrap; + LOGFONTW lfFont; +} ICONMETRICSW, *PICONMETRICSW, *LPICONMETRICSW; + + + + + +typedef ICONMETRICSA ICONMETRICS; +typedef PICONMETRICSA PICONMETRICS; +typedef LPICONMETRICSA LPICONMETRICS; + + + + +typedef struct tagANIMATIONINFO +{ + UINT cbSize; + int iMinAnimate; +} ANIMATIONINFO, *LPANIMATIONINFO; + +typedef struct tagSERIALKEYSA +{ + UINT cbSize; + DWORD dwFlags; + LPSTR lpszActivePort; + LPSTR lpszPort; + UINT iBaudRate; + UINT iPortState; + UINT iActive; +} SERIALKEYSA, *LPSERIALKEYSA; +typedef struct tagSERIALKEYSW +{ + UINT cbSize; + DWORD dwFlags; + LPWSTR lpszActivePort; + LPWSTR lpszPort; + UINT iBaudRate; + UINT iPortState; + UINT iActive; +} SERIALKEYSW, *LPSERIALKEYSW; + + + + +typedef SERIALKEYSA SERIALKEYS; +typedef LPSERIALKEYSA LPSERIALKEYS; +# 12944 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagHIGHCONTRASTA +{ + UINT cbSize; + DWORD dwFlags; + LPSTR lpszDefaultScheme; +} HIGHCONTRASTA, *LPHIGHCONTRASTA; +typedef struct tagHIGHCONTRASTW +{ + UINT cbSize; + DWORD dwFlags; + LPWSTR lpszDefaultScheme; +} HIGHCONTRASTW, *LPHIGHCONTRASTW; + + + + +typedef HIGHCONTRASTA HIGHCONTRAST; +typedef LPHIGHCONTRASTA LPHIGHCONTRAST; +# 12994 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\tvout.h" 1 3 +# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\tvout.h" 3 +typedef struct _VIDEOPARAMETERS { + GUID Guid; + ULONG dwOffset; + ULONG dwCommand; + ULONG dwFlags; + ULONG dwMode; + ULONG dwTVStandard; + ULONG dwAvailableModes; + ULONG dwAvailableTVStandard; + ULONG dwFlickerFilter; + ULONG dwOverScanX; + ULONG dwOverScanY; + ULONG dwMaxUnscaledX; + ULONG dwMaxUnscaledY; + ULONG dwPositionX; + ULONG dwPositionY; + ULONG dwBrightness; + ULONG dwContrast; + ULONG dwCPType; + ULONG dwCPCommand; + ULONG dwCPStandard; + ULONG dwCPKey; + ULONG bCP_APSTriggerBits; + UCHAR bOEMCopyProtection[256]; +} VIDEOPARAMETERS, *PVIDEOPARAMETERS, *LPVIDEOPARAMETERS; +# 12995 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 2 3 +# 13014 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +LONG +__stdcall +ChangeDisplaySettingsA( + DEVMODEA* lpDevMode, + DWORD dwFlags); +__declspec(dllimport) +LONG +__stdcall +ChangeDisplaySettingsW( + DEVMODEW* lpDevMode, + DWORD dwFlags); + + + + + + +__declspec(dllimport) +LONG +__stdcall +ChangeDisplaySettingsExA( + LPCSTR lpszDeviceName, + DEVMODEA* lpDevMode, + HWND hwnd, + DWORD dwflags, + LPVOID lParam); +__declspec(dllimport) +LONG +__stdcall +ChangeDisplaySettingsExW( + LPCWSTR lpszDeviceName, + DEVMODEW* lpDevMode, + HWND hwnd, + DWORD dwflags, + LPVOID lParam); +# 13060 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumDisplaySettingsA( + LPCSTR lpszDeviceName, + DWORD iModeNum, + DEVMODEA* lpDevMode); +__declspec(dllimport) +BOOL +__stdcall +EnumDisplaySettingsW( + LPCWSTR lpszDeviceName, + DWORD iModeNum, + DEVMODEW* lpDevMode); +# 13082 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumDisplaySettingsExA( + LPCSTR lpszDeviceName, + DWORD iModeNum, + DEVMODEA* lpDevMode, + DWORD dwFlags); +__declspec(dllimport) +BOOL +__stdcall +EnumDisplaySettingsExW( + LPCWSTR lpszDeviceName, + DWORD iModeNum, + DEVMODEW* lpDevMode, + DWORD dwFlags); +# 13108 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumDisplayDevicesA( + LPCSTR lpDevice, + DWORD iDevNum, + PDISPLAY_DEVICEA lpDisplayDevice, + DWORD dwFlags); +__declspec(dllimport) +BOOL +__stdcall +EnumDisplayDevicesW( + LPCWSTR lpDevice, + DWORD iDevNum, + PDISPLAY_DEVICEW lpDisplayDevice, + DWORD dwFlags); +# 13137 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +LONG +__stdcall +GetDisplayConfigBufferSizes( + UINT32 flags, + UINT32* numPathArrayElements, + UINT32* numModeInfoArrayElements); + +__declspec(dllimport) +LONG +__stdcall +SetDisplayConfig( + UINT32 numPathArrayElements, + DISPLAYCONFIG_PATH_INFO* pathArray, + UINT32 numModeInfoArrayElements, + DISPLAYCONFIG_MODE_INFO* modeInfoArray, + UINT32 flags); + +__declspec(dllimport) + LONG +__stdcall +QueryDisplayConfig( + UINT32 flags, + UINT32* numPathArrayElements, + DISPLAYCONFIG_PATH_INFO* pathArray, + UINT32* numModeInfoArrayElements, + DISPLAYCONFIG_MODE_INFO* modeInfoArray, + + + DISPLAYCONFIG_TOPOLOGY_ID* currentTopologyId); + +__declspec(dllimport) +LONG +__stdcall +DisplayConfigGetDeviceInfo( + DISPLAYCONFIG_DEVICE_INFO_HEADER* requestPacket); + +__declspec(dllimport) +LONG +__stdcall +DisplayConfigSetDeviceInfo( + DISPLAYCONFIG_DEVICE_INFO_HEADER* setPacket); +# 13187 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +SystemParametersInfoA( + UINT uiAction, + UINT uiParam, + PVOID pvParam, + UINT fWinIni); +__declspec(dllimport) + +BOOL +__stdcall +SystemParametersInfoW( + UINT uiAction, + UINT uiParam, + PVOID pvParam, + UINT fWinIni); +# 13213 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +SystemParametersInfoForDpi( + UINT uiAction, + UINT uiParam, + PVOID pvParam, + UINT fWinIni, + UINT dpi); +# 13237 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagFILTERKEYS +{ + UINT cbSize; + DWORD dwFlags; + DWORD iWaitMSec; + DWORD iDelayMSec; + DWORD iRepeatMSec; + DWORD iBounceMSec; +} FILTERKEYS, *LPFILTERKEYS; +# 13264 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagSTICKYKEYS +{ + UINT cbSize; + DWORD dwFlags; +} STICKYKEYS, *LPSTICKYKEYS; +# 13307 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagMOUSEKEYS +{ + UINT cbSize; + DWORD dwFlags; + DWORD iMaxSpeed; + DWORD iTimeToMaxSpeed; + DWORD iCtrlSpeed; + DWORD dwReserved1; + DWORD dwReserved2; +} MOUSEKEYS, *LPMOUSEKEYS; +# 13343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagACCESSTIMEOUT +{ + UINT cbSize; + DWORD dwFlags; + DWORD iTimeOutMSec; +} ACCESSTIMEOUT, *LPACCESSTIMEOUT; +# 13379 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagSOUNDSENTRYA +{ + UINT cbSize; + DWORD dwFlags; + DWORD iFSTextEffect; + DWORD iFSTextEffectMSec; + DWORD iFSTextEffectColorBits; + DWORD iFSGrafEffect; + DWORD iFSGrafEffectMSec; + DWORD iFSGrafEffectColor; + DWORD iWindowsEffect; + DWORD iWindowsEffectMSec; + LPSTR lpszWindowsEffectDLL; + DWORD iWindowsEffectOrdinal; +} SOUNDSENTRYA, *LPSOUNDSENTRYA; +typedef struct tagSOUNDSENTRYW +{ + UINT cbSize; + DWORD dwFlags; + DWORD iFSTextEffect; + DWORD iFSTextEffectMSec; + DWORD iFSTextEffectColorBits; + DWORD iFSGrafEffect; + DWORD iFSGrafEffectMSec; + DWORD iFSGrafEffectColor; + DWORD iWindowsEffect; + DWORD iWindowsEffectMSec; + LPWSTR lpszWindowsEffectDLL; + DWORD iWindowsEffectOrdinal; +} SOUNDSENTRYW, *LPSOUNDSENTRYW; + + + + +typedef SOUNDSENTRYA SOUNDSENTRY; +typedef LPSOUNDSENTRYA LPSOUNDSENTRY; +# 13430 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SoundSentry(void); + + + + + + +typedef struct tagTOGGLEKEYS +{ + UINT cbSize; + DWORD dwFlags; +} TOGGLEKEYS, *LPTOGGLEKEYS; +# 13463 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagAUDIODESCRIPTION { + UINT cbSize; + BOOL Enabled; + LCID Locale; +} AUDIODESCRIPTION, *LPAUDIODESCRIPTION; + + + + + + + +__declspec(dllimport) +void +__stdcall +SetDebugErrorLevel( + DWORD dwLevel); +# 13495 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +void +__stdcall +SetLastErrorEx( + DWORD dwErrCode, + DWORD dwType); + +__declspec(dllimport) +int +__stdcall +InternalGetWindowText( + HWND hWnd, + LPWSTR pString, + int cchMaxCount); +# 13521 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CancelShutdown( + void); +# 13544 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HMONITOR +__stdcall +MonitorFromPoint( + POINT pt, + DWORD dwFlags); + +__declspec(dllimport) +HMONITOR +__stdcall +MonitorFromRect( + LPCRECT lprc, + DWORD dwFlags); + +__declspec(dllimport) +HMONITOR +__stdcall +MonitorFromWindow( + HWND hwnd, + DWORD dwFlags); +# 13577 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagMONITORINFO +{ + DWORD cbSize; + RECT rcMonitor; + RECT rcWork; + DWORD dwFlags; +} MONITORINFO, *LPMONITORINFO; +# 13602 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagMONITORINFOEXA +{ + MONITORINFO ; + CHAR szDevice[32]; +} MONITORINFOEXA, *LPMONITORINFOEXA; +typedef struct tagMONITORINFOEXW +{ + MONITORINFO ; + WCHAR szDevice[32]; +} MONITORINFOEXW, *LPMONITORINFOEXW; + + + + +typedef MONITORINFOEXA MONITORINFOEX; +typedef LPMONITORINFOEXA LPMONITORINFOEX; + + + +__declspec(dllimport) +BOOL +__stdcall +GetMonitorInfoA( + HMONITOR hMonitor, + LPMONITORINFO lpmi); +__declspec(dllimport) +BOOL +__stdcall +GetMonitorInfoW( + HMONITOR hMonitor, + LPMONITORINFO lpmi); + + + + + + +typedef BOOL (__stdcall* MONITORENUMPROC)(HMONITOR, HDC, LPRECT, LPARAM); + +__declspec(dllimport) +BOOL +__stdcall +EnumDisplayMonitors( + HDC hdc, + LPCRECT lprcClip, + MONITORENUMPROC lpfnEnum, + LPARAM dwData); +# 13662 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +void +__stdcall +NotifyWinEvent( + DWORD event, + HWND hwnd, + LONG idObject, + LONG idChild); + +typedef void (__stdcall* WINEVENTPROC)( + HWINEVENTHOOK hWinEventHook, + DWORD event, + HWND hwnd, + LONG idObject, + LONG idChild, + DWORD idEventThread, + DWORD dwmsEventTime); + +__declspec(dllimport) +HWINEVENTHOOK +__stdcall +SetWinEventHook( + DWORD eventMin, + DWORD eventMax, + HMODULE hmodWinEventProc, + WINEVENTPROC pfnWinEventProc, + DWORD idProcess, + DWORD idThread, + DWORD dwFlags); + + +__declspec(dllimport) +BOOL +__stdcall +IsWinEventHookInstalled( + DWORD event); +# 13714 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +UnhookWinEvent( + HWINEVENTHOOK hWinEventHook); +# 14332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagGUITHREADINFO +{ + DWORD cbSize; + DWORD flags; + HWND hwndActive; + HWND hwndFocus; + HWND hwndCapture; + HWND hwndMenuOwner; + HWND hwndMoveSize; + HWND hwndCaret; + RECT rcCaret; +} GUITHREADINFO, *PGUITHREADINFO, * LPGUITHREADINFO; +# 14364 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetGUIThreadInfo( + DWORD idThread, + PGUITHREADINFO pgui); + +__declspec(dllimport) +BOOL +__stdcall +BlockInput( + BOOL fBlockIt); + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetProcessDPIAware( + void); + +__declspec(dllimport) +BOOL +__stdcall +IsProcessDPIAware( + void); + + + + +__declspec(dllimport) +DPI_AWARENESS_CONTEXT +__stdcall +SetThreadDpiAwarenessContext( + DPI_AWARENESS_CONTEXT dpiContext); + +__declspec(dllimport) +DPI_AWARENESS_CONTEXT +__stdcall +GetThreadDpiAwarenessContext( + void); + +__declspec(dllimport) +DPI_AWARENESS_CONTEXT +__stdcall +GetWindowDpiAwarenessContext( + HWND hwnd); + +__declspec(dllimport) +DPI_AWARENESS +__stdcall +GetAwarenessFromDpiAwarenessContext( + DPI_AWARENESS_CONTEXT value); + +__declspec(dllimport) +UINT +__stdcall +GetDpiFromDpiAwarenessContext( + DPI_AWARENESS_CONTEXT value); + +__declspec(dllimport) +BOOL +__stdcall +AreDpiAwarenessContextsEqual( + DPI_AWARENESS_CONTEXT dpiContextA, + DPI_AWARENESS_CONTEXT dpiContextB); + +__declspec(dllimport) +BOOL +__stdcall +IsValidDpiAwarenessContext( + DPI_AWARENESS_CONTEXT value); + +__declspec(dllimport) +UINT +__stdcall +GetDpiForWindow( + HWND hwnd); + +__declspec(dllimport) +UINT +__stdcall +GetDpiForSystem( + void); + +__declspec(dllimport) +UINT +__stdcall +GetSystemDpiForProcess( + HANDLE hProcess); + +__declspec(dllimport) +BOOL +__stdcall +EnableNonClientDpiScaling( + HWND hwnd); + +__declspec(dllimport) +BOOL +__stdcall +InheritWindowMonitor( + HWND hwnd, + HWND hwndInherit); + + + + +__declspec(dllimport) +BOOL +__stdcall +SetProcessDpiAwarenessContext( + DPI_AWARENESS_CONTEXT value); + + + + + + +__declspec(dllimport) +DPI_AWARENESS_CONTEXT +__stdcall +GetDpiAwarenessContextForProcess( + HANDLE hProcess); + + + + + +__declspec(dllimport) +DPI_HOSTING_BEHAVIOR +__stdcall +SetThreadDpiHostingBehavior( + DPI_HOSTING_BEHAVIOR value); + +__declspec(dllimport) +DPI_HOSTING_BEHAVIOR +__stdcall +GetThreadDpiHostingBehavior(void); + +__declspec(dllimport) +DPI_HOSTING_BEHAVIOR +__stdcall +GetWindowDpiHostingBehavior( + HWND hwnd); + + + + +__declspec(dllimport) +UINT +__stdcall +GetWindowModuleFileNameA( + HWND hwnd, + LPSTR pszFileName, + UINT cchFileNameMax); +__declspec(dllimport) +UINT +__stdcall +GetWindowModuleFileNameW( + HWND hwnd, + LPWSTR pszFileName, + UINT cchFileNameMax); +# 14581 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagCURSORINFO +{ + DWORD cbSize; + DWORD flags; + HCURSOR hCursor; + POINT ptScreenPos; +} CURSORINFO, *PCURSORINFO, *LPCURSORINFO; + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetCursorInfo( + PCURSORINFO pci); +# 14609 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagWINDOWINFO +{ + DWORD cbSize; + RECT rcWindow; + RECT rcClient; + DWORD dwStyle; + DWORD dwExStyle; + DWORD dwWindowStatus; + UINT cxWindowBorders; + UINT cyWindowBorders; + ATOM atomWindowType; + WORD wCreatorVersion; +} WINDOWINFO, *PWINDOWINFO, *LPWINDOWINFO; + + + +__declspec(dllimport) +BOOL +__stdcall +GetWindowInfo( + HWND hwnd, + PWINDOWINFO pwi); + + + + +typedef struct tagTITLEBARINFO +{ + DWORD cbSize; + RECT rcTitleBar; + DWORD rgstate[5 + 1]; +} TITLEBARINFO, *PTITLEBARINFO, *LPTITLEBARINFO; + +__declspec(dllimport) +BOOL +__stdcall +GetTitleBarInfo( + HWND hwnd, + PTITLEBARINFO pti); + + +typedef struct tagTITLEBARINFOEX +{ + DWORD cbSize; + RECT rcTitleBar; + DWORD rgstate[5 + 1]; + RECT rgrect[5 + 1]; +} TITLEBARINFOEX, *PTITLEBARINFOEX, *LPTITLEBARINFOEX; + + + + + +typedef struct tagMENUBARINFO +{ + DWORD cbSize; + RECT rcBar; + HMENU hMenu; + HWND hwndMenu; + BOOL fBarFocused:1; + BOOL fFocused:1; + BOOL fUnused:30; +} MENUBARINFO, *PMENUBARINFO, *LPMENUBARINFO; + +__declspec(dllimport) +BOOL +__stdcall +GetMenuBarInfo( + HWND hwnd, + LONG idObject, + LONG idItem, + PMENUBARINFO pmbi); + + + + +typedef struct tagSCROLLBARINFO +{ + DWORD cbSize; + RECT rcScrollBar; + int dxyLineButton; + int xyThumbTop; + int xyThumbBottom; + int reserved; + DWORD rgstate[5 + 1]; +} SCROLLBARINFO, *PSCROLLBARINFO, *LPSCROLLBARINFO; + +__declspec(dllimport) +BOOL +__stdcall +GetScrollBarInfo( + HWND hwnd, + LONG idObject, + PSCROLLBARINFO psbi); + + + + +typedef struct tagCOMBOBOXINFO +{ + DWORD cbSize; + RECT rcItem; + RECT rcButton; + DWORD stateButton; + HWND hwndCombo; + HWND hwndItem; + HWND hwndList; +} COMBOBOXINFO, *PCOMBOBOXINFO, *LPCOMBOBOXINFO; + +__declspec(dllimport) +BOOL +__stdcall +GetComboBoxInfo( + HWND hwndCombo, + PCOMBOBOXINFO pcbi); +# 14738 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HWND +__stdcall +GetAncestor( + HWND hwnd, + UINT gaFlags); +# 14752 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +HWND +__stdcall +RealChildWindowFromPoint( + HWND hwndParent, + POINT ptParentClientCoords); + + + + + + +__declspec(dllimport) +UINT +__stdcall +RealGetWindowClassA( + HWND hwnd, + LPSTR ptszClassName, + UINT cchClassNameMax); + + + + +__declspec(dllimport) +UINT +__stdcall +RealGetWindowClassW( + HWND hwnd, + LPWSTR ptszClassName, + UINT cchClassNameMax); +# 14791 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagALTTABINFO +{ + DWORD cbSize; + int cItems; + int cColumns; + int cRows; + int iColFocus; + int iRowFocus; + int cxItem; + int cyItem; + POINT ptStart; +} ALTTABINFO, *PALTTABINFO, *LPALTTABINFO; + +__declspec(dllimport) +BOOL +__stdcall +GetAltTabInfoA( + HWND hwnd, + int iItem, + PALTTABINFO pati, + LPSTR pszItemText, + UINT cchItemText); +__declspec(dllimport) +BOOL +__stdcall +GetAltTabInfoW( + HWND hwnd, + int iItem, + PALTTABINFO pati, + LPWSTR pszItemText, + UINT cchItemText); +# 14832 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetListBoxInfo( + HWND hwnd); +# 14849 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +LockWorkStation( + void); + + + + +__declspec(dllimport) +BOOL +__stdcall +UserHandleGrantAccess( + HANDLE hUserHandle, + HANDLE hJob, + BOOL bGrant); +# 14880 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +struct HRAWINPUT__{int unused;}; typedef struct HRAWINPUT__ *HRAWINPUT; +# 14913 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagRAWINPUTHEADER { + DWORD dwType; + DWORD dwSize; + HANDLE hDevice; + WPARAM wParam; +} RAWINPUTHEADER, *PRAWINPUTHEADER, *LPRAWINPUTHEADER; +# 14936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +#pragma warning(push) + +#pragma warning(disable: 4201) + + + + +typedef struct tagRAWMOUSE { + + + + USHORT usFlags; + + + + + union { + ULONG ulButtons; + struct { + USHORT usButtonFlags; + USHORT usButtonData; + } ; + } ; + + + + + + ULONG ulRawButtons; + + + + + LONG lLastX; + + + + + LONG lLastY; + + + + + ULONG ulExtraInformation; + +} RAWMOUSE, *PRAWMOUSE, *LPRAWMOUSE; + + +#pragma warning(pop) +# 15039 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagRAWKEYBOARD { + + + + USHORT MakeCode; + + + + + + USHORT Flags; + + USHORT Reserved; + + + + + USHORT VKey; + UINT Message; + + + + + ULONG ExtraInformation; + + +} RAWKEYBOARD, *PRAWKEYBOARD, *LPRAWKEYBOARD; +# 15092 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagRAWHID { + DWORD dwSizeHid; + DWORD dwCount; + BYTE bRawData[1]; +} RAWHID, *PRAWHID, *LPRAWHID; +# 15108 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagRAWINPUT { + RAWINPUTHEADER header; + union { + RAWMOUSE mouse; + RAWKEYBOARD keyboard; + RAWHID hid; + } data; +} RAWINPUT, *PRAWINPUT, *LPRAWINPUT; +# 15138 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +UINT +__stdcall +GetRawInputData( + HRAWINPUT hRawInput, + UINT uiCommand, + LPVOID pData, + PUINT pcbSize, + UINT cbSizeHeader); +# 15161 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagRID_DEVICE_INFO_MOUSE { + DWORD dwId; + DWORD dwNumberOfButtons; + DWORD dwSampleRate; + BOOL fHasHorizontalWheel; +} RID_DEVICE_INFO_MOUSE, *PRID_DEVICE_INFO_MOUSE; + +typedef struct tagRID_DEVICE_INFO_KEYBOARD { + DWORD dwType; + DWORD dwSubType; + DWORD dwKeyboardMode; + DWORD dwNumberOfFunctionKeys; + DWORD dwNumberOfIndicators; + DWORD dwNumberOfKeysTotal; +} RID_DEVICE_INFO_KEYBOARD, *PRID_DEVICE_INFO_KEYBOARD; + +typedef struct tagRID_DEVICE_INFO_HID { + DWORD dwVendorId; + DWORD dwProductId; + DWORD dwVersionNumber; + + + + + USHORT usUsagePage; + USHORT usUsage; +} RID_DEVICE_INFO_HID, *PRID_DEVICE_INFO_HID; + +typedef struct tagRID_DEVICE_INFO { + DWORD cbSize; + DWORD dwType; + union { + RID_DEVICE_INFO_MOUSE mouse; + RID_DEVICE_INFO_KEYBOARD keyboard; + RID_DEVICE_INFO_HID hid; + } ; +} RID_DEVICE_INFO, *PRID_DEVICE_INFO, *LPRID_DEVICE_INFO; + +__declspec(dllimport) +UINT +__stdcall +GetRawInputDeviceInfoA( + HANDLE hDevice, + UINT uiCommand, + LPVOID pData, + PUINT pcbSize); +__declspec(dllimport) +UINT +__stdcall +GetRawInputDeviceInfoW( + HANDLE hDevice, + UINT uiCommand, + LPVOID pData, + PUINT pcbSize); +# 15225 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +UINT +__stdcall +GetRawInputBuffer( + PRAWINPUT pData, + PUINT pcbSize, + UINT cbSizeHeader); + + + + +typedef struct tagRAWINPUTDEVICE { + USHORT usUsagePage; + USHORT usUsage; + DWORD dwFlags; + HWND hwndTarget; +} RAWINPUTDEVICE, *PRAWINPUTDEVICE, *LPRAWINPUTDEVICE; + +typedef const RAWINPUTDEVICE* PCRAWINPUTDEVICE; +# 15281 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +RegisterRawInputDevices( + PCRAWINPUTDEVICE pRawInputDevices, + UINT uiNumDevices, + UINT cbSize); + +__declspec(dllimport) +UINT +__stdcall +GetRegisteredRawInputDevices( + PRAWINPUTDEVICE pRawInputDevices, + PUINT puiNumDevices, + UINT cbSize); + + +typedef struct tagRAWINPUTDEVICELIST { + HANDLE hDevice; + DWORD dwType; +} RAWINPUTDEVICELIST, *PRAWINPUTDEVICELIST; + +__declspec(dllimport) +UINT +__stdcall +GetRawInputDeviceList( + PRAWINPUTDEVICELIST pRawInputDeviceList, + PUINT puiNumDevices, + UINT cbSize); + +__declspec(dllimport) +LRESULT +__stdcall +DefRawInputProc( + PRAWINPUT* paRawInput, + INT nInput, + UINT cbSizeHeader); +# 15347 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef enum tagPOINTER_DEVICE_TYPE { + POINTER_DEVICE_TYPE_INTEGRATED_PEN = 0x00000001, + POINTER_DEVICE_TYPE_EXTERNAL_PEN = 0x00000002, + POINTER_DEVICE_TYPE_TOUCH = 0x00000003, + + POINTER_DEVICE_TYPE_TOUCH_PAD = 0x00000004, + + POINTER_DEVICE_TYPE_MAX = 0xFFFFFFFF +} POINTER_DEVICE_TYPE; + +typedef struct tagPOINTER_DEVICE_INFO { + DWORD displayOrientation; + HANDLE device; + POINTER_DEVICE_TYPE pointerDeviceType; + HMONITOR monitor; + ULONG startingCursorId; + USHORT maxActiveContacts; + WCHAR productString[520]; +} POINTER_DEVICE_INFO; + +typedef struct tagPOINTER_DEVICE_PROPERTY { + INT32 logicalMin; + INT32 logicalMax; + INT32 physicalMin; + INT32 physicalMax; + UINT32 unit; + UINT32 unitExponent; + USHORT usagePageId; + USHORT usageId; +} POINTER_DEVICE_PROPERTY; + +typedef enum tagPOINTER_DEVICE_CURSOR_TYPE { + POINTER_DEVICE_CURSOR_TYPE_UNKNOWN = 0x00000000, + POINTER_DEVICE_CURSOR_TYPE_TIP = 0x00000001, + POINTER_DEVICE_CURSOR_TYPE_ERASER = 0x00000002, + POINTER_DEVICE_CURSOR_TYPE_MAX = 0xFFFFFFFF +} POINTER_DEVICE_CURSOR_TYPE; + +typedef struct tagPOINTER_DEVICE_CURSOR_INFO { + UINT32 cursorId; + POINTER_DEVICE_CURSOR_TYPE cursor; +} POINTER_DEVICE_CURSOR_INFO; + +__declspec(dllimport) +BOOL +__stdcall +GetPointerDevices( + UINT32* deviceCount, + POINTER_DEVICE_INFO *pointerDevices); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerDevice( + HANDLE device, + POINTER_DEVICE_INFO *pointerDevice); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerDeviceProperties( + HANDLE device, + UINT32* propertyCount, + POINTER_DEVICE_PROPERTY *pointerProperties); + +__declspec(dllimport) +BOOL +__stdcall +RegisterPointerDeviceNotifications( + HWND window, + BOOL notifyRange); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerDeviceRects( + HANDLE device, + RECT* pointerDeviceRect, + RECT* displayRect); + +__declspec(dllimport) +BOOL +__stdcall +GetPointerDeviceCursors( + HANDLE device, + UINT32* cursorCount, + POINTER_DEVICE_CURSOR_INFO *deviceCursors); + +__declspec(dllimport) +BOOL +__stdcall +GetRawPointerDeviceData( + UINT32 pointerId, + UINT32 historyCount, + UINT32 propertiesCount, + POINTER_DEVICE_PROPERTY* pProperties, + LONG* pValues); +# 15464 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +ChangeWindowMessageFilter( + UINT message, + DWORD dwFlag); +# 15489 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagCHANGEFILTERSTRUCT { + DWORD cbSize; + DWORD ExtStatus; +} CHANGEFILTERSTRUCT, *PCHANGEFILTERSTRUCT; +# 15507 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +ChangeWindowMessageFilterEx( + HWND hwnd, + UINT message, + DWORD action, + PCHANGEFILTERSTRUCT pChangeFilterStruct); +# 15536 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +struct HGESTUREINFO__{int unused;}; typedef struct HGESTUREINFO__ *HGESTUREINFO; +# 15571 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagGESTUREINFO { + UINT cbSize; + DWORD dwFlags; + DWORD dwID; + HWND hwndTarget; + POINTS ptsLocation; + DWORD dwInstanceID; + DWORD dwSequenceID; + ULONGLONG ullArguments; + UINT cbExtraArgs; +} GESTUREINFO, *PGESTUREINFO; +typedef GESTUREINFO const * PCGESTUREINFO; +# 15592 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagGESTURENOTIFYSTRUCT { + UINT cbSize; + DWORD dwFlags; + HWND hwndTarget; + POINTS ptsLocation; + DWORD dwInstanceID; +} GESTURENOTIFYSTRUCT, *PGESTURENOTIFYSTRUCT; +# 15612 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetGestureInfo( + HGESTUREINFO hGestureInfo, + PGESTUREINFO pGestureInfo); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetGestureExtraArgs( + HGESTUREINFO hGestureInfo, + UINT cbExtraArgs, + PBYTE pExtraArgs); +# 15643 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CloseGestureInfoHandle( + HGESTUREINFO hGestureInfo); +# 15657 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef struct tagGESTURECONFIG { + DWORD dwID; + DWORD dwWant; + DWORD dwBlock; +} GESTURECONFIG, *PGESTURECONFIG; +# 15711 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetGestureConfig( + HWND hwnd, + DWORD dwReserved, + UINT cIDs, + PGESTURECONFIG pGestureConfig, + + UINT cbSize); + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetGestureConfig( + HWND hwnd, + DWORD dwReserved, + DWORD dwFlags, + PUINT pcIDs, + + PGESTURECONFIG pGestureConfig, + + UINT cbSize); +# 15766 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +ShutdownBlockReasonCreate( + HWND hWnd, + LPCWSTR pwszReason); + +__declspec(dllimport) +BOOL +__stdcall +ShutdownBlockReasonQuery( + HWND hWnd, + LPWSTR pwszBuff, + DWORD *pcchBuff); + +__declspec(dllimport) +BOOL +__stdcall +ShutdownBlockReasonDestroy( + HWND hWnd); +# 15799 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef enum tagINPUT_MESSAGE_DEVICE_TYPE { + IMDT_UNAVAILABLE = 0x00000000, + IMDT_KEYBOARD = 0x00000001, + IMDT_MOUSE = 0x00000002, + IMDT_TOUCH = 0x00000004, + IMDT_PEN = 0x00000008, + + IMDT_TOUCHPAD = 0x00000010, + + } INPUT_MESSAGE_DEVICE_TYPE; + +typedef enum tagINPUT_MESSAGE_ORIGIN_ID { + IMO_UNAVAILABLE = 0x00000000, + IMO_HARDWARE = 0x00000001, + IMO_INJECTED = 0x00000002, + IMO_SYSTEM = 0x00000004, +} INPUT_MESSAGE_ORIGIN_ID; + + + + + typedef struct tagINPUT_MESSAGE_SOURCE { + INPUT_MESSAGE_DEVICE_TYPE deviceType; + INPUT_MESSAGE_ORIGIN_ID originId; + } INPUT_MESSAGE_SOURCE; + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetCurrentInputMessageSource( + INPUT_MESSAGE_SOURCE *inputMessageSource); + +__declspec(dllimport) +BOOL +__stdcall +GetCIMSSM( + INPUT_MESSAGE_SOURCE *inputMessageSource); +# 15854 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef enum tagAR_STATE { + AR_ENABLED = 0x0, + AR_DISABLED = 0x1, + AR_SUPPRESSED = 0x2, + AR_REMOTESESSION = 0x4, + AR_MULTIMON = 0x8, + AR_NOSENSOR = 0x10, + AR_NOT_SUPPORTED = 0x20, + AR_DOCKED = 0x40, + AR_LAPTOP = 0x80 +} AR_STATE, *PAR_STATE; +# 15883 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef enum ORIENTATION_PREFERENCE { + ORIENTATION_PREFERENCE_NONE = 0x0, + ORIENTATION_PREFERENCE_LANDSCAPE = 0x1, + ORIENTATION_PREFERENCE_PORTRAIT = 0x2, + ORIENTATION_PREFERENCE_LANDSCAPE_FLIPPED = 0x4, + ORIENTATION_PREFERENCE_PORTRAIT_FLIPPED = 0x8 +} ORIENTATION_PREFERENCE; +# 15899 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetAutoRotationState( + PAR_STATE pState); + +__declspec(dllimport) +BOOL +__stdcall +GetDisplayAutoRotationPreferences( + ORIENTATION_PREFERENCE *pOrientation); + +__declspec(dllimport) +BOOL +__stdcall +GetDisplayAutoRotationPreferencesByProcessId( + DWORD dwProcessId, + ORIENTATION_PREFERENCE *pOrientation, + BOOL *fRotateScreen); + +__declspec(dllimport) +BOOL +__stdcall +SetDisplayAutoRotationPreferences( + ORIENTATION_PREFERENCE orientation); +# 15936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsImmersiveProcess( + HANDLE hProcess); + +__declspec(dllimport) +BOOL +__stdcall +SetProcessRestrictionExemption( + BOOL fEnableExemption); +# 15967 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetAdditionalForegroundBoostProcesses(HWND topLevelWindow, + DWORD processHandleCount, + HANDLE *processHandleArray); +# 15985 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +typedef enum { + TDF_REGISTER = 0x0001, + TDF_UNREGISTER = 0x0002, +} TOOLTIP_DISMISS_FLAGS; + +__declspec(dllimport) +BOOL +__stdcall +RegisterForTooltipDismissNotification(HWND hWnd, + TOOLTIP_DISMISS_FLAGS tdFlags); +# 16011 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 +#pragma warning(pop) +# 179 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 1 3 +# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\datetimeapi.h" 1 3 +# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\datetimeapi.h" 3 +__declspec(dllimport) +int +__stdcall +GetDateFormatA( + LCID Locale, + DWORD dwFlags, + const SYSTEMTIME* lpDate, + LPCSTR lpFormat, + LPSTR lpDateStr, + int cchDate + ); + +__declspec(dllimport) +int +__stdcall +GetDateFormatW( + LCID Locale, + DWORD dwFlags, + const SYSTEMTIME* lpDate, + LPCWSTR lpFormat, + LPWSTR lpDateStr, + int cchDate + ); +# 61 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\datetimeapi.h" 3 +__declspec(dllimport) +int +__stdcall +GetTimeFormatA( + LCID Locale, + DWORD dwFlags, + const SYSTEMTIME* lpTime, + LPCSTR lpFormat, + LPSTR lpTimeStr, + int cchTime + ); + +__declspec(dllimport) +int +__stdcall +GetTimeFormatW( + LCID Locale, + DWORD dwFlags, + const SYSTEMTIME* lpTime, + LPCWSTR lpFormat, + LPWSTR lpTimeStr, + int cchTime + ); +# 96 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\datetimeapi.h" 3 +__declspec(dllimport) +int +__stdcall +GetTimeFormatEx( + LPCWSTR lpLocaleName, + DWORD dwFlags, + const SYSTEMTIME* lpTime, + LPCWSTR lpFormat, + LPWSTR lpTimeStr, + int cchTime + ); + +__declspec(dllimport) +int +__stdcall +GetDateFormatEx( + LPCWSTR lpLocaleName, + DWORD dwFlags, + const SYSTEMTIME* lpDate, + LPCWSTR lpFormat, + LPWSTR lpDateStr, + int cchDate, + LPCWSTR lpCalendar + ); +# 129 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\datetimeapi.h" 3 +__declspec(dllimport) +int +__stdcall +GetDurationFormatEx( + LPCWSTR lpLocaleName, + DWORD dwFlags, + const SYSTEMTIME* lpDuration, + ULONGLONG ullDuration, + LPCWSTR lpFormat, + LPWSTR lpDurationStr, + int cchDuration + ); +# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 2 3 + + + + + +#pragma warning(push) +#pragma warning(disable: 4820) +# 1067 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +typedef DWORD LGRPID; + + + + +typedef DWORD LCTYPE; + + + + +typedef DWORD CALTYPE; + + + + + +typedef DWORD CALID; +# 1096 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +typedef struct _cpinfo { + UINT MaxCharSize; + BYTE DefaultChar[2]; + BYTE LeadByte[12]; +} CPINFO, *LPCPINFO; + + + + +typedef DWORD GEOTYPE; +typedef DWORD GEOCLASS; +# 1120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +typedef LONG GEOID; +# 1132 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +typedef struct _cpinfoexA { + UINT MaxCharSize; + BYTE DefaultChar[2]; + BYTE LeadByte[12]; + WCHAR UnicodeDefaultChar; + UINT CodePage; + CHAR CodePageName[260]; +} CPINFOEXA, *LPCPINFOEXA; + +typedef struct _cpinfoexW { + UINT MaxCharSize; + BYTE DefaultChar[2]; + BYTE LeadByte[12]; + WCHAR UnicodeDefaultChar; + UINT CodePage; + WCHAR CodePageName[260]; +} CPINFOEXW, *LPCPINFOEXW; + + + + +typedef CPINFOEXA CPINFOEX; +typedef LPCPINFOEXA LPCPINFOEX; +# 1166 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +typedef struct _numberfmtA { + UINT NumDigits; + UINT LeadingZero; + UINT Grouping; + LPSTR lpDecimalSep; + LPSTR lpThousandSep; + UINT NegativeOrder; +} NUMBERFMTA, *LPNUMBERFMTA; +typedef struct _numberfmtW { + UINT NumDigits; + UINT LeadingZero; + UINT Grouping; + LPWSTR lpDecimalSep; + LPWSTR lpThousandSep; + UINT NegativeOrder; +} NUMBERFMTW, *LPNUMBERFMTW; + + + + +typedef NUMBERFMTA NUMBERFMT; +typedef LPNUMBERFMTA LPNUMBERFMT; + + + + + + + +typedef struct _currencyfmtA { + UINT NumDigits; + UINT LeadingZero; + UINT Grouping; + LPSTR lpDecimalSep; + LPSTR lpThousandSep; + UINT NegativeOrder; + UINT PositiveOrder; + LPSTR lpCurrencySymbol; +} CURRENCYFMTA, *LPCURRENCYFMTA; +typedef struct _currencyfmtW { + UINT NumDigits; + UINT LeadingZero; + UINT Grouping; + LPWSTR lpDecimalSep; + LPWSTR lpThousandSep; + UINT NegativeOrder; + UINT PositiveOrder; + LPWSTR lpCurrencySymbol; +} CURRENCYFMTW, *LPCURRENCYFMTW; + + + + +typedef CURRENCYFMTA CURRENCYFMT; +typedef LPCURRENCYFMTA LPCURRENCYFMT; +# 1232 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +enum SYSNLS_FUNCTION { + COMPARE_STRING = 0x0001, +}; +typedef DWORD NLS_FUNCTION; +# 1256 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +typedef struct _nlsversioninfo{ + DWORD dwNLSVersionInfoSize; + DWORD dwNLSVersion; + DWORD dwDefinedVersion; + DWORD dwEffectiveId; + GUID guidCustomVersion; +} NLSVERSIONINFO, *LPNLSVERSIONINFO; +# 1287 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +typedef struct _nlsversioninfoex{ + DWORD dwNLSVersionInfoSize; + DWORD dwNLSVersion; + DWORD dwDefinedVersion; + DWORD dwEffectiveId; + GUID guidCustomVersion; +} NLSVERSIONINFOEX, *LPNLSVERSIONINFOEX; +# 1308 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +enum SYSGEOTYPE { + GEO_NATION = 0x0001, + GEO_LATITUDE = 0x0002, + GEO_LONGITUDE = 0x0003, + GEO_ISO2 = 0x0004, + GEO_ISO3 = 0x0005, + GEO_RFC1766 = 0x0006, + GEO_LCID = 0x0007, + GEO_FRIENDLYNAME= 0x0008, + GEO_OFFICIALNAME= 0x0009, + GEO_TIMEZONES = 0x000A, + GEO_OFFICIALLANGUAGES = 0x000B, + GEO_ISO_UN_NUMBER = 0x000C, + GEO_PARENT = 0x000D, + GEO_DIALINGCODE = 0x000E, + GEO_CURRENCYCODE= 0x000F, + GEO_CURRENCYSYMBOL= 0x0010, + + GEO_NAME = 0x0011, + GEO_ID = 0x0012 + +}; + + + + + +enum SYSGEOCLASS { + GEOCLASS_NATION = 16, + GEOCLASS_REGION = 14, + GEOCLASS_ALL = 0 +}; + + + +typedef BOOL (__stdcall* LOCALE_ENUMPROCA)(LPSTR); +typedef BOOL (__stdcall* LOCALE_ENUMPROCW)(LPWSTR); +# 1359 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +typedef enum _NORM_FORM { + NormalizationOther = 0, + NormalizationC = 0x1, + NormalizationD = 0x2, + NormalizationKC = 0x5, + + NormalizationKD = 0x6 + +} NORM_FORM; +# 1390 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +typedef BOOL (__stdcall* LANGUAGEGROUP_ENUMPROCA)(LGRPID, LPSTR, LPSTR, DWORD, LONG_PTR); + +typedef BOOL (__stdcall* LANGGROUPLOCALE_ENUMPROCA)(LGRPID, LCID, LPSTR, LONG_PTR); +typedef BOOL (__stdcall* UILANGUAGE_ENUMPROCA)(LPSTR, LONG_PTR); +typedef BOOL (__stdcall* CODEPAGE_ENUMPROCA)(LPSTR); +typedef BOOL (__stdcall* DATEFMT_ENUMPROCA)(LPSTR); +typedef BOOL (__stdcall* DATEFMT_ENUMPROCEXA)(LPSTR, CALID); +typedef BOOL (__stdcall* TIMEFMT_ENUMPROCA)(LPSTR); +typedef BOOL (__stdcall* CALINFO_ENUMPROCA)(LPSTR); +typedef BOOL (__stdcall* CALINFO_ENUMPROCEXA)(LPSTR, CALID); + + +typedef BOOL (__stdcall* LANGUAGEGROUP_ENUMPROCW)(LGRPID, LPWSTR, LPWSTR, DWORD, LONG_PTR); + +typedef BOOL (__stdcall* LANGGROUPLOCALE_ENUMPROCW)(LGRPID, LCID, LPWSTR, LONG_PTR); +typedef BOOL (__stdcall* UILANGUAGE_ENUMPROCW)(LPWSTR, LONG_PTR); +typedef BOOL (__stdcall* CODEPAGE_ENUMPROCW)(LPWSTR); +typedef BOOL (__stdcall* DATEFMT_ENUMPROCW)(LPWSTR); +typedef BOOL (__stdcall* DATEFMT_ENUMPROCEXW)(LPWSTR, CALID); +typedef BOOL (__stdcall* TIMEFMT_ENUMPROCW)(LPWSTR); +typedef BOOL (__stdcall* CALINFO_ENUMPROCW)(LPWSTR); +typedef BOOL (__stdcall* CALINFO_ENUMPROCEXW)(LPWSTR, CALID); +typedef BOOL (__stdcall* GEO_ENUMPROC)(GEOID); + +typedef BOOL (__stdcall* GEO_ENUMNAMEPROC)(PWSTR, LPARAM); +# 1511 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +typedef struct _FILEMUIINFO { + DWORD dwSize; + DWORD dwVersion; + DWORD dwFileType; + BYTE pChecksum[16]; + BYTE pServiceChecksum[16]; + DWORD dwLanguageNameOffset; + DWORD dwTypeIDMainSize; + DWORD dwTypeIDMainOffset; + DWORD dwTypeNameMainOffset; + DWORD dwTypeIDMUISize; + DWORD dwTypeIDMUIOffset; + DWORD dwTypeNameMUIOffset; + BYTE abBuffer[8]; +} FILEMUIINFO, *PFILEMUIINFO; +# 1534 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\stringapiset.h" 1 3 +# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\stringapiset.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 1 3 +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\stringapiset.h" 2 3 +# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\stringapiset.h" 3 +__declspec(dllimport) +int +__stdcall +CompareStringEx( + LPCWSTR lpLocaleName, + DWORD dwCmpFlags, + LPCWCH lpString1, + int cchCount1, + LPCWCH lpString2, + int cchCount2, + LPNLSVERSIONINFO lpVersionInformation, + LPVOID lpReserved, + LPARAM lParam + ); + +__declspec(dllimport) +int +__stdcall +CompareStringOrdinal( + LPCWCH lpString1, + int cchCount1, + LPCWCH lpString2, + int cchCount2, + BOOL bIgnoreCase + ); + + + +__declspec(dllimport) +int +__stdcall +CompareStringW( + LCID Locale, + DWORD dwCmpFlags, + PCNZWCH lpString1, + int cchCount1, + PCNZWCH lpString2, + int cchCount2 + ); + + + + +__declspec(dllimport) +int +__stdcall +FoldStringW( + DWORD dwMapFlags, + LPCWCH lpSrcStr, + int cchSrc, + LPWSTR lpDestStr, + int cchDest + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +GetStringTypeExW( + LCID Locale, + DWORD dwInfoType, + LPCWCH lpSrcStr, + int cchSrc, + LPWORD lpCharType + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +GetStringTypeW( + DWORD dwInfoType, + LPCWCH lpSrcStr, + int cchSrc, + LPWORD lpCharType + ); + + + + + +__declspec(dllimport) + + +int +__stdcall +MultiByteToWideChar( + UINT CodePage, + DWORD dwFlags, + LPCCH lpMultiByteStr, + int cbMultiByte, + LPWSTR lpWideCharStr, + int cchWideChar + ); + +__declspec(dllimport) + + +int +__stdcall +WideCharToMultiByte( + UINT CodePage, + DWORD dwFlags, + LPCWCH lpWideCharStr, + int cchWideChar, + LPSTR lpMultiByteStr, + int cbMultiByte, + LPCCH lpDefaultChar, + LPBOOL lpUsedDefaultChar + ); +# 1535 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 2 3 +# 1614 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsValidCodePage( + UINT CodePage); + +__declspec(dllimport) +UINT +__stdcall +GetACP(void); + + + + + + + +__declspec(dllimport) +UINT +__stdcall +GetOEMCP(void); +# 1643 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetCPInfo( + UINT CodePage, + LPCPINFO lpCPInfo); +# 1657 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetCPInfoExA( + UINT CodePage, + DWORD dwFlags, + LPCPINFOEXA lpCPInfoEx); + +__declspec(dllimport) +BOOL +__stdcall +GetCPInfoExW( + UINT CodePage, + DWORD dwFlags, + LPCPINFOEXW lpCPInfoEx); +# 1689 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall +CompareStringA( + LCID Locale, + DWORD dwCmpFlags, + PCNZCH lpString1, + int cchCount1, + PCNZCH lpString2, + int cchCount2); +# 1742 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall +FindNLSString( + LCID Locale, + DWORD dwFindNLSStringFlags, + LPCWSTR lpStringSource, + int cchSource, + LPCWSTR lpStringValue, + int cchValue, + LPINT pcchFound); +# 1763 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall +LCMapStringW( + LCID Locale, + DWORD dwMapFlags, + LPCWSTR lpSrcStr, + int cchSrc, + LPWSTR lpDestStr, + int cchDest); + + + + + +__declspec(dllimport) +int +__stdcall +LCMapStringA( + LCID Locale, + DWORD dwMapFlags, + LPCSTR lpSrcStr, + int cchSrc, + LPSTR lpDestStr, + int cchDest); +# 1799 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall +GetLocaleInfoW( + LCID Locale, + LCTYPE LCType, + LPWSTR lpLCData, + int cchData); + + + + + + +__declspec(dllimport) +int +__stdcall +GetLocaleInfoA( + LCID Locale, + LCTYPE LCType, + LPSTR lpLCData, + int cchData + ); +# 1833 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetLocaleInfoA( + LCID Locale, + LCTYPE LCType, + LPCSTR lpLCData); +__declspec(dllimport) +BOOL +__stdcall +SetLocaleInfoW( + LCID Locale, + LCTYPE LCType, + LPCWSTR lpLCData); +# 1856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall +GetCalendarInfoA( + LCID Locale, + CALID Calendar, + CALTYPE CalType, + LPSTR lpCalData, + int cchData, + LPDWORD lpValue); + +__declspec(dllimport) +int +__stdcall +GetCalendarInfoW( + LCID Locale, + CALID Calendar, + CALTYPE CalType, + LPWSTR lpCalData, + int cchData, + LPDWORD lpValue); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetCalendarInfoA( + LCID Locale, + CALID Calendar, + CALTYPE CalType, + LPCSTR lpCalData); +__declspec(dllimport) +BOOL +__stdcall +SetCalendarInfoW( + LCID Locale, + CALID Calendar, + CALTYPE CalType, + LPCWSTR lpCalData); +# 1922 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +LoadStringByReference( + DWORD Flags, + PCWSTR Language, + PCWSTR SourceString, + PWSTR Buffer, + ULONG cchBuffer, + PCWSTR Directory, + PULONG pcchBufferOut + ); +# 1944 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsDBCSLeadByte( + BYTE TestChar + ); + + +__declspec(dllimport) +BOOL +__stdcall +IsDBCSLeadByteEx( + UINT CodePage, + BYTE TestChar + ); +# 1970 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +LCID +__stdcall +LocaleNameToLCID( + LPCWSTR lpName, + DWORD dwFlags); + + + +__declspec(dllimport) +int +__stdcall +LCIDToLocaleName( + LCID Locale, + LPWSTR lpName, + int cchName, + DWORD dwFlags); +# 1998 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall +GetDurationFormat( + LCID Locale, + DWORD dwFlags, + const SYSTEMTIME *lpDuration, + ULONGLONG ullDuration, + LPCWSTR lpFormat, + LPWSTR lpDurationStr, + int cchDuration); +# 2018 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall +GetNumberFormatA( + LCID Locale, + DWORD dwFlags, + LPCSTR lpValue, + const NUMBERFMTA *lpFormat, + LPSTR lpNumberStr, + int cchNumber); + +__declspec(dllimport) +int +__stdcall +GetNumberFormatW( + LCID Locale, + DWORD dwFlags, + LPCWSTR lpValue, + const NUMBERFMTW *lpFormat, + LPWSTR lpNumberStr, + int cchNumber); + + + + + + + +__declspec(dllimport) +int +__stdcall +GetCurrencyFormatA( + LCID Locale, + DWORD dwFlags, + LPCSTR lpValue, + const CURRENCYFMTA *lpFormat, + LPSTR lpCurrencyStr, + int cchCurrency); + +__declspec(dllimport) +int +__stdcall +GetCurrencyFormatW( + LCID Locale, + DWORD dwFlags, + LPCWSTR lpValue, + const CURRENCYFMTW *lpFormat, + LPWSTR lpCurrencyStr, + int cchCurrency); +# 2080 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumCalendarInfoA( + CALINFO_ENUMPROCA lpCalInfoEnumProc, + LCID Locale, + CALID Calendar, + CALTYPE CalType); + +__declspec(dllimport) +BOOL +__stdcall +EnumCalendarInfoW( + CALINFO_ENUMPROCW lpCalInfoEnumProc, + LCID Locale, + CALID Calendar, + CALTYPE CalType); +# 2105 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumCalendarInfoExA( + CALINFO_ENUMPROCEXA lpCalInfoEnumProcEx, + LCID Locale, + CALID Calendar, + CALTYPE CalType); + +__declspec(dllimport) +BOOL +__stdcall +EnumCalendarInfoExW( + CALINFO_ENUMPROCEXW lpCalInfoEnumProcEx, + LCID Locale, + CALID Calendar, + CALTYPE CalType); +# 2130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumTimeFormatsA( + TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, + LCID Locale, + DWORD dwFlags); + +__declspec(dllimport) +BOOL +__stdcall +EnumTimeFormatsW( + TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, + LCID Locale, + DWORD dwFlags); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +EnumDateFormatsA( + DATEFMT_ENUMPROCA lpDateFmtEnumProc, + LCID Locale, + DWORD dwFlags); + +__declspec(dllimport) +BOOL +__stdcall +EnumDateFormatsW( + DATEFMT_ENUMPROCW lpDateFmtEnumProc, + LCID Locale, + DWORD dwFlags); +# 2175 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumDateFormatsExA( + DATEFMT_ENUMPROCEXA lpDateFmtEnumProcEx, + LCID Locale, + DWORD dwFlags); + +__declspec(dllimport) +BOOL +__stdcall +EnumDateFormatsExW( + DATEFMT_ENUMPROCEXW lpDateFmtEnumProcEx, + LCID Locale, + DWORD dwFlags); +# 2205 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsValidLanguageGroup( + LGRPID LanguageGroup, + DWORD dwFlags); + + + +__declspec(dllimport) +BOOL +__stdcall +GetNLSVersion( + NLS_FUNCTION Function, + LCID Locale, + LPNLSVERSIONINFO lpVersionInformation); +# 2229 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +IsValidLocale( + LCID Locale, + DWORD dwFlags); +# 2244 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall +GetGeoInfoA( + GEOID Location, + GEOTYPE GeoType, + LPSTR lpGeoData, + int cchData, + LANGID LangId); + + +__declspec(dllimport) +int +__stdcall +GetGeoInfoW( + GEOID Location, + GEOTYPE GeoType, + LPWSTR lpGeoData, + int cchData, + LANGID LangId); + + + + + + + +__declspec(dllimport) +int +__stdcall +GetGeoInfoEx( + PWSTR location, + GEOTYPE geoType, + PWSTR geoData, + int geoDataCount); +# 2289 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumSystemGeoID( + GEOCLASS GeoClass, + GEOID ParentGeoId, + GEO_ENUMPROC lpGeoEnumProc); + + +__declspec(dllimport) +BOOL +__stdcall +EnumSystemGeoNames( + GEOCLASS geoClass, + GEO_ENUMNAMEPROC geoEnumProc, + LPARAM data); +# 2315 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +GEOID +__stdcall +GetUserGeoID( + GEOCLASS GeoClass); + + + + + + +__declspec(dllimport) +int +__stdcall +GetUserDefaultGeoName( + LPWSTR geoName, + int geoNameCount +); +# 2343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetUserGeoID( + GEOID GeoId); + + + +__declspec(dllimport) +BOOL +__stdcall +SetUserGeoName( + PWSTR geoName); + + + +__declspec(dllimport) +LCID +__stdcall +ConvertDefaultLocale( + LCID Locale); + + + +__declspec(dllimport) +LANGID +__stdcall +GetSystemDefaultUILanguage(void); +# 2380 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +LCID +__stdcall +GetThreadLocale(void); + +__declspec(dllimport) +BOOL +__stdcall +SetThreadLocale( + LCID Locale + ); +# 2400 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +LANGID +__stdcall +GetUserDefaultUILanguage(void); + + + +__declspec(dllimport) +LANGID +__stdcall +GetUserDefaultLangID(void); +# 2419 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +LANGID +__stdcall +GetSystemDefaultLangID(void); + + +__declspec(dllimport) +LCID +__stdcall +GetSystemDefaultLCID(void); + + +__declspec(dllimport) +LCID +__stdcall +GetUserDefaultLCID(void); +# 2449 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +LANGID +__stdcall +SetThreadUILanguage( LANGID LangId); + + + + +__declspec(dllimport) +LANGID +__stdcall +GetThreadUILanguage(void); + +__declspec(dllimport) +BOOL +__stdcall +GetProcessPreferredUILanguages( + DWORD dwFlags, + PULONG pulNumLanguages, + PZZWSTR pwszLanguagesBuffer, + PULONG pcchLanguagesBuffer +); + + +__declspec(dllimport) +BOOL +__stdcall +SetProcessPreferredUILanguages( + DWORD dwFlags, + PCZZWSTR pwszLanguagesBuffer, + PULONG pulNumLanguages +); +# 2490 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetUserPreferredUILanguages ( + DWORD dwFlags, + PULONG pulNumLanguages, + PZZWSTR pwszLanguagesBuffer, + PULONG pcchLanguagesBuffer +); +# 2510 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetSystemPreferredUILanguages ( + DWORD dwFlags, + PULONG pulNumLanguages, + PZZWSTR pwszLanguagesBuffer, + PULONG pcchLanguagesBuffer +); + + +__declspec(dllimport) +BOOL +__stdcall +GetThreadPreferredUILanguages( + DWORD dwFlags, + PULONG pulNumLanguages, + PZZWSTR pwszLanguagesBuffer, + PULONG pcchLanguagesBuffer +); + + +__declspec(dllimport) +BOOL +__stdcall +SetThreadPreferredUILanguages( + DWORD dwFlags, + PCZZWSTR pwszLanguagesBuffer, + PULONG pulNumLanguages +); + +__declspec(dllimport) + +BOOL +__stdcall +GetFileMUIInfo( + DWORD dwFlags, + PCWSTR pcwszFilePath, + PFILEMUIINFO pFileMUIInfo, + DWORD* pcbFileMUIInfo); + +__declspec(dllimport) +BOOL +__stdcall +GetFileMUIPath( + DWORD dwFlags, + PCWSTR pcwszFilePath , + PWSTR pwszLanguage, + PULONG pcchLanguage, + PWSTR pwszFileMUIPath, + PULONG pcchFileMUIPath, + PULONGLONG pululEnumerator +); + + +__declspec(dllimport) +BOOL +__stdcall +GetUILanguageInfo( + DWORD dwFlags, + PCZZWSTR pwmszLanguage, + PZZWSTR pwszFallbackLanguages, + PDWORD pcchFallbackLanguages, + PDWORD pAttributes +); +# 2586 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +struct HSAVEDUILANGUAGES__{int unused;}; typedef struct HSAVEDUILANGUAGES__ *HSAVEDUILANGUAGES; + +__declspec(dllimport) +BOOL +__stdcall +SetThreadPreferredUILanguages2( + ULONG flags, + PCZZWSTR languages, + PULONG numLanguagesSet, + HSAVEDUILANGUAGES* snapshot); + +__declspec(dllimport) +void +__stdcall +RestoreThreadPreferredUILanguages( const HSAVEDUILANGUAGES snapshot); +# 2612 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +NotifyUILanguageChange( + DWORD dwFlags, + PCWSTR pcwstrNewLanguage, + PCWSTR pcwstrPreviousLanguage, + DWORD dwReserved, + PDWORD pdwStatusRtrn +); +# 2636 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetStringTypeExA( + LCID Locale, + DWORD dwInfoType, + LPCSTR lpSrcStr, + int cchSrc, + LPWORD lpCharType); +# 2661 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetStringTypeA( + LCID Locale, + DWORD dwInfoType, + LPCSTR lpSrcStr, + int cchSrc, + LPWORD lpCharType); + +__declspec(dllimport) +int +__stdcall +FoldStringA( + DWORD dwMapFlags, + LPCSTR lpSrcStr, + int cchSrc, + LPSTR lpDestStr, + int cchDest); +# 2693 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumSystemLocalesA( + LOCALE_ENUMPROCA lpLocaleEnumProc, + DWORD dwFlags); + +__declspec(dllimport) +BOOL +__stdcall +EnumSystemLocalesW( + LOCALE_ENUMPROCW lpLocaleEnumProc, + DWORD dwFlags); +# 2723 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumSystemLanguageGroupsA( + LANGUAGEGROUP_ENUMPROCA lpLanguageGroupEnumProc, + DWORD dwFlags, + LONG_PTR lParam); + +__declspec(dllimport) +BOOL +__stdcall +EnumSystemLanguageGroupsW( + LANGUAGEGROUP_ENUMPROCW lpLanguageGroupEnumProc, + DWORD dwFlags, + LONG_PTR lParam); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +EnumLanguageGroupLocalesA( + LANGGROUPLOCALE_ENUMPROCA lpLangGroupLocaleEnumProc, + LGRPID LanguageGroup, + DWORD dwFlags, + LONG_PTR lParam); + +__declspec(dllimport) +BOOL +__stdcall +EnumLanguageGroupLocalesW( + LANGGROUPLOCALE_ENUMPROCW lpLangGroupLocaleEnumProc, + LGRPID LanguageGroup, + DWORD dwFlags, + LONG_PTR lParam); +# 2775 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumUILanguagesA( + UILANGUAGE_ENUMPROCA lpUILanguageEnumProc, + DWORD dwFlags, + LONG_PTR lParam); + +__declspec(dllimport) +BOOL +__stdcall +EnumUILanguagesW( + UILANGUAGE_ENUMPROCW lpUILanguageEnumProc, + DWORD dwFlags, + LONG_PTR lParam); +# 2805 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumSystemCodePagesA( + CODEPAGE_ENUMPROCA lpCodePageEnumProc, + DWORD dwFlags); + +__declspec(dllimport) +BOOL +__stdcall +EnumSystemCodePagesW( + CODEPAGE_ENUMPROCW lpCodePageEnumProc, + DWORD dwFlags); +# 2839 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall IdnToAscii( DWORD dwFlags, + LPCWSTR lpUnicodeCharStr, + int cchUnicodeChar, + LPWSTR lpASCIICharStr, + int cchASCIIChar); + +__declspec(dllimport) +int +__stdcall IdnToUnicode( DWORD dwFlags, + LPCWSTR lpASCIICharStr, + int cchASCIIChar, + LPWSTR lpUnicodeCharStr, + int cchUnicodeChar); + +__declspec(dllimport) +int +__stdcall IdnToNameprepUnicode( DWORD dwFlags, + LPCWSTR lpUnicodeCharStr, + int cchUnicodeChar, + LPWSTR lpNameprepCharStr, + int cchNameprepChar); +# 2873 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall NormalizeString( NORM_FORM NormForm, + LPCWSTR lpSrcString, + int cwSrcLength, + LPWSTR lpDstString, + int cwDstLength ); + +__declspec(dllimport) +BOOL +__stdcall IsNormalizedString( NORM_FORM NormForm, + LPCWSTR lpString, + int cwLength ); + +__declspec(dllimport) +BOOL +__stdcall VerifyScripts( + DWORD dwFlags, + LPCWSTR lpLocaleScripts, + int cchLocaleScripts, + LPCWSTR lpTestScripts, + int cchTestScripts); + +__declspec(dllimport) +int +__stdcall GetStringScripts( + DWORD dwFlags, + LPCWSTR lpString, + int cchString, + LPWSTR lpScripts, + int cchScripts); +# 2923 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall +GetLocaleInfoEx( + LPCWSTR lpLocaleName, + LCTYPE LCType, + LPWSTR lpLCData, + int cchData +); + + + + + + + +__declspec(dllimport) +int +__stdcall +GetCalendarInfoEx( + LPCWSTR lpLocaleName, + CALID Calendar, + LPCWSTR lpReserved, + CALTYPE CalType, + LPWSTR lpCalData, + int cchData, + LPDWORD lpValue +); +# 2979 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall +GetNumberFormatEx( + LPCWSTR lpLocaleName, + DWORD dwFlags, + LPCWSTR lpValue, + const NUMBERFMTW *lpFormat, + LPWSTR lpNumberStr, + int cchNumber +); + +__declspec(dllimport) +int +__stdcall +GetCurrencyFormatEx( + LPCWSTR lpLocaleName, + DWORD dwFlags, + LPCWSTR lpValue, + const CURRENCYFMTW *lpFormat, + LPWSTR lpCurrencyStr, + int cchCurrency +); + +__declspec(dllimport) +int +__stdcall +GetUserDefaultLocaleName( + LPWSTR lpLocaleName, + int cchLocaleName +); + + + + + + + +__declspec(dllimport) +int +__stdcall +GetSystemDefaultLocaleName( + LPWSTR lpLocaleName, + int cchLocaleName +); + +__declspec(dllimport) +BOOL +__stdcall +IsNLSDefinedString( + NLS_FUNCTION Function, + DWORD dwFlags, + LPNLSVERSIONINFO lpVersionInformation, + LPCWSTR lpString, + INT cchStr); + +__declspec(dllimport) +BOOL +__stdcall +GetNLSVersionEx( + NLS_FUNCTION function, + LPCWSTR lpLocaleName, + LPNLSVERSIONINFOEX lpVersionInformation +); + + +__declspec(dllimport) +DWORD +__stdcall +IsValidNLSVersion( + NLS_FUNCTION function, + LPCWSTR lpLocaleName, + LPNLSVERSIONINFOEX lpVersionInformation +); +# 3061 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall +FindNLSStringEx( + LPCWSTR lpLocaleName, + DWORD dwFindNLSStringFlags, + LPCWSTR lpStringSource, + int cchSource, + LPCWSTR lpStringValue, + int cchValue, + LPINT pcchFound, + LPNLSVERSIONINFO lpVersionInformation, + LPVOID lpReserved, + LPARAM sortHandle +); +# 3084 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall +LCMapStringEx( + LPCWSTR lpLocaleName, + DWORD dwMapFlags, + LPCWSTR lpSrcStr, + int cchSrc, + LPWSTR lpDestStr, + int cchDest, + LPNLSVERSIONINFO lpVersionInformation, + LPVOID lpReserved, + LPARAM sortHandle +); + +__declspec(dllimport) +BOOL +__stdcall +IsValidLocaleName( + LPCWSTR lpLocaleName +); + + + + + + + +typedef BOOL (__stdcall* CALINFO_ENUMPROCEXEX)(LPWSTR, CALID, LPWSTR, LPARAM); + +__declspec(dllimport) +BOOL +__stdcall +EnumCalendarInfoExEx( + CALINFO_ENUMPROCEXEX pCalInfoEnumProcExEx, + LPCWSTR lpLocaleName, + CALID Calendar, + LPCWSTR lpReserved, + CALTYPE CalType, + LPARAM lParam +); + +typedef BOOL (__stdcall* DATEFMT_ENUMPROCEXEX)(LPWSTR, CALID, LPARAM); + +__declspec(dllimport) +BOOL +__stdcall +EnumDateFormatsExEx( + DATEFMT_ENUMPROCEXEX lpDateFmtEnumProcExEx, + LPCWSTR lpLocaleName, + DWORD dwFlags, + LPARAM lParam +); + +typedef BOOL (__stdcall* TIMEFMT_ENUMPROCEX)(LPWSTR, LPARAM); + +__declspec(dllimport) +BOOL +__stdcall +EnumTimeFormatsEx( + TIMEFMT_ENUMPROCEX lpTimeFmtEnumProcEx, + LPCWSTR lpLocaleName, + DWORD dwFlags, + LPARAM lParam +); + + + + + + + +typedef BOOL (__stdcall* LOCALE_ENUMPROCEX)(LPWSTR, DWORD, LPARAM); + +__declspec(dllimport) +BOOL +__stdcall +EnumSystemLocalesEx( + LOCALE_ENUMPROCEX lpLocaleEnumProcEx, + DWORD dwFlags, + LPARAM lParam, + LPVOID lpReserved +); +# 3178 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +__declspec(dllimport) +int +__stdcall +ResolveLocaleName( + LPCWSTR lpNameToResolve, + LPWSTR lpLocaleName, + int cchLocaleName +); +# 3206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 +#pragma warning(pop) +# 181 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincon.h" 1 3 +# 34 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincon.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincontypes.h" 1 3 +# 36 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincontypes.h" 3 +typedef struct _COORD { + SHORT X; + SHORT Y; +} COORD, *PCOORD; + +typedef struct _SMALL_RECT { + SHORT Left; + SHORT Top; + SHORT Right; + SHORT Bottom; +} SMALL_RECT, *PSMALL_RECT; + +typedef struct _KEY_EVENT_RECORD { + BOOL bKeyDown; + WORD wRepeatCount; + WORD wVirtualKeyCode; + WORD wVirtualScanCode; + union { + WCHAR UnicodeChar; + CHAR AsciiChar; + } uChar; + DWORD dwControlKeyState; +} KEY_EVENT_RECORD, *PKEY_EVENT_RECORD; +# 82 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincontypes.h" 3 +typedef struct _MOUSE_EVENT_RECORD { + COORD dwMousePosition; + DWORD dwButtonState; + DWORD dwControlKeyState; + DWORD dwEventFlags; +} MOUSE_EVENT_RECORD, *PMOUSE_EVENT_RECORD; +# 110 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincontypes.h" 3 +typedef struct _WINDOW_BUFFER_SIZE_RECORD { + COORD dwSize; +} WINDOW_BUFFER_SIZE_RECORD, *PWINDOW_BUFFER_SIZE_RECORD; + +typedef struct _MENU_EVENT_RECORD { + UINT dwCommandId; +} MENU_EVENT_RECORD, *PMENU_EVENT_RECORD; + +typedef struct _FOCUS_EVENT_RECORD { + BOOL bSetFocus; +} FOCUS_EVENT_RECORD, *PFOCUS_EVENT_RECORD; + +typedef struct _INPUT_RECORD { + WORD EventType; + union { + KEY_EVENT_RECORD KeyEvent; + MOUSE_EVENT_RECORD MouseEvent; + WINDOW_BUFFER_SIZE_RECORD WindowBufferSizeEvent; + MENU_EVENT_RECORD MenuEvent; + FOCUS_EVENT_RECORD FocusEvent; + } Event; +} INPUT_RECORD, *PINPUT_RECORD; +# 143 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincontypes.h" 3 +typedef struct _CHAR_INFO { + union { + WCHAR UnicodeChar; + CHAR AsciiChar; + } Char; + WORD Attributes; +} CHAR_INFO, *PCHAR_INFO; + +typedef struct _CONSOLE_FONT_INFO { + DWORD nFont; + COORD dwFontSize; +} CONSOLE_FONT_INFO, *PCONSOLE_FONT_INFO; + +typedef void* HPCON; +# 39 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincon.h" 2 3 + + + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi.h" 1 3 +# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +AllocConsole( + void + ); + +__declspec(dllimport) +BOOL +__stdcall +FreeConsole( + void + ); + + + +__declspec(dllimport) +BOOL +__stdcall +AttachConsole( + DWORD dwProcessId + ); + + + + + +__declspec(dllimport) +UINT +__stdcall +GetConsoleCP( + void + ); + +__declspec(dllimport) +UINT +__stdcall +GetConsoleOutputCP( + void + ); +# 97 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetConsoleMode( + HANDLE hConsoleHandle, + LPDWORD lpMode + ); + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleMode( + HANDLE hConsoleHandle, + DWORD dwMode + ); + +__declspec(dllimport) +BOOL +__stdcall +GetNumberOfConsoleInputEvents( + HANDLE hConsoleInput, + LPDWORD lpNumberOfEvents + ); + +__declspec(dllimport) + +BOOL +__stdcall +ReadConsoleInputA( + HANDLE hConsoleInput, + PINPUT_RECORD lpBuffer, + DWORD nLength, + LPDWORD lpNumberOfEventsRead + ); + +__declspec(dllimport) + +BOOL +__stdcall +ReadConsoleInputW( + HANDLE hConsoleInput, + PINPUT_RECORD lpBuffer, + DWORD nLength, + LPDWORD lpNumberOfEventsRead + ); +# 156 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +PeekConsoleInputA( + HANDLE hConsoleInput, + PINPUT_RECORD lpBuffer, + DWORD nLength, + LPDWORD lpNumberOfEventsRead + ); + +__declspec(dllimport) +BOOL +__stdcall +PeekConsoleInputW( + HANDLE hConsoleInput, + PINPUT_RECORD lpBuffer, + DWORD nLength, + LPDWORD lpNumberOfEventsRead + ); + + + + + + +typedef struct _CONSOLE_READCONSOLE_CONTROL { + ULONG nLength; + ULONG nInitialChars; + ULONG dwCtrlWakeupMask; + ULONG dwControlKeyState; +} CONSOLE_READCONSOLE_CONTROL, *PCONSOLE_READCONSOLE_CONTROL; + +__declspec(dllimport) + +BOOL +__stdcall +ReadConsoleA( + HANDLE hConsoleInput, + LPVOID lpBuffer, + DWORD nNumberOfCharsToRead, + LPDWORD lpNumberOfCharsRead, + PCONSOLE_READCONSOLE_CONTROL pInputControl + ); + +__declspec(dllimport) + +BOOL +__stdcall +ReadConsoleW( + HANDLE hConsoleInput, + LPVOID lpBuffer, + DWORD nNumberOfCharsToRead, + LPDWORD lpNumberOfCharsRead, + PCONSOLE_READCONSOLE_CONTROL pInputControl + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +WriteConsoleA( + HANDLE hConsoleOutput, + const void* lpBuffer, + DWORD nNumberOfCharsToWrite, + LPDWORD lpNumberOfCharsWritten, + LPVOID lpReserved + ); + +__declspec(dllimport) +BOOL +__stdcall +WriteConsoleW( + HANDLE hConsoleOutput, + const void* lpBuffer, + DWORD nNumberOfCharsToWrite, + LPDWORD lpNumberOfCharsWritten, + LPVOID lpReserved + ); +# 260 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi.h" 3 +typedef +BOOL +(__stdcall *PHANDLER_ROUTINE)( + DWORD CtrlType + ); + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleCtrlHandler( + PHANDLER_ROUTINE HandlerRoutine, + BOOL Add + ); +# 285 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi.h" 3 +__declspec(dllimport) +HRESULT +__stdcall +CreatePseudoConsole( + COORD size, + HANDLE hInput, + HANDLE hOutput, + DWORD dwFlags, + HPCON* phPC + ); + +__declspec(dllimport) +HRESULT +__stdcall +ResizePseudoConsole( + HPCON hPC, + COORD size + ); + +__declspec(dllimport) +void +__stdcall +ClosePseudoConsole( + HPCON hPC + ); +# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincon.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi2.h" 1 3 +# 53 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi2.h" 3 +__declspec(dllimport) +BOOL +__stdcall +FillConsoleOutputCharacterA( + HANDLE hConsoleOutput, + CHAR cCharacter, + DWORD nLength, + COORD dwWriteCoord, + LPDWORD lpNumberOfCharsWritten + ); + +__declspec(dllimport) +BOOL +__stdcall +FillConsoleOutputCharacterW( + HANDLE hConsoleOutput, + WCHAR cCharacter, + DWORD nLength, + COORD dwWriteCoord, + LPDWORD lpNumberOfCharsWritten + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +FillConsoleOutputAttribute( + HANDLE hConsoleOutput, + WORD wAttribute, + DWORD nLength, + COORD dwWriteCoord, + LPDWORD lpNumberOfAttrsWritten + ); + +__declspec(dllimport) +BOOL +__stdcall +GenerateConsoleCtrlEvent( + DWORD dwCtrlEvent, + DWORD dwProcessGroupId + ); + +__declspec(dllimport) +HANDLE +__stdcall +CreateConsoleScreenBuffer( + DWORD dwDesiredAccess, + DWORD dwShareMode, + const SECURITY_ATTRIBUTES* lpSecurityAttributes, + DWORD dwFlags, + LPVOID lpScreenBufferData + ); + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleActiveScreenBuffer( + HANDLE hConsoleOutput + ); + +__declspec(dllimport) +BOOL +__stdcall +FlushConsoleInputBuffer( + HANDLE hConsoleInput + ); + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleCP( + UINT wCodePageID + ); + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleOutputCP( + UINT wCodePageID + ); + +typedef struct _CONSOLE_CURSOR_INFO { + DWORD dwSize; + BOOL bVisible; +} CONSOLE_CURSOR_INFO, *PCONSOLE_CURSOR_INFO; + +__declspec(dllimport) +BOOL +__stdcall +GetConsoleCursorInfo( + HANDLE hConsoleOutput, + PCONSOLE_CURSOR_INFO lpConsoleCursorInfo + ); + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleCursorInfo( + HANDLE hConsoleOutput, + const CONSOLE_CURSOR_INFO* lpConsoleCursorInfo + ); + +typedef struct _CONSOLE_SCREEN_BUFFER_INFO { + COORD dwSize; + COORD dwCursorPosition; + WORD wAttributes; + SMALL_RECT srWindow; + COORD dwMaximumWindowSize; +} CONSOLE_SCREEN_BUFFER_INFO, *PCONSOLE_SCREEN_BUFFER_INFO; + +__declspec(dllimport) +BOOL +__stdcall +GetConsoleScreenBufferInfo( + HANDLE hConsoleOutput, + PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo + ); + +typedef struct _CONSOLE_SCREEN_BUFFER_INFOEX { + ULONG cbSize; + COORD dwSize; + COORD dwCursorPosition; + WORD wAttributes; + SMALL_RECT srWindow; + COORD dwMaximumWindowSize; + WORD wPopupAttributes; + BOOL bFullscreenSupported; + COLORREF ColorTable[16]; +} CONSOLE_SCREEN_BUFFER_INFOEX, *PCONSOLE_SCREEN_BUFFER_INFOEX; + +__declspec(dllimport) +BOOL +__stdcall +GetConsoleScreenBufferInfoEx( + HANDLE hConsoleOutput, + PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx + ); + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleScreenBufferInfoEx( + HANDLE hConsoleOutput, + PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx + ); + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleScreenBufferSize( + HANDLE hConsoleOutput, + COORD dwSize + ); + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleCursorPosition( + HANDLE hConsoleOutput, + COORD dwCursorPosition + ); + +__declspec(dllimport) +COORD +__stdcall +GetLargestConsoleWindowSize( + HANDLE hConsoleOutput + ); + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleTextAttribute( + HANDLE hConsoleOutput, + WORD wAttributes + ); + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleWindowInfo( + HANDLE hConsoleOutput, + BOOL bAbsolute, + const SMALL_RECT* lpConsoleWindow + ); + +__declspec(dllimport) +BOOL +__stdcall +WriteConsoleOutputCharacterA( + HANDLE hConsoleOutput, + LPCSTR lpCharacter, + DWORD nLength, + COORD dwWriteCoord, + LPDWORD lpNumberOfCharsWritten + ); + +__declspec(dllimport) +BOOL +__stdcall +WriteConsoleOutputCharacterW( + HANDLE hConsoleOutput, + LPCWSTR lpCharacter, + DWORD nLength, + COORD dwWriteCoord, + LPDWORD lpNumberOfCharsWritten + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +WriteConsoleOutputAttribute( + HANDLE hConsoleOutput, + const WORD* lpAttribute, + DWORD nLength, + COORD dwWriteCoord, + LPDWORD lpNumberOfAttrsWritten + ); + +__declspec(dllimport) +BOOL +__stdcall +ReadConsoleOutputCharacterA( + HANDLE hConsoleOutput, + LPSTR lpCharacter, + DWORD nLength, + COORD dwReadCoord, + LPDWORD lpNumberOfCharsRead + ); + +__declspec(dllimport) +BOOL +__stdcall +ReadConsoleOutputCharacterW( + HANDLE hConsoleOutput, + LPWSTR lpCharacter, + DWORD nLength, + COORD dwReadCoord, + LPDWORD lpNumberOfCharsRead + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +ReadConsoleOutputAttribute( + HANDLE hConsoleOutput, + LPWORD lpAttribute, + DWORD nLength, + COORD dwReadCoord, + LPDWORD lpNumberOfAttrsRead + ); + +__declspec(dllimport) +BOOL +__stdcall +WriteConsoleInputA( + HANDLE hConsoleInput, + const INPUT_RECORD* lpBuffer, + DWORD nLength, + LPDWORD lpNumberOfEventsWritten + ); + +__declspec(dllimport) +BOOL +__stdcall +WriteConsoleInputW( + HANDLE hConsoleInput, + const INPUT_RECORD* lpBuffer, + DWORD nLength, + LPDWORD lpNumberOfEventsWritten + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +ScrollConsoleScreenBufferA( + HANDLE hConsoleOutput, + const SMALL_RECT* lpScrollRectangle, + const SMALL_RECT* lpClipRectangle, + COORD dwDestinationOrigin, + const CHAR_INFO* lpFill + ); + +__declspec(dllimport) +BOOL +__stdcall +ScrollConsoleScreenBufferW( + HANDLE hConsoleOutput, + const SMALL_RECT* lpScrollRectangle, + const SMALL_RECT* lpClipRectangle, + COORD dwDestinationOrigin, + const CHAR_INFO* lpFill + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +WriteConsoleOutputA( + HANDLE hConsoleOutput, + const CHAR_INFO* lpBuffer, + COORD dwBufferSize, + COORD dwBufferCoord, + PSMALL_RECT lpWriteRegion + ); + +__declspec(dllimport) +BOOL +__stdcall +WriteConsoleOutputW( + HANDLE hConsoleOutput, + const CHAR_INFO* lpBuffer, + COORD dwBufferSize, + COORD dwBufferCoord, + PSMALL_RECT lpWriteRegion + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +ReadConsoleOutputA( + HANDLE hConsoleOutput, + PCHAR_INFO lpBuffer, + COORD dwBufferSize, + COORD dwBufferCoord, + PSMALL_RECT lpReadRegion + ); + +__declspec(dllimport) +BOOL +__stdcall +ReadConsoleOutputW( + HANDLE hConsoleOutput, + PCHAR_INFO lpBuffer, + COORD dwBufferSize, + COORD dwBufferCoord, + PSMALL_RECT lpReadRegion + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleTitleA( + LPSTR lpConsoleTitle, + DWORD nSize + ); + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleTitleW( + LPWSTR lpConsoleTitle, + DWORD nSize + ); +# 448 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi2.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetConsoleOriginalTitleA( + LPSTR lpConsoleTitle, + DWORD nSize + ); + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleOriginalTitleW( + LPWSTR lpConsoleTitle, + DWORD nSize + ); +# 471 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi2.h" 3 +__declspec(dllimport) +BOOL +__stdcall +SetConsoleTitleA( + LPCSTR lpConsoleTitle + ); + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleTitleW( + LPCWSTR lpConsoleTitle + ); +# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincon.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi3.h" 1 3 +# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi3.h" 3 +__declspec(dllimport) +BOOL +__stdcall +GetNumberOfConsoleMouseButtons( + LPDWORD lpNumberOfMouseButtons + ); + + + +__declspec(dllimport) +COORD +__stdcall +GetConsoleFontSize( + HANDLE hConsoleOutput, + DWORD nFont + ); + +__declspec(dllimport) +BOOL +__stdcall +GetCurrentConsoleFont( + HANDLE hConsoleOutput, + BOOL bMaximumWindow, + PCONSOLE_FONT_INFO lpConsoleCurrentFont + ); + + + +typedef struct _CONSOLE_FONT_INFOEX { + ULONG cbSize; + DWORD nFont; + COORD dwFontSize; + UINT FontFamily; + UINT FontWeight; + WCHAR FaceName[32]; +} CONSOLE_FONT_INFOEX, *PCONSOLE_FONT_INFOEX; + +__declspec(dllimport) +BOOL +__stdcall +GetCurrentConsoleFontEx( + HANDLE hConsoleOutput, + BOOL bMaximumWindow, + PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx + ); + +__declspec(dllimport) +BOOL +__stdcall +SetCurrentConsoleFontEx( + HANDLE hConsoleOutput, + BOOL bMaximumWindow, + PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx + ); +# 102 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi3.h" 3 +typedef struct _CONSOLE_SELECTION_INFO { + DWORD dwFlags; + COORD dwSelectionAnchor; + SMALL_RECT srSelection; +} CONSOLE_SELECTION_INFO, *PCONSOLE_SELECTION_INFO; + +__declspec(dllimport) +BOOL +__stdcall +GetConsoleSelectionInfo( + PCONSOLE_SELECTION_INFO lpConsoleSelectionInfo + ); + + + + + + + +typedef struct _CONSOLE_HISTORY_INFO { + UINT cbSize; + UINT HistoryBufferSize; + UINT NumberOfHistoryBuffers; + DWORD dwFlags; +} CONSOLE_HISTORY_INFO, *PCONSOLE_HISTORY_INFO; + +__declspec(dllimport) +BOOL +__stdcall +GetConsoleHistoryInfo( + PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo + ); + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleHistoryInfo( + PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +GetConsoleDisplayMode( + LPDWORD lpModeFlags + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleDisplayMode( + HANDLE hConsoleOutput, + DWORD dwFlags, + PCOORD lpNewScreenBufferDimensions + ); + +__declspec(dllimport) +HWND +__stdcall +GetConsoleWindow( + void + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +AddConsoleAliasA( + LPSTR Source, + LPSTR Target, + LPSTR ExeName + ); + +__declspec(dllimport) +BOOL +__stdcall +AddConsoleAliasW( + LPWSTR Source, + LPWSTR Target, + LPWSTR ExeName + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleAliasA( + LPSTR Source, + LPSTR TargetBuffer, + DWORD TargetBufferLength, + LPSTR ExeName + ); + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleAliasW( + LPWSTR Source, + LPWSTR TargetBuffer, + DWORD TargetBufferLength, + LPWSTR ExeName + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleAliasesLengthA( + LPSTR ExeName + ); + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleAliasesLengthW( + LPWSTR ExeName + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleAliasExesLengthA( + void + ); + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleAliasExesLengthW( + void + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleAliasesA( + LPSTR AliasBuffer, + DWORD AliasBufferLength, + LPSTR ExeName + ); + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleAliasesW( + LPWSTR AliasBuffer, + DWORD AliasBufferLength, + LPWSTR ExeName + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleAliasExesA( + LPSTR ExeNameBuffer, + DWORD ExeNameBufferLength + ); + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleAliasExesW( + LPWSTR ExeNameBuffer, + DWORD ExeNameBufferLength + ); +# 307 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi3.h" 3 +__declspec(dllimport) +void +__stdcall +ExpungeConsoleCommandHistoryA( + LPSTR ExeName + ); + +__declspec(dllimport) +void +__stdcall +ExpungeConsoleCommandHistoryW( + LPWSTR ExeName + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleNumberOfCommandsA( + DWORD Number, + LPSTR ExeName + ); + +__declspec(dllimport) +BOOL +__stdcall +SetConsoleNumberOfCommandsW( + DWORD Number, + LPWSTR ExeName + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleCommandHistoryLengthA( + LPSTR ExeName + ); + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleCommandHistoryLengthW( + LPWSTR ExeName + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleCommandHistoryA( + LPSTR Commands, + DWORD CommandBufferLength, + LPSTR ExeName + ); + +__declspec(dllimport) +DWORD +__stdcall +GetConsoleCommandHistoryW( + LPWSTR Commands, + DWORD CommandBufferLength, + LPWSTR ExeName + ); +# 391 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi3.h" 3 +__declspec(dllimport) +DWORD +__stdcall +GetConsoleProcessList( + LPDWORD lpdwProcessList, + DWORD dwProcessCount + ); +# 49 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincon.h" 2 3 +# 61 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincon.h" 3 +#pragma warning(pop) +# 184 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winver.h" 1 3 +# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winver.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\verrsrc.h" 1 3 +# 147 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\verrsrc.h" 3 +typedef struct tagVS_FIXEDFILEINFO +{ + DWORD dwSignature; + DWORD dwStrucVersion; + DWORD dwFileVersionMS; + DWORD dwFileVersionLS; + DWORD dwProductVersionMS; + DWORD dwProductVersionLS; + DWORD dwFileFlagsMask; + DWORD dwFileFlags; + DWORD dwFileOS; + DWORD dwFileType; + DWORD dwFileSubtype; + DWORD dwFileDateMS; + DWORD dwFileDateLS; +} VS_FIXEDFILEINFO; +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winver.h" 2 3 +# 34 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winver.h" 3 +DWORD +__stdcall +VerFindFileA( + DWORD uFlags, + LPCSTR szFileName, + LPCSTR szWinDir, + LPCSTR szAppDir, + LPSTR szCurDir, + PUINT puCurDirLen, + LPSTR szDestDir, + PUINT puDestDirLen + ); +DWORD +__stdcall +VerFindFileW( + DWORD uFlags, + LPCWSTR szFileName, + LPCWSTR szWinDir, + LPCWSTR szAppDir, + LPWSTR szCurDir, + PUINT puCurDirLen, + LPWSTR szDestDir, + PUINT puDestDirLen + ); +# 74 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winver.h" 3 +DWORD +__stdcall +VerInstallFileA( + DWORD uFlags, + LPCSTR szSrcFileName, + LPCSTR szDestFileName, + LPCSTR szSrcDir, + LPCSTR szDestDir, + LPCSTR szCurDir, + LPSTR szTmpFile, + PUINT puTmpFileLen + ); +DWORD +__stdcall +VerInstallFileW( + DWORD uFlags, + LPCWSTR szSrcFileName, + LPCWSTR szDestFileName, + LPCWSTR szSrcDir, + LPCWSTR szDestDir, + LPCWSTR szCurDir, + LPWSTR szTmpFile, + PUINT puTmpFileLen + ); +# 115 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winver.h" 3 +DWORD +__stdcall +GetFileVersionInfoSizeA( + LPCSTR lptstrFilename, + LPDWORD lpdwHandle + ); + +DWORD +__stdcall +GetFileVersionInfoSizeW( + LPCWSTR lptstrFilename, + LPDWORD lpdwHandle + ); + + + + + + + +BOOL +__stdcall +GetFileVersionInfoA( + LPCSTR lptstrFilename, + DWORD dwHandle, + DWORD dwLen, + LPVOID lpData + ); + +BOOL +__stdcall +GetFileVersionInfoW( + LPCWSTR lptstrFilename, + DWORD dwHandle, + DWORD dwLen, + LPVOID lpData + ); + + + + + + +DWORD __stdcall GetFileVersionInfoSizeExA( DWORD dwFlags, LPCSTR lpwstrFilename, LPDWORD lpdwHandle); +DWORD __stdcall GetFileVersionInfoSizeExW( DWORD dwFlags, LPCWSTR lpwstrFilename, LPDWORD lpdwHandle); + + + + + + +BOOL __stdcall GetFileVersionInfoExA( DWORD dwFlags, + LPCSTR lpwstrFilename, + DWORD dwHandle, + DWORD dwLen, + LPVOID lpData); +BOOL __stdcall GetFileVersionInfoExW( DWORD dwFlags, + LPCWSTR lpwstrFilename, + DWORD dwHandle, + DWORD dwLen, + LPVOID lpData); +# 203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winver.h" 3 +DWORD +__stdcall +VerLanguageNameA( + DWORD wLang, + LPSTR szLang, + DWORD cchLang + ); +DWORD +__stdcall +VerLanguageNameW( + DWORD wLang, + LPWSTR szLang, + DWORD cchLang + ); + + + + + + +BOOL +__stdcall +VerQueryValueA( + LPCVOID pBlock, + LPCSTR lpSubBlock, + LPVOID * lplpBuffer, + PUINT puLen + ); +BOOL +__stdcall +VerQueryValueW( + LPCVOID pBlock, + LPCWSTR lpSubBlock, + LPVOID * lplpBuffer, + PUINT puLen + ); +# 185 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 1 3 +# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) +# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +typedef LONG LSTATUS; +# 102 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +typedef ACCESS_MASK REGSAM; +# 131 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +struct val_context { + int valuelen; + LPVOID value_context; + LPVOID val_buff_ptr; +}; + +typedef struct val_context *PVALCONTEXT; + +typedef struct pvalueA { + LPSTR pv_valuename; + int pv_valuelen; + LPVOID pv_value_context; + DWORD pv_type; +}PVALUEA, *PPVALUEA; +typedef struct pvalueW { + LPWSTR pv_valuename; + int pv_valuelen; + LPVOID pv_value_context; + DWORD pv_type; +}PVALUEW, *PPVALUEW; + + + + +typedef PVALUEA PVALUE; +typedef PPVALUEA PPVALUE; + + +typedef +DWORD __cdecl +QUERYHANDLER (LPVOID keycontext, PVALCONTEXT val_list, DWORD num_vals, + LPVOID outputbuffer, DWORD *total_outlen, DWORD input_blen); + +typedef QUERYHANDLER *PQUERYHANDLER; + +typedef struct provider_info { + PQUERYHANDLER pi_R0_1val; + PQUERYHANDLER pi_R0_allvals; + PQUERYHANDLER pi_R3_1val; + PQUERYHANDLER pi_R3_allvals; + DWORD pi_flags; + LPVOID pi_key_context; +}REG_PROVIDER; + +typedef struct provider_info *PPROVIDER; + +typedef struct value_entA { + LPSTR ve_valuename; + DWORD ve_valuelen; + DWORD_PTR ve_valueptr; + DWORD ve_type; +}VALENTA, *PVALENTA; +typedef struct value_entW { + LPWSTR ve_valuename; + DWORD ve_valuelen; + DWORD_PTR ve_valueptr; + DWORD ve_type; +}VALENTW, *PVALENTW; + + + + +typedef VALENTA VALENT; +typedef PVALENTA PVALENT; +# 239 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegCloseKey( + HKEY hKey + ); + + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegOverridePredefKey ( + HKEY hKey, + HKEY hNewHKey + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegOpenUserClassesRoot( + HANDLE hToken, + DWORD dwOptions, + REGSAM samDesired, + PHKEY phkResult + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegOpenCurrentUser( + REGSAM samDesired, + PHKEY phkResult + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegDisablePredefinedCache( + void + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegDisablePredefinedCacheEx( + void + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegConnectRegistryA ( + LPCSTR lpMachineName, + HKEY hKey, + PHKEY phkResult + ); +__declspec(dllimport) +LSTATUS +__stdcall +RegConnectRegistryW ( + LPCWSTR lpMachineName, + HKEY hKey, + PHKEY phkResult + ); +# 320 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegConnectRegistryExA ( + LPCSTR lpMachineName, + HKEY hKey, + ULONG Flags, + PHKEY phkResult + ); +__declspec(dllimport) +LSTATUS +__stdcall +RegConnectRegistryExW ( + LPCWSTR lpMachineName, + HKEY hKey, + ULONG Flags, + PHKEY phkResult + ); +# 350 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegCreateKeyA ( + HKEY hKey, + LPCSTR lpSubKey, + PHKEY phkResult + ); +__declspec(dllimport) +LSTATUS +__stdcall +RegCreateKeyW ( + HKEY hKey, + LPCWSTR lpSubKey, + PHKEY phkResult + ); + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegCreateKeyExA( + HKEY hKey, + LPCSTR lpSubKey, + DWORD Reserved, + LPSTR lpClass, + DWORD dwOptions, + REGSAM samDesired, + const LPSECURITY_ATTRIBUTES lpSecurityAttributes, + PHKEY phkResult, + LPDWORD lpdwDisposition + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegCreateKeyExW( + HKEY hKey, + LPCWSTR lpSubKey, + DWORD Reserved, + LPWSTR lpClass, + DWORD dwOptions, + REGSAM samDesired, + const LPSECURITY_ATTRIBUTES lpSecurityAttributes, + PHKEY phkResult, + LPDWORD lpdwDisposition + ); +# 413 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegCreateKeyTransactedA ( + HKEY hKey, + LPCSTR lpSubKey, + DWORD Reserved, + LPSTR lpClass, + DWORD dwOptions, + REGSAM samDesired, + const LPSECURITY_ATTRIBUTES lpSecurityAttributes, + PHKEY phkResult, + LPDWORD lpdwDisposition, + HANDLE hTransaction, + PVOID pExtendedParemeter + ); +__declspec(dllimport) +LSTATUS +__stdcall +RegCreateKeyTransactedW ( + HKEY hKey, + LPCWSTR lpSubKey, + DWORD Reserved, + LPWSTR lpClass, + DWORD dwOptions, + REGSAM samDesired, + const LPSECURITY_ATTRIBUTES lpSecurityAttributes, + PHKEY phkResult, + LPDWORD lpdwDisposition, + HANDLE hTransaction, + PVOID pExtendedParemeter + ); +# 457 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegDeleteKeyA ( + HKEY hKey, + LPCSTR lpSubKey + ); +__declspec(dllimport) +LSTATUS +__stdcall +RegDeleteKeyW ( + HKEY hKey, + LPCWSTR lpSubKey + ); + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegDeleteKeyExA( + HKEY hKey, + LPCSTR lpSubKey, + REGSAM samDesired, + DWORD Reserved + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegDeleteKeyExW( + HKEY hKey, + LPCWSTR lpSubKey, + REGSAM samDesired, + DWORD Reserved + ); +# 508 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegDeleteKeyTransactedA ( + HKEY hKey, + LPCSTR lpSubKey, + REGSAM samDesired, + DWORD Reserved, + HANDLE hTransaction, + PVOID pExtendedParameter + ); +__declspec(dllimport) +LSTATUS +__stdcall +RegDeleteKeyTransactedW ( + HKEY hKey, + LPCWSTR lpSubKey, + REGSAM samDesired, + DWORD Reserved, + HANDLE hTransaction, + PVOID pExtendedParameter + ); +# 542 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LONG +__stdcall +RegDisableReflectionKey ( + HKEY hBase + ); + +__declspec(dllimport) +LONG +__stdcall +RegEnableReflectionKey ( + HKEY hBase + ); + +__declspec(dllimport) +LONG +__stdcall +RegQueryReflectionKey ( + HKEY hBase, + BOOL *bIsReflectionDisabled + ); + + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegDeleteValueA( + HKEY hKey, + LPCSTR lpValueName + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegDeleteValueW( + HKEY hKey, + LPCWSTR lpValueName + ); + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegEnumKeyA ( + HKEY hKey, + DWORD dwIndex, + LPSTR lpName, + DWORD cchName + ); +__declspec(dllimport) +LSTATUS +__stdcall +RegEnumKeyW ( + HKEY hKey, + DWORD dwIndex, + LPWSTR lpName, + DWORD cchName + ); + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegEnumKeyExA( + HKEY hKey, + DWORD dwIndex, + LPSTR lpName, + LPDWORD lpcchName, + LPDWORD lpReserved, + LPSTR lpClass, + LPDWORD lpcchClass, + PFILETIME lpftLastWriteTime + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegEnumKeyExW( + HKEY hKey, + DWORD dwIndex, + LPWSTR lpName, + LPDWORD lpcchName, + LPDWORD lpReserved, + LPWSTR lpClass, + LPDWORD lpcchClass, + PFILETIME lpftLastWriteTime + ); + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegEnumValueA( + HKEY hKey, + DWORD dwIndex, + LPSTR lpValueName, + LPDWORD lpcchValueName, + LPDWORD lpReserved, + LPDWORD lpType, + LPBYTE lpData, + LPDWORD lpcbData + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegEnumValueW( + HKEY hKey, + DWORD dwIndex, + LPWSTR lpValueName, + LPDWORD lpcchValueName, + LPDWORD lpReserved, + LPDWORD lpType, + LPBYTE lpData, + LPDWORD lpcbData + ); +# 687 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegFlushKey( + HKEY hKey + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegGetKeySecurity( + HKEY hKey, + SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor, + LPDWORD lpcbSecurityDescriptor + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegLoadKeyA( + HKEY hKey, + LPCSTR lpSubKey, + LPCSTR lpFile + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegLoadKeyW( + HKEY hKey, + LPCWSTR lpSubKey, + LPCWSTR lpFile + ); + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegNotifyChangeKeyValue( + HKEY hKey, + BOOL bWatchSubtree, + DWORD dwNotifyFilter, + HANDLE hEvent, + BOOL fAsynchronous + ); + + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegOpenKeyA ( + HKEY hKey, + LPCSTR lpSubKey, + PHKEY phkResult + ); +__declspec(dllimport) +LSTATUS +__stdcall +RegOpenKeyW ( + HKEY hKey, + LPCWSTR lpSubKey, + PHKEY phkResult + ); + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegOpenKeyExA( + HKEY hKey, + LPCSTR lpSubKey, + DWORD ulOptions, + REGSAM samDesired, + PHKEY phkResult + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegOpenKeyExW( + HKEY hKey, + LPCWSTR lpSubKey, + DWORD ulOptions, + REGSAM samDesired, + PHKEY phkResult + ); +# 799 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegOpenKeyTransactedA ( + HKEY hKey, + LPCSTR lpSubKey, + DWORD ulOptions, + REGSAM samDesired, + PHKEY phkResult, + HANDLE hTransaction, + PVOID pExtendedParemeter + ); +__declspec(dllimport) +LSTATUS +__stdcall +RegOpenKeyTransactedW ( + HKEY hKey, + LPCWSTR lpSubKey, + DWORD ulOptions, + REGSAM samDesired, + PHKEY phkResult, + HANDLE hTransaction, + PVOID pExtendedParemeter + ); +# 835 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegQueryInfoKeyA( + HKEY hKey, + LPSTR lpClass, + LPDWORD lpcchClass, + LPDWORD lpReserved, + LPDWORD lpcSubKeys, + LPDWORD lpcbMaxSubKeyLen, + LPDWORD lpcbMaxClassLen, + LPDWORD lpcValues, + LPDWORD lpcbMaxValueNameLen, + LPDWORD lpcbMaxValueLen, + LPDWORD lpcbSecurityDescriptor, + PFILETIME lpftLastWriteTime + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegQueryInfoKeyW( + HKEY hKey, + LPWSTR lpClass, + LPDWORD lpcchClass, + LPDWORD lpReserved, + LPDWORD lpcSubKeys, + LPDWORD lpcbMaxSubKeyLen, + LPDWORD lpcbMaxClassLen, + LPDWORD lpcValues, + LPDWORD lpcbMaxValueNameLen, + LPDWORD lpcbMaxValueLen, + LPDWORD lpcbSecurityDescriptor, + PFILETIME lpftLastWriteTime + ); +# 882 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegQueryValueA ( + HKEY hKey, + LPCSTR lpSubKey, + LPSTR lpData, + PLONG lpcbData + ); +__declspec(dllimport) +LSTATUS +__stdcall +RegQueryValueW ( + HKEY hKey, + LPCWSTR lpSubKey, + LPWSTR lpData, + PLONG lpcbData + ); +# 908 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegQueryMultipleValuesA( + HKEY hKey, + PVALENTA val_list, + DWORD num_vals, + LPSTR lpValueBuf, + LPDWORD ldwTotsize + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegQueryMultipleValuesW( + HKEY hKey, + PVALENTW val_list, + DWORD num_vals, + LPWSTR lpValueBuf, + LPDWORD ldwTotsize + ); +# 943 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegQueryValueExA( + HKEY hKey, + LPCSTR lpValueName, + LPDWORD lpReserved, + LPDWORD lpType, + LPBYTE lpData, + LPDWORD lpcbData + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegQueryValueExW( + HKEY hKey, + LPCWSTR lpValueName, + LPDWORD lpReserved, + LPDWORD lpType, + LPBYTE lpData, + LPDWORD lpcbData + ); +# 978 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegReplaceKeyA ( + HKEY hKey, + LPCSTR lpSubKey, + LPCSTR lpNewFile, + LPCSTR lpOldFile + ); +__declspec(dllimport) +LSTATUS +__stdcall +RegReplaceKeyW ( + HKEY hKey, + LPCWSTR lpSubKey, + LPCWSTR lpNewFile, + LPCWSTR lpOldFile + ); + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegRestoreKeyA( + HKEY hKey, + LPCSTR lpFile, + DWORD dwFlags + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegRestoreKeyW( + HKEY hKey, + LPCWSTR lpFile, + DWORD dwFlags + ); +# 1033 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegRenameKey( + HKEY hKey, + LPCWSTR lpSubKeyName, + LPCWSTR lpNewKeyName + ); +# 1050 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegSaveKeyA ( + HKEY hKey, + LPCSTR lpFile, + const LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); +__declspec(dllimport) +LSTATUS +__stdcall +RegSaveKeyW ( + HKEY hKey, + LPCWSTR lpFile, + const LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegSetKeySecurity( + HKEY hKey, + SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegSetValueA ( + HKEY hKey, + LPCSTR lpSubKey, + DWORD dwType, + LPCSTR lpData, + DWORD cbData + ); +__declspec(dllimport) +LSTATUS +__stdcall +RegSetValueW ( + HKEY hKey, + LPCWSTR lpSubKey, + DWORD dwType, + LPCWSTR lpData, + DWORD cbData + ); +# 1113 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegSetValueExA( + HKEY hKey, + LPCSTR lpValueName, + DWORD Reserved, + DWORD dwType, + const BYTE* lpData, + DWORD cbData + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegSetValueExW( + HKEY hKey, + LPCWSTR lpValueName, + DWORD Reserved, + DWORD dwType, + const BYTE* lpData, + DWORD cbData + ); +# 1148 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegUnLoadKeyA( + HKEY hKey, + LPCSTR lpSubKey + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegUnLoadKeyW( + HKEY hKey, + LPCWSTR lpSubKey + ); +# 1174 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegDeleteKeyValueA( + HKEY hKey, + LPCSTR lpSubKey, + LPCSTR lpValueName + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegDeleteKeyValueW( + HKEY hKey, + LPCWSTR lpSubKey, + LPCWSTR lpValueName + ); + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegSetKeyValueA( + HKEY hKey, + LPCSTR lpSubKey, + LPCSTR lpValueName, + DWORD dwType, + LPCVOID lpData, + DWORD cbData + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegSetKeyValueW( + HKEY hKey, + LPCWSTR lpSubKey, + LPCWSTR lpValueName, + DWORD dwType, + LPCVOID lpData, + DWORD cbData + ); + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegDeleteTreeA( + HKEY hKey, + LPCSTR lpSubKey + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegDeleteTreeW( + HKEY hKey, + LPCWSTR lpSubKey + ); + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegCopyTreeA ( + HKEY hKeySrc, + LPCSTR lpSubKey, + HKEY hKeyDest + ); +# 1263 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegGetValueA( + HKEY hkey, + LPCSTR lpSubKey, + LPCSTR lpValue, + DWORD dwFlags, + LPDWORD pdwType, + + + + + + + + PVOID pvData, + LPDWORD pcbData + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegGetValueW( + HKEY hkey, + LPCWSTR lpSubKey, + LPCWSTR lpValue, + DWORD dwFlags, + LPDWORD pdwType, + + + + + + + + PVOID pvData, + LPDWORD pcbData + ); +# 1312 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +LSTATUS +__stdcall +RegCopyTreeW( + HKEY hKeySrc, + LPCWSTR lpSubKey, + HKEY hKeyDest + ); + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegLoadMUIStringA( + HKEY hKey, + LPCSTR pszValue, + LPSTR pszOutBuf, + DWORD cbOutBuf, + LPDWORD pcbData, + DWORD Flags, + LPCSTR pszDirectory + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegLoadMUIStringW( + HKEY hKey, + LPCWSTR pszValue, + LPWSTR pszOutBuf, + DWORD cbOutBuf, + LPDWORD pcbData, + DWORD Flags, + LPCWSTR pszDirectory + ); + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegLoadAppKeyA( + LPCSTR lpFile, + PHKEY phkResult, + REGSAM samDesired, + DWORD dwOptions, + DWORD Reserved + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegLoadAppKeyW( + LPCWSTR lpFile, + PHKEY phkResult, + REGSAM samDesired, + DWORD dwOptions, + DWORD Reserved + ); +# 1395 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +BOOL +__stdcall +InitiateSystemShutdownA( + LPSTR lpMachineName, + LPSTR lpMessage, + DWORD dwTimeout, + BOOL bForceAppsClosed, + BOOL bRebootAfterShutdown + ); + +__declspec(dllimport) +BOOL +__stdcall +InitiateSystemShutdownW( + LPWSTR lpMachineName, + LPWSTR lpMessage, + DWORD dwTimeout, + BOOL bForceAppsClosed, + BOOL bRebootAfterShutdown + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +AbortSystemShutdownA( + LPSTR lpMachineName + ); +__declspec(dllimport) +BOOL +__stdcall +AbortSystemShutdownW( + LPWSTR lpMachineName + ); +# 1444 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\reason.h" 1 3 +# 1445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 2 3 +# 1466 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +BOOL +__stdcall +InitiateSystemShutdownExA( + LPSTR lpMachineName, + LPSTR lpMessage, + DWORD dwTimeout, + BOOL bForceAppsClosed, + BOOL bRebootAfterShutdown, + DWORD dwReason + ); + + + +__declspec(dllimport) +BOOL +__stdcall +InitiateSystemShutdownExW( + LPWSTR lpMachineName, + LPWSTR lpMessage, + DWORD dwTimeout, + BOOL bForceAppsClosed, + BOOL bRebootAfterShutdown, + DWORD dwReason + ); +# 1519 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +__declspec(dllimport) +DWORD +__stdcall +InitiateShutdownA( + LPSTR lpMachineName, + LPSTR lpMessage, + DWORD dwGracePeriod, + DWORD dwShutdownFlags, + DWORD dwReason + ); +__declspec(dllimport) +DWORD +__stdcall +InitiateShutdownW( + LPWSTR lpMachineName, + LPWSTR lpMessage, + DWORD dwGracePeriod, + DWORD dwShutdownFlags, + DWORD dwReason + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +CheckForHiberboot( + PBOOLEAN pHiberboot, + BOOLEAN bClearFlag + ); + + + + + + + +__declspec(dllimport) +LSTATUS +__stdcall +RegSaveKeyExA( + HKEY hKey, + LPCSTR lpFile, + const LPSECURITY_ATTRIBUTES lpSecurityAttributes, + DWORD Flags + ); + +__declspec(dllimport) +LSTATUS +__stdcall +RegSaveKeyExW( + HKEY hKey, + LPCWSTR lpFile, + const LPSECURITY_ATTRIBUTES lpSecurityAttributes, + DWORD Flags + ); +# 1588 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 +#pragma warning(pop) +# 188 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 1 3 +# 37 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) +# 51 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wnnc.h" 1 3 +# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 2 3 +# 100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +typedef struct _NETRESOURCEA { + DWORD dwScope; + DWORD dwType; + DWORD dwDisplayType; + DWORD dwUsage; + LPSTR lpLocalName; + LPSTR lpRemoteName; + LPSTR lpComment ; + LPSTR lpProvider; +}NETRESOURCEA, *LPNETRESOURCEA; +typedef struct _NETRESOURCEW { + DWORD dwScope; + DWORD dwType; + DWORD dwDisplayType; + DWORD dwUsage; + LPWSTR lpLocalName; + LPWSTR lpRemoteName; + LPWSTR lpComment ; + LPWSTR lpProvider; +}NETRESOURCEW, *LPNETRESOURCEW; + + + + +typedef NETRESOURCEA NETRESOURCE; +typedef LPNETRESOURCEA LPNETRESOURCE; +# 166 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +DWORD __stdcall +WNetAddConnectionA( + LPCSTR lpRemoteName, + LPCSTR lpPassword, + LPCSTR lpLocalName + ); + +DWORD __stdcall +WNetAddConnectionW( + LPCWSTR lpRemoteName, + LPCWSTR lpPassword, + LPCWSTR lpLocalName + ); + + + + + + + +DWORD __stdcall +WNetAddConnection2A( + LPNETRESOURCEA lpNetResource, + LPCSTR lpPassword, + LPCSTR lpUserName, + DWORD dwFlags + ); + +DWORD __stdcall +WNetAddConnection2W( + LPNETRESOURCEW lpNetResource, + LPCWSTR lpPassword, + LPCWSTR lpUserName, + DWORD dwFlags + ); + + + + + + + +DWORD __stdcall +WNetAddConnection3A( + HWND hwndOwner, + LPNETRESOURCEA lpNetResource, + LPCSTR lpPassword, + LPCSTR lpUserName, + DWORD dwFlags + ); + +DWORD __stdcall +WNetAddConnection3W( + HWND hwndOwner, + LPNETRESOURCEW lpNetResource, + LPCWSTR lpPassword, + LPCWSTR lpUserName, + DWORD dwFlags + ); +# 233 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +DWORD __stdcall +WNetAddConnection4A( + HWND hwndOwner, + LPNETRESOURCEA lpNetResource, + PVOID pAuthBuffer, + DWORD cbAuthBuffer, + DWORD dwFlags, + PBYTE lpUseOptions, + DWORD cbUseOptions + ); + +DWORD __stdcall +WNetAddConnection4W( + HWND hwndOwner, + LPNETRESOURCEW lpNetResource, + PVOID pAuthBuffer, + DWORD cbAuthBuffer, + DWORD dwFlags, + PBYTE lpUseOptions, + DWORD cbUseOptions + ); +# 262 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +DWORD __stdcall +WNetCancelConnectionA( + LPCSTR lpName, + BOOL fForce + ); + +DWORD __stdcall +WNetCancelConnectionW( + LPCWSTR lpName, + BOOL fForce + ); + + + + + + + +DWORD __stdcall +WNetCancelConnection2A( + LPCSTR lpName, + DWORD dwFlags, + BOOL fForce + ); + +DWORD __stdcall +WNetCancelConnection2W( + LPCWSTR lpName, + DWORD dwFlags, + BOOL fForce + ); + + + + + + + +DWORD __stdcall +WNetGetConnectionA( + LPCSTR lpLocalName, + LPSTR lpRemoteName, + LPDWORD lpnLength + ); + +DWORD __stdcall +WNetGetConnectionW( + LPCWSTR lpLocalName, + LPWSTR lpRemoteName, + LPDWORD lpnLength + ); +# 328 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +DWORD __stdcall +WNetRestoreSingleConnectionW( + HWND hwndParent, + LPCWSTR lpDevice, + BOOL fUseUI + ); +# 353 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +DWORD __stdcall +WNetUseConnectionA( + HWND hwndOwner, + LPNETRESOURCEA lpNetResource, + LPCSTR lpPassword, + LPCSTR lpUserId, + DWORD dwFlags, + LPSTR lpAccessName, + LPDWORD lpBufferSize, + LPDWORD lpResult + ); + +DWORD __stdcall +WNetUseConnectionW( + HWND hwndOwner, + LPNETRESOURCEW lpNetResource, + LPCWSTR lpPassword, + LPCWSTR lpUserId, + DWORD dwFlags, + LPWSTR lpAccessName, + LPDWORD lpBufferSize, + LPDWORD lpResult + ); +# 385 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +DWORD __stdcall +WNetUseConnection4A( + HWND hwndOwner, + LPNETRESOURCEA lpNetResource, + PVOID pAuthBuffer, + DWORD cbAuthBuffer, + DWORD dwFlags, + PBYTE lpUseOptions, + DWORD cbUseOptions, + LPSTR lpAccessName, + LPDWORD lpBufferSize, + LPDWORD lpResult + ); + +DWORD __stdcall +WNetUseConnection4W( + HWND hwndOwner, + LPNETRESOURCEW lpNetResource, + PVOID pAuthBuffer, + DWORD cbAuthBuffer, + DWORD dwFlags, + PBYTE lpUseOptions, + DWORD cbUseOptions, + LPWSTR lpAccessName, + LPDWORD lpBufferSize, + LPDWORD lpResult + ); +# 424 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +DWORD __stdcall +WNetConnectionDialog( + HWND hwnd, + DWORD dwType + ); + + +DWORD __stdcall +WNetDisconnectDialog( + HWND hwnd, + DWORD dwType + ); + + +typedef struct _CONNECTDLGSTRUCTA{ + DWORD cbStructure; + HWND hwndOwner; + LPNETRESOURCEA lpConnRes; + DWORD dwFlags; + DWORD dwDevNum; +} CONNECTDLGSTRUCTA, *LPCONNECTDLGSTRUCTA; +typedef struct _CONNECTDLGSTRUCTW{ + DWORD cbStructure; + HWND hwndOwner; + LPNETRESOURCEW lpConnRes; + DWORD dwFlags; + DWORD dwDevNum; +} CONNECTDLGSTRUCTW, *LPCONNECTDLGSTRUCTW; + + + + +typedef CONNECTDLGSTRUCTA CONNECTDLGSTRUCT; +typedef LPCONNECTDLGSTRUCTA LPCONNECTDLGSTRUCT; +# 474 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +DWORD __stdcall +WNetConnectionDialog1A( + LPCONNECTDLGSTRUCTA lpConnDlgStruct + ); + +DWORD __stdcall +WNetConnectionDialog1W( + LPCONNECTDLGSTRUCTW lpConnDlgStruct + ); + + + + + + +typedef struct _DISCDLGSTRUCTA{ + DWORD cbStructure; + HWND hwndOwner; + LPSTR lpLocalName; + LPSTR lpRemoteName; + DWORD dwFlags; +} DISCDLGSTRUCTA, *LPDISCDLGSTRUCTA; +typedef struct _DISCDLGSTRUCTW{ + DWORD cbStructure; + HWND hwndOwner; + LPWSTR lpLocalName; + LPWSTR lpRemoteName; + DWORD dwFlags; +} DISCDLGSTRUCTW, *LPDISCDLGSTRUCTW; + + + + +typedef DISCDLGSTRUCTA DISCDLGSTRUCT; +typedef LPDISCDLGSTRUCTA LPDISCDLGSTRUCT; + + + + + + +DWORD __stdcall +WNetDisconnectDialog1A( + LPDISCDLGSTRUCTA lpConnDlgStruct + ); + +DWORD __stdcall +WNetDisconnectDialog1W( + LPDISCDLGSTRUCTW lpConnDlgStruct + ); +# 536 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +DWORD __stdcall +WNetOpenEnumA( + DWORD dwScope, + DWORD dwType, + DWORD dwUsage, + LPNETRESOURCEA lpNetResource, + LPHANDLE lphEnum + ); + +DWORD __stdcall +WNetOpenEnumW( + DWORD dwScope, + DWORD dwType, + DWORD dwUsage, + LPNETRESOURCEW lpNetResource, + LPHANDLE lphEnum + ); + + + + + + + +DWORD __stdcall +WNetEnumResourceA( + HANDLE hEnum, + LPDWORD lpcCount, + LPVOID lpBuffer, + LPDWORD lpBufferSize + ); + +DWORD __stdcall +WNetEnumResourceW( + HANDLE hEnum, + LPDWORD lpcCount, + LPVOID lpBuffer, + LPDWORD lpBufferSize + ); + + + + + + + +DWORD __stdcall +WNetCloseEnum( + HANDLE hEnum + ); + + + +DWORD __stdcall +WNetGetResourceParentA( + LPNETRESOURCEA lpNetResource, + LPVOID lpBuffer, + LPDWORD lpcbBuffer + ); + +DWORD __stdcall +WNetGetResourceParentW( + LPNETRESOURCEW lpNetResource, + LPVOID lpBuffer, + LPDWORD lpcbBuffer + ); + + + + + + + +DWORD __stdcall +WNetGetResourceInformationA( + LPNETRESOURCEA lpNetResource, + LPVOID lpBuffer, + LPDWORD lpcbBuffer, + LPSTR *lplpSystem + ); + +DWORD __stdcall +WNetGetResourceInformationW( + LPNETRESOURCEW lpNetResource, + LPVOID lpBuffer, + LPDWORD lpcbBuffer, + LPWSTR *lplpSystem + ); +# 638 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +typedef struct _UNIVERSAL_NAME_INFOA { + LPSTR lpUniversalName; +}UNIVERSAL_NAME_INFOA, *LPUNIVERSAL_NAME_INFOA; +typedef struct _UNIVERSAL_NAME_INFOW { + LPWSTR lpUniversalName; +}UNIVERSAL_NAME_INFOW, *LPUNIVERSAL_NAME_INFOW; + + + + +typedef UNIVERSAL_NAME_INFOA UNIVERSAL_NAME_INFO; +typedef LPUNIVERSAL_NAME_INFOA LPUNIVERSAL_NAME_INFO; + + +typedef struct _REMOTE_NAME_INFOA { + LPSTR lpUniversalName; + LPSTR lpConnectionName; + LPSTR lpRemainingPath; +}REMOTE_NAME_INFOA, *LPREMOTE_NAME_INFOA; +typedef struct _REMOTE_NAME_INFOW { + LPWSTR lpUniversalName; + LPWSTR lpConnectionName; + LPWSTR lpRemainingPath; +}REMOTE_NAME_INFOW, *LPREMOTE_NAME_INFOW; + + + + +typedef REMOTE_NAME_INFOA REMOTE_NAME_INFO; +typedef LPREMOTE_NAME_INFOA LPREMOTE_NAME_INFO; + + + +DWORD __stdcall +WNetGetUniversalNameA( + LPCSTR lpLocalPath, + DWORD dwInfoLevel, + LPVOID lpBuffer, + LPDWORD lpBufferSize + ); + +DWORD __stdcall +WNetGetUniversalNameW( + LPCWSTR lpLocalPath, + DWORD dwInfoLevel, + LPVOID lpBuffer, + LPDWORD lpBufferSize + ); +# 696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +DWORD __stdcall +WNetGetUserA( + LPCSTR lpName, + LPSTR lpUserName, + LPDWORD lpnLength + ); + + + + +DWORD __stdcall +WNetGetUserW( + LPCWSTR lpName, + LPWSTR lpUserName, + LPDWORD lpnLength + ); +# 734 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +DWORD __stdcall +WNetGetProviderNameA( + DWORD dwNetType, + LPSTR lpProviderName, + LPDWORD lpBufferSize + ); + +DWORD __stdcall +WNetGetProviderNameW( + DWORD dwNetType, + LPWSTR lpProviderName, + LPDWORD lpBufferSize + ); + + + + + + +typedef struct _NETINFOSTRUCT{ + DWORD cbStructure; + DWORD dwProviderVersion; + DWORD dwStatus; + DWORD dwCharacteristics; + ULONG_PTR dwHandle; + WORD wNetType; + DWORD dwPrinters; + DWORD dwDrives; +} NETINFOSTRUCT, *LPNETINFOSTRUCT; + + + + + + +DWORD __stdcall +WNetGetNetworkInformationA( + LPCSTR lpProvider, + LPNETINFOSTRUCT lpNetInfoStruct + ); + +DWORD __stdcall +WNetGetNetworkInformationW( + LPCWSTR lpProvider, + LPNETINFOSTRUCT lpNetInfoStruct + ); +# 793 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +DWORD __stdcall +WNetGetLastErrorA( + LPDWORD lpError, + LPSTR lpErrorBuf, + DWORD nErrorBufSize, + LPSTR lpNameBuf, + DWORD nNameBufSize + ); + +DWORD __stdcall +WNetGetLastErrorW( + LPDWORD lpError, + LPWSTR lpErrorBuf, + DWORD nErrorBufSize, + LPWSTR lpNameBuf, + DWORD nNameBufSize + ); +# 885 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +typedef struct _NETCONNECTINFOSTRUCT{ + DWORD cbStructure; + DWORD dwFlags; + DWORD dwSpeed; + DWORD dwDelay; + DWORD dwOptDataSize; +} NETCONNECTINFOSTRUCT, *LPNETCONNECTINFOSTRUCT; + + + + + + + +DWORD __stdcall +MultinetGetConnectionPerformanceA( + LPNETRESOURCEA lpNetResource, + LPNETCONNECTINFOSTRUCT lpNetConnectInfoStruct + ); + +DWORD __stdcall +MultinetGetConnectionPerformanceW( + LPNETRESOURCEW lpNetResource, + LPNETCONNECTINFOSTRUCT lpNetConnectInfoStruct + ); +# 923 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 +#pragma warning(pop) +# 191 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\cderr.h" 1 3 +# 195 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 1 3 +# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) +# 60 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 3 +typedef struct { + + unsigned short bAppReturnCode:8, + reserved:6, + fBusy:1, + fAck:1; + + + +} DDEACK; +# 79 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 3 +typedef struct { + + unsigned short reserved:14, + fDeferUpd:1, + fAckReq:1; + + + + short cfFormat; +} DDEADVISE; +# 100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 3 +typedef struct { + + unsigned short unused:12, + fResponse:1, + fRelease:1, + reserved:1, + fAckReq:1; + + + + short cfFormat; + BYTE Value[1]; +} DDEDATA; +# 124 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 3 +typedef struct { + + unsigned short unused:13, + + fRelease:1, + fReserved:2; + + + + short cfFormat; + BYTE Value[1]; + + +} DDEPOKE; +# 149 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 3 +typedef struct { + + unsigned short unused:13, + fRelease:1, + fDeferUpd:1, + fAckReq:1; + + + + short cfFormat; +} DDELN; + +typedef struct { + + unsigned short unused:12, + fAck:1, + fRelease:1, + fReserved:1, + fAckReq:1; + + + + short cfFormat; + BYTE rgb[1]; +} DDEUP; + + + + + + +BOOL +__stdcall +DdeSetQualityOfService( + HWND hwndClient, + const SECURITY_QUALITY_OF_SERVICE *pqosNew, + PSECURITY_QUALITY_OF_SERVICE pqosPrev); + +BOOL +__stdcall +ImpersonateDdeClientWindow( + HWND hWndClient, + HWND hWndServer); + + + + +LPARAM __stdcall PackDDElParam( UINT msg, UINT_PTR uiLo, UINT_PTR uiHi); +BOOL __stdcall UnpackDDElParam( UINT msg, LPARAM lParam, PUINT_PTR puiLo, PUINT_PTR puiHi); +BOOL __stdcall FreeDDElParam( UINT msg, LPARAM lParam); +LPARAM __stdcall ReuseDDElParam(LPARAM lParam, UINT msgIn, UINT msgOut, UINT_PTR uiLo, UINT_PTR uiHi); +# 209 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 3 +#pragma warning(pop) +# 196 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 1 3 +# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) +# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 3 +struct HCONVLIST__{int unused;}; typedef struct HCONVLIST__ *HCONVLIST; +struct HCONV__{int unused;}; typedef struct HCONV__ *HCONV; +struct HSZ__{int unused;}; typedef struct HSZ__ *HSZ; +struct HDDEDATA__{int unused;}; typedef struct HDDEDATA__ *HDDEDATA; + + + + +typedef struct tagHSZPAIR { + HSZ hszSvc; + HSZ hszTopic; +} HSZPAIR, *PHSZPAIR; + + + + +typedef struct tagCONVCONTEXT { + UINT cb; + UINT wFlags; + UINT wCountryID; + int iCodePage; + DWORD dwLangID; + DWORD dwSecurity; + SECURITY_QUALITY_OF_SERVICE qos; +} CONVCONTEXT, *PCONVCONTEXT; + + + + +typedef struct tagCONVINFO { + DWORD cb; + DWORD_PTR hUser; + HCONV hConvPartner; + HSZ hszSvcPartner; + HSZ hszServiceReq; + HSZ hszTopic; + HSZ hszItem; + UINT wFmt; + UINT wType; + UINT wStatus; + UINT wConvst; + UINT wLastError; + HCONVLIST hConvList; + CONVCONTEXT ConvCtxt; + HWND hwnd; + HWND hwndPartner; +} CONVINFO, *PCONVINFO; +# 212 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 3 +typedef HDDEDATA __stdcall FNCALLBACK(UINT wType, UINT wFmt, HCONV hConv, + HSZ hsz1, HSZ hsz2, HDDEDATA hData, ULONG_PTR dwData1, ULONG_PTR dwData2); +typedef HDDEDATA (__stdcall *PFNCALLBACK)(UINT wType, UINT wFmt, HCONV hConv, + HSZ hsz1, HSZ hsz2, HDDEDATA hData, ULONG_PTR dwData1, ULONG_PTR dwData2); + + + + + +UINT +__stdcall +DdeInitializeA( + LPDWORD pidInst, + PFNCALLBACK pfnCallback, + DWORD afCmd, + DWORD ulRes); +UINT +__stdcall +DdeInitializeW( + LPDWORD pidInst, + PFNCALLBACK pfnCallback, + DWORD afCmd, + DWORD ulRes); +# 272 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 3 +BOOL +__stdcall +DdeUninitialize( + DWORD idInst); + + + + +HCONVLIST +__stdcall +DdeConnectList( + DWORD idInst, + HSZ hszService, + HSZ hszTopic, + HCONVLIST hConvList, + PCONVCONTEXT pCC); + +HCONV +__stdcall +DdeQueryNextServer( + HCONVLIST hConvList, + HCONV hConvPrev); +BOOL +__stdcall +DdeDisconnectList( + HCONVLIST hConvList); + + + + +HCONV +__stdcall +DdeConnect( + DWORD idInst, + HSZ hszService, + HSZ hszTopic, + PCONVCONTEXT pCC); + +BOOL +__stdcall +DdeDisconnect( + HCONV hConv); + +HCONV +__stdcall +DdeReconnect( + HCONV hConv); + +UINT +__stdcall +DdeQueryConvInfo( + HCONV hConv, + DWORD idTransaction, + PCONVINFO pConvInfo); + +BOOL +__stdcall +DdeSetUserHandle( + HCONV hConv, + DWORD id, + DWORD_PTR hUser); + +BOOL +__stdcall +DdeAbandonTransaction( + DWORD idInst, + HCONV hConv, + DWORD idTransaction); + + + + + +BOOL +__stdcall +DdePostAdvise( + DWORD idInst, + HSZ hszTopic, + HSZ hszItem); + +BOOL +__stdcall +DdeEnableCallback( + DWORD idInst, + HCONV hConv, + UINT wCmd); + +BOOL +__stdcall +DdeImpersonateClient( + HCONV hConv); + + + + + + + +HDDEDATA +__stdcall +DdeNameService( + DWORD idInst, + HSZ hsz1, + HSZ hsz2, + UINT afCmd); +# 386 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 3 +HDDEDATA +__stdcall +DdeClientTransaction( + LPBYTE pData, + DWORD cbData, + HCONV hConv, + HSZ hszItem, + UINT wFmt, + UINT wType, + DWORD dwTimeout, + LPDWORD pdwResult); + + + + + + +HDDEDATA +__stdcall +DdeCreateDataHandle( + DWORD idInst, + LPBYTE pSrc, + DWORD cb, + DWORD cbOff, + HSZ hszItem, + UINT wFmt, + UINT afCmd); + +HDDEDATA +__stdcall +DdeAddData( + HDDEDATA hData, + LPBYTE pSrc, + DWORD cb, + DWORD cbOff); + +DWORD +__stdcall +DdeGetData( + HDDEDATA hData, + LPBYTE pDst, + DWORD cbMax, + DWORD cbOff); + +LPBYTE +__stdcall +DdeAccessData( + HDDEDATA hData, + LPDWORD pcbDataSize); + +BOOL +__stdcall +DdeUnaccessData( + HDDEDATA hData); + +BOOL +__stdcall +DdeFreeDataHandle( + HDDEDATA hData); + + + + +UINT +__stdcall +DdeGetLastError( + DWORD idInst); +# 480 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 3 +HSZ +__stdcall +DdeCreateStringHandleA( + DWORD idInst, + LPCSTR psz, + int iCodePage); +HSZ +__stdcall +DdeCreateStringHandleW( + DWORD idInst, + LPCWSTR psz, + int iCodePage); + + + + + + +DWORD +__stdcall +DdeQueryStringA( + DWORD idInst, + HSZ hsz, + LPSTR psz, + DWORD cchMax, + int iCodePage); +DWORD +__stdcall +DdeQueryStringW( + DWORD idInst, + HSZ hsz, + LPWSTR psz, + DWORD cchMax, + int iCodePage); + + + + + + +BOOL +__stdcall +DdeFreeStringHandle( + DWORD idInst, + HSZ hsz); + +BOOL +__stdcall +DdeKeepStringHandle( + DWORD idInst, + HSZ hsz); + +int +__stdcall +DdeCmpStringHandles( + HSZ hsz1, + HSZ hsz2); + + + + + + +typedef struct tagDDEML_MSG_HOOK_DATA { + UINT_PTR uiLo; + UINT_PTR uiHi; + DWORD cbData; + DWORD Data[8]; +} DDEML_MSG_HOOK_DATA, *PDDEML_MSG_HOOK_DATA; + + +typedef struct tagMONMSGSTRUCT { + UINT cb; + HWND hwndTo; + DWORD dwTime; + HANDLE hTask; + UINT wMsg; + WPARAM wParam; + LPARAM lParam; + DDEML_MSG_HOOK_DATA dmhd; +} MONMSGSTRUCT, *PMONMSGSTRUCT; + +typedef struct tagMONCBSTRUCT { + UINT cb; + DWORD dwTime; + HANDLE hTask; + DWORD dwRet; + UINT wType; + UINT wFmt; + HCONV hConv; + HSZ hsz1; + HSZ hsz2; + HDDEDATA hData; + ULONG_PTR dwData1; + ULONG_PTR dwData2; + CONVCONTEXT cc; + DWORD cbData; + DWORD Data[8]; +} MONCBSTRUCT, *PMONCBSTRUCT; + +typedef struct tagMONHSZSTRUCTA { + UINT cb; + BOOL fsAction; + DWORD dwTime; + HSZ hsz; + HANDLE hTask; + CHAR str[1]; +} MONHSZSTRUCTA, *PMONHSZSTRUCTA; +typedef struct tagMONHSZSTRUCTW { + UINT cb; + BOOL fsAction; + DWORD dwTime; + HSZ hsz; + HANDLE hTask; + WCHAR str[1]; +} MONHSZSTRUCTW, *PMONHSZSTRUCTW; + + + + +typedef MONHSZSTRUCTA MONHSZSTRUCT; +typedef PMONHSZSTRUCTA PMONHSZSTRUCT; + + + + + + + +typedef struct tagMONERRSTRUCT { + UINT cb; + UINT wLastError; + DWORD dwTime; + HANDLE hTask; +} MONERRSTRUCT, *PMONERRSTRUCT; + +typedef struct tagMONLINKSTRUCT { + UINT cb; + DWORD dwTime; + HANDLE hTask; + BOOL fEstablished; + BOOL fNoData; + HSZ hszSvc; + HSZ hszTopic; + HSZ hszItem; + UINT wFmt; + BOOL fServer; + HCONV hConvServer; + HCONV hConvClient; +} MONLINKSTRUCT, *PMONLINKSTRUCT; + +typedef struct tagMONCONVSTRUCT { + UINT cb; + BOOL fConnect; + DWORD dwTime; + HANDLE hTask; + HSZ hszSvc; + HSZ hszTopic; + HCONV hConvClient; + HCONV hConvServer; +} MONCONVSTRUCT, *PMONCONVSTRUCT; +# 670 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 3 +#pragma warning(pop) +# 197 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dlgs.h" 1 3 +# 264 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dlgs.h" 3 +typedef struct tagCRGB +{ + BYTE bRed; + BYTE bGreen; + BYTE bBlue; + BYTE bExtra; +} CRGB; +# 198 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\lzexpand.h" 1 3 +# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\lzexpand.h" 3 +INT +__stdcall +LZStart( + void + ); + +void +__stdcall +LZDone( + void + ); + + + + +LONG +__stdcall +CopyLZFile( + INT hfSource, + INT hfDest + ); + + + +LONG +__stdcall +LZCopy( + INT hfSource, + INT hfDest + ); + + + +INT +__stdcall +LZInit( + INT hfSource + ); + + + +INT +__stdcall +GetExpandedNameA( + LPSTR lpszSource, + LPSTR lpszBuffer + ); + + +INT +__stdcall +GetExpandedNameW( + LPWSTR lpszSource, + LPWSTR lpszBuffer + ); +# 115 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\lzexpand.h" 3 +INT +__stdcall +LZOpenFileA( + LPSTR lpFileName, + LPOFSTRUCT lpReOpenBuf, + WORD wStyle + ); + + +INT +__stdcall +LZOpenFileW( + LPWSTR lpFileName, + LPOFSTRUCT lpReOpenBuf, + WORD wStyle + ); +# 139 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\lzexpand.h" 3 +LONG +__stdcall +LZSeek( + INT hFile, + LONG lOffset, + INT iOrigin + ); + + + +INT +__stdcall +LZRead( + INT hFile, + CHAR* lpBuffer, + INT cbRead + ); + +void +__stdcall +LZClose( + INT hFile + ); +# 200 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 1 3 +# 34 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 +# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 3 +#pragma warning(disable: 4201) + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,1) +# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 2 3 +# 94 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 3 +typedef UINT MMVERSION; + + + +typedef UINT MMRESULT; + + + +typedef UINT *LPUINT; + + + + +typedef struct mmtime_tag +{ + UINT wType; + union + { + DWORD ms; + DWORD sample; + DWORD cb; + DWORD ticks; + + + struct + { + BYTE hour; + BYTE min; + BYTE sec; + BYTE frame; + BYTE fps; + BYTE dummy; + + BYTE pad[2]; + + } smpte; + + + struct + { + DWORD songptrpos; + } midi; + } u; +} MMTIME, *PMMTIME, *NPMMTIME, *LPMMTIME; +# 275 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 3 +struct HDRVR__{int unused;}; typedef struct HDRVR__ *HDRVR; +# 297 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 3 +typedef void (__stdcall DRVCALLBACK)(HDRVR hdrvr, UINT uMsg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2); + +typedef DRVCALLBACK *LPDRVCALLBACK; + +typedef DRVCALLBACK *PDRVCALLBACK; +# 312 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 313 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 2 3 +# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,1) +# 38 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 +# 61 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 1 3 +# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 2 3 +# 36 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef DWORD MCIERROR; + + + + +typedef UINT MCIDEVICEID; + + +typedef UINT (__stdcall *YIELDPROC)(MCIDEVICEID mciId, DWORD dwYieldData); + + + + +__declspec(dllimport) +MCIERROR +__stdcall +mciSendCommandA( + MCIDEVICEID mciId, + UINT uMsg, + DWORD_PTR dwParam1, + DWORD_PTR dwParam2 + ); + +__declspec(dllimport) +MCIERROR +__stdcall +mciSendCommandW( + MCIDEVICEID mciId, + UINT uMsg, + DWORD_PTR dwParam1, + DWORD_PTR dwParam2 + ); + + + + + + +__declspec(dllimport) +MCIERROR +__stdcall +mciSendStringA( + LPCSTR lpstrCommand, + LPSTR lpstrReturnString, + UINT uReturnLength, + HWND hwndCallback + ); + +__declspec(dllimport) +MCIERROR +__stdcall +mciSendStringW( + LPCWSTR lpstrCommand, + LPWSTR lpstrReturnString, + UINT uReturnLength, + HWND hwndCallback + ); + + + + + + +__declspec(dllimport) +MCIDEVICEID +__stdcall +mciGetDeviceIDA( + LPCSTR pszDevice + ); + +__declspec(dllimport) +MCIDEVICEID +__stdcall +mciGetDeviceIDW( + LPCWSTR pszDevice + ); + + + + + + +__declspec(dllimport) +MCIDEVICEID +__stdcall +mciGetDeviceIDFromElementIDA( + DWORD dwElementID, + LPCSTR lpstrType + ); + +__declspec(dllimport) +MCIDEVICEID +__stdcall +mciGetDeviceIDFromElementIDW( + DWORD dwElementID, + LPCWSTR lpstrType + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +mciGetErrorStringA( + MCIERROR mcierr, + LPSTR pszText, + UINT cchText + ); + +__declspec(dllimport) +BOOL +__stdcall +mciGetErrorStringW( + MCIERROR mcierr, + LPWSTR pszText, + UINT cchText + ); +# 169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +mciSetYieldProc( + MCIDEVICEID mciId, + YIELDPROC fpYieldProc, + DWORD dwYieldData + ); + + + +__declspec(dllimport) +HTASK +__stdcall +mciGetCreatorTask( + MCIDEVICEID mciId + ); + +__declspec(dllimport) +YIELDPROC +__stdcall +mciGetYieldProc( + MCIDEVICEID mciId, + LPDWORD pdwYieldData + ); +# 494 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_GENERIC_PARMS { + DWORD_PTR dwCallback; +} MCI_GENERIC_PARMS, *PMCI_GENERIC_PARMS, *LPMCI_GENERIC_PARMS; + + + + +typedef struct tagMCI_OPEN_PARMSA { + DWORD_PTR dwCallback; + MCIDEVICEID wDeviceID; + LPCSTR lpstrDeviceType; + LPCSTR lpstrElementName; + LPCSTR lpstrAlias; +} MCI_OPEN_PARMSA, *PMCI_OPEN_PARMSA, *LPMCI_OPEN_PARMSA; +typedef struct tagMCI_OPEN_PARMSW { + DWORD_PTR dwCallback; + MCIDEVICEID wDeviceID; + LPCWSTR lpstrDeviceType; + LPCWSTR lpstrElementName; + LPCWSTR lpstrAlias; +} MCI_OPEN_PARMSW, *PMCI_OPEN_PARMSW, *LPMCI_OPEN_PARMSW; + + + + + +typedef MCI_OPEN_PARMSA MCI_OPEN_PARMS; +typedef PMCI_OPEN_PARMSA PMCI_OPEN_PARMS; +typedef LPMCI_OPEN_PARMSA LPMCI_OPEN_PARMS; +# 537 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_PLAY_PARMS { + DWORD_PTR dwCallback; + DWORD dwFrom; + DWORD dwTo; +} MCI_PLAY_PARMS, *PMCI_PLAY_PARMS, *LPMCI_PLAY_PARMS; + + +typedef struct tagMCI_SEEK_PARMS { + DWORD_PTR dwCallback; + DWORD dwTo; +} MCI_SEEK_PARMS, *PMCI_SEEK_PARMS, *LPMCI_SEEK_PARMS; + + +typedef struct tagMCI_STATUS_PARMS { + DWORD_PTR dwCallback; + DWORD_PTR dwReturn; + DWORD dwItem; + DWORD dwTrack; +} MCI_STATUS_PARMS, *PMCI_STATUS_PARMS, * LPMCI_STATUS_PARMS; + + + + +typedef struct tagMCI_INFO_PARMSA { + DWORD_PTR dwCallback; + LPSTR lpstrReturn; + DWORD dwRetSize; +} MCI_INFO_PARMSA, * LPMCI_INFO_PARMSA; +typedef struct tagMCI_INFO_PARMSW { + DWORD_PTR dwCallback; + LPWSTR lpstrReturn; + DWORD dwRetSize; +} MCI_INFO_PARMSW, * LPMCI_INFO_PARMSW; + + + + +typedef MCI_INFO_PARMSA MCI_INFO_PARMS; +typedef LPMCI_INFO_PARMSA LPMCI_INFO_PARMS; +# 587 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_GETDEVCAPS_PARMS { + DWORD_PTR dwCallback; + DWORD dwReturn; + DWORD dwItem; +} MCI_GETDEVCAPS_PARMS, *PMCI_GETDEVCAPS_PARMS, * LPMCI_GETDEVCAPS_PARMS; + + + + +typedef struct tagMCI_SYSINFO_PARMSA { + DWORD_PTR dwCallback; + LPSTR lpstrReturn; + DWORD dwRetSize; + DWORD dwNumber; + UINT wDeviceType; +} MCI_SYSINFO_PARMSA, *PMCI_SYSINFO_PARMSA, * LPMCI_SYSINFO_PARMSA; +typedef struct tagMCI_SYSINFO_PARMSW { + DWORD_PTR dwCallback; + LPWSTR lpstrReturn; + DWORD dwRetSize; + DWORD dwNumber; + UINT wDeviceType; +} MCI_SYSINFO_PARMSW, *PMCI_SYSINFO_PARMSW, * LPMCI_SYSINFO_PARMSW; + + + + + +typedef MCI_SYSINFO_PARMSA MCI_SYSINFO_PARMS; +typedef PMCI_SYSINFO_PARMSA PMCI_SYSINFO_PARMS; +typedef LPMCI_SYSINFO_PARMSA LPMCI_SYSINFO_PARMS; +# 631 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_SET_PARMS { + DWORD_PTR dwCallback; + DWORD dwTimeFormat; + DWORD dwAudio; +} MCI_SET_PARMS, *PMCI_SET_PARMS, *LPMCI_SET_PARMS; + + +typedef struct tagMCI_BREAK_PARMS { + DWORD_PTR dwCallback; + + int nVirtKey; + HWND hwndBreak; + + + + + + +} MCI_BREAK_PARMS, *PMCI_BREAK_PARMS, * LPMCI_BREAK_PARMS; + + + + +typedef struct tagMCI_SAVE_PARMSA { + DWORD_PTR dwCallback; + LPCSTR lpfilename; +} MCI_SAVE_PARMSA, *PMCI_SAVE_PARMSA, * LPMCI_SAVE_PARMSA; +typedef struct tagMCI_SAVE_PARMSW { + DWORD_PTR dwCallback; + LPCWSTR lpfilename; +} MCI_SAVE_PARMSW, *PMCI_SAVE_PARMSW, * LPMCI_SAVE_PARMSW; + + + + + +typedef MCI_SAVE_PARMSA MCI_SAVE_PARMS; +typedef PMCI_SAVE_PARMSA PMCI_SAVE_PARMS; +typedef LPMCI_SAVE_PARMSA LPMCI_SAVE_PARMS; +# 682 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_LOAD_PARMSA { + DWORD_PTR dwCallback; + LPCSTR lpfilename; +} MCI_LOAD_PARMSA, *PMCI_LOAD_PARMSA, * LPMCI_LOAD_PARMSA; +typedef struct tagMCI_LOAD_PARMSW { + DWORD_PTR dwCallback; + LPCWSTR lpfilename; +} MCI_LOAD_PARMSW, *PMCI_LOAD_PARMSW, * LPMCI_LOAD_PARMSW; + + + + + +typedef MCI_LOAD_PARMSA MCI_LOAD_PARMS; +typedef PMCI_LOAD_PARMSA PMCI_LOAD_PARMS; +typedef LPMCI_LOAD_PARMSA LPMCI_LOAD_PARMS; +# 708 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_RECORD_PARMS { + DWORD_PTR dwCallback; + DWORD dwFrom; + DWORD dwTo; +} MCI_RECORD_PARMS, *LPMCI_RECORD_PARMS; +# 766 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_VD_PLAY_PARMS { + DWORD_PTR dwCallback; + DWORD dwFrom; + DWORD dwTo; + DWORD dwSpeed; +} MCI_VD_PLAY_PARMS, *PMCI_VD_PLAY_PARMS, *LPMCI_VD_PLAY_PARMS; + + +typedef struct tagMCI_VD_STEP_PARMS { + DWORD_PTR dwCallback; + DWORD dwFrames; +} MCI_VD_STEP_PARMS, *PMCI_VD_STEP_PARMS, *LPMCI_VD_STEP_PARMS; + + + + +typedef struct tagMCI_VD_ESCAPE_PARMSA { + DWORD_PTR dwCallback; + LPCSTR lpstrCommand; +} MCI_VD_ESCAPE_PARMSA, *PMCI_VD_ESCAPE_PARMSA, *LPMCI_VD_ESCAPE_PARMSA; +typedef struct tagMCI_VD_ESCAPE_PARMSW { + DWORD_PTR dwCallback; + LPCWSTR lpstrCommand; +} MCI_VD_ESCAPE_PARMSW, *PMCI_VD_ESCAPE_PARMSW, *LPMCI_VD_ESCAPE_PARMSW; + + + + + +typedef MCI_VD_ESCAPE_PARMSA MCI_VD_ESCAPE_PARMS; +typedef PMCI_VD_ESCAPE_PARMSA PMCI_VD_ESCAPE_PARMS; +typedef LPMCI_VD_ESCAPE_PARMSA LPMCI_VD_ESCAPE_PARMS; +# 857 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_WAVE_OPEN_PARMSA { + DWORD_PTR dwCallback; + MCIDEVICEID wDeviceID; + LPCSTR lpstrDeviceType; + LPCSTR lpstrElementName; + LPCSTR lpstrAlias; + DWORD dwBufferSeconds; +} MCI_WAVE_OPEN_PARMSA, *PMCI_WAVE_OPEN_PARMSA, *LPMCI_WAVE_OPEN_PARMSA; +typedef struct tagMCI_WAVE_OPEN_PARMSW { + DWORD_PTR dwCallback; + MCIDEVICEID wDeviceID; + LPCWSTR lpstrDeviceType; + LPCWSTR lpstrElementName; + LPCWSTR lpstrAlias; + DWORD dwBufferSeconds; +} MCI_WAVE_OPEN_PARMSW, *PMCI_WAVE_OPEN_PARMSW, *LPMCI_WAVE_OPEN_PARMSW; + + + + + +typedef MCI_WAVE_OPEN_PARMSA MCI_WAVE_OPEN_PARMS; +typedef PMCI_WAVE_OPEN_PARMSA PMCI_WAVE_OPEN_PARMS; +typedef LPMCI_WAVE_OPEN_PARMSA LPMCI_WAVE_OPEN_PARMS; +# 896 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_WAVE_DELETE_PARMS { + DWORD_PTR dwCallback; + DWORD dwFrom; + DWORD dwTo; +} MCI_WAVE_DELETE_PARMS, *PMCI_WAVE_DELETE_PARMS, *LPMCI_WAVE_DELETE_PARMS; + + +typedef struct tagMCI_WAVE_SET_PARMS { + DWORD_PTR dwCallback; + DWORD dwTimeFormat; + DWORD dwAudio; + + UINT wInput; + UINT wOutput; + + + + + + + WORD wFormatTag; + WORD wReserved2; + WORD nChannels; + WORD wReserved3; + DWORD nSamplesPerSec; + DWORD nAvgBytesPerSec; + WORD nBlockAlign; + WORD wReserved4; + WORD wBitsPerSample; + WORD wReserved5; +} MCI_WAVE_SET_PARMS, *PMCI_WAVE_SET_PARMS, * LPMCI_WAVE_SET_PARMS; +# 965 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_SEQ_SET_PARMS { + DWORD_PTR dwCallback; + DWORD dwTimeFormat; + DWORD dwAudio; + DWORD dwTempo; + DWORD dwPort; + DWORD dwSlave; + DWORD dwMaster; + DWORD dwOffset; +} MCI_SEQ_SET_PARMS, *PMCI_SEQ_SET_PARMS, * LPMCI_SEQ_SET_PARMS; +# 1043 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_ANIM_OPEN_PARMSA { + DWORD_PTR dwCallback; + MCIDEVICEID wDeviceID; + LPCSTR lpstrDeviceType; + LPCSTR lpstrElementName; + LPCSTR lpstrAlias; + DWORD dwStyle; + HWND hWndParent; +} MCI_ANIM_OPEN_PARMSA, *PMCI_ANIM_OPEN_PARMSA, *LPMCI_ANIM_OPEN_PARMSA; +typedef struct tagMCI_ANIM_OPEN_PARMSW { + DWORD_PTR dwCallback; + MCIDEVICEID wDeviceID; + LPCWSTR lpstrDeviceType; + LPCWSTR lpstrElementName; + LPCWSTR lpstrAlias; + DWORD dwStyle; + HWND hWndParent; +} MCI_ANIM_OPEN_PARMSW, *PMCI_ANIM_OPEN_PARMSW, *LPMCI_ANIM_OPEN_PARMSW; + + + + + +typedef MCI_ANIM_OPEN_PARMSA MCI_ANIM_OPEN_PARMS; +typedef PMCI_ANIM_OPEN_PARMSA PMCI_ANIM_OPEN_PARMS; +typedef LPMCI_ANIM_OPEN_PARMSA LPMCI_ANIM_OPEN_PARMS; +# 1086 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_ANIM_PLAY_PARMS { + DWORD_PTR dwCallback; + DWORD dwFrom; + DWORD dwTo; + DWORD dwSpeed; +} MCI_ANIM_PLAY_PARMS, *PMCI_ANIM_PLAY_PARMS, *LPMCI_ANIM_PLAY_PARMS; + + +typedef struct tagMCI_ANIM_STEP_PARMS { + DWORD_PTR dwCallback; + DWORD dwFrames; +} MCI_ANIM_STEP_PARMS, *PMCI_ANIM_STEP_PARMS, *LPMCI_ANIM_STEP_PARMS; + + + + +typedef struct tagMCI_ANIM_WINDOW_PARMSA { + DWORD_PTR dwCallback; + HWND hWnd; + UINT nCmdShow; + LPCSTR lpstrText; +} MCI_ANIM_WINDOW_PARMSA, *PMCI_ANIM_WINDOW_PARMSA, * LPMCI_ANIM_WINDOW_PARMSA; +typedef struct tagMCI_ANIM_WINDOW_PARMSW { + DWORD_PTR dwCallback; + HWND hWnd; + UINT nCmdShow; + LPCWSTR lpstrText; +} MCI_ANIM_WINDOW_PARMSW, *PMCI_ANIM_WINDOW_PARMSW, * LPMCI_ANIM_WINDOW_PARMSW; + + + + + +typedef MCI_ANIM_WINDOW_PARMSA MCI_ANIM_WINDOW_PARMS; +typedef PMCI_ANIM_WINDOW_PARMSA PMCI_ANIM_WINDOW_PARMS; +typedef LPMCI_ANIM_WINDOW_PARMSA LPMCI_ANIM_WINDOW_PARMS; +# 1136 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_ANIM_RECT_PARMS { + DWORD_PTR dwCallback; + + + + + RECT rc; + +} MCI_ANIM_RECT_PARMS; +typedef MCI_ANIM_RECT_PARMS * PMCI_ANIM_RECT_PARMS; +typedef MCI_ANIM_RECT_PARMS * LPMCI_ANIM_RECT_PARMS; + + +typedef struct tagMCI_ANIM_UPDATE_PARMS { + DWORD_PTR dwCallback; + RECT rc; + HDC hDC; +} MCI_ANIM_UPDATE_PARMS, *PMCI_ANIM_UPDATE_PARMS, * LPMCI_ANIM_UPDATE_PARMS; +# 1199 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_OVLY_OPEN_PARMSA { + DWORD_PTR dwCallback; + MCIDEVICEID wDeviceID; + LPCSTR lpstrDeviceType; + LPCSTR lpstrElementName; + LPCSTR lpstrAlias; + DWORD dwStyle; + HWND hWndParent; +} MCI_OVLY_OPEN_PARMSA, *PMCI_OVLY_OPEN_PARMSA, *LPMCI_OVLY_OPEN_PARMSA; +typedef struct tagMCI_OVLY_OPEN_PARMSW { + DWORD_PTR dwCallback; + MCIDEVICEID wDeviceID; + LPCWSTR lpstrDeviceType; + LPCWSTR lpstrElementName; + LPCWSTR lpstrAlias; + DWORD dwStyle; + HWND hWndParent; +} MCI_OVLY_OPEN_PARMSW, *PMCI_OVLY_OPEN_PARMSW, *LPMCI_OVLY_OPEN_PARMSW; + + + + + +typedef MCI_OVLY_OPEN_PARMSA MCI_OVLY_OPEN_PARMS; +typedef PMCI_OVLY_OPEN_PARMSA PMCI_OVLY_OPEN_PARMS; +typedef LPMCI_OVLY_OPEN_PARMSA LPMCI_OVLY_OPEN_PARMS; +# 1244 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_OVLY_WINDOW_PARMSA { + DWORD_PTR dwCallback; + HWND hWnd; + UINT nCmdShow; + LPCSTR lpstrText; +} MCI_OVLY_WINDOW_PARMSA, *PMCI_OVLY_WINDOW_PARMSA, * LPMCI_OVLY_WINDOW_PARMSA; +typedef struct tagMCI_OVLY_WINDOW_PARMSW { + DWORD_PTR dwCallback; + HWND hWnd; + UINT nCmdShow; + LPCWSTR lpstrText; +} MCI_OVLY_WINDOW_PARMSW, *PMCI_OVLY_WINDOW_PARMSW, * LPMCI_OVLY_WINDOW_PARMSW; + + + + + +typedef MCI_OVLY_WINDOW_PARMSA MCI_OVLY_WINDOW_PARMS; +typedef PMCI_OVLY_WINDOW_PARMSA PMCI_OVLY_WINDOW_PARMS; +typedef LPMCI_OVLY_WINDOW_PARMSA LPMCI_OVLY_WINDOW_PARMS; +# 1277 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_OVLY_RECT_PARMS { + DWORD_PTR dwCallback; + + + + + RECT rc; + +} MCI_OVLY_RECT_PARMS, *PMCI_OVLY_RECT_PARMS, * LPMCI_OVLY_RECT_PARMS; + + + + +typedef struct tagMCI_OVLY_SAVE_PARMSA { + DWORD_PTR dwCallback; + LPCSTR lpfilename; + RECT rc; +} MCI_OVLY_SAVE_PARMSA, *PMCI_OVLY_SAVE_PARMSA, * LPMCI_OVLY_SAVE_PARMSA; +typedef struct tagMCI_OVLY_SAVE_PARMSW { + DWORD_PTR dwCallback; + LPCWSTR lpfilename; + RECT rc; +} MCI_OVLY_SAVE_PARMSW, *PMCI_OVLY_SAVE_PARMSW, * LPMCI_OVLY_SAVE_PARMSW; + + + + + +typedef MCI_OVLY_SAVE_PARMSA MCI_OVLY_SAVE_PARMS; +typedef PMCI_OVLY_SAVE_PARMSA PMCI_OVLY_SAVE_PARMS; +typedef LPMCI_OVLY_SAVE_PARMSA LPMCI_OVLY_SAVE_PARMS; +# 1320 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +typedef struct tagMCI_OVLY_LOAD_PARMSA { + DWORD_PTR dwCallback; + LPCSTR lpfilename; + RECT rc; +} MCI_OVLY_LOAD_PARMSA, *PMCI_OVLY_LOAD_PARMSA, * LPMCI_OVLY_LOAD_PARMSA; +typedef struct tagMCI_OVLY_LOAD_PARMSW { + DWORD_PTR dwCallback; + LPCWSTR lpfilename; + RECT rc; +} MCI_OVLY_LOAD_PARMSW, *PMCI_OVLY_LOAD_PARMSW, * LPMCI_OVLY_LOAD_PARMSW; + + + + + +typedef MCI_OVLY_LOAD_PARMSA MCI_OVLY_LOAD_PARMS; +typedef PMCI_OVLY_LOAD_PARMSA PMCI_OVLY_LOAD_PARMS; +typedef LPMCI_OVLY_LOAD_PARMSA LPMCI_OVLY_LOAD_PARMS; +# 1351 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 +DWORD_PTR +__stdcall +mciGetDriverData( + MCIDEVICEID wDeviceID + ); + +UINT +__stdcall +mciLoadCommandResource( + HANDLE hInstance, + LPCWSTR lpResName, + UINT wType + ); + +BOOL +__stdcall +mciSetDriverData( + MCIDEVICEID wDeviceID, + DWORD_PTR dwData + ); + +UINT +__stdcall +mciDriverYield( + MCIDEVICEID wDeviceID + ); + +BOOL +__stdcall +mciDriverNotify( + HANDLE hwndCallback, + MCIDEVICEID wDeviceID, + UINT uStatus + ); + +BOOL +__stdcall +mciFreeCommandResource( + UINT wTable + ); +# 62 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 1 3 +# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 2 3 +# 37 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 +typedef struct DRVCONFIGINFOEX { + DWORD dwDCISize; + LPCWSTR lpszDCISectionName; + LPCWSTR lpszDCIAliasName; + DWORD dnDevNode; +} DRVCONFIGINFOEX, *PDRVCONFIGINFOEX, *NPDRVCONFIGINFOEX, *LPDRVCONFIGINFOEX; +# 75 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 +typedef struct tagDRVCONFIGINFO { + DWORD dwDCISize; + LPCWSTR lpszDCISectionName; + LPCWSTR lpszDCIAliasName; +} DRVCONFIGINFO, *PDRVCONFIGINFO, *NPDRVCONFIGINFO, *LPDRVCONFIGINFO; +# 96 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 +typedef LRESULT (__stdcall* DRIVERPROC)(DWORD_PTR, HDRVR, UINT, LPARAM, LPARAM); + +__declspec(dllimport) +LRESULT +__stdcall +CloseDriver( + HDRVR hDriver, + LPARAM lParam1, + LPARAM lParam2 + ); + +__declspec(dllimport) +HDRVR +__stdcall +OpenDriver( + LPCWSTR szDriverName, + LPCWSTR szSectionName, + LPARAM lParam2 + ); + +__declspec(dllimport) +LRESULT +__stdcall +SendDriverMessage( + HDRVR hDriver, + UINT message, + LPARAM lParam1, + LPARAM lParam2 + ); + +__declspec(dllimport) +HMODULE +__stdcall +DrvGetModuleHandle( + HDRVR hDriver + ); + +__declspec(dllimport) +HMODULE +__stdcall +GetDriverModuleHandle( + HDRVR hDriver + ); + +__declspec(dllimport) +LRESULT +__stdcall +DefDriverProc( + DWORD_PTR dwDriverIdentifier, + HDRVR hdrvr, + UINT uMsg, + LPARAM lParam1, + LPARAM lParam2 + ); +# 178 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 +BOOL +__stdcall +DriverCallback( + DWORD_PTR dwCallback, + DWORD dwFlags, + HDRVR hDevice, + DWORD dwMsg, + DWORD_PTR dwUser, + DWORD_PTR dwParam1, + DWORD_PTR dwParam2 + ); + + + + + + +LONG +__stdcall +sndOpenSound( + LPCWSTR EventName, + LPCWSTR AppName, + INT32 Flags, + PHANDLE FileHandle + ); +# 216 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 +typedef DWORD (__stdcall *DRIVERMSGPROC)(DWORD, DWORD, DWORD_PTR, DWORD_PTR, DWORD_PTR); + +UINT +__stdcall +mmDrvInstall( + HDRVR hDriver, + LPCWSTR wszDrvEntry, + DRIVERMSGPROC drvMessage, + UINT wFlags + ); +# 259 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 +typedef DWORD FOURCC; +typedef char * HPSTR; +struct HMMIO__{int unused;}; typedef struct HMMIO__ *HMMIO; +typedef LRESULT (__stdcall MMIOPROC)(LPSTR lpmmioinfo, UINT uMsg, + LPARAM lParam1, LPARAM lParam2); +typedef MMIOPROC *LPMMIOPROC; + + +typedef struct _MMIOINFO +{ + + DWORD dwFlags; + FOURCC fccIOProc; + LPMMIOPROC pIOProc; + UINT wErrorRet; + HTASK htask; + + + LONG cchBuffer; + HPSTR pchBuffer; + HPSTR pchNext; + HPSTR pchEndRead; + HPSTR pchEndWrite; + LONG lBufOffset; + + + LONG lDiskOffset; + DWORD adwInfo[3]; + + + DWORD dwReserved1; + DWORD dwReserved2; + HMMIO hmmio; +} MMIOINFO, *PMMIOINFO, *NPMMIOINFO, *LPMMIOINFO; +typedef const MMIOINFO *LPCMMIOINFO; + + +typedef struct _MMCKINFO +{ + FOURCC ckid; + DWORD cksize; + FOURCC fccType; + DWORD dwDataOffset; + DWORD dwFlags; +} MMCKINFO, *PMMCKINFO, *NPMMCKINFO, *LPMMCKINFO; +typedef const MMCKINFO *LPCMMCKINFO; +# 385 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 +__declspec(dllimport) +FOURCC +__stdcall +mmioStringToFOURCCA( + LPCSTR sz, + UINT uFlags + ); + +__declspec(dllimport) +FOURCC +__stdcall +mmioStringToFOURCCW( + LPCWSTR sz, + UINT uFlags + ); + + + + + + +__declspec(dllimport) +LPMMIOPROC +__stdcall +mmioInstallIOProcA( + FOURCC fccIOProc, + LPMMIOPROC pIOProc, + DWORD dwFlags + ); + +__declspec(dllimport) +LPMMIOPROC +__stdcall +mmioInstallIOProcW( + FOURCC fccIOProc, + LPMMIOPROC pIOProc, + DWORD dwFlags + ); + + + + + + +__declspec(dllimport) +HMMIO +__stdcall +mmioOpenA( + LPSTR pszFileName, + LPMMIOINFO pmmioinfo, + DWORD fdwOpen + ); + +__declspec(dllimport) +HMMIO +__stdcall +mmioOpenW( + LPWSTR pszFileName, + LPMMIOINFO pmmioinfo, + DWORD fdwOpen + ); + + + + + + +__declspec(dllimport) +MMRESULT +__stdcall +mmioRenameA( + LPCSTR pszFileName, + LPCSTR pszNewFileName, + LPCMMIOINFO pmmioinfo, + DWORD fdwRename + ); + +__declspec(dllimport) +MMRESULT +__stdcall +mmioRenameW( + LPCWSTR pszFileName, + LPCWSTR pszNewFileName, + LPCMMIOINFO pmmioinfo, + DWORD fdwRename + ); +# 485 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +mmioClose( + HMMIO hmmio, + UINT fuClose + ); + +__declspec(dllimport) +LONG +__stdcall +mmioRead( + HMMIO hmmio, + HPSTR pch, + LONG cch + ); + +__declspec(dllimport) +LONG +__stdcall +mmioWrite( + HMMIO hmmio, + const char * pch, + LONG cch + ); + +__declspec(dllimport) +LONG +__stdcall +mmioSeek( + HMMIO hmmio, + LONG lOffset, + int iOrigin + ); + +__declspec(dllimport) +MMRESULT +__stdcall +mmioGetInfo( + HMMIO hmmio, + LPMMIOINFO pmmioinfo, + UINT fuInfo + ); + +__declspec(dllimport) +MMRESULT +__stdcall +mmioSetInfo( + HMMIO hmmio, + LPCMMIOINFO pmmioinfo, + UINT fuInfo + ); + +__declspec(dllimport) +MMRESULT +__stdcall +mmioSetBuffer( + HMMIO hmmio, + LPSTR pchBuffer, + LONG cchBuffer, + UINT fuBuffer + ); + +__declspec(dllimport) +MMRESULT +__stdcall +mmioFlush( + HMMIO hmmio, + UINT fuFlush + ); + +__declspec(dllimport) +MMRESULT +__stdcall +mmioAdvance( + HMMIO hmmio, + LPMMIOINFO pmmioinfo, + UINT fuAdvance + ); + +__declspec(dllimport) +LRESULT +__stdcall +mmioSendMessage( + HMMIO hmmio, + UINT uMsg, + LPARAM lParam1, + LPARAM lParam2 + ); + +__declspec(dllimport) +MMRESULT +__stdcall +mmioDescend( + HMMIO hmmio, + LPMMCKINFO pmmcki, + const MMCKINFO * pmmckiParent, + UINT fuDescend + ); + +__declspec(dllimport) +MMRESULT +__stdcall +mmioAscend( + HMMIO hmmio, + LPMMCKINFO pmmcki, + UINT fuAscend + ); + +__declspec(dllimport) +MMRESULT +__stdcall +mmioCreateChunk( + HMMIO hmmio, + LPMMCKINFO pmmcki, + UINT fuCreate + ); +# 67 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi2.h" 1 3 +# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi2.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi2.h" 2 3 + + + + + + + + +typedef void (__stdcall TIMECALLBACK)(UINT uTimerID, UINT uMsg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2); +typedef TIMECALLBACK *LPTIMECALLBACK; +# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi2.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +timeSetEvent( + UINT uDelay, + UINT uResolution, + LPTIMECALLBACK fptc, + DWORD_PTR dwUser, + UINT fuEvent + ); + +__declspec(dllimport) +MMRESULT +__stdcall +timeKillEvent( + UINT uTimerID + ); +# 68 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\playsoundapi.h" 1 3 +# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\playsoundapi.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\playsoundapi.h" 2 3 +# 37 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\playsoundapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +sndPlaySoundA( + LPCSTR pszSound, + UINT fuSound + ); + +__declspec(dllimport) +BOOL +__stdcall +sndPlaySoundW( + LPCWSTR pszSound, + UINT fuSound + ); +# 100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\playsoundapi.h" 3 +__declspec(dllimport) +BOOL +__stdcall +PlaySoundA( + LPCSTR pszSound, + HMODULE hmod, + DWORD fdwSound + ); + +__declspec(dllimport) +BOOL +__stdcall +PlaySoundW( + LPCWSTR pszSound, + HMODULE hmod, + DWORD fdwSound + ); +# 72 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 1 3 +# 26 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 2 3 +# 50 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +struct HWAVE__{int unused;}; typedef struct HWAVE__ *HWAVE; +struct HWAVEIN__{int unused;}; typedef struct HWAVEIN__ *HWAVEIN; +struct HWAVEOUT__{int unused;}; typedef struct HWAVEOUT__ *HWAVEOUT; +typedef HWAVEIN *LPHWAVEIN; +typedef HWAVEOUT *LPHWAVEOUT; +typedef DRVCALLBACK WAVECALLBACK; +typedef WAVECALLBACK *LPWAVECALLBACK; +# 80 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +typedef struct wavehdr_tag { + LPSTR lpData; + DWORD dwBufferLength; + DWORD dwBytesRecorded; + DWORD_PTR dwUser; + DWORD dwFlags; + DWORD dwLoops; + struct wavehdr_tag *lpNext; + DWORD_PTR reserved; +} WAVEHDR, *PWAVEHDR, *NPWAVEHDR, *LPWAVEHDR; +# 101 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +typedef struct tagWAVEOUTCAPSA { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + CHAR szPname[32]; + DWORD dwFormats; + WORD wChannels; + WORD wReserved1; + DWORD dwSupport; +} WAVEOUTCAPSA, *PWAVEOUTCAPSA, *NPWAVEOUTCAPSA, *LPWAVEOUTCAPSA; +typedef struct tagWAVEOUTCAPSW { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + WCHAR szPname[32]; + DWORD dwFormats; + WORD wChannels; + WORD wReserved1; + DWORD dwSupport; +} WAVEOUTCAPSW, *PWAVEOUTCAPSW, *NPWAVEOUTCAPSW, *LPWAVEOUTCAPSW; + + + + + + +typedef WAVEOUTCAPSA WAVEOUTCAPS; +typedef PWAVEOUTCAPSA PWAVEOUTCAPS; +typedef NPWAVEOUTCAPSA NPWAVEOUTCAPS; +typedef LPWAVEOUTCAPSA LPWAVEOUTCAPS; + +typedef struct tagWAVEOUTCAPS2A { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + CHAR szPname[32]; + DWORD dwFormats; + WORD wChannels; + WORD wReserved1; + DWORD dwSupport; + GUID ManufacturerGuid; + GUID ProductGuid; + GUID NameGuid; +} WAVEOUTCAPS2A, *PWAVEOUTCAPS2A, *NPWAVEOUTCAPS2A, *LPWAVEOUTCAPS2A; +typedef struct tagWAVEOUTCAPS2W { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + WCHAR szPname[32]; + DWORD dwFormats; + WORD wChannels; + WORD wReserved1; + DWORD dwSupport; + GUID ManufacturerGuid; + GUID ProductGuid; + GUID NameGuid; +} WAVEOUTCAPS2W, *PWAVEOUTCAPS2W, *NPWAVEOUTCAPS2W, *LPWAVEOUTCAPS2W; + + + + + + +typedef WAVEOUTCAPS2A WAVEOUTCAPS2; +typedef PWAVEOUTCAPS2A PWAVEOUTCAPS2; +typedef NPWAVEOUTCAPS2A NPWAVEOUTCAPS2; +typedef LPWAVEOUTCAPS2A LPWAVEOUTCAPS2; +# 193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +typedef struct tagWAVEINCAPSA { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + CHAR szPname[32]; + DWORD dwFormats; + WORD wChannels; + WORD wReserved1; +} WAVEINCAPSA, *PWAVEINCAPSA, *NPWAVEINCAPSA, *LPWAVEINCAPSA; +typedef struct tagWAVEINCAPSW { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + WCHAR szPname[32]; + DWORD dwFormats; + WORD wChannels; + WORD wReserved1; +} WAVEINCAPSW, *PWAVEINCAPSW, *NPWAVEINCAPSW, *LPWAVEINCAPSW; + + + + + + +typedef WAVEINCAPSA WAVEINCAPS; +typedef PWAVEINCAPSA PWAVEINCAPS; +typedef NPWAVEINCAPSA NPWAVEINCAPS; +typedef LPWAVEINCAPSA LPWAVEINCAPS; + +typedef struct tagWAVEINCAPS2A { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + CHAR szPname[32]; + DWORD dwFormats; + WORD wChannels; + WORD wReserved1; + GUID ManufacturerGuid; + GUID ProductGuid; + GUID NameGuid; +} WAVEINCAPS2A, *PWAVEINCAPS2A, *NPWAVEINCAPS2A, *LPWAVEINCAPS2A; +typedef struct tagWAVEINCAPS2W { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + WCHAR szPname[32]; + DWORD dwFormats; + WORD wChannels; + WORD wReserved1; + GUID ManufacturerGuid; + GUID ProductGuid; + GUID NameGuid; +} WAVEINCAPS2W, *PWAVEINCAPS2W, *NPWAVEINCAPS2W, *LPWAVEINCAPS2W; + + + + + + +typedef WAVEINCAPS2A WAVEINCAPS2; +typedef PWAVEINCAPS2A PWAVEINCAPS2; +typedef NPWAVEINCAPS2A NPWAVEINCAPS2; +typedef LPWAVEINCAPS2A LPWAVEINCAPS2; +# 300 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +typedef struct waveformat_tag { + WORD wFormatTag; + WORD nChannels; + DWORD nSamplesPerSec; + DWORD nAvgBytesPerSec; + WORD nBlockAlign; +} WAVEFORMAT, *PWAVEFORMAT, *NPWAVEFORMAT, *LPWAVEFORMAT; + + + + + +typedef struct pcmwaveformat_tag { + WAVEFORMAT wf; + WORD wBitsPerSample; +} PCMWAVEFORMAT, *PPCMWAVEFORMAT, *NPPCMWAVEFORMAT, *LPPCMWAVEFORMAT; +# 325 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +typedef struct tWAVEFORMATEX +{ + WORD wFormatTag; + WORD nChannels; + DWORD nSamplesPerSec; + DWORD nAvgBytesPerSec; + WORD nBlockAlign; + WORD wBitsPerSample; + WORD cbSize; + +} WAVEFORMATEX, *PWAVEFORMATEX, *NPWAVEFORMATEX, *LPWAVEFORMATEX; + + +typedef const WAVEFORMATEX *LPCWAVEFORMATEX; + + + +__declspec(dllimport) +UINT +__stdcall +waveOutGetNumDevs( + void + ); + + + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutGetDevCapsA( + UINT_PTR uDeviceID, + LPWAVEOUTCAPSA pwoc, + UINT cbwoc + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutGetDevCapsW( + UINT_PTR uDeviceID, + LPWAVEOUTCAPSW pwoc, + UINT cbwoc + ); +# 380 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +waveOutGetVolume( + HWAVEOUT hwo, + LPDWORD pdwVolume + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutSetVolume( + HWAVEOUT hwo, + DWORD dwVolume + ); + + + + + + + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutGetErrorTextA( + MMRESULT mmrError, + LPSTR pszText, + UINT cchText + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutGetErrorTextW( + MMRESULT mmrError, + LPWSTR pszText, + UINT cchText + ); +# 429 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +waveOutOpen( + LPHWAVEOUT phwo, + UINT uDeviceID, + LPCWAVEFORMATEX pwfx, + DWORD_PTR dwCallback, + DWORD_PTR dwInstance, + DWORD fdwOpen + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutClose( + HWAVEOUT hwo + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutPrepareHeader( + HWAVEOUT hwo, + LPWAVEHDR pwh, + UINT cbwh + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutUnprepareHeader( + HWAVEOUT hwo, + LPWAVEHDR pwh, + UINT cbwh + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutWrite( + HWAVEOUT hwo, + LPWAVEHDR pwh, + UINT cbwh + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutPause( + HWAVEOUT hwo + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutRestart( + HWAVEOUT hwo + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutReset( + HWAVEOUT hwo + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutBreakLoop( + HWAVEOUT hwo + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutGetPosition( + HWAVEOUT hwo, + LPMMTIME pmmt, + UINT cbmmt + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutGetPitch( + HWAVEOUT hwo, + LPDWORD pdwPitch + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutSetPitch( + HWAVEOUT hwo, + DWORD dwPitch + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutGetPlaybackRate( + HWAVEOUT hwo, + LPDWORD pdwRate + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutSetPlaybackRate( + HWAVEOUT hwo, + DWORD dwRate + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutGetID( + HWAVEOUT hwo, + LPUINT puDeviceID + ); + + + + +__declspec(dllimport) +MMRESULT +__stdcall +waveOutMessage( + HWAVEOUT hwo, + UINT uMsg, + DWORD_PTR dw1, + DWORD_PTR dw2 + ); + + + + + +__declspec(dllimport) +UINT +__stdcall +waveInGetNumDevs( + void + ); + + + +__declspec(dllimport) +MMRESULT +__stdcall +waveInGetDevCapsA( + UINT_PTR uDeviceID, + LPWAVEINCAPSA pwic, + UINT cbwic + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveInGetDevCapsW( + UINT_PTR uDeviceID, + LPWAVEINCAPSW pwic, + UINT cbwic + ); +# 607 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +waveInGetErrorTextA( + MMRESULT mmrError, + LPSTR pszText, + UINT cchText + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveInGetErrorTextW( + MMRESULT mmrError, + LPWSTR pszText, + UINT cchText + ); +# 634 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +waveInOpen( + LPHWAVEIN phwi, + UINT uDeviceID, + LPCWAVEFORMATEX pwfx, + DWORD_PTR dwCallback, + DWORD_PTR dwInstance, + DWORD fdwOpen + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveInClose( + HWAVEIN hwi + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveInPrepareHeader( + HWAVEIN hwi, + LPWAVEHDR pwh, + UINT cbwh + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveInUnprepareHeader( + HWAVEIN hwi, + LPWAVEHDR pwh, + UINT cbwh + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveInAddBuffer( + HWAVEIN hwi, + LPWAVEHDR pwh, + UINT cbwh + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveInStart( + HWAVEIN hwi + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveInStop( + HWAVEIN hwi + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveInReset( + HWAVEIN hwi + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveInGetPosition( + HWAVEIN hwi, + LPMMTIME pmmt, + UINT cbmmt + ); + +__declspec(dllimport) +MMRESULT +__stdcall +waveInGetID( + HWAVEIN hwi, + LPUINT puDeviceID + ); + + + + +__declspec(dllimport) +MMRESULT +__stdcall +waveInMessage( + HWAVEIN hwi, + UINT uMsg, + DWORD_PTR dw1, + DWORD_PTR dw2 + ); +# 756 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +struct HMIDI__{int unused;}; typedef struct HMIDI__ *HMIDI; +struct HMIDIIN__{int unused;}; typedef struct HMIDIIN__ *HMIDIIN; +struct HMIDIOUT__{int unused;}; typedef struct HMIDIOUT__ *HMIDIOUT; +struct HMIDISTRM__{int unused;}; typedef struct HMIDISTRM__ *HMIDISTRM; +typedef HMIDI *LPHMIDI; +typedef HMIDIIN *LPHMIDIIN; +typedef HMIDIOUT *LPHMIDIOUT; +typedef HMIDISTRM *LPHMIDISTRM; +typedef DRVCALLBACK MIDICALLBACK; +typedef MIDICALLBACK *LPMIDICALLBACK; + +typedef WORD PATCHARRAY[128]; +typedef WORD *LPPATCHARRAY; +typedef WORD KEYARRAY[128]; +typedef WORD *LPKEYARRAY; +# 806 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +typedef struct tagMIDIOUTCAPSA { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + CHAR szPname[32]; + WORD wTechnology; + WORD wVoices; + WORD wNotes; + WORD wChannelMask; + DWORD dwSupport; +} MIDIOUTCAPSA, *PMIDIOUTCAPSA, *NPMIDIOUTCAPSA, *LPMIDIOUTCAPSA; +typedef struct tagMIDIOUTCAPSW { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + WCHAR szPname[32]; + WORD wTechnology; + WORD wVoices; + WORD wNotes; + WORD wChannelMask; + DWORD dwSupport; +} MIDIOUTCAPSW, *PMIDIOUTCAPSW, *NPMIDIOUTCAPSW, *LPMIDIOUTCAPSW; + + + + + + +typedef MIDIOUTCAPSA MIDIOUTCAPS; +typedef PMIDIOUTCAPSA PMIDIOUTCAPS; +typedef NPMIDIOUTCAPSA NPMIDIOUTCAPS; +typedef LPMIDIOUTCAPSA LPMIDIOUTCAPS; + +typedef struct tagMIDIOUTCAPS2A { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + CHAR szPname[32]; + WORD wTechnology; + WORD wVoices; + WORD wNotes; + WORD wChannelMask; + DWORD dwSupport; + GUID ManufacturerGuid; + GUID ProductGuid; + GUID NameGuid; +} MIDIOUTCAPS2A, *PMIDIOUTCAPS2A, *NPMIDIOUTCAPS2A, *LPMIDIOUTCAPS2A; +typedef struct tagMIDIOUTCAPS2W { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + WCHAR szPname[32]; + WORD wTechnology; + WORD wVoices; + WORD wNotes; + WORD wChannelMask; + DWORD dwSupport; + GUID ManufacturerGuid; + GUID ProductGuid; + GUID NameGuid; +} MIDIOUTCAPS2W, *PMIDIOUTCAPS2W, *NPMIDIOUTCAPS2W, *LPMIDIOUTCAPS2W; + + + + + + +typedef MIDIOUTCAPS2A MIDIOUTCAPS2; +typedef PMIDIOUTCAPS2A PMIDIOUTCAPS2; +typedef NPMIDIOUTCAPS2A NPMIDIOUTCAPS2; +typedef LPMIDIOUTCAPS2A LPMIDIOUTCAPS2; +# 913 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +typedef struct tagMIDIINCAPSA { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + CHAR szPname[32]; + + DWORD dwSupport; + +} MIDIINCAPSA, *PMIDIINCAPSA, *NPMIDIINCAPSA, *LPMIDIINCAPSA; +typedef struct tagMIDIINCAPSW { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + WCHAR szPname[32]; + + DWORD dwSupport; + +} MIDIINCAPSW, *PMIDIINCAPSW, *NPMIDIINCAPSW, *LPMIDIINCAPSW; + + + + + + +typedef MIDIINCAPSA MIDIINCAPS; +typedef PMIDIINCAPSA PMIDIINCAPS; +typedef NPMIDIINCAPSA NPMIDIINCAPS; +typedef LPMIDIINCAPSA LPMIDIINCAPS; + +typedef struct tagMIDIINCAPS2A { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + CHAR szPname[32]; + + DWORD dwSupport; + + GUID ManufacturerGuid; + GUID ProductGuid; + GUID NameGuid; +} MIDIINCAPS2A, *PMIDIINCAPS2A, *NPMIDIINCAPS2A, *LPMIDIINCAPS2A; +typedef struct tagMIDIINCAPS2W { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + WCHAR szPname[32]; + + DWORD dwSupport; + + GUID ManufacturerGuid; + GUID ProductGuid; + GUID NameGuid; +} MIDIINCAPS2W, *PMIDIINCAPS2W, *NPMIDIINCAPS2W, *LPMIDIINCAPS2W; + + + + + + +typedef MIDIINCAPS2A MIDIINCAPS2; +typedef PMIDIINCAPS2A PMIDIINCAPS2; +typedef NPMIDIINCAPS2A NPMIDIINCAPS2; +typedef LPMIDIINCAPS2A LPMIDIINCAPS2; +# 991 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +typedef struct midihdr_tag { + LPSTR lpData; + DWORD dwBufferLength; + DWORD dwBytesRecorded; + DWORD_PTR dwUser; + DWORD dwFlags; + struct midihdr_tag *lpNext; + DWORD_PTR reserved; + + DWORD dwOffset; + DWORD_PTR dwReserved[8]; + +} MIDIHDR, *PMIDIHDR, *NPMIDIHDR, *LPMIDIHDR; + + +typedef struct midievent_tag +{ + DWORD dwDeltaTime; + DWORD dwStreamID; + DWORD dwEvent; + DWORD dwParms[1]; +} MIDIEVENT; + +typedef struct midistrmbuffver_tag +{ + DWORD dwVersion; + DWORD dwMid; + DWORD dwOEMVersion; +} MIDISTRMBUFFVER; +# 1072 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +typedef struct midiproptimediv_tag +{ + DWORD cbStruct; + DWORD dwTimeDiv; +} MIDIPROPTIMEDIV, *LPMIDIPROPTIMEDIV; + +typedef struct midiproptempo_tag +{ + DWORD cbStruct; + DWORD dwTempo; +} MIDIPROPTEMPO, *LPMIDIPROPTEMPO; + + + + + +__declspec(dllimport) +UINT +__stdcall +midiOutGetNumDevs( + void + ); + + +__declspec(dllimport) +MMRESULT +__stdcall +midiStreamOpen( + LPHMIDISTRM phms, + LPUINT puDeviceID, + DWORD cMidi, + DWORD_PTR dwCallback, + DWORD_PTR dwInstance, + DWORD fdwOpen + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiStreamClose( + HMIDISTRM hms + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiStreamProperty( + HMIDISTRM hms, + LPBYTE lppropdata, + DWORD dwProperty + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiStreamPosition( + HMIDISTRM hms, + LPMMTIME lpmmt, + UINT cbmmt + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiStreamOut( + HMIDISTRM hms, + LPMIDIHDR pmh, + UINT cbmh + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiStreamPause( + HMIDISTRM hms + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiStreamRestart( + HMIDISTRM hms + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiStreamStop( + HMIDISTRM hms + ); + + + +__declspec(dllimport) +MMRESULT +__stdcall +midiConnect( + HMIDI hmi, + HMIDIOUT hmo, + LPVOID pReserved + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiDisconnect( + HMIDI hmi, + HMIDIOUT hmo, + LPVOID pReserved + ); + + + + + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutGetDevCapsA( + UINT_PTR uDeviceID, + LPMIDIOUTCAPSA pmoc, + UINT cbmoc + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutGetDevCapsW( + UINT_PTR uDeviceID, + LPMIDIOUTCAPSW pmoc, + UINT cbmoc + ); +# 1216 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +midiOutGetVolume( + HMIDIOUT hmo, + LPDWORD pdwVolume + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutSetVolume( + HMIDIOUT hmo, + DWORD dwVolume + ); + + + + + + + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutGetErrorTextA( + MMRESULT mmrError, + LPSTR pszText, + UINT cchText + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutGetErrorTextW( + MMRESULT mmrError, + LPWSTR pszText, + UINT cchText + ); +# 1265 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +midiOutOpen( + LPHMIDIOUT phmo, + UINT uDeviceID, + DWORD_PTR dwCallback, + DWORD_PTR dwInstance, + DWORD fdwOpen + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutClose( + HMIDIOUT hmo + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutPrepareHeader( + HMIDIOUT hmo, + LPMIDIHDR pmh, + UINT cbmh + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutUnprepareHeader( + HMIDIOUT hmo, + LPMIDIHDR pmh, + UINT cbmh + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutShortMsg( + HMIDIOUT hmo, + DWORD dwMsg + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutLongMsg( + HMIDIOUT hmo, + LPMIDIHDR pmh, + UINT cbmh + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutReset( + HMIDIOUT hmo + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutCachePatches( + HMIDIOUT hmo, + UINT uBank, + LPWORD pwpa, + UINT fuCache + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutCacheDrumPatches( + HMIDIOUT hmo, + UINT uPatch, + LPWORD pwkya, + UINT fuCache + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutGetID( + HMIDIOUT hmo, + LPUINT puDeviceID + ); + + + + +__declspec(dllimport) +MMRESULT +__stdcall +midiOutMessage( + HMIDIOUT hmo, + UINT uMsg, + DWORD_PTR dw1, + DWORD_PTR dw2 + ); + + + + + +__declspec(dllimport) +UINT +__stdcall +midiInGetNumDevs( + void + ); + + + +__declspec(dllimport) +MMRESULT +__stdcall +midiInGetDevCapsA( + UINT_PTR uDeviceID, + LPMIDIINCAPSA pmic, + UINT cbmic + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiInGetDevCapsW( + UINT_PTR uDeviceID, + LPMIDIINCAPSW pmic, + UINT cbmic + ); + + + + + + +__declspec(dllimport) +MMRESULT +__stdcall +midiInGetErrorTextA( + MMRESULT mmrError, + LPSTR pszText, + UINT cchText + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiInGetErrorTextW( + MMRESULT mmrError, + LPWSTR pszText, + UINT cchText + ); +# 1430 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +midiInOpen( + LPHMIDIIN phmi, + UINT uDeviceID, + DWORD_PTR dwCallback, + DWORD_PTR dwInstance, + DWORD fdwOpen + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiInClose( + HMIDIIN hmi + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiInPrepareHeader( + HMIDIIN hmi, + LPMIDIHDR pmh, + UINT cbmh + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiInUnprepareHeader( + HMIDIIN hmi, + LPMIDIHDR pmh, + UINT cbmh + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiInAddBuffer( + HMIDIIN hmi, + LPMIDIHDR pmh, + UINT cbmh + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiInStart( + HMIDIIN hmi + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiInStop( + HMIDIIN hmi + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiInReset( + HMIDIIN hmi + ); + +__declspec(dllimport) +MMRESULT +__stdcall +midiInGetID( + HMIDIIN hmi, + LPUINT puDeviceID + ); + + + + +__declspec(dllimport) +MMRESULT +__stdcall +midiInMessage( + HMIDIIN hmi, + UINT uMsg, + DWORD_PTR dw1, + DWORD_PTR dw2 + ); +# 1536 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +typedef struct tagAUXCAPSA { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + CHAR szPname[32]; + WORD wTechnology; + WORD wReserved1; + DWORD dwSupport; +} AUXCAPSA, *PAUXCAPSA, *NPAUXCAPSA, *LPAUXCAPSA; +typedef struct tagAUXCAPSW { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + WCHAR szPname[32]; + WORD wTechnology; + WORD wReserved1; + DWORD dwSupport; +} AUXCAPSW, *PAUXCAPSW, *NPAUXCAPSW, *LPAUXCAPSW; + + + + + + +typedef AUXCAPSA AUXCAPS; +typedef PAUXCAPSA PAUXCAPS; +typedef NPAUXCAPSA NPAUXCAPS; +typedef LPAUXCAPSA LPAUXCAPS; + +typedef struct tagAUXCAPS2A { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + CHAR szPname[32]; + WORD wTechnology; + WORD wReserved1; + DWORD dwSupport; + GUID ManufacturerGuid; + GUID ProductGuid; + GUID NameGuid; +} AUXCAPS2A, *PAUXCAPS2A, *NPAUXCAPS2A, *LPAUXCAPS2A; +typedef struct tagAUXCAPS2W { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + WCHAR szPname[32]; + WORD wTechnology; + WORD wReserved1; + DWORD dwSupport; + GUID ManufacturerGuid; + GUID ProductGuid; + GUID NameGuid; +} AUXCAPS2W, *PAUXCAPS2W, *NPAUXCAPS2W, *LPAUXCAPS2W; + + + + + + +typedef AUXCAPS2A AUXCAPS2; +typedef PAUXCAPS2A PAUXCAPS2; +typedef NPAUXCAPS2A NPAUXCAPS2; +typedef LPAUXCAPS2A LPAUXCAPS2; +# 1622 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +UINT +__stdcall +auxGetNumDevs( + void + ); + + +__declspec(dllimport) +MMRESULT +__stdcall +auxGetDevCapsA( + UINT_PTR uDeviceID, + LPAUXCAPSA pac, + UINT cbac + ); + +__declspec(dllimport) +MMRESULT +__stdcall +auxGetDevCapsW( + UINT_PTR uDeviceID, + LPAUXCAPSW pac, + UINT cbac + ); +# 1657 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +auxSetVolume( + UINT uDeviceID, + DWORD dwVolume + ); + +__declspec(dllimport) +MMRESULT +__stdcall +auxGetVolume( + UINT uDeviceID, + LPDWORD pdwVolume + ); + + + + +__declspec(dllimport) +MMRESULT +__stdcall +auxOutMessage( + UINT uDeviceID, + UINT uMsg, + DWORD_PTR dw1, + DWORD_PTR dw2 + ); +# 1699 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +struct HMIXEROBJ__{int unused;}; typedef struct HMIXEROBJ__ *HMIXEROBJ; +typedef HMIXEROBJ *LPHMIXEROBJ; + +struct HMIXER__{int unused;}; typedef struct HMIXER__ *HMIXER; +typedef HMIXER *LPHMIXER; +# 1730 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +UINT +__stdcall +mixerGetNumDevs( + void + ); + + + +typedef struct tagMIXERCAPSA { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + CHAR szPname[32]; + DWORD fdwSupport; + DWORD cDestinations; +} MIXERCAPSA, *PMIXERCAPSA, *LPMIXERCAPSA; +typedef struct tagMIXERCAPSW { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + WCHAR szPname[32]; + DWORD fdwSupport; + DWORD cDestinations; +} MIXERCAPSW, *PMIXERCAPSW, *LPMIXERCAPSW; + + + + + +typedef MIXERCAPSA MIXERCAPS; +typedef PMIXERCAPSA PMIXERCAPS; +typedef LPMIXERCAPSA LPMIXERCAPS; + +typedef struct tagMIXERCAPS2A { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + CHAR szPname[32]; + DWORD fdwSupport; + DWORD cDestinations; + GUID ManufacturerGuid; + GUID ProductGuid; + GUID NameGuid; +} MIXERCAPS2A, *PMIXERCAPS2A, *LPMIXERCAPS2A; +typedef struct tagMIXERCAPS2W { + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + WCHAR szPname[32]; + DWORD fdwSupport; + DWORD cDestinations; + GUID ManufacturerGuid; + GUID ProductGuid; + GUID NameGuid; +} MIXERCAPS2W, *PMIXERCAPS2W, *LPMIXERCAPS2W; + + + + + +typedef MIXERCAPS2A MIXERCAPS2; +typedef PMIXERCAPS2A PMIXERCAPS2; +typedef LPMIXERCAPS2A LPMIXERCAPS2; +# 1809 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +mixerGetDevCapsA( + UINT_PTR uMxId, + LPMIXERCAPSA pmxcaps, + UINT cbmxcaps + ); + +__declspec(dllimport) +MMRESULT +__stdcall +mixerGetDevCapsW( + UINT_PTR uMxId, + LPMIXERCAPSW pmxcaps, + UINT cbmxcaps + ); +# 1836 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +mixerOpen( + LPHMIXER phmx, + UINT uMxId, + DWORD_PTR dwCallback, + DWORD_PTR dwInstance, + DWORD fdwOpen + ); + +__declspec(dllimport) +MMRESULT +__stdcall +mixerClose( + HMIXER hmx + ); + +__declspec(dllimport) +DWORD +__stdcall +mixerMessage( + HMIXER hmx, + UINT uMsg, + DWORD_PTR dwParam1, + DWORD_PTR dwParam2 + ); + + + +typedef struct tagMIXERLINEA { + DWORD cbStruct; + DWORD dwDestination; + DWORD dwSource; + DWORD dwLineID; + DWORD fdwLine; + DWORD_PTR dwUser; + DWORD dwComponentType; + DWORD cChannels; + DWORD cConnections; + DWORD cControls; + CHAR szShortName[16]; + CHAR szName[64]; + struct { + DWORD dwType; + DWORD dwDeviceID; + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + CHAR szPname[32]; + } Target; +} MIXERLINEA, *PMIXERLINEA, *LPMIXERLINEA; +typedef struct tagMIXERLINEW { + DWORD cbStruct; + DWORD dwDestination; + DWORD dwSource; + DWORD dwLineID; + DWORD fdwLine; + DWORD_PTR dwUser; + DWORD dwComponentType; + DWORD cChannels; + DWORD cConnections; + DWORD cControls; + WCHAR szShortName[16]; + WCHAR szName[64]; + struct { + DWORD dwType; + DWORD dwDeviceID; + WORD wMid; + WORD wPid; + MMVERSION vDriverVersion; + WCHAR szPname[32]; + } Target; +} MIXERLINEW, *PMIXERLINEW, *LPMIXERLINEW; + + + + + +typedef MIXERLINEA MIXERLINE; +typedef PMIXERLINEA PMIXERLINE; +typedef LPMIXERLINEA LPMIXERLINE; +# 1998 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +mixerGetLineInfoA( + HMIXEROBJ hmxobj, + LPMIXERLINEA pmxl, + DWORD fdwInfo + ); + +__declspec(dllimport) +MMRESULT +__stdcall +mixerGetLineInfoW( + HMIXEROBJ hmxobj, + LPMIXERLINEW pmxl, + DWORD fdwInfo + ); +# 2033 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +mixerGetID( + HMIXEROBJ hmxobj, + UINT * puMxId, + DWORD fdwId + ); + + + + + + + +typedef struct tagMIXERCONTROLA { + DWORD cbStruct; + DWORD dwControlID; + DWORD dwControlType; + DWORD fdwControl; + DWORD cMultipleItems; + CHAR szShortName[16]; + CHAR szName[64]; + union { + struct { + LONG lMinimum; + LONG lMaximum; + } ; + struct { + DWORD dwMinimum; + DWORD dwMaximum; + } ; + DWORD dwReserved[6]; + } Bounds; + union { + DWORD cSteps; + DWORD cbCustomData; + DWORD dwReserved[6]; + } Metrics; +} MIXERCONTROLA, *PMIXERCONTROLA, *LPMIXERCONTROLA; +typedef struct tagMIXERCONTROLW { + DWORD cbStruct; + DWORD dwControlID; + DWORD dwControlType; + DWORD fdwControl; + DWORD cMultipleItems; + WCHAR szShortName[16]; + WCHAR szName[64]; + union { + struct { + LONG lMinimum; + LONG lMaximum; + } ; + struct { + DWORD dwMinimum; + DWORD dwMaximum; + } ; + DWORD dwReserved[6]; + } Bounds; + union { + DWORD cSteps; + DWORD cbCustomData; + DWORD dwReserved[6]; + } Metrics; +} MIXERCONTROLW, *PMIXERCONTROLW, *LPMIXERCONTROLW; + + + + + +typedef MIXERCONTROLA MIXERCONTROL; +typedef PMIXERCONTROLA PMIXERCONTROL; +typedef LPMIXERCONTROLA LPMIXERCONTROL; +# 2220 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +typedef struct tagMIXERLINECONTROLSA { + DWORD cbStruct; + DWORD dwLineID; + union { + DWORD dwControlID; + DWORD dwControlType; + } ; + DWORD cControls; + DWORD cbmxctrl; + LPMIXERCONTROLA pamxctrl; +} MIXERLINECONTROLSA, *PMIXERLINECONTROLSA, *LPMIXERLINECONTROLSA; +typedef struct tagMIXERLINECONTROLSW { + DWORD cbStruct; + DWORD dwLineID; + union { + DWORD dwControlID; + DWORD dwControlType; + } ; + DWORD cControls; + DWORD cbmxctrl; + LPMIXERCONTROLW pamxctrl; +} MIXERLINECONTROLSW, *PMIXERLINECONTROLSW, *LPMIXERLINECONTROLSW; + + + + + +typedef MIXERLINECONTROLSA MIXERLINECONTROLS; +typedef PMIXERLINECONTROLSA PMIXERLINECONTROLS; +typedef LPMIXERLINECONTROLSA LPMIXERLINECONTROLS; +# 2271 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +mixerGetLineControlsA( + HMIXEROBJ hmxobj, + LPMIXERLINECONTROLSA pmxlc, + DWORD fdwControls + ); + +__declspec(dllimport) +MMRESULT +__stdcall +mixerGetLineControlsW( + HMIXEROBJ hmxobj, + LPMIXERLINECONTROLSW pmxlc, + DWORD fdwControls + ); +# 2304 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +typedef struct tMIXERCONTROLDETAILS { + DWORD cbStruct; + DWORD dwControlID; + DWORD cChannels; + union { + HWND hwndOwner; + DWORD cMultipleItems; + } ; + DWORD cbDetails; + LPVOID paDetails; +} MIXERCONTROLDETAILS, *PMIXERCONTROLDETAILS, *LPMIXERCONTROLDETAILS; + + + + + + + +typedef struct tagMIXERCONTROLDETAILS_LISTTEXTA { + DWORD dwParam1; + DWORD dwParam2; + CHAR szName[64]; +} MIXERCONTROLDETAILS_LISTTEXTA, *PMIXERCONTROLDETAILS_LISTTEXTA, *LPMIXERCONTROLDETAILS_LISTTEXTA; +typedef struct tagMIXERCONTROLDETAILS_LISTTEXTW { + DWORD dwParam1; + DWORD dwParam2; + WCHAR szName[64]; +} MIXERCONTROLDETAILS_LISTTEXTW, *PMIXERCONTROLDETAILS_LISTTEXTW, *LPMIXERCONTROLDETAILS_LISTTEXTW; + + + + + +typedef MIXERCONTROLDETAILS_LISTTEXTA MIXERCONTROLDETAILS_LISTTEXT; +typedef PMIXERCONTROLDETAILS_LISTTEXTA PMIXERCONTROLDETAILS_LISTTEXT; +typedef LPMIXERCONTROLDETAILS_LISTTEXTA LPMIXERCONTROLDETAILS_LISTTEXT; +# 2354 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +typedef struct tMIXERCONTROLDETAILS_BOOLEAN { + LONG fValue; +} MIXERCONTROLDETAILS_BOOLEAN, + *PMIXERCONTROLDETAILS_BOOLEAN, + *LPMIXERCONTROLDETAILS_BOOLEAN; + +typedef struct tMIXERCONTROLDETAILS_SIGNED { + LONG lValue; +} MIXERCONTROLDETAILS_SIGNED, + *PMIXERCONTROLDETAILS_SIGNED, + *LPMIXERCONTROLDETAILS_SIGNED; + +typedef struct tMIXERCONTROLDETAILS_UNSIGNED { + DWORD dwValue; +} MIXERCONTROLDETAILS_UNSIGNED, + *PMIXERCONTROLDETAILS_UNSIGNED, + *LPMIXERCONTROLDETAILS_UNSIGNED; + + + +__declspec(dllimport) +MMRESULT +__stdcall +mixerGetControlDetailsA( + HMIXEROBJ hmxobj, + LPMIXERCONTROLDETAILS pmxcd, + DWORD fdwDetails + ); + +__declspec(dllimport) +MMRESULT +__stdcall +mixerGetControlDetailsW( + HMIXEROBJ hmxobj, + LPMIXERCONTROLDETAILS pmxcd, + DWORD fdwDetails + ); +# 2406 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +mixerSetControlDetails( + HMIXEROBJ hmxobj, + LPMIXERCONTROLDETAILS pmxcd, + DWORD fdwDetails + ); +# 74 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 +# 88 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\timeapi.h" 1 3 +# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\timeapi.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\timeapi.h" 2 3 +# 41 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\timeapi.h" 3 +typedef struct timecaps_tag { + UINT wPeriodMin; + UINT wPeriodMax; +} TIMECAPS, *PTIMECAPS, *NPTIMECAPS, *LPTIMECAPS; + + + +__declspec(dllimport) +MMRESULT +__stdcall +timeGetSystemTime( + LPMMTIME pmmt, + UINT cbmmt + ); + + + +__declspec(dllimport) +DWORD +__stdcall +timeGetTime( + void + ); + + + +__declspec(dllimport) +MMRESULT +__stdcall +timeGetDevCaps( + LPTIMECAPS ptc, + UINT cbtc + ); + +__declspec(dllimport) +MMRESULT +__stdcall +timeBeginPeriod( + UINT uPeriod + ); + +__declspec(dllimport) +MMRESULT +__stdcall +timeEndPeriod( + UINT uPeriod + ); +# 89 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 +# 103 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\joystickapi.h" 1 3 +# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\joystickapi.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\joystickapi.h" 2 3 +# 132 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\joystickapi.h" 3 +typedef struct tagJOYCAPSA { + WORD wMid; + WORD wPid; + CHAR szPname[32]; + UINT wXmin; + UINT wXmax; + UINT wYmin; + UINT wYmax; + UINT wZmin; + UINT wZmax; + UINT wNumButtons; + UINT wPeriodMin; + UINT wPeriodMax; + + UINT wRmin; + UINT wRmax; + UINT wUmin; + UINT wUmax; + UINT wVmin; + UINT wVmax; + UINT wCaps; + UINT wMaxAxes; + UINT wNumAxes; + UINT wMaxButtons; + CHAR szRegKey[32]; + CHAR szOEMVxD[260]; + +} JOYCAPSA, *PJOYCAPSA, *NPJOYCAPSA, *LPJOYCAPSA; +typedef struct tagJOYCAPSW { + WORD wMid; + WORD wPid; + WCHAR szPname[32]; + UINT wXmin; + UINT wXmax; + UINT wYmin; + UINT wYmax; + UINT wZmin; + UINT wZmax; + UINT wNumButtons; + UINT wPeriodMin; + UINT wPeriodMax; + + UINT wRmin; + UINT wRmax; + UINT wUmin; + UINT wUmax; + UINT wVmin; + UINT wVmax; + UINT wCaps; + UINT wMaxAxes; + UINT wNumAxes; + UINT wMaxButtons; + WCHAR szRegKey[32]; + WCHAR szOEMVxD[260]; + +} JOYCAPSW, *PJOYCAPSW, *NPJOYCAPSW, *LPJOYCAPSW; + + + + + + +typedef JOYCAPSA JOYCAPS; +typedef PJOYCAPSA PJOYCAPS; +typedef NPJOYCAPSA NPJOYCAPS; +typedef LPJOYCAPSA LPJOYCAPS; + +typedef struct tagJOYCAPS2A { + WORD wMid; + WORD wPid; + CHAR szPname[32]; + UINT wXmin; + UINT wXmax; + UINT wYmin; + UINT wYmax; + UINT wZmin; + UINT wZmax; + UINT wNumButtons; + UINT wPeriodMin; + UINT wPeriodMax; + UINT wRmin; + UINT wRmax; + UINT wUmin; + UINT wUmax; + UINT wVmin; + UINT wVmax; + UINT wCaps; + UINT wMaxAxes; + UINT wNumAxes; + UINT wMaxButtons; + CHAR szRegKey[32]; + CHAR szOEMVxD[260]; + GUID ManufacturerGuid; + GUID ProductGuid; + GUID NameGuid; +} JOYCAPS2A, *PJOYCAPS2A, *NPJOYCAPS2A, *LPJOYCAPS2A; +typedef struct tagJOYCAPS2W { + WORD wMid; + WORD wPid; + WCHAR szPname[32]; + UINT wXmin; + UINT wXmax; + UINT wYmin; + UINT wYmax; + UINT wZmin; + UINT wZmax; + UINT wNumButtons; + UINT wPeriodMin; + UINT wPeriodMax; + UINT wRmin; + UINT wRmax; + UINT wUmin; + UINT wUmax; + UINT wVmin; + UINT wVmax; + UINT wCaps; + UINT wMaxAxes; + UINT wNumAxes; + UINT wMaxButtons; + WCHAR szRegKey[32]; + WCHAR szOEMVxD[260]; + GUID ManufacturerGuid; + GUID ProductGuid; + GUID NameGuid; +} JOYCAPS2W, *PJOYCAPS2W, *NPJOYCAPS2W, *LPJOYCAPS2W; + + + + + + +typedef JOYCAPS2A JOYCAPS2; +typedef PJOYCAPS2A PJOYCAPS2; +typedef NPJOYCAPS2A NPJOYCAPS2; +typedef LPJOYCAPS2A LPJOYCAPS2; +# 301 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\joystickapi.h" 3 +typedef struct joyinfo_tag { + UINT wXpos; + UINT wYpos; + UINT wZpos; + UINT wButtons; +} JOYINFO, *PJOYINFO, *NPJOYINFO, *LPJOYINFO; + + +typedef struct joyinfoex_tag { + DWORD dwSize; + DWORD dwFlags; + DWORD dwXpos; + DWORD dwYpos; + DWORD dwZpos; + DWORD dwRpos; + DWORD dwUpos; + DWORD dwVpos; + DWORD dwButtons; + DWORD dwButtonNumber; + DWORD dwPOV; + DWORD dwReserved1; + DWORD dwReserved2; +} JOYINFOEX, *PJOYINFOEX, *NPJOYINFOEX, *LPJOYINFOEX; + + + + + + +__declspec(dllimport) +MMRESULT +__stdcall +joyGetPosEx( + UINT uJoyID, + LPJOYINFOEX pji + ); + + +__declspec(dllimport) +UINT +__stdcall +joyGetNumDevs( + void + ); + + +__declspec(dllimport) +MMRESULT +__stdcall +joyGetDevCapsA( + UINT_PTR uJoyID, + LPJOYCAPSA pjc, + UINT cbjc + ); + +__declspec(dllimport) +MMRESULT +__stdcall +joyGetDevCapsW( + UINT_PTR uJoyID, + LPJOYCAPSW pjc, + UINT cbjc + ); +# 374 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\joystickapi.h" 3 +__declspec(dllimport) +MMRESULT +__stdcall +joyGetPos( + UINT uJoyID, + LPJOYINFO pji + ); + +__declspec(dllimport) +MMRESULT +__stdcall +joyGetThreshold( + UINT uJoyID, + LPUINT puThreshold + ); + +__declspec(dllimport) +MMRESULT +__stdcall +joyReleaseCapture( + UINT uJoyID + ); + +__declspec(dllimport) +MMRESULT +__stdcall +joySetCapture( + HWND hwnd, + UINT uJoyID, + UINT uPeriod, + BOOL fChanged + ); + +__declspec(dllimport) +MMRESULT +__stdcall +joySetThreshold( + UINT uJoyID, + UINT uThreshold + ); + + + +__declspec(dllimport) +MMRESULT +__stdcall +joyConfigChanged( + DWORD dwFlags + ); +# 104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 +# 154 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 155 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 +# 201 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\nb30.h" 1 3 +# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\nb30.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) +# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\nb30.h" 3 +typedef struct _NCB { + UCHAR ncb_command; + UCHAR ncb_retcode; + UCHAR ncb_lsn; + UCHAR ncb_num; + PUCHAR ncb_buffer; + WORD ncb_length; + UCHAR ncb_callname[16]; + UCHAR ncb_name[16]; + UCHAR ncb_rto; + UCHAR ncb_sto; + void (__stdcall *ncb_post)( struct _NCB * ); + UCHAR ncb_lana_num; + UCHAR ncb_cmd_cplt; + + UCHAR ncb_reserve[18]; + + + + HANDLE ncb_event; + + + +} NCB, *PNCB; + + + + + + +typedef struct _ADAPTER_STATUS { + UCHAR adapter_address[6]; + UCHAR rev_major; + UCHAR reserved0; + UCHAR adapter_type; + UCHAR rev_minor; + WORD duration; + WORD frmr_recv; + WORD frmr_xmit; + + WORD iframe_recv_err; + + WORD xmit_aborts; + DWORD xmit_success; + DWORD recv_success; + + WORD iframe_xmit_err; + + WORD recv_buff_unavail; + WORD t1_timeouts; + WORD ti_timeouts; + DWORD reserved1; + WORD free_ncbs; + WORD max_cfg_ncbs; + WORD max_ncbs; + WORD xmit_buf_unavail; + WORD max_dgram_size; + WORD pending_sess; + WORD max_cfg_sess; + WORD max_sess; + WORD max_sess_pkt_size; + WORD name_count; +} ADAPTER_STATUS, *PADAPTER_STATUS; + +typedef struct _NAME_BUFFER { + UCHAR name[16]; + UCHAR name_num; + UCHAR name_flags; +} NAME_BUFFER, *PNAME_BUFFER; +# 138 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\nb30.h" 3 +typedef struct _SESSION_HEADER { + UCHAR sess_name; + UCHAR num_sess; + UCHAR rcv_dg_outstanding; + UCHAR rcv_any_outstanding; +} SESSION_HEADER, *PSESSION_HEADER; + +typedef struct _SESSION_BUFFER { + UCHAR lsn; + UCHAR state; + UCHAR local_name[16]; + UCHAR remote_name[16]; + UCHAR rcvs_outstanding; + UCHAR sends_outstanding; +} SESSION_BUFFER, *PSESSION_BUFFER; +# 170 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\nb30.h" 3 +typedef struct _LANA_ENUM { + UCHAR length; + UCHAR lana[254 +1]; +} LANA_ENUM, *PLANA_ENUM; + + + + + + +typedef struct _FIND_NAME_HEADER { + WORD node_count; + UCHAR reserved; + UCHAR unique_group; +} FIND_NAME_HEADER, *PFIND_NAME_HEADER; + +typedef struct _FIND_NAME_BUFFER { + UCHAR length; + UCHAR access_control; + UCHAR frame_control; + UCHAR destination_addr[6]; + UCHAR source_addr[6]; + UCHAR routing_info[18]; +} FIND_NAME_BUFFER, *PFIND_NAME_BUFFER; + + + + + + +typedef struct _ACTION_HEADER { + ULONG transport_id; + USHORT action_code; + USHORT reserved; +} ACTION_HEADER, *PACTION_HEADER; +# 305 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\nb30.h" 3 +UCHAR +__stdcall +Netbios( + PNCB pncb + ); +# 324 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\nb30.h" 3 +#pragma warning(pop) +# 202 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 1 3 +# 65 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,8) +# 66 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 2 3 + + + + + + + + +typedef void * I_RPC_HANDLE; + + + + +typedef long RPC_STATUS; +# 156 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 1 3 +# 29 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +#pragma warning(push) +#pragma warning(disable: 4668) +#pragma warning(disable: 4820) +# 63 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef unsigned char * RPC_CSTR; + + + + + +typedef unsigned short * RPC_WSTR; +typedef const unsigned short * RPC_CWSTR; + + +typedef I_RPC_HANDLE RPC_BINDING_HANDLE; +typedef RPC_BINDING_HANDLE handle_t; +# 83 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef GUID UUID; +# 95 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef struct _RPC_BINDING_VECTOR +{ + unsigned long Count; + RPC_BINDING_HANDLE BindingH[1]; +} RPC_BINDING_VECTOR; + + + + +typedef struct _UUID_VECTOR +{ + unsigned long Count; + UUID *Uuid[1]; +} UUID_VECTOR; +# 119 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef void * RPC_IF_HANDLE; + + + +typedef struct _RPC_IF_ID +{ + UUID Uuid; + unsigned short VersMajor; + unsigned short VersMinor; +} RPC_IF_ID; +# 215 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef struct _RPC_PROTSEQ_VECTORA +{ + unsigned int Count; + unsigned char * Protseq[1]; +} RPC_PROTSEQ_VECTORA; + +typedef struct _RPC_PROTSEQ_VECTORW +{ + unsigned int Count; + unsigned short * Protseq[1]; +} RPC_PROTSEQ_VECTORW; +# 242 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef struct _RPC_POLICY { + unsigned int Length ; + unsigned long EndpointFlags ; + unsigned long NICFlags ; + } RPC_POLICY, *PRPC_POLICY ; + +typedef void __stdcall +RPC_OBJECT_INQ_FN ( + UUID * ObjectUuid, + UUID * TypeUuid, + RPC_STATUS * Status + ); + + +typedef RPC_STATUS __stdcall +RPC_IF_CALLBACK_FN ( + RPC_IF_HANDLE InterfaceUuid, + void *Context + ) ; + +typedef void __stdcall +RPC_SECURITY_CALLBACK_FN ( + void *Context + ) ; +# 275 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef struct +{ + unsigned int Count; + unsigned long Stats[1]; +} RPC_STATS_VECTOR; + + + + + + +typedef struct +{ + unsigned long Count; + RPC_IF_ID * IfId[1]; +} RPC_IF_ID_VECTOR; + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingCopy ( + RPC_BINDING_HANDLE SourceBinding, + RPC_BINDING_HANDLE * DestinationBinding + ); + + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcBindingFree ( + RPC_BINDING_HANDLE * Binding + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingSetOption ( + RPC_BINDING_HANDLE hBinding, + unsigned long option, + ULONG_PTR optionValue + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingInqOption ( + RPC_BINDING_HANDLE hBinding, + unsigned long option, + ULONG_PTR *pOptionValue + ); + + + + + + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingFromStringBindingA ( + RPC_CSTR StringBinding, + RPC_BINDING_HANDLE * Binding + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingFromStringBindingW ( + RPC_WSTR StringBinding, + RPC_BINDING_HANDLE * Binding + ); +# 382 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcSsGetContextBinding ( + void *ContextHandle, + RPC_BINDING_HANDLE * Binding + ); +# 397 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingInqMaxCalls ( + RPC_BINDING_HANDLE Binding, + unsigned int * MaxCalls + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingInqObject ( + RPC_BINDING_HANDLE Binding, + UUID * ObjectUuid + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingReset ( + RPC_BINDING_HANDLE Binding + ); + + + + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingSetObject ( + RPC_BINDING_HANDLE Binding, + UUID * ObjectUuid + ); +# 445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtInqDefaultProtectLevel ( + unsigned long AuthnSvc, + unsigned long *AuthnLevel + ); +# 465 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingToStringBindingA ( + RPC_BINDING_HANDLE Binding, + RPC_CSTR * StringBinding + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingToStringBindingW ( + RPC_BINDING_HANDLE Binding, + RPC_WSTR * StringBinding + ); +# 509 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcBindingVectorFree ( + RPC_BINDING_VECTOR * * BindingVector + ); +# 529 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcStringBindingComposeA ( + RPC_CSTR ObjUuid, + RPC_CSTR ProtSeq, + RPC_CSTR NetworkAddr, + RPC_CSTR Endpoint, + RPC_CSTR Options, + RPC_CSTR * StringBinding + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcStringBindingComposeW ( + RPC_WSTR ObjUuid, + RPC_WSTR ProtSeq, + RPC_WSTR NetworkAddr, + RPC_WSTR Endpoint, + RPC_WSTR Options, + RPC_WSTR * StringBinding + ); +# 594 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcStringBindingParseA ( + RPC_CSTR StringBinding, + RPC_CSTR * ObjUuid, + RPC_CSTR * Protseq, + RPC_CSTR * NetworkAddr, + RPC_CSTR * Endpoint, + RPC_CSTR * NetworkOptions + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcStringBindingParseW ( + RPC_WSTR StringBinding, + RPC_WSTR * ObjUuid, + RPC_WSTR * Protseq, + RPC_WSTR * NetworkAddr, + RPC_WSTR * Endpoint, + RPC_WSTR * NetworkOptions + ); +# 660 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcStringFreeA ( + RPC_CSTR * String + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcStringFreeW ( + RPC_WSTR * String + ); +# 701 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcIfInqId ( + RPC_IF_HANDLE RpcIfHandle, + RPC_IF_ID * RpcIfId + ); +# 718 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcNetworkIsProtseqValidA ( + RPC_CSTR Protseq + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcNetworkIsProtseqValidW ( + RPC_WSTR Protseq + ); +# 761 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtInqComTimeout ( + RPC_BINDING_HANDLE Binding, + unsigned int * Timeout + ); + + + + + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtSetComTimeout ( + RPC_BINDING_HANDLE Binding, + unsigned int Timeout + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtSetCancelTimeout( + long Timeout + ); +# 803 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcNetworkInqProtseqsA ( + RPC_PROTSEQ_VECTORA * * ProtseqVector + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcNetworkInqProtseqsW ( + RPC_PROTSEQ_VECTORW * * ProtseqVector + ); +# 837 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcObjectInqType ( + UUID * ObjUuid, + UUID * TypeUuid + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcObjectSetInqFn ( + RPC_OBJECT_INQ_FN * InquiryFn + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcObjectSetType ( + UUID * ObjUuid, + UUID * TypeUuid + ); + + + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcProtseqVectorFreeA ( + RPC_PROTSEQ_VECTORA * * ProtseqVector + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcProtseqVectorFreeW ( + RPC_PROTSEQ_VECTORW * * ProtseqVector + ); +# 901 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerInqBindings ( + RPC_BINDING_VECTOR * * BindingVector + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerInqBindingsEx ( + void * SecurityDescriptor, + RPC_BINDING_VECTOR * * BindingVector + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerInqIf ( + RPC_IF_HANDLE IfSpec, + UUID * MgrTypeUuid, + void * * MgrEpv + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerListen ( + unsigned int MinimumCallThreads, + unsigned int MaxCalls, + unsigned int DontWait + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerRegisterIf ( + RPC_IF_HANDLE IfSpec, + UUID * MgrTypeUuid, + void * MgrEpv + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerRegisterIfEx ( + RPC_IF_HANDLE IfSpec, + UUID * MgrTypeUuid, + void * MgrEpv, + unsigned int Flags, + unsigned int MaxCalls, + RPC_IF_CALLBACK_FN *IfCallback + ); + + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerRegisterIf2 ( + RPC_IF_HANDLE IfSpec, + UUID * MgrTypeUuid, + void * MgrEpv, + unsigned int Flags, + unsigned int MaxCalls, + unsigned int MaxRpcSize, + RPC_IF_CALLBACK_FN *IfCallbackFn + ); + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerRegisterIf3 ( + RPC_IF_HANDLE IfSpec, + UUID * MgrTypeUuid, + void * MgrEpv, + unsigned int Flags, + unsigned int MaxCalls, + unsigned int MaxRpcSize, + RPC_IF_CALLBACK_FN *IfCallback, + void * SecurityDescriptor + ); + + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUnregisterIf ( + RPC_IF_HANDLE IfSpec, + UUID * MgrTypeUuid, + unsigned int WaitForCallsToComplete + ); + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerUnregisterIfEx ( + RPC_IF_HANDLE IfSpec, + UUID * MgrTypeUuid, + int RundownContextHandles + ); + + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseAllProtseqs ( + unsigned int MaxCalls, + void * SecurityDescriptor + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseAllProtseqsEx ( + unsigned int MaxCalls, + void * SecurityDescriptor, + PRPC_POLICY Policy + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseAllProtseqsIf ( + unsigned int MaxCalls, + RPC_IF_HANDLE IfSpec, + void * SecurityDescriptor + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseAllProtseqsIfEx ( + unsigned int MaxCalls, + RPC_IF_HANDLE IfSpec, + void * SecurityDescriptor, + PRPC_POLICY Policy + ); + + + + + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseProtseqA ( + RPC_CSTR Protseq, + unsigned int MaxCalls, + void * SecurityDescriptor + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseProtseqExA ( + RPC_CSTR Protseq, + unsigned int MaxCalls, + void * SecurityDescriptor, + PRPC_POLICY Policy + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseProtseqW ( + RPC_WSTR Protseq, + unsigned int MaxCalls, + void * SecurityDescriptor + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseProtseqExW ( + RPC_WSTR Protseq, + unsigned int MaxCalls, + void * SecurityDescriptor, + PRPC_POLICY Policy + ); +# 1146 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseProtseqEpA ( + RPC_CSTR Protseq, + unsigned int MaxCalls, + RPC_CSTR Endpoint, + void * SecurityDescriptor + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseProtseqEpExA ( + RPC_CSTR Protseq, + unsigned int MaxCalls, + RPC_CSTR Endpoint, + void * SecurityDescriptor, + PRPC_POLICY Policy + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseProtseqEpW ( + RPC_WSTR Protseq, + unsigned int MaxCalls, + RPC_WSTR Endpoint, + void * SecurityDescriptor + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseProtseqEpExW ( + RPC_WSTR Protseq, + unsigned int MaxCalls, + RPC_WSTR Endpoint, + void * SecurityDescriptor, + PRPC_POLICY Policy + ); +# 1229 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseProtseqIfA ( + RPC_CSTR Protseq, + unsigned int MaxCalls, + RPC_IF_HANDLE IfSpec, + void * SecurityDescriptor + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseProtseqIfExA ( + RPC_CSTR Protseq, + unsigned int MaxCalls, + RPC_IF_HANDLE IfSpec, + void * SecurityDescriptor, + PRPC_POLICY Policy + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseProtseqIfW ( + RPC_WSTR Protseq, + unsigned int MaxCalls, + RPC_IF_HANDLE IfSpec, + void * SecurityDescriptor + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerUseProtseqIfExW ( + RPC_WSTR Protseq, + unsigned int MaxCalls, + RPC_IF_HANDLE IfSpec, + void * SecurityDescriptor, + PRPC_POLICY Policy + ); +# 1308 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) +void +__stdcall +RpcServerYield ( + void + ); + + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcMgmtStatsVectorFree ( + RPC_STATS_VECTOR ** StatsVector + ); +# 1330 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtInqStats ( + RPC_BINDING_HANDLE Binding, + RPC_STATS_VECTOR ** Statistics + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtIsServerListening ( + RPC_BINDING_HANDLE Binding + ); +# 1355 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtStopServerListening ( + RPC_BINDING_HANDLE Binding + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtWaitServerListen ( + void + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtSetServerStackSize ( + unsigned long ThreadStackSize + ); + + +__declspec(dllimport) +void +__stdcall +RpcSsDontSerializeContext ( + void + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtEnableIdleCleanup ( + void + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtInqIfIds ( + RPC_BINDING_HANDLE Binding, + RPC_IF_ID_VECTOR * * IfIdVector + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcIfIdVectorFree ( + RPC_IF_ID_VECTOR * * IfIdVector + ); +# 1422 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtInqServerPrincNameA ( + RPC_BINDING_HANDLE Binding, + unsigned long AuthnSvc, + RPC_CSTR * ServerPrincName + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtInqServerPrincNameW ( + RPC_BINDING_HANDLE Binding, + unsigned long AuthnSvc, + RPC_WSTR * ServerPrincName + ); +# 1475 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerInqDefaultPrincNameA ( + unsigned long AuthnSvc, + RPC_CSTR * PrincName + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerInqDefaultPrincNameW ( + unsigned long AuthnSvc, + RPC_WSTR * PrincName + ); +# 1518 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcEpResolveBinding ( + RPC_BINDING_HANDLE Binding, + RPC_IF_HANDLE IfSpec + ); +# 1537 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcNsBindingInqEntryNameA ( + RPC_BINDING_HANDLE Binding, + unsigned long EntryNameSyntax, + RPC_CSTR * EntryName + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcNsBindingInqEntryNameW ( + RPC_BINDING_HANDLE Binding, + unsigned long EntryNameSyntax, + RPC_WSTR * EntryName + ); +# 1582 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef void * RPC_AUTH_IDENTITY_HANDLE; +typedef void * RPC_AUTHZ_HANDLE; +# 1657 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef struct _RPC_SECURITY_QOS { + unsigned long Version; + unsigned long Capabilities; + unsigned long IdentityTracking; + unsigned long ImpersonationType; +} RPC_SECURITY_QOS, *PRPC_SECURITY_QOS; + + + + + + + +typedef struct _SEC_WINNT_AUTH_IDENTITY_W { + unsigned short *User; + unsigned long UserLength; + unsigned short *Domain; + unsigned long DomainLength; + unsigned short *Password; + unsigned long PasswordLength; + unsigned long Flags; +} SEC_WINNT_AUTH_IDENTITY_W, *PSEC_WINNT_AUTH_IDENTITY_W; + + + + + +typedef struct _SEC_WINNT_AUTH_IDENTITY_A { + unsigned char *User; + unsigned long UserLength; + unsigned char *Domain; + unsigned long DomainLength; + unsigned char *Password; + unsigned long PasswordLength; + unsigned long Flags; +} SEC_WINNT_AUTH_IDENTITY_A, *PSEC_WINNT_AUTH_IDENTITY_A; +# 1735 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W +{ + SEC_WINNT_AUTH_IDENTITY_W *TransportCredentials; + unsigned long Flags; + unsigned long AuthenticationTarget; + unsigned long NumberOfAuthnSchemes; + unsigned long *AuthnSchemes; + unsigned short *ServerCertificateSubject; +} RPC_HTTP_TRANSPORT_CREDENTIALS_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_W; + +typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_A +{ + SEC_WINNT_AUTH_IDENTITY_A *TransportCredentials; + unsigned long Flags; + unsigned long AuthenticationTarget; + unsigned long NumberOfAuthnSchemes; + unsigned long *AuthnSchemes; + unsigned char *ServerCertificateSubject; +} RPC_HTTP_TRANSPORT_CREDENTIALS_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_A; + + + +typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W +{ + SEC_WINNT_AUTH_IDENTITY_W *TransportCredentials; + unsigned long Flags; + unsigned long AuthenticationTarget; + unsigned long NumberOfAuthnSchemes; + unsigned long *AuthnSchemes; + unsigned short *ServerCertificateSubject; + SEC_WINNT_AUTH_IDENTITY_W *ProxyCredentials; + unsigned long NumberOfProxyAuthnSchemes; + unsigned long *ProxyAuthnSchemes; +} RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V2_W; + +typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A +{ + SEC_WINNT_AUTH_IDENTITY_A *TransportCredentials; + unsigned long Flags; + unsigned long AuthenticationTarget; + unsigned long NumberOfAuthnSchemes; + unsigned long *AuthnSchemes; + unsigned char *ServerCertificateSubject; + SEC_WINNT_AUTH_IDENTITY_A *ProxyCredentials; + unsigned long NumberOfProxyAuthnSchemes; + unsigned long *ProxyAuthnSchemes; +} RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V2_A; + + + + + +typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W +{ + RPC_AUTH_IDENTITY_HANDLE TransportCredentials; + unsigned long Flags; + unsigned long AuthenticationTarget; + unsigned long NumberOfAuthnSchemes; + unsigned long *AuthnSchemes; + unsigned short *ServerCertificateSubject; + RPC_AUTH_IDENTITY_HANDLE ProxyCredentials; + unsigned long NumberOfProxyAuthnSchemes; + unsigned long *ProxyAuthnSchemes; +} RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V3_W; + +typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A +{ + RPC_AUTH_IDENTITY_HANDLE TransportCredentials; + unsigned long Flags; + unsigned long AuthenticationTarget; + unsigned long NumberOfAuthnSchemes; + unsigned long *AuthnSchemes; + unsigned char *ServerCertificateSubject; + RPC_AUTH_IDENTITY_HANDLE ProxyCredentials; + unsigned long NumberOfProxyAuthnSchemes; + unsigned long *ProxyAuthnSchemes; +} RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V3_A; + + + +typedef struct _RPC_SECURITY_QOS_V2_W { + unsigned long Version; + unsigned long Capabilities; + unsigned long IdentityTracking; + unsigned long ImpersonationType; + unsigned long AdditionalSecurityInfoType; + union + { + RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials; + } u; +} RPC_SECURITY_QOS_V2_W, *PRPC_SECURITY_QOS_V2_W; + +typedef struct _RPC_SECURITY_QOS_V2_A { + unsigned long Version; + unsigned long Capabilities; + unsigned long IdentityTracking; + unsigned long ImpersonationType; + unsigned long AdditionalSecurityInfoType; + union + { + RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials; + } u; +} RPC_SECURITY_QOS_V2_A, *PRPC_SECURITY_QOS_V2_A; + + + + +typedef struct _RPC_SECURITY_QOS_V3_W { + unsigned long Version; + unsigned long Capabilities; + unsigned long IdentityTracking; + unsigned long ImpersonationType; + unsigned long AdditionalSecurityInfoType; + union + { + RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials; + } u; + void *Sid; +} RPC_SECURITY_QOS_V3_W, *PRPC_SECURITY_QOS_V3_W; + +typedef struct _RPC_SECURITY_QOS_V3_A { + unsigned long Version; + unsigned long Capabilities; + unsigned long IdentityTracking; + unsigned long ImpersonationType; + unsigned long AdditionalSecurityInfoType; + union + { + RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials; + } u; + void *Sid; +} RPC_SECURITY_QOS_V3_A, *PRPC_SECURITY_QOS_V3_A; + + + + + + +typedef struct _RPC_SECURITY_QOS_V4_W { + unsigned long Version; + unsigned long Capabilities; + unsigned long IdentityTracking; + unsigned long ImpersonationType; + unsigned long AdditionalSecurityInfoType; + union + { + RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials; + } u; + void *Sid; + unsigned int EffectiveOnly; +} RPC_SECURITY_QOS_V4_W, *PRPC_SECURITY_QOS_V4_W; + +typedef struct _RPC_SECURITY_QOS_V4_A { + unsigned long Version; + unsigned long Capabilities; + unsigned long IdentityTracking; + unsigned long ImpersonationType; + unsigned long AdditionalSecurityInfoType; + union + { + RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials; + } u; + void *Sid; + unsigned int EffectiveOnly; +} RPC_SECURITY_QOS_V4_A, *PRPC_SECURITY_QOS_V4_A; + + + + + + +typedef struct _RPC_SECURITY_QOS_V5_W { + unsigned long Version; + unsigned long Capabilities; + unsigned long IdentityTracking; + unsigned long ImpersonationType; + unsigned long AdditionalSecurityInfoType; + union + { + RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials; + } u; + void *Sid; + unsigned int EffectiveOnly; + void *ServerSecurityDescriptor; +} RPC_SECURITY_QOS_V5_W, *PRPC_SECURITY_QOS_V5_W; + +typedef struct _RPC_SECURITY_QOS_V5_A { + unsigned long Version; + unsigned long Capabilities; + unsigned long IdentityTracking; + unsigned long ImpersonationType; + unsigned long AdditionalSecurityInfoType; + union + { + RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials; + } u; + void *Sid; + unsigned int EffectiveOnly; + void *ServerSecurityDescriptor; +} RPC_SECURITY_QOS_V5_A, *PRPC_SECURITY_QOS_V5_A; +# 2051 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef struct _RPC_BINDING_HANDLE_TEMPLATE_V1_W { + unsigned long Version; + unsigned long Flags; + unsigned long ProtocolSequence; + unsigned short *NetworkAddress; + unsigned short *StringEndpoint; + union + { + unsigned short *Reserved; + } u1; + UUID ObjectUuid; +} RPC_BINDING_HANDLE_TEMPLATE_V1_W, *PRPC_BINDING_HANDLE_TEMPLATE_V1_W; + +typedef struct _RPC_BINDING_HANDLE_TEMPLATE_V1_A { + unsigned long Version; + unsigned long Flags; + unsigned long ProtocolSequence; + unsigned char *NetworkAddress; + unsigned char *StringEndpoint; + union + { + unsigned char *Reserved; + } u1; + UUID ObjectUuid; +} RPC_BINDING_HANDLE_TEMPLATE_V1_A, *PRPC_BINDING_HANDLE_TEMPLATE_V1_A; + +typedef struct _RPC_BINDING_HANDLE_SECURITY_V1_W { + unsigned long Version; + unsigned short *ServerPrincName; + unsigned long AuthnLevel; + unsigned long AuthnSvc; + SEC_WINNT_AUTH_IDENTITY_W *AuthIdentity; + RPC_SECURITY_QOS *SecurityQos; +} RPC_BINDING_HANDLE_SECURITY_V1_W, *PRPC_BINDING_HANDLE_SECURITY_V1_W; + + + +typedef struct _RPC_BINDING_HANDLE_SECURITY_V1_A { + unsigned long Version; + unsigned char *ServerPrincName; + unsigned long AuthnLevel; + unsigned long AuthnSvc; + SEC_WINNT_AUTH_IDENTITY_A *AuthIdentity; + RPC_SECURITY_QOS *SecurityQos; +} RPC_BINDING_HANDLE_SECURITY_V1_A, *PRPC_BINDING_HANDLE_SECURITY_V1_A; + + + +typedef struct _RPC_BINDING_HANDLE_OPTIONS_V1 { + unsigned long Version; + unsigned long Flags; + unsigned long ComTimeout; + unsigned long CallTimeout; +} RPC_BINDING_HANDLE_OPTIONS_V1, *PRPC_BINDING_HANDLE_OPTIONS_V1; +# 2130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcBindingCreateA ( + RPC_BINDING_HANDLE_TEMPLATE_V1_A * Template, + RPC_BINDING_HANDLE_SECURITY_V1_A * Security, + RPC_BINDING_HANDLE_OPTIONS_V1 * Options, + RPC_BINDING_HANDLE * Binding + ); + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcBindingCreateW ( + RPC_BINDING_HANDLE_TEMPLATE_V1_W * Template, + RPC_BINDING_HANDLE_SECURITY_V1_W * Security, + RPC_BINDING_HANDLE_OPTIONS_V1 * Options, + RPC_BINDING_HANDLE * Binding + ); +# 2164 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcBindingGetTrainingContextHandle ( + RPC_BINDING_HANDLE Binding, + void ** ContextHandle + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerInqBindingHandle ( + RPC_BINDING_HANDLE * Binding + ); +# 2190 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef enum _RPC_HTTP_REDIRECTOR_STAGE +{ + RPCHTTP_RS_REDIRECT = 1, + RPCHTTP_RS_ACCESS_1, + RPCHTTP_RS_SESSION, + RPCHTTP_RS_ACCESS_2, + RPCHTTP_RS_INTERFACE +} RPC_HTTP_REDIRECTOR_STAGE; +# 2208 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef RPC_STATUS +(__stdcall * RPC_NEW_HTTP_PROXY_CHANNEL) ( + RPC_HTTP_REDIRECTOR_STAGE RedirectorStage, + RPC_WSTR ServerName, + RPC_WSTR ServerPort, + RPC_WSTR RemoteUser, + RPC_WSTR AuthType, + void * ResourceUuid, + void * SessionId, + void * Interface, + void * Reserved, + unsigned long Flags, + RPC_WSTR * NewServerName, + RPC_WSTR * NewServerPort + ); +# 2235 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef void +(__stdcall * RPC_HTTP_PROXY_FREE_STRING) ( + RPC_WSTR String + ); +# 2259 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcImpersonateClient ( + RPC_BINDING_HANDLE BindingHandle + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcImpersonateClient2 ( + RPC_BINDING_HANDLE BindingHandle + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcRevertToSelfEx ( + RPC_BINDING_HANDLE BindingHandle + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcRevertToSelf ( + void + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcImpersonateClientContainer ( + RPC_BINDING_HANDLE BindingHandle + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcRevertContainerImpersonation ( + void + ); +# 2316 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingInqAuthClientA ( + RPC_BINDING_HANDLE ClientBinding, + RPC_AUTHZ_HANDLE * Privs, + RPC_CSTR * ServerPrincName, + unsigned long * AuthnLevel, + unsigned long * AuthnSvc, + unsigned long * AuthzSvc + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingInqAuthClientW ( + RPC_BINDING_HANDLE ClientBinding, + RPC_AUTHZ_HANDLE * Privs, + RPC_WSTR * ServerPrincName, + unsigned long * AuthnLevel, + unsigned long * AuthnSvc, + unsigned long * AuthzSvc + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcBindingInqAuthClientExA ( + RPC_BINDING_HANDLE ClientBinding, + RPC_AUTHZ_HANDLE * Privs, + RPC_CSTR * ServerPrincName, + unsigned long * AuthnLevel, + unsigned long * AuthnSvc, + unsigned long * AuthzSvc, + unsigned long Flags + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcBindingInqAuthClientExW ( + RPC_BINDING_HANDLE ClientBinding, + RPC_AUTHZ_HANDLE * Privs, + RPC_WSTR * ServerPrincName, + unsigned long * AuthnLevel, + unsigned long * AuthnSvc, + unsigned long * AuthzSvc, + unsigned long Flags + ); + + + + + + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingInqAuthInfoA ( + RPC_BINDING_HANDLE Binding, + RPC_CSTR * ServerPrincName, + unsigned long * AuthnLevel, + unsigned long * AuthnSvc, + RPC_AUTH_IDENTITY_HANDLE * AuthIdentity, + unsigned long * AuthzSvc + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingInqAuthInfoW ( + RPC_BINDING_HANDLE Binding, + RPC_WSTR * ServerPrincName, + unsigned long * AuthnLevel, + unsigned long * AuthnSvc, + RPC_AUTH_IDENTITY_HANDLE * AuthIdentity, + unsigned long * AuthzSvc + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingSetAuthInfoA ( + RPC_BINDING_HANDLE Binding, + RPC_CSTR ServerPrincName, + unsigned long AuthnLevel, + unsigned long AuthnSvc, + RPC_AUTH_IDENTITY_HANDLE AuthIdentity, + unsigned long AuthzSvc + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingSetAuthInfoExA ( + RPC_BINDING_HANDLE Binding, + RPC_CSTR ServerPrincName, + unsigned long AuthnLevel, + unsigned long AuthnSvc, + RPC_AUTH_IDENTITY_HANDLE AuthIdentity, + unsigned long AuthzSvc, + RPC_SECURITY_QOS * SecurityQos + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingSetAuthInfoW ( + RPC_BINDING_HANDLE Binding, + RPC_WSTR ServerPrincName, + unsigned long AuthnLevel, + unsigned long AuthnSvc, + RPC_AUTH_IDENTITY_HANDLE AuthIdentity, + unsigned long AuthzSvc + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingSetAuthInfoExW ( + RPC_BINDING_HANDLE Binding, + RPC_WSTR ServerPrincName, + unsigned long AuthnLevel, + unsigned long AuthnSvc, + RPC_AUTH_IDENTITY_HANDLE AuthIdentity, + unsigned long AuthzSvc, + RPC_SECURITY_QOS * SecurityQOS + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingInqAuthInfoExA ( + RPC_BINDING_HANDLE Binding, + RPC_CSTR * ServerPrincName, + unsigned long * AuthnLevel, + unsigned long * AuthnSvc, + RPC_AUTH_IDENTITY_HANDLE * AuthIdentity, + unsigned long * AuthzSvc, + unsigned long RpcQosVersion, + RPC_SECURITY_QOS *SecurityQOS + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingInqAuthInfoExW ( + RPC_BINDING_HANDLE Binding, + RPC_WSTR * ServerPrincName, + unsigned long * AuthnLevel, + unsigned long * AuthnSvc, + RPC_AUTH_IDENTITY_HANDLE * AuthIdentity, + unsigned long * AuthzSvc, + unsigned long RpcQosVersion, + RPC_SECURITY_QOS * SecurityQOS + ); + + + + + + + +typedef void +(__stdcall * RPC_AUTH_KEY_RETRIEVAL_FN) ( + void * Arg, + RPC_WSTR ServerPrincName, + unsigned long KeyVer, + void * * Key, + RPC_STATUS * Status + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerCompleteSecurityCallback( + RPC_BINDING_HANDLE BindingHandle, + RPC_STATUS Status + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerRegisterAuthInfoA ( + RPC_CSTR ServerPrincName, + unsigned long AuthnSvc, + RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn, + void * Arg + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerRegisterAuthInfoW ( + RPC_WSTR ServerPrincName, + unsigned long AuthnSvc, + RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn, + void * Arg + ); +# 2639 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef struct { + unsigned char * UserName; + unsigned char * ComputerName; + unsigned short Privilege; + unsigned long AuthFlags; +} RPC_CLIENT_INFORMATION1, * PRPC_CLIENT_INFORMATION1; + + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcBindingServerFromClient ( + RPC_BINDING_HANDLE ClientBinding, + RPC_BINDING_HANDLE * ServerBinding + ); + + + + + + + +__declspec(dllimport) +__declspec(noreturn) +void +__stdcall +RpcRaiseException ( + RPC_STATUS exception + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcTestCancel( + void + ); + + + + + + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcServerTestCancel ( + RPC_BINDING_HANDLE BindingHandle + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcCancelThread( + void * Thread + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcCancelThreadEx( + void * Thread, + long Timeout + ); +# 2716 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +UuidCreate ( + UUID * Uuid + ); + + +__declspec(dllimport) +RPC_STATUS +__stdcall +UuidCreateSequential ( + UUID * Uuid + ); + + + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +UuidToStringA ( + const UUID * Uuid, + RPC_CSTR * StringUuid + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +UuidFromStringA ( + RPC_CSTR StringUuid, + UUID * Uuid + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +UuidToStringW ( + const UUID * Uuid, + RPC_WSTR * StringUuid + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +UuidFromStringW ( + RPC_WSTR StringUuid, + UUID * Uuid + ); +# 2804 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) +signed int +__stdcall +UuidCompare ( + UUID * Uuid1, + UUID * Uuid2, + RPC_STATUS * Status + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +UuidCreateNil ( + UUID * NilUuid + ); + +__declspec(dllimport) +int +__stdcall +UuidEqual ( + UUID * Uuid1, + UUID * Uuid2, + RPC_STATUS * Status + ); + +__declspec(dllimport) +unsigned short +__stdcall +UuidHash ( + UUID * Uuid, + RPC_STATUS * Status + ); + +__declspec(dllimport) +int +__stdcall +UuidIsNil ( + UUID * Uuid, + RPC_STATUS * Status + ); +# 2854 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcEpRegisterNoReplaceA ( + RPC_IF_HANDLE IfSpec, + RPC_BINDING_VECTOR * BindingVector, + UUID_VECTOR * UuidVector, + RPC_CSTR Annotation + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcEpRegisterNoReplaceW ( + RPC_IF_HANDLE IfSpec, + RPC_BINDING_VECTOR * BindingVector, + UUID_VECTOR * UuidVector, + RPC_WSTR Annotation + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcEpRegisterA ( + RPC_IF_HANDLE IfSpec, + RPC_BINDING_VECTOR * BindingVector, + UUID_VECTOR * UuidVector, + RPC_CSTR Annotation + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcEpRegisterW ( + RPC_IF_HANDLE IfSpec, + RPC_BINDING_VECTOR * BindingVector, + UUID_VECTOR * UuidVector, + RPC_WSTR Annotation + ); +# 2931 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcEpUnregister( + RPC_IF_HANDLE IfSpec, + RPC_BINDING_VECTOR * BindingVector, + UUID_VECTOR * UuidVector + ); +# 2951 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +DceErrorInqTextA ( + RPC_STATUS RpcStatus, + RPC_CSTR ErrorText + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +DceErrorInqTextW ( + RPC_STATUS RpcStatus, + RPC_WSTR ErrorText + ); +# 2999 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef I_RPC_HANDLE * RPC_EP_INQ_HANDLE; +# 3012 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtEpEltInqBegin ( + RPC_BINDING_HANDLE EpBinding, + unsigned long InquiryType, + RPC_IF_ID * IfId, + unsigned long VersOption, + UUID * ObjectUuid, + RPC_EP_INQ_HANDLE * InquiryContext + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtEpEltInqDone ( + RPC_EP_INQ_HANDLE * InquiryContext + ); + + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtEpEltInqNextA ( + RPC_EP_INQ_HANDLE InquiryContext, + RPC_IF_ID * IfId, + RPC_BINDING_HANDLE * Binding, + UUID * ObjectUuid, + RPC_CSTR * Annotation + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtEpEltInqNextW ( + RPC_EP_INQ_HANDLE InquiryContext, + RPC_IF_ID * IfId, + RPC_BINDING_HANDLE * Binding, + UUID * ObjectUuid, + RPC_WSTR * Annotation + ); +# 3079 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtEpUnregister ( + RPC_BINDING_HANDLE EpBinding, + RPC_IF_ID * IfId, + RPC_BINDING_HANDLE Binding, + UUID * ObjectUuid + ); + +typedef int +(__stdcall * RPC_MGMT_AUTHORIZATION_FN) ( + RPC_BINDING_HANDLE ClientBinding, + unsigned long RequestedMgmtOperation, + RPC_STATUS * Status + ); + + + + + + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcMgmtSetAuthorizationFn ( + RPC_MGMT_AUTHORIZATION_FN AuthorizationFn + ); +# 3118 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) +int +__stdcall +RpcExceptionFilter ( + unsigned long ExceptionCode + ); +# 3153 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef void *RPC_INTERFACE_GROUP, **PRPC_INTERFACE_GROUP; + + +typedef struct +{ + unsigned long Version; + RPC_WSTR ProtSeq; + RPC_WSTR Endpoint; + void * SecurityDescriptor; + unsigned long Backlog; +} RPC_ENDPOINT_TEMPLATEW, *PRPC_ENDPOINT_TEMPLATEW; + +typedef struct +{ + unsigned long Version; + RPC_CSTR ProtSeq; + RPC_CSTR Endpoint; + void * SecurityDescriptor; + unsigned long Backlog; +} RPC_ENDPOINT_TEMPLATEA, *PRPC_ENDPOINT_TEMPLATEA; +# 3194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef struct +{ + unsigned long Version; + RPC_IF_HANDLE IfSpec; + UUID * MgrTypeUuid; + void * MgrEpv; + unsigned int Flags; + unsigned int MaxCalls; + unsigned int MaxRpcSize; + RPC_IF_CALLBACK_FN *IfCallback; + UUID_VECTOR *UuidVector; + RPC_CSTR Annotation; + void * SecurityDescriptor; +} RPC_INTERFACE_TEMPLATEA, *PRPC_INTERFACE_TEMPLATEA; + +typedef struct +{ + unsigned long Version; + RPC_IF_HANDLE IfSpec; + UUID * MgrTypeUuid; + void * MgrEpv; + unsigned int Flags; + unsigned int MaxCalls; + unsigned int MaxRpcSize; + RPC_IF_CALLBACK_FN *IfCallback; + UUID_VECTOR *UuidVector; + RPC_WSTR Annotation; + void * SecurityDescriptor; +} RPC_INTERFACE_TEMPLATEW, *PRPC_INTERFACE_TEMPLATEW; +# 3253 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +typedef void __stdcall +RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN ( + RPC_INTERFACE_GROUP IfGroup, + void* IdleCallbackContext, + unsigned long IsGroupIdle + ); + + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerInterfaceGroupCreateW ( + RPC_INTERFACE_TEMPLATEW *Interfaces, + unsigned long NumIfs, + RPC_ENDPOINT_TEMPLATEW *Endpoints, + unsigned long NumEndpoints, + unsigned long IdlePeriod, + RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN IdleCallbackFn, + void* IdleCallbackContext, + PRPC_INTERFACE_GROUP IfGroup + ); + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerInterfaceGroupCreateA ( + RPC_INTERFACE_TEMPLATEA *Interfaces, + unsigned long NumIfs, + RPC_ENDPOINT_TEMPLATEA *Endpoints, + unsigned long NumEndpoints, + unsigned long IdlePeriod, + RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN IdleCallbackFn, + void* IdleCallbackContext, + PRPC_INTERFACE_GROUP IfGroup + ); +# 3318 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerInterfaceGroupClose ( + RPC_INTERFACE_GROUP IfGroup + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerInterfaceGroupActivate ( + RPC_INTERFACE_GROUP IfGroup + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerInterfaceGroupDeactivate ( + RPC_INTERFACE_GROUP IfGroup, + unsigned long ForceDeactivation + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerInterfaceGroupInqBindings ( + RPC_INTERFACE_GROUP IfGroup, + RPC_BINDING_VECTOR * * BindingVector + ); + + + + + + + + +#pragma warning(pop) + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 1 3 +# 33 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 +#pragma warning(push) +#pragma warning(disable: 4668) +#pragma warning(disable: 4820) + + + + + +typedef struct _RPC_VERSION { + unsigned short MajorVersion; + unsigned short MinorVersion; +} RPC_VERSION; + +typedef struct _RPC_SYNTAX_IDENTIFIER { + GUID SyntaxGUID; + RPC_VERSION SyntaxVersion; +} RPC_SYNTAX_IDENTIFIER, * PRPC_SYNTAX_IDENTIFIER; + +typedef struct _RPC_MESSAGE +{ + RPC_BINDING_HANDLE Handle; + unsigned long DataRepresentation; + void * Buffer; + unsigned int BufferLength; + unsigned int ProcNum; + PRPC_SYNTAX_IDENTIFIER TransferSyntax; + void * RpcInterfaceInformation; + void * ReservedForRuntime; + void * ManagerEpv; + void * ImportContext; + unsigned long RpcFlags; +} RPC_MESSAGE, * PRPC_MESSAGE; + + + + + + + +typedef RPC_STATUS +__stdcall RPC_FORWARD_FUNCTION( + UUID * InterfaceId, + RPC_VERSION * InterfaceVersion, + UUID * ObjectId, + unsigned char * Rpcpro, + void * * ppDestEndpoint); + +enum RPC_ADDRESS_CHANGE_TYPE +{ + PROTOCOL_NOT_LOADED = 1, + PROTOCOL_LOADED, + PROTOCOL_ADDRESS_CHANGE +}; + +typedef void +__stdcall RPC_ADDRESS_CHANGE_FN( + void * arg + ); +# 181 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 +typedef +void +(__stdcall * RPC_DISPATCH_FUNCTION) ( + PRPC_MESSAGE Message + ); + +typedef struct { + unsigned int DispatchTableCount; + RPC_DISPATCH_FUNCTION * DispatchTable; + LONG_PTR Reserved; +} RPC_DISPATCH_TABLE, * PRPC_DISPATCH_TABLE; + +typedef struct _RPC_PROTSEQ_ENDPOINT +{ + unsigned char * RpcProtocolSequence; + unsigned char * Endpoint; +} RPC_PROTSEQ_ENDPOINT, * PRPC_PROTSEQ_ENDPOINT; +# 206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 +typedef struct _RPC_SERVER_INTERFACE +{ + unsigned int Length; + RPC_SYNTAX_IDENTIFIER InterfaceId; + RPC_SYNTAX_IDENTIFIER TransferSyntax; + PRPC_DISPATCH_TABLE DispatchTable; + unsigned int RpcProtseqEndpointCount; + PRPC_PROTSEQ_ENDPOINT RpcProtseqEndpoint; + void *DefaultManagerEpv; + void const *InterpreterInfo; + unsigned int Flags ; +} RPC_SERVER_INTERFACE, * PRPC_SERVER_INTERFACE; + +typedef struct _RPC_CLIENT_INTERFACE +{ + unsigned int Length; + RPC_SYNTAX_IDENTIFIER InterfaceId; + RPC_SYNTAX_IDENTIFIER TransferSyntax; + PRPC_DISPATCH_TABLE DispatchTable; + unsigned int RpcProtseqEndpointCount; + PRPC_PROTSEQ_ENDPOINT RpcProtseqEndpoint; + ULONG_PTR Reserved; + void const * InterpreterInfo; + unsigned int Flags ; +} RPC_CLIENT_INTERFACE, * PRPC_CLIENT_INTERFACE; +# 239 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcNegotiateTransferSyntax ( + RPC_MESSAGE * Message + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcGetBuffer ( + RPC_MESSAGE * Message + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcGetBufferWithObject ( + RPC_MESSAGE * Message, + UUID * ObjectUuid + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcSendReceive ( + RPC_MESSAGE * Message + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcFreeBuffer ( + RPC_MESSAGE * Message + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcSend ( + PRPC_MESSAGE Message + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcReceive ( + PRPC_MESSAGE Message, + unsigned int Size + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcFreePipeBuffer ( + RPC_MESSAGE * Message + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcReallocPipeBuffer ( + PRPC_MESSAGE Message, + unsigned int NewSize + ); + +typedef void * I_RPC_MUTEX; + +__declspec(dllimport) +void +__stdcall +I_RpcRequestMutex ( + I_RPC_MUTEX * Mutex + ); + +__declspec(dllimport) +void +__stdcall +I_RpcClearMutex ( + I_RPC_MUTEX Mutex + ); + +__declspec(dllimport) +void +__stdcall +I_RpcDeleteMutex ( + I_RPC_MUTEX Mutex + ); + +__declspec(dllimport) +void * +__stdcall +I_RpcAllocate ( + unsigned int Size + ); + +__declspec(dllimport) +void +__stdcall +I_RpcFree ( + void * Object + ); + + + + + + +__declspec(dllimport) +unsigned long +__stdcall +I_RpcFreeSystemHandleCollection ( + void * CallObj, + unsigned long FreeFlags + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcSetSystemHandle ( + void * Handle, + unsigned char Type, + unsigned long AccessMask, + void * CallObj, + unsigned long * HandleIndex + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcGetSystemHandle ( + unsigned char* pMemory, + unsigned char Type, + unsigned long AccessMask, + unsigned long HandleIndex, + void * CallObj + ); + +__declspec(dllimport) +void +__stdcall +I_RpcFreeSystemHandle ( + unsigned char Type, + void * Handle + ); + +__declspec(dllimport) +void +__stdcall +I_RpcPauseExecution ( + unsigned long Milliseconds + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcGetExtendedError ( + void + ); + + +typedef enum _LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION +{ + MarshalDirectionMarshal, + MarshalDirectionUnmarshal +}LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION; + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcSystemHandleTypeSpecificWork ( + void * Handle, + unsigned char ActualType, + unsigned char IdlType, + LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION MarshalDirection + ); + +typedef +void +(__stdcall * PRPC_RUNDOWN) ( + void * AssociationContext + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcMonitorAssociation ( + RPC_BINDING_HANDLE Handle, + PRPC_RUNDOWN RundownRoutine, + void * Context + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcStopMonitorAssociation ( + RPC_BINDING_HANDLE Handle + ); + +__declspec(dllimport) +RPC_BINDING_HANDLE +__stdcall +I_RpcGetCurrentCallHandle( + void + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcGetAssociationContext ( + RPC_BINDING_HANDLE BindingHandle, + void * * AssociationContext + ); + +__declspec(dllimport) +void * +__stdcall +I_RpcGetServerContextList ( + RPC_BINDING_HANDLE BindingHandle + ); + +__declspec(dllimport) +void +__stdcall +I_RpcSetServerContextList ( + RPC_BINDING_HANDLE BindingHandle, + void * ServerContextList + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcNsInterfaceExported ( + unsigned long EntryNameSyntax, + unsigned short *EntryName, + RPC_SERVER_INTERFACE * RpcInterfaceInformation + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcNsInterfaceUnexported ( + unsigned long EntryNameSyntax, + unsigned short *EntryName, + RPC_SERVER_INTERFACE * RpcInterfaceInformation + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcBindingToStaticStringBindingW ( + RPC_BINDING_HANDLE Binding, + unsigned short **StringBinding + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcBindingInqSecurityContext ( + RPC_BINDING_HANDLE Binding, + void **SecurityContextHandle + ); + + +typedef struct _RPC_SEC_CONTEXT_KEY_INFO +{ + unsigned long EncryptAlgorithm; + unsigned long KeySize; + unsigned long SignatureAlgorithm; +} +RPC_SEC_CONTEXT_KEY_INFO, *PRPC_SEC_CONTEXT_KEY_INFO; + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcBindingInqSecurityContextKeyInfo ( + RPC_BINDING_HANDLE Binding, + void *KeyInfo + ); + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcBindingInqWireIdForSnego ( + RPC_BINDING_HANDLE Binding, + unsigned char * WireId + ); + + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcBindingInqMarshalledTargetInfo ( + RPC_BINDING_HANDLE Binding, + unsigned long * MarshalledTargetInfoSize, + RPC_CSTR * MarshalledTargetInfo + ); + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcBindingInqLocalClientPID ( + RPC_BINDING_HANDLE Binding, + unsigned long *Pid + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcBindingHandleToAsyncHandle ( + RPC_BINDING_HANDLE Binding, + void **AsyncHandle + ); + + + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcNsBindingSetEntryNameW ( + RPC_BINDING_HANDLE Binding, + unsigned long EntryNameSyntax, + RPC_WSTR EntryName + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcNsBindingSetEntryNameA ( + RPC_BINDING_HANDLE Binding, + unsigned long EntryNameSyntax, + RPC_CSTR EntryName + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcServerUseProtseqEp2A ( + RPC_CSTR NetworkAddress, + RPC_CSTR Protseq, + unsigned int MaxCalls, + RPC_CSTR Endpoint, + void * SecurityDescriptor, + void * Policy + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcServerUseProtseqEp2W ( + RPC_WSTR NetworkAddress, + RPC_WSTR Protseq, + unsigned int MaxCalls, + RPC_WSTR Endpoint, + void * SecurityDescriptor, + void * Policy + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcServerUseProtseq2W ( + RPC_WSTR NetworkAddress, + RPC_WSTR Protseq, + unsigned int MaxCalls, + void * SecurityDescriptor, + void * Policy + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcServerUseProtseq2A ( + RPC_CSTR NetworkAddress, + RPC_CSTR Protseq, + unsigned int MaxCalls, + void * SecurityDescriptor, + void * Policy + ); +# 683 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcServerStartService ( + RPC_WSTR Protseq, + RPC_WSTR Endpoint, + RPC_IF_HANDLE IfSpec + ); + + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcBindingInqDynamicEndpointW ( + RPC_BINDING_HANDLE Binding, + RPC_WSTR *DynamicEndpoint + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcBindingInqDynamicEndpointA ( + RPC_BINDING_HANDLE Binding, + RPC_CSTR *DynamicEndpoint + ); +# 732 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcServerCheckClientRestriction ( + RPC_BINDING_HANDLE Context + ); +# 746 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcBindingInqTransportType ( + RPC_BINDING_HANDLE Binding, + unsigned int * Type + ); + +typedef struct _RPC_TRANSFER_SYNTAX +{ + UUID Uuid; + unsigned short VersMajor; + unsigned short VersMinor; +} RPC_TRANSFER_SYNTAX; + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcIfInqTransferSyntaxes ( + RPC_IF_HANDLE RpcIfHandle, + RPC_TRANSFER_SYNTAX * TransferSyntaxes, + unsigned int TransferSyntaxSize, + unsigned int * TransferSyntaxCount + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_UuidCreate ( + UUID * Uuid + ); + +__declspec(dllimport) +void +__stdcall +I_RpcUninitializeNdrOle ( + void + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcBindingCopy ( + RPC_BINDING_HANDLE SourceBinding, + RPC_BINDING_HANDLE * DestinationBinding + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcBindingIsClientLocal ( + RPC_BINDING_HANDLE BindingHandle, + unsigned int * ClientLocalFlag + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcBindingInqConnId ( + RPC_BINDING_HANDLE Binding, + void **ConnId, + int *pfFirstCall + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcBindingCreateNP ( + RPC_WSTR ServerName, + RPC_WSTR ServiceName, + RPC_WSTR NetworkOptions, + RPC_BINDING_HANDLE *Binding + ); + +__declspec(dllimport) +void +__stdcall +I_RpcSsDontSerializeContext ( + void + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcLaunchDatagramReceiveThread( + void * pAddress + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcServerRegisterForwardFunction ( + RPC_FORWARD_FUNCTION * pForwardFunction + ); + +RPC_ADDRESS_CHANGE_FN * __stdcall +I_RpcServerInqAddressChangeFn( + void + ); + +RPC_STATUS __stdcall +I_RpcServerSetAddressChangeFn( + RPC_ADDRESS_CHANGE_FN * pAddressChangeFn + ); +# 864 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcServerInqLocalConnAddress ( + RPC_BINDING_HANDLE Binding, + void *Buffer, + unsigned long *BufferSize, + unsigned long *AddressFormat + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcServerInqRemoteConnAddress ( + RPC_BINDING_HANDLE Binding, + void *Buffer, + unsigned long *BufferSize, + unsigned long *AddressFormat + ); + +__declspec(dllimport) +void +__stdcall +I_RpcSessionStrictContextHandle ( + void + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcTurnOnEEInfoPropagation ( + void + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcConnectionInqSockBuffSize( + unsigned long * RecvBuffSize, + unsigned long * SendBuffSize + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcConnectionSetSockBuffSize( + unsigned long RecvBuffSize, + unsigned long SendBuffSize + ); + +typedef +void +(*RPCLT_PDU_FILTER_FUNC) ( + void *Buffer, + unsigned int BufferLength, + int fDatagram + ); + +typedef +void +(__cdecl *RPC_SETFILTER_FUNC) ( + RPCLT_PDU_FILTER_FUNC pfnFilter + ); + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcServerStartListening( + void * hWnd + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcServerStopListening( + void + ); + +typedef RPC_STATUS (*RPC_BLOCKING_FN) ( + void * hWnd, + void * Context, + void * hSyncEvent + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcBindingSetAsync( + RPC_BINDING_HANDLE Binding, + RPC_BLOCKING_FN BlockingFn, + unsigned long ServerTid + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcSetThreadParams( + int fClientFree, + void *Context, + void * hWndClient + ); + +__declspec(dllimport) +unsigned int +__stdcall +I_RpcWindowProc( + void * hWnd, + unsigned int Message, + unsigned int wParam, + unsigned long lParam + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcServerUnregisterEndpointA ( + RPC_CSTR Protseq, + RPC_CSTR Endpoint + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +I_RpcServerUnregisterEndpointW ( + RPC_WSTR Protseq, + RPC_WSTR Endpoint + ); +# 1009 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcServerInqTransportType( + unsigned int * Type + ); + +__declspec(dllimport) +long +__stdcall +I_RpcMapWin32Status ( + RPC_STATUS Status + ); + + + + + + + +typedef struct _RPC_C_OPT_COOKIE_AUTH_DESCRIPTOR +{ + unsigned long BufferSize; + char *Buffer; +} RPC_C_OPT_COOKIE_AUTH_DESCRIPTOR; + +typedef struct _RDR_CALLOUT_STATE +{ + + RPC_STATUS LastError; + void *LastEEInfo; + + RPC_HTTP_REDIRECTOR_STAGE LastCalledStage; + + + unsigned short *ServerName; + unsigned short *ServerPort; + unsigned short *RemoteUser; + unsigned short *AuthType; + unsigned char ResourceTypePresent; + unsigned char SessionIdPresent; + unsigned char InterfacePresent; + UUID ResourceType; + UUID SessionId; + RPC_SYNTAX_IDENTIFIER Interface; + void *CertContext; + + +} RDR_CALLOUT_STATE; + + + +typedef RPC_STATUS +(__stdcall *I_RpcProxyIsValidMachineFn) + ( + RPC_WSTR Machine, + RPC_WSTR DotMachine, + unsigned long PortNumber + ); + +typedef RPC_STATUS +(__stdcall *I_RpcProxyGetClientAddressFn) + ( + void *Context, + char *Buffer, + unsigned long *BufferLength + ); + +typedef RPC_STATUS +(__stdcall *I_RpcProxyGetConnectionTimeoutFn) + ( + unsigned long *ConnectionTimeout + ); + + +typedef RPC_STATUS +(__stdcall *I_RpcPerformCalloutFn) + ( + void *Context, + RDR_CALLOUT_STATE *CallOutState, + RPC_HTTP_REDIRECTOR_STAGE Stage + ); + +typedef void +(__stdcall *I_RpcFreeCalloutStateFn) + ( + RDR_CALLOUT_STATE *CallOutState + ); + +typedef RPC_STATUS +(__stdcall *I_RpcProxyGetClientSessionAndResourceUUID) + ( + void *Context, + int *SessionIdPresent, + UUID *SessionId, + int *ResourceIdPresent, + UUID *ResourceId + ); + + + + +typedef RPC_STATUS +(__stdcall *I_RpcProxyFilterIfFn) + ( + void *Context, + UUID *IfUuid, + unsigned short IfMajorVersion, + int *fAllow + ); + +typedef enum RpcProxyPerfCounters +{ + RpcCurrentUniqueUser = 1, + RpcBackEndConnectionAttempts, + RpcBackEndConnectionFailed, + RpcRequestsPerSecond, + RpcIncomingConnections, + RpcIncomingBandwidth, + RpcOutgoingBandwidth, + RpcAttemptedLbsDecisions, + RpcFailedLbsDecisions, + RpcAttemptedLbsMessages, + RpcFailedLbsMessages, + RpcLastCounter +} RpcPerfCounters; + +typedef void +(__stdcall *I_RpcProxyUpdatePerfCounterFn) + ( + RpcPerfCounters Counter, + int ModifyTrend, + unsigned long Size + ); + + typedef void +(__stdcall *I_RpcProxyUpdatePerfCounterBackendServerFn) + ( + unsigned short* MachineName, + int IsConnectEvent + ); + + + + + + + +typedef struct tagI_RpcProxyCallbackInterface +{ + I_RpcProxyIsValidMachineFn IsValidMachineFn; + I_RpcProxyGetClientAddressFn GetClientAddressFn; + I_RpcProxyGetConnectionTimeoutFn GetConnectionTimeoutFn; + I_RpcPerformCalloutFn PerformCalloutFn; + I_RpcFreeCalloutStateFn FreeCalloutStateFn; + I_RpcProxyGetClientSessionAndResourceUUID GetClientSessionAndResourceUUIDFn; + + I_RpcProxyFilterIfFn ProxyFilterIfFn; + I_RpcProxyUpdatePerfCounterFn RpcProxyUpdatePerfCounterFn; + I_RpcProxyUpdatePerfCounterBackendServerFn RpcProxyUpdatePerfCounterBackendServerFn; + +} I_RpcProxyCallbackInterface; + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcProxyNewConnection ( + unsigned long ConnectionType, + unsigned short *ServerAddress, + unsigned short *ServerPort, + unsigned short *MinConnTimeout, + void *ConnectionParameter, + RDR_CALLOUT_STATE *CallOutState, + I_RpcProxyCallbackInterface *ProxyCallbackInterface + ); +# 1209 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcReplyToClientWithStatus ( + void *ConnectionParameter, + RPC_STATUS RpcStatus + ); + +__declspec(dllimport) +void +__stdcall +I_RpcRecordCalloutFailure ( + RPC_STATUS RpcStatus, + RDR_CALLOUT_STATE *CallOutState, + unsigned short *DllName + ); + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcMgmtEnableDedicatedThreadPool ( + void + ); + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcGetDefaultSD( + void ** ppSecurityDescriptor + ); + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcOpenClientProcess( + RPC_BINDING_HANDLE Binding, + unsigned long DesiredAccess, + void** ClientProcess + ); + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcBindingIsServerLocal( + RPC_BINDING_HANDLE Binding, + unsigned int * ServerLocalFlag + ); + +RPC_STATUS __stdcall +I_RpcBindingSetPrivateOption ( + RPC_BINDING_HANDLE hBinding, + unsigned long option, + ULONG_PTR optionValue + ); +# 1279 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 +RPC_STATUS +__stdcall +I_RpcServerSubscribeForDisconnectNotification ( + RPC_BINDING_HANDLE Binding, + void *hEvent + ); + +RPC_STATUS +__stdcall +I_RpcServerGetAssociationID ( + RPC_BINDING_HANDLE Binding, + unsigned long *AssociationID + ); + +__declspec(dllimport) +long +__stdcall +I_RpcServerDisableExceptionFilter ( + void + ); + + + + +RPC_STATUS +__stdcall +I_RpcServerSubscribeForDisconnectNotification2 ( + RPC_BINDING_HANDLE Binding, + void *hEvent, + UUID *SubscriptionId + ); + +RPC_STATUS +__stdcall +I_RpcServerUnsubscribeForDisconnectNotification ( + RPC_BINDING_HANDLE Binding, + UUID SubscriptionId + ); + + + + + + + +#pragma warning(pop) +# 3359 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 2 3 +# 157 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 2 3 + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\rpcnsi.h" 1 3 +# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\rpcnsi.h" 3 +typedef void * RPC_NS_HANDLE; +# 44 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\rpcnsi.h" 3 +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsBindingExportA( + unsigned long EntryNameSyntax, + RPC_CSTR EntryName, + RPC_IF_HANDLE IfSpec, + RPC_BINDING_VECTOR *BindingVec, + UUID_VECTOR *ObjectUuidVec + ); + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsBindingUnexportA( + unsigned long EntryNameSyntax, + RPC_CSTR EntryName, + RPC_IF_HANDLE IfSpec, + UUID_VECTOR *ObjectUuidVec + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsBindingExportW( + unsigned long EntryNameSyntax, + RPC_WSTR EntryName, + RPC_IF_HANDLE IfSpec, + RPC_BINDING_VECTOR *BindingVec, + UUID_VECTOR *ObjectUuidVec + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsBindingUnexportW( + unsigned long EntryNameSyntax, + RPC_WSTR EntryName, + RPC_IF_HANDLE IfSpec, + UUID_VECTOR *ObjectUuidVec + ); + + + + + +RPC_STATUS __stdcall +RpcNsBindingExportPnPA( + unsigned long EntryNameSyntax, + RPC_CSTR EntryName, + RPC_IF_HANDLE IfSpec, + UUID_VECTOR *ObjectVector + ); + +RPC_STATUS __stdcall +RpcNsBindingUnexportPnPA( + unsigned long EntryNameSyntax, + RPC_CSTR EntryName, + RPC_IF_HANDLE IfSpec, + UUID_VECTOR *ObjectVector + ); + + + +RPC_STATUS __stdcall +RpcNsBindingExportPnPW( + unsigned long EntryNameSyntax, + RPC_WSTR EntryName, + RPC_IF_HANDLE IfSpec, + UUID_VECTOR *ObjectVector + ); + +RPC_STATUS __stdcall +RpcNsBindingUnexportPnPW( + unsigned long EntryNameSyntax, + RPC_WSTR EntryName, + RPC_IF_HANDLE IfSpec, + UUID_VECTOR *ObjectVector + ); + + + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsBindingLookupBeginA( + unsigned long EntryNameSyntax, + RPC_CSTR EntryName, + RPC_IF_HANDLE IfSpec, + UUID *ObjUuid, + unsigned long BindingMaxCount, + RPC_NS_HANDLE *LookupContext + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsBindingLookupBeginW( + unsigned long EntryNameSyntax, + RPC_WSTR EntryName, + RPC_IF_HANDLE IfSpec, + UUID *ObjUuid, + unsigned long BindingMaxCount, + RPC_NS_HANDLE *LookupContext + ); + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsBindingLookupNext( + RPC_NS_HANDLE LookupContext, + RPC_BINDING_VECTOR * * BindingVec + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsBindingLookupDone( + RPC_NS_HANDLE * LookupContext + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsGroupDeleteA( + unsigned long GroupNameSyntax, + RPC_CSTR GroupName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsGroupMbrAddA( + unsigned long GroupNameSyntax, + RPC_CSTR GroupName, + unsigned long MemberNameSyntax, + RPC_CSTR MemberName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsGroupMbrRemoveA( + unsigned long GroupNameSyntax, + RPC_CSTR GroupName, + unsigned long MemberNameSyntax, + RPC_CSTR MemberName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsGroupMbrInqBeginA( + unsigned long GroupNameSyntax, + RPC_CSTR GroupName, + unsigned long MemberNameSyntax, + RPC_NS_HANDLE *InquiryContext + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsGroupMbrInqNextA( + RPC_NS_HANDLE InquiryContext, + RPC_CSTR *MemberName + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsGroupDeleteW( + unsigned long GroupNameSyntax, + RPC_WSTR GroupName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsGroupMbrAddW( + unsigned long GroupNameSyntax, + RPC_WSTR GroupName, + unsigned long MemberNameSyntax, + RPC_WSTR MemberName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsGroupMbrRemoveW( + unsigned long GroupNameSyntax, + RPC_WSTR GroupName, + unsigned long MemberNameSyntax, + RPC_WSTR MemberName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsGroupMbrInqBeginW( + unsigned long GroupNameSyntax, + RPC_WSTR GroupName, + unsigned long MemberNameSyntax, + RPC_NS_HANDLE *InquiryContext + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsGroupMbrInqNextW( + RPC_NS_HANDLE InquiryContext, + RPC_WSTR *MemberName + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsGroupMbrInqDone( + RPC_NS_HANDLE * InquiryContext + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsProfileDeleteA( + unsigned long ProfileNameSyntax, + RPC_CSTR ProfileName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsProfileEltAddA( + unsigned long ProfileNameSyntax, + RPC_CSTR ProfileName, + RPC_IF_ID *IfId, + unsigned long MemberNameSyntax, + RPC_CSTR MemberName, + unsigned long Priority, + RPC_CSTR Annotation + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsProfileEltRemoveA( + unsigned long ProfileNameSyntax, + RPC_CSTR ProfileName, + RPC_IF_ID *IfId, + unsigned long MemberNameSyntax, + RPC_CSTR MemberName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsProfileEltInqBeginA( + unsigned long ProfileNameSyntax, + RPC_CSTR ProfileName, + unsigned long InquiryType, + RPC_IF_ID *IfId, + unsigned long VersOption, + unsigned long MemberNameSyntax, + RPC_CSTR MemberName, + RPC_NS_HANDLE *InquiryContext + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsProfileEltInqNextA( + RPC_NS_HANDLE InquiryContext, + RPC_IF_ID *IfId, + RPC_CSTR *MemberName, + unsigned long *Priority, + RPC_CSTR *Annotation + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsProfileDeleteW( + unsigned long ProfileNameSyntax, + RPC_WSTR ProfileName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsProfileEltAddW( + unsigned long ProfileNameSyntax, + RPC_WSTR ProfileName, + RPC_IF_ID *IfId, + unsigned long MemberNameSyntax, + RPC_WSTR MemberName, + unsigned long Priority, + RPC_WSTR Annotation + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsProfileEltRemoveW( + unsigned long ProfileNameSyntax, + RPC_WSTR ProfileName, + RPC_IF_ID *IfId, + unsigned long MemberNameSyntax, + RPC_WSTR MemberName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsProfileEltInqBeginW( + unsigned long ProfileNameSyntax, + RPC_WSTR ProfileName, + unsigned long InquiryType, + RPC_IF_ID *IfId, + unsigned long VersOption, + unsigned long MemberNameSyntax, + RPC_WSTR MemberName, + RPC_NS_HANDLE *InquiryContext + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsProfileEltInqNextW( + RPC_NS_HANDLE InquiryContext, + RPC_IF_ID *IfId, + RPC_WSTR *MemberName, + unsigned long *Priority, + RPC_WSTR *Annotation + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsProfileEltInqDone( + RPC_NS_HANDLE * InquiryContext + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsEntryObjectInqBeginA( + unsigned long EntryNameSyntax, + RPC_CSTR EntryName, + RPC_NS_HANDLE *InquiryContext + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsEntryObjectInqBeginW( + unsigned long EntryNameSyntax, + RPC_WSTR EntryName, + RPC_NS_HANDLE *InquiryContext + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsEntryObjectInqNext( + RPC_NS_HANDLE InquiryContext, + UUID * ObjUuid + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsEntryObjectInqDone( + RPC_NS_HANDLE * InquiryContext + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsEntryExpandNameA( + unsigned long EntryNameSyntax, + RPC_CSTR EntryName, + RPC_CSTR *ExpandedName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsMgmtBindingUnexportA( + unsigned long EntryNameSyntax, + RPC_CSTR EntryName, + RPC_IF_ID *IfId, + unsigned long VersOption, + UUID_VECTOR *ObjectUuidVec + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsMgmtEntryCreateA( + unsigned long EntryNameSyntax, + RPC_CSTR EntryName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsMgmtEntryDeleteA( + unsigned long EntryNameSyntax, + RPC_CSTR EntryName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsMgmtEntryInqIfIdsA( + unsigned long EntryNameSyntax, + RPC_CSTR EntryName, + RPC_IF_ID_VECTOR * *IfIdVec + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsMgmtHandleSetExpAge( + RPC_NS_HANDLE NsHandle, + unsigned long ExpirationAge + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsMgmtInqExpAge( + unsigned long * ExpirationAge + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsMgmtSetExpAge( + unsigned long ExpirationAge + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsEntryExpandNameW( + unsigned long EntryNameSyntax, + RPC_WSTR EntryName, + RPC_WSTR *ExpandedName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsMgmtBindingUnexportW( + unsigned long EntryNameSyntax, + RPC_WSTR EntryName, + RPC_IF_ID *IfId, + unsigned long VersOption, + UUID_VECTOR *ObjectUuidVec + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsMgmtEntryCreateW( + unsigned long EntryNameSyntax, + RPC_WSTR EntryName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsMgmtEntryDeleteW( + unsigned long EntryNameSyntax, + RPC_WSTR EntryName + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsMgmtEntryInqIfIdsW( + unsigned long EntryNameSyntax, + RPC_WSTR EntryName, + RPC_IF_ID_VECTOR * *IfIdVec + ); + + + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsBindingImportBeginA( + unsigned long EntryNameSyntax, + RPC_CSTR EntryName, + RPC_IF_HANDLE IfSpec, + UUID *ObjUuid, + RPC_NS_HANDLE *ImportContext + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsBindingImportBeginW( + unsigned long EntryNameSyntax, + RPC_WSTR EntryName, + RPC_IF_HANDLE IfSpec, + UUID *ObjUuid, + RPC_NS_HANDLE *ImportContext + ); + + + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsBindingImportNext( + RPC_NS_HANDLE ImportContext, + RPC_BINDING_HANDLE * Binding + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsBindingImportDone( + RPC_NS_HANDLE * ImportContext + ); + +__declspec(dllimport) RPC_STATUS __stdcall +RpcNsBindingSelect( + RPC_BINDING_VECTOR * BindingVec, + RPC_BINDING_HANDLE * Binding + ); +# 159 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 2 3 + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcnterr.h" 1 3 +# 25 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcnterr.h" 3 +#pragma warning(push) +#pragma warning(disable: 4668) +# 559 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcnterr.h" 3 +#pragma warning(pop) +# 161 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 2 3 +# 218 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 1 3 +# 26 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,8) +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 2 3 +# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + + + + +typedef +enum _RPC_NOTIFICATION_TYPES +{ + RpcNotificationTypeNone, + RpcNotificationTypeEvent, + + RpcNotificationTypeApc, + RpcNotificationTypeIoc, + RpcNotificationTypeHwnd, + + RpcNotificationTypeCallback +} RPC_NOTIFICATION_TYPES; + + +typedef +enum _RPC_ASYNC_EVENT { + RpcCallComplete, + RpcSendComplete, + RpcReceiveComplete, + RpcClientDisconnect, + RpcClientCancel + } RPC_ASYNC_EVENT; +# 92 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 +struct _RPC_ASYNC_STATE; + +typedef void __stdcall +RPCNOTIFICATION_ROUTINE ( + struct _RPC_ASYNC_STATE *pAsync, + void *Context, + RPC_ASYNC_EVENT Event); +typedef RPCNOTIFICATION_ROUTINE *PFN_RPCNOTIFICATION_ROUTINE; + +typedef union _RPC_ASYNC_NOTIFICATION_INFO { + + + + + struct { + PFN_RPCNOTIFICATION_ROUTINE NotificationRoutine; + HANDLE hThread; + } APC; + + + + + + + + struct { + HANDLE hIOPort; + DWORD dwNumberOfBytesTransferred; + DWORD_PTR dwCompletionKey; + LPOVERLAPPED lpOverlapped; + } IOC; + + + + + + + struct { + HWND hWnd; + UINT Msg; + } HWND; +# 142 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 + HANDLE hEvent; +# 155 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 + PFN_RPCNOTIFICATION_ROUTINE NotificationRoutine; +} RPC_ASYNC_NOTIFICATION_INFO, *PRPC_ASYNC_NOTIFICATION_INFO; + +typedef struct _RPC_ASYNC_STATE { + unsigned int Size; + unsigned long Signature; + long Lock; + unsigned long Flags; + void *StubInfo; + void *UserInfo; + void *RuntimeInfo; + RPC_ASYNC_EVENT Event; + + RPC_NOTIFICATION_TYPES NotificationType; + RPC_ASYNC_NOTIFICATION_INFO u; + + LONG_PTR Reserved[4]; + } RPC_ASYNC_STATE, *PRPC_ASYNC_STATE; +# 181 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcAsyncRegisterInfo ( + PRPC_ASYNC_STATE pAsync + ) ; + + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcAsyncInitializeHandle ( + PRPC_ASYNC_STATE pAsync, + unsigned int Size + ); + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcAsyncGetCallStatus ( + PRPC_ASYNC_STATE pAsync + ) ; + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcAsyncCompleteCall ( + PRPC_ASYNC_STATE pAsync, + void *Reply + ) ; + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcAsyncAbortCall ( + PRPC_ASYNC_STATE pAsync, + unsigned long ExceptionCode + ) ; + +__declspec(dllimport) + +RPC_STATUS +__stdcall +RpcAsyncCancelCall ( + PRPC_ASYNC_STATE pAsync, + BOOL fAbort + ) ; + + + + + + +typedef enum tagExtendedErrorParamTypes +{ + eeptAnsiString = 1, + eeptUnicodeString, + eeptLongVal, + eeptShortVal, + eeptPointerVal, + eeptNone, + eeptBinary +} ExtendedErrorParamTypes; + + + + +typedef struct tagBinaryParam +{ + void *Buffer; + short Size; +} BinaryParam; + +typedef struct tagRPC_EE_INFO_PARAM +{ + ExtendedErrorParamTypes ParameterType; + union + { + LPSTR AnsiString; + LPWSTR UnicodeString; + long LVal; + short SVal; + ULONGLONG PVal; + BinaryParam BVal; + } u; +} RPC_EE_INFO_PARAM; +# 282 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 +typedef struct tagRPC_EXTENDED_ERROR_INFO +{ + ULONG Version; + LPWSTR ComputerName; + ULONG ProcessID; + union + { + + SYSTEMTIME SystemTime; + FILETIME FileTime; + + + + } u; + ULONG GeneratingComponent; + ULONG Status; + USHORT DetectionLocation; + USHORT Flags; + int NumberOfParameters; + RPC_EE_INFO_PARAM Parameters[4]; +} RPC_EXTENDED_ERROR_INFO; + +typedef struct tagRPC_ERROR_ENUM_HANDLE +{ + ULONG Signature; + void *CurrentPos; + void *Head; +} RPC_ERROR_ENUM_HANDLE; + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcErrorStartEnumeration ( + RPC_ERROR_ENUM_HANDLE *EnumHandle + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcErrorGetNextRecord ( + RPC_ERROR_ENUM_HANDLE *EnumHandle, + BOOL CopyStrings, + RPC_EXTENDED_ERROR_INFO *ErrorInfo + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcErrorEndEnumeration ( + RPC_ERROR_ENUM_HANDLE *EnumHandle + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcErrorResetEnumeration ( + RPC_ERROR_ENUM_HANDLE *EnumHandle + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcErrorGetNumberOfRecords ( + RPC_ERROR_ENUM_HANDLE *EnumHandle, + int *Records + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcErrorSaveErrorInfo ( + RPC_ERROR_ENUM_HANDLE *EnumHandle, + PVOID *ErrorBlob, + size_t *BlobSize + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcErrorLoadErrorInfo ( + PVOID ErrorBlob, + size_t BlobSize, + RPC_ERROR_ENUM_HANDLE *EnumHandle + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcErrorAddRecord ( + RPC_EXTENDED_ERROR_INFO *ErrorInfo + ); + +__declspec(dllimport) +void +__stdcall +RpcErrorClearInformation ( + void + ); +# 391 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcAsyncCleanupThread ( + DWORD dwTimeout + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcGetAuthorizationContextForClient ( + RPC_BINDING_HANDLE ClientBinding, + BOOL ImpersonateOnReturn, + PVOID Reserved1, + PLARGE_INTEGER pExpirationTime, + LUID Reserved2, + DWORD Reserved3, + PVOID Reserved4, + PVOID *pAuthzClientContext + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcFreeAuthorizationContext ( + PVOID *pAuthzClientContext + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcSsContextLockExclusive ( + RPC_BINDING_HANDLE ServerBindingHandle, + PVOID UserContext + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcSsContextLockShared ( + RPC_BINDING_HANDLE ServerBindingHandle, + PVOID UserContext + ); + + +typedef enum tagRpcLocalAddressFormat +{ + rlafInvalid = 0, + rlafIPv4, + rlafIPv6 +} RpcLocalAddressFormat; + +typedef struct _RPC_CALL_LOCAL_ADDRESS_V1 +{ + unsigned int Version; + void *Buffer; + unsigned long BufferSize; + RpcLocalAddressFormat AddressFormat; +} RPC_CALL_LOCAL_ADDRESS_V1, *PRPC_CALL_LOCAL_ADDRESS_V1; +# 474 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 +typedef struct tagRPC_CALL_ATTRIBUTES_V1_W +{ + unsigned int Version; + unsigned long Flags; + unsigned long ServerPrincipalNameBufferLength; + unsigned short *ServerPrincipalName; + unsigned long ClientPrincipalNameBufferLength; + unsigned short *ClientPrincipalName; + unsigned long AuthenticationLevel; + unsigned long AuthenticationService; + BOOL NullSession; +} RPC_CALL_ATTRIBUTES_V1_W; + +typedef struct tagRPC_CALL_ATTRIBUTES_V1_A +{ + unsigned int Version; + unsigned long Flags; + unsigned long ServerPrincipalNameBufferLength; + unsigned char *ServerPrincipalName; + unsigned long ClientPrincipalNameBufferLength; + unsigned char *ClientPrincipalName; + unsigned long AuthenticationLevel; + unsigned long AuthenticationService; + BOOL NullSession; +} RPC_CALL_ATTRIBUTES_V1_A; + + + + + + +typedef enum tagRpcCallType +{ + rctInvalid = 0, + rctNormal, + rctTraining, + rctGuaranteed +} RpcCallType; + +typedef enum tagRpcCallClientLocality +{ + rcclInvalid = 0, + rcclLocal, + rcclRemote, + rcclClientUnknownLocality +} RpcCallClientLocality; + + +typedef struct tagRPC_CALL_ATTRIBUTES_V2_W +{ + unsigned int Version; + unsigned long Flags; + unsigned long ServerPrincipalNameBufferLength; + unsigned short *ServerPrincipalName; + unsigned long ClientPrincipalNameBufferLength; + unsigned short *ClientPrincipalName; + unsigned long AuthenticationLevel; + unsigned long AuthenticationService; + BOOL NullSession; + BOOL KernelModeCaller; + unsigned long ProtocolSequence; + RpcCallClientLocality IsClientLocal; + HANDLE ClientPID; + unsigned long CallStatus; + RpcCallType CallType; + RPC_CALL_LOCAL_ADDRESS_V1 *CallLocalAddress; + unsigned short OpNum; + UUID InterfaceUuid; +} RPC_CALL_ATTRIBUTES_V2_W; + +typedef struct tagRPC_CALL_ATTRIBUTES_V2_A +{ + unsigned int Version; + unsigned long Flags; + unsigned long ServerPrincipalNameBufferLength; + unsigned char *ServerPrincipalName; + unsigned long ClientPrincipalNameBufferLength; + unsigned char *ClientPrincipalName; + unsigned long AuthenticationLevel; + unsigned long AuthenticationService; + BOOL NullSession; + BOOL KernelModeCaller; + unsigned long ProtocolSequence; + unsigned long IsClientLocal; + HANDLE ClientPID; + unsigned long CallStatus; + RpcCallType CallType; + RPC_CALL_LOCAL_ADDRESS_V1 *CallLocalAddress; + unsigned short OpNum; + UUID InterfaceUuid; +} RPC_CALL_ATTRIBUTES_V2_A; + + + +typedef struct tagRPC_CALL_ATTRIBUTES_V3_W +{ + unsigned int Version; + unsigned long Flags; + unsigned long ServerPrincipalNameBufferLength; + unsigned short *ServerPrincipalName; + unsigned long ClientPrincipalNameBufferLength; + unsigned short *ClientPrincipalName; + unsigned long AuthenticationLevel; + unsigned long AuthenticationService; + BOOL NullSession; + BOOL KernelModeCaller; + unsigned long ProtocolSequence; + RpcCallClientLocality IsClientLocal; + HANDLE ClientPID; + unsigned long CallStatus; + RpcCallType CallType; + RPC_CALL_LOCAL_ADDRESS_V1 *CallLocalAddress; + unsigned short OpNum; + UUID InterfaceUuid; + unsigned long ClientIdentifierBufferLength; + unsigned char *ClientIdentifier; +} RPC_CALL_ATTRIBUTES_V3_W; + +typedef struct tagRPC_CALL_ATTRIBUTES_V3_A +{ + unsigned int Version; + unsigned long Flags; + unsigned long ServerPrincipalNameBufferLength; + unsigned char *ServerPrincipalName; + unsigned long ClientPrincipalNameBufferLength; + unsigned char *ClientPrincipalName; + unsigned long AuthenticationLevel; + unsigned long AuthenticationService; + BOOL NullSession; + BOOL KernelModeCaller; + unsigned long ProtocolSequence; + unsigned long IsClientLocal; + HANDLE ClientPID; + unsigned long CallStatus; + RpcCallType CallType; + RPC_CALL_LOCAL_ADDRESS_V1 *CallLocalAddress; + unsigned short OpNum; + UUID InterfaceUuid; + unsigned long ClientIdentifierBufferLength; + unsigned char *ClientIdentifier; +} RPC_CALL_ATTRIBUTES_V3_A; + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerInqCallAttributesW ( + RPC_BINDING_HANDLE ClientBinding, + void *RpcCallAttributes + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerInqCallAttributesA ( + RPC_BINDING_HANDLE ClientBinding, + void *RpcCallAttributes + ); +# 655 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 +typedef RPC_CALL_ATTRIBUTES_V3_A RPC_CALL_ATTRIBUTES; +# 664 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 +typedef enum _RPC_NOTIFICATIONS +{ + RpcNotificationCallNone = 0, + RpcNotificationClientDisconnect = 1, + RpcNotificationCallCancel = 2 +} RPC_NOTIFICATIONS; + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerSubscribeForNotification ( + RPC_BINDING_HANDLE Binding, + RPC_NOTIFICATIONS Notification, + RPC_NOTIFICATION_TYPES NotificationType, + RPC_ASYNC_NOTIFICATION_INFO *NotificationInfo + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcServerUnsubscribeForNotification ( + RPC_BINDING_HANDLE Binding, + RPC_NOTIFICATIONS Notification, + unsigned long *NotificationsQueued + ); +# 703 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcBindingBind ( + PRPC_ASYNC_STATE pAsync, + RPC_BINDING_HANDLE Binding, + RPC_IF_HANDLE IfSpec + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcBindingUnbind ( + RPC_BINDING_HANDLE Binding + ); +# 733 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 +RPC_STATUS __stdcall +I_RpcAsyncSetHandle ( + PRPC_MESSAGE Message, + PRPC_ASYNC_STATE pAsync + ); + + +RPC_STATUS __stdcall +I_RpcAsyncAbortCall ( + PRPC_ASYNC_STATE pAsync, + unsigned long ExceptionCode + ) ; + + +int +__stdcall +I_RpcExceptionFilter ( + unsigned long ExceptionCode + ); + + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcBindingInqClientTokenAttributes ( + RPC_BINDING_HANDLE Binding, + LUID * TokenId, + LUID * AuthenticationId, + LUID * ModifiedId + ); + + + + +#pragma warning(pop) +# 780 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 781 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 2 3 +# 219 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 2 3 + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 224 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 2 3 +# 203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 1 3 +# 12 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +#pragma warning(push) +#pragma warning(disable: 4001) +#pragma warning(disable: 4201) +#pragma warning(disable: 4820) +# 68 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +extern __declspec(dllimport) LPWSTR * __stdcall CommandLineToArgvW( LPCWSTR lpCmdLine, int* pNumArgs); +# 79 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +struct HDROP__{int unused;}; typedef struct HDROP__ *HDROP; + + +extern __declspec(dllimport) UINT __stdcall DragQueryFileA( HDROP hDrop, UINT iFile, LPSTR lpszFile, UINT cch); + +extern __declspec(dllimport) UINT __stdcall DragQueryFileW( HDROP hDrop, UINT iFile, LPWSTR lpszFile, UINT cch); + + + + + +extern __declspec(dllimport) BOOL __stdcall DragQueryPoint( HDROP hDrop, POINT *ppt); +extern __declspec(dllimport) void __stdcall DragFinish( HDROP hDrop); +extern __declspec(dllimport) void __stdcall DragAcceptFiles( HWND hWnd, BOOL fAccept); + +extern __declspec(dllimport) HINSTANCE __stdcall ShellExecuteA( HWND hwnd, LPCSTR lpOperation, LPCSTR lpFile, LPCSTR lpParameters, + LPCSTR lpDirectory, INT nShowCmd); +extern __declspec(dllimport) HINSTANCE __stdcall ShellExecuteW( HWND hwnd, LPCWSTR lpOperation, LPCWSTR lpFile, LPCWSTR lpParameters, + LPCWSTR lpDirectory, INT nShowCmd); + + + + + + +extern __declspec(dllimport) HINSTANCE __stdcall FindExecutableA( LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResult); + +extern __declspec(dllimport) HINSTANCE __stdcall FindExecutableW( LPCWSTR lpFile, LPCWSTR lpDirectory, LPWSTR lpResult); + + + + + + +extern __declspec(dllimport) INT __stdcall ShellAboutA( HWND hWnd, LPCSTR szApp, LPCSTR szOtherStuff, HICON hIcon); +extern __declspec(dllimport) INT __stdcall ShellAboutW( HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff, HICON hIcon); + + + + + +extern __declspec(dllimport) HICON __stdcall DuplicateIcon( HINSTANCE hInst, HICON hIcon); +extern __declspec(dllimport) HICON __stdcall ExtractAssociatedIconA( HINSTANCE hInst, LPSTR pszIconPath, WORD *piIcon); +extern __declspec(dllimport) HICON __stdcall ExtractAssociatedIconW( HINSTANCE hInst, LPWSTR pszIconPath, WORD *piIcon); + + + + + +extern __declspec(dllimport) HICON __stdcall ExtractAssociatedIconExA( HINSTANCE hInst, LPSTR pszIconPath, WORD *piIconIndex, WORD *piIconId); +extern __declspec(dllimport) HICON __stdcall ExtractAssociatedIconExW( HINSTANCE hInst, LPWSTR pszIconPath, WORD *piIconIndex, WORD *piIconId); + + + + + +extern __declspec(dllimport) HICON __stdcall ExtractIconA( HINSTANCE hInst, LPCSTR pszExeFileName, UINT nIconIndex); +extern __declspec(dllimport) HICON __stdcall ExtractIconW( HINSTANCE hInst, LPCWSTR pszExeFileName, UINT nIconIndex); +# 145 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef struct _DRAGINFOA { + UINT uSize; + POINT pt; + BOOL fNC; + PZZSTR lpFileList; + DWORD grfKeyState; +} DRAGINFOA, *LPDRAGINFOA; +typedef struct _DRAGINFOW { + UINT uSize; + POINT pt; + BOOL fNC; + PZZWSTR lpFileList; + DWORD grfKeyState; +} DRAGINFOW, *LPDRAGINFOW; + + + + +typedef DRAGINFOA DRAGINFO; +typedef LPDRAGINFOA LPDRAGINFO; +# 207 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef struct _AppBarData +{ + DWORD cbSize; + HWND hWnd; + UINT uCallbackMessage; + UINT uEdge; + RECT rc; + LPARAM lParam; +} APPBARDATA, *PAPPBARDATA; + + +extern __declspec(dllimport) UINT_PTR __stdcall SHAppBarMessage( DWORD dwMessage, PAPPBARDATA pData); + + + + + +extern __declspec(dllimport) DWORD __stdcall DoEnvironmentSubstA( LPSTR pszSrc, UINT cchSrc); +extern __declspec(dllimport) DWORD __stdcall DoEnvironmentSubstW( LPWSTR pszSrc, UINT cchSrc); + + + + + + + +extern __declspec(dllimport) UINT __stdcall ExtractIconExA( LPCSTR lpszFile, int nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIcons); +extern __declspec(dllimport) UINT __stdcall ExtractIconExW( LPCWSTR lpszFile, int nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIcons); +# 271 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef WORD FILEOP_FLAGS; +# 284 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef WORD PRINTEROP_FLAGS; +# 293 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef struct _SHFILEOPSTRUCTA +{ + HWND hwnd; + UINT wFunc; + PCZZSTR pFrom; + PCZZSTR pTo; + FILEOP_FLAGS fFlags; + BOOL fAnyOperationsAborted; + LPVOID hNameMappings; + PCSTR lpszProgressTitle; +} SHFILEOPSTRUCTA, *LPSHFILEOPSTRUCTA; +typedef struct _SHFILEOPSTRUCTW +{ + HWND hwnd; + UINT wFunc; + PCZZWSTR pFrom; + PCZZWSTR pTo; + FILEOP_FLAGS fFlags; + BOOL fAnyOperationsAborted; + LPVOID hNameMappings; + PCWSTR lpszProgressTitle; +} SHFILEOPSTRUCTW, *LPSHFILEOPSTRUCTW; + + + + +typedef SHFILEOPSTRUCTA SHFILEOPSTRUCT; +typedef LPSHFILEOPSTRUCTA LPSHFILEOPSTRUCT; + + +extern __declspec(dllimport) int __stdcall SHFileOperationA( LPSHFILEOPSTRUCTA lpFileOp); +extern __declspec(dllimport) int __stdcall SHFileOperationW( LPSHFILEOPSTRUCTW lpFileOp); + + + + + +extern __declspec(dllimport) void __stdcall SHFreeNameMappings( HANDLE hNameMappings); + +typedef struct _SHNAMEMAPPINGA +{ + LPSTR pszOldPath; + LPSTR pszNewPath; + int cchOldPath; + int cchNewPath; +} SHNAMEMAPPINGA, *LPSHNAMEMAPPINGA; +typedef struct _SHNAMEMAPPINGW +{ + LPWSTR pszOldPath; + LPWSTR pszNewPath; + int cchOldPath; + int cchNewPath; +} SHNAMEMAPPINGW, *LPSHNAMEMAPPINGW; + + + + +typedef SHNAMEMAPPINGA SHNAMEMAPPING; +typedef LPSHNAMEMAPPINGA LPSHNAMEMAPPING; +# 445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef struct _SHELLEXECUTEINFOA +{ + DWORD cbSize; + ULONG fMask; + HWND hwnd; + LPCSTR lpVerb; + LPCSTR lpFile; + LPCSTR lpParameters; + LPCSTR lpDirectory; + int nShow; + HINSTANCE hInstApp; + void *lpIDList; + LPCSTR lpClass; + HKEY hkeyClass; + DWORD dwHotKey; + union + { + HANDLE hIcon; + + HANDLE hMonitor; + + } ; + HANDLE hProcess; +} SHELLEXECUTEINFOA, *LPSHELLEXECUTEINFOA; +typedef struct _SHELLEXECUTEINFOW +{ + DWORD cbSize; + ULONG fMask; + HWND hwnd; + LPCWSTR lpVerb; + LPCWSTR lpFile; + LPCWSTR lpParameters; + LPCWSTR lpDirectory; + int nShow; + HINSTANCE hInstApp; + void *lpIDList; + LPCWSTR lpClass; + HKEY hkeyClass; + DWORD dwHotKey; + union + { + HANDLE hIcon; + + HANDLE hMonitor; + + } ; + HANDLE hProcess; +} SHELLEXECUTEINFOW, *LPSHELLEXECUTEINFOW; + + + + +typedef SHELLEXECUTEINFOA SHELLEXECUTEINFO; +typedef LPSHELLEXECUTEINFOA LPSHELLEXECUTEINFO; + + +extern __declspec(dllimport) BOOL __stdcall ShellExecuteExA( SHELLEXECUTEINFOA *pExecInfo); +extern __declspec(dllimport) BOOL __stdcall ShellExecuteExW( SHELLEXECUTEINFOW *pExecInfo); +# 511 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef struct _SHCREATEPROCESSINFOW +{ + DWORD cbSize; + ULONG fMask; + HWND hwnd; + LPCWSTR pszFile; + LPCWSTR pszParameters; + LPCWSTR pszCurrentDirectory; + HANDLE hUserToken; + LPSECURITY_ATTRIBUTES lpProcessAttributes; + LPSECURITY_ATTRIBUTES lpThreadAttributes; + BOOL bInheritHandles; + DWORD dwCreationFlags; + LPSTARTUPINFOW lpStartupInfo; + LPPROCESS_INFORMATION lpProcessInformation; +} SHCREATEPROCESSINFOW, *PSHCREATEPROCESSINFOW; + +extern __declspec(dllimport) BOOL __stdcall SHCreateProcessAsUserW( PSHCREATEPROCESSINFOW pscpi); + + + + +extern __declspec(dllimport) HRESULT __stdcall SHEvaluateSystemCommandTemplate( PCWSTR pszCmdTemplate, PWSTR *ppszApplication, PWSTR *ppszCommandLine, PWSTR *ppszParameters); +# 869 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef enum ASSOCCLASS +{ + ASSOCCLASS_SHELL_KEY = 0, + ASSOCCLASS_PROGID_KEY, + ASSOCCLASS_PROGID_STR, + ASSOCCLASS_CLSID_KEY, + ASSOCCLASS_CLSID_STR, + ASSOCCLASS_APP_KEY, + ASSOCCLASS_APP_STR, + ASSOCCLASS_SYSTEM_STR, + ASSOCCLASS_FOLDER, + ASSOCCLASS_STAR, + + ASSOCCLASS_FIXED_PROGID_STR, + ASSOCCLASS_PROTOCOL_STR, + +} ASSOCCLASS; + +typedef struct ASSOCIATIONELEMENT +{ + ASSOCCLASS ac; + HKEY hkClass; + PCWSTR pszClass; +} ASSOCIATIONELEMENT; + + + +extern __declspec(dllimport) HRESULT __stdcall AssocCreateForClasses( const ASSOCIATIONELEMENT *rgClasses, ULONG cClasses, const IID * const riid, void **ppv); +# 942 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef struct _SHQUERYRBINFO { + DWORD cbSize; + + __int64 i64Size; + __int64 i64NumItems; + + + + +} SHQUERYRBINFO, *LPSHQUERYRBINFO; +# 961 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall SHQueryRecycleBinA( LPCSTR pszRootPath, LPSHQUERYRBINFO pSHQueryRBInfo); +extern __declspec(dllimport) HRESULT __stdcall SHQueryRecycleBinW( LPCWSTR pszRootPath, LPSHQUERYRBINFO pSHQueryRBInfo); + + + + + +extern __declspec(dllimport) HRESULT __stdcall SHEmptyRecycleBinA( HWND hwnd, LPCSTR pszRootPath, DWORD dwFlags); +extern __declspec(dllimport) HRESULT __stdcall SHEmptyRecycleBinW( HWND hwnd, LPCWSTR pszRootPath, DWORD dwFlags); +# 986 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef enum +{ + QUNS_NOT_PRESENT = 1, + QUNS_BUSY = 2, + QUNS_RUNNING_D3D_FULL_SCREEN = 3, + QUNS_PRESENTATION_MODE = 4, + QUNS_ACCEPTS_NOTIFICATIONS = 5, + + QUNS_QUIET_TIME = 6, + + + QUNS_APP = 7, + +} QUERY_USER_NOTIFICATION_STATE; + +extern __declspec(dllimport) HRESULT __stdcall SHQueryUserNotificationState( QUERY_USER_NOTIFICATION_STATE *pquns); + + + + +extern __declspec(dllimport) HRESULT __stdcall SHGetPropertyStoreForWindow( HWND hwnd, const IID * const riid, void** ppv); + + + +typedef struct _NOTIFYICONDATAA { + DWORD cbSize; + HWND hWnd; + UINT uID; + UINT uFlags; + UINT uCallbackMessage; + HICON hIcon; + + + + + CHAR szTip[128]; + DWORD dwState; + DWORD dwStateMask; + CHAR szInfo[256]; + + union { + UINT uTimeout; + UINT uVersion; + } ; + + CHAR szInfoTitle[64]; + DWORD dwInfoFlags; + + + GUID guidItem; + + + HICON hBalloonIcon; + +} NOTIFYICONDATAA, *PNOTIFYICONDATAA; +typedef struct _NOTIFYICONDATAW { + DWORD cbSize; + HWND hWnd; + UINT uID; + UINT uFlags; + UINT uCallbackMessage; + HICON hIcon; + + + + + WCHAR szTip[128]; + DWORD dwState; + DWORD dwStateMask; + WCHAR szInfo[256]; + + union { + UINT uTimeout; + UINT uVersion; + } ; + + WCHAR szInfoTitle[64]; + DWORD dwInfoFlags; + + + GUID guidItem; + + + HICON hBalloonIcon; + +} NOTIFYICONDATAW, *PNOTIFYICONDATAW; + + + + +typedef NOTIFYICONDATAA NOTIFYICONDATA; +typedef PNOTIFYICONDATAA PNOTIFYICONDATA; +# 1176 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef struct _NOTIFYICONIDENTIFIER { + DWORD cbSize; + HWND hWnd; + UINT uID; + GUID guidItem; +} NOTIFYICONIDENTIFIER, *PNOTIFYICONIDENTIFIER; + + +extern __declspec(dllimport) BOOL __stdcall Shell_NotifyIconA(DWORD dwMessage, PNOTIFYICONDATAA lpData); +extern __declspec(dllimport) BOOL __stdcall Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW lpData); + + + + + + + +extern __declspec(dllimport) HRESULT __stdcall Shell_NotifyIconGetRect( const NOTIFYICONIDENTIFIER* identifier, RECT* iconLocation); +# 1222 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef struct _SHFILEINFOA +{ + HICON hIcon; + int iIcon; + DWORD dwAttributes; + CHAR szDisplayName[260]; + CHAR szTypeName[80]; +} SHFILEINFOA; +typedef struct _SHFILEINFOW +{ + HICON hIcon; + int iIcon; + DWORD dwAttributes; + WCHAR szDisplayName[260]; + WCHAR szTypeName[80]; +} SHFILEINFOW; + + + +typedef SHFILEINFOA SHFILEINFO; +# 1271 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +extern __declspec(dllimport) DWORD_PTR __stdcall SHGetFileInfoA( LPCSTR pszPath, DWORD dwFileAttributes, SHFILEINFOA *psfi, + UINT cbFileInfo, UINT uFlags); +extern __declspec(dllimport) DWORD_PTR __stdcall SHGetFileInfoW( LPCWSTR pszPath, DWORD dwFileAttributes, SHFILEINFOW *psfi, + UINT cbFileInfo, UINT uFlags); + + + + + + + +typedef struct _SHSTOCKICONINFO +{ + DWORD cbSize; + HICON hIcon; + int iSysImageIndex; + int iIcon; + WCHAR szPath[260]; +} SHSTOCKICONINFO; +# 1303 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef enum SHSTOCKICONID +{ + SIID_DOCNOASSOC = 0, + SIID_DOCASSOC = 1, + SIID_APPLICATION = 2, + SIID_FOLDER = 3, + SIID_FOLDEROPEN = 4, + SIID_DRIVE525 = 5, + SIID_DRIVE35 = 6, + SIID_DRIVEREMOVE = 7, + SIID_DRIVEFIXED = 8, + SIID_DRIVENET = 9, + SIID_DRIVENETDISABLED = 10, + SIID_DRIVECD = 11, + SIID_DRIVERAM = 12, + SIID_WORLD = 13, + SIID_SERVER = 15, + SIID_PRINTER = 16, + SIID_MYNETWORK = 17, + SIID_FIND = 22, + SIID_HELP = 23, + SIID_SHARE = 28, + SIID_LINK = 29, + SIID_SLOWFILE = 30, + SIID_RECYCLER = 31, + SIID_RECYCLERFULL = 32, + SIID_MEDIACDAUDIO = 40, + SIID_LOCK = 47, + SIID_AUTOLIST = 49, + SIID_PRINTERNET = 50, + SIID_SERVERSHARE = 51, + SIID_PRINTERFAX = 52, + SIID_PRINTERFAXNET = 53, + SIID_PRINTERFILE = 54, + SIID_STACK = 55, + SIID_MEDIASVCD = 56, + SIID_STUFFEDFOLDER = 57, + SIID_DRIVEUNKNOWN = 58, + SIID_DRIVEDVD = 59, + SIID_MEDIADVD = 60, + SIID_MEDIADVDRAM = 61, + SIID_MEDIADVDRW = 62, + SIID_MEDIADVDR = 63, + SIID_MEDIADVDROM = 64, + SIID_MEDIACDAUDIOPLUS = 65, + SIID_MEDIACDRW = 66, + SIID_MEDIACDR = 67, + SIID_MEDIACDBURN = 68, + SIID_MEDIABLANKCD = 69, + SIID_MEDIACDROM = 70, + SIID_AUDIOFILES = 71, + SIID_IMAGEFILES = 72, + SIID_VIDEOFILES = 73, + SIID_MIXEDFILES = 74, + SIID_FOLDERBACK = 75, + SIID_FOLDERFRONT = 76, + SIID_SHIELD = 77, + SIID_WARNING = 78, + SIID_INFO = 79, + SIID_ERROR = 80, + SIID_KEY = 81, + SIID_SOFTWARE = 82, + SIID_RENAME = 83, + SIID_DELETE = 84, + SIID_MEDIAAUDIODVD = 85, + SIID_MEDIAMOVIEDVD = 86, + SIID_MEDIAENHANCEDCD = 87, + SIID_MEDIAENHANCEDDVD = 88, + SIID_MEDIAHDDVD = 89, + SIID_MEDIABLURAY = 90, + SIID_MEDIAVCD = 91, + SIID_MEDIADVDPLUSR = 92, + SIID_MEDIADVDPLUSRW = 93, + SIID_DESKTOPPC = 94, + SIID_MOBILEPC = 95, + SIID_USERS = 96, + SIID_MEDIASMARTMEDIA = 97, + SIID_MEDIACOMPACTFLASH = 98, + SIID_DEVICECELLPHONE = 99, + SIID_DEVICECAMERA = 100, + SIID_DEVICEVIDEOCAMERA = 101, + SIID_DEVICEAUDIOPLAYER = 102, + SIID_NETWORKCONNECT = 103, + SIID_INTERNET = 104, + SIID_ZIPFILE = 105, + SIID_SETTINGS = 106, + + + SIID_DRIVEHDDVD = 132, + SIID_DRIVEBD = 133, + SIID_MEDIAHDDVDROM = 134, + SIID_MEDIAHDDVDR = 135, + SIID_MEDIAHDDVDRAM = 136, + SIID_MEDIABDROM = 137, + SIID_MEDIABDR = 138, + SIID_MEDIABDRE = 139, + SIID_CLUSTEREDDRIVE = 140, + + SIID_MAX_ICONS = 181, +} SHSTOCKICONID; + + + +extern __declspec(dllimport) HRESULT __stdcall SHGetStockIconInfo(SHSTOCKICONID siid, UINT uFlags, SHSTOCKICONINFO *psii); + + + + + + + +extern __declspec(dllimport) BOOL __stdcall SHGetDiskFreeSpaceExA( LPCSTR pszDirectoryName, ULARGE_INTEGER* pulFreeBytesAvailableToCaller, + ULARGE_INTEGER* pulTotalNumberOfBytes, ULARGE_INTEGER* pulTotalNumberOfFreeBytes); +extern __declspec(dllimport) BOOL __stdcall SHGetDiskFreeSpaceExW( LPCWSTR pszDirectoryName, ULARGE_INTEGER* pulFreeBytesAvailableToCaller, + ULARGE_INTEGER* pulTotalNumberOfBytes, ULARGE_INTEGER* pulTotalNumberOfFreeBytes); + + + + + + +extern __declspec(dllimport) BOOL __stdcall SHGetNewLinkInfoA( LPCSTR pszLinkTo, LPCSTR pszDir, LPSTR pszName, BOOL *pfMustCopy, UINT uFlags); + +extern __declspec(dllimport) BOOL __stdcall SHGetNewLinkInfoW( LPCWSTR pszLinkTo, LPCWSTR pszDir, LPWSTR pszName, BOOL *pfMustCopy, UINT uFlags); +# 1458 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +extern __declspec(dllimport) BOOL __stdcall SHInvokePrinterCommandA( HWND hwnd, UINT uAction, LPCSTR lpBuf1, LPCSTR lpBuf2, BOOL fModal); +extern __declspec(dllimport) BOOL __stdcall SHInvokePrinterCommandW( HWND hwnd, UINT uAction, LPCWSTR lpBuf1, LPCWSTR lpBuf2, BOOL fModal); +# 1468 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef struct _OPEN_PRINTER_PROPS_INFOA +{ + DWORD dwSize; + LPSTR pszSheetName; + UINT uSheetIndex; + DWORD dwFlags; + BOOL bModal; +} OPEN_PRINTER_PROPS_INFOA, *POPEN_PRINTER_PROPS_INFOA; +typedef struct _OPEN_PRINTER_PROPS_INFOW +{ + DWORD dwSize; + LPWSTR pszSheetName; + UINT uSheetIndex; + DWORD dwFlags; + BOOL bModal; +} OPEN_PRINTER_PROPS_INFOW, *POPEN_PRINTER_PROPS_INFOW; + + + + +typedef OPEN_PRINTER_PROPS_INFOA OPEN_PRINTER_PROPS_INFO; +typedef POPEN_PRINTER_PROPS_INFOA POPEN_PRINTER_PROPS_INFO; +# 1511 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall SHLoadNonloadedIconOverlayIdentifiers(void); +# 1532 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall SHIsFileAvailableOffline( PCWSTR pwszPath, DWORD *pdwStatus); +# 1545 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall SHSetLocalizedName( PCWSTR pszPath, PCWSTR pszResModule, int idsRes); + + + + +extern __declspec(dllimport) HRESULT __stdcall SHRemoveLocalizedName( PCWSTR pszPath); + +extern __declspec(dllimport) HRESULT __stdcall SHGetLocalizedName( PCWSTR pszPath, PWSTR pszResModule, UINT cch, int *pidsRes); +# 1581 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +extern __declspec(dllimport) int __cdecl ShellMessageBoxA( + HINSTANCE hAppInst, + HWND hWnd, + LPCSTR lpcText, + LPCSTR lpcTitle, + UINT fuStyle, ...); +extern __declspec(dllimport) int __cdecl ShellMessageBoxW( + HINSTANCE hAppInst, + HWND hWnd, + LPCWSTR lpcText, + LPCWSTR lpcTitle, + UINT fuStyle, ...); + + + + + + + +extern __declspec(dllimport) BOOL __stdcall IsLFNDriveA( LPCSTR pszPath); +extern __declspec(dllimport) BOOL __stdcall IsLFNDriveW( LPCWSTR pszPath); +# 1612 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +extern HRESULT __stdcall SHEnumerateUnreadMailAccountsA( HKEY hKeyUser, DWORD dwIndex, LPSTR pszMailAddress, int cchMailAddress); +extern HRESULT __stdcall SHEnumerateUnreadMailAccountsW( HKEY hKeyUser, DWORD dwIndex, LPWSTR pszMailAddress, int cchMailAddress); + + + + + +extern HRESULT __stdcall SHGetUnreadMailCountA( HKEY hKeyUser, LPCSTR pszMailAddress, DWORD *pdwCount, FILETIME *pFileTime, LPSTR pszShellExecuteCommand, int cchShellExecuteCommand); +extern HRESULT __stdcall SHGetUnreadMailCountW( HKEY hKeyUser, LPCWSTR pszMailAddress, DWORD *pdwCount, FILETIME *pFileTime, LPWSTR pszShellExecuteCommand, int cchShellExecuteCommand); + + + + + +extern HRESULT __stdcall SHSetUnreadMailCountA( LPCSTR pszMailAddress, DWORD dwCount, LPCSTR pszShellExecuteCommand); +extern HRESULT __stdcall SHSetUnreadMailCountW( LPCWSTR pszMailAddress, DWORD dwCount, LPCWSTR pszShellExecuteCommand); +# 1637 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +extern BOOL __stdcall SHTestTokenMembership( HANDLE hToken, ULONG ulRID); + + + + + +extern __declspec(dllimport) HRESULT __stdcall SHGetImageList( int iImageList, const IID * const riid, void **ppvObj); +# 1665 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef HRESULT (__stdcall *PFNCANSHAREFOLDERW)( PCWSTR pszPath); +typedef HRESULT (__stdcall *PFNSHOWSHAREFOLDERUIW)( HWND hwndParent, PCWSTR pszPath); +# 1691 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +extern __declspec(dllimport) BOOL __stdcall InitNetworkAddressControl(void); +# 1704 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +typedef struct tagNC_ADDRESS +{ + struct NET_ADDRESS_INFO_ *pAddrInfo; + USHORT PortNumber; + BYTE PrefixLength; +} NC_ADDRESS, *PNC_ADDRESS; +# 1732 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +extern HRESULT __stdcall SHGetDriveMedia( PCWSTR pszDrive, DWORD *pdwMediaContent); +# 1746 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 +#pragma warning(pop) +# 205 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 1 3 +# 43 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,8) +# 51 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 2 3 +# 68 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 +typedef struct _PERF_DATA_BLOCK { + WCHAR Signature[4]; + DWORD LittleEndian; + DWORD Version; + + DWORD Revision; + + DWORD TotalByteLength; + DWORD HeaderLength; + DWORD NumObjectTypes; + + LONG DefaultObject; + + + + + SYSTEMTIME SystemTime; + + LARGE_INTEGER PerfTime; + + LARGE_INTEGER PerfFreq; + + LARGE_INTEGER PerfTime100nSec; + + DWORD SystemNameLength; + DWORD SystemNameOffset; + + +} PERF_DATA_BLOCK, *PPERF_DATA_BLOCK; +# 106 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 +typedef struct _PERF_OBJECT_TYPE { + DWORD TotalByteLength; + + + + + + + + DWORD DefinitionLength; + + + + + + + + DWORD HeaderLength; + + + + DWORD ObjectNameTitleIndex; + + + DWORD ObjectNameTitle; + + + + + + DWORD ObjectHelpTitleIndex; + + + DWORD ObjectHelpTitle; + + + + + + DWORD DetailLevel; + + + + DWORD NumCounters; + + + LONG DefaultCounter; + + + + LONG NumInstances; +# 183 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 + DWORD CodePage; + + + LARGE_INTEGER PerfTime; + + LARGE_INTEGER PerfFreq; + +} PERF_OBJECT_TYPE, *PPERF_OBJECT_TYPE; +# 574 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 +typedef struct _PERF_COUNTER_DEFINITION { + DWORD ByteLength; + DWORD CounterNameTitleIndex; + + + + DWORD CounterNameTitle; + + + + + + DWORD CounterHelpTitleIndex; + + + + DWORD CounterHelpTitle; + + + + + + LONG DefaultScale; + + + DWORD DetailLevel; + + DWORD CounterType; + DWORD CounterSize; + DWORD CounterOffset; + + +} PERF_COUNTER_DEFINITION, *PPERF_COUNTER_DEFINITION; +# 621 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 +typedef struct _PERF_INSTANCE_DEFINITION { + DWORD ByteLength; + + DWORD ParentObjectTitleIndex; + + + + + + DWORD ParentObjectInstance; + + + + LONG UniqueID; + + + DWORD NameOffset; + + + DWORD NameLength; + + + + + +} PERF_INSTANCE_DEFINITION, *PPERF_INSTANCE_DEFINITION; +# 660 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 +typedef struct _PERF_COUNTER_BLOCK { + DWORD ByteLength; + +} PERF_COUNTER_BLOCK, *PPERF_COUNTER_BLOCK; +# 688 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 +typedef DWORD (__stdcall PM_OPEN_PROC)( + LPWSTR pContext + ); +# 731 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 +typedef DWORD (__stdcall PM_COLLECT_PROC)( + LPWSTR pValueName, + + + + void** ppData, + DWORD* pcbTotalBytes, + DWORD* pNumObjectTypes + ); + + + + + + + +typedef DWORD (__stdcall PM_CLOSE_PROC)(void); +# 768 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 769 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 2 3 + + + + + +#pragma warning(pop) +# 207 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 1 3 +# 34 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + + + + + +typedef unsigned char u_char; +typedef unsigned short u_short; +typedef unsigned int u_int; +typedef unsigned long u_long; + + + + + + +typedef UINT_PTR SOCKET; +# 65 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 +typedef struct fd_set { + u_int fd_count; + SOCKET fd_array[64]; +} fd_set; + + + + + +extern int __stdcall __WSAFDIsSet(SOCKET, fd_set *); +# 108 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 +struct timeval { + long tv_sec; + long tv_usec; +}; +# 164 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 +struct hostent { + char * h_name; + char * * h_aliases; + short h_addrtype; + short h_length; + char * * h_addr_list; + +}; + + + + + +struct netent { + char * n_name; + char * * n_aliases; + short n_addrtype; + u_long n_net; +}; + +struct servent { + char * s_name; + char * * s_aliases; + + char * s_proto; + short s_port; + + + + +}; + +struct protoent { + char * p_name; + char * * p_aliases; + short p_proto; +}; +# 277 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\inaddr.h" 1 3 +# 25 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\inaddr.h" 3 +typedef struct in_addr { + union { + struct { UCHAR s_b1,s_b2,s_b3,s_b4; } S_un_b; + struct { USHORT s_w1,s_w2; } S_un_w; + ULONG S_addr; + } S_un; + + + + + + +} IN_ADDR, *PIN_ADDR, *LPIN_ADDR; +# 278 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 2 3 +# 309 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 +struct sockaddr_in { + short sin_family; + u_short sin_port; + struct in_addr sin_addr; + char sin_zero[8]; +}; + + + + +typedef struct WSAData { + WORD wVersion; + WORD wHighVersion; + + unsigned short iMaxSockets; + unsigned short iMaxUdpDg; + char * lpVendorInfo; + char szDescription[256 +1]; + char szSystemStatus[128 +1]; + + + + + + + +} WSADATA; + +typedef WSADATA *LPWSADATA; +# 360 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 +struct ip_mreq { + struct in_addr imr_multiaddr; + struct in_addr imr_interface; +}; +# 482 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 +struct sockaddr { + u_short sa_family; + char sa_data[14]; +}; + + + + + +struct sockproto { + u_short sp_family; + u_short sp_protocol; +}; +# 528 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 +struct linger { + u_short l_onoff; + u_short l_linger; +}; +# 739 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 +SOCKET __stdcall accept ( + SOCKET s, + struct sockaddr *addr, + int *addrlen); + +int __stdcall bind ( + SOCKET s, + const struct sockaddr *addr, + int namelen); + +int __stdcall closesocket ( SOCKET s); + +int __stdcall connect ( + SOCKET s, + const struct sockaddr *name, + int namelen); + +int __stdcall ioctlsocket ( + SOCKET s, + long cmd, + u_long *argp); + +int __stdcall getpeername ( + SOCKET s, + struct sockaddr *name, + int * namelen); + +int __stdcall getsockname ( + SOCKET s, + struct sockaddr *name, + int * namelen); + +int __stdcall getsockopt ( + SOCKET s, + int level, + int optname, + char * optval, + int *optlen); + +u_long __stdcall htonl ( u_long hostlong); + +u_short __stdcall htons ( u_short hostshort); + +unsigned long __stdcall inet_addr ( const char * cp); + +char * __stdcall inet_ntoa ( struct in_addr in); + +int __stdcall listen ( + SOCKET s, + int backlog); + +u_long __stdcall ntohl ( u_long netlong); + +u_short __stdcall ntohs ( u_short netshort); + +int __stdcall recv ( + SOCKET s, + char * buf, + int len, + int flags); + +int __stdcall recvfrom ( + SOCKET s, + char * buf, + int len, + int flags, + struct sockaddr * from, + int * fromlen); + +int __stdcall select ( + int nfds, + fd_set *readfds, + fd_set *writefds, + fd_set *exceptfds, + const struct timeval *timeout); + +int __stdcall send ( + SOCKET s, + const char * buf, + int len, + int flags); + +int __stdcall sendto ( + SOCKET s, + const char * buf, + int len, + int flags, + const struct sockaddr *to, + int tolen); + +int __stdcall setsockopt ( + SOCKET s, + int level, + int optname, + const char * optval, + int optlen); + +int __stdcall shutdown ( + SOCKET s, + int how); + +SOCKET __stdcall socket ( + int af, + int type, + int protocol); + + + +struct hostent * __stdcall gethostbyaddr( + const char * addr, + int len, + int type); + +struct hostent * __stdcall gethostbyname( const char * name); + +int __stdcall gethostname ( + char * name, + int namelen); + +struct servent * __stdcall getservbyport( + int port, + const char * proto); + +struct servent * __stdcall getservbyname( + const char * name, + const char * proto); + +struct protoent * __stdcall getprotobynumber( int proto); + +struct protoent * __stdcall getprotobyname( const char * name); + + + +int __stdcall WSAStartup( + WORD wVersionRequired, + LPWSADATA lpWSAData); + +int __stdcall WSACleanup(void); + +void __stdcall WSASetLastError( int iError); + +int __stdcall WSAGetLastError(void); + +BOOL __stdcall WSAIsBlocking(void); + +int __stdcall WSAUnhookBlockingHook(void); + +FARPROC __stdcall WSASetBlockingHook( FARPROC lpBlockFunc); + +int __stdcall WSACancelBlockingCall(void); + +HANDLE __stdcall WSAAsyncGetServByName( + HWND hWnd, + u_int wMsg, + const char * name, + const char * proto, + char * buf, + int buflen); + +HANDLE __stdcall WSAAsyncGetServByPort( + HWND hWnd, + u_int wMsg, + int port, + const char * proto, + char * buf, + int buflen); + +HANDLE __stdcall WSAAsyncGetProtoByName( + HWND hWnd, + u_int wMsg, + const char * name, + char * buf, + int buflen); + +HANDLE __stdcall WSAAsyncGetProtoByNumber( + HWND hWnd, + u_int wMsg, + int number, + char * buf, + int buflen); + +HANDLE __stdcall WSAAsyncGetHostByName( + HWND hWnd, + u_int wMsg, + const char * name, + char * buf, + int buflen); + +HANDLE __stdcall WSAAsyncGetHostByAddr( + HWND hWnd, + u_int wMsg, + const char * addr, + int len, + int type, + char * buf, + int buflen); + +int __stdcall WSACancelAsyncRequest( HANDLE hAsyncTaskHandle); + +int __stdcall WSAAsyncSelect( + SOCKET s, + HWND hWnd, + u_int wMsg, + long lEvent); + +int __stdcall WSARecvEx ( + SOCKET s, + char * buf, + int len, + int *flags); + +typedef struct _TRANSMIT_FILE_BUFFERS { + PVOID Head; + DWORD HeadLength; + PVOID Tail; + DWORD TailLength; +} TRANSMIT_FILE_BUFFERS, *PTRANSMIT_FILE_BUFFERS, *LPTRANSMIT_FILE_BUFFERS; + + + + + +BOOL +__stdcall +TransmitFile ( + SOCKET hSocket, + HANDLE hFile, + DWORD nNumberOfBytesToWrite, + DWORD nNumberOfBytesPerSend, + LPOVERLAPPED lpOverlapped, + LPTRANSMIT_FILE_BUFFERS lpTransmitBuffers, + DWORD dwReserved + ); + +BOOL +__stdcall +AcceptEx ( + SOCKET sListenSocket, + SOCKET sAcceptSocket, + + PVOID lpOutputBuffer, + DWORD dwReceiveDataLength, + DWORD dwLocalAddressLength, + DWORD dwRemoteAddressLength, + LPDWORD lpdwBytesReceived, + LPOVERLAPPED lpOverlapped + ); + +void +__stdcall +GetAcceptExSockaddrs ( + PVOID lpOutputBuffer, + DWORD dwReceiveDataLength, + DWORD dwLocalAddressLength, + DWORD dwRemoteAddressLength, + struct sockaddr **LocalSockaddr, + LPINT LocalSockaddrLength, + struct sockaddr **RemoteSockaddr, + LPINT RemoteSockaddrLength + ); + + + + + + +typedef struct sockaddr SOCKADDR; +typedef struct sockaddr *PSOCKADDR; +typedef struct sockaddr *LPSOCKADDR; + +typedef struct sockaddr_in SOCKADDR_IN; +typedef struct sockaddr_in *PSOCKADDR_IN; +typedef struct sockaddr_in *LPSOCKADDR_IN; + +typedef struct linger LINGER; +typedef struct linger *PLINGER; +typedef struct linger *LPLINGER; + +typedef struct fd_set FD_SET; +typedef struct fd_set *PFD_SET; +typedef struct fd_set *LPFD_SET; + +typedef struct hostent HOSTENT; +typedef struct hostent *PHOSTENT; +typedef struct hostent *LPHOSTENT; + +typedef struct servent SERVENT; +typedef struct servent *PSERVENT; +typedef struct servent *LPSERVENT; + +typedef struct protoent PROTOENT; +typedef struct protoent *PPROTOENT; +typedef struct protoent *LPPROTOENT; + +typedef struct timeval TIMEVAL; +typedef struct timeval *PTIMEVAL; +typedef struct timeval *LPTIMEVAL; +# 1082 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 +#pragma warning(pop) +# 208 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 1 3 +# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +#pragma warning(push) +#pragma warning(disable: 4668) +#pragma warning(disable: 4820) + +#pragma warning(disable: 4201) +# 291 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef unsigned int ALG_ID; +# 380 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef ULONG_PTR HCRYPTPROV; +typedef ULONG_PTR HCRYPTKEY; +typedef ULONG_PTR HCRYPTHASH; +# 899 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMS_KEY_INFO { + DWORD dwVersion; + ALG_ID Algid; + BYTE *pbOID; + DWORD cbOID; +} CMS_KEY_INFO, *PCMS_KEY_INFO; + + +typedef struct _HMAC_Info { + ALG_ID HashAlgid; + BYTE *pbInnerString; + DWORD cbInnerString; + BYTE *pbOuterString; + DWORD cbOuterString; +} HMAC_INFO, *PHMAC_INFO; + + +typedef struct _SCHANNEL_ALG { + DWORD dwUse; + ALG_ID Algid; + DWORD cBits; + DWORD dwFlags; + DWORD dwReserved; +} SCHANNEL_ALG, *PSCHANNEL_ALG; +# 931 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _PROV_ENUMALGS { + ALG_ID aiAlgid; + DWORD dwBitLen; + DWORD dwNameLen; + CHAR szName[20]; +} PROV_ENUMALGS; + + +typedef struct _PROV_ENUMALGS_EX { + ALG_ID aiAlgid; + DWORD dwDefaultLen; + DWORD dwMinLen; + DWORD dwMaxLen; + DWORD dwProtocols; + DWORD dwNameLen; + CHAR szName[20]; + DWORD dwLongNameLen; + CHAR szLongName[40]; +} PROV_ENUMALGS_EX; + + +typedef struct _PUBLICKEYSTRUC { + BYTE bType; + BYTE bVersion; + WORD reserved; + ALG_ID aiKeyAlg; +} BLOBHEADER, PUBLICKEYSTRUC; + +typedef struct _RSAPUBKEY { + DWORD magic; + DWORD bitlen; + DWORD pubexp; + +} RSAPUBKEY; + +typedef struct _PUBKEY { + DWORD magic; + DWORD bitlen; +} DHPUBKEY, DSSPUBKEY, KEAPUBKEY, TEKPUBKEY; + +typedef struct _DSSSEED { + DWORD counter; + BYTE seed[20]; +} DSSSEED; + +typedef struct _PUBKEYVER3 { + DWORD magic; + DWORD bitlenP; + DWORD bitlenQ; + DWORD bitlenJ; + DSSSEED DSSSeed; +} DHPUBKEY_VER3, DSSPUBKEY_VER3; + +typedef struct _PRIVKEYVER3 { + DWORD magic; + DWORD bitlenP; + DWORD bitlenQ; + DWORD bitlenJ; + DWORD bitlenX; + DSSSEED DSSSeed; +} DHPRIVKEY_VER3, DSSPRIVKEY_VER3; + +typedef struct _KEY_TYPE_SUBTYPE { + DWORD dwKeySpec; + GUID Type; + GUID Subtype; +} KEY_TYPE_SUBTYPE, *PKEY_TYPE_SUBTYPE; + +typedef struct _CERT_FORTEZZA_DATA_PROP { + unsigned char SerialNumber[8]; + int CertIndex; + unsigned char CertLabel[36]; +} CERT_FORTEZZA_DATA_PROP; + + +typedef struct _CRYPT_RC4_KEY_STATE { + unsigned char Key[16]; + unsigned char SBox[256]; + unsigned char i; + unsigned char j; +} CRYPT_RC4_KEY_STATE, *PCRYPT_RC4_KEY_STATE; + +typedef struct _CRYPT_DES_KEY_STATE { + unsigned char Key[8]; + unsigned char IV[8]; + unsigned char Feedback[8]; +} CRYPT_DES_KEY_STATE, *PCRYPT_DES_KEY_STATE; + +typedef struct _CRYPT_3DES_KEY_STATE { + unsigned char Key[24]; + unsigned char IV[8]; + unsigned char Feedback[8]; +} CRYPT_3DES_KEY_STATE, *PCRYPT_3DES_KEY_STATE; + + + +typedef struct _CRYPT_AES_128_KEY_STATE { + unsigned char Key[16]; + unsigned char IV[16]; + unsigned char EncryptionState[11][16]; + unsigned char DecryptionState[11][16]; + unsigned char Feedback[16]; +} CRYPT_AES_128_KEY_STATE, *PCRYPT_AES_128_KEY_STATE; + +typedef struct _CRYPT_AES_256_KEY_STATE { + unsigned char Key[32]; + unsigned char IV[16]; + unsigned char EncryptionState[15][16]; + unsigned char DecryptionState[15][16]; + unsigned char Feedback[16]; +} CRYPT_AES_256_KEY_STATE, *PCRYPT_AES_256_KEY_STATE; +# 1050 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPTOAPI_BLOB { + DWORD cbData; + BYTE *pbData; +} CRYPT_INTEGER_BLOB, *PCRYPT_INTEGER_BLOB, +CRYPT_UINT_BLOB, *PCRYPT_UINT_BLOB, +CRYPT_OBJID_BLOB, *PCRYPT_OBJID_BLOB, +CERT_NAME_BLOB, *PCERT_NAME_BLOB, +CERT_RDN_VALUE_BLOB, *PCERT_RDN_VALUE_BLOB, +CERT_BLOB, *PCERT_BLOB, +CRL_BLOB, *PCRL_BLOB, +DATA_BLOB, *PDATA_BLOB, +CRYPT_DATA_BLOB, *PCRYPT_DATA_BLOB, +CRYPT_HASH_BLOB, *PCRYPT_HASH_BLOB, +CRYPT_DIGEST_BLOB, *PCRYPT_DIGEST_BLOB, +CRYPT_DER_BLOB, *PCRYPT_DER_BLOB, +CRYPT_ATTR_BLOB, *PCRYPT_ATTR_BLOB; + + + + +typedef struct _CMS_DH_KEY_INFO { + DWORD dwVersion; + ALG_ID Algid; + LPSTR pszContentEncObjId; + CRYPT_DATA_BLOB PubInfo; + void *pReserved; +} CMS_DH_KEY_INFO, *PCMS_DH_KEY_INFO; + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptAcquireContextA( + HCRYPTPROV *phProv, + LPCSTR szContainer, + LPCSTR szProvider, + DWORD dwProvType, + DWORD dwFlags + ); +__declspec(dllimport) +BOOL +__stdcall +CryptAcquireContextW( + HCRYPTPROV *phProv, + LPCWSTR szContainer, + LPCWSTR szProvider, + DWORD dwProvType, + DWORD dwFlags + ); +# 1116 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptReleaseContext( + HCRYPTPROV hProv, + DWORD dwFlags + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptGenKey( + HCRYPTPROV hProv, + ALG_ID Algid, + DWORD dwFlags, + HCRYPTKEY *phKey + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptDeriveKey( + HCRYPTPROV hProv, + ALG_ID Algid, + HCRYPTHASH hBaseData, + DWORD dwFlags, + HCRYPTKEY *phKey + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptDestroyKey( + HCRYPTKEY hKey + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptSetKeyParam( + HCRYPTKEY hKey, + DWORD dwParam, + const BYTE *pbData, + DWORD dwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptGetKeyParam( + HCRYPTKEY hKey, + DWORD dwParam, + BYTE *pbData, + DWORD *pdwDataLen, + DWORD dwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptSetHashParam( + HCRYPTHASH hHash, + DWORD dwParam, + const BYTE *pbData, + DWORD dwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptGetHashParam( + HCRYPTHASH hHash, + DWORD dwParam, + BYTE *pbData, + DWORD *pdwDataLen, + DWORD dwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptSetProvParam( + HCRYPTPROV hProv, + DWORD dwParam, + const BYTE *pbData, + DWORD dwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptGetProvParam( + HCRYPTPROV hProv, + DWORD dwParam, + BYTE *pbData, + DWORD *pdwDataLen, + DWORD dwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptGenRandom( + HCRYPTPROV hProv, + DWORD dwLen, + BYTE *pbBuffer + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptGetUserKey( + HCRYPTPROV hProv, + DWORD dwKeySpec, + HCRYPTKEY *phUserKey + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptExportKey( + HCRYPTKEY hKey, + HCRYPTKEY hExpKey, + DWORD dwBlobType, + DWORD dwFlags, + BYTE *pbData, + DWORD *pdwDataLen + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptImportKey( + HCRYPTPROV hProv, + const BYTE *pbData, + DWORD dwDataLen, + HCRYPTKEY hPubKey, + DWORD dwFlags, + HCRYPTKEY *phKey + ); + +__declspec(dllimport) + BOOL +__stdcall +CryptEncrypt( + HCRYPTKEY hKey, + HCRYPTHASH hHash, + BOOL Final, + DWORD dwFlags, + BYTE *pbData, + DWORD *pdwDataLen, + DWORD dwBufLen + ); + +__declspec(dllimport) + BOOL +__stdcall +CryptDecrypt( + HCRYPTKEY hKey, + HCRYPTHASH hHash, + BOOL Final, + DWORD dwFlags, + BYTE *pbData, + DWORD *pdwDataLen + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptCreateHash( + HCRYPTPROV hProv, + ALG_ID Algid, + HCRYPTKEY hKey, + DWORD dwFlags, + HCRYPTHASH *phHash + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptHashData( + HCRYPTHASH hHash, + const BYTE *pbData, + DWORD dwDataLen, + DWORD dwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptHashSessionKey( + HCRYPTHASH hHash, + HCRYPTKEY hKey, + DWORD dwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptDestroyHash( + HCRYPTHASH hHash + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptSignHashA( + HCRYPTHASH hHash, + DWORD dwKeySpec, + LPCSTR szDescription, + DWORD dwFlags, + BYTE *pbSignature, + DWORD *pdwSigLen + ); +__declspec(dllimport) +BOOL +__stdcall +CryptSignHashW( + HCRYPTHASH hHash, + DWORD dwKeySpec, + LPCWSTR szDescription, + DWORD dwFlags, + BYTE *pbSignature, + DWORD *pdwSigLen + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptVerifySignatureA( + HCRYPTHASH hHash, + const BYTE *pbSignature, + DWORD dwSigLen, + HCRYPTKEY hPubKey, + LPCSTR szDescription, + DWORD dwFlags + ); +__declspec(dllimport) +BOOL +__stdcall +CryptVerifySignatureW( + HCRYPTHASH hHash, + const BYTE *pbSignature, + DWORD dwSigLen, + HCRYPTKEY hPubKey, + LPCWSTR szDescription, + DWORD dwFlags + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptSetProviderA( + LPCSTR pszProvName, + DWORD dwProvType + ); +__declspec(dllimport) +BOOL +__stdcall +CryptSetProviderW( + LPCWSTR pszProvName, + DWORD dwProvType + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptSetProviderExA( + LPCSTR pszProvName, + DWORD dwProvType, + DWORD *pdwReserved, + DWORD dwFlags + ); +__declspec(dllimport) +BOOL +__stdcall +CryptSetProviderExW( + LPCWSTR pszProvName, + DWORD dwProvType, + DWORD *pdwReserved, + DWORD dwFlags + ); + + + + + + +__declspec(dllimport) + BOOL +__stdcall +CryptGetDefaultProviderA( + DWORD dwProvType, + DWORD *pdwReserved, + DWORD dwFlags, + LPSTR pszProvName, + DWORD *pcbProvName + ); +__declspec(dllimport) + BOOL +__stdcall +CryptGetDefaultProviderW( + DWORD dwProvType, + DWORD *pdwReserved, + DWORD dwFlags, + LPWSTR pszProvName, + DWORD *pcbProvName + ); + + + + + + +__declspec(dllimport) + BOOL +__stdcall +CryptEnumProviderTypesA( + DWORD dwIndex, + DWORD *pdwReserved, + DWORD dwFlags, + DWORD *pdwProvType, + LPSTR szTypeName, + DWORD *pcbTypeName + ); +__declspec(dllimport) + BOOL +__stdcall +CryptEnumProviderTypesW( + DWORD dwIndex, + DWORD *pdwReserved, + DWORD dwFlags, + DWORD *pdwProvType, + LPWSTR szTypeName, + DWORD *pcbTypeName + ); + + + + + + +__declspec(dllimport) + BOOL +__stdcall +CryptEnumProvidersA( + DWORD dwIndex, + DWORD *pdwReserved, + DWORD dwFlags, + DWORD *pdwProvType, + LPSTR szProvName, + DWORD *pcbProvName + ); +__declspec(dllimport) + BOOL +__stdcall +CryptEnumProvidersW( + DWORD dwIndex, + DWORD *pdwReserved, + DWORD dwFlags, + DWORD *pdwProvType, + LPWSTR szProvName, + DWORD *pcbProvName + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptContextAddRef( + HCRYPTPROV hProv, + DWORD *pdwReserved, + DWORD dwFlags + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptDuplicateKey( + HCRYPTKEY hKey, + DWORD *pdwReserved, + DWORD dwFlags, + HCRYPTKEY *phKey + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptDuplicateHash( + HCRYPTHASH hHash, + DWORD *pdwReserved, + DWORD dwFlags, + HCRYPTHASH *phHash + ); +# 1549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +BOOL +__cdecl +GetEncSChannel( + BYTE **pData, + DWORD *dwDecSize + ); +# 1570 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 1 3 +# 23 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) +# 39 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +typedef LONG NTSTATUS; +typedef NTSTATUS *PNTSTATUS; +# 196 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +typedef struct __BCRYPT_KEY_LENGTHS_STRUCT +{ + ULONG dwMinLength; + ULONG dwMaxLength; + ULONG dwIncrement; +} BCRYPT_KEY_LENGTHS_STRUCT; + +typedef BCRYPT_KEY_LENGTHS_STRUCT BCRYPT_AUTH_TAG_LENGTHS_STRUCT; + +typedef struct _BCRYPT_OID +{ + ULONG cbOID; + PUCHAR pbOID; +} BCRYPT_OID; + +typedef struct _BCRYPT_OID_LIST +{ + ULONG dwOIDCount; + BCRYPT_OID *pOIDs; +} BCRYPT_OID_LIST; + +typedef struct _BCRYPT_PKCS1_PADDING_INFO +{ + LPCWSTR pszAlgId; +} BCRYPT_PKCS1_PADDING_INFO; + +typedef struct _BCRYPT_PSS_PADDING_INFO +{ + LPCWSTR pszAlgId; + ULONG cbSalt; +} BCRYPT_PSS_PADDING_INFO; + +typedef struct _BCRYPT_OAEP_PADDING_INFO +{ + LPCWSTR pszAlgId; + PUCHAR pbLabel; + ULONG cbLabel; +} BCRYPT_OAEP_PADDING_INFO; + + + + + + +typedef struct _BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO +{ + ULONG cbSize; + ULONG dwInfoVersion; + PUCHAR pbNonce; + ULONG cbNonce; + PUCHAR pbAuthData; + ULONG cbAuthData; + PUCHAR pbTag; + ULONG cbTag; + PUCHAR pbMacContext; + ULONG cbMacContext; + ULONG cbAAD; + ULONGLONG cbData; + ULONG dwFlags; +} BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO, *PBCRYPT_AUTHENTICATED_CIPHER_MODE_INFO; +# 395 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +typedef struct _BCryptBuffer { + ULONG cbBuffer; + ULONG BufferType; + PVOID pvBuffer; +} BCryptBuffer, * PBCryptBuffer; + +typedef struct _BCryptBufferDesc { + ULONG ulVersion; + ULONG cBuffers; + PBCryptBuffer pBuffers; +} BCryptBufferDesc, * PBCryptBufferDesc; + + + + + +typedef PVOID BCRYPT_HANDLE; +typedef PVOID BCRYPT_ALG_HANDLE; +typedef PVOID BCRYPT_KEY_HANDLE; +typedef PVOID BCRYPT_HASH_HANDLE; +typedef PVOID BCRYPT_SECRET_HANDLE; +# 424 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +typedef struct _BCRYPT_KEY_BLOB +{ + ULONG Magic; +} BCRYPT_KEY_BLOB; +# 446 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +typedef struct _BCRYPT_RSAKEY_BLOB +{ + ULONG Magic; + ULONG BitLength; + ULONG cbPublicExp; + ULONG cbModulus; + ULONG cbPrime1; + ULONG cbPrime2; +} BCRYPT_RSAKEY_BLOB; +# 512 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +typedef struct _BCRYPT_ECCKEY_BLOB +{ + ULONG dwMagic; + ULONG cbKey; +} BCRYPT_ECCKEY_BLOB, *PBCRYPT_ECCKEY_BLOB; + + + +typedef struct _SSL_ECCKEY_BLOB +{ + ULONG dwCurveType; + ULONG cbKey; +} SSL_ECCKEY_BLOB, *PSSL_ECCKEY_BLOB; + + + + +typedef enum +{ + BCRYPT_ECC_PRIME_SHORT_WEIERSTRASS_CURVE = 0x1, + BCRYPT_ECC_PRIME_TWISTED_EDWARDS_CURVE = 0x2, + BCRYPT_ECC_PRIME_MONTGOMERY_CURVE = 0x3 +} ECC_CURVE_TYPE_ENUM; + +typedef enum +{ + BCRYPT_NO_CURVE_GENERATION_ALG_ID = 0x0 +} ECC_CURVE_ALG_ID_ENUM; + + + +typedef struct _BCRYPT_ECCFULLKEY_BLOB +{ + ULONG dwMagic; + ULONG dwVersion; + ECC_CURVE_TYPE_ENUM dwCurveType; + ECC_CURVE_ALG_ID_ENUM dwCurveGenerationAlgId; + ULONG cbFieldLength; + ULONG cbSubgroupOrder; + ULONG cbCofactor; + ULONG cbSeed; +# 564 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +} BCRYPT_ECCFULLKEY_BLOB, *PBCRYPT_ECCFULLKEY_BLOB; +# 578 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +typedef struct _BCRYPT_DH_KEY_BLOB +{ + ULONG dwMagic; + ULONG cbKey; +} BCRYPT_DH_KEY_BLOB, *PBCRYPT_DH_KEY_BLOB; + + + + + + +typedef struct _BCRYPT_DH_PARAMETER_HEADER +{ + ULONG cbLength; + ULONG dwMagic; + ULONG cbKeyLength; +} BCRYPT_DH_PARAMETER_HEADER; +# 615 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +typedef struct _BCRYPT_DSA_KEY_BLOB +{ + ULONG dwMagic; + ULONG cbKey; + UCHAR Count[4]; + UCHAR Seed[20]; + UCHAR q[20]; +} BCRYPT_DSA_KEY_BLOB, *PBCRYPT_DSA_KEY_BLOB; + + +typedef enum +{ + DSA_HASH_ALGORITHM_SHA1, + DSA_HASH_ALGORITHM_SHA256, + DSA_HASH_ALGORITHM_SHA512 +} HASHALGORITHM_ENUM; + +typedef enum +{ + DSA_FIPS186_2, + DSA_FIPS186_3 +} DSAFIPSVERSION_ENUM; + +typedef struct _BCRYPT_DSA_KEY_BLOB_V2 +{ + ULONG dwMagic; + ULONG cbKey; + HASHALGORITHM_ENUM hashAlgorithm; + DSAFIPSVERSION_ENUM standardVersion; + ULONG cbSeedLength; + ULONG cbGroupSize; + UCHAR Count[4]; +} BCRYPT_DSA_KEY_BLOB_V2, *PBCRYPT_DSA_KEY_BLOB_V2; + + +typedef struct _BCRYPT_KEY_DATA_BLOB_HEADER +{ + ULONG dwMagic; + ULONG dwVersion; + ULONG cbKeyData; +} BCRYPT_KEY_DATA_BLOB_HEADER, *PBCRYPT_KEY_DATA_BLOB_HEADER; +# 670 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +typedef struct _BCRYPT_DSA_PARAMETER_HEADER +{ + ULONG cbLength; + ULONG dwMagic; + ULONG cbKeyLength; + UCHAR Count[4]; + UCHAR Seed[20]; + UCHAR q[20]; +} BCRYPT_DSA_PARAMETER_HEADER; + + +typedef struct _BCRYPT_DSA_PARAMETER_HEADER_V2 +{ + ULONG cbLength; + ULONG dwMagic; + ULONG cbKeyLength; + HASHALGORITHM_ENUM hashAlgorithm; + DSAFIPSVERSION_ENUM standardVersion; + ULONG cbSeedLength; + ULONG cbGroupSize; + UCHAR Count[4]; +} BCRYPT_DSA_PARAMETER_HEADER_V2; +# 702 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +typedef struct _BCRYPT_ECC_CURVE_NAMES +{ + ULONG dwEccCurveNames; + LPWSTR *pEccCurveNames; +} BCRYPT_ECC_CURVE_NAMES; +# 769 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +typedef enum { + BCRYPT_HASH_OPERATION_HASH_DATA = 1, + BCRYPT_HASH_OPERATION_FINISH_HASH = 2, +} BCRYPT_HASH_OPERATION_TYPE; + +typedef struct _BCRYPT_MULTI_HASH_OPERATION { + ULONG iHash; + BCRYPT_HASH_OPERATION_TYPE hashOperation; + PUCHAR pbBuffer; + ULONG cbBuffer; +} BCRYPT_MULTI_HASH_OPERATION; + + +typedef enum{ + BCRYPT_OPERATION_TYPE_HASH = 1, +} BCRYPT_MULTI_OPERATION_TYPE; + +typedef struct _BCRYPT_MULTI_OBJECT_LENGTH_STRUCT +{ + ULONG cbPerObject; + ULONG cbPerElement; +} BCRYPT_MULTI_OBJECT_LENGTH_STRUCT; +# 1036 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +NTSTATUS +__stdcall +BCryptOpenAlgorithmProvider( + BCRYPT_ALG_HANDLE *phAlgorithm, + LPCWSTR pszAlgId, + LPCWSTR pszImplementation, + ULONG dwFlags); +# 1061 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +typedef struct _BCRYPT_ALGORITHM_IDENTIFIER +{ + LPWSTR pszName; + ULONG dwClass; + ULONG dwFlags; + +} BCRYPT_ALGORITHM_IDENTIFIER; + + + +NTSTATUS +__stdcall +BCryptEnumAlgorithms( + ULONG dwAlgOperations, + ULONG *pAlgCount, + BCRYPT_ALGORITHM_IDENTIFIER **ppAlgList, + ULONG dwFlags); + +typedef struct _BCRYPT_PROVIDER_NAME +{ + LPWSTR pszProviderName; +} BCRYPT_PROVIDER_NAME; + + +NTSTATUS +__stdcall +BCryptEnumProviders( + LPCWSTR pszAlgId, + ULONG *pImplCount, + BCRYPT_PROVIDER_NAME **ppImplList, + ULONG dwFlags); +# 1100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +NTSTATUS +__stdcall +BCryptGetProperty( + BCRYPT_HANDLE hObject, + LPCWSTR pszProperty, + PUCHAR pbOutput, + ULONG cbOutput, + ULONG *pcbResult, + ULONG dwFlags); + + + +NTSTATUS +__stdcall +BCryptSetProperty( + BCRYPT_HANDLE hObject, + LPCWSTR pszProperty, + PUCHAR pbInput, + ULONG cbInput, + ULONG dwFlags); + + +NTSTATUS +__stdcall +BCryptCloseAlgorithmProvider( + BCRYPT_ALG_HANDLE hAlgorithm, + ULONG dwFlags); + + +void +__stdcall +BCryptFreeBuffer( + PVOID pvBuffer); + + + + + + +NTSTATUS +__stdcall +BCryptGenerateSymmetricKey( + BCRYPT_ALG_HANDLE hAlgorithm, + BCRYPT_KEY_HANDLE *phKey, + PUCHAR pbKeyObject, + ULONG cbKeyObject, + PUCHAR pbSecret, + ULONG cbSecret, + ULONG dwFlags); + + + +NTSTATUS +__stdcall +BCryptGenerateKeyPair( + BCRYPT_ALG_HANDLE hAlgorithm, + BCRYPT_KEY_HANDLE *phKey, + ULONG dwLength, + ULONG dwFlags); + + + +NTSTATUS +__stdcall +BCryptEncrypt( + BCRYPT_KEY_HANDLE hKey, + PUCHAR pbInput, + ULONG cbInput, + void *pPaddingInfo, + PUCHAR pbIV, + ULONG cbIV, + PUCHAR pbOutput, + ULONG cbOutput, + ULONG *pcbResult, + ULONG dwFlags); + + + +NTSTATUS +__stdcall +BCryptDecrypt( + BCRYPT_KEY_HANDLE hKey, + PUCHAR pbInput, + ULONG cbInput, + void *pPaddingInfo, + PUCHAR pbIV, + ULONG cbIV, + PUCHAR pbOutput, + ULONG cbOutput, + ULONG *pcbResult, + ULONG dwFlags); + + + +NTSTATUS +__stdcall +BCryptExportKey( + BCRYPT_KEY_HANDLE hKey, + BCRYPT_KEY_HANDLE hExportKey, + LPCWSTR pszBlobType, + PUCHAR pbOutput, + ULONG cbOutput, + ULONG *pcbResult, + ULONG dwFlags); + + + +NTSTATUS +__stdcall +BCryptImportKey( + BCRYPT_ALG_HANDLE hAlgorithm, + BCRYPT_KEY_HANDLE hImportKey, + LPCWSTR pszBlobType, + BCRYPT_KEY_HANDLE *phKey, + PUCHAR pbKeyObject, + ULONG cbKeyObject, + PUCHAR pbInput, + ULONG cbInput, + ULONG dwFlags); +# 1230 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +NTSTATUS +__stdcall +BCryptImportKeyPair( + BCRYPT_ALG_HANDLE hAlgorithm, + BCRYPT_KEY_HANDLE hImportKey, + LPCWSTR pszBlobType, + BCRYPT_KEY_HANDLE *phKey, + PUCHAR pbInput, + ULONG cbInput, + ULONG dwFlags); + + + +NTSTATUS +__stdcall +BCryptDuplicateKey( + BCRYPT_KEY_HANDLE hKey, + BCRYPT_KEY_HANDLE *phNewKey, + PUCHAR pbKeyObject, + ULONG cbKeyObject, + ULONG dwFlags); + + + +NTSTATUS +__stdcall +BCryptFinalizeKeyPair( + BCRYPT_KEY_HANDLE hKey, + ULONG dwFlags); + + +NTSTATUS +__stdcall +BCryptDestroyKey( + BCRYPT_KEY_HANDLE hKey); + + +NTSTATUS +__stdcall +BCryptDestroySecret( + BCRYPT_SECRET_HANDLE hSecret); + + + +NTSTATUS +__stdcall +BCryptSignHash( + BCRYPT_KEY_HANDLE hKey, + void *pPaddingInfo, + PUCHAR pbInput, + ULONG cbInput, + PUCHAR pbOutput, + ULONG cbOutput, + ULONG *pcbResult, + ULONG dwFlags); + + + +NTSTATUS +__stdcall +BCryptVerifySignature( + BCRYPT_KEY_HANDLE hKey, + void *pPaddingInfo, + PUCHAR pbHash, + ULONG cbHash, + PUCHAR pbSignature, + ULONG cbSignature, + ULONG dwFlags); + + + +NTSTATUS +__stdcall +BCryptSecretAgreement( + BCRYPT_KEY_HANDLE hPrivKey, + BCRYPT_KEY_HANDLE hPubKey, + BCRYPT_SECRET_HANDLE *phAgreedSecret, + ULONG dwFlags); + + + +NTSTATUS +__stdcall +BCryptDeriveKey( + BCRYPT_SECRET_HANDLE hSharedSecret, + LPCWSTR pwszKDF, + BCryptBufferDesc *pParameterList, + PUCHAR pbDerivedKey, + ULONG cbDerivedKey, + ULONG *pcbResult, + ULONG dwFlags); + + + + +NTSTATUS +__stdcall +BCryptKeyDerivation( + BCRYPT_KEY_HANDLE hKey, + BCryptBufferDesc *pParameterList, + PUCHAR pbDerivedKey, + ULONG cbDerivedKey, + ULONG *pcbResult, + ULONG dwFlags); + + + + + + + +NTSTATUS +__stdcall +BCryptCreateHash( + BCRYPT_ALG_HANDLE hAlgorithm, + BCRYPT_HASH_HANDLE *phHash, + PUCHAR pbHashObject, + ULONG cbHashObject, + PUCHAR pbSecret, + ULONG cbSecret, + ULONG dwFlags); + + + +NTSTATUS +__stdcall +BCryptHashData( + BCRYPT_HASH_HANDLE hHash, + PUCHAR pbInput, + ULONG cbInput, + ULONG dwFlags); + + + +NTSTATUS +__stdcall +BCryptFinishHash( + BCRYPT_HASH_HANDLE hHash, + PUCHAR pbOutput, + ULONG cbOutput, + ULONG dwFlags); + + + + +NTSTATUS +__stdcall +BCryptCreateMultiHash( + BCRYPT_ALG_HANDLE hAlgorithm, + BCRYPT_HASH_HANDLE *phHash, + ULONG nHashes, + PUCHAR pbHashObject, + ULONG cbHashObject, + PUCHAR pbSecret, + ULONG cbSecret, + ULONG dwFlags); + + +NTSTATUS +__stdcall +BCryptProcessMultiOperations( + BCRYPT_HANDLE hObject, + BCRYPT_MULTI_OPERATION_TYPE operationType, + PVOID pOperations, + ULONG cbOperations, + ULONG dwFlags ); + + + + +NTSTATUS +__stdcall +BCryptDuplicateHash( + BCRYPT_HASH_HANDLE hHash, + BCRYPT_HASH_HANDLE *phNewHash, + PUCHAR pbHashObject, + ULONG cbHashObject, + ULONG dwFlags); + + +NTSTATUS +__stdcall +BCryptDestroyHash( + BCRYPT_HASH_HANDLE hHash); + + + +NTSTATUS +__stdcall +BCryptHash( + BCRYPT_ALG_HANDLE hAlgorithm, + PUCHAR pbSecret, + ULONG cbSecret, + PUCHAR pbInput, + ULONG cbInput, + PUCHAR pbOutput, + ULONG cbOutput ); +# 1440 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +NTSTATUS +__stdcall +BCryptGenRandom( + BCRYPT_ALG_HANDLE hAlgorithm, + PUCHAR pbBuffer, + ULONG cbBuffer, + ULONG dwFlags); + + + + + + + +NTSTATUS +__stdcall +BCryptDeriveKeyCapi( + BCRYPT_HASH_HANDLE hHash, + BCRYPT_ALG_HANDLE hTargetAlg, + PUCHAR pbDerivedKey, + ULONG cbDerivedKey, + ULONG dwFlags); + + + + + +NTSTATUS +__stdcall +BCryptDeriveKeyPBKDF2( + BCRYPT_ALG_HANDLE hPrf, + PUCHAR pbPassword, + ULONG cbPassword, + PUCHAR pbSalt, + ULONG cbSalt, + ULONGLONG cIterations, + PUCHAR pbDerivedKey, + ULONG cbDerivedKey, + ULONG dwFlags); + + + + + + +typedef struct _BCRYPT_INTERFACE_VERSION +{ + USHORT MajorVersion; + USHORT MinorVersion; + +} BCRYPT_INTERFACE_VERSION, *PBCRYPT_INTERFACE_VERSION; +# 1575 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +typedef struct _CRYPT_INTERFACE_REG +{ + ULONG dwInterface; + ULONG dwFlags; + + ULONG cFunctions; + PWSTR *rgpszFunctions; +} +CRYPT_INTERFACE_REG, *PCRYPT_INTERFACE_REG; + +typedef struct _CRYPT_IMAGE_REG +{ + PWSTR pszImage; + + ULONG cInterfaces; + PCRYPT_INTERFACE_REG *rgpInterfaces; +} +CRYPT_IMAGE_REG, *PCRYPT_IMAGE_REG; + +typedef struct _CRYPT_PROVIDER_REG +{ + ULONG cAliases; + PWSTR *rgpszAliases; + + PCRYPT_IMAGE_REG pUM; + PCRYPT_IMAGE_REG pKM; +} +CRYPT_PROVIDER_REG, *PCRYPT_PROVIDER_REG; + +typedef struct _CRYPT_PROVIDERS +{ + ULONG cProviders; + PWSTR *rgpszProviders; +} +CRYPT_PROVIDERS, *PCRYPT_PROVIDERS; + + + + + +typedef struct _CRYPT_CONTEXT_CONFIG +{ + ULONG dwFlags; + ULONG dwReserved; +} +CRYPT_CONTEXT_CONFIG, *PCRYPT_CONTEXT_CONFIG; + +typedef struct _CRYPT_CONTEXT_FUNCTION_CONFIG +{ + ULONG dwFlags; + ULONG dwReserved; +} +CRYPT_CONTEXT_FUNCTION_CONFIG, *PCRYPT_CONTEXT_FUNCTION_CONFIG; + +typedef struct _CRYPT_CONTEXTS +{ + ULONG cContexts; + PWSTR *rgpszContexts; +} +CRYPT_CONTEXTS, *PCRYPT_CONTEXTS; + +typedef struct _CRYPT_CONTEXT_FUNCTIONS +{ + ULONG cFunctions; + PWSTR *rgpszFunctions; +} +CRYPT_CONTEXT_FUNCTIONS, *PCRYPT_CONTEXT_FUNCTIONS; + +typedef struct _CRYPT_CONTEXT_FUNCTION_PROVIDERS +{ + ULONG cProviders; + PWSTR *rgpszProviders; +} +CRYPT_CONTEXT_FUNCTION_PROVIDERS, *PCRYPT_CONTEXT_FUNCTION_PROVIDERS; + + + + + +typedef struct _CRYPT_PROPERTY_REF +{ + PWSTR pszProperty; + + ULONG cbValue; + PUCHAR pbValue; +} +CRYPT_PROPERTY_REF, *PCRYPT_PROPERTY_REF; + +typedef struct _CRYPT_IMAGE_REF +{ + PWSTR pszImage; + ULONG dwFlags; +} +CRYPT_IMAGE_REF, *PCRYPT_IMAGE_REF; + +typedef struct _CRYPT_PROVIDER_REF +{ + ULONG dwInterface; + PWSTR pszFunction; + PWSTR pszProvider; + + ULONG cProperties; + PCRYPT_PROPERTY_REF *rgpProperties; + + PCRYPT_IMAGE_REF pUM; + PCRYPT_IMAGE_REF pKM; +} +CRYPT_PROVIDER_REF, *PCRYPT_PROVIDER_REF; + +typedef struct _CRYPT_PROVIDER_REFS +{ + ULONG cProviders; + PCRYPT_PROVIDER_REF *rgpProviders; +} +CRYPT_PROVIDER_REFS, *PCRYPT_PROVIDER_REFS; +# 1705 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +NTSTATUS +__stdcall +BCryptQueryProviderRegistration( + LPCWSTR pszProvider, + ULONG dwMode, + ULONG dwInterface, + ULONG* pcbBuffer, + PCRYPT_PROVIDER_REG *ppBuffer); + + +NTSTATUS +__stdcall +BCryptEnumRegisteredProviders( + ULONG* pcbBuffer, + PCRYPT_PROVIDERS *ppBuffer); + + + + + +NTSTATUS +__stdcall +BCryptCreateContext( + ULONG dwTable, + LPCWSTR pszContext, + PCRYPT_CONTEXT_CONFIG pConfig); + + +NTSTATUS +__stdcall +BCryptDeleteContext( + ULONG dwTable, + LPCWSTR pszContext); + + +NTSTATUS +__stdcall +BCryptEnumContexts( + ULONG dwTable, + ULONG* pcbBuffer, + PCRYPT_CONTEXTS *ppBuffer); + + +NTSTATUS +__stdcall +BCryptConfigureContext( + ULONG dwTable, + LPCWSTR pszContext, + PCRYPT_CONTEXT_CONFIG pConfig); + + +NTSTATUS +__stdcall +BCryptQueryContextConfiguration( + ULONG dwTable, + LPCWSTR pszContext, + ULONG* pcbBuffer, + PCRYPT_CONTEXT_CONFIG *ppBuffer); + + +NTSTATUS +__stdcall +BCryptAddContextFunction( + ULONG dwTable, + LPCWSTR pszContext, + ULONG dwInterface, + LPCWSTR pszFunction, + ULONG dwPosition); + + +NTSTATUS +__stdcall +BCryptRemoveContextFunction( + ULONG dwTable, + LPCWSTR pszContext, + ULONG dwInterface, + LPCWSTR pszFunction); + + +NTSTATUS +__stdcall +BCryptEnumContextFunctions( + ULONG dwTable, + LPCWSTR pszContext, + ULONG dwInterface, + ULONG* pcbBuffer, + PCRYPT_CONTEXT_FUNCTIONS *ppBuffer); + + +NTSTATUS +__stdcall +BCryptConfigureContextFunction( + ULONG dwTable, + LPCWSTR pszContext, + ULONG dwInterface, + LPCWSTR pszFunction, + PCRYPT_CONTEXT_FUNCTION_CONFIG pConfig); + + +NTSTATUS +__stdcall +BCryptQueryContextFunctionConfiguration( + ULONG dwTable, + LPCWSTR pszContext, + ULONG dwInterface, + LPCWSTR pszFunction, + ULONG* pcbBuffer, + PCRYPT_CONTEXT_FUNCTION_CONFIG *ppBuffer); + + + +NTSTATUS +__stdcall +BCryptEnumContextFunctionProviders( + ULONG dwTable, + LPCWSTR pszContext, + ULONG dwInterface, + LPCWSTR pszFunction, + ULONG* pcbBuffer, + PCRYPT_CONTEXT_FUNCTION_PROVIDERS *ppBuffer); + + +NTSTATUS +__stdcall +BCryptSetContextFunctionProperty( + ULONG dwTable, + LPCWSTR pszContext, + ULONG dwInterface, + LPCWSTR pszFunction, + LPCWSTR pszProperty, + ULONG cbValue, + PUCHAR pbValue); + + +NTSTATUS +__stdcall +BCryptQueryContextFunctionProperty( + ULONG dwTable, + LPCWSTR pszContext, + ULONG dwInterface, + LPCWSTR pszFunction, + LPCWSTR pszProperty, + ULONG* pcbValue, + PUCHAR *ppbValue); +# 1865 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +NTSTATUS +__stdcall +BCryptRegisterConfigChangeNotify( + HANDLE *phEvent); +# 1878 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +NTSTATUS +__stdcall +BCryptUnregisterConfigChangeNotify( + HANDLE hEvent); + + + + + + +NTSTATUS __stdcall +BCryptResolveProviders( + LPCWSTR pszContext, + ULONG dwInterface, + LPCWSTR pszFunction, + LPCWSTR pszProvider, + ULONG dwMode, + ULONG dwFlags, + ULONG* pcbBuffer, + PCRYPT_PROVIDER_REFS *ppBuffer); +# 1908 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +NTSTATUS +__stdcall +BCryptGetFipsAlgorithmMode( + BOOLEAN *pfEnabled + ); + + + + + + + +BOOLEAN +CngGetFipsAlgorithmMode( + void + ); +# 1934 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 +#pragma warning(pop) +# 1571 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 2 3 + + + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 1 3 +# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) +# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +typedef LONG SECURITY_STATUS; +# 61 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +typedef LPVOID (__stdcall *PFN_NCRYPT_ALLOC)( + SIZE_T cbSize + ); + +typedef void (__stdcall *PFN_NCRYPT_FREE)( + LPVOID pv + ); + +typedef struct NCRYPT_ALLOC_PARA { + DWORD cbSize; + PFN_NCRYPT_ALLOC pfnAlloc; + PFN_NCRYPT_FREE pfnFree; +} NCRYPT_ALLOC_PARA; +# 250 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +typedef BCryptBuffer NCryptBuffer; +typedef BCryptBuffer* PNCryptBuffer; +typedef BCryptBufferDesc NCryptBufferDesc; +typedef BCryptBufferDesc* PNCryptBufferDesc; + + + + + +typedef ULONG_PTR NCRYPT_HANDLE; +typedef ULONG_PTR NCRYPT_PROV_HANDLE; +typedef ULONG_PTR NCRYPT_KEY_HANDLE; +typedef ULONG_PTR NCRYPT_HASH_HANDLE; +typedef ULONG_PTR NCRYPT_SECRET_HANDLE; + + + +typedef +struct _NCRYPT_CIPHER_PADDING_INFO +{ + + ULONG cbSize; + + + DWORD dwFlags; + + + + + + + PUCHAR pbIV; + ULONG cbIV; +# 295 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 + PUCHAR pbOtherInfo; + ULONG cbOtherInfo; + +} NCRYPT_CIPHER_PADDING_INFO, *PNCRYPT_CIPHER_PADDING_INFO; +# 313 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +typedef struct _NCRYPT_PLATFORM_ATTEST_PADDING_INFO { + ULONG magic; + ULONG pcrMask; +} NCRYPT_PLATFORM_ATTEST_PADDING_INFO; + + + +typedef struct _NCRYPT_KEY_ATTEST_PADDING_INFO { + ULONG magic; + PUCHAR pbKeyBlob; + ULONG cbKeyBlob; + PUCHAR pbKeyAuth; + ULONG cbKeyAuth; +} NCRYPT_KEY_ATTEST_PADDING_INFO; +# 359 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +typedef struct _NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES +{ + ULONG Version; + ULONG Flags; + ULONG cbPublicKeyBlob; + +} NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES, *PNCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES; + + + + +typedef struct _NCRYPT_VSM_KEY_ATTESTATION_STATEMENT +{ + ULONG Magic; + ULONG Version; + ULONG cbSignature; + ULONG cbReport; + ULONG cbAttributes; + + + +} NCRYPT_VSM_KEY_ATTESTATION_STATEMENT, *PNCRYPT_VSM_KEY_ATTESTATION_STATEMENT; + + + + + + +#pragma warning(disable: 4214) +typedef struct _NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS +{ + ULONG Version; + ULONGLONG TrustletId; + ULONG MinSvn; + ULONG FlagsMask; + ULONG FlagsExpected; + ULONG AllowDebugging : 1; + ULONG Reserved : 31; +} NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS, *PNCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS; +#pragma warning(default: 4214) + + + + + + +#pragma warning(disable: 4214) +typedef struct _NCRYPT_EXPORTED_ISOLATED_KEY_HEADER +{ + ULONG Version; + ULONG KeyUsage; + ULONG PerBootKey : 1; + ULONG Reserved : 31; + ULONG cbAlgName; + ULONG cbNonce; + ULONG cbAuthTag; + ULONG cbWrappingKey; + ULONG cbIsolatedKey; +} NCRYPT_EXPORTED_ISOLATED_KEY_HEADER, *PNCRYPT_EXPORTED_ISOLATED_KEY_HEADER; +#pragma warning(default: 4214) + +typedef struct _NCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE +{ + NCRYPT_EXPORTED_ISOLATED_KEY_HEADER Header; + + + + + + +} NCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE, *PNCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE; + + + + + +typedef struct __NCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT +{ + UINT32 Magic; + UINT32 Version; + UINT32 HeaderSize; + UINT32 cbCertifyInfo; + UINT32 cbSignature; + UINT32 cbTpmPublic; + + + + +} NCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT,*PNCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT; +# 456 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +typedef struct _NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT +{ + ULONG Magic; + ULONG Version; + ULONG pcrAlg; + ULONG cbSignature; + ULONG cbQuote; + ULONG cbPcrs; + + + +} NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT, *PNCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT; +# 529 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +SECURITY_STATUS +__stdcall +NCryptOpenStorageProvider( + NCRYPT_PROV_HANDLE *phProvider, + LPCWSTR pszProviderName, + DWORD dwFlags); +# 551 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +typedef struct _NCryptAlgorithmName +{ + LPWSTR pszName; + DWORD dwClass; + DWORD dwAlgOperations; + DWORD dwFlags; +} NCryptAlgorithmName; + + + +SECURITY_STATUS +__stdcall +NCryptEnumAlgorithms( + NCRYPT_PROV_HANDLE hProvider, + DWORD dwAlgOperations, + DWORD * pdwAlgCount, + NCryptAlgorithmName **ppAlgList, + DWORD dwFlags); + + + + +SECURITY_STATUS +__stdcall +NCryptIsAlgSupported( + NCRYPT_PROV_HANDLE hProvider, + LPCWSTR pszAlgId, + DWORD dwFlags); + + + + + + +typedef struct NCryptKeyName +{ + LPWSTR pszName; + LPWSTR pszAlgid; + DWORD dwLegacyKeySpec; + DWORD dwFlags; +} NCryptKeyName; + + +SECURITY_STATUS +__stdcall +NCryptEnumKeys( + NCRYPT_PROV_HANDLE hProvider, + LPCWSTR pszScope, + NCryptKeyName **ppKeyName, + PVOID * ppEnumState, + DWORD dwFlags); + + + +typedef struct NCryptProviderName +{ + LPWSTR pszName; + LPWSTR pszComment; +} NCryptProviderName; + + + + + +SECURITY_STATUS +__stdcall +NCryptEnumStorageProviders( + DWORD * pdwProviderCount, + NCryptProviderName **ppProviderList, + DWORD dwFlags); + + + + + + +SECURITY_STATUS +__stdcall +NCryptFreeBuffer( + PVOID pvInput); +# 645 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +SECURITY_STATUS +__stdcall +NCryptOpenKey( + NCRYPT_PROV_HANDLE hProvider, + NCRYPT_KEY_HANDLE *phKey, + LPCWSTR pszKeyName, + DWORD dwLegacyKeySpec, + DWORD dwFlags); +# 661 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +SECURITY_STATUS +__stdcall +NCryptCreatePersistedKey( + NCRYPT_PROV_HANDLE hProvider, + NCRYPT_KEY_HANDLE *phKey, + LPCWSTR pszAlgId, + LPCWSTR pszKeyName, + DWORD dwLegacyKeySpec, + DWORD dwFlags); +# 971 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +typedef struct __NCRYPT_UI_POLICY +{ + DWORD dwVersion; + DWORD dwFlags; + LPCWSTR pszCreationTitle; + LPCWSTR pszFriendlyName; + LPCWSTR pszDescription; +} NCRYPT_UI_POLICY; + + + + +typedef struct __NCRYPT_KEY_ACCESS_POLICY_BLOB +{ + DWORD dwVersion; + DWORD dwPolicyFlags; + DWORD cbUserSid; + DWORD cbApplicationSid; + + +}NCRYPT_KEY_ACCESS_POLICY_BLOB; + + + +typedef struct __NCRYPT_SUPPORTED_LENGTHS +{ + DWORD dwMinLength; + DWORD dwMaxLength; + DWORD dwIncrement; + DWORD dwDefaultLength; +} NCRYPT_SUPPORTED_LENGTHS; + + + +typedef struct __NCRYPT_PCP_HMAC_AUTH_SIGNATURE_INFO +{ + DWORD dwVersion; + INT32 iExpiration; + BYTE pabNonce[32]; + BYTE pabPolicyRef[32]; + BYTE pabHMAC[32]; +} NCRYPT_PCP_HMAC_AUTH_SIGNATURE_INFO; + + + + +typedef struct __NCRYPT_PCP_TPM_FW_VERSION_INFO +{ + UINT16 major1; + UINT16 major2; + UINT16 minor1; + UINT16 minor2; +} NCRYPT_PCP_TPM_FW_VERSION_INFO; + + + + +typedef struct __NCRYPT_PCP_RAW_POLICYDIGEST +{ + DWORD dwVersion; + DWORD cbDigest; +} NCRYPT_PCP_RAW_POLICYDIGEST_INFO; + + + + + + + +SECURITY_STATUS +__stdcall +NCryptGetProperty( + NCRYPT_HANDLE hObject, + LPCWSTR pszProperty, + PBYTE pbOutput, + DWORD cbOutput, + DWORD * pcbResult, + DWORD dwFlags); +# 1057 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +SECURITY_STATUS +__stdcall +NCryptSetProperty( + NCRYPT_HANDLE hObject, + LPCWSTR pszProperty, + PBYTE pbInput, + DWORD cbInput, + DWORD dwFlags); + + + + + + + +SECURITY_STATUS +__stdcall +NCryptFinalizeKey( + NCRYPT_KEY_HANDLE hKey, + DWORD dwFlags); + + + + +SECURITY_STATUS +__stdcall +NCryptEncrypt( + NCRYPT_KEY_HANDLE hKey, + PBYTE pbInput, + DWORD cbInput, + void *pPaddingInfo, + PBYTE pbOutput, + DWORD cbOutput, + DWORD * pcbResult, + DWORD dwFlags); + + + + +SECURITY_STATUS +__stdcall +NCryptDecrypt( + NCRYPT_KEY_HANDLE hKey, + PBYTE pbInput, + DWORD cbInput, + void *pPaddingInfo, + PBYTE pbOutput, + DWORD cbOutput, + DWORD * pcbResult, + DWORD dwFlags); + + + + + +typedef struct _NCRYPT_KEY_BLOB_HEADER +{ + ULONG cbSize; + ULONG dwMagic; + ULONG cbAlgName; + ULONG cbKeyData; +} NCRYPT_KEY_BLOB_HEADER, *PNCRYPT_KEY_BLOB_HEADER; +# 1130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +typedef struct NCRYPT_TPM_LOADABLE_KEY_BLOB_HEADER +{ + DWORD magic; + DWORD cbHeader; + DWORD cbPublic; + DWORD cbPrivate; + DWORD cbName; +} NCRYPT_TPM_LOADABLE_KEY_BLOB_HEADER, *PNCRYPT_TPM_LOADABLE_KEY_BLOB_HEADER; +# 1157 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +SECURITY_STATUS +__stdcall +NCryptImportKey( + NCRYPT_PROV_HANDLE hProvider, + NCRYPT_KEY_HANDLE hImportKey, + LPCWSTR pszBlobType, + NCryptBufferDesc *pParameterList, + NCRYPT_KEY_HANDLE *phKey, + PBYTE pbData, + DWORD cbData, + DWORD dwFlags); + + + + +SECURITY_STATUS +__stdcall +NCryptExportKey( + NCRYPT_KEY_HANDLE hKey, + NCRYPT_KEY_HANDLE hExportKey, + LPCWSTR pszBlobType, + NCryptBufferDesc *pParameterList, + PBYTE pbOutput, + DWORD cbOutput, + DWORD * pcbResult, + DWORD dwFlags); + + + + +SECURITY_STATUS +__stdcall +NCryptSignHash( + NCRYPT_KEY_HANDLE hKey, + void *pPaddingInfo, + PBYTE pbHashValue, + DWORD cbHashValue, + PBYTE pbSignature, + DWORD cbSignature, + DWORD * pcbResult, + DWORD dwFlags); + + + + +SECURITY_STATUS +__stdcall +NCryptVerifySignature( + NCRYPT_KEY_HANDLE hKey, + void *pPaddingInfo, + PBYTE pbHashValue, + DWORD cbHashValue, + PBYTE pbSignature, + DWORD cbSignature, + DWORD dwFlags); + + + +SECURITY_STATUS +__stdcall +NCryptDeleteKey( + NCRYPT_KEY_HANDLE hKey, + DWORD dwFlags); + + + +SECURITY_STATUS +__stdcall +NCryptFreeObject( + NCRYPT_HANDLE hObject); + + + + + +BOOL +__stdcall +NCryptIsKeyHandle( + NCRYPT_KEY_HANDLE hKey); + + +SECURITY_STATUS +__stdcall +NCryptTranslateHandle( + NCRYPT_PROV_HANDLE *phProvider, + NCRYPT_KEY_HANDLE *phKey, + HCRYPTPROV hLegacyProv, + HCRYPTKEY hLegacyKey, + DWORD dwLegacyKeySpec, + DWORD dwFlags); +# 1261 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +SECURITY_STATUS +__stdcall +NCryptNotifyChangeKey( + NCRYPT_PROV_HANDLE hProvider, + HANDLE *phEvent, + DWORD dwFlags); + + + + + + + +SECURITY_STATUS +__stdcall +NCryptSecretAgreement( + NCRYPT_KEY_HANDLE hPrivKey, + NCRYPT_KEY_HANDLE hPubKey, + NCRYPT_SECRET_HANDLE *phAgreedSecret, + DWORD dwFlags); + + + + +SECURITY_STATUS +__stdcall +NCryptDeriveKey( + NCRYPT_SECRET_HANDLE hSharedSecret, + LPCWSTR pwszKDF, + NCryptBufferDesc *pParameterList, + PBYTE pbDerivedKey, + DWORD cbDerivedKey, + DWORD *pcbResult, + ULONG dwFlags); + + + + + + +SECURITY_STATUS +__stdcall +NCryptKeyDerivation( + NCRYPT_KEY_HANDLE hKey, + NCryptBufferDesc *pParameterList, + PUCHAR pbDerivedKey, + DWORD cbDerivedKey, + DWORD *pcbResult, + ULONG dwFlags); + + + + + + + +SECURITY_STATUS +__stdcall +NCryptCreateClaim( + NCRYPT_KEY_HANDLE hSubjectKey, + NCRYPT_KEY_HANDLE hAuthorityKey, + DWORD dwClaimType, + NCryptBufferDesc *pParameterList, + PBYTE pbClaimBlob, + DWORD cbClaimBlob, + DWORD *pcbResult, + DWORD dwFlags); + + + + + + + +SECURITY_STATUS +__stdcall +NCryptVerifyClaim( + NCRYPT_KEY_HANDLE hSubjectKey, + NCRYPT_KEY_HANDLE hAuthorityKey, + DWORD dwClaimType, + NCryptBufferDesc *pParameterList, + PBYTE pbClaimBlob, + DWORD cbClaimBlob, + NCryptBufferDesc *pOutput, + DWORD dwFlags); +# 1360 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 +#pragma warning(pop) +# 1579 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 2 3 + + + + +typedef ULONG_PTR HCRYPTPROV_OR_NCRYPT_KEY_HANDLE; + + + +typedef ULONG_PTR HCRYPTPROV_LEGACY; + + + + + + +typedef struct _CRYPT_BIT_BLOB { + DWORD cbData; + BYTE *pbData; + DWORD cUnusedBits; +} CRYPT_BIT_BLOB, *PCRYPT_BIT_BLOB; + + + + + + + +typedef struct _CRYPT_ALGORITHM_IDENTIFIER { + LPSTR pszObjId; + CRYPT_OBJID_BLOB Parameters; +} CRYPT_ALGORITHM_IDENTIFIER, *PCRYPT_ALGORITHM_IDENTIFIER; +# 1897 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_OBJID_TABLE { + DWORD dwAlgId; + LPCSTR pszObjId; +} CRYPT_OBJID_TABLE, *PCRYPT_OBJID_TABLE; + + + + + +typedef struct _CRYPT_HASH_INFO { + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; + CRYPT_HASH_BLOB Hash; +} CRYPT_HASH_INFO, *PCRYPT_HASH_INFO; + + + + + + + +typedef struct _CERT_EXTENSION { + LPSTR pszObjId; + BOOL fCritical; + CRYPT_OBJID_BLOB Value; +} CERT_EXTENSION, *PCERT_EXTENSION; +typedef const CERT_EXTENSION* PCCERT_EXTENSION; +# 1931 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_ATTRIBUTE_TYPE_VALUE { + LPSTR pszObjId; + CRYPT_OBJID_BLOB Value; +} CRYPT_ATTRIBUTE_TYPE_VALUE, *PCRYPT_ATTRIBUTE_TYPE_VALUE; +# 1943 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_ATTRIBUTE { + LPSTR pszObjId; + DWORD cValue; + PCRYPT_ATTR_BLOB rgValue; +} CRYPT_ATTRIBUTE, *PCRYPT_ATTRIBUTE; + +typedef struct _CRYPT_ATTRIBUTES { + DWORD cAttr; + PCRYPT_ATTRIBUTE rgAttr; +} CRYPT_ATTRIBUTES, *PCRYPT_ATTRIBUTES; +# 1961 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_RDN_ATTR { + LPSTR pszObjId; + DWORD dwValueType; + CERT_RDN_VALUE_BLOB Value; +} CERT_RDN_ATTR, *PCERT_RDN_ATTR; +# 2149 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_RDN { + DWORD cRDNAttr; + PCERT_RDN_ATTR rgRDNAttr; +} CERT_RDN, *PCERT_RDN; + + + + + +typedef struct _CERT_NAME_INFO { + DWORD cRDN; + PCERT_RDN rgRDN; +} CERT_NAME_INFO, *PCERT_NAME_INFO; + + + + + + + +typedef struct _CERT_NAME_VALUE { + DWORD dwValueType; + CERT_RDN_VALUE_BLOB Value; +} CERT_NAME_VALUE, *PCERT_NAME_VALUE; +# 2181 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_PUBLIC_KEY_INFO { + CRYPT_ALGORITHM_IDENTIFIER Algorithm; + CRYPT_BIT_BLOB PublicKey; +} CERT_PUBLIC_KEY_INFO, *PCERT_PUBLIC_KEY_INFO; +# 2194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_ECC_PRIVATE_KEY_INFO{ + DWORD dwVersion; + CRYPT_DER_BLOB PrivateKey; + LPSTR szCurveOid; + CRYPT_BIT_BLOB PublicKey; +} CRYPT_ECC_PRIVATE_KEY_INFO, *PCRYPT_ECC_PRIVATE_KEY_INFO; + + + + + + +typedef struct _CRYPT_PRIVATE_KEY_INFO{ + DWORD Version; + CRYPT_ALGORITHM_IDENTIFIER Algorithm; + CRYPT_DER_BLOB PrivateKey; + PCRYPT_ATTRIBUTES pAttributes; +} CRYPT_PRIVATE_KEY_INFO, *PCRYPT_PRIVATE_KEY_INFO; + + + + + +typedef struct _CRYPT_ENCRYPTED_PRIVATE_KEY_INFO{ + CRYPT_ALGORITHM_IDENTIFIER EncryptionAlgorithm; + CRYPT_DATA_BLOB EncryptedPrivateKey; +} CRYPT_ENCRYPTED_PRIVATE_KEY_INFO, *PCRYPT_ENCRYPTED_PRIVATE_KEY_INFO; +# 2238 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PCRYPT_DECRYPT_PRIVATE_KEY_FUNC)( + CRYPT_ALGORITHM_IDENTIFIER Algorithm, + CRYPT_DATA_BLOB EncryptedPrivateKey, + BYTE* pbClearTextKey, + DWORD* pcbClearTextKey, + LPVOID pVoidDecryptFunc); +# 2261 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PCRYPT_ENCRYPT_PRIVATE_KEY_FUNC)( + CRYPT_ALGORITHM_IDENTIFIER* pAlgorithm, + CRYPT_DATA_BLOB* pClearTextPrivateKey, + BYTE* pbEncryptedKey, + DWORD* pcbEncryptedKey, + LPVOID pVoidEncryptFunc); +# 2280 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PCRYPT_RESOLVE_HCRYPTPROV_FUNC)( + CRYPT_PRIVATE_KEY_INFO *pPrivateKeyInfo, + HCRYPTPROV *phCryptProv, + LPVOID pVoidResolveFunc); +# 2294 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_PKCS8_IMPORT_PARAMS{ + CRYPT_DIGEST_BLOB PrivateKey; + PCRYPT_RESOLVE_HCRYPTPROV_FUNC pResolvehCryptProvFunc; + LPVOID pVoidResolveFunc; + PCRYPT_DECRYPT_PRIVATE_KEY_FUNC pDecryptPrivateKeyFunc; + LPVOID pVoidDecryptFunc; +} CRYPT_PKCS8_IMPORT_PARAMS, *PCRYPT_PKCS8_IMPORT_PARAMS, CRYPT_PRIVATE_KEY_BLOB_AND_PARAMS, *PCRYPT_PRIVATE_KEY_BLOB_AND_PARAMS; +# 2310 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_PKCS8_EXPORT_PARAMS{ + HCRYPTPROV hCryptProv; + DWORD dwKeySpec; + LPSTR pszPrivateKeyObjId; + + PCRYPT_ENCRYPT_PRIVATE_KEY_FUNC pEncryptPrivateKeyFunc; + LPVOID pVoidEncryptFunc; +} CRYPT_PKCS8_EXPORT_PARAMS, *PCRYPT_PKCS8_EXPORT_PARAMS; +# 2326 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_INFO { + DWORD dwVersion; + CRYPT_INTEGER_BLOB SerialNumber; + CRYPT_ALGORITHM_IDENTIFIER SignatureAlgorithm; + CERT_NAME_BLOB Issuer; + FILETIME NotBefore; + FILETIME NotAfter; + CERT_NAME_BLOB Subject; + CERT_PUBLIC_KEY_INFO SubjectPublicKeyInfo; + CRYPT_BIT_BLOB IssuerUniqueId; + CRYPT_BIT_BLOB SubjectUniqueId; + DWORD cExtension; + PCERT_EXTENSION rgExtension; +} CERT_INFO, *PCERT_INFO; +# 2369 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRL_ENTRY { + CRYPT_INTEGER_BLOB SerialNumber; + FILETIME RevocationDate; + DWORD cExtension; + PCERT_EXTENSION rgExtension; +} CRL_ENTRY, *PCRL_ENTRY; + + + + + + + +typedef struct _CRL_INFO { + DWORD dwVersion; + CRYPT_ALGORITHM_IDENTIFIER SignatureAlgorithm; + CERT_NAME_BLOB Issuer; + FILETIME ThisUpdate; + FILETIME NextUpdate; + DWORD cCRLEntry; + PCRL_ENTRY rgCRLEntry; + DWORD cExtension; + PCERT_EXTENSION rgExtension; +} CRL_INFO, *PCRL_INFO; +# 2406 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_OR_CRL_BLOB { + DWORD dwChoice; + DWORD cbEncoded; + + BYTE *pbEncoded; +} CERT_OR_CRL_BLOB, * PCERT_OR_CRL_BLOB; + +typedef struct _CERT_OR_CRL_BUNDLE { + DWORD cItem; + + PCERT_OR_CRL_BLOB rgItem; +} CERT_OR_CRL_BUNDLE, *PCERT_OR_CRL_BUNDLE; + + + + + + + +typedef struct _CERT_REQUEST_INFO { + DWORD dwVersion; + CERT_NAME_BLOB Subject; + CERT_PUBLIC_KEY_INFO SubjectPublicKeyInfo; + DWORD cAttribute; + PCRYPT_ATTRIBUTE rgAttribute; +} CERT_REQUEST_INFO, *PCERT_REQUEST_INFO; +# 2441 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_KEYGEN_REQUEST_INFO { + DWORD dwVersion; + CERT_PUBLIC_KEY_INFO SubjectPublicKeyInfo; + LPWSTR pwszChallengeString; +} CERT_KEYGEN_REQUEST_INFO, *PCERT_KEYGEN_REQUEST_INFO; +# 2457 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_SIGNED_CONTENT_INFO { + CRYPT_DER_BLOB ToBeSigned; + CRYPT_ALGORITHM_IDENTIFIER SignatureAlgorithm; + CRYPT_BIT_BLOB Signature; +} CERT_SIGNED_CONTENT_INFO, *PCERT_SIGNED_CONTENT_INFO; +# 2471 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CTL_USAGE { + DWORD cUsageIdentifier; + LPSTR *rgpszUsageIdentifier; +} CTL_USAGE, *PCTL_USAGE, +CERT_ENHKEY_USAGE, *PCERT_ENHKEY_USAGE; +typedef const CTL_USAGE* PCCTL_USAGE; +typedef const CERT_ENHKEY_USAGE* PCCERT_ENHKEY_USAGE; + + + + + +typedef struct _CTL_ENTRY { + CRYPT_DATA_BLOB SubjectIdentifier; + DWORD cAttribute; + PCRYPT_ATTRIBUTE rgAttribute; +} CTL_ENTRY, *PCTL_ENTRY; + + + + +typedef struct _CTL_INFO { + DWORD dwVersion; + CTL_USAGE SubjectUsage; + CRYPT_DATA_BLOB ListIdentifier; + CRYPT_INTEGER_BLOB SequenceNumber; + FILETIME ThisUpdate; + FILETIME NextUpdate; + CRYPT_ALGORITHM_IDENTIFIER SubjectAlgorithm; + DWORD cCTLEntry; + PCTL_ENTRY rgCTLEntry; + DWORD cExtension; + PCERT_EXTENSION rgExtension; +} CTL_INFO, *PCTL_INFO; +# 2519 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_TIME_STAMP_REQUEST_INFO { + LPSTR pszTimeStampAlgorithm; + LPSTR pszContentType; + CRYPT_OBJID_BLOB Content; + DWORD cAttribute; + PCRYPT_ATTRIBUTE rgAttribute; +} CRYPT_TIME_STAMP_REQUEST_INFO, *PCRYPT_TIME_STAMP_REQUEST_INFO; + + + + +typedef struct _CRYPT_ENROLLMENT_NAME_VALUE_PAIR { + LPWSTR pwszName; + LPWSTR pwszValue; +} CRYPT_ENROLLMENT_NAME_VALUE_PAIR, * PCRYPT_ENROLLMENT_NAME_VALUE_PAIR; + + + + +typedef struct _CRYPT_CSP_PROVIDER { + DWORD dwKeySpec; + LPWSTR pwszProviderName; + CRYPT_BIT_BLOB Signature; +} CRYPT_CSP_PROVIDER, * PCRYPT_CSP_PROVIDER; +# 2586 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptFormatObject( + DWORD dwCertEncodingType, + DWORD dwFormatType, + DWORD dwFormatStrType, + void *pFormatStruct, + LPCSTR lpszStructType, + const BYTE *pbEncoded, + DWORD cbEncoded, + void *pbFormat, + DWORD *pcbFormat + ); +# 2669 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef LPVOID (__stdcall *PFN_CRYPT_ALLOC)( + size_t cbSize + ); + +typedef void (__stdcall *PFN_CRYPT_FREE)( + LPVOID pv + ); + + +typedef struct _CRYPT_ENCODE_PARA { + DWORD cbSize; + PFN_CRYPT_ALLOC pfnAlloc; + PFN_CRYPT_FREE pfnFree; +} CRYPT_ENCODE_PARA, *PCRYPT_ENCODE_PARA; + + +__declspec(dllimport) +BOOL +__stdcall +CryptEncodeObjectEx( + DWORD dwCertEncodingType, + LPCSTR lpszStructType, + const void *pvStructInfo, + DWORD dwFlags, + PCRYPT_ENCODE_PARA pEncodePara, + void *pvEncoded, + DWORD *pcbEncoded + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptEncodeObject( + DWORD dwCertEncodingType, + LPCSTR lpszStructType, + const void *pvStructInfo, + BYTE *pbEncoded, + DWORD *pcbEncoded + ); +# 2784 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_DECODE_PARA { + DWORD cbSize; + PFN_CRYPT_ALLOC pfnAlloc; + PFN_CRYPT_FREE pfnFree; +} CRYPT_DECODE_PARA, *PCRYPT_DECODE_PARA; + +__declspec(dllimport) +BOOL +__stdcall +CryptDecodeObjectEx( + DWORD dwCertEncodingType, + LPCSTR lpszStructType, + const BYTE *pbEncoded, + DWORD cbEncoded, + DWORD dwFlags, + PCRYPT_DECODE_PARA pDecodePara, + void *pvStructInfo, + DWORD *pcbStructInfo + ); + + +__declspec(dllimport) +BOOL +__stdcall +CryptDecodeObject( + DWORD dwCertEncodingType, + LPCSTR lpszStructType, + const BYTE *pbEncoded, + DWORD cbEncoded, + DWORD dwFlags, + void *pvStructInfo, + DWORD *pcbStructInfo + ); +# 3726 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_EXTENSIONS { + DWORD cExtension; + PCERT_EXTENSION rgExtension; +} CERT_EXTENSIONS, *PCERT_EXTENSIONS; +# 3893 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_AUTHORITY_KEY_ID_INFO { + CRYPT_DATA_BLOB KeyId; + CERT_NAME_BLOB CertIssuer; + CRYPT_INTEGER_BLOB CertSerialNumber; +} CERT_AUTHORITY_KEY_ID_INFO, *PCERT_AUTHORITY_KEY_ID_INFO; + + + + + + + +typedef struct _CERT_PRIVATE_KEY_VALIDITY { + FILETIME NotBefore; + FILETIME NotAfter; +} CERT_PRIVATE_KEY_VALIDITY, *PCERT_PRIVATE_KEY_VALIDITY; + +typedef struct _CERT_KEY_ATTRIBUTES_INFO { + CRYPT_DATA_BLOB KeyId; + CRYPT_BIT_BLOB IntendedKeyUsage; + PCERT_PRIVATE_KEY_VALIDITY pPrivateKeyUsagePeriod; +} CERT_KEY_ATTRIBUTES_INFO, *PCERT_KEY_ATTRIBUTES_INFO; +# 3937 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_POLICY_ID { + DWORD cCertPolicyElementId; + LPSTR *rgpszCertPolicyElementId; +} CERT_POLICY_ID, *PCERT_POLICY_ID; + +typedef struct _CERT_KEY_USAGE_RESTRICTION_INFO { + DWORD cCertPolicyId; + PCERT_POLICY_ID rgCertPolicyId; + CRYPT_BIT_BLOB RestrictedKeyUsage; +} CERT_KEY_USAGE_RESTRICTION_INFO, *PCERT_KEY_USAGE_RESTRICTION_INFO; +# 3961 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_OTHER_NAME { + LPSTR pszObjId; + CRYPT_OBJID_BLOB Value; +} CERT_OTHER_NAME, *PCERT_OTHER_NAME; + +typedef struct _CERT_ALT_NAME_ENTRY { + DWORD dwAltNameChoice; + union { + PCERT_OTHER_NAME pOtherName; + LPWSTR pwszRfc822Name; + LPWSTR pwszDNSName; + + CERT_NAME_BLOB DirectoryName; + + LPWSTR pwszURL; + CRYPT_DATA_BLOB IPAddress; + LPSTR pszRegisteredID; + } ; +} CERT_ALT_NAME_ENTRY, *PCERT_ALT_NAME_ENTRY; +# 3995 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_ALT_NAME_INFO { + DWORD cAltEntry; + PCERT_ALT_NAME_ENTRY rgAltEntry; +} CERT_ALT_NAME_INFO, *PCERT_ALT_NAME_INFO; +# 4030 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_BASIC_CONSTRAINTS_INFO { + CRYPT_BIT_BLOB SubjectType; + BOOL fPathLenConstraint; + DWORD dwPathLenConstraint; + DWORD cSubtreesConstraint; + CERT_NAME_BLOB *rgSubtreesConstraint; +} CERT_BASIC_CONSTRAINTS_INFO, *PCERT_BASIC_CONSTRAINTS_INFO; +# 4047 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_BASIC_CONSTRAINTS2_INFO { + BOOL fCA; + BOOL fPathLenConstraint; + DWORD dwPathLenConstraint; +} CERT_BASIC_CONSTRAINTS2_INFO, *PCERT_BASIC_CONSTRAINTS2_INFO; +# 4072 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_POLICY_QUALIFIER_INFO { + LPSTR pszPolicyQualifierId; + CRYPT_OBJID_BLOB Qualifier; +} CERT_POLICY_QUALIFIER_INFO, *PCERT_POLICY_QUALIFIER_INFO; + +typedef struct _CERT_POLICY_INFO { + LPSTR pszPolicyIdentifier; + DWORD cPolicyQualifier; + CERT_POLICY_QUALIFIER_INFO *rgPolicyQualifier; +} CERT_POLICY_INFO, *PCERT_POLICY_INFO; + +typedef struct _CERT_POLICIES_INFO { + DWORD cPolicyInfo; + CERT_POLICY_INFO *rgPolicyInfo; +} CERT_POLICIES_INFO, *PCERT_POLICIES_INFO; +# 4096 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_POLICY_QUALIFIER_NOTICE_REFERENCE { + LPSTR pszOrganization; + DWORD cNoticeNumbers; + int *rgNoticeNumbers; +} CERT_POLICY_QUALIFIER_NOTICE_REFERENCE, *PCERT_POLICY_QUALIFIER_NOTICE_REFERENCE; + +typedef struct _CERT_POLICY_QUALIFIER_USER_NOTICE { + CERT_POLICY_QUALIFIER_NOTICE_REFERENCE *pNoticeReference; + LPWSTR pszDisplayText; +} CERT_POLICY_QUALIFIER_USER_NOTICE, *PCERT_POLICY_QUALIFIER_USER_NOTICE; + + + + + + + +typedef struct _CPS_URLS { + LPWSTR pszURL; + CRYPT_ALGORITHM_IDENTIFIER *pAlgorithm; + CRYPT_DATA_BLOB *pDigest; +} CPS_URLS, *PCPS_URLS; + +typedef struct _CERT_POLICY95_QUALIFIER1 { + LPWSTR pszPracticesReference; + LPSTR pszNoticeIdentifier; + LPSTR pszNSINoticeIdentifier; + DWORD cCPSURLs; + CPS_URLS *rgCPSURLs; +} CERT_POLICY95_QUALIFIER1, *PCERT_POLICY95_QUALIFIER1; +# 4141 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_POLICY_MAPPING { + LPSTR pszIssuerDomainPolicy; + LPSTR pszSubjectDomainPolicy; +} CERT_POLICY_MAPPING, *PCERT_POLICY_MAPPING; + +typedef struct _CERT_POLICY_MAPPINGS_INFO { + DWORD cPolicyMapping; + PCERT_POLICY_MAPPING rgPolicyMapping; +} CERT_POLICY_MAPPINGS_INFO, *PCERT_POLICY_MAPPINGS_INFO; + + + + + + + +typedef struct _CERT_POLICY_CONSTRAINTS_INFO { + BOOL fRequireExplicitPolicy; + DWORD dwRequireExplicitPolicySkipCerts; + + BOOL fInhibitPolicyMapping; + DWORD dwInhibitPolicyMappingSkipCerts; +} CERT_POLICY_CONSTRAINTS_INFO, *PCERT_POLICY_CONSTRAINTS_INFO; +# 4249 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY { + LPSTR pszObjId; + DWORD cValue; + PCRYPT_DER_BLOB rgValue; +} CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY, *PCRYPT_CONTENT_INFO_SEQUENCE_OF_ANY; +# 4263 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_CONTENT_INFO { + LPSTR pszObjId; + CRYPT_DER_BLOB Content; +} CRYPT_CONTENT_INFO, *PCRYPT_CONTENT_INFO; +# 4321 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_SEQUENCE_OF_ANY { + DWORD cValue; + PCRYPT_DER_BLOB rgValue; +} CRYPT_SEQUENCE_OF_ANY, *PCRYPT_SEQUENCE_OF_ANY; +# 4338 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_AUTHORITY_KEY_ID2_INFO { + CRYPT_DATA_BLOB KeyId; + CERT_ALT_NAME_INFO AuthorityCertIssuer; + + CRYPT_INTEGER_BLOB AuthorityCertSerialNumber; +} CERT_AUTHORITY_KEY_ID2_INFO, *PCERT_AUTHORITY_KEY_ID2_INFO; +# 4374 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_ACCESS_DESCRIPTION { + LPSTR pszAccessMethod; + CERT_ALT_NAME_ENTRY AccessLocation; +} CERT_ACCESS_DESCRIPTION, *PCERT_ACCESS_DESCRIPTION; + + +typedef struct _CERT_AUTHORITY_INFO_ACCESS { + DWORD cAccDescr; + PCERT_ACCESS_DESCRIPTION rgAccDescr; +} CERT_AUTHORITY_INFO_ACCESS, *PCERT_AUTHORITY_INFO_ACCESS, + CERT_SUBJECT_INFO_ACCESS, *PCERT_SUBJECT_INFO_ACCESS; +# 4438 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRL_DIST_POINT_NAME { + DWORD dwDistPointNameChoice; + union { + CERT_ALT_NAME_INFO FullName; + + } ; +} CRL_DIST_POINT_NAME, *PCRL_DIST_POINT_NAME; + + + + + +typedef struct _CRL_DIST_POINT { + CRL_DIST_POINT_NAME DistPointName; + CRYPT_BIT_BLOB ReasonFlags; + CERT_ALT_NAME_INFO CRLIssuer; +} CRL_DIST_POINT, *PCRL_DIST_POINT; +# 4468 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRL_DIST_POINTS_INFO { + DWORD cDistPoint; + PCRL_DIST_POINT rgDistPoint; +} CRL_DIST_POINTS_INFO, *PCRL_DIST_POINTS_INFO; +# 4499 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CROSS_CERT_DIST_POINTS_INFO { + + DWORD dwSyncDeltaTime; + + DWORD cDistPoint; + PCERT_ALT_NAME_INFO rgDistPoint; +} CROSS_CERT_DIST_POINTS_INFO, *PCROSS_CERT_DIST_POINTS_INFO; +# 4527 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_PAIR { + CERT_BLOB Forward; + CERT_BLOB Reverse; +} CERT_PAIR, *PCERT_PAIR; +# 4560 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRL_ISSUING_DIST_POINT { + CRL_DIST_POINT_NAME DistPointName; + BOOL fOnlyContainsUserCerts; + BOOL fOnlyContainsCACerts; + CRYPT_BIT_BLOB OnlySomeReasonFlags; + BOOL fIndirectCRL; +} CRL_ISSUING_DIST_POINT, *PCRL_ISSUING_DIST_POINT; +# 4591 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_GENERAL_SUBTREE { + CERT_ALT_NAME_ENTRY Base; + DWORD dwMinimum; + BOOL fMaximum; + DWORD dwMaximum; +} CERT_GENERAL_SUBTREE, *PCERT_GENERAL_SUBTREE; + +typedef struct _CERT_NAME_CONSTRAINTS_INFO { + DWORD cPermittedSubtree; + PCERT_GENERAL_SUBTREE rgPermittedSubtree; + DWORD cExcludedSubtree; + PCERT_GENERAL_SUBTREE rgExcludedSubtree; +} CERT_NAME_CONSTRAINTS_INFO, *PCERT_NAME_CONSTRAINTS_INFO; +# 4692 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_DSS_PARAMETERS { + CRYPT_UINT_BLOB p; + CRYPT_UINT_BLOB q; + CRYPT_UINT_BLOB g; +} CERT_DSS_PARAMETERS, *PCERT_DSS_PARAMETERS; +# 4723 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_DH_PARAMETERS { + CRYPT_UINT_BLOB p; + CRYPT_UINT_BLOB g; +} CERT_DH_PARAMETERS, *PCERT_DH_PARAMETERS; +# 4736 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_ECC_SIGNATURE { + CRYPT_UINT_BLOB r; + CRYPT_UINT_BLOB s; +} CERT_ECC_SIGNATURE, *PCERT_ECC_SIGNATURE; +# 4748 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_X942_DH_VALIDATION_PARAMS { + CRYPT_BIT_BLOB seed; + DWORD pgenCounter; +} CERT_X942_DH_VALIDATION_PARAMS, *PCERT_X942_DH_VALIDATION_PARAMS; + +typedef struct _CERT_X942_DH_PARAMETERS { + CRYPT_UINT_BLOB p; + CRYPT_UINT_BLOB g; + CRYPT_UINT_BLOB q; + CRYPT_UINT_BLOB j; + PCERT_X942_DH_VALIDATION_PARAMS pValidationParams; +} CERT_X942_DH_PARAMETERS, *PCERT_X942_DH_PARAMETERS; +# 4771 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_X942_OTHER_INFO { + LPSTR pszContentEncryptionObjId; + BYTE rgbCounter[4]; + BYTE rgbKeyLength[4]; + CRYPT_DATA_BLOB PubInfo; +} CRYPT_X942_OTHER_INFO, *PCRYPT_X942_OTHER_INFO; +# 4787 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_ECC_CMS_SHARED_INFO { + CRYPT_ALGORITHM_IDENTIFIER Algorithm; + CRYPT_DATA_BLOB EntityUInfo; + BYTE rgbSuppPubInfo[4]; +} CRYPT_ECC_CMS_SHARED_INFO, *PCRYPT_ECC_CMS_SHARED_INFO; +# 4800 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_RC2_CBC_PARAMETERS { + DWORD dwVersion; + BOOL fIV; + BYTE rgbIV[8]; +} CRYPT_RC2_CBC_PARAMETERS, *PCRYPT_RC2_CBC_PARAMETERS; +# 4824 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_SMIME_CAPABILITY { + LPSTR pszObjId; + CRYPT_OBJID_BLOB Parameters; +} CRYPT_SMIME_CAPABILITY, *PCRYPT_SMIME_CAPABILITY; + +typedef struct _CRYPT_SMIME_CAPABILITIES { + DWORD cCapability; + PCRYPT_SMIME_CAPABILITY rgCapability; +} CRYPT_SMIME_CAPABILITIES, *PCRYPT_SMIME_CAPABILITIES; +# 4849 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_QC_STATEMENT { + LPSTR pszStatementId; + CRYPT_OBJID_BLOB StatementInfo; +} CERT_QC_STATEMENT, *PCERT_QC_STATEMENT; + +typedef struct _CERT_QC_STATEMENTS_EXT_INFO { + DWORD cStatement; + PCERT_QC_STATEMENT rgStatement; +} CERT_QC_STATEMENTS_EXT_INFO, *PCERT_QC_STATEMENTS_EXT_INFO; +# 4901 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_MASK_GEN_ALGORITHM { + LPSTR pszObjId; + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; +} CRYPT_MASK_GEN_ALGORITHM, *PCRYPT_MASK_GEN_ALGORITHM; + +typedef struct _CRYPT_RSA_SSA_PSS_PARAMETERS { + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; + CRYPT_MASK_GEN_ALGORITHM MaskGenAlgorithm; + DWORD dwSaltLength; + DWORD dwTrailerField; +} CRYPT_RSA_SSA_PSS_PARAMETERS, *PCRYPT_RSA_SSA_PSS_PARAMETERS; +# 4936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_PSOURCE_ALGORITHM { + LPSTR pszObjId; + CRYPT_DATA_BLOB EncodingParameters; +} CRYPT_PSOURCE_ALGORITHM, *PCRYPT_PSOURCE_ALGORITHM; + +typedef struct _CRYPT_RSAES_OAEP_PARAMETERS { + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; + CRYPT_MASK_GEN_ALGORITHM MaskGenAlgorithm; + CRYPT_PSOURCE_ALGORITHM PSourceAlgorithm; +} CRYPT_RSAES_OAEP_PARAMETERS, *PCRYPT_RSAES_OAEP_PARAMETERS; +# 5230 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMC_TAGGED_ATTRIBUTE { + DWORD dwBodyPartID; + CRYPT_ATTRIBUTE Attribute; +} CMC_TAGGED_ATTRIBUTE, *PCMC_TAGGED_ATTRIBUTE; + +typedef struct _CMC_TAGGED_CERT_REQUEST { + DWORD dwBodyPartID; + CRYPT_DER_BLOB SignedCertRequest; +} CMC_TAGGED_CERT_REQUEST, *PCMC_TAGGED_CERT_REQUEST; + +typedef struct _CMC_TAGGED_REQUEST { + DWORD dwTaggedRequestChoice; + union { + + PCMC_TAGGED_CERT_REQUEST pTaggedCertRequest; + } ; +} CMC_TAGGED_REQUEST, *PCMC_TAGGED_REQUEST; + + + +typedef struct _CMC_TAGGED_CONTENT_INFO { + DWORD dwBodyPartID; + CRYPT_DER_BLOB EncodedContentInfo; +} CMC_TAGGED_CONTENT_INFO, *PCMC_TAGGED_CONTENT_INFO; + +typedef struct _CMC_TAGGED_OTHER_MSG { + DWORD dwBodyPartID; + LPSTR pszObjId; + CRYPT_OBJID_BLOB Value; +} CMC_TAGGED_OTHER_MSG, *PCMC_TAGGED_OTHER_MSG; + + + +typedef struct _CMC_DATA_INFO { + DWORD cTaggedAttribute; + PCMC_TAGGED_ATTRIBUTE rgTaggedAttribute; + DWORD cTaggedRequest; + PCMC_TAGGED_REQUEST rgTaggedRequest; + DWORD cTaggedContentInfo; + PCMC_TAGGED_CONTENT_INFO rgTaggedContentInfo; + DWORD cTaggedOtherMsg; + PCMC_TAGGED_OTHER_MSG rgTaggedOtherMsg; +} CMC_DATA_INFO, *PCMC_DATA_INFO; + + + +typedef struct _CMC_RESPONSE_INFO { + DWORD cTaggedAttribute; + PCMC_TAGGED_ATTRIBUTE rgTaggedAttribute; + DWORD cTaggedContentInfo; + PCMC_TAGGED_CONTENT_INFO rgTaggedContentInfo; + DWORD cTaggedOtherMsg; + PCMC_TAGGED_OTHER_MSG rgTaggedOtherMsg; +} CMC_RESPONSE_INFO, *PCMC_RESPONSE_INFO; +# 5293 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMC_PEND_INFO { + CRYPT_DATA_BLOB PendToken; + FILETIME PendTime; +} CMC_PEND_INFO, *PCMC_PEND_INFO; + +typedef struct _CMC_STATUS_INFO { + DWORD dwStatus; + DWORD cBodyList; + DWORD *rgdwBodyList; + LPWSTR pwszStatusString; + DWORD dwOtherInfoChoice; + union { + + + + DWORD dwFailInfo; + + PCMC_PEND_INFO pPendInfo; + } ; +} CMC_STATUS_INFO, *PCMC_STATUS_INFO; +# 5390 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMC_ADD_EXTENSIONS_INFO { + DWORD dwCmcDataReference; + DWORD cCertReference; + DWORD *rgdwCertReference; + DWORD cExtension; + PCERT_EXTENSION rgExtension; +} CMC_ADD_EXTENSIONS_INFO, *PCMC_ADD_EXTENSIONS_INFO; +# 5407 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMC_ADD_ATTRIBUTES_INFO { + DWORD dwCmcDataReference; + DWORD cCertReference; + DWORD *rgdwCertReference; + DWORD cAttribute; + PCRYPT_ATTRIBUTE rgAttribute; +} CMC_ADD_ATTRIBUTES_INFO, *PCMC_ADD_ATTRIBUTES_INFO; +# 5423 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_TEMPLATE_EXT { + LPSTR pszObjId; + DWORD dwMajorVersion; + BOOL fMinorVersion; + DWORD dwMinorVersion; +} CERT_TEMPLATE_EXT, *PCERT_TEMPLATE_EXT; +# 5439 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_HASHED_URL { + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; + CRYPT_HASH_BLOB Hash; + LPWSTR pwszUrl; + +} CERT_HASHED_URL, *PCERT_HASHED_URL; + +typedef struct _CERT_LOGOTYPE_DETAILS { + LPWSTR pwszMimeType; + DWORD cHashedUrl; + PCERT_HASHED_URL rgHashedUrl; +} CERT_LOGOTYPE_DETAILS, *PCERT_LOGOTYPE_DETAILS; + +typedef struct _CERT_LOGOTYPE_REFERENCE { + DWORD cHashedUrl; + PCERT_HASHED_URL rgHashedUrl; +} CERT_LOGOTYPE_REFERENCE, *PCERT_LOGOTYPE_REFERENCE; + +typedef struct _CERT_LOGOTYPE_IMAGE_INFO { + + + DWORD dwLogotypeImageInfoChoice; + + DWORD dwFileSize; + DWORD dwXSize; + DWORD dwYSize; + + DWORD dwLogotypeImageResolutionChoice; + union { + + + + + DWORD dwNumBits; + + + DWORD dwTableSize; + } ; + LPWSTR pwszLanguage; + +} CERT_LOGOTYPE_IMAGE_INFO, *PCERT_LOGOTYPE_IMAGE_INFO; +# 5488 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_LOGOTYPE_IMAGE { + CERT_LOGOTYPE_DETAILS LogotypeDetails; + + PCERT_LOGOTYPE_IMAGE_INFO pLogotypeImageInfo; +} CERT_LOGOTYPE_IMAGE, *PCERT_LOGOTYPE_IMAGE; + + +typedef struct _CERT_LOGOTYPE_AUDIO_INFO { + DWORD dwFileSize; + DWORD dwPlayTime; + DWORD dwChannels; + DWORD dwSampleRate; + + LPWSTR pwszLanguage; + +} CERT_LOGOTYPE_AUDIO_INFO, *PCERT_LOGOTYPE_AUDIO_INFO; + +typedef struct _CERT_LOGOTYPE_AUDIO { + CERT_LOGOTYPE_DETAILS LogotypeDetails; + + PCERT_LOGOTYPE_AUDIO_INFO pLogotypeAudioInfo; +} CERT_LOGOTYPE_AUDIO, *PCERT_LOGOTYPE_AUDIO; + + +typedef struct _CERT_LOGOTYPE_DATA { + DWORD cLogotypeImage; + PCERT_LOGOTYPE_IMAGE rgLogotypeImage; + + DWORD cLogotypeAudio; + PCERT_LOGOTYPE_AUDIO rgLogotypeAudio; +} CERT_LOGOTYPE_DATA, *PCERT_LOGOTYPE_DATA; + + +typedef struct _CERT_LOGOTYPE_INFO { + DWORD dwLogotypeInfoChoice; + union { + + PCERT_LOGOTYPE_DATA pLogotypeDirectInfo; + + + PCERT_LOGOTYPE_REFERENCE pLogotypeIndirectInfo; + } ; +} CERT_LOGOTYPE_INFO, *PCERT_LOGOTYPE_INFO; + + + + +typedef struct _CERT_OTHER_LOGOTYPE_INFO { + LPSTR pszObjId; + CERT_LOGOTYPE_INFO LogotypeInfo; +} CERT_OTHER_LOGOTYPE_INFO, *PCERT_OTHER_LOGOTYPE_INFO; + + + + +typedef struct _CERT_LOGOTYPE_EXT_INFO { + DWORD cCommunityLogo; + PCERT_LOGOTYPE_INFO rgCommunityLogo; + PCERT_LOGOTYPE_INFO pIssuerLogo; + PCERT_LOGOTYPE_INFO pSubjectLogo; + DWORD cOtherLogo; + PCERT_OTHER_LOGOTYPE_INFO rgOtherLogo; +} CERT_LOGOTYPE_EXT_INFO, *PCERT_LOGOTYPE_EXT_INFO; +# 5562 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_BIOMETRIC_DATA { + DWORD dwTypeOfBiometricDataChoice; + union { + + DWORD dwPredefined; + + + LPSTR pszObjId; + } ; + + CERT_HASHED_URL HashedUrl; +} CERT_BIOMETRIC_DATA, *PCERT_BIOMETRIC_DATA; +# 5582 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_BIOMETRIC_EXT_INFO { + DWORD cBiometricData; + PCERT_BIOMETRIC_DATA rgBiometricData; +} CERT_BIOMETRIC_EXT_INFO, *PCERT_BIOMETRIC_EXT_INFO; +# 5602 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _OCSP_SIGNATURE_INFO { + CRYPT_ALGORITHM_IDENTIFIER SignatureAlgorithm; + CRYPT_BIT_BLOB Signature; + DWORD cCertEncoded; + PCERT_BLOB rgCertEncoded; +} OCSP_SIGNATURE_INFO, *POCSP_SIGNATURE_INFO; + +typedef struct _OCSP_SIGNED_REQUEST_INFO { + CRYPT_DER_BLOB ToBeSigned; + POCSP_SIGNATURE_INFO pOptionalSignatureInfo; +} OCSP_SIGNED_REQUEST_INFO, *POCSP_SIGNED_REQUEST_INFO; + + + + + + + +typedef struct _OCSP_CERT_ID { + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; + CRYPT_HASH_BLOB IssuerNameHash; + CRYPT_HASH_BLOB IssuerKeyHash; + CRYPT_INTEGER_BLOB SerialNumber; +} OCSP_CERT_ID, *POCSP_CERT_ID; + +typedef struct _OCSP_REQUEST_ENTRY { + OCSP_CERT_ID CertId; + DWORD cExtension; + PCERT_EXTENSION rgExtension; +} OCSP_REQUEST_ENTRY, *POCSP_REQUEST_ENTRY; + +typedef struct _OCSP_REQUEST_INFO { + DWORD dwVersion; + PCERT_ALT_NAME_ENTRY pRequestorName; + DWORD cRequestEntry; + POCSP_REQUEST_ENTRY rgRequestEntry; + DWORD cExtension; + PCERT_EXTENSION rgExtension; +} OCSP_REQUEST_INFO, *POCSP_REQUEST_INFO; +# 5649 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _OCSP_RESPONSE_INFO { + DWORD dwStatus; + LPSTR pszObjId; + CRYPT_OBJID_BLOB Value; +} OCSP_RESPONSE_INFO, *POCSP_RESPONSE_INFO; +# 5672 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _OCSP_BASIC_SIGNED_RESPONSE_INFO { + CRYPT_DER_BLOB ToBeSigned; + OCSP_SIGNATURE_INFO SignatureInfo; +} OCSP_BASIC_SIGNED_RESPONSE_INFO, *POCSP_BASIC_SIGNED_RESPONSE_INFO; + + + + + + + +typedef struct _OCSP_BASIC_REVOKED_INFO { + FILETIME RevocationDate; + + + DWORD dwCrlReasonCode; +} OCSP_BASIC_REVOKED_INFO, *POCSP_BASIC_REVOKED_INFO; + +typedef struct _OCSP_BASIC_RESPONSE_ENTRY { + OCSP_CERT_ID CertId; + DWORD dwCertStatus; + union { + + + + + + POCSP_BASIC_REVOKED_INFO pRevokedInfo; + + } ; + FILETIME ThisUpdate; + FILETIME NextUpdate; + + DWORD cExtension; + PCERT_EXTENSION rgExtension; +} OCSP_BASIC_RESPONSE_ENTRY, *POCSP_BASIC_RESPONSE_ENTRY; + + + + + + +typedef struct _OCSP_BASIC_RESPONSE_INFO { + DWORD dwVersion; + DWORD dwResponderIdChoice; + union { + + CERT_NAME_BLOB ByNameResponderId; + + CRYPT_HASH_BLOB ByKeyResponderId; + } ; + FILETIME ProducedAt; + DWORD cResponseEntry; + POCSP_BASIC_RESPONSE_ENTRY rgResponseEntry; + DWORD cExtension; + PCERT_EXTENSION rgExtension; +} OCSP_BASIC_RESPONSE_INFO, *POCSP_BASIC_RESPONSE_INFO; +# 5745 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_SUPPORTED_ALGORITHM_INFO { + CRYPT_ALGORITHM_IDENTIFIER Algorithm; + CRYPT_BIT_BLOB IntendedKeyUsage; + CERT_POLICIES_INFO IntendedCertPolicies; +} CERT_SUPPORTED_ALGORITHM_INFO, *PCERT_SUPPORTED_ALGORITHM_INFO; + + + + + + +typedef struct _CERT_TPM_SPECIFICATION_INFO { + LPWSTR pwszFamily; + DWORD dwLevel; + DWORD dwRevision; +} CERT_TPM_SPECIFICATION_INFO, *PCERT_TPM_SPECIFICATION_INFO; +# 5774 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef void *HCRYPTOIDFUNCSET; +typedef void *HCRYPTOIDFUNCADDR; +# 5851 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_OID_FUNC_ENTRY { + LPCSTR pszOID; + void *pvFuncAddr; +} CRYPT_OID_FUNC_ENTRY, *PCRYPT_OID_FUNC_ENTRY; +# 5873 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptInstallOIDFunctionAddress( + HMODULE hModule, + DWORD dwEncodingType, + LPCSTR pszFuncName, + DWORD cFuncEntry, + const CRYPT_OID_FUNC_ENTRY rgFuncEntry[], + DWORD dwFlags + ); + + + + + + + +__declspec(dllimport) +HCRYPTOIDFUNCSET +__stdcall +CryptInitOIDFunctionSet( + LPCSTR pszFuncName, + DWORD dwFlags + ); +# 5917 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CryptGetOIDFunctionAddress( + HCRYPTOIDFUNCSET hFuncSet, + DWORD dwEncodingType, + LPCSTR pszOID, + DWORD dwFlags, + void **ppvFuncAddr, + HCRYPTOIDFUNCADDR *phFuncAddr + ); +# 5940 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CryptGetDefaultOIDDllList( + HCRYPTOIDFUNCSET hFuncSet, + DWORD dwEncodingType, + WCHAR *pwszDllList, + DWORD *pcchDllList + ); +# 5974 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CryptGetDefaultOIDFunctionAddress( + HCRYPTOIDFUNCSET hFuncSet, + DWORD dwEncodingType, + LPCWSTR pwszDll, + DWORD dwFlags, + void **ppvFuncAddr, + HCRYPTOIDFUNCADDR *phFuncAddr + ); +# 6000 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptFreeOIDFunctionAddress( + HCRYPTOIDFUNCADDR hFuncAddr, + DWORD dwFlags + ); +# 6028 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptRegisterOIDFunction( + DWORD dwEncodingType, + LPCSTR pszFuncName, + LPCSTR pszOID, + LPCWSTR pwszDll, + LPCSTR pszOverrideFuncName + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptUnregisterOIDFunction( + DWORD dwEncodingType, + LPCSTR pszFuncName, + LPCSTR pszOID + ); +# 6066 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptRegisterDefaultOIDFunction( + DWORD dwEncodingType, + LPCSTR pszFuncName, + DWORD dwIndex, + LPCWSTR pwszDll + ); +# 6083 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptUnregisterDefaultOIDFunction( + DWORD dwEncodingType, + LPCSTR pszFuncName, + LPCWSTR pwszDll + ); +# 6100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptSetOIDFunctionValue( + DWORD dwEncodingType, + LPCSTR pszFuncName, + LPCSTR pszOID, + LPCWSTR pwszValueName, + DWORD dwValueType, + const BYTE *pbValueData, + DWORD cbValueData + ); +# 6128 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptGetOIDFunctionValue( + DWORD dwEncodingType, + LPCSTR pszFuncName, + LPCSTR pszOID, + LPCWSTR pwszValueName, + DWORD *pdwValueType, + BYTE *pbValueData, + DWORD *pcbValueData + ); + +typedef BOOL (__stdcall *PFN_CRYPT_ENUM_OID_FUNC)( + DWORD dwEncodingType, + LPCSTR pszFuncName, + LPCSTR pszOID, + DWORD cValue, + const DWORD rgdwValueType[], + LPCWSTR const rgpwszValueName[], + const BYTE * const rgpbValueData[], + const DWORD rgcbValueData[], + void *pvArg + ); +# 6166 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptEnumOIDFunction( + DWORD dwEncodingType, + LPCSTR pszFuncName, + LPCSTR pszOID, + DWORD dwFlags, + void *pvArg, + PFN_CRYPT_ENUM_OID_FUNC pfnEnumOIDFunc + ); +# 6212 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_OID_INFO { + DWORD cbSize; + LPCSTR pszOID; + LPCWSTR pwszName; + DWORD dwGroupId; + union { + DWORD dwValue; + ALG_ID Algid; + DWORD dwLength; + } ; + CRYPT_DATA_BLOB ExtraInfo; +# 6250 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +} CRYPT_OID_INFO, *PCRYPT_OID_INFO; +typedef const CRYPT_OID_INFO CCRYPT_OID_INFO, *PCCRYPT_OID_INFO; +# 6346 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCRYPT_OID_INFO +__stdcall +CryptFindOIDInfo( + DWORD dwKeyType, + void *pvKey, + DWORD dwGroupId + ); +# 6422 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptRegisterOIDInfo( + PCCRYPT_OID_INFO pInfo, + DWORD dwFlags + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptUnregisterOIDInfo( + PCCRYPT_OID_INFO pInfo + ); +# 6450 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CRYPT_ENUM_OID_INFO)( + PCCRYPT_OID_INFO pInfo, + void *pvArg + ); +# 6465 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptEnumOIDInfo( + DWORD dwGroupId, + DWORD dwFlags, + void *pvArg, + PFN_CRYPT_ENUM_OID_INFO pfnEnumOIDInfo + ); +# 6498 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +LPCWSTR +__stdcall +CryptFindLocalizedName( + LPCWSTR pwszCryptName + ); +# 6512 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_STRONG_SIGN_SERIALIZED_INFO { + DWORD dwFlags; + LPWSTR pwszCNGSignHashAlgids; + LPWSTR pwszCNGPubKeyMinBitLengths; +} CERT_STRONG_SIGN_SERIALIZED_INFO, *PCERT_STRONG_SIGN_SERIALIZED_INFO; +# 6540 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_STRONG_SIGN_PARA { + DWORD cbSize; + + DWORD dwInfoChoice; + union { + void *pvInfo; + + + PCERT_STRONG_SIGN_SERIALIZED_INFO pSerializedInfo; + + + LPSTR pszOID; + + } ; +} CERT_STRONG_SIGN_PARA, *PCERT_STRONG_SIGN_PARA; + +typedef const CERT_STRONG_SIGN_PARA *PCCERT_STRONG_SIGN_PARA; +# 6629 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef void *HCRYPTMSG; +# 6666 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_ISSUER_SERIAL_NUMBER { + CERT_NAME_BLOB Issuer; + CRYPT_INTEGER_BLOB SerialNumber; +} CERT_ISSUER_SERIAL_NUMBER, *PCERT_ISSUER_SERIAL_NUMBER; + + + + +typedef struct _CERT_ID { + DWORD dwIdChoice; + union { + + CERT_ISSUER_SERIAL_NUMBER IssuerSerialNumber; + + CRYPT_HASH_BLOB KeyId; + + CRYPT_HASH_BLOB HashId; + } ; +} CERT_ID, *PCERT_ID; +# 6738 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_SIGNER_ENCODE_INFO { + DWORD cbSize; + PCERT_INFO pCertInfo; + + + union { + HCRYPTPROV hCryptProv; + NCRYPT_KEY_HANDLE hNCryptKey; + + + + } ; + + + DWORD dwKeySpec; + + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; + void *pvHashAuxInfo; + DWORD cAuthAttr; + PCRYPT_ATTRIBUTE rgAuthAttr; + DWORD cUnauthAttr; + PCRYPT_ATTRIBUTE rgUnauthAttr; +# 6768 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +} CMSG_SIGNER_ENCODE_INFO, *PCMSG_SIGNER_ENCODE_INFO; + +typedef struct _CMSG_SIGNED_ENCODE_INFO { + DWORD cbSize; + DWORD cSigners; + PCMSG_SIGNER_ENCODE_INFO rgSigners; + DWORD cCertEncoded; + PCERT_BLOB rgCertEncoded; + DWORD cCrlEncoded; + PCRL_BLOB rgCrlEncoded; + + + + + +} CMSG_SIGNED_ENCODE_INFO, *PCMSG_SIGNED_ENCODE_INFO; +# 6828 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_RECIPIENT_ENCODE_INFO CMSG_RECIPIENT_ENCODE_INFO, + *PCMSG_RECIPIENT_ENCODE_INFO; + +typedef struct _CMSG_ENVELOPED_ENCODE_INFO { + DWORD cbSize; + HCRYPTPROV_LEGACY hCryptProv; + CRYPT_ALGORITHM_IDENTIFIER ContentEncryptionAlgorithm; + void *pvEncryptionAuxInfo; + DWORD cRecipients; + + + + + PCERT_INFO *rgpRecipients; +# 6856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +} CMSG_ENVELOPED_ENCODE_INFO, *PCMSG_ENVELOPED_ENCODE_INFO; +# 6879 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO { + DWORD cbSize; + CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; + void *pvKeyEncryptionAuxInfo; + HCRYPTPROV_LEGACY hCryptProv; + CRYPT_BIT_BLOB RecipientPublicKey; + CERT_ID RecipientId; +} CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO, *PCMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO; +# 6928 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO { + DWORD cbSize; + CRYPT_BIT_BLOB RecipientPublicKey; + CERT_ID RecipientId; + + + + FILETIME Date; + PCRYPT_ATTRIBUTE_TYPE_VALUE pOtherAttr; +} CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO, + *PCMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO; + +typedef struct _CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO { + DWORD cbSize; + CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; + void *pvKeyEncryptionAuxInfo; + CRYPT_ALGORITHM_IDENTIFIER KeyWrapAlgorithm; + void *pvKeyWrapAuxInfo; + + + + + + + + HCRYPTPROV_LEGACY hCryptProv; + DWORD dwKeySpec; + + DWORD dwKeyChoice; + union { + + + + PCRYPT_ALGORITHM_IDENTIFIER pEphemeralAlgorithm; + + + + + PCERT_ID pSenderId; + } ; + CRYPT_DATA_BLOB UserKeyingMaterial; + + DWORD cRecipientEncryptedKeys; + PCMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO *rgpRecipientEncryptedKeys; +} CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO, *PCMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO; +# 6996 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO { + DWORD cbSize; + CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; + void *pvKeyEncryptionAuxInfo; + HCRYPTPROV hCryptProv; + DWORD dwKeyChoice; + union { + + HCRYPTKEY hKeyEncryptionKey; + + void *pvKeyEncryptionKey; + } ; + CRYPT_DATA_BLOB KeyId; + + + FILETIME Date; + PCRYPT_ATTRIBUTE_TYPE_VALUE pOtherAttr; +} CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO, *PCMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO; +# 7022 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +struct _CMSG_RECIPIENT_ENCODE_INFO { + DWORD dwRecipientChoice; + union { + + PCMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO pKeyTrans; + + PCMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO pKeyAgree; + + PCMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO pMailList; + } ; +}; +# 7054 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_RC2_AUX_INFO { + DWORD cbSize; + DWORD dwBitLen; +} CMSG_RC2_AUX_INFO, *PCMSG_RC2_AUX_INFO; +# 7072 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_SP3_COMPATIBLE_AUX_INFO { + DWORD cbSize; + DWORD dwFlags; +} CMSG_SP3_COMPATIBLE_AUX_INFO, *PCMSG_SP3_COMPATIBLE_AUX_INFO; +# 7094 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_RC4_AUX_INFO { + DWORD cbSize; + DWORD dwBitLen; +} CMSG_RC4_AUX_INFO, *PCMSG_RC4_AUX_INFO; +# 7108 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO { + DWORD cbSize; + CMSG_SIGNED_ENCODE_INFO SignedInfo; + CMSG_ENVELOPED_ENCODE_INFO EnvelopedInfo; +} CMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO, *PCMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO; +# 7130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_HASHED_ENCODE_INFO { + DWORD cbSize; + HCRYPTPROV_LEGACY hCryptProv; + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; + void *pvHashAuxInfo; +} CMSG_HASHED_ENCODE_INFO, *PCMSG_HASHED_ENCODE_INFO; +# 7147 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_ENCRYPTED_ENCODE_INFO { + DWORD cbSize; + CRYPT_ALGORITHM_IDENTIFIER ContentEncryptionAlgorithm; + void *pvEncryptionAuxInfo; +} CMSG_ENCRYPTED_ENCODE_INFO, *PCMSG_ENCRYPTED_ENCODE_INFO; +# 7168 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CMSG_STREAM_OUTPUT)( + const void *pvArg, + BYTE *pbData, + DWORD cbData, + BOOL fFinal + ); + + + +typedef struct _CMSG_STREAM_INFO { + DWORD cbContent; + PFN_CMSG_STREAM_OUTPUT pfnStreamOutput; + void *pvArg; +} CMSG_STREAM_INFO, *PCMSG_STREAM_INFO; +# 7221 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +HCRYPTMSG +__stdcall +CryptMsgOpenToEncode( + DWORD dwMsgEncodingType, + DWORD dwFlags, + DWORD dwMsgType, + void const *pvMsgEncodeInfo, + LPSTR pszInnerContentObjID, + PCMSG_STREAM_INFO pStreamInfo + ); +# 7241 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +DWORD +__stdcall +CryptMsgCalculateEncodedLength( + DWORD dwMsgEncodingType, + DWORD dwFlags, + DWORD dwMsgType, + void const *pvMsgEncodeInfo, + LPSTR pszInnerContentObjID, + DWORD cbData + ); +# 7265 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +HCRYPTMSG +__stdcall +CryptMsgOpenToDecode( + DWORD dwMsgEncodingType, + DWORD dwFlags, + DWORD dwMsgType, + HCRYPTPROV_LEGACY hCryptProv, + PCERT_INFO pRecipientInfo, + PCMSG_STREAM_INFO pStreamInfo + ); + + + + +__declspec(dllimport) +HCRYPTMSG +__stdcall +CryptMsgDuplicate( + HCRYPTMSG hCryptMsg + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptMsgClose( + HCRYPTMSG hCryptMsg + ); +# 7308 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptMsgUpdate( + HCRYPTMSG hCryptMsg, + const BYTE *pbData, + DWORD cbData, + BOOL fFinal + ); +# 7342 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptMsgGetParam( + HCRYPTMSG hCryptMsg, + DWORD dwParamType, + DWORD dwIndex, + void *pvData, + DWORD *pcbData + ); +# 7477 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_SIGNER_INFO { + DWORD dwVersion; + CERT_NAME_BLOB Issuer; + CRYPT_INTEGER_BLOB SerialNumber; + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; + + + CRYPT_ALGORITHM_IDENTIFIER HashEncryptionAlgorithm; + + CRYPT_DATA_BLOB EncryptedHash; + CRYPT_ATTRIBUTES AuthAttrs; + CRYPT_ATTRIBUTES UnauthAttrs; +} CMSG_SIGNER_INFO, *PCMSG_SIGNER_INFO; +# 7512 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_CMS_SIGNER_INFO { + DWORD dwVersion; + CERT_ID SignerId; + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; + + + CRYPT_ALGORITHM_IDENTIFIER HashEncryptionAlgorithm; + + CRYPT_DATA_BLOB EncryptedHash; + CRYPT_ATTRIBUTES AuthAttrs; + CRYPT_ATTRIBUTES UnauthAttrs; +} CMSG_CMS_SIGNER_INFO, *PCMSG_CMS_SIGNER_INFO; +# 7545 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef CRYPT_ATTRIBUTES CMSG_ATTR; +typedef CRYPT_ATTRIBUTES *PCMSG_ATTR; +# 7786 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_KEY_TRANS_RECIPIENT_INFO { + DWORD dwVersion; + + + CERT_ID RecipientId; + + CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; + CRYPT_DATA_BLOB EncryptedKey; +} CMSG_KEY_TRANS_RECIPIENT_INFO, *PCMSG_KEY_TRANS_RECIPIENT_INFO; + +typedef struct _CMSG_RECIPIENT_ENCRYPTED_KEY_INFO { + + CERT_ID RecipientId; + + CRYPT_DATA_BLOB EncryptedKey; + + + FILETIME Date; + PCRYPT_ATTRIBUTE_TYPE_VALUE pOtherAttr; +} CMSG_RECIPIENT_ENCRYPTED_KEY_INFO, *PCMSG_RECIPIENT_ENCRYPTED_KEY_INFO; + +typedef struct _CMSG_KEY_AGREE_RECIPIENT_INFO { + DWORD dwVersion; + DWORD dwOriginatorChoice; + union { + + CERT_ID OriginatorCertId; + + CERT_PUBLIC_KEY_INFO OriginatorPublicKeyInfo; + } ; + CRYPT_DATA_BLOB UserKeyingMaterial; + CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; + + DWORD cRecipientEncryptedKeys; + PCMSG_RECIPIENT_ENCRYPTED_KEY_INFO *rgpRecipientEncryptedKeys; +} CMSG_KEY_AGREE_RECIPIENT_INFO, *PCMSG_KEY_AGREE_RECIPIENT_INFO; + + + + + +typedef struct _CMSG_MAIL_LIST_RECIPIENT_INFO { + DWORD dwVersion; + CRYPT_DATA_BLOB KeyId; + CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; + CRYPT_DATA_BLOB EncryptedKey; + + + FILETIME Date; + PCRYPT_ATTRIBUTE_TYPE_VALUE pOtherAttr; +} CMSG_MAIL_LIST_RECIPIENT_INFO, *PCMSG_MAIL_LIST_RECIPIENT_INFO; + +typedef struct _CMSG_CMS_RECIPIENT_INFO { + DWORD dwRecipientChoice; + union { + + PCMSG_KEY_TRANS_RECIPIENT_INFO pKeyTrans; + + PCMSG_KEY_AGREE_RECIPIENT_INFO pKeyAgree; + + PCMSG_MAIL_LIST_RECIPIENT_INFO pMailList; + } ; +} CMSG_CMS_RECIPIENT_INFO, *PCMSG_CMS_RECIPIENT_INFO; +# 7880 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptMsgControl( + HCRYPTMSG hCryptMsg, + DWORD dwFlags, + DWORD dwCtrlType, + void const *pvCtrlPara + ); +# 7959 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA { + DWORD cbSize; + HCRYPTPROV_LEGACY hCryptProv; + DWORD dwSignerIndex; + DWORD dwSignerType; + void *pvSigner; +} CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA, *PCMSG_CTRL_VERIFY_SIGNATURE_EX_PARA; +# 8012 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_CTRL_DECRYPT_PARA { + DWORD cbSize; + + + union { + HCRYPTPROV hCryptProv; + NCRYPT_KEY_HANDLE hNCryptKey; + } ; + + + DWORD dwKeySpec; + + DWORD dwRecipientIndex; +} CMSG_CTRL_DECRYPT_PARA, *PCMSG_CTRL_DECRYPT_PARA; +# 8052 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_CTRL_KEY_TRANS_DECRYPT_PARA { + DWORD cbSize; + + union { + HCRYPTPROV hCryptProv; + NCRYPT_KEY_HANDLE hNCryptKey; + } ; + + + DWORD dwKeySpec; + + PCMSG_KEY_TRANS_RECIPIENT_INFO pKeyTrans; + DWORD dwRecipientIndex; +} CMSG_CTRL_KEY_TRANS_DECRYPT_PARA, *PCMSG_CTRL_KEY_TRANS_DECRYPT_PARA; +# 8096 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_CTRL_KEY_AGREE_DECRYPT_PARA { + DWORD cbSize; + + + union { + HCRYPTPROV hCryptProv; + NCRYPT_KEY_HANDLE hNCryptKey; + } ; + + + DWORD dwKeySpec; + + PCMSG_KEY_AGREE_RECIPIENT_INFO pKeyAgree; + DWORD dwRecipientIndex; + DWORD dwRecipientEncryptedKeyIndex; + CRYPT_BIT_BLOB OriginatorPublicKey; +} CMSG_CTRL_KEY_AGREE_DECRYPT_PARA, *PCMSG_CTRL_KEY_AGREE_DECRYPT_PARA; +# 8140 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_CTRL_MAIL_LIST_DECRYPT_PARA { + DWORD cbSize; + HCRYPTPROV hCryptProv; + PCMSG_MAIL_LIST_RECIPIENT_INFO pMailList; + DWORD dwRecipientIndex; + DWORD dwKeyChoice; + union { + + HCRYPTKEY hKeyEncryptionKey; + + void *pvKeyEncryptionKey; + } ; +} CMSG_CTRL_MAIL_LIST_DECRYPT_PARA, *PCMSG_CTRL_MAIL_LIST_DECRYPT_PARA; +# 8202 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA { + DWORD cbSize; + DWORD dwSignerIndex; + CRYPT_DATA_BLOB blob; +} CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA, *PCMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA; +# 8218 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA { + DWORD cbSize; + DWORD dwSignerIndex; + DWORD dwUnauthAttrIndex; +} CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA, *PCMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA; +# 8288 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +BOOL +__stdcall +CryptMsgVerifyCountersignatureEncoded( + HCRYPTPROV_LEGACY hCryptProv, + DWORD dwEncodingType, + PBYTE pbSignerInfo, + DWORD cbSignerInfo, + PBYTE pbSignerInfoCountersignature, + DWORD cbSignerInfoCountersignature, + PCERT_INFO pciCountersigner + ); +# 8311 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +BOOL +__stdcall +CryptMsgVerifyCountersignatureEncodedEx( + HCRYPTPROV_LEGACY hCryptProv, + DWORD dwEncodingType, + PBYTE pbSignerInfo, + DWORD cbSignerInfo, + PBYTE pbSignerInfoCountersignature, + DWORD cbSignerInfoCountersignature, + DWORD dwSignerType, + void *pvSigner, + DWORD dwFlags, + void *pvExtra + ); +# 8337 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +BOOL +__stdcall +CryptMsgCountersign( + HCRYPTMSG hCryptMsg, + DWORD dwIndex, + DWORD cCountersigners, + PCMSG_SIGNER_ENCODE_INFO rgCountersigners + ); + + + + + + + +BOOL +__stdcall +CryptMsgCountersignEncoded( + DWORD dwEncodingType, + PBYTE pbSignerInfo, + DWORD cbSignerInfo, + DWORD cCountersigners, + PCMSG_SIGNER_ENCODE_INFO rgCountersigners, + PBYTE pbCountersignature, + PDWORD pcbCountersignature + ); + + + + + +typedef void * (__stdcall *PFN_CMSG_ALLOC) ( + size_t cb + ); + +typedef void (__stdcall *PFN_CMSG_FREE)( + void *pv + ); +# 8389 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CMSG_GEN_ENCRYPT_KEY) ( + HCRYPTPROV *phCryptProv, + PCRYPT_ALGORITHM_IDENTIFIER paiEncrypt, + PVOID pvEncryptAuxInfo, + PCERT_PUBLIC_KEY_INFO pPublicKeyInfo, + PFN_CMSG_ALLOC pfnAlloc, + HCRYPTKEY *phEncryptKey, + PBYTE *ppbEncryptParameters, + PDWORD pcbEncryptParameters + ); + + +typedef BOOL (__stdcall *PFN_CMSG_EXPORT_ENCRYPT_KEY) ( + HCRYPTPROV hCryptProv, + HCRYPTKEY hEncryptKey, + PCERT_PUBLIC_KEY_INFO pPublicKeyInfo, + PBYTE pbData, + PDWORD pcbData + ); + + +typedef BOOL (__stdcall *PFN_CMSG_IMPORT_ENCRYPT_KEY) ( + HCRYPTPROV hCryptProv, + DWORD dwKeySpec, + PCRYPT_ALGORITHM_IDENTIFIER paiEncrypt, + PCRYPT_ALGORITHM_IDENTIFIER paiPubKey, + PBYTE pbEncodedKey, + DWORD cbEncodedKey, + HCRYPTKEY *phEncryptKey + ); +# 8443 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_CONTENT_ENCRYPT_INFO { + DWORD cbSize; + HCRYPTPROV_LEGACY hCryptProv; + CRYPT_ALGORITHM_IDENTIFIER ContentEncryptionAlgorithm; + void *pvEncryptionAuxInfo; + DWORD cRecipients; + PCMSG_RECIPIENT_ENCODE_INFO rgCmsRecipients; + PFN_CMSG_ALLOC pfnAlloc; + PFN_CMSG_FREE pfnFree; + DWORD dwEncryptFlags; + union { + + HCRYPTKEY hContentEncryptKey; + + BCRYPT_KEY_HANDLE hCNGContentEncryptKey; + } ; + DWORD dwFlags; + + BOOL fCNG; + + BYTE *pbCNGContentEncryptKeyObject; + BYTE *pbContentEncryptKey; + DWORD cbContentEncryptKey; +} CMSG_CONTENT_ENCRYPT_INFO, *PCMSG_CONTENT_ENCRYPT_INFO; +# 8531 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CMSG_GEN_CONTENT_ENCRYPT_KEY) ( + PCMSG_CONTENT_ENCRYPT_INFO pContentEncryptInfo, + DWORD dwFlags, + void *pvReserved + ); +# 8548 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_KEY_TRANS_ENCRYPT_INFO { + DWORD cbSize; + DWORD dwRecipientIndex; + CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; + CRYPT_DATA_BLOB EncryptedKey; + DWORD dwFlags; +} CMSG_KEY_TRANS_ENCRYPT_INFO, *PCMSG_KEY_TRANS_ENCRYPT_INFO; +# 8589 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CMSG_EXPORT_KEY_TRANS) ( + PCMSG_CONTENT_ENCRYPT_INFO pContentEncryptInfo, + PCMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO pKeyTransEncodeInfo, + PCMSG_KEY_TRANS_ENCRYPT_INFO pKeyTransEncryptInfo, + DWORD dwFlags, + void *pvReserved + ); +# 8609 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_KEY_AGREE_KEY_ENCRYPT_INFO { + DWORD cbSize; + CRYPT_DATA_BLOB EncryptedKey; +} CMSG_KEY_AGREE_KEY_ENCRYPT_INFO, *PCMSG_KEY_AGREE_KEY_ENCRYPT_INFO; + + + + + + + +typedef struct _CMSG_KEY_AGREE_ENCRYPT_INFO { + DWORD cbSize; + DWORD dwRecipientIndex; + CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; + CRYPT_DATA_BLOB UserKeyingMaterial; + DWORD dwOriginatorChoice; + union { + + CERT_ID OriginatorCertId; + + CERT_PUBLIC_KEY_INFO OriginatorPublicKeyInfo; + } ; + DWORD cKeyAgreeKeyEncryptInfo; + PCMSG_KEY_AGREE_KEY_ENCRYPT_INFO *rgpKeyAgreeKeyEncryptInfo; + DWORD dwFlags; +} CMSG_KEY_AGREE_ENCRYPT_INFO, *PCMSG_KEY_AGREE_ENCRYPT_INFO; +# 8696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CMSG_EXPORT_KEY_AGREE) ( + PCMSG_CONTENT_ENCRYPT_INFO pContentEncryptInfo, + PCMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO pKeyAgreeEncodeInfo, + PCMSG_KEY_AGREE_ENCRYPT_INFO pKeyAgreeEncryptInfo, + DWORD dwFlags, + void *pvReserved + ); +# 8715 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_MAIL_LIST_ENCRYPT_INFO { + DWORD cbSize; + DWORD dwRecipientIndex; + CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; + CRYPT_DATA_BLOB EncryptedKey; + DWORD dwFlags; +} CMSG_MAIL_LIST_ENCRYPT_INFO, *PCMSG_MAIL_LIST_ENCRYPT_INFO; +# 8757 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CMSG_EXPORT_MAIL_LIST) ( + PCMSG_CONTENT_ENCRYPT_INFO pContentEncryptInfo, + PCMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO pMailListEncodeInfo, + PCMSG_MAIL_LIST_ENCRYPT_INFO pMailListEncryptInfo, + DWORD dwFlags, + void *pvReserved + ); +# 8786 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CMSG_IMPORT_KEY_TRANS) ( + PCRYPT_ALGORITHM_IDENTIFIER pContentEncryptionAlgorithm, + PCMSG_CTRL_KEY_TRANS_DECRYPT_PARA pKeyTransDecryptPara, + DWORD dwFlags, + void *pvReserved, + HCRYPTKEY *phContentEncryptKey + ); + + + +typedef BOOL (__stdcall *PFN_CMSG_IMPORT_KEY_AGREE) ( + PCRYPT_ALGORITHM_IDENTIFIER pContentEncryptionAlgorithm, + PCMSG_CTRL_KEY_AGREE_DECRYPT_PARA pKeyAgreeDecryptPara, + DWORD dwFlags, + void *pvReserved, + HCRYPTKEY *phContentEncryptKey + ); + + + +typedef BOOL (__stdcall *PFN_CMSG_IMPORT_MAIL_LIST) ( + PCRYPT_ALGORITHM_IDENTIFIER pContentEncryptionAlgorithm, + PCMSG_CTRL_MAIL_LIST_DECRYPT_PARA pMailListDecryptPara, + DWORD dwFlags, + void *pvReserved, + HCRYPTKEY *phContentEncryptKey + ); +# 8824 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CMSG_CNG_CONTENT_DECRYPT_INFO { + DWORD cbSize; + CRYPT_ALGORITHM_IDENTIFIER ContentEncryptionAlgorithm; + PFN_CMSG_ALLOC pfnAlloc; + PFN_CMSG_FREE pfnFree; + + + + + NCRYPT_KEY_HANDLE hNCryptKey; + + BYTE *pbContentEncryptKey; + DWORD cbContentEncryptKey; + + BCRYPT_KEY_HANDLE hCNGContentEncryptKey; + BYTE *pbCNGContentEncryptKeyObject; +} CMSG_CNG_CONTENT_DECRYPT_INFO, *PCMSG_CNG_CONTENT_DECRYPT_INFO; +# 8860 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CMSG_CNG_IMPORT_KEY_TRANS) ( + PCMSG_CNG_CONTENT_DECRYPT_INFO pCNGContentDecryptInfo, + PCMSG_CTRL_KEY_TRANS_DECRYPT_PARA pKeyTransDecryptPara, + DWORD dwFlags, + void *pvReserved + ); +# 8885 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CMSG_CNG_IMPORT_KEY_AGREE) ( + PCMSG_CNG_CONTENT_DECRYPT_INFO pCNGContentDecryptInfo, + PCMSG_CTRL_KEY_AGREE_DECRYPT_PARA pKeyAgreeDecryptPara, + DWORD dwFlags, + void *pvReserved + ); +# 8910 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CMSG_CNG_IMPORT_CONTENT_ENCRYPT_KEY) ( + PCMSG_CNG_CONTENT_DECRYPT_INFO pCNGContentDecryptInfo, + DWORD dwFlags, + void *pvReserved + ); +# 8990 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef void *HCERTSTORE; +# 9002 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_CONTEXT { + DWORD dwCertEncodingType; + BYTE *pbCertEncoded; + DWORD cbCertEncoded; + PCERT_INFO pCertInfo; + HCERTSTORE hCertStore; +} CERT_CONTEXT, *PCERT_CONTEXT; +typedef const CERT_CONTEXT *PCCERT_CONTEXT; +# 9021 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRL_CONTEXT { + DWORD dwCertEncodingType; + BYTE *pbCrlEncoded; + DWORD cbCrlEncoded; + PCRL_INFO pCrlInfo; + HCERTSTORE hCertStore; +} CRL_CONTEXT, *PCRL_CONTEXT; +typedef const CRL_CONTEXT *PCCRL_CONTEXT; +# 9040 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CTL_CONTEXT { + DWORD dwMsgAndCertEncodingType; + BYTE *pbCtlEncoded; + DWORD cbCtlEncoded; + PCTL_INFO pCtlInfo; + HCERTSTORE hCertStore; + HCRYPTMSG hCryptMsg; + BYTE *pbCtlContent; + DWORD cbCtlContent; +} CTL_CONTEXT, *PCTL_CONTEXT; +typedef const CTL_CONTEXT *PCCTL_CONTEXT; +# 9207 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef enum CertKeyType +{ + KeyTypeOther = 0, + KeyTypeVirtualSmartCard = 1, + KeyTypePhysicalSmartCard = 2, + KeyTypePassport = 3, + KeyTypePassportRemote = 4, + KeyTypePassportSmartCard = 5, + KeyTypeHardware = 6, + KeyTypeSoftware = 7, + KeyTypeSelfSigned = 8, +} CertKeyType; +# 9331 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_KEY_PROV_PARAM { + DWORD dwParam; + BYTE *pbData; + DWORD cbData; + DWORD dwFlags; +} CRYPT_KEY_PROV_PARAM, *PCRYPT_KEY_PROV_PARAM; + +typedef struct _CRYPT_KEY_PROV_INFO { + LPWSTR pwszContainerName; + LPWSTR pwszProvName; + DWORD dwProvType; + DWORD dwFlags; + DWORD cProvParam; + PCRYPT_KEY_PROV_PARAM rgProvParam; + DWORD dwKeySpec; +} CRYPT_KEY_PROV_INFO, *PCRYPT_KEY_PROV_INFO; +# 9371 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_KEY_CONTEXT { + DWORD cbSize; + union { + HCRYPTPROV hCryptProv; + + + NCRYPT_KEY_HANDLE hNCryptKey; + } ; + DWORD dwKeySpec; +} CERT_KEY_CONTEXT, *PCERT_KEY_CONTEXT; + + + + + + + +typedef struct _ROOT_INFO_LUID { + DWORD LowPart; + LONG HighPart; +} ROOT_INFO_LUID, *PROOT_INFO_LUID; + +typedef struct _CRYPT_SMART_CARD_ROOT_INFO { + BYTE rgbCardID [16]; + ROOT_INFO_LUID luid; +} CRYPT_SMART_CARD_ROOT_INFO, *PCRYPT_SMART_CARD_ROOT_INFO; +# 9497 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_SYSTEM_STORE_RELOCATE_PARA { + union { + HKEY hKeyBase; + void *pvBase; + } ; + union { + void *pvSystemStore; + LPCSTR pszSystemStore; + LPCWSTR pwszSystemStore; + } ; +} CERT_SYSTEM_STORE_RELOCATE_PARA, *PCERT_SYSTEM_STORE_RELOCATE_PARA; +# 9921 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_REGISTRY_STORE_CLIENT_GPT_PARA { + HKEY hKeyBase; + LPWSTR pwszRegPath; +} CERT_REGISTRY_STORE_CLIENT_GPT_PARA, *PCERT_REGISTRY_STORE_CLIENT_GPT_PARA; +# 9934 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_REGISTRY_STORE_ROAMING_PARA { + HKEY hKey; + LPWSTR pwszStoreDirectory; +} CERT_REGISTRY_STORE_ROAMING_PARA, *PCERT_REGISTRY_STORE_ROAMING_PARA; +# 10016 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_LDAP_STORE_OPENED_PARA { + void *pvLdapSessionHandle; + + LPCWSTR pwszLdapUrl; +} CERT_LDAP_STORE_OPENED_PARA, *PCERT_LDAP_STORE_OPENED_PARA; +# 10384 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +HCERTSTORE +__stdcall +CertOpenStore( + LPCSTR lpszStoreProvider, + DWORD dwEncodingType, + HCRYPTPROV_LEGACY hCryptProv, + DWORD dwFlags, + const void *pvPara + ); + + + + + + +typedef void *HCERTSTOREPROV; +# 10412 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_STORE_PROV_INFO { + DWORD cbSize; + DWORD cStoreProvFunc; + void **rgpvStoreProvFunc; + HCERTSTOREPROV hStoreProv; + DWORD dwStoreProvFlags; + HCRYPTOIDFUNCADDR hStoreProvFuncAddr2; +} CERT_STORE_PROV_INFO, *PCERT_STORE_PROV_INFO; +# 10428 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CERT_DLL_OPEN_STORE_PROV_FUNC)( + LPCSTR lpszStoreProvider, + DWORD dwEncodingType, + HCRYPTPROV_LEGACY hCryptProv, + DWORD dwFlags, + const void *pvPara, + HCERTSTORE hCertStore, + PCERT_STORE_PROV_INFO pStoreProvInfo + ); +# 10498 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef void (__stdcall *PFN_CERT_STORE_PROV_CLOSE)( + HCERTSTOREPROV hStoreProv, + DWORD dwFlags + ); + + + + + + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_READ_CERT)( + HCERTSTOREPROV hStoreProv, + PCCERT_CONTEXT pStoreCertContext, + DWORD dwFlags, + PCCERT_CONTEXT *ppProvCertContext + ); +# 10524 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_WRITE_CERT)( + HCERTSTOREPROV hStoreProv, + PCCERT_CONTEXT pCertContext, + DWORD dwFlags + ); + + + + + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_DELETE_CERT)( + HCERTSTOREPROV hStoreProv, + PCCERT_CONTEXT pCertContext, + DWORD dwFlags + ); +# 10548 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_SET_CERT_PROPERTY)( + HCERTSTOREPROV hStoreProv, + PCCERT_CONTEXT pCertContext, + DWORD dwPropId, + DWORD dwFlags, + const void *pvData + ); + + + + + + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_READ_CRL)( + HCERTSTOREPROV hStoreProv, + PCCRL_CONTEXT pStoreCrlContext, + DWORD dwFlags, + PCCRL_CONTEXT *ppProvCrlContext + ); +# 10575 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_WRITE_CRL)( + HCERTSTOREPROV hStoreProv, + PCCRL_CONTEXT pCrlContext, + DWORD dwFlags + ); + + + + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_DELETE_CRL)( + HCERTSTOREPROV hStoreProv, + PCCRL_CONTEXT pCrlContext, + DWORD dwFlags + ); +# 10598 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_SET_CRL_PROPERTY)( + HCERTSTOREPROV hStoreProv, + PCCRL_CONTEXT pCrlContext, + DWORD dwPropId, + DWORD dwFlags, + const void *pvData + ); + + + + + + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_READ_CTL)( + HCERTSTOREPROV hStoreProv, + PCCTL_CONTEXT pStoreCtlContext, + DWORD dwFlags, + PCCTL_CONTEXT *ppProvCtlContext + ); +# 10625 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_WRITE_CTL)( + HCERTSTOREPROV hStoreProv, + PCCTL_CONTEXT pCtlContext, + DWORD dwFlags + ); + + + + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_DELETE_CTL)( + HCERTSTOREPROV hStoreProv, + PCCTL_CONTEXT pCtlContext, + DWORD dwFlags + ); +# 10648 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_SET_CTL_PROPERTY)( + HCERTSTOREPROV hStoreProv, + PCCTL_CONTEXT pCtlContext, + DWORD dwPropId, + DWORD dwFlags, + const void *pvData + ); + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_CONTROL)( + HCERTSTOREPROV hStoreProv, + DWORD dwFlags, + DWORD dwCtrlType, + void const *pvCtrlPara + ); + +typedef struct _CERT_STORE_PROV_FIND_INFO { + DWORD cbSize; + DWORD dwMsgAndCertEncodingType; + DWORD dwFindFlags; + DWORD dwFindType; + const void *pvFindPara; +} CERT_STORE_PROV_FIND_INFO, *PCERT_STORE_PROV_FIND_INFO; +typedef const CERT_STORE_PROV_FIND_INFO CCERT_STORE_PROV_FIND_INFO, +*PCCERT_STORE_PROV_FIND_INFO; + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_FIND_CERT)( + HCERTSTOREPROV hStoreProv, + PCCERT_STORE_PROV_FIND_INFO pFindInfo, + PCCERT_CONTEXT pPrevCertContext, + DWORD dwFlags, + void **ppvStoreProvFindInfo, + PCCERT_CONTEXT *ppProvCertContext + ); + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_FREE_FIND_CERT)( + HCERTSTOREPROV hStoreProv, + PCCERT_CONTEXT pCertContext, + void *pvStoreProvFindInfo, + DWORD dwFlags + ); + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_GET_CERT_PROPERTY)( + HCERTSTOREPROV hStoreProv, + PCCERT_CONTEXT pCertContext, + DWORD dwPropId, + DWORD dwFlags, + void *pvData, + DWORD *pcbData + ); + + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_FIND_CRL)( + HCERTSTOREPROV hStoreProv, + PCCERT_STORE_PROV_FIND_INFO pFindInfo, + PCCRL_CONTEXT pPrevCrlContext, + DWORD dwFlags, + void **ppvStoreProvFindInfo, + PCCRL_CONTEXT *ppProvCrlContext + ); + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_FREE_FIND_CRL)( + HCERTSTOREPROV hStoreProv, + PCCRL_CONTEXT pCrlContext, + void *pvStoreProvFindInfo, + DWORD dwFlags + ); + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_GET_CRL_PROPERTY)( + HCERTSTOREPROV hStoreProv, + PCCRL_CONTEXT pCrlContext, + DWORD dwPropId, + DWORD dwFlags, + void *pvData, + DWORD *pcbData + ); + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_FIND_CTL)( + HCERTSTOREPROV hStoreProv, + PCCERT_STORE_PROV_FIND_INFO pFindInfo, + PCCTL_CONTEXT pPrevCtlContext, + DWORD dwFlags, + void **ppvStoreProvFindInfo, + PCCTL_CONTEXT *ppProvCtlContext + ); + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_FREE_FIND_CTL)( + HCERTSTOREPROV hStoreProv, + PCCTL_CONTEXT pCtlContext, + void *pvStoreProvFindInfo, + DWORD dwFlags + ); + +typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_GET_CTL_PROPERTY)( + HCERTSTOREPROV hStoreProv, + PCCTL_CONTEXT pCtlContext, + DWORD dwPropId, + DWORD dwFlags, + void *pvData, + DWORD *pcbData + ); + + + + + +__declspec(dllimport) +HCERTSTORE +__stdcall +CertDuplicateStore( + HCERTSTORE hCertStore + ); +# 10822 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertSaveStore( + HCERTSTORE hCertStore, + DWORD dwEncodingType, + DWORD dwSaveAs, + DWORD dwSaveTo, + void *pvSaveToPara, + DWORD dwFlags + ); +# 10864 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertCloseStore( + HCERTSTORE hCertStore, + DWORD dwFlags + ); +# 10884 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCERT_CONTEXT +__stdcall +CertGetSubjectCertificateFromStore( + HCERTSTORE hCertStore, + DWORD dwCertEncodingType, + PCERT_INFO pCertId + + ); +# 10910 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCERT_CONTEXT +__stdcall +CertEnumCertificatesInStore( + HCERTSTORE hCertStore, + PCCERT_CONTEXT pPrevCertContext + ); +# 10942 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCERT_CONTEXT +__stdcall +CertFindCertificateInStore( + HCERTSTORE hCertStore, + DWORD dwCertEncodingType, + DWORD dwFindFlags, + DWORD dwFindType, + const void *pvFindPara, + PCCERT_CONTEXT pPrevCertContext + ); +# 11303 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCERT_CONTEXT +__stdcall +CertGetIssuerCertificateFromStore( + HCERTSTORE hCertStore, + PCCERT_CONTEXT pSubjectContext, + PCCERT_CONTEXT pPrevIssuerContext, + DWORD *pdwFlags + ); +# 11323 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertVerifySubjectCertificateContext( + PCCERT_CONTEXT pSubject, + PCCERT_CONTEXT pIssuer, + DWORD *pdwFlags + ); + + + + +__declspec(dllimport) +PCCERT_CONTEXT +__stdcall +CertDuplicateCertificateContext( + PCCERT_CONTEXT pCertContext + ); +# 11356 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCERT_CONTEXT +__stdcall +CertCreateCertificateContext( + DWORD dwCertEncodingType, + const BYTE *pbCertEncoded, + DWORD cbCertEncoded + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CertFreeCertificateContext( + PCCERT_CONTEXT pCertContext + ); +# 11519 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertSetCertificateContextProperty( + PCCERT_CONTEXT pCertContext, + DWORD dwPropId, + DWORD dwFlags, + const void *pvData + ); +# 11596 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertGetCertificateContextProperty( + PCCERT_CONTEXT pCertContext, + DWORD dwPropId, + void *pvData, + DWORD *pcbData + ); +# 11620 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +DWORD +__stdcall +CertEnumCertificateContextProperties( + PCCERT_CONTEXT pCertContext, + DWORD dwPropId + ); +# 11650 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CertCreateCTLEntryFromCertificateContextProperties( + PCCERT_CONTEXT pCertContext, + DWORD cOptAttr, + PCRYPT_ATTRIBUTE rgOptAttr, + DWORD dwFlags, + void *pvReserved, + PCTL_ENTRY pCtlEntry, + DWORD *pcbCtlEntry + ); +# 11679 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertSetCertificateContextPropertiesFromCTLEntry( + PCCERT_CONTEXT pCertContext, + PCTL_ENTRY pCtlEntry, + DWORD dwFlags + ); +# 11746 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCRL_CONTEXT +__stdcall +CertGetCRLFromStore( + HCERTSTORE hCertStore, + PCCERT_CONTEXT pIssuerContext, + PCCRL_CONTEXT pPrevCrlContext, + DWORD *pdwFlags + ); +# 11772 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCRL_CONTEXT +__stdcall +CertEnumCRLsInStore( + HCERTSTORE hCertStore, + PCCRL_CONTEXT pPrevCrlContext + ); +# 11803 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCRL_CONTEXT +__stdcall +CertFindCRLInStore( + HCERTSTORE hCertStore, + DWORD dwCertEncodingType, + DWORD dwFindFlags, + DWORD dwFindType, + const void *pvFindPara, + PCCRL_CONTEXT pPrevCrlContext + ); +# 11889 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRL_FIND_ISSUED_FOR_PARA { + PCCERT_CONTEXT pSubjectCert; + PCCERT_CONTEXT pIssuerCert; +} CRL_FIND_ISSUED_FOR_PARA, *PCRL_FIND_ISSUED_FOR_PARA; +# 11907 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCRL_CONTEXT +__stdcall +CertDuplicateCRLContext( + PCCRL_CONTEXT pCrlContext + ); +# 11928 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCRL_CONTEXT +__stdcall +CertCreateCRLContext( + DWORD dwCertEncodingType, + const BYTE *pbCrlEncoded, + DWORD cbCrlEncoded + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CertFreeCRLContext( + PCCRL_CONTEXT pCrlContext + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CertSetCRLContextProperty( + PCCRL_CONTEXT pCrlContext, + DWORD dwPropId, + DWORD dwFlags, + const void *pvData + ); +# 11973 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertGetCRLContextProperty( + PCCRL_CONTEXT pCrlContext, + DWORD dwPropId, + void *pvData, + DWORD *pcbData + ); +# 11993 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +DWORD +__stdcall +CertEnumCRLContextProperties( + PCCRL_CONTEXT pCrlContext, + DWORD dwPropId + ); +# 12014 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertFindCertificateInCRL( + PCCERT_CONTEXT pCert, + PCCRL_CONTEXT pCrlContext, + DWORD dwFlags, + void *pvReserved, + PCRL_ENTRY *ppCrlEntry + ); +# 12037 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertIsValidCRLForCertificate( + PCCERT_CONTEXT pCert, + PCCRL_CONTEXT pCrl, + DWORD dwFlags, + void *pvReserved + ); +# 12105 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CertAddEncodedCertificateToStore( + HCERTSTORE hCertStore, + DWORD dwCertEncodingType, + const BYTE *pbCertEncoded, + DWORD cbCertEncoded, + DWORD dwAddDisposition, + PCCERT_CONTEXT *ppCertContext + ); +# 12175 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CertAddCertificateContextToStore( + HCERTSTORE hCertStore, + PCCERT_CONTEXT pCertContext, + DWORD dwAddDisposition, + PCCERT_CONTEXT *ppStoreContext + ); +# 12229 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CertAddSerializedElementToStore( + HCERTSTORE hCertStore, + const BYTE *pbElement, + DWORD cbElement, + DWORD dwAddDisposition, + DWORD dwFlags, + DWORD dwContextTypeFlags, + DWORD *pdwContextType, + const void **ppvContext + ); +# 12259 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertDeleteCertificateFromStore( + PCCERT_CONTEXT pCertContext + ); +# 12282 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CertAddEncodedCRLToStore( + HCERTSTORE hCertStore, + DWORD dwCertEncodingType, + const BYTE *pbCrlEncoded, + DWORD cbCrlEncoded, + DWORD dwAddDisposition, + PCCRL_CONTEXT *ppCrlContext + ); +# 12315 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CertAddCRLContextToStore( + HCERTSTORE hCertStore, + PCCRL_CONTEXT pCrlContext, + DWORD dwAddDisposition, + PCCRL_CONTEXT *ppStoreContext + ); +# 12338 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertDeleteCRLFromStore( + PCCRL_CONTEXT pCrlContext + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +CertSerializeCertificateStoreElement( + PCCERT_CONTEXT pCertContext, + DWORD dwFlags, + BYTE *pbElement, + DWORD *pcbElement + ); + + + + + +__declspec(dllimport) +BOOL +__stdcall +CertSerializeCRLStoreElement( + PCCRL_CONTEXT pCrlContext, + DWORD dwFlags, + BYTE *pbElement, + DWORD *pcbElement + ); +# 12382 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCTL_CONTEXT +__stdcall +CertDuplicateCTLContext( + PCCTL_CONTEXT pCtlContext + ); +# 12403 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCTL_CONTEXT +__stdcall +CertCreateCTLContext( + DWORD dwMsgAndCertEncodingType, + const BYTE *pbCtlEncoded, + DWORD cbCtlEncoded + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CertFreeCTLContext( + PCCTL_CONTEXT pCtlContext + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CertSetCTLContextProperty( + PCCTL_CONTEXT pCtlContext, + DWORD dwPropId, + DWORD dwFlags, + const void *pvData + ); +# 12448 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertGetCTLContextProperty( + PCCTL_CONTEXT pCtlContext, + DWORD dwPropId, + void *pvData, + DWORD *pcbData + ); + + + + +__declspec(dllimport) +DWORD +__stdcall +CertEnumCTLContextProperties( + PCCTL_CONTEXT pCtlContext, + DWORD dwPropId + ); +# 12485 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCTL_CONTEXT +__stdcall +CertEnumCTLsInStore( + HCERTSTORE hCertStore, + PCCTL_CONTEXT pPrevCtlContext + ); +# 12511 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCTL_ENTRY +__stdcall +CertFindSubjectInCTL( + DWORD dwEncodingType, + DWORD dwSubjectType, + void *pvSubject, + PCCTL_CONTEXT pCtlContext, + DWORD dwFlags + ); + + + + + + + +typedef struct _CTL_ANY_SUBJECT_INFO { + CRYPT_ALGORITHM_IDENTIFIER SubjectAlgorithm; + CRYPT_DATA_BLOB SubjectIdentifier; +} CTL_ANY_SUBJECT_INFO, *PCTL_ANY_SUBJECT_INFO; +# 12556 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCTL_CONTEXT +__stdcall +CertFindCTLInStore( + HCERTSTORE hCertStore, + DWORD dwMsgAndCertEncodingType, + DWORD dwFindFlags, + DWORD dwFindType, + const void *pvFindPara, + PCCTL_CONTEXT pPrevCtlContext + ); +# 12575 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CTL_FIND_USAGE_PARA { + DWORD cbSize; + CTL_USAGE SubjectUsage; + CRYPT_DATA_BLOB ListIdentifier; + PCERT_INFO pSigner; +} CTL_FIND_USAGE_PARA, *PCTL_FIND_USAGE_PARA; + + + + + + + +typedef struct _CTL_FIND_SUBJECT_PARA { + DWORD cbSize; + PCTL_FIND_USAGE_PARA pUsagePara; + DWORD dwSubjectType; + void *pvSubject; +} CTL_FIND_SUBJECT_PARA, *PCTL_FIND_SUBJECT_PARA; +# 12661 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CertAddEncodedCTLToStore( + HCERTSTORE hCertStore, + DWORD dwMsgAndCertEncodingType, + const BYTE *pbCtlEncoded, + DWORD cbCtlEncoded, + DWORD dwAddDisposition, + PCCTL_CONTEXT *ppCtlContext + ); +# 12694 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CertAddCTLContextToStore( + HCERTSTORE hCertStore, + PCCTL_CONTEXT pCtlContext, + DWORD dwAddDisposition, + PCCTL_CONTEXT *ppStoreContext + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +CertSerializeCTLStoreElement( + PCCTL_CONTEXT pCtlContext, + DWORD dwFlags, + BYTE *pbElement, + DWORD *pcbElement + ); +# 12730 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertDeleteCTLFromStore( + PCCTL_CONTEXT pCtlContext + ); + + +__declspec(dllimport) + +BOOL +__stdcall +CertAddCertificateLinkToStore( + HCERTSTORE hCertStore, + PCCERT_CONTEXT pCertContext, + DWORD dwAddDisposition, + PCCERT_CONTEXT *ppStoreContext + ); + +__declspec(dllimport) + +BOOL +__stdcall +CertAddCRLLinkToStore( + HCERTSTORE hCertStore, + PCCRL_CONTEXT pCrlContext, + DWORD dwAddDisposition, + PCCRL_CONTEXT *ppStoreContext + ); + +__declspec(dllimport) + +BOOL +__stdcall +CertAddCTLLinkToStore( + HCERTSTORE hCertStore, + PCCTL_CONTEXT pCtlContext, + DWORD dwAddDisposition, + PCCTL_CONTEXT *ppStoreContext + ); + +__declspec(dllimport) +BOOL +__stdcall +CertAddStoreToCollection( + HCERTSTORE hCollectionStore, + HCERTSTORE hSiblingStore, + DWORD dwUpdateFlags, + DWORD dwPriority + ); + +__declspec(dllimport) +void +__stdcall +CertRemoveStoreFromCollection( + HCERTSTORE hCollectionStore, + HCERTSTORE hSiblingStore + ); + + +__declspec(dllimport) +BOOL +__stdcall +CertControlStore( + HCERTSTORE hCertStore, + DWORD dwFlags, + DWORD dwCtrlType, + void const *pvCtrlPara + ); +# 12926 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertSetStoreProperty( + HCERTSTORE hCertStore, + DWORD dwPropId, + DWORD dwFlags, + const void *pvData + ); +# 12949 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CertGetStoreProperty( + HCERTSTORE hCertStore, + DWORD dwPropId, + void *pvData, + DWORD *pcbData + ); +# 12971 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CERT_CREATE_CONTEXT_SORT_FUNC)( + DWORD cbTotalEncoded, + DWORD cbRemainEncoded, + DWORD cEntry, + void *pvSort + ); + +typedef struct _CERT_CREATE_CONTEXT_PARA { + DWORD cbSize; + PFN_CRYPT_FREE pfnFree; + void *pvFree; + + + + PFN_CERT_CREATE_CONTEXT_SORT_FUNC pfnSort; + void *pvSort; +} CERT_CREATE_CONTEXT_PARA, *PCERT_CREATE_CONTEXT_PARA; +# 13022 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +const void * +__stdcall +CertCreateContext( + DWORD dwContextType, + DWORD dwEncodingType, + const BYTE *pbEncoded, + DWORD cbEncoded, + DWORD dwFlags, + PCERT_CREATE_CONTEXT_PARA pCreatePara + ); +# 13082 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_SYSTEM_STORE_INFO { + DWORD cbSize; +} CERT_SYSTEM_STORE_INFO, *PCERT_SYSTEM_STORE_INFO; +# 13128 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_PHYSICAL_STORE_INFO { + DWORD cbSize; + LPSTR pszOpenStoreProvider; + DWORD dwOpenEncodingType; + DWORD dwOpenFlags; + CRYPT_DATA_BLOB OpenParameters; + DWORD dwFlags; + DWORD dwPriority; +} CERT_PHYSICAL_STORE_INFO, *PCERT_PHYSICAL_STORE_INFO; +# 13180 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertRegisterSystemStore( + const void *pvSystemStore, + DWORD dwFlags, + PCERT_SYSTEM_STORE_INFO pStoreInfo, + void *pvReserved + ); +# 13206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertRegisterPhysicalStore( + const void *pvSystemStore, + DWORD dwFlags, + LPCWSTR pwszStoreName, + PCERT_PHYSICAL_STORE_INFO pStoreInfo, + void *pvReserved + ); +# 13232 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertUnregisterSystemStore( + const void *pvSystemStore, + DWORD dwFlags + ); +# 13255 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertUnregisterPhysicalStore( + const void *pvSystemStore, + DWORD dwFlags, + LPCWSTR pwszStoreName + ); +# 13287 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CERT_ENUM_SYSTEM_STORE_LOCATION)( + LPCWSTR pwszStoreLocation, + DWORD dwFlags, + void *pvReserved, + void *pvArg + ); + +typedef BOOL (__stdcall *PFN_CERT_ENUM_SYSTEM_STORE)( + const void *pvSystemStore, + DWORD dwFlags, + PCERT_SYSTEM_STORE_INFO pStoreInfo, + void *pvReserved, + void *pvArg + ); + +typedef BOOL (__stdcall *PFN_CERT_ENUM_PHYSICAL_STORE)( + const void *pvSystemStore, + DWORD dwFlags, + LPCWSTR pwszStoreName, + PCERT_PHYSICAL_STORE_INFO pStoreInfo, + void *pvReserved, + void *pvArg + ); +# 13330 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertEnumSystemStoreLocation( + DWORD dwFlags, + void *pvArg, + PFN_CERT_ENUM_SYSTEM_STORE_LOCATION pfnEnum + ); +# 13370 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertEnumSystemStore( + DWORD dwFlags, + void *pvSystemStoreLocationPara, + void *pvArg, + PFN_CERT_ENUM_SYSTEM_STORE pfnEnum + ); +# 13396 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertEnumPhysicalStore( + const void *pvSystemStore, + DWORD dwFlags, + void *pvArg, + PFN_CERT_ENUM_PHYSICAL_STORE pfnEnum + ); +# 13458 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertGetEnhancedKeyUsage( + PCCERT_CONTEXT pCertContext, + DWORD dwFlags, + PCERT_ENHKEY_USAGE pUsage, + DWORD *pcbUsage + ); +# 13477 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertSetEnhancedKeyUsage( + PCCERT_CONTEXT pCertContext, + PCERT_ENHKEY_USAGE pUsage + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +CertAddEnhancedKeyUsageIdentifier( + PCCERT_CONTEXT pCertContext, + LPCSTR pszUsageIdentifier + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CertRemoveEnhancedKeyUsageIdentifier( + PCCERT_CONTEXT pCertContext, + LPCSTR pszUsageIdentifier + ); +# 13523 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CertGetValidUsages( + DWORD cCerts, + PCCERT_CONTEXT *rghCerts, + int *cNumOIDs, + LPSTR *rghOIDs, + DWORD *pcbOIDs); +# 13563 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CryptMsgGetAndVerifySigner( + HCRYPTMSG hCryptMsg, + DWORD cSignerStore, + HCERTSTORE *rghSignerStore, + DWORD dwFlags, + PCCERT_CONTEXT *ppSigner, + DWORD *pdwSignerIndex + ); +# 13595 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptMsgSignCTL( + DWORD dwMsgEncodingType, + BYTE *pbCtlContent, + DWORD cbCtlContent, + PCMSG_SIGNED_ENCODE_INFO pSignInfo, + DWORD dwFlags, + BYTE *pbEncoded, + DWORD *pcbEncoded + ); +# 13624 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptMsgEncodeAndSignCTL( + DWORD dwMsgEncodingType, + PCTL_INFO pCtlInfo, + PCMSG_SIGNED_ENCODE_INFO pSignInfo, + DWORD dwFlags, + BYTE *pbEncoded, + DWORD *pcbEncoded + ); +# 13651 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertFindSubjectInSortedCTL( + PCRYPT_DATA_BLOB pSubjectIdentifier, + PCCTL_CONTEXT pCtlContext, + DWORD dwFlags, + void *pvReserved, + PCRYPT_DER_BLOB pEncodedAttributes + ); +# 13675 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertEnumSubjectInSortedCTL( + PCCTL_CONTEXT pCtlContext, + void **ppvNextSubject, + PCRYPT_DER_BLOB pSubjectIdentifier, + PCRYPT_DER_BLOB pEncodedAttributes + ); +# 13696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CTL_VERIFY_USAGE_PARA { + DWORD cbSize; + CRYPT_DATA_BLOB ListIdentifier; + DWORD cCtlStore; + HCERTSTORE *rghCtlStore; + DWORD cSignerStore; + HCERTSTORE *rghSignerStore; +} CTL_VERIFY_USAGE_PARA, *PCTL_VERIFY_USAGE_PARA; + +typedef struct _CTL_VERIFY_USAGE_STATUS { + DWORD cbSize; + DWORD dwError; + DWORD dwFlags; + PCCTL_CONTEXT *ppCtl; + DWORD dwCtlEntryIndex; + PCCERT_CONTEXT *ppSigner; + DWORD dwSignerIndex; +} CTL_VERIFY_USAGE_STATUS, *PCTL_VERIFY_USAGE_STATUS; +# 13777 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertVerifyCTLUsage( + DWORD dwEncodingType, + DWORD dwSubjectType, + void *pvSubject, + PCTL_USAGE pSubjectUsage, + DWORD dwFlags, + PCTL_VERIFY_USAGE_PARA pVerifyUsagePara, + PCTL_VERIFY_USAGE_STATUS pVerifyUsageStatus + ); +# 13805 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_REVOCATION_CRL_INFO { + DWORD cbSize; + PCCRL_CONTEXT pBaseCrlContext; + PCCRL_CONTEXT pDeltaCrlContext; + + + + PCRL_ENTRY pCrlEntry; + BOOL fDeltaCrlEntry; +} CERT_REVOCATION_CRL_INFO, *PCERT_REVOCATION_CRL_INFO; +# 13825 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_REVOCATION_CHAIN_PARA + CERT_REVOCATION_CHAIN_PARA, + *PCERT_REVOCATION_CHAIN_PARA; +# 13846 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_REVOCATION_PARA { + DWORD cbSize; + PCCERT_CONTEXT pIssuerCert; + DWORD cCertStore; + HCERTSTORE *rgCertStore; + HCERTSTORE hCrlStore; + LPFILETIME pftTimeToUse; +# 13889 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +} CERT_REVOCATION_PARA, *PCERT_REVOCATION_PARA; +# 13907 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_REVOCATION_STATUS { + DWORD cbSize; + DWORD dwIndex; + DWORD dwError; + DWORD dwReason; +# 13921 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 + BOOL fHasFreshnessTime; + DWORD dwFreshnessTime; +} CERT_REVOCATION_STATUS, *PCERT_REVOCATION_STATUS; +# 14008 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertVerifyRevocation( + DWORD dwEncodingType, + DWORD dwRevType, + DWORD cContext, + PVOID rgpvContext[], + DWORD dwFlags, + PCERT_REVOCATION_PARA pRevPara, + PCERT_REVOCATION_STATUS pRevStatus + ); +# 14096 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +BOOL +__stdcall +CertCompareIntegerBlob( + PCRYPT_INTEGER_BLOB pInt1, + PCRYPT_INTEGER_BLOB pInt2 + ); +# 14111 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertCompareCertificate( + DWORD dwCertEncodingType, + PCERT_INFO pCertId1, + PCERT_INFO pCertId2 + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CertCompareCertificateName( + DWORD dwCertEncodingType, + PCERT_NAME_BLOB pCertName1, + PCERT_NAME_BLOB pCertName2 + ); +# 14158 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertIsRDNAttrsInCertificateName( + DWORD dwCertEncodingType, + DWORD dwFlags, + PCERT_NAME_BLOB pCertName, + PCERT_RDN pRDN + ); +# 14176 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertComparePublicKeyInfo( + DWORD dwCertEncodingType, + PCERT_PUBLIC_KEY_INFO pPublicKey1, + PCERT_PUBLIC_KEY_INFO pPublicKey2 + ); +# 14196 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +DWORD +__stdcall +CertGetPublicKeyLength( + DWORD dwCertEncodingType, + PCERT_PUBLIC_KEY_INFO pPublicKey + ); +# 14219 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CryptVerifyCertificateSignature( + HCRYPTPROV_LEGACY hCryptProv, + DWORD dwCertEncodingType, + const BYTE *pbEncoded, + DWORD cbEncoded, + PCERT_PUBLIC_KEY_INFO pPublicKey + ); +# 14256 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CryptVerifyCertificateSignatureEx( + HCRYPTPROV_LEGACY hCryptProv, + DWORD dwCertEncodingType, + DWORD dwSubjectType, + void *pvSubject, + DWORD dwIssuerType, + void *pvIssuer, + DWORD dwFlags, + void *pvExtra + ); +# 14336 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO { + + CRYPT_DATA_BLOB CertSignHashCNGAlgPropData; + + + CRYPT_DATA_BLOB CertIssuerPubKeyBitLengthPropData; +} CRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO, + *PCRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO; + + +typedef struct _CRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO { + DWORD cCNGHashAlgid; + PCWSTR *rgpwszCNGHashAlgid; + + + + DWORD dwWeakIndex; +} CRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO, + *PCRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO; +# 14378 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertIsStrongHashToSign( + PCCERT_STRONG_SIGN_PARA pStrongSignPara, + LPCWSTR pwszCNGHashAlgid, + PCCERT_CONTEXT pSigningCert + ); +# 14394 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptHashToBeSigned( + HCRYPTPROV_LEGACY hCryptProv, + DWORD dwCertEncodingType, + const BYTE *pbEncoded, + DWORD cbEncoded, + BYTE *pbComputedHash, + DWORD *pcbComputedHash + ); +# 14415 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptHashCertificate( + HCRYPTPROV_LEGACY hCryptProv, + ALG_ID Algid, + DWORD dwFlags, + const BYTE *pbEncoded, + DWORD cbEncoded, + BYTE *pbComputedHash, + DWORD *pcbComputedHash + ); +# 14439 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CryptHashCertificate2( + LPCWSTR pwszCNGHashAlgid, + DWORD dwFlags, + void *pvReserved, + const BYTE *pbEncoded, + DWORD cbEncoded, + BYTE *pbComputedHash, + DWORD *pcbComputedHash + ); +# 14472 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptSignCertificate( + + + + HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProvOrNCryptKey, + + DWORD dwKeySpec, + DWORD dwCertEncodingType, + const BYTE *pbEncodedToBeSigned, + DWORD cbEncodedToBeSigned, + PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, + const void *pvHashAuxInfo, + BYTE *pbSignature, + DWORD *pcbSignature + ); +# 14503 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptSignAndEncodeCertificate( + + + + HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProvOrNCryptKey, + + DWORD dwKeySpec, + DWORD dwCertEncodingType, + LPCSTR lpszStructType, + const void *pvStructInfo, + PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, + const void *pvHashAuxInfo, + BYTE *pbEncoded, + DWORD *pcbEncoded + ); +# 14547 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CRYPT_EXTRACT_ENCODED_SIGNATURE_PARAMETERS_FUNC)( + DWORD dwCertEncodingType, + PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, + void **ppvDecodedSignPara, + LPWSTR *ppwszCNGHashAlgid + ); + + + + +typedef BOOL (__stdcall *PFN_CRYPT_SIGN_AND_ENCODE_HASH_FUNC)( + NCRYPT_KEY_HANDLE hKey, + DWORD dwCertEncodingType, + PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, + void *pvDecodedSignPara, + LPCWSTR pwszCNGPubKeyAlgid, + LPCWSTR pwszCNGHashAlgid, + BYTE *pbComputedHash, + DWORD cbComputedHash, + BYTE *pbSignature, + DWORD *pcbSignature + ); + + + + + +typedef BOOL (__stdcall *PFN_CRYPT_VERIFY_ENCODED_SIGNATURE_FUNC)( + DWORD dwCertEncodingType, + PCERT_PUBLIC_KEY_INFO pPubKeyInfo, + PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, + void *pvDecodedSignPara, + LPCWSTR pwszCNGPubKeyAlgid, + LPCWSTR pwszCNGHashAlgid, + BYTE *pbComputedHash, + DWORD cbComputedHash, + BYTE *pbSignature, + DWORD cbSignature + ); +# 14596 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +LONG +__stdcall +CertVerifyTimeValidity( + LPFILETIME pTimeToVerify, + PCERT_INFO pCertInfo + ); +# 14618 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +LONG +__stdcall +CertVerifyCRLTimeValidity( + LPFILETIME pTimeToVerify, + PCRL_INFO pCrlInfo + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CertVerifyValidityNesting( + PCERT_INFO pSubjectInfo, + PCERT_INFO pIssuerInfo + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CertVerifyCRLRevocation( + DWORD dwCertEncodingType, + PCERT_INFO pCertId, + + DWORD cCrlInfo, + PCRL_INFO rgpCrlInfo[] + ); + + + + + + +__declspec(dllimport) +LPCSTR +__stdcall +CertAlgIdToOID( + DWORD dwAlgId + ); + + + + + + +__declspec(dllimport) +DWORD +__stdcall +CertOIDToAlgId( + LPCSTR pszObjId + ); +# 14691 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCERT_EXTENSION +__stdcall +CertFindExtension( + LPCSTR pszObjId, + DWORD cExtensions, + CERT_EXTENSION rgExtensions[] + ); + + + + + + +__declspec(dllimport) +PCRYPT_ATTRIBUTE +__stdcall +CertFindAttribute( + LPCSTR pszObjId, + DWORD cAttr, + CRYPT_ATTRIBUTE rgAttr[] + ); + + + + + + + +__declspec(dllimport) +PCERT_RDN_ATTR +__stdcall +CertFindRDNAttr( + LPCSTR pszObjId, + PCERT_NAME_INFO pName + ); +# 14736 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertGetIntendedKeyUsage( + DWORD dwCertEncodingType, + PCERT_INFO pCertInfo, + BYTE *pbKeyUsage, + DWORD cbKeyUsage + ); + +typedef void *HCRYPTDEFAULTCONTEXT; +# 14781 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptInstallDefaultContext( + HCRYPTPROV hCryptProv, + DWORD dwDefaultType, + const void *pvDefaultPara, + DWORD dwFlags, + void *pvReserved, + HCRYPTDEFAULTCONTEXT *phDefaultContext + ); +# 14821 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA { + DWORD cOID; + LPSTR *rgpszOID; +} CRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA, *PCRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA; +# 14834 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptUninstallDefaultContext( + HCRYPTDEFAULTCONTEXT hDefaultContext, + DWORD dwFlags, + void *pvReserved + ); +# 14850 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptExportPublicKeyInfo( + HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProvOrNCryptKey, + DWORD dwKeySpec, + DWORD dwCertEncodingType, + PCERT_PUBLIC_KEY_INFO pInfo, + DWORD *pcbInfo + ); +# 14885 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptExportPublicKeyInfoEx( + HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProvOrNCryptKey, + DWORD dwKeySpec, + DWORD dwCertEncodingType, + LPSTR pszPublicKeyObjId, + DWORD dwFlags, + void *pvAuxInfo, + PCERT_PUBLIC_KEY_INFO pInfo, + DWORD *pcbInfo + ); +# 14908 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CRYPT_EXPORT_PUBLIC_KEY_INFO_EX2_FUNC) ( + NCRYPT_KEY_HANDLE hNCryptKey, + DWORD dwCertEncodingType, + LPSTR pszPublicKeyObjId, + DWORD dwFlags, + void *pvAuxInfo, + PCERT_PUBLIC_KEY_INFO pInfo, + DWORD *pcbInfo + ); +# 14940 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptExportPublicKeyInfoFromBCryptKeyHandle( + BCRYPT_KEY_HANDLE hBCryptKey, + DWORD dwCertEncodingType, + LPSTR pszPublicKeyObjId, + DWORD dwFlags, + void *pvAuxInfo, + PCERT_PUBLIC_KEY_INFO pInfo, + DWORD *pcbInfo + ); +# 14960 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CRYPT_EXPORT_PUBLIC_KEY_INFO_FROM_BCRYPT_HANDLE_FUNC) ( + BCRYPT_KEY_HANDLE hBCryptKey, + DWORD dwCertEncodingType, + LPSTR pszPublicKeyObjId, + DWORD dwFlags, + void *pvAuxInfo, + PCERT_PUBLIC_KEY_INFO pInfo, + DWORD *pcbInfo + ); +# 14979 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptImportPublicKeyInfo( + HCRYPTPROV hCryptProv, + DWORD dwCertEncodingType, + PCERT_PUBLIC_KEY_INFO pInfo, + HCRYPTKEY *phKey + ); +# 15005 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptImportPublicKeyInfoEx( + HCRYPTPROV hCryptProv, + DWORD dwCertEncodingType, + PCERT_PUBLIC_KEY_INFO pInfo, + ALG_ID aiKeyAlg, + DWORD dwFlags, + void *pvAuxInfo, + HCRYPTKEY *phKey + ); +# 15041 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptImportPublicKeyInfoEx2( + DWORD dwCertEncodingType, + PCERT_PUBLIC_KEY_INFO pInfo, + DWORD dwFlags, + void *pvAuxInfo, + BCRYPT_KEY_HANDLE *phKey + ); + + + + + + +typedef BOOL (__stdcall *PFN_IMPORT_PUBLIC_KEY_INFO_EX2_FUNC) ( + DWORD dwCertEncodingType, + PCERT_PUBLIC_KEY_INFO pInfo, + DWORD dwFlags, + void *pvAuxInfo, + BCRYPT_KEY_HANDLE *phKey + ); +# 15157 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptAcquireCertificatePrivateKey( + PCCERT_CONTEXT pCert, + DWORD dwFlags, + void *pvParameters, + HCRYPTPROV_OR_NCRYPT_KEY_HANDLE *phCryptProvOrNCryptKey, + DWORD *pdwKeySpec, + BOOL *pfCallerFreeProvOrNCryptKey + ); +# 15211 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptFindCertificateKeyProvInfo( + PCCERT_CONTEXT pCert, + DWORD dwFlags, + void *pvReserved + ); +# 15239 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_IMPORT_PRIV_KEY_FUNC) ( + HCRYPTPROV hCryptProv, + CRYPT_PRIVATE_KEY_INFO* pPrivateKeyInfo, + DWORD dwFlags, + void* pvAuxInfo + ); +# 15266 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptImportPKCS8( + CRYPT_PKCS8_IMPORT_PARAMS sPrivateKeyAndParams, + DWORD dwFlags, + HCRYPTPROV *phCryptProv, + void* pvAuxInfo + ); + + + + +typedef BOOL (__stdcall *PFN_EXPORT_PRIV_KEY_FUNC) ( + HCRYPTPROV hCryptProv, + DWORD dwKeySpec, + LPSTR pszPrivateKeyObjId, + DWORD dwFlags, + void* pvAuxInfo, + CRYPT_PRIVATE_KEY_INFO* pPrivateKeyInfo, + DWORD* pcbPrivateKeyInfo + ); +# 15297 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptExportPKCS8( + HCRYPTPROV hCryptProv, + DWORD dwKeySpec, + LPSTR pszPrivateKeyObjId, + DWORD dwFlags, + void* pvAuxInfo, + BYTE* pbPrivateKeyBlob, + DWORD *pcbPrivateKeyBlob + ); +# 15338 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptExportPKCS8Ex( + CRYPT_PKCS8_EXPORT_PARAMS* psExportParams, + DWORD dwFlags, + void* pvAuxInfo, + BYTE* pbPrivateKeyBlob, + DWORD* pcbPrivateKeyBlob + ); +# 15360 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptHashPublicKeyInfo( + HCRYPTPROV_LEGACY hCryptProv, + ALG_ID Algid, + DWORD dwFlags, + DWORD dwCertEncodingType, + PCERT_PUBLIC_KEY_INFO pInfo, + BYTE *pbComputedHash, + DWORD *pcbComputedHash + ); +# 15384 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +DWORD +__stdcall +CertRDNValueToStrA( + DWORD dwValueType, + PCERT_RDN_VALUE_BLOB pValue, + LPSTR psz, + DWORD csz + ); +# 15404 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +DWORD +__stdcall +CertRDNValueToStrW( + DWORD dwValueType, + PCERT_RDN_VALUE_BLOB pValue, + LPWSTR psz, + DWORD csz + ); +# 15516 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +DWORD +__stdcall +CertNameToStrA( + DWORD dwCertEncodingType, + PCERT_NAME_BLOB pName, + DWORD dwStrType, + LPSTR psz, + DWORD csz + ); +__declspec(dllimport) +DWORD +__stdcall +CertNameToStrW( + DWORD dwCertEncodingType, + PCERT_NAME_BLOB pName, + DWORD dwStrType, + LPWSTR psz, + DWORD csz + ); +# 15682 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertStrToNameA( + DWORD dwCertEncodingType, + LPCSTR pszX500, + DWORD dwStrType, + void *pvReserved, + BYTE *pbEncoded, + DWORD *pcbEncoded, + LPCSTR *ppszError + ); + + +__declspec(dllimport) +BOOL +__stdcall +CertStrToNameW( + DWORD dwCertEncodingType, + LPCWSTR pszX500, + DWORD dwStrType, + void *pvReserved, + BYTE *pbEncoded, + DWORD *pcbEncoded, + LPCWSTR *ppszError + ); +# 15807 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +DWORD +__stdcall +CertGetNameStringA( + PCCERT_CONTEXT pCertContext, + DWORD dwType, + DWORD dwFlags, + void *pvTypePara, + LPSTR pszNameString, + DWORD cchNameString + ); + + +__declspec(dllimport) +DWORD +__stdcall +CertGetNameStringW( + PCCERT_CONTEXT pCertContext, + DWORD dwType, + DWORD dwFlags, + void *pvTypePara, + LPWSTR pszNameString, + DWORD cchNameString + ); +# 15915 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef PCCERT_CONTEXT (__stdcall *PFN_CRYPT_GET_SIGNER_CERTIFICATE)( + void *pvGetArg, + DWORD dwCertEncodingType, + PCERT_INFO pSignerId, + + HCERTSTORE hMsgCertStore + ); +# 15974 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_SIGN_MESSAGE_PARA { + DWORD cbSize; + DWORD dwMsgEncodingType; + PCCERT_CONTEXT pSigningCert; + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; + void *pvHashAuxInfo; + DWORD cMsgCert; + PCCERT_CONTEXT *rgpMsgCert; + DWORD cMsgCrl; + PCCRL_CONTEXT *rgpMsgCrl; + DWORD cAuthAttr; + PCRYPT_ATTRIBUTE rgAuthAttr; + DWORD cUnauthAttr; + PCRYPT_ATTRIBUTE rgUnauthAttr; + DWORD dwFlags; + DWORD dwInnerContentType; + + + + + + +} CRYPT_SIGN_MESSAGE_PARA, *PCRYPT_SIGN_MESSAGE_PARA; +# 16026 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_VERIFY_MESSAGE_PARA { + DWORD cbSize; + DWORD dwMsgAndCertEncodingType; + HCRYPTPROV_LEGACY hCryptProv; + PFN_CRYPT_GET_SIGNER_CERTIFICATE pfnGetSignerCertificate; + void *pvGetArg; +# 16045 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +} CRYPT_VERIFY_MESSAGE_PARA, *PCRYPT_VERIFY_MESSAGE_PARA; +# 16086 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_ENCRYPT_MESSAGE_PARA { + DWORD cbSize; + DWORD dwMsgEncodingType; + HCRYPTPROV_LEGACY hCryptProv; + CRYPT_ALGORITHM_IDENTIFIER ContentEncryptionAlgorithm; + void *pvEncryptionAuxInfo; + DWORD dwFlags; + DWORD dwInnerContentType; +} CRYPT_ENCRYPT_MESSAGE_PARA, *PCRYPT_ENCRYPT_MESSAGE_PARA; +# 16120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_DECRYPT_MESSAGE_PARA { + DWORD cbSize; + DWORD dwMsgAndCertEncodingType; + DWORD cCertStore; + HCERTSTORE *rghCertStore; +# 16134 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +} CRYPT_DECRYPT_MESSAGE_PARA, *PCRYPT_DECRYPT_MESSAGE_PARA; +# 16147 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_HASH_MESSAGE_PARA { + DWORD cbSize; + DWORD dwMsgEncodingType; + HCRYPTPROV_LEGACY hCryptProv; + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; + void *pvHashAuxInfo; +} CRYPT_HASH_MESSAGE_PARA, *PCRYPT_HASH_MESSAGE_PARA; +# 16167 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_KEY_SIGN_MESSAGE_PARA { + DWORD cbSize; + DWORD dwMsgAndCertEncodingType; + + + union { + HCRYPTPROV hCryptProv; + NCRYPT_KEY_HANDLE hNCryptKey; + } ; + + + DWORD dwKeySpec; + + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; + void *pvHashAuxInfo; + + CRYPT_ALGORITHM_IDENTIFIER PubKeyAlgorithm; +} CRYPT_KEY_SIGN_MESSAGE_PARA, *PCRYPT_KEY_SIGN_MESSAGE_PARA; +# 16197 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_KEY_VERIFY_MESSAGE_PARA { + DWORD cbSize; + DWORD dwMsgEncodingType; + HCRYPTPROV_LEGACY hCryptProv; +} CRYPT_KEY_VERIFY_MESSAGE_PARA, *PCRYPT_KEY_VERIFY_MESSAGE_PARA; +# 16215 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptSignMessage( + PCRYPT_SIGN_MESSAGE_PARA pSignPara, + BOOL fDetachedSignature, + DWORD cToBeSigned, + const BYTE *rgpbToBeSigned[], + DWORD rgcbToBeSigned[], + BYTE *pbSignedBlob, + DWORD *pcbSignedBlob + ); +# 16264 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptVerifyMessageSignature( + PCRYPT_VERIFY_MESSAGE_PARA pVerifyPara, + DWORD dwSignerIndex, + const BYTE *pbSignedBlob, + DWORD cbSignedBlob, + BYTE *pbDecoded, + DWORD *pcbDecoded, + PCCERT_CONTEXT *ppSignerCert + ); + + + + + +__declspec(dllimport) +LONG +__stdcall +CryptGetMessageSignerCount( + DWORD dwMsgEncodingType, + const BYTE *pbSignedBlob, + DWORD cbSignedBlob + ); + + + + + +__declspec(dllimport) +HCERTSTORE +__stdcall +CryptGetMessageCertificates( + DWORD dwMsgAndCertEncodingType, + HCRYPTPROV_LEGACY hCryptProv, + DWORD dwFlags, + const BYTE *pbSignedBlob, + DWORD cbSignedBlob + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptVerifyDetachedMessageSignature( + PCRYPT_VERIFY_MESSAGE_PARA pVerifyPara, + DWORD dwSignerIndex, + const BYTE *pbDetachedSignBlob, + DWORD cbDetachedSignBlob, + DWORD cToBeSigned, + const BYTE *rgpbToBeSigned[], + DWORD rgcbToBeSigned[], + PCCERT_CONTEXT *ppSignerCert + ); + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptEncryptMessage( + PCRYPT_ENCRYPT_MESSAGE_PARA pEncryptPara, + DWORD cRecipientCert, + PCCERT_CONTEXT rgpRecipientCert[], + const BYTE *pbToBeEncrypted, + DWORD cbToBeEncrypted, + BYTE *pbEncryptedBlob, + DWORD *pcbEncryptedBlob + ); +# 16354 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptDecryptMessage( + PCRYPT_DECRYPT_MESSAGE_PARA pDecryptPara, + const BYTE *pbEncryptedBlob, + DWORD cbEncryptedBlob, + BYTE *pbDecrypted, + DWORD *pcbDecrypted, + PCCERT_CONTEXT *ppXchgCert + ); +# 16373 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptSignAndEncryptMessage( + PCRYPT_SIGN_MESSAGE_PARA pSignPara, + PCRYPT_ENCRYPT_MESSAGE_PARA pEncryptPara, + DWORD cRecipientCert, + PCCERT_CONTEXT rgpRecipientCert[], + const BYTE *pbToBeSignedAndEncrypted, + DWORD cbToBeSignedAndEncrypted, + BYTE *pbSignedAndEncryptedBlob, + DWORD *pcbSignedAndEncryptedBlob + ); +# 16414 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptDecryptAndVerifyMessageSignature( + PCRYPT_DECRYPT_MESSAGE_PARA pDecryptPara, + PCRYPT_VERIFY_MESSAGE_PARA pVerifyPara, + DWORD dwSignerIndex, + const BYTE *pbEncryptedBlob, + DWORD cbEncryptedBlob, + BYTE *pbDecrypted, + DWORD *pcbDecrypted, + PCCERT_CONTEXT *ppXchgCert, + PCCERT_CONTEXT *ppSignerCert + ); +# 16461 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptDecodeMessage( + DWORD dwMsgTypeFlags, + PCRYPT_DECRYPT_MESSAGE_PARA pDecryptPara, + PCRYPT_VERIFY_MESSAGE_PARA pVerifyPara, + DWORD dwSignerIndex, + const BYTE *pbEncodedBlob, + DWORD cbEncodedBlob, + DWORD dwPrevInnerContentType, + DWORD *pdwMsgType, + DWORD *pdwInnerContentType, + BYTE *pbDecoded, + DWORD *pcbDecoded, + PCCERT_CONTEXT *ppXchgCert, + PCCERT_CONTEXT *ppSignerCert + ); +# 16490 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptHashMessage( + PCRYPT_HASH_MESSAGE_PARA pHashPara, + BOOL fDetachedHash, + DWORD cToBeHashed, + const BYTE *rgpbToBeHashed[], + DWORD rgcbToBeHashed[], + BYTE *pbHashedBlob, + DWORD *pcbHashedBlob, + BYTE *pbComputedHash, + DWORD *pcbComputedHash + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptVerifyMessageHash( + PCRYPT_HASH_MESSAGE_PARA pHashPara, + BYTE *pbHashedBlob, + DWORD cbHashedBlob, + BYTE *pbToBeHashed, + DWORD *pcbToBeHashed, + BYTE *pbComputedHash, + DWORD *pcbComputedHash + ); +# 16532 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptVerifyDetachedMessageHash( + PCRYPT_HASH_MESSAGE_PARA pHashPara, + BYTE *pbDetachedHashBlob, + DWORD cbDetachedHashBlob, + DWORD cToBeHashed, + const BYTE *rgpbToBeHashed[], + DWORD rgcbToBeHashed[], + BYTE *pbComputedHash, + DWORD *pcbComputedHash + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptSignMessageWithKey( + PCRYPT_KEY_SIGN_MESSAGE_PARA pSignPara, + const BYTE *pbToBeSigned, + DWORD cbToBeSigned, + BYTE *pbSignedBlob, + DWORD *pcbSignedBlob + ); +# 16576 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptVerifyMessageSignatureWithKey( + PCRYPT_KEY_VERIFY_MESSAGE_PARA pVerifyPara, + PCERT_PUBLIC_KEY_INFO pPublicKeyInfo, + const BYTE *pbSignedBlob, + DWORD cbSignedBlob, + BYTE *pbDecoded, + DWORD *pcbDecoded + ); +# 16620 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +HCERTSTORE +__stdcall +CertOpenSystemStoreA( + HCRYPTPROV_LEGACY hProv, + LPCSTR szSubsystemProtocol + ); +__declspec(dllimport) +HCERTSTORE +__stdcall +CertOpenSystemStoreW( + HCRYPTPROV_LEGACY hProv, + LPCWSTR szSubsystemProtocol + ); +# 16646 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertAddEncodedCertificateToSystemStoreA( + LPCSTR szCertStoreName, + const BYTE * pbCertEncoded, + DWORD cbCertEncoded + ); +__declspec(dllimport) +BOOL +__stdcall +CertAddEncodedCertificateToSystemStoreW( + LPCWSTR szCertStoreName, + const BYTE * pbCertEncoded, + DWORD cbCertEncoded + ); +# 16685 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_CHAIN { + DWORD cCerts; + PCERT_BLOB certs; + + CRYPT_KEY_PROV_INFO keyLocatorInfo; +} CERT_CHAIN, *PCERT_CHAIN; + + + +HRESULT +__stdcall +FindCertsByIssuer( + PCERT_CHAIN pCertChains, + DWORD *pcbCertChains, + DWORD *pcCertChains, + BYTE* pbEncodedIssuerName, + DWORD cbEncodedIssuerName, + LPCWSTR pwszPurpose, + DWORD dwKeySpec + + ); +# 16843 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptQueryObject( + DWORD dwObjectType, + const void *pvObject, + DWORD dwExpectedContentTypeFlags, + DWORD dwExpectedFormatTypeFlags, + DWORD dwFlags, + DWORD *pdwMsgAndCertEncodingType, + DWORD *pdwContentType, + DWORD *pdwFormatType, + HCERTSTORE *phCertStore, + HCRYPTMSG *phMsg, + const void **ppvContext + ); +# 17030 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +LPVOID +__stdcall +CryptMemAlloc ( + ULONG cbSize + ); + +__declspec(dllimport) +LPVOID +__stdcall +CryptMemRealloc ( + LPVOID pv, + ULONG cbSize + ); + +__declspec(dllimport) +void +__stdcall +CryptMemFree ( + LPVOID pv + ); +# 17062 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef HANDLE HCRYPTASYNC, *PHCRYPTASYNC; + +typedef void (__stdcall *PFN_CRYPT_ASYNC_PARAM_FREE_FUNC) ( + LPSTR pszParamOid, + LPVOID pvParam + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptCreateAsyncHandle ( + DWORD dwFlags, + PHCRYPTASYNC phAsync + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptSetAsyncParam ( + HCRYPTASYNC hAsync, + LPSTR pszParamOid, + LPVOID pvParam, + PFN_CRYPT_ASYNC_PARAM_FREE_FUNC pfnFree + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptGetAsyncParam ( + HCRYPTASYNC hAsync, + LPSTR pszParamOid, + LPVOID* ppvParam, + PFN_CRYPT_ASYNC_PARAM_FREE_FUNC* ppfnFree + ); + +__declspec(dllimport) +BOOL +__stdcall +CryptCloseAsyncHandle ( + HCRYPTASYNC hAsync + ); +# 17124 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_BLOB_ARRAY { + DWORD cBlob; + PCRYPT_DATA_BLOB rgBlob; +} CRYPT_BLOB_ARRAY, *PCRYPT_BLOB_ARRAY; + +typedef struct _CRYPT_CREDENTIALS { + DWORD cbSize; + LPCSTR pszCredentialsOid; + LPVOID pvCredentials; +} CRYPT_CREDENTIALS, *PCRYPT_CREDENTIALS; +# 17144 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_PASSWORD_CREDENTIALSA { + DWORD cbSize; + LPSTR pszUsername; + LPSTR pszPassword; +} CRYPT_PASSWORD_CREDENTIALSA, *PCRYPT_PASSWORD_CREDENTIALSA; +typedef struct _CRYPT_PASSWORD_CREDENTIALSW { + DWORD cbSize; + LPWSTR pszUsername; + LPWSTR pszPassword; +} CRYPT_PASSWORD_CREDENTIALSW, *PCRYPT_PASSWORD_CREDENTIALSW; + + + + +typedef CRYPT_PASSWORD_CREDENTIALSA CRYPT_PASSWORD_CREDENTIALS; +typedef PCRYPT_PASSWORD_CREDENTIALSA PCRYPT_PASSWORD_CREDENTIALS; +# 17173 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef void (__stdcall *PFN_FREE_ENCODED_OBJECT_FUNC) ( + LPCSTR pszObjectOid, + PCRYPT_BLOB_ARRAY pObject, + LPVOID pvFreeContext + ); +# 17377 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPTNET_URL_CACHE_PRE_FETCH_INFO { + DWORD cbSize; + DWORD dwObjectType; + + + + + + + + DWORD dwError; + DWORD dwReserved; + + FILETIME ThisUpdateTime; + FILETIME NextUpdateTime; + FILETIME PublishTime; +} CRYPTNET_URL_CACHE_PRE_FETCH_INFO, *PCRYPTNET_URL_CACHE_PRE_FETCH_INFO; +# 17407 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPTNET_URL_CACHE_FLUSH_INFO { + DWORD cbSize; + + + + + DWORD dwExemptSeconds; + + + + + FILETIME ExpireTime; +} CRYPTNET_URL_CACHE_FLUSH_INFO, *PCRYPTNET_URL_CACHE_FLUSH_INFO; +# 17428 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPTNET_URL_CACHE_RESPONSE_INFO { + DWORD cbSize; + WORD wResponseType; + WORD wResponseFlags; + + + FILETIME LastModifiedTime; + DWORD dwMaxAge; + LPCWSTR pwszETag; + DWORD dwProxyId; +} CRYPTNET_URL_CACHE_RESPONSE_INFO, *PCRYPTNET_URL_CACHE_RESPONSE_INFO; +# 17455 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_RETRIEVE_AUX_INFO { + DWORD cbSize; + FILETIME *pLastSyncTime; + + + DWORD dwMaxUrlRetrievalByteCount; + + + + + + PCRYPTNET_URL_CACHE_PRE_FETCH_INFO pPreFetchInfo; + + + + + + PCRYPTNET_URL_CACHE_FLUSH_INFO pFlushInfo; + + + + + + PCRYPTNET_URL_CACHE_RESPONSE_INFO *ppResponseInfo; + + + + LPWSTR pwszCacheFileNamePrefix; + + + + + + LPFILETIME pftCacheResync; + + + + + + BOOL fProxyCacheRetrieval; +# 17504 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 + DWORD dwHttpStatusCode; + + + + + + LPWSTR *ppwszErrorResponseHeaders; + + + + + PCRYPT_DATA_BLOB *ppErrorContentBlob; +} CRYPT_RETRIEVE_AUX_INFO, *PCRYPT_RETRIEVE_AUX_INFO; +# 17527 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CryptRetrieveObjectByUrlA ( + LPCSTR pszUrl, + LPCSTR pszObjectOid, + DWORD dwRetrievalFlags, + DWORD dwTimeout, + LPVOID* ppvObject, + HCRYPTASYNC hAsyncRetrieve, + PCRYPT_CREDENTIALS pCredentials, + LPVOID pvVerify, + PCRYPT_RETRIEVE_AUX_INFO pAuxInfo + ); +__declspec(dllimport) + +BOOL +__stdcall +CryptRetrieveObjectByUrlW ( + LPCWSTR pszUrl, + LPCSTR pszObjectOid, + DWORD dwRetrievalFlags, + DWORD dwTimeout, + LPVOID* ppvObject, + HCRYPTASYNC hAsyncRetrieve, + PCRYPT_CREDENTIALS pCredentials, + LPVOID pvVerify, + PCRYPT_RETRIEVE_AUX_INFO pAuxInfo + ); +# 17574 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CRYPT_CANCEL_RETRIEVAL)( + DWORD dwFlags, + void *pvArg + ); +# 17587 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptInstallCancelRetrieval( + PFN_CRYPT_CANCEL_RETRIEVAL pfnCancel, + const void *pvArg, + DWORD dwFlags, + void *pvReserved +); + + +__declspec(dllimport) +BOOL +__stdcall +CryptUninstallCancelRetrieval( + DWORD dwFlags, + void *pvReserved + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptCancelAsyncRetrieval ( + HCRYPTASYNC hAsyncRetrieval + ); +# 17630 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef void (__stdcall *PFN_CRYPT_ASYNC_RETRIEVAL_COMPLETION_FUNC) ( + LPVOID pvCompletion, + DWORD dwCompletionCode, + LPCSTR pszUrl, + LPSTR pszObjectOid, + LPVOID pvObject + ); + +typedef struct _CRYPT_ASYNC_RETRIEVAL_COMPLETION { + PFN_CRYPT_ASYNC_RETRIEVAL_COMPLETION_FUNC pfnCompletion; + LPVOID pvCompletion; +} CRYPT_ASYNC_RETRIEVAL_COMPLETION, *PCRYPT_ASYNC_RETRIEVAL_COMPLETION; +# 17650 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CANCEL_ASYNC_RETRIEVAL_FUNC) ( + HCRYPTASYNC hAsyncRetrieve + ); +# 17668 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_URL_ARRAY { + DWORD cUrl; + LPWSTR* rgwszUrl; +} CRYPT_URL_ARRAY, *PCRYPT_URL_ARRAY; + +typedef struct _CRYPT_URL_INFO { + DWORD cbSize; + + + DWORD dwSyncDeltaTime; + + + + + DWORD cGroup; + DWORD *rgcGroupEntry; +} CRYPT_URL_INFO, *PCRYPT_URL_INFO; + +__declspec(dllimport) +BOOL +__stdcall +CryptGetObjectUrl ( + LPCSTR pszUrlOid, + LPVOID pvPara, + DWORD dwFlags, + PCRYPT_URL_ARRAY pUrlArray, + DWORD* pcbUrlArray, + PCRYPT_URL_INFO pUrlInfo, + DWORD* pcbUrlInfo, + LPVOID pvReserved + ); +# 17822 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_CRL_CONTEXT_PAIR { + PCCERT_CONTEXT pCertContext; + PCCRL_CONTEXT pCrlContext; +} CERT_CRL_CONTEXT_PAIR, *PCERT_CRL_CONTEXT_PAIR; +typedef const CERT_CRL_CONTEXT_PAIR *PCCERT_CRL_CONTEXT_PAIR; +# 17845 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO { + DWORD cbSize; + + + + int iDeltaCrlIndicator; + + + + LPFILETIME pftCacheResync; + + + LPFILETIME pLastSyncTime; + + + + + LPFILETIME pMaxAgeTime; + + + + PCERT_REVOCATION_CHAIN_PARA pChainPara; + + + + PCRYPT_INTEGER_BLOB pDeltaCrlIndicator; + +} CRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO, + *PCRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO; + +__declspec(dllimport) + +BOOL +__stdcall +CryptGetTimeValidObject ( + LPCSTR pszTimeValidOid, + LPVOID pvPara, + PCCERT_CONTEXT pIssuer, + LPFILETIME pftValidFor, + DWORD dwFlags, + DWORD dwTimeout, + LPVOID* ppvObject, + PCRYPT_CREDENTIALS pCredentials, + PCRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO pExtraInfo + ); +# 17926 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptFlushTimeValidObject ( + LPCSTR pszFlushTimeValidOid, + LPVOID pvPara, + PCCERT_CONTEXT pIssuer, + DWORD dwFlags, + LPVOID pvReserved + ); +# 18019 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCERT_CONTEXT +__stdcall +CertCreateSelfSignCertificate( + HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProvOrNCryptKey, + PCERT_NAME_BLOB pSubjectIssuerBlob, + DWORD dwFlags, + PCRYPT_KEY_PROV_INFO pKeyProvInfo, + PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, + PSYSTEMTIME pStartTime, + PSYSTEMTIME pEndTime, + PCERT_EXTENSIONS pExtensions + ); +# 18071 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptGetKeyIdentifierProperty( + const CRYPT_HASH_BLOB *pKeyIdentifier, + DWORD dwPropId, + DWORD dwFlags, + LPCWSTR pwszComputerName, + void *pvReserved, + void *pvData, + DWORD *pcbData + ); +# 18112 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptSetKeyIdentifierProperty( + const CRYPT_HASH_BLOB *pKeyIdentifier, + DWORD dwPropId, + DWORD dwFlags, + LPCWSTR pwszComputerName, + void *pvReserved, + const void *pvData + ); +# 18139 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CRYPT_ENUM_KEYID_PROP)( + const CRYPT_HASH_BLOB *pKeyIdentifier, + DWORD dwFlags, + void *pvReserved, + void *pvArg, + DWORD cProp, + DWORD *rgdwPropId, + void **rgpvData, + DWORD *rgcbData + ); +# 18164 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptEnumKeyIdentifierProperties( + const CRYPT_HASH_BLOB *pKeyIdentifier, + DWORD dwPropId, + DWORD dwFlags, + LPCWSTR pwszComputerName, + void *pvReserved, + void *pvArg, + PFN_CRYPT_ENUM_KEYID_PROP pfnEnum + ); +# 18188 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptCreateKeyIdentifierFromCSP( + DWORD dwCertEncodingType, + LPCSTR pszPubKeyOID, + const PUBLICKEYSTRUC *pPubKeyStruc, + DWORD cbPubKeyStruc, + DWORD dwFlags, + void *pvReserved, + BYTE *pbHash, + DWORD *pcbHash + ); +# 19179 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef HANDLE HCERTCHAINENGINE; +# 19266 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_CHAIN_ENGINE_CONFIG { + + DWORD cbSize; + HCERTSTORE hRestrictedRoot; + HCERTSTORE hRestrictedTrust; + HCERTSTORE hRestrictedOther; + DWORD cAdditionalStore; + HCERTSTORE* rghAdditionalStore; + DWORD dwFlags; + DWORD dwUrlRetrievalTimeout; + DWORD MaximumCachedCertificates; + DWORD CycleDetectionModulus; + + + HCERTSTORE hExclusiveRoot; + HCERTSTORE hExclusiveTrustedPeople; + + + + DWORD dwExclusiveFlags; + + +} CERT_CHAIN_ENGINE_CONFIG, *PCERT_CHAIN_ENGINE_CONFIG; +# 19300 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CertCreateCertificateChainEngine ( + PCERT_CHAIN_ENGINE_CONFIG pConfig, + HCERTCHAINENGINE* phChainEngine + ); + + + + + +__declspec(dllimport) +void +__stdcall +CertFreeCertificateChainEngine ( + HCERTCHAINENGINE hChainEngine + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CertResyncCertificateChainEngine ( + HCERTCHAINENGINE hChainEngine + ); +# 19346 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_TRUST_STATUS { + + DWORD dwErrorStatus; + DWORD dwInfoStatus; + +} CERT_TRUST_STATUS, *PCERT_TRUST_STATUS; +# 19459 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_REVOCATION_INFO { + + DWORD cbSize; + DWORD dwRevocationResult; + LPCSTR pszRevocationOid; + LPVOID pvOidSpecificInfo; + + + + BOOL fHasFreshnessTime; + DWORD dwFreshnessTime; + + + PCERT_REVOCATION_CRL_INFO pCrlInfo; + +} CERT_REVOCATION_INFO, *PCERT_REVOCATION_INFO; + + + + + +typedef struct _CERT_TRUST_LIST_INFO { + + DWORD cbSize; + PCTL_ENTRY pCtlEntry; + PCCTL_CONTEXT pCtlContext; + +} CERT_TRUST_LIST_INFO, *PCERT_TRUST_LIST_INFO; + + + + + +typedef struct _CERT_CHAIN_ELEMENT { + + DWORD cbSize; + PCCERT_CONTEXT pCertContext; + CERT_TRUST_STATUS TrustStatus; + PCERT_REVOCATION_INFO pRevocationInfo; + + PCERT_ENHKEY_USAGE pIssuanceUsage; + PCERT_ENHKEY_USAGE pApplicationUsage; + + LPCWSTR pwszExtendedErrorInfo; +} CERT_CHAIN_ELEMENT, *PCERT_CHAIN_ELEMENT; +typedef const CERT_CHAIN_ELEMENT* PCCERT_CHAIN_ELEMENT; +# 19515 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_SIMPLE_CHAIN { + + DWORD cbSize; + CERT_TRUST_STATUS TrustStatus; + DWORD cElement; + PCERT_CHAIN_ELEMENT* rgpElement; + PCERT_TRUST_LIST_INFO pTrustListInfo; + + + + + + + + BOOL fHasRevocationFreshnessTime; + DWORD dwRevocationFreshnessTime; + +} CERT_SIMPLE_CHAIN, *PCERT_SIMPLE_CHAIN; +typedef const CERT_SIMPLE_CHAIN* PCCERT_SIMPLE_CHAIN; +# 19545 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_CHAIN_CONTEXT CERT_CHAIN_CONTEXT, *PCERT_CHAIN_CONTEXT; +typedef const CERT_CHAIN_CONTEXT *PCCERT_CHAIN_CONTEXT; + +struct _CERT_CHAIN_CONTEXT { + DWORD cbSize; + CERT_TRUST_STATUS TrustStatus; + DWORD cChain; + PCERT_SIMPLE_CHAIN* rgpChain; + + + + DWORD cLowerQualityChainContext; + PCCERT_CHAIN_CONTEXT* rgpLowerQualityChainContext; + + + + + + + + BOOL fHasRevocationFreshnessTime; + DWORD dwRevocationFreshnessTime; + + + DWORD dwCreateFlags; + + + GUID ChainId; +}; +# 19586 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_USAGE_MATCH { + + DWORD dwType; + CERT_ENHKEY_USAGE Usage; + +} CERT_USAGE_MATCH, *PCERT_USAGE_MATCH; + +typedef struct _CTL_USAGE_MATCH { + + DWORD dwType; + CTL_USAGE Usage; + +} CTL_USAGE_MATCH, *PCTL_USAGE_MATCH; + +typedef struct _CERT_CHAIN_PARA { + + DWORD cbSize; + CERT_USAGE_MATCH RequestedUsage; +# 19636 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +} CERT_CHAIN_PARA, *PCERT_CHAIN_PARA; +# 19763 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CertGetCertificateChain ( + HCERTCHAINENGINE hChainEngine, + PCCERT_CONTEXT pCertContext, + LPFILETIME pTime, + HCERTSTORE hAdditionalStore, + PCERT_CHAIN_PARA pChainPara, + DWORD dwFlags, + LPVOID pvReserved, + PCCERT_CHAIN_CONTEXT* ppChainContext + ); + + + + + +__declspec(dllimport) +void +__stdcall +CertFreeCertificateChain ( + PCCERT_CHAIN_CONTEXT pChainContext + ); + + + + + +__declspec(dllimport) +PCCERT_CHAIN_CONTEXT +__stdcall +CertDuplicateCertificateChain ( + PCCERT_CHAIN_CONTEXT pChainContext + ); + + + + + + + +struct _CERT_REVOCATION_CHAIN_PARA { + DWORD cbSize; + HCERTCHAINENGINE hChainEngine; + HCERTSTORE hAdditionalStore; + DWORD dwChainFlags; + DWORD dwUrlRetrievalTimeout; + LPFILETIME pftCurrentTime; + LPFILETIME pftCacheResync; + + + + DWORD cbMaxUrlRetrievalByteCount; +}; +# 19838 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRL_REVOCATION_INFO { + + PCRL_ENTRY pCrlEntry; + PCCRL_CONTEXT pCrlContext; + PCCERT_CHAIN_CONTEXT pCrlIssuerChain; + +} CRL_REVOCATION_INFO, *PCRL_REVOCATION_INFO; +# 19873 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCERT_CHAIN_CONTEXT +__stdcall +CertFindChainInStore( + HCERTSTORE hCertStore, + DWORD dwCertEncodingType, + DWORD dwFindFlags, + DWORD dwFindType, + const void *pvFindPara, + PCCERT_CHAIN_CONTEXT pPrevChainContext + ); +# 19937 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CERT_CHAIN_FIND_BY_ISSUER_CALLBACK)( + PCCERT_CONTEXT pCert, + void *pvFindArg + ); + +typedef struct _CERT_CHAIN_FIND_BY_ISSUER_PARA { + DWORD cbSize; + + + LPCSTR pszUsageIdentifier; + + + DWORD dwKeySpec; + + + + + + + DWORD dwAcquirePrivateKeyFlags; + + + + DWORD cIssuer; + CERT_NAME_BLOB *rgIssuer; + + + + + PFN_CERT_CHAIN_FIND_BY_ISSUER_CALLBACK pfnFindCallback; + void *pvFindArg; +# 19989 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +} CERT_CHAIN_FIND_ISSUER_PARA, *PCERT_CHAIN_FIND_ISSUER_PARA, + CERT_CHAIN_FIND_BY_ISSUER_PARA, *PCERT_CHAIN_FIND_BY_ISSUER_PARA; +# 20028 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_CHAIN_POLICY_PARA { + DWORD cbSize; + DWORD dwFlags; + void *pvExtraPolicyPara; +} CERT_CHAIN_POLICY_PARA, *PCERT_CHAIN_POLICY_PARA; + + + + + + +typedef struct _CERT_CHAIN_POLICY_STATUS { + DWORD cbSize; + DWORD dwError; + LONG lChainIndex; + LONG lElementIndex; + void *pvExtraPolicyStatus; +} CERT_CHAIN_POLICY_STATUS, *PCERT_CHAIN_POLICY_STATUS; +# 20107 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertVerifyCertificateChainPolicy( + LPCSTR pszPolicyOID, + PCCERT_CHAIN_CONTEXT pChainContext, + PCERT_CHAIN_POLICY_PARA pPolicyPara, + PCERT_CHAIN_POLICY_STATUS pPolicyStatus + ); +# 20160 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA { + DWORD cbSize; + DWORD dwRegPolicySettings; + PCMSG_SIGNER_INFO pSignerInfo; +} AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA, + *PAUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA; + +typedef struct _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS { + DWORD cbSize; + BOOL fCommercial; +} AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS, + *PAUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS; +# 20185 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _AUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA { + DWORD cbSize; + DWORD dwRegPolicySettings; + BOOL fCommercial; +} AUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA, + *PAUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA; +# 20203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _HTTPSPolicyCallbackData +{ + union { + DWORD cbStruct; + DWORD cbSize; + } ; + + DWORD dwAuthType; + + + + DWORD fdwChecks; + + WCHAR *pwszServerName; + +} HTTPSPolicyCallbackData, *PHTTPSPolicyCallbackData, + SSL_EXTRA_CERT_CHAIN_POLICY_PARA, *PSSL_EXTRA_CERT_CHAIN_POLICY_PARA; +# 20324 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _EV_EXTRA_CERT_CHAIN_POLICY_PARA { + DWORD cbSize; + DWORD dwRootProgramQualifierFlags; +} EV_EXTRA_CERT_CHAIN_POLICY_PARA, + *PEV_EXTRA_CERT_CHAIN_POLICY_PARA; + +typedef struct _EV_EXTRA_CERT_CHAIN_POLICY_STATUS { + DWORD cbSize; + DWORD dwQualifiers; + DWORD dwIssuanceUsageIndex; +} EV_EXTRA_CERT_CHAIN_POLICY_STATUS, *PEV_EXTRA_CERT_CHAIN_POLICY_STATUS; +# 20356 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _SSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS { + DWORD cbSize; + DWORD dwErrorLevel; + DWORD dwErrorCategory; + DWORD dwReserved; + WCHAR wszErrorText[256]; +} SSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS, *PSSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS; +# 20429 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _SSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA { + DWORD cbSize; + DWORD dwReserved; + LPWSTR pwszServerName; + + + LPSTR rgpszHpkpValue[2]; +} SSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA, + *PSSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA; +# 20488 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA { + DWORD cbSize; + DWORD dwReserved; + PCWSTR pwszServerName; +} SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA, *PSSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA; + + +typedef struct _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS { + DWORD cbSize; + LONG lError; + WCHAR wszErrorText[512]; +} SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS, *PSSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS; +# 20521 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptStringToBinaryA( + LPCSTR pszString, + DWORD cchString, + DWORD dwFlags, + BYTE *pbBinary, + DWORD *pcbBinary, + DWORD *pdwSkip, + DWORD *pdwFlags + ); +# 20543 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptStringToBinaryW( + LPCWSTR pszString, + DWORD cchString, + DWORD dwFlags, + BYTE *pbBinary, + DWORD *pcbBinary, + DWORD *pdwSkip, + DWORD *pdwFlags + ); +# 20568 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CryptBinaryToStringA( + const BYTE *pbBinary, + DWORD cbBinary, + DWORD dwFlags, + LPSTR pszString, + DWORD *pcchString + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CryptBinaryToStringW( + const BYTE *pbBinary, + DWORD cbBinary, + DWORD dwFlags, + LPWSTR pszString, + DWORD *pcchString + ); +# 20685 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_PKCS12_PBE_PARAMS +{ + int iIterations; + ULONG cbSalt; +} +CRYPT_PKCS12_PBE_PARAMS; +# 20740 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +HCERTSTORE +__stdcall +PFXImportCertStore( + CRYPT_DATA_BLOB* pPFX, + LPCWSTR szPassword, + DWORD dwFlags); +# 20782 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +PFXIsPFXBlob( + CRYPT_DATA_BLOB* pPFX); +# 20798 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +PFXVerifyPassword( + CRYPT_DATA_BLOB* pPFX, + LPCWSTR szPassword, + DWORD dwFlags); +# 20864 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +PFXExportCertStoreEx( + HCERTSTORE hStore, + CRYPT_DATA_BLOB* pPFX, + LPCWSTR szPassword, + void* pvPara, + DWORD dwFlags); +# 20899 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _PKCS12_PBES2_EXPORT_PARAMS +{ + DWORD dwSize; + PVOID hNcryptDescriptor; + LPWSTR pwszPbes2Alg; +} PKCS12_PBES2_EXPORT_PARAMS, *PPKCS12_PBES2_EXPORT_PARAMS; +# 20936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +PFXExportCertStore( + HCERTSTORE hStore, + CRYPT_DATA_BLOB* pPFX, + LPCWSTR szPassword, + DWORD dwFlags); +# 20964 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef void *HCERT_SERVER_OCSP_RESPONSE; + + + + +typedef struct _CERT_SERVER_OCSP_RESPONSE_CONTEXT + CERT_SERVER_OCSP_RESPONSE_CONTEXT, + *PCERT_SERVER_OCSP_RESPONSE_CONTEXT; +typedef const CERT_SERVER_OCSP_RESPONSE_CONTEXT + *PCCERT_SERVER_OCSP_RESPONSE_CONTEXT; + +struct _CERT_SERVER_OCSP_RESPONSE_CONTEXT { + DWORD cbSize; + BYTE *pbEncodedOcspResponse; + DWORD cbEncodedOcspResponse; +}; + + + + + + + +typedef void (__stdcall *PFN_CERT_SERVER_OCSP_RESPONSE_UPDATE_CALLBACK)( + PCCERT_CHAIN_CONTEXT pChainContext, + PCCERT_SERVER_OCSP_RESPONSE_CONTEXT pServerOcspResponseContext, + PCCRL_CONTEXT pNewCrlContext, + PCCRL_CONTEXT pPrevCrlContext, + PVOID pvArg, + DWORD dwWriteOcspFileError + ); + + + + + +typedef struct _CERT_SERVER_OCSP_RESPONSE_OPEN_PARA { + DWORD cbSize; + DWORD dwFlags; + + + + + DWORD *pcbUsedSize; +# 21017 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 + PWSTR pwszOcspDirectory; + + + + PFN_CERT_SERVER_OCSP_RESPONSE_UPDATE_CALLBACK pfnUpdateCallback; + PVOID pvUpdateCallbackArg; +} CERT_SERVER_OCSP_RESPONSE_OPEN_PARA, *PCERT_SERVER_OCSP_RESPONSE_OPEN_PARA; +# 21055 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +HCERT_SERVER_OCSP_RESPONSE +__stdcall +CertOpenServerOcspResponse( + PCCERT_CHAIN_CONTEXT pChainContext, + DWORD dwFlags, + PCERT_SERVER_OCSP_RESPONSE_OPEN_PARA pOpenPara + ); +# 21073 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +void +__stdcall +CertAddRefServerOcspResponse( + HCERT_SERVER_OCSP_RESPONSE hServerOcspResponse + ); + + + + + + + +__declspec(dllimport) +void +__stdcall +CertCloseServerOcspResponse( + HCERT_SERVER_OCSP_RESPONSE hServerOcspResponse, + DWORD dwFlags + ); +# 21107 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +PCCERT_SERVER_OCSP_RESPONSE_CONTEXT +__stdcall +CertGetServerOcspResponseContext( + HCERT_SERVER_OCSP_RESPONSE hServerOcspResponse, + DWORD dwFlags, + LPVOID pvReserved + ); + + + + + + +__declspec(dllimport) +void +__stdcall +CertAddRefServerOcspResponseContext( + PCCERT_SERVER_OCSP_RESPONSE_CONTEXT pServerOcspResponseContext + ); + + + + + +__declspec(dllimport) +void +__stdcall +CertFreeServerOcspResponseContext( + PCCERT_SERVER_OCSP_RESPONSE_CONTEXT pServerOcspResponseContext + ); +# 21189 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CertRetrieveLogoOrBiometricInfo( + PCCERT_CONTEXT pCertContext, + LPCSTR lpszLogoOrBiometricType, + DWORD dwRetrievalFlags, + DWORD dwTimeout, + DWORD dwFlags, + void *pvReserved, + BYTE **ppbData, + DWORD *pcbData, + LPWSTR *ppwszMimeType + ); +# 21231 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CERT_SELECT_CHAIN_PARA +{ + HCERTCHAINENGINE hChainEngine; + PFILETIME pTime; + HCERTSTORE hAdditionalStore; + PCERT_CHAIN_PARA pChainPara; + DWORD dwFlags; +} +CERT_SELECT_CHAIN_PARA, *PCERT_SELECT_CHAIN_PARA; +typedef const CERT_SELECT_CHAIN_PARA* PCCERT_SELECT_CHAIN_PARA; + + + +typedef struct _CERT_SELECT_CRITERIA +{ + DWORD dwType; + DWORD cPara; + void** ppPara; +} +CERT_SELECT_CRITERIA, *PCERT_SELECT_CRITERIA; +typedef const CERT_SELECT_CRITERIA* PCCERT_SELECT_CRITERIA; +# 21293 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) + +BOOL +__stdcall +CertSelectCertificateChains( + LPCGUID pSelectionContext, + DWORD dwFlags, + PCCERT_SELECT_CHAIN_PARA pChainParameters, + DWORD cCriteria, + PCCERT_SELECT_CRITERIA rgpCriteria, + HCERTSTORE hStore, + PDWORD pcSelection, + PCCERT_CHAIN_CONTEXT** pprgpSelection + ); + + + + + + +__declspec(dllimport) +void +__stdcall +CertFreeCertificateChainList( + PCCERT_CHAIN_CONTEXT* prgpSelection + ); +# 21334 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_TIMESTAMP_REQUEST +{ + DWORD dwVersion; + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; + CRYPT_DER_BLOB HashedMessage; + LPSTR pszTSAPolicyId; + CRYPT_INTEGER_BLOB Nonce; + BOOL fCertReq; + DWORD cExtension; + + PCERT_EXTENSION rgExtension; +} CRYPT_TIMESTAMP_REQUEST, *PCRYPT_TIMESTAMP_REQUEST; + + + + + +typedef struct _CRYPT_TIMESTAMP_RESPONSE +{ + DWORD dwStatus; + DWORD cFreeText; + + LPWSTR* rgFreeText; + CRYPT_BIT_BLOB FailureInfo; + CRYPT_DER_BLOB ContentInfo; +} CRYPT_TIMESTAMP_RESPONSE, *PCRYPT_TIMESTAMP_RESPONSE; +# 21381 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_TIMESTAMP_ACCURACY +{ + DWORD dwSeconds; + DWORD dwMillis; + DWORD dwMicros; +} CRYPT_TIMESTAMP_ACCURACY, *PCRYPT_TIMESTAMP_ACCURACY; + + + + + +typedef struct _CRYPT_TIMESTAMP_INFO +{ + DWORD dwVersion; + LPSTR pszTSAPolicyId; + CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; + CRYPT_DER_BLOB HashedMessage; + CRYPT_INTEGER_BLOB SerialNumber; + FILETIME ftTime; + PCRYPT_TIMESTAMP_ACCURACY pvAccuracy; + BOOL fOrdering; + CRYPT_DER_BLOB Nonce; + CRYPT_DER_BLOB Tsa; + DWORD cExtension; + + PCERT_EXTENSION rgExtension; +} CRYPT_TIMESTAMP_INFO, *PCRYPT_TIMESTAMP_INFO; + + + + + +typedef struct _CRYPT_TIMESTAMP_CONTEXT +{ + DWORD cbEncoded; + + BYTE *pbEncoded; + PCRYPT_TIMESTAMP_INFO pTimeStamp; +} CRYPT_TIMESTAMP_CONTEXT, *PCRYPT_TIMESTAMP_CONTEXT; +# 21440 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef struct _CRYPT_TIMESTAMP_PARA +{ + LPCSTR pszTSAPolicyId; + BOOL fRequestCerts; + CRYPT_INTEGER_BLOB Nonce; + DWORD cExtension; + + PCERT_EXTENSION rgExtension; +} CRYPT_TIMESTAMP_PARA, *PCRYPT_TIMESTAMP_PARA; +# 21494 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +BOOL +__stdcall +CryptRetrieveTimeStamp( + LPCWSTR wszUrl, + DWORD dwRetrievalFlags, + DWORD dwTimeout, + LPCSTR pszHashId, + const CRYPT_TIMESTAMP_PARA *pPara, + + const BYTE *pbData, + DWORD cbData, + PCRYPT_TIMESTAMP_CONTEXT *ppTsContext, + PCCERT_CONTEXT *ppTsSigner, + HCERTSTORE *phStore + ); +# 21558 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +BOOL +__stdcall +CryptVerifyTimeStampSignature ( + + const BYTE *pbTSContentInfo, + DWORD cbTSContentInfo, + + const BYTE *pbData, + DWORD cbData, + HCERTSTORE hAdditionalStore, + PCRYPT_TIMESTAMP_CONTEXT *ppTsContext, + PCCERT_CONTEXT *ppTsSigner, + HCERTSTORE *phStore + ); +# 21633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FLUSH)( + LPVOID pContext, + PCERT_NAME_BLOB *rgIdentifierOrNameList, + DWORD dwIdentifierOrNameListCount); +# 21668 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_GET)( + LPVOID pPluginContext, + PCRYPT_DATA_BLOB pIdentifier, + DWORD dwNameType, + PCERT_NAME_BLOB pNameBlob, + PBYTE *ppbContent, + DWORD *pcbContent, + PCWSTR *ppwszPassword, + PCRYPT_DATA_BLOB *ppIdentifier); +# 21694 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef void (__stdcall * PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_RELEASE)( + DWORD dwReason, + LPVOID pPluginContext); +# 21711 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef void (__stdcall *PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_PASSWORD)( + LPVOID pPluginContext, + PCWSTR pwszPassword +); +# 21728 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef void (__stdcall *PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE)( + LPVOID pPluginContext, + PBYTE pbData +); +# 21749 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef void (__stdcall *PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_IDENTIFIER)( + LPVOID pPluginContext, + PCRYPT_DATA_BLOB pIdentifier); + + +typedef struct _CRYPT_OBJECT_LOCATOR_PROVIDER_TABLE +{ + DWORD cbSize; + PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_GET pfnGet; + PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_RELEASE pfnRelease; + PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_PASSWORD pfnFreePassword; + PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE pfnFree; + PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_IDENTIFIER pfnFreeIdentifier; +} CRYPT_OBJECT_LOCATOR_PROVIDER_TABLE, *PCRYPT_OBJECT_LOCATOR_PROVIDER_TABLE; +# 21792 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +typedef BOOL (__stdcall *PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_INITIALIZE)( + PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FLUSH pfnFlush, + LPVOID pContext, + DWORD *pdwExpectedObjectCount, + PCRYPT_OBJECT_LOCATOR_PROVIDER_TABLE *ppFuncTable, + void **ppPluginContext); +# 21820 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +__declspec(dllimport) +BOOL +__stdcall +CertIsWeakHash( + DWORD dwHashUseType, + LPCWSTR pwszCNGHashAlgid, + DWORD dwChainFlags, + PCCERT_CHAIN_CONTEXT pSignerChainContext, + LPFILETIME pTimeStamp, + LPCWSTR pwszFileName + ); + +typedef __declspec(dllimport) BOOL (__stdcall *PFN_CERT_IS_WEAK_HASH)( + DWORD dwHashUseType, + LPCWSTR pwszCNGHashAlgid, + DWORD dwChainFlags, + PCCERT_CHAIN_CONTEXT pSignerChainContext, + LPFILETIME pTimeStamp, + LPCWSTR pwszFileName + ); +# 21864 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +#pragma warning(pop) +# 21882 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dpapi.h" 1 3 +# 91 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dpapi.h" 3 +typedef struct _CRYPTPROTECT_PROMPTSTRUCT +{ + DWORD cbSize; + DWORD dwPromptFlags; + HWND hwndApp; + LPCWSTR szPrompt; +} CRYPTPROTECT_PROMPTSTRUCT, *PCRYPTPROTECT_PROMPTSTRUCT; +# 182 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dpapi.h" 3 +BOOL +__stdcall +CryptProtectData( + DATA_BLOB* pDataIn, + LPCWSTR szDataDescr, + DATA_BLOB* pOptionalEntropy, + PVOID pvReserved, + CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, + DWORD dwFlags, + DATA_BLOB* pDataOut + ); + + +BOOL +__stdcall +CryptUnprotectData( + DATA_BLOB* pDataIn, + LPWSTR* ppszDataDescr, + DATA_BLOB* pOptionalEntropy, + PVOID pvReserved, + CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, + DWORD dwFlags, + DATA_BLOB* pDataOut + ); +# 214 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dpapi.h" 3 +BOOL +__stdcall +CryptProtectDataNoUI( + DATA_BLOB* pDataIn, + LPCWSTR szDataDescr, + DATA_BLOB* pOptionalEntropy, + PVOID pvReserved, + CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, + DWORD dwFlags, + + const BYTE *pbOptionalPassword, + DWORD cbOptionalPassword, + DATA_BLOB* pDataOut + ); + +BOOL +__stdcall +CryptUnprotectDataNoUI( + DATA_BLOB* pDataIn, + LPWSTR* ppszDataDescr, + DATA_BLOB* pOptionalEntropy, + PVOID pvReserved, + CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, + DWORD dwFlags, + + const BYTE *pbOptionalPassword, + DWORD cbOptionalPassword, + DATA_BLOB* pDataOut + ); +# 254 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dpapi.h" 3 +BOOL +__stdcall +CryptUpdateProtectedState( + PSID pOldSid, + LPCWSTR pwszOldPassword, + DWORD dwFlags, + DWORD *pdwSuccessCount, + DWORD *pdwFailureCount); +# 310 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dpapi.h" 3 +BOOL +__stdcall +CryptProtectMemory( + LPVOID pDataIn, + DWORD cbDataIn, + DWORD dwFlags + ); + + +BOOL +__stdcall +CryptUnprotectMemory( + LPVOID pDataIn, + DWORD cbDataIn, + DWORD dwFlags + ); +# 21883 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 2 3 +# 211 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 1 3 +# 25 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) +# 61 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 +typedef struct _CERTIFICATE_BLOB { + + DWORD dwCertEncodingType; + + + + + + DWORD cbData; + + + + + PBYTE pbData; + +} EFS_CERTIFICATE_BLOB, *PEFS_CERTIFICATE_BLOB; + + + + + +typedef struct _EFS_HASH_BLOB { + + + + + DWORD cbData; + + + + + PBYTE pbData; + +} EFS_HASH_BLOB, *PEFS_HASH_BLOB; +# 104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 +typedef struct _EFS_RPC_BLOB { + + + + + DWORD cbData; + + + + + PBYTE pbData; + +} EFS_RPC_BLOB, *PEFS_RPC_BLOB; + + + + + + +typedef struct _EFS_PIN_BLOB { + + + + + DWORD cbPadding; + + + + + DWORD cbData; + + + + + PBYTE pbData; + +} EFS_PIN_BLOB, *PEFS_PIN_BLOB; + + + + + + + +typedef struct _EFS_KEY_INFO { + + DWORD dwVersion; + ULONG Entropy; + ALG_ID Algorithm; + ULONG KeyLength; + +} EFS_KEY_INFO, *PEFS_KEY_INFO; + + + + + + +typedef struct _EFS_COMPATIBILITY_INFO { + + DWORD EfsVersion; + +} EFS_COMPATIBILITY_INFO, *PEFS_COMPATIBILITY_INFO; +# 191 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 +typedef struct _EFS_VERSION_INFO { + DWORD EfsVersion; + DWORD SubVersion; +} EFS_VERSION_INFO, *PEFS_VERSION_INFO; +# 206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 +typedef struct _EFS_DECRYPTION_STATUS_INFO { + + DWORD dwDecryptionError; + DWORD dwHashOffset; + DWORD cbHash; + +} EFS_DECRYPTION_STATUS_INFO, *PEFS_DECRYPTION_STATUS_INFO; + +typedef struct _EFS_ENCRYPTION_STATUS_INFO { + + BOOL bHasCurrentKey; + DWORD dwEncryptionError; + +} EFS_ENCRYPTION_STATUS_INFO, *PEFS_ENCRYPTION_STATUS_INFO; + + + + + + + +typedef struct _ENCRYPTION_CERTIFICATE { + DWORD cbTotalLength; + SID * pUserSid; + PEFS_CERTIFICATE_BLOB pCertBlob; +} ENCRYPTION_CERTIFICATE, *PENCRYPTION_CERTIFICATE; + + + + +typedef struct _ENCRYPTION_CERTIFICATE_HASH { + DWORD cbTotalLength; + SID * pUserSid; + PEFS_HASH_BLOB pHash; + + + + + LPWSTR lpDisplayInformation; + +} ENCRYPTION_CERTIFICATE_HASH, *PENCRYPTION_CERTIFICATE_HASH; + +typedef struct _ENCRYPTION_CERTIFICATE_HASH_LIST { + + + + DWORD nCert_Hash; + + + + PENCRYPTION_CERTIFICATE_HASH * pUsers; +} ENCRYPTION_CERTIFICATE_HASH_LIST, *PENCRYPTION_CERTIFICATE_HASH_LIST; + + + +typedef struct _ENCRYPTION_CERTIFICATE_LIST { + + + + DWORD nUsers; + + + + PENCRYPTION_CERTIFICATE * pUsers; +} ENCRYPTION_CERTIFICATE_LIST, *PENCRYPTION_CERTIFICATE_LIST; +# 280 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 +typedef struct _ENCRYPTED_FILE_METADATA_SIGNATURE { + + DWORD dwEfsAccessType; + PENCRYPTION_CERTIFICATE_HASH_LIST pCertificatesAdded; + PENCRYPTION_CERTIFICATE pEncryptionCertificate; + PEFS_RPC_BLOB pEfsStreamSignature; + +} ENCRYPTED_FILE_METADATA_SIGNATURE, *PENCRYPTED_FILE_METADATA_SIGNATURE; + + + + + +typedef struct _ENCRYPTION_PROTECTOR{ + DWORD cbTotalLength; + SID * pUserSid; + + + + LPWSTR lpProtectorDescriptor; +} ENCRYPTION_PROTECTOR, *PENCRYPTION_PROTECTOR; + +typedef struct _ENCRYPTION_PROTECTOR_LIST { + DWORD nProtectors; + + + + PENCRYPTION_PROTECTOR *pProtectors; +} ENCRYPTION_PROTECTOR_LIST, *PENCRYPTION_PROTECTOR_LIST; +# 321 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 +__declspec(dllimport) +DWORD +__stdcall +QueryUsersOnEncryptedFile( + LPCWSTR lpFileName, + PENCRYPTION_CERTIFICATE_HASH_LIST *pUsers + ); + + +__declspec(dllimport) +DWORD +__stdcall +QueryRecoveryAgentsOnEncryptedFile( + LPCWSTR lpFileName, + PENCRYPTION_CERTIFICATE_HASH_LIST *pRecoveryAgents + ); + + +__declspec(dllimport) +DWORD +__stdcall +RemoveUsersFromEncryptedFile( + LPCWSTR lpFileName, + PENCRYPTION_CERTIFICATE_HASH_LIST pHashes + ); + +__declspec(dllimport) +DWORD +__stdcall +AddUsersToEncryptedFile( + LPCWSTR lpFileName, + PENCRYPTION_CERTIFICATE_LIST pEncryptionCertificates + ); + + + + + + + +__declspec(dllimport) +DWORD +__stdcall +SetUserFileEncryptionKey( + PENCRYPTION_CERTIFICATE pEncryptionCertificate + ); +# 382 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 +__declspec(dllimport) +DWORD +__stdcall +SetUserFileEncryptionKeyEx( + PENCRYPTION_CERTIFICATE pEncryptionCertificate, + DWORD dwCapabilities, + DWORD dwFlags, + LPVOID pvReserved + ); + + + +__declspec(dllimport) +void +__stdcall +FreeEncryptionCertificateHashList( + PENCRYPTION_CERTIFICATE_HASH_LIST pUsers + ); + +__declspec(dllimport) +BOOL +__stdcall +EncryptionDisable( + LPCWSTR DirPath, + BOOL Disable + ); + + + + + + + +__declspec(dllimport) +DWORD +__stdcall +DuplicateEncryptionInfoFile( + LPCWSTR SrcFileName, + LPCWSTR DstFileName, + DWORD dwCreationDistribution, + DWORD dwAttributes, + const LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); +# 447 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 +__declspec(deprecated) +__declspec(dllimport) +DWORD +__stdcall +GetEncryptedFileMetadata( + LPCWSTR lpFileName, + PDWORD pcbMetadata, + PBYTE *ppbMetadata + ); + +__declspec(deprecated) +__declspec(dllimport) +DWORD +__stdcall +SetEncryptedFileMetadata( + LPCWSTR lpFileName, + PBYTE pbOldMetadata, + PBYTE pbNewMetadata, + PENCRYPTION_CERTIFICATE_HASH pOwnerHash, + DWORD dwOperation, + PENCRYPTION_CERTIFICATE_HASH_LIST pCertificatesAdded + ); + +__declspec(deprecated) +__declspec(dllimport) +void +__stdcall +FreeEncryptedFileMetadata( + PBYTE pbMetadata + ); +# 489 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 +#pragma warning(pop) +# 212 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 1 3 +# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 1 3 +# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 1 3 +# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +#pragma warning(push) +#pragma warning(disable: 4001) +#pragma warning(disable: 4255) +#pragma warning(disable: 4668) +#pragma warning(disable: 4820) +# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,8) +# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 2 3 + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\rpcnsip.h" 1 3 +# 32 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\rpcnsip.h" 3 +typedef struct +{ + RPC_NS_HANDLE LookupContext; + RPC_BINDING_HANDLE ProposedHandle; + RPC_BINDING_VECTOR * Bindings; + +} RPC_IMPORT_CONTEXT_P, * PRPC_IMPORT_CONTEXT_P; + + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcNsGetBuffer( + PRPC_MESSAGE Message + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcNsSendReceive( + PRPC_MESSAGE Message, + RPC_BINDING_HANDLE * Handle + ); + +__declspec(dllimport) + +void +__stdcall +I_RpcNsRaiseException( + PRPC_MESSAGE Message, + RPC_STATUS Status + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_RpcReBindBuffer( + PRPC_MESSAGE Message + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_NsServerBindSearch( + void + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +I_NsClientBindSearch( + void + ); + +__declspec(dllimport) +void +__stdcall +I_NsClientBindDone( + void + ); +# 51 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 2 3 + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcsal.h" 1 3 +# 54 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 2 3 +# 202 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +typedef unsigned char byte; +typedef byte cs_byte; +typedef unsigned char boolean; +# 249 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +void * __stdcall MIDL_user_allocate( size_t size); +void __stdcall MIDL_user_free( void * ); + + + +void * __stdcall I_RpcDefaultAllocate( + handle_t bh, size_t size, void * (* RealAlloc)(size_t) ); + +void __stdcall I_RpcDefaultFree( + handle_t bh, void *, void (*RealFree)(void *) ); +# 284 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +typedef void * NDR_CCONTEXT; + +typedef struct _NDR_SCONTEXT + { + void * pad[2]; + void * userContext; + } * NDR_SCONTEXT; + + + + + +typedef void (__stdcall * NDR_RUNDOWN)(void * context); + +typedef void (__stdcall * NDR_NOTIFY_ROUTINE)(void); + +typedef void (__stdcall * NDR_NOTIFY2_ROUTINE)(boolean flag); + +typedef struct _SCONTEXT_QUEUE { + unsigned long NumberOfObjects; + NDR_SCONTEXT * ArrayOfObjects; + } SCONTEXT_QUEUE, * PSCONTEXT_QUEUE; + +__declspec(dllimport) +RPC_BINDING_HANDLE +__stdcall +NDRCContextBinding ( + NDR_CCONTEXT CContext + ); + +__declspec(dllimport) +void +__stdcall +NDRCContextMarshall ( + NDR_CCONTEXT CContext, + void *pBuff + ); + +__declspec(dllimport) +void +__stdcall +NDRCContextUnmarshall ( + NDR_CCONTEXT * pCContext, + RPC_BINDING_HANDLE hBinding, + void * pBuff, + unsigned long DataRepresentation + ); + +__declspec(dllimport) +void +__stdcall +NDRCContextUnmarshall2 ( + NDR_CCONTEXT * pCContext, + RPC_BINDING_HANDLE hBinding, + void * pBuff, + unsigned long DataRepresentation + ); + +__declspec(dllimport) +void +__stdcall +NDRSContextMarshall ( + NDR_SCONTEXT CContext, + void * pBuff, + NDR_RUNDOWN userRunDownIn + ); + +__declspec(dllimport) +NDR_SCONTEXT +__stdcall +NDRSContextUnmarshall ( + void * pBuff, + unsigned long DataRepresentation + ); + +__declspec(dllimport) +void +__stdcall +NDRSContextMarshallEx ( + RPC_BINDING_HANDLE BindingHandle, + NDR_SCONTEXT CContext, + void * pBuff, + NDR_RUNDOWN userRunDownIn + ); + +__declspec(dllimport) +void +__stdcall +NDRSContextMarshall2 ( + RPC_BINDING_HANDLE BindingHandle, + NDR_SCONTEXT CContext, + void * pBuff, + NDR_RUNDOWN userRunDownIn, + void * CtxGuard, + unsigned long Flags + ); + +__declspec(dllimport) +NDR_SCONTEXT +__stdcall +NDRSContextUnmarshallEx ( + RPC_BINDING_HANDLE BindingHandle, + void * pBuff, + unsigned long DataRepresentation + ); + +__declspec(dllimport) +NDR_SCONTEXT +__stdcall +NDRSContextUnmarshall2( + RPC_BINDING_HANDLE BindingHandle, + void * pBuff, + unsigned long DataRepresentation, + void * CtxGuard, + unsigned long Flags + ); + +__declspec(dllimport) +void +__stdcall +RpcSsDestroyClientContext ( + void * * ContextHandle + ); +# 477 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +typedef unsigned long error_status_t; +# 560 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +struct _MIDL_STUB_MESSAGE; +struct _MIDL_STUB_DESC; +struct _FULL_PTR_XLAT_TABLES; + +typedef unsigned char * RPC_BUFPTR; +typedef unsigned long RPC_LENGTH; + + +typedef void (__stdcall * EXPR_EVAL)( struct _MIDL_STUB_MESSAGE * ); + +typedef const unsigned char * PFORMAT_STRING; + + + + +typedef struct + { + long Dimension; + + + unsigned long * BufferConformanceMark; + unsigned long * BufferVarianceMark; + + + unsigned long * MaxCountArray; + unsigned long * OffsetArray; + unsigned long * ActualCountArray; + } ARRAY_INFO, *PARRAY_INFO; + + +typedef struct _NDR_ASYNC_MESSAGE * PNDR_ASYNC_MESSAGE; +typedef struct _NDR_CORRELATION_INFO *PNDR_CORRELATION_INFO; + + + + + +typedef const unsigned char * PFORMAT_STRING; +typedef struct _MIDL_SYNTAX_INFO MIDL_SYNTAX_INFO, *PMIDL_SYNTAX_INFO; + +struct NDR_ALLOC_ALL_NODES_CONTEXT; +struct NDR_POINTER_QUEUE_STATE; +struct _NDR_PROC_CONTEXT; + +typedef struct _MIDL_STUB_MESSAGE + { + + PRPC_MESSAGE RpcMsg; + + + unsigned char * Buffer; + + + + + + unsigned char * BufferStart; + unsigned char * BufferEnd; +# 626 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 + unsigned char * BufferMark; + + + unsigned long BufferLength; + + + unsigned long MemorySize; + + + unsigned char * Memory; + + + unsigned char IsClient; + unsigned char Pad; + unsigned short uFlags2; + + + int ReuseBuffer; + + + struct NDR_ALLOC_ALL_NODES_CONTEXT *pAllocAllNodesContext; + struct NDR_POINTER_QUEUE_STATE *pPointerQueueState; + + + + + + + int IgnoreEmbeddedPointers; + + + + + + unsigned char * PointerBufferMark; + + + + + unsigned char CorrDespIncrement; + + unsigned char uFlags; + unsigned short UniquePtrCount; + + + + + + ULONG_PTR MaxCount; + + + + + + unsigned long Offset; + + + + + + unsigned long ActualCount; + + + void * ( __stdcall * pfnAllocate)( size_t ); + void ( __stdcall * pfnFree)(void *); + + + + + + + + unsigned char * StackTop; + + + + + + unsigned char * pPresentedType; + unsigned char * pTransmitType; +# 715 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 + handle_t SavedHandle; + + + + + const struct _MIDL_STUB_DESC * StubDesc; + + + + + struct _FULL_PTR_XLAT_TABLES * FullPtrXlatTables; + unsigned long FullPtrRefId; + + unsigned long PointerLength; + + int fInDontFree :1; + int fDontCallFreeInst :1; + int fUnused1 :1; + int fHasReturn :1; + int fHasExtensions :1; + int fHasNewCorrDesc :1; + int fIsIn :1; + int fIsOut :1; + int fIsOicf :1; + int fBufferValid :1; + int fHasMemoryValidateCallback: 1; + int fInFree :1; + int fNeedMCCP :1; + int fUnused2 :3; + int fUnused3 :16; + + + unsigned long dwDestContext; + void * pvDestContext; + + NDR_SCONTEXT * SavedContextHandles; + + long ParamNumber; + + struct IRpcChannelBuffer * pRpcChannelBuffer; + + PARRAY_INFO pArrayInfo; + unsigned long * SizePtrCountArray; + unsigned long * SizePtrOffsetArray; + unsigned long * SizePtrLengthArray; + + + + + void * pArgQueue; + + unsigned long dwStubPhase; + + void * LowStackMark; + + + + + PNDR_ASYNC_MESSAGE pAsyncMsg; + PNDR_CORRELATION_INFO pCorrInfo; + unsigned char * pCorrMemory; + + void * pMemoryList; +# 788 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 + INT_PTR pCSInfo; + + unsigned char * ConformanceMark; + unsigned char * VarianceMark; + + INT_PTR Unused; + + struct _NDR_PROC_CONTEXT * pContext; +# 807 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 + void * ContextHandleHash; + void * pUserMarshalList; + INT_PTR Reserved51_3; + INT_PTR Reserved51_4; + INT_PTR Reserved51_5; + + + + + + } MIDL_STUB_MESSAGE, *PMIDL_STUB_MESSAGE; + + +typedef struct _MIDL_STUB_MESSAGE MIDL_STUB_MESSAGE, *PMIDL_STUB_MESSAGE; + + + + +typedef void * + ( __stdcall * GENERIC_BINDING_ROUTINE) + (void *); +typedef void + ( __stdcall * GENERIC_UNBIND_ROUTINE) + (void *, unsigned char *); + +typedef struct _GENERIC_BINDING_ROUTINE_PAIR + { + GENERIC_BINDING_ROUTINE pfnBind; + GENERIC_UNBIND_ROUTINE pfnUnbind; + } GENERIC_BINDING_ROUTINE_PAIR, *PGENERIC_BINDING_ROUTINE_PAIR; + +typedef struct __GENERIC_BINDING_INFO + { + void * pObj; + unsigned int Size; + GENERIC_BINDING_ROUTINE pfnBind; + GENERIC_UNBIND_ROUTINE pfnUnbind; + } GENERIC_BINDING_INFO, *PGENERIC_BINDING_INFO; +# 858 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +typedef void ( __stdcall * XMIT_HELPER_ROUTINE) + ( PMIDL_STUB_MESSAGE ); + +typedef struct _XMIT_ROUTINE_QUINTUPLE + { + XMIT_HELPER_ROUTINE pfnTranslateToXmit; + XMIT_HELPER_ROUTINE pfnTranslateFromXmit; + XMIT_HELPER_ROUTINE pfnFreeXmit; + XMIT_HELPER_ROUTINE pfnFreeInst; + } XMIT_ROUTINE_QUINTUPLE, *PXMIT_ROUTINE_QUINTUPLE; + +typedef unsigned long +( __stdcall * USER_MARSHAL_SIZING_ROUTINE) + (unsigned long *, + unsigned long, + void * ); + +typedef unsigned char * +( __stdcall * USER_MARSHAL_MARSHALLING_ROUTINE) + (unsigned long *, + unsigned char * , + void * ); + +typedef unsigned char * +( __stdcall * USER_MARSHAL_UNMARSHALLING_ROUTINE) + (unsigned long *, + unsigned char *, + void * ); + +typedef void ( __stdcall * USER_MARSHAL_FREEING_ROUTINE) + (unsigned long *, + void * ); + +typedef struct _USER_MARSHAL_ROUTINE_QUADRUPLE + { + USER_MARSHAL_SIZING_ROUTINE pfnBufferSize; + USER_MARSHAL_MARSHALLING_ROUTINE pfnMarshall; + USER_MARSHAL_UNMARSHALLING_ROUTINE pfnUnmarshall; + USER_MARSHAL_FREEING_ROUTINE pfnFree; + } USER_MARSHAL_ROUTINE_QUADRUPLE; + + + +typedef enum _USER_MARSHAL_CB_TYPE +{ + USER_MARSHAL_CB_BUFFER_SIZE, + USER_MARSHAL_CB_MARSHALL, + USER_MARSHAL_CB_UNMARSHALL, + USER_MARSHAL_CB_FREE +} USER_MARSHAL_CB_TYPE; + +typedef struct _USER_MARSHAL_CB +{ + unsigned long Flags; + PMIDL_STUB_MESSAGE pStubMsg; + PFORMAT_STRING pReserve; + unsigned long Signature; + USER_MARSHAL_CB_TYPE CBType; + PFORMAT_STRING pFormat; + PFORMAT_STRING pTypeFormat; +} USER_MARSHAL_CB; +# 928 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +typedef struct _MALLOC_FREE_STRUCT + { + void * ( __stdcall * pfnAllocate)(size_t); + void ( __stdcall * pfnFree)(void *); + } MALLOC_FREE_STRUCT; + +typedef struct _COMM_FAULT_OFFSETS + { + short CommOffset; + short FaultOffset; + } COMM_FAULT_OFFSETS; + + + + + +typedef enum _IDL_CS_CONVERT + { + IDL_CS_NO_CONVERT, + IDL_CS_IN_PLACE_CONVERT, + IDL_CS_NEW_BUFFER_CONVERT + } IDL_CS_CONVERT; + +typedef void +( __stdcall * CS_TYPE_NET_SIZE_ROUTINE) + (RPC_BINDING_HANDLE hBinding, + unsigned long ulNetworkCodeSet, + unsigned long ulLocalBufferSize, + IDL_CS_CONVERT * conversionType, + unsigned long * pulNetworkBufferSize, + error_status_t * pStatus); + +typedef void +( __stdcall * CS_TYPE_LOCAL_SIZE_ROUTINE) + (RPC_BINDING_HANDLE hBinding, + unsigned long ulNetworkCodeSet, + unsigned long ulNetworkBufferSize, + IDL_CS_CONVERT * conversionType, + unsigned long * pulLocalBufferSize, + error_status_t * pStatus); + +typedef void +( __stdcall * CS_TYPE_TO_NETCS_ROUTINE) + (RPC_BINDING_HANDLE hBinding, + unsigned long ulNetworkCodeSet, + void * pLocalData, + unsigned long ulLocalDataLength, + byte * pNetworkData, + unsigned long * pulNetworkDataLength, + error_status_t * pStatus); + +typedef void +( __stdcall * CS_TYPE_FROM_NETCS_ROUTINE) + (RPC_BINDING_HANDLE hBinding, + unsigned long ulNetworkCodeSet, + byte * pNetworkData, + unsigned long ulNetworkDataLength, + unsigned long ulLocalBufferSize, + void * pLocalData, + unsigned long * pulLocalDataLength, + error_status_t * pStatus); + +typedef void +( __stdcall * CS_TAG_GETTING_ROUTINE) + (RPC_BINDING_HANDLE hBinding, + int fServerSide, + unsigned long * pulSendingTag, + unsigned long * pulDesiredReceivingTag, + unsigned long * pulReceivingTag, + error_status_t * pStatus); + +void __stdcall +RpcCsGetTags( + RPC_BINDING_HANDLE hBinding, + int fServerSide, + unsigned long * pulSendingTag, + unsigned long * pulDesiredReceivingTag, + unsigned long * pulReceivingTag, + error_status_t * pStatus); + +typedef struct _NDR_CS_SIZE_CONVERT_ROUTINES + { + CS_TYPE_NET_SIZE_ROUTINE pfnNetSize; + CS_TYPE_TO_NETCS_ROUTINE pfnToNetCs; + CS_TYPE_LOCAL_SIZE_ROUTINE pfnLocalSize; + CS_TYPE_FROM_NETCS_ROUTINE pfnFromNetCs; + } NDR_CS_SIZE_CONVERT_ROUTINES; + +typedef struct _NDR_CS_ROUTINES + { + NDR_CS_SIZE_CONVERT_ROUTINES *pSizeConvertRoutines; + CS_TAG_GETTING_ROUTINE *pTagGettingRoutines; + } NDR_CS_ROUTINES; + +typedef struct _NDR_EXPR_DESC +{ + const unsigned short * pOffset; + PFORMAT_STRING pFormatExpr; +} NDR_EXPR_DESC; + + + + +typedef struct _MIDL_STUB_DESC + { + void * RpcInterfaceInformation; + + void * ( __stdcall * pfnAllocate)(size_t); + void ( __stdcall * pfnFree)(void *); + + union + { + handle_t * pAutoHandle; + handle_t * pPrimitiveHandle; + PGENERIC_BINDING_INFO pGenericBindingInfo; + } IMPLICIT_HANDLE_INFO; + + const NDR_RUNDOWN * apfnNdrRundownRoutines; + const GENERIC_BINDING_ROUTINE_PAIR * aGenericBindingRoutinePairs; + const EXPR_EVAL * apfnExprEval; + const XMIT_ROUTINE_QUINTUPLE * aXmitQuintuple; + + const unsigned char * pFormatTypes; + + int fCheckBounds; + + + unsigned long Version; + + MALLOC_FREE_STRUCT * pMallocFreeStruct; + + long MIDLVersion; + + const COMM_FAULT_OFFSETS * CommFaultOffsets; + + + const USER_MARSHAL_ROUTINE_QUADRUPLE * aUserMarshalQuadruple; + + + const NDR_NOTIFY_ROUTINE * NotifyRoutineTable; + + + + + + ULONG_PTR mFlags; + + + const NDR_CS_ROUTINES * CsRoutineTables; + + void * ProxyServerInfo; + const NDR_EXPR_DESC * pExprInfo; + + + + } MIDL_STUB_DESC; + + +typedef const MIDL_STUB_DESC * PMIDL_STUB_DESC; + +typedef void * PMIDL_XMIT_TYPE; + + + + + + + +#pragma warning(push) + +#pragma warning(disable: 4200) + +typedef struct _MIDL_FORMAT_STRING + { + short Pad; + unsigned char Format[]; + } MIDL_FORMAT_STRING; + + +#pragma warning(pop) +# 1117 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +typedef void ( __stdcall * STUB_THUNK)( PMIDL_STUB_MESSAGE ); + + +typedef long ( __stdcall * SERVER_ROUTINE)(); + + + + + + + +typedef struct _MIDL_METHOD_PROPERTY +{ + unsigned long Id; + ULONG_PTR Value; +} MIDL_METHOD_PROPERTY, *PMIDL_METHOD_PROPERTY; + +typedef struct _MIDL_METHOD_PROPERTY_MAP +{ + unsigned long Count; + const MIDL_METHOD_PROPERTY *Properties; +} MIDL_METHOD_PROPERTY_MAP, *PMIDL_METHOD_PROPERTY_MAP; + +typedef struct _MIDL_INTERFACE_METHOD_PROPERTIES +{ + unsigned short MethodCount; + const MIDL_METHOD_PROPERTY_MAP* const *MethodProperties; +} MIDL_INTERFACE_METHOD_PROPERTIES; + + + + +typedef struct _MIDL_SERVER_INFO_ + { + PMIDL_STUB_DESC pStubDesc; + const SERVER_ROUTINE * DispatchTable; + PFORMAT_STRING ProcString; + const unsigned short * FmtStringOffset; + const STUB_THUNK * ThunkTable; + PRPC_SYNTAX_IDENTIFIER pTransferSyntax; + ULONG_PTR nCount; + PMIDL_SYNTAX_INFO pSyntaxInfo; + } MIDL_SERVER_INFO, *PMIDL_SERVER_INFO; + + + + + + +typedef struct _MIDL_STUBLESS_PROXY_INFO + { + PMIDL_STUB_DESC pStubDesc; + PFORMAT_STRING ProcFormatString; + const unsigned short * FormatStringOffset; + PRPC_SYNTAX_IDENTIFIER pTransferSyntax; + ULONG_PTR nCount; + PMIDL_SYNTAX_INFO pSyntaxInfo; + } MIDL_STUBLESS_PROXY_INFO; + +typedef MIDL_STUBLESS_PROXY_INFO * PMIDL_STUBLESS_PROXY_INFO; + + + + +typedef struct _MIDL_SYNTAX_INFO +{ +RPC_SYNTAX_IDENTIFIER TransferSyntax; +RPC_DISPATCH_TABLE * DispatchTable; +PFORMAT_STRING ProcString; +const unsigned short * FmtStringOffset; +PFORMAT_STRING TypeString; +const void * aUserMarshalQuadruple; +const MIDL_INTERFACE_METHOD_PROPERTIES *pMethodProperties; +ULONG_PTR pReserved2; +} MIDL_SYNTAX_INFO, *PMIDL_SYNTAX_INFO; + +typedef unsigned short * PARAM_OFFSETTABLE, *PPARAM_OFFSETTABLE; + + + + + +typedef union _CLIENT_CALL_RETURN + { + void * Pointer; + LONG_PTR Simple; + } CLIENT_CALL_RETURN; + + +typedef enum + { + XLAT_SERVER = 1, + XLAT_CLIENT + } XLAT_SIDE; + +typedef struct _FULL_PTR_XLAT_TABLES +{ + void * RefIdToPointer; + void * PointerToRefId; + unsigned long NextRefId; + XLAT_SIDE XlatSide; +} FULL_PTR_XLAT_TABLES, *PFULL_PTR_XLAT_TABLES; + + + + + +typedef enum _system_handle_t +{ + SYSTEM_HANDLE_FILE = 0, + SYSTEM_HANDLE_SEMAPHORE = 1, + SYSTEM_HANDLE_EVENT = 2, + SYSTEM_HANDLE_MUTEX = 3, + SYSTEM_HANDLE_PROCESS = 4, + SYSTEM_HANDLE_TOKEN = 5, + SYSTEM_HANDLE_SECTION = 6, + SYSTEM_HANDLE_REG_KEY = 7, + SYSTEM_HANDLE_THREAD = 8, + SYSTEM_HANDLE_COMPOSITION_OBJECT = 9, + SYSTEM_HANDLE_SOCKET = 10, + SYSTEM_HANDLE_JOB = 11, + SYSTEM_HANDLE_PIPE = 12, + SYSTEM_HANDLE_MAX = 12, + SYSTEM_HANDLE_INVALID = 0xFF, +} system_handle_t; + + + + + +enum { + MidlInterceptionInfoVersionOne = 1 +}; + +enum { + MidlWinrtTypeSerializationInfoVersionOne = 1 +}; + + + +typedef struct _MIDL_INTERCEPTION_INFO +{ + unsigned long Version; + PFORMAT_STRING ProcString; + const unsigned short *ProcFormatOffsetTable; + unsigned long ProcCount; + PFORMAT_STRING TypeString; +} MIDL_INTERCEPTION_INFO, *PMIDL_INTERCEPTION_INFO; + +typedef struct _MIDL_WINRT_TYPE_SERIALIZATION_INFO +{ + unsigned long Version; + PFORMAT_STRING TypeFormatString; + unsigned short FormatStringSize; + unsigned short TypeOffset; + PMIDL_STUB_DESC StubDesc; +} MIDL_WINRT_TYPE_SERIALIZATION_INFO, *PMIDL_WINRT_TYPE_SERIALIZATION_INFO; + + + + + +RPC_STATUS __stdcall +NdrClientGetSupportedSyntaxes( + RPC_CLIENT_INTERFACE * pInf, + unsigned long * pCount, + MIDL_SYNTAX_INFO ** pArr ); + + +RPC_STATUS __stdcall +NdrServerGetSupportedSyntaxes( + RPC_SERVER_INTERFACE * pInf, + unsigned long * pCount, + MIDL_SYNTAX_INFO ** pArr, + unsigned long * pPreferSyntaxIndex); + + + + +#pragma warning(push) + +#pragma warning(disable: 28740) + +__declspec(dllimport) +void +__stdcall +NdrSimpleTypeMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + unsigned char FormatChar + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrPointerMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrCsArrayMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrCsTagMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrSimpleStructMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrConformantStructMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrConformantVaryingStructMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrComplexStructMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrFixedArrayMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrConformantArrayMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrConformantVaryingArrayMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrVaryingArrayMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrComplexArrayMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrNonConformantStringMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrConformantStringMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrEncapsulatedUnionMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrNonEncapsulatedUnionMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrByteCountPointerMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrXmitOrRepAsMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrUserMarshalMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrInterfacePointerMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrClientContextMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + NDR_CCONTEXT ContextHandle, + int fCheck + ); + +__declspec(dllimport) +void +__stdcall +NdrServerContextMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + NDR_SCONTEXT ContextHandle, + NDR_RUNDOWN RundownRoutine + ); + +__declspec(dllimport) +void +__stdcall +NdrServerContextNewMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + NDR_SCONTEXT ContextHandle, + NDR_RUNDOWN RundownRoutine, + PFORMAT_STRING pFormat + ); + + + + + +__declspec(dllimport) +void +__stdcall +NdrSimpleTypeUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + unsigned char FormatChar + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrCsArrayUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char ** ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrCsTagUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char ** ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrRangeUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char ** ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + +__declspec(dllimport) +void +__stdcall +NdrCorrelationInitialize( + PMIDL_STUB_MESSAGE pStubMsg, + void * pMemory, + unsigned long CacheSize, + unsigned long flags + ); + +__declspec(dllimport) +void +__stdcall +NdrCorrelationPass( + PMIDL_STUB_MESSAGE pStubMsg + ); + +__declspec(dllimport) +void +__stdcall +NdrCorrelationFree( + PMIDL_STUB_MESSAGE pStubMsg + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrPointerUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrSimpleStructUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrConformantStructUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrConformantVaryingStructUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrComplexStructUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrFixedArrayUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrConformantArrayUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrConformantVaryingArrayUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrVaryingArrayUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrComplexArrayUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrNonConformantStringUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrConformantStringUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrEncapsulatedUnionUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrNonEncapsulatedUnionUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrByteCountPointerUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrXmitOrRepAsUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrUserMarshalUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + + + +__declspec(dllimport) +unsigned char * +__stdcall +NdrInterfacePointerUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * * ppMemory, + PFORMAT_STRING pFormat, + unsigned char fMustAlloc + ); + + + +__declspec(dllimport) +void +__stdcall +NdrClientContextUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + NDR_CCONTEXT * pContextHandle, + RPC_BINDING_HANDLE BindHandle + ); + +__declspec(dllimport) +NDR_SCONTEXT +__stdcall +NdrServerContextUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg + ); + + + +__declspec(dllimport) +NDR_SCONTEXT +__stdcall +NdrContextHandleInitialize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +NDR_SCONTEXT +__stdcall +NdrServerContextNewUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + + + + + +__declspec(dllimport) +void +__stdcall +NdrPointerBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrCsArrayBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrCsTagBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrSimpleStructBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrConformantStructBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrConformantVaryingStructBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrComplexStructBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrFixedArrayBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrConformantArrayBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrConformantVaryingArrayBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrVaryingArrayBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrComplexArrayBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrConformantStringBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrNonConformantStringBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrEncapsulatedUnionBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrNonEncapsulatedUnionBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrByteCountPointerBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrXmitOrRepAsBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrUserMarshalBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrInterfacePointerBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrContextHandleSize( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + + + +__declspec(dllimport) +unsigned long +__stdcall +NdrPointerMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned long +__stdcall +NdrContextHandleMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + + + + +__declspec(dllimport) +unsigned long +__stdcall +NdrCsArrayMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned long +__stdcall +NdrCsTagMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned long +__stdcall +NdrSimpleStructMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned long +__stdcall +NdrConformantStructMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned long +__stdcall +NdrConformantVaryingStructMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned long +__stdcall +NdrComplexStructMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned long +__stdcall +NdrFixedArrayMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned long +__stdcall +NdrConformantArrayMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned long +__stdcall +NdrConformantVaryingArrayMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned long +__stdcall +NdrVaryingArrayMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned long +__stdcall +NdrComplexArrayMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned long +__stdcall +NdrConformantStringMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned long +__stdcall +NdrNonConformantStringMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned long +__stdcall +NdrEncapsulatedUnionMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +unsigned long +__stdcall +NdrNonEncapsulatedUnionMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned long +__stdcall +NdrXmitOrRepAsMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned long +__stdcall +NdrUserMarshalMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +unsigned long +__stdcall +NdrInterfacePointerMemorySize( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + + + + + +__declspec(dllimport) +void +__stdcall +NdrPointerFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrCsArrayFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrSimpleStructFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrConformantStructFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrConformantVaryingStructFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrComplexStructFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrFixedArrayFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrConformantArrayFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrConformantVaryingArrayFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrVaryingArrayFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrComplexArrayFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrEncapsulatedUnionFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + +__declspec(dllimport) +void +__stdcall +NdrNonEncapsulatedUnionFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrByteCountPointerFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrXmitOrRepAsFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrUserMarshalFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +void +__stdcall +NdrInterfacePointerFree( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pMemory, + PFORMAT_STRING pFormat + ); + + + + + +__declspec(dllimport) +void +__stdcall +NdrConvert2( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat, + long NumberParams + ); + +__declspec(dllimport) +void +__stdcall +NdrConvert( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); +# 2431 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +__declspec(dllimport) +unsigned char * +__stdcall +NdrUserMarshalSimpleTypeConvert( + unsigned long * pFlags, + unsigned char * pBuffer, + unsigned char FormatChar + ); + + + + + +__declspec(dllimport) +void +__stdcall +NdrClientInitializeNew( + PRPC_MESSAGE pRpcMsg, + PMIDL_STUB_MESSAGE pStubMsg, + PMIDL_STUB_DESC pStubDescriptor, + unsigned int ProcNum + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrServerInitializeNew( + PRPC_MESSAGE pRpcMsg, + PMIDL_STUB_MESSAGE pStubMsg, + PMIDL_STUB_DESC pStubDescriptor + ); + +__declspec(dllimport) +void +__stdcall +NdrServerInitializePartial( + PRPC_MESSAGE pRpcMsg, + PMIDL_STUB_MESSAGE pStubMsg, + PMIDL_STUB_DESC pStubDescriptor, + unsigned long RequestedBufferSize + ); + +__declspec(dllimport) +void +__stdcall +NdrClientInitialize( + PRPC_MESSAGE pRpcMsg, + PMIDL_STUB_MESSAGE pStubMsg, + PMIDL_STUB_DESC pStubDescriptor, + unsigned int ProcNum + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrServerInitialize( + PRPC_MESSAGE pRpcMsg, + PMIDL_STUB_MESSAGE pStubMsg, + PMIDL_STUB_DESC pStubDescriptor + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrServerInitializeUnmarshall ( + PMIDL_STUB_MESSAGE pStubMsg, + PMIDL_STUB_DESC pStubDescriptor, + PRPC_MESSAGE pRpcMsg + ); + +__declspec(dllimport) +void +__stdcall +NdrServerInitializeMarshall ( + PRPC_MESSAGE pRpcMsg, + PMIDL_STUB_MESSAGE pStubMsg + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrGetBuffer( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned long BufferLength, + RPC_BINDING_HANDLE Handle + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrNsGetBuffer( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned long BufferLength, + RPC_BINDING_HANDLE Handle + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrSendReceive( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pBufferEnd + ); + +__declspec(dllimport) +unsigned char * +__stdcall +NdrNsSendReceive( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned char * pBufferEnd, + RPC_BINDING_HANDLE * pAutoHandle + ); + +__declspec(dllimport) +void +__stdcall +NdrFreeBuffer( + PMIDL_STUB_MESSAGE pStubMsg + ); + +__declspec(dllimport) +HRESULT +__stdcall +NdrGetDcomProtocolVersion( + PMIDL_STUB_MESSAGE pStubMsg, + RPC_VERSION * pVersion ); + +#pragma warning(pop) + + + + + + + +CLIENT_CALL_RETURN __cdecl +NdrClientCall2( + PMIDL_STUB_DESC pStubDescriptor, + PFORMAT_STRING pFormat, + ... + ); + +CLIENT_CALL_RETURN __cdecl +NdrClientCall( + PMIDL_STUB_DESC pStubDescriptor, + PFORMAT_STRING pFormat, + ... + ); + +CLIENT_CALL_RETURN __cdecl +NdrAsyncClientCall( + PMIDL_STUB_DESC pStubDescriptor, + PFORMAT_STRING pFormat, + ... + ); +# 2619 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +CLIENT_CALL_RETURN __cdecl +NdrDcomAsyncClientCall( + PMIDL_STUB_DESC pStubDescriptor, + PFORMAT_STRING pFormat, + ... + ); +# 2644 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +typedef enum { + STUB_UNMARSHAL, + STUB_CALL_SERVER, + STUB_MARSHAL, + STUB_CALL_SERVER_NO_HRESULT +}STUB_PHASE; + +typedef enum { + PROXY_CALCSIZE, + PROXY_GETBUFFER, + PROXY_MARSHAL, + PROXY_SENDRECEIVE, + PROXY_UNMARSHAL +}PROXY_PHASE; + +struct IRpcStubBuffer; + + + +__declspec(dllimport) +void +__stdcall +NdrAsyncServerCall( + PRPC_MESSAGE pRpcMsg + ); + + +__declspec(dllimport) +long +__stdcall +NdrAsyncStubCall( + struct IRpcStubBuffer * pThis, + struct IRpcChannelBuffer * pChannel, + PRPC_MESSAGE pRpcMsg, + unsigned long * pdwStubPhase + ); +# 2688 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +__declspec(dllimport) +long +__stdcall +NdrDcomAsyncStubCall( + struct IRpcStubBuffer * pThis, + struct IRpcChannelBuffer * pChannel, + PRPC_MESSAGE pRpcMsg, + unsigned long * pdwStubPhase + ); + + + + + + + +__declspec(dllimport) +long +__stdcall +NdrStubCall2( + void * pThis, + void * pChannel, + PRPC_MESSAGE pRpcMsg, + unsigned long * pdwStubPhase + ); + +__declspec(dllimport) +void +__stdcall +NdrServerCall2( + PRPC_MESSAGE pRpcMsg + ); + +__declspec(dllimport) +long +__stdcall +NdrStubCall ( + void * pThis, + void * pChannel, + PRPC_MESSAGE pRpcMsg, + unsigned long * pdwStubPhase + ); + +__declspec(dllimport) +void +__stdcall +NdrServerCall( + PRPC_MESSAGE pRpcMsg + ); + +__declspec(dllimport) +int +__stdcall +NdrServerUnmarshall( + void * pChannel, + PRPC_MESSAGE pRpcMsg, + PMIDL_STUB_MESSAGE pStubMsg, + PMIDL_STUB_DESC pStubDescriptor, + PFORMAT_STRING pFormat, + void * pParamList + ); + +__declspec(dllimport) +void +__stdcall +NdrServerMarshall( + void * pThis, + void * pChannel, + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat + ); + + + +__declspec(dllimport) +RPC_STATUS +__stdcall +NdrMapCommAndFaultStatus( + PMIDL_STUB_MESSAGE pStubMsg, + unsigned long * pCommStatus, + unsigned long * pFaultStatus, + RPC_STATUS Status + ); + + + + + + + +typedef void * RPC_SS_THREAD_HANDLE; + +typedef void * __stdcall +RPC_CLIENT_ALLOC ( + size_t Size + ); + +typedef void __stdcall +RPC_CLIENT_FREE ( + void * Ptr + ); + + + + + +__declspec(dllimport) +void * +__stdcall +RpcSsAllocate ( + size_t Size + ); + +__declspec(dllimport) +void +__stdcall +RpcSsDisableAllocate ( + void + ); + +__declspec(dllimport) +void +__stdcall +RpcSsEnableAllocate ( + void + ); + +__declspec(dllimport) +void +__stdcall +RpcSsFree ( + void * NodeToFree + ); + +__declspec(dllimport) +RPC_SS_THREAD_HANDLE +__stdcall +RpcSsGetThreadHandle ( + void + ); + +__declspec(dllimport) +void +__stdcall +RpcSsSetClientAllocFree ( + RPC_CLIENT_ALLOC * ClientAlloc, + RPC_CLIENT_FREE * ClientFree + ); + +__declspec(dllimport) +void +__stdcall +RpcSsSetThreadHandle ( + RPC_SS_THREAD_HANDLE Id + ); + +__declspec(dllimport) +void +__stdcall +RpcSsSwapClientAllocFree ( + RPC_CLIENT_ALLOC * ClientAlloc, + RPC_CLIENT_FREE * ClientFree, + RPC_CLIENT_ALLOC * * OldClientAlloc, + RPC_CLIENT_FREE * * OldClientFree + ); + + + + + +__declspec(dllimport) +void * +__stdcall +RpcSmAllocate ( + size_t Size, + RPC_STATUS * pStatus + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcSmClientFree ( + void * pNodeToFree + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcSmDestroyClientContext ( + void * * ContextHandle + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcSmDisableAllocate ( + void + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcSmEnableAllocate ( + void + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcSmFree ( + void * NodeToFree + ); + +__declspec(dllimport) +RPC_SS_THREAD_HANDLE +__stdcall +RpcSmGetThreadHandle ( + RPC_STATUS * pStatus + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcSmSetClientAllocFree ( + RPC_CLIENT_ALLOC * ClientAlloc, + RPC_CLIENT_FREE * ClientFree + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcSmSetThreadHandle ( + RPC_SS_THREAD_HANDLE Id + ); + +__declspec(dllimport) +RPC_STATUS +__stdcall +RpcSmSwapClientAllocFree ( + RPC_CLIENT_ALLOC * ClientAlloc, + RPC_CLIENT_FREE * ClientFree, + RPC_CLIENT_ALLOC * * OldClientAlloc, + RPC_CLIENT_FREE * * OldClientFree + ); + + + + + +__declspec(dllimport) +void +__stdcall +NdrRpcSsEnableAllocate( + PMIDL_STUB_MESSAGE pMessage ); + +__declspec(dllimport) +void +__stdcall +NdrRpcSsDisableAllocate( + PMIDL_STUB_MESSAGE pMessage ); + +__declspec(dllimport) +void +__stdcall +NdrRpcSmSetClientToOsf( + PMIDL_STUB_MESSAGE pMessage ); + +__declspec(dllimport) +void * +__stdcall +NdrRpcSmClientAllocate ( + size_t Size + ); + +__declspec(dllimport) +void +__stdcall +NdrRpcSmClientFree ( + void * NodeToFree + ); + +__declspec(dllimport) +void * +__stdcall +NdrRpcSsDefaultAllocate ( + size_t Size + ); + +__declspec(dllimport) +void +__stdcall +NdrRpcSsDefaultFree ( + void * NodeToFree + ); +# 2991 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +__declspec(dllimport) +PFULL_PTR_XLAT_TABLES +__stdcall +NdrFullPointerXlatInit( + unsigned long NumberOfPointers, + XLAT_SIDE XlatSide + ); + +__declspec(dllimport) +void +__stdcall +NdrFullPointerXlatFree( + PFULL_PTR_XLAT_TABLES pXlatTables + ); + + +__declspec(dllimport) +void * +__stdcall +NdrAllocate( + PMIDL_STUB_MESSAGE pStubMsg, + size_t Len + ); + +__declspec(dllimport) +void +__stdcall +NdrClearOutParameters( + PMIDL_STUB_MESSAGE pStubMsg, + PFORMAT_STRING pFormat, + void * ArgAddr + ); + + + + + + +__declspec(dllimport) +void * +__stdcall +NdrOleAllocate ( + size_t Size + ); + +__declspec(dllimport) +void +__stdcall +NdrOleFree ( + void * NodeToFree + ); +# 3124 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +typedef struct _NDR_USER_MARSHAL_INFO_LEVEL1 +{ + void * Buffer; + unsigned long BufferSize; + void *(__stdcall * pfnAllocate)(size_t); + void (__stdcall * pfnFree)(void *); + struct IRpcChannelBuffer * pRpcChannelBuffer; + ULONG_PTR Reserved[5]; +} NDR_USER_MARSHAL_INFO_LEVEL1; + + + +#pragma warning(push) + +#pragma warning(disable: 4201) + + +typedef struct _NDR_USER_MARSHAL_INFO +{ + unsigned long InformationLevel; + union { + NDR_USER_MARSHAL_INFO_LEVEL1 Level1; + } ; +} NDR_USER_MARSHAL_INFO; + + + +#pragma warning(pop) + + + + + + +RPC_STATUS +__stdcall +NdrGetUserMarshalInfo ( + unsigned long * pFlags, + unsigned long InformationLevel, + NDR_USER_MARSHAL_INFO * pMarshalInfo + ); + + + + +RPC_STATUS __stdcall +NdrCreateServerInterfaceFromStub( + struct IRpcStubBuffer* pStub, + RPC_SERVER_INTERFACE *pServerIf ); + + + + +CLIENT_CALL_RETURN __cdecl +NdrClientCall3( + MIDL_STUBLESS_PROXY_INFO *pProxyInfo, + unsigned long nProcNum, + void * pReturnValue, + ... + ); + +CLIENT_CALL_RETURN __cdecl +Ndr64AsyncClientCall( + MIDL_STUBLESS_PROXY_INFO *pProxyInfo, + unsigned long nProcNum, + void * pReturnValue, + ... + ); + + + + + + + +CLIENT_CALL_RETURN __cdecl +Ndr64DcomAsyncClientCall( + MIDL_STUBLESS_PROXY_INFO *pProxyInfo, + unsigned long nProcNum, + void * pReturnValue, + ... + ); + +__declspec(dllimport) +void +__stdcall +Ndr64AsyncServerCall( + PRPC_MESSAGE pRpcMsg + ); + + + + + + + +struct IRpcStubBuffer; + +__declspec(dllimport) +void +__stdcall +Ndr64AsyncServerCall64( + PRPC_MESSAGE pRpcMsg + ); + +__declspec(dllimport) +void +__stdcall +Ndr64AsyncServerCallAll( + PRPC_MESSAGE pRpcMsg + ); + +__declspec(dllimport) +long +__stdcall +Ndr64AsyncStubCall( + struct IRpcStubBuffer * pThis, + struct IRpcChannelBuffer * pChannel, + PRPC_MESSAGE pRpcMsg, + unsigned long * pdwStubPhase + ); +# 3253 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +__declspec(dllimport) +long +__stdcall +Ndr64DcomAsyncStubCall( + struct IRpcStubBuffer * pThis, + struct IRpcChannelBuffer * pChannel, + PRPC_MESSAGE pRpcMsg, + unsigned long * pdwStubPhase + ); + + + + + + + +__declspec(dllimport) +long +__stdcall +NdrStubCall3 ( + void * pThis, + void * pChannel, + PRPC_MESSAGE pRpcMsg, + unsigned long * pdwStubPhase + ); + +__declspec(dllimport) +void +__stdcall +NdrServerCallAll( + PRPC_MESSAGE pRpcMsg + ); + +__declspec(dllimport) +void +__stdcall +NdrServerCallNdr64( + PRPC_MESSAGE pRpcMsg + ); + + +__declspec(dllimport) +void +__stdcall +NdrServerCall3( + PRPC_MESSAGE pRpcMsg + ); + + + +__declspec(dllimport) +void +__stdcall +NdrPartialIgnoreClientMarshall( + PMIDL_STUB_MESSAGE pStubMsg, + void * pMemory + ); + +__declspec(dllimport) +void +__stdcall +NdrPartialIgnoreServerUnmarshall( + PMIDL_STUB_MESSAGE pStubMsg, + void ** ppMemory + ); + +__declspec(dllimport) +void +__stdcall +NdrPartialIgnoreClientBufferSize( + PMIDL_STUB_MESSAGE pStubMsg, + void * pMemory + ); + +__declspec(dllimport) +void +__stdcall +NdrPartialIgnoreServerInitialize( + PMIDL_STUB_MESSAGE pStubMsg, + void ** ppMemory, + PFORMAT_STRING pFormat + ); + + +void __stdcall +RpcUserFree( handle_t AsyncHandle, void * pBuffer ); +# 3347 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 3348 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 2 3 + + + + +#pragma warning(pop) +# 23 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 2 3 +# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 1 3 +# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\guiddef.h" 1 3 +# 49 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 2 3 +# 68 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + + + +extern RPC_IF_HANDLE __MIDL_itf_wtypesbase_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_wtypesbase_0000_0000_v0_0_s_ifspec; +# 125 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 +typedef WCHAR OLECHAR; + +typedef OLECHAR *LPOLESTR; + +typedef const OLECHAR *LPCOLESTR; +# 150 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 +typedef unsigned char UCHAR; + +typedef short SHORT; + +typedef unsigned short USHORT; + +typedef DWORD ULONG; + +typedef double DOUBLE; +# 270 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 +typedef struct _COAUTHIDENTITY + { + USHORT *User; + ULONG UserLength; + USHORT *Domain; + ULONG DomainLength; + USHORT *Password; + ULONG PasswordLength; + ULONG Flags; + } COAUTHIDENTITY; + +typedef struct _COAUTHINFO + { + DWORD dwAuthnSvc; + DWORD dwAuthzSvc; + LPWSTR pwszServerPrincName; + DWORD dwAuthnLevel; + DWORD dwImpersonationLevel; + COAUTHIDENTITY *pAuthIdentityData; + DWORD dwCapabilities; + } COAUTHINFO; + +typedef LONG SCODE; + +typedef SCODE *PSCODE; +# 324 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 +typedef +enum tagMEMCTX + { + MEMCTX_TASK = 1, + MEMCTX_SHARED = 2, + MEMCTX_MACSYSTEM = 3, + MEMCTX_UNKNOWN = -1, + MEMCTX_SAME = -2 + } MEMCTX; +# 365 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 +typedef +enum tagCLSCTX + { + CLSCTX_INPROC_SERVER = 0x1, + CLSCTX_INPROC_HANDLER = 0x2, + CLSCTX_LOCAL_SERVER = 0x4, + CLSCTX_INPROC_SERVER16 = 0x8, + CLSCTX_REMOTE_SERVER = 0x10, + CLSCTX_INPROC_HANDLER16 = 0x20, + CLSCTX_RESERVED1 = 0x40, + CLSCTX_RESERVED2 = 0x80, + CLSCTX_RESERVED3 = 0x100, + CLSCTX_RESERVED4 = 0x200, + CLSCTX_NO_CODE_DOWNLOAD = 0x400, + CLSCTX_RESERVED5 = 0x800, + CLSCTX_NO_CUSTOM_MARSHAL = 0x1000, + CLSCTX_ENABLE_CODE_DOWNLOAD = 0x2000, + CLSCTX_NO_FAILURE_LOG = 0x4000, + CLSCTX_DISABLE_AAA = 0x8000, + CLSCTX_ENABLE_AAA = 0x10000, + CLSCTX_FROM_DEFAULT_CONTEXT = 0x20000, + CLSCTX_ACTIVATE_X86_SERVER = 0x40000, + CLSCTX_ACTIVATE_32_BIT_SERVER = CLSCTX_ACTIVATE_X86_SERVER, + CLSCTX_ACTIVATE_64_BIT_SERVER = 0x80000, + CLSCTX_ENABLE_CLOAKING = 0x100000, + CLSCTX_APPCONTAINER = 0x400000, + CLSCTX_ACTIVATE_AAA_AS_IU = 0x800000, + CLSCTX_RESERVED6 = 0x1000000, + CLSCTX_ACTIVATE_ARM32_SERVER = 0x2000000, + CLSCTX_ALLOW_LOWER_TRUST_REGISTRATION = 0x4000000, + CLSCTX_PS_DLL = 0x80000000 + } CLSCTX; +# 420 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 +typedef +enum tagMSHLFLAGS + { + MSHLFLAGS_NORMAL = 0, + MSHLFLAGS_TABLESTRONG = 1, + MSHLFLAGS_TABLEWEAK = 2, + MSHLFLAGS_NOPING = 4, + MSHLFLAGS_RESERVED1 = 8, + MSHLFLAGS_RESERVED2 = 16, + MSHLFLAGS_RESERVED3 = 32, + MSHLFLAGS_RESERVED4 = 64 + } MSHLFLAGS; + +typedef +enum tagMSHCTX + { + MSHCTX_LOCAL = 0, + MSHCTX_NOSHAREDMEM = 1, + MSHCTX_DIFFERENTMACHINE = 2, + MSHCTX_INPROC = 3, + MSHCTX_CROSSCTX = 4, + MSHCTX_CONTAINER = 5 + } MSHCTX; + +typedef struct _BYTE_BLOB + { + ULONG clSize; + byte abData[ 1 ]; + } BYTE_BLOB; + +typedef BYTE_BLOB *UP_BYTE_BLOB; + +typedef struct _WORD_BLOB + { + ULONG clSize; + unsigned short asData[ 1 ]; + } WORD_BLOB; + +typedef WORD_BLOB *UP_WORD_BLOB; + +typedef struct _DWORD_BLOB + { + ULONG clSize; + ULONG alData[ 1 ]; + } DWORD_BLOB; + +typedef DWORD_BLOB *UP_DWORD_BLOB; + +typedef struct _FLAGGED_BYTE_BLOB + { + ULONG fFlags; + ULONG clSize; + byte abData[ 1 ]; + } FLAGGED_BYTE_BLOB; + +typedef FLAGGED_BYTE_BLOB *UP_FLAGGED_BYTE_BLOB; + +typedef struct _FLAGGED_WORD_BLOB + { + ULONG fFlags; + ULONG clSize; + unsigned short asData[ 1 ]; + } FLAGGED_WORD_BLOB; + +typedef FLAGGED_WORD_BLOB *UP_FLAGGED_WORD_BLOB; + +typedef struct _BYTE_SIZEDARR + { + ULONG clSize; + byte *pData; + } BYTE_SIZEDARR; + +typedef struct _SHORT_SIZEDARR + { + ULONG clSize; + unsigned short *pData; + } WORD_SIZEDARR; + +typedef struct _LONG_SIZEDARR + { + ULONG clSize; + ULONG *pData; + } DWORD_SIZEDARR; + +typedef struct _HYPER_SIZEDARR + { + ULONG clSize; + __int64 *pData; + } HYPER_SIZEDARR; + + + +extern RPC_IF_HANDLE IWinTypesBase_v0_1_c_ifspec; +extern RPC_IF_HANDLE IWinTypesBase_v0_1_s_ifspec; + + + + + +typedef boolean BOOLEAN; + + + + + +typedef struct tagBLOB + { + ULONG cbSize; + BYTE *pBlobData; + } BLOB; + +typedef struct tagBLOB *LPBLOB; +# 566 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 +#pragma warning(pop) + + + +extern RPC_IF_HANDLE __MIDL_itf_wtypesbase_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_wtypesbase_0000_0001_v0_0_s_ifspec; +# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 2 3 +# 67 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + + + +extern RPC_IF_HANDLE __MIDL_itf_wtypes_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_wtypes_0000_0000_v0_0_s_ifspec; + + + + + + + +typedef struct tagRemHGLOBAL + { + LONG fNullHGlobal; + ULONG cbData; + byte data[ 1 ]; + } RemHGLOBAL; + +typedef struct tagRemHMETAFILEPICT + { + LONG mm; + LONG xExt; + LONG yExt; + ULONG cbData; + byte data[ 1 ]; + } RemHMETAFILEPICT; + +typedef struct tagRemHENHMETAFILE + { + ULONG cbData; + byte data[ 1 ]; + } RemHENHMETAFILE; + +typedef struct tagRemHBITMAP + { + ULONG cbData; + byte data[ 1 ]; + } RemHBITMAP; + +typedef struct tagRemHPALETTE + { + ULONG cbData; + byte data[ 1 ]; + } RemHPALETTE; + +typedef struct tagRemBRUSH + { + ULONG cbData; + byte data[ 1 ]; + } RemHBRUSH; +# 353 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 +typedef +enum tagDVASPECT + { + DVASPECT_CONTENT = 1, + DVASPECT_THUMBNAIL = 2, + DVASPECT_ICON = 4, + DVASPECT_DOCPRINT = 8 + } DVASPECT; + +typedef +enum tagSTGC + { + STGC_DEFAULT = 0, + STGC_OVERWRITE = 1, + STGC_ONLYIFCURRENT = 2, + STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4, + STGC_CONSOLIDATE = 8 + } STGC; + +typedef +enum tagSTGMOVE + { + STGMOVE_MOVE = 0, + STGMOVE_COPY = 1, + STGMOVE_SHALLOWCOPY = 2 + } STGMOVE; + +typedef +enum tagSTATFLAG + { + STATFLAG_DEFAULT = 0, + STATFLAG_NONAME = 1, + STATFLAG_NOOPEN = 2 + } STATFLAG; + +typedef void *HCONTEXT; + + + +typedef DWORD LCID; + + + + +typedef USHORT LANGID; +# 406 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 +typedef struct _userCLIPFORMAT + { + LONG fContext; + union __MIDL_IWinTypes_0001 + { + DWORD dwValue; + wchar_t *pwszName; + } u; + } userCLIPFORMAT; + +typedef userCLIPFORMAT *wireCLIPFORMAT; + +typedef WORD CLIPFORMAT; + +typedef struct _GDI_NONREMOTE + { + LONG fContext; + union __MIDL_IWinTypes_0002 + { + LONG hInproc; + DWORD_BLOB *hRemote; + } u; + } GDI_NONREMOTE; + +typedef struct _userHGLOBAL + { + LONG fContext; + union __MIDL_IWinTypes_0003 + { + LONG hInproc; + FLAGGED_BYTE_BLOB *hRemote; + __int64 hInproc64; + } u; + } userHGLOBAL; + +typedef userHGLOBAL *wireHGLOBAL; + +typedef struct _userHMETAFILE + { + LONG fContext; + union __MIDL_IWinTypes_0004 + { + LONG hInproc; + BYTE_BLOB *hRemote; + __int64 hInproc64; + } u; + } userHMETAFILE; + +typedef struct _remoteMETAFILEPICT + { + LONG mm; + LONG xExt; + LONG yExt; + userHMETAFILE *hMF; + } remoteMETAFILEPICT; + +typedef struct _userHMETAFILEPICT + { + LONG fContext; + union __MIDL_IWinTypes_0005 + { + LONG hInproc; + remoteMETAFILEPICT *hRemote; + __int64 hInproc64; + } u; + } userHMETAFILEPICT; + +typedef struct _userHENHMETAFILE + { + LONG fContext; + union __MIDL_IWinTypes_0006 + { + LONG hInproc; + BYTE_BLOB *hRemote; + __int64 hInproc64; + } u; + } userHENHMETAFILE; + +typedef struct _userBITMAP + { + LONG bmType; + LONG bmWidth; + LONG bmHeight; + LONG bmWidthBytes; + WORD bmPlanes; + WORD bmBitsPixel; + ULONG cbSize; + byte pBuffer[ 1 ]; + } userBITMAP; + +typedef struct _userHBITMAP + { + LONG fContext; + union __MIDL_IWinTypes_0007 + { + LONG hInproc; + userBITMAP *hRemote; + __int64 hInproc64; + } u; + } userHBITMAP; + +typedef struct _userHPALETTE + { + LONG fContext; + union __MIDL_IWinTypes_0008 + { + LONG hInproc; + LOGPALETTE *hRemote; + __int64 hInproc64; + } u; + } userHPALETTE; + +typedef struct _RemotableHandle + { + LONG fContext; + union __MIDL_IWinTypes_0009 + { + LONG hInproc; + LONG hRemote; + } u; + } RemotableHandle; + +typedef RemotableHandle *wireHWND; + +typedef RemotableHandle *wireHMENU; + +typedef RemotableHandle *wireHACCEL; + +typedef RemotableHandle *wireHBRUSH; + +typedef RemotableHandle *wireHFONT; + +typedef RemotableHandle *wireHDC; + +typedef RemotableHandle *wireHICON; + +typedef RemotableHandle *wireHRGN; + +typedef RemotableHandle *wireHMONITOR; +# 622 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 +typedef userHBITMAP *wireHBITMAP; + +typedef userHPALETTE *wireHPALETTE; + +typedef userHENHMETAFILE *wireHENHMETAFILE; + +typedef userHMETAFILE *wireHMETAFILE; + +typedef userHMETAFILEPICT *wireHMETAFILEPICT; +# 646 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 +typedef void *HMETAFILEPICT; + + + +extern RPC_IF_HANDLE IWinTypes_v0_1_c_ifspec; +extern RPC_IF_HANDLE IWinTypes_v0_1_s_ifspec; + + + + + + + +#pragma warning(push) + +#pragma warning(disable: 4201) + +typedef double DATE; +# 678 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 +typedef union tagCY { + struct { + ULONG Lo; + LONG Hi; + } ; + LONGLONG int64; +} CY; + + +typedef CY *LPCY; +# 703 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 +typedef struct tagDEC { + USHORT wReserved; + union { + struct { + BYTE scale; + BYTE sign; + } ; + USHORT signscale; + } ; + ULONG Hi32; + union { + struct { + ULONG Lo32; + ULONG Mid32; + } ; + ULONGLONG Lo64; + } ; +} DECIMAL; + + + + +typedef DECIMAL *LPDECIMAL; + + + +#pragma warning(pop) + + + + +typedef FLAGGED_WORD_BLOB *wireBSTR; + + +typedef OLECHAR *BSTR; + + + + +typedef BSTR *LPBSTR; + + +typedef short VARIANT_BOOL; + + + + + + +typedef struct tagBSTRBLOB + { + ULONG cbSize; + BYTE *pData; + } BSTRBLOB; + +typedef struct tagBSTRBLOB *LPBSTRBLOB; + + + + +typedef struct tagCLIPDATA + { + ULONG cbSize; + LONG ulClipFmt; + BYTE *pClipData; + } CLIPDATA; + + + +typedef unsigned short VARTYPE; +# 833 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 +enum VARENUM + { + VT_EMPTY = 0, + VT_NULL = 1, + VT_I2 = 2, + VT_I4 = 3, + VT_R4 = 4, + VT_R8 = 5, + VT_CY = 6, + VT_DATE = 7, + VT_BSTR = 8, + VT_DISPATCH = 9, + VT_ERROR = 10, + VT_BOOL = 11, + VT_VARIANT = 12, + VT_UNKNOWN = 13, + VT_DECIMAL = 14, + VT_I1 = 16, + VT_UI1 = 17, + VT_UI2 = 18, + VT_UI4 = 19, + VT_I8 = 20, + VT_UI8 = 21, + VT_INT = 22, + VT_UINT = 23, + VT_VOID = 24, + VT_HRESULT = 25, + VT_PTR = 26, + VT_SAFEARRAY = 27, + VT_CARRAY = 28, + VT_USERDEFINED = 29, + VT_LPSTR = 30, + VT_LPWSTR = 31, + VT_RECORD = 36, + VT_INT_PTR = 37, + VT_UINT_PTR = 38, + VT_FILETIME = 64, + VT_BLOB = 65, + VT_STREAM = 66, + VT_STORAGE = 67, + VT_STREAMED_OBJECT = 68, + VT_STORED_OBJECT = 69, + VT_BLOB_OBJECT = 70, + VT_CF = 71, + VT_CLSID = 72, + VT_VERSIONED_STREAM = 73, + VT_BSTR_BLOB = 0xfff, + VT_VECTOR = 0x1000, + VT_ARRAY = 0x2000, + VT_BYREF = 0x4000, + VT_RESERVED = 0x8000, + VT_ILLEGAL = 0xffff, + VT_ILLEGALMASKED = 0xfff, + VT_TYPEMASK = 0xfff + } ; +typedef ULONG PROPID; + + + +typedef struct _tagpropertykey + { + GUID fmtid; + DWORD pid; + } PROPERTYKEY; + + +typedef struct tagCSPLATFORM + { + DWORD dwPlatformId; + DWORD dwVersionHi; + DWORD dwVersionLo; + DWORD dwProcessorArch; + } CSPLATFORM; + +typedef struct tagQUERYCONTEXT + { + DWORD dwContext; + CSPLATFORM Platform; + LCID Locale; + DWORD dwVersionHi; + DWORD dwVersionLo; + } QUERYCONTEXT; + +typedef +enum tagTYSPEC + { + TYSPEC_CLSID = 0, + TYSPEC_FILEEXT = ( TYSPEC_CLSID + 1 ) , + TYSPEC_MIMETYPE = ( TYSPEC_FILEEXT + 1 ) , + TYSPEC_FILENAME = ( TYSPEC_MIMETYPE + 1 ) , + TYSPEC_PROGID = ( TYSPEC_FILENAME + 1 ) , + TYSPEC_PACKAGENAME = ( TYSPEC_PROGID + 1 ) , + TYSPEC_OBJECTID = ( TYSPEC_PACKAGENAME + 1 ) + } TYSPEC; + +typedef struct __MIDL___MIDL_itf_wtypes_0000_0001_0001 + { + DWORD tyspec; + union __MIDL___MIDL_itf_wtypes_0000_0001_0005 + { + CLSID clsid; + LPOLESTR pFileExt; + LPOLESTR pMimeType; + LPOLESTR pProgId; + LPOLESTR pFileName; + struct + { + LPOLESTR pPackageName; + GUID PolicyId; + } ByName; + struct + { + GUID ObjectId; + GUID PolicyId; + } ByObjectId; + } tagged_union; + } uCLSSPEC; + + +#pragma warning(pop) + + + +extern RPC_IF_HANDLE __MIDL_itf_wtypes_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_wtypes_0000_0001_v0_0_s_ifspec; +# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 1 3 +# 39 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +extern const GUID GUID_DEVINTERFACE_DISK; +extern const GUID GUID_DEVINTERFACE_CDROM; +extern const GUID GUID_DEVINTERFACE_PARTITION; +extern const GUID GUID_DEVINTERFACE_TAPE; +extern const GUID GUID_DEVINTERFACE_WRITEONCEDISK; +extern const GUID GUID_DEVINTERFACE_VOLUME; +extern const GUID GUID_DEVINTERFACE_MEDIUMCHANGER; +extern const GUID GUID_DEVINTERFACE_FLOPPY; +extern const GUID GUID_DEVINTERFACE_CDCHANGER; +extern const GUID GUID_DEVINTERFACE_STORAGEPORT; +extern const GUID GUID_DEVINTERFACE_VMLUN; +extern const GUID GUID_DEVINTERFACE_SES; +extern const GUID GUID_DEVINTERFACE_ZNSDISK; +# 60 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +extern const GUID GUID_DEVINTERFACE_SERVICE_VOLUME; +extern const GUID GUID_DEVINTERFACE_HIDDEN_VOLUME; + + + + + +extern const GUID GUID_DEVINTERFACE_UNIFIED_ACCESS_RPMB; + + + + + + +extern const GUID GUID_DEVINTERFACE_SCM_PHYSICAL_DEVICE; +# 83 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +extern const GUID GUID_SCM_PD_HEALTH_NOTIFICATION; + + + + + + +extern const GUID GUID_SCM_PD_PASSTHROUGH_INVDIMM; + + +extern const GUID GUID_DEVINTERFACE_COMPORT; + +extern const GUID GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR; +# 150 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma warning(push) +#pragma warning(disable: 4201) +#pragma warning(disable: 4820) +# 329 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) +# 543 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_HOTPLUG_INFO { + DWORD Size; + BOOLEAN MediaRemovable; + BOOLEAN MediaHotplug; + BOOLEAN DeviceHotplug; + BOOLEAN WriteCacheEnableOverride; +} STORAGE_HOTPLUG_INFO, *PSTORAGE_HOTPLUG_INFO; +# 562 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_DEVICE_NUMBER { + + + + + + DWORD DeviceType; + + + + + + DWORD DeviceNumber; + + + + + + + DWORD PartitionNumber; +} STORAGE_DEVICE_NUMBER, *PSTORAGE_DEVICE_NUMBER; + +typedef struct _STORAGE_DEVICE_NUMBERS { + + + + + + + DWORD Version; + + + + + + DWORD Size; + + DWORD NumberOfDevices; + + STORAGE_DEVICE_NUMBER Devices[1]; + +} STORAGE_DEVICE_NUMBERS, *PSTORAGE_DEVICE_NUMBERS; +# 634 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_DEVICE_NUMBER_EX { + + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + + + DWORD Flags; + + + + + + + DWORD DeviceType; + + + + + + DWORD DeviceNumber; +# 692 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + GUID DeviceGuid; + + + + + + + DWORD PartitionNumber; +} STORAGE_DEVICE_NUMBER_EX, *PSTORAGE_DEVICE_NUMBER_EX; + + + + + + +typedef struct _STORAGE_BUS_RESET_REQUEST { + BYTE PathId; +} STORAGE_BUS_RESET_REQUEST, *PSTORAGE_BUS_RESET_REQUEST; + + + + + + +typedef struct STORAGE_BREAK_RESERVATION_REQUEST { + DWORD Length; + BYTE _unused; + BYTE PathId; + BYTE TargetId; + BYTE Lun; +} STORAGE_BREAK_RESERVATION_REQUEST, *PSTORAGE_BREAK_RESERVATION_REQUEST; +# 735 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _PREVENT_MEDIA_REMOVAL { + BOOLEAN PreventMediaRemoval; +} PREVENT_MEDIA_REMOVAL, *PPREVENT_MEDIA_REMOVAL; + + + + + + + +typedef struct _CLASS_MEDIA_CHANGE_CONTEXT { + DWORD MediaChangeCount; + DWORD NewState; +} CLASS_MEDIA_CHANGE_CONTEXT, *PCLASS_MEDIA_CHANGE_CONTEXT; + + + + +typedef struct _TAPE_STATISTICS { + DWORD Version; + DWORD Flags; + LARGE_INTEGER RecoveredWrites; + LARGE_INTEGER UnrecoveredWrites; + LARGE_INTEGER RecoveredReads; + LARGE_INTEGER UnrecoveredReads; + BYTE CompressionRatioReads; + BYTE CompressionRatioWrites; +} TAPE_STATISTICS, *PTAPE_STATISTICS; +# 771 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _TAPE_GET_STATISTICS { + DWORD Operation; +} TAPE_GET_STATISTICS, *PTAPE_GET_STATISTICS; +# 784 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_MEDIA_TYPE { +# 814 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DDS_4mm = 0x20, + MiniQic, + Travan, + QIC, + MP_8mm, + AME_8mm, + AIT1_8mm, + DLT, + NCTP, + IBM_3480, + IBM_3490E, + IBM_Magstar_3590, + IBM_Magstar_MP, + STK_DATA_D3, + SONY_DTF, + DV_6mm, + DMI, + SONY_D2, + CLEANER_CARTRIDGE, + CD_ROM, + CD_R, + CD_RW, + DVD_ROM, + DVD_R, + DVD_RW, + MO_3_RW, + MO_5_WO, + MO_5_RW, + MO_5_LIMDOW, + PC_5_WO, + PC_5_RW, + PD_5_RW, + ABL_5_WO, + PINNACLE_APEX_5_RW, + SONY_12_WO, + PHILIPS_12_WO, + HITACHI_12_WO, + CYGNET_12_WO, + KODAK_14_WO, + MO_NFR_525, + NIKON_12_RW, + IOMEGA_ZIP, + IOMEGA_JAZ, + SYQUEST_EZ135, + SYQUEST_EZFLYER, + SYQUEST_SYJET, + AVATAR_F2, + MP2_8mm, + DST_S, + DST_M, + DST_L, + VXATape_1, + VXATape_2, + + + + STK_9840, + + LTO_Ultrium, + LTO_Accelis, + DVD_RAM, + AIT_8mm, + ADR_1, + ADR_2, + STK_9940, + SAIT, + VXATape +}STORAGE_MEDIA_TYPE, *PSTORAGE_MEDIA_TYPE; +# 896 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_BUS_TYPE { + BusTypeUnknown = 0x00, + BusTypeScsi, + BusTypeAtapi, + BusTypeAta, + BusType1394, + BusTypeSsa, + BusTypeFibre, + BusTypeUsb, + BusTypeRAID, + BusTypeiScsi, + BusTypeSas, + BusTypeSata, + BusTypeSd, + BusTypeMmc, + BusTypeVirtual, + BusTypeFileBackedVirtual, + BusTypeSpaces, + BusTypeNvme, + BusTypeSCM, + BusTypeUfs, + BusTypeMax, + BusTypeMaxReserved = 0x7F +} STORAGE_BUS_TYPE, *PSTORAGE_BUS_TYPE; +# 933 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_MEDIA_INFO { + union { + struct { + LARGE_INTEGER Cylinders; + STORAGE_MEDIA_TYPE MediaType; + DWORD TracksPerCylinder; + DWORD SectorsPerTrack; + DWORD BytesPerSector; + DWORD NumberMediaSides; + DWORD MediaCharacteristics; + } DiskInfo; + + struct { + LARGE_INTEGER Cylinders; + STORAGE_MEDIA_TYPE MediaType; + DWORD TracksPerCylinder; + DWORD SectorsPerTrack; + DWORD BytesPerSector; + DWORD NumberMediaSides; + DWORD MediaCharacteristics; + } RemovableDiskInfo; + + struct { + STORAGE_MEDIA_TYPE MediaType; + DWORD MediaCharacteristics; + DWORD CurrentBlockSize; + STORAGE_BUS_TYPE BusType; + + + + + + union { + struct { + BYTE MediumType; + BYTE DensityCode; + } ScsiInformation; + } BusSpecificData; + + } TapeInfo; + } DeviceSpecific; +} DEVICE_MEDIA_INFO, *PDEVICE_MEDIA_INFO; + +typedef struct _GET_MEDIA_TYPES { + DWORD DeviceType; + DWORD MediaInfoCount; + DEVICE_MEDIA_INFO MediaInfo[1]; +} GET_MEDIA_TYPES, *PGET_MEDIA_TYPES; +# 995 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_PREDICT_FAILURE +{ + DWORD PredictFailure; + BYTE VendorSpecific[512]; +} STORAGE_PREDICT_FAILURE, *PSTORAGE_PREDICT_FAILURE; +# 1012 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_FAILURE_PREDICTION_CONFIG { + DWORD Version; + DWORD Size; + BOOLEAN Set; + BOOLEAN Enabled; + WORD Reserved; +} STORAGE_FAILURE_PREDICTION_CONFIG, *PSTORAGE_FAILURE_PREDICTION_CONFIG; +# 1050 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_QUERY_TYPE { + PropertyStandardQuery = 0, + PropertyExistsQuery, + PropertyMaskQuery, + PropertyQueryMaxDefined +} STORAGE_QUERY_TYPE, *PSTORAGE_QUERY_TYPE; +# 1077 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_SET_TYPE { + PropertyStandardSet = 0, + PropertyExistsSet, + PropertySetMaxDefined +} STORAGE_SET_TYPE, *PSTORAGE_SET_TYPE; + + + + + +typedef enum _STORAGE_PROPERTY_ID { + StorageDeviceProperty = 0, + StorageAdapterProperty, + StorageDeviceIdProperty, + StorageDeviceUniqueIdProperty, + StorageDeviceWriteCacheProperty, + StorageMiniportProperty, + StorageAccessAlignmentProperty, + StorageDeviceSeekPenaltyProperty, + StorageDeviceTrimProperty, + StorageDeviceWriteAggregationProperty, + StorageDeviceDeviceTelemetryProperty, + StorageDeviceLBProvisioningProperty, + StorageDevicePowerProperty, + StorageDeviceCopyOffloadProperty, + StorageDeviceResiliencyProperty, + StorageDeviceMediumProductType, + StorageAdapterRpmbProperty, + StorageAdapterCryptoProperty, + StorageDeviceIoCapabilityProperty = 48, + StorageAdapterProtocolSpecificProperty, + StorageDeviceProtocolSpecificProperty, + StorageAdapterTemperatureProperty, + StorageDeviceTemperatureProperty, + StorageAdapterPhysicalTopologyProperty, + StorageDevicePhysicalTopologyProperty, + StorageDeviceAttributesProperty, + StorageDeviceManagementStatus, + StorageAdapterSerialNumberProperty, + StorageDeviceLocationProperty, + StorageDeviceNumaProperty, + StorageDeviceZonedDeviceProperty, + StorageDeviceUnsafeShutdownCount, + StorageDeviceEnduranceProperty, + StorageDeviceLedStateProperty, + StorageDeviceSelfEncryptionProperty = 64, + StorageFruIdProperty, +} STORAGE_PROPERTY_ID, *PSTORAGE_PROPERTY_ID; + + + + + + + +typedef struct _STORAGE_PROPERTY_QUERY { + + + + + + STORAGE_PROPERTY_ID PropertyId; + + + + + + STORAGE_QUERY_TYPE QueryType; + + + + + + BYTE AdditionalParameters[1]; + +} STORAGE_PROPERTY_QUERY, *PSTORAGE_PROPERTY_QUERY; + + + + + + +typedef struct _STORAGE_PROPERTY_SET { + + + + + + STORAGE_PROPERTY_ID PropertyId; + + + + + + STORAGE_SET_TYPE SetType; + + + + + + BYTE AdditionalParameters[1]; + +} STORAGE_PROPERTY_SET, *PSTORAGE_PROPERTY_SET; + + + + + + +typedef struct _STORAGE_DESCRIPTOR_HEADER { + + DWORD Version; + + DWORD Size; + +} STORAGE_DESCRIPTOR_HEADER, *PSTORAGE_DESCRIPTOR_HEADER; +# 1202 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_DEVICE_DESCRIPTOR { + + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + + BYTE DeviceType; + + + + + + BYTE DeviceTypeModifier; + + + + + + + BOOLEAN RemovableMedia; + + + + + + + + BOOLEAN CommandQueueing; + + + + + + + DWORD VendorIdOffset; + + + + + + + DWORD ProductIdOffset; + + + + + + + + DWORD ProductRevisionOffset; + + + + + + + DWORD SerialNumberOffset; + + + + + + + + STORAGE_BUS_TYPE BusType; + + + + + + + DWORD RawPropertiesLength; + + + + + + BYTE RawDeviceProperties[1]; + +} STORAGE_DEVICE_DESCRIPTOR, *PSTORAGE_DEVICE_DESCRIPTOR; +# 1305 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_ADAPTER_DESCRIPTOR { + + DWORD Version; + + DWORD Size; + + DWORD MaximumTransferLength; + + DWORD MaximumPhysicalPages; + + DWORD AlignmentMask; + + BOOLEAN AdapterUsesPio; + + BOOLEAN AdapterScansDown; + + BOOLEAN CommandQueueing; + + BOOLEAN AcceleratedTransfer; + + + + + BYTE BusType; + + + WORD BusMajorVersion; + + WORD BusMinorVersion; + + + + BYTE SrbType; + + BYTE AddressType; + + +} STORAGE_ADAPTER_DESCRIPTOR, *PSTORAGE_ADAPTER_DESCRIPTOR; +# 1364 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR { + + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + + DWORD BytesPerCacheLine; + + + + + + DWORD BytesOffsetForCacheAlignment; + + + + + + DWORD BytesPerLogicalSector; + + + + + + DWORD BytesPerPhysicalSector; + + + + + + DWORD BytesOffsetForSectorAlignment; + +} STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR, *PSTORAGE_ACCESS_ALIGNMENT_DESCRIPTOR; + +typedef struct _STORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR { + + + + + + DWORD Version; + + + + + + DWORD Size; + + + + + + DWORD MediumProductType; + +} STORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR, *PSTORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR; + + +typedef enum _STORAGE_PORT_CODE_SET { + StoragePortCodeSetReserved = 0, + StoragePortCodeSetStorport = 1, + StoragePortCodeSetSCSIport = 2, + StoragePortCodeSetSpaceport = 3, + StoragePortCodeSetATAport = 4, + StoragePortCodeSetUSBport = 5, + StoragePortCodeSetSBP2port = 6, + StoragePortCodeSetSDport = 7 +} STORAGE_PORT_CODE_SET, *PSTORAGE_PORT_CODE_SET; + + + + + +#pragma warning(push) +#pragma warning(disable: 4201) +#pragma warning(disable: 4214) + +typedef struct _STORAGE_MINIPORT_DESCRIPTOR { + + DWORD Version; + + DWORD Size; + + STORAGE_PORT_CODE_SET Portdriver; + + BOOLEAN LUNResetSupported; + + BOOLEAN TargetResetSupported; + + + WORD IoTimeoutValue; + + + + BOOLEAN ExtraIoInfoSupported; + + + + union { + struct { + BYTE LogicalPoFxForDisk : 1; + BYTE Reserved : 7; + } ; + BYTE AsBYTE ; + } Flags; + + BYTE Reserved0[2]; + + + + + + DWORD Reserved1; + + +} STORAGE_MINIPORT_DESCRIPTOR, *PSTORAGE_MINIPORT_DESCRIPTOR; + +#pragma warning(pop) + + + + + + + +typedef enum _STORAGE_IDENTIFIER_CODE_SET { + StorageIdCodeSetReserved = 0, + StorageIdCodeSetBinary = 1, + StorageIdCodeSetAscii = 2, + StorageIdCodeSetUtf8 = 3 +} STORAGE_IDENTIFIER_CODE_SET, *PSTORAGE_IDENTIFIER_CODE_SET; + +typedef enum _STORAGE_IDENTIFIER_TYPE { + StorageIdTypeVendorSpecific = 0, + StorageIdTypeVendorId = 1, + StorageIdTypeEUI64 = 2, + StorageIdTypeFCPHName = 3, + StorageIdTypePortRelative = 4, + StorageIdTypeTargetPortGroup = 5, + StorageIdTypeLogicalUnitGroup = 6, + StorageIdTypeMD5LogicalUnitIdentifier = 7, + StorageIdTypeScsiNameString = 8 +} STORAGE_IDENTIFIER_TYPE, *PSTORAGE_IDENTIFIER_TYPE; + + + + + +typedef enum _STORAGE_ID_NAA_FORMAT { + StorageIdNAAFormatIEEEExtended = 2, + StorageIdNAAFormatIEEERegistered = 3, + StorageIdNAAFormatIEEEERegisteredExtended = 5 +} STORAGE_ID_NAA_FORMAT, *PSTORAGE_ID_NAA_FORMAT; + +typedef enum _STORAGE_ASSOCIATION_TYPE { + StorageIdAssocDevice = 0, + StorageIdAssocPort = 1, + StorageIdAssocTarget = 2 +} STORAGE_ASSOCIATION_TYPE, *PSTORAGE_ASSOCIATION_TYPE; + +typedef struct _STORAGE_IDENTIFIER { + + STORAGE_IDENTIFIER_CODE_SET CodeSet; + + STORAGE_IDENTIFIER_TYPE Type; + + WORD IdentifierSize; + + WORD NextOffset; + + + + + + + STORAGE_ASSOCIATION_TYPE Association; + + + + + + BYTE Identifier[1]; + +} STORAGE_IDENTIFIER, *PSTORAGE_IDENTIFIER; + +typedef struct _STORAGE_DEVICE_ID_DESCRIPTOR { + + DWORD Version; + + DWORD Size; + + + + + + DWORD NumberOfIdentifiers; + + + + + + + + BYTE Identifiers[1]; + +} STORAGE_DEVICE_ID_DESCRIPTOR, *PSTORAGE_DEVICE_ID_DESCRIPTOR; + + +typedef struct _DEVICE_SEEK_PENALTY_DESCRIPTOR { + + DWORD Version; + + DWORD Size; + + BOOLEAN IncursSeekPenalty; + +} DEVICE_SEEK_PENALTY_DESCRIPTOR, *PDEVICE_SEEK_PENALTY_DESCRIPTOR; + + +typedef struct _DEVICE_WRITE_AGGREGATION_DESCRIPTOR { + DWORD Version; + DWORD Size; + + BOOLEAN BenefitsFromWriteAggregation; +} DEVICE_WRITE_AGGREGATION_DESCRIPTOR, *PDEVICE_WRITE_AGGREGATION_DESCRIPTOR; + + +typedef struct _DEVICE_TRIM_DESCRIPTOR { + + DWORD Version; + + DWORD Size; + + BOOLEAN TrimEnabled; + +} DEVICE_TRIM_DESCRIPTOR, *PDEVICE_TRIM_DESCRIPTOR; + +#pragma warning(push) +#pragma warning(disable: 4214) + + + +typedef struct _DEVICE_LB_PROVISIONING_DESCRIPTOR { + + DWORD Version; + + DWORD Size; + + BYTE ThinProvisioningEnabled : 1; + + BYTE ThinProvisioningReadZeros : 1; + + BYTE AnchorSupported : 3; + + BYTE UnmapGranularityAlignmentValid : 1; + + BYTE GetFreeSpaceSupported : 1; + + BYTE MapSupported : 1; + + BYTE Reserved1[7]; + + DWORDLONG OptimalUnmapGranularity; + + DWORDLONG UnmapGranularityAlignment; + + + + DWORD MaxUnmapLbaCount; + + DWORD MaxUnmapBlockDescriptorCount; + + +} DEVICE_LB_PROVISIONING_DESCRIPTOR, *PDEVICE_LB_PROVISIONING_DESCRIPTOR; +# 1663 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_LB_PROVISIONING_MAP_RESOURCES { + DWORD Size; + DWORD Version; + BYTE AvailableMappingResourcesValid : 1; + BYTE UsedMappingResourcesValid : 1; + BYTE Reserved0 : 6; + BYTE Reserved1[3]; + BYTE AvailableMappingResourcesScope : 2; + BYTE UsedMappingResourcesScope : 2; + BYTE Reserved2 : 4; + BYTE Reserved3[3]; + DWORDLONG AvailableMappingResources; + DWORDLONG UsedMappingResources; +} STORAGE_LB_PROVISIONING_MAP_RESOURCES, *PSTORAGE_LB_PROVISIONING_MAP_RESOURCES; + +#pragma warning(pop) + + +typedef struct _DEVICE_POWER_DESCRIPTOR { + DWORD Version; + DWORD Size; + + BOOLEAN DeviceAttentionSupported; + BOOLEAN AsynchronousNotificationSupported; + BOOLEAN IdlePowerManagementEnabled; + BOOLEAN D3ColdEnabled; + BOOLEAN D3ColdSupported; + BOOLEAN NoVerifyDuringIdlePower; + BYTE Reserved[2]; + DWORD IdleTimeoutInMS; +} DEVICE_POWER_DESCRIPTOR, *PDEVICE_POWER_DESCRIPTOR; + + + + +typedef struct _DEVICE_COPY_OFFLOAD_DESCRIPTOR { + DWORD Version; + DWORD Size; + + DWORD MaximumTokenLifetime; + DWORD DefaultTokenLifetime; + DWORDLONG MaximumTransferSize; + DWORDLONG OptimalTransferCount; + DWORD MaximumDataDescriptors; + DWORD MaximumTransferLengthPerDescriptor; + DWORD OptimalTransferLengthPerDescriptor; + WORD OptimalTransferLengthGranularity; + BYTE Reserved[2]; +} DEVICE_COPY_OFFLOAD_DESCRIPTOR, *PDEVICE_COPY_OFFLOAD_DESCRIPTOR; + + + + + +typedef struct _STORAGE_DEVICE_RESILIENCY_DESCRIPTOR { + + + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + + + DWORD NameOffset; + + + + + + + DWORD NumberOfLogicalCopies; + + + + + + + DWORD NumberOfPhysicalCopies; + + + + + + + DWORD PhysicalDiskRedundancy; + + + + + + + DWORD NumberOfColumns; + + + + + + + DWORD Interleave; + +} STORAGE_DEVICE_RESILIENCY_DESCRIPTOR, *PSTORAGE_DEVICE_RESILIENCY_DESCRIPTOR; + + + + + +typedef enum _STORAGE_RPMB_FRAME_TYPE { + + StorageRpmbFrameTypeUnknown = 0, + StorageRpmbFrameTypeStandard, + StorageRpmbFrameTypeMax, + +} STORAGE_RPMB_FRAME_TYPE, *PSTORAGE_RPMB_FRAME_TYPE; + + + + + +typedef struct _STORAGE_RPMB_DESCRIPTOR { + + + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + + + + DWORD SizeInBytes; +# 1824 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD MaxReliableWriteSizeInBytes; + + + + + + + + STORAGE_RPMB_FRAME_TYPE FrameFormat; + +} STORAGE_RPMB_DESCRIPTOR, *PSTORAGE_RPMB_DESCRIPTOR; + + + + + +typedef enum _STORAGE_CRYPTO_ALGORITHM_ID { + + StorageCryptoAlgorithmUnknown = 0, + StorageCryptoAlgorithmXTSAES = 1, + StorageCryptoAlgorithmBitlockerAESCBC, + StorageCryptoAlgorithmAESECB, + StorageCryptoAlgorithmESSIVAESCBC, + StorageCryptoAlgorithmMax + +} STORAGE_CRYPTO_ALGORITHM_ID, *PSTORAGE_CRYPTO_ALGORITHM_ID; + +typedef enum _STORAGE_CRYPTO_KEY_SIZE { + + StorageCryptoKeySizeUnknown = 0, + StorageCryptoKeySize128Bits = 1, + StorageCryptoKeySize192Bits, + StorageCryptoKeySize256Bits, + StorageCryptoKeySize512Bits + +} STORAGE_CRYPTO_KEY_SIZE, *PSTORAGE_CRYPTO_KEY_SIZE; + + + +typedef struct _STORAGE_CRYPTO_CAPABILITY { + + + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + + DWORD CryptoCapabilityIndex; + + + + + + STORAGE_CRYPTO_ALGORITHM_ID AlgorithmId; + + + + + + STORAGE_CRYPTO_KEY_SIZE KeySize; + + + + + + + + DWORD DataUnitSizeBitmask; + +} STORAGE_CRYPTO_CAPABILITY, *PSTORAGE_CRYPTO_CAPABILITY; + + + +typedef struct _STORAGE_CRYPTO_DESCRIPTOR { + + + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + + DWORD NumKeysSupported; + + + + + + + DWORD NumCryptoCapabilities; + + + + + + STORAGE_CRYPTO_CAPABILITY CryptoCapabilities[1]; + +} STORAGE_CRYPTO_DESCRIPTOR, *PSTORAGE_CRYPTO_DESCRIPTOR; +# 1962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_TIER_MEDIA_TYPE { + + StorageTierMediaTypeUnspecified = 0, + StorageTierMediaTypeDisk = 1, + StorageTierMediaTypeSsd = 2, + StorageTierMediaTypeScm = 4, + StorageTierMediaTypeMax + +} STORAGE_TIER_MEDIA_TYPE, *PSTORAGE_TIER_MEDIA_TYPE; + +typedef enum _STORAGE_TIER_CLASS { + + StorageTierClassUnspecified = 0, + StorageTierClassCapacity, + StorageTierClassPerformance, + StorageTierClassMax + +} STORAGE_TIER_CLASS, *PSTORAGE_TIER_CLASS; + +typedef struct _STORAGE_TIER { + + + + + + GUID Id; + + + + + + WCHAR Name[(256)]; + + + + + + WCHAR Description[(256)]; + + + + + + DWORDLONG Flags; + + + + + + DWORDLONG ProvisionedCapacity; + + + + + + STORAGE_TIER_MEDIA_TYPE MediaType; + + + + + + STORAGE_TIER_CLASS Class; + +} STORAGE_TIER, *PSTORAGE_TIER; + + + + + + +typedef struct _STORAGE_DEVICE_TIERING_DESCRIPTOR { + + + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + + + DWORD Flags; + + + + + + DWORD TotalNumberOfTiers; + + + + + + DWORD NumberOfTiersReturned; + + + + + + STORAGE_TIER Tiers[1]; + +} STORAGE_DEVICE_TIERING_DESCRIPTOR, *PSTORAGE_DEVICE_TIERING_DESCRIPTOR; + + + + + +typedef struct _STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR { + + + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + + DWORD NumberOfFaultDomains; + + + + + + + GUID FaultDomainIds[1]; + +} STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR, *PSTORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR; +# 2119 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_PROTOCOL_TYPE { + ProtocolTypeUnknown = 0x00, + ProtocolTypeScsi, + ProtocolTypeAta, + ProtocolTypeNvme, + ProtocolTypeSd, + ProtocolTypeUfs, + ProtocolTypeProprietary = 0x7E, + ProtocolTypeMaxReserved = 0x7F +} STORAGE_PROTOCOL_TYPE, *PSTORAGE_PROTOCOL_TYPE; + + +typedef enum _STORAGE_PROTOCOL_NVME_DATA_TYPE { + NVMeDataTypeUnknown = 0, + + NVMeDataTypeIdentify, +# 2143 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + NVMeDataTypeLogPage, + + + + + + + NVMeDataTypeFeature, + + + +} STORAGE_PROTOCOL_NVME_DATA_TYPE, *PSTORAGE_PROTOCOL_NVME_DATA_TYPE; + +typedef enum _STORAGE_PROTOCOL_ATA_DATA_TYPE { + AtaDataTypeUnknown = 0, + AtaDataTypeIdentify, + AtaDataTypeLogPage, +} STORAGE_PROTOCOL_ATA_DATA_TYPE, *PSTORAGE_PROTOCOL_ATA_DATA_TYPE; + +typedef enum _STORAGE_PROTOCOL_UFS_DATA_TYPE { + UfsDataTypeUnknown = 0, + UfsDataTypeQueryDescriptor, + UfsDataTypeQueryAttribute, + UfsDataTypeQueryFlag, + UfsDataTypeQueryDmeAttribute, + UfsDataTypeQueryDmePeerAttribute, + UfsDataTypeMax, +} STORAGE_PROTOCOL_UFS_DATA_TYPE, *PSTORAGE_PROTOCOL_UFS_DATA_TYPE; + + + + + + +#pragma warning(push) +#pragma warning(disable: 4201) +#pragma warning(disable: 4214) + +typedef union _STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE { + + struct { + + DWORD RetainAsynEvent : 1; + + DWORD LogSpecificField : 4; + + DWORD Reserved : 27; + + } ; + + DWORD AsUlong; + +} STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE, *PSTORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE; + +#pragma warning(pop) + + + + + + +typedef struct _STORAGE_PROTOCOL_SPECIFIC_DATA { + + STORAGE_PROTOCOL_TYPE ProtocolType; + DWORD DataType; + + DWORD ProtocolDataRequestValue; + DWORD ProtocolDataRequestSubValue; + + DWORD ProtocolDataOffset; + DWORD ProtocolDataLength; + + DWORD FixedProtocolReturnData; + DWORD ProtocolDataRequestSubValue2; + + DWORD ProtocolDataRequestSubValue3; + DWORD ProtocolDataRequestSubValue4; + +} STORAGE_PROTOCOL_SPECIFIC_DATA, *PSTORAGE_PROTOCOL_SPECIFIC_DATA; + + + + + + + +typedef struct _STORAGE_PROTOCOL_SPECIFIC_DATA_EXT { + + STORAGE_PROTOCOL_TYPE ProtocolType; + DWORD DataType; + + DWORD ProtocolDataValue; + DWORD ProtocolDataSubValue; + + DWORD ProtocolDataOffset; + DWORD ProtocolDataLength; + + DWORD FixedProtocolReturnData; + DWORD ProtocolDataSubValue2; + + DWORD ProtocolDataSubValue3; + DWORD ProtocolDataSubValue4; + + DWORD ProtocolDataSubValue5; + DWORD Reserved[5]; +} STORAGE_PROTOCOL_SPECIFIC_DATA_EXT, *PSTORAGE_PROTOCOL_SPECIFIC_DATA_EXT; +# 2259 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_PROTOCOL_DATA_DESCRIPTOR { + + DWORD Version; + DWORD Size; + + STORAGE_PROTOCOL_SPECIFIC_DATA ProtocolSpecificData; + +} STORAGE_PROTOCOL_DATA_DESCRIPTOR, *PSTORAGE_PROTOCOL_DATA_DESCRIPTOR; +# 2277 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT { + + DWORD Version; + DWORD Size; + + STORAGE_PROTOCOL_SPECIFIC_DATA_EXT ProtocolSpecificData; + +} STORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT, *PSTORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT; +# 2303 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_TEMPERATURE_INFO { + + WORD Index; + SHORT Temperature; + SHORT OverThreshold; + SHORT UnderThreshold; + + BOOLEAN OverThresholdChangable; + BOOLEAN UnderThresholdChangable; + BOOLEAN EventGenerated; + BYTE Reserved0; + DWORD Reserved1; + +} STORAGE_TEMPERATURE_INFO, *PSTORAGE_TEMPERATURE_INFO; + +typedef struct _STORAGE_TEMPERATURE_DATA_DESCRIPTOR { + + DWORD Version; + DWORD Size; + + + + + + SHORT CriticalTemperature; + + + + + + SHORT WarningTemperature; + + WORD InfoCount; + + BYTE Reserved0[2]; + + DWORD Reserved1[2]; + + STORAGE_TEMPERATURE_INFO TemperatureInfo[1]; + +} STORAGE_TEMPERATURE_DATA_DESCRIPTOR, *PSTORAGE_TEMPERATURE_DATA_DESCRIPTOR; +# 2356 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_TEMPERATURE_THRESHOLD { + + DWORD Version; + DWORD Size; + + WORD Flags; + WORD Index; + + SHORT Threshold; + BOOLEAN OverThreshold; + BYTE Reserved; + +} STORAGE_TEMPERATURE_THRESHOLD, *PSTORAGE_TEMPERATURE_THRESHOLD; +# 2393 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_DEVICE_FORM_FACTOR { + FormFactorUnknown = 0, + + FormFactor3_5, + FormFactor2_5, + FormFactor1_8, + FormFactor1_8Less, + + FormFactorEmbedded, + FormFactorMemoryCard, + FormFactormSata, + FormFactorM_2, + FormFactorPCIeBoard, + FormFactorDimm, + +} STORAGE_DEVICE_FORM_FACTOR, *PSTORAGE_DEVICE_FORM_FACTOR; + + +typedef enum _STORAGE_COMPONENT_HEALTH_STATUS { + HealthStatusUnknown = 0, + HealthStatusNormal, + HealthStatusThrottled, + HealthStatusWarning, + HealthStatusDisabled, + HealthStatusFailed, +} STORAGE_COMPONENT_HEALTH_STATUS, *PSTORAGE_COMPONENT_HEALTH_STATUS; + +#pragma warning(push) +#pragma warning(disable: 4201) + +typedef union _STORAGE_SPEC_VERSION { + + struct { + union { + struct { + BYTE SubMinor; + BYTE Minor; + } ; + + WORD AsUshort; + + } MinorVersion; + + WORD MajorVersion; + } ; + + DWORD AsUlong; + +} STORAGE_SPEC_VERSION, *PSTORAGE_SPEC_VERSION; + +#pragma warning(pop) + + +typedef struct _STORAGE_PHYSICAL_DEVICE_DATA { + + DWORD DeviceId; + DWORD Role; + + STORAGE_COMPONENT_HEALTH_STATUS HealthStatus; + STORAGE_PROTOCOL_TYPE CommandProtocol; + STORAGE_SPEC_VERSION SpecVersion; + STORAGE_DEVICE_FORM_FACTOR FormFactor; + + BYTE Vendor[8]; + BYTE Model[40]; + BYTE FirmwareRevision[16]; + + DWORDLONG Capacity; + + BYTE PhysicalLocation[32]; + + DWORD Reserved[2]; + +} STORAGE_PHYSICAL_DEVICE_DATA, *PSTORAGE_PHYSICAL_DEVICE_DATA; + + +typedef struct _STORAGE_PHYSICAL_ADAPTER_DATA { + + DWORD AdapterId; + STORAGE_COMPONENT_HEALTH_STATUS HealthStatus; + STORAGE_PROTOCOL_TYPE CommandProtocol; + STORAGE_SPEC_VERSION SpecVersion; + + BYTE Vendor[8]; + BYTE Model[40]; + BYTE FirmwareRevision[16]; + + BYTE PhysicalLocation[32]; + + BOOLEAN ExpanderConnected; + BYTE Reserved0[3]; + DWORD Reserved1[3]; + +} STORAGE_PHYSICAL_ADAPTER_DATA, *PSTORAGE_PHYSICAL_ADAPTER_DATA; + + +typedef struct _STORAGE_PHYSICAL_NODE_DATA { + + DWORD NodeId; + + DWORD AdapterCount; + DWORD AdapterDataLength; + DWORD AdapterDataOffset; + + DWORD DeviceCount; + DWORD DeviceDataLength; + DWORD DeviceDataOffset; + + DWORD Reserved[3]; + +} STORAGE_PHYSICAL_NODE_DATA, *PSTORAGE_PHYSICAL_NODE_DATA; + + +typedef struct _STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR { + + DWORD Version; + DWORD Size; + + DWORD NodeCount; + DWORD Reserved; + + STORAGE_PHYSICAL_NODE_DATA Node[1]; + +} STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR, *PSTORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR; + + + + + + +typedef struct _STORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR { + + + + + + + DWORD Version; + + + + + + DWORD Size; + + + + + + DWORD LunMaxIoCount; + + + + + + DWORD AdapterMaxIoCount; + +} STORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR, *PSTORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR; + + + + + +typedef struct _STORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR { + + + + + + + DWORD Version; + + + + + + DWORD Size; + + + + + + DWORD64 Attributes; + +} STORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR, *PSTORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR; +# 2594 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_DISK_HEALTH_STATUS { + DiskHealthUnknown = 0, + DiskHealthUnhealthy, + DiskHealthWarning, + DiskHealthHealthy, + DiskHealthMax +} STORAGE_DISK_HEALTH_STATUS, *PSTORAGE_DISK_HEALTH_STATUS; + + + + +typedef enum _STORAGE_DISK_OPERATIONAL_STATUS { + DiskOpStatusNone = 0, + DiskOpStatusUnknown, + DiskOpStatusOk, + DiskOpStatusPredictingFailure, + DiskOpStatusInService, + DiskOpStatusHardwareError, + DiskOpStatusNotUsable, + DiskOpStatusTransientError, + DiskOpStatusMissing, +} STORAGE_DISK_OPERATIONAL_STATUS, *PSTORAGE_DISK_OPERATIONAL_STATUS; + + + + +typedef enum _STORAGE_OPERATIONAL_STATUS_REASON { + DiskOpReasonUnknown = 0, + DiskOpReasonScsiSenseCode, + DiskOpReasonMedia, + DiskOpReasonIo, + DiskOpReasonThresholdExceeded, + DiskOpReasonLostData, + DiskOpReasonEnergySource, + DiskOpReasonConfiguration, + DiskOpReasonDeviceController, + DiskOpReasonMediaController, + DiskOpReasonComponent, + DiskOpReasonNVDIMM_N, + DiskOpReasonBackgroundOperation, + DiskOpReasonInvalidFirmware, + DiskOpReasonHealthCheck, + DiskOpReasonLostDataPersistence, + DiskOpReasonDisabledByPlatform, + DiskOpReasonLostWritePersistence, + DiskOpReasonDataPersistenceLossImminent, + DiskOpReasonWritePersistenceLossImminent, + DiskOpReasonMax +} STORAGE_OPERATIONAL_STATUS_REASON, *PSTORAGE_OPERATIONAL_STATUS_REASON; + +typedef struct _STORAGE_OPERATIONAL_REASON { + DWORD Version; + DWORD Size; + STORAGE_OPERATIONAL_STATUS_REASON Reason; + + union { + + + + + struct { + BYTE SenseKey; + BYTE ASC; + BYTE ASCQ; + BYTE Reserved; + } ScsiSenseKey; + + + + + struct { + BYTE CriticalHealth; + BYTE ModuleHealth[2]; + BYTE ErrorThresholdStatus; + } NVDIMM_N; + + DWORD AsUlong; + } RawBytes; +} STORAGE_OPERATIONAL_REASON, *PSTORAGE_OPERATIONAL_REASON; + + + + + + + +typedef struct _STORAGE_DEVICE_MANAGEMENT_STATUS { + + + + + + + DWORD Version; + + + + + + + + DWORD Size; + + + + + + STORAGE_DISK_HEALTH_STATUS Health; + + + + + + DWORD NumberOfOperationalStatus; + + + + + + DWORD NumberOfAdditionalReasons; + + + + + + + STORAGE_DISK_OPERATIONAL_STATUS OperationalStatus[16]; + + + + + + STORAGE_OPERATIONAL_REASON AdditionalReasons[1]; + +} STORAGE_DEVICE_MANAGEMENT_STATUS, *PSTORAGE_DEVICE_MANAGEMENT_STATUS; +# 2744 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_ADAPTER_SERIAL_NUMBER { + + DWORD Version; + + DWORD Size; + + + + + + WCHAR SerialNumber[(128)]; + +} STORAGE_ADAPTER_SERIAL_NUMBER, *PSTORAGE_ADAPTER_SERIAL_NUMBER; +# 2765 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_ZONED_DEVICE_TYPES { + ZonedDeviceTypeUnknown = 0, + ZonedDeviceTypeHostManaged, + ZonedDeviceTypeHostAware, + ZonedDeviceTypeDeviceManaged, +} STORAGE_ZONED_DEVICE_TYPES, *PSTORAGE_ZONED_DEVICE_TYPES; + +typedef enum _STORAGE_ZONE_TYPES { + ZoneTypeUnknown = 0, + ZoneTypeConventional = 1, + ZoneTypeSequentialWriteRequired = 2, + ZoneTypeSequentialWritePreferred = 3, + ZoneTypeMax +} STORAGE_ZONE_TYPES, *PSTORAGE_ZONE_TYPES; + +typedef struct _STORAGE_ZONE_GROUP { + + DWORD ZoneCount; + + STORAGE_ZONE_TYPES ZoneType; + + DWORDLONG ZoneSize; + +} STORAGE_ZONE_GROUP, *PSTORAGE_ZONE_GROUP; + +typedef struct _STORAGE_ZONED_DEVICE_DESCRIPTOR { + + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + + STORAGE_ZONED_DEVICE_TYPES DeviceType; + + + + + + DWORD ZoneCount; + + + + + + union { + struct { + + DWORD MaxOpenZoneCount; + + BOOLEAN UnrestrictedRead; + + BYTE Reserved[3]; + + } SequentialRequiredZone; + + struct { + + DWORD OptimalOpenZoneCount; + + DWORD Reserved; + + } SequentialPreferredZone; + + } ZoneAttributes; + + + + + + + DWORD ZoneGroupCount; + + STORAGE_ZONE_GROUP ZoneGroup[1]; + +} STORAGE_ZONED_DEVICE_DESCRIPTOR, *PSTORAGE_ZONED_DEVICE_DESCRIPTOR; + + + + + + +#pragma warning(push) +#pragma warning(disable: 4201) +typedef struct _DEVICE_LOCATION { + + DWORD Socket; + + DWORD Slot; + + DWORD Adapter; + + DWORD Port; + + union { + + struct { + + DWORD Channel; + + DWORD Device; + + } ; + + struct { + + DWORD Target; + + DWORD Lun; + + } ; + + } ; + +} DEVICE_LOCATION, *PDEVICE_LOCATION; +#pragma warning(pop) + +typedef struct _STORAGE_DEVICE_LOCATION_DESCRIPTOR { + + DWORD Version; + + DWORD Size; + + DEVICE_LOCATION Location; + + DWORD StringOffset; + +} STORAGE_DEVICE_LOCATION_DESCRIPTOR, *PSTORAGE_DEVICE_LOCATION_DESCRIPTOR; +# 2914 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_DEVICE_NUMA_PROPERTY { + DWORD Version; + DWORD Size; + DWORD NumaNode; +} STORAGE_DEVICE_NUMA_PROPERTY, *PSTORAGE_DEVICE_NUMA_PROPERTY; +# 2929 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT { + DWORD Version; + DWORD Size; + DWORD UnsafeShutdownCount; +} STORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT, *PSTORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT; + +#pragma warning(push) +#pragma warning(disable: 4214) +#pragma warning(disable: 4201) +# 2953 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_HW_ENDURANCE_INFO { + DWORD ValidFields; + + + DWORD GroupId; + + struct { + DWORD Shared:1; + + DWORD Reserved:31; + } Flags; + + DWORD LifePercentage; + + BYTE BytesReadCount[16]; + + BYTE ByteWriteCount[16]; + +} STORAGE_HW_ENDURANCE_INFO, *PSTORAGE_HW_ENDURANCE_INFO; + +typedef struct _STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR { + DWORD Version; + + DWORD Size; + + STORAGE_HW_ENDURANCE_INFO EnduranceInfo; + +} STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR, *PSTORAGE_HW_ENDURANCE_DATA_DESCRIPTOR; + +#pragma warning(pop) + + + + +typedef struct _STORAGE_DEVICE_LED_STATE_DESCRIPTOR { + + DWORD Version; + + DWORD Size; + + DWORDLONG State; + +} STORAGE_DEVICE_LED_STATE_DESCRIPTOR, *PSTORAGE_DEVICE_LED_STATE_DESCRIPTOR; +# 3006 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY { + + DWORD Version; + + DWORD Size; + + BOOLEAN SupportsSelfEncryption; + +} STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY, *PSTORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY; + + +typedef enum _STORAGE_ENCRYPTION_TYPE { + + StorageEncryptionTypeUnknown = 0x00, + StorageEncryptionTypeEDrive = 0x01, + StorageEncryptionTypeTcgOpal = 0x02, + +} STORAGE_ENCRYPTION_TYPE, *PSTORAGE_ENCRYPTION_TYPE; + + + + + +typedef struct _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2 { + + DWORD Version; + + DWORD Size; + + BOOLEAN SupportsSelfEncryption; + + STORAGE_ENCRYPTION_TYPE EncryptionType; + +} STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2, *PSTORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2; + + + + +typedef struct _STORAGE_FRU_ID_DESCRIPTOR { + + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + + DWORD IdentifierSize; + BYTE Identifier[1]; + +} STORAGE_FRU_ID_DESCRIPTOR, *PSTORAGE_FRU_ID_DESCRIPTOR; +# 3084 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef DWORD DEVICE_DATA_MANAGEMENT_SET_ACTION, DEVICE_DSM_ACTION; +# 3144 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DATA_SET_RANGE { + + + + + + + LONGLONG StartingOffset; + DWORDLONG LengthInBytes; + +} DEVICE_DATA_SET_RANGE, *PDEVICE_DATA_SET_RANGE, + DEVICE_DSM_RANGE, *PDEVICE_DSM_RANGE; + +typedef struct _DEVICE_MANAGE_DATA_SET_ATTRIBUTES { + + + + + + + DWORD Size; + + DEVICE_DSM_ACTION Action; + DWORD Flags; + + + + + + DWORD ParameterBlockOffset; + DWORD ParameterBlockLength; + + + + + + DWORD DataSetRangesOffset; + DWORD DataSetRangesLength; + +} DEVICE_MANAGE_DATA_SET_ATTRIBUTES, *PDEVICE_MANAGE_DATA_SET_ATTRIBUTES, + DEVICE_DSM_INPUT, *PDEVICE_DSM_INPUT; + +typedef struct _DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT { + + + + + + + DWORD Size; + + DEVICE_DSM_ACTION Action; + DWORD Flags; + + DWORD OperationStatus; + DWORD ExtendedError; + DWORD TargetDetailedError; + DWORD ReservedStatus; + + + + + + DWORD OutputBlockOffset; + DWORD OutputBlockLength; + +} DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT, *PDEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT, + DEVICE_DSM_OUTPUT, *PDEVICE_DSM_OUTPUT; + +typedef struct _DEVICE_DSM_DEFINITION { + + DEVICE_DSM_ACTION Action; + + BOOLEAN SingleRange; + + DWORD ParameterBlockAlignment; + DWORD ParameterBlockLength; + + BOOLEAN HasOutput; + + DWORD OutputBlockAlignment; + DWORD OutputBlockLength; + +} DEVICE_DSM_DEFINITION, *PDEVICE_DSM_DEFINITION; +# 3315 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DSM_NOTIFICATION_PARAMETERS { + + DWORD Size; + + DWORD Flags; + + DWORD NumFileTypeIDs; + GUID FileTypeID[1]; + +} DEVICE_DSM_NOTIFICATION_PARAMETERS, *PDEVICE_DSM_NOTIFICATION_PARAMETERS; +# 3351 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma warning(push) +#pragma warning(disable: 4201) + +typedef struct _STORAGE_OFFLOAD_TOKEN { + + BYTE TokenType[4]; + BYTE Reserved[2]; + BYTE TokenIdLength[2]; + union { + struct { + BYTE Reserved2[0x1F8]; + } StorageOffloadZeroDataToken; + BYTE Token[0x1F8]; + } ; + +} STORAGE_OFFLOAD_TOKEN, *PSTORAGE_OFFLOAD_TOKEN; + +#pragma warning(pop) +# 3388 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DSM_OFFLOAD_READ_PARAMETERS { + + + + + + DWORD Flags; + + + + + + + DWORD TimeToLive; + + DWORD Reserved[2]; + +} DEVICE_DSM_OFFLOAD_READ_PARAMETERS, *PDEVICE_DSM_OFFLOAD_READ_PARAMETERS; +# 3423 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_OFFLOAD_READ_OUTPUT { + + DWORD OffloadReadFlags; + DWORD Reserved; + + + + + + + + DWORDLONG LengthProtected; + + DWORD TokenLength; + STORAGE_OFFLOAD_TOKEN Token; + +} STORAGE_OFFLOAD_READ_OUTPUT, *PSTORAGE_OFFLOAD_READ_OUTPUT; +# 3462 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS { + + + + + + DWORD Flags; + DWORD Reserved; + + + + + + + DWORDLONG TokenOffset; + + STORAGE_OFFLOAD_TOKEN Token; + +} DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS, *PDEVICE_DSM_OFFLOAD_WRITE_PARAMETERS; +# 3489 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_OFFLOAD_WRITE_OUTPUT { + + DWORD OffloadWriteFlags; + DWORD Reserved; + + + + + + + DWORDLONG LengthCopied; + +} STORAGE_OFFLOAD_WRITE_OUTPUT, *PSTORAGE_OFFLOAD_WRITE_OUTPUT; +# 3530 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DATA_SET_LBP_STATE_PARAMETERS { + + DWORD Version; + DWORD Size; + + + + + + DWORD Flags; + + + + + + + DWORD OutputVersion; + +} DEVICE_DATA_SET_LBP_STATE_PARAMETERS, *PDEVICE_DATA_SET_LBP_STATE_PARAMETERS, + DEVICE_DSM_ALLOCATION_PARAMETERS, *PDEVICE_DSM_ALLOCATION_PARAMETERS; + + + + +typedef struct _DEVICE_DATA_SET_LB_PROVISIONING_STATE { + + DWORD Size; + DWORD Version; + + DWORDLONG SlabSizeInBytes; + + + + + + + + DWORD SlabOffsetDeltaInBytes; + + + + + + DWORD SlabAllocationBitMapBitCount; + + + + + + DWORD SlabAllocationBitMapLength; + + + + + + DWORD SlabAllocationBitMap[1]; + +} DEVICE_DATA_SET_LB_PROVISIONING_STATE, *PDEVICE_DATA_SET_LB_PROVISIONING_STATE, + DEVICE_DSM_ALLOCATION_OUTPUT, *PDEVICE_DSM_ALLOCATION_OUTPUT; + + + + +typedef struct _DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2 { + + DWORD Size; + DWORD Version; + + DWORDLONG SlabSizeInBytes; + + + + + + + + DWORDLONG SlabOffsetDeltaInBytes; + + + + + + DWORD SlabAllocationBitMapBitCount; + + + + + + DWORD SlabAllocationBitMapLength; + + + + + + DWORD SlabAllocationBitMap[1]; + +} DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2, *PDEVICE_DATA_SET_LB_PROVISIONING_STATE_V2, + DEVICE_DSM_ALLOCATION_OUTPUT2, *PDEVICE_DSM_ALLOCATION_OUTPUT2; +# 3659 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DATA_SET_REPAIR_PARAMETERS { + + DWORD NumberOfRepairCopies; + DWORD SourceCopy; + DWORD RepairCopies[1]; +# 3674 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +} DEVICE_DATA_SET_REPAIR_PARAMETERS, *PDEVICE_DATA_SET_REPAIR_PARAMETERS, + DEVICE_DSM_REPAIR_PARAMETERS, *PDEVICE_DSM_REPAIR_PARAMETERS; +# 3689 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DATA_SET_REPAIR_OUTPUT { + + + + + + DEVICE_DSM_RANGE ParityExtent; + +} DEVICE_DATA_SET_REPAIR_OUTPUT, *PDEVICE_DATA_SET_REPAIR_OUTPUT, + DEVICE_DSM_REPAIR_OUTPUT, *PDEVICE_DSM_REPAIR_OUTPUT; +# 3727 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DATA_SET_SCRUB_OUTPUT { + + DWORDLONG BytesProcessed; + DWORDLONG BytesRepaired; + DWORDLONG BytesFailed; + +} DEVICE_DATA_SET_SCRUB_OUTPUT, *PDEVICE_DATA_SET_SCRUB_OUTPUT, + DEVICE_DSM_SCRUB_OUTPUT, *PDEVICE_DSM_SCRUB_OUTPUT; + + + + + + + +typedef struct _DEVICE_DATA_SET_SCRUB_EX_OUTPUT { + + DWORDLONG BytesProcessed; + DWORDLONG BytesRepaired; + DWORDLONG BytesFailed; + + + + + + DEVICE_DSM_RANGE ParityExtent; + + DWORDLONG BytesScrubbed; + +} DEVICE_DATA_SET_SCRUB_EX_OUTPUT, *PDEVICE_DATA_SET_SCRUB_EX_OUTPUT, + DEVICE_DSM_SCRUB_OUTPUT2, *PDEVICE_DSM_SCRUB_OUTPUT2; +# 3843 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DSM_TIERING_QUERY_INPUT { + + DWORD Version; + DWORD Size; + + + + + + DWORD Flags; + + DWORD NumberOfTierIds; + GUID TierIds[1]; + +} DEVICE_DSM_TIERING_QUERY_INPUT, *PDEVICE_DSM_TIERING_QUERY_INPUT, + DEVICE_DSM_TIERING_QUERY_PARAMETERS, *PDEVICE_DSM_TIERING_QUERY_PARAMETERS; + +typedef struct _STORAGE_TIER_REGION { + + GUID TierId; + + DWORDLONG Offset; + DWORDLONG Length; + +} STORAGE_TIER_REGION, *PSTORAGE_TIER_REGION; + +typedef struct _DEVICE_DSM_TIERING_QUERY_OUTPUT { + + DWORD Version; + DWORD Size; + + + + + + DWORD Flags; + DWORD Reserved; + + + + + + + + DWORDLONG Alignment; + + + + + + + DWORD TotalNumberOfRegions; + + DWORD NumberOfRegionsReturned; + STORAGE_TIER_REGION Regions[1]; + +} DEVICE_DSM_TIERING_QUERY_OUTPUT, *PDEVICE_DSM_TIERING_QUERY_OUTPUT; +# 3964 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS { + + DWORD Size; + + BYTE TargetPriority; + BYTE Reserved[3]; + +} DEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS, *PDEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS; +# 4014 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT { + + + + + + + + DWORDLONG TopologyRangeBytes; + + + + + + BYTE TopologyId[16]; + +} DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT, *PDEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT, + DEVICE_DSM_TOPOLOGY_ID_QUERY_OUTPUT, *PDEVICE_DSM_TOPOLOGY_ID_QUERY_OUTPUT; +# 4081 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_STORAGE_ADDRESS_RANGE { + + LONGLONG StartAddress; + DWORDLONG LengthInBytes; + +} DEVICE_STORAGE_ADDRESS_RANGE, *PDEVICE_STORAGE_ADDRESS_RANGE; + +typedef struct _DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT { + + DWORD Version; + + + + + + DWORD Flags; +# 4106 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD TotalNumberOfRanges; +# 4116 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD NumberOfRangesReturned; + DEVICE_STORAGE_ADDRESS_RANGE Ranges[1]; + +} DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT, *PDEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT; +# 4166 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DSM_REPORT_ZONES_PARAMETERS { + + DWORD Size; + + BYTE ReportOption; + + + + + + + BYTE Partial; + + BYTE Reserved[2]; + +} DEVICE_DSM_REPORT_ZONES_PARAMETERS, *PDEVICE_DSM_REPORT_ZONES_PARAMETERS; + +typedef enum _STORAGE_ZONES_ATTRIBUTES { + + ZonesAttributeTypeAndLengthMayDifferent = 0, + ZonesAttributeTypeSameLengthSame = 1, + ZonesAttributeTypeSameLastZoneLengthDifferent = 2, + ZonesAttributeTypeMayDifferentLengthSame = 3, + +} STORAGE_ZONES_ATTRIBUTES, *PSTORAGE_ZONES_ATTRIBUTES; + +typedef enum _STORAGE_ZONE_CONDITION { + + ZoneConditionConventional = 0x00, + ZoneConditionEmpty = 0x01, + ZoneConditionImplicitlyOpened = 0x02, + ZoneConditionExplicitlyOpened = 0x03, + ZoneConditionClosed = 0x04, + + ZoneConditionReadOnly = 0x0D, + ZoneConditionFull = 0x0E, + ZoneConditionOffline = 0x0F, + +} STORAGE_ZONE_CONDITION, *PSTORAGE_ZONE_CONDITION; + +typedef struct _STORAGE_ZONE_DESCRIPTOR { + + DWORD Size; + + STORAGE_ZONE_TYPES ZoneType; + STORAGE_ZONE_CONDITION ZoneCondition; + + BOOLEAN ResetWritePointerRecommend; + BYTE Reserved0[3]; + + + + + + DWORDLONG ZoneSize; + DWORDLONG WritePointerOffset; + +} STORAGE_ZONE_DESCRIPTOR, *PSTORAGE_ZONE_DESCRIPTOR; + +typedef struct _DEVICE_DSM_REPORT_ZONES_DATA { + + DWORD Size; + + DWORD ZoneCount; + STORAGE_ZONES_ATTRIBUTES Attributes; + + DWORD Reserved0; + + STORAGE_ZONE_DESCRIPTOR ZoneDescriptors[1]; + +} DEVICE_DSM_REPORT_ZONES_DATA, *PDEVICE_DSM_REPORT_ZONES_DATA, + DEVICE_DSM_REPORT_ZONES_OUTPUT, *PDEVICE_DSM_REPORT_ZONES_OUTPUT; +# 4344 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma warning(push) +#pragma warning(disable: 4201) +#pragma warning(disable: 4214) + +typedef struct _DEVICE_STORAGE_RANGE_ATTRIBUTES { + + + + + + + DWORDLONG LengthInBytes; + + union { + + DWORD AllFlags; + + struct { + + + + + + DWORD IsRangeBad : 1; + } ; + } ; + + DWORD Reserved; + +} DEVICE_STORAGE_RANGE_ATTRIBUTES, *PDEVICE_STORAGE_RANGE_ATTRIBUTES; + +#pragma warning(pop) + + + + + + + +typedef struct _DEVICE_DSM_RANGE_ERROR_INFO { + + DWORD Version; + + DWORD Flags; +# 4397 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD TotalNumberOfRanges; +# 4414 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD NumberOfRangesReturned; + DEVICE_STORAGE_RANGE_ATTRIBUTES Ranges[1]; + +} DEVICE_DSM_RANGE_ERROR_INFO, *PDEVICE_DSM_RANGE_ERROR_INFO, + DEVICE_DSM_RANGE_ERROR_OUTPUT, *PDEVICE_DSM_RANGE_ERROR_OUTPUT; +# 4468 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DSM_LOST_QUERY_PARAMETERS { + + + + + + + DWORD Version; + + DWORDLONG Granularity; + +} DEVICE_DSM_LOST_QUERY_PARAMETERS, *PDEVICE_DSM_LOST_QUERY_PARAMETERS; + +typedef struct _DEVICE_DSM_LOST_QUERY_OUTPUT { + + + + + + + DWORD Version; + + + + + + + + DWORD Size; + + + + + + + + DWORDLONG Alignment; + + + + + + DWORD NumberOfBits; + DWORD BitMap[1]; + +} DEVICE_DSM_LOST_QUERY_OUTPUT, *PDEVICE_DSM_LOST_QUERY_OUTPUT; +# 4536 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DSM_FREE_SPACE_OUTPUT { + + + + + + + DWORD Version; + + + + + + DWORDLONG FreeSpace; + +} DEVICE_DSM_FREE_SPACE_OUTPUT, *PDEVICE_DSM_FREE_SPACE_OUTPUT; +# 4574 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICE_DSM_CONVERSION_OUTPUT { + + + + + + + DWORD Version; + + + + + + + GUID Source; + +} DEVICE_DSM_CONVERSION_OUTPUT, *PDEVICE_DSM_CONVERSION_OUTPUT; +# 4638 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +__forceinline +PVOID +DeviceDsmParameterBlock ( + PDEVICE_DSM_INPUT Input + ) +{ + return (PVOID) + ((DWORD_PTR)Input + + Input->ParameterBlockOffset); +} + + +__forceinline +PDEVICE_DSM_RANGE +DeviceDsmDataSetRanges ( + PDEVICE_DSM_INPUT Input + ) +{ + return (PDEVICE_DSM_RANGE) + ((DWORD_PTR)Input + + Input->DataSetRangesOffset); +} + + +__forceinline +DWORD +DeviceDsmNumberOfDataSetRanges ( + PDEVICE_DSM_INPUT Input + ) +{ + return Input->DataSetRangesLength / + sizeof(DEVICE_DSM_RANGE); +} + + +__forceinline +DWORD +DeviceDsmGetInputLength ( + PDEVICE_DSM_DEFINITION Definition, + DWORD ParameterBlockLength, + DWORD NumberOfDataSetRanges + ) +{ + DWORD Bytes = sizeof(DEVICE_DSM_INPUT); + + if (ParameterBlockLength != 0) { + + Bytes = (((Bytes) + ((Definition->ParameterBlockAlignment) - 1)) / (Definition->ParameterBlockAlignment) * (Definition->ParameterBlockAlignment)); + Bytes += ParameterBlockLength; + } + + if (NumberOfDataSetRanges != 0) { + + Bytes = (((Bytes) + ((__alignof(DEVICE_DSM_RANGE)) - 1)) / (__alignof(DEVICE_DSM_RANGE)) * (__alignof(DEVICE_DSM_RANGE))); + Bytes += sizeof(DEVICE_DSM_RANGE) * NumberOfDataSetRanges; + } + + return Bytes; +} + + +__forceinline +DWORD +DeviceDsmGetNumberOfDataSetRanges ( + PDEVICE_DSM_DEFINITION Definition, + DWORD InputLength, + DWORD ParameterBlockLength + ) +{ + DWORD Bytes = sizeof(DEVICE_DSM_INPUT); + + if (ParameterBlockLength != 0) { + + Bytes = (((Bytes) + ((Definition->ParameterBlockAlignment) - 1)) / (Definition->ParameterBlockAlignment) * (Definition->ParameterBlockAlignment)); + Bytes += ParameterBlockLength; + } + + Bytes = (((Bytes) + ((__alignof(DEVICE_DSM_RANGE)) - 1)) / (__alignof(DEVICE_DSM_RANGE)) * (__alignof(DEVICE_DSM_RANGE))); + Bytes = InputLength - Bytes; + + return Bytes / sizeof(DEVICE_DSM_RANGE); +} + + +__forceinline +void +DeviceDsmInitializeInput ( + PDEVICE_DSM_DEFINITION Definition, + PDEVICE_DSM_INPUT Input, + DWORD InputLength, + DWORD Flags, + PVOID Parameters, + DWORD ParameterBlockLength + ) +{ + DWORD Bytes = sizeof(DEVICE_DSM_INPUT); + + memset((Input),0,(InputLength)); + + Input->Size = Bytes; + Input->Action = Definition->Action; + Input->Flags = Flags; + + if (ParameterBlockLength == 0) { + goto Cleanup; + } + + Bytes = (((Bytes) + ((Definition->ParameterBlockAlignment) - 1)) / (Definition->ParameterBlockAlignment) * (Definition->ParameterBlockAlignment)); + + Input->ParameterBlockOffset = Bytes; + Input->ParameterBlockLength = ParameterBlockLength; + + if (!Parameters) { + goto Cleanup; + } + + memcpy((DeviceDsmParameterBlock(Input)),(Parameters),(Input->ParameterBlockLength)); + + + +Cleanup: + + return; +} + + +__forceinline +BOOLEAN +DeviceDsmAddDataSetRange ( + PDEVICE_DSM_INPUT Input, + DWORD InputLength, + LONGLONG Offset, + DWORDLONG Length + ) +{ + DWORD Bytes = 0; + DWORD Index = 0; + PDEVICE_DSM_RANGE Ranges = ((void *)0); + BOOLEAN Return = 0; + + if (Input->Flags & 0x00000001) { + goto Cleanup; + } + + if (Input->DataSetRangesLength == 0) { + + if (Input->ParameterBlockLength == 0) { + + Bytes = sizeof(DEVICE_DSM_INPUT); + + } else { + + Bytes = Input->ParameterBlockOffset + + Input->ParameterBlockLength; + } + + Bytes = (((Bytes) + ((__alignof(DEVICE_DSM_RANGE)) - 1)) / (__alignof(DEVICE_DSM_RANGE)) * (__alignof(DEVICE_DSM_RANGE))); + + } else { + + Bytes = Input->DataSetRangesOffset + + Input->DataSetRangesLength; + } + + if ((InputLength - Bytes) < sizeof(DEVICE_DSM_RANGE)) { + goto Cleanup; + } + + if (Input->DataSetRangesOffset == 0) { + Input->DataSetRangesOffset = Bytes; + } + + Ranges = DeviceDsmDataSetRanges(Input); + Index = DeviceDsmNumberOfDataSetRanges(Input); + + Ranges[Index].StartingOffset = Offset; + Ranges[Index].LengthInBytes = Length; + + Input->DataSetRangesLength += sizeof(DEVICE_DSM_RANGE); + + Return = 1; + +Cleanup: + + return Return; +} + + +__forceinline +BOOLEAN +DeviceDsmValidateInput ( + PDEVICE_DSM_DEFINITION Definition, + PDEVICE_DSM_INPUT Input, + DWORD InputLength + ) +{ + DWORD Max = 0; + DWORD Min = 0; + BOOLEAN Valid = 0; + + if (Definition->Action != Input->Action) { + goto Cleanup; + } + + if (Definition->ParameterBlockLength != 0) { + + Min = sizeof(*Input); + Max = InputLength; + + if (Input->ParameterBlockOffset < Min || + Input->ParameterBlockOffset > Max || + Input->ParameterBlockOffset % Definition->ParameterBlockAlignment) { + goto Cleanup; + } + + Min = Definition->ParameterBlockLength; + Max = InputLength - Input->ParameterBlockOffset; + + if (Input->ParameterBlockLength < Min || + Input->ParameterBlockLength > Max) { + goto Cleanup; + } + } + + if (!(Input->Flags & 0x00000001)) { + + Min = sizeof(*Input); + Max = InputLength; + + if (Input->DataSetRangesOffset < Min || + Input->DataSetRangesOffset > Max || + Input->DataSetRangesOffset % __alignof(DEVICE_DSM_RANGE)) { + goto Cleanup; + } + + Min = sizeof(DEVICE_DSM_RANGE); + Max = InputLength - Input->DataSetRangesOffset; + + if (Input->DataSetRangesLength < Min || + Input->DataSetRangesLength > Max || + Input->DataSetRangesLength % Min) { + goto Cleanup; + } + + if (Definition->SingleRange && + Input->DataSetRangesLength != Min) { + goto Cleanup; + } + + } else { + + if (Input->DataSetRangesOffset != 0 || + Input->DataSetRangesLength != 0) { + goto Cleanup; + } + } + + if (Input->ParameterBlockOffset < Input->DataSetRangesOffset && + Input->ParameterBlockOffset + + Input->ParameterBlockLength > Input->DataSetRangesOffset) { + goto Cleanup; + } + + if (Input->DataSetRangesOffset < Input->ParameterBlockOffset && + Input->DataSetRangesOffset + + Input->DataSetRangesLength > Input->ParameterBlockOffset) { + goto Cleanup; + } + + Valid = 1; + +Cleanup: + + return Valid; +} + + +__forceinline +PVOID +DeviceDsmOutputBlock ( + PDEVICE_DSM_OUTPUT Output + ) +{ + return (PVOID) + ((DWORD_PTR)Output + Output->OutputBlockOffset); +} + + +__forceinline +DWORD +DeviceDsmGetOutputLength ( + PDEVICE_DSM_DEFINITION Definition, + DWORD OutputBlockLength + ) +{ + DWORD Bytes = 0; + + if (!Definition->HasOutput) { + goto Cleanup; + } + + Bytes = sizeof(DEVICE_DSM_OUTPUT); + + if (Definition->OutputBlockLength == 0) { + goto Cleanup; + } + + if (Definition->OutputBlockLength > OutputBlockLength) { + OutputBlockLength = Definition->OutputBlockLength; + } + + Bytes = (((Bytes) + ((Definition->OutputBlockAlignment) - 1)) / (Definition->OutputBlockAlignment) * (Definition->OutputBlockAlignment)); + Bytes += OutputBlockLength; + +Cleanup: + + return Bytes; +} + + +__forceinline +BOOLEAN +DeviceDsmValidateOutputLength ( + PDEVICE_DSM_DEFINITION Definition, + DWORD OutputLength + ) +{ + DWORD Bytes = DeviceDsmGetOutputLength(Definition, + 0); + + return (OutputLength >= Bytes); +} + + +__forceinline +DWORD +DeviceDsmGetOutputBlockLength ( + PDEVICE_DSM_DEFINITION Definition, + DWORD OutputLength + ) +{ + DWORD Bytes = 0; + + if (Definition->OutputBlockLength == 0) { + goto Cleanup; + } + + Bytes = sizeof(DEVICE_DSM_OUTPUT); + Bytes = (((Bytes) + ((Definition->OutputBlockAlignment) - 1)) / (Definition->OutputBlockAlignment) * (Definition->OutputBlockAlignment)); + Bytes = OutputLength - Bytes; + +Cleanup: + + return Bytes; +} + + +__forceinline +void +DeviceDsmInitializeOutput ( + PDEVICE_DSM_DEFINITION Definition, + PDEVICE_DSM_OUTPUT Output, + DWORD OutputLength, + DWORD Flags + ) +{ + DWORD Bytes = sizeof(DEVICE_DSM_OUTPUT); + + memset((Output),0,(OutputLength)); + + Output->Size = Bytes; + Output->Action = Definition->Action; + Output->Flags = Flags; + + if (Definition->OutputBlockLength != 0) { + + Bytes = (((Bytes) + ((Definition->OutputBlockAlignment) - 1)) / (Definition->OutputBlockAlignment) * (Definition->OutputBlockAlignment)); + + Output->OutputBlockOffset = Bytes; + Output->OutputBlockLength = OutputLength - Bytes; + } + + return; +} + + +__forceinline +BOOLEAN +DeviceDsmValidateOutput ( + PDEVICE_DSM_DEFINITION Definition, + PDEVICE_DSM_OUTPUT Output, + DWORD OutputLength + ) +{ + DWORD Max = 0; + DWORD Min = 0; + BOOLEAN Valid = 0; + + if (Definition->Action != Output->Action) { + goto Cleanup; + } + + if (!Definition->HasOutput) { + goto Cleanup; + } + + if (Definition->OutputBlockLength != 0) { + + Min = sizeof(*Output); + Max = OutputLength; + + if (Output->OutputBlockOffset < Min || + Output->OutputBlockOffset > Max || + Output->OutputBlockOffset % Definition->OutputBlockAlignment) { + goto Cleanup; + } + + Min = Definition->OutputBlockLength; + Max = OutputLength - Output->OutputBlockOffset; + + if (Output->OutputBlockLength < Min || + Output->OutputBlockLength > Max) { + goto Cleanup; + } + + } else { + + if (Output->OutputBlockOffset != 0 || + Output->OutputBlockLength != 0) { + goto Cleanup; + } + } + + Valid = 1; + +Cleanup: + + return Valid; +} +# 5099 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_GET_BC_PROPERTIES_OUTPUT { + + + + + + DWORD MaximumRequestsPerPeriod; + + + + + + DWORD MinimumPeriod; + + + + + + + + DWORDLONG MaximumRequestSize; + + + + + + + DWORD EstimatedTimePerRequest; +# 5135 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD NumOutStandingRequests; + + + + + + + DWORDLONG RequestSize; + +} STORAGE_GET_BC_PROPERTIES_OUTPUT, *PSTORAGE_GET_BC_PROPERTIES_OUTPUT; +# 5163 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_ALLOCATE_BC_STREAM_INPUT { + + + + + DWORD Version; + + + + + + DWORD RequestsPerPeriod; + + + + + + DWORD Period; + + + + + + BOOLEAN RetryFailures; + + + + + + BOOLEAN Discardable; + + + + + BOOLEAN Reserved1[2]; + + + + + + DWORD AccessType; + + + + + + DWORD AccessMode; + +} STORAGE_ALLOCATE_BC_STREAM_INPUT, *PSTORAGE_ALLOCATE_BC_STREAM_INPUT; + +typedef struct _STORAGE_ALLOCATE_BC_STREAM_OUTPUT { + + + + + + DWORDLONG RequestSize; + + + + + + + DWORD NumOutStandingRequests; + +} STORAGE_ALLOCATE_BC_STREAM_OUTPUT, *PSTORAGE_ALLOCATE_BC_STREAM_OUTPUT; +# 5252 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_PRIORITY_HINT_SUPPORT { + DWORD SupportFlags; +} STORAGE_PRIORITY_HINT_SUPPORT, *PSTORAGE_PRIORITY_HINT_SUPPORT; +# 5265 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_DIAGNOSTIC_LEVEL { + StorageDiagnosticLevelDefault = 0, + StorageDiagnosticLevelMax +} STORAGE_DIAGNOSTIC_LEVEL, *PSTORAGE_DIAGNOSTIC_LEVEL; + +typedef enum _STORAGE_DIAGNOSTIC_TARGET_TYPE { + + StorageDiagnosticTargetTypeUndefined = 0, + StorageDiagnosticTargetTypePort, + StorageDiagnosticTargetTypeMiniport, + StorageDiagnosticTargetTypeHbaFirmware, + StorageDiagnosticTargetTypeMax + +} STORAGE_DIAGNOSTIC_TARGET_TYPE, *PSTORAGE_DIAGNOSTIC_TARGET_TYPE; +# 5290 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_DIAGNOSTIC_REQUEST { + + + DWORD Version; + + + + DWORD Size; + + + DWORD Flags; + + + STORAGE_DIAGNOSTIC_TARGET_TYPE TargetType; + + + STORAGE_DIAGNOSTIC_LEVEL Level; + +} STORAGE_DIAGNOSTIC_REQUEST, *PSTORAGE_DIAGNOSTIC_REQUEST; + + + + + +typedef struct _STORAGE_DIAGNOSTIC_DATA { + + + DWORD Version; + + + DWORD Size; + + + GUID ProviderId; + + + + + + DWORD BufferSize; + + + DWORD Reserved; + + + BYTE DiagnosticDataBuffer[1]; + +} STORAGE_DIAGNOSTIC_DATA, *PSTORAGE_DIAGNOSTIC_DATA; +# 5348 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _PHYSICAL_ELEMENT_STATUS_REQUEST { + + DWORD Version; + DWORD Size; + + DWORD StartingElement; + BYTE Filter; + BYTE ReportType; + BYTE Reserved[2]; + +} PHYSICAL_ELEMENT_STATUS_REQUEST, *PPHYSICAL_ELEMENT_STATUS_REQUEST; + +typedef struct _PHYSICAL_ELEMENT_STATUS_DESCRIPTOR { + + DWORD Version; + DWORD Size; + + DWORD ElementIdentifier; + BYTE PhysicalElementType; + BYTE PhysicalElementHealth; + BYTE Reserved1[2]; + + + DWORDLONG AssociatedCapacity; + + DWORD Reserved2[4]; + +} PHYSICAL_ELEMENT_STATUS_DESCRIPTOR, *PPHYSICAL_ELEMENT_STATUS_DESCRIPTOR; + +typedef struct _PHYSICAL_ELEMENT_STATUS { + + DWORD Version; + DWORD Size; + + DWORD DescriptorCount; + DWORD ReturnedDescriptorCount; + + DWORD ElementIdentifierBeingDepoped; + DWORD Reserved; + + PHYSICAL_ELEMENT_STATUS_DESCRIPTOR Descriptors[1]; + +} PHYSICAL_ELEMENT_STATUS, *PPHYSICAL_ELEMENT_STATUS; +# 5399 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _REMOVE_ELEMENT_AND_TRUNCATE_REQUEST { + + DWORD Version; + DWORD Size; + + + DWORDLONG RequestCapacity; + + DWORD ElementIdentifier; + DWORD Reserved; + +} REMOVE_ELEMENT_AND_TRUNCATE_REQUEST, *PREMOVE_ELEMENT_AND_TRUNCATE_REQUEST; +# 5423 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE { + DeviceInternalStatusDataRequestTypeUndefined = 0, + DeviceCurrentInternalStatusDataHeader, + DeviceCurrentInternalStatusData, + DeviceSavedInternalStatusDataHeader, + DeviceSavedInternalStatusData +} DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE, *PDEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE; + +typedef enum _DEVICE_INTERNAL_STATUS_DATA_SET { + DeviceStatusDataSetUndefined = 0, + DeviceStatusDataSet1, + DeviceStatusDataSet2, + DeviceStatusDataSet3, + DeviceStatusDataSet4, + DeviceStatusDataSetMax +} DEVICE_INTERNAL_STATUS_DATA_SET, *PDEVICE_INTERNAL_STATUS_DATA_SET; + +typedef struct _GET_DEVICE_INTERNAL_STATUS_DATA_REQUEST { + + DWORD Version; + DWORD Size; + + DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE RequestDataType; + DEVICE_INTERNAL_STATUS_DATA_SET RequestDataSet; + +} GET_DEVICE_INTERNAL_STATUS_DATA_REQUEST, *PGET_DEVICE_INTERNAL_STATUS_DATA_REQUEST; + +typedef struct _DEVICE_INTERNAL_STATUS_DATA { + + + DWORD Version; + + + DWORD Size; + + DWORDLONG T10VendorId; + + DWORD DataSet1Length; + DWORD DataSet2Length; + DWORD DataSet3Length; + DWORD DataSet4Length; + + BYTE StatusDataVersion; + BYTE Reserved[3]; + BYTE ReasonIdentifier[128]; + DWORD StatusDataLength; + BYTE StatusData[1]; + +} DEVICE_INTERNAL_STATUS_DATA, *PDEVICE_INTERNAL_STATUS_DATA; +# 5482 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_SANITIZE_METHOD { + StorageSanitizeMethodDefault = 0, + StorageSanitizeMethodBlockErase, + StorageSanitizeMethodCryptoErase +} STORAGE_SANITIZE_METHOD, *PSTORAGE_SANITIZE_METHOD; + +#pragma warning(push) +#pragma warning(disable: 4214) + +typedef struct _STORAGE_REINITIALIZE_MEDIA { + + DWORD Version; + + DWORD Size; + + DWORD TimeoutInSeconds; + + + + + struct { + + + + + DWORD SanitizeMethod : 4; + + + + + + DWORD DisallowUnrestrictedSanitizeExit : 1; + + DWORD Reserved : 27; + } SanitizeOption; + +} STORAGE_REINITIALIZE_MEDIA, *PSTORAGE_REINITIALIZE_MEDIA; + +#pragma warning(pop) + + +#pragma warning(push) +#pragma warning(disable: 4200) + + + +typedef struct _STORAGE_MEDIA_SERIAL_NUMBER_DATA { + + WORD Reserved; + + + + + + + + WORD SerialNumberLength; +# 5547 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + BYTE SerialNumber[0]; + + +} STORAGE_MEDIA_SERIAL_NUMBER_DATA, *PSTORAGE_MEDIA_SERIAL_NUMBER_DATA; + + + +typedef struct _STORAGE_READ_CAPACITY { + + + + + DWORD Version; + + + + + DWORD Size; + + + + + + DWORD BlockLength; + + + + + + + LARGE_INTEGER NumberOfBlocks; + + + + + + LARGE_INTEGER DiskLength; + +} STORAGE_READ_CAPACITY, *PSTORAGE_READ_CAPACITY; + +#pragma warning(pop) + + + + + + + + +typedef enum _WRITE_CACHE_TYPE { + WriteCacheTypeUnknown, + WriteCacheTypeNone, + WriteCacheTypeWriteBack, + WriteCacheTypeWriteThrough +} WRITE_CACHE_TYPE; + +typedef enum _WRITE_CACHE_ENABLE { + WriteCacheEnableUnknown, + WriteCacheDisabled, + WriteCacheEnabled +} WRITE_CACHE_ENABLE; + +typedef enum _WRITE_CACHE_CHANGE { + WriteCacheChangeUnknown, + WriteCacheNotChangeable, + WriteCacheChangeable +} WRITE_CACHE_CHANGE; + +typedef enum _WRITE_THROUGH { + WriteThroughUnknown, + WriteThroughNotSupported, + WriteThroughSupported +} WRITE_THROUGH; + +typedef struct _STORAGE_WRITE_CACHE_PROPERTY { + + + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + + WRITE_CACHE_TYPE WriteCacheType; + + + + + + WRITE_CACHE_ENABLE WriteCacheEnabled; + + + + + + WRITE_CACHE_CHANGE WriteCacheChangeable; + + + + + + WRITE_THROUGH WriteThroughSupported; + + + + + + BOOLEAN FlushCacheSupported; + + + + + + BOOLEAN UserDefinedPowerProtection; + + + + + + BOOLEAN NVCacheEnabled; + +} STORAGE_WRITE_CACHE_PROPERTY, *PSTORAGE_WRITE_CACHE_PROPERTY; + +#pragma warning(push) +#pragma warning(disable: 4200) +#pragma warning(disable: 4201) +#pragma warning(disable: 4214) + + + + +typedef struct _PERSISTENT_RESERVE_COMMAND { + + DWORD Version; + DWORD Size; + + union { + + struct { + + + + + + BYTE ServiceAction : 5; + BYTE Reserved1 : 3; + + + + + + WORD AllocationLength; + + } PR_IN; + + struct { + + + + + + BYTE ServiceAction : 5; + BYTE Reserved1 : 3; + + + + + + BYTE Type : 4; + BYTE Scope : 4; + + + + + + + BYTE ParameterList[0]; + + + } PR_OUT; + } ; + +} PERSISTENT_RESERVE_COMMAND, *PPERSISTENT_RESERVE_COMMAND; + + +#pragma warning(pop) +# 5754 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma warning(push) +# 5778 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _DEVICEDUMP_COLLECTION_TYPE { + TCCollectionBugCheck = 1, + TCCollectionApplicationRequested, + TCCollectionDeviceRequested +} DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE, *PDEVICEDUMP_COLLECTION_TYPE; +# 5796 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,1) +# 5797 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 +# 5815 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICEDUMP_SUBSECTION_POINTER { + DWORD dwSize; + DWORD dwFlags; + DWORD dwOffset; +} DEVICEDUMP_SUBSECTION_POINTER,*PDEVICEDUMP_SUBSECTION_POINTER; + + + + +typedef struct _DEVICEDUMP_STRUCTURE_VERSION { + + + + DWORD dwSignature; + + + + + DWORD dwVersion; + + + + + DWORD dwSize; + +} DEVICEDUMP_STRUCTURE_VERSION, *PDEVICEDUMP_STRUCTURE_VERSION; + + + + +typedef struct _DEVICEDUMP_SECTION_HEADER { + + + + GUID guidDeviceDataId; +# 5861 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + BYTE sOrganizationID[16]; + + + + + DWORD dwFirmwareRevision; + + + + + BYTE sModelNumber[32]; + + + + + BYTE szDeviceManufacturingID[32]; + + + + + + + DWORD dwFlags; + + + + + DWORD bRestrictedPrivateDataVersion; + + + + + + DWORD dwFirmwareIssueId; + + + + + BYTE szIssueDescriptionString[132]; + +} DEVICEDUMP_SECTION_HEADER, *PDEVICEDUMP_SECTION_HEADER; +# 5928 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _GP_LOG_PAGE_DESCRIPTOR { + WORD LogAddress; + WORD LogSectors; +} GP_LOG_PAGE_DESCRIPTOR,*PGP_LOG_PAGE_DESCRIPTOR; + +typedef struct _DEVICEDUMP_PUBLIC_SUBSECTION { + DWORD dwFlags; + GP_LOG_PAGE_DESCRIPTOR GPLogTable[16]; + CHAR szDescription[16]; + BYTE bData[1]; +} DEVICEDUMP_PUBLIC_SUBSECTION, *PDEVICEDUMP_PUBLIC_SUBSECTION; + + + + +typedef struct _DEVICEDUMP_RESTRICTED_SUBSECTION { + + BYTE bData[1]; + +} DEVICEDUMP_RESTRICTED_SUBSECTION, *PDEVICEDUMP_RESTRICTED_SUBSECTION; + + + + +typedef struct _DEVICEDUMP_PRIVATE_SUBSECTION { + + DWORD dwFlags; + GP_LOG_PAGE_DESCRIPTOR GPLogId; + + BYTE bData[1]; + +} DEVICEDUMP_PRIVATE_SUBSECTION, *PDEVICEDUMP_PRIVATE_SUBSECTION; + + + + +typedef struct _DEVICEDUMP_STORAGEDEVICE_DATA { + + + + + DEVICEDUMP_STRUCTURE_VERSION Descriptor; + + + + + DEVICEDUMP_SECTION_HEADER SectionHeader; + + + + + DWORD dwBufferSize; + + + + + DWORD dwReasonForCollection; + + + + + DEVICEDUMP_SUBSECTION_POINTER PublicData; + DEVICEDUMP_SUBSECTION_POINTER RestrictedData; + DEVICEDUMP_SUBSECTION_POINTER PrivateData; + +} DEVICEDUMP_STORAGEDEVICE_DATA, *PDEVICEDUMP_STORAGEDEVICE_DATA; +# 6013 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD { + + BYTE Cdb[16]; + + + BYTE Command[16]; + + + DWORDLONG StartTime; + + + DWORDLONG EndTime; + + + DWORD OperationStatus; + + + DWORD OperationError; + + + union { + struct { + DWORD dwReserved; + } ExternalStack; + + struct { + DWORD dwAtaPortSpecific; + } AtaPort; + + struct { + DWORD SrbTag ; + } StorPort; + + } StackSpecific; + +} DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD,*PDEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD; + + +typedef struct _DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP { + + + + + DEVICEDUMP_STRUCTURE_VERSION Descriptor; + + + + + DWORD dwReasonForCollection; + + + + + BYTE cDriverName[16]; + + + + + + DWORD uiNumRecords; + + DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD RecordArray[1]; + +} DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP,*PDEVICEDUMP_STORAGESTACK_PUBLIC_DUMP; + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 6080 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 +# 6091 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma warning(push) +#pragma warning(disable: 4214) +# 6104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_IDLE_POWER { + DWORD Version; + DWORD Size; + DWORD WakeCapableHint : 1; + DWORD D3ColdSupported : 1; + DWORD Reserved : 30; + DWORD D3IdleTimeout; +} STORAGE_IDLE_POWER, *PSTORAGE_IDLE_POWER; + +#pragma warning(pop) +# 6124 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_POWERUP_REASON_TYPE { + StoragePowerupUnknown = 0, + StoragePowerupIO, + StoragePowerupDeviceAttention +} STORAGE_POWERUP_REASON_TYPE, *PSTORAGE_POWERUP_REASON_TYPE; + +typedef struct _STORAGE_IDLE_POWERUP_REASON { + DWORD Version; + DWORD Size; + STORAGE_POWERUP_REASON_TYPE PowerupReason; +} STORAGE_IDLE_POWERUP_REASON, *PSTORAGE_IDLE_POWERUP_REASON; +# 6164 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_DEVICE_POWER_CAP_UNITS { + StorageDevicePowerCapUnitsPercent, + StorageDevicePowerCapUnitsMilliwatts +} STORAGE_DEVICE_POWER_CAP_UNITS, *PSTORAGE_DEVICE_POWER_CAP_UNITS; + +typedef struct _STORAGE_DEVICE_POWER_CAP { + DWORD Version; + DWORD Size; + STORAGE_DEVICE_POWER_CAP_UNITS Units; + DWORDLONG MaxPower; +} STORAGE_DEVICE_POWER_CAP, *PSTORAGE_DEVICE_POWER_CAP; +# 6193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma pack(push) +#pragma pack(1) + + + + + + + +typedef struct _STORAGE_RPMB_DATA_FRAME { + + + + + BYTE Stuff[196]; + + + + + BYTE KeyOrMAC[32]; + + + + + BYTE Data[256]; + + + + + BYTE Nonce[16]; + + + + + BYTE WriteCounter[4]; + + + + + BYTE Address[2]; + + + + + BYTE BlockCount[2]; + + + + + BYTE OperationResult[2]; + + + + + BYTE RequestOrResponseType[2]; + +} STORAGE_RPMB_DATA_FRAME, *PSTORAGE_RPMB_DATA_FRAME; + + + + + +typedef enum _STORAGE_RPMB_COMMAND_TYPE { + StorRpmbProgramAuthKey = 0x00000001, + StorRpmbQueryWriteCounter = 0x00000002, + StorRpmbAuthenticatedWrite = 0x00000003, + StorRpmbAuthenticatedRead = 0x00000004, + StorRpmbReadResultRequest = 0x00000005, + StorRpmbAuthenticatedDeviceConfigWrite = 0x00000006, + StorRpmbAuthenticatedDeviceConfigRead = 0x00000007, +} STORAGE_RPMB_COMMAND_TYPE, *PSTORAGE_RPMB_COMMAND_TYPE; + +#pragma pack(pop) +# 6276 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_EVENT_NOTIFICATION { + DWORD Version; + DWORD Size; + DWORDLONG Events; +} STORAGE_EVENT_NOTIFICATION, *PSTORAGE_EVENT_NOTIFICATION; +# 6290 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma warning(pop) +# 6329 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_COUNTER_TYPE { + + StorageCounterTypeUnknown = 0, + + StorageCounterTypeTemperatureCelsius, + StorageCounterTypeTemperatureCelsiusMax, + StorageCounterTypeReadErrorsTotal, + StorageCounterTypeReadErrorsCorrected, + StorageCounterTypeReadErrorsUncorrected, + StorageCounterTypeWriteErrorsTotal, + StorageCounterTypeWriteErrorsCorrected, + StorageCounterTypeWriteErrorsUncorrected, + StorageCounterTypeManufactureDate, + StorageCounterTypeStartStopCycleCount, + StorageCounterTypeStartStopCycleCountMax, + StorageCounterTypeLoadUnloadCycleCount, + StorageCounterTypeLoadUnloadCycleCountMax, + StorageCounterTypeWearPercentage, + StorageCounterTypeWearPercentageWarning, + StorageCounterTypeWearPercentageMax, + StorageCounterTypePowerOnHours, + StorageCounterTypeReadLatency100NSMax, + StorageCounterTypeWriteLatency100NSMax, + StorageCounterTypeFlushLatency100NSMax, + + StorageCounterTypeMax + +} STORAGE_COUNTER_TYPE, *PSTORAGE_COUNTER_TYPE; + +typedef struct _STORAGE_COUNTER { + + STORAGE_COUNTER_TYPE Type; + + union { + + struct { + + + + DWORD Week; + + + + + DWORD Year; + } ManufactureDate; + + DWORDLONG AsUlonglong; + } Value; + +} STORAGE_COUNTER, *PSTORAGE_COUNTER; + +typedef struct _STORAGE_COUNTERS { + + + + + DWORD Version; + + + + + DWORD Size; + + DWORD NumberOfCounters; + + STORAGE_COUNTER Counters[1]; + +} STORAGE_COUNTERS, *PSTORAGE_COUNTERS; +# 6437 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_HW_FIRMWARE_INFO_QUERY { + DWORD Version; + DWORD Size; + DWORD Flags; + DWORD Reserved; +} STORAGE_HW_FIRMWARE_INFO_QUERY, *PSTORAGE_HW_FIRMWARE_INFO_QUERY; +# 6456 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma warning(push) +#pragma warning(disable: 4214) + + + +typedef struct _STORAGE_HW_FIRMWARE_SLOT_INFO { + + DWORD Version; + + DWORD Size; + + BYTE SlotNumber; + + BYTE ReadOnly : 1; + + BYTE Reserved0 : 7; + + BYTE Reserved1[6]; + + BYTE Revision[16]; + +} STORAGE_HW_FIRMWARE_SLOT_INFO, *PSTORAGE_HW_FIRMWARE_SLOT_INFO; + +typedef struct _STORAGE_HW_FIRMWARE_INFO { + + DWORD Version; + + DWORD Size; + + BYTE SupportUpgrade : 1; + + BYTE Reserved0 : 7; + + BYTE SlotCount; + + BYTE ActiveSlot; + + BYTE PendingActivateSlot; + + BOOLEAN FirmwareShared; + + BYTE Reserved[3]; + + DWORD ImagePayloadAlignment; + + DWORD ImagePayloadMaxSize; + + STORAGE_HW_FIRMWARE_SLOT_INFO Slot[1]; + +} STORAGE_HW_FIRMWARE_INFO, *PSTORAGE_HW_FIRMWARE_INFO; +#pragma warning(pop) + + + + + +#pragma warning(push) +#pragma warning(disable: 4200) + +typedef struct _STORAGE_HW_FIRMWARE_DOWNLOAD { + + DWORD Version; + DWORD Size; + + DWORD Flags; + BYTE Slot; + BYTE Reserved[3]; + + DWORDLONG Offset; + DWORDLONG BufferSize; + + BYTE ImageBuffer[1]; + +} STORAGE_HW_FIRMWARE_DOWNLOAD, *PSTORAGE_HW_FIRMWARE_DOWNLOAD; + +typedef struct _STORAGE_HW_FIRMWARE_DOWNLOAD_V2 { + + DWORD Version; + DWORD Size; + + DWORD Flags; + BYTE Slot; + BYTE Reserved[3]; + + DWORDLONG Offset; + DWORDLONG BufferSize; + + DWORD ImageSize; + DWORD Reserved2; + + BYTE ImageBuffer[1]; + +} STORAGE_HW_FIRMWARE_DOWNLOAD_V2, *PSTORAGE_HW_FIRMWARE_DOWNLOAD_V2; + +#pragma warning(pop) + + + + +typedef struct _STORAGE_HW_FIRMWARE_ACTIVATE { + + DWORD Version; + DWORD Size; + + DWORD Flags; + BYTE Slot; + BYTE Reserved0[3]; + +} STORAGE_HW_FIRMWARE_ACTIVATE, *PSTORAGE_HW_FIRMWARE_ACTIVATE; + + + + + + + +typedef struct _STORAGE_PROTOCOL_COMMAND { + + DWORD Version; + DWORD Length; + + STORAGE_PROTOCOL_TYPE ProtocolType; + DWORD Flags; + + DWORD ReturnStatus; + DWORD ErrorCode; + + DWORD CommandLength; + DWORD ErrorInfoLength; + DWORD DataToDeviceTransferLength; + DWORD DataFromDeviceTransferLength; + + DWORD TimeOutValue; + + DWORD ErrorInfoOffset; + DWORD DataToDeviceBufferOffset; + DWORD DataFromDeviceBufferOffset; + + DWORD CommandSpecific; + DWORD Reserved0; + + DWORD FixedProtocolReturnData; + DWORD Reserved1[3]; + + BYTE Command[1]; + +} STORAGE_PROTOCOL_COMMAND, *PSTORAGE_PROTOCOL_COMMAND; +# 6673 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_ATTRIBUTE_MGMT_ACTION { + StorAttributeMgmt_ClearAttribute = 0, + StorAttributeMgmt_SetAttribute = 1, + StorAttributeMgmt_ResetAttribute = 2 +} STORAGE_ATTRIBUTE_MGMT_ACTION, *PSTORAGE_ATTRIBUTE_MGMT_ACTION; +# 6697 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STORAGE_ATTRIBUTE_MGMT { + + + + + + DWORD Version; + + + + + + DWORD Size; + + + + + STORAGE_ATTRIBUTE_MGMT_ACTION Action; + + + + + + DWORD Attribute; + +} STORAGE_ATTRIBUTE_MGMT, *PSTORAGE_ATTRIBUTE_MGMT; + + + + +#pragma warning(pop) +# 6739 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma warning(push) +#pragma warning(disable: 4201) +#pragma warning(disable: 4214) +# 6801 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SCM_PD_HEALTH_NOTIFICATION_DATA { + + + + + + + GUID DeviceGuid; + +} SCM_PD_HEALTH_NOTIFICATION_DATA, *PSCM_PD_HEALTH_NOTIFICATION_DATA; +# 6828 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SCM_LOGICAL_DEVICE_INSTANCE { + + + + + DWORD Version; + + + + + DWORD Size; + + + + + GUID DeviceGuid; + + + + + WCHAR SymbolicLink[256]; + +} SCM_LOGICAL_DEVICE_INSTANCE, *PSCM_LOGICAL_DEVICE_INSTANCE; + +typedef struct _SCM_LOGICAL_DEVICES { + + + + + DWORD Version; + + + + + + DWORD Size; + + + + + DWORD DeviceCount; + + + + + SCM_LOGICAL_DEVICE_INSTANCE Devices[1]; + +} SCM_LOGICAL_DEVICES, *PSCM_LOGICAL_DEVICES; +# 6889 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SCM_PHYSICAL_DEVICE_INSTANCE { + + + + + DWORD Version; + + + + + DWORD Size; + + + + + DWORD NfitHandle; + + + + + WCHAR SymbolicLink[256]; + +} SCM_PHYSICAL_DEVICE_INSTANCE, *PSCM_PHYSICAL_DEVICE_INSTANCE; + +typedef struct _SCM_PHYSICAL_DEVICES { + + + + + DWORD Version; + + + + + + DWORD Size; + + + + + DWORD DeviceCount; + + + + + SCM_PHYSICAL_DEVICE_INSTANCE Devices[1]; + +} SCM_PHYSICAL_DEVICES, *PSCM_PHYSICAL_DEVICES; +# 6954 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _SCM_REGION_FLAG { + ScmRegionFlagNone = 0x0, + + + + + ScmRegionFlagLabel = 0x1 + +} SCM_REGION_FLAG, *PSCM_REGION_FLAG; + + + +typedef struct _SCM_REGION { + + + + + DWORD Version; + + + + + DWORD Size; + + + + + DWORD Flags; + + + + + DWORD NfitHandle; + + + + + GUID LogicalDeviceGuid; + + + + + GUID AddressRangeType; + + + + + + DWORD AssociatedId; + + + + + DWORD64 Length; + + + + + + DWORD64 StartingDPA; + + + + + DWORD64 BaseSPA; + + + + + + + DWORD64 SPAOffset; + + + + + + DWORD64 RegionOffset; + +} SCM_REGION, *PSCM_REGION; + +typedef struct _SCM_REGIONS { + + + + + DWORD Version; + + + + + + DWORD Size; + + + + + DWORD RegionCount; + + + + + SCM_REGION Regions[1]; + +} SCM_REGIONS, *PSCM_REGIONS; +# 7080 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _SCM_BUS_QUERY_TYPE { + ScmBusQuery_Descriptor = 0, + ScmBusQuery_IsSupported, + + ScmBusQuery_Max +} SCM_BUS_QUERY_TYPE, *PSCM_BUS_QUERY_TYPE; +# 7108 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _SCM_BUS_SET_TYPE { + ScmBusSet_Descriptor = 0, + ScmBusSet_IsSupported, + + ScmBusSet_Max +} SCM_BUS_SET_TYPE, *PSCM_BUS_SET_TYPE; + + +typedef enum _SCM_BUS_PROPERTY_ID { + + + + + ScmBusProperty_RuntimeFwActivationInfo = 0, + + + + + ScmBusProperty_DedicatedMemoryInfo = 1, + + + + + ScmBusProperty_DedicatedMemoryState = 2, + + ScmBusProperty_Max +} SCM_BUS_PROPERTY_ID, *PSCM_BUS_PROPERTY_ID; + + + + + + +typedef struct _SCM_BUS_PROPERTY_QUERY { + + + + + DWORD Version; + + + + + + DWORD Size; + + + + + SCM_BUS_PROPERTY_ID PropertyId; + + + + + SCM_BUS_QUERY_TYPE QueryType; + + + + + BYTE AdditionalParameters[1]; + +} SCM_BUS_PROPERTY_QUERY, *PSCM_BUS_PROPERTY_QUERY; +# 7178 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _SCM_BUS_FIRMWARE_ACTIVATION_STATE { + ScmBusFirmwareActivationState_Idle = 0, + ScmBusFirmwareActivationState_Armed = 1, + ScmBusFirmwareActivationState_Busy = 2 + +} SCM_BUS_FIRMWARE_ACTIVATION_STATE, *PSCM_BUS_FIRMWARE_ACTIVATION_STATE; + +typedef struct _SCM_BUS_RUNTIME_FW_ACTIVATION_INFO { + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + BOOLEAN RuntimeFwActivationSupported; + + + + + + SCM_BUS_FIRMWARE_ACTIVATION_STATE FirmwareActivationState; + + + + + struct { + + + + + DWORD FwManagedIoQuiesceFwActivationSupported : 1; + + + + + DWORD OsManagedIoQuiesceFwActivationSupported : 1; + + + + + DWORD WarmResetBasedFwActivationSupported : 1; + + DWORD Reserved : 29; + } FirmwareActivationCapability; + + + + + DWORDLONG EstimatedFirmwareActivationTimeInUSecs; + + + + + + DWORDLONG EstimatedProcessorAccessQuiesceTimeInUSecs; + + + + + + DWORDLONG EstimatedIOAccessQuiesceTimeInUSecs; + + + + + + DWORDLONG PlatformSupportedMaxIOAccessQuiesceTimeInUSecs; + +} SCM_BUS_RUNTIME_FW_ACTIVATION_INFO, *PSCM_BUS_RUNTIME_FW_ACTIVATION_INFO; + + + + +typedef struct _SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO { + + + + + GUID DeviceGuid; + + + + + DWORD DeviceNumber; + + struct { + + + + + DWORD ForcedByRegistry : 1; + + + + + DWORD Initialized : 1; + + DWORD Reserved : 30; + } Flags; + + + + + DWORDLONG DeviceSize; + +} SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO, *PSCM_BUS_DEDICATED_MEMORY_DEVICE_INFO; + +typedef struct _SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO { + + + + + DWORD Version; + + + + + + DWORD Size; + + + + + DWORD DeviceCount; + + + + + SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO Devices[1]; + +} SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO, *PSCM_BUS_DEDICATED_MEMORY_DEVICES_INFO; + + + + + + + +typedef struct _SCM_BUS_PROPERTY_SET { + + + + + DWORD Version; + + + + + + DWORD Size; + + + + + SCM_BUS_PROPERTY_ID PropertyId; + + + + + SCM_BUS_SET_TYPE SetType; + + + + + BYTE AdditionalParameters[1]; + +} SCM_BUS_PROPERTY_SET, *PSCM_BUS_PROPERTY_SET; + + + + + +typedef struct _SCM_BUS_DEDICATED_MEMORY_STATE { + + + + + BOOLEAN ActivateState; +} SCM_BUS_DEDICATED_MEMORY_STATE, *PSCM_BUS_DEDICATED_MEMORY_STATE; +# 7386 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SCM_INTERLEAVED_PD_INFO { + + + + + + DWORD DeviceHandle; + + + + + GUID DeviceGuid; + +} SCM_INTERLEAVED_PD_INFO, *PSCM_INTERLEAVED_PD_INFO; + +typedef struct _SCM_LD_INTERLEAVE_SET_INFO { + + + + + DWORD Version; + + + + + + + + DWORD Size; + + + + + DWORD InterleaveSetSize; + + + + + + SCM_INTERLEAVED_PD_INFO InterleaveSet[1]; + +} SCM_LD_INTERLEAVE_SET_INFO, *PSCM_LD_INTERLEAVE_SET_INFO; +# 7454 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _SCM_PD_QUERY_TYPE { + ScmPhysicalDeviceQuery_Descriptor = 0, + ScmPhysicalDeviceQuery_IsSupported, + + ScmPhysicalDeviceQuery_Max +} SCM_PD_QUERY_TYPE, *PSCM_PD_QUERY_TYPE; +# 7482 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _SCM_PD_SET_TYPE { + ScmPhysicalDeviceSet_Descriptor = 0, + ScmPhysicalDeviceSet_IsSupported, + + ScmPhysicalDeviceSet_Max +} SCM_PD_SET_TYPE, *PSCM_PD_SET_TYPE; + + +typedef enum _SCM_PD_PROPERTY_ID { + + + + + ScmPhysicalDeviceProperty_DeviceInfo = 0, + + + + + ScmPhysicalDeviceProperty_ManagementStatus, + + + + + ScmPhysicalDeviceProperty_FirmwareInfo, + + + + + + ScmPhysicalDeviceProperty_LocationString, + + + + + + ScmPhysicalDeviceProperty_DeviceSpecificInfo, + + + + + + ScmPhysicalDeviceProperty_DeviceHandle, + + + + + + ScmPhysicalDeviceProperty_FruIdString, + + + + + ScmPhysicalDeviceProperty_RuntimeFwActivationInfo, + + + + + ScmPhysicalDeviceProperty_RuntimeFwActivationArmState, + + ScmPhysicalDeviceProperty_Max +} SCM_PD_PROPERTY_ID, *PSCM_PD_PROPERTY_ID; + + + + + + + +typedef struct _SCM_PD_PROPERTY_QUERY { + + + + + DWORD Version; + + + + + + DWORD Size; + + + + + SCM_PD_PROPERTY_ID PropertyId; + + + + + SCM_PD_QUERY_TYPE QueryType; + + + + + BYTE AdditionalParameters[1]; + +} SCM_PD_PROPERTY_QUERY, *PSCM_PD_PROPERTY_QUERY; + + + + + + +typedef struct _SCM_PD_PROPERTY_SET { + + + + + DWORD Version; + + + + + + DWORD Size; + + + + + SCM_PD_PROPERTY_ID PropertyId; + + + + + SCM_PD_SET_TYPE SetType; + + + + + BYTE AdditionalParameters[1]; + +} SCM_PD_PROPERTY_SET, *PSCM_PD_PROPERTY_SET; + + + + + +typedef struct _SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE { + + + + + BOOLEAN ArmState; +} SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE, *PSCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE; + + + + + + +typedef struct _SCM_PD_DESCRIPTOR_HEADER { + + + + + DWORD Version; + + + + + DWORD Size; +} SCM_PD_DESCRIPTOR_HEADER, *PSCM_PD_DESCRIPTOR_HEADER; +# 7653 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SCM_PD_DEVICE_HANDLE { + + + + + DWORD Version; + + + + + DWORD Size; + + + + + GUID DeviceGuid; + + + + + + DWORD DeviceHandle; + +} SCM_PD_DEVICE_HANDLE, *PSCM_PD_DEVICE_HANDLE; +# 7687 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SCM_PD_DEVICE_INFO { + + + + + DWORD Version; + + + + + + + + DWORD Size; + + + + + GUID DeviceGuid; + + + + + + DWORD UnsafeShutdownCount; + + + + + + DWORD64 PersistentMemorySizeInBytes; + + + + + + DWORD64 VolatileMemorySizeInBytes; + + + + + + + DWORD64 TotalMemorySizeInBytes; + + + + + DWORD SlotNumber; + + + + + + DWORD DeviceHandle; + + + + + WORD PhysicalId; + + + + + + BYTE NumberOfFormatInterfaceCodes; + WORD FormatInterfaceCodes[8]; + + + + + DWORD VendorId; + DWORD ProductId; + DWORD SubsystemDeviceId; + DWORD SubsystemVendorId; + BYTE ManufacturingLocation; + BYTE ManufacturingWeek; + BYTE ManufacturingYear; + DWORD SerialNumber4Byte; + + + + + DWORD SerialNumberLengthInChars; + CHAR SerialNumber[1]; +} SCM_PD_DEVICE_INFO, *PSCM_PD_DEVICE_INFO; +# 7784 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SCM_PD_DEVICE_SPECIFIC_PROPERTY { + + WCHAR Name[128]; + LONGLONG Value; +} SCM_PD_DEVICE_SPECIFIC_PROPERTY, *PSCM_PD_DEVICE_SPECIFIC_PROPERTY; + + + + +typedef struct _SCM_PD_DEVICE_SPECIFIC_INFO { + + + + DWORD Version; + + + + + + + + DWORD Size; + + + + + DWORD NumberOfProperties; + + + + + SCM_PD_DEVICE_SPECIFIC_PROPERTY DeviceSpecificProperties[1]; +} SCM_PD_DEVICE_SPECIFIC_INFO, *PSCM_PD_DEVICE_SPECIFIC_INFO; + +typedef struct _SCM_PD_FIRMWARE_SLOT_INFO { + + + + + DWORD Version; + + + + + DWORD Size; + + BYTE SlotNumber; + BYTE ReadOnly : 1; + BYTE Reserved0 : 7; + BYTE Reserved1[6]; + + BYTE Revision[32]; + +} SCM_PD_FIRMWARE_SLOT_INFO, *PSCM_PD_FIRMWARE_SLOT_INFO; + + + + + +typedef struct _SCM_PD_FIRMWARE_INFO { + + + + + DWORD Version; + + + + + + + + DWORD Size; + + + + + + BYTE ActiveSlot; + + + + + + BYTE NextActiveSlot; + + BYTE SlotCount; + + SCM_PD_FIRMWARE_SLOT_INFO Slots[1]; + +} SCM_PD_FIRMWARE_INFO, *PSCM_PD_FIRMWARE_INFO; +# 7885 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _SCM_PD_HEALTH_STATUS { + ScmPhysicalDeviceHealth_Unknown = 0, + ScmPhysicalDeviceHealth_Unhealthy, + ScmPhysicalDeviceHealth_Warning, + ScmPhysicalDeviceHealth_Healthy, + + ScmPhysicalDeviceHealth_Max +} SCM_PD_HEALTH_STATUS, *PSCM_PD_HEALTH_STATUS; + + + + +typedef enum _SCM_PD_OPERATIONAL_STATUS { + ScmPhysicalDeviceOpStatus_Unknown = 0, + ScmPhysicalDeviceOpStatus_Ok, + ScmPhysicalDeviceOpStatus_PredictingFailure, + ScmPhysicalDeviceOpStatus_InService, + ScmPhysicalDeviceOpStatus_HardwareError, + ScmPhysicalDeviceOpStatus_NotUsable, + ScmPhysicalDeviceOpStatus_TransientError, + ScmPhysicalDeviceOpStatus_Missing, + + ScmPhysicalDeviceOpStatus_Max +} SCM_PD_OPERATIONAL_STATUS, *PSCM_PD_OPERATIONAL_STATUS; + + + + +typedef enum _SCM_PD_OPERATIONAL_STATUS_REASON { + ScmPhysicalDeviceOpReason_Unknown = 0, + ScmPhysicalDeviceOpReason_Media, + ScmPhysicalDeviceOpReason_ThresholdExceeded, + ScmPhysicalDeviceOpReason_LostData, + ScmPhysicalDeviceOpReason_EnergySource, + ScmPhysicalDeviceOpReason_Configuration, + ScmPhysicalDeviceOpReason_DeviceController, + ScmPhysicalDeviceOpReason_MediaController, + ScmPhysicalDeviceOpReason_Component, + ScmPhysicalDeviceOpReason_BackgroundOperation, + ScmPhysicalDeviceOpReason_InvalidFirmware, + ScmPhysicalDeviceOpReason_HealthCheck, + ScmPhysicalDeviceOpReason_LostDataPersistence, + ScmPhysicalDeviceOpReason_DisabledByPlatform, + ScmPhysicalDeviceOpReason_PermanentError, + ScmPhysicalDeviceOpReason_LostWritePersistence, + ScmPhysicalDeviceOpReason_FatalError, + ScmPhysicalDeviceOpReason_DataPersistenceLossImminent, + ScmPhysicalDeviceOpReason_WritePersistenceLossImminent, + ScmPhysicalDeviceOpReason_MediaRemainingSpareBlock, + ScmPhysicalDeviceOpReason_PerformanceDegradation, + ScmPhysicalDeviceOpReason_ExcessiveTemperature, + ScmPhysicalDeviceOpReason_InternalFailure, + + ScmPhysicalDeviceOpReason_Max +} SCM_PD_OPERATIONAL_STATUS_REASON, *PSCM_PD_OPERATIONAL_STATUS_REASON; + + + + + + + +typedef struct _SCM_PD_MANAGEMENT_STATUS { + + + + + DWORD Version; + + + + + + + + DWORD Size; + + + + + SCM_PD_HEALTH_STATUS Health; + + + + + DWORD NumberOfOperationalStatus; + + + + + DWORD NumberOfAdditionalReasons; + + + + + + SCM_PD_OPERATIONAL_STATUS OperationalStatus[16]; + + + + + SCM_PD_OPERATIONAL_STATUS_REASON AdditionalReasons[1]; + +} SCM_PD_MANAGEMENT_STATUS, *PSCM_PD_MANAGEMENT_STATUS; + + + + +typedef struct _SCM_PD_LOCATION_STRING { + + + + + DWORD Version; + + + + + + + + DWORD Size; + + + + + WCHAR Location[1]; + +} SCM_PD_LOCATION_STRING, *PSCM_PD_LOCATION_STRING; + + + + +typedef struct _SCM_PD_FRU_ID_STRING { + + + + + DWORD Version; + + + + + + + + DWORD Size; + + + + + DWORD IdentifierSize; + BYTE Identifier[1]; + +} SCM_PD_FRU_ID_STRING, *PSCM_PD_FRU_ID_STRING; +# 8055 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SCM_PD_FIRMWARE_DOWNLOAD { + + + + + DWORD Version; + + + + + DWORD Size; + + + + + + DWORD Flags; + + + + + BYTE Slot; + + BYTE Reserved[3]; + + + + + DWORD64 Offset; + + + + + DWORD FirmwareImageSizeInBytes; + + + + + BYTE FirmwareImage[1]; + +} SCM_PD_FIRMWARE_DOWNLOAD, *PSCM_PD_FIRMWARE_DOWNLOAD; + + + + +typedef struct _SCM_PD_FIRMWARE_ACTIVATE { + + + + + DWORD Version; + + + + + DWORD Size; + + + + + DWORD Flags; + + + + + BYTE Slot; + +} SCM_PD_FIRMWARE_ACTIVATE, *PSCM_PD_FIRMWARE_ACTIVATE; +# 8131 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _SCM_PD_LAST_FW_ACTIVATION_STATUS { + ScmPdLastFwActivationStatus_None = 0, + ScmPdLastFwActivationStatus_Success = 1, + ScmPdLastFwActivationStatus_FwNotFound = 2, + ScmPdLastFwActivationStatus_ColdRebootRequired = 3, + ScmPdLastFwActivaitonStatus_ActivationInProgress = 4, + ScmPdLastFwActivaitonStatus_Retry = 5, + ScmPdLastFwActivaitonStatus_FwUnsupported = 6, + ScmPdLastFwActivaitonStatus_UnknownError = 7 + +} SCM_PD_LAST_FW_ACTIVATION_STATUS, *PSCM_PD_LAST_FW_ACTIVATION_STATUS; + + + + +typedef enum _SCM_PD_FIRMWARE_ACTIVATION_STATE { + ScmPdFirmwareActivationState_Idle = 0, + ScmPdFirmwareActivationState_Armed = 1, + ScmPdFirmwareActivationState_Busy = 2 + +} SCM_PD_FIRMWARE_ACTIVATION_STATE, *PSCM_PD_FIRMWARE_ACTIVATION_STATE; + +typedef struct _SCM_PD_RUNTIME_FW_ACTIVATION_INFO { + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + SCM_PD_LAST_FW_ACTIVATION_STATUS LastFirmwareActivationStatus; + + + + + SCM_PD_FIRMWARE_ACTIVATION_STATE FirmwareActivationState; + +} SCM_PD_RUNTIME_FW_ACTIVATION_INFO, *PSCM_PD_RUNTIME_FW_ACTIVATION_INFO; +# 8194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SCM_PD_PASSTHROUGH_INPUT { + + + + + DWORD Version; + + + + + DWORD Size; + + + + + + + GUID ProtocolGuid; + + + + + DWORD DataSize; + + + + + BYTE Data[1]; +} SCM_PD_PASSTHROUGH_INPUT, *PSCM_PD_PASSTHROUGH_INPUT; + +typedef struct _SCM_PD_PASSTHROUGH_OUTPUT { + + + + + DWORD Version; +# 8238 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD Size; + + + + + + GUID ProtocolGuid; + + + + + DWORD DataSize; + + + + + BYTE Data[1]; +} SCM_PD_PASSTHROUGH_OUTPUT, *PSCM_PD_PASSTHROUGH_OUTPUT; +# 8265 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SCM_PD_PASSTHROUGH_INVDIMM_INPUT { + + + + + DWORD Opcode; + + + + + + + DWORD OpcodeParametersLength; + + + + + BYTE OpcodeParameters[1]; +} SCM_PD_PASSTHROUGH_INVDIMM_INPUT, *PSCM_PD_PASSTHROUGH_INVDIMM_INPUT; + + + + + + +typedef struct _SCM_PD_PASSTHROUGH_INVDIMM_OUTPUT { + + + + + WORD GeneralStatus; + + + + + WORD ExtendedStatus; + + + + + + DWORD OutputDataLength; + + + + + BYTE OutputData[1]; +} SCM_PD_PASSTHROUGH_INVDIMM_OUTPUT, *PSCM_PD_PASSTHROUGH_INVDIMM_OUTPUT; +# 8326 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SCM_PD_REINITIALIZE_MEDIA_INPUT { + + + + + DWORD Version; + + + + + DWORD Size; + + + + + + + + struct { + DWORD Overwrite : 1; + } Options; +} SCM_PD_REINITIALIZE_MEDIA_INPUT, *PSCM_PD_REINITIALIZE_MEDIA_INPUT; + +typedef enum _SCM_PD_MEDIA_REINITIALIZATION_STATUS { + + + + + ScmPhysicalDeviceReinit_Success = 0, + + + + + ScmPhysicalDeviceReinit_RebootNeeded, + + + + + ScmPhysicalDeviceReinit_ColdBootNeeded, + + ScmPhysicalDeviceReinit_Max +} SCM_PD_MEDIA_REINITIALIZATION_STATUS, *PSCM_PD_MEDIA_REINITIALIZATION_STATUS; + +typedef struct _SCM_PD_REINITIALIZE_MEDIA_OUTPUT { + + + + + DWORD Version; + + + + + DWORD Size; + + + + + + + SCM_PD_MEDIA_REINITIALIZATION_STATUS Status; +} SCM_PD_REINITIALIZE_MEDIA_OUTPUT, *PSCM_PD_REINITIALIZE_MEDIA_OUTPUT; + + + + +#pragma warning(pop) +# 8410 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma warning(push) +#pragma warning(disable: 4201) +#pragma warning(disable: 4214) +#pragma warning(disable: 4820) +# 8696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _MEDIA_TYPE { + Unknown, + F5_1Pt2_512, + F3_1Pt44_512, + F3_2Pt88_512, + F3_20Pt8_512, + F3_720_512, + F5_360_512, + F5_320_512, + F5_320_1024, + F5_180_512, + F5_160_512, + RemovableMedia, + FixedMedia, + F3_120M_512, + F3_640_512, + F5_640_512, + F5_720_512, + F3_1Pt2_512, + F3_1Pt23_1024, + F5_1Pt23_1024, + F3_128Mb_512, + F3_230Mb_512, + F8_256_128, + F3_200Mb_512, + F3_240M_512, + F3_32M_512 +} MEDIA_TYPE, *PMEDIA_TYPE; + + + + + + +typedef struct _FORMAT_PARAMETERS { + MEDIA_TYPE MediaType; + DWORD StartCylinderNumber; + DWORD EndCylinderNumber; + DWORD StartHeadNumber; + DWORD EndHeadNumber; +} FORMAT_PARAMETERS, *PFORMAT_PARAMETERS; +# 8745 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef WORD BAD_TRACK_NUMBER; +typedef WORD *PBAD_TRACK_NUMBER; + + + + + + +typedef struct _FORMAT_EX_PARAMETERS { + MEDIA_TYPE MediaType; + DWORD StartCylinderNumber; + DWORD EndCylinderNumber; + DWORD StartHeadNumber; + DWORD EndHeadNumber; + WORD FormatGapLength; + WORD SectorsPerTrack; + WORD SectorNumber[1]; +} FORMAT_EX_PARAMETERS, *PFORMAT_EX_PARAMETERS; + + + + + + + +typedef struct _DISK_GEOMETRY { + + LARGE_INTEGER Cylinders; + + MEDIA_TYPE MediaType; + + DWORD TracksPerCylinder; + + DWORD SectorsPerTrack; + + DWORD BytesPerSector; + +} DISK_GEOMETRY, *PDISK_GEOMETRY; +# 8799 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _PARTITION_INFORMATION { + LARGE_INTEGER StartingOffset; + LARGE_INTEGER PartitionLength; + DWORD HiddenSectors; + DWORD PartitionNumber; + BYTE PartitionType; + BOOLEAN BootIndicator; + BOOLEAN RecognizedPartition; + BOOLEAN RewritePartition; +} PARTITION_INFORMATION, *PPARTITION_INFORMATION; + + + + + + + +typedef struct _SET_PARTITION_INFORMATION { + BYTE PartitionType; +} SET_PARTITION_INFORMATION, *PSET_PARTITION_INFORMATION; + + + + + + +typedef struct _DRIVE_LAYOUT_INFORMATION { + DWORD PartitionCount; + DWORD Signature; + PARTITION_INFORMATION PartitionEntry[1]; +} DRIVE_LAYOUT_INFORMATION, *PDRIVE_LAYOUT_INFORMATION; + + + + + + +typedef struct _VERIFY_INFORMATION { + LARGE_INTEGER StartingOffset; + DWORD Length; +} VERIFY_INFORMATION, *PVERIFY_INFORMATION; + + + + + + +typedef struct _REASSIGN_BLOCKS { + WORD Reserved; + WORD Count; + DWORD BlockNumber[1]; +} REASSIGN_BLOCKS, *PREASSIGN_BLOCKS; + + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,1) +# 8858 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 +typedef struct _REASSIGN_BLOCKS_EX { + WORD Reserved; + WORD Count; + LARGE_INTEGER BlockNumber[1]; +} REASSIGN_BLOCKS_EX, *PREASSIGN_BLOCKS_EX; +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 8864 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 +# 8880 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _PARTITION_STYLE { + PARTITION_STYLE_MBR, + PARTITION_STYLE_GPT, + PARTITION_STYLE_RAW +} PARTITION_STYLE; + + + + + + + +typedef struct _PARTITION_INFORMATION_GPT { + + GUID PartitionType; + + GUID PartitionId; + + DWORD64 Attributes; + + WCHAR Name [36]; + +} PARTITION_INFORMATION_GPT, *PPARTITION_INFORMATION_GPT; +# 8938 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _PARTITION_INFORMATION_MBR { + + BYTE PartitionType; + + BOOLEAN BootIndicator; + + BOOLEAN RecognizedPartition; + + DWORD HiddenSectors; + + + GUID PartitionId; + + +} PARTITION_INFORMATION_MBR, *PPARTITION_INFORMATION_MBR; +# 8963 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef SET_PARTITION_INFORMATION SET_PARTITION_INFORMATION_MBR; +typedef PARTITION_INFORMATION_GPT SET_PARTITION_INFORMATION_GPT; + + +typedef struct _SET_PARTITION_INFORMATION_EX { + PARTITION_STYLE PartitionStyle; + union { + SET_PARTITION_INFORMATION_MBR Mbr; + SET_PARTITION_INFORMATION_GPT Gpt; + } ; +} SET_PARTITION_INFORMATION_EX, *PSET_PARTITION_INFORMATION_EX; + + + + + + + +typedef struct _CREATE_DISK_GPT { + GUID DiskId; + DWORD MaxPartitionCount; +} CREATE_DISK_GPT, *PCREATE_DISK_GPT; + + + + + + +typedef struct _CREATE_DISK_MBR { + DWORD Signature; +} CREATE_DISK_MBR, *PCREATE_DISK_MBR; + + +typedef struct _CREATE_DISK { + PARTITION_STYLE PartitionStyle; + union { + CREATE_DISK_MBR Mbr; + CREATE_DISK_GPT Gpt; + } ; +} CREATE_DISK, *PCREATE_DISK; +# 9011 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _GET_LENGTH_INFORMATION { + LARGE_INTEGER Length; +} GET_LENGTH_INFORMATION, *PGET_LENGTH_INFORMATION; + + + + + + + +typedef struct _PARTITION_INFORMATION_EX { + + PARTITION_STYLE PartitionStyle; + + LARGE_INTEGER StartingOffset; + + LARGE_INTEGER PartitionLength; + + DWORD PartitionNumber; + + BOOLEAN RewritePartition; + + + BOOLEAN IsServicePartition; + + + union { + + PARTITION_INFORMATION_MBR Mbr; + + PARTITION_INFORMATION_GPT Gpt; + + } ; + +} PARTITION_INFORMATION_EX, *PPARTITION_INFORMATION_EX; + + + + + + +typedef struct _DRIVE_LAYOUT_INFORMATION_GPT { + + GUID DiskId; + + LARGE_INTEGER StartingUsableOffset; + + LARGE_INTEGER UsableLength; + + DWORD MaxPartitionCount; + +} DRIVE_LAYOUT_INFORMATION_GPT, *PDRIVE_LAYOUT_INFORMATION_GPT; + + + + + + +typedef struct _DRIVE_LAYOUT_INFORMATION_MBR { + + DWORD Signature; + + + DWORD CheckSum; + + +} DRIVE_LAYOUT_INFORMATION_MBR, *PDRIVE_LAYOUT_INFORMATION_MBR; + + + + + + +typedef struct _DRIVE_LAYOUT_INFORMATION_EX { + + DWORD PartitionStyle; + + DWORD PartitionCount; + + union { + + DRIVE_LAYOUT_INFORMATION_MBR Mbr; + + DRIVE_LAYOUT_INFORMATION_GPT Gpt; + + } ; + + PARTITION_INFORMATION_EX PartitionEntry[1]; + +} DRIVE_LAYOUT_INFORMATION_EX, *PDRIVE_LAYOUT_INFORMATION_EX; +# 9113 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _DETECTION_TYPE { + DetectNone, + DetectInt13, + DetectExInt13 +} DETECTION_TYPE; + +typedef struct _DISK_INT13_INFO { + WORD DriveSelect; + DWORD MaxCylinders; + WORD SectorsPerTrack; + WORD MaxHeads; + WORD NumberDrives; +} DISK_INT13_INFO, *PDISK_INT13_INFO; + +typedef struct _DISK_EX_INT13_INFO { + WORD ExBufferSize; + WORD ExFlags; + DWORD ExCylinders; + DWORD ExHeads; + DWORD ExSectorsPerTrack; + DWORD64 ExSectorsPerDrive; + WORD ExSectorSize; + WORD ExReserved; +} DISK_EX_INT13_INFO, *PDISK_EX_INT13_INFO; + + +#pragma warning(push) +#pragma warning(disable: 4201) + + +typedef struct _DISK_DETECTION_INFO { + DWORD SizeOfDetectInfo; + DETECTION_TYPE DetectionType; + union { + struct { + + + + + + + DISK_INT13_INFO Int13; + + + + + + + DISK_EX_INT13_INFO ExInt13; + } ; + } ; +} DISK_DETECTION_INFO, *PDISK_DETECTION_INFO; + + +typedef struct _DISK_PARTITION_INFO { + DWORD SizeOfPartitionInfo; + PARTITION_STYLE PartitionStyle; + union { + struct { + DWORD Signature; + DWORD CheckSum; + } Mbr; + struct { + GUID DiskId; + } Gpt; + } ; +} DISK_PARTITION_INFO, *PDISK_PARTITION_INFO; + + +#pragma warning(pop) +# 9206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DISK_GEOMETRY_EX { + DISK_GEOMETRY Geometry; + LARGE_INTEGER DiskSize; + BYTE Data[1]; +} DISK_GEOMETRY_EX, *PDISK_GEOMETRY_EX; +# 9221 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DISK_CONTROLLER_NUMBER { + DWORD ControllerNumber; + DWORD DiskNumber; +} DISK_CONTROLLER_NUMBER, *PDISK_CONTROLLER_NUMBER; +# 9251 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum { + EqualPriority, + KeepPrefetchedData, + KeepReadData +} DISK_CACHE_RETENTION_PRIORITY; +# 9265 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DISK_CACHE_INFORMATION { + + + + + + + + BOOLEAN ParametersSavable; + + + + + + BOOLEAN ReadCacheEnabled; + BOOLEAN WriteCacheEnabled; +# 9289 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DISK_CACHE_RETENTION_PRIORITY ReadRetentionPriority; + DISK_CACHE_RETENTION_PRIORITY WriteRetentionPriority; + + + + + + + WORD DisablePrefetchTransferLength; + + + + + + + + BOOLEAN PrefetchScalar; +# 9315 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + union { + struct { + WORD Minimum; + WORD Maximum; + + + + + + + WORD MaximumBlocks; + } ScalarPrefetch; + + struct { + WORD Minimum; + WORD Maximum; + } BlockPrefetch; + } ; + +} DISK_CACHE_INFORMATION, *PDISK_CACHE_INFORMATION; +# 9343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DISK_GROW_PARTITION { + DWORD PartitionNumber; + LARGE_INTEGER BytesToGrow; +} DISK_GROW_PARTITION, *PDISK_GROW_PARTITION; +# 9367 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _HISTOGRAM_BUCKET { + DWORD Reads; + DWORD Writes; +} HISTOGRAM_BUCKET, *PHISTOGRAM_BUCKET; + + + +typedef struct _DISK_HISTOGRAM { + LARGE_INTEGER DiskSize; + LARGE_INTEGER Start; + LARGE_INTEGER End; + LARGE_INTEGER Average; + LARGE_INTEGER AverageRead; + LARGE_INTEGER AverageWrite; + DWORD Granularity; + DWORD Size; + DWORD ReadCount; + DWORD WriteCount; + PHISTOGRAM_BUCKET Histogram; +} DISK_HISTOGRAM, *PDISK_HISTOGRAM; +# 9410 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DISK_PERFORMANCE { + LARGE_INTEGER BytesRead; + LARGE_INTEGER BytesWritten; + LARGE_INTEGER ReadTime; + LARGE_INTEGER WriteTime; + LARGE_INTEGER IdleTime; + DWORD ReadCount; + DWORD WriteCount; + DWORD QueueDepth; + DWORD SplitCount; + LARGE_INTEGER QueryTime; + DWORD StorageDeviceNumber; + WCHAR StorageManagerName[8]; +} DISK_PERFORMANCE, *PDISK_PERFORMANCE; + + + + + + + +typedef struct _DISK_RECORD { + LARGE_INTEGER ByteOffset; + LARGE_INTEGER StartTime; + LARGE_INTEGER EndTime; + PVOID VirtualAddress; + DWORD NumberOfBytes; + BYTE DeviceNumber; + BOOLEAN ReadRequest; +} DISK_RECORD, *PDISK_RECORD; + + + + + + +typedef struct _DISK_LOGGING { + BYTE Function; + PVOID BufferAddress; + DWORD BufferSize; +} DISK_LOGGING, *PDISK_LOGGING; +# 9488 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _BIN_TYPES { + RequestSize, + RequestLocation +} BIN_TYPES; + + + + + +typedef struct _BIN_RANGE { + LARGE_INTEGER StartValue; + LARGE_INTEGER Length; +} BIN_RANGE, *PBIN_RANGE; + + + + + +typedef struct _PERF_BIN { + DWORD NumberOfBins; + DWORD TypeOfBin; + BIN_RANGE BinsRanges[1]; +} PERF_BIN, *PPERF_BIN ; + + + + + +typedef struct _BIN_COUNT { + BIN_RANGE BinRange; + DWORD BinCount; +} BIN_COUNT, *PBIN_COUNT; + + + + + +typedef struct _BIN_RESULTS { + DWORD NumberOfBins; + BIN_COUNT BinCounts[1]; +} BIN_RESULTS, *PBIN_RESULTS; +# 9538 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,1) +# 9539 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 +typedef struct _GETVERSIONINPARAMS { + BYTE bVersion; + BYTE bRevision; + BYTE bReserved; + BYTE bIDEDeviceMap; + DWORD fCapabilities; + DWORD dwReserved[4]; +} GETVERSIONINPARAMS, *PGETVERSIONINPARAMS, *LPGETVERSIONINPARAMS; +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 9548 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 +# 9561 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,1) +# 9562 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 +typedef struct _IDEREGS { + BYTE bFeaturesReg; + BYTE bSectorCountReg; + BYTE bSectorNumberReg; + BYTE bCylLowReg; + BYTE bCylHighReg; + BYTE bDriveHeadReg; + BYTE bCommandReg; + BYTE bReserved; +} IDEREGS, *PIDEREGS, *LPIDEREGS; +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 9573 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 +# 9597 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,1) +# 9598 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 +typedef struct _SENDCMDINPARAMS { + DWORD cBufferSize; + IDEREGS irDriveRegs; + BYTE bDriveNumber; + + BYTE bReserved[3]; + DWORD dwReserved[4]; + BYTE bBuffer[1]; +} SENDCMDINPARAMS, *PSENDCMDINPARAMS, *LPSENDCMDINPARAMS; +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 9608 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,1) +# 9614 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 +typedef struct _DRIVERSTATUS { + BYTE bDriverError; + + BYTE bIDEError; + + + BYTE bReserved[2]; + DWORD dwReserved[2]; +} DRIVERSTATUS, *PDRIVERSTATUS, *LPDRIVERSTATUS; +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 9624 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 +# 9652 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,1) +# 9653 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 +typedef struct _SENDCMDOUTPARAMS { + DWORD cBufferSize; + DRIVERSTATUS DriverStatus; + BYTE bBuffer[1]; +} SENDCMDOUTPARAMS, *PSENDCMDOUTPARAMS, *LPSENDCMDOUTPARAMS; +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 9659 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 +# 9704 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _GET_DISK_ATTRIBUTES { + + + + + + DWORD Version; + + + + + DWORD Reserved1; + + + + + + DWORDLONG Attributes; + +} GET_DISK_ATTRIBUTES, *PGET_DISK_ATTRIBUTES; +# 9735 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SET_DISK_ATTRIBUTES { + + + + + + DWORD Version; + + + + + + + BOOLEAN Persist; + + + + + BYTE Reserved1[3]; + + + + + DWORDLONG Attributes; + + + + + + DWORDLONG AttributesMask; + + + + + DWORD Reserved2[4]; + +} SET_DISK_ATTRIBUTES, *PSET_DISK_ATTRIBUTES; + + + + + + +#pragma warning(pop) +# 9817 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _ELEMENT_TYPE { + AllElements, + ChangerTransport, + ChangerSlot, + ChangerIEPort, + ChangerDrive, + ChangerDoor, + ChangerKeypad, + ChangerMaxElement +} ELEMENT_TYPE, *PELEMENT_TYPE; + +typedef struct _CHANGER_ELEMENT { + ELEMENT_TYPE ElementType; + DWORD ElementAddress; +} CHANGER_ELEMENT, *PCHANGER_ELEMENT; + +typedef struct _CHANGER_ELEMENT_LIST { + CHANGER_ELEMENT Element; + DWORD NumberOfElements; +} CHANGER_ELEMENT_LIST , *PCHANGER_ELEMENT_LIST; +# 9927 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _GET_CHANGER_PARAMETERS { + + + + + + DWORD Size; + + + + + + WORD NumberTransportElements; + WORD NumberStorageElements; + WORD NumberCleanerSlots; + WORD NumberIEElements; + WORD NumberDataTransferElements; + + + + + + WORD NumberOfDoors; + + + + + + + WORD FirstSlotNumber; + WORD FirstDriveNumber; + WORD FirstTransportNumber; + WORD FirstIEPortNumber; + WORD FirstCleanerSlotAddress; + + + + + + WORD MagazineSize; + + + + + + + DWORD DriveCleanTimeout; + + + + + + DWORD Features0; + DWORD Features1; + + + + + + + BYTE MoveFromTransport; + BYTE MoveFromSlot; + BYTE MoveFromIePort; + BYTE MoveFromDrive; + + + + + + + BYTE ExchangeFromTransport; + BYTE ExchangeFromSlot; + BYTE ExchangeFromIePort; + BYTE ExchangeFromDrive; + + + + + + + BYTE LockUnlockCapabilities; + + + + + + + BYTE PositionCapabilities; + + + + + + BYTE Reserved1[2]; + DWORD Reserved2[2]; + +} GET_CHANGER_PARAMETERS, * PGET_CHANGER_PARAMETERS; + + + + + + +typedef struct _CHANGER_PRODUCT_DATA { + + + + + + BYTE VendorId[8]; + + + + + + BYTE ProductId[16]; + + + + + + BYTE Revision[4]; + + + + + + + BYTE SerialNumber[32]; + + + + + + BYTE DeviceType; + +} CHANGER_PRODUCT_DATA, *PCHANGER_PRODUCT_DATA; +# 10075 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _CHANGER_SET_ACCESS { + + + + + + CHANGER_ELEMENT Element; + + + + + + DWORD Control; +} CHANGER_SET_ACCESS, *PCHANGER_SET_ACCESS; +# 10099 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _CHANGER_READ_ELEMENT_STATUS { + + + + + + CHANGER_ELEMENT_LIST ElementList; + + + + + + BOOLEAN VolumeTagInfo; +} CHANGER_READ_ELEMENT_STATUS, *PCHANGER_READ_ELEMENT_STATUS; + + + + + +typedef struct _CHANGER_ELEMENT_STATUS { + + + + + + CHANGER_ELEMENT Element; + + + + + + + + CHANGER_ELEMENT SrcElementAddress; + + + + + + DWORD Flags; + + + + + + DWORD ExceptionCode; + + + + + + + BYTE TargetId; + + + + + + + BYTE Lun; + WORD Reserved; + + + + + + + BYTE PrimaryVolumeID[36]; + + + + + + + + BYTE AlternateVolumeID[36]; + +} CHANGER_ELEMENT_STATUS, *PCHANGER_ELEMENT_STATUS; + + + + + + + +typedef struct _CHANGER_ELEMENT_STATUS_EX { + + + + + + CHANGER_ELEMENT Element; + + + + + + + + CHANGER_ELEMENT SrcElementAddress; + + + + + + DWORD Flags; + + + + + + DWORD ExceptionCode; + + + + + + + BYTE TargetId; + + + + + + + BYTE Lun; + WORD Reserved; + + + + + + + BYTE PrimaryVolumeID[36]; + + + + + + + + BYTE AlternateVolumeID[36]; + + + + + BYTE VendorIdentification[8]; + + + + + BYTE ProductIdentification[16]; + + + + + BYTE SerialNumber[32]; + +} CHANGER_ELEMENT_STATUS_EX, *PCHANGER_ELEMENT_STATUS_EX; +# 10298 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _CHANGER_INITIALIZE_ELEMENT_STATUS { + + + + + + CHANGER_ELEMENT_LIST ElementList; + + + + + + + BOOLEAN BarCodeScan; +} CHANGER_INITIALIZE_ELEMENT_STATUS, *PCHANGER_INITIALIZE_ELEMENT_STATUS; + + + + + + +typedef struct _CHANGER_SET_POSITION { + + + + + + + CHANGER_ELEMENT Transport; + + + + + + CHANGER_ELEMENT Destination; + + + + + + BOOLEAN Flip; +} CHANGER_SET_POSITION, *PCHANGER_SET_POSITION; + + + + + + +typedef struct _CHANGER_EXCHANGE_MEDIUM { + + + + + + CHANGER_ELEMENT Transport; + + + + + + CHANGER_ELEMENT Source; + + + + + + CHANGER_ELEMENT Destination1; + + + + + + CHANGER_ELEMENT Destination2; + + + + + + BOOLEAN Flip1; + BOOLEAN Flip2; +} CHANGER_EXCHANGE_MEDIUM, *PCHANGER_EXCHANGE_MEDIUM; + + + + + + +typedef struct _CHANGER_MOVE_MEDIUM { + + + + + + CHANGER_ELEMENT Transport; + + + + + + CHANGER_ELEMENT Source; + + + + + + CHANGER_ELEMENT Destination; + + + + + + BOOLEAN Flip; +} CHANGER_MOVE_MEDIUM, *PCHANGER_MOVE_MEDIUM; +# 10422 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _CHANGER_SEND_VOLUME_TAG_INFORMATION { + + + + + + CHANGER_ELEMENT StartingElement; + + + + + + DWORD ActionCode; + + + + + + BYTE VolumeIDTemplate[40]; +} CHANGER_SEND_VOLUME_TAG_INFORMATION, *PCHANGER_SEND_VOLUME_TAG_INFORMATION; + + + + + + +typedef struct _READ_ELEMENT_ADDRESS_INFO { + + + + + + DWORD NumberOfElements; + + + + + + + CHANGER_ELEMENT_STATUS ElementStatus[1]; +} READ_ELEMENT_ADDRESS_INFO, *PREAD_ELEMENT_ADDRESS_INFO; +# 10489 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _CHANGER_DEVICE_PROBLEM_TYPE { + DeviceProblemNone, + DeviceProblemHardware, + DeviceProblemCHMError, + DeviceProblemDoorOpen, + DeviceProblemCalibrationError, + DeviceProblemTargetFailure, + DeviceProblemCHMMoveError, + DeviceProblemCHMZeroError, + DeviceProblemCartridgeInsertError, + DeviceProblemPositionError, + DeviceProblemSensorError, + DeviceProblemCartridgeEjectError, + DeviceProblemGripperError, + DeviceProblemDriveError +} CHANGER_DEVICE_PROBLEM_TYPE, *PCHANGER_DEVICE_PROBLEM_TYPE; +# 10990 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _PATHNAME_BUFFER { + + DWORD PathNameLength; + WCHAR Name[1]; + +} PATHNAME_BUFFER, *PPATHNAME_BUFFER; + + + + + + + +typedef struct _FSCTL_QUERY_FAT_BPB_BUFFER { + + BYTE First0x24BytesOfBootSector[0x24]; + +} FSCTL_QUERY_FAT_BPB_BUFFER, *PFSCTL_QUERY_FAT_BPB_BUFFER; +# 11020 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + + LARGE_INTEGER VolumeSerialNumber; + LARGE_INTEGER NumberSectors; + LARGE_INTEGER TotalClusters; + LARGE_INTEGER FreeClusters; + LARGE_INTEGER TotalReserved; + DWORD BytesPerSector; + DWORD BytesPerCluster; + DWORD BytesPerFileRecordSegment; + DWORD ClustersPerFileRecordSegment; + LARGE_INTEGER MftValidDataLength; + LARGE_INTEGER MftStartLcn; + LARGE_INTEGER Mft2StartLcn; + LARGE_INTEGER MftZoneStart; + LARGE_INTEGER MftZoneEnd; + +} NTFS_VOLUME_DATA_BUFFER, *PNTFS_VOLUME_DATA_BUFFER; + +typedef struct { + + DWORD ByteCount; + + WORD MajorVersion; + WORD MinorVersion; + + DWORD BytesPerPhysicalSector; + + WORD LfsMajorVersion; + WORD LfsMinorVersion; + + + DWORD MaxDeviceTrimExtentCount; + DWORD MaxDeviceTrimByteCount; + + DWORD MaxVolumeTrimExtentCount; + DWORD MaxVolumeTrimByteCount; + + +} NTFS_EXTENDED_VOLUME_DATA, *PNTFS_EXTENDED_VOLUME_DATA; +# 11070 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + + DWORD ByteCount; + DWORD MajorVersion; + DWORD MinorVersion; + + DWORD BytesPerPhysicalSector; + + LARGE_INTEGER VolumeSerialNumber; + LARGE_INTEGER NumberSectors; + LARGE_INTEGER TotalClusters; + LARGE_INTEGER FreeClusters; + LARGE_INTEGER TotalReserved; + DWORD BytesPerSector; + DWORD BytesPerCluster; + LARGE_INTEGER MaximumSizeOfResidentFile; + + WORD FastTierDataFillRatio; + WORD SlowTierDataFillRatio; + + DWORD DestagesFastTierToSlowTierRate; + + LARGE_INTEGER Reserved[9]; + +} REFS_VOLUME_DATA_BUFFER, *PREFS_VOLUME_DATA_BUFFER; +# 11105 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + + LARGE_INTEGER StartingLcn; + +} STARTING_LCN_INPUT_BUFFER, *PSTARTING_LCN_INPUT_BUFFER; + + + + + +typedef struct { + + LARGE_INTEGER StartingLcn; + DWORD Flags; + +} STARTING_LCN_INPUT_BUFFER_EX, *PSTARTING_LCN_INPUT_BUFFER_EX; + + + +typedef struct { + + LARGE_INTEGER StartingLcn; + LARGE_INTEGER BitmapSize; + BYTE Buffer[1]; + +} VOLUME_BITMAP_BUFFER, *PVOLUME_BITMAP_BUFFER; +# 11140 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + + LARGE_INTEGER StartingVcn; + +} STARTING_VCN_INPUT_BUFFER, *PSTARTING_VCN_INPUT_BUFFER; + +typedef struct RETRIEVAL_POINTERS_BUFFER { + + DWORD ExtentCount; + LARGE_INTEGER StartingVcn; + struct { + LARGE_INTEGER NextVcn; + LARGE_INTEGER Lcn; + } Extents[1]; + +} RETRIEVAL_POINTERS_BUFFER, *PRETRIEVAL_POINTERS_BUFFER; +# 11169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER { + + DWORD ExtentCount; + LARGE_INTEGER StartingVcn; + struct { + LARGE_INTEGER NextVcn; + LARGE_INTEGER Lcn; + DWORD ReferenceCount; + } Extents[1]; + +} RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER, *PRETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER; +# 11193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct RETRIEVAL_POINTER_COUNT { + + DWORD ExtentCount; + +} RETRIEVAL_POINTER_COUNT, *PRETRIEVAL_POINTER_COUNT; +# 11207 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + + LARGE_INTEGER FileReferenceNumber; + +} NTFS_FILE_RECORD_INPUT_BUFFER, *PNTFS_FILE_RECORD_INPUT_BUFFER; + +typedef struct { + + LARGE_INTEGER FileReferenceNumber; + DWORD FileRecordLength; + BYTE FileRecordBuffer[1]; + +} NTFS_FILE_RECORD_OUTPUT_BUFFER, *PNTFS_FILE_RECORD_OUTPUT_BUFFER; +# 11229 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + + HANDLE FileHandle; + LARGE_INTEGER StartingVcn; + LARGE_INTEGER StartingLcn; + DWORD ClusterCount; + +} MOVE_FILE_DATA, *PMOVE_FILE_DATA; + +typedef struct { + + HANDLE FileHandle; + LARGE_INTEGER SourceFileRecord; + LARGE_INTEGER TargetFileRecord; + +} MOVE_FILE_RECORD_DATA, *PMOVE_FILE_RECORD_DATA; + + + + + + +typedef struct _MOVE_FILE_DATA32 { + + UINT32 FileHandle; + LARGE_INTEGER StartingVcn; + LARGE_INTEGER StartingLcn; + DWORD ClusterCount; + +} MOVE_FILE_DATA32, *PMOVE_FILE_DATA32; +# 11269 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + DWORD Restart; + SID Sid; +} FIND_BY_SID_DATA, *PFIND_BY_SID_DATA; + +typedef struct { + DWORD NextEntryOffset; + DWORD FileIndex; + DWORD FileNameLength; + WCHAR FileName[1]; +} FIND_BY_SID_OUTPUT, *PFIND_BY_SID_OUTPUT; +# 11294 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + + DWORDLONG StartFileReferenceNumber; + USN LowUsn; + USN HighUsn; + +} MFT_ENUM_DATA_V0, *PMFT_ENUM_DATA_V0; + +typedef struct { + + DWORDLONG StartFileReferenceNumber; + USN LowUsn; + USN HighUsn; + WORD MinMajorVersion; + WORD MaxMajorVersion; + +} MFT_ENUM_DATA_V1, *PMFT_ENUM_DATA_V1; + + +typedef MFT_ENUM_DATA_V1 MFT_ENUM_DATA, *PMFT_ENUM_DATA; +# 11324 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + + DWORDLONG MaximumSize; + DWORDLONG AllocationDelta; + +} CREATE_USN_JOURNAL_DATA, *PCREATE_USN_JOURNAL_DATA; +# 11343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + + WORD MinMajorVersion; + WORD MaxMajorVersion; + +} READ_FILE_USN_DATA, *PREAD_FILE_USN_DATA; + + + + + + + +typedef struct { + + USN StartUsn; + DWORD ReasonMask; + DWORD ReturnOnlyOnClose; + DWORDLONG Timeout; + DWORDLONG BytesToWaitFor; + DWORDLONG UsnJournalID; + +} READ_USN_JOURNAL_DATA_V0, *PREAD_USN_JOURNAL_DATA_V0; + +typedef struct { + + USN StartUsn; + DWORD ReasonMask; + DWORD ReturnOnlyOnClose; + DWORDLONG Timeout; + DWORDLONG BytesToWaitFor; + DWORDLONG UsnJournalID; + WORD MinMajorVersion; + WORD MaxMajorVersion; + +} READ_USN_JOURNAL_DATA_V1, *PREAD_USN_JOURNAL_DATA_V1; + + +typedef READ_USN_JOURNAL_DATA_V1 READ_USN_JOURNAL_DATA, *PREAD_USN_JOURNAL_DATA; +# 11392 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + DWORD Flags; + DWORD Unused; + DWORDLONG ChunkSize; + LONGLONG FileSizeThreshold; +} USN_TRACK_MODIFIED_RANGES, *PUSN_TRACK_MODIFIED_RANGES; + +typedef struct { + USN Usn; +} USN_RANGE_TRACK_OUTPUT, *PUSN_RANGE_TRACK_OUTPUT; +# 11425 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + + DWORD RecordLength; + WORD MajorVersion; + WORD MinorVersion; + DWORDLONG FileReferenceNumber; + DWORDLONG ParentFileReferenceNumber; + USN Usn; + LARGE_INTEGER TimeStamp; + DWORD Reason; + DWORD SourceInfo; + DWORD SecurityId; + DWORD FileAttributes; + WORD FileNameLength; + WORD FileNameOffset; + WCHAR FileName[1]; + +} USN_RECORD_V2, *PUSN_RECORD_V2; + +typedef struct { + + DWORD RecordLength; + WORD MajorVersion; + WORD MinorVersion; + FILE_ID_128 FileReferenceNumber; + FILE_ID_128 ParentFileReferenceNumber; + USN Usn; + LARGE_INTEGER TimeStamp; + DWORD Reason; + DWORD SourceInfo; + DWORD SecurityId; + DWORD FileAttributes; + WORD FileNameLength; + WORD FileNameOffset; + WCHAR FileName[1]; + +} USN_RECORD_V3, *PUSN_RECORD_V3; + +typedef USN_RECORD_V2 USN_RECORD, *PUSN_RECORD; + +typedef struct { + DWORD RecordLength; + WORD MajorVersion; + WORD MinorVersion; +} USN_RECORD_COMMON_HEADER, *PUSN_RECORD_COMMON_HEADER; + +typedef struct { + LONGLONG Offset; + LONGLONG Length; +} USN_RECORD_EXTENT, *PUSN_RECORD_EXTENT; + +typedef struct { + USN_RECORD_COMMON_HEADER Header; + FILE_ID_128 FileReferenceNumber; + FILE_ID_128 ParentFileReferenceNumber; + USN Usn; + DWORD Reason; + DWORD SourceInfo; + DWORD RemainingExtents; + WORD NumberOfExtents; + WORD ExtentSize; + USN_RECORD_EXTENT Extents[1]; +} USN_RECORD_V4, *PUSN_RECORD_V4; + +typedef union { + USN_RECORD_COMMON_HEADER Header; + USN_RECORD_V2 V2; + USN_RECORD_V3 V3; + USN_RECORD_V4 V4; +} USN_RECORD_UNION, *PUSN_RECORD_UNION; +# 11529 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + + DWORDLONG UsnJournalID; + USN FirstUsn; + USN NextUsn; + USN LowestValidUsn; + USN MaxUsn; + DWORDLONG MaximumSize; + DWORDLONG AllocationDelta; + +} USN_JOURNAL_DATA_V0, *PUSN_JOURNAL_DATA_V0; + +typedef struct { + + DWORDLONG UsnJournalID; + USN FirstUsn; + USN NextUsn; + USN LowestValidUsn; + USN MaxUsn; + DWORDLONG MaximumSize; + DWORDLONG AllocationDelta; + WORD MinSupportedMajorVersion; + WORD MaxSupportedMajorVersion; + +} USN_JOURNAL_DATA_V1, *PUSN_JOURNAL_DATA_V1; + +typedef struct { + + DWORDLONG UsnJournalID; + USN FirstUsn; + USN NextUsn; + USN LowestValidUsn; + USN MaxUsn; + DWORDLONG MaximumSize; + DWORDLONG AllocationDelta; + WORD MinSupportedMajorVersion; + WORD MaxSupportedMajorVersion; + DWORD Flags; + DWORDLONG RangeTrackChunkSize; + LONGLONG RangeTrackFileSizeThreshold; + +} USN_JOURNAL_DATA_V2, *PUSN_JOURNAL_DATA_V2; + + +typedef USN_JOURNAL_DATA_V1 USN_JOURNAL_DATA, *PUSN_JOURNAL_DATA; +# 11584 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + + DWORDLONG UsnJournalID; + DWORD DeleteFlags; + +} DELETE_USN_JOURNAL_DATA, *PDELETE_USN_JOURNAL_DATA; +# 11607 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma warning(push) + +#pragma warning(disable: 4201) + +typedef struct _MARK_HANDLE_INFO { + + + union { + DWORD UsnSourceInfo; + DWORD CopyNumber; + } ; + + + + + HANDLE VolumeHandle; + DWORD HandleInfo; + +} MARK_HANDLE_INFO, *PMARK_HANDLE_INFO; + + + + + + +typedef struct _MARK_HANDLE_INFO32 { + + + union { + DWORD UsnSourceInfo; + DWORD CopyNumber; + } ; + + + + UINT32 VolumeHandle; + DWORD HandleInfo; + +} MARK_HANDLE_INFO32, *PMARK_HANDLE_INFO32; + + + +#pragma warning(pop) +# 11810 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct { + + ACCESS_MASK DesiredAccess; + DWORD SecurityIds[1]; + +} BULK_SECURITY_TEST_DATA, *PBULK_SECURITY_TEST_DATA; +# 11838 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FILE_PREFETCH { + DWORD Type; + DWORD Count; + DWORDLONG Prefetch[1]; +} FILE_PREFETCH, *PFILE_PREFETCH; + +typedef struct _FILE_PREFETCH_EX { + DWORD Type; + DWORD Count; + PVOID Context; + DWORDLONG Prefetch[1]; +} FILE_PREFETCH_EX, *PFILE_PREFETCH_EX; +# 11868 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FILESYSTEM_STATISTICS { + + WORD FileSystemType; + WORD Version; + + DWORD SizeOfCompleteStructure; + + DWORD UserFileReads; + DWORD UserFileReadBytes; + DWORD UserDiskReads; + DWORD UserFileWrites; + DWORD UserFileWriteBytes; + DWORD UserDiskWrites; + + DWORD MetaDataReads; + DWORD MetaDataReadBytes; + DWORD MetaDataDiskReads; + DWORD MetaDataWrites; + DWORD MetaDataWriteBytes; + DWORD MetaDataDiskWrites; + + + + + +} FILESYSTEM_STATISTICS, *PFILESYSTEM_STATISTICS; +# 11906 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FAT_STATISTICS { + DWORD CreateHits; + DWORD SuccessfulCreates; + DWORD FailedCreates; + + DWORD NonCachedReads; + DWORD NonCachedReadBytes; + DWORD NonCachedWrites; + DWORD NonCachedWriteBytes; + + DWORD NonCachedDiskReads; + DWORD NonCachedDiskWrites; +} FAT_STATISTICS, *PFAT_STATISTICS; + +typedef struct _EXFAT_STATISTICS { + DWORD CreateHits; + DWORD SuccessfulCreates; + DWORD FailedCreates; + + DWORD NonCachedReads; + DWORD NonCachedReadBytes; + DWORD NonCachedWrites; + DWORD NonCachedWriteBytes; + + DWORD NonCachedDiskReads; + DWORD NonCachedDiskWrites; +} EXFAT_STATISTICS, *PEXFAT_STATISTICS; + +typedef struct _NTFS_STATISTICS { + + DWORD LogFileFullExceptions; + DWORD OtherExceptions; + + + + + + DWORD MftReads; + DWORD MftReadBytes; + DWORD MftWrites; + DWORD MftWriteBytes; + struct { + WORD Write; + WORD Create; + WORD SetInfo; + WORD Flush; + } MftWritesUserLevel; + + WORD MftWritesFlushForLogFileFull; + WORD MftWritesLazyWriter; + WORD MftWritesUserRequest; + + DWORD Mft2Writes; + DWORD Mft2WriteBytes; + struct { + WORD Write; + WORD Create; + WORD SetInfo; + WORD Flush; + } Mft2WritesUserLevel; + + WORD Mft2WritesFlushForLogFileFull; + WORD Mft2WritesLazyWriter; + WORD Mft2WritesUserRequest; + + DWORD RootIndexReads; + DWORD RootIndexReadBytes; + DWORD RootIndexWrites; + DWORD RootIndexWriteBytes; + + DWORD BitmapReads; + DWORD BitmapReadBytes; + DWORD BitmapWrites; + DWORD BitmapWriteBytes; + + WORD BitmapWritesFlushForLogFileFull; + WORD BitmapWritesLazyWriter; + WORD BitmapWritesUserRequest; + + struct { + WORD Write; + WORD Create; + WORD SetInfo; + } BitmapWritesUserLevel; + + DWORD MftBitmapReads; + DWORD MftBitmapReadBytes; + DWORD MftBitmapWrites; + DWORD MftBitmapWriteBytes; + + WORD MftBitmapWritesFlushForLogFileFull; + WORD MftBitmapWritesLazyWriter; + WORD MftBitmapWritesUserRequest; + + struct { + WORD Write; + WORD Create; + WORD SetInfo; + WORD Flush; + } MftBitmapWritesUserLevel; + + DWORD UserIndexReads; + DWORD UserIndexReadBytes; + DWORD UserIndexWrites; + DWORD UserIndexWriteBytes; + + + + + + DWORD LogFileReads; + DWORD LogFileReadBytes; + DWORD LogFileWrites; + DWORD LogFileWriteBytes; + + struct { + DWORD Calls; + DWORD Clusters; + DWORD Hints; + + DWORD RunsReturned; + + DWORD HintsHonored; + DWORD HintsClusters; + DWORD Cache; + DWORD CacheClusters; + DWORD CacheMiss; + DWORD CacheMissClusters; + } Allocate; + + + + + + DWORD DiskResourcesExhausted; + + + + + +} NTFS_STATISTICS, *PNTFS_STATISTICS; + +typedef struct _FILESYSTEM_STATISTICS_EX { + + WORD FileSystemType; + WORD Version; + + DWORD SizeOfCompleteStructure; + + DWORDLONG UserFileReads; + DWORDLONG UserFileReadBytes; + DWORDLONG UserDiskReads; + DWORDLONG UserFileWrites; + DWORDLONG UserFileWriteBytes; + DWORDLONG UserDiskWrites; + + DWORDLONG MetaDataReads; + DWORDLONG MetaDataReadBytes; + DWORDLONG MetaDataDiskReads; + DWORDLONG MetaDataWrites; + DWORDLONG MetaDataWriteBytes; + DWORDLONG MetaDataDiskWrites; + + + + + +} FILESYSTEM_STATISTICS_EX, *PFILESYSTEM_STATISTICS_EX; + +typedef struct _NTFS_STATISTICS_EX { + + DWORD LogFileFullExceptions; + DWORD OtherExceptions; + + + + + + DWORDLONG MftReads; + DWORDLONG MftReadBytes; + DWORDLONG MftWrites; + DWORDLONG MftWriteBytes; + struct { + DWORD Write; + DWORD Create; + DWORD SetInfo; + DWORD Flush; + } MftWritesUserLevel; + + DWORD MftWritesFlushForLogFileFull; + DWORD MftWritesLazyWriter; + DWORD MftWritesUserRequest; + + DWORDLONG Mft2Writes; + DWORDLONG Mft2WriteBytes; + struct { + DWORD Write; + DWORD Create; + DWORD SetInfo; + DWORD Flush; + } Mft2WritesUserLevel; + + DWORD Mft2WritesFlushForLogFileFull; + DWORD Mft2WritesLazyWriter; + DWORD Mft2WritesUserRequest; + + DWORDLONG RootIndexReads; + DWORDLONG RootIndexReadBytes; + DWORDLONG RootIndexWrites; + DWORDLONG RootIndexWriteBytes; + + DWORDLONG BitmapReads; + DWORDLONG BitmapReadBytes; + DWORDLONG BitmapWrites; + DWORDLONG BitmapWriteBytes; + + DWORD BitmapWritesFlushForLogFileFull; + DWORD BitmapWritesLazyWriter; + DWORD BitmapWritesUserRequest; + + struct { + DWORD Write; + DWORD Create; + DWORD SetInfo; + DWORD Flush; + } BitmapWritesUserLevel; + + DWORDLONG MftBitmapReads; + DWORDLONG MftBitmapReadBytes; + DWORDLONG MftBitmapWrites; + DWORDLONG MftBitmapWriteBytes; + + DWORD MftBitmapWritesFlushForLogFileFull; + DWORD MftBitmapWritesLazyWriter; + DWORD MftBitmapWritesUserRequest; + + struct { + DWORD Write; + DWORD Create; + DWORD SetInfo; + DWORD Flush; + } MftBitmapWritesUserLevel; + + DWORDLONG UserIndexReads; + DWORDLONG UserIndexReadBytes; + DWORDLONG UserIndexWrites; + DWORDLONG UserIndexWriteBytes; + + + + + + DWORDLONG LogFileReads; + DWORDLONG LogFileReadBytes; + DWORDLONG LogFileWrites; + DWORDLONG LogFileWriteBytes; + + struct { + DWORD Calls; + DWORD RunsReturned; + DWORD Hints; + DWORD HintsHonored; + DWORD Cache; + DWORD CacheMiss; + + DWORDLONG Clusters; + DWORDLONG HintsClusters; + DWORDLONG CacheClusters; + DWORDLONG CacheMissClusters; + } Allocate; + + + + + + DWORD DiskResourcesExhausted; + + + + + + DWORDLONG VolumeTrimCount; + DWORDLONG VolumeTrimTime; + DWORDLONG VolumeTrimByteCount; + + DWORDLONG FileLevelTrimCount; + DWORDLONG FileLevelTrimTime; + DWORDLONG FileLevelTrimByteCount; + + DWORDLONG VolumeTrimSkippedCount; + DWORDLONG VolumeTrimSkippedByteCount; + + + + + + DWORDLONG NtfsFillStatInfoFromMftRecordCalledCount; + DWORDLONG NtfsFillStatInfoFromMftRecordBailedBecauseOfAttributeListCount; + DWORDLONG NtfsFillStatInfoFromMftRecordBailedBecauseOfNonResReparsePointCount; + +} NTFS_STATISTICS_EX, *PNTFS_STATISTICS_EX; +# 12220 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma warning(push) + +#pragma warning(disable: 4201) + +typedef struct _FILE_OBJECTID_BUFFER { + + + + + + BYTE ObjectId[16]; + + + + + + + union { + struct { + BYTE BirthVolumeId[16]; + BYTE BirthObjectId[16]; + BYTE DomainId[16]; + } ; + BYTE ExtendedInfo[48]; + } ; + +} FILE_OBJECTID_BUFFER, *PFILE_OBJECTID_BUFFER; + + +#pragma warning(pop) +# 12264 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FILE_SET_SPARSE_BUFFER { + BOOLEAN SetSparse; +} FILE_SET_SPARSE_BUFFER, *PFILE_SET_SPARSE_BUFFER; +# 12278 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FILE_ZERO_DATA_INFORMATION { + + LARGE_INTEGER FileOffset; + LARGE_INTEGER BeyondFinalZero; + +} FILE_ZERO_DATA_INFORMATION, *PFILE_ZERO_DATA_INFORMATION; + + + + + +typedef struct _FILE_ZERO_DATA_INFORMATION_EX { + + LARGE_INTEGER FileOffset; + LARGE_INTEGER BeyondFinalZero; + DWORD Flags; + +} FILE_ZERO_DATA_INFORMATION_EX, *PFILE_ZERO_DATA_INFORMATION_EX; +# 12321 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FILE_ALLOCATED_RANGE_BUFFER { + + LARGE_INTEGER FileOffset; + LARGE_INTEGER Length; + +} FILE_ALLOCATED_RANGE_BUFFER, *PFILE_ALLOCATED_RANGE_BUFFER; +# 12345 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _ENCRYPTION_BUFFER { + + DWORD EncryptionOperation; + BYTE Private[1]; + +} ENCRYPTION_BUFFER, *PENCRYPTION_BUFFER; +# 12364 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DECRYPTION_STATUS_BUFFER { + + BOOLEAN NoEncryptedStreams; + +} DECRYPTION_STATUS_BUFFER, *PDECRYPTION_STATUS_BUFFER; +# 12378 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _REQUEST_RAW_ENCRYPTED_DATA { +# 12387 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + LONGLONG FileOffset; + DWORD Length; + +} REQUEST_RAW_ENCRYPTED_DATA, *PREQUEST_RAW_ENCRYPTED_DATA; +# 12416 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _ENCRYPTED_DATA_INFO { +# 12425 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORDLONG StartingFileOffset; +# 12435 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD OutputBufferOffset; +# 12446 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD BytesWithinFileSize; +# 12457 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD BytesWithinValidDataLength; +# 12466 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + WORD CompressionFormat; +# 12487 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + BYTE DataUnitShift; + BYTE ChunkShift; + BYTE ClusterShift; + + + + + + BYTE EncryptionFormat; + + + + + + + WORD NumberOfDataBlocks; +# 12530 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD DataBlockSize[1]; + +} ENCRYPTED_DATA_INFO, *PENCRYPTED_DATA_INFO; +# 12547 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _EXTENDED_ENCRYPTED_DATA_INFO { +# 12556 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD ExtendedCode; + + + + + + DWORD Length; + + + + + + DWORD Flags; + DWORD Reserved; + +} EXTENDED_ENCRYPTED_DATA_INFO, *PEXTENDED_ENCRYPTED_DATA_INFO; +# 12585 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _PLEX_READ_DATA_REQUEST { +# 12597 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + LARGE_INTEGER ByteOffset; + DWORD ByteLength; + DWORD PlexNumber; + +} PLEX_READ_DATA_REQUEST, *PPLEX_READ_DATA_REQUEST; +# 12616 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SI_COPYFILE { + DWORD SourceFileNameLength; + DWORD DestinationFileNameLength; + DWORD Flags; + WCHAR FileNameBuffer[1]; +} SI_COPYFILE, *PSI_COPYFILE; +# 12637 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FILE_MAKE_COMPATIBLE_BUFFER { + BOOLEAN CloseDisc; +} FILE_MAKE_COMPATIBLE_BUFFER, *PFILE_MAKE_COMPATIBLE_BUFFER; + + + + + + + +typedef struct _FILE_SET_DEFECT_MGMT_BUFFER { + BOOLEAN Disable; +} FILE_SET_DEFECT_MGMT_BUFFER, *PFILE_SET_DEFECT_MGMT_BUFFER; + + + + + + + +typedef struct _FILE_QUERY_SPARING_BUFFER { + DWORD SparingUnitBytes; + BOOLEAN SoftwareSparing; + DWORD TotalSpareBlocks; + DWORD FreeSpareBlocks; +} FILE_QUERY_SPARING_BUFFER, *PFILE_QUERY_SPARING_BUFFER; + + + + + + + +typedef struct _FILE_QUERY_ON_DISK_VOL_INFO_BUFFER { + LARGE_INTEGER DirectoryCount; + LARGE_INTEGER FileCount; + WORD FsFormatMajVersion; + WORD FsFormatMinVersion; + WCHAR FsFormatName[ 12]; + LARGE_INTEGER FormatTime; + LARGE_INTEGER LastUpdateTime; + WCHAR CopyrightInfo[ 34]; + WCHAR AbstractInfo[ 34]; + WCHAR FormattingImplementationInfo[ 34]; + WCHAR LastModifyingImplementationInfo[ 34]; +} FILE_QUERY_ON_DISK_VOL_INFO_BUFFER, *PFILE_QUERY_ON_DISK_VOL_INFO_BUFFER; +# 12748 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef DWORDLONG CLSN; + +typedef struct _FILE_INITIATE_REPAIR_OUTPUT_BUFFER { + DWORDLONG Hint1; + DWORDLONG Hint2; + CLSN Clsn; + DWORD Status; +} FILE_INITIATE_REPAIR_OUTPUT_BUFFER, *PFILE_INITIATE_REPAIR_OUTPUT_BUFFER; + + + + + + + +typedef enum _SHRINK_VOLUME_REQUEST_TYPES +{ + ShrinkPrepare = 1, + ShrinkCommit, + ShrinkAbort + +} SHRINK_VOLUME_REQUEST_TYPES, *PSHRINK_VOLUME_REQUEST_TYPES; + +typedef struct _SHRINK_VOLUME_INFORMATION +{ + SHRINK_VOLUME_REQUEST_TYPES ShrinkRequestType; + DWORDLONG Flags; + LONGLONG NewNumberOfSectors; + +} SHRINK_VOLUME_INFORMATION, *PSHRINK_VOLUME_INFORMATION; +# 12848 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _TXFS_MODIFY_RM { + + + + + + DWORD Flags; + + + + + + DWORD LogContainerCountMax; + + + + + + DWORD LogContainerCountMin; + + + + + + DWORD LogContainerCount; + + + + + + + + DWORD LogGrowthIncrement; + + + + + + + DWORD LogAutoShrinkPercentage; + + + + + + DWORDLONG Reserved; + + + + + + + WORD LoggingMode; + +} TXFS_MODIFY_RM, + *PTXFS_MODIFY_RM; +# 12950 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _TXFS_QUERY_RM_INFORMATION { + + + + + + + DWORD BytesRequired; + + + + + + DWORDLONG TailLsn; + + + + + + DWORDLONG CurrentLsn; + + + + + + DWORDLONG ArchiveTailLsn; + + + + + + DWORDLONG LogContainerSize; + + + + + + LARGE_INTEGER HighestVirtualClock; + + + + + + DWORD LogContainerCount; + + + + + + DWORD LogContainerCountMax; + + + + + + DWORD LogContainerCountMin; + + + + + + + + DWORD LogGrowthIncrement; + + + + + + + + DWORD LogAutoShrinkPercentage; + + + + + + + DWORD Flags; + + + + + + WORD LoggingMode; + + + + + + WORD Reserved; + + + + + + DWORD RmState; + + + + + + DWORDLONG LogCapacity; + + + + + + DWORDLONG LogFree; + + + + + + DWORDLONG TopsSize; + + + + + + DWORDLONG TopsUsed; + + + + + + DWORDLONG TransactionCount; + + + + + + DWORDLONG OnePCCount; + + + + + + DWORDLONG TwoPCCount; + + + + + + DWORDLONG NumberLogFileFull; + + + + + + DWORDLONG OldestTransactionAge; + + + + + + GUID RMName; + + + + + + + DWORD TmLogPathOffset; + +} TXFS_QUERY_RM_INFORMATION, + *PTXFS_QUERY_RM_INFORMATION; +# 13131 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _TXFS_ROLLFORWARD_REDO_INFORMATION { + LARGE_INTEGER LastVirtualClock; + DWORDLONG LastRedoLsn; + DWORDLONG HighestRecoveryLsn; + DWORD Flags; +} TXFS_ROLLFORWARD_REDO_INFORMATION, + *PTXFS_ROLLFORWARD_REDO_INFORMATION; + + + +#pragma deprecated(TXFS_ROLLFORWARD_REDO_INFORMATION) +#pragma deprecated(PTXFS_ROLLFORWARD_REDO_INFORMATION) +# 13197 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _TXFS_START_RM_INFORMATION { + + + + + + DWORD Flags; + + + + + + DWORDLONG LogContainerSize; + + + + + + DWORD LogContainerCountMin; + + + + + + DWORD LogContainerCountMax; + + + + + + + + DWORD LogGrowthIncrement; + + + + + + DWORD LogAutoShrinkPercentage; + + + + + + + + DWORD TmLogPathOffset; + + + + + + + WORD TmLogPathLength; + + + + + + + + WORD LoggingMode; + + + + + + + WORD LogPathLength; + + + + + + WORD Reserved; + + + + + + + WCHAR LogPath[1]; + +} TXFS_START_RM_INFORMATION, + *PTXFS_START_RM_INFORMATION; + + + +#pragma deprecated(TXFS_START_RM_INFORMATION) +#pragma deprecated(PTXFS_START_RM_INFORMATION) +# 13296 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _TXFS_GET_METADATA_INFO_OUT { + + + + + + struct { + LONGLONG LowPart; + LONGLONG HighPart; + } TxfFileId; + + + + + + GUID LockingTransaction; + + + + + + DWORDLONG LastLsn; + + + + + + DWORD TransactionState; + +} TXFS_GET_METADATA_INFO_OUT, *PTXFS_GET_METADATA_INFO_OUT; +# 13346 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY { + + + + + + + DWORDLONG Offset; + + + + + + + DWORD NameFlags; + + + + + + LONGLONG FileId; + + + + + + DWORD Reserved1; + DWORD Reserved2; + LONGLONG Reserved3; + + + + + + WCHAR FileName[1]; +} TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY, *PTXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY; + +typedef struct _TXFS_LIST_TRANSACTION_LOCKED_FILES { + + + + + + GUID KtmTransaction; + + + + + + DWORDLONG NumberOfFiles; + + + + + + + DWORDLONG BufferSizeRequired; + + + + + + + DWORDLONG Offset; +} TXFS_LIST_TRANSACTION_LOCKED_FILES, *PTXFS_LIST_TRANSACTION_LOCKED_FILES; + + + + + + + +typedef struct _TXFS_LIST_TRANSACTIONS_ENTRY { + + + + + + GUID TransactionId; + + + + + + DWORD TransactionState; + + + + + + DWORD Reserved1; + DWORD Reserved2; + LONGLONG Reserved3; +} TXFS_LIST_TRANSACTIONS_ENTRY, *PTXFS_LIST_TRANSACTIONS_ENTRY; + +typedef struct _TXFS_LIST_TRANSACTIONS { + + + + + + DWORDLONG NumberOfTransactions; + + + + + + + + DWORDLONG BufferSizeRequired; +} TXFS_LIST_TRANSACTIONS, *PTXFS_LIST_TRANSACTIONS; + + + + + + + + +#pragma warning(push) + +#pragma warning(disable: 4201) + +typedef struct _TXFS_READ_BACKUP_INFORMATION_OUT { + union { + + + + + + DWORD BufferLength; + + + + + + BYTE Buffer[1]; + } ; +} TXFS_READ_BACKUP_INFORMATION_OUT, *PTXFS_READ_BACKUP_INFORMATION_OUT; + + +#pragma warning(pop) +# 13498 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _TXFS_WRITE_BACKUP_INFORMATION { + + + + + + + BYTE Buffer[1]; +} TXFS_WRITE_BACKUP_INFORMATION, *PTXFS_WRITE_BACKUP_INFORMATION; +# 13517 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _TXFS_GET_TRANSACTED_VERSION { + + + + + + + + DWORD ThisBaseVersion; + + + + + + DWORD LatestVersion; + + + + + + + WORD ThisMiniVersion; + + + + + + + WORD FirstMiniVersion; + + + + + + + WORD LatestMiniVersion; + +} TXFS_GET_TRANSACTED_VERSION, *PTXFS_GET_TRANSACTED_VERSION; +# 13591 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _TXFS_SAVEPOINT_INFORMATION { + + + + + + HANDLE KtmTransaction; + + + + + + DWORD ActionCode; +# 13615 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD SavepointId; + +} TXFS_SAVEPOINT_INFORMATION, *PTXFS_SAVEPOINT_INFORMATION; + + + +#pragma deprecated(TXFS_SAVEPOINT_INFORMATION) +#pragma deprecated(PTXFS_SAVEPOINT_INFORMATION) +# 13634 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _TXFS_CREATE_MINIVERSION_INFO { + + WORD StructureVersion; + + WORD StructureLength; + + + + + + DWORD BaseVersion; + + + + + + WORD MiniVersion; + +} TXFS_CREATE_MINIVERSION_INFO, *PTXFS_CREATE_MINIVERSION_INFO; + + + +#pragma deprecated(TXFS_CREATE_MINIVERSION_INFO) +#pragma deprecated(PTXFS_CREATE_MINIVERSION_INFO) +# 13667 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _TXFS_TRANSACTION_ACTIVE_INFO { + + + + + + BOOLEAN TransactionsActiveAtSnapshot; + +} TXFS_TRANSACTION_ACTIVE_INFO, *PTXFS_TRANSACTION_ACTIVE_INFO; +# 13687 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _BOOT_AREA_INFO { + + DWORD BootSectorCount; + struct { + LARGE_INTEGER Offset; + } BootSectors[2]; + +} BOOT_AREA_INFO, *PBOOT_AREA_INFO; + + + + + + + +typedef struct _RETRIEVAL_POINTER_BASE { + + LARGE_INTEGER FileAreaOffset; +} RETRIEVAL_POINTER_BASE, *PRETRIEVAL_POINTER_BASE; +# 13715 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FILE_FS_PERSISTENT_VOLUME_INFORMATION { + + DWORD VolumeFlags; + DWORD FlagMask; + DWORD Version; + DWORD Reserved; + +} FILE_FS_PERSISTENT_VOLUME_INFORMATION, *PFILE_FS_PERSISTENT_VOLUME_INFORMATION; +# 13833 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FILE_SYSTEM_RECOGNITION_INFORMATION { + + CHAR FileSystem[9]; + +} FILE_SYSTEM_RECOGNITION_INFORMATION, *PFILE_SYSTEM_RECOGNITION_INFORMATION; +# 13855 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _REQUEST_OPLOCK_INPUT_BUFFER { + + + + + + WORD StructureVersion; + + WORD StructureLength; + + + + + + DWORD RequestedOplockLevel; + + + + + + DWORD Flags; + +} REQUEST_OPLOCK_INPUT_BUFFER, *PREQUEST_OPLOCK_INPUT_BUFFER; + + + + +typedef struct _REQUEST_OPLOCK_OUTPUT_BUFFER { + + + + + + WORD StructureVersion; + + WORD StructureLength; + + + + + + + DWORD OriginalOplockLevel; + + + + + + + + DWORD NewOplockLevel; + + + + + + DWORD Flags; + + + + + + + + ACCESS_MASK AccessMode; + + WORD ShareMode; + +} REQUEST_OPLOCK_OUTPUT_BUFFER, *PREQUEST_OPLOCK_OUTPUT_BUFFER; + + + + + + + +typedef struct _VIRTUAL_STORAGE_TYPE +{ + DWORD DeviceId; + GUID VendorId; +} VIRTUAL_STORAGE_TYPE, *PVIRTUAL_STORAGE_TYPE; + + + + + + +typedef struct _STORAGE_QUERY_DEPENDENT_VOLUME_REQUEST { + DWORD RequestLevel; + DWORD RequestFlags; +} STORAGE_QUERY_DEPENDENT_VOLUME_REQUEST, *PSTORAGE_QUERY_DEPENDENT_VOLUME_REQUEST; + + + + +typedef struct _STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY { + DWORD EntryLength; + DWORD DependencyTypeFlags; + DWORD ProviderSpecificFlags; + VIRTUAL_STORAGE_TYPE VirtualStorageType; +} STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY, *PSTORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY; + +typedef struct _STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY { + DWORD EntryLength; + DWORD DependencyTypeFlags; + DWORD ProviderSpecificFlags; + VIRTUAL_STORAGE_TYPE VirtualStorageType; + DWORD AncestorLevel; + DWORD HostVolumeNameOffset; + DWORD HostVolumeNameSize; + DWORD DependentVolumeNameOffset; + DWORD DependentVolumeNameSize; + DWORD RelativePathOffset; + DWORD RelativePathSize; + DWORD DependentDeviceNameOffset; + DWORD DependentDeviceNameSize; +} STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY, *PSTORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY; + + + + +#pragma warning(push) +#pragma warning(disable: 4200) + + +typedef struct _STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE { + DWORD ResponseLevel; + DWORD NumberEntries; + union { + STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY Lev1Depends[]; + STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY Lev2Depends[]; + } ; +} STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE, *PSTORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE; + + +#pragma warning(pop) +# 14013 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SD_CHANGE_MACHINE_SID_INPUT { +# 14023 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + WORD CurrentMachineSIDOffset; + WORD CurrentMachineSIDLength; +# 14034 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + WORD NewMachineSIDOffset; + WORD NewMachineSIDLength; + +} SD_CHANGE_MACHINE_SID_INPUT, *PSD_CHANGE_MACHINE_SID_INPUT; + +typedef struct _SD_CHANGE_MACHINE_SID_OUTPUT { + + + + + + DWORDLONG NumSDChangedSuccess; + + + + + + DWORDLONG NumSDChangedFail; + + + + + + DWORDLONG NumSDUnused; + + + + + + DWORDLONG NumSDTotal; + + + + + + DWORDLONG NumMftSDChangedSuccess; + + + + + + DWORDLONG NumMftSDChangedFail; + + + + + + DWORDLONG NumMftSDTotal; + +} SD_CHANGE_MACHINE_SID_OUTPUT, *PSD_CHANGE_MACHINE_SID_OUTPUT; + + + + + +typedef struct _SD_QUERY_STATS_INPUT { + + DWORD Reserved; + +} SD_QUERY_STATS_INPUT, *PSD_QUERY_STATS_INPUT; + +typedef struct _SD_QUERY_STATS_OUTPUT { + + + + + + + DWORDLONG SdsStreamSize; + DWORDLONG SdsAllocationSize; + + + + + + + DWORDLONG SiiStreamSize; + DWORDLONG SiiAllocationSize; + + + + + + + DWORDLONG SdhStreamSize; + DWORDLONG SdhAllocationSize; + + + + + + + DWORDLONG NumSDTotal; + + + + + + + DWORDLONG NumSDUnused; + +} SD_QUERY_STATS_OUTPUT, *PSD_QUERY_STATS_OUTPUT; + + + + + +typedef struct _SD_ENUM_SDS_INPUT { +# 14153 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORDLONG StartingOffset; + + + + + + + + DWORDLONG MaxSDEntriesToReturn; + +} SD_ENUM_SDS_INPUT, *PSD_ENUM_SDS_INPUT; + +typedef struct _SD_ENUM_SDS_ENTRY { + + + + + + DWORD Hash; + + + + + + DWORD SecurityId; + + + + + + + DWORDLONG Offset; + + + + + + + DWORD Length; + + + + + + BYTE Descriptor[1]; + +} SD_ENUM_SDS_ENTRY, *PSD_ENUM_SDS_ENTRY; + +typedef struct _SD_ENUM_SDS_OUTPUT { +# 14211 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORDLONG NextOffset; + + + + + + DWORDLONG NumSDEntriesReturned; + + + + + + DWORDLONG NumSDBytesReturned; +# 14233 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + SD_ENUM_SDS_ENTRY SDEntry[1]; + +} SD_ENUM_SDS_OUTPUT, *PSD_ENUM_SDS_OUTPUT; + + + + + + +#pragma warning(push) + +#pragma warning(disable: 4201) + +typedef struct _SD_GLOBAL_CHANGE_INPUT +{ + + + + + DWORD Flags; + + + + + + + DWORD ChangeType; + + union { + + SD_CHANGE_MACHINE_SID_INPUT SdChange; + SD_QUERY_STATS_INPUT SdQueryStats; + SD_ENUM_SDS_INPUT SdEnumSds; + } ; + +} SD_GLOBAL_CHANGE_INPUT, *PSD_GLOBAL_CHANGE_INPUT; + +typedef struct _SD_GLOBAL_CHANGE_OUTPUT +{ + + + + + + DWORD Flags; + + + + + + DWORD ChangeType; + + union { + + SD_CHANGE_MACHINE_SID_OUTPUT SdChange; + SD_QUERY_STATS_OUTPUT SdQueryStats; + SD_ENUM_SDS_OUTPUT SdEnumSds; + } ; + +} SD_GLOBAL_CHANGE_OUTPUT, *PSD_GLOBAL_CHANGE_OUTPUT; + + +#pragma warning(pop) + + + + + + + + +typedef struct _LOOKUP_STREAM_FROM_CLUSTER_INPUT { + + + + + DWORD Flags; + + + + + + + DWORD NumberOfClusters; + + + + + LARGE_INTEGER Cluster[1]; +} LOOKUP_STREAM_FROM_CLUSTER_INPUT, *PLOOKUP_STREAM_FROM_CLUSTER_INPUT; + +typedef struct _LOOKUP_STREAM_FROM_CLUSTER_OUTPUT { + + + + + DWORD Offset; + + + + + + + DWORD NumberOfMatches; + + + + + + DWORD BufferSizeRequired; +} LOOKUP_STREAM_FROM_CLUSTER_OUTPUT, *PLOOKUP_STREAM_FROM_CLUSTER_OUTPUT; +# 14355 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _LOOKUP_STREAM_FROM_CLUSTER_ENTRY { + + + + + DWORD OffsetToNext; + + + + + DWORD Flags; + + + + + LARGE_INTEGER Reserved; + + + + + + LARGE_INTEGER Cluster; + + + + + + + + WCHAR FileName[1]; +} LOOKUP_STREAM_FROM_CLUSTER_ENTRY, *PLOOKUP_STREAM_FROM_CLUSTER_ENTRY; +# 14395 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FILE_TYPE_NOTIFICATION_INPUT { + + + + + + + DWORD Flags; + + + + + + DWORD NumFileTypeIDs; + + + + + + GUID FileTypeID[1]; + +} FILE_TYPE_NOTIFICATION_INPUT, *PFILE_TYPE_NOTIFICATION_INPUT; +# 14429 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +extern const GUID FILE_TYPE_NOTIFICATION_GUID_PAGE_FILE; +extern const GUID FILE_TYPE_NOTIFICATION_GUID_HIBERNATION_FILE; +extern const GUID FILE_TYPE_NOTIFICATION_GUID_CRASHDUMP_FILE; + + + + + +typedef struct _CSV_MGMT_LOCK { + DWORD Flags; +}CSV_MGMT_LOCK, *PCSV_MGMT_LOCK; + + + + + + + +typedef struct _CSV_NAMESPACE_INFO { + + DWORD Version; + DWORD DeviceNumber; + LARGE_INTEGER StartingOffset; + DWORD SectorSize; + +} CSV_NAMESPACE_INFO, *PCSV_NAMESPACE_INFO; +# 14463 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _CSV_CONTROL_OP { + CsvControlStartRedirectFile = 0x02, + CsvControlStopRedirectFile = 0x03, + CsvControlQueryRedirectState = 0x04, + CsvControlQueryFileRevision = 0x06, + CsvControlQueryMdsPath = 0x08, + CsvControlQueryFileRevisionFileId128 = 0x09, + CsvControlQueryVolumeRedirectState = 0x0a, + CsvControlEnableUSNRangeModificationTracking = 0x0d, + CsvControlMarkHandleLocalVolumeMount = 0x0e, + CsvControlUnmarkHandleLocalVolumeMount = 0x0f, + CsvControlGetCsvFsMdsPathV2 = 0x12, + CsvControlDisableCaching = 0x13, + CsvControlEnableCaching = 0x14, + CsvControlStartForceDFO = 0x15, + CsvControlStopForceDFO = 0x16, + CsvControlQueryMdsPathNoPause = 0x17, + CsvControlSetVolumeId = 0x18, + CsvControlQueryVolumeId = 0x19, +} CSV_CONTROL_OP, *PCSV_CONTROL_OP; + +typedef struct _CSV_CONTROL_PARAM { + CSV_CONTROL_OP Operation; + LONGLONG Unused; +} CSV_CONTROL_PARAM, *PCSV_CONTROL_PARAM; + + + + +typedef struct _CSV_QUERY_REDIRECT_STATE { + DWORD MdsNodeId; + DWORD DsNodeId; + BOOLEAN FileRedirected; +} CSV_QUERY_REDIRECT_STATE, *PCSV_QUERY_REDIRECT_STATE; + + + + + + + +typedef struct _CSV_QUERY_FILE_REVISION { + + + + LONGLONG FileId; +# 14527 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + LONGLONG FileRevision[3]; + +} CSV_QUERY_FILE_REVISION, *PCSV_QUERY_FILE_REVISION; + + + + + + + +typedef struct _CSV_QUERY_FILE_REVISION_FILE_ID_128 { + + + + FILE_ID_128 FileId; +# 14560 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + LONGLONG FileRevision[3]; + +} CSV_QUERY_FILE_REVISION_FILE_ID_128, *PCSV_QUERY_FILE_REVISION_FILE_ID_128; + + + + + + +typedef struct _CSV_QUERY_MDS_PATH { + DWORD MdsNodeId; + DWORD DsNodeId; + DWORD PathLength; + WCHAR Path[1]; +} CSV_QUERY_MDS_PATH, *PCSV_QUERY_MDS_PATH; + +typedef enum _CSVFS_DISK_CONNECTIVITY +{ + CsvFsDiskConnectivityNone = 0, + CsvFsDiskConnectivityMdsNodeOnly = 1, + CsvFsDiskConnectivitySubsetOfNodes = 2, + CsvFsDiskConnectivityAllNodes = 3 +} CSVFS_DISK_CONNECTIVITY, *PCSVFS_DISK_CONNECTIVITY; + + + + +typedef struct _CSV_QUERY_VOLUME_REDIRECT_STATE { + DWORD MdsNodeId; + DWORD DsNodeId; + BOOLEAN IsDiskConnected; + BOOLEAN ClusterEnableDirectIo; + CSVFS_DISK_CONNECTIVITY DiskConnectivity; +} CSV_QUERY_VOLUME_REDIRECT_STATE, *PCSV_QUERY_VOLUME_REDIRECT_STATE; +# 14607 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _CSV_QUERY_MDS_PATH_V2 { + + + + + LONGLONG Version; + + + + + DWORD RequiredSize; + + + + + + DWORD MdsNodeId; + DWORD DsNodeId; + + + + DWORD Flags; + + + + CSVFS_DISK_CONNECTIVITY DiskConnectivity; + + + + GUID VolumeId; + + + + + + DWORD IpAddressOffset; + DWORD IpAddressLength; + + + + + + DWORD PathOffset; + DWORD PathLength; + +} CSV_QUERY_MDS_PATH_V2, *PCSV_QUERY_MDS_PATH_V2; + + + + +typedef struct _CSV_SET_VOLUME_ID { + GUID VolumeId; +} CSV_SET_VOLUME_ID, *PCSV_SET_VOLUME_ID; + + + + +typedef struct _CSV_QUERY_VOLUME_ID { + GUID VolumeId; +} CSV_QUERY_VOLUME_ID, *PCSV_QUERY_VOLUME_ID; + + + + + +typedef enum _LMR_QUERY_INFO_CLASS { + LMRQuerySessionInfo = 1, +} LMR_QUERY_INFO_CLASS, *PLMR_QUERY_INFO_CLASS; + +typedef struct _LMR_QUERY_INFO_PARAM { + LMR_QUERY_INFO_CLASS Operation; +} LMR_QUERY_INFO_PARAM, *PLMR_QUERY_INFO_PARAM; + + + + +typedef struct _LMR_QUERY_SESSION_INFO { + UINT64 SessionId; +} LMR_QUERY_SESSION_INFO, *PLMR_QUERY_SESSION_INFO; +# 14697 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _CSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT { + DWORDLONG VetoedFromAltitudeIntegral; + DWORDLONG VetoedFromAltitudeDecimal; + WCHAR Reason[256]; +} CSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT, *PCSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT; +# 14710 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _STORAGE_RESERVE_ID { + + StorageReserveIdNone = 0, + StorageReserveIdHard, + StorageReserveIdSoft, + StorageReserveIdUpdateScratch, + + StorageReserveIdMax + +} STORAGE_RESERVE_ID, *PSTORAGE_RESERVE_ID; +# 14728 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _CSV_IS_OWNED_BY_CSVFS { + BOOLEAN OwnedByCSVFS; +}CSV_IS_OWNED_BY_CSVFS, *PCSV_IS_OWNED_BY_CSVFS; + + + + + + + +typedef struct _FILE_LEVEL_TRIM_RANGE { + + + + + + DWORDLONG Offset; + + + + + + DWORDLONG Length; +} FILE_LEVEL_TRIM_RANGE, *PFILE_LEVEL_TRIM_RANGE; + + + + + +typedef struct _FILE_LEVEL_TRIM { + + + + + + + DWORD Key; + + + + + + DWORD NumRanges; + + + + + + FILE_LEVEL_TRIM_RANGE Ranges[1]; + +} FILE_LEVEL_TRIM, *PFILE_LEVEL_TRIM; + + + + + +typedef struct _FILE_LEVEL_TRIM_OUTPUT { + + + + + + + DWORD NumRangesProcessed; + +} FILE_LEVEL_TRIM_OUTPUT, *PFILE_LEVEL_TRIM_OUTPUT; +# 14902 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _QUERY_FILE_LAYOUT_FILTER_TYPE { + + QUERY_FILE_LAYOUT_FILTER_TYPE_NONE = 0, + QUERY_FILE_LAYOUT_FILTER_TYPE_CLUSTERS = 1, + QUERY_FILE_LAYOUT_FILTER_TYPE_FILEID = 2, + + QUERY_FILE_LAYOUT_FILTER_TYPE_STORAGE_RESERVE_ID = 3, + + + QUERY_FILE_LAYOUT_NUM_FILTER_TYPES + +} QUERY_FILE_LAYOUT_FILTER_TYPE; + +typedef struct _CLUSTER_RANGE { + + + + + + LARGE_INTEGER StartingCluster; + + + + + LARGE_INTEGER ClusterCount; + +} CLUSTER_RANGE, *PCLUSTER_RANGE; + +typedef struct _FILE_REFERENCE_RANGE { + + + + + + DWORDLONG StartingFileReferenceNumber; + + + + + + DWORDLONG EndingFileReferenceNumber; + +} FILE_REFERENCE_RANGE, *PFILE_REFERENCE_RANGE; + +typedef struct _QUERY_FILE_LAYOUT_INPUT { +# 14958 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + union { + DWORD FilterEntryCount; + DWORD NumberOfPairs; + } ; + + + + + DWORD Flags; + + + + + + QUERY_FILE_LAYOUT_FILTER_TYPE FilterType; + + + + + + DWORD Reserved; + + + + + + + union { +# 14994 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + CLUSTER_RANGE ClusterRanges[1]; +# 15003 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + FILE_REFERENCE_RANGE FileReferenceRanges[1]; +# 15013 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + STORAGE_RESERVE_ID StorageReserveIds[1]; + + + } Filter; + +} QUERY_FILE_LAYOUT_INPUT, *PQUERY_FILE_LAYOUT_INPUT; + + + + + + + +typedef struct _QUERY_FILE_LAYOUT_OUTPUT { + + + + + + + DWORD FileEntryCount; + + + + + + DWORD FirstFileOffset; + + + + + + DWORD Flags; + + + + + DWORD Reserved; + +} QUERY_FILE_LAYOUT_OUTPUT, *PQUERY_FILE_LAYOUT_OUTPUT; + +typedef struct _FILE_LAYOUT_ENTRY { + + + + + + DWORD Version; + + + + + + DWORD NextFileOffset; + + + + + + DWORD Flags; + + + + + DWORD FileAttributes; + + + + + DWORDLONG FileReferenceNumber; + + + + + + + DWORD FirstNameOffset; + + + + + + + DWORD FirstStreamOffset; + + + + + + + + DWORD ExtraInfoOffset; +# 15126 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD ExtraInfoLength; +# 15136 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +} FILE_LAYOUT_ENTRY, *PFILE_LAYOUT_ENTRY; +# 15145 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FILE_LAYOUT_NAME_ENTRY { + + + + + + DWORD NextNameOffset; + + + + + DWORD Flags; + + + + + DWORDLONG ParentFileReferenceNumber; + + + + + DWORD FileNameLength; + + + + + DWORD Reserved; + + + + + + + WCHAR FileName[1]; + +} FILE_LAYOUT_NAME_ENTRY, *PFILE_LAYOUT_NAME_ENTRY; + +typedef struct _FILE_LAYOUT_INFO_ENTRY { + + + + + struct { + LARGE_INTEGER CreationTime; + LARGE_INTEGER LastAccessTime; + LARGE_INTEGER LastWriteTime; + LARGE_INTEGER ChangeTime; + DWORD FileAttributes; + } BasicInformation; + + + + + DWORD OwnerId; + + + + + DWORD SecurityId; + + + + + USN Usn; + + + + + + STORAGE_RESERVE_ID StorageReserveId; + + +} FILE_LAYOUT_INFO_ENTRY, *PFILE_LAYOUT_INFO_ENTRY; +# 15245 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STREAM_LAYOUT_ENTRY { + + + + + DWORD Version; + + + + + DWORD NextStreamOffset; + + + + + DWORD Flags; + + + + + + + + DWORD ExtentInformationOffset; + + + + + + LARGE_INTEGER AllocationSize; + + + + + LARGE_INTEGER EndOfFile; + + + + + + DWORD StreamInformationOffset; + + + + + DWORD AttributeTypeCode; + + + + + DWORD AttributeFlags; + + + + + DWORD StreamIdentifierLength; + + + + + + + WCHAR StreamIdentifier[1]; + +} STREAM_LAYOUT_ENTRY, *PSTREAM_LAYOUT_ENTRY; +# 15324 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STREAM_EXTENT_ENTRY { + + + + + DWORD Flags; + + union { + + + + + + + RETRIEVAL_POINTERS_BUFFER RetrievalPointers; + + } ExtentInformation; + +} STREAM_EXTENT_ENTRY, *PSTREAM_EXTENT_ENTRY; +# 15358 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER { + WORD ChecksumAlgorithm; + WORD Reserved; + DWORD Flags; + DWORD ChecksumChunkSizeInBytes; + DWORD ClusterSizeInBytes; +} FSCTL_GET_INTEGRITY_INFORMATION_BUFFER, *PFSCTL_GET_INTEGRITY_INFORMATION_BUFFER; + +typedef struct _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER { + WORD ChecksumAlgorithm; + WORD Reserved; + DWORD Flags; +} FSCTL_SET_INTEGRITY_INFORMATION_BUFFER, *PFSCTL_SET_INTEGRITY_INFORMATION_BUFFER; + + + + + + +typedef struct _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX { + BYTE EnableIntegrity; + BYTE KeepIntegrityStateUnchanged; + WORD Reserved; + DWORD Flags; + BYTE Version; + BYTE Reserved2[7]; +} FSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX, *PFSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX; +# 15393 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FSCTL_OFFLOAD_READ_INPUT { + DWORD Size; + DWORD Flags; + DWORD TokenTimeToLive; + DWORD Reserved; + DWORDLONG FileOffset; + DWORDLONG CopyLength; +} FSCTL_OFFLOAD_READ_INPUT, *PFSCTL_OFFLOAD_READ_INPUT; + +typedef struct _FSCTL_OFFLOAD_READ_OUTPUT { + DWORD Size; + DWORD Flags; + DWORDLONG TransferLength; + BYTE Token[512]; +} FSCTL_OFFLOAD_READ_OUTPUT, *PFSCTL_OFFLOAD_READ_OUTPUT; +# 15417 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FSCTL_OFFLOAD_WRITE_INPUT { + DWORD Size; + DWORD Flags; + DWORDLONG FileOffset; + DWORDLONG CopyLength; + DWORDLONG TransferOffset; + BYTE Token[512]; +} FSCTL_OFFLOAD_WRITE_INPUT, *PFSCTL_OFFLOAD_WRITE_INPUT; + +typedef struct _FSCTL_OFFLOAD_WRITE_OUTPUT { + DWORD Size; + DWORD Flags; + DWORDLONG LengthWritten; +} FSCTL_OFFLOAD_WRITE_OUTPUT, *PFSCTL_OFFLOAD_WRITE_OUTPUT; + + + + + + + +typedef struct _SET_PURGE_FAILURE_MODE_INPUT { + DWORD Flags; +} SET_PURGE_FAILURE_MODE_INPUT, *PSET_PURGE_FAILURE_MODE_INPUT; +# 15450 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _REPAIR_COPIES_INPUT { + + DWORD Size; + + DWORD Flags; + + LARGE_INTEGER FileOffset; + + DWORD Length; + + DWORD SourceCopy; + + DWORD NumberOfRepairCopies; + + DWORD RepairCopies[1]; + +} REPAIR_COPIES_INPUT, *PREPAIR_COPIES_INPUT; + +typedef struct _REPAIR_COPIES_OUTPUT { + + DWORD Size; + + DWORD Status; + + LARGE_INTEGER ResumeFileOffset; + +} REPAIR_COPIES_OUTPUT, *PREPAIR_COPIES_OUTPUT; +# 15503 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FILE_REGION_INFO { + LONGLONG FileOffset; + LONGLONG Length; + DWORD Usage; + DWORD Reserved; +} FILE_REGION_INFO, *PFILE_REGION_INFO; + +typedef struct _FILE_REGION_OUTPUT { + DWORD Flags; + DWORD TotalRegionEntryCount; + DWORD RegionEntryCount; + DWORD Reserved; + FILE_REGION_INFO Region[1]; +} FILE_REGION_OUTPUT, *PFILE_REGION_OUTPUT; + + + + + + +typedef struct _FILE_REGION_INPUT { + + LONGLONG FileOffset; + LONGLONG Length; + DWORD DesiredUsage; + +} FILE_REGION_INPUT, *PFILE_REGION_INPUT; +# 15548 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _WRITE_USN_REASON_INPUT { + + DWORD Flags; + DWORD UsnReasonToWrite; + +} WRITE_USN_REASON_INPUT, *PWRITE_USN_REASON_INPUT; +# 15589 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _FILE_STORAGE_TIER_MEDIA_TYPE { + + FileStorageTierMediaTypeUnspecified = 0, + FileStorageTierMediaTypeDisk = 1, + FileStorageTierMediaTypeSsd = 2, + FileStorageTierMediaTypeScm = 4, + FileStorageTierMediaTypeMax + +} FILE_STORAGE_TIER_MEDIA_TYPE, *PFILE_STORAGE_TIER_MEDIA_TYPE; + +typedef enum _FILE_STORAGE_TIER_CLASS { + + FileStorageTierClassUnspecified = 0, + FileStorageTierClassCapacity, + FileStorageTierClassPerformance, + FileStorageTierClassMax + +} FILE_STORAGE_TIER_CLASS, *PFILE_STORAGE_TIER_CLASS; + +typedef struct _FILE_STORAGE_TIER { + + + + + + GUID Id; + + + + + + WCHAR Name[(256)]; + + + + + + WCHAR Description[(256)]; + + + + + + DWORDLONG Flags; + + + + + + DWORDLONG ProvisionedCapacity; + + + + + + FILE_STORAGE_TIER_MEDIA_TYPE MediaType; + + + + + + FILE_STORAGE_TIER_CLASS Class; + +} FILE_STORAGE_TIER, *PFILE_STORAGE_TIER; +# 15669 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FSCTL_QUERY_STORAGE_CLASSES_OUTPUT { + + + + + + + DWORD Version; + + + + + + + DWORD Size; + + + + + + DWORD Flags; + + + + + + DWORD TotalNumberOfTiers; + + + + + + DWORD NumberOfTiersReturned; + + + + + + FILE_STORAGE_TIER Tiers[1]; + +} FSCTL_QUERY_STORAGE_CLASSES_OUTPUT, *PFSCTL_QUERY_STORAGE_CLASSES_OUTPUT; +# 15724 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STREAM_INFORMATION_ENTRY { + + + + + DWORD Version; + + + + + DWORD Flags; + + + + + + union _StreamInformation { + + + + + + struct _DesiredStorageClass { + + + + + + FILE_STORAGE_TIER_CLASS Class; + + + + + + DWORD Flags; + + } DesiredStorageClass; + + + struct _DataStream { + + + + + + WORD Length; + + + + + + WORD Flags; + + + + + + DWORD Reserved; + + + + + + DWORDLONG Vdl; + + } DataStream; + + struct _Reparse { + + + + + + WORD Length; + + + + + + WORD Flags; + + + + + + DWORD ReparseDataSize; + + + + + + DWORD ReparseDataOffset; + + } Reparse; + + struct _Ea { + + + + + + WORD Length; + + + + + + WORD Flags; + + + + + + DWORD EaSize; + + + + + + DWORD EaInformationOffset; + + } Ea; + + + } StreamInformation; + +} STREAM_INFORMATION_ENTRY, *PSTREAM_INFORMATION_ENTRY; +# 15861 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FSCTL_QUERY_REGION_INFO_INPUT { + + DWORD Version; + DWORD Size; + + DWORD Flags; + + DWORD NumberOfTierIds; + GUID TierIds[1]; + +} FSCTL_QUERY_REGION_INFO_INPUT, *PFSCTL_QUERY_REGION_INFO_INPUT; + + + + + + + +typedef struct _FILE_STORAGE_TIER_REGION { + + GUID TierId; + + DWORDLONG Offset; + DWORDLONG Length; + +} FILE_STORAGE_TIER_REGION, *PFILE_STORAGE_TIER_REGION; +# 15895 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FSCTL_QUERY_REGION_INFO_OUTPUT { + + DWORD Version; + DWORD Size; + + DWORD Flags; + DWORD Reserved; + + DWORDLONG Alignment; + + DWORD TotalNumberOfRegions; + DWORD NumberOfRegionsReturned; + + FILE_STORAGE_TIER_REGION Regions[1]; + +} FSCTL_QUERY_REGION_INFO_OUTPUT, *PFSCTL_QUERY_REGION_INFO_OUTPUT; + + + + + + + +typedef struct _FILE_DESIRED_STORAGE_CLASS_INFORMATION { + + + + + + FILE_STORAGE_TIER_CLASS Class; + + + + + + DWORD Flags; + +} FILE_DESIRED_STORAGE_CLASS_INFORMATION, *PFILE_DESIRED_STORAGE_CLASS_INFORMATION; +# 15947 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DUPLICATE_EXTENTS_DATA { + HANDLE FileHandle; + LARGE_INTEGER SourceFileOffset; + LARGE_INTEGER TargetFileOffset; + LARGE_INTEGER ByteCount; +} DUPLICATE_EXTENTS_DATA, *PDUPLICATE_EXTENTS_DATA; + + + + + + + +typedef struct _DUPLICATE_EXTENTS_DATA32 { + UINT32 FileHandle; + LARGE_INTEGER SourceFileOffset; + LARGE_INTEGER TargetFileOffset; + LARGE_INTEGER ByteCount; +} DUPLICATE_EXTENTS_DATA32, *PDUPLICATE_EXTENTS_DATA32; +# 15982 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DUPLICATE_EXTENTS_DATA_EX { + SIZE_T Size; + HANDLE FileHandle; + LARGE_INTEGER SourceFileOffset; + LARGE_INTEGER TargetFileOffset; + LARGE_INTEGER ByteCount; + DWORD Flags; +} DUPLICATE_EXTENTS_DATA_EX, *PDUPLICATE_EXTENTS_DATA_EX; + + + + + + + +typedef struct _DUPLICATE_EXTENTS_DATA_EX32 { + DWORD32 Size; + DWORD32 FileHandle; + LARGE_INTEGER SourceFileOffset; + LARGE_INTEGER TargetFileOffset; + LARGE_INTEGER ByteCount; + DWORD Flags; +} DUPLICATE_EXTENTS_DATA_EX32, *PDUPLICATE_EXTENTS_DATA_EX32; +# 16016 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _DUPLICATE_EXTENTS_STATE { + + FileSnapStateInactive = 0, + FileSnapStateSource, + FileSnapStateTarget, + +} DUPLICATE_EXTENTS_STATE, *PDUPLICATE_EXTENTS_STATE; + +typedef struct _ASYNC_DUPLICATE_EXTENTS_STATUS { + + DWORD Version; + + DUPLICATE_EXTENTS_STATE State; + + DWORDLONG SourceFileOffset; + DWORDLONG TargetFileOffset; + DWORDLONG ByteCount; + + DWORDLONG BytesDuplicated; + +} ASYNC_DUPLICATE_EXTENTS_STATUS, *PASYNC_DUPLICATE_EXTENTS_STATUS; +# 16051 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _REFS_SMR_VOLUME_GC_STATE { + + SmrGcStateInactive = 0, + SmrGcStatePaused = 1, + SmrGcStateActive = 2, + SmrGcStateActiveFullSpeed = 3, + +} REFS_SMR_VOLUME_GC_STATE, *PREFS_SMR_VOLUME_GC_STATE; + +typedef struct _REFS_SMR_VOLUME_INFO_OUTPUT { + + DWORD Version; + DWORD Flags; + + LARGE_INTEGER SizeOfRandomlyWritableTier; + LARGE_INTEGER FreeSpaceInRandomlyWritableTier; + LARGE_INTEGER SizeofSMRTier; + LARGE_INTEGER FreeSpaceInSMRTier; + LARGE_INTEGER UsableFreeSpaceInSMRTier; + + REFS_SMR_VOLUME_GC_STATE VolumeGcState; + DWORD VolumeGcLastStatus; + + + + + + DWORD CurrentGcBandFillPercentage; + + DWORDLONG Unused[6]; + +} REFS_SMR_VOLUME_INFO_OUTPUT, *PREFS_SMR_VOLUME_INFO_OUTPUT; + + + + + + + +typedef enum _REFS_SMR_VOLUME_GC_ACTION { + + SmrGcActionStart = 1, + SmrGcActionStartFullSpeed = 2, + SmrGcActionPause = 3, + SmrGcActionStop = 4, + +} REFS_SMR_VOLUME_GC_ACTION, *PREFS_SMR_VOLUME_GC_ACTION; + +typedef enum _REFS_SMR_VOLUME_GC_METHOD { + + SmrGcMethodCompaction = 1, + SmrGcMethodCompression = 2, + SmrGcMethodRotation = 3, + +} REFS_SMR_VOLUME_GC_METHOD, *PREFS_SMR_VOLUME_GC_METHOD; + +typedef struct _REFS_SMR_VOLUME_GC_PARAMETERS { + + DWORD Version; + DWORD Flags; + + REFS_SMR_VOLUME_GC_ACTION Action; + REFS_SMR_VOLUME_GC_METHOD Method; + + DWORD IoGranularity; + DWORD CompressionFormat; + + DWORDLONG Unused[8]; + +} REFS_SMR_VOLUME_GC_PARAMETERS, *PREFS_SMR_VOLUME_GC_PARAMETERS; +# 16133 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER { + + DWORD OptimalWriteSize; + DWORD StreamGranularitySize; + DWORD StreamIdMin; + DWORD StreamIdMax; + +} STREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER, *PSTREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER; +# 16149 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _STREAMS_ASSOCIATE_ID_INPUT_BUFFER { + + DWORD Flags; + DWORD StreamId; + +} STREAMS_ASSOCIATE_ID_INPUT_BUFFER, *PSTREAMS_ASSOCIATE_ID_INPUT_BUFFER; + + + + + +typedef struct _STREAMS_QUERY_ID_OUTPUT_BUFFER { + + DWORD StreamId; + +} STREAMS_QUERY_ID_OUTPUT_BUFFER, *PSTREAMS_QUERY_ID_OUTPUT_BUFFER; +# 16174 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _QUERY_BAD_RANGES_INPUT_RANGE { + + + + + + DWORDLONG StartOffset; + + + + + + DWORDLONG LengthInBytes; + +} QUERY_BAD_RANGES_INPUT_RANGE, *PQUERY_BAD_RANGES_INPUT_RANGE; + + + + + + + +typedef struct _QUERY_BAD_RANGES_INPUT { + + DWORD Flags; + + + + + + DWORD NumRanges; +# 16214 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + QUERY_BAD_RANGES_INPUT_RANGE Ranges[1]; + +} QUERY_BAD_RANGES_INPUT, *PQUERY_BAD_RANGES_INPUT; + +typedef struct _QUERY_BAD_RANGES_OUTPUT_RANGE { + + + + + + DWORD Flags; + + DWORD Reserved; + + + + + + DWORDLONG StartOffset; + + + + + + DWORDLONG LengthInBytes; + +} QUERY_BAD_RANGES_OUTPUT_RANGE, *PQUERY_BAD_RANGES_OUTPUT_RANGE; + + + + + +typedef struct _QUERY_BAD_RANGES_OUTPUT { + + DWORD Flags; + + + + + + + DWORD NumBadRanges; +# 16265 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORDLONG NextOffsetToLookUp; + + + + + + + QUERY_BAD_RANGES_OUTPUT_RANGE BadRanges[1]; + +} QUERY_BAD_RANGES_OUTPUT, *PQUERY_BAD_RANGES_OUTPUT; +# 16292 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT { + + DWORD Flags; +# 16305 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD AlignmentShift; +# 16315 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORDLONG FileOffsetToAlign; +# 16325 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + DWORD FallbackAlignmentShift; + + +} SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT, *PSET_DAX_ALLOC_ALIGNMENT_HINT_INPUT; +# 16357 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _VIRTUAL_STORAGE_BEHAVIOR_CODE { + + VirtualStorageBehaviorUndefined = 0, + VirtualStorageBehaviorCacheWriteThrough = 1, + VirtualStorageBehaviorCacheWriteBack = 2, + VirtualStorageBehaviorStopIoProcessing = 3, + VirtualStorageBehaviorRestartIoProcessing = 4 + +} VIRTUAL_STORAGE_BEHAVIOR_CODE, *PVIRTUAL_STORAGE_BEHAVIOR_CODE; + +typedef struct _VIRTUAL_STORAGE_SET_BEHAVIOR_INPUT { + + DWORD Size; + VIRTUAL_STORAGE_BEHAVIOR_CODE BehaviorCode; + +} VIRTUAL_STORAGE_SET_BEHAVIOR_INPUT, *PVIRTUAL_STORAGE_SET_BEHAVIOR_INPUT; + + + + + +typedef struct _ENCRYPTION_KEY_CTRL_INPUT { + + DWORD HeaderSize; + + DWORD StructureSize; + + WORD KeyOffset; + + + WORD KeySize; + + + DWORD DplLock; + + DWORDLONG DplUserId; + + DWORDLONG DplCredentialId; + +} ENCRYPTION_KEY_CTRL_INPUT, *PENCRYPTION_KEY_CTRL_INPUT; +# 16412 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _WOF_EXTERNAL_INFO { + DWORD Version; + DWORD Provider; +} WOF_EXTERNAL_INFO, *PWOF_EXTERNAL_INFO; + +typedef struct _WOF_EXTERNAL_FILE_ID { + FILE_ID_128 FileId; +} WOF_EXTERNAL_FILE_ID, *PWOF_EXTERNAL_FILE_ID; + +typedef struct _WOF_VERSION_INFO { + DWORD WofVersion; +} WOF_VERSION_INFO, *PWOF_VERSION_INFO; +# 16438 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _WIM_PROVIDER_EXTERNAL_INFO { + DWORD Version; + DWORD Flags; + LARGE_INTEGER DataSourceId; + BYTE ResourceHash[20]; +} WIM_PROVIDER_EXTERNAL_INFO, *PWIM_PROVIDER_EXTERNAL_INFO; +# 16458 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _WIM_PROVIDER_ADD_OVERLAY_INPUT { + DWORD WimType; + DWORD WimIndex; + DWORD WimFileNameOffset; + DWORD WimFileNameLength; +} WIM_PROVIDER_ADD_OVERLAY_INPUT, *PWIM_PROVIDER_ADD_OVERLAY_INPUT; + +typedef struct _WIM_PROVIDER_UPDATE_OVERLAY_INPUT { + LARGE_INTEGER DataSourceId; + DWORD WimFileNameOffset; + DWORD WimFileNameLength; +} WIM_PROVIDER_UPDATE_OVERLAY_INPUT, *PWIM_PROVIDER_UPDATE_OVERLAY_INPUT; + +typedef struct _WIM_PROVIDER_REMOVE_OVERLAY_INPUT { + LARGE_INTEGER DataSourceId; +} WIM_PROVIDER_REMOVE_OVERLAY_INPUT, *PWIM_PROVIDER_REMOVE_OVERLAY_INPUT; + +typedef struct _WIM_PROVIDER_SUSPEND_OVERLAY_INPUT { + LARGE_INTEGER DataSourceId; +} WIM_PROVIDER_SUSPEND_OVERLAY_INPUT, *PWIM_PROVIDER_SUSPEND_OVERLAY_INPUT; + +typedef struct _WIM_PROVIDER_OVERLAY_ENTRY { + DWORD NextEntryOffset; + LARGE_INTEGER DataSourceId; + GUID WimGuid; + DWORD WimFileNameOffset; + DWORD WimType; + DWORD WimIndex; + DWORD Flags; +} WIM_PROVIDER_OVERLAY_ENTRY, *PWIM_PROVIDER_OVERLAY_ENTRY; +# 16510 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _FILE_PROVIDER_EXTERNAL_INFO_V0 { + DWORD Version; + DWORD Algorithm; +} FILE_PROVIDER_EXTERNAL_INFO_V0, *PFILE_PROVIDER_EXTERNAL_INFO_V0; + +typedef struct _FILE_PROVIDER_EXTERNAL_INFO_V1 { + DWORD Version; + DWORD Algorithm; + DWORD Flags; +} FILE_PROVIDER_EXTERNAL_INFO_V1, *PFILE_PROVIDER_EXTERNAL_INFO_V1; + +typedef FILE_PROVIDER_EXTERNAL_INFO_V1 FILE_PROVIDER_EXTERNAL_INFO; +typedef PFILE_PROVIDER_EXTERNAL_INFO_V1 PFILE_PROVIDER_EXTERNAL_INFO; + + + + + +typedef struct _CONTAINER_VOLUME_STATE { + DWORD Flags; +} CONTAINER_VOLUME_STATE, *PCONTAINER_VOLUME_STATE; + + + +typedef struct _CONTAINER_ROOT_INFO_INPUT { + DWORD Flags; +} CONTAINER_ROOT_INFO_INPUT, *PCONTAINER_ROOT_INFO_INPUT; + +typedef struct _CONTAINER_ROOT_INFO_OUTPUT { + WORD ContainerRootIdLength; + BYTE ContainerRootId[1]; +} CONTAINER_ROOT_INFO_OUTPUT, *PCONTAINER_ROOT_INFO_OUTPUT; +# 16561 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _VIRTUALIZATION_INSTANCE_INFO_INPUT { + DWORD NumberOfWorkerThreads; + DWORD Flags; +} VIRTUALIZATION_INSTANCE_INFO_INPUT, *PVIRTUALIZATION_INSTANCE_INFO_INPUT; + + + +typedef struct _VIRTUALIZATION_INSTANCE_INFO_INPUT_EX { + WORD HeaderSize; + DWORD Flags; + DWORD NotificationInfoSize; + WORD NotificationInfoOffset; + WORD ProviderMajorVersion; +} VIRTUALIZATION_INSTANCE_INFO_INPUT_EX, *PVIRTUALIZATION_INSTANCE_INFO_INPUT_EX; + +typedef struct _VIRTUALIZATION_INSTANCE_INFO_OUTPUT { + GUID VirtualizationInstanceID; +} VIRTUALIZATION_INSTANCE_INFO_OUTPUT, *PVIRTUALIZATION_INSTANCE_INFO_OUTPUT; + + + + + +typedef struct _GET_FILTER_FILE_IDENTIFIER_INPUT { + WORD AltitudeLength; + WCHAR Altitude[1]; +} GET_FILTER_FILE_IDENTIFIER_INPUT, *PGET_FILTER_FILE_IDENTIFIER_INPUT; + +typedef struct _GET_FILTER_FILE_IDENTIFIER_OUTPUT { + WORD FilterFileIdentifierLength; + BYTE FilterFileIdentifier[1]; +} GET_FILTER_FILE_IDENTIFIER_OUTPUT, *PGET_FILTER_FILE_IDENTIFIER_OUTPUT; + + + + + + + + +#pragma warning(push) +#pragma warning(disable: 4201) +# 16615 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef enum _FS_BPIO_OPERATIONS { +# 16643 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + FS_BPIO_OP_ENABLE = 1, +# 16662 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + FS_BPIO_OP_DISABLE = 2, +# 16672 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + FS_BPIO_OP_QUERY = 3, +# 16690 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + FS_BPIO_OP_VOLUME_STACK_PAUSE = 4, +# 16704 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + FS_BPIO_OP_VOLUME_STACK_RESUME = 5, +# 16718 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + FS_BPIO_OP_STREAM_PAUSE = 6, +# 16730 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + FS_BPIO_OP_STREAM_RESUME = 7, + + + + + + + FS_BPIO_OP_GET_INFO = 8, + + + + + + FS_BPIO_OP_MAX_OPERATION + +} FS_BPIO_OPERATIONS; + + + + + +typedef enum _FS_BPIO_INFLAGS { + + FSBPIO_INFL_None = 0, + + + + + + + + FSBPIO_INFL_SKIP_STORAGE_STACK_QUERY = 1, + +} FS_BPIO_INFLAGS; + + + + + + +typedef struct _FS_BPIO_INPUT { + + + + + + FS_BPIO_OPERATIONS Operation; + + + + + + FS_BPIO_INFLAGS InFlags; + + + + + + DWORDLONG Reserved1; + DWORDLONG Reserved2; + +} FS_BPIO_INPUT, *PFS_BPIO_INPUT; + + + + + +typedef enum _FS_BPIO_OUTFLAGS { + + FSBPIO_OUTFL_None = 0, + + + + + + FSBPIO_OUTFL_VOLUME_STACK_BYPASS_PAUSED = 0x00000001, + + + + + + FSBPIO_OUTFL_STREAM_BYPASS_PAUSED = 0x00000002, + + + + + + + + FSBPIO_OUTFL_FILTER_ATTACH_BLOCKED = 0x00000004, + + + + + + + FSBPIO_OUTFL_COMPATIBLE_STORAGE_DRIVER = 0x00000008, + +} FS_BPIO_OUTFLAGS; + + + + + + + +typedef struct _FS_BPIO_RESULTS { + + + + + + + + DWORD OpStatus; +# 16856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + WORD FailingDriverNameLen; + WCHAR FailingDriverName[32]; +# 16870 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 + WORD FailureReasonLen; + WCHAR FailureReason[128]; + +} FS_BPIO_RESULTS, *PFS_BPIO_RESULTS; + + + + + + +typedef struct _FS_BPIO_INFO { + + + + + + DWORD ActiveBypassIoCount; + + + + + + WORD StorageDriverNameLen; + WCHAR StorageDriverName[32]; + +} FS_BPIO_INFO, *PFS_BPIO_INFO; + + + + + +typedef struct _FS_BPIO_OUTPUT { + + + + + + + FS_BPIO_OPERATIONS Operation; + + + + + + FS_BPIO_OUTFLAGS OutFlags; + + + + + + DWORDLONG Reserved1; + DWORDLONG Reserved2; + + + + + + union { + FS_BPIO_RESULTS Enable; + FS_BPIO_RESULTS Query; + FS_BPIO_RESULTS VolumeStackResume; + FS_BPIO_RESULTS StreamResume; + FS_BPIO_INFO GetInfo; + }; + +} FS_BPIO_OUTPUT, *PFS_BPIO_OUTPUT; +# 16950 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma warning(pop) +# 17028 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _SMB_SHARE_FLUSH_AND_PURGE_INPUT { + + WORD Version; +} SMB_SHARE_FLUSH_AND_PURGE_INPUT, *PSMB_SHARE_FLUSH_AND_PURGE_INPUT; +typedef struct _SMB_SHARE_FLUSH_AND_PURGE_INPUT const *PCSMB_SHARE_FLUSH_AND_PURGE_INPUT; + +typedef struct _SMB_SHARE_FLUSH_AND_PURGE_OUTPUT { + + DWORD cEntriesPurged; +} SMB_SHARE_FLUSH_AND_PURGE_OUTPUT, *PSMB_SHARE_FLUSH_AND_PURGE_OUTPUT; +typedef struct _SMB_SHARE_FLUSH_AND_PURGE_OUTPUT const *PCSMB_SHARE_FLUSH_AND_PURGE_OUTPUT; +# 17064 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _DISK_EXTENT { + + + + + + DWORD DiskNumber; + + + + + + + LARGE_INTEGER StartingOffset; + LARGE_INTEGER ExtentLength; + +} DISK_EXTENT, *PDISK_EXTENT; + +typedef struct _VOLUME_DISK_EXTENTS { + + + + + + DWORD NumberOfDiskExtents; + DISK_EXTENT Extents[1]; + +} VOLUME_DISK_EXTENTS, *PVOLUME_DISK_EXTENTS; +# 17152 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _VOLUME_GET_GPT_ATTRIBUTES_INFORMATION { + + + + + + DWORDLONG GptAttributes; + +} VOLUME_GET_GPT_ATTRIBUTES_INFORMATION, *PVOLUME_GET_GPT_ATTRIBUTES_INFORMATION; +# 17175 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +struct _IO_IRP_EXT_TRACK_OFFSET_HEADER; + +typedef void +(*PIO_IRP_EXT_PROCESS_TRACKED_OFFSET_CALLBACK)( + struct _IO_IRP_EXT_TRACK_OFFSET_HEADER *SourceContext, + struct _IO_IRP_EXT_TRACK_OFFSET_HEADER *TargetContext, + LONGLONG RelativeOffset + ); +# 17193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +typedef struct _IO_IRP_EXT_TRACK_OFFSET_HEADER { + + WORD Validation; + + + + WORD Flags; + + PIO_IRP_EXT_PROCESS_TRACKED_OFFSET_CALLBACK TrackedOffsetCallback; + +} IO_IRP_EXT_TRACK_OFFSET_HEADER, *PIO_IRP_EXT_TRACK_OFFSET_HEADER; +# 17219 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 +#pragma warning(pop) +# 32 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winsmcrd.h" 1 3 +# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winsmcrd.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + + + +typedef DWORD ULONG; +typedef WORD UWORD; +typedef BYTE UCHAR; +# 59 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winsmcrd.h" 3 +extern const GUID GUID_DEVINTERFACE_SMARTCARD_READER; +# 270 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winsmcrd.h" 3 +typedef struct _SCARD_IO_REQUEST{ + DWORD dwProtocol; + DWORD cbPciLength; +} SCARD_IO_REQUEST, *PSCARD_IO_REQUEST, *LPSCARD_IO_REQUEST; +typedef const SCARD_IO_REQUEST *LPCSCARD_IO_REQUEST; + + + + + + +typedef struct _SCARD_T0_COMMAND { + BYTE + bCla, + bIns, + bP1, + bP2, + bP3; +} SCARD_T0_COMMAND, *LPSCARD_T0_COMMAND; + +typedef struct _SCARD_T0_REQUEST { + SCARD_IO_REQUEST ioRequest; + BYTE + bSw1, + bSw2; +#pragma warning(push) +#pragma warning(disable: 4201) + union + { + SCARD_T0_COMMAND CmdBytes; + BYTE rgbHeader[5]; + } ; +#pragma warning(pop) +} SCARD_T0_REQUEST; + +typedef SCARD_T0_REQUEST *PSCARD_T0_REQUEST, *LPSCARD_T0_REQUEST; + + + + + + +typedef struct _SCARD_T1_REQUEST { + SCARD_IO_REQUEST ioRequest; +} SCARD_T1_REQUEST; +typedef SCARD_T1_REQUEST *PSCARD_T1_REQUEST, *LPSCARD_T1_REQUEST; +# 352 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winsmcrd.h" 3 +#pragma warning(pop) +# 33 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 2 3 +# 43 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + + + + + + + +typedef const BYTE *LPCBYTE; + + + +typedef const void *LPCVOID; +# 71 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +__declspec(dllimport) extern const SCARD_IO_REQUEST + g_rgSCardT0Pci, + g_rgSCardT1Pci, + g_rgSCardRawPci; +# 89 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +typedef ULONG_PTR SCARDCONTEXT; +typedef SCARDCONTEXT *PSCARDCONTEXT, *LPSCARDCONTEXT; + +typedef ULONG_PTR SCARDHANDLE; +typedef SCARDHANDLE *PSCARDHANDLE, *LPSCARDHANDLE; +# 111 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +SCardEstablishContext( + DWORD dwScope, + LPCVOID pvReserved1, + LPCVOID pvReserved2, + LPSCARDCONTEXT phContext); + +extern LONG __stdcall +SCardReleaseContext( + SCARDCONTEXT hContext); + +extern LONG __stdcall +SCardIsValidContext( + SCARDCONTEXT hContext); +# 149 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +SCardListReaderGroupsA( + SCARDCONTEXT hContext, + LPSTR mszGroups, + LPDWORD pcchGroups); +extern LONG __stdcall +SCardListReaderGroupsW( + SCARDCONTEXT hContext, + LPWSTR mszGroups, + LPDWORD pcchGroups); + + + + + + + +extern LONG __stdcall +SCardListReadersA( + SCARDCONTEXT hContext, + LPCSTR mszGroups, + + + LPSTR mszReaders, + LPDWORD pcchReaders); + +extern LONG __stdcall +SCardListReadersW( + SCARDCONTEXT hContext, + LPCWSTR mszGroups, + + + LPWSTR mszReaders, + LPDWORD pcchReaders); + + + + + + + +extern LONG __stdcall +SCardListCardsA( + SCARDCONTEXT hContext, + LPCBYTE pbAtr, + LPCGUID rgquidInterfaces, + DWORD cguidInterfaceCount, + + + CHAR *mszCards, + LPDWORD pcchCards); + +extern LONG __stdcall +SCardListCardsW( + SCARDCONTEXT hContext, + LPCBYTE pbAtr, + LPCGUID rgquidInterfaces, + DWORD cguidInterfaceCount, + + + WCHAR *mszCards, + LPDWORD pcchCards); +# 232 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +SCardListInterfacesA( + SCARDCONTEXT hContext, + LPCSTR szCard, + LPGUID pguidInterfaces, + LPDWORD pcguidInterfaces); +extern LONG __stdcall +SCardListInterfacesW( + SCARDCONTEXT hContext, + LPCWSTR szCard, + LPGUID pguidInterfaces, + LPDWORD pcguidInterfaces); + + + + + + +extern LONG __stdcall +SCardGetProviderIdA( + SCARDCONTEXT hContext, + LPCSTR szCard, + LPGUID pguidProviderId); +extern LONG __stdcall +SCardGetProviderIdW( + SCARDCONTEXT hContext, + LPCWSTR szCard, + LPGUID pguidProviderId); +# 271 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +SCardGetCardTypeProviderNameA( + SCARDCONTEXT hContext, + LPCSTR szCardName, + DWORD dwProviderId, + + + CHAR *szProvider, + LPDWORD pcchProvider); + +extern LONG __stdcall +SCardGetCardTypeProviderNameW( + SCARDCONTEXT hContext, + LPCWSTR szCardName, + DWORD dwProviderId, + + + WCHAR *szProvider, + LPDWORD pcchProvider); +# 304 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +SCardIntroduceReaderGroupA( + SCARDCONTEXT hContext, + LPCSTR szGroupName); +extern LONG __stdcall +SCardIntroduceReaderGroupW( + SCARDCONTEXT hContext, + LPCWSTR szGroupName); + + + + + + +extern LONG __stdcall +SCardForgetReaderGroupA( + SCARDCONTEXT hContext, + LPCSTR szGroupName); +extern LONG __stdcall +SCardForgetReaderGroupW( + SCARDCONTEXT hContext, + LPCWSTR szGroupName); + + + + + + +extern LONG __stdcall +SCardIntroduceReaderA( + SCARDCONTEXT hContext, + LPCSTR szReaderName, + LPCSTR szDeviceName); +extern LONG __stdcall +SCardIntroduceReaderW( + SCARDCONTEXT hContext, + LPCWSTR szReaderName, + LPCWSTR szDeviceName); + + + + + + +extern LONG __stdcall +SCardForgetReaderA( + SCARDCONTEXT hContext, + LPCSTR szReaderName); +extern LONG __stdcall +SCardForgetReaderW( + SCARDCONTEXT hContext, + LPCWSTR szReaderName); + + + + + + +extern LONG __stdcall +SCardAddReaderToGroupA( + SCARDCONTEXT hContext, + LPCSTR szReaderName, + LPCSTR szGroupName); +extern LONG __stdcall +SCardAddReaderToGroupW( + SCARDCONTEXT hContext, + LPCWSTR szReaderName, + LPCWSTR szGroupName); + + + + + + +extern LONG __stdcall +SCardRemoveReaderFromGroupA( + SCARDCONTEXT hContext, + LPCSTR szReaderName, + LPCSTR szGroupName); +extern LONG __stdcall +SCardRemoveReaderFromGroupW( + SCARDCONTEXT hContext, + LPCWSTR szReaderName, + LPCWSTR szGroupName); + + + + + + +extern LONG __stdcall +SCardIntroduceCardTypeA( + SCARDCONTEXT hContext, + LPCSTR szCardName, + LPCGUID pguidPrimaryProvider, + LPCGUID rgguidInterfaces, + DWORD dwInterfaceCount, + LPCBYTE pbAtr, + LPCBYTE pbAtrMask, + DWORD cbAtrLen); +extern LONG __stdcall +SCardIntroduceCardTypeW( + SCARDCONTEXT hContext, + LPCWSTR szCardName, + LPCGUID pguidPrimaryProvider, + LPCGUID rgguidInterfaces, + DWORD dwInterfaceCount, + LPCBYTE pbAtr, + LPCBYTE pbAtrMask, + DWORD cbAtrLen); +# 438 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +SCardSetCardTypeProviderNameA( + SCARDCONTEXT hContext, + LPCSTR szCardName, + DWORD dwProviderId, + LPCSTR szProvider); +extern LONG __stdcall +SCardSetCardTypeProviderNameW( + SCARDCONTEXT hContext, + LPCWSTR szCardName, + DWORD dwProviderId, + LPCWSTR szProvider); +# 459 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +SCardForgetCardTypeA( + SCARDCONTEXT hContext, + LPCSTR szCardName); +extern LONG __stdcall +SCardForgetCardTypeW( + SCARDCONTEXT hContext, + LPCWSTR szCardName); +# 483 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +SCardFreeMemory( + SCARDCONTEXT hContext, + LPCVOID pvMem); + + +extern HANDLE __stdcall +SCardAccessStartedEvent(void); + +extern void __stdcall +SCardReleaseStartedEvent(void); +# 504 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +typedef struct { + LPCSTR szReader; + LPVOID pvUserData; + DWORD dwCurrentState; + DWORD dwEventState; + DWORD cbAtr; + BYTE rgbAtr[36]; +} SCARD_READERSTATEA, *PSCARD_READERSTATEA, *LPSCARD_READERSTATEA; +typedef struct { + LPCWSTR szReader; + LPVOID pvUserData; + DWORD dwCurrentState; + DWORD dwEventState; + DWORD cbAtr; + BYTE rgbAtr[36]; +} SCARD_READERSTATEW, *PSCARD_READERSTATEW, *LPSCARD_READERSTATEW; + + + + + +typedef SCARD_READERSTATEA SCARD_READERSTATE; +typedef PSCARD_READERSTATEA PSCARD_READERSTATE; +typedef LPSCARD_READERSTATEA LPSCARD_READERSTATE; +# 600 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +SCardLocateCardsA( + SCARDCONTEXT hContext, + LPCSTR mszCards, + LPSCARD_READERSTATEA rgReaderStates, + DWORD cReaders); +extern LONG __stdcall +SCardLocateCardsW( + SCARDCONTEXT hContext, + LPCWSTR mszCards, + LPSCARD_READERSTATEW rgReaderStates, + DWORD cReaders); + + + + + + + +typedef struct _SCARD_ATRMASK { + DWORD cbAtr; + BYTE rgbAtr[36]; + BYTE rgbMask[36]; +} SCARD_ATRMASK, *PSCARD_ATRMASK, *LPSCARD_ATRMASK; + + +extern LONG __stdcall +SCardLocateCardsByATRA( + SCARDCONTEXT hContext, + LPSCARD_ATRMASK rgAtrMasks, + DWORD cAtrs, + LPSCARD_READERSTATEA rgReaderStates, + DWORD cReaders); +extern LONG __stdcall +SCardLocateCardsByATRW( + SCARDCONTEXT hContext, + LPSCARD_ATRMASK rgAtrMasks, + DWORD cAtrs, + LPSCARD_READERSTATEW rgReaderStates, + DWORD cReaders); + + + + + + + +extern LONG __stdcall +SCardGetStatusChangeA( + SCARDCONTEXT hContext, + DWORD dwTimeout, + LPSCARD_READERSTATEA rgReaderStates, + DWORD cReaders); +extern LONG __stdcall +SCardGetStatusChangeW( + SCARDCONTEXT hContext, + DWORD dwTimeout, + LPSCARD_READERSTATEW rgReaderStates, + DWORD cReaders); + + + + + + +extern LONG __stdcall +SCardCancel( + SCARDCONTEXT hContext); +# 691 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +SCardConnectA( + SCARDCONTEXT hContext, + LPCSTR szReader, + DWORD dwShareMode, + DWORD dwPreferredProtocols, + LPSCARDHANDLE phCard, + LPDWORD pdwActiveProtocol); +extern LONG __stdcall +SCardConnectW( + SCARDCONTEXT hContext, + LPCWSTR szReader, + DWORD dwShareMode, + DWORD dwPreferredProtocols, + LPSCARDHANDLE phCard, + LPDWORD pdwActiveProtocol); + + + + + + +extern LONG __stdcall +SCardReconnect( + SCARDHANDLE hCard, + DWORD dwShareMode, + DWORD dwPreferredProtocols, + DWORD dwInitialization, + LPDWORD pdwActiveProtocol); + +extern LONG __stdcall +SCardDisconnect( + SCARDHANDLE hCard, + DWORD dwDisposition); + +extern LONG __stdcall +SCardBeginTransaction( + SCARDHANDLE hCard); + +extern LONG __stdcall +SCardEndTransaction( + SCARDHANDLE hCard, + DWORD dwDisposition); + +extern LONG __stdcall +SCardCancelTransaction( + SCARDHANDLE hCard); + + + + + + +extern LONG __stdcall +SCardState( + SCARDHANDLE hCard, + LPDWORD pdwState, + LPDWORD pdwProtocol, + LPBYTE pbAtr, + LPDWORD pcbAtrLen); + + + + + +extern LONG __stdcall +SCardStatusA( + SCARDHANDLE hCard, + + + LPSTR mszReaderNames, + LPDWORD pcchReaderLen, + LPDWORD pdwState, + LPDWORD pdwProtocol, + + + LPBYTE pbAtr, + LPDWORD pcbAtrLen); +extern LONG __stdcall +SCardStatusW( + SCARDHANDLE hCard, + + + LPWSTR mszReaderNames, + LPDWORD pcchReaderLen, + LPDWORD pdwState, + LPDWORD pdwProtocol, + + + LPBYTE pbAtr, + LPDWORD pcbAtrLen); + + + + + + +extern LONG __stdcall +SCardTransmit( + SCARDHANDLE hCard, + LPCSCARD_IO_REQUEST pioSendPci, + LPCBYTE pbSendBuffer, + DWORD cbSendLength, + LPSCARD_IO_REQUEST pioRecvPci, + LPBYTE pbRecvBuffer, + LPDWORD pcbRecvLength); + + +extern LONG __stdcall +SCardGetTransmitCount( + SCARDHANDLE hCard, + LPDWORD pcTransmitCount); +# 815 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +SCardControl( + SCARDHANDLE hCard, + DWORD dwControlCode, + LPCVOID lpInBuffer, + DWORD cbInBufferSize, + LPVOID lpOutBuffer, + DWORD cbOutBufferSize, + LPDWORD lpBytesReturned); + +extern LONG __stdcall +SCardGetAttrib( + SCARDHANDLE hCard, + DWORD dwAttrId, + LPBYTE pbAttr, + LPDWORD pcbAttrLen); +# 845 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +SCardSetAttrib( + SCARDHANDLE hCard, + DWORD dwAttrId, + LPCBYTE pbAttr, + DWORD cbAttrLen); +# 884 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +typedef SCARDHANDLE (__stdcall *LPOCNCONNPROCA) ( SCARDCONTEXT, LPSTR, LPSTR, PVOID); +typedef SCARDHANDLE (__stdcall *LPOCNCONNPROCW) ( SCARDCONTEXT, LPWSTR, LPWSTR, PVOID); + + + + + +typedef BOOL (__stdcall *LPOCNCHKPROC) ( SCARDCONTEXT, SCARDHANDLE, PVOID); +typedef void (__stdcall *LPOCNDSCPROC) ( SCARDCONTEXT, SCARDHANDLE, PVOID); +# 904 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +typedef struct { + DWORD dwStructSize; + LPSTR lpstrGroupNames; + DWORD nMaxGroupNames; + + LPCGUID rgguidInterfaces; + DWORD cguidInterfaces; + LPSTR lpstrCardNames; + DWORD nMaxCardNames; + LPOCNCHKPROC lpfnCheck; + LPOCNCONNPROCA lpfnConnect; + LPOCNDSCPROC lpfnDisconnect; + LPVOID pvUserData; + DWORD dwShareMode; + DWORD dwPreferredProtocols; +} OPENCARD_SEARCH_CRITERIAA, *POPENCARD_SEARCH_CRITERIAA, *LPOPENCARD_SEARCH_CRITERIAA; +typedef struct { + DWORD dwStructSize; + LPWSTR lpstrGroupNames; + DWORD nMaxGroupNames; + + LPCGUID rgguidInterfaces; + DWORD cguidInterfaces; + LPWSTR lpstrCardNames; + DWORD nMaxCardNames; + LPOCNCHKPROC lpfnCheck; + LPOCNCONNPROCW lpfnConnect; + LPOCNDSCPROC lpfnDisconnect; + LPVOID pvUserData; + DWORD dwShareMode; + DWORD dwPreferredProtocols; +} OPENCARD_SEARCH_CRITERIAW, *POPENCARD_SEARCH_CRITERIAW, *LPOPENCARD_SEARCH_CRITERIAW; + + + + + +typedef OPENCARD_SEARCH_CRITERIAA OPENCARD_SEARCH_CRITERIA; +typedef POPENCARD_SEARCH_CRITERIAA POPENCARD_SEARCH_CRITERIA; +typedef LPOPENCARD_SEARCH_CRITERIAA LPOPENCARD_SEARCH_CRITERIA; + + + + + + + +typedef struct { + DWORD dwStructSize; + SCARDCONTEXT hSCardContext; + HWND hwndOwner; + DWORD dwFlags; + LPCSTR lpstrTitle; + LPCSTR lpstrSearchDesc; + HICON hIcon; + POPENCARD_SEARCH_CRITERIAA pOpenCardSearchCriteria; + LPOCNCONNPROCA lpfnConnect; + LPVOID pvUserData; + DWORD dwShareMode; + DWORD dwPreferredProtocols; + + LPSTR lpstrRdr; + DWORD nMaxRdr; + LPSTR lpstrCard; + DWORD nMaxCard; + DWORD dwActiveProtocol; + SCARDHANDLE hCardHandle; +} OPENCARDNAME_EXA, *POPENCARDNAME_EXA, *LPOPENCARDNAME_EXA; +typedef struct { + DWORD dwStructSize; + SCARDCONTEXT hSCardContext; + HWND hwndOwner; + DWORD dwFlags; + LPCWSTR lpstrTitle; + LPCWSTR lpstrSearchDesc; + HICON hIcon; + POPENCARD_SEARCH_CRITERIAW pOpenCardSearchCriteria; + LPOCNCONNPROCW lpfnConnect; + LPVOID pvUserData; + DWORD dwShareMode; + DWORD dwPreferredProtocols; + + LPWSTR lpstrRdr; + DWORD nMaxRdr; + LPWSTR lpstrCard; + DWORD nMaxCard; + DWORD dwActiveProtocol; + SCARDHANDLE hCardHandle; +} OPENCARDNAME_EXW, *POPENCARDNAME_EXW, *LPOPENCARDNAME_EXW; + + + + + +typedef OPENCARDNAME_EXA OPENCARDNAME_EX; +typedef POPENCARDNAME_EXA POPENCARDNAME_EX; +typedef LPOPENCARDNAME_EXA LPOPENCARDNAME_EX; +# 1084 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +typedef enum { + RSR_MATCH_TYPE_READER_AND_CONTAINER = 1, + RSR_MATCH_TYPE_SERIAL_NUMBER, + RSR_MATCH_TYPE_ALL_CARDS +} READER_SEL_REQUEST_MATCH_TYPE; + +typedef struct { + DWORD dwShareMode; + DWORD dwPreferredProtocols; + READER_SEL_REQUEST_MATCH_TYPE MatchType; +#pragma warning(push) +#pragma warning(disable: 4201) + union { + struct { + DWORD cbReaderNameOffset; + DWORD cchReaderNameLength; + DWORD cbContainerNameOffset; + DWORD cchContainerNameLength; + DWORD dwDesiredCardModuleVersion; + DWORD dwCspFlags; + } ReaderAndContainerParameter; + struct { + DWORD cbSerialNumberOffset; + DWORD cbSerialNumberLength; + DWORD dwDesiredCardModuleVersion; + } SerialNumberParameter; + } ; +#pragma warning(pop) +} READER_SEL_REQUEST, *PREADER_SEL_REQUEST; +# 1133 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +typedef struct { + DWORD cbReaderNameOffset; + DWORD cchReaderNameLength; + DWORD cbCardNameOffset; + DWORD cchCardNameLength; +} READER_SEL_RESPONSE, *PREADER_SEL_RESPONSE; + + + + + + +extern LONG __stdcall +SCardUIDlgSelectCardA( + LPOPENCARDNAME_EXA); +extern LONG __stdcall +SCardUIDlgSelectCardW( + LPOPENCARDNAME_EXW); +# 1163 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +typedef struct { + DWORD dwStructSize; + HWND hwndOwner; + SCARDCONTEXT hSCardContext; + LPSTR lpstrGroupNames; + DWORD nMaxGroupNames; + LPSTR lpstrCardNames; + DWORD nMaxCardNames; + LPCGUID rgguidInterfaces; + DWORD cguidInterfaces; + LPSTR lpstrRdr; + DWORD nMaxRdr; + LPSTR lpstrCard; + DWORD nMaxCard; + LPCSTR lpstrTitle; + DWORD dwFlags; + LPVOID pvUserData; + DWORD dwShareMode; + DWORD dwPreferredProtocols; + DWORD dwActiveProtocol; + LPOCNCONNPROCA lpfnConnect; + LPOCNCHKPROC lpfnCheck; + LPOCNDSCPROC lpfnDisconnect; + SCARDHANDLE hCardHandle; +} OPENCARDNAMEA, *POPENCARDNAMEA, *LPOPENCARDNAMEA; +typedef struct { + DWORD dwStructSize; + HWND hwndOwner; + SCARDCONTEXT hSCardContext; + LPWSTR lpstrGroupNames; + DWORD nMaxGroupNames; + LPWSTR lpstrCardNames; + DWORD nMaxCardNames; + LPCGUID rgguidInterfaces; + DWORD cguidInterfaces; + LPWSTR lpstrRdr; + DWORD nMaxRdr; + LPWSTR lpstrCard; + DWORD nMaxCard; + LPCWSTR lpstrTitle; + DWORD dwFlags; + LPVOID pvUserData; + DWORD dwShareMode; + DWORD dwPreferredProtocols; + DWORD dwActiveProtocol; + LPOCNCONNPROCW lpfnConnect; + LPOCNCHKPROC lpfnCheck; + LPOCNDSCPROC lpfnDisconnect; + SCARDHANDLE hCardHandle; +} OPENCARDNAMEW, *POPENCARDNAMEW, *LPOPENCARDNAMEW; + + + + + +typedef OPENCARDNAMEA OPENCARDNAME; +typedef POPENCARDNAMEA POPENCARDNAME; +typedef LPOPENCARDNAMEA LPOPENCARDNAME; +# 1231 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +GetOpenCardNameA( + LPOPENCARDNAMEA); +extern LONG __stdcall +GetOpenCardNameW( + LPOPENCARDNAMEW); + + + + + + +extern LONG __stdcall +SCardDlgExtendedError (void); + + + + + + + +extern LONG __stdcall +SCardReadCacheA( + SCARDCONTEXT hContext, + UUID *CardIdentifier, + DWORD FreshnessCounter, + LPSTR LookupName, + PBYTE Data, + DWORD *DataLen); +extern LONG __stdcall +SCardReadCacheW( + SCARDCONTEXT hContext, + UUID *CardIdentifier, + DWORD FreshnessCounter, + LPWSTR LookupName, + PBYTE Data, + DWORD *DataLen); + + + + + + +extern LONG __stdcall +SCardWriteCacheA( + SCARDCONTEXT hContext, + UUID *CardIdentifier, + DWORD FreshnessCounter, + LPSTR LookupName, + PBYTE Data, + DWORD DataLen); +extern LONG __stdcall +SCardWriteCacheW( + SCARDCONTEXT hContext, + UUID *CardIdentifier, + DWORD FreshnessCounter, + LPWSTR LookupName, + PBYTE Data, + DWORD DataLen); +# 1301 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +SCardGetReaderIconA( + SCARDCONTEXT hContext, + LPCSTR szReaderName, + + + LPBYTE pbIcon, + LPDWORD pcbIcon); + +extern LONG __stdcall +SCardGetReaderIconW( + SCARDCONTEXT hContext, + LPCWSTR szReaderName, + + + LPBYTE pbIcon, + LPDWORD pcbIcon); + + + + + + + +extern LONG __stdcall +SCardGetDeviceTypeIdA( + SCARDCONTEXT hContext, + LPCSTR szReaderName, + LPDWORD pdwDeviceTypeId); + +extern LONG __stdcall +SCardGetDeviceTypeIdW( + SCARDCONTEXT hContext, + LPCWSTR szReaderName, + LPDWORD pdwDeviceTypeId); + + + + + + + +extern LONG __stdcall +SCardGetReaderDeviceInstanceIdA( + SCARDCONTEXT hContext, + LPCSTR szReaderName, + + + LPSTR szDeviceInstanceId, + LPDWORD pcchDeviceInstanceId); + +extern LONG __stdcall +SCardGetReaderDeviceInstanceIdW( + SCARDCONTEXT hContext, + LPCWSTR szReaderName, + + + LPWSTR szDeviceInstanceId, + LPDWORD pcchDeviceInstanceId); + + + + + + + +extern LONG __stdcall +SCardListReadersWithDeviceInstanceIdA( + SCARDCONTEXT hContext, + LPCSTR szDeviceInstanceId, + + + LPSTR mszReaders, + LPDWORD pcchReaders); + +extern LONG __stdcall +SCardListReadersWithDeviceInstanceIdW( + SCARDCONTEXT hContext, + LPCWSTR szDeviceInstanceId, + + + LPWSTR mszReaders, + LPDWORD pcchReaders); +# 1403 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 +extern LONG __stdcall +SCardAudit( + SCARDCONTEXT hContext, + DWORD dwEvent); + + + + + + + +#pragma warning(pop) +# 213 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 1 3 +# 23 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 1 3 +# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +#pragma warning(push) +#pragma warning(disable: 4001) +#pragma warning(disable: 4201) +#pragma warning(disable: 4820) +# 56 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,8) +# 57 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 2 3 +# 96 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +struct _PSP; +typedef struct _PSP * HPROPSHEETPAGE; + + +struct _PROPSHEETPAGEA; +struct _PROPSHEETPAGEW; + + +typedef UINT (__stdcall *LPFNPSPCALLBACKA)(HWND hwnd, UINT uMsg, struct _PROPSHEETPAGEA *ppsp); +typedef UINT (__stdcall *LPFNPSPCALLBACKW)(HWND hwnd, UINT uMsg, struct _PROPSHEETPAGEW *ppsp); +# 140 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +typedef LPCDLGTEMPLATE PROPSHEETPAGE_RESOURCE; +# 196 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +typedef struct _PROPSHEETPAGEA_V1 +{ + DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCSTR pszIcon; } ; LPCSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKA pfnCallback; UINT *pcRefParent; +} PROPSHEETPAGEA_V1, *LPPROPSHEETPAGEA_V1; +typedef const PROPSHEETPAGEA_V1 *LPCPROPSHEETPAGEA_V1; + +typedef struct _PROPSHEETPAGEA_V2 +{ + DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCSTR pszIcon; } ; LPCSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKA pfnCallback; UINT *pcRefParent; + + LPCSTR pszHeaderTitle; + LPCSTR pszHeaderSubTitle; +} PROPSHEETPAGEA_V2, *LPPROPSHEETPAGEA_V2; +typedef const PROPSHEETPAGEA_V2 *LPCPROPSHEETPAGEA_V2; + +typedef struct _PROPSHEETPAGEA_V3 +{ + DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCSTR pszIcon; } ; LPCSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKA pfnCallback; UINT *pcRefParent; + + LPCSTR pszHeaderTitle; + LPCSTR pszHeaderSubTitle; + + HANDLE hActCtx; +} PROPSHEETPAGEA_V3, *LPPROPSHEETPAGEA_V3; +typedef const PROPSHEETPAGEA_V3 *LPCPROPSHEETPAGEA_V3; + + +typedef struct _PROPSHEETPAGEA +{ + DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCSTR pszIcon; } ; LPCSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKA pfnCallback; UINT *pcRefParent; + + LPCSTR pszHeaderTitle; + LPCSTR pszHeaderSubTitle; + + HANDLE hActCtx; + + union + { + HBITMAP hbmHeader; + LPCSTR pszbmHeader; + } ; + +} PROPSHEETPAGEA_V4, *LPPROPSHEETPAGEA_V4; +typedef const PROPSHEETPAGEA_V4 *LPCPROPSHEETPAGEA_V4; + + +typedef struct _PROPSHEETPAGEW_V1 +{ + DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCWSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCWSTR pszIcon; } ; LPCWSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKW pfnCallback; UINT *pcRefParent; +} PROPSHEETPAGEW_V1, *LPPROPSHEETPAGEW_V1; +typedef const PROPSHEETPAGEW_V1 *LPCPROPSHEETPAGEW_V1; + +typedef struct _PROPSHEETPAGEW_V2 +{ + DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCWSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCWSTR pszIcon; } ; LPCWSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKW pfnCallback; UINT *pcRefParent; + + LPCWSTR pszHeaderTitle; + LPCWSTR pszHeaderSubTitle; +} PROPSHEETPAGEW_V2, *LPPROPSHEETPAGEW_V2; +typedef const PROPSHEETPAGEW_V2 *LPCPROPSHEETPAGEW_V2; + +typedef struct _PROPSHEETPAGEW_V3 +{ + DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCWSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCWSTR pszIcon; } ; LPCWSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKW pfnCallback; UINT *pcRefParent; + + LPCWSTR pszHeaderTitle; + LPCWSTR pszHeaderSubTitle; + + HANDLE hActCtx; +} PROPSHEETPAGEW_V3, *LPPROPSHEETPAGEW_V3; +typedef const PROPSHEETPAGEW_V3 *LPCPROPSHEETPAGEW_V3; + + +typedef struct _PROPSHEETPAGEW +{ + DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCWSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCWSTR pszIcon; } ; LPCWSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKW pfnCallback; UINT *pcRefParent; + + LPCWSTR pszHeaderTitle; + LPCWSTR pszHeaderSubTitle; + + HANDLE hActCtx; + + union + { + HBITMAP hbmHeader; + LPCWSTR pszbmHeader; + } ; + +} PROPSHEETPAGEW_V4, *LPPROPSHEETPAGEW_V4; +typedef const PROPSHEETPAGEW_V4 *LPCPROPSHEETPAGEW_V4; +# 304 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +typedef PROPSHEETPAGEA_V4 PROPSHEETPAGEA_LATEST; +typedef PROPSHEETPAGEW_V4 PROPSHEETPAGEW_LATEST; +typedef LPPROPSHEETPAGEA_V4 LPPROPSHEETPAGEA_LATEST; +typedef LPPROPSHEETPAGEW_V4 LPPROPSHEETPAGEW_LATEST; +typedef LPCPROPSHEETPAGEA_V4 LPCPROPSHEETPAGEA_LATEST; +typedef LPCPROPSHEETPAGEW_V4 LPCPROPSHEETPAGEW_LATEST; +# 321 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +typedef PROPSHEETPAGEA_V4 PROPSHEETPAGEA; +typedef PROPSHEETPAGEW_V4 PROPSHEETPAGEW; +typedef LPPROPSHEETPAGEA_V4 LPPROPSHEETPAGEA; +typedef LPPROPSHEETPAGEW_V4 LPPROPSHEETPAGEW; +typedef LPCPROPSHEETPAGEA_V4 LPCPROPSHEETPAGEA; +typedef LPCPROPSHEETPAGEW_V4 LPCPROPSHEETPAGEW; +# 445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +typedef int (__stdcall *PFNPROPSHEETCALLBACK)(HWND, UINT, LPARAM); +# 471 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +typedef struct _PROPSHEETHEADERA_V1 +{ + DWORD dwSize; DWORD dwFlags; HWND hwndParent; HINSTANCE hInstance; union { HICON hIcon; LPCSTR pszIcon; } ; LPCSTR pszCaption; UINT nPages; union { UINT nStartPage; LPCSTR pStartPage; } ; union { LPCPROPSHEETPAGEA ppsp; HPROPSHEETPAGE *phpage; } ; PFNPROPSHEETCALLBACK pfnCallback; +} PROPSHEETHEADERA_V1, *LPPROPSHEETHEADERA_V1; +typedef const PROPSHEETHEADERA_V1 *LPCPROPSHEETHEADERA_V1; + +typedef struct _PROPSHEETHEADERA_V2 +{ + DWORD dwSize; DWORD dwFlags; HWND hwndParent; HINSTANCE hInstance; union { HICON hIcon; LPCSTR pszIcon; } ; LPCSTR pszCaption; UINT nPages; union { UINT nStartPage; LPCSTR pStartPage; } ; union { LPCPROPSHEETPAGEA ppsp; HPROPSHEETPAGE *phpage; } ; PFNPROPSHEETCALLBACK pfnCallback; + union + { + HBITMAP hbmWatermark; + LPCSTR pszbmWatermark; + } ; + HPALETTE hplWatermark; + union + { + HBITMAP hbmHeader; + LPCSTR pszbmHeader; + } ; +} PROPSHEETHEADERA_V2, *LPPROPSHEETHEADERA_V2; +typedef const PROPSHEETHEADERA_V2 *LPCPROPSHEETHEADERA_V2; +# 518 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +typedef struct _PROPSHEETHEADERW_V1 +{ + DWORD dwSize; DWORD dwFlags; HWND hwndParent; HINSTANCE hInstance; union { HICON hIcon; LPCWSTR pszIcon; } ; LPCWSTR pszCaption; UINT nPages; union { UINT nStartPage; LPCWSTR pStartPage; } ; union { LPCPROPSHEETPAGEW ppsp; HPROPSHEETPAGE *phpage; } ; PFNPROPSHEETCALLBACK pfnCallback; +} PROPSHEETHEADERW_V1, *LPPROPSHEETHEADERW_V1; +typedef const PROPSHEETHEADERW_V1 *LPCPROPSHEETHEADERW_V1; + +typedef struct _PROPSHEETHEADERW_V2 +{ + DWORD dwSize; DWORD dwFlags; HWND hwndParent; HINSTANCE hInstance; union { HICON hIcon; LPCWSTR pszIcon; } ; LPCWSTR pszCaption; UINT nPages; union { UINT nStartPage; LPCWSTR pStartPage; } ; union { LPCPROPSHEETPAGEW ppsp; HPROPSHEETPAGE *phpage; } ; PFNPROPSHEETCALLBACK pfnCallback; + union + { + HBITMAP hbmWatermark; + LPCWSTR pszbmWatermark; + } ; + HPALETTE hplWatermark; + union + { + HBITMAP hbmHeader; + LPCWSTR pszbmHeader; + } ; +} PROPSHEETHEADERW_V2, *LPPROPSHEETHEADERW_V2; +typedef const PROPSHEETHEADERW_V2 *LPCPROPSHEETHEADERW_V2; +# 549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +typedef PROPSHEETHEADERA_V2 PROPSHEETHEADERA; +typedef PROPSHEETHEADERW_V2 PROPSHEETHEADERW; +typedef LPPROPSHEETHEADERA_V2 LPPROPSHEETHEADERA; +typedef LPPROPSHEETHEADERW_V2 LPPROPSHEETHEADERW; +typedef LPCPROPSHEETHEADERA_V2 LPCPROPSHEETHEADERA; +typedef LPCPROPSHEETHEADERW_V2 LPCPROPSHEETHEADERW; +# 585 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +__declspec(dllimport) HPROPSHEETPAGE __stdcall CreatePropertySheetPageA(LPCPROPSHEETPAGEA constPropSheetPagePointer); +__declspec(dllimport) HPROPSHEETPAGE __stdcall CreatePropertySheetPageW(LPCPROPSHEETPAGEW constPropSheetPagePointer); +__declspec(dllimport) BOOL __stdcall DestroyPropertySheetPage(HPROPSHEETPAGE); + +__declspec(dllimport) INT_PTR __stdcall PropertySheetA(LPCPROPSHEETHEADERA); + +__declspec(dllimport) INT_PTR __stdcall PropertySheetW(LPCPROPSHEETHEADERW); +# 603 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +typedef BOOL (__stdcall *LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM); +typedef BOOL (__stdcall *LPFNADDPROPSHEETPAGES)(LPVOID, LPFNADDPROPSHEETPAGE, LPARAM); + + +typedef struct _PSHNOTIFY +{ + NMHDR hdr; + LPARAM lParam; +} PSHNOTIFY, *LPPSHNOTIFY; +# 902 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 903 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 2 3 + + + + + + +#pragma warning(pop) +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 2 3 + + + + + + + +#pragma warning(push) +#pragma warning(disable: 4820) + + + + + + +typedef struct _PRINTER_INFO_1A { + DWORD Flags; + LPSTR pDescription; + LPSTR pName; + LPSTR pComment; +} PRINTER_INFO_1A, *PPRINTER_INFO_1A, *LPPRINTER_INFO_1A; +typedef struct _PRINTER_INFO_1W { + DWORD Flags; + LPWSTR pDescription; + LPWSTR pName; + LPWSTR pComment; +} PRINTER_INFO_1W, *PPRINTER_INFO_1W, *LPPRINTER_INFO_1W; + + + + + +typedef PRINTER_INFO_1A PRINTER_INFO_1; +typedef PPRINTER_INFO_1A PPRINTER_INFO_1; +typedef LPPRINTER_INFO_1A LPPRINTER_INFO_1; + + +typedef struct _PRINTER_INFO_2A { + LPSTR pServerName; + LPSTR pPrinterName; + LPSTR pShareName; + LPSTR pPortName; + LPSTR pDriverName; + LPSTR pComment; + LPSTR pLocation; + LPDEVMODEA pDevMode; + LPSTR pSepFile; + LPSTR pPrintProcessor; + LPSTR pDatatype; + LPSTR pParameters; + PSECURITY_DESCRIPTOR pSecurityDescriptor; + DWORD Attributes; + DWORD Priority; + DWORD DefaultPriority; + DWORD StartTime; + DWORD UntilTime; + DWORD Status; + DWORD cJobs; + DWORD AveragePPM; +} PRINTER_INFO_2A, *PPRINTER_INFO_2A, *LPPRINTER_INFO_2A; +typedef struct _PRINTER_INFO_2W { + LPWSTR pServerName; + LPWSTR pPrinterName; + LPWSTR pShareName; + LPWSTR pPortName; + LPWSTR pDriverName; + LPWSTR pComment; + LPWSTR pLocation; + LPDEVMODEW pDevMode; + LPWSTR pSepFile; + LPWSTR pPrintProcessor; + LPWSTR pDatatype; + LPWSTR pParameters; + PSECURITY_DESCRIPTOR pSecurityDescriptor; + DWORD Attributes; + DWORD Priority; + DWORD DefaultPriority; + DWORD StartTime; + DWORD UntilTime; + DWORD Status; + DWORD cJobs; + DWORD AveragePPM; +} PRINTER_INFO_2W, *PPRINTER_INFO_2W, *LPPRINTER_INFO_2W; + + + + + +typedef PRINTER_INFO_2A PRINTER_INFO_2; +typedef PPRINTER_INFO_2A PPRINTER_INFO_2; +typedef LPPRINTER_INFO_2A LPPRINTER_INFO_2; + + +typedef struct _PRINTER_INFO_3 { + PSECURITY_DESCRIPTOR pSecurityDescriptor; +} PRINTER_INFO_3, *PPRINTER_INFO_3, *LPPRINTER_INFO_3; + +typedef struct _PRINTER_INFO_4A { + LPSTR pPrinterName; + LPSTR pServerName; + DWORD Attributes; +} PRINTER_INFO_4A, *PPRINTER_INFO_4A, *LPPRINTER_INFO_4A; +typedef struct _PRINTER_INFO_4W { + LPWSTR pPrinterName; + LPWSTR pServerName; + DWORD Attributes; +} PRINTER_INFO_4W, *PPRINTER_INFO_4W, *LPPRINTER_INFO_4W; + + + + + +typedef PRINTER_INFO_4A PRINTER_INFO_4; +typedef PPRINTER_INFO_4A PPRINTER_INFO_4; +typedef LPPRINTER_INFO_4A LPPRINTER_INFO_4; + + +typedef struct _PRINTER_INFO_5A { + LPSTR pPrinterName; + LPSTR pPortName; + DWORD Attributes; + DWORD DeviceNotSelectedTimeout; + DWORD TransmissionRetryTimeout; +} PRINTER_INFO_5A, *PPRINTER_INFO_5A, *LPPRINTER_INFO_5A; +typedef struct _PRINTER_INFO_5W { + LPWSTR pPrinterName; + LPWSTR pPortName; + DWORD Attributes; + DWORD DeviceNotSelectedTimeout; + DWORD TransmissionRetryTimeout; +} PRINTER_INFO_5W, *PPRINTER_INFO_5W, *LPPRINTER_INFO_5W; + + + + + +typedef PRINTER_INFO_5A PRINTER_INFO_5; +typedef PPRINTER_INFO_5A PPRINTER_INFO_5; +typedef LPPRINTER_INFO_5A LPPRINTER_INFO_5; + + +typedef struct _PRINTER_INFO_6 { + DWORD dwStatus; +} PRINTER_INFO_6, *PPRINTER_INFO_6, *LPPRINTER_INFO_6; + + +typedef struct _PRINTER_INFO_7A { + LPSTR pszObjectGUID; + DWORD dwAction; +} PRINTER_INFO_7A, *PPRINTER_INFO_7A, *LPPRINTER_INFO_7A; +typedef struct _PRINTER_INFO_7W { + LPWSTR pszObjectGUID; + DWORD dwAction; +} PRINTER_INFO_7W, *PPRINTER_INFO_7W, *LPPRINTER_INFO_7W; + + + + + +typedef PRINTER_INFO_7A PRINTER_INFO_7; +typedef PPRINTER_INFO_7A PPRINTER_INFO_7; +typedef LPPRINTER_INFO_7A LPPRINTER_INFO_7; +# 194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +typedef struct _PRINTER_INFO_8A { + LPDEVMODEA pDevMode; +} PRINTER_INFO_8A, *PPRINTER_INFO_8A, *LPPRINTER_INFO_8A; +typedef struct _PRINTER_INFO_8W { + LPDEVMODEW pDevMode; +} PRINTER_INFO_8W, *PPRINTER_INFO_8W, *LPPRINTER_INFO_8W; + + + + + +typedef PRINTER_INFO_8A PRINTER_INFO_8; +typedef PPRINTER_INFO_8A PPRINTER_INFO_8; +typedef LPPRINTER_INFO_8A LPPRINTER_INFO_8; + + +typedef struct _PRINTER_INFO_9A { + LPDEVMODEA pDevMode; +} PRINTER_INFO_9A, *PPRINTER_INFO_9A, *LPPRINTER_INFO_9A; +typedef struct _PRINTER_INFO_9W { + LPDEVMODEW pDevMode; +} PRINTER_INFO_9W, *PPRINTER_INFO_9W, *LPPRINTER_INFO_9W; + + + + + +typedef PRINTER_INFO_9A PRINTER_INFO_9; +typedef PPRINTER_INFO_9A PPRINTER_INFO_9; +typedef LPPRINTER_INFO_9A LPPRINTER_INFO_9; +# 332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +typedef struct _JOB_INFO_1A { + DWORD JobId; + LPSTR pPrinterName; + LPSTR pMachineName; + LPSTR pUserName; + LPSTR pDocument; + LPSTR pDatatype; + LPSTR pStatus; + DWORD Status; + DWORD Priority; + DWORD Position; + DWORD TotalPages; + DWORD PagesPrinted; + SYSTEMTIME Submitted; +} JOB_INFO_1A, *PJOB_INFO_1A, *LPJOB_INFO_1A; +typedef struct _JOB_INFO_1W { + DWORD JobId; + LPWSTR pPrinterName; + LPWSTR pMachineName; + LPWSTR pUserName; + LPWSTR pDocument; + LPWSTR pDatatype; + LPWSTR pStatus; + DWORD Status; + DWORD Priority; + DWORD Position; + DWORD TotalPages; + DWORD PagesPrinted; + SYSTEMTIME Submitted; +} JOB_INFO_1W, *PJOB_INFO_1W, *LPJOB_INFO_1W; + + + + + +typedef JOB_INFO_1A JOB_INFO_1; +typedef PJOB_INFO_1A PJOB_INFO_1; +typedef LPJOB_INFO_1A LPJOB_INFO_1; + + +typedef struct _JOB_INFO_2A { + DWORD JobId; + LPSTR pPrinterName; + LPSTR pMachineName; + LPSTR pUserName; + LPSTR pDocument; + LPSTR pNotifyName; + LPSTR pDatatype; + LPSTR pPrintProcessor; + LPSTR pParameters; + LPSTR pDriverName; + LPDEVMODEA pDevMode; + LPSTR pStatus; + PSECURITY_DESCRIPTOR pSecurityDescriptor; + DWORD Status; + DWORD Priority; + DWORD Position; + DWORD StartTime; + DWORD UntilTime; + DWORD TotalPages; + DWORD Size; + SYSTEMTIME Submitted; + DWORD Time; + DWORD PagesPrinted; +} JOB_INFO_2A, *PJOB_INFO_2A, *LPJOB_INFO_2A; +typedef struct _JOB_INFO_2W { + DWORD JobId; + LPWSTR pPrinterName; + LPWSTR pMachineName; + LPWSTR pUserName; + LPWSTR pDocument; + LPWSTR pNotifyName; + LPWSTR pDatatype; + LPWSTR pPrintProcessor; + LPWSTR pParameters; + LPWSTR pDriverName; + LPDEVMODEW pDevMode; + LPWSTR pStatus; + PSECURITY_DESCRIPTOR pSecurityDescriptor; + DWORD Status; + DWORD Priority; + DWORD Position; + DWORD StartTime; + DWORD UntilTime; + DWORD TotalPages; + DWORD Size; + SYSTEMTIME Submitted; + DWORD Time; + DWORD PagesPrinted; +} JOB_INFO_2W, *PJOB_INFO_2W, *LPJOB_INFO_2W; + + + + + +typedef JOB_INFO_2A JOB_INFO_2; +typedef PJOB_INFO_2A PJOB_INFO_2; +typedef LPJOB_INFO_2A LPJOB_INFO_2; + + +typedef struct _JOB_INFO_3 { + DWORD JobId; + DWORD NextJobId; + DWORD Reserved; +} JOB_INFO_3, *PJOB_INFO_3, *LPJOB_INFO_3; + +typedef struct _JOB_INFO_4A { + DWORD JobId; + LPSTR pPrinterName; + LPSTR pMachineName; + LPSTR pUserName; + LPSTR pDocument; + LPSTR pNotifyName; + LPSTR pDatatype; + LPSTR pPrintProcessor; + LPSTR pParameters; + LPSTR pDriverName; + LPDEVMODEA pDevMode; + LPSTR pStatus; + PSECURITY_DESCRIPTOR pSecurityDescriptor; + DWORD Status; + DWORD Priority; + DWORD Position; + DWORD StartTime; + DWORD UntilTime; + DWORD TotalPages; + DWORD Size; + SYSTEMTIME Submitted; + DWORD Time; + DWORD PagesPrinted; + LONG SizeHigh; +} JOB_INFO_4A, *PJOB_INFO_4A, *LPJOB_INFO_4A; +typedef struct _JOB_INFO_4W { + DWORD JobId; + LPWSTR pPrinterName; + LPWSTR pMachineName; + LPWSTR pUserName; + LPWSTR pDocument; + LPWSTR pNotifyName; + LPWSTR pDatatype; + LPWSTR pPrintProcessor; + LPWSTR pParameters; + LPWSTR pDriverName; + LPDEVMODEW pDevMode; + LPWSTR pStatus; + PSECURITY_DESCRIPTOR pSecurityDescriptor; + DWORD Status; + DWORD Priority; + DWORD Position; + DWORD StartTime; + DWORD UntilTime; + DWORD TotalPages; + DWORD Size; + SYSTEMTIME Submitted; + DWORD Time; + DWORD PagesPrinted; + LONG SizeHigh; +} JOB_INFO_4W, *PJOB_INFO_4W, *LPJOB_INFO_4W; + + + + + +typedef JOB_INFO_4A JOB_INFO_4; +typedef PJOB_INFO_4A PJOB_INFO_4; +typedef LPJOB_INFO_4A LPJOB_INFO_4; +# 541 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +typedef struct _ADDJOB_INFO_1A { + LPSTR Path; + DWORD JobId; +} ADDJOB_INFO_1A, *PADDJOB_INFO_1A, *LPADDJOB_INFO_1A; +typedef struct _ADDJOB_INFO_1W { + LPWSTR Path; + DWORD JobId; +} ADDJOB_INFO_1W, *PADDJOB_INFO_1W, *LPADDJOB_INFO_1W; + + + + + +typedef ADDJOB_INFO_1A ADDJOB_INFO_1; +typedef PADDJOB_INFO_1A PADDJOB_INFO_1; +typedef LPADDJOB_INFO_1A LPADDJOB_INFO_1; + + + +typedef struct _DRIVER_INFO_1A { + LPSTR pName; +} DRIVER_INFO_1A, *PDRIVER_INFO_1A, *LPDRIVER_INFO_1A; +typedef struct _DRIVER_INFO_1W { + LPWSTR pName; +} DRIVER_INFO_1W, *PDRIVER_INFO_1W, *LPDRIVER_INFO_1W; + + + + + +typedef DRIVER_INFO_1A DRIVER_INFO_1; +typedef PDRIVER_INFO_1A PDRIVER_INFO_1; +typedef LPDRIVER_INFO_1A LPDRIVER_INFO_1; + + +typedef struct _DRIVER_INFO_2A { + DWORD cVersion; + LPSTR pName; + LPSTR pEnvironment; + LPSTR pDriverPath; + LPSTR pDataFile; + LPSTR pConfigFile; +} DRIVER_INFO_2A, *PDRIVER_INFO_2A, *LPDRIVER_INFO_2A; +typedef struct _DRIVER_INFO_2W { + DWORD cVersion; + LPWSTR pName; + LPWSTR pEnvironment; + LPWSTR pDriverPath; + LPWSTR pDataFile; + LPWSTR pConfigFile; +} DRIVER_INFO_2W, *PDRIVER_INFO_2W, *LPDRIVER_INFO_2W; + + + + + +typedef DRIVER_INFO_2A DRIVER_INFO_2; +typedef PDRIVER_INFO_2A PDRIVER_INFO_2; +typedef LPDRIVER_INFO_2A LPDRIVER_INFO_2; + + +typedef struct _DRIVER_INFO_3A { + DWORD cVersion; + LPSTR pName; + LPSTR pEnvironment; + LPSTR pDriverPath; + LPSTR pDataFile; + LPSTR pConfigFile; + LPSTR pHelpFile; + LPSTR pDependentFiles; + LPSTR pMonitorName; + LPSTR pDefaultDataType; +} DRIVER_INFO_3A, *PDRIVER_INFO_3A, *LPDRIVER_INFO_3A; +typedef struct _DRIVER_INFO_3W { + DWORD cVersion; + LPWSTR pName; + LPWSTR pEnvironment; + LPWSTR pDriverPath; + LPWSTR pDataFile; + LPWSTR pConfigFile; + LPWSTR pHelpFile; + LPWSTR pDependentFiles; + LPWSTR pMonitorName; + LPWSTR pDefaultDataType; +} DRIVER_INFO_3W, *PDRIVER_INFO_3W, *LPDRIVER_INFO_3W; + + + + + +typedef DRIVER_INFO_3A DRIVER_INFO_3; +typedef PDRIVER_INFO_3A PDRIVER_INFO_3; +typedef LPDRIVER_INFO_3A LPDRIVER_INFO_3; + + +typedef struct _DRIVER_INFO_4A { + DWORD cVersion; + LPSTR pName; + LPSTR pEnvironment; + LPSTR pDriverPath; + LPSTR pDataFile; + LPSTR pConfigFile; + LPSTR pHelpFile; + LPSTR pDependentFiles; + LPSTR pMonitorName; + LPSTR pDefaultDataType; + LPSTR pszzPreviousNames; +} DRIVER_INFO_4A, *PDRIVER_INFO_4A, *LPDRIVER_INFO_4A; +typedef struct _DRIVER_INFO_4W { + DWORD cVersion; + LPWSTR pName; + LPWSTR pEnvironment; + LPWSTR pDriverPath; + LPWSTR pDataFile; + LPWSTR pConfigFile; + LPWSTR pHelpFile; + LPWSTR pDependentFiles; + LPWSTR pMonitorName; + LPWSTR pDefaultDataType; + LPWSTR pszzPreviousNames; +} DRIVER_INFO_4W, *PDRIVER_INFO_4W, *LPDRIVER_INFO_4W; + + + + + +typedef DRIVER_INFO_4A DRIVER_INFO_4; +typedef PDRIVER_INFO_4A PDRIVER_INFO_4; +typedef LPDRIVER_INFO_4A LPDRIVER_INFO_4; + + +typedef struct _DRIVER_INFO_5A { + DWORD cVersion; + LPSTR pName; + LPSTR pEnvironment; + LPSTR pDriverPath; + LPSTR pDataFile; + LPSTR pConfigFile; + DWORD dwDriverAttributes; + DWORD dwConfigVersion; + DWORD dwDriverVersion; +} DRIVER_INFO_5A, *PDRIVER_INFO_5A, *LPDRIVER_INFO_5A; +typedef struct _DRIVER_INFO_5W { + DWORD cVersion; + LPWSTR pName; + LPWSTR pEnvironment; + LPWSTR pDriverPath; + LPWSTR pDataFile; + LPWSTR pConfigFile; + DWORD dwDriverAttributes; + DWORD dwConfigVersion; + DWORD dwDriverVersion; +} DRIVER_INFO_5W, *PDRIVER_INFO_5W, *LPDRIVER_INFO_5W; + + + + + +typedef DRIVER_INFO_5A DRIVER_INFO_5; +typedef PDRIVER_INFO_5A PDRIVER_INFO_5; +typedef LPDRIVER_INFO_5A LPDRIVER_INFO_5; + + +typedef struct _DRIVER_INFO_6A { + DWORD cVersion; + LPSTR pName; + LPSTR pEnvironment; + LPSTR pDriverPath; + LPSTR pDataFile; + LPSTR pConfigFile; + LPSTR pHelpFile; + LPSTR pDependentFiles; + LPSTR pMonitorName; + LPSTR pDefaultDataType; + LPSTR pszzPreviousNames; + FILETIME ftDriverDate; + DWORDLONG dwlDriverVersion; + LPSTR pszMfgName; + LPSTR pszOEMUrl; + LPSTR pszHardwareID; + LPSTR pszProvider; +} DRIVER_INFO_6A, *PDRIVER_INFO_6A, *LPDRIVER_INFO_6A; +typedef struct _DRIVER_INFO_6W { + DWORD cVersion; + LPWSTR pName; + LPWSTR pEnvironment; + LPWSTR pDriverPath; + LPWSTR pDataFile; + LPWSTR pConfigFile; + LPWSTR pHelpFile; + LPWSTR pDependentFiles; + LPWSTR pMonitorName; + LPWSTR pDefaultDataType; + LPWSTR pszzPreviousNames; + FILETIME ftDriverDate; + DWORDLONG dwlDriverVersion; + LPWSTR pszMfgName; + LPWSTR pszOEMUrl; + LPWSTR pszHardwareID; + LPWSTR pszProvider; +} DRIVER_INFO_6W, *PDRIVER_INFO_6W, *LPDRIVER_INFO_6W; + + + + + +typedef DRIVER_INFO_6A DRIVER_INFO_6; +typedef PDRIVER_INFO_6A PDRIVER_INFO_6; +typedef LPDRIVER_INFO_6A LPDRIVER_INFO_6; +# 767 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +typedef struct _DRIVER_INFO_8A { + DWORD cVersion; + LPSTR pName; + LPSTR pEnvironment; + LPSTR pDriverPath; + LPSTR pDataFile; + LPSTR pConfigFile; + LPSTR pHelpFile; + LPSTR pDependentFiles; + LPSTR pMonitorName; + LPSTR pDefaultDataType; + LPSTR pszzPreviousNames; + FILETIME ftDriverDate; + DWORDLONG dwlDriverVersion; + LPSTR pszMfgName; + LPSTR pszOEMUrl; + LPSTR pszHardwareID; + LPSTR pszProvider; + LPSTR pszPrintProcessor; + LPSTR pszVendorSetup; + LPSTR pszzColorProfiles; + LPSTR pszInfPath; + DWORD dwPrinterDriverAttributes; + LPSTR pszzCoreDriverDependencies; + FILETIME ftMinInboxDriverVerDate; + DWORDLONG dwlMinInboxDriverVerVersion; +} DRIVER_INFO_8A, *PDRIVER_INFO_8A, *LPDRIVER_INFO_8A; +typedef struct _DRIVER_INFO_8W { + DWORD cVersion; + LPWSTR pName; + LPWSTR pEnvironment; + LPWSTR pDriverPath; + LPWSTR pDataFile; + LPWSTR pConfigFile; + LPWSTR pHelpFile; + LPWSTR pDependentFiles; + LPWSTR pMonitorName; + LPWSTR pDefaultDataType; + LPWSTR pszzPreviousNames; + FILETIME ftDriverDate; + DWORDLONG dwlDriverVersion; + LPWSTR pszMfgName; + LPWSTR pszOEMUrl; + LPWSTR pszHardwareID; + LPWSTR pszProvider; + LPWSTR pszPrintProcessor; + LPWSTR pszVendorSetup; + LPWSTR pszzColorProfiles; + LPWSTR pszInfPath; + DWORD dwPrinterDriverAttributes; + LPWSTR pszzCoreDriverDependencies; + FILETIME ftMinInboxDriverVerDate; + DWORDLONG dwlMinInboxDriverVerVersion; +} DRIVER_INFO_8W, *PDRIVER_INFO_8W, *LPDRIVER_INFO_8W; + + + + + +typedef DRIVER_INFO_8A DRIVER_INFO_8; +typedef PDRIVER_INFO_8A PDRIVER_INFO_8; +typedef LPDRIVER_INFO_8A LPDRIVER_INFO_8; +# 854 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +typedef struct _DOC_INFO_1A { + LPSTR pDocName; + LPSTR pOutputFile; + LPSTR pDatatype; +} DOC_INFO_1A, *PDOC_INFO_1A, *LPDOC_INFO_1A; +typedef struct _DOC_INFO_1W { + LPWSTR pDocName; + LPWSTR pOutputFile; + LPWSTR pDatatype; +} DOC_INFO_1W, *PDOC_INFO_1W, *LPDOC_INFO_1W; + + + + + +typedef DOC_INFO_1A DOC_INFO_1; +typedef PDOC_INFO_1A PDOC_INFO_1; +typedef LPDOC_INFO_1A LPDOC_INFO_1; + + +typedef struct _FORM_INFO_1A { + DWORD Flags; + LPSTR pName; + SIZEL Size; + RECTL ImageableArea; +} FORM_INFO_1A, *PFORM_INFO_1A, *LPFORM_INFO_1A; +typedef struct _FORM_INFO_1W { + DWORD Flags; + LPWSTR pName; + SIZEL Size; + RECTL ImageableArea; +} FORM_INFO_1W, *PFORM_INFO_1W, *LPFORM_INFO_1W; + + + + + +typedef FORM_INFO_1A FORM_INFO_1; +typedef PFORM_INFO_1A PFORM_INFO_1; +typedef LPFORM_INFO_1A LPFORM_INFO_1; +# 903 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 + typedef struct _FORM_INFO_2A { + DWORD Flags; + LPCSTR pName; + SIZEL Size; + RECTL ImageableArea; + LPCSTR pKeyword; + DWORD StringType; + LPCSTR pMuiDll; + DWORD dwResourceId; + LPCSTR pDisplayName; + LANGID wLangId; + } FORM_INFO_2A, *PFORM_INFO_2A, *LPFORM_INFO_2A; + typedef struct _FORM_INFO_2W { + DWORD Flags; + LPCWSTR pName; + SIZEL Size; + RECTL ImageableArea; + LPCSTR pKeyword; + DWORD StringType; + LPCWSTR pMuiDll; + DWORD dwResourceId; + LPCWSTR pDisplayName; + LANGID wLangId; + } FORM_INFO_2W, *PFORM_INFO_2W, *LPFORM_INFO_2W; + + + + + +typedef FORM_INFO_2A FORM_INFO_2; +typedef PFORM_INFO_2A PFORM_INFO_2; +typedef LPFORM_INFO_2A LPFORM_INFO_2; + + + +typedef struct _DOC_INFO_2A { + LPSTR pDocName; + LPSTR pOutputFile; + LPSTR pDatatype; + DWORD dwMode; + DWORD JobId; +} DOC_INFO_2A, *PDOC_INFO_2A, *LPDOC_INFO_2A; +typedef struct _DOC_INFO_2W { + LPWSTR pDocName; + LPWSTR pOutputFile; + LPWSTR pDatatype; + DWORD dwMode; + DWORD JobId; +} DOC_INFO_2W, *PDOC_INFO_2W, *LPDOC_INFO_2W; + + + + + +typedef DOC_INFO_2A DOC_INFO_2; +typedef PDOC_INFO_2A PDOC_INFO_2; +typedef LPDOC_INFO_2A LPDOC_INFO_2; + + + + + + + +typedef struct _DOC_INFO_3A { + LPSTR pDocName; + LPSTR pOutputFile; + LPSTR pDatatype; + DWORD dwFlags; +} DOC_INFO_3A, *PDOC_INFO_3A, *LPDOC_INFO_3A; +typedef struct _DOC_INFO_3W { + LPWSTR pDocName; + LPWSTR pOutputFile; + LPWSTR pDatatype; + DWORD dwFlags; +} DOC_INFO_3W, *PDOC_INFO_3W, *LPDOC_INFO_3W; + + + + + +typedef DOC_INFO_3A DOC_INFO_3; +typedef PDOC_INFO_3A PDOC_INFO_3; +typedef LPDOC_INFO_3A LPDOC_INFO_3; +# 995 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +typedef struct _PRINTPROCESSOR_INFO_1A { + LPSTR pName; +} PRINTPROCESSOR_INFO_1A, *PPRINTPROCESSOR_INFO_1A, *LPPRINTPROCESSOR_INFO_1A; +typedef struct _PRINTPROCESSOR_INFO_1W { + LPWSTR pName; +} PRINTPROCESSOR_INFO_1W, *PPRINTPROCESSOR_INFO_1W, *LPPRINTPROCESSOR_INFO_1W; + + + + + +typedef PRINTPROCESSOR_INFO_1A PRINTPROCESSOR_INFO_1; +typedef PPRINTPROCESSOR_INFO_1A PPRINTPROCESSOR_INFO_1; +typedef LPPRINTPROCESSOR_INFO_1A LPPRINTPROCESSOR_INFO_1; + + + + typedef struct _PRINTPROCESSOR_CAPS_1 { + DWORD dwLevel; + DWORD dwNupOptions; + DWORD dwPageOrderFlags; + DWORD dwNumberOfCopies; + } PRINTPROCESSOR_CAPS_1, *PPRINTPROCESSOR_CAPS_1; + + + + + + + typedef struct _PRINTPROCESSOR_CAPS_2 { + DWORD dwLevel; + DWORD dwNupOptions; + DWORD dwPageOrderFlags; + DWORD dwNumberOfCopies; + + + DWORD dwDuplexHandlingCaps; + DWORD dwNupDirectionCaps; + DWORD dwNupBorderCaps; + DWORD dwBookletHandlingCaps; + DWORD dwScalingCaps; + + } PRINTPROCESSOR_CAPS_2, *PPRINTPROCESSOR_CAPS_2; +# 1064 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +typedef struct _PORT_INFO_1A { + LPSTR pName; +} PORT_INFO_1A, *PPORT_INFO_1A, *LPPORT_INFO_1A; +typedef struct _PORT_INFO_1W { + LPWSTR pName; +} PORT_INFO_1W, *PPORT_INFO_1W, *LPPORT_INFO_1W; + + + + + +typedef PORT_INFO_1A PORT_INFO_1; +typedef PPORT_INFO_1A PPORT_INFO_1; +typedef LPPORT_INFO_1A LPPORT_INFO_1; + + +typedef struct _PORT_INFO_2A { + LPSTR pPortName; + LPSTR pMonitorName; + LPSTR pDescription; + DWORD fPortType; + DWORD Reserved; +} PORT_INFO_2A, *PPORT_INFO_2A, *LPPORT_INFO_2A; +typedef struct _PORT_INFO_2W { + LPWSTR pPortName; + LPWSTR pMonitorName; + LPWSTR pDescription; + DWORD fPortType; + DWORD Reserved; +} PORT_INFO_2W, *PPORT_INFO_2W, *LPPORT_INFO_2W; + + + + + +typedef PORT_INFO_2A PORT_INFO_2; +typedef PPORT_INFO_2A PPORT_INFO_2; +typedef LPPORT_INFO_2A LPPORT_INFO_2; + + + + + + + +typedef struct _PORT_INFO_3A { + DWORD dwStatus; + LPSTR pszStatus; + DWORD dwSeverity; +} PORT_INFO_3A, *PPORT_INFO_3A, *LPPORT_INFO_3A; +typedef struct _PORT_INFO_3W { + DWORD dwStatus; + LPWSTR pszStatus; + DWORD dwSeverity; +} PORT_INFO_3W, *PPORT_INFO_3W, *LPPORT_INFO_3W; + + + + + +typedef PORT_INFO_3A PORT_INFO_3; +typedef PPORT_INFO_3A PPORT_INFO_3; +typedef LPPORT_INFO_3A LPPORT_INFO_3; +# 1149 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +typedef struct _MONITOR_INFO_1A{ + LPSTR pName; +} MONITOR_INFO_1A, *PMONITOR_INFO_1A, *LPMONITOR_INFO_1A; +typedef struct _MONITOR_INFO_1W{ + LPWSTR pName; +} MONITOR_INFO_1W, *PMONITOR_INFO_1W, *LPMONITOR_INFO_1W; + + + + + +typedef MONITOR_INFO_1A MONITOR_INFO_1; +typedef PMONITOR_INFO_1A PMONITOR_INFO_1; +typedef LPMONITOR_INFO_1A LPMONITOR_INFO_1; + + +typedef struct _MONITOR_INFO_2A{ + LPSTR pName; + LPSTR pEnvironment; + LPSTR pDLLName; +} MONITOR_INFO_2A, *PMONITOR_INFO_2A, *LPMONITOR_INFO_2A; +typedef struct _MONITOR_INFO_2W{ + LPWSTR pName; + LPWSTR pEnvironment; + LPWSTR pDLLName; +} MONITOR_INFO_2W, *PMONITOR_INFO_2W, *LPMONITOR_INFO_2W; + + + + + +typedef MONITOR_INFO_2A MONITOR_INFO_2; +typedef PMONITOR_INFO_2A PMONITOR_INFO_2; +typedef LPMONITOR_INFO_2A LPMONITOR_INFO_2; + + +typedef struct _DATATYPES_INFO_1A{ + LPSTR pName; +} DATATYPES_INFO_1A, *PDATATYPES_INFO_1A, *LPDATATYPES_INFO_1A; +typedef struct _DATATYPES_INFO_1W{ + LPWSTR pName; +} DATATYPES_INFO_1W, *PDATATYPES_INFO_1W, *LPDATATYPES_INFO_1W; + + + + + +typedef DATATYPES_INFO_1A DATATYPES_INFO_1; +typedef PDATATYPES_INFO_1A PDATATYPES_INFO_1; +typedef LPDATATYPES_INFO_1A LPDATATYPES_INFO_1; + + +typedef struct _PRINTER_DEFAULTSA{ + LPSTR pDatatype; + LPDEVMODEA pDevMode; + ACCESS_MASK DesiredAccess; +} PRINTER_DEFAULTSA, *PPRINTER_DEFAULTSA, *LPPRINTER_DEFAULTSA; +typedef struct _PRINTER_DEFAULTSW{ + LPWSTR pDatatype; + LPDEVMODEW pDevMode; + ACCESS_MASK DesiredAccess; +} PRINTER_DEFAULTSW, *PPRINTER_DEFAULTSW, *LPPRINTER_DEFAULTSW; + + + + + +typedef PRINTER_DEFAULTSA PRINTER_DEFAULTS; +typedef PPRINTER_DEFAULTSA PPRINTER_DEFAULTS; +typedef LPPRINTER_DEFAULTSA LPPRINTER_DEFAULTS; + + +typedef struct _PRINTER_ENUM_VALUESA { + LPSTR pValueName; + DWORD cbValueName; + DWORD dwType; + LPBYTE pData; + DWORD cbData; +} PRINTER_ENUM_VALUESA, *PPRINTER_ENUM_VALUESA, *LPPRINTER_ENUM_VALUESA; +typedef struct _PRINTER_ENUM_VALUESW { + LPWSTR pValueName; + DWORD cbValueName; + DWORD dwType; + LPBYTE pData; + DWORD cbData; +} PRINTER_ENUM_VALUESW, *PPRINTER_ENUM_VALUESW, *LPPRINTER_ENUM_VALUESW; + + + + + +typedef PRINTER_ENUM_VALUESA PRINTER_ENUM_VALUES; +typedef PPRINTER_ENUM_VALUESA PPRINTER_ENUM_VALUES; +typedef LPPRINTER_ENUM_VALUESA LPPRINTER_ENUM_VALUES; + + + +BOOL +__stdcall +EnumPrintersA( + DWORD Flags, + LPSTR Name, + DWORD Level, + + LPBYTE pPrinterEnum, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); + +BOOL +__stdcall +EnumPrintersW( + DWORD Flags, + LPWSTR Name, + DWORD Level, + + LPBYTE pPrinterEnum, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); +# 1307 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +HANDLE +__stdcall +GetSpoolFileHandle( + HANDLE hPrinter +); + +HANDLE +__stdcall +CommitSpoolData( + HANDLE hPrinter, + HANDLE hSpoolFile, + DWORD cbCommit +); + +BOOL +__stdcall +CloseSpoolFileHandle( + HANDLE hPrinter, + HANDLE hSpoolFile +); + +BOOL +__stdcall +OpenPrinterA( + LPSTR pPrinterName, + LPHANDLE phPrinter, + LPPRINTER_DEFAULTSA pDefault +); +BOOL +__stdcall +OpenPrinterW( + LPWSTR pPrinterName, + LPHANDLE phPrinter, + LPPRINTER_DEFAULTSW pDefault +); + + + + + + +BOOL +__stdcall +ResetPrinterA( + HANDLE hPrinter, + LPPRINTER_DEFAULTSA pDefault +); +BOOL +__stdcall +ResetPrinterW( + HANDLE hPrinter, + LPPRINTER_DEFAULTSW pDefault +); + + + + + + +BOOL +__stdcall +SetJobA( + HANDLE hPrinter, + DWORD JobId, + DWORD Level, + + + + + + LPBYTE pJob, + DWORD Command +); +BOOL +__stdcall +SetJobW( + HANDLE hPrinter, + DWORD JobId, + DWORD Level, + + + + + + LPBYTE pJob, + DWORD Command +); + + + + + + +BOOL +__stdcall +GetJobA( + HANDLE hPrinter, + DWORD JobId, + DWORD Level, + + LPBYTE pJob, + DWORD cbBuf, + LPDWORD pcbNeeded +); +BOOL +__stdcall +GetJobW( + HANDLE hPrinter, + DWORD JobId, + DWORD Level, + + LPBYTE pJob, + DWORD cbBuf, + LPDWORD pcbNeeded +); + + + + + + +BOOL +__stdcall +EnumJobsA( + HANDLE hPrinter, + DWORD FirstJob, + DWORD NoJobs, + DWORD Level, + + LPBYTE pJob, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); +BOOL +__stdcall +EnumJobsW( + HANDLE hPrinter, + DWORD FirstJob, + DWORD NoJobs, + DWORD Level, + + LPBYTE pJob, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); + + + + + + +HANDLE +__stdcall +AddPrinterA( + LPSTR pName, + + DWORD Level, + + + LPBYTE pPrinter +); +HANDLE +__stdcall +AddPrinterW( + LPWSTR pName, + + DWORD Level, + + + LPBYTE pPrinter +); + + + + + + +BOOL +__stdcall +DeletePrinter( + HANDLE hPrinter +); + +BOOL +__stdcall +SetPrinterA( + HANDLE hPrinter, + DWORD Level, +# 1508 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 + LPBYTE pPrinter, + DWORD Command + ); +BOOL +__stdcall +SetPrinterW( + HANDLE hPrinter, + DWORD Level, +# 1527 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 + LPBYTE pPrinter, + DWORD Command + ); + + + + + + +BOOL +__stdcall +GetPrinterA( + HANDLE hPrinter, + DWORD Level, + + LPBYTE pPrinter, + DWORD cbBuf, + LPDWORD pcbNeeded +); +BOOL +__stdcall +GetPrinterW( + HANDLE hPrinter, + DWORD Level, + + LPBYTE pPrinter, + DWORD cbBuf, + LPDWORD pcbNeeded +); + + + + + + +BOOL +__stdcall +AddPrinterDriverA( + LPSTR pName, + DWORD Level, + LPBYTE pDriverInfo +); +BOOL +__stdcall +AddPrinterDriverW( + LPWSTR pName, + DWORD Level, + LPBYTE pDriverInfo +); + + + + + + +BOOL +__stdcall +AddPrinterDriverExA( + LPSTR pName, + DWORD Level, + + + + + + PBYTE lpbDriverInfo, + DWORD dwFileCopyFlags +); +BOOL +__stdcall +AddPrinterDriverExW( + LPWSTR pName, + DWORD Level, + + + + + + PBYTE lpbDriverInfo, + DWORD dwFileCopyFlags +); + + + + + + +BOOL +__stdcall +EnumPrinterDriversA( + LPSTR pName, + LPSTR pEnvironment, + DWORD Level, + + LPBYTE pDriverInfo, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); +BOOL +__stdcall +EnumPrinterDriversW( + LPWSTR pName, + LPWSTR pEnvironment, + DWORD Level, + + LPBYTE pDriverInfo, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); + + + + + + +BOOL +__stdcall +GetPrinterDriverA( + HANDLE hPrinter, + LPSTR pEnvironment, + DWORD Level, + + LPBYTE pDriverInfo, + DWORD cbBuf, + LPDWORD pcbNeeded +); +BOOL +__stdcall +GetPrinterDriverW( + HANDLE hPrinter, + LPWSTR pEnvironment, + DWORD Level, + + LPBYTE pDriverInfo, + DWORD cbBuf, + LPDWORD pcbNeeded +); + + + + + + +BOOL +__stdcall +GetPrinterDriverDirectoryA( + LPSTR pName, + LPSTR pEnvironment, + DWORD Level, + + LPBYTE pDriverDirectory, + DWORD cbBuf, + LPDWORD pcbNeeded +); +BOOL +__stdcall +GetPrinterDriverDirectoryW( + LPWSTR pName, + LPWSTR pEnvironment, + DWORD Level, + + LPBYTE pDriverDirectory, + DWORD cbBuf, + LPDWORD pcbNeeded +); + + + + + + +BOOL +__stdcall +DeletePrinterDriverA( + LPSTR pName, + LPSTR pEnvironment, + LPSTR pDriverName +); +BOOL +__stdcall +DeletePrinterDriverW( + LPWSTR pName, + LPWSTR pEnvironment, + LPWSTR pDriverName +); + + + + + + +BOOL +__stdcall +DeletePrinterDriverExA( + LPSTR pName, + LPSTR pEnvironment, + LPSTR pDriverName, + DWORD dwDeleteFlag, + DWORD dwVersionFlag +); +BOOL +__stdcall +DeletePrinterDriverExW( + LPWSTR pName, + LPWSTR pEnvironment, + LPWSTR pDriverName, + DWORD dwDeleteFlag, + DWORD dwVersionFlag +); +# 1746 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +BOOL +__stdcall +AddPrintProcessorA( + LPSTR pName, + LPSTR pEnvironment, + LPSTR pPathName, + LPSTR pPrintProcessorName +); +BOOL +__stdcall +AddPrintProcessorW( + LPWSTR pName, + LPWSTR pEnvironment, + LPWSTR pPathName, + LPWSTR pPrintProcessorName +); + + + + + + +BOOL +__stdcall +EnumPrintProcessorsA( + LPSTR pName, + LPSTR pEnvironment, + DWORD Level, + + LPBYTE pPrintProcessorInfo, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); +BOOL +__stdcall +EnumPrintProcessorsW( + LPWSTR pName, + LPWSTR pEnvironment, + DWORD Level, + + LPBYTE pPrintProcessorInfo, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); +# 1800 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +BOOL +__stdcall +GetPrintProcessorDirectoryA( + LPSTR pName, + LPSTR pEnvironment, + DWORD Level, + + LPBYTE pPrintProcessorInfo, + DWORD cbBuf, + LPDWORD pcbNeeded +); +BOOL +__stdcall +GetPrintProcessorDirectoryW( + LPWSTR pName, + LPWSTR pEnvironment, + DWORD Level, + + LPBYTE pPrintProcessorInfo, + DWORD cbBuf, + LPDWORD pcbNeeded +); + + + + + + + +BOOL +__stdcall +EnumPrintProcessorDatatypesA( + LPSTR pName, + LPSTR pPrintProcessorName, + DWORD Level, + + LPBYTE pDatatypes, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); + +BOOL +__stdcall +EnumPrintProcessorDatatypesW( + LPWSTR pName, + LPWSTR pPrintProcessorName, + DWORD Level, + + LPBYTE pDatatypes, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); + + + + + + +BOOL +__stdcall +DeletePrintProcessorA( + LPSTR pName, + LPSTR pEnvironment, + LPSTR pPrintProcessorName +); +BOOL +__stdcall +DeletePrintProcessorW( + LPWSTR pName, + LPWSTR pEnvironment, + LPWSTR pPrintProcessorName +); + + + + + + +DWORD +__stdcall +StartDocPrinterA( + HANDLE hPrinter, + DWORD Level, + + + LPBYTE pDocInfo +); +DWORD +__stdcall +StartDocPrinterW( + HANDLE hPrinter, + DWORD Level, + + + LPBYTE pDocInfo +); + + + + + + +BOOL +__stdcall +StartPagePrinter( + HANDLE hPrinter +); + +BOOL +__stdcall +WritePrinter( + HANDLE hPrinter, + + LPVOID pBuf, + DWORD cbBuf, + LPDWORD pcWritten +); + + +BOOL +__stdcall +FlushPrinter( + HANDLE hPrinter, + + LPVOID pBuf, + DWORD cbBuf, + LPDWORD pcWritten, + DWORD cSleep +); + +BOOL +__stdcall +EndPagePrinter( + HANDLE hPrinter +); + +BOOL +__stdcall +AbortPrinter( + HANDLE hPrinter +); + +BOOL +__stdcall +ReadPrinter( + HANDLE hPrinter, + + LPVOID pBuf, + DWORD cbBuf, + LPDWORD pNoBytesRead +); + +BOOL +__stdcall +EndDocPrinter( + HANDLE hPrinter + ); + +BOOL +__stdcall +AddJobA( + HANDLE hPrinter, + DWORD Level, + + LPBYTE pData, + DWORD cbBuf, + LPDWORD pcbNeeded +); +BOOL +__stdcall +AddJobW( + HANDLE hPrinter, + DWORD Level, + + LPBYTE pData, + DWORD cbBuf, + LPDWORD pcbNeeded +); + + + + + + +BOOL +__stdcall +ScheduleJob( + HANDLE hPrinter, + DWORD JobId +); + +BOOL +__stdcall +PrinterProperties( + HWND hWnd, + HANDLE hPrinter +); + + +LONG +__stdcall +DocumentPropertiesA( + HWND hWnd, + HANDLE hPrinter, + LPSTR pDeviceName, + PDEVMODEA pDevModeOutput, + PDEVMODEA pDevModeInput, + DWORD fMode +); + +LONG +__stdcall +DocumentPropertiesW( + HWND hWnd, + HANDLE hPrinter, + LPWSTR pDeviceName, + PDEVMODEW pDevModeOutput, + PDEVMODEW pDevModeInput, + DWORD fMode +); + + + + + + +LONG +__stdcall +AdvancedDocumentPropertiesA( + HWND hWnd, + HANDLE hPrinter, + LPSTR pDeviceName, + PDEVMODEA pDevModeOutput, + PDEVMODEA pDevModeInput +); +LONG +__stdcall +AdvancedDocumentPropertiesW( + HWND hWnd, + HANDLE hPrinter, + LPWSTR pDeviceName, + PDEVMODEW pDevModeOutput, + PDEVMODEW pDevModeInput +); + + + + + + + + LONG + ExtDeviceMode( + HWND hWnd, + HANDLE hInst, + LPDEVMODEA pDevModeOutput, + LPSTR pDeviceName, + LPSTR pPort, + LPDEVMODEA pDevModeInput, + LPSTR pProfile, + DWORD fMode + ); + + + +DWORD +__stdcall +GetPrinterDataA( + HANDLE hPrinter, + LPSTR pValueName, + LPDWORD pType, + + LPBYTE pData, + DWORD nSize, + LPDWORD pcbNeeded +); +DWORD +__stdcall +GetPrinterDataW( + HANDLE hPrinter, + LPWSTR pValueName, + LPDWORD pType, + + LPBYTE pData, + DWORD nSize, + LPDWORD pcbNeeded +); + + + + + + +DWORD +__stdcall +GetPrinterDataExA( + HANDLE hPrinter, + LPCSTR pKeyName, + LPCSTR pValueName, + LPDWORD pType, + + LPBYTE pData, + DWORD nSize, + LPDWORD pcbNeeded +); +DWORD +__stdcall +GetPrinterDataExW( + HANDLE hPrinter, + LPCWSTR pKeyName, + LPCWSTR pValueName, + LPDWORD pType, + + LPBYTE pData, + DWORD nSize, + LPDWORD pcbNeeded +); + + + + + + +DWORD +__stdcall +EnumPrinterDataA( + HANDLE hPrinter, + DWORD dwIndex, + + LPSTR pValueName, + DWORD cbValueName, + LPDWORD pcbValueName, + LPDWORD pType, + + LPBYTE pData, + DWORD cbData, + + LPDWORD pcbData +); +DWORD +__stdcall +EnumPrinterDataW( + HANDLE hPrinter, + DWORD dwIndex, + + LPWSTR pValueName, + DWORD cbValueName, + LPDWORD pcbValueName, + LPDWORD pType, + + LPBYTE pData, + DWORD cbData, + + LPDWORD pcbData +); + + + + + + +DWORD +__stdcall +EnumPrinterDataExA( + HANDLE hPrinter, + LPCSTR pKeyName, + + LPBYTE pEnumValues, + DWORD cbEnumValues, + LPDWORD pcbEnumValues, + LPDWORD pnEnumValues +); +DWORD +__stdcall +EnumPrinterDataExW( + HANDLE hPrinter, + LPCWSTR pKeyName, + + LPBYTE pEnumValues, + DWORD cbEnumValues, + LPDWORD pcbEnumValues, + LPDWORD pnEnumValues +); + + + + + + +DWORD +__stdcall +EnumPrinterKeyA( + HANDLE hPrinter, + LPCSTR pKeyName, + + LPSTR pSubkey, + DWORD cbSubkey, + LPDWORD pcbSubkey +); +DWORD +__stdcall +EnumPrinterKeyW( + HANDLE hPrinter, + LPCWSTR pKeyName, + + LPWSTR pSubkey, + DWORD cbSubkey, + LPDWORD pcbSubkey +); + + + + + + + +DWORD +__stdcall +SetPrinterDataA( + HANDLE hPrinter, + LPSTR pValueName, + DWORD Type, + + LPBYTE pData, + DWORD cbData +); +DWORD +__stdcall +SetPrinterDataW( + HANDLE hPrinter, + LPWSTR pValueName, + DWORD Type, + + LPBYTE pData, + DWORD cbData +); + + + + + + + +DWORD +__stdcall +SetPrinterDataExA( + HANDLE hPrinter, + LPCSTR pKeyName, + LPCSTR pValueName, + DWORD Type, + + LPBYTE pData, + DWORD cbData +); +DWORD +__stdcall +SetPrinterDataExW( + HANDLE hPrinter, + LPCWSTR pKeyName, + LPCWSTR pValueName, + DWORD Type, + + LPBYTE pData, + DWORD cbData +); +# 2275 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +DWORD +__stdcall +DeletePrinterDataA( + HANDLE hPrinter, + LPSTR pValueName +); +DWORD +__stdcall +DeletePrinterDataW( + HANDLE hPrinter, + LPWSTR pValueName +); + + + + + + + +DWORD +__stdcall +DeletePrinterDataExA( + HANDLE hPrinter, + LPCSTR pKeyName, + LPCSTR pValueName +); +DWORD +__stdcall +DeletePrinterDataExW( + HANDLE hPrinter, + LPCWSTR pKeyName, + LPCWSTR pValueName +); + + + + + + + +DWORD +__stdcall +DeletePrinterKeyA( + HANDLE hPrinter, + LPCSTR pKeyName +); +DWORD +__stdcall +DeletePrinterKeyW( + HANDLE hPrinter, + LPCWSTR pKeyName +); +# 2409 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +typedef struct _PRINTER_NOTIFY_OPTIONS_TYPE { + WORD Type; + WORD Reserved0; + DWORD Reserved1; + DWORD Reserved2; + DWORD Count; + PWORD pFields; +} PRINTER_NOTIFY_OPTIONS_TYPE, *PPRINTER_NOTIFY_OPTIONS_TYPE, *LPPRINTER_NOTIFY_OPTIONS_TYPE; + + + + +typedef struct _PRINTER_NOTIFY_OPTIONS { + DWORD Version; + DWORD Flags; + DWORD Count; + PPRINTER_NOTIFY_OPTIONS_TYPE pTypes; +} PRINTER_NOTIFY_OPTIONS, *PPRINTER_NOTIFY_OPTIONS, *LPPRINTER_NOTIFY_OPTIONS; + + + + + +typedef struct _PRINTER_NOTIFY_INFO_DATA { + WORD Type; + WORD Field; + DWORD Reserved; + DWORD Id; + union { + DWORD adwData[2]; + struct { + DWORD cbBuf; + LPVOID pBuf; + } Data; + } NotifyData; +} PRINTER_NOTIFY_INFO_DATA, *PPRINTER_NOTIFY_INFO_DATA, *LPPRINTER_NOTIFY_INFO_DATA; + +typedef struct _PRINTER_NOTIFY_INFO { + DWORD Version; + DWORD Flags; + DWORD Count; + PRINTER_NOTIFY_INFO_DATA aData[1]; +} PRINTER_NOTIFY_INFO, *PPRINTER_NOTIFY_INFO, *LPPRINTER_NOTIFY_INFO; + + + typedef struct _BINARY_CONTAINER{ + DWORD cbBuf; + LPBYTE pData; + } BINARY_CONTAINER, *PBINARY_CONTAINER; + + + typedef struct _BIDI_DATA{ + DWORD dwBidiType; + union { + BOOL bData; + LONG iData; + LPWSTR sData; + FLOAT fData; + BINARY_CONTAINER biData; + }u; + } BIDI_DATA, *PBIDI_DATA, *LPBIDI_DATA; + + + typedef struct _BIDI_REQUEST_DATA{ + DWORD dwReqNumber; + LPWSTR pSchema; + BIDI_DATA data; + } BIDI_REQUEST_DATA , *PBIDI_REQUEST_DATA , *LPBIDI_REQUEST_DATA; + + + typedef struct _BIDI_REQUEST_CONTAINER{ + DWORD Version; + DWORD Flags; + DWORD Count; + BIDI_REQUEST_DATA aData[ 1 ]; + }BIDI_REQUEST_CONTAINER, *PBIDI_REQUEST_CONTAINER, *LPBIDI_REQUEST_CONTAINER; + + typedef struct _BIDI_RESPONSE_DATA{ + DWORD dwResult; + DWORD dwReqNumber; + LPWSTR pSchema; + BIDI_DATA data; + } BIDI_RESPONSE_DATA, *PBIDI_RESPONSE_DATA, *LPBIDI_RESPONSE_DATA; + + typedef struct _BIDI_RESPONSE_CONTAINER{ + DWORD Version; + DWORD Flags; + DWORD Count; + BIDI_RESPONSE_DATA aData[ 1 ]; + } BIDI_RESPONSE_CONTAINER, *PBIDI_RESPONSE_CONTAINER, *LPBIDI_RESPONSE_CONTAINER; + + + + + + + + typedef enum { + BIDI_NULL = 0, + BIDI_INT = 1, + BIDI_FLOAT = 2, + BIDI_BOOL = 3, + BIDI_STRING = 4, + BIDI_TEXT = 5, + BIDI_ENUM = 6, + BIDI_BLOB = 7 + } BIDI_TYPE; +# 2549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +DWORD +__stdcall +WaitForPrinterChange( + HANDLE hPrinter, + DWORD Flags +); + +HANDLE +__stdcall +FindFirstPrinterChangeNotification( + HANDLE hPrinter, + DWORD fdwFilter, + DWORD fdwOptions, + PVOID pPrinterNotifyOptions + ); + + +BOOL +__stdcall +FindNextPrinterChangeNotification( + HANDLE hChange, + PDWORD pdwChange, + LPVOID pvReserved, + LPVOID *ppPrinterNotifyInfo + ); + +BOOL +__stdcall +FreePrinterNotifyInfo( + PPRINTER_NOTIFY_INFO pPrinterNotifyInfo + ); + +BOOL +__stdcall +FindClosePrinterChangeNotification( + HANDLE hChange + ); +# 2623 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +DWORD +__stdcall +PrinterMessageBoxA( + HANDLE hPrinter, + DWORD Error, + HWND hWnd, + LPSTR pText, + LPSTR pCaption, + DWORD dwType +); +DWORD +__stdcall +PrinterMessageBoxW( + HANDLE hPrinter, + DWORD Error, + HWND hWnd, + LPWSTR pText, + LPWSTR pCaption, + DWORD dwType +); +# 2659 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +BOOL +__stdcall +ClosePrinter( + HANDLE hPrinter +); + +BOOL +__stdcall +AddFormA( + HANDLE hPrinter, + DWORD Level, + + + LPBYTE pForm +); +BOOL +__stdcall +AddFormW( + HANDLE hPrinter, + DWORD Level, + + + LPBYTE pForm +); + + + + + + +BOOL +__stdcall +DeleteFormA( + HANDLE hPrinter, + LPSTR pFormName +); +BOOL +__stdcall +DeleteFormW( + HANDLE hPrinter, + LPWSTR pFormName +); +# 2709 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +BOOL +__stdcall +GetFormA( + HANDLE hPrinter, + LPSTR pFormName, + DWORD Level, + + LPBYTE pForm, + DWORD cbBuf, + LPDWORD pcbNeeded +); +BOOL +__stdcall +GetFormW( + HANDLE hPrinter, + LPWSTR pFormName, + DWORD Level, + + LPBYTE pForm, + DWORD cbBuf, + LPDWORD pcbNeeded +); +# 2739 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +BOOL +__stdcall +SetFormA( + HANDLE hPrinter, + LPSTR pFormName, + DWORD Level, + + + LPBYTE pForm +); +BOOL +__stdcall +SetFormW( + HANDLE hPrinter, + LPWSTR pFormName, + DWORD Level, + + + LPBYTE pForm +); + + + + + + +BOOL +__stdcall +EnumFormsA( + HANDLE hPrinter, + DWORD Level, + + LPBYTE pForm, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); +BOOL +__stdcall +EnumFormsW( + HANDLE hPrinter, + DWORD Level, + + LPBYTE pForm, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); + + + + + + + +BOOL +__stdcall +EnumMonitorsA( + LPSTR pName, + DWORD Level, + + LPBYTE pMonitor, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); +BOOL +__stdcall +EnumMonitorsW( + LPWSTR pName, + DWORD Level, + + LPBYTE pMonitor, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); +# 2824 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +BOOL +__stdcall +AddMonitorA( + LPSTR pName, + DWORD Level, + + LPBYTE pMonitors +); +BOOL +__stdcall +AddMonitorW( + LPWSTR pName, + DWORD Level, + + LPBYTE pMonitors +); +# 2848 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +BOOL +__stdcall +DeleteMonitorA( + LPSTR pName, + LPSTR pEnvironment, + LPSTR pMonitorName +); +BOOL +__stdcall +DeleteMonitorW( + LPWSTR pName, + LPWSTR pEnvironment, + LPWSTR pMonitorName +); +# 2870 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +BOOL +__stdcall +EnumPortsA( + LPSTR pName, + DWORD Level, + + LPBYTE pPort, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); +BOOL +__stdcall +EnumPortsW( + LPWSTR pName, + DWORD Level, + + LPBYTE pPort, + DWORD cbBuf, + LPDWORD pcbNeeded, + LPDWORD pcReturned +); + + + + + + + +BOOL +__stdcall +AddPortA( + LPSTR pName, + HWND hWnd, + LPSTR pMonitorName +); +BOOL +__stdcall +AddPortW( + LPWSTR pName, + HWND hWnd, + LPWSTR pMonitorName +); +# 2921 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +BOOL +__stdcall +ConfigurePortA( + LPSTR pName, + HWND hWnd, + LPSTR pPortName +); +BOOL +__stdcall +ConfigurePortW( + LPWSTR pName, + HWND hWnd, + LPWSTR pPortName +); + + + + + + +BOOL +__stdcall +DeletePortA( + LPSTR pName, + HWND hWnd, + LPSTR pPortName +); +BOOL +__stdcall +DeletePortW( + LPWSTR pName, + HWND hWnd, + LPWSTR pPortName +); + + + + + + +BOOL +__stdcall +XcvDataW( + HANDLE hXcv, + PCWSTR pszDataName, + + PBYTE pInputData, + DWORD cbInputData, + + PBYTE pOutputData, + DWORD cbOutputData, + PDWORD pcbOutputNeeded, + PDWORD pdwStatus +); + + +BOOL +__stdcall +GetDefaultPrinterA( + LPSTR pszBuffer, + LPDWORD pcchBuffer + ); +BOOL +__stdcall +GetDefaultPrinterW( + LPWSTR pszBuffer, + LPDWORD pcchBuffer + ); + + + + + + +BOOL +__stdcall +SetDefaultPrinterA( + LPCSTR pszPrinter + ); +BOOL +__stdcall +SetDefaultPrinterW( + LPCWSTR pszPrinter + ); + + + + + + + +BOOL +__stdcall +SetPortA( + LPSTR pName, + LPSTR pPortName, + DWORD dwLevel, + + LPBYTE pPortInfo +); +BOOL +__stdcall +SetPortW( + LPWSTR pName, + LPWSTR pPortName, + DWORD dwLevel, + + LPBYTE pPortInfo +); +# 3038 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +BOOL +__stdcall +AddPrinterConnectionA( + LPSTR pName +); +BOOL +__stdcall +AddPrinterConnectionW( + LPWSTR pName +); +# 3056 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +BOOL +__stdcall +DeletePrinterConnectionA( + LPSTR pName +); +BOOL +__stdcall +DeletePrinterConnectionW( + LPWSTR pName +); +# 3074 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +HANDLE +__stdcall +ConnectToPrinterDlg( + HWND hwnd, + DWORD Flags +); + +typedef struct _PROVIDOR_INFO_1A{ + LPSTR pName; + LPSTR pEnvironment; + LPSTR pDLLName; +} PROVIDOR_INFO_1A, *PPROVIDOR_INFO_1A, *LPPROVIDOR_INFO_1A; +typedef struct _PROVIDOR_INFO_1W{ + LPWSTR pName; + LPWSTR pEnvironment; + LPWSTR pDLLName; +} PROVIDOR_INFO_1W, *PPROVIDOR_INFO_1W, *LPPROVIDOR_INFO_1W; + + + + + +typedef PROVIDOR_INFO_1A PROVIDOR_INFO_1; +typedef PPROVIDOR_INFO_1A PPROVIDOR_INFO_1; +typedef LPPROVIDOR_INFO_1A LPPROVIDOR_INFO_1; + + +typedef struct _PROVIDOR_INFO_2A{ + LPSTR pOrder; +} PROVIDOR_INFO_2A, *PPROVIDOR_INFO_2A, *LPPROVIDOR_INFO_2A; +typedef struct _PROVIDOR_INFO_2W{ + LPWSTR pOrder; +} PROVIDOR_INFO_2W, *PPROVIDOR_INFO_2W, *LPPROVIDOR_INFO_2W; + + + + + +typedef PROVIDOR_INFO_2A PROVIDOR_INFO_2; +typedef PPROVIDOR_INFO_2A PPROVIDOR_INFO_2; +typedef LPPROVIDOR_INFO_2A LPPROVIDOR_INFO_2; + + +BOOL +__stdcall +AddPrintProvidorA( + LPSTR pName, + DWORD Level, + + + LPBYTE pProvidorInfo +); +BOOL +__stdcall +AddPrintProvidorW( + LPWSTR pName, + DWORD Level, + + + LPBYTE pProvidorInfo +); + + + + + + +BOOL +__stdcall +DeletePrintProvidorA( + LPSTR pName, + LPSTR pEnvironment, + LPSTR pPrintProvidorName +); +BOOL +__stdcall +DeletePrintProvidorW( + LPWSTR pName, + LPWSTR pEnvironment, + LPWSTR pPrintProvidorName +); + + + + + + + + BOOL + __stdcall + IsValidDevmodeA( + PDEVMODEA pDevmode, + size_t DevmodeSize + ); + BOOL + __stdcall + IsValidDevmodeW( + PDEVMODEW pDevmode, + size_t DevmodeSize + ); +# 3399 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 + typedef enum _PRINTER_OPTION_FLAGS + { + PRINTER_OPTION_NO_CACHE = 1 << 0, + PRINTER_OPTION_CACHE = 1 << 1, + PRINTER_OPTION_CLIENT_CHANGE = 1 << 2, + PRINTER_OPTION_NO_CLIENT_DATA = 1 << 3, + } PRINTER_OPTION_FLAGS; + + + typedef struct _PRINTER_OPTIONSA + { + UINT cbSize; + DWORD dwFlags; + } PRINTER_OPTIONSA, *PPRINTER_OPTIONSA, *LPPRINTER_OPTIONSA; + typedef struct _PRINTER_OPTIONSW + { + UINT cbSize; + DWORD dwFlags; + } PRINTER_OPTIONSW, *PPRINTER_OPTIONSW, *LPPRINTER_OPTIONSW; + + + + + +typedef PRINTER_OPTIONSA PRINTER_OPTIONS; +typedef PPRINTER_OPTIONSA PPRINTER_OPTIONS; +typedef LPPRINTER_OPTIONSA LPPRINTER_OPTIONS; + + + BOOL + __stdcall + OpenPrinter2A( + LPCSTR pPrinterName, + LPHANDLE phPrinter, + PPRINTER_DEFAULTSA pDefault, + PPRINTER_OPTIONSA pOptions + ); + BOOL + __stdcall + OpenPrinter2W( + LPCWSTR pPrinterName, + LPHANDLE phPrinter, + PPRINTER_DEFAULTSW pDefault, + PPRINTER_OPTIONSW pOptions + ); +# 3453 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 + typedef struct _PRINTER_CONNECTION_INFO_1A + { + DWORD dwFlags; + LPSTR pszDriverName; + } PRINTER_CONNECTION_INFO_1A, *PPRINTER_CONNECTION_INFO_1A; + typedef struct _PRINTER_CONNECTION_INFO_1W + { + DWORD dwFlags; + LPWSTR pszDriverName; + } PRINTER_CONNECTION_INFO_1W, *PPRINTER_CONNECTION_INFO_1W; + + + + +typedef PRINTER_CONNECTION_INFO_1A PRINTER_CONNECTION_INFO_1; +typedef PPRINTER_CONNECTION_INFO_1A PPRINTER_CONNECTION_INFO_1; + + + BOOL + __stdcall + AddPrinterConnection2A( + HWND hWnd, + LPCSTR pszName, + DWORD dwLevel, + PVOID pConnectionInfo + ); + BOOL + __stdcall + AddPrinterConnection2W( + HWND hWnd, + LPCWSTR pszName, + DWORD dwLevel, + PVOID pConnectionInfo + ); +# 3500 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 + HRESULT + __stdcall + InstallPrinterDriverFromPackageA( + LPCSTR pszServer, + LPCSTR pszInfPath, + LPCSTR pszDriverName, + LPCSTR pszEnvironment, + DWORD dwFlags + ); + HRESULT + __stdcall + InstallPrinterDriverFromPackageW( + LPCWSTR pszServer, + LPCWSTR pszInfPath, + LPCWSTR pszDriverName, + LPCWSTR pszEnvironment, + DWORD dwFlags + ); +# 3529 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 + HRESULT + __stdcall + UploadPrinterDriverPackageA( + LPCSTR pszServer, + LPCSTR pszInfPath, + LPCSTR pszEnvironment, + DWORD dwFlags, + HWND hwnd, + + LPSTR pszDestInfPath, + PULONG pcchDestInfPath + ); + HRESULT + __stdcall + UploadPrinterDriverPackageW( + LPCWSTR pszServer, + LPCWSTR pszInfPath, + LPCWSTR pszEnvironment, + DWORD dwFlags, + HWND hwnd, + + LPWSTR pszDestInfPath, + PULONG pcchDestInfPath + ); + + + + + + + typedef struct _CORE_PRINTER_DRIVERA + { + GUID CoreDriverGUID; + FILETIME ftDriverDate; + DWORDLONG dwlDriverVersion; + CHAR szPackageID[260]; + } CORE_PRINTER_DRIVERA, *PCORE_PRINTER_DRIVERA; + typedef struct _CORE_PRINTER_DRIVERW + { + GUID CoreDriverGUID; + FILETIME ftDriverDate; + DWORDLONG dwlDriverVersion; + WCHAR szPackageID[260]; + } CORE_PRINTER_DRIVERW, *PCORE_PRINTER_DRIVERW; + + + + +typedef CORE_PRINTER_DRIVERA CORE_PRINTER_DRIVER; +typedef PCORE_PRINTER_DRIVERA PCORE_PRINTER_DRIVER; + + + HRESULT + __stdcall + GetCorePrinterDriversA( + LPCSTR pszServer, + LPCSTR pszEnvironment, + LPCSTR pszzCoreDriverDependencies, + DWORD cCorePrinterDrivers, + PCORE_PRINTER_DRIVERA pCorePrinterDrivers + ); + HRESULT + __stdcall + GetCorePrinterDriversW( + LPCWSTR pszServer, + LPCWSTR pszEnvironment, + LPCWSTR pszzCoreDriverDependencies, + DWORD cCorePrinterDrivers, + PCORE_PRINTER_DRIVERW pCorePrinterDrivers + ); + + + + + + + HRESULT + __stdcall + CorePrinterDriverInstalledA( + LPCSTR pszServer, + LPCSTR pszEnvironment, + GUID CoreDriverGUID, + FILETIME ftDriverDate, + DWORDLONG dwlDriverVersion, + BOOL *pbDriverInstalled + ); + HRESULT + __stdcall + CorePrinterDriverInstalledW( + LPCWSTR pszServer, + LPCWSTR pszEnvironment, + GUID CoreDriverGUID, + FILETIME ftDriverDate, + DWORDLONG dwlDriverVersion, + BOOL *pbDriverInstalled + ); + + + + + + + HRESULT + __stdcall + GetPrinterDriverPackagePathA( + LPCSTR pszServer, + LPCSTR pszEnvironment, + LPCSTR pszLanguage, + LPCSTR pszPackageID, + LPSTR pszDriverPackageCab, + DWORD cchDriverPackageCab, + LPDWORD pcchRequiredSize + ); + HRESULT + __stdcall + GetPrinterDriverPackagePathW( + LPCWSTR pszServer, + LPCWSTR pszEnvironment, + LPCWSTR pszLanguage, + LPCWSTR pszPackageID, + LPWSTR pszDriverPackageCab, + DWORD cchDriverPackageCab, + LPDWORD pcchRequiredSize + ); + + + + + + + HRESULT + __stdcall + DeletePrinterDriverPackageA( + LPCSTR pszServer, + LPCSTR pszInfPath, + LPCSTR pszEnvironment + ); + HRESULT + __stdcall + DeletePrinterDriverPackageW( + LPCWSTR pszServer, + LPCWSTR pszInfPath, + LPCWSTR pszEnvironment + ); + + + + + + + typedef enum + { + kPropertyTypeString = 1, + kPropertyTypeInt32, + kPropertyTypeInt64, + kPropertyTypeByte, + kPropertyTypeTime, + kPropertyTypeDevMode, + kPropertyTypeSD, + kPropertyTypeNotificationReply, + kPropertyTypeNotificationOptions, + kPropertyTypeBuffer + + } EPrintPropertyType; + + typedef enum + { + kAddingDocumentSequence = 0, + kDocumentSequenceAdded = 1, + kAddingFixedDocument = 2, + kFixedDocumentAdded = 3, + kAddingFixedPage = 4, + kFixedPageAdded = 5, + kResourceAdded = 6, + kFontAdded = 7, + kImageAdded = 8, + kXpsDocumentCommitted = 9 + + } EPrintXPSJobProgress; + + typedef enum + { + kJobProduction = 1, + kJobConsumption + + } EPrintXPSJobOperation; + + typedef struct + { + EPrintPropertyType ePropertyType; + union + { + BYTE propertyByte; + PWSTR propertyString; + LONG propertyInt32; + LONGLONG propertyInt64; + struct { + DWORD cbBuf; + LPVOID pBuf; + } propertyBlob; + } value; + + }PrintPropertyValue; + + typedef struct + { + WCHAR* propertyName; + PrintPropertyValue propertyValue; + + }PrintNamedProperty; + + typedef struct + { + ULONG numberOfProperties; + PrintNamedProperty* propertiesCollection; + + }PrintPropertiesCollection; + + HRESULT + __stdcall + ReportJobProcessingProgress( + HANDLE printerHandle, + ULONG jobId, + EPrintXPSJobOperation jobOperation, + EPrintXPSJobProgress jobProgress + ); + + BOOL + __stdcall + GetPrinterDriver2A( + HWND hWnd, + HANDLE hPrinter, + LPSTR pEnvironment, + DWORD Level, + + LPBYTE pDriverInfo, + DWORD cbBuf, + LPDWORD pcbNeeded + ); + BOOL + __stdcall + GetPrinterDriver2W( + HWND hWnd, + HANDLE hPrinter, + LPWSTR pEnvironment, + DWORD Level, + + LPBYTE pDriverInfo, + DWORD cbBuf, + LPDWORD pcbNeeded + ); +# 3791 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +typedef enum +{ + PRINT_EXECUTION_CONTEXT_APPLICATION = 0, + PRINT_EXECUTION_CONTEXT_SPOOLER_SERVICE = 1, + PRINT_EXECUTION_CONTEXT_SPOOLER_ISOLATION_HOST = 2, + PRINT_EXECUTION_CONTEXT_FILTER_PIPELINE = 3, + PRINT_EXECUTION_CONTEXT_WOW64 = 4 +} +PRINT_EXECUTION_CONTEXT; + +typedef struct +{ + PRINT_EXECUTION_CONTEXT context; + DWORD clientAppPID; +} +PRINT_EXECUTION_DATA; + +BOOL +__stdcall +GetPrintExecutionData( + PRINT_EXECUTION_DATA *pData + ); + + + + + + +DWORD +__stdcall +GetJobNamedPropertyValue( + HANDLE hPrinter, + DWORD JobId, + PCWSTR pszName, + PrintPropertyValue *pValue + ); + +void +__stdcall +FreePrintPropertyValue( + PrintPropertyValue *pValue + ); + +void +__stdcall +FreePrintNamedPropertyArray( + DWORD cProperties, + + + PrintNamedProperty **ppProperties + ); + +DWORD +__stdcall +SetJobNamedProperty( + HANDLE hPrinter, + DWORD JobId, + const PrintNamedProperty *pProperty + ); + +DWORD +__stdcall +DeleteJobNamedProperty( + HANDLE hPrinter, + DWORD JobId, + PCWSTR pszName + ); + +DWORD +__stdcall +EnumJobNamedProperties( + HANDLE hPrinter, + DWORD JobId, + DWORD *pcProperties, + + PrintNamedProperty **ppProperties + ); + +HRESULT +__stdcall +GetPrintOutputInfo( + HWND hWnd, + PCWSTR pszPrinter, + HANDLE *phFile, + PWSTR *ppszOutputFile + ); +# 3893 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 +#pragma warning(pop) +# 218 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 1 3 + + + + +#pragma warning(push) +#pragma warning(disable: 4001) +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,8) +# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 2 3 +# 37 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 1 3 +# 26 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,8) +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 1 3 +# 43 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,8) +# 44 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 2 3 +# 275 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 1 3 +# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 1 3 +# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 3 +#pragma warning(push) +#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) +#pragma clang diagnostic push +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 3 +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 3 +#pragma clang diagnostic ignored "-Wignored-attributes" +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 3 +#pragma clang diagnostic ignored "-Wignored-pragma-optimize" +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 3 +#pragma clang diagnostic ignored "-Wunknown-pragmas" + +#pragma pack(push, 8) +# 58 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 3 + __declspec(allocator) __declspec(restrict) +void* __cdecl _calloc_base( + size_t _Count, + size_t _Size + ); + + + __declspec(allocator) __declspec(restrict) +void* __cdecl calloc( + size_t _Count, + size_t _Size + ); + + + int __cdecl _callnewh( + size_t _Size + ); + + + __declspec(allocator) +void* __cdecl _expand( + void* _Block, + size_t _Size + ); + + +void __cdecl _free_base( + void* _Block + ); + + +void __cdecl free( + void* _Block + ); + + + __declspec(allocator) __declspec(restrict) +void* __cdecl _malloc_base( + size_t _Size + ); + + + __declspec(allocator) __declspec(restrict) +void* __cdecl malloc( + size_t _Size + ); + + + +size_t __cdecl _msize_base( + void* _Block + ) ; + + + +size_t __cdecl _msize( + void* _Block + ); + + + __declspec(allocator) __declspec(restrict) +void* __cdecl _realloc_base( + void* _Block, + size_t _Size + ); + + + __declspec(allocator) __declspec(restrict) +void* __cdecl realloc( + void* _Block, + size_t _Size + ); + + + __declspec(allocator) __declspec(restrict) +void* __cdecl _recalloc_base( + void* _Block, + size_t _Count, + size_t _Size + ); + + + __declspec(allocator) __declspec(restrict) +void* __cdecl _recalloc( + void* _Block, + size_t _Count, + size_t _Size + ); + + +void __cdecl _aligned_free( + void* _Block + ); + + + __declspec(allocator) __declspec(restrict) +void* __cdecl _aligned_malloc( + size_t _Size, + size_t _Alignment + ); + + + __declspec(allocator) __declspec(restrict) +void* __cdecl _aligned_offset_malloc( + size_t _Size, + size_t _Alignment, + size_t _Offset + ); + + + +size_t __cdecl _aligned_msize( + void* _Block, + size_t _Alignment, + size_t _Offset + ); + + + __declspec(allocator) __declspec(restrict) +void* __cdecl _aligned_offset_realloc( + void* _Block, + size_t _Size, + size_t _Alignment, + size_t _Offset + ); + + + __declspec(allocator) __declspec(restrict) +void* __cdecl _aligned_offset_recalloc( + void* _Block, + size_t _Count, + size_t _Size, + size_t _Alignment, + size_t _Offset + ); + + + __declspec(allocator) __declspec(restrict) +void* __cdecl _aligned_realloc( + void* _Block, + size_t _Size, + size_t _Alignment + ); + + + __declspec(allocator) __declspec(restrict) +void* __cdecl _aligned_recalloc( + void* _Block, + size_t _Count, + size_t _Size, + size_t _Alignment + ); +# 232 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 3 +#pragma pack(pop) +#pragma clang diagnostic pop +#pragma warning(pop) +# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 1 3 +# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 3 +# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stddef.h" 1 3 +# 35 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stddef.h" 3 +typedef long long int ptrdiff_t; +# 46 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stddef.h" 3 +typedef long long unsigned int size_t; +# 74 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stddef.h" 3 +typedef unsigned short wchar_t; +# 109 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stddef.h" 3 +# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include/__stddef_max_align_t.h" 1 3 +# 14 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include/__stddef_max_align_t.h" 3 +typedef double max_align_t; +# 110 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stddef.h" 2 3 +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 2 3 + +#pragma warning(push) +#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) +#pragma clang diagnostic push +# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 3 +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 3 +#pragma clang diagnostic ignored "-Wignored-attributes" +# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 3 +#pragma clang diagnostic ignored "-Wignored-pragma-optimize" +# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 3 +#pragma clang diagnostic ignored "-Wunknown-pragmas" + +#pragma pack(push, 8) + + + typedef int (__cdecl* _CoreCrtSecureSearchSortCompareFunction)(void*, void const*, void const*); + typedef int (__cdecl* _CoreCrtNonSecureSearchSortCompareFunction)(void const*, void const*); + + + + + + void* __cdecl bsearch_s( + void const* _Key, + void const* _Base, + rsize_t _NumOfElements, + rsize_t _SizeOfElements, + _CoreCrtSecureSearchSortCompareFunction _CompareFunction, + void* _Context + ); + + void __cdecl qsort_s( + void* _Base, + rsize_t _NumOfElements, + rsize_t _SizeOfElements, + _CoreCrtSecureSearchSortCompareFunction _CompareFunction, + void* _Context + ); + + + + + + + void* __cdecl bsearch( + void const* _Key, + void const* _Base, + size_t _NumOfElements, + size_t _SizeOfElements, + _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction + ); + + void __cdecl qsort( + void* _Base, + size_t _NumOfElements, + size_t _SizeOfElements, + _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction + ); + + + void* __cdecl _lfind_s( + void const* _Key, + void const* _Base, + unsigned int* _NumOfElements, + size_t _SizeOfElements, + _CoreCrtSecureSearchSortCompareFunction _CompareFunction, + void* _Context + ); + + + void* __cdecl _lfind( + void const* _Key, + void const* _Base, + unsigned int* _NumOfElements, + unsigned int _SizeOfElements, + _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction + ); + + + void* __cdecl _lsearch_s( + void const* _Key, + void* _Base, + unsigned int* _NumOfElements, + size_t _SizeOfElements, + _CoreCrtSecureSearchSortCompareFunction _CompareFunction, + void* _Context + ); + + + void* __cdecl _lsearch( + void const* _Key, + void* _Base, + unsigned int* _NumOfElements, + unsigned int _SizeOfElements, + _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction + ); +# 194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 3 + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_lfind" ". See online help for details.")) + void* __cdecl lfind( + void const* _Key, + void const* _Base, + unsigned int* _NumOfElements, + unsigned int _SizeOfElements, + _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_lsearch" ". See online help for details.")) + void* __cdecl lsearch( + void const* _Key, + void* _Base, + unsigned int* _NumOfElements, + unsigned int _SizeOfElements, + _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction + ); + + + + + +#pragma pack(pop) +#pragma clang diagnostic pop +#pragma warning(pop) +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 1 3 +# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 +#pragma warning(push) +#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) +#pragma clang diagnostic push +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 +#pragma clang diagnostic ignored "-Wignored-attributes" +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 +#pragma clang diagnostic ignored "-Wignored-pragma-optimize" +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 +#pragma clang diagnostic ignored "-Wunknown-pragmas" + +#pragma pack(push, 8) +# 54 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 + errno_t __cdecl _itow_s( + int _Value, + wchar_t* _Buffer, + size_t _BufferCount, + int _Radix + ); +# 68 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 + __declspec(deprecated("This function or variable may be unsafe. Consider using " "_itow_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _itow(int _Value, wchar_t *_Buffer, int _Radix); +# 77 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 + errno_t __cdecl _ltow_s( + long _Value, + wchar_t* _Buffer, + size_t _BufferCount, + int _Radix + ); +# 91 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 + __declspec(deprecated("This function or variable may be unsafe. Consider using " "_ltow_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _ltow(long _Value, wchar_t *_Buffer, int _Radix); + + + + + + + + errno_t __cdecl _ultow_s( + unsigned long _Value, + wchar_t* _Buffer, + size_t _BufferCount, + int _Radix + ); +# 113 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 + __declspec(deprecated("This function or variable may be unsafe. Consider using " "_ultow_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _ultow(unsigned long _Value, wchar_t *_Buffer, int _Radix); + + + + + + + + double __cdecl wcstod( + wchar_t const* _String, + wchar_t** _EndPtr + ); + + + double __cdecl _wcstod_l( + wchar_t const* _String, + wchar_t** _EndPtr, + _locale_t _Locale + ); + + + long __cdecl wcstol( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix + ); + + + long __cdecl _wcstol_l( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix, + _locale_t _Locale + ); + + + long long __cdecl wcstoll( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix + ); + + + long long __cdecl _wcstoll_l( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix, + _locale_t _Locale + ); + + + unsigned long __cdecl wcstoul( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix + ); + + + unsigned long __cdecl _wcstoul_l( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix, + _locale_t _Locale + ); + + + unsigned long long __cdecl wcstoull( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix + ); + + + unsigned long long __cdecl _wcstoull_l( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix, + _locale_t _Locale + ); + + + long double __cdecl wcstold( + wchar_t const* _String, + wchar_t** _EndPtr + ); + + + long double __cdecl _wcstold_l( + wchar_t const* _String, + wchar_t** _EndPtr, + _locale_t _Locale + ); + + + float __cdecl wcstof( + wchar_t const* _String, + wchar_t** _EndPtr + ); + + + float __cdecl _wcstof_l( + wchar_t const* _String, + wchar_t** _EndPtr, + _locale_t _Locale + ); + + + double __cdecl _wtof( + wchar_t const* _String + ); + + + double __cdecl _wtof_l( + wchar_t const* _String, + _locale_t _Locale + ); + + + int __cdecl _wtoi( + wchar_t const* _String + ); + + + int __cdecl _wtoi_l( + wchar_t const* _String, + _locale_t _Locale + ); + + + long __cdecl _wtol( + wchar_t const* _String + ); + + + long __cdecl _wtol_l( + wchar_t const* _String, + _locale_t _Locale + ); + + + long long __cdecl _wtoll( + wchar_t const* _String + ); + + + long long __cdecl _wtoll_l( + wchar_t const* _String, + _locale_t _Locale + ); + + + errno_t __cdecl _i64tow_s( + __int64 _Value, + wchar_t* _Buffer, + size_t _BufferCount, + int _Radix + ); + + __declspec(deprecated("This function or variable may be unsafe. Consider using " "_i64tow_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + wchar_t* __cdecl _i64tow( + __int64 _Value, + wchar_t* _Buffer, + int _Radix + ); + + + errno_t __cdecl _ui64tow_s( + unsigned __int64 _Value, + wchar_t* _Buffer, + size_t _BufferCount, + int _Radix + ); + + __declspec(deprecated("This function or variable may be unsafe. Consider using " "_ui64tow_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + wchar_t* __cdecl _ui64tow( + unsigned __int64 _Value, + wchar_t* _Buffer, + int _Radix + ); + + + __int64 __cdecl _wtoi64( + wchar_t const* _String + ); + + + __int64 __cdecl _wtoi64_l( + wchar_t const* _String, + _locale_t _Locale + ); + + + __int64 __cdecl _wcstoi64( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix + ); + + + __int64 __cdecl _wcstoi64_l( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix, + _locale_t _Locale + ); + + + unsigned __int64 __cdecl _wcstoui64( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix + ); + + + unsigned __int64 __cdecl _wcstoui64_l( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix, + _locale_t _Locale + ); + + + + + + + __declspec(allocator) wchar_t* __cdecl _wfullpath( + wchar_t* _Buffer, + wchar_t const* _Path, + size_t _BufferCount + ); + + + + + errno_t __cdecl _wmakepath_s( + wchar_t* _Buffer, + size_t _BufferCount, + wchar_t const* _Drive, + wchar_t const* _Dir, + wchar_t const* _Filename, + wchar_t const* _Ext + ); +# 366 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wmakepath_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) void __cdecl _wmakepath( wchar_t *_Buffer, wchar_t const* _Drive, wchar_t const* _Dir, wchar_t const* _Filename, wchar_t const* _Ext); +# 375 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 + void __cdecl _wperror( + wchar_t const* _ErrorMessage + ); + + __declspec(deprecated("This function or variable may be unsafe. Consider using " "_wsplitpath_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + void __cdecl _wsplitpath( + wchar_t const* _FullPath, + wchar_t* _Drive, + wchar_t* _Dir, + wchar_t* _Filename, + wchar_t* _Ext + ); + + errno_t __cdecl _wsplitpath_s( + wchar_t const* _FullPath, + wchar_t* _Drive, + size_t _DriveCount, + wchar_t* _Dir, + size_t _DirCount, + wchar_t* _Filename, + size_t _FilenameCount, + wchar_t* _Ext, + size_t _ExtCount + ); +# 409 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 + errno_t __cdecl _wdupenv_s( + wchar_t** _Buffer, + size_t* _BufferCount, + wchar_t const* _VarName + ); + + + + __declspec(deprecated("This function or variable may be unsafe. Consider using " "_wdupenv_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + wchar_t* __cdecl _wgetenv( + wchar_t const* _VarName + ); + + + + errno_t __cdecl _wgetenv_s( + size_t* _RequiredCount, + wchar_t* _Buffer, + size_t _BufferCount, + wchar_t const* _VarName + ); +# 440 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 + int __cdecl _wputenv( + wchar_t const* _EnvString + ); + + + errno_t __cdecl _wputenv_s( + wchar_t const* _Name, + wchar_t const* _Value + ); + + errno_t __cdecl _wsearchenv_s( + wchar_t const* _Filename, + wchar_t const* _VarName, + wchar_t* _Buffer, + size_t _BufferCount + ); +# 464 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 + __declspec(deprecated("This function or variable may be unsafe. Consider using " "_wsearchenv_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) void __cdecl _wsearchenv(wchar_t const* _Filename, wchar_t const* _VarName, wchar_t *_ResultPath); + + + + + + + int __cdecl _wsystem( + wchar_t const* _Command + ); + + + + + +#pragma pack(pop) +#pragma clang diagnostic pop +#pragma warning(pop) +# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 2 3 +# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\limits.h" 1 3 +# 21 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\limits.h" 3 +# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\limits.h" 1 3 +# 13 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\limits.h" 3 +#pragma warning(push) +#pragma warning(disable: 4514 4820) + +#pragma pack(push, 8) +# 76 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\limits.h" 3 +#pragma pack(pop) + +#pragma warning(pop) +# 22 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\limits.h" 2 3 +# 17 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 2 3 + +#pragma warning(push) +#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) +#pragma clang diagnostic push +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +#pragma clang diagnostic ignored "-Wignored-attributes" +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +#pragma clang diagnostic ignored "-Wignored-pragma-optimize" +# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +#pragma clang diagnostic ignored "-Wunknown-pragmas" + +#pragma pack(push, 8) +# 38 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + void __cdecl _swab( + char* _Buf1, + char* _Buf2, + int _SizeInBytes + ); +# 56 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + __declspec(noreturn) void __cdecl exit( int _Code); + __declspec(noreturn) void __cdecl _exit( int _Code); + __declspec(noreturn) void __cdecl _Exit( int _Code); + __declspec(noreturn) void __cdecl quick_exit( int _Code); + __declspec(noreturn) void __cdecl abort(void); + + + + + + + unsigned int __cdecl _set_abort_behavior( + unsigned int _Flags, + unsigned int _Mask + ); + + + + + + + typedef int (__cdecl* _onexit_t)(void); +# 144 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + int __cdecl atexit(void (__cdecl*)(void)); + _onexit_t __cdecl _onexit( _onexit_t _Func); + + +int __cdecl at_quick_exit(void (__cdecl*)(void)); +# 159 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + typedef void (__cdecl* _purecall_handler)(void); + + + typedef void (__cdecl* _invalid_parameter_handler)( + wchar_t const*, + wchar_t const*, + wchar_t const*, + unsigned int, + uintptr_t + ); + + + _purecall_handler __cdecl _set_purecall_handler( + _purecall_handler _Handler + ); + + _purecall_handler __cdecl _get_purecall_handler(void); + + + _invalid_parameter_handler __cdecl _set_invalid_parameter_handler( + _invalid_parameter_handler _Handler + ); + + _invalid_parameter_handler __cdecl _get_invalid_parameter_handler(void); + + _invalid_parameter_handler __cdecl _set_thread_local_invalid_parameter_handler( + _invalid_parameter_handler _Handler + ); + + _invalid_parameter_handler __cdecl _get_thread_local_invalid_parameter_handler(void); +# 212 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + int __cdecl _set_error_mode( int _Mode); + + + + + int* __cdecl _errno(void); + + + errno_t __cdecl _set_errno( int _Value); + errno_t __cdecl _get_errno( int* _Value); + + unsigned long* __cdecl __doserrno(void); + + + errno_t __cdecl _set_doserrno( unsigned long _Value); + errno_t __cdecl _get_doserrno( unsigned long * _Value); + + + __declspec(deprecated("This function or variable may be unsafe. Consider using " "strerror" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char** __cdecl __sys_errlist(void); + + + __declspec(deprecated("This function or variable may be unsafe. Consider using " "strerror" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) int * __cdecl __sys_nerr(void); + + + void __cdecl perror( char const* _ErrMsg); + + + + + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_get_pgmptr" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char** __cdecl __p__pgmptr (void); +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_get_wpgmptr" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t** __cdecl __p__wpgmptr(void); +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_get_fmode" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) int* __cdecl __p__fmode (void); +# 259 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + errno_t __cdecl _get_pgmptr ( char** _Value); + + + errno_t __cdecl _get_wpgmptr( wchar_t** _Value); + + errno_t __cdecl _set_fmode ( int _Mode ); + + errno_t __cdecl _get_fmode ( int* _PMode); +# 275 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +typedef struct _div_t +{ + int quot; + int rem; +} div_t; + +typedef struct _ldiv_t +{ + long quot; + long rem; +} ldiv_t; + +typedef struct _lldiv_t +{ + long long quot; + long long rem; +} lldiv_t; + + int __cdecl abs ( int _Number); + long __cdecl labs ( long _Number); + long long __cdecl llabs ( long long _Number); + __int64 __cdecl _abs64( __int64 _Number); + + unsigned short __cdecl _byteswap_ushort( unsigned short _Number); + unsigned long __cdecl _byteswap_ulong ( unsigned long _Number); + unsigned __int64 __cdecl _byteswap_uint64( unsigned __int64 _Number); + + div_t __cdecl div ( int _Numerator, int _Denominator); + ldiv_t __cdecl ldiv ( long _Numerator, long _Denominator); + lldiv_t __cdecl lldiv( long long _Numerator, long long _Denominator); + + + +#pragma warning(push) +#pragma warning(disable: 6540) + +unsigned int __cdecl _rotl( + unsigned int _Value, + int _Shift + ); + + +unsigned long __cdecl _lrotl( + unsigned long _Value, + int _Shift + ); + +unsigned __int64 __cdecl _rotl64( + unsigned __int64 _Value, + int _Shift + ); + +unsigned int __cdecl _rotr( + unsigned int _Value, + int _Shift + ); + + +unsigned long __cdecl _lrotr( + unsigned long _Value, + int _Shift + ); + +unsigned __int64 __cdecl _rotr64( + unsigned __int64 _Value, + int _Shift + ); + +#pragma warning(pop) + + + + + + + void __cdecl srand( unsigned int _Seed); + + int __cdecl rand(void); +# 394 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +#pragma pack(push, 4) + typedef struct + { + unsigned char ld[10]; + } _LDOUBLE; +#pragma pack(pop) +# 415 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +typedef struct +{ + double x; +} _CRT_DOUBLE; + +typedef struct +{ + float f; +} _CRT_FLOAT; + + + + + +typedef struct +{ + long double x; +} _LONGDOUBLE; + + + +#pragma pack(push, 4) +typedef struct +{ + unsigned char ld12[12]; +} _LDBL12; +#pragma pack(pop) + + + + + + + + + double __cdecl atof ( char const* _String); + int __cdecl atoi ( char const* _String); + long __cdecl atol ( char const* _String); + long long __cdecl atoll ( char const* _String); + __int64 __cdecl _atoi64( char const* _String); + + double __cdecl _atof_l ( char const* _String, _locale_t _Locale); + int __cdecl _atoi_l ( char const* _String, _locale_t _Locale); + long __cdecl _atol_l ( char const* _String, _locale_t _Locale); + long long __cdecl _atoll_l ( char const* _String, _locale_t _Locale); + __int64 __cdecl _atoi64_l( char const* _String, _locale_t _Locale); + + int __cdecl _atoflt ( _CRT_FLOAT* _Result, char const* _String); + int __cdecl _atodbl ( _CRT_DOUBLE* _Result, char* _String); + int __cdecl _atoldbl( _LDOUBLE* _Result, char* _String); + + + int __cdecl _atoflt_l( + _CRT_FLOAT* _Result, + char const* _String, + _locale_t _Locale + ); + + + int __cdecl _atodbl_l( + _CRT_DOUBLE* _Result, + char* _String, + _locale_t _Locale + ); + + + + int __cdecl _atoldbl_l( + _LDOUBLE* _Result, + char* _String, + _locale_t _Locale + ); + + + float __cdecl strtof( + char const* _String, + char** _EndPtr + ); + + + float __cdecl _strtof_l( + char const* _String, + char** _EndPtr, + _locale_t _Locale + ); + + + double __cdecl strtod( + char const* _String, + char** _EndPtr + ); + + + double __cdecl _strtod_l( + char const* _String, + char** _EndPtr, + _locale_t _Locale + ); + + + long double __cdecl strtold( + char const* _String, + char** _EndPtr + ); + + + long double __cdecl _strtold_l( + char const* _String, + char** _EndPtr, + _locale_t _Locale + ); + + + long __cdecl strtol( + char const* _String, + char** _EndPtr, + int _Radix + ); + + + long __cdecl _strtol_l( + char const* _String, + char** _EndPtr, + int _Radix, + _locale_t _Locale + ); + + + long long __cdecl strtoll( + char const* _String, + char** _EndPtr, + int _Radix + ); + + + long long __cdecl _strtoll_l( + char const* _String, + char** _EndPtr, + int _Radix, + _locale_t _Locale + ); + + + unsigned long __cdecl strtoul( + char const* _String, + char** _EndPtr, + int _Radix + ); + + + unsigned long __cdecl _strtoul_l( + char const* _String, + char** _EndPtr, + int _Radix, + _locale_t _Locale + ); + + + unsigned long long __cdecl strtoull( + char const* _String, + char** _EndPtr, + int _Radix + ); + + + unsigned long long __cdecl _strtoull_l( + char const* _String, + char** _EndPtr, + int _Radix, + _locale_t _Locale + ); + + + __int64 __cdecl _strtoi64( + char const* _String, + char** _EndPtr, + int _Radix + ); + + + __int64 __cdecl _strtoi64_l( + char const* _String, + char** _EndPtr, + int _Radix, + _locale_t _Locale + ); + + + unsigned __int64 __cdecl _strtoui64( + char const* _String, + char** _EndPtr, + int _Radix + ); + + + unsigned __int64 __cdecl _strtoui64_l( + char const* _String, + char** _EndPtr, + int _Radix, + _locale_t _Locale + ); +# 626 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + errno_t __cdecl _itoa_s( + int _Value, + char* _Buffer, + size_t _BufferCount, + int _Radix + ); +# 641 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_itoa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _itoa(int _Value, char *_Buffer, int _Radix); +# 650 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + errno_t __cdecl _ltoa_s( + long _Value, + char* _Buffer, + size_t _BufferCount, + int _Radix + ); +# 664 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_ltoa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _ltoa(long _Value, char *_Buffer, int _Radix); +# 673 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + errno_t __cdecl _ultoa_s( + unsigned long _Value, + char* _Buffer, + size_t _BufferCount, + int _Radix + ); +# 687 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_ultoa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _ultoa(unsigned long _Value, char *_Buffer, int _Radix); +# 696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + errno_t __cdecl _i64toa_s( + __int64 _Value, + char* _Buffer, + size_t _BufferCount, + int _Radix + ); + + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_i64toa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl _i64toa( + __int64 _Value, + char* _Buffer, + int _Radix + ); + + + + errno_t __cdecl _ui64toa_s( + unsigned __int64 _Value, + char* _Buffer, + size_t _BufferCount, + int _Radix + ); + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_ui64toa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl _ui64toa( + unsigned __int64 _Value, + char* _Buffer, + int _Radix + ); +# 741 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + errno_t __cdecl _ecvt_s( + char* _Buffer, + size_t _BufferCount, + double _Value, + int _DigitCount, + int* _PtDec, + int* _PtSign + ); +# 759 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + __declspec(deprecated("This function or variable may be unsafe. Consider using " "_ecvt_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl _ecvt( + double _Value, + int _DigitCount, + int* _PtDec, + int* _PtSign + ); + + + + errno_t __cdecl _fcvt_s( + char* _Buffer, + size_t _BufferCount, + double _Value, + int _FractionalDigitCount, + int* _PtDec, + int* _PtSign + ); +# 789 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + __declspec(deprecated("This function or variable may be unsafe. Consider using " "_fcvt_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl _fcvt( + double _Value, + int _FractionalDigitCount, + int* _PtDec, + int* _PtSign + ); + + + errno_t __cdecl _gcvt_s( + char* _Buffer, + size_t _BufferCount, + double _Value, + int _DigitCount + ); +# 813 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_gcvt_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl _gcvt( + double _Value, + int _DigitCount, + char* _Buffer + ); +# 852 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + int __cdecl mblen( + char const* _Ch, + size_t _MaxCount + ); + + + int __cdecl _mblen_l( + char const* _Ch, + size_t _MaxCount, + _locale_t _Locale + ); + + + + size_t __cdecl _mbstrlen( + char const* _String + ); + + + + size_t __cdecl _mbstrlen_l( + char const* _String, + _locale_t _Locale + ); + + + + size_t __cdecl _mbstrnlen( + char const* _String, + size_t _MaxCount + ); + + + + size_t __cdecl _mbstrnlen_l( + char const* _String, + size_t _MaxCount, + _locale_t _Locale + ); + + + int __cdecl mbtowc( + wchar_t* _DstCh, + char const* _SrcCh, + size_t _SrcSizeInBytes + ); + + + int __cdecl _mbtowc_l( + wchar_t* _DstCh, + char const* _SrcCh, + size_t _SrcSizeInBytes, + _locale_t _Locale + ); + + + errno_t __cdecl mbstowcs_s( + size_t* _PtNumOfCharConverted, + wchar_t* _DstBuf, + size_t _SizeInWords, + char const* _SrcBuf, + size_t _MaxCount + ); +# 924 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "mbstowcs_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) size_t __cdecl mbstowcs( wchar_t *_Dest, char const* _Source, size_t _MaxCount); + + + + + + + + errno_t __cdecl _mbstowcs_s_l( + size_t* _PtNumOfCharConverted, + wchar_t* _DstBuf, + size_t _SizeInWords, + char const* _SrcBuf, + size_t _MaxCount, + _locale_t _Locale + ); +# 950 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_mbstowcs_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) size_t __cdecl _mbstowcs_l( wchar_t *_Dest, char const* _Source, size_t _MaxCount, _locale_t _Locale); +# 962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "wctomb_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + int __cdecl wctomb( + char* _MbCh, + wchar_t _WCh + ); + +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wctomb_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + int __cdecl _wctomb_l( + char* _MbCh, + wchar_t _WCh, + _locale_t _Locale + ); + + + + + errno_t __cdecl wctomb_s( + int* _SizeConverted, + char* _MbCh, + rsize_t _SizeInBytes, + wchar_t _WCh + ); + + + + + errno_t __cdecl _wctomb_s_l( + int* _SizeConverted, + char* _MbCh, + size_t _SizeInBytes, + wchar_t _WCh, + _locale_t _Locale); + + + errno_t __cdecl wcstombs_s( + size_t* _PtNumOfCharConverted, + char* _Dst, + size_t _DstSizeInBytes, + wchar_t const* _Src, + size_t _MaxCountInBytes + ); +# 1012 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcstombs_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) size_t __cdecl wcstombs( char *_Dest, wchar_t const* _Source, size_t _MaxCount); + + + + + + + + errno_t __cdecl _wcstombs_s_l( + size_t* _PtNumOfCharConverted, + char* _Dst, + size_t _DstSizeInBytes, + wchar_t const* _Src, + size_t _MaxCountInBytes, + _locale_t _Locale + ); +# 1038 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcstombs_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) size_t __cdecl _wcstombs_l( char *_Dest, wchar_t const* _Source, size_t _MaxCount, _locale_t _Locale); +# 1068 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + __declspec(allocator) char* __cdecl _fullpath( + char* _Buffer, + char const* _Path, + size_t _BufferCount + ); + + + + + errno_t __cdecl _makepath_s( + char* _Buffer, + size_t _BufferCount, + char const* _Drive, + char const* _Dir, + char const* _Filename, + char const* _Ext + ); +# 1095 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_makepath_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) void __cdecl _makepath( char *_Buffer, char const* _Drive, char const* _Dir, char const* _Filename, char const* _Ext); +# 1104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +__declspec(deprecated("This function or variable may be unsafe. Consider using " "_splitpath_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + void __cdecl _splitpath( + char const* _FullPath, + char* _Drive, + char* _Dir, + char* _Filename, + char* _Ext + ); + + + errno_t __cdecl _splitpath_s( + char const* _FullPath, + char* _Drive, + size_t _DriveCount, + char* _Dir, + size_t _DirCount, + char* _Filename, + size_t _FilenameCount, + char* _Ext, + size_t _ExtCount + ); + + + + + + + + errno_t __cdecl getenv_s( + size_t* _RequiredCount, + char* _Buffer, + rsize_t _BufferCount, + char const* _VarName + ); + + + + + + + int* __cdecl __p___argc (void); + char*** __cdecl __p___argv (void); + wchar_t*** __cdecl __p___wargv(void); +# 1158 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + char*** __cdecl __p__environ (void); + wchar_t*** __cdecl __p__wenviron(void); +# 1183 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + __declspec(deprecated("This function or variable may be unsafe. Consider using " "_dupenv_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl getenv( + char const* _VarName + ); +# 1201 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + errno_t __cdecl _dupenv_s( + char** _Buffer, + size_t* _BufferCount, + char const* _VarName + ); + + + + + + int __cdecl system( + char const* _Command + ); + + + +#pragma warning(push) +#pragma warning(disable: 6540) + + + int __cdecl _putenv( + char const* _EnvString + ); + + + errno_t __cdecl _putenv_s( + char const* _Name, + char const* _Value + ); + +#pragma warning(pop) + + errno_t __cdecl _searchenv_s( + char const* _Filename, + char const* _VarName, + char* _Buffer, + size_t _BufferCount + ); +# 1247 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 + __declspec(deprecated("This function or variable may be unsafe. Consider using " "_searchenv_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) void __cdecl _searchenv(char const* _Filename, char const* _VarName, char *_Buffer); + + + + + + + + __declspec(deprecated("This function or variable has been superceded by newer library " "or operating system functionality. Consider using " "SetErrorMode" " " "instead. See online help for details.")) + void __cdecl _seterrormode( + int _Mode + ); + + __declspec(deprecated("This function or variable has been superceded by newer library " "or operating system functionality. Consider using " "Beep" " " "instead. See online help for details.")) + void __cdecl _beep( + unsigned _Frequency, + unsigned _Duration + ); + + __declspec(deprecated("This function or variable has been superceded by newer library " "or operating system functionality. Consider using " "Sleep" " " "instead. See online help for details.")) + void __cdecl _sleep( + unsigned long _Duration + ); +# 1289 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 +#pragma warning(push) +#pragma warning(disable: 4141) + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_ecvt" ". See online help for details.")) __declspec(deprecated("This function or variable may be unsafe. Consider using " "_ecvt_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl ecvt( + double _Value, + int _DigitCount, + int* _PtDec, + int* _PtSign + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_fcvt" ". See online help for details.")) __declspec(deprecated("This function or variable may be unsafe. Consider using " "_fcvt_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl fcvt( + double _Value, + int _FractionalDigitCount, + int* _PtDec, + int* _PtSign + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_gcvt" ". See online help for details.")) __declspec(deprecated("This function or variable may be unsafe. Consider using " "_fcvt_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl gcvt( + double _Value, + int _DigitCount, + char* _DstBuf + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_itoa" ". See online help for details.")) __declspec(deprecated("This function or variable may be unsafe. Consider using " "_itoa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl itoa( + int _Value, + char* _Buffer, + int _Radix + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_ltoa" ". See online help for details.")) __declspec(deprecated("This function or variable may be unsafe. Consider using " "_ltoa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl ltoa( + long _Value, + char* _Buffer, + int _Radix + ); + + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_swab" ". See online help for details.")) + void __cdecl swab( + char* _Buf1, + char* _Buf2, + int _SizeInBytes + ); + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_ultoa" ". See online help for details.")) __declspec(deprecated("This function or variable may be unsafe. Consider using " "_ultoa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) + char* __cdecl ultoa( + unsigned long _Value, + char* _Buffer, + int _Radix + ); + + + + __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_putenv" ". See online help for details.")) + int __cdecl putenv( + char const* _EnvString + ); + +#pragma warning(pop) + + _onexit_t __cdecl onexit( _onexit_t _Func); + + + + + +#pragma pack(pop) +#pragma clang diagnostic pop +#pragma warning(pop) +# 276 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 2 3 +# 301 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +typedef enum tagREGCLS +{ + REGCLS_SINGLEUSE = 0, + REGCLS_MULTIPLEUSE = 1, + + REGCLS_MULTI_SEPARATE = 2, + + REGCLS_SUSPENDED = 4, + + REGCLS_SURROGATE = 8, + + + + REGCLS_AGILE = 0x10, +# 323 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +} REGCLS; + ; + + +typedef struct IRpcStubBuffer IRpcStubBuffer; +typedef struct IRpcChannelBuffer IRpcChannelBuffer; + + +typedef enum tagCOINITBASE +{ + + + + COINITBASE_MULTITHREADED = 0x0, + +} COINITBASE; + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 1 3 +# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 +typedef struct IUnknown IUnknown; + + + + + + +typedef struct AsyncIUnknown AsyncIUnknown; + + + + + + +typedef struct IClassFactory IClassFactory; +# 96 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0000_v0_0_s_ifspec; + + + + + + + +typedef IUnknown *LPUNKNOWN; +# 174 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 +extern const IID IID_IUnknown; +# 198 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 + typedef struct IUnknownVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IUnknown * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IUnknown * This); + + + ULONG ( __stdcall *Release )( + IUnknown * This); + + + } IUnknownVtbl; + + struct IUnknown + { + struct IUnknownVtbl *lpVtbl; + }; +# 246 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 +HRESULT __stdcall IUnknown_QueryInterface_Proxy( + IUnknown * This, + const IID * const riid, + + void **ppvObject); + + +void __stdcall IUnknown_QueryInterface_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +ULONG __stdcall IUnknown_AddRef_Proxy( + IUnknown * This); + + +void __stdcall IUnknown_AddRef_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +ULONG __stdcall IUnknown_Release_Proxy( + IUnknown * This); + + +void __stdcall IUnknown_Release_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 296 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0001_v0_0_s_ifspec; +# 306 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 +extern const IID IID_AsyncIUnknown; +# 334 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 + typedef struct AsyncIUnknownVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + AsyncIUnknown * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + AsyncIUnknown * This); + + + ULONG ( __stdcall *Release )( + AsyncIUnknown * This); + + + HRESULT ( __stdcall *Begin_QueryInterface )( + AsyncIUnknown * This, + const IID * const riid); + + + HRESULT ( __stdcall *Finish_QueryInterface )( + AsyncIUnknown * This, + + void **ppvObject); + + + HRESULT ( __stdcall *Begin_AddRef )( + AsyncIUnknown * This); + + + ULONG ( __stdcall *Finish_AddRef )( + AsyncIUnknown * This); + + + HRESULT ( __stdcall *Begin_Release )( + AsyncIUnknown * This); + + + ULONG ( __stdcall *Finish_Release )( + AsyncIUnknown * This); + + + } AsyncIUnknownVtbl; + + struct AsyncIUnknown + { + struct AsyncIUnknownVtbl *lpVtbl; + }; +# 441 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0002_v0_0_s_ifspec; + + + + + + + +typedef IClassFactory *LPCLASSFACTORY; + + +extern const IID IID_IClassFactory; +# 477 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 + typedef struct IClassFactoryVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IClassFactory * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IClassFactory * This); + + + ULONG ( __stdcall *Release )( + IClassFactory * This); + + + HRESULT ( __stdcall *CreateInstance )( + IClassFactory * This, + + IUnknown *pUnkOuter, + + const IID * const riid, + + void **ppvObject); + + + HRESULT ( __stdcall *LockServer )( + IClassFactory * This, + BOOL fLock); + + + } IClassFactoryVtbl; + + struct IClassFactory + { + struct IClassFactoryVtbl *lpVtbl; + }; +# 547 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 + HRESULT __stdcall IClassFactory_RemoteCreateInstance_Proxy( + IClassFactory * This, + const IID * const riid, + IUnknown **ppvObject); + + +void __stdcall IClassFactory_RemoteCreateInstance_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IClassFactory_RemoteLockServer_Proxy( + IClassFactory * This, + BOOL fLock); + + +void __stdcall IClassFactory_RemoteLockServer_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 583 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0003_v0_0_s_ifspec; + + + + HRESULT __stdcall IClassFactory_CreateInstance_Proxy( + IClassFactory * This, + + IUnknown *pUnkOuter, + + const IID * const riid, + + void **ppvObject); + + + HRESULT __stdcall IClassFactory_CreateInstance_Stub( + IClassFactory * This, + const IID * const riid, + IUnknown **ppvObject); + + HRESULT __stdcall IClassFactory_LockServer_Proxy( + IClassFactory * This, + BOOL fLock); + + + HRESULT __stdcall IClassFactory_LockServer_Stub( + IClassFactory * This, + BOOL fLock); +# 342 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 2 3 +# 363 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 1 3 +# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef struct IMarshal IMarshal; + + + + + + +typedef struct INoMarshal INoMarshal; + + + + + + +typedef struct IAgileObject IAgileObject; + + + + + + +typedef struct IActivationFilter IActivationFilter; + + + + + + +typedef struct IMarshal2 IMarshal2; + + + + + + +typedef struct IMalloc IMalloc; + + + + + + +typedef struct IStdMarshalInfo IStdMarshalInfo; + + + + + + +typedef struct IExternalConnection IExternalConnection; + + + + + + +typedef struct IMultiQI IMultiQI; + + + + + + +typedef struct AsyncIMultiQI AsyncIMultiQI; + + + + + + +typedef struct IInternalUnknown IInternalUnknown; + + + + + + +typedef struct IEnumUnknown IEnumUnknown; + + + + + + +typedef struct IEnumString IEnumString; + + + + + + +typedef struct ISequentialStream ISequentialStream; + + + + + + +typedef struct IStream IStream; + + + + + + +typedef struct IRpcChannelBuffer IRpcChannelBuffer; + + + + + + +typedef struct IRpcChannelBuffer2 IRpcChannelBuffer2; + + + + + + +typedef struct IAsyncRpcChannelBuffer IAsyncRpcChannelBuffer; + + + + + + +typedef struct IRpcChannelBuffer3 IRpcChannelBuffer3; + + + + + + +typedef struct IRpcSyntaxNegotiate IRpcSyntaxNegotiate; + + + + + + +typedef struct IRpcProxyBuffer IRpcProxyBuffer; + + + + + + +typedef struct IRpcStubBuffer IRpcStubBuffer; + + + + + + +typedef struct IPSFactoryBuffer IPSFactoryBuffer; + + + + + + +typedef struct IChannelHook IChannelHook; + + + + + + +typedef struct IClientSecurity IClientSecurity; + + + + + + +typedef struct IServerSecurity IServerSecurity; + + + + + + +typedef struct IRpcOptions IRpcOptions; + + + + + + +typedef struct IGlobalOptions IGlobalOptions; + + + + + + +typedef struct ISurrogate ISurrogate; + + + + + + +typedef struct IGlobalInterfaceTable IGlobalInterfaceTable; + + + + + + +typedef struct ISynchronize ISynchronize; + + + + + + +typedef struct ISynchronizeHandle ISynchronizeHandle; + + + + + + +typedef struct ISynchronizeEvent ISynchronizeEvent; + + + + + + +typedef struct ISynchronizeContainer ISynchronizeContainer; + + + + + + +typedef struct ISynchronizeMutex ISynchronizeMutex; + + + + + + +typedef struct ICancelMethodCalls ICancelMethodCalls; + + + + + + +typedef struct IAsyncManager IAsyncManager; + + + + + + +typedef struct ICallFactory ICallFactory; + + + + + + +typedef struct IRpcHelper IRpcHelper; + + + + + + +typedef struct IReleaseMarshalBuffers IReleaseMarshalBuffers; + + + + + + +typedef struct IWaitMultiple IWaitMultiple; + + + + + + +typedef struct IAddrTrackingControl IAddrTrackingControl; + + + + + + +typedef struct IAddrExclusionControl IAddrExclusionControl; + + + + + + +typedef struct IPipeByte IPipeByte; + + + + + + +typedef struct AsyncIPipeByte AsyncIPipeByte; + + + + + + +typedef struct IPipeLong IPipeLong; + + + + + + +typedef struct AsyncIPipeLong AsyncIPipeLong; + + + + + + +typedef struct IPipeDouble IPipeDouble; + + + + + + +typedef struct AsyncIPipeDouble AsyncIPipeDouble; + + + + + + +typedef struct IEnumContextProps IEnumContextProps; + + + + + + +typedef struct IContext IContext; + + + + + + +typedef struct IObjContext IObjContext; + + + + + + +typedef struct IComThreadingInfo IComThreadingInfo; + + + + + + +typedef struct IProcessInitControl IProcessInitControl; + + + + + + +typedef struct IFastRundown IFastRundown; + + + + + + +typedef struct IMarshalingStream IMarshalingStream; + + + + + + +typedef struct IAgileReference IAgileReference; + + + + + + +typedef struct IMachineGlobalObjectTable IMachineGlobalObjectTable; + + + + + + +typedef struct ISupportAllowLowerTrustActivation ISupportAllowLowerTrustActivation; +# 499 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +#pragma warning(push) + + + +#pragma warning(disable: 4820) + +#pragma warning(disable: 4201) +# 528 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef struct _COSERVERINFO + { + DWORD dwReserved1; + LPWSTR pwszName; + COAUTHINFO *pAuthInfo; + DWORD dwReserved2; + } COSERVERINFO; + + + + +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0000_v0_0_s_ifspec; + + + + + + + +typedef IMarshal *LPMARSHAL; + + +extern const IID IID_IMarshal; +# 622 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IMarshalVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IMarshal * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IMarshal * This); + + + ULONG ( __stdcall *Release )( + IMarshal * This); + + + HRESULT ( __stdcall *GetUnmarshalClass )( + IMarshal * This, + + const IID * const riid, + + void *pv, + + DWORD dwDestContext, + + void *pvDestContext, + + DWORD mshlflags, + + CLSID *pCid); + + + HRESULT ( __stdcall *GetMarshalSizeMax )( + IMarshal * This, + + const IID * const riid, + + void *pv, + + DWORD dwDestContext, + + void *pvDestContext, + + DWORD mshlflags, + + DWORD *pSize); + + + HRESULT ( __stdcall *MarshalInterface )( + IMarshal * This, + + IStream *pStm, + + const IID * const riid, + + void *pv, + + DWORD dwDestContext, + + void *pvDestContext, + + DWORD mshlflags); + + + HRESULT ( __stdcall *UnmarshalInterface )( + IMarshal * This, + + IStream *pStm, + + const IID * const riid, + + void **ppv); + + + HRESULT ( __stdcall *ReleaseMarshalData )( + IMarshal * This, + + IStream *pStm); + + + HRESULT ( __stdcall *DisconnectObject )( + IMarshal * This, + + DWORD dwReserved); + + + } IMarshalVtbl; + + struct IMarshal + { + struct IMarshalVtbl *lpVtbl; + }; +# 770 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_INoMarshal; +# 783 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct INoMarshalVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + INoMarshal * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + INoMarshal * This); + + + ULONG ( __stdcall *Release )( + INoMarshal * This); + + + } INoMarshalVtbl; + + struct INoMarshal + { + struct INoMarshalVtbl *lpVtbl; + }; +# 843 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IAgileObject; +# 856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IAgileObjectVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IAgileObject * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IAgileObject * This); + + + ULONG ( __stdcall *Release )( + IAgileObject * This); + + + } IAgileObjectVtbl; + + struct IAgileObject + { + struct IAgileObjectVtbl *lpVtbl; + }; +# 918 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0003_v0_0_s_ifspec; + + + + + + + +typedef +enum tagACTIVATIONTYPE + { + ACTIVATIONTYPE_UNCATEGORIZED = 0, + ACTIVATIONTYPE_FROM_MONIKER = 0x1, + ACTIVATIONTYPE_FROM_DATA = 0x2, + ACTIVATIONTYPE_FROM_STORAGE = 0x4, + ACTIVATIONTYPE_FROM_STREAM = 0x8, + ACTIVATIONTYPE_FROM_FILE = 0x10 + } ACTIVATIONTYPE; + + +extern const IID IID_IActivationFilter; +# 957 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IActivationFilterVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IActivationFilter * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IActivationFilter * This); + + + ULONG ( __stdcall *Release )( + IActivationFilter * This); + + + HRESULT ( __stdcall *HandleActivation )( + IActivationFilter * This, + DWORD dwActivationType, + const IID * const rclsid, + CLSID *pReplacementClsId); + + + } IActivationFilterVtbl; + + struct IActivationFilter + { + struct IActivationFilterVtbl *lpVtbl; + }; +# 1026 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef IMarshal2 *LPMARSHAL2; + + +extern const IID IID_IMarshal2; +# 1042 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IMarshal2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IMarshal2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IMarshal2 * This); + + + ULONG ( __stdcall *Release )( + IMarshal2 * This); + + + HRESULT ( __stdcall *GetUnmarshalClass )( + IMarshal2 * This, + + const IID * const riid, + + void *pv, + + DWORD dwDestContext, + + void *pvDestContext, + + DWORD mshlflags, + + CLSID *pCid); + + + HRESULT ( __stdcall *GetMarshalSizeMax )( + IMarshal2 * This, + + const IID * const riid, + + void *pv, + + DWORD dwDestContext, + + void *pvDestContext, + + DWORD mshlflags, + + DWORD *pSize); + + + HRESULT ( __stdcall *MarshalInterface )( + IMarshal2 * This, + + IStream *pStm, + + const IID * const riid, + + void *pv, + + DWORD dwDestContext, + + void *pvDestContext, + + DWORD mshlflags); + + + HRESULT ( __stdcall *UnmarshalInterface )( + IMarshal2 * This, + + IStream *pStm, + + const IID * const riid, + + void **ppv); + + + HRESULT ( __stdcall *ReleaseMarshalData )( + IMarshal2 * This, + + IStream *pStm); + + + HRESULT ( __stdcall *DisconnectObject )( + IMarshal2 * This, + + DWORD dwReserved); + + + } IMarshal2Vtbl; + + struct IMarshal2 + { + struct IMarshal2Vtbl *lpVtbl; + }; +# 1190 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef IMalloc *LPMALLOC; + + +extern const IID IID_IMalloc; +# 1230 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IMallocVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IMalloc * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IMalloc * This); + + + ULONG ( __stdcall *Release )( + IMalloc * This); + + + void *( __stdcall *Alloc )( + IMalloc * This, + + SIZE_T cb); + + + void *( __stdcall *Realloc )( + IMalloc * This, + + void *pv, + + SIZE_T cb); + + + void ( __stdcall *Free )( + IMalloc * This, + + void *pv); + + + SIZE_T ( __stdcall *GetSize )( + IMalloc * This, + + void *pv); + + + int ( __stdcall *DidAlloc )( + IMalloc * This, + + void *pv); + + + void ( __stdcall *HeapMinimize )( + IMalloc * This); + + + } IMallocVtbl; + + struct IMalloc + { + struct IMallocVtbl *lpVtbl; + }; +# 1343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef IStdMarshalInfo *LPSTDMARSHALINFO; + + +extern const IID IID_IStdMarshalInfo; +# 1367 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IStdMarshalInfoVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IStdMarshalInfo * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IStdMarshalInfo * This); + + + ULONG ( __stdcall *Release )( + IStdMarshalInfo * This); + + + HRESULT ( __stdcall *GetClassForHandler )( + IStdMarshalInfo * This, + + DWORD dwDestContext, + + void *pvDestContext, + + CLSID *pClsid); + + + } IStdMarshalInfoVtbl; + + struct IStdMarshalInfo + { + struct IStdMarshalInfoVtbl *lpVtbl; + }; +# 1439 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef IExternalConnection *LPEXTERNALCONNECTION; + +typedef +enum tagEXTCONN + { + EXTCONN_STRONG = 0x1, + EXTCONN_WEAK = 0x2, + EXTCONN_CALLABLE = 0x4 + } EXTCONN; + + +extern const IID IID_IExternalConnection; +# 1477 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IExternalConnectionVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IExternalConnection * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IExternalConnection * This); + + + ULONG ( __stdcall *Release )( + IExternalConnection * This); + + + DWORD ( __stdcall *AddConnection )( + IExternalConnection * This, + + DWORD extconn, + + DWORD reserved); + + + DWORD ( __stdcall *ReleaseConnection )( + IExternalConnection * This, + + DWORD extconn, + + DWORD reserved, + + BOOL fLastReleaseCloses); + + + } IExternalConnectionVtbl; + + struct IExternalConnection + { + struct IExternalConnectionVtbl *lpVtbl; + }; +# 1557 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef IMultiQI *LPMULTIQI; + + + + + +typedef struct tagMULTI_QI + { + const IID *pIID; + IUnknown *pItf; + HRESULT hr; + } MULTI_QI; + + + +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0008_v0_0_s_ifspec; +# 1582 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IMultiQI; +# 1601 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IMultiQIVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IMultiQI * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IMultiQI * This); + + + ULONG ( __stdcall *Release )( + IMultiQI * This); + + + HRESULT ( __stdcall *QueryMultipleInterfaces )( + IMultiQI * This, + + ULONG cMQIs, + + MULTI_QI *pMQIs); + + + } IMultiQIVtbl; + + struct IMultiQI + { + struct IMultiQIVtbl *lpVtbl; + }; +# 1672 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_AsyncIMultiQI; +# 1695 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct AsyncIMultiQIVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + AsyncIMultiQI * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + AsyncIMultiQI * This); + + + ULONG ( __stdcall *Release )( + AsyncIMultiQI * This); + + + HRESULT ( __stdcall *Begin_QueryMultipleInterfaces )( + AsyncIMultiQI * This, + + ULONG cMQIs, + + MULTI_QI *pMQIs); + + + HRESULT ( __stdcall *Finish_QueryMultipleInterfaces )( + AsyncIMultiQI * This, + + MULTI_QI *pMQIs); + + + } AsyncIMultiQIVtbl; + + struct AsyncIMultiQI + { + struct AsyncIMultiQIVtbl *lpVtbl; + }; +# 1777 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0009_v0_0_s_ifspec; +# 1787 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IInternalUnknown; +# 1806 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IInternalUnknownVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternalUnknown * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternalUnknown * This); + + + ULONG ( __stdcall *Release )( + IInternalUnknown * This); + + + HRESULT ( __stdcall *QueryInternalInterface )( + IInternalUnknown * This, + + const IID * const riid, + + void **ppv); + + + } IInternalUnknownVtbl; + + struct IInternalUnknown + { + struct IInternalUnknownVtbl *lpVtbl; + }; +# 1879 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0010_v0_0_s_ifspec; + + + + + + + +typedef IEnumUnknown *LPENUMUNKNOWN; + + +extern const IID IID_IEnumUnknown; +# 1920 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IEnumUnknownVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IEnumUnknown * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IEnumUnknown * This); + + + ULONG ( __stdcall *Release )( + IEnumUnknown * This); + + + HRESULT ( __stdcall *Next )( + IEnumUnknown * This, + + ULONG celt, + + IUnknown **rgelt, + + ULONG *pceltFetched); + + + HRESULT ( __stdcall *Skip )( + IEnumUnknown * This, + ULONG celt); + + + HRESULT ( __stdcall *Reset )( + IEnumUnknown * This); + + + HRESULT ( __stdcall *Clone )( + IEnumUnknown * This, + IEnumUnknown **ppenum); + + + } IEnumUnknownVtbl; + + struct IEnumUnknown + { + struct IEnumUnknownVtbl *lpVtbl; + }; +# 2005 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + HRESULT __stdcall IEnumUnknown_RemoteNext_Proxy( + IEnumUnknown * This, + ULONG celt, + IUnknown **rgelt, + ULONG *pceltFetched); + + +void __stdcall IEnumUnknown_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 2029 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef IEnumString *LPENUMSTRING; + + +extern const IID IID_IEnumString; +# 2060 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IEnumStringVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IEnumString * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IEnumString * This); + + + ULONG ( __stdcall *Release )( + IEnumString * This); + + + HRESULT ( __stdcall *Next )( + IEnumString * This, + ULONG celt, + + LPOLESTR *rgelt, + + ULONG *pceltFetched); + + + HRESULT ( __stdcall *Skip )( + IEnumString * This, + ULONG celt); + + + HRESULT ( __stdcall *Reset )( + IEnumString * This); + + + HRESULT ( __stdcall *Clone )( + IEnumString * This, + IEnumString **ppenum); + + + } IEnumStringVtbl; + + struct IEnumString + { + struct IEnumStringVtbl *lpVtbl; + }; +# 2144 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + HRESULT __stdcall IEnumString_RemoteNext_Proxy( + IEnumString * This, + ULONG celt, + LPOLESTR *rgelt, + ULONG *pceltFetched); + + +void __stdcall IEnumString_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 2169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_ISequentialStream; +# 2198 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct ISequentialStreamVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ISequentialStream * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ISequentialStream * This); + + + ULONG ( __stdcall *Release )( + ISequentialStream * This); + + + HRESULT ( __stdcall *Read )( + ISequentialStream * This, + + void *pv, + + ULONG cb, + + ULONG *pcbRead); + + + HRESULT ( __stdcall *Write )( + ISequentialStream * This, + + const void *pv, + + ULONG cb, + + ULONG *pcbWritten); + + + } ISequentialStreamVtbl; + + struct ISequentialStream + { + struct ISequentialStreamVtbl *lpVtbl; + }; +# 2273 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + HRESULT __stdcall ISequentialStream_RemoteRead_Proxy( + ISequentialStream * This, + byte *pv, + ULONG cb, + ULONG *pcbRead); + + +void __stdcall ISequentialStream_RemoteRead_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ISequentialStream_RemoteWrite_Proxy( + ISequentialStream * This, + const byte *pv, + ULONG cb, + ULONG *pcbWritten); + + +void __stdcall ISequentialStream_RemoteWrite_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 2311 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef IStream *LPSTREAM; + +typedef struct tagSTATSTG + { + LPOLESTR pwcsName; + DWORD type; + ULARGE_INTEGER cbSize; + FILETIME mtime; + FILETIME ctime; + FILETIME atime; + DWORD grfMode; + DWORD grfLocksSupported; + CLSID clsid; + DWORD grfStateBits; + DWORD reserved; + } STATSTG; + +typedef +enum tagSTGTY + { + STGTY_STORAGE = 1, + STGTY_STREAM = 2, + STGTY_LOCKBYTES = 3, + STGTY_PROPERTY = 4 + } STGTY; + +typedef +enum tagSTREAM_SEEK + { + STREAM_SEEK_SET = 0, + STREAM_SEEK_CUR = 1, + STREAM_SEEK_END = 2 + } STREAM_SEEK; + +typedef +enum tagLOCKTYPE + { + LOCK_WRITE = 1, + LOCK_EXCLUSIVE = 2, + LOCK_ONLYONCE = 4 + } LOCKTYPE; + + +extern const IID IID_IStream; +# 2407 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IStreamVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IStream * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IStream * This); + + + ULONG ( __stdcall *Release )( + IStream * This); + + + HRESULT ( __stdcall *Read )( + IStream * This, + + void *pv, + + ULONG cb, + + ULONG *pcbRead); + + + HRESULT ( __stdcall *Write )( + IStream * This, + + const void *pv, + + ULONG cb, + + ULONG *pcbWritten); + + + HRESULT ( __stdcall *Seek )( + IStream * This, + LARGE_INTEGER dlibMove, + DWORD dwOrigin, + + ULARGE_INTEGER *plibNewPosition); + + + HRESULT ( __stdcall *SetSize )( + IStream * This, + ULARGE_INTEGER libNewSize); + + + HRESULT ( __stdcall *CopyTo )( + IStream * This, + + IStream *pstm, + ULARGE_INTEGER cb, + + ULARGE_INTEGER *pcbRead, + + ULARGE_INTEGER *pcbWritten); + + + HRESULT ( __stdcall *Commit )( + IStream * This, + DWORD grfCommitFlags); + + + HRESULT ( __stdcall *Revert )( + IStream * This); + + + HRESULT ( __stdcall *LockRegion )( + IStream * This, + ULARGE_INTEGER libOffset, + ULARGE_INTEGER cb, + DWORD dwLockType); + + + HRESULT ( __stdcall *UnlockRegion )( + IStream * This, + ULARGE_INTEGER libOffset, + ULARGE_INTEGER cb, + DWORD dwLockType); + + + HRESULT ( __stdcall *Stat )( + IStream * This, + STATSTG *pstatstg, + DWORD grfStatFlag); + + + HRESULT ( __stdcall *Clone )( + IStream * This, + IStream **ppstm); + + + } IStreamVtbl; + + struct IStream + { + struct IStreamVtbl *lpVtbl; + }; +# 2568 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + HRESULT __stdcall IStream_RemoteSeek_Proxy( + IStream * This, + LARGE_INTEGER dlibMove, + DWORD dwOrigin, + ULARGE_INTEGER *plibNewPosition); + + +void __stdcall IStream_RemoteSeek_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IStream_RemoteCopyTo_Proxy( + IStream * This, + IStream *pstm, + ULARGE_INTEGER cb, + ULARGE_INTEGER *pcbRead, + ULARGE_INTEGER *pcbWritten); + + +void __stdcall IStream_RemoteCopyTo_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 2607 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef ULONG RPCOLEDATAREP; + +typedef struct tagRPCOLEMESSAGE + { + void *reserved1; + RPCOLEDATAREP dataRepresentation; + void *Buffer; + ULONG cbBuffer; + ULONG iMethod; + void *reserved2[ 5 ]; + ULONG rpcFlags; + } RPCOLEMESSAGE; + +typedef RPCOLEMESSAGE *PRPCOLEMESSAGE; + + +extern const IID IID_IRpcChannelBuffer; +# 2660 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IRpcChannelBufferVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IRpcChannelBuffer * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IRpcChannelBuffer * This); + + + ULONG ( __stdcall *Release )( + IRpcChannelBuffer * This); + + + HRESULT ( __stdcall *GetBuffer )( + IRpcChannelBuffer * This, + + RPCOLEMESSAGE *pMessage, + + const IID * const riid); + + + HRESULT ( __stdcall *SendReceive )( + IRpcChannelBuffer * This, + + RPCOLEMESSAGE *pMessage, + + ULONG *pStatus); + + + HRESULT ( __stdcall *FreeBuffer )( + IRpcChannelBuffer * This, + + RPCOLEMESSAGE *pMessage); + + + HRESULT ( __stdcall *GetDestCtx )( + IRpcChannelBuffer * This, + + DWORD *pdwDestContext, + + void **ppvDestContext); + + + HRESULT ( __stdcall *IsConnected )( + IRpcChannelBuffer * This); + + + } IRpcChannelBufferVtbl; + + struct IRpcChannelBuffer + { + struct IRpcChannelBufferVtbl *lpVtbl; + }; +# 2771 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0015_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0015_v0_0_s_ifspec; +# 2781 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IRpcChannelBuffer2; +# 2798 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IRpcChannelBuffer2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IRpcChannelBuffer2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IRpcChannelBuffer2 * This); + + + ULONG ( __stdcall *Release )( + IRpcChannelBuffer2 * This); + + + HRESULT ( __stdcall *GetBuffer )( + IRpcChannelBuffer2 * This, + + RPCOLEMESSAGE *pMessage, + + const IID * const riid); + + + HRESULT ( __stdcall *SendReceive )( + IRpcChannelBuffer2 * This, + + RPCOLEMESSAGE *pMessage, + + ULONG *pStatus); + + + HRESULT ( __stdcall *FreeBuffer )( + IRpcChannelBuffer2 * This, + + RPCOLEMESSAGE *pMessage); + + + HRESULT ( __stdcall *GetDestCtx )( + IRpcChannelBuffer2 * This, + + DWORD *pdwDestContext, + + void **ppvDestContext); + + + HRESULT ( __stdcall *IsConnected )( + IRpcChannelBuffer2 * This); + + + HRESULT ( __stdcall *GetProtocolVersion )( + IRpcChannelBuffer2 * This, + + DWORD *pdwVersion); + + + } IRpcChannelBuffer2Vtbl; + + struct IRpcChannelBuffer2 + { + struct IRpcChannelBuffer2Vtbl *lpVtbl; + }; +# 2917 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IAsyncRpcChannelBuffer; +# 2952 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IAsyncRpcChannelBufferVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IAsyncRpcChannelBuffer * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IAsyncRpcChannelBuffer * This); + + + ULONG ( __stdcall *Release )( + IAsyncRpcChannelBuffer * This); + + + HRESULT ( __stdcall *GetBuffer )( + IAsyncRpcChannelBuffer * This, + + RPCOLEMESSAGE *pMessage, + + const IID * const riid); + + + HRESULT ( __stdcall *SendReceive )( + IAsyncRpcChannelBuffer * This, + + RPCOLEMESSAGE *pMessage, + + ULONG *pStatus); + + + HRESULT ( __stdcall *FreeBuffer )( + IAsyncRpcChannelBuffer * This, + + RPCOLEMESSAGE *pMessage); + + + HRESULT ( __stdcall *GetDestCtx )( + IAsyncRpcChannelBuffer * This, + + DWORD *pdwDestContext, + + void **ppvDestContext); + + + HRESULT ( __stdcall *IsConnected )( + IAsyncRpcChannelBuffer * This); + + + HRESULT ( __stdcall *GetProtocolVersion )( + IAsyncRpcChannelBuffer * This, + + DWORD *pdwVersion); + + + HRESULT ( __stdcall *Send )( + IAsyncRpcChannelBuffer * This, + + RPCOLEMESSAGE *pMsg, + + ISynchronize *pSync, + + ULONG *pulStatus); + + + HRESULT ( __stdcall *Receive )( + IAsyncRpcChannelBuffer * This, + + RPCOLEMESSAGE *pMsg, + + ULONG *pulStatus); + + + HRESULT ( __stdcall *GetDestCtxEx )( + IAsyncRpcChannelBuffer * This, + + RPCOLEMESSAGE *pMsg, + + DWORD *pdwDestContext, + + void **ppvDestContext); + + + } IAsyncRpcChannelBufferVtbl; + + struct IAsyncRpcChannelBuffer + { + struct IAsyncRpcChannelBufferVtbl *lpVtbl; + }; +# 3109 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IRpcChannelBuffer3; +# 3168 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IRpcChannelBuffer3Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IRpcChannelBuffer3 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IRpcChannelBuffer3 * This); + + + ULONG ( __stdcall *Release )( + IRpcChannelBuffer3 * This); + + + HRESULT ( __stdcall *GetBuffer )( + IRpcChannelBuffer3 * This, + + RPCOLEMESSAGE *pMessage, + + const IID * const riid); + + + HRESULT ( __stdcall *SendReceive )( + IRpcChannelBuffer3 * This, + + RPCOLEMESSAGE *pMessage, + + ULONG *pStatus); + + + HRESULT ( __stdcall *FreeBuffer )( + IRpcChannelBuffer3 * This, + + RPCOLEMESSAGE *pMessage); + + + HRESULT ( __stdcall *GetDestCtx )( + IRpcChannelBuffer3 * This, + + DWORD *pdwDestContext, + + void **ppvDestContext); + + + HRESULT ( __stdcall *IsConnected )( + IRpcChannelBuffer3 * This); + + + HRESULT ( __stdcall *GetProtocolVersion )( + IRpcChannelBuffer3 * This, + + DWORD *pdwVersion); + + + HRESULT ( __stdcall *Send )( + IRpcChannelBuffer3 * This, + + RPCOLEMESSAGE *pMsg, + + ULONG *pulStatus); + + + HRESULT ( __stdcall *Receive )( + IRpcChannelBuffer3 * This, + + RPCOLEMESSAGE *pMsg, + + ULONG ulSize, + + ULONG *pulStatus); + + + HRESULT ( __stdcall *Cancel )( + IRpcChannelBuffer3 * This, + + RPCOLEMESSAGE *pMsg); + + + HRESULT ( __stdcall *GetCallContext )( + IRpcChannelBuffer3 * This, + + RPCOLEMESSAGE *pMsg, + + const IID * const riid, + + void **pInterface); + + + HRESULT ( __stdcall *GetDestCtxEx )( + IRpcChannelBuffer3 * This, + + RPCOLEMESSAGE *pMsg, + + DWORD *pdwDestContext, + + void **ppvDestContext); + + + HRESULT ( __stdcall *GetState )( + IRpcChannelBuffer3 * This, + + RPCOLEMESSAGE *pMsg, + + DWORD *pState); + + + HRESULT ( __stdcall *RegisterAsync )( + IRpcChannelBuffer3 * This, + + RPCOLEMESSAGE *pMsg, + + IAsyncManager *pAsyncMgr); + + + } IRpcChannelBuffer3Vtbl; + + struct IRpcChannelBuffer3 + { + struct IRpcChannelBuffer3Vtbl *lpVtbl; + }; +# 3369 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IRpcSyntaxNegotiate; +# 3386 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IRpcSyntaxNegotiateVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IRpcSyntaxNegotiate * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IRpcSyntaxNegotiate * This); + + + ULONG ( __stdcall *Release )( + IRpcSyntaxNegotiate * This); + + + HRESULT ( __stdcall *NegotiateSyntax )( + IRpcSyntaxNegotiate * This, + + RPCOLEMESSAGE *pMsg); + + + } IRpcSyntaxNegotiateVtbl; + + struct IRpcSyntaxNegotiate + { + struct IRpcSyntaxNegotiateVtbl *lpVtbl; + }; +# 3455 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IRpcProxyBuffer; +# 3474 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IRpcProxyBufferVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IRpcProxyBuffer * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IRpcProxyBuffer * This); + + + ULONG ( __stdcall *Release )( + IRpcProxyBuffer * This); + + + HRESULT ( __stdcall *Connect )( + IRpcProxyBuffer * This, + + IRpcChannelBuffer *pRpcChannelBuffer); + + + void ( __stdcall *Disconnect )( + IRpcProxyBuffer * This); + + + } IRpcProxyBufferVtbl; + + struct IRpcProxyBuffer + { + struct IRpcProxyBufferVtbl *lpVtbl; + }; +# 3552 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0020_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0020_v0_0_s_ifspec; +# 3562 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IRpcStubBuffer; +# 3601 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IRpcStubBufferVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IRpcStubBuffer * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IRpcStubBuffer * This); + + + ULONG ( __stdcall *Release )( + IRpcStubBuffer * This); + + + HRESULT ( __stdcall *Connect )( + IRpcStubBuffer * This, + + IUnknown *pUnkServer); + + + void ( __stdcall *Disconnect )( + IRpcStubBuffer * This); + + + HRESULT ( __stdcall *Invoke )( + IRpcStubBuffer * This, + + RPCOLEMESSAGE *_prpcmsg, + + IRpcChannelBuffer *_pRpcChannelBuffer); + + + IRpcStubBuffer *( __stdcall *IsIIDSupported )( + IRpcStubBuffer * This, + + const IID * const riid); + + + ULONG ( __stdcall *CountRefs )( + IRpcStubBuffer * This); + + + HRESULT ( __stdcall *DebugServerQueryInterface )( + IRpcStubBuffer * This, + + void **ppv); + + + void ( __stdcall *DebugServerRelease )( + IRpcStubBuffer * This, + + void *pv); + + + } IRpcStubBufferVtbl; + + struct IRpcStubBuffer + { + struct IRpcStubBufferVtbl *lpVtbl; + }; +# 3722 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IPSFactoryBuffer; +# 3753 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IPSFactoryBufferVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IPSFactoryBuffer * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IPSFactoryBuffer * This); + + + ULONG ( __stdcall *Release )( + IPSFactoryBuffer * This); + + + HRESULT ( __stdcall *CreateProxy )( + IPSFactoryBuffer * This, + + IUnknown *pUnkOuter, + + const IID * const riid, + + IRpcProxyBuffer **ppProxy, + + void **ppv); + + + HRESULT ( __stdcall *CreateStub )( + IPSFactoryBuffer * This, + + const IID * const riid, + + IUnknown *pUnkServer, + + IRpcStubBuffer **ppStub); + + + } IPSFactoryBufferVtbl; + + struct IPSFactoryBuffer + { + struct IPSFactoryBufferVtbl *lpVtbl; + }; +# 3843 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef struct SChannelHookCallInfo + { + IID iid; + DWORD cbSize; + GUID uCausality; + DWORD dwServerPid; + DWORD iMethod; + void *pObject; + } SChannelHookCallInfo; + + + +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0022_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0022_v0_0_s_ifspec; +# 3865 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IChannelHook; +# 3944 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IChannelHookVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IChannelHook * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IChannelHook * This); + + + ULONG ( __stdcall *Release )( + IChannelHook * This); + + + void ( __stdcall *ClientGetSize )( + IChannelHook * This, + + const GUID * const uExtent, + + const IID * const riid, + + ULONG *pDataSize); + + + void ( __stdcall *ClientFillBuffer )( + IChannelHook * This, + + const GUID * const uExtent, + + const IID * const riid, + + ULONG *pDataSize, + + void *pDataBuffer); + + + void ( __stdcall *ClientNotify )( + IChannelHook * This, + + const GUID * const uExtent, + + const IID * const riid, + + ULONG cbDataSize, + + void *pDataBuffer, + + DWORD lDataRep, + + HRESULT hrFault); + + + void ( __stdcall *ServerNotify )( + IChannelHook * This, + + const GUID * const uExtent, + + const IID * const riid, + + ULONG cbDataSize, + + void *pDataBuffer, + + DWORD lDataRep); + + + void ( __stdcall *ServerGetSize )( + IChannelHook * This, + + const GUID * const uExtent, + + const IID * const riid, + + HRESULT hrFault, + + ULONG *pDataSize); + + + void ( __stdcall *ServerFillBuffer )( + IChannelHook * This, + + const GUID * const uExtent, + + const IID * const riid, + + ULONG *pDataSize, + + void *pDataBuffer, + + HRESULT hrFault); + + + } IChannelHookVtbl; + + struct IChannelHook + { + struct IChannelHookVtbl *lpVtbl; + }; +# 4105 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0023_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0023_v0_0_s_ifspec; + + + + + + + +typedef struct tagSOLE_AUTHENTICATION_SERVICE + { + DWORD dwAuthnSvc; + DWORD dwAuthzSvc; + OLECHAR *pPrincipalName; + HRESULT hr; + } SOLE_AUTHENTICATION_SERVICE; + +typedef SOLE_AUTHENTICATION_SERVICE *PSOLE_AUTHENTICATION_SERVICE; + +typedef +enum tagEOLE_AUTHENTICATION_CAPABILITIES + { + EOAC_NONE = 0, + EOAC_MUTUAL_AUTH = 0x1, + EOAC_STATIC_CLOAKING = 0x20, + EOAC_DYNAMIC_CLOAKING = 0x40, + EOAC_ANY_AUTHORITY = 0x80, + EOAC_MAKE_FULLSIC = 0x100, + EOAC_DEFAULT = 0x800, + EOAC_SECURE_REFS = 0x2, + EOAC_ACCESS_CONTROL = 0x4, + EOAC_APPID = 0x8, + EOAC_DYNAMIC = 0x10, + EOAC_REQUIRE_FULLSIC = 0x200, + EOAC_AUTO_IMPERSONATE = 0x400, + EOAC_DISABLE_AAA = 0x1000, + EOAC_NO_CUSTOM_MARSHAL = 0x2000, + EOAC_RESERVED1 = 0x4000 + } EOLE_AUTHENTICATION_CAPABILITIES; + + + + + +typedef struct tagSOLE_AUTHENTICATION_INFO + { + DWORD dwAuthnSvc; + DWORD dwAuthzSvc; + void *pAuthInfo; + } SOLE_AUTHENTICATION_INFO; + +typedef struct tagSOLE_AUTHENTICATION_INFO *PSOLE_AUTHENTICATION_INFO; + +typedef struct tagSOLE_AUTHENTICATION_LIST + { + DWORD cAuthInfo; + SOLE_AUTHENTICATION_INFO *aAuthInfo; + } SOLE_AUTHENTICATION_LIST; + +typedef struct tagSOLE_AUTHENTICATION_LIST *PSOLE_AUTHENTICATION_LIST; + + +extern const IID IID_IClientSecurity; +# 4222 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IClientSecurityVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IClientSecurity * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IClientSecurity * This); + + + ULONG ( __stdcall *Release )( + IClientSecurity * This); + + + HRESULT ( __stdcall *QueryBlanket )( + IClientSecurity * This, + + IUnknown *pProxy, + + DWORD *pAuthnSvc, + + DWORD *pAuthzSvc, + + OLECHAR **pServerPrincName, + + DWORD *pAuthnLevel, + + DWORD *pImpLevel, + + void **pAuthInfo, + + DWORD *pCapabilites); + + + HRESULT ( __stdcall *SetBlanket )( + IClientSecurity * This, + + IUnknown *pProxy, + + DWORD dwAuthnSvc, + + DWORD dwAuthzSvc, + + OLECHAR *pServerPrincName, + + DWORD dwAuthnLevel, + + DWORD dwImpLevel, + + void *pAuthInfo, + + DWORD dwCapabilities); + + + HRESULT ( __stdcall *CopyProxy )( + IClientSecurity * This, + + IUnknown *pProxy, + + IUnknown **ppCopy); + + + } IClientSecurityVtbl; + + struct IClientSecurity + { + struct IClientSecurityVtbl *lpVtbl; + }; +# 4341 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0024_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0024_v0_0_s_ifspec; +# 4351 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IServerSecurity; +# 4386 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IServerSecurityVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IServerSecurity * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IServerSecurity * This); + + + ULONG ( __stdcall *Release )( + IServerSecurity * This); + + + HRESULT ( __stdcall *QueryBlanket )( + IServerSecurity * This, + + DWORD *pAuthnSvc, + + DWORD *pAuthzSvc, + + OLECHAR **pServerPrincName, + + DWORD *pAuthnLevel, + + DWORD *pImpLevel, + + void **pPrivs, + + DWORD *pCapabilities); + + + HRESULT ( __stdcall *ImpersonateClient )( + IServerSecurity * This); + + + HRESULT ( __stdcall *RevertToSelf )( + IServerSecurity * This); + + + BOOL ( __stdcall *IsImpersonating )( + IServerSecurity * This); + + + } IServerSecurityVtbl; + + struct IServerSecurity + { + struct IServerSecurityVtbl *lpVtbl; + }; +# 4484 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef +enum tagRPCOPT_PROPERTIES + { + COMBND_RPCTIMEOUT = 0x1, + COMBND_SERVER_LOCALITY = 0x2, + COMBND_RESERVED1 = 0x4, + COMBND_RESERVED2 = 0x5, + COMBND_RESERVED3 = 0x8, + COMBND_RESERVED4 = 0x10 + } RPCOPT_PROPERTIES; + +typedef +enum tagRPCOPT_SERVER_LOCALITY_VALUES + { + SERVER_LOCALITY_PROCESS_LOCAL = 0, + SERVER_LOCALITY_MACHINE_LOCAL = 1, + SERVER_LOCALITY_REMOTE = 2 + } RPCOPT_SERVER_LOCALITY_VALUES; + + + +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0025_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0025_v0_0_s_ifspec; +# 4515 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IRpcOptions; +# 4544 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IRpcOptionsVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IRpcOptions * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IRpcOptions * This); + + + ULONG ( __stdcall *Release )( + IRpcOptions * This); + + + HRESULT ( __stdcall *Set )( + IRpcOptions * This, + + IUnknown *pPrx, + + RPCOPT_PROPERTIES dwProperty, + + ULONG_PTR dwValue); + + + HRESULT ( __stdcall *Query )( + IRpcOptions * This, + + IUnknown *pPrx, + + RPCOPT_PROPERTIES dwProperty, + + ULONG_PTR *pdwValue); + + + } IRpcOptionsVtbl; + + struct IRpcOptions + { + struct IRpcOptionsVtbl *lpVtbl; + }; +# 4630 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef +enum tagGLOBALOPT_PROPERTIES + { + COMGLB_EXCEPTION_HANDLING = 1, + COMGLB_APPID = 2, + COMGLB_RPC_THREADPOOL_SETTING = 3, + COMGLB_RO_SETTINGS = 4, + COMGLB_UNMARSHALING_POLICY = 5, + COMGLB_PROPERTIES_RESERVED1 = 6, + COMGLB_PROPERTIES_RESERVED2 = 7, + COMGLB_PROPERTIES_RESERVED3 = 8 + } GLOBALOPT_PROPERTIES; + +typedef +enum tagGLOBALOPT_EH_VALUES + { + COMGLB_EXCEPTION_HANDLE = 0, + COMGLB_EXCEPTION_DONOT_HANDLE_FATAL = 1, + COMGLB_EXCEPTION_DONOT_HANDLE = COMGLB_EXCEPTION_DONOT_HANDLE_FATAL, + COMGLB_EXCEPTION_DONOT_HANDLE_ANY = 2 + } GLOBALOPT_EH_VALUES; + +typedef +enum tagGLOBALOPT_RPCTP_VALUES + { + COMGLB_RPC_THREADPOOL_SETTING_DEFAULT_POOL = 0, + COMGLB_RPC_THREADPOOL_SETTING_PRIVATE_POOL = 1 + } GLOBALOPT_RPCTP_VALUES; + +typedef +enum tagGLOBALOPT_RO_FLAGS + { + COMGLB_STA_MODALLOOP_REMOVE_TOUCH_MESSAGES = 0x1, + COMGLB_STA_MODALLOOP_SHARED_QUEUE_REMOVE_INPUT_MESSAGES = 0x2, + COMGLB_STA_MODALLOOP_SHARED_QUEUE_DONOT_REMOVE_INPUT_MESSAGES = 0x4, + COMGLB_FAST_RUNDOWN = 0x8, + COMGLB_RESERVED1 = 0x10, + COMGLB_RESERVED2 = 0x20, + COMGLB_RESERVED3 = 0x40, + COMGLB_STA_MODALLOOP_SHARED_QUEUE_REORDER_POINTER_MESSAGES = 0x80, + COMGLB_RESERVED4 = 0x100, + COMGLB_RESERVED5 = 0x200, + COMGLB_RESERVED6 = 0x400 + } GLOBALOPT_RO_FLAGS; + +typedef +enum tagGLOBALOPT_UNMARSHALING_POLICY_VALUES + { + COMGLB_UNMARSHALING_POLICY_NORMAL = 0, + COMGLB_UNMARSHALING_POLICY_STRONG = 1, + COMGLB_UNMARSHALING_POLICY_HYBRID = 2 + } GLOBALOPT_UNMARSHALING_POLICY_VALUES; + + + +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0026_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0026_v0_0_s_ifspec; +# 4695 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IGlobalOptions; +# 4720 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IGlobalOptionsVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IGlobalOptions * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IGlobalOptions * This); + + + ULONG ( __stdcall *Release )( + IGlobalOptions * This); + + + HRESULT ( __stdcall *Set )( + IGlobalOptions * This, + + GLOBALOPT_PROPERTIES dwProperty, + + ULONG_PTR dwValue); + + + HRESULT ( __stdcall *Query )( + IGlobalOptions * This, + + GLOBALOPT_PROPERTIES dwProperty, + + ULONG_PTR *pdwValue); + + + } IGlobalOptionsVtbl; + + struct IGlobalOptions + { + struct IGlobalOptionsVtbl *lpVtbl; + }; +# 4805 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0027_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0027_v0_0_s_ifspec; + + + + + + + +typedef ISurrogate *LPSURROGATE; + + +extern const IID IID_ISurrogate; +# 4835 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct ISurrogateVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ISurrogate * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ISurrogate * This); + + + ULONG ( __stdcall *Release )( + ISurrogate * This); + + + HRESULT ( __stdcall *LoadDllServer )( + ISurrogate * This, + const IID * const Clsid); + + + HRESULT ( __stdcall *FreeSurrogate )( + ISurrogate * This); + + + } ISurrogateVtbl; + + struct ISurrogate + { + struct ISurrogateVtbl *lpVtbl; + }; +# 4909 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef IGlobalInterfaceTable *LPGLOBALINTERFACETABLE; + + +extern const IID IID_IGlobalInterfaceTable; +# 4945 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IGlobalInterfaceTableVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IGlobalInterfaceTable * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IGlobalInterfaceTable * This); + + + ULONG ( __stdcall *Release )( + IGlobalInterfaceTable * This); + + + HRESULT ( __stdcall *RegisterInterfaceInGlobal )( + IGlobalInterfaceTable * This, + + IUnknown *pUnk, + + const IID * const riid, + + DWORD *pdwCookie); + + + HRESULT ( __stdcall *RevokeInterfaceFromGlobal )( + IGlobalInterfaceTable * This, + + DWORD dwCookie); + + + HRESULT ( __stdcall *GetInterfaceFromGlobal )( + IGlobalInterfaceTable * This, + + DWORD dwCookie, + + const IID * const riid, + + void **ppv); + + + } IGlobalInterfaceTableVtbl; + + struct IGlobalInterfaceTable + { + struct IGlobalInterfaceTableVtbl *lpVtbl; + }; +# 5042 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0029_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0029_v0_0_s_ifspec; +# 5052 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_ISynchronize; +# 5073 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct ISynchronizeVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ISynchronize * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ISynchronize * This); + + + ULONG ( __stdcall *Release )( + ISynchronize * This); + + + HRESULT ( __stdcall *Wait )( + ISynchronize * This, + DWORD dwFlags, + DWORD dwMilliseconds); + + + HRESULT ( __stdcall *Signal )( + ISynchronize * This); + + + HRESULT ( __stdcall *Reset )( + ISynchronize * This); + + + } ISynchronizeVtbl; + + struct ISynchronize + { + struct ISynchronizeVtbl *lpVtbl; + }; +# 5156 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_ISynchronizeHandle; +# 5173 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct ISynchronizeHandleVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ISynchronizeHandle * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ISynchronizeHandle * This); + + + ULONG ( __stdcall *Release )( + ISynchronizeHandle * This); + + + HRESULT ( __stdcall *GetHandle )( + ISynchronizeHandle * This, + + HANDLE *ph); + + + } ISynchronizeHandleVtbl; + + struct ISynchronizeHandle + { + struct ISynchronizeHandleVtbl *lpVtbl; + }; +# 5242 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_ISynchronizeEvent; +# 5259 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct ISynchronizeEventVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ISynchronizeEvent * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ISynchronizeEvent * This); + + + ULONG ( __stdcall *Release )( + ISynchronizeEvent * This); + + + HRESULT ( __stdcall *GetHandle )( + ISynchronizeEvent * This, + + HANDLE *ph); + + + HRESULT ( __stdcall *SetEventHandle )( + ISynchronizeEvent * This, + + HANDLE *ph); + + + } ISynchronizeEventVtbl; + + struct ISynchronizeEvent + { + struct ISynchronizeEventVtbl *lpVtbl; + }; +# 5338 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_ISynchronizeContainer; +# 5363 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct ISynchronizeContainerVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ISynchronizeContainer * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ISynchronizeContainer * This); + + + ULONG ( __stdcall *Release )( + ISynchronizeContainer * This); + + + HRESULT ( __stdcall *AddSynchronize )( + ISynchronizeContainer * This, + + ISynchronize *pSync); + + + HRESULT ( __stdcall *WaitMultiple )( + ISynchronizeContainer * This, + + DWORD dwFlags, + + DWORD dwTimeOut, + + ISynchronize **ppSync); + + + } ISynchronizeContainerVtbl; + + struct ISynchronizeContainer + { + struct ISynchronizeContainerVtbl *lpVtbl; + }; +# 5445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_ISynchronizeMutex; +# 5460 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct ISynchronizeMutexVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ISynchronizeMutex * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ISynchronizeMutex * This); + + + ULONG ( __stdcall *Release )( + ISynchronizeMutex * This); + + + HRESULT ( __stdcall *Wait )( + ISynchronizeMutex * This, + DWORD dwFlags, + DWORD dwMilliseconds); + + + HRESULT ( __stdcall *Signal )( + ISynchronizeMutex * This); + + + HRESULT ( __stdcall *Reset )( + ISynchronizeMutex * This); + + + HRESULT ( __stdcall *ReleaseMutex )( + ISynchronizeMutex * This); + + + } ISynchronizeMutexVtbl; + + struct ISynchronizeMutex + { + struct ISynchronizeMutexVtbl *lpVtbl; + }; +# 5550 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef ICancelMethodCalls *LPCANCELMETHODCALLS; + + +extern const IID IID_ICancelMethodCalls; +# 5572 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct ICancelMethodCallsVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ICancelMethodCalls * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ICancelMethodCalls * This); + + + ULONG ( __stdcall *Release )( + ICancelMethodCalls * This); + + + HRESULT ( __stdcall *Cancel )( + ICancelMethodCalls * This, + + ULONG ulSeconds); + + + HRESULT ( __stdcall *TestCancel )( + ICancelMethodCalls * This); + + + } ICancelMethodCallsVtbl; + + struct ICancelMethodCalls + { + struct ICancelMethodCallsVtbl *lpVtbl; + }; +# 5647 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef +enum tagDCOM_CALL_STATE + { + DCOM_NONE = 0, + DCOM_CALL_COMPLETE = 0x1, + DCOM_CALL_CANCELED = 0x2 + } DCOM_CALL_STATE; + + +extern const IID IID_IAsyncManager; +# 5683 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IAsyncManagerVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IAsyncManager * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IAsyncManager * This); + + + ULONG ( __stdcall *Release )( + IAsyncManager * This); + + + HRESULT ( __stdcall *CompleteCall )( + IAsyncManager * This, + + HRESULT Result); + + + HRESULT ( __stdcall *GetCallContext )( + IAsyncManager * This, + + const IID * const riid, + + void **pInterface); + + + HRESULT ( __stdcall *GetState )( + IAsyncManager * This, + + ULONG *pulStateFlags); + + + } IAsyncManagerVtbl; + + struct IAsyncManager + { + struct IAsyncManagerVtbl *lpVtbl; + }; +# 5772 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_ICallFactory; +# 5795 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct ICallFactoryVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ICallFactory * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ICallFactory * This); + + + ULONG ( __stdcall *Release )( + ICallFactory * This); + + + HRESULT ( __stdcall *CreateCall )( + ICallFactory * This, + + const IID * const riid, + + IUnknown *pCtrlUnk, + + const IID * const riid2, + + IUnknown **ppv); + + + } ICallFactoryVtbl; + + struct ICallFactory + { + struct ICallFactoryVtbl *lpVtbl; + }; +# 5870 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IRpcHelper; +# 5893 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IRpcHelperVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IRpcHelper * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IRpcHelper * This); + + + ULONG ( __stdcall *Release )( + IRpcHelper * This); + + + HRESULT ( __stdcall *GetDCOMProtocolVersion )( + IRpcHelper * This, + + DWORD *pComVersion); + + + HRESULT ( __stdcall *GetIIDFromOBJREF )( + IRpcHelper * This, + + void *pObjRef, + + IID **piid); + + + } IRpcHelperVtbl; + + struct IRpcHelper + { + struct IRpcHelperVtbl *lpVtbl; + }; +# 5973 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IReleaseMarshalBuffers; +# 5994 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IReleaseMarshalBuffersVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IReleaseMarshalBuffers * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IReleaseMarshalBuffers * This); + + + ULONG ( __stdcall *Release )( + IReleaseMarshalBuffers * This); + + + HRESULT ( __stdcall *ReleaseMarshalBuffer )( + IReleaseMarshalBuffers * This, + + RPCOLEMESSAGE *pMsg, + + DWORD dwFlags, + + IUnknown *pChnl); + + + } IReleaseMarshalBuffersVtbl; + + struct IReleaseMarshalBuffers + { + struct IReleaseMarshalBuffersVtbl *lpVtbl; + }; +# 6067 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IWaitMultiple; +# 6090 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IWaitMultipleVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IWaitMultiple * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IWaitMultiple * This); + + + ULONG ( __stdcall *Release )( + IWaitMultiple * This); + + + HRESULT ( __stdcall *WaitMultiple )( + IWaitMultiple * This, + + DWORD timeout, + + ISynchronize **pSync); + + + HRESULT ( __stdcall *AddSynchronize )( + IWaitMultiple * This, + + ISynchronize *pSync); + + + } IWaitMultipleVtbl; + + struct IWaitMultiple + { + struct IWaitMultipleVtbl *lpVtbl; + }; +# 6169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef IAddrTrackingControl *LPADDRTRACKINGCONTROL; + + +extern const IID IID_IAddrTrackingControl; +# 6189 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IAddrTrackingControlVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IAddrTrackingControl * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IAddrTrackingControl * This); + + + ULONG ( __stdcall *Release )( + IAddrTrackingControl * This); + + + HRESULT ( __stdcall *EnableCOMDynamicAddrTracking )( + IAddrTrackingControl * This); + + + HRESULT ( __stdcall *DisableCOMDynamicAddrTracking )( + IAddrTrackingControl * This); + + + } IAddrTrackingControlVtbl; + + struct IAddrTrackingControl + { + struct IAddrTrackingControlVtbl *lpVtbl; + }; +# 6262 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef IAddrExclusionControl *LPADDREXCLUSIONCONTROL; + + +extern const IID IID_IAddrExclusionControl; +# 6288 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IAddrExclusionControlVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IAddrExclusionControl * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IAddrExclusionControl * This); + + + ULONG ( __stdcall *Release )( + IAddrExclusionControl * This); + + + HRESULT ( __stdcall *GetCurrentAddrExclusionList )( + IAddrExclusionControl * This, + + const IID * const riid, + + void **ppEnumerator); + + + HRESULT ( __stdcall *UpdateAddrExclusionList )( + IAddrExclusionControl * This, + + IUnknown *pEnumerator); + + + } IAddrExclusionControlVtbl; + + struct IAddrExclusionControl + { + struct IAddrExclusionControlVtbl *lpVtbl; + }; +# 6368 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IPipeByte; +# 6390 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IPipeByteVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IPipeByte * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IPipeByte * This); + + + ULONG ( __stdcall *Release )( + IPipeByte * This); + + + HRESULT ( __stdcall *Pull )( + IPipeByte * This, + BYTE *buf, + ULONG cRequest, + ULONG *pcReturned); + + + HRESULT ( __stdcall *Push )( + IPipeByte * This, + BYTE *buf, + ULONG cSent); + + + } IPipeByteVtbl; + + struct IPipeByte + { + struct IPipeByteVtbl *lpVtbl; + }; +# 6469 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_AsyncIPipeByte; +# 6495 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct AsyncIPipeByteVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + AsyncIPipeByte * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + AsyncIPipeByte * This); + + + ULONG ( __stdcall *Release )( + AsyncIPipeByte * This); + + + HRESULT ( __stdcall *Begin_Pull )( + AsyncIPipeByte * This, + ULONG cRequest); + + + HRESULT ( __stdcall *Finish_Pull )( + AsyncIPipeByte * This, + BYTE *buf, + ULONG *pcReturned); + + + HRESULT ( __stdcall *Begin_Push )( + AsyncIPipeByte * This, + BYTE *buf, + ULONG cSent); + + + HRESULT ( __stdcall *Finish_Push )( + AsyncIPipeByte * This); + + + } AsyncIPipeByteVtbl; + + struct AsyncIPipeByte + { + struct AsyncIPipeByteVtbl *lpVtbl; + }; +# 6588 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IPipeLong; +# 6610 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IPipeLongVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IPipeLong * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IPipeLong * This); + + + ULONG ( __stdcall *Release )( + IPipeLong * This); + + + HRESULT ( __stdcall *Pull )( + IPipeLong * This, + LONG *buf, + ULONG cRequest, + ULONG *pcReturned); + + + HRESULT ( __stdcall *Push )( + IPipeLong * This, + LONG *buf, + ULONG cSent); + + + } IPipeLongVtbl; + + struct IPipeLong + { + struct IPipeLongVtbl *lpVtbl; + }; +# 6689 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_AsyncIPipeLong; +# 6715 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct AsyncIPipeLongVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + AsyncIPipeLong * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + AsyncIPipeLong * This); + + + ULONG ( __stdcall *Release )( + AsyncIPipeLong * This); + + + HRESULT ( __stdcall *Begin_Pull )( + AsyncIPipeLong * This, + ULONG cRequest); + + + HRESULT ( __stdcall *Finish_Pull )( + AsyncIPipeLong * This, + LONG *buf, + ULONG *pcReturned); + + + HRESULT ( __stdcall *Begin_Push )( + AsyncIPipeLong * This, + LONG *buf, + ULONG cSent); + + + HRESULT ( __stdcall *Finish_Push )( + AsyncIPipeLong * This); + + + } AsyncIPipeLongVtbl; + + struct AsyncIPipeLong + { + struct AsyncIPipeLongVtbl *lpVtbl; + }; +# 6808 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IPipeDouble; +# 6830 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IPipeDoubleVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IPipeDouble * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IPipeDouble * This); + + + ULONG ( __stdcall *Release )( + IPipeDouble * This); + + + HRESULT ( __stdcall *Pull )( + IPipeDouble * This, + DOUBLE *buf, + ULONG cRequest, + ULONG *pcReturned); + + + HRESULT ( __stdcall *Push )( + IPipeDouble * This, + DOUBLE *buf, + ULONG cSent); + + + } IPipeDoubleVtbl; + + struct IPipeDouble + { + struct IPipeDoubleVtbl *lpVtbl; + }; +# 6909 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_AsyncIPipeDouble; +# 6935 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct AsyncIPipeDoubleVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + AsyncIPipeDouble * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + AsyncIPipeDouble * This); + + + ULONG ( __stdcall *Release )( + AsyncIPipeDouble * This); + + + HRESULT ( __stdcall *Begin_Pull )( + AsyncIPipeDouble * This, + ULONG cRequest); + + + HRESULT ( __stdcall *Finish_Pull )( + AsyncIPipeDouble * This, + DOUBLE *buf, + ULONG *pcReturned); + + + HRESULT ( __stdcall *Begin_Push )( + AsyncIPipeDouble * This, + DOUBLE *buf, + ULONG cSent); + + + HRESULT ( __stdcall *Finish_Push )( + AsyncIPipeDouble * This); + + + } AsyncIPipeDoubleVtbl; + + struct AsyncIPipeDouble + { + struct AsyncIPipeDoubleVtbl *lpVtbl; + }; +# 7523 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef +enum _APTTYPEQUALIFIER + { + APTTYPEQUALIFIER_NONE = 0, + APTTYPEQUALIFIER_IMPLICIT_MTA = 1, + APTTYPEQUALIFIER_NA_ON_MTA = 2, + APTTYPEQUALIFIER_NA_ON_STA = 3, + APTTYPEQUALIFIER_NA_ON_IMPLICIT_MTA = 4, + APTTYPEQUALIFIER_NA_ON_MAINSTA = 5, + APTTYPEQUALIFIER_APPLICATION_STA = 6, + APTTYPEQUALIFIER_RESERVED_1 = 7 + } APTTYPEQUALIFIER; + +typedef +enum _APTTYPE + { + APTTYPE_CURRENT = -1, + APTTYPE_STA = 0, + APTTYPE_MTA = 1, + APTTYPE_NA = 2, + APTTYPE_MAINSTA = 3 + } APTTYPE; + + + + + +typedef +enum _THDTYPE + { + THDTYPE_BLOCKMESSAGES = 0, + THDTYPE_PROCESSMESSAGES = 1 + } THDTYPE; + +typedef DWORD APARTMENTID; + + + +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0048_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0048_v0_0_s_ifspec; +# 7571 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IComThreadingInfo; +# 7600 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IComThreadingInfoVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IComThreadingInfo * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IComThreadingInfo * This); + + + ULONG ( __stdcall *Release )( + IComThreadingInfo * This); + + + HRESULT ( __stdcall *GetCurrentApartmentType )( + IComThreadingInfo * This, + + APTTYPE *pAptType); + + + HRESULT ( __stdcall *GetCurrentThreadType )( + IComThreadingInfo * This, + + THDTYPE *pThreadType); + + + HRESULT ( __stdcall *GetCurrentLogicalThreadId )( + IComThreadingInfo * This, + + GUID *pguidLogicalThreadId); + + + HRESULT ( __stdcall *SetCurrentLogicalThreadId )( + IComThreadingInfo * This, + + const GUID * const rguid); + + + } IComThreadingInfoVtbl; + + struct IComThreadingInfo + { + struct IComThreadingInfoVtbl *lpVtbl; + }; +# 7696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IProcessInitControl; +# 7712 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IProcessInitControlVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IProcessInitControl * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IProcessInitControl * This); + + + ULONG ( __stdcall *Release )( + IProcessInitControl * This); + + + HRESULT ( __stdcall *ResetInitializerTimeout )( + IProcessInitControl * This, + DWORD dwSecondsRemaining); + + + } IProcessInitControlVtbl; + + struct IProcessInitControl + { + struct IProcessInitControlVtbl *lpVtbl; + }; +# 7780 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IFastRundown; +# 7793 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IFastRundownVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IFastRundown * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IFastRundown * This); + + + ULONG ( __stdcall *Release )( + IFastRundown * This); + + + } IFastRundownVtbl; + + struct IFastRundown + { + struct IFastRundownVtbl *lpVtbl; + }; +# 7849 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +typedef +enum CO_MARSHALING_CONTEXT_ATTRIBUTES + { + CO_MARSHALING_SOURCE_IS_APP_CONTAINER = 0, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_1 = 0x80000000, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_2 = 0x80000001, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_3 = 0x80000002, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_4 = 0x80000003, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_5 = 0x80000004, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_6 = 0x80000005, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_7 = 0x80000006, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_8 = 0x80000007, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_9 = 0x80000008, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_10 = 0x80000009, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_11 = 0x8000000a, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_12 = 0x8000000b, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_13 = 0x8000000c, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_14 = 0x8000000d, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_15 = 0x8000000e, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_16 = 0x8000000f, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_17 = 0x80000010, + CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_18 = 0x80000011 + } CO_MARSHALING_CONTEXT_ATTRIBUTES; + + + +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0051_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0051_v0_0_s_ifspec; +# 7885 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IMarshalingStream; +# 7902 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IMarshalingStreamVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IMarshalingStream * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IMarshalingStream * This); + + + ULONG ( __stdcall *Release )( + IMarshalingStream * This); + + + HRESULT ( __stdcall *Read )( + IMarshalingStream * This, + + void *pv, + + ULONG cb, + + ULONG *pcbRead); + + + HRESULT ( __stdcall *Write )( + IMarshalingStream * This, + + const void *pv, + + ULONG cb, + + ULONG *pcbWritten); + + + HRESULT ( __stdcall *Seek )( + IMarshalingStream * This, + LARGE_INTEGER dlibMove, + DWORD dwOrigin, + + ULARGE_INTEGER *plibNewPosition); + + + HRESULT ( __stdcall *SetSize )( + IMarshalingStream * This, + ULARGE_INTEGER libNewSize); + + + HRESULT ( __stdcall *CopyTo )( + IMarshalingStream * This, + + IStream *pstm, + ULARGE_INTEGER cb, + + ULARGE_INTEGER *pcbRead, + + ULARGE_INTEGER *pcbWritten); + + + HRESULT ( __stdcall *Commit )( + IMarshalingStream * This, + DWORD grfCommitFlags); + + + HRESULT ( __stdcall *Revert )( + IMarshalingStream * This); + + + HRESULT ( __stdcall *LockRegion )( + IMarshalingStream * This, + ULARGE_INTEGER libOffset, + ULARGE_INTEGER cb, + DWORD dwLockType); + + + HRESULT ( __stdcall *UnlockRegion )( + IMarshalingStream * This, + ULARGE_INTEGER libOffset, + ULARGE_INTEGER cb, + DWORD dwLockType); + + + HRESULT ( __stdcall *Stat )( + IMarshalingStream * This, + STATSTG *pstatstg, + DWORD grfStatFlag); + + + HRESULT ( __stdcall *Clone )( + IMarshalingStream * This, + IStream **ppstm); + + + HRESULT ( __stdcall *GetMarshalingContextAttribute )( + IMarshalingStream * This, + CO_MARSHALING_CONTEXT_ATTRIBUTES attribute, + ULONG_PTR *pAttributeValue); + + + } IMarshalingStreamVtbl; + + struct IMarshalingStream + { + struct IMarshalingStreamVtbl *lpVtbl; + }; +# 8086 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0052_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0052_v0_0_s_ifspec; +# 8123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IAgileReference; +# 8140 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IAgileReferenceVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IAgileReference * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IAgileReference * This); + + + ULONG ( __stdcall *Release )( + IAgileReference * This); + + + HRESULT ( __stdcall *Resolve )( + IAgileReference * This, + const IID * const riid, + void **ppvObjectReference); + + + } IAgileReferenceVtbl; + + struct IAgileReference + { + struct IAgileReferenceVtbl *lpVtbl; + }; +# 8210 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const GUID IID_ICallbackWithNoReentrancyToApplicationSTA; + + + + +typedef struct MachineGlobalObjectTableRegistrationToken__ + { + int unused; + } *MachineGlobalObjectTableRegistrationToken; + + + +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0053_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0053_v0_0_s_ifspec; +# 8232 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_IMachineGlobalObjectTable; +# 8260 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct IMachineGlobalObjectTableVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IMachineGlobalObjectTable * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IMachineGlobalObjectTable * This); + + + ULONG ( __stdcall *Release )( + IMachineGlobalObjectTable * This); + + + HRESULT ( __stdcall *RegisterObject )( + IMachineGlobalObjectTable * This, + const IID * const clsid, + LPCWSTR identifier, + IUnknown *object, + MachineGlobalObjectTableRegistrationToken *token); + + + HRESULT ( __stdcall *GetObjectA )( + IMachineGlobalObjectTable * This, + const IID * const clsid, + LPCWSTR identifier, + const IID * const riid, + void **ppv); + + + HRESULT ( __stdcall *RevokeObject )( + IMachineGlobalObjectTable * This, + MachineGlobalObjectTableRegistrationToken token); + + + } IMachineGlobalObjectTableVtbl; + + struct IMachineGlobalObjectTable + { + struct IMachineGlobalObjectTableVtbl *lpVtbl; + }; +# 8352 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0054_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0054_v0_0_s_ifspec; +# 8362 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +extern const IID IID_ISupportAllowLowerTrustActivation; +# 8375 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 + typedef struct ISupportAllowLowerTrustActivationVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ISupportAllowLowerTrustActivation * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ISupportAllowLowerTrustActivation * This); + + + ULONG ( __stdcall *Release )( + ISupportAllowLowerTrustActivation * This); + + + } ISupportAllowLowerTrustActivationVtbl; + + struct ISupportAllowLowerTrustActivation + { + struct ISupportAllowLowerTrustActivationVtbl *lpVtbl; + }; +# 8437 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 +#pragma warning(pop) + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0055_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0055_v0_0_s_ifspec; + + + + HRESULT __stdcall IEnumUnknown_Next_Proxy( + IEnumUnknown * This, + + ULONG celt, + + IUnknown **rgelt, + + ULONG *pceltFetched); + + + HRESULT __stdcall IEnumUnknown_Next_Stub( + IEnumUnknown * This, + ULONG celt, + IUnknown **rgelt, + ULONG *pceltFetched); + + HRESULT __stdcall IEnumString_Next_Proxy( + IEnumString * This, + ULONG celt, + + LPOLESTR *rgelt, + + ULONG *pceltFetched); + + + HRESULT __stdcall IEnumString_Next_Stub( + IEnumString * This, + ULONG celt, + LPOLESTR *rgelt, + ULONG *pceltFetched); + + HRESULT __stdcall ISequentialStream_Read_Proxy( + ISequentialStream * This, + + void *pv, + + ULONG cb, + + ULONG *pcbRead); + + + HRESULT __stdcall ISequentialStream_Read_Stub( + ISequentialStream * This, + byte *pv, + ULONG cb, + ULONG *pcbRead); + + HRESULT __stdcall ISequentialStream_Write_Proxy( + ISequentialStream * This, + + const void *pv, + + ULONG cb, + + ULONG *pcbWritten); + + + HRESULT __stdcall ISequentialStream_Write_Stub( + ISequentialStream * This, + const byte *pv, + ULONG cb, + ULONG *pcbWritten); + + HRESULT __stdcall IStream_Seek_Proxy( + IStream * This, + LARGE_INTEGER dlibMove, + DWORD dwOrigin, + + ULARGE_INTEGER *plibNewPosition); + + + HRESULT __stdcall IStream_Seek_Stub( + IStream * This, + LARGE_INTEGER dlibMove, + DWORD dwOrigin, + ULARGE_INTEGER *plibNewPosition); + + HRESULT __stdcall IStream_CopyTo_Proxy( + IStream * This, + + IStream *pstm, + ULARGE_INTEGER cb, + + ULARGE_INTEGER *pcbRead, + + ULARGE_INTEGER *pcbWritten); + + + HRESULT __stdcall IStream_CopyTo_Stub( + IStream * This, + IStream *pstm, + ULARGE_INTEGER cb, + ULARGE_INTEGER *pcbRead, + ULARGE_INTEGER *pcbWritten); +# 364 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 2 3 + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\guiddef.h" 1 3 +# 366 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 2 3 + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\cguid.h" 1 3 +# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\cguid.h" 3 +#pragma warning(push) + +#pragma warning(disable: 4001) +# 33 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\cguid.h" 3 +extern const IID GUID_NULL; +# 42 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\cguid.h" 3 +extern const IID CATID_MARSHALER; + + +extern const IID IID_IRpcChannel; +extern const IID IID_IRpcStub; +extern const IID IID_IStubManager; +extern const IID IID_IRpcProxy; +extern const IID IID_IProxyManager; +extern const IID IID_IPSFactory; +extern const IID IID_IInternalMoniker; +extern const IID IID_IDfReserved1; +extern const IID IID_IDfReserved2; +extern const IID IID_IDfReserved3; +extern const CLSID CLSID_StdMarshal; +extern const CLSID CLSID_AggStdMarshal; +extern const CLSID CLSID_StdAsyncActManager; +extern const IID IID_IStub; +extern const IID IID_IProxy; +extern const IID IID_IEnumGeneric; +extern const IID IID_IEnumHolder; +extern const IID IID_IEnumCallback; +extern const IID IID_IOleManager; +extern const IID IID_IOlePresObj; +extern const IID IID_IDebug; +extern const IID IID_IDebugStream; +extern const CLSID CLSID_PSGenObject; +extern const CLSID CLSID_PSClientSite; +extern const CLSID CLSID_PSClassObject; +extern const CLSID CLSID_PSInPlaceActive; +extern const CLSID CLSID_PSInPlaceFrame; +extern const CLSID CLSID_PSDragDrop; +extern const CLSID CLSID_PSBindCtx; +extern const CLSID CLSID_PSEnumerators; +extern const CLSID CLSID_StaticMetafile; +extern const CLSID CLSID_StaticDib; +extern const CLSID CID_CDfsVolume; +extern const CLSID CLSID_DCOMAccessControl; + + + + + + + +extern const CLSID CLSID_GlobalOptions; + + + + + + + +extern const CLSID CLSID_StdGlobalInterfaceTable; +extern const CLSID CLSID_MachineGlobalObjectTable; +extern const CLSID CLSID_ActivationCapabilities; + + + + + + + +extern const CLSID CLSID_ComBinding; +extern const CLSID CLSID_StdEvent; +extern const CLSID CLSID_ManualResetEvent; +extern const CLSID CLSID_SynchronizeContainer; + + +extern const CLSID CLSID_AddrControl; + + + +extern const CLSID CLSID_ContextSwitcher; +# 126 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\cguid.h" 3 +extern const CLSID CLSID_CCDFormKrnl; +extern const CLSID CLSID_CCDPropertyPage; +extern const CLSID CLSID_CCDFormDialog; + + + + +extern const CLSID CLSID_CCDCommandButton; +extern const CLSID CLSID_CCDComboBox; +extern const CLSID CLSID_CCDTextBox; +extern const CLSID CLSID_CCDCheckBox; +extern const CLSID CLSID_CCDLabel; +extern const CLSID CLSID_CCDOptionButton; +extern const CLSID CLSID_CCDListBox; +extern const CLSID CLSID_CCDScrollBar; +extern const CLSID CLSID_CCDGroupBox; + + + + +extern const CLSID CLSID_CCDGeneralPropertyPage; +extern const CLSID CLSID_CCDGenericPropertyPage; +extern const CLSID CLSID_CCDFontPropertyPage; +extern const CLSID CLSID_CCDColorPropertyPage; +extern const CLSID CLSID_CCDLabelPropertyPage; +extern const CLSID CLSID_CCDCheckBoxPropertyPage; +extern const CLSID CLSID_CCDTextBoxPropertyPage; +extern const CLSID CLSID_CCDOptionButtonPropertyPage; +extern const CLSID CLSID_CCDListBoxPropertyPage; +extern const CLSID CLSID_CCDCommandButtonPropertyPage; +extern const CLSID CLSID_CCDComboBoxPropertyPage; +extern const CLSID CLSID_CCDScrollBarPropertyPage; +extern const CLSID CLSID_CCDGroupBoxPropertyPage; +extern const CLSID CLSID_CCDXObjectPropertyPage; + +extern const CLSID CLSID_CStdPropertyFrame; + +extern const CLSID CLSID_CFormPropertyPage; +extern const CLSID CLSID_CGridPropertyPage; + +extern const CLSID CLSID_CWSJArticlePage; +extern const CLSID CLSID_CSystemPage; +extern const CLSID CLSID_IdentityUnmarshal; + + + + + + + +extern const CLSID CLSID_InProcFreeMarshaler; + + + + + + + +extern const CLSID CLSID_Picture_Metafile; +extern const CLSID CLSID_Picture_EnhMetafile; +extern const CLSID CLSID_Picture_Dib; + + + + +extern const GUID GUID_TRISTATE; +# 202 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\cguid.h" 3 +#pragma warning(pop) +# 370 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 2 3 +# 381 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoGetMalloc( + DWORD dwMemContext, + LPMALLOC * ppMalloc + ); +# 394 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CreateStreamOnHGlobal( + HGLOBAL hGlobal, + BOOL fDeleteOnRelease, + LPSTREAM * ppstm + ); + + +extern __declspec(dllimport) HRESULT __stdcall +GetHGlobalFromStream( + LPSTREAM pstm, + HGLOBAL * phglobal + ); + + + +extern __declspec(dllimport) void __stdcall +CoUninitialize( + void + ); + + + + + + + +extern __declspec(dllimport) DWORD __stdcall +CoGetCurrentProcess( + void + ); +# 436 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoInitializeEx( + LPVOID pvReserved, + DWORD dwCoInit + ); + + + + + + + +extern __declspec(dllimport) HRESULT __stdcall +CoGetCallerTID( + LPDWORD lpdwTID + ); + + + + + + + +extern __declspec(dllimport) HRESULT __stdcall +CoGetCurrentLogicalThreadId( + GUID* pguid + ); +# 475 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoGetContextToken( + ULONG_PTR* pToken + ); +# 487 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoGetDefaultContext( + APTTYPE aptType, + const IID * const riid, + void** ppv + ); +# 507 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoGetApartmentType( + APTTYPE* pAptType, + APTTYPEQUALIFIER* pAptQualifier + ); +# 525 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +typedef struct tagServerInformation +{ + DWORD dwServerPid; + DWORD dwServerTid; + UINT64 ui64ServerAddress; +} ServerInformation, *PServerInformation; +# 539 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoDecodeProxy( + DWORD dwClientPid, + UINT64 ui64ProxyAddress, + PServerInformation pServerInformation + ); + + + + + + + +struct CO_MTA_USAGE_COOKIE__{int unused;}; typedef struct CO_MTA_USAGE_COOKIE__ *CO_MTA_USAGE_COOKIE; + + +extern __declspec(dllimport) HRESULT __stdcall +CoIncrementMTAUsage( + CO_MTA_USAGE_COOKIE* pCookie + ); + +extern __declspec(dllimport) HRESULT __stdcall +CoDecrementMTAUsage( + CO_MTA_USAGE_COOKIE Cookie + ); + + + + + + + +extern __declspec(dllimport) HRESULT __stdcall +CoAllowUnmarshalerCLSID( + const IID * const clsid + ); +# 600 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoGetObjectContext( + const IID * const riid, + LPVOID * ppv + ); +# 615 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoGetClassObject( + const IID * const rclsid, + DWORD dwClsContext, + LPVOID pvReserved, + const IID * const riid, + LPVOID * ppv + ); + + + + + + + +extern __declspec(dllimport) HRESULT __stdcall +CoRegisterClassObject( + const IID * const rclsid, + LPUNKNOWN pUnk, + DWORD dwClsContext, + DWORD flags, + LPDWORD lpdwRegister + ); + +extern __declspec(dllimport) HRESULT __stdcall +CoRevokeClassObject( + DWORD dwRegister + ); + +extern __declspec(dllimport) HRESULT __stdcall +CoResumeClassObjects( + void + ); + +extern __declspec(dllimport) HRESULT __stdcall +CoSuspendClassObjects( + void + ); + + + + + + + +extern __declspec(dllimport) ULONG __stdcall +CoAddRefServerProcess( + void + ); + +extern __declspec(dllimport) ULONG __stdcall +CoReleaseServerProcess( + void + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoGetPSClsid( + const IID * const riid, + CLSID* pClsid + ); + +extern __declspec(dllimport) HRESULT __stdcall +CoRegisterPSClsid( + const IID * const riid, + const IID * const rclsid + ); + + + +extern __declspec(dllimport) HRESULT __stdcall +CoRegisterSurrogate( + LPSURROGATE pSurrogate + ); +# 699 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoGetMarshalSizeMax( + ULONG* pulSize, + const IID * const riid, + LPUNKNOWN pUnk, + DWORD dwDestContext, + LPVOID pvDestContext, + DWORD mshlflags + ); + +extern __declspec(dllimport) HRESULT __stdcall +CoMarshalInterface( + LPSTREAM pStm, + const IID * const riid, + LPUNKNOWN pUnk, + DWORD dwDestContext, + LPVOID pvDestContext, + DWORD mshlflags + ); + +extern __declspec(dllimport) HRESULT __stdcall +CoUnmarshalInterface( + LPSTREAM pStm, + const IID * const riid, + LPVOID * ppv + ); + + + + + + + +extern __declspec(dllimport) HRESULT __stdcall +CoMarshalHresult( + LPSTREAM pstm, + HRESULT hresult + ); + +extern __declspec(dllimport) HRESULT __stdcall +CoUnmarshalHresult( + LPSTREAM pstm, + HRESULT * phresult + ); +# 751 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoReleaseMarshalData( + LPSTREAM pStm + ); + +extern __declspec(dllimport) HRESULT __stdcall +CoDisconnectObject( + LPUNKNOWN pUnk, + DWORD dwReserved + ); +# 769 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoLockObjectExternal( + LPUNKNOWN pUnk, + BOOL fLock, + BOOL fLastUnlockReleases + ); +# 783 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoGetStandardMarshal( + const IID * const riid, + LPUNKNOWN pUnk, + DWORD dwDestContext, + LPVOID pvDestContext, + DWORD mshlflags, + LPMARSHAL * ppMarshal + ); +# 800 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoGetStdMarshalEx( + LPUNKNOWN pUnkOuter, + DWORD smexflags, + LPUNKNOWN * ppUnkInner + ); +# 814 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +typedef enum tagSTDMSHLFLAGS +{ + SMEXF_SERVER = 0x01, + SMEXF_HANDLER = 0x02 +} STDMSHLFLAGS; + + + + + + + +extern __declspec(dllimport) BOOL __stdcall +CoIsHandlerConnected( + LPUNKNOWN pUnk + ); +# 839 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoMarshalInterThreadInterfaceInStream( + const IID * const riid, + LPUNKNOWN pUnk, + LPSTREAM* ppStm + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoGetInterfaceAndReleaseStream( + LPSTREAM pStm, + const IID * const iid, + LPVOID * ppv + ); +# 861 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoCreateFreeThreadedMarshaler( + LPUNKNOWN punkOuter, + LPUNKNOWN* ppunkMarshal + ); + + + + + + + +extern __declspec(dllimport) void __stdcall +CoFreeUnusedLibraries( + void + ); + + +extern __declspec(dllimport) void __stdcall +CoFreeUnusedLibrariesEx( + DWORD dwUnloadDelay, + DWORD dwReserved + ); +# 895 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoDisconnectContext( + DWORD dwTimeout + ); +# 914 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoInitializeSecurity( + PSECURITY_DESCRIPTOR pSecDesc, + LONG cAuthSvc, + SOLE_AUTHENTICATION_SERVICE* asAuthSvc, + void* pReserved1, + DWORD dwAuthnLevel, + DWORD dwImpLevel, + void* pAuthList, + DWORD dwCapabilities, + void* pReserved3 + ); +# 934 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoGetCallContext( + const IID * const riid, + void** ppInterface + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoQueryProxyBlanket( + IUnknown* pProxy, + DWORD* pwAuthnSvc, + DWORD* pAuthzSvc, + LPOLESTR* pServerPrincName, + DWORD* pAuthnLevel, + DWORD* pImpLevel, + RPC_AUTH_IDENTITY_HANDLE* pAuthInfo, + DWORD* pCapabilites + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoSetProxyBlanket( + IUnknown* pProxy, + DWORD dwAuthnSvc, + DWORD dwAuthzSvc, + OLECHAR* pServerPrincName, + DWORD dwAuthnLevel, + DWORD dwImpLevel, + RPC_AUTH_IDENTITY_HANDLE pAuthInfo, + DWORD dwCapabilities + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoCopyProxy( + IUnknown* pProxy, + IUnknown** ppCopy + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoQueryClientBlanket( + DWORD* pAuthnSvc, + DWORD* pAuthzSvc, + LPOLESTR* pServerPrincName, + DWORD* pAuthnLevel, + DWORD* pImpLevel, + RPC_AUTHZ_HANDLE* pPrivs, + DWORD* pCapabilities + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoImpersonateClient( + void + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoRevertToSelf( + void + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoQueryAuthenticationServices( + DWORD* pcAuthSvc, + SOLE_AUTHENTICATION_SERVICE** asAuthSvc + ); +# 1011 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoSwitchCallContext( + IUnknown* pNewObject, + IUnknown** ppOldObject + ); +# 1036 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoCreateInstance( + const IID * const rclsid, + LPUNKNOWN pUnkOuter, + DWORD dwClsContext, + const IID * const riid, + LPVOID * ppv + ); +# 1055 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoCreateInstanceEx( + const IID * const Clsid, + IUnknown* punkOuter, + DWORD dwClsCtx, + COSERVERINFO* pServerInfo, + DWORD dwCount, + MULTI_QI* pResults + ); + + + + + + +extern __declspec(dllimport) HRESULT __stdcall +CoCreateInstanceFromApp( + const IID * const Clsid, + IUnknown* punkOuter, + DWORD dwClsCtx, + PVOID reserved, + DWORD dwCount, + MULTI_QI* pResults + ); +# 1088 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoRegisterActivationFilter( + IActivationFilter* pActivationFilter + ); +# 1104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoGetCancelObject( + DWORD dwThreadId, + const IID * const iid, + void** ppUnk + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoSetCancelObject( + IUnknown* pUnk + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoCancelCall( + DWORD dwThreadId, + ULONG ulTimeout + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoTestCancel( + void + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoEnableCallCancellation( + LPVOID pReserved + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoDisableCallCancellation( + LPVOID pReserved + ); +# 1153 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +StringFromCLSID( + const IID * const rclsid, + LPOLESTR * lplpsz + ); + +extern __declspec(dllimport) HRESULT __stdcall +CLSIDFromString( + LPCOLESTR lpsz, + LPCLSID pclsid + ); + +extern __declspec(dllimport) HRESULT __stdcall +StringFromIID( + const IID * const rclsid, + LPOLESTR * lplpsz + ); + +extern __declspec(dllimport) HRESULT __stdcall +IIDFromString( + LPCOLESTR lpsz, + LPIID lpiid + ); +# 1184 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +ProgIDFromCLSID( + const IID * const clsid, + LPOLESTR * lplpszProgID + ); + +extern __declspec(dllimport) HRESULT __stdcall +CLSIDFromProgID( + LPCOLESTR lpszProgID, + LPCLSID lpclsid + ); +# 1203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) int __stdcall +StringFromGUID2( + const GUID * const rguid, + LPOLESTR lpsz, + int cchMax + ); + + +extern __declspec(dllimport) HRESULT __stdcall +CoCreateGuid( + GUID * pguid + ); + + + +typedef struct tagPROPVARIANT PROPVARIANT; + + + +extern __declspec(dllimport) HRESULT __stdcall +PropVariantCopy( + PROPVARIANT* pvarDest, + const PROPVARIANT* pvarSrc + ); + +extern __declspec(dllimport) HRESULT __stdcall +PropVariantClear( + PROPVARIANT* pvar + ); + +extern __declspec(dllimport) HRESULT __stdcall +FreePropVariantArray( + ULONG cVariants, + PROPVARIANT* rgvars + ); +# 1261 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoWaitForMultipleHandles( + DWORD dwFlags, + DWORD dwTimeout, + ULONG cHandles, + LPHANDLE pHandles, + LPDWORD lpdwindex + ); + + + +typedef enum tagCOWAIT_FLAGS +{ + COWAIT_DEFAULT = 0, + COWAIT_WAITALL = 1, + COWAIT_ALERTABLE = 2, + COWAIT_INPUTAVAILABLE = 4, + COWAIT_DISPATCH_CALLS = 8, + COWAIT_DISPATCH_WINDOW_MESSAGES = 0x10, +}COWAIT_FLAGS; + ; + + + +typedef enum CWMO_FLAGS +{ + CWMO_DEFAULT = 0, + CWMO_DISPATCH_CALLS = 1, + CWMO_DISPATCH_WINDOW_MESSAGES = 2, +} CWMO_FLAGS; + ; + +extern __declspec(dllimport) HRESULT __stdcall +CoWaitForMultipleObjects( + DWORD dwFlags, + DWORD dwTimeout, + ULONG cHandles, + const HANDLE* pHandles, + LPDWORD lpdwindex + ); +# 1315 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoGetTreatAsClass( + const IID * const clsidOld, + LPCLSID pClsidNew + ); +# 1332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +CoInvalidateRemoteMachineBindings( + LPOLESTR pszMachineName + ); +# 1347 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +enum AgileReferenceOptions +{ + AGILEREFERENCE_DEFAULT = 0, + AGILEREFERENCE_DELAYEDMARSHAL = 1, +}; + + +extern __declspec(dllimport) HRESULT __stdcall +RoGetAgileReference( + enum AgileReferenceOptions options, + const IID * const riid, + IUnknown* pUnk, + IAgileReference** ppAgileReference + ); +# 1375 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 +typedef HRESULT (__stdcall * LPFNGETCLASSOBJECT) (const IID * const, const IID * const, LPVOID *); +typedef HRESULT (__stdcall * LPFNCANUNLOADNOW)(void); + + +extern HRESULT __stdcall DllGetClassObject( const IID * const rclsid, const IID * const riid, LPVOID * ppv); + + +extern HRESULT __stdcall DllCanUnloadNow(void); + + + +extern __declspec(dllimport) LPVOID __stdcall +CoTaskMemAlloc( + SIZE_T cb + ); + +extern __declspec(dllimport) LPVOID __stdcall +CoTaskMemRealloc( + LPVOID pv, + SIZE_T cb + ); + +extern __declspec(dllimport) void __stdcall +CoTaskMemFree( + LPVOID pv + ); + + + + + + + +extern __declspec(dllimport) HRESULT __stdcall +CoFileTimeNow( + FILETIME * lpFileTime + ); + +extern __declspec(dllimport) HRESULT __stdcall +CLSIDFromProgIDEx( + LPCOLESTR lpszProgID, + LPCLSID lpclsid + ); + + + + + + + +struct CO_DEVICE_CATALOG_COOKIE__{int unused;}; typedef struct CO_DEVICE_CATALOG_COOKIE__ *CO_DEVICE_CATALOG_COOKIE; + + + +extern __declspec(dllimport) HRESULT __stdcall +CoRegisterDeviceCatalog( + PCWSTR deviceInstanceId, + CO_DEVICE_CATALOG_COOKIE* cookie + ); + + + +extern __declspec(dllimport) HRESULT __stdcall +CoRevokeDeviceCatalog( + CO_DEVICE_CATALOG_COOKIE cookie + ); + + + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 1449 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 2 3 +# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\coml2api.h" 1 3 +# 23 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\coml2api.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 1 3 +# 465 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef struct IMallocSpy IMallocSpy; + + + + + + +typedef struct IBindCtx IBindCtx; + + + + + + +typedef struct IEnumMoniker IEnumMoniker; + + + + + + +typedef struct IRunnableObject IRunnableObject; + + + + + + +typedef struct IRunningObjectTable IRunningObjectTable; + + + + + + +typedef struct IPersist IPersist; + + + + + + +typedef struct IPersistStream IPersistStream; + + + + + + +typedef struct IMoniker IMoniker; + + + + + + +typedef struct IROTData IROTData; + + + + + + +typedef struct IEnumSTATSTG IEnumSTATSTG; + + + + + + +typedef struct IStorage IStorage; + + + + + + +typedef struct IPersistFile IPersistFile; + + + + + + +typedef struct IPersistStorage IPersistStorage; + + + + + + +typedef struct ILockBytes ILockBytes; + + + + + + +typedef struct IEnumFORMATETC IEnumFORMATETC; + + + + + + +typedef struct IEnumSTATDATA IEnumSTATDATA; + + + + + + +typedef struct IRootStorage IRootStorage; + + + + + + +typedef struct IAdviseSink IAdviseSink; + + + + + + +typedef struct AsyncIAdviseSink AsyncIAdviseSink; + + + + + + +typedef struct IAdviseSink2 IAdviseSink2; + + + + + + +typedef struct AsyncIAdviseSink2 AsyncIAdviseSink2; + + + + + + +typedef struct IDataObject IDataObject; + + + + + + +typedef struct IDataAdviseHolder IDataAdviseHolder; + + + + + + +typedef struct IMessageFilter IMessageFilter; + + + + + + +typedef struct IClassActivator IClassActivator; + + + + + + +typedef struct IFillLockBytes IFillLockBytes; + + + + + + +typedef struct IProgressNotify IProgressNotify; + + + + + + +typedef struct ILayoutStorage ILayoutStorage; + + + + + + +typedef struct IBlockingLock IBlockingLock; + + + + + + +typedef struct ITimeAndNoticeControl ITimeAndNoticeControl; + + + + + + +typedef struct IOplockStorage IOplockStorage; + + + + + + +typedef struct IDirectWriterLock IDirectWriterLock; + + + + + + +typedef struct IUrlMon IUrlMon; + + + + + + +typedef struct IForegroundTransfer IForegroundTransfer; + + + + + + +typedef struct IThumbnailExtractor IThumbnailExtractor; + + + + + + +typedef struct IDummyHICONIncluder IDummyHICONIncluder; + + + + + + +typedef struct IProcessLock IProcessLock; + + + + + + +typedef struct ISurrogateService ISurrogateService; + + + + + + +typedef struct IInitializeSpy IInitializeSpy; + + + + + + +typedef struct IApartmentShutdown IApartmentShutdown; + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/unknwn.h" 1 3 +# 96 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/unknwn.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0000_v0_0_s_ifspec; +# 296 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/unknwn.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0001_v0_0_s_ifspec; +# 441 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/unknwn.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0002_v0_0_s_ifspec; +# 583 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/unknwn.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0003_v0_0_s_ifspec; + + + + HRESULT __stdcall IClassFactory_CreateInstance_Proxy( + IClassFactory * This, + + IUnknown *pUnkOuter, + + const IID * const riid, + + void **ppvObject); + + + HRESULT __stdcall IClassFactory_CreateInstance_Stub( + IClassFactory * This, + const IID * const riid, + IUnknown **ppvObject); + + HRESULT __stdcall IClassFactory_LockServer_Proxy( + IClassFactory * This, + BOOL fLock); + + + HRESULT __stdcall IClassFactory_LockServer_Stub( + IClassFactory * This, + BOOL fLock); +# 745 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 2 3 +# 779 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + +#pragma warning(disable: 4201) +# 812 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +#pragma warning(push) + + + +#pragma warning(disable: 4820) + +#pragma warning(disable: 4201) +# 8750 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +#pragma warning(pop) +# 8768 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0055_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0055_v0_0_s_ifspec; + + + + + + + +typedef IMallocSpy *LPMALLOCSPY; + + +extern const IID IID_IMallocSpy; +# 8857 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IMallocSpyVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IMallocSpy * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IMallocSpy * This); + + + ULONG ( __stdcall *Release )( + IMallocSpy * This); + + + SIZE_T ( __stdcall *PreAlloc )( + IMallocSpy * This, + + SIZE_T cbRequest); + + + void *( __stdcall *PostAlloc )( + IMallocSpy * This, + + void *pActual); + + + void *( __stdcall *PreFree )( + IMallocSpy * This, + + void *pRequest, + + BOOL fSpyed); + + + void ( __stdcall *PostFree )( + IMallocSpy * This, + + BOOL fSpyed); + + + SIZE_T ( __stdcall *PreRealloc )( + IMallocSpy * This, + + void *pRequest, + + SIZE_T cbRequest, + + void **ppNewRequest, + + BOOL fSpyed); + + + void *( __stdcall *PostRealloc )( + IMallocSpy * This, + + void *pActual, + + BOOL fSpyed); + + + void *( __stdcall *PreGetSize )( + IMallocSpy * This, + + void *pRequest, + + BOOL fSpyed); + + + SIZE_T ( __stdcall *PostGetSize )( + IMallocSpy * This, + + SIZE_T cbActual, + + BOOL fSpyed); + + + void *( __stdcall *PreDidAlloc )( + IMallocSpy * This, + + void *pRequest, + + BOOL fSpyed); + + + int ( __stdcall *PostDidAlloc )( + IMallocSpy * This, + + void *pRequest, + + BOOL fSpyed, + + int fActual); + + + void ( __stdcall *PreHeapMinimize )( + IMallocSpy * This); + + + void ( __stdcall *PostHeapMinimize )( + IMallocSpy * This); + + + } IMallocSpyVtbl; + + struct IMallocSpy + { + struct IMallocSpyVtbl *lpVtbl; + }; +# 9043 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0056_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0056_v0_0_s_ifspec; + + + + + + + +typedef IBindCtx *LPBC; + +typedef IBindCtx *LPBINDCTX; +# 9064 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef struct tagBIND_OPTS + { + DWORD cbStruct; + DWORD grfFlags; + DWORD grfMode; + DWORD dwTickCountDeadline; + } BIND_OPTS; + +typedef struct tagBIND_OPTS *LPBIND_OPTS; +# 9084 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef struct tagBIND_OPTS2 + { + DWORD cbStruct; + DWORD grfFlags; + DWORD grfMode; + DWORD dwTickCountDeadline; + DWORD dwTrackFlags; + DWORD dwClassContext; + LCID locale; + COSERVERINFO *pServerInfo; + } BIND_OPTS2; + +typedef struct tagBIND_OPTS2 *LPBIND_OPTS2; + + + + + + + +typedef struct tagBIND_OPTS3 + { + DWORD cbStruct; + DWORD grfFlags; + DWORD grfMode; + DWORD dwTickCountDeadline; + DWORD dwTrackFlags; + DWORD dwClassContext; + LCID locale; + COSERVERINFO *pServerInfo; + HWND hwnd; + } BIND_OPTS3; + +typedef struct tagBIND_OPTS3 *LPBIND_OPTS3; + + +typedef +enum tagBIND_FLAGS + { + BIND_MAYBOTHERUSER = 1, + BIND_JUSTTESTEXISTENCE = 2 + } BIND_FLAGS; + + +extern const IID IID_IBindCtx; +# 9174 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IBindCtxVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IBindCtx * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IBindCtx * This); + + + ULONG ( __stdcall *Release )( + IBindCtx * This); + + + HRESULT ( __stdcall *RegisterObjectBound )( + IBindCtx * This, + IUnknown *punk); + + + HRESULT ( __stdcall *RevokeObjectBound )( + IBindCtx * This, + IUnknown *punk); + + + HRESULT ( __stdcall *ReleaseBoundObjects )( + IBindCtx * This); + + + HRESULT ( __stdcall *SetBindOptions )( + IBindCtx * This, + + BIND_OPTS *pbindopts); + + + HRESULT ( __stdcall *GetBindOptions )( + IBindCtx * This, + + BIND_OPTS *pbindopts); + + + HRESULT ( __stdcall *GetRunningObjectTable )( + IBindCtx * This, + IRunningObjectTable **pprot); + + + HRESULT ( __stdcall *RegisterObjectParam )( + IBindCtx * This, + LPOLESTR pszKey, + IUnknown *punk); + + + HRESULT ( __stdcall *GetObjectParam )( + IBindCtx * This, + LPOLESTR pszKey, + IUnknown **ppunk); + + + HRESULT ( __stdcall *EnumObjectParam )( + IBindCtx * This, + IEnumString **ppenum); + + + HRESULT ( __stdcall *RevokeObjectParam )( + IBindCtx * This, + LPOLESTR pszKey); + + + } IBindCtxVtbl; + + struct IBindCtx + { + struct IBindCtxVtbl *lpVtbl; + }; +# 9306 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall IBindCtx_RemoteSetBindOptions_Proxy( + IBindCtx * This, + BIND_OPTS2 *pbindopts); + + +void __stdcall IBindCtx_RemoteSetBindOptions_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IBindCtx_RemoteGetBindOptions_Proxy( + IBindCtx * This, + BIND_OPTS2 *pbindopts); + + +void __stdcall IBindCtx_RemoteGetBindOptions_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 9340 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef IEnumMoniker *LPENUMMONIKER; + + +extern const IID IID_IEnumMoniker; +# 9371 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IEnumMonikerVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IEnumMoniker * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IEnumMoniker * This); + + + ULONG ( __stdcall *Release )( + IEnumMoniker * This); + + + HRESULT ( __stdcall *Next )( + IEnumMoniker * This, + ULONG celt, + + IMoniker **rgelt, + + ULONG *pceltFetched); + + + HRESULT ( __stdcall *Skip )( + IEnumMoniker * This, + ULONG celt); + + + HRESULT ( __stdcall *Reset )( + IEnumMoniker * This); + + + HRESULT ( __stdcall *Clone )( + IEnumMoniker * This, + IEnumMoniker **ppenum); + + + } IEnumMonikerVtbl; + + struct IEnumMoniker + { + struct IEnumMonikerVtbl *lpVtbl; + }; +# 9455 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall IEnumMoniker_RemoteNext_Proxy( + IEnumMoniker * This, + ULONG celt, + IMoniker **rgelt, + ULONG *pceltFetched); + + +void __stdcall IEnumMoniker_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 9482 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0058_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0058_v0_0_s_ifspec; + + + + + + + +typedef IRunnableObject *LPRUNNABLEOBJECT; + + +extern const IID IID_IRunnableObject; +# 9522 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IRunnableObjectVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IRunnableObject * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IRunnableObject * This); + + + ULONG ( __stdcall *Release )( + IRunnableObject * This); + + + HRESULT ( __stdcall *GetRunningClass )( + IRunnableObject * This, + LPCLSID lpClsid); + + + HRESULT ( __stdcall *Run )( + IRunnableObject * This, + LPBINDCTX pbc); + + + BOOL ( __stdcall *IsRunning )( + IRunnableObject * This); + + + HRESULT ( __stdcall *LockRunning )( + IRunnableObject * This, + BOOL fLock, + BOOL fLastUnlockCloses); + + + HRESULT ( __stdcall *SetContainedObject )( + IRunnableObject * This, + BOOL fContained); + + + } IRunnableObjectVtbl; + + struct IRunnableObject + { + struct IRunnableObjectVtbl *lpVtbl; + }; +# 9611 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall IRunnableObject_RemoteIsRunning_Proxy( + IRunnableObject * This); + + +void __stdcall IRunnableObject_RemoteIsRunning_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 9632 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef IRunningObjectTable *LPRUNNINGOBJECTTABLE; + + +extern const IID IID_IRunningObjectTable; +# 9675 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IRunningObjectTableVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IRunningObjectTable * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IRunningObjectTable * This); + + + ULONG ( __stdcall *Release )( + IRunningObjectTable * This); + + + HRESULT ( __stdcall *Register )( + IRunningObjectTable * This, + DWORD grfFlags, + IUnknown *punkObject, + IMoniker *pmkObjectName, + DWORD *pdwRegister); + + + HRESULT ( __stdcall *Revoke )( + IRunningObjectTable * This, + DWORD dwRegister); + + + HRESULT ( __stdcall *IsRunning )( + IRunningObjectTable * This, + IMoniker *pmkObjectName); + + + HRESULT ( __stdcall *GetObjectA )( + IRunningObjectTable * This, + IMoniker *pmkObjectName, + IUnknown **ppunkObject); + + + HRESULT ( __stdcall *NoteChangeTime )( + IRunningObjectTable * This, + DWORD dwRegister, + FILETIME *pfiletime); + + + HRESULT ( __stdcall *GetTimeOfLastChange )( + IRunningObjectTable * This, + IMoniker *pmkObjectName, + FILETIME *pfiletime); + + + HRESULT ( __stdcall *EnumRunning )( + IRunningObjectTable * This, + IEnumMoniker **ppenumMoniker); + + + } IRunningObjectTableVtbl; + + struct IRunningObjectTable + { + struct IRunningObjectTableVtbl *lpVtbl; + }; +# 9799 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0060_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0060_v0_0_s_ifspec; + + + + + + + +typedef IPersist *LPPERSIST; + + +extern const IID IID_IPersist; +# 9827 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IPersistVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IPersist * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IPersist * This); + + + ULONG ( __stdcall *Release )( + IPersist * This); + + + HRESULT ( __stdcall *GetClassID )( + IPersist * This, + CLSID *pClassID); + + + } IPersistVtbl; + + struct IPersist + { + struct IPersistVtbl *lpVtbl; + }; +# 9894 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef IPersistStream *LPPERSISTSTREAM; + + +extern const IID IID_IPersistStream; +# 9922 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IPersistStreamVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IPersistStream * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IPersistStream * This); + + + ULONG ( __stdcall *Release )( + IPersistStream * This); + + + HRESULT ( __stdcall *GetClassID )( + IPersistStream * This, + CLSID *pClassID); + + + HRESULT ( __stdcall *IsDirty )( + IPersistStream * This); + + + HRESULT ( __stdcall *Load )( + IPersistStream * This, + IStream *pStm); + + + HRESULT ( __stdcall *Save )( + IPersistStream * This, + IStream *pStm, + BOOL fClearDirty); + + + HRESULT ( __stdcall *GetSizeMax )( + IPersistStream * This, + ULARGE_INTEGER *pcbSize); + + + } IPersistStreamVtbl; + + struct IPersistStream + { + struct IPersistStreamVtbl *lpVtbl; + }; +# 10022 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef IMoniker *LPMONIKER; + +typedef +enum tagMKSYS + { + MKSYS_NONE = 0, + MKSYS_GENERICCOMPOSITE = 1, + MKSYS_FILEMONIKER = 2, + MKSYS_ANTIMONIKER = 3, + MKSYS_ITEMMONIKER = 4, + MKSYS_POINTERMONIKER = 5, + MKSYS_CLASSMONIKER = 7, + MKSYS_OBJREFMONIKER = 8, + MKSYS_SESSIONMONIKER = 9, + MKSYS_LUAMONIKER = 10 + } MKSYS; + +typedef +enum tagMKREDUCE + { + MKRREDUCE_ONE = ( 3 << 16 ) , + MKRREDUCE_TOUSER = ( 2 << 16 ) , + MKRREDUCE_THROUGHUSER = ( 1 << 16 ) , + MKRREDUCE_ALL = 0 + } MKRREDUCE; + + +extern const IID IID_IMoniker; +# 10139 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IMonikerVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IMoniker * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IMoniker * This); + + + ULONG ( __stdcall *Release )( + IMoniker * This); + + + HRESULT ( __stdcall *GetClassID )( + IMoniker * This, + CLSID *pClassID); + + + HRESULT ( __stdcall *IsDirty )( + IMoniker * This); + + + HRESULT ( __stdcall *Load )( + IMoniker * This, + IStream *pStm); + + + HRESULT ( __stdcall *Save )( + IMoniker * This, + IStream *pStm, + BOOL fClearDirty); + + + HRESULT ( __stdcall *GetSizeMax )( + IMoniker * This, + ULARGE_INTEGER *pcbSize); + + + HRESULT ( __stdcall *BindToObject )( + IMoniker * This, + + IBindCtx *pbc, + + IMoniker *pmkToLeft, + + const IID * const riidResult, + + void **ppvResult); + + + HRESULT ( __stdcall *BindToStorage )( + IMoniker * This, + + IBindCtx *pbc, + + IMoniker *pmkToLeft, + + const IID * const riid, + + void **ppvObj); + + + HRESULT ( __stdcall *Reduce )( + IMoniker * This, + IBindCtx *pbc, + DWORD dwReduceHowFar, + IMoniker **ppmkToLeft, + IMoniker **ppmkReduced); + + + HRESULT ( __stdcall *ComposeWith )( + IMoniker * This, + IMoniker *pmkRight, + BOOL fOnlyIfNotGeneric, + IMoniker **ppmkComposite); + + + HRESULT ( __stdcall *Enum )( + IMoniker * This, + BOOL fForward, + IEnumMoniker **ppenumMoniker); + + + HRESULT ( __stdcall *IsEqual )( + IMoniker * This, + IMoniker *pmkOtherMoniker); + + + HRESULT ( __stdcall *Hash )( + IMoniker * This, + DWORD *pdwHash); + + + HRESULT ( __stdcall *IsRunning )( + IMoniker * This, + IBindCtx *pbc, + IMoniker *pmkToLeft, + IMoniker *pmkNewlyRunning); + + + HRESULT ( __stdcall *GetTimeOfLastChange )( + IMoniker * This, + IBindCtx *pbc, + IMoniker *pmkToLeft, + FILETIME *pFileTime); + + + HRESULT ( __stdcall *Inverse )( + IMoniker * This, + IMoniker **ppmk); + + + HRESULT ( __stdcall *CommonPrefixWith )( + IMoniker * This, + IMoniker *pmkOther, + IMoniker **ppmkPrefix); + + + HRESULT ( __stdcall *RelativePathTo )( + IMoniker * This, + IMoniker *pmkOther, + IMoniker **ppmkRelPath); + + + HRESULT ( __stdcall *GetDisplayName )( + IMoniker * This, + IBindCtx *pbc, + IMoniker *pmkToLeft, + LPOLESTR *ppszDisplayName); + + + HRESULT ( __stdcall *ParseDisplayName )( + IMoniker * This, + IBindCtx *pbc, + IMoniker *pmkToLeft, + LPOLESTR pszDisplayName, + ULONG *pchEaten, + IMoniker **ppmkOut); + + + HRESULT ( __stdcall *IsSystemMoniker )( + IMoniker * This, + DWORD *pdwMksys); + + + } IMonikerVtbl; + + struct IMoniker + { + struct IMonikerVtbl *lpVtbl; + }; +# 10382 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall IMoniker_RemoteBindToObject_Proxy( + IMoniker * This, + IBindCtx *pbc, + IMoniker *pmkToLeft, + const IID * const riidResult, + IUnknown **ppvResult); + + +void __stdcall IMoniker_RemoteBindToObject_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IMoniker_RemoteBindToStorage_Proxy( + IMoniker * This, + IBindCtx *pbc, + IMoniker *pmkToLeft, + const IID * const riid, + IUnknown **ppvObj); + + +void __stdcall IMoniker_RemoteBindToStorage_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 10425 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0063_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0063_v0_0_s_ifspec; +# 10435 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_IROTData; +# 10453 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IROTDataVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IROTData * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IROTData * This); + + + ULONG ( __stdcall *Release )( + IROTData * This); + + + HRESULT ( __stdcall *GetComparisonData )( + IROTData * This, + byte *pbData, + ULONG cbMax, + ULONG *pcbData); + + + } IROTDataVtbl; + + struct IROTData + { + struct IROTDataVtbl *lpVtbl; + }; +# 10525 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0064_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0064_v0_0_s_ifspec; + + + + + + + +typedef IEnumSTATSTG *LPENUMSTATSTG; + + +extern const IID IID_IEnumSTATSTG; +# 10565 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IEnumSTATSTGVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IEnumSTATSTG * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IEnumSTATSTG * This); + + + ULONG ( __stdcall *Release )( + IEnumSTATSTG * This); + + + HRESULT ( __stdcall *Next )( + IEnumSTATSTG * This, + ULONG celt, + + STATSTG *rgelt, + + ULONG *pceltFetched); + + + HRESULT ( __stdcall *Skip )( + IEnumSTATSTG * This, + ULONG celt); + + + HRESULT ( __stdcall *Reset )( + IEnumSTATSTG * This); + + + HRESULT ( __stdcall *Clone )( + IEnumSTATSTG * This, + IEnumSTATSTG **ppenum); + + + } IEnumSTATSTGVtbl; + + struct IEnumSTATSTG + { + struct IEnumSTATSTGVtbl *lpVtbl; + }; +# 10649 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall IEnumSTATSTG_RemoteNext_Proxy( + IEnumSTATSTG * This, + ULONG celt, + STATSTG *rgelt, + ULONG *pceltFetched); + + +void __stdcall IEnumSTATSTG_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 10673 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef IStorage *LPSTORAGE; + +typedef struct tagRemSNB + { + ULONG ulCntStr; + ULONG ulCntChar; + OLECHAR rgString[ 1 ]; + } RemSNB; + +typedef RemSNB *wireSNB; + + +typedef LPOLESTR *SNB; + + + +extern const IID IID_IStorage; +# 10788 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IStorageVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IStorage * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IStorage * This); + + + ULONG ( __stdcall *Release )( + IStorage * This); + + + HRESULT ( __stdcall *CreateStream )( + IStorage * This, + const OLECHAR *pwcsName, + DWORD grfMode, + DWORD reserved1, + DWORD reserved2, + IStream **ppstm); + + + HRESULT ( __stdcall *OpenStream )( + IStorage * This, + + const OLECHAR *pwcsName, + + void *reserved1, + DWORD grfMode, + DWORD reserved2, + + IStream **ppstm); + + + HRESULT ( __stdcall *CreateStorage )( + IStorage * This, + const OLECHAR *pwcsName, + DWORD grfMode, + DWORD reserved1, + DWORD reserved2, + IStorage **ppstg); + + + HRESULT ( __stdcall *OpenStorage )( + IStorage * This, + const OLECHAR *pwcsName, + IStorage *pstgPriority, + DWORD grfMode, + SNB snbExclude, + DWORD reserved, + IStorage **ppstg); + + + HRESULT ( __stdcall *CopyTo )( + IStorage * This, + DWORD ciidExclude, + + const IID *rgiidExclude, + + SNB snbExclude, + + IStorage *pstgDest); + + + HRESULT ( __stdcall *MoveElementTo )( + IStorage * This, + const OLECHAR *pwcsName, + IStorage *pstgDest, + const OLECHAR *pwcsNewName, + DWORD grfFlags); + + + HRESULT ( __stdcall *Commit )( + IStorage * This, + DWORD grfCommitFlags); + + + HRESULT ( __stdcall *Revert )( + IStorage * This); + + + HRESULT ( __stdcall *EnumElements )( + IStorage * This, + + DWORD reserved1, + + void *reserved2, + + DWORD reserved3, + + IEnumSTATSTG **ppenum); + + + HRESULT ( __stdcall *DestroyElement )( + IStorage * This, + const OLECHAR *pwcsName); + + + HRESULT ( __stdcall *RenameElement )( + IStorage * This, + const OLECHAR *pwcsOldName, + const OLECHAR *pwcsNewName); + + + HRESULT ( __stdcall *SetElementTimes )( + IStorage * This, + const OLECHAR *pwcsName, + const FILETIME *pctime, + const FILETIME *patime, + const FILETIME *pmtime); + + + HRESULT ( __stdcall *SetClass )( + IStorage * This, + const IID * const clsid); + + + HRESULT ( __stdcall *SetStateBits )( + IStorage * This, + DWORD grfStateBits, + DWORD grfMask); + + + HRESULT ( __stdcall *Stat )( + IStorage * This, + STATSTG *pstatstg, + DWORD grfStatFlag); + + + } IStorageVtbl; + + struct IStorage + { + struct IStorageVtbl *lpVtbl; + }; +# 10998 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall IStorage_RemoteOpenStream_Proxy( + IStorage * This, + const OLECHAR *pwcsName, + ULONG cbReserved1, + byte *reserved1, + DWORD grfMode, + DWORD reserved2, + IStream **ppstm); + + +void __stdcall IStorage_RemoteOpenStream_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IStorage_RemoteCopyTo_Proxy( + IStorage * This, + DWORD ciidExclude, + const IID *rgiidExclude, + SNB snbExclude, + IStorage *pstgDest); + + +void __stdcall IStorage_RemoteCopyTo_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IStorage_RemoteEnumElements_Proxy( + IStorage * This, + DWORD reserved1, + ULONG cbReserved2, + byte *reserved2, + DWORD reserved3, + IEnumSTATSTG **ppenum); + + +void __stdcall IStorage_RemoteEnumElements_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 11059 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0066_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0066_v0_0_s_ifspec; + + + + + + + +typedef IPersistFile *LPPERSISTFILE; + + +extern const IID IID_IPersistFile; +# 11100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IPersistFileVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IPersistFile * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IPersistFile * This); + + + ULONG ( __stdcall *Release )( + IPersistFile * This); + + + HRESULT ( __stdcall *GetClassID )( + IPersistFile * This, + CLSID *pClassID); + + + HRESULT ( __stdcall *IsDirty )( + IPersistFile * This); + + + HRESULT ( __stdcall *Load )( + IPersistFile * This, + LPCOLESTR pszFileName, + DWORD dwMode); + + + HRESULT ( __stdcall *Save )( + IPersistFile * This, + LPCOLESTR pszFileName, + BOOL fRemember); + + + HRESULT ( __stdcall *SaveCompleted )( + IPersistFile * This, + LPCOLESTR pszFileName); + + + HRESULT ( __stdcall *GetCurFile )( + IPersistFile * This, + LPOLESTR *ppszFileName); + + + } IPersistFileVtbl; + + struct IPersistFile + { + struct IPersistFileVtbl *lpVtbl; + }; +# 11209 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef IPersistStorage *LPPERSISTSTORAGE; + + +extern const IID IID_IPersistStorage; +# 11242 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IPersistStorageVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IPersistStorage * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IPersistStorage * This); + + + ULONG ( __stdcall *Release )( + IPersistStorage * This); + + + HRESULT ( __stdcall *GetClassID )( + IPersistStorage * This, + CLSID *pClassID); + + + HRESULT ( __stdcall *IsDirty )( + IPersistStorage * This); + + + HRESULT ( __stdcall *InitNew )( + IPersistStorage * This, + IStorage *pStg); + + + HRESULT ( __stdcall *Load )( + IPersistStorage * This, + IStorage *pStg); + + + HRESULT ( __stdcall *Save )( + IPersistStorage * This, + IStorage *pStgSave, + BOOL fSameAsLoad); + + + HRESULT ( __stdcall *SaveCompleted )( + IPersistStorage * This, + IStorage *pStgNew); + + + HRESULT ( __stdcall *HandsOffStorage )( + IPersistStorage * This); + + + } IPersistStorageVtbl; + + struct IPersistStorage + { + struct IPersistStorageVtbl *lpVtbl; + }; +# 11360 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0068_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0068_v0_0_s_ifspec; + + + + + + + +typedef ILockBytes *LPLOCKBYTES; + + +extern const IID IID_ILockBytes; +# 11420 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct ILockBytesVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ILockBytes * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ILockBytes * This); + + + ULONG ( __stdcall *Release )( + ILockBytes * This); + + + HRESULT ( __stdcall *ReadAt )( + ILockBytes * This, + ULARGE_INTEGER ulOffset, + + void *pv, + ULONG cb, + + ULONG *pcbRead); + + + HRESULT ( __stdcall *WriteAt )( + ILockBytes * This, + ULARGE_INTEGER ulOffset, + + const void *pv, + ULONG cb, + + ULONG *pcbWritten); + + + HRESULT ( __stdcall *Flush )( + ILockBytes * This); + + + HRESULT ( __stdcall *SetSize )( + ILockBytes * This, + ULARGE_INTEGER cb); + + + HRESULT ( __stdcall *LockRegion )( + ILockBytes * This, + ULARGE_INTEGER libOffset, + ULARGE_INTEGER cb, + DWORD dwLockType); + + + HRESULT ( __stdcall *UnlockRegion )( + ILockBytes * This, + ULARGE_INTEGER libOffset, + ULARGE_INTEGER cb, + DWORD dwLockType); + + + HRESULT ( __stdcall *Stat )( + ILockBytes * This, + STATSTG *pstatstg, + DWORD grfStatFlag); + + + } ILockBytesVtbl; + + struct ILockBytes + { + struct ILockBytesVtbl *lpVtbl; + }; +# 11539 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall ILockBytes_RemoteReadAt_Proxy( + ILockBytes * This, + ULARGE_INTEGER ulOffset, + byte *pv, + ULONG cb, + ULONG *pcbRead); + + +void __stdcall ILockBytes_RemoteReadAt_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ILockBytes_RemoteWriteAt_Proxy( + ILockBytes * This, + ULARGE_INTEGER ulOffset, + const byte *pv, + ULONG cb, + ULONG *pcbWritten); + + +void __stdcall ILockBytes_RemoteWriteAt_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 11579 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef IEnumFORMATETC *LPENUMFORMATETC; + + +typedef struct tagDVTARGETDEVICE + { + DWORD tdSize; + WORD tdDriverNameOffset; + WORD tdDeviceNameOffset; + WORD tdPortNameOffset; + WORD tdExtDevmodeOffset; + BYTE tdData[ 1 ]; + } DVTARGETDEVICE; + + +typedef CLIPFORMAT *LPCLIPFORMAT; + +typedef struct tagFORMATETC + { + CLIPFORMAT cfFormat; + DVTARGETDEVICE *ptd; + DWORD dwAspect; + LONG lindex; + DWORD tymed; + } FORMATETC; + +typedef struct tagFORMATETC *LPFORMATETC; + + +extern const IID IID_IEnumFORMATETC; +# 11635 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IEnumFORMATETCVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IEnumFORMATETC * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IEnumFORMATETC * This); + + + ULONG ( __stdcall *Release )( + IEnumFORMATETC * This); + + + HRESULT ( __stdcall *Next )( + IEnumFORMATETC * This, + ULONG celt, + + FORMATETC *rgelt, + + ULONG *pceltFetched); + + + HRESULT ( __stdcall *Skip )( + IEnumFORMATETC * This, + ULONG celt); + + + HRESULT ( __stdcall *Reset )( + IEnumFORMATETC * This); + + + HRESULT ( __stdcall *Clone )( + IEnumFORMATETC * This, + IEnumFORMATETC **ppenum); + + + } IEnumFORMATETCVtbl; + + struct IEnumFORMATETC + { + struct IEnumFORMATETCVtbl *lpVtbl; + }; +# 11719 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall IEnumFORMATETC_RemoteNext_Proxy( + IEnumFORMATETC * This, + ULONG celt, + FORMATETC *rgelt, + ULONG *pceltFetched); + + +void __stdcall IEnumFORMATETC_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 11743 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef IEnumSTATDATA *LPENUMSTATDATA; + +typedef +enum tagADVF + { + ADVF_NODATA = 1, + ADVF_PRIMEFIRST = 2, + ADVF_ONLYONCE = 4, + ADVF_DATAONSTOP = 64, + ADVFCACHE_NOHANDLER = 8, + ADVFCACHE_FORCEBUILTIN = 16, + ADVFCACHE_ONSAVE = 32 + } ADVF; + +typedef struct tagSTATDATA + { + FORMATETC formatetc; + DWORD advf; + IAdviseSink *pAdvSink; + DWORD dwConnection; + } STATDATA; + +typedef STATDATA *LPSTATDATA; + + +extern const IID IID_IEnumSTATDATA; +# 11796 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IEnumSTATDATAVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IEnumSTATDATA * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IEnumSTATDATA * This); + + + ULONG ( __stdcall *Release )( + IEnumSTATDATA * This); + + + HRESULT ( __stdcall *Next )( + IEnumSTATDATA * This, + ULONG celt, + + STATDATA *rgelt, + + ULONG *pceltFetched); + + + HRESULT ( __stdcall *Skip )( + IEnumSTATDATA * This, + ULONG celt); + + + HRESULT ( __stdcall *Reset )( + IEnumSTATDATA * This); + + + HRESULT ( __stdcall *Clone )( + IEnumSTATDATA * This, + IEnumSTATDATA **ppenum); + + + } IEnumSTATDATAVtbl; + + struct IEnumSTATDATA + { + struct IEnumSTATDATAVtbl *lpVtbl; + }; +# 11880 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall IEnumSTATDATA_RemoteNext_Proxy( + IEnumSTATDATA * This, + ULONG celt, + STATDATA *rgelt, + ULONG *pceltFetched); + + +void __stdcall IEnumSTATDATA_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 11904 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef IRootStorage *LPROOTSTORAGE; + + +extern const IID IID_IRootStorage; +# 11923 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IRootStorageVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IRootStorage * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IRootStorage * This); + + + ULONG ( __stdcall *Release )( + IRootStorage * This); + + + HRESULT ( __stdcall *SwitchToFile )( + IRootStorage * This, + LPOLESTR pszFile); + + + } IRootStorageVtbl; + + struct IRootStorage + { + struct IRootStorageVtbl *lpVtbl; + }; +# 11990 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef IAdviseSink *LPADVISESINK; + +typedef +enum tagTYMED + { + TYMED_HGLOBAL = 1, + TYMED_FILE = 2, + TYMED_ISTREAM = 4, + TYMED_ISTORAGE = 8, + TYMED_GDI = 16, + TYMED_MFPICT = 32, + TYMED_ENHMF = 64, + TYMED_NULL = 0 + } TYMED; + + + +#pragma warning(push) + +#pragma warning(disable: 4200) + +typedef struct tagRemSTGMEDIUM + { + DWORD tymed; + DWORD dwHandleType; + ULONG pData; + ULONG pUnkForRelease; + ULONG cbData; + byte data[ 1 ]; + } RemSTGMEDIUM; + + + +#pragma warning(pop) +# 12043 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef struct tagSTGMEDIUM + { + DWORD tymed; + union + { + HBITMAP hBitmap; + HMETAFILEPICT hMetaFilePict; + HENHMETAFILE hEnhMetaFile; + HGLOBAL hGlobal; + LPOLESTR lpszFileName; + IStream *pstm; + IStorage *pstg; + + } ; + IUnknown *pUnkForRelease; + } uSTGMEDIUM; + + +typedef struct _GDI_OBJECT + { + DWORD ObjectType; + union __MIDL_IAdviseSink_0002 + { + wireHBITMAP hBitmap; + wireHPALETTE hPalette; + wireHGLOBAL hGeneric; + } u; + } GDI_OBJECT; + +typedef struct _userSTGMEDIUM + { + struct _STGMEDIUM_UNION + { + DWORD tymed; + union __MIDL_IAdviseSink_0003 + { + + wireHMETAFILEPICT hMetaFilePict; + wireHENHMETAFILE hHEnhMetaFile; + GDI_OBJECT *hGdiHandle; + wireHGLOBAL hGlobal; + LPOLESTR lpszFileName; + BYTE_BLOB *pstm; + BYTE_BLOB *pstg; + } u; + } ; + IUnknown *pUnkForRelease; + } userSTGMEDIUM; + +typedef userSTGMEDIUM *wireSTGMEDIUM; + +typedef uSTGMEDIUM STGMEDIUM; + +typedef userSTGMEDIUM *wireASYNC_STGMEDIUM; + +typedef STGMEDIUM ASYNC_STGMEDIUM; + +typedef STGMEDIUM *LPSTGMEDIUM; + +typedef struct _userFLAG_STGMEDIUM + { + LONG ContextFlags; + LONG fPassOwnership; + userSTGMEDIUM Stgmed; + } userFLAG_STGMEDIUM; + +typedef userFLAG_STGMEDIUM *wireFLAG_STGMEDIUM; + +typedef struct _FLAG_STGMEDIUM + { + LONG ContextFlags; + LONG fPassOwnership; + STGMEDIUM Stgmed; + } FLAG_STGMEDIUM; + + +extern const IID IID_IAdviseSink; +# 12150 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IAdviseSinkVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IAdviseSink * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IAdviseSink * This); + + + ULONG ( __stdcall *Release )( + IAdviseSink * This); + + + void ( __stdcall *OnDataChange )( + IAdviseSink * This, + + FORMATETC *pFormatetc, + + STGMEDIUM *pStgmed); + + + void ( __stdcall *OnViewChange )( + IAdviseSink * This, + DWORD dwAspect, + LONG lindex); + + + void ( __stdcall *OnRename )( + IAdviseSink * This, + + IMoniker *pmk); + + + void ( __stdcall *OnSave )( + IAdviseSink * This); + + + void ( __stdcall *OnClose )( + IAdviseSink * This); + + + } IAdviseSinkVtbl; + + struct IAdviseSink + { + struct IAdviseSinkVtbl *lpVtbl; + }; +# 12242 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall IAdviseSink_RemoteOnDataChange_Proxy( + IAdviseSink * This, + FORMATETC *pFormatetc, + ASYNC_STGMEDIUM *pStgmed); + + +void __stdcall IAdviseSink_RemoteOnDataChange_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IAdviseSink_RemoteOnViewChange_Proxy( + IAdviseSink * This, + DWORD dwAspect, + LONG lindex); + + +void __stdcall IAdviseSink_RemoteOnViewChange_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IAdviseSink_RemoteOnRename_Proxy( + IAdviseSink * This, + IMoniker *pmk); + + +void __stdcall IAdviseSink_RemoteOnRename_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IAdviseSink_RemoteOnSave_Proxy( + IAdviseSink * This); + + +void __stdcall IAdviseSink_RemoteOnSave_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IAdviseSink_RemoteOnClose_Proxy( + IAdviseSink * This); + + +void __stdcall IAdviseSink_RemoteOnClose_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 12313 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_AsyncIAdviseSink; +# 12354 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct AsyncIAdviseSinkVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + AsyncIAdviseSink * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + AsyncIAdviseSink * This); + + + ULONG ( __stdcall *Release )( + AsyncIAdviseSink * This); + + + void ( __stdcall *Begin_OnDataChange )( + AsyncIAdviseSink * This, + + FORMATETC *pFormatetc, + + STGMEDIUM *pStgmed); + + + void ( __stdcall *Finish_OnDataChange )( + AsyncIAdviseSink * This); + + + void ( __stdcall *Begin_OnViewChange )( + AsyncIAdviseSink * This, + DWORD dwAspect, + LONG lindex); + + + void ( __stdcall *Finish_OnViewChange )( + AsyncIAdviseSink * This); + + + void ( __stdcall *Begin_OnRename )( + AsyncIAdviseSink * This, + + IMoniker *pmk); + + + void ( __stdcall *Finish_OnRename )( + AsyncIAdviseSink * This); + + + void ( __stdcall *Begin_OnSave )( + AsyncIAdviseSink * This); + + + void ( __stdcall *Finish_OnSave )( + AsyncIAdviseSink * This); + + + void ( __stdcall *Begin_OnClose )( + AsyncIAdviseSink * This); + + + void ( __stdcall *Finish_OnClose )( + AsyncIAdviseSink * This); + + + } AsyncIAdviseSinkVtbl; + + struct AsyncIAdviseSink + { + struct AsyncIAdviseSinkVtbl *lpVtbl; + }; +# 12481 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall AsyncIAdviseSink_Begin_RemoteOnDataChange_Proxy( + AsyncIAdviseSink * This, + FORMATETC *pFormatetc, + ASYNC_STGMEDIUM *pStgmed); + + +void __stdcall AsyncIAdviseSink_Begin_RemoteOnDataChange_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall AsyncIAdviseSink_Finish_RemoteOnDataChange_Proxy( + AsyncIAdviseSink * This); + + +void __stdcall AsyncIAdviseSink_Finish_RemoteOnDataChange_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall AsyncIAdviseSink_Begin_RemoteOnViewChange_Proxy( + AsyncIAdviseSink * This, + DWORD dwAspect, + LONG lindex); + + +void __stdcall AsyncIAdviseSink_Begin_RemoteOnViewChange_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall AsyncIAdviseSink_Finish_RemoteOnViewChange_Proxy( + AsyncIAdviseSink * This); + + +void __stdcall AsyncIAdviseSink_Finish_RemoteOnViewChange_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall AsyncIAdviseSink_Begin_RemoteOnRename_Proxy( + AsyncIAdviseSink * This, + IMoniker *pmk); + + +void __stdcall AsyncIAdviseSink_Begin_RemoteOnRename_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall AsyncIAdviseSink_Finish_RemoteOnRename_Proxy( + AsyncIAdviseSink * This); + + +void __stdcall AsyncIAdviseSink_Finish_RemoteOnRename_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall AsyncIAdviseSink_Begin_RemoteOnSave_Proxy( + AsyncIAdviseSink * This); + + +void __stdcall AsyncIAdviseSink_Begin_RemoteOnSave_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall AsyncIAdviseSink_Finish_RemoteOnSave_Proxy( + AsyncIAdviseSink * This); + + +void __stdcall AsyncIAdviseSink_Finish_RemoteOnSave_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall AsyncIAdviseSink_Begin_RemoteOnClose_Proxy( + AsyncIAdviseSink * This); + + +void __stdcall AsyncIAdviseSink_Begin_RemoteOnClose_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall AsyncIAdviseSink_Finish_RemoteOnClose_Proxy( + AsyncIAdviseSink * This); + + +void __stdcall AsyncIAdviseSink_Finish_RemoteOnClose_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 12609 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0073_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0073_v0_0_s_ifspec; + + + + + + + +typedef IAdviseSink2 *LPADVISESINK2; + + +extern const IID IID_IAdviseSink2; +# 12638 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IAdviseSink2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IAdviseSink2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IAdviseSink2 * This); + + + ULONG ( __stdcall *Release )( + IAdviseSink2 * This); + + + void ( __stdcall *OnDataChange )( + IAdviseSink2 * This, + + FORMATETC *pFormatetc, + + STGMEDIUM *pStgmed); + + + void ( __stdcall *OnViewChange )( + IAdviseSink2 * This, + DWORD dwAspect, + LONG lindex); + + + void ( __stdcall *OnRename )( + IAdviseSink2 * This, + + IMoniker *pmk); + + + void ( __stdcall *OnSave )( + IAdviseSink2 * This); + + + void ( __stdcall *OnClose )( + IAdviseSink2 * This); + + + void ( __stdcall *OnLinkSrcChange )( + IAdviseSink2 * This, + + IMoniker *pmk); + + + } IAdviseSink2Vtbl; + + struct IAdviseSink2 + { + struct IAdviseSink2Vtbl *lpVtbl; + }; +# 12740 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall IAdviseSink2_RemoteOnLinkSrcChange_Proxy( + IAdviseSink2 * This, + IMoniker *pmk); + + +void __stdcall IAdviseSink2_RemoteOnLinkSrcChange_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 12763 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_AsyncIAdviseSink2; +# 12782 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct AsyncIAdviseSink2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + AsyncIAdviseSink2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + AsyncIAdviseSink2 * This); + + + ULONG ( __stdcall *Release )( + AsyncIAdviseSink2 * This); + + + void ( __stdcall *Begin_OnDataChange )( + AsyncIAdviseSink2 * This, + + FORMATETC *pFormatetc, + + STGMEDIUM *pStgmed); + + + void ( __stdcall *Finish_OnDataChange )( + AsyncIAdviseSink2 * This); + + + void ( __stdcall *Begin_OnViewChange )( + AsyncIAdviseSink2 * This, + DWORD dwAspect, + LONG lindex); + + + void ( __stdcall *Finish_OnViewChange )( + AsyncIAdviseSink2 * This); + + + void ( __stdcall *Begin_OnRename )( + AsyncIAdviseSink2 * This, + + IMoniker *pmk); + + + void ( __stdcall *Finish_OnRename )( + AsyncIAdviseSink2 * This); + + + void ( __stdcall *Begin_OnSave )( + AsyncIAdviseSink2 * This); + + + void ( __stdcall *Finish_OnSave )( + AsyncIAdviseSink2 * This); + + + void ( __stdcall *Begin_OnClose )( + AsyncIAdviseSink2 * This); + + + void ( __stdcall *Finish_OnClose )( + AsyncIAdviseSink2 * This); + + + void ( __stdcall *Begin_OnLinkSrcChange )( + AsyncIAdviseSink2 * This, + + IMoniker *pmk); + + + void ( __stdcall *Finish_OnLinkSrcChange )( + AsyncIAdviseSink2 * This); + + + } AsyncIAdviseSink2Vtbl; + + struct AsyncIAdviseSink2 + { + struct AsyncIAdviseSink2Vtbl *lpVtbl; + }; +# 12926 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall AsyncIAdviseSink2_Begin_RemoteOnLinkSrcChange_Proxy( + AsyncIAdviseSink2 * This, + IMoniker *pmk); + + +void __stdcall AsyncIAdviseSink2_Begin_RemoteOnLinkSrcChange_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall AsyncIAdviseSink2_Finish_RemoteOnLinkSrcChange_Proxy( + AsyncIAdviseSink2 * This); + + +void __stdcall AsyncIAdviseSink2_Finish_RemoteOnLinkSrcChange_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 12962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0074_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0074_v0_0_s_ifspec; + + + + + + + +typedef IDataObject *LPDATAOBJECT; + +typedef +enum tagDATADIR + { + DATADIR_GET = 1, + DATADIR_SET = 2 + } DATADIR; + + +extern const IID IID_IDataObject; +# 13036 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IDataObjectVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IDataObject * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IDataObject * This); + + + ULONG ( __stdcall *Release )( + IDataObject * This); + + + HRESULT ( __stdcall *GetData )( + IDataObject * This, + + FORMATETC *pformatetcIn, + + STGMEDIUM *pmedium); + + + HRESULT ( __stdcall *GetDataHere )( + IDataObject * This, + + FORMATETC *pformatetc, + + STGMEDIUM *pmedium); + + + HRESULT ( __stdcall *QueryGetData )( + IDataObject * This, + FORMATETC *pformatetc); + + + HRESULT ( __stdcall *GetCanonicalFormatEtc )( + IDataObject * This, + FORMATETC *pformatectIn, + FORMATETC *pformatetcOut); + + + HRESULT ( __stdcall *SetData )( + IDataObject * This, + + FORMATETC *pformatetc, + + STGMEDIUM *pmedium, + BOOL fRelease); + + + HRESULT ( __stdcall *EnumFormatEtc )( + IDataObject * This, + DWORD dwDirection, + IEnumFORMATETC **ppenumFormatEtc); + + + HRESULT ( __stdcall *DAdvise )( + IDataObject * This, + FORMATETC *pformatetc, + DWORD advf, + IAdviseSink *pAdvSink, + DWORD *pdwConnection); + + + HRESULT ( __stdcall *DUnadvise )( + IDataObject * This, + DWORD dwConnection); + + + HRESULT ( __stdcall *EnumDAdvise )( + IDataObject * This, + IEnumSTATDATA **ppenumAdvise); + + + } IDataObjectVtbl; + + struct IDataObject + { + struct IDataObjectVtbl *lpVtbl; + }; +# 13172 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall IDataObject_RemoteGetData_Proxy( + IDataObject * This, + FORMATETC *pformatetcIn, + STGMEDIUM *pRemoteMedium); + + +void __stdcall IDataObject_RemoteGetData_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IDataObject_RemoteGetDataHere_Proxy( + IDataObject * This, + FORMATETC *pformatetc, + STGMEDIUM *pRemoteMedium); + + +void __stdcall IDataObject_RemoteGetDataHere_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IDataObject_RemoteSetData_Proxy( + IDataObject * This, + FORMATETC *pformatetc, + FLAG_STGMEDIUM *pmedium, + BOOL fRelease); + + +void __stdcall IDataObject_RemoteSetData_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 13225 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0075_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0075_v0_0_s_ifspec; + + + + + + + +typedef IDataAdviseHolder *LPDATAADVISEHOLDER; + + +extern const IID IID_IDataAdviseHolder; +# 13278 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IDataAdviseHolderVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IDataAdviseHolder * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IDataAdviseHolder * This); + + + ULONG ( __stdcall *Release )( + IDataAdviseHolder * This); + + + HRESULT ( __stdcall *Advise )( + IDataAdviseHolder * This, + + IDataObject *pDataObject, + + FORMATETC *pFetc, + + DWORD advf, + + IAdviseSink *pAdvise, + + DWORD *pdwConnection); + + + HRESULT ( __stdcall *Unadvise )( + IDataAdviseHolder * This, + + DWORD dwConnection); + + + HRESULT ( __stdcall *EnumAdvise )( + IDataAdviseHolder * This, + + IEnumSTATDATA **ppenumAdvise); + + + HRESULT ( __stdcall *SendOnDataChange )( + IDataAdviseHolder * This, + + IDataObject *pDataObject, + + DWORD dwReserved, + + DWORD advf); + + + } IDataAdviseHolderVtbl; + + struct IDataAdviseHolder + { + struct IDataAdviseHolderVtbl *lpVtbl; + }; +# 13385 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef IMessageFilter *LPMESSAGEFILTER; + +typedef +enum tagCALLTYPE + { + CALLTYPE_TOPLEVEL = 1, + CALLTYPE_NESTED = 2, + CALLTYPE_ASYNC = 3, + CALLTYPE_TOPLEVEL_CALLPENDING = 4, + CALLTYPE_ASYNC_CALLPENDING = 5 + } CALLTYPE; + +typedef +enum tagSERVERCALL + { + SERVERCALL_ISHANDLED = 0, + SERVERCALL_REJECTED = 1, + SERVERCALL_RETRYLATER = 2 + } SERVERCALL; + +typedef +enum tagPENDINGTYPE + { + PENDINGTYPE_TOPLEVEL = 1, + PENDINGTYPE_NESTED = 2 + } PENDINGTYPE; + +typedef +enum tagPENDINGMSG + { + PENDINGMSG_CANCELCALL = 0, + PENDINGMSG_WAITNOPROCESS = 1, + PENDINGMSG_WAITDEFPROCESS = 2 + } PENDINGMSG; + +typedef struct tagINTERFACEINFO + { + IUnknown *pUnk; + IID iid; + WORD wMethod; + } INTERFACEINFO; + +typedef struct tagINTERFACEINFO *LPINTERFACEINFO; + + +extern const IID IID_IMessageFilter; +# 13469 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IMessageFilterVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IMessageFilter * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IMessageFilter * This); + + + ULONG ( __stdcall *Release )( + IMessageFilter * This); + + + DWORD ( __stdcall *HandleInComingCall )( + IMessageFilter * This, + + DWORD dwCallType, + + HTASK htaskCaller, + + DWORD dwTickCount, + + LPINTERFACEINFO lpInterfaceInfo); + + + DWORD ( __stdcall *RetryRejectedCall )( + IMessageFilter * This, + + HTASK htaskCallee, + + DWORD dwTickCount, + + DWORD dwRejectType); + + + DWORD ( __stdcall *MessagePending )( + IMessageFilter * This, + + HTASK htaskCallee, + + DWORD dwTickCount, + + DWORD dwPendingType); + + + } IMessageFilterVtbl; + + struct IMessageFilter + { + struct IMessageFilterVtbl *lpVtbl; + }; +# 13568 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const FMTID FMTID_SummaryInformation; + +extern const FMTID FMTID_DocSummaryInformation; + +extern const FMTID FMTID_UserDefinedProperties; + +extern const FMTID FMTID_DiscardableInformation; + +extern const FMTID FMTID_ImageSummaryInformation; + +extern const FMTID FMTID_AudioSummaryInformation; + +extern const FMTID FMTID_VideoSummaryInformation; + +extern const FMTID FMTID_MediaFileSummaryInformation; + + + +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0077_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0077_v0_0_s_ifspec; +# 13596 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_IClassActivator; +# 13616 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IClassActivatorVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IClassActivator * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IClassActivator * This); + + + ULONG ( __stdcall *Release )( + IClassActivator * This); + + + HRESULT ( __stdcall *GetClassObject )( + IClassActivator * This, + const IID * const rclsid, + DWORD dwClassContext, + LCID locale, + const IID * const riid, + void **ppv); + + + } IClassActivatorVtbl; + + struct IClassActivator + { + struct IClassActivatorVtbl *lpVtbl; + }; +# 13690 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0078_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0078_v0_0_s_ifspec; +# 13700 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_IFillLockBytes; +# 13737 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IFillLockBytesVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IFillLockBytes * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IFillLockBytes * This); + + + ULONG ( __stdcall *Release )( + IFillLockBytes * This); + + + HRESULT ( __stdcall *FillAppend )( + IFillLockBytes * This, + + const void *pv, + + ULONG cb, + + ULONG *pcbWritten); + + + HRESULT ( __stdcall *FillAt )( + IFillLockBytes * This, + + ULARGE_INTEGER ulOffset, + + const void *pv, + + ULONG cb, + + ULONG *pcbWritten); + + + HRESULT ( __stdcall *SetFillSize )( + IFillLockBytes * This, + ULARGE_INTEGER ulSize); + + + HRESULT ( __stdcall *Terminate )( + IFillLockBytes * This, + BOOL bCanceled); + + + } IFillLockBytesVtbl; + + struct IFillLockBytes + { + struct IFillLockBytesVtbl *lpVtbl; + }; +# 13830 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + HRESULT __stdcall IFillLockBytes_RemoteFillAppend_Proxy( + IFillLockBytes * This, + const byte *pv, + ULONG cb, + ULONG *pcbWritten); + + +void __stdcall IFillLockBytes_RemoteFillAppend_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IFillLockBytes_RemoteFillAt_Proxy( + IFillLockBytes * This, + ULARGE_INTEGER ulOffset, + const byte *pv, + ULONG cb, + ULONG *pcbWritten); + + +void __stdcall IFillLockBytes_RemoteFillAt_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 13872 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0079_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0079_v0_0_s_ifspec; +# 13882 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_IProgressNotify; +# 13901 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IProgressNotifyVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IProgressNotify * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IProgressNotify * This); + + + ULONG ( __stdcall *Release )( + IProgressNotify * This); + + + HRESULT ( __stdcall *OnProgress )( + IProgressNotify * This, + DWORD dwProgressCurrent, + DWORD dwProgressMaximum, + BOOL fAccurate, + BOOL fOwner); + + + } IProgressNotifyVtbl; + + struct IProgressNotify + { + struct IProgressNotifyVtbl *lpVtbl; + }; +# 13974 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0080_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0080_v0_0_s_ifspec; + + + + + + + +typedef struct tagStorageLayout + { + DWORD LayoutType; + OLECHAR *pwcsElementName; + LARGE_INTEGER cOffset; + LARGE_INTEGER cBytes; + } StorageLayout; + + +extern const IID IID_ILayoutStorage; +# 14025 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct ILayoutStorageVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ILayoutStorage * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ILayoutStorage * This); + + + ULONG ( __stdcall *Release )( + ILayoutStorage * This); + + + HRESULT ( __stdcall *LayoutScript )( + ILayoutStorage * This, + + StorageLayout *pStorageLayout, + + DWORD nEntries, + + DWORD glfInterleavedFlag); + + + HRESULT ( __stdcall *BeginMonitor )( + ILayoutStorage * This); + + + HRESULT ( __stdcall *EndMonitor )( + ILayoutStorage * This); + + + HRESULT ( __stdcall *ReLayoutDocfile )( + ILayoutStorage * This, + + OLECHAR *pwcsNewDfName); + + + HRESULT ( __stdcall *ReLayoutDocfileOnILockBytes )( + ILayoutStorage * This, + + ILockBytes *pILockBytes); + + + } ILayoutStorageVtbl; + + struct ILayoutStorage + { + struct ILayoutStorageVtbl *lpVtbl; + }; +# 14132 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0081_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0081_v0_0_s_ifspec; +# 14142 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_IBlockingLock; +# 14160 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IBlockingLockVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IBlockingLock * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IBlockingLock * This); + + + ULONG ( __stdcall *Release )( + IBlockingLock * This); + + + HRESULT ( __stdcall *Lock )( + IBlockingLock * This, + DWORD dwTimeout); + + + HRESULT ( __stdcall *Unlock )( + IBlockingLock * This); + + + } IBlockingLockVtbl; + + struct IBlockingLock + { + struct IBlockingLockVtbl *lpVtbl; + }; +# 14235 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_ITimeAndNoticeControl; +# 14252 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct ITimeAndNoticeControlVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ITimeAndNoticeControl * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ITimeAndNoticeControl * This); + + + ULONG ( __stdcall *Release )( + ITimeAndNoticeControl * This); + + + HRESULT ( __stdcall *SuppressChanges )( + ITimeAndNoticeControl * This, + DWORD res1, + DWORD res2); + + + } ITimeAndNoticeControlVtbl; + + struct ITimeAndNoticeControl + { + struct ITimeAndNoticeControlVtbl *lpVtbl; + }; +# 14321 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_IOplockStorage; +# 14350 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IOplockStorageVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOplockStorage * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOplockStorage * This); + + + ULONG ( __stdcall *Release )( + IOplockStorage * This); + + + HRESULT ( __stdcall *CreateStorageEx )( + IOplockStorage * This, + LPCWSTR pwcsName, + DWORD grfMode, + DWORD stgfmt, + DWORD grfAttrs, + const IID * const riid, + void **ppstgOpen); + + + HRESULT ( __stdcall *OpenStorageEx )( + IOplockStorage * This, + LPCWSTR pwcsName, + DWORD grfMode, + DWORD stgfmt, + DWORD grfAttrs, + const IID * const riid, + void **ppstgOpen); + + + } IOplockStorageVtbl; + + struct IOplockStorage + { + struct IOplockStorageVtbl *lpVtbl; + }; +# 14438 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0084_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0084_v0_0_s_ifspec; +# 14448 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_IDirectWriterLock; +# 14468 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IDirectWriterLockVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IDirectWriterLock * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IDirectWriterLock * This); + + + ULONG ( __stdcall *Release )( + IDirectWriterLock * This); + + + HRESULT ( __stdcall *WaitForWriteAccess )( + IDirectWriterLock * This, + DWORD dwTimeout); + + + HRESULT ( __stdcall *ReleaseWriteAccess )( + IDirectWriterLock * This); + + + HRESULT ( __stdcall *HaveWriteAccess )( + IDirectWriterLock * This); + + + } IDirectWriterLockVtbl; + + struct IDirectWriterLock + { + struct IDirectWriterLockVtbl *lpVtbl; + }; +# 14552 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0085_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0085_v0_0_s_ifspec; +# 14562 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_IUrlMon; +# 14587 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IUrlMonVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IUrlMon * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IUrlMon * This); + + + ULONG ( __stdcall *Release )( + IUrlMon * This); + + + HRESULT ( __stdcall *AsyncGetClassBits )( + IUrlMon * This, + const IID * const rclsid, + LPCWSTR pszTYPE, + LPCWSTR pszExt, + DWORD dwFileVersionMS, + DWORD dwFileVersionLS, + LPCWSTR pszCodeBase, + IBindCtx *pbc, + DWORD dwClassContext, + const IID * const riid, + DWORD flags); + + + } IUrlMonVtbl; + + struct IUrlMon + { + struct IUrlMonVtbl *lpVtbl; + }; +# 14664 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_IForegroundTransfer; +# 14681 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IForegroundTransferVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IForegroundTransfer * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IForegroundTransfer * This); + + + ULONG ( __stdcall *Release )( + IForegroundTransfer * This); + + + HRESULT ( __stdcall *AllowForegroundTransfer )( + IForegroundTransfer * This, + + void *lpvReserved); + + + } IForegroundTransferVtbl; + + struct IForegroundTransfer + { + struct IForegroundTransferVtbl *lpVtbl; + }; +# 14750 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_IThumbnailExtractor; +# 14774 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IThumbnailExtractorVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IThumbnailExtractor * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IThumbnailExtractor * This); + + + ULONG ( __stdcall *Release )( + IThumbnailExtractor * This); + + + HRESULT ( __stdcall *ExtractThumbnail )( + IThumbnailExtractor * This, + IStorage *pStg, + ULONG ulLength, + ULONG ulHeight, + ULONG *pulOutputLength, + ULONG *pulOutputHeight, + HBITMAP *phOutputBitmap); + + + HRESULT ( __stdcall *OnFileUpdated )( + IThumbnailExtractor * This, + IStorage *pStg); + + + } IThumbnailExtractorVtbl; + + struct IThumbnailExtractor + { + struct IThumbnailExtractorVtbl *lpVtbl; + }; +# 14855 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_IDummyHICONIncluder; +# 14872 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IDummyHICONIncluderVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IDummyHICONIncluder * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IDummyHICONIncluder * This); + + + ULONG ( __stdcall *Release )( + IDummyHICONIncluder * This); + + + HRESULT ( __stdcall *Dummy )( + IDummyHICONIncluder * This, + HICON h1, + HDC h2); + + + } IDummyHICONIncluderVtbl; + + struct IDummyHICONIncluder + { + struct IDummyHICONIncluderVtbl *lpVtbl; + }; +# 14937 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +typedef +enum tagApplicationType + { + ServerApplication = 0, + LibraryApplication = ( ServerApplication + 1 ) + } ApplicationType; + +typedef +enum tagShutdownType + { + IdleShutdown = 0, + ForcedShutdown = ( IdleShutdown + 1 ) + } ShutdownType; + + + +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0089_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0089_v0_0_s_ifspec; +# 14963 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_IProcessLock; +# 14980 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IProcessLockVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IProcessLock * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IProcessLock * This); + + + ULONG ( __stdcall *Release )( + IProcessLock * This); + + + ULONG ( __stdcall *AddRefOnProcess )( + IProcessLock * This); + + + ULONG ( __stdcall *ReleaseRefOnProcess )( + IProcessLock * This); + + + } IProcessLockVtbl; + + struct IProcessLock + { + struct IProcessLockVtbl *lpVtbl; + }; +# 15054 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_ISurrogateService; +# 15093 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct ISurrogateServiceVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ISurrogateService * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ISurrogateService * This); + + + ULONG ( __stdcall *Release )( + ISurrogateService * This); + + + HRESULT ( __stdcall *Init )( + ISurrogateService * This, + + const GUID * const rguidProcessID, + + IProcessLock *pProcessLock, + + BOOL *pfApplicationAware); + + + HRESULT ( __stdcall *ApplicationLaunch )( + ISurrogateService * This, + + const GUID * const rguidApplID, + + ApplicationType appType); + + + HRESULT ( __stdcall *ApplicationFree )( + ISurrogateService * This, + + const GUID * const rguidApplID); + + + HRESULT ( __stdcall *CatalogRefresh )( + ISurrogateService * This, + + ULONG ulReserved); + + + HRESULT ( __stdcall *ProcessShutdown )( + ISurrogateService * This, + + ShutdownType shutdownType); + + + } ISurrogateServiceVtbl; + + struct ISurrogateService + { + struct ISurrogateServiceVtbl *lpVtbl; + }; +# 15203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0091_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0091_v0_0_s_ifspec; + + + + + + + +typedef IInitializeSpy *LPINITIALIZESPY; + + +extern const IID IID_IInitializeSpy; +# 15250 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IInitializeSpyVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInitializeSpy * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInitializeSpy * This); + + + ULONG ( __stdcall *Release )( + IInitializeSpy * This); + + + HRESULT ( __stdcall *PreInitialize )( + IInitializeSpy * This, + + DWORD dwCoInit, + + DWORD dwCurThreadAptRefs); + + + HRESULT ( __stdcall *PostInitialize )( + IInitializeSpy * This, + + HRESULT hrCoInit, + + DWORD dwCoInit, + + DWORD dwNewThreadAptRefs); + + + HRESULT ( __stdcall *PreUninitialize )( + IInitializeSpy * This, + + DWORD dwCurThreadAptRefs); + + + HRESULT ( __stdcall *PostUninitialize )( + IInitializeSpy * This, + + DWORD dwNewThreadAptRefs); + + + } IInitializeSpyVtbl; + + struct IInitializeSpy + { + struct IInitializeSpyVtbl *lpVtbl; + }; +# 15355 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0092_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0092_v0_0_s_ifspec; +# 15365 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +extern const IID IID_IApartmentShutdown; +# 15382 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 + typedef struct IApartmentShutdownVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IApartmentShutdown * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IApartmentShutdown * This); + + + ULONG ( __stdcall *Release )( + IApartmentShutdown * This); + + + void ( __stdcall *OnUninitialize )( + IApartmentShutdown * This, + + UINT64 ui64ApartmentIdentifier); + + + } IApartmentShutdownVtbl; + + struct IApartmentShutdown + { + struct IApartmentShutdownVtbl *lpVtbl; + }; +# 15451 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 +#pragma warning(pop) + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0093_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0093_v0_0_s_ifspec; + + + +unsigned long __stdcall ASYNC_STGMEDIUM_UserSize( unsigned long *, unsigned long , ASYNC_STGMEDIUM * ); +unsigned char * __stdcall ASYNC_STGMEDIUM_UserMarshal( unsigned long *, unsigned char *, ASYNC_STGMEDIUM * ); +unsigned char * __stdcall ASYNC_STGMEDIUM_UserUnmarshal( unsigned long *, unsigned char *, ASYNC_STGMEDIUM * ); +void __stdcall ASYNC_STGMEDIUM_UserFree( unsigned long *, ASYNC_STGMEDIUM * ); + +unsigned long __stdcall CLIPFORMAT_UserSize( unsigned long *, unsigned long , CLIPFORMAT * ); +unsigned char * __stdcall CLIPFORMAT_UserMarshal( unsigned long *, unsigned char *, CLIPFORMAT * ); +unsigned char * __stdcall CLIPFORMAT_UserUnmarshal( unsigned long *, unsigned char *, CLIPFORMAT * ); +void __stdcall CLIPFORMAT_UserFree( unsigned long *, CLIPFORMAT * ); + +unsigned long __stdcall FLAG_STGMEDIUM_UserSize( unsigned long *, unsigned long , FLAG_STGMEDIUM * ); +unsigned char * __stdcall FLAG_STGMEDIUM_UserMarshal( unsigned long *, unsigned char *, FLAG_STGMEDIUM * ); +unsigned char * __stdcall FLAG_STGMEDIUM_UserUnmarshal( unsigned long *, unsigned char *, FLAG_STGMEDIUM * ); +void __stdcall FLAG_STGMEDIUM_UserFree( unsigned long *, FLAG_STGMEDIUM * ); + +unsigned long __stdcall HBITMAP_UserSize( unsigned long *, unsigned long , HBITMAP * ); +unsigned char * __stdcall HBITMAP_UserMarshal( unsigned long *, unsigned char *, HBITMAP * ); +unsigned char * __stdcall HBITMAP_UserUnmarshal( unsigned long *, unsigned char *, HBITMAP * ); +void __stdcall HBITMAP_UserFree( unsigned long *, HBITMAP * ); + +unsigned long __stdcall HDC_UserSize( unsigned long *, unsigned long , HDC * ); +unsigned char * __stdcall HDC_UserMarshal( unsigned long *, unsigned char *, HDC * ); +unsigned char * __stdcall HDC_UserUnmarshal( unsigned long *, unsigned char *, HDC * ); +void __stdcall HDC_UserFree( unsigned long *, HDC * ); + +unsigned long __stdcall HICON_UserSize( unsigned long *, unsigned long , HICON * ); +unsigned char * __stdcall HICON_UserMarshal( unsigned long *, unsigned char *, HICON * ); +unsigned char * __stdcall HICON_UserUnmarshal( unsigned long *, unsigned char *, HICON * ); +void __stdcall HICON_UserFree( unsigned long *, HICON * ); + +unsigned long __stdcall SNB_UserSize( unsigned long *, unsigned long , SNB * ); +unsigned char * __stdcall SNB_UserMarshal( unsigned long *, unsigned char *, SNB * ); +unsigned char * __stdcall SNB_UserUnmarshal( unsigned long *, unsigned char *, SNB * ); +void __stdcall SNB_UserFree( unsigned long *, SNB * ); + +unsigned long __stdcall STGMEDIUM_UserSize( unsigned long *, unsigned long , STGMEDIUM * ); +unsigned char * __stdcall STGMEDIUM_UserMarshal( unsigned long *, unsigned char *, STGMEDIUM * ); +unsigned char * __stdcall STGMEDIUM_UserUnmarshal( unsigned long *, unsigned char *, STGMEDIUM * ); +void __stdcall STGMEDIUM_UserFree( unsigned long *, STGMEDIUM * ); + +unsigned long __stdcall ASYNC_STGMEDIUM_UserSize64( unsigned long *, unsigned long , ASYNC_STGMEDIUM * ); +unsigned char * __stdcall ASYNC_STGMEDIUM_UserMarshal64( unsigned long *, unsigned char *, ASYNC_STGMEDIUM * ); +unsigned char * __stdcall ASYNC_STGMEDIUM_UserUnmarshal64( unsigned long *, unsigned char *, ASYNC_STGMEDIUM * ); +void __stdcall ASYNC_STGMEDIUM_UserFree64( unsigned long *, ASYNC_STGMEDIUM * ); + +unsigned long __stdcall CLIPFORMAT_UserSize64( unsigned long *, unsigned long , CLIPFORMAT * ); +unsigned char * __stdcall CLIPFORMAT_UserMarshal64( unsigned long *, unsigned char *, CLIPFORMAT * ); +unsigned char * __stdcall CLIPFORMAT_UserUnmarshal64( unsigned long *, unsigned char *, CLIPFORMAT * ); +void __stdcall CLIPFORMAT_UserFree64( unsigned long *, CLIPFORMAT * ); + +unsigned long __stdcall FLAG_STGMEDIUM_UserSize64( unsigned long *, unsigned long , FLAG_STGMEDIUM * ); +unsigned char * __stdcall FLAG_STGMEDIUM_UserMarshal64( unsigned long *, unsigned char *, FLAG_STGMEDIUM * ); +unsigned char * __stdcall FLAG_STGMEDIUM_UserUnmarshal64( unsigned long *, unsigned char *, FLAG_STGMEDIUM * ); +void __stdcall FLAG_STGMEDIUM_UserFree64( unsigned long *, FLAG_STGMEDIUM * ); + +unsigned long __stdcall HBITMAP_UserSize64( unsigned long *, unsigned long , HBITMAP * ); +unsigned char * __stdcall HBITMAP_UserMarshal64( unsigned long *, unsigned char *, HBITMAP * ); +unsigned char * __stdcall HBITMAP_UserUnmarshal64( unsigned long *, unsigned char *, HBITMAP * ); +void __stdcall HBITMAP_UserFree64( unsigned long *, HBITMAP * ); + +unsigned long __stdcall HDC_UserSize64( unsigned long *, unsigned long , HDC * ); +unsigned char * __stdcall HDC_UserMarshal64( unsigned long *, unsigned char *, HDC * ); +unsigned char * __stdcall HDC_UserUnmarshal64( unsigned long *, unsigned char *, HDC * ); +void __stdcall HDC_UserFree64( unsigned long *, HDC * ); + +unsigned long __stdcall HICON_UserSize64( unsigned long *, unsigned long , HICON * ); +unsigned char * __stdcall HICON_UserMarshal64( unsigned long *, unsigned char *, HICON * ); +unsigned char * __stdcall HICON_UserUnmarshal64( unsigned long *, unsigned char *, HICON * ); +void __stdcall HICON_UserFree64( unsigned long *, HICON * ); + +unsigned long __stdcall SNB_UserSize64( unsigned long *, unsigned long , SNB * ); +unsigned char * __stdcall SNB_UserMarshal64( unsigned long *, unsigned char *, SNB * ); +unsigned char * __stdcall SNB_UserUnmarshal64( unsigned long *, unsigned char *, SNB * ); +void __stdcall SNB_UserFree64( unsigned long *, SNB * ); + +unsigned long __stdcall STGMEDIUM_UserSize64( unsigned long *, unsigned long , STGMEDIUM * ); +unsigned char * __stdcall STGMEDIUM_UserMarshal64( unsigned long *, unsigned char *, STGMEDIUM * ); +unsigned char * __stdcall STGMEDIUM_UserUnmarshal64( unsigned long *, unsigned char *, STGMEDIUM * ); +void __stdcall STGMEDIUM_UserFree64( unsigned long *, STGMEDIUM * ); + + HRESULT __stdcall IEnumUnknown_Next_Proxy( + IEnumUnknown * This, + + ULONG celt, + + IUnknown **rgelt, + + ULONG *pceltFetched); + + + HRESULT __stdcall IEnumUnknown_Next_Stub( + IEnumUnknown * This, + ULONG celt, + IUnknown **rgelt, + ULONG *pceltFetched); + + HRESULT __stdcall IEnumString_Next_Proxy( + IEnumString * This, + ULONG celt, + + LPOLESTR *rgelt, + + ULONG *pceltFetched); + + + HRESULT __stdcall IEnumString_Next_Stub( + IEnumString * This, + ULONG celt, + LPOLESTR *rgelt, + ULONG *pceltFetched); + + HRESULT __stdcall ISequentialStream_Read_Proxy( + ISequentialStream * This, + + void *pv, + + ULONG cb, + + ULONG *pcbRead); + + + HRESULT __stdcall ISequentialStream_Read_Stub( + ISequentialStream * This, + byte *pv, + ULONG cb, + ULONG *pcbRead); + + HRESULT __stdcall ISequentialStream_Write_Proxy( + ISequentialStream * This, + + const void *pv, + + ULONG cb, + + ULONG *pcbWritten); + + + HRESULT __stdcall ISequentialStream_Write_Stub( + ISequentialStream * This, + const byte *pv, + ULONG cb, + ULONG *pcbWritten); + + HRESULT __stdcall IStream_Seek_Proxy( + IStream * This, + LARGE_INTEGER dlibMove, + DWORD dwOrigin, + + ULARGE_INTEGER *plibNewPosition); + + + HRESULT __stdcall IStream_Seek_Stub( + IStream * This, + LARGE_INTEGER dlibMove, + DWORD dwOrigin, + ULARGE_INTEGER *plibNewPosition); + + HRESULT __stdcall IStream_CopyTo_Proxy( + IStream * This, + + IStream *pstm, + ULARGE_INTEGER cb, + + ULARGE_INTEGER *pcbRead, + + ULARGE_INTEGER *pcbWritten); + + + HRESULT __stdcall IStream_CopyTo_Stub( + IStream * This, + IStream *pstm, + ULARGE_INTEGER cb, + ULARGE_INTEGER *pcbRead, + ULARGE_INTEGER *pcbWritten); + + HRESULT __stdcall IBindCtx_SetBindOptions_Proxy( + IBindCtx * This, + + BIND_OPTS *pbindopts); + + + HRESULT __stdcall IBindCtx_SetBindOptions_Stub( + IBindCtx * This, + BIND_OPTS2 *pbindopts); + + HRESULT __stdcall IBindCtx_GetBindOptions_Proxy( + IBindCtx * This, + + BIND_OPTS *pbindopts); + + + HRESULT __stdcall IBindCtx_GetBindOptions_Stub( + IBindCtx * This, + BIND_OPTS2 *pbindopts); + + HRESULT __stdcall IEnumMoniker_Next_Proxy( + IEnumMoniker * This, + ULONG celt, + + IMoniker **rgelt, + + ULONG *pceltFetched); + + + HRESULT __stdcall IEnumMoniker_Next_Stub( + IEnumMoniker * This, + ULONG celt, + IMoniker **rgelt, + ULONG *pceltFetched); + + BOOL __stdcall IRunnableObject_IsRunning_Proxy( + IRunnableObject * This); + + + HRESULT __stdcall IRunnableObject_IsRunning_Stub( + IRunnableObject * This); + + HRESULT __stdcall IMoniker_BindToObject_Proxy( + IMoniker * This, + + IBindCtx *pbc, + + IMoniker *pmkToLeft, + + const IID * const riidResult, + + void **ppvResult); + + + HRESULT __stdcall IMoniker_BindToObject_Stub( + IMoniker * This, + IBindCtx *pbc, + IMoniker *pmkToLeft, + const IID * const riidResult, + IUnknown **ppvResult); + + HRESULT __stdcall IMoniker_BindToStorage_Proxy( + IMoniker * This, + + IBindCtx *pbc, + + IMoniker *pmkToLeft, + + const IID * const riid, + + void **ppvObj); + + + HRESULT __stdcall IMoniker_BindToStorage_Stub( + IMoniker * This, + IBindCtx *pbc, + IMoniker *pmkToLeft, + const IID * const riid, + IUnknown **ppvObj); + + HRESULT __stdcall IEnumSTATSTG_Next_Proxy( + IEnumSTATSTG * This, + ULONG celt, + + STATSTG *rgelt, + + ULONG *pceltFetched); + + + HRESULT __stdcall IEnumSTATSTG_Next_Stub( + IEnumSTATSTG * This, + ULONG celt, + STATSTG *rgelt, + ULONG *pceltFetched); + + HRESULT __stdcall IStorage_OpenStream_Proxy( + IStorage * This, + + const OLECHAR *pwcsName, + + void *reserved1, + DWORD grfMode, + DWORD reserved2, + + IStream **ppstm); + + + HRESULT __stdcall IStorage_OpenStream_Stub( + IStorage * This, + const OLECHAR *pwcsName, + ULONG cbReserved1, + byte *reserved1, + DWORD grfMode, + DWORD reserved2, + IStream **ppstm); + + HRESULT __stdcall IStorage_CopyTo_Proxy( + IStorage * This, + DWORD ciidExclude, + + const IID *rgiidExclude, + + SNB snbExclude, + + IStorage *pstgDest); + + + HRESULT __stdcall IStorage_CopyTo_Stub( + IStorage * This, + DWORD ciidExclude, + const IID *rgiidExclude, + SNB snbExclude, + IStorage *pstgDest); + + HRESULT __stdcall IStorage_EnumElements_Proxy( + IStorage * This, + + DWORD reserved1, + + void *reserved2, + + DWORD reserved3, + + IEnumSTATSTG **ppenum); + + + HRESULT __stdcall IStorage_EnumElements_Stub( + IStorage * This, + DWORD reserved1, + ULONG cbReserved2, + byte *reserved2, + DWORD reserved3, + IEnumSTATSTG **ppenum); + + HRESULT __stdcall ILockBytes_ReadAt_Proxy( + ILockBytes * This, + ULARGE_INTEGER ulOffset, + + void *pv, + ULONG cb, + + ULONG *pcbRead); + + + HRESULT __stdcall ILockBytes_ReadAt_Stub( + ILockBytes * This, + ULARGE_INTEGER ulOffset, + byte *pv, + ULONG cb, + ULONG *pcbRead); + + HRESULT __stdcall ILockBytes_WriteAt_Proxy( + ILockBytes * This, + ULARGE_INTEGER ulOffset, + + const void *pv, + ULONG cb, + + ULONG *pcbWritten); + + + HRESULT __stdcall ILockBytes_WriteAt_Stub( + ILockBytes * This, + ULARGE_INTEGER ulOffset, + const byte *pv, + ULONG cb, + ULONG *pcbWritten); + + HRESULT __stdcall IEnumFORMATETC_Next_Proxy( + IEnumFORMATETC * This, + ULONG celt, + + FORMATETC *rgelt, + + ULONG *pceltFetched); + + + HRESULT __stdcall IEnumFORMATETC_Next_Stub( + IEnumFORMATETC * This, + ULONG celt, + FORMATETC *rgelt, + ULONG *pceltFetched); + + HRESULT __stdcall IEnumSTATDATA_Next_Proxy( + IEnumSTATDATA * This, + ULONG celt, + + STATDATA *rgelt, + + ULONG *pceltFetched); + + + HRESULT __stdcall IEnumSTATDATA_Next_Stub( + IEnumSTATDATA * This, + ULONG celt, + STATDATA *rgelt, + ULONG *pceltFetched); + + void __stdcall IAdviseSink_OnDataChange_Proxy( + IAdviseSink * This, + + FORMATETC *pFormatetc, + + STGMEDIUM *pStgmed); + + + HRESULT __stdcall IAdviseSink_OnDataChange_Stub( + IAdviseSink * This, + FORMATETC *pFormatetc, + ASYNC_STGMEDIUM *pStgmed); + + void __stdcall IAdviseSink_OnViewChange_Proxy( + IAdviseSink * This, + DWORD dwAspect, + LONG lindex); + + + HRESULT __stdcall IAdviseSink_OnViewChange_Stub( + IAdviseSink * This, + DWORD dwAspect, + LONG lindex); + + void __stdcall IAdviseSink_OnRename_Proxy( + IAdviseSink * This, + + IMoniker *pmk); + + + HRESULT __stdcall IAdviseSink_OnRename_Stub( + IAdviseSink * This, + IMoniker *pmk); + + void __stdcall IAdviseSink_OnSave_Proxy( + IAdviseSink * This); + + + HRESULT __stdcall IAdviseSink_OnSave_Stub( + IAdviseSink * This); + + void __stdcall IAdviseSink_OnClose_Proxy( + IAdviseSink * This); + + + HRESULT __stdcall IAdviseSink_OnClose_Stub( + IAdviseSink * This); + + void __stdcall AsyncIAdviseSink_Begin_OnDataChange_Proxy( + AsyncIAdviseSink * This, + + FORMATETC *pFormatetc, + + STGMEDIUM *pStgmed); + + + HRESULT __stdcall AsyncIAdviseSink_Begin_OnDataChange_Stub( + AsyncIAdviseSink * This, + FORMATETC *pFormatetc, + ASYNC_STGMEDIUM *pStgmed); + + void __stdcall AsyncIAdviseSink_Finish_OnDataChange_Proxy( + AsyncIAdviseSink * This); + + + HRESULT __stdcall AsyncIAdviseSink_Finish_OnDataChange_Stub( + AsyncIAdviseSink * This); + + void __stdcall AsyncIAdviseSink_Begin_OnViewChange_Proxy( + AsyncIAdviseSink * This, + DWORD dwAspect, + LONG lindex); + + + HRESULT __stdcall AsyncIAdviseSink_Begin_OnViewChange_Stub( + AsyncIAdviseSink * This, + DWORD dwAspect, + LONG lindex); + + void __stdcall AsyncIAdviseSink_Finish_OnViewChange_Proxy( + AsyncIAdviseSink * This); + + + HRESULT __stdcall AsyncIAdviseSink_Finish_OnViewChange_Stub( + AsyncIAdviseSink * This); + + void __stdcall AsyncIAdviseSink_Begin_OnRename_Proxy( + AsyncIAdviseSink * This, + + IMoniker *pmk); + + + HRESULT __stdcall AsyncIAdviseSink_Begin_OnRename_Stub( + AsyncIAdviseSink * This, + IMoniker *pmk); + + void __stdcall AsyncIAdviseSink_Finish_OnRename_Proxy( + AsyncIAdviseSink * This); + + + HRESULT __stdcall AsyncIAdviseSink_Finish_OnRename_Stub( + AsyncIAdviseSink * This); + + void __stdcall AsyncIAdviseSink_Begin_OnSave_Proxy( + AsyncIAdviseSink * This); + + + HRESULT __stdcall AsyncIAdviseSink_Begin_OnSave_Stub( + AsyncIAdviseSink * This); + + void __stdcall AsyncIAdviseSink_Finish_OnSave_Proxy( + AsyncIAdviseSink * This); + + + HRESULT __stdcall AsyncIAdviseSink_Finish_OnSave_Stub( + AsyncIAdviseSink * This); + + void __stdcall AsyncIAdviseSink_Begin_OnClose_Proxy( + AsyncIAdviseSink * This); + + + HRESULT __stdcall AsyncIAdviseSink_Begin_OnClose_Stub( + AsyncIAdviseSink * This); + + void __stdcall AsyncIAdviseSink_Finish_OnClose_Proxy( + AsyncIAdviseSink * This); + + + HRESULT __stdcall AsyncIAdviseSink_Finish_OnClose_Stub( + AsyncIAdviseSink * This); + + void __stdcall IAdviseSink2_OnLinkSrcChange_Proxy( + IAdviseSink2 * This, + + IMoniker *pmk); + + + HRESULT __stdcall IAdviseSink2_OnLinkSrcChange_Stub( + IAdviseSink2 * This, + IMoniker *pmk); + + void __stdcall AsyncIAdviseSink2_Begin_OnLinkSrcChange_Proxy( + AsyncIAdviseSink2 * This, + + IMoniker *pmk); + + + HRESULT __stdcall AsyncIAdviseSink2_Begin_OnLinkSrcChange_Stub( + AsyncIAdviseSink2 * This, + IMoniker *pmk); + + void __stdcall AsyncIAdviseSink2_Finish_OnLinkSrcChange_Proxy( + AsyncIAdviseSink2 * This); + + + HRESULT __stdcall AsyncIAdviseSink2_Finish_OnLinkSrcChange_Stub( + AsyncIAdviseSink2 * This); + + HRESULT __stdcall IDataObject_GetData_Proxy( + IDataObject * This, + + FORMATETC *pformatetcIn, + + STGMEDIUM *pmedium); + + + HRESULT __stdcall IDataObject_GetData_Stub( + IDataObject * This, + FORMATETC *pformatetcIn, + STGMEDIUM *pRemoteMedium); + + HRESULT __stdcall IDataObject_GetDataHere_Proxy( + IDataObject * This, + + FORMATETC *pformatetc, + + STGMEDIUM *pmedium); + + + HRESULT __stdcall IDataObject_GetDataHere_Stub( + IDataObject * This, + FORMATETC *pformatetc, + STGMEDIUM *pRemoteMedium); + + HRESULT __stdcall IDataObject_SetData_Proxy( + IDataObject * This, + + FORMATETC *pformatetc, + + STGMEDIUM *pmedium, + BOOL fRelease); + + + HRESULT __stdcall IDataObject_SetData_Stub( + IDataObject * This, + FORMATETC *pformatetc, + FLAG_STGMEDIUM *pmedium, + BOOL fRelease); + + HRESULT __stdcall IFillLockBytes_FillAppend_Proxy( + IFillLockBytes * This, + + const void *pv, + + ULONG cb, + + ULONG *pcbWritten); + + + HRESULT __stdcall IFillLockBytes_FillAppend_Stub( + IFillLockBytes * This, + const byte *pv, + ULONG cb, + ULONG *pcbWritten); + + HRESULT __stdcall IFillLockBytes_FillAt_Proxy( + IFillLockBytes * This, + + ULARGE_INTEGER ulOffset, + + const void *pv, + + ULONG cb, + + ULONG *pcbWritten); + + + HRESULT __stdcall IFillLockBytes_FillAt_Stub( + IFillLockBytes * This, + ULARGE_INTEGER ulOffset, + const byte *pv, + ULONG cb, + ULONG *pcbWritten); +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\coml2api.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 1 3 +# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 +typedef struct IPropertyStorage IPropertyStorage; + + + + + + +typedef struct IPropertySetStorage IPropertySetStorage; + + + + + + +typedef struct IEnumSTATPROPSTG IEnumSTATPROPSTG; + + + + + + +typedef struct IEnumSTATPROPSETSTG IEnumSTATPROPSETSTG; + + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 1 3 +# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef struct ICreateTypeInfo ICreateTypeInfo; + + + + + + +typedef struct ICreateTypeInfo2 ICreateTypeInfo2; + + + + + + +typedef struct ICreateTypeLib ICreateTypeLib; + + + + + + +typedef struct ICreateTypeLib2 ICreateTypeLib2; + + + + + + +typedef struct IDispatch IDispatch; + + + + + + +typedef struct IEnumVARIANT IEnumVARIANT; + + + + + + +typedef struct ITypeComp ITypeComp; + + + + + + +typedef struct ITypeInfo ITypeInfo; + + + + + + +typedef struct ITypeInfo2 ITypeInfo2; + + + + + + +typedef struct ITypeLib ITypeLib; + + + + + + +typedef struct ITypeLib2 ITypeLib2; + + + + + + +typedef struct ITypeChangeEvents ITypeChangeEvents; + + + + + + +typedef struct IErrorInfo IErrorInfo; + + + + + + +typedef struct ICreateErrorInfo ICreateErrorInfo; + + + + + + +typedef struct ISupportErrorInfo ISupportErrorInfo; + + + + + + +typedef struct ITypeFactory ITypeFactory; + + + + + + +typedef struct ITypeMarshal ITypeMarshal; + + + + + + +typedef struct IRecordInfo IRecordInfo; + + + + + + +typedef struct IErrorLog IErrorLog; + + + + + + +typedef struct IPropertyBag IPropertyBag; + + + + + + +typedef struct ITypeLibRegistrationReader ITypeLibRegistrationReader; + + + + + + +typedef struct ITypeLibRegistration ITypeLibRegistration; +# 224 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + +#pragma warning(disable: 4201) +# 266 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0000_v0_0_s_ifspec; + + + + + + + +typedef CY CURRENCY; + +typedef struct tagSAFEARRAYBOUND + { + ULONG cElements; + LONG lLbound; + } SAFEARRAYBOUND; + +typedef struct tagSAFEARRAYBOUND *LPSAFEARRAYBOUND; + + +typedef struct _wireVARIANT *wireVARIANT; + +typedef struct _wireBRECORD *wireBRECORD; + +typedef struct _wireSAFEARR_BSTR + { + ULONG Size; + wireBSTR *aBstr; + } SAFEARR_BSTR; + +typedef struct _wireSAFEARR_UNKNOWN + { + ULONG Size; + IUnknown **apUnknown; + } SAFEARR_UNKNOWN; + +typedef struct _wireSAFEARR_DISPATCH + { + ULONG Size; + IDispatch **apDispatch; + } SAFEARR_DISPATCH; + +typedef struct _wireSAFEARR_VARIANT + { + ULONG Size; + wireVARIANT *aVariant; + } SAFEARR_VARIANT; + +typedef struct _wireSAFEARR_BRECORD + { + ULONG Size; + wireBRECORD *aRecord; + } SAFEARR_BRECORD; + +typedef struct _wireSAFEARR_HAVEIID + { + ULONG Size; + IUnknown **apUnknown; + IID iid; + } SAFEARR_HAVEIID; + +typedef +enum tagSF_TYPE + { + SF_ERROR = VT_ERROR, + SF_I1 = VT_I1, + SF_I2 = VT_I2, + SF_I4 = VT_I4, + SF_I8 = VT_I8, + SF_BSTR = VT_BSTR, + SF_UNKNOWN = VT_UNKNOWN, + SF_DISPATCH = VT_DISPATCH, + SF_VARIANT = VT_VARIANT, + SF_RECORD = VT_RECORD, + SF_HAVEIID = ( VT_UNKNOWN | VT_RESERVED ) + } SF_TYPE; + +typedef struct _wireSAFEARRAY_UNION + { + ULONG sfType; + union __MIDL_IOleAutomationTypes_0001 + { + SAFEARR_BSTR BstrStr; + SAFEARR_UNKNOWN UnknownStr; + SAFEARR_DISPATCH DispatchStr; + SAFEARR_VARIANT VariantStr; + SAFEARR_BRECORD RecordStr; + SAFEARR_HAVEIID HaveIidStr; + BYTE_SIZEDARR ByteStr; + WORD_SIZEDARR WordStr; + DWORD_SIZEDARR LongStr; + HYPER_SIZEDARR HyperStr; + } u; + } SAFEARRAYUNION; + +typedef struct _wireSAFEARRAY + { + USHORT cDims; + USHORT fFeatures; + ULONG cbElements; + ULONG cLocks; + SAFEARRAYUNION uArrayStructs; + SAFEARRAYBOUND rgsabound[ 1 ]; + } *wireSAFEARRAY; + +typedef wireSAFEARRAY *wirePSAFEARRAY; + +typedef struct tagSAFEARRAY + { + USHORT cDims; + USHORT fFeatures; + ULONG cbElements; + ULONG cLocks; + PVOID pvData; + SAFEARRAYBOUND rgsabound[ 1 ]; + } SAFEARRAY; + +typedef SAFEARRAY *LPSAFEARRAY; +# 474 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef struct tagVARIANT VARIANT; + +struct tagVARIANT + { + union + { + struct + { + VARTYPE vt; + WORD wReserved1; + WORD wReserved2; + WORD wReserved3; + union + { + LONGLONG llVal; + LONG lVal; + BYTE bVal; + SHORT iVal; + FLOAT fltVal; + DOUBLE dblVal; + VARIANT_BOOL boolVal; + VARIANT_BOOL __OBSOLETE__VARIANT_BOOL; + SCODE scode; + CY cyVal; + DATE date; + BSTR bstrVal; + IUnknown *punkVal; + IDispatch *pdispVal; + SAFEARRAY *parray; + BYTE *pbVal; + SHORT *piVal; + LONG *plVal; + LONGLONG *pllVal; + FLOAT *pfltVal; + DOUBLE *pdblVal; + VARIANT_BOOL *pboolVal; + VARIANT_BOOL *__OBSOLETE__VARIANT_PBOOL; + SCODE *pscode; + CY *pcyVal; + DATE *pdate; + BSTR *pbstrVal; + IUnknown **ppunkVal; + IDispatch **ppdispVal; + SAFEARRAY **pparray; + VARIANT *pvarVal; + PVOID byref; + CHAR cVal; + USHORT uiVal; + ULONG ulVal; + ULONGLONG ullVal; + INT intVal; + UINT uintVal; + DECIMAL *pdecVal; + CHAR *pcVal; + USHORT *puiVal; + ULONG *pulVal; + ULONGLONG *pullVal; + INT *pintVal; + UINT *puintVal; + struct + { + PVOID pvRecord; + IRecordInfo *pRecInfo; + } ; + } ; + } ; + DECIMAL decVal; + } ; + } ; +typedef VARIANT *LPVARIANT; + +typedef VARIANT VARIANTARG; + +typedef VARIANT *LPVARIANTARG; +# 566 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +struct _wireBRECORD + { + ULONG fFlags; + ULONG clSize; + IRecordInfo *pRecInfo; + byte *pRecord; + } ; +struct _wireVARIANT + { + DWORD clSize; + DWORD rpcReserved; + USHORT vt; + USHORT wReserved1; + USHORT wReserved2; + USHORT wReserved3; + union + { + LONGLONG llVal; + LONG lVal; + BYTE bVal; + SHORT iVal; + FLOAT fltVal; + DOUBLE dblVal; + VARIANT_BOOL boolVal; + SCODE scode; + CY cyVal; + DATE date; + wireBSTR bstrVal; + IUnknown *punkVal; + IDispatch *pdispVal; + wirePSAFEARRAY parray; + wireBRECORD brecVal; + BYTE *pbVal; + SHORT *piVal; + LONG *plVal; + LONGLONG *pllVal; + FLOAT *pfltVal; + DOUBLE *pdblVal; + VARIANT_BOOL *pboolVal; + SCODE *pscode; + CY *pcyVal; + DATE *pdate; + wireBSTR *pbstrVal; + IUnknown **ppunkVal; + IDispatch **ppdispVal; + wirePSAFEARRAY *pparray; + wireVARIANT *pvarVal; + CHAR cVal; + USHORT uiVal; + ULONG ulVal; + ULONGLONG ullVal; + INT intVal; + UINT uintVal; + DECIMAL decVal; + DECIMAL *pdecVal; + CHAR *pcVal; + USHORT *puiVal; + ULONG *pulVal; + ULONGLONG *pullVal; + INT *pintVal; + UINT *puintVal; + + + } ; + } ; +typedef LONG DISPID; + +typedef DISPID MEMBERID; + +typedef DWORD HREFTYPE; + +typedef +enum tagTYPEKIND + { + TKIND_ENUM = 0, + TKIND_RECORD = ( TKIND_ENUM + 1 ) , + TKIND_MODULE = ( TKIND_RECORD + 1 ) , + TKIND_INTERFACE = ( TKIND_MODULE + 1 ) , + TKIND_DISPATCH = ( TKIND_INTERFACE + 1 ) , + TKIND_COCLASS = ( TKIND_DISPATCH + 1 ) , + TKIND_ALIAS = ( TKIND_COCLASS + 1 ) , + TKIND_UNION = ( TKIND_ALIAS + 1 ) , + TKIND_MAX = ( TKIND_UNION + 1 ) + } TYPEKIND; + +typedef struct tagTYPEDESC + { + union + { + struct tagTYPEDESC *lptdesc; + struct tagARRAYDESC *lpadesc; + HREFTYPE hreftype; + + } ; + VARTYPE vt; + } TYPEDESC; + +typedef struct tagARRAYDESC + { + TYPEDESC tdescElem; + USHORT cDims; + SAFEARRAYBOUND rgbounds[ 1 ]; + } ARRAYDESC; + +typedef struct tagPARAMDESCEX + { + ULONG cBytes; + VARIANTARG varDefaultValue; + } PARAMDESCEX; + +typedef struct tagPARAMDESCEX *LPPARAMDESCEX; + +typedef struct tagPARAMDESC + { + LPPARAMDESCEX pparamdescex; + USHORT wParamFlags; + } PARAMDESC; + +typedef struct tagPARAMDESC *LPPARAMDESC; +# 702 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef struct tagIDLDESC + { + ULONG_PTR dwReserved; + USHORT wIDLFlags; + } IDLDESC; + +typedef struct tagIDLDESC *LPIDLDESC; +# 731 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef struct tagELEMDESC { + TYPEDESC tdesc; + union { + IDLDESC idldesc; + PARAMDESC paramdesc; + } ; +} ELEMDESC, * LPELEMDESC; + + + +typedef struct tagTYPEATTR + { + GUID guid; + LCID lcid; + DWORD dwReserved; + MEMBERID memidConstructor; + MEMBERID memidDestructor; + LPOLESTR lpstrSchema; + ULONG cbSizeInstance; + TYPEKIND typekind; + WORD cFuncs; + WORD cVars; + WORD cImplTypes; + WORD cbSizeVft; + WORD cbAlignment; + WORD wTypeFlags; + WORD wMajorVerNum; + WORD wMinorVerNum; + TYPEDESC tdescAlias; + IDLDESC idldescType; + } TYPEATTR; + +typedef struct tagTYPEATTR *LPTYPEATTR; + +typedef struct tagDISPPARAMS + { + VARIANTARG *rgvarg; + DISPID *rgdispidNamedArgs; + UINT cArgs; + UINT cNamedArgs; + } DISPPARAMS; +# 792 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef struct tagEXCEPINFO { + WORD wCode; + WORD wReserved; + BSTR bstrSource; + BSTR bstrDescription; + BSTR bstrHelpFile; + DWORD dwHelpContext; + PVOID pvReserved; + HRESULT (__stdcall *pfnDeferredFillIn)(struct tagEXCEPINFO *); + SCODE scode; +} EXCEPINFO, * LPEXCEPINFO; + + + +typedef +enum tagCALLCONV + { + CC_FASTCALL = 0, + CC_CDECL = 1, + CC_MSCPASCAL = ( CC_CDECL + 1 ) , + CC_PASCAL = CC_MSCPASCAL, + CC_MACPASCAL = ( CC_PASCAL + 1 ) , + CC_STDCALL = ( CC_MACPASCAL + 1 ) , + CC_FPFASTCALL = ( CC_STDCALL + 1 ) , + CC_SYSCALL = ( CC_FPFASTCALL + 1 ) , + CC_MPWCDECL = ( CC_SYSCALL + 1 ) , + CC_MPWPASCAL = ( CC_MPWCDECL + 1 ) , + CC_MAX = ( CC_MPWPASCAL + 1 ) + } CALLCONV; + +typedef +enum tagFUNCKIND + { + FUNC_VIRTUAL = 0, + FUNC_PUREVIRTUAL = ( FUNC_VIRTUAL + 1 ) , + FUNC_NONVIRTUAL = ( FUNC_PUREVIRTUAL + 1 ) , + FUNC_STATIC = ( FUNC_NONVIRTUAL + 1 ) , + FUNC_DISPATCH = ( FUNC_STATIC + 1 ) + } FUNCKIND; + +typedef +enum tagINVOKEKIND + { + INVOKE_FUNC = 1, + INVOKE_PROPERTYGET = 2, + INVOKE_PROPERTYPUT = 4, + INVOKE_PROPERTYPUTREF = 8 + } INVOKEKIND; + +typedef struct tagFUNCDESC + { + MEMBERID memid; + SCODE *lprgscode; + ELEMDESC *lprgelemdescParam; + FUNCKIND funckind; + INVOKEKIND invkind; + CALLCONV callconv; + SHORT cParams; + SHORT cParamsOpt; + SHORT oVft; + SHORT cScodes; + ELEMDESC elemdescFunc; + WORD wFuncFlags; + } FUNCDESC; + +typedef struct tagFUNCDESC *LPFUNCDESC; + +typedef +enum tagVARKIND + { + VAR_PERINSTANCE = 0, + VAR_STATIC = ( VAR_PERINSTANCE + 1 ) , + VAR_CONST = ( VAR_STATIC + 1 ) , + VAR_DISPATCH = ( VAR_CONST + 1 ) + } VARKIND; +# 876 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef struct tagVARDESC + { + MEMBERID memid; + LPOLESTR lpstrSchema; + union + { + ULONG oInst; + VARIANT *lpvarValue; + } ; + ELEMDESC elemdescVar; + WORD wVarFlags; + VARKIND varkind; + } VARDESC; + +typedef struct tagVARDESC *LPVARDESC; + +typedef +enum tagTYPEFLAGS + { + TYPEFLAG_FAPPOBJECT = 0x1, + TYPEFLAG_FCANCREATE = 0x2, + TYPEFLAG_FLICENSED = 0x4, + TYPEFLAG_FPREDECLID = 0x8, + TYPEFLAG_FHIDDEN = 0x10, + TYPEFLAG_FCONTROL = 0x20, + TYPEFLAG_FDUAL = 0x40, + TYPEFLAG_FNONEXTENSIBLE = 0x80, + TYPEFLAG_FOLEAUTOMATION = 0x100, + TYPEFLAG_FRESTRICTED = 0x200, + TYPEFLAG_FAGGREGATABLE = 0x400, + TYPEFLAG_FREPLACEABLE = 0x800, + TYPEFLAG_FDISPATCHABLE = 0x1000, + TYPEFLAG_FREVERSEBIND = 0x2000, + TYPEFLAG_FPROXY = 0x4000 + } TYPEFLAGS; + +typedef +enum tagFUNCFLAGS + { + FUNCFLAG_FRESTRICTED = 0x1, + FUNCFLAG_FSOURCE = 0x2, + FUNCFLAG_FBINDABLE = 0x4, + FUNCFLAG_FREQUESTEDIT = 0x8, + FUNCFLAG_FDISPLAYBIND = 0x10, + FUNCFLAG_FDEFAULTBIND = 0x20, + FUNCFLAG_FHIDDEN = 0x40, + FUNCFLAG_FUSESGETLASTERROR = 0x80, + FUNCFLAG_FDEFAULTCOLLELEM = 0x100, + FUNCFLAG_FUIDEFAULT = 0x200, + FUNCFLAG_FNONBROWSABLE = 0x400, + FUNCFLAG_FREPLACEABLE = 0x800, + FUNCFLAG_FIMMEDIATEBIND = 0x1000 + } FUNCFLAGS; + +typedef +enum tagVARFLAGS + { + VARFLAG_FREADONLY = 0x1, + VARFLAG_FSOURCE = 0x2, + VARFLAG_FBINDABLE = 0x4, + VARFLAG_FREQUESTEDIT = 0x8, + VARFLAG_FDISPLAYBIND = 0x10, + VARFLAG_FDEFAULTBIND = 0x20, + VARFLAG_FHIDDEN = 0x40, + VARFLAG_FRESTRICTED = 0x80, + VARFLAG_FDEFAULTCOLLELEM = 0x100, + VARFLAG_FUIDEFAULT = 0x200, + VARFLAG_FNONBROWSABLE = 0x400, + VARFLAG_FREPLACEABLE = 0x800, + VARFLAG_FIMMEDIATEBIND = 0x1000 + } VARFLAGS; + +typedef struct tagCLEANLOCALSTORAGE + { + IUnknown *pInterface; + PVOID pStorage; + DWORD flags; + } CLEANLOCALSTORAGE; + +typedef struct tagCUSTDATAITEM + { + GUID guid; + VARIANTARG varValue; + } CUSTDATAITEM; + +typedef struct tagCUSTDATAITEM *LPCUSTDATAITEM; + +typedef struct tagCUSTDATA + { + DWORD cCustData; + LPCUSTDATAITEM prgCustData; + } CUSTDATA; + +typedef struct tagCUSTDATA *LPCUSTDATA; + + + +extern RPC_IF_HANDLE IOleAutomationTypes_v1_0_c_ifspec; +extern RPC_IF_HANDLE IOleAutomationTypes_v1_0_s_ifspec; +# 986 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0001_v0_0_s_ifspec; + + + + + + + +typedef ICreateTypeInfo *LPCREATETYPEINFO; + + +extern const IID IID_ICreateTypeInfo; +# 1104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ICreateTypeInfoVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ICreateTypeInfo * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ICreateTypeInfo * This); + + + ULONG ( __stdcall *Release )( + ICreateTypeInfo * This); + + + HRESULT ( __stdcall *SetGuid )( + ICreateTypeInfo * This, + const GUID * const guid); + + + HRESULT ( __stdcall *SetTypeFlags )( + ICreateTypeInfo * This, + UINT uTypeFlags); + + + HRESULT ( __stdcall *SetDocString )( + ICreateTypeInfo * This, + + LPOLESTR pStrDoc); + + + HRESULT ( __stdcall *SetHelpContext )( + ICreateTypeInfo * This, + DWORD dwHelpContext); + + + HRESULT ( __stdcall *SetVersion )( + ICreateTypeInfo * This, + WORD wMajorVerNum, + WORD wMinorVerNum); + + + HRESULT ( __stdcall *AddRefTypeInfo )( + ICreateTypeInfo * This, + ITypeInfo *pTInfo, + HREFTYPE *phRefType); + + + HRESULT ( __stdcall *AddFuncDesc )( + ICreateTypeInfo * This, + UINT index, + FUNCDESC *pFuncDesc); + + + HRESULT ( __stdcall *AddImplType )( + ICreateTypeInfo * This, + UINT index, + HREFTYPE hRefType); + + + HRESULT ( __stdcall *SetImplTypeFlags )( + ICreateTypeInfo * This, + UINT index, + INT implTypeFlags); + + + HRESULT ( __stdcall *SetAlignment )( + ICreateTypeInfo * This, + WORD cbAlignment); + + + HRESULT ( __stdcall *SetSchema )( + ICreateTypeInfo * This, + + LPOLESTR pStrSchema); + + + HRESULT ( __stdcall *AddVarDesc )( + ICreateTypeInfo * This, + UINT index, + VARDESC *pVarDesc); + + + HRESULT ( __stdcall *SetFuncAndParamNames )( + ICreateTypeInfo * This, + UINT index, + + LPOLESTR *rgszNames, + UINT cNames); + + + HRESULT ( __stdcall *SetVarName )( + ICreateTypeInfo * This, + UINT index, + + LPOLESTR szName); + + + HRESULT ( __stdcall *SetTypeDescAlias )( + ICreateTypeInfo * This, + TYPEDESC *pTDescAlias); + + + HRESULT ( __stdcall *DefineFuncAsDllEntry )( + ICreateTypeInfo * This, + UINT index, + + LPOLESTR szDllName, + + LPOLESTR szProcName); + + + HRESULT ( __stdcall *SetFuncDocString )( + ICreateTypeInfo * This, + UINT index, + + LPOLESTR szDocString); + + + HRESULT ( __stdcall *SetVarDocString )( + ICreateTypeInfo * This, + UINT index, + + LPOLESTR szDocString); + + + HRESULT ( __stdcall *SetFuncHelpContext )( + ICreateTypeInfo * This, + UINT index, + DWORD dwHelpContext); + + + HRESULT ( __stdcall *SetVarHelpContext )( + ICreateTypeInfo * This, + UINT index, + DWORD dwHelpContext); + + + HRESULT ( __stdcall *SetMops )( + ICreateTypeInfo * This, + UINT index, + + BSTR bstrMops); + + + HRESULT ( __stdcall *SetTypeIdldesc )( + ICreateTypeInfo * This, + IDLDESC *pIdlDesc); + + + HRESULT ( __stdcall *LayOut )( + ICreateTypeInfo * This); + + + } ICreateTypeInfoVtbl; + + struct ICreateTypeInfo + { + struct ICreateTypeInfoVtbl *lpVtbl; + }; +# 1371 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef ICreateTypeInfo2 *LPCREATETYPEINFO2; + + +extern const IID IID_ICreateTypeInfo2; +# 1445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ICreateTypeInfo2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ICreateTypeInfo2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ICreateTypeInfo2 * This); + + + ULONG ( __stdcall *Release )( + ICreateTypeInfo2 * This); + + + HRESULT ( __stdcall *SetGuid )( + ICreateTypeInfo2 * This, + const GUID * const guid); + + + HRESULT ( __stdcall *SetTypeFlags )( + ICreateTypeInfo2 * This, + UINT uTypeFlags); + + + HRESULT ( __stdcall *SetDocString )( + ICreateTypeInfo2 * This, + + LPOLESTR pStrDoc); + + + HRESULT ( __stdcall *SetHelpContext )( + ICreateTypeInfo2 * This, + DWORD dwHelpContext); + + + HRESULT ( __stdcall *SetVersion )( + ICreateTypeInfo2 * This, + WORD wMajorVerNum, + WORD wMinorVerNum); + + + HRESULT ( __stdcall *AddRefTypeInfo )( + ICreateTypeInfo2 * This, + ITypeInfo *pTInfo, + HREFTYPE *phRefType); + + + HRESULT ( __stdcall *AddFuncDesc )( + ICreateTypeInfo2 * This, + UINT index, + FUNCDESC *pFuncDesc); + + + HRESULT ( __stdcall *AddImplType )( + ICreateTypeInfo2 * This, + UINT index, + HREFTYPE hRefType); + + + HRESULT ( __stdcall *SetImplTypeFlags )( + ICreateTypeInfo2 * This, + UINT index, + INT implTypeFlags); + + + HRESULT ( __stdcall *SetAlignment )( + ICreateTypeInfo2 * This, + WORD cbAlignment); + + + HRESULT ( __stdcall *SetSchema )( + ICreateTypeInfo2 * This, + + LPOLESTR pStrSchema); + + + HRESULT ( __stdcall *AddVarDesc )( + ICreateTypeInfo2 * This, + UINT index, + VARDESC *pVarDesc); + + + HRESULT ( __stdcall *SetFuncAndParamNames )( + ICreateTypeInfo2 * This, + UINT index, + + LPOLESTR *rgszNames, + UINT cNames); + + + HRESULT ( __stdcall *SetVarName )( + ICreateTypeInfo2 * This, + UINT index, + + LPOLESTR szName); + + + HRESULT ( __stdcall *SetTypeDescAlias )( + ICreateTypeInfo2 * This, + TYPEDESC *pTDescAlias); + + + HRESULT ( __stdcall *DefineFuncAsDllEntry )( + ICreateTypeInfo2 * This, + UINT index, + + LPOLESTR szDllName, + + LPOLESTR szProcName); + + + HRESULT ( __stdcall *SetFuncDocString )( + ICreateTypeInfo2 * This, + UINT index, + + LPOLESTR szDocString); + + + HRESULT ( __stdcall *SetVarDocString )( + ICreateTypeInfo2 * This, + UINT index, + + LPOLESTR szDocString); + + + HRESULT ( __stdcall *SetFuncHelpContext )( + ICreateTypeInfo2 * This, + UINT index, + DWORD dwHelpContext); + + + HRESULT ( __stdcall *SetVarHelpContext )( + ICreateTypeInfo2 * This, + UINT index, + DWORD dwHelpContext); + + + HRESULT ( __stdcall *SetMops )( + ICreateTypeInfo2 * This, + UINT index, + + BSTR bstrMops); + + + HRESULT ( __stdcall *SetTypeIdldesc )( + ICreateTypeInfo2 * This, + IDLDESC *pIdlDesc); + + + HRESULT ( __stdcall *LayOut )( + ICreateTypeInfo2 * This); + + + HRESULT ( __stdcall *DeleteFuncDesc )( + ICreateTypeInfo2 * This, + UINT index); + + + HRESULT ( __stdcall *DeleteFuncDescByMemId )( + ICreateTypeInfo2 * This, + MEMBERID memid, + INVOKEKIND invKind); + + + HRESULT ( __stdcall *DeleteVarDesc )( + ICreateTypeInfo2 * This, + UINT index); + + + HRESULT ( __stdcall *DeleteVarDescByMemId )( + ICreateTypeInfo2 * This, + MEMBERID memid); + + + HRESULT ( __stdcall *DeleteImplType )( + ICreateTypeInfo2 * This, + UINT index); + + + HRESULT ( __stdcall *SetCustData )( + ICreateTypeInfo2 * This, + const GUID * const guid, + VARIANT *pVarVal); + + + HRESULT ( __stdcall *SetFuncCustData )( + ICreateTypeInfo2 * This, + UINT index, + const GUID * const guid, + VARIANT *pVarVal); + + + HRESULT ( __stdcall *SetParamCustData )( + ICreateTypeInfo2 * This, + UINT indexFunc, + UINT indexParam, + const GUID * const guid, + VARIANT *pVarVal); + + + HRESULT ( __stdcall *SetVarCustData )( + ICreateTypeInfo2 * This, + UINT index, + const GUID * const guid, + VARIANT *pVarVal); + + + HRESULT ( __stdcall *SetImplTypeCustData )( + ICreateTypeInfo2 * This, + UINT index, + const GUID * const guid, + VARIANT *pVarVal); + + + HRESULT ( __stdcall *SetHelpStringContext )( + ICreateTypeInfo2 * This, + ULONG dwHelpStringContext); + + + HRESULT ( __stdcall *SetFuncHelpStringContext )( + ICreateTypeInfo2 * This, + UINT index, + ULONG dwHelpStringContext); + + + HRESULT ( __stdcall *SetVarHelpStringContext )( + ICreateTypeInfo2 * This, + UINT index, + ULONG dwHelpStringContext); + + + HRESULT ( __stdcall *Invalidate )( + ICreateTypeInfo2 * This); + + + HRESULT ( __stdcall *SetName )( + ICreateTypeInfo2 * This, + + LPOLESTR szName); + + + } ICreateTypeInfo2Vtbl; + + struct ICreateTypeInfo2 + { + struct ICreateTypeInfo2Vtbl *lpVtbl; + }; +# 1846 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef ICreateTypeLib *LPCREATETYPELIB; + + +extern const IID IID_ICreateTypeLib; +# 1898 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ICreateTypeLibVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ICreateTypeLib * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ICreateTypeLib * This); + + + ULONG ( __stdcall *Release )( + ICreateTypeLib * This); + + + HRESULT ( __stdcall *CreateTypeInfo )( + ICreateTypeLib * This, + + LPOLESTR szName, + TYPEKIND tkind, + ICreateTypeInfo **ppCTInfo); + + + HRESULT ( __stdcall *SetName )( + ICreateTypeLib * This, + + LPOLESTR szName); + + + HRESULT ( __stdcall *SetVersion )( + ICreateTypeLib * This, + WORD wMajorVerNum, + WORD wMinorVerNum); + + + HRESULT ( __stdcall *SetGuid )( + ICreateTypeLib * This, + const GUID * const guid); + + + HRESULT ( __stdcall *SetDocString )( + ICreateTypeLib * This, + + LPOLESTR szDoc); + + + HRESULT ( __stdcall *SetHelpFileName )( + ICreateTypeLib * This, + + LPOLESTR szHelpFileName); + + + HRESULT ( __stdcall *SetHelpContext )( + ICreateTypeLib * This, + DWORD dwHelpContext); + + + HRESULT ( __stdcall *SetLcid )( + ICreateTypeLib * This, + LCID lcid); + + + HRESULT ( __stdcall *SetLibFlags )( + ICreateTypeLib * This, + UINT uLibFlags); + + + HRESULT ( __stdcall *SaveAllChanges )( + ICreateTypeLib * This); + + + } ICreateTypeLibVtbl; + + struct ICreateTypeLib + { + struct ICreateTypeLibVtbl *lpVtbl; + }; +# 2043 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef ICreateTypeLib2 *LPCREATETYPELIB2; + + +extern const IID IID_ICreateTypeLib2; +# 2074 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ICreateTypeLib2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ICreateTypeLib2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ICreateTypeLib2 * This); + + + ULONG ( __stdcall *Release )( + ICreateTypeLib2 * This); + + + HRESULT ( __stdcall *CreateTypeInfo )( + ICreateTypeLib2 * This, + + LPOLESTR szName, + TYPEKIND tkind, + ICreateTypeInfo **ppCTInfo); + + + HRESULT ( __stdcall *SetName )( + ICreateTypeLib2 * This, + + LPOLESTR szName); + + + HRESULT ( __stdcall *SetVersion )( + ICreateTypeLib2 * This, + WORD wMajorVerNum, + WORD wMinorVerNum); + + + HRESULT ( __stdcall *SetGuid )( + ICreateTypeLib2 * This, + const GUID * const guid); + + + HRESULT ( __stdcall *SetDocString )( + ICreateTypeLib2 * This, + + LPOLESTR szDoc); + + + HRESULT ( __stdcall *SetHelpFileName )( + ICreateTypeLib2 * This, + + LPOLESTR szHelpFileName); + + + HRESULT ( __stdcall *SetHelpContext )( + ICreateTypeLib2 * This, + DWORD dwHelpContext); + + + HRESULT ( __stdcall *SetLcid )( + ICreateTypeLib2 * This, + LCID lcid); + + + HRESULT ( __stdcall *SetLibFlags )( + ICreateTypeLib2 * This, + UINT uLibFlags); + + + HRESULT ( __stdcall *SaveAllChanges )( + ICreateTypeLib2 * This); + + + HRESULT ( __stdcall *DeleteTypeInfo )( + ICreateTypeLib2 * This, + + LPOLESTR szName); + + + HRESULT ( __stdcall *SetCustData )( + ICreateTypeLib2 * This, + const GUID * const guid, + VARIANT *pVarVal); + + + HRESULT ( __stdcall *SetHelpStringContext )( + ICreateTypeLib2 * This, + ULONG dwHelpStringContext); + + + HRESULT ( __stdcall *SetHelpStringDll )( + ICreateTypeLib2 * This, + + LPOLESTR szFileName); + + + } ICreateTypeLib2Vtbl; + + struct ICreateTypeLib2 + { + struct ICreateTypeLib2Vtbl *lpVtbl; + }; +# 2258 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0005_v0_0_s_ifspec; + + + + + + + +typedef IDispatch *LPDISPATCH; +# 2301 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +extern const IID IID_IDispatch; +# 2347 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct IDispatchVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IDispatch * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IDispatch * This); + + + ULONG ( __stdcall *Release )( + IDispatch * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IDispatch * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IDispatch * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IDispatch * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IDispatch * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + } IDispatchVtbl; + + struct IDispatch + { + struct IDispatchVtbl *lpVtbl; + }; +# 2449 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + HRESULT __stdcall IDispatch_RemoteInvoke_Proxy( + IDispatch * This, + DISPID dispIdMember, + const IID * const riid, + LCID lcid, + DWORD dwFlags, + DISPPARAMS *pDispParams, + VARIANT *pVarResult, + EXCEPINFO *pExcepInfo, + UINT *pArgErr, + UINT cVarRef, + UINT *rgVarRefIdx, + VARIANTARG *rgVarRef); + + +void __stdcall IDispatch_RemoteInvoke_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 2481 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef IEnumVARIANT *LPENUMVARIANT; + + +extern const IID IID_IEnumVARIANT; +# 2510 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct IEnumVARIANTVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IEnumVARIANT * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IEnumVARIANT * This); + + + ULONG ( __stdcall *Release )( + IEnumVARIANT * This); + + + HRESULT ( __stdcall *Next )( + IEnumVARIANT * This, + ULONG celt, + VARIANT *rgVar, + ULONG *pCeltFetched); + + + HRESULT ( __stdcall *Skip )( + IEnumVARIANT * This, + ULONG celt); + + + HRESULT ( __stdcall *Reset )( + IEnumVARIANT * This); + + + HRESULT ( __stdcall *Clone )( + IEnumVARIANT * This, + IEnumVARIANT **ppEnum); + + + } IEnumVARIANTVtbl; + + struct IEnumVARIANT + { + struct IEnumVARIANTVtbl *lpVtbl; + }; +# 2592 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + HRESULT __stdcall IEnumVARIANT_RemoteNext_Proxy( + IEnumVARIANT * This, + ULONG celt, + VARIANT *rgVar, + ULONG *pCeltFetched); + + +void __stdcall IEnumVARIANT_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 2616 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef ITypeComp *LPTYPECOMP; + +typedef +enum tagDESCKIND + { + DESCKIND_NONE = 0, + DESCKIND_FUNCDESC = ( DESCKIND_NONE + 1 ) , + DESCKIND_VARDESC = ( DESCKIND_FUNCDESC + 1 ) , + DESCKIND_TYPECOMP = ( DESCKIND_VARDESC + 1 ) , + DESCKIND_IMPLICITAPPOBJ = ( DESCKIND_TYPECOMP + 1 ) , + DESCKIND_MAX = ( DESCKIND_IMPLICITAPPOBJ + 1 ) + } DESCKIND; + +typedef union tagBINDPTR + { + FUNCDESC *lpfuncdesc; + VARDESC *lpvardesc; + ITypeComp *lptcomp; + } BINDPTR; + +typedef union tagBINDPTR *LPBINDPTR; + + +extern const IID IID_ITypeComp; +# 2668 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ITypeCompVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ITypeComp * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ITypeComp * This); + + + ULONG ( __stdcall *Release )( + ITypeComp * This); + + + HRESULT ( __stdcall *Bind )( + ITypeComp * This, + + LPOLESTR szName, + ULONG lHashVal, + WORD wFlags, + ITypeInfo **ppTInfo, + DESCKIND *pDescKind, + BINDPTR *pBindPtr); + + + HRESULT ( __stdcall *BindType )( + ITypeComp * This, + + LPOLESTR szName, + ULONG lHashVal, + ITypeInfo **ppTInfo, + ITypeComp **ppTComp); + + + } ITypeCompVtbl; + + struct ITypeComp + { + struct ITypeCompVtbl *lpVtbl; + }; +# 2743 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + HRESULT __stdcall ITypeComp_RemoteBind_Proxy( + ITypeComp * This, + LPOLESTR szName, + ULONG lHashVal, + WORD wFlags, + ITypeInfo **ppTInfo, + DESCKIND *pDescKind, + LPFUNCDESC *ppFuncDesc, + LPVARDESC *ppVarDesc, + ITypeComp **ppTypeComp, + CLEANLOCALSTORAGE *pDummy); + + +void __stdcall ITypeComp_RemoteBind_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeComp_RemoteBindType_Proxy( + ITypeComp * This, + LPOLESTR szName, + ULONG lHashVal, + ITypeInfo **ppTInfo); + + +void __stdcall ITypeComp_RemoteBindType_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 2790 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0008_v0_0_s_ifspec; + + + + + + + +typedef ITypeInfo *LPTYPEINFO; + + +extern const IID IID_ITypeInfo; +# 2910 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ITypeInfoVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ITypeInfo * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ITypeInfo * This); + + + ULONG ( __stdcall *Release )( + ITypeInfo * This); + + + HRESULT ( __stdcall *GetTypeAttr )( + ITypeInfo * This, + TYPEATTR **ppTypeAttr); + + + HRESULT ( __stdcall *GetTypeComp )( + ITypeInfo * This, + ITypeComp **ppTComp); + + + HRESULT ( __stdcall *GetFuncDesc )( + ITypeInfo * This, + UINT index, + FUNCDESC **ppFuncDesc); + + + HRESULT ( __stdcall *GetVarDesc )( + ITypeInfo * This, + UINT index, + VARDESC **ppVarDesc); + + + HRESULT ( __stdcall *GetNames )( + ITypeInfo * This, + MEMBERID memid, + + BSTR *rgBstrNames, + UINT cMaxNames, + + UINT *pcNames); + + + HRESULT ( __stdcall *GetRefTypeOfImplType )( + ITypeInfo * This, + UINT index, + HREFTYPE *pRefType); + + + HRESULT ( __stdcall *GetImplTypeFlags )( + ITypeInfo * This, + UINT index, + INT *pImplTypeFlags); + + + HRESULT ( __stdcall *GetIDsOfNames )( + ITypeInfo * This, + + LPOLESTR *rgszNames, + UINT cNames, + MEMBERID *pMemId); + + + HRESULT ( __stdcall *Invoke )( + ITypeInfo * This, + PVOID pvInstance, + MEMBERID memid, + WORD wFlags, + DISPPARAMS *pDispParams, + VARIANT *pVarResult, + EXCEPINFO *pExcepInfo, + UINT *puArgErr); + + + HRESULT ( __stdcall *GetDocumentation )( + ITypeInfo * This, + MEMBERID memid, + + BSTR *pBstrName, + + BSTR *pBstrDocString, + DWORD *pdwHelpContext, + + BSTR *pBstrHelpFile); + + + HRESULT ( __stdcall *GetDllEntry )( + ITypeInfo * This, + MEMBERID memid, + INVOKEKIND invKind, + + BSTR *pBstrDllName, + + BSTR *pBstrName, + WORD *pwOrdinal); + + + HRESULT ( __stdcall *GetRefTypeInfo )( + ITypeInfo * This, + HREFTYPE hRefType, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *AddressOfMember )( + ITypeInfo * This, + MEMBERID memid, + INVOKEKIND invKind, + PVOID *ppv); + + + HRESULT ( __stdcall *CreateInstance )( + ITypeInfo * This, + IUnknown *pUnkOuter, + const IID * const riid, + PVOID *ppvObj); + + + HRESULT ( __stdcall *GetMops )( + ITypeInfo * This, + MEMBERID memid, + BSTR *pBstrMops); + + + HRESULT ( __stdcall *GetContainingTypeLib )( + ITypeInfo * This, + ITypeLib **ppTLib, + UINT *pIndex); + + + void ( __stdcall *ReleaseTypeAttr )( + ITypeInfo * This, + TYPEATTR *pTypeAttr); + + + void ( __stdcall *ReleaseFuncDesc )( + ITypeInfo * This, + FUNCDESC *pFuncDesc); + + + void ( __stdcall *ReleaseVarDesc )( + ITypeInfo * This, + VARDESC *pVarDesc); + + + } ITypeInfoVtbl; + + struct ITypeInfo + { + struct ITypeInfoVtbl *lpVtbl; + }; +# 3149 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + HRESULT __stdcall ITypeInfo_RemoteGetTypeAttr_Proxy( + ITypeInfo * This, + LPTYPEATTR *ppTypeAttr, + CLEANLOCALSTORAGE *pDummy); + + +void __stdcall ITypeInfo_RemoteGetTypeAttr_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeInfo_RemoteGetFuncDesc_Proxy( + ITypeInfo * This, + UINT index, + LPFUNCDESC *ppFuncDesc, + CLEANLOCALSTORAGE *pDummy); + + +void __stdcall ITypeInfo_RemoteGetFuncDesc_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeInfo_RemoteGetVarDesc_Proxy( + ITypeInfo * This, + UINT index, + LPVARDESC *ppVarDesc, + CLEANLOCALSTORAGE *pDummy); + + +void __stdcall ITypeInfo_RemoteGetVarDesc_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeInfo_RemoteGetNames_Proxy( + ITypeInfo * This, + MEMBERID memid, + BSTR *rgBstrNames, + UINT cMaxNames, + UINT *pcNames); + + +void __stdcall ITypeInfo_RemoteGetNames_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeInfo_LocalGetIDsOfNames_Proxy( + ITypeInfo * This); + + +void __stdcall ITypeInfo_LocalGetIDsOfNames_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeInfo_LocalInvoke_Proxy( + ITypeInfo * This); + + +void __stdcall ITypeInfo_LocalInvoke_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeInfo_RemoteGetDocumentation_Proxy( + ITypeInfo * This, + MEMBERID memid, + DWORD refPtrFlags, + BSTR *pBstrName, + BSTR *pBstrDocString, + DWORD *pdwHelpContext, + BSTR *pBstrHelpFile); + + +void __stdcall ITypeInfo_RemoteGetDocumentation_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeInfo_RemoteGetDllEntry_Proxy( + ITypeInfo * This, + MEMBERID memid, + INVOKEKIND invKind, + DWORD refPtrFlags, + BSTR *pBstrDllName, + BSTR *pBstrName, + WORD *pwOrdinal); + + +void __stdcall ITypeInfo_RemoteGetDllEntry_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeInfo_LocalAddressOfMember_Proxy( + ITypeInfo * This); + + +void __stdcall ITypeInfo_LocalAddressOfMember_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeInfo_RemoteCreateInstance_Proxy( + ITypeInfo * This, + const IID * const riid, + IUnknown **ppvObj); + + +void __stdcall ITypeInfo_RemoteCreateInstance_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeInfo_RemoteGetContainingTypeLib_Proxy( + ITypeInfo * This, + ITypeLib **ppTLib, + UINT *pIndex); + + +void __stdcall ITypeInfo_RemoteGetContainingTypeLib_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeInfo_LocalReleaseTypeAttr_Proxy( + ITypeInfo * This); + + +void __stdcall ITypeInfo_LocalReleaseTypeAttr_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeInfo_LocalReleaseFuncDesc_Proxy( + ITypeInfo * This); + + +void __stdcall ITypeInfo_LocalReleaseFuncDesc_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeInfo_LocalReleaseVarDesc_Proxy( + ITypeInfo * This); + + +void __stdcall ITypeInfo_LocalReleaseVarDesc_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 3341 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef ITypeInfo2 *LPTYPEINFO2; + + +extern const IID IID_ITypeInfo2; +# 3426 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ITypeInfo2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ITypeInfo2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ITypeInfo2 * This); + + + ULONG ( __stdcall *Release )( + ITypeInfo2 * This); + + + HRESULT ( __stdcall *GetTypeAttr )( + ITypeInfo2 * This, + TYPEATTR **ppTypeAttr); + + + HRESULT ( __stdcall *GetTypeComp )( + ITypeInfo2 * This, + ITypeComp **ppTComp); + + + HRESULT ( __stdcall *GetFuncDesc )( + ITypeInfo2 * This, + UINT index, + FUNCDESC **ppFuncDesc); + + + HRESULT ( __stdcall *GetVarDesc )( + ITypeInfo2 * This, + UINT index, + VARDESC **ppVarDesc); + + + HRESULT ( __stdcall *GetNames )( + ITypeInfo2 * This, + MEMBERID memid, + + BSTR *rgBstrNames, + UINT cMaxNames, + + UINT *pcNames); + + + HRESULT ( __stdcall *GetRefTypeOfImplType )( + ITypeInfo2 * This, + UINT index, + HREFTYPE *pRefType); + + + HRESULT ( __stdcall *GetImplTypeFlags )( + ITypeInfo2 * This, + UINT index, + INT *pImplTypeFlags); + + + HRESULT ( __stdcall *GetIDsOfNames )( + ITypeInfo2 * This, + + LPOLESTR *rgszNames, + UINT cNames, + MEMBERID *pMemId); + + + HRESULT ( __stdcall *Invoke )( + ITypeInfo2 * This, + PVOID pvInstance, + MEMBERID memid, + WORD wFlags, + DISPPARAMS *pDispParams, + VARIANT *pVarResult, + EXCEPINFO *pExcepInfo, + UINT *puArgErr); + + + HRESULT ( __stdcall *GetDocumentation )( + ITypeInfo2 * This, + MEMBERID memid, + + BSTR *pBstrName, + + BSTR *pBstrDocString, + DWORD *pdwHelpContext, + + BSTR *pBstrHelpFile); + + + HRESULT ( __stdcall *GetDllEntry )( + ITypeInfo2 * This, + MEMBERID memid, + INVOKEKIND invKind, + + BSTR *pBstrDllName, + + BSTR *pBstrName, + WORD *pwOrdinal); + + + HRESULT ( __stdcall *GetRefTypeInfo )( + ITypeInfo2 * This, + HREFTYPE hRefType, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *AddressOfMember )( + ITypeInfo2 * This, + MEMBERID memid, + INVOKEKIND invKind, + PVOID *ppv); + + + HRESULT ( __stdcall *CreateInstance )( + ITypeInfo2 * This, + IUnknown *pUnkOuter, + const IID * const riid, + PVOID *ppvObj); + + + HRESULT ( __stdcall *GetMops )( + ITypeInfo2 * This, + MEMBERID memid, + BSTR *pBstrMops); + + + HRESULT ( __stdcall *GetContainingTypeLib )( + ITypeInfo2 * This, + ITypeLib **ppTLib, + UINT *pIndex); + + + void ( __stdcall *ReleaseTypeAttr )( + ITypeInfo2 * This, + TYPEATTR *pTypeAttr); + + + void ( __stdcall *ReleaseFuncDesc )( + ITypeInfo2 * This, + FUNCDESC *pFuncDesc); + + + void ( __stdcall *ReleaseVarDesc )( + ITypeInfo2 * This, + VARDESC *pVarDesc); + + + HRESULT ( __stdcall *GetTypeKind )( + ITypeInfo2 * This, + TYPEKIND *pTypeKind); + + + HRESULT ( __stdcall *GetTypeFlags )( + ITypeInfo2 * This, + ULONG *pTypeFlags); + + + HRESULT ( __stdcall *GetFuncIndexOfMemId )( + ITypeInfo2 * This, + MEMBERID memid, + INVOKEKIND invKind, + UINT *pFuncIndex); + + + HRESULT ( __stdcall *GetVarIndexOfMemId )( + ITypeInfo2 * This, + MEMBERID memid, + UINT *pVarIndex); + + + HRESULT ( __stdcall *GetCustData )( + ITypeInfo2 * This, + const GUID * const guid, + VARIANT *pVarVal); + + + HRESULT ( __stdcall *GetFuncCustData )( + ITypeInfo2 * This, + UINT index, + const GUID * const guid, + VARIANT *pVarVal); + + + HRESULT ( __stdcall *GetParamCustData )( + ITypeInfo2 * This, + UINT indexFunc, + UINT indexParam, + const GUID * const guid, + VARIANT *pVarVal); + + + HRESULT ( __stdcall *GetVarCustData )( + ITypeInfo2 * This, + UINT index, + const GUID * const guid, + VARIANT *pVarVal); + + + HRESULT ( __stdcall *GetImplTypeCustData )( + ITypeInfo2 * This, + UINT index, + const GUID * const guid, + VARIANT *pVarVal); + + + HRESULT ( __stdcall *GetDocumentation2 )( + ITypeInfo2 * This, + MEMBERID memid, + LCID lcid, + + BSTR *pbstrHelpString, + DWORD *pdwHelpStringContext, + + BSTR *pbstrHelpStringDll); + + + HRESULT ( __stdcall *GetAllCustData )( + ITypeInfo2 * This, + CUSTDATA *pCustData); + + + HRESULT ( __stdcall *GetAllFuncCustData )( + ITypeInfo2 * This, + UINT index, + CUSTDATA *pCustData); + + + HRESULT ( __stdcall *GetAllParamCustData )( + ITypeInfo2 * This, + UINT indexFunc, + UINT indexParam, + CUSTDATA *pCustData); + + + HRESULT ( __stdcall *GetAllVarCustData )( + ITypeInfo2 * This, + UINT index, + CUSTDATA *pCustData); + + + HRESULT ( __stdcall *GetAllImplTypeCustData )( + ITypeInfo2 * This, + UINT index, + CUSTDATA *pCustData); + + + } ITypeInfo2Vtbl; + + struct ITypeInfo2 + { + struct ITypeInfo2Vtbl *lpVtbl; + }; +# 3810 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + HRESULT __stdcall ITypeInfo2_RemoteGetDocumentation2_Proxy( + ITypeInfo2 * This, + MEMBERID memid, + LCID lcid, + DWORD refPtrFlags, + BSTR *pbstrHelpString, + DWORD *pdwHelpStringContext, + BSTR *pbstrHelpStringDll); + + +void __stdcall ITypeInfo2_RemoteGetDocumentation2_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 3840 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0010_v0_0_s_ifspec; + + + + + + + +typedef +enum tagSYSKIND + { + SYS_WIN16 = 0, + SYS_WIN32 = ( SYS_WIN16 + 1 ) , + SYS_MAC = ( SYS_WIN32 + 1 ) , + SYS_WIN64 = ( SYS_MAC + 1 ) + } SYSKIND; + +typedef +enum tagLIBFLAGS + { + LIBFLAG_FRESTRICTED = 0x1, + LIBFLAG_FCONTROL = 0x2, + LIBFLAG_FHIDDEN = 0x4, + LIBFLAG_FHASDISKIMAGE = 0x8 + } LIBFLAGS; + +typedef ITypeLib *LPTYPELIB; + +typedef struct tagTLIBATTR + { + GUID guid; + LCID lcid; + SYSKIND syskind; + WORD wMajorVerNum; + WORD wMinorVerNum; + WORD wLibFlags; + } TLIBATTR; + +typedef struct tagTLIBATTR *LPTLIBATTR; + + +extern const IID IID_ITypeLib; +# 3942 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ITypeLibVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ITypeLib * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ITypeLib * This); + + + ULONG ( __stdcall *Release )( + ITypeLib * This); + + + UINT ( __stdcall *GetTypeInfoCount )( + ITypeLib * This); + + + HRESULT ( __stdcall *GetTypeInfo )( + ITypeLib * This, + UINT index, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetTypeInfoType )( + ITypeLib * This, + UINT index, + TYPEKIND *pTKind); + + + HRESULT ( __stdcall *GetTypeInfoOfGuid )( + ITypeLib * This, + const GUID * const guid, + ITypeInfo **ppTinfo); + + + HRESULT ( __stdcall *GetLibAttr )( + ITypeLib * This, + TLIBATTR **ppTLibAttr); + + + HRESULT ( __stdcall *GetTypeComp )( + ITypeLib * This, + ITypeComp **ppTComp); + + + HRESULT ( __stdcall *GetDocumentation )( + ITypeLib * This, + INT index, + + BSTR *pBstrName, + + BSTR *pBstrDocString, + DWORD *pdwHelpContext, + + BSTR *pBstrHelpFile); + + + HRESULT ( __stdcall *IsName )( + ITypeLib * This, + + LPOLESTR szNameBuf, + ULONG lHashVal, + BOOL *pfName); + + + HRESULT ( __stdcall *FindName )( + ITypeLib * This, + + LPOLESTR szNameBuf, + ULONG lHashVal, + ITypeInfo **ppTInfo, + MEMBERID *rgMemId, + USHORT *pcFound); + + + void ( __stdcall *ReleaseTLibAttr )( + ITypeLib * This, + TLIBATTR *pTLibAttr); + + + } ITypeLibVtbl; + + struct ITypeLib + { + struct ITypeLibVtbl *lpVtbl; + }; +# 4088 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + HRESULT __stdcall ITypeLib_RemoteGetTypeInfoCount_Proxy( + ITypeLib * This, + UINT *pcTInfo); + + +void __stdcall ITypeLib_RemoteGetTypeInfoCount_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeLib_RemoteGetLibAttr_Proxy( + ITypeLib * This, + LPTLIBATTR *ppTLibAttr, + CLEANLOCALSTORAGE *pDummy); + + +void __stdcall ITypeLib_RemoteGetLibAttr_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeLib_RemoteGetDocumentation_Proxy( + ITypeLib * This, + INT index, + DWORD refPtrFlags, + BSTR *pBstrName, + BSTR *pBstrDocString, + DWORD *pdwHelpContext, + BSTR *pBstrHelpFile); + + +void __stdcall ITypeLib_RemoteGetDocumentation_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeLib_RemoteIsName_Proxy( + ITypeLib * This, + LPOLESTR szNameBuf, + ULONG lHashVal, + BOOL *pfName, + BSTR *pBstrLibName); + + +void __stdcall ITypeLib_RemoteIsName_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeLib_RemoteFindName_Proxy( + ITypeLib * This, + LPOLESTR szNameBuf, + ULONG lHashVal, + ITypeInfo **ppTInfo, + MEMBERID *rgMemId, + USHORT *pcFound, + BSTR *pBstrLibName); + + +void __stdcall ITypeLib_RemoteFindName_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeLib_LocalReleaseTLibAttr_Proxy( + ITypeLib * This); + + +void __stdcall ITypeLib_LocalReleaseTLibAttr_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 4186 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0011_v0_0_s_ifspec; + + + + + + + +typedef ITypeLib2 *LPTYPELIB2; + + +extern const IID IID_ITypeLib2; +# 4231 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ITypeLib2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ITypeLib2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ITypeLib2 * This); + + + ULONG ( __stdcall *Release )( + ITypeLib2 * This); + + + UINT ( __stdcall *GetTypeInfoCount )( + ITypeLib2 * This); + + + HRESULT ( __stdcall *GetTypeInfo )( + ITypeLib2 * This, + UINT index, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetTypeInfoType )( + ITypeLib2 * This, + UINT index, + TYPEKIND *pTKind); + + + HRESULT ( __stdcall *GetTypeInfoOfGuid )( + ITypeLib2 * This, + const GUID * const guid, + ITypeInfo **ppTinfo); + + + HRESULT ( __stdcall *GetLibAttr )( + ITypeLib2 * This, + TLIBATTR **ppTLibAttr); + + + HRESULT ( __stdcall *GetTypeComp )( + ITypeLib2 * This, + ITypeComp **ppTComp); + + + HRESULT ( __stdcall *GetDocumentation )( + ITypeLib2 * This, + INT index, + + BSTR *pBstrName, + + BSTR *pBstrDocString, + DWORD *pdwHelpContext, + + BSTR *pBstrHelpFile); + + + HRESULT ( __stdcall *IsName )( + ITypeLib2 * This, + + LPOLESTR szNameBuf, + ULONG lHashVal, + BOOL *pfName); + + + HRESULT ( __stdcall *FindName )( + ITypeLib2 * This, + + LPOLESTR szNameBuf, + ULONG lHashVal, + ITypeInfo **ppTInfo, + MEMBERID *rgMemId, + USHORT *pcFound); + + + void ( __stdcall *ReleaseTLibAttr )( + ITypeLib2 * This, + TLIBATTR *pTLibAttr); + + + HRESULT ( __stdcall *GetCustData )( + ITypeLib2 * This, + const GUID * const guid, + VARIANT *pVarVal); + + + HRESULT ( __stdcall *GetLibStatistics )( + ITypeLib2 * This, + ULONG *pcUniqueNames, + ULONG *pcchUniqueNames); + + + HRESULT ( __stdcall *GetDocumentation2 )( + ITypeLib2 * This, + INT index, + LCID lcid, + + BSTR *pbstrHelpString, + DWORD *pdwHelpStringContext, + + BSTR *pbstrHelpStringDll); + + + HRESULT ( __stdcall *GetAllCustData )( + ITypeLib2 * This, + CUSTDATA *pCustData); + + + } ITypeLib2Vtbl; + + struct ITypeLib2 + { + struct ITypeLib2Vtbl *lpVtbl; + }; +# 4418 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + HRESULT __stdcall ITypeLib2_RemoteGetLibStatistics_Proxy( + ITypeLib2 * This, + ULONG *pcUniqueNames, + ULONG *pcchUniqueNames); + + +void __stdcall ITypeLib2_RemoteGetLibStatistics_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall ITypeLib2_RemoteGetDocumentation2_Proxy( + ITypeLib2 * This, + INT index, + LCID lcid, + DWORD refPtrFlags, + BSTR *pbstrHelpString, + DWORD *pdwHelpStringContext, + BSTR *pbstrHelpStringDll); + + +void __stdcall ITypeLib2_RemoteGetDocumentation2_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 4458 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef ITypeChangeEvents *LPTYPECHANGEEVENTS; + +typedef +enum tagCHANGEKIND + { + CHANGEKIND_ADDMEMBER = 0, + CHANGEKIND_DELETEMEMBER = ( CHANGEKIND_ADDMEMBER + 1 ) , + CHANGEKIND_SETNAMES = ( CHANGEKIND_DELETEMEMBER + 1 ) , + CHANGEKIND_SETDOCUMENTATION = ( CHANGEKIND_SETNAMES + 1 ) , + CHANGEKIND_GENERAL = ( CHANGEKIND_SETDOCUMENTATION + 1 ) , + CHANGEKIND_INVALIDATE = ( CHANGEKIND_GENERAL + 1 ) , + CHANGEKIND_CHANGEFAILED = ( CHANGEKIND_INVALIDATE + 1 ) , + CHANGEKIND_MAX = ( CHANGEKIND_CHANGEFAILED + 1 ) + } CHANGEKIND; + + +extern const IID IID_ITypeChangeEvents; +# 4500 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ITypeChangeEventsVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ITypeChangeEvents * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ITypeChangeEvents * This); + + + ULONG ( __stdcall *Release )( + ITypeChangeEvents * This); + + + HRESULT ( __stdcall *RequestTypeChange )( + ITypeChangeEvents * This, + CHANGEKIND changeKind, + ITypeInfo *pTInfoBefore, + + LPOLESTR pStrName, + INT *pfCancel); + + + HRESULT ( __stdcall *AfterTypeChange )( + ITypeChangeEvents * This, + CHANGEKIND changeKind, + ITypeInfo *pTInfoAfter, + + LPOLESTR pStrName); + + + } ITypeChangeEventsVtbl; + + struct ITypeChangeEvents + { + struct ITypeChangeEventsVtbl *lpVtbl; + }; +# 4582 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef IErrorInfo *LPERRORINFO; + + +extern const IID IID_IErrorInfo; +# 4613 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct IErrorInfoVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IErrorInfo * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IErrorInfo * This); + + + ULONG ( __stdcall *Release )( + IErrorInfo * This); + + + HRESULT ( __stdcall *GetGUID )( + IErrorInfo * This, + GUID *pGUID); + + + HRESULT ( __stdcall *GetSource )( + IErrorInfo * This, + BSTR *pBstrSource); + + + HRESULT ( __stdcall *GetDescription )( + IErrorInfo * This, + BSTR *pBstrDescription); + + + HRESULT ( __stdcall *GetHelpFile )( + IErrorInfo * This, + BSTR *pBstrHelpFile); + + + HRESULT ( __stdcall *GetHelpContext )( + IErrorInfo * This, + DWORD *pdwHelpContext); + + + } IErrorInfoVtbl; + + struct IErrorInfo + { + struct IErrorInfoVtbl *lpVtbl; + }; +# 4712 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef ICreateErrorInfo *LPCREATEERRORINFO; + + +extern const IID IID_ICreateErrorInfo; +# 4743 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ICreateErrorInfoVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ICreateErrorInfo * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ICreateErrorInfo * This); + + + ULONG ( __stdcall *Release )( + ICreateErrorInfo * This); + + + HRESULT ( __stdcall *SetGUID )( + ICreateErrorInfo * This, + const GUID * const rguid); + + + HRESULT ( __stdcall *SetSource )( + ICreateErrorInfo * This, + LPOLESTR szSource); + + + HRESULT ( __stdcall *SetDescription )( + ICreateErrorInfo * This, + LPOLESTR szDescription); + + + HRESULT ( __stdcall *SetHelpFile )( + ICreateErrorInfo * This, + LPOLESTR szHelpFile); + + + HRESULT ( __stdcall *SetHelpContext )( + ICreateErrorInfo * This, + DWORD dwHelpContext); + + + } ICreateErrorInfoVtbl; + + struct ICreateErrorInfo + { + struct ICreateErrorInfoVtbl *lpVtbl; + }; +# 4842 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef ISupportErrorInfo *LPSUPPORTERRORINFO; + + +extern const IID IID_ISupportErrorInfo; +# 4861 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ISupportErrorInfoVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ISupportErrorInfo * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ISupportErrorInfo * This); + + + ULONG ( __stdcall *Release )( + ISupportErrorInfo * This); + + + HRESULT ( __stdcall *InterfaceSupportsErrorInfo )( + ISupportErrorInfo * This, + const IID * const riid); + + + } ISupportErrorInfoVtbl; + + struct ISupportErrorInfo + { + struct ISupportErrorInfoVtbl *lpVtbl; + }; +# 4929 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +extern const IID IID_ITypeFactory; +# 4947 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ITypeFactoryVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ITypeFactory * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ITypeFactory * This); + + + ULONG ( __stdcall *Release )( + ITypeFactory * This); + + + HRESULT ( __stdcall *CreateFromTypeInfo )( + ITypeFactory * This, + ITypeInfo *pTypeInfo, + const IID * const riid, + IUnknown **ppv); + + + } ITypeFactoryVtbl; + + struct ITypeFactory + { + struct ITypeFactoryVtbl *lpVtbl; + }; +# 5017 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +extern const IID IID_ITypeMarshal; +# 5058 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ITypeMarshalVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ITypeMarshal * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ITypeMarshal * This); + + + ULONG ( __stdcall *Release )( + ITypeMarshal * This); + + + HRESULT ( __stdcall *Size )( + ITypeMarshal * This, + PVOID pvType, + DWORD dwDestContext, + PVOID pvDestContext, + ULONG *pSize); + + + HRESULT ( __stdcall *Marshal )( + ITypeMarshal * This, + PVOID pvType, + DWORD dwDestContext, + PVOID pvDestContext, + ULONG cbBufferLength, + + BYTE *pBuffer, + + ULONG *pcbWritten); + + + HRESULT ( __stdcall *Unmarshal )( + ITypeMarshal * This, + PVOID pvType, + DWORD dwFlags, + ULONG cbBufferLength, + + BYTE *pBuffer, + + ULONG *pcbRead); + + + HRESULT ( __stdcall *Free )( + ITypeMarshal * This, + PVOID pvType); + + + } ITypeMarshalVtbl; + + struct ITypeMarshal + { + struct ITypeMarshalVtbl *lpVtbl; + }; +# 5165 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef IRecordInfo *LPRECORDINFO; + + +extern const IID IID_IRecordInfo; +# 5244 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct IRecordInfoVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IRecordInfo * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IRecordInfo * This); + + + ULONG ( __stdcall *Release )( + IRecordInfo * This); + + + HRESULT ( __stdcall *RecordInit )( + IRecordInfo * This, + PVOID pvNew); + + + HRESULT ( __stdcall *RecordClear )( + IRecordInfo * This, + PVOID pvExisting); + + + HRESULT ( __stdcall *RecordCopy )( + IRecordInfo * This, + PVOID pvExisting, + PVOID pvNew); + + + HRESULT ( __stdcall *GetGuid )( + IRecordInfo * This, + GUID *pguid); + + + HRESULT ( __stdcall *GetName )( + IRecordInfo * This, + + BSTR *pbstrName); + + + HRESULT ( __stdcall *GetSize )( + IRecordInfo * This, + ULONG *pcbSize); + + + HRESULT ( __stdcall *GetTypeInfo )( + IRecordInfo * This, + ITypeInfo **ppTypeInfo); + + + HRESULT ( __stdcall *GetField )( + IRecordInfo * This, + PVOID pvData, + LPCOLESTR szFieldName, + VARIANT *pvarField); + + + HRESULT ( __stdcall *GetFieldNoCopy )( + IRecordInfo * This, + PVOID pvData, + LPCOLESTR szFieldName, + VARIANT *pvarField, + PVOID *ppvDataCArray); + + + HRESULT ( __stdcall *PutField )( + IRecordInfo * This, + ULONG wFlags, + PVOID pvData, + LPCOLESTR szFieldName, + VARIANT *pvarField); + + + HRESULT ( __stdcall *PutFieldNoCopy )( + IRecordInfo * This, + ULONG wFlags, + PVOID pvData, + LPCOLESTR szFieldName, + VARIANT *pvarField); + + + HRESULT ( __stdcall *GetFieldNames )( + IRecordInfo * This, + ULONG *pcNames, + + BSTR *rgBstrNames); + + + BOOL ( __stdcall *IsMatchingType )( + IRecordInfo * This, + IRecordInfo *pRecordInfo); + + + PVOID ( __stdcall *RecordCreate )( + IRecordInfo * This); + + + HRESULT ( __stdcall *RecordCreateCopy )( + IRecordInfo * This, + PVOID pvSource, + PVOID *ppvDest); + + + HRESULT ( __stdcall *RecordDestroy )( + IRecordInfo * This, + PVOID pvRecord); + + + } IRecordInfoVtbl; + + struct IRecordInfo + { + struct IRecordInfoVtbl *lpVtbl; + }; +# 5446 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef IErrorLog *LPERRORLOG; + + +extern const IID IID_IErrorLog; +# 5466 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct IErrorLogVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IErrorLog * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IErrorLog * This); + + + ULONG ( __stdcall *Release )( + IErrorLog * This); + + + HRESULT ( __stdcall *AddError )( + IErrorLog * This, + LPCOLESTR pszPropName, + EXCEPINFO *pExcepInfo); + + + } IErrorLogVtbl; + + struct IErrorLog + { + struct IErrorLogVtbl *lpVtbl; + }; +# 5534 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +typedef IPropertyBag *LPPROPERTYBAG; + + +extern const IID IID_IPropertyBag; +# 5559 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct IPropertyBagVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IPropertyBag * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IPropertyBag * This); + + + ULONG ( __stdcall *Release )( + IPropertyBag * This); + + + HRESULT ( __stdcall *Read )( + IPropertyBag * This, + LPCOLESTR pszPropName, + VARIANT *pVar, + IErrorLog *pErrorLog); + + + HRESULT ( __stdcall *Write )( + IPropertyBag * This, + LPCOLESTR pszPropName, + VARIANT *pVar); + + + } IPropertyBagVtbl; + + struct IPropertyBag + { + struct IPropertyBagVtbl *lpVtbl; + }; +# 5627 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + HRESULT __stdcall IPropertyBag_RemoteRead_Proxy( + IPropertyBag * This, + LPCOLESTR pszPropName, + VARIANT *pVar, + IErrorLog *pErrorLog, + DWORD varType, + IUnknown *pUnkObj); + + +void __stdcall IPropertyBag_RemoteRead_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 5654 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +extern const IID IID_ITypeLibRegistrationReader; +# 5670 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ITypeLibRegistrationReaderVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ITypeLibRegistrationReader * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ITypeLibRegistrationReader * This); + + + ULONG ( __stdcall *Release )( + ITypeLibRegistrationReader * This); + + + HRESULT ( __stdcall *EnumTypeLibRegistrations )( + ITypeLibRegistrationReader * This, + IEnumUnknown **ppEnumUnknown); + + + } ITypeLibRegistrationReaderVtbl; + + struct ITypeLibRegistrationReader + { + struct ITypeLibRegistrationReaderVtbl *lpVtbl; + }; +# 5738 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +extern const IID IID_ITypeLibRegistration; +# 5775 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 + typedef struct ITypeLibRegistrationVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ITypeLibRegistration * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ITypeLibRegistration * This); + + + ULONG ( __stdcall *Release )( + ITypeLibRegistration * This); + + + HRESULT ( __stdcall *GetGuid )( + ITypeLibRegistration * This, + GUID *pGuid); + + + HRESULT ( __stdcall *GetVersion )( + ITypeLibRegistration * This, + BSTR *pVersion); + + + HRESULT ( __stdcall *GetLcid )( + ITypeLibRegistration * This, + LCID *pLcid); + + + HRESULT ( __stdcall *GetWin32Path )( + ITypeLibRegistration * This, + BSTR *pWin32Path); + + + HRESULT ( __stdcall *GetWin64Path )( + ITypeLibRegistration * This, + BSTR *pWin64Path); + + + HRESULT ( __stdcall *GetDisplayName )( + ITypeLibRegistration * This, + BSTR *pDisplayName); + + + HRESULT ( __stdcall *GetFlags )( + ITypeLibRegistration * This, + DWORD *pFlags); + + + HRESULT ( __stdcall *GetHelpDir )( + ITypeLibRegistration * This, + BSTR *pHelpDir); + + + } ITypeLibRegistrationVtbl; + + struct ITypeLibRegistration + { + struct ITypeLibRegistrationVtbl *lpVtbl; + }; +# 5895 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 +extern const CLSID CLSID_TypeLibRegistrationReader; + + + + +#pragma warning(pop) + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0023_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0023_v0_0_s_ifspec; + + + +unsigned long __stdcall BSTR_UserSize( unsigned long *, unsigned long , BSTR * ); +unsigned char * __stdcall BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * ); +unsigned char * __stdcall BSTR_UserUnmarshal( unsigned long *, unsigned char *, BSTR * ); +void __stdcall BSTR_UserFree( unsigned long *, BSTR * ); + +unsigned long __stdcall CLEANLOCALSTORAGE_UserSize( unsigned long *, unsigned long , CLEANLOCALSTORAGE * ); +unsigned char * __stdcall CLEANLOCALSTORAGE_UserMarshal( unsigned long *, unsigned char *, CLEANLOCALSTORAGE * ); +unsigned char * __stdcall CLEANLOCALSTORAGE_UserUnmarshal( unsigned long *, unsigned char *, CLEANLOCALSTORAGE * ); +void __stdcall CLEANLOCALSTORAGE_UserFree( unsigned long *, CLEANLOCALSTORAGE * ); + +unsigned long __stdcall VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * ); +unsigned char * __stdcall VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * ); +unsigned char * __stdcall VARIANT_UserUnmarshal( unsigned long *, unsigned char *, VARIANT * ); +void __stdcall VARIANT_UserFree( unsigned long *, VARIANT * ); + +unsigned long __stdcall BSTR_UserSize64( unsigned long *, unsigned long , BSTR * ); +unsigned char * __stdcall BSTR_UserMarshal64( unsigned long *, unsigned char *, BSTR * ); +unsigned char * __stdcall BSTR_UserUnmarshal64( unsigned long *, unsigned char *, BSTR * ); +void __stdcall BSTR_UserFree64( unsigned long *, BSTR * ); + +unsigned long __stdcall CLEANLOCALSTORAGE_UserSize64( unsigned long *, unsigned long , CLEANLOCALSTORAGE * ); +unsigned char * __stdcall CLEANLOCALSTORAGE_UserMarshal64( unsigned long *, unsigned char *, CLEANLOCALSTORAGE * ); +unsigned char * __stdcall CLEANLOCALSTORAGE_UserUnmarshal64( unsigned long *, unsigned char *, CLEANLOCALSTORAGE * ); +void __stdcall CLEANLOCALSTORAGE_UserFree64( unsigned long *, CLEANLOCALSTORAGE * ); + +unsigned long __stdcall VARIANT_UserSize64( unsigned long *, unsigned long , VARIANT * ); +unsigned char * __stdcall VARIANT_UserMarshal64( unsigned long *, unsigned char *, VARIANT * ); +unsigned char * __stdcall VARIANT_UserUnmarshal64( unsigned long *, unsigned char *, VARIANT * ); +void __stdcall VARIANT_UserFree64( unsigned long *, VARIANT * ); + + HRESULT __stdcall IDispatch_Invoke_Proxy( + IDispatch * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT __stdcall IDispatch_Invoke_Stub( + IDispatch * This, + DISPID dispIdMember, + const IID * const riid, + LCID lcid, + DWORD dwFlags, + DISPPARAMS *pDispParams, + VARIANT *pVarResult, + EXCEPINFO *pExcepInfo, + UINT *pArgErr, + UINT cVarRef, + UINT *rgVarRefIdx, + VARIANTARG *rgVarRef); + + HRESULT __stdcall IEnumVARIANT_Next_Proxy( + IEnumVARIANT * This, + ULONG celt, + VARIANT *rgVar, + ULONG *pCeltFetched); + + + HRESULT __stdcall IEnumVARIANT_Next_Stub( + IEnumVARIANT * This, + ULONG celt, + VARIANT *rgVar, + ULONG *pCeltFetched); + + HRESULT __stdcall ITypeComp_Bind_Proxy( + ITypeComp * This, + + LPOLESTR szName, + ULONG lHashVal, + WORD wFlags, + ITypeInfo **ppTInfo, + DESCKIND *pDescKind, + BINDPTR *pBindPtr); + + + HRESULT __stdcall ITypeComp_Bind_Stub( + ITypeComp * This, + LPOLESTR szName, + ULONG lHashVal, + WORD wFlags, + ITypeInfo **ppTInfo, + DESCKIND *pDescKind, + LPFUNCDESC *ppFuncDesc, + LPVARDESC *ppVarDesc, + ITypeComp **ppTypeComp, + CLEANLOCALSTORAGE *pDummy); + + HRESULT __stdcall ITypeComp_BindType_Proxy( + ITypeComp * This, + + LPOLESTR szName, + ULONG lHashVal, + ITypeInfo **ppTInfo, + ITypeComp **ppTComp); + + + HRESULT __stdcall ITypeComp_BindType_Stub( + ITypeComp * This, + LPOLESTR szName, + ULONG lHashVal, + ITypeInfo **ppTInfo); + + HRESULT __stdcall ITypeInfo_GetTypeAttr_Proxy( + ITypeInfo * This, + TYPEATTR **ppTypeAttr); + + + HRESULT __stdcall ITypeInfo_GetTypeAttr_Stub( + ITypeInfo * This, + LPTYPEATTR *ppTypeAttr, + CLEANLOCALSTORAGE *pDummy); + + HRESULT __stdcall ITypeInfo_GetFuncDesc_Proxy( + ITypeInfo * This, + UINT index, + FUNCDESC **ppFuncDesc); + + + HRESULT __stdcall ITypeInfo_GetFuncDesc_Stub( + ITypeInfo * This, + UINT index, + LPFUNCDESC *ppFuncDesc, + CLEANLOCALSTORAGE *pDummy); + + HRESULT __stdcall ITypeInfo_GetVarDesc_Proxy( + ITypeInfo * This, + UINT index, + VARDESC **ppVarDesc); + + + HRESULT __stdcall ITypeInfo_GetVarDesc_Stub( + ITypeInfo * This, + UINT index, + LPVARDESC *ppVarDesc, + CLEANLOCALSTORAGE *pDummy); + + HRESULT __stdcall ITypeInfo_GetNames_Proxy( + ITypeInfo * This, + MEMBERID memid, + + BSTR *rgBstrNames, + UINT cMaxNames, + + UINT *pcNames); + + + HRESULT __stdcall ITypeInfo_GetNames_Stub( + ITypeInfo * This, + MEMBERID memid, + BSTR *rgBstrNames, + UINT cMaxNames, + UINT *pcNames); + + HRESULT __stdcall ITypeInfo_GetIDsOfNames_Proxy( + ITypeInfo * This, + + LPOLESTR *rgszNames, + UINT cNames, + MEMBERID *pMemId); + + + HRESULT __stdcall ITypeInfo_GetIDsOfNames_Stub( + ITypeInfo * This); + + HRESULT __stdcall ITypeInfo_Invoke_Proxy( + ITypeInfo * This, + PVOID pvInstance, + MEMBERID memid, + WORD wFlags, + DISPPARAMS *pDispParams, + VARIANT *pVarResult, + EXCEPINFO *pExcepInfo, + UINT *puArgErr); + + + HRESULT __stdcall ITypeInfo_Invoke_Stub( + ITypeInfo * This); + + HRESULT __stdcall ITypeInfo_GetDocumentation_Proxy( + ITypeInfo * This, + MEMBERID memid, + + BSTR *pBstrName, + + BSTR *pBstrDocString, + DWORD *pdwHelpContext, + + BSTR *pBstrHelpFile); + + + HRESULT __stdcall ITypeInfo_GetDocumentation_Stub( + ITypeInfo * This, + MEMBERID memid, + DWORD refPtrFlags, + BSTR *pBstrName, + BSTR *pBstrDocString, + DWORD *pdwHelpContext, + BSTR *pBstrHelpFile); + + HRESULT __stdcall ITypeInfo_GetDllEntry_Proxy( + ITypeInfo * This, + MEMBERID memid, + INVOKEKIND invKind, + + BSTR *pBstrDllName, + + BSTR *pBstrName, + WORD *pwOrdinal); + + + HRESULT __stdcall ITypeInfo_GetDllEntry_Stub( + ITypeInfo * This, + MEMBERID memid, + INVOKEKIND invKind, + DWORD refPtrFlags, + BSTR *pBstrDllName, + BSTR *pBstrName, + WORD *pwOrdinal); + + HRESULT __stdcall ITypeInfo_AddressOfMember_Proxy( + ITypeInfo * This, + MEMBERID memid, + INVOKEKIND invKind, + PVOID *ppv); + + + HRESULT __stdcall ITypeInfo_AddressOfMember_Stub( + ITypeInfo * This); + + HRESULT __stdcall ITypeInfo_CreateInstance_Proxy( + ITypeInfo * This, + IUnknown *pUnkOuter, + const IID * const riid, + PVOID *ppvObj); + + + HRESULT __stdcall ITypeInfo_CreateInstance_Stub( + ITypeInfo * This, + const IID * const riid, + IUnknown **ppvObj); + + HRESULT __stdcall ITypeInfo_GetContainingTypeLib_Proxy( + ITypeInfo * This, + ITypeLib **ppTLib, + UINT *pIndex); + + + HRESULT __stdcall ITypeInfo_GetContainingTypeLib_Stub( + ITypeInfo * This, + ITypeLib **ppTLib, + UINT *pIndex); + + void __stdcall ITypeInfo_ReleaseTypeAttr_Proxy( + ITypeInfo * This, + TYPEATTR *pTypeAttr); + + + HRESULT __stdcall ITypeInfo_ReleaseTypeAttr_Stub( + ITypeInfo * This); + + void __stdcall ITypeInfo_ReleaseFuncDesc_Proxy( + ITypeInfo * This, + FUNCDESC *pFuncDesc); + + + HRESULT __stdcall ITypeInfo_ReleaseFuncDesc_Stub( + ITypeInfo * This); + + void __stdcall ITypeInfo_ReleaseVarDesc_Proxy( + ITypeInfo * This, + VARDESC *pVarDesc); + + + HRESULT __stdcall ITypeInfo_ReleaseVarDesc_Stub( + ITypeInfo * This); + + HRESULT __stdcall ITypeInfo2_GetDocumentation2_Proxy( + ITypeInfo2 * This, + MEMBERID memid, + LCID lcid, + + BSTR *pbstrHelpString, + DWORD *pdwHelpStringContext, + + BSTR *pbstrHelpStringDll); + + + HRESULT __stdcall ITypeInfo2_GetDocumentation2_Stub( + ITypeInfo2 * This, + MEMBERID memid, + LCID lcid, + DWORD refPtrFlags, + BSTR *pbstrHelpString, + DWORD *pdwHelpStringContext, + BSTR *pbstrHelpStringDll); + + UINT __stdcall ITypeLib_GetTypeInfoCount_Proxy( + ITypeLib * This); + + + HRESULT __stdcall ITypeLib_GetTypeInfoCount_Stub( + ITypeLib * This, + UINT *pcTInfo); + + HRESULT __stdcall ITypeLib_GetLibAttr_Proxy( + ITypeLib * This, + TLIBATTR **ppTLibAttr); + + + HRESULT __stdcall ITypeLib_GetLibAttr_Stub( + ITypeLib * This, + LPTLIBATTR *ppTLibAttr, + CLEANLOCALSTORAGE *pDummy); + + HRESULT __stdcall ITypeLib_GetDocumentation_Proxy( + ITypeLib * This, + INT index, + + BSTR *pBstrName, + + BSTR *pBstrDocString, + DWORD *pdwHelpContext, + + BSTR *pBstrHelpFile); + + + HRESULT __stdcall ITypeLib_GetDocumentation_Stub( + ITypeLib * This, + INT index, + DWORD refPtrFlags, + BSTR *pBstrName, + BSTR *pBstrDocString, + DWORD *pdwHelpContext, + BSTR *pBstrHelpFile); + + HRESULT __stdcall ITypeLib_IsName_Proxy( + ITypeLib * This, + + LPOLESTR szNameBuf, + ULONG lHashVal, + BOOL *pfName); + + + HRESULT __stdcall ITypeLib_IsName_Stub( + ITypeLib * This, + LPOLESTR szNameBuf, + ULONG lHashVal, + BOOL *pfName, + BSTR *pBstrLibName); + + HRESULT __stdcall ITypeLib_FindName_Proxy( + ITypeLib * This, + + LPOLESTR szNameBuf, + ULONG lHashVal, + ITypeInfo **ppTInfo, + MEMBERID *rgMemId, + USHORT *pcFound); + + + HRESULT __stdcall ITypeLib_FindName_Stub( + ITypeLib * This, + LPOLESTR szNameBuf, + ULONG lHashVal, + ITypeInfo **ppTInfo, + MEMBERID *rgMemId, + USHORT *pcFound, + BSTR *pBstrLibName); + + void __stdcall ITypeLib_ReleaseTLibAttr_Proxy( + ITypeLib * This, + TLIBATTR *pTLibAttr); + + + HRESULT __stdcall ITypeLib_ReleaseTLibAttr_Stub( + ITypeLib * This); + + HRESULT __stdcall ITypeLib2_GetLibStatistics_Proxy( + ITypeLib2 * This, + ULONG *pcUniqueNames, + ULONG *pcchUniqueNames); + + + HRESULT __stdcall ITypeLib2_GetLibStatistics_Stub( + ITypeLib2 * This, + ULONG *pcUniqueNames, + ULONG *pcchUniqueNames); + + HRESULT __stdcall ITypeLib2_GetDocumentation2_Proxy( + ITypeLib2 * This, + INT index, + LCID lcid, + + BSTR *pbstrHelpString, + DWORD *pdwHelpStringContext, + + BSTR *pbstrHelpStringDll); + + + HRESULT __stdcall ITypeLib2_GetDocumentation2_Stub( + ITypeLib2 * This, + INT index, + LCID lcid, + DWORD refPtrFlags, + BSTR *pbstrHelpString, + DWORD *pdwHelpStringContext, + BSTR *pbstrHelpStringDll); + + HRESULT __stdcall IPropertyBag_Read_Proxy( + IPropertyBag * This, + LPCOLESTR pszPropName, + VARIANT *pVar, + IErrorLog *pErrorLog); + + + HRESULT __stdcall IPropertyBag_Read_Stub( + IPropertyBag * This, + LPCOLESTR pszPropName, + VARIANT *pVar, + IErrorLog *pErrorLog, + DWORD varType, + IUnknown *pUnkObj); +# 81 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 2 3 +# 99 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + +#pragma warning(disable: 4201) +#pragma warning(disable: 4237) +# 114 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 +typedef struct tagVersionedStream + { + GUID guidVersion; + IStream *pStream; + } VERSIONEDSTREAM; + +typedef struct tagVersionedStream *LPVERSIONEDSTREAM; +# 146 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 +typedef struct tagPROPVARIANT PROPVARIANT; + +typedef struct tagCAC + { + ULONG cElems; + CHAR *pElems; + } CAC; + +typedef struct tagCAUB + { + ULONG cElems; + UCHAR *pElems; + } CAUB; + +typedef struct tagCAI + { + ULONG cElems; + SHORT *pElems; + } CAI; + +typedef struct tagCAUI + { + ULONG cElems; + USHORT *pElems; + } CAUI; + +typedef struct tagCAL + { + ULONG cElems; + LONG *pElems; + } CAL; + +typedef struct tagCAUL + { + ULONG cElems; + ULONG *pElems; + } CAUL; + +typedef struct tagCAFLT + { + ULONG cElems; + FLOAT *pElems; + } CAFLT; + +typedef struct tagCADBL + { + ULONG cElems; + DOUBLE *pElems; + } CADBL; + +typedef struct tagCACY + { + ULONG cElems; + CY *pElems; + } CACY; + +typedef struct tagCADATE + { + ULONG cElems; + DATE *pElems; + } CADATE; + +typedef struct tagCABSTR + { + ULONG cElems; + BSTR *pElems; + } CABSTR; + +typedef struct tagCABSTRBLOB + { + ULONG cElems; + BSTRBLOB *pElems; + } CABSTRBLOB; + +typedef struct tagCABOOL + { + ULONG cElems; + VARIANT_BOOL *pElems; + } CABOOL; + +typedef struct tagCASCODE + { + ULONG cElems; + SCODE *pElems; + } CASCODE; + +typedef struct tagCAPROPVARIANT + { + ULONG cElems; + PROPVARIANT *pElems; + } CAPROPVARIANT; + +typedef struct tagCAH + { + ULONG cElems; + LARGE_INTEGER *pElems; + } CAH; + +typedef struct tagCAUH + { + ULONG cElems; + ULARGE_INTEGER *pElems; + } CAUH; + +typedef struct tagCALPSTR + { + ULONG cElems; + LPSTR *pElems; + } CALPSTR; + +typedef struct tagCALPWSTR + { + ULONG cElems; + LPWSTR *pElems; + } CALPWSTR; + +typedef struct tagCAFILETIME + { + ULONG cElems; + FILETIME *pElems; + } CAFILETIME; + +typedef struct tagCACLIPDATA + { + ULONG cElems; + CLIPDATA *pElems; + } CACLIPDATA; + +typedef struct tagCACLSID + { + ULONG cElems; + CLSID *pElems; + } CACLSID; +# 290 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 +typedef WORD PROPVAR_PAD1; +typedef WORD PROPVAR_PAD2; +typedef WORD PROPVAR_PAD3; +# 302 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 +struct tagPROPVARIANT { + union { + +struct + { + VARTYPE vt; + PROPVAR_PAD1 wReserved1; + PROPVAR_PAD2 wReserved2; + PROPVAR_PAD3 wReserved3; + union + { + + CHAR cVal; + UCHAR bVal; + SHORT iVal; + USHORT uiVal; + LONG lVal; + ULONG ulVal; + INT intVal; + UINT uintVal; + LARGE_INTEGER hVal; + ULARGE_INTEGER uhVal; + FLOAT fltVal; + DOUBLE dblVal; + VARIANT_BOOL boolVal; + VARIANT_BOOL __OBSOLETE__VARIANT_BOOL; + SCODE scode; + CY cyVal; + DATE date; + FILETIME filetime; + CLSID *puuid; + CLIPDATA *pclipdata; + BSTR bstrVal; + BSTRBLOB bstrblobVal; + BLOB blob; + LPSTR pszVal; + LPWSTR pwszVal; + IUnknown *punkVal; + IDispatch *pdispVal; + IStream *pStream; + IStorage *pStorage; + LPVERSIONEDSTREAM pVersionedStream; + LPSAFEARRAY parray; + CAC cac; + CAUB caub; + CAI cai; + CAUI caui; + CAL cal; + CAUL caul; + CAH cah; + CAUH cauh; + CAFLT caflt; + CADBL cadbl; + CABOOL cabool; + CASCODE cascode; + CACY cacy; + CADATE cadate; + CAFILETIME cafiletime; + CACLSID cauuid; + CACLIPDATA caclipdata; + CABSTR cabstr; + CABSTRBLOB cabstrblob; + CALPSTR calpstr; + CALPWSTR calpwstr; + CAPROPVARIANT capropvar; + CHAR *pcVal; + UCHAR *pbVal; + SHORT *piVal; + USHORT *puiVal; + LONG *plVal; + ULONG *pulVal; + INT *pintVal; + UINT *puintVal; + FLOAT *pfltVal; + DOUBLE *pdblVal; + VARIANT_BOOL *pboolVal; + DECIMAL *pdecVal; + SCODE *pscode; + CY *pcyVal; + DATE *pdate; + BSTR *pbstrVal; + IUnknown **ppunkVal; + IDispatch **ppdispVal; + LPSAFEARRAY *pparray; + PROPVARIANT *pvarVal; + } ; + } ; + + DECIMAL decVal; + }; +}; +# 406 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 +typedef struct tagPROPVARIANT * LPPROPVARIANT; +# 449 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 +typedef struct tagPROPSPEC + { + ULONG ulKind; + union + { + PROPID propid; + LPOLESTR lpwstr; + + } ; + } PROPSPEC; + +typedef struct tagSTATPROPSTG + { + LPOLESTR lpwstrName; + PROPID propid; + VARTYPE vt; + } STATPROPSTG; + + + + + + +typedef struct tagSTATPROPSETSTG + { + FMTID fmtid; + CLSID clsid; + DWORD grfFlags; + FILETIME mtime; + FILETIME ctime; + FILETIME atime; + DWORD dwOSVersion; + } STATPROPSETSTG; + + + +extern RPC_IF_HANDLE __MIDL_itf_propidlbase_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_propidlbase_0000_0000_v0_0_s_ifspec; +# 495 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 +extern const IID IID_IPropertyStorage; +# 556 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 + typedef struct IPropertyStorageVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IPropertyStorage * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IPropertyStorage * This); + + + ULONG ( __stdcall *Release )( + IPropertyStorage * This); + + + HRESULT ( __stdcall *ReadMultiple )( + IPropertyStorage * This, + ULONG cpspec, + const PROPSPEC rgpspec[ ], + PROPVARIANT rgpropvar[ ]); + + + HRESULT ( __stdcall *WriteMultiple )( + IPropertyStorage * This, + ULONG cpspec, + const PROPSPEC rgpspec[ ], + const PROPVARIANT rgpropvar[ ], + PROPID propidNameFirst); + + + HRESULT ( __stdcall *DeleteMultiple )( + IPropertyStorage * This, + ULONG cpspec, + const PROPSPEC rgpspec[ ]); + + + HRESULT ( __stdcall *ReadPropertyNames )( + IPropertyStorage * This, + ULONG cpropid, + const PROPID rgpropid[ ], + LPOLESTR rglpwstrName[ ]); + + + HRESULT ( __stdcall *WritePropertyNames )( + IPropertyStorage * This, + ULONG cpropid, + const PROPID rgpropid[ ], + const LPOLESTR rglpwstrName[ ]); + + + HRESULT ( __stdcall *DeletePropertyNames )( + IPropertyStorage * This, + ULONG cpropid, + const PROPID rgpropid[ ]); + + + HRESULT ( __stdcall *Commit )( + IPropertyStorage * This, + DWORD grfCommitFlags); + + + HRESULT ( __stdcall *Revert )( + IPropertyStorage * This); + + + HRESULT ( __stdcall *Enum )( + IPropertyStorage * This, + IEnumSTATPROPSTG **ppenum); + + + HRESULT ( __stdcall *SetTimes )( + IPropertyStorage * This, + const FILETIME *pctime, + const FILETIME *patime, + const FILETIME *pmtime); + + + HRESULT ( __stdcall *SetClass )( + IPropertyStorage * This, + const IID * const clsid); + + + HRESULT ( __stdcall *Stat )( + IPropertyStorage * This, + STATPROPSETSTG *pstatpsstg); + + + } IPropertyStorageVtbl; + + struct IPropertyStorage + { + struct IPropertyStorageVtbl *lpVtbl; + }; +# 723 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 +typedef IPropertySetStorage *LPPROPERTYSETSTORAGE; + + +extern const IID IID_IPropertySetStorage; +# 757 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 + typedef struct IPropertySetStorageVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IPropertySetStorage * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IPropertySetStorage * This); + + + ULONG ( __stdcall *Release )( + IPropertySetStorage * This); + + + HRESULT ( __stdcall *Create )( + IPropertySetStorage * This, + const IID * const rfmtid, + const CLSID *pclsid, + DWORD grfFlags, + DWORD grfMode, + IPropertyStorage **ppprstg); + + + HRESULT ( __stdcall *Open )( + IPropertySetStorage * This, + const IID * const rfmtid, + DWORD grfMode, + IPropertyStorage **ppprstg); + + + HRESULT ( __stdcall *Delete )( + IPropertySetStorage * This, + const IID * const rfmtid); + + + HRESULT ( __stdcall *Enum )( + IPropertySetStorage * This, + IEnumSTATPROPSETSTG **ppenum); + + + } IPropertySetStorageVtbl; + + struct IPropertySetStorage + { + struct IPropertySetStorageVtbl *lpVtbl; + }; +# 854 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 +typedef IEnumSTATPROPSTG *LPENUMSTATPROPSTG; + + +extern const IID IID_IEnumSTATPROPSTG; +# 885 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 + typedef struct IEnumSTATPROPSTGVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IEnumSTATPROPSTG * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IEnumSTATPROPSTG * This); + + + ULONG ( __stdcall *Release )( + IEnumSTATPROPSTG * This); + + + HRESULT ( __stdcall *Next )( + IEnumSTATPROPSTG * This, + ULONG celt, + + STATPROPSTG *rgelt, + + ULONG *pceltFetched); + + + HRESULT ( __stdcall *Skip )( + IEnumSTATPROPSTG * This, + ULONG celt); + + + HRESULT ( __stdcall *Reset )( + IEnumSTATPROPSTG * This); + + + HRESULT ( __stdcall *Clone )( + IEnumSTATPROPSTG * This, + IEnumSTATPROPSTG **ppenum); + + + } IEnumSTATPROPSTGVtbl; + + struct IEnumSTATPROPSTG + { + struct IEnumSTATPROPSTGVtbl *lpVtbl; + }; +# 969 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 + HRESULT __stdcall IEnumSTATPROPSTG_RemoteNext_Proxy( + IEnumSTATPROPSTG * This, + ULONG celt, + STATPROPSTG *rgelt, + ULONG *pceltFetched); + + +void __stdcall IEnumSTATPROPSTG_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 993 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 +typedef IEnumSTATPROPSETSTG *LPENUMSTATPROPSETSTG; + + +extern const IID IID_IEnumSTATPROPSETSTG; +# 1024 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 + typedef struct IEnumSTATPROPSETSTGVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IEnumSTATPROPSETSTG * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IEnumSTATPROPSETSTG * This); + + + ULONG ( __stdcall *Release )( + IEnumSTATPROPSETSTG * This); + + + HRESULT ( __stdcall *Next )( + IEnumSTATPROPSETSTG * This, + ULONG celt, + + STATPROPSETSTG *rgelt, + + ULONG *pceltFetched); + + + HRESULT ( __stdcall *Skip )( + IEnumSTATPROPSETSTG * This, + ULONG celt); + + + HRESULT ( __stdcall *Reset )( + IEnumSTATPROPSETSTG * This); + + + HRESULT ( __stdcall *Clone )( + IEnumSTATPROPSETSTG * This, + IEnumSTATPROPSETSTG **ppenum); + + + } IEnumSTATPROPSETSTGVtbl; + + struct IEnumSTATPROPSETSTG + { + struct IEnumSTATPROPSETSTGVtbl *lpVtbl; + }; +# 1108 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 + HRESULT __stdcall IEnumSTATPROPSETSTG_RemoteNext_Proxy( + IEnumSTATPROPSETSTG * This, + ULONG celt, + STATPROPSETSTG *rgelt, + ULONG *pceltFetched); + + +void __stdcall IEnumSTATPROPSETSTG_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 1129 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 +typedef IPropertyStorage *LPPROPERTYSTORAGE; + + + + + + + +#pragma warning(pop) + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_propidlbase_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_propidlbase_0000_0004_v0_0_s_ifspec; + + + +unsigned long __stdcall BSTR_UserSize( unsigned long *, unsigned long , BSTR * ); +unsigned char * __stdcall BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * ); +unsigned char * __stdcall BSTR_UserUnmarshal( unsigned long *, unsigned char *, BSTR * ); +void __stdcall BSTR_UserFree( unsigned long *, BSTR * ); + +unsigned long __stdcall LPSAFEARRAY_UserSize( unsigned long *, unsigned long , LPSAFEARRAY * ); +unsigned char * __stdcall LPSAFEARRAY_UserMarshal( unsigned long *, unsigned char *, LPSAFEARRAY * ); +unsigned char * __stdcall LPSAFEARRAY_UserUnmarshal( unsigned long *, unsigned char *, LPSAFEARRAY * ); +void __stdcall LPSAFEARRAY_UserFree( unsigned long *, LPSAFEARRAY * ); + +unsigned long __stdcall BSTR_UserSize64( unsigned long *, unsigned long , BSTR * ); +unsigned char * __stdcall BSTR_UserMarshal64( unsigned long *, unsigned char *, BSTR * ); +unsigned char * __stdcall BSTR_UserUnmarshal64( unsigned long *, unsigned char *, BSTR * ); +void __stdcall BSTR_UserFree64( unsigned long *, BSTR * ); + +unsigned long __stdcall LPSAFEARRAY_UserSize64( unsigned long *, unsigned long , LPSAFEARRAY * ); +unsigned char * __stdcall LPSAFEARRAY_UserMarshal64( unsigned long *, unsigned char *, LPSAFEARRAY * ); +unsigned char * __stdcall LPSAFEARRAY_UserUnmarshal64( unsigned long *, unsigned char *, LPSAFEARRAY * ); +void __stdcall LPSAFEARRAY_UserFree64( unsigned long *, LPSAFEARRAY * ); + + HRESULT __stdcall IEnumSTATPROPSTG_Next_Proxy( + IEnumSTATPROPSTG * This, + ULONG celt, + + STATPROPSTG *rgelt, + + ULONG *pceltFetched); + + + HRESULT __stdcall IEnumSTATPROPSTG_Next_Stub( + IEnumSTATPROPSTG * This, + ULONG celt, + STATPROPSTG *rgelt, + ULONG *pceltFetched); + + HRESULT __stdcall IEnumSTATPROPSETSTG_Next_Proxy( + IEnumSTATPROPSETSTG * This, + ULONG celt, + + STATPROPSETSTG *rgelt, + + ULONG *pceltFetched); + + + HRESULT __stdcall IEnumSTATPROPSETSTG_Next_Stub( + IEnumSTATPROPSETSTG * This, + ULONG celt, + STATPROPSETSTG *rgelt, + ULONG *pceltFetched); +# 25 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\coml2api.h" 2 3 +# 66 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\coml2api.h" 3 +typedef DWORD STGFMT; +# 86 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\coml2api.h" 3 +extern __declspec(dllimport) HRESULT __stdcall +StgCreateDocfile( + const WCHAR* pwcsName, + DWORD grfMode, + DWORD reserved, + IStorage** ppstgOpen + ); + + + +extern __declspec(dllimport) HRESULT __stdcall +StgCreateDocfileOnILockBytes( + ILockBytes* plkbyt, + DWORD grfMode, + DWORD reserved, + IStorage** ppstgOpen + ); + + + +extern __declspec(dllimport) HRESULT __stdcall +StgOpenStorage( + const WCHAR* pwcsName, + IStorage* pstgPriority, + DWORD grfMode, + SNB snbExclude, + DWORD reserved, + IStorage** ppstgOpen + ); + + + +extern __declspec(dllimport) HRESULT __stdcall +StgOpenStorageOnILockBytes( + ILockBytes* plkbyt, + IStorage* pstgPriority, + DWORD grfMode, + SNB snbExclude, + DWORD reserved, + IStorage** ppstgOpen + ); + + + +extern __declspec(dllimport) HRESULT __stdcall +StgIsStorageFile( + const WCHAR* pwcsName + ); + + + +extern __declspec(dllimport) HRESULT __stdcall +StgIsStorageILockBytes( + ILockBytes* plkbyt + ); + + + +extern __declspec(dllimport) HRESULT __stdcall +StgSetTimes( + const WCHAR* lpszName, + const FILETIME* pctime, + const FILETIME* patime, + const FILETIME* pmtime + ); +# 161 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\coml2api.h" 3 +typedef struct tagSTGOPTIONS +{ + USHORT usVersion; + USHORT reserved; + ULONG ulSectorSize; + + const WCHAR *pwcsTemplateFile; + +} STGOPTIONS; + + + +extern __declspec(dllimport) HRESULT __stdcall +StgCreateStorageEx( + const WCHAR* pwcsName, + DWORD grfMode, + DWORD stgfmt, + DWORD grfAttrs, + STGOPTIONS* pStgOptions, + PSECURITY_DESCRIPTOR pSecurityDescriptor, + const IID * const riid, + void** ppObjectOpen + ); + + + +extern __declspec(dllimport) HRESULT __stdcall +StgOpenStorageEx( + const WCHAR* pwcsName, + DWORD grfMode, + DWORD stgfmt, + DWORD grfAttrs, + STGOPTIONS* pStgOptions, + PSECURITY_DESCRIPTOR pSecurityDescriptor, + const IID * const riid, + void** ppObjectOpen + ); + + + + + +extern __declspec(dllimport) HRESULT __stdcall +StgCreatePropStg( + IUnknown* pUnk, + const IID * const fmtid, + const CLSID* pclsid, + DWORD grfFlags, + DWORD dwReserved, + IPropertyStorage** ppPropStg + ); + + + +extern __declspec(dllimport) HRESULT __stdcall +StgOpenPropStg( + IUnknown* pUnk, + const IID * const fmtid, + DWORD grfFlags, + DWORD dwReserved, + IPropertyStorage** ppPropStg + ); + + + +extern __declspec(dllimport) HRESULT __stdcall +StgCreatePropSetStg( + IStorage* pStorage, + DWORD dwReserved, + IPropertySetStorage** ppPropSetStg + ); + + + + + +extern __declspec(dllimport) HRESULT __stdcall +FmtIdToPropStgName( + const FMTID* pfmtid, + LPOLESTR oszName + ); + + + +extern __declspec(dllimport) HRESULT __stdcall +PropStgNameToFmtId( + const LPOLESTR oszName, + FMTID* pfmtid + ); + + + + + +extern __declspec(dllimport) HRESULT __stdcall +ReadClassStg( + LPSTORAGE pStg, + CLSID * pclsid + ); + +extern __declspec(dllimport) HRESULT __stdcall +WriteClassStg( + LPSTORAGE pStg, + const IID * const rclsid + ); + +extern __declspec(dllimport) HRESULT __stdcall +ReadClassStm( + LPSTREAM pStm, + CLSID * pclsid + ); + +extern __declspec(dllimport) HRESULT __stdcall +WriteClassStm( + LPSTREAM pStm, + const IID * const rclsid + ); + + + + +extern __declspec(dllimport) HRESULT __stdcall +GetHGlobalFromILockBytes( + LPLOCKBYTES plkbyt, + HGLOBAL * phglobal + ); + + + +extern __declspec(dllimport) HRESULT __stdcall +CreateILockBytesOnHGlobal( + HGLOBAL hGlobal, + BOOL fDeleteOnRelease, + LPLOCKBYTES * pplkbyt + ); + + + +extern __declspec(dllimport) HRESULT __stdcall +GetConvertStg( + LPSTORAGE pStg + ); +# 29 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 2 3 + + +typedef enum tagCOINIT +{ + COINIT_APARTMENTTHREADED = 0x2, + + + + COINIT_MULTITHREADED = COINITBASE_MULTITHREADED, + COINIT_DISABLE_OLE1DDE = 0x4, + COINIT_SPEED_OVER_MEMORY = 0x8, + +} COINIT; +# 76 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 3 +extern __declspec(dllimport) DWORD __stdcall CoBuildVersion( void ); + + + + extern __declspec(dllimport) HRESULT __stdcall CoInitialize( LPVOID pvReserved); + + + extern __declspec(dllimport) HRESULT __stdcall CoRegisterMallocSpy( LPMALLOCSPY pMallocSpy); + extern __declspec(dllimport) HRESULT __stdcall CoRevokeMallocSpy(void); +extern __declspec(dllimport) HRESULT __stdcall CoCreateStandardMalloc( DWORD memctx, IMalloc * * ppMalloc); + + + + + extern __declspec(dllimport) HRESULT __stdcall CoRegisterInitializeSpy( IInitializeSpy *pSpy, ULARGE_INTEGER *puliCookie); + extern __declspec(dllimport) HRESULT __stdcall CoRevokeInitializeSpy( ULARGE_INTEGER uliCookie); + + + +typedef enum tagCOMSD +{ + SD_LAUNCHPERMISSIONS = 0, + SD_ACCESSPERMISSIONS = 1, + SD_LAUNCHRESTRICTIONS = 2, + SD_ACCESSRESTRICTIONS = 3 + +} COMSD; + extern __declspec(dllimport) HRESULT __stdcall CoGetSystemSecurityPermissions(COMSD comSDType, PSECURITY_DESCRIPTOR *ppSD); + + + + + +extern __declspec(dllimport) HINSTANCE __stdcall CoLoadLibrary( LPOLESTR lpszLibName, BOOL bAutoFree); +extern __declspec(dllimport) void __stdcall CoFreeLibrary( HINSTANCE hInst); +extern __declspec(dllimport) void __stdcall CoFreeAllLibraries(void); + + + + + + extern __declspec(dllimport) HRESULT __stdcall CoGetInstanceFromFile( + COSERVERINFO * pServerInfo, + CLSID * pClsid, + IUnknown * punkOuter, + DWORD dwClsCtx, + DWORD grfMode, + OLECHAR * pwszName, + DWORD dwCount, + MULTI_QI * pResults ); + + + extern __declspec(dllimport) HRESULT __stdcall CoGetInstanceFromIStorage( + COSERVERINFO * pServerInfo, + CLSID * pClsid, + IUnknown * punkOuter, + DWORD dwClsCtx, + struct IStorage * pstg, + DWORD dwCount, + MULTI_QI * pResults ); + + + + + + + +extern __declspec(dllimport) HRESULT __stdcall CoAllowSetForegroundWindow( IUnknown *pUnk, LPVOID lpvReserved); + + +extern __declspec(dllimport) HRESULT __stdcall DcomChannelSetHResult( LPVOID pvReserved, ULONG* pulReserved, HRESULT appsHR); + + + + +extern __declspec(dllimport) BOOL __stdcall CoIsOle1Class( const IID * const rclsid); + extern __declspec(dllimport) HRESULT __stdcall CLSIDFromProgIDEx ( LPCOLESTR lpszProgID, LPCLSID lpclsid); + +extern __declspec(dllimport) BOOL __stdcall CoFileTimeToDosDateTime( + FILETIME * lpFileTime, LPWORD lpDosDate, LPWORD lpDosTime); +extern __declspec(dllimport) BOOL __stdcall CoDosDateTimeToFileTime( + WORD nDosDate, WORD nDosTime, FILETIME * lpFileTime); +extern __declspec(dllimport) HRESULT __stdcall CoFileTimeNow( FILETIME * lpFileTime ); + + extern __declspec(dllimport) HRESULT __stdcall CoRegisterMessageFilter( LPMESSAGEFILTER lpMessageFilter, + LPMESSAGEFILTER * lplpMessageFilter ); + + + +extern __declspec(dllimport) HRESULT __stdcall CoRegisterChannelHook( const GUID * const ExtensionUuid, IChannelHook *pChannelHook ); + + + + + + extern __declspec(dllimport) HRESULT __stdcall CoTreatAsClass( const IID * const clsidOld, const IID * const clsidNew); + + + + +extern __declspec(dllimport) HRESULT __stdcall CreateDataAdviseHolder( LPDATAADVISEHOLDER * ppDAHolder); + +extern __declspec(dllimport) HRESULT __stdcall CreateDataCache( LPUNKNOWN pUnkOuter, const IID * const rclsid, + const IID * const iid, LPVOID * ppv); + + + + + + extern __declspec(dllimport) HRESULT __stdcall StgOpenAsyncDocfileOnIFillLockBytes( IFillLockBytes *pflb, + DWORD grfMode, + DWORD asyncFlags, + IStorage** ppstgOpen); + + extern __declspec(dllimport) HRESULT __stdcall StgGetIFillLockBytesOnILockBytes( ILockBytes *pilb, + IFillLockBytes** ppflb); + + extern __declspec(dllimport) HRESULT __stdcall StgGetIFillLockBytesOnFile( OLECHAR const *pwcsName, + IFillLockBytes** ppflb); + + extern __declspec(dllimport) HRESULT __stdcall StgOpenLayoutDocfile( OLECHAR const *pwcsDfName, + DWORD grfMode, + DWORD reserved, + IStorage** ppstgOpen); + + + + + + + +extern __declspec(dllimport) HRESULT __stdcall CoInstall( + IBindCtx * pbc, + DWORD dwFlags, + uCLSSPEC * pClassSpec, + QUERYCONTEXT * pQuery, + LPWSTR pszCodeBase); +# 224 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 3 + extern __declspec(dllimport) HRESULT __stdcall BindMoniker( LPMONIKER pmk, DWORD grfOpt, const IID * const iidResult, LPVOID * ppvResult); + + extern __declspec(dllimport) HRESULT __stdcall CoGetObject( LPCWSTR pszName, BIND_OPTS *pBindOptions, const IID * const riid, void **ppv); + extern __declspec(dllimport) HRESULT __stdcall MkParseDisplayName( LPBC pbc, LPCOLESTR szUserName, + ULONG * pchEaten, LPMONIKER * ppmk); + extern __declspec(dllimport) HRESULT __stdcall MonikerRelativePathTo( LPMONIKER pmkSrc, LPMONIKER pmkDest, LPMONIKER + * ppmkRelPath, BOOL dwReserved); + extern __declspec(dllimport) HRESULT __stdcall MonikerCommonPrefixWith( LPMONIKER pmkThis, LPMONIKER pmkOther, + LPMONIKER * ppmkCommon); + extern __declspec(dllimport) HRESULT __stdcall CreateBindCtx( DWORD reserved, LPBC * ppbc); + extern __declspec(dllimport) HRESULT __stdcall CreateGenericComposite( LPMONIKER pmkFirst, LPMONIKER pmkRest, + LPMONIKER * ppmkComposite); + extern __declspec(dllimport) HRESULT __stdcall GetClassFile ( LPCOLESTR szFilename, CLSID * pclsid); + + extern __declspec(dllimport) HRESULT __stdcall CreateClassMoniker( const IID * const rclsid, LPMONIKER * ppmk); + + extern __declspec(dllimport) HRESULT __stdcall CreateFileMoniker( LPCOLESTR lpszPathName, LPMONIKER * ppmk); + + extern __declspec(dllimport) HRESULT __stdcall CreateItemMoniker( LPCOLESTR lpszDelim, LPCOLESTR lpszItem, + LPMONIKER * ppmk); + extern __declspec(dllimport) HRESULT __stdcall CreateAntiMoniker( LPMONIKER * ppmk); + extern __declspec(dllimport) HRESULT __stdcall CreatePointerMoniker( LPUNKNOWN punk, LPMONIKER * ppmk); + extern __declspec(dllimport) HRESULT __stdcall CreateObjrefMoniker( LPUNKNOWN punk, LPMONIKER * ppmk); + + + + + + + + extern __declspec(dllimport) HRESULT __stdcall GetRunningObjectTable( DWORD reserved, LPRUNNINGOBJECTTABLE * pprot); + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 1 3 +# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +typedef struct IPersistMoniker IPersistMoniker; + + + + + + +typedef struct IMonikerProp IMonikerProp; + + + + + + +typedef struct IBindProtocol IBindProtocol; + + + + + + +typedef struct IBinding IBinding; + + + + + + +typedef struct IBindStatusCallback IBindStatusCallback; + + + + + + +typedef struct IBindStatusCallbackEx IBindStatusCallbackEx; + + + + + + +typedef struct IAuthenticate IAuthenticate; + + + + + + +typedef struct IAuthenticateEx IAuthenticateEx; + + + + + + +typedef struct IHttpNegotiate IHttpNegotiate; + + + + + + +typedef struct IHttpNegotiate2 IHttpNegotiate2; + + + + + + +typedef struct IHttpNegotiate3 IHttpNegotiate3; + + + + + + +typedef struct IWinInetFileStream IWinInetFileStream; + + + + + + +typedef struct IWindowForBindingUI IWindowForBindingUI; + + + + + + +typedef struct ICodeInstall ICodeInstall; + + + + + + +typedef struct IUri IUri; + + + + + + +typedef struct IUriContainer IUriContainer; + + + + + + +typedef struct IUriBuilder IUriBuilder; + + + + + + +typedef struct IUriBuilderFactory IUriBuilderFactory; + + + + + + +typedef struct IWinInetInfo IWinInetInfo; + + + + + + +typedef struct IHttpSecurity IHttpSecurity; + + + + + + +typedef struct IWinInetHttpInfo IWinInetHttpInfo; + + + + + + +typedef struct IWinInetHttpTimeouts IWinInetHttpTimeouts; + + + + + + +typedef struct IWinInetCacheHints IWinInetCacheHints; + + + + + + +typedef struct IWinInetCacheHints2 IWinInetCacheHints2; + + + + + + +typedef struct IBindHost IBindHost; + + + + + + +typedef struct IInternet IInternet; + + + + + + +typedef struct IInternetBindInfo IInternetBindInfo; + + + + + + +typedef struct IInternetBindInfoEx IInternetBindInfoEx; + + + + + + +typedef struct IInternetProtocolRoot IInternetProtocolRoot; + + + + + + +typedef struct IInternetProtocol IInternetProtocol; + + + + + + +typedef struct IInternetProtocolEx IInternetProtocolEx; + + + + + + +typedef struct IInternetProtocolSink IInternetProtocolSink; + + + + + + +typedef struct IInternetProtocolSinkStackable IInternetProtocolSinkStackable; + + + + + + +typedef struct IInternetSession IInternetSession; + + + + + + +typedef struct IInternetThreadSwitch IInternetThreadSwitch; + + + + + + +typedef struct IInternetPriority IInternetPriority; + + + + + + +typedef struct IInternetProtocolInfo IInternetProtocolInfo; + + + + + + +typedef struct IInternetSecurityMgrSite IInternetSecurityMgrSite; + + + + + + +typedef struct IInternetSecurityManager IInternetSecurityManager; + + + + + + +typedef struct IInternetSecurityManagerEx IInternetSecurityManagerEx; + + + + + + +typedef struct IInternetSecurityManagerEx2 IInternetSecurityManagerEx2; + + + + + + +typedef struct IZoneIdentifier IZoneIdentifier; + + + + + + +typedef struct IZoneIdentifier2 IZoneIdentifier2; + + + + + + +typedef struct IInternetHostSecurityManager IInternetHostSecurityManager; + + + + + + +typedef struct IInternetZoneManager IInternetZoneManager; + + + + + + +typedef struct IInternetZoneManagerEx IInternetZoneManagerEx; + + + + + + +typedef struct IInternetZoneManagerEx2 IInternetZoneManagerEx2; + + + + + + +typedef struct ISoftDistExt ISoftDistExt; + + + + + + +typedef struct ICatalogFileInfo ICatalogFileInfo; + + + + + + +typedef struct IDataFilter IDataFilter; + + + + + + +typedef struct IEncodingFilterFactory IEncodingFilterFactory; + + + + + + +typedef struct IWrappedProtocol IWrappedProtocol; + + + + + + +typedef struct IGetBindHandle IGetBindHandle; + + + + + + +typedef struct IBindCallbackRedirect IBindCallbackRedirect; + + + + + + +typedef struct IBindHttpSecurity IBindHttpSecurity; + + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 1 3 +# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef struct IOleAdviseHolder IOleAdviseHolder; + + + + + + +typedef struct IOleCache IOleCache; + + + + + + +typedef struct IOleCache2 IOleCache2; + + + + + + +typedef struct IOleCacheControl IOleCacheControl; + + + + + + +typedef struct IParseDisplayName IParseDisplayName; + + + + + + +typedef struct IOleContainer IOleContainer; + + + + + + +typedef struct IOleClientSite IOleClientSite; + + + + + + +typedef struct IOleObject IOleObject; + + + + + + +typedef struct IOleWindow IOleWindow; + + + + + + +typedef struct IOleLink IOleLink; + + + + + + +typedef struct IOleItemContainer IOleItemContainer; + + + + + + +typedef struct IOleInPlaceUIWindow IOleInPlaceUIWindow; + + + + + + +typedef struct IOleInPlaceActiveObject IOleInPlaceActiveObject; + + + + + + +typedef struct IOleInPlaceFrame IOleInPlaceFrame; + + + + + + +typedef struct IOleInPlaceObject IOleInPlaceObject; + + + + + + +typedef struct IOleInPlaceSite IOleInPlaceSite; + + + + + + +typedef struct IContinue IContinue; + + + + + + +typedef struct IViewObject IViewObject; + + + + + + +typedef struct IViewObject2 IViewObject2; + + + + + + +typedef struct IDropSource IDropSource; + + + + + + +typedef struct IDropTarget IDropTarget; + + + + + + +typedef struct IDropSourceNotify IDropSourceNotify; + + + + + + +typedef struct IEnterpriseDropTarget IEnterpriseDropTarget; + + + + + + +typedef struct IEnumOLEVERB IEnumOLEVERB; +# 240 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0000_v0_0_s_ifspec; + + + + + + + +typedef IOleAdviseHolder *LPOLEADVISEHOLDER; + + +extern const IID IID_IOleAdviseHolder; +# 295 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleAdviseHolderVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleAdviseHolder * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleAdviseHolder * This); + + + ULONG ( __stdcall *Release )( + IOleAdviseHolder * This); + + + HRESULT ( __stdcall *Advise )( + IOleAdviseHolder * This, + + IAdviseSink *pAdvise, + + DWORD *pdwConnection); + + + HRESULT ( __stdcall *Unadvise )( + IOleAdviseHolder * This, + DWORD dwConnection); + + + HRESULT ( __stdcall *EnumAdvise )( + IOleAdviseHolder * This, + + IEnumSTATDATA **ppenumAdvise); + + + HRESULT ( __stdcall *SendOnRename )( + IOleAdviseHolder * This, + + IMoniker *pmk); + + + HRESULT ( __stdcall *SendOnSave )( + IOleAdviseHolder * This); + + + HRESULT ( __stdcall *SendOnClose )( + IOleAdviseHolder * This); + + + } IOleAdviseHolderVtbl; + + struct IOleAdviseHolder + { + struct IOleAdviseHolderVtbl *lpVtbl; + }; +# 408 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0001_v0_0_s_ifspec; + + + + + + + +typedef IOleCache *LPOLECACHE; + + +extern const IID IID_IOleCache; +# 452 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleCacheVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleCache * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleCache * This); + + + ULONG ( __stdcall *Release )( + IOleCache * This); + + + HRESULT ( __stdcall *Cache )( + IOleCache * This, + FORMATETC *pformatetc, + DWORD advf, + DWORD *pdwConnection); + + + HRESULT ( __stdcall *Uncache )( + IOleCache * This, + DWORD dwConnection); + + + HRESULT ( __stdcall *EnumCache )( + IOleCache * This, + IEnumSTATDATA **ppenumSTATDATA); + + + HRESULT ( __stdcall *InitCache )( + IOleCache * This, + IDataObject *pDataObject); + + + HRESULT ( __stdcall *SetData )( + IOleCache * This, + FORMATETC *pformatetc, + STGMEDIUM *pmedium, + BOOL fRelease); + + + } IOleCacheVtbl; + + struct IOleCache + { + struct IOleCacheVtbl *lpVtbl; + }; +# 555 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IOleCache2 *LPOLECACHE2; +# 575 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef +enum tagDISCARDCACHE + { + DISCARDCACHE_SAVEIFDIRTY = 0, + DISCARDCACHE_NOSAVE = 1 + } DISCARDCACHE; + + +extern const IID IID_IOleCache2; +# 607 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleCache2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleCache2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleCache2 * This); + + + ULONG ( __stdcall *Release )( + IOleCache2 * This); + + + HRESULT ( __stdcall *Cache )( + IOleCache2 * This, + FORMATETC *pformatetc, + DWORD advf, + DWORD *pdwConnection); + + + HRESULT ( __stdcall *Uncache )( + IOleCache2 * This, + DWORD dwConnection); + + + HRESULT ( __stdcall *EnumCache )( + IOleCache2 * This, + IEnumSTATDATA **ppenumSTATDATA); + + + HRESULT ( __stdcall *InitCache )( + IOleCache2 * This, + IDataObject *pDataObject); + + + HRESULT ( __stdcall *SetData )( + IOleCache2 * This, + FORMATETC *pformatetc, + STGMEDIUM *pmedium, + BOOL fRelease); + + + HRESULT ( __stdcall *UpdateCache )( + IOleCache2 * This, + + LPDATAOBJECT pDataObject, + + DWORD grfUpdf, + + LPVOID pReserved); + + + HRESULT ( __stdcall *DiscardCache )( + IOleCache2 * This, + DWORD dwDiscardOptions); + + + } IOleCache2Vtbl; + + struct IOleCache2 + { + struct IOleCache2Vtbl *lpVtbl; + }; +# 722 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + HRESULT __stdcall IOleCache2_RemoteUpdateCache_Proxy( + IOleCache2 * This, + LPDATAOBJECT pDataObject, + DWORD grfUpdf, + LONG_PTR pReserved); + + +void __stdcall IOleCache2_RemoteUpdateCache_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 749 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0003_v0_0_s_ifspec; + + + + + + + +typedef IOleCacheControl *LPOLECACHECONTROL; + + +extern const IID IID_IOleCacheControl; +# 779 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleCacheControlVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleCacheControl * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleCacheControl * This); + + + ULONG ( __stdcall *Release )( + IOleCacheControl * This); + + + HRESULT ( __stdcall *OnRun )( + IOleCacheControl * This, + LPDATAOBJECT pDataObject); + + + HRESULT ( __stdcall *OnStop )( + IOleCacheControl * This); + + + } IOleCacheControlVtbl; + + struct IOleCacheControl + { + struct IOleCacheControlVtbl *lpVtbl; + }; +# 853 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IParseDisplayName *LPPARSEDISPLAYNAME; + + +extern const IID IID_IParseDisplayName; +# 875 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IParseDisplayNameVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IParseDisplayName * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IParseDisplayName * This); + + + ULONG ( __stdcall *Release )( + IParseDisplayName * This); + + + HRESULT ( __stdcall *ParseDisplayName )( + IParseDisplayName * This, + IBindCtx *pbc, + LPOLESTR pszDisplayName, + ULONG *pchEaten, + IMoniker **ppmkOut); + + + } IParseDisplayNameVtbl; + + struct IParseDisplayName + { + struct IParseDisplayNameVtbl *lpVtbl; + }; +# 945 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IOleContainer *LPOLECONTAINER; + + +extern const IID IID_IOleContainer; +# 968 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleContainerVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleContainer * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleContainer * This); + + + ULONG ( __stdcall *Release )( + IOleContainer * This); + + + HRESULT ( __stdcall *ParseDisplayName )( + IOleContainer * This, + IBindCtx *pbc, + LPOLESTR pszDisplayName, + ULONG *pchEaten, + IMoniker **ppmkOut); + + + HRESULT ( __stdcall *EnumObjects )( + IOleContainer * This, + DWORD grfFlags, + IEnumUnknown **ppenum); + + + HRESULT ( __stdcall *LockContainer )( + IOleContainer * This, + BOOL fLock); + + + } IOleContainerVtbl; + + struct IOleContainer + { + struct IOleContainerVtbl *lpVtbl; + }; +# 1056 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IOleClientSite *LPOLECLIENTSITE; + + +extern const IID IID_IOleClientSite; +# 1089 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleClientSiteVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleClientSite * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleClientSite * This); + + + ULONG ( __stdcall *Release )( + IOleClientSite * This); + + + HRESULT ( __stdcall *SaveObject )( + IOleClientSite * This); + + + HRESULT ( __stdcall *GetMoniker )( + IOleClientSite * This, + DWORD dwAssign, + DWORD dwWhichMoniker, + IMoniker **ppmk); + + + HRESULT ( __stdcall *GetContainer )( + IOleClientSite * This, + IOleContainer **ppContainer); + + + HRESULT ( __stdcall *ShowObject )( + IOleClientSite * This); + + + HRESULT ( __stdcall *OnShowWindow )( + IOleClientSite * This, + BOOL fShow); + + + HRESULT ( __stdcall *RequestNewObjectLayout )( + IOleClientSite * This); + + + } IOleClientSiteVtbl; + + struct IOleClientSite + { + struct IOleClientSiteVtbl *lpVtbl; + }; +# 1195 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IOleObject *LPOLEOBJECT; + +typedef +enum tagOLEGETMONIKER + { + OLEGETMONIKER_ONLYIFTHERE = 1, + OLEGETMONIKER_FORCEASSIGN = 2, + OLEGETMONIKER_UNASSIGN = 3, + OLEGETMONIKER_TEMPFORUSER = 4 + } OLEGETMONIKER; + +typedef +enum tagOLEWHICHMK + { + OLEWHICHMK_CONTAINER = 1, + OLEWHICHMK_OBJREL = 2, + OLEWHICHMK_OBJFULL = 3 + } OLEWHICHMK; + +typedef +enum tagUSERCLASSTYPE + { + USERCLASSTYPE_FULL = 1, + USERCLASSTYPE_SHORT = 2, + USERCLASSTYPE_APPNAME = 3 + } USERCLASSTYPE; + +typedef +enum tagOLEMISC + { + OLEMISC_RECOMPOSEONRESIZE = 0x1, + OLEMISC_ONLYICONIC = 0x2, + OLEMISC_INSERTNOTREPLACE = 0x4, + OLEMISC_STATIC = 0x8, + OLEMISC_CANTLINKINSIDE = 0x10, + OLEMISC_CANLINKBYOLE1 = 0x20, + OLEMISC_ISLINKOBJECT = 0x40, + OLEMISC_INSIDEOUT = 0x80, + OLEMISC_ACTIVATEWHENVISIBLE = 0x100, + OLEMISC_RENDERINGISDEVICEINDEPENDENT = 0x200, + OLEMISC_INVISIBLEATRUNTIME = 0x400, + OLEMISC_ALWAYSRUN = 0x800, + OLEMISC_ACTSLIKEBUTTON = 0x1000, + OLEMISC_ACTSLIKELABEL = 0x2000, + OLEMISC_NOUIACTIVATE = 0x4000, + OLEMISC_ALIGNABLE = 0x8000, + OLEMISC_SIMPLEFRAME = 0x10000, + OLEMISC_SETCLIENTSITEFIRST = 0x20000, + OLEMISC_IMEMODE = 0x40000, + OLEMISC_IGNOREACTIVATEWHENVISIBLE = 0x80000, + OLEMISC_WANTSTOMENUMERGE = 0x100000, + OLEMISC_SUPPORTSMULTILEVELUNDO = 0x200000 + } OLEMISC; + +typedef +enum tagOLECLOSE + { + OLECLOSE_SAVEIFDIRTY = 0, + OLECLOSE_NOSAVE = 1, + OLECLOSE_PROMPTSAVE = 2 + } OLECLOSE; + + +extern const IID IID_IOleObject; +# 1349 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleObjectVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleObject * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleObject * This); + + + ULONG ( __stdcall *Release )( + IOleObject * This); + + + HRESULT ( __stdcall *SetClientSite )( + IOleObject * This, + IOleClientSite *pClientSite); + + + HRESULT ( __stdcall *GetClientSite )( + IOleObject * This, + IOleClientSite **ppClientSite); + + + HRESULT ( __stdcall *SetHostNames )( + IOleObject * This, + LPCOLESTR szContainerApp, + LPCOLESTR szContainerObj); + + + HRESULT ( __stdcall *Close )( + IOleObject * This, + DWORD dwSaveOption); + + + HRESULT ( __stdcall *SetMoniker )( + IOleObject * This, + DWORD dwWhichMoniker, + IMoniker *pmk); + + + HRESULT ( __stdcall *GetMoniker )( + IOleObject * This, + DWORD dwAssign, + DWORD dwWhichMoniker, + IMoniker **ppmk); + + + HRESULT ( __stdcall *InitFromData )( + IOleObject * This, + IDataObject *pDataObject, + BOOL fCreation, + DWORD dwReserved); + + + HRESULT ( __stdcall *GetClipboardData )( + IOleObject * This, + DWORD dwReserved, + IDataObject **ppDataObject); + + + HRESULT ( __stdcall *DoVerb )( + IOleObject * This, + LONG iVerb, + LPMSG lpmsg, + IOleClientSite *pActiveSite, + LONG lindex, + HWND hwndParent, + LPCRECT lprcPosRect); + + + HRESULT ( __stdcall *EnumVerbs )( + IOleObject * This, + IEnumOLEVERB **ppEnumOleVerb); + + + HRESULT ( __stdcall *Update )( + IOleObject * This); + + + HRESULT ( __stdcall *IsUpToDate )( + IOleObject * This); + + + HRESULT ( __stdcall *GetUserClassID )( + IOleObject * This, + CLSID *pClsid); + + + HRESULT ( __stdcall *GetUserType )( + IOleObject * This, + DWORD dwFormOfType, + LPOLESTR *pszUserType); + + + HRESULT ( __stdcall *SetExtent )( + IOleObject * This, + DWORD dwDrawAspect, + SIZEL *psizel); + + + HRESULT ( __stdcall *GetExtent )( + IOleObject * This, + DWORD dwDrawAspect, + SIZEL *psizel); + + + HRESULT ( __stdcall *Advise )( + IOleObject * This, + IAdviseSink *pAdvSink, + DWORD *pdwConnection); + + + HRESULT ( __stdcall *Unadvise )( + IOleObject * This, + DWORD dwConnection); + + + HRESULT ( __stdcall *EnumAdvise )( + IOleObject * This, + IEnumSTATDATA **ppenumAdvise); + + + HRESULT ( __stdcall *GetMiscStatus )( + IOleObject * This, + DWORD dwAspect, + DWORD *pdwStatus); + + + HRESULT ( __stdcall *SetColorScheme )( + IOleObject * This, + LOGPALETTE *pLogpal); + + + } IOleObjectVtbl; + + struct IOleObject + { + struct IOleObjectVtbl *lpVtbl; + }; +# 1591 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef +enum tagOLERENDER + { + OLERENDER_NONE = 0, + OLERENDER_DRAW = 1, + OLERENDER_FORMAT = 2, + OLERENDER_ASIS = 3 + } OLERENDER; + +typedef OLERENDER *LPOLERENDER; + +typedef struct tagOBJECTDESCRIPTOR + { + ULONG cbSize; + CLSID clsid; + DWORD dwDrawAspect; + SIZEL sizel; + POINTL pointl; + DWORD dwStatus; + DWORD dwFullUserTypeName; + DWORD dwSrcOfCopy; + } OBJECTDESCRIPTOR; + +typedef struct tagOBJECTDESCRIPTOR *POBJECTDESCRIPTOR; + +typedef struct tagOBJECTDESCRIPTOR *LPOBJECTDESCRIPTOR; + +typedef struct tagOBJECTDESCRIPTOR LINKSRCDESCRIPTOR; + +typedef struct tagOBJECTDESCRIPTOR *PLINKSRCDESCRIPTOR; + +typedef struct tagOBJECTDESCRIPTOR *LPLINKSRCDESCRIPTOR; + + + +extern RPC_IF_HANDLE IOLETypes_v0_0_c_ifspec; +extern RPC_IF_HANDLE IOLETypes_v0_0_s_ifspec; +# 1636 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IOleWindow *LPOLEWINDOW; + + +extern const IID IID_IOleWindow; +# 1658 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleWindowVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleWindow * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleWindow * This); + + + ULONG ( __stdcall *Release )( + IOleWindow * This); + + + HRESULT ( __stdcall *GetWindow )( + IOleWindow * This, + HWND *phwnd); + + + HRESULT ( __stdcall *ContextSensitiveHelp )( + IOleWindow * This, + BOOL fEnterMode); + + + } IOleWindowVtbl; + + struct IOleWindow + { + struct IOleWindowVtbl *lpVtbl; + }; +# 1733 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IOleLink *LPOLELINK; + +typedef +enum tagOLEUPDATE + { + OLEUPDATE_ALWAYS = 1, + OLEUPDATE_ONCALL = 3 + } OLEUPDATE; + +typedef OLEUPDATE *LPOLEUPDATE; + +typedef OLEUPDATE *POLEUPDATE; + +typedef +enum tagOLELINKBIND + { + OLELINKBIND_EVENIFCLASSDIFF = 1 + } OLELINKBIND; + + +extern const IID IID_IOleLink; +# 1799 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleLinkVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleLink * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleLink * This); + + + ULONG ( __stdcall *Release )( + IOleLink * This); + + + HRESULT ( __stdcall *SetUpdateOptions )( + IOleLink * This, + DWORD dwUpdateOpt); + + + HRESULT ( __stdcall *GetUpdateOptions )( + IOleLink * This, + DWORD *pdwUpdateOpt); + + + HRESULT ( __stdcall *SetSourceMoniker )( + IOleLink * This, + IMoniker *pmk, + const IID * const rclsid); + + + HRESULT ( __stdcall *GetSourceMoniker )( + IOleLink * This, + IMoniker **ppmk); + + + HRESULT ( __stdcall *SetSourceDisplayName )( + IOleLink * This, + LPCOLESTR pszStatusText); + + + HRESULT ( __stdcall *GetSourceDisplayName )( + IOleLink * This, + LPOLESTR *ppszDisplayName); + + + HRESULT ( __stdcall *BindToSource )( + IOleLink * This, + DWORD bindflags, + IBindCtx *pbc); + + + HRESULT ( __stdcall *BindIfRunning )( + IOleLink * This); + + + HRESULT ( __stdcall *GetBoundSource )( + IOleLink * This, + IUnknown **ppunk); + + + HRESULT ( __stdcall *UnbindSource )( + IOleLink * This); + + + HRESULT ( __stdcall *Update )( + IOleLink * This, + IBindCtx *pbc); + + + } IOleLinkVtbl; + + struct IOleLink + { + struct IOleLinkVtbl *lpVtbl; + }; +# 1946 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IOleItemContainer *LPOLEITEMCONTAINER; + +typedef +enum tagBINDSPEED + { + BINDSPEED_INDEFINITE = 1, + BINDSPEED_MODERATE = 2, + BINDSPEED_IMMEDIATE = 3 + } BINDSPEED; + +typedef +enum tagOLECONTF + { + OLECONTF_EMBEDDINGS = 1, + OLECONTF_LINKS = 2, + OLECONTF_OTHERS = 4, + OLECONTF_ONLYUSER = 8, + OLECONTF_ONLYIFRUNNING = 16 + } OLECONTF; + + +extern const IID IID_IOleItemContainer; +# 1996 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleItemContainerVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleItemContainer * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleItemContainer * This); + + + ULONG ( __stdcall *Release )( + IOleItemContainer * This); + + + HRESULT ( __stdcall *ParseDisplayName )( + IOleItemContainer * This, + IBindCtx *pbc, + LPOLESTR pszDisplayName, + ULONG *pchEaten, + IMoniker **ppmkOut); + + + HRESULT ( __stdcall *EnumObjects )( + IOleItemContainer * This, + DWORD grfFlags, + IEnumUnknown **ppenum); + + + HRESULT ( __stdcall *LockContainer )( + IOleItemContainer * This, + BOOL fLock); + + + HRESULT ( __stdcall *GetObjectA )( + IOleItemContainer * This, + LPOLESTR pszItem, + DWORD dwSpeedNeeded, + IBindCtx *pbc, + const IID * const riid, + void **ppvObject); + + + HRESULT ( __stdcall *GetObjectStorage )( + IOleItemContainer * This, + LPOLESTR pszItem, + IBindCtx *pbc, + const IID * const riid, + void **ppvStorage); + + + HRESULT ( __stdcall *IsRunning )( + IOleItemContainer * This, + LPOLESTR pszItem); + + + } IOleItemContainerVtbl; + + struct IOleItemContainer + { + struct IOleItemContainerVtbl *lpVtbl; + }; +# 2116 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IOleInPlaceUIWindow *LPOLEINPLACEUIWINDOW; + +typedef RECT BORDERWIDTHS; + +typedef LPRECT LPBORDERWIDTHS; + +typedef LPCRECT LPCBORDERWIDTHS; + + +extern const IID IID_IOleInPlaceUIWindow; +# 2151 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleInPlaceUIWindowVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleInPlaceUIWindow * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleInPlaceUIWindow * This); + + + ULONG ( __stdcall *Release )( + IOleInPlaceUIWindow * This); + + + HRESULT ( __stdcall *GetWindow )( + IOleInPlaceUIWindow * This, + HWND *phwnd); + + + HRESULT ( __stdcall *ContextSensitiveHelp )( + IOleInPlaceUIWindow * This, + BOOL fEnterMode); + + + HRESULT ( __stdcall *GetBorder )( + IOleInPlaceUIWindow * This, + LPRECT lprectBorder); + + + HRESULT ( __stdcall *RequestBorderSpace )( + IOleInPlaceUIWindow * This, + LPCBORDERWIDTHS pborderwidths); + + + HRESULT ( __stdcall *SetBorderSpace )( + IOleInPlaceUIWindow * This, + LPCBORDERWIDTHS pborderwidths); + + + HRESULT ( __stdcall *SetActiveObject )( + IOleInPlaceUIWindow * This, + IOleInPlaceActiveObject *pActiveObject, + LPCOLESTR pszObjName); + + + } IOleInPlaceUIWindowVtbl; + + struct IOleInPlaceUIWindow + { + struct IOleInPlaceUIWindowVtbl *lpVtbl; + }; +# 2260 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IOleInPlaceActiveObject *LPOLEINPLACEACTIVEOBJECT; + + +extern const IID IID_IOleInPlaceActiveObject; +# 2297 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleInPlaceActiveObjectVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleInPlaceActiveObject * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleInPlaceActiveObject * This); + + + ULONG ( __stdcall *Release )( + IOleInPlaceActiveObject * This); + + + HRESULT ( __stdcall *GetWindow )( + IOleInPlaceActiveObject * This, + HWND *phwnd); + + + HRESULT ( __stdcall *ContextSensitiveHelp )( + IOleInPlaceActiveObject * This, + BOOL fEnterMode); + + + HRESULT ( __stdcall *TranslateAcceleratorA )( + IOleInPlaceActiveObject * This, + + LPMSG lpmsg); + + + HRESULT ( __stdcall *OnFrameWindowActivate )( + IOleInPlaceActiveObject * This, + BOOL fActivate); + + + HRESULT ( __stdcall *OnDocWindowActivate )( + IOleInPlaceActiveObject * This, + BOOL fActivate); + + + HRESULT ( __stdcall *ResizeBorder )( + IOleInPlaceActiveObject * This, + + LPCRECT prcBorder, + + IOleInPlaceUIWindow *pUIWindow, + + BOOL fFrameWindow); + + + HRESULT ( __stdcall *EnableModeless )( + IOleInPlaceActiveObject * This, + BOOL fEnable); + + + } IOleInPlaceActiveObjectVtbl; + + struct IOleInPlaceActiveObject + { + struct IOleInPlaceActiveObjectVtbl *lpVtbl; + }; +# 2409 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + HRESULT __stdcall IOleInPlaceActiveObject_RemoteTranslateAccelerator_Proxy( + IOleInPlaceActiveObject * This); + + +void __stdcall IOleInPlaceActiveObject_RemoteTranslateAccelerator_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IOleInPlaceActiveObject_RemoteResizeBorder_Proxy( + IOleInPlaceActiveObject * This, + LPCRECT prcBorder, + const IID * const riid, + IOleInPlaceUIWindow *pUIWindow, + BOOL fFrameWindow); + + +void __stdcall IOleInPlaceActiveObject_RemoteResizeBorder_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 2445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IOleInPlaceFrame *LPOLEINPLACEFRAME; + +typedef struct tagOIFI + { + UINT cb; + BOOL fMDIApp; + HWND hwndFrame; + HACCEL haccel; + UINT cAccelEntries; + } OLEINPLACEFRAMEINFO; + +typedef struct tagOIFI *LPOLEINPLACEFRAMEINFO; + +typedef struct tagOleMenuGroupWidths + { + LONG width[ 6 ]; + } OLEMENUGROUPWIDTHS; + +typedef struct tagOleMenuGroupWidths *LPOLEMENUGROUPWIDTHS; + +typedef HGLOBAL HOLEMENU; + + +extern const IID IID_IOleInPlaceFrame; +# 2503 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleInPlaceFrameVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleInPlaceFrame * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleInPlaceFrame * This); + + + ULONG ( __stdcall *Release )( + IOleInPlaceFrame * This); + + + HRESULT ( __stdcall *GetWindow )( + IOleInPlaceFrame * This, + HWND *phwnd); + + + HRESULT ( __stdcall *ContextSensitiveHelp )( + IOleInPlaceFrame * This, + BOOL fEnterMode); + + + HRESULT ( __stdcall *GetBorder )( + IOleInPlaceFrame * This, + LPRECT lprectBorder); + + + HRESULT ( __stdcall *RequestBorderSpace )( + IOleInPlaceFrame * This, + LPCBORDERWIDTHS pborderwidths); + + + HRESULT ( __stdcall *SetBorderSpace )( + IOleInPlaceFrame * This, + LPCBORDERWIDTHS pborderwidths); + + + HRESULT ( __stdcall *SetActiveObject )( + IOleInPlaceFrame * This, + IOleInPlaceActiveObject *pActiveObject, + LPCOLESTR pszObjName); + + + HRESULT ( __stdcall *InsertMenus )( + IOleInPlaceFrame * This, + HMENU hmenuShared, + LPOLEMENUGROUPWIDTHS lpMenuWidths); + + + HRESULT ( __stdcall *SetMenu )( + IOleInPlaceFrame * This, + HMENU hmenuShared, + HOLEMENU holemenu, + HWND hwndActiveObject); + + + HRESULT ( __stdcall *RemoveMenus )( + IOleInPlaceFrame * This, + HMENU hmenuShared); + + + HRESULT ( __stdcall *SetStatusText )( + IOleInPlaceFrame * This, + LPCOLESTR pszStatusText); + + + HRESULT ( __stdcall *EnableModeless )( + IOleInPlaceFrame * This, + BOOL fEnable); + + + HRESULT ( __stdcall *TranslateAcceleratorA )( + IOleInPlaceFrame * This, + LPMSG lpmsg, + WORD wID); + + + } IOleInPlaceFrameVtbl; + + struct IOleInPlaceFrame + { + struct IOleInPlaceFrameVtbl *lpVtbl; + }; +# 2665 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IOleInPlaceObject *LPOLEINPLACEOBJECT; + + +extern const IID IID_IOleInPlaceObject; +# 2691 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleInPlaceObjectVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleInPlaceObject * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleInPlaceObject * This); + + + ULONG ( __stdcall *Release )( + IOleInPlaceObject * This); + + + HRESULT ( __stdcall *GetWindow )( + IOleInPlaceObject * This, + HWND *phwnd); + + + HRESULT ( __stdcall *ContextSensitiveHelp )( + IOleInPlaceObject * This, + BOOL fEnterMode); + + + HRESULT ( __stdcall *InPlaceDeactivate )( + IOleInPlaceObject * This); + + + HRESULT ( __stdcall *UIDeactivate )( + IOleInPlaceObject * This); + + + HRESULT ( __stdcall *SetObjectRects )( + IOleInPlaceObject * This, + LPCRECT lprcPosRect, + LPCRECT lprcClipRect); + + + HRESULT ( __stdcall *ReactivateAndUndo )( + IOleInPlaceObject * This); + + + } IOleInPlaceObjectVtbl; + + struct IOleInPlaceObject + { + struct IOleInPlaceObjectVtbl *lpVtbl; + }; +# 2797 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IOleInPlaceSite *LPOLEINPLACESITE; + + +extern const IID IID_IOleInPlaceSite; +# 2841 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IOleInPlaceSiteVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IOleInPlaceSite * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IOleInPlaceSite * This); + + + ULONG ( __stdcall *Release )( + IOleInPlaceSite * This); + + + HRESULT ( __stdcall *GetWindow )( + IOleInPlaceSite * This, + HWND *phwnd); + + + HRESULT ( __stdcall *ContextSensitiveHelp )( + IOleInPlaceSite * This, + BOOL fEnterMode); + + + HRESULT ( __stdcall *CanInPlaceActivate )( + IOleInPlaceSite * This); + + + HRESULT ( __stdcall *OnInPlaceActivate )( + IOleInPlaceSite * This); + + + HRESULT ( __stdcall *OnUIActivate )( + IOleInPlaceSite * This); + + + HRESULT ( __stdcall *GetWindowContext )( + IOleInPlaceSite * This, + IOleInPlaceFrame **ppFrame, + IOleInPlaceUIWindow **ppDoc, + LPRECT lprcPosRect, + LPRECT lprcClipRect, + LPOLEINPLACEFRAMEINFO lpFrameInfo); + + + HRESULT ( __stdcall *Scroll )( + IOleInPlaceSite * This, + SIZE scrollExtant); + + + HRESULT ( __stdcall *OnUIDeactivate )( + IOleInPlaceSite * This, + BOOL fUndoable); + + + HRESULT ( __stdcall *OnInPlaceDeactivate )( + IOleInPlaceSite * This); + + + HRESULT ( __stdcall *DiscardUndoState )( + IOleInPlaceSite * This); + + + HRESULT ( __stdcall *DeactivateAndUndo )( + IOleInPlaceSite * This); + + + HRESULT ( __stdcall *OnPosRectChange )( + IOleInPlaceSite * This, + LPCRECT lprcPosRect); + + + } IOleInPlaceSiteVtbl; + + struct IOleInPlaceSite + { + struct IOleInPlaceSiteVtbl *lpVtbl; + }; +# 2996 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +extern const IID IID_IContinue; +# 3011 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IContinueVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IContinue * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IContinue * This); + + + ULONG ( __stdcall *Release )( + IContinue * This); + + + HRESULT ( __stdcall *FContinue )( + IContinue * This); + + + } IContinueVtbl; + + struct IContinue + { + struct IContinueVtbl *lpVtbl; + }; +# 3077 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IViewObject *LPVIEWOBJECT; + + +extern const IID IID_IViewObject; +# 3156 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IViewObjectVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IViewObject * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IViewObject * This); + + + ULONG ( __stdcall *Release )( + IViewObject * This); + + + HRESULT ( __stdcall *Draw )( + IViewObject * This, + + DWORD dwDrawAspect, + + LONG lindex, + + void *pvAspect, + + DVTARGETDEVICE *ptd, + + HDC hdcTargetDev, + + HDC hdcDraw, + + LPCRECTL lprcBounds, + + LPCRECTL lprcWBounds, + + BOOL ( __stdcall *pfnContinue )( + ULONG_PTR dwContinue), + + ULONG_PTR dwContinue); + + + HRESULT ( __stdcall *GetColorSet )( + IViewObject * This, + + DWORD dwDrawAspect, + + LONG lindex, + + void *pvAspect, + + DVTARGETDEVICE *ptd, + + HDC hicTargetDev, + + LOGPALETTE **ppColorSet); + + + HRESULT ( __stdcall *Freeze )( + IViewObject * This, + + DWORD dwDrawAspect, + + LONG lindex, + + void *pvAspect, + + DWORD *pdwFreeze); + + + HRESULT ( __stdcall *Unfreeze )( + IViewObject * This, + DWORD dwFreeze); + + + HRESULT ( __stdcall *SetAdvise )( + IViewObject * This, + DWORD aspects, + DWORD advf, + IAdviseSink *pAdvSink); + + + HRESULT ( __stdcall *GetAdvise )( + IViewObject * This, + + DWORD *pAspects, + + DWORD *pAdvf, + + IAdviseSink **ppAdvSink); + + + } IViewObjectVtbl; + + struct IViewObject + { + struct IViewObjectVtbl *lpVtbl; + }; +# 3298 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + HRESULT __stdcall IViewObject_RemoteDraw_Proxy( + IViewObject * This, + DWORD dwDrawAspect, + LONG lindex, + ULONG_PTR pvAspect, + DVTARGETDEVICE *ptd, + HDC hdcTargetDev, + HDC hdcDraw, + LPCRECTL lprcBounds, + LPCRECTL lprcWBounds, + IContinue *pContinue); + + +void __stdcall IViewObject_RemoteDraw_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IViewObject_RemoteGetColorSet_Proxy( + IViewObject * This, + DWORD dwDrawAspect, + LONG lindex, + ULONG_PTR pvAspect, + DVTARGETDEVICE *ptd, + ULONG_PTR hicTargetDev, + LOGPALETTE **ppColorSet); + + +void __stdcall IViewObject_RemoteGetColorSet_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IViewObject_RemoteFreeze_Proxy( + IViewObject * This, + DWORD dwDrawAspect, + LONG lindex, + ULONG_PTR pvAspect, + DWORD *pdwFreeze); + + +void __stdcall IViewObject_RemoteFreeze_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IViewObject_RemoteGetAdvise_Proxy( + IViewObject * This, + DWORD *pAspects, + DWORD *pAdvf, + IAdviseSink **ppAdvSink); + + +void __stdcall IViewObject_RemoteGetAdvise_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 3374 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IViewObject2 *LPVIEWOBJECT2; + + +extern const IID IID_IViewObject2; +# 3396 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IViewObject2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IViewObject2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IViewObject2 * This); + + + ULONG ( __stdcall *Release )( + IViewObject2 * This); + + + HRESULT ( __stdcall *Draw )( + IViewObject2 * This, + + DWORD dwDrawAspect, + + LONG lindex, + + void *pvAspect, + + DVTARGETDEVICE *ptd, + + HDC hdcTargetDev, + + HDC hdcDraw, + + LPCRECTL lprcBounds, + + LPCRECTL lprcWBounds, + + BOOL ( __stdcall *pfnContinue )( + ULONG_PTR dwContinue), + + ULONG_PTR dwContinue); + + + HRESULT ( __stdcall *GetColorSet )( + IViewObject2 * This, + + DWORD dwDrawAspect, + + LONG lindex, + + void *pvAspect, + + DVTARGETDEVICE *ptd, + + HDC hicTargetDev, + + LOGPALETTE **ppColorSet); + + + HRESULT ( __stdcall *Freeze )( + IViewObject2 * This, + + DWORD dwDrawAspect, + + LONG lindex, + + void *pvAspect, + + DWORD *pdwFreeze); + + + HRESULT ( __stdcall *Unfreeze )( + IViewObject2 * This, + DWORD dwFreeze); + + + HRESULT ( __stdcall *SetAdvise )( + IViewObject2 * This, + DWORD aspects, + DWORD advf, + IAdviseSink *pAdvSink); + + + HRESULT ( __stdcall *GetAdvise )( + IViewObject2 * This, + + DWORD *pAspects, + + DWORD *pAdvf, + + IAdviseSink **ppAdvSink); + + + HRESULT ( __stdcall *GetExtent )( + IViewObject2 * This, + DWORD dwDrawAspect, + LONG lindex, + DVTARGETDEVICE *ptd, + LPSIZEL lpsizel); + + + } IViewObject2Vtbl; + + struct IViewObject2 + { + struct IViewObject2Vtbl *lpVtbl; + }; +# 3560 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IDropSource *LPDROPSOURCE; + + +extern const IID IID_IDropSource; +# 3586 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IDropSourceVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IDropSource * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IDropSource * This); + + + ULONG ( __stdcall *Release )( + IDropSource * This); + + + HRESULT ( __stdcall *QueryContinueDrag )( + IDropSource * This, + + BOOL fEscapePressed, + + DWORD grfKeyState); + + + HRESULT ( __stdcall *GiveFeedback )( + IDropSource * This, + + DWORD dwEffect); + + + } IDropSourceVtbl; + + struct IDropSource + { + struct IDropSourceVtbl *lpVtbl; + }; +# 3665 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +typedef IDropTarget *LPDROPTARGET; +# 3700 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +extern const IID IID_IDropTarget; +# 3732 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IDropTargetVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IDropTarget * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IDropTarget * This); + + + ULONG ( __stdcall *Release )( + IDropTarget * This); + + + HRESULT ( __stdcall *DragEnter )( + IDropTarget * This, + IDataObject *pDataObj, + DWORD grfKeyState, + POINTL pt, + DWORD *pdwEffect); + + + HRESULT ( __stdcall *DragOver )( + IDropTarget * This, + DWORD grfKeyState, + POINTL pt, + DWORD *pdwEffect); + + + HRESULT ( __stdcall *DragLeave )( + IDropTarget * This); + + + HRESULT ( __stdcall *Drop )( + IDropTarget * This, + IDataObject *pDataObj, + DWORD grfKeyState, + POINTL pt, + DWORD *pdwEffect); + + + } IDropTargetVtbl; + + struct IDropTarget + { + struct IDropTargetVtbl *lpVtbl; + }; +# 3831 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +extern const IID IID_IDropSourceNotify; +# 3850 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IDropSourceNotifyVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IDropSourceNotify * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IDropSourceNotify * This); + + + ULONG ( __stdcall *Release )( + IDropSourceNotify * This); + + + HRESULT ( __stdcall *DragEnterTarget )( + IDropSourceNotify * This, + + HWND hwndTarget); + + + HRESULT ( __stdcall *DragLeaveTarget )( + IDropSourceNotify * This); + + + } IDropSourceNotifyVtbl; + + struct IDropSourceNotify + { + struct IDropSourceNotifyVtbl *lpVtbl; + }; +# 3926 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +extern const IID IID_IEnterpriseDropTarget; +# 3945 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IEnterpriseDropTargetVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IEnterpriseDropTarget * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IEnterpriseDropTarget * This); + + + ULONG ( __stdcall *Release )( + IEnterpriseDropTarget * This); + + + HRESULT ( __stdcall *SetDropSourceEnterpriseId )( + IEnterpriseDropTarget * This, + LPCWSTR identity); + + + HRESULT ( __stdcall *IsEvaluatingEdpPolicy )( + IEnterpriseDropTarget * This, + BOOL *value); + + + } IEnterpriseDropTargetVtbl; + + struct IEnterpriseDropTarget + { + struct IEnterpriseDropTargetVtbl *lpVtbl; + }; +# 4024 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0024_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0024_v0_0_s_ifspec; + + + + + + + +typedef IEnumOLEVERB *LPENUMOLEVERB; + +typedef struct tagOLEVERB + { + LONG lVerb; + LPOLESTR lpszVerbName; + DWORD fuFlags; + DWORD grfAttribs; + } OLEVERB; + +typedef struct tagOLEVERB *LPOLEVERB; + +typedef +enum tagOLEVERBATTRIB + { + OLEVERBATTRIB_NEVERDIRTIES = 1, + OLEVERBATTRIB_ONCONTAINERMENU = 2 + } OLEVERBATTRIB; + + +extern const IID IID_IEnumOLEVERB; +# 4082 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + typedef struct IEnumOLEVERBVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IEnumOLEVERB * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IEnumOLEVERB * This); + + + ULONG ( __stdcall *Release )( + IEnumOLEVERB * This); + + + HRESULT ( __stdcall *Next )( + IEnumOLEVERB * This, + + ULONG celt, + + LPOLEVERB rgelt, + + ULONG *pceltFetched); + + + HRESULT ( __stdcall *Skip )( + IEnumOLEVERB * This, + ULONG celt); + + + HRESULT ( __stdcall *Reset )( + IEnumOLEVERB * This); + + + HRESULT ( __stdcall *Clone )( + IEnumOLEVERB * This, + IEnumOLEVERB **ppenum); + + + } IEnumOLEVERBVtbl; + + struct IEnumOLEVERB + { + struct IEnumOLEVERBVtbl *lpVtbl; + }; +# 4167 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 + HRESULT __stdcall IEnumOLEVERB_RemoteNext_Proxy( + IEnumOLEVERB * This, + ULONG celt, + LPOLEVERB rgelt, + ULONG *pceltFetched); + + +void __stdcall IEnumOLEVERB_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 4191 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 +#pragma warning(pop) + + + +extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0025_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0025_v0_0_s_ifspec; + + + +unsigned long __stdcall CLIPFORMAT_UserSize( unsigned long *, unsigned long , CLIPFORMAT * ); +unsigned char * __stdcall CLIPFORMAT_UserMarshal( unsigned long *, unsigned char *, CLIPFORMAT * ); +unsigned char * __stdcall CLIPFORMAT_UserUnmarshal( unsigned long *, unsigned char *, CLIPFORMAT * ); +void __stdcall CLIPFORMAT_UserFree( unsigned long *, CLIPFORMAT * ); + +unsigned long __stdcall HACCEL_UserSize( unsigned long *, unsigned long , HACCEL * ); +unsigned char * __stdcall HACCEL_UserMarshal( unsigned long *, unsigned char *, HACCEL * ); +unsigned char * __stdcall HACCEL_UserUnmarshal( unsigned long *, unsigned char *, HACCEL * ); +void __stdcall HACCEL_UserFree( unsigned long *, HACCEL * ); + +unsigned long __stdcall HDC_UserSize( unsigned long *, unsigned long , HDC * ); +unsigned char * __stdcall HDC_UserMarshal( unsigned long *, unsigned char *, HDC * ); +unsigned char * __stdcall HDC_UserUnmarshal( unsigned long *, unsigned char *, HDC * ); +void __stdcall HDC_UserFree( unsigned long *, HDC * ); + +unsigned long __stdcall HGLOBAL_UserSize( unsigned long *, unsigned long , HGLOBAL * ); +unsigned char * __stdcall HGLOBAL_UserMarshal( unsigned long *, unsigned char *, HGLOBAL * ); +unsigned char * __stdcall HGLOBAL_UserUnmarshal( unsigned long *, unsigned char *, HGLOBAL * ); +void __stdcall HGLOBAL_UserFree( unsigned long *, HGLOBAL * ); + +unsigned long __stdcall HMENU_UserSize( unsigned long *, unsigned long , HMENU * ); +unsigned char * __stdcall HMENU_UserMarshal( unsigned long *, unsigned char *, HMENU * ); +unsigned char * __stdcall HMENU_UserUnmarshal( unsigned long *, unsigned char *, HMENU * ); +void __stdcall HMENU_UserFree( unsigned long *, HMENU * ); + +unsigned long __stdcall HWND_UserSize( unsigned long *, unsigned long , HWND * ); +unsigned char * __stdcall HWND_UserMarshal( unsigned long *, unsigned char *, HWND * ); +unsigned char * __stdcall HWND_UserUnmarshal( unsigned long *, unsigned char *, HWND * ); +void __stdcall HWND_UserFree( unsigned long *, HWND * ); + +unsigned long __stdcall STGMEDIUM_UserSize( unsigned long *, unsigned long , STGMEDIUM * ); +unsigned char * __stdcall STGMEDIUM_UserMarshal( unsigned long *, unsigned char *, STGMEDIUM * ); +unsigned char * __stdcall STGMEDIUM_UserUnmarshal( unsigned long *, unsigned char *, STGMEDIUM * ); +void __stdcall STGMEDIUM_UserFree( unsigned long *, STGMEDIUM * ); + +unsigned long __stdcall CLIPFORMAT_UserSize64( unsigned long *, unsigned long , CLIPFORMAT * ); +unsigned char * __stdcall CLIPFORMAT_UserMarshal64( unsigned long *, unsigned char *, CLIPFORMAT * ); +unsigned char * __stdcall CLIPFORMAT_UserUnmarshal64( unsigned long *, unsigned char *, CLIPFORMAT * ); +void __stdcall CLIPFORMAT_UserFree64( unsigned long *, CLIPFORMAT * ); + +unsigned long __stdcall HACCEL_UserSize64( unsigned long *, unsigned long , HACCEL * ); +unsigned char * __stdcall HACCEL_UserMarshal64( unsigned long *, unsigned char *, HACCEL * ); +unsigned char * __stdcall HACCEL_UserUnmarshal64( unsigned long *, unsigned char *, HACCEL * ); +void __stdcall HACCEL_UserFree64( unsigned long *, HACCEL * ); + +unsigned long __stdcall HDC_UserSize64( unsigned long *, unsigned long , HDC * ); +unsigned char * __stdcall HDC_UserMarshal64( unsigned long *, unsigned char *, HDC * ); +unsigned char * __stdcall HDC_UserUnmarshal64( unsigned long *, unsigned char *, HDC * ); +void __stdcall HDC_UserFree64( unsigned long *, HDC * ); + +unsigned long __stdcall HGLOBAL_UserSize64( unsigned long *, unsigned long , HGLOBAL * ); +unsigned char * __stdcall HGLOBAL_UserMarshal64( unsigned long *, unsigned char *, HGLOBAL * ); +unsigned char * __stdcall HGLOBAL_UserUnmarshal64( unsigned long *, unsigned char *, HGLOBAL * ); +void __stdcall HGLOBAL_UserFree64( unsigned long *, HGLOBAL * ); + +unsigned long __stdcall HMENU_UserSize64( unsigned long *, unsigned long , HMENU * ); +unsigned char * __stdcall HMENU_UserMarshal64( unsigned long *, unsigned char *, HMENU * ); +unsigned char * __stdcall HMENU_UserUnmarshal64( unsigned long *, unsigned char *, HMENU * ); +void __stdcall HMENU_UserFree64( unsigned long *, HMENU * ); + +unsigned long __stdcall HWND_UserSize64( unsigned long *, unsigned long , HWND * ); +unsigned char * __stdcall HWND_UserMarshal64( unsigned long *, unsigned char *, HWND * ); +unsigned char * __stdcall HWND_UserUnmarshal64( unsigned long *, unsigned char *, HWND * ); +void __stdcall HWND_UserFree64( unsigned long *, HWND * ); + +unsigned long __stdcall STGMEDIUM_UserSize64( unsigned long *, unsigned long , STGMEDIUM * ); +unsigned char * __stdcall STGMEDIUM_UserMarshal64( unsigned long *, unsigned char *, STGMEDIUM * ); +unsigned char * __stdcall STGMEDIUM_UserUnmarshal64( unsigned long *, unsigned char *, STGMEDIUM * ); +void __stdcall STGMEDIUM_UserFree64( unsigned long *, STGMEDIUM * ); + + HRESULT __stdcall IOleCache2_UpdateCache_Proxy( + IOleCache2 * This, + + LPDATAOBJECT pDataObject, + + DWORD grfUpdf, + + LPVOID pReserved); + + + HRESULT __stdcall IOleCache2_UpdateCache_Stub( + IOleCache2 * This, + LPDATAOBJECT pDataObject, + DWORD grfUpdf, + LONG_PTR pReserved); + + HRESULT __stdcall IOleInPlaceActiveObject_TranslateAccelerator_Proxy( + IOleInPlaceActiveObject * This, + + LPMSG lpmsg); + + + HRESULT __stdcall IOleInPlaceActiveObject_TranslateAccelerator_Stub( + IOleInPlaceActiveObject * This); + + HRESULT __stdcall IOleInPlaceActiveObject_ResizeBorder_Proxy( + IOleInPlaceActiveObject * This, + + LPCRECT prcBorder, + + IOleInPlaceUIWindow *pUIWindow, + + BOOL fFrameWindow); + + + HRESULT __stdcall IOleInPlaceActiveObject_ResizeBorder_Stub( + IOleInPlaceActiveObject * This, + LPCRECT prcBorder, + const IID * const riid, + IOleInPlaceUIWindow *pUIWindow, + BOOL fFrameWindow); + + HRESULT __stdcall IViewObject_Draw_Proxy( + IViewObject * This, + + DWORD dwDrawAspect, + + LONG lindex, + + void *pvAspect, + + DVTARGETDEVICE *ptd, + + HDC hdcTargetDev, + + HDC hdcDraw, + + LPCRECTL lprcBounds, + + LPCRECTL lprcWBounds, + + BOOL ( __stdcall *pfnContinue )( + ULONG_PTR dwContinue), + + ULONG_PTR dwContinue); + + + HRESULT __stdcall IViewObject_Draw_Stub( + IViewObject * This, + DWORD dwDrawAspect, + LONG lindex, + ULONG_PTR pvAspect, + DVTARGETDEVICE *ptd, + HDC hdcTargetDev, + HDC hdcDraw, + LPCRECTL lprcBounds, + LPCRECTL lprcWBounds, + IContinue *pContinue); + + HRESULT __stdcall IViewObject_GetColorSet_Proxy( + IViewObject * This, + + DWORD dwDrawAspect, + + LONG lindex, + + void *pvAspect, + + DVTARGETDEVICE *ptd, + + HDC hicTargetDev, + + LOGPALETTE **ppColorSet); + + + HRESULT __stdcall IViewObject_GetColorSet_Stub( + IViewObject * This, + DWORD dwDrawAspect, + LONG lindex, + ULONG_PTR pvAspect, + DVTARGETDEVICE *ptd, + ULONG_PTR hicTargetDev, + LOGPALETTE **ppColorSet); + + HRESULT __stdcall IViewObject_Freeze_Proxy( + IViewObject * This, + + DWORD dwDrawAspect, + + LONG lindex, + + void *pvAspect, + + DWORD *pdwFreeze); + + + HRESULT __stdcall IViewObject_Freeze_Stub( + IViewObject * This, + DWORD dwDrawAspect, + LONG lindex, + ULONG_PTR pvAspect, + DWORD *pdwFreeze); + + HRESULT __stdcall IViewObject_GetAdvise_Proxy( + IViewObject * This, + + DWORD *pAspects, + + DWORD *pAdvf, + + IAdviseSink **ppAdvSink); + + + HRESULT __stdcall IViewObject_GetAdvise_Stub( + IViewObject * This, + DWORD *pAspects, + DWORD *pAdvf, + IAdviseSink **ppAdvSink); + + HRESULT __stdcall IEnumOLEVERB_Next_Proxy( + IEnumOLEVERB * This, + + ULONG celt, + + LPOLEVERB rgelt, + + ULONG *pceltFetched); + + + HRESULT __stdcall IEnumOLEVERB_Next_Stub( + IEnumOLEVERB * This, + ULONG celt, + LPOLEVERB rgelt, + ULONG *pceltFetched); +# 438 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 1 3 +# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 3 +typedef struct IServiceProvider IServiceProvider; +# 79 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 3 +#pragma comment(lib,"uuid.lib") +# 90 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_servprov_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_servprov_0000_0000_v0_0_s_ifspec; + + + + + + + +typedef IServiceProvider *LPSERVICEPROVIDER; +# 136 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 3 +extern const IID IID_IServiceProvider; +# 157 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 3 + typedef struct IServiceProviderVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IServiceProvider * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IServiceProvider * This); + + + ULONG ( __stdcall *Release )( + IServiceProvider * This); + + + HRESULT ( __stdcall *QueryService )( + IServiceProvider * This, + + const GUID * const guidService, + + const IID * const riid, + + void **ppvObject); + + + } IServiceProviderVtbl; + + struct IServiceProvider + { + struct IServiceProviderVtbl *lpVtbl; + }; +# 219 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 3 + HRESULT __stdcall IServiceProvider_RemoteQueryService_Proxy( + IServiceProvider * This, + const GUID * const guidService, + const IID * const riid, + IUnknown **ppvObject); + + +void __stdcall IServiceProvider_RemoteQueryService_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 245 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_servprov_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_servprov_0000_0001_v0_0_s_ifspec; + + + + HRESULT __stdcall IServiceProvider_QueryService_Proxy( + IServiceProvider * This, + + const GUID * const guidService, + + const IID * const riid, + + void **ppvObject); + + + HRESULT __stdcall IServiceProvider_QueryService_Stub( + IServiceProvider * This, + const GUID * const guidService, + const IID * const riid, + IUnknown **ppvObject); +# 439 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 1 3 +# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +typedef struct IXMLDOMImplementation IXMLDOMImplementation; + + + + + + +typedef struct IXMLDOMNode IXMLDOMNode; + + + + + + +typedef struct IXMLDOMDocumentFragment IXMLDOMDocumentFragment; + + + + + + +typedef struct IXMLDOMDocument IXMLDOMDocument; + + + + + + +typedef struct IXMLDOMNodeList IXMLDOMNodeList; + + + + + + +typedef struct IXMLDOMNamedNodeMap IXMLDOMNamedNodeMap; + + + + + + +typedef struct IXMLDOMCharacterData IXMLDOMCharacterData; + + + + + + +typedef struct IXMLDOMAttribute IXMLDOMAttribute; + + + + + + +typedef struct IXMLDOMElement IXMLDOMElement; + + + + + + +typedef struct IXMLDOMText IXMLDOMText; + + + + + + +typedef struct IXMLDOMComment IXMLDOMComment; + + + + + + +typedef struct IXMLDOMProcessingInstruction IXMLDOMProcessingInstruction; + + + + + + +typedef struct IXMLDOMCDATASection IXMLDOMCDATASection; + + + + + + +typedef struct IXMLDOMDocumentType IXMLDOMDocumentType; + + + + + + +typedef struct IXMLDOMNotation IXMLDOMNotation; + + + + + + +typedef struct IXMLDOMEntity IXMLDOMEntity; + + + + + + +typedef struct IXMLDOMEntityReference IXMLDOMEntityReference; + + + + + + +typedef struct IXMLDOMParseError IXMLDOMParseError; + + + + + + +typedef struct IXTLRuntime IXTLRuntime; + + + + + + +typedef struct XMLDOMDocumentEvents XMLDOMDocumentEvents; +# 192 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +typedef struct DOMDocument DOMDocument; +# 204 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +typedef struct DOMFreeThreadedDocument DOMFreeThreadedDocument; + + + + + + + +typedef struct IXMLHttpRequest IXMLHttpRequest; +# 223 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +typedef struct XMLHTTPRequest XMLHTTPRequest; + + + + + + + +typedef struct IXMLDSOControl IXMLDSOControl; +# 242 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +typedef struct XMLDSOControl XMLDSOControl; + + + + + + + +typedef struct IXMLElementCollection IXMLElementCollection; + + + + + + +typedef struct IXMLDocument IXMLDocument; + + + + + + +typedef struct IXMLDocument2 IXMLDocument2; + + + + + + +typedef struct IXMLElement IXMLElement; + + + + + + +typedef struct IXMLElement2 IXMLElement2; + + + + + + +typedef struct IXMLAttribute IXMLAttribute; + + + + + + +typedef struct IXMLError IXMLError; +# 303 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +typedef struct XMLDocument XMLDocument; +# 328 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +#pragma warning(push) +#pragma warning(disable: 4001) + +#pragma warning(push) +#pragma warning(disable: 4001) + +#pragma warning(pop) +#pragma warning(pop) + + + + +#pragma warning(push) +#pragma warning(disable: 4820) + + + +typedef struct _xml_error + { + unsigned int _nLine; + BSTR _pchBuf; + unsigned int _cchBuf; + unsigned int _ich; + BSTR _pszFound; + BSTR _pszExpected; + DWORD _reserved1; + DWORD _reserved2; + } XML_ERROR; + + + +extern RPC_IF_HANDLE __MIDL_itf_msxml_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_msxml_0000_0000_v0_0_s_ifspec; +# 401 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +typedef +enum tagDOMNodeType + { + NODE_INVALID = 0, + NODE_ELEMENT = ( NODE_INVALID + 1 ) , + NODE_ATTRIBUTE = ( NODE_ELEMENT + 1 ) , + NODE_TEXT = ( NODE_ATTRIBUTE + 1 ) , + NODE_CDATA_SECTION = ( NODE_TEXT + 1 ) , + NODE_ENTITY_REFERENCE = ( NODE_CDATA_SECTION + 1 ) , + NODE_ENTITY = ( NODE_ENTITY_REFERENCE + 1 ) , + NODE_PROCESSING_INSTRUCTION = ( NODE_ENTITY + 1 ) , + NODE_COMMENT = ( NODE_PROCESSING_INSTRUCTION + 1 ) , + NODE_DOCUMENT = ( NODE_COMMENT + 1 ) , + NODE_DOCUMENT_TYPE = ( NODE_DOCUMENT + 1 ) , + NODE_DOCUMENT_FRAGMENT = ( NODE_DOCUMENT_TYPE + 1 ) , + NODE_NOTATION = ( NODE_DOCUMENT_FRAGMENT + 1 ) + } DOMNodeType; +# 445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +typedef +enum tagXMLEMEM_TYPE + { + XMLELEMTYPE_ELEMENT = 0, + XMLELEMTYPE_TEXT = ( XMLELEMTYPE_ELEMENT + 1 ) , + XMLELEMTYPE_COMMENT = ( XMLELEMTYPE_TEXT + 1 ) , + XMLELEMTYPE_DOCUMENT = ( XMLELEMTYPE_COMMENT + 1 ) , + XMLELEMTYPE_DTD = ( XMLELEMTYPE_DOCUMENT + 1 ) , + XMLELEMTYPE_PI = ( XMLELEMTYPE_DTD + 1 ) , + XMLELEMTYPE_OTHER = ( XMLELEMTYPE_PI + 1 ) + } XMLELEM_TYPE; + + +extern const IID LIBID_MSXML; +# 467 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMImplementation; +# 485 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMImplementationVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMImplementation * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMImplementation * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMImplementation * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMImplementation * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMImplementation * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMImplementation * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMImplementation * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *hasFeature )( + IXMLDOMImplementation * This, + BSTR feature, + BSTR version, + VARIANT_BOOL *hasFeature); + + + } IXMLDOMImplementationVtbl; + + struct IXMLDOMImplementation + { + struct IXMLDOMImplementationVtbl *lpVtbl; + }; +# 609 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMNode; +# 741 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMNodeVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMNode * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMNode * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMNode * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMNode * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMNode * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMNode * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMNode * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXMLDOMNode * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXMLDOMNode * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXMLDOMNode * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXMLDOMNode * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXMLDOMNode * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXMLDOMNode * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXMLDOMNode * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXMLDOMNode * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXMLDOMNode * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXMLDOMNode * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXMLDOMNode * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXMLDOMNode * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXMLDOMNode * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXMLDOMNode * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXMLDOMNode * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXMLDOMNode * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXMLDOMNode * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXMLDOMNode * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXMLDOMNode * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXMLDOMNode * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXMLDOMNode * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXMLDOMNode * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXMLDOMNode * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXMLDOMNode * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXMLDOMNode * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXMLDOMNode * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXMLDOMNode * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXMLDOMNode * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXMLDOMNode * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXMLDOMNode * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXMLDOMNode * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXMLDOMNode * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXMLDOMNode * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXMLDOMNode * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXMLDOMNode * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXMLDOMNode * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + } IXMLDOMNodeVtbl; + + struct IXMLDOMNode + { + struct IXMLDOMNodeVtbl *lpVtbl; + }; +# 1154 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMDocumentFragment; +# 1167 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMDocumentFragmentVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMDocumentFragment * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMDocumentFragment * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMDocumentFragment * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMDocumentFragment * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMDocumentFragment * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMDocumentFragment * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMDocumentFragment * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXMLDOMDocumentFragment * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXMLDOMDocumentFragment * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXMLDOMDocumentFragment * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXMLDOMDocumentFragment * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXMLDOMDocumentFragment * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXMLDOMDocumentFragment * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXMLDOMDocumentFragment * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXMLDOMDocumentFragment * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXMLDOMDocumentFragment * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXMLDOMDocumentFragment * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXMLDOMDocumentFragment * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXMLDOMDocumentFragment * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXMLDOMDocumentFragment * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXMLDOMDocumentFragment * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXMLDOMDocumentFragment * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXMLDOMDocumentFragment * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXMLDOMDocumentFragment * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXMLDOMDocumentFragment * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXMLDOMDocumentFragment * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXMLDOMDocumentFragment * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXMLDOMDocumentFragment * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXMLDOMDocumentFragment * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXMLDOMDocumentFragment * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXMLDOMDocumentFragment * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXMLDOMDocumentFragment * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXMLDOMDocumentFragment * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXMLDOMDocumentFragment * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXMLDOMDocumentFragment * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXMLDOMDocumentFragment * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXMLDOMDocumentFragment * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXMLDOMDocumentFragment * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXMLDOMDocumentFragment * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXMLDOMDocumentFragment * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXMLDOMDocumentFragment * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXMLDOMDocumentFragment * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXMLDOMDocumentFragment * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + } IXMLDOMDocumentFragmentVtbl; + + struct IXMLDOMDocumentFragment + { + struct IXMLDOMDocumentFragmentVtbl *lpVtbl; + }; +# 1581 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMDocument; +# 1707 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMDocumentVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMDocument * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMDocument * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMDocument * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMDocument * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMDocument * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMDocument * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMDocument * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXMLDOMDocument * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXMLDOMDocument * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXMLDOMDocument * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXMLDOMDocument * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXMLDOMDocument * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXMLDOMDocument * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXMLDOMDocument * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXMLDOMDocument * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXMLDOMDocument * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXMLDOMDocument * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXMLDOMDocument * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXMLDOMDocument * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXMLDOMDocument * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXMLDOMDocument * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXMLDOMDocument * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXMLDOMDocument * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXMLDOMDocument * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXMLDOMDocument * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXMLDOMDocument * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXMLDOMDocument * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXMLDOMDocument * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXMLDOMDocument * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXMLDOMDocument * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXMLDOMDocument * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXMLDOMDocument * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXMLDOMDocument * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXMLDOMDocument * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXMLDOMDocument * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXMLDOMDocument * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXMLDOMDocument * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXMLDOMDocument * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXMLDOMDocument * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXMLDOMDocument * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXMLDOMDocument * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXMLDOMDocument * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXMLDOMDocument * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + HRESULT ( __stdcall *get_doctype )( + IXMLDOMDocument * This, + IXMLDOMDocumentType **documentType); + + + HRESULT ( __stdcall *get_implementation )( + IXMLDOMDocument * This, + IXMLDOMImplementation **impl); + + + HRESULT ( __stdcall *get_documentElement )( + IXMLDOMDocument * This, + IXMLDOMElement **DOMElement); + + + HRESULT ( __stdcall *putref_documentElement )( + IXMLDOMDocument * This, + IXMLDOMElement *DOMElement); + + + HRESULT ( __stdcall *createElement )( + IXMLDOMDocument * This, + BSTR tagName, + IXMLDOMElement **element); + + + HRESULT ( __stdcall *createDocumentFragment )( + IXMLDOMDocument * This, + IXMLDOMDocumentFragment **docFrag); + + + HRESULT ( __stdcall *createTextNode )( + IXMLDOMDocument * This, + BSTR data, + IXMLDOMText **text); + + + HRESULT ( __stdcall *createComment )( + IXMLDOMDocument * This, + BSTR data, + IXMLDOMComment **comment); + + + HRESULT ( __stdcall *createCDATASection )( + IXMLDOMDocument * This, + BSTR data, + IXMLDOMCDATASection **cdata); + + + HRESULT ( __stdcall *createProcessingInstruction )( + IXMLDOMDocument * This, + BSTR target, + BSTR data, + IXMLDOMProcessingInstruction **pi); + + + HRESULT ( __stdcall *createAttribute )( + IXMLDOMDocument * This, + BSTR name, + IXMLDOMAttribute **attribute); + + + HRESULT ( __stdcall *createEntityReference )( + IXMLDOMDocument * This, + BSTR name, + IXMLDOMEntityReference **entityRef); + + + HRESULT ( __stdcall *getElementsByTagName )( + IXMLDOMDocument * This, + BSTR tagName, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *createNode )( + IXMLDOMDocument * This, + VARIANT Type, + BSTR name, + BSTR namespaceURI, + IXMLDOMNode **node); + + + HRESULT ( __stdcall *nodeFromID )( + IXMLDOMDocument * This, + BSTR idString, + IXMLDOMNode **node); + + + HRESULT ( __stdcall *load )( + IXMLDOMDocument * This, + VARIANT xmlSource, + VARIANT_BOOL *isSuccessful); + + + HRESULT ( __stdcall *get_readyState )( + IXMLDOMDocument * This, + long *value); + + + HRESULT ( __stdcall *get_parseError )( + IXMLDOMDocument * This, + IXMLDOMParseError **errorObj); + + + HRESULT ( __stdcall *get_url )( + IXMLDOMDocument * This, + BSTR *urlString); + + + HRESULT ( __stdcall *get_async )( + IXMLDOMDocument * This, + VARIANT_BOOL *isAsync); + + + HRESULT ( __stdcall *put_async )( + IXMLDOMDocument * This, + VARIANT_BOOL isAsync); + + + HRESULT ( __stdcall *abort )( + IXMLDOMDocument * This); + + + HRESULT ( __stdcall *loadXML )( + IXMLDOMDocument * This, + BSTR bstrXML, + VARIANT_BOOL *isSuccessful); + + + HRESULT ( __stdcall *save )( + IXMLDOMDocument * This, + VARIANT destination); + + + HRESULT ( __stdcall *get_validateOnParse )( + IXMLDOMDocument * This, + VARIANT_BOOL *isValidating); + + + HRESULT ( __stdcall *put_validateOnParse )( + IXMLDOMDocument * This, + VARIANT_BOOL isValidating); + + + HRESULT ( __stdcall *get_resolveExternals )( + IXMLDOMDocument * This, + VARIANT_BOOL *isResolving); + + + HRESULT ( __stdcall *put_resolveExternals )( + IXMLDOMDocument * This, + VARIANT_BOOL isResolving); + + + HRESULT ( __stdcall *get_preserveWhiteSpace )( + IXMLDOMDocument * This, + VARIANT_BOOL *isPreserving); + + + HRESULT ( __stdcall *put_preserveWhiteSpace )( + IXMLDOMDocument * This, + VARIANT_BOOL isPreserving); + + + HRESULT ( __stdcall *put_onreadystatechange )( + IXMLDOMDocument * This, + VARIANT readystatechangeSink); + + + HRESULT ( __stdcall *put_ondataavailable )( + IXMLDOMDocument * This, + VARIANT ondataavailableSink); + + + HRESULT ( __stdcall *put_ontransformnode )( + IXMLDOMDocument * This, + VARIANT ontransformnodeSink); + + + } IXMLDOMDocumentVtbl; + + struct IXMLDOMDocument + { + struct IXMLDOMDocumentVtbl *lpVtbl; + }; +# 2399 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMNodeList; +# 2427 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMNodeListVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMNodeList * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMNodeList * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMNodeList * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMNodeList * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMNodeList * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMNodeList * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMNodeList * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_item )( + IXMLDOMNodeList * This, + long index, + IXMLDOMNode **listItem); + + + HRESULT ( __stdcall *get_length )( + IXMLDOMNodeList * This, + long *listLength); + + + HRESULT ( __stdcall *nextNode )( + IXMLDOMNodeList * This, + IXMLDOMNode **nextItem); + + + HRESULT ( __stdcall *reset )( + IXMLDOMNodeList * This); + + + HRESULT ( __stdcall *get__newEnum )( + IXMLDOMNodeList * This, + IUnknown **ppUnk); + + + } IXMLDOMNodeListVtbl; + + struct IXMLDOMNodeList + { + struct IXMLDOMNodeListVtbl *lpVtbl; + }; +# 2581 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMNamedNodeMap; +# 2631 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMNamedNodeMapVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMNamedNodeMap * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMNamedNodeMap * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMNamedNodeMap * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMNamedNodeMap * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMNamedNodeMap * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMNamedNodeMap * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMNamedNodeMap * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *getNamedItem )( + IXMLDOMNamedNodeMap * This, + BSTR name, + IXMLDOMNode **namedItem); + + + HRESULT ( __stdcall *setNamedItem )( + IXMLDOMNamedNodeMap * This, + IXMLDOMNode *newItem, + IXMLDOMNode **nameItem); + + + HRESULT ( __stdcall *removeNamedItem )( + IXMLDOMNamedNodeMap * This, + BSTR name, + IXMLDOMNode **namedItem); + + + HRESULT ( __stdcall *get_item )( + IXMLDOMNamedNodeMap * This, + long index, + IXMLDOMNode **listItem); + + + HRESULT ( __stdcall *get_length )( + IXMLDOMNamedNodeMap * This, + long *listLength); + + + HRESULT ( __stdcall *getQualifiedItem )( + IXMLDOMNamedNodeMap * This, + BSTR baseName, + BSTR namespaceURI, + IXMLDOMNode **qualifiedItem); + + + HRESULT ( __stdcall *removeQualifiedItem )( + IXMLDOMNamedNodeMap * This, + BSTR baseName, + BSTR namespaceURI, + IXMLDOMNode **qualifiedItem); + + + HRESULT ( __stdcall *nextNode )( + IXMLDOMNamedNodeMap * This, + IXMLDOMNode **nextItem); + + + HRESULT ( __stdcall *reset )( + IXMLDOMNamedNodeMap * This); + + + HRESULT ( __stdcall *get__newEnum )( + IXMLDOMNamedNodeMap * This, + IUnknown **ppUnk); + + + } IXMLDOMNamedNodeMapVtbl; + + struct IXMLDOMNamedNodeMap + { + struct IXMLDOMNamedNodeMapVtbl *lpVtbl; + }; +# 2832 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMCharacterData; +# 2875 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMCharacterDataVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMCharacterData * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMCharacterData * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMCharacterData * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMCharacterData * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMCharacterData * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMCharacterData * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMCharacterData * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXMLDOMCharacterData * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXMLDOMCharacterData * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXMLDOMCharacterData * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXMLDOMCharacterData * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXMLDOMCharacterData * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXMLDOMCharacterData * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXMLDOMCharacterData * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXMLDOMCharacterData * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXMLDOMCharacterData * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXMLDOMCharacterData * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXMLDOMCharacterData * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXMLDOMCharacterData * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXMLDOMCharacterData * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXMLDOMCharacterData * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXMLDOMCharacterData * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXMLDOMCharacterData * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXMLDOMCharacterData * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXMLDOMCharacterData * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXMLDOMCharacterData * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXMLDOMCharacterData * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXMLDOMCharacterData * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXMLDOMCharacterData * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXMLDOMCharacterData * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXMLDOMCharacterData * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXMLDOMCharacterData * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXMLDOMCharacterData * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXMLDOMCharacterData * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXMLDOMCharacterData * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXMLDOMCharacterData * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXMLDOMCharacterData * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXMLDOMCharacterData * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXMLDOMCharacterData * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXMLDOMCharacterData * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXMLDOMCharacterData * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXMLDOMCharacterData * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXMLDOMCharacterData * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + HRESULT ( __stdcall *get_data )( + IXMLDOMCharacterData * This, + BSTR *data); + + + HRESULT ( __stdcall *put_data )( + IXMLDOMCharacterData * This, + BSTR data); + + + HRESULT ( __stdcall *get_length )( + IXMLDOMCharacterData * This, + long *dataLength); + + + HRESULT ( __stdcall *substringData )( + IXMLDOMCharacterData * This, + long offset, + long count, + BSTR *data); + + + HRESULT ( __stdcall *appendData )( + IXMLDOMCharacterData * This, + BSTR data); + + + HRESULT ( __stdcall *insertData )( + IXMLDOMCharacterData * This, + long offset, + BSTR data); + + + HRESULT ( __stdcall *deleteData )( + IXMLDOMCharacterData * This, + long offset, + long count); + + + HRESULT ( __stdcall *replaceData )( + IXMLDOMCharacterData * This, + long offset, + long count, + BSTR data); + + + } IXMLDOMCharacterDataVtbl; + + struct IXMLDOMCharacterData + { + struct IXMLDOMCharacterDataVtbl *lpVtbl; + }; +# 3359 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMAttribute; +# 3381 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMAttributeVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMAttribute * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMAttribute * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMAttribute * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMAttribute * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMAttribute * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMAttribute * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMAttribute * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXMLDOMAttribute * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXMLDOMAttribute * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXMLDOMAttribute * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXMLDOMAttribute * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXMLDOMAttribute * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXMLDOMAttribute * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXMLDOMAttribute * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXMLDOMAttribute * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXMLDOMAttribute * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXMLDOMAttribute * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXMLDOMAttribute * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXMLDOMAttribute * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXMLDOMAttribute * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXMLDOMAttribute * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXMLDOMAttribute * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXMLDOMAttribute * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXMLDOMAttribute * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXMLDOMAttribute * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXMLDOMAttribute * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXMLDOMAttribute * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXMLDOMAttribute * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXMLDOMAttribute * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXMLDOMAttribute * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXMLDOMAttribute * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXMLDOMAttribute * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXMLDOMAttribute * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXMLDOMAttribute * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXMLDOMAttribute * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXMLDOMAttribute * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXMLDOMAttribute * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXMLDOMAttribute * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXMLDOMAttribute * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXMLDOMAttribute * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXMLDOMAttribute * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXMLDOMAttribute * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXMLDOMAttribute * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + HRESULT ( __stdcall *get_name )( + IXMLDOMAttribute * This, + BSTR *attributeName); + + + HRESULT ( __stdcall *get_value )( + IXMLDOMAttribute * This, + VARIANT *attributeValue); + + + HRESULT ( __stdcall *put_value )( + IXMLDOMAttribute * This, + VARIANT attributeValue); + + + } IXMLDOMAttributeVtbl; + + struct IXMLDOMAttribute + { + struct IXMLDOMAttributeVtbl *lpVtbl; + }; +# 3819 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMElement; +# 3864 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMElementVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMElement * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMElement * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMElement * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMElement * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMElement * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMElement * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMElement * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXMLDOMElement * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXMLDOMElement * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXMLDOMElement * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXMLDOMElement * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXMLDOMElement * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXMLDOMElement * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXMLDOMElement * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXMLDOMElement * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXMLDOMElement * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXMLDOMElement * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXMLDOMElement * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXMLDOMElement * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXMLDOMElement * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXMLDOMElement * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXMLDOMElement * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXMLDOMElement * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXMLDOMElement * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXMLDOMElement * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXMLDOMElement * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXMLDOMElement * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXMLDOMElement * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXMLDOMElement * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXMLDOMElement * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXMLDOMElement * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXMLDOMElement * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXMLDOMElement * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXMLDOMElement * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXMLDOMElement * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXMLDOMElement * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXMLDOMElement * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXMLDOMElement * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXMLDOMElement * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXMLDOMElement * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXMLDOMElement * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXMLDOMElement * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXMLDOMElement * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + HRESULT ( __stdcall *get_tagName )( + IXMLDOMElement * This, + BSTR *tagName); + + + HRESULT ( __stdcall *getAttribute )( + IXMLDOMElement * This, + BSTR name, + VARIANT *value); + + + HRESULT ( __stdcall *setAttribute )( + IXMLDOMElement * This, + BSTR name, + VARIANT value); + + + HRESULT ( __stdcall *removeAttribute )( + IXMLDOMElement * This, + BSTR name); + + + HRESULT ( __stdcall *getAttributeNode )( + IXMLDOMElement * This, + BSTR name, + IXMLDOMAttribute **attributeNode); + + + HRESULT ( __stdcall *setAttributeNode )( + IXMLDOMElement * This, + IXMLDOMAttribute *DOMAttribute, + IXMLDOMAttribute **attributeNode); + + + HRESULT ( __stdcall *removeAttributeNode )( + IXMLDOMElement * This, + IXMLDOMAttribute *DOMAttribute, + IXMLDOMAttribute **attributeNode); + + + HRESULT ( __stdcall *getElementsByTagName )( + IXMLDOMElement * This, + BSTR tagName, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *normalize )( + IXMLDOMElement * This); + + + } IXMLDOMElementVtbl; + + struct IXMLDOMElement + { + struct IXMLDOMElementVtbl *lpVtbl; + }; +# 4355 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMText; +# 4372 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMTextVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMText * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMText * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMText * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMText * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMText * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMText * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMText * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXMLDOMText * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXMLDOMText * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXMLDOMText * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXMLDOMText * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXMLDOMText * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXMLDOMText * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXMLDOMText * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXMLDOMText * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXMLDOMText * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXMLDOMText * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXMLDOMText * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXMLDOMText * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXMLDOMText * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXMLDOMText * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXMLDOMText * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXMLDOMText * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXMLDOMText * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXMLDOMText * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXMLDOMText * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXMLDOMText * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXMLDOMText * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXMLDOMText * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXMLDOMText * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXMLDOMText * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXMLDOMText * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXMLDOMText * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXMLDOMText * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXMLDOMText * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXMLDOMText * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXMLDOMText * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXMLDOMText * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXMLDOMText * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXMLDOMText * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXMLDOMText * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXMLDOMText * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXMLDOMText * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + HRESULT ( __stdcall *get_data )( + IXMLDOMText * This, + BSTR *data); + + + HRESULT ( __stdcall *put_data )( + IXMLDOMText * This, + BSTR data); + + + HRESULT ( __stdcall *get_length )( + IXMLDOMText * This, + long *dataLength); + + + HRESULT ( __stdcall *substringData )( + IXMLDOMText * This, + long offset, + long count, + BSTR *data); + + + HRESULT ( __stdcall *appendData )( + IXMLDOMText * This, + BSTR data); + + + HRESULT ( __stdcall *insertData )( + IXMLDOMText * This, + long offset, + BSTR data); + + + HRESULT ( __stdcall *deleteData )( + IXMLDOMText * This, + long offset, + long count); + + + HRESULT ( __stdcall *replaceData )( + IXMLDOMText * This, + long offset, + long count, + BSTR data); + + + HRESULT ( __stdcall *splitText )( + IXMLDOMText * This, + long offset, + IXMLDOMText **rightHandTextNode); + + + } IXMLDOMTextVtbl; + + struct IXMLDOMText + { + struct IXMLDOMTextVtbl *lpVtbl; + }; +# 4866 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMComment; +# 4879 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMCommentVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMComment * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMComment * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMComment * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMComment * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMComment * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMComment * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMComment * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXMLDOMComment * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXMLDOMComment * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXMLDOMComment * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXMLDOMComment * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXMLDOMComment * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXMLDOMComment * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXMLDOMComment * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXMLDOMComment * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXMLDOMComment * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXMLDOMComment * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXMLDOMComment * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXMLDOMComment * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXMLDOMComment * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXMLDOMComment * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXMLDOMComment * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXMLDOMComment * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXMLDOMComment * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXMLDOMComment * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXMLDOMComment * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXMLDOMComment * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXMLDOMComment * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXMLDOMComment * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXMLDOMComment * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXMLDOMComment * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXMLDOMComment * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXMLDOMComment * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXMLDOMComment * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXMLDOMComment * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXMLDOMComment * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXMLDOMComment * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXMLDOMComment * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXMLDOMComment * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXMLDOMComment * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXMLDOMComment * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXMLDOMComment * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXMLDOMComment * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + HRESULT ( __stdcall *get_data )( + IXMLDOMComment * This, + BSTR *data); + + + HRESULT ( __stdcall *put_data )( + IXMLDOMComment * This, + BSTR data); + + + HRESULT ( __stdcall *get_length )( + IXMLDOMComment * This, + long *dataLength); + + + HRESULT ( __stdcall *substringData )( + IXMLDOMComment * This, + long offset, + long count, + BSTR *data); + + + HRESULT ( __stdcall *appendData )( + IXMLDOMComment * This, + BSTR data); + + + HRESULT ( __stdcall *insertData )( + IXMLDOMComment * This, + long offset, + BSTR data); + + + HRESULT ( __stdcall *deleteData )( + IXMLDOMComment * This, + long offset, + long count); + + + HRESULT ( __stdcall *replaceData )( + IXMLDOMComment * This, + long offset, + long count, + BSTR data); + + + } IXMLDOMCommentVtbl; + + struct IXMLDOMComment + { + struct IXMLDOMCommentVtbl *lpVtbl; + }; +# 5364 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMProcessingInstruction; +# 5386 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMProcessingInstructionVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMProcessingInstruction * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMProcessingInstruction * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMProcessingInstruction * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMProcessingInstruction * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMProcessingInstruction * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMProcessingInstruction * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMProcessingInstruction * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXMLDOMProcessingInstruction * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXMLDOMProcessingInstruction * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXMLDOMProcessingInstruction * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXMLDOMProcessingInstruction * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXMLDOMProcessingInstruction * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXMLDOMProcessingInstruction * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXMLDOMProcessingInstruction * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXMLDOMProcessingInstruction * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXMLDOMProcessingInstruction * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXMLDOMProcessingInstruction * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXMLDOMProcessingInstruction * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXMLDOMProcessingInstruction * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXMLDOMProcessingInstruction * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXMLDOMProcessingInstruction * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXMLDOMProcessingInstruction * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXMLDOMProcessingInstruction * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXMLDOMProcessingInstruction * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXMLDOMProcessingInstruction * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXMLDOMProcessingInstruction * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXMLDOMProcessingInstruction * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXMLDOMProcessingInstruction * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXMLDOMProcessingInstruction * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXMLDOMProcessingInstruction * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXMLDOMProcessingInstruction * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXMLDOMProcessingInstruction * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXMLDOMProcessingInstruction * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXMLDOMProcessingInstruction * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXMLDOMProcessingInstruction * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXMLDOMProcessingInstruction * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXMLDOMProcessingInstruction * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXMLDOMProcessingInstruction * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXMLDOMProcessingInstruction * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXMLDOMProcessingInstruction * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXMLDOMProcessingInstruction * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXMLDOMProcessingInstruction * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXMLDOMProcessingInstruction * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + HRESULT ( __stdcall *get_target )( + IXMLDOMProcessingInstruction * This, + BSTR *name); + + + HRESULT ( __stdcall *get_data )( + IXMLDOMProcessingInstruction * This, + BSTR *value); + + + HRESULT ( __stdcall *put_data )( + IXMLDOMProcessingInstruction * This, + BSTR value); + + + } IXMLDOMProcessingInstructionVtbl; + + struct IXMLDOMProcessingInstruction + { + struct IXMLDOMProcessingInstructionVtbl *lpVtbl; + }; +# 5824 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMCDATASection; +# 5837 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMCDATASectionVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMCDATASection * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMCDATASection * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMCDATASection * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMCDATASection * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMCDATASection * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMCDATASection * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMCDATASection * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXMLDOMCDATASection * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXMLDOMCDATASection * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXMLDOMCDATASection * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXMLDOMCDATASection * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXMLDOMCDATASection * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXMLDOMCDATASection * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXMLDOMCDATASection * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXMLDOMCDATASection * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXMLDOMCDATASection * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXMLDOMCDATASection * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXMLDOMCDATASection * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXMLDOMCDATASection * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXMLDOMCDATASection * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXMLDOMCDATASection * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXMLDOMCDATASection * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXMLDOMCDATASection * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXMLDOMCDATASection * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXMLDOMCDATASection * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXMLDOMCDATASection * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXMLDOMCDATASection * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXMLDOMCDATASection * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXMLDOMCDATASection * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXMLDOMCDATASection * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXMLDOMCDATASection * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXMLDOMCDATASection * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXMLDOMCDATASection * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXMLDOMCDATASection * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXMLDOMCDATASection * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXMLDOMCDATASection * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXMLDOMCDATASection * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXMLDOMCDATASection * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXMLDOMCDATASection * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXMLDOMCDATASection * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXMLDOMCDATASection * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXMLDOMCDATASection * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXMLDOMCDATASection * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + HRESULT ( __stdcall *get_data )( + IXMLDOMCDATASection * This, + BSTR *data); + + + HRESULT ( __stdcall *put_data )( + IXMLDOMCDATASection * This, + BSTR data); + + + HRESULT ( __stdcall *get_length )( + IXMLDOMCDATASection * This, + long *dataLength); + + + HRESULT ( __stdcall *substringData )( + IXMLDOMCDATASection * This, + long offset, + long count, + BSTR *data); + + + HRESULT ( __stdcall *appendData )( + IXMLDOMCDATASection * This, + BSTR data); + + + HRESULT ( __stdcall *insertData )( + IXMLDOMCDATASection * This, + long offset, + BSTR data); + + + HRESULT ( __stdcall *deleteData )( + IXMLDOMCDATASection * This, + long offset, + long count); + + + HRESULT ( __stdcall *replaceData )( + IXMLDOMCDATASection * This, + long offset, + long count, + BSTR data); + + + HRESULT ( __stdcall *splitText )( + IXMLDOMCDATASection * This, + long offset, + IXMLDOMText **rightHandTextNode); + + + } IXMLDOMCDATASectionVtbl; + + struct IXMLDOMCDATASection + { + struct IXMLDOMCDATASectionVtbl *lpVtbl; + }; +# 6332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMDocumentType; +# 6354 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMDocumentTypeVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMDocumentType * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMDocumentType * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMDocumentType * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMDocumentType * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMDocumentType * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMDocumentType * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMDocumentType * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXMLDOMDocumentType * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXMLDOMDocumentType * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXMLDOMDocumentType * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXMLDOMDocumentType * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXMLDOMDocumentType * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXMLDOMDocumentType * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXMLDOMDocumentType * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXMLDOMDocumentType * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXMLDOMDocumentType * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXMLDOMDocumentType * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXMLDOMDocumentType * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXMLDOMDocumentType * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXMLDOMDocumentType * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXMLDOMDocumentType * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXMLDOMDocumentType * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXMLDOMDocumentType * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXMLDOMDocumentType * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXMLDOMDocumentType * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXMLDOMDocumentType * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXMLDOMDocumentType * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXMLDOMDocumentType * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXMLDOMDocumentType * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXMLDOMDocumentType * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXMLDOMDocumentType * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXMLDOMDocumentType * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXMLDOMDocumentType * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXMLDOMDocumentType * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXMLDOMDocumentType * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXMLDOMDocumentType * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXMLDOMDocumentType * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXMLDOMDocumentType * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXMLDOMDocumentType * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXMLDOMDocumentType * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXMLDOMDocumentType * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXMLDOMDocumentType * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXMLDOMDocumentType * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + HRESULT ( __stdcall *get_name )( + IXMLDOMDocumentType * This, + BSTR *rootName); + + + HRESULT ( __stdcall *get_entities )( + IXMLDOMDocumentType * This, + IXMLDOMNamedNodeMap **entityMap); + + + HRESULT ( __stdcall *get_notations )( + IXMLDOMDocumentType * This, + IXMLDOMNamedNodeMap **notationMap); + + + } IXMLDOMDocumentTypeVtbl; + + struct IXMLDOMDocumentType + { + struct IXMLDOMDocumentTypeVtbl *lpVtbl; + }; +# 6792 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMNotation; +# 6811 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMNotationVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMNotation * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMNotation * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMNotation * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMNotation * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMNotation * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMNotation * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMNotation * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXMLDOMNotation * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXMLDOMNotation * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXMLDOMNotation * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXMLDOMNotation * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXMLDOMNotation * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXMLDOMNotation * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXMLDOMNotation * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXMLDOMNotation * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXMLDOMNotation * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXMLDOMNotation * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXMLDOMNotation * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXMLDOMNotation * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXMLDOMNotation * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXMLDOMNotation * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXMLDOMNotation * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXMLDOMNotation * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXMLDOMNotation * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXMLDOMNotation * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXMLDOMNotation * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXMLDOMNotation * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXMLDOMNotation * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXMLDOMNotation * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXMLDOMNotation * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXMLDOMNotation * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXMLDOMNotation * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXMLDOMNotation * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXMLDOMNotation * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXMLDOMNotation * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXMLDOMNotation * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXMLDOMNotation * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXMLDOMNotation * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXMLDOMNotation * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXMLDOMNotation * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXMLDOMNotation * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXMLDOMNotation * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXMLDOMNotation * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + HRESULT ( __stdcall *get_publicId )( + IXMLDOMNotation * This, + VARIANT *publicID); + + + HRESULT ( __stdcall *get_systemId )( + IXMLDOMNotation * This, + VARIANT *systemID); + + + } IXMLDOMNotationVtbl; + + struct IXMLDOMNotation + { + struct IXMLDOMNotationVtbl *lpVtbl; + }; +# 7241 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMEntity; +# 7263 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMEntityVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMEntity * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMEntity * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMEntity * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMEntity * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMEntity * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMEntity * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMEntity * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXMLDOMEntity * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXMLDOMEntity * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXMLDOMEntity * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXMLDOMEntity * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXMLDOMEntity * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXMLDOMEntity * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXMLDOMEntity * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXMLDOMEntity * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXMLDOMEntity * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXMLDOMEntity * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXMLDOMEntity * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXMLDOMEntity * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXMLDOMEntity * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXMLDOMEntity * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXMLDOMEntity * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXMLDOMEntity * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXMLDOMEntity * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXMLDOMEntity * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXMLDOMEntity * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXMLDOMEntity * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXMLDOMEntity * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXMLDOMEntity * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXMLDOMEntity * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXMLDOMEntity * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXMLDOMEntity * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXMLDOMEntity * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXMLDOMEntity * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXMLDOMEntity * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXMLDOMEntity * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXMLDOMEntity * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXMLDOMEntity * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXMLDOMEntity * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXMLDOMEntity * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXMLDOMEntity * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXMLDOMEntity * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXMLDOMEntity * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + HRESULT ( __stdcall *get_publicId )( + IXMLDOMEntity * This, + VARIANT *publicID); + + + HRESULT ( __stdcall *get_systemId )( + IXMLDOMEntity * This, + VARIANT *systemID); + + + HRESULT ( __stdcall *get_notationName )( + IXMLDOMEntity * This, + BSTR *name); + + + } IXMLDOMEntityVtbl; + + struct IXMLDOMEntity + { + struct IXMLDOMEntityVtbl *lpVtbl; + }; +# 7701 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMEntityReference; +# 7714 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMEntityReferenceVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMEntityReference * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMEntityReference * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMEntityReference * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMEntityReference * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMEntityReference * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMEntityReference * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMEntityReference * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXMLDOMEntityReference * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXMLDOMEntityReference * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXMLDOMEntityReference * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXMLDOMEntityReference * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXMLDOMEntityReference * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXMLDOMEntityReference * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXMLDOMEntityReference * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXMLDOMEntityReference * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXMLDOMEntityReference * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXMLDOMEntityReference * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXMLDOMEntityReference * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXMLDOMEntityReference * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXMLDOMEntityReference * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXMLDOMEntityReference * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXMLDOMEntityReference * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXMLDOMEntityReference * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXMLDOMEntityReference * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXMLDOMEntityReference * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXMLDOMEntityReference * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXMLDOMEntityReference * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXMLDOMEntityReference * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXMLDOMEntityReference * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXMLDOMEntityReference * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXMLDOMEntityReference * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXMLDOMEntityReference * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXMLDOMEntityReference * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXMLDOMEntityReference * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXMLDOMEntityReference * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXMLDOMEntityReference * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXMLDOMEntityReference * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXMLDOMEntityReference * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXMLDOMEntityReference * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXMLDOMEntityReference * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXMLDOMEntityReference * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXMLDOMEntityReference * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXMLDOMEntityReference * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + } IXMLDOMEntityReferenceVtbl; + + struct IXMLDOMEntityReference + { + struct IXMLDOMEntityReferenceVtbl *lpVtbl; + }; +# 8128 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDOMParseError; +# 8162 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDOMParseErrorVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDOMParseError * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDOMParseError * This); + + + ULONG ( __stdcall *Release )( + IXMLDOMParseError * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDOMParseError * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDOMParseError * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDOMParseError * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDOMParseError * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_errorCode )( + IXMLDOMParseError * This, + long *errorCode); + + + HRESULT ( __stdcall *get_url )( + IXMLDOMParseError * This, + BSTR *urlString); + + + HRESULT ( __stdcall *get_reason )( + IXMLDOMParseError * This, + BSTR *reasonString); + + + HRESULT ( __stdcall *get_srcText )( + IXMLDOMParseError * This, + BSTR *sourceString); + + + HRESULT ( __stdcall *get_line )( + IXMLDOMParseError * This, + long *lineNumber); + + + HRESULT ( __stdcall *get_linepos )( + IXMLDOMParseError * This, + long *linePosition); + + + HRESULT ( __stdcall *get_filepos )( + IXMLDOMParseError * This, + long *filePosition); + + + } IXMLDOMParseErrorVtbl; + + struct IXMLDOMParseError + { + struct IXMLDOMParseErrorVtbl *lpVtbl; + }; +# 8332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXTLRuntime; +# 8388 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXTLRuntimeVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXTLRuntime * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXTLRuntime * This); + + + ULONG ( __stdcall *Release )( + IXTLRuntime * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXTLRuntime * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXTLRuntime * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXTLRuntime * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXTLRuntime * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_nodeName )( + IXTLRuntime * This, + BSTR *name); + + + HRESULT ( __stdcall *get_nodeValue )( + IXTLRuntime * This, + VARIANT *value); + + + HRESULT ( __stdcall *put_nodeValue )( + IXTLRuntime * This, + VARIANT value); + + + HRESULT ( __stdcall *get_nodeType )( + IXTLRuntime * This, + DOMNodeType *type); + + + HRESULT ( __stdcall *get_parentNode )( + IXTLRuntime * This, + IXMLDOMNode **parent); + + + HRESULT ( __stdcall *get_childNodes )( + IXTLRuntime * This, + IXMLDOMNodeList **childList); + + + HRESULT ( __stdcall *get_firstChild )( + IXTLRuntime * This, + IXMLDOMNode **firstChild); + + + HRESULT ( __stdcall *get_lastChild )( + IXTLRuntime * This, + IXMLDOMNode **lastChild); + + + HRESULT ( __stdcall *get_previousSibling )( + IXTLRuntime * This, + IXMLDOMNode **previousSibling); + + + HRESULT ( __stdcall *get_nextSibling )( + IXTLRuntime * This, + IXMLDOMNode **nextSibling); + + + HRESULT ( __stdcall *get_attributes )( + IXTLRuntime * This, + IXMLDOMNamedNodeMap **attributeMap); + + + HRESULT ( __stdcall *insertBefore )( + IXTLRuntime * This, + IXMLDOMNode *newChild, + VARIANT refChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *replaceChild )( + IXTLRuntime * This, + IXMLDOMNode *newChild, + IXMLDOMNode *oldChild, + IXMLDOMNode **outOldChild); + + + HRESULT ( __stdcall *removeChild )( + IXTLRuntime * This, + IXMLDOMNode *childNode, + IXMLDOMNode **oldChild); + + + HRESULT ( __stdcall *appendChild )( + IXTLRuntime * This, + IXMLDOMNode *newChild, + IXMLDOMNode **outNewChild); + + + HRESULT ( __stdcall *hasChildNodes )( + IXTLRuntime * This, + VARIANT_BOOL *hasChild); + + + HRESULT ( __stdcall *get_ownerDocument )( + IXTLRuntime * This, + IXMLDOMDocument **XMLDOMDocument); + + + HRESULT ( __stdcall *cloneNode )( + IXTLRuntime * This, + VARIANT_BOOL deep, + IXMLDOMNode **cloneRoot); + + + HRESULT ( __stdcall *get_nodeTypeString )( + IXTLRuntime * This, + BSTR *nodeType); + + + HRESULT ( __stdcall *get_text )( + IXTLRuntime * This, + BSTR *text); + + + HRESULT ( __stdcall *put_text )( + IXTLRuntime * This, + BSTR text); + + + HRESULT ( __stdcall *get_specified )( + IXTLRuntime * This, + VARIANT_BOOL *isSpecified); + + + HRESULT ( __stdcall *get_definition )( + IXTLRuntime * This, + IXMLDOMNode **definitionNode); + + + HRESULT ( __stdcall *get_nodeTypedValue )( + IXTLRuntime * This, + VARIANT *typedValue); + + + HRESULT ( __stdcall *put_nodeTypedValue )( + IXTLRuntime * This, + VARIANT typedValue); + + + HRESULT ( __stdcall *get_dataType )( + IXTLRuntime * This, + VARIANT *dataTypeName); + + + HRESULT ( __stdcall *put_dataType )( + IXTLRuntime * This, + BSTR dataTypeName); + + + HRESULT ( __stdcall *get_xml )( + IXTLRuntime * This, + BSTR *xmlString); + + + HRESULT ( __stdcall *transformNode )( + IXTLRuntime * This, + IXMLDOMNode *stylesheet, + BSTR *xmlString); + + + HRESULT ( __stdcall *selectNodes )( + IXTLRuntime * This, + BSTR queryString, + IXMLDOMNodeList **resultList); + + + HRESULT ( __stdcall *selectSingleNode )( + IXTLRuntime * This, + BSTR queryString, + IXMLDOMNode **resultNode); + + + HRESULT ( __stdcall *get_parsed )( + IXTLRuntime * This, + VARIANT_BOOL *isParsed); + + + HRESULT ( __stdcall *get_namespaceURI )( + IXTLRuntime * This, + BSTR *namespaceURI); + + + HRESULT ( __stdcall *get_prefix )( + IXTLRuntime * This, + BSTR *prefixString); + + + HRESULT ( __stdcall *get_baseName )( + IXTLRuntime * This, + BSTR *nameString); + + + HRESULT ( __stdcall *transformNodeToObject )( + IXTLRuntime * This, + IXMLDOMNode *stylesheet, + VARIANT outputObject); + + + HRESULT ( __stdcall *uniqueID )( + IXTLRuntime * This, + IXMLDOMNode *pNode, + long *pID); + + + HRESULT ( __stdcall *depth )( + IXTLRuntime * This, + IXMLDOMNode *pNode, + long *pDepth); + + + HRESULT ( __stdcall *childNumber )( + IXTLRuntime * This, + IXMLDOMNode *pNode, + long *pNumber); + + + HRESULT ( __stdcall *ancestorChildNumber )( + IXTLRuntime * This, + BSTR bstrNodeName, + IXMLDOMNode *pNode, + long *pNumber); + + + HRESULT ( __stdcall *absoluteChildNumber )( + IXTLRuntime * This, + IXMLDOMNode *pNode, + long *pNumber); + + + HRESULT ( __stdcall *formatIndex )( + IXTLRuntime * This, + long lIndex, + BSTR bstrFormat, + BSTR *pbstrFormattedString); + + + HRESULT ( __stdcall *formatNumber )( + IXTLRuntime * This, + double dblNumber, + BSTR bstrFormat, + BSTR *pbstrFormattedString); + + + HRESULT ( __stdcall *formatDate )( + IXTLRuntime * This, + VARIANT varDate, + BSTR bstrFormat, + VARIANT varDestLocale, + BSTR *pbstrFormattedString); + + + HRESULT ( __stdcall *formatTime )( + IXTLRuntime * This, + VARIANT varTime, + BSTR bstrFormat, + VARIANT varDestLocale, + BSTR *pbstrFormattedString); + + + } IXTLRuntimeVtbl; + + struct IXTLRuntime + { + struct IXTLRuntimeVtbl *lpVtbl; + }; +# 8890 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID DIID_XMLDOMDocumentEvents; +# 8901 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct XMLDOMDocumentEventsVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + XMLDOMDocumentEvents * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + XMLDOMDocumentEvents * This); + + + ULONG ( __stdcall *Release )( + XMLDOMDocumentEvents * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + XMLDOMDocumentEvents * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + XMLDOMDocumentEvents * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + XMLDOMDocumentEvents * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + XMLDOMDocumentEvents * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + } XMLDOMDocumentEventsVtbl; + + struct XMLDOMDocumentEvents + { + struct XMLDOMDocumentEventsVtbl *lpVtbl; + }; +# 9005 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const CLSID CLSID_DOMDocument; + + + + + + + +extern const CLSID CLSID_DOMFreeThreadedDocument; +# 9028 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLHttpRequest; +# 9088 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLHttpRequestVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLHttpRequest * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLHttpRequest * This); + + + ULONG ( __stdcall *Release )( + IXMLHttpRequest * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLHttpRequest * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLHttpRequest * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLHttpRequest * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLHttpRequest * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *open )( + IXMLHttpRequest * This, + BSTR bstrMethod, + BSTR bstrUrl, + VARIANT varAsync, + VARIANT bstrUser, + VARIANT bstrPassword); + + + HRESULT ( __stdcall *setRequestHeader )( + IXMLHttpRequest * This, + BSTR bstrHeader, + BSTR bstrValue); + + + HRESULT ( __stdcall *getResponseHeader )( + IXMLHttpRequest * This, + BSTR bstrHeader, + BSTR *pbstrValue); + + + HRESULT ( __stdcall *getAllResponseHeaders )( + IXMLHttpRequest * This, + BSTR *pbstrHeaders); + + + HRESULT ( __stdcall *send )( + IXMLHttpRequest * This, + VARIANT varBody); + + + HRESULT ( __stdcall *abort )( + IXMLHttpRequest * This); + + + HRESULT ( __stdcall *get_status )( + IXMLHttpRequest * This, + long *plStatus); + + + HRESULT ( __stdcall *get_statusText )( + IXMLHttpRequest * This, + BSTR *pbstrStatus); + + + HRESULT ( __stdcall *get_responseXML )( + IXMLHttpRequest * This, + IDispatch **ppBody); + + + HRESULT ( __stdcall *get_responseText )( + IXMLHttpRequest * This, + BSTR *pbstrBody); + + + HRESULT ( __stdcall *get_responseBody )( + IXMLHttpRequest * This, + VARIANT *pvarBody); + + + HRESULT ( __stdcall *get_responseStream )( + IXMLHttpRequest * This, + VARIANT *pvarBody); + + + HRESULT ( __stdcall *get_readyState )( + IXMLHttpRequest * This, + long *plState); + + + HRESULT ( __stdcall *put_onreadystatechange )( + IXMLHttpRequest * This, + IDispatch *pReadyStateSink); + + + } IXMLHttpRequestVtbl; + + struct IXMLHttpRequest + { + struct IXMLHttpRequestVtbl *lpVtbl; + }; +# 9312 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const CLSID CLSID_XMLHTTPRequest; +# 9327 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDSOControl; +# 9355 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDSOControlVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDSOControl * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDSOControl * This); + + + ULONG ( __stdcall *Release )( + IXMLDSOControl * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDSOControl * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDSOControl * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDSOControl * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDSOControl * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_XMLDocument )( + IXMLDSOControl * This, + IXMLDOMDocument **ppDoc); + + + HRESULT ( __stdcall *put_XMLDocument )( + IXMLDSOControl * This, + IXMLDOMDocument *ppDoc); + + + HRESULT ( __stdcall *get_JavaDSOCompatible )( + IXMLDSOControl * This, + BOOL *fJavaDSOCompatible); + + + HRESULT ( __stdcall *put_JavaDSOCompatible )( + IXMLDSOControl * This, + BOOL fJavaDSOCompatible); + + + HRESULT ( __stdcall *get_readyState )( + IXMLDSOControl * This, + long *state); + + + } IXMLDSOControlVtbl; + + struct IXMLDSOControl + { + struct IXMLDSOControlVtbl *lpVtbl; + }; +# 9502 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const CLSID CLSID_XMLDSOControl; +# 9517 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLElementCollection; +# 9544 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLElementCollectionVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLElementCollection * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLElementCollection * This); + + + ULONG ( __stdcall *Release )( + IXMLElementCollection * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLElementCollection * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLElementCollection * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLElementCollection * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLElementCollection * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *put_length )( + IXMLElementCollection * This, + long v); + + + HRESULT ( __stdcall *get_length )( + IXMLElementCollection * This, + long *p); + + + HRESULT ( __stdcall *get__newEnum )( + IXMLElementCollection * This, + IUnknown **ppUnk); + + + HRESULT ( __stdcall *item )( + IXMLElementCollection * This, + VARIANT var1, + VARIANT var2, + IDispatch **ppDisp); + + + } IXMLElementCollectionVtbl; + + struct IXMLElementCollection + { + struct IXMLElementCollectionVtbl *lpVtbl; + }; +# 9692 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDocument; +# 9749 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDocumentVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDocument * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDocument * This); + + + ULONG ( __stdcall *Release )( + IXMLDocument * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDocument * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDocument * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDocument * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDocument * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_root )( + IXMLDocument * This, + IXMLElement **p); + + + HRESULT ( __stdcall *get_fileSize )( + IXMLDocument * This, + BSTR *p); + + + HRESULT ( __stdcall *get_fileModifiedDate )( + IXMLDocument * This, + BSTR *p); + + + HRESULT ( __stdcall *get_fileUpdatedDate )( + IXMLDocument * This, + BSTR *p); + + + HRESULT ( __stdcall *get_URL )( + IXMLDocument * This, + BSTR *p); + + + HRESULT ( __stdcall *put_URL )( + IXMLDocument * This, + BSTR p); + + + HRESULT ( __stdcall *get_mimeType )( + IXMLDocument * This, + BSTR *p); + + + HRESULT ( __stdcall *get_readyState )( + IXMLDocument * This, + long *pl); + + + HRESULT ( __stdcall *get_charset )( + IXMLDocument * This, + BSTR *p); + + + HRESULT ( __stdcall *put_charset )( + IXMLDocument * This, + BSTR p); + + + HRESULT ( __stdcall *get_version )( + IXMLDocument * This, + BSTR *p); + + + HRESULT ( __stdcall *get_doctype )( + IXMLDocument * This, + BSTR *p); + + + HRESULT ( __stdcall *get_dtdURL )( + IXMLDocument * This, + BSTR *p); + + + HRESULT ( __stdcall *createElement )( + IXMLDocument * This, + VARIANT vType, + VARIANT var1, + IXMLElement **ppElem); + + + } IXMLDocumentVtbl; + + struct IXMLDocument + { + struct IXMLDocumentVtbl *lpVtbl; + }; +# 9977 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLDocument2; +# 10040 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLDocument2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLDocument2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLDocument2 * This); + + + ULONG ( __stdcall *Release )( + IXMLDocument2 * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLDocument2 * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLDocument2 * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLDocument2 * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLDocument2 * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_root )( + IXMLDocument2 * This, + IXMLElement2 **p); + + + HRESULT ( __stdcall *get_fileSize )( + IXMLDocument2 * This, + BSTR *p); + + + HRESULT ( __stdcall *get_fileModifiedDate )( + IXMLDocument2 * This, + BSTR *p); + + + HRESULT ( __stdcall *get_fileUpdatedDate )( + IXMLDocument2 * This, + BSTR *p); + + + HRESULT ( __stdcall *get_URL )( + IXMLDocument2 * This, + BSTR *p); + + + HRESULT ( __stdcall *put_URL )( + IXMLDocument2 * This, + BSTR p); + + + HRESULT ( __stdcall *get_mimeType )( + IXMLDocument2 * This, + BSTR *p); + + + HRESULT ( __stdcall *get_readyState )( + IXMLDocument2 * This, + long *pl); + + + HRESULT ( __stdcall *get_charset )( + IXMLDocument2 * This, + BSTR *p); + + + HRESULT ( __stdcall *put_charset )( + IXMLDocument2 * This, + BSTR p); + + + HRESULT ( __stdcall *get_version )( + IXMLDocument2 * This, + BSTR *p); + + + HRESULT ( __stdcall *get_doctype )( + IXMLDocument2 * This, + BSTR *p); + + + HRESULT ( __stdcall *get_dtdURL )( + IXMLDocument2 * This, + BSTR *p); + + + HRESULT ( __stdcall *createElement )( + IXMLDocument2 * This, + VARIANT vType, + VARIANT var1, + IXMLElement2 **ppElem); + + + HRESULT ( __stdcall *get_async )( + IXMLDocument2 * This, + VARIANT_BOOL *pf); + + + HRESULT ( __stdcall *put_async )( + IXMLDocument2 * This, + VARIANT_BOOL f); + + + } IXMLDocument2Vtbl; + + struct IXMLDocument2 + { + struct IXMLDocument2Vtbl *lpVtbl; + }; +# 10284 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLElement; +# 10337 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLElementVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLElement * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLElement * This); + + + ULONG ( __stdcall *Release )( + IXMLElement * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLElement * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLElement * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLElement * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLElement * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_tagName )( + IXMLElement * This, + BSTR *p); + + + HRESULT ( __stdcall *put_tagName )( + IXMLElement * This, + BSTR p); + + + HRESULT ( __stdcall *get_parent )( + IXMLElement * This, + IXMLElement **ppParent); + + + HRESULT ( __stdcall *setAttribute )( + IXMLElement * This, + BSTR strPropertyName, + VARIANT PropertyValue); + + + HRESULT ( __stdcall *getAttribute )( + IXMLElement * This, + BSTR strPropertyName, + VARIANT *PropertyValue); + + + HRESULT ( __stdcall *removeAttribute )( + IXMLElement * This, + BSTR strPropertyName); + + + HRESULT ( __stdcall *get_children )( + IXMLElement * This, + IXMLElementCollection **pp); + + + HRESULT ( __stdcall *get_type )( + IXMLElement * This, + long *plType); + + + HRESULT ( __stdcall *get_text )( + IXMLElement * This, + BSTR *p); + + + HRESULT ( __stdcall *put_text )( + IXMLElement * This, + BSTR p); + + + HRESULT ( __stdcall *addChild )( + IXMLElement * This, + IXMLElement *pChildElem, + long lIndex, + long lReserved); + + + HRESULT ( __stdcall *removeChild )( + IXMLElement * This, + IXMLElement *pChildElem); + + + } IXMLElementVtbl; + + struct IXMLElement + { + struct IXMLElementVtbl *lpVtbl; + }; +# 10551 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLElement2; +# 10607 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLElement2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLElement2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLElement2 * This); + + + ULONG ( __stdcall *Release )( + IXMLElement2 * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLElement2 * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLElement2 * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLElement2 * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLElement2 * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_tagName )( + IXMLElement2 * This, + BSTR *p); + + + HRESULT ( __stdcall *put_tagName )( + IXMLElement2 * This, + BSTR p); + + + HRESULT ( __stdcall *get_parent )( + IXMLElement2 * This, + IXMLElement2 **ppParent); + + + HRESULT ( __stdcall *setAttribute )( + IXMLElement2 * This, + BSTR strPropertyName, + VARIANT PropertyValue); + + + HRESULT ( __stdcall *getAttribute )( + IXMLElement2 * This, + BSTR strPropertyName, + VARIANT *PropertyValue); + + + HRESULT ( __stdcall *removeAttribute )( + IXMLElement2 * This, + BSTR strPropertyName); + + + HRESULT ( __stdcall *get_children )( + IXMLElement2 * This, + IXMLElementCollection **pp); + + + HRESULT ( __stdcall *get_type )( + IXMLElement2 * This, + long *plType); + + + HRESULT ( __stdcall *get_text )( + IXMLElement2 * This, + BSTR *p); + + + HRESULT ( __stdcall *put_text )( + IXMLElement2 * This, + BSTR p); + + + HRESULT ( __stdcall *addChild )( + IXMLElement2 * This, + IXMLElement2 *pChildElem, + long lIndex, + long lReserved); + + + HRESULT ( __stdcall *removeChild )( + IXMLElement2 * This, + IXMLElement2 *pChildElem); + + + HRESULT ( __stdcall *get_attributes )( + IXMLElement2 * This, + IXMLElementCollection **pp); + + + } IXMLElement2Vtbl; + + struct IXMLElement2 + { + struct IXMLElement2Vtbl *lpVtbl; + }; +# 10829 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLAttribute; +# 10848 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLAttributeVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLAttribute * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLAttribute * This); + + + ULONG ( __stdcall *Release )( + IXMLAttribute * This); + + + HRESULT ( __stdcall *GetTypeInfoCount )( + IXMLAttribute * This, + UINT *pctinfo); + + + HRESULT ( __stdcall *GetTypeInfo )( + IXMLAttribute * This, + UINT iTInfo, + LCID lcid, + ITypeInfo **ppTInfo); + + + HRESULT ( __stdcall *GetIDsOfNames )( + IXMLAttribute * This, + const IID * const riid, + LPOLESTR *rgszNames, + UINT cNames, + LCID lcid, + DISPID *rgDispId); + + + HRESULT ( __stdcall *Invoke )( + IXMLAttribute * This, + + DISPID dispIdMember, + + const IID * const riid, + + LCID lcid, + + WORD wFlags, + + DISPPARAMS *pDispParams, + + VARIANT *pVarResult, + + EXCEPINFO *pExcepInfo, + + UINT *puArgErr); + + + HRESULT ( __stdcall *get_name )( + IXMLAttribute * This, + BSTR *n); + + + HRESULT ( __stdcall *get_value )( + IXMLAttribute * This, + BSTR *v); + + + } IXMLAttributeVtbl; + + struct IXMLAttribute + { + struct IXMLAttributeVtbl *lpVtbl; + }; +# 10978 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const IID IID_IXMLError; +# 10994 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 + typedef struct IXMLErrorVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IXMLError * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IXMLError * This); + + + ULONG ( __stdcall *Release )( + IXMLError * This); + + + HRESULT ( __stdcall *GetErrorInfo )( + IXMLError * This, + XML_ERROR *pErrorReturn); + + + } IXMLErrorVtbl; + + struct IXMLError + { + struct IXMLErrorVtbl *lpVtbl; + }; +# 11055 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +extern const CLSID CLSID_XMLDocument; +# 11070 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 +#pragma warning(pop) + + + +extern RPC_IF_HANDLE __MIDL_itf_msxml_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_msxml_0000_0001_v0_0_s_ifspec; +# 440 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 2 3 +# 460 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +#pragma comment(lib,"uuid.lib") + + + + + + +#pragma warning(push) + + + +#pragma warning(disable: 4820) +# 490 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID CLSID_SBS_StdURLMoniker; +extern const IID CLSID_SBS_HttpProtocol; +extern const IID CLSID_SBS_FtpProtocol; +extern const IID CLSID_SBS_GopherProtocol; +extern const IID CLSID_SBS_HttpSProtocol; +extern const IID CLSID_SBS_FileProtocol; +extern const IID CLSID_SBS_MkProtocol; +extern const IID CLSID_SBS_UrlMkBindCtx; +extern const IID CLSID_SBS_SoftDistExt; +extern const IID CLSID_SBS_CdlProtocol; +extern const IID CLSID_SBS_ClassInstallFilter; +extern const IID CLSID_SBS_InternetSecurityManager; +extern const IID CLSID_SBS_InternetZoneManager; + + + + + + + +extern const IID IID_IAsyncMoniker; +extern const IID CLSID_StdURLMoniker; +extern const IID CLSID_HttpProtocol; +extern const IID CLSID_FtpProtocol; +extern const IID CLSID_GopherProtocol; +extern const IID CLSID_HttpSProtocol; +extern const IID CLSID_FileProtocol; +extern const IID CLSID_ResProtocol; +extern const IID CLSID_AboutProtocol; +extern const IID CLSID_JSProtocol; +extern const IID CLSID_MailtoProtocol; +extern const IID CLSID_IE4_PROTOCOLS; +extern const IID CLSID_MkProtocol; +extern const IID CLSID_StdURLProtocol; +extern const IID CLSID_TBAuthProtocol; +extern const IID CLSID_UrlMkBindCtx; +extern const IID CLSID_CdlProtocol; +extern const IID CLSID_ClassInstallFilter; +extern const IID IID_IAsyncBindCtx; +# 537 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern HRESULT __stdcall CreateURLMoniker( LPMONIKER pMkCtx, LPCWSTR szURL, LPMONIKER * ppmk); +extern HRESULT __stdcall CreateURLMonikerEx( LPMONIKER pMkCtx, LPCWSTR szURL, LPMONIKER * ppmk, DWORD dwFlags); +extern HRESULT __stdcall GetClassURL( LPCWSTR szURL, CLSID *pClsID); +extern HRESULT __stdcall CreateAsyncBindCtx(DWORD reserved, IBindStatusCallback *pBSCb, + IEnumFORMATETC *pEFetc, IBindCtx **ppBC); + +extern HRESULT __stdcall CreateURLMonikerEx2( LPMONIKER pMkCtx, IUri* pUri, LPMONIKER * ppmk, DWORD dwFlags); + +extern HRESULT __stdcall CreateAsyncBindCtxEx( IBindCtx *pbc, DWORD dwOptions, IBindStatusCallback *pBSCb, IEnumFORMATETC *pEnum, + IBindCtx **ppBC, DWORD reserved); +extern HRESULT __stdcall MkParseDisplayNameEx( IBindCtx *pbc, LPCWSTR szDisplayName, ULONG *pchEaten, + LPMONIKER *ppmk); +extern HRESULT __stdcall RegisterBindStatusCallback( LPBC pBC, IBindStatusCallback *pBSCb, + IBindStatusCallback** ppBSCBPrev, DWORD dwReserved); +extern HRESULT __stdcall RevokeBindStatusCallback( LPBC pBC, IBindStatusCallback *pBSCb); +extern HRESULT __stdcall GetClassFileOrMime( LPBC pBC, LPCWSTR szFilename, LPVOID pBuffer, DWORD cbSize, LPCWSTR szMime, DWORD dwReserved, CLSID *pclsid); +extern HRESULT __stdcall IsValidURL( LPBC pBC, LPCWSTR szURL, DWORD dwReserved); +extern HRESULT __stdcall CoGetClassObjectFromURL( const IID * const rCLASSID, + LPCWSTR szCODE, DWORD dwFileVersionMS, + DWORD dwFileVersionLS, LPCWSTR szTYPE, + LPBINDCTX pBindCtx, DWORD dwClsContext, + LPVOID pvReserved, const IID * const riid, LPVOID * ppv); +extern HRESULT __stdcall IEInstallScope( LPDWORD pdwScope); +extern HRESULT __stdcall FaultInIEFeature( HWND hWnd, + uCLSSPEC *pClassSpec, + QUERYCONTEXT *pQuery, DWORD dwFlags); +extern HRESULT __stdcall GetComponentIDFromCLSSPEC( uCLSSPEC *pClassspec, + LPSTR * ppszComponentID); +# 575 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern HRESULT __stdcall IsAsyncMoniker( IMoniker* pmk); +extern HRESULT __stdcall CreateURLBinding(LPCWSTR lpszUrl, IBindCtx *pbc, IBinding **ppBdg); + +extern HRESULT __stdcall RegisterMediaTypes( UINT ctypes, const LPCSTR* rgszTypes, CLIPFORMAT* rgcfTypes); +extern HRESULT __stdcall FindMediaType( LPCSTR rgszTypes, CLIPFORMAT* rgcfTypes); +extern HRESULT __stdcall CreateFormatEnumerator( UINT cfmtetc, FORMATETC* rgfmtetc, IEnumFORMATETC** ppenumfmtetc); +extern HRESULT __stdcall RegisterFormatEnumerator( LPBC pBC, IEnumFORMATETC *pEFetc, DWORD reserved); +extern HRESULT __stdcall RevokeFormatEnumerator( LPBC pBC, IEnumFORMATETC *pEFetc); +extern HRESULT __stdcall RegisterMediaTypeClass( LPBC pBC, UINT ctypes, const LPCSTR* rgszTypes, CLSID *rgclsID, DWORD reserved); +extern HRESULT __stdcall FindMediaTypeClass( LPBC pBC, LPCSTR szType, CLSID *pclsID, DWORD reserved); + + + + +extern HRESULT __stdcall UrlMkSetSessionOption(DWORD dwOption, LPVOID pBuffer, DWORD dwBufferLength, DWORD dwReserved); +extern HRESULT __stdcall UrlMkGetSessionOption(DWORD dwOption, LPVOID pBuffer, DWORD dwBufferLength, DWORD *pdwBufferLengthOut, DWORD dwReserved); + + + + +extern HRESULT __stdcall FindMimeFromData( + LPBC pBC, + LPCWSTR pwzUrl, + LPVOID pBuffer, + DWORD cbSize, + LPCWSTR pwzMimeProposed, + DWORD dwMimeFlags, + LPWSTR *ppwzMimeOut, + DWORD dwReserved); +# 616 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern HRESULT __stdcall ObtainUserAgentString( + DWORD dwOption, + LPSTR pszUAOut, + DWORD *cbSize); +extern HRESULT __stdcall CompareSecurityIds( BYTE* pbSecurityId1, DWORD dwLen1, BYTE* pbSecurityId2, DWORD dwLen2, DWORD dwReserved); +extern HRESULT __stdcall CompatFlagsFromClsid( CLSID *pclsid, LPDWORD pdwCompatFlags, LPDWORD pdwMiscStatusFlags); + + + + +typedef enum IEObjectType +{ + IE_EPM_OBJECT_EVENT, + IE_EPM_OBJECT_MUTEX, + IE_EPM_OBJECT_SEMAPHORE, + IE_EPM_OBJECT_SHARED_MEMORY, + IE_EPM_OBJECT_WAITABLE_TIMER, + IE_EPM_OBJECT_FILE, + IE_EPM_OBJECT_NAMED_PIPE, + IE_EPM_OBJECT_REGISTRY, +} IEObjectType; + +extern HRESULT __stdcall SetAccessForIEAppContainer( + HANDLE hObject, + IEObjectType ieObjectType, + DWORD dwAccessMask + ); +# 788 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0000_v0_0_s_ifspec; + + + + + + + +typedef IPersistMoniker *LPPERSISTMONIKER; + + +extern const IID IID_IPersistMoniker; +# 836 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IPersistMonikerVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IPersistMoniker * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IPersistMoniker * This); + + + ULONG ( __stdcall *Release )( + IPersistMoniker * This); + + + HRESULT ( __stdcall *GetClassID )( + IPersistMoniker * This, + CLSID *pClassID); + + + HRESULT ( __stdcall *IsDirty )( + IPersistMoniker * This); + + + HRESULT ( __stdcall *Load )( + IPersistMoniker * This, + BOOL fFullyAvailable, + IMoniker *pimkName, + LPBC pibc, + DWORD grfMode); + + + HRESULT ( __stdcall *Save )( + IPersistMoniker * This, + IMoniker *pimkName, + LPBC pbc, + BOOL fRemember); + + + HRESULT ( __stdcall *SaveCompleted )( + IPersistMoniker * This, + IMoniker *pimkName, + LPBC pibc); + + + HRESULT ( __stdcall *GetCurMoniker )( + IPersistMoniker * This, + IMoniker **ppimkName); + + + } IPersistMonikerVtbl; + + struct IPersistMoniker + { + struct IPersistMonikerVtbl *lpVtbl; + }; +# 950 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0001_v0_0_s_ifspec; + + + + + + + +typedef IMonikerProp *LPMONIKERPROP; + +typedef +enum __MIDL_IMonikerProp_0001 + { + MIMETYPEPROP = 0, + USE_SRC_URL = 0x1, + CLASSIDPROP = 0x2, + TRUSTEDDOWNLOADPROP = 0x3, + POPUPLEVELPROP = 0x4 + } MONIKERPROPERTY; + + +extern const IID IID_IMonikerProp; +# 989 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IMonikerPropVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IMonikerProp * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IMonikerProp * This); + + + ULONG ( __stdcall *Release )( + IMonikerProp * This); + + + HRESULT ( __stdcall *PutProperty )( + IMonikerProp * This, + MONIKERPROPERTY mkp, + LPCWSTR val); + + + } IMonikerPropVtbl; + + struct IMonikerProp + { + struct IMonikerPropVtbl *lpVtbl; + }; +# 1059 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0002_v0_0_s_ifspec; + + + + + + + +typedef IBindProtocol *LPBINDPROTOCOL; + + +extern const IID IID_IBindProtocol; +# 1089 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IBindProtocolVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IBindProtocol * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IBindProtocol * This); + + + ULONG ( __stdcall *Release )( + IBindProtocol * This); + + + HRESULT ( __stdcall *CreateBinding )( + IBindProtocol * This, + LPCWSTR szUrl, + IBindCtx *pbc, + IBinding **ppb); + + + } IBindProtocolVtbl; + + struct IBindProtocol + { + struct IBindProtocolVtbl *lpVtbl; + }; +# 1160 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0003_v0_0_s_ifspec; + + + + + + + +typedef IBinding *LPBINDING; + + +extern const IID IID_IBinding; +# 1204 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IBindingVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IBinding * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IBinding * This); + + + ULONG ( __stdcall *Release )( + IBinding * This); + + + HRESULT ( __stdcall *Abort )( + IBinding * This); + + + HRESULT ( __stdcall *Suspend )( + IBinding * This); + + + HRESULT ( __stdcall *Resume )( + IBinding * This); + + + HRESULT ( __stdcall *SetPriority )( + IBinding * This, + LONG nPriority); + + + HRESULT ( __stdcall *GetPriority )( + IBinding * This, + LONG *pnPriority); + + + HRESULT ( __stdcall *GetBindResult )( + IBinding * This, + CLSID *pclsidProtocol, + DWORD *pdwResult, + + LPOLESTR *pszResult, + DWORD *pdwReserved); + + + } IBindingVtbl; + + struct IBinding + { + struct IBindingVtbl *lpVtbl; + }; +# 1302 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + HRESULT __stdcall IBinding_RemoteGetBindResult_Proxy( + IBinding * This, + CLSID *pclsidProtocol, + DWORD *pdwResult, + LPOLESTR *pszResult, + DWORD dwReserved); + + +void __stdcall IBinding_RemoteGetBindResult_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 1333 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0004_v0_0_s_ifspec; + + + + + + + +typedef IBindStatusCallback *LPBINDSTATUSCALLBACK; + +typedef +enum __MIDL_IBindStatusCallback_0001 + { + BINDVERB_GET = 0, + BINDVERB_POST = 0x1, + BINDVERB_PUT = 0x2, + BINDVERB_CUSTOM = 0x3, + BINDVERB_RESERVED1 = 0x4 + } BINDVERB; + +typedef +enum __MIDL_IBindStatusCallback_0002 + { + BINDINFOF_URLENCODESTGMEDDATA = 0x1, + BINDINFOF_URLENCODEDEXTRAINFO = 0x2 + } BINDINFOF; + +typedef +enum __MIDL_IBindStatusCallback_0003 + { + BINDF_ASYNCHRONOUS = 0x1, + BINDF_ASYNCSTORAGE = 0x2, + BINDF_NOPROGRESSIVERENDERING = 0x4, + BINDF_OFFLINEOPERATION = 0x8, + BINDF_GETNEWESTVERSION = 0x10, + BINDF_NOWRITECACHE = 0x20, + BINDF_NEEDFILE = 0x40, + BINDF_PULLDATA = 0x80, + BINDF_IGNORESECURITYPROBLEM = 0x100, + BINDF_RESYNCHRONIZE = 0x200, + BINDF_HYPERLINK = 0x400, + BINDF_NO_UI = 0x800, + BINDF_SILENTOPERATION = 0x1000, + BINDF_PRAGMA_NO_CACHE = 0x2000, + BINDF_GETCLASSOBJECT = 0x4000, + BINDF_RESERVED_1 = 0x8000, + BINDF_FREE_THREADED = 0x10000, + BINDF_DIRECT_READ = 0x20000, + BINDF_FORMS_SUBMIT = 0x40000, + BINDF_GETFROMCACHE_IF_NET_FAIL = 0x80000, + BINDF_FROMURLMON = 0x100000, + BINDF_FWD_BACK = 0x200000, + BINDF_PREFERDEFAULTHANDLER = 0x400000, + BINDF_ENFORCERESTRICTED = 0x800000, + BINDF_RESERVED_2 = 0x80000000, + BINDF_RESERVED_3 = 0x1000000, + BINDF_RESERVED_4 = 0x2000000, + BINDF_RESERVED_5 = 0x4000000, + BINDF_RESERVED_6 = 0x8000000, + BINDF_RESERVED_7 = 0x40000000, + BINDF_RESERVED_8 = 0x20000000 + } BINDF; + +typedef +enum __MIDL_IBindStatusCallback_0004 + { + URL_ENCODING_NONE = 0, + URL_ENCODING_ENABLE_UTF8 = 0x10000000, + URL_ENCODING_DISABLE_UTF8 = 0x20000000 + } URL_ENCODING; + +typedef struct _tagBINDINFO + { + ULONG cbSize; + LPWSTR szExtraInfo; + STGMEDIUM stgmedData; + DWORD grfBindInfoF; + DWORD dwBindVerb; + LPWSTR szCustomVerb; + DWORD cbstgmedData; + DWORD dwOptions; + DWORD dwOptionsFlags; + DWORD dwCodePage; + SECURITY_ATTRIBUTES securityAttributes; + IID iid; + IUnknown *pUnk; + DWORD dwReserved; + } BINDINFO; + +typedef struct _REMSECURITY_ATTRIBUTES + { + DWORD nLength; + DWORD lpSecurityDescriptor; + BOOL bInheritHandle; + } REMSECURITY_ATTRIBUTES; + +typedef struct _REMSECURITY_ATTRIBUTES *PREMSECURITY_ATTRIBUTES; + +typedef struct _REMSECURITY_ATTRIBUTES *LPREMSECURITY_ATTRIBUTES; + +typedef struct _tagRemBINDINFO + { + ULONG cbSize; + LPWSTR szExtraInfo; + DWORD grfBindInfoF; + DWORD dwBindVerb; + LPWSTR szCustomVerb; + DWORD cbstgmedData; + DWORD dwOptions; + DWORD dwOptionsFlags; + DWORD dwCodePage; + REMSECURITY_ATTRIBUTES securityAttributes; + IID iid; + IUnknown *pUnk; + DWORD dwReserved; + } RemBINDINFO; + +typedef struct tagRemFORMATETC + { + DWORD cfFormat; + DWORD ptd; + DWORD dwAspect; + LONG lindex; + DWORD tymed; + } RemFORMATETC; + +typedef struct tagRemFORMATETC *LPREMFORMATETC; + +typedef +enum __MIDL_IBindStatusCallback_0005 + { + BINDINFO_OPTIONS_WININETFLAG = 0x10000, + BINDINFO_OPTIONS_ENABLE_UTF8 = 0x20000, + BINDINFO_OPTIONS_DISABLE_UTF8 = 0x40000, + BINDINFO_OPTIONS_USE_IE_ENCODING = 0x80000, + BINDINFO_OPTIONS_BINDTOOBJECT = 0x100000, + BINDINFO_OPTIONS_SECURITYOPTOUT = 0x200000, + BINDINFO_OPTIONS_IGNOREMIMETEXTPLAIN = 0x400000, + BINDINFO_OPTIONS_USEBINDSTRINGCREDS = 0x800000, + BINDINFO_OPTIONS_IGNOREHTTPHTTPSREDIRECTS = 0x1000000, + BINDINFO_OPTIONS_IGNORE_SSLERRORS_ONCE = 0x2000000, + BINDINFO_WPC_DOWNLOADBLOCKED = 0x8000000, + BINDINFO_WPC_LOGGING_ENABLED = 0x10000000, + BINDINFO_OPTIONS_ALLOWCONNECTDATA = 0x20000000, + BINDINFO_OPTIONS_DISABLEAUTOREDIRECTS = 0x40000000, + BINDINFO_OPTIONS_SHDOCVW_NAVIGATE = ( int )0x80000000 + } BINDINFO_OPTIONS; + +typedef +enum __MIDL_IBindStatusCallback_0006 + { + BSCF_FIRSTDATANOTIFICATION = 0x1, + BSCF_INTERMEDIATEDATANOTIFICATION = 0x2, + BSCF_LASTDATANOTIFICATION = 0x4, + BSCF_DATAFULLYAVAILABLE = 0x8, + BSCF_AVAILABLEDATASIZEUNKNOWN = 0x10, + BSCF_SKIPDRAINDATAFORFILEURLS = 0x20, + BSCF_64BITLENGTHDOWNLOAD = 0x40 + } BSCF; + +typedef +enum tagBINDSTATUS + { + BINDSTATUS_FINDINGRESOURCE = 1, + BINDSTATUS_CONNECTING = ( BINDSTATUS_FINDINGRESOURCE + 1 ) , + BINDSTATUS_REDIRECTING = ( BINDSTATUS_CONNECTING + 1 ) , + BINDSTATUS_BEGINDOWNLOADDATA = ( BINDSTATUS_REDIRECTING + 1 ) , + BINDSTATUS_DOWNLOADINGDATA = ( BINDSTATUS_BEGINDOWNLOADDATA + 1 ) , + BINDSTATUS_ENDDOWNLOADDATA = ( BINDSTATUS_DOWNLOADINGDATA + 1 ) , + BINDSTATUS_BEGINDOWNLOADCOMPONENTS = ( BINDSTATUS_ENDDOWNLOADDATA + 1 ) , + BINDSTATUS_INSTALLINGCOMPONENTS = ( BINDSTATUS_BEGINDOWNLOADCOMPONENTS + 1 ) , + BINDSTATUS_ENDDOWNLOADCOMPONENTS = ( BINDSTATUS_INSTALLINGCOMPONENTS + 1 ) , + BINDSTATUS_USINGCACHEDCOPY = ( BINDSTATUS_ENDDOWNLOADCOMPONENTS + 1 ) , + BINDSTATUS_SENDINGREQUEST = ( BINDSTATUS_USINGCACHEDCOPY + 1 ) , + BINDSTATUS_CLASSIDAVAILABLE = ( BINDSTATUS_SENDINGREQUEST + 1 ) , + BINDSTATUS_MIMETYPEAVAILABLE = ( BINDSTATUS_CLASSIDAVAILABLE + 1 ) , + BINDSTATUS_CACHEFILENAMEAVAILABLE = ( BINDSTATUS_MIMETYPEAVAILABLE + 1 ) , + BINDSTATUS_BEGINSYNCOPERATION = ( BINDSTATUS_CACHEFILENAMEAVAILABLE + 1 ) , + BINDSTATUS_ENDSYNCOPERATION = ( BINDSTATUS_BEGINSYNCOPERATION + 1 ) , + BINDSTATUS_BEGINUPLOADDATA = ( BINDSTATUS_ENDSYNCOPERATION + 1 ) , + BINDSTATUS_UPLOADINGDATA = ( BINDSTATUS_BEGINUPLOADDATA + 1 ) , + BINDSTATUS_ENDUPLOADDATA = ( BINDSTATUS_UPLOADINGDATA + 1 ) , + BINDSTATUS_PROTOCOLCLASSID = ( BINDSTATUS_ENDUPLOADDATA + 1 ) , + BINDSTATUS_ENCODING = ( BINDSTATUS_PROTOCOLCLASSID + 1 ) , + BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE = ( BINDSTATUS_ENCODING + 1 ) , + BINDSTATUS_CLASSINSTALLLOCATION = ( BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE + 1 ) , + BINDSTATUS_DECODING = ( BINDSTATUS_CLASSINSTALLLOCATION + 1 ) , + BINDSTATUS_LOADINGMIMEHANDLER = ( BINDSTATUS_DECODING + 1 ) , + BINDSTATUS_CONTENTDISPOSITIONATTACH = ( BINDSTATUS_LOADINGMIMEHANDLER + 1 ) , + BINDSTATUS_FILTERREPORTMIMETYPE = ( BINDSTATUS_CONTENTDISPOSITIONATTACH + 1 ) , + BINDSTATUS_CLSIDCANINSTANTIATE = ( BINDSTATUS_FILTERREPORTMIMETYPE + 1 ) , + BINDSTATUS_IUNKNOWNAVAILABLE = ( BINDSTATUS_CLSIDCANINSTANTIATE + 1 ) , + BINDSTATUS_DIRECTBIND = ( BINDSTATUS_IUNKNOWNAVAILABLE + 1 ) , + BINDSTATUS_RAWMIMETYPE = ( BINDSTATUS_DIRECTBIND + 1 ) , + BINDSTATUS_PROXYDETECTING = ( BINDSTATUS_RAWMIMETYPE + 1 ) , + BINDSTATUS_ACCEPTRANGES = ( BINDSTATUS_PROXYDETECTING + 1 ) , + BINDSTATUS_COOKIE_SENT = ( BINDSTATUS_ACCEPTRANGES + 1 ) , + BINDSTATUS_COMPACT_POLICY_RECEIVED = ( BINDSTATUS_COOKIE_SENT + 1 ) , + BINDSTATUS_COOKIE_SUPPRESSED = ( BINDSTATUS_COMPACT_POLICY_RECEIVED + 1 ) , + BINDSTATUS_COOKIE_STATE_UNKNOWN = ( BINDSTATUS_COOKIE_SUPPRESSED + 1 ) , + BINDSTATUS_COOKIE_STATE_ACCEPT = ( BINDSTATUS_COOKIE_STATE_UNKNOWN + 1 ) , + BINDSTATUS_COOKIE_STATE_REJECT = ( BINDSTATUS_COOKIE_STATE_ACCEPT + 1 ) , + BINDSTATUS_COOKIE_STATE_PROMPT = ( BINDSTATUS_COOKIE_STATE_REJECT + 1 ) , + BINDSTATUS_COOKIE_STATE_LEASH = ( BINDSTATUS_COOKIE_STATE_PROMPT + 1 ) , + BINDSTATUS_COOKIE_STATE_DOWNGRADE = ( BINDSTATUS_COOKIE_STATE_LEASH + 1 ) , + BINDSTATUS_POLICY_HREF = ( BINDSTATUS_COOKIE_STATE_DOWNGRADE + 1 ) , + BINDSTATUS_P3P_HEADER = ( BINDSTATUS_POLICY_HREF + 1 ) , + BINDSTATUS_SESSION_COOKIE_RECEIVED = ( BINDSTATUS_P3P_HEADER + 1 ) , + BINDSTATUS_PERSISTENT_COOKIE_RECEIVED = ( BINDSTATUS_SESSION_COOKIE_RECEIVED + 1 ) , + BINDSTATUS_SESSION_COOKIES_ALLOWED = ( BINDSTATUS_PERSISTENT_COOKIE_RECEIVED + 1 ) , + BINDSTATUS_CACHECONTROL = ( BINDSTATUS_SESSION_COOKIES_ALLOWED + 1 ) , + BINDSTATUS_CONTENTDISPOSITIONFILENAME = ( BINDSTATUS_CACHECONTROL + 1 ) , + BINDSTATUS_MIMETEXTPLAINMISMATCH = ( BINDSTATUS_CONTENTDISPOSITIONFILENAME + 1 ) , + BINDSTATUS_PUBLISHERAVAILABLE = ( BINDSTATUS_MIMETEXTPLAINMISMATCH + 1 ) , + BINDSTATUS_DISPLAYNAMEAVAILABLE = ( BINDSTATUS_PUBLISHERAVAILABLE + 1 ) , + BINDSTATUS_SSLUX_NAVBLOCKED = ( BINDSTATUS_DISPLAYNAMEAVAILABLE + 1 ) , + BINDSTATUS_SERVER_MIMETYPEAVAILABLE = ( BINDSTATUS_SSLUX_NAVBLOCKED + 1 ) , + BINDSTATUS_SNIFFED_CLASSIDAVAILABLE = ( BINDSTATUS_SERVER_MIMETYPEAVAILABLE + 1 ) , + BINDSTATUS_64BIT_PROGRESS = ( BINDSTATUS_SNIFFED_CLASSIDAVAILABLE + 1 ) , + BINDSTATUS_LAST = BINDSTATUS_64BIT_PROGRESS, + BINDSTATUS_RESERVED_0 = ( BINDSTATUS_LAST + 1 ) , + BINDSTATUS_RESERVED_1 = ( BINDSTATUS_RESERVED_0 + 1 ) , + BINDSTATUS_RESERVED_2 = ( BINDSTATUS_RESERVED_1 + 1 ) , + BINDSTATUS_RESERVED_3 = ( BINDSTATUS_RESERVED_2 + 1 ) , + BINDSTATUS_RESERVED_4 = ( BINDSTATUS_RESERVED_3 + 1 ) , + BINDSTATUS_RESERVED_5 = ( BINDSTATUS_RESERVED_4 + 1 ) , + BINDSTATUS_RESERVED_6 = ( BINDSTATUS_RESERVED_5 + 1 ) , + BINDSTATUS_RESERVED_7 = ( BINDSTATUS_RESERVED_6 + 1 ) , + BINDSTATUS_RESERVED_8 = ( BINDSTATUS_RESERVED_7 + 1 ) , + BINDSTATUS_RESERVED_9 = ( BINDSTATUS_RESERVED_8 + 1 ) , + BINDSTATUS_RESERVED_A = ( BINDSTATUS_RESERVED_9 + 1 ) , + BINDSTATUS_RESERVED_B = ( BINDSTATUS_RESERVED_A + 1 ) , + BINDSTATUS_RESERVED_C = ( BINDSTATUS_RESERVED_B + 1 ) , + BINDSTATUS_RESERVED_D = ( BINDSTATUS_RESERVED_C + 1 ) , + BINDSTATUS_RESERVED_E = ( BINDSTATUS_RESERVED_D + 1 ) , + BINDSTATUS_RESERVED_F = ( BINDSTATUS_RESERVED_E + 1 ) , + BINDSTATUS_RESERVED_10 = ( BINDSTATUS_RESERVED_F + 1 ) , + BINDSTATUS_RESERVED_11 = ( BINDSTATUS_RESERVED_10 + 1 ) , + BINDSTATUS_RESERVED_12 = ( BINDSTATUS_RESERVED_11 + 1 ) , + BINDSTATUS_RESERVED_13 = ( BINDSTATUS_RESERVED_12 + 1 ) , + BINDSTATUS_RESERVED_14 = ( BINDSTATUS_RESERVED_13 + 1 ) , + BINDSTATUS_LAST_PRIVATE = BINDSTATUS_RESERVED_14 + } BINDSTATUS; + + +extern const IID IID_IBindStatusCallback; +# 1626 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IBindStatusCallbackVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IBindStatusCallback * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IBindStatusCallback * This); + + + ULONG ( __stdcall *Release )( + IBindStatusCallback * This); + + + HRESULT ( __stdcall *OnStartBinding )( + IBindStatusCallback * This, + DWORD dwReserved, + IBinding *pib); + + + HRESULT ( __stdcall *GetPriority )( + IBindStatusCallback * This, + LONG *pnPriority); + + + HRESULT ( __stdcall *OnLowResource )( + IBindStatusCallback * This, + DWORD reserved); + + + HRESULT ( __stdcall *OnProgress )( + IBindStatusCallback * This, + ULONG ulProgress, + ULONG ulProgressMax, + ULONG ulStatusCode, + LPCWSTR szStatusText); + + + HRESULT ( __stdcall *OnStopBinding )( + IBindStatusCallback * This, + HRESULT hresult, + LPCWSTR szError); + + + HRESULT ( __stdcall *GetBindInfo )( + IBindStatusCallback * This, + DWORD *grfBINDF, + BINDINFO *pbindinfo); + + + HRESULT ( __stdcall *OnDataAvailable )( + IBindStatusCallback * This, + DWORD grfBSCF, + DWORD dwSize, + FORMATETC *pformatetc, + STGMEDIUM *pstgmed); + + + HRESULT ( __stdcall *OnObjectAvailable )( + IBindStatusCallback * This, + const IID * const riid, + IUnknown *punk); + + + } IBindStatusCallbackVtbl; + + struct IBindStatusCallback + { + struct IBindStatusCallbackVtbl *lpVtbl; + }; +# 1749 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + HRESULT __stdcall IBindStatusCallback_RemoteGetBindInfo_Proxy( + IBindStatusCallback * This, + DWORD *grfBINDF, + RemBINDINFO *pbindinfo, + RemSTGMEDIUM *pstgmed); + + +void __stdcall IBindStatusCallback_RemoteGetBindInfo_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IBindStatusCallback_RemoteOnDataAvailable_Proxy( + IBindStatusCallback * This, + DWORD grfBSCF, + DWORD dwSize, + RemFORMATETC *pformatetc, + RemSTGMEDIUM *pstgmed); + + +void __stdcall IBindStatusCallback_RemoteOnDataAvailable_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 1794 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0005_v0_0_s_ifspec; + + + + + + + +typedef IBindStatusCallbackEx *LPBINDSTATUSCALLBACKEX; + +typedef +enum __MIDL_IBindStatusCallbackEx_0001 + { + BINDF2_DISABLEBASICOVERHTTP = 0x1, + BINDF2_DISABLEAUTOCOOKIEHANDLING = 0x2, + BINDF2_READ_DATA_GREATER_THAN_4GB = 0x4, + BINDF2_DISABLE_HTTP_REDIRECT_XSECURITYID = 0x8, + BINDF2_SETDOWNLOADMODE = 0x20, + BINDF2_DISABLE_HTTP_REDIRECT_CACHING = 0x40, + BINDF2_KEEP_CALLBACK_MODULE_LOADED = 0x80, + BINDF2_ALLOW_PROXY_CRED_PROMPT = 0x100, + BINDF2_RESERVED_17 = 0x200, + BINDF2_RESERVED_16 = 0x400, + BINDF2_RESERVED_15 = 0x800, + BINDF2_RESERVED_14 = 0x1000, + BINDF2_RESERVED_13 = 0x2000, + BINDF2_RESERVED_12 = 0x4000, + BINDF2_RESERVED_11 = 0x8000, + BINDF2_RESERVED_10 = 0x10000, + BINDF2_RESERVED_F = 0x20000, + BINDF2_RESERVED_E = 0x40000, + BINDF2_RESERVED_D = 0x80000, + BINDF2_RESERVED_C = 0x100000, + BINDF2_RESERVED_B = 0x200000, + BINDF2_RESERVED_A = 0x400000, + BINDF2_RESERVED_9 = 0x800000, + BINDF2_RESERVED_8 = 0x1000000, + BINDF2_RESERVED_7 = 0x2000000, + BINDF2_RESERVED_6 = 0x4000000, + BINDF2_RESERVED_5 = 0x8000000, + BINDF2_RESERVED_4 = 0x10000000, + BINDF2_RESERVED_3 = 0x20000000, + BINDF2_RESERVED_2 = 0x40000000, + BINDF2_RESERVED_1 = 0x80000000 + } BINDF2; + + +extern const IID IID_IBindStatusCallbackEx; +# 1861 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IBindStatusCallbackExVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IBindStatusCallbackEx * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IBindStatusCallbackEx * This); + + + ULONG ( __stdcall *Release )( + IBindStatusCallbackEx * This); + + + HRESULT ( __stdcall *OnStartBinding )( + IBindStatusCallbackEx * This, + DWORD dwReserved, + IBinding *pib); + + + HRESULT ( __stdcall *GetPriority )( + IBindStatusCallbackEx * This, + LONG *pnPriority); + + + HRESULT ( __stdcall *OnLowResource )( + IBindStatusCallbackEx * This, + DWORD reserved); + + + HRESULT ( __stdcall *OnProgress )( + IBindStatusCallbackEx * This, + ULONG ulProgress, + ULONG ulProgressMax, + ULONG ulStatusCode, + LPCWSTR szStatusText); + + + HRESULT ( __stdcall *OnStopBinding )( + IBindStatusCallbackEx * This, + HRESULT hresult, + LPCWSTR szError); + + + HRESULT ( __stdcall *GetBindInfo )( + IBindStatusCallbackEx * This, + DWORD *grfBINDF, + BINDINFO *pbindinfo); + + + HRESULT ( __stdcall *OnDataAvailable )( + IBindStatusCallbackEx * This, + DWORD grfBSCF, + DWORD dwSize, + FORMATETC *pformatetc, + STGMEDIUM *pstgmed); + + + HRESULT ( __stdcall *OnObjectAvailable )( + IBindStatusCallbackEx * This, + const IID * const riid, + IUnknown *punk); + + + HRESULT ( __stdcall *GetBindInfoEx )( + IBindStatusCallbackEx * This, + DWORD *grfBINDF, + BINDINFO *pbindinfo, + DWORD *grfBINDF2, + DWORD *pdwReserved); + + + } IBindStatusCallbackExVtbl; + + struct IBindStatusCallbackEx + { + struct IBindStatusCallbackExVtbl *lpVtbl; + }; +# 1996 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + HRESULT __stdcall IBindStatusCallbackEx_RemoteGetBindInfoEx_Proxy( + IBindStatusCallbackEx * This, + DWORD *grfBINDF, + RemBINDINFO *pbindinfo, + RemSTGMEDIUM *pstgmed, + DWORD *grfBINDF2, + DWORD *pdwReserved); + + +void __stdcall IBindStatusCallbackEx_RemoteGetBindInfoEx_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 2024 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0006_v0_0_s_ifspec; + + + + + + + +typedef IAuthenticate *LPAUTHENTICATION; + + +extern const IID IID_IAuthenticate; +# 2054 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IAuthenticateVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IAuthenticate * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IAuthenticate * This); + + + ULONG ( __stdcall *Release )( + IAuthenticate * This); + + + HRESULT ( __stdcall *Authenticate )( + IAuthenticate * This, + HWND *phwnd, + LPWSTR *pszUsername, + LPWSTR *pszPassword); + + + } IAuthenticateVtbl; + + struct IAuthenticate + { + struct IAuthenticateVtbl *lpVtbl; + }; +# 2125 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0007_v0_0_s_ifspec; + + + + + + + +typedef IAuthenticateEx *LPAUTHENTICATIONEX; + +typedef +enum __MIDL_IAuthenticateEx_0001 + { + AUTHENTICATEF_PROXY = 0x1, + AUTHENTICATEF_BASIC = 0x2, + AUTHENTICATEF_HTTP = 0x4 + } AUTHENTICATEF; + +typedef struct _tagAUTHENTICATEINFO + { + DWORD dwFlags; + DWORD dwReserved; + } AUTHENTICATEINFO; + + +extern const IID IID_IAuthenticateEx; +# 2170 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IAuthenticateExVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IAuthenticateEx * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IAuthenticateEx * This); + + + ULONG ( __stdcall *Release )( + IAuthenticateEx * This); + + + HRESULT ( __stdcall *Authenticate )( + IAuthenticateEx * This, + HWND *phwnd, + LPWSTR *pszUsername, + LPWSTR *pszPassword); + + + HRESULT ( __stdcall *AuthenticateEx )( + IAuthenticateEx * This, + HWND *phwnd, + LPWSTR *pszUsername, + LPWSTR *pszPassword, + AUTHENTICATEINFO *pauthinfo); + + + } IAuthenticateExVtbl; + + struct IAuthenticateEx + { + struct IAuthenticateExVtbl *lpVtbl; + }; +# 2253 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0008_v0_0_s_ifspec; + + + + + + + +typedef IHttpNegotiate *LPHTTPNEGOTIATE; + + +extern const IID IID_IHttpNegotiate; +# 2290 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IHttpNegotiateVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IHttpNegotiate * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IHttpNegotiate * This); + + + ULONG ( __stdcall *Release )( + IHttpNegotiate * This); + + + HRESULT ( __stdcall *BeginningTransaction )( + IHttpNegotiate * This, + LPCWSTR szURL, + LPCWSTR szHeaders, + DWORD dwReserved, + LPWSTR *pszAdditionalHeaders); + + + HRESULT ( __stdcall *OnResponse )( + IHttpNegotiate * This, + DWORD dwResponseCode, + LPCWSTR szResponseHeaders, + LPCWSTR szRequestHeaders, + LPWSTR *pszAdditionalRequestHeaders); + + + } IHttpNegotiateVtbl; + + struct IHttpNegotiate + { + struct IHttpNegotiateVtbl *lpVtbl; + }; +# 2373 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0009_v0_0_s_ifspec; + + + + + + + +typedef IHttpNegotiate2 *LPHTTPNEGOTIATE2; + + +extern const IID IID_IHttpNegotiate2; +# 2403 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IHttpNegotiate2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IHttpNegotiate2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IHttpNegotiate2 * This); + + + ULONG ( __stdcall *Release )( + IHttpNegotiate2 * This); + + + HRESULT ( __stdcall *BeginningTransaction )( + IHttpNegotiate2 * This, + LPCWSTR szURL, + LPCWSTR szHeaders, + DWORD dwReserved, + LPWSTR *pszAdditionalHeaders); + + + HRESULT ( __stdcall *OnResponse )( + IHttpNegotiate2 * This, + DWORD dwResponseCode, + LPCWSTR szResponseHeaders, + LPCWSTR szRequestHeaders, + LPWSTR *pszAdditionalRequestHeaders); + + + HRESULT ( __stdcall *GetRootSecurityId )( + IHttpNegotiate2 * This, + BYTE *pbSecurityId, + DWORD *pcbSecurityId, + DWORD_PTR dwReserved); + + + } IHttpNegotiate2Vtbl; + + struct IHttpNegotiate2 + { + struct IHttpNegotiate2Vtbl *lpVtbl; + }; +# 2497 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0010_v0_0_s_ifspec; + + + + + + + +typedef IHttpNegotiate3 *LPHTTPNEGOTIATE3; + + +extern const IID IID_IHttpNegotiate3; +# 2526 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IHttpNegotiate3Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IHttpNegotiate3 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IHttpNegotiate3 * This); + + + ULONG ( __stdcall *Release )( + IHttpNegotiate3 * This); + + + HRESULT ( __stdcall *BeginningTransaction )( + IHttpNegotiate3 * This, + LPCWSTR szURL, + LPCWSTR szHeaders, + DWORD dwReserved, + LPWSTR *pszAdditionalHeaders); + + + HRESULT ( __stdcall *OnResponse )( + IHttpNegotiate3 * This, + DWORD dwResponseCode, + LPCWSTR szResponseHeaders, + LPCWSTR szRequestHeaders, + LPWSTR *pszAdditionalRequestHeaders); + + + HRESULT ( __stdcall *GetRootSecurityId )( + IHttpNegotiate3 * This, + BYTE *pbSecurityId, + DWORD *pcbSecurityId, + DWORD_PTR dwReserved); + + + HRESULT ( __stdcall *GetSerializedClientCertContext )( + IHttpNegotiate3 * This, + BYTE **ppbCert, + DWORD *pcbCert); + + + } IHttpNegotiate3Vtbl; + + struct IHttpNegotiate3 + { + struct IHttpNegotiate3Vtbl *lpVtbl; + }; +# 2630 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0011_v0_0_s_ifspec; + + + + + + + +typedef IWinInetFileStream *LPWININETFILESTREAM; + + +extern const IID IID_IWinInetFileStream; +# 2662 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IWinInetFileStreamVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IWinInetFileStream * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IWinInetFileStream * This); + + + ULONG ( __stdcall *Release )( + IWinInetFileStream * This); + + + HRESULT ( __stdcall *SetHandleForUnlock )( + IWinInetFileStream * This, + DWORD_PTR hWinInetLockHandle, + DWORD_PTR dwReserved); + + + HRESULT ( __stdcall *SetDeleteFile )( + IWinInetFileStream * This, + DWORD_PTR dwReserved); + + + } IWinInetFileStreamVtbl; + + struct IWinInetFileStream + { + struct IWinInetFileStreamVtbl *lpVtbl; + }; +# 2740 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0012_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0012_v0_0_s_ifspec; + + + + + + + +typedef IWindowForBindingUI *LPWINDOWFORBINDINGUI; + + +extern const IID IID_IWindowForBindingUI; +# 2769 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IWindowForBindingUIVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IWindowForBindingUI * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IWindowForBindingUI * This); + + + ULONG ( __stdcall *Release )( + IWindowForBindingUI * This); + + + HRESULT ( __stdcall *GetWindow )( + IWindowForBindingUI * This, + const GUID * const rguidReason, + HWND *phwnd); + + + } IWindowForBindingUIVtbl; + + struct IWindowForBindingUI + { + struct IWindowForBindingUIVtbl *lpVtbl; + }; +# 2839 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0013_v0_0_s_ifspec; + + + + + + + +typedef ICodeInstall *LPCODEINSTALL; + +typedef +enum __MIDL_ICodeInstall_0001 + { + CIP_DISK_FULL = 0, + CIP_ACCESS_DENIED = ( CIP_DISK_FULL + 1 ) , + CIP_NEWER_VERSION_EXISTS = ( CIP_ACCESS_DENIED + 1 ) , + CIP_OLDER_VERSION_EXISTS = ( CIP_NEWER_VERSION_EXISTS + 1 ) , + CIP_NAME_CONFLICT = ( CIP_OLDER_VERSION_EXISTS + 1 ) , + CIP_TRUST_VERIFICATION_COMPONENT_MISSING = ( CIP_NAME_CONFLICT + 1 ) , + CIP_EXE_SELF_REGISTERATION_TIMEOUT = ( CIP_TRUST_VERIFICATION_COMPONENT_MISSING + 1 ) , + CIP_UNSAFE_TO_ABORT = ( CIP_EXE_SELF_REGISTERATION_TIMEOUT + 1 ) , + CIP_NEED_REBOOT = ( CIP_UNSAFE_TO_ABORT + 1 ) , + CIP_NEED_REBOOT_UI_PERMISSION = ( CIP_NEED_REBOOT + 1 ) + } CIP_STATUS; + + +extern const IID IID_ICodeInstall; +# 2885 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct ICodeInstallVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ICodeInstall * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ICodeInstall * This); + + + ULONG ( __stdcall *Release )( + ICodeInstall * This); + + + HRESULT ( __stdcall *GetWindow )( + ICodeInstall * This, + const GUID * const rguidReason, + HWND *phwnd); + + + HRESULT ( __stdcall *OnCodeInstallProblem )( + ICodeInstall * This, + ULONG ulStatusCode, + LPCWSTR szDestination, + LPCWSTR szSource, + DWORD dwReserved); + + + } ICodeInstallVtbl; + + struct ICodeInstall + { + struct ICodeInstallVtbl *lpVtbl; + }; +# 2972 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0014_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0014_v0_0_s_ifspec; + + + + + + + +typedef +enum __MIDL_IUri_0001 + { + Uri_PROPERTY_ABSOLUTE_URI = 0, + Uri_PROPERTY_STRING_START = Uri_PROPERTY_ABSOLUTE_URI, + Uri_PROPERTY_AUTHORITY = 1, + Uri_PROPERTY_DISPLAY_URI = 2, + Uri_PROPERTY_DOMAIN = 3, + Uri_PROPERTY_EXTENSION = 4, + Uri_PROPERTY_FRAGMENT = 5, + Uri_PROPERTY_HOST = 6, + Uri_PROPERTY_PASSWORD = 7, + Uri_PROPERTY_PATH = 8, + Uri_PROPERTY_PATH_AND_QUERY = 9, + Uri_PROPERTY_QUERY = 10, + Uri_PROPERTY_RAW_URI = 11, + Uri_PROPERTY_SCHEME_NAME = 12, + Uri_PROPERTY_USER_INFO = 13, + Uri_PROPERTY_USER_NAME = 14, + Uri_PROPERTY_STRING_LAST = Uri_PROPERTY_USER_NAME, + Uri_PROPERTY_HOST_TYPE = 15, + Uri_PROPERTY_DWORD_START = Uri_PROPERTY_HOST_TYPE, + Uri_PROPERTY_PORT = 16, + Uri_PROPERTY_SCHEME = 17, + Uri_PROPERTY_ZONE = 18, + Uri_PROPERTY_DWORD_LAST = Uri_PROPERTY_ZONE + } Uri_PROPERTY; + +typedef +enum __MIDL_IUri_0002 + { + Uri_HOST_UNKNOWN = 0, + Uri_HOST_DNS = ( Uri_HOST_UNKNOWN + 1 ) , + Uri_HOST_IPV4 = ( Uri_HOST_DNS + 1 ) , + Uri_HOST_IPV6 = ( Uri_HOST_IPV4 + 1 ) , + Uri_HOST_IDN = ( Uri_HOST_IPV6 + 1 ) + } Uri_HOST_TYPE; + + +extern const IID IID_IUri; +# 3116 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IUriVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IUri * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IUri * This); + + + ULONG ( __stdcall *Release )( + IUri * This); + + + HRESULT ( __stdcall *GetPropertyBSTR )( + IUri * This, + Uri_PROPERTY uriProp, + BSTR *pbstrProperty, + DWORD dwFlags); + + + HRESULT ( __stdcall *GetPropertyLength )( + IUri * This, + Uri_PROPERTY uriProp, + DWORD *pcchProperty, + DWORD dwFlags); + + + HRESULT ( __stdcall *GetPropertyDWORD )( + IUri * This, + Uri_PROPERTY uriProp, + DWORD *pdwProperty, + DWORD dwFlags); + + + HRESULT ( __stdcall *HasProperty )( + IUri * This, + Uri_PROPERTY uriProp, + BOOL *pfHasProperty); + + + HRESULT ( __stdcall *GetAbsoluteUri )( + IUri * This, + BSTR *pbstrAbsoluteUri); + + + HRESULT ( __stdcall *GetAuthority )( + IUri * This, + BSTR *pbstrAuthority); + + + HRESULT ( __stdcall *GetDisplayUri )( + IUri * This, + BSTR *pbstrDisplayString); + + + HRESULT ( __stdcall *GetDomain )( + IUri * This, + BSTR *pbstrDomain); + + + HRESULT ( __stdcall *GetExtension )( + IUri * This, + BSTR *pbstrExtension); + + + HRESULT ( __stdcall *GetFragment )( + IUri * This, + BSTR *pbstrFragment); + + + HRESULT ( __stdcall *GetHost )( + IUri * This, + BSTR *pbstrHost); + + + HRESULT ( __stdcall *GetPassword )( + IUri * This, + BSTR *pbstrPassword); + + + HRESULT ( __stdcall *GetPath )( + IUri * This, + BSTR *pbstrPath); + + + HRESULT ( __stdcall *GetPathAndQuery )( + IUri * This, + BSTR *pbstrPathAndQuery); + + + HRESULT ( __stdcall *GetQuery )( + IUri * This, + BSTR *pbstrQuery); + + + HRESULT ( __stdcall *GetRawUri )( + IUri * This, + BSTR *pbstrRawUri); + + + HRESULT ( __stdcall *GetSchemeName )( + IUri * This, + BSTR *pbstrSchemeName); + + + HRESULT ( __stdcall *GetUserInfo )( + IUri * This, + BSTR *pbstrUserInfo); + + + HRESULT ( __stdcall *GetUserNameA )( + IUri * This, + BSTR *pbstrUserName); + + + HRESULT ( __stdcall *GetHostType )( + IUri * This, + DWORD *pdwHostType); + + + HRESULT ( __stdcall *GetPort )( + IUri * This, + DWORD *pdwPort); + + + HRESULT ( __stdcall *GetScheme )( + IUri * This, + DWORD *pdwScheme); + + + HRESULT ( __stdcall *GetZone )( + IUri * This, + DWORD *pdwZone); + + + HRESULT ( __stdcall *GetProperties )( + IUri * This, + LPDWORD pdwFlags); + + + HRESULT ( __stdcall *IsEqual )( + IUri * This, + IUri *pUri, + BOOL *pfEqual); + + + } IUriVtbl; + + struct IUri + { + struct IUriVtbl *lpVtbl; + }; +# 3380 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern HRESULT __stdcall CreateUri( LPCWSTR pwzURI, + DWORD dwFlags, + DWORD_PTR dwReserved, + IUri** ppURI); + +extern HRESULT __stdcall CreateUriWithFragment( + LPCWSTR pwzURI, + LPCWSTR pwzFragment, + DWORD dwFlags, + DWORD_PTR dwReserved, + IUri** ppURI); + + + + + + +extern HRESULT __stdcall CreateUriFromMultiByteString( + LPCSTR pszANSIInputUri, + DWORD dwEncodingFlags, + DWORD dwCodePage, + DWORD dwCreateFlags, + DWORD_PTR dwReserved, + IUri** ppUri); +# 3480 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0015_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0015_v0_0_s_ifspec; +# 3490 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IUriContainer; +# 3506 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IUriContainerVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IUriContainer * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IUriContainer * This); + + + ULONG ( __stdcall *Release )( + IUriContainer * This); + + + HRESULT ( __stdcall *GetIUri )( + IUriContainer * This, + IUri **ppIUri); + + + } IUriContainerVtbl; + + struct IUriContainer + { + struct IUriContainerVtbl *lpVtbl; + }; +# 3574 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IUriBuilder; +# 3703 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IUriBuilderVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IUriBuilder * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IUriBuilder * This); + + + ULONG ( __stdcall *Release )( + IUriBuilder * This); + + + HRESULT ( __stdcall *CreateUriSimple )( + IUriBuilder * This, + DWORD dwAllowEncodingPropertyMask, + DWORD_PTR dwReserved, + + IUri **ppIUri); + + + HRESULT ( __stdcall *CreateUri )( + IUriBuilder * This, + DWORD dwCreateFlags, + DWORD dwAllowEncodingPropertyMask, + DWORD_PTR dwReserved, + + IUri **ppIUri); + + + HRESULT ( __stdcall *CreateUriWithFlags )( + IUriBuilder * This, + DWORD dwCreateFlags, + DWORD dwUriBuilderFlags, + DWORD dwAllowEncodingPropertyMask, + DWORD_PTR dwReserved, + + IUri **ppIUri); + + + HRESULT ( __stdcall *GetIUri )( + IUriBuilder * This, + + IUri **ppIUri); + + + HRESULT ( __stdcall *SetIUri )( + IUriBuilder * This, + + IUri *pIUri); + + + HRESULT ( __stdcall *GetFragment )( + IUriBuilder * This, + + DWORD *pcchFragment, + + LPCWSTR *ppwzFragment); + + + HRESULT ( __stdcall *GetHost )( + IUriBuilder * This, + + DWORD *pcchHost, + + LPCWSTR *ppwzHost); + + + HRESULT ( __stdcall *GetPassword )( + IUriBuilder * This, + + DWORD *pcchPassword, + + LPCWSTR *ppwzPassword); + + + HRESULT ( __stdcall *GetPath )( + IUriBuilder * This, + + DWORD *pcchPath, + + LPCWSTR *ppwzPath); + + + HRESULT ( __stdcall *GetPort )( + IUriBuilder * This, + + BOOL *pfHasPort, + + DWORD *pdwPort); + + + HRESULT ( __stdcall *GetQuery )( + IUriBuilder * This, + + DWORD *pcchQuery, + + LPCWSTR *ppwzQuery); + + + HRESULT ( __stdcall *GetSchemeName )( + IUriBuilder * This, + + DWORD *pcchSchemeName, + + LPCWSTR *ppwzSchemeName); + + + HRESULT ( __stdcall *GetUserNameA )( + IUriBuilder * This, + + DWORD *pcchUserName, + + LPCWSTR *ppwzUserName); + + + HRESULT ( __stdcall *SetFragment )( + IUriBuilder * This, + + LPCWSTR pwzNewValue); + + + HRESULT ( __stdcall *SetHost )( + IUriBuilder * This, + + LPCWSTR pwzNewValue); + + + HRESULT ( __stdcall *SetPassword )( + IUriBuilder * This, + + LPCWSTR pwzNewValue); + + + HRESULT ( __stdcall *SetPath )( + IUriBuilder * This, + + LPCWSTR pwzNewValue); + + + HRESULT ( __stdcall *SetPortA )( + IUriBuilder * This, + BOOL fHasPort, + DWORD dwNewValue); + + + HRESULT ( __stdcall *SetQuery )( + IUriBuilder * This, + + LPCWSTR pwzNewValue); + + + HRESULT ( __stdcall *SetSchemeName )( + IUriBuilder * This, + + LPCWSTR pwzNewValue); + + + HRESULT ( __stdcall *SetUserName )( + IUriBuilder * This, + + LPCWSTR pwzNewValue); + + + HRESULT ( __stdcall *RemoveProperties )( + IUriBuilder * This, + DWORD dwPropertyMask); + + + HRESULT ( __stdcall *HasBeenModified )( + IUriBuilder * This, + + BOOL *pfModified); + + + } IUriBuilderVtbl; + + struct IUriBuilder + { + struct IUriBuilderVtbl *lpVtbl; + }; +# 3994 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IUriBuilderFactory; +# 4023 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IUriBuilderFactoryVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IUriBuilderFactory * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IUriBuilderFactory * This); + + + ULONG ( __stdcall *Release )( + IUriBuilderFactory * This); + + + HRESULT ( __stdcall *CreateIUriBuilder )( + IUriBuilderFactory * This, + + DWORD dwFlags, + + DWORD_PTR dwReserved, + + IUriBuilder **ppIUriBuilder); + + + HRESULT ( __stdcall *CreateInitializedIUriBuilder )( + IUriBuilderFactory * This, + + DWORD dwFlags, + + DWORD_PTR dwReserved, + + IUriBuilder **ppIUriBuilder); + + + } IUriBuilderFactoryVtbl; + + struct IUriBuilderFactory + { + struct IUriBuilderFactoryVtbl *lpVtbl; + }; +# 4105 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern HRESULT __stdcall CreateIUriBuilder( + IUri *pIUri, + DWORD dwFlags, + DWORD_PTR dwReserved, + IUriBuilder **ppIUriBuilder + ); +# 4120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0018_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0018_v0_0_s_ifspec; + + + + + + + +typedef IWinInetInfo *LPWININETINFO; + + +extern const IID IID_IWinInetInfo; +# 4150 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IWinInetInfoVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IWinInetInfo * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IWinInetInfo * This); + + + ULONG ( __stdcall *Release )( + IWinInetInfo * This); + + + HRESULT ( __stdcall *QueryOption )( + IWinInetInfo * This, + DWORD dwOption, + LPVOID pBuffer, + DWORD *pcbBuf); + + + } IWinInetInfoVtbl; + + struct IWinInetInfo + { + struct IWinInetInfoVtbl *lpVtbl; + }; +# 4209 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + HRESULT __stdcall IWinInetInfo_RemoteQueryOption_Proxy( + IWinInetInfo * This, + DWORD dwOption, + BYTE *pBuffer, + DWORD *pcbBuf); + + +void __stdcall IWinInetInfo_RemoteQueryOption_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 4236 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0019_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0019_v0_0_s_ifspec; + + + + + + + +typedef IHttpSecurity *LPHTTPSECURITY; + + +extern const IID IID_IHttpSecurity; +# 4264 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IHttpSecurityVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IHttpSecurity * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IHttpSecurity * This); + + + ULONG ( __stdcall *Release )( + IHttpSecurity * This); + + + HRESULT ( __stdcall *GetWindow )( + IHttpSecurity * This, + const GUID * const rguidReason, + HWND *phwnd); + + + HRESULT ( __stdcall *OnSecurityProblem )( + IHttpSecurity * This, + DWORD dwProblem); + + + } IHttpSecurityVtbl; + + struct IHttpSecurity + { + struct IHttpSecurityVtbl *lpVtbl; + }; +# 4343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0020_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0020_v0_0_s_ifspec; + + + + + + + +typedef IWinInetHttpInfo *LPWININETHTTPINFO; + + +extern const IID IID_IWinInetHttpInfo; +# 4375 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IWinInetHttpInfoVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IWinInetHttpInfo * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IWinInetHttpInfo * This); + + + ULONG ( __stdcall *Release )( + IWinInetHttpInfo * This); + + + HRESULT ( __stdcall *QueryOption )( + IWinInetHttpInfo * This, + DWORD dwOption, + LPVOID pBuffer, + DWORD *pcbBuf); + + + HRESULT ( __stdcall *QueryInfo )( + IWinInetHttpInfo * This, + DWORD dwOption, + LPVOID pBuffer, + DWORD *pcbBuf, + DWORD *pdwFlags, + DWORD *pdwReserved); + + + } IWinInetHttpInfoVtbl; + + struct IWinInetHttpInfo + { + struct IWinInetHttpInfoVtbl *lpVtbl; + }; +# 4447 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + HRESULT __stdcall IWinInetHttpInfo_RemoteQueryInfo_Proxy( + IWinInetHttpInfo * This, + DWORD dwOption, + BYTE *pBuffer, + DWORD *pcbBuf, + DWORD *pdwFlags, + DWORD *pdwReserved); + + +void __stdcall IWinInetHttpInfo_RemoteQueryInfo_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 4475 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0021_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0021_v0_0_s_ifspec; +# 4485 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IWinInetHttpTimeouts; +# 4506 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IWinInetHttpTimeoutsVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IWinInetHttpTimeouts * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IWinInetHttpTimeouts * This); + + + ULONG ( __stdcall *Release )( + IWinInetHttpTimeouts * This); + + + HRESULT ( __stdcall *GetRequestTimeouts )( + IWinInetHttpTimeouts * This, + + DWORD *pdwConnectTimeout, + + DWORD *pdwSendTimeout, + + DWORD *pdwReceiveTimeout); + + + } IWinInetHttpTimeoutsVtbl; + + struct IWinInetHttpTimeouts + { + struct IWinInetHttpTimeoutsVtbl *lpVtbl; + }; +# 4581 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0022_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0022_v0_0_s_ifspec; + + + + + + + +typedef IWinInetCacheHints *LPWININETCACHEHINTS; + + +extern const IID IID_IWinInetCacheHints; +# 4613 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IWinInetCacheHintsVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IWinInetCacheHints * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IWinInetCacheHints * This); + + + ULONG ( __stdcall *Release )( + IWinInetCacheHints * This); + + + HRESULT ( __stdcall *SetCacheExtension )( + IWinInetCacheHints * This, + LPCWSTR pwzExt, + LPVOID pszCacheFile, + DWORD *pcbCacheFile, + DWORD *pdwWinInetError, + DWORD *pdwReserved); + + + } IWinInetCacheHintsVtbl; + + struct IWinInetCacheHints + { + struct IWinInetCacheHintsVtbl *lpVtbl; + }; +# 4688 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0023_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0023_v0_0_s_ifspec; + + + + + + + +typedef IWinInetCacheHints2 *LPWININETCACHEHINTS2; + + +extern const IID IID_IWinInetCacheHints2; +# 4721 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IWinInetCacheHints2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IWinInetCacheHints2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IWinInetCacheHints2 * This); + + + ULONG ( __stdcall *Release )( + IWinInetCacheHints2 * This); + + + HRESULT ( __stdcall *SetCacheExtension )( + IWinInetCacheHints2 * This, + LPCWSTR pwzExt, + LPVOID pszCacheFile, + DWORD *pcbCacheFile, + DWORD *pdwWinInetError, + DWORD *pdwReserved); + + + HRESULT ( __stdcall *SetCacheExtension2 )( + IWinInetCacheHints2 * This, + LPCWSTR pwzExt, + + WCHAR *pwzCacheFile, + DWORD *pcchCacheFile, + DWORD *pdwWinInetError, + DWORD *pdwReserved); + + + } IWinInetCacheHints2Vtbl; + + struct IWinInetCacheHints2 + { + struct IWinInetCacheHints2Vtbl *lpVtbl; + }; +# 4809 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const GUID SID_BindHost; + + +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0024_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0024_v0_0_s_ifspec; + + + + + + + +typedef IBindHost *LPBINDHOST; + + +extern const IID IID_IBindHost; +# 4857 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IBindHostVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IBindHost * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IBindHost * This); + + + ULONG ( __stdcall *Release )( + IBindHost * This); + + + HRESULT ( __stdcall *CreateMoniker )( + IBindHost * This, + LPOLESTR szName, + IBindCtx *pBC, + IMoniker **ppmk, + DWORD dwReserved); + + + HRESULT ( __stdcall *MonikerBindToStorage )( + IBindHost * This, + IMoniker *pMk, + IBindCtx *pBC, + IBindStatusCallback *pBSC, + const IID * const riid, + void **ppvObj); + + + HRESULT ( __stdcall *MonikerBindToObject )( + IBindHost * This, + IMoniker *pMk, + IBindCtx *pBC, + IBindStatusCallback *pBSC, + const IID * const riid, + void **ppvObj); + + + } IBindHostVtbl; + + struct IBindHost + { + struct IBindHostVtbl *lpVtbl; + }; +# 4941 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + HRESULT __stdcall IBindHost_RemoteMonikerBindToStorage_Proxy( + IBindHost * This, + IMoniker *pMk, + IBindCtx *pBC, + IBindStatusCallback *pBSC, + const IID * const riid, + IUnknown **ppvObj); + + +void __stdcall IBindHost_RemoteMonikerBindToStorage_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + HRESULT __stdcall IBindHost_RemoteMonikerBindToObject_Proxy( + IBindHost * This, + IMoniker *pMk, + IBindCtx *pBC, + IBindStatusCallback *pBSC, + const IID * const riid, + IUnknown **ppvObj); + + +void __stdcall IBindHost_RemoteMonikerBindToObject_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); +# 4989 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +struct IBindStatusCallback; +extern HRESULT __stdcall HlinkSimpleNavigateToString( + LPCWSTR szTarget, + LPCWSTR szLocation, + LPCWSTR szTargetFrameName, + IUnknown *pUnk, + IBindCtx *pbc, + IBindStatusCallback *, + DWORD grfHLNF, + DWORD dwReserved +); + +extern HRESULT __stdcall HlinkSimpleNavigateToMoniker( + IMoniker *pmkTarget, + LPCWSTR szLocation, + LPCWSTR szTargetFrameName, + IUnknown *pUnk, + IBindCtx *pbc, + IBindStatusCallback *, + DWORD grfHLNF, + DWORD dwReserved +); + +extern HRESULT __stdcall URLOpenStreamA( LPUNKNOWN, LPCSTR,DWORD, LPBINDSTATUSCALLBACK); +extern HRESULT __stdcall URLOpenStreamW( LPUNKNOWN, LPCWSTR,DWORD, LPBINDSTATUSCALLBACK); +extern HRESULT __stdcall URLOpenPullStreamA( LPUNKNOWN, LPCSTR,DWORD, LPBINDSTATUSCALLBACK); +extern HRESULT __stdcall URLOpenPullStreamW( LPUNKNOWN, LPCWSTR,DWORD, LPBINDSTATUSCALLBACK); +extern HRESULT __stdcall URLDownloadToFileA( LPUNKNOWN, LPCSTR, LPCSTR,DWORD, LPBINDSTATUSCALLBACK); +extern HRESULT __stdcall URLDownloadToFileW( LPUNKNOWN, LPCWSTR, LPCWSTR,DWORD, LPBINDSTATUSCALLBACK); +extern HRESULT __stdcall URLDownloadToCacheFileA( LPUNKNOWN, LPCSTR, LPSTR, DWORD cchFileName, DWORD, LPBINDSTATUSCALLBACK); +extern HRESULT __stdcall URLDownloadToCacheFileW( LPUNKNOWN, LPCWSTR, LPWSTR, DWORD cchFileName, DWORD, LPBINDSTATUSCALLBACK); +extern HRESULT __stdcall URLOpenBlockingStreamA( LPUNKNOWN, LPCSTR, LPSTREAM*,DWORD, LPBINDSTATUSCALLBACK); +extern HRESULT __stdcall URLOpenBlockingStreamW( LPUNKNOWN, LPCWSTR, LPSTREAM*,DWORD, LPBINDSTATUSCALLBACK); +# 5038 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern HRESULT __stdcall HlinkGoBack( IUnknown *pUnk); +extern HRESULT __stdcall HlinkGoForward( IUnknown *pUnk); +extern HRESULT __stdcall HlinkNavigateString( IUnknown *pUnk, LPCWSTR szTarget); +extern HRESULT __stdcall HlinkNavigateMoniker( IUnknown *pUnk, IMoniker *pmkTarget); +# 5058 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0025_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0025_v0_0_s_ifspec; + + + + + + + +typedef IInternet *LPIINTERNET; + + +extern const IID IID_IInternet; +# 5083 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternet * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternet * This); + + + ULONG ( __stdcall *Release )( + IInternet * This); + + + } IInternetVtbl; + + struct IInternet + { + struct IInternetVtbl *lpVtbl; + }; +# 5144 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0026_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0026_v0_0_s_ifspec; + + + + + + + +typedef IInternetBindInfo *LPIINTERNETBINDINFO; + +typedef +enum tagBINDSTRING + { + BINDSTRING_HEADERS = 1, + BINDSTRING_ACCEPT_MIMES = ( BINDSTRING_HEADERS + 1 ) , + BINDSTRING_EXTRA_URL = ( BINDSTRING_ACCEPT_MIMES + 1 ) , + BINDSTRING_LANGUAGE = ( BINDSTRING_EXTRA_URL + 1 ) , + BINDSTRING_USERNAME = ( BINDSTRING_LANGUAGE + 1 ) , + BINDSTRING_PASSWORD = ( BINDSTRING_USERNAME + 1 ) , + BINDSTRING_UA_PIXELS = ( BINDSTRING_PASSWORD + 1 ) , + BINDSTRING_UA_COLOR = ( BINDSTRING_UA_PIXELS + 1 ) , + BINDSTRING_OS = ( BINDSTRING_UA_COLOR + 1 ) , + BINDSTRING_USER_AGENT = ( BINDSTRING_OS + 1 ) , + BINDSTRING_ACCEPT_ENCODINGS = ( BINDSTRING_USER_AGENT + 1 ) , + BINDSTRING_POST_COOKIE = ( BINDSTRING_ACCEPT_ENCODINGS + 1 ) , + BINDSTRING_POST_DATA_MIME = ( BINDSTRING_POST_COOKIE + 1 ) , + BINDSTRING_URL = ( BINDSTRING_POST_DATA_MIME + 1 ) , + BINDSTRING_IID = ( BINDSTRING_URL + 1 ) , + BINDSTRING_FLAG_BIND_TO_OBJECT = ( BINDSTRING_IID + 1 ) , + BINDSTRING_PTR_BIND_CONTEXT = ( BINDSTRING_FLAG_BIND_TO_OBJECT + 1 ) , + BINDSTRING_XDR_ORIGIN = ( BINDSTRING_PTR_BIND_CONTEXT + 1 ) , + BINDSTRING_DOWNLOADPATH = ( BINDSTRING_XDR_ORIGIN + 1 ) , + BINDSTRING_ROOTDOC_URL = ( BINDSTRING_DOWNLOADPATH + 1 ) , + BINDSTRING_INITIAL_FILENAME = ( BINDSTRING_ROOTDOC_URL + 1 ) , + BINDSTRING_PROXY_USERNAME = ( BINDSTRING_INITIAL_FILENAME + 1 ) , + BINDSTRING_PROXY_PASSWORD = ( BINDSTRING_PROXY_USERNAME + 1 ) , + BINDSTRING_ENTERPRISE_ID = ( BINDSTRING_PROXY_PASSWORD + 1 ) , + BINDSTRING_DOC_URL = ( BINDSTRING_ENTERPRISE_ID + 1 ) , + BINDSTRING_SAMESITE_COOKIE_LEVEL = ( BINDSTRING_DOC_URL + 1 ) + } BINDSTRING; + + +extern const IID IID_IInternetBindInfo; +# 5211 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetBindInfoVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetBindInfo * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetBindInfo * This); + + + ULONG ( __stdcall *Release )( + IInternetBindInfo * This); + + + HRESULT ( __stdcall *GetBindInfo )( + IInternetBindInfo * This, + DWORD *grfBINDF, + BINDINFO *pbindinfo); + + + HRESULT ( __stdcall *GetBindString )( + IInternetBindInfo * This, + ULONG ulStringType, + + LPOLESTR *ppwzStr, + ULONG cEl, + ULONG *pcElFetched); + + + } IInternetBindInfoVtbl; + + struct IInternetBindInfo + { + struct IInternetBindInfoVtbl *lpVtbl; + }; +# 5293 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0027_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0027_v0_0_s_ifspec; + + + + + + + +typedef IInternetBindInfoEx *LPIINTERNETBINDINFOEX; + + +extern const IID IID_IInternetBindInfoEx; +# 5324 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetBindInfoExVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetBindInfoEx * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetBindInfoEx * This); + + + ULONG ( __stdcall *Release )( + IInternetBindInfoEx * This); + + + HRESULT ( __stdcall *GetBindInfo )( + IInternetBindInfoEx * This, + DWORD *grfBINDF, + BINDINFO *pbindinfo); + + + HRESULT ( __stdcall *GetBindString )( + IInternetBindInfoEx * This, + ULONG ulStringType, + + LPOLESTR *ppwzStr, + ULONG cEl, + ULONG *pcElFetched); + + + HRESULT ( __stdcall *GetBindInfoEx )( + IInternetBindInfoEx * This, + DWORD *grfBINDF, + BINDINFO *pbindinfo, + DWORD *grfBINDF2, + DWORD *pdwReserved); + + + } IInternetBindInfoExVtbl; + + struct IInternetBindInfoEx + { + struct IInternetBindInfoExVtbl *lpVtbl; + }; +# 5418 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0028_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0028_v0_0_s_ifspec; + + + + + + + +typedef IInternetProtocolRoot *LPIINTERNETPROTOCOLROOT; + +typedef +enum _tagPI_FLAGS + { + PI_PARSE_URL = 0x1, + PI_FILTER_MODE = 0x2, + PI_FORCE_ASYNC = 0x4, + PI_USE_WORKERTHREAD = 0x8, + PI_MIMEVERIFICATION = 0x10, + PI_CLSIDLOOKUP = 0x20, + PI_DATAPROGRESS = 0x40, + PI_SYNCHRONOUS = 0x80, + PI_APARTMENTTHREADED = 0x100, + PI_CLASSINSTALL = 0x200, + PI_PASSONBINDCTX = 0x2000, + PI_NOMIMEHANDLER = 0x8000, + PI_LOADAPPDIRECT = 0x4000, + PD_FORCE_SWITCH = 0x10000, + PI_PREFERDEFAULTHANDLER = 0x20000 + } PI_FLAGS; + +typedef struct _tagPROTOCOLDATA + { + DWORD grfFlags; + DWORD dwState; + LPVOID pData; + ULONG cbData; + } PROTOCOLDATA; + +typedef struct _tagStartParam + { + IID iid; + IBindCtx *pIBindCtx; + IUnknown *pItf; + } StartParam; + + +extern const IID IID_IInternetProtocolRoot; +# 5499 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetProtocolRootVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetProtocolRoot * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetProtocolRoot * This); + + + ULONG ( __stdcall *Release )( + IInternetProtocolRoot * This); + + + HRESULT ( __stdcall *Start )( + IInternetProtocolRoot * This, + LPCWSTR szUrl, + IInternetProtocolSink *pOIProtSink, + IInternetBindInfo *pOIBindInfo, + DWORD grfPI, + HANDLE_PTR dwReserved); + + + HRESULT ( __stdcall *Continue )( + IInternetProtocolRoot * This, + PROTOCOLDATA *pProtocolData); + + + HRESULT ( __stdcall *Abort )( + IInternetProtocolRoot * This, + HRESULT hrReason, + DWORD dwOptions); + + + HRESULT ( __stdcall *Terminate )( + IInternetProtocolRoot * This, + DWORD dwOptions); + + + HRESULT ( __stdcall *Suspend )( + IInternetProtocolRoot * This); + + + HRESULT ( __stdcall *Resume )( + IInternetProtocolRoot * This); + + + } IInternetProtocolRootVtbl; + + struct IInternetProtocolRoot + { + struct IInternetProtocolRootVtbl *lpVtbl; + }; +# 5611 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0029_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0029_v0_0_s_ifspec; + + + + + + + +typedef IInternetProtocol *LPIINTERNETPROTOCOL; + + +extern const IID IID_IInternetProtocol; +# 5651 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetProtocolVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetProtocol * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetProtocol * This); + + + ULONG ( __stdcall *Release )( + IInternetProtocol * This); + + + HRESULT ( __stdcall *Start )( + IInternetProtocol * This, + LPCWSTR szUrl, + IInternetProtocolSink *pOIProtSink, + IInternetBindInfo *pOIBindInfo, + DWORD grfPI, + HANDLE_PTR dwReserved); + + + HRESULT ( __stdcall *Continue )( + IInternetProtocol * This, + PROTOCOLDATA *pProtocolData); + + + HRESULT ( __stdcall *Abort )( + IInternetProtocol * This, + HRESULT hrReason, + DWORD dwOptions); + + + HRESULT ( __stdcall *Terminate )( + IInternetProtocol * This, + DWORD dwOptions); + + + HRESULT ( __stdcall *Suspend )( + IInternetProtocol * This); + + + HRESULT ( __stdcall *Resume )( + IInternetProtocol * This); + + + HRESULT ( __stdcall *Read )( + IInternetProtocol * This, + void *pv, + ULONG cb, + ULONG *pcbRead); + + + HRESULT ( __stdcall *Seek )( + IInternetProtocol * This, + LARGE_INTEGER dlibMove, + DWORD dwOrigin, + ULARGE_INTEGER *plibNewPosition); + + + HRESULT ( __stdcall *LockRequest )( + IInternetProtocol * This, + DWORD dwOptions); + + + HRESULT ( __stdcall *UnlockRequest )( + IInternetProtocol * This); + + + } IInternetProtocolVtbl; + + struct IInternetProtocol + { + struct IInternetProtocolVtbl *lpVtbl; + }; +# 5800 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0030_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0030_v0_0_s_ifspec; +# 5810 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IInternetProtocolEx; +# 5830 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetProtocolExVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetProtocolEx * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetProtocolEx * This); + + + ULONG ( __stdcall *Release )( + IInternetProtocolEx * This); + + + HRESULT ( __stdcall *Start )( + IInternetProtocolEx * This, + LPCWSTR szUrl, + IInternetProtocolSink *pOIProtSink, + IInternetBindInfo *pOIBindInfo, + DWORD grfPI, + HANDLE_PTR dwReserved); + + + HRESULT ( __stdcall *Continue )( + IInternetProtocolEx * This, + PROTOCOLDATA *pProtocolData); + + + HRESULT ( __stdcall *Abort )( + IInternetProtocolEx * This, + HRESULT hrReason, + DWORD dwOptions); + + + HRESULT ( __stdcall *Terminate )( + IInternetProtocolEx * This, + DWORD dwOptions); + + + HRESULT ( __stdcall *Suspend )( + IInternetProtocolEx * This); + + + HRESULT ( __stdcall *Resume )( + IInternetProtocolEx * This); + + + HRESULT ( __stdcall *Read )( + IInternetProtocolEx * This, + void *pv, + ULONG cb, + ULONG *pcbRead); + + + HRESULT ( __stdcall *Seek )( + IInternetProtocolEx * This, + LARGE_INTEGER dlibMove, + DWORD dwOrigin, + ULARGE_INTEGER *plibNewPosition); + + + HRESULT ( __stdcall *LockRequest )( + IInternetProtocolEx * This, + DWORD dwOptions); + + + HRESULT ( __stdcall *UnlockRequest )( + IInternetProtocolEx * This); + + + HRESULT ( __stdcall *StartEx )( + IInternetProtocolEx * This, + IUri *pUri, + IInternetProtocolSink *pOIProtSink, + IInternetBindInfo *pOIBindInfo, + DWORD grfPI, + HANDLE_PTR dwReserved); + + + } IInternetProtocolExVtbl; + + struct IInternetProtocolEx + { + struct IInternetProtocolExVtbl *lpVtbl; + }; +# 5992 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0031_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0031_v0_0_s_ifspec; + + + + + + + +typedef IInternetProtocolSink *LPIINTERNETPROTOCOLSINK; + + +extern const IID IID_IInternetProtocolSink; +# 6034 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetProtocolSinkVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetProtocolSink * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetProtocolSink * This); + + + ULONG ( __stdcall *Release )( + IInternetProtocolSink * This); + + + HRESULT ( __stdcall *Switch )( + IInternetProtocolSink * This, + PROTOCOLDATA *pProtocolData); + + + HRESULT ( __stdcall *ReportProgress )( + IInternetProtocolSink * This, + ULONG ulStatusCode, + LPCWSTR szStatusText); + + + HRESULT ( __stdcall *ReportData )( + IInternetProtocolSink * This, + DWORD grfBSCF, + ULONG ulProgress, + ULONG ulProgressMax); + + + HRESULT ( __stdcall *ReportResult )( + IInternetProtocolSink * This, + HRESULT hrResult, + DWORD dwError, + LPCWSTR szResult); + + + } IInternetProtocolSinkVtbl; + + struct IInternetProtocolSink + { + struct IInternetProtocolSinkVtbl *lpVtbl; + }; +# 6132 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0032_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0032_v0_0_s_ifspec; + + + + + + + +typedef IInternetProtocolSinkStackable *LPIINTERNETPROTOCOLSINKStackable; + + +extern const IID IID_IInternetProtocolSinkStackable; +# 6164 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetProtocolSinkStackableVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetProtocolSinkStackable * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetProtocolSinkStackable * This); + + + ULONG ( __stdcall *Release )( + IInternetProtocolSinkStackable * This); + + + HRESULT ( __stdcall *SwitchSink )( + IInternetProtocolSinkStackable * This, + IInternetProtocolSink *pOIProtSink); + + + HRESULT ( __stdcall *CommitSwitch )( + IInternetProtocolSinkStackable * This); + + + HRESULT ( __stdcall *RollbackSwitch )( + IInternetProtocolSinkStackable * This); + + + } IInternetProtocolSinkStackableVtbl; + + struct IInternetProtocolSinkStackable + { + struct IInternetProtocolSinkStackableVtbl *lpVtbl; + }; +# 6247 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0033_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0033_v0_0_s_ifspec; + + + + + + + +typedef IInternetSession *LPIINTERNETSESSION; + +typedef +enum _tagOIBDG_FLAGS + { + OIBDG_APARTMENTTHREADED = 0x100, + OIBDG_DATAONLY = 0x1000 + } OIBDG_FLAGS; + + +extern const IID IID_IInternetSession; +# 6320 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetSessionVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetSession * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetSession * This); + + + ULONG ( __stdcall *Release )( + IInternetSession * This); + + + HRESULT ( __stdcall *RegisterNameSpace )( + IInternetSession * This, + IClassFactory *pCF, + const IID * const rclsid, + LPCWSTR pwzProtocol, + ULONG cPatterns, + const LPCWSTR *ppwzPatterns, + DWORD dwReserved); + + + HRESULT ( __stdcall *UnregisterNameSpace )( + IInternetSession * This, + IClassFactory *pCF, + LPCWSTR pszProtocol); + + + HRESULT ( __stdcall *RegisterMimeFilter )( + IInternetSession * This, + IClassFactory *pCF, + const IID * const rclsid, + LPCWSTR pwzType); + + + HRESULT ( __stdcall *UnregisterMimeFilter )( + IInternetSession * This, + IClassFactory *pCF, + LPCWSTR pwzType); + + + HRESULT ( __stdcall *CreateBinding )( + IInternetSession * This, + LPBC pBC, + LPCWSTR szUrl, + IUnknown *pUnkOuter, + IUnknown **ppUnk, + IInternetProtocol **ppOInetProt, + DWORD dwOption); + + + HRESULT ( __stdcall *SetSessionOption )( + IInternetSession * This, + DWORD dwOption, + LPVOID pBuffer, + DWORD dwBufferLength, + DWORD dwReserved); + + + HRESULT ( __stdcall *GetSessionOption )( + IInternetSession * This, + DWORD dwOption, + LPVOID pBuffer, + DWORD *pdwBufferLength, + DWORD dwReserved); + + + } IInternetSessionVtbl; + + struct IInternetSession + { + struct IInternetSessionVtbl *lpVtbl; + }; +# 6457 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0034_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0034_v0_0_s_ifspec; + + + + + + + +typedef IInternetThreadSwitch *LPIINTERNETTHREADSWITCH; + + +extern const IID IID_IInternetThreadSwitch; +# 6486 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetThreadSwitchVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetThreadSwitch * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetThreadSwitch * This); + + + ULONG ( __stdcall *Release )( + IInternetThreadSwitch * This); + + + HRESULT ( __stdcall *Prepare )( + IInternetThreadSwitch * This); + + + HRESULT ( __stdcall *Continue )( + IInternetThreadSwitch * This); + + + } IInternetThreadSwitchVtbl; + + struct IInternetThreadSwitch + { + struct IInternetThreadSwitchVtbl *lpVtbl; + }; +# 6561 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0035_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0035_v0_0_s_ifspec; + + + + + + + +typedef IInternetPriority *LPIINTERNETPRIORITY; + + +extern const IID IID_IInternetPriority; +# 6592 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetPriorityVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetPriority * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetPriority * This); + + + ULONG ( __stdcall *Release )( + IInternetPriority * This); + + + HRESULT ( __stdcall *SetPriority )( + IInternetPriority * This, + LONG nPriority); + + + HRESULT ( __stdcall *GetPriority )( + IInternetPriority * This, + LONG *pnPriority); + + + } IInternetPriorityVtbl; + + struct IInternetPriority + { + struct IInternetPriorityVtbl *lpVtbl; + }; +# 6669 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0036_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0036_v0_0_s_ifspec; + + + + + + + +typedef IInternetProtocolInfo *LPIINTERNETPROTOCOLINFO; + +typedef +enum _tagPARSEACTION + { + PARSE_CANONICALIZE = 1, + PARSE_FRIENDLY = ( PARSE_CANONICALIZE + 1 ) , + PARSE_SECURITY_URL = ( PARSE_FRIENDLY + 1 ) , + PARSE_ROOTDOCUMENT = ( PARSE_SECURITY_URL + 1 ) , + PARSE_DOCUMENT = ( PARSE_ROOTDOCUMENT + 1 ) , + PARSE_ANCHOR = ( PARSE_DOCUMENT + 1 ) , + PARSE_ENCODE_IS_UNESCAPE = ( PARSE_ANCHOR + 1 ) , + PARSE_DECODE_IS_ESCAPE = ( PARSE_ENCODE_IS_UNESCAPE + 1 ) , + PARSE_PATH_FROM_URL = ( PARSE_DECODE_IS_ESCAPE + 1 ) , + PARSE_URL_FROM_PATH = ( PARSE_PATH_FROM_URL + 1 ) , + PARSE_MIME = ( PARSE_URL_FROM_PATH + 1 ) , + PARSE_SERVER = ( PARSE_MIME + 1 ) , + PARSE_SCHEMA = ( PARSE_SERVER + 1 ) , + PARSE_SITE = ( PARSE_SCHEMA + 1 ) , + PARSE_DOMAIN = ( PARSE_SITE + 1 ) , + PARSE_LOCATION = ( PARSE_DOMAIN + 1 ) , + PARSE_SECURITY_DOMAIN = ( PARSE_LOCATION + 1 ) , + PARSE_ESCAPE = ( PARSE_SECURITY_DOMAIN + 1 ) , + PARSE_UNESCAPE = ( PARSE_ESCAPE + 1 ) + } PARSEACTION; + +typedef +enum _tagPSUACTION + { + PSU_DEFAULT = 1, + PSU_SECURITY_URL_ONLY = ( PSU_DEFAULT + 1 ) + } PSUACTION; + +typedef +enum _tagQUERYOPTION + { + QUERY_EXPIRATION_DATE = 1, + QUERY_TIME_OF_LAST_CHANGE = ( QUERY_EXPIRATION_DATE + 1 ) , + QUERY_CONTENT_ENCODING = ( QUERY_TIME_OF_LAST_CHANGE + 1 ) , + QUERY_CONTENT_TYPE = ( QUERY_CONTENT_ENCODING + 1 ) , + QUERY_REFRESH = ( QUERY_CONTENT_TYPE + 1 ) , + QUERY_RECOMBINE = ( QUERY_REFRESH + 1 ) , + QUERY_CAN_NAVIGATE = ( QUERY_RECOMBINE + 1 ) , + QUERY_USES_NETWORK = ( QUERY_CAN_NAVIGATE + 1 ) , + QUERY_IS_CACHED = ( QUERY_USES_NETWORK + 1 ) , + QUERY_IS_INSTALLEDENTRY = ( QUERY_IS_CACHED + 1 ) , + QUERY_IS_CACHED_OR_MAPPED = ( QUERY_IS_INSTALLEDENTRY + 1 ) , + QUERY_USES_CACHE = ( QUERY_IS_CACHED_OR_MAPPED + 1 ) , + QUERY_IS_SECURE = ( QUERY_USES_CACHE + 1 ) , + QUERY_IS_SAFE = ( QUERY_IS_SECURE + 1 ) , + QUERY_USES_HISTORYFOLDER = ( QUERY_IS_SAFE + 1 ) , + QUERY_IS_CACHED_AND_USABLE_OFFLINE = ( QUERY_USES_HISTORYFOLDER + 1 ) + } QUERYOPTION; + + +extern const IID IID_IInternetProtocolInfo; +# 6780 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetProtocolInfoVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetProtocolInfo * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetProtocolInfo * This); + + + ULONG ( __stdcall *Release )( + IInternetProtocolInfo * This); + + + HRESULT ( __stdcall *ParseUrl )( + IInternetProtocolInfo * This, + LPCWSTR pwzUrl, + PARSEACTION ParseAction, + DWORD dwParseFlags, + + LPWSTR pwzResult, + DWORD cchResult, + DWORD *pcchResult, + DWORD dwReserved); + + + HRESULT ( __stdcall *CombineUrl )( + IInternetProtocolInfo * This, + LPCWSTR pwzBaseUrl, + LPCWSTR pwzRelativeUrl, + DWORD dwCombineFlags, + + LPWSTR pwzResult, + DWORD cchResult, + DWORD *pcchResult, + DWORD dwReserved); + + + HRESULT ( __stdcall *CompareUrl )( + IInternetProtocolInfo * This, + LPCWSTR pwzUrl1, + LPCWSTR pwzUrl2, + DWORD dwCompareFlags); + + + HRESULT ( __stdcall *QueryInfo )( + IInternetProtocolInfo * This, + LPCWSTR pwzUrl, + QUERYOPTION OueryOption, + DWORD dwQueryFlags, + LPVOID pBuffer, + DWORD cbBuffer, + DWORD *pcbBuf, + DWORD dwReserved); + + + } IInternetProtocolInfoVtbl; + + struct IInternetProtocolInfo + { + struct IInternetProtocolInfoVtbl *lpVtbl; + }; +# 6939 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern HRESULT __stdcall CoInternetParseUrl( + LPCWSTR pwzUrl, + PARSEACTION ParseAction, + DWORD dwFlags, + LPWSTR pszResult, + DWORD cchResult, + DWORD *pcchResult, + DWORD dwReserved + ); + +extern HRESULT __stdcall CoInternetParseIUri( + IUri *pIUri, + PARSEACTION ParseAction, + DWORD dwFlags, + LPWSTR pwzResult, + DWORD cchResult, + DWORD *pcchResult, + DWORD_PTR dwReserved + ); + +extern HRESULT __stdcall CoInternetCombineUrl( + LPCWSTR pwzBaseUrl, + LPCWSTR pwzRelativeUrl, + DWORD dwCombineFlags, + LPWSTR pszResult, + DWORD cchResult, + DWORD *pcchResult, + DWORD dwReserved + ); + +extern HRESULT __stdcall CoInternetCombineUrlEx( + IUri *pBaseUri, + LPCWSTR pwzRelativeUrl, + DWORD dwCombineFlags, + IUri **ppCombinedUri, + DWORD_PTR dwReserved + ); +extern HRESULT __stdcall CoInternetCombineIUri ( + IUri *pBaseUri, + IUri *pRelativeUri, + DWORD dwCombineFlags, + IUri **ppCombinedUri, + DWORD_PTR dwReserved + ); + +extern HRESULT __stdcall CoInternetCompareUrl( + LPCWSTR pwzUrl1, + LPCWSTR pwzUrl2, + DWORD dwFlags + ); +extern HRESULT __stdcall CoInternetGetProtocolFlags( + LPCWSTR pwzUrl, + DWORD *pdwFlags, + DWORD dwReserved + ); +extern HRESULT __stdcall CoInternetQueryInfo( + LPCWSTR pwzUrl, + QUERYOPTION QueryOptions, + DWORD dwQueryFlags, + LPVOID pvBuffer, + DWORD cbBuffer, + DWORD *pcbBuffer, + DWORD dwReserved + ); +extern HRESULT __stdcall CoInternetGetSession( + DWORD dwSessionMode, + IInternetSession **ppIInternetSession, + DWORD dwReserved + ); +extern HRESULT __stdcall CoInternetGetSecurityUrl( + LPCWSTR pwszUrl, + LPWSTR *ppwszSecUrl, + PSUACTION psuAction, + DWORD dwReserved + ); +extern HRESULT __stdcall AsyncInstallDistributionUnit( + LPCWSTR szDistUnit, + LPCWSTR szTYPE, + LPCWSTR szExt, + DWORD dwFileVersionMS, + DWORD dwFileVersionLS, + LPCWSTR szURL, + IBindCtx *pbc, + LPVOID pvReserved, + DWORD flags + ); + +extern HRESULT __stdcall CoInternetGetSecurityUrlEx( + IUri *pUri, + IUri **ppSecUri, + PSUACTION psuAction, + DWORD_PTR dwReserved + ); + + + + +typedef +enum _tagINTERNETFEATURELIST + { + FEATURE_OBJECT_CACHING = 0, + FEATURE_ZONE_ELEVATION = ( FEATURE_OBJECT_CACHING + 1 ) , + FEATURE_MIME_HANDLING = ( FEATURE_ZONE_ELEVATION + 1 ) , + FEATURE_MIME_SNIFFING = ( FEATURE_MIME_HANDLING + 1 ) , + FEATURE_WINDOW_RESTRICTIONS = ( FEATURE_MIME_SNIFFING + 1 ) , + FEATURE_WEBOC_POPUPMANAGEMENT = ( FEATURE_WINDOW_RESTRICTIONS + 1 ) , + FEATURE_BEHAVIORS = ( FEATURE_WEBOC_POPUPMANAGEMENT + 1 ) , + FEATURE_DISABLE_MK_PROTOCOL = ( FEATURE_BEHAVIORS + 1 ) , + FEATURE_LOCALMACHINE_LOCKDOWN = ( FEATURE_DISABLE_MK_PROTOCOL + 1 ) , + FEATURE_SECURITYBAND = ( FEATURE_LOCALMACHINE_LOCKDOWN + 1 ) , + FEATURE_RESTRICT_ACTIVEXINSTALL = ( FEATURE_SECURITYBAND + 1 ) , + FEATURE_VALIDATE_NAVIGATE_URL = ( FEATURE_RESTRICT_ACTIVEXINSTALL + 1 ) , + FEATURE_RESTRICT_FILEDOWNLOAD = ( FEATURE_VALIDATE_NAVIGATE_URL + 1 ) , + FEATURE_ADDON_MANAGEMENT = ( FEATURE_RESTRICT_FILEDOWNLOAD + 1 ) , + FEATURE_PROTOCOL_LOCKDOWN = ( FEATURE_ADDON_MANAGEMENT + 1 ) , + FEATURE_HTTP_USERNAME_PASSWORD_DISABLE = ( FEATURE_PROTOCOL_LOCKDOWN + 1 ) , + FEATURE_SAFE_BINDTOOBJECT = ( FEATURE_HTTP_USERNAME_PASSWORD_DISABLE + 1 ) , + FEATURE_UNC_SAVEDFILECHECK = ( FEATURE_SAFE_BINDTOOBJECT + 1 ) , + FEATURE_GET_URL_DOM_FILEPATH_UNENCODED = ( FEATURE_UNC_SAVEDFILECHECK + 1 ) , + FEATURE_TABBED_BROWSING = ( FEATURE_GET_URL_DOM_FILEPATH_UNENCODED + 1 ) , + FEATURE_SSLUX = ( FEATURE_TABBED_BROWSING + 1 ) , + FEATURE_DISABLE_NAVIGATION_SOUNDS = ( FEATURE_SSLUX + 1 ) , + FEATURE_DISABLE_LEGACY_COMPRESSION = ( FEATURE_DISABLE_NAVIGATION_SOUNDS + 1 ) , + FEATURE_FORCE_ADDR_AND_STATUS = ( FEATURE_DISABLE_LEGACY_COMPRESSION + 1 ) , + FEATURE_XMLHTTP = ( FEATURE_FORCE_ADDR_AND_STATUS + 1 ) , + FEATURE_DISABLE_TELNET_PROTOCOL = ( FEATURE_XMLHTTP + 1 ) , + FEATURE_FEEDS = ( FEATURE_DISABLE_TELNET_PROTOCOL + 1 ) , + FEATURE_BLOCK_INPUT_PROMPTS = ( FEATURE_FEEDS + 1 ) , + FEATURE_ENTRY_COUNT = ( FEATURE_BLOCK_INPUT_PROMPTS + 1 ) + } INTERNETFEATURELIST; +# 7096 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern HRESULT __stdcall CoInternetSetFeatureEnabled( + INTERNETFEATURELIST FeatureEntry, + DWORD dwFlags, + BOOL fEnable + ); +extern HRESULT __stdcall CoInternetIsFeatureEnabled( + INTERNETFEATURELIST FeatureEntry, + DWORD dwFlags + ); +extern HRESULT __stdcall CoInternetIsFeatureEnabledForUrl( + INTERNETFEATURELIST FeatureEntry, + DWORD dwFlags, + LPCWSTR szURL, + IInternetSecurityManager *pSecMgr + ); +extern HRESULT __stdcall CoInternetIsFeatureEnabledForIUri( + INTERNETFEATURELIST FeatureEntry, + DWORD dwFlags, + IUri * pIUri, + IInternetSecurityManagerEx2 *pSecMgr + ); +extern HRESULT __stdcall CoInternetIsFeatureZoneElevationEnabled( + LPCWSTR szFromURL, + LPCWSTR szToURL, + IInternetSecurityManager *pSecMgr, + DWORD dwFlags + ); + + +extern HRESULT __stdcall CopyStgMedium( const STGMEDIUM * pcstgmedSrc, + STGMEDIUM * pstgmedDest); +extern HRESULT __stdcall CopyBindInfo( const BINDINFO * pcbiSrc, + BINDINFO * pbiDest ); +extern void __stdcall ReleaseBindInfo( BINDINFO * pbindinfo ); +# 7152 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern PWSTR __stdcall IEGetUserPrivateNamespaceName(void); + + + +extern HRESULT __stdcall CoInternetCreateSecurityManager( IServiceProvider *pSP, IInternetSecurityManager **ppSM, DWORD dwReserved); + +extern HRESULT __stdcall CoInternetCreateZoneManager( IServiceProvider *pSP, IInternetZoneManager **ppZM, DWORD dwReserved); + + + +extern const IID CLSID_InternetSecurityManager; +extern const IID CLSID_InternetZoneManager; + +extern const IID CLSID_PersistentZoneIdentifier; +# 7184 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0037_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0037_v0_0_s_ifspec; +# 7194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IInternetSecurityMgrSite; +# 7213 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetSecurityMgrSiteVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetSecurityMgrSite * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetSecurityMgrSite * This); + + + ULONG ( __stdcall *Release )( + IInternetSecurityMgrSite * This); + + + HRESULT ( __stdcall *GetWindow )( + IInternetSecurityMgrSite * This, + HWND *phwnd); + + + HRESULT ( __stdcall *EnableModeless )( + IInternetSecurityMgrSite * This, + BOOL fEnable); + + + } IInternetSecurityMgrSiteVtbl; + + struct IInternetSecurityMgrSite + { + struct IInternetSecurityMgrSiteVtbl *lpVtbl; + }; +# 7290 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0038_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0038_v0_0_s_ifspec; +# 7313 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +typedef +enum __MIDL_IInternetSecurityManager_0001 + { + PUAF_DEFAULT = 0, + PUAF_NOUI = 0x1, + PUAF_ISFILE = 0x2, + PUAF_WARN_IF_DENIED = 0x4, + PUAF_FORCEUI_FOREGROUND = 0x8, + PUAF_CHECK_TIFS = 0x10, + PUAF_DONTCHECKBOXINDIALOG = 0x20, + PUAF_TRUSTED = 0x40, + PUAF_ACCEPT_WILDCARD_SCHEME = 0x80, + PUAF_ENFORCERESTRICTED = 0x100, + PUAF_NOSAVEDFILECHECK = 0x200, + PUAF_REQUIRESAVEDFILECHECK = 0x400, + PUAF_DONT_USE_CACHE = 0x1000, + PUAF_RESERVED1 = 0x2000, + PUAF_RESERVED2 = 0x4000, + PUAF_LMZ_UNLOCKED = 0x10000, + PUAF_LMZ_LOCKED = 0x20000, + PUAF_DEFAULTZONEPOL = 0x40000, + PUAF_NPL_USE_LOCKED_IF_RESTRICTED = 0x80000, + PUAF_NOUIIFLOCKED = 0x100000, + PUAF_DRAGPROTOCOLCHECK = 0x200000 + } PUAF; + +typedef +enum __MIDL_IInternetSecurityManager_0002 + { + PUAFOUT_DEFAULT = 0, + PUAFOUT_ISLOCKZONEPOLICY = 0x1 + } PUAFOUT; +# 7364 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +typedef +enum __MIDL_IInternetSecurityManager_0003 + { + SZM_CREATE = 0, + SZM_DELETE = 0x1 + } SZM_FLAGS; +# 7386 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IInternetSecurityManager; +# 7449 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetSecurityManagerVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetSecurityManager * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetSecurityManager * This); + + + ULONG ( __stdcall *Release )( + IInternetSecurityManager * This); + + + HRESULT ( __stdcall *SetSecuritySite )( + IInternetSecurityManager * This, + IInternetSecurityMgrSite *pSite); + + + HRESULT ( __stdcall *GetSecuritySite )( + IInternetSecurityManager * This, + IInternetSecurityMgrSite **ppSite); + + + HRESULT ( __stdcall *MapUrlToZone )( + IInternetSecurityManager * This, + LPCWSTR pwszUrl, + DWORD *pdwZone, + DWORD dwFlags); + + + HRESULT ( __stdcall *GetSecurityId )( + IInternetSecurityManager * This, + + LPCWSTR pwszUrl, + + BYTE *pbSecurityId, + + DWORD *pcbSecurityId, + + DWORD_PTR dwReserved); + + + HRESULT ( __stdcall *ProcessUrlAction )( + IInternetSecurityManager * This, + LPCWSTR pwszUrl, + DWORD dwAction, + BYTE *pPolicy, + DWORD cbPolicy, + BYTE *pContext, + DWORD cbContext, + DWORD dwFlags, + DWORD dwReserved); + + + HRESULT ( __stdcall *QueryCustomPolicy )( + IInternetSecurityManager * This, + LPCWSTR pwszUrl, + const GUID * const guidKey, + BYTE **ppPolicy, + DWORD *pcbPolicy, + BYTE *pContext, + DWORD cbContext, + DWORD dwReserved); + + + HRESULT ( __stdcall *SetZoneMapping )( + IInternetSecurityManager * This, + DWORD dwZone, + LPCWSTR lpszPattern, + DWORD dwFlags); + + + HRESULT ( __stdcall *GetZoneMappings )( + IInternetSecurityManager * This, + DWORD dwZone, + IEnumString **ppenumString, + DWORD dwFlags); + + + } IInternetSecurityManagerVtbl; + + struct IInternetSecurityManager + { + struct IInternetSecurityManagerVtbl *lpVtbl; + }; +# 7601 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0039_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0039_v0_0_s_ifspec; +# 7617 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IInternetSecurityManagerEx; +# 7641 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetSecurityManagerExVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetSecurityManagerEx * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetSecurityManagerEx * This); + + + ULONG ( __stdcall *Release )( + IInternetSecurityManagerEx * This); + + + HRESULT ( __stdcall *SetSecuritySite )( + IInternetSecurityManagerEx * This, + IInternetSecurityMgrSite *pSite); + + + HRESULT ( __stdcall *GetSecuritySite )( + IInternetSecurityManagerEx * This, + IInternetSecurityMgrSite **ppSite); + + + HRESULT ( __stdcall *MapUrlToZone )( + IInternetSecurityManagerEx * This, + LPCWSTR pwszUrl, + DWORD *pdwZone, + DWORD dwFlags); + + + HRESULT ( __stdcall *GetSecurityId )( + IInternetSecurityManagerEx * This, + + LPCWSTR pwszUrl, + + BYTE *pbSecurityId, + + DWORD *pcbSecurityId, + + DWORD_PTR dwReserved); + + + HRESULT ( __stdcall *ProcessUrlAction )( + IInternetSecurityManagerEx * This, + LPCWSTR pwszUrl, + DWORD dwAction, + BYTE *pPolicy, + DWORD cbPolicy, + BYTE *pContext, + DWORD cbContext, + DWORD dwFlags, + DWORD dwReserved); + + + HRESULT ( __stdcall *QueryCustomPolicy )( + IInternetSecurityManagerEx * This, + LPCWSTR pwszUrl, + const GUID * const guidKey, + BYTE **ppPolicy, + DWORD *pcbPolicy, + BYTE *pContext, + DWORD cbContext, + DWORD dwReserved); + + + HRESULT ( __stdcall *SetZoneMapping )( + IInternetSecurityManagerEx * This, + DWORD dwZone, + LPCWSTR lpszPattern, + DWORD dwFlags); + + + HRESULT ( __stdcall *GetZoneMappings )( + IInternetSecurityManagerEx * This, + DWORD dwZone, + IEnumString **ppenumString, + DWORD dwFlags); + + + HRESULT ( __stdcall *ProcessUrlActionEx )( + IInternetSecurityManagerEx * This, + LPCWSTR pwszUrl, + DWORD dwAction, + BYTE *pPolicy, + DWORD cbPolicy, + BYTE *pContext, + DWORD cbContext, + DWORD dwFlags, + DWORD dwReserved, + DWORD *pdwOutFlags); + + + } IInternetSecurityManagerExVtbl; + + struct IInternetSecurityManagerEx + { + struct IInternetSecurityManagerExVtbl *lpVtbl; + }; +# 7811 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0040_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0040_v0_0_s_ifspec; +# 7824 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IInternetSecurityManagerEx2; +# 7879 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetSecurityManagerEx2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetSecurityManagerEx2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetSecurityManagerEx2 * This); + + + ULONG ( __stdcall *Release )( + IInternetSecurityManagerEx2 * This); + + + HRESULT ( __stdcall *SetSecuritySite )( + IInternetSecurityManagerEx2 * This, + IInternetSecurityMgrSite *pSite); + + + HRESULT ( __stdcall *GetSecuritySite )( + IInternetSecurityManagerEx2 * This, + IInternetSecurityMgrSite **ppSite); + + + HRESULT ( __stdcall *MapUrlToZone )( + IInternetSecurityManagerEx2 * This, + LPCWSTR pwszUrl, + DWORD *pdwZone, + DWORD dwFlags); + + + HRESULT ( __stdcall *GetSecurityId )( + IInternetSecurityManagerEx2 * This, + + LPCWSTR pwszUrl, + + BYTE *pbSecurityId, + + DWORD *pcbSecurityId, + + DWORD_PTR dwReserved); + + + HRESULT ( __stdcall *ProcessUrlAction )( + IInternetSecurityManagerEx2 * This, + LPCWSTR pwszUrl, + DWORD dwAction, + BYTE *pPolicy, + DWORD cbPolicy, + BYTE *pContext, + DWORD cbContext, + DWORD dwFlags, + DWORD dwReserved); + + + HRESULT ( __stdcall *QueryCustomPolicy )( + IInternetSecurityManagerEx2 * This, + LPCWSTR pwszUrl, + const GUID * const guidKey, + BYTE **ppPolicy, + DWORD *pcbPolicy, + BYTE *pContext, + DWORD cbContext, + DWORD dwReserved); + + + HRESULT ( __stdcall *SetZoneMapping )( + IInternetSecurityManagerEx2 * This, + DWORD dwZone, + LPCWSTR lpszPattern, + DWORD dwFlags); + + + HRESULT ( __stdcall *GetZoneMappings )( + IInternetSecurityManagerEx2 * This, + DWORD dwZone, + IEnumString **ppenumString, + DWORD dwFlags); + + + HRESULT ( __stdcall *ProcessUrlActionEx )( + IInternetSecurityManagerEx2 * This, + LPCWSTR pwszUrl, + DWORD dwAction, + BYTE *pPolicy, + DWORD cbPolicy, + BYTE *pContext, + DWORD cbContext, + DWORD dwFlags, + DWORD dwReserved, + DWORD *pdwOutFlags); + + + HRESULT ( __stdcall *MapUrlToZoneEx2 )( + IInternetSecurityManagerEx2 * This, + + IUri *pUri, + DWORD *pdwZone, + DWORD dwFlags, + + LPWSTR *ppwszMappedUrl, + + DWORD *pdwOutFlags); + + + HRESULT ( __stdcall *ProcessUrlActionEx2 )( + IInternetSecurityManagerEx2 * This, + + IUri *pUri, + DWORD dwAction, + BYTE *pPolicy, + DWORD cbPolicy, + BYTE *pContext, + DWORD cbContext, + DWORD dwFlags, + DWORD_PTR dwReserved, + DWORD *pdwOutFlags); + + + HRESULT ( __stdcall *GetSecurityIdEx2 )( + IInternetSecurityManagerEx2 * This, + + IUri *pUri, + + BYTE *pbSecurityId, + + DWORD *pcbSecurityId, + + DWORD_PTR dwReserved); + + + HRESULT ( __stdcall *QueryCustomPolicyEx2 )( + IInternetSecurityManagerEx2 * This, + + IUri *pUri, + const GUID * const guidKey, + BYTE **ppPolicy, + DWORD *pcbPolicy, + BYTE *pContext, + DWORD cbContext, + DWORD_PTR dwReserved); + + + } IInternetSecurityManagerEx2Vtbl; + + struct IInternetSecurityManagerEx2 + { + struct IInternetSecurityManagerEx2Vtbl *lpVtbl; + }; +# 8110 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0041_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0041_v0_0_s_ifspec; +# 8120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IZoneIdentifier; +# 8141 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IZoneIdentifierVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IZoneIdentifier * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IZoneIdentifier * This); + + + ULONG ( __stdcall *Release )( + IZoneIdentifier * This); + + + HRESULT ( __stdcall *GetId )( + IZoneIdentifier * This, + DWORD *pdwZone); + + + HRESULT ( __stdcall *SetId )( + IZoneIdentifier * This, + DWORD dwZone); + + + HRESULT ( __stdcall *Remove )( + IZoneIdentifier * This); + + + } IZoneIdentifierVtbl; + + struct IZoneIdentifier + { + struct IZoneIdentifierVtbl *lpVtbl; + }; +# 8224 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0042_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0042_v0_0_s_ifspec; +# 8234 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IZoneIdentifier2; +# 8263 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IZoneIdentifier2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IZoneIdentifier2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IZoneIdentifier2 * This); + + + ULONG ( __stdcall *Release )( + IZoneIdentifier2 * This); + + + HRESULT ( __stdcall *GetId )( + IZoneIdentifier2 * This, + DWORD *pdwZone); + + + HRESULT ( __stdcall *SetId )( + IZoneIdentifier2 * This, + DWORD dwZone); + + + HRESULT ( __stdcall *Remove )( + IZoneIdentifier2 * This); + + + HRESULT ( __stdcall *GetLastWriterPackageFamilyName )( + IZoneIdentifier2 * This, + LPWSTR *packageFamilyName); + + + HRESULT ( __stdcall *SetLastWriterPackageFamilyName )( + IZoneIdentifier2 * This, + LPCWSTR packageFamilyName); + + + HRESULT ( __stdcall *RemoveLastWriterPackageFamilyName )( + IZoneIdentifier2 * This); + + + HRESULT ( __stdcall *GetAppZoneId )( + IZoneIdentifier2 * This, + DWORD *zone); + + + HRESULT ( __stdcall *SetAppZoneId )( + IZoneIdentifier2 * This, + DWORD zone); + + + HRESULT ( __stdcall *RemoveAppZoneId )( + IZoneIdentifier2 * This); + + + } IZoneIdentifier2Vtbl; + + struct IZoneIdentifier2 + { + struct IZoneIdentifier2Vtbl *lpVtbl; + }; +# 8397 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0043_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0043_v0_0_s_ifspec; +# 8408 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IInternetHostSecurityManager; +# 8450 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetHostSecurityManagerVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetHostSecurityManager * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetHostSecurityManager * This); + + + ULONG ( __stdcall *Release )( + IInternetHostSecurityManager * This); + + + HRESULT ( __stdcall *GetSecurityId )( + IInternetHostSecurityManager * This, + + BYTE *pbSecurityId, + + DWORD *pcbSecurityId, + DWORD_PTR dwReserved); + + + HRESULT ( __stdcall *ProcessUrlAction )( + IInternetHostSecurityManager * This, + DWORD dwAction, + + BYTE *pPolicy, + DWORD cbPolicy, + + BYTE *pContext, + DWORD cbContext, + DWORD dwFlags, + DWORD dwReserved); + + + HRESULT ( __stdcall *QueryCustomPolicy )( + IInternetHostSecurityManager * This, + const GUID * const guidKey, + + BYTE **ppPolicy, + + DWORD *pcbPolicy, + + BYTE *pContext, + DWORD cbContext, + DWORD dwReserved); + + + } IInternetHostSecurityManagerVtbl; + + struct IInternetHostSecurityManager + { + struct IInternetHostSecurityManagerVtbl *lpVtbl; + }; +# 8815 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const GUID GUID_CUSTOM_LOCALMACHINEZONEUNLOCKED; + + + + + +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0044_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0044_v0_0_s_ifspec; + + + + + + + +typedef IInternetZoneManager *LPURLZONEMANAGER; + +typedef +enum tagURLZONE + { + URLZONE_INVALID = -1, + URLZONE_PREDEFINED_MIN = 0, + URLZONE_LOCAL_MACHINE = 0, + URLZONE_INTRANET = ( URLZONE_LOCAL_MACHINE + 1 ) , + URLZONE_TRUSTED = ( URLZONE_INTRANET + 1 ) , + URLZONE_INTERNET = ( URLZONE_TRUSTED + 1 ) , + URLZONE_UNTRUSTED = ( URLZONE_INTERNET + 1 ) , + URLZONE_PREDEFINED_MAX = 999, + URLZONE_USER_MIN = 1000, + URLZONE_USER_MAX = 10000 + } URLZONE; + + + +typedef +enum tagURLTEMPLATE + { + URLTEMPLATE_CUSTOM = 0, + URLTEMPLATE_PREDEFINED_MIN = 0x10000, + URLTEMPLATE_LOW = 0x10000, + URLTEMPLATE_MEDLOW = 0x10500, + URLTEMPLATE_MEDIUM = 0x11000, + URLTEMPLATE_MEDHIGH = 0x11500, + URLTEMPLATE_HIGH = 0x12000, + URLTEMPLATE_PREDEFINED_MAX = 0x20000 + } URLTEMPLATE; + + +enum __MIDL_IInternetZoneManager_0001 + { + MAX_ZONE_PATH = 260, + MAX_ZONE_DESCRIPTION = 200 + } ; +typedef +enum __MIDL_IInternetZoneManager_0002 + { + ZAFLAGS_CUSTOM_EDIT = 0x1, + ZAFLAGS_ADD_SITES = 0x2, + ZAFLAGS_REQUIRE_VERIFICATION = 0x4, + ZAFLAGS_INCLUDE_PROXY_OVERRIDE = 0x8, + ZAFLAGS_INCLUDE_INTRANET_SITES = 0x10, + ZAFLAGS_NO_UI = 0x20, + ZAFLAGS_SUPPORTS_VERIFICATION = 0x40, + ZAFLAGS_UNC_AS_INTRANET = 0x80, + ZAFLAGS_DETECT_INTRANET = 0x100, + ZAFLAGS_USE_LOCKED_ZONES = 0x10000, + ZAFLAGS_VERIFY_TEMPLATE_SETTINGS = 0x20000, + ZAFLAGS_NO_CACHE = 0x40000 + } ZAFLAGS; + +typedef struct _ZONEATTRIBUTES + { + ULONG cbSize; + WCHAR szDisplayName[ 260 ]; + WCHAR szDescription[ 200 ]; + WCHAR szIconPath[ 260 ]; + DWORD dwTemplateMinLevel; + DWORD dwTemplateRecommended; + DWORD dwTemplateCurrentLevel; + DWORD dwFlags; + } ZONEATTRIBUTES; + +typedef struct _ZONEATTRIBUTES *LPZONEATTRIBUTES; +# 8915 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +typedef +enum _URLZONEREG + { + URLZONEREG_DEFAULT = 0, + URLZONEREG_HKLM = ( URLZONEREG_DEFAULT + 1 ) , + URLZONEREG_HKCU = ( URLZONEREG_HKLM + 1 ) + } URLZONEREG; +# 8954 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IInternetZoneManager; +# 9041 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetZoneManagerVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetZoneManager * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetZoneManager * This); + + + ULONG ( __stdcall *Release )( + IInternetZoneManager * This); + + + HRESULT ( __stdcall *GetZoneAttributes )( + IInternetZoneManager * This, + DWORD dwZone, + + ZONEATTRIBUTES *pZoneAttributes); + + + HRESULT ( __stdcall *SetZoneAttributes )( + IInternetZoneManager * This, + DWORD dwZone, + + ZONEATTRIBUTES *pZoneAttributes); + + + HRESULT ( __stdcall *GetZoneCustomPolicy )( + IInternetZoneManager * This, + DWORD dwZone, + const GUID * const guidKey, + + BYTE **ppPolicy, + + DWORD *pcbPolicy, + URLZONEREG urlZoneReg); + + + HRESULT ( __stdcall *SetZoneCustomPolicy )( + IInternetZoneManager * This, + DWORD dwZone, + const GUID * const guidKey, + + BYTE *pPolicy, + DWORD cbPolicy, + URLZONEREG urlZoneReg); + + + HRESULT ( __stdcall *GetZoneActionPolicy )( + IInternetZoneManager * This, + DWORD dwZone, + DWORD dwAction, + + BYTE *pPolicy, + DWORD cbPolicy, + URLZONEREG urlZoneReg); + + + HRESULT ( __stdcall *SetZoneActionPolicy )( + IInternetZoneManager * This, + DWORD dwZone, + DWORD dwAction, + + BYTE *pPolicy, + DWORD cbPolicy, + URLZONEREG urlZoneReg); + + + HRESULT ( __stdcall *PromptAction )( + IInternetZoneManager * This, + DWORD dwAction, + HWND hwndParent, + LPCWSTR pwszUrl, + LPCWSTR pwszText, + DWORD dwPromptFlags); + + + HRESULT ( __stdcall *LogAction )( + IInternetZoneManager * This, + DWORD dwAction, + LPCWSTR pwszUrl, + LPCWSTR pwszText, + DWORD dwLogFlags); + + + HRESULT ( __stdcall *CreateZoneEnumerator )( + IInternetZoneManager * This, + DWORD *pdwEnum, + DWORD *pdwCount, + DWORD dwFlags); + + + HRESULT ( __stdcall *GetZoneAt )( + IInternetZoneManager * This, + DWORD dwEnum, + DWORD dwIndex, + DWORD *pdwZone); + + + HRESULT ( __stdcall *DestroyZoneEnumerator )( + IInternetZoneManager * This, + DWORD dwEnum); + + + HRESULT ( __stdcall *CopyTemplatePoliciesToZone )( + IInternetZoneManager * This, + DWORD dwTemplate, + DWORD dwZone, + DWORD dwReserved); + + + } IInternetZoneManagerVtbl; + + struct IInternetZoneManager + { + struct IInternetZoneManagerVtbl *lpVtbl; + }; +# 9237 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0045_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0045_v0_0_s_ifspec; +# 9255 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IInternetZoneManagerEx; +# 9286 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetZoneManagerExVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetZoneManagerEx * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetZoneManagerEx * This); + + + ULONG ( __stdcall *Release )( + IInternetZoneManagerEx * This); + + + HRESULT ( __stdcall *GetZoneAttributes )( + IInternetZoneManagerEx * This, + DWORD dwZone, + + ZONEATTRIBUTES *pZoneAttributes); + + + HRESULT ( __stdcall *SetZoneAttributes )( + IInternetZoneManagerEx * This, + DWORD dwZone, + + ZONEATTRIBUTES *pZoneAttributes); + + + HRESULT ( __stdcall *GetZoneCustomPolicy )( + IInternetZoneManagerEx * This, + DWORD dwZone, + const GUID * const guidKey, + + BYTE **ppPolicy, + + DWORD *pcbPolicy, + URLZONEREG urlZoneReg); + + + HRESULT ( __stdcall *SetZoneCustomPolicy )( + IInternetZoneManagerEx * This, + DWORD dwZone, + const GUID * const guidKey, + + BYTE *pPolicy, + DWORD cbPolicy, + URLZONEREG urlZoneReg); + + + HRESULT ( __stdcall *GetZoneActionPolicy )( + IInternetZoneManagerEx * This, + DWORD dwZone, + DWORD dwAction, + + BYTE *pPolicy, + DWORD cbPolicy, + URLZONEREG urlZoneReg); + + + HRESULT ( __stdcall *SetZoneActionPolicy )( + IInternetZoneManagerEx * This, + DWORD dwZone, + DWORD dwAction, + + BYTE *pPolicy, + DWORD cbPolicy, + URLZONEREG urlZoneReg); + + + HRESULT ( __stdcall *PromptAction )( + IInternetZoneManagerEx * This, + DWORD dwAction, + HWND hwndParent, + LPCWSTR pwszUrl, + LPCWSTR pwszText, + DWORD dwPromptFlags); + + + HRESULT ( __stdcall *LogAction )( + IInternetZoneManagerEx * This, + DWORD dwAction, + LPCWSTR pwszUrl, + LPCWSTR pwszText, + DWORD dwLogFlags); + + + HRESULT ( __stdcall *CreateZoneEnumerator )( + IInternetZoneManagerEx * This, + DWORD *pdwEnum, + DWORD *pdwCount, + DWORD dwFlags); + + + HRESULT ( __stdcall *GetZoneAt )( + IInternetZoneManagerEx * This, + DWORD dwEnum, + DWORD dwIndex, + DWORD *pdwZone); + + + HRESULT ( __stdcall *DestroyZoneEnumerator )( + IInternetZoneManagerEx * This, + DWORD dwEnum); + + + HRESULT ( __stdcall *CopyTemplatePoliciesToZone )( + IInternetZoneManagerEx * This, + DWORD dwTemplate, + DWORD dwZone, + DWORD dwReserved); + + + HRESULT ( __stdcall *GetZoneActionPolicyEx )( + IInternetZoneManagerEx * This, + DWORD dwZone, + DWORD dwAction, + + BYTE *pPolicy, + DWORD cbPolicy, + URLZONEREG urlZoneReg, + DWORD dwFlags); + + + HRESULT ( __stdcall *SetZoneActionPolicyEx )( + IInternetZoneManagerEx * This, + DWORD dwZone, + DWORD dwAction, + + BYTE *pPolicy, + DWORD cbPolicy, + URLZONEREG urlZoneReg, + DWORD dwFlags); + + + } IInternetZoneManagerExVtbl; + + struct IInternetZoneManagerEx + { + struct IInternetZoneManagerExVtbl *lpVtbl; + }; +# 9514 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0046_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0046_v0_0_s_ifspec; +# 9527 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IInternetZoneManagerEx2; +# 9559 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IInternetZoneManagerEx2Vtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IInternetZoneManagerEx2 * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IInternetZoneManagerEx2 * This); + + + ULONG ( __stdcall *Release )( + IInternetZoneManagerEx2 * This); + + + HRESULT ( __stdcall *GetZoneAttributes )( + IInternetZoneManagerEx2 * This, + DWORD dwZone, + + ZONEATTRIBUTES *pZoneAttributes); + + + HRESULT ( __stdcall *SetZoneAttributes )( + IInternetZoneManagerEx2 * This, + DWORD dwZone, + + ZONEATTRIBUTES *pZoneAttributes); + + + HRESULT ( __stdcall *GetZoneCustomPolicy )( + IInternetZoneManagerEx2 * This, + DWORD dwZone, + const GUID * const guidKey, + + BYTE **ppPolicy, + + DWORD *pcbPolicy, + URLZONEREG urlZoneReg); + + + HRESULT ( __stdcall *SetZoneCustomPolicy )( + IInternetZoneManagerEx2 * This, + DWORD dwZone, + const GUID * const guidKey, + + BYTE *pPolicy, + DWORD cbPolicy, + URLZONEREG urlZoneReg); + + + HRESULT ( __stdcall *GetZoneActionPolicy )( + IInternetZoneManagerEx2 * This, + DWORD dwZone, + DWORD dwAction, + + BYTE *pPolicy, + DWORD cbPolicy, + URLZONEREG urlZoneReg); + + + HRESULT ( __stdcall *SetZoneActionPolicy )( + IInternetZoneManagerEx2 * This, + DWORD dwZone, + DWORD dwAction, + + BYTE *pPolicy, + DWORD cbPolicy, + URLZONEREG urlZoneReg); + + + HRESULT ( __stdcall *PromptAction )( + IInternetZoneManagerEx2 * This, + DWORD dwAction, + HWND hwndParent, + LPCWSTR pwszUrl, + LPCWSTR pwszText, + DWORD dwPromptFlags); + + + HRESULT ( __stdcall *LogAction )( + IInternetZoneManagerEx2 * This, + DWORD dwAction, + LPCWSTR pwszUrl, + LPCWSTR pwszText, + DWORD dwLogFlags); + + + HRESULT ( __stdcall *CreateZoneEnumerator )( + IInternetZoneManagerEx2 * This, + DWORD *pdwEnum, + DWORD *pdwCount, + DWORD dwFlags); + + + HRESULT ( __stdcall *GetZoneAt )( + IInternetZoneManagerEx2 * This, + DWORD dwEnum, + DWORD dwIndex, + DWORD *pdwZone); + + + HRESULT ( __stdcall *DestroyZoneEnumerator )( + IInternetZoneManagerEx2 * This, + DWORD dwEnum); + + + HRESULT ( __stdcall *CopyTemplatePoliciesToZone )( + IInternetZoneManagerEx2 * This, + DWORD dwTemplate, + DWORD dwZone, + DWORD dwReserved); + + + HRESULT ( __stdcall *GetZoneActionPolicyEx )( + IInternetZoneManagerEx2 * This, + DWORD dwZone, + DWORD dwAction, + + BYTE *pPolicy, + DWORD cbPolicy, + URLZONEREG urlZoneReg, + DWORD dwFlags); + + + HRESULT ( __stdcall *SetZoneActionPolicyEx )( + IInternetZoneManagerEx2 * This, + DWORD dwZone, + DWORD dwAction, + + BYTE *pPolicy, + DWORD cbPolicy, + URLZONEREG urlZoneReg, + DWORD dwFlags); + + + HRESULT ( __stdcall *GetZoneAttributesEx )( + IInternetZoneManagerEx2 * This, + DWORD dwZone, + ZONEATTRIBUTES *pZoneAttributes, + DWORD dwFlags); + + + HRESULT ( __stdcall *GetZoneSecurityState )( + IInternetZoneManagerEx2 * This, + DWORD dwZoneIndex, + BOOL fRespectPolicy, + LPDWORD pdwState, + BOOL *pfPolicyEncountered); + + + HRESULT ( __stdcall *GetIESecurityState )( + IInternetZoneManagerEx2 * This, + BOOL fRespectPolicy, + LPDWORD pdwState, + BOOL *pfPolicyEncountered, + BOOL fNoCache); + + + HRESULT ( __stdcall *FixUnsecureSettings )( + IInternetZoneManagerEx2 * This); + + + } IInternetZoneManagerEx2Vtbl; + + struct IInternetZoneManagerEx2 + { + struct IInternetZoneManagerEx2Vtbl *lpVtbl; + }; +# 9820 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID CLSID_SoftDistExt; +# 9835 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +typedef struct _tagCODEBASEHOLD + { + ULONG cbSize; + LPWSTR szDistUnit; + LPWSTR szCodeBase; + DWORD dwVersionMS; + DWORD dwVersionLS; + DWORD dwStyle; + } CODEBASEHOLD; + +typedef struct _tagCODEBASEHOLD *LPCODEBASEHOLD; + +typedef struct _tagSOFTDISTINFO + { + ULONG cbSize; + DWORD dwFlags; + DWORD dwAdState; + LPWSTR szTitle; + LPWSTR szAbstract; + LPWSTR szHREF; + DWORD dwInstalledVersionMS; + DWORD dwInstalledVersionLS; + DWORD dwUpdateVersionMS; + DWORD dwUpdateVersionLS; + DWORD dwAdvertisedVersionMS; + DWORD dwAdvertisedVersionLS; + DWORD dwReserved; + } SOFTDISTINFO; + +typedef struct _tagSOFTDISTINFO *LPSOFTDISTINFO; + + + +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0047_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0047_v0_0_s_ifspec; +# 9878 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_ISoftDistExt; +# 9912 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct ISoftDistExtVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ISoftDistExt * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ISoftDistExt * This); + + + ULONG ( __stdcall *Release )( + ISoftDistExt * This); + + + HRESULT ( __stdcall *ProcessSoftDist )( + ISoftDistExt * This, + LPCWSTR szCDFURL, + IXMLElement *pSoftDistElement, + LPSOFTDISTINFO lpsdi); + + + HRESULT ( __stdcall *GetFirstCodeBase )( + ISoftDistExt * This, + + LPWSTR *szCodeBase, + LPDWORD dwMaxSize); + + + HRESULT ( __stdcall *GetNextCodeBase )( + ISoftDistExt * This, + + LPWSTR *szCodeBase, + LPDWORD dwMaxSize); + + + HRESULT ( __stdcall *AsyncInstallDistributionUnit )( + ISoftDistExt * This, + IBindCtx *pbc, + LPVOID pvReserved, + DWORD flags, + LPCODEBASEHOLD lpcbh); + + + } ISoftDistExtVtbl; + + struct ISoftDistExt + { + struct ISoftDistExtVtbl *lpVtbl; + }; +# 10009 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern HRESULT __stdcall GetSoftwareUpdateInfo( LPCWSTR szDistUnit, LPSOFTDISTINFO psdi ); +extern HRESULT __stdcall SetSoftwareUpdateAdvertisementState( LPCWSTR szDistUnit, DWORD dwAdState, DWORD dwAdvertisedVersionMS, DWORD dwAdvertisedVersionLS ); + + + + + +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0048_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0048_v0_0_s_ifspec; + + + + + + + +typedef ICatalogFileInfo *LPCATALOGFILEINFO; + + +extern const IID IID_ICatalogFileInfo; +# 10048 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct ICatalogFileInfoVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + ICatalogFileInfo * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + ICatalogFileInfo * This); + + + ULONG ( __stdcall *Release )( + ICatalogFileInfo * This); + + + HRESULT ( __stdcall *GetCatalogFile )( + ICatalogFileInfo * This, + + LPSTR *ppszCatalogFile); + + + HRESULT ( __stdcall *GetJavaTrust )( + ICatalogFileInfo * This, + void **ppJavaTrust); + + + } ICatalogFileInfoVtbl; + + struct ICatalogFileInfo + { + struct ICatalogFileInfoVtbl *lpVtbl; + }; +# 10126 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0049_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0049_v0_0_s_ifspec; + + + + + + + +typedef IDataFilter *LPDATAFILTER; + + +extern const IID IID_IDataFilter; +# 10176 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IDataFilterVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IDataFilter * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IDataFilter * This); + + + ULONG ( __stdcall *Release )( + IDataFilter * This); + + + HRESULT ( __stdcall *DoEncode )( + IDataFilter * This, + DWORD dwFlags, + LONG lInBufferSize, + BYTE *pbInBuffer, + LONG lOutBufferSize, + BYTE *pbOutBuffer, + LONG lInBytesAvailable, + LONG *plInBytesRead, + LONG *plOutBytesWritten, + DWORD dwReserved); + + + HRESULT ( __stdcall *DoDecode )( + IDataFilter * This, + DWORD dwFlags, + LONG lInBufferSize, + BYTE *pbInBuffer, + LONG lOutBufferSize, + BYTE *pbOutBuffer, + LONG lInBytesAvailable, + LONG *plInBytesRead, + LONG *plOutBytesWritten, + DWORD dwReserved); + + + HRESULT ( __stdcall *SetEncodingLevel )( + IDataFilter * This, + DWORD dwEncLevel); + + + } IDataFilterVtbl; + + struct IDataFilter + { + struct IDataFilterVtbl *lpVtbl; + }; +# 10275 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +typedef struct _tagPROTOCOLFILTERDATA + { + DWORD cbSize; + IInternetProtocolSink *pProtocolSink; + IInternetProtocol *pProtocol; + IUnknown *pUnk; + DWORD dwFilterFlags; + } PROTOCOLFILTERDATA; + + + +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0050_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0050_v0_0_s_ifspec; + + + + + + + +typedef IEncodingFilterFactory *LPENCODINGFILTERFACTORY; + +typedef struct _tagDATAINFO + { + ULONG ulTotalSize; + ULONG ulavrPacketSize; + ULONG ulConnectSpeed; + ULONG ulProcessorSpeed; + } DATAINFO; + + +extern const IID IID_IEncodingFilterFactory; +# 10330 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IEncodingFilterFactoryVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IEncodingFilterFactory * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IEncodingFilterFactory * This); + + + ULONG ( __stdcall *Release )( + IEncodingFilterFactory * This); + + + HRESULT ( __stdcall *FindBestFilter )( + IEncodingFilterFactory * This, + LPCWSTR pwzCodeIn, + LPCWSTR pwzCodeOut, + DATAINFO info, + IDataFilter **ppDF); + + + HRESULT ( __stdcall *GetDefaultFilter )( + IEncodingFilterFactory * This, + LPCWSTR pwzCodeIn, + LPCWSTR pwzCodeOut, + IDataFilter **ppDF); + + + } IEncodingFilterFactoryVtbl; + + struct IEncodingFilterFactory + { + struct IEncodingFilterFactoryVtbl *lpVtbl; + }; +# 10411 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +BOOL __stdcall IsLoggingEnabledA( LPCSTR pszUrl); +BOOL __stdcall IsLoggingEnabledW( LPCWSTR pwszUrl); + + + + + +typedef struct _tagHIT_LOGGING_INFO + { + DWORD dwStructSize; + LPSTR lpszLoggedUrlName; + SYSTEMTIME StartTime; + SYSTEMTIME EndTime; + LPSTR lpszExtendedInfo; + } HIT_LOGGING_INFO; + +typedef struct _tagHIT_LOGGING_INFO *LPHIT_LOGGING_INFO; + +BOOL __stdcall WriteHitLogging( LPHIT_LOGGING_INFO lpLogginginfo); + +struct CONFIRMSAFETY + { + CLSID clsid; + IUnknown *pUnk; + DWORD dwFlags; + } ; +extern const GUID GUID_CUSTOM_CONFIRMOBJECTSAFETY; + + + + + +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0051_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0051_v0_0_s_ifspec; + + + + + + + +typedef IWrappedProtocol *LPIWRAPPEDPROTOCOL; + + +extern const IID IID_IWrappedProtocol; +# 10472 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IWrappedProtocolVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IWrappedProtocol * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IWrappedProtocol * This); + + + ULONG ( __stdcall *Release )( + IWrappedProtocol * This); + + + HRESULT ( __stdcall *GetWrapperCode )( + IWrappedProtocol * This, + LONG *pnCode, + DWORD_PTR dwReserved); + + + } IWrappedProtocolVtbl; + + struct IWrappedProtocol + { + struct IWrappedProtocolVtbl *lpVtbl; + }; +# 10542 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0052_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0052_v0_0_s_ifspec; + + + + + + + +typedef IGetBindHandle *LPGETBINDHANDLE; + +typedef +enum __MIDL_IGetBindHandle_0001 + { + BINDHANDLETYPES_APPCACHE = 0, + BINDHANDLETYPES_DEPENDENCY = 0x1, + BINDHANDLETYPES_COUNT = ( BINDHANDLETYPES_DEPENDENCY + 1 ) + } BINDHANDLETYPES; + + +extern const IID IID_IGetBindHandle; +# 10579 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IGetBindHandleVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IGetBindHandle * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IGetBindHandle * This); + + + ULONG ( __stdcall *Release )( + IGetBindHandle * This); + + + HRESULT ( __stdcall *GetBindHandle )( + IGetBindHandle * This, + BINDHANDLETYPES enumRequestedHandle, + HANDLE *pRetHandle); + + + } IGetBindHandleVtbl; + + struct IGetBindHandle + { + struct IGetBindHandleVtbl *lpVtbl; + }; +# 10647 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +typedef struct _tagPROTOCOL_ARGUMENT + { + LPCWSTR szMethod; + LPCWSTR szTargetUrl; + } PROTOCOL_ARGUMENT; + +typedef struct _tagPROTOCOL_ARGUMENT *LPPROTOCOL_ARGUMENT; + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0053_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0053_v0_0_s_ifspec; + + + + + + + +typedef IBindCallbackRedirect *LPBINDCALLBACKREDIRECT; + + +extern const IID IID_IBindCallbackRedirect; +# 10689 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IBindCallbackRedirectVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IBindCallbackRedirect * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IBindCallbackRedirect * This); + + + ULONG ( __stdcall *Release )( + IBindCallbackRedirect * This); + + + HRESULT ( __stdcall *Redirect )( + IBindCallbackRedirect * This, + LPCWSTR lpcUrl, + VARIANT_BOOL *vbCancel); + + + } IBindCallbackRedirectVtbl; + + struct IBindCallbackRedirect + { + struct IBindCallbackRedirectVtbl *lpVtbl; + }; +# 10759 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0054_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0054_v0_0_s_ifspec; +# 10769 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +extern const IID IID_IBindHttpSecurity; +# 10785 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 + typedef struct IBindHttpSecurityVtbl + { + + + + HRESULT ( __stdcall *QueryInterface )( + IBindHttpSecurity * This, + const IID * const riid, + + void **ppvObject); + + + ULONG ( __stdcall *AddRef )( + IBindHttpSecurity * This); + + + ULONG ( __stdcall *Release )( + IBindHttpSecurity * This); + + + HRESULT ( __stdcall *GetIgnoreCertMask )( + IBindHttpSecurity * This, + DWORD *pdwIgnoreCertMask); + + + } IBindHttpSecurityVtbl; + + struct IBindHttpSecurity + { + struct IBindHttpSecurityVtbl *lpVtbl; + }; +# 10853 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 +#pragma warning(pop) + + + +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0055_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0055_v0_0_s_ifspec; + + + +unsigned long __stdcall BSTR_UserSize( unsigned long *, unsigned long , BSTR * ); +unsigned char * __stdcall BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * ); +unsigned char * __stdcall BSTR_UserUnmarshal( unsigned long *, unsigned char *, BSTR * ); +void __stdcall BSTR_UserFree( unsigned long *, BSTR * ); + +unsigned long __stdcall HWND_UserSize( unsigned long *, unsigned long , HWND * ); +unsigned char * __stdcall HWND_UserMarshal( unsigned long *, unsigned char *, HWND * ); +unsigned char * __stdcall HWND_UserUnmarshal( unsigned long *, unsigned char *, HWND * ); +void __stdcall HWND_UserFree( unsigned long *, HWND * ); + +unsigned long __stdcall BSTR_UserSize64( unsigned long *, unsigned long , BSTR * ); +unsigned char * __stdcall BSTR_UserMarshal64( unsigned long *, unsigned char *, BSTR * ); +unsigned char * __stdcall BSTR_UserUnmarshal64( unsigned long *, unsigned char *, BSTR * ); +void __stdcall BSTR_UserFree64( unsigned long *, BSTR * ); + +unsigned long __stdcall HWND_UserSize64( unsigned long *, unsigned long , HWND * ); +unsigned char * __stdcall HWND_UserMarshal64( unsigned long *, unsigned char *, HWND * ); +unsigned char * __stdcall HWND_UserUnmarshal64( unsigned long *, unsigned char *, HWND * ); +void __stdcall HWND_UserFree64( unsigned long *, HWND * ); + + HRESULT __stdcall IBinding_GetBindResult_Proxy( + IBinding * This, + CLSID *pclsidProtocol, + DWORD *pdwResult, + + LPOLESTR *pszResult, + DWORD *pdwReserved); + + + HRESULT __stdcall IBinding_GetBindResult_Stub( + IBinding * This, + CLSID *pclsidProtocol, + DWORD *pdwResult, + LPOLESTR *pszResult, + DWORD dwReserved); + + HRESULT __stdcall IBindStatusCallback_GetBindInfo_Proxy( + IBindStatusCallback * This, + DWORD *grfBINDF, + BINDINFO *pbindinfo); + + + HRESULT __stdcall IBindStatusCallback_GetBindInfo_Stub( + IBindStatusCallback * This, + DWORD *grfBINDF, + RemBINDINFO *pbindinfo, + RemSTGMEDIUM *pstgmed); + + HRESULT __stdcall IBindStatusCallback_OnDataAvailable_Proxy( + IBindStatusCallback * This, + DWORD grfBSCF, + DWORD dwSize, + FORMATETC *pformatetc, + STGMEDIUM *pstgmed); + + + HRESULT __stdcall IBindStatusCallback_OnDataAvailable_Stub( + IBindStatusCallback * This, + DWORD grfBSCF, + DWORD dwSize, + RemFORMATETC *pformatetc, + RemSTGMEDIUM *pstgmed); + + HRESULT __stdcall IBindStatusCallbackEx_GetBindInfoEx_Proxy( + IBindStatusCallbackEx * This, + DWORD *grfBINDF, + BINDINFO *pbindinfo, + DWORD *grfBINDF2, + DWORD *pdwReserved); + + + HRESULT __stdcall IBindStatusCallbackEx_GetBindInfoEx_Stub( + IBindStatusCallbackEx * This, + DWORD *grfBINDF, + RemBINDINFO *pbindinfo, + RemSTGMEDIUM *pstgmed, + DWORD *grfBINDF2, + DWORD *pdwReserved); + + HRESULT __stdcall IWinInetInfo_QueryOption_Proxy( + IWinInetInfo * This, + DWORD dwOption, + LPVOID pBuffer, + DWORD *pcbBuf); + + + HRESULT __stdcall IWinInetInfo_QueryOption_Stub( + IWinInetInfo * This, + DWORD dwOption, + BYTE *pBuffer, + DWORD *pcbBuf); + + HRESULT __stdcall IWinInetHttpInfo_QueryInfo_Proxy( + IWinInetHttpInfo * This, + DWORD dwOption, + LPVOID pBuffer, + DWORD *pcbBuf, + DWORD *pdwFlags, + DWORD *pdwReserved); + + + HRESULT __stdcall IWinInetHttpInfo_QueryInfo_Stub( + IWinInetHttpInfo * This, + DWORD dwOption, + BYTE *pBuffer, + DWORD *pcbBuf, + DWORD *pdwFlags, + DWORD *pdwReserved); + + HRESULT __stdcall IBindHost_MonikerBindToStorage_Proxy( + IBindHost * This, + IMoniker *pMk, + IBindCtx *pBC, + IBindStatusCallback *pBSC, + const IID * const riid, + void **ppvObj); + + + HRESULT __stdcall IBindHost_MonikerBindToStorage_Stub( + IBindHost * This, + IMoniker *pMk, + IBindCtx *pBC, + IBindStatusCallback *pBSC, + const IID * const riid, + IUnknown **ppvObj); + + HRESULT __stdcall IBindHost_MonikerBindToObject_Proxy( + IBindHost * This, + IMoniker *pMk, + IBindCtx *pBC, + IBindStatusCallback *pBSC, + const IID * const riid, + void **ppvObj); + + + HRESULT __stdcall IBindHost_MonikerBindToObject_Stub( + IBindHost * This, + IMoniker *pMk, + IBindCtx *pBC, + IBindStatusCallback *pBSC, + const IID * const riid, + IUnknown **ppvObj); +# 260 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidl.h" 1 3 +# 98 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidl.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + +#pragma warning(disable: 4201) +#pragma warning(disable: 4237) +# 1198 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidl.h" 3 +enum PIDMSI_STATUS_VALUE + { + PIDMSI_STATUS_NORMAL = 0, + PIDMSI_STATUS_NEW = ( PIDMSI_STATUS_NORMAL + 1 ) , + PIDMSI_STATUS_PRELIM = ( PIDMSI_STATUS_NEW + 1 ) , + PIDMSI_STATUS_DRAFT = ( PIDMSI_STATUS_PRELIM + 1 ) , + PIDMSI_STATUS_INPROGRESS = ( PIDMSI_STATUS_DRAFT + 1 ) , + PIDMSI_STATUS_EDIT = ( PIDMSI_STATUS_INPROGRESS + 1 ) , + PIDMSI_STATUS_REVIEW = ( PIDMSI_STATUS_EDIT + 1 ) , + PIDMSI_STATUS_PROOF = ( PIDMSI_STATUS_REVIEW + 1 ) , + PIDMSI_STATUS_FINAL = ( PIDMSI_STATUS_PROOF + 1 ) , + PIDMSI_STATUS_OTHER = 0x7fff + } ; + + + + + extern __declspec(dllimport) HRESULT __stdcall PropVariantCopy( + PROPVARIANT* pvarDest, + const PROPVARIANT * pvarSrc); + +extern __declspec(dllimport) HRESULT __stdcall PropVariantClear( PROPVARIANT* pvar); + +extern __declspec(dllimport) HRESULT __stdcall FreePropVariantArray( + ULONG cVariants, + PROPVARIANT* rgvars); +# 1255 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidl.h" 3 +typedef struct tagSERIALIZEDPROPERTYVALUE +{ + DWORD dwType; + BYTE rgb[1]; +} SERIALIZEDPROPERTYVALUE; + + +extern + +SERIALIZEDPROPERTYVALUE* __stdcall +StgConvertVariantToProperty( + const PROPVARIANT* pvar, + USHORT CodePage, + SERIALIZEDPROPERTYVALUE* pprop, + ULONG* pcb, + PROPID pid, + BOOLEAN fReserved, + ULONG* pcIndirect); +# 1291 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidl.h" 3 +#pragma warning(pop) + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_propidl_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_propidl_0000_0004_v0_0_s_ifspec; + + + +unsigned long __stdcall BSTR_UserSize( unsigned long *, unsigned long , BSTR * ); +unsigned char * __stdcall BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * ); +unsigned char * __stdcall BSTR_UserUnmarshal( unsigned long *, unsigned char *, BSTR * ); +void __stdcall BSTR_UserFree( unsigned long *, BSTR * ); + +unsigned long __stdcall LPSAFEARRAY_UserSize( unsigned long *, unsigned long , LPSAFEARRAY * ); +unsigned char * __stdcall LPSAFEARRAY_UserMarshal( unsigned long *, unsigned char *, LPSAFEARRAY * ); +unsigned char * __stdcall LPSAFEARRAY_UserUnmarshal( unsigned long *, unsigned char *, LPSAFEARRAY * ); +void __stdcall LPSAFEARRAY_UserFree( unsigned long *, LPSAFEARRAY * ); + +unsigned long __stdcall BSTR_UserSize64( unsigned long *, unsigned long , BSTR * ); +unsigned char * __stdcall BSTR_UserMarshal64( unsigned long *, unsigned char *, BSTR * ); +unsigned char * __stdcall BSTR_UserUnmarshal64( unsigned long *, unsigned char *, BSTR * ); +void __stdcall BSTR_UserFree64( unsigned long *, BSTR * ); + +unsigned long __stdcall LPSAFEARRAY_UserSize64( unsigned long *, unsigned long , LPSAFEARRAY * ); +unsigned char * __stdcall LPSAFEARRAY_UserMarshal64( unsigned long *, unsigned char *, LPSAFEARRAY * ); +unsigned char * __stdcall LPSAFEARRAY_UserUnmarshal64( unsigned long *, unsigned char *, LPSAFEARRAY * ); +void __stdcall LPSAFEARRAY_UserFree64( unsigned long *, LPSAFEARRAY * ); + + HRESULT __stdcall IEnumSTATPROPSTG_Next_Proxy( + IEnumSTATPROPSTG * This, + ULONG celt, + + STATPROPSTG *rgelt, + + ULONG *pceltFetched); + + + HRESULT __stdcall IEnumSTATPROPSTG_Next_Stub( + IEnumSTATPROPSTG * This, + ULONG celt, + STATPROPSTG *rgelt, + ULONG *pceltFetched); + + HRESULT __stdcall IEnumSTATPROPSETSTG_Next_Proxy( + IEnumSTATPROPSETSTG * This, + ULONG celt, + + STATPROPSETSTG *rgelt, + + ULONG *pceltFetched); + + + HRESULT __stdcall IEnumSTATPROPSETSTG_Next_Stub( + IEnumSTATPROPSETSTG * This, + ULONG celt, + STATPROPSETSTG *rgelt, + ULONG *pceltFetched); +# 261 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 2 3 + + + + + + + +extern __declspec(dllimport) HRESULT __stdcall CreateStdProgressIndicator( HWND hwndParent, + LPCOLESTR pszTitle, + IBindStatusCallback * pIbscCaller, + IBindStatusCallback ** ppIbsc); + + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 279 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 2 3 +# 38 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 2 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 1 3 + + + +#pragma warning(push) +#pragma warning(disable: 4001) +#pragma warning(disable: 4820) +# 29 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 +# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(push,8) +# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 2 3 +# 42 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern const IID IID_StdOle; +# 74 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) BSTR __stdcall SysAllocString( const OLECHAR * psz); +extern __declspec(dllimport) INT __stdcall SysReAllocString( BSTR* pbstr, const OLECHAR* psz); +extern __declspec(dllimport) BSTR __stdcall SysAllocStringLen( const OLECHAR * strIn, UINT ui); + extern __declspec(dllimport) INT __stdcall SysReAllocStringLen( BSTR* pbstr, const OLECHAR* psz, unsigned int len); +extern __declspec(dllimport) HRESULT __stdcall SysAddRefString( BSTR bstrString); +extern __declspec(dllimport) void __stdcall SysReleaseString( BSTR bstrString); +extern __declspec(dllimport) void __stdcall SysFreeString( BSTR bstrString); +extern __declspec(dllimport) UINT __stdcall SysStringLen( BSTR pbstr); + + +extern __declspec(dllimport) UINT __stdcall SysStringByteLen( BSTR bstr); +extern __declspec(dllimport) BSTR __stdcall SysAllocStringByteLen( LPCSTR psz, UINT len); +# 99 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) INT __stdcall DosDateTimeToVariantTime( USHORT wDosDate, USHORT wDosTime, DOUBLE * pvtime); + +extern __declspec(dllimport) INT __stdcall VariantTimeToDosDateTime( DOUBLE vtime, USHORT * pwDosDate, USHORT * pwDosTime); +# 111 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) INT __stdcall SystemTimeToVariantTime( LPSYSTEMTIME lpSystemTime, DOUBLE *pvtime); +extern __declspec(dllimport) INT __stdcall VariantTimeToSystemTime( DOUBLE vtime, LPSYSTEMTIME lpSystemTime); +# 127 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) HRESULT __stdcall SafeArrayAllocDescriptor( UINT cDims, SAFEARRAY ** ppsaOut); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayAllocDescriptorEx( VARTYPE vt, UINT cDims, SAFEARRAY ** ppsaOut); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayAllocData( SAFEARRAY * psa); +extern __declspec(dllimport) SAFEARRAY * __stdcall SafeArrayCreate( VARTYPE vt, UINT cDims, SAFEARRAYBOUND * rgsabound); +extern __declspec(dllimport) SAFEARRAY * __stdcall SafeArrayCreateEx( VARTYPE vt, UINT cDims, SAFEARRAYBOUND * rgsabound, PVOID pvExtra); + +extern __declspec(dllimport) HRESULT __stdcall SafeArrayCopyData( SAFEARRAY *psaSource, SAFEARRAY *psaTarget); +extern __declspec(dllimport) void __stdcall SafeArrayReleaseDescriptor( SAFEARRAY * psa); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayDestroyDescriptor( SAFEARRAY * psa); +extern __declspec(dllimport) void __stdcall SafeArrayReleaseData( PVOID pData); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayDestroyData( SAFEARRAY * psa); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayAddRef( SAFEARRAY * psa, PVOID *ppDataToRelease); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayDestroy( SAFEARRAY * psa); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayRedim( SAFEARRAY * psa, SAFEARRAYBOUND * psaboundNew); +extern __declspec(dllimport) UINT __stdcall SafeArrayGetDim( SAFEARRAY * psa); +extern __declspec(dllimport) UINT __stdcall SafeArrayGetElemsize( SAFEARRAY * psa); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayGetUBound( SAFEARRAY * psa, UINT nDim, LONG * plUbound); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayGetLBound( SAFEARRAY * psa, UINT nDim, LONG * plLbound); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayLock( SAFEARRAY * psa); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayUnlock( SAFEARRAY * psa); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayAccessData( SAFEARRAY * psa, void ** ppvData); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayUnaccessData( SAFEARRAY * psa); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayGetElement( SAFEARRAY * psa, LONG * rgIndices, void * pv); + +extern __declspec(dllimport) HRESULT __stdcall SafeArrayPutElement( SAFEARRAY * psa, LONG * rgIndices, void * pv); + +extern __declspec(dllimport) HRESULT __stdcall SafeArrayCopy( SAFEARRAY * psa, SAFEARRAY ** ppsaOut); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayPtrOfIndex( SAFEARRAY * psa, LONG * rgIndices, void ** ppvData); +extern __declspec(dllimport) HRESULT __stdcall SafeArraySetRecordInfo( SAFEARRAY * psa, IRecordInfo * prinfo); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayGetRecordInfo( SAFEARRAY * psa, IRecordInfo ** prinfo); +extern __declspec(dllimport) HRESULT __stdcall SafeArraySetIID( SAFEARRAY * psa, const GUID * const guid); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayGetIID( SAFEARRAY * psa, GUID * pguid); +extern __declspec(dllimport) HRESULT __stdcall SafeArrayGetVartype( SAFEARRAY * psa, VARTYPE * pvt); +extern __declspec(dllimport) SAFEARRAY * __stdcall SafeArrayCreateVector( VARTYPE vt, LONG lLbound, ULONG cElements); +extern __declspec(dllimport) SAFEARRAY * __stdcall SafeArrayCreateVectorEx( VARTYPE vt, LONG lLbound, ULONG cElements, PVOID pvExtra); +# 174 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) void __stdcall VariantInit( VARIANTARG * pvarg); +extern __declspec(dllimport) HRESULT __stdcall VariantClear( VARIANTARG * pvarg); + +extern __declspec(dllimport) HRESULT __stdcall VariantCopy( VARIANTARG * pvargDest, const VARIANTARG * pvargSrc); + +extern __declspec(dllimport) HRESULT __stdcall VariantCopyInd( VARIANT * pvarDest, const VARIANTARG * pvargSrc); + +extern __declspec(dllimport) HRESULT __stdcall VariantChangeType( VARIANTARG * pvargDest, + const VARIANTARG * pvarSrc, USHORT wFlags, VARTYPE vt); + +extern __declspec(dllimport) HRESULT __stdcall VariantChangeTypeEx( VARIANTARG * pvargDest, + const VARIANTARG * pvarSrc, LCID lcid, USHORT wFlags, VARTYPE vt); +# 213 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) HRESULT __stdcall VectorFromBstr ( BSTR bstr, SAFEARRAY ** ppsa); + +extern __declspec(dllimport) HRESULT __stdcall BstrFromVector ( SAFEARRAY *psa, BSTR *pbstr); +# 291 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromI2(SHORT sIn, BYTE * pbOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromI4(LONG lIn, BYTE * pbOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromI8(LONG64 i64In, BYTE * pbOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromR4(FLOAT fltIn, BYTE * pbOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromR8(DOUBLE dblIn, BYTE * pbOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromCy(CY cyIn, BYTE * pbOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromDate(DATE dateIn, BYTE * pbOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, BYTE * pbOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromDisp(IDispatch * pdispIn, LCID lcid, BYTE * pbOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromBool(VARIANT_BOOL boolIn, BYTE * pbOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromI1(CHAR cIn, BYTE *pbOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromUI2(USHORT uiIn, BYTE *pbOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromUI4(ULONG ulIn, BYTE *pbOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromUI8(ULONG64 ui64In, BYTE * pbOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI1FromDec( const DECIMAL *pdecIn, BYTE *pbOut); + +extern __declspec(dllimport) HRESULT __stdcall VarI2FromUI1(BYTE bIn, SHORT * psOut); +extern __declspec(dllimport) HRESULT __stdcall VarI2FromI4(LONG lIn, SHORT * psOut); +extern __declspec(dllimport) HRESULT __stdcall VarI2FromI8(LONG64 i64In, SHORT * psOut); +extern __declspec(dllimport) HRESULT __stdcall VarI2FromR4(FLOAT fltIn, SHORT * psOut); +extern __declspec(dllimport) HRESULT __stdcall VarI2FromR8(DOUBLE dblIn, SHORT * psOut); +extern __declspec(dllimport) HRESULT __stdcall VarI2FromCy(CY cyIn, SHORT * psOut); +extern __declspec(dllimport) HRESULT __stdcall VarI2FromDate(DATE dateIn, SHORT * psOut); +extern __declspec(dllimport) HRESULT __stdcall VarI2FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, SHORT * psOut); +extern __declspec(dllimport) HRESULT __stdcall VarI2FromDisp(IDispatch * pdispIn, LCID lcid, SHORT * psOut); +extern __declspec(dllimport) HRESULT __stdcall VarI2FromBool(VARIANT_BOOL boolIn, SHORT * psOut); +extern __declspec(dllimport) HRESULT __stdcall VarI2FromI1(CHAR cIn, SHORT *psOut); +extern __declspec(dllimport) HRESULT __stdcall VarI2FromUI2(USHORT uiIn, SHORT *psOut); +extern __declspec(dllimport) HRESULT __stdcall VarI2FromUI4(ULONG ulIn, SHORT *psOut); +extern __declspec(dllimport) HRESULT __stdcall VarI2FromUI8(ULONG64 ui64In, SHORT * psOut); +extern __declspec(dllimport) HRESULT __stdcall VarI2FromDec( const DECIMAL *pdecIn, SHORT *psOut); + +extern __declspec(dllimport) HRESULT __stdcall VarI4FromUI1(BYTE bIn, LONG * plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromI2(SHORT sIn, LONG * plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromI8(LONG64 i64In, LONG * plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromR4(FLOAT fltIn, LONG * plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromR8(DOUBLE dblIn, LONG * plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromCy(CY cyIn, LONG * plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromDate(DATE dateIn, LONG * plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, LONG * plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromDisp(IDispatch * pdispIn, LCID lcid, LONG * plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromBool(VARIANT_BOOL boolIn, LONG * plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromI1(CHAR cIn, LONG *plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromUI2(USHORT uiIn, LONG *plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromUI4(ULONG ulIn, LONG *plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromUI8(ULONG64 ui64In, LONG * plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromDec( const DECIMAL *pdecIn, LONG *plOut); + + + +extern __declspec(dllimport) HRESULT __stdcall VarI8FromUI1(BYTE bIn, LONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarI8FromI2(SHORT sIn, LONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarI8FromR4(FLOAT fltIn, LONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarI8FromR8(DOUBLE dblIn, LONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarI8FromCy( CY cyIn, LONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarI8FromDate(DATE dateIn, LONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarI8FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, LONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarI8FromDisp(IDispatch * pdispIn, LCID lcid, LONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarI8FromBool(VARIANT_BOOL boolIn, LONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarI8FromI1(CHAR cIn, LONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarI8FromUI2(USHORT uiIn, LONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarI8FromUI4(ULONG ulIn, LONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarI8FromUI8(ULONG64 ui64In, LONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarI8FromDec( const DECIMAL *pdecIn, LONG64 * pi64Out); + + + + + +extern __declspec(dllimport) HRESULT __stdcall VarR4FromUI1(BYTE bIn, FLOAT * pfltOut); +extern __declspec(dllimport) HRESULT __stdcall VarR4FromI2(SHORT sIn, FLOAT * pfltOut); +extern __declspec(dllimport) HRESULT __stdcall VarR4FromI4(LONG lIn, FLOAT * pfltOut); +extern __declspec(dllimport) HRESULT __stdcall VarR4FromI8(LONG64 i64In, FLOAT * pfltOut); +extern __declspec(dllimport) HRESULT __stdcall VarR4FromR8(DOUBLE dblIn, FLOAT * pfltOut); +extern __declspec(dllimport) HRESULT __stdcall VarR4FromCy(CY cyIn, FLOAT * pfltOut); +extern __declspec(dllimport) HRESULT __stdcall VarR4FromDate(DATE dateIn, FLOAT * pfltOut); +extern __declspec(dllimport) HRESULT __stdcall VarR4FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, FLOAT *pfltOut); +extern __declspec(dllimport) HRESULT __stdcall VarR4FromDisp(IDispatch * pdispIn, LCID lcid, FLOAT * pfltOut); +extern __declspec(dllimport) HRESULT __stdcall VarR4FromBool(VARIANT_BOOL boolIn, FLOAT * pfltOut); +extern __declspec(dllimport) HRESULT __stdcall VarR4FromI1(CHAR cIn, FLOAT *pfltOut); +extern __declspec(dllimport) HRESULT __stdcall VarR4FromUI2(USHORT uiIn, FLOAT *pfltOut); +extern __declspec(dllimport) HRESULT __stdcall VarR4FromUI4(ULONG ulIn, FLOAT *pfltOut); +extern __declspec(dllimport) HRESULT __stdcall VarR4FromUI8(ULONG64 ui64In, FLOAT * pfltOut); +extern __declspec(dllimport) HRESULT __stdcall VarR4FromDec( const DECIMAL *pdecIn, FLOAT *pfltOut); + +extern __declspec(dllimport) HRESULT __stdcall VarR8FromUI1(BYTE bIn, DOUBLE * pdblOut); +extern __declspec(dllimport) HRESULT __stdcall VarR8FromI2(SHORT sIn, DOUBLE * pdblOut); +extern __declspec(dllimport) HRESULT __stdcall VarR8FromI4(LONG lIn, DOUBLE * pdblOut); +extern __declspec(dllimport) HRESULT __stdcall VarR8FromI8(LONG64 i64In, DOUBLE * pdblOut); +extern __declspec(dllimport) HRESULT __stdcall VarR8FromR4(FLOAT fltIn, DOUBLE * pdblOut); +extern __declspec(dllimport) HRESULT __stdcall VarR8FromCy(CY cyIn, DOUBLE * pdblOut); +extern __declspec(dllimport) HRESULT __stdcall VarR8FromDate(DATE dateIn, DOUBLE * pdblOut); +extern __declspec(dllimport) HRESULT __stdcall VarR8FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, DOUBLE *pdblOut); +extern __declspec(dllimport) HRESULT __stdcall VarR8FromDisp(IDispatch * pdispIn, LCID lcid, DOUBLE * pdblOut); +extern __declspec(dllimport) HRESULT __stdcall VarR8FromBool(VARIANT_BOOL boolIn, DOUBLE * pdblOut); +extern __declspec(dllimport) HRESULT __stdcall VarR8FromI1(CHAR cIn, DOUBLE *pdblOut); +extern __declspec(dllimport) HRESULT __stdcall VarR8FromUI2(USHORT uiIn, DOUBLE *pdblOut); +extern __declspec(dllimport) HRESULT __stdcall VarR8FromUI4(ULONG ulIn, DOUBLE *pdblOut); +extern __declspec(dllimport) HRESULT __stdcall VarR8FromUI8(ULONG64 ui64In, DOUBLE * pdblOut); +extern __declspec(dllimport) HRESULT __stdcall VarR8FromDec( const DECIMAL *pdecIn, DOUBLE *pdblOut); + +extern __declspec(dllimport) HRESULT __stdcall VarDateFromUI1(BYTE bIn, DATE * pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromI2(SHORT sIn, DATE * pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromI4(LONG lIn, DATE * pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromI8(LONG64 i64In, DATE * pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromR4(FLOAT fltIn, DATE * pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromR8(DOUBLE dblIn, DATE * pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromCy(CY cyIn, DATE * pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, DATE *pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromDisp(IDispatch * pdispIn, LCID lcid, DATE * pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromBool(VARIANT_BOOL boolIn, DATE * pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromI1(CHAR cIn, DATE *pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromUI2(USHORT uiIn, DATE *pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromUI4(ULONG ulIn, DATE *pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromUI8(ULONG64 ui64In, DATE * pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromDec( const DECIMAL *pdecIn, DATE *pdateOut); + +extern __declspec(dllimport) HRESULT __stdcall VarCyFromUI1(BYTE bIn, CY * pcyOut); +extern __declspec(dllimport) HRESULT __stdcall VarCyFromI2(SHORT sIn, CY * pcyOut); +extern __declspec(dllimport) HRESULT __stdcall VarCyFromI4(LONG lIn, CY * pcyOut); +extern __declspec(dllimport) HRESULT __stdcall VarCyFromI8(LONG64 i64In, CY * pcyOut); +extern __declspec(dllimport) HRESULT __stdcall VarCyFromR4(FLOAT fltIn, CY * pcyOut); +extern __declspec(dllimport) HRESULT __stdcall VarCyFromR8(DOUBLE dblIn, CY * pcyOut); +extern __declspec(dllimport) HRESULT __stdcall VarCyFromDate(DATE dateIn, CY * pcyOut); +extern __declspec(dllimport) HRESULT __stdcall VarCyFromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, CY * pcyOut); +extern __declspec(dllimport) HRESULT __stdcall VarCyFromDisp( IDispatch * pdispIn, LCID lcid, CY * pcyOut); +extern __declspec(dllimport) HRESULT __stdcall VarCyFromBool(VARIANT_BOOL boolIn, CY * pcyOut); +extern __declspec(dllimport) HRESULT __stdcall VarCyFromI1(CHAR cIn, CY *pcyOut); +extern __declspec(dllimport) HRESULT __stdcall VarCyFromUI2(USHORT uiIn, CY *pcyOut); +extern __declspec(dllimport) HRESULT __stdcall VarCyFromUI4(ULONG ulIn, CY *pcyOut); +extern __declspec(dllimport) HRESULT __stdcall VarCyFromUI8(ULONG64 ui64In, CY * pcyOut); +extern __declspec(dllimport) HRESULT __stdcall VarCyFromDec( const DECIMAL *pdecIn, CY *pcyOut); + +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromUI1(BYTE bVal, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromI2(SHORT iVal, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromI4(LONG lIn, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromI8(LONG64 i64In, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromR4(FLOAT fltIn, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromR8(DOUBLE dblIn, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromCy(CY cyIn, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromDate( DATE dateIn, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromDisp(IDispatch * pdispIn, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromBool(VARIANT_BOOL boolIn, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromI1(CHAR cIn, LCID lcid, ULONG dwFlags, BSTR *pbstrOut); +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromUI2(USHORT uiIn, LCID lcid, ULONG dwFlags, BSTR *pbstrOut); +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromUI4(ULONG ulIn, LCID lcid, ULONG dwFlags, BSTR *pbstrOut); +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromUI8(ULONG64 ui64In, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); +extern __declspec(dllimport) HRESULT __stdcall VarBstrFromDec( const DECIMAL *pdecIn, LCID lcid, ULONG dwFlags, BSTR *pbstrOut); + +extern __declspec(dllimport) HRESULT __stdcall VarBoolFromUI1(BYTE bIn, VARIANT_BOOL * pboolOut); + extern __declspec(dllimport) HRESULT __stdcall VarBoolFromI2( SHORT sIn, VARIANT_BOOL * pboolOut); +extern __declspec(dllimport) HRESULT __stdcall VarBoolFromI4(LONG lIn, VARIANT_BOOL * pboolOut); +extern __declspec(dllimport) HRESULT __stdcall VarBoolFromI8(LONG64 i64In, VARIANT_BOOL * pboolOut); +extern __declspec(dllimport) HRESULT __stdcall VarBoolFromR4(FLOAT fltIn, VARIANT_BOOL * pboolOut); +extern __declspec(dllimport) HRESULT __stdcall VarBoolFromR8(DOUBLE dblIn, VARIANT_BOOL * pboolOut); +extern __declspec(dllimport) HRESULT __stdcall VarBoolFromDate(DATE dateIn, VARIANT_BOOL * pboolOut); +extern __declspec(dllimport) HRESULT __stdcall VarBoolFromCy(CY cyIn, VARIANT_BOOL * pboolOut); +extern __declspec(dllimport) HRESULT __stdcall VarBoolFromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, VARIANT_BOOL * pboolOut); +extern __declspec(dllimport) HRESULT __stdcall VarBoolFromDisp(IDispatch * pdispIn, LCID lcid, VARIANT_BOOL * pboolOut); +extern __declspec(dllimport) HRESULT __stdcall VarBoolFromI1(CHAR cIn, VARIANT_BOOL *pboolOut); +extern __declspec(dllimport) HRESULT __stdcall VarBoolFromUI2(USHORT uiIn, VARIANT_BOOL *pboolOut); +extern __declspec(dllimport) HRESULT __stdcall VarBoolFromUI4(ULONG ulIn, VARIANT_BOOL *pboolOut); +extern __declspec(dllimport) HRESULT __stdcall VarBoolFromUI8(ULONG64 i64In, VARIANT_BOOL * pboolOut); +extern __declspec(dllimport) HRESULT __stdcall VarBoolFromDec( const DECIMAL *pdecIn, VARIANT_BOOL *pboolOut); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromUI1( + BYTE bIn, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromI2( + SHORT uiIn, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromI4( + LONG lIn, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromI8( + LONG64 i64In, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromR4( + FLOAT fltIn, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromR8( + DOUBLE dblIn, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromDate( + DATE dateIn, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromCy( + CY cyIn, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromStr( + LPCOLESTR strIn, + LCID lcid, + ULONG dwFlags, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromDisp( + IDispatch *pdispIn, + LCID lcid, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromBool( + VARIANT_BOOL boolIn, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromUI2( + USHORT uiIn, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromUI4( + ULONG ulIn, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromUI8( + ULONG64 i64In, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall +VarI1FromDec( + const DECIMAL *pdecIn, + CHAR *pcOut + ); + +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromUI1(BYTE bIn, USHORT *puiOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromI2(SHORT uiIn, USHORT *puiOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromI4(LONG lIn, USHORT *puiOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromI8(LONG64 i64In, USHORT *puiOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromR4(FLOAT fltIn, USHORT *puiOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromR8(DOUBLE dblIn, USHORT *puiOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromDate(DATE dateIn, USHORT *puiOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromCy(CY cyIn, USHORT *puiOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, USHORT *puiOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromDisp( IDispatch *pdispIn, LCID lcid, USHORT *puiOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromBool(VARIANT_BOOL boolIn, USHORT *puiOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromI1(CHAR cIn, USHORT *puiOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromUI4(ULONG ulIn, USHORT *puiOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromUI8(ULONG64 i64In, USHORT *puiOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI2FromDec( const DECIMAL *pdecIn, USHORT *puiOut); + +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromUI1(BYTE bIn, ULONG *pulOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromI2( SHORT uiIn, ULONG *pulOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromI4(LONG lIn, ULONG *pulOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromI8(LONG64 i64In, ULONG *plOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromR4(FLOAT fltIn, ULONG *pulOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromR8(DOUBLE dblIn, ULONG *pulOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromDate(DATE dateIn, ULONG *pulOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromCy(CY cyIn, ULONG *pulOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, ULONG *pulOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromDisp( IDispatch *pdispIn, LCID lcid, ULONG *pulOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromBool(VARIANT_BOOL boolIn, ULONG *pulOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromI1(CHAR cIn, ULONG *pulOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromUI2(USHORT uiIn, ULONG *pulOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromUI8(ULONG64 ui64In, ULONG *plOut); +extern __declspec(dllimport) HRESULT __stdcall VarUI4FromDec( const DECIMAL *pdecIn, ULONG *pulOut); + + + +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromUI1(BYTE bIn, ULONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromI2(SHORT sIn, ULONG64 * pi64Out); + + + + + + + +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromI4(LONG lIn, ULONG64 * pi64Out); + + + + + + + +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromI8(LONG64 ui64In, ULONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromR4(FLOAT fltIn, ULONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromR8(DOUBLE dblIn, ULONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromCy(CY cyIn, ULONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromDate(DATE dateIn, ULONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, ULONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromDisp( IDispatch * pdispIn, LCID lcid, ULONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromBool(VARIANT_BOOL boolIn, ULONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromI1(CHAR cIn, ULONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromUI2(USHORT uiIn, ULONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromUI4(ULONG ulIn, ULONG64 * pi64Out); +extern __declspec(dllimport) HRESULT __stdcall VarUI8FromDec( const DECIMAL *pdecIn, ULONG64 * pi64Out); + + + + + + +extern __declspec(dllimport) HRESULT __stdcall VarDecFromUI1( BYTE bIn, DECIMAL *pdecOut); +extern __declspec(dllimport) HRESULT __stdcall VarDecFromI2( SHORT uiIn, DECIMAL *pdecOut); +extern __declspec(dllimport) HRESULT __stdcall VarDecFromI4( LONG lIn, DECIMAL *pdecOut); +extern __declspec(dllimport) HRESULT __stdcall VarDecFromI8(LONG64 i64In, DECIMAL *pdecOut); +extern __declspec(dllimport) HRESULT __stdcall VarDecFromR4( FLOAT fltIn, DECIMAL *pdecOut); +extern __declspec(dllimport) HRESULT __stdcall VarDecFromR8( DOUBLE dblIn, DECIMAL *pdecOut); +extern __declspec(dllimport) HRESULT __stdcall VarDecFromDate( DATE dateIn, DECIMAL *pdecOut); +extern __declspec(dllimport) HRESULT __stdcall VarDecFromCy( CY cyIn, DECIMAL *pdecOut); +extern __declspec(dllimport) HRESULT __stdcall VarDecFromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, DECIMAL *pdecOut); +extern __declspec(dllimport) HRESULT __stdcall VarDecFromDisp( IDispatch *pdispIn, LCID lcid, DECIMAL *pdecOut); +extern __declspec(dllimport) HRESULT __stdcall VarDecFromBool( VARIANT_BOOL boolIn, DECIMAL *pdecOut); +extern __declspec(dllimport) HRESULT __stdcall VarDecFromI1( CHAR cIn, DECIMAL *pdecOut); +extern __declspec(dllimport) HRESULT __stdcall VarDecFromUI2( USHORT uiIn, DECIMAL *pdecOut); +extern __declspec(dllimport) HRESULT __stdcall VarDecFromUI4( ULONG ulIn, DECIMAL *pdecOut); +extern __declspec(dllimport) HRESULT __stdcall VarDecFromUI8(ULONG64 ui64In, DECIMAL *pdecOut); +# 644 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) HRESULT __stdcall VarI4FromI8(LONG64 i64In, LONG *plOut); +extern __declspec(dllimport) HRESULT __stdcall VarI4FromUI8(ULONG64 ui64In, LONG *plOut); +# 735 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +typedef struct { + INT cDig; + ULONG dwInFlags; + ULONG dwOutFlags; + INT cchUsed; + INT nBaseShift; + INT nPwr10; +} NUMPARSE; +# 786 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) HRESULT __stdcall VarParseNumFromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, + NUMPARSE * pnumprs, BYTE * rgbDig); + + +extern __declspec(dllimport) HRESULT __stdcall VarNumFromParseNum( NUMPARSE * pnumprs, BYTE * rgbDig, + ULONG dwVtBits, VARIANT * pvar); +# 803 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern HRESULT __stdcall VarAdd( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); +extern HRESULT __stdcall VarAnd( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); +extern HRESULT __stdcall VarCat( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); +extern HRESULT __stdcall VarDiv( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); +extern HRESULT __stdcall VarEqv( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); +extern HRESULT __stdcall VarIdiv( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); +extern HRESULT __stdcall VarImp( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); +extern HRESULT __stdcall VarMod( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); +extern HRESULT __stdcall VarMul( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); +extern HRESULT __stdcall VarOr( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); +extern HRESULT __stdcall VarPow( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); +extern HRESULT __stdcall VarSub( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); +extern HRESULT __stdcall VarXor( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); + +extern HRESULT __stdcall VarAbs( LPVARIANT pvarIn, LPVARIANT pvarResult); +extern HRESULT __stdcall VarFix( LPVARIANT pvarIn, LPVARIANT pvarResult); +extern HRESULT __stdcall VarInt( LPVARIANT pvarIn, LPVARIANT pvarResult); +extern HRESULT __stdcall VarNeg( LPVARIANT pvarIn, LPVARIANT pvarResult); +extern HRESULT __stdcall VarNot( LPVARIANT pvarIn, LPVARIANT pvarResult); + +extern HRESULT __stdcall VarRound( LPVARIANT pvarIn, int cDecimals, LPVARIANT pvarResult); + + +extern HRESULT __stdcall VarCmp( LPVARIANT pvarLeft, LPVARIANT pvarRight, LCID lcid, ULONG dwFlags); +# 860 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern HRESULT __stdcall VarDecAdd( LPDECIMAL pdecLeft, LPDECIMAL pdecRight, LPDECIMAL pdecResult); +extern HRESULT __stdcall VarDecDiv( LPDECIMAL pdecLeft, LPDECIMAL pdecRight, LPDECIMAL pdecResult); +extern HRESULT __stdcall VarDecMul( LPDECIMAL pdecLeft, LPDECIMAL pdecRight, LPDECIMAL pdecResult); +extern HRESULT __stdcall VarDecSub( LPDECIMAL pdecLeft, LPDECIMAL pdecRight, LPDECIMAL pdecResult); + +extern HRESULT __stdcall VarDecAbs( LPDECIMAL pdecIn, LPDECIMAL pdecResult); +extern HRESULT __stdcall VarDecFix( LPDECIMAL pdecIn, LPDECIMAL pdecResult); +extern HRESULT __stdcall VarDecInt( LPDECIMAL pdecIn, LPDECIMAL pdecResult); +extern HRESULT __stdcall VarDecNeg( LPDECIMAL pdecIn, LPDECIMAL pdecResult); + +extern HRESULT __stdcall VarDecRound( LPDECIMAL pdecIn, int cDecimals, LPDECIMAL pdecResult); + +extern HRESULT __stdcall VarDecCmp( LPDECIMAL pdecLeft, LPDECIMAL pdecRight); +extern HRESULT __stdcall VarDecCmpR8( LPDECIMAL pdecLeft, double dblRight); + + + + +extern HRESULT __stdcall VarCyAdd( CY cyLeft, CY cyRight, LPCY pcyResult); +extern HRESULT __stdcall VarCyMul( CY cyLeft, CY cyRight, LPCY pcyResult); +extern HRESULT __stdcall VarCyMulI4( CY cyLeft, LONG lRight, LPCY pcyResult); +extern HRESULT __stdcall VarCyMulI8( CY cyLeft, LONG64 lRight, LPCY pcyResult); +extern HRESULT __stdcall VarCySub( CY cyLeft, CY cyRight, LPCY pcyResult); + +extern HRESULT __stdcall VarCyAbs( CY cyIn, LPCY pcyResult); +extern HRESULT __stdcall VarCyFix( CY cyIn, LPCY pcyResult); +extern HRESULT __stdcall VarCyInt( CY cyIn, LPCY pcyResult); +extern HRESULT __stdcall VarCyNeg( CY cyIn, LPCY pcyResult); + +extern HRESULT __stdcall VarCyRound( CY cyIn, int cDecimals, LPCY pcyResult); + +extern HRESULT __stdcall VarCyCmp( CY cyLeft, CY cyRight); +extern HRESULT __stdcall VarCyCmpR8( CY cyLeft, double dblRight); + + + + +extern HRESULT __stdcall VarBstrCat( BSTR bstrLeft, BSTR bstrRight, LPBSTR pbstrResult); +extern HRESULT __stdcall VarBstrCmp( BSTR bstrLeft, BSTR bstrRight, LCID lcid, ULONG dwFlags); +extern HRESULT __stdcall VarR8Pow( double dblLeft, double dblRight, double *pdblResult); +extern HRESULT __stdcall VarR4CmpR8( float fltLeft, double dblRight); +extern HRESULT __stdcall VarR8Round( double dblIn, int cDecimals, double *pdblResult); +# 930 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +typedef struct { + SYSTEMTIME st; + USHORT wDayOfYear; +} UDATE; +# 944 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) HRESULT __stdcall VarDateFromUdate( UDATE *pudateIn, ULONG dwFlags, DATE *pdateOut); +extern __declspec(dllimport) HRESULT __stdcall VarDateFromUdateEx( UDATE *pudateIn, LCID lcid, ULONG dwFlags, DATE *pdateOut); + +extern __declspec(dllimport) HRESULT __stdcall VarUdateFromDate( DATE dateIn, ULONG dwFlags, UDATE *pudateOut); +# 959 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) HRESULT __stdcall GetAltMonthNames(LCID lcid, LPOLESTR * * prgp); +# 971 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) HRESULT __stdcall VarFormat( + LPVARIANT pvarIn, + LPOLESTR pstrFormat, + int iFirstDay, + int iFirstWeek, + ULONG dwFlags, + BSTR *pbstrOut + ); + +extern __declspec(dllimport) HRESULT __stdcall VarFormatDateTime( + LPVARIANT pvarIn, + int iNamedFormat, + ULONG dwFlags, + BSTR *pbstrOut + ); + +extern __declspec(dllimport) HRESULT __stdcall VarFormatNumber( + LPVARIANT pvarIn, + int iNumDig, + int iIncLead, + int iUseParens, + int iGroup, + ULONG dwFlags, + BSTR *pbstrOut + ); + +extern __declspec(dllimport) HRESULT __stdcall VarFormatPercent( + LPVARIANT pvarIn, + int iNumDig, + int iIncLead, + int iUseParens, + int iGroup, + ULONG dwFlags, + BSTR *pbstrOut + ); + +extern __declspec(dllimport) HRESULT __stdcall VarFormatCurrency( + LPVARIANT pvarIn, + int iNumDig, + int iIncLead, + int iUseParens, + int iGroup, + ULONG dwFlags, + BSTR *pbstrOut + ); + +extern __declspec(dllimport) HRESULT __stdcall VarWeekdayName( + int iWeekday, + int fAbbrev, + int iFirstDay, + ULONG dwFlags, + BSTR *pbstrOut + ); + +extern __declspec(dllimport) HRESULT __stdcall VarMonthName( + int iMonth, + int fAbbrev, + ULONG dwFlags, + BSTR *pbstrOut + ); + +extern __declspec(dllimport) HRESULT __stdcall VarFormatFromTokens( + LPVARIANT pvarIn, + LPOLESTR pstrFormat, + LPBYTE pbTokCur, + ULONG dwFlags, + BSTR *pbstrOut, + LCID lcid + ); + +extern __declspec(dllimport) HRESULT __stdcall VarTokenizeFormatString( + LPOLESTR pstrFormat, + LPBYTE rgbTok, + int cbTok, + int iFirstDay, + int iFirstWeek, + LCID lcid, + int *pcbActual + ); +# 1061 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +typedef ITypeLib *LPTYPELIB; + + + + + + + +typedef LONG DISPID; +typedef DISPID MEMBERID; +# 1093 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +typedef ITypeInfo *LPTYPEINFO; + + + + + + +typedef ITypeComp *LPTYPECOMP; + + + + + + +typedef ICreateTypeLib * LPCREATETYPELIB; + +typedef ICreateTypeInfo * LPCREATETYPEINFO; +# 1119 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) ULONG __stdcall LHashValOfNameSysA(SYSKIND syskind, LCID lcid, + LPCSTR szName); + + + +extern __declspec(dllimport) ULONG __stdcall +LHashValOfNameSys(SYSKIND syskind, LCID lcid, const OLECHAR * szName); +# 1138 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) HRESULT __stdcall LoadTypeLib( LPCOLESTR szFile, ITypeLib ** pptlib); + + + +typedef enum tagREGKIND +{ + REGKIND_DEFAULT, + REGKIND_REGISTER, + REGKIND_NONE +} REGKIND; +# 1157 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) HRESULT __stdcall LoadTypeLibEx(LPCOLESTR szFile, REGKIND regkind, + ITypeLib ** pptlib); + + + + +extern __declspec(dllimport) HRESULT __stdcall LoadRegTypeLib(const GUID * const rguid, WORD wVerMajor, WORD wVerMinor, + LCID lcid, ITypeLib ** pptlib); + + + +extern __declspec(dllimport) HRESULT __stdcall QueryPathOfRegTypeLib(const GUID * const guid, USHORT wMaj, USHORT wMin, + LCID lcid, LPBSTR lpbstrPathName); + + + + +extern __declspec(dllimport) HRESULT __stdcall RegisterTypeLib(ITypeLib * ptlib, LPCOLESTR szFullPath, + LPCOLESTR szHelpDir); + + + + + +extern __declspec(dllimport) HRESULT __stdcall UnRegisterTypeLib(const GUID * const libID, WORD wVerMajor, + WORD wVerMinor, LCID lcid, SYSKIND syskind); + + + +extern __declspec(dllimport) HRESULT __stdcall RegisterTypeLibForUser(ITypeLib *ptlib, OLECHAR *szFullPath, + OLECHAR *szHelpDir); + + + +extern __declspec(dllimport) HRESULT __stdcall UnRegisterTypeLibForUser( + const GUID * const libID, + WORD wMajorVerNum, + WORD wMinorVerNum, + LCID lcid, + SYSKIND syskind); + + +extern __declspec(dllimport) HRESULT __stdcall CreateTypeLib(SYSKIND syskind, LPCOLESTR szFile, + ICreateTypeLib ** ppctlib); + + +extern __declspec(dllimport) HRESULT __stdcall CreateTypeLib2(SYSKIND syskind, LPCOLESTR szFile, + ICreateTypeLib2 **ppctlib); + + + + + + +typedef IDispatch *LPDISPATCH; + +typedef struct tagPARAMDATA { + OLECHAR * szName; + VARTYPE vt; +} PARAMDATA, * LPPARAMDATA; + +typedef struct tagMETHODDATA { + OLECHAR * szName; + PARAMDATA * ppdata; + DISPID dispid; + UINT iMeth; + CALLCONV cc; + UINT cArgs; + WORD wFlags; + VARTYPE vtReturn; +} METHODDATA, * LPMETHODDATA; + +typedef struct tagINTERFACEDATA { + METHODDATA * pmethdata; + UINT cMembers; +} INTERFACEDATA, * LPINTERFACEDATA; + + + + + + + +extern __declspec(dllimport) HRESULT __stdcall DispGetParam( + DISPPARAMS * pdispparams, + UINT position, + VARTYPE vtTarg, + VARIANT * pvarResult, + UINT * puArgErr + ); + + + + extern __declspec(dllimport) HRESULT __stdcall DispGetIDsOfNames(ITypeInfo * ptinfo, LPOLESTR* rgszNames, + UINT cNames, DISPID * rgdispid); +# 1263 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) HRESULT __stdcall DispInvoke(void * _this, ITypeInfo * ptinfo, DISPID dispidMember, + WORD wFlags, DISPPARAMS * pparams, VARIANT * pvarResult, + EXCEPINFO * pexcepinfo, UINT * puArgErr); +# 1276 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) HRESULT __stdcall CreateDispTypeInfo(INTERFACEDATA * pidata, LCID lcid, + ITypeInfo ** pptinfo); + + + + + +extern __declspec(dllimport) HRESULT __stdcall CreateStdDispatch(IUnknown * punkOuter, void * pvThis, + ITypeInfo * ptinfo, IUnknown ** ppunkStdDisp); + + + + +extern __declspec(dllimport) HRESULT __stdcall DispCallFunc( void * pvInstance, ULONG_PTR oVft, CALLCONV cc, + VARTYPE vtReturn, UINT cActuals, VARTYPE * prgvt, + VARIANTARG ** prgpvarg, VARIANT * pvargResult); +# 1303 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +extern __declspec(dllimport) HRESULT __stdcall RegisterActiveObject(IUnknown * punk, const IID * const rclsid, + DWORD dwFlags, DWORD * pdwRegister); + +extern __declspec(dllimport) HRESULT __stdcall RevokeActiveObject(DWORD dwRegister, void * pvReserved); + +extern __declspec(dllimport) HRESULT __stdcall GetActiveObject(const IID * const rclsid, void * pvReserved, + IUnknown ** ppunk); + + + + + +extern __declspec(dllimport) HRESULT __stdcall SetErrorInfo( ULONG dwReserved, IErrorInfo * perrinfo); + +extern __declspec(dllimport) HRESULT __stdcall GetErrorInfo( ULONG dwReserved, IErrorInfo ** pperrinfo); + +extern __declspec(dllimport) HRESULT __stdcall CreateErrorInfo( ICreateErrorInfo ** pperrinfo); + + + + + +extern __declspec(dllimport) HRESULT __stdcall GetRecordInfoFromTypeInfo(ITypeInfo * pTypeInfo, + IRecordInfo ** ppRecInfo); + +extern __declspec(dllimport) HRESULT __stdcall GetRecordInfoFromGuids(const GUID * const rGuidTypeLib, + ULONG uVerMajor, ULONG uVerMinor, LCID lcid, + const GUID * const rGuidTypeInfo, IRecordInfo ** ppRecInfo); + + + + + +extern __declspec(dllimport) ULONG __stdcall OaBuildVersion(void); + +extern __declspec(dllimport) void __stdcall ClearCustData(LPCUSTDATA pCustData); + + +extern __declspec(dllimport) void __stdcall OaEnablePerUserTLibRegistration(void); +# 1429 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 1430 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 2 3 + + + + + +#pragma warning(pop) +# 39 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 2 3 +# 87 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 3 +extern __declspec(dllimport) HRESULT __stdcall CreateDataAdviseHolder( LPDATAADVISEHOLDER * ppDAHolder); + + + + +extern __declspec(dllimport) DWORD __stdcall OleBuildVersion( void ); + + extern __declspec(dllimport) HRESULT __stdcall WriteFmtUserTypeStg ( LPSTORAGE pstg, CLIPFORMAT cf, LPOLESTR lpszUserType); +extern __declspec(dllimport) HRESULT __stdcall ReadFmtUserTypeStg ( LPSTORAGE pstg, CLIPFORMAT * pcf, LPOLESTR * lplpszUserType); + + + + + extern __declspec(dllimport) HRESULT __stdcall OleInitialize( LPVOID pvReserved); +extern __declspec(dllimport) void __stdcall OleUninitialize(void); + + + + + +extern __declspec(dllimport) HRESULT __stdcall OleQueryLinkFromData( LPDATAOBJECT pSrcDataObject); +extern __declspec(dllimport) HRESULT __stdcall OleQueryCreateFromData( LPDATAOBJECT pSrcDataObject); + + + + +extern __declspec(dllimport) HRESULT __stdcall OleCreate( const IID * const rclsid, const IID * const riid, DWORD renderopt, + LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite, + LPSTORAGE pStg, LPVOID * ppvObj); + + +extern __declspec(dllimport) HRESULT __stdcall OleCreateEx( const IID * const rclsid, const IID * const riid, DWORD dwFlags, + DWORD renderopt, ULONG cFormats, DWORD* rgAdvf, + LPFORMATETC rgFormatEtc, IAdviseSink * lpAdviseSink, + DWORD * rgdwConnection, LPOLECLIENTSITE pClientSite, + LPSTORAGE pStg, LPVOID * ppvObj); + +extern __declspec(dllimport) HRESULT __stdcall OleCreateFromData( LPDATAOBJECT pSrcDataObj, const IID * const riid, + DWORD renderopt, LPFORMATETC pFormatEtc, + LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, + LPVOID * ppvObj); + + +extern __declspec(dllimport) HRESULT __stdcall OleCreateFromDataEx( LPDATAOBJECT pSrcDataObj, const IID * const riid, + DWORD dwFlags, DWORD renderopt, ULONG cFormats, DWORD* rgAdvf, + LPFORMATETC rgFormatEtc, IAdviseSink * lpAdviseSink, + DWORD * rgdwConnection, LPOLECLIENTSITE pClientSite, + LPSTORAGE pStg, LPVOID * ppvObj); + +extern __declspec(dllimport) HRESULT __stdcall OleCreateLinkFromData( LPDATAOBJECT pSrcDataObj, const IID * const riid, + DWORD renderopt, LPFORMATETC pFormatEtc, + LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, + LPVOID * ppvObj); + + +extern __declspec(dllimport) HRESULT __stdcall OleCreateLinkFromDataEx( LPDATAOBJECT pSrcDataObj, const IID * const riid, + DWORD dwFlags, DWORD renderopt, ULONG cFormats, DWORD* rgAdvf, + LPFORMATETC rgFormatEtc, IAdviseSink * lpAdviseSink, + DWORD * rgdwConnection, LPOLECLIENTSITE pClientSite, + LPSTORAGE pStg, LPVOID * ppvObj); + +extern __declspec(dllimport) HRESULT __stdcall OleCreateStaticFromData( LPDATAOBJECT pSrcDataObj, const IID * const iid, + DWORD renderopt, LPFORMATETC pFormatEtc, + LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, + LPVOID * ppvObj); + + +extern __declspec(dllimport) HRESULT __stdcall OleCreateLink( LPMONIKER pmkLinkSrc, const IID * const riid, + DWORD renderopt, LPFORMATETC lpFormatEtc, + LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID * ppvObj); + +extern __declspec(dllimport) HRESULT __stdcall OleCreateLinkEx( LPMONIKER pmkLinkSrc, const IID * const riid, + DWORD dwFlags, DWORD renderopt, ULONG cFormats, DWORD* rgAdvf, + LPFORMATETC rgFormatEtc, IAdviseSink * lpAdviseSink, + DWORD * rgdwConnection, LPOLECLIENTSITE pClientSite, + LPSTORAGE pStg, LPVOID * ppvObj); + +extern __declspec(dllimport) HRESULT __stdcall OleCreateLinkToFile( LPCOLESTR lpszFileName, const IID * const riid, + DWORD renderopt, LPFORMATETC lpFormatEtc, + LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID * ppvObj); + +extern __declspec(dllimport) HRESULT __stdcall OleCreateLinkToFileEx( LPCOLESTR lpszFileName, const IID * const riid, + DWORD dwFlags, DWORD renderopt, ULONG cFormats, DWORD* rgAdvf, + LPFORMATETC rgFormatEtc, IAdviseSink * lpAdviseSink, + DWORD * rgdwConnection, LPOLECLIENTSITE pClientSite, + LPSTORAGE pStg, LPVOID * ppvObj); + +extern __declspec(dllimport) HRESULT __stdcall OleCreateFromFile( const IID * const rclsid, LPCOLESTR lpszFileName, const IID * const riid, + DWORD renderopt, LPFORMATETC lpFormatEtc, + LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID * ppvObj); + + +extern __declspec(dllimport) HRESULT __stdcall OleCreateFromFileEx( const IID * const rclsid, LPCOLESTR lpszFileName, const IID * const riid, + DWORD dwFlags, DWORD renderopt, ULONG cFormats, DWORD* rgAdvf, + LPFORMATETC rgFormatEtc, IAdviseSink * lpAdviseSink, + DWORD * rgdwConnection, LPOLECLIENTSITE pClientSite, + LPSTORAGE pStg, LPVOID * ppvObj); + +extern __declspec(dllimport) HRESULT __stdcall OleLoad( LPSTORAGE pStg, const IID * const riid, LPOLECLIENTSITE pClientSite, + LPVOID * ppvObj); + +extern __declspec(dllimport) HRESULT __stdcall OleSave( LPPERSISTSTORAGE pPS, LPSTORAGE pStg, BOOL fSameAsLoad); + +extern __declspec(dllimport) HRESULT __stdcall OleLoadFromStream( LPSTREAM pStm, const IID * const iidInterface, LPVOID * ppvObj); +extern __declspec(dllimport) HRESULT __stdcall OleSaveToStream( LPPERSISTSTREAM pPStm, LPSTREAM pStm ); + + +extern __declspec(dllimport) HRESULT __stdcall OleSetContainedObject( LPUNKNOWN pUnknown, BOOL fContained); +extern __declspec(dllimport) HRESULT __stdcall OleNoteObjectVisible( LPUNKNOWN pUnknown, BOOL fVisible); + + + + +extern __declspec(dllimport) HRESULT __stdcall RegisterDragDrop( HWND hwnd, LPDROPTARGET pDropTarget); +extern __declspec(dllimport) HRESULT __stdcall RevokeDragDrop( HWND hwnd); +extern __declspec(dllimport) HRESULT __stdcall DoDragDrop( LPDATAOBJECT pDataObj, LPDROPSOURCE pDropSource, + DWORD dwOKEffects, LPDWORD pdwEffect); + + + +extern __declspec(dllimport) HRESULT __stdcall OleSetClipboard( LPDATAOBJECT pDataObj); +extern __declspec(dllimport) HRESULT __stdcall OleGetClipboard( LPDATAOBJECT * ppDataObj); + +extern __declspec(dllimport) HRESULT __stdcall OleGetClipboardWithEnterpriseInfo( IDataObject** dataObject, + PWSTR* dataEnterpriseId, + PWSTR* sourceDescription, + PWSTR* targetDescription, + PWSTR* dataDescription); + +extern __declspec(dllimport) HRESULT __stdcall OleFlushClipboard(void); +extern __declspec(dllimport) HRESULT __stdcall OleIsCurrentClipboard( LPDATAOBJECT pDataObj); + + + +extern __declspec(dllimport) HOLEMENU __stdcall OleCreateMenuDescriptor ( HMENU hmenuCombined, + LPOLEMENUGROUPWIDTHS lpMenuWidths); +extern __declspec(dllimport) HRESULT __stdcall OleSetMenuDescriptor ( HOLEMENU holemenu, HWND hwndFrame, + HWND hwndActiveObject, + LPOLEINPLACEFRAME lpFrame, + LPOLEINPLACEACTIVEOBJECT lpActiveObj); +extern __declspec(dllimport) HRESULT __stdcall OleDestroyMenuDescriptor ( HOLEMENU holemenu); + +extern __declspec(dllimport) HRESULT __stdcall OleTranslateAccelerator ( LPOLEINPLACEFRAME lpFrame, + LPOLEINPLACEFRAMEINFO lpFrameInfo, LPMSG lpmsg); + + + + +extern __declspec(dllimport) HANDLE __stdcall OleDuplicateData ( HANDLE hSrc, CLIPFORMAT cfFormat, + UINT uiFlags); + + + +extern __declspec(dllimport) HRESULT __stdcall OleDraw ( LPUNKNOWN pUnknown, DWORD dwAspect, HDC hdcDraw, + LPCRECT lprcBounds); + + extern __declspec(dllimport) HRESULT __stdcall OleRun( LPUNKNOWN pUnknown); +extern __declspec(dllimport) BOOL __stdcall OleIsRunning( LPOLEOBJECT pObject); +extern __declspec(dllimport) HRESULT __stdcall OleLockRunning( LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCloses); + +extern __declspec(dllimport) void __stdcall ReleaseStgMedium( LPSTGMEDIUM); + +extern __declspec(dllimport) HRESULT __stdcall CreateOleAdviseHolder( LPOLEADVISEHOLDER * ppOAHolder); + +extern __declspec(dllimport) HRESULT __stdcall OleCreateDefaultHandler( const IID * const clsid, LPUNKNOWN pUnkOuter, + const IID * const riid, LPVOID * lplpObj); + +extern __declspec(dllimport) HRESULT __stdcall OleCreateEmbeddingHelper( const IID * const clsid, LPUNKNOWN pUnkOuter, + DWORD flags, LPCLASSFACTORY pCF, + const IID * const riid, LPVOID * lplpObj); + +extern __declspec(dllimport) BOOL __stdcall IsAccelerator( HACCEL hAccel, int cAccelEntries, LPMSG lpMsg, + WORD * lpwCmd); + + +extern __declspec(dllimport) HGLOBAL __stdcall OleGetIconOfFile( LPOLESTR lpszPath, BOOL fUseFileAsLabel); + +extern __declspec(dllimport) HGLOBAL __stdcall OleGetIconOfClass( const IID * const rclsid, LPOLESTR lpszLabel, + BOOL fUseTypeAsLabel); + +extern __declspec(dllimport) HGLOBAL __stdcall OleMetafilePictFromIconAndLabel( HICON hIcon, LPOLESTR lpszLabel, + LPOLESTR lpszSourceFile, UINT iIconIndex); + + + + + + extern __declspec(dllimport) HRESULT __stdcall OleRegGetUserType ( const IID * const clsid, DWORD dwFormOfType, + LPOLESTR * pszUserType); + +extern __declspec(dllimport) HRESULT __stdcall OleRegGetMiscStatus ( const IID * const clsid, DWORD dwAspect, + DWORD * pdwStatus); + +extern __declspec(dllimport) HRESULT __stdcall OleRegEnumFormatEtc( const IID * const clsid, DWORD dwDirection, + LPENUMFORMATETC * ppenum); + +extern __declspec(dllimport) HRESULT __stdcall OleRegEnumVerbs ( const IID * const clsid, LPENUMOLEVERB * ppenum); + + + + + + +typedef struct _OLESTREAM * LPOLESTREAM; + +typedef struct _OLESTREAMVTBL +{ + DWORD (__stdcall* Get)(LPOLESTREAM, void *, DWORD); + DWORD (__stdcall* Put)(LPOLESTREAM, const void *, DWORD); +} OLESTREAMVTBL; +typedef OLESTREAMVTBL * LPOLESTREAMVTBL; + +typedef struct _OLESTREAM +{ + LPOLESTREAMVTBL lpstbl; +} OLESTREAM; + + +extern __declspec(dllimport) HRESULT __stdcall OleConvertOLESTREAMToIStorage + ( LPOLESTREAM lpolestream, + LPSTORAGE pstg, + const DVTARGETDEVICE * ptd); + +extern __declspec(dllimport) HRESULT __stdcall OleConvertIStorageToOLESTREAM + ( LPSTORAGE pstg, + LPOLESTREAM lpolestream); + + + + +extern __declspec(dllimport) HRESULT __stdcall OleDoAutoConvert( LPSTORAGE pStg, LPCLSID pClsidNew); +extern __declspec(dllimport) HRESULT __stdcall OleGetAutoConvert( const IID * const clsidOld, LPCLSID pClsidNew); +extern __declspec(dllimport) HRESULT __stdcall OleSetAutoConvert( const IID * const clsidOld, const IID * const clsidNew); + +extern __declspec(dllimport) HRESULT __stdcall SetConvertStg( LPSTORAGE pStg, BOOL fConvert); + + +extern __declspec(dllimport) HRESULT __stdcall OleConvertIStorageToOLESTREAMEx + ( LPSTORAGE pstg, + + CLIPFORMAT cfFormat, + LONG lWidth, + LONG lHeight, + DWORD dwSize, + LPSTGMEDIUM pmedium, + LPOLESTREAM polestm); + +extern __declspec(dllimport) HRESULT __stdcall OleConvertOLESTREAMToIStorageEx + ( LPOLESTREAM polestm, + LPSTORAGE pstg, + + CLIPFORMAT * pcfFormat, + LONG * plwWidth, + LONG * plHeight, + DWORD * pdwSize, + LPSTGMEDIUM pmedium); + + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 +# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 +#pragma warning(disable: 4103) + +#pragma pack(pop) +# 349 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 2 3 + + + + + + +#pragma warning(pop) +# 222 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 1 3 +# 12 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +#pragma warning(push) +#pragma warning(disable: 4001) +#pragma warning(disable: 4820) +# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +extern const GUID IID_IPrintDialogCallback; + + + + + + +extern const GUID IID_IPrintDialogServices; +# 46 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 1 3 +# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +#pragma warning(push) +#pragma warning(disable: 4001) +#pragma warning(disable: 4201) +#pragma warning(disable: 4820) +# 909 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 +#pragma warning(pop) +# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 2 3 +# 104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +typedef UINT_PTR (__stdcall *LPOFNHOOKPROC) (HWND, UINT, WPARAM, LPARAM); +# 120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +typedef struct tagOFN_NT4A { + DWORD lStructSize; + HWND hwndOwner; + HINSTANCE hInstance; + LPCSTR lpstrFilter; + LPSTR lpstrCustomFilter; + DWORD nMaxCustFilter; + DWORD nFilterIndex; + LPSTR lpstrFile; + DWORD nMaxFile; + LPSTR lpstrFileTitle; + DWORD nMaxFileTitle; + LPCSTR lpstrInitialDir; + LPCSTR lpstrTitle; + DWORD Flags; + WORD nFileOffset; + WORD nFileExtension; + LPCSTR lpstrDefExt; + LPARAM lCustData; + LPOFNHOOKPROC lpfnHook; + LPCSTR lpTemplateName; +} OPENFILENAME_NT4A, *LPOPENFILENAME_NT4A; +typedef struct tagOFN_NT4W { + DWORD lStructSize; + HWND hwndOwner; + HINSTANCE hInstance; + LPCWSTR lpstrFilter; + LPWSTR lpstrCustomFilter; + DWORD nMaxCustFilter; + DWORD nFilterIndex; + LPWSTR lpstrFile; + DWORD nMaxFile; + LPWSTR lpstrFileTitle; + DWORD nMaxFileTitle; + LPCWSTR lpstrInitialDir; + LPCWSTR lpstrTitle; + DWORD Flags; + WORD nFileOffset; + WORD nFileExtension; + LPCWSTR lpstrDefExt; + LPARAM lCustData; + LPOFNHOOKPROC lpfnHook; + LPCWSTR lpTemplateName; +} OPENFILENAME_NT4W, *LPOPENFILENAME_NT4W; + + + + +typedef OPENFILENAME_NT4A OPENFILENAME_NT4; +typedef LPOPENFILENAME_NT4A LPOPENFILENAME_NT4; + + +typedef struct tagOFNA { + DWORD lStructSize; + HWND hwndOwner; + HINSTANCE hInstance; + LPCSTR lpstrFilter; + LPSTR lpstrCustomFilter; + DWORD nMaxCustFilter; + DWORD nFilterIndex; + LPSTR lpstrFile; + DWORD nMaxFile; + LPSTR lpstrFileTitle; + DWORD nMaxFileTitle; + LPCSTR lpstrInitialDir; + LPCSTR lpstrTitle; + DWORD Flags; + WORD nFileOffset; + WORD nFileExtension; + LPCSTR lpstrDefExt; + LPARAM lCustData; + LPOFNHOOKPROC lpfnHook; + LPCSTR lpTemplateName; + + + + + + void * pvReserved; + DWORD dwReserved; + DWORD FlagsEx; + +} OPENFILENAMEA, *LPOPENFILENAMEA; +typedef struct tagOFNW { + DWORD lStructSize; + HWND hwndOwner; + HINSTANCE hInstance; + LPCWSTR lpstrFilter; + LPWSTR lpstrCustomFilter; + DWORD nMaxCustFilter; + DWORD nFilterIndex; + LPWSTR lpstrFile; + DWORD nMaxFile; + LPWSTR lpstrFileTitle; + DWORD nMaxFileTitle; + LPCWSTR lpstrInitialDir; + LPCWSTR lpstrTitle; + DWORD Flags; + WORD nFileOffset; + WORD nFileExtension; + LPCWSTR lpstrDefExt; + LPARAM lCustData; + LPOFNHOOKPROC lpfnHook; + LPCWSTR lpTemplateName; + + + + + + void * pvReserved; + DWORD dwReserved; + DWORD FlagsEx; + +} OPENFILENAMEW, *LPOPENFILENAMEW; + + + + +typedef OPENFILENAMEA OPENFILENAME; +typedef LPOPENFILENAMEA LPOPENFILENAME; +# 253 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +__declspec(dllimport) BOOL __stdcall GetOpenFileNameA(LPOPENFILENAMEA); +__declspec(dllimport) BOOL __stdcall GetOpenFileNameW(LPOPENFILENAMEW); + + + + + +__declspec(dllimport) BOOL __stdcall GetSaveFileNameA(LPOPENFILENAMEA); +__declspec(dllimport) BOOL __stdcall GetSaveFileNameW(LPOPENFILENAMEW); + + + + + + + +__declspec(dllimport) short __stdcall GetFileTitleA(LPCSTR, LPSTR Buf, WORD cchSize); +__declspec(dllimport) short __stdcall GetFileTitleW(LPCWSTR, LPWSTR Buf, WORD cchSize); +# 329 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +typedef UINT_PTR (__stdcall *LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM); + + + +typedef struct _OFNOTIFYA +{ + NMHDR hdr; + LPOPENFILENAMEA lpOFN; + LPSTR pszFile; +} OFNOTIFYA, *LPOFNOTIFYA; + +typedef struct _OFNOTIFYW +{ + NMHDR hdr; + LPOPENFILENAMEW lpOFN; + LPWSTR pszFile; +} OFNOTIFYW, *LPOFNOTIFYW; + + + + +typedef OFNOTIFYA OFNOTIFY; +typedef LPOFNOTIFYA LPOFNOTIFY; + + + + +typedef struct _OFNOTIFYEXA +{ + NMHDR hdr; + LPOPENFILENAMEA lpOFN; + LPVOID psf; + LPVOID pidl; +} OFNOTIFYEXA, *LPOFNOTIFYEXA; + +typedef struct _OFNOTIFYEXW +{ + NMHDR hdr; + LPOPENFILENAMEW lpOFN; + LPVOID psf; + LPVOID pidl; +} OFNOTIFYEXW, *LPOFNOTIFYEXW; + + + + +typedef OFNOTIFYEXA OFNOTIFYEX; +typedef LPOFNOTIFYEXA LPOFNOTIFYEX; +# 473 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +typedef struct tagCHOOSECOLORA { + DWORD lStructSize; + HWND hwndOwner; + HWND hInstance; + COLORREF rgbResult; + COLORREF* lpCustColors; + DWORD Flags; + LPARAM lCustData; + LPCCHOOKPROC lpfnHook; + LPCSTR lpTemplateName; +} CHOOSECOLORA, *LPCHOOSECOLORA; +typedef struct tagCHOOSECOLORW { + DWORD lStructSize; + HWND hwndOwner; + HWND hInstance; + COLORREF rgbResult; + COLORREF* lpCustColors; + DWORD Flags; + LPARAM lCustData; + LPCCHOOKPROC lpfnHook; + LPCWSTR lpTemplateName; +} CHOOSECOLORW, *LPCHOOSECOLORW; + + + + +typedef CHOOSECOLORA CHOOSECOLOR; +typedef LPCHOOSECOLORA LPCHOOSECOLOR; +# 536 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +__declspec(dllimport) BOOL __stdcall ChooseColorA(LPCHOOSECOLORA); +__declspec(dllimport) BOOL __stdcall ChooseColorW(LPCHOOSECOLORW); +# 556 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +typedef UINT_PTR (__stdcall *LPFRHOOKPROC) (HWND, UINT, WPARAM, LPARAM); + +typedef struct tagFINDREPLACEA { + DWORD lStructSize; + HWND hwndOwner; + HINSTANCE hInstance; + + DWORD Flags; + LPSTR lpstrFindWhat; + LPSTR lpstrReplaceWith; + WORD wFindWhatLen; + WORD wReplaceWithLen; + LPARAM lCustData; + LPFRHOOKPROC lpfnHook; + LPCSTR lpTemplateName; +} FINDREPLACEA, *LPFINDREPLACEA; +typedef struct tagFINDREPLACEW { + DWORD lStructSize; + HWND hwndOwner; + HINSTANCE hInstance; + + DWORD Flags; + LPWSTR lpstrFindWhat; + LPWSTR lpstrReplaceWith; + WORD wFindWhatLen; + WORD wReplaceWithLen; + LPARAM lCustData; + LPFRHOOKPROC lpfnHook; + LPCWSTR lpTemplateName; +} FINDREPLACEW, *LPFINDREPLACEW; + + + + +typedef FINDREPLACEA FINDREPLACE; +typedef LPFINDREPLACEA LPFINDREPLACE; +# 623 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +__declspec(dllimport) HWND __stdcall FindTextA(LPFINDREPLACEA); +__declspec(dllimport) HWND __stdcall FindTextW(LPFINDREPLACEW); + + + + + + +__declspec(dllimport) HWND __stdcall ReplaceTextA(LPFINDREPLACEA); +__declspec(dllimport) HWND __stdcall ReplaceTextW(LPFINDREPLACEW); +# 668 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +typedef UINT_PTR (__stdcall *LPCFHOOKPROC) (HWND, UINT, WPARAM, LPARAM); + +typedef struct tagCHOOSEFONTA { + DWORD lStructSize; + HWND hwndOwner; + HDC hDC; + LPLOGFONTA lpLogFont; + INT iPointSize; + DWORD Flags; + COLORREF rgbColors; + LPARAM lCustData; + LPCFHOOKPROC lpfnHook; + LPCSTR lpTemplateName; + HINSTANCE hInstance; + + LPSTR lpszStyle; + + WORD nFontType; + + + WORD ___MISSING_ALIGNMENT__; + INT nSizeMin; + INT nSizeMax; + +} CHOOSEFONTA; +typedef struct tagCHOOSEFONTW { + DWORD lStructSize; + HWND hwndOwner; + HDC hDC; + LPLOGFONTW lpLogFont; + INT iPointSize; + DWORD Flags; + COLORREF rgbColors; + LPARAM lCustData; + LPCFHOOKPROC lpfnHook; + LPCWSTR lpTemplateName; + HINSTANCE hInstance; + + LPWSTR lpszStyle; + + WORD nFontType; + + + WORD ___MISSING_ALIGNMENT__; + INT nSizeMin; + INT nSizeMax; + +} CHOOSEFONTW; + + + +typedef CHOOSEFONTA CHOOSEFONT; + +typedef CHOOSEFONTA *LPCHOOSEFONTA; +typedef CHOOSEFONTW *LPCHOOSEFONTW; + + + +typedef LPCHOOSEFONTA LPCHOOSEFONT; + +typedef const CHOOSEFONTA *PCCHOOSEFONTA; +typedef const CHOOSEFONTW *PCCHOOSEFONTW; + + + + +typedef CHOOSEFONTA CHOOSEFONT; +typedef PCCHOOSEFONTA PCCHOOSEFONT; + + +__declspec(dllimport) BOOL __stdcall ChooseFontA(LPCHOOSEFONTA); +__declspec(dllimport) BOOL __stdcall ChooseFontW(LPCHOOSEFONTW); +# 856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +typedef UINT_PTR (__stdcall *LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM); +typedef UINT_PTR (__stdcall *LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM); + +typedef struct tagPDA { + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + HDC hDC; + DWORD Flags; + WORD nFromPage; + WORD nToPage; + WORD nMinPage; + WORD nMaxPage; + WORD nCopies; + HINSTANCE hInstance; + LPARAM lCustData; + LPPRINTHOOKPROC lpfnPrintHook; + LPSETUPHOOKPROC lpfnSetupHook; + LPCSTR lpPrintTemplateName; + LPCSTR lpSetupTemplateName; + HGLOBAL hPrintTemplate; + HGLOBAL hSetupTemplate; +} PRINTDLGA, *LPPRINTDLGA; +typedef struct tagPDW { + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + HDC hDC; + DWORD Flags; + WORD nFromPage; + WORD nToPage; + WORD nMinPage; + WORD nMaxPage; + WORD nCopies; + HINSTANCE hInstance; + LPARAM lCustData; + LPPRINTHOOKPROC lpfnPrintHook; + LPSETUPHOOKPROC lpfnSetupHook; + LPCWSTR lpPrintTemplateName; + LPCWSTR lpSetupTemplateName; + HGLOBAL hPrintTemplate; + HGLOBAL hSetupTemplate; +} PRINTDLGW, *LPPRINTDLGW; + + + + +typedef PRINTDLGA PRINTDLG; +typedef LPPRINTDLGA LPPRINTDLG; + + +__declspec(dllimport) BOOL __stdcall PrintDlgA( LPPRINTDLGA pPD); +__declspec(dllimport) BOOL __stdcall PrintDlgW( LPPRINTDLGW pPD); +# 954 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +typedef struct IPrintDialogCallback { struct IPrintDialogCallbackVtbl * lpVtbl; } IPrintDialogCallback; typedef struct IPrintDialogCallbackVtbl IPrintDialogCallbackVtbl; struct IPrintDialogCallbackVtbl +{ + + HRESULT (__stdcall * QueryInterface) (IPrintDialogCallback * This, const IID * const riid, void **ppvObj) ; + ULONG (__stdcall * AddRef) (IPrintDialogCallback * This) ; + ULONG (__stdcall * Release)(IPrintDialogCallback * This) ; + + + HRESULT (__stdcall * InitDone) (IPrintDialogCallback * This) ; + HRESULT (__stdcall * SelectionChange) (IPrintDialogCallback * This) ; + HRESULT (__stdcall * HandleMessage) (IPrintDialogCallback * This, HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *pResult) ; +}; +# 986 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +typedef struct IPrintDialogServices { struct IPrintDialogServicesVtbl * lpVtbl; } IPrintDialogServices; typedef struct IPrintDialogServicesVtbl IPrintDialogServicesVtbl; struct IPrintDialogServicesVtbl +{ + + HRESULT (__stdcall * QueryInterface) (IPrintDialogServices * This, const IID * const riid, void **ppvObj) ; + ULONG (__stdcall * AddRef) (IPrintDialogServices * This) ; + ULONG (__stdcall * Release)(IPrintDialogServices * This) ; + + + HRESULT (__stdcall * GetCurrentDevMode) (IPrintDialogServices * This, LPDEVMODE pDevMode, UINT *pcbSize) ; + HRESULT (__stdcall * GetCurrentPrinterName) (IPrintDialogServices * This, LPWSTR pPrinterName, UINT *pcchSize) ; + HRESULT (__stdcall * GetCurrentPortName) (IPrintDialogServices * This, LPWSTR pPortName, UINT *pcchSize) ; +}; + + + + + +typedef struct tagPRINTPAGERANGE { + DWORD nFromPage; + DWORD nToPage; +} PRINTPAGERANGE; +typedef PRINTPAGERANGE *LPPRINTPAGERANGE; +typedef const PRINTPAGERANGE *PCPRINTPAGERANGE; + + + + + +typedef struct tagPDEXA { + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + HDC hDC; + DWORD Flags; + DWORD Flags2; + DWORD ExclusionFlags; + DWORD nPageRanges; + DWORD nMaxPageRanges; + LPPRINTPAGERANGE lpPageRanges; + DWORD nMinPage; + DWORD nMaxPage; + DWORD nCopies; + HINSTANCE hInstance; + LPCSTR lpPrintTemplateName; + LPUNKNOWN lpCallback; + DWORD nPropertyPages; + HPROPSHEETPAGE *lphPropertyPages; + DWORD nStartPage; + DWORD dwResultAction; +} PRINTDLGEXA, *LPPRINTDLGEXA; + + + +typedef struct tagPDEXW { + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + HDC hDC; + DWORD Flags; + DWORD Flags2; + DWORD ExclusionFlags; + DWORD nPageRanges; + DWORD nMaxPageRanges; + LPPRINTPAGERANGE lpPageRanges; + DWORD nMinPage; + DWORD nMaxPage; + DWORD nCopies; + HINSTANCE hInstance; + LPCWSTR lpPrintTemplateName; + LPUNKNOWN lpCallback; + DWORD nPropertyPages; + HPROPSHEETPAGE *lphPropertyPages; + DWORD nStartPage; + DWORD dwResultAction; +} PRINTDLGEXW, *LPPRINTDLGEXW; + + + + +typedef PRINTDLGEXA PRINTDLGEX; +typedef LPPRINTDLGEXA LPPRINTDLGEX; + + + + +__declspec(dllimport) HRESULT __stdcall PrintDlgExA( LPPRINTDLGEXA pPD); +__declspec(dllimport) HRESULT __stdcall PrintDlgExW( LPPRINTDLGEXW pPD); +# 1146 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +typedef struct tagDEVNAMES { + WORD wDriverOffset; + WORD wDeviceOffset; + WORD wOutputOffset; + WORD wDefault; +} DEVNAMES; +typedef DEVNAMES *LPDEVNAMES; +typedef const DEVNAMES *PCDEVNAMES; + + + + +__declspec(dllimport) DWORD __stdcall CommDlgExtendedError(void); +# 1169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +typedef UINT_PTR (__stdcall* LPPAGEPAINTHOOK)( HWND, UINT, WPARAM, LPARAM ); +typedef UINT_PTR (__stdcall* LPPAGESETUPHOOK)( HWND, UINT, WPARAM, LPARAM ); + +typedef struct tagPSDA +{ + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + DWORD Flags; + POINT ptPaperSize; + RECT rtMinMargin; + RECT rtMargin; + HINSTANCE hInstance; + LPARAM lCustData; + LPPAGESETUPHOOK lpfnPageSetupHook; + LPPAGEPAINTHOOK lpfnPagePaintHook; + LPCSTR lpPageSetupTemplateName; + HGLOBAL hPageSetupTemplate; +} PAGESETUPDLGA, * LPPAGESETUPDLGA; +typedef struct tagPSDW +{ + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + DWORD Flags; + POINT ptPaperSize; + RECT rtMinMargin; + RECT rtMargin; + HINSTANCE hInstance; + LPARAM lCustData; + LPPAGESETUPHOOK lpfnPageSetupHook; + LPPAGEPAINTHOOK lpfnPagePaintHook; + LPCWSTR lpPageSetupTemplateName; + HGLOBAL hPageSetupTemplate; +} PAGESETUPDLGW, * LPPAGESETUPDLGW; + + + + +typedef PAGESETUPDLGA PAGESETUPDLG; +typedef LPPAGESETUPDLGA LPPAGESETUPDLG; + + +__declspec(dllimport) BOOL __stdcall PageSetupDlgA( LPPAGESETUPDLGA ); +__declspec(dllimport) BOOL __stdcall PageSetupDlgW( LPPAGESETUPDLGW ); +# 1266 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 +#pragma warning(pop) +# 225 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 1 3 +# 81 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 3 +#pragma warning(push) +#pragma warning(disable: 4127) +# 151 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 3 +LPUWSTR +__stdcall +uaw_CharUpperW( + LPUWSTR String + ); + +int +__stdcall +uaw_lstrcmpW( + PCUWSTR String1, + PCUWSTR String2 + ); + +int +__stdcall +uaw_lstrcmpiW( + PCUWSTR String1, + PCUWSTR String2 + ); + +int +__stdcall +uaw_lstrlenW( + LPCUWSTR String + ); + +PUWSTR +__cdecl +uaw_wcschr( + PCUWSTR String, + WCHAR Character + ); + +PUWSTR +__cdecl +uaw_wcscpy( + PUWSTR Destination, + PCUWSTR Source + ); + +int +__cdecl +uaw_wcsicmp( + PCUWSTR String1, + PCUWSTR String2 + ); + +size_t +__cdecl +uaw_wcslen( + PCUWSTR String + ); + +PUWSTR +__cdecl +uaw_wcsrchr( + PCUWSTR String, + WCHAR Character + ); +# 219 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 3 +__inline +LPUWSTR +static +ua_CharUpperW( + LPUWSTR String + ) +{ + if (1) { + return CharUpperW( (PWSTR)String ); + } else { + return uaw_CharUpperW( String ); + } +} + + + +__inline +int +static +ua_lstrcmpW( + LPCUWSTR String1, + LPCUWSTR String2 + ) +{ + if (1 && 1) { + return lstrcmpW( (LPCWSTR)String1, (LPCWSTR)String2); + } else { + return uaw_lstrcmpW( String1, String2 ); + } +} + + + +__inline +int +static +ua_lstrcmpiW( + LPCUWSTR String1, + LPCUWSTR String2 + ) +{ + if (1 && 1) { + return lstrcmpiW( (LPCWSTR)String1, (LPCWSTR)String2 ); + } else { + return uaw_lstrcmpiW( String1, String2 ); + } +} + + + +__inline +int +static +ua_lstrlenW( + LPCUWSTR String + ) +{ + if (1) { +#pragma warning(suppress: 28750) + return lstrlenW( (PCWSTR)String ); + } else { + return uaw_lstrlenW( String ); + } +} +# 316 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 3 +typedef WCHAR __unaligned *PUWSTR_C; +# 325 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 3 +__inline +PUWSTR_C +static +ua_wcschr( + PCUWSTR String, + WCHAR Character + ) +{ + if (1) { + return wcschr((PCWSTR)String, Character); + } else { + return (PUWSTR_C)uaw_wcschr(String, Character); + } +} + +__inline +PUWSTR_C +static +ua_wcsrchr( + PCUWSTR String, + WCHAR Character + ) +{ + if (1) { + return wcsrchr((PCWSTR)String, Character); + } else { + return (PUWSTR_C)uaw_wcsrchr(String, Character); + } +} +# 415 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 3 +__inline +PUWSTR +static +__declspec(deprecated) +ua_wcscpy( + PUWSTR Destination, + PCUWSTR Source + ) +{ + if (1 && 1) { +#pragma warning(push) +#pragma warning(disable: 4995) +#pragma warning(disable: 4996) + + + + return wcscpy( (PWSTR)Destination, (PCWSTR)Source ); +#pragma warning(pop) + } else { + return uaw_wcscpy( Destination, Source ); + } +} + + + +__inline +PUWSTR +static +ua_wcscpy_s( + PUWSTR Destination, + size_t DestinationSize, + PCUWSTR Source + ) +{ + if (1 && 1) { + return (wcscpy_s( (PWSTR)Destination, DestinationSize, (PCWSTR)Source ) == 0 ? Destination : ((void*)0)); + } else { + + return uaw_wcscpy( Destination, Source ); + } +} + + +__inline +size_t +static +ua_wcslen( + PCUWSTR String + ) +{ + if (1) { + return wcslen( (PCWSTR)String ); + } else { + return uaw_wcslen( String ); + } +} + + + +__inline +int +static +ua_wcsicmp( + PCUWSTR String1, + PCUWSTR String2 + ) +{ + if (1 && 1) { + return _wcsicmp( (LPCWSTR)String1, (LPCWSTR)String2 ); + } else { + return uaw_wcsicmp( String1, String2 ); + } +} +# 676 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 3 +#pragma warning(pop) +# 229 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 +# 241 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 1 3 +# 36 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) +# 363 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +extern const GUID NETWORK_MANAGER_FIRST_IP_ADDRESS_ARRIVAL_GUID; + + + + + + + +extern const GUID NETWORK_MANAGER_LAST_IP_ADDRESS_REMOVAL_GUID; +# 382 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +extern const GUID DOMAIN_JOIN_GUID; + + + + + + + +extern const GUID DOMAIN_LEAVE_GUID; +# 402 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +extern const GUID FIREWALL_PORT_OPEN_GUID; + + + + + + + +extern const GUID FIREWALL_PORT_CLOSE_GUID; +# 422 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +extern const GUID MACHINE_POLICY_PRESENT_GUID; + + + + + + + +extern const GUID USER_POLICY_PRESENT_GUID; +# 442 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +extern const GUID RPC_INTERFACE_EVENT_GUID; + + + + + + + +extern const GUID NAMED_PIPE_EVENT_GUID; +# 461 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +extern const GUID CUSTOM_SYSTEM_STATE_CHANGE_EVENT_GUID; +# 472 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +typedef struct +{ + DWORD Data[2]; +} SERVICE_TRIGGER_CUSTOM_STATE_ID; + +typedef struct _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM { + union { + SERVICE_TRIGGER_CUSTOM_STATE_ID CustomStateId; + struct { + DWORD DataOffset; + BYTE Data[1]; + } s; + } u; +} SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM, *LPSERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM; +# 502 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +typedef struct _SERVICE_DESCRIPTIONA { + LPSTR lpDescription; +} SERVICE_DESCRIPTIONA, *LPSERVICE_DESCRIPTIONA; + + + +typedef struct _SERVICE_DESCRIPTIONW { + LPWSTR lpDescription; +} SERVICE_DESCRIPTIONW, *LPSERVICE_DESCRIPTIONW; + + + + +typedef SERVICE_DESCRIPTIONA SERVICE_DESCRIPTION; +typedef LPSERVICE_DESCRIPTIONA LPSERVICE_DESCRIPTION; + + + + + +typedef enum _SC_ACTION_TYPE { + SC_ACTION_NONE = 0, + SC_ACTION_RESTART = 1, + SC_ACTION_REBOOT = 2, + SC_ACTION_RUN_COMMAND = 3, + SC_ACTION_OWN_RESTART = 4 +} SC_ACTION_TYPE; + +typedef struct _SC_ACTION { + SC_ACTION_TYPE Type; + DWORD Delay; +} SC_ACTION, *LPSC_ACTION; + +typedef struct _SERVICE_FAILURE_ACTIONSA { + DWORD dwResetPeriod; + LPSTR lpRebootMsg; + LPSTR lpCommand; + + + + DWORD cActions; + + + + SC_ACTION * lpsaActions; +} SERVICE_FAILURE_ACTIONSA, *LPSERVICE_FAILURE_ACTIONSA; +typedef struct _SERVICE_FAILURE_ACTIONSW { + DWORD dwResetPeriod; + LPWSTR lpRebootMsg; + LPWSTR lpCommand; + + + + DWORD cActions; + + + + SC_ACTION * lpsaActions; +} SERVICE_FAILURE_ACTIONSW, *LPSERVICE_FAILURE_ACTIONSW; + + + + +typedef SERVICE_FAILURE_ACTIONSA SERVICE_FAILURE_ACTIONS; +typedef LPSERVICE_FAILURE_ACTIONSA LPSERVICE_FAILURE_ACTIONS; + + + + + +typedef struct _SERVICE_DELAYED_AUTO_START_INFO { + BOOL fDelayedAutostart; +} SERVICE_DELAYED_AUTO_START_INFO, *LPSERVICE_DELAYED_AUTO_START_INFO; + + + + +typedef struct _SERVICE_FAILURE_ACTIONS_FLAG { + BOOL fFailureActionsOnNonCrashFailures; +} SERVICE_FAILURE_ACTIONS_FLAG, *LPSERVICE_FAILURE_ACTIONS_FLAG; + + + + +typedef struct _SERVICE_SID_INFO { + DWORD dwServiceSidType; +} SERVICE_SID_INFO, *LPSERVICE_SID_INFO; + + + + +typedef struct _SERVICE_REQUIRED_PRIVILEGES_INFOA { + LPSTR pmszRequiredPrivileges; +} SERVICE_REQUIRED_PRIVILEGES_INFOA, *LPSERVICE_REQUIRED_PRIVILEGES_INFOA; + + + +typedef struct _SERVICE_REQUIRED_PRIVILEGES_INFOW { + LPWSTR pmszRequiredPrivileges; +} SERVICE_REQUIRED_PRIVILEGES_INFOW, *LPSERVICE_REQUIRED_PRIVILEGES_INFOW; + + + + +typedef SERVICE_REQUIRED_PRIVILEGES_INFOA SERVICE_REQUIRED_PRIVILEGES_INFO; +typedef LPSERVICE_REQUIRED_PRIVILEGES_INFOA LPSERVICE_REQUIRED_PRIVILEGES_INFO; + + + + + +typedef struct _SERVICE_PRESHUTDOWN_INFO { + DWORD dwPreshutdownTimeout; +} SERVICE_PRESHUTDOWN_INFO, *LPSERVICE_PRESHUTDOWN_INFO; + + + + +typedef struct _SERVICE_TRIGGER_SPECIFIC_DATA_ITEM +{ + DWORD dwDataType; + + + + DWORD cbData; + + + + PBYTE pData; +} SERVICE_TRIGGER_SPECIFIC_DATA_ITEM, *PSERVICE_TRIGGER_SPECIFIC_DATA_ITEM; + + + + +typedef struct _SERVICE_TRIGGER +{ + DWORD dwTriggerType; + DWORD dwAction; + GUID * pTriggerSubtype; + + + + + + + DWORD cDataItems; + + + + PSERVICE_TRIGGER_SPECIFIC_DATA_ITEM pDataItems; +} SERVICE_TRIGGER, *PSERVICE_TRIGGER; + + + + +typedef struct _SERVICE_TRIGGER_INFO { + + + + DWORD cTriggers; + + + + PSERVICE_TRIGGER pTriggers; + PBYTE pReserved; +} SERVICE_TRIGGER_INFO, *PSERVICE_TRIGGER_INFO; + + + + + + +typedef struct _SERVICE_PREFERRED_NODE_INFO { + USHORT usPreferredNode; + BOOLEAN fDelete; +} SERVICE_PREFERRED_NODE_INFO, *LPSERVICE_PREFERRED_NODE_INFO; + + + + +typedef struct _SERVICE_TIMECHANGE_INFO { + LARGE_INTEGER liNewTime; + LARGE_INTEGER liOldTime; +} SERVICE_TIMECHANGE_INFO, *PSERVICE_TIMECHANGE_INFO; + + + + +typedef struct _SERVICE_LAUNCH_PROTECTED_INFO { + DWORD dwLaunchProtected; +} SERVICE_LAUNCH_PROTECTED_INFO, *PSERVICE_LAUNCH_PROTECTED_INFO; + + + + + +struct SC_HANDLE__{int unused;}; typedef struct SC_HANDLE__ *SC_HANDLE; +typedef SC_HANDLE *LPSC_HANDLE; + +struct SERVICE_STATUS_HANDLE__{int unused;}; typedef struct SERVICE_STATUS_HANDLE__ *SERVICE_STATUS_HANDLE; + + + + + +typedef enum _SC_STATUS_TYPE { + SC_STATUS_PROCESS_INFO = 0 +} SC_STATUS_TYPE; + + + + +typedef enum _SC_ENUM_TYPE { + SC_ENUM_PROCESS_INFO = 0 +} SC_ENUM_TYPE; + + + + + + +typedef struct _SERVICE_STATUS { + DWORD dwServiceType; + DWORD dwCurrentState; + DWORD dwControlsAccepted; + DWORD dwWin32ExitCode; + DWORD dwServiceSpecificExitCode; + DWORD dwCheckPoint; + DWORD dwWaitHint; +} SERVICE_STATUS, *LPSERVICE_STATUS; + +typedef struct _SERVICE_STATUS_PROCESS { + DWORD dwServiceType; + DWORD dwCurrentState; + DWORD dwControlsAccepted; + DWORD dwWin32ExitCode; + DWORD dwServiceSpecificExitCode; + DWORD dwCheckPoint; + DWORD dwWaitHint; + DWORD dwProcessId; + DWORD dwServiceFlags; +} SERVICE_STATUS_PROCESS, *LPSERVICE_STATUS_PROCESS; + + + + + + +typedef struct _ENUM_SERVICE_STATUSA { + LPSTR lpServiceName; + LPSTR lpDisplayName; + SERVICE_STATUS ServiceStatus; +} ENUM_SERVICE_STATUSA, *LPENUM_SERVICE_STATUSA; +typedef struct _ENUM_SERVICE_STATUSW { + LPWSTR lpServiceName; + LPWSTR lpDisplayName; + SERVICE_STATUS ServiceStatus; +} ENUM_SERVICE_STATUSW, *LPENUM_SERVICE_STATUSW; + + + + +typedef ENUM_SERVICE_STATUSA ENUM_SERVICE_STATUS; +typedef LPENUM_SERVICE_STATUSA LPENUM_SERVICE_STATUS; + + +typedef struct _ENUM_SERVICE_STATUS_PROCESSA { + LPSTR lpServiceName; + LPSTR lpDisplayName; + SERVICE_STATUS_PROCESS ServiceStatusProcess; +} ENUM_SERVICE_STATUS_PROCESSA, *LPENUM_SERVICE_STATUS_PROCESSA; +typedef struct _ENUM_SERVICE_STATUS_PROCESSW { + LPWSTR lpServiceName; + LPWSTR lpDisplayName; + SERVICE_STATUS_PROCESS ServiceStatusProcess; +} ENUM_SERVICE_STATUS_PROCESSW, *LPENUM_SERVICE_STATUS_PROCESSW; + + + + +typedef ENUM_SERVICE_STATUS_PROCESSA ENUM_SERVICE_STATUS_PROCESS; +typedef LPENUM_SERVICE_STATUS_PROCESSA LPENUM_SERVICE_STATUS_PROCESS; + + + + + + +typedef LPVOID SC_LOCK; + +typedef struct _QUERY_SERVICE_LOCK_STATUSA { + DWORD fIsLocked; + LPSTR lpLockOwner; + DWORD dwLockDuration; +} QUERY_SERVICE_LOCK_STATUSA, *LPQUERY_SERVICE_LOCK_STATUSA; +typedef struct _QUERY_SERVICE_LOCK_STATUSW { + DWORD fIsLocked; + LPWSTR lpLockOwner; + DWORD dwLockDuration; +} QUERY_SERVICE_LOCK_STATUSW, *LPQUERY_SERVICE_LOCK_STATUSW; + + + + +typedef QUERY_SERVICE_LOCK_STATUSA QUERY_SERVICE_LOCK_STATUS; +typedef LPQUERY_SERVICE_LOCK_STATUSA LPQUERY_SERVICE_LOCK_STATUS; +# 816 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +typedef struct _QUERY_SERVICE_CONFIGA { + DWORD dwServiceType; + DWORD dwStartType; + DWORD dwErrorControl; + LPSTR lpBinaryPathName; + LPSTR lpLoadOrderGroup; + DWORD dwTagId; + LPSTR lpDependencies; + LPSTR lpServiceStartName; + LPSTR lpDisplayName; +} QUERY_SERVICE_CONFIGA, *LPQUERY_SERVICE_CONFIGA; +typedef struct _QUERY_SERVICE_CONFIGW { + DWORD dwServiceType; + DWORD dwStartType; + DWORD dwErrorControl; + LPWSTR lpBinaryPathName; + LPWSTR lpLoadOrderGroup; + DWORD dwTagId; + LPWSTR lpDependencies; + LPWSTR lpServiceStartName; + LPWSTR lpDisplayName; +} QUERY_SERVICE_CONFIGW, *LPQUERY_SERVICE_CONFIGW; + + + + +typedef QUERY_SERVICE_CONFIGA QUERY_SERVICE_CONFIG; +typedef LPQUERY_SERVICE_CONFIGA LPQUERY_SERVICE_CONFIG; +# 852 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +typedef void __stdcall SERVICE_MAIN_FUNCTIONW ( + DWORD dwNumServicesArgs, + LPWSTR *lpServiceArgVectors + ); + +typedef void __stdcall SERVICE_MAIN_FUNCTIONA ( + DWORD dwNumServicesArgs, + LPTSTR *lpServiceArgVectors + ); + + + + + + + +typedef void (__stdcall *LPSERVICE_MAIN_FUNCTIONW)( + DWORD dwNumServicesArgs, + LPWSTR *lpServiceArgVectors + ); + +typedef void (__stdcall *LPSERVICE_MAIN_FUNCTIONA)( + DWORD dwNumServicesArgs, + LPSTR *lpServiceArgVectors + ); +# 889 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +typedef struct _SERVICE_TABLE_ENTRYA { + LPSTR lpServiceName; + LPSERVICE_MAIN_FUNCTIONA lpServiceProc; +}SERVICE_TABLE_ENTRYA, *LPSERVICE_TABLE_ENTRYA; +typedef struct _SERVICE_TABLE_ENTRYW { + LPWSTR lpServiceName; + LPSERVICE_MAIN_FUNCTIONW lpServiceProc; +}SERVICE_TABLE_ENTRYW, *LPSERVICE_TABLE_ENTRYW; + + + + +typedef SERVICE_TABLE_ENTRYA SERVICE_TABLE_ENTRY; +typedef LPSERVICE_TABLE_ENTRYA LPSERVICE_TABLE_ENTRY; + + + + + + +typedef void __stdcall HANDLER_FUNCTION ( + DWORD dwControl + ); + +typedef DWORD __stdcall HANDLER_FUNCTION_EX ( + DWORD dwControl, + DWORD dwEventType, + LPVOID lpEventData, + LPVOID lpContext + ); + +typedef void (__stdcall *LPHANDLER_FUNCTION)( + DWORD dwControl + ); + +typedef DWORD (__stdcall *LPHANDLER_FUNCTION_EX)( + DWORD dwControl, + DWORD dwEventType, + LPVOID lpEventData, + LPVOID lpContext + ); + + + + +typedef +void +( __stdcall * PFN_SC_NOTIFY_CALLBACK ) ( + PVOID pParameter + ); + + + + +typedef struct _SERVICE_NOTIFY_1 { + DWORD dwVersion; + PFN_SC_NOTIFY_CALLBACK pfnNotifyCallback; + PVOID pContext; + DWORD dwNotificationStatus; + SERVICE_STATUS_PROCESS ServiceStatus; +} SERVICE_NOTIFY_1, *PSERVICE_NOTIFY_1; + +typedef struct _SERVICE_NOTIFY_2A { + DWORD dwVersion; + PFN_SC_NOTIFY_CALLBACK pfnNotifyCallback; + PVOID pContext; + DWORD dwNotificationStatus; + SERVICE_STATUS_PROCESS ServiceStatus; + DWORD dwNotificationTriggered; + LPSTR pszServiceNames; +} SERVICE_NOTIFY_2A, *PSERVICE_NOTIFY_2A; +typedef struct _SERVICE_NOTIFY_2W { + DWORD dwVersion; + PFN_SC_NOTIFY_CALLBACK pfnNotifyCallback; + PVOID pContext; + DWORD dwNotificationStatus; + SERVICE_STATUS_PROCESS ServiceStatus; + DWORD dwNotificationTriggered; + LPWSTR pszServiceNames; +} SERVICE_NOTIFY_2W, *PSERVICE_NOTIFY_2W; + + + + +typedef SERVICE_NOTIFY_2A SERVICE_NOTIFY_2; +typedef PSERVICE_NOTIFY_2A PSERVICE_NOTIFY_2; + + +typedef SERVICE_NOTIFY_2A SERVICE_NOTIFYA, *PSERVICE_NOTIFYA; +typedef SERVICE_NOTIFY_2W SERVICE_NOTIFYW, *PSERVICE_NOTIFYW; + + + + +typedef SERVICE_NOTIFYA SERVICE_NOTIFY; +typedef PSERVICE_NOTIFYA PSERVICE_NOTIFY; + + + + + +typedef struct _SERVICE_CONTROL_STATUS_REASON_PARAMSA { + DWORD dwReason; + LPSTR pszComment; + SERVICE_STATUS_PROCESS ServiceStatus; +} SERVICE_CONTROL_STATUS_REASON_PARAMSA, *PSERVICE_CONTROL_STATUS_REASON_PARAMSA; + + + +typedef struct _SERVICE_CONTROL_STATUS_REASON_PARAMSW { + DWORD dwReason; + LPWSTR pszComment; + SERVICE_STATUS_PROCESS ServiceStatus; +} SERVICE_CONTROL_STATUS_REASON_PARAMSW, *PSERVICE_CONTROL_STATUS_REASON_PARAMSW; + + + + +typedef SERVICE_CONTROL_STATUS_REASON_PARAMSA SERVICE_CONTROL_STATUS_REASON_PARAMS; +typedef PSERVICE_CONTROL_STATUS_REASON_PARAMSA PSERVICE_CONTROL_STATUS_REASON_PARAMS; + + + + + +typedef struct _SERVICE_START_REASON { + DWORD dwReason; +} SERVICE_START_REASON, *PSERVICE_START_REASON; + + + + + +__declspec(dllimport) +BOOL +__stdcall +ChangeServiceConfigA( + SC_HANDLE hService, + DWORD dwServiceType, + DWORD dwStartType, + DWORD dwErrorControl, + LPCSTR lpBinaryPathName, + LPCSTR lpLoadOrderGroup, + LPDWORD lpdwTagId, + LPCSTR lpDependencies, + LPCSTR lpServiceStartName, + LPCSTR lpPassword, + LPCSTR lpDisplayName + ); +__declspec(dllimport) +BOOL +__stdcall +ChangeServiceConfigW( + SC_HANDLE hService, + DWORD dwServiceType, + DWORD dwStartType, + DWORD dwErrorControl, + LPCWSTR lpBinaryPathName, + LPCWSTR lpLoadOrderGroup, + LPDWORD lpdwTagId, + LPCWSTR lpDependencies, + LPCWSTR lpServiceStartName, + LPCWSTR lpPassword, + LPCWSTR lpDisplayName + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +ChangeServiceConfig2A( + SC_HANDLE hService, + DWORD dwInfoLevel, + LPVOID lpInfo + ); +__declspec(dllimport) +BOOL +__stdcall +ChangeServiceConfig2W( + SC_HANDLE hService, + DWORD dwInfoLevel, + LPVOID lpInfo + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +CloseServiceHandle( + SC_HANDLE hSCObject + ); + +__declspec(dllimport) +BOOL +__stdcall +ControlService( + SC_HANDLE hService, + DWORD dwControl, + LPSERVICE_STATUS lpServiceStatus + ); + + +__declspec(dllimport) +SC_HANDLE +__stdcall +CreateServiceA( + SC_HANDLE hSCManager, + LPCSTR lpServiceName, + LPCSTR lpDisplayName, + DWORD dwDesiredAccess, + DWORD dwServiceType, + DWORD dwStartType, + DWORD dwErrorControl, + LPCSTR lpBinaryPathName, + LPCSTR lpLoadOrderGroup, + LPDWORD lpdwTagId, + LPCSTR lpDependencies, + LPCSTR lpServiceStartName, + LPCSTR lpPassword + ); + +__declspec(dllimport) +SC_HANDLE +__stdcall +CreateServiceW( + SC_HANDLE hSCManager, + LPCWSTR lpServiceName, + LPCWSTR lpDisplayName, + DWORD dwDesiredAccess, + DWORD dwServiceType, + DWORD dwStartType, + DWORD dwErrorControl, + LPCWSTR lpBinaryPathName, + LPCWSTR lpLoadOrderGroup, + LPDWORD lpdwTagId, + LPCWSTR lpDependencies, + LPCWSTR lpServiceStartName, + LPCWSTR lpPassword + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +DeleteService( + SC_HANDLE hService + ); + + +__declspec(dllimport) +BOOL +__stdcall +EnumDependentServicesA( + SC_HANDLE hService, + DWORD dwServiceState, + + LPENUM_SERVICE_STATUSA lpServices, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded, + LPDWORD lpServicesReturned + ); + +__declspec(dllimport) +BOOL +__stdcall +EnumDependentServicesW( + SC_HANDLE hService, + DWORD dwServiceState, + + LPENUM_SERVICE_STATUSW lpServices, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded, + LPDWORD lpServicesReturned + ); +# 1188 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumServicesStatusA( + SC_HANDLE hSCManager, + DWORD dwServiceType, + DWORD dwServiceState, + + LPENUM_SERVICE_STATUSA lpServices, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded, + LPDWORD lpServicesReturned, + LPDWORD lpResumeHandle + ); + +__declspec(dllimport) +BOOL +__stdcall +EnumServicesStatusW( + SC_HANDLE hSCManager, + DWORD dwServiceType, + DWORD dwServiceState, + + LPENUM_SERVICE_STATUSW lpServices, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded, + LPDWORD lpServicesReturned, + LPDWORD lpResumeHandle + ); +# 1230 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +__declspec(dllimport) +BOOL +__stdcall +EnumServicesStatusExA( + SC_HANDLE hSCManager, + SC_ENUM_TYPE InfoLevel, + DWORD dwServiceType, + DWORD dwServiceState, + + LPBYTE lpServices, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded, + LPDWORD lpServicesReturned, + LPDWORD lpResumeHandle, + LPCSTR pszGroupName + ); + +__declspec(dllimport) +BOOL +__stdcall +EnumServicesStatusExW( + SC_HANDLE hSCManager, + SC_ENUM_TYPE InfoLevel, + DWORD dwServiceType, + DWORD dwServiceState, + + LPBYTE lpServices, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded, + LPDWORD lpServicesReturned, + LPDWORD lpResumeHandle, + LPCWSTR pszGroupName + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetServiceKeyNameA( + SC_HANDLE hSCManager, + LPCSTR lpDisplayName, + + LPSTR lpServiceName, + LPDWORD lpcchBuffer + ); + +__declspec(dllimport) +BOOL +__stdcall +GetServiceKeyNameW( + SC_HANDLE hSCManager, + LPCWSTR lpDisplayName, + + LPWSTR lpServiceName, + LPDWORD lpcchBuffer + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +GetServiceDisplayNameA( + SC_HANDLE hSCManager, + LPCSTR lpServiceName, + + LPSTR lpDisplayName, + LPDWORD lpcchBuffer + ); + +__declspec(dllimport) +BOOL +__stdcall +GetServiceDisplayNameW( + SC_HANDLE hSCManager, + LPCWSTR lpServiceName, + + LPWSTR lpDisplayName, + LPDWORD lpcchBuffer + ); +# 1331 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +__declspec(dllimport) +SC_LOCK +__stdcall +LockServiceDatabase( + SC_HANDLE hSCManager + ); + +__declspec(dllimport) +BOOL +__stdcall +NotifyBootConfigStatus( + BOOL BootAcceptable + ); +# 1352 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +__declspec(dllimport) +SC_HANDLE +__stdcall +OpenSCManagerA( + LPCSTR lpMachineName, + LPCSTR lpDatabaseName, + DWORD dwDesiredAccess + ); + +__declspec(dllimport) +SC_HANDLE +__stdcall +OpenSCManagerW( + LPCWSTR lpMachineName, + LPCWSTR lpDatabaseName, + DWORD dwDesiredAccess + ); + + + + + + + +__declspec(dllimport) +SC_HANDLE +__stdcall +OpenServiceA( + SC_HANDLE hSCManager, + LPCSTR lpServiceName, + DWORD dwDesiredAccess + ); + +__declspec(dllimport) +SC_HANDLE +__stdcall +OpenServiceW( + SC_HANDLE hSCManager, + LPCWSTR lpServiceName, + DWORD dwDesiredAccess + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +QueryServiceConfigA( + SC_HANDLE hService, + + LPQUERY_SERVICE_CONFIGA lpServiceConfig, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded + ); + +__declspec(dllimport) +BOOL +__stdcall +QueryServiceConfigW( + SC_HANDLE hService, + + LPQUERY_SERVICE_CONFIGW lpServiceConfig, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded + ); +# 1435 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +__declspec(dllimport) +BOOL +__stdcall +QueryServiceConfig2A( + SC_HANDLE hService, + DWORD dwInfoLevel, + + LPBYTE lpBuffer, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded + ); +# 1454 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +__declspec(dllimport) +BOOL +__stdcall +QueryServiceConfig2W( + SC_HANDLE hService, + DWORD dwInfoLevel, + + LPBYTE lpBuffer, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded + ); +# 1478 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +__declspec(dllimport) +BOOL +__stdcall +QueryServiceLockStatusA( + SC_HANDLE hSCManager, + + LPQUERY_SERVICE_LOCK_STATUSA lpLockStatus, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded + ); + +__declspec(dllimport) +BOOL +__stdcall +QueryServiceLockStatusW( + SC_HANDLE hSCManager, + + LPQUERY_SERVICE_LOCK_STATUSW lpLockStatus, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded + ); +# 1512 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +__declspec(dllimport) +BOOL +__stdcall +QueryServiceObjectSecurity( + SC_HANDLE hService, + SECURITY_INFORMATION dwSecurityInformation, + + PSECURITY_DESCRIPTOR lpSecurityDescriptor, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded + ); + + +__declspec(dllimport) +BOOL +__stdcall +QueryServiceStatus( + SC_HANDLE hService, + LPSERVICE_STATUS lpServiceStatus + ); + + +__declspec(dllimport) +BOOL +__stdcall +QueryServiceStatusEx( + SC_HANDLE hService, + SC_STATUS_TYPE InfoLevel, + + LPBYTE lpBuffer, + DWORD cbBufSize, + LPDWORD pcbBytesNeeded + ); + + +__declspec(dllimport) +SERVICE_STATUS_HANDLE +__stdcall +RegisterServiceCtrlHandlerA( + LPCSTR lpServiceName, + + LPHANDLER_FUNCTION lpHandlerProc + ); + +__declspec(dllimport) +SERVICE_STATUS_HANDLE +__stdcall +RegisterServiceCtrlHandlerW( + LPCWSTR lpServiceName, + + LPHANDLER_FUNCTION lpHandlerProc + ); + + + + + + + +__declspec(dllimport) +SERVICE_STATUS_HANDLE +__stdcall +RegisterServiceCtrlHandlerExA( + LPCSTR lpServiceName, + + LPHANDLER_FUNCTION_EX lpHandlerProc, + LPVOID lpContext + ); + +__declspec(dllimport) +SERVICE_STATUS_HANDLE +__stdcall +RegisterServiceCtrlHandlerExW( + LPCWSTR lpServiceName, + + LPHANDLER_FUNCTION_EX lpHandlerProc, + LPVOID lpContext + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +SetServiceObjectSecurity( + SC_HANDLE hService, + SECURITY_INFORMATION dwSecurityInformation, + PSECURITY_DESCRIPTOR lpSecurityDescriptor + ); + +__declspec(dllimport) +BOOL +__stdcall +SetServiceStatus( + SERVICE_STATUS_HANDLE hServiceStatus, + LPSERVICE_STATUS lpServiceStatus + ); + +__declspec(dllimport) +BOOL +__stdcall +StartServiceCtrlDispatcherA( + const SERVICE_TABLE_ENTRYA *lpServiceStartTable + ); +__declspec(dllimport) +BOOL +__stdcall +StartServiceCtrlDispatcherW( + const SERVICE_TABLE_ENTRYW *lpServiceStartTable + ); + + + + + + + +__declspec(dllimport) +BOOL +__stdcall +StartServiceA( + SC_HANDLE hService, + DWORD dwNumServiceArgs, + + LPCSTR *lpServiceArgVectors + ); +__declspec(dllimport) +BOOL +__stdcall +StartServiceW( + SC_HANDLE hService, + DWORD dwNumServiceArgs, + + LPCWSTR *lpServiceArgVectors + ); +# 1662 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +__declspec(dllimport) +BOOL +__stdcall +UnlockServiceDatabase( + SC_LOCK ScLock + ); +# 1677 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +__declspec(dllimport) +DWORD +__stdcall +NotifyServiceStatusChangeA ( + SC_HANDLE hService, + DWORD dwNotifyMask, + PSERVICE_NOTIFYA pNotifyBuffer + ); +__declspec(dllimport) +DWORD +__stdcall +NotifyServiceStatusChangeW ( + SC_HANDLE hService, + DWORD dwNotifyMask, + PSERVICE_NOTIFYW pNotifyBuffer + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +ControlServiceExA( + SC_HANDLE hService, + DWORD dwControl, + DWORD dwInfoLevel, + PVOID pControlParams + ); +__declspec(dllimport) +BOOL +__stdcall +ControlServiceExW( + SC_HANDLE hService, + DWORD dwControl, + DWORD dwInfoLevel, + PVOID pControlParams + ); + + + + + + +__declspec(dllimport) +BOOL +__stdcall +QueryServiceDynamicInformation ( + SERVICE_STATUS_HANDLE hServiceStatus, + DWORD dwInfoLevel, + PVOID * ppDynamicInfo + ); +# 1740 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +typedef enum _SC_EVENT_TYPE { + SC_EVENT_DATABASE_CHANGE, + SC_EVENT_PROPERTY_CHANGE, + SC_EVENT_STATUS_CHANGE +} SC_EVENT_TYPE, *PSC_EVENT_TYPE; + +typedef +void +__stdcall +SC_NOTIFICATION_CALLBACK ( + DWORD dwNotify, + PVOID pCallbackContext + ); +typedef SC_NOTIFICATION_CALLBACK* PSC_NOTIFICATION_CALLBACK; + +typedef struct _SC_NOTIFICATION_REGISTRATION* PSC_NOTIFICATION_REGISTRATION; + +__declspec(dllimport) +DWORD +__stdcall +SubscribeServiceChangeNotifications ( + SC_HANDLE hService, + SC_EVENT_TYPE eEventType, + PSC_NOTIFICATION_CALLBACK pCallback, + PVOID pCallbackContext, + PSC_NOTIFICATION_REGISTRATION* pSubscription + ); + +__declspec(dllimport) +void +__stdcall +UnsubscribeServiceChangeNotifications ( + PSC_NOTIFICATION_REGISTRATION pSubscription + ); + +__declspec(dllimport) +DWORD +__stdcall +WaitServiceState ( + SC_HANDLE hService, + DWORD dwNotify, + DWORD dwTimeout, + HANDLE hCancelEvent + ); +# 1793 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +typedef enum SERVICE_REGISTRY_STATE_TYPE { + ServiceRegistryStateParameters = 0, + ServiceRegistryStatePersistent = 1, + MaxServiceRegistryStateType = 2, +} SERVICE_REGISTRY_STATE_TYPE; + + +DWORD +__stdcall +GetServiceRegistryStateKey( + SERVICE_STATUS_HANDLE ServiceStatusHandle, + SERVICE_REGISTRY_STATE_TYPE StateType, + DWORD AccessMask, + HKEY *ServiceStateKey + ); + + + + + +typedef enum SERVICE_DIRECTORY_TYPE { + ServiceDirectoryPersistentState = 0, + ServiceDirectoryTypeMax = 1, +} SERVICE_DIRECTORY_TYPE; + + +DWORD +__stdcall +GetServiceDirectory( + SERVICE_STATUS_HANDLE hServiceStatus, + SERVICE_DIRECTORY_TYPE eDirectoryType, + PWCHAR lpPathBuffer, + DWORD cchPathBufferLength, + DWORD *lpcchRequiredBufferLength + ); + + + + + +typedef enum SERVICE_SHARED_REGISTRY_STATE_TYPE { + ServiceSharedRegistryPersistentState = 0 +} SERVICE_SHARED_REGISTRY_STATE_TYPE; + + +DWORD +__stdcall +GetSharedServiceRegistryStateKey( + SC_HANDLE ServiceHandle, + SERVICE_SHARED_REGISTRY_STATE_TYPE StateType, + DWORD AccessMask, + HKEY *ServiceStateKey + ); + +typedef enum SERVICE_SHARED_DIRECTORY_TYPE { + ServiceSharedDirectoryPersistentState = 0 +} SERVICE_SHARED_DIRECTORY_TYPE; + + +DWORD +__stdcall +GetSharedServiceDirectory( + SC_HANDLE ServiceHandle, + SERVICE_SHARED_DIRECTORY_TYPE DirectoryType, + PWCHAR PathBuffer, + DWORD PathBufferLength, + DWORD *RequiredBufferLength + ); +# 1872 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 +#pragma warning(pop) +# 242 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mcx.h" 1 3 +# 17 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mcx.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) + + +typedef struct _MODEMDEVCAPS { + DWORD dwActualSize; + DWORD dwRequiredSize; + DWORD dwDevSpecificOffset; + DWORD dwDevSpecificSize; + + + DWORD dwModemProviderVersion; + DWORD dwModemManufacturerOffset; + DWORD dwModemManufacturerSize; + DWORD dwModemModelOffset; + DWORD dwModemModelSize; + DWORD dwModemVersionOffset; + DWORD dwModemVersionSize; + + + DWORD dwDialOptions; + DWORD dwCallSetupFailTimer; + DWORD dwInactivityTimeout; + DWORD dwSpeakerVolume; + DWORD dwSpeakerMode; + DWORD dwModemOptions; + DWORD dwMaxDTERate; + DWORD dwMaxDCERate; + + + BYTE abVariablePortion [1]; +} MODEMDEVCAPS, *PMODEMDEVCAPS, *LPMODEMDEVCAPS; + +typedef struct _MODEMSETTINGS { + DWORD dwActualSize; + DWORD dwRequiredSize; + DWORD dwDevSpecificOffset; + DWORD dwDevSpecificSize; + + + DWORD dwCallSetupFailTimer; + DWORD dwInactivityTimeout; + DWORD dwSpeakerVolume; + DWORD dwSpeakerMode; + DWORD dwPreferredModemOptions; + + + DWORD dwNegotiatedModemOptions; + DWORD dwNegotiatedDCERate; + + + BYTE abVariablePortion [1]; +} MODEMSETTINGS, *PMODEMSETTINGS, *LPMODEMSETTINGS; +# 728 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mcx.h" 3 +#pragma warning(pop) +# 247 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + + + +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 1 3 +# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 +#pragma warning(push) +#pragma warning(disable: 4820) +# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 +struct HIMC__{int unused;}; typedef struct HIMC__ *HIMC; +struct HIMCC__{int unused;}; typedef struct HIMCC__ *HIMCC; +# 44 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 +typedef HKL *LPHKL; +typedef UINT *LPUINT; + + + + + + + +typedef struct tagCOMPOSITIONFORM { + DWORD dwStyle; + POINT ptCurrentPos; + RECT rcArea; +} COMPOSITIONFORM, *PCOMPOSITIONFORM, *NPCOMPOSITIONFORM, *LPCOMPOSITIONFORM; + + +typedef struct tagCANDIDATEFORM { + DWORD dwIndex; + DWORD dwStyle; + POINT ptCurrentPos; + RECT rcArea; +} CANDIDATEFORM, *PCANDIDATEFORM, *NPCANDIDATEFORM, *LPCANDIDATEFORM; +# 75 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 +typedef struct tagCANDIDATELIST { + DWORD dwSize; + DWORD dwStyle; + DWORD dwCount; + DWORD dwSelection; + DWORD dwPageStart; + DWORD dwPageSize; + DWORD dwOffset[1]; +} CANDIDATELIST, *PCANDIDATELIST, *NPCANDIDATELIST, *LPCANDIDATELIST; +# 92 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 +typedef struct tagREGISTERWORDA { + LPSTR lpReading; + LPSTR lpWord; +} REGISTERWORDA, *PREGISTERWORDA, *NPREGISTERWORDA, *LPREGISTERWORDA; +typedef struct tagREGISTERWORDW { + LPWSTR lpReading; + LPWSTR lpWord; +} REGISTERWORDW, *PREGISTERWORDW, *NPREGISTERWORDW, *LPREGISTERWORDW; + + + + + + +typedef REGISTERWORDA REGISTERWORD; +typedef PREGISTERWORDA PREGISTERWORD; +typedef NPREGISTERWORDA NPREGISTERWORD; +typedef LPREGISTERWORDA LPREGISTERWORD; +# 120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 +typedef struct tagRECONVERTSTRING { + DWORD dwSize; + DWORD dwVersion; + DWORD dwStrLen; + DWORD dwStrOffset; + DWORD dwCompStrLen; + DWORD dwCompStrOffset; + DWORD dwTargetStrLen; + DWORD dwTargetStrOffset; +} RECONVERTSTRING, *PRECONVERTSTRING, *NPRECONVERTSTRING, *LPRECONVERTSTRING; +# 141 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 +typedef struct tagSTYLEBUFA { + DWORD dwStyle; + CHAR szDescription[32]; +} STYLEBUFA, *PSTYLEBUFA, *NPSTYLEBUFA, *LPSTYLEBUFA; +typedef struct tagSTYLEBUFW { + DWORD dwStyle; + WCHAR szDescription[32]; +} STYLEBUFW, *PSTYLEBUFW, *NPSTYLEBUFW, *LPSTYLEBUFW; + + + + + + +typedef STYLEBUFA STYLEBUF; +typedef PSTYLEBUFA PSTYLEBUF; +typedef NPSTYLEBUFA NPSTYLEBUF; +typedef LPSTYLEBUFA LPSTYLEBUF; +# 171 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 +typedef struct tagIMEMENUITEMINFOA { + UINT cbSize; + UINT fType; + UINT fState; + UINT wID; + HBITMAP hbmpChecked; + HBITMAP hbmpUnchecked; + DWORD dwItemData; + CHAR szString[80]; + HBITMAP hbmpItem; +} IMEMENUITEMINFOA, *PIMEMENUITEMINFOA, *NPIMEMENUITEMINFOA, *LPIMEMENUITEMINFOA; +typedef struct tagIMEMENUITEMINFOW { + UINT cbSize; + UINT fType; + UINT fState; + UINT wID; + HBITMAP hbmpChecked; + HBITMAP hbmpUnchecked; + DWORD dwItemData; + WCHAR szString[80]; + HBITMAP hbmpItem; +} IMEMENUITEMINFOW, *PIMEMENUITEMINFOW, *NPIMEMENUITEMINFOW, *LPIMEMENUITEMINFOW; + + + + + + +typedef IMEMENUITEMINFOA IMEMENUITEMINFO; +typedef PIMEMENUITEMINFOA PIMEMENUITEMINFO; +typedef NPIMEMENUITEMINFOA NPIMEMENUITEMINFO; +typedef LPIMEMENUITEMINFOA LPIMEMENUITEMINFO; + + +typedef struct tagIMECHARPOSITION { + DWORD dwSize; + DWORD dwCharPos; + POINT pt; + UINT cLineHeight; + RECT rcDocument; +} IMECHARPOSITION, *PIMECHARPOSITION, *NPIMECHARPOSITION, *LPIMECHARPOSITION; + +typedef BOOL (__stdcall* IMCENUMPROC)(HIMC, LPARAM); +# 227 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 +HKL __stdcall ImmInstallIMEA( LPCSTR lpszIMEFileName, LPCSTR lpszLayoutText); +HKL __stdcall ImmInstallIMEW( LPCWSTR lpszIMEFileName, LPCWSTR lpszLayoutText); + + + + + + +HWND __stdcall ImmGetDefaultIMEWnd( HWND); + +UINT __stdcall ImmGetDescriptionA( HKL, LPSTR lpszDescription, UINT uBufLen); +UINT __stdcall ImmGetDescriptionW( HKL, LPWSTR lpszDescription, UINT uBufLen); + + + + + + +UINT __stdcall ImmGetIMEFileNameA( HKL, LPSTR lpszFileName, UINT uBufLen); +UINT __stdcall ImmGetIMEFileNameW( HKL, LPWSTR lpszFileName, UINT uBufLen); + + + + + + +DWORD __stdcall ImmGetProperty( HKL, DWORD); + +BOOL __stdcall ImmIsIME( HKL); + +BOOL __stdcall ImmSimulateHotKey( HWND, DWORD); + +HIMC __stdcall ImmCreateContext(void); +BOOL __stdcall ImmDestroyContext( HIMC); +HIMC __stdcall ImmGetContext( HWND); +BOOL __stdcall ImmReleaseContext( HWND, HIMC); +HIMC __stdcall ImmAssociateContext( HWND, HIMC); + +BOOL __stdcall ImmAssociateContextEx( HWND, HIMC, DWORD); + + +LONG __stdcall ImmGetCompositionStringA( HIMC, DWORD, LPVOID lpBuf, DWORD dwBufLen); +LONG __stdcall ImmGetCompositionStringW( HIMC, DWORD, LPVOID lpBuf, DWORD dwBufLen); + + + + + + +BOOL __stdcall ImmSetCompositionStringA( HIMC, DWORD dwIndex, LPVOID lpComp, DWORD dwCompLen, LPVOID lpRead, DWORD dwReadLen); +BOOL __stdcall ImmSetCompositionStringW( HIMC, DWORD dwIndex, LPVOID lpComp, DWORD dwCompLen, LPVOID lpRead, DWORD dwReadLen); + + + + + + +DWORD __stdcall ImmGetCandidateListCountA( HIMC, LPDWORD lpdwListCount); +DWORD __stdcall ImmGetCandidateListCountW( HIMC, LPDWORD lpdwListCount); + + + + + + +DWORD __stdcall ImmGetCandidateListA( HIMC, DWORD deIndex, LPCANDIDATELIST lpCandList, DWORD dwBufLen); +DWORD __stdcall ImmGetCandidateListW( HIMC, DWORD deIndex, LPCANDIDATELIST lpCandList, DWORD dwBufLen); + + + + + + +DWORD __stdcall ImmGetGuideLineA( HIMC, DWORD dwIndex, LPSTR lpBuf, DWORD dwBufLen); +DWORD __stdcall ImmGetGuideLineW( HIMC, DWORD dwIndex, LPWSTR lpBuf, DWORD dwBufLen); + + + + + + +BOOL __stdcall ImmGetConversionStatus( HIMC, LPDWORD lpfdwConversion, LPDWORD lpfdwSentence); +BOOL __stdcall ImmSetConversionStatus( HIMC, DWORD, DWORD); +BOOL __stdcall ImmGetOpenStatus( HIMC); +BOOL __stdcall ImmSetOpenStatus( HIMC, BOOL); + + +BOOL __stdcall ImmGetCompositionFontA( HIMC, LPLOGFONTA lplf); +BOOL __stdcall ImmGetCompositionFontW( HIMC, LPLOGFONTW lplf); + + + + + + +BOOL __stdcall ImmSetCompositionFontA( HIMC, LPLOGFONTA lplf); +BOOL __stdcall ImmSetCompositionFontW( HIMC, LPLOGFONTW lplf); + + + + + + + +BOOL __stdcall ImmConfigureIMEA( HKL, HWND, DWORD, LPVOID); +BOOL __stdcall ImmConfigureIMEW( HKL, HWND, DWORD, LPVOID); + + + + + + +LRESULT __stdcall ImmEscapeA( HKL, HIMC, UINT, LPVOID); +LRESULT __stdcall ImmEscapeW( HKL, HIMC, UINT, LPVOID); + + + + + + +DWORD __stdcall ImmGetConversionListA( HKL, HIMC, LPCSTR lpSrc, LPCANDIDATELIST lpDst, DWORD dwBufLen, UINT uFlag); +DWORD __stdcall ImmGetConversionListW( HKL, HIMC, LPCWSTR lpSrc, LPCANDIDATELIST lpDst, DWORD dwBufLen, UINT uFlag); + + + + + + +BOOL __stdcall ImmNotifyIME( HIMC, DWORD dwAction, DWORD dwIndex, DWORD dwValue); + +BOOL __stdcall ImmGetStatusWindowPos( HIMC, LPPOINT lpptPos); +BOOL __stdcall ImmSetStatusWindowPos( HIMC, LPPOINT lpptPos); +BOOL __stdcall ImmGetCompositionWindow( HIMC, LPCOMPOSITIONFORM lpCompForm); +BOOL __stdcall ImmSetCompositionWindow( HIMC, LPCOMPOSITIONFORM lpCompForm); +BOOL __stdcall ImmGetCandidateWindow( HIMC, DWORD, LPCANDIDATEFORM lpCandidate); +BOOL __stdcall ImmSetCandidateWindow( HIMC, LPCANDIDATEFORM lpCandidate); + +BOOL __stdcall ImmIsUIMessageA( HWND, UINT, WPARAM, LPARAM); +BOOL __stdcall ImmIsUIMessageW( HWND, UINT, WPARAM, LPARAM); + + + + + + +UINT __stdcall ImmGetVirtualKey( HWND); + +typedef int (__stdcall *REGISTERWORDENUMPROCA)( LPCSTR lpszReading, DWORD, LPCSTR lpszString, LPVOID); +typedef int (__stdcall *REGISTERWORDENUMPROCW)( LPCWSTR lpszReading, DWORD, LPCWSTR lpszString, LPVOID); + + + + + + +BOOL __stdcall ImmRegisterWordA( HKL, LPCSTR lpszReading, DWORD, LPCSTR lpszRegister); +BOOL __stdcall ImmRegisterWordW( HKL, LPCWSTR lpszReading, DWORD, LPCWSTR lpszRegister); + + + + + + +BOOL __stdcall ImmUnregisterWordA( HKL, LPCSTR lpszReading, DWORD, LPCSTR lpszUnregister); +BOOL __stdcall ImmUnregisterWordW( HKL, LPCWSTR lpszReading, DWORD, LPCWSTR lpszUnregister); + + + + + + +UINT __stdcall ImmGetRegisterWordStyleA( HKL, UINT nItem, LPSTYLEBUFA lpStyleBuf); +UINT __stdcall ImmGetRegisterWordStyleW( HKL, UINT nItem, LPSTYLEBUFW lpStyleBuf); + + + + + + +UINT __stdcall ImmEnumRegisterWordA( HKL, REGISTERWORDENUMPROCA, LPCSTR lpszReading, DWORD, LPCSTR lpszRegister, LPVOID); +UINT __stdcall ImmEnumRegisterWordW( HKL, REGISTERWORDENUMPROCW, LPCWSTR lpszReading, DWORD, LPCWSTR lpszRegister, LPVOID); + + + + + + + +BOOL __stdcall ImmDisableIME( DWORD); +BOOL __stdcall ImmEnumInputContext(DWORD idThread, IMCENUMPROC lpfn, LPARAM lParam); +DWORD __stdcall ImmGetImeMenuItemsA( HIMC, DWORD, DWORD, LPIMEMENUITEMINFOA lpImeParentMenu, LPIMEMENUITEMINFOA lpImeMenu, DWORD dwSize); +DWORD __stdcall ImmGetImeMenuItemsW( HIMC, DWORD, DWORD, LPIMEMENUITEMINFOW lpImeParentMenu, LPIMEMENUITEMINFOW lpImeMenu, DWORD dwSize); + + + + + + +BOOL __stdcall ImmDisableTextFrameService(DWORD idThread); + + + +BOOL __stdcall ImmDisableLegacyIME(void); +# 635 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ime_cmodes.h" 1 3 +# 636 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 2 3 +# 773 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 +#pragma warning(pop) +# 251 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 + + + + + + + +#pragma warning(pop) +# 18 "mat.h" 2 +# 34 "mat.h" +# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\inttypes.h" 1 3 +# 21 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\inttypes.h" 3 +# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 1 3 +# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 3 +# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stdint.h" 1 3 +# 52 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stdint.h" 3 +# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\stdint.h" 1 3 +# 15 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\stdint.h" 3 +#pragma warning(push) +#pragma warning(disable: 4514 4820) + +typedef signed char int8_t; +typedef short int16_t; +typedef int int32_t; +typedef long long int64_t; +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +typedef unsigned long long uint64_t; + +typedef signed char int_least8_t; +typedef short int_least16_t; +typedef int int_least32_t; +typedef long long int_least64_t; +typedef unsigned char uint_least8_t; +typedef unsigned short uint_least16_t; +typedef unsigned int uint_least32_t; +typedef unsigned long long uint_least64_t; + +typedef signed char int_fast8_t; +typedef int int_fast16_t; +typedef int int_fast32_t; +typedef long long int_fast64_t; +typedef unsigned char uint_fast8_t; +typedef unsigned int uint_fast16_t; +typedef unsigned int uint_fast32_t; +typedef unsigned long long uint_fast64_t; + +typedef long long intmax_t; +typedef unsigned long long uintmax_t; +# 136 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\stdint.h" 3 +#pragma warning(pop) +# 53 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stdint.h" 2 3 +# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 2 3 + +#pragma warning(push) +#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) +#pragma clang diagnostic push +# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 3 +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 3 +#pragma clang diagnostic ignored "-Wignored-attributes" +# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 3 +#pragma clang diagnostic ignored "-Wignored-pragma-optimize" +# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 3 +#pragma clang diagnostic ignored "-Wunknown-pragmas" + +#pragma pack(push, 8) + + + + + + + + +typedef struct +{ + intmax_t quot; + intmax_t rem; +} _Lldiv_t; + +typedef _Lldiv_t imaxdiv_t; +# 45 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 3 + intmax_t __cdecl imaxabs( + intmax_t _Number + ); + + + imaxdiv_t __cdecl imaxdiv( + intmax_t _Numerator, + intmax_t _Denominator + ); + + intmax_t __cdecl strtoimax( + char const* _String, + char** _EndPtr, + int _Radix + ); + + intmax_t __cdecl _strtoimax_l( + char const* _String, + char** _EndPtr, + int _Radix, + _locale_t _Locale + ); + + uintmax_t __cdecl strtoumax( + char const* _String, + char** _EndPtr, + int _Radix + ); + + uintmax_t __cdecl _strtoumax_l( + char const* _String, + char** _EndPtr, + int _Radix, + _locale_t _Locale + ); + + intmax_t __cdecl wcstoimax( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix + ); + + intmax_t __cdecl _wcstoimax_l( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix, + _locale_t _Locale + ); + + uintmax_t __cdecl wcstoumax( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix + ); + + uintmax_t __cdecl _wcstoumax_l( + wchar_t const* _String, + wchar_t** _EndPtr, + int _Radix, + _locale_t _Locale + ); +# 332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 3 +#pragma pack(pop) + + + + + + +#pragma clang diagnostic pop +#pragma warning(pop) +# 22 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\inttypes.h" 2 3 +# 35 "mat.h" 2 +# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stdbool.h" 1 3 +# 36 "mat.h" 2 +# 48 "mat.h" + typedef enum evt_call_t + { + EVT_OP_LOAD = 0x00000001, + EVT_OP_UNLOAD = 0x00000002, + EVT_OP_OPEN = 0x00000003, + EVT_OP_CLOSE = 0x00000004, + EVT_OP_CONFIG = 0x00000005, + EVT_OP_LOG = 0x00000006, + EVT_OP_PAUSE = 0x00000007, + EVT_OP_RESUME = 0x00000008, + EVT_OP_UPLOAD = 0x00000009, + EVT_OP_FLUSH = 0x0000000A, + EVT_OP_VERSION = 0x0000000B, + EVT_OP_OPEN_WITH_PARAMS = 0x0000000C, + EVT_OP_FLUSHANDTEARDOWN = 0x0000000D, + EVT_OP_MAX = EVT_OP_FLUSHANDTEARDOWN + 1, + } evt_call_t; + + typedef enum evt_prop_t + { + + TYPE_STRING, + TYPE_INT64, + TYPE_DOUBLE, + TYPE_TIME, + TYPE_BOOLEAN, + TYPE_GUID, + + TYPE_STRING_ARRAY, + TYPE_INT64_ARRAY, + TYPE_DOUBLE_ARRAY, + TYPE_TIME_ARRAY, + TYPE_BOOL_ARRAY, + TYPE_GUID_ARRAY, + + TYPE_NULL + } evt_prop_t; + + typedef struct evt_guid_t + { + + + + + + uint32_t Data1; + + + + + + uint16_t Data2; + + + + + + + uint16_t Data3; + + + + + + + + uint8_t Data4[8]; + } evt_guid_t; + + typedef int64_t evt_handle_t; + typedef int32_t evt_status_t; + typedef struct evt_event evt_event; + + typedef struct evt_context_t + { + evt_call_t call; + evt_handle_t handle; + void* data; + evt_status_t result; + uint32_t size; + } evt_context_t; + + + + + + + + typedef enum evt_open_param_type_t + { + OPEN_PARAM_TYPE_HTTP_HANDLER_SEND = 0, + OPEN_PARAM_TYPE_HTTP_HANDLER_CANCEL = 1, + OPEN_PARAM_TYPE_TASK_DISPATCHER_QUEUE = 2, + OPEN_PARAM_TYPE_TASK_DISPATCHER_CANCEL = 3, + OPEN_PARAM_TYPE_TASK_DISPATCHER_JOIN = 4, + } evt_open_param_type_t; + + + + + + + typedef struct evt_open_param_t + { + evt_open_param_type_t type; + void* data; + } evt_open_param_t; + + + + + + + typedef struct evt_open_with_params_data_t + { + const char* config; + const evt_open_param_t* params; + int32_t paramsCount; + } evt_open_with_params_data_t; + + typedef union evt_prop_v + { + + uint64_t as_uint64; + const char* as_string; + int64_t as_int64; + double as_double; + _Bool as_bool; + evt_guid_t* as_guid; + uint64_t as_time; + + char** as_arr_string; + int64_t** as_arr_int64; + _Bool** as_arr_bool; + double** as_arr_double; + evt_guid_t** as_arr_guid; + uint64_t** as_arr_time; + } evt_prop_v; + + typedef struct evt_prop + { + const char* name; + evt_prop_t type; + evt_prop_v value; + uint32_t piiKind; + } evt_prop; + + + + + + + typedef enum http_request_type_t + { + HTTP_REQUEST_TYPE_GET = 0, + HTTP_REQUEST_TYPE_POST = 1, + } http_request_type_t; + + + + + + + typedef enum http_result_t + { + HTTP_RESULT_OK = 0, + HTTP_RESULT_CANCELLED = 1, + HTTP_RESULT_LOCAL_FAILURE = 2, + HTTP_RESULT_NETWORK_FAILURE = 3, + } http_result_t; + + + + + + + typedef struct http_header_t + { + const char* name; + const char* value; + } http_header_t; + + + + + + + typedef struct http_request_t + { + const char* id; + http_request_type_t type; + const char* url; + const uint8_t* body; + int32_t bodySize; + const http_header_t* headers; + int32_t headersCount; + } http_request_t; + + + + + + + typedef struct http_response_t + { + int32_t statusCode; + const uint8_t* body; + int32_t bodySize; + const http_header_t* headers; + int32_t headersCount; + } http_response_t; + + + typedef void (__cdecl *http_complete_fn_t)(const char* , http_result_t, http_response_t*); + typedef void (__cdecl *http_send_fn_t)(http_request_t*, http_complete_fn_t); + typedef void (__cdecl *http_cancel_fn_t)(const char* ); + + + + + + + typedef struct evt_task_t + { + const char* id; + int64_t delayMs; + const char* typeName; + } evt_task_t; + + + typedef void (__cdecl *task_callback_fn_t)(const char* ); + typedef void(__cdecl* task_dispatcher_queue_fn_t)(evt_task_t*, task_callback_fn_t); + typedef _Bool (__cdecl *task_dispatcher_cancel_fn_t)(const char* ); + typedef void (__cdecl *task_dispatcher_join_fn_t)(); +# 346 "mat.h" + typedef evt_status_t(__cdecl *evt_app_call_t)(evt_context_t *); +# 356 "mat.h" + __declspec(selectany) evt_app_call_t evt_api_call = ((void*)0); +# 369 "mat.h" + static inline evt_status_t evt_load(evt_handle_t handle) + { + + + evt_app_call_t impl = (evt_app_call_t)GetProcAddress((HMODULE)handle, "evt_api_call_default"); + if (impl != ((void*)0)) + { + evt_api_call = impl; + return 0; + } + + return -1; +# 391 "mat.h" + } +# 402 "mat.h" + static inline evt_status_t evt_unload(evt_handle_t handle) + { + evt_context_t ctx; + ctx.call = EVT_OP_UNLOAD; + ctx.handle = handle; + return evt_api_call(&ctx); + } +# 417 "mat.h" + static inline evt_handle_t evt_open(const char* config) + { + evt_context_t ctx; + ctx.call = EVT_OP_OPEN; + ctx.data = (void *)config; + evt_api_call(&ctx); + return ctx.handle; + } +# 435 "mat.h" + static inline evt_handle_t evt_open_with_params( + const char* config, + evt_open_param_t* params, + int32_t paramsCount) + { + evt_open_with_params_data_t data; + evt_context_t ctx; + + data.config = config; + data.params = params; + data.paramsCount = paramsCount; + + ctx.call = EVT_OP_OPEN_WITH_PARAMS; + ctx.data = (void *)(&data); + evt_api_call(&ctx); + return ctx.handle; + } +# 460 "mat.h" + static inline evt_status_t evt_close(evt_handle_t handle) + { + evt_context_t ctx; + ctx.call = EVT_OP_CLOSE; + ctx.handle = handle; + return evt_api_call(&ctx); + } +# 476 "mat.h" + static inline evt_status_t evt_configure(evt_handle_t handle, const char* config) + { + evt_context_t ctx; + ctx.call = EVT_OP_CONFIG; + ctx.handle = handle; + ctx.data = (void *)config; + return evt_api_call(&ctx); + } +# 494 "mat.h" + static inline evt_status_t evt_log_s(evt_handle_t handle, uint32_t size, evt_prop* evt) + { + evt_context_t ctx; + ctx.call = EVT_OP_LOG; + ctx.handle = handle; + ctx.data = (void *)evt; + ctx.size = size; + return evt_api_call(&ctx); + } +# 514 "mat.h" + static inline evt_status_t evt_log(evt_handle_t handle, evt_prop* evt) + { + evt_context_t ctx; + ctx.call = EVT_OP_LOG; + ctx.handle = handle; + ctx.data = (void *)evt; + ctx.size = 0; + return evt_api_call(&ctx); + } +# 542 "mat.h" + static inline evt_status_t evt_pause(evt_handle_t handle) + { + evt_context_t ctx; + ctx.call = EVT_OP_PAUSE; + ctx.handle = handle; + return evt_api_call(&ctx); + } +# 557 "mat.h" + static inline evt_status_t evt_resume(evt_handle_t handle) + { + evt_context_t ctx; + ctx.call = EVT_OP_RESUME; + ctx.handle = handle; + return evt_api_call(&ctx); + } +# 573 "mat.h" + static inline evt_status_t evt_upload(evt_handle_t handle) + { + evt_context_t ctx; + ctx.call = EVT_OP_UPLOAD; + ctx.handle = handle; + return evt_api_call(&ctx); + } +# 589 "mat.h" + static inline evt_status_t evt_flushAndTeardown(evt_handle_t handle) + { + evt_context_t ctx; + ctx.call = EVT_OP_FLUSHANDTEARDOWN; + ctx.handle = handle; + return evt_api_call(&ctx); + } + + + + + + + + static inline evt_status_t evt_flush(evt_handle_t handle) + { + evt_context_t ctx; + ctx.call = EVT_OP_FLUSH; + ctx.handle = handle; + return evt_api_call(&ctx); + } +# 620 "mat.h" + static inline const char * evt_version() + { + static const char * libSemver = "3.1.0"; + evt_context_t ctx; + ctx.call = EVT_OP_VERSION; + ctx.data = (void*)libSemver; + evt_api_call(&ctx); + return (const char *)(ctx.data); + } diff --git a/wrappers/rust/build.rs b/wrappers/rust/old/no_build.rs similarity index 64% rename from wrappers/rust/build.rs rename to wrappers/rust/old/no_build.rs index f69290e92..c33dfee6d 100644 --- a/wrappers/rust/build.rs +++ b/wrappers/rust/old/no_build.rs @@ -33,38 +33,7 @@ fn main() { // println!("cargo:rustc-link-lib=mat"); // Tell cargo to invalidate the built crate whenever the header changes. - println!("cargo:rerun-if-changed={}", headers_path_str); - - // // Run `clang` to compile the `mat.c` file into a `mat.o` object file. - // // Unwrap if it is not possible to spawn the process. - // if !std::process::Command::new("clang") - // .arg("-c") - // .arg("-o") - // .arg(&obj_path) - // .arg(libdir_path.join("hello.c")) - // .output() - // .expect("could not spawn `clang`") - // .status - // .success() - // { - // // Panic if the command was not successful. - // panic!("could not compile object file"); - // } - - // // Run `ar` to generate the `libhello.a` file from the `hello.o` file. - // // Unwrap if it is not possible to spawn the process. - // if !std::process::Command::new("ar") - // .arg("rcs") - // .arg(lib_path) - // .arg(obj_path) - // .output() - // .expect("could not spawn `ar`") - // .status - // .success() - // { - // // Panic if the command was not successful. - // panic!("could not emit library file"); - // } + // println!("cargo:rerun-if-changed={}", headers_path_str); // The bindgen::Builder is the main entry point // to bindgen, and lets you build up options for @@ -74,6 +43,12 @@ fn main() { // bindings for. .header(c_header_path_str) .clang_arg(format!("-I{}", headers_path_str)) + // https://github.com/Rust-SDL2/rust-sdl2/issues/1288 + .blocklist_type("IMAGE_TLS_DIRECTORY") + .blocklist_type("PIMAGE_TLS_DIRECTORY") + .blocklist_type("IMAGE_TLS_DIRECTORY64") + .blocklist_type("PIMAGE_TLS_DIRECTORY64") + .blocklist_type("_IMAGE_TLS_DIRECTORY64") // Tell cargo to invalidate the built crate whenever any of the // included header files changed. .parse_callbacks(Box::new(CargoCallbacks)) @@ -83,7 +58,9 @@ fn main() { .expect("Unable to generate bindings"); // Write the bindings to the $OUT_DIR/bindings.rs file. - let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()).join("bindings.rs"); + // Write the bindings to the $CARGO_MANIFEST_DIR/bindings.rs file. + // https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts + let out_path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()).join("src/bindings.rs"); bindings .write_to_file(out_path) .expect("Couldn't write bindings!"); diff --git a/wrappers/rust/old/telemetry.rs b/wrappers/rust/old/telemetry.rs new file mode 100644 index 000000000..e84ec9db9 --- /dev/null +++ b/wrappers/rust/old/telemetry.rs @@ -0,0 +1,116381 @@ +/* automatically generated by rust-bindgen 0.68.1 */ + +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { + storage: Storage, +} +impl __BindgenBitfieldUnit { + #[inline] + pub const fn new(storage: Storage) -> Self { + Self { storage } + } +} +impl __BindgenBitfieldUnit +where + Storage: AsRef<[u8]> + AsMut<[u8]>, +{ + #[inline] + pub fn get_bit(&self, index: usize) -> bool { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = self.storage.as_ref()[byte_index]; + let bit_index = if cfg!(target_endian = "big") { + 7 - (index % 8) + } else { + index % 8 + }; + let mask = 1 << bit_index; + byte & mask == mask + } + #[inline] + pub fn set_bit(&mut self, index: usize, val: bool) { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = &mut self.storage.as_mut()[byte_index]; + let bit_index = if cfg!(target_endian = "big") { + 7 - (index % 8) + } else { + index % 8 + }; + let mask = 1 << bit_index; + if val { + *byte |= mask; + } else { + *byte &= !mask; + } + } + #[inline] + pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); + let mut val = 0; + for i in 0..(bit_width as usize) { + if self.get_bit(i + bit_offset) { + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + val |= 1 << index; + } + } + val + } + #[inline] + pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); + for i in 0..(bit_width as usize) { + let mask = 1 << i; + let val_bit_is_set = val & mask == mask; + let index = if cfg!(target_endian = "big") { + bit_width as usize - 1 - i + } else { + i + }; + self.set_bit(index + bit_offset, val_bit_is_set); + } + } +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::std::marker::PhantomData, [T; 0]); +impl __IncompleteArrayField { + #[inline] + pub const fn new() -> Self { + __IncompleteArrayField(::std::marker::PhantomData, []) + } + #[inline] + pub fn as_ptr(&self) -> *const T { + self as *const _ as *const T + } + #[inline] + pub fn as_mut_ptr(&mut self) -> *mut T { + self as *mut _ as *mut T + } + #[inline] + pub unsafe fn as_slice(&self, len: usize) -> &[T] { + ::std::slice::from_raw_parts(self.as_ptr(), len) + } + #[inline] + pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { + ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) + } +} +impl ::std::fmt::Debug for __IncompleteArrayField { + fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + fmt.write_str("__IncompleteArrayField") + } +} +#[repr(C)] +pub struct __BindgenUnionField(::std::marker::PhantomData); +impl __BindgenUnionField { + #[inline] + pub const fn new() -> Self { + __BindgenUnionField(::std::marker::PhantomData) + } + #[inline] + pub unsafe fn as_ref(&self) -> &T { + ::std::mem::transmute(self) + } + #[inline] + pub unsafe fn as_mut(&mut self) -> &mut T { + ::std::mem::transmute(self) + } +} +impl ::std::default::Default for __BindgenUnionField { + #[inline] + fn default() -> Self { + Self::new() + } +} +impl ::std::clone::Clone for __BindgenUnionField { + #[inline] + fn clone(&self) -> Self { + *self + } +} +impl ::std::marker::Copy for __BindgenUnionField {} +impl ::std::fmt::Debug for __BindgenUnionField { + fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + fmt.write_str("__BindgenUnionField") + } +} +impl ::std::hash::Hash for __BindgenUnionField { + fn hash(&self, _state: &mut H) {} +} +impl ::std::cmp::PartialEq for __BindgenUnionField { + fn eq(&self, _other: &__BindgenUnionField) -> bool { + true + } +} +impl ::std::cmp::Eq for __BindgenUnionField {} +pub const TELEMETRY_EVENTS_VERSION: &[u8; 6] = b"3.1.0\0"; +pub const HAVE_EXCEPTIONS: u32 = 0; +pub const WINAPI_FAMILY_PC_APP: u32 = 2; +pub const WINAPI_FAMILY_PHONE_APP: u32 = 3; +pub const WINAPI_FAMILY_SYSTEM: u32 = 4; +pub const WINAPI_FAMILY_SERVER: u32 = 5; +pub const WINAPI_FAMILY_GAMES: u32 = 6; +pub const WINAPI_FAMILY_DESKTOP_APP: u32 = 100; +pub const WINAPI_FAMILY_APP: u32 = 2; +pub const WINAPI_FAMILY: u32 = 100; +pub const _WIN32_WINNT_NT4: u32 = 1024; +pub const _WIN32_WINNT_WIN2K: u32 = 1280; +pub const _WIN32_WINNT_WINXP: u32 = 1281; +pub const _WIN32_WINNT_WS03: u32 = 1282; +pub const _WIN32_WINNT_WIN6: u32 = 1536; +pub const _WIN32_WINNT_VISTA: u32 = 1536; +pub const _WIN32_WINNT_WS08: u32 = 1536; +pub const _WIN32_WINNT_LONGHORN: u32 = 1536; +pub const _WIN32_WINNT_WIN7: u32 = 1537; +pub const _WIN32_WINNT_WIN8: u32 = 1538; +pub const _WIN32_WINNT_WINBLUE: u32 = 1539; +pub const _WIN32_WINNT_WINTHRESHOLD: u32 = 2560; +pub const _WIN32_WINNT_WIN10: u32 = 2560; +pub const _WIN32_IE_IE20: u32 = 512; +pub const _WIN32_IE_IE30: u32 = 768; +pub const _WIN32_IE_IE302: u32 = 770; +pub const _WIN32_IE_IE40: u32 = 1024; +pub const _WIN32_IE_IE401: u32 = 1025; +pub const _WIN32_IE_IE50: u32 = 1280; +pub const _WIN32_IE_IE501: u32 = 1281; +pub const _WIN32_IE_IE55: u32 = 1360; +pub const _WIN32_IE_IE60: u32 = 1536; +pub const _WIN32_IE_IE60SP1: u32 = 1537; +pub const _WIN32_IE_IE60SP2: u32 = 1539; +pub const _WIN32_IE_IE70: u32 = 1792; +pub const _WIN32_IE_IE80: u32 = 2048; +pub const _WIN32_IE_IE90: u32 = 2304; +pub const _WIN32_IE_IE100: u32 = 2560; +pub const _WIN32_IE_IE110: u32 = 2560; +pub const _WIN32_IE_NT4: u32 = 512; +pub const _WIN32_IE_NT4SP1: u32 = 512; +pub const _WIN32_IE_NT4SP2: u32 = 512; +pub const _WIN32_IE_NT4SP3: u32 = 770; +pub const _WIN32_IE_NT4SP4: u32 = 1025; +pub const _WIN32_IE_NT4SP5: u32 = 1025; +pub const _WIN32_IE_NT4SP6: u32 = 1280; +pub const _WIN32_IE_WIN98: u32 = 1025; +pub const _WIN32_IE_WIN98SE: u32 = 1280; +pub const _WIN32_IE_WINME: u32 = 1360; +pub const _WIN32_IE_WIN2K: u32 = 1281; +pub const _WIN32_IE_WIN2KSP1: u32 = 1281; +pub const _WIN32_IE_WIN2KSP2: u32 = 1281; +pub const _WIN32_IE_WIN2KSP3: u32 = 1281; +pub const _WIN32_IE_WIN2KSP4: u32 = 1281; +pub const _WIN32_IE_XP: u32 = 1536; +pub const _WIN32_IE_XPSP1: u32 = 1537; +pub const _WIN32_IE_XPSP2: u32 = 1539; +pub const _WIN32_IE_WS03: u32 = 1538; +pub const _WIN32_IE_WS03SP1: u32 = 1539; +pub const _WIN32_IE_WIN6: u32 = 1792; +pub const _WIN32_IE_LONGHORN: u32 = 1792; +pub const _WIN32_IE_WIN7: u32 = 2048; +pub const _WIN32_IE_WIN8: u32 = 2560; +pub const _WIN32_IE_WINBLUE: u32 = 2560; +pub const _WIN32_IE_WINTHRESHOLD: u32 = 2560; +pub const _WIN32_IE_WIN10: u32 = 2560; +pub const NTDDI_WIN4: u32 = 67108864; +pub const NTDDI_WIN2K: u32 = 83886080; +pub const NTDDI_WIN2KSP1: u32 = 83886336; +pub const NTDDI_WIN2KSP2: u32 = 83886592; +pub const NTDDI_WIN2KSP3: u32 = 83886848; +pub const NTDDI_WIN2KSP4: u32 = 83887104; +pub const NTDDI_WINXP: u32 = 83951616; +pub const NTDDI_WINXPSP1: u32 = 83951872; +pub const NTDDI_WINXPSP2: u32 = 83952128; +pub const NTDDI_WINXPSP3: u32 = 83952384; +pub const NTDDI_WINXPSP4: u32 = 83952640; +pub const NTDDI_WS03: u32 = 84017152; +pub const NTDDI_WS03SP1: u32 = 84017408; +pub const NTDDI_WS03SP2: u32 = 84017664; +pub const NTDDI_WS03SP3: u32 = 84017920; +pub const NTDDI_WS03SP4: u32 = 84018176; +pub const NTDDI_WIN6: u32 = 100663296; +pub const NTDDI_WIN6SP1: u32 = 100663552; +pub const NTDDI_WIN6SP2: u32 = 100663808; +pub const NTDDI_WIN6SP3: u32 = 100664064; +pub const NTDDI_WIN6SP4: u32 = 100664320; +pub const NTDDI_VISTA: u32 = 100663296; +pub const NTDDI_VISTASP1: u32 = 100663552; +pub const NTDDI_VISTASP2: u32 = 100663808; +pub const NTDDI_VISTASP3: u32 = 100664064; +pub const NTDDI_VISTASP4: u32 = 100664320; +pub const NTDDI_LONGHORN: u32 = 100663296; +pub const NTDDI_WS08: u32 = 100663552; +pub const NTDDI_WS08SP2: u32 = 100663808; +pub const NTDDI_WS08SP3: u32 = 100664064; +pub const NTDDI_WS08SP4: u32 = 100664320; +pub const NTDDI_WIN7: u32 = 100728832; +pub const NTDDI_WIN8: u32 = 100794368; +pub const NTDDI_WINBLUE: u32 = 100859904; +pub const NTDDI_WINTHRESHOLD: u32 = 167772160; +pub const NTDDI_WIN10: u32 = 167772160; +pub const NTDDI_WIN10_TH2: u32 = 167772161; +pub const NTDDI_WIN10_RS1: u32 = 167772162; +pub const NTDDI_WIN10_RS2: u32 = 167772163; +pub const NTDDI_WIN10_RS3: u32 = 167772164; +pub const NTDDI_WIN10_RS4: u32 = 167772165; +pub const NTDDI_WIN10_RS5: u32 = 167772166; +pub const NTDDI_WIN10_19H1: u32 = 167772167; +pub const NTDDI_WIN10_VB: u32 = 167772168; +pub const NTDDI_WIN10_MN: u32 = 167772169; +pub const NTDDI_WIN10_FE: u32 = 167772170; +pub const NTDDI_WIN10_CO: u32 = 167772171; +pub const NTDDI_WIN10_NI: u32 = 167772172; +pub const WDK_NTDDI_VERSION: u32 = 167772172; +pub const OSVERSION_MASK: u32 = 4294901760; +pub const SPVERSION_MASK: u32 = 65280; +pub const SUBVERSION_MASK: u32 = 255; +pub const _WIN32_WINNT: u32 = 2560; +pub const NTDDI_VERSION: u32 = 167772172; +pub const WINVER: u32 = 2560; +pub const _WIN32_IE: u32 = 2560; +pub const _VCRT_COMPILER_PREPROCESSOR: u32 = 1; +pub const _SAL_VERSION: u32 = 20; +pub const __SAL_H_VERSION: u32 = 180000000; +pub const _USE_DECLSPECS_FOR_SAL: u32 = 0; +pub const _USE_ATTRIBUTES_FOR_SAL: u32 = 0; +pub const _CRT_PACKING: u32 = 8; +pub const _HAS_EXCEPTIONS: u32 = 1; +pub const _STL_LANG: u32 = 0; +pub const _HAS_CXX17: u32 = 0; +pub const _HAS_CXX20: u32 = 0; +pub const _HAS_CXX23: u32 = 0; +pub const _HAS_NODISCARD: u32 = 0; +pub const EXCEPTION_EXECUTE_HANDLER: u32 = 1; +pub const EXCEPTION_CONTINUE_SEARCH: u32 = 0; +pub const EXCEPTION_CONTINUE_EXECUTION: i32 = -1; +pub const __SAL_H_FULL_VER: u32 = 140050727; +pub const __SPECSTRINGS_STRICT_LEVEL: u32 = 1; +pub const __drv_typeConst: u32 = 0; +pub const __drv_typeCond: u32 = 1; +pub const __drv_typeBitset: u32 = 2; +pub const __drv_typeExpr: u32 = 3; +pub const STRICT: u32 = 1; +pub const MAX_PATH: u32 = 260; +pub const FALSE: u32 = 0; +pub const TRUE: u32 = 1; +pub const _ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE: u32 = 1; +pub const _CRT_BUILD_DESKTOP_APP: u32 = 1; +pub const _ARGMAX: u32 = 100; +pub const _CRT_INT_MAX: u32 = 2147483647; +pub const _CRT_FUNCTIONS_REQUIRED: u32 = 1; +pub const _CRT_HAS_CXX17: u32 = 0; +pub const _CRT_HAS_C11: u32 = 1; +pub const _CRT_INTERNAL_NONSTDC_NAMES: u32 = 1; +pub const __STDC_SECURE_LIB__: u32 = 200411; +pub const __GOT_SECURE_LIB__: u32 = 200411; +pub const __STDC_WANT_SECURE_LIB__: u32 = 1; +pub const _SECURECRT_FILL_BUFFER_PATTERN: u32 = 254; +pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES: u32 = 0; +pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT: u32 = 0; +pub const _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES: u32 = 1; +pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY: u32 = 0; +pub const _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY: u32 = 0; +pub const _UPPER: u32 = 1; +pub const _LOWER: u32 = 2; +pub const _DIGIT: u32 = 4; +pub const _SPACE: u32 = 8; +pub const _PUNCT: u32 = 16; +pub const _CONTROL: u32 = 32; +pub const _BLANK: u32 = 64; +pub const _HEX: u32 = 128; +pub const _LEADBYTE: u32 = 32768; +pub const _ALPHA: u32 = 259; +pub const ANYSIZE_ARRAY: u32 = 1; +pub const DISPATCH_LEVEL: u32 = 2; +pub const APC_LEVEL: u32 = 1; +pub const PASSIVE_LEVEL: u32 = 0; +pub const HIGH_LEVEL: u32 = 15; +pub const MEMORY_ALLOCATION_ALIGNMENT: u32 = 16; +pub const X86_CACHE_ALIGNMENT_SIZE: u32 = 64; +pub const ARM_CACHE_ALIGNMENT_SIZE: u32 = 128; +pub const SYSTEM_CACHE_ALIGNMENT_SIZE: u32 = 64; +pub const PRAGMA_DEPRECATED_DDK: u32 = 0; +pub const UCSCHAR_INVALID_CHARACTER: u32 = 4294967295; +pub const MIN_UCSCHAR: u32 = 0; +pub const MAX_UCSCHAR: u32 = 1114111; +pub const ALL_PROCESSOR_GROUPS: u32 = 65535; +pub const MAXIMUM_PROC_PER_GROUP: u32 = 64; +pub const MAXIMUM_PROCESSORS: u32 = 64; +pub const APPLICATION_ERROR_MASK: u32 = 536870912; +pub const ERROR_SEVERITY_SUCCESS: u32 = 0; +pub const ERROR_SEVERITY_INFORMATIONAL: u32 = 1073741824; +pub const ERROR_SEVERITY_WARNING: u32 = 2147483648; +pub const ERROR_SEVERITY_ERROR: u32 = 3221225472; +pub const MAXLONGLONG: u64 = 9223372036854775807; +pub const UNICODE_STRING_MAX_CHARS: u32 = 32767; +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const EDEADLK: u32 = 36; +pub const ENAMETOOLONG: u32 = 38; +pub const ENOLCK: u32 = 39; +pub const ENOSYS: u32 = 40; +pub const ENOTEMPTY: u32 = 41; +pub const EINVAL: u32 = 22; +pub const ERANGE: u32 = 34; +pub const EILSEQ: u32 = 42; +pub const STRUNCATE: u32 = 80; +pub const EDEADLOCK: u32 = 36; +pub const EADDRINUSE: u32 = 100; +pub const EADDRNOTAVAIL: u32 = 101; +pub const EAFNOSUPPORT: u32 = 102; +pub const EALREADY: u32 = 103; +pub const EBADMSG: u32 = 104; +pub const ECANCELED: u32 = 105; +pub const ECONNABORTED: u32 = 106; +pub const ECONNREFUSED: u32 = 107; +pub const ECONNRESET: u32 = 108; +pub const EDESTADDRREQ: u32 = 109; +pub const EHOSTUNREACH: u32 = 110; +pub const EIDRM: u32 = 111; +pub const EINPROGRESS: u32 = 112; +pub const EISCONN: u32 = 113; +pub const ELOOP: u32 = 114; +pub const EMSGSIZE: u32 = 115; +pub const ENETDOWN: u32 = 116; +pub const ENETRESET: u32 = 117; +pub const ENETUNREACH: u32 = 118; +pub const ENOBUFS: u32 = 119; +pub const ENODATA: u32 = 120; +pub const ENOLINK: u32 = 121; +pub const ENOMSG: u32 = 122; +pub const ENOPROTOOPT: u32 = 123; +pub const ENOSR: u32 = 124; +pub const ENOSTR: u32 = 125; +pub const ENOTCONN: u32 = 126; +pub const ENOTRECOVERABLE: u32 = 127; +pub const ENOTSOCK: u32 = 128; +pub const ENOTSUP: u32 = 129; +pub const EOPNOTSUPP: u32 = 130; +pub const EOTHER: u32 = 131; +pub const EOVERFLOW: u32 = 132; +pub const EOWNERDEAD: u32 = 133; +pub const EPROTO: u32 = 134; +pub const EPROTONOSUPPORT: u32 = 135; +pub const EPROTOTYPE: u32 = 136; +pub const ETIME: u32 = 137; +pub const ETIMEDOUT: u32 = 138; +pub const ETXTBSY: u32 = 139; +pub const EWOULDBLOCK: u32 = 140; +pub const _NLSCMPERROR: u32 = 2147483647; +pub const MINCHAR: u32 = 128; +pub const MAXCHAR: u32 = 127; +pub const MINSHORT: u32 = 32768; +pub const MAXSHORT: u32 = 32767; +pub const MINLONG: u32 = 2147483648; +pub const MAXLONG: u32 = 2147483647; +pub const MAXBYTE: u32 = 255; +pub const MAXWORD: u32 = 65535; +pub const MAXDWORD: u32 = 4294967295; +pub const ENCLAVE_SHORT_ID_LENGTH: u32 = 16; +pub const ENCLAVE_LONG_ID_LENGTH: u32 = 32; +pub const VER_SERVER_NT: u32 = 2147483648; +pub const VER_WORKSTATION_NT: u32 = 1073741824; +pub const VER_SUITE_SMALLBUSINESS: u32 = 1; +pub const VER_SUITE_ENTERPRISE: u32 = 2; +pub const VER_SUITE_BACKOFFICE: u32 = 4; +pub const VER_SUITE_COMMUNICATIONS: u32 = 8; +pub const VER_SUITE_TERMINAL: u32 = 16; +pub const VER_SUITE_SMALLBUSINESS_RESTRICTED: u32 = 32; +pub const VER_SUITE_EMBEDDEDNT: u32 = 64; +pub const VER_SUITE_DATACENTER: u32 = 128; +pub const VER_SUITE_SINGLEUSERTS: u32 = 256; +pub const VER_SUITE_PERSONAL: u32 = 512; +pub const VER_SUITE_BLADE: u32 = 1024; +pub const VER_SUITE_EMBEDDED_RESTRICTED: u32 = 2048; +pub const VER_SUITE_SECURITY_APPLIANCE: u32 = 4096; +pub const VER_SUITE_STORAGE_SERVER: u32 = 8192; +pub const VER_SUITE_COMPUTE_SERVER: u32 = 16384; +pub const VER_SUITE_WH_SERVER: u32 = 32768; +pub const VER_SUITE_MULTIUSERTS: u32 = 131072; +pub const PRODUCT_UNDEFINED: u32 = 0; +pub const PRODUCT_ULTIMATE: u32 = 1; +pub const PRODUCT_HOME_BASIC: u32 = 2; +pub const PRODUCT_HOME_PREMIUM: u32 = 3; +pub const PRODUCT_ENTERPRISE: u32 = 4; +pub const PRODUCT_HOME_BASIC_N: u32 = 5; +pub const PRODUCT_BUSINESS: u32 = 6; +pub const PRODUCT_STANDARD_SERVER: u32 = 7; +pub const PRODUCT_DATACENTER_SERVER: u32 = 8; +pub const PRODUCT_SMALLBUSINESS_SERVER: u32 = 9; +pub const PRODUCT_ENTERPRISE_SERVER: u32 = 10; +pub const PRODUCT_STARTER: u32 = 11; +pub const PRODUCT_DATACENTER_SERVER_CORE: u32 = 12; +pub const PRODUCT_STANDARD_SERVER_CORE: u32 = 13; +pub const PRODUCT_ENTERPRISE_SERVER_CORE: u32 = 14; +pub const PRODUCT_ENTERPRISE_SERVER_IA64: u32 = 15; +pub const PRODUCT_BUSINESS_N: u32 = 16; +pub const PRODUCT_WEB_SERVER: u32 = 17; +pub const PRODUCT_CLUSTER_SERVER: u32 = 18; +pub const PRODUCT_HOME_SERVER: u32 = 19; +pub const PRODUCT_STORAGE_EXPRESS_SERVER: u32 = 20; +pub const PRODUCT_STORAGE_STANDARD_SERVER: u32 = 21; +pub const PRODUCT_STORAGE_WORKGROUP_SERVER: u32 = 22; +pub const PRODUCT_STORAGE_ENTERPRISE_SERVER: u32 = 23; +pub const PRODUCT_SERVER_FOR_SMALLBUSINESS: u32 = 24; +pub const PRODUCT_SMALLBUSINESS_SERVER_PREMIUM: u32 = 25; +pub const PRODUCT_HOME_PREMIUM_N: u32 = 26; +pub const PRODUCT_ENTERPRISE_N: u32 = 27; +pub const PRODUCT_ULTIMATE_N: u32 = 28; +pub const PRODUCT_WEB_SERVER_CORE: u32 = 29; +pub const PRODUCT_MEDIUMBUSINESS_SERVER_MANAGEMENT: u32 = 30; +pub const PRODUCT_MEDIUMBUSINESS_SERVER_SECURITY: u32 = 31; +pub const PRODUCT_MEDIUMBUSINESS_SERVER_MESSAGING: u32 = 32; +pub const PRODUCT_SERVER_FOUNDATION: u32 = 33; +pub const PRODUCT_HOME_PREMIUM_SERVER: u32 = 34; +pub const PRODUCT_SERVER_FOR_SMALLBUSINESS_V: u32 = 35; +pub const PRODUCT_STANDARD_SERVER_V: u32 = 36; +pub const PRODUCT_DATACENTER_SERVER_V: u32 = 37; +pub const PRODUCT_ENTERPRISE_SERVER_V: u32 = 38; +pub const PRODUCT_DATACENTER_SERVER_CORE_V: u32 = 39; +pub const PRODUCT_STANDARD_SERVER_CORE_V: u32 = 40; +pub const PRODUCT_ENTERPRISE_SERVER_CORE_V: u32 = 41; +pub const PRODUCT_HYPERV: u32 = 42; +pub const PRODUCT_STORAGE_EXPRESS_SERVER_CORE: u32 = 43; +pub const PRODUCT_STORAGE_STANDARD_SERVER_CORE: u32 = 44; +pub const PRODUCT_STORAGE_WORKGROUP_SERVER_CORE: u32 = 45; +pub const PRODUCT_STORAGE_ENTERPRISE_SERVER_CORE: u32 = 46; +pub const PRODUCT_STARTER_N: u32 = 47; +pub const PRODUCT_PROFESSIONAL: u32 = 48; +pub const PRODUCT_PROFESSIONAL_N: u32 = 49; +pub const PRODUCT_SB_SOLUTION_SERVER: u32 = 50; +pub const PRODUCT_SERVER_FOR_SB_SOLUTIONS: u32 = 51; +pub const PRODUCT_STANDARD_SERVER_SOLUTIONS: u32 = 52; +pub const PRODUCT_STANDARD_SERVER_SOLUTIONS_CORE: u32 = 53; +pub const PRODUCT_SB_SOLUTION_SERVER_EM: u32 = 54; +pub const PRODUCT_SERVER_FOR_SB_SOLUTIONS_EM: u32 = 55; +pub const PRODUCT_SOLUTION_EMBEDDEDSERVER: u32 = 56; +pub const PRODUCT_SOLUTION_EMBEDDEDSERVER_CORE: u32 = 57; +pub const PRODUCT_PROFESSIONAL_EMBEDDED: u32 = 58; +pub const PRODUCT_ESSENTIALBUSINESS_SERVER_MGMT: u32 = 59; +pub const PRODUCT_ESSENTIALBUSINESS_SERVER_ADDL: u32 = 60; +pub const PRODUCT_ESSENTIALBUSINESS_SERVER_MGMTSVC: u32 = 61; +pub const PRODUCT_ESSENTIALBUSINESS_SERVER_ADDLSVC: u32 = 62; +pub const PRODUCT_SMALLBUSINESS_SERVER_PREMIUM_CORE: u32 = 63; +pub const PRODUCT_CLUSTER_SERVER_V: u32 = 64; +pub const PRODUCT_EMBEDDED: u32 = 65; +pub const PRODUCT_STARTER_E: u32 = 66; +pub const PRODUCT_HOME_BASIC_E: u32 = 67; +pub const PRODUCT_HOME_PREMIUM_E: u32 = 68; +pub const PRODUCT_PROFESSIONAL_E: u32 = 69; +pub const PRODUCT_ENTERPRISE_E: u32 = 70; +pub const PRODUCT_ULTIMATE_E: u32 = 71; +pub const PRODUCT_ENTERPRISE_EVALUATION: u32 = 72; +pub const PRODUCT_MULTIPOINT_STANDARD_SERVER: u32 = 76; +pub const PRODUCT_MULTIPOINT_PREMIUM_SERVER: u32 = 77; +pub const PRODUCT_STANDARD_EVALUATION_SERVER: u32 = 79; +pub const PRODUCT_DATACENTER_EVALUATION_SERVER: u32 = 80; +pub const PRODUCT_ENTERPRISE_N_EVALUATION: u32 = 84; +pub const PRODUCT_EMBEDDED_AUTOMOTIVE: u32 = 85; +pub const PRODUCT_EMBEDDED_INDUSTRY_A: u32 = 86; +pub const PRODUCT_THINPC: u32 = 87; +pub const PRODUCT_EMBEDDED_A: u32 = 88; +pub const PRODUCT_EMBEDDED_INDUSTRY: u32 = 89; +pub const PRODUCT_EMBEDDED_E: u32 = 90; +pub const PRODUCT_EMBEDDED_INDUSTRY_E: u32 = 91; +pub const PRODUCT_EMBEDDED_INDUSTRY_A_E: u32 = 92; +pub const PRODUCT_STORAGE_WORKGROUP_EVALUATION_SERVER: u32 = 95; +pub const PRODUCT_STORAGE_STANDARD_EVALUATION_SERVER: u32 = 96; +pub const PRODUCT_CORE_ARM: u32 = 97; +pub const PRODUCT_CORE_N: u32 = 98; +pub const PRODUCT_CORE_COUNTRYSPECIFIC: u32 = 99; +pub const PRODUCT_CORE_SINGLELANGUAGE: u32 = 100; +pub const PRODUCT_CORE: u32 = 101; +pub const PRODUCT_PROFESSIONAL_WMC: u32 = 103; +pub const PRODUCT_EMBEDDED_INDUSTRY_EVAL: u32 = 105; +pub const PRODUCT_EMBEDDED_INDUSTRY_E_EVAL: u32 = 106; +pub const PRODUCT_EMBEDDED_EVAL: u32 = 107; +pub const PRODUCT_EMBEDDED_E_EVAL: u32 = 108; +pub const PRODUCT_NANO_SERVER: u32 = 109; +pub const PRODUCT_CLOUD_STORAGE_SERVER: u32 = 110; +pub const PRODUCT_CORE_CONNECTED: u32 = 111; +pub const PRODUCT_PROFESSIONAL_STUDENT: u32 = 112; +pub const PRODUCT_CORE_CONNECTED_N: u32 = 113; +pub const PRODUCT_PROFESSIONAL_STUDENT_N: u32 = 114; +pub const PRODUCT_CORE_CONNECTED_SINGLELANGUAGE: u32 = 115; +pub const PRODUCT_CORE_CONNECTED_COUNTRYSPECIFIC: u32 = 116; +pub const PRODUCT_CONNECTED_CAR: u32 = 117; +pub const PRODUCT_INDUSTRY_HANDHELD: u32 = 118; +pub const PRODUCT_PPI_PRO: u32 = 119; +pub const PRODUCT_ARM64_SERVER: u32 = 120; +pub const PRODUCT_EDUCATION: u32 = 121; +pub const PRODUCT_EDUCATION_N: u32 = 122; +pub const PRODUCT_IOTUAP: u32 = 123; +pub const PRODUCT_CLOUD_HOST_INFRASTRUCTURE_SERVER: u32 = 124; +pub const PRODUCT_ENTERPRISE_S: u32 = 125; +pub const PRODUCT_ENTERPRISE_S_N: u32 = 126; +pub const PRODUCT_PROFESSIONAL_S: u32 = 127; +pub const PRODUCT_PROFESSIONAL_S_N: u32 = 128; +pub const PRODUCT_ENTERPRISE_S_EVALUATION: u32 = 129; +pub const PRODUCT_ENTERPRISE_S_N_EVALUATION: u32 = 130; +pub const PRODUCT_HOLOGRAPHIC: u32 = 135; +pub const PRODUCT_HOLOGRAPHIC_BUSINESS: u32 = 136; +pub const PRODUCT_PRO_SINGLE_LANGUAGE: u32 = 138; +pub const PRODUCT_PRO_CHINA: u32 = 139; +pub const PRODUCT_ENTERPRISE_SUBSCRIPTION: u32 = 140; +pub const PRODUCT_ENTERPRISE_SUBSCRIPTION_N: u32 = 141; +pub const PRODUCT_DATACENTER_NANO_SERVER: u32 = 143; +pub const PRODUCT_STANDARD_NANO_SERVER: u32 = 144; +pub const PRODUCT_DATACENTER_A_SERVER_CORE: u32 = 145; +pub const PRODUCT_STANDARD_A_SERVER_CORE: u32 = 146; +pub const PRODUCT_DATACENTER_WS_SERVER_CORE: u32 = 147; +pub const PRODUCT_STANDARD_WS_SERVER_CORE: u32 = 148; +pub const PRODUCT_UTILITY_VM: u32 = 149; +pub const PRODUCT_DATACENTER_EVALUATION_SERVER_CORE: u32 = 159; +pub const PRODUCT_STANDARD_EVALUATION_SERVER_CORE: u32 = 160; +pub const PRODUCT_PRO_WORKSTATION: u32 = 161; +pub const PRODUCT_PRO_WORKSTATION_N: u32 = 162; +pub const PRODUCT_PRO_FOR_EDUCATION: u32 = 164; +pub const PRODUCT_PRO_FOR_EDUCATION_N: u32 = 165; +pub const PRODUCT_AZURE_SERVER_CORE: u32 = 168; +pub const PRODUCT_AZURE_NANO_SERVER: u32 = 169; +pub const PRODUCT_ENTERPRISEG: u32 = 171; +pub const PRODUCT_ENTERPRISEGN: u32 = 172; +pub const PRODUCT_SERVERRDSH: u32 = 175; +pub const PRODUCT_CLOUD: u32 = 178; +pub const PRODUCT_CLOUDN: u32 = 179; +pub const PRODUCT_HUBOS: u32 = 180; +pub const PRODUCT_ONECOREUPDATEOS: u32 = 182; +pub const PRODUCT_CLOUDE: u32 = 183; +pub const PRODUCT_IOTOS: u32 = 185; +pub const PRODUCT_CLOUDEN: u32 = 186; +pub const PRODUCT_IOTEDGEOS: u32 = 187; +pub const PRODUCT_IOTENTERPRISE: u32 = 188; +pub const PRODUCT_LITE: u32 = 189; +pub const PRODUCT_IOTENTERPRISES: u32 = 191; +pub const PRODUCT_XBOX_SYSTEMOS: u32 = 192; +pub const PRODUCT_XBOX_GAMEOS: u32 = 194; +pub const PRODUCT_XBOX_ERAOS: u32 = 195; +pub const PRODUCT_XBOX_DURANGOHOSTOS: u32 = 196; +pub const PRODUCT_XBOX_SCARLETTHOSTOS: u32 = 197; +pub const PRODUCT_XBOX_KEYSTONE: u32 = 198; +pub const PRODUCT_AZURE_SERVER_CLOUDHOST: u32 = 199; +pub const PRODUCT_AZURE_SERVER_CLOUDMOS: u32 = 200; +pub const PRODUCT_CLOUDEDITIONN: u32 = 202; +pub const PRODUCT_CLOUDEDITION: u32 = 203; +pub const PRODUCT_AZURESTACKHCI_SERVER_CORE: u32 = 406; +pub const PRODUCT_DATACENTER_SERVER_AZURE_EDITION: u32 = 407; +pub const PRODUCT_DATACENTER_SERVER_CORE_AZURE_EDITION: u32 = 408; +pub const PRODUCT_UNLICENSED: u32 = 2882382797; +pub const LANG_NEUTRAL: u32 = 0; +pub const LANG_INVARIANT: u32 = 127; +pub const LANG_AFRIKAANS: u32 = 54; +pub const LANG_ALBANIAN: u32 = 28; +pub const LANG_ALSATIAN: u32 = 132; +pub const LANG_AMHARIC: u32 = 94; +pub const LANG_ARABIC: u32 = 1; +pub const LANG_ARMENIAN: u32 = 43; +pub const LANG_ASSAMESE: u32 = 77; +pub const LANG_AZERI: u32 = 44; +pub const LANG_AZERBAIJANI: u32 = 44; +pub const LANG_BANGLA: u32 = 69; +pub const LANG_BASHKIR: u32 = 109; +pub const LANG_BASQUE: u32 = 45; +pub const LANG_BELARUSIAN: u32 = 35; +pub const LANG_BENGALI: u32 = 69; +pub const LANG_BRETON: u32 = 126; +pub const LANG_BOSNIAN: u32 = 26; +pub const LANG_BOSNIAN_NEUTRAL: u32 = 30746; +pub const LANG_BULGARIAN: u32 = 2; +pub const LANG_CATALAN: u32 = 3; +pub const LANG_CENTRAL_KURDISH: u32 = 146; +pub const LANG_CHEROKEE: u32 = 92; +pub const LANG_CHINESE: u32 = 4; +pub const LANG_CHINESE_SIMPLIFIED: u32 = 4; +pub const LANG_CHINESE_TRADITIONAL: u32 = 31748; +pub const LANG_CORSICAN: u32 = 131; +pub const LANG_CROATIAN: u32 = 26; +pub const LANG_CZECH: u32 = 5; +pub const LANG_DANISH: u32 = 6; +pub const LANG_DARI: u32 = 140; +pub const LANG_DIVEHI: u32 = 101; +pub const LANG_DUTCH: u32 = 19; +pub const LANG_ENGLISH: u32 = 9; +pub const LANG_ESTONIAN: u32 = 37; +pub const LANG_FAEROESE: u32 = 56; +pub const LANG_FARSI: u32 = 41; +pub const LANG_FILIPINO: u32 = 100; +pub const LANG_FINNISH: u32 = 11; +pub const LANG_FRENCH: u32 = 12; +pub const LANG_FRISIAN: u32 = 98; +pub const LANG_FULAH: u32 = 103; +pub const LANG_GALICIAN: u32 = 86; +pub const LANG_GEORGIAN: u32 = 55; +pub const LANG_GERMAN: u32 = 7; +pub const LANG_GREEK: u32 = 8; +pub const LANG_GREENLANDIC: u32 = 111; +pub const LANG_GUJARATI: u32 = 71; +pub const LANG_HAUSA: u32 = 104; +pub const LANG_HAWAIIAN: u32 = 117; +pub const LANG_HEBREW: u32 = 13; +pub const LANG_HINDI: u32 = 57; +pub const LANG_HUNGARIAN: u32 = 14; +pub const LANG_ICELANDIC: u32 = 15; +pub const LANG_IGBO: u32 = 112; +pub const LANG_INDONESIAN: u32 = 33; +pub const LANG_INUKTITUT: u32 = 93; +pub const LANG_IRISH: u32 = 60; +pub const LANG_ITALIAN: u32 = 16; +pub const LANG_JAPANESE: u32 = 17; +pub const LANG_KANNADA: u32 = 75; +pub const LANG_KASHMIRI: u32 = 96; +pub const LANG_KAZAK: u32 = 63; +pub const LANG_KHMER: u32 = 83; +pub const LANG_KICHE: u32 = 134; +pub const LANG_KINYARWANDA: u32 = 135; +pub const LANG_KONKANI: u32 = 87; +pub const LANG_KOREAN: u32 = 18; +pub const LANG_KYRGYZ: u32 = 64; +pub const LANG_LAO: u32 = 84; +pub const LANG_LATVIAN: u32 = 38; +pub const LANG_LITHUANIAN: u32 = 39; +pub const LANG_LOWER_SORBIAN: u32 = 46; +pub const LANG_LUXEMBOURGISH: u32 = 110; +pub const LANG_MACEDONIAN: u32 = 47; +pub const LANG_MALAY: u32 = 62; +pub const LANG_MALAYALAM: u32 = 76; +pub const LANG_MALTESE: u32 = 58; +pub const LANG_MANIPURI: u32 = 88; +pub const LANG_MAORI: u32 = 129; +pub const LANG_MAPUDUNGUN: u32 = 122; +pub const LANG_MARATHI: u32 = 78; +pub const LANG_MOHAWK: u32 = 124; +pub const LANG_MONGOLIAN: u32 = 80; +pub const LANG_NEPALI: u32 = 97; +pub const LANG_NORWEGIAN: u32 = 20; +pub const LANG_OCCITAN: u32 = 130; +pub const LANG_ODIA: u32 = 72; +pub const LANG_ORIYA: u32 = 72; +pub const LANG_PASHTO: u32 = 99; +pub const LANG_PERSIAN: u32 = 41; +pub const LANG_POLISH: u32 = 21; +pub const LANG_PORTUGUESE: u32 = 22; +pub const LANG_PULAR: u32 = 103; +pub const LANG_PUNJABI: u32 = 70; +pub const LANG_QUECHUA: u32 = 107; +pub const LANG_ROMANIAN: u32 = 24; +pub const LANG_ROMANSH: u32 = 23; +pub const LANG_RUSSIAN: u32 = 25; +pub const LANG_SAKHA: u32 = 133; +pub const LANG_SAMI: u32 = 59; +pub const LANG_SANSKRIT: u32 = 79; +pub const LANG_SCOTTISH_GAELIC: u32 = 145; +pub const LANG_SERBIAN: u32 = 26; +pub const LANG_SERBIAN_NEUTRAL: u32 = 31770; +pub const LANG_SINDHI: u32 = 89; +pub const LANG_SINHALESE: u32 = 91; +pub const LANG_SLOVAK: u32 = 27; +pub const LANG_SLOVENIAN: u32 = 36; +pub const LANG_SOTHO: u32 = 108; +pub const LANG_SPANISH: u32 = 10; +pub const LANG_SWAHILI: u32 = 65; +pub const LANG_SWEDISH: u32 = 29; +pub const LANG_SYRIAC: u32 = 90; +pub const LANG_TAJIK: u32 = 40; +pub const LANG_TAMAZIGHT: u32 = 95; +pub const LANG_TAMIL: u32 = 73; +pub const LANG_TATAR: u32 = 68; +pub const LANG_TELUGU: u32 = 74; +pub const LANG_THAI: u32 = 30; +pub const LANG_TIBETAN: u32 = 81; +pub const LANG_TIGRIGNA: u32 = 115; +pub const LANG_TIGRINYA: u32 = 115; +pub const LANG_TSWANA: u32 = 50; +pub const LANG_TURKISH: u32 = 31; +pub const LANG_TURKMEN: u32 = 66; +pub const LANG_UIGHUR: u32 = 128; +pub const LANG_UKRAINIAN: u32 = 34; +pub const LANG_UPPER_SORBIAN: u32 = 46; +pub const LANG_URDU: u32 = 32; +pub const LANG_UZBEK: u32 = 67; +pub const LANG_VALENCIAN: u32 = 3; +pub const LANG_VIETNAMESE: u32 = 42; +pub const LANG_WELSH: u32 = 82; +pub const LANG_WOLOF: u32 = 136; +pub const LANG_XHOSA: u32 = 52; +pub const LANG_YAKUT: u32 = 133; +pub const LANG_YI: u32 = 120; +pub const LANG_YORUBA: u32 = 106; +pub const LANG_ZULU: u32 = 53; +pub const SUBLANG_NEUTRAL: u32 = 0; +pub const SUBLANG_DEFAULT: u32 = 1; +pub const SUBLANG_SYS_DEFAULT: u32 = 2; +pub const SUBLANG_CUSTOM_DEFAULT: u32 = 3; +pub const SUBLANG_CUSTOM_UNSPECIFIED: u32 = 4; +pub const SUBLANG_UI_CUSTOM_DEFAULT: u32 = 5; +pub const SUBLANG_AFRIKAANS_SOUTH_AFRICA: u32 = 1; +pub const SUBLANG_ALBANIAN_ALBANIA: u32 = 1; +pub const SUBLANG_ALSATIAN_FRANCE: u32 = 1; +pub const SUBLANG_AMHARIC_ETHIOPIA: u32 = 1; +pub const SUBLANG_ARABIC_SAUDI_ARABIA: u32 = 1; +pub const SUBLANG_ARABIC_IRAQ: u32 = 2; +pub const SUBLANG_ARABIC_EGYPT: u32 = 3; +pub const SUBLANG_ARABIC_LIBYA: u32 = 4; +pub const SUBLANG_ARABIC_ALGERIA: u32 = 5; +pub const SUBLANG_ARABIC_MOROCCO: u32 = 6; +pub const SUBLANG_ARABIC_TUNISIA: u32 = 7; +pub const SUBLANG_ARABIC_OMAN: u32 = 8; +pub const SUBLANG_ARABIC_YEMEN: u32 = 9; +pub const SUBLANG_ARABIC_SYRIA: u32 = 10; +pub const SUBLANG_ARABIC_JORDAN: u32 = 11; +pub const SUBLANG_ARABIC_LEBANON: u32 = 12; +pub const SUBLANG_ARABIC_KUWAIT: u32 = 13; +pub const SUBLANG_ARABIC_UAE: u32 = 14; +pub const SUBLANG_ARABIC_BAHRAIN: u32 = 15; +pub const SUBLANG_ARABIC_QATAR: u32 = 16; +pub const SUBLANG_ARMENIAN_ARMENIA: u32 = 1; +pub const SUBLANG_ASSAMESE_INDIA: u32 = 1; +pub const SUBLANG_AZERI_LATIN: u32 = 1; +pub const SUBLANG_AZERI_CYRILLIC: u32 = 2; +pub const SUBLANG_AZERBAIJANI_AZERBAIJAN_LATIN: u32 = 1; +pub const SUBLANG_AZERBAIJANI_AZERBAIJAN_CYRILLIC: u32 = 2; +pub const SUBLANG_BANGLA_INDIA: u32 = 1; +pub const SUBLANG_BANGLA_BANGLADESH: u32 = 2; +pub const SUBLANG_BASHKIR_RUSSIA: u32 = 1; +pub const SUBLANG_BASQUE_BASQUE: u32 = 1; +pub const SUBLANG_BELARUSIAN_BELARUS: u32 = 1; +pub const SUBLANG_BENGALI_INDIA: u32 = 1; +pub const SUBLANG_BENGALI_BANGLADESH: u32 = 2; +pub const SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN: u32 = 5; +pub const SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC: u32 = 8; +pub const SUBLANG_BRETON_FRANCE: u32 = 1; +pub const SUBLANG_BULGARIAN_BULGARIA: u32 = 1; +pub const SUBLANG_CATALAN_CATALAN: u32 = 1; +pub const SUBLANG_CENTRAL_KURDISH_IRAQ: u32 = 1; +pub const SUBLANG_CHEROKEE_CHEROKEE: u32 = 1; +pub const SUBLANG_CHINESE_TRADITIONAL: u32 = 1; +pub const SUBLANG_CHINESE_SIMPLIFIED: u32 = 2; +pub const SUBLANG_CHINESE_HONGKONG: u32 = 3; +pub const SUBLANG_CHINESE_SINGAPORE: u32 = 4; +pub const SUBLANG_CHINESE_MACAU: u32 = 5; +pub const SUBLANG_CORSICAN_FRANCE: u32 = 1; +pub const SUBLANG_CZECH_CZECH_REPUBLIC: u32 = 1; +pub const SUBLANG_CROATIAN_CROATIA: u32 = 1; +pub const SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN: u32 = 4; +pub const SUBLANG_DANISH_DENMARK: u32 = 1; +pub const SUBLANG_DARI_AFGHANISTAN: u32 = 1; +pub const SUBLANG_DIVEHI_MALDIVES: u32 = 1; +pub const SUBLANG_DUTCH: u32 = 1; +pub const SUBLANG_DUTCH_BELGIAN: u32 = 2; +pub const SUBLANG_ENGLISH_US: u32 = 1; +pub const SUBLANG_ENGLISH_UK: u32 = 2; +pub const SUBLANG_ENGLISH_AUS: u32 = 3; +pub const SUBLANG_ENGLISH_CAN: u32 = 4; +pub const SUBLANG_ENGLISH_NZ: u32 = 5; +pub const SUBLANG_ENGLISH_EIRE: u32 = 6; +pub const SUBLANG_ENGLISH_SOUTH_AFRICA: u32 = 7; +pub const SUBLANG_ENGLISH_JAMAICA: u32 = 8; +pub const SUBLANG_ENGLISH_CARIBBEAN: u32 = 9; +pub const SUBLANG_ENGLISH_BELIZE: u32 = 10; +pub const SUBLANG_ENGLISH_TRINIDAD: u32 = 11; +pub const SUBLANG_ENGLISH_ZIMBABWE: u32 = 12; +pub const SUBLANG_ENGLISH_PHILIPPINES: u32 = 13; +pub const SUBLANG_ENGLISH_INDIA: u32 = 16; +pub const SUBLANG_ENGLISH_MALAYSIA: u32 = 17; +pub const SUBLANG_ENGLISH_SINGAPORE: u32 = 18; +pub const SUBLANG_ESTONIAN_ESTONIA: u32 = 1; +pub const SUBLANG_FAEROESE_FAROE_ISLANDS: u32 = 1; +pub const SUBLANG_FILIPINO_PHILIPPINES: u32 = 1; +pub const SUBLANG_FINNISH_FINLAND: u32 = 1; +pub const SUBLANG_FRENCH: u32 = 1; +pub const SUBLANG_FRENCH_BELGIAN: u32 = 2; +pub const SUBLANG_FRENCH_CANADIAN: u32 = 3; +pub const SUBLANG_FRENCH_SWISS: u32 = 4; +pub const SUBLANG_FRENCH_LUXEMBOURG: u32 = 5; +pub const SUBLANG_FRENCH_MONACO: u32 = 6; +pub const SUBLANG_FRISIAN_NETHERLANDS: u32 = 1; +pub const SUBLANG_FULAH_SENEGAL: u32 = 2; +pub const SUBLANG_GALICIAN_GALICIAN: u32 = 1; +pub const SUBLANG_GEORGIAN_GEORGIA: u32 = 1; +pub const SUBLANG_GERMAN: u32 = 1; +pub const SUBLANG_GERMAN_SWISS: u32 = 2; +pub const SUBLANG_GERMAN_AUSTRIAN: u32 = 3; +pub const SUBLANG_GERMAN_LUXEMBOURG: u32 = 4; +pub const SUBLANG_GERMAN_LIECHTENSTEIN: u32 = 5; +pub const SUBLANG_GREEK_GREECE: u32 = 1; +pub const SUBLANG_GREENLANDIC_GREENLAND: u32 = 1; +pub const SUBLANG_GUJARATI_INDIA: u32 = 1; +pub const SUBLANG_HAUSA_NIGERIA_LATIN: u32 = 1; +pub const SUBLANG_HAWAIIAN_US: u32 = 1; +pub const SUBLANG_HEBREW_ISRAEL: u32 = 1; +pub const SUBLANG_HINDI_INDIA: u32 = 1; +pub const SUBLANG_HUNGARIAN_HUNGARY: u32 = 1; +pub const SUBLANG_ICELANDIC_ICELAND: u32 = 1; +pub const SUBLANG_IGBO_NIGERIA: u32 = 1; +pub const SUBLANG_INDONESIAN_INDONESIA: u32 = 1; +pub const SUBLANG_INUKTITUT_CANADA: u32 = 1; +pub const SUBLANG_INUKTITUT_CANADA_LATIN: u32 = 2; +pub const SUBLANG_IRISH_IRELAND: u32 = 2; +pub const SUBLANG_ITALIAN: u32 = 1; +pub const SUBLANG_ITALIAN_SWISS: u32 = 2; +pub const SUBLANG_JAPANESE_JAPAN: u32 = 1; +pub const SUBLANG_KANNADA_INDIA: u32 = 1; +pub const SUBLANG_KASHMIRI_SASIA: u32 = 2; +pub const SUBLANG_KASHMIRI_INDIA: u32 = 2; +pub const SUBLANG_KAZAK_KAZAKHSTAN: u32 = 1; +pub const SUBLANG_KHMER_CAMBODIA: u32 = 1; +pub const SUBLANG_KICHE_GUATEMALA: u32 = 1; +pub const SUBLANG_KINYARWANDA_RWANDA: u32 = 1; +pub const SUBLANG_KONKANI_INDIA: u32 = 1; +pub const SUBLANG_KOREAN: u32 = 1; +pub const SUBLANG_KYRGYZ_KYRGYZSTAN: u32 = 1; +pub const SUBLANG_LAO_LAO: u32 = 1; +pub const SUBLANG_LATVIAN_LATVIA: u32 = 1; +pub const SUBLANG_LITHUANIAN: u32 = 1; +pub const SUBLANG_LOWER_SORBIAN_GERMANY: u32 = 2; +pub const SUBLANG_LUXEMBOURGISH_LUXEMBOURG: u32 = 1; +pub const SUBLANG_MACEDONIAN_MACEDONIA: u32 = 1; +pub const SUBLANG_MALAY_MALAYSIA: u32 = 1; +pub const SUBLANG_MALAY_BRUNEI_DARUSSALAM: u32 = 2; +pub const SUBLANG_MALAYALAM_INDIA: u32 = 1; +pub const SUBLANG_MALTESE_MALTA: u32 = 1; +pub const SUBLANG_MAORI_NEW_ZEALAND: u32 = 1; +pub const SUBLANG_MAPUDUNGUN_CHILE: u32 = 1; +pub const SUBLANG_MARATHI_INDIA: u32 = 1; +pub const SUBLANG_MOHAWK_MOHAWK: u32 = 1; +pub const SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA: u32 = 1; +pub const SUBLANG_MONGOLIAN_PRC: u32 = 2; +pub const SUBLANG_NEPALI_INDIA: u32 = 2; +pub const SUBLANG_NEPALI_NEPAL: u32 = 1; +pub const SUBLANG_NORWEGIAN_BOKMAL: u32 = 1; +pub const SUBLANG_NORWEGIAN_NYNORSK: u32 = 2; +pub const SUBLANG_OCCITAN_FRANCE: u32 = 1; +pub const SUBLANG_ODIA_INDIA: u32 = 1; +pub const SUBLANG_ORIYA_INDIA: u32 = 1; +pub const SUBLANG_PASHTO_AFGHANISTAN: u32 = 1; +pub const SUBLANG_PERSIAN_IRAN: u32 = 1; +pub const SUBLANG_POLISH_POLAND: u32 = 1; +pub const SUBLANG_PORTUGUESE: u32 = 2; +pub const SUBLANG_PORTUGUESE_BRAZILIAN: u32 = 1; +pub const SUBLANG_PULAR_SENEGAL: u32 = 2; +pub const SUBLANG_PUNJABI_INDIA: u32 = 1; +pub const SUBLANG_PUNJABI_PAKISTAN: u32 = 2; +pub const SUBLANG_QUECHUA_BOLIVIA: u32 = 1; +pub const SUBLANG_QUECHUA_ECUADOR: u32 = 2; +pub const SUBLANG_QUECHUA_PERU: u32 = 3; +pub const SUBLANG_ROMANIAN_ROMANIA: u32 = 1; +pub const SUBLANG_ROMANSH_SWITZERLAND: u32 = 1; +pub const SUBLANG_RUSSIAN_RUSSIA: u32 = 1; +pub const SUBLANG_SAKHA_RUSSIA: u32 = 1; +pub const SUBLANG_SAMI_NORTHERN_NORWAY: u32 = 1; +pub const SUBLANG_SAMI_NORTHERN_SWEDEN: u32 = 2; +pub const SUBLANG_SAMI_NORTHERN_FINLAND: u32 = 3; +pub const SUBLANG_SAMI_LULE_NORWAY: u32 = 4; +pub const SUBLANG_SAMI_LULE_SWEDEN: u32 = 5; +pub const SUBLANG_SAMI_SOUTHERN_NORWAY: u32 = 6; +pub const SUBLANG_SAMI_SOUTHERN_SWEDEN: u32 = 7; +pub const SUBLANG_SAMI_SKOLT_FINLAND: u32 = 8; +pub const SUBLANG_SAMI_INARI_FINLAND: u32 = 9; +pub const SUBLANG_SANSKRIT_INDIA: u32 = 1; +pub const SUBLANG_SCOTTISH_GAELIC: u32 = 1; +pub const SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_LATIN: u32 = 6; +pub const SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_CYRILLIC: u32 = 7; +pub const SUBLANG_SERBIAN_MONTENEGRO_LATIN: u32 = 11; +pub const SUBLANG_SERBIAN_MONTENEGRO_CYRILLIC: u32 = 12; +pub const SUBLANG_SERBIAN_SERBIA_LATIN: u32 = 9; +pub const SUBLANG_SERBIAN_SERBIA_CYRILLIC: u32 = 10; +pub const SUBLANG_SERBIAN_CROATIA: u32 = 1; +pub const SUBLANG_SERBIAN_LATIN: u32 = 2; +pub const SUBLANG_SERBIAN_CYRILLIC: u32 = 3; +pub const SUBLANG_SINDHI_INDIA: u32 = 1; +pub const SUBLANG_SINDHI_PAKISTAN: u32 = 2; +pub const SUBLANG_SINDHI_AFGHANISTAN: u32 = 2; +pub const SUBLANG_SINHALESE_SRI_LANKA: u32 = 1; +pub const SUBLANG_SOTHO_NORTHERN_SOUTH_AFRICA: u32 = 1; +pub const SUBLANG_SLOVAK_SLOVAKIA: u32 = 1; +pub const SUBLANG_SLOVENIAN_SLOVENIA: u32 = 1; +pub const SUBLANG_SPANISH: u32 = 1; +pub const SUBLANG_SPANISH_MEXICAN: u32 = 2; +pub const SUBLANG_SPANISH_MODERN: u32 = 3; +pub const SUBLANG_SPANISH_GUATEMALA: u32 = 4; +pub const SUBLANG_SPANISH_COSTA_RICA: u32 = 5; +pub const SUBLANG_SPANISH_PANAMA: u32 = 6; +pub const SUBLANG_SPANISH_DOMINICAN_REPUBLIC: u32 = 7; +pub const SUBLANG_SPANISH_VENEZUELA: u32 = 8; +pub const SUBLANG_SPANISH_COLOMBIA: u32 = 9; +pub const SUBLANG_SPANISH_PERU: u32 = 10; +pub const SUBLANG_SPANISH_ARGENTINA: u32 = 11; +pub const SUBLANG_SPANISH_ECUADOR: u32 = 12; +pub const SUBLANG_SPANISH_CHILE: u32 = 13; +pub const SUBLANG_SPANISH_URUGUAY: u32 = 14; +pub const SUBLANG_SPANISH_PARAGUAY: u32 = 15; +pub const SUBLANG_SPANISH_BOLIVIA: u32 = 16; +pub const SUBLANG_SPANISH_EL_SALVADOR: u32 = 17; +pub const SUBLANG_SPANISH_HONDURAS: u32 = 18; +pub const SUBLANG_SPANISH_NICARAGUA: u32 = 19; +pub const SUBLANG_SPANISH_PUERTO_RICO: u32 = 20; +pub const SUBLANG_SPANISH_US: u32 = 21; +pub const SUBLANG_SWAHILI_KENYA: u32 = 1; +pub const SUBLANG_SWEDISH: u32 = 1; +pub const SUBLANG_SWEDISH_FINLAND: u32 = 2; +pub const SUBLANG_SYRIAC_SYRIA: u32 = 1; +pub const SUBLANG_TAJIK_TAJIKISTAN: u32 = 1; +pub const SUBLANG_TAMAZIGHT_ALGERIA_LATIN: u32 = 2; +pub const SUBLANG_TAMAZIGHT_MOROCCO_TIFINAGH: u32 = 4; +pub const SUBLANG_TAMIL_INDIA: u32 = 1; +pub const SUBLANG_TAMIL_SRI_LANKA: u32 = 2; +pub const SUBLANG_TATAR_RUSSIA: u32 = 1; +pub const SUBLANG_TELUGU_INDIA: u32 = 1; +pub const SUBLANG_THAI_THAILAND: u32 = 1; +pub const SUBLANG_TIBETAN_PRC: u32 = 1; +pub const SUBLANG_TIGRIGNA_ERITREA: u32 = 2; +pub const SUBLANG_TIGRINYA_ERITREA: u32 = 2; +pub const SUBLANG_TIGRINYA_ETHIOPIA: u32 = 1; +pub const SUBLANG_TSWANA_BOTSWANA: u32 = 2; +pub const SUBLANG_TSWANA_SOUTH_AFRICA: u32 = 1; +pub const SUBLANG_TURKISH_TURKEY: u32 = 1; +pub const SUBLANG_TURKMEN_TURKMENISTAN: u32 = 1; +pub const SUBLANG_UIGHUR_PRC: u32 = 1; +pub const SUBLANG_UKRAINIAN_UKRAINE: u32 = 1; +pub const SUBLANG_UPPER_SORBIAN_GERMANY: u32 = 1; +pub const SUBLANG_URDU_PAKISTAN: u32 = 1; +pub const SUBLANG_URDU_INDIA: u32 = 2; +pub const SUBLANG_UZBEK_LATIN: u32 = 1; +pub const SUBLANG_UZBEK_CYRILLIC: u32 = 2; +pub const SUBLANG_VALENCIAN_VALENCIA: u32 = 2; +pub const SUBLANG_VIETNAMESE_VIETNAM: u32 = 1; +pub const SUBLANG_WELSH_UNITED_KINGDOM: u32 = 1; +pub const SUBLANG_WOLOF_SENEGAL: u32 = 1; +pub const SUBLANG_XHOSA_SOUTH_AFRICA: u32 = 1; +pub const SUBLANG_YAKUT_RUSSIA: u32 = 1; +pub const SUBLANG_YI_PRC: u32 = 1; +pub const SUBLANG_YORUBA_NIGERIA: u32 = 1; +pub const SUBLANG_ZULU_SOUTH_AFRICA: u32 = 1; +pub const SORT_DEFAULT: u32 = 0; +pub const SORT_INVARIANT_MATH: u32 = 1; +pub const SORT_JAPANESE_XJIS: u32 = 0; +pub const SORT_JAPANESE_UNICODE: u32 = 1; +pub const SORT_JAPANESE_RADICALSTROKE: u32 = 4; +pub const SORT_CHINESE_BIG5: u32 = 0; +pub const SORT_CHINESE_PRCP: u32 = 0; +pub const SORT_CHINESE_UNICODE: u32 = 1; +pub const SORT_CHINESE_PRC: u32 = 2; +pub const SORT_CHINESE_BOPOMOFO: u32 = 3; +pub const SORT_CHINESE_RADICALSTROKE: u32 = 4; +pub const SORT_KOREAN_KSC: u32 = 0; +pub const SORT_KOREAN_UNICODE: u32 = 1; +pub const SORT_GERMAN_PHONE_BOOK: u32 = 1; +pub const SORT_HUNGARIAN_DEFAULT: u32 = 0; +pub const SORT_HUNGARIAN_TECHNICAL: u32 = 1; +pub const SORT_GEORGIAN_TRADITIONAL: u32 = 0; +pub const SORT_GEORGIAN_MODERN: u32 = 1; +pub const NLS_VALID_LOCALE_MASK: u32 = 1048575; +pub const LOCALE_NAME_MAX_LENGTH: u32 = 85; +pub const LOCALE_TRANSIENT_KEYBOARD1: u32 = 8192; +pub const LOCALE_TRANSIENT_KEYBOARD2: u32 = 9216; +pub const LOCALE_TRANSIENT_KEYBOARD3: u32 = 10240; +pub const LOCALE_TRANSIENT_KEYBOARD4: u32 = 11264; +pub const MAXIMUM_WAIT_OBJECTS: u32 = 64; +pub const MAXIMUM_SUSPEND_COUNT: u32 = 127; +pub const _MM_HINT_T0: u32 = 1; +pub const _MM_HINT_T1: u32 = 2; +pub const _MM_HINT_T2: u32 = 3; +pub const _MM_HINT_NTA: u32 = 0; +pub const PF_TEMPORAL_LEVEL_1: u32 = 1; +pub const PF_TEMPORAL_LEVEL_2: u32 = 2; +pub const PF_TEMPORAL_LEVEL_3: u32 = 3; +pub const PF_NON_TEMPORAL_LEVEL_ALL: u32 = 0; +pub const EXCEPTION_READ_FAULT: u32 = 0; +pub const EXCEPTION_WRITE_FAULT: u32 = 1; +pub const EXCEPTION_EXECUTE_FAULT: u32 = 8; +pub const CONTEXT_AMD64: u32 = 1048576; +pub const CONTEXT_CONTROL: u32 = 1048577; +pub const CONTEXT_INTEGER: u32 = 1048578; +pub const CONTEXT_SEGMENTS: u32 = 1048580; +pub const CONTEXT_FLOATING_POINT: u32 = 1048584; +pub const CONTEXT_DEBUG_REGISTERS: u32 = 1048592; +pub const CONTEXT_FULL: u32 = 1048587; +pub const CONTEXT_ALL: u32 = 1048607; +pub const CONTEXT_XSTATE: u32 = 1048640; +pub const CONTEXT_KERNEL_CET: u32 = 1048704; +pub const CONTEXT_EXCEPTION_ACTIVE: u32 = 134217728; +pub const CONTEXT_SERVICE_ACTIVE: u32 = 268435456; +pub const CONTEXT_EXCEPTION_REQUEST: u32 = 1073741824; +pub const CONTEXT_EXCEPTION_REPORTING: u32 = 2147483648; +pub const CONTEXT_UNWOUND_TO_CALL: u32 = 536870912; +pub const INITIAL_MXCSR: u32 = 8064; +pub const INITIAL_FPCSR: u32 = 639; +pub const RUNTIME_FUNCTION_INDIRECT: u32 = 1; +pub const UNW_FLAG_NHANDLER: u32 = 0; +pub const UNW_FLAG_EHANDLER: u32 = 1; +pub const UNW_FLAG_UHANDLER: u32 = 2; +pub const UNW_FLAG_CHAININFO: u32 = 4; +pub const UNW_FLAG_NO_EPILOGUE: u32 = 2147483648; +pub const UNWIND_CHAIN_LIMIT: u32 = 32; +pub const OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK_EXPORT_NAME: &[u8; 34] = + b"OutOfProcessFunctionTableCallback\0"; +pub const CONTEXT_ARM64: u32 = 4194304; +pub const CONTEXT_ARM64_CONTROL: u32 = 4194305; +pub const CONTEXT_ARM64_INTEGER: u32 = 4194306; +pub const CONTEXT_ARM64_FLOATING_POINT: u32 = 4194308; +pub const CONTEXT_ARM64_DEBUG_REGISTERS: u32 = 4194312; +pub const CONTEXT_ARM64_X18: u32 = 4194320; +pub const CONTEXT_ARM64_FULL: u32 = 4194311; +pub const CONTEXT_ARM64_ALL: u32 = 4194335; +pub const CONTEXT_ARM64_UNWOUND_TO_CALL: u32 = 536870912; +pub const CONTEXT_ARM64_RET_TO_GUEST: u32 = 67108864; +pub const ARM64_MAX_BREAKPOINTS: u32 = 8; +pub const ARM64_MAX_WATCHPOINTS: u32 = 2; +pub const NONVOL_INT_NUMREG_ARM64: u32 = 11; +pub const NONVOL_FP_NUMREG_ARM64: u32 = 8; +pub const WOW64_CONTEXT_i386: u32 = 65536; +pub const WOW64_CONTEXT_i486: u32 = 65536; +pub const WOW64_CONTEXT_CONTROL: u32 = 65537; +pub const WOW64_CONTEXT_INTEGER: u32 = 65538; +pub const WOW64_CONTEXT_SEGMENTS: u32 = 65540; +pub const WOW64_CONTEXT_FLOATING_POINT: u32 = 65544; +pub const WOW64_CONTEXT_DEBUG_REGISTERS: u32 = 65552; +pub const WOW64_CONTEXT_EXTENDED_REGISTERS: u32 = 65568; +pub const WOW64_CONTEXT_FULL: u32 = 65543; +pub const WOW64_CONTEXT_ALL: u32 = 65599; +pub const WOW64_CONTEXT_XSTATE: u32 = 65600; +pub const WOW64_CONTEXT_EXCEPTION_ACTIVE: u32 = 134217728; +pub const WOW64_CONTEXT_SERVICE_ACTIVE: u32 = 268435456; +pub const WOW64_CONTEXT_EXCEPTION_REQUEST: u32 = 1073741824; +pub const WOW64_CONTEXT_EXCEPTION_REPORTING: u32 = 2147483648; +pub const WOW64_SIZE_OF_80387_REGISTERS: u32 = 80; +pub const WOW64_MAXIMUM_SUPPORTED_EXTENSION: u32 = 512; +pub const EXCEPTION_NONCONTINUABLE: u32 = 1; +pub const EXCEPTION_UNWINDING: u32 = 2; +pub const EXCEPTION_EXIT_UNWIND: u32 = 4; +pub const EXCEPTION_STACK_INVALID: u32 = 8; +pub const EXCEPTION_NESTED_CALL: u32 = 16; +pub const EXCEPTION_TARGET_UNWIND: u32 = 32; +pub const EXCEPTION_COLLIDED_UNWIND: u32 = 64; +pub const EXCEPTION_SOFTWARE_ORIGINATE: u32 = 128; +pub const EXCEPTION_UNWIND: u32 = 102; +pub const EXCEPTION_MAXIMUM_PARAMETERS: u32 = 15; +pub const DELETE: u32 = 65536; +pub const READ_CONTROL: u32 = 131072; +pub const WRITE_DAC: u32 = 262144; +pub const WRITE_OWNER: u32 = 524288; +pub const SYNCHRONIZE: u32 = 1048576; +pub const STANDARD_RIGHTS_REQUIRED: u32 = 983040; +pub const STANDARD_RIGHTS_READ: u32 = 131072; +pub const STANDARD_RIGHTS_WRITE: u32 = 131072; +pub const STANDARD_RIGHTS_EXECUTE: u32 = 131072; +pub const STANDARD_RIGHTS_ALL: u32 = 2031616; +pub const SPECIFIC_RIGHTS_ALL: u32 = 65535; +pub const ACCESS_SYSTEM_SECURITY: u32 = 16777216; +pub const MAXIMUM_ALLOWED: u32 = 33554432; +pub const GENERIC_READ: u32 = 2147483648; +pub const GENERIC_WRITE: u32 = 1073741824; +pub const GENERIC_EXECUTE: u32 = 536870912; +pub const GENERIC_ALL: u32 = 268435456; +pub const SID_REVISION: u32 = 1; +pub const SID_MAX_SUB_AUTHORITIES: u32 = 15; +pub const SID_RECOMMENDED_SUB_AUTHORITIES: u32 = 1; +pub const SECURITY_MAX_SID_STRING_CHARACTERS: u32 = 187; +pub const SID_HASH_SIZE: u32 = 32; +pub const SECURITY_NULL_RID: u32 = 0; +pub const SECURITY_WORLD_RID: u32 = 0; +pub const SECURITY_LOCAL_RID: u32 = 0; +pub const SECURITY_LOCAL_LOGON_RID: u32 = 1; +pub const SECURITY_CREATOR_OWNER_RID: u32 = 0; +pub const SECURITY_CREATOR_GROUP_RID: u32 = 1; +pub const SECURITY_CREATOR_OWNER_SERVER_RID: u32 = 2; +pub const SECURITY_CREATOR_GROUP_SERVER_RID: u32 = 3; +pub const SECURITY_CREATOR_OWNER_RIGHTS_RID: u32 = 4; +pub const SECURITY_DIALUP_RID: u32 = 1; +pub const SECURITY_NETWORK_RID: u32 = 2; +pub const SECURITY_BATCH_RID: u32 = 3; +pub const SECURITY_INTERACTIVE_RID: u32 = 4; +pub const SECURITY_LOGON_IDS_RID: u32 = 5; +pub const SECURITY_LOGON_IDS_RID_COUNT: u32 = 3; +pub const SECURITY_SERVICE_RID: u32 = 6; +pub const SECURITY_ANONYMOUS_LOGON_RID: u32 = 7; +pub const SECURITY_PROXY_RID: u32 = 8; +pub const SECURITY_ENTERPRISE_CONTROLLERS_RID: u32 = 9; +pub const SECURITY_SERVER_LOGON_RID: u32 = 9; +pub const SECURITY_PRINCIPAL_SELF_RID: u32 = 10; +pub const SECURITY_AUTHENTICATED_USER_RID: u32 = 11; +pub const SECURITY_RESTRICTED_CODE_RID: u32 = 12; +pub const SECURITY_TERMINAL_SERVER_RID: u32 = 13; +pub const SECURITY_REMOTE_LOGON_RID: u32 = 14; +pub const SECURITY_THIS_ORGANIZATION_RID: u32 = 15; +pub const SECURITY_IUSER_RID: u32 = 17; +pub const SECURITY_LOCAL_SYSTEM_RID: u32 = 18; +pub const SECURITY_LOCAL_SERVICE_RID: u32 = 19; +pub const SECURITY_NETWORK_SERVICE_RID: u32 = 20; +pub const SECURITY_NT_NON_UNIQUE: u32 = 21; +pub const SECURITY_NT_NON_UNIQUE_SUB_AUTH_COUNT: u32 = 3; +pub const SECURITY_ENTERPRISE_READONLY_CONTROLLERS_RID: u32 = 22; +pub const SECURITY_BUILTIN_DOMAIN_RID: u32 = 32; +pub const SECURITY_WRITE_RESTRICTED_CODE_RID: u32 = 33; +pub const SECURITY_PACKAGE_BASE_RID: u32 = 64; +pub const SECURITY_PACKAGE_RID_COUNT: u32 = 2; +pub const SECURITY_PACKAGE_NTLM_RID: u32 = 10; +pub const SECURITY_PACKAGE_SCHANNEL_RID: u32 = 14; +pub const SECURITY_PACKAGE_DIGEST_RID: u32 = 21; +pub const SECURITY_CRED_TYPE_BASE_RID: u32 = 65; +pub const SECURITY_CRED_TYPE_RID_COUNT: u32 = 2; +pub const SECURITY_CRED_TYPE_THIS_ORG_CERT_RID: u32 = 1; +pub const SECURITY_MIN_BASE_RID: u32 = 80; +pub const SECURITY_SERVICE_ID_BASE_RID: u32 = 80; +pub const SECURITY_SERVICE_ID_RID_COUNT: u32 = 6; +pub const SECURITY_RESERVED_ID_BASE_RID: u32 = 81; +pub const SECURITY_APPPOOL_ID_BASE_RID: u32 = 82; +pub const SECURITY_APPPOOL_ID_RID_COUNT: u32 = 6; +pub const SECURITY_VIRTUALSERVER_ID_BASE_RID: u32 = 83; +pub const SECURITY_VIRTUALSERVER_ID_RID_COUNT: u32 = 6; +pub const SECURITY_USERMODEDRIVERHOST_ID_BASE_RID: u32 = 84; +pub const SECURITY_USERMODEDRIVERHOST_ID_RID_COUNT: u32 = 6; +pub const SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_BASE_RID: u32 = 85; +pub const SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_RID_COUNT: u32 = 6; +pub const SECURITY_WMIHOST_ID_BASE_RID: u32 = 86; +pub const SECURITY_WMIHOST_ID_RID_COUNT: u32 = 6; +pub const SECURITY_TASK_ID_BASE_RID: u32 = 87; +pub const SECURITY_NFS_ID_BASE_RID: u32 = 88; +pub const SECURITY_COM_ID_BASE_RID: u32 = 89; +pub const SECURITY_WINDOW_MANAGER_BASE_RID: u32 = 90; +pub const SECURITY_RDV_GFX_BASE_RID: u32 = 91; +pub const SECURITY_DASHOST_ID_BASE_RID: u32 = 92; +pub const SECURITY_DASHOST_ID_RID_COUNT: u32 = 6; +pub const SECURITY_USERMANAGER_ID_BASE_RID: u32 = 93; +pub const SECURITY_USERMANAGER_ID_RID_COUNT: u32 = 6; +pub const SECURITY_WINRM_ID_BASE_RID: u32 = 94; +pub const SECURITY_WINRM_ID_RID_COUNT: u32 = 6; +pub const SECURITY_CCG_ID_BASE_RID: u32 = 95; +pub const SECURITY_UMFD_BASE_RID: u32 = 96; +pub const SECURITY_VIRTUALACCOUNT_ID_RID_COUNT: u32 = 6; +pub const SECURITY_MAX_BASE_RID: u32 = 111; +pub const SECURITY_MAX_ALWAYS_FILTERED: u32 = 999; +pub const SECURITY_MIN_NEVER_FILTERED: u32 = 1000; +pub const SECURITY_OTHER_ORGANIZATION_RID: u32 = 1000; +pub const SECURITY_WINDOWSMOBILE_ID_BASE_RID: u32 = 112; +pub const SECURITY_INSTALLER_GROUP_CAPABILITY_BASE: u32 = 32; +pub const SECURITY_INSTALLER_GROUP_CAPABILITY_RID_COUNT: u32 = 9; +pub const SECURITY_INSTALLER_CAPABILITY_RID_COUNT: u32 = 10; +pub const SECURITY_LOCAL_ACCOUNT_RID: u32 = 113; +pub const SECURITY_LOCAL_ACCOUNT_AND_ADMIN_RID: u32 = 114; +pub const DOMAIN_GROUP_RID_AUTHORIZATION_DATA_IS_COMPOUNDED: u32 = 496; +pub const DOMAIN_GROUP_RID_AUTHORIZATION_DATA_CONTAINS_CLAIMS: u32 = 497; +pub const DOMAIN_GROUP_RID_ENTERPRISE_READONLY_DOMAIN_CONTROLLERS: u32 = 498; +pub const FOREST_USER_RID_MAX: u32 = 499; +pub const DOMAIN_USER_RID_ADMIN: u32 = 500; +pub const DOMAIN_USER_RID_GUEST: u32 = 501; +pub const DOMAIN_USER_RID_KRBTGT: u32 = 502; +pub const DOMAIN_USER_RID_DEFAULT_ACCOUNT: u32 = 503; +pub const DOMAIN_USER_RID_WDAG_ACCOUNT: u32 = 504; +pub const DOMAIN_USER_RID_MAX: u32 = 999; +pub const DOMAIN_GROUP_RID_ADMINS: u32 = 512; +pub const DOMAIN_GROUP_RID_USERS: u32 = 513; +pub const DOMAIN_GROUP_RID_GUESTS: u32 = 514; +pub const DOMAIN_GROUP_RID_COMPUTERS: u32 = 515; +pub const DOMAIN_GROUP_RID_CONTROLLERS: u32 = 516; +pub const DOMAIN_GROUP_RID_CERT_ADMINS: u32 = 517; +pub const DOMAIN_GROUP_RID_SCHEMA_ADMINS: u32 = 518; +pub const DOMAIN_GROUP_RID_ENTERPRISE_ADMINS: u32 = 519; +pub const DOMAIN_GROUP_RID_POLICY_ADMINS: u32 = 520; +pub const DOMAIN_GROUP_RID_READONLY_CONTROLLERS: u32 = 521; +pub const DOMAIN_GROUP_RID_CLONEABLE_CONTROLLERS: u32 = 522; +pub const DOMAIN_GROUP_RID_CDC_RESERVED: u32 = 524; +pub const DOMAIN_GROUP_RID_PROTECTED_USERS: u32 = 525; +pub const DOMAIN_GROUP_RID_KEY_ADMINS: u32 = 526; +pub const DOMAIN_GROUP_RID_ENTERPRISE_KEY_ADMINS: u32 = 527; +pub const DOMAIN_ALIAS_RID_ADMINS: u32 = 544; +pub const DOMAIN_ALIAS_RID_USERS: u32 = 545; +pub const DOMAIN_ALIAS_RID_GUESTS: u32 = 546; +pub const DOMAIN_ALIAS_RID_POWER_USERS: u32 = 547; +pub const DOMAIN_ALIAS_RID_ACCOUNT_OPS: u32 = 548; +pub const DOMAIN_ALIAS_RID_SYSTEM_OPS: u32 = 549; +pub const DOMAIN_ALIAS_RID_PRINT_OPS: u32 = 550; +pub const DOMAIN_ALIAS_RID_BACKUP_OPS: u32 = 551; +pub const DOMAIN_ALIAS_RID_REPLICATOR: u32 = 552; +pub const DOMAIN_ALIAS_RID_RAS_SERVERS: u32 = 553; +pub const DOMAIN_ALIAS_RID_PREW2KCOMPACCESS: u32 = 554; +pub const DOMAIN_ALIAS_RID_REMOTE_DESKTOP_USERS: u32 = 555; +pub const DOMAIN_ALIAS_RID_NETWORK_CONFIGURATION_OPS: u32 = 556; +pub const DOMAIN_ALIAS_RID_INCOMING_FOREST_TRUST_BUILDERS: u32 = 557; +pub const DOMAIN_ALIAS_RID_MONITORING_USERS: u32 = 558; +pub const DOMAIN_ALIAS_RID_LOGGING_USERS: u32 = 559; +pub const DOMAIN_ALIAS_RID_AUTHORIZATIONACCESS: u32 = 560; +pub const DOMAIN_ALIAS_RID_TS_LICENSE_SERVERS: u32 = 561; +pub const DOMAIN_ALIAS_RID_DCOM_USERS: u32 = 562; +pub const DOMAIN_ALIAS_RID_IUSERS: u32 = 568; +pub const DOMAIN_ALIAS_RID_CRYPTO_OPERATORS: u32 = 569; +pub const DOMAIN_ALIAS_RID_CACHEABLE_PRINCIPALS_GROUP: u32 = 571; +pub const DOMAIN_ALIAS_RID_NON_CACHEABLE_PRINCIPALS_GROUP: u32 = 572; +pub const DOMAIN_ALIAS_RID_EVENT_LOG_READERS_GROUP: u32 = 573; +pub const DOMAIN_ALIAS_RID_CERTSVC_DCOM_ACCESS_GROUP: u32 = 574; +pub const DOMAIN_ALIAS_RID_RDS_REMOTE_ACCESS_SERVERS: u32 = 575; +pub const DOMAIN_ALIAS_RID_RDS_ENDPOINT_SERVERS: u32 = 576; +pub const DOMAIN_ALIAS_RID_RDS_MANAGEMENT_SERVERS: u32 = 577; +pub const DOMAIN_ALIAS_RID_HYPER_V_ADMINS: u32 = 578; +pub const DOMAIN_ALIAS_RID_ACCESS_CONTROL_ASSISTANCE_OPS: u32 = 579; +pub const DOMAIN_ALIAS_RID_REMOTE_MANAGEMENT_USERS: u32 = 580; +pub const DOMAIN_ALIAS_RID_DEFAULT_ACCOUNT: u32 = 581; +pub const DOMAIN_ALIAS_RID_STORAGE_REPLICA_ADMINS: u32 = 582; +pub const DOMAIN_ALIAS_RID_DEVICE_OWNERS: u32 = 583; +pub const SECURITY_APP_PACKAGE_BASE_RID: u32 = 2; +pub const SECURITY_BUILTIN_APP_PACKAGE_RID_COUNT: u32 = 2; +pub const SECURITY_APP_PACKAGE_RID_COUNT: u32 = 8; +pub const SECURITY_CAPABILITY_BASE_RID: u32 = 3; +pub const SECURITY_CAPABILITY_APP_RID: u32 = 1024; +pub const SECURITY_CAPABILITY_APP_SILO_RID: u32 = 65536; +pub const SECURITY_BUILTIN_CAPABILITY_RID_COUNT: u32 = 2; +pub const SECURITY_CAPABILITY_RID_COUNT: u32 = 5; +pub const SECURITY_PARENT_PACKAGE_RID_COUNT: u32 = 8; +pub const SECURITY_CHILD_PACKAGE_RID_COUNT: u32 = 12; +pub const SECURITY_BUILTIN_PACKAGE_ANY_PACKAGE: u32 = 1; +pub const SECURITY_BUILTIN_PACKAGE_ANY_RESTRICTED_PACKAGE: u32 = 2; +pub const SECURITY_CAPABILITY_INTERNET_CLIENT: u32 = 1; +pub const SECURITY_CAPABILITY_INTERNET_CLIENT_SERVER: u32 = 2; +pub const SECURITY_CAPABILITY_PRIVATE_NETWORK_CLIENT_SERVER: u32 = 3; +pub const SECURITY_CAPABILITY_PICTURES_LIBRARY: u32 = 4; +pub const SECURITY_CAPABILITY_VIDEOS_LIBRARY: u32 = 5; +pub const SECURITY_CAPABILITY_MUSIC_LIBRARY: u32 = 6; +pub const SECURITY_CAPABILITY_DOCUMENTS_LIBRARY: u32 = 7; +pub const SECURITY_CAPABILITY_ENTERPRISE_AUTHENTICATION: u32 = 8; +pub const SECURITY_CAPABILITY_SHARED_USER_CERTIFICATES: u32 = 9; +pub const SECURITY_CAPABILITY_REMOVABLE_STORAGE: u32 = 10; +pub const SECURITY_CAPABILITY_APPOINTMENTS: u32 = 11; +pub const SECURITY_CAPABILITY_CONTACTS: u32 = 12; +pub const SECURITY_CAPABILITY_INTERNET_EXPLORER: u32 = 4096; +pub const SECURITY_MANDATORY_UNTRUSTED_RID: u32 = 0; +pub const SECURITY_MANDATORY_LOW_RID: u32 = 4096; +pub const SECURITY_MANDATORY_MEDIUM_RID: u32 = 8192; +pub const SECURITY_MANDATORY_MEDIUM_PLUS_RID: u32 = 8448; +pub const SECURITY_MANDATORY_HIGH_RID: u32 = 12288; +pub const SECURITY_MANDATORY_SYSTEM_RID: u32 = 16384; +pub const SECURITY_MANDATORY_PROTECTED_PROCESS_RID: u32 = 20480; +pub const SECURITY_MANDATORY_MAXIMUM_USER_RID: u32 = 16384; +pub const SECURITY_AUTHENTICATION_AUTHORITY_RID_COUNT: u32 = 1; +pub const SECURITY_AUTHENTICATION_AUTHORITY_ASSERTED_RID: u32 = 1; +pub const SECURITY_AUTHENTICATION_SERVICE_ASSERTED_RID: u32 = 2; +pub const SECURITY_AUTHENTICATION_FRESH_KEY_AUTH_RID: u32 = 3; +pub const SECURITY_AUTHENTICATION_KEY_TRUST_RID: u32 = 4; +pub const SECURITY_AUTHENTICATION_KEY_PROPERTY_MFA_RID: u32 = 5; +pub const SECURITY_AUTHENTICATION_KEY_PROPERTY_ATTESTATION_RID: u32 = 6; +pub const SECURITY_PROCESS_TRUST_AUTHORITY_RID_COUNT: u32 = 2; +pub const SECURITY_PROCESS_PROTECTION_TYPE_FULL_RID: u32 = 1024; +pub const SECURITY_PROCESS_PROTECTION_TYPE_LITE_RID: u32 = 512; +pub const SECURITY_PROCESS_PROTECTION_TYPE_NONE_RID: u32 = 0; +pub const SECURITY_PROCESS_PROTECTION_LEVEL_WINTCB_RID: u32 = 8192; +pub const SECURITY_PROCESS_PROTECTION_LEVEL_WINDOWS_RID: u32 = 4096; +pub const SECURITY_PROCESS_PROTECTION_LEVEL_APP_RID: u32 = 2048; +pub const SECURITY_PROCESS_PROTECTION_LEVEL_ANTIMALWARE_RID: u32 = 1536; +pub const SECURITY_PROCESS_PROTECTION_LEVEL_AUTHENTICODE_RID: u32 = 1024; +pub const SECURITY_PROCESS_PROTECTION_LEVEL_NONE_RID: u32 = 0; +pub const SECURITY_TRUSTED_INSTALLER_RID1: u32 = 956008885; +pub const SECURITY_TRUSTED_INSTALLER_RID2: u32 = 3418522649; +pub const SECURITY_TRUSTED_INSTALLER_RID3: u32 = 1831038044; +pub const SECURITY_TRUSTED_INSTALLER_RID4: u32 = 1853292631; +pub const SECURITY_TRUSTED_INSTALLER_RID5: u32 = 2271478464; +pub const SE_GROUP_MANDATORY: u32 = 1; +pub const SE_GROUP_ENABLED_BY_DEFAULT: u32 = 2; +pub const SE_GROUP_ENABLED: u32 = 4; +pub const SE_GROUP_OWNER: u32 = 8; +pub const SE_GROUP_USE_FOR_DENY_ONLY: u32 = 16; +pub const SE_GROUP_INTEGRITY: u32 = 32; +pub const SE_GROUP_INTEGRITY_ENABLED: u32 = 64; +pub const SE_GROUP_LOGON_ID: u32 = 3221225472; +pub const SE_GROUP_RESOURCE: u32 = 536870912; +pub const SE_GROUP_VALID_ATTRIBUTES: u32 = 3758096511; +pub const ACL_REVISION: u32 = 2; +pub const ACL_REVISION_DS: u32 = 4; +pub const ACL_REVISION1: u32 = 1; +pub const ACL_REVISION2: u32 = 2; +pub const ACL_REVISION3: u32 = 3; +pub const ACL_REVISION4: u32 = 4; +pub const MAX_ACL_REVISION: u32 = 4; +pub const ACCESS_MIN_MS_ACE_TYPE: u32 = 0; +pub const ACCESS_ALLOWED_ACE_TYPE: u32 = 0; +pub const ACCESS_DENIED_ACE_TYPE: u32 = 1; +pub const SYSTEM_AUDIT_ACE_TYPE: u32 = 2; +pub const SYSTEM_ALARM_ACE_TYPE: u32 = 3; +pub const ACCESS_MAX_MS_V2_ACE_TYPE: u32 = 3; +pub const ACCESS_ALLOWED_COMPOUND_ACE_TYPE: u32 = 4; +pub const ACCESS_MAX_MS_V3_ACE_TYPE: u32 = 4; +pub const ACCESS_MIN_MS_OBJECT_ACE_TYPE: u32 = 5; +pub const ACCESS_ALLOWED_OBJECT_ACE_TYPE: u32 = 5; +pub const ACCESS_DENIED_OBJECT_ACE_TYPE: u32 = 6; +pub const SYSTEM_AUDIT_OBJECT_ACE_TYPE: u32 = 7; +pub const SYSTEM_ALARM_OBJECT_ACE_TYPE: u32 = 8; +pub const ACCESS_MAX_MS_OBJECT_ACE_TYPE: u32 = 8; +pub const ACCESS_MAX_MS_V4_ACE_TYPE: u32 = 8; +pub const ACCESS_MAX_MS_ACE_TYPE: u32 = 8; +pub const ACCESS_ALLOWED_CALLBACK_ACE_TYPE: u32 = 9; +pub const ACCESS_DENIED_CALLBACK_ACE_TYPE: u32 = 10; +pub const ACCESS_ALLOWED_CALLBACK_OBJECT_ACE_TYPE: u32 = 11; +pub const ACCESS_DENIED_CALLBACK_OBJECT_ACE_TYPE: u32 = 12; +pub const SYSTEM_AUDIT_CALLBACK_ACE_TYPE: u32 = 13; +pub const SYSTEM_ALARM_CALLBACK_ACE_TYPE: u32 = 14; +pub const SYSTEM_AUDIT_CALLBACK_OBJECT_ACE_TYPE: u32 = 15; +pub const SYSTEM_ALARM_CALLBACK_OBJECT_ACE_TYPE: u32 = 16; +pub const SYSTEM_MANDATORY_LABEL_ACE_TYPE: u32 = 17; +pub const SYSTEM_RESOURCE_ATTRIBUTE_ACE_TYPE: u32 = 18; +pub const SYSTEM_SCOPED_POLICY_ID_ACE_TYPE: u32 = 19; +pub const SYSTEM_PROCESS_TRUST_LABEL_ACE_TYPE: u32 = 20; +pub const SYSTEM_ACCESS_FILTER_ACE_TYPE: u32 = 21; +pub const ACCESS_MAX_MS_V5_ACE_TYPE: u32 = 21; +pub const OBJECT_INHERIT_ACE: u32 = 1; +pub const CONTAINER_INHERIT_ACE: u32 = 2; +pub const NO_PROPAGATE_INHERIT_ACE: u32 = 4; +pub const INHERIT_ONLY_ACE: u32 = 8; +pub const INHERITED_ACE: u32 = 16; +pub const VALID_INHERIT_FLAGS: u32 = 31; +pub const CRITICAL_ACE_FLAG: u32 = 32; +pub const SUCCESSFUL_ACCESS_ACE_FLAG: u32 = 64; +pub const FAILED_ACCESS_ACE_FLAG: u32 = 128; +pub const TRUST_PROTECTED_FILTER_ACE_FLAG: u32 = 64; +pub const SYSTEM_MANDATORY_LABEL_NO_WRITE_UP: u32 = 1; +pub const SYSTEM_MANDATORY_LABEL_NO_READ_UP: u32 = 2; +pub const SYSTEM_MANDATORY_LABEL_NO_EXECUTE_UP: u32 = 4; +pub const SYSTEM_MANDATORY_LABEL_VALID_MASK: u32 = 7; +pub const SYSTEM_PROCESS_TRUST_LABEL_VALID_MASK: u32 = 16777215; +pub const SYSTEM_PROCESS_TRUST_NOCONSTRAINT_MASK: u32 = 4294967295; +pub const SYSTEM_ACCESS_FILTER_VALID_MASK: u32 = 16777215; +pub const SYSTEM_ACCESS_FILTER_NOCONSTRAINT_MASK: u32 = 4294967295; +pub const ACE_OBJECT_TYPE_PRESENT: u32 = 1; +pub const ACE_INHERITED_OBJECT_TYPE_PRESENT: u32 = 2; +pub const SECURITY_DESCRIPTOR_REVISION: u32 = 1; +pub const SECURITY_DESCRIPTOR_REVISION1: u32 = 1; +pub const SE_OWNER_DEFAULTED: u32 = 1; +pub const SE_GROUP_DEFAULTED: u32 = 2; +pub const SE_DACL_PRESENT: u32 = 4; +pub const SE_DACL_DEFAULTED: u32 = 8; +pub const SE_SACL_PRESENT: u32 = 16; +pub const SE_SACL_DEFAULTED: u32 = 32; +pub const SE_DACL_AUTO_INHERIT_REQ: u32 = 256; +pub const SE_SACL_AUTO_INHERIT_REQ: u32 = 512; +pub const SE_DACL_AUTO_INHERITED: u32 = 1024; +pub const SE_SACL_AUTO_INHERITED: u32 = 2048; +pub const SE_DACL_PROTECTED: u32 = 4096; +pub const SE_SACL_PROTECTED: u32 = 8192; +pub const SE_RM_CONTROL_VALID: u32 = 16384; +pub const SE_SELF_RELATIVE: u32 = 32768; +pub const ACCESS_OBJECT_GUID: u32 = 0; +pub const ACCESS_PROPERTY_SET_GUID: u32 = 1; +pub const ACCESS_PROPERTY_GUID: u32 = 2; +pub const ACCESS_MAX_LEVEL: u32 = 4; +pub const AUDIT_ALLOW_NO_PRIVILEGE: u32 = 1; +pub const ACCESS_DS_SOURCE_A: &[u8; 3] = b"DS\0"; +pub const ACCESS_DS_SOURCE_W: &[u8; 3] = b"DS\0"; +pub const ACCESS_DS_OBJECT_TYPE_NAME_A: &[u8; 25] = b"Directory Service Object\0"; +pub const ACCESS_DS_OBJECT_TYPE_NAME_W: &[u8; 25] = b"Directory Service Object\0"; +pub const SE_PRIVILEGE_ENABLED_BY_DEFAULT: u32 = 1; +pub const SE_PRIVILEGE_ENABLED: u32 = 2; +pub const SE_PRIVILEGE_REMOVED: u32 = 4; +pub const SE_PRIVILEGE_USED_FOR_ACCESS: u32 = 2147483648; +pub const SE_PRIVILEGE_VALID_ATTRIBUTES: u32 = 2147483655; +pub const PRIVILEGE_SET_ALL_NECESSARY: u32 = 1; +pub const ACCESS_REASON_TYPE_MASK: u32 = 16711680; +pub const ACCESS_REASON_DATA_MASK: u32 = 65535; +pub const ACCESS_REASON_STAGING_MASK: u32 = 2147483648; +pub const ACCESS_REASON_EXDATA_MASK: u32 = 2130706432; +pub const SE_SECURITY_DESCRIPTOR_FLAG_NO_OWNER_ACE: u32 = 1; +pub const SE_SECURITY_DESCRIPTOR_FLAG_NO_LABEL_ACE: u32 = 2; +pub const SE_SECURITY_DESCRIPTOR_FLAG_NO_ACCESS_FILTER_ACE: u32 = 4; +pub const SE_SECURITY_DESCRIPTOR_VALID_FLAGS: u32 = 7; +pub const SE_ACCESS_CHECK_FLAG_NO_LEARNING_MODE_LOGGING: u32 = 8; +pub const SE_ACCESS_CHECK_VALID_FLAGS: u32 = 8; +pub const SE_ACTIVATE_AS_USER_CAPABILITY: &[u8; 15] = b"activateAsUser\0"; +pub const SE_CONSTRAINED_IMPERSONATION_CAPABILITY: &[u8; 25] = b"constrainedImpersonation\0"; +pub const SE_SESSION_IMPERSONATION_CAPABILITY: &[u8; 21] = b"sessionImpersonation\0"; +pub const SE_MUMA_CAPABILITY: &[u8; 5] = b"muma\0"; +pub const SE_DEVELOPMENT_MODE_NETWORK_CAPABILITY: &[u8; 23] = b"developmentModeNetwork\0"; +pub const SE_LEARNING_MODE_LOGGING_CAPABILITY: &[u8; 20] = b"learningModeLogging\0"; +pub const SE_PERMISSIVE_LEARNING_MODE_CAPABILITY: &[u8; 23] = b"permissiveLearningMode\0"; +pub const SE_APP_SILO_VOLUME_ROOT_MINIMAL_CAPABILITY: &[u8; 32] = + b"isolatedWin32-volumeRootMinimal\0"; +pub const SE_APP_SILO_PROFILES_ROOT_MINIMAL_CAPABILITY: &[u8; 34] = + b"isolatedWin32-profilesRootMinimal\0"; +pub const SE_APP_SILO_USER_PROFILE_MINIMAL_CAPABILITY: &[u8; 33] = + b"isolatedWin32-userProfileMinimal\0"; +pub const SE_APP_SILO_PRINT_CAPABILITY: &[u8; 20] = b"isolatedWin32-print\0"; +pub const TOKEN_ASSIGN_PRIMARY: u32 = 1; +pub const TOKEN_DUPLICATE: u32 = 2; +pub const TOKEN_IMPERSONATE: u32 = 4; +pub const TOKEN_QUERY: u32 = 8; +pub const TOKEN_QUERY_SOURCE: u32 = 16; +pub const TOKEN_ADJUST_PRIVILEGES: u32 = 32; +pub const TOKEN_ADJUST_GROUPS: u32 = 64; +pub const TOKEN_ADJUST_DEFAULT: u32 = 128; +pub const TOKEN_ADJUST_SESSIONID: u32 = 256; +pub const TOKEN_ALL_ACCESS_P: u32 = 983295; +pub const TOKEN_ALL_ACCESS: u32 = 983551; +pub const TOKEN_READ: u32 = 131080; +pub const TOKEN_WRITE: u32 = 131296; +pub const TOKEN_EXECUTE: u32 = 131072; +pub const TOKEN_TRUST_CONSTRAINT_MASK: u32 = 131096; +pub const TOKEN_TRUST_ALLOWED_MASK: u32 = 131102; +pub const TOKEN_ACCESS_PSEUDO_HANDLE_WIN8: u32 = 24; +pub const TOKEN_ACCESS_PSEUDO_HANDLE: u32 = 24; +pub const TOKEN_MANDATORY_POLICY_OFF: u32 = 0; +pub const TOKEN_MANDATORY_POLICY_NO_WRITE_UP: u32 = 1; +pub const TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN: u32 = 2; +pub const TOKEN_MANDATORY_POLICY_VALID_MASK: u32 = 3; +pub const POLICY_AUDIT_SUBCATEGORY_COUNT: u32 = 59; +pub const TOKEN_SOURCE_LENGTH: u32 = 8; +pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_INVALID: u32 = 0; +pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_INT64: u32 = 1; +pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_UINT64: u32 = 2; +pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_STRING: u32 = 3; +pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_FQBN: u32 = 4; +pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_SID: u32 = 5; +pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_BOOLEAN: u32 = 6; +pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_OCTET_STRING: u32 = 16; +pub const CLAIM_SECURITY_ATTRIBUTE_NON_INHERITABLE: u32 = 1; +pub const CLAIM_SECURITY_ATTRIBUTE_VALUE_CASE_SENSITIVE: u32 = 2; +pub const CLAIM_SECURITY_ATTRIBUTE_USE_FOR_DENY_ONLY: u32 = 4; +pub const CLAIM_SECURITY_ATTRIBUTE_DISABLED_BY_DEFAULT: u32 = 8; +pub const CLAIM_SECURITY_ATTRIBUTE_DISABLED: u32 = 16; +pub const CLAIM_SECURITY_ATTRIBUTE_MANDATORY: u32 = 32; +pub const CLAIM_SECURITY_ATTRIBUTE_VALID_FLAGS: u32 = 63; +pub const CLAIM_SECURITY_ATTRIBUTE_CUSTOM_FLAGS: u32 = 4294901760; +pub const CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION_V1: u32 = 1; +pub const CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION: u32 = 1; +pub const SECURITY_DYNAMIC_TRACKING: u32 = 1; +pub const SECURITY_STATIC_TRACKING: u32 = 0; +pub const DISABLE_MAX_PRIVILEGE: u32 = 1; +pub const SANDBOX_INERT: u32 = 2; +pub const LUA_TOKEN: u32 = 4; +pub const WRITE_RESTRICTED: u32 = 8; +pub const OWNER_SECURITY_INFORMATION: u32 = 1; +pub const GROUP_SECURITY_INFORMATION: u32 = 2; +pub const DACL_SECURITY_INFORMATION: u32 = 4; +pub const SACL_SECURITY_INFORMATION: u32 = 8; +pub const LABEL_SECURITY_INFORMATION: u32 = 16; +pub const ATTRIBUTE_SECURITY_INFORMATION: u32 = 32; +pub const SCOPE_SECURITY_INFORMATION: u32 = 64; +pub const PROCESS_TRUST_LABEL_SECURITY_INFORMATION: u32 = 128; +pub const ACCESS_FILTER_SECURITY_INFORMATION: u32 = 256; +pub const BACKUP_SECURITY_INFORMATION: u32 = 65536; +pub const PROTECTED_DACL_SECURITY_INFORMATION: u32 = 2147483648; +pub const PROTECTED_SACL_SECURITY_INFORMATION: u32 = 1073741824; +pub const UNPROTECTED_DACL_SECURITY_INFORMATION: u32 = 536870912; +pub const UNPROTECTED_SACL_SECURITY_INFORMATION: u32 = 268435456; +pub const SE_SIGNING_LEVEL_UNCHECKED: u32 = 0; +pub const SE_SIGNING_LEVEL_UNSIGNED: u32 = 1; +pub const SE_SIGNING_LEVEL_ENTERPRISE: u32 = 2; +pub const SE_SIGNING_LEVEL_CUSTOM_1: u32 = 3; +pub const SE_SIGNING_LEVEL_DEVELOPER: u32 = 3; +pub const SE_SIGNING_LEVEL_AUTHENTICODE: u32 = 4; +pub const SE_SIGNING_LEVEL_CUSTOM_2: u32 = 5; +pub const SE_SIGNING_LEVEL_STORE: u32 = 6; +pub const SE_SIGNING_LEVEL_CUSTOM_3: u32 = 7; +pub const SE_SIGNING_LEVEL_ANTIMALWARE: u32 = 7; +pub const SE_SIGNING_LEVEL_MICROSOFT: u32 = 8; +pub const SE_SIGNING_LEVEL_CUSTOM_4: u32 = 9; +pub const SE_SIGNING_LEVEL_CUSTOM_5: u32 = 10; +pub const SE_SIGNING_LEVEL_DYNAMIC_CODEGEN: u32 = 11; +pub const SE_SIGNING_LEVEL_WINDOWS: u32 = 12; +pub const SE_SIGNING_LEVEL_CUSTOM_7: u32 = 13; +pub const SE_SIGNING_LEVEL_WINDOWS_TCB: u32 = 14; +pub const SE_SIGNING_LEVEL_CUSTOM_6: u32 = 15; +pub const PROCESS_TERMINATE: u32 = 1; +pub const PROCESS_CREATE_THREAD: u32 = 2; +pub const PROCESS_SET_SESSIONID: u32 = 4; +pub const PROCESS_VM_OPERATION: u32 = 8; +pub const PROCESS_VM_READ: u32 = 16; +pub const PROCESS_VM_WRITE: u32 = 32; +pub const PROCESS_DUP_HANDLE: u32 = 64; +pub const PROCESS_CREATE_PROCESS: u32 = 128; +pub const PROCESS_SET_QUOTA: u32 = 256; +pub const PROCESS_SET_INFORMATION: u32 = 512; +pub const PROCESS_QUERY_INFORMATION: u32 = 1024; +pub const PROCESS_SUSPEND_RESUME: u32 = 2048; +pub const PROCESS_QUERY_LIMITED_INFORMATION: u32 = 4096; +pub const PROCESS_SET_LIMITED_INFORMATION: u32 = 8192; +pub const PROCESS_ALL_ACCESS: u32 = 2097151; +pub const THREAD_TERMINATE: u32 = 1; +pub const THREAD_SUSPEND_RESUME: u32 = 2; +pub const THREAD_GET_CONTEXT: u32 = 8; +pub const THREAD_SET_CONTEXT: u32 = 16; +pub const THREAD_QUERY_INFORMATION: u32 = 64; +pub const THREAD_SET_INFORMATION: u32 = 32; +pub const THREAD_SET_THREAD_TOKEN: u32 = 128; +pub const THREAD_IMPERSONATE: u32 = 256; +pub const THREAD_DIRECT_IMPERSONATION: u32 = 512; +pub const THREAD_SET_LIMITED_INFORMATION: u32 = 1024; +pub const THREAD_QUERY_LIMITED_INFORMATION: u32 = 2048; +pub const THREAD_RESUME: u32 = 4096; +pub const THREAD_ALL_ACCESS: u32 = 2097151; +pub const JOB_OBJECT_ASSIGN_PROCESS: u32 = 1; +pub const JOB_OBJECT_SET_ATTRIBUTES: u32 = 2; +pub const JOB_OBJECT_QUERY: u32 = 4; +pub const JOB_OBJECT_TERMINATE: u32 = 8; +pub const JOB_OBJECT_SET_SECURITY_ATTRIBUTES: u32 = 16; +pub const JOB_OBJECT_IMPERSONATE: u32 = 32; +pub const JOB_OBJECT_ALL_ACCESS: u32 = 2031679; +pub const FLS_MAXIMUM_AVAILABLE: u32 = 4080; +pub const TLS_MINIMUM_AVAILABLE: u32 = 64; +pub const THREAD_DYNAMIC_CODE_ALLOW: u32 = 1; +pub const THREAD_BASE_PRIORITY_LOWRT: u32 = 15; +pub const THREAD_BASE_PRIORITY_MAX: u32 = 2; +pub const THREAD_BASE_PRIORITY_MIN: i32 = -2; +pub const THREAD_BASE_PRIORITY_IDLE: i32 = -15; +pub const COMPONENT_KTM: u32 = 1; +pub const COMPONENT_VALID_FLAGS: u32 = 1; +pub const MEMORY_PRIORITY_LOWEST: u32 = 0; +pub const MEMORY_PRIORITY_VERY_LOW: u32 = 1; +pub const MEMORY_PRIORITY_LOW: u32 = 2; +pub const MEMORY_PRIORITY_MEDIUM: u32 = 3; +pub const MEMORY_PRIORITY_BELOW_NORMAL: u32 = 4; +pub const MEMORY_PRIORITY_NORMAL: u32 = 5; +pub const DYNAMIC_EH_CONTINUATION_TARGET_ADD: u32 = 1; +pub const DYNAMIC_EH_CONTINUATION_TARGET_PROCESSED: u32 = 2; +pub const DYNAMIC_ENFORCED_ADDRESS_RANGE_ADD: u32 = 1; +pub const DYNAMIC_ENFORCED_ADDRESS_RANGE_PROCESSED: u32 = 2; +pub const QUOTA_LIMITS_HARDWS_MIN_ENABLE: u32 = 1; +pub const QUOTA_LIMITS_HARDWS_MIN_DISABLE: u32 = 2; +pub const QUOTA_LIMITS_HARDWS_MAX_ENABLE: u32 = 4; +pub const QUOTA_LIMITS_HARDWS_MAX_DISABLE: u32 = 8; +pub const QUOTA_LIMITS_USE_DEFAULT_LIMITS: u32 = 16; +pub const MAX_HW_COUNTERS: u32 = 16; +pub const THREAD_PROFILING_FLAG_DISPATCH: u32 = 1; +pub const JOB_OBJECT_NET_RATE_CONTROL_MAX_DSCP_TAG: u32 = 64; +pub const JOB_OBJECT_TERMINATE_AT_END_OF_JOB: u32 = 0; +pub const JOB_OBJECT_POST_AT_END_OF_JOB: u32 = 1; +pub const JOB_OBJECT_MSG_END_OF_JOB_TIME: u32 = 1; +pub const JOB_OBJECT_MSG_END_OF_PROCESS_TIME: u32 = 2; +pub const JOB_OBJECT_MSG_ACTIVE_PROCESS_LIMIT: u32 = 3; +pub const JOB_OBJECT_MSG_ACTIVE_PROCESS_ZERO: u32 = 4; +pub const JOB_OBJECT_MSG_NEW_PROCESS: u32 = 6; +pub const JOB_OBJECT_MSG_EXIT_PROCESS: u32 = 7; +pub const JOB_OBJECT_MSG_ABNORMAL_EXIT_PROCESS: u32 = 8; +pub const JOB_OBJECT_MSG_PROCESS_MEMORY_LIMIT: u32 = 9; +pub const JOB_OBJECT_MSG_JOB_MEMORY_LIMIT: u32 = 10; +pub const JOB_OBJECT_MSG_NOTIFICATION_LIMIT: u32 = 11; +pub const JOB_OBJECT_MSG_JOB_CYCLE_TIME_LIMIT: u32 = 12; +pub const JOB_OBJECT_MSG_SILO_TERMINATED: u32 = 13; +pub const JOB_OBJECT_MSG_MINIMUM: u32 = 1; +pub const JOB_OBJECT_MSG_MAXIMUM: u32 = 13; +pub const JOB_OBJECT_VALID_COMPLETION_FILTER: u32 = 16382; +pub const JOB_OBJECT_LIMIT_WORKINGSET: u32 = 1; +pub const JOB_OBJECT_LIMIT_PROCESS_TIME: u32 = 2; +pub const JOB_OBJECT_LIMIT_JOB_TIME: u32 = 4; +pub const JOB_OBJECT_LIMIT_ACTIVE_PROCESS: u32 = 8; +pub const JOB_OBJECT_LIMIT_AFFINITY: u32 = 16; +pub const JOB_OBJECT_LIMIT_PRIORITY_CLASS: u32 = 32; +pub const JOB_OBJECT_LIMIT_PRESERVE_JOB_TIME: u32 = 64; +pub const JOB_OBJECT_LIMIT_SCHEDULING_CLASS: u32 = 128; +pub const JOB_OBJECT_LIMIT_PROCESS_MEMORY: u32 = 256; +pub const JOB_OBJECT_LIMIT_JOB_MEMORY: u32 = 512; +pub const JOB_OBJECT_LIMIT_JOB_MEMORY_HIGH: u32 = 512; +pub const JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION: u32 = 1024; +pub const JOB_OBJECT_LIMIT_BREAKAWAY_OK: u32 = 2048; +pub const JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK: u32 = 4096; +pub const JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE: u32 = 8192; +pub const JOB_OBJECT_LIMIT_SUBSET_AFFINITY: u32 = 16384; +pub const JOB_OBJECT_LIMIT_JOB_MEMORY_LOW: u32 = 32768; +pub const JOB_OBJECT_LIMIT_JOB_READ_BYTES: u32 = 65536; +pub const JOB_OBJECT_LIMIT_JOB_WRITE_BYTES: u32 = 131072; +pub const JOB_OBJECT_LIMIT_RATE_CONTROL: u32 = 262144; +pub const JOB_OBJECT_LIMIT_CPU_RATE_CONTROL: u32 = 262144; +pub const JOB_OBJECT_LIMIT_IO_RATE_CONTROL: u32 = 524288; +pub const JOB_OBJECT_LIMIT_NET_RATE_CONTROL: u32 = 1048576; +pub const JOB_OBJECT_LIMIT_VALID_FLAGS: u32 = 524287; +pub const JOB_OBJECT_BASIC_LIMIT_VALID_FLAGS: u32 = 255; +pub const JOB_OBJECT_EXTENDED_LIMIT_VALID_FLAGS: u32 = 32767; +pub const JOB_OBJECT_NOTIFICATION_LIMIT_VALID_FLAGS: u32 = 2064900; +pub const JOB_OBJECT_UILIMIT_NONE: u32 = 0; +pub const JOB_OBJECT_UILIMIT_HANDLES: u32 = 1; +pub const JOB_OBJECT_UILIMIT_READCLIPBOARD: u32 = 2; +pub const JOB_OBJECT_UILIMIT_WRITECLIPBOARD: u32 = 4; +pub const JOB_OBJECT_UILIMIT_SYSTEMPARAMETERS: u32 = 8; +pub const JOB_OBJECT_UILIMIT_DISPLAYSETTINGS: u32 = 16; +pub const JOB_OBJECT_UILIMIT_GLOBALATOMS: u32 = 32; +pub const JOB_OBJECT_UILIMIT_DESKTOP: u32 = 64; +pub const JOB_OBJECT_UILIMIT_EXITWINDOWS: u32 = 128; +pub const JOB_OBJECT_UILIMIT_IME: u32 = 256; +pub const JOB_OBJECT_UILIMIT_ALL: u32 = 511; +pub const JOB_OBJECT_UI_VALID_FLAGS: u32 = 511; +pub const JOB_OBJECT_SECURITY_NO_ADMIN: u32 = 1; +pub const JOB_OBJECT_SECURITY_RESTRICTED_TOKEN: u32 = 2; +pub const JOB_OBJECT_SECURITY_ONLY_TOKEN: u32 = 4; +pub const JOB_OBJECT_SECURITY_FILTER_TOKENS: u32 = 8; +pub const JOB_OBJECT_SECURITY_VALID_FLAGS: u32 = 15; +pub const JOB_OBJECT_CPU_RATE_CONTROL_ENABLE: u32 = 1; +pub const JOB_OBJECT_CPU_RATE_CONTROL_WEIGHT_BASED: u32 = 2; +pub const JOB_OBJECT_CPU_RATE_CONTROL_HARD_CAP: u32 = 4; +pub const JOB_OBJECT_CPU_RATE_CONTROL_NOTIFY: u32 = 8; +pub const JOB_OBJECT_CPU_RATE_CONTROL_MIN_MAX_RATE: u32 = 16; +pub const JOB_OBJECT_CPU_RATE_CONTROL_VALID_FLAGS: u32 = 31; +pub const MEMORY_PARTITION_QUERY_ACCESS: u32 = 1; +pub const MEMORY_PARTITION_MODIFY_ACCESS: u32 = 2; +pub const MEMORY_PARTITION_ALL_ACCESS: u32 = 2031619; +pub const EVENT_MODIFY_STATE: u32 = 2; +pub const EVENT_ALL_ACCESS: u32 = 2031619; +pub const MUTANT_QUERY_STATE: u32 = 1; +pub const MUTANT_ALL_ACCESS: u32 = 2031617; +pub const SEMAPHORE_MODIFY_STATE: u32 = 2; +pub const SEMAPHORE_ALL_ACCESS: u32 = 2031619; +pub const TIMER_QUERY_STATE: u32 = 1; +pub const TIMER_MODIFY_STATE: u32 = 2; +pub const TIMER_ALL_ACCESS: u32 = 2031619; +pub const TIME_ZONE_ID_UNKNOWN: u32 = 0; +pub const TIME_ZONE_ID_STANDARD: u32 = 1; +pub const TIME_ZONE_ID_DAYLIGHT: u32 = 2; +pub const LTP_PC_SMT: u32 = 1; +pub const CACHE_FULLY_ASSOCIATIVE: u32 = 255; +pub const SYSTEM_CPU_SET_INFORMATION_PARKED: u32 = 1; +pub const SYSTEM_CPU_SET_INFORMATION_ALLOCATED: u32 = 2; +pub const SYSTEM_CPU_SET_INFORMATION_ALLOCATED_TO_TARGET_PROCESS: u32 = 4; +pub const SYSTEM_CPU_SET_INFORMATION_REALTIME: u32 = 8; +pub const PROCESSOR_INTEL_386: u32 = 386; +pub const PROCESSOR_INTEL_486: u32 = 486; +pub const PROCESSOR_INTEL_PENTIUM: u32 = 586; +pub const PROCESSOR_INTEL_IA64: u32 = 2200; +pub const PROCESSOR_AMD_X8664: u32 = 8664; +pub const PROCESSOR_MIPS_R4000: u32 = 4000; +pub const PROCESSOR_ALPHA_21064: u32 = 21064; +pub const PROCESSOR_PPC_601: u32 = 601; +pub const PROCESSOR_PPC_603: u32 = 603; +pub const PROCESSOR_PPC_604: u32 = 604; +pub const PROCESSOR_PPC_620: u32 = 620; +pub const PROCESSOR_HITACHI_SH3: u32 = 10003; +pub const PROCESSOR_HITACHI_SH3E: u32 = 10004; +pub const PROCESSOR_HITACHI_SH4: u32 = 10005; +pub const PROCESSOR_MOTOROLA_821: u32 = 821; +pub const PROCESSOR_SHx_SH3: u32 = 103; +pub const PROCESSOR_SHx_SH4: u32 = 104; +pub const PROCESSOR_STRONGARM: u32 = 2577; +pub const PROCESSOR_ARM720: u32 = 1824; +pub const PROCESSOR_ARM820: u32 = 2080; +pub const PROCESSOR_ARM920: u32 = 2336; +pub const PROCESSOR_ARM_7TDMI: u32 = 70001; +pub const PROCESSOR_OPTIL: u32 = 18767; +pub const PROCESSOR_ARCHITECTURE_INTEL: u32 = 0; +pub const PROCESSOR_ARCHITECTURE_MIPS: u32 = 1; +pub const PROCESSOR_ARCHITECTURE_ALPHA: u32 = 2; +pub const PROCESSOR_ARCHITECTURE_PPC: u32 = 3; +pub const PROCESSOR_ARCHITECTURE_SHX: u32 = 4; +pub const PROCESSOR_ARCHITECTURE_ARM: u32 = 5; +pub const PROCESSOR_ARCHITECTURE_IA64: u32 = 6; +pub const PROCESSOR_ARCHITECTURE_ALPHA64: u32 = 7; +pub const PROCESSOR_ARCHITECTURE_MSIL: u32 = 8; +pub const PROCESSOR_ARCHITECTURE_AMD64: u32 = 9; +pub const PROCESSOR_ARCHITECTURE_IA32_ON_WIN64: u32 = 10; +pub const PROCESSOR_ARCHITECTURE_NEUTRAL: u32 = 11; +pub const PROCESSOR_ARCHITECTURE_ARM64: u32 = 12; +pub const PROCESSOR_ARCHITECTURE_ARM32_ON_WIN64: u32 = 13; +pub const PROCESSOR_ARCHITECTURE_IA32_ON_ARM64: u32 = 14; +pub const PROCESSOR_ARCHITECTURE_UNKNOWN: u32 = 65535; +pub const PF_FLOATING_POINT_PRECISION_ERRATA: u32 = 0; +pub const PF_FLOATING_POINT_EMULATED: u32 = 1; +pub const PF_COMPARE_EXCHANGE_DOUBLE: u32 = 2; +pub const PF_MMX_INSTRUCTIONS_AVAILABLE: u32 = 3; +pub const PF_PPC_MOVEMEM_64BIT_OK: u32 = 4; +pub const PF_ALPHA_BYTE_INSTRUCTIONS: u32 = 5; +pub const PF_XMMI_INSTRUCTIONS_AVAILABLE: u32 = 6; +pub const PF_3DNOW_INSTRUCTIONS_AVAILABLE: u32 = 7; +pub const PF_RDTSC_INSTRUCTION_AVAILABLE: u32 = 8; +pub const PF_PAE_ENABLED: u32 = 9; +pub const PF_XMMI64_INSTRUCTIONS_AVAILABLE: u32 = 10; +pub const PF_SSE_DAZ_MODE_AVAILABLE: u32 = 11; +pub const PF_NX_ENABLED: u32 = 12; +pub const PF_SSE3_INSTRUCTIONS_AVAILABLE: u32 = 13; +pub const PF_COMPARE_EXCHANGE128: u32 = 14; +pub const PF_COMPARE64_EXCHANGE128: u32 = 15; +pub const PF_CHANNELS_ENABLED: u32 = 16; +pub const PF_XSAVE_ENABLED: u32 = 17; +pub const PF_ARM_VFP_32_REGISTERS_AVAILABLE: u32 = 18; +pub const PF_ARM_NEON_INSTRUCTIONS_AVAILABLE: u32 = 19; +pub const PF_SECOND_LEVEL_ADDRESS_TRANSLATION: u32 = 20; +pub const PF_VIRT_FIRMWARE_ENABLED: u32 = 21; +pub const PF_RDWRFSGSBASE_AVAILABLE: u32 = 22; +pub const PF_FASTFAIL_AVAILABLE: u32 = 23; +pub const PF_ARM_DIVIDE_INSTRUCTION_AVAILABLE: u32 = 24; +pub const PF_ARM_64BIT_LOADSTORE_ATOMIC: u32 = 25; +pub const PF_ARM_EXTERNAL_CACHE_AVAILABLE: u32 = 26; +pub const PF_ARM_FMAC_INSTRUCTIONS_AVAILABLE: u32 = 27; +pub const PF_RDRAND_INSTRUCTION_AVAILABLE: u32 = 28; +pub const PF_ARM_V8_INSTRUCTIONS_AVAILABLE: u32 = 29; +pub const PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE: u32 = 30; +pub const PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE: u32 = 31; +pub const PF_RDTSCP_INSTRUCTION_AVAILABLE: u32 = 32; +pub const PF_RDPID_INSTRUCTION_AVAILABLE: u32 = 33; +pub const PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE: u32 = 34; +pub const PF_MONITORX_INSTRUCTION_AVAILABLE: u32 = 35; +pub const PF_SSSE3_INSTRUCTIONS_AVAILABLE: u32 = 36; +pub const PF_SSE4_1_INSTRUCTIONS_AVAILABLE: u32 = 37; +pub const PF_SSE4_2_INSTRUCTIONS_AVAILABLE: u32 = 38; +pub const PF_AVX_INSTRUCTIONS_AVAILABLE: u32 = 39; +pub const PF_AVX2_INSTRUCTIONS_AVAILABLE: u32 = 40; +pub const PF_AVX512F_INSTRUCTIONS_AVAILABLE: u32 = 41; +pub const PF_ERMS_AVAILABLE: u32 = 42; +pub const PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE: u32 = 43; +pub const PF_ARM_V83_JSCVT_INSTRUCTIONS_AVAILABLE: u32 = 44; +pub const PF_ARM_V83_LRCPC_INSTRUCTIONS_AVAILABLE: u32 = 45; +pub const XSTATE_LEGACY_FLOATING_POINT: u32 = 0; +pub const XSTATE_LEGACY_SSE: u32 = 1; +pub const XSTATE_GSSE: u32 = 2; +pub const XSTATE_AVX: u32 = 2; +pub const XSTATE_MPX_BNDREGS: u32 = 3; +pub const XSTATE_MPX_BNDCSR: u32 = 4; +pub const XSTATE_AVX512_KMASK: u32 = 5; +pub const XSTATE_AVX512_ZMM_H: u32 = 6; +pub const XSTATE_AVX512_ZMM: u32 = 7; +pub const XSTATE_IPT: u32 = 8; +pub const XSTATE_PASID: u32 = 10; +pub const XSTATE_CET_U: u32 = 11; +pub const XSTATE_CET_S: u32 = 12; +pub const XSTATE_AMX_TILE_CONFIG: u32 = 17; +pub const XSTATE_AMX_TILE_DATA: u32 = 18; +pub const XSTATE_LWP: u32 = 62; +pub const MAXIMUM_XSTATE_FEATURES: u32 = 64; +pub const XSTATE_COMPACTION_ENABLE: u32 = 63; +pub const XSTATE_ALIGN_BIT: u32 = 1; +pub const XSTATE_XFD_BIT: u32 = 2; +pub const XSTATE_CONTROLFLAG_XSAVEOPT_MASK: u32 = 1; +pub const XSTATE_CONTROLFLAG_XSAVEC_MASK: u32 = 2; +pub const XSTATE_CONTROLFLAG_XFD_MASK: u32 = 4; +pub const XSTATE_CONTROLFLAG_VALID_MASK: u32 = 7; +pub const CFG_CALL_TARGET_VALID: u32 = 1; +pub const CFG_CALL_TARGET_PROCESSED: u32 = 2; +pub const CFG_CALL_TARGET_CONVERT_EXPORT_SUPPRESSED_TO_VALID: u32 = 4; +pub const CFG_CALL_TARGET_VALID_XFG: u32 = 8; +pub const CFG_CALL_TARGET_CONVERT_XFG_TO_CFG: u32 = 16; +pub const SECTION_QUERY: u32 = 1; +pub const SECTION_MAP_WRITE: u32 = 2; +pub const SECTION_MAP_READ: u32 = 4; +pub const SECTION_MAP_EXECUTE: u32 = 8; +pub const SECTION_EXTEND_SIZE: u32 = 16; +pub const SECTION_MAP_EXECUTE_EXPLICIT: u32 = 32; +pub const SECTION_ALL_ACCESS: u32 = 983071; +pub const SESSION_QUERY_ACCESS: u32 = 1; +pub const SESSION_MODIFY_ACCESS: u32 = 2; +pub const SESSION_ALL_ACCESS: u32 = 983043; +pub const PAGE_NOACCESS: u32 = 1; +pub const PAGE_READONLY: u32 = 2; +pub const PAGE_READWRITE: u32 = 4; +pub const PAGE_WRITECOPY: u32 = 8; +pub const PAGE_EXECUTE: u32 = 16; +pub const PAGE_EXECUTE_READ: u32 = 32; +pub const PAGE_EXECUTE_READWRITE: u32 = 64; +pub const PAGE_EXECUTE_WRITECOPY: u32 = 128; +pub const PAGE_GUARD: u32 = 256; +pub const PAGE_NOCACHE: u32 = 512; +pub const PAGE_WRITECOMBINE: u32 = 1024; +pub const PAGE_GRAPHICS_NOACCESS: u32 = 2048; +pub const PAGE_GRAPHICS_READONLY: u32 = 4096; +pub const PAGE_GRAPHICS_READWRITE: u32 = 8192; +pub const PAGE_GRAPHICS_EXECUTE: u32 = 16384; +pub const PAGE_GRAPHICS_EXECUTE_READ: u32 = 32768; +pub const PAGE_GRAPHICS_EXECUTE_READWRITE: u32 = 65536; +pub const PAGE_GRAPHICS_COHERENT: u32 = 131072; +pub const PAGE_GRAPHICS_NOCACHE: u32 = 262144; +pub const PAGE_ENCLAVE_THREAD_CONTROL: u32 = 2147483648; +pub const PAGE_REVERT_TO_FILE_MAP: u32 = 2147483648; +pub const PAGE_TARGETS_NO_UPDATE: u32 = 1073741824; +pub const PAGE_TARGETS_INVALID: u32 = 1073741824; +pub const PAGE_ENCLAVE_UNVALIDATED: u32 = 536870912; +pub const PAGE_ENCLAVE_MASK: u32 = 268435456; +pub const PAGE_ENCLAVE_DECOMMIT: u32 = 268435456; +pub const PAGE_ENCLAVE_SS_FIRST: u32 = 268435457; +pub const PAGE_ENCLAVE_SS_REST: u32 = 268435458; +pub const MEM_COMMIT: u32 = 4096; +pub const MEM_RESERVE: u32 = 8192; +pub const MEM_REPLACE_PLACEHOLDER: u32 = 16384; +pub const MEM_RESERVE_PLACEHOLDER: u32 = 262144; +pub const MEM_RESET: u32 = 524288; +pub const MEM_TOP_DOWN: u32 = 1048576; +pub const MEM_WRITE_WATCH: u32 = 2097152; +pub const MEM_PHYSICAL: u32 = 4194304; +pub const MEM_ROTATE: u32 = 8388608; +pub const MEM_DIFFERENT_IMAGE_BASE_OK: u32 = 8388608; +pub const MEM_RESET_UNDO: u32 = 16777216; +pub const MEM_LARGE_PAGES: u32 = 536870912; +pub const MEM_4MB_PAGES: u32 = 2147483648; +pub const MEM_64K_PAGES: u32 = 541065216; +pub const MEM_UNMAP_WITH_TRANSIENT_BOOST: u32 = 1; +pub const MEM_COALESCE_PLACEHOLDERS: u32 = 1; +pub const MEM_PRESERVE_PLACEHOLDER: u32 = 2; +pub const MEM_DECOMMIT: u32 = 16384; +pub const MEM_RELEASE: u32 = 32768; +pub const MEM_FREE: u32 = 65536; +pub const MEM_EXTENDED_PARAMETER_GRAPHICS: u32 = 1; +pub const MEM_EXTENDED_PARAMETER_NONPAGED: u32 = 2; +pub const MEM_EXTENDED_PARAMETER_ZERO_PAGES_OPTIONAL: u32 = 4; +pub const MEM_EXTENDED_PARAMETER_NONPAGED_LARGE: u32 = 8; +pub const MEM_EXTENDED_PARAMETER_NONPAGED_HUGE: u32 = 16; +pub const MEM_EXTENDED_PARAMETER_SOFT_FAULT_PAGES: u32 = 32; +pub const MEM_EXTENDED_PARAMETER_EC_CODE: u32 = 64; +pub const MEM_EXTENDED_PARAMETER_IMAGE_NO_HPAT: u32 = 128; +pub const MEM_EXTENDED_PARAMETER_TYPE_BITS: u32 = 8; +pub const SEC_HUGE_PAGES: u32 = 131072; +pub const SEC_PARTITION_OWNER_HANDLE: u32 = 262144; +pub const SEC_64K_PAGES: u32 = 524288; +pub const SEC_FILE: u32 = 8388608; +pub const SEC_IMAGE: u32 = 16777216; +pub const SEC_PROTECTED_IMAGE: u32 = 33554432; +pub const SEC_RESERVE: u32 = 67108864; +pub const SEC_COMMIT: u32 = 134217728; +pub const SEC_NOCACHE: u32 = 268435456; +pub const SEC_WRITECOMBINE: u32 = 1073741824; +pub const SEC_LARGE_PAGES: u32 = 2147483648; +pub const SEC_IMAGE_NO_EXECUTE: u32 = 285212672; +pub const MEM_PRIVATE: u32 = 131072; +pub const MEM_MAPPED: u32 = 262144; +pub const MEM_IMAGE: u32 = 16777216; +pub const WRITE_WATCH_FLAG_RESET: u32 = 1; +pub const ENCLAVE_TYPE_SGX: u32 = 1; +pub const ENCLAVE_TYPE_SGX2: u32 = 2; +pub const ENCLAVE_TYPE_VBS: u32 = 16; +pub const ENCLAVE_VBS_FLAG_DEBUG: u32 = 1; +pub const ENCLAVE_TYPE_VBS_BASIC: u32 = 17; +pub const VBS_BASIC_PAGE_MEASURED_DATA: u32 = 1; +pub const VBS_BASIC_PAGE_UNMEASURED_DATA: u32 = 2; +pub const VBS_BASIC_PAGE_ZERO_FILL: u32 = 3; +pub const VBS_BASIC_PAGE_THREAD_DESCRIPTOR: u32 = 4; +pub const VBS_BASIC_PAGE_SYSTEM_CALL: u32 = 5; +pub const DEDICATED_MEMORY_CACHE_ELIGIBLE: u32 = 1; +pub const FILE_READ_DATA: u32 = 1; +pub const FILE_LIST_DIRECTORY: u32 = 1; +pub const FILE_WRITE_DATA: u32 = 2; +pub const FILE_ADD_FILE: u32 = 2; +pub const FILE_APPEND_DATA: u32 = 4; +pub const FILE_ADD_SUBDIRECTORY: u32 = 4; +pub const FILE_CREATE_PIPE_INSTANCE: u32 = 4; +pub const FILE_READ_EA: u32 = 8; +pub const FILE_WRITE_EA: u32 = 16; +pub const FILE_EXECUTE: u32 = 32; +pub const FILE_TRAVERSE: u32 = 32; +pub const FILE_DELETE_CHILD: u32 = 64; +pub const FILE_READ_ATTRIBUTES: u32 = 128; +pub const FILE_WRITE_ATTRIBUTES: u32 = 256; +pub const FILE_ALL_ACCESS: u32 = 2032127; +pub const FILE_GENERIC_READ: u32 = 1179785; +pub const FILE_GENERIC_WRITE: u32 = 1179926; +pub const FILE_GENERIC_EXECUTE: u32 = 1179808; +pub const FILE_SHARE_READ: u32 = 1; +pub const FILE_SHARE_WRITE: u32 = 2; +pub const FILE_SHARE_DELETE: u32 = 4; +pub const FILE_ATTRIBUTE_READONLY: u32 = 1; +pub const FILE_ATTRIBUTE_HIDDEN: u32 = 2; +pub const FILE_ATTRIBUTE_SYSTEM: u32 = 4; +pub const FILE_ATTRIBUTE_DIRECTORY: u32 = 16; +pub const FILE_ATTRIBUTE_ARCHIVE: u32 = 32; +pub const FILE_ATTRIBUTE_DEVICE: u32 = 64; +pub const FILE_ATTRIBUTE_NORMAL: u32 = 128; +pub const FILE_ATTRIBUTE_TEMPORARY: u32 = 256; +pub const FILE_ATTRIBUTE_SPARSE_FILE: u32 = 512; +pub const FILE_ATTRIBUTE_REPARSE_POINT: u32 = 1024; +pub const FILE_ATTRIBUTE_COMPRESSED: u32 = 2048; +pub const FILE_ATTRIBUTE_OFFLINE: u32 = 4096; +pub const FILE_ATTRIBUTE_NOT_CONTENT_INDEXED: u32 = 8192; +pub const FILE_ATTRIBUTE_ENCRYPTED: u32 = 16384; +pub const FILE_ATTRIBUTE_INTEGRITY_STREAM: u32 = 32768; +pub const FILE_ATTRIBUTE_VIRTUAL: u32 = 65536; +pub const FILE_ATTRIBUTE_NO_SCRUB_DATA: u32 = 131072; +pub const FILE_ATTRIBUTE_EA: u32 = 262144; +pub const FILE_ATTRIBUTE_PINNED: u32 = 524288; +pub const FILE_ATTRIBUTE_UNPINNED: u32 = 1048576; +pub const FILE_ATTRIBUTE_RECALL_ON_OPEN: u32 = 262144; +pub const FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS: u32 = 4194304; +pub const TREE_CONNECT_ATTRIBUTE_PRIVACY: u32 = 16384; +pub const TREE_CONNECT_ATTRIBUTE_INTEGRITY: u32 = 32768; +pub const TREE_CONNECT_ATTRIBUTE_GLOBAL: u32 = 4; +pub const TREE_CONNECT_ATTRIBUTE_PINNED: u32 = 2; +pub const FILE_ATTRIBUTE_STRICTLY_SEQUENTIAL: u32 = 536870912; +pub const FILE_NOTIFY_CHANGE_FILE_NAME: u32 = 1; +pub const FILE_NOTIFY_CHANGE_DIR_NAME: u32 = 2; +pub const FILE_NOTIFY_CHANGE_ATTRIBUTES: u32 = 4; +pub const FILE_NOTIFY_CHANGE_SIZE: u32 = 8; +pub const FILE_NOTIFY_CHANGE_LAST_WRITE: u32 = 16; +pub const FILE_NOTIFY_CHANGE_LAST_ACCESS: u32 = 32; +pub const FILE_NOTIFY_CHANGE_CREATION: u32 = 64; +pub const FILE_NOTIFY_CHANGE_SECURITY: u32 = 256; +pub const FILE_ACTION_ADDED: u32 = 1; +pub const FILE_ACTION_REMOVED: u32 = 2; +pub const FILE_ACTION_MODIFIED: u32 = 3; +pub const FILE_ACTION_RENAMED_OLD_NAME: u32 = 4; +pub const FILE_ACTION_RENAMED_NEW_NAME: u32 = 5; +pub const FILE_CASE_SENSITIVE_SEARCH: u32 = 1; +pub const FILE_CASE_PRESERVED_NAMES: u32 = 2; +pub const FILE_UNICODE_ON_DISK: u32 = 4; +pub const FILE_PERSISTENT_ACLS: u32 = 8; +pub const FILE_FILE_COMPRESSION: u32 = 16; +pub const FILE_VOLUME_QUOTAS: u32 = 32; +pub const FILE_SUPPORTS_SPARSE_FILES: u32 = 64; +pub const FILE_SUPPORTS_REPARSE_POINTS: u32 = 128; +pub const FILE_SUPPORTS_REMOTE_STORAGE: u32 = 256; +pub const FILE_RETURNS_CLEANUP_RESULT_INFO: u32 = 512; +pub const FILE_SUPPORTS_POSIX_UNLINK_RENAME: u32 = 1024; +pub const FILE_SUPPORTS_BYPASS_IO: u32 = 2048; +pub const FILE_SUPPORTS_STREAM_SNAPSHOTS: u32 = 4096; +pub const FILE_SUPPORTS_CASE_SENSITIVE_DIRS: u32 = 8192; +pub const FILE_VOLUME_IS_COMPRESSED: u32 = 32768; +pub const FILE_SUPPORTS_OBJECT_IDS: u32 = 65536; +pub const FILE_SUPPORTS_ENCRYPTION: u32 = 131072; +pub const FILE_NAMED_STREAMS: u32 = 262144; +pub const FILE_READ_ONLY_VOLUME: u32 = 524288; +pub const FILE_SEQUENTIAL_WRITE_ONCE: u32 = 1048576; +pub const FILE_SUPPORTS_TRANSACTIONS: u32 = 2097152; +pub const FILE_SUPPORTS_HARD_LINKS: u32 = 4194304; +pub const FILE_SUPPORTS_EXTENDED_ATTRIBUTES: u32 = 8388608; +pub const FILE_SUPPORTS_OPEN_BY_FILE_ID: u32 = 16777216; +pub const FILE_SUPPORTS_USN_JOURNAL: u32 = 33554432; +pub const FILE_SUPPORTS_INTEGRITY_STREAMS: u32 = 67108864; +pub const FILE_SUPPORTS_BLOCK_REFCOUNTING: u32 = 134217728; +pub const FILE_SUPPORTS_SPARSE_VDL: u32 = 268435456; +pub const FILE_DAX_VOLUME: u32 = 536870912; +pub const FILE_SUPPORTS_GHOSTING: u32 = 1073741824; +pub const FILE_NAME_FLAG_HARDLINK: u32 = 0; +pub const FILE_NAME_FLAG_NTFS: u32 = 1; +pub const FILE_NAME_FLAG_DOS: u32 = 2; +pub const FILE_NAME_FLAG_BOTH: u32 = 3; +pub const FILE_NAME_FLAGS_UNSPECIFIED: u32 = 128; +pub const FILE_CS_FLAG_CASE_SENSITIVE_DIR: u32 = 1; +pub const FLUSH_FLAGS_FILE_DATA_ONLY: u32 = 1; +pub const FLUSH_FLAGS_NO_SYNC: u32 = 2; +pub const FLUSH_FLAGS_FILE_DATA_SYNC_ONLY: u32 = 4; +pub const MAXIMUM_REPARSE_DATA_BUFFER_SIZE: u32 = 16384; +pub const IO_REPARSE_TAG_RESERVED_ZERO: u32 = 0; +pub const IO_REPARSE_TAG_RESERVED_ONE: u32 = 1; +pub const IO_REPARSE_TAG_RESERVED_TWO: u32 = 2; +pub const IO_REPARSE_TAG_RESERVED_RANGE: u32 = 2; +pub const IO_REPARSE_TAG_MOUNT_POINT: u32 = 2684354563; +pub const IO_REPARSE_TAG_HSM: u32 = 3221225476; +pub const IO_REPARSE_TAG_HSM2: u32 = 2147483654; +pub const IO_REPARSE_TAG_SIS: u32 = 2147483655; +pub const IO_REPARSE_TAG_WIM: u32 = 2147483656; +pub const IO_REPARSE_TAG_CSV: u32 = 2147483657; +pub const IO_REPARSE_TAG_DFS: u32 = 2147483658; +pub const IO_REPARSE_TAG_SYMLINK: u32 = 2684354572; +pub const IO_REPARSE_TAG_DFSR: u32 = 2147483666; +pub const IO_REPARSE_TAG_DEDUP: u32 = 2147483667; +pub const IO_REPARSE_TAG_NFS: u32 = 2147483668; +pub const IO_REPARSE_TAG_FILE_PLACEHOLDER: u32 = 2147483669; +pub const IO_REPARSE_TAG_WOF: u32 = 2147483671; +pub const IO_REPARSE_TAG_WCI: u32 = 2147483672; +pub const IO_REPARSE_TAG_WCI_1: u32 = 2415923224; +pub const IO_REPARSE_TAG_GLOBAL_REPARSE: u32 = 2684354585; +pub const IO_REPARSE_TAG_CLOUD: u32 = 2415919130; +pub const IO_REPARSE_TAG_CLOUD_1: u32 = 2415923226; +pub const IO_REPARSE_TAG_CLOUD_2: u32 = 2415927322; +pub const IO_REPARSE_TAG_CLOUD_3: u32 = 2415931418; +pub const IO_REPARSE_TAG_CLOUD_4: u32 = 2415935514; +pub const IO_REPARSE_TAG_CLOUD_5: u32 = 2415939610; +pub const IO_REPARSE_TAG_CLOUD_6: u32 = 2415943706; +pub const IO_REPARSE_TAG_CLOUD_7: u32 = 2415947802; +pub const IO_REPARSE_TAG_CLOUD_8: u32 = 2415951898; +pub const IO_REPARSE_TAG_CLOUD_9: u32 = 2415955994; +pub const IO_REPARSE_TAG_CLOUD_A: u32 = 2415960090; +pub const IO_REPARSE_TAG_CLOUD_B: u32 = 2415964186; +pub const IO_REPARSE_TAG_CLOUD_C: u32 = 2415968282; +pub const IO_REPARSE_TAG_CLOUD_D: u32 = 2415972378; +pub const IO_REPARSE_TAG_CLOUD_E: u32 = 2415976474; +pub const IO_REPARSE_TAG_CLOUD_F: u32 = 2415980570; +pub const IO_REPARSE_TAG_CLOUD_MASK: u32 = 61440; +pub const IO_REPARSE_TAG_APPEXECLINK: u32 = 2147483675; +pub const IO_REPARSE_TAG_PROJFS: u32 = 2415919132; +pub const IO_REPARSE_TAG_STORAGE_SYNC: u32 = 2147483678; +pub const IO_REPARSE_TAG_WCI_TOMBSTONE: u32 = 2684354591; +pub const IO_REPARSE_TAG_UNHANDLED: u32 = 2147483680; +pub const IO_REPARSE_TAG_ONEDRIVE: u32 = 2147483681; +pub const IO_REPARSE_TAG_PROJFS_TOMBSTONE: u32 = 2684354594; +pub const IO_REPARSE_TAG_AF_UNIX: u32 = 2147483683; +pub const IO_REPARSE_TAG_WCI_LINK: u32 = 2684354599; +pub const IO_REPARSE_TAG_WCI_LINK_1: u32 = 2684358695; +pub const IO_REPARSE_TAG_DATALESS_CIM: u32 = 2684354600; +pub const SCRUB_DATA_INPUT_FLAG_RESUME: u32 = 1; +pub const SCRUB_DATA_INPUT_FLAG_SKIP_IN_SYNC: u32 = 2; +pub const SCRUB_DATA_INPUT_FLAG_SKIP_NON_INTEGRITY_DATA: u32 = 4; +pub const SCRUB_DATA_INPUT_FLAG_IGNORE_REDUNDANCY: u32 = 8; +pub const SCRUB_DATA_INPUT_FLAG_SKIP_DATA: u32 = 16; +pub const SCRUB_DATA_INPUT_FLAG_SCRUB_BY_OBJECT_ID: u32 = 32; +pub const SCRUB_DATA_INPUT_FLAG_OPLOCK_NOT_ACQUIRED: u32 = 64; +pub const SCRUB_DATA_OUTPUT_FLAG_INCOMPLETE: u32 = 1; +pub const SCRUB_DATA_OUTPUT_FLAG_NON_USER_DATA_RANGE: u32 = 65536; +pub const SCRUB_DATA_OUTPUT_FLAG_PARITY_EXTENT_DATA_RETURNED: u32 = 131072; +pub const SCRUB_DATA_OUTPUT_FLAG_RESUME_CONTEXT_LENGTH_SPECIFIED: u32 = 262144; +pub const SHUFFLE_FILE_FLAG_SKIP_INITIALIZING_NEW_CLUSTERS: u32 = 1; +pub const IO_COMPLETION_MODIFY_STATE: u32 = 2; +pub const IO_COMPLETION_ALL_ACCESS: u32 = 2031619; +pub const IO_QOS_MAX_RESERVATION: u32 = 1000000000; +pub const SMB_CCF_APP_INSTANCE_EA_NAME: &[u8; 29] = b"ClusteredApplicationInstance\0"; +pub const NETWORK_APP_INSTANCE_CSV_FLAGS_VALID_ONLY_IF_CSV_COORDINATOR: u32 = 1; +pub const DUPLICATE_CLOSE_SOURCE: u32 = 1; +pub const DUPLICATE_SAME_ACCESS: u32 = 2; +pub const POWERBUTTON_ACTION_INDEX_NOTHING: u32 = 0; +pub const POWERBUTTON_ACTION_INDEX_SLEEP: u32 = 1; +pub const POWERBUTTON_ACTION_INDEX_HIBERNATE: u32 = 2; +pub const POWERBUTTON_ACTION_INDEX_SHUTDOWN: u32 = 3; +pub const POWERBUTTON_ACTION_INDEX_TURN_OFF_THE_DISPLAY: u32 = 4; +pub const POWERBUTTON_ACTION_VALUE_NOTHING: u32 = 0; +pub const POWERBUTTON_ACTION_VALUE_SLEEP: u32 = 2; +pub const POWERBUTTON_ACTION_VALUE_HIBERNATE: u32 = 3; +pub const POWERBUTTON_ACTION_VALUE_SHUTDOWN: u32 = 6; +pub const POWERBUTTON_ACTION_VALUE_TURN_OFF_THE_DISPLAY: u32 = 8; +pub const PERFSTATE_POLICY_CHANGE_IDEAL: u32 = 0; +pub const PERFSTATE_POLICY_CHANGE_SINGLE: u32 = 1; +pub const PERFSTATE_POLICY_CHANGE_ROCKET: u32 = 2; +pub const PERFSTATE_POLICY_CHANGE_IDEAL_AGGRESSIVE: u32 = 3; +pub const PERFSTATE_POLICY_CHANGE_DECREASE_MAX: u32 = 2; +pub const PERFSTATE_POLICY_CHANGE_INCREASE_MAX: u32 = 3; +pub const PROCESSOR_THROTTLE_DISABLED: u32 = 0; +pub const PROCESSOR_THROTTLE_ENABLED: u32 = 1; +pub const PROCESSOR_THROTTLE_AUTOMATIC: u32 = 2; +pub const PROCESSOR_PERF_BOOST_POLICY_DISABLED: u32 = 0; +pub const PROCESSOR_PERF_BOOST_POLICY_MAX: u32 = 100; +pub const PROCESSOR_PERF_BOOST_MODE_DISABLED: u32 = 0; +pub const PROCESSOR_PERF_BOOST_MODE_ENABLED: u32 = 1; +pub const PROCESSOR_PERF_BOOST_MODE_AGGRESSIVE: u32 = 2; +pub const PROCESSOR_PERF_BOOST_MODE_EFFICIENT_ENABLED: u32 = 3; +pub const PROCESSOR_PERF_BOOST_MODE_EFFICIENT_AGGRESSIVE: u32 = 4; +pub const PROCESSOR_PERF_BOOST_MODE_AGGRESSIVE_AT_GUARANTEED: u32 = 5; +pub const PROCESSOR_PERF_BOOST_MODE_EFFICIENT_AGGRESSIVE_AT_GUARANTEED: u32 = 6; +pub const PROCESSOR_PERF_BOOST_MODE_MAX: u32 = 6; +pub const PROCESSOR_PERF_AUTONOMOUS_MODE_DISABLED: u32 = 0; +pub const PROCESSOR_PERF_AUTONOMOUS_MODE_ENABLED: u32 = 1; +pub const PROCESSOR_PERF_PERFORMANCE_PREFERENCE: u32 = 255; +pub const PROCESSOR_PERF_ENERGY_PREFERENCE: u32 = 0; +pub const PROCESSOR_PERF_MINIMUM_ACTIVITY_WINDOW: u32 = 0; +pub const PROCESSOR_PERF_MAXIMUM_ACTIVITY_WINDOW: u32 = 1270000000; +pub const PROCESSOR_DUTY_CYCLING_DISABLED: u32 = 0; +pub const PROCESSOR_DUTY_CYCLING_ENABLED: u32 = 1; +pub const CORE_PARKING_POLICY_CHANGE_IDEAL: u32 = 0; +pub const CORE_PARKING_POLICY_CHANGE_SINGLE: u32 = 1; +pub const CORE_PARKING_POLICY_CHANGE_ROCKET: u32 = 2; +pub const CORE_PARKING_POLICY_CHANGE_MULTISTEP: u32 = 3; +pub const CORE_PARKING_POLICY_CHANGE_MAX: u32 = 3; +pub const PARKING_TOPOLOGY_POLICY_DISABLED: u32 = 0; +pub const PARKING_TOPOLOGY_POLICY_ROUNDROBIN: u32 = 1; +pub const PARKING_TOPOLOGY_POLICY_SEQUENTIAL: u32 = 2; +pub const SMT_UNPARKING_POLICY_CORE: u32 = 0; +pub const SMT_UNPARKING_POLICY_CORE_PER_THREAD: u32 = 1; +pub const SMT_UNPARKING_POLICY_LP_ROUNDROBIN: u32 = 2; +pub const SMT_UNPARKING_POLICY_LP_SEQUENTIAL: u32 = 3; +pub const POWER_DEVICE_IDLE_POLICY_PERFORMANCE: u32 = 0; +pub const POWER_DEVICE_IDLE_POLICY_CONSERVATIVE: u32 = 1; +pub const POWER_CONNECTIVITY_IN_STANDBY_DISABLED: u32 = 0; +pub const POWER_CONNECTIVITY_IN_STANDBY_ENABLED: u32 = 1; +pub const POWER_CONNECTIVITY_IN_STANDBY_SYSTEM_MANAGED: u32 = 2; +pub const POWER_DISCONNECTED_STANDBY_MODE_NORMAL: u32 = 0; +pub const POWER_DISCONNECTED_STANDBY_MODE_AGGRESSIVE: u32 = 1; +pub const POWER_SYSTEM_MAXIMUM: u32 = 7; +pub const DIAGNOSTIC_REASON_VERSION: u32 = 0; +pub const DIAGNOSTIC_REASON_SIMPLE_STRING: u32 = 1; +pub const DIAGNOSTIC_REASON_DETAILED_STRING: u32 = 2; +pub const DIAGNOSTIC_REASON_NOT_SPECIFIED: u32 = 2147483648; +pub const DIAGNOSTIC_REASON_INVALID_FLAGS: i64 = -2147483656; +pub const POWER_REQUEST_CONTEXT_VERSION: u32 = 0; +pub const POWER_REQUEST_CONTEXT_SIMPLE_STRING: u32 = 1; +pub const POWER_REQUEST_CONTEXT_DETAILED_STRING: u32 = 2; +pub const PDCAP_D0_SUPPORTED: u32 = 1; +pub const PDCAP_D1_SUPPORTED: u32 = 2; +pub const PDCAP_D2_SUPPORTED: u32 = 4; +pub const PDCAP_D3_SUPPORTED: u32 = 8; +pub const PDCAP_WAKE_FROM_D0_SUPPORTED: u32 = 16; +pub const PDCAP_WAKE_FROM_D1_SUPPORTED: u32 = 32; +pub const PDCAP_WAKE_FROM_D2_SUPPORTED: u32 = 64; +pub const PDCAP_WAKE_FROM_D3_SUPPORTED: u32 = 128; +pub const PDCAP_WARM_EJECT_SUPPORTED: u32 = 256; +pub const POWER_SETTING_VALUE_VERSION: u32 = 1; +pub const POWER_PLATFORM_ROLE_V1: u32 = 1; +pub const POWER_PLATFORM_ROLE_V2: u32 = 2; +pub const POWER_PLATFORM_ROLE_VERSION: u32 = 2; +pub const PROC_IDLE_BUCKET_COUNT: u32 = 6; +pub const PROC_IDLE_BUCKET_COUNT_EX: u32 = 16; +pub const ACPI_PPM_SOFTWARE_ALL: u32 = 252; +pub const ACPI_PPM_SOFTWARE_ANY: u32 = 253; +pub const ACPI_PPM_HARDWARE_ALL: u32 = 254; +pub const MS_PPM_SOFTWARE_ALL: u32 = 1; +pub const PPM_FIRMWARE_ACPI1C2: u32 = 1; +pub const PPM_FIRMWARE_ACPI1C3: u32 = 2; +pub const PPM_FIRMWARE_ACPI1TSTATES: u32 = 4; +pub const PPM_FIRMWARE_CST: u32 = 8; +pub const PPM_FIRMWARE_CSD: u32 = 16; +pub const PPM_FIRMWARE_PCT: u32 = 32; +pub const PPM_FIRMWARE_PSS: u32 = 64; +pub const PPM_FIRMWARE_XPSS: u32 = 128; +pub const PPM_FIRMWARE_PPC: u32 = 256; +pub const PPM_FIRMWARE_PSD: u32 = 512; +pub const PPM_FIRMWARE_PTC: u32 = 1024; +pub const PPM_FIRMWARE_TSS: u32 = 2048; +pub const PPM_FIRMWARE_TPC: u32 = 4096; +pub const PPM_FIRMWARE_TSD: u32 = 8192; +pub const PPM_FIRMWARE_PCCH: u32 = 16384; +pub const PPM_FIRMWARE_PCCP: u32 = 32768; +pub const PPM_FIRMWARE_OSC: u32 = 65536; +pub const PPM_FIRMWARE_PDC: u32 = 131072; +pub const PPM_FIRMWARE_CPC: u32 = 262144; +pub const PPM_FIRMWARE_LPI: u32 = 524288; +pub const PPM_PERFORMANCE_IMPLEMENTATION_NONE: u32 = 0; +pub const PPM_PERFORMANCE_IMPLEMENTATION_PSTATES: u32 = 1; +pub const PPM_PERFORMANCE_IMPLEMENTATION_PCCV1: u32 = 2; +pub const PPM_PERFORMANCE_IMPLEMENTATION_CPPC: u32 = 3; +pub const PPM_PERFORMANCE_IMPLEMENTATION_PEP: u32 = 4; +pub const PPM_IDLE_IMPLEMENTATION_NONE: u32 = 0; +pub const PPM_IDLE_IMPLEMENTATION_CSTATES: u32 = 1; +pub const PPM_IDLE_IMPLEMENTATION_PEP: u32 = 2; +pub const PPM_IDLE_IMPLEMENTATION_MICROPEP: u32 = 3; +pub const PPM_IDLE_IMPLEMENTATION_LPISTATES: u32 = 4; +pub const POWER_ACTION_QUERY_ALLOWED: u32 = 1; +pub const POWER_ACTION_UI_ALLOWED: u32 = 2; +pub const POWER_ACTION_OVERRIDE_APPS: u32 = 4; +pub const POWER_ACTION_HIBERBOOT: u32 = 8; +pub const POWER_ACTION_USER_NOTIFY: u32 = 16; +pub const POWER_ACTION_DOZE_TO_HIBERNATE: u32 = 32; +pub const POWER_ACTION_ACPI_CRITICAL: u32 = 16777216; +pub const POWER_ACTION_ACPI_USER_NOTIFY: u32 = 33554432; +pub const POWER_ACTION_DIRECTED_DRIPS: u32 = 67108864; +pub const POWER_ACTION_PSEUDO_TRANSITION: u32 = 134217728; +pub const POWER_ACTION_LIGHTEST_FIRST: u32 = 268435456; +pub const POWER_ACTION_LOCK_CONSOLE: u32 = 536870912; +pub const POWER_ACTION_DISABLE_WAKES: u32 = 1073741824; +pub const POWER_ACTION_CRITICAL: u32 = 2147483648; +pub const POWER_LEVEL_USER_NOTIFY_TEXT: u32 = 1; +pub const POWER_LEVEL_USER_NOTIFY_SOUND: u32 = 2; +pub const POWER_LEVEL_USER_NOTIFY_EXEC: u32 = 4; +pub const POWER_USER_NOTIFY_BUTTON: u32 = 8; +pub const POWER_USER_NOTIFY_SHUTDOWN: u32 = 16; +pub const POWER_USER_NOTIFY_FORCED_SHUTDOWN: u32 = 32; +pub const POWER_FORCE_TRIGGER_RESET: u32 = 2147483648; +pub const BATTERY_DISCHARGE_FLAGS_EVENTCODE_MASK: u32 = 7; +pub const BATTERY_DISCHARGE_FLAGS_ENABLE: u32 = 2147483648; +pub const NUM_DISCHARGE_POLICIES: u32 = 4; +pub const DISCHARGE_POLICY_CRITICAL: u32 = 0; +pub const DISCHARGE_POLICY_LOW: u32 = 1; +pub const PROCESSOR_IDLESTATE_POLICY_COUNT: u32 = 3; +pub const PO_THROTTLE_NONE: u32 = 0; +pub const PO_THROTTLE_CONSTANT: u32 = 1; +pub const PO_THROTTLE_DEGRADE: u32 = 2; +pub const PO_THROTTLE_ADAPTIVE: u32 = 3; +pub const PO_THROTTLE_MAXIMUM: u32 = 4; +pub const HIBERFILE_TYPE_NONE: u32 = 0; +pub const HIBERFILE_TYPE_REDUCED: u32 = 1; +pub const HIBERFILE_TYPE_FULL: u32 = 2; +pub const HIBERFILE_TYPE_MAX: u32 = 3; +pub const IMAGE_DOS_SIGNATURE: u32 = 23117; +pub const IMAGE_OS2_SIGNATURE: u32 = 17742; +pub const IMAGE_OS2_SIGNATURE_LE: u32 = 17740; +pub const IMAGE_VXD_SIGNATURE: u32 = 17740; +pub const IMAGE_NT_SIGNATURE: u32 = 17744; +pub const IMAGE_SIZEOF_FILE_HEADER: u32 = 20; +pub const IMAGE_FILE_RELOCS_STRIPPED: u32 = 1; +pub const IMAGE_FILE_EXECUTABLE_IMAGE: u32 = 2; +pub const IMAGE_FILE_LINE_NUMS_STRIPPED: u32 = 4; +pub const IMAGE_FILE_LOCAL_SYMS_STRIPPED: u32 = 8; +pub const IMAGE_FILE_AGGRESIVE_WS_TRIM: u32 = 16; +pub const IMAGE_FILE_LARGE_ADDRESS_AWARE: u32 = 32; +pub const IMAGE_FILE_BYTES_REVERSED_LO: u32 = 128; +pub const IMAGE_FILE_32BIT_MACHINE: u32 = 256; +pub const IMAGE_FILE_DEBUG_STRIPPED: u32 = 512; +pub const IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP: u32 = 1024; +pub const IMAGE_FILE_NET_RUN_FROM_SWAP: u32 = 2048; +pub const IMAGE_FILE_SYSTEM: u32 = 4096; +pub const IMAGE_FILE_DLL: u32 = 8192; +pub const IMAGE_FILE_UP_SYSTEM_ONLY: u32 = 16384; +pub const IMAGE_FILE_BYTES_REVERSED_HI: u32 = 32768; +pub const IMAGE_FILE_MACHINE_UNKNOWN: u32 = 0; +pub const IMAGE_FILE_MACHINE_TARGET_HOST: u32 = 1; +pub const IMAGE_FILE_MACHINE_I386: u32 = 332; +pub const IMAGE_FILE_MACHINE_R3000: u32 = 354; +pub const IMAGE_FILE_MACHINE_R4000: u32 = 358; +pub const IMAGE_FILE_MACHINE_R10000: u32 = 360; +pub const IMAGE_FILE_MACHINE_WCEMIPSV2: u32 = 361; +pub const IMAGE_FILE_MACHINE_ALPHA: u32 = 388; +pub const IMAGE_FILE_MACHINE_SH3: u32 = 418; +pub const IMAGE_FILE_MACHINE_SH3DSP: u32 = 419; +pub const IMAGE_FILE_MACHINE_SH3E: u32 = 420; +pub const IMAGE_FILE_MACHINE_SH4: u32 = 422; +pub const IMAGE_FILE_MACHINE_SH5: u32 = 424; +pub const IMAGE_FILE_MACHINE_ARM: u32 = 448; +pub const IMAGE_FILE_MACHINE_THUMB: u32 = 450; +pub const IMAGE_FILE_MACHINE_ARMNT: u32 = 452; +pub const IMAGE_FILE_MACHINE_AM33: u32 = 467; +pub const IMAGE_FILE_MACHINE_POWERPC: u32 = 496; +pub const IMAGE_FILE_MACHINE_POWERPCFP: u32 = 497; +pub const IMAGE_FILE_MACHINE_IA64: u32 = 512; +pub const IMAGE_FILE_MACHINE_MIPS16: u32 = 614; +pub const IMAGE_FILE_MACHINE_ALPHA64: u32 = 644; +pub const IMAGE_FILE_MACHINE_MIPSFPU: u32 = 870; +pub const IMAGE_FILE_MACHINE_MIPSFPU16: u32 = 1126; +pub const IMAGE_FILE_MACHINE_AXP64: u32 = 644; +pub const IMAGE_FILE_MACHINE_TRICORE: u32 = 1312; +pub const IMAGE_FILE_MACHINE_CEF: u32 = 3311; +pub const IMAGE_FILE_MACHINE_EBC: u32 = 3772; +pub const IMAGE_FILE_MACHINE_AMD64: u32 = 34404; +pub const IMAGE_FILE_MACHINE_M32R: u32 = 36929; +pub const IMAGE_FILE_MACHINE_ARM64: u32 = 43620; +pub const IMAGE_FILE_MACHINE_CEE: u32 = 49390; +pub const IMAGE_NUMBEROF_DIRECTORY_ENTRIES: u32 = 16; +pub const IMAGE_NT_OPTIONAL_HDR32_MAGIC: u32 = 267; +pub const IMAGE_NT_OPTIONAL_HDR64_MAGIC: u32 = 523; +pub const IMAGE_ROM_OPTIONAL_HDR_MAGIC: u32 = 263; +pub const IMAGE_NT_OPTIONAL_HDR_MAGIC: u32 = 523; +pub const IMAGE_SUBSYSTEM_UNKNOWN: u32 = 0; +pub const IMAGE_SUBSYSTEM_NATIVE: u32 = 1; +pub const IMAGE_SUBSYSTEM_WINDOWS_GUI: u32 = 2; +pub const IMAGE_SUBSYSTEM_WINDOWS_CUI: u32 = 3; +pub const IMAGE_SUBSYSTEM_OS2_CUI: u32 = 5; +pub const IMAGE_SUBSYSTEM_POSIX_CUI: u32 = 7; +pub const IMAGE_SUBSYSTEM_NATIVE_WINDOWS: u32 = 8; +pub const IMAGE_SUBSYSTEM_WINDOWS_CE_GUI: u32 = 9; +pub const IMAGE_SUBSYSTEM_EFI_APPLICATION: u32 = 10; +pub const IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER: u32 = 11; +pub const IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER: u32 = 12; +pub const IMAGE_SUBSYSTEM_EFI_ROM: u32 = 13; +pub const IMAGE_SUBSYSTEM_XBOX: u32 = 14; +pub const IMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION: u32 = 16; +pub const IMAGE_SUBSYSTEM_XBOX_CODE_CATALOG: u32 = 17; +pub const IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA: u32 = 32; +pub const IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE: u32 = 64; +pub const IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY: u32 = 128; +pub const IMAGE_DLLCHARACTERISTICS_NX_COMPAT: u32 = 256; +pub const IMAGE_DLLCHARACTERISTICS_NO_ISOLATION: u32 = 512; +pub const IMAGE_DLLCHARACTERISTICS_NO_SEH: u32 = 1024; +pub const IMAGE_DLLCHARACTERISTICS_NO_BIND: u32 = 2048; +pub const IMAGE_DLLCHARACTERISTICS_APPCONTAINER: u32 = 4096; +pub const IMAGE_DLLCHARACTERISTICS_WDM_DRIVER: u32 = 8192; +pub const IMAGE_DLLCHARACTERISTICS_GUARD_CF: u32 = 16384; +pub const IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE: u32 = 32768; +pub const IMAGE_DIRECTORY_ENTRY_EXPORT: u32 = 0; +pub const IMAGE_DIRECTORY_ENTRY_IMPORT: u32 = 1; +pub const IMAGE_DIRECTORY_ENTRY_RESOURCE: u32 = 2; +pub const IMAGE_DIRECTORY_ENTRY_EXCEPTION: u32 = 3; +pub const IMAGE_DIRECTORY_ENTRY_SECURITY: u32 = 4; +pub const IMAGE_DIRECTORY_ENTRY_BASERELOC: u32 = 5; +pub const IMAGE_DIRECTORY_ENTRY_DEBUG: u32 = 6; +pub const IMAGE_DIRECTORY_ENTRY_ARCHITECTURE: u32 = 7; +pub const IMAGE_DIRECTORY_ENTRY_GLOBALPTR: u32 = 8; +pub const IMAGE_DIRECTORY_ENTRY_TLS: u32 = 9; +pub const IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG: u32 = 10; +pub const IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT: u32 = 11; +pub const IMAGE_DIRECTORY_ENTRY_IAT: u32 = 12; +pub const IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT: u32 = 13; +pub const IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR: u32 = 14; +pub const IMAGE_SIZEOF_SHORT_NAME: u32 = 8; +pub const IMAGE_SIZEOF_SECTION_HEADER: u32 = 40; +pub const IMAGE_SCN_TYPE_NO_PAD: u32 = 8; +pub const IMAGE_SCN_CNT_CODE: u32 = 32; +pub const IMAGE_SCN_CNT_INITIALIZED_DATA: u32 = 64; +pub const IMAGE_SCN_CNT_UNINITIALIZED_DATA: u32 = 128; +pub const IMAGE_SCN_LNK_OTHER: u32 = 256; +pub const IMAGE_SCN_LNK_INFO: u32 = 512; +pub const IMAGE_SCN_LNK_REMOVE: u32 = 2048; +pub const IMAGE_SCN_LNK_COMDAT: u32 = 4096; +pub const IMAGE_SCN_NO_DEFER_SPEC_EXC: u32 = 16384; +pub const IMAGE_SCN_GPREL: u32 = 32768; +pub const IMAGE_SCN_MEM_FARDATA: u32 = 32768; +pub const IMAGE_SCN_MEM_PURGEABLE: u32 = 131072; +pub const IMAGE_SCN_MEM_16BIT: u32 = 131072; +pub const IMAGE_SCN_MEM_LOCKED: u32 = 262144; +pub const IMAGE_SCN_MEM_PRELOAD: u32 = 524288; +pub const IMAGE_SCN_ALIGN_1BYTES: u32 = 1048576; +pub const IMAGE_SCN_ALIGN_2BYTES: u32 = 2097152; +pub const IMAGE_SCN_ALIGN_4BYTES: u32 = 3145728; +pub const IMAGE_SCN_ALIGN_8BYTES: u32 = 4194304; +pub const IMAGE_SCN_ALIGN_16BYTES: u32 = 5242880; +pub const IMAGE_SCN_ALIGN_32BYTES: u32 = 6291456; +pub const IMAGE_SCN_ALIGN_64BYTES: u32 = 7340032; +pub const IMAGE_SCN_ALIGN_128BYTES: u32 = 8388608; +pub const IMAGE_SCN_ALIGN_256BYTES: u32 = 9437184; +pub const IMAGE_SCN_ALIGN_512BYTES: u32 = 10485760; +pub const IMAGE_SCN_ALIGN_1024BYTES: u32 = 11534336; +pub const IMAGE_SCN_ALIGN_2048BYTES: u32 = 12582912; +pub const IMAGE_SCN_ALIGN_4096BYTES: u32 = 13631488; +pub const IMAGE_SCN_ALIGN_8192BYTES: u32 = 14680064; +pub const IMAGE_SCN_ALIGN_MASK: u32 = 15728640; +pub const IMAGE_SCN_LNK_NRELOC_OVFL: u32 = 16777216; +pub const IMAGE_SCN_MEM_DISCARDABLE: u32 = 33554432; +pub const IMAGE_SCN_MEM_NOT_CACHED: u32 = 67108864; +pub const IMAGE_SCN_MEM_NOT_PAGED: u32 = 134217728; +pub const IMAGE_SCN_MEM_SHARED: u32 = 268435456; +pub const IMAGE_SCN_MEM_EXECUTE: u32 = 536870912; +pub const IMAGE_SCN_MEM_READ: u32 = 1073741824; +pub const IMAGE_SCN_MEM_WRITE: u32 = 2147483648; +pub const IMAGE_SCN_SCALE_INDEX: u32 = 1; +pub const IMAGE_SIZEOF_SYMBOL: u32 = 18; +pub const IMAGE_SYM_SECTION_MAX: u32 = 65279; +pub const IMAGE_SYM_SECTION_MAX_EX: u32 = 2147483647; +pub const IMAGE_SYM_TYPE_NULL: u32 = 0; +pub const IMAGE_SYM_TYPE_VOID: u32 = 1; +pub const IMAGE_SYM_TYPE_CHAR: u32 = 2; +pub const IMAGE_SYM_TYPE_SHORT: u32 = 3; +pub const IMAGE_SYM_TYPE_INT: u32 = 4; +pub const IMAGE_SYM_TYPE_LONG: u32 = 5; +pub const IMAGE_SYM_TYPE_FLOAT: u32 = 6; +pub const IMAGE_SYM_TYPE_DOUBLE: u32 = 7; +pub const IMAGE_SYM_TYPE_STRUCT: u32 = 8; +pub const IMAGE_SYM_TYPE_UNION: u32 = 9; +pub const IMAGE_SYM_TYPE_ENUM: u32 = 10; +pub const IMAGE_SYM_TYPE_MOE: u32 = 11; +pub const IMAGE_SYM_TYPE_BYTE: u32 = 12; +pub const IMAGE_SYM_TYPE_WORD: u32 = 13; +pub const IMAGE_SYM_TYPE_UINT: u32 = 14; +pub const IMAGE_SYM_TYPE_DWORD: u32 = 15; +pub const IMAGE_SYM_TYPE_PCODE: u32 = 32768; +pub const IMAGE_SYM_DTYPE_NULL: u32 = 0; +pub const IMAGE_SYM_DTYPE_POINTER: u32 = 1; +pub const IMAGE_SYM_DTYPE_FUNCTION: u32 = 2; +pub const IMAGE_SYM_DTYPE_ARRAY: u32 = 3; +pub const IMAGE_SYM_CLASS_NULL: u32 = 0; +pub const IMAGE_SYM_CLASS_AUTOMATIC: u32 = 1; +pub const IMAGE_SYM_CLASS_EXTERNAL: u32 = 2; +pub const IMAGE_SYM_CLASS_STATIC: u32 = 3; +pub const IMAGE_SYM_CLASS_REGISTER: u32 = 4; +pub const IMAGE_SYM_CLASS_EXTERNAL_DEF: u32 = 5; +pub const IMAGE_SYM_CLASS_LABEL: u32 = 6; +pub const IMAGE_SYM_CLASS_UNDEFINED_LABEL: u32 = 7; +pub const IMAGE_SYM_CLASS_MEMBER_OF_STRUCT: u32 = 8; +pub const IMAGE_SYM_CLASS_ARGUMENT: u32 = 9; +pub const IMAGE_SYM_CLASS_STRUCT_TAG: u32 = 10; +pub const IMAGE_SYM_CLASS_MEMBER_OF_UNION: u32 = 11; +pub const IMAGE_SYM_CLASS_UNION_TAG: u32 = 12; +pub const IMAGE_SYM_CLASS_TYPE_DEFINITION: u32 = 13; +pub const IMAGE_SYM_CLASS_UNDEFINED_STATIC: u32 = 14; +pub const IMAGE_SYM_CLASS_ENUM_TAG: u32 = 15; +pub const IMAGE_SYM_CLASS_MEMBER_OF_ENUM: u32 = 16; +pub const IMAGE_SYM_CLASS_REGISTER_PARAM: u32 = 17; +pub const IMAGE_SYM_CLASS_BIT_FIELD: u32 = 18; +pub const IMAGE_SYM_CLASS_FAR_EXTERNAL: u32 = 68; +pub const IMAGE_SYM_CLASS_BLOCK: u32 = 100; +pub const IMAGE_SYM_CLASS_FUNCTION: u32 = 101; +pub const IMAGE_SYM_CLASS_END_OF_STRUCT: u32 = 102; +pub const IMAGE_SYM_CLASS_FILE: u32 = 103; +pub const IMAGE_SYM_CLASS_SECTION: u32 = 104; +pub const IMAGE_SYM_CLASS_WEAK_EXTERNAL: u32 = 105; +pub const IMAGE_SYM_CLASS_CLR_TOKEN: u32 = 107; +pub const N_BTMASK: u32 = 15; +pub const N_TMASK: u32 = 48; +pub const N_TMASK1: u32 = 192; +pub const N_TMASK2: u32 = 240; +pub const N_BTSHFT: u32 = 4; +pub const N_TSHIFT: u32 = 2; +pub const IMAGE_COMDAT_SELECT_NODUPLICATES: u32 = 1; +pub const IMAGE_COMDAT_SELECT_ANY: u32 = 2; +pub const IMAGE_COMDAT_SELECT_SAME_SIZE: u32 = 3; +pub const IMAGE_COMDAT_SELECT_EXACT_MATCH: u32 = 4; +pub const IMAGE_COMDAT_SELECT_ASSOCIATIVE: u32 = 5; +pub const IMAGE_COMDAT_SELECT_LARGEST: u32 = 6; +pub const IMAGE_COMDAT_SELECT_NEWEST: u32 = 7; +pub const IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY: u32 = 1; +pub const IMAGE_WEAK_EXTERN_SEARCH_LIBRARY: u32 = 2; +pub const IMAGE_WEAK_EXTERN_SEARCH_ALIAS: u32 = 3; +pub const IMAGE_WEAK_EXTERN_ANTI_DEPENDENCY: u32 = 4; +pub const IMAGE_REL_I386_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_I386_DIR16: u32 = 1; +pub const IMAGE_REL_I386_REL16: u32 = 2; +pub const IMAGE_REL_I386_DIR32: u32 = 6; +pub const IMAGE_REL_I386_DIR32NB: u32 = 7; +pub const IMAGE_REL_I386_SEG12: u32 = 9; +pub const IMAGE_REL_I386_SECTION: u32 = 10; +pub const IMAGE_REL_I386_SECREL: u32 = 11; +pub const IMAGE_REL_I386_TOKEN: u32 = 12; +pub const IMAGE_REL_I386_SECREL7: u32 = 13; +pub const IMAGE_REL_I386_REL32: u32 = 20; +pub const IMAGE_REL_MIPS_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_MIPS_REFHALF: u32 = 1; +pub const IMAGE_REL_MIPS_REFWORD: u32 = 2; +pub const IMAGE_REL_MIPS_JMPADDR: u32 = 3; +pub const IMAGE_REL_MIPS_REFHI: u32 = 4; +pub const IMAGE_REL_MIPS_REFLO: u32 = 5; +pub const IMAGE_REL_MIPS_GPREL: u32 = 6; +pub const IMAGE_REL_MIPS_LITERAL: u32 = 7; +pub const IMAGE_REL_MIPS_SECTION: u32 = 10; +pub const IMAGE_REL_MIPS_SECREL: u32 = 11; +pub const IMAGE_REL_MIPS_SECRELLO: u32 = 12; +pub const IMAGE_REL_MIPS_SECRELHI: u32 = 13; +pub const IMAGE_REL_MIPS_TOKEN: u32 = 14; +pub const IMAGE_REL_MIPS_JMPADDR16: u32 = 16; +pub const IMAGE_REL_MIPS_REFWORDNB: u32 = 34; +pub const IMAGE_REL_MIPS_PAIR: u32 = 37; +pub const IMAGE_REL_ALPHA_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_ALPHA_REFLONG: u32 = 1; +pub const IMAGE_REL_ALPHA_REFQUAD: u32 = 2; +pub const IMAGE_REL_ALPHA_GPREL32: u32 = 3; +pub const IMAGE_REL_ALPHA_LITERAL: u32 = 4; +pub const IMAGE_REL_ALPHA_LITUSE: u32 = 5; +pub const IMAGE_REL_ALPHA_GPDISP: u32 = 6; +pub const IMAGE_REL_ALPHA_BRADDR: u32 = 7; +pub const IMAGE_REL_ALPHA_HINT: u32 = 8; +pub const IMAGE_REL_ALPHA_INLINE_REFLONG: u32 = 9; +pub const IMAGE_REL_ALPHA_REFHI: u32 = 10; +pub const IMAGE_REL_ALPHA_REFLO: u32 = 11; +pub const IMAGE_REL_ALPHA_PAIR: u32 = 12; +pub const IMAGE_REL_ALPHA_MATCH: u32 = 13; +pub const IMAGE_REL_ALPHA_SECTION: u32 = 14; +pub const IMAGE_REL_ALPHA_SECREL: u32 = 15; +pub const IMAGE_REL_ALPHA_REFLONGNB: u32 = 16; +pub const IMAGE_REL_ALPHA_SECRELLO: u32 = 17; +pub const IMAGE_REL_ALPHA_SECRELHI: u32 = 18; +pub const IMAGE_REL_ALPHA_REFQ3: u32 = 19; +pub const IMAGE_REL_ALPHA_REFQ2: u32 = 20; +pub const IMAGE_REL_ALPHA_REFQ1: u32 = 21; +pub const IMAGE_REL_ALPHA_GPRELLO: u32 = 22; +pub const IMAGE_REL_ALPHA_GPRELHI: u32 = 23; +pub const IMAGE_REL_PPC_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_PPC_ADDR64: u32 = 1; +pub const IMAGE_REL_PPC_ADDR32: u32 = 2; +pub const IMAGE_REL_PPC_ADDR24: u32 = 3; +pub const IMAGE_REL_PPC_ADDR16: u32 = 4; +pub const IMAGE_REL_PPC_ADDR14: u32 = 5; +pub const IMAGE_REL_PPC_REL24: u32 = 6; +pub const IMAGE_REL_PPC_REL14: u32 = 7; +pub const IMAGE_REL_PPC_TOCREL16: u32 = 8; +pub const IMAGE_REL_PPC_TOCREL14: u32 = 9; +pub const IMAGE_REL_PPC_ADDR32NB: u32 = 10; +pub const IMAGE_REL_PPC_SECREL: u32 = 11; +pub const IMAGE_REL_PPC_SECTION: u32 = 12; +pub const IMAGE_REL_PPC_IFGLUE: u32 = 13; +pub const IMAGE_REL_PPC_IMGLUE: u32 = 14; +pub const IMAGE_REL_PPC_SECREL16: u32 = 15; +pub const IMAGE_REL_PPC_REFHI: u32 = 16; +pub const IMAGE_REL_PPC_REFLO: u32 = 17; +pub const IMAGE_REL_PPC_PAIR: u32 = 18; +pub const IMAGE_REL_PPC_SECRELLO: u32 = 19; +pub const IMAGE_REL_PPC_SECRELHI: u32 = 20; +pub const IMAGE_REL_PPC_GPREL: u32 = 21; +pub const IMAGE_REL_PPC_TOKEN: u32 = 22; +pub const IMAGE_REL_PPC_TYPEMASK: u32 = 255; +pub const IMAGE_REL_PPC_NEG: u32 = 256; +pub const IMAGE_REL_PPC_BRTAKEN: u32 = 512; +pub const IMAGE_REL_PPC_BRNTAKEN: u32 = 1024; +pub const IMAGE_REL_PPC_TOCDEFN: u32 = 2048; +pub const IMAGE_REL_SH3_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_SH3_DIRECT16: u32 = 1; +pub const IMAGE_REL_SH3_DIRECT32: u32 = 2; +pub const IMAGE_REL_SH3_DIRECT8: u32 = 3; +pub const IMAGE_REL_SH3_DIRECT8_WORD: u32 = 4; +pub const IMAGE_REL_SH3_DIRECT8_LONG: u32 = 5; +pub const IMAGE_REL_SH3_DIRECT4: u32 = 6; +pub const IMAGE_REL_SH3_DIRECT4_WORD: u32 = 7; +pub const IMAGE_REL_SH3_DIRECT4_LONG: u32 = 8; +pub const IMAGE_REL_SH3_PCREL8_WORD: u32 = 9; +pub const IMAGE_REL_SH3_PCREL8_LONG: u32 = 10; +pub const IMAGE_REL_SH3_PCREL12_WORD: u32 = 11; +pub const IMAGE_REL_SH3_STARTOF_SECTION: u32 = 12; +pub const IMAGE_REL_SH3_SIZEOF_SECTION: u32 = 13; +pub const IMAGE_REL_SH3_SECTION: u32 = 14; +pub const IMAGE_REL_SH3_SECREL: u32 = 15; +pub const IMAGE_REL_SH3_DIRECT32_NB: u32 = 16; +pub const IMAGE_REL_SH3_GPREL4_LONG: u32 = 17; +pub const IMAGE_REL_SH3_TOKEN: u32 = 18; +pub const IMAGE_REL_SHM_PCRELPT: u32 = 19; +pub const IMAGE_REL_SHM_REFLO: u32 = 20; +pub const IMAGE_REL_SHM_REFHALF: u32 = 21; +pub const IMAGE_REL_SHM_RELLO: u32 = 22; +pub const IMAGE_REL_SHM_RELHALF: u32 = 23; +pub const IMAGE_REL_SHM_PAIR: u32 = 24; +pub const IMAGE_REL_SH_NOMODE: u32 = 32768; +pub const IMAGE_REL_ARM_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_ARM_ADDR32: u32 = 1; +pub const IMAGE_REL_ARM_ADDR32NB: u32 = 2; +pub const IMAGE_REL_ARM_BRANCH24: u32 = 3; +pub const IMAGE_REL_ARM_BRANCH11: u32 = 4; +pub const IMAGE_REL_ARM_TOKEN: u32 = 5; +pub const IMAGE_REL_ARM_GPREL12: u32 = 6; +pub const IMAGE_REL_ARM_GPREL7: u32 = 7; +pub const IMAGE_REL_ARM_BLX24: u32 = 8; +pub const IMAGE_REL_ARM_BLX11: u32 = 9; +pub const IMAGE_REL_ARM_SECTION: u32 = 14; +pub const IMAGE_REL_ARM_SECREL: u32 = 15; +pub const IMAGE_REL_ARM_MOV32A: u32 = 16; +pub const IMAGE_REL_ARM_MOV32: u32 = 16; +pub const IMAGE_REL_ARM_MOV32T: u32 = 17; +pub const IMAGE_REL_THUMB_MOV32: u32 = 17; +pub const IMAGE_REL_ARM_BRANCH20T: u32 = 18; +pub const IMAGE_REL_THUMB_BRANCH20: u32 = 18; +pub const IMAGE_REL_ARM_BRANCH24T: u32 = 20; +pub const IMAGE_REL_THUMB_BRANCH24: u32 = 20; +pub const IMAGE_REL_ARM_BLX23T: u32 = 21; +pub const IMAGE_REL_THUMB_BLX23: u32 = 21; +pub const IMAGE_REL_AM_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_AM_ADDR32: u32 = 1; +pub const IMAGE_REL_AM_ADDR32NB: u32 = 2; +pub const IMAGE_REL_AM_CALL32: u32 = 3; +pub const IMAGE_REL_AM_FUNCINFO: u32 = 4; +pub const IMAGE_REL_AM_REL32_1: u32 = 5; +pub const IMAGE_REL_AM_REL32_2: u32 = 6; +pub const IMAGE_REL_AM_SECREL: u32 = 7; +pub const IMAGE_REL_AM_SECTION: u32 = 8; +pub const IMAGE_REL_AM_TOKEN: u32 = 9; +pub const IMAGE_REL_ARM64_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_ARM64_ADDR32: u32 = 1; +pub const IMAGE_REL_ARM64_ADDR32NB: u32 = 2; +pub const IMAGE_REL_ARM64_BRANCH26: u32 = 3; +pub const IMAGE_REL_ARM64_PAGEBASE_REL21: u32 = 4; +pub const IMAGE_REL_ARM64_REL21: u32 = 5; +pub const IMAGE_REL_ARM64_PAGEOFFSET_12A: u32 = 6; +pub const IMAGE_REL_ARM64_PAGEOFFSET_12L: u32 = 7; +pub const IMAGE_REL_ARM64_SECREL: u32 = 8; +pub const IMAGE_REL_ARM64_SECREL_LOW12A: u32 = 9; +pub const IMAGE_REL_ARM64_SECREL_HIGH12A: u32 = 10; +pub const IMAGE_REL_ARM64_SECREL_LOW12L: u32 = 11; +pub const IMAGE_REL_ARM64_TOKEN: u32 = 12; +pub const IMAGE_REL_ARM64_SECTION: u32 = 13; +pub const IMAGE_REL_ARM64_ADDR64: u32 = 14; +pub const IMAGE_REL_ARM64_BRANCH19: u32 = 15; +pub const IMAGE_REL_AMD64_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_AMD64_ADDR64: u32 = 1; +pub const IMAGE_REL_AMD64_ADDR32: u32 = 2; +pub const IMAGE_REL_AMD64_ADDR32NB: u32 = 3; +pub const IMAGE_REL_AMD64_REL32: u32 = 4; +pub const IMAGE_REL_AMD64_REL32_1: u32 = 5; +pub const IMAGE_REL_AMD64_REL32_2: u32 = 6; +pub const IMAGE_REL_AMD64_REL32_3: u32 = 7; +pub const IMAGE_REL_AMD64_REL32_4: u32 = 8; +pub const IMAGE_REL_AMD64_REL32_5: u32 = 9; +pub const IMAGE_REL_AMD64_SECTION: u32 = 10; +pub const IMAGE_REL_AMD64_SECREL: u32 = 11; +pub const IMAGE_REL_AMD64_SECREL7: u32 = 12; +pub const IMAGE_REL_AMD64_TOKEN: u32 = 13; +pub const IMAGE_REL_AMD64_SREL32: u32 = 14; +pub const IMAGE_REL_AMD64_PAIR: u32 = 15; +pub const IMAGE_REL_AMD64_SSPAN32: u32 = 16; +pub const IMAGE_REL_AMD64_EHANDLER: u32 = 17; +pub const IMAGE_REL_AMD64_IMPORT_BR: u32 = 18; +pub const IMAGE_REL_AMD64_IMPORT_CALL: u32 = 19; +pub const IMAGE_REL_AMD64_CFG_BR: u32 = 20; +pub const IMAGE_REL_AMD64_CFG_BR_REX: u32 = 21; +pub const IMAGE_REL_AMD64_CFG_CALL: u32 = 22; +pub const IMAGE_REL_AMD64_INDIR_BR: u32 = 23; +pub const IMAGE_REL_AMD64_INDIR_BR_REX: u32 = 24; +pub const IMAGE_REL_AMD64_INDIR_CALL: u32 = 25; +pub const IMAGE_REL_AMD64_INDIR_BR_SWITCHTABLE_FIRST: u32 = 32; +pub const IMAGE_REL_AMD64_INDIR_BR_SWITCHTABLE_LAST: u32 = 47; +pub const IMAGE_REL_IA64_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_IA64_IMM14: u32 = 1; +pub const IMAGE_REL_IA64_IMM22: u32 = 2; +pub const IMAGE_REL_IA64_IMM64: u32 = 3; +pub const IMAGE_REL_IA64_DIR32: u32 = 4; +pub const IMAGE_REL_IA64_DIR64: u32 = 5; +pub const IMAGE_REL_IA64_PCREL21B: u32 = 6; +pub const IMAGE_REL_IA64_PCREL21M: u32 = 7; +pub const IMAGE_REL_IA64_PCREL21F: u32 = 8; +pub const IMAGE_REL_IA64_GPREL22: u32 = 9; +pub const IMAGE_REL_IA64_LTOFF22: u32 = 10; +pub const IMAGE_REL_IA64_SECTION: u32 = 11; +pub const IMAGE_REL_IA64_SECREL22: u32 = 12; +pub const IMAGE_REL_IA64_SECREL64I: u32 = 13; +pub const IMAGE_REL_IA64_SECREL32: u32 = 14; +pub const IMAGE_REL_IA64_DIR32NB: u32 = 16; +pub const IMAGE_REL_IA64_SREL14: u32 = 17; +pub const IMAGE_REL_IA64_SREL22: u32 = 18; +pub const IMAGE_REL_IA64_SREL32: u32 = 19; +pub const IMAGE_REL_IA64_UREL32: u32 = 20; +pub const IMAGE_REL_IA64_PCREL60X: u32 = 21; +pub const IMAGE_REL_IA64_PCREL60B: u32 = 22; +pub const IMAGE_REL_IA64_PCREL60F: u32 = 23; +pub const IMAGE_REL_IA64_PCREL60I: u32 = 24; +pub const IMAGE_REL_IA64_PCREL60M: u32 = 25; +pub const IMAGE_REL_IA64_IMMGPREL64: u32 = 26; +pub const IMAGE_REL_IA64_TOKEN: u32 = 27; +pub const IMAGE_REL_IA64_GPREL32: u32 = 28; +pub const IMAGE_REL_IA64_ADDEND: u32 = 31; +pub const IMAGE_REL_CEF_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_CEF_ADDR32: u32 = 1; +pub const IMAGE_REL_CEF_ADDR64: u32 = 2; +pub const IMAGE_REL_CEF_ADDR32NB: u32 = 3; +pub const IMAGE_REL_CEF_SECTION: u32 = 4; +pub const IMAGE_REL_CEF_SECREL: u32 = 5; +pub const IMAGE_REL_CEF_TOKEN: u32 = 6; +pub const IMAGE_REL_CEE_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_CEE_ADDR32: u32 = 1; +pub const IMAGE_REL_CEE_ADDR64: u32 = 2; +pub const IMAGE_REL_CEE_ADDR32NB: u32 = 3; +pub const IMAGE_REL_CEE_SECTION: u32 = 4; +pub const IMAGE_REL_CEE_SECREL: u32 = 5; +pub const IMAGE_REL_CEE_TOKEN: u32 = 6; +pub const IMAGE_REL_M32R_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_M32R_ADDR32: u32 = 1; +pub const IMAGE_REL_M32R_ADDR32NB: u32 = 2; +pub const IMAGE_REL_M32R_ADDR24: u32 = 3; +pub const IMAGE_REL_M32R_GPREL16: u32 = 4; +pub const IMAGE_REL_M32R_PCREL24: u32 = 5; +pub const IMAGE_REL_M32R_PCREL16: u32 = 6; +pub const IMAGE_REL_M32R_PCREL8: u32 = 7; +pub const IMAGE_REL_M32R_REFHALF: u32 = 8; +pub const IMAGE_REL_M32R_REFHI: u32 = 9; +pub const IMAGE_REL_M32R_REFLO: u32 = 10; +pub const IMAGE_REL_M32R_PAIR: u32 = 11; +pub const IMAGE_REL_M32R_SECTION: u32 = 12; +pub const IMAGE_REL_M32R_SECREL32: u32 = 13; +pub const IMAGE_REL_M32R_TOKEN: u32 = 14; +pub const IMAGE_REL_EBC_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_EBC_ADDR32NB: u32 = 1; +pub const IMAGE_REL_EBC_REL32: u32 = 2; +pub const IMAGE_REL_EBC_SECTION: u32 = 3; +pub const IMAGE_REL_EBC_SECREL: u32 = 4; +pub const EMARCH_ENC_I17_IMM7B_INST_WORD_X: u32 = 3; +pub const EMARCH_ENC_I17_IMM7B_SIZE_X: u32 = 7; +pub const EMARCH_ENC_I17_IMM7B_INST_WORD_POS_X: u32 = 4; +pub const EMARCH_ENC_I17_IMM7B_VAL_POS_X: u32 = 0; +pub const EMARCH_ENC_I17_IMM9D_INST_WORD_X: u32 = 3; +pub const EMARCH_ENC_I17_IMM9D_SIZE_X: u32 = 9; +pub const EMARCH_ENC_I17_IMM9D_INST_WORD_POS_X: u32 = 18; +pub const EMARCH_ENC_I17_IMM9D_VAL_POS_X: u32 = 7; +pub const EMARCH_ENC_I17_IMM5C_INST_WORD_X: u32 = 3; +pub const EMARCH_ENC_I17_IMM5C_SIZE_X: u32 = 5; +pub const EMARCH_ENC_I17_IMM5C_INST_WORD_POS_X: u32 = 13; +pub const EMARCH_ENC_I17_IMM5C_VAL_POS_X: u32 = 16; +pub const EMARCH_ENC_I17_IC_INST_WORD_X: u32 = 3; +pub const EMARCH_ENC_I17_IC_SIZE_X: u32 = 1; +pub const EMARCH_ENC_I17_IC_INST_WORD_POS_X: u32 = 12; +pub const EMARCH_ENC_I17_IC_VAL_POS_X: u32 = 21; +pub const EMARCH_ENC_I17_IMM41a_INST_WORD_X: u32 = 1; +pub const EMARCH_ENC_I17_IMM41a_SIZE_X: u32 = 10; +pub const EMARCH_ENC_I17_IMM41a_INST_WORD_POS_X: u32 = 14; +pub const EMARCH_ENC_I17_IMM41a_VAL_POS_X: u32 = 22; +pub const EMARCH_ENC_I17_IMM41b_INST_WORD_X: u32 = 1; +pub const EMARCH_ENC_I17_IMM41b_SIZE_X: u32 = 8; +pub const EMARCH_ENC_I17_IMM41b_INST_WORD_POS_X: u32 = 24; +pub const EMARCH_ENC_I17_IMM41b_VAL_POS_X: u32 = 32; +pub const EMARCH_ENC_I17_IMM41c_INST_WORD_X: u32 = 2; +pub const EMARCH_ENC_I17_IMM41c_SIZE_X: u32 = 23; +pub const EMARCH_ENC_I17_IMM41c_INST_WORD_POS_X: u32 = 0; +pub const EMARCH_ENC_I17_IMM41c_VAL_POS_X: u32 = 40; +pub const EMARCH_ENC_I17_SIGN_INST_WORD_X: u32 = 3; +pub const EMARCH_ENC_I17_SIGN_SIZE_X: u32 = 1; +pub const EMARCH_ENC_I17_SIGN_INST_WORD_POS_X: u32 = 27; +pub const EMARCH_ENC_I17_SIGN_VAL_POS_X: u32 = 63; +pub const X3_OPCODE_INST_WORD_X: u32 = 3; +pub const X3_OPCODE_SIZE_X: u32 = 4; +pub const X3_OPCODE_INST_WORD_POS_X: u32 = 28; +pub const X3_OPCODE_SIGN_VAL_POS_X: u32 = 0; +pub const X3_I_INST_WORD_X: u32 = 3; +pub const X3_I_SIZE_X: u32 = 1; +pub const X3_I_INST_WORD_POS_X: u32 = 27; +pub const X3_I_SIGN_VAL_POS_X: u32 = 59; +pub const X3_D_WH_INST_WORD_X: u32 = 3; +pub const X3_D_WH_SIZE_X: u32 = 3; +pub const X3_D_WH_INST_WORD_POS_X: u32 = 24; +pub const X3_D_WH_SIGN_VAL_POS_X: u32 = 0; +pub const X3_IMM20_INST_WORD_X: u32 = 3; +pub const X3_IMM20_SIZE_X: u32 = 20; +pub const X3_IMM20_INST_WORD_POS_X: u32 = 4; +pub const X3_IMM20_SIGN_VAL_POS_X: u32 = 0; +pub const X3_IMM39_1_INST_WORD_X: u32 = 2; +pub const X3_IMM39_1_SIZE_X: u32 = 23; +pub const X3_IMM39_1_INST_WORD_POS_X: u32 = 0; +pub const X3_IMM39_1_SIGN_VAL_POS_X: u32 = 36; +pub const X3_IMM39_2_INST_WORD_X: u32 = 1; +pub const X3_IMM39_2_SIZE_X: u32 = 16; +pub const X3_IMM39_2_INST_WORD_POS_X: u32 = 16; +pub const X3_IMM39_2_SIGN_VAL_POS_X: u32 = 20; +pub const X3_P_INST_WORD_X: u32 = 3; +pub const X3_P_SIZE_X: u32 = 4; +pub const X3_P_INST_WORD_POS_X: u32 = 0; +pub const X3_P_SIGN_VAL_POS_X: u32 = 0; +pub const X3_TMPLT_INST_WORD_X: u32 = 0; +pub const X3_TMPLT_SIZE_X: u32 = 4; +pub const X3_TMPLT_INST_WORD_POS_X: u32 = 0; +pub const X3_TMPLT_SIGN_VAL_POS_X: u32 = 0; +pub const X3_BTYPE_QP_INST_WORD_X: u32 = 2; +pub const X3_BTYPE_QP_SIZE_X: u32 = 9; +pub const X3_BTYPE_QP_INST_WORD_POS_X: u32 = 23; +pub const X3_BTYPE_QP_INST_VAL_POS_X: u32 = 0; +pub const X3_EMPTY_INST_WORD_X: u32 = 1; +pub const X3_EMPTY_SIZE_X: u32 = 2; +pub const X3_EMPTY_INST_WORD_POS_X: u32 = 14; +pub const X3_EMPTY_INST_VAL_POS_X: u32 = 0; +pub const IMAGE_REL_BASED_ABSOLUTE: u32 = 0; +pub const IMAGE_REL_BASED_HIGH: u32 = 1; +pub const IMAGE_REL_BASED_LOW: u32 = 2; +pub const IMAGE_REL_BASED_HIGHLOW: u32 = 3; +pub const IMAGE_REL_BASED_HIGHADJ: u32 = 4; +pub const IMAGE_REL_BASED_MACHINE_SPECIFIC_5: u32 = 5; +pub const IMAGE_REL_BASED_RESERVED: u32 = 6; +pub const IMAGE_REL_BASED_MACHINE_SPECIFIC_7: u32 = 7; +pub const IMAGE_REL_BASED_MACHINE_SPECIFIC_8: u32 = 8; +pub const IMAGE_REL_BASED_MACHINE_SPECIFIC_9: u32 = 9; +pub const IMAGE_REL_BASED_DIR64: u32 = 10; +pub const IMAGE_REL_BASED_IA64_IMM64: u32 = 9; +pub const IMAGE_REL_BASED_MIPS_JMPADDR: u32 = 5; +pub const IMAGE_REL_BASED_MIPS_JMPADDR16: u32 = 9; +pub const IMAGE_REL_BASED_ARM_MOV32: u32 = 5; +pub const IMAGE_REL_BASED_THUMB_MOV32: u32 = 7; +pub const IMAGE_ARCHIVE_START_SIZE: u32 = 8; +pub const IMAGE_ARCHIVE_START: &[u8; 9] = b"!\n\0"; +pub const IMAGE_ARCHIVE_END: &[u8; 3] = b"`\n\0"; +pub const IMAGE_ARCHIVE_PAD: &[u8; 2] = b"\n\0"; +pub const IMAGE_ARCHIVE_LINKER_MEMBER: &[u8; 17] = b"/ \0"; +pub const IMAGE_ARCHIVE_LONGNAMES_MEMBER: &[u8; 17] = b"// \0"; +pub const IMAGE_ARCHIVE_HYBRIDMAP_MEMBER: &[u8; 17] = b"// \0"; +pub const IMAGE_SIZEOF_ARCHIVE_MEMBER_HDR: u32 = 60; +pub const IMAGE_ORDINAL_FLAG64: i64 = -9223372036854775808; +pub const IMAGE_ORDINAL_FLAG32: u32 = 2147483648; +pub const IMAGE_ORDINAL_FLAG: i64 = -9223372036854775808; +pub const IMAGE_RESOURCE_NAME_IS_STRING: u32 = 2147483648; +pub const IMAGE_RESOURCE_DATA_IS_DIRECTORY: u32 = 2147483648; +pub const IMAGE_DYNAMIC_RELOCATION_GUARD_RF_PROLOGUE: u32 = 1; +pub const IMAGE_DYNAMIC_RELOCATION_GUARD_RF_EPILOGUE: u32 = 2; +pub const IMAGE_DYNAMIC_RELOCATION_GUARD_IMPORT_CONTROL_TRANSFER: u32 = 3; +pub const IMAGE_DYNAMIC_RELOCATION_GUARD_INDIR_CONTROL_TRANSFER: u32 = 4; +pub const IMAGE_DYNAMIC_RELOCATION_GUARD_SWITCHTABLE_BRANCH: u32 = 5; +pub const IMAGE_DYNAMIC_RELOCATION_FUNCTION_OVERRIDE: u32 = 7; +pub const IMAGE_FUNCTION_OVERRIDE_INVALID: u32 = 0; +pub const IMAGE_FUNCTION_OVERRIDE_X64_REL32: u32 = 1; +pub const IMAGE_FUNCTION_OVERRIDE_ARM64_BRANCH26: u32 = 2; +pub const IMAGE_FUNCTION_OVERRIDE_ARM64_THUNK: u32 = 3; +pub const IMAGE_HOT_PATCH_BASE_OBLIGATORY: u32 = 1; +pub const IMAGE_HOT_PATCH_BASE_CAN_ROLL_BACK: u32 = 2; +pub const IMAGE_HOT_PATCH_CHUNK_INVERSE: u32 = 2147483648; +pub const IMAGE_HOT_PATCH_CHUNK_OBLIGATORY: u32 = 1073741824; +pub const IMAGE_HOT_PATCH_CHUNK_RESERVED: u32 = 1072705536; +pub const IMAGE_HOT_PATCH_CHUNK_TYPE: u32 = 1032192; +pub const IMAGE_HOT_PATCH_CHUNK_SOURCE_RVA: u32 = 32768; +pub const IMAGE_HOT_PATCH_CHUNK_TARGET_RVA: u32 = 16384; +pub const IMAGE_HOT_PATCH_CHUNK_SIZE: u32 = 4095; +pub const IMAGE_HOT_PATCH_NONE: u32 = 0; +pub const IMAGE_HOT_PATCH_FUNCTION: u32 = 114688; +pub const IMAGE_HOT_PATCH_ABSOLUTE: u32 = 180224; +pub const IMAGE_HOT_PATCH_REL32: u32 = 245760; +pub const IMAGE_HOT_PATCH_CALL_TARGET: u32 = 278528; +pub const IMAGE_HOT_PATCH_INDIRECT: u32 = 376832; +pub const IMAGE_HOT_PATCH_NO_CALL_TARGET: u32 = 409600; +pub const IMAGE_HOT_PATCH_DYNAMIC_VALUE: u32 = 491520; +pub const IMAGE_GUARD_CF_INSTRUMENTED: u32 = 256; +pub const IMAGE_GUARD_CFW_INSTRUMENTED: u32 = 512; +pub const IMAGE_GUARD_CF_FUNCTION_TABLE_PRESENT: u32 = 1024; +pub const IMAGE_GUARD_SECURITY_COOKIE_UNUSED: u32 = 2048; +pub const IMAGE_GUARD_PROTECT_DELAYLOAD_IAT: u32 = 4096; +pub const IMAGE_GUARD_DELAYLOAD_IAT_IN_ITS_OWN_SECTION: u32 = 8192; +pub const IMAGE_GUARD_CF_EXPORT_SUPPRESSION_INFO_PRESENT: u32 = 16384; +pub const IMAGE_GUARD_CF_ENABLE_EXPORT_SUPPRESSION: u32 = 32768; +pub const IMAGE_GUARD_CF_LONGJUMP_TABLE_PRESENT: u32 = 65536; +pub const IMAGE_GUARD_RF_INSTRUMENTED: u32 = 131072; +pub const IMAGE_GUARD_RF_ENABLE: u32 = 262144; +pub const IMAGE_GUARD_RF_STRICT: u32 = 524288; +pub const IMAGE_GUARD_RETPOLINE_PRESENT: u32 = 1048576; +pub const IMAGE_GUARD_EH_CONTINUATION_TABLE_PRESENT: u32 = 4194304; +pub const IMAGE_GUARD_XFG_ENABLED: u32 = 8388608; +pub const IMAGE_GUARD_CASTGUARD_PRESENT: u32 = 16777216; +pub const IMAGE_GUARD_MEMCPY_PRESENT: u32 = 33554432; +pub const IMAGE_GUARD_CF_FUNCTION_TABLE_SIZE_MASK: u32 = 4026531840; +pub const IMAGE_GUARD_CF_FUNCTION_TABLE_SIZE_SHIFT: u32 = 28; +pub const IMAGE_GUARD_FLAG_FID_SUPPRESSED: u32 = 1; +pub const IMAGE_GUARD_FLAG_EXPORT_SUPPRESSED: u32 = 2; +pub const IMAGE_GUARD_FLAG_FID_LANGEXCPTHANDLER: u32 = 4; +pub const IMAGE_GUARD_FLAG_FID_XFG: u32 = 8; +pub const IMAGE_ENCLAVE_LONG_ID_LENGTH: u32 = 32; +pub const IMAGE_ENCLAVE_SHORT_ID_LENGTH: u32 = 16; +pub const IMAGE_ENCLAVE_POLICY_DEBUGGABLE: u32 = 1; +pub const IMAGE_ENCLAVE_FLAG_PRIMARY_IMAGE: u32 = 1; +pub const IMAGE_ENCLAVE_IMPORT_MATCH_NONE: u32 = 0; +pub const IMAGE_ENCLAVE_IMPORT_MATCH_UNIQUE_ID: u32 = 1; +pub const IMAGE_ENCLAVE_IMPORT_MATCH_AUTHOR_ID: u32 = 2; +pub const IMAGE_ENCLAVE_IMPORT_MATCH_FAMILY_ID: u32 = 3; +pub const IMAGE_ENCLAVE_IMPORT_MATCH_IMAGE_ID: u32 = 4; +pub const IMAGE_DEBUG_TYPE_UNKNOWN: u32 = 0; +pub const IMAGE_DEBUG_TYPE_COFF: u32 = 1; +pub const IMAGE_DEBUG_TYPE_CODEVIEW: u32 = 2; +pub const IMAGE_DEBUG_TYPE_FPO: u32 = 3; +pub const IMAGE_DEBUG_TYPE_MISC: u32 = 4; +pub const IMAGE_DEBUG_TYPE_EXCEPTION: u32 = 5; +pub const IMAGE_DEBUG_TYPE_FIXUP: u32 = 6; +pub const IMAGE_DEBUG_TYPE_OMAP_TO_SRC: u32 = 7; +pub const IMAGE_DEBUG_TYPE_OMAP_FROM_SRC: u32 = 8; +pub const IMAGE_DEBUG_TYPE_BORLAND: u32 = 9; +pub const IMAGE_DEBUG_TYPE_RESERVED10: u32 = 10; +pub const IMAGE_DEBUG_TYPE_BBT: u32 = 10; +pub const IMAGE_DEBUG_TYPE_CLSID: u32 = 11; +pub const IMAGE_DEBUG_TYPE_VC_FEATURE: u32 = 12; +pub const IMAGE_DEBUG_TYPE_POGO: u32 = 13; +pub const IMAGE_DEBUG_TYPE_ILTCG: u32 = 14; +pub const IMAGE_DEBUG_TYPE_MPX: u32 = 15; +pub const IMAGE_DEBUG_TYPE_REPRO: u32 = 16; +pub const IMAGE_DEBUG_TYPE_SPGO: u32 = 18; +pub const IMAGE_DEBUG_TYPE_EX_DLLCHARACTERISTICS: u32 = 20; +pub const IMAGE_DLLCHARACTERISTICS_EX_CET_COMPAT: u32 = 1; +pub const IMAGE_DLLCHARACTERISTICS_EX_CET_COMPAT_STRICT_MODE: u32 = 2; +pub const IMAGE_DLLCHARACTERISTICS_EX_CET_SET_CONTEXT_IP_VALIDATION_RELAXED_MODE: u32 = 4; +pub const IMAGE_DLLCHARACTERISTICS_EX_CET_DYNAMIC_APIS_ALLOW_IN_PROC: u32 = 8; +pub const IMAGE_DLLCHARACTERISTICS_EX_CET_RESERVED_1: u32 = 16; +pub const IMAGE_DLLCHARACTERISTICS_EX_CET_RESERVED_2: u32 = 32; +pub const FRAME_FPO: u32 = 0; +pub const FRAME_TRAP: u32 = 1; +pub const FRAME_TSS: u32 = 2; +pub const FRAME_NONFPO: u32 = 3; +pub const SIZEOF_RFPO_DATA: u32 = 16; +pub const IMAGE_DEBUG_MISC_EXENAME: u32 = 1; +pub const IMAGE_SEPARATE_DEBUG_SIGNATURE: u32 = 18756; +pub const NON_PAGED_DEBUG_SIGNATURE: u32 = 18766; +pub const IMAGE_SEPARATE_DEBUG_FLAGS_MASK: u32 = 32768; +pub const IMAGE_SEPARATE_DEBUG_MISMATCH: u32 = 32768; +pub const IMPORT_OBJECT_HDR_SIG2: u32 = 65535; +pub const UNWIND_HISTORY_TABLE_SIZE: u32 = 12; +pub const RTL_RUN_ONCE_CHECK_ONLY: u32 = 1; +pub const RTL_RUN_ONCE_ASYNC: u32 = 2; +pub const RTL_RUN_ONCE_INIT_FAILED: u32 = 4; +pub const RTL_RUN_ONCE_CTX_RESERVED_BITS: u32 = 2; +pub const FAST_FAIL_LEGACY_GS_VIOLATION: u32 = 0; +pub const FAST_FAIL_VTGUARD_CHECK_FAILURE: u32 = 1; +pub const FAST_FAIL_STACK_COOKIE_CHECK_FAILURE: u32 = 2; +pub const FAST_FAIL_CORRUPT_LIST_ENTRY: u32 = 3; +pub const FAST_FAIL_INCORRECT_STACK: u32 = 4; +pub const FAST_FAIL_INVALID_ARG: u32 = 5; +pub const FAST_FAIL_GS_COOKIE_INIT: u32 = 6; +pub const FAST_FAIL_FATAL_APP_EXIT: u32 = 7; +pub const FAST_FAIL_RANGE_CHECK_FAILURE: u32 = 8; +pub const FAST_FAIL_UNSAFE_REGISTRY_ACCESS: u32 = 9; +pub const FAST_FAIL_GUARD_ICALL_CHECK_FAILURE: u32 = 10; +pub const FAST_FAIL_GUARD_WRITE_CHECK_FAILURE: u32 = 11; +pub const FAST_FAIL_INVALID_FIBER_SWITCH: u32 = 12; +pub const FAST_FAIL_INVALID_SET_OF_CONTEXT: u32 = 13; +pub const FAST_FAIL_INVALID_REFERENCE_COUNT: u32 = 14; +pub const FAST_FAIL_INVALID_JUMP_BUFFER: u32 = 18; +pub const FAST_FAIL_MRDATA_MODIFIED: u32 = 19; +pub const FAST_FAIL_CERTIFICATION_FAILURE: u32 = 20; +pub const FAST_FAIL_INVALID_EXCEPTION_CHAIN: u32 = 21; +pub const FAST_FAIL_CRYPTO_LIBRARY: u32 = 22; +pub const FAST_FAIL_INVALID_CALL_IN_DLL_CALLOUT: u32 = 23; +pub const FAST_FAIL_INVALID_IMAGE_BASE: u32 = 24; +pub const FAST_FAIL_DLOAD_PROTECTION_FAILURE: u32 = 25; +pub const FAST_FAIL_UNSAFE_EXTENSION_CALL: u32 = 26; +pub const FAST_FAIL_DEPRECATED_SERVICE_INVOKED: u32 = 27; +pub const FAST_FAIL_INVALID_BUFFER_ACCESS: u32 = 28; +pub const FAST_FAIL_INVALID_BALANCED_TREE: u32 = 29; +pub const FAST_FAIL_INVALID_NEXT_THREAD: u32 = 30; +pub const FAST_FAIL_GUARD_ICALL_CHECK_SUPPRESSED: u32 = 31; +pub const FAST_FAIL_APCS_DISABLED: u32 = 32; +pub const FAST_FAIL_INVALID_IDLE_STATE: u32 = 33; +pub const FAST_FAIL_MRDATA_PROTECTION_FAILURE: u32 = 34; +pub const FAST_FAIL_UNEXPECTED_HEAP_EXCEPTION: u32 = 35; +pub const FAST_FAIL_INVALID_LOCK_STATE: u32 = 36; +pub const FAST_FAIL_GUARD_JUMPTABLE: u32 = 37; +pub const FAST_FAIL_INVALID_LONGJUMP_TARGET: u32 = 38; +pub const FAST_FAIL_INVALID_DISPATCH_CONTEXT: u32 = 39; +pub const FAST_FAIL_INVALID_THREAD: u32 = 40; +pub const FAST_FAIL_INVALID_SYSCALL_NUMBER: u32 = 41; +pub const FAST_FAIL_INVALID_FILE_OPERATION: u32 = 42; +pub const FAST_FAIL_LPAC_ACCESS_DENIED: u32 = 43; +pub const FAST_FAIL_GUARD_SS_FAILURE: u32 = 44; +pub const FAST_FAIL_LOADER_CONTINUITY_FAILURE: u32 = 45; +pub const FAST_FAIL_GUARD_EXPORT_SUPPRESSION_FAILURE: u32 = 46; +pub const FAST_FAIL_INVALID_CONTROL_STACK: u32 = 47; +pub const FAST_FAIL_SET_CONTEXT_DENIED: u32 = 48; +pub const FAST_FAIL_INVALID_IAT: u32 = 49; +pub const FAST_FAIL_HEAP_METADATA_CORRUPTION: u32 = 50; +pub const FAST_FAIL_PAYLOAD_RESTRICTION_VIOLATION: u32 = 51; +pub const FAST_FAIL_LOW_LABEL_ACCESS_DENIED: u32 = 52; +pub const FAST_FAIL_ENCLAVE_CALL_FAILURE: u32 = 53; +pub const FAST_FAIL_UNHANDLED_LSS_EXCEPTON: u32 = 54; +pub const FAST_FAIL_ADMINLESS_ACCESS_DENIED: u32 = 55; +pub const FAST_FAIL_UNEXPECTED_CALL: u32 = 56; +pub const FAST_FAIL_CONTROL_INVALID_RETURN_ADDRESS: u32 = 57; +pub const FAST_FAIL_UNEXPECTED_HOST_BEHAVIOR: u32 = 58; +pub const FAST_FAIL_FLAGS_CORRUPTION: u32 = 59; +pub const FAST_FAIL_VEH_CORRUPTION: u32 = 60; +pub const FAST_FAIL_ETW_CORRUPTION: u32 = 61; +pub const FAST_FAIL_RIO_ABORT: u32 = 62; +pub const FAST_FAIL_INVALID_PFN: u32 = 63; +pub const FAST_FAIL_GUARD_ICALL_CHECK_FAILURE_XFG: u32 = 64; +pub const FAST_FAIL_CAST_GUARD: u32 = 65; +pub const FAST_FAIL_HOST_VISIBILITY_CHANGE: u32 = 66; +pub const FAST_FAIL_KERNEL_CET_SHADOW_STACK_ASSIST: u32 = 67; +pub const FAST_FAIL_PATCH_CALLBACK_FAILED: u32 = 68; +pub const FAST_FAIL_NTDLL_PATCH_FAILED: u32 = 69; +pub const FAST_FAIL_INVALID_FLS_DATA: u32 = 70; +pub const FAST_FAIL_INVALID_FAST_FAIL_CODE: u32 = 4294967295; +pub const HEAP_NO_SERIALIZE: u32 = 1; +pub const HEAP_GROWABLE: u32 = 2; +pub const HEAP_GENERATE_EXCEPTIONS: u32 = 4; +pub const HEAP_ZERO_MEMORY: u32 = 8; +pub const HEAP_REALLOC_IN_PLACE_ONLY: u32 = 16; +pub const HEAP_TAIL_CHECKING_ENABLED: u32 = 32; +pub const HEAP_FREE_CHECKING_ENABLED: u32 = 64; +pub const HEAP_DISABLE_COALESCE_ON_FREE: u32 = 128; +pub const HEAP_CREATE_ALIGN_16: u32 = 65536; +pub const HEAP_CREATE_ENABLE_TRACING: u32 = 131072; +pub const HEAP_CREATE_ENABLE_EXECUTE: u32 = 262144; +pub const HEAP_MAXIMUM_TAG: u32 = 4095; +pub const HEAP_PSEUDO_TAG_FLAG: u32 = 32768; +pub const HEAP_TAG_SHIFT: u32 = 18; +pub const HEAP_CREATE_SEGMENT_HEAP: u32 = 256; +pub const HEAP_CREATE_HARDENED: u32 = 512; +pub const IS_TEXT_UNICODE_ASCII16: u32 = 1; +pub const IS_TEXT_UNICODE_REVERSE_ASCII16: u32 = 16; +pub const IS_TEXT_UNICODE_STATISTICS: u32 = 2; +pub const IS_TEXT_UNICODE_REVERSE_STATISTICS: u32 = 32; +pub const IS_TEXT_UNICODE_CONTROLS: u32 = 4; +pub const IS_TEXT_UNICODE_REVERSE_CONTROLS: u32 = 64; +pub const IS_TEXT_UNICODE_SIGNATURE: u32 = 8; +pub const IS_TEXT_UNICODE_REVERSE_SIGNATURE: u32 = 128; +pub const IS_TEXT_UNICODE_ILLEGAL_CHARS: u32 = 256; +pub const IS_TEXT_UNICODE_ODD_LENGTH: u32 = 512; +pub const IS_TEXT_UNICODE_DBCS_LEADBYTE: u32 = 1024; +pub const IS_TEXT_UNICODE_UTF8: u32 = 2048; +pub const IS_TEXT_UNICODE_NULL_BYTES: u32 = 4096; +pub const IS_TEXT_UNICODE_UNICODE_MASK: u32 = 15; +pub const IS_TEXT_UNICODE_REVERSE_MASK: u32 = 240; +pub const IS_TEXT_UNICODE_NOT_UNICODE_MASK: u32 = 3840; +pub const IS_TEXT_UNICODE_NOT_ASCII_MASK: u32 = 61440; +pub const COMPRESSION_FORMAT_NONE: u32 = 0; +pub const COMPRESSION_FORMAT_DEFAULT: u32 = 1; +pub const COMPRESSION_FORMAT_LZNT1: u32 = 2; +pub const COMPRESSION_FORMAT_XPRESS: u32 = 3; +pub const COMPRESSION_FORMAT_XPRESS_HUFF: u32 = 4; +pub const COMPRESSION_FORMAT_XP10: u32 = 5; +pub const COMPRESSION_ENGINE_STANDARD: u32 = 0; +pub const COMPRESSION_ENGINE_MAXIMUM: u32 = 256; +pub const COMPRESSION_ENGINE_HIBER: u32 = 512; +pub const SEF_DACL_AUTO_INHERIT: u32 = 1; +pub const SEF_SACL_AUTO_INHERIT: u32 = 2; +pub const SEF_DEFAULT_DESCRIPTOR_FOR_OBJECT: u32 = 4; +pub const SEF_AVOID_PRIVILEGE_CHECK: u32 = 8; +pub const SEF_AVOID_OWNER_CHECK: u32 = 16; +pub const SEF_DEFAULT_OWNER_FROM_PARENT: u32 = 32; +pub const SEF_DEFAULT_GROUP_FROM_PARENT: u32 = 64; +pub const SEF_MACL_NO_WRITE_UP: u32 = 256; +pub const SEF_MACL_NO_READ_UP: u32 = 512; +pub const SEF_MACL_NO_EXECUTE_UP: u32 = 1024; +pub const SEF_AI_USE_EXTRA_PARAMS: u32 = 2048; +pub const SEF_AVOID_OWNER_RESTRICTION: u32 = 4096; +pub const SEF_FORCE_USER_MODE: u32 = 8192; +pub const SEF_NORMALIZE_OUTPUT_DESCRIPTOR: u32 = 16384; +pub const SEF_MACL_VALID_FLAGS: u32 = 1792; +pub const MESSAGE_RESOURCE_UNICODE: u32 = 1; +pub const MESSAGE_RESOURCE_UTF8: u32 = 2; +pub const VER_EQUAL: u32 = 1; +pub const VER_GREATER: u32 = 2; +pub const VER_GREATER_EQUAL: u32 = 3; +pub const VER_LESS: u32 = 4; +pub const VER_LESS_EQUAL: u32 = 5; +pub const VER_AND: u32 = 6; +pub const VER_OR: u32 = 7; +pub const VER_CONDITION_MASK: u32 = 7; +pub const VER_NUM_BITS_PER_CONDITION_MASK: u32 = 3; +pub const VER_MINORVERSION: u32 = 1; +pub const VER_MAJORVERSION: u32 = 2; +pub const VER_BUILDNUMBER: u32 = 4; +pub const VER_PLATFORMID: u32 = 8; +pub const VER_SERVICEPACKMINOR: u32 = 16; +pub const VER_SERVICEPACKMAJOR: u32 = 32; +pub const VER_SUITENAME: u32 = 64; +pub const VER_PRODUCT_TYPE: u32 = 128; +pub const VER_NT_WORKSTATION: u32 = 1; +pub const VER_NT_DOMAIN_CONTROLLER: u32 = 2; +pub const VER_NT_SERVER: u32 = 3; +pub const VER_PLATFORM_WIN32s: u32 = 0; +pub const VER_PLATFORM_WIN32_WINDOWS: u32 = 1; +pub const VER_PLATFORM_WIN32_NT: u32 = 2; +pub const RTL_UMS_VERSION: u32 = 256; +pub const VRL_PREDEFINED_CLASS_BEGIN: u32 = 1; +pub const VRL_CUSTOM_CLASS_BEGIN: u32 = 256; +pub const VRL_CLASS_CONSISTENCY: u32 = 1; +pub const VRL_ENABLE_KERNEL_BREAKS: u32 = 2147483648; +pub const CTMF_INCLUDE_APPCONTAINER: u32 = 1; +pub const CTMF_INCLUDE_LPAC: u32 = 2; +pub const CTMF_VALID_FLAGS: u32 = 3; +pub const FLUSH_NV_MEMORY_IN_FLAG_NO_DRAIN: u32 = 1; +pub const WRITE_NV_MEMORY_FLAG_FLUSH: u32 = 1; +pub const WRITE_NV_MEMORY_FLAG_NON_TEMPORAL: u32 = 2; +pub const WRITE_NV_MEMORY_FLAG_PERSIST: u32 = 3; +pub const WRITE_NV_MEMORY_FLAG_NO_DRAIN: u32 = 256; +pub const FILL_NV_MEMORY_FLAG_FLUSH: u32 = 1; +pub const FILL_NV_MEMORY_FLAG_NON_TEMPORAL: u32 = 2; +pub const FILL_NV_MEMORY_FLAG_PERSIST: u32 = 3; +pub const FILL_NV_MEMORY_FLAG_NO_DRAIN: u32 = 256; +pub const RTL_CORRELATION_VECTOR_STRING_LENGTH: u32 = 129; +pub const RTL_CORRELATION_VECTOR_V1_PREFIX_LENGTH: u32 = 16; +pub const RTL_CORRELATION_VECTOR_V1_LENGTH: u32 = 64; +pub const RTL_CORRELATION_VECTOR_V2_PREFIX_LENGTH: u32 = 22; +pub const RTL_CORRELATION_VECTOR_V2_LENGTH: u32 = 128; +pub const IMAGE_POLICY_METADATA_VERSION: u32 = 1; +pub const IMAGE_POLICY_SECTION_NAME: &[u8; 9] = b".tPolicy\0"; +pub const RTL_VIRTUAL_UNWIND2_VALIDATE_PAC: u32 = 1; +pub const RTL_CRITICAL_SECTION_FLAG_NO_DEBUG_INFO: u32 = 16777216; +pub const RTL_CRITICAL_SECTION_FLAG_DYNAMIC_SPIN: u32 = 33554432; +pub const RTL_CRITICAL_SECTION_FLAG_STATIC_INIT: u32 = 67108864; +pub const RTL_CRITICAL_SECTION_FLAG_RESOURCE_TYPE: u32 = 134217728; +pub const RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO: u32 = 268435456; +pub const RTL_CRITICAL_SECTION_ALL_FLAG_BITS: u32 = 4278190080; +pub const RTL_CRITICAL_SECTION_FLAG_RESERVED: u32 = 3758096384; +pub const RTL_CRITICAL_SECTION_DEBUG_FLAG_STATIC_INIT: u32 = 1; +pub const RTL_CONDITION_VARIABLE_LOCKMODE_SHARED: u32 = 1; +pub const HEAP_OPTIMIZE_RESOURCES_CURRENT_VERSION: u32 = 1; +pub const WT_EXECUTEDEFAULT: u32 = 0; +pub const WT_EXECUTEINIOTHREAD: u32 = 1; +pub const WT_EXECUTEINUITHREAD: u32 = 2; +pub const WT_EXECUTEINWAITTHREAD: u32 = 4; +pub const WT_EXECUTEONLYONCE: u32 = 8; +pub const WT_EXECUTEINTIMERTHREAD: u32 = 32; +pub const WT_EXECUTELONGFUNCTION: u32 = 16; +pub const WT_EXECUTEINPERSISTENTIOTHREAD: u32 = 64; +pub const WT_EXECUTEINPERSISTENTTHREAD: u32 = 128; +pub const WT_TRANSFER_IMPERSONATION: u32 = 256; +pub const WT_EXECUTEINLONGTHREAD: u32 = 16; +pub const WT_EXECUTEDELETEWAIT: u32 = 8; +pub const ACTIVATION_CONTEXT_PATH_TYPE_NONE: u32 = 1; +pub const ACTIVATION_CONTEXT_PATH_TYPE_WIN32_FILE: u32 = 2; +pub const ACTIVATION_CONTEXT_PATH_TYPE_URL: u32 = 3; +pub const ACTIVATION_CONTEXT_PATH_TYPE_ASSEMBLYREF: u32 = 4; +pub const CREATE_BOUNDARY_DESCRIPTOR_ADD_APPCONTAINER_SID: u32 = 1; +pub const PERFORMANCE_DATA_VERSION: u32 = 1; +pub const READ_THREAD_PROFILING_FLAG_DISPATCHING: u32 = 1; +pub const READ_THREAD_PROFILING_FLAG_HARDWARE_COUNTERS: u32 = 2; +pub const UNIFIEDBUILDREVISION_KEY: &[u8; 63] = + b"\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\0"; +pub const UNIFIEDBUILDREVISION_VALUE: &[u8; 4] = b"UBR\0"; +pub const UNIFIEDBUILDREVISION_MIN: u32 = 0; +pub const DEVICEFAMILYDEVICEFORM_KEY: &[u8; 67] = + b"\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\OEM\0"; +pub const DEVICEFAMILYDEVICEFORM_VALUE: &[u8; 11] = b"DeviceForm\0"; +pub const DEVICEFAMILYINFOENUM_UAP: u32 = 0; +pub const DEVICEFAMILYINFOENUM_WINDOWS_8X: u32 = 1; +pub const DEVICEFAMILYINFOENUM_WINDOWS_PHONE_8X: u32 = 2; +pub const DEVICEFAMILYINFOENUM_DESKTOP: u32 = 3; +pub const DEVICEFAMILYINFOENUM_MOBILE: u32 = 4; +pub const DEVICEFAMILYINFOENUM_XBOX: u32 = 5; +pub const DEVICEFAMILYINFOENUM_TEAM: u32 = 6; +pub const DEVICEFAMILYINFOENUM_IOT: u32 = 7; +pub const DEVICEFAMILYINFOENUM_IOT_HEADLESS: u32 = 8; +pub const DEVICEFAMILYINFOENUM_SERVER: u32 = 9; +pub const DEVICEFAMILYINFOENUM_HOLOGRAPHIC: u32 = 10; +pub const DEVICEFAMILYINFOENUM_XBOXSRA: u32 = 11; +pub const DEVICEFAMILYINFOENUM_XBOXERA: u32 = 12; +pub const DEVICEFAMILYINFOENUM_SERVER_NANO: u32 = 13; +pub const DEVICEFAMILYINFOENUM_8828080: u32 = 14; +pub const DEVICEFAMILYINFOENUM_7067329: u32 = 15; +pub const DEVICEFAMILYINFOENUM_WINDOWS_CORE: u32 = 16; +pub const DEVICEFAMILYINFOENUM_WINDOWS_CORE_HEADLESS: u32 = 17; +pub const DEVICEFAMILYINFOENUM_MAX: u32 = 17; +pub const DEVICEFAMILYDEVICEFORM_UNKNOWN: u32 = 0; +pub const DEVICEFAMILYDEVICEFORM_PHONE: u32 = 1; +pub const DEVICEFAMILYDEVICEFORM_TABLET: u32 = 2; +pub const DEVICEFAMILYDEVICEFORM_DESKTOP: u32 = 3; +pub const DEVICEFAMILYDEVICEFORM_NOTEBOOK: u32 = 4; +pub const DEVICEFAMILYDEVICEFORM_CONVERTIBLE: u32 = 5; +pub const DEVICEFAMILYDEVICEFORM_DETACHABLE: u32 = 6; +pub const DEVICEFAMILYDEVICEFORM_ALLINONE: u32 = 7; +pub const DEVICEFAMILYDEVICEFORM_STICKPC: u32 = 8; +pub const DEVICEFAMILYDEVICEFORM_PUCK: u32 = 9; +pub const DEVICEFAMILYDEVICEFORM_LARGESCREEN: u32 = 10; +pub const DEVICEFAMILYDEVICEFORM_HMD: u32 = 11; +pub const DEVICEFAMILYDEVICEFORM_INDUSTRY_HANDHELD: u32 = 12; +pub const DEVICEFAMILYDEVICEFORM_INDUSTRY_TABLET: u32 = 13; +pub const DEVICEFAMILYDEVICEFORM_BANKING: u32 = 14; +pub const DEVICEFAMILYDEVICEFORM_BUILDING_AUTOMATION: u32 = 15; +pub const DEVICEFAMILYDEVICEFORM_DIGITAL_SIGNAGE: u32 = 16; +pub const DEVICEFAMILYDEVICEFORM_GAMING: u32 = 17; +pub const DEVICEFAMILYDEVICEFORM_HOME_AUTOMATION: u32 = 18; +pub const DEVICEFAMILYDEVICEFORM_INDUSTRIAL_AUTOMATION: u32 = 19; +pub const DEVICEFAMILYDEVICEFORM_KIOSK: u32 = 20; +pub const DEVICEFAMILYDEVICEFORM_MAKER_BOARD: u32 = 21; +pub const DEVICEFAMILYDEVICEFORM_MEDICAL: u32 = 22; +pub const DEVICEFAMILYDEVICEFORM_NETWORKING: u32 = 23; +pub const DEVICEFAMILYDEVICEFORM_POINT_OF_SERVICE: u32 = 24; +pub const DEVICEFAMILYDEVICEFORM_PRINTING: u32 = 25; +pub const DEVICEFAMILYDEVICEFORM_THIN_CLIENT: u32 = 26; +pub const DEVICEFAMILYDEVICEFORM_TOY: u32 = 27; +pub const DEVICEFAMILYDEVICEFORM_VENDING: u32 = 28; +pub const DEVICEFAMILYDEVICEFORM_INDUSTRY_OTHER: u32 = 29; +pub const DEVICEFAMILYDEVICEFORM_XBOX_ONE: u32 = 30; +pub const DEVICEFAMILYDEVICEFORM_XBOX_ONE_S: u32 = 31; +pub const DEVICEFAMILYDEVICEFORM_XBOX_ONE_X: u32 = 32; +pub const DEVICEFAMILYDEVICEFORM_XBOX_ONE_X_DEVKIT: u32 = 33; +pub const DEVICEFAMILYDEVICEFORM_XBOX_SERIES_X: u32 = 34; +pub const DEVICEFAMILYDEVICEFORM_XBOX_SERIES_X_DEVKIT: u32 = 35; +pub const DEVICEFAMILYDEVICEFORM_XBOX_SERIES_S: u32 = 36; +pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_01: u32 = 37; +pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_02: u32 = 38; +pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_03: u32 = 39; +pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_04: u32 = 40; +pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_05: u32 = 41; +pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_06: u32 = 42; +pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_07: u32 = 43; +pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_08: u32 = 44; +pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_09: u32 = 45; +pub const DEVICEFAMILYDEVICEFORM_MAX: u32 = 45; +pub const DLL_PROCESS_ATTACH: u32 = 1; +pub const DLL_THREAD_ATTACH: u32 = 2; +pub const DLL_THREAD_DETACH: u32 = 3; +pub const DLL_PROCESS_DETACH: u32 = 0; +pub const EVENTLOG_SEQUENTIAL_READ: u32 = 1; +pub const EVENTLOG_SEEK_READ: u32 = 2; +pub const EVENTLOG_FORWARDS_READ: u32 = 4; +pub const EVENTLOG_BACKWARDS_READ: u32 = 8; +pub const EVENTLOG_SUCCESS: u32 = 0; +pub const EVENTLOG_ERROR_TYPE: u32 = 1; +pub const EVENTLOG_WARNING_TYPE: u32 = 2; +pub const EVENTLOG_INFORMATION_TYPE: u32 = 4; +pub const EVENTLOG_AUDIT_SUCCESS: u32 = 8; +pub const EVENTLOG_AUDIT_FAILURE: u32 = 16; +pub const EVENTLOG_START_PAIRED_EVENT: u32 = 1; +pub const EVENTLOG_END_PAIRED_EVENT: u32 = 2; +pub const EVENTLOG_END_ALL_PAIRED_EVENTS: u32 = 4; +pub const EVENTLOG_PAIRED_EVENT_ACTIVE: u32 = 8; +pub const EVENTLOG_PAIRED_EVENT_INACTIVE: u32 = 16; +pub const MAXLOGICALLOGNAMESIZE: u32 = 256; +pub const KEY_QUERY_VALUE: u32 = 1; +pub const KEY_SET_VALUE: u32 = 2; +pub const KEY_CREATE_SUB_KEY: u32 = 4; +pub const KEY_ENUMERATE_SUB_KEYS: u32 = 8; +pub const KEY_NOTIFY: u32 = 16; +pub const KEY_CREATE_LINK: u32 = 32; +pub const KEY_WOW64_32KEY: u32 = 512; +pub const KEY_WOW64_64KEY: u32 = 256; +pub const KEY_WOW64_RES: u32 = 768; +pub const KEY_READ: u32 = 131097; +pub const KEY_WRITE: u32 = 131078; +pub const KEY_EXECUTE: u32 = 131097; +pub const KEY_ALL_ACCESS: u32 = 983103; +pub const REG_OPTION_RESERVED: u32 = 0; +pub const REG_OPTION_NON_VOLATILE: u32 = 0; +pub const REG_OPTION_VOLATILE: u32 = 1; +pub const REG_OPTION_CREATE_LINK: u32 = 2; +pub const REG_OPTION_BACKUP_RESTORE: u32 = 4; +pub const REG_OPTION_OPEN_LINK: u32 = 8; +pub const REG_OPTION_DONT_VIRTUALIZE: u32 = 16; +pub const REG_LEGAL_OPTION: u32 = 31; +pub const REG_OPEN_LEGAL_OPTION: u32 = 28; +pub const REG_CREATED_NEW_KEY: u32 = 1; +pub const REG_OPENED_EXISTING_KEY: u32 = 2; +pub const REG_STANDARD_FORMAT: u32 = 1; +pub const REG_LATEST_FORMAT: u32 = 2; +pub const REG_NO_COMPRESSION: u32 = 4; +pub const REG_WHOLE_HIVE_VOLATILE: u32 = 1; +pub const REG_REFRESH_HIVE: u32 = 2; +pub const REG_NO_LAZY_FLUSH: u32 = 4; +pub const REG_FORCE_RESTORE: u32 = 8; +pub const REG_APP_HIVE: u32 = 16; +pub const REG_PROCESS_PRIVATE: u32 = 32; +pub const REG_START_JOURNAL: u32 = 64; +pub const REG_HIVE_EXACT_FILE_GROWTH: u32 = 128; +pub const REG_HIVE_NO_RM: u32 = 256; +pub const REG_HIVE_SINGLE_LOG: u32 = 512; +pub const REG_BOOT_HIVE: u32 = 1024; +pub const REG_LOAD_HIVE_OPEN_HANDLE: u32 = 2048; +pub const REG_FLUSH_HIVE_FILE_GROWTH: u32 = 4096; +pub const REG_OPEN_READ_ONLY: u32 = 8192; +pub const REG_IMMUTABLE: u32 = 16384; +pub const REG_NO_IMPERSONATION_FALLBACK: u32 = 32768; +pub const REG_APP_HIVE_OPEN_READ_ONLY: u32 = 8192; +pub const REG_FORCE_UNLOAD: u32 = 1; +pub const REG_UNLOAD_LEGAL_FLAGS: u32 = 1; +pub const REG_NOTIFY_CHANGE_NAME: u32 = 1; +pub const REG_NOTIFY_CHANGE_ATTRIBUTES: u32 = 2; +pub const REG_NOTIFY_CHANGE_LAST_SET: u32 = 4; +pub const REG_NOTIFY_CHANGE_SECURITY: u32 = 8; +pub const REG_NOTIFY_THREAD_AGNOSTIC: u32 = 268435456; +pub const REG_LEGAL_CHANGE_FILTER: u32 = 268435471; +pub const REG_NONE: u32 = 0; +pub const REG_SZ: u32 = 1; +pub const REG_EXPAND_SZ: u32 = 2; +pub const REG_BINARY: u32 = 3; +pub const REG_DWORD: u32 = 4; +pub const REG_DWORD_LITTLE_ENDIAN: u32 = 4; +pub const REG_DWORD_BIG_ENDIAN: u32 = 5; +pub const REG_LINK: u32 = 6; +pub const REG_MULTI_SZ: u32 = 7; +pub const REG_RESOURCE_LIST: u32 = 8; +pub const REG_FULL_RESOURCE_DESCRIPTOR: u32 = 9; +pub const REG_RESOURCE_REQUIREMENTS_LIST: u32 = 10; +pub const REG_QWORD: u32 = 11; +pub const REG_QWORD_LITTLE_ENDIAN: u32 = 11; +pub const SERVICE_KERNEL_DRIVER: u32 = 1; +pub const SERVICE_FILE_SYSTEM_DRIVER: u32 = 2; +pub const SERVICE_ADAPTER: u32 = 4; +pub const SERVICE_RECOGNIZER_DRIVER: u32 = 8; +pub const SERVICE_DRIVER: u32 = 11; +pub const SERVICE_WIN32_OWN_PROCESS: u32 = 16; +pub const SERVICE_WIN32_SHARE_PROCESS: u32 = 32; +pub const SERVICE_WIN32: u32 = 48; +pub const SERVICE_USER_SERVICE: u32 = 64; +pub const SERVICE_USERSERVICE_INSTANCE: u32 = 128; +pub const SERVICE_USER_SHARE_PROCESS: u32 = 96; +pub const SERVICE_USER_OWN_PROCESS: u32 = 80; +pub const SERVICE_INTERACTIVE_PROCESS: u32 = 256; +pub const SERVICE_PKG_SERVICE: u32 = 512; +pub const SERVICE_TYPE_ALL: u32 = 1023; +pub const SERVICE_BOOT_START: u32 = 0; +pub const SERVICE_SYSTEM_START: u32 = 1; +pub const SERVICE_AUTO_START: u32 = 2; +pub const SERVICE_DEMAND_START: u32 = 3; +pub const SERVICE_DISABLED: u32 = 4; +pub const SERVICE_ERROR_IGNORE: u32 = 0; +pub const SERVICE_ERROR_NORMAL: u32 = 1; +pub const SERVICE_ERROR_SEVERE: u32 = 2; +pub const SERVICE_ERROR_CRITICAL: u32 = 3; +pub const CM_SERVICE_NETWORK_BOOT_LOAD: u32 = 1; +pub const CM_SERVICE_VIRTUAL_DISK_BOOT_LOAD: u32 = 2; +pub const CM_SERVICE_USB_DISK_BOOT_LOAD: u32 = 4; +pub const CM_SERVICE_SD_DISK_BOOT_LOAD: u32 = 8; +pub const CM_SERVICE_USB3_DISK_BOOT_LOAD: u32 = 16; +pub const CM_SERVICE_MEASURED_BOOT_LOAD: u32 = 32; +pub const CM_SERVICE_VERIFIER_BOOT_LOAD: u32 = 64; +pub const CM_SERVICE_WINPE_BOOT_LOAD: u32 = 128; +pub const CM_SERVICE_RAM_DISK_BOOT_LOAD: u32 = 256; +pub const CM_SERVICE_VALID_PROMOTION_MASK: u32 = 511; +pub const TAPE_ERASE_SHORT: u32 = 0; +pub const TAPE_ERASE_LONG: u32 = 1; +pub const TAPE_LOAD: u32 = 0; +pub const TAPE_UNLOAD: u32 = 1; +pub const TAPE_TENSION: u32 = 2; +pub const TAPE_LOCK: u32 = 3; +pub const TAPE_UNLOCK: u32 = 4; +pub const TAPE_FORMAT: u32 = 5; +pub const TAPE_SETMARKS: u32 = 0; +pub const TAPE_FILEMARKS: u32 = 1; +pub const TAPE_SHORT_FILEMARKS: u32 = 2; +pub const TAPE_LONG_FILEMARKS: u32 = 3; +pub const TAPE_ABSOLUTE_POSITION: u32 = 0; +pub const TAPE_LOGICAL_POSITION: u32 = 1; +pub const TAPE_PSEUDO_LOGICAL_POSITION: u32 = 2; +pub const TAPE_REWIND: u32 = 0; +pub const TAPE_ABSOLUTE_BLOCK: u32 = 1; +pub const TAPE_LOGICAL_BLOCK: u32 = 2; +pub const TAPE_PSEUDO_LOGICAL_BLOCK: u32 = 3; +pub const TAPE_SPACE_END_OF_DATA: u32 = 4; +pub const TAPE_SPACE_RELATIVE_BLOCKS: u32 = 5; +pub const TAPE_SPACE_FILEMARKS: u32 = 6; +pub const TAPE_SPACE_SEQUENTIAL_FMKS: u32 = 7; +pub const TAPE_SPACE_SETMARKS: u32 = 8; +pub const TAPE_SPACE_SEQUENTIAL_SMKS: u32 = 9; +pub const TAPE_DRIVE_FIXED: u32 = 1; +pub const TAPE_DRIVE_SELECT: u32 = 2; +pub const TAPE_DRIVE_INITIATOR: u32 = 4; +pub const TAPE_DRIVE_ERASE_SHORT: u32 = 16; +pub const TAPE_DRIVE_ERASE_LONG: u32 = 32; +pub const TAPE_DRIVE_ERASE_BOP_ONLY: u32 = 64; +pub const TAPE_DRIVE_ERASE_IMMEDIATE: u32 = 128; +pub const TAPE_DRIVE_TAPE_CAPACITY: u32 = 256; +pub const TAPE_DRIVE_TAPE_REMAINING: u32 = 512; +pub const TAPE_DRIVE_FIXED_BLOCK: u32 = 1024; +pub const TAPE_DRIVE_VARIABLE_BLOCK: u32 = 2048; +pub const TAPE_DRIVE_WRITE_PROTECT: u32 = 4096; +pub const TAPE_DRIVE_EOT_WZ_SIZE: u32 = 8192; +pub const TAPE_DRIVE_ECC: u32 = 65536; +pub const TAPE_DRIVE_COMPRESSION: u32 = 131072; +pub const TAPE_DRIVE_PADDING: u32 = 262144; +pub const TAPE_DRIVE_REPORT_SMKS: u32 = 524288; +pub const TAPE_DRIVE_GET_ABSOLUTE_BLK: u32 = 1048576; +pub const TAPE_DRIVE_GET_LOGICAL_BLK: u32 = 2097152; +pub const TAPE_DRIVE_SET_EOT_WZ_SIZE: u32 = 4194304; +pub const TAPE_DRIVE_EJECT_MEDIA: u32 = 16777216; +pub const TAPE_DRIVE_CLEAN_REQUESTS: u32 = 33554432; +pub const TAPE_DRIVE_SET_CMP_BOP_ONLY: u32 = 67108864; +pub const TAPE_DRIVE_RESERVED_BIT: u32 = 2147483648; +pub const TAPE_DRIVE_LOAD_UNLOAD: u32 = 2147483649; +pub const TAPE_DRIVE_TENSION: u32 = 2147483650; +pub const TAPE_DRIVE_LOCK_UNLOCK: u32 = 2147483652; +pub const TAPE_DRIVE_REWIND_IMMEDIATE: u32 = 2147483656; +pub const TAPE_DRIVE_SET_BLOCK_SIZE: u32 = 2147483664; +pub const TAPE_DRIVE_LOAD_UNLD_IMMED: u32 = 2147483680; +pub const TAPE_DRIVE_TENSION_IMMED: u32 = 2147483712; +pub const TAPE_DRIVE_LOCK_UNLK_IMMED: u32 = 2147483776; +pub const TAPE_DRIVE_SET_ECC: u32 = 2147483904; +pub const TAPE_DRIVE_SET_COMPRESSION: u32 = 2147484160; +pub const TAPE_DRIVE_SET_PADDING: u32 = 2147484672; +pub const TAPE_DRIVE_SET_REPORT_SMKS: u32 = 2147485696; +pub const TAPE_DRIVE_ABSOLUTE_BLK: u32 = 2147487744; +pub const TAPE_DRIVE_ABS_BLK_IMMED: u32 = 2147491840; +pub const TAPE_DRIVE_LOGICAL_BLK: u32 = 2147500032; +pub const TAPE_DRIVE_LOG_BLK_IMMED: u32 = 2147516416; +pub const TAPE_DRIVE_END_OF_DATA: u32 = 2147549184; +pub const TAPE_DRIVE_RELATIVE_BLKS: u32 = 2147614720; +pub const TAPE_DRIVE_FILEMARKS: u32 = 2147745792; +pub const TAPE_DRIVE_SEQUENTIAL_FMKS: u32 = 2148007936; +pub const TAPE_DRIVE_SETMARKS: u32 = 2148532224; +pub const TAPE_DRIVE_SEQUENTIAL_SMKS: u32 = 2149580800; +pub const TAPE_DRIVE_REVERSE_POSITION: u32 = 2151677952; +pub const TAPE_DRIVE_SPACE_IMMEDIATE: u32 = 2155872256; +pub const TAPE_DRIVE_WRITE_SETMARKS: u32 = 2164260864; +pub const TAPE_DRIVE_WRITE_FILEMARKS: u32 = 2181038080; +pub const TAPE_DRIVE_WRITE_SHORT_FMKS: u32 = 2214592512; +pub const TAPE_DRIVE_WRITE_LONG_FMKS: u32 = 2281701376; +pub const TAPE_DRIVE_WRITE_MARK_IMMED: u32 = 2415919104; +pub const TAPE_DRIVE_FORMAT: u32 = 2684354560; +pub const TAPE_DRIVE_FORMAT_IMMEDIATE: u32 = 3221225472; +pub const TAPE_DRIVE_HIGH_FEATURES: u32 = 2147483648; +pub const TAPE_FIXED_PARTITIONS: u32 = 0; +pub const TAPE_SELECT_PARTITIONS: u32 = 1; +pub const TAPE_INITIATOR_PARTITIONS: u32 = 2; +pub const TAPE_QUERY_DRIVE_PARAMETERS: u32 = 0; +pub const TAPE_QUERY_MEDIA_CAPACITY: u32 = 1; +pub const TAPE_CHECK_FOR_DRIVE_PROBLEM: u32 = 2; +pub const TAPE_QUERY_IO_ERROR_DATA: u32 = 3; +pub const TAPE_QUERY_DEVICE_ERROR_DATA: u32 = 4; +pub const TRANSACTION_MANAGER_VOLATILE: u32 = 1; +pub const TRANSACTION_MANAGER_COMMIT_DEFAULT: u32 = 0; +pub const TRANSACTION_MANAGER_COMMIT_SYSTEM_VOLUME: u32 = 2; +pub const TRANSACTION_MANAGER_COMMIT_SYSTEM_HIVES: u32 = 4; +pub const TRANSACTION_MANAGER_COMMIT_LOWEST: u32 = 8; +pub const TRANSACTION_MANAGER_CORRUPT_FOR_RECOVERY: u32 = 16; +pub const TRANSACTION_MANAGER_CORRUPT_FOR_PROGRESS: u32 = 32; +pub const TRANSACTION_MANAGER_MAXIMUM_OPTION: u32 = 63; +pub const TRANSACTION_DO_NOT_PROMOTE: u32 = 1; +pub const TRANSACTION_MAXIMUM_OPTION: u32 = 1; +pub const RESOURCE_MANAGER_VOLATILE: u32 = 1; +pub const RESOURCE_MANAGER_COMMUNICATION: u32 = 2; +pub const RESOURCE_MANAGER_MAXIMUM_OPTION: u32 = 3; +pub const CRM_PROTOCOL_EXPLICIT_MARSHAL_ONLY: u32 = 1; +pub const CRM_PROTOCOL_DYNAMIC_MARSHAL_INFO: u32 = 2; +pub const CRM_PROTOCOL_MAXIMUM_OPTION: u32 = 3; +pub const ENLISTMENT_SUPERIOR: u32 = 1; +pub const ENLISTMENT_MAXIMUM_OPTION: u32 = 1; +pub const TRANSACTION_NOTIFY_MASK: u32 = 1073741823; +pub const TRANSACTION_NOTIFY_PREPREPARE: u32 = 1; +pub const TRANSACTION_NOTIFY_PREPARE: u32 = 2; +pub const TRANSACTION_NOTIFY_COMMIT: u32 = 4; +pub const TRANSACTION_NOTIFY_ROLLBACK: u32 = 8; +pub const TRANSACTION_NOTIFY_PREPREPARE_COMPLETE: u32 = 16; +pub const TRANSACTION_NOTIFY_PREPARE_COMPLETE: u32 = 32; +pub const TRANSACTION_NOTIFY_COMMIT_COMPLETE: u32 = 64; +pub const TRANSACTION_NOTIFY_ROLLBACK_COMPLETE: u32 = 128; +pub const TRANSACTION_NOTIFY_RECOVER: u32 = 256; +pub const TRANSACTION_NOTIFY_SINGLE_PHASE_COMMIT: u32 = 512; +pub const TRANSACTION_NOTIFY_DELEGATE_COMMIT: u32 = 1024; +pub const TRANSACTION_NOTIFY_RECOVER_QUERY: u32 = 2048; +pub const TRANSACTION_NOTIFY_ENLIST_PREPREPARE: u32 = 4096; +pub const TRANSACTION_NOTIFY_LAST_RECOVER: u32 = 8192; +pub const TRANSACTION_NOTIFY_INDOUBT: u32 = 16384; +pub const TRANSACTION_NOTIFY_PROPAGATE_PULL: u32 = 32768; +pub const TRANSACTION_NOTIFY_PROPAGATE_PUSH: u32 = 65536; +pub const TRANSACTION_NOTIFY_MARSHAL: u32 = 131072; +pub const TRANSACTION_NOTIFY_ENLIST_MASK: u32 = 262144; +pub const TRANSACTION_NOTIFY_RM_DISCONNECTED: u32 = 16777216; +pub const TRANSACTION_NOTIFY_TM_ONLINE: u32 = 33554432; +pub const TRANSACTION_NOTIFY_COMMIT_REQUEST: u32 = 67108864; +pub const TRANSACTION_NOTIFY_PROMOTE: u32 = 134217728; +pub const TRANSACTION_NOTIFY_PROMOTE_NEW: u32 = 268435456; +pub const TRANSACTION_NOTIFY_REQUEST_OUTCOME: u32 = 536870912; +pub const TRANSACTION_NOTIFY_COMMIT_FINALIZE: u32 = 1073741824; +pub const TRANSACTIONMANAGER_OBJECT_PATH: &[u8; 21] = b"\\TransactionManager\\\0"; +pub const TRANSACTION_OBJECT_PATH: &[u8; 14] = b"\\Transaction\\\0"; +pub const ENLISTMENT_OBJECT_PATH: &[u8; 13] = b"\\Enlistment\\\0"; +pub const RESOURCE_MANAGER_OBJECT_PATH: &[u8; 18] = b"\\ResourceManager\\\0"; +pub const TRANSACTION_NOTIFICATION_TM_ONLINE_FLAG_IS_CLUSTERED: u32 = 1; +pub const KTM_MARSHAL_BLOB_VERSION_MAJOR: u32 = 1; +pub const KTM_MARSHAL_BLOB_VERSION_MINOR: u32 = 1; +pub const MAX_TRANSACTION_DESCRIPTION_LENGTH: u32 = 64; +pub const MAX_RESOURCEMANAGER_DESCRIPTION_LENGTH: u32 = 64; +pub const TRANSACTIONMANAGER_QUERY_INFORMATION: u32 = 1; +pub const TRANSACTIONMANAGER_SET_INFORMATION: u32 = 2; +pub const TRANSACTIONMANAGER_RECOVER: u32 = 4; +pub const TRANSACTIONMANAGER_RENAME: u32 = 8; +pub const TRANSACTIONMANAGER_CREATE_RM: u32 = 16; +pub const TRANSACTIONMANAGER_BIND_TRANSACTION: u32 = 32; +pub const TRANSACTIONMANAGER_GENERIC_READ: u32 = 131073; +pub const TRANSACTIONMANAGER_GENERIC_WRITE: u32 = 131102; +pub const TRANSACTIONMANAGER_GENERIC_EXECUTE: u32 = 131072; +pub const TRANSACTIONMANAGER_ALL_ACCESS: u32 = 983103; +pub const TRANSACTION_QUERY_INFORMATION: u32 = 1; +pub const TRANSACTION_SET_INFORMATION: u32 = 2; +pub const TRANSACTION_ENLIST: u32 = 4; +pub const TRANSACTION_COMMIT: u32 = 8; +pub const TRANSACTION_ROLLBACK: u32 = 16; +pub const TRANSACTION_PROPAGATE: u32 = 32; +pub const TRANSACTION_RIGHT_RESERVED1: u32 = 64; +pub const TRANSACTION_GENERIC_READ: u32 = 1179649; +pub const TRANSACTION_GENERIC_WRITE: u32 = 1179710; +pub const TRANSACTION_GENERIC_EXECUTE: u32 = 1179672; +pub const TRANSACTION_ALL_ACCESS: u32 = 2031679; +pub const TRANSACTION_RESOURCE_MANAGER_RIGHTS: u32 = 1179703; +pub const RESOURCEMANAGER_QUERY_INFORMATION: u32 = 1; +pub const RESOURCEMANAGER_SET_INFORMATION: u32 = 2; +pub const RESOURCEMANAGER_RECOVER: u32 = 4; +pub const RESOURCEMANAGER_ENLIST: u32 = 8; +pub const RESOURCEMANAGER_GET_NOTIFICATION: u32 = 16; +pub const RESOURCEMANAGER_REGISTER_PROTOCOL: u32 = 32; +pub const RESOURCEMANAGER_COMPLETE_PROPAGATION: u32 = 64; +pub const RESOURCEMANAGER_GENERIC_READ: u32 = 1179649; +pub const RESOURCEMANAGER_GENERIC_WRITE: u32 = 1179774; +pub const RESOURCEMANAGER_GENERIC_EXECUTE: u32 = 1179740; +pub const RESOURCEMANAGER_ALL_ACCESS: u32 = 2031743; +pub const ENLISTMENT_QUERY_INFORMATION: u32 = 1; +pub const ENLISTMENT_SET_INFORMATION: u32 = 2; +pub const ENLISTMENT_RECOVER: u32 = 4; +pub const ENLISTMENT_SUBORDINATE_RIGHTS: u32 = 8; +pub const ENLISTMENT_SUPERIOR_RIGHTS: u32 = 16; +pub const ENLISTMENT_GENERIC_READ: u32 = 131073; +pub const ENLISTMENT_GENERIC_WRITE: u32 = 131102; +pub const ENLISTMENT_GENERIC_EXECUTE: u32 = 131100; +pub const ENLISTMENT_ALL_ACCESS: u32 = 983071; +pub const ACTIVATION_CONTEXT_SECTION_ASSEMBLY_INFORMATION: u32 = 1; +pub const ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION: u32 = 2; +pub const ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION: u32 = 3; +pub const ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION: u32 = 4; +pub const ACTIVATION_CONTEXT_SECTION_COM_INTERFACE_REDIRECTION: u32 = 5; +pub const ACTIVATION_CONTEXT_SECTION_COM_TYPE_LIBRARY_REDIRECTION: u32 = 6; +pub const ACTIVATION_CONTEXT_SECTION_COM_PROGID_REDIRECTION: u32 = 7; +pub const ACTIVATION_CONTEXT_SECTION_GLOBAL_OBJECT_RENAME_TABLE: u32 = 8; +pub const ACTIVATION_CONTEXT_SECTION_CLR_SURROGATES: u32 = 9; +pub const ACTIVATION_CONTEXT_SECTION_APPLICATION_SETTINGS: u32 = 10; +pub const ACTIVATION_CONTEXT_SECTION_COMPATIBILITY_INFO: u32 = 11; +pub const ACTIVATION_CONTEXT_SECTION_WINRT_ACTIVATABLE_CLASSES: u32 = 12; +pub const APP_LOCAL_DEVICE_ID_SIZE: u32 = 32; +pub const DM_UPDATE: u32 = 1; +pub const DM_COPY: u32 = 2; +pub const DM_PROMPT: u32 = 4; +pub const DM_MODIFY: u32 = 8; +pub const DM_IN_BUFFER: u32 = 8; +pub const DM_IN_PROMPT: u32 = 4; +pub const DM_OUT_BUFFER: u32 = 2; +pub const DM_OUT_DEFAULT: u32 = 1; +pub const DC_FIELDS: u32 = 1; +pub const DC_PAPERS: u32 = 2; +pub const DC_PAPERSIZE: u32 = 3; +pub const DC_MINEXTENT: u32 = 4; +pub const DC_MAXEXTENT: u32 = 5; +pub const DC_BINS: u32 = 6; +pub const DC_DUPLEX: u32 = 7; +pub const DC_SIZE: u32 = 8; +pub const DC_EXTRA: u32 = 9; +pub const DC_VERSION: u32 = 10; +pub const DC_DRIVER: u32 = 11; +pub const DC_BINNAMES: u32 = 12; +pub const DC_ENUMRESOLUTIONS: u32 = 13; +pub const DC_FILEDEPENDENCIES: u32 = 14; +pub const DC_TRUETYPE: u32 = 15; +pub const DC_PAPERNAMES: u32 = 16; +pub const DC_ORIENTATION: u32 = 17; +pub const DC_COPIES: u32 = 18; +pub const FIND_FIRST_EX_CASE_SENSITIVE: u32 = 1; +pub const FIND_FIRST_EX_LARGE_FETCH: u32 = 2; +pub const FIND_FIRST_EX_ON_DISK_ENTRIES_ONLY: u32 = 4; +pub const LOCKFILE_FAIL_IMMEDIATELY: u32 = 1; +pub const LOCKFILE_EXCLUSIVE_LOCK: u32 = 2; +pub const PROCESS_HEAP_REGION: u32 = 1; +pub const PROCESS_HEAP_UNCOMMITTED_RANGE: u32 = 2; +pub const PROCESS_HEAP_ENTRY_BUSY: u32 = 4; +pub const PROCESS_HEAP_SEG_ALLOC: u32 = 8; +pub const PROCESS_HEAP_ENTRY_MOVEABLE: u32 = 16; +pub const PROCESS_HEAP_ENTRY_DDESHARE: u32 = 32; +pub const EXCEPTION_DEBUG_EVENT: u32 = 1; +pub const CREATE_THREAD_DEBUG_EVENT: u32 = 2; +pub const CREATE_PROCESS_DEBUG_EVENT: u32 = 3; +pub const EXIT_THREAD_DEBUG_EVENT: u32 = 4; +pub const EXIT_PROCESS_DEBUG_EVENT: u32 = 5; +pub const LOAD_DLL_DEBUG_EVENT: u32 = 6; +pub const UNLOAD_DLL_DEBUG_EVENT: u32 = 7; +pub const OUTPUT_DEBUG_STRING_EVENT: u32 = 8; +pub const RIP_EVENT: u32 = 9; +pub const LMEM_FIXED: u32 = 0; +pub const LMEM_MOVEABLE: u32 = 2; +pub const LMEM_NOCOMPACT: u32 = 16; +pub const LMEM_NODISCARD: u32 = 32; +pub const LMEM_ZEROINIT: u32 = 64; +pub const LMEM_MODIFY: u32 = 128; +pub const LMEM_DISCARDABLE: u32 = 3840; +pub const LMEM_VALID_FLAGS: u32 = 3954; +pub const LMEM_INVALID_HANDLE: u32 = 32768; +pub const LHND: u32 = 66; +pub const LPTR: u32 = 64; +pub const NONZEROLHND: u32 = 2; +pub const NONZEROLPTR: u32 = 0; +pub const LMEM_DISCARDED: u32 = 16384; +pub const LMEM_LOCKCOUNT: u32 = 255; +pub const CREATE_NEW: u32 = 1; +pub const CREATE_ALWAYS: u32 = 2; +pub const OPEN_EXISTING: u32 = 3; +pub const OPEN_ALWAYS: u32 = 4; +pub const TRUNCATE_EXISTING: u32 = 5; +pub const INIT_ONCE_CHECK_ONLY: u32 = 1; +pub const INIT_ONCE_ASYNC: u32 = 2; +pub const INIT_ONCE_INIT_FAILED: u32 = 4; +pub const INIT_ONCE_CTX_RESERVED_BITS: u32 = 2; +pub const CONDITION_VARIABLE_LOCKMODE_SHARED: u32 = 1; +pub const MUTEX_MODIFY_STATE: u32 = 1; +pub const MUTEX_ALL_ACCESS: u32 = 2031617; +pub const CREATE_MUTEX_INITIAL_OWNER: u32 = 1; +pub const CREATE_EVENT_MANUAL_RESET: u32 = 1; +pub const CREATE_EVENT_INITIAL_SET: u32 = 2; +pub const CREATE_WAITABLE_TIMER_MANUAL_RESET: u32 = 1; +pub const CREATE_WAITABLE_TIMER_HIGH_RESOLUTION: u32 = 2; +pub const SYNCHRONIZATION_BARRIER_FLAGS_SPIN_ONLY: u32 = 1; +pub const SYNCHRONIZATION_BARRIER_FLAGS_BLOCK_ONLY: u32 = 2; +pub const SYNCHRONIZATION_BARRIER_FLAGS_NO_DELETE: u32 = 4; +pub const PROC_THREAD_ATTRIBUTE_REPLACE_VALUE: u32 = 1; +pub const PROCESS_AFFINITY_ENABLE_AUTO_UPDATE: u32 = 1; +pub const THREAD_POWER_THROTTLING_CURRENT_VERSION: u32 = 1; +pub const THREAD_POWER_THROTTLING_EXECUTION_SPEED: u32 = 1; +pub const THREAD_POWER_THROTTLING_VALID_FLAGS: u32 = 1; +pub const PME_CURRENT_VERSION: u32 = 1; +pub const PME_FAILFAST_ON_COMMIT_FAIL_DISABLE: u32 = 0; +pub const PME_FAILFAST_ON_COMMIT_FAIL_ENABLE: u32 = 1; +pub const PROCESS_POWER_THROTTLING_CURRENT_VERSION: u32 = 1; +pub const PROCESS_POWER_THROTTLING_EXECUTION_SPEED: u32 = 1; +pub const PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION: u32 = 4; +pub const PROCESS_POWER_THROTTLING_VALID_FLAGS: u32 = 5; +pub const PROCESS_LEAP_SECOND_INFO_FLAG_ENABLE_SIXTY_SECOND: u32 = 1; +pub const PROCESS_LEAP_SECOND_INFO_VALID_FLAGS: u32 = 1; +pub const USER_CET_ENVIRONMENT_WIN32_PROCESS: u32 = 0; +pub const USER_CET_ENVIRONMENT_SGX2_ENCLAVE: u32 = 2; +pub const USER_CET_ENVIRONMENT_VBS_ENCLAVE: u32 = 16; +pub const USER_CET_ENVIRONMENT_VBS_BASIC_ENCLAVE: u32 = 17; +pub const SCEX2_ALT_NETBIOS_NAME: u32 = 1; +pub const FILE_MAP_WRITE: u32 = 2; +pub const FILE_MAP_READ: u32 = 4; +pub const FILE_MAP_ALL_ACCESS: u32 = 983071; +pub const FILE_MAP_EXECUTE: u32 = 32; +pub const FILE_MAP_COPY: u32 = 1; +pub const FILE_MAP_RESERVE: u32 = 2147483648; +pub const FILE_MAP_TARGETS_INVALID: u32 = 1073741824; +pub const FILE_MAP_LARGE_PAGES: u32 = 536870912; +pub const FILE_CACHE_MAX_HARD_ENABLE: u32 = 1; +pub const FILE_CACHE_MAX_HARD_DISABLE: u32 = 2; +pub const FILE_CACHE_MIN_HARD_ENABLE: u32 = 4; +pub const FILE_CACHE_MIN_HARD_DISABLE: u32 = 8; +pub const MEHC_PATROL_SCRUBBER_PRESENT: u32 = 1; +pub const FIND_RESOURCE_DIRECTORY_TYPES: u32 = 256; +pub const FIND_RESOURCE_DIRECTORY_NAMES: u32 = 512; +pub const FIND_RESOURCE_DIRECTORY_LANGUAGES: u32 = 1024; +pub const RESOURCE_ENUM_LN: u32 = 1; +pub const RESOURCE_ENUM_MUI: u32 = 2; +pub const RESOURCE_ENUM_MUI_SYSTEM: u32 = 4; +pub const RESOURCE_ENUM_VALIDATE: u32 = 8; +pub const RESOURCE_ENUM_MODULE_EXACT: u32 = 16; +pub const SUPPORT_LANG_NUMBER: u32 = 32; +pub const GET_MODULE_HANDLE_EX_FLAG_PIN: u32 = 1; +pub const GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT: u32 = 2; +pub const GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS: u32 = 4; +pub const CURRENT_IMPORT_REDIRECTION_VERSION: u32 = 1; +pub const DONT_RESOLVE_DLL_REFERENCES: u32 = 1; +pub const LOAD_LIBRARY_AS_DATAFILE: u32 = 2; +pub const LOAD_WITH_ALTERED_SEARCH_PATH: u32 = 8; +pub const LOAD_IGNORE_CODE_AUTHZ_LEVEL: u32 = 16; +pub const LOAD_LIBRARY_AS_IMAGE_RESOURCE: u32 = 32; +pub const LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE: u32 = 64; +pub const LOAD_LIBRARY_REQUIRE_SIGNED_TARGET: u32 = 128; +pub const LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR: u32 = 256; +pub const LOAD_LIBRARY_SEARCH_APPLICATION_DIR: u32 = 512; +pub const LOAD_LIBRARY_SEARCH_USER_DIRS: u32 = 1024; +pub const LOAD_LIBRARY_SEARCH_SYSTEM32: u32 = 2048; +pub const LOAD_LIBRARY_SEARCH_DEFAULT_DIRS: u32 = 4096; +pub const LOAD_LIBRARY_SAFE_CURRENT_DIRS: u32 = 8192; +pub const LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER: u32 = 16384; +pub const LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY: u32 = 32768; +pub const PRIVATE_NAMESPACE_FLAG_DESTROY: u32 = 1; +pub const FILE_BEGIN: u32 = 0; +pub const FILE_CURRENT: u32 = 1; +pub const FILE_END: u32 = 2; +pub const FILE_FLAG_WRITE_THROUGH: u32 = 2147483648; +pub const FILE_FLAG_OVERLAPPED: u32 = 1073741824; +pub const FILE_FLAG_NO_BUFFERING: u32 = 536870912; +pub const FILE_FLAG_RANDOM_ACCESS: u32 = 268435456; +pub const FILE_FLAG_SEQUENTIAL_SCAN: u32 = 134217728; +pub const FILE_FLAG_DELETE_ON_CLOSE: u32 = 67108864; +pub const FILE_FLAG_BACKUP_SEMANTICS: u32 = 33554432; +pub const FILE_FLAG_POSIX_SEMANTICS: u32 = 16777216; +pub const FILE_FLAG_SESSION_AWARE: u32 = 8388608; +pub const FILE_FLAG_OPEN_REPARSE_POINT: u32 = 2097152; +pub const FILE_FLAG_OPEN_NO_RECALL: u32 = 1048576; +pub const FILE_FLAG_FIRST_PIPE_INSTANCE: u32 = 524288; +pub const FILE_FLAG_OPEN_REQUIRING_OPLOCK: u32 = 262144; +pub const FILE_FLAG_IGNORE_IMPERSONATED_DEVICEMAP: u32 = 131072; +pub const PROGRESS_CONTINUE: u32 = 0; +pub const PROGRESS_CANCEL: u32 = 1; +pub const PROGRESS_STOP: u32 = 2; +pub const PROGRESS_QUIET: u32 = 3; +pub const CALLBACK_CHUNK_FINISHED: u32 = 0; +pub const CALLBACK_STREAM_SWITCH: u32 = 1; +pub const COPY_FILE_FAIL_IF_EXISTS: u32 = 1; +pub const COPY_FILE_RESTARTABLE: u32 = 2; +pub const COPY_FILE_OPEN_SOURCE_FOR_WRITE: u32 = 4; +pub const COPY_FILE_ALLOW_DECRYPTED_DESTINATION: u32 = 8; +pub const COPY_FILE_COPY_SYMLINK: u32 = 2048; +pub const COPY_FILE_NO_BUFFERING: u32 = 4096; +pub const COPY_FILE_REQUEST_SECURITY_PRIVILEGES: u32 = 8192; +pub const COPY_FILE_RESUME_FROM_PAUSE: u32 = 16384; +pub const COPY_FILE_NO_OFFLOAD: u32 = 262144; +pub const COPY_FILE_IGNORE_EDP_BLOCK: u32 = 4194304; +pub const COPY_FILE_IGNORE_SOURCE_ENCRYPTION: u32 = 8388608; +pub const COPY_FILE_DONT_REQUEST_DEST_WRITE_DAC: u32 = 33554432; +pub const COPY_FILE_REQUEST_COMPRESSED_TRAFFIC: u32 = 268435456; +pub const COPY_FILE_OPEN_AND_COPY_REPARSE_POINT: u32 = 2097152; +pub const COPY_FILE_DIRECTORY: u32 = 128; +pub const COPY_FILE_SKIP_ALTERNATE_STREAMS: u32 = 32768; +pub const COPY_FILE_DISABLE_PRE_ALLOCATION: u32 = 67108864; +pub const COPY_FILE_ENABLE_LOW_FREE_SPACE_MODE: u32 = 134217728; +pub const COPY_FILE_ENABLE_SPARSE_COPY: u32 = 536870912; +pub const REPLACEFILE_WRITE_THROUGH: u32 = 1; +pub const REPLACEFILE_IGNORE_MERGE_ERRORS: u32 = 2; +pub const REPLACEFILE_IGNORE_ACL_ERRORS: u32 = 4; +pub const PIPE_ACCESS_INBOUND: u32 = 1; +pub const PIPE_ACCESS_OUTBOUND: u32 = 2; +pub const PIPE_ACCESS_DUPLEX: u32 = 3; +pub const PIPE_CLIENT_END: u32 = 0; +pub const PIPE_SERVER_END: u32 = 1; +pub const PIPE_WAIT: u32 = 0; +pub const PIPE_NOWAIT: u32 = 1; +pub const PIPE_READMODE_BYTE: u32 = 0; +pub const PIPE_READMODE_MESSAGE: u32 = 2; +pub const PIPE_TYPE_BYTE: u32 = 0; +pub const PIPE_TYPE_MESSAGE: u32 = 4; +pub const PIPE_ACCEPT_REMOTE_CLIENTS: u32 = 0; +pub const PIPE_REJECT_REMOTE_CLIENTS: u32 = 8; +pub const PIPE_UNLIMITED_INSTANCES: u32 = 255; +pub const SECURITY_CONTEXT_TRACKING: u32 = 262144; +pub const SECURITY_EFFECTIVE_ONLY: u32 = 524288; +pub const SECURITY_SQOS_PRESENT: u32 = 1048576; +pub const SECURITY_VALID_SQOS_FLAGS: u32 = 2031616; +pub const FAIL_FAST_GENERATE_EXCEPTION_ADDRESS: u32 = 1; +pub const FAIL_FAST_NO_HARD_ERROR_DLG: u32 = 2; +pub const DTR_CONTROL_DISABLE: u32 = 0; +pub const DTR_CONTROL_ENABLE: u32 = 1; +pub const DTR_CONTROL_HANDSHAKE: u32 = 2; +pub const RTS_CONTROL_DISABLE: u32 = 0; +pub const RTS_CONTROL_ENABLE: u32 = 1; +pub const RTS_CONTROL_HANDSHAKE: u32 = 2; +pub const RTS_CONTROL_TOGGLE: u32 = 3; +pub const GMEM_FIXED: u32 = 0; +pub const GMEM_MOVEABLE: u32 = 2; +pub const GMEM_NOCOMPACT: u32 = 16; +pub const GMEM_NODISCARD: u32 = 32; +pub const GMEM_ZEROINIT: u32 = 64; +pub const GMEM_MODIFY: u32 = 128; +pub const GMEM_DISCARDABLE: u32 = 256; +pub const GMEM_NOT_BANKED: u32 = 4096; +pub const GMEM_SHARE: u32 = 8192; +pub const GMEM_DDESHARE: u32 = 8192; +pub const GMEM_NOTIFY: u32 = 16384; +pub const GMEM_LOWER: u32 = 4096; +pub const GMEM_VALID_FLAGS: u32 = 32626; +pub const GMEM_INVALID_HANDLE: u32 = 32768; +pub const GHND: u32 = 66; +pub const GPTR: u32 = 64; +pub const GMEM_DISCARDED: u32 = 16384; +pub const GMEM_LOCKCOUNT: u32 = 255; +pub const DEBUG_PROCESS: u32 = 1; +pub const DEBUG_ONLY_THIS_PROCESS: u32 = 2; +pub const CREATE_SUSPENDED: u32 = 4; +pub const DETACHED_PROCESS: u32 = 8; +pub const CREATE_NEW_CONSOLE: u32 = 16; +pub const NORMAL_PRIORITY_CLASS: u32 = 32; +pub const IDLE_PRIORITY_CLASS: u32 = 64; +pub const HIGH_PRIORITY_CLASS: u32 = 128; +pub const REALTIME_PRIORITY_CLASS: u32 = 256; +pub const CREATE_NEW_PROCESS_GROUP: u32 = 512; +pub const CREATE_UNICODE_ENVIRONMENT: u32 = 1024; +pub const CREATE_SEPARATE_WOW_VDM: u32 = 2048; +pub const CREATE_SHARED_WOW_VDM: u32 = 4096; +pub const CREATE_FORCEDOS: u32 = 8192; +pub const BELOW_NORMAL_PRIORITY_CLASS: u32 = 16384; +pub const ABOVE_NORMAL_PRIORITY_CLASS: u32 = 32768; +pub const INHERIT_PARENT_AFFINITY: u32 = 65536; +pub const INHERIT_CALLER_PRIORITY: u32 = 131072; +pub const CREATE_PROTECTED_PROCESS: u32 = 262144; +pub const EXTENDED_STARTUPINFO_PRESENT: u32 = 524288; +pub const PROCESS_MODE_BACKGROUND_BEGIN: u32 = 1048576; +pub const PROCESS_MODE_BACKGROUND_END: u32 = 2097152; +pub const CREATE_SECURE_PROCESS: u32 = 4194304; +pub const CREATE_BREAKAWAY_FROM_JOB: u32 = 16777216; +pub const CREATE_PRESERVE_CODE_AUTHZ_LEVEL: u32 = 33554432; +pub const CREATE_DEFAULT_ERROR_MODE: u32 = 67108864; +pub const CREATE_NO_WINDOW: u32 = 134217728; +pub const PROFILE_USER: u32 = 268435456; +pub const PROFILE_KERNEL: u32 = 536870912; +pub const PROFILE_SERVER: u32 = 1073741824; +pub const CREATE_IGNORE_SYSTEM_DEFAULT: u32 = 2147483648; +pub const STACK_SIZE_PARAM_IS_A_RESERVATION: u32 = 65536; +pub const THREAD_PRIORITY_LOWEST: i32 = -2; +pub const THREAD_PRIORITY_BELOW_NORMAL: i32 = -1; +pub const THREAD_PRIORITY_NORMAL: u32 = 0; +pub const THREAD_PRIORITY_HIGHEST: u32 = 2; +pub const THREAD_PRIORITY_ABOVE_NORMAL: u32 = 1; +pub const THREAD_PRIORITY_ERROR_RETURN: u32 = 2147483647; +pub const THREAD_PRIORITY_TIME_CRITICAL: u32 = 15; +pub const THREAD_PRIORITY_IDLE: i32 = -15; +pub const THREAD_MODE_BACKGROUND_BEGIN: u32 = 65536; +pub const THREAD_MODE_BACKGROUND_END: u32 = 131072; +pub const VOLUME_NAME_DOS: u32 = 0; +pub const VOLUME_NAME_GUID: u32 = 1; +pub const VOLUME_NAME_NT: u32 = 2; +pub const VOLUME_NAME_NONE: u32 = 4; +pub const FILE_NAME_NORMALIZED: u32 = 0; +pub const FILE_NAME_OPENED: u32 = 8; +pub const DRIVE_UNKNOWN: u32 = 0; +pub const DRIVE_NO_ROOT_DIR: u32 = 1; +pub const DRIVE_REMOVABLE: u32 = 2; +pub const DRIVE_FIXED: u32 = 3; +pub const DRIVE_REMOTE: u32 = 4; +pub const DRIVE_CDROM: u32 = 5; +pub const DRIVE_RAMDISK: u32 = 6; +pub const FILE_TYPE_UNKNOWN: u32 = 0; +pub const FILE_TYPE_DISK: u32 = 1; +pub const FILE_TYPE_CHAR: u32 = 2; +pub const FILE_TYPE_PIPE: u32 = 3; +pub const FILE_TYPE_REMOTE: u32 = 32768; +pub const NOPARITY: u32 = 0; +pub const ODDPARITY: u32 = 1; +pub const EVENPARITY: u32 = 2; +pub const MARKPARITY: u32 = 3; +pub const SPACEPARITY: u32 = 4; +pub const ONESTOPBIT: u32 = 0; +pub const ONE5STOPBITS: u32 = 1; +pub const TWOSTOPBITS: u32 = 2; +pub const IGNORE: u32 = 0; +pub const INFINITE: u32 = 4294967295; +pub const CBR_110: u32 = 110; +pub const CBR_300: u32 = 300; +pub const CBR_600: u32 = 600; +pub const CBR_1200: u32 = 1200; +pub const CBR_2400: u32 = 2400; +pub const CBR_4800: u32 = 4800; +pub const CBR_9600: u32 = 9600; +pub const CBR_14400: u32 = 14400; +pub const CBR_19200: u32 = 19200; +pub const CBR_38400: u32 = 38400; +pub const CBR_56000: u32 = 56000; +pub const CBR_57600: u32 = 57600; +pub const CBR_115200: u32 = 115200; +pub const CBR_128000: u32 = 128000; +pub const CBR_256000: u32 = 256000; +pub const CE_RXOVER: u32 = 1; +pub const CE_OVERRUN: u32 = 2; +pub const CE_RXPARITY: u32 = 4; +pub const CE_FRAME: u32 = 8; +pub const CE_BREAK: u32 = 16; +pub const CE_TXFULL: u32 = 256; +pub const CE_PTO: u32 = 512; +pub const CE_IOE: u32 = 1024; +pub const CE_DNS: u32 = 2048; +pub const CE_OOP: u32 = 4096; +pub const CE_MODE: u32 = 32768; +pub const IE_BADID: i32 = -1; +pub const IE_OPEN: i32 = -2; +pub const IE_NOPEN: i32 = -3; +pub const IE_MEMORY: i32 = -4; +pub const IE_DEFAULT: i32 = -5; +pub const IE_HARDWARE: i32 = -10; +pub const IE_BYTESIZE: i32 = -11; +pub const IE_BAUDRATE: i32 = -12; +pub const EV_RXCHAR: u32 = 1; +pub const EV_RXFLAG: u32 = 2; +pub const EV_TXEMPTY: u32 = 4; +pub const EV_CTS: u32 = 8; +pub const EV_DSR: u32 = 16; +pub const EV_RLSD: u32 = 32; +pub const EV_BREAK: u32 = 64; +pub const EV_ERR: u32 = 128; +pub const EV_RING: u32 = 256; +pub const EV_PERR: u32 = 512; +pub const EV_RX80FULL: u32 = 1024; +pub const EV_EVENT1: u32 = 2048; +pub const EV_EVENT2: u32 = 4096; +pub const SETXOFF: u32 = 1; +pub const SETXON: u32 = 2; +pub const SETRTS: u32 = 3; +pub const CLRRTS: u32 = 4; +pub const SETDTR: u32 = 5; +pub const CLRDTR: u32 = 6; +pub const RESETDEV: u32 = 7; +pub const SETBREAK: u32 = 8; +pub const CLRBREAK: u32 = 9; +pub const PURGE_TXABORT: u32 = 1; +pub const PURGE_RXABORT: u32 = 2; +pub const PURGE_TXCLEAR: u32 = 4; +pub const PURGE_RXCLEAR: u32 = 8; +pub const LPTx: u32 = 128; +pub const S_QUEUEEMPTY: u32 = 0; +pub const S_THRESHOLD: u32 = 1; +pub const S_ALLTHRESHOLD: u32 = 2; +pub const S_NORMAL: u32 = 0; +pub const S_LEGATO: u32 = 1; +pub const S_STACCATO: u32 = 2; +pub const S_PERIOD512: u32 = 0; +pub const S_PERIOD1024: u32 = 1; +pub const S_PERIOD2048: u32 = 2; +pub const S_PERIODVOICE: u32 = 3; +pub const S_WHITE512: u32 = 4; +pub const S_WHITE1024: u32 = 5; +pub const S_WHITE2048: u32 = 6; +pub const S_WHITEVOICE: u32 = 7; +pub const S_SERDVNA: i32 = -1; +pub const S_SEROFM: i32 = -2; +pub const S_SERMACT: i32 = -3; +pub const S_SERQFUL: i32 = -4; +pub const S_SERBDNT: i32 = -5; +pub const S_SERDLN: i32 = -6; +pub const S_SERDCC: i32 = -7; +pub const S_SERDTP: i32 = -8; +pub const S_SERDVL: i32 = -9; +pub const S_SERDMD: i32 = -10; +pub const S_SERDSH: i32 = -11; +pub const S_SERDPT: i32 = -12; +pub const S_SERDFQ: i32 = -13; +pub const S_SERDDR: i32 = -14; +pub const S_SERDSR: i32 = -15; +pub const S_SERDST: i32 = -16; +pub const NMPWAIT_WAIT_FOREVER: u32 = 4294967295; +pub const NMPWAIT_NOWAIT: u32 = 1; +pub const NMPWAIT_USE_DEFAULT_WAIT: u32 = 0; +pub const FS_CASE_IS_PRESERVED: u32 = 2; +pub const FS_CASE_SENSITIVE: u32 = 1; +pub const FS_UNICODE_STORED_ON_DISK: u32 = 4; +pub const FS_PERSISTENT_ACLS: u32 = 8; +pub const FS_VOL_IS_COMPRESSED: u32 = 32768; +pub const FS_FILE_COMPRESSION: u32 = 16; +pub const FS_FILE_ENCRYPTION: u32 = 131072; +pub const OF_READ: u32 = 0; +pub const OF_WRITE: u32 = 1; +pub const OF_READWRITE: u32 = 2; +pub const OF_SHARE_COMPAT: u32 = 0; +pub const OF_SHARE_EXCLUSIVE: u32 = 16; +pub const OF_SHARE_DENY_WRITE: u32 = 32; +pub const OF_SHARE_DENY_READ: u32 = 48; +pub const OF_SHARE_DENY_NONE: u32 = 64; +pub const OF_PARSE: u32 = 256; +pub const OF_DELETE: u32 = 512; +pub const OF_VERIFY: u32 = 1024; +pub const OF_CANCEL: u32 = 2048; +pub const OF_CREATE: u32 = 4096; +pub const OF_PROMPT: u32 = 8192; +pub const OF_EXIST: u32 = 16384; +pub const OF_REOPEN: u32 = 32768; +pub const OFS_MAXPATHNAME: u32 = 128; +pub const MAXINTATOM: u32 = 49152; +pub const SCS_32BIT_BINARY: u32 = 0; +pub const SCS_DOS_BINARY: u32 = 1; +pub const SCS_WOW_BINARY: u32 = 2; +pub const SCS_PIF_BINARY: u32 = 3; +pub const SCS_POSIX_BINARY: u32 = 4; +pub const SCS_OS216_BINARY: u32 = 5; +pub const SCS_64BIT_BINARY: u32 = 6; +pub const SCS_THIS_PLATFORM_BINARY: u32 = 6; +pub const FIBER_FLAG_FLOAT_SWITCH: u32 = 1; +pub const UMS_VERSION: u32 = 256; +pub const PROCESS_DEP_ENABLE: u32 = 1; +pub const PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION: u32 = 2; +pub const FILE_SKIP_COMPLETION_PORT_ON_SUCCESS: u32 = 1; +pub const FILE_SKIP_SET_EVENT_ON_HANDLE: u32 = 2; +pub const SEM_FAILCRITICALERRORS: u32 = 1; +pub const SEM_NOGPFAULTERRORBOX: u32 = 2; +pub const SEM_NOALIGNMENTFAULTEXCEPT: u32 = 4; +pub const SEM_NOOPENFILEERRORBOX: u32 = 32768; +pub const CRITICAL_SECTION_NO_DEBUG_INFO: u32 = 16777216; +pub const HANDLE_FLAG_INHERIT: u32 = 1; +pub const HANDLE_FLAG_PROTECT_FROM_CLOSE: u32 = 2; +pub const HINSTANCE_ERROR: u32 = 32; +pub const GET_TAPE_MEDIA_INFORMATION: u32 = 0; +pub const GET_TAPE_DRIVE_INFORMATION: u32 = 1; +pub const SET_TAPE_MEDIA_INFORMATION: u32 = 0; +pub const SET_TAPE_DRIVE_INFORMATION: u32 = 1; +pub const FORMAT_MESSAGE_ALLOCATE_BUFFER: u32 = 256; +pub const FORMAT_MESSAGE_IGNORE_INSERTS: u32 = 512; +pub const FORMAT_MESSAGE_FROM_STRING: u32 = 1024; +pub const FORMAT_MESSAGE_FROM_HMODULE: u32 = 2048; +pub const FORMAT_MESSAGE_FROM_SYSTEM: u32 = 4096; +pub const FORMAT_MESSAGE_ARGUMENT_ARRAY: u32 = 8192; +pub const FORMAT_MESSAGE_MAX_WIDTH_MASK: u32 = 255; +pub const FILE_ENCRYPTABLE: u32 = 0; +pub const FILE_IS_ENCRYPTED: u32 = 1; +pub const FILE_SYSTEM_ATTR: u32 = 2; +pub const FILE_ROOT_DIR: u32 = 3; +pub const FILE_SYSTEM_DIR: u32 = 4; +pub const FILE_UNKNOWN: u32 = 5; +pub const FILE_SYSTEM_NOT_SUPPORT: u32 = 6; +pub const FILE_USER_DISALLOWED: u32 = 7; +pub const FILE_READ_ONLY: u32 = 8; +pub const FILE_DIR_DISALLOWED: u32 = 9; +pub const EFS_USE_RECOVERY_KEYS: u32 = 1; +pub const CREATE_FOR_IMPORT: u32 = 1; +pub const CREATE_FOR_DIR: u32 = 2; +pub const OVERWRITE_HIDDEN: u32 = 4; +pub const EFSRPC_SECURE_ONLY: u32 = 8; +pub const EFS_DROP_ALTERNATE_STREAMS: u32 = 16; +pub const BACKUP_INVALID: u32 = 0; +pub const BACKUP_DATA: u32 = 1; +pub const BACKUP_EA_DATA: u32 = 2; +pub const BACKUP_SECURITY_DATA: u32 = 3; +pub const BACKUP_ALTERNATE_DATA: u32 = 4; +pub const BACKUP_LINK: u32 = 5; +pub const BACKUP_PROPERTY_DATA: u32 = 6; +pub const BACKUP_OBJECT_ID: u32 = 7; +pub const BACKUP_REPARSE_DATA: u32 = 8; +pub const BACKUP_SPARSE_BLOCK: u32 = 9; +pub const BACKUP_TXFS_DATA: u32 = 10; +pub const BACKUP_GHOSTED_FILE_EXTENTS: u32 = 11; +pub const STREAM_NORMAL_ATTRIBUTE: u32 = 0; +pub const STREAM_MODIFIED_WHEN_READ: u32 = 1; +pub const STREAM_CONTAINS_SECURITY: u32 = 2; +pub const STREAM_CONTAINS_PROPERTIES: u32 = 4; +pub const STREAM_SPARSE_ATTRIBUTE: u32 = 8; +pub const STREAM_CONTAINS_GHOSTED_FILE_EXTENTS: u32 = 16; +pub const STARTF_USESHOWWINDOW: u32 = 1; +pub const STARTF_USESIZE: u32 = 2; +pub const STARTF_USEPOSITION: u32 = 4; +pub const STARTF_USECOUNTCHARS: u32 = 8; +pub const STARTF_USEFILLATTRIBUTE: u32 = 16; +pub const STARTF_RUNFULLSCREEN: u32 = 32; +pub const STARTF_FORCEONFEEDBACK: u32 = 64; +pub const STARTF_FORCEOFFFEEDBACK: u32 = 128; +pub const STARTF_USESTDHANDLES: u32 = 256; +pub const STARTF_USEHOTKEY: u32 = 512; +pub const STARTF_TITLEISLINKNAME: u32 = 2048; +pub const STARTF_TITLEISAPPID: u32 = 4096; +pub const STARTF_PREVENTPINNING: u32 = 8192; +pub const STARTF_UNTRUSTEDSOURCE: u32 = 32768; +pub const STARTF_HOLOGRAPHIC: u32 = 262144; +pub const SHUTDOWN_NORETRY: u32 = 1; +pub const PROTECTION_LEVEL_WINTCB_LIGHT: u32 = 0; +pub const PROTECTION_LEVEL_WINDOWS: u32 = 1; +pub const PROTECTION_LEVEL_WINDOWS_LIGHT: u32 = 2; +pub const PROTECTION_LEVEL_ANTIMALWARE_LIGHT: u32 = 3; +pub const PROTECTION_LEVEL_LSA_LIGHT: u32 = 4; +pub const PROTECTION_LEVEL_WINTCB: u32 = 5; +pub const PROTECTION_LEVEL_CODEGEN_LIGHT: u32 = 6; +pub const PROTECTION_LEVEL_AUTHENTICODE: u32 = 7; +pub const PROTECTION_LEVEL_PPL_APP: u32 = 8; +pub const PROTECTION_LEVEL_SAME: u32 = 4294967295; +pub const PROTECTION_LEVEL_NONE: u32 = 4294967294; +pub const PROCESS_NAME_NATIVE: u32 = 1; +pub const PROC_THREAD_ATTRIBUTE_NUMBER: u32 = 65535; +pub const PROC_THREAD_ATTRIBUTE_THREAD: u32 = 65536; +pub const PROC_THREAD_ATTRIBUTE_INPUT: u32 = 131072; +pub const PROC_THREAD_ATTRIBUTE_ADDITIVE: u32 = 262144; +pub const PROCESS_CREATION_MITIGATION_POLICY_DEP_ENABLE: u32 = 1; +pub const PROCESS_CREATION_MITIGATION_POLICY_DEP_ATL_THUNK_ENABLE: u32 = 2; +pub const PROCESS_CREATION_MITIGATION_POLICY_SEHOP_ENABLE: u32 = 4; +pub const PROCESS_CREATION_MITIGATION_POLICY_FORCE_RELOCATE_IMAGES_MASK: u32 = 768; +pub const PROCESS_CREATION_MITIGATION_POLICY_FORCE_RELOCATE_IMAGES_DEFER: u32 = 0; +pub const PROCESS_CREATION_MITIGATION_POLICY_FORCE_RELOCATE_IMAGES_ALWAYS_ON: u32 = 256; +pub const PROCESS_CREATION_MITIGATION_POLICY_FORCE_RELOCATE_IMAGES_ALWAYS_OFF: u32 = 512; +pub const PROCESS_CREATION_MITIGATION_POLICY_FORCE_RELOCATE_IMAGES_ALWAYS_ON_REQ_RELOCS: u32 = 768; +pub const PROCESS_CREATION_MITIGATION_POLICY_HEAP_TERMINATE_MASK: u32 = 12288; +pub const PROCESS_CREATION_MITIGATION_POLICY_HEAP_TERMINATE_DEFER: u32 = 0; +pub const PROCESS_CREATION_MITIGATION_POLICY_HEAP_TERMINATE_ALWAYS_ON: u32 = 4096; +pub const PROCESS_CREATION_MITIGATION_POLICY_HEAP_TERMINATE_ALWAYS_OFF: u32 = 8192; +pub const PROCESS_CREATION_MITIGATION_POLICY_HEAP_TERMINATE_RESERVED: u32 = 12288; +pub const PROCESS_CREATION_MITIGATION_POLICY_BOTTOM_UP_ASLR_MASK: u32 = 196608; +pub const PROCESS_CREATION_MITIGATION_POLICY_BOTTOM_UP_ASLR_DEFER: u32 = 0; +pub const PROCESS_CREATION_MITIGATION_POLICY_BOTTOM_UP_ASLR_ALWAYS_ON: u32 = 65536; +pub const PROCESS_CREATION_MITIGATION_POLICY_BOTTOM_UP_ASLR_ALWAYS_OFF: u32 = 131072; +pub const PROCESS_CREATION_MITIGATION_POLICY_BOTTOM_UP_ASLR_RESERVED: u32 = 196608; +pub const PROCESS_CREATION_MITIGATION_POLICY_HIGH_ENTROPY_ASLR_MASK: u32 = 3145728; +pub const PROCESS_CREATION_MITIGATION_POLICY_HIGH_ENTROPY_ASLR_DEFER: u32 = 0; +pub const PROCESS_CREATION_MITIGATION_POLICY_HIGH_ENTROPY_ASLR_ALWAYS_ON: u32 = 1048576; +pub const PROCESS_CREATION_MITIGATION_POLICY_HIGH_ENTROPY_ASLR_ALWAYS_OFF: u32 = 2097152; +pub const PROCESS_CREATION_MITIGATION_POLICY_HIGH_ENTROPY_ASLR_RESERVED: u32 = 3145728; +pub const PROCESS_CREATION_MITIGATION_POLICY_STRICT_HANDLE_CHECKS_MASK: u32 = 50331648; +pub const PROCESS_CREATION_MITIGATION_POLICY_STRICT_HANDLE_CHECKS_DEFER: u32 = 0; +pub const PROCESS_CREATION_MITIGATION_POLICY_STRICT_HANDLE_CHECKS_ALWAYS_ON: u32 = 16777216; +pub const PROCESS_CREATION_MITIGATION_POLICY_STRICT_HANDLE_CHECKS_ALWAYS_OFF: u32 = 33554432; +pub const PROCESS_CREATION_MITIGATION_POLICY_STRICT_HANDLE_CHECKS_RESERVED: u32 = 50331648; +pub const PROCESS_CREATION_MITIGATION_POLICY_WIN32K_SYSTEM_CALL_DISABLE_MASK: u32 = 805306368; +pub const PROCESS_CREATION_MITIGATION_POLICY_WIN32K_SYSTEM_CALL_DISABLE_DEFER: u32 = 0; +pub const PROCESS_CREATION_MITIGATION_POLICY_WIN32K_SYSTEM_CALL_DISABLE_ALWAYS_ON: u32 = 268435456; +pub const PROCESS_CREATION_MITIGATION_POLICY_WIN32K_SYSTEM_CALL_DISABLE_ALWAYS_OFF: u32 = 536870912; +pub const PROCESS_CREATION_MITIGATION_POLICY_WIN32K_SYSTEM_CALL_DISABLE_RESERVED: u32 = 805306368; +pub const PROCESS_CREATION_CHILD_PROCESS_RESTRICTED: u32 = 1; +pub const PROCESS_CREATION_CHILD_PROCESS_OVERRIDE: u32 = 2; +pub const PROCESS_CREATION_CHILD_PROCESS_RESTRICTED_UNLESS_SECURE: u32 = 4; +pub const PROCESS_CREATION_ALL_APPLICATION_PACKAGES_OPT_OUT: u32 = 1; +pub const PROCESS_CREATION_DESKTOP_APP_BREAKAWAY_ENABLE_PROCESS_TREE: u32 = 1; +pub const PROCESS_CREATION_DESKTOP_APP_BREAKAWAY_DISABLE_PROCESS_TREE: u32 = 2; +pub const PROCESS_CREATION_DESKTOP_APP_BREAKAWAY_OVERRIDE: u32 = 4; +pub const ATOM_FLAG_GLOBAL: u32 = 2; +pub const GET_SYSTEM_WOW64_DIRECTORY_NAME_A_A: &[u8; 25] = b"GetSystemWow64DirectoryA\0"; +pub const GET_SYSTEM_WOW64_DIRECTORY_NAME_A_W: &[u8; 25] = b"GetSystemWow64DirectoryA\0"; +pub const GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A: &[u8; 25] = b"GetSystemWow64DirectoryW\0"; +pub const GET_SYSTEM_WOW64_DIRECTORY_NAME_W_W: &[u8; 25] = b"GetSystemWow64DirectoryW\0"; +pub const GET_SYSTEM_WOW64_DIRECTORY_NAME_T_A: &[u8; 25] = b"GetSystemWow64DirectoryA\0"; +pub const GET_SYSTEM_WOW64_DIRECTORY_NAME_T_W: &[u8; 25] = b"GetSystemWow64DirectoryA\0"; +pub const BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE: u32 = 1; +pub const BASE_SEARCH_PATH_DISABLE_SAFE_SEARCHMODE: u32 = 65536; +pub const BASE_SEARCH_PATH_PERMANENT: u32 = 32768; +pub const BASE_SEARCH_PATH_INVALID_FLAGS: i32 = -98306; +pub const DDD_RAW_TARGET_PATH: u32 = 1; +pub const DDD_REMOVE_DEFINITION: u32 = 2; +pub const DDD_EXACT_MATCH_ON_REMOVE: u32 = 4; +pub const DDD_NO_BROADCAST_SYSTEM: u32 = 8; +pub const DDD_LUID_BROADCAST_DRIVE: u32 = 16; +pub const COPYFILE2_MESSAGE_COPY_OFFLOAD: u32 = 1; +pub const COPYFILE2_IO_CYCLE_SIZE_MIN: u32 = 4096; +pub const COPYFILE2_IO_CYCLE_SIZE_MAX: u32 = 1073741824; +pub const COPYFILE2_IO_RATE_MIN: u32 = 512; +pub const COPY_FILE2_V2_DONT_COPY_JUNCTIONS: u32 = 1; +pub const COPY_FILE2_V2_VALID_FLAGS: u32 = 1; +pub const MOVEFILE_REPLACE_EXISTING: u32 = 1; +pub const MOVEFILE_COPY_ALLOWED: u32 = 2; +pub const MOVEFILE_DELAY_UNTIL_REBOOT: u32 = 4; +pub const MOVEFILE_WRITE_THROUGH: u32 = 8; +pub const MOVEFILE_CREATE_HARDLINK: u32 = 16; +pub const MOVEFILE_FAIL_IF_NOT_TRACKABLE: u32 = 32; +pub const EVENTLOG_FULL_INFO: u32 = 0; +pub const OPERATION_API_VERSION: u32 = 1; +pub const OPERATION_START_TRACE_CURRENT_THREAD: u32 = 1; +pub const OPERATION_END_DISCARD: u32 = 1; +pub const MAX_COMPUTERNAME_LENGTH: u32 = 15; +pub const LOGON32_LOGON_INTERACTIVE: u32 = 2; +pub const LOGON32_LOGON_NETWORK: u32 = 3; +pub const LOGON32_LOGON_BATCH: u32 = 4; +pub const LOGON32_LOGON_SERVICE: u32 = 5; +pub const LOGON32_LOGON_UNLOCK: u32 = 7; +pub const LOGON32_LOGON_NETWORK_CLEARTEXT: u32 = 8; +pub const LOGON32_LOGON_NEW_CREDENTIALS: u32 = 9; +pub const LOGON32_PROVIDER_DEFAULT: u32 = 0; +pub const LOGON32_PROVIDER_WINNT35: u32 = 1; +pub const LOGON32_PROVIDER_WINNT40: u32 = 2; +pub const LOGON32_PROVIDER_WINNT50: u32 = 3; +pub const LOGON32_PROVIDER_VIRTUAL: u32 = 4; +pub const LOGON_WITH_PROFILE: u32 = 1; +pub const LOGON_NETCREDENTIALS_ONLY: u32 = 2; +pub const LOGON_ZERO_PASSWORD_BUFFER: u32 = 2147483648; +pub const HW_PROFILE_GUIDLEN: u32 = 39; +pub const MAX_PROFILE_LEN: u32 = 80; +pub const DOCKINFO_UNDOCKED: u32 = 1; +pub const DOCKINFO_DOCKED: u32 = 2; +pub const DOCKINFO_USER_SUPPLIED: u32 = 4; +pub const DOCKINFO_USER_UNDOCKED: u32 = 5; +pub const DOCKINFO_USER_DOCKED: u32 = 6; +pub const FACILITY_NULL: u32 = 0; +pub const FACILITY_RPC: u32 = 1; +pub const FACILITY_DISPATCH: u32 = 2; +pub const FACILITY_STORAGE: u32 = 3; +pub const FACILITY_ITF: u32 = 4; +pub const FACILITY_WIN32: u32 = 7; +pub const FACILITY_WINDOWS: u32 = 8; +pub const FACILITY_SSPI: u32 = 9; +pub const FACILITY_SECURITY: u32 = 9; +pub const FACILITY_CONTROL: u32 = 10; +pub const FACILITY_CERT: u32 = 11; +pub const FACILITY_INTERNET: u32 = 12; +pub const FACILITY_MEDIASERVER: u32 = 13; +pub const FACILITY_MSMQ: u32 = 14; +pub const FACILITY_SETUPAPI: u32 = 15; +pub const FACILITY_SCARD: u32 = 16; +pub const FACILITY_COMPLUS: u32 = 17; +pub const FACILITY_AAF: u32 = 18; +pub const FACILITY_URT: u32 = 19; +pub const FACILITY_ACS: u32 = 20; +pub const FACILITY_DPLAY: u32 = 21; +pub const FACILITY_UMI: u32 = 22; +pub const FACILITY_SXS: u32 = 23; +pub const FACILITY_WINDOWS_CE: u32 = 24; +pub const FACILITY_HTTP: u32 = 25; +pub const FACILITY_USERMODE_COMMONLOG: u32 = 26; +pub const FACILITY_WER: u32 = 27; +pub const FACILITY_USERMODE_FILTER_MANAGER: u32 = 31; +pub const FACILITY_BACKGROUNDCOPY: u32 = 32; +pub const FACILITY_CONFIGURATION: u32 = 33; +pub const FACILITY_WIA: u32 = 33; +pub const FACILITY_STATE_MANAGEMENT: u32 = 34; +pub const FACILITY_METADIRECTORY: u32 = 35; +pub const FACILITY_WINDOWSUPDATE: u32 = 36; +pub const FACILITY_DIRECTORYSERVICE: u32 = 37; +pub const FACILITY_GRAPHICS: u32 = 38; +pub const FACILITY_SHELL: u32 = 39; +pub const FACILITY_NAP: u32 = 39; +pub const FACILITY_TPM_SERVICES: u32 = 40; +pub const FACILITY_TPM_SOFTWARE: u32 = 41; +pub const FACILITY_UI: u32 = 42; +pub const FACILITY_XAML: u32 = 43; +pub const FACILITY_ACTION_QUEUE: u32 = 44; +pub const FACILITY_PLA: u32 = 48; +pub const FACILITY_WINDOWS_SETUP: u32 = 48; +pub const FACILITY_FVE: u32 = 49; +pub const FACILITY_FWP: u32 = 50; +pub const FACILITY_WINRM: u32 = 51; +pub const FACILITY_NDIS: u32 = 52; +pub const FACILITY_USERMODE_HYPERVISOR: u32 = 53; +pub const FACILITY_CMI: u32 = 54; +pub const FACILITY_USERMODE_VIRTUALIZATION: u32 = 55; +pub const FACILITY_USERMODE_VOLMGR: u32 = 56; +pub const FACILITY_BCD: u32 = 57; +pub const FACILITY_USERMODE_VHD: u32 = 58; +pub const FACILITY_USERMODE_HNS: u32 = 59; +pub const FACILITY_SDIAG: u32 = 60; +pub const FACILITY_WEBSERVICES: u32 = 61; +pub const FACILITY_WINPE: u32 = 61; +pub const FACILITY_WPN: u32 = 62; +pub const FACILITY_WINDOWS_STORE: u32 = 63; +pub const FACILITY_INPUT: u32 = 64; +pub const FACILITY_QUIC: u32 = 65; +pub const FACILITY_EAP: u32 = 66; +pub const FACILITY_IORING: u32 = 70; +pub const FACILITY_WINDOWS_DEFENDER: u32 = 80; +pub const FACILITY_OPC: u32 = 81; +pub const FACILITY_XPS: u32 = 82; +pub const FACILITY_MBN: u32 = 84; +pub const FACILITY_POWERSHELL: u32 = 84; +pub const FACILITY_RAS: u32 = 83; +pub const FACILITY_P2P_INT: u32 = 98; +pub const FACILITY_P2P: u32 = 99; +pub const FACILITY_DAF: u32 = 100; +pub const FACILITY_BLUETOOTH_ATT: u32 = 101; +pub const FACILITY_AUDIO: u32 = 102; +pub const FACILITY_STATEREPOSITORY: u32 = 103; +pub const FACILITY_VISUALCPP: u32 = 109; +pub const FACILITY_SCRIPT: u32 = 112; +pub const FACILITY_PARSE: u32 = 113; +pub const FACILITY_BLB: u32 = 120; +pub const FACILITY_BLB_CLI: u32 = 121; +pub const FACILITY_WSBAPP: u32 = 122; +pub const FACILITY_BLBUI: u32 = 128; +pub const FACILITY_USN: u32 = 129; +pub const FACILITY_USERMODE_VOLSNAP: u32 = 130; +pub const FACILITY_TIERING: u32 = 131; +pub const FACILITY_WSB_ONLINE: u32 = 133; +pub const FACILITY_ONLINE_ID: u32 = 134; +pub const FACILITY_DEVICE_UPDATE_AGENT: u32 = 135; +pub const FACILITY_DRVSERVICING: u32 = 136; +pub const FACILITY_DLS: u32 = 153; +pub const FACILITY_DELIVERY_OPTIMIZATION: u32 = 208; +pub const FACILITY_USERMODE_SPACES: u32 = 231; +pub const FACILITY_USER_MODE_SECURITY_CORE: u32 = 232; +pub const FACILITY_USERMODE_LICENSING: u32 = 234; +pub const FACILITY_SOS: u32 = 160; +pub const FACILITY_OCP_UPDATE_AGENT: u32 = 173; +pub const FACILITY_DEBUGGERS: u32 = 176; +pub const FACILITY_SPP: u32 = 256; +pub const FACILITY_RESTORE: u32 = 256; +pub const FACILITY_DMSERVER: u32 = 256; +pub const FACILITY_DEPLOYMENT_SERVICES_SERVER: u32 = 257; +pub const FACILITY_DEPLOYMENT_SERVICES_IMAGING: u32 = 258; +pub const FACILITY_DEPLOYMENT_SERVICES_MANAGEMENT: u32 = 259; +pub const FACILITY_DEPLOYMENT_SERVICES_UTIL: u32 = 260; +pub const FACILITY_DEPLOYMENT_SERVICES_BINLSVC: u32 = 261; +pub const FACILITY_DEPLOYMENT_SERVICES_PXE: u32 = 263; +pub const FACILITY_DEPLOYMENT_SERVICES_TFTP: u32 = 264; +pub const FACILITY_DEPLOYMENT_SERVICES_TRANSPORT_MANAGEMENT: u32 = 272; +pub const FACILITY_DEPLOYMENT_SERVICES_DRIVER_PROVISIONING: u32 = 278; +pub const FACILITY_DEPLOYMENT_SERVICES_MULTICAST_SERVER: u32 = 289; +pub const FACILITY_DEPLOYMENT_SERVICES_MULTICAST_CLIENT: u32 = 290; +pub const FACILITY_DEPLOYMENT_SERVICES_CONTENT_PROVIDER: u32 = 293; +pub const FACILITY_HSP_SERVICES: u32 = 296; +pub const FACILITY_HSP_SOFTWARE: u32 = 297; +pub const FACILITY_LINGUISTIC_SERVICES: u32 = 305; +pub const FACILITY_AUDIOSTREAMING: u32 = 1094; +pub const FACILITY_TTD: u32 = 1490; +pub const FACILITY_ACCELERATOR: u32 = 1536; +pub const FACILITY_WMAAECMA: u32 = 1996; +pub const FACILITY_DIRECTMUSIC: u32 = 2168; +pub const FACILITY_DIRECT3D10: u32 = 2169; +pub const FACILITY_DXGI: u32 = 2170; +pub const FACILITY_DXGI_DDI: u32 = 2171; +pub const FACILITY_DIRECT3D11: u32 = 2172; +pub const FACILITY_DIRECT3D11_DEBUG: u32 = 2173; +pub const FACILITY_DIRECT3D12: u32 = 2174; +pub const FACILITY_DIRECT3D12_DEBUG: u32 = 2175; +pub const FACILITY_DXCORE: u32 = 2176; +pub const FACILITY_PRESENTATION: u32 = 2177; +pub const FACILITY_LEAP: u32 = 2184; +pub const FACILITY_AUDCLNT: u32 = 2185; +pub const FACILITY_WINCODEC_DWRITE_DWM: u32 = 2200; +pub const FACILITY_WINML: u32 = 2192; +pub const FACILITY_DIRECT2D: u32 = 2201; +pub const FACILITY_DEFRAG: u32 = 2304; +pub const FACILITY_USERMODE_SDBUS: u32 = 2305; +pub const FACILITY_JSCRIPT: u32 = 2306; +pub const FACILITY_PIDGENX: u32 = 2561; +pub const FACILITY_EAS: u32 = 85; +pub const FACILITY_WEB: u32 = 885; +pub const FACILITY_WEB_SOCKET: u32 = 886; +pub const FACILITY_MOBILE: u32 = 1793; +pub const FACILITY_SQLITE: u32 = 1967; +pub const FACILITY_SERVICE_FABRIC: u32 = 1968; +pub const FACILITY_UTC: u32 = 1989; +pub const FACILITY_WEP: u32 = 2049; +pub const FACILITY_SYNCENGINE: u32 = 2050; +pub const FACILITY_XBOX: u32 = 2339; +pub const FACILITY_GAME: u32 = 2340; +pub const FACILITY_PIX: u32 = 2748; +pub const ERROR_SUCCESS: u32 = 0; +pub const NO_ERROR: u32 = 0; +pub const ERROR_INVALID_FUNCTION: u32 = 1; +pub const ERROR_FILE_NOT_FOUND: u32 = 2; +pub const ERROR_PATH_NOT_FOUND: u32 = 3; +pub const ERROR_TOO_MANY_OPEN_FILES: u32 = 4; +pub const ERROR_ACCESS_DENIED: u32 = 5; +pub const ERROR_INVALID_HANDLE: u32 = 6; +pub const ERROR_ARENA_TRASHED: u32 = 7; +pub const ERROR_NOT_ENOUGH_MEMORY: u32 = 8; +pub const ERROR_INVALID_BLOCK: u32 = 9; +pub const ERROR_BAD_ENVIRONMENT: u32 = 10; +pub const ERROR_BAD_FORMAT: u32 = 11; +pub const ERROR_INVALID_ACCESS: u32 = 12; +pub const ERROR_INVALID_DATA: u32 = 13; +pub const ERROR_OUTOFMEMORY: u32 = 14; +pub const ERROR_INVALID_DRIVE: u32 = 15; +pub const ERROR_CURRENT_DIRECTORY: u32 = 16; +pub const ERROR_NOT_SAME_DEVICE: u32 = 17; +pub const ERROR_NO_MORE_FILES: u32 = 18; +pub const ERROR_WRITE_PROTECT: u32 = 19; +pub const ERROR_BAD_UNIT: u32 = 20; +pub const ERROR_NOT_READY: u32 = 21; +pub const ERROR_BAD_COMMAND: u32 = 22; +pub const ERROR_CRC: u32 = 23; +pub const ERROR_BAD_LENGTH: u32 = 24; +pub const ERROR_SEEK: u32 = 25; +pub const ERROR_NOT_DOS_DISK: u32 = 26; +pub const ERROR_SECTOR_NOT_FOUND: u32 = 27; +pub const ERROR_OUT_OF_PAPER: u32 = 28; +pub const ERROR_WRITE_FAULT: u32 = 29; +pub const ERROR_READ_FAULT: u32 = 30; +pub const ERROR_GEN_FAILURE: u32 = 31; +pub const ERROR_SHARING_VIOLATION: u32 = 32; +pub const ERROR_LOCK_VIOLATION: u32 = 33; +pub const ERROR_WRONG_DISK: u32 = 34; +pub const ERROR_SHARING_BUFFER_EXCEEDED: u32 = 36; +pub const ERROR_HANDLE_EOF: u32 = 38; +pub const ERROR_HANDLE_DISK_FULL: u32 = 39; +pub const ERROR_NOT_SUPPORTED: u32 = 50; +pub const ERROR_REM_NOT_LIST: u32 = 51; +pub const ERROR_DUP_NAME: u32 = 52; +pub const ERROR_BAD_NETPATH: u32 = 53; +pub const ERROR_NETWORK_BUSY: u32 = 54; +pub const ERROR_DEV_NOT_EXIST: u32 = 55; +pub const ERROR_TOO_MANY_CMDS: u32 = 56; +pub const ERROR_ADAP_HDW_ERR: u32 = 57; +pub const ERROR_BAD_NET_RESP: u32 = 58; +pub const ERROR_UNEXP_NET_ERR: u32 = 59; +pub const ERROR_BAD_REM_ADAP: u32 = 60; +pub const ERROR_PRINTQ_FULL: u32 = 61; +pub const ERROR_NO_SPOOL_SPACE: u32 = 62; +pub const ERROR_PRINT_CANCELLED: u32 = 63; +pub const ERROR_NETNAME_DELETED: u32 = 64; +pub const ERROR_NETWORK_ACCESS_DENIED: u32 = 65; +pub const ERROR_BAD_DEV_TYPE: u32 = 66; +pub const ERROR_BAD_NET_NAME: u32 = 67; +pub const ERROR_TOO_MANY_NAMES: u32 = 68; +pub const ERROR_TOO_MANY_SESS: u32 = 69; +pub const ERROR_SHARING_PAUSED: u32 = 70; +pub const ERROR_REQ_NOT_ACCEP: u32 = 71; +pub const ERROR_REDIR_PAUSED: u32 = 72; +pub const ERROR_FILE_EXISTS: u32 = 80; +pub const ERROR_CANNOT_MAKE: u32 = 82; +pub const ERROR_FAIL_I24: u32 = 83; +pub const ERROR_OUT_OF_STRUCTURES: u32 = 84; +pub const ERROR_ALREADY_ASSIGNED: u32 = 85; +pub const ERROR_INVALID_PASSWORD: u32 = 86; +pub const ERROR_INVALID_PARAMETER: u32 = 87; +pub const ERROR_NET_WRITE_FAULT: u32 = 88; +pub const ERROR_NO_PROC_SLOTS: u32 = 89; +pub const ERROR_TOO_MANY_SEMAPHORES: u32 = 100; +pub const ERROR_EXCL_SEM_ALREADY_OWNED: u32 = 101; +pub const ERROR_SEM_IS_SET: u32 = 102; +pub const ERROR_TOO_MANY_SEM_REQUESTS: u32 = 103; +pub const ERROR_INVALID_AT_INTERRUPT_TIME: u32 = 104; +pub const ERROR_SEM_OWNER_DIED: u32 = 105; +pub const ERROR_SEM_USER_LIMIT: u32 = 106; +pub const ERROR_DISK_CHANGE: u32 = 107; +pub const ERROR_DRIVE_LOCKED: u32 = 108; +pub const ERROR_BROKEN_PIPE: u32 = 109; +pub const ERROR_OPEN_FAILED: u32 = 110; +pub const ERROR_BUFFER_OVERFLOW: u32 = 111; +pub const ERROR_DISK_FULL: u32 = 112; +pub const ERROR_NO_MORE_SEARCH_HANDLES: u32 = 113; +pub const ERROR_INVALID_TARGET_HANDLE: u32 = 114; +pub const ERROR_INVALID_CATEGORY: u32 = 117; +pub const ERROR_INVALID_VERIFY_SWITCH: u32 = 118; +pub const ERROR_BAD_DRIVER_LEVEL: u32 = 119; +pub const ERROR_CALL_NOT_IMPLEMENTED: u32 = 120; +pub const ERROR_SEM_TIMEOUT: u32 = 121; +pub const ERROR_INSUFFICIENT_BUFFER: u32 = 122; +pub const ERROR_INVALID_NAME: u32 = 123; +pub const ERROR_INVALID_LEVEL: u32 = 124; +pub const ERROR_NO_VOLUME_LABEL: u32 = 125; +pub const ERROR_MOD_NOT_FOUND: u32 = 126; +pub const ERROR_PROC_NOT_FOUND: u32 = 127; +pub const ERROR_WAIT_NO_CHILDREN: u32 = 128; +pub const ERROR_CHILD_NOT_COMPLETE: u32 = 129; +pub const ERROR_DIRECT_ACCESS_HANDLE: u32 = 130; +pub const ERROR_NEGATIVE_SEEK: u32 = 131; +pub const ERROR_SEEK_ON_DEVICE: u32 = 132; +pub const ERROR_IS_JOIN_TARGET: u32 = 133; +pub const ERROR_IS_JOINED: u32 = 134; +pub const ERROR_IS_SUBSTED: u32 = 135; +pub const ERROR_NOT_JOINED: u32 = 136; +pub const ERROR_NOT_SUBSTED: u32 = 137; +pub const ERROR_JOIN_TO_JOIN: u32 = 138; +pub const ERROR_SUBST_TO_SUBST: u32 = 139; +pub const ERROR_JOIN_TO_SUBST: u32 = 140; +pub const ERROR_SUBST_TO_JOIN: u32 = 141; +pub const ERROR_BUSY_DRIVE: u32 = 142; +pub const ERROR_SAME_DRIVE: u32 = 143; +pub const ERROR_DIR_NOT_ROOT: u32 = 144; +pub const ERROR_DIR_NOT_EMPTY: u32 = 145; +pub const ERROR_IS_SUBST_PATH: u32 = 146; +pub const ERROR_IS_JOIN_PATH: u32 = 147; +pub const ERROR_PATH_BUSY: u32 = 148; +pub const ERROR_IS_SUBST_TARGET: u32 = 149; +pub const ERROR_SYSTEM_TRACE: u32 = 150; +pub const ERROR_INVALID_EVENT_COUNT: u32 = 151; +pub const ERROR_TOO_MANY_MUXWAITERS: u32 = 152; +pub const ERROR_INVALID_LIST_FORMAT: u32 = 153; +pub const ERROR_LABEL_TOO_LONG: u32 = 154; +pub const ERROR_TOO_MANY_TCBS: u32 = 155; +pub const ERROR_SIGNAL_REFUSED: u32 = 156; +pub const ERROR_DISCARDED: u32 = 157; +pub const ERROR_NOT_LOCKED: u32 = 158; +pub const ERROR_BAD_THREADID_ADDR: u32 = 159; +pub const ERROR_BAD_ARGUMENTS: u32 = 160; +pub const ERROR_BAD_PATHNAME: u32 = 161; +pub const ERROR_SIGNAL_PENDING: u32 = 162; +pub const ERROR_MAX_THRDS_REACHED: u32 = 164; +pub const ERROR_LOCK_FAILED: u32 = 167; +pub const ERROR_BUSY: u32 = 170; +pub const ERROR_DEVICE_SUPPORT_IN_PROGRESS: u32 = 171; +pub const ERROR_CANCEL_VIOLATION: u32 = 173; +pub const ERROR_ATOMIC_LOCKS_NOT_SUPPORTED: u32 = 174; +pub const ERROR_INVALID_SEGMENT_NUMBER: u32 = 180; +pub const ERROR_INVALID_ORDINAL: u32 = 182; +pub const ERROR_ALREADY_EXISTS: u32 = 183; +pub const ERROR_INVALID_FLAG_NUMBER: u32 = 186; +pub const ERROR_SEM_NOT_FOUND: u32 = 187; +pub const ERROR_INVALID_STARTING_CODESEG: u32 = 188; +pub const ERROR_INVALID_STACKSEG: u32 = 189; +pub const ERROR_INVALID_MODULETYPE: u32 = 190; +pub const ERROR_INVALID_EXE_SIGNATURE: u32 = 191; +pub const ERROR_EXE_MARKED_INVALID: u32 = 192; +pub const ERROR_BAD_EXE_FORMAT: u32 = 193; +pub const ERROR_ITERATED_DATA_EXCEEDS_64k: u32 = 194; +pub const ERROR_INVALID_MINALLOCSIZE: u32 = 195; +pub const ERROR_DYNLINK_FROM_INVALID_RING: u32 = 196; +pub const ERROR_IOPL_NOT_ENABLED: u32 = 197; +pub const ERROR_INVALID_SEGDPL: u32 = 198; +pub const ERROR_AUTODATASEG_EXCEEDS_64k: u32 = 199; +pub const ERROR_RING2SEG_MUST_BE_MOVABLE: u32 = 200; +pub const ERROR_RELOC_CHAIN_XEEDS_SEGLIM: u32 = 201; +pub const ERROR_INFLOOP_IN_RELOC_CHAIN: u32 = 202; +pub const ERROR_ENVVAR_NOT_FOUND: u32 = 203; +pub const ERROR_NO_SIGNAL_SENT: u32 = 205; +pub const ERROR_FILENAME_EXCED_RANGE: u32 = 206; +pub const ERROR_RING2_STACK_IN_USE: u32 = 207; +pub const ERROR_META_EXPANSION_TOO_LONG: u32 = 208; +pub const ERROR_INVALID_SIGNAL_NUMBER: u32 = 209; +pub const ERROR_THREAD_1_INACTIVE: u32 = 210; +pub const ERROR_LOCKED: u32 = 212; +pub const ERROR_TOO_MANY_MODULES: u32 = 214; +pub const ERROR_NESTING_NOT_ALLOWED: u32 = 215; +pub const ERROR_EXE_MACHINE_TYPE_MISMATCH: u32 = 216; +pub const ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY: u32 = 217; +pub const ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY: u32 = 218; +pub const ERROR_FILE_CHECKED_OUT: u32 = 220; +pub const ERROR_CHECKOUT_REQUIRED: u32 = 221; +pub const ERROR_BAD_FILE_TYPE: u32 = 222; +pub const ERROR_FILE_TOO_LARGE: u32 = 223; +pub const ERROR_FORMS_AUTH_REQUIRED: u32 = 224; +pub const ERROR_VIRUS_INFECTED: u32 = 225; +pub const ERROR_VIRUS_DELETED: u32 = 226; +pub const ERROR_PIPE_LOCAL: u32 = 229; +pub const ERROR_BAD_PIPE: u32 = 230; +pub const ERROR_PIPE_BUSY: u32 = 231; +pub const ERROR_NO_DATA: u32 = 232; +pub const ERROR_PIPE_NOT_CONNECTED: u32 = 233; +pub const ERROR_MORE_DATA: u32 = 234; +pub const ERROR_NO_WORK_DONE: u32 = 235; +pub const ERROR_VC_DISCONNECTED: u32 = 240; +pub const ERROR_INVALID_EA_NAME: u32 = 254; +pub const ERROR_EA_LIST_INCONSISTENT: u32 = 255; +pub const WAIT_TIMEOUT: u32 = 258; +pub const ERROR_NO_MORE_ITEMS: u32 = 259; +pub const ERROR_CANNOT_COPY: u32 = 266; +pub const ERROR_DIRECTORY: u32 = 267; +pub const ERROR_EAS_DIDNT_FIT: u32 = 275; +pub const ERROR_EA_FILE_CORRUPT: u32 = 276; +pub const ERROR_EA_TABLE_FULL: u32 = 277; +pub const ERROR_INVALID_EA_HANDLE: u32 = 278; +pub const ERROR_EAS_NOT_SUPPORTED: u32 = 282; +pub const ERROR_NOT_OWNER: u32 = 288; +pub const ERROR_TOO_MANY_POSTS: u32 = 298; +pub const ERROR_PARTIAL_COPY: u32 = 299; +pub const ERROR_OPLOCK_NOT_GRANTED: u32 = 300; +pub const ERROR_INVALID_OPLOCK_PROTOCOL: u32 = 301; +pub const ERROR_DISK_TOO_FRAGMENTED: u32 = 302; +pub const ERROR_DELETE_PENDING: u32 = 303; +pub const ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING: u32 = 304; +pub const ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME: u32 = 305; +pub const ERROR_SECURITY_STREAM_IS_INCONSISTENT: u32 = 306; +pub const ERROR_INVALID_LOCK_RANGE: u32 = 307; +pub const ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT: u32 = 308; +pub const ERROR_NOTIFICATION_GUID_ALREADY_DEFINED: u32 = 309; +pub const ERROR_INVALID_EXCEPTION_HANDLER: u32 = 310; +pub const ERROR_DUPLICATE_PRIVILEGES: u32 = 311; +pub const ERROR_NO_RANGES_PROCESSED: u32 = 312; +pub const ERROR_NOT_ALLOWED_ON_SYSTEM_FILE: u32 = 313; +pub const ERROR_DISK_RESOURCES_EXHAUSTED: u32 = 314; +pub const ERROR_INVALID_TOKEN: u32 = 315; +pub const ERROR_DEVICE_FEATURE_NOT_SUPPORTED: u32 = 316; +pub const ERROR_MR_MID_NOT_FOUND: u32 = 317; +pub const ERROR_SCOPE_NOT_FOUND: u32 = 318; +pub const ERROR_UNDEFINED_SCOPE: u32 = 319; +pub const ERROR_INVALID_CAP: u32 = 320; +pub const ERROR_DEVICE_UNREACHABLE: u32 = 321; +pub const ERROR_DEVICE_NO_RESOURCES: u32 = 322; +pub const ERROR_DATA_CHECKSUM_ERROR: u32 = 323; +pub const ERROR_INTERMIXED_KERNEL_EA_OPERATION: u32 = 324; +pub const ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED: u32 = 326; +pub const ERROR_OFFSET_ALIGNMENT_VIOLATION: u32 = 327; +pub const ERROR_INVALID_FIELD_IN_PARAMETER_LIST: u32 = 328; +pub const ERROR_OPERATION_IN_PROGRESS: u32 = 329; +pub const ERROR_BAD_DEVICE_PATH: u32 = 330; +pub const ERROR_TOO_MANY_DESCRIPTORS: u32 = 331; +pub const ERROR_SCRUB_DATA_DISABLED: u32 = 332; +pub const ERROR_NOT_REDUNDANT_STORAGE: u32 = 333; +pub const ERROR_RESIDENT_FILE_NOT_SUPPORTED: u32 = 334; +pub const ERROR_COMPRESSED_FILE_NOT_SUPPORTED: u32 = 335; +pub const ERROR_DIRECTORY_NOT_SUPPORTED: u32 = 336; +pub const ERROR_NOT_READ_FROM_COPY: u32 = 337; +pub const ERROR_FT_WRITE_FAILURE: u32 = 338; +pub const ERROR_FT_DI_SCAN_REQUIRED: u32 = 339; +pub const ERROR_INVALID_KERNEL_INFO_VERSION: u32 = 340; +pub const ERROR_INVALID_PEP_INFO_VERSION: u32 = 341; +pub const ERROR_OBJECT_NOT_EXTERNALLY_BACKED: u32 = 342; +pub const ERROR_EXTERNAL_BACKING_PROVIDER_UNKNOWN: u32 = 343; +pub const ERROR_COMPRESSION_NOT_BENEFICIAL: u32 = 344; +pub const ERROR_STORAGE_TOPOLOGY_ID_MISMATCH: u32 = 345; +pub const ERROR_BLOCKED_BY_PARENTAL_CONTROLS: u32 = 346; +pub const ERROR_BLOCK_TOO_MANY_REFERENCES: u32 = 347; +pub const ERROR_MARKED_TO_DISALLOW_WRITES: u32 = 348; +pub const ERROR_ENCLAVE_FAILURE: u32 = 349; +pub const ERROR_FAIL_NOACTION_REBOOT: u32 = 350; +pub const ERROR_FAIL_SHUTDOWN: u32 = 351; +pub const ERROR_FAIL_RESTART: u32 = 352; +pub const ERROR_MAX_SESSIONS_REACHED: u32 = 353; +pub const ERROR_NETWORK_ACCESS_DENIED_EDP: u32 = 354; +pub const ERROR_DEVICE_HINT_NAME_BUFFER_TOO_SMALL: u32 = 355; +pub const ERROR_EDP_POLICY_DENIES_OPERATION: u32 = 356; +pub const ERROR_EDP_DPL_POLICY_CANT_BE_SATISFIED: u32 = 357; +pub const ERROR_CLOUD_FILE_SYNC_ROOT_METADATA_CORRUPT: u32 = 358; +pub const ERROR_DEVICE_IN_MAINTENANCE: u32 = 359; +pub const ERROR_NOT_SUPPORTED_ON_DAX: u32 = 360; +pub const ERROR_DAX_MAPPING_EXISTS: u32 = 361; +pub const ERROR_CLOUD_FILE_PROVIDER_NOT_RUNNING: u32 = 362; +pub const ERROR_CLOUD_FILE_METADATA_CORRUPT: u32 = 363; +pub const ERROR_CLOUD_FILE_METADATA_TOO_LARGE: u32 = 364; +pub const ERROR_CLOUD_FILE_PROPERTY_BLOB_TOO_LARGE: u32 = 365; +pub const ERROR_CLOUD_FILE_PROPERTY_BLOB_CHECKSUM_MISMATCH: u32 = 366; +pub const ERROR_CHILD_PROCESS_BLOCKED: u32 = 367; +pub const ERROR_STORAGE_LOST_DATA_PERSISTENCE: u32 = 368; +pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_UNAVAILABLE: u32 = 369; +pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_METADATA_CORRUPT: u32 = 370; +pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_BUSY: u32 = 371; +pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_PROVIDER_UNKNOWN: u32 = 372; +pub const ERROR_GDI_HANDLE_LEAK: u32 = 373; +pub const ERROR_CLOUD_FILE_TOO_MANY_PROPERTY_BLOBS: u32 = 374; +pub const ERROR_CLOUD_FILE_PROPERTY_VERSION_NOT_SUPPORTED: u32 = 375; +pub const ERROR_NOT_A_CLOUD_FILE: u32 = 376; +pub const ERROR_CLOUD_FILE_NOT_IN_SYNC: u32 = 377; +pub const ERROR_CLOUD_FILE_ALREADY_CONNECTED: u32 = 378; +pub const ERROR_CLOUD_FILE_NOT_SUPPORTED: u32 = 379; +pub const ERROR_CLOUD_FILE_INVALID_REQUEST: u32 = 380; +pub const ERROR_CLOUD_FILE_READ_ONLY_VOLUME: u32 = 381; +pub const ERROR_CLOUD_FILE_CONNECTED_PROVIDER_ONLY: u32 = 382; +pub const ERROR_CLOUD_FILE_VALIDATION_FAILED: u32 = 383; +pub const ERROR_SMB1_NOT_AVAILABLE: u32 = 384; +pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_INVALID_OPERATION: u32 = 385; +pub const ERROR_CLOUD_FILE_AUTHENTICATION_FAILED: u32 = 386; +pub const ERROR_CLOUD_FILE_INSUFFICIENT_RESOURCES: u32 = 387; +pub const ERROR_CLOUD_FILE_NETWORK_UNAVAILABLE: u32 = 388; +pub const ERROR_CLOUD_FILE_UNSUCCESSFUL: u32 = 389; +pub const ERROR_CLOUD_FILE_NOT_UNDER_SYNC_ROOT: u32 = 390; +pub const ERROR_CLOUD_FILE_IN_USE: u32 = 391; +pub const ERROR_CLOUD_FILE_PINNED: u32 = 392; +pub const ERROR_CLOUD_FILE_REQUEST_ABORTED: u32 = 393; +pub const ERROR_CLOUD_FILE_PROPERTY_CORRUPT: u32 = 394; +pub const ERROR_CLOUD_FILE_ACCESS_DENIED: u32 = 395; +pub const ERROR_CLOUD_FILE_INCOMPATIBLE_HARDLINKS: u32 = 396; +pub const ERROR_CLOUD_FILE_PROPERTY_LOCK_CONFLICT: u32 = 397; +pub const ERROR_CLOUD_FILE_REQUEST_CANCELED: u32 = 398; +pub const ERROR_EXTERNAL_SYSKEY_NOT_SUPPORTED: u32 = 399; +pub const ERROR_THREAD_MODE_ALREADY_BACKGROUND: u32 = 400; +pub const ERROR_THREAD_MODE_NOT_BACKGROUND: u32 = 401; +pub const ERROR_PROCESS_MODE_ALREADY_BACKGROUND: u32 = 402; +pub const ERROR_PROCESS_MODE_NOT_BACKGROUND: u32 = 403; +pub const ERROR_CLOUD_FILE_PROVIDER_TERMINATED: u32 = 404; +pub const ERROR_NOT_A_CLOUD_SYNC_ROOT: u32 = 405; +pub const ERROR_FILE_PROTECTED_UNDER_DPL: u32 = 406; +pub const ERROR_VOLUME_NOT_CLUSTER_ALIGNED: u32 = 407; +pub const ERROR_NO_PHYSICALLY_ALIGNED_FREE_SPACE_FOUND: u32 = 408; +pub const ERROR_APPX_FILE_NOT_ENCRYPTED: u32 = 409; +pub const ERROR_RWRAW_ENCRYPTED_FILE_NOT_ENCRYPTED: u32 = 410; +pub const ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILEOFFSET: u32 = 411; +pub const ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILERANGE: u32 = 412; +pub const ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_PARAMETER: u32 = 413; +pub const ERROR_LINUX_SUBSYSTEM_NOT_PRESENT: u32 = 414; +pub const ERROR_FT_READ_FAILURE: u32 = 415; +pub const ERROR_STORAGE_RESERVE_ID_INVALID: u32 = 416; +pub const ERROR_STORAGE_RESERVE_DOES_NOT_EXIST: u32 = 417; +pub const ERROR_STORAGE_RESERVE_ALREADY_EXISTS: u32 = 418; +pub const ERROR_STORAGE_RESERVE_NOT_EMPTY: u32 = 419; +pub const ERROR_NOT_A_DAX_VOLUME: u32 = 420; +pub const ERROR_NOT_DAX_MAPPABLE: u32 = 421; +pub const ERROR_TIME_SENSITIVE_THREAD: u32 = 422; +pub const ERROR_DPL_NOT_SUPPORTED_FOR_USER: u32 = 423; +pub const ERROR_CASE_DIFFERING_NAMES_IN_DIR: u32 = 424; +pub const ERROR_FILE_NOT_SUPPORTED: u32 = 425; +pub const ERROR_CLOUD_FILE_REQUEST_TIMEOUT: u32 = 426; +pub const ERROR_NO_TASK_QUEUE: u32 = 427; +pub const ERROR_SRC_SRV_DLL_LOAD_FAILED: u32 = 428; +pub const ERROR_NOT_SUPPORTED_WITH_BTT: u32 = 429; +pub const ERROR_ENCRYPTION_DISABLED: u32 = 430; +pub const ERROR_ENCRYPTING_METADATA_DISALLOWED: u32 = 431; +pub const ERROR_CANT_CLEAR_ENCRYPTION_FLAG: u32 = 432; +pub const ERROR_NO_SUCH_DEVICE: u32 = 433; +pub const ERROR_CLOUD_FILE_DEHYDRATION_DISALLOWED: u32 = 434; +pub const ERROR_FILE_SNAP_IN_PROGRESS: u32 = 435; +pub const ERROR_FILE_SNAP_USER_SECTION_NOT_SUPPORTED: u32 = 436; +pub const ERROR_FILE_SNAP_MODIFY_NOT_SUPPORTED: u32 = 437; +pub const ERROR_FILE_SNAP_IO_NOT_COORDINATED: u32 = 438; +pub const ERROR_FILE_SNAP_UNEXPECTED_ERROR: u32 = 439; +pub const ERROR_FILE_SNAP_INVALID_PARAMETER: u32 = 440; +pub const ERROR_UNSATISFIED_DEPENDENCIES: u32 = 441; +pub const ERROR_CASE_SENSITIVE_PATH: u32 = 442; +pub const ERROR_UNEXPECTED_NTCACHEMANAGER_ERROR: u32 = 443; +pub const ERROR_LINUX_SUBSYSTEM_UPDATE_REQUIRED: u32 = 444; +pub const ERROR_DLP_POLICY_WARNS_AGAINST_OPERATION: u32 = 445; +pub const ERROR_DLP_POLICY_DENIES_OPERATION: u32 = 446; +pub const ERROR_SECURITY_DENIES_OPERATION: u32 = 447; +pub const ERROR_UNTRUSTED_MOUNT_POINT: u32 = 448; +pub const ERROR_DLP_POLICY_SILENTLY_FAIL: u32 = 449; +pub const ERROR_CAPAUTHZ_NOT_DEVUNLOCKED: u32 = 450; +pub const ERROR_CAPAUTHZ_CHANGE_TYPE: u32 = 451; +pub const ERROR_CAPAUTHZ_NOT_PROVISIONED: u32 = 452; +pub const ERROR_CAPAUTHZ_NOT_AUTHORIZED: u32 = 453; +pub const ERROR_CAPAUTHZ_NO_POLICY: u32 = 454; +pub const ERROR_CAPAUTHZ_DB_CORRUPTED: u32 = 455; +pub const ERROR_CAPAUTHZ_SCCD_INVALID_CATALOG: u32 = 456; +pub const ERROR_CAPAUTHZ_SCCD_NO_AUTH_ENTITY: u32 = 457; +pub const ERROR_CAPAUTHZ_SCCD_PARSE_ERROR: u32 = 458; +pub const ERROR_CAPAUTHZ_SCCD_DEV_MODE_REQUIRED: u32 = 459; +pub const ERROR_CAPAUTHZ_SCCD_NO_CAPABILITY_MATCH: u32 = 460; +pub const ERROR_CIMFS_IMAGE_CORRUPT: u32 = 470; +pub const ERROR_CIMFS_IMAGE_VERSION_NOT_SUPPORTED: u32 = 471; +pub const ERROR_STORAGE_STACK_ACCESS_DENIED: u32 = 472; +pub const ERROR_INSUFFICIENT_VIRTUAL_ADDR_RESOURCES: u32 = 473; +pub const ERROR_INDEX_OUT_OF_BOUNDS: u32 = 474; +pub const ERROR_CLOUD_FILE_US_MESSAGE_TIMEOUT: u32 = 475; +pub const ERROR_PNP_QUERY_REMOVE_DEVICE_TIMEOUT: u32 = 480; +pub const ERROR_PNP_QUERY_REMOVE_RELATED_DEVICE_TIMEOUT: u32 = 481; +pub const ERROR_PNP_QUERY_REMOVE_UNRELATED_DEVICE_TIMEOUT: u32 = 482; +pub const ERROR_DEVICE_HARDWARE_ERROR: u32 = 483; +pub const ERROR_INVALID_ADDRESS: u32 = 487; +pub const ERROR_HAS_SYSTEM_CRITICAL_FILES: u32 = 488; +pub const ERROR_ENCRYPTED_FILE_NOT_SUPPORTED: u32 = 489; +pub const ERROR_SPARSE_FILE_NOT_SUPPORTED: u32 = 490; +pub const ERROR_PAGEFILE_NOT_SUPPORTED: u32 = 491; +pub const ERROR_VOLUME_NOT_SUPPORTED: u32 = 492; +pub const ERROR_NOT_SUPPORTED_WITH_BYPASSIO: u32 = 493; +pub const ERROR_NO_BYPASSIO_DRIVER_SUPPORT: u32 = 494; +pub const ERROR_NOT_SUPPORTED_WITH_ENCRYPTION: u32 = 495; +pub const ERROR_NOT_SUPPORTED_WITH_COMPRESSION: u32 = 496; +pub const ERROR_NOT_SUPPORTED_WITH_REPLICATION: u32 = 497; +pub const ERROR_NOT_SUPPORTED_WITH_DEDUPLICATION: u32 = 498; +pub const ERROR_NOT_SUPPORTED_WITH_AUDITING: u32 = 499; +pub const ERROR_USER_PROFILE_LOAD: u32 = 500; +pub const ERROR_SESSION_KEY_TOO_SHORT: u32 = 501; +pub const ERROR_ACCESS_DENIED_APPDATA: u32 = 502; +pub const ERROR_NOT_SUPPORTED_WITH_MONITORING: u32 = 503; +pub const ERROR_NOT_SUPPORTED_WITH_SNAPSHOT: u32 = 504; +pub const ERROR_NOT_SUPPORTED_WITH_VIRTUALIZATION: u32 = 505; +pub const ERROR_BYPASSIO_FLT_NOT_SUPPORTED: u32 = 506; +pub const ERROR_DEVICE_RESET_REQUIRED: u32 = 507; +pub const ERROR_VOLUME_WRITE_ACCESS_DENIED: u32 = 508; +pub const ERROR_NOT_SUPPORTED_WITH_CACHED_HANDLE: u32 = 509; +pub const ERROR_FS_METADATA_INCONSISTENT: u32 = 510; +pub const ERROR_BLOCK_WEAK_REFERENCE_INVALID: u32 = 511; +pub const ERROR_BLOCK_SOURCE_WEAK_REFERENCE_INVALID: u32 = 512; +pub const ERROR_BLOCK_TARGET_WEAK_REFERENCE_INVALID: u32 = 513; +pub const ERROR_BLOCK_SHARED: u32 = 514; +pub const ERROR_ARITHMETIC_OVERFLOW: u32 = 534; +pub const ERROR_PIPE_CONNECTED: u32 = 535; +pub const ERROR_PIPE_LISTENING: u32 = 536; +pub const ERROR_VERIFIER_STOP: u32 = 537; +pub const ERROR_ABIOS_ERROR: u32 = 538; +pub const ERROR_WX86_WARNING: u32 = 539; +pub const ERROR_WX86_ERROR: u32 = 540; +pub const ERROR_TIMER_NOT_CANCELED: u32 = 541; +pub const ERROR_UNWIND: u32 = 542; +pub const ERROR_BAD_STACK: u32 = 543; +pub const ERROR_INVALID_UNWIND_TARGET: u32 = 544; +pub const ERROR_INVALID_PORT_ATTRIBUTES: u32 = 545; +pub const ERROR_PORT_MESSAGE_TOO_LONG: u32 = 546; +pub const ERROR_INVALID_QUOTA_LOWER: u32 = 547; +pub const ERROR_DEVICE_ALREADY_ATTACHED: u32 = 548; +pub const ERROR_INSTRUCTION_MISALIGNMENT: u32 = 549; +pub const ERROR_PROFILING_NOT_STARTED: u32 = 550; +pub const ERROR_PROFILING_NOT_STOPPED: u32 = 551; +pub const ERROR_COULD_NOT_INTERPRET: u32 = 552; +pub const ERROR_PROFILING_AT_LIMIT: u32 = 553; +pub const ERROR_CANT_WAIT: u32 = 554; +pub const ERROR_CANT_TERMINATE_SELF: u32 = 555; +pub const ERROR_UNEXPECTED_MM_CREATE_ERR: u32 = 556; +pub const ERROR_UNEXPECTED_MM_MAP_ERROR: u32 = 557; +pub const ERROR_UNEXPECTED_MM_EXTEND_ERR: u32 = 558; +pub const ERROR_BAD_FUNCTION_TABLE: u32 = 559; +pub const ERROR_NO_GUID_TRANSLATION: u32 = 560; +pub const ERROR_INVALID_LDT_SIZE: u32 = 561; +pub const ERROR_INVALID_LDT_OFFSET: u32 = 563; +pub const ERROR_INVALID_LDT_DESCRIPTOR: u32 = 564; +pub const ERROR_TOO_MANY_THREADS: u32 = 565; +pub const ERROR_THREAD_NOT_IN_PROCESS: u32 = 566; +pub const ERROR_PAGEFILE_QUOTA_EXCEEDED: u32 = 567; +pub const ERROR_LOGON_SERVER_CONFLICT: u32 = 568; +pub const ERROR_SYNCHRONIZATION_REQUIRED: u32 = 569; +pub const ERROR_NET_OPEN_FAILED: u32 = 570; +pub const ERROR_IO_PRIVILEGE_FAILED: u32 = 571; +pub const ERROR_CONTROL_C_EXIT: u32 = 572; +pub const ERROR_MISSING_SYSTEMFILE: u32 = 573; +pub const ERROR_UNHANDLED_EXCEPTION: u32 = 574; +pub const ERROR_APP_INIT_FAILURE: u32 = 575; +pub const ERROR_PAGEFILE_CREATE_FAILED: u32 = 576; +pub const ERROR_INVALID_IMAGE_HASH: u32 = 577; +pub const ERROR_NO_PAGEFILE: u32 = 578; +pub const ERROR_ILLEGAL_FLOAT_CONTEXT: u32 = 579; +pub const ERROR_NO_EVENT_PAIR: u32 = 580; +pub const ERROR_DOMAIN_CTRLR_CONFIG_ERROR: u32 = 581; +pub const ERROR_ILLEGAL_CHARACTER: u32 = 582; +pub const ERROR_UNDEFINED_CHARACTER: u32 = 583; +pub const ERROR_FLOPPY_VOLUME: u32 = 584; +pub const ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT: u32 = 585; +pub const ERROR_BACKUP_CONTROLLER: u32 = 586; +pub const ERROR_MUTANT_LIMIT_EXCEEDED: u32 = 587; +pub const ERROR_FS_DRIVER_REQUIRED: u32 = 588; +pub const ERROR_CANNOT_LOAD_REGISTRY_FILE: u32 = 589; +pub const ERROR_DEBUG_ATTACH_FAILED: u32 = 590; +pub const ERROR_SYSTEM_PROCESS_TERMINATED: u32 = 591; +pub const ERROR_DATA_NOT_ACCEPTED: u32 = 592; +pub const ERROR_VDM_HARD_ERROR: u32 = 593; +pub const ERROR_DRIVER_CANCEL_TIMEOUT: u32 = 594; +pub const ERROR_REPLY_MESSAGE_MISMATCH: u32 = 595; +pub const ERROR_LOST_WRITEBEHIND_DATA: u32 = 596; +pub const ERROR_CLIENT_SERVER_PARAMETERS_INVALID: u32 = 597; +pub const ERROR_NOT_TINY_STREAM: u32 = 598; +pub const ERROR_STACK_OVERFLOW_READ: u32 = 599; +pub const ERROR_CONVERT_TO_LARGE: u32 = 600; +pub const ERROR_FOUND_OUT_OF_SCOPE: u32 = 601; +pub const ERROR_ALLOCATE_BUCKET: u32 = 602; +pub const ERROR_MARSHALL_OVERFLOW: u32 = 603; +pub const ERROR_INVALID_VARIANT: u32 = 604; +pub const ERROR_BAD_COMPRESSION_BUFFER: u32 = 605; +pub const ERROR_AUDIT_FAILED: u32 = 606; +pub const ERROR_TIMER_RESOLUTION_NOT_SET: u32 = 607; +pub const ERROR_INSUFFICIENT_LOGON_INFO: u32 = 608; +pub const ERROR_BAD_DLL_ENTRYPOINT: u32 = 609; +pub const ERROR_BAD_SERVICE_ENTRYPOINT: u32 = 610; +pub const ERROR_IP_ADDRESS_CONFLICT1: u32 = 611; +pub const ERROR_IP_ADDRESS_CONFLICT2: u32 = 612; +pub const ERROR_REGISTRY_QUOTA_LIMIT: u32 = 613; +pub const ERROR_NO_CALLBACK_ACTIVE: u32 = 614; +pub const ERROR_PWD_TOO_SHORT: u32 = 615; +pub const ERROR_PWD_TOO_RECENT: u32 = 616; +pub const ERROR_PWD_HISTORY_CONFLICT: u32 = 617; +pub const ERROR_UNSUPPORTED_COMPRESSION: u32 = 618; +pub const ERROR_INVALID_HW_PROFILE: u32 = 619; +pub const ERROR_INVALID_PLUGPLAY_DEVICE_PATH: u32 = 620; +pub const ERROR_QUOTA_LIST_INCONSISTENT: u32 = 621; +pub const ERROR_EVALUATION_EXPIRATION: u32 = 622; +pub const ERROR_ILLEGAL_DLL_RELOCATION: u32 = 623; +pub const ERROR_DLL_INIT_FAILED_LOGOFF: u32 = 624; +pub const ERROR_VALIDATE_CONTINUE: u32 = 625; +pub const ERROR_NO_MORE_MATCHES: u32 = 626; +pub const ERROR_RANGE_LIST_CONFLICT: u32 = 627; +pub const ERROR_SERVER_SID_MISMATCH: u32 = 628; +pub const ERROR_CANT_ENABLE_DENY_ONLY: u32 = 629; +pub const ERROR_FLOAT_MULTIPLE_FAULTS: u32 = 630; +pub const ERROR_FLOAT_MULTIPLE_TRAPS: u32 = 631; +pub const ERROR_NOINTERFACE: u32 = 632; +pub const ERROR_DRIVER_FAILED_SLEEP: u32 = 633; +pub const ERROR_CORRUPT_SYSTEM_FILE: u32 = 634; +pub const ERROR_COMMITMENT_MINIMUM: u32 = 635; +pub const ERROR_PNP_RESTART_ENUMERATION: u32 = 636; +pub const ERROR_SYSTEM_IMAGE_BAD_SIGNATURE: u32 = 637; +pub const ERROR_PNP_REBOOT_REQUIRED: u32 = 638; +pub const ERROR_INSUFFICIENT_POWER: u32 = 639; +pub const ERROR_MULTIPLE_FAULT_VIOLATION: u32 = 640; +pub const ERROR_SYSTEM_SHUTDOWN: u32 = 641; +pub const ERROR_PORT_NOT_SET: u32 = 642; +pub const ERROR_DS_VERSION_CHECK_FAILURE: u32 = 643; +pub const ERROR_RANGE_NOT_FOUND: u32 = 644; +pub const ERROR_NOT_SAFE_MODE_DRIVER: u32 = 646; +pub const ERROR_FAILED_DRIVER_ENTRY: u32 = 647; +pub const ERROR_DEVICE_ENUMERATION_ERROR: u32 = 648; +pub const ERROR_MOUNT_POINT_NOT_RESOLVED: u32 = 649; +pub const ERROR_INVALID_DEVICE_OBJECT_PARAMETER: u32 = 650; +pub const ERROR_MCA_OCCURED: u32 = 651; +pub const ERROR_DRIVER_DATABASE_ERROR: u32 = 652; +pub const ERROR_SYSTEM_HIVE_TOO_LARGE: u32 = 653; +pub const ERROR_DRIVER_FAILED_PRIOR_UNLOAD: u32 = 654; +pub const ERROR_VOLSNAP_PREPARE_HIBERNATE: u32 = 655; +pub const ERROR_HIBERNATION_FAILURE: u32 = 656; +pub const ERROR_PWD_TOO_LONG: u32 = 657; +pub const ERROR_FILE_SYSTEM_LIMITATION: u32 = 665; +pub const ERROR_ASSERTION_FAILURE: u32 = 668; +pub const ERROR_ACPI_ERROR: u32 = 669; +pub const ERROR_WOW_ASSERTION: u32 = 670; +pub const ERROR_PNP_BAD_MPS_TABLE: u32 = 671; +pub const ERROR_PNP_TRANSLATION_FAILED: u32 = 672; +pub const ERROR_PNP_IRQ_TRANSLATION_FAILED: u32 = 673; +pub const ERROR_PNP_INVALID_ID: u32 = 674; +pub const ERROR_WAKE_SYSTEM_DEBUGGER: u32 = 675; +pub const ERROR_HANDLES_CLOSED: u32 = 676; +pub const ERROR_EXTRANEOUS_INFORMATION: u32 = 677; +pub const ERROR_RXACT_COMMIT_NECESSARY: u32 = 678; +pub const ERROR_MEDIA_CHECK: u32 = 679; +pub const ERROR_GUID_SUBSTITUTION_MADE: u32 = 680; +pub const ERROR_STOPPED_ON_SYMLINK: u32 = 681; +pub const ERROR_LONGJUMP: u32 = 682; +pub const ERROR_PLUGPLAY_QUERY_VETOED: u32 = 683; +pub const ERROR_UNWIND_CONSOLIDATE: u32 = 684; +pub const ERROR_REGISTRY_HIVE_RECOVERED: u32 = 685; +pub const ERROR_DLL_MIGHT_BE_INSECURE: u32 = 686; +pub const ERROR_DLL_MIGHT_BE_INCOMPATIBLE: u32 = 687; +pub const ERROR_DBG_EXCEPTION_NOT_HANDLED: u32 = 688; +pub const ERROR_DBG_REPLY_LATER: u32 = 689; +pub const ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE: u32 = 690; +pub const ERROR_DBG_TERMINATE_THREAD: u32 = 691; +pub const ERROR_DBG_TERMINATE_PROCESS: u32 = 692; +pub const ERROR_DBG_CONTROL_C: u32 = 693; +pub const ERROR_DBG_PRINTEXCEPTION_C: u32 = 694; +pub const ERROR_DBG_RIPEXCEPTION: u32 = 695; +pub const ERROR_DBG_CONTROL_BREAK: u32 = 696; +pub const ERROR_DBG_COMMAND_EXCEPTION: u32 = 697; +pub const ERROR_OBJECT_NAME_EXISTS: u32 = 698; +pub const ERROR_THREAD_WAS_SUSPENDED: u32 = 699; +pub const ERROR_IMAGE_NOT_AT_BASE: u32 = 700; +pub const ERROR_RXACT_STATE_CREATED: u32 = 701; +pub const ERROR_SEGMENT_NOTIFICATION: u32 = 702; +pub const ERROR_BAD_CURRENT_DIRECTORY: u32 = 703; +pub const ERROR_FT_READ_RECOVERY_FROM_BACKUP: u32 = 704; +pub const ERROR_FT_WRITE_RECOVERY: u32 = 705; +pub const ERROR_IMAGE_MACHINE_TYPE_MISMATCH: u32 = 706; +pub const ERROR_RECEIVE_PARTIAL: u32 = 707; +pub const ERROR_RECEIVE_EXPEDITED: u32 = 708; +pub const ERROR_RECEIVE_PARTIAL_EXPEDITED: u32 = 709; +pub const ERROR_EVENT_DONE: u32 = 710; +pub const ERROR_EVENT_PENDING: u32 = 711; +pub const ERROR_CHECKING_FILE_SYSTEM: u32 = 712; +pub const ERROR_FATAL_APP_EXIT: u32 = 713; +pub const ERROR_PREDEFINED_HANDLE: u32 = 714; +pub const ERROR_WAS_UNLOCKED: u32 = 715; +pub const ERROR_SERVICE_NOTIFICATION: u32 = 716; +pub const ERROR_WAS_LOCKED: u32 = 717; +pub const ERROR_LOG_HARD_ERROR: u32 = 718; +pub const ERROR_ALREADY_WIN32: u32 = 719; +pub const ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE: u32 = 720; +pub const ERROR_NO_YIELD_PERFORMED: u32 = 721; +pub const ERROR_TIMER_RESUME_IGNORED: u32 = 722; +pub const ERROR_ARBITRATION_UNHANDLED: u32 = 723; +pub const ERROR_CARDBUS_NOT_SUPPORTED: u32 = 724; +pub const ERROR_MP_PROCESSOR_MISMATCH: u32 = 725; +pub const ERROR_HIBERNATED: u32 = 726; +pub const ERROR_RESUME_HIBERNATION: u32 = 727; +pub const ERROR_FIRMWARE_UPDATED: u32 = 728; +pub const ERROR_DRIVERS_LEAKING_LOCKED_PAGES: u32 = 729; +pub const ERROR_WAKE_SYSTEM: u32 = 730; +pub const ERROR_WAIT_1: u32 = 731; +pub const ERROR_WAIT_2: u32 = 732; +pub const ERROR_WAIT_3: u32 = 733; +pub const ERROR_WAIT_63: u32 = 734; +pub const ERROR_ABANDONED_WAIT_0: u32 = 735; +pub const ERROR_ABANDONED_WAIT_63: u32 = 736; +pub const ERROR_USER_APC: u32 = 737; +pub const ERROR_KERNEL_APC: u32 = 738; +pub const ERROR_ALERTED: u32 = 739; +pub const ERROR_ELEVATION_REQUIRED: u32 = 740; +pub const ERROR_REPARSE: u32 = 741; +pub const ERROR_OPLOCK_BREAK_IN_PROGRESS: u32 = 742; +pub const ERROR_VOLUME_MOUNTED: u32 = 743; +pub const ERROR_RXACT_COMMITTED: u32 = 744; +pub const ERROR_NOTIFY_CLEANUP: u32 = 745; +pub const ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED: u32 = 746; +pub const ERROR_PAGE_FAULT_TRANSITION: u32 = 747; +pub const ERROR_PAGE_FAULT_DEMAND_ZERO: u32 = 748; +pub const ERROR_PAGE_FAULT_COPY_ON_WRITE: u32 = 749; +pub const ERROR_PAGE_FAULT_GUARD_PAGE: u32 = 750; +pub const ERROR_PAGE_FAULT_PAGING_FILE: u32 = 751; +pub const ERROR_CACHE_PAGE_LOCKED: u32 = 752; +pub const ERROR_CRASH_DUMP: u32 = 753; +pub const ERROR_BUFFER_ALL_ZEROS: u32 = 754; +pub const ERROR_REPARSE_OBJECT: u32 = 755; +pub const ERROR_RESOURCE_REQUIREMENTS_CHANGED: u32 = 756; +pub const ERROR_TRANSLATION_COMPLETE: u32 = 757; +pub const ERROR_NOTHING_TO_TERMINATE: u32 = 758; +pub const ERROR_PROCESS_NOT_IN_JOB: u32 = 759; +pub const ERROR_PROCESS_IN_JOB: u32 = 760; +pub const ERROR_VOLSNAP_HIBERNATE_READY: u32 = 761; +pub const ERROR_FSFILTER_OP_COMPLETED_SUCCESSFULLY: u32 = 762; +pub const ERROR_INTERRUPT_VECTOR_ALREADY_CONNECTED: u32 = 763; +pub const ERROR_INTERRUPT_STILL_CONNECTED: u32 = 764; +pub const ERROR_WAIT_FOR_OPLOCK: u32 = 765; +pub const ERROR_DBG_EXCEPTION_HANDLED: u32 = 766; +pub const ERROR_DBG_CONTINUE: u32 = 767; +pub const ERROR_CALLBACK_POP_STACK: u32 = 768; +pub const ERROR_COMPRESSION_DISABLED: u32 = 769; +pub const ERROR_CANTFETCHBACKWARDS: u32 = 770; +pub const ERROR_CANTSCROLLBACKWARDS: u32 = 771; +pub const ERROR_ROWSNOTRELEASED: u32 = 772; +pub const ERROR_BAD_ACCESSOR_FLAGS: u32 = 773; +pub const ERROR_ERRORS_ENCOUNTERED: u32 = 774; +pub const ERROR_NOT_CAPABLE: u32 = 775; +pub const ERROR_REQUEST_OUT_OF_SEQUENCE: u32 = 776; +pub const ERROR_VERSION_PARSE_ERROR: u32 = 777; +pub const ERROR_BADSTARTPOSITION: u32 = 778; +pub const ERROR_MEMORY_HARDWARE: u32 = 779; +pub const ERROR_DISK_REPAIR_DISABLED: u32 = 780; +pub const ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE: u32 = 781; +pub const ERROR_SYSTEM_POWERSTATE_TRANSITION: u32 = 782; +pub const ERROR_SYSTEM_POWERSTATE_COMPLEX_TRANSITION: u32 = 783; +pub const ERROR_MCA_EXCEPTION: u32 = 784; +pub const ERROR_ACCESS_AUDIT_BY_POLICY: u32 = 785; +pub const ERROR_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY: u32 = 786; +pub const ERROR_ABANDON_HIBERFILE: u32 = 787; +pub const ERROR_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED: u32 = 788; +pub const ERROR_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR: u32 = 789; +pub const ERROR_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR: u32 = 790; +pub const ERROR_BAD_MCFG_TABLE: u32 = 791; +pub const ERROR_DISK_REPAIR_REDIRECTED: u32 = 792; +pub const ERROR_DISK_REPAIR_UNSUCCESSFUL: u32 = 793; +pub const ERROR_CORRUPT_LOG_OVERFULL: u32 = 794; +pub const ERROR_CORRUPT_LOG_CORRUPTED: u32 = 795; +pub const ERROR_CORRUPT_LOG_UNAVAILABLE: u32 = 796; +pub const ERROR_CORRUPT_LOG_DELETED_FULL: u32 = 797; +pub const ERROR_CORRUPT_LOG_CLEARED: u32 = 798; +pub const ERROR_ORPHAN_NAME_EXHAUSTED: u32 = 799; +pub const ERROR_OPLOCK_SWITCHED_TO_NEW_HANDLE: u32 = 800; +pub const ERROR_CANNOT_GRANT_REQUESTED_OPLOCK: u32 = 801; +pub const ERROR_CANNOT_BREAK_OPLOCK: u32 = 802; +pub const ERROR_OPLOCK_HANDLE_CLOSED: u32 = 803; +pub const ERROR_NO_ACE_CONDITION: u32 = 804; +pub const ERROR_INVALID_ACE_CONDITION: u32 = 805; +pub const ERROR_FILE_HANDLE_REVOKED: u32 = 806; +pub const ERROR_IMAGE_AT_DIFFERENT_BASE: u32 = 807; +pub const ERROR_ENCRYPTED_IO_NOT_POSSIBLE: u32 = 808; +pub const ERROR_FILE_METADATA_OPTIMIZATION_IN_PROGRESS: u32 = 809; +pub const ERROR_QUOTA_ACTIVITY: u32 = 810; +pub const ERROR_HANDLE_REVOKED: u32 = 811; +pub const ERROR_CALLBACK_INVOKE_INLINE: u32 = 812; +pub const ERROR_CPU_SET_INVALID: u32 = 813; +pub const ERROR_ENCLAVE_NOT_TERMINATED: u32 = 814; +pub const ERROR_ENCLAVE_VIOLATION: u32 = 815; +pub const ERROR_SERVER_TRANSPORT_CONFLICT: u32 = 816; +pub const ERROR_CERTIFICATE_VALIDATION_PREFERENCE_CONFLICT: u32 = 817; +pub const ERROR_FT_READ_FROM_COPY_FAILURE: u32 = 818; +pub const ERROR_SECTION_DIRECT_MAP_ONLY: u32 = 819; +pub const ERROR_EA_ACCESS_DENIED: u32 = 994; +pub const ERROR_OPERATION_ABORTED: u32 = 995; +pub const ERROR_IO_INCOMPLETE: u32 = 996; +pub const ERROR_IO_PENDING: u32 = 997; +pub const ERROR_NOACCESS: u32 = 998; +pub const ERROR_SWAPERROR: u32 = 999; +pub const ERROR_STACK_OVERFLOW: u32 = 1001; +pub const ERROR_INVALID_MESSAGE: u32 = 1002; +pub const ERROR_CAN_NOT_COMPLETE: u32 = 1003; +pub const ERROR_INVALID_FLAGS: u32 = 1004; +pub const ERROR_UNRECOGNIZED_VOLUME: u32 = 1005; +pub const ERROR_FILE_INVALID: u32 = 1006; +pub const ERROR_FULLSCREEN_MODE: u32 = 1007; +pub const ERROR_NO_TOKEN: u32 = 1008; +pub const ERROR_BADDB: u32 = 1009; +pub const ERROR_BADKEY: u32 = 1010; +pub const ERROR_CANTOPEN: u32 = 1011; +pub const ERROR_CANTREAD: u32 = 1012; +pub const ERROR_CANTWRITE: u32 = 1013; +pub const ERROR_REGISTRY_RECOVERED: u32 = 1014; +pub const ERROR_REGISTRY_CORRUPT: u32 = 1015; +pub const ERROR_REGISTRY_IO_FAILED: u32 = 1016; +pub const ERROR_NOT_REGISTRY_FILE: u32 = 1017; +pub const ERROR_KEY_DELETED: u32 = 1018; +pub const ERROR_NO_LOG_SPACE: u32 = 1019; +pub const ERROR_KEY_HAS_CHILDREN: u32 = 1020; +pub const ERROR_CHILD_MUST_BE_VOLATILE: u32 = 1021; +pub const ERROR_NOTIFY_ENUM_DIR: u32 = 1022; +pub const ERROR_DEPENDENT_SERVICES_RUNNING: u32 = 1051; +pub const ERROR_INVALID_SERVICE_CONTROL: u32 = 1052; +pub const ERROR_SERVICE_REQUEST_TIMEOUT: u32 = 1053; +pub const ERROR_SERVICE_NO_THREAD: u32 = 1054; +pub const ERROR_SERVICE_DATABASE_LOCKED: u32 = 1055; +pub const ERROR_SERVICE_ALREADY_RUNNING: u32 = 1056; +pub const ERROR_INVALID_SERVICE_ACCOUNT: u32 = 1057; +pub const ERROR_SERVICE_DISABLED: u32 = 1058; +pub const ERROR_CIRCULAR_DEPENDENCY: u32 = 1059; +pub const ERROR_SERVICE_DOES_NOT_EXIST: u32 = 1060; +pub const ERROR_SERVICE_CANNOT_ACCEPT_CTRL: u32 = 1061; +pub const ERROR_SERVICE_NOT_ACTIVE: u32 = 1062; +pub const ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: u32 = 1063; +pub const ERROR_EXCEPTION_IN_SERVICE: u32 = 1064; +pub const ERROR_DATABASE_DOES_NOT_EXIST: u32 = 1065; +pub const ERROR_SERVICE_SPECIFIC_ERROR: u32 = 1066; +pub const ERROR_PROCESS_ABORTED: u32 = 1067; +pub const ERROR_SERVICE_DEPENDENCY_FAIL: u32 = 1068; +pub const ERROR_SERVICE_LOGON_FAILED: u32 = 1069; +pub const ERROR_SERVICE_START_HANG: u32 = 1070; +pub const ERROR_INVALID_SERVICE_LOCK: u32 = 1071; +pub const ERROR_SERVICE_MARKED_FOR_DELETE: u32 = 1072; +pub const ERROR_SERVICE_EXISTS: u32 = 1073; +pub const ERROR_ALREADY_RUNNING_LKG: u32 = 1074; +pub const ERROR_SERVICE_DEPENDENCY_DELETED: u32 = 1075; +pub const ERROR_BOOT_ALREADY_ACCEPTED: u32 = 1076; +pub const ERROR_SERVICE_NEVER_STARTED: u32 = 1077; +pub const ERROR_DUPLICATE_SERVICE_NAME: u32 = 1078; +pub const ERROR_DIFFERENT_SERVICE_ACCOUNT: u32 = 1079; +pub const ERROR_CANNOT_DETECT_DRIVER_FAILURE: u32 = 1080; +pub const ERROR_CANNOT_DETECT_PROCESS_ABORT: u32 = 1081; +pub const ERROR_NO_RECOVERY_PROGRAM: u32 = 1082; +pub const ERROR_SERVICE_NOT_IN_EXE: u32 = 1083; +pub const ERROR_NOT_SAFEBOOT_SERVICE: u32 = 1084; +pub const ERROR_END_OF_MEDIA: u32 = 1100; +pub const ERROR_FILEMARK_DETECTED: u32 = 1101; +pub const ERROR_BEGINNING_OF_MEDIA: u32 = 1102; +pub const ERROR_SETMARK_DETECTED: u32 = 1103; +pub const ERROR_NO_DATA_DETECTED: u32 = 1104; +pub const ERROR_PARTITION_FAILURE: u32 = 1105; +pub const ERROR_INVALID_BLOCK_LENGTH: u32 = 1106; +pub const ERROR_DEVICE_NOT_PARTITIONED: u32 = 1107; +pub const ERROR_UNABLE_TO_LOCK_MEDIA: u32 = 1108; +pub const ERROR_UNABLE_TO_UNLOAD_MEDIA: u32 = 1109; +pub const ERROR_MEDIA_CHANGED: u32 = 1110; +pub const ERROR_BUS_RESET: u32 = 1111; +pub const ERROR_NO_MEDIA_IN_DRIVE: u32 = 1112; +pub const ERROR_NO_UNICODE_TRANSLATION: u32 = 1113; +pub const ERROR_DLL_INIT_FAILED: u32 = 1114; +pub const ERROR_SHUTDOWN_IN_PROGRESS: u32 = 1115; +pub const ERROR_NO_SHUTDOWN_IN_PROGRESS: u32 = 1116; +pub const ERROR_IO_DEVICE: u32 = 1117; +pub const ERROR_SERIAL_NO_DEVICE: u32 = 1118; +pub const ERROR_IRQ_BUSY: u32 = 1119; +pub const ERROR_MORE_WRITES: u32 = 1120; +pub const ERROR_COUNTER_TIMEOUT: u32 = 1121; +pub const ERROR_FLOPPY_ID_MARK_NOT_FOUND: u32 = 1122; +pub const ERROR_FLOPPY_WRONG_CYLINDER: u32 = 1123; +pub const ERROR_FLOPPY_UNKNOWN_ERROR: u32 = 1124; +pub const ERROR_FLOPPY_BAD_REGISTERS: u32 = 1125; +pub const ERROR_DISK_RECALIBRATE_FAILED: u32 = 1126; +pub const ERROR_DISK_OPERATION_FAILED: u32 = 1127; +pub const ERROR_DISK_RESET_FAILED: u32 = 1128; +pub const ERROR_EOM_OVERFLOW: u32 = 1129; +pub const ERROR_NOT_ENOUGH_SERVER_MEMORY: u32 = 1130; +pub const ERROR_POSSIBLE_DEADLOCK: u32 = 1131; +pub const ERROR_MAPPED_ALIGNMENT: u32 = 1132; +pub const ERROR_SET_POWER_STATE_VETOED: u32 = 1140; +pub const ERROR_SET_POWER_STATE_FAILED: u32 = 1141; +pub const ERROR_TOO_MANY_LINKS: u32 = 1142; +pub const ERROR_OLD_WIN_VERSION: u32 = 1150; +pub const ERROR_APP_WRONG_OS: u32 = 1151; +pub const ERROR_SINGLE_INSTANCE_APP: u32 = 1152; +pub const ERROR_RMODE_APP: u32 = 1153; +pub const ERROR_INVALID_DLL: u32 = 1154; +pub const ERROR_NO_ASSOCIATION: u32 = 1155; +pub const ERROR_DDE_FAIL: u32 = 1156; +pub const ERROR_DLL_NOT_FOUND: u32 = 1157; +pub const ERROR_NO_MORE_USER_HANDLES: u32 = 1158; +pub const ERROR_MESSAGE_SYNC_ONLY: u32 = 1159; +pub const ERROR_SOURCE_ELEMENT_EMPTY: u32 = 1160; +pub const ERROR_DESTINATION_ELEMENT_FULL: u32 = 1161; +pub const ERROR_ILLEGAL_ELEMENT_ADDRESS: u32 = 1162; +pub const ERROR_MAGAZINE_NOT_PRESENT: u32 = 1163; +pub const ERROR_DEVICE_REINITIALIZATION_NEEDED: u32 = 1164; +pub const ERROR_DEVICE_REQUIRES_CLEANING: u32 = 1165; +pub const ERROR_DEVICE_DOOR_OPEN: u32 = 1166; +pub const ERROR_DEVICE_NOT_CONNECTED: u32 = 1167; +pub const ERROR_NOT_FOUND: u32 = 1168; +pub const ERROR_NO_MATCH: u32 = 1169; +pub const ERROR_SET_NOT_FOUND: u32 = 1170; +pub const ERROR_POINT_NOT_FOUND: u32 = 1171; +pub const ERROR_NO_TRACKING_SERVICE: u32 = 1172; +pub const ERROR_NO_VOLUME_ID: u32 = 1173; +pub const ERROR_UNABLE_TO_REMOVE_REPLACED: u32 = 1175; +pub const ERROR_UNABLE_TO_MOVE_REPLACEMENT: u32 = 1176; +pub const ERROR_UNABLE_TO_MOVE_REPLACEMENT_2: u32 = 1177; +pub const ERROR_JOURNAL_DELETE_IN_PROGRESS: u32 = 1178; +pub const ERROR_JOURNAL_NOT_ACTIVE: u32 = 1179; +pub const ERROR_POTENTIAL_FILE_FOUND: u32 = 1180; +pub const ERROR_JOURNAL_ENTRY_DELETED: u32 = 1181; +pub const ERROR_PARTITION_TERMINATING: u32 = 1184; +pub const ERROR_SHUTDOWN_IS_SCHEDULED: u32 = 1190; +pub const ERROR_SHUTDOWN_USERS_LOGGED_ON: u32 = 1191; +pub const ERROR_SHUTDOWN_DISKS_NOT_IN_MAINTENANCE_MODE: u32 = 1192; +pub const ERROR_BAD_DEVICE: u32 = 1200; +pub const ERROR_CONNECTION_UNAVAIL: u32 = 1201; +pub const ERROR_DEVICE_ALREADY_REMEMBERED: u32 = 1202; +pub const ERROR_NO_NET_OR_BAD_PATH: u32 = 1203; +pub const ERROR_BAD_PROVIDER: u32 = 1204; +pub const ERROR_CANNOT_OPEN_PROFILE: u32 = 1205; +pub const ERROR_BAD_PROFILE: u32 = 1206; +pub const ERROR_NOT_CONTAINER: u32 = 1207; +pub const ERROR_EXTENDED_ERROR: u32 = 1208; +pub const ERROR_INVALID_GROUPNAME: u32 = 1209; +pub const ERROR_INVALID_COMPUTERNAME: u32 = 1210; +pub const ERROR_INVALID_EVENTNAME: u32 = 1211; +pub const ERROR_INVALID_DOMAINNAME: u32 = 1212; +pub const ERROR_INVALID_SERVICENAME: u32 = 1213; +pub const ERROR_INVALID_NETNAME: u32 = 1214; +pub const ERROR_INVALID_SHARENAME: u32 = 1215; +pub const ERROR_INVALID_PASSWORDNAME: u32 = 1216; +pub const ERROR_INVALID_MESSAGENAME: u32 = 1217; +pub const ERROR_INVALID_MESSAGEDEST: u32 = 1218; +pub const ERROR_SESSION_CREDENTIAL_CONFLICT: u32 = 1219; +pub const ERROR_REMOTE_SESSION_LIMIT_EXCEEDED: u32 = 1220; +pub const ERROR_DUP_DOMAINNAME: u32 = 1221; +pub const ERROR_NO_NETWORK: u32 = 1222; +pub const ERROR_CANCELLED: u32 = 1223; +pub const ERROR_USER_MAPPED_FILE: u32 = 1224; +pub const ERROR_CONNECTION_REFUSED: u32 = 1225; +pub const ERROR_GRACEFUL_DISCONNECT: u32 = 1226; +pub const ERROR_ADDRESS_ALREADY_ASSOCIATED: u32 = 1227; +pub const ERROR_ADDRESS_NOT_ASSOCIATED: u32 = 1228; +pub const ERROR_CONNECTION_INVALID: u32 = 1229; +pub const ERROR_CONNECTION_ACTIVE: u32 = 1230; +pub const ERROR_NETWORK_UNREACHABLE: u32 = 1231; +pub const ERROR_HOST_UNREACHABLE: u32 = 1232; +pub const ERROR_PROTOCOL_UNREACHABLE: u32 = 1233; +pub const ERROR_PORT_UNREACHABLE: u32 = 1234; +pub const ERROR_REQUEST_ABORTED: u32 = 1235; +pub const ERROR_CONNECTION_ABORTED: u32 = 1236; +pub const ERROR_RETRY: u32 = 1237; +pub const ERROR_CONNECTION_COUNT_LIMIT: u32 = 1238; +pub const ERROR_LOGIN_TIME_RESTRICTION: u32 = 1239; +pub const ERROR_LOGIN_WKSTA_RESTRICTION: u32 = 1240; +pub const ERROR_INCORRECT_ADDRESS: u32 = 1241; +pub const ERROR_ALREADY_REGISTERED: u32 = 1242; +pub const ERROR_SERVICE_NOT_FOUND: u32 = 1243; +pub const ERROR_NOT_AUTHENTICATED: u32 = 1244; +pub const ERROR_NOT_LOGGED_ON: u32 = 1245; +pub const ERROR_CONTINUE: u32 = 1246; +pub const ERROR_ALREADY_INITIALIZED: u32 = 1247; +pub const ERROR_NO_MORE_DEVICES: u32 = 1248; +pub const ERROR_NO_SUCH_SITE: u32 = 1249; +pub const ERROR_DOMAIN_CONTROLLER_EXISTS: u32 = 1250; +pub const ERROR_ONLY_IF_CONNECTED: u32 = 1251; +pub const ERROR_OVERRIDE_NOCHANGES: u32 = 1252; +pub const ERROR_BAD_USER_PROFILE: u32 = 1253; +pub const ERROR_NOT_SUPPORTED_ON_SBS: u32 = 1254; +pub const ERROR_SERVER_SHUTDOWN_IN_PROGRESS: u32 = 1255; +pub const ERROR_HOST_DOWN: u32 = 1256; +pub const ERROR_NON_ACCOUNT_SID: u32 = 1257; +pub const ERROR_NON_DOMAIN_SID: u32 = 1258; +pub const ERROR_APPHELP_BLOCK: u32 = 1259; +pub const ERROR_ACCESS_DISABLED_BY_POLICY: u32 = 1260; +pub const ERROR_REG_NAT_CONSUMPTION: u32 = 1261; +pub const ERROR_CSCSHARE_OFFLINE: u32 = 1262; +pub const ERROR_PKINIT_FAILURE: u32 = 1263; +pub const ERROR_SMARTCARD_SUBSYSTEM_FAILURE: u32 = 1264; +pub const ERROR_DOWNGRADE_DETECTED: u32 = 1265; +pub const ERROR_MACHINE_LOCKED: u32 = 1271; +pub const ERROR_SMB_GUEST_LOGON_BLOCKED: u32 = 1272; +pub const ERROR_CALLBACK_SUPPLIED_INVALID_DATA: u32 = 1273; +pub const ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED: u32 = 1274; +pub const ERROR_DRIVER_BLOCKED: u32 = 1275; +pub const ERROR_INVALID_IMPORT_OF_NON_DLL: u32 = 1276; +pub const ERROR_ACCESS_DISABLED_WEBBLADE: u32 = 1277; +pub const ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER: u32 = 1278; +pub const ERROR_RECOVERY_FAILURE: u32 = 1279; +pub const ERROR_ALREADY_FIBER: u32 = 1280; +pub const ERROR_ALREADY_THREAD: u32 = 1281; +pub const ERROR_STACK_BUFFER_OVERRUN: u32 = 1282; +pub const ERROR_PARAMETER_QUOTA_EXCEEDED: u32 = 1283; +pub const ERROR_DEBUGGER_INACTIVE: u32 = 1284; +pub const ERROR_DELAY_LOAD_FAILED: u32 = 1285; +pub const ERROR_VDM_DISALLOWED: u32 = 1286; +pub const ERROR_UNIDENTIFIED_ERROR: u32 = 1287; +pub const ERROR_INVALID_CRUNTIME_PARAMETER: u32 = 1288; +pub const ERROR_BEYOND_VDL: u32 = 1289; +pub const ERROR_INCOMPATIBLE_SERVICE_SID_TYPE: u32 = 1290; +pub const ERROR_DRIVER_PROCESS_TERMINATED: u32 = 1291; +pub const ERROR_IMPLEMENTATION_LIMIT: u32 = 1292; +pub const ERROR_PROCESS_IS_PROTECTED: u32 = 1293; +pub const ERROR_SERVICE_NOTIFY_CLIENT_LAGGING: u32 = 1294; +pub const ERROR_DISK_QUOTA_EXCEEDED: u32 = 1295; +pub const ERROR_CONTENT_BLOCKED: u32 = 1296; +pub const ERROR_INCOMPATIBLE_SERVICE_PRIVILEGE: u32 = 1297; +pub const ERROR_APP_HANG: u32 = 1298; +pub const ERROR_INVALID_LABEL: u32 = 1299; +pub const ERROR_NOT_ALL_ASSIGNED: u32 = 1300; +pub const ERROR_SOME_NOT_MAPPED: u32 = 1301; +pub const ERROR_NO_QUOTAS_FOR_ACCOUNT: u32 = 1302; +pub const ERROR_LOCAL_USER_SESSION_KEY: u32 = 1303; +pub const ERROR_NULL_LM_PASSWORD: u32 = 1304; +pub const ERROR_UNKNOWN_REVISION: u32 = 1305; +pub const ERROR_REVISION_MISMATCH: u32 = 1306; +pub const ERROR_INVALID_OWNER: u32 = 1307; +pub const ERROR_INVALID_PRIMARY_GROUP: u32 = 1308; +pub const ERROR_NO_IMPERSONATION_TOKEN: u32 = 1309; +pub const ERROR_CANT_DISABLE_MANDATORY: u32 = 1310; +pub const ERROR_NO_LOGON_SERVERS: u32 = 1311; +pub const ERROR_NO_SUCH_LOGON_SESSION: u32 = 1312; +pub const ERROR_NO_SUCH_PRIVILEGE: u32 = 1313; +pub const ERROR_PRIVILEGE_NOT_HELD: u32 = 1314; +pub const ERROR_INVALID_ACCOUNT_NAME: u32 = 1315; +pub const ERROR_USER_EXISTS: u32 = 1316; +pub const ERROR_NO_SUCH_USER: u32 = 1317; +pub const ERROR_GROUP_EXISTS: u32 = 1318; +pub const ERROR_NO_SUCH_GROUP: u32 = 1319; +pub const ERROR_MEMBER_IN_GROUP: u32 = 1320; +pub const ERROR_MEMBER_NOT_IN_GROUP: u32 = 1321; +pub const ERROR_LAST_ADMIN: u32 = 1322; +pub const ERROR_WRONG_PASSWORD: u32 = 1323; +pub const ERROR_ILL_FORMED_PASSWORD: u32 = 1324; +pub const ERROR_PASSWORD_RESTRICTION: u32 = 1325; +pub const ERROR_LOGON_FAILURE: u32 = 1326; +pub const ERROR_ACCOUNT_RESTRICTION: u32 = 1327; +pub const ERROR_INVALID_LOGON_HOURS: u32 = 1328; +pub const ERROR_INVALID_WORKSTATION: u32 = 1329; +pub const ERROR_PASSWORD_EXPIRED: u32 = 1330; +pub const ERROR_ACCOUNT_DISABLED: u32 = 1331; +pub const ERROR_NONE_MAPPED: u32 = 1332; +pub const ERROR_TOO_MANY_LUIDS_REQUESTED: u32 = 1333; +pub const ERROR_LUIDS_EXHAUSTED: u32 = 1334; +pub const ERROR_INVALID_SUB_AUTHORITY: u32 = 1335; +pub const ERROR_INVALID_ACL: u32 = 1336; +pub const ERROR_INVALID_SID: u32 = 1337; +pub const ERROR_INVALID_SECURITY_DESCR: u32 = 1338; +pub const ERROR_BAD_INHERITANCE_ACL: u32 = 1340; +pub const ERROR_SERVER_DISABLED: u32 = 1341; +pub const ERROR_SERVER_NOT_DISABLED: u32 = 1342; +pub const ERROR_INVALID_ID_AUTHORITY: u32 = 1343; +pub const ERROR_ALLOTTED_SPACE_EXCEEDED: u32 = 1344; +pub const ERROR_INVALID_GROUP_ATTRIBUTES: u32 = 1345; +pub const ERROR_BAD_IMPERSONATION_LEVEL: u32 = 1346; +pub const ERROR_CANT_OPEN_ANONYMOUS: u32 = 1347; +pub const ERROR_BAD_VALIDATION_CLASS: u32 = 1348; +pub const ERROR_BAD_TOKEN_TYPE: u32 = 1349; +pub const ERROR_NO_SECURITY_ON_OBJECT: u32 = 1350; +pub const ERROR_CANT_ACCESS_DOMAIN_INFO: u32 = 1351; +pub const ERROR_INVALID_SERVER_STATE: u32 = 1352; +pub const ERROR_INVALID_DOMAIN_STATE: u32 = 1353; +pub const ERROR_INVALID_DOMAIN_ROLE: u32 = 1354; +pub const ERROR_NO_SUCH_DOMAIN: u32 = 1355; +pub const ERROR_DOMAIN_EXISTS: u32 = 1356; +pub const ERROR_DOMAIN_LIMIT_EXCEEDED: u32 = 1357; +pub const ERROR_INTERNAL_DB_CORRUPTION: u32 = 1358; +pub const ERROR_INTERNAL_ERROR: u32 = 1359; +pub const ERROR_GENERIC_NOT_MAPPED: u32 = 1360; +pub const ERROR_BAD_DESCRIPTOR_FORMAT: u32 = 1361; +pub const ERROR_NOT_LOGON_PROCESS: u32 = 1362; +pub const ERROR_LOGON_SESSION_EXISTS: u32 = 1363; +pub const ERROR_NO_SUCH_PACKAGE: u32 = 1364; +pub const ERROR_BAD_LOGON_SESSION_STATE: u32 = 1365; +pub const ERROR_LOGON_SESSION_COLLISION: u32 = 1366; +pub const ERROR_INVALID_LOGON_TYPE: u32 = 1367; +pub const ERROR_CANNOT_IMPERSONATE: u32 = 1368; +pub const ERROR_RXACT_INVALID_STATE: u32 = 1369; +pub const ERROR_RXACT_COMMIT_FAILURE: u32 = 1370; +pub const ERROR_SPECIAL_ACCOUNT: u32 = 1371; +pub const ERROR_SPECIAL_GROUP: u32 = 1372; +pub const ERROR_SPECIAL_USER: u32 = 1373; +pub const ERROR_MEMBERS_PRIMARY_GROUP: u32 = 1374; +pub const ERROR_TOKEN_ALREADY_IN_USE: u32 = 1375; +pub const ERROR_NO_SUCH_ALIAS: u32 = 1376; +pub const ERROR_MEMBER_NOT_IN_ALIAS: u32 = 1377; +pub const ERROR_MEMBER_IN_ALIAS: u32 = 1378; +pub const ERROR_ALIAS_EXISTS: u32 = 1379; +pub const ERROR_LOGON_NOT_GRANTED: u32 = 1380; +pub const ERROR_TOO_MANY_SECRETS: u32 = 1381; +pub const ERROR_SECRET_TOO_LONG: u32 = 1382; +pub const ERROR_INTERNAL_DB_ERROR: u32 = 1383; +pub const ERROR_TOO_MANY_CONTEXT_IDS: u32 = 1384; +pub const ERROR_LOGON_TYPE_NOT_GRANTED: u32 = 1385; +pub const ERROR_NT_CROSS_ENCRYPTION_REQUIRED: u32 = 1386; +pub const ERROR_NO_SUCH_MEMBER: u32 = 1387; +pub const ERROR_INVALID_MEMBER: u32 = 1388; +pub const ERROR_TOO_MANY_SIDS: u32 = 1389; +pub const ERROR_LM_CROSS_ENCRYPTION_REQUIRED: u32 = 1390; +pub const ERROR_NO_INHERITANCE: u32 = 1391; +pub const ERROR_FILE_CORRUPT: u32 = 1392; +pub const ERROR_DISK_CORRUPT: u32 = 1393; +pub const ERROR_NO_USER_SESSION_KEY: u32 = 1394; +pub const ERROR_LICENSE_QUOTA_EXCEEDED: u32 = 1395; +pub const ERROR_WRONG_TARGET_NAME: u32 = 1396; +pub const ERROR_MUTUAL_AUTH_FAILED: u32 = 1397; +pub const ERROR_TIME_SKEW: u32 = 1398; +pub const ERROR_CURRENT_DOMAIN_NOT_ALLOWED: u32 = 1399; +pub const ERROR_INVALID_WINDOW_HANDLE: u32 = 1400; +pub const ERROR_INVALID_MENU_HANDLE: u32 = 1401; +pub const ERROR_INVALID_CURSOR_HANDLE: u32 = 1402; +pub const ERROR_INVALID_ACCEL_HANDLE: u32 = 1403; +pub const ERROR_INVALID_HOOK_HANDLE: u32 = 1404; +pub const ERROR_INVALID_DWP_HANDLE: u32 = 1405; +pub const ERROR_TLW_WITH_WSCHILD: u32 = 1406; +pub const ERROR_CANNOT_FIND_WND_CLASS: u32 = 1407; +pub const ERROR_WINDOW_OF_OTHER_THREAD: u32 = 1408; +pub const ERROR_HOTKEY_ALREADY_REGISTERED: u32 = 1409; +pub const ERROR_CLASS_ALREADY_EXISTS: u32 = 1410; +pub const ERROR_CLASS_DOES_NOT_EXIST: u32 = 1411; +pub const ERROR_CLASS_HAS_WINDOWS: u32 = 1412; +pub const ERROR_INVALID_INDEX: u32 = 1413; +pub const ERROR_INVALID_ICON_HANDLE: u32 = 1414; +pub const ERROR_PRIVATE_DIALOG_INDEX: u32 = 1415; +pub const ERROR_LISTBOX_ID_NOT_FOUND: u32 = 1416; +pub const ERROR_NO_WILDCARD_CHARACTERS: u32 = 1417; +pub const ERROR_CLIPBOARD_NOT_OPEN: u32 = 1418; +pub const ERROR_HOTKEY_NOT_REGISTERED: u32 = 1419; +pub const ERROR_WINDOW_NOT_DIALOG: u32 = 1420; +pub const ERROR_CONTROL_ID_NOT_FOUND: u32 = 1421; +pub const ERROR_INVALID_COMBOBOX_MESSAGE: u32 = 1422; +pub const ERROR_WINDOW_NOT_COMBOBOX: u32 = 1423; +pub const ERROR_INVALID_EDIT_HEIGHT: u32 = 1424; +pub const ERROR_DC_NOT_FOUND: u32 = 1425; +pub const ERROR_INVALID_HOOK_FILTER: u32 = 1426; +pub const ERROR_INVALID_FILTER_PROC: u32 = 1427; +pub const ERROR_HOOK_NEEDS_HMOD: u32 = 1428; +pub const ERROR_GLOBAL_ONLY_HOOK: u32 = 1429; +pub const ERROR_JOURNAL_HOOK_SET: u32 = 1430; +pub const ERROR_HOOK_NOT_INSTALLED: u32 = 1431; +pub const ERROR_INVALID_LB_MESSAGE: u32 = 1432; +pub const ERROR_SETCOUNT_ON_BAD_LB: u32 = 1433; +pub const ERROR_LB_WITHOUT_TABSTOPS: u32 = 1434; +pub const ERROR_DESTROY_OBJECT_OF_OTHER_THREAD: u32 = 1435; +pub const ERROR_CHILD_WINDOW_MENU: u32 = 1436; +pub const ERROR_NO_SYSTEM_MENU: u32 = 1437; +pub const ERROR_INVALID_MSGBOX_STYLE: u32 = 1438; +pub const ERROR_INVALID_SPI_VALUE: u32 = 1439; +pub const ERROR_SCREEN_ALREADY_LOCKED: u32 = 1440; +pub const ERROR_HWNDS_HAVE_DIFF_PARENT: u32 = 1441; +pub const ERROR_NOT_CHILD_WINDOW: u32 = 1442; +pub const ERROR_INVALID_GW_COMMAND: u32 = 1443; +pub const ERROR_INVALID_THREAD_ID: u32 = 1444; +pub const ERROR_NON_MDICHILD_WINDOW: u32 = 1445; +pub const ERROR_POPUP_ALREADY_ACTIVE: u32 = 1446; +pub const ERROR_NO_SCROLLBARS: u32 = 1447; +pub const ERROR_INVALID_SCROLLBAR_RANGE: u32 = 1448; +pub const ERROR_INVALID_SHOWWIN_COMMAND: u32 = 1449; +pub const ERROR_NO_SYSTEM_RESOURCES: u32 = 1450; +pub const ERROR_NONPAGED_SYSTEM_RESOURCES: u32 = 1451; +pub const ERROR_PAGED_SYSTEM_RESOURCES: u32 = 1452; +pub const ERROR_WORKING_SET_QUOTA: u32 = 1453; +pub const ERROR_PAGEFILE_QUOTA: u32 = 1454; +pub const ERROR_COMMITMENT_LIMIT: u32 = 1455; +pub const ERROR_MENU_ITEM_NOT_FOUND: u32 = 1456; +pub const ERROR_INVALID_KEYBOARD_HANDLE: u32 = 1457; +pub const ERROR_HOOK_TYPE_NOT_ALLOWED: u32 = 1458; +pub const ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION: u32 = 1459; +pub const ERROR_TIMEOUT: u32 = 1460; +pub const ERROR_INVALID_MONITOR_HANDLE: u32 = 1461; +pub const ERROR_INCORRECT_SIZE: u32 = 1462; +pub const ERROR_SYMLINK_CLASS_DISABLED: u32 = 1463; +pub const ERROR_SYMLINK_NOT_SUPPORTED: u32 = 1464; +pub const ERROR_XML_PARSE_ERROR: u32 = 1465; +pub const ERROR_XMLDSIG_ERROR: u32 = 1466; +pub const ERROR_RESTART_APPLICATION: u32 = 1467; +pub const ERROR_WRONG_COMPARTMENT: u32 = 1468; +pub const ERROR_AUTHIP_FAILURE: u32 = 1469; +pub const ERROR_NO_NVRAM_RESOURCES: u32 = 1470; +pub const ERROR_NOT_GUI_PROCESS: u32 = 1471; +pub const ERROR_EVENTLOG_FILE_CORRUPT: u32 = 1500; +pub const ERROR_EVENTLOG_CANT_START: u32 = 1501; +pub const ERROR_LOG_FILE_FULL: u32 = 1502; +pub const ERROR_EVENTLOG_FILE_CHANGED: u32 = 1503; +pub const ERROR_CONTAINER_ASSIGNED: u32 = 1504; +pub const ERROR_JOB_NO_CONTAINER: u32 = 1505; +pub const ERROR_INVALID_TASK_NAME: u32 = 1550; +pub const ERROR_INVALID_TASK_INDEX: u32 = 1551; +pub const ERROR_THREAD_ALREADY_IN_TASK: u32 = 1552; +pub const ERROR_INSTALL_SERVICE_FAILURE: u32 = 1601; +pub const ERROR_INSTALL_USEREXIT: u32 = 1602; +pub const ERROR_INSTALL_FAILURE: u32 = 1603; +pub const ERROR_INSTALL_SUSPEND: u32 = 1604; +pub const ERROR_UNKNOWN_PRODUCT: u32 = 1605; +pub const ERROR_UNKNOWN_FEATURE: u32 = 1606; +pub const ERROR_UNKNOWN_COMPONENT: u32 = 1607; +pub const ERROR_UNKNOWN_PROPERTY: u32 = 1608; +pub const ERROR_INVALID_HANDLE_STATE: u32 = 1609; +pub const ERROR_BAD_CONFIGURATION: u32 = 1610; +pub const ERROR_INDEX_ABSENT: u32 = 1611; +pub const ERROR_INSTALL_SOURCE_ABSENT: u32 = 1612; +pub const ERROR_INSTALL_PACKAGE_VERSION: u32 = 1613; +pub const ERROR_PRODUCT_UNINSTALLED: u32 = 1614; +pub const ERROR_BAD_QUERY_SYNTAX: u32 = 1615; +pub const ERROR_INVALID_FIELD: u32 = 1616; +pub const ERROR_DEVICE_REMOVED: u32 = 1617; +pub const ERROR_INSTALL_ALREADY_RUNNING: u32 = 1618; +pub const ERROR_INSTALL_PACKAGE_OPEN_FAILED: u32 = 1619; +pub const ERROR_INSTALL_PACKAGE_INVALID: u32 = 1620; +pub const ERROR_INSTALL_UI_FAILURE: u32 = 1621; +pub const ERROR_INSTALL_LOG_FAILURE: u32 = 1622; +pub const ERROR_INSTALL_LANGUAGE_UNSUPPORTED: u32 = 1623; +pub const ERROR_INSTALL_TRANSFORM_FAILURE: u32 = 1624; +pub const ERROR_INSTALL_PACKAGE_REJECTED: u32 = 1625; +pub const ERROR_FUNCTION_NOT_CALLED: u32 = 1626; +pub const ERROR_FUNCTION_FAILED: u32 = 1627; +pub const ERROR_INVALID_TABLE: u32 = 1628; +pub const ERROR_DATATYPE_MISMATCH: u32 = 1629; +pub const ERROR_UNSUPPORTED_TYPE: u32 = 1630; +pub const ERROR_CREATE_FAILED: u32 = 1631; +pub const ERROR_INSTALL_TEMP_UNWRITABLE: u32 = 1632; +pub const ERROR_INSTALL_PLATFORM_UNSUPPORTED: u32 = 1633; +pub const ERROR_INSTALL_NOTUSED: u32 = 1634; +pub const ERROR_PATCH_PACKAGE_OPEN_FAILED: u32 = 1635; +pub const ERROR_PATCH_PACKAGE_INVALID: u32 = 1636; +pub const ERROR_PATCH_PACKAGE_UNSUPPORTED: u32 = 1637; +pub const ERROR_PRODUCT_VERSION: u32 = 1638; +pub const ERROR_INVALID_COMMAND_LINE: u32 = 1639; +pub const ERROR_INSTALL_REMOTE_DISALLOWED: u32 = 1640; +pub const ERROR_SUCCESS_REBOOT_INITIATED: u32 = 1641; +pub const ERROR_PATCH_TARGET_NOT_FOUND: u32 = 1642; +pub const ERROR_PATCH_PACKAGE_REJECTED: u32 = 1643; +pub const ERROR_INSTALL_TRANSFORM_REJECTED: u32 = 1644; +pub const ERROR_INSTALL_REMOTE_PROHIBITED: u32 = 1645; +pub const ERROR_PATCH_REMOVAL_UNSUPPORTED: u32 = 1646; +pub const ERROR_UNKNOWN_PATCH: u32 = 1647; +pub const ERROR_PATCH_NO_SEQUENCE: u32 = 1648; +pub const ERROR_PATCH_REMOVAL_DISALLOWED: u32 = 1649; +pub const ERROR_INVALID_PATCH_XML: u32 = 1650; +pub const ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT: u32 = 1651; +pub const ERROR_INSTALL_SERVICE_SAFEBOOT: u32 = 1652; +pub const ERROR_FAIL_FAST_EXCEPTION: u32 = 1653; +pub const ERROR_INSTALL_REJECTED: u32 = 1654; +pub const ERROR_DYNAMIC_CODE_BLOCKED: u32 = 1655; +pub const ERROR_NOT_SAME_OBJECT: u32 = 1656; +pub const ERROR_STRICT_CFG_VIOLATION: u32 = 1657; +pub const ERROR_SET_CONTEXT_DENIED: u32 = 1660; +pub const ERROR_CROSS_PARTITION_VIOLATION: u32 = 1661; +pub const ERROR_RETURN_ADDRESS_HIJACK_ATTEMPT: u32 = 1662; +pub const RPC_S_INVALID_STRING_BINDING: u32 = 1700; +pub const RPC_S_WRONG_KIND_OF_BINDING: u32 = 1701; +pub const RPC_S_INVALID_BINDING: u32 = 1702; +pub const RPC_S_PROTSEQ_NOT_SUPPORTED: u32 = 1703; +pub const RPC_S_INVALID_RPC_PROTSEQ: u32 = 1704; +pub const RPC_S_INVALID_STRING_UUID: u32 = 1705; +pub const RPC_S_INVALID_ENDPOINT_FORMAT: u32 = 1706; +pub const RPC_S_INVALID_NET_ADDR: u32 = 1707; +pub const RPC_S_NO_ENDPOINT_FOUND: u32 = 1708; +pub const RPC_S_INVALID_TIMEOUT: u32 = 1709; +pub const RPC_S_OBJECT_NOT_FOUND: u32 = 1710; +pub const RPC_S_ALREADY_REGISTERED: u32 = 1711; +pub const RPC_S_TYPE_ALREADY_REGISTERED: u32 = 1712; +pub const RPC_S_ALREADY_LISTENING: u32 = 1713; +pub const RPC_S_NO_PROTSEQS_REGISTERED: u32 = 1714; +pub const RPC_S_NOT_LISTENING: u32 = 1715; +pub const RPC_S_UNKNOWN_MGR_TYPE: u32 = 1716; +pub const RPC_S_UNKNOWN_IF: u32 = 1717; +pub const RPC_S_NO_BINDINGS: u32 = 1718; +pub const RPC_S_NO_PROTSEQS: u32 = 1719; +pub const RPC_S_CANT_CREATE_ENDPOINT: u32 = 1720; +pub const RPC_S_OUT_OF_RESOURCES: u32 = 1721; +pub const RPC_S_SERVER_UNAVAILABLE: u32 = 1722; +pub const RPC_S_SERVER_TOO_BUSY: u32 = 1723; +pub const RPC_S_INVALID_NETWORK_OPTIONS: u32 = 1724; +pub const RPC_S_NO_CALL_ACTIVE: u32 = 1725; +pub const RPC_S_CALL_FAILED: u32 = 1726; +pub const RPC_S_CALL_FAILED_DNE: u32 = 1727; +pub const RPC_S_PROTOCOL_ERROR: u32 = 1728; +pub const RPC_S_PROXY_ACCESS_DENIED: u32 = 1729; +pub const RPC_S_UNSUPPORTED_TRANS_SYN: u32 = 1730; +pub const RPC_S_UNSUPPORTED_TYPE: u32 = 1732; +pub const RPC_S_INVALID_TAG: u32 = 1733; +pub const RPC_S_INVALID_BOUND: u32 = 1734; +pub const RPC_S_NO_ENTRY_NAME: u32 = 1735; +pub const RPC_S_INVALID_NAME_SYNTAX: u32 = 1736; +pub const RPC_S_UNSUPPORTED_NAME_SYNTAX: u32 = 1737; +pub const RPC_S_UUID_NO_ADDRESS: u32 = 1739; +pub const RPC_S_DUPLICATE_ENDPOINT: u32 = 1740; +pub const RPC_S_UNKNOWN_AUTHN_TYPE: u32 = 1741; +pub const RPC_S_MAX_CALLS_TOO_SMALL: u32 = 1742; +pub const RPC_S_STRING_TOO_LONG: u32 = 1743; +pub const RPC_S_PROTSEQ_NOT_FOUND: u32 = 1744; +pub const RPC_S_PROCNUM_OUT_OF_RANGE: u32 = 1745; +pub const RPC_S_BINDING_HAS_NO_AUTH: u32 = 1746; +pub const RPC_S_UNKNOWN_AUTHN_SERVICE: u32 = 1747; +pub const RPC_S_UNKNOWN_AUTHN_LEVEL: u32 = 1748; +pub const RPC_S_INVALID_AUTH_IDENTITY: u32 = 1749; +pub const RPC_S_UNKNOWN_AUTHZ_SERVICE: u32 = 1750; +pub const EPT_S_INVALID_ENTRY: u32 = 1751; +pub const EPT_S_CANT_PERFORM_OP: u32 = 1752; +pub const EPT_S_NOT_REGISTERED: u32 = 1753; +pub const RPC_S_NOTHING_TO_EXPORT: u32 = 1754; +pub const RPC_S_INCOMPLETE_NAME: u32 = 1755; +pub const RPC_S_INVALID_VERS_OPTION: u32 = 1756; +pub const RPC_S_NO_MORE_MEMBERS: u32 = 1757; +pub const RPC_S_NOT_ALL_OBJS_UNEXPORTED: u32 = 1758; +pub const RPC_S_INTERFACE_NOT_FOUND: u32 = 1759; +pub const RPC_S_ENTRY_ALREADY_EXISTS: u32 = 1760; +pub const RPC_S_ENTRY_NOT_FOUND: u32 = 1761; +pub const RPC_S_NAME_SERVICE_UNAVAILABLE: u32 = 1762; +pub const RPC_S_INVALID_NAF_ID: u32 = 1763; +pub const RPC_S_CANNOT_SUPPORT: u32 = 1764; +pub const RPC_S_NO_CONTEXT_AVAILABLE: u32 = 1765; +pub const RPC_S_INTERNAL_ERROR: u32 = 1766; +pub const RPC_S_ZERO_DIVIDE: u32 = 1767; +pub const RPC_S_ADDRESS_ERROR: u32 = 1768; +pub const RPC_S_FP_DIV_ZERO: u32 = 1769; +pub const RPC_S_FP_UNDERFLOW: u32 = 1770; +pub const RPC_S_FP_OVERFLOW: u32 = 1771; +pub const RPC_X_NO_MORE_ENTRIES: u32 = 1772; +pub const RPC_X_SS_CHAR_TRANS_OPEN_FAIL: u32 = 1773; +pub const RPC_X_SS_CHAR_TRANS_SHORT_FILE: u32 = 1774; +pub const RPC_X_SS_IN_NULL_CONTEXT: u32 = 1775; +pub const RPC_X_SS_CONTEXT_DAMAGED: u32 = 1777; +pub const RPC_X_SS_HANDLES_MISMATCH: u32 = 1778; +pub const RPC_X_SS_CANNOT_GET_CALL_HANDLE: u32 = 1779; +pub const RPC_X_NULL_REF_POINTER: u32 = 1780; +pub const RPC_X_ENUM_VALUE_OUT_OF_RANGE: u32 = 1781; +pub const RPC_X_BYTE_COUNT_TOO_SMALL: u32 = 1782; +pub const RPC_X_BAD_STUB_DATA: u32 = 1783; +pub const ERROR_INVALID_USER_BUFFER: u32 = 1784; +pub const ERROR_UNRECOGNIZED_MEDIA: u32 = 1785; +pub const ERROR_NO_TRUST_LSA_SECRET: u32 = 1786; +pub const ERROR_NO_TRUST_SAM_ACCOUNT: u32 = 1787; +pub const ERROR_TRUSTED_DOMAIN_FAILURE: u32 = 1788; +pub const ERROR_TRUSTED_RELATIONSHIP_FAILURE: u32 = 1789; +pub const ERROR_TRUST_FAILURE: u32 = 1790; +pub const RPC_S_CALL_IN_PROGRESS: u32 = 1791; +pub const ERROR_NETLOGON_NOT_STARTED: u32 = 1792; +pub const ERROR_ACCOUNT_EXPIRED: u32 = 1793; +pub const ERROR_REDIRECTOR_HAS_OPEN_HANDLES: u32 = 1794; +pub const ERROR_PRINTER_DRIVER_ALREADY_INSTALLED: u32 = 1795; +pub const ERROR_UNKNOWN_PORT: u32 = 1796; +pub const ERROR_UNKNOWN_PRINTER_DRIVER: u32 = 1797; +pub const ERROR_UNKNOWN_PRINTPROCESSOR: u32 = 1798; +pub const ERROR_INVALID_SEPARATOR_FILE: u32 = 1799; +pub const ERROR_INVALID_PRIORITY: u32 = 1800; +pub const ERROR_INVALID_PRINTER_NAME: u32 = 1801; +pub const ERROR_PRINTER_ALREADY_EXISTS: u32 = 1802; +pub const ERROR_INVALID_PRINTER_COMMAND: u32 = 1803; +pub const ERROR_INVALID_DATATYPE: u32 = 1804; +pub const ERROR_INVALID_ENVIRONMENT: u32 = 1805; +pub const RPC_S_NO_MORE_BINDINGS: u32 = 1806; +pub const ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT: u32 = 1807; +pub const ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT: u32 = 1808; +pub const ERROR_NOLOGON_SERVER_TRUST_ACCOUNT: u32 = 1809; +pub const ERROR_DOMAIN_TRUST_INCONSISTENT: u32 = 1810; +pub const ERROR_SERVER_HAS_OPEN_HANDLES: u32 = 1811; +pub const ERROR_RESOURCE_DATA_NOT_FOUND: u32 = 1812; +pub const ERROR_RESOURCE_TYPE_NOT_FOUND: u32 = 1813; +pub const ERROR_RESOURCE_NAME_NOT_FOUND: u32 = 1814; +pub const ERROR_RESOURCE_LANG_NOT_FOUND: u32 = 1815; +pub const ERROR_NOT_ENOUGH_QUOTA: u32 = 1816; +pub const RPC_S_NO_INTERFACES: u32 = 1817; +pub const RPC_S_CALL_CANCELLED: u32 = 1818; +pub const RPC_S_BINDING_INCOMPLETE: u32 = 1819; +pub const RPC_S_COMM_FAILURE: u32 = 1820; +pub const RPC_S_UNSUPPORTED_AUTHN_LEVEL: u32 = 1821; +pub const RPC_S_NO_PRINC_NAME: u32 = 1822; +pub const RPC_S_NOT_RPC_ERROR: u32 = 1823; +pub const RPC_S_UUID_LOCAL_ONLY: u32 = 1824; +pub const RPC_S_SEC_PKG_ERROR: u32 = 1825; +pub const RPC_S_NOT_CANCELLED: u32 = 1826; +pub const RPC_X_INVALID_ES_ACTION: u32 = 1827; +pub const RPC_X_WRONG_ES_VERSION: u32 = 1828; +pub const RPC_X_WRONG_STUB_VERSION: u32 = 1829; +pub const RPC_X_INVALID_PIPE_OBJECT: u32 = 1830; +pub const RPC_X_WRONG_PIPE_ORDER: u32 = 1831; +pub const RPC_X_WRONG_PIPE_VERSION: u32 = 1832; +pub const RPC_S_COOKIE_AUTH_FAILED: u32 = 1833; +pub const RPC_S_DO_NOT_DISTURB: u32 = 1834; +pub const RPC_S_SYSTEM_HANDLE_COUNT_EXCEEDED: u32 = 1835; +pub const RPC_S_SYSTEM_HANDLE_TYPE_MISMATCH: u32 = 1836; +pub const RPC_S_GROUP_MEMBER_NOT_FOUND: u32 = 1898; +pub const EPT_S_CANT_CREATE: u32 = 1899; +pub const RPC_S_INVALID_OBJECT: u32 = 1900; +pub const ERROR_INVALID_TIME: u32 = 1901; +pub const ERROR_INVALID_FORM_NAME: u32 = 1902; +pub const ERROR_INVALID_FORM_SIZE: u32 = 1903; +pub const ERROR_ALREADY_WAITING: u32 = 1904; +pub const ERROR_PRINTER_DELETED: u32 = 1905; +pub const ERROR_INVALID_PRINTER_STATE: u32 = 1906; +pub const ERROR_PASSWORD_MUST_CHANGE: u32 = 1907; +pub const ERROR_DOMAIN_CONTROLLER_NOT_FOUND: u32 = 1908; +pub const ERROR_ACCOUNT_LOCKED_OUT: u32 = 1909; +pub const OR_INVALID_OXID: u32 = 1910; +pub const OR_INVALID_OID: u32 = 1911; +pub const OR_INVALID_SET: u32 = 1912; +pub const RPC_S_SEND_INCOMPLETE: u32 = 1913; +pub const RPC_S_INVALID_ASYNC_HANDLE: u32 = 1914; +pub const RPC_S_INVALID_ASYNC_CALL: u32 = 1915; +pub const RPC_X_PIPE_CLOSED: u32 = 1916; +pub const RPC_X_PIPE_DISCIPLINE_ERROR: u32 = 1917; +pub const RPC_X_PIPE_EMPTY: u32 = 1918; +pub const ERROR_NO_SITENAME: u32 = 1919; +pub const ERROR_CANT_ACCESS_FILE: u32 = 1920; +pub const ERROR_CANT_RESOLVE_FILENAME: u32 = 1921; +pub const RPC_S_ENTRY_TYPE_MISMATCH: u32 = 1922; +pub const RPC_S_NOT_ALL_OBJS_EXPORTED: u32 = 1923; +pub const RPC_S_INTERFACE_NOT_EXPORTED: u32 = 1924; +pub const RPC_S_PROFILE_NOT_ADDED: u32 = 1925; +pub const RPC_S_PRF_ELT_NOT_ADDED: u32 = 1926; +pub const RPC_S_PRF_ELT_NOT_REMOVED: u32 = 1927; +pub const RPC_S_GRP_ELT_NOT_ADDED: u32 = 1928; +pub const RPC_S_GRP_ELT_NOT_REMOVED: u32 = 1929; +pub const ERROR_KM_DRIVER_BLOCKED: u32 = 1930; +pub const ERROR_CONTEXT_EXPIRED: u32 = 1931; +pub const ERROR_PER_USER_TRUST_QUOTA_EXCEEDED: u32 = 1932; +pub const ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED: u32 = 1933; +pub const ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED: u32 = 1934; +pub const ERROR_AUTHENTICATION_FIREWALL_FAILED: u32 = 1935; +pub const ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED: u32 = 1936; +pub const ERROR_NTLM_BLOCKED: u32 = 1937; +pub const ERROR_PASSWORD_CHANGE_REQUIRED: u32 = 1938; +pub const ERROR_LOST_MODE_LOGON_RESTRICTION: u32 = 1939; +pub const ERROR_INVALID_PIXEL_FORMAT: u32 = 2000; +pub const ERROR_BAD_DRIVER: u32 = 2001; +pub const ERROR_INVALID_WINDOW_STYLE: u32 = 2002; +pub const ERROR_METAFILE_NOT_SUPPORTED: u32 = 2003; +pub const ERROR_TRANSFORM_NOT_SUPPORTED: u32 = 2004; +pub const ERROR_CLIPPING_NOT_SUPPORTED: u32 = 2005; +pub const ERROR_INVALID_CMM: u32 = 2010; +pub const ERROR_INVALID_PROFILE: u32 = 2011; +pub const ERROR_TAG_NOT_FOUND: u32 = 2012; +pub const ERROR_TAG_NOT_PRESENT: u32 = 2013; +pub const ERROR_DUPLICATE_TAG: u32 = 2014; +pub const ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE: u32 = 2015; +pub const ERROR_PROFILE_NOT_FOUND: u32 = 2016; +pub const ERROR_INVALID_COLORSPACE: u32 = 2017; +pub const ERROR_ICM_NOT_ENABLED: u32 = 2018; +pub const ERROR_DELETING_ICM_XFORM: u32 = 2019; +pub const ERROR_INVALID_TRANSFORM: u32 = 2020; +pub const ERROR_COLORSPACE_MISMATCH: u32 = 2021; +pub const ERROR_INVALID_COLORINDEX: u32 = 2022; +pub const ERROR_PROFILE_DOES_NOT_MATCH_DEVICE: u32 = 2023; +pub const ERROR_CONNECTED_OTHER_PASSWORD: u32 = 2108; +pub const ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT: u32 = 2109; +pub const ERROR_BAD_USERNAME: u32 = 2202; +pub const ERROR_NOT_CONNECTED: u32 = 2250; +pub const ERROR_OPEN_FILES: u32 = 2401; +pub const ERROR_ACTIVE_CONNECTIONS: u32 = 2402; +pub const ERROR_DEVICE_IN_USE: u32 = 2404; +pub const ERROR_UNKNOWN_PRINT_MONITOR: u32 = 3000; +pub const ERROR_PRINTER_DRIVER_IN_USE: u32 = 3001; +pub const ERROR_SPOOL_FILE_NOT_FOUND: u32 = 3002; +pub const ERROR_SPL_NO_STARTDOC: u32 = 3003; +pub const ERROR_SPL_NO_ADDJOB: u32 = 3004; +pub const ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED: u32 = 3005; +pub const ERROR_PRINT_MONITOR_ALREADY_INSTALLED: u32 = 3006; +pub const ERROR_INVALID_PRINT_MONITOR: u32 = 3007; +pub const ERROR_PRINT_MONITOR_IN_USE: u32 = 3008; +pub const ERROR_PRINTER_HAS_JOBS_QUEUED: u32 = 3009; +pub const ERROR_SUCCESS_REBOOT_REQUIRED: u32 = 3010; +pub const ERROR_SUCCESS_RESTART_REQUIRED: u32 = 3011; +pub const ERROR_PRINTER_NOT_FOUND: u32 = 3012; +pub const ERROR_PRINTER_DRIVER_WARNED: u32 = 3013; +pub const ERROR_PRINTER_DRIVER_BLOCKED: u32 = 3014; +pub const ERROR_PRINTER_DRIVER_PACKAGE_IN_USE: u32 = 3015; +pub const ERROR_CORE_DRIVER_PACKAGE_NOT_FOUND: u32 = 3016; +pub const ERROR_FAIL_REBOOT_REQUIRED: u32 = 3017; +pub const ERROR_FAIL_REBOOT_INITIATED: u32 = 3018; +pub const ERROR_PRINTER_DRIVER_DOWNLOAD_NEEDED: u32 = 3019; +pub const ERROR_PRINT_JOB_RESTART_REQUIRED: u32 = 3020; +pub const ERROR_INVALID_PRINTER_DRIVER_MANIFEST: u32 = 3021; +pub const ERROR_PRINTER_NOT_SHAREABLE: u32 = 3022; +pub const ERROR_SERVER_SERVICE_CALL_REQUIRES_SMB1: u32 = 3023; +pub const ERROR_NETWORK_AUTHENTICATION_PROMPT_CANCELED: u32 = 3024; +pub const ERROR_REQUEST_PAUSED: u32 = 3050; +pub const ERROR_APPEXEC_CONDITION_NOT_SATISFIED: u32 = 3060; +pub const ERROR_APPEXEC_HANDLE_INVALIDATED: u32 = 3061; +pub const ERROR_APPEXEC_INVALID_HOST_GENERATION: u32 = 3062; +pub const ERROR_APPEXEC_UNEXPECTED_PROCESS_REGISTRATION: u32 = 3063; +pub const ERROR_APPEXEC_INVALID_HOST_STATE: u32 = 3064; +pub const ERROR_APPEXEC_NO_DONOR: u32 = 3065; +pub const ERROR_APPEXEC_HOST_ID_MISMATCH: u32 = 3066; +pub const ERROR_APPEXEC_UNKNOWN_USER: u32 = 3067; +pub const ERROR_APPEXEC_APP_COMPAT_BLOCK: u32 = 3068; +pub const ERROR_APPEXEC_CALLER_WAIT_TIMEOUT: u32 = 3069; +pub const ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_TERMINATION: u32 = 3070; +pub const ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_LICENSING: u32 = 3071; +pub const ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_RESOURCES: u32 = 3072; +pub const ERROR_VRF_VOLATILE_CFG_AND_IO_ENABLED: u32 = 3080; +pub const ERROR_VRF_VOLATILE_NOT_STOPPABLE: u32 = 3081; +pub const ERROR_VRF_VOLATILE_SAFE_MODE: u32 = 3082; +pub const ERROR_VRF_VOLATILE_NOT_RUNNABLE_SYSTEM: u32 = 3083; +pub const ERROR_VRF_VOLATILE_NOT_SUPPORTED_RULECLASS: u32 = 3084; +pub const ERROR_VRF_VOLATILE_PROTECTED_DRIVER: u32 = 3085; +pub const ERROR_VRF_VOLATILE_NMI_REGISTERED: u32 = 3086; +pub const ERROR_VRF_VOLATILE_SETTINGS_CONFLICT: u32 = 3087; +pub const ERROR_DIF_IOCALLBACK_NOT_REPLACED: u32 = 3190; +pub const ERROR_DIF_LIVEDUMP_LIMIT_EXCEEDED: u32 = 3191; +pub const ERROR_DIF_VOLATILE_SECTION_NOT_LOCKED: u32 = 3192; +pub const ERROR_DIF_VOLATILE_DRIVER_HOTPATCHED: u32 = 3193; +pub const ERROR_DIF_VOLATILE_INVALID_INFO: u32 = 3194; +pub const ERROR_DIF_VOLATILE_DRIVER_IS_NOT_RUNNING: u32 = 3195; +pub const ERROR_DIF_VOLATILE_PLUGIN_IS_NOT_RUNNING: u32 = 3196; +pub const ERROR_DIF_VOLATILE_PLUGIN_CHANGE_NOT_ALLOWED: u32 = 3197; +pub const ERROR_DIF_VOLATILE_NOT_ALLOWED: u32 = 3198; +pub const ERROR_DIF_BINDING_API_NOT_FOUND: u32 = 3199; +pub const ERROR_IO_REISSUE_AS_CACHED: u32 = 3950; +pub const ERROR_WINS_INTERNAL: u32 = 4000; +pub const ERROR_CAN_NOT_DEL_LOCAL_WINS: u32 = 4001; +pub const ERROR_STATIC_INIT: u32 = 4002; +pub const ERROR_INC_BACKUP: u32 = 4003; +pub const ERROR_FULL_BACKUP: u32 = 4004; +pub const ERROR_REC_NON_EXISTENT: u32 = 4005; +pub const ERROR_RPL_NOT_ALLOWED: u32 = 4006; +pub const PEERDIST_ERROR_CONTENTINFO_VERSION_UNSUPPORTED: u32 = 4050; +pub const PEERDIST_ERROR_CANNOT_PARSE_CONTENTINFO: u32 = 4051; +pub const PEERDIST_ERROR_MISSING_DATA: u32 = 4052; +pub const PEERDIST_ERROR_NO_MORE: u32 = 4053; +pub const PEERDIST_ERROR_NOT_INITIALIZED: u32 = 4054; +pub const PEERDIST_ERROR_ALREADY_INITIALIZED: u32 = 4055; +pub const PEERDIST_ERROR_SHUTDOWN_IN_PROGRESS: u32 = 4056; +pub const PEERDIST_ERROR_INVALIDATED: u32 = 4057; +pub const PEERDIST_ERROR_ALREADY_EXISTS: u32 = 4058; +pub const PEERDIST_ERROR_OPERATION_NOTFOUND: u32 = 4059; +pub const PEERDIST_ERROR_ALREADY_COMPLETED: u32 = 4060; +pub const PEERDIST_ERROR_OUT_OF_BOUNDS: u32 = 4061; +pub const PEERDIST_ERROR_VERSION_UNSUPPORTED: u32 = 4062; +pub const PEERDIST_ERROR_INVALID_CONFIGURATION: u32 = 4063; +pub const PEERDIST_ERROR_NOT_LICENSED: u32 = 4064; +pub const PEERDIST_ERROR_SERVICE_UNAVAILABLE: u32 = 4065; +pub const PEERDIST_ERROR_TRUST_FAILURE: u32 = 4066; +pub const ERROR_DHCP_ADDRESS_CONFLICT: u32 = 4100; +pub const ERROR_WMI_GUID_NOT_FOUND: u32 = 4200; +pub const ERROR_WMI_INSTANCE_NOT_FOUND: u32 = 4201; +pub const ERROR_WMI_ITEMID_NOT_FOUND: u32 = 4202; +pub const ERROR_WMI_TRY_AGAIN: u32 = 4203; +pub const ERROR_WMI_DP_NOT_FOUND: u32 = 4204; +pub const ERROR_WMI_UNRESOLVED_INSTANCE_REF: u32 = 4205; +pub const ERROR_WMI_ALREADY_ENABLED: u32 = 4206; +pub const ERROR_WMI_GUID_DISCONNECTED: u32 = 4207; +pub const ERROR_WMI_SERVER_UNAVAILABLE: u32 = 4208; +pub const ERROR_WMI_DP_FAILED: u32 = 4209; +pub const ERROR_WMI_INVALID_MOF: u32 = 4210; +pub const ERROR_WMI_INVALID_REGINFO: u32 = 4211; +pub const ERROR_WMI_ALREADY_DISABLED: u32 = 4212; +pub const ERROR_WMI_READ_ONLY: u32 = 4213; +pub const ERROR_WMI_SET_FAILURE: u32 = 4214; +pub const ERROR_NOT_APPCONTAINER: u32 = 4250; +pub const ERROR_APPCONTAINER_REQUIRED: u32 = 4251; +pub const ERROR_NOT_SUPPORTED_IN_APPCONTAINER: u32 = 4252; +pub const ERROR_INVALID_PACKAGE_SID_LENGTH: u32 = 4253; +pub const ERROR_INVALID_MEDIA: u32 = 4300; +pub const ERROR_INVALID_LIBRARY: u32 = 4301; +pub const ERROR_INVALID_MEDIA_POOL: u32 = 4302; +pub const ERROR_DRIVE_MEDIA_MISMATCH: u32 = 4303; +pub const ERROR_MEDIA_OFFLINE: u32 = 4304; +pub const ERROR_LIBRARY_OFFLINE: u32 = 4305; +pub const ERROR_EMPTY: u32 = 4306; +pub const ERROR_NOT_EMPTY: u32 = 4307; +pub const ERROR_MEDIA_UNAVAILABLE: u32 = 4308; +pub const ERROR_RESOURCE_DISABLED: u32 = 4309; +pub const ERROR_INVALID_CLEANER: u32 = 4310; +pub const ERROR_UNABLE_TO_CLEAN: u32 = 4311; +pub const ERROR_OBJECT_NOT_FOUND: u32 = 4312; +pub const ERROR_DATABASE_FAILURE: u32 = 4313; +pub const ERROR_DATABASE_FULL: u32 = 4314; +pub const ERROR_MEDIA_INCOMPATIBLE: u32 = 4315; +pub const ERROR_RESOURCE_NOT_PRESENT: u32 = 4316; +pub const ERROR_INVALID_OPERATION: u32 = 4317; +pub const ERROR_MEDIA_NOT_AVAILABLE: u32 = 4318; +pub const ERROR_DEVICE_NOT_AVAILABLE: u32 = 4319; +pub const ERROR_REQUEST_REFUSED: u32 = 4320; +pub const ERROR_INVALID_DRIVE_OBJECT: u32 = 4321; +pub const ERROR_LIBRARY_FULL: u32 = 4322; +pub const ERROR_MEDIUM_NOT_ACCESSIBLE: u32 = 4323; +pub const ERROR_UNABLE_TO_LOAD_MEDIUM: u32 = 4324; +pub const ERROR_UNABLE_TO_INVENTORY_DRIVE: u32 = 4325; +pub const ERROR_UNABLE_TO_INVENTORY_SLOT: u32 = 4326; +pub const ERROR_UNABLE_TO_INVENTORY_TRANSPORT: u32 = 4327; +pub const ERROR_TRANSPORT_FULL: u32 = 4328; +pub const ERROR_CONTROLLING_IEPORT: u32 = 4329; +pub const ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA: u32 = 4330; +pub const ERROR_CLEANER_SLOT_SET: u32 = 4331; +pub const ERROR_CLEANER_SLOT_NOT_SET: u32 = 4332; +pub const ERROR_CLEANER_CARTRIDGE_SPENT: u32 = 4333; +pub const ERROR_UNEXPECTED_OMID: u32 = 4334; +pub const ERROR_CANT_DELETE_LAST_ITEM: u32 = 4335; +pub const ERROR_MESSAGE_EXCEEDS_MAX_SIZE: u32 = 4336; +pub const ERROR_VOLUME_CONTAINS_SYS_FILES: u32 = 4337; +pub const ERROR_INDIGENOUS_TYPE: u32 = 4338; +pub const ERROR_NO_SUPPORTING_DRIVES: u32 = 4339; +pub const ERROR_CLEANER_CARTRIDGE_INSTALLED: u32 = 4340; +pub const ERROR_IEPORT_FULL: u32 = 4341; +pub const ERROR_FILE_OFFLINE: u32 = 4350; +pub const ERROR_REMOTE_STORAGE_NOT_ACTIVE: u32 = 4351; +pub const ERROR_REMOTE_STORAGE_MEDIA_ERROR: u32 = 4352; +pub const ERROR_NOT_A_REPARSE_POINT: u32 = 4390; +pub const ERROR_REPARSE_ATTRIBUTE_CONFLICT: u32 = 4391; +pub const ERROR_INVALID_REPARSE_DATA: u32 = 4392; +pub const ERROR_REPARSE_TAG_INVALID: u32 = 4393; +pub const ERROR_REPARSE_TAG_MISMATCH: u32 = 4394; +pub const ERROR_REPARSE_POINT_ENCOUNTERED: u32 = 4395; +pub const ERROR_APP_DATA_NOT_FOUND: u32 = 4400; +pub const ERROR_APP_DATA_EXPIRED: u32 = 4401; +pub const ERROR_APP_DATA_CORRUPT: u32 = 4402; +pub const ERROR_APP_DATA_LIMIT_EXCEEDED: u32 = 4403; +pub const ERROR_APP_DATA_REBOOT_REQUIRED: u32 = 4404; +pub const ERROR_SECUREBOOT_ROLLBACK_DETECTED: u32 = 4420; +pub const ERROR_SECUREBOOT_POLICY_VIOLATION: u32 = 4421; +pub const ERROR_SECUREBOOT_INVALID_POLICY: u32 = 4422; +pub const ERROR_SECUREBOOT_POLICY_PUBLISHER_NOT_FOUND: u32 = 4423; +pub const ERROR_SECUREBOOT_POLICY_NOT_SIGNED: u32 = 4424; +pub const ERROR_SECUREBOOT_NOT_ENABLED: u32 = 4425; +pub const ERROR_SECUREBOOT_FILE_REPLACED: u32 = 4426; +pub const ERROR_SECUREBOOT_POLICY_NOT_AUTHORIZED: u32 = 4427; +pub const ERROR_SECUREBOOT_POLICY_UNKNOWN: u32 = 4428; +pub const ERROR_SECUREBOOT_POLICY_MISSING_ANTIROLLBACKVERSION: u32 = 4429; +pub const ERROR_SECUREBOOT_PLATFORM_ID_MISMATCH: u32 = 4430; +pub const ERROR_SECUREBOOT_POLICY_ROLLBACK_DETECTED: u32 = 4431; +pub const ERROR_SECUREBOOT_POLICY_UPGRADE_MISMATCH: u32 = 4432; +pub const ERROR_SECUREBOOT_REQUIRED_POLICY_FILE_MISSING: u32 = 4433; +pub const ERROR_SECUREBOOT_NOT_BASE_POLICY: u32 = 4434; +pub const ERROR_SECUREBOOT_NOT_SUPPLEMENTAL_POLICY: u32 = 4435; +pub const ERROR_OFFLOAD_READ_FLT_NOT_SUPPORTED: u32 = 4440; +pub const ERROR_OFFLOAD_WRITE_FLT_NOT_SUPPORTED: u32 = 4441; +pub const ERROR_OFFLOAD_READ_FILE_NOT_SUPPORTED: u32 = 4442; +pub const ERROR_OFFLOAD_WRITE_FILE_NOT_SUPPORTED: u32 = 4443; +pub const ERROR_ALREADY_HAS_STREAM_ID: u32 = 4444; +pub const ERROR_SMR_GARBAGE_COLLECTION_REQUIRED: u32 = 4445; +pub const ERROR_WOF_WIM_HEADER_CORRUPT: u32 = 4446; +pub const ERROR_WOF_WIM_RESOURCE_TABLE_CORRUPT: u32 = 4447; +pub const ERROR_WOF_FILE_RESOURCE_TABLE_CORRUPT: u32 = 4448; +pub const ERROR_OBJECT_IS_IMMUTABLE: u32 = 4449; +pub const ERROR_VOLUME_NOT_SIS_ENABLED: u32 = 4500; +pub const ERROR_SYSTEM_INTEGRITY_ROLLBACK_DETECTED: u32 = 4550; +pub const ERROR_SYSTEM_INTEGRITY_POLICY_VIOLATION: u32 = 4551; +pub const ERROR_SYSTEM_INTEGRITY_INVALID_POLICY: u32 = 4552; +pub const ERROR_SYSTEM_INTEGRITY_POLICY_NOT_SIGNED: u32 = 4553; +pub const ERROR_SYSTEM_INTEGRITY_TOO_MANY_POLICIES: u32 = 4554; +pub const ERROR_SYSTEM_INTEGRITY_SUPPLEMENTAL_POLICY_NOT_AUTHORIZED: u32 = 4555; +pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_MALICIOUS: u32 = 4556; +pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_PUA: u32 = 4557; +pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_DANGEROUS_EXT: u32 = 4558; +pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_OFFLINE: u32 = 4559; +pub const ERROR_VSM_NOT_INITIALIZED: u32 = 4560; +pub const ERROR_VSM_DMA_PROTECTION_NOT_IN_USE: u32 = 4561; +pub const ERROR_PLATFORM_MANIFEST_NOT_AUTHORIZED: u32 = 4570; +pub const ERROR_PLATFORM_MANIFEST_INVALID: u32 = 4571; +pub const ERROR_PLATFORM_MANIFEST_FILE_NOT_AUTHORIZED: u32 = 4572; +pub const ERROR_PLATFORM_MANIFEST_CATALOG_NOT_AUTHORIZED: u32 = 4573; +pub const ERROR_PLATFORM_MANIFEST_BINARY_ID_NOT_FOUND: u32 = 4574; +pub const ERROR_PLATFORM_MANIFEST_NOT_ACTIVE: u32 = 4575; +pub const ERROR_PLATFORM_MANIFEST_NOT_SIGNED: u32 = 4576; +pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_UNFRIENDLY_FILE: u32 = 4580; +pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_UNATTAINABLE: u32 = 4581; +pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_EXPLICIT_DENY_FILE: u32 = 4582; +pub const ERROR_DEPENDENT_RESOURCE_EXISTS: u32 = 5001; +pub const ERROR_DEPENDENCY_NOT_FOUND: u32 = 5002; +pub const ERROR_DEPENDENCY_ALREADY_EXISTS: u32 = 5003; +pub const ERROR_RESOURCE_NOT_ONLINE: u32 = 5004; +pub const ERROR_HOST_NODE_NOT_AVAILABLE: u32 = 5005; +pub const ERROR_RESOURCE_NOT_AVAILABLE: u32 = 5006; +pub const ERROR_RESOURCE_NOT_FOUND: u32 = 5007; +pub const ERROR_SHUTDOWN_CLUSTER: u32 = 5008; +pub const ERROR_CANT_EVICT_ACTIVE_NODE: u32 = 5009; +pub const ERROR_OBJECT_ALREADY_EXISTS: u32 = 5010; +pub const ERROR_OBJECT_IN_LIST: u32 = 5011; +pub const ERROR_GROUP_NOT_AVAILABLE: u32 = 5012; +pub const ERROR_GROUP_NOT_FOUND: u32 = 5013; +pub const ERROR_GROUP_NOT_ONLINE: u32 = 5014; +pub const ERROR_HOST_NODE_NOT_RESOURCE_OWNER: u32 = 5015; +pub const ERROR_HOST_NODE_NOT_GROUP_OWNER: u32 = 5016; +pub const ERROR_RESMON_CREATE_FAILED: u32 = 5017; +pub const ERROR_RESMON_ONLINE_FAILED: u32 = 5018; +pub const ERROR_RESOURCE_ONLINE: u32 = 5019; +pub const ERROR_QUORUM_RESOURCE: u32 = 5020; +pub const ERROR_NOT_QUORUM_CAPABLE: u32 = 5021; +pub const ERROR_CLUSTER_SHUTTING_DOWN: u32 = 5022; +pub const ERROR_INVALID_STATE: u32 = 5023; +pub const ERROR_RESOURCE_PROPERTIES_STORED: u32 = 5024; +pub const ERROR_NOT_QUORUM_CLASS: u32 = 5025; +pub const ERROR_CORE_RESOURCE: u32 = 5026; +pub const ERROR_QUORUM_RESOURCE_ONLINE_FAILED: u32 = 5027; +pub const ERROR_QUORUMLOG_OPEN_FAILED: u32 = 5028; +pub const ERROR_CLUSTERLOG_CORRUPT: u32 = 5029; +pub const ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE: u32 = 5030; +pub const ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE: u32 = 5031; +pub const ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND: u32 = 5032; +pub const ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE: u32 = 5033; +pub const ERROR_QUORUM_OWNER_ALIVE: u32 = 5034; +pub const ERROR_NETWORK_NOT_AVAILABLE: u32 = 5035; +pub const ERROR_NODE_NOT_AVAILABLE: u32 = 5036; +pub const ERROR_ALL_NODES_NOT_AVAILABLE: u32 = 5037; +pub const ERROR_RESOURCE_FAILED: u32 = 5038; +pub const ERROR_CLUSTER_INVALID_NODE: u32 = 5039; +pub const ERROR_CLUSTER_NODE_EXISTS: u32 = 5040; +pub const ERROR_CLUSTER_JOIN_IN_PROGRESS: u32 = 5041; +pub const ERROR_CLUSTER_NODE_NOT_FOUND: u32 = 5042; +pub const ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND: u32 = 5043; +pub const ERROR_CLUSTER_NETWORK_EXISTS: u32 = 5044; +pub const ERROR_CLUSTER_NETWORK_NOT_FOUND: u32 = 5045; +pub const ERROR_CLUSTER_NETINTERFACE_EXISTS: u32 = 5046; +pub const ERROR_CLUSTER_NETINTERFACE_NOT_FOUND: u32 = 5047; +pub const ERROR_CLUSTER_INVALID_REQUEST: u32 = 5048; +pub const ERROR_CLUSTER_INVALID_NETWORK_PROVIDER: u32 = 5049; +pub const ERROR_CLUSTER_NODE_DOWN: u32 = 5050; +pub const ERROR_CLUSTER_NODE_UNREACHABLE: u32 = 5051; +pub const ERROR_CLUSTER_NODE_NOT_MEMBER: u32 = 5052; +pub const ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS: u32 = 5053; +pub const ERROR_CLUSTER_INVALID_NETWORK: u32 = 5054; +pub const ERROR_CLUSTER_NODE_UP: u32 = 5056; +pub const ERROR_CLUSTER_IPADDR_IN_USE: u32 = 5057; +pub const ERROR_CLUSTER_NODE_NOT_PAUSED: u32 = 5058; +pub const ERROR_CLUSTER_NO_SECURITY_CONTEXT: u32 = 5059; +pub const ERROR_CLUSTER_NETWORK_NOT_INTERNAL: u32 = 5060; +pub const ERROR_CLUSTER_NODE_ALREADY_UP: u32 = 5061; +pub const ERROR_CLUSTER_NODE_ALREADY_DOWN: u32 = 5062; +pub const ERROR_CLUSTER_NETWORK_ALREADY_ONLINE: u32 = 5063; +pub const ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE: u32 = 5064; +pub const ERROR_CLUSTER_NODE_ALREADY_MEMBER: u32 = 5065; +pub const ERROR_CLUSTER_LAST_INTERNAL_NETWORK: u32 = 5066; +pub const ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS: u32 = 5067; +pub const ERROR_INVALID_OPERATION_ON_QUORUM: u32 = 5068; +pub const ERROR_DEPENDENCY_NOT_ALLOWED: u32 = 5069; +pub const ERROR_CLUSTER_NODE_PAUSED: u32 = 5070; +pub const ERROR_NODE_CANT_HOST_RESOURCE: u32 = 5071; +pub const ERROR_CLUSTER_NODE_NOT_READY: u32 = 5072; +pub const ERROR_CLUSTER_NODE_SHUTTING_DOWN: u32 = 5073; +pub const ERROR_CLUSTER_JOIN_ABORTED: u32 = 5074; +pub const ERROR_CLUSTER_INCOMPATIBLE_VERSIONS: u32 = 5075; +pub const ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED: u32 = 5076; +pub const ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED: u32 = 5077; +pub const ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND: u32 = 5078; +pub const ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED: u32 = 5079; +pub const ERROR_CLUSTER_RESNAME_NOT_FOUND: u32 = 5080; +pub const ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED: u32 = 5081; +pub const ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST: u32 = 5082; +pub const ERROR_CLUSTER_DATABASE_SEQMISMATCH: u32 = 5083; +pub const ERROR_RESMON_INVALID_STATE: u32 = 5084; +pub const ERROR_CLUSTER_GUM_NOT_LOCKER: u32 = 5085; +pub const ERROR_QUORUM_DISK_NOT_FOUND: u32 = 5086; +pub const ERROR_DATABASE_BACKUP_CORRUPT: u32 = 5087; +pub const ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT: u32 = 5088; +pub const ERROR_RESOURCE_PROPERTY_UNCHANGEABLE: u32 = 5089; +pub const ERROR_NO_ADMIN_ACCESS_POINT: u32 = 5090; +pub const ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE: u32 = 5890; +pub const ERROR_CLUSTER_QUORUMLOG_NOT_FOUND: u32 = 5891; +pub const ERROR_CLUSTER_MEMBERSHIP_HALT: u32 = 5892; +pub const ERROR_CLUSTER_INSTANCE_ID_MISMATCH: u32 = 5893; +pub const ERROR_CLUSTER_NETWORK_NOT_FOUND_FOR_IP: u32 = 5894; +pub const ERROR_CLUSTER_PROPERTY_DATA_TYPE_MISMATCH: u32 = 5895; +pub const ERROR_CLUSTER_EVICT_WITHOUT_CLEANUP: u32 = 5896; +pub const ERROR_CLUSTER_PARAMETER_MISMATCH: u32 = 5897; +pub const ERROR_NODE_CANNOT_BE_CLUSTERED: u32 = 5898; +pub const ERROR_CLUSTER_WRONG_OS_VERSION: u32 = 5899; +pub const ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME: u32 = 5900; +pub const ERROR_CLUSCFG_ALREADY_COMMITTED: u32 = 5901; +pub const ERROR_CLUSCFG_ROLLBACK_FAILED: u32 = 5902; +pub const ERROR_CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT: u32 = 5903; +pub const ERROR_CLUSTER_OLD_VERSION: u32 = 5904; +pub const ERROR_CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME: u32 = 5905; +pub const ERROR_CLUSTER_NO_NET_ADAPTERS: u32 = 5906; +pub const ERROR_CLUSTER_POISONED: u32 = 5907; +pub const ERROR_CLUSTER_GROUP_MOVING: u32 = 5908; +pub const ERROR_CLUSTER_RESOURCE_TYPE_BUSY: u32 = 5909; +pub const ERROR_RESOURCE_CALL_TIMED_OUT: u32 = 5910; +pub const ERROR_INVALID_CLUSTER_IPV6_ADDRESS: u32 = 5911; +pub const ERROR_CLUSTER_INTERNAL_INVALID_FUNCTION: u32 = 5912; +pub const ERROR_CLUSTER_PARAMETER_OUT_OF_BOUNDS: u32 = 5913; +pub const ERROR_CLUSTER_PARTIAL_SEND: u32 = 5914; +pub const ERROR_CLUSTER_REGISTRY_INVALID_FUNCTION: u32 = 5915; +pub const ERROR_CLUSTER_INVALID_STRING_TERMINATION: u32 = 5916; +pub const ERROR_CLUSTER_INVALID_STRING_FORMAT: u32 = 5917; +pub const ERROR_CLUSTER_DATABASE_TRANSACTION_IN_PROGRESS: u32 = 5918; +pub const ERROR_CLUSTER_DATABASE_TRANSACTION_NOT_IN_PROGRESS: u32 = 5919; +pub const ERROR_CLUSTER_NULL_DATA: u32 = 5920; +pub const ERROR_CLUSTER_PARTIAL_READ: u32 = 5921; +pub const ERROR_CLUSTER_PARTIAL_WRITE: u32 = 5922; +pub const ERROR_CLUSTER_CANT_DESERIALIZE_DATA: u32 = 5923; +pub const ERROR_DEPENDENT_RESOURCE_PROPERTY_CONFLICT: u32 = 5924; +pub const ERROR_CLUSTER_NO_QUORUM: u32 = 5925; +pub const ERROR_CLUSTER_INVALID_IPV6_NETWORK: u32 = 5926; +pub const ERROR_CLUSTER_INVALID_IPV6_TUNNEL_NETWORK: u32 = 5927; +pub const ERROR_QUORUM_NOT_ALLOWED_IN_THIS_GROUP: u32 = 5928; +pub const ERROR_DEPENDENCY_TREE_TOO_COMPLEX: u32 = 5929; +pub const ERROR_EXCEPTION_IN_RESOURCE_CALL: u32 = 5930; +pub const ERROR_CLUSTER_RHS_FAILED_INITIALIZATION: u32 = 5931; +pub const ERROR_CLUSTER_NOT_INSTALLED: u32 = 5932; +pub const ERROR_CLUSTER_RESOURCES_MUST_BE_ONLINE_ON_THE_SAME_NODE: u32 = 5933; +pub const ERROR_CLUSTER_MAX_NODES_IN_CLUSTER: u32 = 5934; +pub const ERROR_CLUSTER_TOO_MANY_NODES: u32 = 5935; +pub const ERROR_CLUSTER_OBJECT_ALREADY_USED: u32 = 5936; +pub const ERROR_NONCORE_GROUPS_FOUND: u32 = 5937; +pub const ERROR_FILE_SHARE_RESOURCE_CONFLICT: u32 = 5938; +pub const ERROR_CLUSTER_EVICT_INVALID_REQUEST: u32 = 5939; +pub const ERROR_CLUSTER_SINGLETON_RESOURCE: u32 = 5940; +pub const ERROR_CLUSTER_GROUP_SINGLETON_RESOURCE: u32 = 5941; +pub const ERROR_CLUSTER_RESOURCE_PROVIDER_FAILED: u32 = 5942; +pub const ERROR_CLUSTER_RESOURCE_CONFIGURATION_ERROR: u32 = 5943; +pub const ERROR_CLUSTER_GROUP_BUSY: u32 = 5944; +pub const ERROR_CLUSTER_NOT_SHARED_VOLUME: u32 = 5945; +pub const ERROR_CLUSTER_INVALID_SECURITY_DESCRIPTOR: u32 = 5946; +pub const ERROR_CLUSTER_SHARED_VOLUMES_IN_USE: u32 = 5947; +pub const ERROR_CLUSTER_USE_SHARED_VOLUMES_API: u32 = 5948; +pub const ERROR_CLUSTER_BACKUP_IN_PROGRESS: u32 = 5949; +pub const ERROR_NON_CSV_PATH: u32 = 5950; +pub const ERROR_CSV_VOLUME_NOT_LOCAL: u32 = 5951; +pub const ERROR_CLUSTER_WATCHDOG_TERMINATING: u32 = 5952; +pub const ERROR_CLUSTER_RESOURCE_VETOED_MOVE_INCOMPATIBLE_NODES: u32 = 5953; +pub const ERROR_CLUSTER_INVALID_NODE_WEIGHT: u32 = 5954; +pub const ERROR_CLUSTER_RESOURCE_VETOED_CALL: u32 = 5955; +pub const ERROR_RESMON_SYSTEM_RESOURCES_LACKING: u32 = 5956; +pub const ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_DESTINATION: u32 = 5957; +pub const ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_SOURCE: u32 = 5958; +pub const ERROR_CLUSTER_GROUP_QUEUED: u32 = 5959; +pub const ERROR_CLUSTER_RESOURCE_LOCKED_STATUS: u32 = 5960; +pub const ERROR_CLUSTER_SHARED_VOLUME_FAILOVER_NOT_ALLOWED: u32 = 5961; +pub const ERROR_CLUSTER_NODE_DRAIN_IN_PROGRESS: u32 = 5962; +pub const ERROR_CLUSTER_DISK_NOT_CONNECTED: u32 = 5963; +pub const ERROR_DISK_NOT_CSV_CAPABLE: u32 = 5964; +pub const ERROR_RESOURCE_NOT_IN_AVAILABLE_STORAGE: u32 = 5965; +pub const ERROR_CLUSTER_SHARED_VOLUME_REDIRECTED: u32 = 5966; +pub const ERROR_CLUSTER_SHARED_VOLUME_NOT_REDIRECTED: u32 = 5967; +pub const ERROR_CLUSTER_CANNOT_RETURN_PROPERTIES: u32 = 5968; +pub const ERROR_CLUSTER_RESOURCE_CONTAINS_UNSUPPORTED_DIFF_AREA_FOR_SHARED_VOLUMES: u32 = 5969; +pub const ERROR_CLUSTER_RESOURCE_IS_IN_MAINTENANCE_MODE: u32 = 5970; +pub const ERROR_CLUSTER_AFFINITY_CONFLICT: u32 = 5971; +pub const ERROR_CLUSTER_RESOURCE_IS_REPLICA_VIRTUAL_MACHINE: u32 = 5972; +pub const ERROR_CLUSTER_UPGRADE_INCOMPATIBLE_VERSIONS: u32 = 5973; +pub const ERROR_CLUSTER_UPGRADE_FIX_QUORUM_NOT_SUPPORTED: u32 = 5974; +pub const ERROR_CLUSTER_UPGRADE_RESTART_REQUIRED: u32 = 5975; +pub const ERROR_CLUSTER_UPGRADE_IN_PROGRESS: u32 = 5976; +pub const ERROR_CLUSTER_UPGRADE_INCOMPLETE: u32 = 5977; +pub const ERROR_CLUSTER_NODE_IN_GRACE_PERIOD: u32 = 5978; +pub const ERROR_CLUSTER_CSV_IO_PAUSE_TIMEOUT: u32 = 5979; +pub const ERROR_NODE_NOT_ACTIVE_CLUSTER_MEMBER: u32 = 5980; +pub const ERROR_CLUSTER_RESOURCE_NOT_MONITORED: u32 = 5981; +pub const ERROR_CLUSTER_RESOURCE_DOES_NOT_SUPPORT_UNMONITORED: u32 = 5982; +pub const ERROR_CLUSTER_RESOURCE_IS_REPLICATED: u32 = 5983; +pub const ERROR_CLUSTER_NODE_ISOLATED: u32 = 5984; +pub const ERROR_CLUSTER_NODE_QUARANTINED: u32 = 5985; +pub const ERROR_CLUSTER_DATABASE_UPDATE_CONDITION_FAILED: u32 = 5986; +pub const ERROR_CLUSTER_SPACE_DEGRADED: u32 = 5987; +pub const ERROR_CLUSTER_TOKEN_DELEGATION_NOT_SUPPORTED: u32 = 5988; +pub const ERROR_CLUSTER_CSV_INVALID_HANDLE: u32 = 5989; +pub const ERROR_CLUSTER_CSV_SUPPORTED_ONLY_ON_COORDINATOR: u32 = 5990; +pub const ERROR_GROUPSET_NOT_AVAILABLE: u32 = 5991; +pub const ERROR_GROUPSET_NOT_FOUND: u32 = 5992; +pub const ERROR_GROUPSET_CANT_PROVIDE: u32 = 5993; +pub const ERROR_CLUSTER_FAULT_DOMAIN_PARENT_NOT_FOUND: u32 = 5994; +pub const ERROR_CLUSTER_FAULT_DOMAIN_INVALID_HIERARCHY: u32 = 5995; +pub const ERROR_CLUSTER_FAULT_DOMAIN_FAILED_S2D_VALIDATION: u32 = 5996; +pub const ERROR_CLUSTER_FAULT_DOMAIN_S2D_CONNECTIVITY_LOSS: u32 = 5997; +pub const ERROR_CLUSTER_INVALID_INFRASTRUCTURE_FILESERVER_NAME: u32 = 5998; +pub const ERROR_CLUSTERSET_MANAGEMENT_CLUSTER_UNREACHABLE: u32 = 5999; +pub const ERROR_ENCRYPTION_FAILED: u32 = 6000; +pub const ERROR_DECRYPTION_FAILED: u32 = 6001; +pub const ERROR_FILE_ENCRYPTED: u32 = 6002; +pub const ERROR_NO_RECOVERY_POLICY: u32 = 6003; +pub const ERROR_NO_EFS: u32 = 6004; +pub const ERROR_WRONG_EFS: u32 = 6005; +pub const ERROR_NO_USER_KEYS: u32 = 6006; +pub const ERROR_FILE_NOT_ENCRYPTED: u32 = 6007; +pub const ERROR_NOT_EXPORT_FORMAT: u32 = 6008; +pub const ERROR_FILE_READ_ONLY: u32 = 6009; +pub const ERROR_DIR_EFS_DISALLOWED: u32 = 6010; +pub const ERROR_EFS_SERVER_NOT_TRUSTED: u32 = 6011; +pub const ERROR_BAD_RECOVERY_POLICY: u32 = 6012; +pub const ERROR_EFS_ALG_BLOB_TOO_BIG: u32 = 6013; +pub const ERROR_VOLUME_NOT_SUPPORT_EFS: u32 = 6014; +pub const ERROR_EFS_DISABLED: u32 = 6015; +pub const ERROR_EFS_VERSION_NOT_SUPPORT: u32 = 6016; +pub const ERROR_CS_ENCRYPTION_INVALID_SERVER_RESPONSE: u32 = 6017; +pub const ERROR_CS_ENCRYPTION_UNSUPPORTED_SERVER: u32 = 6018; +pub const ERROR_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE: u32 = 6019; +pub const ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE: u32 = 6020; +pub const ERROR_CS_ENCRYPTION_FILE_NOT_CSE: u32 = 6021; +pub const ERROR_ENCRYPTION_POLICY_DENIES_OPERATION: u32 = 6022; +pub const ERROR_WIP_ENCRYPTION_FAILED: u32 = 6023; +pub const ERROR_NO_BROWSER_SERVERS_FOUND: u32 = 6118; +pub const SCHED_E_SERVICE_NOT_LOCALSYSTEM: u32 = 6200; +pub const ERROR_CLUSTER_OBJECT_IS_CLUSTER_SET_VM: u32 = 6250; +pub const ERROR_LOG_SECTOR_INVALID: u32 = 6600; +pub const ERROR_LOG_SECTOR_PARITY_INVALID: u32 = 6601; +pub const ERROR_LOG_SECTOR_REMAPPED: u32 = 6602; +pub const ERROR_LOG_BLOCK_INCOMPLETE: u32 = 6603; +pub const ERROR_LOG_INVALID_RANGE: u32 = 6604; +pub const ERROR_LOG_BLOCKS_EXHAUSTED: u32 = 6605; +pub const ERROR_LOG_READ_CONTEXT_INVALID: u32 = 6606; +pub const ERROR_LOG_RESTART_INVALID: u32 = 6607; +pub const ERROR_LOG_BLOCK_VERSION: u32 = 6608; +pub const ERROR_LOG_BLOCK_INVALID: u32 = 6609; +pub const ERROR_LOG_READ_MODE_INVALID: u32 = 6610; +pub const ERROR_LOG_NO_RESTART: u32 = 6611; +pub const ERROR_LOG_METADATA_CORRUPT: u32 = 6612; +pub const ERROR_LOG_METADATA_INVALID: u32 = 6613; +pub const ERROR_LOG_METADATA_INCONSISTENT: u32 = 6614; +pub const ERROR_LOG_RESERVATION_INVALID: u32 = 6615; +pub const ERROR_LOG_CANT_DELETE: u32 = 6616; +pub const ERROR_LOG_CONTAINER_LIMIT_EXCEEDED: u32 = 6617; +pub const ERROR_LOG_START_OF_LOG: u32 = 6618; +pub const ERROR_LOG_POLICY_ALREADY_INSTALLED: u32 = 6619; +pub const ERROR_LOG_POLICY_NOT_INSTALLED: u32 = 6620; +pub const ERROR_LOG_POLICY_INVALID: u32 = 6621; +pub const ERROR_LOG_POLICY_CONFLICT: u32 = 6622; +pub const ERROR_LOG_PINNED_ARCHIVE_TAIL: u32 = 6623; +pub const ERROR_LOG_RECORD_NONEXISTENT: u32 = 6624; +pub const ERROR_LOG_RECORDS_RESERVED_INVALID: u32 = 6625; +pub const ERROR_LOG_SPACE_RESERVED_INVALID: u32 = 6626; +pub const ERROR_LOG_TAIL_INVALID: u32 = 6627; +pub const ERROR_LOG_FULL: u32 = 6628; +pub const ERROR_COULD_NOT_RESIZE_LOG: u32 = 6629; +pub const ERROR_LOG_MULTIPLEXED: u32 = 6630; +pub const ERROR_LOG_DEDICATED: u32 = 6631; +pub const ERROR_LOG_ARCHIVE_NOT_IN_PROGRESS: u32 = 6632; +pub const ERROR_LOG_ARCHIVE_IN_PROGRESS: u32 = 6633; +pub const ERROR_LOG_EPHEMERAL: u32 = 6634; +pub const ERROR_LOG_NOT_ENOUGH_CONTAINERS: u32 = 6635; +pub const ERROR_LOG_CLIENT_ALREADY_REGISTERED: u32 = 6636; +pub const ERROR_LOG_CLIENT_NOT_REGISTERED: u32 = 6637; +pub const ERROR_LOG_FULL_HANDLER_IN_PROGRESS: u32 = 6638; +pub const ERROR_LOG_CONTAINER_READ_FAILED: u32 = 6639; +pub const ERROR_LOG_CONTAINER_WRITE_FAILED: u32 = 6640; +pub const ERROR_LOG_CONTAINER_OPEN_FAILED: u32 = 6641; +pub const ERROR_LOG_CONTAINER_STATE_INVALID: u32 = 6642; +pub const ERROR_LOG_STATE_INVALID: u32 = 6643; +pub const ERROR_LOG_PINNED: u32 = 6644; +pub const ERROR_LOG_METADATA_FLUSH_FAILED: u32 = 6645; +pub const ERROR_LOG_INCONSISTENT_SECURITY: u32 = 6646; +pub const ERROR_LOG_APPENDED_FLUSH_FAILED: u32 = 6647; +pub const ERROR_LOG_PINNED_RESERVATION: u32 = 6648; +pub const ERROR_INVALID_TRANSACTION: u32 = 6700; +pub const ERROR_TRANSACTION_NOT_ACTIVE: u32 = 6701; +pub const ERROR_TRANSACTION_REQUEST_NOT_VALID: u32 = 6702; +pub const ERROR_TRANSACTION_NOT_REQUESTED: u32 = 6703; +pub const ERROR_TRANSACTION_ALREADY_ABORTED: u32 = 6704; +pub const ERROR_TRANSACTION_ALREADY_COMMITTED: u32 = 6705; +pub const ERROR_TM_INITIALIZATION_FAILED: u32 = 6706; +pub const ERROR_RESOURCEMANAGER_READ_ONLY: u32 = 6707; +pub const ERROR_TRANSACTION_NOT_JOINED: u32 = 6708; +pub const ERROR_TRANSACTION_SUPERIOR_EXISTS: u32 = 6709; +pub const ERROR_CRM_PROTOCOL_ALREADY_EXISTS: u32 = 6710; +pub const ERROR_TRANSACTION_PROPAGATION_FAILED: u32 = 6711; +pub const ERROR_CRM_PROTOCOL_NOT_FOUND: u32 = 6712; +pub const ERROR_TRANSACTION_INVALID_MARSHALL_BUFFER: u32 = 6713; +pub const ERROR_CURRENT_TRANSACTION_NOT_VALID: u32 = 6714; +pub const ERROR_TRANSACTION_NOT_FOUND: u32 = 6715; +pub const ERROR_RESOURCEMANAGER_NOT_FOUND: u32 = 6716; +pub const ERROR_ENLISTMENT_NOT_FOUND: u32 = 6717; +pub const ERROR_TRANSACTIONMANAGER_NOT_FOUND: u32 = 6718; +pub const ERROR_TRANSACTIONMANAGER_NOT_ONLINE: u32 = 6719; +pub const ERROR_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION: u32 = 6720; +pub const ERROR_TRANSACTION_NOT_ROOT: u32 = 6721; +pub const ERROR_TRANSACTION_OBJECT_EXPIRED: u32 = 6722; +pub const ERROR_TRANSACTION_RESPONSE_NOT_ENLISTED: u32 = 6723; +pub const ERROR_TRANSACTION_RECORD_TOO_LONG: u32 = 6724; +pub const ERROR_IMPLICIT_TRANSACTION_NOT_SUPPORTED: u32 = 6725; +pub const ERROR_TRANSACTION_INTEGRITY_VIOLATED: u32 = 6726; +pub const ERROR_TRANSACTIONMANAGER_IDENTITY_MISMATCH: u32 = 6727; +pub const ERROR_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT: u32 = 6728; +pub const ERROR_TRANSACTION_MUST_WRITETHROUGH: u32 = 6729; +pub const ERROR_TRANSACTION_NO_SUPERIOR: u32 = 6730; +pub const ERROR_HEURISTIC_DAMAGE_POSSIBLE: u32 = 6731; +pub const ERROR_TRANSACTIONAL_CONFLICT: u32 = 6800; +pub const ERROR_RM_NOT_ACTIVE: u32 = 6801; +pub const ERROR_RM_METADATA_CORRUPT: u32 = 6802; +pub const ERROR_DIRECTORY_NOT_RM: u32 = 6803; +pub const ERROR_TRANSACTIONS_UNSUPPORTED_REMOTE: u32 = 6805; +pub const ERROR_LOG_RESIZE_INVALID_SIZE: u32 = 6806; +pub const ERROR_OBJECT_NO_LONGER_EXISTS: u32 = 6807; +pub const ERROR_STREAM_MINIVERSION_NOT_FOUND: u32 = 6808; +pub const ERROR_STREAM_MINIVERSION_NOT_VALID: u32 = 6809; +pub const ERROR_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION: u32 = 6810; +pub const ERROR_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT: u32 = 6811; +pub const ERROR_CANT_CREATE_MORE_STREAM_MINIVERSIONS: u32 = 6812; +pub const ERROR_REMOTE_FILE_VERSION_MISMATCH: u32 = 6814; +pub const ERROR_HANDLE_NO_LONGER_VALID: u32 = 6815; +pub const ERROR_NO_TXF_METADATA: u32 = 6816; +pub const ERROR_LOG_CORRUPTION_DETECTED: u32 = 6817; +pub const ERROR_CANT_RECOVER_WITH_HANDLE_OPEN: u32 = 6818; +pub const ERROR_RM_DISCONNECTED: u32 = 6819; +pub const ERROR_ENLISTMENT_NOT_SUPERIOR: u32 = 6820; +pub const ERROR_RECOVERY_NOT_NEEDED: u32 = 6821; +pub const ERROR_RM_ALREADY_STARTED: u32 = 6822; +pub const ERROR_FILE_IDENTITY_NOT_PERSISTENT: u32 = 6823; +pub const ERROR_CANT_BREAK_TRANSACTIONAL_DEPENDENCY: u32 = 6824; +pub const ERROR_CANT_CROSS_RM_BOUNDARY: u32 = 6825; +pub const ERROR_TXF_DIR_NOT_EMPTY: u32 = 6826; +pub const ERROR_INDOUBT_TRANSACTIONS_EXIST: u32 = 6827; +pub const ERROR_TM_VOLATILE: u32 = 6828; +pub const ERROR_ROLLBACK_TIMER_EXPIRED: u32 = 6829; +pub const ERROR_TXF_ATTRIBUTE_CORRUPT: u32 = 6830; +pub const ERROR_EFS_NOT_ALLOWED_IN_TRANSACTION: u32 = 6831; +pub const ERROR_TRANSACTIONAL_OPEN_NOT_ALLOWED: u32 = 6832; +pub const ERROR_LOG_GROWTH_FAILED: u32 = 6833; +pub const ERROR_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE: u32 = 6834; +pub const ERROR_TXF_METADATA_ALREADY_PRESENT: u32 = 6835; +pub const ERROR_TRANSACTION_SCOPE_CALLBACKS_NOT_SET: u32 = 6836; +pub const ERROR_TRANSACTION_REQUIRED_PROMOTION: u32 = 6837; +pub const ERROR_CANNOT_EXECUTE_FILE_IN_TRANSACTION: u32 = 6838; +pub const ERROR_TRANSACTIONS_NOT_FROZEN: u32 = 6839; +pub const ERROR_TRANSACTION_FREEZE_IN_PROGRESS: u32 = 6840; +pub const ERROR_NOT_SNAPSHOT_VOLUME: u32 = 6841; +pub const ERROR_NO_SAVEPOINT_WITH_OPEN_FILES: u32 = 6842; +pub const ERROR_DATA_LOST_REPAIR: u32 = 6843; +pub const ERROR_SPARSE_NOT_ALLOWED_IN_TRANSACTION: u32 = 6844; +pub const ERROR_TM_IDENTITY_MISMATCH: u32 = 6845; +pub const ERROR_FLOATED_SECTION: u32 = 6846; +pub const ERROR_CANNOT_ACCEPT_TRANSACTED_WORK: u32 = 6847; +pub const ERROR_CANNOT_ABORT_TRANSACTIONS: u32 = 6848; +pub const ERROR_BAD_CLUSTERS: u32 = 6849; +pub const ERROR_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION: u32 = 6850; +pub const ERROR_VOLUME_DIRTY: u32 = 6851; +pub const ERROR_NO_LINK_TRACKING_IN_TRANSACTION: u32 = 6852; +pub const ERROR_OPERATION_NOT_SUPPORTED_IN_TRANSACTION: u32 = 6853; +pub const ERROR_EXPIRED_HANDLE: u32 = 6854; +pub const ERROR_TRANSACTION_NOT_ENLISTED: u32 = 6855; +pub const ERROR_CTX_WINSTATION_NAME_INVALID: u32 = 7001; +pub const ERROR_CTX_INVALID_PD: u32 = 7002; +pub const ERROR_CTX_PD_NOT_FOUND: u32 = 7003; +pub const ERROR_CTX_WD_NOT_FOUND: u32 = 7004; +pub const ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY: u32 = 7005; +pub const ERROR_CTX_SERVICE_NAME_COLLISION: u32 = 7006; +pub const ERROR_CTX_CLOSE_PENDING: u32 = 7007; +pub const ERROR_CTX_NO_OUTBUF: u32 = 7008; +pub const ERROR_CTX_MODEM_INF_NOT_FOUND: u32 = 7009; +pub const ERROR_CTX_INVALID_MODEMNAME: u32 = 7010; +pub const ERROR_CTX_MODEM_RESPONSE_ERROR: u32 = 7011; +pub const ERROR_CTX_MODEM_RESPONSE_TIMEOUT: u32 = 7012; +pub const ERROR_CTX_MODEM_RESPONSE_NO_CARRIER: u32 = 7013; +pub const ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE: u32 = 7014; +pub const ERROR_CTX_MODEM_RESPONSE_BUSY: u32 = 7015; +pub const ERROR_CTX_MODEM_RESPONSE_VOICE: u32 = 7016; +pub const ERROR_CTX_TD_ERROR: u32 = 7017; +pub const ERROR_CTX_WINSTATION_NOT_FOUND: u32 = 7022; +pub const ERROR_CTX_WINSTATION_ALREADY_EXISTS: u32 = 7023; +pub const ERROR_CTX_WINSTATION_BUSY: u32 = 7024; +pub const ERROR_CTX_BAD_VIDEO_MODE: u32 = 7025; +pub const ERROR_CTX_GRAPHICS_INVALID: u32 = 7035; +pub const ERROR_CTX_LOGON_DISABLED: u32 = 7037; +pub const ERROR_CTX_NOT_CONSOLE: u32 = 7038; +pub const ERROR_CTX_CLIENT_QUERY_TIMEOUT: u32 = 7040; +pub const ERROR_CTX_CONSOLE_DISCONNECT: u32 = 7041; +pub const ERROR_CTX_CONSOLE_CONNECT: u32 = 7042; +pub const ERROR_CTX_SHADOW_DENIED: u32 = 7044; +pub const ERROR_CTX_WINSTATION_ACCESS_DENIED: u32 = 7045; +pub const ERROR_CTX_INVALID_WD: u32 = 7049; +pub const ERROR_CTX_SHADOW_INVALID: u32 = 7050; +pub const ERROR_CTX_SHADOW_DISABLED: u32 = 7051; +pub const ERROR_CTX_CLIENT_LICENSE_IN_USE: u32 = 7052; +pub const ERROR_CTX_CLIENT_LICENSE_NOT_SET: u32 = 7053; +pub const ERROR_CTX_LICENSE_NOT_AVAILABLE: u32 = 7054; +pub const ERROR_CTX_LICENSE_CLIENT_INVALID: u32 = 7055; +pub const ERROR_CTX_LICENSE_EXPIRED: u32 = 7056; +pub const ERROR_CTX_SHADOW_NOT_RUNNING: u32 = 7057; +pub const ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE: u32 = 7058; +pub const ERROR_ACTIVATION_COUNT_EXCEEDED: u32 = 7059; +pub const ERROR_CTX_WINSTATIONS_DISABLED: u32 = 7060; +pub const ERROR_CTX_ENCRYPTION_LEVEL_REQUIRED: u32 = 7061; +pub const ERROR_CTX_SESSION_IN_USE: u32 = 7062; +pub const ERROR_CTX_NO_FORCE_LOGOFF: u32 = 7063; +pub const ERROR_CTX_ACCOUNT_RESTRICTION: u32 = 7064; +pub const ERROR_RDP_PROTOCOL_ERROR: u32 = 7065; +pub const ERROR_CTX_CDM_CONNECT: u32 = 7066; +pub const ERROR_CTX_CDM_DISCONNECT: u32 = 7067; +pub const ERROR_CTX_SECURITY_LAYER_ERROR: u32 = 7068; +pub const ERROR_TS_INCOMPATIBLE_SESSIONS: u32 = 7069; +pub const ERROR_TS_VIDEO_SUBSYSTEM_ERROR: u32 = 7070; +pub const FRS_ERR_INVALID_API_SEQUENCE: u32 = 8001; +pub const FRS_ERR_STARTING_SERVICE: u32 = 8002; +pub const FRS_ERR_STOPPING_SERVICE: u32 = 8003; +pub const FRS_ERR_INTERNAL_API: u32 = 8004; +pub const FRS_ERR_INTERNAL: u32 = 8005; +pub const FRS_ERR_SERVICE_COMM: u32 = 8006; +pub const FRS_ERR_INSUFFICIENT_PRIV: u32 = 8007; +pub const FRS_ERR_AUTHENTICATION: u32 = 8008; +pub const FRS_ERR_PARENT_INSUFFICIENT_PRIV: u32 = 8009; +pub const FRS_ERR_PARENT_AUTHENTICATION: u32 = 8010; +pub const FRS_ERR_CHILD_TO_PARENT_COMM: u32 = 8011; +pub const FRS_ERR_PARENT_TO_CHILD_COMM: u32 = 8012; +pub const FRS_ERR_SYSVOL_POPULATE: u32 = 8013; +pub const FRS_ERR_SYSVOL_POPULATE_TIMEOUT: u32 = 8014; +pub const FRS_ERR_SYSVOL_IS_BUSY: u32 = 8015; +pub const FRS_ERR_SYSVOL_DEMOTE: u32 = 8016; +pub const FRS_ERR_INVALID_SERVICE_PARAMETER: u32 = 8017; +pub const DS_S_SUCCESS: u32 = 0; +pub const ERROR_DS_NOT_INSTALLED: u32 = 8200; +pub const ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY: u32 = 8201; +pub const ERROR_DS_NO_ATTRIBUTE_OR_VALUE: u32 = 8202; +pub const ERROR_DS_INVALID_ATTRIBUTE_SYNTAX: u32 = 8203; +pub const ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED: u32 = 8204; +pub const ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS: u32 = 8205; +pub const ERROR_DS_BUSY: u32 = 8206; +pub const ERROR_DS_UNAVAILABLE: u32 = 8207; +pub const ERROR_DS_NO_RIDS_ALLOCATED: u32 = 8208; +pub const ERROR_DS_NO_MORE_RIDS: u32 = 8209; +pub const ERROR_DS_INCORRECT_ROLE_OWNER: u32 = 8210; +pub const ERROR_DS_RIDMGR_INIT_ERROR: u32 = 8211; +pub const ERROR_DS_OBJ_CLASS_VIOLATION: u32 = 8212; +pub const ERROR_DS_CANT_ON_NON_LEAF: u32 = 8213; +pub const ERROR_DS_CANT_ON_RDN: u32 = 8214; +pub const ERROR_DS_CANT_MOD_OBJ_CLASS: u32 = 8215; +pub const ERROR_DS_CROSS_DOM_MOVE_ERROR: u32 = 8216; +pub const ERROR_DS_GC_NOT_AVAILABLE: u32 = 8217; +pub const ERROR_SHARED_POLICY: u32 = 8218; +pub const ERROR_POLICY_OBJECT_NOT_FOUND: u32 = 8219; +pub const ERROR_POLICY_ONLY_IN_DS: u32 = 8220; +pub const ERROR_PROMOTION_ACTIVE: u32 = 8221; +pub const ERROR_NO_PROMOTION_ACTIVE: u32 = 8222; +pub const ERROR_DS_OPERATIONS_ERROR: u32 = 8224; +pub const ERROR_DS_PROTOCOL_ERROR: u32 = 8225; +pub const ERROR_DS_TIMELIMIT_EXCEEDED: u32 = 8226; +pub const ERROR_DS_SIZELIMIT_EXCEEDED: u32 = 8227; +pub const ERROR_DS_ADMIN_LIMIT_EXCEEDED: u32 = 8228; +pub const ERROR_DS_COMPARE_FALSE: u32 = 8229; +pub const ERROR_DS_COMPARE_TRUE: u32 = 8230; +pub const ERROR_DS_AUTH_METHOD_NOT_SUPPORTED: u32 = 8231; +pub const ERROR_DS_STRONG_AUTH_REQUIRED: u32 = 8232; +pub const ERROR_DS_INAPPROPRIATE_AUTH: u32 = 8233; +pub const ERROR_DS_AUTH_UNKNOWN: u32 = 8234; +pub const ERROR_DS_REFERRAL: u32 = 8235; +pub const ERROR_DS_UNAVAILABLE_CRIT_EXTENSION: u32 = 8236; +pub const ERROR_DS_CONFIDENTIALITY_REQUIRED: u32 = 8237; +pub const ERROR_DS_INAPPROPRIATE_MATCHING: u32 = 8238; +pub const ERROR_DS_CONSTRAINT_VIOLATION: u32 = 8239; +pub const ERROR_DS_NO_SUCH_OBJECT: u32 = 8240; +pub const ERROR_DS_ALIAS_PROBLEM: u32 = 8241; +pub const ERROR_DS_INVALID_DN_SYNTAX: u32 = 8242; +pub const ERROR_DS_IS_LEAF: u32 = 8243; +pub const ERROR_DS_ALIAS_DEREF_PROBLEM: u32 = 8244; +pub const ERROR_DS_UNWILLING_TO_PERFORM: u32 = 8245; +pub const ERROR_DS_LOOP_DETECT: u32 = 8246; +pub const ERROR_DS_NAMING_VIOLATION: u32 = 8247; +pub const ERROR_DS_OBJECT_RESULTS_TOO_LARGE: u32 = 8248; +pub const ERROR_DS_AFFECTS_MULTIPLE_DSAS: u32 = 8249; +pub const ERROR_DS_SERVER_DOWN: u32 = 8250; +pub const ERROR_DS_LOCAL_ERROR: u32 = 8251; +pub const ERROR_DS_ENCODING_ERROR: u32 = 8252; +pub const ERROR_DS_DECODING_ERROR: u32 = 8253; +pub const ERROR_DS_FILTER_UNKNOWN: u32 = 8254; +pub const ERROR_DS_PARAM_ERROR: u32 = 8255; +pub const ERROR_DS_NOT_SUPPORTED: u32 = 8256; +pub const ERROR_DS_NO_RESULTS_RETURNED: u32 = 8257; +pub const ERROR_DS_CONTROL_NOT_FOUND: u32 = 8258; +pub const ERROR_DS_CLIENT_LOOP: u32 = 8259; +pub const ERROR_DS_REFERRAL_LIMIT_EXCEEDED: u32 = 8260; +pub const ERROR_DS_SORT_CONTROL_MISSING: u32 = 8261; +pub const ERROR_DS_OFFSET_RANGE_ERROR: u32 = 8262; +pub const ERROR_DS_RIDMGR_DISABLED: u32 = 8263; +pub const ERROR_DS_ROOT_MUST_BE_NC: u32 = 8301; +pub const ERROR_DS_ADD_REPLICA_INHIBITED: u32 = 8302; +pub const ERROR_DS_ATT_NOT_DEF_IN_SCHEMA: u32 = 8303; +pub const ERROR_DS_MAX_OBJ_SIZE_EXCEEDED: u32 = 8304; +pub const ERROR_DS_OBJ_STRING_NAME_EXISTS: u32 = 8305; +pub const ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA: u32 = 8306; +pub const ERROR_DS_RDN_DOESNT_MATCH_SCHEMA: u32 = 8307; +pub const ERROR_DS_NO_REQUESTED_ATTS_FOUND: u32 = 8308; +pub const ERROR_DS_USER_BUFFER_TO_SMALL: u32 = 8309; +pub const ERROR_DS_ATT_IS_NOT_ON_OBJ: u32 = 8310; +pub const ERROR_DS_ILLEGAL_MOD_OPERATION: u32 = 8311; +pub const ERROR_DS_OBJ_TOO_LARGE: u32 = 8312; +pub const ERROR_DS_BAD_INSTANCE_TYPE: u32 = 8313; +pub const ERROR_DS_MASTERDSA_REQUIRED: u32 = 8314; +pub const ERROR_DS_OBJECT_CLASS_REQUIRED: u32 = 8315; +pub const ERROR_DS_MISSING_REQUIRED_ATT: u32 = 8316; +pub const ERROR_DS_ATT_NOT_DEF_FOR_CLASS: u32 = 8317; +pub const ERROR_DS_ATT_ALREADY_EXISTS: u32 = 8318; +pub const ERROR_DS_CANT_ADD_ATT_VALUES: u32 = 8320; +pub const ERROR_DS_SINGLE_VALUE_CONSTRAINT: u32 = 8321; +pub const ERROR_DS_RANGE_CONSTRAINT: u32 = 8322; +pub const ERROR_DS_ATT_VAL_ALREADY_EXISTS: u32 = 8323; +pub const ERROR_DS_CANT_REM_MISSING_ATT: u32 = 8324; +pub const ERROR_DS_CANT_REM_MISSING_ATT_VAL: u32 = 8325; +pub const ERROR_DS_ROOT_CANT_BE_SUBREF: u32 = 8326; +pub const ERROR_DS_NO_CHAINING: u32 = 8327; +pub const ERROR_DS_NO_CHAINED_EVAL: u32 = 8328; +pub const ERROR_DS_NO_PARENT_OBJECT: u32 = 8329; +pub const ERROR_DS_PARENT_IS_AN_ALIAS: u32 = 8330; +pub const ERROR_DS_CANT_MIX_MASTER_AND_REPS: u32 = 8331; +pub const ERROR_DS_CHILDREN_EXIST: u32 = 8332; +pub const ERROR_DS_OBJ_NOT_FOUND: u32 = 8333; +pub const ERROR_DS_ALIASED_OBJ_MISSING: u32 = 8334; +pub const ERROR_DS_BAD_NAME_SYNTAX: u32 = 8335; +pub const ERROR_DS_ALIAS_POINTS_TO_ALIAS: u32 = 8336; +pub const ERROR_DS_CANT_DEREF_ALIAS: u32 = 8337; +pub const ERROR_DS_OUT_OF_SCOPE: u32 = 8338; +pub const ERROR_DS_OBJECT_BEING_REMOVED: u32 = 8339; +pub const ERROR_DS_CANT_DELETE_DSA_OBJ: u32 = 8340; +pub const ERROR_DS_GENERIC_ERROR: u32 = 8341; +pub const ERROR_DS_DSA_MUST_BE_INT_MASTER: u32 = 8342; +pub const ERROR_DS_CLASS_NOT_DSA: u32 = 8343; +pub const ERROR_DS_INSUFF_ACCESS_RIGHTS: u32 = 8344; +pub const ERROR_DS_ILLEGAL_SUPERIOR: u32 = 8345; +pub const ERROR_DS_ATTRIBUTE_OWNED_BY_SAM: u32 = 8346; +pub const ERROR_DS_NAME_TOO_MANY_PARTS: u32 = 8347; +pub const ERROR_DS_NAME_TOO_LONG: u32 = 8348; +pub const ERROR_DS_NAME_VALUE_TOO_LONG: u32 = 8349; +pub const ERROR_DS_NAME_UNPARSEABLE: u32 = 8350; +pub const ERROR_DS_NAME_TYPE_UNKNOWN: u32 = 8351; +pub const ERROR_DS_NOT_AN_OBJECT: u32 = 8352; +pub const ERROR_DS_SEC_DESC_TOO_SHORT: u32 = 8353; +pub const ERROR_DS_SEC_DESC_INVALID: u32 = 8354; +pub const ERROR_DS_NO_DELETED_NAME: u32 = 8355; +pub const ERROR_DS_SUBREF_MUST_HAVE_PARENT: u32 = 8356; +pub const ERROR_DS_NCNAME_MUST_BE_NC: u32 = 8357; +pub const ERROR_DS_CANT_ADD_SYSTEM_ONLY: u32 = 8358; +pub const ERROR_DS_CLASS_MUST_BE_CONCRETE: u32 = 8359; +pub const ERROR_DS_INVALID_DMD: u32 = 8360; +pub const ERROR_DS_OBJ_GUID_EXISTS: u32 = 8361; +pub const ERROR_DS_NOT_ON_BACKLINK: u32 = 8362; +pub const ERROR_DS_NO_CROSSREF_FOR_NC: u32 = 8363; +pub const ERROR_DS_SHUTTING_DOWN: u32 = 8364; +pub const ERROR_DS_UNKNOWN_OPERATION: u32 = 8365; +pub const ERROR_DS_INVALID_ROLE_OWNER: u32 = 8366; +pub const ERROR_DS_COULDNT_CONTACT_FSMO: u32 = 8367; +pub const ERROR_DS_CROSS_NC_DN_RENAME: u32 = 8368; +pub const ERROR_DS_CANT_MOD_SYSTEM_ONLY: u32 = 8369; +pub const ERROR_DS_REPLICATOR_ONLY: u32 = 8370; +pub const ERROR_DS_OBJ_CLASS_NOT_DEFINED: u32 = 8371; +pub const ERROR_DS_OBJ_CLASS_NOT_SUBCLASS: u32 = 8372; +pub const ERROR_DS_NAME_REFERENCE_INVALID: u32 = 8373; +pub const ERROR_DS_CROSS_REF_EXISTS: u32 = 8374; +pub const ERROR_DS_CANT_DEL_MASTER_CROSSREF: u32 = 8375; +pub const ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD: u32 = 8376; +pub const ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX: u32 = 8377; +pub const ERROR_DS_DUP_RDN: u32 = 8378; +pub const ERROR_DS_DUP_OID: u32 = 8379; +pub const ERROR_DS_DUP_MAPI_ID: u32 = 8380; +pub const ERROR_DS_DUP_SCHEMA_ID_GUID: u32 = 8381; +pub const ERROR_DS_DUP_LDAP_DISPLAY_NAME: u32 = 8382; +pub const ERROR_DS_SEMANTIC_ATT_TEST: u32 = 8383; +pub const ERROR_DS_SYNTAX_MISMATCH: u32 = 8384; +pub const ERROR_DS_EXISTS_IN_MUST_HAVE: u32 = 8385; +pub const ERROR_DS_EXISTS_IN_MAY_HAVE: u32 = 8386; +pub const ERROR_DS_NONEXISTENT_MAY_HAVE: u32 = 8387; +pub const ERROR_DS_NONEXISTENT_MUST_HAVE: u32 = 8388; +pub const ERROR_DS_AUX_CLS_TEST_FAIL: u32 = 8389; +pub const ERROR_DS_NONEXISTENT_POSS_SUP: u32 = 8390; +pub const ERROR_DS_SUB_CLS_TEST_FAIL: u32 = 8391; +pub const ERROR_DS_BAD_RDN_ATT_ID_SYNTAX: u32 = 8392; +pub const ERROR_DS_EXISTS_IN_AUX_CLS: u32 = 8393; +pub const ERROR_DS_EXISTS_IN_SUB_CLS: u32 = 8394; +pub const ERROR_DS_EXISTS_IN_POSS_SUP: u32 = 8395; +pub const ERROR_DS_RECALCSCHEMA_FAILED: u32 = 8396; +pub const ERROR_DS_TREE_DELETE_NOT_FINISHED: u32 = 8397; +pub const ERROR_DS_CANT_DELETE: u32 = 8398; +pub const ERROR_DS_ATT_SCHEMA_REQ_ID: u32 = 8399; +pub const ERROR_DS_BAD_ATT_SCHEMA_SYNTAX: u32 = 8400; +pub const ERROR_DS_CANT_CACHE_ATT: u32 = 8401; +pub const ERROR_DS_CANT_CACHE_CLASS: u32 = 8402; +pub const ERROR_DS_CANT_REMOVE_ATT_CACHE: u32 = 8403; +pub const ERROR_DS_CANT_REMOVE_CLASS_CACHE: u32 = 8404; +pub const ERROR_DS_CANT_RETRIEVE_DN: u32 = 8405; +pub const ERROR_DS_MISSING_SUPREF: u32 = 8406; +pub const ERROR_DS_CANT_RETRIEVE_INSTANCE: u32 = 8407; +pub const ERROR_DS_CODE_INCONSISTENCY: u32 = 8408; +pub const ERROR_DS_DATABASE_ERROR: u32 = 8409; +pub const ERROR_DS_GOVERNSID_MISSING: u32 = 8410; +pub const ERROR_DS_MISSING_EXPECTED_ATT: u32 = 8411; +pub const ERROR_DS_NCNAME_MISSING_CR_REF: u32 = 8412; +pub const ERROR_DS_SECURITY_CHECKING_ERROR: u32 = 8413; +pub const ERROR_DS_SCHEMA_NOT_LOADED: u32 = 8414; +pub const ERROR_DS_SCHEMA_ALLOC_FAILED: u32 = 8415; +pub const ERROR_DS_ATT_SCHEMA_REQ_SYNTAX: u32 = 8416; +pub const ERROR_DS_GCVERIFY_ERROR: u32 = 8417; +pub const ERROR_DS_DRA_SCHEMA_MISMATCH: u32 = 8418; +pub const ERROR_DS_CANT_FIND_DSA_OBJ: u32 = 8419; +pub const ERROR_DS_CANT_FIND_EXPECTED_NC: u32 = 8420; +pub const ERROR_DS_CANT_FIND_NC_IN_CACHE: u32 = 8421; +pub const ERROR_DS_CANT_RETRIEVE_CHILD: u32 = 8422; +pub const ERROR_DS_SECURITY_ILLEGAL_MODIFY: u32 = 8423; +pub const ERROR_DS_CANT_REPLACE_HIDDEN_REC: u32 = 8424; +pub const ERROR_DS_BAD_HIERARCHY_FILE: u32 = 8425; +pub const ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED: u32 = 8426; +pub const ERROR_DS_CONFIG_PARAM_MISSING: u32 = 8427; +pub const ERROR_DS_COUNTING_AB_INDICES_FAILED: u32 = 8428; +pub const ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED: u32 = 8429; +pub const ERROR_DS_INTERNAL_FAILURE: u32 = 8430; +pub const ERROR_DS_UNKNOWN_ERROR: u32 = 8431; +pub const ERROR_DS_ROOT_REQUIRES_CLASS_TOP: u32 = 8432; +pub const ERROR_DS_REFUSING_FSMO_ROLES: u32 = 8433; +pub const ERROR_DS_MISSING_FSMO_SETTINGS: u32 = 8434; +pub const ERROR_DS_UNABLE_TO_SURRENDER_ROLES: u32 = 8435; +pub const ERROR_DS_DRA_GENERIC: u32 = 8436; +pub const ERROR_DS_DRA_INVALID_PARAMETER: u32 = 8437; +pub const ERROR_DS_DRA_BUSY: u32 = 8438; +pub const ERROR_DS_DRA_BAD_DN: u32 = 8439; +pub const ERROR_DS_DRA_BAD_NC: u32 = 8440; +pub const ERROR_DS_DRA_DN_EXISTS: u32 = 8441; +pub const ERROR_DS_DRA_INTERNAL_ERROR: u32 = 8442; +pub const ERROR_DS_DRA_INCONSISTENT_DIT: u32 = 8443; +pub const ERROR_DS_DRA_CONNECTION_FAILED: u32 = 8444; +pub const ERROR_DS_DRA_BAD_INSTANCE_TYPE: u32 = 8445; +pub const ERROR_DS_DRA_OUT_OF_MEM: u32 = 8446; +pub const ERROR_DS_DRA_MAIL_PROBLEM: u32 = 8447; +pub const ERROR_DS_DRA_REF_ALREADY_EXISTS: u32 = 8448; +pub const ERROR_DS_DRA_REF_NOT_FOUND: u32 = 8449; +pub const ERROR_DS_DRA_OBJ_IS_REP_SOURCE: u32 = 8450; +pub const ERROR_DS_DRA_DB_ERROR: u32 = 8451; +pub const ERROR_DS_DRA_NO_REPLICA: u32 = 8452; +pub const ERROR_DS_DRA_ACCESS_DENIED: u32 = 8453; +pub const ERROR_DS_DRA_NOT_SUPPORTED: u32 = 8454; +pub const ERROR_DS_DRA_RPC_CANCELLED: u32 = 8455; +pub const ERROR_DS_DRA_SOURCE_DISABLED: u32 = 8456; +pub const ERROR_DS_DRA_SINK_DISABLED: u32 = 8457; +pub const ERROR_DS_DRA_NAME_COLLISION: u32 = 8458; +pub const ERROR_DS_DRA_SOURCE_REINSTALLED: u32 = 8459; +pub const ERROR_DS_DRA_MISSING_PARENT: u32 = 8460; +pub const ERROR_DS_DRA_PREEMPTED: u32 = 8461; +pub const ERROR_DS_DRA_ABANDON_SYNC: u32 = 8462; +pub const ERROR_DS_DRA_SHUTDOWN: u32 = 8463; +pub const ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET: u32 = 8464; +pub const ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA: u32 = 8465; +pub const ERROR_DS_DRA_EXTN_CONNECTION_FAILED: u32 = 8466; +pub const ERROR_DS_INSTALL_SCHEMA_MISMATCH: u32 = 8467; +pub const ERROR_DS_DUP_LINK_ID: u32 = 8468; +pub const ERROR_DS_NAME_ERROR_RESOLVING: u32 = 8469; +pub const ERROR_DS_NAME_ERROR_NOT_FOUND: u32 = 8470; +pub const ERROR_DS_NAME_ERROR_NOT_UNIQUE: u32 = 8471; +pub const ERROR_DS_NAME_ERROR_NO_MAPPING: u32 = 8472; +pub const ERROR_DS_NAME_ERROR_DOMAIN_ONLY: u32 = 8473; +pub const ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING: u32 = 8474; +pub const ERROR_DS_CONSTRUCTED_ATT_MOD: u32 = 8475; +pub const ERROR_DS_WRONG_OM_OBJ_CLASS: u32 = 8476; +pub const ERROR_DS_DRA_REPL_PENDING: u32 = 8477; +pub const ERROR_DS_DS_REQUIRED: u32 = 8478; +pub const ERROR_DS_INVALID_LDAP_DISPLAY_NAME: u32 = 8479; +pub const ERROR_DS_NON_BASE_SEARCH: u32 = 8480; +pub const ERROR_DS_CANT_RETRIEVE_ATTS: u32 = 8481; +pub const ERROR_DS_BACKLINK_WITHOUT_LINK: u32 = 8482; +pub const ERROR_DS_EPOCH_MISMATCH: u32 = 8483; +pub const ERROR_DS_SRC_NAME_MISMATCH: u32 = 8484; +pub const ERROR_DS_SRC_AND_DST_NC_IDENTICAL: u32 = 8485; +pub const ERROR_DS_DST_NC_MISMATCH: u32 = 8486; +pub const ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC: u32 = 8487; +pub const ERROR_DS_SRC_GUID_MISMATCH: u32 = 8488; +pub const ERROR_DS_CANT_MOVE_DELETED_OBJECT: u32 = 8489; +pub const ERROR_DS_PDC_OPERATION_IN_PROGRESS: u32 = 8490; +pub const ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD: u32 = 8491; +pub const ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION: u32 = 8492; +pub const ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS: u32 = 8493; +pub const ERROR_DS_NC_MUST_HAVE_NC_PARENT: u32 = 8494; +pub const ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE: u32 = 8495; +pub const ERROR_DS_DST_DOMAIN_NOT_NATIVE: u32 = 8496; +pub const ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER: u32 = 8497; +pub const ERROR_DS_CANT_MOVE_ACCOUNT_GROUP: u32 = 8498; +pub const ERROR_DS_CANT_MOVE_RESOURCE_GROUP: u32 = 8499; +pub const ERROR_DS_INVALID_SEARCH_FLAG: u32 = 8500; +pub const ERROR_DS_NO_TREE_DELETE_ABOVE_NC: u32 = 8501; +pub const ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE: u32 = 8502; +pub const ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE: u32 = 8503; +pub const ERROR_DS_SAM_INIT_FAILURE: u32 = 8504; +pub const ERROR_DS_SENSITIVE_GROUP_VIOLATION: u32 = 8505; +pub const ERROR_DS_CANT_MOD_PRIMARYGROUPID: u32 = 8506; +pub const ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD: u32 = 8507; +pub const ERROR_DS_NONSAFE_SCHEMA_CHANGE: u32 = 8508; +pub const ERROR_DS_SCHEMA_UPDATE_DISALLOWED: u32 = 8509; +pub const ERROR_DS_CANT_CREATE_UNDER_SCHEMA: u32 = 8510; +pub const ERROR_DS_INSTALL_NO_SRC_SCH_VERSION: u32 = 8511; +pub const ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE: u32 = 8512; +pub const ERROR_DS_INVALID_GROUP_TYPE: u32 = 8513; +pub const ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN: u32 = 8514; +pub const ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN: u32 = 8515; +pub const ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER: u32 = 8516; +pub const ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER: u32 = 8517; +pub const ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER: u32 = 8518; +pub const ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER: u32 = 8519; +pub const ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER: u32 = 8520; +pub const ERROR_DS_HAVE_PRIMARY_MEMBERS: u32 = 8521; +pub const ERROR_DS_STRING_SD_CONVERSION_FAILED: u32 = 8522; +pub const ERROR_DS_NAMING_MASTER_GC: u32 = 8523; +pub const ERROR_DS_DNS_LOOKUP_FAILURE: u32 = 8524; +pub const ERROR_DS_COULDNT_UPDATE_SPNS: u32 = 8525; +pub const ERROR_DS_CANT_RETRIEVE_SD: u32 = 8526; +pub const ERROR_DS_KEY_NOT_UNIQUE: u32 = 8527; +pub const ERROR_DS_WRONG_LINKED_ATT_SYNTAX: u32 = 8528; +pub const ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD: u32 = 8529; +pub const ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY: u32 = 8530; +pub const ERROR_DS_CANT_START: u32 = 8531; +pub const ERROR_DS_INIT_FAILURE: u32 = 8532; +pub const ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION: u32 = 8533; +pub const ERROR_DS_SOURCE_DOMAIN_IN_FOREST: u32 = 8534; +pub const ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST: u32 = 8535; +pub const ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED: u32 = 8536; +pub const ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN: u32 = 8537; +pub const ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER: u32 = 8538; +pub const ERROR_DS_SRC_SID_EXISTS_IN_FOREST: u32 = 8539; +pub const ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH: u32 = 8540; +pub const ERROR_SAM_INIT_FAILURE: u32 = 8541; +pub const ERROR_DS_DRA_SCHEMA_INFO_SHIP: u32 = 8542; +pub const ERROR_DS_DRA_SCHEMA_CONFLICT: u32 = 8543; +pub const ERROR_DS_DRA_EARLIER_SCHEMA_CONFLICT: u32 = 8544; +pub const ERROR_DS_DRA_OBJ_NC_MISMATCH: u32 = 8545; +pub const ERROR_DS_NC_STILL_HAS_DSAS: u32 = 8546; +pub const ERROR_DS_GC_REQUIRED: u32 = 8547; +pub const ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY: u32 = 8548; +pub const ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS: u32 = 8549; +pub const ERROR_DS_CANT_ADD_TO_GC: u32 = 8550; +pub const ERROR_DS_NO_CHECKPOINT_WITH_PDC: u32 = 8551; +pub const ERROR_DS_SOURCE_AUDITING_NOT_ENABLED: u32 = 8552; +pub const ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC: u32 = 8553; +pub const ERROR_DS_INVALID_NAME_FOR_SPN: u32 = 8554; +pub const ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS: u32 = 8555; +pub const ERROR_DS_UNICODEPWD_NOT_IN_QUOTES: u32 = 8556; +pub const ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED: u32 = 8557; +pub const ERROR_DS_MUST_BE_RUN_ON_DST_DC: u32 = 8558; +pub const ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER: u32 = 8559; +pub const ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ: u32 = 8560; +pub const ERROR_DS_INIT_FAILURE_CONSOLE: u32 = 8561; +pub const ERROR_DS_SAM_INIT_FAILURE_CONSOLE: u32 = 8562; +pub const ERROR_DS_FOREST_VERSION_TOO_HIGH: u32 = 8563; +pub const ERROR_DS_DOMAIN_VERSION_TOO_HIGH: u32 = 8564; +pub const ERROR_DS_FOREST_VERSION_TOO_LOW: u32 = 8565; +pub const ERROR_DS_DOMAIN_VERSION_TOO_LOW: u32 = 8566; +pub const ERROR_DS_INCOMPATIBLE_VERSION: u32 = 8567; +pub const ERROR_DS_LOW_DSA_VERSION: u32 = 8568; +pub const ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN: u32 = 8569; +pub const ERROR_DS_NOT_SUPPORTED_SORT_ORDER: u32 = 8570; +pub const ERROR_DS_NAME_NOT_UNIQUE: u32 = 8571; +pub const ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4: u32 = 8572; +pub const ERROR_DS_OUT_OF_VERSION_STORE: u32 = 8573; +pub const ERROR_DS_INCOMPATIBLE_CONTROLS_USED: u32 = 8574; +pub const ERROR_DS_NO_REF_DOMAIN: u32 = 8575; +pub const ERROR_DS_RESERVED_LINK_ID: u32 = 8576; +pub const ERROR_DS_LINK_ID_NOT_AVAILABLE: u32 = 8577; +pub const ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER: u32 = 8578; +pub const ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE: u32 = 8579; +pub const ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC: u32 = 8580; +pub const ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG: u32 = 8581; +pub const ERROR_DS_MODIFYDN_WRONG_GRANDPARENT: u32 = 8582; +pub const ERROR_DS_NAME_ERROR_TRUST_REFERRAL: u32 = 8583; +pub const ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER: u32 = 8584; +pub const ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD: u32 = 8585; +pub const ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2: u32 = 8586; +pub const ERROR_DS_THREAD_LIMIT_EXCEEDED: u32 = 8587; +pub const ERROR_DS_NOT_CLOSEST: u32 = 8588; +pub const ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF: u32 = 8589; +pub const ERROR_DS_SINGLE_USER_MODE_FAILED: u32 = 8590; +pub const ERROR_DS_NTDSCRIPT_SYNTAX_ERROR: u32 = 8591; +pub const ERROR_DS_NTDSCRIPT_PROCESS_ERROR: u32 = 8592; +pub const ERROR_DS_DIFFERENT_REPL_EPOCHS: u32 = 8593; +pub const ERROR_DS_DRS_EXTENSIONS_CHANGED: u32 = 8594; +pub const ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR: u32 = 8595; +pub const ERROR_DS_NO_MSDS_INTID: u32 = 8596; +pub const ERROR_DS_DUP_MSDS_INTID: u32 = 8597; +pub const ERROR_DS_EXISTS_IN_RDNATTID: u32 = 8598; +pub const ERROR_DS_AUTHORIZATION_FAILED: u32 = 8599; +pub const ERROR_DS_INVALID_SCRIPT: u32 = 8600; +pub const ERROR_DS_REMOTE_CROSSREF_OP_FAILED: u32 = 8601; +pub const ERROR_DS_CROSS_REF_BUSY: u32 = 8602; +pub const ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN: u32 = 8603; +pub const ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC: u32 = 8604; +pub const ERROR_DS_DUPLICATE_ID_FOUND: u32 = 8605; +pub const ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT: u32 = 8606; +pub const ERROR_DS_GROUP_CONVERSION_ERROR: u32 = 8607; +pub const ERROR_DS_CANT_MOVE_APP_BASIC_GROUP: u32 = 8608; +pub const ERROR_DS_CANT_MOVE_APP_QUERY_GROUP: u32 = 8609; +pub const ERROR_DS_ROLE_NOT_VERIFIED: u32 = 8610; +pub const ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL: u32 = 8611; +pub const ERROR_DS_DOMAIN_RENAME_IN_PROGRESS: u32 = 8612; +pub const ERROR_DS_EXISTING_AD_CHILD_NC: u32 = 8613; +pub const ERROR_DS_REPL_LIFETIME_EXCEEDED: u32 = 8614; +pub const ERROR_DS_DISALLOWED_IN_SYSTEM_CONTAINER: u32 = 8615; +pub const ERROR_DS_LDAP_SEND_QUEUE_FULL: u32 = 8616; +pub const ERROR_DS_DRA_OUT_SCHEDULE_WINDOW: u32 = 8617; +pub const ERROR_DS_POLICY_NOT_KNOWN: u32 = 8618; +pub const ERROR_NO_SITE_SETTINGS_OBJECT: u32 = 8619; +pub const ERROR_NO_SECRETS: u32 = 8620; +pub const ERROR_NO_WRITABLE_DC_FOUND: u32 = 8621; +pub const ERROR_DS_NO_SERVER_OBJECT: u32 = 8622; +pub const ERROR_DS_NO_NTDSA_OBJECT: u32 = 8623; +pub const ERROR_DS_NON_ASQ_SEARCH: u32 = 8624; +pub const ERROR_DS_AUDIT_FAILURE: u32 = 8625; +pub const ERROR_DS_INVALID_SEARCH_FLAG_SUBTREE: u32 = 8626; +pub const ERROR_DS_INVALID_SEARCH_FLAG_TUPLE: u32 = 8627; +pub const ERROR_DS_HIERARCHY_TABLE_TOO_DEEP: u32 = 8628; +pub const ERROR_DS_DRA_CORRUPT_UTD_VECTOR: u32 = 8629; +pub const ERROR_DS_DRA_SECRETS_DENIED: u32 = 8630; +pub const ERROR_DS_RESERVED_MAPI_ID: u32 = 8631; +pub const ERROR_DS_MAPI_ID_NOT_AVAILABLE: u32 = 8632; +pub const ERROR_DS_DRA_MISSING_KRBTGT_SECRET: u32 = 8633; +pub const ERROR_DS_DOMAIN_NAME_EXISTS_IN_FOREST: u32 = 8634; +pub const ERROR_DS_FLAT_NAME_EXISTS_IN_FOREST: u32 = 8635; +pub const ERROR_INVALID_USER_PRINCIPAL_NAME: u32 = 8636; +pub const ERROR_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS: u32 = 8637; +pub const ERROR_DS_OID_NOT_FOUND: u32 = 8638; +pub const ERROR_DS_DRA_RECYCLED_TARGET: u32 = 8639; +pub const ERROR_DS_DISALLOWED_NC_REDIRECT: u32 = 8640; +pub const ERROR_DS_HIGH_ADLDS_FFL: u32 = 8641; +pub const ERROR_DS_HIGH_DSA_VERSION: u32 = 8642; +pub const ERROR_DS_LOW_ADLDS_FFL: u32 = 8643; +pub const ERROR_DOMAIN_SID_SAME_AS_LOCAL_WORKSTATION: u32 = 8644; +pub const ERROR_DS_UNDELETE_SAM_VALIDATION_FAILED: u32 = 8645; +pub const ERROR_INCORRECT_ACCOUNT_TYPE: u32 = 8646; +pub const ERROR_DS_SPN_VALUE_NOT_UNIQUE_IN_FOREST: u32 = 8647; +pub const ERROR_DS_UPN_VALUE_NOT_UNIQUE_IN_FOREST: u32 = 8648; +pub const ERROR_DS_MISSING_FOREST_TRUST: u32 = 8649; +pub const ERROR_DS_VALUE_KEY_NOT_UNIQUE: u32 = 8650; +pub const ERROR_WEAK_WHFBKEY_BLOCKED: u32 = 8651; +pub const ERROR_DS_PER_ATTRIBUTE_AUTHZ_FAILED_DURING_ADD: u32 = 8652; +pub const ERROR_LOCAL_POLICY_MODIFICATION_NOT_SUPPORTED: u32 = 8653; +pub const ERROR_POLICY_CONTROLLED_ACCOUNT: u32 = 8654; +pub const ERROR_LAPS_LEGACY_SCHEMA_MISSING: u32 = 8655; +pub const ERROR_LAPS_SCHEMA_MISSING: u32 = 8656; +pub const ERROR_LAPS_ENCRYPTION_REQUIRES_2016_DFL: u32 = 8657; +pub const DNS_ERROR_RESPONSE_CODES_BASE: u32 = 9000; +pub const DNS_ERROR_RCODE_NO_ERROR: u32 = 0; +pub const DNS_ERROR_MASK: u32 = 9000; +pub const DNS_ERROR_RCODE_FORMAT_ERROR: u32 = 9001; +pub const DNS_ERROR_RCODE_SERVER_FAILURE: u32 = 9002; +pub const DNS_ERROR_RCODE_NAME_ERROR: u32 = 9003; +pub const DNS_ERROR_RCODE_NOT_IMPLEMENTED: u32 = 9004; +pub const DNS_ERROR_RCODE_REFUSED: u32 = 9005; +pub const DNS_ERROR_RCODE_YXDOMAIN: u32 = 9006; +pub const DNS_ERROR_RCODE_YXRRSET: u32 = 9007; +pub const DNS_ERROR_RCODE_NXRRSET: u32 = 9008; +pub const DNS_ERROR_RCODE_NOTAUTH: u32 = 9009; +pub const DNS_ERROR_RCODE_NOTZONE: u32 = 9010; +pub const DNS_ERROR_RCODE_BADSIG: u32 = 9016; +pub const DNS_ERROR_RCODE_BADKEY: u32 = 9017; +pub const DNS_ERROR_RCODE_BADTIME: u32 = 9018; +pub const DNS_ERROR_RCODE_LAST: u32 = 9018; +pub const DNS_ERROR_DNSSEC_BASE: u32 = 9100; +pub const DNS_ERROR_KEYMASTER_REQUIRED: u32 = 9101; +pub const DNS_ERROR_NOT_ALLOWED_ON_SIGNED_ZONE: u32 = 9102; +pub const DNS_ERROR_NSEC3_INCOMPATIBLE_WITH_RSA_SHA1: u32 = 9103; +pub const DNS_ERROR_NOT_ENOUGH_SIGNING_KEY_DESCRIPTORS: u32 = 9104; +pub const DNS_ERROR_UNSUPPORTED_ALGORITHM: u32 = 9105; +pub const DNS_ERROR_INVALID_KEY_SIZE: u32 = 9106; +pub const DNS_ERROR_SIGNING_KEY_NOT_ACCESSIBLE: u32 = 9107; +pub const DNS_ERROR_KSP_DOES_NOT_SUPPORT_PROTECTION: u32 = 9108; +pub const DNS_ERROR_UNEXPECTED_DATA_PROTECTION_ERROR: u32 = 9109; +pub const DNS_ERROR_UNEXPECTED_CNG_ERROR: u32 = 9110; +pub const DNS_ERROR_UNKNOWN_SIGNING_PARAMETER_VERSION: u32 = 9111; +pub const DNS_ERROR_KSP_NOT_ACCESSIBLE: u32 = 9112; +pub const DNS_ERROR_TOO_MANY_SKDS: u32 = 9113; +pub const DNS_ERROR_INVALID_ROLLOVER_PERIOD: u32 = 9114; +pub const DNS_ERROR_INVALID_INITIAL_ROLLOVER_OFFSET: u32 = 9115; +pub const DNS_ERROR_ROLLOVER_IN_PROGRESS: u32 = 9116; +pub const DNS_ERROR_STANDBY_KEY_NOT_PRESENT: u32 = 9117; +pub const DNS_ERROR_NOT_ALLOWED_ON_ZSK: u32 = 9118; +pub const DNS_ERROR_NOT_ALLOWED_ON_ACTIVE_SKD: u32 = 9119; +pub const DNS_ERROR_ROLLOVER_ALREADY_QUEUED: u32 = 9120; +pub const DNS_ERROR_NOT_ALLOWED_ON_UNSIGNED_ZONE: u32 = 9121; +pub const DNS_ERROR_BAD_KEYMASTER: u32 = 9122; +pub const DNS_ERROR_INVALID_SIGNATURE_VALIDITY_PERIOD: u32 = 9123; +pub const DNS_ERROR_INVALID_NSEC3_ITERATION_COUNT: u32 = 9124; +pub const DNS_ERROR_DNSSEC_IS_DISABLED: u32 = 9125; +pub const DNS_ERROR_INVALID_XML: u32 = 9126; +pub const DNS_ERROR_NO_VALID_TRUST_ANCHORS: u32 = 9127; +pub const DNS_ERROR_ROLLOVER_NOT_POKEABLE: u32 = 9128; +pub const DNS_ERROR_NSEC3_NAME_COLLISION: u32 = 9129; +pub const DNS_ERROR_NSEC_INCOMPATIBLE_WITH_NSEC3_RSA_SHA1: u32 = 9130; +pub const DNS_ERROR_PACKET_FMT_BASE: u32 = 9500; +pub const DNS_INFO_NO_RECORDS: u32 = 9501; +pub const DNS_ERROR_BAD_PACKET: u32 = 9502; +pub const DNS_ERROR_NO_PACKET: u32 = 9503; +pub const DNS_ERROR_RCODE: u32 = 9504; +pub const DNS_ERROR_UNSECURE_PACKET: u32 = 9505; +pub const DNS_STATUS_PACKET_UNSECURE: u32 = 9505; +pub const DNS_REQUEST_PENDING: u32 = 9506; +pub const DNS_ERROR_NO_MEMORY: u32 = 14; +pub const DNS_ERROR_INVALID_NAME: u32 = 123; +pub const DNS_ERROR_INVALID_DATA: u32 = 13; +pub const DNS_ERROR_GENERAL_API_BASE: u32 = 9550; +pub const DNS_ERROR_INVALID_TYPE: u32 = 9551; +pub const DNS_ERROR_INVALID_IP_ADDRESS: u32 = 9552; +pub const DNS_ERROR_INVALID_PROPERTY: u32 = 9553; +pub const DNS_ERROR_TRY_AGAIN_LATER: u32 = 9554; +pub const DNS_ERROR_NOT_UNIQUE: u32 = 9555; +pub const DNS_ERROR_NON_RFC_NAME: u32 = 9556; +pub const DNS_STATUS_FQDN: u32 = 9557; +pub const DNS_STATUS_DOTTED_NAME: u32 = 9558; +pub const DNS_STATUS_SINGLE_PART_NAME: u32 = 9559; +pub const DNS_ERROR_INVALID_NAME_CHAR: u32 = 9560; +pub const DNS_ERROR_NUMERIC_NAME: u32 = 9561; +pub const DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER: u32 = 9562; +pub const DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION: u32 = 9563; +pub const DNS_ERROR_CANNOT_FIND_ROOT_HINTS: u32 = 9564; +pub const DNS_ERROR_INCONSISTENT_ROOT_HINTS: u32 = 9565; +pub const DNS_ERROR_DWORD_VALUE_TOO_SMALL: u32 = 9566; +pub const DNS_ERROR_DWORD_VALUE_TOO_LARGE: u32 = 9567; +pub const DNS_ERROR_BACKGROUND_LOADING: u32 = 9568; +pub const DNS_ERROR_NOT_ALLOWED_ON_RODC: u32 = 9569; +pub const DNS_ERROR_NOT_ALLOWED_UNDER_DNAME: u32 = 9570; +pub const DNS_ERROR_DELEGATION_REQUIRED: u32 = 9571; +pub const DNS_ERROR_INVALID_POLICY_TABLE: u32 = 9572; +pub const DNS_ERROR_ADDRESS_REQUIRED: u32 = 9573; +pub const DNS_ERROR_ZONE_BASE: u32 = 9600; +pub const DNS_ERROR_ZONE_DOES_NOT_EXIST: u32 = 9601; +pub const DNS_ERROR_NO_ZONE_INFO: u32 = 9602; +pub const DNS_ERROR_INVALID_ZONE_OPERATION: u32 = 9603; +pub const DNS_ERROR_ZONE_CONFIGURATION_ERROR: u32 = 9604; +pub const DNS_ERROR_ZONE_HAS_NO_SOA_RECORD: u32 = 9605; +pub const DNS_ERROR_ZONE_HAS_NO_NS_RECORDS: u32 = 9606; +pub const DNS_ERROR_ZONE_LOCKED: u32 = 9607; +pub const DNS_ERROR_ZONE_CREATION_FAILED: u32 = 9608; +pub const DNS_ERROR_ZONE_ALREADY_EXISTS: u32 = 9609; +pub const DNS_ERROR_AUTOZONE_ALREADY_EXISTS: u32 = 9610; +pub const DNS_ERROR_INVALID_ZONE_TYPE: u32 = 9611; +pub const DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP: u32 = 9612; +pub const DNS_ERROR_ZONE_NOT_SECONDARY: u32 = 9613; +pub const DNS_ERROR_NEED_SECONDARY_ADDRESSES: u32 = 9614; +pub const DNS_ERROR_WINS_INIT_FAILED: u32 = 9615; +pub const DNS_ERROR_NEED_WINS_SERVERS: u32 = 9616; +pub const DNS_ERROR_NBSTAT_INIT_FAILED: u32 = 9617; +pub const DNS_ERROR_SOA_DELETE_INVALID: u32 = 9618; +pub const DNS_ERROR_FORWARDER_ALREADY_EXISTS: u32 = 9619; +pub const DNS_ERROR_ZONE_REQUIRES_MASTER_IP: u32 = 9620; +pub const DNS_ERROR_ZONE_IS_SHUTDOWN: u32 = 9621; +pub const DNS_ERROR_ZONE_LOCKED_FOR_SIGNING: u32 = 9622; +pub const DNS_ERROR_DATAFILE_BASE: u32 = 9650; +pub const DNS_ERROR_PRIMARY_REQUIRES_DATAFILE: u32 = 9651; +pub const DNS_ERROR_INVALID_DATAFILE_NAME: u32 = 9652; +pub const DNS_ERROR_DATAFILE_OPEN_FAILURE: u32 = 9653; +pub const DNS_ERROR_FILE_WRITEBACK_FAILED: u32 = 9654; +pub const DNS_ERROR_DATAFILE_PARSING: u32 = 9655; +pub const DNS_ERROR_DATABASE_BASE: u32 = 9700; +pub const DNS_ERROR_RECORD_DOES_NOT_EXIST: u32 = 9701; +pub const DNS_ERROR_RECORD_FORMAT: u32 = 9702; +pub const DNS_ERROR_NODE_CREATION_FAILED: u32 = 9703; +pub const DNS_ERROR_UNKNOWN_RECORD_TYPE: u32 = 9704; +pub const DNS_ERROR_RECORD_TIMED_OUT: u32 = 9705; +pub const DNS_ERROR_NAME_NOT_IN_ZONE: u32 = 9706; +pub const DNS_ERROR_CNAME_LOOP: u32 = 9707; +pub const DNS_ERROR_NODE_IS_CNAME: u32 = 9708; +pub const DNS_ERROR_CNAME_COLLISION: u32 = 9709; +pub const DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT: u32 = 9710; +pub const DNS_ERROR_RECORD_ALREADY_EXISTS: u32 = 9711; +pub const DNS_ERROR_SECONDARY_DATA: u32 = 9712; +pub const DNS_ERROR_NO_CREATE_CACHE_DATA: u32 = 9713; +pub const DNS_ERROR_NAME_DOES_NOT_EXIST: u32 = 9714; +pub const DNS_WARNING_PTR_CREATE_FAILED: u32 = 9715; +pub const DNS_WARNING_DOMAIN_UNDELETED: u32 = 9716; +pub const DNS_ERROR_DS_UNAVAILABLE: u32 = 9717; +pub const DNS_ERROR_DS_ZONE_ALREADY_EXISTS: u32 = 9718; +pub const DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE: u32 = 9719; +pub const DNS_ERROR_NODE_IS_DNAME: u32 = 9720; +pub const DNS_ERROR_DNAME_COLLISION: u32 = 9721; +pub const DNS_ERROR_ALIAS_LOOP: u32 = 9722; +pub const DNS_ERROR_OPERATION_BASE: u32 = 9750; +pub const DNS_INFO_AXFR_COMPLETE: u32 = 9751; +pub const DNS_ERROR_AXFR: u32 = 9752; +pub const DNS_INFO_ADDED_LOCAL_WINS: u32 = 9753; +pub const DNS_ERROR_SECURE_BASE: u32 = 9800; +pub const DNS_STATUS_CONTINUE_NEEDED: u32 = 9801; +pub const DNS_ERROR_SETUP_BASE: u32 = 9850; +pub const DNS_ERROR_NO_TCPIP: u32 = 9851; +pub const DNS_ERROR_NO_DNS_SERVERS: u32 = 9852; +pub const DNS_ERROR_DP_BASE: u32 = 9900; +pub const DNS_ERROR_DP_DOES_NOT_EXIST: u32 = 9901; +pub const DNS_ERROR_DP_ALREADY_EXISTS: u32 = 9902; +pub const DNS_ERROR_DP_NOT_ENLISTED: u32 = 9903; +pub const DNS_ERROR_DP_ALREADY_ENLISTED: u32 = 9904; +pub const DNS_ERROR_DP_NOT_AVAILABLE: u32 = 9905; +pub const DNS_ERROR_DP_FSMO_ERROR: u32 = 9906; +pub const DNS_ERROR_RRL_NOT_ENABLED: u32 = 9911; +pub const DNS_ERROR_RRL_INVALID_WINDOW_SIZE: u32 = 9912; +pub const DNS_ERROR_RRL_INVALID_IPV4_PREFIX: u32 = 9913; +pub const DNS_ERROR_RRL_INVALID_IPV6_PREFIX: u32 = 9914; +pub const DNS_ERROR_RRL_INVALID_TC_RATE: u32 = 9915; +pub const DNS_ERROR_RRL_INVALID_LEAK_RATE: u32 = 9916; +pub const DNS_ERROR_RRL_LEAK_RATE_LESSTHAN_TC_RATE: u32 = 9917; +pub const DNS_ERROR_VIRTUALIZATION_INSTANCE_ALREADY_EXISTS: u32 = 9921; +pub const DNS_ERROR_VIRTUALIZATION_INSTANCE_DOES_NOT_EXIST: u32 = 9922; +pub const DNS_ERROR_VIRTUALIZATION_TREE_LOCKED: u32 = 9923; +pub const DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME: u32 = 9924; +pub const DNS_ERROR_DEFAULT_VIRTUALIZATION_INSTANCE: u32 = 9925; +pub const DNS_ERROR_ZONESCOPE_ALREADY_EXISTS: u32 = 9951; +pub const DNS_ERROR_ZONESCOPE_DOES_NOT_EXIST: u32 = 9952; +pub const DNS_ERROR_DEFAULT_ZONESCOPE: u32 = 9953; +pub const DNS_ERROR_INVALID_ZONESCOPE_NAME: u32 = 9954; +pub const DNS_ERROR_NOT_ALLOWED_WITH_ZONESCOPES: u32 = 9955; +pub const DNS_ERROR_LOAD_ZONESCOPE_FAILED: u32 = 9956; +pub const DNS_ERROR_ZONESCOPE_FILE_WRITEBACK_FAILED: u32 = 9957; +pub const DNS_ERROR_INVALID_SCOPE_NAME: u32 = 9958; +pub const DNS_ERROR_SCOPE_DOES_NOT_EXIST: u32 = 9959; +pub const DNS_ERROR_DEFAULT_SCOPE: u32 = 9960; +pub const DNS_ERROR_INVALID_SCOPE_OPERATION: u32 = 9961; +pub const DNS_ERROR_SCOPE_LOCKED: u32 = 9962; +pub const DNS_ERROR_SCOPE_ALREADY_EXISTS: u32 = 9963; +pub const DNS_ERROR_POLICY_ALREADY_EXISTS: u32 = 9971; +pub const DNS_ERROR_POLICY_DOES_NOT_EXIST: u32 = 9972; +pub const DNS_ERROR_POLICY_INVALID_CRITERIA: u32 = 9973; +pub const DNS_ERROR_POLICY_INVALID_SETTINGS: u32 = 9974; +pub const DNS_ERROR_CLIENT_SUBNET_IS_ACCESSED: u32 = 9975; +pub const DNS_ERROR_CLIENT_SUBNET_DOES_NOT_EXIST: u32 = 9976; +pub const DNS_ERROR_CLIENT_SUBNET_ALREADY_EXISTS: u32 = 9977; +pub const DNS_ERROR_SUBNET_DOES_NOT_EXIST: u32 = 9978; +pub const DNS_ERROR_SUBNET_ALREADY_EXISTS: u32 = 9979; +pub const DNS_ERROR_POLICY_LOCKED: u32 = 9980; +pub const DNS_ERROR_POLICY_INVALID_WEIGHT: u32 = 9981; +pub const DNS_ERROR_POLICY_INVALID_NAME: u32 = 9982; +pub const DNS_ERROR_POLICY_MISSING_CRITERIA: u32 = 9983; +pub const DNS_ERROR_INVALID_CLIENT_SUBNET_NAME: u32 = 9984; +pub const DNS_ERROR_POLICY_PROCESSING_ORDER_INVALID: u32 = 9985; +pub const DNS_ERROR_POLICY_SCOPE_MISSING: u32 = 9986; +pub const DNS_ERROR_POLICY_SCOPE_NOT_ALLOWED: u32 = 9987; +pub const DNS_ERROR_SERVERSCOPE_IS_REFERENCED: u32 = 9988; +pub const DNS_ERROR_ZONESCOPE_IS_REFERENCED: u32 = 9989; +pub const DNS_ERROR_POLICY_INVALID_CRITERIA_CLIENT_SUBNET: u32 = 9990; +pub const DNS_ERROR_POLICY_INVALID_CRITERIA_TRANSPORT_PROTOCOL: u32 = 9991; +pub const DNS_ERROR_POLICY_INVALID_CRITERIA_NETWORK_PROTOCOL: u32 = 9992; +pub const DNS_ERROR_POLICY_INVALID_CRITERIA_INTERFACE: u32 = 9993; +pub const DNS_ERROR_POLICY_INVALID_CRITERIA_FQDN: u32 = 9994; +pub const DNS_ERROR_POLICY_INVALID_CRITERIA_QUERY_TYPE: u32 = 9995; +pub const DNS_ERROR_POLICY_INVALID_CRITERIA_TIME_OF_DAY: u32 = 9996; +pub const WSABASEERR: u32 = 10000; +pub const WSAEINTR: u32 = 10004; +pub const WSAEBADF: u32 = 10009; +pub const WSAEACCES: u32 = 10013; +pub const WSAEFAULT: u32 = 10014; +pub const WSAEINVAL: u32 = 10022; +pub const WSAEMFILE: u32 = 10024; +pub const WSAEWOULDBLOCK: u32 = 10035; +pub const WSAEINPROGRESS: u32 = 10036; +pub const WSAEALREADY: u32 = 10037; +pub const WSAENOTSOCK: u32 = 10038; +pub const WSAEDESTADDRREQ: u32 = 10039; +pub const WSAEMSGSIZE: u32 = 10040; +pub const WSAEPROTOTYPE: u32 = 10041; +pub const WSAENOPROTOOPT: u32 = 10042; +pub const WSAEPROTONOSUPPORT: u32 = 10043; +pub const WSAESOCKTNOSUPPORT: u32 = 10044; +pub const WSAEOPNOTSUPP: u32 = 10045; +pub const WSAEPFNOSUPPORT: u32 = 10046; +pub const WSAEAFNOSUPPORT: u32 = 10047; +pub const WSAEADDRINUSE: u32 = 10048; +pub const WSAEADDRNOTAVAIL: u32 = 10049; +pub const WSAENETDOWN: u32 = 10050; +pub const WSAENETUNREACH: u32 = 10051; +pub const WSAENETRESET: u32 = 10052; +pub const WSAECONNABORTED: u32 = 10053; +pub const WSAECONNRESET: u32 = 10054; +pub const WSAENOBUFS: u32 = 10055; +pub const WSAEISCONN: u32 = 10056; +pub const WSAENOTCONN: u32 = 10057; +pub const WSAESHUTDOWN: u32 = 10058; +pub const WSAETOOMANYREFS: u32 = 10059; +pub const WSAETIMEDOUT: u32 = 10060; +pub const WSAECONNREFUSED: u32 = 10061; +pub const WSAELOOP: u32 = 10062; +pub const WSAENAMETOOLONG: u32 = 10063; +pub const WSAEHOSTDOWN: u32 = 10064; +pub const WSAEHOSTUNREACH: u32 = 10065; +pub const WSAENOTEMPTY: u32 = 10066; +pub const WSAEPROCLIM: u32 = 10067; +pub const WSAEUSERS: u32 = 10068; +pub const WSAEDQUOT: u32 = 10069; +pub const WSAESTALE: u32 = 10070; +pub const WSAEREMOTE: u32 = 10071; +pub const WSASYSNOTREADY: u32 = 10091; +pub const WSAVERNOTSUPPORTED: u32 = 10092; +pub const WSANOTINITIALISED: u32 = 10093; +pub const WSAEDISCON: u32 = 10101; +pub const WSAENOMORE: u32 = 10102; +pub const WSAECANCELLED: u32 = 10103; +pub const WSAEINVALIDPROCTABLE: u32 = 10104; +pub const WSAEINVALIDPROVIDER: u32 = 10105; +pub const WSAEPROVIDERFAILEDINIT: u32 = 10106; +pub const WSASYSCALLFAILURE: u32 = 10107; +pub const WSASERVICE_NOT_FOUND: u32 = 10108; +pub const WSATYPE_NOT_FOUND: u32 = 10109; +pub const WSA_E_NO_MORE: u32 = 10110; +pub const WSA_E_CANCELLED: u32 = 10111; +pub const WSAEREFUSED: u32 = 10112; +pub const WSAHOST_NOT_FOUND: u32 = 11001; +pub const WSATRY_AGAIN: u32 = 11002; +pub const WSANO_RECOVERY: u32 = 11003; +pub const WSANO_DATA: u32 = 11004; +pub const WSA_QOS_RECEIVERS: u32 = 11005; +pub const WSA_QOS_SENDERS: u32 = 11006; +pub const WSA_QOS_NO_SENDERS: u32 = 11007; +pub const WSA_QOS_NO_RECEIVERS: u32 = 11008; +pub const WSA_QOS_REQUEST_CONFIRMED: u32 = 11009; +pub const WSA_QOS_ADMISSION_FAILURE: u32 = 11010; +pub const WSA_QOS_POLICY_FAILURE: u32 = 11011; +pub const WSA_QOS_BAD_STYLE: u32 = 11012; +pub const WSA_QOS_BAD_OBJECT: u32 = 11013; +pub const WSA_QOS_TRAFFIC_CTRL_ERROR: u32 = 11014; +pub const WSA_QOS_GENERIC_ERROR: u32 = 11015; +pub const WSA_QOS_ESERVICETYPE: u32 = 11016; +pub const WSA_QOS_EFLOWSPEC: u32 = 11017; +pub const WSA_QOS_EPROVSPECBUF: u32 = 11018; +pub const WSA_QOS_EFILTERSTYLE: u32 = 11019; +pub const WSA_QOS_EFILTERTYPE: u32 = 11020; +pub const WSA_QOS_EFILTERCOUNT: u32 = 11021; +pub const WSA_QOS_EOBJLENGTH: u32 = 11022; +pub const WSA_QOS_EFLOWCOUNT: u32 = 11023; +pub const WSA_QOS_EUNKOWNPSOBJ: u32 = 11024; +pub const WSA_QOS_EPOLICYOBJ: u32 = 11025; +pub const WSA_QOS_EFLOWDESC: u32 = 11026; +pub const WSA_QOS_EPSFLOWSPEC: u32 = 11027; +pub const WSA_QOS_EPSFILTERSPEC: u32 = 11028; +pub const WSA_QOS_ESDMODEOBJ: u32 = 11029; +pub const WSA_QOS_ESHAPERATEOBJ: u32 = 11030; +pub const WSA_QOS_RESERVED_PETYPE: u32 = 11031; +pub const WSA_SECURE_HOST_NOT_FOUND: u32 = 11032; +pub const WSA_IPSEC_NAME_POLICY_ERROR: u32 = 11033; +pub const ERROR_IPSEC_QM_POLICY_EXISTS: u32 = 13000; +pub const ERROR_IPSEC_QM_POLICY_NOT_FOUND: u32 = 13001; +pub const ERROR_IPSEC_QM_POLICY_IN_USE: u32 = 13002; +pub const ERROR_IPSEC_MM_POLICY_EXISTS: u32 = 13003; +pub const ERROR_IPSEC_MM_POLICY_NOT_FOUND: u32 = 13004; +pub const ERROR_IPSEC_MM_POLICY_IN_USE: u32 = 13005; +pub const ERROR_IPSEC_MM_FILTER_EXISTS: u32 = 13006; +pub const ERROR_IPSEC_MM_FILTER_NOT_FOUND: u32 = 13007; +pub const ERROR_IPSEC_TRANSPORT_FILTER_EXISTS: u32 = 13008; +pub const ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND: u32 = 13009; +pub const ERROR_IPSEC_MM_AUTH_EXISTS: u32 = 13010; +pub const ERROR_IPSEC_MM_AUTH_NOT_FOUND: u32 = 13011; +pub const ERROR_IPSEC_MM_AUTH_IN_USE: u32 = 13012; +pub const ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND: u32 = 13013; +pub const ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND: u32 = 13014; +pub const ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND: u32 = 13015; +pub const ERROR_IPSEC_TUNNEL_FILTER_EXISTS: u32 = 13016; +pub const ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND: u32 = 13017; +pub const ERROR_IPSEC_MM_FILTER_PENDING_DELETION: u32 = 13018; +pub const ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION: u32 = 13019; +pub const ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION: u32 = 13020; +pub const ERROR_IPSEC_MM_POLICY_PENDING_DELETION: u32 = 13021; +pub const ERROR_IPSEC_MM_AUTH_PENDING_DELETION: u32 = 13022; +pub const ERROR_IPSEC_QM_POLICY_PENDING_DELETION: u32 = 13023; +pub const WARNING_IPSEC_MM_POLICY_PRUNED: u32 = 13024; +pub const WARNING_IPSEC_QM_POLICY_PRUNED: u32 = 13025; +pub const ERROR_IPSEC_IKE_NEG_STATUS_BEGIN: u32 = 13800; +pub const ERROR_IPSEC_IKE_AUTH_FAIL: u32 = 13801; +pub const ERROR_IPSEC_IKE_ATTRIB_FAIL: u32 = 13802; +pub const ERROR_IPSEC_IKE_NEGOTIATION_PENDING: u32 = 13803; +pub const ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR: u32 = 13804; +pub const ERROR_IPSEC_IKE_TIMED_OUT: u32 = 13805; +pub const ERROR_IPSEC_IKE_NO_CERT: u32 = 13806; +pub const ERROR_IPSEC_IKE_SA_DELETED: u32 = 13807; +pub const ERROR_IPSEC_IKE_SA_REAPED: u32 = 13808; +pub const ERROR_IPSEC_IKE_MM_ACQUIRE_DROP: u32 = 13809; +pub const ERROR_IPSEC_IKE_QM_ACQUIRE_DROP: u32 = 13810; +pub const ERROR_IPSEC_IKE_QUEUE_DROP_MM: u32 = 13811; +pub const ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM: u32 = 13812; +pub const ERROR_IPSEC_IKE_DROP_NO_RESPONSE: u32 = 13813; +pub const ERROR_IPSEC_IKE_MM_DELAY_DROP: u32 = 13814; +pub const ERROR_IPSEC_IKE_QM_DELAY_DROP: u32 = 13815; +pub const ERROR_IPSEC_IKE_ERROR: u32 = 13816; +pub const ERROR_IPSEC_IKE_CRL_FAILED: u32 = 13817; +pub const ERROR_IPSEC_IKE_INVALID_KEY_USAGE: u32 = 13818; +pub const ERROR_IPSEC_IKE_INVALID_CERT_TYPE: u32 = 13819; +pub const ERROR_IPSEC_IKE_NO_PRIVATE_KEY: u32 = 13820; +pub const ERROR_IPSEC_IKE_SIMULTANEOUS_REKEY: u32 = 13821; +pub const ERROR_IPSEC_IKE_DH_FAIL: u32 = 13822; +pub const ERROR_IPSEC_IKE_CRITICAL_PAYLOAD_NOT_RECOGNIZED: u32 = 13823; +pub const ERROR_IPSEC_IKE_INVALID_HEADER: u32 = 13824; +pub const ERROR_IPSEC_IKE_NO_POLICY: u32 = 13825; +pub const ERROR_IPSEC_IKE_INVALID_SIGNATURE: u32 = 13826; +pub const ERROR_IPSEC_IKE_KERBEROS_ERROR: u32 = 13827; +pub const ERROR_IPSEC_IKE_NO_PUBLIC_KEY: u32 = 13828; +pub const ERROR_IPSEC_IKE_PROCESS_ERR: u32 = 13829; +pub const ERROR_IPSEC_IKE_PROCESS_ERR_SA: u32 = 13830; +pub const ERROR_IPSEC_IKE_PROCESS_ERR_PROP: u32 = 13831; +pub const ERROR_IPSEC_IKE_PROCESS_ERR_TRANS: u32 = 13832; +pub const ERROR_IPSEC_IKE_PROCESS_ERR_KE: u32 = 13833; +pub const ERROR_IPSEC_IKE_PROCESS_ERR_ID: u32 = 13834; +pub const ERROR_IPSEC_IKE_PROCESS_ERR_CERT: u32 = 13835; +pub const ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ: u32 = 13836; +pub const ERROR_IPSEC_IKE_PROCESS_ERR_HASH: u32 = 13837; +pub const ERROR_IPSEC_IKE_PROCESS_ERR_SIG: u32 = 13838; +pub const ERROR_IPSEC_IKE_PROCESS_ERR_NONCE: u32 = 13839; +pub const ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY: u32 = 13840; +pub const ERROR_IPSEC_IKE_PROCESS_ERR_DELETE: u32 = 13841; +pub const ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR: u32 = 13842; +pub const ERROR_IPSEC_IKE_INVALID_PAYLOAD: u32 = 13843; +pub const ERROR_IPSEC_IKE_LOAD_SOFT_SA: u32 = 13844; +pub const ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN: u32 = 13845; +pub const ERROR_IPSEC_IKE_INVALID_COOKIE: u32 = 13846; +pub const ERROR_IPSEC_IKE_NO_PEER_CERT: u32 = 13847; +pub const ERROR_IPSEC_IKE_PEER_CRL_FAILED: u32 = 13848; +pub const ERROR_IPSEC_IKE_POLICY_CHANGE: u32 = 13849; +pub const ERROR_IPSEC_IKE_NO_MM_POLICY: u32 = 13850; +pub const ERROR_IPSEC_IKE_NOTCBPRIV: u32 = 13851; +pub const ERROR_IPSEC_IKE_SECLOADFAIL: u32 = 13852; +pub const ERROR_IPSEC_IKE_FAILSSPINIT: u32 = 13853; +pub const ERROR_IPSEC_IKE_FAILQUERYSSP: u32 = 13854; +pub const ERROR_IPSEC_IKE_SRVACQFAIL: u32 = 13855; +pub const ERROR_IPSEC_IKE_SRVQUERYCRED: u32 = 13856; +pub const ERROR_IPSEC_IKE_GETSPIFAIL: u32 = 13857; +pub const ERROR_IPSEC_IKE_INVALID_FILTER: u32 = 13858; +pub const ERROR_IPSEC_IKE_OUT_OF_MEMORY: u32 = 13859; +pub const ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED: u32 = 13860; +pub const ERROR_IPSEC_IKE_INVALID_POLICY: u32 = 13861; +pub const ERROR_IPSEC_IKE_UNKNOWN_DOI: u32 = 13862; +pub const ERROR_IPSEC_IKE_INVALID_SITUATION: u32 = 13863; +pub const ERROR_IPSEC_IKE_DH_FAILURE: u32 = 13864; +pub const ERROR_IPSEC_IKE_INVALID_GROUP: u32 = 13865; +pub const ERROR_IPSEC_IKE_ENCRYPT: u32 = 13866; +pub const ERROR_IPSEC_IKE_DECRYPT: u32 = 13867; +pub const ERROR_IPSEC_IKE_POLICY_MATCH: u32 = 13868; +pub const ERROR_IPSEC_IKE_UNSUPPORTED_ID: u32 = 13869; +pub const ERROR_IPSEC_IKE_INVALID_HASH: u32 = 13870; +pub const ERROR_IPSEC_IKE_INVALID_HASH_ALG: u32 = 13871; +pub const ERROR_IPSEC_IKE_INVALID_HASH_SIZE: u32 = 13872; +pub const ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG: u32 = 13873; +pub const ERROR_IPSEC_IKE_INVALID_AUTH_ALG: u32 = 13874; +pub const ERROR_IPSEC_IKE_INVALID_SIG: u32 = 13875; +pub const ERROR_IPSEC_IKE_LOAD_FAILED: u32 = 13876; +pub const ERROR_IPSEC_IKE_RPC_DELETE: u32 = 13877; +pub const ERROR_IPSEC_IKE_BENIGN_REINIT: u32 = 13878; +pub const ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY: u32 = 13879; +pub const ERROR_IPSEC_IKE_INVALID_MAJOR_VERSION: u32 = 13880; +pub const ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN: u32 = 13881; +pub const ERROR_IPSEC_IKE_MM_LIMIT: u32 = 13882; +pub const ERROR_IPSEC_IKE_NEGOTIATION_DISABLED: u32 = 13883; +pub const ERROR_IPSEC_IKE_QM_LIMIT: u32 = 13884; +pub const ERROR_IPSEC_IKE_MM_EXPIRED: u32 = 13885; +pub const ERROR_IPSEC_IKE_PEER_MM_ASSUMED_INVALID: u32 = 13886; +pub const ERROR_IPSEC_IKE_CERT_CHAIN_POLICY_MISMATCH: u32 = 13887; +pub const ERROR_IPSEC_IKE_UNEXPECTED_MESSAGE_ID: u32 = 13888; +pub const ERROR_IPSEC_IKE_INVALID_AUTH_PAYLOAD: u32 = 13889; +pub const ERROR_IPSEC_IKE_DOS_COOKIE_SENT: u32 = 13890; +pub const ERROR_IPSEC_IKE_SHUTTING_DOWN: u32 = 13891; +pub const ERROR_IPSEC_IKE_CGA_AUTH_FAILED: u32 = 13892; +pub const ERROR_IPSEC_IKE_PROCESS_ERR_NATOA: u32 = 13893; +pub const ERROR_IPSEC_IKE_INVALID_MM_FOR_QM: u32 = 13894; +pub const ERROR_IPSEC_IKE_QM_EXPIRED: u32 = 13895; +pub const ERROR_IPSEC_IKE_TOO_MANY_FILTERS: u32 = 13896; +pub const ERROR_IPSEC_IKE_NEG_STATUS_END: u32 = 13897; +pub const ERROR_IPSEC_IKE_KILL_DUMMY_NAP_TUNNEL: u32 = 13898; +pub const ERROR_IPSEC_IKE_INNER_IP_ASSIGNMENT_FAILURE: u32 = 13899; +pub const ERROR_IPSEC_IKE_REQUIRE_CP_PAYLOAD_MISSING: u32 = 13900; +pub const ERROR_IPSEC_KEY_MODULE_IMPERSONATION_NEGOTIATION_PENDING: u32 = 13901; +pub const ERROR_IPSEC_IKE_COEXISTENCE_SUPPRESS: u32 = 13902; +pub const ERROR_IPSEC_IKE_RATELIMIT_DROP: u32 = 13903; +pub const ERROR_IPSEC_IKE_PEER_DOESNT_SUPPORT_MOBIKE: u32 = 13904; +pub const ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE: u32 = 13905; +pub const ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_FAILURE: u32 = 13906; +pub const ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE_WITH_OPTIONAL_RETRY: u32 = 13907; +pub const ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_AND_CERTMAP_FAILURE: u32 = 13908; +pub const ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END: u32 = 13909; +pub const ERROR_IPSEC_BAD_SPI: u32 = 13910; +pub const ERROR_IPSEC_SA_LIFETIME_EXPIRED: u32 = 13911; +pub const ERROR_IPSEC_WRONG_SA: u32 = 13912; +pub const ERROR_IPSEC_REPLAY_CHECK_FAILED: u32 = 13913; +pub const ERROR_IPSEC_INVALID_PACKET: u32 = 13914; +pub const ERROR_IPSEC_INTEGRITY_CHECK_FAILED: u32 = 13915; +pub const ERROR_IPSEC_CLEAR_TEXT_DROP: u32 = 13916; +pub const ERROR_IPSEC_AUTH_FIREWALL_DROP: u32 = 13917; +pub const ERROR_IPSEC_THROTTLE_DROP: u32 = 13918; +pub const ERROR_IPSEC_DOSP_BLOCK: u32 = 13925; +pub const ERROR_IPSEC_DOSP_RECEIVED_MULTICAST: u32 = 13926; +pub const ERROR_IPSEC_DOSP_INVALID_PACKET: u32 = 13927; +pub const ERROR_IPSEC_DOSP_STATE_LOOKUP_FAILED: u32 = 13928; +pub const ERROR_IPSEC_DOSP_MAX_ENTRIES: u32 = 13929; +pub const ERROR_IPSEC_DOSP_KEYMOD_NOT_ALLOWED: u32 = 13930; +pub const ERROR_IPSEC_DOSP_NOT_INSTALLED: u32 = 13931; +pub const ERROR_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES: u32 = 13932; +pub const ERROR_SXS_SECTION_NOT_FOUND: u32 = 14000; +pub const ERROR_SXS_CANT_GEN_ACTCTX: u32 = 14001; +pub const ERROR_SXS_INVALID_ACTCTXDATA_FORMAT: u32 = 14002; +pub const ERROR_SXS_ASSEMBLY_NOT_FOUND: u32 = 14003; +pub const ERROR_SXS_MANIFEST_FORMAT_ERROR: u32 = 14004; +pub const ERROR_SXS_MANIFEST_PARSE_ERROR: u32 = 14005; +pub const ERROR_SXS_ACTIVATION_CONTEXT_DISABLED: u32 = 14006; +pub const ERROR_SXS_KEY_NOT_FOUND: u32 = 14007; +pub const ERROR_SXS_VERSION_CONFLICT: u32 = 14008; +pub const ERROR_SXS_WRONG_SECTION_TYPE: u32 = 14009; +pub const ERROR_SXS_THREAD_QUERIES_DISABLED: u32 = 14010; +pub const ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET: u32 = 14011; +pub const ERROR_SXS_UNKNOWN_ENCODING_GROUP: u32 = 14012; +pub const ERROR_SXS_UNKNOWN_ENCODING: u32 = 14013; +pub const ERROR_SXS_INVALID_XML_NAMESPACE_URI: u32 = 14014; +pub const ERROR_SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED: u32 = 14015; +pub const ERROR_SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED: u32 = 14016; +pub const ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE: u32 = 14017; +pub const ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE: u32 = 14018; +pub const ERROR_SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE: u32 = 14019; +pub const ERROR_SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT: u32 = 14020; +pub const ERROR_SXS_DUPLICATE_DLL_NAME: u32 = 14021; +pub const ERROR_SXS_DUPLICATE_WINDOWCLASS_NAME: u32 = 14022; +pub const ERROR_SXS_DUPLICATE_CLSID: u32 = 14023; +pub const ERROR_SXS_DUPLICATE_IID: u32 = 14024; +pub const ERROR_SXS_DUPLICATE_TLBID: u32 = 14025; +pub const ERROR_SXS_DUPLICATE_PROGID: u32 = 14026; +pub const ERROR_SXS_DUPLICATE_ASSEMBLY_NAME: u32 = 14027; +pub const ERROR_SXS_FILE_HASH_MISMATCH: u32 = 14028; +pub const ERROR_SXS_POLICY_PARSE_ERROR: u32 = 14029; +pub const ERROR_SXS_XML_E_MISSINGQUOTE: u32 = 14030; +pub const ERROR_SXS_XML_E_COMMENTSYNTAX: u32 = 14031; +pub const ERROR_SXS_XML_E_BADSTARTNAMECHAR: u32 = 14032; +pub const ERROR_SXS_XML_E_BADNAMECHAR: u32 = 14033; +pub const ERROR_SXS_XML_E_BADCHARINSTRING: u32 = 14034; +pub const ERROR_SXS_XML_E_XMLDECLSYNTAX: u32 = 14035; +pub const ERROR_SXS_XML_E_BADCHARDATA: u32 = 14036; +pub const ERROR_SXS_XML_E_MISSINGWHITESPACE: u32 = 14037; +pub const ERROR_SXS_XML_E_EXPECTINGTAGEND: u32 = 14038; +pub const ERROR_SXS_XML_E_MISSINGSEMICOLON: u32 = 14039; +pub const ERROR_SXS_XML_E_UNBALANCEDPAREN: u32 = 14040; +pub const ERROR_SXS_XML_E_INTERNALERROR: u32 = 14041; +pub const ERROR_SXS_XML_E_UNEXPECTED_WHITESPACE: u32 = 14042; +pub const ERROR_SXS_XML_E_INCOMPLETE_ENCODING: u32 = 14043; +pub const ERROR_SXS_XML_E_MISSING_PAREN: u32 = 14044; +pub const ERROR_SXS_XML_E_EXPECTINGCLOSEQUOTE: u32 = 14045; +pub const ERROR_SXS_XML_E_MULTIPLE_COLONS: u32 = 14046; +pub const ERROR_SXS_XML_E_INVALID_DECIMAL: u32 = 14047; +pub const ERROR_SXS_XML_E_INVALID_HEXIDECIMAL: u32 = 14048; +pub const ERROR_SXS_XML_E_INVALID_UNICODE: u32 = 14049; +pub const ERROR_SXS_XML_E_WHITESPACEORQUESTIONMARK: u32 = 14050; +pub const ERROR_SXS_XML_E_UNEXPECTEDENDTAG: u32 = 14051; +pub const ERROR_SXS_XML_E_UNCLOSEDTAG: u32 = 14052; +pub const ERROR_SXS_XML_E_DUPLICATEATTRIBUTE: u32 = 14053; +pub const ERROR_SXS_XML_E_MULTIPLEROOTS: u32 = 14054; +pub const ERROR_SXS_XML_E_INVALIDATROOTLEVEL: u32 = 14055; +pub const ERROR_SXS_XML_E_BADXMLDECL: u32 = 14056; +pub const ERROR_SXS_XML_E_MISSINGROOT: u32 = 14057; +pub const ERROR_SXS_XML_E_UNEXPECTEDEOF: u32 = 14058; +pub const ERROR_SXS_XML_E_BADPEREFINSUBSET: u32 = 14059; +pub const ERROR_SXS_XML_E_UNCLOSEDSTARTTAG: u32 = 14060; +pub const ERROR_SXS_XML_E_UNCLOSEDENDTAG: u32 = 14061; +pub const ERROR_SXS_XML_E_UNCLOSEDSTRING: u32 = 14062; +pub const ERROR_SXS_XML_E_UNCLOSEDCOMMENT: u32 = 14063; +pub const ERROR_SXS_XML_E_UNCLOSEDDECL: u32 = 14064; +pub const ERROR_SXS_XML_E_UNCLOSEDCDATA: u32 = 14065; +pub const ERROR_SXS_XML_E_RESERVEDNAMESPACE: u32 = 14066; +pub const ERROR_SXS_XML_E_INVALIDENCODING: u32 = 14067; +pub const ERROR_SXS_XML_E_INVALIDSWITCH: u32 = 14068; +pub const ERROR_SXS_XML_E_BADXMLCASE: u32 = 14069; +pub const ERROR_SXS_XML_E_INVALID_STANDALONE: u32 = 14070; +pub const ERROR_SXS_XML_E_UNEXPECTED_STANDALONE: u32 = 14071; +pub const ERROR_SXS_XML_E_INVALID_VERSION: u32 = 14072; +pub const ERROR_SXS_XML_E_MISSINGEQUALS: u32 = 14073; +pub const ERROR_SXS_PROTECTION_RECOVERY_FAILED: u32 = 14074; +pub const ERROR_SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT: u32 = 14075; +pub const ERROR_SXS_PROTECTION_CATALOG_NOT_VALID: u32 = 14076; +pub const ERROR_SXS_UNTRANSLATABLE_HRESULT: u32 = 14077; +pub const ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING: u32 = 14078; +pub const ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE: u32 = 14079; +pub const ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME: u32 = 14080; +pub const ERROR_SXS_ASSEMBLY_MISSING: u32 = 14081; +pub const ERROR_SXS_CORRUPT_ACTIVATION_STACK: u32 = 14082; +pub const ERROR_SXS_CORRUPTION: u32 = 14083; +pub const ERROR_SXS_EARLY_DEACTIVATION: u32 = 14084; +pub const ERROR_SXS_INVALID_DEACTIVATION: u32 = 14085; +pub const ERROR_SXS_MULTIPLE_DEACTIVATION: u32 = 14086; +pub const ERROR_SXS_PROCESS_TERMINATION_REQUESTED: u32 = 14087; +pub const ERROR_SXS_RELEASE_ACTIVATION_CONTEXT: u32 = 14088; +pub const ERROR_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY: u32 = 14089; +pub const ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE: u32 = 14090; +pub const ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME: u32 = 14091; +pub const ERROR_SXS_IDENTITY_DUPLICATE_ATTRIBUTE: u32 = 14092; +pub const ERROR_SXS_IDENTITY_PARSE_ERROR: u32 = 14093; +pub const ERROR_MALFORMED_SUBSTITUTION_STRING: u32 = 14094; +pub const ERROR_SXS_INCORRECT_PUBLIC_KEY_TOKEN: u32 = 14095; +pub const ERROR_UNMAPPED_SUBSTITUTION_STRING: u32 = 14096; +pub const ERROR_SXS_ASSEMBLY_NOT_LOCKED: u32 = 14097; +pub const ERROR_SXS_COMPONENT_STORE_CORRUPT: u32 = 14098; +pub const ERROR_ADVANCED_INSTALLER_FAILED: u32 = 14099; +pub const ERROR_XML_ENCODING_MISMATCH: u32 = 14100; +pub const ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT: u32 = 14101; +pub const ERROR_SXS_IDENTITIES_DIFFERENT: u32 = 14102; +pub const ERROR_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT: u32 = 14103; +pub const ERROR_SXS_FILE_NOT_PART_OF_ASSEMBLY: u32 = 14104; +pub const ERROR_SXS_MANIFEST_TOO_BIG: u32 = 14105; +pub const ERROR_SXS_SETTING_NOT_REGISTERED: u32 = 14106; +pub const ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE: u32 = 14107; +pub const ERROR_SMI_PRIMITIVE_INSTALLER_FAILED: u32 = 14108; +pub const ERROR_GENERIC_COMMAND_FAILED: u32 = 14109; +pub const ERROR_SXS_FILE_HASH_MISSING: u32 = 14110; +pub const ERROR_SXS_DUPLICATE_ACTIVATABLE_CLASS: u32 = 14111; +pub const ERROR_EVT_INVALID_CHANNEL_PATH: u32 = 15000; +pub const ERROR_EVT_INVALID_QUERY: u32 = 15001; +pub const ERROR_EVT_PUBLISHER_METADATA_NOT_FOUND: u32 = 15002; +pub const ERROR_EVT_EVENT_TEMPLATE_NOT_FOUND: u32 = 15003; +pub const ERROR_EVT_INVALID_PUBLISHER_NAME: u32 = 15004; +pub const ERROR_EVT_INVALID_EVENT_DATA: u32 = 15005; +pub const ERROR_EVT_CHANNEL_NOT_FOUND: u32 = 15007; +pub const ERROR_EVT_MALFORMED_XML_TEXT: u32 = 15008; +pub const ERROR_EVT_SUBSCRIPTION_TO_DIRECT_CHANNEL: u32 = 15009; +pub const ERROR_EVT_CONFIGURATION_ERROR: u32 = 15010; +pub const ERROR_EVT_QUERY_RESULT_STALE: u32 = 15011; +pub const ERROR_EVT_QUERY_RESULT_INVALID_POSITION: u32 = 15012; +pub const ERROR_EVT_NON_VALIDATING_MSXML: u32 = 15013; +pub const ERROR_EVT_FILTER_ALREADYSCOPED: u32 = 15014; +pub const ERROR_EVT_FILTER_NOTELTSET: u32 = 15015; +pub const ERROR_EVT_FILTER_INVARG: u32 = 15016; +pub const ERROR_EVT_FILTER_INVTEST: u32 = 15017; +pub const ERROR_EVT_FILTER_INVTYPE: u32 = 15018; +pub const ERROR_EVT_FILTER_PARSEERR: u32 = 15019; +pub const ERROR_EVT_FILTER_UNSUPPORTEDOP: u32 = 15020; +pub const ERROR_EVT_FILTER_UNEXPECTEDTOKEN: u32 = 15021; +pub const ERROR_EVT_INVALID_OPERATION_OVER_ENABLED_DIRECT_CHANNEL: u32 = 15022; +pub const ERROR_EVT_INVALID_CHANNEL_PROPERTY_VALUE: u32 = 15023; +pub const ERROR_EVT_INVALID_PUBLISHER_PROPERTY_VALUE: u32 = 15024; +pub const ERROR_EVT_CHANNEL_CANNOT_ACTIVATE: u32 = 15025; +pub const ERROR_EVT_FILTER_TOO_COMPLEX: u32 = 15026; +pub const ERROR_EVT_MESSAGE_NOT_FOUND: u32 = 15027; +pub const ERROR_EVT_MESSAGE_ID_NOT_FOUND: u32 = 15028; +pub const ERROR_EVT_UNRESOLVED_VALUE_INSERT: u32 = 15029; +pub const ERROR_EVT_UNRESOLVED_PARAMETER_INSERT: u32 = 15030; +pub const ERROR_EVT_MAX_INSERTS_REACHED: u32 = 15031; +pub const ERROR_EVT_EVENT_DEFINITION_NOT_FOUND: u32 = 15032; +pub const ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND: u32 = 15033; +pub const ERROR_EVT_VERSION_TOO_OLD: u32 = 15034; +pub const ERROR_EVT_VERSION_TOO_NEW: u32 = 15035; +pub const ERROR_EVT_CANNOT_OPEN_CHANNEL_OF_QUERY: u32 = 15036; +pub const ERROR_EVT_PUBLISHER_DISABLED: u32 = 15037; +pub const ERROR_EVT_FILTER_OUT_OF_RANGE: u32 = 15038; +pub const ERROR_EC_SUBSCRIPTION_CANNOT_ACTIVATE: u32 = 15080; +pub const ERROR_EC_LOG_DISABLED: u32 = 15081; +pub const ERROR_EC_CIRCULAR_FORWARDING: u32 = 15082; +pub const ERROR_EC_CREDSTORE_FULL: u32 = 15083; +pub const ERROR_EC_CRED_NOT_FOUND: u32 = 15084; +pub const ERROR_EC_NO_ACTIVE_CHANNEL: u32 = 15085; +pub const ERROR_MUI_FILE_NOT_FOUND: u32 = 15100; +pub const ERROR_MUI_INVALID_FILE: u32 = 15101; +pub const ERROR_MUI_INVALID_RC_CONFIG: u32 = 15102; +pub const ERROR_MUI_INVALID_LOCALE_NAME: u32 = 15103; +pub const ERROR_MUI_INVALID_ULTIMATEFALLBACK_NAME: u32 = 15104; +pub const ERROR_MUI_FILE_NOT_LOADED: u32 = 15105; +pub const ERROR_RESOURCE_ENUM_USER_STOP: u32 = 15106; +pub const ERROR_MUI_INTLSETTINGS_UILANG_NOT_INSTALLED: u32 = 15107; +pub const ERROR_MUI_INTLSETTINGS_INVALID_LOCALE_NAME: u32 = 15108; +pub const ERROR_MRM_RUNTIME_NO_DEFAULT_OR_NEUTRAL_RESOURCE: u32 = 15110; +pub const ERROR_MRM_INVALID_PRICONFIG: u32 = 15111; +pub const ERROR_MRM_INVALID_FILE_TYPE: u32 = 15112; +pub const ERROR_MRM_UNKNOWN_QUALIFIER: u32 = 15113; +pub const ERROR_MRM_INVALID_QUALIFIER_VALUE: u32 = 15114; +pub const ERROR_MRM_NO_CANDIDATE: u32 = 15115; +pub const ERROR_MRM_NO_MATCH_OR_DEFAULT_CANDIDATE: u32 = 15116; +pub const ERROR_MRM_RESOURCE_TYPE_MISMATCH: u32 = 15117; +pub const ERROR_MRM_DUPLICATE_MAP_NAME: u32 = 15118; +pub const ERROR_MRM_DUPLICATE_ENTRY: u32 = 15119; +pub const ERROR_MRM_INVALID_RESOURCE_IDENTIFIER: u32 = 15120; +pub const ERROR_MRM_FILEPATH_TOO_LONG: u32 = 15121; +pub const ERROR_MRM_UNSUPPORTED_DIRECTORY_TYPE: u32 = 15122; +pub const ERROR_MRM_INVALID_PRI_FILE: u32 = 15126; +pub const ERROR_MRM_NAMED_RESOURCE_NOT_FOUND: u32 = 15127; +pub const ERROR_MRM_MAP_NOT_FOUND: u32 = 15135; +pub const ERROR_MRM_UNSUPPORTED_PROFILE_TYPE: u32 = 15136; +pub const ERROR_MRM_INVALID_QUALIFIER_OPERATOR: u32 = 15137; +pub const ERROR_MRM_INDETERMINATE_QUALIFIER_VALUE: u32 = 15138; +pub const ERROR_MRM_AUTOMERGE_ENABLED: u32 = 15139; +pub const ERROR_MRM_TOO_MANY_RESOURCES: u32 = 15140; +pub const ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_MERGE: u32 = 15141; +pub const ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_LOAD_UNLOAD_PRI_FILE: u32 = 15142; +pub const ERROR_MRM_NO_CURRENT_VIEW_ON_THREAD: u32 = 15143; +pub const ERROR_DIFFERENT_PROFILE_RESOURCE_MANAGER_EXIST: u32 = 15144; +pub const ERROR_OPERATION_NOT_ALLOWED_FROM_SYSTEM_COMPONENT: u32 = 15145; +pub const ERROR_MRM_DIRECT_REF_TO_NON_DEFAULT_RESOURCE: u32 = 15146; +pub const ERROR_MRM_GENERATION_COUNT_MISMATCH: u32 = 15147; +pub const ERROR_PRI_MERGE_VERSION_MISMATCH: u32 = 15148; +pub const ERROR_PRI_MERGE_MISSING_SCHEMA: u32 = 15149; +pub const ERROR_PRI_MERGE_LOAD_FILE_FAILED: u32 = 15150; +pub const ERROR_PRI_MERGE_ADD_FILE_FAILED: u32 = 15151; +pub const ERROR_PRI_MERGE_WRITE_FILE_FAILED: u32 = 15152; +pub const ERROR_PRI_MERGE_MULTIPLE_PACKAGE_FAMILIES_NOT_ALLOWED: u32 = 15153; +pub const ERROR_PRI_MERGE_MULTIPLE_MAIN_PACKAGES_NOT_ALLOWED: u32 = 15154; +pub const ERROR_PRI_MERGE_BUNDLE_PACKAGES_NOT_ALLOWED: u32 = 15155; +pub const ERROR_PRI_MERGE_MAIN_PACKAGE_REQUIRED: u32 = 15156; +pub const ERROR_PRI_MERGE_RESOURCE_PACKAGE_REQUIRED: u32 = 15157; +pub const ERROR_PRI_MERGE_INVALID_FILE_NAME: u32 = 15158; +pub const ERROR_MRM_PACKAGE_NOT_FOUND: u32 = 15159; +pub const ERROR_MRM_MISSING_DEFAULT_LANGUAGE: u32 = 15160; +pub const ERROR_MRM_SCOPE_ITEM_CONFLICT: u32 = 15161; +pub const ERROR_MCA_INVALID_CAPABILITIES_STRING: u32 = 15200; +pub const ERROR_MCA_INVALID_VCP_VERSION: u32 = 15201; +pub const ERROR_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION: u32 = 15202; +pub const ERROR_MCA_MCCS_VERSION_MISMATCH: u32 = 15203; +pub const ERROR_MCA_UNSUPPORTED_MCCS_VERSION: u32 = 15204; +pub const ERROR_MCA_INTERNAL_ERROR: u32 = 15205; +pub const ERROR_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED: u32 = 15206; +pub const ERROR_MCA_UNSUPPORTED_COLOR_TEMPERATURE: u32 = 15207; +pub const ERROR_AMBIGUOUS_SYSTEM_DEVICE: u32 = 15250; +pub const ERROR_SYSTEM_DEVICE_NOT_FOUND: u32 = 15299; +pub const ERROR_HASH_NOT_SUPPORTED: u32 = 15300; +pub const ERROR_HASH_NOT_PRESENT: u32 = 15301; +pub const ERROR_SECONDARY_IC_PROVIDER_NOT_REGISTERED: u32 = 15321; +pub const ERROR_GPIO_CLIENT_INFORMATION_INVALID: u32 = 15322; +pub const ERROR_GPIO_VERSION_NOT_SUPPORTED: u32 = 15323; +pub const ERROR_GPIO_INVALID_REGISTRATION_PACKET: u32 = 15324; +pub const ERROR_GPIO_OPERATION_DENIED: u32 = 15325; +pub const ERROR_GPIO_INCOMPATIBLE_CONNECT_MODE: u32 = 15326; +pub const ERROR_GPIO_INTERRUPT_ALREADY_UNMASKED: u32 = 15327; +pub const ERROR_CANNOT_SWITCH_RUNLEVEL: u32 = 15400; +pub const ERROR_INVALID_RUNLEVEL_SETTING: u32 = 15401; +pub const ERROR_RUNLEVEL_SWITCH_TIMEOUT: u32 = 15402; +pub const ERROR_RUNLEVEL_SWITCH_AGENT_TIMEOUT: u32 = 15403; +pub const ERROR_RUNLEVEL_SWITCH_IN_PROGRESS: u32 = 15404; +pub const ERROR_SERVICES_FAILED_AUTOSTART: u32 = 15405; +pub const ERROR_COM_TASK_STOP_PENDING: u32 = 15501; +pub const ERROR_INSTALL_OPEN_PACKAGE_FAILED: u32 = 15600; +pub const ERROR_INSTALL_PACKAGE_NOT_FOUND: u32 = 15601; +pub const ERROR_INSTALL_INVALID_PACKAGE: u32 = 15602; +pub const ERROR_INSTALL_RESOLVE_DEPENDENCY_FAILED: u32 = 15603; +pub const ERROR_INSTALL_OUT_OF_DISK_SPACE: u32 = 15604; +pub const ERROR_INSTALL_NETWORK_FAILURE: u32 = 15605; +pub const ERROR_INSTALL_REGISTRATION_FAILURE: u32 = 15606; +pub const ERROR_INSTALL_DEREGISTRATION_FAILURE: u32 = 15607; +pub const ERROR_INSTALL_CANCEL: u32 = 15608; +pub const ERROR_INSTALL_FAILED: u32 = 15609; +pub const ERROR_REMOVE_FAILED: u32 = 15610; +pub const ERROR_PACKAGE_ALREADY_EXISTS: u32 = 15611; +pub const ERROR_NEEDS_REMEDIATION: u32 = 15612; +pub const ERROR_INSTALL_PREREQUISITE_FAILED: u32 = 15613; +pub const ERROR_PACKAGE_REPOSITORY_CORRUPTED: u32 = 15614; +pub const ERROR_INSTALL_POLICY_FAILURE: u32 = 15615; +pub const ERROR_PACKAGE_UPDATING: u32 = 15616; +pub const ERROR_DEPLOYMENT_BLOCKED_BY_POLICY: u32 = 15617; +pub const ERROR_PACKAGES_IN_USE: u32 = 15618; +pub const ERROR_RECOVERY_FILE_CORRUPT: u32 = 15619; +pub const ERROR_INVALID_STAGED_SIGNATURE: u32 = 15620; +pub const ERROR_DELETING_EXISTING_APPLICATIONDATA_STORE_FAILED: u32 = 15621; +pub const ERROR_INSTALL_PACKAGE_DOWNGRADE: u32 = 15622; +pub const ERROR_SYSTEM_NEEDS_REMEDIATION: u32 = 15623; +pub const ERROR_APPX_INTEGRITY_FAILURE_CLR_NGEN: u32 = 15624; +pub const ERROR_RESILIENCY_FILE_CORRUPT: u32 = 15625; +pub const ERROR_INSTALL_FIREWALL_SERVICE_NOT_RUNNING: u32 = 15626; +pub const ERROR_PACKAGE_MOVE_FAILED: u32 = 15627; +pub const ERROR_INSTALL_VOLUME_NOT_EMPTY: u32 = 15628; +pub const ERROR_INSTALL_VOLUME_OFFLINE: u32 = 15629; +pub const ERROR_INSTALL_VOLUME_CORRUPT: u32 = 15630; +pub const ERROR_NEEDS_REGISTRATION: u32 = 15631; +pub const ERROR_INSTALL_WRONG_PROCESSOR_ARCHITECTURE: u32 = 15632; +pub const ERROR_DEV_SIDELOAD_LIMIT_EXCEEDED: u32 = 15633; +pub const ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE: u32 = 15634; +pub const ERROR_PACKAGE_NOT_SUPPORTED_ON_FILESYSTEM: u32 = 15635; +pub const ERROR_PACKAGE_MOVE_BLOCKED_BY_STREAMING: u32 = 15636; +pub const ERROR_INSTALL_OPTIONAL_PACKAGE_APPLICATIONID_NOT_UNIQUE: u32 = 15637; +pub const ERROR_PACKAGE_STAGING_ONHOLD: u32 = 15638; +pub const ERROR_INSTALL_INVALID_RELATED_SET_UPDATE: u32 = 15639; +pub const ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY: u32 = 15640; +pub const ERROR_DEPLOYMENT_BLOCKED_BY_USER_LOG_OFF: u32 = 15641; +pub const ERROR_PROVISION_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_PROVISIONED: u32 = 15642; +pub const ERROR_PACKAGES_REPUTATION_CHECK_FAILED: u32 = 15643; +pub const ERROR_PACKAGES_REPUTATION_CHECK_TIMEDOUT: u32 = 15644; +pub const ERROR_DEPLOYMENT_OPTION_NOT_SUPPORTED: u32 = 15645; +pub const ERROR_APPINSTALLER_ACTIVATION_BLOCKED: u32 = 15646; +pub const ERROR_REGISTRATION_FROM_REMOTE_DRIVE_NOT_SUPPORTED: u32 = 15647; +pub const ERROR_APPX_RAW_DATA_WRITE_FAILED: u32 = 15648; +pub const ERROR_DEPLOYMENT_BLOCKED_BY_VOLUME_POLICY_PACKAGE: u32 = 15649; +pub const ERROR_DEPLOYMENT_BLOCKED_BY_VOLUME_POLICY_MACHINE: u32 = 15650; +pub const ERROR_DEPLOYMENT_BLOCKED_BY_PROFILE_POLICY: u32 = 15651; +pub const ERROR_DEPLOYMENT_FAILED_CONFLICTING_MUTABLE_PACKAGE_DIRECTORY: u32 = 15652; +pub const ERROR_SINGLETON_RESOURCE_INSTALLED_IN_ACTIVE_USER: u32 = 15653; +pub const ERROR_DIFFERENT_VERSION_OF_PACKAGED_SERVICE_INSTALLED: u32 = 15654; +pub const ERROR_SERVICE_EXISTS_AS_NON_PACKAGED_SERVICE: u32 = 15655; +pub const ERROR_PACKAGED_SERVICE_REQUIRES_ADMIN_PRIVILEGES: u32 = 15656; +pub const ERROR_REDIRECTION_TO_DEFAULT_ACCOUNT_NOT_ALLOWED: u32 = 15657; +pub const ERROR_PACKAGE_LACKS_CAPABILITY_TO_DEPLOY_ON_HOST: u32 = 15658; +pub const ERROR_UNSIGNED_PACKAGE_INVALID_CONTENT: u32 = 15659; +pub const ERROR_UNSIGNED_PACKAGE_INVALID_PUBLISHER_NAMESPACE: u32 = 15660; +pub const ERROR_SIGNED_PACKAGE_INVALID_PUBLISHER_NAMESPACE: u32 = 15661; +pub const ERROR_PACKAGE_EXTERNAL_LOCATION_NOT_ALLOWED: u32 = 15662; +pub const ERROR_INSTALL_FULLTRUST_HOSTRUNTIME_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY: u32 = + 15663; +pub const ERROR_PACKAGE_LACKS_CAPABILITY_FOR_MANDATORY_STARTUPTASKS: u32 = 15664; +pub const ERROR_INSTALL_RESOLVE_HOSTRUNTIME_DEPENDENCY_FAILED: u32 = 15665; +pub const ERROR_MACHINE_SCOPE_NOT_ALLOWED: u32 = 15666; +pub const ERROR_CLASSIC_COMPAT_MODE_NOT_ALLOWED: u32 = 15667; +pub const ERROR_STAGEFROMUPDATEAGENT_PACKAGE_NOT_APPLICABLE: u32 = 15668; +pub const ERROR_PACKAGE_NOT_REGISTERED_FOR_USER: u32 = 15669; +pub const ERROR_PACKAGE_NAME_MISMATCH: u32 = 15670; +pub const ERROR_APPINSTALLER_URI_IN_USE: u32 = 15671; +pub const ERROR_APPINSTALLER_IS_MANAGED_BY_SYSTEM: u32 = 15672; +pub const APPMODEL_ERROR_NO_PACKAGE: u32 = 15700; +pub const APPMODEL_ERROR_PACKAGE_RUNTIME_CORRUPT: u32 = 15701; +pub const APPMODEL_ERROR_PACKAGE_IDENTITY_CORRUPT: u32 = 15702; +pub const APPMODEL_ERROR_NO_APPLICATION: u32 = 15703; +pub const APPMODEL_ERROR_DYNAMIC_PROPERTY_READ_FAILED: u32 = 15704; +pub const APPMODEL_ERROR_DYNAMIC_PROPERTY_INVALID: u32 = 15705; +pub const APPMODEL_ERROR_PACKAGE_NOT_AVAILABLE: u32 = 15706; +pub const APPMODEL_ERROR_NO_MUTABLE_DIRECTORY: u32 = 15707; +pub const ERROR_STATE_LOAD_STORE_FAILED: u32 = 15800; +pub const ERROR_STATE_GET_VERSION_FAILED: u32 = 15801; +pub const ERROR_STATE_SET_VERSION_FAILED: u32 = 15802; +pub const ERROR_STATE_STRUCTURED_RESET_FAILED: u32 = 15803; +pub const ERROR_STATE_OPEN_CONTAINER_FAILED: u32 = 15804; +pub const ERROR_STATE_CREATE_CONTAINER_FAILED: u32 = 15805; +pub const ERROR_STATE_DELETE_CONTAINER_FAILED: u32 = 15806; +pub const ERROR_STATE_READ_SETTING_FAILED: u32 = 15807; +pub const ERROR_STATE_WRITE_SETTING_FAILED: u32 = 15808; +pub const ERROR_STATE_DELETE_SETTING_FAILED: u32 = 15809; +pub const ERROR_STATE_QUERY_SETTING_FAILED: u32 = 15810; +pub const ERROR_STATE_READ_COMPOSITE_SETTING_FAILED: u32 = 15811; +pub const ERROR_STATE_WRITE_COMPOSITE_SETTING_FAILED: u32 = 15812; +pub const ERROR_STATE_ENUMERATE_CONTAINER_FAILED: u32 = 15813; +pub const ERROR_STATE_ENUMERATE_SETTINGS_FAILED: u32 = 15814; +pub const ERROR_STATE_COMPOSITE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED: u32 = 15815; +pub const ERROR_STATE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED: u32 = 15816; +pub const ERROR_STATE_SETTING_NAME_SIZE_LIMIT_EXCEEDED: u32 = 15817; +pub const ERROR_STATE_CONTAINER_NAME_SIZE_LIMIT_EXCEEDED: u32 = 15818; +pub const ERROR_API_UNAVAILABLE: u32 = 15841; +pub const STORE_ERROR_UNLICENSED: u32 = 15861; +pub const STORE_ERROR_UNLICENSED_USER: u32 = 15862; +pub const STORE_ERROR_PENDING_COM_TRANSACTION: u32 = 15863; +pub const STORE_ERROR_LICENSE_REVOKED: u32 = 15864; +pub const SEVERITY_SUCCESS: u32 = 0; +pub const SEVERITY_ERROR: u32 = 1; +pub const FACILITY_NT_BIT: u32 = 268435456; +pub const NOERROR: u32 = 0; +pub const DRAGDROP_E_FIRST: u32 = 2147746048; +pub const DRAGDROP_E_LAST: u32 = 2147746063; +pub const DRAGDROP_S_FIRST: u32 = 262400; +pub const DRAGDROP_S_LAST: u32 = 262415; +pub const CLASSFACTORY_E_FIRST: u32 = 2147746064; +pub const CLASSFACTORY_E_LAST: u32 = 2147746079; +pub const CLASSFACTORY_S_FIRST: u32 = 262416; +pub const CLASSFACTORY_S_LAST: u32 = 262431; +pub const MARSHAL_E_FIRST: u32 = 2147746080; +pub const MARSHAL_E_LAST: u32 = 2147746095; +pub const MARSHAL_S_FIRST: u32 = 262432; +pub const MARSHAL_S_LAST: u32 = 262447; +pub const DATA_E_FIRST: u32 = 2147746096; +pub const DATA_E_LAST: u32 = 2147746111; +pub const DATA_S_FIRST: u32 = 262448; +pub const DATA_S_LAST: u32 = 262463; +pub const VIEW_E_FIRST: u32 = 2147746112; +pub const VIEW_E_LAST: u32 = 2147746127; +pub const VIEW_S_FIRST: u32 = 262464; +pub const VIEW_S_LAST: u32 = 262479; +pub const REGDB_E_FIRST: u32 = 2147746128; +pub const REGDB_E_LAST: u32 = 2147746143; +pub const REGDB_S_FIRST: u32 = 262480; +pub const REGDB_S_LAST: u32 = 262495; +pub const CAT_E_FIRST: u32 = 2147746144; +pub const CAT_E_LAST: u32 = 2147746145; +pub const CS_E_FIRST: u32 = 2147746148; +pub const CS_E_LAST: u32 = 2147746159; +pub const CACHE_E_FIRST: u32 = 2147746160; +pub const CACHE_E_LAST: u32 = 2147746175; +pub const CACHE_S_FIRST: u32 = 262512; +pub const CACHE_S_LAST: u32 = 262527; +pub const OLEOBJ_E_FIRST: u32 = 2147746176; +pub const OLEOBJ_E_LAST: u32 = 2147746191; +pub const OLEOBJ_S_FIRST: u32 = 262528; +pub const OLEOBJ_S_LAST: u32 = 262543; +pub const CLIENTSITE_E_FIRST: u32 = 2147746192; +pub const CLIENTSITE_E_LAST: u32 = 2147746207; +pub const CLIENTSITE_S_FIRST: u32 = 262544; +pub const CLIENTSITE_S_LAST: u32 = 262559; +pub const INPLACE_E_FIRST: u32 = 2147746208; +pub const INPLACE_E_LAST: u32 = 2147746223; +pub const INPLACE_S_FIRST: u32 = 262560; +pub const INPLACE_S_LAST: u32 = 262575; +pub const ENUM_E_FIRST: u32 = 2147746224; +pub const ENUM_E_LAST: u32 = 2147746239; +pub const ENUM_S_FIRST: u32 = 262576; +pub const ENUM_S_LAST: u32 = 262591; +pub const CONVERT10_E_FIRST: u32 = 2147746240; +pub const CONVERT10_E_LAST: u32 = 2147746255; +pub const CONVERT10_S_FIRST: u32 = 262592; +pub const CONVERT10_S_LAST: u32 = 262607; +pub const CLIPBRD_E_FIRST: u32 = 2147746256; +pub const CLIPBRD_E_LAST: u32 = 2147746271; +pub const CLIPBRD_S_FIRST: u32 = 262608; +pub const CLIPBRD_S_LAST: u32 = 262623; +pub const MK_E_FIRST: u32 = 2147746272; +pub const MK_E_LAST: u32 = 2147746287; +pub const MK_S_FIRST: u32 = 262624; +pub const MK_S_LAST: u32 = 262639; +pub const CO_E_FIRST: u32 = 2147746288; +pub const CO_E_LAST: u32 = 2147746303; +pub const CO_S_FIRST: u32 = 262640; +pub const CO_S_LAST: u32 = 262655; +pub const EVENT_E_FIRST: u32 = 2147746304; +pub const EVENT_E_LAST: u32 = 2147746335; +pub const EVENT_S_FIRST: u32 = 262656; +pub const EVENT_S_LAST: u32 = 262687; +pub const XACT_E_FIRST: u32 = 2147799040; +pub const XACT_E_LAST: u32 = 2147799083; +pub const XACT_S_FIRST: u32 = 315392; +pub const XACT_S_LAST: u32 = 315408; +pub const CONTEXT_E_FIRST: u32 = 2147803136; +pub const CONTEXT_E_LAST: u32 = 2147803183; +pub const CONTEXT_S_FIRST: u32 = 319488; +pub const CONTEXT_S_LAST: u32 = 319535; +pub const NTE_OP_OK: u32 = 0; +pub const SCARD_S_SUCCESS: u32 = 0; +pub const TC_NORMAL: u32 = 0; +pub const TC_HARDERR: u32 = 1; +pub const TC_GP_TRAP: u32 = 2; +pub const TC_SIGNAL: u32 = 3; +pub const AC_LINE_OFFLINE: u32 = 0; +pub const AC_LINE_ONLINE: u32 = 1; +pub const AC_LINE_BACKUP_POWER: u32 = 2; +pub const AC_LINE_UNKNOWN: u32 = 255; +pub const BATTERY_FLAG_HIGH: u32 = 1; +pub const BATTERY_FLAG_LOW: u32 = 2; +pub const BATTERY_FLAG_CRITICAL: u32 = 4; +pub const BATTERY_FLAG_CHARGING: u32 = 8; +pub const BATTERY_FLAG_NO_BATTERY: u32 = 128; +pub const BATTERY_FLAG_UNKNOWN: u32 = 255; +pub const BATTERY_PERCENTAGE_UNKNOWN: u32 = 255; +pub const SYSTEM_STATUS_FLAG_POWER_SAVING_ON: u32 = 1; +pub const BATTERY_LIFE_UNKNOWN: u32 = 4294967295; +pub const ACTCTX_FLAG_PROCESSOR_ARCHITECTURE_VALID: u32 = 1; +pub const ACTCTX_FLAG_LANGID_VALID: u32 = 2; +pub const ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID: u32 = 4; +pub const ACTCTX_FLAG_RESOURCE_NAME_VALID: u32 = 8; +pub const ACTCTX_FLAG_SET_PROCESS_DEFAULT: u32 = 16; +pub const ACTCTX_FLAG_APPLICATION_NAME_VALID: u32 = 32; +pub const ACTCTX_FLAG_SOURCE_IS_ASSEMBLYREF: u32 = 64; +pub const ACTCTX_FLAG_HMODULE_VALID: u32 = 128; +pub const DEACTIVATE_ACTCTX_FLAG_FORCE_EARLY_DEACTIVATION: u32 = 1; +pub const FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX: u32 = 1; +pub const FIND_ACTCTX_SECTION_KEY_RETURN_FLAGS: u32 = 2; +pub const FIND_ACTCTX_SECTION_KEY_RETURN_ASSEMBLY_METADATA: u32 = 4; +pub const ACTIVATION_CONTEXT_BASIC_INFORMATION_DEFINED: u32 = 1; +pub const QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX: u32 = 4; +pub const QUERY_ACTCTX_FLAG_ACTCTX_IS_HMODULE: u32 = 8; +pub const QUERY_ACTCTX_FLAG_ACTCTX_IS_ADDRESS: u32 = 16; +pub const QUERY_ACTCTX_FLAG_NO_ADDREF: u32 = 2147483648; +pub const RESTART_MAX_CMD_LINE: u32 = 1024; +pub const RESTART_NO_CRASH: u32 = 1; +pub const RESTART_NO_HANG: u32 = 2; +pub const RESTART_NO_PATCH: u32 = 4; +pub const RESTART_NO_REBOOT: u32 = 8; +pub const RECOVERY_DEFAULT_PING_INTERVAL: u32 = 5000; +pub const RECOVERY_MAX_PING_INTERVAL: u32 = 300000; +pub const FILE_RENAME_FLAG_REPLACE_IF_EXISTS: u32 = 1; +pub const FILE_RENAME_FLAG_POSIX_SEMANTICS: u32 = 2; +pub const FILE_RENAME_FLAG_SUPPRESS_PIN_STATE_INHERITANCE: u32 = 4; +pub const FILE_DISPOSITION_FLAG_DO_NOT_DELETE: u32 = 0; +pub const FILE_DISPOSITION_FLAG_DELETE: u32 = 1; +pub const FILE_DISPOSITION_FLAG_POSIX_SEMANTICS: u32 = 2; +pub const FILE_DISPOSITION_FLAG_FORCE_IMAGE_SECTION_CHECK: u32 = 4; +pub const FILE_DISPOSITION_FLAG_ON_CLOSE: u32 = 8; +pub const FILE_DISPOSITION_FLAG_IGNORE_READONLY_ATTRIBUTE: u32 = 16; +pub const STORAGE_INFO_FLAGS_ALIGNED_DEVICE: u32 = 1; +pub const STORAGE_INFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE: u32 = 2; +pub const STORAGE_INFO_OFFSET_UNKNOWN: u32 = 4294967295; +pub const REMOTE_PROTOCOL_INFO_FLAG_LOOPBACK: u32 = 1; +pub const REMOTE_PROTOCOL_INFO_FLAG_OFFLINE: u32 = 2; +pub const REMOTE_PROTOCOL_INFO_FLAG_PERSISTENT_HANDLE: u32 = 4; +pub const RPI_FLAG_SMB2_SHARECAP_TIMEWARP: u32 = 2; +pub const RPI_FLAG_SMB2_SHARECAP_DFS: u32 = 8; +pub const RPI_FLAG_SMB2_SHARECAP_CONTINUOUS_AVAILABILITY: u32 = 16; +pub const RPI_FLAG_SMB2_SHARECAP_SCALEOUT: u32 = 32; +pub const RPI_FLAG_SMB2_SHARECAP_CLUSTER: u32 = 64; +pub const RPI_SMB2_SHAREFLAG_ENCRYPT_DATA: u32 = 1; +pub const RPI_SMB2_SHAREFLAG_COMPRESS_DATA: u32 = 2; +pub const RPI_SMB2_FLAG_SERVERCAP_DFS: u32 = 1; +pub const RPI_SMB2_FLAG_SERVERCAP_LEASING: u32 = 2; +pub const RPI_SMB2_FLAG_SERVERCAP_LARGEMTU: u32 = 4; +pub const RPI_SMB2_FLAG_SERVERCAP_MULTICHANNEL: u32 = 8; +pub const RPI_SMB2_FLAG_SERVERCAP_PERSISTENT_HANDLES: u32 = 16; +pub const RPI_SMB2_FLAG_SERVERCAP_DIRECTORY_LEASING: u32 = 32; +pub const SYMBOLIC_LINK_FLAG_DIRECTORY: u32 = 1; +pub const SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE: u32 = 2; +pub const MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS: u32 = 1; +pub const MICROSOFT_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS: u32 = 0; +pub const R2_BLACK: u32 = 1; +pub const R2_NOTMERGEPEN: u32 = 2; +pub const R2_MASKNOTPEN: u32 = 3; +pub const R2_NOTCOPYPEN: u32 = 4; +pub const R2_MASKPENNOT: u32 = 5; +pub const R2_NOT: u32 = 6; +pub const R2_XORPEN: u32 = 7; +pub const R2_NOTMASKPEN: u32 = 8; +pub const R2_MASKPEN: u32 = 9; +pub const R2_NOTXORPEN: u32 = 10; +pub const R2_NOP: u32 = 11; +pub const R2_MERGENOTPEN: u32 = 12; +pub const R2_COPYPEN: u32 = 13; +pub const R2_MERGEPENNOT: u32 = 14; +pub const R2_MERGEPEN: u32 = 15; +pub const R2_WHITE: u32 = 16; +pub const R2_LAST: u32 = 16; +pub const GDI_ERROR: u32 = 4294967295; +pub const ERROR: u32 = 0; +pub const NULLREGION: u32 = 1; +pub const SIMPLEREGION: u32 = 2; +pub const COMPLEXREGION: u32 = 3; +pub const RGN_ERROR: u32 = 0; +pub const RGN_AND: u32 = 1; +pub const RGN_OR: u32 = 2; +pub const RGN_XOR: u32 = 3; +pub const RGN_DIFF: u32 = 4; +pub const RGN_COPY: u32 = 5; +pub const RGN_MIN: u32 = 1; +pub const RGN_MAX: u32 = 5; +pub const BLACKONWHITE: u32 = 1; +pub const WHITEONBLACK: u32 = 2; +pub const COLORONCOLOR: u32 = 3; +pub const HALFTONE: u32 = 4; +pub const MAXSTRETCHBLTMODE: u32 = 4; +pub const STRETCH_ANDSCANS: u32 = 1; +pub const STRETCH_ORSCANS: u32 = 2; +pub const STRETCH_DELETESCANS: u32 = 3; +pub const STRETCH_HALFTONE: u32 = 4; +pub const ALTERNATE: u32 = 1; +pub const WINDING: u32 = 2; +pub const POLYFILL_LAST: u32 = 2; +pub const LAYOUT_RTL: u32 = 1; +pub const LAYOUT_BTT: u32 = 2; +pub const LAYOUT_VBH: u32 = 4; +pub const LAYOUT_ORIENTATIONMASK: u32 = 7; +pub const LAYOUT_BITMAPORIENTATIONPRESERVED: u32 = 8; +pub const TA_NOUPDATECP: u32 = 0; +pub const TA_UPDATECP: u32 = 1; +pub const TA_LEFT: u32 = 0; +pub const TA_RIGHT: u32 = 2; +pub const TA_CENTER: u32 = 6; +pub const TA_TOP: u32 = 0; +pub const TA_BOTTOM: u32 = 8; +pub const TA_BASELINE: u32 = 24; +pub const TA_RTLREADING: u32 = 256; +pub const TA_MASK: u32 = 287; +pub const VTA_BASELINE: u32 = 24; +pub const VTA_LEFT: u32 = 8; +pub const VTA_RIGHT: u32 = 0; +pub const VTA_CENTER: u32 = 6; +pub const VTA_BOTTOM: u32 = 2; +pub const VTA_TOP: u32 = 0; +pub const ETO_OPAQUE: u32 = 2; +pub const ETO_CLIPPED: u32 = 4; +pub const ETO_GLYPH_INDEX: u32 = 16; +pub const ETO_RTLREADING: u32 = 128; +pub const ETO_NUMERICSLOCAL: u32 = 1024; +pub const ETO_NUMERICSLATIN: u32 = 2048; +pub const ETO_IGNORELANGUAGE: u32 = 4096; +pub const ETO_PDY: u32 = 8192; +pub const ETO_REVERSE_INDEX_MAP: u32 = 65536; +pub const ASPECT_FILTERING: u32 = 1; +pub const DCB_RESET: u32 = 1; +pub const DCB_ACCUMULATE: u32 = 2; +pub const DCB_DIRTY: u32 = 2; +pub const DCB_SET: u32 = 3; +pub const DCB_ENABLE: u32 = 4; +pub const DCB_DISABLE: u32 = 8; +pub const META_SETBKCOLOR: u32 = 513; +pub const META_SETBKMODE: u32 = 258; +pub const META_SETMAPMODE: u32 = 259; +pub const META_SETROP2: u32 = 260; +pub const META_SETRELABS: u32 = 261; +pub const META_SETPOLYFILLMODE: u32 = 262; +pub const META_SETSTRETCHBLTMODE: u32 = 263; +pub const META_SETTEXTCHAREXTRA: u32 = 264; +pub const META_SETTEXTCOLOR: u32 = 521; +pub const META_SETTEXTJUSTIFICATION: u32 = 522; +pub const META_SETWINDOWORG: u32 = 523; +pub const META_SETWINDOWEXT: u32 = 524; +pub const META_SETVIEWPORTORG: u32 = 525; +pub const META_SETVIEWPORTEXT: u32 = 526; +pub const META_OFFSETWINDOWORG: u32 = 527; +pub const META_SCALEWINDOWEXT: u32 = 1040; +pub const META_OFFSETVIEWPORTORG: u32 = 529; +pub const META_SCALEVIEWPORTEXT: u32 = 1042; +pub const META_LINETO: u32 = 531; +pub const META_MOVETO: u32 = 532; +pub const META_EXCLUDECLIPRECT: u32 = 1045; +pub const META_INTERSECTCLIPRECT: u32 = 1046; +pub const META_ARC: u32 = 2071; +pub const META_ELLIPSE: u32 = 1048; +pub const META_FLOODFILL: u32 = 1049; +pub const META_PIE: u32 = 2074; +pub const META_RECTANGLE: u32 = 1051; +pub const META_ROUNDRECT: u32 = 1564; +pub const META_PATBLT: u32 = 1565; +pub const META_SAVEDC: u32 = 30; +pub const META_SETPIXEL: u32 = 1055; +pub const META_OFFSETCLIPRGN: u32 = 544; +pub const META_TEXTOUT: u32 = 1313; +pub const META_BITBLT: u32 = 2338; +pub const META_STRETCHBLT: u32 = 2851; +pub const META_POLYGON: u32 = 804; +pub const META_POLYLINE: u32 = 805; +pub const META_ESCAPE: u32 = 1574; +pub const META_RESTOREDC: u32 = 295; +pub const META_FILLREGION: u32 = 552; +pub const META_FRAMEREGION: u32 = 1065; +pub const META_INVERTREGION: u32 = 298; +pub const META_PAINTREGION: u32 = 299; +pub const META_SELECTCLIPREGION: u32 = 300; +pub const META_SELECTOBJECT: u32 = 301; +pub const META_SETTEXTALIGN: u32 = 302; +pub const META_CHORD: u32 = 2096; +pub const META_SETMAPPERFLAGS: u32 = 561; +pub const META_EXTTEXTOUT: u32 = 2610; +pub const META_SETDIBTODEV: u32 = 3379; +pub const META_SELECTPALETTE: u32 = 564; +pub const META_REALIZEPALETTE: u32 = 53; +pub const META_ANIMATEPALETTE: u32 = 1078; +pub const META_SETPALENTRIES: u32 = 55; +pub const META_POLYPOLYGON: u32 = 1336; +pub const META_RESIZEPALETTE: u32 = 313; +pub const META_DIBBITBLT: u32 = 2368; +pub const META_DIBSTRETCHBLT: u32 = 2881; +pub const META_DIBCREATEPATTERNBRUSH: u32 = 322; +pub const META_STRETCHDIB: u32 = 3907; +pub const META_EXTFLOODFILL: u32 = 1352; +pub const META_SETLAYOUT: u32 = 329; +pub const META_DELETEOBJECT: u32 = 496; +pub const META_CREATEPALETTE: u32 = 247; +pub const META_CREATEPATTERNBRUSH: u32 = 505; +pub const META_CREATEPENINDIRECT: u32 = 762; +pub const META_CREATEFONTINDIRECT: u32 = 763; +pub const META_CREATEBRUSHINDIRECT: u32 = 764; +pub const META_CREATEREGION: u32 = 1791; +pub const NEWFRAME: u32 = 1; +pub const ABORTDOC: u32 = 2; +pub const NEXTBAND: u32 = 3; +pub const SETCOLORTABLE: u32 = 4; +pub const GETCOLORTABLE: u32 = 5; +pub const FLUSHOUTPUT: u32 = 6; +pub const DRAFTMODE: u32 = 7; +pub const QUERYESCSUPPORT: u32 = 8; +pub const SETABORTPROC: u32 = 9; +pub const STARTDOC: u32 = 10; +pub const ENDDOC: u32 = 11; +pub const GETPHYSPAGESIZE: u32 = 12; +pub const GETPRINTINGOFFSET: u32 = 13; +pub const GETSCALINGFACTOR: u32 = 14; +pub const MFCOMMENT: u32 = 15; +pub const GETPENWIDTH: u32 = 16; +pub const SETCOPYCOUNT: u32 = 17; +pub const SELECTPAPERSOURCE: u32 = 18; +pub const DEVICEDATA: u32 = 19; +pub const PASSTHROUGH: u32 = 19; +pub const GETTECHNOLGY: u32 = 20; +pub const GETTECHNOLOGY: u32 = 20; +pub const SETLINECAP: u32 = 21; +pub const SETLINEJOIN: u32 = 22; +pub const SETMITERLIMIT: u32 = 23; +pub const BANDINFO: u32 = 24; +pub const DRAWPATTERNRECT: u32 = 25; +pub const GETVECTORPENSIZE: u32 = 26; +pub const GETVECTORBRUSHSIZE: u32 = 27; +pub const ENABLEDUPLEX: u32 = 28; +pub const GETSETPAPERBINS: u32 = 29; +pub const GETSETPRINTORIENT: u32 = 30; +pub const ENUMPAPERBINS: u32 = 31; +pub const SETDIBSCALING: u32 = 32; +pub const EPSPRINTING: u32 = 33; +pub const ENUMPAPERMETRICS: u32 = 34; +pub const GETSETPAPERMETRICS: u32 = 35; +pub const POSTSCRIPT_DATA: u32 = 37; +pub const POSTSCRIPT_IGNORE: u32 = 38; +pub const MOUSETRAILS: u32 = 39; +pub const GETDEVICEUNITS: u32 = 42; +pub const GETEXTENDEDTEXTMETRICS: u32 = 256; +pub const GETEXTENTTABLE: u32 = 257; +pub const GETPAIRKERNTABLE: u32 = 258; +pub const GETTRACKKERNTABLE: u32 = 259; +pub const EXTTEXTOUT: u32 = 512; +pub const GETFACENAME: u32 = 513; +pub const DOWNLOADFACE: u32 = 514; +pub const ENABLERELATIVEWIDTHS: u32 = 768; +pub const ENABLEPAIRKERNING: u32 = 769; +pub const SETKERNTRACK: u32 = 770; +pub const SETALLJUSTVALUES: u32 = 771; +pub const SETCHARSET: u32 = 772; +pub const STRETCHBLT: u32 = 2048; +pub const METAFILE_DRIVER: u32 = 2049; +pub const GETSETSCREENPARAMS: u32 = 3072; +pub const QUERYDIBSUPPORT: u32 = 3073; +pub const BEGIN_PATH: u32 = 4096; +pub const CLIP_TO_PATH: u32 = 4097; +pub const END_PATH: u32 = 4098; +pub const EXT_DEVICE_CAPS: u32 = 4099; +pub const RESTORE_CTM: u32 = 4100; +pub const SAVE_CTM: u32 = 4101; +pub const SET_ARC_DIRECTION: u32 = 4102; +pub const SET_BACKGROUND_COLOR: u32 = 4103; +pub const SET_POLY_MODE: u32 = 4104; +pub const SET_SCREEN_ANGLE: u32 = 4105; +pub const SET_SPREAD: u32 = 4106; +pub const TRANSFORM_CTM: u32 = 4107; +pub const SET_CLIP_BOX: u32 = 4108; +pub const SET_BOUNDS: u32 = 4109; +pub const SET_MIRROR_MODE: u32 = 4110; +pub const OPENCHANNEL: u32 = 4110; +pub const DOWNLOADHEADER: u32 = 4111; +pub const CLOSECHANNEL: u32 = 4112; +pub const POSTSCRIPT_PASSTHROUGH: u32 = 4115; +pub const ENCAPSULATED_POSTSCRIPT: u32 = 4116; +pub const POSTSCRIPT_IDENTIFY: u32 = 4117; +pub const POSTSCRIPT_INJECTION: u32 = 4118; +pub const CHECKJPEGFORMAT: u32 = 4119; +pub const CHECKPNGFORMAT: u32 = 4120; +pub const GET_PS_FEATURESETTING: u32 = 4121; +pub const GDIPLUS_TS_QUERYVER: u32 = 4122; +pub const GDIPLUS_TS_RECORD: u32 = 4123; +pub const MILCORE_TS_QUERYVER_RESULT_FALSE: u32 = 0; +pub const MILCORE_TS_QUERYVER_RESULT_TRUE: u32 = 2147483647; +pub const SPCLPASSTHROUGH2: u32 = 4568; +pub const PSIDENT_GDICENTRIC: u32 = 0; +pub const PSIDENT_PSCENTRIC: u32 = 1; +pub const PSINJECT_BEGINSTREAM: u32 = 1; +pub const PSINJECT_PSADOBE: u32 = 2; +pub const PSINJECT_PAGESATEND: u32 = 3; +pub const PSINJECT_PAGES: u32 = 4; +pub const PSINJECT_DOCNEEDEDRES: u32 = 5; +pub const PSINJECT_DOCSUPPLIEDRES: u32 = 6; +pub const PSINJECT_PAGEORDER: u32 = 7; +pub const PSINJECT_ORIENTATION: u32 = 8; +pub const PSINJECT_BOUNDINGBOX: u32 = 9; +pub const PSINJECT_DOCUMENTPROCESSCOLORS: u32 = 10; +pub const PSINJECT_COMMENTS: u32 = 11; +pub const PSINJECT_BEGINDEFAULTS: u32 = 12; +pub const PSINJECT_ENDDEFAULTS: u32 = 13; +pub const PSINJECT_BEGINPROLOG: u32 = 14; +pub const PSINJECT_ENDPROLOG: u32 = 15; +pub const PSINJECT_BEGINSETUP: u32 = 16; +pub const PSINJECT_ENDSETUP: u32 = 17; +pub const PSINJECT_TRAILER: u32 = 18; +pub const PSINJECT_EOF: u32 = 19; +pub const PSINJECT_ENDSTREAM: u32 = 20; +pub const PSINJECT_DOCUMENTPROCESSCOLORSATEND: u32 = 21; +pub const PSINJECT_PAGENUMBER: u32 = 100; +pub const PSINJECT_BEGINPAGESETUP: u32 = 101; +pub const PSINJECT_ENDPAGESETUP: u32 = 102; +pub const PSINJECT_PAGETRAILER: u32 = 103; +pub const PSINJECT_PLATECOLOR: u32 = 104; +pub const PSINJECT_SHOWPAGE: u32 = 105; +pub const PSINJECT_PAGEBBOX: u32 = 106; +pub const PSINJECT_ENDPAGECOMMENTS: u32 = 107; +pub const PSINJECT_VMSAVE: u32 = 200; +pub const PSINJECT_VMRESTORE: u32 = 201; +pub const PSINJECT_DLFONT: u32 = 3722304989; +pub const FEATURESETTING_NUP: u32 = 0; +pub const FEATURESETTING_OUTPUT: u32 = 1; +pub const FEATURESETTING_PSLEVEL: u32 = 2; +pub const FEATURESETTING_CUSTPAPER: u32 = 3; +pub const FEATURESETTING_MIRROR: u32 = 4; +pub const FEATURESETTING_NEGATIVE: u32 = 5; +pub const FEATURESETTING_PROTOCOL: u32 = 6; +pub const FEATURESETTING_PRIVATE_BEGIN: u32 = 4096; +pub const FEATURESETTING_PRIVATE_END: u32 = 8191; +pub const PSPROTOCOL_ASCII: u32 = 0; +pub const PSPROTOCOL_BCP: u32 = 1; +pub const PSPROTOCOL_TBCP: u32 = 2; +pub const PSPROTOCOL_BINARY: u32 = 3; +pub const QDI_SETDIBITS: u32 = 1; +pub const QDI_GETDIBITS: u32 = 2; +pub const QDI_DIBTOSCREEN: u32 = 4; +pub const QDI_STRETCHDIB: u32 = 8; +pub const SP_NOTREPORTED: u32 = 16384; +pub const SP_ERROR: i32 = -1; +pub const SP_APPABORT: i32 = -2; +pub const SP_USERABORT: i32 = -3; +pub const SP_OUTOFDISK: i32 = -4; +pub const SP_OUTOFMEMORY: i32 = -5; +pub const PR_JOBSTATUS: u32 = 0; +pub const OBJ_PEN: u32 = 1; +pub const OBJ_BRUSH: u32 = 2; +pub const OBJ_DC: u32 = 3; +pub const OBJ_METADC: u32 = 4; +pub const OBJ_PAL: u32 = 5; +pub const OBJ_FONT: u32 = 6; +pub const OBJ_BITMAP: u32 = 7; +pub const OBJ_REGION: u32 = 8; +pub const OBJ_METAFILE: u32 = 9; +pub const OBJ_MEMDC: u32 = 10; +pub const OBJ_EXTPEN: u32 = 11; +pub const OBJ_ENHMETADC: u32 = 12; +pub const OBJ_ENHMETAFILE: u32 = 13; +pub const OBJ_COLORSPACE: u32 = 14; +pub const GDI_OBJ_LAST: u32 = 14; +pub const GDI_MIN_OBJ_TYPE: u32 = 1; +pub const GDI_MAX_OBJ_TYPE: u32 = 14; +pub const MWT_IDENTITY: u32 = 1; +pub const MWT_LEFTMULTIPLY: u32 = 2; +pub const MWT_RIGHTMULTIPLY: u32 = 3; +pub const MWT_MIN: u32 = 1; +pub const MWT_MAX: u32 = 3; +pub const CS_ENABLE: u32 = 1; +pub const CS_DISABLE: u32 = 2; +pub const CS_DELETE_TRANSFORM: u32 = 3; +pub const LCS_CALIBRATED_RGB: u32 = 0; +pub const LCS_GM_BUSINESS: u32 = 1; +pub const LCS_GM_GRAPHICS: u32 = 2; +pub const LCS_GM_IMAGES: u32 = 4; +pub const LCS_GM_ABS_COLORIMETRIC: u32 = 8; +pub const CM_OUT_OF_GAMUT: u32 = 255; +pub const CM_IN_GAMUT: u32 = 0; +pub const ICM_ADDPROFILE: u32 = 1; +pub const ICM_DELETEPROFILE: u32 = 2; +pub const ICM_QUERYPROFILE: u32 = 3; +pub const ICM_SETDEFAULTPROFILE: u32 = 4; +pub const ICM_REGISTERICMATCHER: u32 = 5; +pub const ICM_UNREGISTERICMATCHER: u32 = 6; +pub const ICM_QUERYMATCH: u32 = 7; +pub const BI_RGB: u32 = 0; +pub const BI_RLE8: u32 = 1; +pub const BI_RLE4: u32 = 2; +pub const BI_BITFIELDS: u32 = 3; +pub const BI_JPEG: u32 = 4; +pub const BI_PNG: u32 = 5; +pub const TCI_SRCCHARSET: u32 = 1; +pub const TCI_SRCCODEPAGE: u32 = 2; +pub const TCI_SRCFONTSIG: u32 = 3; +pub const TCI_SRCLOCALE: u32 = 4096; +pub const TMPF_FIXED_PITCH: u32 = 1; +pub const TMPF_VECTOR: u32 = 2; +pub const TMPF_DEVICE: u32 = 8; +pub const TMPF_TRUETYPE: u32 = 4; +pub const NTM_REGULAR: u32 = 64; +pub const NTM_BOLD: u32 = 32; +pub const NTM_ITALIC: u32 = 1; +pub const NTM_NONNEGATIVE_AC: u32 = 65536; +pub const NTM_PS_OPENTYPE: u32 = 131072; +pub const NTM_TT_OPENTYPE: u32 = 262144; +pub const NTM_MULTIPLEMASTER: u32 = 524288; +pub const NTM_TYPE1: u32 = 1048576; +pub const NTM_DSIG: u32 = 2097152; +pub const LF_FACESIZE: u32 = 32; +pub const LF_FULLFACESIZE: u32 = 64; +pub const OUT_DEFAULT_PRECIS: u32 = 0; +pub const OUT_STRING_PRECIS: u32 = 1; +pub const OUT_CHARACTER_PRECIS: u32 = 2; +pub const OUT_STROKE_PRECIS: u32 = 3; +pub const OUT_TT_PRECIS: u32 = 4; +pub const OUT_DEVICE_PRECIS: u32 = 5; +pub const OUT_RASTER_PRECIS: u32 = 6; +pub const OUT_TT_ONLY_PRECIS: u32 = 7; +pub const OUT_OUTLINE_PRECIS: u32 = 8; +pub const OUT_SCREEN_OUTLINE_PRECIS: u32 = 9; +pub const OUT_PS_ONLY_PRECIS: u32 = 10; +pub const CLIP_DEFAULT_PRECIS: u32 = 0; +pub const CLIP_CHARACTER_PRECIS: u32 = 1; +pub const CLIP_STROKE_PRECIS: u32 = 2; +pub const CLIP_MASK: u32 = 15; +pub const CLIP_LH_ANGLES: u32 = 16; +pub const CLIP_TT_ALWAYS: u32 = 32; +pub const CLIP_DFA_DISABLE: u32 = 64; +pub const CLIP_EMBEDDED: u32 = 128; +pub const DEFAULT_QUALITY: u32 = 0; +pub const DRAFT_QUALITY: u32 = 1; +pub const PROOF_QUALITY: u32 = 2; +pub const NONANTIALIASED_QUALITY: u32 = 3; +pub const ANTIALIASED_QUALITY: u32 = 4; +pub const CLEARTYPE_QUALITY: u32 = 5; +pub const CLEARTYPE_NATURAL_QUALITY: u32 = 6; +pub const DEFAULT_PITCH: u32 = 0; +pub const FIXED_PITCH: u32 = 1; +pub const VARIABLE_PITCH: u32 = 2; +pub const MONO_FONT: u32 = 8; +pub const ANSI_CHARSET: u32 = 0; +pub const DEFAULT_CHARSET: u32 = 1; +pub const SYMBOL_CHARSET: u32 = 2; +pub const SHIFTJIS_CHARSET: u32 = 128; +pub const HANGEUL_CHARSET: u32 = 129; +pub const HANGUL_CHARSET: u32 = 129; +pub const GB2312_CHARSET: u32 = 134; +pub const CHINESEBIG5_CHARSET: u32 = 136; +pub const OEM_CHARSET: u32 = 255; +pub const JOHAB_CHARSET: u32 = 130; +pub const HEBREW_CHARSET: u32 = 177; +pub const ARABIC_CHARSET: u32 = 178; +pub const GREEK_CHARSET: u32 = 161; +pub const TURKISH_CHARSET: u32 = 162; +pub const VIETNAMESE_CHARSET: u32 = 163; +pub const THAI_CHARSET: u32 = 222; +pub const EASTEUROPE_CHARSET: u32 = 238; +pub const RUSSIAN_CHARSET: u32 = 204; +pub const MAC_CHARSET: u32 = 77; +pub const BALTIC_CHARSET: u32 = 186; +pub const FS_LATIN1: u32 = 1; +pub const FS_LATIN2: u32 = 2; +pub const FS_CYRILLIC: u32 = 4; +pub const FS_GREEK: u32 = 8; +pub const FS_TURKISH: u32 = 16; +pub const FS_HEBREW: u32 = 32; +pub const FS_ARABIC: u32 = 64; +pub const FS_BALTIC: u32 = 128; +pub const FS_VIETNAMESE: u32 = 256; +pub const FS_THAI: u32 = 65536; +pub const FS_JISJAPAN: u32 = 131072; +pub const FS_CHINESESIMP: u32 = 262144; +pub const FS_WANSUNG: u32 = 524288; +pub const FS_CHINESETRAD: u32 = 1048576; +pub const FS_JOHAB: u32 = 2097152; +pub const FS_SYMBOL: u32 = 2147483648; +pub const FF_DONTCARE: u32 = 0; +pub const FF_ROMAN: u32 = 16; +pub const FF_SWISS: u32 = 32; +pub const FF_MODERN: u32 = 48; +pub const FF_SCRIPT: u32 = 64; +pub const FF_DECORATIVE: u32 = 80; +pub const FW_DONTCARE: u32 = 0; +pub const FW_THIN: u32 = 100; +pub const FW_EXTRALIGHT: u32 = 200; +pub const FW_LIGHT: u32 = 300; +pub const FW_NORMAL: u32 = 400; +pub const FW_MEDIUM: u32 = 500; +pub const FW_SEMIBOLD: u32 = 600; +pub const FW_BOLD: u32 = 700; +pub const FW_EXTRABOLD: u32 = 800; +pub const FW_HEAVY: u32 = 900; +pub const FW_ULTRALIGHT: u32 = 200; +pub const FW_REGULAR: u32 = 400; +pub const FW_DEMIBOLD: u32 = 600; +pub const FW_ULTRABOLD: u32 = 800; +pub const FW_BLACK: u32 = 900; +pub const PANOSE_COUNT: u32 = 10; +pub const PAN_FAMILYTYPE_INDEX: u32 = 0; +pub const PAN_SERIFSTYLE_INDEX: u32 = 1; +pub const PAN_WEIGHT_INDEX: u32 = 2; +pub const PAN_PROPORTION_INDEX: u32 = 3; +pub const PAN_CONTRAST_INDEX: u32 = 4; +pub const PAN_STROKEVARIATION_INDEX: u32 = 5; +pub const PAN_ARMSTYLE_INDEX: u32 = 6; +pub const PAN_LETTERFORM_INDEX: u32 = 7; +pub const PAN_MIDLINE_INDEX: u32 = 8; +pub const PAN_XHEIGHT_INDEX: u32 = 9; +pub const PAN_CULTURE_LATIN: u32 = 0; +pub const PAN_ANY: u32 = 0; +pub const PAN_NO_FIT: u32 = 1; +pub const PAN_FAMILY_TEXT_DISPLAY: u32 = 2; +pub const PAN_FAMILY_SCRIPT: u32 = 3; +pub const PAN_FAMILY_DECORATIVE: u32 = 4; +pub const PAN_FAMILY_PICTORIAL: u32 = 5; +pub const PAN_SERIF_COVE: u32 = 2; +pub const PAN_SERIF_OBTUSE_COVE: u32 = 3; +pub const PAN_SERIF_SQUARE_COVE: u32 = 4; +pub const PAN_SERIF_OBTUSE_SQUARE_COVE: u32 = 5; +pub const PAN_SERIF_SQUARE: u32 = 6; +pub const PAN_SERIF_THIN: u32 = 7; +pub const PAN_SERIF_BONE: u32 = 8; +pub const PAN_SERIF_EXAGGERATED: u32 = 9; +pub const PAN_SERIF_TRIANGLE: u32 = 10; +pub const PAN_SERIF_NORMAL_SANS: u32 = 11; +pub const PAN_SERIF_OBTUSE_SANS: u32 = 12; +pub const PAN_SERIF_PERP_SANS: u32 = 13; +pub const PAN_SERIF_FLARED: u32 = 14; +pub const PAN_SERIF_ROUNDED: u32 = 15; +pub const PAN_WEIGHT_VERY_LIGHT: u32 = 2; +pub const PAN_WEIGHT_LIGHT: u32 = 3; +pub const PAN_WEIGHT_THIN: u32 = 4; +pub const PAN_WEIGHT_BOOK: u32 = 5; +pub const PAN_WEIGHT_MEDIUM: u32 = 6; +pub const PAN_WEIGHT_DEMI: u32 = 7; +pub const PAN_WEIGHT_BOLD: u32 = 8; +pub const PAN_WEIGHT_HEAVY: u32 = 9; +pub const PAN_WEIGHT_BLACK: u32 = 10; +pub const PAN_WEIGHT_NORD: u32 = 11; +pub const PAN_PROP_OLD_STYLE: u32 = 2; +pub const PAN_PROP_MODERN: u32 = 3; +pub const PAN_PROP_EVEN_WIDTH: u32 = 4; +pub const PAN_PROP_EXPANDED: u32 = 5; +pub const PAN_PROP_CONDENSED: u32 = 6; +pub const PAN_PROP_VERY_EXPANDED: u32 = 7; +pub const PAN_PROP_VERY_CONDENSED: u32 = 8; +pub const PAN_PROP_MONOSPACED: u32 = 9; +pub const PAN_CONTRAST_NONE: u32 = 2; +pub const PAN_CONTRAST_VERY_LOW: u32 = 3; +pub const PAN_CONTRAST_LOW: u32 = 4; +pub const PAN_CONTRAST_MEDIUM_LOW: u32 = 5; +pub const PAN_CONTRAST_MEDIUM: u32 = 6; +pub const PAN_CONTRAST_MEDIUM_HIGH: u32 = 7; +pub const PAN_CONTRAST_HIGH: u32 = 8; +pub const PAN_CONTRAST_VERY_HIGH: u32 = 9; +pub const PAN_STROKE_GRADUAL_DIAG: u32 = 2; +pub const PAN_STROKE_GRADUAL_TRAN: u32 = 3; +pub const PAN_STROKE_GRADUAL_VERT: u32 = 4; +pub const PAN_STROKE_GRADUAL_HORZ: u32 = 5; +pub const PAN_STROKE_RAPID_VERT: u32 = 6; +pub const PAN_STROKE_RAPID_HORZ: u32 = 7; +pub const PAN_STROKE_INSTANT_VERT: u32 = 8; +pub const PAN_STRAIGHT_ARMS_HORZ: u32 = 2; +pub const PAN_STRAIGHT_ARMS_WEDGE: u32 = 3; +pub const PAN_STRAIGHT_ARMS_VERT: u32 = 4; +pub const PAN_STRAIGHT_ARMS_SINGLE_SERIF: u32 = 5; +pub const PAN_STRAIGHT_ARMS_DOUBLE_SERIF: u32 = 6; +pub const PAN_BENT_ARMS_HORZ: u32 = 7; +pub const PAN_BENT_ARMS_WEDGE: u32 = 8; +pub const PAN_BENT_ARMS_VERT: u32 = 9; +pub const PAN_BENT_ARMS_SINGLE_SERIF: u32 = 10; +pub const PAN_BENT_ARMS_DOUBLE_SERIF: u32 = 11; +pub const PAN_LETT_NORMAL_CONTACT: u32 = 2; +pub const PAN_LETT_NORMAL_WEIGHTED: u32 = 3; +pub const PAN_LETT_NORMAL_BOXED: u32 = 4; +pub const PAN_LETT_NORMAL_FLATTENED: u32 = 5; +pub const PAN_LETT_NORMAL_ROUNDED: u32 = 6; +pub const PAN_LETT_NORMAL_OFF_CENTER: u32 = 7; +pub const PAN_LETT_NORMAL_SQUARE: u32 = 8; +pub const PAN_LETT_OBLIQUE_CONTACT: u32 = 9; +pub const PAN_LETT_OBLIQUE_WEIGHTED: u32 = 10; +pub const PAN_LETT_OBLIQUE_BOXED: u32 = 11; +pub const PAN_LETT_OBLIQUE_FLATTENED: u32 = 12; +pub const PAN_LETT_OBLIQUE_ROUNDED: u32 = 13; +pub const PAN_LETT_OBLIQUE_OFF_CENTER: u32 = 14; +pub const PAN_LETT_OBLIQUE_SQUARE: u32 = 15; +pub const PAN_MIDLINE_STANDARD_TRIMMED: u32 = 2; +pub const PAN_MIDLINE_STANDARD_POINTED: u32 = 3; +pub const PAN_MIDLINE_STANDARD_SERIFED: u32 = 4; +pub const PAN_MIDLINE_HIGH_TRIMMED: u32 = 5; +pub const PAN_MIDLINE_HIGH_POINTED: u32 = 6; +pub const PAN_MIDLINE_HIGH_SERIFED: u32 = 7; +pub const PAN_MIDLINE_CONSTANT_TRIMMED: u32 = 8; +pub const PAN_MIDLINE_CONSTANT_POINTED: u32 = 9; +pub const PAN_MIDLINE_CONSTANT_SERIFED: u32 = 10; +pub const PAN_MIDLINE_LOW_TRIMMED: u32 = 11; +pub const PAN_MIDLINE_LOW_POINTED: u32 = 12; +pub const PAN_MIDLINE_LOW_SERIFED: u32 = 13; +pub const PAN_XHEIGHT_CONSTANT_SMALL: u32 = 2; +pub const PAN_XHEIGHT_CONSTANT_STD: u32 = 3; +pub const PAN_XHEIGHT_CONSTANT_LARGE: u32 = 4; +pub const PAN_XHEIGHT_DUCKING_SMALL: u32 = 5; +pub const PAN_XHEIGHT_DUCKING_STD: u32 = 6; +pub const PAN_XHEIGHT_DUCKING_LARGE: u32 = 7; +pub const ELF_VENDOR_SIZE: u32 = 4; +pub const ELF_VERSION: u32 = 0; +pub const ELF_CULTURE_LATIN: u32 = 0; +pub const RASTER_FONTTYPE: u32 = 1; +pub const DEVICE_FONTTYPE: u32 = 2; +pub const TRUETYPE_FONTTYPE: u32 = 4; +pub const PC_RESERVED: u32 = 1; +pub const PC_EXPLICIT: u32 = 2; +pub const PC_NOCOLLAPSE: u32 = 4; +pub const TRANSPARENT: u32 = 1; +pub const OPAQUE: u32 = 2; +pub const BKMODE_LAST: u32 = 2; +pub const GM_COMPATIBLE: u32 = 1; +pub const GM_ADVANCED: u32 = 2; +pub const GM_LAST: u32 = 2; +pub const PT_CLOSEFIGURE: u32 = 1; +pub const PT_LINETO: u32 = 2; +pub const PT_BEZIERTO: u32 = 4; +pub const PT_MOVETO: u32 = 6; +pub const MM_TEXT: u32 = 1; +pub const MM_LOMETRIC: u32 = 2; +pub const MM_HIMETRIC: u32 = 3; +pub const MM_LOENGLISH: u32 = 4; +pub const MM_HIENGLISH: u32 = 5; +pub const MM_TWIPS: u32 = 6; +pub const MM_ISOTROPIC: u32 = 7; +pub const MM_ANISOTROPIC: u32 = 8; +pub const MM_MIN: u32 = 1; +pub const MM_MAX: u32 = 8; +pub const MM_MAX_FIXEDSCALE: u32 = 6; +pub const ABSOLUTE: u32 = 1; +pub const RELATIVE: u32 = 2; +pub const WHITE_BRUSH: u32 = 0; +pub const LTGRAY_BRUSH: u32 = 1; +pub const GRAY_BRUSH: u32 = 2; +pub const DKGRAY_BRUSH: u32 = 3; +pub const BLACK_BRUSH: u32 = 4; +pub const NULL_BRUSH: u32 = 5; +pub const HOLLOW_BRUSH: u32 = 5; +pub const WHITE_PEN: u32 = 6; +pub const BLACK_PEN: u32 = 7; +pub const NULL_PEN: u32 = 8; +pub const OEM_FIXED_FONT: u32 = 10; +pub const ANSI_FIXED_FONT: u32 = 11; +pub const ANSI_VAR_FONT: u32 = 12; +pub const SYSTEM_FONT: u32 = 13; +pub const DEVICE_DEFAULT_FONT: u32 = 14; +pub const DEFAULT_PALETTE: u32 = 15; +pub const SYSTEM_FIXED_FONT: u32 = 16; +pub const DEFAULT_GUI_FONT: u32 = 17; +pub const DC_BRUSH: u32 = 18; +pub const DC_PEN: u32 = 19; +pub const STOCK_LAST: u32 = 19; +pub const CLR_INVALID: u32 = 4294967295; +pub const BS_SOLID: u32 = 0; +pub const BS_NULL: u32 = 1; +pub const BS_HOLLOW: u32 = 1; +pub const BS_HATCHED: u32 = 2; +pub const BS_PATTERN: u32 = 3; +pub const BS_INDEXED: u32 = 4; +pub const BS_DIBPATTERN: u32 = 5; +pub const BS_DIBPATTERNPT: u32 = 6; +pub const BS_PATTERN8X8: u32 = 7; +pub const BS_DIBPATTERN8X8: u32 = 8; +pub const BS_MONOPATTERN: u32 = 9; +pub const HS_HORIZONTAL: u32 = 0; +pub const HS_VERTICAL: u32 = 1; +pub const HS_FDIAGONAL: u32 = 2; +pub const HS_BDIAGONAL: u32 = 3; +pub const HS_CROSS: u32 = 4; +pub const HS_DIAGCROSS: u32 = 5; +pub const HS_API_MAX: u32 = 12; +pub const PS_SOLID: u32 = 0; +pub const PS_DASH: u32 = 1; +pub const PS_DOT: u32 = 2; +pub const PS_DASHDOT: u32 = 3; +pub const PS_DASHDOTDOT: u32 = 4; +pub const PS_NULL: u32 = 5; +pub const PS_INSIDEFRAME: u32 = 6; +pub const PS_USERSTYLE: u32 = 7; +pub const PS_ALTERNATE: u32 = 8; +pub const PS_STYLE_MASK: u32 = 15; +pub const PS_ENDCAP_ROUND: u32 = 0; +pub const PS_ENDCAP_SQUARE: u32 = 256; +pub const PS_ENDCAP_FLAT: u32 = 512; +pub const PS_ENDCAP_MASK: u32 = 3840; +pub const PS_JOIN_ROUND: u32 = 0; +pub const PS_JOIN_BEVEL: u32 = 4096; +pub const PS_JOIN_MITER: u32 = 8192; +pub const PS_JOIN_MASK: u32 = 61440; +pub const PS_COSMETIC: u32 = 0; +pub const PS_GEOMETRIC: u32 = 65536; +pub const PS_TYPE_MASK: u32 = 983040; +pub const AD_COUNTERCLOCKWISE: u32 = 1; +pub const AD_CLOCKWISE: u32 = 2; +pub const DRIVERVERSION: u32 = 0; +pub const TECHNOLOGY: u32 = 2; +pub const HORZSIZE: u32 = 4; +pub const VERTSIZE: u32 = 6; +pub const HORZRES: u32 = 8; +pub const VERTRES: u32 = 10; +pub const BITSPIXEL: u32 = 12; +pub const PLANES: u32 = 14; +pub const NUMBRUSHES: u32 = 16; +pub const NUMPENS: u32 = 18; +pub const NUMMARKERS: u32 = 20; +pub const NUMFONTS: u32 = 22; +pub const NUMCOLORS: u32 = 24; +pub const PDEVICESIZE: u32 = 26; +pub const CURVECAPS: u32 = 28; +pub const LINECAPS: u32 = 30; +pub const POLYGONALCAPS: u32 = 32; +pub const TEXTCAPS: u32 = 34; +pub const CLIPCAPS: u32 = 36; +pub const RASTERCAPS: u32 = 38; +pub const ASPECTX: u32 = 40; +pub const ASPECTY: u32 = 42; +pub const ASPECTXY: u32 = 44; +pub const LOGPIXELSX: u32 = 88; +pub const LOGPIXELSY: u32 = 90; +pub const SIZEPALETTE: u32 = 104; +pub const NUMRESERVED: u32 = 106; +pub const COLORRES: u32 = 108; +pub const PHYSICALWIDTH: u32 = 110; +pub const PHYSICALHEIGHT: u32 = 111; +pub const PHYSICALOFFSETX: u32 = 112; +pub const PHYSICALOFFSETY: u32 = 113; +pub const SCALINGFACTORX: u32 = 114; +pub const SCALINGFACTORY: u32 = 115; +pub const VREFRESH: u32 = 116; +pub const DESKTOPVERTRES: u32 = 117; +pub const DESKTOPHORZRES: u32 = 118; +pub const BLTALIGNMENT: u32 = 119; +pub const SHADEBLENDCAPS: u32 = 120; +pub const COLORMGMTCAPS: u32 = 121; +pub const DT_PLOTTER: u32 = 0; +pub const DT_RASDISPLAY: u32 = 1; +pub const DT_RASPRINTER: u32 = 2; +pub const DT_RASCAMERA: u32 = 3; +pub const DT_CHARSTREAM: u32 = 4; +pub const DT_METAFILE: u32 = 5; +pub const DT_DISPFILE: u32 = 6; +pub const CC_NONE: u32 = 0; +pub const CC_CIRCLES: u32 = 1; +pub const CC_PIE: u32 = 2; +pub const CC_CHORD: u32 = 4; +pub const CC_ELLIPSES: u32 = 8; +pub const CC_WIDE: u32 = 16; +pub const CC_STYLED: u32 = 32; +pub const CC_WIDESTYLED: u32 = 64; +pub const CC_INTERIORS: u32 = 128; +pub const CC_ROUNDRECT: u32 = 256; +pub const LC_NONE: u32 = 0; +pub const LC_POLYLINE: u32 = 2; +pub const LC_MARKER: u32 = 4; +pub const LC_POLYMARKER: u32 = 8; +pub const LC_WIDE: u32 = 16; +pub const LC_STYLED: u32 = 32; +pub const LC_WIDESTYLED: u32 = 64; +pub const LC_INTERIORS: u32 = 128; +pub const PC_NONE: u32 = 0; +pub const PC_POLYGON: u32 = 1; +pub const PC_RECTANGLE: u32 = 2; +pub const PC_WINDPOLYGON: u32 = 4; +pub const PC_TRAPEZOID: u32 = 4; +pub const PC_SCANLINE: u32 = 8; +pub const PC_WIDE: u32 = 16; +pub const PC_STYLED: u32 = 32; +pub const PC_WIDESTYLED: u32 = 64; +pub const PC_INTERIORS: u32 = 128; +pub const PC_POLYPOLYGON: u32 = 256; +pub const PC_PATHS: u32 = 512; +pub const CP_NONE: u32 = 0; +pub const CP_RECTANGLE: u32 = 1; +pub const CP_REGION: u32 = 2; +pub const TC_OP_CHARACTER: u32 = 1; +pub const TC_OP_STROKE: u32 = 2; +pub const TC_CP_STROKE: u32 = 4; +pub const TC_CR_90: u32 = 8; +pub const TC_CR_ANY: u32 = 16; +pub const TC_SF_X_YINDEP: u32 = 32; +pub const TC_SA_DOUBLE: u32 = 64; +pub const TC_SA_INTEGER: u32 = 128; +pub const TC_SA_CONTIN: u32 = 256; +pub const TC_EA_DOUBLE: u32 = 512; +pub const TC_IA_ABLE: u32 = 1024; +pub const TC_UA_ABLE: u32 = 2048; +pub const TC_SO_ABLE: u32 = 4096; +pub const TC_RA_ABLE: u32 = 8192; +pub const TC_VA_ABLE: u32 = 16384; +pub const TC_RESERVED: u32 = 32768; +pub const TC_SCROLLBLT: u32 = 65536; +pub const RC_BITBLT: u32 = 1; +pub const RC_BANDING: u32 = 2; +pub const RC_SCALING: u32 = 4; +pub const RC_BITMAP64: u32 = 8; +pub const RC_GDI20_OUTPUT: u32 = 16; +pub const RC_GDI20_STATE: u32 = 32; +pub const RC_SAVEBITMAP: u32 = 64; +pub const RC_DI_BITMAP: u32 = 128; +pub const RC_PALETTE: u32 = 256; +pub const RC_DIBTODEV: u32 = 512; +pub const RC_BIGFONT: u32 = 1024; +pub const RC_STRETCHBLT: u32 = 2048; +pub const RC_FLOODFILL: u32 = 4096; +pub const RC_STRETCHDIB: u32 = 8192; +pub const RC_OP_DX_OUTPUT: u32 = 16384; +pub const RC_DEVBITS: u32 = 32768; +pub const SB_NONE: u32 = 0; +pub const SB_CONST_ALPHA: u32 = 1; +pub const SB_PIXEL_ALPHA: u32 = 2; +pub const SB_PREMULT_ALPHA: u32 = 4; +pub const SB_GRAD_RECT: u32 = 16; +pub const SB_GRAD_TRI: u32 = 32; +pub const CM_NONE: u32 = 0; +pub const CM_DEVICE_ICM: u32 = 1; +pub const CM_GAMMA_RAMP: u32 = 2; +pub const CM_CMYK_COLOR: u32 = 4; +pub const DIB_RGB_COLORS: u32 = 0; +pub const DIB_PAL_COLORS: u32 = 1; +pub const SYSPAL_ERROR: u32 = 0; +pub const SYSPAL_STATIC: u32 = 1; +pub const SYSPAL_NOSTATIC: u32 = 2; +pub const SYSPAL_NOSTATIC256: u32 = 3; +pub const CBM_INIT: u32 = 4; +pub const FLOODFILLBORDER: u32 = 0; +pub const FLOODFILLSURFACE: u32 = 1; +pub const CCHDEVICENAME: u32 = 32; +pub const CCHFORMNAME: u32 = 32; +pub const DM_SPECVERSION: u32 = 1025; +pub const DM_ORIENTATION: u32 = 1; +pub const DM_PAPERSIZE: u32 = 2; +pub const DM_PAPERLENGTH: u32 = 4; +pub const DM_PAPERWIDTH: u32 = 8; +pub const DM_SCALE: u32 = 16; +pub const DM_POSITION: u32 = 32; +pub const DM_NUP: u32 = 64; +pub const DM_DISPLAYORIENTATION: u32 = 128; +pub const DM_COPIES: u32 = 256; +pub const DM_DEFAULTSOURCE: u32 = 512; +pub const DM_PRINTQUALITY: u32 = 1024; +pub const DM_COLOR: u32 = 2048; +pub const DM_DUPLEX: u32 = 4096; +pub const DM_YRESOLUTION: u32 = 8192; +pub const DM_TTOPTION: u32 = 16384; +pub const DM_COLLATE: u32 = 32768; +pub const DM_FORMNAME: u32 = 65536; +pub const DM_LOGPIXELS: u32 = 131072; +pub const DM_BITSPERPEL: u32 = 262144; +pub const DM_PELSWIDTH: u32 = 524288; +pub const DM_PELSHEIGHT: u32 = 1048576; +pub const DM_DISPLAYFLAGS: u32 = 2097152; +pub const DM_DISPLAYFREQUENCY: u32 = 4194304; +pub const DM_ICMMETHOD: u32 = 8388608; +pub const DM_ICMINTENT: u32 = 16777216; +pub const DM_MEDIATYPE: u32 = 33554432; +pub const DM_DITHERTYPE: u32 = 67108864; +pub const DM_PANNINGWIDTH: u32 = 134217728; +pub const DM_PANNINGHEIGHT: u32 = 268435456; +pub const DM_DISPLAYFIXEDOUTPUT: u32 = 536870912; +pub const DMORIENT_PORTRAIT: u32 = 1; +pub const DMORIENT_LANDSCAPE: u32 = 2; +pub const DMPAPER_LETTER: u32 = 1; +pub const DMPAPER_LETTERSMALL: u32 = 2; +pub const DMPAPER_TABLOID: u32 = 3; +pub const DMPAPER_LEDGER: u32 = 4; +pub const DMPAPER_LEGAL: u32 = 5; +pub const DMPAPER_STATEMENT: u32 = 6; +pub const DMPAPER_EXECUTIVE: u32 = 7; +pub const DMPAPER_A3: u32 = 8; +pub const DMPAPER_A4: u32 = 9; +pub const DMPAPER_A4SMALL: u32 = 10; +pub const DMPAPER_A5: u32 = 11; +pub const DMPAPER_B4: u32 = 12; +pub const DMPAPER_B5: u32 = 13; +pub const DMPAPER_FOLIO: u32 = 14; +pub const DMPAPER_QUARTO: u32 = 15; +pub const DMPAPER_10X14: u32 = 16; +pub const DMPAPER_11X17: u32 = 17; +pub const DMPAPER_NOTE: u32 = 18; +pub const DMPAPER_ENV_9: u32 = 19; +pub const DMPAPER_ENV_10: u32 = 20; +pub const DMPAPER_ENV_11: u32 = 21; +pub const DMPAPER_ENV_12: u32 = 22; +pub const DMPAPER_ENV_14: u32 = 23; +pub const DMPAPER_CSHEET: u32 = 24; +pub const DMPAPER_DSHEET: u32 = 25; +pub const DMPAPER_ESHEET: u32 = 26; +pub const DMPAPER_ENV_DL: u32 = 27; +pub const DMPAPER_ENV_C5: u32 = 28; +pub const DMPAPER_ENV_C3: u32 = 29; +pub const DMPAPER_ENV_C4: u32 = 30; +pub const DMPAPER_ENV_C6: u32 = 31; +pub const DMPAPER_ENV_C65: u32 = 32; +pub const DMPAPER_ENV_B4: u32 = 33; +pub const DMPAPER_ENV_B5: u32 = 34; +pub const DMPAPER_ENV_B6: u32 = 35; +pub const DMPAPER_ENV_ITALY: u32 = 36; +pub const DMPAPER_ENV_MONARCH: u32 = 37; +pub const DMPAPER_ENV_PERSONAL: u32 = 38; +pub const DMPAPER_FANFOLD_US: u32 = 39; +pub const DMPAPER_FANFOLD_STD_GERMAN: u32 = 40; +pub const DMPAPER_FANFOLD_LGL_GERMAN: u32 = 41; +pub const DMPAPER_ISO_B4: u32 = 42; +pub const DMPAPER_JAPANESE_POSTCARD: u32 = 43; +pub const DMPAPER_9X11: u32 = 44; +pub const DMPAPER_10X11: u32 = 45; +pub const DMPAPER_15X11: u32 = 46; +pub const DMPAPER_ENV_INVITE: u32 = 47; +pub const DMPAPER_RESERVED_48: u32 = 48; +pub const DMPAPER_RESERVED_49: u32 = 49; +pub const DMPAPER_LETTER_EXTRA: u32 = 50; +pub const DMPAPER_LEGAL_EXTRA: u32 = 51; +pub const DMPAPER_TABLOID_EXTRA: u32 = 52; +pub const DMPAPER_A4_EXTRA: u32 = 53; +pub const DMPAPER_LETTER_TRANSVERSE: u32 = 54; +pub const DMPAPER_A4_TRANSVERSE: u32 = 55; +pub const DMPAPER_LETTER_EXTRA_TRANSVERSE: u32 = 56; +pub const DMPAPER_A_PLUS: u32 = 57; +pub const DMPAPER_B_PLUS: u32 = 58; +pub const DMPAPER_LETTER_PLUS: u32 = 59; +pub const DMPAPER_A4_PLUS: u32 = 60; +pub const DMPAPER_A5_TRANSVERSE: u32 = 61; +pub const DMPAPER_B5_TRANSVERSE: u32 = 62; +pub const DMPAPER_A3_EXTRA: u32 = 63; +pub const DMPAPER_A5_EXTRA: u32 = 64; +pub const DMPAPER_B5_EXTRA: u32 = 65; +pub const DMPAPER_A2: u32 = 66; +pub const DMPAPER_A3_TRANSVERSE: u32 = 67; +pub const DMPAPER_A3_EXTRA_TRANSVERSE: u32 = 68; +pub const DMPAPER_DBL_JAPANESE_POSTCARD: u32 = 69; +pub const DMPAPER_A6: u32 = 70; +pub const DMPAPER_JENV_KAKU2: u32 = 71; +pub const DMPAPER_JENV_KAKU3: u32 = 72; +pub const DMPAPER_JENV_CHOU3: u32 = 73; +pub const DMPAPER_JENV_CHOU4: u32 = 74; +pub const DMPAPER_LETTER_ROTATED: u32 = 75; +pub const DMPAPER_A3_ROTATED: u32 = 76; +pub const DMPAPER_A4_ROTATED: u32 = 77; +pub const DMPAPER_A5_ROTATED: u32 = 78; +pub const DMPAPER_B4_JIS_ROTATED: u32 = 79; +pub const DMPAPER_B5_JIS_ROTATED: u32 = 80; +pub const DMPAPER_JAPANESE_POSTCARD_ROTATED: u32 = 81; +pub const DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED: u32 = 82; +pub const DMPAPER_A6_ROTATED: u32 = 83; +pub const DMPAPER_JENV_KAKU2_ROTATED: u32 = 84; +pub const DMPAPER_JENV_KAKU3_ROTATED: u32 = 85; +pub const DMPAPER_JENV_CHOU3_ROTATED: u32 = 86; +pub const DMPAPER_JENV_CHOU4_ROTATED: u32 = 87; +pub const DMPAPER_B6_JIS: u32 = 88; +pub const DMPAPER_B6_JIS_ROTATED: u32 = 89; +pub const DMPAPER_12X11: u32 = 90; +pub const DMPAPER_JENV_YOU4: u32 = 91; +pub const DMPAPER_JENV_YOU4_ROTATED: u32 = 92; +pub const DMPAPER_P16K: u32 = 93; +pub const DMPAPER_P32K: u32 = 94; +pub const DMPAPER_P32KBIG: u32 = 95; +pub const DMPAPER_PENV_1: u32 = 96; +pub const DMPAPER_PENV_2: u32 = 97; +pub const DMPAPER_PENV_3: u32 = 98; +pub const DMPAPER_PENV_4: u32 = 99; +pub const DMPAPER_PENV_5: u32 = 100; +pub const DMPAPER_PENV_6: u32 = 101; +pub const DMPAPER_PENV_7: u32 = 102; +pub const DMPAPER_PENV_8: u32 = 103; +pub const DMPAPER_PENV_9: u32 = 104; +pub const DMPAPER_PENV_10: u32 = 105; +pub const DMPAPER_P16K_ROTATED: u32 = 106; +pub const DMPAPER_P32K_ROTATED: u32 = 107; +pub const DMPAPER_P32KBIG_ROTATED: u32 = 108; +pub const DMPAPER_PENV_1_ROTATED: u32 = 109; +pub const DMPAPER_PENV_2_ROTATED: u32 = 110; +pub const DMPAPER_PENV_3_ROTATED: u32 = 111; +pub const DMPAPER_PENV_4_ROTATED: u32 = 112; +pub const DMPAPER_PENV_5_ROTATED: u32 = 113; +pub const DMPAPER_PENV_6_ROTATED: u32 = 114; +pub const DMPAPER_PENV_7_ROTATED: u32 = 115; +pub const DMPAPER_PENV_8_ROTATED: u32 = 116; +pub const DMPAPER_PENV_9_ROTATED: u32 = 117; +pub const DMPAPER_PENV_10_ROTATED: u32 = 118; +pub const DMPAPER_LAST: u32 = 118; +pub const DMPAPER_USER: u32 = 256; +pub const DMBIN_UPPER: u32 = 1; +pub const DMBIN_ONLYONE: u32 = 1; +pub const DMBIN_LOWER: u32 = 2; +pub const DMBIN_MIDDLE: u32 = 3; +pub const DMBIN_MANUAL: u32 = 4; +pub const DMBIN_ENVELOPE: u32 = 5; +pub const DMBIN_ENVMANUAL: u32 = 6; +pub const DMBIN_AUTO: u32 = 7; +pub const DMBIN_TRACTOR: u32 = 8; +pub const DMBIN_SMALLFMT: u32 = 9; +pub const DMBIN_LARGEFMT: u32 = 10; +pub const DMBIN_LARGECAPACITY: u32 = 11; +pub const DMBIN_CASSETTE: u32 = 14; +pub const DMBIN_FORMSOURCE: u32 = 15; +pub const DMBIN_LAST: u32 = 15; +pub const DMBIN_USER: u32 = 256; +pub const DMRES_DRAFT: i32 = -1; +pub const DMRES_LOW: i32 = -2; +pub const DMRES_MEDIUM: i32 = -3; +pub const DMRES_HIGH: i32 = -4; +pub const DMCOLOR_MONOCHROME: u32 = 1; +pub const DMCOLOR_COLOR: u32 = 2; +pub const DMDUP_SIMPLEX: u32 = 1; +pub const DMDUP_VERTICAL: u32 = 2; +pub const DMDUP_HORIZONTAL: u32 = 3; +pub const DMTT_BITMAP: u32 = 1; +pub const DMTT_DOWNLOAD: u32 = 2; +pub const DMTT_SUBDEV: u32 = 3; +pub const DMTT_DOWNLOAD_OUTLINE: u32 = 4; +pub const DMCOLLATE_FALSE: u32 = 0; +pub const DMCOLLATE_TRUE: u32 = 1; +pub const DMDO_DEFAULT: u32 = 0; +pub const DMDO_90: u32 = 1; +pub const DMDO_180: u32 = 2; +pub const DMDO_270: u32 = 3; +pub const DMDFO_DEFAULT: u32 = 0; +pub const DMDFO_STRETCH: u32 = 1; +pub const DMDFO_CENTER: u32 = 2; +pub const DM_INTERLACED: u32 = 2; +pub const DMDISPLAYFLAGS_TEXTMODE: u32 = 4; +pub const DMNUP_SYSTEM: u32 = 1; +pub const DMNUP_ONEUP: u32 = 2; +pub const DMICMMETHOD_NONE: u32 = 1; +pub const DMICMMETHOD_SYSTEM: u32 = 2; +pub const DMICMMETHOD_DRIVER: u32 = 3; +pub const DMICMMETHOD_DEVICE: u32 = 4; +pub const DMICMMETHOD_USER: u32 = 256; +pub const DMICM_SATURATE: u32 = 1; +pub const DMICM_CONTRAST: u32 = 2; +pub const DMICM_COLORIMETRIC: u32 = 3; +pub const DMICM_ABS_COLORIMETRIC: u32 = 4; +pub const DMICM_USER: u32 = 256; +pub const DMMEDIA_STANDARD: u32 = 1; +pub const DMMEDIA_TRANSPARENCY: u32 = 2; +pub const DMMEDIA_GLOSSY: u32 = 3; +pub const DMMEDIA_USER: u32 = 256; +pub const DMDITHER_NONE: u32 = 1; +pub const DMDITHER_COARSE: u32 = 2; +pub const DMDITHER_FINE: u32 = 3; +pub const DMDITHER_LINEART: u32 = 4; +pub const DMDITHER_ERRORDIFFUSION: u32 = 5; +pub const DMDITHER_RESERVED6: u32 = 6; +pub const DMDITHER_RESERVED7: u32 = 7; +pub const DMDITHER_RESERVED8: u32 = 8; +pub const DMDITHER_RESERVED9: u32 = 9; +pub const DMDITHER_GRAYSCALE: u32 = 10; +pub const DMDITHER_USER: u32 = 256; +pub const DISPLAY_DEVICE_ATTACHED_TO_DESKTOP: u32 = 1; +pub const DISPLAY_DEVICE_MULTI_DRIVER: u32 = 2; +pub const DISPLAY_DEVICE_PRIMARY_DEVICE: u32 = 4; +pub const DISPLAY_DEVICE_MIRRORING_DRIVER: u32 = 8; +pub const DISPLAY_DEVICE_VGA_COMPATIBLE: u32 = 16; +pub const DISPLAY_DEVICE_REMOVABLE: u32 = 32; +pub const DISPLAY_DEVICE_ACC_DRIVER: u32 = 64; +pub const DISPLAY_DEVICE_MODESPRUNED: u32 = 134217728; +pub const DISPLAY_DEVICE_RDPUDD: u32 = 16777216; +pub const DISPLAY_DEVICE_REMOTE: u32 = 67108864; +pub const DISPLAY_DEVICE_DISCONNECT: u32 = 33554432; +pub const DISPLAY_DEVICE_TS_COMPATIBLE: u32 = 2097152; +pub const DISPLAY_DEVICE_UNSAFE_MODES_ON: u32 = 524288; +pub const DISPLAY_DEVICE_ACTIVE: u32 = 1; +pub const DISPLAY_DEVICE_ATTACHED: u32 = 2; +pub const DISPLAYCONFIG_MAXPATH: u32 = 1024; +pub const DISPLAYCONFIG_PATH_MODE_IDX_INVALID: u32 = 4294967295; +pub const DISPLAYCONFIG_PATH_TARGET_MODE_IDX_INVALID: u32 = 65535; +pub const DISPLAYCONFIG_PATH_DESKTOP_IMAGE_IDX_INVALID: u32 = 65535; +pub const DISPLAYCONFIG_PATH_SOURCE_MODE_IDX_INVALID: u32 = 65535; +pub const DISPLAYCONFIG_PATH_CLONE_GROUP_INVALID: u32 = 65535; +pub const DISPLAYCONFIG_SOURCE_IN_USE: u32 = 1; +pub const DISPLAYCONFIG_TARGET_IN_USE: u32 = 1; +pub const DISPLAYCONFIG_TARGET_FORCIBLE: u32 = 2; +pub const DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_BOOT: u32 = 4; +pub const DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_PATH: u32 = 8; +pub const DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_SYSTEM: u32 = 16; +pub const DISPLAYCONFIG_TARGET_IS_HMD: u32 = 32; +pub const DISPLAYCONFIG_PATH_ACTIVE: u32 = 1; +pub const DISPLAYCONFIG_PATH_PREFERRED_UNSCALED: u32 = 4; +pub const DISPLAYCONFIG_PATH_SUPPORT_VIRTUAL_MODE: u32 = 8; +pub const DISPLAYCONFIG_PATH_VALID_FLAGS: u32 = 29; +pub const QDC_ALL_PATHS: u32 = 1; +pub const QDC_ONLY_ACTIVE_PATHS: u32 = 2; +pub const QDC_DATABASE_CURRENT: u32 = 4; +pub const QDC_VIRTUAL_MODE_AWARE: u32 = 16; +pub const QDC_INCLUDE_HMD: u32 = 32; +pub const QDC_VIRTUAL_REFRESH_RATE_AWARE: u32 = 64; +pub const SDC_TOPOLOGY_INTERNAL: u32 = 1; +pub const SDC_TOPOLOGY_CLONE: u32 = 2; +pub const SDC_TOPOLOGY_EXTEND: u32 = 4; +pub const SDC_TOPOLOGY_EXTERNAL: u32 = 8; +pub const SDC_TOPOLOGY_SUPPLIED: u32 = 16; +pub const SDC_USE_DATABASE_CURRENT: u32 = 15; +pub const SDC_USE_SUPPLIED_DISPLAY_CONFIG: u32 = 32; +pub const SDC_VALIDATE: u32 = 64; +pub const SDC_APPLY: u32 = 128; +pub const SDC_NO_OPTIMIZATION: u32 = 256; +pub const SDC_SAVE_TO_DATABASE: u32 = 512; +pub const SDC_ALLOW_CHANGES: u32 = 1024; +pub const SDC_PATH_PERSIST_IF_REQUIRED: u32 = 2048; +pub const SDC_FORCE_MODE_ENUMERATION: u32 = 4096; +pub const SDC_ALLOW_PATH_ORDER_CHANGES: u32 = 8192; +pub const SDC_VIRTUAL_MODE_AWARE: u32 = 32768; +pub const SDC_VIRTUAL_REFRESH_RATE_AWARE: u32 = 131072; +pub const RDH_RECTANGLES: u32 = 1; +pub const SYSRGN: u32 = 4; +pub const GGO_METRICS: u32 = 0; +pub const GGO_BITMAP: u32 = 1; +pub const GGO_NATIVE: u32 = 2; +pub const GGO_BEZIER: u32 = 3; +pub const GGO_GRAY2_BITMAP: u32 = 4; +pub const GGO_GRAY4_BITMAP: u32 = 5; +pub const GGO_GRAY8_BITMAP: u32 = 6; +pub const GGO_GLYPH_INDEX: u32 = 128; +pub const GGO_UNHINTED: u32 = 256; +pub const TT_POLYGON_TYPE: u32 = 24; +pub const TT_PRIM_LINE: u32 = 1; +pub const TT_PRIM_QSPLINE: u32 = 2; +pub const TT_PRIM_CSPLINE: u32 = 3; +pub const GCP_DBCS: u32 = 1; +pub const GCP_REORDER: u32 = 2; +pub const GCP_USEKERNING: u32 = 8; +pub const GCP_GLYPHSHAPE: u32 = 16; +pub const GCP_LIGATE: u32 = 32; +pub const GCP_DIACRITIC: u32 = 256; +pub const GCP_KASHIDA: u32 = 1024; +pub const GCP_ERROR: u32 = 32768; +pub const FLI_MASK: u32 = 4155; +pub const GCP_JUSTIFY: u32 = 65536; +pub const FLI_GLYPHS: u32 = 262144; +pub const GCP_CLASSIN: u32 = 524288; +pub const GCP_MAXEXTENT: u32 = 1048576; +pub const GCP_JUSTIFYIN: u32 = 2097152; +pub const GCP_DISPLAYZWG: u32 = 4194304; +pub const GCP_SYMSWAPOFF: u32 = 8388608; +pub const GCP_NUMERICOVERRIDE: u32 = 16777216; +pub const GCP_NEUTRALOVERRIDE: u32 = 33554432; +pub const GCP_NUMERICSLATIN: u32 = 67108864; +pub const GCP_NUMERICSLOCAL: u32 = 134217728; +pub const GCPCLASS_LATIN: u32 = 1; +pub const GCPCLASS_HEBREW: u32 = 2; +pub const GCPCLASS_ARABIC: u32 = 2; +pub const GCPCLASS_NEUTRAL: u32 = 3; +pub const GCPCLASS_LOCALNUMBER: u32 = 4; +pub const GCPCLASS_LATINNUMBER: u32 = 5; +pub const GCPCLASS_LATINNUMERICTERMINATOR: u32 = 6; +pub const GCPCLASS_LATINNUMERICSEPARATOR: u32 = 7; +pub const GCPCLASS_NUMERICSEPARATOR: u32 = 8; +pub const GCPCLASS_PREBOUNDLTR: u32 = 128; +pub const GCPCLASS_PREBOUNDRTL: u32 = 64; +pub const GCPCLASS_POSTBOUNDLTR: u32 = 32; +pub const GCPCLASS_POSTBOUNDRTL: u32 = 16; +pub const GCPGLYPH_LINKBEFORE: u32 = 32768; +pub const GCPGLYPH_LINKAFTER: u32 = 16384; +pub const TT_AVAILABLE: u32 = 1; +pub const TT_ENABLED: u32 = 2; +pub const PFD_TYPE_RGBA: u32 = 0; +pub const PFD_TYPE_COLORINDEX: u32 = 1; +pub const PFD_MAIN_PLANE: u32 = 0; +pub const PFD_OVERLAY_PLANE: u32 = 1; +pub const PFD_UNDERLAY_PLANE: i32 = -1; +pub const PFD_DOUBLEBUFFER: u32 = 1; +pub const PFD_STEREO: u32 = 2; +pub const PFD_DRAW_TO_WINDOW: u32 = 4; +pub const PFD_DRAW_TO_BITMAP: u32 = 8; +pub const PFD_SUPPORT_GDI: u32 = 16; +pub const PFD_SUPPORT_OPENGL: u32 = 32; +pub const PFD_GENERIC_FORMAT: u32 = 64; +pub const PFD_NEED_PALETTE: u32 = 128; +pub const PFD_NEED_SYSTEM_PALETTE: u32 = 256; +pub const PFD_SWAP_EXCHANGE: u32 = 512; +pub const PFD_SWAP_COPY: u32 = 1024; +pub const PFD_SWAP_LAYER_BUFFERS: u32 = 2048; +pub const PFD_GENERIC_ACCELERATED: u32 = 4096; +pub const PFD_SUPPORT_DIRECTDRAW: u32 = 8192; +pub const PFD_DIRECT3D_ACCELERATED: u32 = 16384; +pub const PFD_SUPPORT_COMPOSITION: u32 = 32768; +pub const PFD_DEPTH_DONTCARE: u32 = 536870912; +pub const PFD_DOUBLEBUFFER_DONTCARE: u32 = 1073741824; +pub const PFD_STEREO_DONTCARE: u32 = 2147483648; +pub const DC_BINADJUST: u32 = 19; +pub const DC_EMF_COMPLIANT: u32 = 20; +pub const DC_DATATYPE_PRODUCED: u32 = 21; +pub const DC_COLLATE: u32 = 22; +pub const DC_MANUFACTURER: u32 = 23; +pub const DC_MODEL: u32 = 24; +pub const DC_PERSONALITY: u32 = 25; +pub const DC_PRINTRATE: u32 = 26; +pub const DC_PRINTRATEUNIT: u32 = 27; +pub const PRINTRATEUNIT_PPM: u32 = 1; +pub const PRINTRATEUNIT_CPS: u32 = 2; +pub const PRINTRATEUNIT_LPM: u32 = 3; +pub const PRINTRATEUNIT_IPM: u32 = 4; +pub const DC_PRINTERMEM: u32 = 28; +pub const DC_MEDIAREADY: u32 = 29; +pub const DC_STAPLE: u32 = 30; +pub const DC_PRINTRATEPPM: u32 = 31; +pub const DC_COLORDEVICE: u32 = 32; +pub const DC_NUP: u32 = 33; +pub const DC_MEDIATYPENAMES: u32 = 34; +pub const DC_MEDIATYPES: u32 = 35; +pub const DCTT_BITMAP: u32 = 1; +pub const DCTT_DOWNLOAD: u32 = 2; +pub const DCTT_SUBDEV: u32 = 4; +pub const DCTT_DOWNLOAD_OUTLINE: u32 = 8; +pub const DCBA_FACEUPNONE: u32 = 0; +pub const DCBA_FACEUPCENTER: u32 = 1; +pub const DCBA_FACEUPLEFT: u32 = 2; +pub const DCBA_FACEUPRIGHT: u32 = 3; +pub const DCBA_FACEDOWNNONE: u32 = 256; +pub const DCBA_FACEDOWNCENTER: u32 = 257; +pub const DCBA_FACEDOWNLEFT: u32 = 258; +pub const DCBA_FACEDOWNRIGHT: u32 = 259; +pub const GS_8BIT_INDICES: u32 = 1; +pub const GGI_MARK_NONEXISTING_GLYPHS: u32 = 1; +pub const MM_MAX_NUMAXES: u32 = 16; +pub const FR_PRIVATE: u32 = 16; +pub const FR_NOT_ENUM: u32 = 32; +pub const MM_MAX_AXES_NAMELEN: u32 = 16; +pub const AC_SRC_OVER: u32 = 0; +pub const AC_SRC_ALPHA: u32 = 1; +pub const GRADIENT_FILL_RECT_H: u32 = 0; +pub const GRADIENT_FILL_RECT_V: u32 = 1; +pub const GRADIENT_FILL_TRIANGLE: u32 = 2; +pub const GRADIENT_FILL_OP_FLAG: u32 = 255; +pub const CA_NEGATIVE: u32 = 1; +pub const CA_LOG_FILTER: u32 = 2; +pub const ILLUMINANT_DEVICE_DEFAULT: u32 = 0; +pub const ILLUMINANT_A: u32 = 1; +pub const ILLUMINANT_B: u32 = 2; +pub const ILLUMINANT_C: u32 = 3; +pub const ILLUMINANT_D50: u32 = 4; +pub const ILLUMINANT_D55: u32 = 5; +pub const ILLUMINANT_D65: u32 = 6; +pub const ILLUMINANT_D75: u32 = 7; +pub const ILLUMINANT_F2: u32 = 8; +pub const ILLUMINANT_MAX_INDEX: u32 = 8; +pub const ILLUMINANT_TUNGSTEN: u32 = 1; +pub const ILLUMINANT_DAYLIGHT: u32 = 3; +pub const ILLUMINANT_FLUORESCENT: u32 = 8; +pub const ILLUMINANT_NTSC: u32 = 3; +pub const DI_APPBANDING: u32 = 1; +pub const DI_ROPS_READ_DESTINATION: u32 = 2; +pub const FONTMAPPER_MAX: u32 = 10; +pub const ICM_OFF: u32 = 1; +pub const ICM_ON: u32 = 2; +pub const ICM_QUERY: u32 = 3; +pub const ICM_DONE_OUTSIDEDC: u32 = 4; +pub const ENHMETA_SIGNATURE: u32 = 1179469088; +pub const ENHMETA_STOCK_OBJECT: u32 = 2147483648; +pub const EMR_HEADER: u32 = 1; +pub const EMR_POLYBEZIER: u32 = 2; +pub const EMR_POLYGON: u32 = 3; +pub const EMR_POLYLINE: u32 = 4; +pub const EMR_POLYBEZIERTO: u32 = 5; +pub const EMR_POLYLINETO: u32 = 6; +pub const EMR_POLYPOLYLINE: u32 = 7; +pub const EMR_POLYPOLYGON: u32 = 8; +pub const EMR_SETWINDOWEXTEX: u32 = 9; +pub const EMR_SETWINDOWORGEX: u32 = 10; +pub const EMR_SETVIEWPORTEXTEX: u32 = 11; +pub const EMR_SETVIEWPORTORGEX: u32 = 12; +pub const EMR_SETBRUSHORGEX: u32 = 13; +pub const EMR_EOF: u32 = 14; +pub const EMR_SETPIXELV: u32 = 15; +pub const EMR_SETMAPPERFLAGS: u32 = 16; +pub const EMR_SETMAPMODE: u32 = 17; +pub const EMR_SETBKMODE: u32 = 18; +pub const EMR_SETPOLYFILLMODE: u32 = 19; +pub const EMR_SETROP2: u32 = 20; +pub const EMR_SETSTRETCHBLTMODE: u32 = 21; +pub const EMR_SETTEXTALIGN: u32 = 22; +pub const EMR_SETCOLORADJUSTMENT: u32 = 23; +pub const EMR_SETTEXTCOLOR: u32 = 24; +pub const EMR_SETBKCOLOR: u32 = 25; +pub const EMR_OFFSETCLIPRGN: u32 = 26; +pub const EMR_MOVETOEX: u32 = 27; +pub const EMR_SETMETARGN: u32 = 28; +pub const EMR_EXCLUDECLIPRECT: u32 = 29; +pub const EMR_INTERSECTCLIPRECT: u32 = 30; +pub const EMR_SCALEVIEWPORTEXTEX: u32 = 31; +pub const EMR_SCALEWINDOWEXTEX: u32 = 32; +pub const EMR_SAVEDC: u32 = 33; +pub const EMR_RESTOREDC: u32 = 34; +pub const EMR_SETWORLDTRANSFORM: u32 = 35; +pub const EMR_MODIFYWORLDTRANSFORM: u32 = 36; +pub const EMR_SELECTOBJECT: u32 = 37; +pub const EMR_CREATEPEN: u32 = 38; +pub const EMR_CREATEBRUSHINDIRECT: u32 = 39; +pub const EMR_DELETEOBJECT: u32 = 40; +pub const EMR_ANGLEARC: u32 = 41; +pub const EMR_ELLIPSE: u32 = 42; +pub const EMR_RECTANGLE: u32 = 43; +pub const EMR_ROUNDRECT: u32 = 44; +pub const EMR_ARC: u32 = 45; +pub const EMR_CHORD: u32 = 46; +pub const EMR_PIE: u32 = 47; +pub const EMR_SELECTPALETTE: u32 = 48; +pub const EMR_CREATEPALETTE: u32 = 49; +pub const EMR_SETPALETTEENTRIES: u32 = 50; +pub const EMR_RESIZEPALETTE: u32 = 51; +pub const EMR_REALIZEPALETTE: u32 = 52; +pub const EMR_EXTFLOODFILL: u32 = 53; +pub const EMR_LINETO: u32 = 54; +pub const EMR_ARCTO: u32 = 55; +pub const EMR_POLYDRAW: u32 = 56; +pub const EMR_SETARCDIRECTION: u32 = 57; +pub const EMR_SETMITERLIMIT: u32 = 58; +pub const EMR_BEGINPATH: u32 = 59; +pub const EMR_ENDPATH: u32 = 60; +pub const EMR_CLOSEFIGURE: u32 = 61; +pub const EMR_FILLPATH: u32 = 62; +pub const EMR_STROKEANDFILLPATH: u32 = 63; +pub const EMR_STROKEPATH: u32 = 64; +pub const EMR_FLATTENPATH: u32 = 65; +pub const EMR_WIDENPATH: u32 = 66; +pub const EMR_SELECTCLIPPATH: u32 = 67; +pub const EMR_ABORTPATH: u32 = 68; +pub const EMR_GDICOMMENT: u32 = 70; +pub const EMR_FILLRGN: u32 = 71; +pub const EMR_FRAMERGN: u32 = 72; +pub const EMR_INVERTRGN: u32 = 73; +pub const EMR_PAINTRGN: u32 = 74; +pub const EMR_EXTSELECTCLIPRGN: u32 = 75; +pub const EMR_BITBLT: u32 = 76; +pub const EMR_STRETCHBLT: u32 = 77; +pub const EMR_MASKBLT: u32 = 78; +pub const EMR_PLGBLT: u32 = 79; +pub const EMR_SETDIBITSTODEVICE: u32 = 80; +pub const EMR_STRETCHDIBITS: u32 = 81; +pub const EMR_EXTCREATEFONTINDIRECTW: u32 = 82; +pub const EMR_EXTTEXTOUTA: u32 = 83; +pub const EMR_EXTTEXTOUTW: u32 = 84; +pub const EMR_POLYBEZIER16: u32 = 85; +pub const EMR_POLYGON16: u32 = 86; +pub const EMR_POLYLINE16: u32 = 87; +pub const EMR_POLYBEZIERTO16: u32 = 88; +pub const EMR_POLYLINETO16: u32 = 89; +pub const EMR_POLYPOLYLINE16: u32 = 90; +pub const EMR_POLYPOLYGON16: u32 = 91; +pub const EMR_POLYDRAW16: u32 = 92; +pub const EMR_CREATEMONOBRUSH: u32 = 93; +pub const EMR_CREATEDIBPATTERNBRUSHPT: u32 = 94; +pub const EMR_EXTCREATEPEN: u32 = 95; +pub const EMR_POLYTEXTOUTA: u32 = 96; +pub const EMR_POLYTEXTOUTW: u32 = 97; +pub const EMR_SETICMMODE: u32 = 98; +pub const EMR_CREATECOLORSPACE: u32 = 99; +pub const EMR_SETCOLORSPACE: u32 = 100; +pub const EMR_DELETECOLORSPACE: u32 = 101; +pub const EMR_GLSRECORD: u32 = 102; +pub const EMR_GLSBOUNDEDRECORD: u32 = 103; +pub const EMR_PIXELFORMAT: u32 = 104; +pub const EMR_RESERVED_105: u32 = 105; +pub const EMR_RESERVED_106: u32 = 106; +pub const EMR_RESERVED_107: u32 = 107; +pub const EMR_RESERVED_108: u32 = 108; +pub const EMR_RESERVED_109: u32 = 109; +pub const EMR_RESERVED_110: u32 = 110; +pub const EMR_COLORCORRECTPALETTE: u32 = 111; +pub const EMR_SETICMPROFILEA: u32 = 112; +pub const EMR_SETICMPROFILEW: u32 = 113; +pub const EMR_ALPHABLEND: u32 = 114; +pub const EMR_SETLAYOUT: u32 = 115; +pub const EMR_TRANSPARENTBLT: u32 = 116; +pub const EMR_RESERVED_117: u32 = 117; +pub const EMR_GRADIENTFILL: u32 = 118; +pub const EMR_RESERVED_119: u32 = 119; +pub const EMR_RESERVED_120: u32 = 120; +pub const EMR_COLORMATCHTOTARGETW: u32 = 121; +pub const EMR_CREATECOLORSPACEW: u32 = 122; +pub const EMR_MIN: u32 = 1; +pub const EMR_MAX: u32 = 122; +pub const SETICMPROFILE_EMBEDED: u32 = 1; +pub const CREATECOLORSPACE_EMBEDED: u32 = 1; +pub const COLORMATCHTOTARGET_EMBEDED: u32 = 1; +pub const GDICOMMENT_IDENTIFIER: u32 = 1128875079; +pub const GDICOMMENT_WINDOWS_METAFILE: u32 = 2147483649; +pub const GDICOMMENT_BEGINGROUP: u32 = 2; +pub const GDICOMMENT_ENDGROUP: u32 = 3; +pub const GDICOMMENT_MULTIFORMATS: u32 = 1073741828; +pub const EPS_SIGNATURE: u32 = 1179865157; +pub const GDICOMMENT_UNICODE_STRING: u32 = 64; +pub const GDICOMMENT_UNICODE_END: u32 = 128; +pub const WGL_FONT_LINES: u32 = 0; +pub const WGL_FONT_POLYGONS: u32 = 1; +pub const LPD_DOUBLEBUFFER: u32 = 1; +pub const LPD_STEREO: u32 = 2; +pub const LPD_SUPPORT_GDI: u32 = 16; +pub const LPD_SUPPORT_OPENGL: u32 = 32; +pub const LPD_SHARE_DEPTH: u32 = 64; +pub const LPD_SHARE_STENCIL: u32 = 128; +pub const LPD_SHARE_ACCUM: u32 = 256; +pub const LPD_SWAP_EXCHANGE: u32 = 512; +pub const LPD_SWAP_COPY: u32 = 1024; +pub const LPD_TRANSPARENT: u32 = 4096; +pub const LPD_TYPE_RGBA: u32 = 0; +pub const LPD_TYPE_COLORINDEX: u32 = 1; +pub const WGL_SWAP_MAIN_PLANE: u32 = 1; +pub const WGL_SWAP_OVERLAY1: u32 = 2; +pub const WGL_SWAP_OVERLAY2: u32 = 4; +pub const WGL_SWAP_OVERLAY3: u32 = 8; +pub const WGL_SWAP_OVERLAY4: u32 = 16; +pub const WGL_SWAP_OVERLAY5: u32 = 32; +pub const WGL_SWAP_OVERLAY6: u32 = 64; +pub const WGL_SWAP_OVERLAY7: u32 = 128; +pub const WGL_SWAP_OVERLAY8: u32 = 256; +pub const WGL_SWAP_OVERLAY9: u32 = 512; +pub const WGL_SWAP_OVERLAY10: u32 = 1024; +pub const WGL_SWAP_OVERLAY11: u32 = 2048; +pub const WGL_SWAP_OVERLAY12: u32 = 4096; +pub const WGL_SWAP_OVERLAY13: u32 = 8192; +pub const WGL_SWAP_OVERLAY14: u32 = 16384; +pub const WGL_SWAP_OVERLAY15: u32 = 32768; +pub const WGL_SWAP_UNDERLAY1: u32 = 65536; +pub const WGL_SWAP_UNDERLAY2: u32 = 131072; +pub const WGL_SWAP_UNDERLAY3: u32 = 262144; +pub const WGL_SWAP_UNDERLAY4: u32 = 524288; +pub const WGL_SWAP_UNDERLAY5: u32 = 1048576; +pub const WGL_SWAP_UNDERLAY6: u32 = 2097152; +pub const WGL_SWAP_UNDERLAY7: u32 = 4194304; +pub const WGL_SWAP_UNDERLAY8: u32 = 8388608; +pub const WGL_SWAP_UNDERLAY9: u32 = 16777216; +pub const WGL_SWAP_UNDERLAY10: u32 = 33554432; +pub const WGL_SWAP_UNDERLAY11: u32 = 67108864; +pub const WGL_SWAP_UNDERLAY12: u32 = 134217728; +pub const WGL_SWAP_UNDERLAY13: u32 = 268435456; +pub const WGL_SWAP_UNDERLAY14: u32 = 536870912; +pub const WGL_SWAP_UNDERLAY15: u32 = 1073741824; +pub const WGL_SWAPMULTIPLE_MAX: u32 = 16; +pub const DIFFERENCE: u32 = 11; +pub const SB_HORZ: u32 = 0; +pub const SB_VERT: u32 = 1; +pub const SB_CTL: u32 = 2; +pub const SB_BOTH: u32 = 3; +pub const SB_LINEUP: u32 = 0; +pub const SB_LINELEFT: u32 = 0; +pub const SB_LINEDOWN: u32 = 1; +pub const SB_LINERIGHT: u32 = 1; +pub const SB_PAGEUP: u32 = 2; +pub const SB_PAGELEFT: u32 = 2; +pub const SB_PAGEDOWN: u32 = 3; +pub const SB_PAGERIGHT: u32 = 3; +pub const SB_THUMBPOSITION: u32 = 4; +pub const SB_THUMBTRACK: u32 = 5; +pub const SB_TOP: u32 = 6; +pub const SB_LEFT: u32 = 6; +pub const SB_BOTTOM: u32 = 7; +pub const SB_RIGHT: u32 = 7; +pub const SB_ENDSCROLL: u32 = 8; +pub const SW_HIDE: u32 = 0; +pub const SW_SHOWNORMAL: u32 = 1; +pub const SW_NORMAL: u32 = 1; +pub const SW_SHOWMINIMIZED: u32 = 2; +pub const SW_SHOWMAXIMIZED: u32 = 3; +pub const SW_MAXIMIZE: u32 = 3; +pub const SW_SHOWNOACTIVATE: u32 = 4; +pub const SW_SHOW: u32 = 5; +pub const SW_MINIMIZE: u32 = 6; +pub const SW_SHOWMINNOACTIVE: u32 = 7; +pub const SW_SHOWNA: u32 = 8; +pub const SW_RESTORE: u32 = 9; +pub const SW_SHOWDEFAULT: u32 = 10; +pub const SW_FORCEMINIMIZE: u32 = 11; +pub const SW_MAX: u32 = 11; +pub const HIDE_WINDOW: u32 = 0; +pub const SHOW_OPENWINDOW: u32 = 1; +pub const SHOW_ICONWINDOW: u32 = 2; +pub const SHOW_FULLSCREEN: u32 = 3; +pub const SHOW_OPENNOACTIVATE: u32 = 4; +pub const SW_PARENTCLOSING: u32 = 1; +pub const SW_OTHERZOOM: u32 = 2; +pub const SW_PARENTOPENING: u32 = 3; +pub const SW_OTHERUNZOOM: u32 = 4; +pub const AW_HOR_POSITIVE: u32 = 1; +pub const AW_HOR_NEGATIVE: u32 = 2; +pub const AW_VER_POSITIVE: u32 = 4; +pub const AW_VER_NEGATIVE: u32 = 8; +pub const AW_CENTER: u32 = 16; +pub const AW_HIDE: u32 = 65536; +pub const AW_ACTIVATE: u32 = 131072; +pub const AW_SLIDE: u32 = 262144; +pub const AW_BLEND: u32 = 524288; +pub const KF_EXTENDED: u32 = 256; +pub const KF_DLGMODE: u32 = 2048; +pub const KF_MENUMODE: u32 = 4096; +pub const KF_ALTDOWN: u32 = 8192; +pub const KF_REPEAT: u32 = 16384; +pub const KF_UP: u32 = 32768; +pub const VK_LBUTTON: u32 = 1; +pub const VK_RBUTTON: u32 = 2; +pub const VK_CANCEL: u32 = 3; +pub const VK_MBUTTON: u32 = 4; +pub const VK_XBUTTON1: u32 = 5; +pub const VK_XBUTTON2: u32 = 6; +pub const VK_BACK: u32 = 8; +pub const VK_TAB: u32 = 9; +pub const VK_CLEAR: u32 = 12; +pub const VK_RETURN: u32 = 13; +pub const VK_SHIFT: u32 = 16; +pub const VK_CONTROL: u32 = 17; +pub const VK_MENU: u32 = 18; +pub const VK_PAUSE: u32 = 19; +pub const VK_CAPITAL: u32 = 20; +pub const VK_KANA: u32 = 21; +pub const VK_HANGEUL: u32 = 21; +pub const VK_HANGUL: u32 = 21; +pub const VK_IME_ON: u32 = 22; +pub const VK_JUNJA: u32 = 23; +pub const VK_FINAL: u32 = 24; +pub const VK_HANJA: u32 = 25; +pub const VK_KANJI: u32 = 25; +pub const VK_IME_OFF: u32 = 26; +pub const VK_ESCAPE: u32 = 27; +pub const VK_CONVERT: u32 = 28; +pub const VK_NONCONVERT: u32 = 29; +pub const VK_ACCEPT: u32 = 30; +pub const VK_MODECHANGE: u32 = 31; +pub const VK_SPACE: u32 = 32; +pub const VK_PRIOR: u32 = 33; +pub const VK_NEXT: u32 = 34; +pub const VK_END: u32 = 35; +pub const VK_HOME: u32 = 36; +pub const VK_LEFT: u32 = 37; +pub const VK_UP: u32 = 38; +pub const VK_RIGHT: u32 = 39; +pub const VK_DOWN: u32 = 40; +pub const VK_SELECT: u32 = 41; +pub const VK_PRINT: u32 = 42; +pub const VK_EXECUTE: u32 = 43; +pub const VK_SNAPSHOT: u32 = 44; +pub const VK_INSERT: u32 = 45; +pub const VK_DELETE: u32 = 46; +pub const VK_HELP: u32 = 47; +pub const VK_LWIN: u32 = 91; +pub const VK_RWIN: u32 = 92; +pub const VK_APPS: u32 = 93; +pub const VK_SLEEP: u32 = 95; +pub const VK_NUMPAD0: u32 = 96; +pub const VK_NUMPAD1: u32 = 97; +pub const VK_NUMPAD2: u32 = 98; +pub const VK_NUMPAD3: u32 = 99; +pub const VK_NUMPAD4: u32 = 100; +pub const VK_NUMPAD5: u32 = 101; +pub const VK_NUMPAD6: u32 = 102; +pub const VK_NUMPAD7: u32 = 103; +pub const VK_NUMPAD8: u32 = 104; +pub const VK_NUMPAD9: u32 = 105; +pub const VK_MULTIPLY: u32 = 106; +pub const VK_ADD: u32 = 107; +pub const VK_SEPARATOR: u32 = 108; +pub const VK_SUBTRACT: u32 = 109; +pub const VK_DECIMAL: u32 = 110; +pub const VK_DIVIDE: u32 = 111; +pub const VK_F1: u32 = 112; +pub const VK_F2: u32 = 113; +pub const VK_F3: u32 = 114; +pub const VK_F4: u32 = 115; +pub const VK_F5: u32 = 116; +pub const VK_F6: u32 = 117; +pub const VK_F7: u32 = 118; +pub const VK_F8: u32 = 119; +pub const VK_F9: u32 = 120; +pub const VK_F10: u32 = 121; +pub const VK_F11: u32 = 122; +pub const VK_F12: u32 = 123; +pub const VK_F13: u32 = 124; +pub const VK_F14: u32 = 125; +pub const VK_F15: u32 = 126; +pub const VK_F16: u32 = 127; +pub const VK_F17: u32 = 128; +pub const VK_F18: u32 = 129; +pub const VK_F19: u32 = 130; +pub const VK_F20: u32 = 131; +pub const VK_F21: u32 = 132; +pub const VK_F22: u32 = 133; +pub const VK_F23: u32 = 134; +pub const VK_F24: u32 = 135; +pub const VK_NAVIGATION_VIEW: u32 = 136; +pub const VK_NAVIGATION_MENU: u32 = 137; +pub const VK_NAVIGATION_UP: u32 = 138; +pub const VK_NAVIGATION_DOWN: u32 = 139; +pub const VK_NAVIGATION_LEFT: u32 = 140; +pub const VK_NAVIGATION_RIGHT: u32 = 141; +pub const VK_NAVIGATION_ACCEPT: u32 = 142; +pub const VK_NAVIGATION_CANCEL: u32 = 143; +pub const VK_NUMLOCK: u32 = 144; +pub const VK_SCROLL: u32 = 145; +pub const VK_OEM_NEC_EQUAL: u32 = 146; +pub const VK_OEM_FJ_JISHO: u32 = 146; +pub const VK_OEM_FJ_MASSHOU: u32 = 147; +pub const VK_OEM_FJ_TOUROKU: u32 = 148; +pub const VK_OEM_FJ_LOYA: u32 = 149; +pub const VK_OEM_FJ_ROYA: u32 = 150; +pub const VK_LSHIFT: u32 = 160; +pub const VK_RSHIFT: u32 = 161; +pub const VK_LCONTROL: u32 = 162; +pub const VK_RCONTROL: u32 = 163; +pub const VK_LMENU: u32 = 164; +pub const VK_RMENU: u32 = 165; +pub const VK_BROWSER_BACK: u32 = 166; +pub const VK_BROWSER_FORWARD: u32 = 167; +pub const VK_BROWSER_REFRESH: u32 = 168; +pub const VK_BROWSER_STOP: u32 = 169; +pub const VK_BROWSER_SEARCH: u32 = 170; +pub const VK_BROWSER_FAVORITES: u32 = 171; +pub const VK_BROWSER_HOME: u32 = 172; +pub const VK_VOLUME_MUTE: u32 = 173; +pub const VK_VOLUME_DOWN: u32 = 174; +pub const VK_VOLUME_UP: u32 = 175; +pub const VK_MEDIA_NEXT_TRACK: u32 = 176; +pub const VK_MEDIA_PREV_TRACK: u32 = 177; +pub const VK_MEDIA_STOP: u32 = 178; +pub const VK_MEDIA_PLAY_PAUSE: u32 = 179; +pub const VK_LAUNCH_MAIL: u32 = 180; +pub const VK_LAUNCH_MEDIA_SELECT: u32 = 181; +pub const VK_LAUNCH_APP1: u32 = 182; +pub const VK_LAUNCH_APP2: u32 = 183; +pub const VK_OEM_1: u32 = 186; +pub const VK_OEM_PLUS: u32 = 187; +pub const VK_OEM_COMMA: u32 = 188; +pub const VK_OEM_MINUS: u32 = 189; +pub const VK_OEM_PERIOD: u32 = 190; +pub const VK_OEM_2: u32 = 191; +pub const VK_OEM_3: u32 = 192; +pub const VK_GAMEPAD_A: u32 = 195; +pub const VK_GAMEPAD_B: u32 = 196; +pub const VK_GAMEPAD_X: u32 = 197; +pub const VK_GAMEPAD_Y: u32 = 198; +pub const VK_GAMEPAD_RIGHT_SHOULDER: u32 = 199; +pub const VK_GAMEPAD_LEFT_SHOULDER: u32 = 200; +pub const VK_GAMEPAD_LEFT_TRIGGER: u32 = 201; +pub const VK_GAMEPAD_RIGHT_TRIGGER: u32 = 202; +pub const VK_GAMEPAD_DPAD_UP: u32 = 203; +pub const VK_GAMEPAD_DPAD_DOWN: u32 = 204; +pub const VK_GAMEPAD_DPAD_LEFT: u32 = 205; +pub const VK_GAMEPAD_DPAD_RIGHT: u32 = 206; +pub const VK_GAMEPAD_MENU: u32 = 207; +pub const VK_GAMEPAD_VIEW: u32 = 208; +pub const VK_GAMEPAD_LEFT_THUMBSTICK_BUTTON: u32 = 209; +pub const VK_GAMEPAD_RIGHT_THUMBSTICK_BUTTON: u32 = 210; +pub const VK_GAMEPAD_LEFT_THUMBSTICK_UP: u32 = 211; +pub const VK_GAMEPAD_LEFT_THUMBSTICK_DOWN: u32 = 212; +pub const VK_GAMEPAD_LEFT_THUMBSTICK_RIGHT: u32 = 213; +pub const VK_GAMEPAD_LEFT_THUMBSTICK_LEFT: u32 = 214; +pub const VK_GAMEPAD_RIGHT_THUMBSTICK_UP: u32 = 215; +pub const VK_GAMEPAD_RIGHT_THUMBSTICK_DOWN: u32 = 216; +pub const VK_GAMEPAD_RIGHT_THUMBSTICK_RIGHT: u32 = 217; +pub const VK_GAMEPAD_RIGHT_THUMBSTICK_LEFT: u32 = 218; +pub const VK_OEM_4: u32 = 219; +pub const VK_OEM_5: u32 = 220; +pub const VK_OEM_6: u32 = 221; +pub const VK_OEM_7: u32 = 222; +pub const VK_OEM_8: u32 = 223; +pub const VK_OEM_AX: u32 = 225; +pub const VK_OEM_102: u32 = 226; +pub const VK_ICO_HELP: u32 = 227; +pub const VK_ICO_00: u32 = 228; +pub const VK_PROCESSKEY: u32 = 229; +pub const VK_ICO_CLEAR: u32 = 230; +pub const VK_PACKET: u32 = 231; +pub const VK_OEM_RESET: u32 = 233; +pub const VK_OEM_JUMP: u32 = 234; +pub const VK_OEM_PA1: u32 = 235; +pub const VK_OEM_PA2: u32 = 236; +pub const VK_OEM_PA3: u32 = 237; +pub const VK_OEM_WSCTRL: u32 = 238; +pub const VK_OEM_CUSEL: u32 = 239; +pub const VK_OEM_ATTN: u32 = 240; +pub const VK_OEM_FINISH: u32 = 241; +pub const VK_OEM_COPY: u32 = 242; +pub const VK_OEM_AUTO: u32 = 243; +pub const VK_OEM_ENLW: u32 = 244; +pub const VK_OEM_BACKTAB: u32 = 245; +pub const VK_ATTN: u32 = 246; +pub const VK_CRSEL: u32 = 247; +pub const VK_EXSEL: u32 = 248; +pub const VK_EREOF: u32 = 249; +pub const VK_PLAY: u32 = 250; +pub const VK_ZOOM: u32 = 251; +pub const VK_NONAME: u32 = 252; +pub const VK_PA1: u32 = 253; +pub const VK_OEM_CLEAR: u32 = 254; +pub const WH_MIN: i32 = -1; +pub const WH_MSGFILTER: i32 = -1; +pub const WH_JOURNALRECORD: u32 = 0; +pub const WH_JOURNALPLAYBACK: u32 = 1; +pub const WH_KEYBOARD: u32 = 2; +pub const WH_GETMESSAGE: u32 = 3; +pub const WH_CALLWNDPROC: u32 = 4; +pub const WH_CBT: u32 = 5; +pub const WH_SYSMSGFILTER: u32 = 6; +pub const WH_MOUSE: u32 = 7; +pub const WH_DEBUG: u32 = 9; +pub const WH_SHELL: u32 = 10; +pub const WH_FOREGROUNDIDLE: u32 = 11; +pub const WH_CALLWNDPROCRET: u32 = 12; +pub const WH_KEYBOARD_LL: u32 = 13; +pub const WH_MOUSE_LL: u32 = 14; +pub const WH_MAX: u32 = 14; +pub const WH_MINHOOK: i32 = -1; +pub const WH_MAXHOOK: u32 = 14; +pub const HC_ACTION: u32 = 0; +pub const HC_GETNEXT: u32 = 1; +pub const HC_SKIP: u32 = 2; +pub const HC_NOREMOVE: u32 = 3; +pub const HC_NOREM: u32 = 3; +pub const HC_SYSMODALON: u32 = 4; +pub const HC_SYSMODALOFF: u32 = 5; +pub const HCBT_MOVESIZE: u32 = 0; +pub const HCBT_MINMAX: u32 = 1; +pub const HCBT_QS: u32 = 2; +pub const HCBT_CREATEWND: u32 = 3; +pub const HCBT_DESTROYWND: u32 = 4; +pub const HCBT_ACTIVATE: u32 = 5; +pub const HCBT_CLICKSKIPPED: u32 = 6; +pub const HCBT_KEYSKIPPED: u32 = 7; +pub const HCBT_SYSCOMMAND: u32 = 8; +pub const HCBT_SETFOCUS: u32 = 9; +pub const WTS_CONSOLE_CONNECT: u32 = 1; +pub const WTS_CONSOLE_DISCONNECT: u32 = 2; +pub const WTS_REMOTE_CONNECT: u32 = 3; +pub const WTS_REMOTE_DISCONNECT: u32 = 4; +pub const WTS_SESSION_LOGON: u32 = 5; +pub const WTS_SESSION_LOGOFF: u32 = 6; +pub const WTS_SESSION_LOCK: u32 = 7; +pub const WTS_SESSION_UNLOCK: u32 = 8; +pub const WTS_SESSION_REMOTE_CONTROL: u32 = 9; +pub const WTS_SESSION_CREATE: u32 = 10; +pub const WTS_SESSION_TERMINATE: u32 = 11; +pub const MSGF_DIALOGBOX: u32 = 0; +pub const MSGF_MESSAGEBOX: u32 = 1; +pub const MSGF_MENU: u32 = 2; +pub const MSGF_SCROLLBAR: u32 = 5; +pub const MSGF_NEXTWINDOW: u32 = 6; +pub const MSGF_MAX: u32 = 8; +pub const MSGF_USER: u32 = 4096; +pub const HSHELL_WINDOWCREATED: u32 = 1; +pub const HSHELL_WINDOWDESTROYED: u32 = 2; +pub const HSHELL_ACTIVATESHELLWINDOW: u32 = 3; +pub const HSHELL_WINDOWACTIVATED: u32 = 4; +pub const HSHELL_GETMINRECT: u32 = 5; +pub const HSHELL_REDRAW: u32 = 6; +pub const HSHELL_TASKMAN: u32 = 7; +pub const HSHELL_LANGUAGE: u32 = 8; +pub const HSHELL_SYSMENU: u32 = 9; +pub const HSHELL_ENDTASK: u32 = 10; +pub const HSHELL_ACCESSIBILITYSTATE: u32 = 11; +pub const HSHELL_APPCOMMAND: u32 = 12; +pub const HSHELL_WINDOWREPLACED: u32 = 13; +pub const HSHELL_WINDOWREPLACING: u32 = 14; +pub const HSHELL_MONITORCHANGED: u32 = 16; +pub const HSHELL_HIGHBIT: u32 = 32768; +pub const HSHELL_FLASH: u32 = 32774; +pub const HSHELL_RUDEAPPACTIVATED: u32 = 32772; +pub const APPCOMMAND_BROWSER_BACKWARD: u32 = 1; +pub const APPCOMMAND_BROWSER_FORWARD: u32 = 2; +pub const APPCOMMAND_BROWSER_REFRESH: u32 = 3; +pub const APPCOMMAND_BROWSER_STOP: u32 = 4; +pub const APPCOMMAND_BROWSER_SEARCH: u32 = 5; +pub const APPCOMMAND_BROWSER_FAVORITES: u32 = 6; +pub const APPCOMMAND_BROWSER_HOME: u32 = 7; +pub const APPCOMMAND_VOLUME_MUTE: u32 = 8; +pub const APPCOMMAND_VOLUME_DOWN: u32 = 9; +pub const APPCOMMAND_VOLUME_UP: u32 = 10; +pub const APPCOMMAND_MEDIA_NEXTTRACK: u32 = 11; +pub const APPCOMMAND_MEDIA_PREVIOUSTRACK: u32 = 12; +pub const APPCOMMAND_MEDIA_STOP: u32 = 13; +pub const APPCOMMAND_MEDIA_PLAY_PAUSE: u32 = 14; +pub const APPCOMMAND_LAUNCH_MAIL: u32 = 15; +pub const APPCOMMAND_LAUNCH_MEDIA_SELECT: u32 = 16; +pub const APPCOMMAND_LAUNCH_APP1: u32 = 17; +pub const APPCOMMAND_LAUNCH_APP2: u32 = 18; +pub const APPCOMMAND_BASS_DOWN: u32 = 19; +pub const APPCOMMAND_BASS_BOOST: u32 = 20; +pub const APPCOMMAND_BASS_UP: u32 = 21; +pub const APPCOMMAND_TREBLE_DOWN: u32 = 22; +pub const APPCOMMAND_TREBLE_UP: u32 = 23; +pub const APPCOMMAND_MICROPHONE_VOLUME_MUTE: u32 = 24; +pub const APPCOMMAND_MICROPHONE_VOLUME_DOWN: u32 = 25; +pub const APPCOMMAND_MICROPHONE_VOLUME_UP: u32 = 26; +pub const APPCOMMAND_HELP: u32 = 27; +pub const APPCOMMAND_FIND: u32 = 28; +pub const APPCOMMAND_NEW: u32 = 29; +pub const APPCOMMAND_OPEN: u32 = 30; +pub const APPCOMMAND_CLOSE: u32 = 31; +pub const APPCOMMAND_SAVE: u32 = 32; +pub const APPCOMMAND_PRINT: u32 = 33; +pub const APPCOMMAND_UNDO: u32 = 34; +pub const APPCOMMAND_REDO: u32 = 35; +pub const APPCOMMAND_COPY: u32 = 36; +pub const APPCOMMAND_CUT: u32 = 37; +pub const APPCOMMAND_PASTE: u32 = 38; +pub const APPCOMMAND_REPLY_TO_MAIL: u32 = 39; +pub const APPCOMMAND_FORWARD_MAIL: u32 = 40; +pub const APPCOMMAND_SEND_MAIL: u32 = 41; +pub const APPCOMMAND_SPELL_CHECK: u32 = 42; +pub const APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE: u32 = 43; +pub const APPCOMMAND_MIC_ON_OFF_TOGGLE: u32 = 44; +pub const APPCOMMAND_CORRECTION_LIST: u32 = 45; +pub const APPCOMMAND_MEDIA_PLAY: u32 = 46; +pub const APPCOMMAND_MEDIA_PAUSE: u32 = 47; +pub const APPCOMMAND_MEDIA_RECORD: u32 = 48; +pub const APPCOMMAND_MEDIA_FAST_FORWARD: u32 = 49; +pub const APPCOMMAND_MEDIA_REWIND: u32 = 50; +pub const APPCOMMAND_MEDIA_CHANNEL_UP: u32 = 51; +pub const APPCOMMAND_MEDIA_CHANNEL_DOWN: u32 = 52; +pub const APPCOMMAND_DELETE: u32 = 53; +pub const APPCOMMAND_DWM_FLIP3D: u32 = 54; +pub const FAPPCOMMAND_MOUSE: u32 = 32768; +pub const FAPPCOMMAND_KEY: u32 = 0; +pub const FAPPCOMMAND_OEM: u32 = 4096; +pub const FAPPCOMMAND_MASK: u32 = 61440; +pub const LLKHF_EXTENDED: u32 = 1; +pub const LLKHF_INJECTED: u32 = 16; +pub const LLKHF_ALTDOWN: u32 = 32; +pub const LLKHF_UP: u32 = 128; +pub const LLKHF_LOWER_IL_INJECTED: u32 = 2; +pub const LLMHF_INJECTED: u32 = 1; +pub const LLMHF_LOWER_IL_INJECTED: u32 = 2; +pub const HKL_PREV: u32 = 0; +pub const HKL_NEXT: u32 = 1; +pub const KLF_ACTIVATE: u32 = 1; +pub const KLF_SUBSTITUTE_OK: u32 = 2; +pub const KLF_REORDER: u32 = 8; +pub const KLF_REPLACELANG: u32 = 16; +pub const KLF_NOTELLSHELL: u32 = 128; +pub const KLF_SETFORPROCESS: u32 = 256; +pub const KLF_SHIFTLOCK: u32 = 65536; +pub const KLF_RESET: u32 = 1073741824; +pub const INPUTLANGCHANGE_SYSCHARSET: u32 = 1; +pub const INPUTLANGCHANGE_FORWARD: u32 = 2; +pub const INPUTLANGCHANGE_BACKWARD: u32 = 4; +pub const KL_NAMELENGTH: u32 = 9; +pub const GMMP_USE_DISPLAY_POINTS: u32 = 1; +pub const GMMP_USE_HIGH_RESOLUTION_POINTS: u32 = 2; +pub const DESKTOP_READOBJECTS: u32 = 1; +pub const DESKTOP_CREATEWINDOW: u32 = 2; +pub const DESKTOP_CREATEMENU: u32 = 4; +pub const DESKTOP_HOOKCONTROL: u32 = 8; +pub const DESKTOP_JOURNALRECORD: u32 = 16; +pub const DESKTOP_JOURNALPLAYBACK: u32 = 32; +pub const DESKTOP_ENUMERATE: u32 = 64; +pub const DESKTOP_WRITEOBJECTS: u32 = 128; +pub const DESKTOP_SWITCHDESKTOP: u32 = 256; +pub const DF_ALLOWOTHERACCOUNTHOOK: u32 = 1; +pub const WINSTA_ENUMDESKTOPS: u32 = 1; +pub const WINSTA_READATTRIBUTES: u32 = 2; +pub const WINSTA_ACCESSCLIPBOARD: u32 = 4; +pub const WINSTA_CREATEDESKTOP: u32 = 8; +pub const WINSTA_WRITEATTRIBUTES: u32 = 16; +pub const WINSTA_ACCESSGLOBALATOMS: u32 = 32; +pub const WINSTA_EXITWINDOWS: u32 = 64; +pub const WINSTA_ENUMERATE: u32 = 256; +pub const WINSTA_READSCREEN: u32 = 512; +pub const WINSTA_ALL_ACCESS: u32 = 895; +pub const CWF_CREATE_ONLY: u32 = 1; +pub const WSF_VISIBLE: u32 = 1; +pub const UOI_FLAGS: u32 = 1; +pub const UOI_NAME: u32 = 2; +pub const UOI_TYPE: u32 = 3; +pub const UOI_USER_SID: u32 = 4; +pub const UOI_HEAPSIZE: u32 = 5; +pub const UOI_IO: u32 = 6; +pub const UOI_TIMERPROC_EXCEPTION_SUPPRESSION: u32 = 7; +pub const GWL_WNDPROC: i32 = -4; +pub const GWL_HINSTANCE: i32 = -6; +pub const GWL_HWNDPARENT: i32 = -8; +pub const GWL_STYLE: i32 = -16; +pub const GWL_EXSTYLE: i32 = -20; +pub const GWL_USERDATA: i32 = -21; +pub const GWL_ID: i32 = -12; +pub const GWLP_WNDPROC: i32 = -4; +pub const GWLP_HINSTANCE: i32 = -6; +pub const GWLP_HWNDPARENT: i32 = -8; +pub const GWLP_USERDATA: i32 = -21; +pub const GWLP_ID: i32 = -12; +pub const GCL_MENUNAME: i32 = -8; +pub const GCL_HBRBACKGROUND: i32 = -10; +pub const GCL_HCURSOR: i32 = -12; +pub const GCL_HICON: i32 = -14; +pub const GCL_HMODULE: i32 = -16; +pub const GCL_CBWNDEXTRA: i32 = -18; +pub const GCL_CBCLSEXTRA: i32 = -20; +pub const GCL_WNDPROC: i32 = -24; +pub const GCL_STYLE: i32 = -26; +pub const GCW_ATOM: i32 = -32; +pub const GCL_HICONSM: i32 = -34; +pub const GCLP_MENUNAME: i32 = -8; +pub const GCLP_HBRBACKGROUND: i32 = -10; +pub const GCLP_HCURSOR: i32 = -12; +pub const GCLP_HICON: i32 = -14; +pub const GCLP_HMODULE: i32 = -16; +pub const GCLP_WNDPROC: i32 = -24; +pub const GCLP_HICONSM: i32 = -34; +pub const WM_NULL: u32 = 0; +pub const WM_CREATE: u32 = 1; +pub const WM_DESTROY: u32 = 2; +pub const WM_MOVE: u32 = 3; +pub const WM_SIZE: u32 = 5; +pub const WM_ACTIVATE: u32 = 6; +pub const WA_INACTIVE: u32 = 0; +pub const WA_ACTIVE: u32 = 1; +pub const WA_CLICKACTIVE: u32 = 2; +pub const WM_SETFOCUS: u32 = 7; +pub const WM_KILLFOCUS: u32 = 8; +pub const WM_ENABLE: u32 = 10; +pub const WM_SETREDRAW: u32 = 11; +pub const WM_SETTEXT: u32 = 12; +pub const WM_GETTEXT: u32 = 13; +pub const WM_GETTEXTLENGTH: u32 = 14; +pub const WM_PAINT: u32 = 15; +pub const WM_CLOSE: u32 = 16; +pub const WM_QUERYENDSESSION: u32 = 17; +pub const WM_QUERYOPEN: u32 = 19; +pub const WM_ENDSESSION: u32 = 22; +pub const WM_QUIT: u32 = 18; +pub const WM_ERASEBKGND: u32 = 20; +pub const WM_SYSCOLORCHANGE: u32 = 21; +pub const WM_SHOWWINDOW: u32 = 24; +pub const WM_WININICHANGE: u32 = 26; +pub const WM_SETTINGCHANGE: u32 = 26; +pub const WM_DEVMODECHANGE: u32 = 27; +pub const WM_ACTIVATEAPP: u32 = 28; +pub const WM_FONTCHANGE: u32 = 29; +pub const WM_TIMECHANGE: u32 = 30; +pub const WM_CANCELMODE: u32 = 31; +pub const WM_SETCURSOR: u32 = 32; +pub const WM_MOUSEACTIVATE: u32 = 33; +pub const WM_CHILDACTIVATE: u32 = 34; +pub const WM_QUEUESYNC: u32 = 35; +pub const WM_GETMINMAXINFO: u32 = 36; +pub const WM_PAINTICON: u32 = 38; +pub const WM_ICONERASEBKGND: u32 = 39; +pub const WM_NEXTDLGCTL: u32 = 40; +pub const WM_SPOOLERSTATUS: u32 = 42; +pub const WM_DRAWITEM: u32 = 43; +pub const WM_MEASUREITEM: u32 = 44; +pub const WM_DELETEITEM: u32 = 45; +pub const WM_VKEYTOITEM: u32 = 46; +pub const WM_CHARTOITEM: u32 = 47; +pub const WM_SETFONT: u32 = 48; +pub const WM_GETFONT: u32 = 49; +pub const WM_SETHOTKEY: u32 = 50; +pub const WM_GETHOTKEY: u32 = 51; +pub const WM_QUERYDRAGICON: u32 = 55; +pub const WM_COMPAREITEM: u32 = 57; +pub const WM_GETOBJECT: u32 = 61; +pub const WM_COMPACTING: u32 = 65; +pub const WM_COMMNOTIFY: u32 = 68; +pub const WM_WINDOWPOSCHANGING: u32 = 70; +pub const WM_WINDOWPOSCHANGED: u32 = 71; +pub const WM_POWER: u32 = 72; +pub const PWR_OK: u32 = 1; +pub const PWR_FAIL: i32 = -1; +pub const PWR_SUSPENDREQUEST: u32 = 1; +pub const PWR_SUSPENDRESUME: u32 = 2; +pub const PWR_CRITICALRESUME: u32 = 3; +pub const WM_COPYDATA: u32 = 74; +pub const WM_CANCELJOURNAL: u32 = 75; +pub const WM_NOTIFY: u32 = 78; +pub const WM_INPUTLANGCHANGEREQUEST: u32 = 80; +pub const WM_INPUTLANGCHANGE: u32 = 81; +pub const WM_TCARD: u32 = 82; +pub const WM_HELP: u32 = 83; +pub const WM_USERCHANGED: u32 = 84; +pub const WM_NOTIFYFORMAT: u32 = 85; +pub const NFR_ANSI: u32 = 1; +pub const NFR_UNICODE: u32 = 2; +pub const NF_QUERY: u32 = 3; +pub const NF_REQUERY: u32 = 4; +pub const WM_CONTEXTMENU: u32 = 123; +pub const WM_STYLECHANGING: u32 = 124; +pub const WM_STYLECHANGED: u32 = 125; +pub const WM_DISPLAYCHANGE: u32 = 126; +pub const WM_GETICON: u32 = 127; +pub const WM_SETICON: u32 = 128; +pub const WM_NCCREATE: u32 = 129; +pub const WM_NCDESTROY: u32 = 130; +pub const WM_NCCALCSIZE: u32 = 131; +pub const WM_NCHITTEST: u32 = 132; +pub const WM_NCPAINT: u32 = 133; +pub const WM_NCACTIVATE: u32 = 134; +pub const WM_GETDLGCODE: u32 = 135; +pub const WM_SYNCPAINT: u32 = 136; +pub const WM_NCMOUSEMOVE: u32 = 160; +pub const WM_NCLBUTTONDOWN: u32 = 161; +pub const WM_NCLBUTTONUP: u32 = 162; +pub const WM_NCLBUTTONDBLCLK: u32 = 163; +pub const WM_NCRBUTTONDOWN: u32 = 164; +pub const WM_NCRBUTTONUP: u32 = 165; +pub const WM_NCRBUTTONDBLCLK: u32 = 166; +pub const WM_NCMBUTTONDOWN: u32 = 167; +pub const WM_NCMBUTTONUP: u32 = 168; +pub const WM_NCMBUTTONDBLCLK: u32 = 169; +pub const WM_NCXBUTTONDOWN: u32 = 171; +pub const WM_NCXBUTTONUP: u32 = 172; +pub const WM_NCXBUTTONDBLCLK: u32 = 173; +pub const WM_INPUT_DEVICE_CHANGE: u32 = 254; +pub const WM_INPUT: u32 = 255; +pub const WM_KEYFIRST: u32 = 256; +pub const WM_KEYDOWN: u32 = 256; +pub const WM_KEYUP: u32 = 257; +pub const WM_CHAR: u32 = 258; +pub const WM_DEADCHAR: u32 = 259; +pub const WM_SYSKEYDOWN: u32 = 260; +pub const WM_SYSKEYUP: u32 = 261; +pub const WM_SYSCHAR: u32 = 262; +pub const WM_SYSDEADCHAR: u32 = 263; +pub const WM_UNICHAR: u32 = 265; +pub const WM_KEYLAST: u32 = 265; +pub const UNICODE_NOCHAR: u32 = 65535; +pub const WM_IME_STARTCOMPOSITION: u32 = 269; +pub const WM_IME_ENDCOMPOSITION: u32 = 270; +pub const WM_IME_COMPOSITION: u32 = 271; +pub const WM_IME_KEYLAST: u32 = 271; +pub const WM_INITDIALOG: u32 = 272; +pub const WM_COMMAND: u32 = 273; +pub const WM_SYSCOMMAND: u32 = 274; +pub const WM_TIMER: u32 = 275; +pub const WM_HSCROLL: u32 = 276; +pub const WM_VSCROLL: u32 = 277; +pub const WM_INITMENU: u32 = 278; +pub const WM_INITMENUPOPUP: u32 = 279; +pub const WM_GESTURE: u32 = 281; +pub const WM_GESTURENOTIFY: u32 = 282; +pub const WM_MENUSELECT: u32 = 287; +pub const WM_MENUCHAR: u32 = 288; +pub const WM_ENTERIDLE: u32 = 289; +pub const WM_MENURBUTTONUP: u32 = 290; +pub const WM_MENUDRAG: u32 = 291; +pub const WM_MENUGETOBJECT: u32 = 292; +pub const WM_UNINITMENUPOPUP: u32 = 293; +pub const WM_MENUCOMMAND: u32 = 294; +pub const WM_CHANGEUISTATE: u32 = 295; +pub const WM_UPDATEUISTATE: u32 = 296; +pub const WM_QUERYUISTATE: u32 = 297; +pub const UIS_SET: u32 = 1; +pub const UIS_CLEAR: u32 = 2; +pub const UIS_INITIALIZE: u32 = 3; +pub const UISF_HIDEFOCUS: u32 = 1; +pub const UISF_HIDEACCEL: u32 = 2; +pub const UISF_ACTIVE: u32 = 4; +pub const WM_CTLCOLORMSGBOX: u32 = 306; +pub const WM_CTLCOLOREDIT: u32 = 307; +pub const WM_CTLCOLORLISTBOX: u32 = 308; +pub const WM_CTLCOLORBTN: u32 = 309; +pub const WM_CTLCOLORDLG: u32 = 310; +pub const WM_CTLCOLORSCROLLBAR: u32 = 311; +pub const WM_CTLCOLORSTATIC: u32 = 312; +pub const MN_GETHMENU: u32 = 481; +pub const WM_MOUSEFIRST: u32 = 512; +pub const WM_MOUSEMOVE: u32 = 512; +pub const WM_LBUTTONDOWN: u32 = 513; +pub const WM_LBUTTONUP: u32 = 514; +pub const WM_LBUTTONDBLCLK: u32 = 515; +pub const WM_RBUTTONDOWN: u32 = 516; +pub const WM_RBUTTONUP: u32 = 517; +pub const WM_RBUTTONDBLCLK: u32 = 518; +pub const WM_MBUTTONDOWN: u32 = 519; +pub const WM_MBUTTONUP: u32 = 520; +pub const WM_MBUTTONDBLCLK: u32 = 521; +pub const WM_MOUSEWHEEL: u32 = 522; +pub const WM_XBUTTONDOWN: u32 = 523; +pub const WM_XBUTTONUP: u32 = 524; +pub const WM_XBUTTONDBLCLK: u32 = 525; +pub const WM_MOUSEHWHEEL: u32 = 526; +pub const WM_MOUSELAST: u32 = 526; +pub const WHEEL_DELTA: u32 = 120; +pub const XBUTTON1: u32 = 1; +pub const XBUTTON2: u32 = 2; +pub const WM_PARENTNOTIFY: u32 = 528; +pub const WM_ENTERMENULOOP: u32 = 529; +pub const WM_EXITMENULOOP: u32 = 530; +pub const WM_NEXTMENU: u32 = 531; +pub const WM_SIZING: u32 = 532; +pub const WM_CAPTURECHANGED: u32 = 533; +pub const WM_MOVING: u32 = 534; +pub const WM_POWERBROADCAST: u32 = 536; +pub const PBT_APMQUERYSUSPEND: u32 = 0; +pub const PBT_APMQUERYSTANDBY: u32 = 1; +pub const PBT_APMQUERYSUSPENDFAILED: u32 = 2; +pub const PBT_APMQUERYSTANDBYFAILED: u32 = 3; +pub const PBT_APMSUSPEND: u32 = 4; +pub const PBT_APMSTANDBY: u32 = 5; +pub const PBT_APMRESUMECRITICAL: u32 = 6; +pub const PBT_APMRESUMESUSPEND: u32 = 7; +pub const PBT_APMRESUMESTANDBY: u32 = 8; +pub const PBTF_APMRESUMEFROMFAILURE: u32 = 1; +pub const PBT_APMBATTERYLOW: u32 = 9; +pub const PBT_APMPOWERSTATUSCHANGE: u32 = 10; +pub const PBT_APMOEMEVENT: u32 = 11; +pub const PBT_APMRESUMEAUTOMATIC: u32 = 18; +pub const PBT_POWERSETTINGCHANGE: u32 = 32787; +pub const WM_DEVICECHANGE: u32 = 537; +pub const WM_MDICREATE: u32 = 544; +pub const WM_MDIDESTROY: u32 = 545; +pub const WM_MDIACTIVATE: u32 = 546; +pub const WM_MDIRESTORE: u32 = 547; +pub const WM_MDINEXT: u32 = 548; +pub const WM_MDIMAXIMIZE: u32 = 549; +pub const WM_MDITILE: u32 = 550; +pub const WM_MDICASCADE: u32 = 551; +pub const WM_MDIICONARRANGE: u32 = 552; +pub const WM_MDIGETACTIVE: u32 = 553; +pub const WM_MDISETMENU: u32 = 560; +pub const WM_ENTERSIZEMOVE: u32 = 561; +pub const WM_EXITSIZEMOVE: u32 = 562; +pub const WM_DROPFILES: u32 = 563; +pub const WM_MDIREFRESHMENU: u32 = 564; +pub const WM_POINTERDEVICECHANGE: u32 = 568; +pub const WM_POINTERDEVICEINRANGE: u32 = 569; +pub const WM_POINTERDEVICEOUTOFRANGE: u32 = 570; +pub const WM_TOUCH: u32 = 576; +pub const WM_NCPOINTERUPDATE: u32 = 577; +pub const WM_NCPOINTERDOWN: u32 = 578; +pub const WM_NCPOINTERUP: u32 = 579; +pub const WM_POINTERUPDATE: u32 = 581; +pub const WM_POINTERDOWN: u32 = 582; +pub const WM_POINTERUP: u32 = 583; +pub const WM_POINTERENTER: u32 = 585; +pub const WM_POINTERLEAVE: u32 = 586; +pub const WM_POINTERACTIVATE: u32 = 587; +pub const WM_POINTERCAPTURECHANGED: u32 = 588; +pub const WM_TOUCHHITTESTING: u32 = 589; +pub const WM_POINTERWHEEL: u32 = 590; +pub const WM_POINTERHWHEEL: u32 = 591; +pub const DM_POINTERHITTEST: u32 = 592; +pub const WM_POINTERROUTEDTO: u32 = 593; +pub const WM_POINTERROUTEDAWAY: u32 = 594; +pub const WM_POINTERROUTEDRELEASED: u32 = 595; +pub const WM_IME_SETCONTEXT: u32 = 641; +pub const WM_IME_NOTIFY: u32 = 642; +pub const WM_IME_CONTROL: u32 = 643; +pub const WM_IME_COMPOSITIONFULL: u32 = 644; +pub const WM_IME_SELECT: u32 = 645; +pub const WM_IME_CHAR: u32 = 646; +pub const WM_IME_REQUEST: u32 = 648; +pub const WM_IME_KEYDOWN: u32 = 656; +pub const WM_IME_KEYUP: u32 = 657; +pub const WM_MOUSEHOVER: u32 = 673; +pub const WM_MOUSELEAVE: u32 = 675; +pub const WM_NCMOUSEHOVER: u32 = 672; +pub const WM_NCMOUSELEAVE: u32 = 674; +pub const WM_WTSSESSION_CHANGE: u32 = 689; +pub const WM_TABLET_FIRST: u32 = 704; +pub const WM_TABLET_LAST: u32 = 735; +pub const WM_DPICHANGED: u32 = 736; +pub const WM_DPICHANGED_BEFOREPARENT: u32 = 738; +pub const WM_DPICHANGED_AFTERPARENT: u32 = 739; +pub const WM_GETDPISCALEDSIZE: u32 = 740; +pub const WM_CUT: u32 = 768; +pub const WM_COPY: u32 = 769; +pub const WM_PASTE: u32 = 770; +pub const WM_CLEAR: u32 = 771; +pub const WM_UNDO: u32 = 772; +pub const WM_RENDERFORMAT: u32 = 773; +pub const WM_RENDERALLFORMATS: u32 = 774; +pub const WM_DESTROYCLIPBOARD: u32 = 775; +pub const WM_DRAWCLIPBOARD: u32 = 776; +pub const WM_PAINTCLIPBOARD: u32 = 777; +pub const WM_VSCROLLCLIPBOARD: u32 = 778; +pub const WM_SIZECLIPBOARD: u32 = 779; +pub const WM_ASKCBFORMATNAME: u32 = 780; +pub const WM_CHANGECBCHAIN: u32 = 781; +pub const WM_HSCROLLCLIPBOARD: u32 = 782; +pub const WM_QUERYNEWPALETTE: u32 = 783; +pub const WM_PALETTEISCHANGING: u32 = 784; +pub const WM_PALETTECHANGED: u32 = 785; +pub const WM_HOTKEY: u32 = 786; +pub const WM_PRINT: u32 = 791; +pub const WM_PRINTCLIENT: u32 = 792; +pub const WM_APPCOMMAND: u32 = 793; +pub const WM_THEMECHANGED: u32 = 794; +pub const WM_CLIPBOARDUPDATE: u32 = 797; +pub const WM_DWMCOMPOSITIONCHANGED: u32 = 798; +pub const WM_DWMNCRENDERINGCHANGED: u32 = 799; +pub const WM_DWMCOLORIZATIONCOLORCHANGED: u32 = 800; +pub const WM_DWMWINDOWMAXIMIZEDCHANGE: u32 = 801; +pub const WM_DWMSENDICONICTHUMBNAIL: u32 = 803; +pub const WM_DWMSENDICONICLIVEPREVIEWBITMAP: u32 = 806; +pub const WM_GETTITLEBARINFOEX: u32 = 831; +pub const WM_HANDHELDFIRST: u32 = 856; +pub const WM_HANDHELDLAST: u32 = 863; +pub const WM_AFXFIRST: u32 = 864; +pub const WM_AFXLAST: u32 = 895; +pub const WM_PENWINFIRST: u32 = 896; +pub const WM_PENWINLAST: u32 = 911; +pub const WM_APP: u32 = 32768; +pub const WM_USER: u32 = 1024; +pub const WMSZ_LEFT: u32 = 1; +pub const WMSZ_RIGHT: u32 = 2; +pub const WMSZ_TOP: u32 = 3; +pub const WMSZ_TOPLEFT: u32 = 4; +pub const WMSZ_TOPRIGHT: u32 = 5; +pub const WMSZ_BOTTOM: u32 = 6; +pub const WMSZ_BOTTOMLEFT: u32 = 7; +pub const WMSZ_BOTTOMRIGHT: u32 = 8; +pub const HTERROR: i32 = -2; +pub const HTTRANSPARENT: i32 = -1; +pub const HTNOWHERE: u32 = 0; +pub const HTCLIENT: u32 = 1; +pub const HTCAPTION: u32 = 2; +pub const HTSYSMENU: u32 = 3; +pub const HTGROWBOX: u32 = 4; +pub const HTSIZE: u32 = 4; +pub const HTMENU: u32 = 5; +pub const HTHSCROLL: u32 = 6; +pub const HTVSCROLL: u32 = 7; +pub const HTMINBUTTON: u32 = 8; +pub const HTMAXBUTTON: u32 = 9; +pub const HTLEFT: u32 = 10; +pub const HTRIGHT: u32 = 11; +pub const HTTOP: u32 = 12; +pub const HTTOPLEFT: u32 = 13; +pub const HTTOPRIGHT: u32 = 14; +pub const HTBOTTOM: u32 = 15; +pub const HTBOTTOMLEFT: u32 = 16; +pub const HTBOTTOMRIGHT: u32 = 17; +pub const HTBORDER: u32 = 18; +pub const HTREDUCE: u32 = 8; +pub const HTZOOM: u32 = 9; +pub const HTSIZEFIRST: u32 = 10; +pub const HTSIZELAST: u32 = 17; +pub const HTOBJECT: u32 = 19; +pub const HTCLOSE: u32 = 20; +pub const HTHELP: u32 = 21; +pub const SMTO_NORMAL: u32 = 0; +pub const SMTO_BLOCK: u32 = 1; +pub const SMTO_ABORTIFHUNG: u32 = 2; +pub const SMTO_NOTIMEOUTIFNOTHUNG: u32 = 8; +pub const SMTO_ERRORONEXIT: u32 = 32; +pub const MA_ACTIVATE: u32 = 1; +pub const MA_ACTIVATEANDEAT: u32 = 2; +pub const MA_NOACTIVATE: u32 = 3; +pub const MA_NOACTIVATEANDEAT: u32 = 4; +pub const ICON_SMALL: u32 = 0; +pub const ICON_BIG: u32 = 1; +pub const ICON_SMALL2: u32 = 2; +pub const SIZE_RESTORED: u32 = 0; +pub const SIZE_MINIMIZED: u32 = 1; +pub const SIZE_MAXIMIZED: u32 = 2; +pub const SIZE_MAXSHOW: u32 = 3; +pub const SIZE_MAXHIDE: u32 = 4; +pub const SIZENORMAL: u32 = 0; +pub const SIZEICONIC: u32 = 1; +pub const SIZEFULLSCREEN: u32 = 2; +pub const SIZEZOOMSHOW: u32 = 3; +pub const SIZEZOOMHIDE: u32 = 4; +pub const WVR_ALIGNTOP: u32 = 16; +pub const WVR_ALIGNLEFT: u32 = 32; +pub const WVR_ALIGNBOTTOM: u32 = 64; +pub const WVR_ALIGNRIGHT: u32 = 128; +pub const WVR_HREDRAW: u32 = 256; +pub const WVR_VREDRAW: u32 = 512; +pub const WVR_REDRAW: u32 = 768; +pub const WVR_VALIDRECTS: u32 = 1024; +pub const MK_LBUTTON: u32 = 1; +pub const MK_RBUTTON: u32 = 2; +pub const MK_SHIFT: u32 = 4; +pub const MK_CONTROL: u32 = 8; +pub const MK_MBUTTON: u32 = 16; +pub const MK_XBUTTON1: u32 = 32; +pub const MK_XBUTTON2: u32 = 64; +pub const TME_HOVER: u32 = 1; +pub const TME_LEAVE: u32 = 2; +pub const TME_NONCLIENT: u32 = 16; +pub const TME_QUERY: u32 = 1073741824; +pub const TME_CANCEL: u32 = 2147483648; +pub const HOVER_DEFAULT: u32 = 4294967295; +pub const WS_OVERLAPPED: u32 = 0; +pub const WS_POPUP: u32 = 2147483648; +pub const WS_CHILD: u32 = 1073741824; +pub const WS_MINIMIZE: u32 = 536870912; +pub const WS_VISIBLE: u32 = 268435456; +pub const WS_DISABLED: u32 = 134217728; +pub const WS_CLIPSIBLINGS: u32 = 67108864; +pub const WS_CLIPCHILDREN: u32 = 33554432; +pub const WS_MAXIMIZE: u32 = 16777216; +pub const WS_CAPTION: u32 = 12582912; +pub const WS_BORDER: u32 = 8388608; +pub const WS_DLGFRAME: u32 = 4194304; +pub const WS_VSCROLL: u32 = 2097152; +pub const WS_HSCROLL: u32 = 1048576; +pub const WS_SYSMENU: u32 = 524288; +pub const WS_THICKFRAME: u32 = 262144; +pub const WS_GROUP: u32 = 131072; +pub const WS_TABSTOP: u32 = 65536; +pub const WS_MINIMIZEBOX: u32 = 131072; +pub const WS_MAXIMIZEBOX: u32 = 65536; +pub const WS_TILED: u32 = 0; +pub const WS_ICONIC: u32 = 536870912; +pub const WS_SIZEBOX: u32 = 262144; +pub const WS_OVERLAPPEDWINDOW: u32 = 13565952; +pub const WS_POPUPWINDOW: u32 = 2156396544; +pub const WS_CHILDWINDOW: u32 = 1073741824; +pub const WS_EX_DLGMODALFRAME: u32 = 1; +pub const WS_EX_NOPARENTNOTIFY: u32 = 4; +pub const WS_EX_TOPMOST: u32 = 8; +pub const WS_EX_ACCEPTFILES: u32 = 16; +pub const WS_EX_TRANSPARENT: u32 = 32; +pub const WS_EX_MDICHILD: u32 = 64; +pub const WS_EX_TOOLWINDOW: u32 = 128; +pub const WS_EX_WINDOWEDGE: u32 = 256; +pub const WS_EX_CLIENTEDGE: u32 = 512; +pub const WS_EX_CONTEXTHELP: u32 = 1024; +pub const WS_EX_RIGHT: u32 = 4096; +pub const WS_EX_LEFT: u32 = 0; +pub const WS_EX_RTLREADING: u32 = 8192; +pub const WS_EX_LTRREADING: u32 = 0; +pub const WS_EX_LEFTSCROLLBAR: u32 = 16384; +pub const WS_EX_RIGHTSCROLLBAR: u32 = 0; +pub const WS_EX_CONTROLPARENT: u32 = 65536; +pub const WS_EX_STATICEDGE: u32 = 131072; +pub const WS_EX_APPWINDOW: u32 = 262144; +pub const WS_EX_OVERLAPPEDWINDOW: u32 = 768; +pub const WS_EX_PALETTEWINDOW: u32 = 392; +pub const WS_EX_LAYERED: u32 = 524288; +pub const WS_EX_NOINHERITLAYOUT: u32 = 1048576; +pub const WS_EX_NOREDIRECTIONBITMAP: u32 = 2097152; +pub const WS_EX_LAYOUTRTL: u32 = 4194304; +pub const WS_EX_COMPOSITED: u32 = 33554432; +pub const WS_EX_NOACTIVATE: u32 = 134217728; +pub const CS_VREDRAW: u32 = 1; +pub const CS_HREDRAW: u32 = 2; +pub const CS_DBLCLKS: u32 = 8; +pub const CS_OWNDC: u32 = 32; +pub const CS_CLASSDC: u32 = 64; +pub const CS_PARENTDC: u32 = 128; +pub const CS_NOCLOSE: u32 = 512; +pub const CS_SAVEBITS: u32 = 2048; +pub const CS_BYTEALIGNCLIENT: u32 = 4096; +pub const CS_BYTEALIGNWINDOW: u32 = 8192; +pub const CS_GLOBALCLASS: u32 = 16384; +pub const CS_IME: u32 = 65536; +pub const CS_DROPSHADOW: u32 = 131072; +pub const PRF_CHECKVISIBLE: u32 = 1; +pub const PRF_NONCLIENT: u32 = 2; +pub const PRF_CLIENT: u32 = 4; +pub const PRF_ERASEBKGND: u32 = 8; +pub const PRF_CHILDREN: u32 = 16; +pub const PRF_OWNED: u32 = 32; +pub const BDR_RAISEDOUTER: u32 = 1; +pub const BDR_SUNKENOUTER: u32 = 2; +pub const BDR_RAISEDINNER: u32 = 4; +pub const BDR_SUNKENINNER: u32 = 8; +pub const BDR_OUTER: u32 = 3; +pub const BDR_INNER: u32 = 12; +pub const BDR_RAISED: u32 = 5; +pub const BDR_SUNKEN: u32 = 10; +pub const EDGE_RAISED: u32 = 5; +pub const EDGE_SUNKEN: u32 = 10; +pub const EDGE_ETCHED: u32 = 6; +pub const EDGE_BUMP: u32 = 9; +pub const BF_LEFT: u32 = 1; +pub const BF_TOP: u32 = 2; +pub const BF_RIGHT: u32 = 4; +pub const BF_BOTTOM: u32 = 8; +pub const BF_TOPLEFT: u32 = 3; +pub const BF_TOPRIGHT: u32 = 6; +pub const BF_BOTTOMLEFT: u32 = 9; +pub const BF_BOTTOMRIGHT: u32 = 12; +pub const BF_RECT: u32 = 15; +pub const BF_DIAGONAL: u32 = 16; +pub const BF_DIAGONAL_ENDTOPRIGHT: u32 = 22; +pub const BF_DIAGONAL_ENDTOPLEFT: u32 = 19; +pub const BF_DIAGONAL_ENDBOTTOMLEFT: u32 = 25; +pub const BF_DIAGONAL_ENDBOTTOMRIGHT: u32 = 28; +pub const BF_MIDDLE: u32 = 2048; +pub const BF_SOFT: u32 = 4096; +pub const BF_ADJUST: u32 = 8192; +pub const BF_FLAT: u32 = 16384; +pub const BF_MONO: u32 = 32768; +pub const DFC_CAPTION: u32 = 1; +pub const DFC_MENU: u32 = 2; +pub const DFC_SCROLL: u32 = 3; +pub const DFC_BUTTON: u32 = 4; +pub const DFC_POPUPMENU: u32 = 5; +pub const DFCS_CAPTIONCLOSE: u32 = 0; +pub const DFCS_CAPTIONMIN: u32 = 1; +pub const DFCS_CAPTIONMAX: u32 = 2; +pub const DFCS_CAPTIONRESTORE: u32 = 3; +pub const DFCS_CAPTIONHELP: u32 = 4; +pub const DFCS_MENUARROW: u32 = 0; +pub const DFCS_MENUCHECK: u32 = 1; +pub const DFCS_MENUBULLET: u32 = 2; +pub const DFCS_MENUARROWRIGHT: u32 = 4; +pub const DFCS_SCROLLUP: u32 = 0; +pub const DFCS_SCROLLDOWN: u32 = 1; +pub const DFCS_SCROLLLEFT: u32 = 2; +pub const DFCS_SCROLLRIGHT: u32 = 3; +pub const DFCS_SCROLLCOMBOBOX: u32 = 5; +pub const DFCS_SCROLLSIZEGRIP: u32 = 8; +pub const DFCS_SCROLLSIZEGRIPRIGHT: u32 = 16; +pub const DFCS_BUTTONCHECK: u32 = 0; +pub const DFCS_BUTTONRADIOIMAGE: u32 = 1; +pub const DFCS_BUTTONRADIOMASK: u32 = 2; +pub const DFCS_BUTTONRADIO: u32 = 4; +pub const DFCS_BUTTON3STATE: u32 = 8; +pub const DFCS_BUTTONPUSH: u32 = 16; +pub const DFCS_INACTIVE: u32 = 256; +pub const DFCS_PUSHED: u32 = 512; +pub const DFCS_CHECKED: u32 = 1024; +pub const DFCS_TRANSPARENT: u32 = 2048; +pub const DFCS_HOT: u32 = 4096; +pub const DFCS_ADJUSTRECT: u32 = 8192; +pub const DFCS_FLAT: u32 = 16384; +pub const DFCS_MONO: u32 = 32768; +pub const DC_ACTIVE: u32 = 1; +pub const DC_SMALLCAP: u32 = 2; +pub const DC_ICON: u32 = 4; +pub const DC_TEXT: u32 = 8; +pub const DC_INBUTTON: u32 = 16; +pub const DC_GRADIENT: u32 = 32; +pub const DC_BUTTONS: u32 = 4096; +pub const IDANI_OPEN: u32 = 1; +pub const IDANI_CAPTION: u32 = 3; +pub const CF_TEXT: u32 = 1; +pub const CF_BITMAP: u32 = 2; +pub const CF_METAFILEPICT: u32 = 3; +pub const CF_SYLK: u32 = 4; +pub const CF_DIF: u32 = 5; +pub const CF_TIFF: u32 = 6; +pub const CF_OEMTEXT: u32 = 7; +pub const CF_DIB: u32 = 8; +pub const CF_PALETTE: u32 = 9; +pub const CF_PENDATA: u32 = 10; +pub const CF_RIFF: u32 = 11; +pub const CF_WAVE: u32 = 12; +pub const CF_UNICODETEXT: u32 = 13; +pub const CF_ENHMETAFILE: u32 = 14; +pub const CF_HDROP: u32 = 15; +pub const CF_LOCALE: u32 = 16; +pub const CF_DIBV5: u32 = 17; +pub const CF_MAX: u32 = 18; +pub const CF_OWNERDISPLAY: u32 = 128; +pub const CF_DSPTEXT: u32 = 129; +pub const CF_DSPBITMAP: u32 = 130; +pub const CF_DSPMETAFILEPICT: u32 = 131; +pub const CF_DSPENHMETAFILE: u32 = 142; +pub const CF_PRIVATEFIRST: u32 = 512; +pub const CF_PRIVATELAST: u32 = 767; +pub const CF_GDIOBJFIRST: u32 = 768; +pub const CF_GDIOBJLAST: u32 = 1023; +pub const FVIRTKEY: u32 = 1; +pub const FNOINVERT: u32 = 2; +pub const FSHIFT: u32 = 4; +pub const FCONTROL: u32 = 8; +pub const FALT: u32 = 16; +pub const WPF_SETMINPOSITION: u32 = 1; +pub const WPF_RESTORETOMAXIMIZED: u32 = 2; +pub const WPF_ASYNCWINDOWPLACEMENT: u32 = 4; +pub const ODT_MENU: u32 = 1; +pub const ODT_LISTBOX: u32 = 2; +pub const ODT_COMBOBOX: u32 = 3; +pub const ODT_BUTTON: u32 = 4; +pub const ODT_STATIC: u32 = 5; +pub const ODA_DRAWENTIRE: u32 = 1; +pub const ODA_SELECT: u32 = 2; +pub const ODA_FOCUS: u32 = 4; +pub const ODS_SELECTED: u32 = 1; +pub const ODS_GRAYED: u32 = 2; +pub const ODS_DISABLED: u32 = 4; +pub const ODS_CHECKED: u32 = 8; +pub const ODS_FOCUS: u32 = 16; +pub const ODS_DEFAULT: u32 = 32; +pub const ODS_COMBOBOXEDIT: u32 = 4096; +pub const ODS_HOTLIGHT: u32 = 64; +pub const ODS_INACTIVE: u32 = 128; +pub const ODS_NOACCEL: u32 = 256; +pub const ODS_NOFOCUSRECT: u32 = 512; +pub const PM_NOREMOVE: u32 = 0; +pub const PM_REMOVE: u32 = 1; +pub const PM_NOYIELD: u32 = 2; +pub const MOD_ALT: u32 = 1; +pub const MOD_CONTROL: u32 = 2; +pub const MOD_SHIFT: u32 = 4; +pub const MOD_WIN: u32 = 8; +pub const MOD_NOREPEAT: u32 = 16384; +pub const IDHOT_SNAPWINDOW: i32 = -1; +pub const IDHOT_SNAPDESKTOP: i32 = -2; +pub const ENDSESSION_CLOSEAPP: u32 = 1; +pub const ENDSESSION_CRITICAL: u32 = 1073741824; +pub const ENDSESSION_LOGOFF: u32 = 2147483648; +pub const EWX_LOGOFF: u32 = 0; +pub const EWX_SHUTDOWN: u32 = 1; +pub const EWX_REBOOT: u32 = 2; +pub const EWX_FORCE: u32 = 4; +pub const EWX_POWEROFF: u32 = 8; +pub const EWX_FORCEIFHUNG: u32 = 16; +pub const EWX_QUICKRESOLVE: u32 = 32; +pub const EWX_RESTARTAPPS: u32 = 64; +pub const EWX_HYBRID_SHUTDOWN: u32 = 4194304; +pub const EWX_BOOTOPTIONS: u32 = 16777216; +pub const EWX_ARSO: u32 = 67108864; +pub const EWX_CHECK_SAFE_FOR_SERVER: u32 = 134217728; +pub const EWX_SYSTEM_INITIATED: u32 = 268435456; +pub const BSM_ALLCOMPONENTS: u32 = 0; +pub const BSM_VXDS: u32 = 1; +pub const BSM_NETDRIVER: u32 = 2; +pub const BSM_INSTALLABLEDRIVERS: u32 = 4; +pub const BSM_APPLICATIONS: u32 = 8; +pub const BSM_ALLDESKTOPS: u32 = 16; +pub const BSF_QUERY: u32 = 1; +pub const BSF_IGNORECURRENTTASK: u32 = 2; +pub const BSF_FLUSHDISK: u32 = 4; +pub const BSF_NOHANG: u32 = 8; +pub const BSF_POSTMESSAGE: u32 = 16; +pub const BSF_FORCEIFHUNG: u32 = 32; +pub const BSF_NOTIMEOUTIFNOTHUNG: u32 = 64; +pub const BSF_ALLOWSFW: u32 = 128; +pub const BSF_SENDNOTIFYMESSAGE: u32 = 256; +pub const BSF_RETURNHDESK: u32 = 512; +pub const BSF_LUID: u32 = 1024; +pub const BROADCAST_QUERY_DENY: u32 = 1112363332; +pub const DEVICE_NOTIFY_WINDOW_HANDLE: u32 = 0; +pub const DEVICE_NOTIFY_SERVICE_HANDLE: u32 = 1; +pub const DEVICE_NOTIFY_ALL_INTERFACE_CLASSES: u32 = 4; +pub const ISMEX_NOSEND: u32 = 0; +pub const ISMEX_SEND: u32 = 1; +pub const ISMEX_NOTIFY: u32 = 2; +pub const ISMEX_CALLBACK: u32 = 4; +pub const ISMEX_REPLIED: u32 = 8; +pub const PW_CLIENTONLY: u32 = 1; +pub const PW_RENDERFULLCONTENT: u32 = 2; +pub const LWA_COLORKEY: u32 = 1; +pub const LWA_ALPHA: u32 = 2; +pub const ULW_COLORKEY: u32 = 1; +pub const ULW_ALPHA: u32 = 2; +pub const ULW_OPAQUE: u32 = 4; +pub const ULW_EX_NORESIZE: u32 = 8; +pub const FLASHW_STOP: u32 = 0; +pub const FLASHW_CAPTION: u32 = 1; +pub const FLASHW_TRAY: u32 = 2; +pub const FLASHW_ALL: u32 = 3; +pub const FLASHW_TIMER: u32 = 4; +pub const FLASHW_TIMERNOFG: u32 = 12; +pub const WDA_NONE: u32 = 0; +pub const WDA_MONITOR: u32 = 1; +pub const WDA_EXCLUDEFROMCAPTURE: u32 = 17; +pub const SWP_NOSIZE: u32 = 1; +pub const SWP_NOMOVE: u32 = 2; +pub const SWP_NOZORDER: u32 = 4; +pub const SWP_NOREDRAW: u32 = 8; +pub const SWP_NOACTIVATE: u32 = 16; +pub const SWP_FRAMECHANGED: u32 = 32; +pub const SWP_SHOWWINDOW: u32 = 64; +pub const SWP_HIDEWINDOW: u32 = 128; +pub const SWP_NOCOPYBITS: u32 = 256; +pub const SWP_NOOWNERZORDER: u32 = 512; +pub const SWP_NOSENDCHANGING: u32 = 1024; +pub const SWP_DRAWFRAME: u32 = 32; +pub const SWP_NOREPOSITION: u32 = 512; +pub const SWP_DEFERERASE: u32 = 8192; +pub const SWP_ASYNCWINDOWPOS: u32 = 16384; +pub const DLGWINDOWEXTRA: u32 = 30; +pub const KEYEVENTF_EXTENDEDKEY: u32 = 1; +pub const KEYEVENTF_KEYUP: u32 = 2; +pub const KEYEVENTF_UNICODE: u32 = 4; +pub const KEYEVENTF_SCANCODE: u32 = 8; +pub const MOUSEEVENTF_MOVE: u32 = 1; +pub const MOUSEEVENTF_LEFTDOWN: u32 = 2; +pub const MOUSEEVENTF_LEFTUP: u32 = 4; +pub const MOUSEEVENTF_RIGHTDOWN: u32 = 8; +pub const MOUSEEVENTF_RIGHTUP: u32 = 16; +pub const MOUSEEVENTF_MIDDLEDOWN: u32 = 32; +pub const MOUSEEVENTF_MIDDLEUP: u32 = 64; +pub const MOUSEEVENTF_XDOWN: u32 = 128; +pub const MOUSEEVENTF_XUP: u32 = 256; +pub const MOUSEEVENTF_WHEEL: u32 = 2048; +pub const MOUSEEVENTF_HWHEEL: u32 = 4096; +pub const MOUSEEVENTF_MOVE_NOCOALESCE: u32 = 8192; +pub const MOUSEEVENTF_VIRTUALDESK: u32 = 16384; +pub const MOUSEEVENTF_ABSOLUTE: u32 = 32768; +pub const INPUT_MOUSE: u32 = 0; +pub const INPUT_KEYBOARD: u32 = 1; +pub const INPUT_HARDWARE: u32 = 2; +pub const TOUCHEVENTF_MOVE: u32 = 1; +pub const TOUCHEVENTF_DOWN: u32 = 2; +pub const TOUCHEVENTF_UP: u32 = 4; +pub const TOUCHEVENTF_INRANGE: u32 = 8; +pub const TOUCHEVENTF_PRIMARY: u32 = 16; +pub const TOUCHEVENTF_NOCOALESCE: u32 = 32; +pub const TOUCHEVENTF_PEN: u32 = 64; +pub const TOUCHEVENTF_PALM: u32 = 128; +pub const TOUCHINPUTMASKF_TIMEFROMSYSTEM: u32 = 1; +pub const TOUCHINPUTMASKF_EXTRAINFO: u32 = 2; +pub const TOUCHINPUTMASKF_CONTACTAREA: u32 = 4; +pub const TWF_FINETOUCH: u32 = 1; +pub const TWF_WANTPALM: u32 = 2; +pub const POINTER_FLAG_NONE: u32 = 0; +pub const POINTER_FLAG_NEW: u32 = 1; +pub const POINTER_FLAG_INRANGE: u32 = 2; +pub const POINTER_FLAG_INCONTACT: u32 = 4; +pub const POINTER_FLAG_FIRSTBUTTON: u32 = 16; +pub const POINTER_FLAG_SECONDBUTTON: u32 = 32; +pub const POINTER_FLAG_THIRDBUTTON: u32 = 64; +pub const POINTER_FLAG_FOURTHBUTTON: u32 = 128; +pub const POINTER_FLAG_FIFTHBUTTON: u32 = 256; +pub const POINTER_FLAG_PRIMARY: u32 = 8192; +pub const POINTER_FLAG_CONFIDENCE: u32 = 16384; +pub const POINTER_FLAG_CANCELED: u32 = 32768; +pub const POINTER_FLAG_DOWN: u32 = 65536; +pub const POINTER_FLAG_UPDATE: u32 = 131072; +pub const POINTER_FLAG_UP: u32 = 262144; +pub const POINTER_FLAG_WHEEL: u32 = 524288; +pub const POINTER_FLAG_HWHEEL: u32 = 1048576; +pub const POINTER_FLAG_CAPTURECHANGED: u32 = 2097152; +pub const POINTER_FLAG_HASTRANSFORM: u32 = 4194304; +pub const POINTER_MOD_SHIFT: u32 = 4; +pub const POINTER_MOD_CTRL: u32 = 8; +pub const TOUCH_FLAG_NONE: u32 = 0; +pub const TOUCH_MASK_NONE: u32 = 0; +pub const TOUCH_MASK_CONTACTAREA: u32 = 1; +pub const TOUCH_MASK_ORIENTATION: u32 = 2; +pub const TOUCH_MASK_PRESSURE: u32 = 4; +pub const PEN_FLAG_NONE: u32 = 0; +pub const PEN_FLAG_BARREL: u32 = 1; +pub const PEN_FLAG_INVERTED: u32 = 2; +pub const PEN_FLAG_ERASER: u32 = 4; +pub const PEN_MASK_NONE: u32 = 0; +pub const PEN_MASK_PRESSURE: u32 = 1; +pub const PEN_MASK_ROTATION: u32 = 2; +pub const PEN_MASK_TILT_X: u32 = 4; +pub const PEN_MASK_TILT_Y: u32 = 8; +pub const POINTER_MESSAGE_FLAG_NEW: u32 = 1; +pub const POINTER_MESSAGE_FLAG_INRANGE: u32 = 2; +pub const POINTER_MESSAGE_FLAG_INCONTACT: u32 = 4; +pub const POINTER_MESSAGE_FLAG_FIRSTBUTTON: u32 = 16; +pub const POINTER_MESSAGE_FLAG_SECONDBUTTON: u32 = 32; +pub const POINTER_MESSAGE_FLAG_THIRDBUTTON: u32 = 64; +pub const POINTER_MESSAGE_FLAG_FOURTHBUTTON: u32 = 128; +pub const POINTER_MESSAGE_FLAG_FIFTHBUTTON: u32 = 256; +pub const POINTER_MESSAGE_FLAG_PRIMARY: u32 = 8192; +pub const POINTER_MESSAGE_FLAG_CONFIDENCE: u32 = 16384; +pub const POINTER_MESSAGE_FLAG_CANCELED: u32 = 32768; +pub const PA_ACTIVATE: u32 = 1; +pub const PA_NOACTIVATE: u32 = 3; +pub const MAX_TOUCH_COUNT: u32 = 256; +pub const TOUCH_FEEDBACK_DEFAULT: u32 = 1; +pub const TOUCH_FEEDBACK_INDIRECT: u32 = 2; +pub const TOUCH_FEEDBACK_NONE: u32 = 3; +pub const TOUCH_HIT_TESTING_DEFAULT: u32 = 0; +pub const TOUCH_HIT_TESTING_CLIENT: u32 = 1; +pub const TOUCH_HIT_TESTING_NONE: u32 = 2; +pub const TOUCH_HIT_TESTING_PROXIMITY_CLOSEST: u32 = 0; +pub const TOUCH_HIT_TESTING_PROXIMITY_FARTHEST: u32 = 4095; +pub const GWFS_INCLUDE_ANCESTORS: u32 = 1; +pub const MAPVK_VK_TO_VSC: u32 = 0; +pub const MAPVK_VSC_TO_VK: u32 = 1; +pub const MAPVK_VK_TO_CHAR: u32 = 2; +pub const MAPVK_VSC_TO_VK_EX: u32 = 3; +pub const MAPVK_VK_TO_VSC_EX: u32 = 4; +pub const MWMO_WAITALL: u32 = 1; +pub const MWMO_ALERTABLE: u32 = 2; +pub const MWMO_INPUTAVAILABLE: u32 = 4; +pub const QS_KEY: u32 = 1; +pub const QS_MOUSEMOVE: u32 = 2; +pub const QS_MOUSEBUTTON: u32 = 4; +pub const QS_POSTMESSAGE: u32 = 8; +pub const QS_TIMER: u32 = 16; +pub const QS_PAINT: u32 = 32; +pub const QS_SENDMESSAGE: u32 = 64; +pub const QS_HOTKEY: u32 = 128; +pub const QS_ALLPOSTMESSAGE: u32 = 256; +pub const QS_RAWINPUT: u32 = 1024; +pub const QS_TOUCH: u32 = 2048; +pub const QS_POINTER: u32 = 4096; +pub const QS_MOUSE: u32 = 6; +pub const QS_INPUT: u32 = 7175; +pub const QS_ALLEVENTS: u32 = 7359; +pub const QS_ALLINPUT: u32 = 7423; +pub const USER_TIMER_MAXIMUM: u32 = 2147483647; +pub const USER_TIMER_MINIMUM: u32 = 10; +pub const TIMERV_DEFAULT_COALESCING: u32 = 0; +pub const TIMERV_NO_COALESCING: u32 = 4294967295; +pub const TIMERV_COALESCING_MIN: u32 = 1; +pub const TIMERV_COALESCING_MAX: u32 = 2147483637; +pub const SM_CXSCREEN: u32 = 0; +pub const SM_CYSCREEN: u32 = 1; +pub const SM_CXVSCROLL: u32 = 2; +pub const SM_CYHSCROLL: u32 = 3; +pub const SM_CYCAPTION: u32 = 4; +pub const SM_CXBORDER: u32 = 5; +pub const SM_CYBORDER: u32 = 6; +pub const SM_CXDLGFRAME: u32 = 7; +pub const SM_CYDLGFRAME: u32 = 8; +pub const SM_CYVTHUMB: u32 = 9; +pub const SM_CXHTHUMB: u32 = 10; +pub const SM_CXICON: u32 = 11; +pub const SM_CYICON: u32 = 12; +pub const SM_CXCURSOR: u32 = 13; +pub const SM_CYCURSOR: u32 = 14; +pub const SM_CYMENU: u32 = 15; +pub const SM_CXFULLSCREEN: u32 = 16; +pub const SM_CYFULLSCREEN: u32 = 17; +pub const SM_CYKANJIWINDOW: u32 = 18; +pub const SM_MOUSEPRESENT: u32 = 19; +pub const SM_CYVSCROLL: u32 = 20; +pub const SM_CXHSCROLL: u32 = 21; +pub const SM_DEBUG: u32 = 22; +pub const SM_SWAPBUTTON: u32 = 23; +pub const SM_RESERVED1: u32 = 24; +pub const SM_RESERVED2: u32 = 25; +pub const SM_RESERVED3: u32 = 26; +pub const SM_RESERVED4: u32 = 27; +pub const SM_CXMIN: u32 = 28; +pub const SM_CYMIN: u32 = 29; +pub const SM_CXSIZE: u32 = 30; +pub const SM_CYSIZE: u32 = 31; +pub const SM_CXFRAME: u32 = 32; +pub const SM_CYFRAME: u32 = 33; +pub const SM_CXMINTRACK: u32 = 34; +pub const SM_CYMINTRACK: u32 = 35; +pub const SM_CXDOUBLECLK: u32 = 36; +pub const SM_CYDOUBLECLK: u32 = 37; +pub const SM_CXICONSPACING: u32 = 38; +pub const SM_CYICONSPACING: u32 = 39; +pub const SM_MENUDROPALIGNMENT: u32 = 40; +pub const SM_PENWINDOWS: u32 = 41; +pub const SM_DBCSENABLED: u32 = 42; +pub const SM_CMOUSEBUTTONS: u32 = 43; +pub const SM_CXFIXEDFRAME: u32 = 7; +pub const SM_CYFIXEDFRAME: u32 = 8; +pub const SM_CXSIZEFRAME: u32 = 32; +pub const SM_CYSIZEFRAME: u32 = 33; +pub const SM_SECURE: u32 = 44; +pub const SM_CXEDGE: u32 = 45; +pub const SM_CYEDGE: u32 = 46; +pub const SM_CXMINSPACING: u32 = 47; +pub const SM_CYMINSPACING: u32 = 48; +pub const SM_CXSMICON: u32 = 49; +pub const SM_CYSMICON: u32 = 50; +pub const SM_CYSMCAPTION: u32 = 51; +pub const SM_CXSMSIZE: u32 = 52; +pub const SM_CYSMSIZE: u32 = 53; +pub const SM_CXMENUSIZE: u32 = 54; +pub const SM_CYMENUSIZE: u32 = 55; +pub const SM_ARRANGE: u32 = 56; +pub const SM_CXMINIMIZED: u32 = 57; +pub const SM_CYMINIMIZED: u32 = 58; +pub const SM_CXMAXTRACK: u32 = 59; +pub const SM_CYMAXTRACK: u32 = 60; +pub const SM_CXMAXIMIZED: u32 = 61; +pub const SM_CYMAXIMIZED: u32 = 62; +pub const SM_NETWORK: u32 = 63; +pub const SM_CLEANBOOT: u32 = 67; +pub const SM_CXDRAG: u32 = 68; +pub const SM_CYDRAG: u32 = 69; +pub const SM_SHOWSOUNDS: u32 = 70; +pub const SM_CXMENUCHECK: u32 = 71; +pub const SM_CYMENUCHECK: u32 = 72; +pub const SM_SLOWMACHINE: u32 = 73; +pub const SM_MIDEASTENABLED: u32 = 74; +pub const SM_MOUSEWHEELPRESENT: u32 = 75; +pub const SM_XVIRTUALSCREEN: u32 = 76; +pub const SM_YVIRTUALSCREEN: u32 = 77; +pub const SM_CXVIRTUALSCREEN: u32 = 78; +pub const SM_CYVIRTUALSCREEN: u32 = 79; +pub const SM_CMONITORS: u32 = 80; +pub const SM_SAMEDISPLAYFORMAT: u32 = 81; +pub const SM_IMMENABLED: u32 = 82; +pub const SM_CXFOCUSBORDER: u32 = 83; +pub const SM_CYFOCUSBORDER: u32 = 84; +pub const SM_TABLETPC: u32 = 86; +pub const SM_MEDIACENTER: u32 = 87; +pub const SM_STARTER: u32 = 88; +pub const SM_SERVERR2: u32 = 89; +pub const SM_MOUSEHORIZONTALWHEELPRESENT: u32 = 91; +pub const SM_CXPADDEDBORDER: u32 = 92; +pub const SM_DIGITIZER: u32 = 94; +pub const SM_MAXIMUMTOUCHES: u32 = 95; +pub const SM_CMETRICS: u32 = 97; +pub const SM_REMOTESESSION: u32 = 4096; +pub const SM_SHUTTINGDOWN: u32 = 8192; +pub const SM_REMOTECONTROL: u32 = 8193; +pub const SM_CARETBLINKINGENABLED: u32 = 8194; +pub const SM_CONVERTIBLESLATEMODE: u32 = 8195; +pub const SM_SYSTEMDOCKED: u32 = 8196; +pub const PMB_ACTIVE: u32 = 1; +pub const MNC_IGNORE: u32 = 0; +pub const MNC_CLOSE: u32 = 1; +pub const MNC_EXECUTE: u32 = 2; +pub const MNC_SELECT: u32 = 3; +pub const MNS_NOCHECK: u32 = 2147483648; +pub const MNS_MODELESS: u32 = 1073741824; +pub const MNS_DRAGDROP: u32 = 536870912; +pub const MNS_AUTODISMISS: u32 = 268435456; +pub const MNS_NOTIFYBYPOS: u32 = 134217728; +pub const MNS_CHECKORBMP: u32 = 67108864; +pub const MIM_MAXHEIGHT: u32 = 1; +pub const MIM_BACKGROUND: u32 = 2; +pub const MIM_HELPID: u32 = 4; +pub const MIM_MENUDATA: u32 = 8; +pub const MIM_STYLE: u32 = 16; +pub const MIM_APPLYTOSUBMENUS: u32 = 2147483648; +pub const MND_CONTINUE: u32 = 0; +pub const MND_ENDMENU: u32 = 1; +pub const MNGOF_TOPGAP: u32 = 1; +pub const MNGOF_BOTTOMGAP: u32 = 2; +pub const MNGO_NOINTERFACE: u32 = 0; +pub const MNGO_NOERROR: u32 = 1; +pub const MIIM_STATE: u32 = 1; +pub const MIIM_ID: u32 = 2; +pub const MIIM_SUBMENU: u32 = 4; +pub const MIIM_CHECKMARKS: u32 = 8; +pub const MIIM_TYPE: u32 = 16; +pub const MIIM_DATA: u32 = 32; +pub const MIIM_STRING: u32 = 64; +pub const MIIM_BITMAP: u32 = 128; +pub const MIIM_FTYPE: u32 = 256; +pub const GMDI_USEDISABLED: u32 = 1; +pub const GMDI_GOINTOPOPUPS: u32 = 2; +pub const TPM_LEFTBUTTON: u32 = 0; +pub const TPM_RIGHTBUTTON: u32 = 2; +pub const TPM_LEFTALIGN: u32 = 0; +pub const TPM_CENTERALIGN: u32 = 4; +pub const TPM_RIGHTALIGN: u32 = 8; +pub const TPM_TOPALIGN: u32 = 0; +pub const TPM_VCENTERALIGN: u32 = 16; +pub const TPM_BOTTOMALIGN: u32 = 32; +pub const TPM_HORIZONTAL: u32 = 0; +pub const TPM_VERTICAL: u32 = 64; +pub const TPM_NONOTIFY: u32 = 128; +pub const TPM_RETURNCMD: u32 = 256; +pub const TPM_RECURSE: u32 = 1; +pub const TPM_HORPOSANIMATION: u32 = 1024; +pub const TPM_HORNEGANIMATION: u32 = 2048; +pub const TPM_VERPOSANIMATION: u32 = 4096; +pub const TPM_VERNEGANIMATION: u32 = 8192; +pub const TPM_NOANIMATION: u32 = 16384; +pub const TPM_LAYOUTRTL: u32 = 32768; +pub const TPM_WORKAREA: u32 = 65536; +pub const DOF_EXECUTABLE: u32 = 32769; +pub const DOF_DOCUMENT: u32 = 32770; +pub const DOF_DIRECTORY: u32 = 32771; +pub const DOF_MULTIPLE: u32 = 32772; +pub const DOF_PROGMAN: u32 = 1; +pub const DOF_SHELLDATA: u32 = 2; +pub const DO_DROPFILE: u32 = 1162627398; +pub const DO_PRINTFILE: u32 = 1414419024; +pub const DT_TOP: u32 = 0; +pub const DT_LEFT: u32 = 0; +pub const DT_CENTER: u32 = 1; +pub const DT_RIGHT: u32 = 2; +pub const DT_VCENTER: u32 = 4; +pub const DT_BOTTOM: u32 = 8; +pub const DT_WORDBREAK: u32 = 16; +pub const DT_SINGLELINE: u32 = 32; +pub const DT_EXPANDTABS: u32 = 64; +pub const DT_TABSTOP: u32 = 128; +pub const DT_NOCLIP: u32 = 256; +pub const DT_EXTERNALLEADING: u32 = 512; +pub const DT_CALCRECT: u32 = 1024; +pub const DT_NOPREFIX: u32 = 2048; +pub const DT_INTERNAL: u32 = 4096; +pub const DT_EDITCONTROL: u32 = 8192; +pub const DT_PATH_ELLIPSIS: u32 = 16384; +pub const DT_END_ELLIPSIS: u32 = 32768; +pub const DT_MODIFYSTRING: u32 = 65536; +pub const DT_RTLREADING: u32 = 131072; +pub const DT_WORD_ELLIPSIS: u32 = 262144; +pub const DT_NOFULLWIDTHCHARBREAK: u32 = 524288; +pub const DT_HIDEPREFIX: u32 = 1048576; +pub const DT_PREFIXONLY: u32 = 2097152; +pub const DST_COMPLEX: u32 = 0; +pub const DST_TEXT: u32 = 1; +pub const DST_PREFIXTEXT: u32 = 2; +pub const DST_ICON: u32 = 3; +pub const DST_BITMAP: u32 = 4; +pub const DSS_NORMAL: u32 = 0; +pub const DSS_UNION: u32 = 16; +pub const DSS_DISABLED: u32 = 32; +pub const DSS_MONO: u32 = 128; +pub const DSS_HIDEPREFIX: u32 = 512; +pub const DSS_PREFIXONLY: u32 = 1024; +pub const DSS_RIGHT: u32 = 32768; +pub const LSFW_LOCK: u32 = 1; +pub const LSFW_UNLOCK: u32 = 2; +pub const DCX_WINDOW: u32 = 1; +pub const DCX_CACHE: u32 = 2; +pub const DCX_NORESETATTRS: u32 = 4; +pub const DCX_CLIPCHILDREN: u32 = 8; +pub const DCX_CLIPSIBLINGS: u32 = 16; +pub const DCX_PARENTCLIP: u32 = 32; +pub const DCX_EXCLUDERGN: u32 = 64; +pub const DCX_INTERSECTRGN: u32 = 128; +pub const DCX_EXCLUDEUPDATE: u32 = 256; +pub const DCX_INTERSECTUPDATE: u32 = 512; +pub const DCX_LOCKWINDOWUPDATE: u32 = 1024; +pub const DCX_VALIDATE: u32 = 2097152; +pub const RDW_INVALIDATE: u32 = 1; +pub const RDW_INTERNALPAINT: u32 = 2; +pub const RDW_ERASE: u32 = 4; +pub const RDW_VALIDATE: u32 = 8; +pub const RDW_NOINTERNALPAINT: u32 = 16; +pub const RDW_NOERASE: u32 = 32; +pub const RDW_NOCHILDREN: u32 = 64; +pub const RDW_ALLCHILDREN: u32 = 128; +pub const RDW_UPDATENOW: u32 = 256; +pub const RDW_ERASENOW: u32 = 512; +pub const RDW_FRAME: u32 = 1024; +pub const RDW_NOFRAME: u32 = 2048; +pub const SW_SCROLLCHILDREN: u32 = 1; +pub const SW_INVALIDATE: u32 = 2; +pub const SW_ERASE: u32 = 4; +pub const SW_SMOOTHSCROLL: u32 = 16; +pub const ESB_ENABLE_BOTH: u32 = 0; +pub const ESB_DISABLE_BOTH: u32 = 3; +pub const ESB_DISABLE_LEFT: u32 = 1; +pub const ESB_DISABLE_RIGHT: u32 = 2; +pub const ESB_DISABLE_UP: u32 = 1; +pub const ESB_DISABLE_DOWN: u32 = 2; +pub const ESB_DISABLE_LTUP: u32 = 1; +pub const ESB_DISABLE_RTDN: u32 = 2; +pub const HELPINFO_WINDOW: u32 = 1; +pub const HELPINFO_MENUITEM: u32 = 2; +pub const MB_OK: u32 = 0; +pub const MB_OKCANCEL: u32 = 1; +pub const MB_ABORTRETRYIGNORE: u32 = 2; +pub const MB_YESNOCANCEL: u32 = 3; +pub const MB_YESNO: u32 = 4; +pub const MB_RETRYCANCEL: u32 = 5; +pub const MB_CANCELTRYCONTINUE: u32 = 6; +pub const MB_ICONHAND: u32 = 16; +pub const MB_ICONQUESTION: u32 = 32; +pub const MB_ICONEXCLAMATION: u32 = 48; +pub const MB_ICONASTERISK: u32 = 64; +pub const MB_USERICON: u32 = 128; +pub const MB_ICONWARNING: u32 = 48; +pub const MB_ICONERROR: u32 = 16; +pub const MB_ICONINFORMATION: u32 = 64; +pub const MB_ICONSTOP: u32 = 16; +pub const MB_DEFBUTTON1: u32 = 0; +pub const MB_DEFBUTTON2: u32 = 256; +pub const MB_DEFBUTTON3: u32 = 512; +pub const MB_DEFBUTTON4: u32 = 768; +pub const MB_APPLMODAL: u32 = 0; +pub const MB_SYSTEMMODAL: u32 = 4096; +pub const MB_TASKMODAL: u32 = 8192; +pub const MB_HELP: u32 = 16384; +pub const MB_NOFOCUS: u32 = 32768; +pub const MB_SETFOREGROUND: u32 = 65536; +pub const MB_DEFAULT_DESKTOP_ONLY: u32 = 131072; +pub const MB_TOPMOST: u32 = 262144; +pub const MB_RIGHT: u32 = 524288; +pub const MB_RTLREADING: u32 = 1048576; +pub const MB_SERVICE_NOTIFICATION: u32 = 2097152; +pub const MB_SERVICE_NOTIFICATION_NT3X: u32 = 262144; +pub const MB_TYPEMASK: u32 = 15; +pub const MB_ICONMASK: u32 = 240; +pub const MB_DEFMASK: u32 = 3840; +pub const MB_MODEMASK: u32 = 12288; +pub const MB_MISCMASK: u32 = 49152; +pub const CWP_ALL: u32 = 0; +pub const CWP_SKIPINVISIBLE: u32 = 1; +pub const CWP_SKIPDISABLED: u32 = 2; +pub const CWP_SKIPTRANSPARENT: u32 = 4; +pub const CTLCOLOR_MSGBOX: u32 = 0; +pub const CTLCOLOR_EDIT: u32 = 1; +pub const CTLCOLOR_LISTBOX: u32 = 2; +pub const CTLCOLOR_BTN: u32 = 3; +pub const CTLCOLOR_DLG: u32 = 4; +pub const CTLCOLOR_SCROLLBAR: u32 = 5; +pub const CTLCOLOR_STATIC: u32 = 6; +pub const CTLCOLOR_MAX: u32 = 7; +pub const COLOR_SCROLLBAR: u32 = 0; +pub const COLOR_BACKGROUND: u32 = 1; +pub const COLOR_ACTIVECAPTION: u32 = 2; +pub const COLOR_INACTIVECAPTION: u32 = 3; +pub const COLOR_MENU: u32 = 4; +pub const COLOR_WINDOW: u32 = 5; +pub const COLOR_WINDOWFRAME: u32 = 6; +pub const COLOR_MENUTEXT: u32 = 7; +pub const COLOR_WINDOWTEXT: u32 = 8; +pub const COLOR_CAPTIONTEXT: u32 = 9; +pub const COLOR_ACTIVEBORDER: u32 = 10; +pub const COLOR_INACTIVEBORDER: u32 = 11; +pub const COLOR_APPWORKSPACE: u32 = 12; +pub const COLOR_HIGHLIGHT: u32 = 13; +pub const COLOR_HIGHLIGHTTEXT: u32 = 14; +pub const COLOR_BTNFACE: u32 = 15; +pub const COLOR_BTNSHADOW: u32 = 16; +pub const COLOR_GRAYTEXT: u32 = 17; +pub const COLOR_BTNTEXT: u32 = 18; +pub const COLOR_INACTIVECAPTIONTEXT: u32 = 19; +pub const COLOR_BTNHIGHLIGHT: u32 = 20; +pub const COLOR_3DDKSHADOW: u32 = 21; +pub const COLOR_3DLIGHT: u32 = 22; +pub const COLOR_INFOTEXT: u32 = 23; +pub const COLOR_INFOBK: u32 = 24; +pub const COLOR_HOTLIGHT: u32 = 26; +pub const COLOR_GRADIENTACTIVECAPTION: u32 = 27; +pub const COLOR_GRADIENTINACTIVECAPTION: u32 = 28; +pub const COLOR_MENUHILIGHT: u32 = 29; +pub const COLOR_MENUBAR: u32 = 30; +pub const COLOR_DESKTOP: u32 = 1; +pub const COLOR_3DFACE: u32 = 15; +pub const COLOR_3DSHADOW: u32 = 16; +pub const COLOR_3DHIGHLIGHT: u32 = 20; +pub const COLOR_3DHILIGHT: u32 = 20; +pub const COLOR_BTNHILIGHT: u32 = 20; +pub const GW_HWNDFIRST: u32 = 0; +pub const GW_HWNDLAST: u32 = 1; +pub const GW_HWNDNEXT: u32 = 2; +pub const GW_HWNDPREV: u32 = 3; +pub const GW_OWNER: u32 = 4; +pub const GW_CHILD: u32 = 5; +pub const GW_ENABLEDPOPUP: u32 = 6; +pub const GW_MAX: u32 = 6; +pub const MF_INSERT: u32 = 0; +pub const MF_CHANGE: u32 = 128; +pub const MF_APPEND: u32 = 256; +pub const MF_DELETE: u32 = 512; +pub const MF_REMOVE: u32 = 4096; +pub const MF_BYCOMMAND: u32 = 0; +pub const MF_BYPOSITION: u32 = 1024; +pub const MF_SEPARATOR: u32 = 2048; +pub const MF_ENABLED: u32 = 0; +pub const MF_GRAYED: u32 = 1; +pub const MF_DISABLED: u32 = 2; +pub const MF_UNCHECKED: u32 = 0; +pub const MF_CHECKED: u32 = 8; +pub const MF_USECHECKBITMAPS: u32 = 512; +pub const MF_STRING: u32 = 0; +pub const MF_BITMAP: u32 = 4; +pub const MF_OWNERDRAW: u32 = 256; +pub const MF_POPUP: u32 = 16; +pub const MF_MENUBARBREAK: u32 = 32; +pub const MF_MENUBREAK: u32 = 64; +pub const MF_UNHILITE: u32 = 0; +pub const MF_HILITE: u32 = 128; +pub const MF_DEFAULT: u32 = 4096; +pub const MF_SYSMENU: u32 = 8192; +pub const MF_HELP: u32 = 16384; +pub const MF_RIGHTJUSTIFY: u32 = 16384; +pub const MF_MOUSESELECT: u32 = 32768; +pub const MF_END: u32 = 128; +pub const MFT_STRING: u32 = 0; +pub const MFT_BITMAP: u32 = 4; +pub const MFT_MENUBARBREAK: u32 = 32; +pub const MFT_MENUBREAK: u32 = 64; +pub const MFT_OWNERDRAW: u32 = 256; +pub const MFT_RADIOCHECK: u32 = 512; +pub const MFT_SEPARATOR: u32 = 2048; +pub const MFT_RIGHTORDER: u32 = 8192; +pub const MFT_RIGHTJUSTIFY: u32 = 16384; +pub const MFS_GRAYED: u32 = 3; +pub const MFS_DISABLED: u32 = 3; +pub const MFS_CHECKED: u32 = 8; +pub const MFS_HILITE: u32 = 128; +pub const MFS_ENABLED: u32 = 0; +pub const MFS_UNCHECKED: u32 = 0; +pub const MFS_UNHILITE: u32 = 0; +pub const MFS_DEFAULT: u32 = 4096; +pub const SC_SIZE: u32 = 61440; +pub const SC_MOVE: u32 = 61456; +pub const SC_MINIMIZE: u32 = 61472; +pub const SC_MAXIMIZE: u32 = 61488; +pub const SC_NEXTWINDOW: u32 = 61504; +pub const SC_PREVWINDOW: u32 = 61520; +pub const SC_CLOSE: u32 = 61536; +pub const SC_VSCROLL: u32 = 61552; +pub const SC_HSCROLL: u32 = 61568; +pub const SC_MOUSEMENU: u32 = 61584; +pub const SC_KEYMENU: u32 = 61696; +pub const SC_ARRANGE: u32 = 61712; +pub const SC_RESTORE: u32 = 61728; +pub const SC_TASKLIST: u32 = 61744; +pub const SC_SCREENSAVE: u32 = 61760; +pub const SC_HOTKEY: u32 = 61776; +pub const SC_DEFAULT: u32 = 61792; +pub const SC_MONITORPOWER: u32 = 61808; +pub const SC_CONTEXTHELP: u32 = 61824; +pub const SC_SEPARATOR: u32 = 61455; +pub const SCF_ISSECURE: u32 = 1; +pub const SC_ICON: u32 = 61472; +pub const SC_ZOOM: u32 = 61488; +pub const CURSOR_CREATION_SCALING_NONE: u32 = 1; +pub const CURSOR_CREATION_SCALING_DEFAULT: u32 = 2; +pub const IMAGE_BITMAP: u32 = 0; +pub const IMAGE_ICON: u32 = 1; +pub const IMAGE_CURSOR: u32 = 2; +pub const IMAGE_ENHMETAFILE: u32 = 3; +pub const LR_DEFAULTCOLOR: u32 = 0; +pub const LR_MONOCHROME: u32 = 1; +pub const LR_COLOR: u32 = 2; +pub const LR_COPYRETURNORG: u32 = 4; +pub const LR_COPYDELETEORG: u32 = 8; +pub const LR_LOADFROMFILE: u32 = 16; +pub const LR_LOADTRANSPARENT: u32 = 32; +pub const LR_DEFAULTSIZE: u32 = 64; +pub const LR_VGACOLOR: u32 = 128; +pub const LR_LOADMAP3DCOLORS: u32 = 4096; +pub const LR_CREATEDIBSECTION: u32 = 8192; +pub const LR_COPYFROMRESOURCE: u32 = 16384; +pub const LR_SHARED: u32 = 32768; +pub const DI_MASK: u32 = 1; +pub const DI_IMAGE: u32 = 2; +pub const DI_NORMAL: u32 = 3; +pub const DI_COMPAT: u32 = 4; +pub const DI_DEFAULTSIZE: u32 = 8; +pub const DI_NOMIRROR: u32 = 16; +pub const RES_ICON: u32 = 1; +pub const RES_CURSOR: u32 = 2; +pub const ORD_LANGDRIVER: u32 = 1; +pub const IDOK: u32 = 1; +pub const IDCANCEL: u32 = 2; +pub const IDABORT: u32 = 3; +pub const IDRETRY: u32 = 4; +pub const IDIGNORE: u32 = 5; +pub const IDYES: u32 = 6; +pub const IDNO: u32 = 7; +pub const IDCLOSE: u32 = 8; +pub const IDHELP: u32 = 9; +pub const IDTRYAGAIN: u32 = 10; +pub const IDCONTINUE: u32 = 11; +pub const IDTIMEOUT: u32 = 32000; +pub const ES_LEFT: u32 = 0; +pub const ES_CENTER: u32 = 1; +pub const ES_RIGHT: u32 = 2; +pub const ES_MULTILINE: u32 = 4; +pub const ES_UPPERCASE: u32 = 8; +pub const ES_LOWERCASE: u32 = 16; +pub const ES_PASSWORD: u32 = 32; +pub const ES_AUTOVSCROLL: u32 = 64; +pub const ES_AUTOHSCROLL: u32 = 128; +pub const ES_NOHIDESEL: u32 = 256; +pub const ES_OEMCONVERT: u32 = 1024; +pub const ES_READONLY: u32 = 2048; +pub const ES_WANTRETURN: u32 = 4096; +pub const ES_NUMBER: u32 = 8192; +pub const EN_SETFOCUS: u32 = 256; +pub const EN_KILLFOCUS: u32 = 512; +pub const EN_CHANGE: u32 = 768; +pub const EN_UPDATE: u32 = 1024; +pub const EN_ERRSPACE: u32 = 1280; +pub const EN_MAXTEXT: u32 = 1281; +pub const EN_HSCROLL: u32 = 1537; +pub const EN_VSCROLL: u32 = 1538; +pub const EN_ALIGN_LTR_EC: u32 = 1792; +pub const EN_ALIGN_RTL_EC: u32 = 1793; +pub const EN_BEFORE_PASTE: u32 = 2048; +pub const EN_AFTER_PASTE: u32 = 2049; +pub const EC_LEFTMARGIN: u32 = 1; +pub const EC_RIGHTMARGIN: u32 = 2; +pub const EC_USEFONTINFO: u32 = 65535; +pub const EMSIS_COMPOSITIONSTRING: u32 = 1; +pub const EIMES_GETCOMPSTRATONCE: u32 = 1; +pub const EIMES_CANCELCOMPSTRINFOCUS: u32 = 2; +pub const EIMES_COMPLETECOMPSTRKILLFOCUS: u32 = 4; +pub const EM_GETSEL: u32 = 176; +pub const EM_SETSEL: u32 = 177; +pub const EM_GETRECT: u32 = 178; +pub const EM_SETRECT: u32 = 179; +pub const EM_SETRECTNP: u32 = 180; +pub const EM_SCROLL: u32 = 181; +pub const EM_LINESCROLL: u32 = 182; +pub const EM_SCROLLCARET: u32 = 183; +pub const EM_GETMODIFY: u32 = 184; +pub const EM_SETMODIFY: u32 = 185; +pub const EM_GETLINECOUNT: u32 = 186; +pub const EM_LINEINDEX: u32 = 187; +pub const EM_SETHANDLE: u32 = 188; +pub const EM_GETHANDLE: u32 = 189; +pub const EM_GETTHUMB: u32 = 190; +pub const EM_LINELENGTH: u32 = 193; +pub const EM_REPLACESEL: u32 = 194; +pub const EM_GETLINE: u32 = 196; +pub const EM_LIMITTEXT: u32 = 197; +pub const EM_CANUNDO: u32 = 198; +pub const EM_UNDO: u32 = 199; +pub const EM_FMTLINES: u32 = 200; +pub const EM_LINEFROMCHAR: u32 = 201; +pub const EM_SETTABSTOPS: u32 = 203; +pub const EM_SETPASSWORDCHAR: u32 = 204; +pub const EM_EMPTYUNDOBUFFER: u32 = 205; +pub const EM_GETFIRSTVISIBLELINE: u32 = 206; +pub const EM_SETREADONLY: u32 = 207; +pub const EM_SETWORDBREAKPROC: u32 = 208; +pub const EM_GETWORDBREAKPROC: u32 = 209; +pub const EM_GETPASSWORDCHAR: u32 = 210; +pub const EM_SETMARGINS: u32 = 211; +pub const EM_GETMARGINS: u32 = 212; +pub const EM_SETLIMITTEXT: u32 = 197; +pub const EM_GETLIMITTEXT: u32 = 213; +pub const EM_POSFROMCHAR: u32 = 214; +pub const EM_CHARFROMPOS: u32 = 215; +pub const EM_SETIMESTATUS: u32 = 216; +pub const EM_GETIMESTATUS: u32 = 217; +pub const EM_ENABLEFEATURE: u32 = 218; +pub const WB_LEFT: u32 = 0; +pub const WB_RIGHT: u32 = 1; +pub const WB_ISDELIMITER: u32 = 2; +pub const BS_PUSHBUTTON: u32 = 0; +pub const BS_DEFPUSHBUTTON: u32 = 1; +pub const BS_CHECKBOX: u32 = 2; +pub const BS_AUTOCHECKBOX: u32 = 3; +pub const BS_RADIOBUTTON: u32 = 4; +pub const BS_3STATE: u32 = 5; +pub const BS_AUTO3STATE: u32 = 6; +pub const BS_GROUPBOX: u32 = 7; +pub const BS_USERBUTTON: u32 = 8; +pub const BS_AUTORADIOBUTTON: u32 = 9; +pub const BS_PUSHBOX: u32 = 10; +pub const BS_OWNERDRAW: u32 = 11; +pub const BS_TYPEMASK: u32 = 15; +pub const BS_LEFTTEXT: u32 = 32; +pub const BS_TEXT: u32 = 0; +pub const BS_ICON: u32 = 64; +pub const BS_BITMAP: u32 = 128; +pub const BS_LEFT: u32 = 256; +pub const BS_RIGHT: u32 = 512; +pub const BS_CENTER: u32 = 768; +pub const BS_TOP: u32 = 1024; +pub const BS_BOTTOM: u32 = 2048; +pub const BS_VCENTER: u32 = 3072; +pub const BS_PUSHLIKE: u32 = 4096; +pub const BS_MULTILINE: u32 = 8192; +pub const BS_NOTIFY: u32 = 16384; +pub const BS_FLAT: u32 = 32768; +pub const BS_RIGHTBUTTON: u32 = 32; +pub const BN_CLICKED: u32 = 0; +pub const BN_PAINT: u32 = 1; +pub const BN_HILITE: u32 = 2; +pub const BN_UNHILITE: u32 = 3; +pub const BN_DISABLE: u32 = 4; +pub const BN_DOUBLECLICKED: u32 = 5; +pub const BN_PUSHED: u32 = 2; +pub const BN_UNPUSHED: u32 = 3; +pub const BN_DBLCLK: u32 = 5; +pub const BN_SETFOCUS: u32 = 6; +pub const BN_KILLFOCUS: u32 = 7; +pub const BM_GETCHECK: u32 = 240; +pub const BM_SETCHECK: u32 = 241; +pub const BM_GETSTATE: u32 = 242; +pub const BM_SETSTATE: u32 = 243; +pub const BM_SETSTYLE: u32 = 244; +pub const BM_CLICK: u32 = 245; +pub const BM_GETIMAGE: u32 = 246; +pub const BM_SETIMAGE: u32 = 247; +pub const BM_SETDONTCLICK: u32 = 248; +pub const BST_UNCHECKED: u32 = 0; +pub const BST_CHECKED: u32 = 1; +pub const BST_INDETERMINATE: u32 = 2; +pub const BST_PUSHED: u32 = 4; +pub const BST_FOCUS: u32 = 8; +pub const SS_LEFT: u32 = 0; +pub const SS_CENTER: u32 = 1; +pub const SS_RIGHT: u32 = 2; +pub const SS_ICON: u32 = 3; +pub const SS_BLACKRECT: u32 = 4; +pub const SS_GRAYRECT: u32 = 5; +pub const SS_WHITERECT: u32 = 6; +pub const SS_BLACKFRAME: u32 = 7; +pub const SS_GRAYFRAME: u32 = 8; +pub const SS_WHITEFRAME: u32 = 9; +pub const SS_USERITEM: u32 = 10; +pub const SS_SIMPLE: u32 = 11; +pub const SS_LEFTNOWORDWRAP: u32 = 12; +pub const SS_OWNERDRAW: u32 = 13; +pub const SS_BITMAP: u32 = 14; +pub const SS_ENHMETAFILE: u32 = 15; +pub const SS_ETCHEDHORZ: u32 = 16; +pub const SS_ETCHEDVERT: u32 = 17; +pub const SS_ETCHEDFRAME: u32 = 18; +pub const SS_TYPEMASK: u32 = 31; +pub const SS_REALSIZECONTROL: u32 = 64; +pub const SS_NOPREFIX: u32 = 128; +pub const SS_NOTIFY: u32 = 256; +pub const SS_CENTERIMAGE: u32 = 512; +pub const SS_RIGHTJUST: u32 = 1024; +pub const SS_REALSIZEIMAGE: u32 = 2048; +pub const SS_SUNKEN: u32 = 4096; +pub const SS_EDITCONTROL: u32 = 8192; +pub const SS_ENDELLIPSIS: u32 = 16384; +pub const SS_PATHELLIPSIS: u32 = 32768; +pub const SS_WORDELLIPSIS: u32 = 49152; +pub const SS_ELLIPSISMASK: u32 = 49152; +pub const STM_SETICON: u32 = 368; +pub const STM_GETICON: u32 = 369; +pub const STM_SETIMAGE: u32 = 370; +pub const STM_GETIMAGE: u32 = 371; +pub const STN_CLICKED: u32 = 0; +pub const STN_DBLCLK: u32 = 1; +pub const STN_ENABLE: u32 = 2; +pub const STN_DISABLE: u32 = 3; +pub const STM_MSGMAX: u32 = 372; +pub const DWL_MSGRESULT: u32 = 0; +pub const DWL_DLGPROC: u32 = 4; +pub const DWL_USER: u32 = 8; +pub const DWLP_MSGRESULT: u32 = 0; +pub const DDL_READWRITE: u32 = 0; +pub const DDL_READONLY: u32 = 1; +pub const DDL_HIDDEN: u32 = 2; +pub const DDL_SYSTEM: u32 = 4; +pub const DDL_DIRECTORY: u32 = 16; +pub const DDL_ARCHIVE: u32 = 32; +pub const DDL_POSTMSGS: u32 = 8192; +pub const DDL_DRIVES: u32 = 16384; +pub const DDL_EXCLUSIVE: u32 = 32768; +pub const DS_ABSALIGN: u32 = 1; +pub const DS_SYSMODAL: u32 = 2; +pub const DS_LOCALEDIT: u32 = 32; +pub const DS_SETFONT: u32 = 64; +pub const DS_MODALFRAME: u32 = 128; +pub const DS_NOIDLEMSG: u32 = 256; +pub const DS_SETFOREGROUND: u32 = 512; +pub const DS_3DLOOK: u32 = 4; +pub const DS_FIXEDSYS: u32 = 8; +pub const DS_NOFAILCREATE: u32 = 16; +pub const DS_CONTROL: u32 = 1024; +pub const DS_CENTER: u32 = 2048; +pub const DS_CENTERMOUSE: u32 = 4096; +pub const DS_CONTEXTHELP: u32 = 8192; +pub const DS_SHELLFONT: u32 = 72; +pub const DM_GETDEFID: u32 = 1024; +pub const DM_SETDEFID: u32 = 1025; +pub const DM_REPOSITION: u32 = 1026; +pub const DC_HASDEFID: u32 = 21323; +pub const DLGC_WANTARROWS: u32 = 1; +pub const DLGC_WANTTAB: u32 = 2; +pub const DLGC_WANTALLKEYS: u32 = 4; +pub const DLGC_WANTMESSAGE: u32 = 4; +pub const DLGC_HASSETSEL: u32 = 8; +pub const DLGC_DEFPUSHBUTTON: u32 = 16; +pub const DLGC_UNDEFPUSHBUTTON: u32 = 32; +pub const DLGC_RADIOBUTTON: u32 = 64; +pub const DLGC_WANTCHARS: u32 = 128; +pub const DLGC_STATIC: u32 = 256; +pub const DLGC_BUTTON: u32 = 8192; +pub const LB_CTLCODE: u32 = 0; +pub const LB_OKAY: u32 = 0; +pub const LB_ERR: i32 = -1; +pub const LB_ERRSPACE: i32 = -2; +pub const LBN_ERRSPACE: i32 = -2; +pub const LBN_SELCHANGE: u32 = 1; +pub const LBN_DBLCLK: u32 = 2; +pub const LBN_SELCANCEL: u32 = 3; +pub const LBN_SETFOCUS: u32 = 4; +pub const LBN_KILLFOCUS: u32 = 5; +pub const LB_ADDSTRING: u32 = 384; +pub const LB_INSERTSTRING: u32 = 385; +pub const LB_DELETESTRING: u32 = 386; +pub const LB_SELITEMRANGEEX: u32 = 387; +pub const LB_RESETCONTENT: u32 = 388; +pub const LB_SETSEL: u32 = 389; +pub const LB_SETCURSEL: u32 = 390; +pub const LB_GETSEL: u32 = 391; +pub const LB_GETCURSEL: u32 = 392; +pub const LB_GETTEXT: u32 = 393; +pub const LB_GETTEXTLEN: u32 = 394; +pub const LB_GETCOUNT: u32 = 395; +pub const LB_SELECTSTRING: u32 = 396; +pub const LB_DIR: u32 = 397; +pub const LB_GETTOPINDEX: u32 = 398; +pub const LB_FINDSTRING: u32 = 399; +pub const LB_GETSELCOUNT: u32 = 400; +pub const LB_GETSELITEMS: u32 = 401; +pub const LB_SETTABSTOPS: u32 = 402; +pub const LB_GETHORIZONTALEXTENT: u32 = 403; +pub const LB_SETHORIZONTALEXTENT: u32 = 404; +pub const LB_SETCOLUMNWIDTH: u32 = 405; +pub const LB_ADDFILE: u32 = 406; +pub const LB_SETTOPINDEX: u32 = 407; +pub const LB_GETITEMRECT: u32 = 408; +pub const LB_GETITEMDATA: u32 = 409; +pub const LB_SETITEMDATA: u32 = 410; +pub const LB_SELITEMRANGE: u32 = 411; +pub const LB_SETANCHORINDEX: u32 = 412; +pub const LB_GETANCHORINDEX: u32 = 413; +pub const LB_SETCARETINDEX: u32 = 414; +pub const LB_GETCARETINDEX: u32 = 415; +pub const LB_SETITEMHEIGHT: u32 = 416; +pub const LB_GETITEMHEIGHT: u32 = 417; +pub const LB_FINDSTRINGEXACT: u32 = 418; +pub const LB_SETLOCALE: u32 = 421; +pub const LB_GETLOCALE: u32 = 422; +pub const LB_SETCOUNT: u32 = 423; +pub const LB_INITSTORAGE: u32 = 424; +pub const LB_ITEMFROMPOINT: u32 = 425; +pub const LB_GETLISTBOXINFO: u32 = 434; +pub const LB_MSGMAX: u32 = 435; +pub const LBS_NOTIFY: u32 = 1; +pub const LBS_SORT: u32 = 2; +pub const LBS_NOREDRAW: u32 = 4; +pub const LBS_MULTIPLESEL: u32 = 8; +pub const LBS_OWNERDRAWFIXED: u32 = 16; +pub const LBS_OWNERDRAWVARIABLE: u32 = 32; +pub const LBS_HASSTRINGS: u32 = 64; +pub const LBS_USETABSTOPS: u32 = 128; +pub const LBS_NOINTEGRALHEIGHT: u32 = 256; +pub const LBS_MULTICOLUMN: u32 = 512; +pub const LBS_WANTKEYBOARDINPUT: u32 = 1024; +pub const LBS_EXTENDEDSEL: u32 = 2048; +pub const LBS_DISABLENOSCROLL: u32 = 4096; +pub const LBS_NODATA: u32 = 8192; +pub const LBS_NOSEL: u32 = 16384; +pub const LBS_COMBOBOX: u32 = 32768; +pub const LBS_STANDARD: u32 = 10485763; +pub const CB_OKAY: u32 = 0; +pub const CB_ERR: i32 = -1; +pub const CB_ERRSPACE: i32 = -2; +pub const CBN_ERRSPACE: i32 = -1; +pub const CBN_SELCHANGE: u32 = 1; +pub const CBN_DBLCLK: u32 = 2; +pub const CBN_SETFOCUS: u32 = 3; +pub const CBN_KILLFOCUS: u32 = 4; +pub const CBN_EDITCHANGE: u32 = 5; +pub const CBN_EDITUPDATE: u32 = 6; +pub const CBN_DROPDOWN: u32 = 7; +pub const CBN_CLOSEUP: u32 = 8; +pub const CBN_SELENDOK: u32 = 9; +pub const CBN_SELENDCANCEL: u32 = 10; +pub const CBS_SIMPLE: u32 = 1; +pub const CBS_DROPDOWN: u32 = 2; +pub const CBS_DROPDOWNLIST: u32 = 3; +pub const CBS_OWNERDRAWFIXED: u32 = 16; +pub const CBS_OWNERDRAWVARIABLE: u32 = 32; +pub const CBS_AUTOHSCROLL: u32 = 64; +pub const CBS_OEMCONVERT: u32 = 128; +pub const CBS_SORT: u32 = 256; +pub const CBS_HASSTRINGS: u32 = 512; +pub const CBS_NOINTEGRALHEIGHT: u32 = 1024; +pub const CBS_DISABLENOSCROLL: u32 = 2048; +pub const CBS_UPPERCASE: u32 = 8192; +pub const CBS_LOWERCASE: u32 = 16384; +pub const CB_GETEDITSEL: u32 = 320; +pub const CB_LIMITTEXT: u32 = 321; +pub const CB_SETEDITSEL: u32 = 322; +pub const CB_ADDSTRING: u32 = 323; +pub const CB_DELETESTRING: u32 = 324; +pub const CB_DIR: u32 = 325; +pub const CB_GETCOUNT: u32 = 326; +pub const CB_GETCURSEL: u32 = 327; +pub const CB_GETLBTEXT: u32 = 328; +pub const CB_GETLBTEXTLEN: u32 = 329; +pub const CB_INSERTSTRING: u32 = 330; +pub const CB_RESETCONTENT: u32 = 331; +pub const CB_FINDSTRING: u32 = 332; +pub const CB_SELECTSTRING: u32 = 333; +pub const CB_SETCURSEL: u32 = 334; +pub const CB_SHOWDROPDOWN: u32 = 335; +pub const CB_GETITEMDATA: u32 = 336; +pub const CB_SETITEMDATA: u32 = 337; +pub const CB_GETDROPPEDCONTROLRECT: u32 = 338; +pub const CB_SETITEMHEIGHT: u32 = 339; +pub const CB_GETITEMHEIGHT: u32 = 340; +pub const CB_SETEXTENDEDUI: u32 = 341; +pub const CB_GETEXTENDEDUI: u32 = 342; +pub const CB_GETDROPPEDSTATE: u32 = 343; +pub const CB_FINDSTRINGEXACT: u32 = 344; +pub const CB_SETLOCALE: u32 = 345; +pub const CB_GETLOCALE: u32 = 346; +pub const CB_GETTOPINDEX: u32 = 347; +pub const CB_SETTOPINDEX: u32 = 348; +pub const CB_GETHORIZONTALEXTENT: u32 = 349; +pub const CB_SETHORIZONTALEXTENT: u32 = 350; +pub const CB_GETDROPPEDWIDTH: u32 = 351; +pub const CB_SETDROPPEDWIDTH: u32 = 352; +pub const CB_INITSTORAGE: u32 = 353; +pub const CB_GETCOMBOBOXINFO: u32 = 356; +pub const CB_MSGMAX: u32 = 357; +pub const SBS_HORZ: u32 = 0; +pub const SBS_VERT: u32 = 1; +pub const SBS_TOPALIGN: u32 = 2; +pub const SBS_LEFTALIGN: u32 = 2; +pub const SBS_BOTTOMALIGN: u32 = 4; +pub const SBS_RIGHTALIGN: u32 = 4; +pub const SBS_SIZEBOXTOPLEFTALIGN: u32 = 2; +pub const SBS_SIZEBOXBOTTOMRIGHTALIGN: u32 = 4; +pub const SBS_SIZEBOX: u32 = 8; +pub const SBS_SIZEGRIP: u32 = 16; +pub const SBM_SETPOS: u32 = 224; +pub const SBM_GETPOS: u32 = 225; +pub const SBM_SETRANGE: u32 = 226; +pub const SBM_SETRANGEREDRAW: u32 = 230; +pub const SBM_GETRANGE: u32 = 227; +pub const SBM_ENABLE_ARROWS: u32 = 228; +pub const SBM_SETSCROLLINFO: u32 = 233; +pub const SBM_GETSCROLLINFO: u32 = 234; +pub const SBM_GETSCROLLBARINFO: u32 = 235; +pub const SIF_RANGE: u32 = 1; +pub const SIF_PAGE: u32 = 2; +pub const SIF_POS: u32 = 4; +pub const SIF_DISABLENOSCROLL: u32 = 8; +pub const SIF_TRACKPOS: u32 = 16; +pub const SIF_ALL: u32 = 23; +pub const MDIS_ALLCHILDSTYLES: u32 = 1; +pub const MDITILE_VERTICAL: u32 = 0; +pub const MDITILE_HORIZONTAL: u32 = 1; +pub const MDITILE_SKIPDISABLED: u32 = 2; +pub const MDITILE_ZORDER: u32 = 4; +pub const HELP_CONTEXT: u32 = 1; +pub const HELP_QUIT: u32 = 2; +pub const HELP_INDEX: u32 = 3; +pub const HELP_CONTENTS: u32 = 3; +pub const HELP_HELPONHELP: u32 = 4; +pub const HELP_SETINDEX: u32 = 5; +pub const HELP_SETCONTENTS: u32 = 5; +pub const HELP_CONTEXTPOPUP: u32 = 8; +pub const HELP_FORCEFILE: u32 = 9; +pub const HELP_KEY: u32 = 257; +pub const HELP_COMMAND: u32 = 258; +pub const HELP_PARTIALKEY: u32 = 261; +pub const HELP_MULTIKEY: u32 = 513; +pub const HELP_SETWINPOS: u32 = 515; +pub const HELP_CONTEXTMENU: u32 = 10; +pub const HELP_FINDER: u32 = 11; +pub const HELP_WM_HELP: u32 = 12; +pub const HELP_SETPOPUP_POS: u32 = 13; +pub const HELP_TCARD: u32 = 32768; +pub const HELP_TCARD_DATA: u32 = 16; +pub const HELP_TCARD_OTHER_CALLER: u32 = 17; +pub const IDH_NO_HELP: u32 = 28440; +pub const IDH_MISSING_CONTEXT: u32 = 28441; +pub const IDH_GENERIC_HELP_BUTTON: u32 = 28442; +pub const IDH_OK: u32 = 28443; +pub const IDH_CANCEL: u32 = 28444; +pub const IDH_HELP: u32 = 28445; +pub const GR_GDIOBJECTS: u32 = 0; +pub const GR_USEROBJECTS: u32 = 1; +pub const GR_GDIOBJECTS_PEAK: u32 = 2; +pub const GR_USEROBJECTS_PEAK: u32 = 4; +pub const SPI_GETBEEP: u32 = 1; +pub const SPI_SETBEEP: u32 = 2; +pub const SPI_GETMOUSE: u32 = 3; +pub const SPI_SETMOUSE: u32 = 4; +pub const SPI_GETBORDER: u32 = 5; +pub const SPI_SETBORDER: u32 = 6; +pub const SPI_GETKEYBOARDSPEED: u32 = 10; +pub const SPI_SETKEYBOARDSPEED: u32 = 11; +pub const SPI_LANGDRIVER: u32 = 12; +pub const SPI_ICONHORIZONTALSPACING: u32 = 13; +pub const SPI_GETSCREENSAVETIMEOUT: u32 = 14; +pub const SPI_SETSCREENSAVETIMEOUT: u32 = 15; +pub const SPI_GETSCREENSAVEACTIVE: u32 = 16; +pub const SPI_SETSCREENSAVEACTIVE: u32 = 17; +pub const SPI_GETGRIDGRANULARITY: u32 = 18; +pub const SPI_SETGRIDGRANULARITY: u32 = 19; +pub const SPI_SETDESKWALLPAPER: u32 = 20; +pub const SPI_SETDESKPATTERN: u32 = 21; +pub const SPI_GETKEYBOARDDELAY: u32 = 22; +pub const SPI_SETKEYBOARDDELAY: u32 = 23; +pub const SPI_ICONVERTICALSPACING: u32 = 24; +pub const SPI_GETICONTITLEWRAP: u32 = 25; +pub const SPI_SETICONTITLEWRAP: u32 = 26; +pub const SPI_GETMENUDROPALIGNMENT: u32 = 27; +pub const SPI_SETMENUDROPALIGNMENT: u32 = 28; +pub const SPI_SETDOUBLECLKWIDTH: u32 = 29; +pub const SPI_SETDOUBLECLKHEIGHT: u32 = 30; +pub const SPI_GETICONTITLELOGFONT: u32 = 31; +pub const SPI_SETDOUBLECLICKTIME: u32 = 32; +pub const SPI_SETMOUSEBUTTONSWAP: u32 = 33; +pub const SPI_SETICONTITLELOGFONT: u32 = 34; +pub const SPI_GETFASTTASKSWITCH: u32 = 35; +pub const SPI_SETFASTTASKSWITCH: u32 = 36; +pub const SPI_SETDRAGFULLWINDOWS: u32 = 37; +pub const SPI_GETDRAGFULLWINDOWS: u32 = 38; +pub const SPI_GETNONCLIENTMETRICS: u32 = 41; +pub const SPI_SETNONCLIENTMETRICS: u32 = 42; +pub const SPI_GETMINIMIZEDMETRICS: u32 = 43; +pub const SPI_SETMINIMIZEDMETRICS: u32 = 44; +pub const SPI_GETICONMETRICS: u32 = 45; +pub const SPI_SETICONMETRICS: u32 = 46; +pub const SPI_SETWORKAREA: u32 = 47; +pub const SPI_GETWORKAREA: u32 = 48; +pub const SPI_SETPENWINDOWS: u32 = 49; +pub const SPI_GETHIGHCONTRAST: u32 = 66; +pub const SPI_SETHIGHCONTRAST: u32 = 67; +pub const SPI_GETKEYBOARDPREF: u32 = 68; +pub const SPI_SETKEYBOARDPREF: u32 = 69; +pub const SPI_GETSCREENREADER: u32 = 70; +pub const SPI_SETSCREENREADER: u32 = 71; +pub const SPI_GETANIMATION: u32 = 72; +pub const SPI_SETANIMATION: u32 = 73; +pub const SPI_GETFONTSMOOTHING: u32 = 74; +pub const SPI_SETFONTSMOOTHING: u32 = 75; +pub const SPI_SETDRAGWIDTH: u32 = 76; +pub const SPI_SETDRAGHEIGHT: u32 = 77; +pub const SPI_SETHANDHELD: u32 = 78; +pub const SPI_GETLOWPOWERTIMEOUT: u32 = 79; +pub const SPI_GETPOWEROFFTIMEOUT: u32 = 80; +pub const SPI_SETLOWPOWERTIMEOUT: u32 = 81; +pub const SPI_SETPOWEROFFTIMEOUT: u32 = 82; +pub const SPI_GETLOWPOWERACTIVE: u32 = 83; +pub const SPI_GETPOWEROFFACTIVE: u32 = 84; +pub const SPI_SETLOWPOWERACTIVE: u32 = 85; +pub const SPI_SETPOWEROFFACTIVE: u32 = 86; +pub const SPI_SETCURSORS: u32 = 87; +pub const SPI_SETICONS: u32 = 88; +pub const SPI_GETDEFAULTINPUTLANG: u32 = 89; +pub const SPI_SETDEFAULTINPUTLANG: u32 = 90; +pub const SPI_SETLANGTOGGLE: u32 = 91; +pub const SPI_GETWINDOWSEXTENSION: u32 = 92; +pub const SPI_SETMOUSETRAILS: u32 = 93; +pub const SPI_GETMOUSETRAILS: u32 = 94; +pub const SPI_SETSCREENSAVERRUNNING: u32 = 97; +pub const SPI_SCREENSAVERRUNNING: u32 = 97; +pub const SPI_GETFILTERKEYS: u32 = 50; +pub const SPI_SETFILTERKEYS: u32 = 51; +pub const SPI_GETTOGGLEKEYS: u32 = 52; +pub const SPI_SETTOGGLEKEYS: u32 = 53; +pub const SPI_GETMOUSEKEYS: u32 = 54; +pub const SPI_SETMOUSEKEYS: u32 = 55; +pub const SPI_GETSHOWSOUNDS: u32 = 56; +pub const SPI_SETSHOWSOUNDS: u32 = 57; +pub const SPI_GETSTICKYKEYS: u32 = 58; +pub const SPI_SETSTICKYKEYS: u32 = 59; +pub const SPI_GETACCESSTIMEOUT: u32 = 60; +pub const SPI_SETACCESSTIMEOUT: u32 = 61; +pub const SPI_GETSERIALKEYS: u32 = 62; +pub const SPI_SETSERIALKEYS: u32 = 63; +pub const SPI_GETSOUNDSENTRY: u32 = 64; +pub const SPI_SETSOUNDSENTRY: u32 = 65; +pub const SPI_GETSNAPTODEFBUTTON: u32 = 95; +pub const SPI_SETSNAPTODEFBUTTON: u32 = 96; +pub const SPI_GETMOUSEHOVERWIDTH: u32 = 98; +pub const SPI_SETMOUSEHOVERWIDTH: u32 = 99; +pub const SPI_GETMOUSEHOVERHEIGHT: u32 = 100; +pub const SPI_SETMOUSEHOVERHEIGHT: u32 = 101; +pub const SPI_GETMOUSEHOVERTIME: u32 = 102; +pub const SPI_SETMOUSEHOVERTIME: u32 = 103; +pub const SPI_GETWHEELSCROLLLINES: u32 = 104; +pub const SPI_SETWHEELSCROLLLINES: u32 = 105; +pub const SPI_GETMENUSHOWDELAY: u32 = 106; +pub const SPI_SETMENUSHOWDELAY: u32 = 107; +pub const SPI_GETWHEELSCROLLCHARS: u32 = 108; +pub const SPI_SETWHEELSCROLLCHARS: u32 = 109; +pub const SPI_GETSHOWIMEUI: u32 = 110; +pub const SPI_SETSHOWIMEUI: u32 = 111; +pub const SPI_GETMOUSESPEED: u32 = 112; +pub const SPI_SETMOUSESPEED: u32 = 113; +pub const SPI_GETSCREENSAVERRUNNING: u32 = 114; +pub const SPI_GETDESKWALLPAPER: u32 = 115; +pub const SPI_GETAUDIODESCRIPTION: u32 = 116; +pub const SPI_SETAUDIODESCRIPTION: u32 = 117; +pub const SPI_GETSCREENSAVESECURE: u32 = 118; +pub const SPI_SETSCREENSAVESECURE: u32 = 119; +pub const SPI_GETHUNGAPPTIMEOUT: u32 = 120; +pub const SPI_SETHUNGAPPTIMEOUT: u32 = 121; +pub const SPI_GETWAITTOKILLTIMEOUT: u32 = 122; +pub const SPI_SETWAITTOKILLTIMEOUT: u32 = 123; +pub const SPI_GETWAITTOKILLSERVICETIMEOUT: u32 = 124; +pub const SPI_SETWAITTOKILLSERVICETIMEOUT: u32 = 125; +pub const SPI_GETMOUSEDOCKTHRESHOLD: u32 = 126; +pub const SPI_SETMOUSEDOCKTHRESHOLD: u32 = 127; +pub const SPI_GETPENDOCKTHRESHOLD: u32 = 128; +pub const SPI_SETPENDOCKTHRESHOLD: u32 = 129; +pub const SPI_GETWINARRANGING: u32 = 130; +pub const SPI_SETWINARRANGING: u32 = 131; +pub const SPI_GETMOUSEDRAGOUTTHRESHOLD: u32 = 132; +pub const SPI_SETMOUSEDRAGOUTTHRESHOLD: u32 = 133; +pub const SPI_GETPENDRAGOUTTHRESHOLD: u32 = 134; +pub const SPI_SETPENDRAGOUTTHRESHOLD: u32 = 135; +pub const SPI_GETMOUSESIDEMOVETHRESHOLD: u32 = 136; +pub const SPI_SETMOUSESIDEMOVETHRESHOLD: u32 = 137; +pub const SPI_GETPENSIDEMOVETHRESHOLD: u32 = 138; +pub const SPI_SETPENSIDEMOVETHRESHOLD: u32 = 139; +pub const SPI_GETDRAGFROMMAXIMIZE: u32 = 140; +pub const SPI_SETDRAGFROMMAXIMIZE: u32 = 141; +pub const SPI_GETSNAPSIZING: u32 = 142; +pub const SPI_SETSNAPSIZING: u32 = 143; +pub const SPI_GETDOCKMOVING: u32 = 144; +pub const SPI_SETDOCKMOVING: u32 = 145; +pub const MAX_TOUCH_PREDICTION_FILTER_TAPS: u32 = 3; +pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_LATENCY: u32 = 8; +pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_SAMPLETIME: u32 = 8; +pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_USE_HW_TIMESTAMP: u32 = 1; +pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_DELTA: f64 = 0.001; +pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_MIN: f64 = 0.9; +pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_MAX: f64 = 0.999; +pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_LEARNING_RATE: f64 = 0.001; +pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_EXPO_SMOOTH_ALPHA: f64 = 0.99; +pub const SPI_GETTOUCHPREDICTIONPARAMETERS: u32 = 156; +pub const SPI_SETTOUCHPREDICTIONPARAMETERS: u32 = 157; +pub const MAX_LOGICALDPIOVERRIDE: u32 = 2; +pub const MIN_LOGICALDPIOVERRIDE: i32 = -2; +pub const SPI_GETLOGICALDPIOVERRIDE: u32 = 158; +pub const SPI_SETLOGICALDPIOVERRIDE: u32 = 159; +pub const SPI_GETMENURECT: u32 = 162; +pub const SPI_SETMENURECT: u32 = 163; +pub const SPI_GETACTIVEWINDOWTRACKING: u32 = 4096; +pub const SPI_SETACTIVEWINDOWTRACKING: u32 = 4097; +pub const SPI_GETMENUANIMATION: u32 = 4098; +pub const SPI_SETMENUANIMATION: u32 = 4099; +pub const SPI_GETCOMBOBOXANIMATION: u32 = 4100; +pub const SPI_SETCOMBOBOXANIMATION: u32 = 4101; +pub const SPI_GETLISTBOXSMOOTHSCROLLING: u32 = 4102; +pub const SPI_SETLISTBOXSMOOTHSCROLLING: u32 = 4103; +pub const SPI_GETGRADIENTCAPTIONS: u32 = 4104; +pub const SPI_SETGRADIENTCAPTIONS: u32 = 4105; +pub const SPI_GETKEYBOARDCUES: u32 = 4106; +pub const SPI_SETKEYBOARDCUES: u32 = 4107; +pub const SPI_GETMENUUNDERLINES: u32 = 4106; +pub const SPI_SETMENUUNDERLINES: u32 = 4107; +pub const SPI_GETACTIVEWNDTRKZORDER: u32 = 4108; +pub const SPI_SETACTIVEWNDTRKZORDER: u32 = 4109; +pub const SPI_GETHOTTRACKING: u32 = 4110; +pub const SPI_SETHOTTRACKING: u32 = 4111; +pub const SPI_GETMENUFADE: u32 = 4114; +pub const SPI_SETMENUFADE: u32 = 4115; +pub const SPI_GETSELECTIONFADE: u32 = 4116; +pub const SPI_SETSELECTIONFADE: u32 = 4117; +pub const SPI_GETTOOLTIPANIMATION: u32 = 4118; +pub const SPI_SETTOOLTIPANIMATION: u32 = 4119; +pub const SPI_GETTOOLTIPFADE: u32 = 4120; +pub const SPI_SETTOOLTIPFADE: u32 = 4121; +pub const SPI_GETCURSORSHADOW: u32 = 4122; +pub const SPI_SETCURSORSHADOW: u32 = 4123; +pub const SPI_GETMOUSESONAR: u32 = 4124; +pub const SPI_SETMOUSESONAR: u32 = 4125; +pub const SPI_GETMOUSECLICKLOCK: u32 = 4126; +pub const SPI_SETMOUSECLICKLOCK: u32 = 4127; +pub const SPI_GETMOUSEVANISH: u32 = 4128; +pub const SPI_SETMOUSEVANISH: u32 = 4129; +pub const SPI_GETFLATMENU: u32 = 4130; +pub const SPI_SETFLATMENU: u32 = 4131; +pub const SPI_GETDROPSHADOW: u32 = 4132; +pub const SPI_SETDROPSHADOW: u32 = 4133; +pub const SPI_GETBLOCKSENDINPUTRESETS: u32 = 4134; +pub const SPI_SETBLOCKSENDINPUTRESETS: u32 = 4135; +pub const SPI_GETUIEFFECTS: u32 = 4158; +pub const SPI_SETUIEFFECTS: u32 = 4159; +pub const SPI_GETDISABLEOVERLAPPEDCONTENT: u32 = 4160; +pub const SPI_SETDISABLEOVERLAPPEDCONTENT: u32 = 4161; +pub const SPI_GETCLIENTAREAANIMATION: u32 = 4162; +pub const SPI_SETCLIENTAREAANIMATION: u32 = 4163; +pub const SPI_GETCLEARTYPE: u32 = 4168; +pub const SPI_SETCLEARTYPE: u32 = 4169; +pub const SPI_GETSPEECHRECOGNITION: u32 = 4170; +pub const SPI_SETSPEECHRECOGNITION: u32 = 4171; +pub const SPI_GETCARETBROWSING: u32 = 4172; +pub const SPI_SETCARETBROWSING: u32 = 4173; +pub const SPI_GETTHREADLOCALINPUTSETTINGS: u32 = 4174; +pub const SPI_SETTHREADLOCALINPUTSETTINGS: u32 = 4175; +pub const SPI_GETSYSTEMLANGUAGEBAR: u32 = 4176; +pub const SPI_SETSYSTEMLANGUAGEBAR: u32 = 4177; +pub const SPI_GETFOREGROUNDLOCKTIMEOUT: u32 = 8192; +pub const SPI_SETFOREGROUNDLOCKTIMEOUT: u32 = 8193; +pub const SPI_GETACTIVEWNDTRKTIMEOUT: u32 = 8194; +pub const SPI_SETACTIVEWNDTRKTIMEOUT: u32 = 8195; +pub const SPI_GETFOREGROUNDFLASHCOUNT: u32 = 8196; +pub const SPI_SETFOREGROUNDFLASHCOUNT: u32 = 8197; +pub const SPI_GETCARETWIDTH: u32 = 8198; +pub const SPI_SETCARETWIDTH: u32 = 8199; +pub const SPI_GETMOUSECLICKLOCKTIME: u32 = 8200; +pub const SPI_SETMOUSECLICKLOCKTIME: u32 = 8201; +pub const SPI_GETFONTSMOOTHINGTYPE: u32 = 8202; +pub const SPI_SETFONTSMOOTHINGTYPE: u32 = 8203; +pub const FE_FONTSMOOTHINGSTANDARD: u32 = 1; +pub const FE_FONTSMOOTHINGCLEARTYPE: u32 = 2; +pub const SPI_GETFONTSMOOTHINGCONTRAST: u32 = 8204; +pub const SPI_SETFONTSMOOTHINGCONTRAST: u32 = 8205; +pub const SPI_GETFOCUSBORDERWIDTH: u32 = 8206; +pub const SPI_SETFOCUSBORDERWIDTH: u32 = 8207; +pub const SPI_GETFOCUSBORDERHEIGHT: u32 = 8208; +pub const SPI_SETFOCUSBORDERHEIGHT: u32 = 8209; +pub const SPI_GETFONTSMOOTHINGORIENTATION: u32 = 8210; +pub const SPI_SETFONTSMOOTHINGORIENTATION: u32 = 8211; +pub const FE_FONTSMOOTHINGORIENTATIONBGR: u32 = 0; +pub const FE_FONTSMOOTHINGORIENTATIONRGB: u32 = 1; +pub const SPI_GETMINIMUMHITRADIUS: u32 = 8212; +pub const SPI_SETMINIMUMHITRADIUS: u32 = 8213; +pub const SPI_GETMESSAGEDURATION: u32 = 8214; +pub const SPI_SETMESSAGEDURATION: u32 = 8215; +pub const SPI_GETCONTACTVISUALIZATION: u32 = 8216; +pub const SPI_SETCONTACTVISUALIZATION: u32 = 8217; +pub const CONTACTVISUALIZATION_OFF: u32 = 0; +pub const CONTACTVISUALIZATION_ON: u32 = 1; +pub const CONTACTVISUALIZATION_PRESENTATIONMODE: u32 = 2; +pub const SPI_GETGESTUREVISUALIZATION: u32 = 8218; +pub const SPI_SETGESTUREVISUALIZATION: u32 = 8219; +pub const GESTUREVISUALIZATION_OFF: u32 = 0; +pub const GESTUREVISUALIZATION_ON: u32 = 31; +pub const GESTUREVISUALIZATION_TAP: u32 = 1; +pub const GESTUREVISUALIZATION_DOUBLETAP: u32 = 2; +pub const GESTUREVISUALIZATION_PRESSANDTAP: u32 = 4; +pub const GESTUREVISUALIZATION_PRESSANDHOLD: u32 = 8; +pub const GESTUREVISUALIZATION_RIGHTTAP: u32 = 16; +pub const SPI_GETMOUSEWHEELROUTING: u32 = 8220; +pub const SPI_SETMOUSEWHEELROUTING: u32 = 8221; +pub const MOUSEWHEEL_ROUTING_FOCUS: u32 = 0; +pub const MOUSEWHEEL_ROUTING_HYBRID: u32 = 1; +pub const MOUSEWHEEL_ROUTING_MOUSE_POS: u32 = 2; +pub const SPI_GETPENVISUALIZATION: u32 = 8222; +pub const SPI_SETPENVISUALIZATION: u32 = 8223; +pub const PENVISUALIZATION_ON: u32 = 35; +pub const PENVISUALIZATION_OFF: u32 = 0; +pub const PENVISUALIZATION_TAP: u32 = 1; +pub const PENVISUALIZATION_DOUBLETAP: u32 = 2; +pub const PENVISUALIZATION_CURSOR: u32 = 32; +pub const SPI_GETPENARBITRATIONTYPE: u32 = 8224; +pub const SPI_SETPENARBITRATIONTYPE: u32 = 8225; +pub const PENARBITRATIONTYPE_NONE: u32 = 0; +pub const PENARBITRATIONTYPE_WIN8: u32 = 1; +pub const PENARBITRATIONTYPE_FIS: u32 = 2; +pub const PENARBITRATIONTYPE_SPT: u32 = 3; +pub const PENARBITRATIONTYPE_MAX: u32 = 4; +pub const SPI_GETCARETTIMEOUT: u32 = 8226; +pub const SPI_SETCARETTIMEOUT: u32 = 8227; +pub const SPI_GETHANDEDNESS: u32 = 8228; +pub const SPI_SETHANDEDNESS: u32 = 8229; +pub const SPIF_UPDATEINIFILE: u32 = 1; +pub const SPIF_SENDWININICHANGE: u32 = 2; +pub const SPIF_SENDCHANGE: u32 = 2; +pub const METRICS_USEDEFAULT: i32 = -1; +pub const ARW_BOTTOMLEFT: u32 = 0; +pub const ARW_BOTTOMRIGHT: u32 = 1; +pub const ARW_TOPLEFT: u32 = 2; +pub const ARW_TOPRIGHT: u32 = 3; +pub const ARW_STARTMASK: u32 = 3; +pub const ARW_STARTRIGHT: u32 = 1; +pub const ARW_STARTTOP: u32 = 2; +pub const ARW_LEFT: u32 = 0; +pub const ARW_RIGHT: u32 = 0; +pub const ARW_UP: u32 = 4; +pub const ARW_DOWN: u32 = 4; +pub const ARW_HIDE: u32 = 8; +pub const SERKF_SERIALKEYSON: u32 = 1; +pub const SERKF_AVAILABLE: u32 = 2; +pub const SERKF_INDICATOR: u32 = 4; +pub const HCF_HIGHCONTRASTON: u32 = 1; +pub const HCF_AVAILABLE: u32 = 2; +pub const HCF_HOTKEYACTIVE: u32 = 4; +pub const HCF_CONFIRMHOTKEY: u32 = 8; +pub const HCF_HOTKEYSOUND: u32 = 16; +pub const HCF_INDICATOR: u32 = 32; +pub const HCF_HOTKEYAVAILABLE: u32 = 64; +pub const HCF_LOGONDESKTOP: u32 = 256; +pub const HCF_DEFAULTDESKTOP: u32 = 512; +pub const HCF_OPTION_NOTHEMECHANGE: u32 = 4096; +pub const CDS_UPDATEREGISTRY: u32 = 1; +pub const CDS_TEST: u32 = 2; +pub const CDS_FULLSCREEN: u32 = 4; +pub const CDS_GLOBAL: u32 = 8; +pub const CDS_SET_PRIMARY: u32 = 16; +pub const CDS_VIDEOPARAMETERS: u32 = 32; +pub const CDS_ENABLE_UNSAFE_MODES: u32 = 256; +pub const CDS_DISABLE_UNSAFE_MODES: u32 = 512; +pub const CDS_RESET: u32 = 1073741824; +pub const CDS_RESET_EX: u32 = 536870912; +pub const CDS_NORESET: u32 = 268435456; +pub const VP_COMMAND_GET: u32 = 1; +pub const VP_COMMAND_SET: u32 = 2; +pub const VP_FLAGS_TV_MODE: u32 = 1; +pub const VP_FLAGS_TV_STANDARD: u32 = 2; +pub const VP_FLAGS_FLICKER: u32 = 4; +pub const VP_FLAGS_OVERSCAN: u32 = 8; +pub const VP_FLAGS_MAX_UNSCALED: u32 = 16; +pub const VP_FLAGS_POSITION: u32 = 32; +pub const VP_FLAGS_BRIGHTNESS: u32 = 64; +pub const VP_FLAGS_CONTRAST: u32 = 128; +pub const VP_FLAGS_COPYPROTECT: u32 = 256; +pub const VP_MODE_WIN_GRAPHICS: u32 = 1; +pub const VP_MODE_TV_PLAYBACK: u32 = 2; +pub const VP_TV_STANDARD_NTSC_M: u32 = 1; +pub const VP_TV_STANDARD_NTSC_M_J: u32 = 2; +pub const VP_TV_STANDARD_PAL_B: u32 = 4; +pub const VP_TV_STANDARD_PAL_D: u32 = 8; +pub const VP_TV_STANDARD_PAL_H: u32 = 16; +pub const VP_TV_STANDARD_PAL_I: u32 = 32; +pub const VP_TV_STANDARD_PAL_M: u32 = 64; +pub const VP_TV_STANDARD_PAL_N: u32 = 128; +pub const VP_TV_STANDARD_SECAM_B: u32 = 256; +pub const VP_TV_STANDARD_SECAM_D: u32 = 512; +pub const VP_TV_STANDARD_SECAM_G: u32 = 1024; +pub const VP_TV_STANDARD_SECAM_H: u32 = 2048; +pub const VP_TV_STANDARD_SECAM_K: u32 = 4096; +pub const VP_TV_STANDARD_SECAM_K1: u32 = 8192; +pub const VP_TV_STANDARD_SECAM_L: u32 = 16384; +pub const VP_TV_STANDARD_WIN_VGA: u32 = 32768; +pub const VP_TV_STANDARD_NTSC_433: u32 = 65536; +pub const VP_TV_STANDARD_PAL_G: u32 = 131072; +pub const VP_TV_STANDARD_PAL_60: u32 = 262144; +pub const VP_TV_STANDARD_SECAM_L1: u32 = 524288; +pub const VP_CP_TYPE_APS_TRIGGER: u32 = 1; +pub const VP_CP_TYPE_MACROVISION: u32 = 2; +pub const VP_CP_CMD_ACTIVATE: u32 = 1; +pub const VP_CP_CMD_DEACTIVATE: u32 = 2; +pub const VP_CP_CMD_CHANGE: u32 = 4; +pub const DISP_CHANGE_SUCCESSFUL: u32 = 0; +pub const DISP_CHANGE_RESTART: u32 = 1; +pub const DISP_CHANGE_FAILED: i32 = -1; +pub const DISP_CHANGE_BADMODE: i32 = -2; +pub const DISP_CHANGE_NOTUPDATED: i32 = -3; +pub const DISP_CHANGE_BADFLAGS: i32 = -4; +pub const DISP_CHANGE_BADPARAM: i32 = -5; +pub const DISP_CHANGE_BADDUALVIEW: i32 = -6; +pub const EDS_RAWMODE: u32 = 2; +pub const EDS_ROTATEDMODE: u32 = 4; +pub const EDD_GET_DEVICE_INTERFACE_NAME: u32 = 1; +pub const FKF_FILTERKEYSON: u32 = 1; +pub const FKF_AVAILABLE: u32 = 2; +pub const FKF_HOTKEYACTIVE: u32 = 4; +pub const FKF_CONFIRMHOTKEY: u32 = 8; +pub const FKF_HOTKEYSOUND: u32 = 16; +pub const FKF_INDICATOR: u32 = 32; +pub const FKF_CLICKON: u32 = 64; +pub const SKF_STICKYKEYSON: u32 = 1; +pub const SKF_AVAILABLE: u32 = 2; +pub const SKF_HOTKEYACTIVE: u32 = 4; +pub const SKF_CONFIRMHOTKEY: u32 = 8; +pub const SKF_HOTKEYSOUND: u32 = 16; +pub const SKF_INDICATOR: u32 = 32; +pub const SKF_AUDIBLEFEEDBACK: u32 = 64; +pub const SKF_TRISTATE: u32 = 128; +pub const SKF_TWOKEYSOFF: u32 = 256; +pub const SKF_LALTLATCHED: u32 = 268435456; +pub const SKF_LCTLLATCHED: u32 = 67108864; +pub const SKF_LSHIFTLATCHED: u32 = 16777216; +pub const SKF_RALTLATCHED: u32 = 536870912; +pub const SKF_RCTLLATCHED: u32 = 134217728; +pub const SKF_RSHIFTLATCHED: u32 = 33554432; +pub const SKF_LWINLATCHED: u32 = 1073741824; +pub const SKF_RWINLATCHED: u32 = 2147483648; +pub const SKF_LALTLOCKED: u32 = 1048576; +pub const SKF_LCTLLOCKED: u32 = 262144; +pub const SKF_LSHIFTLOCKED: u32 = 65536; +pub const SKF_RALTLOCKED: u32 = 2097152; +pub const SKF_RCTLLOCKED: u32 = 524288; +pub const SKF_RSHIFTLOCKED: u32 = 131072; +pub const SKF_LWINLOCKED: u32 = 4194304; +pub const SKF_RWINLOCKED: u32 = 8388608; +pub const MKF_MOUSEKEYSON: u32 = 1; +pub const MKF_AVAILABLE: u32 = 2; +pub const MKF_HOTKEYACTIVE: u32 = 4; +pub const MKF_CONFIRMHOTKEY: u32 = 8; +pub const MKF_HOTKEYSOUND: u32 = 16; +pub const MKF_INDICATOR: u32 = 32; +pub const MKF_MODIFIERS: u32 = 64; +pub const MKF_REPLACENUMBERS: u32 = 128; +pub const MKF_LEFTBUTTONSEL: u32 = 268435456; +pub const MKF_RIGHTBUTTONSEL: u32 = 536870912; +pub const MKF_LEFTBUTTONDOWN: u32 = 16777216; +pub const MKF_RIGHTBUTTONDOWN: u32 = 33554432; +pub const MKF_MOUSEMODE: u32 = 2147483648; +pub const ATF_TIMEOUTON: u32 = 1; +pub const ATF_ONOFFFEEDBACK: u32 = 2; +pub const SSGF_NONE: u32 = 0; +pub const SSGF_DISPLAY: u32 = 3; +pub const SSTF_NONE: u32 = 0; +pub const SSTF_CHARS: u32 = 1; +pub const SSTF_BORDER: u32 = 2; +pub const SSTF_DISPLAY: u32 = 3; +pub const SSWF_NONE: u32 = 0; +pub const SSWF_TITLE: u32 = 1; +pub const SSWF_WINDOW: u32 = 2; +pub const SSWF_DISPLAY: u32 = 3; +pub const SSWF_CUSTOM: u32 = 4; +pub const SSF_SOUNDSENTRYON: u32 = 1; +pub const SSF_AVAILABLE: u32 = 2; +pub const SSF_INDICATOR: u32 = 4; +pub const TKF_TOGGLEKEYSON: u32 = 1; +pub const TKF_AVAILABLE: u32 = 2; +pub const TKF_HOTKEYACTIVE: u32 = 4; +pub const TKF_CONFIRMHOTKEY: u32 = 8; +pub const TKF_HOTKEYSOUND: u32 = 16; +pub const TKF_INDICATOR: u32 = 32; +pub const SLE_ERROR: u32 = 1; +pub const SLE_MINORERROR: u32 = 2; +pub const SLE_WARNING: u32 = 3; +pub const MONITOR_DEFAULTTONULL: u32 = 0; +pub const MONITOR_DEFAULTTOPRIMARY: u32 = 1; +pub const MONITOR_DEFAULTTONEAREST: u32 = 2; +pub const MONITORINFOF_PRIMARY: u32 = 1; +pub const WINEVENT_OUTOFCONTEXT: u32 = 0; +pub const WINEVENT_SKIPOWNTHREAD: u32 = 1; +pub const WINEVENT_SKIPOWNPROCESS: u32 = 2; +pub const WINEVENT_INCONTEXT: u32 = 4; +pub const CHILDID_SELF: u32 = 0; +pub const INDEXID_OBJECT: u32 = 0; +pub const INDEXID_CONTAINER: u32 = 0; +pub const EVENT_MIN: u32 = 1; +pub const EVENT_MAX: u32 = 2147483647; +pub const EVENT_SYSTEM_SOUND: u32 = 1; +pub const EVENT_SYSTEM_ALERT: u32 = 2; +pub const EVENT_SYSTEM_FOREGROUND: u32 = 3; +pub const EVENT_SYSTEM_MENUSTART: u32 = 4; +pub const EVENT_SYSTEM_MENUEND: u32 = 5; +pub const EVENT_SYSTEM_MENUPOPUPSTART: u32 = 6; +pub const EVENT_SYSTEM_MENUPOPUPEND: u32 = 7; +pub const EVENT_SYSTEM_CAPTURESTART: u32 = 8; +pub const EVENT_SYSTEM_CAPTUREEND: u32 = 9; +pub const EVENT_SYSTEM_MOVESIZESTART: u32 = 10; +pub const EVENT_SYSTEM_MOVESIZEEND: u32 = 11; +pub const EVENT_SYSTEM_CONTEXTHELPSTART: u32 = 12; +pub const EVENT_SYSTEM_CONTEXTHELPEND: u32 = 13; +pub const EVENT_SYSTEM_DRAGDROPSTART: u32 = 14; +pub const EVENT_SYSTEM_DRAGDROPEND: u32 = 15; +pub const EVENT_SYSTEM_DIALOGSTART: u32 = 16; +pub const EVENT_SYSTEM_DIALOGEND: u32 = 17; +pub const EVENT_SYSTEM_SCROLLINGSTART: u32 = 18; +pub const EVENT_SYSTEM_SCROLLINGEND: u32 = 19; +pub const EVENT_SYSTEM_SWITCHSTART: u32 = 20; +pub const EVENT_SYSTEM_SWITCHEND: u32 = 21; +pub const EVENT_SYSTEM_MINIMIZESTART: u32 = 22; +pub const EVENT_SYSTEM_MINIMIZEEND: u32 = 23; +pub const EVENT_SYSTEM_DESKTOPSWITCH: u32 = 32; +pub const EVENT_SYSTEM_SWITCHER_APPGRABBED: u32 = 36; +pub const EVENT_SYSTEM_SWITCHER_APPOVERTARGET: u32 = 37; +pub const EVENT_SYSTEM_SWITCHER_APPDROPPED: u32 = 38; +pub const EVENT_SYSTEM_SWITCHER_CANCELLED: u32 = 39; +pub const EVENT_SYSTEM_IME_KEY_NOTIFICATION: u32 = 41; +pub const EVENT_SYSTEM_END: u32 = 255; +pub const EVENT_OEM_DEFINED_START: u32 = 257; +pub const EVENT_OEM_DEFINED_END: u32 = 511; +pub const EVENT_UIA_EVENTID_START: u32 = 19968; +pub const EVENT_UIA_EVENTID_END: u32 = 20223; +pub const EVENT_UIA_PROPID_START: u32 = 29952; +pub const EVENT_UIA_PROPID_END: u32 = 30207; +pub const EVENT_CONSOLE_CARET: u32 = 16385; +pub const EVENT_CONSOLE_UPDATE_REGION: u32 = 16386; +pub const EVENT_CONSOLE_UPDATE_SIMPLE: u32 = 16387; +pub const EVENT_CONSOLE_UPDATE_SCROLL: u32 = 16388; +pub const EVENT_CONSOLE_LAYOUT: u32 = 16389; +pub const EVENT_CONSOLE_START_APPLICATION: u32 = 16390; +pub const EVENT_CONSOLE_END_APPLICATION: u32 = 16391; +pub const CONSOLE_APPLICATION_16BIT: u32 = 0; +pub const CONSOLE_CARET_SELECTION: u32 = 1; +pub const CONSOLE_CARET_VISIBLE: u32 = 2; +pub const EVENT_CONSOLE_END: u32 = 16639; +pub const EVENT_OBJECT_CREATE: u32 = 32768; +pub const EVENT_OBJECT_DESTROY: u32 = 32769; +pub const EVENT_OBJECT_SHOW: u32 = 32770; +pub const EVENT_OBJECT_HIDE: u32 = 32771; +pub const EVENT_OBJECT_REORDER: u32 = 32772; +pub const EVENT_OBJECT_FOCUS: u32 = 32773; +pub const EVENT_OBJECT_SELECTION: u32 = 32774; +pub const EVENT_OBJECT_SELECTIONADD: u32 = 32775; +pub const EVENT_OBJECT_SELECTIONREMOVE: u32 = 32776; +pub const EVENT_OBJECT_SELECTIONWITHIN: u32 = 32777; +pub const EVENT_OBJECT_STATECHANGE: u32 = 32778; +pub const EVENT_OBJECT_LOCATIONCHANGE: u32 = 32779; +pub const EVENT_OBJECT_NAMECHANGE: u32 = 32780; +pub const EVENT_OBJECT_DESCRIPTIONCHANGE: u32 = 32781; +pub const EVENT_OBJECT_VALUECHANGE: u32 = 32782; +pub const EVENT_OBJECT_PARENTCHANGE: u32 = 32783; +pub const EVENT_OBJECT_HELPCHANGE: u32 = 32784; +pub const EVENT_OBJECT_DEFACTIONCHANGE: u32 = 32785; +pub const EVENT_OBJECT_ACCELERATORCHANGE: u32 = 32786; +pub const EVENT_OBJECT_INVOKED: u32 = 32787; +pub const EVENT_OBJECT_TEXTSELECTIONCHANGED: u32 = 32788; +pub const EVENT_OBJECT_CONTENTSCROLLED: u32 = 32789; +pub const EVENT_SYSTEM_ARRANGMENTPREVIEW: u32 = 32790; +pub const EVENT_OBJECT_CLOAKED: u32 = 32791; +pub const EVENT_OBJECT_UNCLOAKED: u32 = 32792; +pub const EVENT_OBJECT_LIVEREGIONCHANGED: u32 = 32793; +pub const EVENT_OBJECT_HOSTEDOBJECTSINVALIDATED: u32 = 32800; +pub const EVENT_OBJECT_DRAGSTART: u32 = 32801; +pub const EVENT_OBJECT_DRAGCANCEL: u32 = 32802; +pub const EVENT_OBJECT_DRAGCOMPLETE: u32 = 32803; +pub const EVENT_OBJECT_DRAGENTER: u32 = 32804; +pub const EVENT_OBJECT_DRAGLEAVE: u32 = 32805; +pub const EVENT_OBJECT_DRAGDROPPED: u32 = 32806; +pub const EVENT_OBJECT_IME_SHOW: u32 = 32807; +pub const EVENT_OBJECT_IME_HIDE: u32 = 32808; +pub const EVENT_OBJECT_IME_CHANGE: u32 = 32809; +pub const EVENT_OBJECT_TEXTEDIT_CONVERSIONTARGETCHANGED: u32 = 32816; +pub const EVENT_OBJECT_END: u32 = 33023; +pub const EVENT_AIA_START: u32 = 40960; +pub const EVENT_AIA_END: u32 = 45055; +pub const SOUND_SYSTEM_STARTUP: u32 = 1; +pub const SOUND_SYSTEM_SHUTDOWN: u32 = 2; +pub const SOUND_SYSTEM_BEEP: u32 = 3; +pub const SOUND_SYSTEM_ERROR: u32 = 4; +pub const SOUND_SYSTEM_QUESTION: u32 = 5; +pub const SOUND_SYSTEM_WARNING: u32 = 6; +pub const SOUND_SYSTEM_INFORMATION: u32 = 7; +pub const SOUND_SYSTEM_MAXIMIZE: u32 = 8; +pub const SOUND_SYSTEM_MINIMIZE: u32 = 9; +pub const SOUND_SYSTEM_RESTOREUP: u32 = 10; +pub const SOUND_SYSTEM_RESTOREDOWN: u32 = 11; +pub const SOUND_SYSTEM_APPSTART: u32 = 12; +pub const SOUND_SYSTEM_FAULT: u32 = 13; +pub const SOUND_SYSTEM_APPEND: u32 = 14; +pub const SOUND_SYSTEM_MENUCOMMAND: u32 = 15; +pub const SOUND_SYSTEM_MENUPOPUP: u32 = 16; +pub const CSOUND_SYSTEM: u32 = 16; +pub const ALERT_SYSTEM_INFORMATIONAL: u32 = 1; +pub const ALERT_SYSTEM_WARNING: u32 = 2; +pub const ALERT_SYSTEM_ERROR: u32 = 3; +pub const ALERT_SYSTEM_QUERY: u32 = 4; +pub const ALERT_SYSTEM_CRITICAL: u32 = 5; +pub const CALERT_SYSTEM: u32 = 6; +pub const GUI_CARETBLINKING: u32 = 1; +pub const GUI_INMOVESIZE: u32 = 2; +pub const GUI_INMENUMODE: u32 = 4; +pub const GUI_SYSTEMMENUMODE: u32 = 8; +pub const GUI_POPUPMENUMODE: u32 = 16; +pub const GUI_16BITTASK: u32 = 0; +pub const USER_DEFAULT_SCREEN_DPI: u32 = 96; +pub const STATE_SYSTEM_UNAVAILABLE: u32 = 1; +pub const STATE_SYSTEM_SELECTED: u32 = 2; +pub const STATE_SYSTEM_FOCUSED: u32 = 4; +pub const STATE_SYSTEM_PRESSED: u32 = 8; +pub const STATE_SYSTEM_CHECKED: u32 = 16; +pub const STATE_SYSTEM_MIXED: u32 = 32; +pub const STATE_SYSTEM_INDETERMINATE: u32 = 32; +pub const STATE_SYSTEM_READONLY: u32 = 64; +pub const STATE_SYSTEM_HOTTRACKED: u32 = 128; +pub const STATE_SYSTEM_DEFAULT: u32 = 256; +pub const STATE_SYSTEM_EXPANDED: u32 = 512; +pub const STATE_SYSTEM_COLLAPSED: u32 = 1024; +pub const STATE_SYSTEM_BUSY: u32 = 2048; +pub const STATE_SYSTEM_FLOATING: u32 = 4096; +pub const STATE_SYSTEM_MARQUEED: u32 = 8192; +pub const STATE_SYSTEM_ANIMATED: u32 = 16384; +pub const STATE_SYSTEM_INVISIBLE: u32 = 32768; +pub const STATE_SYSTEM_OFFSCREEN: u32 = 65536; +pub const STATE_SYSTEM_SIZEABLE: u32 = 131072; +pub const STATE_SYSTEM_MOVEABLE: u32 = 262144; +pub const STATE_SYSTEM_SELFVOICING: u32 = 524288; +pub const STATE_SYSTEM_FOCUSABLE: u32 = 1048576; +pub const STATE_SYSTEM_SELECTABLE: u32 = 2097152; +pub const STATE_SYSTEM_LINKED: u32 = 4194304; +pub const STATE_SYSTEM_TRAVERSED: u32 = 8388608; +pub const STATE_SYSTEM_MULTISELECTABLE: u32 = 16777216; +pub const STATE_SYSTEM_EXTSELECTABLE: u32 = 33554432; +pub const STATE_SYSTEM_ALERT_LOW: u32 = 67108864; +pub const STATE_SYSTEM_ALERT_MEDIUM: u32 = 134217728; +pub const STATE_SYSTEM_ALERT_HIGH: u32 = 268435456; +pub const STATE_SYSTEM_PROTECTED: u32 = 536870912; +pub const STATE_SYSTEM_VALID: u32 = 1073741823; +pub const CCHILDREN_TITLEBAR: u32 = 5; +pub const CCHILDREN_SCROLLBAR: u32 = 5; +pub const CURSOR_SHOWING: u32 = 1; +pub const CURSOR_SUPPRESSED: u32 = 2; +pub const WS_ACTIVECAPTION: u32 = 1; +pub const GA_PARENT: u32 = 1; +pub const GA_ROOT: u32 = 2; +pub const GA_ROOTOWNER: u32 = 3; +pub const RIM_INPUT: u32 = 0; +pub const RIM_INPUTSINK: u32 = 1; +pub const RIM_TYPEMOUSE: u32 = 0; +pub const RIM_TYPEKEYBOARD: u32 = 1; +pub const RIM_TYPEHID: u32 = 2; +pub const RIM_TYPEMAX: u32 = 2; +pub const RI_MOUSE_LEFT_BUTTON_DOWN: u32 = 1; +pub const RI_MOUSE_LEFT_BUTTON_UP: u32 = 2; +pub const RI_MOUSE_RIGHT_BUTTON_DOWN: u32 = 4; +pub const RI_MOUSE_RIGHT_BUTTON_UP: u32 = 8; +pub const RI_MOUSE_MIDDLE_BUTTON_DOWN: u32 = 16; +pub const RI_MOUSE_MIDDLE_BUTTON_UP: u32 = 32; +pub const RI_MOUSE_BUTTON_1_DOWN: u32 = 1; +pub const RI_MOUSE_BUTTON_1_UP: u32 = 2; +pub const RI_MOUSE_BUTTON_2_DOWN: u32 = 4; +pub const RI_MOUSE_BUTTON_2_UP: u32 = 8; +pub const RI_MOUSE_BUTTON_3_DOWN: u32 = 16; +pub const RI_MOUSE_BUTTON_3_UP: u32 = 32; +pub const RI_MOUSE_BUTTON_4_DOWN: u32 = 64; +pub const RI_MOUSE_BUTTON_4_UP: u32 = 128; +pub const RI_MOUSE_BUTTON_5_DOWN: u32 = 256; +pub const RI_MOUSE_BUTTON_5_UP: u32 = 512; +pub const RI_MOUSE_WHEEL: u32 = 1024; +pub const RI_MOUSE_HWHEEL: u32 = 2048; +pub const MOUSE_MOVE_RELATIVE: u32 = 0; +pub const MOUSE_MOVE_ABSOLUTE: u32 = 1; +pub const MOUSE_VIRTUAL_DESKTOP: u32 = 2; +pub const MOUSE_ATTRIBUTES_CHANGED: u32 = 4; +pub const MOUSE_MOVE_NOCOALESCE: u32 = 8; +pub const KEYBOARD_OVERRUN_MAKE_CODE: u32 = 255; +pub const RI_KEY_MAKE: u32 = 0; +pub const RI_KEY_BREAK: u32 = 1; +pub const RI_KEY_E0: u32 = 2; +pub const RI_KEY_E1: u32 = 4; +pub const RI_KEY_TERMSRV_SET_LED: u32 = 8; +pub const RI_KEY_TERMSRV_SHADOW: u32 = 16; +pub const RID_INPUT: u32 = 268435459; +pub const RID_HEADER: u32 = 268435461; +pub const RIDI_PREPARSEDDATA: u32 = 536870917; +pub const RIDI_DEVICENAME: u32 = 536870919; +pub const RIDI_DEVICEINFO: u32 = 536870923; +pub const RIDEV_REMOVE: u32 = 1; +pub const RIDEV_EXCLUDE: u32 = 16; +pub const RIDEV_PAGEONLY: u32 = 32; +pub const RIDEV_NOLEGACY: u32 = 48; +pub const RIDEV_INPUTSINK: u32 = 256; +pub const RIDEV_CAPTUREMOUSE: u32 = 512; +pub const RIDEV_NOHOTKEYS: u32 = 512; +pub const RIDEV_APPKEYS: u32 = 1024; +pub const RIDEV_EXINPUTSINK: u32 = 4096; +pub const RIDEV_DEVNOTIFY: u32 = 8192; +pub const RIDEV_EXMODEMASK: u32 = 240; +pub const GIDC_ARRIVAL: u32 = 1; +pub const GIDC_REMOVAL: u32 = 2; +pub const POINTER_DEVICE_PRODUCT_STRING_MAX: u32 = 520; +pub const PDC_ARRIVAL: u32 = 1; +pub const PDC_REMOVAL: u32 = 2; +pub const PDC_ORIENTATION_0: u32 = 4; +pub const PDC_ORIENTATION_90: u32 = 8; +pub const PDC_ORIENTATION_180: u32 = 16; +pub const PDC_ORIENTATION_270: u32 = 32; +pub const PDC_MODE_DEFAULT: u32 = 64; +pub const PDC_MODE_CENTERED: u32 = 128; +pub const PDC_MAPPING_CHANGE: u32 = 256; +pub const PDC_RESOLUTION: u32 = 512; +pub const PDC_ORIGIN: u32 = 1024; +pub const PDC_MODE_ASPECTRATIOPRESERVED: u32 = 2048; +pub const MSGFLT_ADD: u32 = 1; +pub const MSGFLT_REMOVE: u32 = 2; +pub const MSGFLTINFO_NONE: u32 = 0; +pub const MSGFLTINFO_ALREADYALLOWED_FORWND: u32 = 1; +pub const MSGFLTINFO_ALREADYDISALLOWED_FORWND: u32 = 2; +pub const MSGFLTINFO_ALLOWED_HIGHER: u32 = 3; +pub const MSGFLT_RESET: u32 = 0; +pub const MSGFLT_ALLOW: u32 = 1; +pub const MSGFLT_DISALLOW: u32 = 2; +pub const GF_BEGIN: u32 = 1; +pub const GF_INERTIA: u32 = 2; +pub const GF_END: u32 = 4; +pub const GID_BEGIN: u32 = 1; +pub const GID_END: u32 = 2; +pub const GID_ZOOM: u32 = 3; +pub const GID_PAN: u32 = 4; +pub const GID_ROTATE: u32 = 5; +pub const GID_TWOFINGERTAP: u32 = 6; +pub const GID_PRESSANDTAP: u32 = 7; +pub const GID_ROLLOVER: u32 = 7; +pub const GC_ALLGESTURES: u32 = 1; +pub const GC_ZOOM: u32 = 1; +pub const GC_PAN: u32 = 1; +pub const GC_PAN_WITH_SINGLE_FINGER_VERTICALLY: u32 = 2; +pub const GC_PAN_WITH_SINGLE_FINGER_HORIZONTALLY: u32 = 4; +pub const GC_PAN_WITH_GUTTER: u32 = 8; +pub const GC_PAN_WITH_INERTIA: u32 = 16; +pub const GC_ROTATE: u32 = 1; +pub const GC_TWOFINGERTAP: u32 = 1; +pub const GC_PRESSANDTAP: u32 = 1; +pub const GC_ROLLOVER: u32 = 1; +pub const GESTURECONFIGMAXCOUNT: u32 = 256; +pub const GCF_INCLUDE_ANCESTORS: u32 = 1; +pub const NID_INTEGRATED_TOUCH: u32 = 1; +pub const NID_EXTERNAL_TOUCH: u32 = 2; +pub const NID_INTEGRATED_PEN: u32 = 4; +pub const NID_EXTERNAL_PEN: u32 = 8; +pub const NID_MULTI_INPUT: u32 = 64; +pub const NID_READY: u32 = 128; +pub const MAX_STR_BLOCKREASON: u32 = 256; +pub const WM_TOOLTIPDISMISS: u32 = 837; +pub const MAX_LEADBYTES: u32 = 12; +pub const MAX_DEFAULTCHAR: u32 = 2; +pub const HIGH_SURROGATE_START: u32 = 55296; +pub const HIGH_SURROGATE_END: u32 = 56319; +pub const LOW_SURROGATE_START: u32 = 56320; +pub const LOW_SURROGATE_END: u32 = 57343; +pub const MB_PRECOMPOSED: u32 = 1; +pub const MB_COMPOSITE: u32 = 2; +pub const MB_USEGLYPHCHARS: u32 = 4; +pub const MB_ERR_INVALID_CHARS: u32 = 8; +pub const WC_COMPOSITECHECK: u32 = 512; +pub const WC_DISCARDNS: u32 = 16; +pub const WC_SEPCHARS: u32 = 32; +pub const WC_DEFAULTCHAR: u32 = 64; +pub const WC_ERR_INVALID_CHARS: u32 = 128; +pub const WC_NO_BEST_FIT_CHARS: u32 = 1024; +pub const CT_CTYPE1: u32 = 1; +pub const CT_CTYPE2: u32 = 2; +pub const CT_CTYPE3: u32 = 4; +pub const C1_UPPER: u32 = 1; +pub const C1_LOWER: u32 = 2; +pub const C1_DIGIT: u32 = 4; +pub const C1_SPACE: u32 = 8; +pub const C1_PUNCT: u32 = 16; +pub const C1_CNTRL: u32 = 32; +pub const C1_BLANK: u32 = 64; +pub const C1_XDIGIT: u32 = 128; +pub const C1_ALPHA: u32 = 256; +pub const C1_DEFINED: u32 = 512; +pub const C2_LEFTTORIGHT: u32 = 1; +pub const C2_RIGHTTOLEFT: u32 = 2; +pub const C2_EUROPENUMBER: u32 = 3; +pub const C2_EUROPESEPARATOR: u32 = 4; +pub const C2_EUROPETERMINATOR: u32 = 5; +pub const C2_ARABICNUMBER: u32 = 6; +pub const C2_COMMONSEPARATOR: u32 = 7; +pub const C2_BLOCKSEPARATOR: u32 = 8; +pub const C2_SEGMENTSEPARATOR: u32 = 9; +pub const C2_WHITESPACE: u32 = 10; +pub const C2_OTHERNEUTRAL: u32 = 11; +pub const C2_NOTAPPLICABLE: u32 = 0; +pub const C3_NONSPACING: u32 = 1; +pub const C3_DIACRITIC: u32 = 2; +pub const C3_VOWELMARK: u32 = 4; +pub const C3_SYMBOL: u32 = 8; +pub const C3_KATAKANA: u32 = 16; +pub const C3_HIRAGANA: u32 = 32; +pub const C3_HALFWIDTH: u32 = 64; +pub const C3_FULLWIDTH: u32 = 128; +pub const C3_IDEOGRAPH: u32 = 256; +pub const C3_KASHIDA: u32 = 512; +pub const C3_LEXICAL: u32 = 1024; +pub const C3_HIGHSURROGATE: u32 = 2048; +pub const C3_LOWSURROGATE: u32 = 4096; +pub const C3_ALPHA: u32 = 32768; +pub const C3_NOTAPPLICABLE: u32 = 0; +pub const NORM_IGNORECASE: u32 = 1; +pub const NORM_IGNORENONSPACE: u32 = 2; +pub const NORM_IGNORESYMBOLS: u32 = 4; +pub const LINGUISTIC_IGNORECASE: u32 = 16; +pub const LINGUISTIC_IGNOREDIACRITIC: u32 = 32; +pub const NORM_IGNOREKANATYPE: u32 = 65536; +pub const NORM_IGNOREWIDTH: u32 = 131072; +pub const NORM_LINGUISTIC_CASING: u32 = 134217728; +pub const MAP_FOLDCZONE: u32 = 16; +pub const MAP_PRECOMPOSED: u32 = 32; +pub const MAP_COMPOSITE: u32 = 64; +pub const MAP_FOLDDIGITS: u32 = 128; +pub const MAP_EXPAND_LIGATURES: u32 = 8192; +pub const LCMAP_LOWERCASE: u32 = 256; +pub const LCMAP_UPPERCASE: u32 = 512; +pub const LCMAP_TITLECASE: u32 = 768; +pub const LCMAP_SORTKEY: u32 = 1024; +pub const LCMAP_BYTEREV: u32 = 2048; +pub const LCMAP_HIRAGANA: u32 = 1048576; +pub const LCMAP_KATAKANA: u32 = 2097152; +pub const LCMAP_HALFWIDTH: u32 = 4194304; +pub const LCMAP_FULLWIDTH: u32 = 8388608; +pub const LCMAP_LINGUISTIC_CASING: u32 = 16777216; +pub const LCMAP_SIMPLIFIED_CHINESE: u32 = 33554432; +pub const LCMAP_TRADITIONAL_CHINESE: u32 = 67108864; +pub const LCMAP_SORTHANDLE: u32 = 536870912; +pub const LCMAP_HASH: u32 = 262144; +pub const FIND_STARTSWITH: u32 = 1048576; +pub const FIND_ENDSWITH: u32 = 2097152; +pub const FIND_FROMSTART: u32 = 4194304; +pub const FIND_FROMEND: u32 = 8388608; +pub const LGRPID_INSTALLED: u32 = 1; +pub const LGRPID_SUPPORTED: u32 = 2; +pub const LCID_INSTALLED: u32 = 1; +pub const LCID_SUPPORTED: u32 = 2; +pub const LCID_ALTERNATE_SORTS: u32 = 4; +pub const LOCALE_ALL: u32 = 0; +pub const LOCALE_WINDOWS: u32 = 1; +pub const LOCALE_SUPPLEMENTAL: u32 = 2; +pub const LOCALE_ALTERNATE_SORTS: u32 = 4; +pub const LOCALE_REPLACEMENT: u32 = 8; +pub const LOCALE_NEUTRALDATA: u32 = 16; +pub const LOCALE_SPECIFICDATA: u32 = 32; +pub const CP_INSTALLED: u32 = 1; +pub const CP_SUPPORTED: u32 = 2; +pub const SORT_STRINGSORT: u32 = 4096; +pub const SORT_DIGITSASNUMBERS: u32 = 8; +pub const CSTR_LESS_THAN: u32 = 1; +pub const CSTR_EQUAL: u32 = 2; +pub const CSTR_GREATER_THAN: u32 = 3; +pub const CP_ACP: u32 = 0; +pub const CP_OEMCP: u32 = 1; +pub const CP_MACCP: u32 = 2; +pub const CP_THREAD_ACP: u32 = 3; +pub const CP_SYMBOL: u32 = 42; +pub const CP_UTF7: u32 = 65000; +pub const CP_UTF8: u32 = 65001; +pub const CTRY_DEFAULT: u32 = 0; +pub const CTRY_ALBANIA: u32 = 355; +pub const CTRY_ALGERIA: u32 = 213; +pub const CTRY_ARGENTINA: u32 = 54; +pub const CTRY_ARMENIA: u32 = 374; +pub const CTRY_AUSTRALIA: u32 = 61; +pub const CTRY_AUSTRIA: u32 = 43; +pub const CTRY_AZERBAIJAN: u32 = 994; +pub const CTRY_BAHRAIN: u32 = 973; +pub const CTRY_BELARUS: u32 = 375; +pub const CTRY_BELGIUM: u32 = 32; +pub const CTRY_BELIZE: u32 = 501; +pub const CTRY_BOLIVIA: u32 = 591; +pub const CTRY_BRAZIL: u32 = 55; +pub const CTRY_BRUNEI_DARUSSALAM: u32 = 673; +pub const CTRY_BULGARIA: u32 = 359; +pub const CTRY_CANADA: u32 = 2; +pub const CTRY_CARIBBEAN: u32 = 1; +pub const CTRY_CHILE: u32 = 56; +pub const CTRY_COLOMBIA: u32 = 57; +pub const CTRY_COSTA_RICA: u32 = 506; +pub const CTRY_CROATIA: u32 = 385; +pub const CTRY_CZECH: u32 = 420; +pub const CTRY_DENMARK: u32 = 45; +pub const CTRY_DOMINICAN_REPUBLIC: u32 = 1; +pub const CTRY_ECUADOR: u32 = 593; +pub const CTRY_EGYPT: u32 = 20; +pub const CTRY_EL_SALVADOR: u32 = 503; +pub const CTRY_ESTONIA: u32 = 372; +pub const CTRY_FAEROE_ISLANDS: u32 = 298; +pub const CTRY_FINLAND: u32 = 358; +pub const CTRY_FRANCE: u32 = 33; +pub const CTRY_GEORGIA: u32 = 995; +pub const CTRY_GERMANY: u32 = 49; +pub const CTRY_GREECE: u32 = 30; +pub const CTRY_GUATEMALA: u32 = 502; +pub const CTRY_HONDURAS: u32 = 504; +pub const CTRY_HONG_KONG: u32 = 852; +pub const CTRY_HUNGARY: u32 = 36; +pub const CTRY_ICELAND: u32 = 354; +pub const CTRY_INDIA: u32 = 91; +pub const CTRY_INDONESIA: u32 = 62; +pub const CTRY_IRAN: u32 = 981; +pub const CTRY_IRAQ: u32 = 964; +pub const CTRY_IRELAND: u32 = 353; +pub const CTRY_ISRAEL: u32 = 972; +pub const CTRY_ITALY: u32 = 39; +pub const CTRY_JAMAICA: u32 = 1; +pub const CTRY_JAPAN: u32 = 81; +pub const CTRY_JORDAN: u32 = 962; +pub const CTRY_KAZAKSTAN: u32 = 7; +pub const CTRY_KENYA: u32 = 254; +pub const CTRY_KUWAIT: u32 = 965; +pub const CTRY_KYRGYZSTAN: u32 = 996; +pub const CTRY_LATVIA: u32 = 371; +pub const CTRY_LEBANON: u32 = 961; +pub const CTRY_LIBYA: u32 = 218; +pub const CTRY_LIECHTENSTEIN: u32 = 41; +pub const CTRY_LITHUANIA: u32 = 370; +pub const CTRY_LUXEMBOURG: u32 = 352; +pub const CTRY_MACAU: u32 = 853; +pub const CTRY_MACEDONIA: u32 = 389; +pub const CTRY_MALAYSIA: u32 = 60; +pub const CTRY_MALDIVES: u32 = 960; +pub const CTRY_MEXICO: u32 = 52; +pub const CTRY_MONACO: u32 = 33; +pub const CTRY_MONGOLIA: u32 = 976; +pub const CTRY_MOROCCO: u32 = 212; +pub const CTRY_NETHERLANDS: u32 = 31; +pub const CTRY_NEW_ZEALAND: u32 = 64; +pub const CTRY_NICARAGUA: u32 = 505; +pub const CTRY_NORWAY: u32 = 47; +pub const CTRY_OMAN: u32 = 968; +pub const CTRY_PAKISTAN: u32 = 92; +pub const CTRY_PANAMA: u32 = 507; +pub const CTRY_PARAGUAY: u32 = 595; +pub const CTRY_PERU: u32 = 51; +pub const CTRY_PHILIPPINES: u32 = 63; +pub const CTRY_POLAND: u32 = 48; +pub const CTRY_PORTUGAL: u32 = 351; +pub const CTRY_PRCHINA: u32 = 86; +pub const CTRY_PUERTO_RICO: u32 = 1; +pub const CTRY_QATAR: u32 = 974; +pub const CTRY_ROMANIA: u32 = 40; +pub const CTRY_RUSSIA: u32 = 7; +pub const CTRY_SAUDI_ARABIA: u32 = 966; +pub const CTRY_SERBIA: u32 = 381; +pub const CTRY_SINGAPORE: u32 = 65; +pub const CTRY_SLOVAK: u32 = 421; +pub const CTRY_SLOVENIA: u32 = 386; +pub const CTRY_SOUTH_AFRICA: u32 = 27; +pub const CTRY_SOUTH_KOREA: u32 = 82; +pub const CTRY_SPAIN: u32 = 34; +pub const CTRY_SWEDEN: u32 = 46; +pub const CTRY_SWITZERLAND: u32 = 41; +pub const CTRY_SYRIA: u32 = 963; +pub const CTRY_TAIWAN: u32 = 886; +pub const CTRY_TATARSTAN: u32 = 7; +pub const CTRY_THAILAND: u32 = 66; +pub const CTRY_TRINIDAD_Y_TOBAGO: u32 = 1; +pub const CTRY_TUNISIA: u32 = 216; +pub const CTRY_TURKEY: u32 = 90; +pub const CTRY_UAE: u32 = 971; +pub const CTRY_UKRAINE: u32 = 380; +pub const CTRY_UNITED_KINGDOM: u32 = 44; +pub const CTRY_UNITED_STATES: u32 = 1; +pub const CTRY_URUGUAY: u32 = 598; +pub const CTRY_UZBEKISTAN: u32 = 7; +pub const CTRY_VENEZUELA: u32 = 58; +pub const CTRY_VIET_NAM: u32 = 84; +pub const CTRY_YEMEN: u32 = 967; +pub const CTRY_ZIMBABWE: u32 = 263; +pub const LOCALE_NOUSEROVERRIDE: u32 = 2147483648; +pub const LOCALE_USE_CP_ACP: u32 = 1073741824; +pub const LOCALE_RETURN_NUMBER: u32 = 536870912; +pub const LOCALE_RETURN_GENITIVE_NAMES: u32 = 268435456; +pub const LOCALE_ALLOW_NEUTRAL_NAMES: u32 = 134217728; +pub const LOCALE_SLOCALIZEDDISPLAYNAME: u32 = 2; +pub const LOCALE_SENGLISHDISPLAYNAME: u32 = 114; +pub const LOCALE_SNATIVEDISPLAYNAME: u32 = 115; +pub const LOCALE_SLOCALIZEDLANGUAGENAME: u32 = 111; +pub const LOCALE_SENGLISHLANGUAGENAME: u32 = 4097; +pub const LOCALE_SNATIVELANGUAGENAME: u32 = 4; +pub const LOCALE_SLOCALIZEDCOUNTRYNAME: u32 = 6; +pub const LOCALE_SENGLISHCOUNTRYNAME: u32 = 4098; +pub const LOCALE_SNATIVECOUNTRYNAME: u32 = 8; +pub const LOCALE_IDIALINGCODE: u32 = 5; +pub const LOCALE_SLIST: u32 = 12; +pub const LOCALE_IMEASURE: u32 = 13; +pub const LOCALE_SDECIMAL: u32 = 14; +pub const LOCALE_STHOUSAND: u32 = 15; +pub const LOCALE_SGROUPING: u32 = 16; +pub const LOCALE_IDIGITS: u32 = 17; +pub const LOCALE_ILZERO: u32 = 18; +pub const LOCALE_INEGNUMBER: u32 = 4112; +pub const LOCALE_SNATIVEDIGITS: u32 = 19; +pub const LOCALE_SCURRENCY: u32 = 20; +pub const LOCALE_SINTLSYMBOL: u32 = 21; +pub const LOCALE_SMONDECIMALSEP: u32 = 22; +pub const LOCALE_SMONTHOUSANDSEP: u32 = 23; +pub const LOCALE_SMONGROUPING: u32 = 24; +pub const LOCALE_ICURRDIGITS: u32 = 25; +pub const LOCALE_ICURRENCY: u32 = 27; +pub const LOCALE_INEGCURR: u32 = 28; +pub const LOCALE_SSHORTDATE: u32 = 31; +pub const LOCALE_SLONGDATE: u32 = 32; +pub const LOCALE_STIMEFORMAT: u32 = 4099; +pub const LOCALE_SAM: u32 = 40; +pub const LOCALE_SPM: u32 = 41; +pub const LOCALE_ICALENDARTYPE: u32 = 4105; +pub const LOCALE_IOPTIONALCALENDAR: u32 = 4107; +pub const LOCALE_IFIRSTDAYOFWEEK: u32 = 4108; +pub const LOCALE_IFIRSTWEEKOFYEAR: u32 = 4109; +pub const LOCALE_SDAYNAME1: u32 = 42; +pub const LOCALE_SDAYNAME2: u32 = 43; +pub const LOCALE_SDAYNAME3: u32 = 44; +pub const LOCALE_SDAYNAME4: u32 = 45; +pub const LOCALE_SDAYNAME5: u32 = 46; +pub const LOCALE_SDAYNAME6: u32 = 47; +pub const LOCALE_SDAYNAME7: u32 = 48; +pub const LOCALE_SABBREVDAYNAME1: u32 = 49; +pub const LOCALE_SABBREVDAYNAME2: u32 = 50; +pub const LOCALE_SABBREVDAYNAME3: u32 = 51; +pub const LOCALE_SABBREVDAYNAME4: u32 = 52; +pub const LOCALE_SABBREVDAYNAME5: u32 = 53; +pub const LOCALE_SABBREVDAYNAME6: u32 = 54; +pub const LOCALE_SABBREVDAYNAME7: u32 = 55; +pub const LOCALE_SMONTHNAME1: u32 = 56; +pub const LOCALE_SMONTHNAME2: u32 = 57; +pub const LOCALE_SMONTHNAME3: u32 = 58; +pub const LOCALE_SMONTHNAME4: u32 = 59; +pub const LOCALE_SMONTHNAME5: u32 = 60; +pub const LOCALE_SMONTHNAME6: u32 = 61; +pub const LOCALE_SMONTHNAME7: u32 = 62; +pub const LOCALE_SMONTHNAME8: u32 = 63; +pub const LOCALE_SMONTHNAME9: u32 = 64; +pub const LOCALE_SMONTHNAME10: u32 = 65; +pub const LOCALE_SMONTHNAME11: u32 = 66; +pub const LOCALE_SMONTHNAME12: u32 = 67; +pub const LOCALE_SMONTHNAME13: u32 = 4110; +pub const LOCALE_SABBREVMONTHNAME1: u32 = 68; +pub const LOCALE_SABBREVMONTHNAME2: u32 = 69; +pub const LOCALE_SABBREVMONTHNAME3: u32 = 70; +pub const LOCALE_SABBREVMONTHNAME4: u32 = 71; +pub const LOCALE_SABBREVMONTHNAME5: u32 = 72; +pub const LOCALE_SABBREVMONTHNAME6: u32 = 73; +pub const LOCALE_SABBREVMONTHNAME7: u32 = 74; +pub const LOCALE_SABBREVMONTHNAME8: u32 = 75; +pub const LOCALE_SABBREVMONTHNAME9: u32 = 76; +pub const LOCALE_SABBREVMONTHNAME10: u32 = 77; +pub const LOCALE_SABBREVMONTHNAME11: u32 = 78; +pub const LOCALE_SABBREVMONTHNAME12: u32 = 79; +pub const LOCALE_SABBREVMONTHNAME13: u32 = 4111; +pub const LOCALE_SPOSITIVESIGN: u32 = 80; +pub const LOCALE_SNEGATIVESIGN: u32 = 81; +pub const LOCALE_IPOSSIGNPOSN: u32 = 82; +pub const LOCALE_INEGSIGNPOSN: u32 = 83; +pub const LOCALE_IPOSSYMPRECEDES: u32 = 84; +pub const LOCALE_IPOSSEPBYSPACE: u32 = 85; +pub const LOCALE_INEGSYMPRECEDES: u32 = 86; +pub const LOCALE_INEGSEPBYSPACE: u32 = 87; +pub const LOCALE_FONTSIGNATURE: u32 = 88; +pub const LOCALE_SISO639LANGNAME: u32 = 89; +pub const LOCALE_SISO3166CTRYNAME: u32 = 90; +pub const LOCALE_IPAPERSIZE: u32 = 4106; +pub const LOCALE_SENGCURRNAME: u32 = 4103; +pub const LOCALE_SNATIVECURRNAME: u32 = 4104; +pub const LOCALE_SYEARMONTH: u32 = 4102; +pub const LOCALE_SSORTNAME: u32 = 4115; +pub const LOCALE_IDIGITSUBSTITUTION: u32 = 4116; +pub const LOCALE_SNAME: u32 = 92; +pub const LOCALE_SDURATION: u32 = 93; +pub const LOCALE_SSHORTESTDAYNAME1: u32 = 96; +pub const LOCALE_SSHORTESTDAYNAME2: u32 = 97; +pub const LOCALE_SSHORTESTDAYNAME3: u32 = 98; +pub const LOCALE_SSHORTESTDAYNAME4: u32 = 99; +pub const LOCALE_SSHORTESTDAYNAME5: u32 = 100; +pub const LOCALE_SSHORTESTDAYNAME6: u32 = 101; +pub const LOCALE_SSHORTESTDAYNAME7: u32 = 102; +pub const LOCALE_SISO639LANGNAME2: u32 = 103; +pub const LOCALE_SISO3166CTRYNAME2: u32 = 104; +pub const LOCALE_SNAN: u32 = 105; +pub const LOCALE_SPOSINFINITY: u32 = 106; +pub const LOCALE_SNEGINFINITY: u32 = 107; +pub const LOCALE_SSCRIPTS: u32 = 108; +pub const LOCALE_SPARENT: u32 = 109; +pub const LOCALE_SCONSOLEFALLBACKNAME: u32 = 110; +pub const LOCALE_IREADINGLAYOUT: u32 = 112; +pub const LOCALE_INEUTRAL: u32 = 113; +pub const LOCALE_INEGATIVEPERCENT: u32 = 116; +pub const LOCALE_IPOSITIVEPERCENT: u32 = 117; +pub const LOCALE_SPERCENT: u32 = 118; +pub const LOCALE_SPERMILLE: u32 = 119; +pub const LOCALE_SMONTHDAY: u32 = 120; +pub const LOCALE_SSHORTTIME: u32 = 121; +pub const LOCALE_SOPENTYPELANGUAGETAG: u32 = 122; +pub const LOCALE_SSORTLOCALE: u32 = 123; +pub const LOCALE_SRELATIVELONGDATE: u32 = 124; +pub const LOCALE_ICONSTRUCTEDLOCALE: u32 = 125; +pub const LOCALE_SSHORTESTAM: u32 = 126; +pub const LOCALE_SSHORTESTPM: u32 = 127; +pub const LOCALE_IUSEUTF8LEGACYACP: u32 = 1638; +pub const LOCALE_IUSEUTF8LEGACYOEMCP: u32 = 2457; +pub const LOCALE_IDEFAULTCODEPAGE: u32 = 11; +pub const LOCALE_IDEFAULTANSICODEPAGE: u32 = 4100; +pub const LOCALE_IDEFAULTMACCODEPAGE: u32 = 4113; +pub const LOCALE_IDEFAULTEBCDICCODEPAGE: u32 = 4114; +pub const LOCALE_ILANGUAGE: u32 = 1; +pub const LOCALE_SABBREVLANGNAME: u32 = 3; +pub const LOCALE_SABBREVCTRYNAME: u32 = 7; +pub const LOCALE_IGEOID: u32 = 91; +pub const LOCALE_IDEFAULTLANGUAGE: u32 = 9; +pub const LOCALE_IDEFAULTCOUNTRY: u32 = 10; +pub const LOCALE_IINTLCURRDIGITS: u32 = 26; +pub const LOCALE_SDATE: u32 = 29; +pub const LOCALE_STIME: u32 = 30; +pub const LOCALE_IDATE: u32 = 33; +pub const LOCALE_ILDATE: u32 = 34; +pub const LOCALE_ITIME: u32 = 35; +pub const LOCALE_ITIMEMARKPOSN: u32 = 4101; +pub const LOCALE_ICENTURY: u32 = 36; +pub const LOCALE_ITLZERO: u32 = 37; +pub const LOCALE_IDAYLZERO: u32 = 38; +pub const LOCALE_IMONLZERO: u32 = 39; +pub const LOCALE_SKEYBOARDSTOINSTALL: u32 = 94; +pub const LOCALE_SLANGUAGE: u32 = 2; +pub const LOCALE_SLANGDISPLAYNAME: u32 = 111; +pub const LOCALE_SENGLANGUAGE: u32 = 4097; +pub const LOCALE_SNATIVELANGNAME: u32 = 4; +pub const LOCALE_SCOUNTRY: u32 = 6; +pub const LOCALE_SENGCOUNTRY: u32 = 4098; +pub const LOCALE_SNATIVECTRYNAME: u32 = 8; +pub const LOCALE_ICOUNTRY: u32 = 5; +pub const LOCALE_S1159: u32 = 40; +pub const LOCALE_S2359: u32 = 41; +pub const TIME_NOMINUTESORSECONDS: u32 = 1; +pub const TIME_NOSECONDS: u32 = 2; +pub const TIME_NOTIMEMARKER: u32 = 4; +pub const TIME_FORCE24HOURFORMAT: u32 = 8; +pub const DATE_SHORTDATE: u32 = 1; +pub const DATE_LONGDATE: u32 = 2; +pub const DATE_USE_ALT_CALENDAR: u32 = 4; +pub const DATE_YEARMONTH: u32 = 8; +pub const DATE_LTRREADING: u32 = 16; +pub const DATE_RTLREADING: u32 = 32; +pub const DATE_AUTOLAYOUT: u32 = 64; +pub const DATE_MONTHDAY: u32 = 128; +pub const CAL_NOUSEROVERRIDE: u32 = 2147483648; +pub const CAL_USE_CP_ACP: u32 = 1073741824; +pub const CAL_RETURN_NUMBER: u32 = 536870912; +pub const CAL_RETURN_GENITIVE_NAMES: u32 = 268435456; +pub const CAL_ICALINTVALUE: u32 = 1; +pub const CAL_SCALNAME: u32 = 2; +pub const CAL_IYEAROFFSETRANGE: u32 = 3; +pub const CAL_SERASTRING: u32 = 4; +pub const CAL_SSHORTDATE: u32 = 5; +pub const CAL_SLONGDATE: u32 = 6; +pub const CAL_SDAYNAME1: u32 = 7; +pub const CAL_SDAYNAME2: u32 = 8; +pub const CAL_SDAYNAME3: u32 = 9; +pub const CAL_SDAYNAME4: u32 = 10; +pub const CAL_SDAYNAME5: u32 = 11; +pub const CAL_SDAYNAME6: u32 = 12; +pub const CAL_SDAYNAME7: u32 = 13; +pub const CAL_SABBREVDAYNAME1: u32 = 14; +pub const CAL_SABBREVDAYNAME2: u32 = 15; +pub const CAL_SABBREVDAYNAME3: u32 = 16; +pub const CAL_SABBREVDAYNAME4: u32 = 17; +pub const CAL_SABBREVDAYNAME5: u32 = 18; +pub const CAL_SABBREVDAYNAME6: u32 = 19; +pub const CAL_SABBREVDAYNAME7: u32 = 20; +pub const CAL_SMONTHNAME1: u32 = 21; +pub const CAL_SMONTHNAME2: u32 = 22; +pub const CAL_SMONTHNAME3: u32 = 23; +pub const CAL_SMONTHNAME4: u32 = 24; +pub const CAL_SMONTHNAME5: u32 = 25; +pub const CAL_SMONTHNAME6: u32 = 26; +pub const CAL_SMONTHNAME7: u32 = 27; +pub const CAL_SMONTHNAME8: u32 = 28; +pub const CAL_SMONTHNAME9: u32 = 29; +pub const CAL_SMONTHNAME10: u32 = 30; +pub const CAL_SMONTHNAME11: u32 = 31; +pub const CAL_SMONTHNAME12: u32 = 32; +pub const CAL_SMONTHNAME13: u32 = 33; +pub const CAL_SABBREVMONTHNAME1: u32 = 34; +pub const CAL_SABBREVMONTHNAME2: u32 = 35; +pub const CAL_SABBREVMONTHNAME3: u32 = 36; +pub const CAL_SABBREVMONTHNAME4: u32 = 37; +pub const CAL_SABBREVMONTHNAME5: u32 = 38; +pub const CAL_SABBREVMONTHNAME6: u32 = 39; +pub const CAL_SABBREVMONTHNAME7: u32 = 40; +pub const CAL_SABBREVMONTHNAME8: u32 = 41; +pub const CAL_SABBREVMONTHNAME9: u32 = 42; +pub const CAL_SABBREVMONTHNAME10: u32 = 43; +pub const CAL_SABBREVMONTHNAME11: u32 = 44; +pub const CAL_SABBREVMONTHNAME12: u32 = 45; +pub const CAL_SABBREVMONTHNAME13: u32 = 46; +pub const CAL_SYEARMONTH: u32 = 47; +pub const CAL_ITWODIGITYEARMAX: u32 = 48; +pub const CAL_SSHORTESTDAYNAME1: u32 = 49; +pub const CAL_SSHORTESTDAYNAME2: u32 = 50; +pub const CAL_SSHORTESTDAYNAME3: u32 = 51; +pub const CAL_SSHORTESTDAYNAME4: u32 = 52; +pub const CAL_SSHORTESTDAYNAME5: u32 = 53; +pub const CAL_SSHORTESTDAYNAME6: u32 = 54; +pub const CAL_SSHORTESTDAYNAME7: u32 = 55; +pub const CAL_SMONTHDAY: u32 = 56; +pub const CAL_SABBREVERASTRING: u32 = 57; +pub const CAL_SRELATIVELONGDATE: u32 = 58; +pub const CAL_SENGLISHERANAME: u32 = 59; +pub const CAL_SENGLISHABBREVERANAME: u32 = 60; +pub const CAL_SJAPANESEERAFIRSTYEAR: u32 = 61; +pub const ENUM_ALL_CALENDARS: u32 = 4294967295; +pub const CAL_GREGORIAN: u32 = 1; +pub const CAL_GREGORIAN_US: u32 = 2; +pub const CAL_JAPAN: u32 = 3; +pub const CAL_TAIWAN: u32 = 4; +pub const CAL_KOREA: u32 = 5; +pub const CAL_HIJRI: u32 = 6; +pub const CAL_THAI: u32 = 7; +pub const CAL_HEBREW: u32 = 8; +pub const CAL_GREGORIAN_ME_FRENCH: u32 = 9; +pub const CAL_GREGORIAN_ARABIC: u32 = 10; +pub const CAL_GREGORIAN_XLIT_ENGLISH: u32 = 11; +pub const CAL_GREGORIAN_XLIT_FRENCH: u32 = 12; +pub const CAL_PERSIAN: u32 = 22; +pub const CAL_UMALQURA: u32 = 23; +pub const LGRPID_WESTERN_EUROPE: u32 = 1; +pub const LGRPID_CENTRAL_EUROPE: u32 = 2; +pub const LGRPID_BALTIC: u32 = 3; +pub const LGRPID_GREEK: u32 = 4; +pub const LGRPID_CYRILLIC: u32 = 5; +pub const LGRPID_TURKIC: u32 = 6; +pub const LGRPID_TURKISH: u32 = 6; +pub const LGRPID_JAPANESE: u32 = 7; +pub const LGRPID_KOREAN: u32 = 8; +pub const LGRPID_TRADITIONAL_CHINESE: u32 = 9; +pub const LGRPID_SIMPLIFIED_CHINESE: u32 = 10; +pub const LGRPID_THAI: u32 = 11; +pub const LGRPID_HEBREW: u32 = 12; +pub const LGRPID_ARABIC: u32 = 13; +pub const LGRPID_VIETNAMESE: u32 = 14; +pub const LGRPID_INDIC: u32 = 15; +pub const LGRPID_GEORGIAN: u32 = 16; +pub const LGRPID_ARMENIAN: u32 = 17; +pub const MUI_LANGUAGE_ID: u32 = 4; +pub const MUI_LANGUAGE_NAME: u32 = 8; +pub const MUI_MERGE_SYSTEM_FALLBACK: u32 = 16; +pub const MUI_MERGE_USER_FALLBACK: u32 = 32; +pub const MUI_UI_FALLBACK: u32 = 48; +pub const MUI_THREAD_LANGUAGES: u32 = 64; +pub const MUI_CONSOLE_FILTER: u32 = 256; +pub const MUI_COMPLEX_SCRIPT_FILTER: u32 = 512; +pub const MUI_RESET_FILTERS: u32 = 1; +pub const MUI_USER_PREFERRED_UI_LANGUAGES: u32 = 16; +pub const MUI_USE_INSTALLED_LANGUAGES: u32 = 32; +pub const MUI_USE_SEARCH_ALL_LANGUAGES: u32 = 64; +pub const MUI_LANG_NEUTRAL_PE_FILE: u32 = 256; +pub const MUI_NON_LANG_NEUTRAL_FILE: u32 = 512; +pub const MUI_MACHINE_LANGUAGE_SETTINGS: u32 = 1024; +pub const MUI_FILETYPE_NOT_LANGUAGE_NEUTRAL: u32 = 1; +pub const MUI_FILETYPE_LANGUAGE_NEUTRAL_MAIN: u32 = 2; +pub const MUI_FILETYPE_LANGUAGE_NEUTRAL_MUI: u32 = 4; +pub const MUI_QUERY_TYPE: u32 = 1; +pub const MUI_QUERY_CHECKSUM: u32 = 2; +pub const MUI_QUERY_LANGUAGE_NAME: u32 = 4; +pub const MUI_QUERY_RESOURCE_TYPES: u32 = 8; +pub const MUI_FILEINFO_VERSION: u32 = 1; +pub const MUI_FULL_LANGUAGE: u32 = 1; +pub const MUI_PARTIAL_LANGUAGE: u32 = 2; +pub const MUI_LIP_LANGUAGE: u32 = 4; +pub const MUI_LANGUAGE_INSTALLED: u32 = 32; +pub const MUI_LANGUAGE_LICENSED: u32 = 64; +pub const GEOID_NOT_AVAILABLE: i32 = -1; +pub const SORTING_PARADIGM_NLS: u32 = 0; +pub const SORTING_PARADIGM_ICU: u32 = 16777216; +pub const IDN_ALLOW_UNASSIGNED: u32 = 1; +pub const IDN_USE_STD3_ASCII_RULES: u32 = 2; +pub const IDN_EMAIL_ADDRESS: u32 = 4; +pub const IDN_RAW_PUNYCODE: u32 = 8; +pub const VS_ALLOW_LATIN: u32 = 1; +pub const GSS_ALLOW_INHERITED_COMMON: u32 = 1; +pub const MUI_FORMAT_REG_COMPAT: u32 = 1; +pub const MUI_FORMAT_INF_COMPAT: u32 = 2; +pub const MUI_VERIFY_FILE_EXISTS: u32 = 4; +pub const MUI_SKIP_STRING_CACHE: u32 = 8; +pub const MUI_IMMUTABLE_LOOKUP: u32 = 16; +pub const LOCALE_NAME_INVARIANT: &[u8; 1] = b"\0"; +pub const LOCALE_NAME_SYSTEM_DEFAULT: &[u8; 22] = b"!x-sys-default-locale\0"; +pub const RIGHT_ALT_PRESSED: u32 = 1; +pub const LEFT_ALT_PRESSED: u32 = 2; +pub const RIGHT_CTRL_PRESSED: u32 = 4; +pub const LEFT_CTRL_PRESSED: u32 = 8; +pub const SHIFT_PRESSED: u32 = 16; +pub const NUMLOCK_ON: u32 = 32; +pub const SCROLLLOCK_ON: u32 = 64; +pub const CAPSLOCK_ON: u32 = 128; +pub const ENHANCED_KEY: u32 = 256; +pub const NLS_DBCSCHAR: u32 = 65536; +pub const NLS_ALPHANUMERIC: u32 = 0; +pub const NLS_KATAKANA: u32 = 131072; +pub const NLS_HIRAGANA: u32 = 262144; +pub const NLS_ROMAN: u32 = 4194304; +pub const NLS_IME_CONVERSION: u32 = 8388608; +pub const ALTNUMPAD_BIT: u32 = 67108864; +pub const NLS_IME_DISABLE: u32 = 536870912; +pub const FROM_LEFT_1ST_BUTTON_PRESSED: u32 = 1; +pub const RIGHTMOST_BUTTON_PRESSED: u32 = 2; +pub const FROM_LEFT_2ND_BUTTON_PRESSED: u32 = 4; +pub const FROM_LEFT_3RD_BUTTON_PRESSED: u32 = 8; +pub const FROM_LEFT_4TH_BUTTON_PRESSED: u32 = 16; +pub const MOUSE_MOVED: u32 = 1; +pub const DOUBLE_CLICK: u32 = 2; +pub const MOUSE_WHEELED: u32 = 4; +pub const MOUSE_HWHEELED: u32 = 8; +pub const KEY_EVENT: u32 = 1; +pub const MOUSE_EVENT: u32 = 2; +pub const WINDOW_BUFFER_SIZE_EVENT: u32 = 4; +pub const MENU_EVENT: u32 = 8; +pub const FOCUS_EVENT: u32 = 16; +pub const ENABLE_PROCESSED_INPUT: u32 = 1; +pub const ENABLE_LINE_INPUT: u32 = 2; +pub const ENABLE_ECHO_INPUT: u32 = 4; +pub const ENABLE_WINDOW_INPUT: u32 = 8; +pub const ENABLE_MOUSE_INPUT: u32 = 16; +pub const ENABLE_INSERT_MODE: u32 = 32; +pub const ENABLE_QUICK_EDIT_MODE: u32 = 64; +pub const ENABLE_EXTENDED_FLAGS: u32 = 128; +pub const ENABLE_AUTO_POSITION: u32 = 256; +pub const ENABLE_VIRTUAL_TERMINAL_INPUT: u32 = 512; +pub const ENABLE_PROCESSED_OUTPUT: u32 = 1; +pub const ENABLE_WRAP_AT_EOL_OUTPUT: u32 = 2; +pub const ENABLE_VIRTUAL_TERMINAL_PROCESSING: u32 = 4; +pub const DISABLE_NEWLINE_AUTO_RETURN: u32 = 8; +pub const ENABLE_LVB_GRID_WORLDWIDE: u32 = 16; +pub const CTRL_C_EVENT: u32 = 0; +pub const CTRL_BREAK_EVENT: u32 = 1; +pub const CTRL_CLOSE_EVENT: u32 = 2; +pub const CTRL_LOGOFF_EVENT: u32 = 5; +pub const CTRL_SHUTDOWN_EVENT: u32 = 6; +pub const PSEUDOCONSOLE_INHERIT_CURSOR: u32 = 1; +pub const FOREGROUND_BLUE: u32 = 1; +pub const FOREGROUND_GREEN: u32 = 2; +pub const FOREGROUND_RED: u32 = 4; +pub const FOREGROUND_INTENSITY: u32 = 8; +pub const BACKGROUND_BLUE: u32 = 16; +pub const BACKGROUND_GREEN: u32 = 32; +pub const BACKGROUND_RED: u32 = 64; +pub const BACKGROUND_INTENSITY: u32 = 128; +pub const COMMON_LVB_LEADING_BYTE: u32 = 256; +pub const COMMON_LVB_TRAILING_BYTE: u32 = 512; +pub const COMMON_LVB_GRID_HORIZONTAL: u32 = 1024; +pub const COMMON_LVB_GRID_LVERTICAL: u32 = 2048; +pub const COMMON_LVB_GRID_RVERTICAL: u32 = 4096; +pub const COMMON_LVB_REVERSE_VIDEO: u32 = 16384; +pub const COMMON_LVB_UNDERSCORE: u32 = 32768; +pub const COMMON_LVB_SBCSDBCS: u32 = 768; +pub const CONSOLE_NO_SELECTION: u32 = 0; +pub const CONSOLE_SELECTION_IN_PROGRESS: u32 = 1; +pub const CONSOLE_SELECTION_NOT_EMPTY: u32 = 2; +pub const CONSOLE_MOUSE_SELECTION: u32 = 4; +pub const CONSOLE_MOUSE_DOWN: u32 = 8; +pub const HISTORY_NO_DUP_FLAG: u32 = 1; +pub const CONSOLE_FULLSCREEN: u32 = 1; +pub const CONSOLE_FULLSCREEN_HARDWARE: u32 = 2; +pub const CONSOLE_FULLSCREEN_MODE: u32 = 1; +pub const CONSOLE_WINDOWED_MODE: u32 = 2; +pub const CONSOLE_TEXTMODE_BUFFER: u32 = 1; +pub const VS_VERSION_INFO: u32 = 1; +pub const VS_USER_DEFINED: u32 = 100; +pub const VS_FFI_SIGNATURE: u32 = 4277077181; +pub const VS_FFI_STRUCVERSION: u32 = 65536; +pub const VS_FFI_FILEFLAGSMASK: u32 = 63; +pub const VS_FF_DEBUG: u32 = 1; +pub const VS_FF_PRERELEASE: u32 = 2; +pub const VS_FF_PATCHED: u32 = 4; +pub const VS_FF_PRIVATEBUILD: u32 = 8; +pub const VS_FF_INFOINFERRED: u32 = 16; +pub const VS_FF_SPECIALBUILD: u32 = 32; +pub const VOS_UNKNOWN: u32 = 0; +pub const VOS_DOS: u32 = 65536; +pub const VOS_OS216: u32 = 131072; +pub const VOS_OS232: u32 = 196608; +pub const VOS_NT: u32 = 262144; +pub const VOS_WINCE: u32 = 327680; +pub const VOS__BASE: u32 = 0; +pub const VOS__WINDOWS16: u32 = 1; +pub const VOS__PM16: u32 = 2; +pub const VOS__PM32: u32 = 3; +pub const VOS__WINDOWS32: u32 = 4; +pub const VOS_DOS_WINDOWS16: u32 = 65537; +pub const VOS_DOS_WINDOWS32: u32 = 65540; +pub const VOS_OS216_PM16: u32 = 131074; +pub const VOS_OS232_PM32: u32 = 196611; +pub const VOS_NT_WINDOWS32: u32 = 262148; +pub const VFT_UNKNOWN: u32 = 0; +pub const VFT_APP: u32 = 1; +pub const VFT_DLL: u32 = 2; +pub const VFT_DRV: u32 = 3; +pub const VFT_FONT: u32 = 4; +pub const VFT_VXD: u32 = 5; +pub const VFT_STATIC_LIB: u32 = 7; +pub const VFT2_UNKNOWN: u32 = 0; +pub const VFT2_DRV_PRINTER: u32 = 1; +pub const VFT2_DRV_KEYBOARD: u32 = 2; +pub const VFT2_DRV_LANGUAGE: u32 = 3; +pub const VFT2_DRV_DISPLAY: u32 = 4; +pub const VFT2_DRV_MOUSE: u32 = 5; +pub const VFT2_DRV_NETWORK: u32 = 6; +pub const VFT2_DRV_SYSTEM: u32 = 7; +pub const VFT2_DRV_INSTALLABLE: u32 = 8; +pub const VFT2_DRV_SOUND: u32 = 9; +pub const VFT2_DRV_COMM: u32 = 10; +pub const VFT2_DRV_INPUTMETHOD: u32 = 11; +pub const VFT2_DRV_VERSIONED_PRINTER: u32 = 12; +pub const VFT2_FONT_RASTER: u32 = 1; +pub const VFT2_FONT_VECTOR: u32 = 2; +pub const VFT2_FONT_TRUETYPE: u32 = 3; +pub const VFFF_ISSHAREDFILE: u32 = 1; +pub const VFF_CURNEDEST: u32 = 1; +pub const VFF_FILEINUSE: u32 = 2; +pub const VFF_BUFFTOOSMALL: u32 = 4; +pub const VIFF_FORCEINSTALL: u32 = 1; +pub const VIFF_DONTDELETEOLD: u32 = 2; +pub const VIF_TEMPFILE: u32 = 1; +pub const VIF_MISMATCH: u32 = 2; +pub const VIF_SRCOLD: u32 = 4; +pub const VIF_DIFFLANG: u32 = 8; +pub const VIF_DIFFCODEPG: u32 = 16; +pub const VIF_DIFFTYPE: u32 = 32; +pub const VIF_WRITEPROT: u32 = 64; +pub const VIF_FILEINUSE: u32 = 128; +pub const VIF_OUTOFSPACE: u32 = 256; +pub const VIF_ACCESSVIOLATION: u32 = 512; +pub const VIF_SHARINGVIOLATION: u32 = 1024; +pub const VIF_CANNOTCREATE: u32 = 2048; +pub const VIF_CANNOTDELETE: u32 = 4096; +pub const VIF_CANNOTRENAME: u32 = 8192; +pub const VIF_CANNOTDELETECUR: u32 = 16384; +pub const VIF_OUTOFMEMORY: u32 = 32768; +pub const VIF_CANNOTREADSRC: u32 = 65536; +pub const VIF_CANNOTREADDST: u32 = 131072; +pub const VIF_BUFFTOOSMALL: u32 = 262144; +pub const VIF_CANNOTLOADLZ32: u32 = 524288; +pub const VIF_CANNOTLOADCABINET: u32 = 1048576; +pub const FILE_VER_GET_LOCALISED: u32 = 1; +pub const FILE_VER_GET_NEUTRAL: u32 = 2; +pub const FILE_VER_GET_PREFETCHED: u32 = 4; +pub const RRF_RT_REG_NONE: u32 = 1; +pub const RRF_RT_REG_SZ: u32 = 2; +pub const RRF_RT_REG_EXPAND_SZ: u32 = 4; +pub const RRF_RT_REG_BINARY: u32 = 8; +pub const RRF_RT_REG_DWORD: u32 = 16; +pub const RRF_RT_REG_MULTI_SZ: u32 = 32; +pub const RRF_RT_REG_QWORD: u32 = 64; +pub const RRF_RT_DWORD: u32 = 24; +pub const RRF_RT_QWORD: u32 = 72; +pub const RRF_RT_ANY: u32 = 65535; +pub const RRF_SUBKEY_WOW6464KEY: u32 = 65536; +pub const RRF_SUBKEY_WOW6432KEY: u32 = 131072; +pub const RRF_WOW64_MASK: u32 = 196608; +pub const RRF_NOEXPAND: u32 = 268435456; +pub const RRF_ZEROONFAILURE: u32 = 536870912; +pub const REG_PROCESS_APPKEY: u32 = 1; +pub const REG_USE_CURRENT_SECURITY_CONTEXT: u32 = 2; +pub const PROVIDER_KEEPS_VALUE_LENGTH: u32 = 1; +pub const REG_MUI_STRING_TRUNCATE: u32 = 1; +pub const REG_SECURE_CONNECTION: u32 = 1; +pub const SHTDN_REASON_FLAG_COMMENT_REQUIRED: u32 = 16777216; +pub const SHTDN_REASON_FLAG_DIRTY_PROBLEM_ID_REQUIRED: u32 = 33554432; +pub const SHTDN_REASON_FLAG_CLEAN_UI: u32 = 67108864; +pub const SHTDN_REASON_FLAG_DIRTY_UI: u32 = 134217728; +pub const SHTDN_REASON_FLAG_MOBILE_UI_RESERVED: u32 = 268435456; +pub const SHTDN_REASON_FLAG_USER_DEFINED: u32 = 1073741824; +pub const SHTDN_REASON_FLAG_PLANNED: u32 = 2147483648; +pub const SHTDN_REASON_MAJOR_OTHER: u32 = 0; +pub const SHTDN_REASON_MAJOR_NONE: u32 = 0; +pub const SHTDN_REASON_MAJOR_HARDWARE: u32 = 65536; +pub const SHTDN_REASON_MAJOR_OPERATINGSYSTEM: u32 = 131072; +pub const SHTDN_REASON_MAJOR_SOFTWARE: u32 = 196608; +pub const SHTDN_REASON_MAJOR_APPLICATION: u32 = 262144; +pub const SHTDN_REASON_MAJOR_SYSTEM: u32 = 327680; +pub const SHTDN_REASON_MAJOR_POWER: u32 = 393216; +pub const SHTDN_REASON_MAJOR_LEGACY_API: u32 = 458752; +pub const SHTDN_REASON_MINOR_OTHER: u32 = 0; +pub const SHTDN_REASON_MINOR_NONE: u32 = 255; +pub const SHTDN_REASON_MINOR_MAINTENANCE: u32 = 1; +pub const SHTDN_REASON_MINOR_INSTALLATION: u32 = 2; +pub const SHTDN_REASON_MINOR_UPGRADE: u32 = 3; +pub const SHTDN_REASON_MINOR_RECONFIG: u32 = 4; +pub const SHTDN_REASON_MINOR_HUNG: u32 = 5; +pub const SHTDN_REASON_MINOR_UNSTABLE: u32 = 6; +pub const SHTDN_REASON_MINOR_DISK: u32 = 7; +pub const SHTDN_REASON_MINOR_PROCESSOR: u32 = 8; +pub const SHTDN_REASON_MINOR_NETWORKCARD: u32 = 9; +pub const SHTDN_REASON_MINOR_POWER_SUPPLY: u32 = 10; +pub const SHTDN_REASON_MINOR_CORDUNPLUGGED: u32 = 11; +pub const SHTDN_REASON_MINOR_ENVIRONMENT: u32 = 12; +pub const SHTDN_REASON_MINOR_HARDWARE_DRIVER: u32 = 13; +pub const SHTDN_REASON_MINOR_OTHERDRIVER: u32 = 14; +pub const SHTDN_REASON_MINOR_BLUESCREEN: u32 = 15; +pub const SHTDN_REASON_MINOR_SERVICEPACK: u32 = 16; +pub const SHTDN_REASON_MINOR_HOTFIX: u32 = 17; +pub const SHTDN_REASON_MINOR_SECURITYFIX: u32 = 18; +pub const SHTDN_REASON_MINOR_SECURITY: u32 = 19; +pub const SHTDN_REASON_MINOR_NETWORK_CONNECTIVITY: u32 = 20; +pub const SHTDN_REASON_MINOR_WMI: u32 = 21; +pub const SHTDN_REASON_MINOR_SERVICEPACK_UNINSTALL: u32 = 22; +pub const SHTDN_REASON_MINOR_HOTFIX_UNINSTALL: u32 = 23; +pub const SHTDN_REASON_MINOR_SECURITYFIX_UNINSTALL: u32 = 24; +pub const SHTDN_REASON_MINOR_MMC: u32 = 25; +pub const SHTDN_REASON_MINOR_SYSTEMRESTORE: u32 = 26; +pub const SHTDN_REASON_MINOR_TERMSRV: u32 = 32; +pub const SHTDN_REASON_MINOR_DC_PROMOTION: u32 = 33; +pub const SHTDN_REASON_MINOR_DC_DEMOTION: u32 = 34; +pub const SHTDN_REASON_UNKNOWN: u32 = 255; +pub const SHTDN_REASON_LEGACY_API: u32 = 2147942400; +pub const SHTDN_REASON_VALID_BIT_MASK: u32 = 3238002687; +pub const PCLEANUI: u32 = 2214592512; +pub const UCLEANUI: u32 = 67108864; +pub const PDIRTYUI: u32 = 2281701376; +pub const UDIRTYUI: u32 = 134217728; +pub const MAX_REASON_NAME_LEN: u32 = 64; +pub const MAX_REASON_DESC_LEN: u32 = 256; +pub const MAX_REASON_BUGID_LEN: u32 = 32; +pub const MAX_REASON_COMMENT_LEN: u32 = 512; +pub const SHUTDOWN_TYPE_LEN: u32 = 32; +pub const POLICY_SHOWREASONUI_NEVER: u32 = 0; +pub const POLICY_SHOWREASONUI_ALWAYS: u32 = 1; +pub const POLICY_SHOWREASONUI_WORKSTATIONONLY: u32 = 2; +pub const POLICY_SHOWREASONUI_SERVERONLY: u32 = 3; +pub const SNAPSHOT_POLICY_NEVER: u32 = 0; +pub const SNAPSHOT_POLICY_ALWAYS: u32 = 1; +pub const SNAPSHOT_POLICY_UNPLANNED: u32 = 2; +pub const MAX_NUM_REASONS: u32 = 256; +pub const REASON_SWINSTALL: u32 = 196610; +pub const REASON_HWINSTALL: u32 = 65538; +pub const REASON_SERVICEHANG: u32 = 196613; +pub const REASON_UNSTABLE: u32 = 327686; +pub const REASON_SWHWRECONF: u32 = 196612; +pub const REASON_OTHER: u32 = 0; +pub const REASON_UNKNOWN: u32 = 255; +pub const REASON_LEGACY_API: u32 = 2147942400; +pub const REASON_PLANNED_FLAG: u32 = 2147483648; +pub const MAX_SHUTDOWN_TIMEOUT: u32 = 315360000; +pub const SHUTDOWN_FORCE_OTHERS: u32 = 1; +pub const SHUTDOWN_FORCE_SELF: u32 = 2; +pub const SHUTDOWN_RESTART: u32 = 4; +pub const SHUTDOWN_POWEROFF: u32 = 8; +pub const SHUTDOWN_NOREBOOT: u32 = 16; +pub const SHUTDOWN_GRACE_OVERRIDE: u32 = 32; +pub const SHUTDOWN_INSTALL_UPDATES: u32 = 64; +pub const SHUTDOWN_RESTARTAPPS: u32 = 128; +pub const SHUTDOWN_SKIP_SVC_PRESHUTDOWN: u32 = 256; +pub const SHUTDOWN_HYBRID: u32 = 512; +pub const SHUTDOWN_RESTART_BOOTOPTIONS: u32 = 1024; +pub const SHUTDOWN_SOFT_REBOOT: u32 = 2048; +pub const SHUTDOWN_MOBILE_UI: u32 = 4096; +pub const SHUTDOWN_ARSO: u32 = 8192; +pub const SHUTDOWN_CHECK_SAFE_FOR_SERVER: u32 = 16384; +pub const SHUTDOWN_VAIL_CONTAINER: u32 = 32768; +pub const SHUTDOWN_SYSTEM_INITIATED: u32 = 65536; +pub const WNNC_NET_MSNET: u32 = 65536; +pub const WNNC_NET_SMB: u32 = 131072; +pub const WNNC_NET_NETWARE: u32 = 196608; +pub const WNNC_NET_VINES: u32 = 262144; +pub const WNNC_NET_10NET: u32 = 327680; +pub const WNNC_NET_LOCUS: u32 = 393216; +pub const WNNC_NET_SUN_PC_NFS: u32 = 458752; +pub const WNNC_NET_LANSTEP: u32 = 524288; +pub const WNNC_NET_9TILES: u32 = 589824; +pub const WNNC_NET_LANTASTIC: u32 = 655360; +pub const WNNC_NET_AS400: u32 = 720896; +pub const WNNC_NET_FTP_NFS: u32 = 786432; +pub const WNNC_NET_PATHWORKS: u32 = 851968; +pub const WNNC_NET_LIFENET: u32 = 917504; +pub const WNNC_NET_POWERLAN: u32 = 983040; +pub const WNNC_NET_BWNFS: u32 = 1048576; +pub const WNNC_NET_COGENT: u32 = 1114112; +pub const WNNC_NET_FARALLON: u32 = 1179648; +pub const WNNC_NET_APPLETALK: u32 = 1245184; +pub const WNNC_NET_INTERGRAPH: u32 = 1310720; +pub const WNNC_NET_SYMFONET: u32 = 1376256; +pub const WNNC_NET_CLEARCASE: u32 = 1441792; +pub const WNNC_NET_FRONTIER: u32 = 1507328; +pub const WNNC_NET_BMC: u32 = 1572864; +pub const WNNC_NET_DCE: u32 = 1638400; +pub const WNNC_NET_AVID: u32 = 1703936; +pub const WNNC_NET_DOCUSPACE: u32 = 1769472; +pub const WNNC_NET_MANGOSOFT: u32 = 1835008; +pub const WNNC_NET_SERNET: u32 = 1900544; +pub const WNNC_NET_RIVERFRONT1: u32 = 1966080; +pub const WNNC_NET_RIVERFRONT2: u32 = 2031616; +pub const WNNC_NET_DECORB: u32 = 2097152; +pub const WNNC_NET_PROTSTOR: u32 = 2162688; +pub const WNNC_NET_FJ_REDIR: u32 = 2228224; +pub const WNNC_NET_DISTINCT: u32 = 2293760; +pub const WNNC_NET_TWINS: u32 = 2359296; +pub const WNNC_NET_RDR2SAMPLE: u32 = 2424832; +pub const WNNC_NET_CSC: u32 = 2490368; +pub const WNNC_NET_3IN1: u32 = 2555904; +pub const WNNC_NET_EXTENDNET: u32 = 2686976; +pub const WNNC_NET_STAC: u32 = 2752512; +pub const WNNC_NET_FOXBAT: u32 = 2818048; +pub const WNNC_NET_YAHOO: u32 = 2883584; +pub const WNNC_NET_EXIFS: u32 = 2949120; +pub const WNNC_NET_DAV: u32 = 3014656; +pub const WNNC_NET_KNOWARE: u32 = 3080192; +pub const WNNC_NET_OBJECT_DIRE: u32 = 3145728; +pub const WNNC_NET_MASFAX: u32 = 3211264; +pub const WNNC_NET_HOB_NFS: u32 = 3276800; +pub const WNNC_NET_SHIVA: u32 = 3342336; +pub const WNNC_NET_IBMAL: u32 = 3407872; +pub const WNNC_NET_LOCK: u32 = 3473408; +pub const WNNC_NET_TERMSRV: u32 = 3538944; +pub const WNNC_NET_SRT: u32 = 3604480; +pub const WNNC_NET_QUINCY: u32 = 3670016; +pub const WNNC_NET_OPENAFS: u32 = 3735552; +pub const WNNC_NET_AVID1: u32 = 3801088; +pub const WNNC_NET_DFS: u32 = 3866624; +pub const WNNC_NET_KWNP: u32 = 3932160; +pub const WNNC_NET_ZENWORKS: u32 = 3997696; +pub const WNNC_NET_DRIVEONWEB: u32 = 4063232; +pub const WNNC_NET_VMWARE: u32 = 4128768; +pub const WNNC_NET_RSFX: u32 = 4194304; +pub const WNNC_NET_MFILES: u32 = 4259840; +pub const WNNC_NET_MS_NFS: u32 = 4325376; +pub const WNNC_NET_GOOGLE: u32 = 4390912; +pub const WNNC_NET_NDFS: u32 = 4456448; +pub const WNNC_NET_DOCUSHARE: u32 = 4521984; +pub const WNNC_NET_AURISTOR_FS: u32 = 4587520; +pub const WNNC_NET_SECUREAGENT: u32 = 4653056; +pub const WNNC_NET_9P: u32 = 4718592; +pub const WNNC_CRED_MANAGER: u32 = 4294901760; +pub const WNNC_NET_LANMAN: u32 = 131072; +pub const RESOURCE_CONNECTED: u32 = 1; +pub const RESOURCE_GLOBALNET: u32 = 2; +pub const RESOURCE_REMEMBERED: u32 = 3; +pub const RESOURCE_RECENT: u32 = 4; +pub const RESOURCE_CONTEXT: u32 = 5; +pub const RESOURCETYPE_ANY: u32 = 0; +pub const RESOURCETYPE_DISK: u32 = 1; +pub const RESOURCETYPE_PRINT: u32 = 2; +pub const RESOURCETYPE_RESERVED: u32 = 8; +pub const RESOURCETYPE_UNKNOWN: u32 = 4294967295; +pub const RESOURCEUSAGE_CONNECTABLE: u32 = 1; +pub const RESOURCEUSAGE_CONTAINER: u32 = 2; +pub const RESOURCEUSAGE_NOLOCALDEVICE: u32 = 4; +pub const RESOURCEUSAGE_SIBLING: u32 = 8; +pub const RESOURCEUSAGE_ATTACHED: u32 = 16; +pub const RESOURCEUSAGE_ALL: u32 = 19; +pub const RESOURCEUSAGE_RESERVED: u32 = 2147483648; +pub const RESOURCEDISPLAYTYPE_GENERIC: u32 = 0; +pub const RESOURCEDISPLAYTYPE_DOMAIN: u32 = 1; +pub const RESOURCEDISPLAYTYPE_SERVER: u32 = 2; +pub const RESOURCEDISPLAYTYPE_SHARE: u32 = 3; +pub const RESOURCEDISPLAYTYPE_FILE: u32 = 4; +pub const RESOURCEDISPLAYTYPE_GROUP: u32 = 5; +pub const RESOURCEDISPLAYTYPE_NETWORK: u32 = 6; +pub const RESOURCEDISPLAYTYPE_ROOT: u32 = 7; +pub const RESOURCEDISPLAYTYPE_SHAREADMIN: u32 = 8; +pub const RESOURCEDISPLAYTYPE_DIRECTORY: u32 = 9; +pub const RESOURCEDISPLAYTYPE_TREE: u32 = 10; +pub const RESOURCEDISPLAYTYPE_NDSCONTAINER: u32 = 11; +pub const NETPROPERTY_PERSISTENT: u32 = 1; +pub const CONNECT_UPDATE_PROFILE: u32 = 1; +pub const CONNECT_UPDATE_RECENT: u32 = 2; +pub const CONNECT_TEMPORARY: u32 = 4; +pub const CONNECT_INTERACTIVE: u32 = 8; +pub const CONNECT_PROMPT: u32 = 16; +pub const CONNECT_NEED_DRIVE: u32 = 32; +pub const CONNECT_REFCOUNT: u32 = 64; +pub const CONNECT_REDIRECT: u32 = 128; +pub const CONNECT_LOCALDRIVE: u32 = 256; +pub const CONNECT_CURRENT_MEDIA: u32 = 512; +pub const CONNECT_DEFERRED: u32 = 1024; +pub const CONNECT_RESERVED: u32 = 4278190080; +pub const CONNECT_COMMANDLINE: u32 = 2048; +pub const CONNECT_CMD_SAVECRED: u32 = 4096; +pub const CONNECT_CRED_RESET: u32 = 8192; +pub const CONNECT_REQUIRE_INTEGRITY: u32 = 16384; +pub const CONNECT_REQUIRE_PRIVACY: u32 = 32768; +pub const CONNECT_WRITE_THROUGH_SEMANTICS: u32 = 65536; +pub const CONNECT_GLOBAL_MAPPING: u32 = 262144; +pub const CONNDLG_RO_PATH: u32 = 1; +pub const CONNDLG_CONN_POINT: u32 = 2; +pub const CONNDLG_USE_MRU: u32 = 4; +pub const CONNDLG_HIDE_BOX: u32 = 8; +pub const CONNDLG_PERSIST: u32 = 16; +pub const CONNDLG_NOT_PERSIST: u32 = 32; +pub const DISC_UPDATE_PROFILE: u32 = 1; +pub const DISC_NO_FORCE: u32 = 64; +pub const UNIVERSAL_NAME_INFO_LEVEL: u32 = 1; +pub const REMOTE_NAME_INFO_LEVEL: u32 = 2; +pub const WNFMT_MULTILINE: u32 = 1; +pub const WNFMT_ABBREVIATED: u32 = 2; +pub const WNFMT_INENUM: u32 = 16; +pub const WNFMT_CONNECTION: u32 = 32; +pub const NETINFO_DLL16: u32 = 1; +pub const NETINFO_DISKRED: u32 = 4; +pub const NETINFO_PRINTERRED: u32 = 8; +pub const WN_SUCCESS: u32 = 0; +pub const WN_NO_ERROR: u32 = 0; +pub const WN_NOT_SUPPORTED: u32 = 50; +pub const WN_CANCEL: u32 = 1223; +pub const WN_RETRY: u32 = 1237; +pub const WN_NET_ERROR: u32 = 59; +pub const WN_MORE_DATA: u32 = 234; +pub const WN_BAD_POINTER: u32 = 487; +pub const WN_BAD_VALUE: u32 = 87; +pub const WN_BAD_USER: u32 = 2202; +pub const WN_BAD_PASSWORD: u32 = 86; +pub const WN_ACCESS_DENIED: u32 = 5; +pub const WN_FUNCTION_BUSY: u32 = 170; +pub const WN_WINDOWS_ERROR: u32 = 59; +pub const WN_OUT_OF_MEMORY: u32 = 8; +pub const WN_NO_NETWORK: u32 = 1222; +pub const WN_EXTENDED_ERROR: u32 = 1208; +pub const WN_BAD_LEVEL: u32 = 124; +pub const WN_BAD_HANDLE: u32 = 6; +pub const WN_NOT_INITIALIZING: u32 = 1247; +pub const WN_NO_MORE_DEVICES: u32 = 1248; +pub const WN_NOT_CONNECTED: u32 = 2250; +pub const WN_OPEN_FILES: u32 = 2401; +pub const WN_DEVICE_IN_USE: u32 = 2404; +pub const WN_BAD_NETNAME: u32 = 67; +pub const WN_BAD_LOCALNAME: u32 = 1200; +pub const WN_ALREADY_CONNECTED: u32 = 85; +pub const WN_DEVICE_ERROR: u32 = 31; +pub const WN_CONNECTION_CLOSED: u32 = 1201; +pub const WN_NO_NET_OR_BAD_PATH: u32 = 1203; +pub const WN_BAD_PROVIDER: u32 = 1204; +pub const WN_CANNOT_OPEN_PROFILE: u32 = 1205; +pub const WN_BAD_PROFILE: u32 = 1206; +pub const WN_BAD_DEV_TYPE: u32 = 66; +pub const WN_DEVICE_ALREADY_REMEMBERED: u32 = 1202; +pub const WN_CONNECTED_OTHER_PASSWORD: u32 = 2108; +pub const WN_CONNECTED_OTHER_PASSWORD_DEFAULT: u32 = 2109; +pub const WN_NO_MORE_ENTRIES: u32 = 259; +pub const WN_NOT_CONTAINER: u32 = 1207; +pub const WN_NOT_AUTHENTICATED: u32 = 1244; +pub const WN_NOT_LOGGED_ON: u32 = 1245; +pub const WN_NOT_VALIDATED: u32 = 1311; +pub const WNCON_FORNETCARD: u32 = 1; +pub const WNCON_NOTROUTED: u32 = 2; +pub const WNCON_SLOWLINK: u32 = 4; +pub const WNCON_DYNAMIC: u32 = 8; +pub const CDERR_DIALOGFAILURE: u32 = 65535; +pub const CDERR_GENERALCODES: u32 = 0; +pub const CDERR_STRUCTSIZE: u32 = 1; +pub const CDERR_INITIALIZATION: u32 = 2; +pub const CDERR_NOTEMPLATE: u32 = 3; +pub const CDERR_NOHINSTANCE: u32 = 4; +pub const CDERR_LOADSTRFAILURE: u32 = 5; +pub const CDERR_FINDRESFAILURE: u32 = 6; +pub const CDERR_LOADRESFAILURE: u32 = 7; +pub const CDERR_LOCKRESFAILURE: u32 = 8; +pub const CDERR_MEMALLOCFAILURE: u32 = 9; +pub const CDERR_MEMLOCKFAILURE: u32 = 10; +pub const CDERR_NOHOOK: u32 = 11; +pub const CDERR_REGISTERMSGFAIL: u32 = 12; +pub const PDERR_PRINTERCODES: u32 = 4096; +pub const PDERR_SETUPFAILURE: u32 = 4097; +pub const PDERR_PARSEFAILURE: u32 = 4098; +pub const PDERR_RETDEFFAILURE: u32 = 4099; +pub const PDERR_LOADDRVFAILURE: u32 = 4100; +pub const PDERR_GETDEVMODEFAIL: u32 = 4101; +pub const PDERR_INITFAILURE: u32 = 4102; +pub const PDERR_NODEVICES: u32 = 4103; +pub const PDERR_NODEFAULTPRN: u32 = 4104; +pub const PDERR_DNDMMISMATCH: u32 = 4105; +pub const PDERR_CREATEICFAILURE: u32 = 4106; +pub const PDERR_PRINTERNOTFOUND: u32 = 4107; +pub const PDERR_DEFAULTDIFFERENT: u32 = 4108; +pub const CFERR_CHOOSEFONTCODES: u32 = 8192; +pub const CFERR_NOFONTS: u32 = 8193; +pub const CFERR_MAXLESSTHANMIN: u32 = 8194; +pub const FNERR_FILENAMECODES: u32 = 12288; +pub const FNERR_SUBCLASSFAILURE: u32 = 12289; +pub const FNERR_INVALIDFILENAME: u32 = 12290; +pub const FNERR_BUFFERTOOSMALL: u32 = 12291; +pub const FRERR_FINDREPLACECODES: u32 = 16384; +pub const FRERR_BUFFERLENGTHZERO: u32 = 16385; +pub const CCERR_CHOOSECOLORCODES: u32 = 20480; +pub const WM_DDE_FIRST: u32 = 992; +pub const WM_DDE_INITIATE: u32 = 992; +pub const WM_DDE_TERMINATE: u32 = 993; +pub const WM_DDE_ADVISE: u32 = 994; +pub const WM_DDE_UNADVISE: u32 = 995; +pub const WM_DDE_ACK: u32 = 996; +pub const WM_DDE_DATA: u32 = 997; +pub const WM_DDE_REQUEST: u32 = 998; +pub const WM_DDE_POKE: u32 = 999; +pub const WM_DDE_EXECUTE: u32 = 1000; +pub const WM_DDE_LAST: u32 = 1000; +pub const XST_NULL: u32 = 0; +pub const XST_INCOMPLETE: u32 = 1; +pub const XST_CONNECTED: u32 = 2; +pub const XST_INIT1: u32 = 3; +pub const XST_INIT2: u32 = 4; +pub const XST_REQSENT: u32 = 5; +pub const XST_DATARCVD: u32 = 6; +pub const XST_POKESENT: u32 = 7; +pub const XST_POKEACKRCVD: u32 = 8; +pub const XST_EXECSENT: u32 = 9; +pub const XST_EXECACKRCVD: u32 = 10; +pub const XST_ADVSENT: u32 = 11; +pub const XST_UNADVSENT: u32 = 12; +pub const XST_ADVACKRCVD: u32 = 13; +pub const XST_UNADVACKRCVD: u32 = 14; +pub const XST_ADVDATASENT: u32 = 15; +pub const XST_ADVDATAACKRCVD: u32 = 16; +pub const CADV_LATEACK: u32 = 65535; +pub const ST_CONNECTED: u32 = 1; +pub const ST_ADVISE: u32 = 2; +pub const ST_ISLOCAL: u32 = 4; +pub const ST_BLOCKED: u32 = 8; +pub const ST_CLIENT: u32 = 16; +pub const ST_TERMINATED: u32 = 32; +pub const ST_INLIST: u32 = 64; +pub const ST_BLOCKNEXT: u32 = 128; +pub const ST_ISSELF: u32 = 256; +pub const DDE_FACK: u32 = 32768; +pub const DDE_FBUSY: u32 = 16384; +pub const DDE_FDEFERUPD: u32 = 16384; +pub const DDE_FACKREQ: u32 = 32768; +pub const DDE_FRELEASE: u32 = 8192; +pub const DDE_FREQUESTED: u32 = 4096; +pub const DDE_FAPPSTATUS: u32 = 255; +pub const DDE_FNOTPROCESSED: u32 = 0; +pub const DDE_FACKRESERVED: i32 = -49408; +pub const DDE_FADVRESERVED: i32 = -49153; +pub const DDE_FDATRESERVED: i32 = -45057; +pub const DDE_FPOKRESERVED: i32 = -8193; +pub const MSGF_DDEMGR: u32 = 32769; +pub const CP_WINANSI: u32 = 1004; +pub const CP_WINUNICODE: u32 = 1200; +pub const CP_WINNEUTRAL: u32 = 1004; +pub const XTYPF_NOBLOCK: u32 = 2; +pub const XTYPF_NODATA: u32 = 4; +pub const XTYPF_ACKREQ: u32 = 8; +pub const XCLASS_MASK: u32 = 64512; +pub const XCLASS_BOOL: u32 = 4096; +pub const XCLASS_DATA: u32 = 8192; +pub const XCLASS_FLAGS: u32 = 16384; +pub const XCLASS_NOTIFICATION: u32 = 32768; +pub const XTYP_ERROR: u32 = 32770; +pub const XTYP_ADVDATA: u32 = 16400; +pub const XTYP_ADVREQ: u32 = 8226; +pub const XTYP_ADVSTART: u32 = 4144; +pub const XTYP_ADVSTOP: u32 = 32832; +pub const XTYP_EXECUTE: u32 = 16464; +pub const XTYP_CONNECT: u32 = 4194; +pub const XTYP_CONNECT_CONFIRM: u32 = 32882; +pub const XTYP_XACT_COMPLETE: u32 = 32896; +pub const XTYP_POKE: u32 = 16528; +pub const XTYP_REGISTER: u32 = 32930; +pub const XTYP_REQUEST: u32 = 8368; +pub const XTYP_DISCONNECT: u32 = 32962; +pub const XTYP_UNREGISTER: u32 = 32978; +pub const XTYP_WILDCONNECT: u32 = 8418; +pub const XTYP_MASK: u32 = 240; +pub const XTYP_SHIFT: u32 = 4; +pub const TIMEOUT_ASYNC: u32 = 4294967295; +pub const QID_SYNC: u32 = 4294967295; +pub const SZDDESYS_TOPIC: &[u8; 7] = b"System\0"; +pub const SZDDESYS_ITEM_TOPICS: &[u8; 7] = b"Topics\0"; +pub const SZDDESYS_ITEM_SYSITEMS: &[u8; 9] = b"SysItems\0"; +pub const SZDDESYS_ITEM_RTNMSG: &[u8; 14] = b"ReturnMessage\0"; +pub const SZDDESYS_ITEM_STATUS: &[u8; 7] = b"Status\0"; +pub const SZDDESYS_ITEM_FORMATS: &[u8; 8] = b"Formats\0"; +pub const SZDDESYS_ITEM_HELP: &[u8; 5] = b"Help\0"; +pub const SZDDE_ITEM_ITEMLIST: &[u8; 14] = b"TopicItemList\0"; +pub const CBF_FAIL_SELFCONNECTIONS: u32 = 4096; +pub const CBF_FAIL_CONNECTIONS: u32 = 8192; +pub const CBF_FAIL_ADVISES: u32 = 16384; +pub const CBF_FAIL_EXECUTES: u32 = 32768; +pub const CBF_FAIL_POKES: u32 = 65536; +pub const CBF_FAIL_REQUESTS: u32 = 131072; +pub const CBF_FAIL_ALLSVRXACTIONS: u32 = 258048; +pub const CBF_SKIP_CONNECT_CONFIRMS: u32 = 262144; +pub const CBF_SKIP_REGISTRATIONS: u32 = 524288; +pub const CBF_SKIP_UNREGISTRATIONS: u32 = 1048576; +pub const CBF_SKIP_DISCONNECTS: u32 = 2097152; +pub const CBF_SKIP_ALLNOTIFICATIONS: u32 = 3932160; +pub const APPCMD_CLIENTONLY: u32 = 16; +pub const APPCMD_FILTERINITS: u32 = 32; +pub const APPCMD_MASK: u32 = 4080; +pub const APPCLASS_STANDARD: u32 = 0; +pub const APPCLASS_MASK: u32 = 15; +pub const EC_ENABLEALL: u32 = 0; +pub const EC_ENABLEONE: u32 = 128; +pub const EC_DISABLE: u32 = 8; +pub const EC_QUERYWAITING: u32 = 2; +pub const DNS_REGISTER: u32 = 1; +pub const DNS_UNREGISTER: u32 = 2; +pub const DNS_FILTERON: u32 = 4; +pub const DNS_FILTEROFF: u32 = 8; +pub const HDATA_APPOWNED: u32 = 1; +pub const DMLERR_NO_ERROR: u32 = 0; +pub const DMLERR_FIRST: u32 = 16384; +pub const DMLERR_ADVACKTIMEOUT: u32 = 16384; +pub const DMLERR_BUSY: u32 = 16385; +pub const DMLERR_DATAACKTIMEOUT: u32 = 16386; +pub const DMLERR_DLL_NOT_INITIALIZED: u32 = 16387; +pub const DMLERR_DLL_USAGE: u32 = 16388; +pub const DMLERR_EXECACKTIMEOUT: u32 = 16389; +pub const DMLERR_INVALIDPARAMETER: u32 = 16390; +pub const DMLERR_LOW_MEMORY: u32 = 16391; +pub const DMLERR_MEMORY_ERROR: u32 = 16392; +pub const DMLERR_NOTPROCESSED: u32 = 16393; +pub const DMLERR_NO_CONV_ESTABLISHED: u32 = 16394; +pub const DMLERR_POKEACKTIMEOUT: u32 = 16395; +pub const DMLERR_POSTMSG_FAILED: u32 = 16396; +pub const DMLERR_REENTRANCY: u32 = 16397; +pub const DMLERR_SERVER_DIED: u32 = 16398; +pub const DMLERR_SYS_ERROR: u32 = 16399; +pub const DMLERR_UNADVACKTIMEOUT: u32 = 16400; +pub const DMLERR_UNFOUND_QUEUE_ID: u32 = 16401; +pub const DMLERR_LAST: u32 = 16401; +pub const MH_CREATE: u32 = 1; +pub const MH_KEEP: u32 = 2; +pub const MH_DELETE: u32 = 3; +pub const MH_CLEANUP: u32 = 4; +pub const MAX_MONITORS: u32 = 4; +pub const APPCLASS_MONITOR: u32 = 1; +pub const XTYP_MONITOR: u32 = 33010; +pub const MF_HSZ_INFO: u32 = 16777216; +pub const MF_SENDMSGS: u32 = 33554432; +pub const MF_POSTMSGS: u32 = 67108864; +pub const MF_CALLBACKS: u32 = 134217728; +pub const MF_ERRORS: u32 = 268435456; +pub const MF_LINKS: u32 = 536870912; +pub const MF_CONV: u32 = 1073741824; +pub const MF_MASK: u32 = 4278190080; +pub const ctlFirst: u32 = 1024; +pub const ctlLast: u32 = 1279; +pub const psh1: u32 = 1024; +pub const psh2: u32 = 1025; +pub const psh3: u32 = 1026; +pub const psh4: u32 = 1027; +pub const psh5: u32 = 1028; +pub const psh6: u32 = 1029; +pub const psh7: u32 = 1030; +pub const psh8: u32 = 1031; +pub const psh9: u32 = 1032; +pub const psh10: u32 = 1033; +pub const psh11: u32 = 1034; +pub const psh12: u32 = 1035; +pub const psh13: u32 = 1036; +pub const psh14: u32 = 1037; +pub const psh15: u32 = 1038; +pub const pshHelp: u32 = 1038; +pub const psh16: u32 = 1039; +pub const chx1: u32 = 1040; +pub const chx2: u32 = 1041; +pub const chx3: u32 = 1042; +pub const chx4: u32 = 1043; +pub const chx5: u32 = 1044; +pub const chx6: u32 = 1045; +pub const chx7: u32 = 1046; +pub const chx8: u32 = 1047; +pub const chx9: u32 = 1048; +pub const chx10: u32 = 1049; +pub const chx11: u32 = 1050; +pub const chx12: u32 = 1051; +pub const chx13: u32 = 1052; +pub const chx14: u32 = 1053; +pub const chx15: u32 = 1054; +pub const chx16: u32 = 1055; +pub const rad1: u32 = 1056; +pub const rad2: u32 = 1057; +pub const rad3: u32 = 1058; +pub const rad4: u32 = 1059; +pub const rad5: u32 = 1060; +pub const rad6: u32 = 1061; +pub const rad7: u32 = 1062; +pub const rad8: u32 = 1063; +pub const rad9: u32 = 1064; +pub const rad10: u32 = 1065; +pub const rad11: u32 = 1066; +pub const rad12: u32 = 1067; +pub const rad13: u32 = 1068; +pub const rad14: u32 = 1069; +pub const rad15: u32 = 1070; +pub const rad16: u32 = 1071; +pub const grp1: u32 = 1072; +pub const grp2: u32 = 1073; +pub const grp3: u32 = 1074; +pub const grp4: u32 = 1075; +pub const frm1: u32 = 1076; +pub const frm2: u32 = 1077; +pub const frm3: u32 = 1078; +pub const frm4: u32 = 1079; +pub const rct1: u32 = 1080; +pub const rct2: u32 = 1081; +pub const rct3: u32 = 1082; +pub const rct4: u32 = 1083; +pub const ico1: u32 = 1084; +pub const ico2: u32 = 1085; +pub const ico3: u32 = 1086; +pub const ico4: u32 = 1087; +pub const stc1: u32 = 1088; +pub const stc2: u32 = 1089; +pub const stc3: u32 = 1090; +pub const stc4: u32 = 1091; +pub const stc5: u32 = 1092; +pub const stc6: u32 = 1093; +pub const stc7: u32 = 1094; +pub const stc8: u32 = 1095; +pub const stc9: u32 = 1096; +pub const stc10: u32 = 1097; +pub const stc11: u32 = 1098; +pub const stc12: u32 = 1099; +pub const stc13: u32 = 1100; +pub const stc14: u32 = 1101; +pub const stc15: u32 = 1102; +pub const stc16: u32 = 1103; +pub const stc17: u32 = 1104; +pub const stc18: u32 = 1105; +pub const stc19: u32 = 1106; +pub const stc20: u32 = 1107; +pub const stc21: u32 = 1108; +pub const stc22: u32 = 1109; +pub const stc23: u32 = 1110; +pub const stc24: u32 = 1111; +pub const stc25: u32 = 1112; +pub const stc26: u32 = 1113; +pub const stc27: u32 = 1114; +pub const stc28: u32 = 1115; +pub const stc29: u32 = 1116; +pub const stc30: u32 = 1117; +pub const stc31: u32 = 1118; +pub const stc32: u32 = 1119; +pub const lst1: u32 = 1120; +pub const lst2: u32 = 1121; +pub const lst3: u32 = 1122; +pub const lst4: u32 = 1123; +pub const lst5: u32 = 1124; +pub const lst6: u32 = 1125; +pub const lst7: u32 = 1126; +pub const lst8: u32 = 1127; +pub const lst9: u32 = 1128; +pub const lst10: u32 = 1129; +pub const lst11: u32 = 1130; +pub const lst12: u32 = 1131; +pub const lst13: u32 = 1132; +pub const lst14: u32 = 1133; +pub const lst15: u32 = 1134; +pub const lst16: u32 = 1135; +pub const cmb1: u32 = 1136; +pub const cmb2: u32 = 1137; +pub const cmb3: u32 = 1138; +pub const cmb4: u32 = 1139; +pub const cmb5: u32 = 1140; +pub const cmb6: u32 = 1141; +pub const cmb7: u32 = 1142; +pub const cmb8: u32 = 1143; +pub const cmb9: u32 = 1144; +pub const cmb10: u32 = 1145; +pub const cmb11: u32 = 1146; +pub const cmb12: u32 = 1147; +pub const cmb13: u32 = 1148; +pub const cmb14: u32 = 1149; +pub const cmb15: u32 = 1150; +pub const cmb16: u32 = 1151; +pub const edt1: u32 = 1152; +pub const edt2: u32 = 1153; +pub const edt3: u32 = 1154; +pub const edt4: u32 = 1155; +pub const edt5: u32 = 1156; +pub const edt6: u32 = 1157; +pub const edt7: u32 = 1158; +pub const edt8: u32 = 1159; +pub const edt9: u32 = 1160; +pub const edt10: u32 = 1161; +pub const edt11: u32 = 1162; +pub const edt12: u32 = 1163; +pub const edt13: u32 = 1164; +pub const edt14: u32 = 1165; +pub const edt15: u32 = 1166; +pub const edt16: u32 = 1167; +pub const scr1: u32 = 1168; +pub const scr2: u32 = 1169; +pub const scr3: u32 = 1170; +pub const scr4: u32 = 1171; +pub const scr5: u32 = 1172; +pub const scr6: u32 = 1173; +pub const scr7: u32 = 1174; +pub const scr8: u32 = 1175; +pub const ctl1: u32 = 1184; +pub const FILEOPENORD: u32 = 1536; +pub const MULTIFILEOPENORD: u32 = 1537; +pub const PRINTDLGORD: u32 = 1538; +pub const PRNSETUPDLGORD: u32 = 1539; +pub const FINDDLGORD: u32 = 1540; +pub const REPLACEDLGORD: u32 = 1541; +pub const FONTDLGORD: u32 = 1542; +pub const FORMATDLGORD31: u32 = 1543; +pub const FORMATDLGORD30: u32 = 1544; +pub const RUNDLGORD: u32 = 1545; +pub const PAGESETUPDLGORD: u32 = 1546; +pub const NEWFILEOPENORD: u32 = 1547; +pub const PRINTDLGEXORD: u32 = 1549; +pub const PAGESETUPDLGORDMOTIF: u32 = 1550; +pub const COLORMGMTDLGORD: u32 = 1551; +pub const NEWFILEOPENV2ORD: u32 = 1552; +pub const NEWFILEOPENV3ORD: u32 = 1553; +pub const NEWFORMATDLGWITHLINK: u32 = 1591; +pub const IDC_MANAGE_LINK: u32 = 1592; +pub const LZERROR_BADINHANDLE: i32 = -1; +pub const LZERROR_BADOUTHANDLE: i32 = -2; +pub const LZERROR_READ: i32 = -3; +pub const LZERROR_WRITE: i32 = -4; +pub const LZERROR_GLOBALLOC: i32 = -5; +pub const LZERROR_GLOBLOCK: i32 = -6; +pub const LZERROR_BADVALUE: i32 = -7; +pub const LZERROR_UNKNOWNALG: i32 = -8; +pub const MAXPNAMELEN: u32 = 32; +pub const MAXERRORLENGTH: u32 = 256; +pub const MAX_JOYSTICKOEMVXDNAME: u32 = 260; +pub const TIME_MS: u32 = 1; +pub const TIME_SAMPLES: u32 = 2; +pub const TIME_BYTES: u32 = 4; +pub const TIME_SMPTE: u32 = 8; +pub const TIME_MIDI: u32 = 16; +pub const TIME_TICKS: u32 = 32; +pub const MM_JOY1MOVE: u32 = 928; +pub const MM_JOY2MOVE: u32 = 929; +pub const MM_JOY1ZMOVE: u32 = 930; +pub const MM_JOY2ZMOVE: u32 = 931; +pub const MM_JOY1BUTTONDOWN: u32 = 949; +pub const MM_JOY2BUTTONDOWN: u32 = 950; +pub const MM_JOY1BUTTONUP: u32 = 951; +pub const MM_JOY2BUTTONUP: u32 = 952; +pub const MM_MCINOTIFY: u32 = 953; +pub const MM_WOM_OPEN: u32 = 955; +pub const MM_WOM_CLOSE: u32 = 956; +pub const MM_WOM_DONE: u32 = 957; +pub const MM_WIM_OPEN: u32 = 958; +pub const MM_WIM_CLOSE: u32 = 959; +pub const MM_WIM_DATA: u32 = 960; +pub const MM_MIM_OPEN: u32 = 961; +pub const MM_MIM_CLOSE: u32 = 962; +pub const MM_MIM_DATA: u32 = 963; +pub const MM_MIM_LONGDATA: u32 = 964; +pub const MM_MIM_ERROR: u32 = 965; +pub const MM_MIM_LONGERROR: u32 = 966; +pub const MM_MOM_OPEN: u32 = 967; +pub const MM_MOM_CLOSE: u32 = 968; +pub const MM_MOM_DONE: u32 = 969; +pub const MM_DRVM_OPEN: u32 = 976; +pub const MM_DRVM_CLOSE: u32 = 977; +pub const MM_DRVM_DATA: u32 = 978; +pub const MM_DRVM_ERROR: u32 = 979; +pub const MM_STREAM_OPEN: u32 = 980; +pub const MM_STREAM_CLOSE: u32 = 981; +pub const MM_STREAM_DONE: u32 = 982; +pub const MM_STREAM_ERROR: u32 = 983; +pub const MM_MOM_POSITIONCB: u32 = 970; +pub const MM_MCISIGNAL: u32 = 971; +pub const MM_MIM_MOREDATA: u32 = 972; +pub const MM_MIXM_LINE_CHANGE: u32 = 976; +pub const MM_MIXM_CONTROL_CHANGE: u32 = 977; +pub const MMSYSERR_BASE: u32 = 0; +pub const WAVERR_BASE: u32 = 32; +pub const MIDIERR_BASE: u32 = 64; +pub const TIMERR_BASE: u32 = 96; +pub const JOYERR_BASE: u32 = 160; +pub const MCIERR_BASE: u32 = 256; +pub const MIXERR_BASE: u32 = 1024; +pub const MCI_STRING_OFFSET: u32 = 512; +pub const MCI_VD_OFFSET: u32 = 1024; +pub const MCI_CD_OFFSET: u32 = 1088; +pub const MCI_WAVE_OFFSET: u32 = 1152; +pub const MCI_SEQ_OFFSET: u32 = 1216; +pub const MMSYSERR_NOERROR: u32 = 0; +pub const MMSYSERR_ERROR: u32 = 1; +pub const MMSYSERR_BADDEVICEID: u32 = 2; +pub const MMSYSERR_NOTENABLED: u32 = 3; +pub const MMSYSERR_ALLOCATED: u32 = 4; +pub const MMSYSERR_INVALHANDLE: u32 = 5; +pub const MMSYSERR_NODRIVER: u32 = 6; +pub const MMSYSERR_NOMEM: u32 = 7; +pub const MMSYSERR_NOTSUPPORTED: u32 = 8; +pub const MMSYSERR_BADERRNUM: u32 = 9; +pub const MMSYSERR_INVALFLAG: u32 = 10; +pub const MMSYSERR_INVALPARAM: u32 = 11; +pub const MMSYSERR_HANDLEBUSY: u32 = 12; +pub const MMSYSERR_INVALIDALIAS: u32 = 13; +pub const MMSYSERR_BADDB: u32 = 14; +pub const MMSYSERR_KEYNOTFOUND: u32 = 15; +pub const MMSYSERR_READERROR: u32 = 16; +pub const MMSYSERR_WRITEERROR: u32 = 17; +pub const MMSYSERR_DELETEERROR: u32 = 18; +pub const MMSYSERR_VALNOTFOUND: u32 = 19; +pub const MMSYSERR_NODRIVERCB: u32 = 20; +pub const MMSYSERR_MOREDATA: u32 = 21; +pub const MMSYSERR_LASTERROR: u32 = 21; +pub const CALLBACK_TYPEMASK: u32 = 458752; +pub const CALLBACK_NULL: u32 = 0; +pub const CALLBACK_WINDOW: u32 = 65536; +pub const CALLBACK_TASK: u32 = 131072; +pub const CALLBACK_FUNCTION: u32 = 196608; +pub const CALLBACK_THREAD: u32 = 131072; +pub const CALLBACK_EVENT: u32 = 327680; +pub const MCIERR_INVALID_DEVICE_ID: u32 = 257; +pub const MCIERR_UNRECOGNIZED_KEYWORD: u32 = 259; +pub const MCIERR_UNRECOGNIZED_COMMAND: u32 = 261; +pub const MCIERR_HARDWARE: u32 = 262; +pub const MCIERR_INVALID_DEVICE_NAME: u32 = 263; +pub const MCIERR_OUT_OF_MEMORY: u32 = 264; +pub const MCIERR_DEVICE_OPEN: u32 = 265; +pub const MCIERR_CANNOT_LOAD_DRIVER: u32 = 266; +pub const MCIERR_MISSING_COMMAND_STRING: u32 = 267; +pub const MCIERR_PARAM_OVERFLOW: u32 = 268; +pub const MCIERR_MISSING_STRING_ARGUMENT: u32 = 269; +pub const MCIERR_BAD_INTEGER: u32 = 270; +pub const MCIERR_PARSER_INTERNAL: u32 = 271; +pub const MCIERR_DRIVER_INTERNAL: u32 = 272; +pub const MCIERR_MISSING_PARAMETER: u32 = 273; +pub const MCIERR_UNSUPPORTED_FUNCTION: u32 = 274; +pub const MCIERR_FILE_NOT_FOUND: u32 = 275; +pub const MCIERR_DEVICE_NOT_READY: u32 = 276; +pub const MCIERR_INTERNAL: u32 = 277; +pub const MCIERR_DRIVER: u32 = 278; +pub const MCIERR_CANNOT_USE_ALL: u32 = 279; +pub const MCIERR_MULTIPLE: u32 = 280; +pub const MCIERR_EXTENSION_NOT_FOUND: u32 = 281; +pub const MCIERR_OUTOFRANGE: u32 = 282; +pub const MCIERR_FLAGS_NOT_COMPATIBLE: u32 = 284; +pub const MCIERR_FILE_NOT_SAVED: u32 = 286; +pub const MCIERR_DEVICE_TYPE_REQUIRED: u32 = 287; +pub const MCIERR_DEVICE_LOCKED: u32 = 288; +pub const MCIERR_DUPLICATE_ALIAS: u32 = 289; +pub const MCIERR_BAD_CONSTANT: u32 = 290; +pub const MCIERR_MUST_USE_SHAREABLE: u32 = 291; +pub const MCIERR_MISSING_DEVICE_NAME: u32 = 292; +pub const MCIERR_BAD_TIME_FORMAT: u32 = 293; +pub const MCIERR_NO_CLOSING_QUOTE: u32 = 294; +pub const MCIERR_DUPLICATE_FLAGS: u32 = 295; +pub const MCIERR_INVALID_FILE: u32 = 296; +pub const MCIERR_NULL_PARAMETER_BLOCK: u32 = 297; +pub const MCIERR_UNNAMED_RESOURCE: u32 = 298; +pub const MCIERR_NEW_REQUIRES_ALIAS: u32 = 299; +pub const MCIERR_NOTIFY_ON_AUTO_OPEN: u32 = 300; +pub const MCIERR_NO_ELEMENT_ALLOWED: u32 = 301; +pub const MCIERR_NONAPPLICABLE_FUNCTION: u32 = 302; +pub const MCIERR_ILLEGAL_FOR_AUTO_OPEN: u32 = 303; +pub const MCIERR_FILENAME_REQUIRED: u32 = 304; +pub const MCIERR_EXTRA_CHARACTERS: u32 = 305; +pub const MCIERR_DEVICE_NOT_INSTALLED: u32 = 306; +pub const MCIERR_GET_CD: u32 = 307; +pub const MCIERR_SET_CD: u32 = 308; +pub const MCIERR_SET_DRIVE: u32 = 309; +pub const MCIERR_DEVICE_LENGTH: u32 = 310; +pub const MCIERR_DEVICE_ORD_LENGTH: u32 = 311; +pub const MCIERR_NO_INTEGER: u32 = 312; +pub const MCIERR_WAVE_OUTPUTSINUSE: u32 = 320; +pub const MCIERR_WAVE_SETOUTPUTINUSE: u32 = 321; +pub const MCIERR_WAVE_INPUTSINUSE: u32 = 322; +pub const MCIERR_WAVE_SETINPUTINUSE: u32 = 323; +pub const MCIERR_WAVE_OUTPUTUNSPECIFIED: u32 = 324; +pub const MCIERR_WAVE_INPUTUNSPECIFIED: u32 = 325; +pub const MCIERR_WAVE_OUTPUTSUNSUITABLE: u32 = 326; +pub const MCIERR_WAVE_SETOUTPUTUNSUITABLE: u32 = 327; +pub const MCIERR_WAVE_INPUTSUNSUITABLE: u32 = 328; +pub const MCIERR_WAVE_SETINPUTUNSUITABLE: u32 = 329; +pub const MCIERR_SEQ_DIV_INCOMPATIBLE: u32 = 336; +pub const MCIERR_SEQ_PORT_INUSE: u32 = 337; +pub const MCIERR_SEQ_PORT_NONEXISTENT: u32 = 338; +pub const MCIERR_SEQ_PORT_MAPNODEVICE: u32 = 339; +pub const MCIERR_SEQ_PORT_MISCERROR: u32 = 340; +pub const MCIERR_SEQ_TIMER: u32 = 341; +pub const MCIERR_SEQ_PORTUNSPECIFIED: u32 = 342; +pub const MCIERR_SEQ_NOMIDIPRESENT: u32 = 343; +pub const MCIERR_NO_WINDOW: u32 = 346; +pub const MCIERR_CREATEWINDOW: u32 = 347; +pub const MCIERR_FILE_READ: u32 = 348; +pub const MCIERR_FILE_WRITE: u32 = 349; +pub const MCIERR_NO_IDENTITY: u32 = 350; +pub const MCIERR_CUSTOM_DRIVER_BASE: u32 = 512; +pub const MCI_OPEN: u32 = 2051; +pub const MCI_CLOSE: u32 = 2052; +pub const MCI_ESCAPE: u32 = 2053; +pub const MCI_PLAY: u32 = 2054; +pub const MCI_SEEK: u32 = 2055; +pub const MCI_STOP: u32 = 2056; +pub const MCI_PAUSE: u32 = 2057; +pub const MCI_INFO: u32 = 2058; +pub const MCI_GETDEVCAPS: u32 = 2059; +pub const MCI_SPIN: u32 = 2060; +pub const MCI_SET: u32 = 2061; +pub const MCI_STEP: u32 = 2062; +pub const MCI_RECORD: u32 = 2063; +pub const MCI_SYSINFO: u32 = 2064; +pub const MCI_BREAK: u32 = 2065; +pub const MCI_SAVE: u32 = 2067; +pub const MCI_STATUS: u32 = 2068; +pub const MCI_CUE: u32 = 2096; +pub const MCI_REALIZE: u32 = 2112; +pub const MCI_WINDOW: u32 = 2113; +pub const MCI_PUT: u32 = 2114; +pub const MCI_WHERE: u32 = 2115; +pub const MCI_FREEZE: u32 = 2116; +pub const MCI_UNFREEZE: u32 = 2117; +pub const MCI_LOAD: u32 = 2128; +pub const MCI_CUT: u32 = 2129; +pub const MCI_COPY: u32 = 2130; +pub const MCI_PASTE: u32 = 2131; +pub const MCI_UPDATE: u32 = 2132; +pub const MCI_RESUME: u32 = 2133; +pub const MCI_DELETE: u32 = 2134; +pub const MCI_LAST: u32 = 4095; +pub const MCI_DEVTYPE_VCR: u32 = 513; +pub const MCI_DEVTYPE_VIDEODISC: u32 = 514; +pub const MCI_DEVTYPE_OVERLAY: u32 = 515; +pub const MCI_DEVTYPE_CD_AUDIO: u32 = 516; +pub const MCI_DEVTYPE_DAT: u32 = 517; +pub const MCI_DEVTYPE_SCANNER: u32 = 518; +pub const MCI_DEVTYPE_ANIMATION: u32 = 519; +pub const MCI_DEVTYPE_DIGITAL_VIDEO: u32 = 520; +pub const MCI_DEVTYPE_OTHER: u32 = 521; +pub const MCI_DEVTYPE_WAVEFORM_AUDIO: u32 = 522; +pub const MCI_DEVTYPE_SEQUENCER: u32 = 523; +pub const MCI_DEVTYPE_FIRST: u32 = 513; +pub const MCI_DEVTYPE_LAST: u32 = 523; +pub const MCI_DEVTYPE_FIRST_USER: u32 = 4096; +pub const MCI_MODE_NOT_READY: u32 = 524; +pub const MCI_MODE_STOP: u32 = 525; +pub const MCI_MODE_PLAY: u32 = 526; +pub const MCI_MODE_RECORD: u32 = 527; +pub const MCI_MODE_SEEK: u32 = 528; +pub const MCI_MODE_PAUSE: u32 = 529; +pub const MCI_MODE_OPEN: u32 = 530; +pub const MCI_FORMAT_MILLISECONDS: u32 = 0; +pub const MCI_FORMAT_HMS: u32 = 1; +pub const MCI_FORMAT_MSF: u32 = 2; +pub const MCI_FORMAT_FRAMES: u32 = 3; +pub const MCI_FORMAT_SMPTE_24: u32 = 4; +pub const MCI_FORMAT_SMPTE_25: u32 = 5; +pub const MCI_FORMAT_SMPTE_30: u32 = 6; +pub const MCI_FORMAT_SMPTE_30DROP: u32 = 7; +pub const MCI_FORMAT_BYTES: u32 = 8; +pub const MCI_FORMAT_SAMPLES: u32 = 9; +pub const MCI_FORMAT_TMSF: u32 = 10; +pub const MCI_NOTIFY_SUCCESSFUL: u32 = 1; +pub const MCI_NOTIFY_SUPERSEDED: u32 = 2; +pub const MCI_NOTIFY_ABORTED: u32 = 4; +pub const MCI_NOTIFY_FAILURE: u32 = 8; +pub const MCI_NOTIFY: u32 = 1; +pub const MCI_WAIT: u32 = 2; +pub const MCI_FROM: u32 = 4; +pub const MCI_TO: u32 = 8; +pub const MCI_TRACK: u32 = 16; +pub const MCI_OPEN_SHAREABLE: u32 = 256; +pub const MCI_OPEN_ELEMENT: u32 = 512; +pub const MCI_OPEN_ALIAS: u32 = 1024; +pub const MCI_OPEN_ELEMENT_ID: u32 = 2048; +pub const MCI_OPEN_TYPE_ID: u32 = 4096; +pub const MCI_OPEN_TYPE: u32 = 8192; +pub const MCI_SEEK_TO_START: u32 = 256; +pub const MCI_SEEK_TO_END: u32 = 512; +pub const MCI_STATUS_ITEM: u32 = 256; +pub const MCI_STATUS_START: u32 = 512; +pub const MCI_STATUS_LENGTH: u32 = 1; +pub const MCI_STATUS_POSITION: u32 = 2; +pub const MCI_STATUS_NUMBER_OF_TRACKS: u32 = 3; +pub const MCI_STATUS_MODE: u32 = 4; +pub const MCI_STATUS_MEDIA_PRESENT: u32 = 5; +pub const MCI_STATUS_TIME_FORMAT: u32 = 6; +pub const MCI_STATUS_READY: u32 = 7; +pub const MCI_STATUS_CURRENT_TRACK: u32 = 8; +pub const MCI_INFO_PRODUCT: u32 = 256; +pub const MCI_INFO_FILE: u32 = 512; +pub const MCI_INFO_MEDIA_UPC: u32 = 1024; +pub const MCI_INFO_MEDIA_IDENTITY: u32 = 2048; +pub const MCI_INFO_NAME: u32 = 4096; +pub const MCI_INFO_COPYRIGHT: u32 = 8192; +pub const MCI_GETDEVCAPS_ITEM: u32 = 256; +pub const MCI_GETDEVCAPS_CAN_RECORD: u32 = 1; +pub const MCI_GETDEVCAPS_HAS_AUDIO: u32 = 2; +pub const MCI_GETDEVCAPS_HAS_VIDEO: u32 = 3; +pub const MCI_GETDEVCAPS_DEVICE_TYPE: u32 = 4; +pub const MCI_GETDEVCAPS_USES_FILES: u32 = 5; +pub const MCI_GETDEVCAPS_COMPOUND_DEVICE: u32 = 6; +pub const MCI_GETDEVCAPS_CAN_EJECT: u32 = 7; +pub const MCI_GETDEVCAPS_CAN_PLAY: u32 = 8; +pub const MCI_GETDEVCAPS_CAN_SAVE: u32 = 9; +pub const MCI_SYSINFO_QUANTITY: u32 = 256; +pub const MCI_SYSINFO_OPEN: u32 = 512; +pub const MCI_SYSINFO_NAME: u32 = 1024; +pub const MCI_SYSINFO_INSTALLNAME: u32 = 2048; +pub const MCI_SET_DOOR_OPEN: u32 = 256; +pub const MCI_SET_DOOR_CLOSED: u32 = 512; +pub const MCI_SET_TIME_FORMAT: u32 = 1024; +pub const MCI_SET_AUDIO: u32 = 2048; +pub const MCI_SET_VIDEO: u32 = 4096; +pub const MCI_SET_ON: u32 = 8192; +pub const MCI_SET_OFF: u32 = 16384; +pub const MCI_SET_AUDIO_ALL: u32 = 0; +pub const MCI_SET_AUDIO_LEFT: u32 = 1; +pub const MCI_SET_AUDIO_RIGHT: u32 = 2; +pub const MCI_BREAK_KEY: u32 = 256; +pub const MCI_BREAK_HWND: u32 = 512; +pub const MCI_BREAK_OFF: u32 = 1024; +pub const MCI_RECORD_INSERT: u32 = 256; +pub const MCI_RECORD_OVERWRITE: u32 = 512; +pub const MCI_SAVE_FILE: u32 = 256; +pub const MCI_LOAD_FILE: u32 = 256; +pub const MCI_VD_MODE_PARK: u32 = 1025; +pub const MCI_VD_MEDIA_CLV: u32 = 1026; +pub const MCI_VD_MEDIA_CAV: u32 = 1027; +pub const MCI_VD_MEDIA_OTHER: u32 = 1028; +pub const MCI_VD_FORMAT_TRACK: u32 = 16385; +pub const MCI_VD_PLAY_REVERSE: u32 = 65536; +pub const MCI_VD_PLAY_FAST: u32 = 131072; +pub const MCI_VD_PLAY_SPEED: u32 = 262144; +pub const MCI_VD_PLAY_SCAN: u32 = 524288; +pub const MCI_VD_PLAY_SLOW: u32 = 1048576; +pub const MCI_VD_SEEK_REVERSE: u32 = 65536; +pub const MCI_VD_STATUS_SPEED: u32 = 16386; +pub const MCI_VD_STATUS_FORWARD: u32 = 16387; +pub const MCI_VD_STATUS_MEDIA_TYPE: u32 = 16388; +pub const MCI_VD_STATUS_SIDE: u32 = 16389; +pub const MCI_VD_STATUS_DISC_SIZE: u32 = 16390; +pub const MCI_VD_GETDEVCAPS_CLV: u32 = 65536; +pub const MCI_VD_GETDEVCAPS_CAV: u32 = 131072; +pub const MCI_VD_SPIN_UP: u32 = 65536; +pub const MCI_VD_SPIN_DOWN: u32 = 131072; +pub const MCI_VD_GETDEVCAPS_CAN_REVERSE: u32 = 16386; +pub const MCI_VD_GETDEVCAPS_FAST_RATE: u32 = 16387; +pub const MCI_VD_GETDEVCAPS_SLOW_RATE: u32 = 16388; +pub const MCI_VD_GETDEVCAPS_NORMAL_RATE: u32 = 16389; +pub const MCI_VD_STEP_FRAMES: u32 = 65536; +pub const MCI_VD_STEP_REVERSE: u32 = 131072; +pub const MCI_VD_ESCAPE_STRING: u32 = 256; +pub const MCI_CDA_STATUS_TYPE_TRACK: u32 = 16385; +pub const MCI_CDA_TRACK_AUDIO: u32 = 1088; +pub const MCI_CDA_TRACK_OTHER: u32 = 1089; +pub const MCI_WAVE_PCM: u32 = 1152; +pub const MCI_WAVE_MAPPER: u32 = 1153; +pub const MCI_WAVE_OPEN_BUFFER: u32 = 65536; +pub const MCI_WAVE_SET_FORMATTAG: u32 = 65536; +pub const MCI_WAVE_SET_CHANNELS: u32 = 131072; +pub const MCI_WAVE_SET_SAMPLESPERSEC: u32 = 262144; +pub const MCI_WAVE_SET_AVGBYTESPERSEC: u32 = 524288; +pub const MCI_WAVE_SET_BLOCKALIGN: u32 = 1048576; +pub const MCI_WAVE_SET_BITSPERSAMPLE: u32 = 2097152; +pub const MCI_WAVE_INPUT: u32 = 4194304; +pub const MCI_WAVE_OUTPUT: u32 = 8388608; +pub const MCI_WAVE_STATUS_FORMATTAG: u32 = 16385; +pub const MCI_WAVE_STATUS_CHANNELS: u32 = 16386; +pub const MCI_WAVE_STATUS_SAMPLESPERSEC: u32 = 16387; +pub const MCI_WAVE_STATUS_AVGBYTESPERSEC: u32 = 16388; +pub const MCI_WAVE_STATUS_BLOCKALIGN: u32 = 16389; +pub const MCI_WAVE_STATUS_BITSPERSAMPLE: u32 = 16390; +pub const MCI_WAVE_STATUS_LEVEL: u32 = 16391; +pub const MCI_WAVE_SET_ANYINPUT: u32 = 67108864; +pub const MCI_WAVE_SET_ANYOUTPUT: u32 = 134217728; +pub const MCI_WAVE_GETDEVCAPS_INPUTS: u32 = 16385; +pub const MCI_WAVE_GETDEVCAPS_OUTPUTS: u32 = 16386; +pub const MCI_SEQ_DIV_PPQN: u32 = 1216; +pub const MCI_SEQ_DIV_SMPTE_24: u32 = 1217; +pub const MCI_SEQ_DIV_SMPTE_25: u32 = 1218; +pub const MCI_SEQ_DIV_SMPTE_30DROP: u32 = 1219; +pub const MCI_SEQ_DIV_SMPTE_30: u32 = 1220; +pub const MCI_SEQ_FORMAT_SONGPTR: u32 = 16385; +pub const MCI_SEQ_FILE: u32 = 16386; +pub const MCI_SEQ_MIDI: u32 = 16387; +pub const MCI_SEQ_SMPTE: u32 = 16388; +pub const MCI_SEQ_NONE: u32 = 65533; +pub const MCI_SEQ_MAPPER: u32 = 65535; +pub const MCI_SEQ_STATUS_TEMPO: u32 = 16386; +pub const MCI_SEQ_STATUS_PORT: u32 = 16387; +pub const MCI_SEQ_STATUS_SLAVE: u32 = 16391; +pub const MCI_SEQ_STATUS_MASTER: u32 = 16392; +pub const MCI_SEQ_STATUS_OFFSET: u32 = 16393; +pub const MCI_SEQ_STATUS_DIVTYPE: u32 = 16394; +pub const MCI_SEQ_STATUS_NAME: u32 = 16395; +pub const MCI_SEQ_STATUS_COPYRIGHT: u32 = 16396; +pub const MCI_SEQ_SET_TEMPO: u32 = 65536; +pub const MCI_SEQ_SET_PORT: u32 = 131072; +pub const MCI_SEQ_SET_SLAVE: u32 = 262144; +pub const MCI_SEQ_SET_MASTER: u32 = 524288; +pub const MCI_SEQ_SET_OFFSET: u32 = 16777216; +pub const MCI_ANIM_OPEN_WS: u32 = 65536; +pub const MCI_ANIM_OPEN_PARENT: u32 = 131072; +pub const MCI_ANIM_OPEN_NOSTATIC: u32 = 262144; +pub const MCI_ANIM_PLAY_SPEED: u32 = 65536; +pub const MCI_ANIM_PLAY_REVERSE: u32 = 131072; +pub const MCI_ANIM_PLAY_FAST: u32 = 262144; +pub const MCI_ANIM_PLAY_SLOW: u32 = 524288; +pub const MCI_ANIM_PLAY_SCAN: u32 = 1048576; +pub const MCI_ANIM_STEP_REVERSE: u32 = 65536; +pub const MCI_ANIM_STEP_FRAMES: u32 = 131072; +pub const MCI_ANIM_STATUS_SPEED: u32 = 16385; +pub const MCI_ANIM_STATUS_FORWARD: u32 = 16386; +pub const MCI_ANIM_STATUS_HWND: u32 = 16387; +pub const MCI_ANIM_STATUS_HPAL: u32 = 16388; +pub const MCI_ANIM_STATUS_STRETCH: u32 = 16389; +pub const MCI_ANIM_INFO_TEXT: u32 = 65536; +pub const MCI_ANIM_GETDEVCAPS_CAN_REVERSE: u32 = 16385; +pub const MCI_ANIM_GETDEVCAPS_FAST_RATE: u32 = 16386; +pub const MCI_ANIM_GETDEVCAPS_SLOW_RATE: u32 = 16387; +pub const MCI_ANIM_GETDEVCAPS_NORMAL_RATE: u32 = 16388; +pub const MCI_ANIM_GETDEVCAPS_PALETTES: u32 = 16390; +pub const MCI_ANIM_GETDEVCAPS_CAN_STRETCH: u32 = 16391; +pub const MCI_ANIM_GETDEVCAPS_MAX_WINDOWS: u32 = 16392; +pub const MCI_ANIM_REALIZE_NORM: u32 = 65536; +pub const MCI_ANIM_REALIZE_BKGD: u32 = 131072; +pub const MCI_ANIM_WINDOW_HWND: u32 = 65536; +pub const MCI_ANIM_WINDOW_STATE: u32 = 262144; +pub const MCI_ANIM_WINDOW_TEXT: u32 = 524288; +pub const MCI_ANIM_WINDOW_ENABLE_STRETCH: u32 = 1048576; +pub const MCI_ANIM_WINDOW_DISABLE_STRETCH: u32 = 2097152; +pub const MCI_ANIM_WINDOW_DEFAULT: u32 = 0; +pub const MCI_ANIM_RECT: u32 = 65536; +pub const MCI_ANIM_PUT_SOURCE: u32 = 131072; +pub const MCI_ANIM_PUT_DESTINATION: u32 = 262144; +pub const MCI_ANIM_WHERE_SOURCE: u32 = 131072; +pub const MCI_ANIM_WHERE_DESTINATION: u32 = 262144; +pub const MCI_ANIM_UPDATE_HDC: u32 = 131072; +pub const MCI_OVLY_OPEN_WS: u32 = 65536; +pub const MCI_OVLY_OPEN_PARENT: u32 = 131072; +pub const MCI_OVLY_STATUS_HWND: u32 = 16385; +pub const MCI_OVLY_STATUS_STRETCH: u32 = 16386; +pub const MCI_OVLY_INFO_TEXT: u32 = 65536; +pub const MCI_OVLY_GETDEVCAPS_CAN_STRETCH: u32 = 16385; +pub const MCI_OVLY_GETDEVCAPS_CAN_FREEZE: u32 = 16386; +pub const MCI_OVLY_GETDEVCAPS_MAX_WINDOWS: u32 = 16387; +pub const MCI_OVLY_WINDOW_HWND: u32 = 65536; +pub const MCI_OVLY_WINDOW_STATE: u32 = 262144; +pub const MCI_OVLY_WINDOW_TEXT: u32 = 524288; +pub const MCI_OVLY_WINDOW_ENABLE_STRETCH: u32 = 1048576; +pub const MCI_OVLY_WINDOW_DISABLE_STRETCH: u32 = 2097152; +pub const MCI_OVLY_WINDOW_DEFAULT: u32 = 0; +pub const MCI_OVLY_RECT: u32 = 65536; +pub const MCI_OVLY_PUT_SOURCE: u32 = 131072; +pub const MCI_OVLY_PUT_DESTINATION: u32 = 262144; +pub const MCI_OVLY_PUT_FRAME: u32 = 524288; +pub const MCI_OVLY_PUT_VIDEO: u32 = 1048576; +pub const MCI_OVLY_WHERE_SOURCE: u32 = 131072; +pub const MCI_OVLY_WHERE_DESTINATION: u32 = 262144; +pub const MCI_OVLY_WHERE_FRAME: u32 = 524288; +pub const MCI_OVLY_WHERE_VIDEO: u32 = 1048576; +pub const DRV_LOAD: u32 = 1; +pub const DRV_ENABLE: u32 = 2; +pub const DRV_OPEN: u32 = 3; +pub const DRV_CLOSE: u32 = 4; +pub const DRV_DISABLE: u32 = 5; +pub const DRV_FREE: u32 = 6; +pub const DRV_CONFIGURE: u32 = 7; +pub const DRV_QUERYCONFIGURE: u32 = 8; +pub const DRV_INSTALL: u32 = 9; +pub const DRV_REMOVE: u32 = 10; +pub const DRV_EXITSESSION: u32 = 11; +pub const DRV_POWER: u32 = 15; +pub const DRV_RESERVED: u32 = 2048; +pub const DRV_USER: u32 = 16384; +pub const DRVCNF_CANCEL: u32 = 0; +pub const DRVCNF_OK: u32 = 1; +pub const DRVCNF_RESTART: u32 = 2; +pub const DRV_CANCEL: u32 = 0; +pub const DRV_OK: u32 = 1; +pub const DRV_RESTART: u32 = 2; +pub const DRV_MCI_FIRST: u32 = 2048; +pub const DRV_MCI_LAST: u32 = 6143; +pub const MMIOERR_BASE: u32 = 256; +pub const MMIOERR_FILENOTFOUND: u32 = 257; +pub const MMIOERR_OUTOFMEMORY: u32 = 258; +pub const MMIOERR_CANNOTOPEN: u32 = 259; +pub const MMIOERR_CANNOTCLOSE: u32 = 260; +pub const MMIOERR_CANNOTREAD: u32 = 261; +pub const MMIOERR_CANNOTWRITE: u32 = 262; +pub const MMIOERR_CANNOTSEEK: u32 = 263; +pub const MMIOERR_CANNOTEXPAND: u32 = 264; +pub const MMIOERR_CHUNKNOTFOUND: u32 = 265; +pub const MMIOERR_UNBUFFERED: u32 = 266; +pub const MMIOERR_PATHNOTFOUND: u32 = 267; +pub const MMIOERR_ACCESSDENIED: u32 = 268; +pub const MMIOERR_SHARINGVIOLATION: u32 = 269; +pub const MMIOERR_NETWORKERROR: u32 = 270; +pub const MMIOERR_TOOMANYOPENFILES: u32 = 271; +pub const MMIOERR_INVALIDFILE: u32 = 272; +pub const CFSEPCHAR: u8 = 43u8; +pub const MMIO_RWMODE: u32 = 3; +pub const MMIO_SHAREMODE: u32 = 112; +pub const MMIO_CREATE: u32 = 4096; +pub const MMIO_PARSE: u32 = 256; +pub const MMIO_DELETE: u32 = 512; +pub const MMIO_EXIST: u32 = 16384; +pub const MMIO_ALLOCBUF: u32 = 65536; +pub const MMIO_GETTEMP: u32 = 131072; +pub const MMIO_DIRTY: u32 = 268435456; +pub const MMIO_READ: u32 = 0; +pub const MMIO_WRITE: u32 = 1; +pub const MMIO_READWRITE: u32 = 2; +pub const MMIO_COMPAT: u32 = 0; +pub const MMIO_EXCLUSIVE: u32 = 16; +pub const MMIO_DENYWRITE: u32 = 32; +pub const MMIO_DENYREAD: u32 = 48; +pub const MMIO_DENYNONE: u32 = 64; +pub const MMIO_FHOPEN: u32 = 16; +pub const MMIO_EMPTYBUF: u32 = 16; +pub const MMIO_TOUPPER: u32 = 16; +pub const MMIO_INSTALLPROC: u32 = 65536; +pub const MMIO_GLOBALPROC: u32 = 268435456; +pub const MMIO_REMOVEPROC: u32 = 131072; +pub const MMIO_UNICODEPROC: u32 = 16777216; +pub const MMIO_FINDPROC: u32 = 262144; +pub const MMIO_FINDCHUNK: u32 = 16; +pub const MMIO_FINDRIFF: u32 = 32; +pub const MMIO_FINDLIST: u32 = 64; +pub const MMIO_CREATERIFF: u32 = 32; +pub const MMIO_CREATELIST: u32 = 64; +pub const MMIOM_READ: u32 = 0; +pub const MMIOM_WRITE: u32 = 1; +pub const MMIOM_SEEK: u32 = 2; +pub const MMIOM_OPEN: u32 = 3; +pub const MMIOM_CLOSE: u32 = 4; +pub const MMIOM_WRITEFLUSH: u32 = 5; +pub const MMIOM_RENAME: u32 = 6; +pub const MMIOM_USER: u32 = 32768; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const MMIO_DEFAULTBUFFER: u32 = 8192; +pub const TIME_ONESHOT: u32 = 0; +pub const TIME_PERIODIC: u32 = 1; +pub const TIME_CALLBACK_FUNCTION: u32 = 0; +pub const TIME_CALLBACK_EVENT_SET: u32 = 16; +pub const TIME_CALLBACK_EVENT_PULSE: u32 = 32; +pub const TIME_KILL_SYNCHRONOUS: u32 = 256; +pub const SND_SYNC: u32 = 0; +pub const SND_ASYNC: u32 = 1; +pub const SND_NODEFAULT: u32 = 2; +pub const SND_MEMORY: u32 = 4; +pub const SND_LOOP: u32 = 8; +pub const SND_NOSTOP: u32 = 16; +pub const SND_NOWAIT: u32 = 8192; +pub const SND_ALIAS: u32 = 65536; +pub const SND_ALIAS_ID: u32 = 1114112; +pub const SND_FILENAME: u32 = 131072; +pub const SND_RESOURCE: u32 = 262148; +pub const SND_PURGE: u32 = 64; +pub const SND_APPLICATION: u32 = 128; +pub const SND_SENTRY: u32 = 524288; +pub const SND_RING: u32 = 1048576; +pub const SND_SYSTEM: u32 = 2097152; +pub const SND_ALIAS_START: u32 = 0; +pub const WAVERR_BADFORMAT: u32 = 32; +pub const WAVERR_STILLPLAYING: u32 = 33; +pub const WAVERR_UNPREPARED: u32 = 34; +pub const WAVERR_SYNC: u32 = 35; +pub const WAVERR_LASTERROR: u32 = 35; +pub const WOM_OPEN: u32 = 955; +pub const WOM_CLOSE: u32 = 956; +pub const WOM_DONE: u32 = 957; +pub const WIM_OPEN: u32 = 958; +pub const WIM_CLOSE: u32 = 959; +pub const WIM_DATA: u32 = 960; +pub const WAVE_FORMAT_QUERY: u32 = 1; +pub const WAVE_ALLOWSYNC: u32 = 2; +pub const WAVE_MAPPED: u32 = 4; +pub const WAVE_FORMAT_DIRECT: u32 = 8; +pub const WAVE_FORMAT_DIRECT_QUERY: u32 = 9; +pub const WAVE_MAPPED_DEFAULT_COMMUNICATION_DEVICE: u32 = 16; +pub const WHDR_DONE: u32 = 1; +pub const WHDR_PREPARED: u32 = 2; +pub const WHDR_BEGINLOOP: u32 = 4; +pub const WHDR_ENDLOOP: u32 = 8; +pub const WHDR_INQUEUE: u32 = 16; +pub const WAVECAPS_PITCH: u32 = 1; +pub const WAVECAPS_PLAYBACKRATE: u32 = 2; +pub const WAVECAPS_VOLUME: u32 = 4; +pub const WAVECAPS_LRVOLUME: u32 = 8; +pub const WAVECAPS_SYNC: u32 = 16; +pub const WAVECAPS_SAMPLEACCURATE: u32 = 32; +pub const WAVE_INVALIDFORMAT: u32 = 0; +pub const WAVE_FORMAT_1M08: u32 = 1; +pub const WAVE_FORMAT_1S08: u32 = 2; +pub const WAVE_FORMAT_1M16: u32 = 4; +pub const WAVE_FORMAT_1S16: u32 = 8; +pub const WAVE_FORMAT_2M08: u32 = 16; +pub const WAVE_FORMAT_2S08: u32 = 32; +pub const WAVE_FORMAT_2M16: u32 = 64; +pub const WAVE_FORMAT_2S16: u32 = 128; +pub const WAVE_FORMAT_4M08: u32 = 256; +pub const WAVE_FORMAT_4S08: u32 = 512; +pub const WAVE_FORMAT_4M16: u32 = 1024; +pub const WAVE_FORMAT_4S16: u32 = 2048; +pub const WAVE_FORMAT_44M08: u32 = 256; +pub const WAVE_FORMAT_44S08: u32 = 512; +pub const WAVE_FORMAT_44M16: u32 = 1024; +pub const WAVE_FORMAT_44S16: u32 = 2048; +pub const WAVE_FORMAT_48M08: u32 = 4096; +pub const WAVE_FORMAT_48S08: u32 = 8192; +pub const WAVE_FORMAT_48M16: u32 = 16384; +pub const WAVE_FORMAT_48S16: u32 = 32768; +pub const WAVE_FORMAT_96M08: u32 = 65536; +pub const WAVE_FORMAT_96S08: u32 = 131072; +pub const WAVE_FORMAT_96M16: u32 = 262144; +pub const WAVE_FORMAT_96S16: u32 = 524288; +pub const WAVE_FORMAT_PCM: u32 = 1; +pub const MIDIERR_UNPREPARED: u32 = 64; +pub const MIDIERR_STILLPLAYING: u32 = 65; +pub const MIDIERR_NOMAP: u32 = 66; +pub const MIDIERR_NOTREADY: u32 = 67; +pub const MIDIERR_NODEVICE: u32 = 68; +pub const MIDIERR_INVALIDSETUP: u32 = 69; +pub const MIDIERR_BADOPENMODE: u32 = 70; +pub const MIDIERR_DONT_CONTINUE: u32 = 71; +pub const MIDIERR_LASTERROR: u32 = 71; +pub const MIDIPATCHSIZE: u32 = 128; +pub const MIM_OPEN: u32 = 961; +pub const MIM_CLOSE: u32 = 962; +pub const MIM_DATA: u32 = 963; +pub const MIM_LONGDATA: u32 = 964; +pub const MIM_ERROR: u32 = 965; +pub const MIM_LONGERROR: u32 = 966; +pub const MOM_OPEN: u32 = 967; +pub const MOM_CLOSE: u32 = 968; +pub const MOM_DONE: u32 = 969; +pub const MIM_MOREDATA: u32 = 972; +pub const MOM_POSITIONCB: u32 = 970; +pub const MIDI_IO_STATUS: u32 = 32; +pub const MIDI_CACHE_ALL: u32 = 1; +pub const MIDI_CACHE_BESTFIT: u32 = 2; +pub const MIDI_CACHE_QUERY: u32 = 3; +pub const MIDI_UNCACHE: u32 = 4; +pub const MOD_MIDIPORT: u32 = 1; +pub const MOD_SYNTH: u32 = 2; +pub const MOD_SQSYNTH: u32 = 3; +pub const MOD_FMSYNTH: u32 = 4; +pub const MOD_MAPPER: u32 = 5; +pub const MOD_WAVETABLE: u32 = 6; +pub const MOD_SWSYNTH: u32 = 7; +pub const MIDICAPS_VOLUME: u32 = 1; +pub const MIDICAPS_LRVOLUME: u32 = 2; +pub const MIDICAPS_CACHE: u32 = 4; +pub const MIDICAPS_STREAM: u32 = 8; +pub const MHDR_DONE: u32 = 1; +pub const MHDR_PREPARED: u32 = 2; +pub const MHDR_INQUEUE: u32 = 4; +pub const MHDR_ISSTRM: u32 = 8; +pub const MEVT_F_SHORT: u32 = 0; +pub const MEVT_F_LONG: u32 = 2147483648; +pub const MEVT_F_CALLBACK: u32 = 1073741824; +pub const MIDISTRM_ERROR: i32 = -2; +pub const MIDIPROP_SET: u32 = 2147483648; +pub const MIDIPROP_GET: u32 = 1073741824; +pub const MIDIPROP_TIMEDIV: u32 = 1; +pub const MIDIPROP_TEMPO: u32 = 2; +pub const AUXCAPS_CDAUDIO: u32 = 1; +pub const AUXCAPS_AUXIN: u32 = 2; +pub const AUXCAPS_VOLUME: u32 = 1; +pub const AUXCAPS_LRVOLUME: u32 = 2; +pub const MIXER_SHORT_NAME_CHARS: u32 = 16; +pub const MIXER_LONG_NAME_CHARS: u32 = 64; +pub const MIXERR_INVALLINE: u32 = 1024; +pub const MIXERR_INVALCONTROL: u32 = 1025; +pub const MIXERR_INVALVALUE: u32 = 1026; +pub const MIXERR_LASTERROR: u32 = 1026; +pub const MIXER_OBJECTF_HANDLE: u32 = 2147483648; +pub const MIXER_OBJECTF_MIXER: u32 = 0; +pub const MIXER_OBJECTF_HMIXER: u32 = 2147483648; +pub const MIXER_OBJECTF_WAVEOUT: u32 = 268435456; +pub const MIXER_OBJECTF_HWAVEOUT: u32 = 2415919104; +pub const MIXER_OBJECTF_WAVEIN: u32 = 536870912; +pub const MIXER_OBJECTF_HWAVEIN: u32 = 2684354560; +pub const MIXER_OBJECTF_MIDIOUT: u32 = 805306368; +pub const MIXER_OBJECTF_HMIDIOUT: u32 = 2952790016; +pub const MIXER_OBJECTF_MIDIIN: u32 = 1073741824; +pub const MIXER_OBJECTF_HMIDIIN: u32 = 3221225472; +pub const MIXER_OBJECTF_AUX: u32 = 1342177280; +pub const MIXERLINE_LINEF_ACTIVE: u32 = 1; +pub const MIXERLINE_LINEF_DISCONNECTED: u32 = 32768; +pub const MIXERLINE_LINEF_SOURCE: u32 = 2147483648; +pub const MIXERLINE_COMPONENTTYPE_DST_FIRST: u32 = 0; +pub const MIXERLINE_COMPONENTTYPE_DST_UNDEFINED: u32 = 0; +pub const MIXERLINE_COMPONENTTYPE_DST_DIGITAL: u32 = 1; +pub const MIXERLINE_COMPONENTTYPE_DST_LINE: u32 = 2; +pub const MIXERLINE_COMPONENTTYPE_DST_MONITOR: u32 = 3; +pub const MIXERLINE_COMPONENTTYPE_DST_SPEAKERS: u32 = 4; +pub const MIXERLINE_COMPONENTTYPE_DST_HEADPHONES: u32 = 5; +pub const MIXERLINE_COMPONENTTYPE_DST_TELEPHONE: u32 = 6; +pub const MIXERLINE_COMPONENTTYPE_DST_WAVEIN: u32 = 7; +pub const MIXERLINE_COMPONENTTYPE_DST_VOICEIN: u32 = 8; +pub const MIXERLINE_COMPONENTTYPE_DST_LAST: u32 = 8; +pub const MIXERLINE_COMPONENTTYPE_SRC_FIRST: u32 = 4096; +pub const MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED: u32 = 4096; +pub const MIXERLINE_COMPONENTTYPE_SRC_DIGITAL: u32 = 4097; +pub const MIXERLINE_COMPONENTTYPE_SRC_LINE: u32 = 4098; +pub const MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE: u32 = 4099; +pub const MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER: u32 = 4100; +pub const MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC: u32 = 4101; +pub const MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE: u32 = 4102; +pub const MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER: u32 = 4103; +pub const MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT: u32 = 4104; +pub const MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY: u32 = 4105; +pub const MIXERLINE_COMPONENTTYPE_SRC_ANALOG: u32 = 4106; +pub const MIXERLINE_COMPONENTTYPE_SRC_LAST: u32 = 4106; +pub const MIXERLINE_TARGETTYPE_UNDEFINED: u32 = 0; +pub const MIXERLINE_TARGETTYPE_WAVEOUT: u32 = 1; +pub const MIXERLINE_TARGETTYPE_WAVEIN: u32 = 2; +pub const MIXERLINE_TARGETTYPE_MIDIOUT: u32 = 3; +pub const MIXERLINE_TARGETTYPE_MIDIIN: u32 = 4; +pub const MIXERLINE_TARGETTYPE_AUX: u32 = 5; +pub const MIXER_GETLINEINFOF_DESTINATION: u32 = 0; +pub const MIXER_GETLINEINFOF_SOURCE: u32 = 1; +pub const MIXER_GETLINEINFOF_LINEID: u32 = 2; +pub const MIXER_GETLINEINFOF_COMPONENTTYPE: u32 = 3; +pub const MIXER_GETLINEINFOF_TARGETTYPE: u32 = 4; +pub const MIXER_GETLINEINFOF_QUERYMASK: u32 = 15; +pub const MIXERCONTROL_CONTROLF_UNIFORM: u32 = 1; +pub const MIXERCONTROL_CONTROLF_MULTIPLE: u32 = 2; +pub const MIXERCONTROL_CONTROLF_DISABLED: u32 = 2147483648; +pub const MIXERCONTROL_CT_CLASS_MASK: u32 = 4026531840; +pub const MIXERCONTROL_CT_CLASS_CUSTOM: u32 = 0; +pub const MIXERCONTROL_CT_CLASS_METER: u32 = 268435456; +pub const MIXERCONTROL_CT_CLASS_SWITCH: u32 = 536870912; +pub const MIXERCONTROL_CT_CLASS_NUMBER: u32 = 805306368; +pub const MIXERCONTROL_CT_CLASS_SLIDER: u32 = 1073741824; +pub const MIXERCONTROL_CT_CLASS_FADER: u32 = 1342177280; +pub const MIXERCONTROL_CT_CLASS_TIME: u32 = 1610612736; +pub const MIXERCONTROL_CT_CLASS_LIST: u32 = 1879048192; +pub const MIXERCONTROL_CT_SUBCLASS_MASK: u32 = 251658240; +pub const MIXERCONTROL_CT_SC_SWITCH_BOOLEAN: u32 = 0; +pub const MIXERCONTROL_CT_SC_SWITCH_BUTTON: u32 = 16777216; +pub const MIXERCONTROL_CT_SC_METER_POLLED: u32 = 0; +pub const MIXERCONTROL_CT_SC_TIME_MICROSECS: u32 = 0; +pub const MIXERCONTROL_CT_SC_TIME_MILLISECS: u32 = 16777216; +pub const MIXERCONTROL_CT_SC_LIST_SINGLE: u32 = 0; +pub const MIXERCONTROL_CT_SC_LIST_MULTIPLE: u32 = 16777216; +pub const MIXERCONTROL_CT_UNITS_MASK: u32 = 16711680; +pub const MIXERCONTROL_CT_UNITS_CUSTOM: u32 = 0; +pub const MIXERCONTROL_CT_UNITS_BOOLEAN: u32 = 65536; +pub const MIXERCONTROL_CT_UNITS_SIGNED: u32 = 131072; +pub const MIXERCONTROL_CT_UNITS_UNSIGNED: u32 = 196608; +pub const MIXERCONTROL_CT_UNITS_DECIBELS: u32 = 262144; +pub const MIXERCONTROL_CT_UNITS_PERCENT: u32 = 327680; +pub const MIXERCONTROL_CONTROLTYPE_CUSTOM: u32 = 0; +pub const MIXERCONTROL_CONTROLTYPE_BOOLEANMETER: u32 = 268500992; +pub const MIXERCONTROL_CONTROLTYPE_SIGNEDMETER: u32 = 268566528; +pub const MIXERCONTROL_CONTROLTYPE_PEAKMETER: u32 = 268566529; +pub const MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER: u32 = 268632064; +pub const MIXERCONTROL_CONTROLTYPE_BOOLEAN: u32 = 536936448; +pub const MIXERCONTROL_CONTROLTYPE_ONOFF: u32 = 536936449; +pub const MIXERCONTROL_CONTROLTYPE_MUTE: u32 = 536936450; +pub const MIXERCONTROL_CONTROLTYPE_MONO: u32 = 536936451; +pub const MIXERCONTROL_CONTROLTYPE_LOUDNESS: u32 = 536936452; +pub const MIXERCONTROL_CONTROLTYPE_STEREOENH: u32 = 536936453; +pub const MIXERCONTROL_CONTROLTYPE_BASS_BOOST: u32 = 536945271; +pub const MIXERCONTROL_CONTROLTYPE_BUTTON: u32 = 553713664; +pub const MIXERCONTROL_CONTROLTYPE_DECIBELS: u32 = 805568512; +pub const MIXERCONTROL_CONTROLTYPE_SIGNED: u32 = 805437440; +pub const MIXERCONTROL_CONTROLTYPE_UNSIGNED: u32 = 805502976; +pub const MIXERCONTROL_CONTROLTYPE_PERCENT: u32 = 805634048; +pub const MIXERCONTROL_CONTROLTYPE_SLIDER: u32 = 1073872896; +pub const MIXERCONTROL_CONTROLTYPE_PAN: u32 = 1073872897; +pub const MIXERCONTROL_CONTROLTYPE_QSOUNDPAN: u32 = 1073872898; +pub const MIXERCONTROL_CONTROLTYPE_FADER: u32 = 1342373888; +pub const MIXERCONTROL_CONTROLTYPE_VOLUME: u32 = 1342373889; +pub const MIXERCONTROL_CONTROLTYPE_BASS: u32 = 1342373890; +pub const MIXERCONTROL_CONTROLTYPE_TREBLE: u32 = 1342373891; +pub const MIXERCONTROL_CONTROLTYPE_EQUALIZER: u32 = 1342373892; +pub const MIXERCONTROL_CONTROLTYPE_SINGLESELECT: u32 = 1879113728; +pub const MIXERCONTROL_CONTROLTYPE_MUX: u32 = 1879113729; +pub const MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT: u32 = 1895890944; +pub const MIXERCONTROL_CONTROLTYPE_MIXER: u32 = 1895890945; +pub const MIXERCONTROL_CONTROLTYPE_MICROTIME: u32 = 1610809344; +pub const MIXERCONTROL_CONTROLTYPE_MILLITIME: u32 = 1627586560; +pub const MIXER_GETLINECONTROLSF_ALL: u32 = 0; +pub const MIXER_GETLINECONTROLSF_ONEBYID: u32 = 1; +pub const MIXER_GETLINECONTROLSF_ONEBYTYPE: u32 = 2; +pub const MIXER_GETLINECONTROLSF_QUERYMASK: u32 = 15; +pub const MIXER_GETCONTROLDETAILSF_VALUE: u32 = 0; +pub const MIXER_GETCONTROLDETAILSF_LISTTEXT: u32 = 1; +pub const MIXER_GETCONTROLDETAILSF_QUERYMASK: u32 = 15; +pub const MIXER_SETCONTROLDETAILSF_VALUE: u32 = 0; +pub const MIXER_SETCONTROLDETAILSF_CUSTOM: u32 = 1; +pub const MIXER_SETCONTROLDETAILSF_QUERYMASK: u32 = 15; +pub const TIMERR_NOERROR: u32 = 0; +pub const TIMERR_NOCANDO: u32 = 97; +pub const TIMERR_STRUCT: u32 = 129; +pub const JOYERR_NOERROR: u32 = 0; +pub const JOYERR_PARMS: u32 = 165; +pub const JOYERR_NOCANDO: u32 = 166; +pub const JOYERR_UNPLUGGED: u32 = 167; +pub const JOY_BUTTON1: u32 = 1; +pub const JOY_BUTTON2: u32 = 2; +pub const JOY_BUTTON3: u32 = 4; +pub const JOY_BUTTON4: u32 = 8; +pub const JOY_BUTTON1CHG: u32 = 256; +pub const JOY_BUTTON2CHG: u32 = 512; +pub const JOY_BUTTON3CHG: u32 = 1024; +pub const JOY_BUTTON4CHG: u32 = 2048; +pub const JOY_BUTTON5: u32 = 16; +pub const JOY_BUTTON6: u32 = 32; +pub const JOY_BUTTON7: u32 = 64; +pub const JOY_BUTTON8: u32 = 128; +pub const JOY_BUTTON9: u32 = 256; +pub const JOY_BUTTON10: u32 = 512; +pub const JOY_BUTTON11: u32 = 1024; +pub const JOY_BUTTON12: u32 = 2048; +pub const JOY_BUTTON13: u32 = 4096; +pub const JOY_BUTTON14: u32 = 8192; +pub const JOY_BUTTON15: u32 = 16384; +pub const JOY_BUTTON16: u32 = 32768; +pub const JOY_BUTTON17: u32 = 65536; +pub const JOY_BUTTON18: u32 = 131072; +pub const JOY_BUTTON19: u32 = 262144; +pub const JOY_BUTTON20: u32 = 524288; +pub const JOY_BUTTON21: u32 = 1048576; +pub const JOY_BUTTON22: u32 = 2097152; +pub const JOY_BUTTON23: u32 = 4194304; +pub const JOY_BUTTON24: u32 = 8388608; +pub const JOY_BUTTON25: u32 = 16777216; +pub const JOY_BUTTON26: u32 = 33554432; +pub const JOY_BUTTON27: u32 = 67108864; +pub const JOY_BUTTON28: u32 = 134217728; +pub const JOY_BUTTON29: u32 = 268435456; +pub const JOY_BUTTON30: u32 = 536870912; +pub const JOY_BUTTON31: u32 = 1073741824; +pub const JOY_BUTTON32: u32 = 2147483648; +pub const JOY_POVFORWARD: u32 = 0; +pub const JOY_POVRIGHT: u32 = 9000; +pub const JOY_POVBACKWARD: u32 = 18000; +pub const JOY_POVLEFT: u32 = 27000; +pub const JOY_RETURNX: u32 = 1; +pub const JOY_RETURNY: u32 = 2; +pub const JOY_RETURNZ: u32 = 4; +pub const JOY_RETURNR: u32 = 8; +pub const JOY_RETURNU: u32 = 16; +pub const JOY_RETURNV: u32 = 32; +pub const JOY_RETURNPOV: u32 = 64; +pub const JOY_RETURNBUTTONS: u32 = 128; +pub const JOY_RETURNRAWDATA: u32 = 256; +pub const JOY_RETURNPOVCTS: u32 = 512; +pub const JOY_RETURNCENTERED: u32 = 1024; +pub const JOY_USEDEADZONE: u32 = 2048; +pub const JOY_RETURNALL: u32 = 255; +pub const JOY_CAL_READALWAYS: u32 = 65536; +pub const JOY_CAL_READXYONLY: u32 = 131072; +pub const JOY_CAL_READ3: u32 = 262144; +pub const JOY_CAL_READ4: u32 = 524288; +pub const JOY_CAL_READXONLY: u32 = 1048576; +pub const JOY_CAL_READYONLY: u32 = 2097152; +pub const JOY_CAL_READ5: u32 = 4194304; +pub const JOY_CAL_READ6: u32 = 8388608; +pub const JOY_CAL_READZONLY: u32 = 16777216; +pub const JOY_CAL_READRONLY: u32 = 33554432; +pub const JOY_CAL_READUONLY: u32 = 67108864; +pub const JOY_CAL_READVONLY: u32 = 134217728; +pub const JOYSTICKID1: u32 = 0; +pub const JOYSTICKID2: u32 = 1; +pub const JOYCAPS_HASZ: u32 = 1; +pub const JOYCAPS_HASR: u32 = 2; +pub const JOYCAPS_HASU: u32 = 4; +pub const JOYCAPS_HASV: u32 = 8; +pub const JOYCAPS_HASPOV: u32 = 16; +pub const JOYCAPS_POV4DIR: u32 = 32; +pub const JOYCAPS_POVCTS: u32 = 64; +pub const NEWTRANSPARENT: u32 = 3; +pub const QUERYROPSUPPORT: u32 = 40; +pub const SELECTDIB: u32 = 41; +pub const NCBNAMSZ: u32 = 16; +pub const MAX_LANA: u32 = 254; +pub const NAME_FLAGS_MASK: u32 = 135; +pub const GROUP_NAME: u32 = 128; +pub const UNIQUE_NAME: u32 = 0; +pub const REGISTERING: u32 = 0; +pub const REGISTERED: u32 = 4; +pub const DEREGISTERED: u32 = 5; +pub const DUPLICATE: u32 = 6; +pub const DUPLICATE_DEREG: u32 = 7; +pub const LISTEN_OUTSTANDING: u32 = 1; +pub const CALL_PENDING: u32 = 2; +pub const SESSION_ESTABLISHED: u32 = 3; +pub const HANGUP_PENDING: u32 = 4; +pub const HANGUP_COMPLETE: u32 = 5; +pub const SESSION_ABORTED: u32 = 6; +pub const ALL_TRANSPORTS: &[u8; 5] = b"M\0\0\0\0"; +pub const MS_NBF: &[u8; 5] = b"MNBF\0"; +pub const NCBCALL: u32 = 16; +pub const NCBLISTEN: u32 = 17; +pub const NCBHANGUP: u32 = 18; +pub const NCBSEND: u32 = 20; +pub const NCBRECV: u32 = 21; +pub const NCBRECVANY: u32 = 22; +pub const NCBCHAINSEND: u32 = 23; +pub const NCBDGSEND: u32 = 32; +pub const NCBDGRECV: u32 = 33; +pub const NCBDGSENDBC: u32 = 34; +pub const NCBDGRECVBC: u32 = 35; +pub const NCBADDNAME: u32 = 48; +pub const NCBDELNAME: u32 = 49; +pub const NCBRESET: u32 = 50; +pub const NCBASTAT: u32 = 51; +pub const NCBSSTAT: u32 = 52; +pub const NCBCANCEL: u32 = 53; +pub const NCBADDGRNAME: u32 = 54; +pub const NCBENUM: u32 = 55; +pub const NCBUNLINK: u32 = 112; +pub const NCBSENDNA: u32 = 113; +pub const NCBCHAINSENDNA: u32 = 114; +pub const NCBLANSTALERT: u32 = 115; +pub const NCBACTION: u32 = 119; +pub const NCBFINDNAME: u32 = 120; +pub const NCBTRACE: u32 = 121; +pub const ASYNCH: u32 = 128; +pub const NRC_GOODRET: u32 = 0; +pub const NRC_BUFLEN: u32 = 1; +pub const NRC_ILLCMD: u32 = 3; +pub const NRC_CMDTMO: u32 = 5; +pub const NRC_INCOMP: u32 = 6; +pub const NRC_BADDR: u32 = 7; +pub const NRC_SNUMOUT: u32 = 8; +pub const NRC_NORES: u32 = 9; +pub const NRC_SCLOSED: u32 = 10; +pub const NRC_CMDCAN: u32 = 11; +pub const NRC_DUPNAME: u32 = 13; +pub const NRC_NAMTFUL: u32 = 14; +pub const NRC_ACTSES: u32 = 15; +pub const NRC_LOCTFUL: u32 = 17; +pub const NRC_REMTFUL: u32 = 18; +pub const NRC_ILLNN: u32 = 19; +pub const NRC_NOCALL: u32 = 20; +pub const NRC_NOWILD: u32 = 21; +pub const NRC_INUSE: u32 = 22; +pub const NRC_NAMERR: u32 = 23; +pub const NRC_SABORT: u32 = 24; +pub const NRC_NAMCONF: u32 = 25; +pub const NRC_IFBUSY: u32 = 33; +pub const NRC_TOOMANY: u32 = 34; +pub const NRC_BRIDGE: u32 = 35; +pub const NRC_CANOCCR: u32 = 36; +pub const NRC_CANCEL: u32 = 38; +pub const NRC_DUPENV: u32 = 48; +pub const NRC_ENVNOTDEF: u32 = 52; +pub const NRC_OSRESNOTAV: u32 = 53; +pub const NRC_MAXAPPS: u32 = 54; +pub const NRC_NOSAPS: u32 = 55; +pub const NRC_NORESOURCES: u32 = 56; +pub const NRC_INVADDRESS: u32 = 57; +pub const NRC_INVDDID: u32 = 59; +pub const NRC_LOCKFAIL: u32 = 60; +pub const NRC_OPENERR: u32 = 63; +pub const NRC_SYSTEM: u32 = 64; +pub const NRC_PENDING: u32 = 255; +pub const RPC_C_BINDING_INFINITE_TIMEOUT: u32 = 10; +pub const RPC_C_BINDING_MIN_TIMEOUT: u32 = 0; +pub const RPC_C_BINDING_DEFAULT_TIMEOUT: u32 = 5; +pub const RPC_C_BINDING_MAX_TIMEOUT: u32 = 9; +pub const RPC_C_CANCEL_INFINITE_TIMEOUT: i32 = -1; +pub const RPC_C_LISTEN_MAX_CALLS_DEFAULT: u32 = 1234; +pub const RPC_C_PROTSEQ_MAX_REQS_DEFAULT: u32 = 10; +pub const RPC_C_BIND_TO_ALL_NICS: u32 = 1; +pub const RPC_C_USE_INTERNET_PORT: u32 = 1; +pub const RPC_C_USE_INTRANET_PORT: u32 = 2; +pub const RPC_C_DONT_FAIL: u32 = 4; +pub const RPC_C_RPCHTTP_USE_LOAD_BALANCE: u32 = 8; +pub const RPC_C_TRY_ENFORCE_MAX_CALLS: u32 = 16; +pub const RPC_C_OPT_BINDING_NONCAUSAL: u32 = 9; +pub const RPC_C_OPT_SECURITY_CALLBACK: u32 = 10; +pub const RPC_C_OPT_UNIQUE_BINDING: u32 = 11; +pub const RPC_C_OPT_TRANS_SEND_BUFFER_SIZE: u32 = 5; +pub const RPC_C_OPT_CALL_TIMEOUT: u32 = 12; +pub const RPC_C_OPT_DONT_LINGER: u32 = 13; +pub const RPC_C_OPT_TRUST_PEER: u32 = 14; +pub const RPC_C_OPT_ASYNC_BLOCK: u32 = 15; +pub const RPC_C_OPT_OPTIMIZE_TIME: u32 = 16; +pub const RPC_C_OPT_MAX_OPTIONS: u32 = 17; +pub const RPC_C_FULL_CERT_CHAIN: u32 = 1; +pub const RPC_C_STATS_CALLS_IN: u32 = 0; +pub const RPC_C_STATS_CALLS_OUT: u32 = 1; +pub const RPC_C_STATS_PKTS_IN: u32 = 2; +pub const RPC_C_STATS_PKTS_OUT: u32 = 3; +pub const RPC_C_AUTHN_LEVEL_DEFAULT: u32 = 0; +pub const RPC_C_AUTHN_LEVEL_NONE: u32 = 1; +pub const RPC_C_AUTHN_LEVEL_CONNECT: u32 = 2; +pub const RPC_C_AUTHN_LEVEL_CALL: u32 = 3; +pub const RPC_C_AUTHN_LEVEL_PKT: u32 = 4; +pub const RPC_C_AUTHN_LEVEL_PKT_INTEGRITY: u32 = 5; +pub const RPC_C_AUTHN_LEVEL_PKT_PRIVACY: u32 = 6; +pub const RPC_C_IMP_LEVEL_DEFAULT: u32 = 0; +pub const RPC_C_IMP_LEVEL_ANONYMOUS: u32 = 1; +pub const RPC_C_IMP_LEVEL_IDENTIFY: u32 = 2; +pub const RPC_C_IMP_LEVEL_IMPERSONATE: u32 = 3; +pub const RPC_C_IMP_LEVEL_DELEGATE: u32 = 4; +pub const RPC_C_QOS_IDENTITY_STATIC: u32 = 0; +pub const RPC_C_QOS_IDENTITY_DYNAMIC: u32 = 1; +pub const RPC_C_QOS_CAPABILITIES_DEFAULT: u32 = 0; +pub const RPC_C_QOS_CAPABILITIES_MUTUAL_AUTH: u32 = 1; +pub const RPC_C_QOS_CAPABILITIES_MAKE_FULLSIC: u32 = 2; +pub const RPC_C_QOS_CAPABILITIES_ANY_AUTHORITY: u32 = 4; +pub const RPC_C_QOS_CAPABILITIES_IGNORE_DELEGATE_FAILURE: u32 = 8; +pub const RPC_C_QOS_CAPABILITIES_LOCAL_MA_HINT: u32 = 16; +pub const RPC_C_QOS_CAPABILITIES_SCHANNEL_FULL_AUTH_IDENTITY: u32 = 32; +pub const RPC_C_PROTECT_LEVEL_DEFAULT: u32 = 0; +pub const RPC_C_PROTECT_LEVEL_NONE: u32 = 1; +pub const RPC_C_PROTECT_LEVEL_CONNECT: u32 = 2; +pub const RPC_C_PROTECT_LEVEL_CALL: u32 = 3; +pub const RPC_C_PROTECT_LEVEL_PKT: u32 = 4; +pub const RPC_C_PROTECT_LEVEL_PKT_INTEGRITY: u32 = 5; +pub const RPC_C_PROTECT_LEVEL_PKT_PRIVACY: u32 = 6; +pub const RPC_C_AUTHN_NONE: u32 = 0; +pub const RPC_C_AUTHN_DCE_PRIVATE: u32 = 1; +pub const RPC_C_AUTHN_DCE_PUBLIC: u32 = 2; +pub const RPC_C_AUTHN_DEC_PUBLIC: u32 = 4; +pub const RPC_C_AUTHN_GSS_NEGOTIATE: u32 = 9; +pub const RPC_C_AUTHN_WINNT: u32 = 10; +pub const RPC_C_AUTHN_GSS_SCHANNEL: u32 = 14; +pub const RPC_C_AUTHN_GSS_KERBEROS: u32 = 16; +pub const RPC_C_AUTHN_DPA: u32 = 17; +pub const RPC_C_AUTHN_MSN: u32 = 18; +pub const RPC_C_AUTHN_DIGEST: u32 = 21; +pub const RPC_C_AUTHN_KERNEL: u32 = 20; +pub const RPC_C_AUTHN_NEGO_EXTENDER: u32 = 30; +pub const RPC_C_AUTHN_PKU2U: u32 = 31; +pub const RPC_C_AUTHN_LIVE_SSP: u32 = 32; +pub const RPC_C_AUTHN_LIVEXP_SSP: u32 = 35; +pub const RPC_C_AUTHN_CLOUD_AP: u32 = 36; +pub const RPC_C_AUTHN_MSONLINE: u32 = 82; +pub const RPC_C_AUTHN_MQ: u32 = 100; +pub const RPC_C_AUTHN_DEFAULT: u32 = 4294967295; +pub const RPC_C_SECURITY_QOS_VERSION: u32 = 1; +pub const RPC_C_SECURITY_QOS_VERSION_1: u32 = 1; +pub const SEC_WINNT_AUTH_IDENTITY_ANSI: u32 = 1; +pub const SEC_WINNT_AUTH_IDENTITY_UNICODE: u32 = 2; +pub const RPC_C_SECURITY_QOS_VERSION_2: u32 = 2; +pub const RPC_C_AUTHN_INFO_TYPE_HTTP: u32 = 1; +pub const RPC_C_HTTP_AUTHN_TARGET_SERVER: u32 = 1; +pub const RPC_C_HTTP_AUTHN_TARGET_PROXY: u32 = 2; +pub const RPC_C_HTTP_AUTHN_SCHEME_BASIC: u32 = 1; +pub const RPC_C_HTTP_AUTHN_SCHEME_NTLM: u32 = 2; +pub const RPC_C_HTTP_AUTHN_SCHEME_PASSPORT: u32 = 4; +pub const RPC_C_HTTP_AUTHN_SCHEME_DIGEST: u32 = 8; +pub const RPC_C_HTTP_AUTHN_SCHEME_NEGOTIATE: u32 = 16; +pub const RPC_C_HTTP_AUTHN_SCHEME_CERT: u32 = 65536; +pub const RPC_C_HTTP_FLAG_USE_SSL: u32 = 1; +pub const RPC_C_HTTP_FLAG_USE_FIRST_AUTH_SCHEME: u32 = 2; +pub const RPC_C_HTTP_FLAG_IGNORE_CERT_CN_INVALID: u32 = 8; +pub const RPC_C_HTTP_FLAG_ENABLE_CERT_REVOCATION_CHECK: u32 = 16; +pub const RPC_C_SECURITY_QOS_VERSION_3: u32 = 3; +pub const RPC_C_SECURITY_QOS_VERSION_4: u32 = 4; +pub const RPC_C_SECURITY_QOS_VERSION_5: u32 = 5; +pub const RPC_PROTSEQ_TCP: u32 = 1; +pub const RPC_PROTSEQ_NMP: u32 = 2; +pub const RPC_PROTSEQ_LRPC: u32 = 3; +pub const RPC_PROTSEQ_HTTP: u32 = 4; +pub const RPC_BHT_OBJECT_UUID_VALID: u32 = 1; +pub const RPC_BHO_NONCAUSAL: u32 = 1; +pub const RPC_BHO_DONTLINGER: u32 = 2; +pub const RPC_BHO_EXCLUSIVE_AND_GUARANTEED: u32 = 4; +pub const RPC_C_AUTHZ_NONE: u32 = 0; +pub const RPC_C_AUTHZ_NAME: u32 = 1; +pub const RPC_C_AUTHZ_DCE: u32 = 2; +pub const RPC_C_AUTHZ_DEFAULT: u32 = 4294967295; +pub const DCE_C_ERROR_STRING_LEN: u32 = 256; +pub const RPC_C_EP_ALL_ELTS: u32 = 0; +pub const RPC_C_EP_MATCH_BY_IF: u32 = 1; +pub const RPC_C_EP_MATCH_BY_OBJ: u32 = 2; +pub const RPC_C_EP_MATCH_BY_BOTH: u32 = 3; +pub const RPC_C_VERS_ALL: u32 = 1; +pub const RPC_C_VERS_COMPATIBLE: u32 = 2; +pub const RPC_C_VERS_EXACT: u32 = 3; +pub const RPC_C_VERS_MAJOR_ONLY: u32 = 4; +pub const RPC_C_VERS_UPTO: u32 = 5; +pub const RPC_C_MGMT_INQ_IF_IDS: u32 = 0; +pub const RPC_C_MGMT_INQ_PRINC_NAME: u32 = 1; +pub const RPC_C_MGMT_INQ_STATS: u32 = 2; +pub const RPC_C_MGMT_IS_SERVER_LISTEN: u32 = 3; +pub const RPC_C_MGMT_STOP_SERVER_LISTEN: u32 = 4; +pub const RPC_C_PARM_MAX_PACKET_LENGTH: u32 = 1; +pub const RPC_C_PARM_BUFFER_LENGTH: u32 = 2; +pub const RPC_IF_AUTOLISTEN: u32 = 1; +pub const RPC_IF_OLE: u32 = 2; +pub const RPC_IF_ALLOW_UNKNOWN_AUTHORITY: u32 = 4; +pub const RPC_IF_ALLOW_SECURE_ONLY: u32 = 8; +pub const RPC_IF_ALLOW_CALLBACKS_WITH_NO_AUTH: u32 = 16; +pub const RPC_IF_ALLOW_LOCAL_ONLY: u32 = 32; +pub const RPC_IF_SEC_NO_CACHE: u32 = 64; +pub const RPC_IF_SEC_CACHE_PER_PROC: u32 = 128; +pub const RPC_IF_ASYNC_CALLBACK: u32 = 256; +pub const RPC_FW_IF_FLAG_DCOM: u32 = 1; +pub const RPC_CONTEXT_HANDLE_DEFAULT_FLAGS: u32 = 0; +pub const RPC_CONTEXT_HANDLE_FLAGS: u32 = 805306368; +pub const RPC_CONTEXT_HANDLE_SERIALIZE: u32 = 268435456; +pub const RPC_CONTEXT_HANDLE_DONT_SERIALIZE: u32 = 536870912; +pub const RPC_TYPE_STRICT_CONTEXT_HANDLE: u32 = 1073741824; +pub const RPC_TYPE_DISCONNECT_EVENT_CONTEXT_HANDLE: u32 = 2147483648; +pub const RPC_NCA_FLAGS_DEFAULT: u32 = 0; +pub const RPC_NCA_FLAGS_IDEMPOTENT: u32 = 1; +pub const RPC_NCA_FLAGS_BROADCAST: u32 = 2; +pub const RPC_NCA_FLAGS_MAYBE: u32 = 4; +pub const RPCFLG_HAS_GUARANTEE: u32 = 16; +pub const RPCFLG_WINRT_REMOTE_ASYNC: u32 = 32; +pub const RPC_BUFFER_COMPLETE: u32 = 4096; +pub const RPC_BUFFER_PARTIAL: u32 = 8192; +pub const RPC_BUFFER_EXTRA: u32 = 16384; +pub const RPC_BUFFER_ASYNC: u32 = 32768; +pub const RPC_BUFFER_NONOTIFY: u32 = 65536; +pub const RPCFLG_MESSAGE: u32 = 16777216; +pub const RPCFLG_AUTO_COMPLETE: u32 = 134217728; +pub const RPCFLG_LOCAL_CALL: u32 = 268435456; +pub const RPCFLG_INPUT_SYNCHRONOUS: u32 = 536870912; +pub const RPCFLG_ASYNCHRONOUS: u32 = 1073741824; +pub const RPCFLG_NON_NDR: u32 = 2147483648; +pub const RPCFLG_HAS_MULTI_SYNTAXES: u32 = 33554432; +pub const RPCFLG_HAS_CALLBACK: u32 = 67108864; +pub const RPCFLG_ACCESSIBILITY_BIT1: u32 = 1048576; +pub const RPCFLG_ACCESSIBILITY_BIT2: u32 = 2097152; +pub const RPCFLG_ACCESS_LOCAL: u32 = 4194304; +pub const NDR_CUSTOM_OR_DEFAULT_ALLOCATOR: u32 = 268435456; +pub const NDR_DEFAULT_ALLOCATOR: u32 = 536870912; +pub const RPCFLG_NDR64_CONTAINS_ARM_LAYOUT: u32 = 67108864; +pub const RPCFLG_SENDER_WAITING_FOR_REPLY: u32 = 8388608; +pub const RPC_FLAGS_VALID_BIT: u32 = 32768; +pub const NT351_INTERFACE_SIZE: u32 = 64; +pub const RPC_INTERFACE_HAS_PIPES: u32 = 1; +pub const RPC_SYSTEM_HANDLE_FREE_UNRETRIEVED: u32 = 1; +pub const RPC_SYSTEM_HANDLE_FREE_RETRIEVED: u32 = 2; +pub const RPC_SYSTEM_HANDLE_FREE_ALL: u32 = 3; +pub const RPC_SYSTEM_HANDLE_FREE_ERROR_ON_CLOSE: u32 = 4; +pub const TRANSPORT_TYPE_CN: u32 = 1; +pub const TRANSPORT_TYPE_DG: u32 = 2; +pub const TRANSPORT_TYPE_LPC: u32 = 4; +pub const TRANSPORT_TYPE_WMSG: u32 = 8; +pub const RPC_P_ADDR_FORMAT_TCP_IPV4: u32 = 1; +pub const RPC_P_ADDR_FORMAT_TCP_IPV6: u32 = 2; +pub const RPC_C_OPT_SESSION_ID: u32 = 6; +pub const RPC_C_OPT_COOKIE_AUTH: u32 = 7; +pub const RPC_C_OPT_RESOURCE_TYPE_UUID: u32 = 8; +pub const RPC_PROXY_CONNECTION_TYPE_IN_PROXY: u32 = 0; +pub const RPC_PROXY_CONNECTION_TYPE_OUT_PROXY: u32 = 1; +pub const RPC_C_OPT_PRIVATE_SUPPRESS_WAKE: u32 = 1; +pub const RPC_C_OPT_PRIVATE_DO_NOT_DISTURB: u32 = 2; +pub const RPC_C_OPT_PRIVATE_BREAK_ON_SUSPEND: u32 = 3; +pub const RPC_C_NS_SYNTAX_DEFAULT: u32 = 0; +pub const RPC_C_NS_SYNTAX_DCE: u32 = 3; +pub const RPC_C_PROFILE_DEFAULT_ELT: u32 = 0; +pub const RPC_C_PROFILE_ALL_ELT: u32 = 1; +pub const RPC_C_PROFILE_ALL_ELTS: u32 = 1; +pub const RPC_C_PROFILE_MATCH_BY_IF: u32 = 2; +pub const RPC_C_PROFILE_MATCH_BY_MBR: u32 = 3; +pub const RPC_C_PROFILE_MATCH_BY_BOTH: u32 = 4; +pub const RPC_C_NS_DEFAULT_EXP_AGE: i32 = -1; +pub const RPC_S_OK: u32 = 0; +pub const RPC_S_INVALID_ARG: u32 = 87; +pub const RPC_S_OUT_OF_MEMORY: u32 = 14; +pub const RPC_S_OUT_OF_THREADS: u32 = 164; +pub const RPC_S_INVALID_LEVEL: u32 = 87; +pub const RPC_S_BUFFER_TOO_SMALL: u32 = 122; +pub const RPC_S_INVALID_SECURITY_DESC: u32 = 1338; +pub const RPC_S_ACCESS_DENIED: u32 = 5; +pub const RPC_S_SERVER_OUT_OF_MEMORY: u32 = 1130; +pub const RPC_S_ASYNC_CALL_PENDING: u32 = 997; +pub const RPC_S_UNKNOWN_PRINCIPAL: u32 = 1332; +pub const RPC_S_TIMEOUT: u32 = 1460; +pub const RPC_S_RUNTIME_UNINITIALIZED: u32 = 1; +pub const RPC_S_NOT_ENOUGH_QUOTA: u32 = 1816; +pub const RPC_X_NO_MEMORY: u32 = 14; +pub const RPC_X_INVALID_BOUND: u32 = 1734; +pub const RPC_X_INVALID_TAG: u32 = 1733; +pub const RPC_X_ENUM_VALUE_TOO_LARGE: u32 = 1781; +pub const RPC_X_SS_CONTEXT_MISMATCH: u32 = 6; +pub const RPC_X_INVALID_BUFFER: u32 = 1784; +pub const RPC_X_PIPE_APP_MEMORY: u32 = 14; +pub const RPC_X_INVALID_PIPE_OPERATION: u32 = 1831; +pub const RPC_C_NOTIFY_ON_SEND_COMPLETE: u32 = 1; +pub const RPC_C_INFINITE_TIMEOUT: u32 = 4294967295; +pub const MaxNumberOfEEInfoParams: u32 = 4; +pub const RPC_EEINFO_VERSION: u32 = 1; +pub const EEInfoPreviousRecordsMissing: u32 = 1; +pub const EEInfoNextRecordsMissing: u32 = 2; +pub const EEInfoUseFileTime: u32 = 4; +pub const EEInfoGCCOM: u32 = 11; +pub const EEInfoGCFRS: u32 = 12; +pub const RPC_QUERY_SERVER_PRINCIPAL_NAME: u32 = 2; +pub const RPC_QUERY_CLIENT_PRINCIPAL_NAME: u32 = 4; +pub const RPC_QUERY_CALL_LOCAL_ADDRESS: u32 = 8; +pub const RPC_QUERY_CLIENT_PID: u32 = 16; +pub const RPC_QUERY_IS_CLIENT_LOCAL: u32 = 32; +pub const RPC_QUERY_NO_AUTH_REQUIRED: u32 = 64; +pub const RPC_CALL_ATTRIBUTES_VERSION: u32 = 3; +pub const RPC_QUERY_CLIENT_ID: u32 = 128; +pub const RPC_CALL_STATUS_CANCELLED: u32 = 1; +pub const RPC_CALL_STATUS_DISCONNECTED: u32 = 2; +pub const ABM_NEW: u32 = 0; +pub const ABM_REMOVE: u32 = 1; +pub const ABM_QUERYPOS: u32 = 2; +pub const ABM_SETPOS: u32 = 3; +pub const ABM_GETSTATE: u32 = 4; +pub const ABM_GETTASKBARPOS: u32 = 5; +pub const ABM_ACTIVATE: u32 = 6; +pub const ABM_GETAUTOHIDEBAR: u32 = 7; +pub const ABM_SETAUTOHIDEBAR: u32 = 8; +pub const ABM_WINDOWPOSCHANGED: u32 = 9; +pub const ABM_SETSTATE: u32 = 10; +pub const ABM_GETAUTOHIDEBAREX: u32 = 11; +pub const ABM_SETAUTOHIDEBAREX: u32 = 12; +pub const ABN_STATECHANGE: u32 = 0; +pub const ABN_POSCHANGED: u32 = 1; +pub const ABN_FULLSCREENAPP: u32 = 2; +pub const ABN_WINDOWARRANGE: u32 = 3; +pub const ABS_AUTOHIDE: u32 = 1; +pub const ABS_ALWAYSONTOP: u32 = 2; +pub const ABE_LEFT: u32 = 0; +pub const ABE_TOP: u32 = 1; +pub const ABE_RIGHT: u32 = 2; +pub const ABE_BOTTOM: u32 = 3; +pub const FO_MOVE: u32 = 1; +pub const FO_COPY: u32 = 2; +pub const FO_DELETE: u32 = 3; +pub const FO_RENAME: u32 = 4; +pub const FOF_MULTIDESTFILES: u32 = 1; +pub const FOF_CONFIRMMOUSE: u32 = 2; +pub const FOF_SILENT: u32 = 4; +pub const FOF_RENAMEONCOLLISION: u32 = 8; +pub const FOF_NOCONFIRMATION: u32 = 16; +pub const FOF_WANTMAPPINGHANDLE: u32 = 32; +pub const FOF_ALLOWUNDO: u32 = 64; +pub const FOF_FILESONLY: u32 = 128; +pub const FOF_SIMPLEPROGRESS: u32 = 256; +pub const FOF_NOCONFIRMMKDIR: u32 = 512; +pub const FOF_NOERRORUI: u32 = 1024; +pub const FOF_NOCOPYSECURITYATTRIBS: u32 = 2048; +pub const FOF_NORECURSION: u32 = 4096; +pub const FOF_NO_CONNECTED_ELEMENTS: u32 = 8192; +pub const FOF_WANTNUKEWARNING: u32 = 16384; +pub const FOF_NORECURSEREPARSE: u32 = 32768; +pub const FOF_NO_UI: u32 = 1556; +pub const PO_DELETE: u32 = 19; +pub const PO_RENAME: u32 = 20; +pub const PO_PORTCHANGE: u32 = 32; +pub const PO_REN_PORT: u32 = 52; +pub const SE_ERR_FNF: u32 = 2; +pub const SE_ERR_PNF: u32 = 3; +pub const SE_ERR_ACCESSDENIED: u32 = 5; +pub const SE_ERR_OOM: u32 = 8; +pub const SE_ERR_DLLNOTFOUND: u32 = 32; +pub const SE_ERR_SHARE: u32 = 26; +pub const SE_ERR_ASSOCINCOMPLETE: u32 = 27; +pub const SE_ERR_DDETIMEOUT: u32 = 28; +pub const SE_ERR_DDEFAIL: u32 = 29; +pub const SE_ERR_DDEBUSY: u32 = 30; +pub const SE_ERR_NOASSOC: u32 = 31; +pub const SEE_MASK_DEFAULT: u32 = 0; +pub const SEE_MASK_CLASSNAME: u32 = 1; +pub const SEE_MASK_CLASSKEY: u32 = 3; +pub const SEE_MASK_IDLIST: u32 = 4; +pub const SEE_MASK_INVOKEIDLIST: u32 = 12; +pub const SEE_MASK_HOTKEY: u32 = 32; +pub const SEE_MASK_NOCLOSEPROCESS: u32 = 64; +pub const SEE_MASK_CONNECTNETDRV: u32 = 128; +pub const SEE_MASK_NOASYNC: u32 = 256; +pub const SEE_MASK_FLAG_DDEWAIT: u32 = 256; +pub const SEE_MASK_DOENVSUBST: u32 = 512; +pub const SEE_MASK_FLAG_NO_UI: u32 = 1024; +pub const SEE_MASK_UNICODE: u32 = 16384; +pub const SEE_MASK_NO_CONSOLE: u32 = 32768; +pub const SEE_MASK_ASYNCOK: u32 = 1048576; +pub const SEE_MASK_HMONITOR: u32 = 2097152; +pub const SEE_MASK_NOZONECHECKS: u32 = 8388608; +pub const SEE_MASK_NOQUERYCLASSSTORE: u32 = 16777216; +pub const SEE_MASK_WAITFORINPUTIDLE: u32 = 33554432; +pub const SEE_MASK_FLAG_LOG_USAGE: u32 = 67108864; +pub const SEE_MASK_FLAG_HINST_IS_SITE: u32 = 134217728; +pub const SHERB_NOCONFIRMATION: u32 = 1; +pub const SHERB_NOPROGRESSUI: u32 = 2; +pub const SHERB_NOSOUND: u32 = 4; +pub const NIN_SELECT: u32 = 1024; +pub const NINF_KEY: u32 = 1; +pub const NIN_KEYSELECT: u32 = 1025; +pub const NIN_BALLOONSHOW: u32 = 1026; +pub const NIN_BALLOONHIDE: u32 = 1027; +pub const NIN_BALLOONTIMEOUT: u32 = 1028; +pub const NIN_BALLOONUSERCLICK: u32 = 1029; +pub const NIN_POPUPOPEN: u32 = 1030; +pub const NIN_POPUPCLOSE: u32 = 1031; +pub const NIM_ADD: u32 = 0; +pub const NIM_MODIFY: u32 = 1; +pub const NIM_DELETE: u32 = 2; +pub const NIM_SETFOCUS: u32 = 3; +pub const NIM_SETVERSION: u32 = 4; +pub const NOTIFYICON_VERSION: u32 = 3; +pub const NOTIFYICON_VERSION_4: u32 = 4; +pub const NIF_MESSAGE: u32 = 1; +pub const NIF_ICON: u32 = 2; +pub const NIF_TIP: u32 = 4; +pub const NIF_STATE: u32 = 8; +pub const NIF_INFO: u32 = 16; +pub const NIF_GUID: u32 = 32; +pub const NIF_REALTIME: u32 = 64; +pub const NIF_SHOWTIP: u32 = 128; +pub const NIS_HIDDEN: u32 = 1; +pub const NIS_SHAREDICON: u32 = 2; +pub const NIIF_NONE: u32 = 0; +pub const NIIF_INFO: u32 = 1; +pub const NIIF_WARNING: u32 = 2; +pub const NIIF_ERROR: u32 = 3; +pub const NIIF_USER: u32 = 4; +pub const NIIF_ICON_MASK: u32 = 15; +pub const NIIF_NOSOUND: u32 = 16; +pub const NIIF_LARGE_ICON: u32 = 32; +pub const NIIF_RESPECT_QUIET_TIME: u32 = 128; +pub const SHGFI_ICON: u32 = 256; +pub const SHGFI_DISPLAYNAME: u32 = 512; +pub const SHGFI_TYPENAME: u32 = 1024; +pub const SHGFI_ATTRIBUTES: u32 = 2048; +pub const SHGFI_ICONLOCATION: u32 = 4096; +pub const SHGFI_EXETYPE: u32 = 8192; +pub const SHGFI_SYSICONINDEX: u32 = 16384; +pub const SHGFI_LINKOVERLAY: u32 = 32768; +pub const SHGFI_SELECTED: u32 = 65536; +pub const SHGFI_ATTR_SPECIFIED: u32 = 131072; +pub const SHGFI_LARGEICON: u32 = 0; +pub const SHGFI_SMALLICON: u32 = 1; +pub const SHGFI_OPENICON: u32 = 2; +pub const SHGFI_SHELLICONSIZE: u32 = 4; +pub const SHGFI_PIDL: u32 = 8; +pub const SHGFI_USEFILEATTRIBUTES: u32 = 16; +pub const SHGFI_ADDOVERLAYS: u32 = 32; +pub const SHGFI_OVERLAYINDEX: u32 = 64; +pub const SHGSI_ICONLOCATION: u32 = 0; +pub const SHGSI_ICON: u32 = 256; +pub const SHGSI_SYSICONINDEX: u32 = 16384; +pub const SHGSI_LINKOVERLAY: u32 = 32768; +pub const SHGSI_SELECTED: u32 = 65536; +pub const SHGSI_LARGEICON: u32 = 0; +pub const SHGSI_SMALLICON: u32 = 1; +pub const SHGSI_SHELLICONSIZE: u32 = 4; +pub const SHGNLI_PIDL: u32 = 1; +pub const SHGNLI_PREFIXNAME: u32 = 2; +pub const SHGNLI_NOUNIQUE: u32 = 4; +pub const SHGNLI_NOLNK: u32 = 8; +pub const SHGNLI_NOLOCNAME: u32 = 16; +pub const SHGNLI_USEURLEXT: u32 = 32; +pub const PRINTACTION_OPEN: u32 = 0; +pub const PRINTACTION_PROPERTIES: u32 = 1; +pub const PRINTACTION_NETINSTALL: u32 = 2; +pub const PRINTACTION_NETINSTALLLINK: u32 = 3; +pub const PRINTACTION_TESTPAGE: u32 = 4; +pub const PRINTACTION_OPENNETPRN: u32 = 5; +pub const PRINTACTION_DOCUMENTDEFAULTS: u32 = 6; +pub const PRINTACTION_SERVERPROPERTIES: u32 = 7; +pub const PRINT_PROP_FORCE_NAME: u32 = 1; +pub const OFFLINE_STATUS_LOCAL: u32 = 1; +pub const OFFLINE_STATUS_REMOTE: u32 = 2; +pub const OFFLINE_STATUS_INCOMPLETE: u32 = 4; +pub const SHIL_LARGE: u32 = 0; +pub const SHIL_SMALL: u32 = 1; +pub const SHIL_EXTRALARGE: u32 = 2; +pub const SHIL_SYSSMALL: u32 = 3; +pub const SHIL_JUMBO: u32 = 4; +pub const SHIL_LAST: u32 = 4; +pub const WC_NETADDRESS: &[u8; 18] = b"msctls_netaddress\0"; +pub const NCM_GETADDRESS: u32 = 1025; +pub const NCM_SETALLOWTYPE: u32 = 1026; +pub const NCM_GETALLOWTYPE: u32 = 1027; +pub const NCM_DISPLAYERRORTIP: u32 = 1028; +pub const PERF_DATA_VERSION: u32 = 1; +pub const PERF_DATA_REVISION: u32 = 1; +pub const PERF_NO_INSTANCES: i32 = -1; +pub const PERF_METADATA_MULTIPLE_INSTANCES: i32 = -2; +pub const PERF_METADATA_NO_INSTANCES: i32 = -3; +pub const PERF_SIZE_DWORD: u32 = 0; +pub const PERF_SIZE_LARGE: u32 = 256; +pub const PERF_SIZE_ZERO: u32 = 512; +pub const PERF_SIZE_VARIABLE_LEN: u32 = 768; +pub const PERF_TYPE_NUMBER: u32 = 0; +pub const PERF_TYPE_COUNTER: u32 = 1024; +pub const PERF_TYPE_TEXT: u32 = 2048; +pub const PERF_TYPE_ZERO: u32 = 3072; +pub const PERF_NUMBER_HEX: u32 = 0; +pub const PERF_NUMBER_DECIMAL: u32 = 65536; +pub const PERF_NUMBER_DEC_1000: u32 = 131072; +pub const PERF_COUNTER_VALUE: u32 = 0; +pub const PERF_COUNTER_RATE: u32 = 65536; +pub const PERF_COUNTER_FRACTION: u32 = 131072; +pub const PERF_COUNTER_BASE: u32 = 196608; +pub const PERF_COUNTER_ELAPSED: u32 = 262144; +pub const PERF_COUNTER_QUEUELEN: u32 = 327680; +pub const PERF_COUNTER_HISTOGRAM: u32 = 393216; +pub const PERF_COUNTER_PRECISION: u32 = 458752; +pub const PERF_TEXT_UNICODE: u32 = 0; +pub const PERF_TEXT_ASCII: u32 = 65536; +pub const PERF_TIMER_TICK: u32 = 0; +pub const PERF_TIMER_100NS: u32 = 1048576; +pub const PERF_OBJECT_TIMER: u32 = 2097152; +pub const PERF_DELTA_COUNTER: u32 = 4194304; +pub const PERF_DELTA_BASE: u32 = 8388608; +pub const PERF_INVERSE_COUNTER: u32 = 16777216; +pub const PERF_MULTI_COUNTER: u32 = 33554432; +pub const PERF_DISPLAY_NO_SUFFIX: u32 = 0; +pub const PERF_DISPLAY_PER_SEC: u32 = 268435456; +pub const PERF_DISPLAY_PERCENT: u32 = 536870912; +pub const PERF_DISPLAY_SECONDS: u32 = 805306368; +pub const PERF_DISPLAY_NOSHOW: u32 = 1073741824; +pub const PERF_COUNTER_COUNTER: u32 = 272696320; +pub const PERF_COUNTER_TIMER: u32 = 541132032; +pub const PERF_COUNTER_QUEUELEN_TYPE: u32 = 4523008; +pub const PERF_COUNTER_LARGE_QUEUELEN_TYPE: u32 = 4523264; +pub const PERF_COUNTER_100NS_QUEUELEN_TYPE: u32 = 5571840; +pub const PERF_COUNTER_OBJ_TIME_QUEUELEN_TYPE: u32 = 6620416; +pub const PERF_COUNTER_BULK_COUNT: u32 = 272696576; +pub const PERF_COUNTER_TEXT: u32 = 2816; +pub const PERF_COUNTER_RAWCOUNT: u32 = 65536; +pub const PERF_COUNTER_LARGE_RAWCOUNT: u32 = 65792; +pub const PERF_COUNTER_RAWCOUNT_HEX: u32 = 0; +pub const PERF_COUNTER_LARGE_RAWCOUNT_HEX: u32 = 256; +pub const PERF_SAMPLE_FRACTION: u32 = 549585920; +pub const PERF_SAMPLE_COUNTER: u32 = 4260864; +pub const PERF_COUNTER_NODATA: u32 = 1073742336; +pub const PERF_COUNTER_TIMER_INV: u32 = 557909248; +pub const PERF_SAMPLE_BASE: u32 = 1073939457; +pub const PERF_AVERAGE_TIMER: u32 = 805438464; +pub const PERF_AVERAGE_BASE: u32 = 1073939458; +pub const PERF_AVERAGE_BULK: u32 = 1073874176; +pub const PERF_OBJ_TIME_TIMER: u32 = 543229184; +pub const PERF_100NSEC_TIMER: u32 = 542180608; +pub const PERF_100NSEC_TIMER_INV: u32 = 558957824; +pub const PERF_COUNTER_MULTI_TIMER: u32 = 574686464; +pub const PERF_COUNTER_MULTI_TIMER_INV: u32 = 591463680; +pub const PERF_COUNTER_MULTI_BASE: u32 = 1107494144; +pub const PERF_100NSEC_MULTI_TIMER: u32 = 575735040; +pub const PERF_100NSEC_MULTI_TIMER_INV: u32 = 592512256; +pub const PERF_RAW_FRACTION: u32 = 537003008; +pub const PERF_LARGE_RAW_FRACTION: u32 = 537003264; +pub const PERF_RAW_BASE: u32 = 1073939459; +pub const PERF_LARGE_RAW_BASE: u32 = 1073939712; +pub const PERF_ELAPSED_TIME: u32 = 807666944; +pub const PERF_COUNTER_HISTOGRAM_TYPE: u32 = 2147483648; +pub const PERF_COUNTER_DELTA: u32 = 4195328; +pub const PERF_COUNTER_LARGE_DELTA: u32 = 4195584; +pub const PERF_PRECISION_SYSTEM_TIMER: u32 = 541525248; +pub const PERF_PRECISION_100NS_TIMER: u32 = 542573824; +pub const PERF_PRECISION_OBJECT_TIMER: u32 = 543622400; +pub const PERF_PRECISION_TIMESTAMP: u32 = 1073939712; +pub const PERF_DETAIL_NOVICE: u32 = 100; +pub const PERF_DETAIL_ADVANCED: u32 = 200; +pub const PERF_DETAIL_EXPERT: u32 = 300; +pub const PERF_DETAIL_WIZARD: u32 = 400; +pub const PERF_NO_UNIQUE_ID: i32 = -1; +pub const MAX_PERF_OBJECTS_IN_QUERY_FUNCTION: u32 = 64; +pub const WINPERF_LOG_NONE: u32 = 0; +pub const WINPERF_LOG_USER: u32 = 1; +pub const WINPERF_LOG_DEBUG: u32 = 2; +pub const WINPERF_LOG_VERBOSE: u32 = 3; +pub const FD_SETSIZE: u32 = 64; +pub const IOCPARM_MASK: u32 = 127; +pub const IOC_VOID: u32 = 536870912; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_IN: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IPPROTO_IP: u32 = 0; +pub const IPPROTO_ICMP: u32 = 1; +pub const IPPROTO_IGMP: u32 = 2; +pub const IPPROTO_GGP: u32 = 3; +pub const IPPROTO_TCP: u32 = 6; +pub const IPPROTO_PUP: u32 = 12; +pub const IPPROTO_UDP: u32 = 17; +pub const IPPROTO_IDP: u32 = 22; +pub const IPPROTO_ND: u32 = 77; +pub const IPPROTO_RAW: u32 = 255; +pub const IPPROTO_MAX: u32 = 256; +pub const IPPORT_ECHO: u32 = 7; +pub const IPPORT_DISCARD: u32 = 9; +pub const IPPORT_SYSTAT: u32 = 11; +pub const IPPORT_DAYTIME: u32 = 13; +pub const IPPORT_NETSTAT: u32 = 15; +pub const IPPORT_FTP: u32 = 21; +pub const IPPORT_TELNET: u32 = 23; +pub const IPPORT_SMTP: u32 = 25; +pub const IPPORT_TIMESERVER: u32 = 37; +pub const IPPORT_NAMESERVER: u32 = 42; +pub const IPPORT_WHOIS: u32 = 43; +pub const IPPORT_MTP: u32 = 57; +pub const IPPORT_TFTP: u32 = 69; +pub const IPPORT_RJE: u32 = 77; +pub const IPPORT_FINGER: u32 = 79; +pub const IPPORT_TTYLINK: u32 = 87; +pub const IPPORT_SUPDUP: u32 = 95; +pub const IPPORT_EXECSERVER: u32 = 512; +pub const IPPORT_LOGINSERVER: u32 = 513; +pub const IPPORT_CMDSERVER: u32 = 514; +pub const IPPORT_EFSSERVER: u32 = 520; +pub const IPPORT_BIFFUDP: u32 = 512; +pub const IPPORT_WHOSERVER: u32 = 513; +pub const IPPORT_ROUTESERVER: u32 = 520; +pub const IPPORT_RESERVED: u32 = 1024; +pub const IMPLINK_IP: u32 = 155; +pub const IMPLINK_LOWEXPER: u32 = 156; +pub const IMPLINK_HIGHEXPER: u32 = 158; +pub const IN_CLASSA_NET: u32 = 4278190080; +pub const IN_CLASSA_NSHIFT: u32 = 24; +pub const IN_CLASSA_HOST: u32 = 16777215; +pub const IN_CLASSA_MAX: u32 = 128; +pub const IN_CLASSB_NET: u32 = 4294901760; +pub const IN_CLASSB_NSHIFT: u32 = 16; +pub const IN_CLASSB_HOST: u32 = 65535; +pub const IN_CLASSB_MAX: u32 = 65536; +pub const IN_CLASSC_NET: u32 = 4294967040; +pub const IN_CLASSC_NSHIFT: u32 = 8; +pub const IN_CLASSC_HOST: u32 = 255; +pub const INADDR_LOOPBACK: u32 = 2130706433; +pub const INADDR_NONE: u32 = 4294967295; +pub const WSADESCRIPTION_LEN: u32 = 256; +pub const WSASYS_STATUS_LEN: u32 = 128; +pub const IP_OPTIONS: u32 = 1; +pub const IP_MULTICAST_IF: u32 = 2; +pub const IP_MULTICAST_TTL: u32 = 3; +pub const IP_MULTICAST_LOOP: u32 = 4; +pub const IP_ADD_MEMBERSHIP: u32 = 5; +pub const IP_DROP_MEMBERSHIP: u32 = 6; +pub const IP_TTL: u32 = 7; +pub const IP_TOS: u32 = 8; +pub const IP_DONTFRAGMENT: u32 = 9; +pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; +pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; +pub const IP_MAX_MEMBERSHIPS: u32 = 20; +pub const SOCKET_ERROR: i32 = -1; +pub const SOCK_STREAM: u32 = 1; +pub const SOCK_DGRAM: u32 = 2; +pub const SOCK_RAW: u32 = 3; +pub const SOCK_RDM: u32 = 4; +pub const SOCK_SEQPACKET: u32 = 5; +pub const SO_DEBUG: u32 = 1; +pub const SO_ACCEPTCONN: u32 = 2; +pub const SO_REUSEADDR: u32 = 4; +pub const SO_KEEPALIVE: u32 = 8; +pub const SO_DONTROUTE: u32 = 16; +pub const SO_BROADCAST: u32 = 32; +pub const SO_USELOOPBACK: u32 = 64; +pub const SO_LINGER: u32 = 128; +pub const SO_OOBINLINE: u32 = 256; +pub const SO_SNDBUF: u32 = 4097; +pub const SO_RCVBUF: u32 = 4098; +pub const SO_SNDLOWAT: u32 = 4099; +pub const SO_RCVLOWAT: u32 = 4100; +pub const SO_SNDTIMEO: u32 = 4101; +pub const SO_RCVTIMEO: u32 = 4102; +pub const SO_ERROR: u32 = 4103; +pub const SO_TYPE: u32 = 4104; +pub const SO_CONNDATA: u32 = 28672; +pub const SO_CONNOPT: u32 = 28673; +pub const SO_DISCDATA: u32 = 28674; +pub const SO_DISCOPT: u32 = 28675; +pub const SO_CONNDATALEN: u32 = 28676; +pub const SO_CONNOPTLEN: u32 = 28677; +pub const SO_DISCDATALEN: u32 = 28678; +pub const SO_DISCOPTLEN: u32 = 28679; +pub const SO_OPENTYPE: u32 = 28680; +pub const SO_SYNCHRONOUS_ALERT: u32 = 16; +pub const SO_SYNCHRONOUS_NONALERT: u32 = 32; +pub const SO_MAXDG: u32 = 28681; +pub const SO_MAXPATHDG: u32 = 28682; +pub const SO_UPDATE_ACCEPT_CONTEXT: u32 = 28683; +pub const SO_CONNECT_TIME: u32 = 28684; +pub const TCP_NODELAY: u32 = 1; +pub const TCP_BSDURGENT: u32 = 28672; +pub const AF_UNSPEC: u32 = 0; +pub const AF_UNIX: u32 = 1; +pub const AF_INET: u32 = 2; +pub const AF_IMPLINK: u32 = 3; +pub const AF_PUP: u32 = 4; +pub const AF_CHAOS: u32 = 5; +pub const AF_IPX: u32 = 6; +pub const AF_NS: u32 = 6; +pub const AF_ISO: u32 = 7; +pub const AF_OSI: u32 = 7; +pub const AF_ECMA: u32 = 8; +pub const AF_DATAKIT: u32 = 9; +pub const AF_CCITT: u32 = 10; +pub const AF_SNA: u32 = 11; +pub const AF_DECnet: u32 = 12; +pub const AF_DLI: u32 = 13; +pub const AF_LAT: u32 = 14; +pub const AF_HYLINK: u32 = 15; +pub const AF_APPLETALK: u32 = 16; +pub const AF_NETBIOS: u32 = 17; +pub const AF_VOICEVIEW: u32 = 18; +pub const AF_FIREFOX: u32 = 19; +pub const AF_UNKNOWN1: u32 = 20; +pub const AF_BAN: u32 = 21; +pub const AF_MAX: u32 = 22; +pub const PF_UNSPEC: u32 = 0; +pub const PF_UNIX: u32 = 1; +pub const PF_INET: u32 = 2; +pub const PF_IMPLINK: u32 = 3; +pub const PF_PUP: u32 = 4; +pub const PF_CHAOS: u32 = 5; +pub const PF_NS: u32 = 6; +pub const PF_IPX: u32 = 6; +pub const PF_ISO: u32 = 7; +pub const PF_OSI: u32 = 7; +pub const PF_ECMA: u32 = 8; +pub const PF_DATAKIT: u32 = 9; +pub const PF_CCITT: u32 = 10; +pub const PF_SNA: u32 = 11; +pub const PF_DECnet: u32 = 12; +pub const PF_DLI: u32 = 13; +pub const PF_LAT: u32 = 14; +pub const PF_HYLINK: u32 = 15; +pub const PF_APPLETALK: u32 = 16; +pub const PF_VOICEVIEW: u32 = 18; +pub const PF_FIREFOX: u32 = 19; +pub const PF_UNKNOWN1: u32 = 20; +pub const PF_BAN: u32 = 21; +pub const PF_MAX: u32 = 22; +pub const SOL_SOCKET: u32 = 65535; +pub const SOMAXCONN: u32 = 5; +pub const MSG_OOB: u32 = 1; +pub const MSG_PEEK: u32 = 2; +pub const MSG_DONTROUTE: u32 = 4; +pub const MSG_MAXIOVLEN: u32 = 16; +pub const MSG_PARTIAL: u32 = 32768; +pub const MAXGETHOSTSTRUCT: u32 = 1024; +pub const FD_READ: u32 = 1; +pub const FD_WRITE: u32 = 2; +pub const FD_OOB: u32 = 4; +pub const FD_ACCEPT: u32 = 8; +pub const FD_CONNECT: u32 = 16; +pub const FD_CLOSE: u32 = 32; +pub const HOST_NOT_FOUND: u32 = 11001; +pub const TRY_AGAIN: u32 = 11002; +pub const NO_RECOVERY: u32 = 11003; +pub const NO_DATA: u32 = 11004; +pub const WSANO_ADDRESS: u32 = 11004; +pub const NO_ADDRESS: u32 = 11004; +pub const TF_DISCONNECT: u32 = 1; +pub const TF_REUSE_SOCKET: u32 = 2; +pub const TF_WRITE_BEHIND: u32 = 4; +pub const ALG_CLASS_ANY: u32 = 0; +pub const ALG_CLASS_SIGNATURE: u32 = 8192; +pub const ALG_CLASS_MSG_ENCRYPT: u32 = 16384; +pub const ALG_CLASS_DATA_ENCRYPT: u32 = 24576; +pub const ALG_CLASS_HASH: u32 = 32768; +pub const ALG_CLASS_KEY_EXCHANGE: u32 = 40960; +pub const ALG_CLASS_ALL: u32 = 57344; +pub const ALG_TYPE_ANY: u32 = 0; +pub const ALG_TYPE_DSS: u32 = 512; +pub const ALG_TYPE_RSA: u32 = 1024; +pub const ALG_TYPE_BLOCK: u32 = 1536; +pub const ALG_TYPE_STREAM: u32 = 2048; +pub const ALG_TYPE_DH: u32 = 2560; +pub const ALG_TYPE_SECURECHANNEL: u32 = 3072; +pub const ALG_TYPE_ECDH: u32 = 3584; +pub const ALG_TYPE_THIRDPARTY: u32 = 4096; +pub const ALG_SID_ANY: u32 = 0; +pub const ALG_SID_THIRDPARTY_ANY: u32 = 0; +pub const ALG_SID_RSA_ANY: u32 = 0; +pub const ALG_SID_RSA_PKCS: u32 = 1; +pub const ALG_SID_RSA_MSATWORK: u32 = 2; +pub const ALG_SID_RSA_ENTRUST: u32 = 3; +pub const ALG_SID_RSA_PGP: u32 = 4; +pub const ALG_SID_DSS_ANY: u32 = 0; +pub const ALG_SID_DSS_PKCS: u32 = 1; +pub const ALG_SID_DSS_DMS: u32 = 2; +pub const ALG_SID_ECDSA: u32 = 3; +pub const ALG_SID_DES: u32 = 1; +pub const ALG_SID_3DES: u32 = 3; +pub const ALG_SID_DESX: u32 = 4; +pub const ALG_SID_IDEA: u32 = 5; +pub const ALG_SID_CAST: u32 = 6; +pub const ALG_SID_SAFERSK64: u32 = 7; +pub const ALG_SID_SAFERSK128: u32 = 8; +pub const ALG_SID_3DES_112: u32 = 9; +pub const ALG_SID_CYLINK_MEK: u32 = 12; +pub const ALG_SID_RC5: u32 = 13; +pub const ALG_SID_AES_128: u32 = 14; +pub const ALG_SID_AES_192: u32 = 15; +pub const ALG_SID_AES_256: u32 = 16; +pub const ALG_SID_AES: u32 = 17; +pub const ALG_SID_SKIPJACK: u32 = 10; +pub const ALG_SID_TEK: u32 = 11; +pub const CRYPT_MODE_CBCI: u32 = 6; +pub const CRYPT_MODE_CFBP: u32 = 7; +pub const CRYPT_MODE_OFBP: u32 = 8; +pub const CRYPT_MODE_CBCOFM: u32 = 9; +pub const CRYPT_MODE_CBCOFMI: u32 = 10; +pub const ALG_SID_RC2: u32 = 2; +pub const ALG_SID_RC4: u32 = 1; +pub const ALG_SID_SEAL: u32 = 2; +pub const ALG_SID_DH_SANDF: u32 = 1; +pub const ALG_SID_DH_EPHEM: u32 = 2; +pub const ALG_SID_AGREED_KEY_ANY: u32 = 3; +pub const ALG_SID_KEA: u32 = 4; +pub const ALG_SID_ECDH: u32 = 5; +pub const ALG_SID_ECDH_EPHEM: u32 = 6; +pub const ALG_SID_MD2: u32 = 1; +pub const ALG_SID_MD4: u32 = 2; +pub const ALG_SID_MD5: u32 = 3; +pub const ALG_SID_SHA: u32 = 4; +pub const ALG_SID_SHA1: u32 = 4; +pub const ALG_SID_MAC: u32 = 5; +pub const ALG_SID_RIPEMD: u32 = 6; +pub const ALG_SID_RIPEMD160: u32 = 7; +pub const ALG_SID_SSL3SHAMD5: u32 = 8; +pub const ALG_SID_HMAC: u32 = 9; +pub const ALG_SID_TLS1PRF: u32 = 10; +pub const ALG_SID_HASH_REPLACE_OWF: u32 = 11; +pub const ALG_SID_SHA_256: u32 = 12; +pub const ALG_SID_SHA_384: u32 = 13; +pub const ALG_SID_SHA_512: u32 = 14; +pub const ALG_SID_SSL3_MASTER: u32 = 1; +pub const ALG_SID_SCHANNEL_MASTER_HASH: u32 = 2; +pub const ALG_SID_SCHANNEL_MAC_KEY: u32 = 3; +pub const ALG_SID_PCT1_MASTER: u32 = 4; +pub const ALG_SID_SSL2_MASTER: u32 = 5; +pub const ALG_SID_TLS1_MASTER: u32 = 6; +pub const ALG_SID_SCHANNEL_ENC_KEY: u32 = 7; +pub const ALG_SID_ECMQV: u32 = 1; +pub const ALG_SID_EXAMPLE: u32 = 80; +pub const CALG_MD2: u32 = 32769; +pub const CALG_MD4: u32 = 32770; +pub const CALG_MD5: u32 = 32771; +pub const CALG_SHA: u32 = 32772; +pub const CALG_SHA1: u32 = 32772; +pub const CALG_MAC: u32 = 32773; +pub const CALG_RSA_SIGN: u32 = 9216; +pub const CALG_DSS_SIGN: u32 = 8704; +pub const CALG_NO_SIGN: u32 = 8192; +pub const CALG_RSA_KEYX: u32 = 41984; +pub const CALG_DES: u32 = 26113; +pub const CALG_3DES_112: u32 = 26121; +pub const CALG_3DES: u32 = 26115; +pub const CALG_DESX: u32 = 26116; +pub const CALG_RC2: u32 = 26114; +pub const CALG_RC4: u32 = 26625; +pub const CALG_SEAL: u32 = 26626; +pub const CALG_DH_SF: u32 = 43521; +pub const CALG_DH_EPHEM: u32 = 43522; +pub const CALG_AGREEDKEY_ANY: u32 = 43523; +pub const CALG_KEA_KEYX: u32 = 43524; +pub const CALG_HUGHES_MD5: u32 = 40963; +pub const CALG_SKIPJACK: u32 = 26122; +pub const CALG_TEK: u32 = 26123; +pub const CALG_CYLINK_MEK: u32 = 26124; +pub const CALG_SSL3_SHAMD5: u32 = 32776; +pub const CALG_SSL3_MASTER: u32 = 19457; +pub const CALG_SCHANNEL_MASTER_HASH: u32 = 19458; +pub const CALG_SCHANNEL_MAC_KEY: u32 = 19459; +pub const CALG_SCHANNEL_ENC_KEY: u32 = 19463; +pub const CALG_PCT1_MASTER: u32 = 19460; +pub const CALG_SSL2_MASTER: u32 = 19461; +pub const CALG_TLS1_MASTER: u32 = 19462; +pub const CALG_RC5: u32 = 26125; +pub const CALG_HMAC: u32 = 32777; +pub const CALG_TLS1PRF: u32 = 32778; +pub const CALG_HASH_REPLACE_OWF: u32 = 32779; +pub const CALG_AES_128: u32 = 26126; +pub const CALG_AES_192: u32 = 26127; +pub const CALG_AES_256: u32 = 26128; +pub const CALG_AES: u32 = 26129; +pub const CALG_SHA_256: u32 = 32780; +pub const CALG_SHA_384: u32 = 32781; +pub const CALG_SHA_512: u32 = 32782; +pub const CALG_ECDH: u32 = 43525; +pub const CALG_ECDH_EPHEM: u32 = 44550; +pub const CALG_ECMQV: u32 = 40961; +pub const CALG_ECDSA: u32 = 8707; +pub const CALG_NULLCIPHER: u32 = 24576; +pub const CALG_THIRDPARTY_KEY_EXCHANGE: u32 = 45056; +pub const CALG_THIRDPARTY_SIGNATURE: u32 = 12288; +pub const CALG_THIRDPARTY_CIPHER: u32 = 28672; +pub const CALG_THIRDPARTY_HASH: u32 = 36864; +pub const CRYPT_VERIFYCONTEXT: u32 = 4026531840; +pub const CRYPT_NEWKEYSET: u32 = 8; +pub const CRYPT_DELETEKEYSET: u32 = 16; +pub const CRYPT_MACHINE_KEYSET: u32 = 32; +pub const CRYPT_SILENT: u32 = 64; +pub const CRYPT_DEFAULT_CONTAINER_OPTIONAL: u32 = 128; +pub const CRYPT_EXPORTABLE: u32 = 1; +pub const CRYPT_USER_PROTECTED: u32 = 2; +pub const CRYPT_CREATE_SALT: u32 = 4; +pub const CRYPT_UPDATE_KEY: u32 = 8; +pub const CRYPT_NO_SALT: u32 = 16; +pub const CRYPT_PREGEN: u32 = 64; +pub const CRYPT_RECIPIENT: u32 = 16; +pub const CRYPT_INITIATOR: u32 = 64; +pub const CRYPT_ONLINE: u32 = 128; +pub const CRYPT_SF: u32 = 256; +pub const CRYPT_CREATE_IV: u32 = 512; +pub const CRYPT_KEK: u32 = 1024; +pub const CRYPT_DATA_KEY: u32 = 2048; +pub const CRYPT_VOLATILE: u32 = 4096; +pub const CRYPT_SGCKEY: u32 = 8192; +pub const CRYPT_USER_PROTECTED_STRONG: u32 = 1048576; +pub const CRYPT_ARCHIVABLE: u32 = 16384; +pub const CRYPT_FORCE_KEY_PROTECTION_HIGH: u32 = 32768; +pub const RSA1024BIT_KEY: u32 = 67108864; +pub const CRYPT_SERVER: u32 = 1024; +pub const KEY_LENGTH_MASK: u32 = 4294901760; +pub const CRYPT_Y_ONLY: u32 = 1; +pub const CRYPT_SSL2_FALLBACK: u32 = 2; +pub const CRYPT_DESTROYKEY: u32 = 4; +pub const CRYPT_OAEP: u32 = 64; +pub const CRYPT_BLOB_VER3: u32 = 128; +pub const CRYPT_IPSEC_HMAC_KEY: u32 = 256; +pub const CRYPT_DECRYPT_RSA_NO_PADDING_CHECK: u32 = 32; +pub const CRYPT_SECRETDIGEST: u32 = 1; +pub const CRYPT_OWF_REPL_LM_HASH: u32 = 1; +pub const CRYPT_LITTLE_ENDIAN: u32 = 1; +pub const CRYPT_NOHASHOID: u32 = 1; +pub const CRYPT_TYPE2_FORMAT: u32 = 2; +pub const CRYPT_X931_FORMAT: u32 = 4; +pub const CRYPT_MACHINE_DEFAULT: u32 = 1; +pub const CRYPT_USER_DEFAULT: u32 = 2; +pub const CRYPT_DELETE_DEFAULT: u32 = 4; +pub const SIMPLEBLOB: u32 = 1; +pub const PUBLICKEYBLOB: u32 = 6; +pub const PRIVATEKEYBLOB: u32 = 7; +pub const PLAINTEXTKEYBLOB: u32 = 8; +pub const OPAQUEKEYBLOB: u32 = 9; +pub const PUBLICKEYBLOBEX: u32 = 10; +pub const SYMMETRICWRAPKEYBLOB: u32 = 11; +pub const KEYSTATEBLOB: u32 = 12; +pub const AT_KEYEXCHANGE: u32 = 1; +pub const AT_SIGNATURE: u32 = 2; +pub const CRYPT_USERDATA: u32 = 1; +pub const KP_IV: u32 = 1; +pub const KP_SALT: u32 = 2; +pub const KP_PADDING: u32 = 3; +pub const KP_MODE: u32 = 4; +pub const KP_MODE_BITS: u32 = 5; +pub const KP_PERMISSIONS: u32 = 6; +pub const KP_ALGID: u32 = 7; +pub const KP_BLOCKLEN: u32 = 8; +pub const KP_KEYLEN: u32 = 9; +pub const KP_SALT_EX: u32 = 10; +pub const KP_P: u32 = 11; +pub const KP_G: u32 = 12; +pub const KP_Q: u32 = 13; +pub const KP_X: u32 = 14; +pub const KP_Y: u32 = 15; +pub const KP_RA: u32 = 16; +pub const KP_RB: u32 = 17; +pub const KP_INFO: u32 = 18; +pub const KP_EFFECTIVE_KEYLEN: u32 = 19; +pub const KP_SCHANNEL_ALG: u32 = 20; +pub const KP_CLIENT_RANDOM: u32 = 21; +pub const KP_SERVER_RANDOM: u32 = 22; +pub const KP_RP: u32 = 23; +pub const KP_PRECOMP_MD5: u32 = 24; +pub const KP_PRECOMP_SHA: u32 = 25; +pub const KP_CERTIFICATE: u32 = 26; +pub const KP_CLEAR_KEY: u32 = 27; +pub const KP_PUB_EX_LEN: u32 = 28; +pub const KP_PUB_EX_VAL: u32 = 29; +pub const KP_KEYVAL: u32 = 30; +pub const KP_ADMIN_PIN: u32 = 31; +pub const KP_KEYEXCHANGE_PIN: u32 = 32; +pub const KP_SIGNATURE_PIN: u32 = 33; +pub const KP_PREHASH: u32 = 34; +pub const KP_ROUNDS: u32 = 35; +pub const KP_OAEP_PARAMS: u32 = 36; +pub const KP_CMS_KEY_INFO: u32 = 37; +pub const KP_CMS_DH_KEY_INFO: u32 = 38; +pub const KP_PUB_PARAMS: u32 = 39; +pub const KP_VERIFY_PARAMS: u32 = 40; +pub const KP_HIGHEST_VERSION: u32 = 41; +pub const KP_GET_USE_COUNT: u32 = 42; +pub const KP_PIN_ID: u32 = 43; +pub const KP_PIN_INFO: u32 = 44; +pub const PKCS5_PADDING: u32 = 1; +pub const RANDOM_PADDING: u32 = 2; +pub const ZERO_PADDING: u32 = 3; +pub const CRYPT_MODE_CBC: u32 = 1; +pub const CRYPT_MODE_ECB: u32 = 2; +pub const CRYPT_MODE_OFB: u32 = 3; +pub const CRYPT_MODE_CFB: u32 = 4; +pub const CRYPT_MODE_CTS: u32 = 5; +pub const CRYPT_ENCRYPT: u32 = 1; +pub const CRYPT_DECRYPT: u32 = 2; +pub const CRYPT_EXPORT: u32 = 4; +pub const CRYPT_READ: u32 = 8; +pub const CRYPT_WRITE: u32 = 16; +pub const CRYPT_MAC: u32 = 32; +pub const CRYPT_EXPORT_KEY: u32 = 64; +pub const CRYPT_IMPORT_KEY: u32 = 128; +pub const CRYPT_ARCHIVE: u32 = 256; +pub const HP_ALGID: u32 = 1; +pub const HP_HASHVAL: u32 = 2; +pub const HP_HASHSIZE: u32 = 4; +pub const HP_HMAC_INFO: u32 = 5; +pub const HP_TLS1PRF_LABEL: u32 = 6; +pub const HP_TLS1PRF_SEED: u32 = 7; +pub const CRYPT_FAILED: u32 = 0; +pub const CRYPT_SUCCEED: u32 = 1; +pub const PP_ENUMALGS: u32 = 1; +pub const PP_ENUMCONTAINERS: u32 = 2; +pub const PP_IMPTYPE: u32 = 3; +pub const PP_NAME: u32 = 4; +pub const PP_VERSION: u32 = 5; +pub const PP_CONTAINER: u32 = 6; +pub const PP_CHANGE_PASSWORD: u32 = 7; +pub const PP_KEYSET_SEC_DESCR: u32 = 8; +pub const PP_CERTCHAIN: u32 = 9; +pub const PP_KEY_TYPE_SUBTYPE: u32 = 10; +pub const PP_PROVTYPE: u32 = 16; +pub const PP_KEYSTORAGE: u32 = 17; +pub const PP_APPLI_CERT: u32 = 18; +pub const PP_SYM_KEYSIZE: u32 = 19; +pub const PP_SESSION_KEYSIZE: u32 = 20; +pub const PP_UI_PROMPT: u32 = 21; +pub const PP_ENUMALGS_EX: u32 = 22; +pub const PP_ENUMMANDROOTS: u32 = 25; +pub const PP_ENUMELECTROOTS: u32 = 26; +pub const PP_KEYSET_TYPE: u32 = 27; +pub const PP_ADMIN_PIN: u32 = 31; +pub const PP_KEYEXCHANGE_PIN: u32 = 32; +pub const PP_SIGNATURE_PIN: u32 = 33; +pub const PP_SIG_KEYSIZE_INC: u32 = 34; +pub const PP_KEYX_KEYSIZE_INC: u32 = 35; +pub const PP_UNIQUE_CONTAINER: u32 = 36; +pub const PP_SGC_INFO: u32 = 37; +pub const PP_USE_HARDWARE_RNG: u32 = 38; +pub const PP_KEYSPEC: u32 = 39; +pub const PP_ENUMEX_SIGNING_PROT: u32 = 40; +pub const PP_CRYPT_COUNT_KEY_USE: u32 = 41; +pub const PP_USER_CERTSTORE: u32 = 42; +pub const PP_SMARTCARD_READER: u32 = 43; +pub const PP_SMARTCARD_GUID: u32 = 45; +pub const PP_ROOT_CERTSTORE: u32 = 46; +pub const PP_SMARTCARD_READER_ICON: u32 = 47; +pub const CRYPT_FIRST: u32 = 1; +pub const CRYPT_NEXT: u32 = 2; +pub const CRYPT_SGC_ENUM: u32 = 4; +pub const CRYPT_IMPL_HARDWARE: u32 = 1; +pub const CRYPT_IMPL_SOFTWARE: u32 = 2; +pub const CRYPT_IMPL_MIXED: u32 = 3; +pub const CRYPT_IMPL_UNKNOWN: u32 = 4; +pub const CRYPT_IMPL_REMOVABLE: u32 = 8; +pub const CRYPT_SEC_DESCR: u32 = 1; +pub const CRYPT_PSTORE: u32 = 2; +pub const CRYPT_UI_PROMPT: u32 = 4; +pub const CRYPT_FLAG_PCT1: u32 = 1; +pub const CRYPT_FLAG_SSL2: u32 = 2; +pub const CRYPT_FLAG_SSL3: u32 = 4; +pub const CRYPT_FLAG_TLS1: u32 = 8; +pub const CRYPT_FLAG_IPSEC: u32 = 16; +pub const CRYPT_FLAG_SIGNING: u32 = 32; +pub const CRYPT_SGC: u32 = 1; +pub const CRYPT_FASTSGC: u32 = 2; +pub const PP_CLIENT_HWND: u32 = 1; +pub const PP_CONTEXT_INFO: u32 = 11; +pub const PP_KEYEXCHANGE_KEYSIZE: u32 = 12; +pub const PP_SIGNATURE_KEYSIZE: u32 = 13; +pub const PP_KEYEXCHANGE_ALG: u32 = 14; +pub const PP_SIGNATURE_ALG: u32 = 15; +pub const PP_DELETEKEY: u32 = 24; +pub const PP_PIN_PROMPT_STRING: u32 = 44; +pub const PP_SECURE_KEYEXCHANGE_PIN: u32 = 47; +pub const PP_SECURE_SIGNATURE_PIN: u32 = 48; +pub const PP_DISMISS_PIN_UI_SEC: u32 = 49; +pub const PP_IS_PFX_EPHEMERAL: u32 = 50; +pub const PROV_RSA_FULL: u32 = 1; +pub const PROV_RSA_SIG: u32 = 2; +pub const PROV_DSS: u32 = 3; +pub const PROV_FORTEZZA: u32 = 4; +pub const PROV_MS_EXCHANGE: u32 = 5; +pub const PROV_SSL: u32 = 6; +pub const PROV_RSA_SCHANNEL: u32 = 12; +pub const PROV_DSS_DH: u32 = 13; +pub const PROV_EC_ECDSA_SIG: u32 = 14; +pub const PROV_EC_ECNRA_SIG: u32 = 15; +pub const PROV_EC_ECDSA_FULL: u32 = 16; +pub const PROV_EC_ECNRA_FULL: u32 = 17; +pub const PROV_DH_SCHANNEL: u32 = 18; +pub const PROV_SPYRUS_LYNKS: u32 = 20; +pub const PROV_RNG: u32 = 21; +pub const PROV_INTEL_SEC: u32 = 22; +pub const PROV_REPLACE_OWF: u32 = 23; +pub const PROV_RSA_AES: u32 = 24; +pub const MS_DEF_PROV_A: &[u8; 43] = b"Microsoft Base Cryptographic Provider v1.0\0"; +pub const MS_DEF_PROV_W: &[u8; 43] = b"Microsoft Base Cryptographic Provider v1.0\0"; +pub const MS_DEF_PROV: &[u8; 43] = b"Microsoft Base Cryptographic Provider v1.0\0"; +pub const MS_ENHANCED_PROV_A: &[u8; 47] = b"Microsoft Enhanced Cryptographic Provider v1.0\0"; +pub const MS_ENHANCED_PROV_W: &[u8; 47] = b"Microsoft Enhanced Cryptographic Provider v1.0\0"; +pub const MS_ENHANCED_PROV: &[u8; 47] = b"Microsoft Enhanced Cryptographic Provider v1.0\0"; +pub const MS_STRONG_PROV_A: &[u8; 40] = b"Microsoft Strong Cryptographic Provider\0"; +pub const MS_STRONG_PROV_W: &[u8; 40] = b"Microsoft Strong Cryptographic Provider\0"; +pub const MS_STRONG_PROV: &[u8; 40] = b"Microsoft Strong Cryptographic Provider\0"; +pub const MS_DEF_RSA_SIG_PROV_A: &[u8; 47] = b"Microsoft RSA Signature Cryptographic Provider\0"; +pub const MS_DEF_RSA_SIG_PROV_W: &[u8; 47] = b"Microsoft RSA Signature Cryptographic Provider\0"; +pub const MS_DEF_RSA_SIG_PROV: &[u8; 47] = b"Microsoft RSA Signature Cryptographic Provider\0"; +pub const MS_DEF_RSA_SCHANNEL_PROV_A: &[u8; 46] = + b"Microsoft RSA SChannel Cryptographic Provider\0"; +pub const MS_DEF_RSA_SCHANNEL_PROV_W: &[u8; 46] = + b"Microsoft RSA SChannel Cryptographic Provider\0"; +pub const MS_DEF_RSA_SCHANNEL_PROV: &[u8; 46] = b"Microsoft RSA SChannel Cryptographic Provider\0"; +pub const MS_DEF_DSS_PROV_A: &[u8; 42] = b"Microsoft Base DSS Cryptographic Provider\0"; +pub const MS_DEF_DSS_PROV_W: &[u8; 42] = b"Microsoft Base DSS Cryptographic Provider\0"; +pub const MS_DEF_DSS_PROV: &[u8; 42] = b"Microsoft Base DSS Cryptographic Provider\0"; +pub const MS_DEF_DSS_DH_PROV_A: &[u8; 61] = + b"Microsoft Base DSS and Diffie-Hellman Cryptographic Provider\0"; +pub const MS_DEF_DSS_DH_PROV_W: &[u8; 61] = + b"Microsoft Base DSS and Diffie-Hellman Cryptographic Provider\0"; +pub const MS_DEF_DSS_DH_PROV: &[u8; 61] = + b"Microsoft Base DSS and Diffie-Hellman Cryptographic Provider\0"; +pub const MS_ENH_DSS_DH_PROV_A: &[u8; 65] = + b"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider\0"; +pub const MS_ENH_DSS_DH_PROV_W: &[u8; 65] = + b"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider\0"; +pub const MS_ENH_DSS_DH_PROV: &[u8; 65] = + b"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider\0"; +pub const MS_DEF_DH_SCHANNEL_PROV_A: &[u8; 45] = b"Microsoft DH SChannel Cryptographic Provider\0"; +pub const MS_DEF_DH_SCHANNEL_PROV_W: &[u8; 45] = b"Microsoft DH SChannel Cryptographic Provider\0"; +pub const MS_DEF_DH_SCHANNEL_PROV: &[u8; 45] = b"Microsoft DH SChannel Cryptographic Provider\0"; +pub const MS_SCARD_PROV_A: &[u8; 42] = b"Microsoft Base Smart Card Crypto Provider\0"; +pub const MS_SCARD_PROV_W: &[u8; 42] = b"Microsoft Base Smart Card Crypto Provider\0"; +pub const MS_SCARD_PROV: &[u8; 42] = b"Microsoft Base Smart Card Crypto Provider\0"; +pub const MS_ENH_RSA_AES_PROV_A: &[u8; 54] = + b"Microsoft Enhanced RSA and AES Cryptographic Provider\0"; +pub const MS_ENH_RSA_AES_PROV_W: &[u8; 54] = + b"Microsoft Enhanced RSA and AES Cryptographic Provider\0"; +pub const MS_ENH_RSA_AES_PROV_XP_A: &[u8; 66] = + b"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)\0"; +pub const MS_ENH_RSA_AES_PROV_XP_W: &[u8; 66] = + b"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)\0"; +pub const MS_ENH_RSA_AES_PROV_XP: &[u8; 66] = + b"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)\0"; +pub const MS_ENH_RSA_AES_PROV: &[u8; 54] = + b"Microsoft Enhanced RSA and AES Cryptographic Provider\0"; +pub const MAXUIDLEN: u32 = 64; +pub const EXPO_OFFLOAD_REG_VALUE: &[u8; 12] = b"ExpoOffload\0"; +pub const EXPO_OFFLOAD_FUNC_NAME: &[u8; 15] = b"OffloadModExpo\0"; +pub const szKEY_CRYPTOAPI_PRIVATE_KEY_OPTIONS: &[u8; 41] = + b"Software\\Policies\\Microsoft\\Cryptography\0"; +pub const szKEY_CACHE_ENABLED: &[u8; 17] = b"CachePrivateKeys\0"; +pub const szKEY_CACHE_SECONDS: &[u8; 26] = b"PrivateKeyLifetimeSeconds\0"; +pub const szPRIV_KEY_CACHE_MAX_ITEMS: &[u8; 21] = b"PrivKeyCacheMaxItems\0"; +pub const cPRIV_KEY_CACHE_MAX_ITEMS_DEFAULT: u32 = 20; +pub const szPRIV_KEY_CACHE_PURGE_INTERVAL_SECONDS: &[u8; 33] = + b"PrivKeyCachePurgeIntervalSeconds\0"; +pub const cPRIV_KEY_CACHE_PURGE_INTERVAL_SECONDS_DEFAULT: u32 = 86400; +pub const CUR_BLOB_VERSION: u32 = 2; +pub const SCHANNEL_MAC_KEY: u32 = 0; +pub const SCHANNEL_ENC_KEY: u32 = 1; +pub const INTERNATIONAL_USAGE: u32 = 1; +pub const BCRYPT_OBJECT_ALIGNMENT: u32 = 16; +pub const BCRYPT_KDF_HASH: &[u8; 5] = b"HASH\0"; +pub const BCRYPT_KDF_HMAC: &[u8; 5] = b"HMAC\0"; +pub const BCRYPT_KDF_TLS_PRF: &[u8; 8] = b"TLS_PRF\0"; +pub const BCRYPT_KDF_SP80056A_CONCAT: &[u8; 17] = b"SP800_56A_CONCAT\0"; +pub const BCRYPT_KDF_RAW_SECRET: &[u8; 9] = b"TRUNCATE\0"; +pub const BCRYPT_KDF_HKDF: &[u8; 5] = b"HKDF\0"; +pub const KDF_HASH_ALGORITHM: u32 = 0; +pub const KDF_SECRET_PREPEND: u32 = 1; +pub const KDF_SECRET_APPEND: u32 = 2; +pub const KDF_HMAC_KEY: u32 = 3; +pub const KDF_TLS_PRF_LABEL: u32 = 4; +pub const KDF_TLS_PRF_SEED: u32 = 5; +pub const KDF_SECRET_HANDLE: u32 = 6; +pub const KDF_TLS_PRF_PROTOCOL: u32 = 7; +pub const KDF_ALGORITHMID: u32 = 8; +pub const KDF_PARTYUINFO: u32 = 9; +pub const KDF_PARTYVINFO: u32 = 10; +pub const KDF_SUPPPUBINFO: u32 = 11; +pub const KDF_SUPPPRIVINFO: u32 = 12; +pub const KDF_LABEL: u32 = 13; +pub const KDF_CONTEXT: u32 = 14; +pub const KDF_SALT: u32 = 15; +pub const KDF_ITERATION_COUNT: u32 = 16; +pub const KDF_GENERIC_PARAMETER: u32 = 17; +pub const KDF_KEYBITLENGTH: u32 = 18; +pub const KDF_HKDF_SALT: u32 = 19; +pub const KDF_HKDF_INFO: u32 = 20; +pub const KDF_USE_SECRET_AS_HMAC_KEY_FLAG: u32 = 1; +pub const BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO_VERSION: u32 = 1; +pub const BCRYPT_AUTH_MODE_CHAIN_CALLS_FLAG: u32 = 1; +pub const BCRYPT_AUTH_MODE_IN_PROGRESS_FLAG: u32 = 2; +pub const BCRYPT_OPAQUE_KEY_BLOB: &[u8; 14] = b"OpaqueKeyBlob\0"; +pub const BCRYPT_KEY_DATA_BLOB: &[u8; 12] = b"KeyDataBlob\0"; +pub const BCRYPT_AES_WRAP_KEY_BLOB: &[u8; 19] = b"Rfc3565KeyWrapBlob\0"; +pub const BCRYPT_OBJECT_LENGTH: &[u8; 13] = b"ObjectLength\0"; +pub const BCRYPT_ALGORITHM_NAME: &[u8; 14] = b"AlgorithmName\0"; +pub const BCRYPT_PROVIDER_HANDLE: &[u8; 15] = b"ProviderHandle\0"; +pub const BCRYPT_CHAINING_MODE: &[u8; 13] = b"ChainingMode\0"; +pub const BCRYPT_BLOCK_LENGTH: &[u8; 12] = b"BlockLength\0"; +pub const BCRYPT_KEY_LENGTH: &[u8; 10] = b"KeyLength\0"; +pub const BCRYPT_KEY_OBJECT_LENGTH: &[u8; 16] = b"KeyObjectLength\0"; +pub const BCRYPT_KEY_STRENGTH: &[u8; 12] = b"KeyStrength\0"; +pub const BCRYPT_KEY_LENGTHS: &[u8; 11] = b"KeyLengths\0"; +pub const BCRYPT_BLOCK_SIZE_LIST: &[u8; 14] = b"BlockSizeList\0"; +pub const BCRYPT_EFFECTIVE_KEY_LENGTH: &[u8; 19] = b"EffectiveKeyLength\0"; +pub const BCRYPT_HASH_LENGTH: &[u8; 17] = b"HashDigestLength\0"; +pub const BCRYPT_HASH_OID_LIST: &[u8; 12] = b"HashOIDList\0"; +pub const BCRYPT_PADDING_SCHEMES: &[u8; 15] = b"PaddingSchemes\0"; +pub const BCRYPT_SIGNATURE_LENGTH: &[u8; 16] = b"SignatureLength\0"; +pub const BCRYPT_HASH_BLOCK_LENGTH: &[u8; 16] = b"HashBlockLength\0"; +pub const BCRYPT_AUTH_TAG_LENGTH: &[u8; 14] = b"AuthTagLength\0"; +pub const BCRYPT_PRIMITIVE_TYPE: &[u8; 14] = b"PrimitiveType\0"; +pub const BCRYPT_IS_KEYED_HASH: &[u8; 12] = b"IsKeyedHash\0"; +pub const BCRYPT_IS_REUSABLE_HASH: &[u8; 15] = b"IsReusableHash\0"; +pub const BCRYPT_MESSAGE_BLOCK_LENGTH: &[u8; 19] = b"MessageBlockLength\0"; +pub const BCRYPT_PUBLIC_KEY_LENGTH: &[u8; 16] = b"PublicKeyLength\0"; +pub const BCRYPT_PCP_PLATFORM_TYPE_PROPERTY: &[u8; 18] = b"PCP_PLATFORM_TYPE\0"; +pub const BCRYPT_PCP_PROVIDER_VERSION_PROPERTY: &[u8; 21] = b"PCP_PROVIDER_VERSION\0"; +pub const BCRYPT_MULTI_OBJECT_LENGTH: &[u8; 18] = b"MultiObjectLength\0"; +pub const BCRYPT_IS_IFX_TPM_WEAK_KEY: &[u8; 16] = b"IsIfxTpmWeakKey\0"; +pub const BCRYPT_HKDF_HASH_ALGORITHM: &[u8; 18] = b"HkdfHashAlgorithm\0"; +pub const BCRYPT_HKDF_SALT_AND_FINALIZE: &[u8; 20] = b"HkdfSaltAndFinalize\0"; +pub const BCRYPT_HKDF_PRK_AND_FINALIZE: &[u8; 19] = b"HkdfPrkAndFinalize\0"; +pub const BCRYPT_INITIALIZATION_VECTOR: &[u8; 3] = b"IV\0"; +pub const BCRYPT_CHAIN_MODE_NA: &[u8; 16] = b"ChainingModeN/A\0"; +pub const BCRYPT_CHAIN_MODE_CBC: &[u8; 16] = b"ChainingModeCBC\0"; +pub const BCRYPT_CHAIN_MODE_ECB: &[u8; 16] = b"ChainingModeECB\0"; +pub const BCRYPT_CHAIN_MODE_CFB: &[u8; 16] = b"ChainingModeCFB\0"; +pub const BCRYPT_CHAIN_MODE_CCM: &[u8; 16] = b"ChainingModeCCM\0"; +pub const BCRYPT_CHAIN_MODE_GCM: &[u8; 16] = b"ChainingModeGCM\0"; +pub const BCRYPT_SUPPORTED_PAD_ROUTER: u32 = 1; +pub const BCRYPT_SUPPORTED_PAD_PKCS1_ENC: u32 = 2; +pub const BCRYPT_SUPPORTED_PAD_PKCS1_SIG: u32 = 4; +pub const BCRYPT_SUPPORTED_PAD_OAEP: u32 = 8; +pub const BCRYPT_SUPPORTED_PAD_PSS: u32 = 16; +pub const BCRYPT_PROV_DISPATCH: u32 = 1; +pub const BCRYPT_BLOCK_PADDING: u32 = 1; +pub const BCRYPT_GENERATE_IV: u32 = 32; +pub const BCRYPT_PAD_NONE: u32 = 1; +pub const BCRYPT_PAD_PKCS1: u32 = 2; +pub const BCRYPT_PAD_OAEP: u32 = 4; +pub const BCRYPT_PAD_PSS: u32 = 8; +pub const BCRYPT_PAD_PKCS1_OPTIONAL_HASH_OID: u32 = 16; +pub const BCRYPTBUFFER_VERSION: u32 = 0; +pub const BCRYPT_PUBLIC_KEY_BLOB: &[u8; 11] = b"PUBLICBLOB\0"; +pub const BCRYPT_PRIVATE_KEY_BLOB: &[u8; 12] = b"PRIVATEBLOB\0"; +pub const BCRYPT_RSAPUBLIC_BLOB: &[u8; 14] = b"RSAPUBLICBLOB\0"; +pub const BCRYPT_RSAPRIVATE_BLOB: &[u8; 15] = b"RSAPRIVATEBLOB\0"; +pub const LEGACY_RSAPUBLIC_BLOB: &[u8; 15] = b"CAPIPUBLICBLOB\0"; +pub const LEGACY_RSAPRIVATE_BLOB: &[u8; 16] = b"CAPIPRIVATEBLOB\0"; +pub const BCRYPT_RSAPUBLIC_MAGIC: u32 = 826364754; +pub const BCRYPT_RSAPRIVATE_MAGIC: u32 = 843141970; +pub const BCRYPT_RSAFULLPRIVATE_BLOB: &[u8; 19] = b"RSAFULLPRIVATEBLOB\0"; +pub const BCRYPT_RSAFULLPRIVATE_MAGIC: u32 = 859919186; +pub const BCRYPT_GLOBAL_PARAMETERS: &[u8; 21] = b"SecretAgreementParam\0"; +pub const BCRYPT_PRIVATE_KEY: &[u8; 11] = b"PrivKeyVal\0"; +pub const BCRYPT_ECCPUBLIC_BLOB: &[u8; 14] = b"ECCPUBLICBLOB\0"; +pub const BCRYPT_ECCPRIVATE_BLOB: &[u8; 15] = b"ECCPRIVATEBLOB\0"; +pub const BCRYPT_ECCFULLPUBLIC_BLOB: &[u8; 18] = b"ECCFULLPUBLICBLOB\0"; +pub const BCRYPT_ECCFULLPRIVATE_BLOB: &[u8; 19] = b"ECCFULLPRIVATEBLOB\0"; +pub const SSL_ECCPUBLIC_BLOB: &[u8; 17] = b"SSLECCPUBLICBLOB\0"; +pub const BCRYPT_ECDH_PUBLIC_P256_MAGIC: u32 = 827016005; +pub const BCRYPT_ECDH_PRIVATE_P256_MAGIC: u32 = 843793221; +pub const BCRYPT_ECDH_PUBLIC_P384_MAGIC: u32 = 860570437; +pub const BCRYPT_ECDH_PRIVATE_P384_MAGIC: u32 = 877347653; +pub const BCRYPT_ECDH_PUBLIC_P521_MAGIC: u32 = 894124869; +pub const BCRYPT_ECDH_PRIVATE_P521_MAGIC: u32 = 910902085; +pub const BCRYPT_ECDH_PUBLIC_GENERIC_MAGIC: u32 = 1347109701; +pub const BCRYPT_ECDH_PRIVATE_GENERIC_MAGIC: u32 = 1447772997; +pub const BCRYPT_ECDSA_PUBLIC_P256_MAGIC: u32 = 827540293; +pub const BCRYPT_ECDSA_PRIVATE_P256_MAGIC: u32 = 844317509; +pub const BCRYPT_ECDSA_PUBLIC_P384_MAGIC: u32 = 861094725; +pub const BCRYPT_ECDSA_PRIVATE_P384_MAGIC: u32 = 877871941; +pub const BCRYPT_ECDSA_PUBLIC_P521_MAGIC: u32 = 894649157; +pub const BCRYPT_ECDSA_PRIVATE_P521_MAGIC: u32 = 911426373; +pub const BCRYPT_ECDSA_PUBLIC_GENERIC_MAGIC: u32 = 1346650949; +pub const BCRYPT_ECDSA_PRIVATE_GENERIC_MAGIC: u32 = 1447314245; +pub const BCRYPT_ECC_FULLKEY_BLOB_V1: u32 = 1; +pub const BCRYPT_DH_PUBLIC_BLOB: &[u8; 13] = b"DHPUBLICBLOB\0"; +pub const BCRYPT_DH_PRIVATE_BLOB: &[u8; 14] = b"DHPRIVATEBLOB\0"; +pub const LEGACY_DH_PUBLIC_BLOB: &[u8; 17] = b"CAPIDHPUBLICBLOB\0"; +pub const LEGACY_DH_PRIVATE_BLOB: &[u8; 18] = b"CAPIDHPRIVATEBLOB\0"; +pub const BCRYPT_DH_PUBLIC_MAGIC: u32 = 1112557636; +pub const BCRYPT_DH_PRIVATE_MAGIC: u32 = 1448101956; +pub const BCRYPT_DH_PARAMETERS: &[u8; 13] = b"DHParameters\0"; +pub const BCRYPT_DH_PARAMETERS_MAGIC: u32 = 1297107012; +pub const BCRYPT_DSA_PUBLIC_BLOB: &[u8; 14] = b"DSAPUBLICBLOB\0"; +pub const BCRYPT_DSA_PRIVATE_BLOB: &[u8; 15] = b"DSAPRIVATEBLOB\0"; +pub const LEGACY_DSA_PUBLIC_BLOB: &[u8; 18] = b"CAPIDSAPUBLICBLOB\0"; +pub const LEGACY_DSA_PRIVATE_BLOB: &[u8; 19] = b"CAPIDSAPRIVATEBLOB\0"; +pub const LEGACY_DSA_V2_PUBLIC_BLOB: &[u8; 20] = b"V2CAPIDSAPUBLICBLOB\0"; +pub const LEGACY_DSA_V2_PRIVATE_BLOB: &[u8; 21] = b"V2CAPIDSAPRIVATEBLOB\0"; +pub const BCRYPT_DSA_PUBLIC_MAGIC: u32 = 1112560452; +pub const BCRYPT_DSA_PRIVATE_MAGIC: u32 = 1448104772; +pub const BCRYPT_DSA_PUBLIC_MAGIC_V2: u32 = 843206724; +pub const BCRYPT_DSA_PRIVATE_MAGIC_V2: u32 = 844517444; +pub const BCRYPT_KEY_DATA_BLOB_MAGIC: u32 = 1296188491; +pub const BCRYPT_KEY_DATA_BLOB_VERSION1: u32 = 1; +pub const BCRYPT_DSA_PARAMETERS: &[u8; 14] = b"DSAParameters\0"; +pub const BCRYPT_DSA_PARAMETERS_MAGIC: u32 = 1297109828; +pub const BCRYPT_DSA_PARAMETERS_MAGIC_V2: u32 = 843927620; +pub const BCRYPT_ECC_PARAMETERS: &[u8; 14] = b"ECCParameters\0"; +pub const BCRYPT_ECC_CURVE_NAME: &[u8; 13] = b"ECCCurveName\0"; +pub const BCRYPT_ECC_CURVE_NAME_LIST: &[u8; 17] = b"ECCCurveNameList\0"; +pub const BCRYPT_ECC_PARAMETERS_MAGIC: u32 = 1346585413; +pub const BCRYPT_ECC_CURVE_BRAINPOOLP160R1: &[u8; 16] = b"brainpoolP160r1\0"; +pub const BCRYPT_ECC_CURVE_BRAINPOOLP160T1: &[u8; 16] = b"brainpoolP160t1\0"; +pub const BCRYPT_ECC_CURVE_BRAINPOOLP192R1: &[u8; 16] = b"brainpoolP192r1\0"; +pub const BCRYPT_ECC_CURVE_BRAINPOOLP192T1: &[u8; 16] = b"brainpoolP192t1\0"; +pub const BCRYPT_ECC_CURVE_BRAINPOOLP224R1: &[u8; 16] = b"brainpoolP224r1\0"; +pub const BCRYPT_ECC_CURVE_BRAINPOOLP224T1: &[u8; 16] = b"brainpoolP224t1\0"; +pub const BCRYPT_ECC_CURVE_BRAINPOOLP256R1: &[u8; 16] = b"brainpoolP256r1\0"; +pub const BCRYPT_ECC_CURVE_BRAINPOOLP256T1: &[u8; 16] = b"brainpoolP256t1\0"; +pub const BCRYPT_ECC_CURVE_BRAINPOOLP320R1: &[u8; 16] = b"brainpoolP320r1\0"; +pub const BCRYPT_ECC_CURVE_BRAINPOOLP320T1: &[u8; 16] = b"brainpoolP320t1\0"; +pub const BCRYPT_ECC_CURVE_BRAINPOOLP384R1: &[u8; 16] = b"brainpoolP384r1\0"; +pub const BCRYPT_ECC_CURVE_BRAINPOOLP384T1: &[u8; 16] = b"brainpoolP384t1\0"; +pub const BCRYPT_ECC_CURVE_BRAINPOOLP512R1: &[u8; 16] = b"brainpoolP512r1\0"; +pub const BCRYPT_ECC_CURVE_BRAINPOOLP512T1: &[u8; 16] = b"brainpoolP512t1\0"; +pub const BCRYPT_ECC_CURVE_25519: &[u8; 11] = b"curve25519\0"; +pub const BCRYPT_ECC_CURVE_EC192WAPI: &[u8; 10] = b"ec192wapi\0"; +pub const BCRYPT_ECC_CURVE_NISTP192: &[u8; 9] = b"nistP192\0"; +pub const BCRYPT_ECC_CURVE_NISTP224: &[u8; 9] = b"nistP224\0"; +pub const BCRYPT_ECC_CURVE_NISTP256: &[u8; 9] = b"nistP256\0"; +pub const BCRYPT_ECC_CURVE_NISTP384: &[u8; 9] = b"nistP384\0"; +pub const BCRYPT_ECC_CURVE_NISTP521: &[u8; 9] = b"nistP521\0"; +pub const BCRYPT_ECC_CURVE_NUMSP256T1: &[u8; 11] = b"numsP256t1\0"; +pub const BCRYPT_ECC_CURVE_NUMSP384T1: &[u8; 11] = b"numsP384t1\0"; +pub const BCRYPT_ECC_CURVE_NUMSP512T1: &[u8; 11] = b"numsP512t1\0"; +pub const BCRYPT_ECC_CURVE_SECP160K1: &[u8; 10] = b"secP160k1\0"; +pub const BCRYPT_ECC_CURVE_SECP160R1: &[u8; 10] = b"secP160r1\0"; +pub const BCRYPT_ECC_CURVE_SECP160R2: &[u8; 10] = b"secP160r2\0"; +pub const BCRYPT_ECC_CURVE_SECP192K1: &[u8; 10] = b"secP192k1\0"; +pub const BCRYPT_ECC_CURVE_SECP192R1: &[u8; 10] = b"secP192r1\0"; +pub const BCRYPT_ECC_CURVE_SECP224K1: &[u8; 10] = b"secP224k1\0"; +pub const BCRYPT_ECC_CURVE_SECP224R1: &[u8; 10] = b"secP224r1\0"; +pub const BCRYPT_ECC_CURVE_SECP256K1: &[u8; 10] = b"secP256k1\0"; +pub const BCRYPT_ECC_CURVE_SECP256R1: &[u8; 10] = b"secP256r1\0"; +pub const BCRYPT_ECC_CURVE_SECP384R1: &[u8; 10] = b"secP384r1\0"; +pub const BCRYPT_ECC_CURVE_SECP521R1: &[u8; 10] = b"secP521r1\0"; +pub const BCRYPT_ECC_CURVE_WTLS7: &[u8; 6] = b"wtls7\0"; +pub const BCRYPT_ECC_CURVE_WTLS9: &[u8; 6] = b"wtls9\0"; +pub const BCRYPT_ECC_CURVE_WTLS12: &[u8; 7] = b"wtls12\0"; +pub const BCRYPT_ECC_CURVE_X962P192V1: &[u8; 11] = b"x962P192v1\0"; +pub const BCRYPT_ECC_CURVE_X962P192V2: &[u8; 11] = b"x962P192v2\0"; +pub const BCRYPT_ECC_CURVE_X962P192V3: &[u8; 11] = b"x962P192v3\0"; +pub const BCRYPT_ECC_CURVE_X962P239V1: &[u8; 11] = b"x962P239v1\0"; +pub const BCRYPT_ECC_CURVE_X962P239V2: &[u8; 11] = b"x962P239v2\0"; +pub const BCRYPT_ECC_CURVE_X962P239V3: &[u8; 11] = b"x962P239v3\0"; +pub const BCRYPT_ECC_CURVE_X962P256V1: &[u8; 11] = b"x962P256v1\0"; +pub const MS_PRIMITIVE_PROVIDER: &[u8; 29] = b"Microsoft Primitive Provider\0"; +pub const MS_PLATFORM_CRYPTO_PROVIDER: &[u8; 35] = b"Microsoft Platform Crypto Provider\0"; +pub const BCRYPT_RSA_ALGORITHM: &[u8; 4] = b"RSA\0"; +pub const BCRYPT_RSA_SIGN_ALGORITHM: &[u8; 9] = b"RSA_SIGN\0"; +pub const BCRYPT_DH_ALGORITHM: &[u8; 3] = b"DH\0"; +pub const BCRYPT_DSA_ALGORITHM: &[u8; 4] = b"DSA\0"; +pub const BCRYPT_RC2_ALGORITHM: &[u8; 4] = b"RC2\0"; +pub const BCRYPT_RC4_ALGORITHM: &[u8; 4] = b"RC4\0"; +pub const BCRYPT_AES_ALGORITHM: &[u8; 4] = b"AES\0"; +pub const BCRYPT_DES_ALGORITHM: &[u8; 4] = b"DES\0"; +pub const BCRYPT_DESX_ALGORITHM: &[u8; 5] = b"DESX\0"; +pub const BCRYPT_3DES_ALGORITHM: &[u8; 5] = b"3DES\0"; +pub const BCRYPT_3DES_112_ALGORITHM: &[u8; 9] = b"3DES_112\0"; +pub const BCRYPT_MD2_ALGORITHM: &[u8; 4] = b"MD2\0"; +pub const BCRYPT_MD4_ALGORITHM: &[u8; 4] = b"MD4\0"; +pub const BCRYPT_MD5_ALGORITHM: &[u8; 4] = b"MD5\0"; +pub const BCRYPT_SHA1_ALGORITHM: &[u8; 5] = b"SHA1\0"; +pub const BCRYPT_SHA256_ALGORITHM: &[u8; 7] = b"SHA256\0"; +pub const BCRYPT_SHA384_ALGORITHM: &[u8; 7] = b"SHA384\0"; +pub const BCRYPT_SHA512_ALGORITHM: &[u8; 7] = b"SHA512\0"; +pub const BCRYPT_AES_GMAC_ALGORITHM: &[u8; 9] = b"AES-GMAC\0"; +pub const BCRYPT_AES_CMAC_ALGORITHM: &[u8; 9] = b"AES-CMAC\0"; +pub const BCRYPT_ECDSA_P256_ALGORITHM: &[u8; 11] = b"ECDSA_P256\0"; +pub const BCRYPT_ECDSA_P384_ALGORITHM: &[u8; 11] = b"ECDSA_P384\0"; +pub const BCRYPT_ECDSA_P521_ALGORITHM: &[u8; 11] = b"ECDSA_P521\0"; +pub const BCRYPT_ECDH_P256_ALGORITHM: &[u8; 10] = b"ECDH_P256\0"; +pub const BCRYPT_ECDH_P384_ALGORITHM: &[u8; 10] = b"ECDH_P384\0"; +pub const BCRYPT_ECDH_P521_ALGORITHM: &[u8; 10] = b"ECDH_P521\0"; +pub const BCRYPT_RNG_ALGORITHM: &[u8; 4] = b"RNG\0"; +pub const BCRYPT_RNG_FIPS186_DSA_ALGORITHM: &[u8; 14] = b"FIPS186DSARNG\0"; +pub const BCRYPT_RNG_DUAL_EC_ALGORITHM: &[u8; 10] = b"DUALECRNG\0"; +pub const BCRYPT_SP800108_CTR_HMAC_ALGORITHM: &[u8; 19] = b"SP800_108_CTR_HMAC\0"; +pub const BCRYPT_SP80056A_CONCAT_ALGORITHM: &[u8; 17] = b"SP800_56A_CONCAT\0"; +pub const BCRYPT_PBKDF2_ALGORITHM: &[u8; 7] = b"PBKDF2\0"; +pub const BCRYPT_CAPI_KDF_ALGORITHM: &[u8; 9] = b"CAPI_KDF\0"; +pub const BCRYPT_TLS1_1_KDF_ALGORITHM: &[u8; 11] = b"TLS1_1_KDF\0"; +pub const BCRYPT_TLS1_2_KDF_ALGORITHM: &[u8; 11] = b"TLS1_2_KDF\0"; +pub const BCRYPT_ECDSA_ALGORITHM: &[u8; 6] = b"ECDSA\0"; +pub const BCRYPT_ECDH_ALGORITHM: &[u8; 5] = b"ECDH\0"; +pub const BCRYPT_XTS_AES_ALGORITHM: &[u8; 8] = b"XTS-AES\0"; +pub const BCRYPT_HKDF_ALGORITHM: &[u8; 5] = b"HKDF\0"; +pub const BCRYPT_CHACHA20_POLY1305_ALGORITHM: &[u8; 18] = b"CHACHA20_POLY1305\0"; +pub const BCRYPT_CIPHER_INTERFACE: u32 = 1; +pub const BCRYPT_HASH_INTERFACE: u32 = 2; +pub const BCRYPT_ASYMMETRIC_ENCRYPTION_INTERFACE: u32 = 3; +pub const BCRYPT_SECRET_AGREEMENT_INTERFACE: u32 = 4; +pub const BCRYPT_SIGNATURE_INTERFACE: u32 = 5; +pub const BCRYPT_RNG_INTERFACE: u32 = 6; +pub const BCRYPT_KEY_DERIVATION_INTERFACE: u32 = 7; +pub const BCRYPT_ALG_HANDLE_HMAC_FLAG: u32 = 8; +pub const BCRYPT_HASH_REUSABLE_FLAG: u32 = 32; +pub const BCRYPT_CAPI_AES_FLAG: u32 = 16; +pub const BCRYPT_MULTI_FLAG: u32 = 64; +pub const BCRYPT_TLS_CBC_HMAC_VERIFY_FLAG: u32 = 4; +pub const BCRYPT_BUFFERS_LOCKED_FLAG: u32 = 64; +pub const BCRYPT_EXTENDED_KEYSIZE: u32 = 128; +pub const BCRYPT_ENABLE_INCOMPATIBLE_FIPS_CHECKS: u32 = 256; +pub const BCRYPT_CIPHER_OPERATION: u32 = 1; +pub const BCRYPT_HASH_OPERATION: u32 = 2; +pub const BCRYPT_ASYMMETRIC_ENCRYPTION_OPERATION: u32 = 4; +pub const BCRYPT_SECRET_AGREEMENT_OPERATION: u32 = 8; +pub const BCRYPT_SIGNATURE_OPERATION: u32 = 16; +pub const BCRYPT_RNG_OPERATION: u32 = 32; +pub const BCRYPT_KEY_DERIVATION_OPERATION: u32 = 64; +pub const BCRYPT_PUBLIC_KEY_FLAG: u32 = 1; +pub const BCRYPT_PRIVATE_KEY_FLAG: u32 = 2; +pub const BCRYPT_NO_KEY_VALIDATION: u32 = 8; +pub const BCRYPT_KEY_VALIDATION_RANGE: u32 = 16; +pub const BCRYPT_KEY_VALIDATION_RANGE_AND_ORDER: u32 = 24; +pub const BCRYPT_KEY_VALIDATION_REGENERATE: u32 = 32; +pub const BCRYPT_RNG_USE_ENTROPY_IN_BUFFER: u32 = 1; +pub const BCRYPT_USE_SYSTEM_PREFERRED_RNG: u32 = 2; +pub const BCRYPT_HASH_INTERFACE_MAJORVERSION_2: u32 = 2; +pub const CRYPT_MIN_DEPENDENCIES: u32 = 1; +pub const CRYPT_PROCESS_ISOLATE: u32 = 65536; +pub const CRYPT_UM: u32 = 1; +pub const CRYPT_KM: u32 = 2; +pub const CRYPT_MM: u32 = 3; +pub const CRYPT_ANY: u32 = 4; +pub const CRYPT_OVERWRITE: u32 = 1; +pub const CRYPT_LOCAL: u32 = 1; +pub const CRYPT_DOMAIN: u32 = 2; +pub const CRYPT_EXCLUSIVE: u32 = 1; +pub const CRYPT_OVERRIDE: u32 = 65536; +pub const CRYPT_ALL_FUNCTIONS: u32 = 1; +pub const CRYPT_ALL_PROVIDERS: u32 = 2; +pub const CRYPT_PRIORITY_TOP: u32 = 0; +pub const CRYPT_PRIORITY_BOTTOM: u32 = 4294967295; +pub const CRYPT_DEFAULT_CONTEXT: &[u8; 8] = b"Default\0"; +pub const NCRYPT_MAX_KEY_NAME_LENGTH: u32 = 512; +pub const NCRYPT_MAX_ALG_ID_LENGTH: u32 = 512; +pub const MS_KEY_STORAGE_PROVIDER: &[u8; 40] = b"Microsoft Software Key Storage Provider\0"; +pub const MS_SMART_CARD_KEY_STORAGE_PROVIDER: &[u8; 42] = + b"Microsoft Smart Card Key Storage Provider\0"; +pub const MS_PLATFORM_KEY_STORAGE_PROVIDER: &[u8; 35] = b"Microsoft Platform Crypto Provider\0"; +pub const MS_NGC_KEY_STORAGE_PROVIDER: &[u8; 40] = b"Microsoft Passport Key Storage Provider\0"; +pub const TPM_RSA_SRK_SEAL_KEY: &[u8; 68] = + b"MICROSOFT_PCP_KSP_RSA_SEAL_KEY_3BD1C4BF-004E-4E2F-8A4D-0BF633DCB074\0"; +pub const NCRYPT_RSA_ALGORITHM: &[u8; 4] = b"RSA\0"; +pub const NCRYPT_RSA_SIGN_ALGORITHM: &[u8; 9] = b"RSA_SIGN\0"; +pub const NCRYPT_DH_ALGORITHM: &[u8; 3] = b"DH\0"; +pub const NCRYPT_DSA_ALGORITHM: &[u8; 4] = b"DSA\0"; +pub const NCRYPT_MD2_ALGORITHM: &[u8; 4] = b"MD2\0"; +pub const NCRYPT_MD4_ALGORITHM: &[u8; 4] = b"MD4\0"; +pub const NCRYPT_MD5_ALGORITHM: &[u8; 4] = b"MD5\0"; +pub const NCRYPT_SHA1_ALGORITHM: &[u8; 5] = b"SHA1\0"; +pub const NCRYPT_SHA256_ALGORITHM: &[u8; 7] = b"SHA256\0"; +pub const NCRYPT_SHA384_ALGORITHM: &[u8; 7] = b"SHA384\0"; +pub const NCRYPT_SHA512_ALGORITHM: &[u8; 7] = b"SHA512\0"; +pub const NCRYPT_ECDSA_P256_ALGORITHM: &[u8; 11] = b"ECDSA_P256\0"; +pub const NCRYPT_ECDSA_P384_ALGORITHM: &[u8; 11] = b"ECDSA_P384\0"; +pub const NCRYPT_ECDSA_P521_ALGORITHM: &[u8; 11] = b"ECDSA_P521\0"; +pub const NCRYPT_ECDH_P256_ALGORITHM: &[u8; 10] = b"ECDH_P256\0"; +pub const NCRYPT_ECDH_P384_ALGORITHM: &[u8; 10] = b"ECDH_P384\0"; +pub const NCRYPT_ECDH_P521_ALGORITHM: &[u8; 10] = b"ECDH_P521\0"; +pub const NCRYPT_AES_ALGORITHM: &[u8; 4] = b"AES\0"; +pub const NCRYPT_RC2_ALGORITHM: &[u8; 4] = b"RC2\0"; +pub const NCRYPT_3DES_ALGORITHM: &[u8; 5] = b"3DES\0"; +pub const NCRYPT_DES_ALGORITHM: &[u8; 4] = b"DES\0"; +pub const NCRYPT_DESX_ALGORITHM: &[u8; 5] = b"DESX\0"; +pub const NCRYPT_3DES_112_ALGORITHM: &[u8; 9] = b"3DES_112\0"; +pub const NCRYPT_SP800108_CTR_HMAC_ALGORITHM: &[u8; 19] = b"SP800_108_CTR_HMAC\0"; +pub const NCRYPT_SP80056A_CONCAT_ALGORITHM: &[u8; 17] = b"SP800_56A_CONCAT\0"; +pub const NCRYPT_PBKDF2_ALGORITHM: &[u8; 7] = b"PBKDF2\0"; +pub const NCRYPT_CAPI_KDF_ALGORITHM: &[u8; 9] = b"CAPI_KDF\0"; +pub const NCRYPT_ECDSA_ALGORITHM: &[u8; 6] = b"ECDSA\0"; +pub const NCRYPT_ECDH_ALGORITHM: &[u8; 5] = b"ECDH\0"; +pub const NCRYPT_KEY_STORAGE_ALGORITHM: &[u8; 12] = b"KEY_STORAGE\0"; +pub const NCRYPT_HMAC_SHA256_ALGORITHM: &[u8; 12] = b"HMAC-SHA256\0"; +pub const NCRYPT_CIPHER_INTERFACE: u32 = 1; +pub const NCRYPT_HASH_INTERFACE: u32 = 2; +pub const NCRYPT_ASYMMETRIC_ENCRYPTION_INTERFACE: u32 = 3; +pub const NCRYPT_SECRET_AGREEMENT_INTERFACE: u32 = 4; +pub const NCRYPT_SIGNATURE_INTERFACE: u32 = 5; +pub const NCRYPT_KEY_DERIVATION_INTERFACE: u32 = 7; +pub const NCRYPT_KEY_STORAGE_INTERFACE: u32 = 65537; +pub const NCRYPT_SCHANNEL_INTERFACE: u32 = 65538; +pub const NCRYPT_SCHANNEL_SIGNATURE_INTERFACE: u32 = 65539; +pub const NCRYPT_KEY_PROTECTION_INTERFACE: u32 = 65540; +pub const NCRYPT_RSA_ALGORITHM_GROUP: &[u8; 4] = b"RSA\0"; +pub const NCRYPT_DH_ALGORITHM_GROUP: &[u8; 3] = b"DH\0"; +pub const NCRYPT_DSA_ALGORITHM_GROUP: &[u8; 4] = b"DSA\0"; +pub const NCRYPT_ECDSA_ALGORITHM_GROUP: &[u8; 6] = b"ECDSA\0"; +pub const NCRYPT_ECDH_ALGORITHM_GROUP: &[u8; 5] = b"ECDH\0"; +pub const NCRYPT_AES_ALGORITHM_GROUP: &[u8; 4] = b"AES\0"; +pub const NCRYPT_RC2_ALGORITHM_GROUP: &[u8; 4] = b"RC2\0"; +pub const NCRYPT_DES_ALGORITHM_GROUP: &[u8; 4] = b"DES\0"; +pub const NCRYPT_KEY_DERIVATION_GROUP: &[u8; 15] = b"KEY_DERIVATION\0"; +pub const NCRYPTBUFFER_VERSION: u32 = 0; +pub const NCRYPTBUFFER_EMPTY: u32 = 0; +pub const NCRYPTBUFFER_DATA: u32 = 1; +pub const NCRYPTBUFFER_PROTECTION_DESCRIPTOR_STRING: u32 = 3; +pub const NCRYPTBUFFER_PROTECTION_FLAGS: u32 = 4; +pub const NCRYPTBUFFER_SSL_CLIENT_RANDOM: u32 = 20; +pub const NCRYPTBUFFER_SSL_SERVER_RANDOM: u32 = 21; +pub const NCRYPTBUFFER_SSL_HIGHEST_VERSION: u32 = 22; +pub const NCRYPTBUFFER_SSL_CLEAR_KEY: u32 = 23; +pub const NCRYPTBUFFER_SSL_KEY_ARG_DATA: u32 = 24; +pub const NCRYPTBUFFER_SSL_SESSION_HASH: u32 = 25; +pub const NCRYPTBUFFER_PKCS_OID: u32 = 40; +pub const NCRYPTBUFFER_PKCS_ALG_OID: u32 = 41; +pub const NCRYPTBUFFER_PKCS_ALG_PARAM: u32 = 42; +pub const NCRYPTBUFFER_PKCS_ALG_ID: u32 = 43; +pub const NCRYPTBUFFER_PKCS_ATTRS: u32 = 44; +pub const NCRYPTBUFFER_PKCS_KEY_NAME: u32 = 45; +pub const NCRYPTBUFFER_PKCS_SECRET: u32 = 46; +pub const NCRYPTBUFFER_CERT_BLOB: u32 = 47; +pub const NCRYPTBUFFER_CLAIM_IDBINDING_NONCE: u32 = 48; +pub const NCRYPTBUFFER_CLAIM_KEYATTESTATION_NONCE: u32 = 49; +pub const NCRYPTBUFFER_KEY_PROPERTY_FLAGS: u32 = 50; +pub const NCRYPTBUFFER_ATTESTATIONSTATEMENT_BLOB: u32 = 51; +pub const NCRYPTBUFFER_ATTESTATION_CLAIM_TYPE: u32 = 52; +pub const NCRYPTBUFFER_ATTESTATION_CLAIM_CHALLENGE_REQUIRED: u32 = 53; +pub const NCRYPTBUFFER_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS: u32 = 54; +pub const NCRYPTBUFFER_ECC_CURVE_NAME: u32 = 60; +pub const NCRYPTBUFFER_ECC_PARAMETERS: u32 = 61; +pub const NCRYPTBUFFER_TPM_SEAL_PASSWORD: u32 = 70; +pub const NCRYPTBUFFER_TPM_SEAL_POLICYINFO: u32 = 71; +pub const NCRYPTBUFFER_TPM_SEAL_TICKET: u32 = 72; +pub const NCRYPTBUFFER_TPM_SEAL_NO_DA_PROTECTION: u32 = 73; +pub const NCRYPTBUFFER_TPM_PLATFORM_CLAIM_PCR_MASK: u32 = 80; +pub const NCRYPTBUFFER_TPM_PLATFORM_CLAIM_NONCE: u32 = 81; +pub const NCRYPTBUFFER_TPM_PLATFORM_CLAIM_STATIC_CREATE: u32 = 82; +pub const NCRYPT_CIPHER_NO_PADDING_FLAG: u32 = 0; +pub const NCRYPT_CIPHER_BLOCK_PADDING_FLAG: u32 = 1; +pub const NCRYPT_CIPHER_OTHER_PADDING_FLAG: u32 = 2; +pub const NCRYPT_PLATFORM_ATTEST_MAGIC: u32 = 1146110288; +pub const NCRYPT_KEY_ATTEST_MAGIC: u32 = 1146110283; +pub const NCRYPT_CLAIM_AUTHORITY_ONLY: u32 = 1; +pub const NCRYPT_CLAIM_SUBJECT_ONLY: u32 = 2; +pub const NCRYPT_CLAIM_WEB_AUTH_SUBJECT_ONLY: u32 = 258; +pub const NCRYPT_CLAIM_AUTHORITY_AND_SUBJECT: u32 = 3; +pub const NCRYPT_CLAIM_VSM_KEY_ATTESTATION_STATEMENT: u32 = 4; +pub const NCRYPT_CLAIM_UNKNOWN: u32 = 4096; +pub const NCRYPT_CLAIM_PLATFORM: u32 = 65536; +pub const NCRYPT_ISOLATED_KEY_FLAG_CREATED_IN_ISOLATION: u32 = 1; +pub const NCRYPT_ISOLATED_KEY_FLAG_IMPORT_ONLY: u32 = 2; +pub const NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES_V0: u32 = 0; +pub const NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES_CURRENT_VERSION: u32 = 0; +pub const NCRYPT_VSM_KEY_ATTESTATION_STATEMENT_V0: u32 = 0; +pub const NCRYPT_VSM_KEY_ATTESTATION_STATEMENT_CURRENT_VERSION: u32 = 0; +pub const NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS_V0: u32 = 0; +pub const NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS_CURRENT_VERSION: u32 = 0; +pub const NCRYPT_EXPORTED_ISOLATED_KEY_HEADER_V0: u32 = 0; +pub const NCRYPT_EXPORTED_ISOLATED_KEY_HEADER_CURRENT_VERSION: u32 = 0; +pub const NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT_V0: u32 = 0; +pub const NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT_CURRENT_VERSION: u32 = 0; +pub const NCRYPT_NO_PADDING_FLAG: u32 = 1; +pub const NCRYPT_PAD_PKCS1_FLAG: u32 = 2; +pub const NCRYPT_PAD_OAEP_FLAG: u32 = 4; +pub const NCRYPT_PAD_PSS_FLAG: u32 = 8; +pub const NCRYPT_PAD_CIPHER_FLAG: u32 = 16; +pub const NCRYPT_ATTESTATION_FLAG: u32 = 32; +pub const NCRYPT_SEALING_FLAG: u32 = 256; +pub const NCRYPT_REGISTER_NOTIFY_FLAG: u32 = 1; +pub const NCRYPT_UNREGISTER_NOTIFY_FLAG: u32 = 2; +pub const NCRYPT_NO_KEY_VALIDATION: u32 = 8; +pub const NCRYPT_MACHINE_KEY_FLAG: u32 = 32; +pub const NCRYPT_SILENT_FLAG: u32 = 64; +pub const NCRYPT_OVERWRITE_KEY_FLAG: u32 = 128; +pub const NCRYPT_WRITE_KEY_TO_LEGACY_STORE_FLAG: u32 = 512; +pub const NCRYPT_DO_NOT_FINALIZE_FLAG: u32 = 1024; +pub const NCRYPT_EXPORT_LEGACY_FLAG: u32 = 2048; +pub const NCRYPT_IGNORE_DEVICE_STATE_FLAG: u32 = 4096; +pub const NCRYPT_TREAT_NIST_AS_GENERIC_ECC_FLAG: u32 = 8192; +pub const NCRYPT_NO_CACHED_PASSWORD: u32 = 16384; +pub const NCRYPT_PROTECT_TO_LOCAL_SYSTEM: u32 = 32768; +pub const NCRYPT_REQUIRE_KDS_LRPC_BIND_FLAG: u32 = 536870912; +pub const NCRYPT_PERSIST_ONLY_FLAG: u32 = 1073741824; +pub const NCRYPT_PERSIST_FLAG: u32 = 2147483648; +pub const NCRYPT_PREFER_VIRTUAL_ISOLATION_FLAG: u32 = 65536; +pub const NCRYPT_USE_VIRTUAL_ISOLATION_FLAG: u32 = 131072; +pub const NCRYPT_USE_PER_BOOT_KEY_FLAG: u32 = 262144; +pub const NCRYPT_CIPHER_OPERATION: u32 = 1; +pub const NCRYPT_HASH_OPERATION: u32 = 2; +pub const NCRYPT_ASYMMETRIC_ENCRYPTION_OPERATION: u32 = 4; +pub const NCRYPT_SECRET_AGREEMENT_OPERATION: u32 = 8; +pub const NCRYPT_SIGNATURE_OPERATION: u32 = 16; +pub const NCRYPT_RNG_OPERATION: u32 = 32; +pub const NCRYPT_KEY_DERIVATION_OPERATION: u32 = 64; +pub const NCRYPT_AUTHORITY_KEY_FLAG: u32 = 256; +pub const NCRYPT_EXTENDED_ERRORS_FLAG: u32 = 268435456; +pub const NCRYPT_NAME_PROPERTY: &[u8; 5] = b"Name\0"; +pub const NCRYPT_UNIQUE_NAME_PROPERTY: &[u8; 12] = b"Unique Name\0"; +pub const NCRYPT_ALGORITHM_PROPERTY: &[u8; 15] = b"Algorithm Name\0"; +pub const NCRYPT_LENGTH_PROPERTY: &[u8; 7] = b"Length\0"; +pub const NCRYPT_LENGTHS_PROPERTY: &[u8; 8] = b"Lengths\0"; +pub const NCRYPT_BLOCK_LENGTH_PROPERTY: &[u8; 13] = b"Block Length\0"; +pub const NCRYPT_PUBLIC_LENGTH_PROPERTY: &[u8; 16] = b"PublicKeyLength\0"; +pub const NCRYPT_SIGNATURE_LENGTH_PROPERTY: &[u8; 16] = b"SignatureLength\0"; +pub const NCRYPT_CHAINING_MODE_PROPERTY: &[u8; 14] = b"Chaining Mode\0"; +pub const NCRYPT_AUTH_TAG_LENGTH: &[u8; 14] = b"AuthTagLength\0"; +pub const NCRYPT_UI_POLICY_PROPERTY: &[u8; 10] = b"UI Policy\0"; +pub const NCRYPT_EXPORT_POLICY_PROPERTY: &[u8; 14] = b"Export Policy\0"; +pub const NCRYPT_WINDOW_HANDLE_PROPERTY: &[u8; 12] = b"HWND Handle\0"; +pub const NCRYPT_USE_CONTEXT_PROPERTY: &[u8; 12] = b"Use Context\0"; +pub const NCRYPT_IMPL_TYPE_PROPERTY: &[u8; 10] = b"Impl Type\0"; +pub const NCRYPT_KEY_USAGE_PROPERTY: &[u8; 10] = b"Key Usage\0"; +pub const NCRYPT_KEY_TYPE_PROPERTY: &[u8; 9] = b"Key Type\0"; +pub const NCRYPT_VERSION_PROPERTY: &[u8; 8] = b"Version\0"; +pub const NCRYPT_SECURITY_DESCR_SUPPORT_PROPERTY: &[u8; 23] = b"Security Descr Support\0"; +pub const NCRYPT_SECURITY_DESCR_PROPERTY: &[u8; 15] = b"Security Descr\0"; +pub const NCRYPT_USE_COUNT_ENABLED_PROPERTY: &[u8; 18] = b"Enabled Use Count\0"; +pub const NCRYPT_USE_COUNT_PROPERTY: &[u8; 10] = b"Use Count\0"; +pub const NCRYPT_LAST_MODIFIED_PROPERTY: &[u8; 9] = b"Modified\0"; +pub const NCRYPT_MAX_NAME_LENGTH_PROPERTY: &[u8; 16] = b"Max Name Length\0"; +pub const NCRYPT_ALGORITHM_GROUP_PROPERTY: &[u8; 16] = b"Algorithm Group\0"; +pub const NCRYPT_DH_PARAMETERS_PROPERTY: &[u8; 13] = b"DHParameters\0"; +pub const NCRYPT_ECC_PARAMETERS_PROPERTY: &[u8; 14] = b"ECCParameters\0"; +pub const NCRYPT_ECC_CURVE_NAME_PROPERTY: &[u8; 13] = b"ECCCurveName\0"; +pub const NCRYPT_ECC_CURVE_NAME_LIST_PROPERTY: &[u8; 17] = b"ECCCurveNameList\0"; +pub const NCRYPT_USE_VIRTUAL_ISOLATION_PROPERTY: &[u8; 12] = b"Virtual Iso\0"; +pub const NCRYPT_USE_PER_BOOT_KEY_PROPERTY: &[u8; 13] = b"Per Boot Key\0"; +pub const NCRYPT_PROVIDER_HANDLE_PROPERTY: &[u8; 16] = b"Provider Handle\0"; +pub const NCRYPT_PIN_PROPERTY: &[u8; 13] = b"SmartCardPin\0"; +pub const NCRYPT_READER_PROPERTY: &[u8; 16] = b"SmartCardReader\0"; +pub const NCRYPT_SMARTCARD_GUID_PROPERTY: &[u8; 14] = b"SmartCardGuid\0"; +pub const NCRYPT_CERTIFICATE_PROPERTY: &[u8; 24] = b"SmartCardKeyCertificate\0"; +pub const NCRYPT_PIN_PROMPT_PROPERTY: &[u8; 19] = b"SmartCardPinPrompt\0"; +pub const NCRYPT_USER_CERTSTORE_PROPERTY: &[u8; 23] = b"SmartCardUserCertStore\0"; +pub const NCRYPT_ROOT_CERTSTORE_PROPERTY: &[u8; 23] = b"SmartcardRootCertStore\0"; +pub const NCRYPT_SECURE_PIN_PROPERTY: &[u8; 19] = b"SmartCardSecurePin\0"; +pub const NCRYPT_ASSOCIATED_ECDH_KEY: &[u8; 27] = b"SmartCardAssociatedECDHKey\0"; +pub const NCRYPT_SCARD_PIN_ID: &[u8; 15] = b"SmartCardPinId\0"; +pub const NCRYPT_SCARD_PIN_INFO: &[u8; 17] = b"SmartCardPinInfo\0"; +pub const NCRYPT_READER_ICON_PROPERTY: &[u8; 20] = b"SmartCardReaderIcon\0"; +pub const NCRYPT_KDF_SECRET_VALUE: &[u8; 13] = b"KDFKeySecret\0"; +pub const NCRYPT_DISMISS_UI_TIMEOUT_SEC_PROPERTY: &[u8; 33] = b"SmartCardDismissUITimeoutSeconds\0"; +pub const NCRYPT_PCP_PLATFORM_TYPE_PROPERTY: &[u8; 18] = b"PCP_PLATFORM_TYPE\0"; +pub const NCRYPT_PCP_PROVIDER_VERSION_PROPERTY: &[u8; 21] = b"PCP_PROVIDER_VERSION\0"; +pub const NCRYPT_PCP_EKPUB_PROPERTY: &[u8; 10] = b"PCP_EKPUB\0"; +pub const NCRYPT_PCP_EKCERT_PROPERTY: &[u8; 11] = b"PCP_EKCERT\0"; +pub const NCRYPT_PCP_EKNVCERT_PROPERTY: &[u8; 13] = b"PCP_EKNVCERT\0"; +pub const NCRYPT_PCP_RSA_EKPUB_PROPERTY: &[u8; 14] = b"PCP_RSA_EKPUB\0"; +pub const NCRYPT_PCP_RSA_EKCERT_PROPERTY: &[u8; 15] = b"PCP_RSA_EKCERT\0"; +pub const NCRYPT_PCP_RSA_EKNVCERT_PROPERTY: &[u8; 17] = b"PCP_RSA_EKNVCERT\0"; +pub const NCRYPT_PCP_ECC_EKPUB_PROPERTY: &[u8; 14] = b"PCP_ECC_EKPUB\0"; +pub const NCRYPT_PCP_ECC_EKCERT_PROPERTY: &[u8; 15] = b"PCP_ECC_EKCERT\0"; +pub const NCRYPT_PCP_ECC_EKNVCERT_PROPERTY: &[u8; 17] = b"PCP_ECC_EKNVCERT\0"; +pub const NCRYPT_PCP_SRKPUB_PROPERTY: &[u8; 11] = b"PCP_SRKPUB\0"; +pub const NCRYPT_PCP_PCRTABLE_PROPERTY: &[u8; 13] = b"PCP_PCRTABLE\0"; +pub const NCRYPT_PCP_CHANGEPASSWORD_PROPERTY: &[u8; 19] = b"PCP_CHANGEPASSWORD\0"; +pub const NCRYPT_PCP_PASSWORD_REQUIRED_PROPERTY: &[u8; 22] = b"PCP_PASSWORD_REQUIRED\0"; +pub const NCRYPT_PCP_USAGEAUTH_PROPERTY: &[u8; 14] = b"PCP_USAGEAUTH\0"; +pub const NCRYPT_PCP_MIGRATIONPASSWORD_PROPERTY: &[u8; 22] = b"PCP_MIGRATIONPASSWORD\0"; +pub const NCRYPT_PCP_EXPORT_ALLOWED_PROPERTY: &[u8; 19] = b"PCP_EXPORT_ALLOWED\0"; +pub const NCRYPT_PCP_STORAGEPARENT_PROPERTY: &[u8; 18] = b"PCP_STORAGEPARENT\0"; +pub const NCRYPT_PCP_PROVIDERHANDLE_PROPERTY: &[u8; 20] = b"PCP_PROVIDERMHANDLE\0"; +pub const NCRYPT_PCP_PLATFORMHANDLE_PROPERTY: &[u8; 19] = b"PCP_PLATFORMHANDLE\0"; +pub const NCRYPT_PCP_PLATFORM_BINDING_PCRMASK_PROPERTY: &[u8; 29] = + b"PCP_PLATFORM_BINDING_PCRMASK\0"; +pub const NCRYPT_PCP_PLATFORM_BINDING_PCRDIGESTLIST_PROPERTY: &[u8; 35] = + b"PCP_PLATFORM_BINDING_PCRDIGESTLIST\0"; +pub const NCRYPT_PCP_PLATFORM_BINDING_PCRDIGEST_PROPERTY: &[u8; 31] = + b"PCP_PLATFORM_BINDING_PCRDIGEST\0"; +pub const NCRYPT_PCP_KEY_USAGE_POLICY_PROPERTY: &[u8; 21] = b"PCP_KEY_USAGE_POLICY\0"; +pub const NCRYPT_PCP_RSA_SCHEME_PROPERTY: &[u8; 15] = b"PCP_RSA_SCHEME\0"; +pub const NCRYPT_PCP_TPM12_IDBINDING_PROPERTY: &[u8; 20] = b"PCP_TPM12_IDBINDING\0"; +pub const NCRYPT_PCP_TPM12_IDBINDING_DYNAMIC_PROPERTY: &[u8; 28] = b"PCP_TPM12_IDBINDING_DYNAMIC\0"; +pub const NCRYPT_PCP_TPM12_IDACTIVATION_PROPERTY: &[u8; 23] = b"PCP_TPM12_IDACTIVATION\0"; +pub const NCRYPT_PCP_KEYATTESTATION_PROPERTY: &[u8; 25] = b"PCP_TPM12_KEYATTESTATION\0"; +pub const NCRYPT_PCP_ALTERNATE_KEY_STORAGE_LOCATION_PROPERTY: &[u8; 35] = + b"PCP_ALTERNATE_KEY_STORAGE_LOCATION\0"; +pub const NCRYPT_PCP_PLATFORM_BINDING_PCRALGID_PROPERTY: &[u8; 30] = + b"PCP_PLATFORM_BINDING_PCRALGID\0"; +pub const NCRYPT_PCP_HMAC_AUTH_POLICYREF: &[u8; 24] = b"PCP_HMAC_AUTH_POLICYREF\0"; +pub const NCRYPT_PCP_HMAC_AUTH_POLICYINFO: &[u8; 25] = b"PCP_HMAC_AUTH_POLICYINFO\0"; +pub const NCRYPT_PCP_HMAC_AUTH_NONCE: &[u8; 20] = b"PCP_HMAC_AUTH_NONCE\0"; +pub const NCRYPT_PCP_HMAC_AUTH_SIGNATURE: &[u8; 24] = b"PCP_HMAC_AUTH_SIGNATURE\0"; +pub const NCRYPT_PCP_HMAC_AUTH_TICKET: &[u8; 21] = b"PCP_HMAC_AUTH_TICKET\0"; +pub const NCRYPT_PCP_NO_DA_PROTECTION_PROPERTY: &[u8; 21] = b"PCP_NO_DA_PROTECTION\0"; +pub const NCRYPT_PCP_TPM_MANUFACTURER_ID_PROPERTY: &[u8; 24] = b"PCP_TPM_MANUFACTURER_ID\0"; +pub const NCRYPT_PCP_TPM_FW_VERSION_PROPERTY: &[u8; 19] = b"PCP_TPM_FW_VERSION\0"; +pub const NCRYPT_PCP_TPM2BNAME_PROPERTY: &[u8; 14] = b"PCP_TPM2BNAME\0"; +pub const NCRYPT_PCP_TPM_VERSION_PROPERTY: &[u8; 16] = b"PCP_TPM_VERSION\0"; +pub const NCRYPT_PCP_RAW_POLICYDIGEST_PROPERTY: &[u8; 21] = b"PCP_RAW_POLICYDIGEST\0"; +pub const NCRYPT_PCP_KEY_CREATIONHASH_PROPERTY: &[u8; 21] = b"PCP_KEY_CREATIONHASH\0"; +pub const NCRYPT_PCP_KEY_CREATIONTICKET_PROPERTY: &[u8; 23] = b"PCP_KEY_CREATIONTICKET\0"; +pub const NCRYPT_PCP_RSA_SCHEME_HASH_ALG_PROPERTY: &[u8; 24] = b"PCP_RSA_SCHEME_HASH_ALG\0"; +pub const NCRYPT_PCP_TPM_IFX_RSA_KEYGEN_PROHIBITED_PROPERTY: &[u8; 34] = + b"PCP_TPM_IFX_RSA_KEYGEN_PROHIBITED\0"; +pub const NCRYPT_PCP_TPM_IFX_RSA_KEYGEN_VULNERABILITY_PROPERTY: &[u8; 37] = + b"PCP_TPM_IFX_RSA_KEYGEN_VULNERABILITY\0"; +pub const IFX_RSA_KEYGEN_VUL_NOT_AFFECTED: u32 = 0; +pub const IFX_RSA_KEYGEN_VUL_AFFECTED_LEVEL_1: u32 = 1; +pub const IFX_RSA_KEYGEN_VUL_AFFECTED_LEVEL_2: u32 = 2; +pub const NCRYPT_PCP_SESSIONID_PROPERTY: &[u8; 14] = b"PCP_SESSIONID\0"; +pub const NCRYPT_PCP_PSS_SALT_SIZE_PROPERTY: &[u8; 14] = b"PSS Salt Size\0"; +pub const NCRYPT_TPM_PSS_SALT_SIZE_UNKNOWN: u32 = 0; +pub const NCRYPT_TPM_PSS_SALT_SIZE_MAXIMUM: u32 = 1; +pub const NCRYPT_TPM_PSS_SALT_SIZE_HASHSIZE: u32 = 2; +pub const NCRYPT_PCP_INTERMEDIATE_CA_EKCERT_PROPERTY: &[u8; 27] = b"PCP_INTERMEDIATE_CA_EKCERT\0"; +pub const NCRYPT_PCP_PCRTABLE_ALGORITHM_PROPERTY: &[u8; 23] = b"PCP_PCRTABLE_ALGORITHM\0"; +pub const NCRYPT_PCP_SYMMETRIC_KEYBITS_PROPERTY: &[u8; 22] = b"PCP_SYMMETRIC_KEYBITS\0"; +pub const NCRYPT_TPM_PAD_PSS_IGNORE_SALT: u32 = 32; +pub const NCRYPT_TPM12_PROVIDER: u32 = 65536; +pub const NCRYPT_PCP_SIGNATURE_KEY: u32 = 1; +pub const NCRYPT_PCP_ENCRYPTION_KEY: u32 = 2; +pub const NCRYPT_PCP_GENERIC_KEY: u32 = 3; +pub const NCRYPT_PCP_STORAGE_KEY: u32 = 4; +pub const NCRYPT_PCP_IDENTITY_KEY: u32 = 8; +pub const NCRYPT_PCP_HMACVERIFICATION_KEY: u32 = 16; +pub const NCRYPT_SCARD_NGC_KEY_NAME: &[u8; 20] = b"SmartCardNgcKeyName\0"; +pub const NCRYPT_INITIALIZATION_VECTOR: &[u8; 3] = b"IV\0"; +pub const NCRYPT_CHANGEPASSWORD_PROPERTY: &[u8; 19] = b"PCP_CHANGEPASSWORD\0"; +pub const NCRYPT_ALTERNATE_KEY_STORAGE_LOCATION_PROPERTY: &[u8; 35] = + b"PCP_ALTERNATE_KEY_STORAGE_LOCATION\0"; +pub const NCRYPT_KEY_ACCESS_POLICY_PROPERTY: &[u8; 18] = b"Key Access Policy\0"; +pub const NCRYPT_MAX_PROPERTY_NAME: u32 = 64; +pub const NCRYPT_MAX_PROPERTY_DATA: u32 = 1048576; +pub const NCRYPT_ALLOW_EXPORT_FLAG: u32 = 1; +pub const NCRYPT_ALLOW_PLAINTEXT_EXPORT_FLAG: u32 = 2; +pub const NCRYPT_ALLOW_ARCHIVING_FLAG: u32 = 4; +pub const NCRYPT_ALLOW_PLAINTEXT_ARCHIVING_FLAG: u32 = 8; +pub const NCRYPT_IMPL_HARDWARE_FLAG: u32 = 1; +pub const NCRYPT_IMPL_SOFTWARE_FLAG: u32 = 2; +pub const NCRYPT_IMPL_REMOVABLE_FLAG: u32 = 8; +pub const NCRYPT_IMPL_HARDWARE_RNG_FLAG: u32 = 16; +pub const NCRYPT_IMPL_VIRTUAL_ISOLATION_FLAG: u32 = 32; +pub const NCRYPT_ALLOW_DECRYPT_FLAG: u32 = 1; +pub const NCRYPT_ALLOW_SIGNING_FLAG: u32 = 2; +pub const NCRYPT_ALLOW_KEY_AGREEMENT_FLAG: u32 = 4; +pub const NCRYPT_ALLOW_KEY_IMPORT_FLAG: u32 = 8; +pub const NCRYPT_ALLOW_ALL_USAGES: u32 = 16777215; +pub const NCRYPT_UI_PROTECT_KEY_FLAG: u32 = 1; +pub const NCRYPT_UI_FORCE_HIGH_PROTECTION_FLAG: u32 = 2; +pub const NCRYPT_UI_FINGERPRINT_PROTECTION_FLAG: u32 = 4; +pub const NCRYPT_UI_APPCONTAINER_ACCESS_MEDIUM_FLAG: u32 = 8; +pub const NCRYPT_PIN_CACHE_FREE_APPLICATION_TICKET_PROPERTY: &[u8; 30] = + b"PinCacheFreeApplicationTicket\0"; +pub const NCRYPT_PIN_CACHE_FLAGS_PROPERTY: &[u8; 14] = b"PinCacheFlags\0"; +pub const NCRYPT_PIN_CACHE_DISABLE_DPL_FLAG: u32 = 1; +pub const NCRYPT_PIN_CACHE_APPLICATION_TICKET_PROPERTY: &[u8; 26] = b"PinCacheApplicationTicket\0"; +pub const NCRYPT_PIN_CACHE_APPLICATION_IMAGE_PROPERTY: &[u8; 25] = b"PinCacheApplicationImage\0"; +pub const NCRYPT_PIN_CACHE_APPLICATION_STATUS_PROPERTY: &[u8; 26] = b"PinCacheApplicationStatus\0"; +pub const NCRYPT_PIN_CACHE_PIN_PROPERTY: &[u8; 12] = b"PinCachePin\0"; +pub const NCRYPT_PIN_CACHE_IS_GESTURE_REQUIRED_PROPERTY: &[u8; 26] = b"PinCacheIsGestureRequired\0"; +pub const NCRYPT_PIN_CACHE_REQUIRE_GESTURE_FLAG: u32 = 1; +pub const NCRYPT_PIN_CACHE_PIN_BYTE_LENGTH: u32 = 90; +pub const NCRYPT_PIN_CACHE_APPLICATION_TICKET_BYTE_LENGTH: u32 = 90; +pub const NCRYPT_PIN_CACHE_CLEAR_PROPERTY: &[u8; 14] = b"PinCacheClear\0"; +pub const NCRYPT_PIN_CACHE_CLEAR_FOR_CALLING_PROCESS_OPTION: u32 = 1; +pub const NCRYPT_KEY_ACCESS_POLICY_VERSION: u32 = 1; +pub const NCRYPT_ALLOW_SILENT_KEY_ACCESS: u32 = 1; +pub const NCRYPT_CIPHER_KEY_BLOB_MAGIC: u32 = 1380470851; +pub const NCRYPT_KDF_KEY_BLOB_MAGIC: u32 = 826688587; +pub const NCRYPT_PROTECTED_KEY_BLOB_MAGIC: u32 = 1263817296; +pub const NCRYPT_CIPHER_KEY_BLOB: &[u8; 14] = b"CipherKeyBlob\0"; +pub const NCRYPT_KDF_KEY_BLOB: &[u8; 11] = b"KDFKeyBlob\0"; +pub const NCRYPT_PROTECTED_KEY_BLOB: &[u8; 17] = b"ProtectedKeyBlob\0"; +pub const NCRYPT_TPM_LOADABLE_KEY_BLOB: &[u8; 23] = b"PcpTpmProtectedKeyBlob\0"; +pub const NCRYPT_TPM_LOADABLE_KEY_BLOB_MAGIC: u32 = 1297371211; +pub const NCRYPT_PKCS7_ENVELOPE_BLOB: &[u8; 15] = b"PKCS7_ENVELOPE\0"; +pub const NCRYPT_PKCS8_PRIVATE_KEY_BLOB: &[u8; 17] = b"PKCS8_PRIVATEKEY\0"; +pub const NCRYPT_OPAQUETRANSPORT_BLOB: &[u8; 16] = b"OpaqueTransport\0"; +pub const NCRYPT_ISOLATED_KEY_ENVELOPE_BLOB: &[u8; 22] = b"ISOLATED_KEY_ENVELOPE\0"; +pub const szOID_RSA: &[u8; 15] = b"1.2.840.113549\0"; +pub const szOID_PKCS: &[u8; 17] = b"1.2.840.113549.1\0"; +pub const szOID_RSA_HASH: &[u8; 17] = b"1.2.840.113549.2\0"; +pub const szOID_RSA_ENCRYPT: &[u8; 17] = b"1.2.840.113549.3\0"; +pub const szOID_PKCS_1: &[u8; 19] = b"1.2.840.113549.1.1\0"; +pub const szOID_PKCS_2: &[u8; 19] = b"1.2.840.113549.1.2\0"; +pub const szOID_PKCS_3: &[u8; 19] = b"1.2.840.113549.1.3\0"; +pub const szOID_PKCS_4: &[u8; 19] = b"1.2.840.113549.1.4\0"; +pub const szOID_PKCS_5: &[u8; 19] = b"1.2.840.113549.1.5\0"; +pub const szOID_PKCS_6: &[u8; 19] = b"1.2.840.113549.1.6\0"; +pub const szOID_PKCS_7: &[u8; 19] = b"1.2.840.113549.1.7\0"; +pub const szOID_PKCS_8: &[u8; 19] = b"1.2.840.113549.1.8\0"; +pub const szOID_PKCS_9: &[u8; 19] = b"1.2.840.113549.1.9\0"; +pub const szOID_PKCS_10: &[u8; 20] = b"1.2.840.113549.1.10\0"; +pub const szOID_PKCS_12: &[u8; 20] = b"1.2.840.113549.1.12\0"; +pub const szOID_RSA_RSA: &[u8; 21] = b"1.2.840.113549.1.1.1\0"; +pub const szOID_RSA_MD2RSA: &[u8; 21] = b"1.2.840.113549.1.1.2\0"; +pub const szOID_RSA_MD4RSA: &[u8; 21] = b"1.2.840.113549.1.1.3\0"; +pub const szOID_RSA_MD5RSA: &[u8; 21] = b"1.2.840.113549.1.1.4\0"; +pub const szOID_RSA_SHA1RSA: &[u8; 21] = b"1.2.840.113549.1.1.5\0"; +pub const szOID_RSA_SETOAEP_RSA: &[u8; 21] = b"1.2.840.113549.1.1.6\0"; +pub const szOID_RSAES_OAEP: &[u8; 21] = b"1.2.840.113549.1.1.7\0"; +pub const szOID_RSA_MGF1: &[u8; 21] = b"1.2.840.113549.1.1.8\0"; +pub const szOID_RSA_PSPECIFIED: &[u8; 21] = b"1.2.840.113549.1.1.9\0"; +pub const szOID_RSA_SSA_PSS: &[u8; 22] = b"1.2.840.113549.1.1.10\0"; +pub const szOID_RSA_SHA256RSA: &[u8; 22] = b"1.2.840.113549.1.1.11\0"; +pub const szOID_RSA_SHA384RSA: &[u8; 22] = b"1.2.840.113549.1.1.12\0"; +pub const szOID_RSA_SHA512RSA: &[u8; 22] = b"1.2.840.113549.1.1.13\0"; +pub const szOID_RSA_DH: &[u8; 21] = b"1.2.840.113549.1.3.1\0"; +pub const szOID_RSA_data: &[u8; 21] = b"1.2.840.113549.1.7.1\0"; +pub const szOID_RSA_signedData: &[u8; 21] = b"1.2.840.113549.1.7.2\0"; +pub const szOID_RSA_envelopedData: &[u8; 21] = b"1.2.840.113549.1.7.3\0"; +pub const szOID_RSA_signEnvData: &[u8; 21] = b"1.2.840.113549.1.7.4\0"; +pub const szOID_RSA_digestedData: &[u8; 21] = b"1.2.840.113549.1.7.5\0"; +pub const szOID_RSA_hashedData: &[u8; 21] = b"1.2.840.113549.1.7.5\0"; +pub const szOID_RSA_encryptedData: &[u8; 21] = b"1.2.840.113549.1.7.6\0"; +pub const szOID_RSA_emailAddr: &[u8; 21] = b"1.2.840.113549.1.9.1\0"; +pub const szOID_RSA_unstructName: &[u8; 21] = b"1.2.840.113549.1.9.2\0"; +pub const szOID_RSA_contentType: &[u8; 21] = b"1.2.840.113549.1.9.3\0"; +pub const szOID_RSA_messageDigest: &[u8; 21] = b"1.2.840.113549.1.9.4\0"; +pub const szOID_RSA_signingTime: &[u8; 21] = b"1.2.840.113549.1.9.5\0"; +pub const szOID_RSA_counterSign: &[u8; 21] = b"1.2.840.113549.1.9.6\0"; +pub const szOID_RSA_challengePwd: &[u8; 21] = b"1.2.840.113549.1.9.7\0"; +pub const szOID_RSA_unstructAddr: &[u8; 21] = b"1.2.840.113549.1.9.8\0"; +pub const szOID_RSA_extCertAttrs: &[u8; 21] = b"1.2.840.113549.1.9.9\0"; +pub const szOID_RSA_certExtensions: &[u8; 22] = b"1.2.840.113549.1.9.14\0"; +pub const szOID_RSA_SMIMECapabilities: &[u8; 22] = b"1.2.840.113549.1.9.15\0"; +pub const szOID_RSA_preferSignedData: &[u8; 24] = b"1.2.840.113549.1.9.15.1\0"; +pub const szOID_TIMESTAMP_TOKEN: &[u8; 26] = b"1.2.840.113549.1.9.16.1.4\0"; +pub const szOID_RFC3161_counterSign: &[u8; 22] = b"1.3.6.1.4.1.311.3.3.1\0"; +pub const szOID_RFC3161v21_counterSign: &[u8; 22] = b"1.3.6.1.4.1.311.3.3.2\0"; +pub const szOID_RFC3161v21_thumbprints: &[u8; 22] = b"1.3.6.1.4.1.311.3.3.3\0"; +pub const szOID_RSA_SMIMEalg: &[u8; 24] = b"1.2.840.113549.1.9.16.3\0"; +pub const szOID_RSA_SMIMEalgESDH: &[u8; 26] = b"1.2.840.113549.1.9.16.3.5\0"; +pub const szOID_RSA_SMIMEalgCMS3DESwrap: &[u8; 26] = b"1.2.840.113549.1.9.16.3.6\0"; +pub const szOID_RSA_SMIMEalgCMSRC2wrap: &[u8; 26] = b"1.2.840.113549.1.9.16.3.7\0"; +pub const szOID_RSA_MD2: &[u8; 19] = b"1.2.840.113549.2.2\0"; +pub const szOID_RSA_MD4: &[u8; 19] = b"1.2.840.113549.2.4\0"; +pub const szOID_RSA_MD5: &[u8; 19] = b"1.2.840.113549.2.5\0"; +pub const szOID_RSA_RC2CBC: &[u8; 19] = b"1.2.840.113549.3.2\0"; +pub const szOID_RSA_RC4: &[u8; 19] = b"1.2.840.113549.3.4\0"; +pub const szOID_RSA_DES_EDE3_CBC: &[u8; 19] = b"1.2.840.113549.3.7\0"; +pub const szOID_RSA_RC5_CBCPad: &[u8; 19] = b"1.2.840.113549.3.9\0"; +pub const szOID_ANSI_X942: &[u8; 14] = b"1.2.840.10046\0"; +pub const szOID_ANSI_X942_DH: &[u8; 18] = b"1.2.840.10046.2.1\0"; +pub const szOID_X957: &[u8; 14] = b"1.2.840.10040\0"; +pub const szOID_X957_DSA: &[u8; 18] = b"1.2.840.10040.4.1\0"; +pub const szOID_X957_SHA1DSA: &[u8; 18] = b"1.2.840.10040.4.3\0"; +pub const szOID_ECC_PUBLIC_KEY: &[u8; 18] = b"1.2.840.10045.2.1\0"; +pub const szOID_ECC_CURVE_P256: &[u8; 20] = b"1.2.840.10045.3.1.7\0"; +pub const szOID_ECC_CURVE_P384: &[u8; 13] = b"1.3.132.0.34\0"; +pub const szOID_ECC_CURVE_P521: &[u8; 13] = b"1.3.132.0.35\0"; +pub const szOID_ECC_CURVE_BRAINPOOLP160R1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.1\0"; +pub const szOID_ECC_CURVE_BRAINPOOLP160T1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.2\0"; +pub const szOID_ECC_CURVE_BRAINPOOLP192R1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.3\0"; +pub const szOID_ECC_CURVE_BRAINPOOLP192T1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.4\0"; +pub const szOID_ECC_CURVE_BRAINPOOLP224R1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.5\0"; +pub const szOID_ECC_CURVE_BRAINPOOLP224T1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.6\0"; +pub const szOID_ECC_CURVE_BRAINPOOLP256R1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.7\0"; +pub const szOID_ECC_CURVE_BRAINPOOLP256T1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.8\0"; +pub const szOID_ECC_CURVE_BRAINPOOLP320R1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.9\0"; +pub const szOID_ECC_CURVE_BRAINPOOLP320T1: &[u8; 22] = b"1.3.36.3.3.2.8.1.1.10\0"; +pub const szOID_ECC_CURVE_BRAINPOOLP384R1: &[u8; 22] = b"1.3.36.3.3.2.8.1.1.11\0"; +pub const szOID_ECC_CURVE_BRAINPOOLP384T1: &[u8; 22] = b"1.3.36.3.3.2.8.1.1.12\0"; +pub const szOID_ECC_CURVE_BRAINPOOLP512R1: &[u8; 22] = b"1.3.36.3.3.2.8.1.1.13\0"; +pub const szOID_ECC_CURVE_BRAINPOOLP512T1: &[u8; 22] = b"1.3.36.3.3.2.8.1.1.14\0"; +pub const szOID_ECC_CURVE_EC192WAPI: &[u8; 22] = b"1.2.156.11235.1.1.2.1\0"; +pub const szOID_CN_ECDSA_SHA256: &[u8; 20] = b"1.2.156.11235.1.1.1\0"; +pub const szOID_ECC_CURVE_NISTP192: &[u8; 20] = b"1.2.840.10045.3.1.1\0"; +pub const szOID_ECC_CURVE_NISTP224: &[u8; 13] = b"1.3.132.0.33\0"; +pub const szOID_ECC_CURVE_NISTP256: &[u8; 20] = b"1.2.840.10045.3.1.7\0"; +pub const szOID_ECC_CURVE_NISTP384: &[u8; 13] = b"1.3.132.0.34\0"; +pub const szOID_ECC_CURVE_NISTP521: &[u8; 13] = b"1.3.132.0.35\0"; +pub const szOID_ECC_CURVE_SECP160K1: &[u8; 12] = b"1.3.132.0.9\0"; +pub const szOID_ECC_CURVE_SECP160R1: &[u8; 12] = b"1.3.132.0.8\0"; +pub const szOID_ECC_CURVE_SECP160R2: &[u8; 13] = b"1.3.132.0.30\0"; +pub const szOID_ECC_CURVE_SECP192K1: &[u8; 13] = b"1.3.132.0.31\0"; +pub const szOID_ECC_CURVE_SECP192R1: &[u8; 20] = b"1.2.840.10045.3.1.1\0"; +pub const szOID_ECC_CURVE_SECP224K1: &[u8; 13] = b"1.3.132.0.32\0"; +pub const szOID_ECC_CURVE_SECP224R1: &[u8; 13] = b"1.3.132.0.33\0"; +pub const szOID_ECC_CURVE_SECP256K1: &[u8; 13] = b"1.3.132.0.10\0"; +pub const szOID_ECC_CURVE_SECP256R1: &[u8; 20] = b"1.2.840.10045.3.1.7\0"; +pub const szOID_ECC_CURVE_SECP384R1: &[u8; 13] = b"1.3.132.0.34\0"; +pub const szOID_ECC_CURVE_SECP521R1: &[u8; 13] = b"1.3.132.0.35\0"; +pub const szOID_ECC_CURVE_WTLS7: &[u8; 13] = b"1.3.132.0.30\0"; +pub const szOID_ECC_CURVE_WTLS9: &[u8; 14] = b"2.23.43.1.4.9\0"; +pub const szOID_ECC_CURVE_WTLS12: &[u8; 13] = b"1.3.132.0.33\0"; +pub const szOID_ECC_CURVE_X962P192V1: &[u8; 20] = b"1.2.840.10045.3.1.1\0"; +pub const szOID_ECC_CURVE_X962P192V2: &[u8; 20] = b"1.2.840.10045.3.1.2\0"; +pub const szOID_ECC_CURVE_X962P192V3: &[u8; 20] = b"1.2.840.10045.3.1.3\0"; +pub const szOID_ECC_CURVE_X962P239V1: &[u8; 20] = b"1.2.840.10045.3.1.4\0"; +pub const szOID_ECC_CURVE_X962P239V2: &[u8; 20] = b"1.2.840.10045.3.1.5\0"; +pub const szOID_ECC_CURVE_X962P239V3: &[u8; 20] = b"1.2.840.10045.3.1.6\0"; +pub const szOID_ECC_CURVE_X962P256V1: &[u8; 20] = b"1.2.840.10045.3.1.7\0"; +pub const szOID_ECDSA_SHA1: &[u8; 18] = b"1.2.840.10045.4.1\0"; +pub const szOID_ECDSA_SPECIFIED: &[u8; 18] = b"1.2.840.10045.4.3\0"; +pub const szOID_ECDSA_SHA256: &[u8; 20] = b"1.2.840.10045.4.3.2\0"; +pub const szOID_ECDSA_SHA384: &[u8; 20] = b"1.2.840.10045.4.3.3\0"; +pub const szOID_ECDSA_SHA512: &[u8; 20] = b"1.2.840.10045.4.3.4\0"; +pub const szOID_NIST_AES128_CBC: &[u8; 23] = b"2.16.840.1.101.3.4.1.2\0"; +pub const szOID_NIST_AES192_CBC: &[u8; 24] = b"2.16.840.1.101.3.4.1.22\0"; +pub const szOID_NIST_AES256_CBC: &[u8; 24] = b"2.16.840.1.101.3.4.1.42\0"; +pub const szOID_NIST_AES128_WRAP: &[u8; 23] = b"2.16.840.1.101.3.4.1.5\0"; +pub const szOID_NIST_AES192_WRAP: &[u8; 24] = b"2.16.840.1.101.3.4.1.25\0"; +pub const szOID_NIST_AES256_WRAP: &[u8; 24] = b"2.16.840.1.101.3.4.1.45\0"; +pub const szOID_DH_SINGLE_PASS_STDDH_SHA1_KDF: &[u8; 22] = b"1.3.133.16.840.63.0.2\0"; +pub const szOID_DH_SINGLE_PASS_STDDH_SHA256_KDF: &[u8; 15] = b"1.3.132.1.11.1\0"; +pub const szOID_DH_SINGLE_PASS_STDDH_SHA384_KDF: &[u8; 15] = b"1.3.132.1.11.2\0"; +pub const szOID_DS: &[u8; 4] = b"2.5\0"; +pub const szOID_DSALG: &[u8; 6] = b"2.5.8\0"; +pub const szOID_DSALG_CRPT: &[u8; 8] = b"2.5.8.1\0"; +pub const szOID_DSALG_HASH: &[u8; 8] = b"2.5.8.2\0"; +pub const szOID_DSALG_SIGN: &[u8; 8] = b"2.5.8.3\0"; +pub const szOID_DSALG_RSA: &[u8; 10] = b"2.5.8.1.1\0"; +pub const szOID_OIW: &[u8; 7] = b"1.3.14\0"; +pub const szOID_OIWSEC: &[u8; 11] = b"1.3.14.3.2\0"; +pub const szOID_OIWSEC_md4RSA: &[u8; 13] = b"1.3.14.3.2.2\0"; +pub const szOID_OIWSEC_md5RSA: &[u8; 13] = b"1.3.14.3.2.3\0"; +pub const szOID_OIWSEC_md4RSA2: &[u8; 13] = b"1.3.14.3.2.4\0"; +pub const szOID_OIWSEC_desECB: &[u8; 13] = b"1.3.14.3.2.6\0"; +pub const szOID_OIWSEC_desCBC: &[u8; 13] = b"1.3.14.3.2.7\0"; +pub const szOID_OIWSEC_desOFB: &[u8; 13] = b"1.3.14.3.2.8\0"; +pub const szOID_OIWSEC_desCFB: &[u8; 13] = b"1.3.14.3.2.9\0"; +pub const szOID_OIWSEC_desMAC: &[u8; 14] = b"1.3.14.3.2.10\0"; +pub const szOID_OIWSEC_rsaSign: &[u8; 14] = b"1.3.14.3.2.11\0"; +pub const szOID_OIWSEC_dsa: &[u8; 14] = b"1.3.14.3.2.12\0"; +pub const szOID_OIWSEC_shaDSA: &[u8; 14] = b"1.3.14.3.2.13\0"; +pub const szOID_OIWSEC_mdc2RSA: &[u8; 14] = b"1.3.14.3.2.14\0"; +pub const szOID_OIWSEC_shaRSA: &[u8; 14] = b"1.3.14.3.2.15\0"; +pub const szOID_OIWSEC_dhCommMod: &[u8; 14] = b"1.3.14.3.2.16\0"; +pub const szOID_OIWSEC_desEDE: &[u8; 14] = b"1.3.14.3.2.17\0"; +pub const szOID_OIWSEC_sha: &[u8; 14] = b"1.3.14.3.2.18\0"; +pub const szOID_OIWSEC_mdc2: &[u8; 14] = b"1.3.14.3.2.19\0"; +pub const szOID_OIWSEC_dsaComm: &[u8; 14] = b"1.3.14.3.2.20\0"; +pub const szOID_OIWSEC_dsaCommSHA: &[u8; 14] = b"1.3.14.3.2.21\0"; +pub const szOID_OIWSEC_rsaXchg: &[u8; 14] = b"1.3.14.3.2.22\0"; +pub const szOID_OIWSEC_keyHashSeal: &[u8; 14] = b"1.3.14.3.2.23\0"; +pub const szOID_OIWSEC_md2RSASign: &[u8; 14] = b"1.3.14.3.2.24\0"; +pub const szOID_OIWSEC_md5RSASign: &[u8; 14] = b"1.3.14.3.2.25\0"; +pub const szOID_OIWSEC_sha1: &[u8; 14] = b"1.3.14.3.2.26\0"; +pub const szOID_OIWSEC_dsaSHA1: &[u8; 14] = b"1.3.14.3.2.27\0"; +pub const szOID_OIWSEC_dsaCommSHA1: &[u8; 14] = b"1.3.14.3.2.28\0"; +pub const szOID_OIWSEC_sha1RSASign: &[u8; 14] = b"1.3.14.3.2.29\0"; +pub const szOID_OIWDIR: &[u8; 11] = b"1.3.14.7.2\0"; +pub const szOID_OIWDIR_CRPT: &[u8; 13] = b"1.3.14.7.2.1\0"; +pub const szOID_OIWDIR_HASH: &[u8; 13] = b"1.3.14.7.2.2\0"; +pub const szOID_OIWDIR_SIGN: &[u8; 13] = b"1.3.14.7.2.3\0"; +pub const szOID_OIWDIR_md2: &[u8; 15] = b"1.3.14.7.2.2.1\0"; +pub const szOID_OIWDIR_md2RSA: &[u8; 15] = b"1.3.14.7.2.3.1\0"; +pub const szOID_INFOSEC: &[u8; 19] = b"2.16.840.1.101.2.1\0"; +pub const szOID_INFOSEC_sdnsSignature: &[u8; 23] = b"2.16.840.1.101.2.1.1.1\0"; +pub const szOID_INFOSEC_mosaicSignature: &[u8; 23] = b"2.16.840.1.101.2.1.1.2\0"; +pub const szOID_INFOSEC_sdnsConfidentiality: &[u8; 23] = b"2.16.840.1.101.2.1.1.3\0"; +pub const szOID_INFOSEC_mosaicConfidentiality: &[u8; 23] = b"2.16.840.1.101.2.1.1.4\0"; +pub const szOID_INFOSEC_sdnsIntegrity: &[u8; 23] = b"2.16.840.1.101.2.1.1.5\0"; +pub const szOID_INFOSEC_mosaicIntegrity: &[u8; 23] = b"2.16.840.1.101.2.1.1.6\0"; +pub const szOID_INFOSEC_sdnsTokenProtection: &[u8; 23] = b"2.16.840.1.101.2.1.1.7\0"; +pub const szOID_INFOSEC_mosaicTokenProtection: &[u8; 23] = b"2.16.840.1.101.2.1.1.8\0"; +pub const szOID_INFOSEC_sdnsKeyManagement: &[u8; 23] = b"2.16.840.1.101.2.1.1.9\0"; +pub const szOID_INFOSEC_mosaicKeyManagement: &[u8; 24] = b"2.16.840.1.101.2.1.1.10\0"; +pub const szOID_INFOSEC_sdnsKMandSig: &[u8; 24] = b"2.16.840.1.101.2.1.1.11\0"; +pub const szOID_INFOSEC_mosaicKMandSig: &[u8; 24] = b"2.16.840.1.101.2.1.1.12\0"; +pub const szOID_INFOSEC_SuiteASignature: &[u8; 24] = b"2.16.840.1.101.2.1.1.13\0"; +pub const szOID_INFOSEC_SuiteAConfidentiality: &[u8; 24] = b"2.16.840.1.101.2.1.1.14\0"; +pub const szOID_INFOSEC_SuiteAIntegrity: &[u8; 24] = b"2.16.840.1.101.2.1.1.15\0"; +pub const szOID_INFOSEC_SuiteATokenProtection: &[u8; 24] = b"2.16.840.1.101.2.1.1.16\0"; +pub const szOID_INFOSEC_SuiteAKeyManagement: &[u8; 24] = b"2.16.840.1.101.2.1.1.17\0"; +pub const szOID_INFOSEC_SuiteAKMandSig: &[u8; 24] = b"2.16.840.1.101.2.1.1.18\0"; +pub const szOID_INFOSEC_mosaicUpdatedSig: &[u8; 24] = b"2.16.840.1.101.2.1.1.19\0"; +pub const szOID_INFOSEC_mosaicKMandUpdSig: &[u8; 24] = b"2.16.840.1.101.2.1.1.20\0"; +pub const szOID_INFOSEC_mosaicUpdatedInteg: &[u8; 24] = b"2.16.840.1.101.2.1.1.21\0"; +pub const szOID_NIST_sha256: &[u8; 23] = b"2.16.840.1.101.3.4.2.1\0"; +pub const szOID_NIST_sha384: &[u8; 23] = b"2.16.840.1.101.3.4.2.2\0"; +pub const szOID_NIST_sha512: &[u8; 23] = b"2.16.840.1.101.3.4.2.3\0"; +pub const szOID_COMMON_NAME: &[u8; 8] = b"2.5.4.3\0"; +pub const szOID_SUR_NAME: &[u8; 8] = b"2.5.4.4\0"; +pub const szOID_DEVICE_SERIAL_NUMBER: &[u8; 8] = b"2.5.4.5\0"; +pub const szOID_COUNTRY_NAME: &[u8; 8] = b"2.5.4.6\0"; +pub const szOID_LOCALITY_NAME: &[u8; 8] = b"2.5.4.7\0"; +pub const szOID_STATE_OR_PROVINCE_NAME: &[u8; 8] = b"2.5.4.8\0"; +pub const szOID_STREET_ADDRESS: &[u8; 8] = b"2.5.4.9\0"; +pub const szOID_ORGANIZATION_NAME: &[u8; 9] = b"2.5.4.10\0"; +pub const szOID_ORGANIZATIONAL_UNIT_NAME: &[u8; 9] = b"2.5.4.11\0"; +pub const szOID_TITLE: &[u8; 9] = b"2.5.4.12\0"; +pub const szOID_DESCRIPTION: &[u8; 9] = b"2.5.4.13\0"; +pub const szOID_SEARCH_GUIDE: &[u8; 9] = b"2.5.4.14\0"; +pub const szOID_BUSINESS_CATEGORY: &[u8; 9] = b"2.5.4.15\0"; +pub const szOID_POSTAL_ADDRESS: &[u8; 9] = b"2.5.4.16\0"; +pub const szOID_POSTAL_CODE: &[u8; 9] = b"2.5.4.17\0"; +pub const szOID_POST_OFFICE_BOX: &[u8; 9] = b"2.5.4.18\0"; +pub const szOID_PHYSICAL_DELIVERY_OFFICE_NAME: &[u8; 9] = b"2.5.4.19\0"; +pub const szOID_TELEPHONE_NUMBER: &[u8; 9] = b"2.5.4.20\0"; +pub const szOID_TELEX_NUMBER: &[u8; 9] = b"2.5.4.21\0"; +pub const szOID_TELETEXT_TERMINAL_IDENTIFIER: &[u8; 9] = b"2.5.4.22\0"; +pub const szOID_FACSIMILE_TELEPHONE_NUMBER: &[u8; 9] = b"2.5.4.23\0"; +pub const szOID_X21_ADDRESS: &[u8; 9] = b"2.5.4.24\0"; +pub const szOID_INTERNATIONAL_ISDN_NUMBER: &[u8; 9] = b"2.5.4.25\0"; +pub const szOID_REGISTERED_ADDRESS: &[u8; 9] = b"2.5.4.26\0"; +pub const szOID_DESTINATION_INDICATOR: &[u8; 9] = b"2.5.4.27\0"; +pub const szOID_PREFERRED_DELIVERY_METHOD: &[u8; 9] = b"2.5.4.28\0"; +pub const szOID_PRESENTATION_ADDRESS: &[u8; 9] = b"2.5.4.29\0"; +pub const szOID_SUPPORTED_APPLICATION_CONTEXT: &[u8; 9] = b"2.5.4.30\0"; +pub const szOID_MEMBER: &[u8; 9] = b"2.5.4.31\0"; +pub const szOID_OWNER: &[u8; 9] = b"2.5.4.32\0"; +pub const szOID_ROLE_OCCUPANT: &[u8; 9] = b"2.5.4.33\0"; +pub const szOID_SEE_ALSO: &[u8; 9] = b"2.5.4.34\0"; +pub const szOID_USER_PASSWORD: &[u8; 9] = b"2.5.4.35\0"; +pub const szOID_USER_CERTIFICATE: &[u8; 9] = b"2.5.4.36\0"; +pub const szOID_CA_CERTIFICATE: &[u8; 9] = b"2.5.4.37\0"; +pub const szOID_AUTHORITY_REVOCATION_LIST: &[u8; 9] = b"2.5.4.38\0"; +pub const szOID_CERTIFICATE_REVOCATION_LIST: &[u8; 9] = b"2.5.4.39\0"; +pub const szOID_CROSS_CERTIFICATE_PAIR: &[u8; 9] = b"2.5.4.40\0"; +pub const szOID_GIVEN_NAME: &[u8; 9] = b"2.5.4.42\0"; +pub const szOID_INITIALS: &[u8; 9] = b"2.5.4.43\0"; +pub const szOID_DN_QUALIFIER: &[u8; 9] = b"2.5.4.46\0"; +pub const szOID_DOMAIN_COMPONENT: &[u8; 27] = b"0.9.2342.19200300.100.1.25\0"; +pub const szOID_PKCS_12_FRIENDLY_NAME_ATTR: &[u8; 22] = b"1.2.840.113549.1.9.20\0"; +pub const szOID_PKCS_12_LOCAL_KEY_ID: &[u8; 22] = b"1.2.840.113549.1.9.21\0"; +pub const szOID_PKCS_12_KEY_PROVIDER_NAME_ATTR: &[u8; 21] = b"1.3.6.1.4.1.311.17.1\0"; +pub const szOID_LOCAL_MACHINE_KEYSET: &[u8; 21] = b"1.3.6.1.4.1.311.17.2\0"; +pub const szOID_PKCS_12_EXTENDED_ATTRIBUTES: &[u8; 21] = b"1.3.6.1.4.1.311.17.3\0"; +pub const szOID_PKCS_12_PROTECTED_PASSWORD_SECRET_BAG_TYPE_ID: &[u8; 21] = + b"1.3.6.1.4.1.311.17.4\0"; +pub const szOID_KEYID_RDN: &[u8; 23] = b"1.3.6.1.4.1.311.10.7.1\0"; +pub const szOID_EV_RDN_LOCALE: &[u8; 25] = b"1.3.6.1.4.1.311.60.2.1.1\0"; +pub const szOID_EV_RDN_STATE_OR_PROVINCE: &[u8; 25] = b"1.3.6.1.4.1.311.60.2.1.2\0"; +pub const szOID_EV_RDN_COUNTRY: &[u8; 25] = b"1.3.6.1.4.1.311.60.2.1.3\0"; +pub const CERT_RDN_ANY_TYPE: u32 = 0; +pub const CERT_RDN_ENCODED_BLOB: u32 = 1; +pub const CERT_RDN_OCTET_STRING: u32 = 2; +pub const CERT_RDN_NUMERIC_STRING: u32 = 3; +pub const CERT_RDN_PRINTABLE_STRING: u32 = 4; +pub const CERT_RDN_TELETEX_STRING: u32 = 5; +pub const CERT_RDN_T61_STRING: u32 = 5; +pub const CERT_RDN_VIDEOTEX_STRING: u32 = 6; +pub const CERT_RDN_IA5_STRING: u32 = 7; +pub const CERT_RDN_GRAPHIC_STRING: u32 = 8; +pub const CERT_RDN_VISIBLE_STRING: u32 = 9; +pub const CERT_RDN_ISO646_STRING: u32 = 9; +pub const CERT_RDN_GENERAL_STRING: u32 = 10; +pub const CERT_RDN_UNIVERSAL_STRING: u32 = 11; +pub const CERT_RDN_INT4_STRING: u32 = 11; +pub const CERT_RDN_BMP_STRING: u32 = 12; +pub const CERT_RDN_UNICODE_STRING: u32 = 12; +pub const CERT_RDN_UTF8_STRING: u32 = 13; +pub const CERT_RDN_TYPE_MASK: u32 = 255; +pub const CERT_RDN_FLAGS_MASK: u32 = 4278190080; +pub const CERT_RDN_ENABLE_T61_UNICODE_FLAG: u32 = 2147483648; +pub const CERT_RDN_ENABLE_UTF8_UNICODE_FLAG: u32 = 536870912; +pub const CERT_RDN_FORCE_UTF8_UNICODE_FLAG: u32 = 268435456; +pub const CERT_RDN_DISABLE_CHECK_TYPE_FLAG: u32 = 1073741824; +pub const CERT_RDN_DISABLE_IE4_UTF8_FLAG: u32 = 16777216; +pub const CERT_RDN_ENABLE_PUNYCODE_FLAG: u32 = 33554432; +pub const CERT_RSA_PUBLIC_KEY_OBJID: &[u8; 21] = b"1.2.840.113549.1.1.1\0"; +pub const CERT_DEFAULT_OID_PUBLIC_KEY_SIGN: &[u8; 21] = b"1.2.840.113549.1.1.1\0"; +pub const CERT_DEFAULT_OID_PUBLIC_KEY_XCHG: &[u8; 21] = b"1.2.840.113549.1.1.1\0"; +pub const CRYPT_ECC_PRIVATE_KEY_INFO_v1: u32 = 1; +pub const CERT_V1: u32 = 0; +pub const CERT_V2: u32 = 1; +pub const CERT_V3: u32 = 2; +pub const CERT_INFO_VERSION_FLAG: u32 = 1; +pub const CERT_INFO_SERIAL_NUMBER_FLAG: u32 = 2; +pub const CERT_INFO_SIGNATURE_ALGORITHM_FLAG: u32 = 3; +pub const CERT_INFO_ISSUER_FLAG: u32 = 4; +pub const CERT_INFO_NOT_BEFORE_FLAG: u32 = 5; +pub const CERT_INFO_NOT_AFTER_FLAG: u32 = 6; +pub const CERT_INFO_SUBJECT_FLAG: u32 = 7; +pub const CERT_INFO_SUBJECT_PUBLIC_KEY_INFO_FLAG: u32 = 8; +pub const CERT_INFO_ISSUER_UNIQUE_ID_FLAG: u32 = 9; +pub const CERT_INFO_SUBJECT_UNIQUE_ID_FLAG: u32 = 10; +pub const CERT_INFO_EXTENSION_FLAG: u32 = 11; +pub const CRL_V1: u32 = 0; +pub const CRL_V2: u32 = 1; +pub const CERT_BUNDLE_CERTIFICATE: u32 = 0; +pub const CERT_BUNDLE_CRL: u32 = 1; +pub const CERT_REQUEST_V1: u32 = 0; +pub const CERT_KEYGEN_REQUEST_V1: u32 = 0; +pub const CTL_V1: u32 = 0; +pub const CERT_ENCODING_TYPE_MASK: u32 = 65535; +pub const CMSG_ENCODING_TYPE_MASK: u32 = 4294901760; +pub const CRYPT_ASN_ENCODING: u32 = 1; +pub const CRYPT_NDR_ENCODING: u32 = 2; +pub const X509_ASN_ENCODING: u32 = 1; +pub const X509_NDR_ENCODING: u32 = 2; +pub const PKCS_7_ASN_ENCODING: u32 = 65536; +pub const PKCS_7_NDR_ENCODING: u32 = 131072; +pub const CRYPT_FORMAT_STR_MULTI_LINE: u32 = 1; +pub const CRYPT_FORMAT_STR_NO_HEX: u32 = 16; +pub const CRYPT_FORMAT_SIMPLE: u32 = 1; +pub const CRYPT_FORMAT_X509: u32 = 2; +pub const CRYPT_FORMAT_OID: u32 = 4; +pub const CRYPT_FORMAT_RDN_SEMICOLON: u32 = 256; +pub const CRYPT_FORMAT_RDN_CRLF: u32 = 512; +pub const CRYPT_FORMAT_RDN_UNQUOTE: u32 = 1024; +pub const CRYPT_FORMAT_RDN_REVERSE: u32 = 2048; +pub const CRYPT_FORMAT_COMMA: u32 = 4096; +pub const CRYPT_FORMAT_SEMICOLON: u32 = 256; +pub const CRYPT_FORMAT_CRLF: u32 = 512; +pub const CRYPT_ENCODE_NO_SIGNATURE_BYTE_REVERSAL_FLAG: u32 = 8; +pub const CRYPT_ENCODE_ALLOC_FLAG: u32 = 32768; +pub const CRYPT_UNICODE_NAME_ENCODE_ENABLE_T61_UNICODE_FLAG: u32 = 2147483648; +pub const CRYPT_UNICODE_NAME_ENCODE_ENABLE_UTF8_UNICODE_FLAG: u32 = 536870912; +pub const CRYPT_UNICODE_NAME_ENCODE_FORCE_UTF8_UNICODE_FLAG: u32 = 268435456; +pub const CRYPT_UNICODE_NAME_ENCODE_DISABLE_CHECK_TYPE_FLAG: u32 = 1073741824; +pub const CRYPT_SORTED_CTL_ENCODE_HASHED_SUBJECT_IDENTIFIER_FLAG: u32 = 65536; +pub const CRYPT_ENCODE_ENABLE_PUNYCODE_FLAG: u32 = 131072; +pub const CRYPT_ENCODE_ENABLE_UTF8PERCENT_FLAG: u32 = 262144; +pub const CRYPT_ENCODE_ENABLE_IA5CONVERSION_FLAG: u32 = 393216; +pub const CRYPT_DECODE_NOCOPY_FLAG: u32 = 1; +pub const CRYPT_DECODE_TO_BE_SIGNED_FLAG: u32 = 2; +pub const CRYPT_DECODE_SHARE_OID_STRING_FLAG: u32 = 4; +pub const CRYPT_DECODE_NO_SIGNATURE_BYTE_REVERSAL_FLAG: u32 = 8; +pub const CRYPT_DECODE_ALLOC_FLAG: u32 = 32768; +pub const CRYPT_UNICODE_NAME_DECODE_DISABLE_IE4_UTF8_FLAG: u32 = 16777216; +pub const CRYPT_DECODE_ENABLE_PUNYCODE_FLAG: u32 = 33554432; +pub const CRYPT_DECODE_ENABLE_UTF8PERCENT_FLAG: u32 = 67108864; +pub const CRYPT_DECODE_ENABLE_IA5CONVERSION_FLAG: u32 = 100663296; +pub const CRYPT_ENCODE_DECODE_NONE: u32 = 0; +pub const szOID_AUTHORITY_KEY_IDENTIFIER: &[u8; 9] = b"2.5.29.1\0"; +pub const szOID_KEY_ATTRIBUTES: &[u8; 9] = b"2.5.29.2\0"; +pub const szOID_CERT_POLICIES_95: &[u8; 9] = b"2.5.29.3\0"; +pub const szOID_KEY_USAGE_RESTRICTION: &[u8; 9] = b"2.5.29.4\0"; +pub const szOID_SUBJECT_ALT_NAME: &[u8; 9] = b"2.5.29.7\0"; +pub const szOID_ISSUER_ALT_NAME: &[u8; 9] = b"2.5.29.8\0"; +pub const szOID_BASIC_CONSTRAINTS: &[u8; 10] = b"2.5.29.10\0"; +pub const szOID_KEY_USAGE: &[u8; 10] = b"2.5.29.15\0"; +pub const szOID_PRIVATEKEY_USAGE_PERIOD: &[u8; 10] = b"2.5.29.16\0"; +pub const szOID_BASIC_CONSTRAINTS2: &[u8; 10] = b"2.5.29.19\0"; +pub const szOID_CERT_POLICIES: &[u8; 10] = b"2.5.29.32\0"; +pub const szOID_ANY_CERT_POLICY: &[u8; 12] = b"2.5.29.32.0\0"; +pub const szOID_INHIBIT_ANY_POLICY: &[u8; 10] = b"2.5.29.54\0"; +pub const szOID_AUTHORITY_KEY_IDENTIFIER2: &[u8; 10] = b"2.5.29.35\0"; +pub const szOID_SUBJECT_KEY_IDENTIFIER: &[u8; 10] = b"2.5.29.14\0"; +pub const szOID_SUBJECT_ALT_NAME2: &[u8; 10] = b"2.5.29.17\0"; +pub const szOID_ISSUER_ALT_NAME2: &[u8; 10] = b"2.5.29.18\0"; +pub const szOID_CRL_REASON_CODE: &[u8; 10] = b"2.5.29.21\0"; +pub const szOID_REASON_CODE_HOLD: &[u8; 10] = b"2.5.29.23\0"; +pub const szOID_CRL_DIST_POINTS: &[u8; 10] = b"2.5.29.31\0"; +pub const szOID_ENHANCED_KEY_USAGE: &[u8; 10] = b"2.5.29.37\0"; +pub const szOID_ANY_ENHANCED_KEY_USAGE: &[u8; 12] = b"2.5.29.37.0\0"; +pub const szOID_CRL_NUMBER: &[u8; 10] = b"2.5.29.20\0"; +pub const szOID_DELTA_CRL_INDICATOR: &[u8; 10] = b"2.5.29.27\0"; +pub const szOID_ISSUING_DIST_POINT: &[u8; 10] = b"2.5.29.28\0"; +pub const szOID_FRESHEST_CRL: &[u8; 10] = b"2.5.29.46\0"; +pub const szOID_NAME_CONSTRAINTS: &[u8; 10] = b"2.5.29.30\0"; +pub const szOID_POLICY_MAPPINGS: &[u8; 10] = b"2.5.29.33\0"; +pub const szOID_LEGACY_POLICY_MAPPINGS: &[u8; 9] = b"2.5.29.5\0"; +pub const szOID_POLICY_CONSTRAINTS: &[u8; 10] = b"2.5.29.36\0"; +pub const szOID_RENEWAL_CERTIFICATE: &[u8; 21] = b"1.3.6.1.4.1.311.13.1\0"; +pub const szOID_ENROLLMENT_NAME_VALUE_PAIR: &[u8; 23] = b"1.3.6.1.4.1.311.13.2.1\0"; +pub const szOID_ENROLLMENT_CSP_PROVIDER: &[u8; 23] = b"1.3.6.1.4.1.311.13.2.2\0"; +pub const szOID_OS_VERSION: &[u8; 23] = b"1.3.6.1.4.1.311.13.2.3\0"; +pub const szOID_ENROLLMENT_AGENT: &[u8; 23] = b"1.3.6.1.4.1.311.20.2.1\0"; +pub const szOID_PKIX: &[u8; 14] = b"1.3.6.1.5.5.7\0"; +pub const szOID_PKIX_PE: &[u8; 16] = b"1.3.6.1.5.5.7.1\0"; +pub const szOID_AUTHORITY_INFO_ACCESS: &[u8; 18] = b"1.3.6.1.5.5.7.1.1\0"; +pub const szOID_SUBJECT_INFO_ACCESS: &[u8; 19] = b"1.3.6.1.5.5.7.1.11\0"; +pub const szOID_BIOMETRIC_EXT: &[u8; 18] = b"1.3.6.1.5.5.7.1.2\0"; +pub const szOID_QC_STATEMENTS_EXT: &[u8; 18] = b"1.3.6.1.5.5.7.1.3\0"; +pub const szOID_LOGOTYPE_EXT: &[u8; 19] = b"1.3.6.1.5.5.7.1.12\0"; +pub const szOID_TLS_FEATURES_EXT: &[u8; 19] = b"1.3.6.1.5.5.7.1.24\0"; +pub const szOID_CERT_EXTENSIONS: &[u8; 23] = b"1.3.6.1.4.1.311.2.1.14\0"; +pub const szOID_NEXT_UPDATE_LOCATION: &[u8; 21] = b"1.3.6.1.4.1.311.10.2\0"; +pub const szOID_REMOVE_CERTIFICATE: &[u8; 23] = b"1.3.6.1.4.1.311.10.8.1\0"; +pub const szOID_CROSS_CERT_DIST_POINTS: &[u8; 23] = b"1.3.6.1.4.1.311.10.9.1\0"; +pub const szOID_CTL: &[u8; 21] = b"1.3.6.1.4.1.311.10.1\0"; +pub const szOID_SORTED_CTL: &[u8; 23] = b"1.3.6.1.4.1.311.10.1.1\0"; +pub const szOID_SERIALIZED: &[u8; 25] = b"1.3.6.1.4.1.311.10.3.3.1\0"; +pub const szOID_NT_PRINCIPAL_NAME: &[u8; 23] = b"1.3.6.1.4.1.311.20.2.3\0"; +pub const szOID_INTERNATIONALIZED_EMAIL_ADDRESS: &[u8; 23] = b"1.3.6.1.4.1.311.20.2.4\0"; +pub const szOID_PRODUCT_UPDATE: &[u8; 21] = b"1.3.6.1.4.1.311.31.1\0"; +pub const szOID_ANY_APPLICATION_POLICY: &[u8; 24] = b"1.3.6.1.4.1.311.10.12.1\0"; +pub const szOID_AUTO_ENROLL_CTL_USAGE: &[u8; 21] = b"1.3.6.1.4.1.311.20.1\0"; +pub const szOID_ENROLL_CERTTYPE_EXTENSION: &[u8; 21] = b"1.3.6.1.4.1.311.20.2\0"; +pub const szOID_CERT_MANIFOLD: &[u8; 21] = b"1.3.6.1.4.1.311.20.3\0"; +pub const szOID_CERTSRV_CA_VERSION: &[u8; 21] = b"1.3.6.1.4.1.311.21.1\0"; +pub const szOID_CERTSRV_PREVIOUS_CERT_HASH: &[u8; 21] = b"1.3.6.1.4.1.311.21.2\0"; +pub const szOID_CRL_VIRTUAL_BASE: &[u8; 21] = b"1.3.6.1.4.1.311.21.3\0"; +pub const szOID_CRL_NEXT_PUBLISH: &[u8; 21] = b"1.3.6.1.4.1.311.21.4\0"; +pub const szOID_KP_CA_EXCHANGE: &[u8; 21] = b"1.3.6.1.4.1.311.21.5\0"; +pub const szOID_KP_PRIVACY_CA: &[u8; 22] = b"1.3.6.1.4.1.311.21.36\0"; +pub const szOID_KP_KEY_RECOVERY_AGENT: &[u8; 21] = b"1.3.6.1.4.1.311.21.6\0"; +pub const szOID_CERTIFICATE_TEMPLATE: &[u8; 21] = b"1.3.6.1.4.1.311.21.7\0"; +pub const szOID_ENTERPRISE_OID_ROOT: &[u8; 21] = b"1.3.6.1.4.1.311.21.8\0"; +pub const szOID_RDN_DUMMY_SIGNER: &[u8; 21] = b"1.3.6.1.4.1.311.21.9\0"; +pub const szOID_APPLICATION_CERT_POLICIES: &[u8; 22] = b"1.3.6.1.4.1.311.21.10\0"; +pub const szOID_APPLICATION_POLICY_MAPPINGS: &[u8; 22] = b"1.3.6.1.4.1.311.21.11\0"; +pub const szOID_APPLICATION_POLICY_CONSTRAINTS: &[u8; 22] = b"1.3.6.1.4.1.311.21.12\0"; +pub const szOID_ARCHIVED_KEY_ATTR: &[u8; 22] = b"1.3.6.1.4.1.311.21.13\0"; +pub const szOID_CRL_SELF_CDP: &[u8; 22] = b"1.3.6.1.4.1.311.21.14\0"; +pub const szOID_REQUIRE_CERT_CHAIN_POLICY: &[u8; 22] = b"1.3.6.1.4.1.311.21.15\0"; +pub const szOID_ARCHIVED_KEY_CERT_HASH: &[u8; 22] = b"1.3.6.1.4.1.311.21.16\0"; +pub const szOID_ISSUED_CERT_HASH: &[u8; 22] = b"1.3.6.1.4.1.311.21.17\0"; +pub const szOID_DS_EMAIL_REPLICATION: &[u8; 22] = b"1.3.6.1.4.1.311.21.19\0"; +pub const szOID_REQUEST_CLIENT_INFO: &[u8; 22] = b"1.3.6.1.4.1.311.21.20\0"; +pub const szOID_ENCRYPTED_KEY_HASH: &[u8; 22] = b"1.3.6.1.4.1.311.21.21\0"; +pub const szOID_CERTSRV_CROSSCA_VERSION: &[u8; 22] = b"1.3.6.1.4.1.311.21.22\0"; +pub const szOID_NTDS_REPLICATION: &[u8; 21] = b"1.3.6.1.4.1.311.25.1\0"; +pub const szOID_NTDS_CA_SECURITY_EXT: &[u8; 21] = b"1.3.6.1.4.1.311.25.2\0"; +pub const szOID_NTDS_OBJECTSID: &[u8; 23] = b"1.3.6.1.4.1.311.25.2.1\0"; +pub const szOID_SUBJECT_DIR_ATTRS: &[u8; 9] = b"2.5.29.9\0"; +pub const szOID_PKIX_KP: &[u8; 16] = b"1.3.6.1.5.5.7.3\0"; +pub const szOID_PKIX_KP_SERVER_AUTH: &[u8; 18] = b"1.3.6.1.5.5.7.3.1\0"; +pub const szOID_PKIX_KP_CLIENT_AUTH: &[u8; 18] = b"1.3.6.1.5.5.7.3.2\0"; +pub const szOID_PKIX_KP_CODE_SIGNING: &[u8; 18] = b"1.3.6.1.5.5.7.3.3\0"; +pub const szOID_PKIX_KP_EMAIL_PROTECTION: &[u8; 18] = b"1.3.6.1.5.5.7.3.4\0"; +pub const szOID_PKIX_KP_IPSEC_END_SYSTEM: &[u8; 18] = b"1.3.6.1.5.5.7.3.5\0"; +pub const szOID_PKIX_KP_IPSEC_TUNNEL: &[u8; 18] = b"1.3.6.1.5.5.7.3.6\0"; +pub const szOID_PKIX_KP_IPSEC_USER: &[u8; 18] = b"1.3.6.1.5.5.7.3.7\0"; +pub const szOID_PKIX_KP_TIMESTAMP_SIGNING: &[u8; 18] = b"1.3.6.1.5.5.7.3.8\0"; +pub const szOID_PKIX_KP_OCSP_SIGNING: &[u8; 18] = b"1.3.6.1.5.5.7.3.9\0"; +pub const szOID_PKIX_OCSP_NOCHECK: &[u8; 21] = b"1.3.6.1.5.5.7.48.1.5\0"; +pub const szOID_PKIX_OCSP_NONCE: &[u8; 21] = b"1.3.6.1.5.5.7.48.1.2\0"; +pub const szOID_IPSEC_KP_IKE_INTERMEDIATE: &[u8; 18] = b"1.3.6.1.5.5.8.2.2\0"; +pub const szOID_PKINIT_KP_KDC: &[u8; 16] = b"1.3.6.1.5.2.3.5\0"; +pub const szOID_KP_CTL_USAGE_SIGNING: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.1\0"; +pub const szOID_KP_TIME_STAMP_SIGNING: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.2\0"; +pub const szOID_SERVER_GATED_CRYPTO: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.3\0"; +pub const szOID_SGC_NETSCAPE: &[u8; 22] = b"2.16.840.1.113730.4.1\0"; +pub const szOID_KP_EFS: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.4\0"; +pub const szOID_EFS_RECOVERY: &[u8; 25] = b"1.3.6.1.4.1.311.10.3.4.1\0"; +pub const szOID_WHQL_CRYPTO: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.5\0"; +pub const szOID_ATTEST_WHQL_CRYPTO: &[u8; 25] = b"1.3.6.1.4.1.311.10.3.5.1\0"; +pub const szOID_NT5_CRYPTO: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.6\0"; +pub const szOID_OEM_WHQL_CRYPTO: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.7\0"; +pub const szOID_EMBEDDED_NT_CRYPTO: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.8\0"; +pub const szOID_ROOT_LIST_SIGNER: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.9\0"; +pub const szOID_KP_QUALIFIED_SUBORDINATION: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.10\0"; +pub const szOID_KP_KEY_RECOVERY: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.11\0"; +pub const szOID_KP_DOCUMENT_SIGNING: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.12\0"; +pub const szOID_KP_LIFETIME_SIGNING: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.13\0"; +pub const szOID_KP_MOBILE_DEVICE_SOFTWARE: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.14\0"; +pub const szOID_KP_SMART_DISPLAY: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.15\0"; +pub const szOID_KP_CSP_SIGNATURE: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.16\0"; +pub const szOID_KP_FLIGHT_SIGNING: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.27\0"; +pub const szOID_PLATFORM_MANIFEST_BINARY_ID: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.28\0"; +pub const szOID_DRM: &[u8; 23] = b"1.3.6.1.4.1.311.10.5.1\0"; +pub const szOID_DRM_INDIVIDUALIZATION: &[u8; 23] = b"1.3.6.1.4.1.311.10.5.2\0"; +pub const szOID_LICENSES: &[u8; 23] = b"1.3.6.1.4.1.311.10.6.1\0"; +pub const szOID_LICENSE_SERVER: &[u8; 23] = b"1.3.6.1.4.1.311.10.6.2\0"; +pub const szOID_KP_SMARTCARD_LOGON: &[u8; 23] = b"1.3.6.1.4.1.311.20.2.2\0"; +pub const szOID_KP_KERNEL_MODE_CODE_SIGNING: &[u8; 23] = b"1.3.6.1.4.1.311.61.1.1\0"; +pub const szOID_KP_KERNEL_MODE_TRUSTED_BOOT_SIGNING: &[u8; 23] = b"1.3.6.1.4.1.311.61.4.1\0"; +pub const szOID_REVOKED_LIST_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.19\0"; +pub const szOID_WINDOWS_KITS_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.20\0"; +pub const szOID_WINDOWS_RT_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.21\0"; +pub const szOID_PROTECTED_PROCESS_LIGHT_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.22\0"; +pub const szOID_WINDOWS_TCB_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.23\0"; +pub const szOID_PROTECTED_PROCESS_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.24\0"; +pub const szOID_WINDOWS_THIRD_PARTY_COMPONENT_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.25\0"; +pub const szOID_WINDOWS_SOFTWARE_EXTENSION_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.26\0"; +pub const szOID_DISALLOWED_LIST: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.30\0"; +pub const szOID_PIN_RULES_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.31\0"; +pub const szOID_PIN_RULES_CTL: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.32\0"; +pub const szOID_PIN_RULES_EXT: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.33\0"; +pub const szOID_PIN_RULES_DOMAIN_NAME: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.34\0"; +pub const szOID_PIN_RULES_LOG_END_DATE_EXT: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.35\0"; +pub const szOID_IUM_SIGNING: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.37\0"; +pub const szOID_EV_WHQL_CRYPTO: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.39\0"; +pub const szOID_BIOMETRIC_SIGNING: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.41\0"; +pub const szOID_ENCLAVE_SIGNING: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.42\0"; +pub const szOID_SYNC_ROOT_CTL_EXT: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.50\0"; +pub const szOID_HPKP_DOMAIN_NAME_CTL: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.60\0"; +pub const szOID_HPKP_HEADER_VALUE_CTL: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.61\0"; +pub const szOID_KP_KERNEL_MODE_HAL_EXTENSION_SIGNING: &[u8; 23] = b"1.3.6.1.4.1.311.61.5.1\0"; +pub const szOID_WINDOWS_STORE_SIGNER: &[u8; 23] = b"1.3.6.1.4.1.311.76.3.1\0"; +pub const szOID_DYNAMIC_CODE_GEN_SIGNER: &[u8; 23] = b"1.3.6.1.4.1.311.76.5.1\0"; +pub const szOID_MICROSOFT_PUBLISHER_SIGNER: &[u8; 23] = b"1.3.6.1.4.1.311.76.8.1\0"; +pub const szOID_YESNO_TRUST_ATTR: &[u8; 23] = b"1.3.6.1.4.1.311.10.4.1\0"; +pub const szOID_SITE_PIN_RULES_INDEX_ATTR: &[u8; 23] = b"1.3.6.1.4.1.311.10.4.2\0"; +pub const szOID_SITE_PIN_RULES_FLAGS_ATTR: &[u8; 23] = b"1.3.6.1.4.1.311.10.4.3\0"; +pub const SITE_PIN_RULES_ALL_SUBDOMAINS_FLAG: u32 = 1; +pub const szOID_PKIX_POLICY_QUALIFIER_CPS: &[u8; 18] = b"1.3.6.1.5.5.7.2.1\0"; +pub const szOID_PKIX_POLICY_QUALIFIER_USERNOTICE: &[u8; 18] = b"1.3.6.1.5.5.7.2.2\0"; +pub const szOID_ROOT_PROGRAM_FLAGS: &[u8; 23] = b"1.3.6.1.4.1.311.60.1.1\0"; +pub const CERT_ROOT_PROGRAM_FLAG_ORG: u32 = 128; +pub const CERT_ROOT_PROGRAM_FLAG_LSC: u32 = 64; +pub const CERT_ROOT_PROGRAM_FLAG_SUBJECT_LOGO: u32 = 32; +pub const CERT_ROOT_PROGRAM_FLAG_OU: u32 = 16; +pub const CERT_ROOT_PROGRAM_FLAG_ADDRESS: u32 = 8; +pub const szOID_CERT_POLICIES_95_QUALIFIER1: &[u8; 26] = b"2.16.840.1.113733.1.7.1.1\0"; +pub const szOID_RDN_TPM_MANUFACTURER: &[u8; 13] = b"2.23.133.2.1\0"; +pub const szOID_RDN_TPM_MODEL: &[u8; 13] = b"2.23.133.2.2\0"; +pub const szOID_RDN_TPM_VERSION: &[u8; 13] = b"2.23.133.2.3\0"; +pub const szOID_RDN_TCG_PLATFORM_MANUFACTURER: &[u8; 13] = b"2.23.133.2.4\0"; +pub const szOID_RDN_TCG_PLATFORM_MODEL: &[u8; 13] = b"2.23.133.2.5\0"; +pub const szOID_RDN_TCG_PLATFORM_VERSION: &[u8; 13] = b"2.23.133.2.6\0"; +pub const szOID_CT_CERT_SCTLIST: &[u8; 24] = b"1.3.6.1.4.1.11129.2.4.2\0"; +pub const szOID_ENROLL_EK_INFO: &[u8; 22] = b"1.3.6.1.4.1.311.21.23\0"; +pub const szOID_ENROLL_AIK_INFO: &[u8; 22] = b"1.3.6.1.4.1.311.21.39\0"; +pub const szOID_ENROLL_ATTESTATION_STATEMENT: &[u8; 22] = b"1.3.6.1.4.1.311.21.24\0"; +pub const szOID_ENROLL_KSP_NAME: &[u8; 22] = b"1.3.6.1.4.1.311.21.25\0"; +pub const szOID_ENROLL_EKPUB_CHALLENGE: &[u8; 22] = b"1.3.6.1.4.1.311.21.26\0"; +pub const szOID_ENROLL_CAXCHGCERT_HASH: &[u8; 22] = b"1.3.6.1.4.1.311.21.27\0"; +pub const szOID_ENROLL_ATTESTATION_CHALLENGE: &[u8; 22] = b"1.3.6.1.4.1.311.21.28\0"; +pub const szOID_ENROLL_ENCRYPTION_ALGORITHM: &[u8; 22] = b"1.3.6.1.4.1.311.21.29\0"; +pub const szOID_KP_TPM_EK_CERTIFICATE: &[u8; 13] = b"2.23.133.8.1\0"; +pub const szOID_KP_TPM_PLATFORM_CERTIFICATE: &[u8; 13] = b"2.23.133.8.2\0"; +pub const szOID_KP_TPM_AIK_CERTIFICATE: &[u8; 13] = b"2.23.133.8.3\0"; +pub const szOID_ENROLL_EKVERIFYKEY: &[u8; 22] = b"1.3.6.1.4.1.311.21.30\0"; +pub const szOID_ENROLL_EKVERIFYCERT: &[u8; 22] = b"1.3.6.1.4.1.311.21.31\0"; +pub const szOID_ENROLL_EKVERIFYCREDS: &[u8; 22] = b"1.3.6.1.4.1.311.21.32\0"; +pub const szOID_ENROLL_SCEP_ERROR: &[u8; 22] = b"1.3.6.1.4.1.311.21.33\0"; +pub const szOID_ENROLL_SCEP_SERVER_STATE: &[u8; 22] = b"1.3.6.1.4.1.311.21.34\0"; +pub const szOID_ENROLL_SCEP_CHALLENGE_ANSWER: &[u8; 22] = b"1.3.6.1.4.1.311.21.35\0"; +pub const szOID_ENROLL_SCEP_CLIENT_REQUEST: &[u8; 22] = b"1.3.6.1.4.1.311.21.37\0"; +pub const szOID_ENROLL_SCEP_SERVER_MESSAGE: &[u8; 22] = b"1.3.6.1.4.1.311.21.38\0"; +pub const szOID_ENROLL_SCEP_SERVER_SECRET: &[u8; 22] = b"1.3.6.1.4.1.311.21.40\0"; +pub const szOID_ENROLL_KEY_AFFINITY: &[u8; 22] = b"1.3.6.1.4.1.311.21.41\0"; +pub const szOID_ENROLL_SCEP_SIGNER_HASH: &[u8; 22] = b"1.3.6.1.4.1.311.21.42\0"; +pub const szOID_ENROLL_EK_CA_KEYID: &[u8; 22] = b"1.3.6.1.4.1.311.21.43\0"; +pub const szOID_ATTR_SUPPORTED_ALGORITHMS: &[u8; 9] = b"2.5.4.52\0"; +pub const szOID_ATTR_TPM_SPECIFICATION: &[u8; 14] = b"2.23.133.2.16\0"; +pub const szOID_ATTR_PLATFORM_SPECIFICATION: &[u8; 14] = b"2.23.133.2.17\0"; +pub const szOID_ATTR_TPM_SECURITY_ASSERTIONS: &[u8; 14] = b"2.23.133.2.18\0"; +pub const CERT_UNICODE_RDN_ERR_INDEX_MASK: u32 = 1023; +pub const CERT_UNICODE_RDN_ERR_INDEX_SHIFT: u32 = 22; +pub const CERT_UNICODE_ATTR_ERR_INDEX_MASK: u32 = 63; +pub const CERT_UNICODE_ATTR_ERR_INDEX_SHIFT: u32 = 16; +pub const CERT_UNICODE_VALUE_ERR_INDEX_MASK: u32 = 65535; +pub const CERT_UNICODE_VALUE_ERR_INDEX_SHIFT: u32 = 0; +pub const CERT_DIGITAL_SIGNATURE_KEY_USAGE: u32 = 128; +pub const CERT_NON_REPUDIATION_KEY_USAGE: u32 = 64; +pub const CERT_KEY_ENCIPHERMENT_KEY_USAGE: u32 = 32; +pub const CERT_DATA_ENCIPHERMENT_KEY_USAGE: u32 = 16; +pub const CERT_KEY_AGREEMENT_KEY_USAGE: u32 = 8; +pub const CERT_KEY_CERT_SIGN_KEY_USAGE: u32 = 4; +pub const CERT_OFFLINE_CRL_SIGN_KEY_USAGE: u32 = 2; +pub const CERT_CRL_SIGN_KEY_USAGE: u32 = 2; +pub const CERT_ENCIPHER_ONLY_KEY_USAGE: u32 = 1; +pub const CERT_DECIPHER_ONLY_KEY_USAGE: u32 = 128; +pub const CERT_ALT_NAME_OTHER_NAME: u32 = 1; +pub const CERT_ALT_NAME_RFC822_NAME: u32 = 2; +pub const CERT_ALT_NAME_DNS_NAME: u32 = 3; +pub const CERT_ALT_NAME_X400_ADDRESS: u32 = 4; +pub const CERT_ALT_NAME_DIRECTORY_NAME: u32 = 5; +pub const CERT_ALT_NAME_EDI_PARTY_NAME: u32 = 6; +pub const CERT_ALT_NAME_URL: u32 = 7; +pub const CERT_ALT_NAME_IP_ADDRESS: u32 = 8; +pub const CERT_ALT_NAME_REGISTERED_ID: u32 = 9; +pub const CERT_ALT_NAME_ENTRY_ERR_INDEX_MASK: u32 = 255; +pub const CERT_ALT_NAME_ENTRY_ERR_INDEX_SHIFT: u32 = 16; +pub const CERT_ALT_NAME_VALUE_ERR_INDEX_MASK: u32 = 65535; +pub const CERT_ALT_NAME_VALUE_ERR_INDEX_SHIFT: u32 = 0; +pub const CERT_CA_SUBJECT_FLAG: u32 = 128; +pub const CERT_END_ENTITY_SUBJECT_FLAG: u32 = 64; +pub const szOID_PKIX_ACC_DESCR: &[u8; 17] = b"1.3.6.1.5.5.7.48\0"; +pub const szOID_PKIX_OCSP: &[u8; 19] = b"1.3.6.1.5.5.7.48.1\0"; +pub const szOID_PKIX_CA_ISSUERS: &[u8; 19] = b"1.3.6.1.5.5.7.48.2\0"; +pub const szOID_PKIX_TIME_STAMPING: &[u8; 19] = b"1.3.6.1.5.5.7.48.3\0"; +pub const szOID_PKIX_CA_REPOSITORY: &[u8; 19] = b"1.3.6.1.5.5.7.48.5\0"; +pub const CRL_REASON_UNSPECIFIED: u32 = 0; +pub const CRL_REASON_KEY_COMPROMISE: u32 = 1; +pub const CRL_REASON_CA_COMPROMISE: u32 = 2; +pub const CRL_REASON_AFFILIATION_CHANGED: u32 = 3; +pub const CRL_REASON_SUPERSEDED: u32 = 4; +pub const CRL_REASON_CESSATION_OF_OPERATION: u32 = 5; +pub const CRL_REASON_CERTIFICATE_HOLD: u32 = 6; +pub const CRL_REASON_REMOVE_FROM_CRL: u32 = 8; +pub const CRL_REASON_PRIVILEGE_WITHDRAWN: u32 = 9; +pub const CRL_REASON_AA_COMPROMISE: u32 = 10; +pub const CRL_DIST_POINT_NO_NAME: u32 = 0; +pub const CRL_DIST_POINT_FULL_NAME: u32 = 1; +pub const CRL_DIST_POINT_ISSUER_RDN_NAME: u32 = 2; +pub const CRL_REASON_UNUSED_FLAG: u32 = 128; +pub const CRL_REASON_KEY_COMPROMISE_FLAG: u32 = 64; +pub const CRL_REASON_CA_COMPROMISE_FLAG: u32 = 32; +pub const CRL_REASON_AFFILIATION_CHANGED_FLAG: u32 = 16; +pub const CRL_REASON_SUPERSEDED_FLAG: u32 = 8; +pub const CRL_REASON_CESSATION_OF_OPERATION_FLAG: u32 = 4; +pub const CRL_REASON_CERTIFICATE_HOLD_FLAG: u32 = 2; +pub const CRL_REASON_PRIVILEGE_WITHDRAWN_FLAG: u32 = 1; +pub const CRL_REASON_AA_COMPROMISE_FLAG: u32 = 128; +pub const CRL_DIST_POINT_ERR_INDEX_MASK: u32 = 127; +pub const CRL_DIST_POINT_ERR_INDEX_SHIFT: u32 = 24; +pub const CRL_DIST_POINT_ERR_CRL_ISSUER_BIT: u32 = 2147483648; +pub const CROSS_CERT_DIST_POINT_ERR_INDEX_MASK: u32 = 255; +pub const CROSS_CERT_DIST_POINT_ERR_INDEX_SHIFT: u32 = 24; +pub const CERT_EXCLUDED_SUBTREE_BIT: u32 = 2147483648; +pub const SORTED_CTL_EXT_FLAGS_OFFSET: u32 = 0; +pub const SORTED_CTL_EXT_COUNT_OFFSET: u32 = 4; +pub const SORTED_CTL_EXT_MAX_COLLISION_OFFSET: u32 = 8; +pub const SORTED_CTL_EXT_HASH_BUCKET_OFFSET: u32 = 12; +pub const SORTED_CTL_EXT_HASHED_SUBJECT_IDENTIFIER_FLAG: u32 = 1; +pub const CERT_DSS_R_LEN: u32 = 20; +pub const CERT_DSS_S_LEN: u32 = 20; +pub const CERT_DSS_SIGNATURE_LEN: u32 = 40; +pub const CERT_MAX_ASN_ENCODED_DSS_SIGNATURE_LEN: u32 = 48; +pub const CRYPT_X942_COUNTER_BYTE_LENGTH: u32 = 4; +pub const CRYPT_X942_KEY_LENGTH_BYTE_LENGTH: u32 = 4; +pub const CRYPT_X942_PUB_INFO_BYTE_LENGTH: u32 = 64; +pub const CRYPT_ECC_CMS_SHARED_INFO_SUPPPUBINFO_BYTE_LENGTH: u32 = 4; +pub const CRYPT_RC2_40BIT_VERSION: u32 = 160; +pub const CRYPT_RC2_56BIT_VERSION: u32 = 52; +pub const CRYPT_RC2_64BIT_VERSION: u32 = 120; +pub const CRYPT_RC2_128BIT_VERSION: u32 = 58; +pub const szOID_QC_EU_COMPLIANCE: &[u8; 15] = b"0.4.0.1862.1.1\0"; +pub const szOID_QC_SSCD: &[u8; 15] = b"0.4.0.1862.1.4\0"; +pub const PKCS_RSA_SSA_PSS_TRAILER_FIELD_BC: u32 = 1; +pub const szOID_VERISIGN_PRIVATE_6_9: &[u8; 24] = b"2.16.840.1.113733.1.6.9\0"; +pub const szOID_VERISIGN_ONSITE_JURISDICTION_HASH: &[u8; 25] = b"2.16.840.1.113733.1.6.11\0"; +pub const szOID_VERISIGN_BITSTRING_6_13: &[u8; 25] = b"2.16.840.1.113733.1.6.13\0"; +pub const szOID_VERISIGN_ISS_STRONG_CRYPTO: &[u8; 24] = b"2.16.840.1.113733.1.8.1\0"; +pub const szOIDVerisign_MessageType: &[u8; 24] = b"2.16.840.1.113733.1.9.2\0"; +pub const szOIDVerisign_PkiStatus: &[u8; 24] = b"2.16.840.1.113733.1.9.3\0"; +pub const szOIDVerisign_FailInfo: &[u8; 24] = b"2.16.840.1.113733.1.9.4\0"; +pub const szOIDVerisign_SenderNonce: &[u8; 24] = b"2.16.840.1.113733.1.9.5\0"; +pub const szOIDVerisign_RecipientNonce: &[u8; 24] = b"2.16.840.1.113733.1.9.6\0"; +pub const szOIDVerisign_TransactionID: &[u8; 24] = b"2.16.840.1.113733.1.9.7\0"; +pub const szOID_NETSCAPE: &[u8; 18] = b"2.16.840.1.113730\0"; +pub const szOID_NETSCAPE_CERT_EXTENSION: &[u8; 20] = b"2.16.840.1.113730.1\0"; +pub const szOID_NETSCAPE_CERT_TYPE: &[u8; 22] = b"2.16.840.1.113730.1.1\0"; +pub const szOID_NETSCAPE_BASE_URL: &[u8; 22] = b"2.16.840.1.113730.1.2\0"; +pub const szOID_NETSCAPE_REVOCATION_URL: &[u8; 22] = b"2.16.840.1.113730.1.3\0"; +pub const szOID_NETSCAPE_CA_REVOCATION_URL: &[u8; 22] = b"2.16.840.1.113730.1.4\0"; +pub const szOID_NETSCAPE_CERT_RENEWAL_URL: &[u8; 22] = b"2.16.840.1.113730.1.7\0"; +pub const szOID_NETSCAPE_CA_POLICY_URL: &[u8; 22] = b"2.16.840.1.113730.1.8\0"; +pub const szOID_NETSCAPE_SSL_SERVER_NAME: &[u8; 23] = b"2.16.840.1.113730.1.12\0"; +pub const szOID_NETSCAPE_COMMENT: &[u8; 23] = b"2.16.840.1.113730.1.13\0"; +pub const szOID_NETSCAPE_DATA_TYPE: &[u8; 20] = b"2.16.840.1.113730.2\0"; +pub const szOID_NETSCAPE_CERT_SEQUENCE: &[u8; 22] = b"2.16.840.1.113730.2.5\0"; +pub const NETSCAPE_SSL_CLIENT_AUTH_CERT_TYPE: u32 = 128; +pub const NETSCAPE_SSL_SERVER_AUTH_CERT_TYPE: u32 = 64; +pub const NETSCAPE_SMIME_CERT_TYPE: u32 = 32; +pub const NETSCAPE_SIGN_CERT_TYPE: u32 = 16; +pub const NETSCAPE_SSL_CA_CERT_TYPE: u32 = 4; +pub const NETSCAPE_SMIME_CA_CERT_TYPE: u32 = 2; +pub const NETSCAPE_SIGN_CA_CERT_TYPE: u32 = 1; +pub const szOID_CT_PKI_DATA: &[u8; 19] = b"1.3.6.1.5.5.7.12.2\0"; +pub const szOID_CT_PKI_RESPONSE: &[u8; 19] = b"1.3.6.1.5.5.7.12.3\0"; +pub const szOID_PKIX_NO_SIGNATURE: &[u8; 18] = b"1.3.6.1.5.5.7.6.2\0"; +pub const szOID_CMC: &[u8; 16] = b"1.3.6.1.5.5.7.7\0"; +pub const szOID_CMC_STATUS_INFO: &[u8; 18] = b"1.3.6.1.5.5.7.7.1\0"; +pub const szOID_CMC_IDENTIFICATION: &[u8; 18] = b"1.3.6.1.5.5.7.7.2\0"; +pub const szOID_CMC_IDENTITY_PROOF: &[u8; 18] = b"1.3.6.1.5.5.7.7.3\0"; +pub const szOID_CMC_DATA_RETURN: &[u8; 18] = b"1.3.6.1.5.5.7.7.4\0"; +pub const szOID_CMC_TRANSACTION_ID: &[u8; 18] = b"1.3.6.1.5.5.7.7.5\0"; +pub const szOID_CMC_SENDER_NONCE: &[u8; 18] = b"1.3.6.1.5.5.7.7.6\0"; +pub const szOID_CMC_RECIPIENT_NONCE: &[u8; 18] = b"1.3.6.1.5.5.7.7.7\0"; +pub const szOID_CMC_ADD_EXTENSIONS: &[u8; 18] = b"1.3.6.1.5.5.7.7.8\0"; +pub const szOID_CMC_ENCRYPTED_POP: &[u8; 18] = b"1.3.6.1.5.5.7.7.9\0"; +pub const szOID_CMC_DECRYPTED_POP: &[u8; 19] = b"1.3.6.1.5.5.7.7.10\0"; +pub const szOID_CMC_LRA_POP_WITNESS: &[u8; 19] = b"1.3.6.1.5.5.7.7.11\0"; +pub const szOID_CMC_GET_CERT: &[u8; 19] = b"1.3.6.1.5.5.7.7.15\0"; +pub const szOID_CMC_GET_CRL: &[u8; 19] = b"1.3.6.1.5.5.7.7.16\0"; +pub const szOID_CMC_REVOKE_REQUEST: &[u8; 19] = b"1.3.6.1.5.5.7.7.17\0"; +pub const szOID_CMC_REG_INFO: &[u8; 19] = b"1.3.6.1.5.5.7.7.18\0"; +pub const szOID_CMC_RESPONSE_INFO: &[u8; 19] = b"1.3.6.1.5.5.7.7.19\0"; +pub const szOID_CMC_QUERY_PENDING: &[u8; 19] = b"1.3.6.1.5.5.7.7.21\0"; +pub const szOID_CMC_ID_POP_LINK_RANDOM: &[u8; 19] = b"1.3.6.1.5.5.7.7.22\0"; +pub const szOID_CMC_ID_POP_LINK_WITNESS: &[u8; 19] = b"1.3.6.1.5.5.7.7.23\0"; +pub const szOID_CMC_ID_CONFIRM_CERT_ACCEPTANCE: &[u8; 19] = b"1.3.6.1.5.5.7.7.24\0"; +pub const szOID_CMC_ADD_ATTRIBUTES: &[u8; 24] = b"1.3.6.1.4.1.311.10.10.1\0"; +pub const CMC_TAGGED_CERT_REQUEST_CHOICE: u32 = 1; +pub const CMC_OTHER_INFO_NO_CHOICE: u32 = 0; +pub const CMC_OTHER_INFO_FAIL_CHOICE: u32 = 1; +pub const CMC_OTHER_INFO_PEND_CHOICE: u32 = 2; +pub const CMC_STATUS_SUCCESS: u32 = 0; +pub const CMC_STATUS_FAILED: u32 = 2; +pub const CMC_STATUS_PENDING: u32 = 3; +pub const CMC_STATUS_NO_SUPPORT: u32 = 4; +pub const CMC_STATUS_CONFIRM_REQUIRED: u32 = 5; +pub const CMC_FAIL_BAD_ALG: u32 = 0; +pub const CMC_FAIL_BAD_MESSAGE_CHECK: u32 = 1; +pub const CMC_FAIL_BAD_REQUEST: u32 = 2; +pub const CMC_FAIL_BAD_TIME: u32 = 3; +pub const CMC_FAIL_BAD_CERT_ID: u32 = 4; +pub const CMC_FAIL_UNSUPORTED_EXT: u32 = 5; +pub const CMC_FAIL_MUST_ARCHIVE_KEYS: u32 = 6; +pub const CMC_FAIL_BAD_IDENTITY: u32 = 7; +pub const CMC_FAIL_POP_REQUIRED: u32 = 8; +pub const CMC_FAIL_POP_FAILED: u32 = 9; +pub const CMC_FAIL_NO_KEY_REUSE: u32 = 10; +pub const CMC_FAIL_INTERNAL_CA_ERROR: u32 = 11; +pub const CMC_FAIL_TRY_LATER: u32 = 12; +pub const CERT_LOGOTYPE_GRAY_SCALE_IMAGE_INFO_CHOICE: u32 = 1; +pub const CERT_LOGOTYPE_COLOR_IMAGE_INFO_CHOICE: u32 = 2; +pub const CERT_LOGOTYPE_NO_IMAGE_RESOLUTION_CHOICE: u32 = 0; +pub const CERT_LOGOTYPE_BITS_IMAGE_RESOLUTION_CHOICE: u32 = 1; +pub const CERT_LOGOTYPE_TABLE_SIZE_IMAGE_RESOLUTION_CHOICE: u32 = 2; +pub const CERT_LOGOTYPE_DIRECT_INFO_CHOICE: u32 = 1; +pub const CERT_LOGOTYPE_INDIRECT_INFO_CHOICE: u32 = 2; +pub const szOID_LOYALTY_OTHER_LOGOTYPE: &[u8; 19] = b"1.3.6.1.5.5.7.20.1\0"; +pub const szOID_BACKGROUND_OTHER_LOGOTYPE: &[u8; 19] = b"1.3.6.1.5.5.7.20.2\0"; +pub const CERT_BIOMETRIC_PREDEFINED_DATA_CHOICE: u32 = 1; +pub const CERT_BIOMETRIC_OID_DATA_CHOICE: u32 = 2; +pub const CERT_BIOMETRIC_PICTURE_TYPE: u32 = 0; +pub const CERT_BIOMETRIC_SIGNATURE_TYPE: u32 = 1; +pub const OCSP_REQUEST_V1: u32 = 0; +pub const OCSP_SUCCESSFUL_RESPONSE: u32 = 0; +pub const OCSP_MALFORMED_REQUEST_RESPONSE: u32 = 1; +pub const OCSP_INTERNAL_ERROR_RESPONSE: u32 = 2; +pub const OCSP_TRY_LATER_RESPONSE: u32 = 3; +pub const OCSP_SIG_REQUIRED_RESPONSE: u32 = 5; +pub const OCSP_UNAUTHORIZED_RESPONSE: u32 = 6; +pub const szOID_PKIX_OCSP_BASIC_SIGNED_RESPONSE: &[u8; 21] = b"1.3.6.1.5.5.7.48.1.1\0"; +pub const OCSP_BASIC_GOOD_CERT_STATUS: u32 = 0; +pub const OCSP_BASIC_REVOKED_CERT_STATUS: u32 = 1; +pub const OCSP_BASIC_UNKNOWN_CERT_STATUS: u32 = 2; +pub const OCSP_BASIC_RESPONSE_V1: u32 = 0; +pub const OCSP_BASIC_BY_NAME_RESPONDER_ID: u32 = 1; +pub const OCSP_BASIC_BY_KEY_RESPONDER_ID: u32 = 2; +pub const CRYPT_OID_ENCODE_OBJECT_FUNC: &[u8; 21] = b"CryptDllEncodeObject\0"; +pub const CRYPT_OID_DECODE_OBJECT_FUNC: &[u8; 21] = b"CryptDllDecodeObject\0"; +pub const CRYPT_OID_ENCODE_OBJECT_EX_FUNC: &[u8; 23] = b"CryptDllEncodeObjectEx\0"; +pub const CRYPT_OID_DECODE_OBJECT_EX_FUNC: &[u8; 23] = b"CryptDllDecodeObjectEx\0"; +pub const CRYPT_OID_CREATE_COM_OBJECT_FUNC: &[u8; 24] = b"CryptDllCreateCOMObject\0"; +pub const CRYPT_OID_VERIFY_REVOCATION_FUNC: &[u8; 24] = b"CertDllVerifyRevocation\0"; +pub const CRYPT_OID_VERIFY_CTL_USAGE_FUNC: &[u8; 22] = b"CertDllVerifyCTLUsage\0"; +pub const CRYPT_OID_FORMAT_OBJECT_FUNC: &[u8; 21] = b"CryptDllFormatObject\0"; +pub const CRYPT_OID_FIND_OID_INFO_FUNC: &[u8; 20] = b"CryptDllFindOIDInfo\0"; +pub const CRYPT_OID_FIND_LOCALIZED_NAME_FUNC: &[u8; 26] = b"CryptDllFindLocalizedName\0"; +pub const CRYPT_OID_REGPATH: &[u8; 36] = b"Software\\Microsoft\\Cryptography\\OID\0"; +pub const CRYPT_OID_REG_ENCODING_TYPE_PREFIX: &[u8; 14] = b"EncodingType \0"; +pub const CRYPT_OID_REG_DLL_VALUE_NAME: &[u8; 4] = b"Dll\0"; +pub const CRYPT_OID_REG_FUNC_NAME_VALUE_NAME: &[u8; 9] = b"FuncName\0"; +pub const CRYPT_OID_REG_FUNC_NAME_VALUE_NAME_A: &[u8; 9] = b"FuncName\0"; +pub const CRYPT_OID_REG_FLAGS_VALUE_NAME: &[u8; 11] = b"CryptFlags\0"; +pub const CRYPT_DEFAULT_OID: &[u8; 8] = b"DEFAULT\0"; +pub const CRYPT_INSTALL_OID_FUNC_BEFORE_FLAG: u32 = 1; +pub const CRYPT_GET_INSTALLED_OID_FUNC_FLAG: u32 = 1; +pub const CRYPT_REGISTER_FIRST_INDEX: u32 = 0; +pub const CRYPT_REGISTER_LAST_INDEX: u32 = 4294967295; +pub const CRYPT_MATCH_ANY_ENCODING_TYPE: u32 = 4294967295; +pub const CALG_OID_INFO_CNG_ONLY: u32 = 4294967295; +pub const CALG_OID_INFO_PARAMETERS: u32 = 4294967294; +pub const CRYPT_OID_INFO_HASH_PARAMETERS_ALGORITHM: &[u8; 27] = b"CryptOIDInfoHashParameters\0"; +pub const CRYPT_OID_INFO_ECC_PARAMETERS_ALGORITHM: &[u8; 26] = b"CryptOIDInfoECCParameters\0"; +pub const CRYPT_OID_INFO_MGF1_PARAMETERS_ALGORITHM: &[u8; 27] = b"CryptOIDInfoMgf1Parameters\0"; +pub const CRYPT_OID_INFO_NO_SIGN_ALGORITHM: &[u8; 19] = b"CryptOIDInfoNoSign\0"; +pub const CRYPT_OID_INFO_OAEP_PARAMETERS_ALGORITHM: &[u8; 27] = b"CryptOIDInfoOAEPParameters\0"; +pub const CRYPT_OID_INFO_ECC_WRAP_PARAMETERS_ALGORITHM: &[u8; 30] = + b"CryptOIDInfoECCWrapParameters\0"; +pub const CRYPT_OID_INFO_NO_PARAMETERS_ALGORITHM: &[u8; 25] = b"CryptOIDInfoNoParameters\0"; +pub const CRYPT_HASH_ALG_OID_GROUP_ID: u32 = 1; +pub const CRYPT_ENCRYPT_ALG_OID_GROUP_ID: u32 = 2; +pub const CRYPT_PUBKEY_ALG_OID_GROUP_ID: u32 = 3; +pub const CRYPT_SIGN_ALG_OID_GROUP_ID: u32 = 4; +pub const CRYPT_RDN_ATTR_OID_GROUP_ID: u32 = 5; +pub const CRYPT_EXT_OR_ATTR_OID_GROUP_ID: u32 = 6; +pub const CRYPT_ENHKEY_USAGE_OID_GROUP_ID: u32 = 7; +pub const CRYPT_POLICY_OID_GROUP_ID: u32 = 8; +pub const CRYPT_TEMPLATE_OID_GROUP_ID: u32 = 9; +pub const CRYPT_KDF_OID_GROUP_ID: u32 = 10; +pub const CRYPT_LAST_OID_GROUP_ID: u32 = 10; +pub const CRYPT_FIRST_ALG_OID_GROUP_ID: u32 = 1; +pub const CRYPT_LAST_ALG_OID_GROUP_ID: u32 = 4; +pub const CRYPT_OID_INHIBIT_SIGNATURE_FORMAT_FLAG: u32 = 1; +pub const CRYPT_OID_USE_PUBKEY_PARA_FOR_PKCS7_FLAG: u32 = 2; +pub const CRYPT_OID_NO_NULL_ALGORITHM_PARA_FLAG: u32 = 4; +pub const CRYPT_OID_PUBKEY_SIGN_ONLY_FLAG: u32 = 2147483648; +pub const CRYPT_OID_PUBKEY_ENCRYPT_ONLY_FLAG: u32 = 1073741824; +pub const CRYPT_OID_USE_CURVE_NAME_FOR_ENCODE_FLAG: u32 = 536870912; +pub const CRYPT_OID_USE_CURVE_PARAMETERS_FOR_ENCODE_FLAG: u32 = 268435456; +pub const CRYPT_OID_INFO_OID_KEY: u32 = 1; +pub const CRYPT_OID_INFO_NAME_KEY: u32 = 2; +pub const CRYPT_OID_INFO_ALGID_KEY: u32 = 3; +pub const CRYPT_OID_INFO_SIGN_KEY: u32 = 4; +pub const CRYPT_OID_INFO_CNG_ALGID_KEY: u32 = 5; +pub const CRYPT_OID_INFO_CNG_SIGN_KEY: u32 = 6; +pub const CRYPT_OID_INFO_OID_KEY_FLAGS_MASK: u32 = 4294901760; +pub const CRYPT_OID_INFO_PUBKEY_SIGN_KEY_FLAG: u32 = 2147483648; +pub const CRYPT_OID_INFO_PUBKEY_ENCRYPT_KEY_FLAG: u32 = 1073741824; +pub const CRYPT_OID_DISABLE_SEARCH_DS_FLAG: u32 = 2147483648; +pub const CRYPT_OID_INFO_OID_GROUP_BIT_LEN_MASK: u32 = 268369920; +pub const CRYPT_OID_INFO_OID_GROUP_BIT_LEN_SHIFT: u32 = 16; +pub const CRYPT_INSTALL_OID_INFO_BEFORE_FLAG: u32 = 1; +pub const CRYPT_LOCALIZED_NAME_ENCODING_TYPE: u32 = 0; +pub const CRYPT_LOCALIZED_NAME_OID: &[u8; 15] = b"LocalizedNames\0"; +pub const CERT_STRONG_SIGN_ECDSA_ALGORITHM: &[u8; 6] = b"ECDSA\0"; +pub const CERT_STRONG_SIGN_SERIALIZED_INFO_CHOICE: u32 = 1; +pub const CERT_STRONG_SIGN_OID_INFO_CHOICE: u32 = 2; +pub const CERT_STRONG_SIGN_ENABLE_CRL_CHECK: u32 = 1; +pub const CERT_STRONG_SIGN_ENABLE_OCSP_CHECK: u32 = 2; +pub const szOID_CERT_STRONG_SIGN_OS_PREFIX: &[u8; 22] = b"1.3.6.1.4.1.311.72.1.\0"; +pub const szOID_CERT_STRONG_SIGN_OS_1: &[u8; 23] = b"1.3.6.1.4.1.311.72.1.1\0"; +pub const szOID_CERT_STRONG_SIGN_OS_CURRENT: &[u8; 23] = b"1.3.6.1.4.1.311.72.1.1\0"; +pub const szOID_CERT_STRONG_KEY_OS_PREFIX: &[u8; 22] = b"1.3.6.1.4.1.311.72.2.\0"; +pub const szOID_CERT_STRONG_KEY_OS_1: &[u8; 23] = b"1.3.6.1.4.1.311.72.2.1\0"; +pub const szOID_CERT_STRONG_KEY_OS_CURRENT: &[u8; 23] = b"1.3.6.1.4.1.311.72.2.1\0"; +pub const szOID_PKCS_7_DATA: &[u8; 21] = b"1.2.840.113549.1.7.1\0"; +pub const szOID_PKCS_7_SIGNED: &[u8; 21] = b"1.2.840.113549.1.7.2\0"; +pub const szOID_PKCS_7_ENVELOPED: &[u8; 21] = b"1.2.840.113549.1.7.3\0"; +pub const szOID_PKCS_7_SIGNEDANDENVELOPED: &[u8; 21] = b"1.2.840.113549.1.7.4\0"; +pub const szOID_PKCS_7_DIGESTED: &[u8; 21] = b"1.2.840.113549.1.7.5\0"; +pub const szOID_PKCS_7_ENCRYPTED: &[u8; 21] = b"1.2.840.113549.1.7.6\0"; +pub const szOID_PKCS_9_CONTENT_TYPE: &[u8; 21] = b"1.2.840.113549.1.9.3\0"; +pub const szOID_PKCS_9_MESSAGE_DIGEST: &[u8; 21] = b"1.2.840.113549.1.9.4\0"; +pub const CMSG_DATA: u32 = 1; +pub const CMSG_SIGNED: u32 = 2; +pub const CMSG_ENVELOPED: u32 = 3; +pub const CMSG_SIGNED_AND_ENVELOPED: u32 = 4; +pub const CMSG_HASHED: u32 = 5; +pub const CMSG_ENCRYPTED: u32 = 6; +pub const CMSG_ALL_FLAGS: i32 = -1; +pub const CMSG_DATA_FLAG: u32 = 2; +pub const CMSG_SIGNED_FLAG: u32 = 4; +pub const CMSG_ENVELOPED_FLAG: u32 = 8; +pub const CMSG_SIGNED_AND_ENVELOPED_FLAG: u32 = 16; +pub const CMSG_HASHED_FLAG: u32 = 32; +pub const CMSG_ENCRYPTED_FLAG: u32 = 64; +pub const CERT_ID_ISSUER_SERIAL_NUMBER: u32 = 1; +pub const CERT_ID_KEY_IDENTIFIER: u32 = 2; +pub const CERT_ID_SHA1_HASH: u32 = 3; +pub const CMSG_KEY_AGREE_EPHEMERAL_KEY_CHOICE: u32 = 1; +pub const CMSG_KEY_AGREE_STATIC_KEY_CHOICE: u32 = 2; +pub const CMSG_MAIL_LIST_HANDLE_KEY_CHOICE: u32 = 1; +pub const CMSG_KEY_TRANS_RECIPIENT: u32 = 1; +pub const CMSG_KEY_AGREE_RECIPIENT: u32 = 2; +pub const CMSG_MAIL_LIST_RECIPIENT: u32 = 3; +pub const CMSG_SP3_COMPATIBLE_ENCRYPT_FLAG: u32 = 2147483648; +pub const CMSG_RC4_NO_SALT_FLAG: u32 = 1073741824; +pub const CMSG_INDEFINITE_LENGTH: u32 = 4294967295; +pub const CMSG_BARE_CONTENT_FLAG: u32 = 1; +pub const CMSG_LENGTH_ONLY_FLAG: u32 = 2; +pub const CMSG_DETACHED_FLAG: u32 = 4; +pub const CMSG_AUTHENTICATED_ATTRIBUTES_FLAG: u32 = 8; +pub const CMSG_CONTENTS_OCTETS_FLAG: u32 = 16; +pub const CMSG_MAX_LENGTH_FLAG: u32 = 32; +pub const CMSG_CMS_ENCAPSULATED_CONTENT_FLAG: u32 = 64; +pub const CMSG_SIGNED_DATA_NO_SIGN_FLAG: u32 = 128; +pub const CMSG_CRYPT_RELEASE_CONTEXT_FLAG: u32 = 32768; +pub const CMSG_TYPE_PARAM: u32 = 1; +pub const CMSG_CONTENT_PARAM: u32 = 2; +pub const CMSG_BARE_CONTENT_PARAM: u32 = 3; +pub const CMSG_INNER_CONTENT_TYPE_PARAM: u32 = 4; +pub const CMSG_SIGNER_COUNT_PARAM: u32 = 5; +pub const CMSG_SIGNER_INFO_PARAM: u32 = 6; +pub const CMSG_SIGNER_CERT_INFO_PARAM: u32 = 7; +pub const CMSG_SIGNER_HASH_ALGORITHM_PARAM: u32 = 8; +pub const CMSG_SIGNER_AUTH_ATTR_PARAM: u32 = 9; +pub const CMSG_SIGNER_UNAUTH_ATTR_PARAM: u32 = 10; +pub const CMSG_CERT_COUNT_PARAM: u32 = 11; +pub const CMSG_CERT_PARAM: u32 = 12; +pub const CMSG_CRL_COUNT_PARAM: u32 = 13; +pub const CMSG_CRL_PARAM: u32 = 14; +pub const CMSG_ENVELOPE_ALGORITHM_PARAM: u32 = 15; +pub const CMSG_RECIPIENT_COUNT_PARAM: u32 = 17; +pub const CMSG_RECIPIENT_INDEX_PARAM: u32 = 18; +pub const CMSG_RECIPIENT_INFO_PARAM: u32 = 19; +pub const CMSG_HASH_ALGORITHM_PARAM: u32 = 20; +pub const CMSG_HASH_DATA_PARAM: u32 = 21; +pub const CMSG_COMPUTED_HASH_PARAM: u32 = 22; +pub const CMSG_ENCRYPT_PARAM: u32 = 26; +pub const CMSG_ENCRYPTED_DIGEST: u32 = 27; +pub const CMSG_ENCODED_SIGNER: u32 = 28; +pub const CMSG_ENCODED_MESSAGE: u32 = 29; +pub const CMSG_VERSION_PARAM: u32 = 30; +pub const CMSG_ATTR_CERT_COUNT_PARAM: u32 = 31; +pub const CMSG_ATTR_CERT_PARAM: u32 = 32; +pub const CMSG_CMS_RECIPIENT_COUNT_PARAM: u32 = 33; +pub const CMSG_CMS_RECIPIENT_INDEX_PARAM: u32 = 34; +pub const CMSG_CMS_RECIPIENT_ENCRYPTED_KEY_INDEX_PARAM: u32 = 35; +pub const CMSG_CMS_RECIPIENT_INFO_PARAM: u32 = 36; +pub const CMSG_UNPROTECTED_ATTR_PARAM: u32 = 37; +pub const CMSG_SIGNER_CERT_ID_PARAM: u32 = 38; +pub const CMSG_CMS_SIGNER_INFO_PARAM: u32 = 39; +pub const CMSG_SIGNED_DATA_V1: u32 = 1; +pub const CMSG_SIGNED_DATA_V3: u32 = 3; +pub const CMSG_SIGNED_DATA_PKCS_1_5_VERSION: u32 = 1; +pub const CMSG_SIGNED_DATA_CMS_VERSION: u32 = 3; +pub const CMSG_SIGNER_INFO_V1: u32 = 1; +pub const CMSG_SIGNER_INFO_V3: u32 = 3; +pub const CMSG_SIGNER_INFO_PKCS_1_5_VERSION: u32 = 1; +pub const CMSG_SIGNER_INFO_CMS_VERSION: u32 = 3; +pub const CMSG_HASHED_DATA_V0: u32 = 0; +pub const CMSG_HASHED_DATA_V2: u32 = 2; +pub const CMSG_HASHED_DATA_PKCS_1_5_VERSION: u32 = 0; +pub const CMSG_HASHED_DATA_CMS_VERSION: u32 = 2; +pub const CMSG_ENVELOPED_DATA_V0: u32 = 0; +pub const CMSG_ENVELOPED_DATA_V2: u32 = 2; +pub const CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION: u32 = 0; +pub const CMSG_ENVELOPED_DATA_CMS_VERSION: u32 = 2; +pub const CMSG_KEY_AGREE_ORIGINATOR_CERT: u32 = 1; +pub const CMSG_KEY_AGREE_ORIGINATOR_PUBLIC_KEY: u32 = 2; +pub const CMSG_ENVELOPED_RECIPIENT_V0: u32 = 0; +pub const CMSG_ENVELOPED_RECIPIENT_V2: u32 = 2; +pub const CMSG_ENVELOPED_RECIPIENT_V3: u32 = 3; +pub const CMSG_ENVELOPED_RECIPIENT_V4: u32 = 4; +pub const CMSG_KEY_TRANS_PKCS_1_5_VERSION: u32 = 0; +pub const CMSG_KEY_TRANS_CMS_VERSION: u32 = 2; +pub const CMSG_KEY_AGREE_VERSION: u32 = 3; +pub const CMSG_MAIL_LIST_VERSION: u32 = 4; +pub const CMSG_CTRL_VERIFY_SIGNATURE: u32 = 1; +pub const CMSG_CTRL_DECRYPT: u32 = 2; +pub const CMSG_CTRL_VERIFY_HASH: u32 = 5; +pub const CMSG_CTRL_ADD_SIGNER: u32 = 6; +pub const CMSG_CTRL_DEL_SIGNER: u32 = 7; +pub const CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR: u32 = 8; +pub const CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR: u32 = 9; +pub const CMSG_CTRL_ADD_CERT: u32 = 10; +pub const CMSG_CTRL_DEL_CERT: u32 = 11; +pub const CMSG_CTRL_ADD_CRL: u32 = 12; +pub const CMSG_CTRL_DEL_CRL: u32 = 13; +pub const CMSG_CTRL_ADD_ATTR_CERT: u32 = 14; +pub const CMSG_CTRL_DEL_ATTR_CERT: u32 = 15; +pub const CMSG_CTRL_KEY_TRANS_DECRYPT: u32 = 16; +pub const CMSG_CTRL_KEY_AGREE_DECRYPT: u32 = 17; +pub const CMSG_CTRL_MAIL_LIST_DECRYPT: u32 = 18; +pub const CMSG_CTRL_VERIFY_SIGNATURE_EX: u32 = 19; +pub const CMSG_CTRL_ADD_CMS_SIGNER_INFO: u32 = 20; +pub const CMSG_CTRL_ENABLE_STRONG_SIGNATURE: u32 = 21; +pub const CMSG_VERIFY_SIGNER_PUBKEY: u32 = 1; +pub const CMSG_VERIFY_SIGNER_CERT: u32 = 2; +pub const CMSG_VERIFY_SIGNER_CHAIN: u32 = 3; +pub const CMSG_VERIFY_SIGNER_NULL: u32 = 4; +pub const CMSG_VERIFY_COUNTER_SIGN_ENABLE_STRONG_FLAG: u32 = 1; +pub const CMSG_OID_GEN_ENCRYPT_KEY_FUNC: &[u8; 25] = b"CryptMsgDllGenEncryptKey\0"; +pub const CMSG_OID_EXPORT_ENCRYPT_KEY_FUNC: &[u8; 28] = b"CryptMsgDllExportEncryptKey\0"; +pub const CMSG_OID_IMPORT_ENCRYPT_KEY_FUNC: &[u8; 28] = b"CryptMsgDllImportEncryptKey\0"; +pub const CMSG_CONTENT_ENCRYPT_PAD_ENCODED_LEN_FLAG: u32 = 1; +pub const CMSG_CONTENT_ENCRYPT_FREE_PARA_FLAG: u32 = 1; +pub const CMSG_CONTENT_ENCRYPT_FREE_OBJID_FLAG: u32 = 2; +pub const CMSG_CONTENT_ENCRYPT_RELEASE_CONTEXT_FLAG: u32 = 32768; +pub const CMSG_OID_GEN_CONTENT_ENCRYPT_KEY_FUNC: &[u8; 32] = b"CryptMsgDllGenContentEncryptKey\0"; +pub const CMSG_OID_CAPI1_GEN_CONTENT_ENCRYPT_KEY_FUNC: &[u8; 32] = + b"CryptMsgDllGenContentEncryptKey\0"; +pub const CMSG_OID_CNG_GEN_CONTENT_ENCRYPT_KEY_FUNC: &[u8; 35] = + b"CryptMsgDllCNGGenContentEncryptKey\0"; +pub const CMSG_KEY_TRANS_ENCRYPT_FREE_PARA_FLAG: u32 = 1; +pub const CMSG_KEY_TRANS_ENCRYPT_FREE_OBJID_FLAG: u32 = 2; +pub const CMSG_OID_EXPORT_KEY_TRANS_FUNC: &[u8; 26] = b"CryptMsgDllExportKeyTrans\0"; +pub const CMSG_OID_CAPI1_EXPORT_KEY_TRANS_FUNC: &[u8; 26] = b"CryptMsgDllExportKeyTrans\0"; +pub const CMSG_OID_CNG_EXPORT_KEY_TRANS_FUNC: &[u8; 29] = b"CryptMsgDllCNGExportKeyTrans\0"; +pub const CMSG_KEY_AGREE_ENCRYPT_FREE_PARA_FLAG: u32 = 1; +pub const CMSG_KEY_AGREE_ENCRYPT_FREE_MATERIAL_FLAG: u32 = 2; +pub const CMSG_KEY_AGREE_ENCRYPT_FREE_PUBKEY_ALG_FLAG: u32 = 4; +pub const CMSG_KEY_AGREE_ENCRYPT_FREE_PUBKEY_PARA_FLAG: u32 = 8; +pub const CMSG_KEY_AGREE_ENCRYPT_FREE_PUBKEY_BITS_FLAG: u32 = 16; +pub const CMSG_KEY_AGREE_ENCRYPT_FREE_OBJID_FLAG: u32 = 32; +pub const CMSG_OID_EXPORT_KEY_AGREE_FUNC: &[u8; 26] = b"CryptMsgDllExportKeyAgree\0"; +pub const CMSG_OID_CAPI1_EXPORT_KEY_AGREE_FUNC: &[u8; 26] = b"CryptMsgDllExportKeyAgree\0"; +pub const CMSG_OID_CNG_EXPORT_KEY_AGREE_FUNC: &[u8; 29] = b"CryptMsgDllCNGExportKeyAgree\0"; +pub const CMSG_MAIL_LIST_ENCRYPT_FREE_PARA_FLAG: u32 = 1; +pub const CMSG_MAIL_LIST_ENCRYPT_FREE_OBJID_FLAG: u32 = 2; +pub const CMSG_OID_EXPORT_MAIL_LIST_FUNC: &[u8; 26] = b"CryptMsgDllExportMailList\0"; +pub const CMSG_OID_CAPI1_EXPORT_MAIL_LIST_FUNC: &[u8; 26] = b"CryptMsgDllExportMailList\0"; +pub const CMSG_OID_IMPORT_KEY_TRANS_FUNC: &[u8; 26] = b"CryptMsgDllImportKeyTrans\0"; +pub const CMSG_OID_CAPI1_IMPORT_KEY_TRANS_FUNC: &[u8; 26] = b"CryptMsgDllImportKeyTrans\0"; +pub const CMSG_OID_IMPORT_KEY_AGREE_FUNC: &[u8; 26] = b"CryptMsgDllImportKeyAgree\0"; +pub const CMSG_OID_CAPI1_IMPORT_KEY_AGREE_FUNC: &[u8; 26] = b"CryptMsgDllImportKeyAgree\0"; +pub const CMSG_OID_IMPORT_MAIL_LIST_FUNC: &[u8; 26] = b"CryptMsgDllImportMailList\0"; +pub const CMSG_OID_CAPI1_IMPORT_MAIL_LIST_FUNC: &[u8; 26] = b"CryptMsgDllImportMailList\0"; +pub const CMSG_OID_CNG_IMPORT_KEY_TRANS_FUNC: &[u8; 29] = b"CryptMsgDllCNGImportKeyTrans\0"; +pub const CMSG_OID_CNG_IMPORT_KEY_AGREE_FUNC: &[u8; 29] = b"CryptMsgDllCNGImportKeyAgree\0"; +pub const CMSG_OID_CNG_IMPORT_CONTENT_ENCRYPT_KEY_FUNC: &[u8; 38] = + b"CryptMsgDllCNGImportContentEncryptKey\0"; +pub const CERT_KEY_PROV_HANDLE_PROP_ID: u32 = 1; +pub const CERT_KEY_PROV_INFO_PROP_ID: u32 = 2; +pub const CERT_SHA1_HASH_PROP_ID: u32 = 3; +pub const CERT_MD5_HASH_PROP_ID: u32 = 4; +pub const CERT_HASH_PROP_ID: u32 = 3; +pub const CERT_KEY_CONTEXT_PROP_ID: u32 = 5; +pub const CERT_KEY_SPEC_PROP_ID: u32 = 6; +pub const CERT_IE30_RESERVED_PROP_ID: u32 = 7; +pub const CERT_PUBKEY_HASH_RESERVED_PROP_ID: u32 = 8; +pub const CERT_ENHKEY_USAGE_PROP_ID: u32 = 9; +pub const CERT_CTL_USAGE_PROP_ID: u32 = 9; +pub const CERT_NEXT_UPDATE_LOCATION_PROP_ID: u32 = 10; +pub const CERT_FRIENDLY_NAME_PROP_ID: u32 = 11; +pub const CERT_PVK_FILE_PROP_ID: u32 = 12; +pub const CERT_DESCRIPTION_PROP_ID: u32 = 13; +pub const CERT_ACCESS_STATE_PROP_ID: u32 = 14; +pub const CERT_SIGNATURE_HASH_PROP_ID: u32 = 15; +pub const CERT_SMART_CARD_DATA_PROP_ID: u32 = 16; +pub const CERT_EFS_PROP_ID: u32 = 17; +pub const CERT_FORTEZZA_DATA_PROP_ID: u32 = 18; +pub const CERT_ARCHIVED_PROP_ID: u32 = 19; +pub const CERT_KEY_IDENTIFIER_PROP_ID: u32 = 20; +pub const CERT_AUTO_ENROLL_PROP_ID: u32 = 21; +pub const CERT_PUBKEY_ALG_PARA_PROP_ID: u32 = 22; +pub const CERT_CROSS_CERT_DIST_POINTS_PROP_ID: u32 = 23; +pub const CERT_ISSUER_PUBLIC_KEY_MD5_HASH_PROP_ID: u32 = 24; +pub const CERT_SUBJECT_PUBLIC_KEY_MD5_HASH_PROP_ID: u32 = 25; +pub const CERT_ENROLLMENT_PROP_ID: u32 = 26; +pub const CERT_DATE_STAMP_PROP_ID: u32 = 27; +pub const CERT_ISSUER_SERIAL_NUMBER_MD5_HASH_PROP_ID: u32 = 28; +pub const CERT_SUBJECT_NAME_MD5_HASH_PROP_ID: u32 = 29; +pub const CERT_EXTENDED_ERROR_INFO_PROP_ID: u32 = 30; +pub const CERT_RENEWAL_PROP_ID: u32 = 64; +pub const CERT_ARCHIVED_KEY_HASH_PROP_ID: u32 = 65; +pub const CERT_AUTO_ENROLL_RETRY_PROP_ID: u32 = 66; +pub const CERT_AIA_URL_RETRIEVED_PROP_ID: u32 = 67; +pub const CERT_AUTHORITY_INFO_ACCESS_PROP_ID: u32 = 68; +pub const CERT_BACKED_UP_PROP_ID: u32 = 69; +pub const CERT_OCSP_RESPONSE_PROP_ID: u32 = 70; +pub const CERT_REQUEST_ORIGINATOR_PROP_ID: u32 = 71; +pub const CERT_SOURCE_LOCATION_PROP_ID: u32 = 72; +pub const CERT_SOURCE_URL_PROP_ID: u32 = 73; +pub const CERT_NEW_KEY_PROP_ID: u32 = 74; +pub const CERT_OCSP_CACHE_PREFIX_PROP_ID: u32 = 75; +pub const CERT_SMART_CARD_ROOT_INFO_PROP_ID: u32 = 76; +pub const CERT_NO_AUTO_EXPIRE_CHECK_PROP_ID: u32 = 77; +pub const CERT_NCRYPT_KEY_HANDLE_PROP_ID: u32 = 78; +pub const CERT_HCRYPTPROV_OR_NCRYPT_KEY_HANDLE_PROP_ID: u32 = 79; +pub const CERT_SUBJECT_INFO_ACCESS_PROP_ID: u32 = 80; +pub const CERT_CA_OCSP_AUTHORITY_INFO_ACCESS_PROP_ID: u32 = 81; +pub const CERT_CA_DISABLE_CRL_PROP_ID: u32 = 82; +pub const CERT_ROOT_PROGRAM_CERT_POLICIES_PROP_ID: u32 = 83; +pub const CERT_ROOT_PROGRAM_NAME_CONSTRAINTS_PROP_ID: u32 = 84; +pub const CERT_SUBJECT_OCSP_AUTHORITY_INFO_ACCESS_PROP_ID: u32 = 85; +pub const CERT_SUBJECT_DISABLE_CRL_PROP_ID: u32 = 86; +pub const CERT_CEP_PROP_ID: u32 = 87; +pub const CERT_SIGN_HASH_CNG_ALG_PROP_ID: u32 = 89; +pub const CERT_SCARD_PIN_ID_PROP_ID: u32 = 90; +pub const CERT_SCARD_PIN_INFO_PROP_ID: u32 = 91; +pub const CERT_SUBJECT_PUB_KEY_BIT_LENGTH_PROP_ID: u32 = 92; +pub const CERT_PUB_KEY_CNG_ALG_BIT_LENGTH_PROP_ID: u32 = 93; +pub const CERT_ISSUER_PUB_KEY_BIT_LENGTH_PROP_ID: u32 = 94; +pub const CERT_ISSUER_CHAIN_SIGN_HASH_CNG_ALG_PROP_ID: u32 = 95; +pub const CERT_ISSUER_CHAIN_PUB_KEY_CNG_ALG_BIT_LENGTH_PROP_ID: u32 = 96; +pub const CERT_NO_EXPIRE_NOTIFICATION_PROP_ID: u32 = 97; +pub const CERT_AUTH_ROOT_SHA256_HASH_PROP_ID: u32 = 98; +pub const CERT_NCRYPT_KEY_HANDLE_TRANSFER_PROP_ID: u32 = 99; +pub const CERT_HCRYPTPROV_TRANSFER_PROP_ID: u32 = 100; +pub const CERT_SMART_CARD_READER_PROP_ID: u32 = 101; +pub const CERT_SEND_AS_TRUSTED_ISSUER_PROP_ID: u32 = 102; +pub const CERT_KEY_REPAIR_ATTEMPTED_PROP_ID: u32 = 103; +pub const CERT_DISALLOWED_FILETIME_PROP_ID: u32 = 104; +pub const CERT_ROOT_PROGRAM_CHAIN_POLICIES_PROP_ID: u32 = 105; +pub const CERT_SMART_CARD_READER_NON_REMOVABLE_PROP_ID: u32 = 106; +pub const CERT_SHA256_HASH_PROP_ID: u32 = 107; +pub const CERT_SCEP_SERVER_CERTS_PROP_ID: u32 = 108; +pub const CERT_SCEP_RA_SIGNATURE_CERT_PROP_ID: u32 = 109; +pub const CERT_SCEP_RA_ENCRYPTION_CERT_PROP_ID: u32 = 110; +pub const CERT_SCEP_CA_CERT_PROP_ID: u32 = 111; +pub const CERT_SCEP_SIGNER_CERT_PROP_ID: u32 = 112; +pub const CERT_SCEP_NONCE_PROP_ID: u32 = 113; +pub const CERT_SCEP_ENCRYPT_HASH_CNG_ALG_PROP_ID: u32 = 114; +pub const CERT_SCEP_FLAGS_PROP_ID: u32 = 115; +pub const CERT_SCEP_GUID_PROP_ID: u32 = 116; +pub const CERT_SERIALIZABLE_KEY_CONTEXT_PROP_ID: u32 = 117; +pub const CERT_ISOLATED_KEY_PROP_ID: u32 = 118; +pub const CERT_SERIAL_CHAIN_PROP_ID: u32 = 119; +pub const CERT_KEY_CLASSIFICATION_PROP_ID: u32 = 120; +pub const CERT_OCSP_MUST_STAPLE_PROP_ID: u32 = 121; +pub const CERT_DISALLOWED_ENHKEY_USAGE_PROP_ID: u32 = 122; +pub const CERT_NONCOMPLIANT_ROOT_URL_PROP_ID: u32 = 123; +pub const CERT_PIN_SHA256_HASH_PROP_ID: u32 = 124; +pub const CERT_CLR_DELETE_KEY_PROP_ID: u32 = 125; +pub const CERT_NOT_BEFORE_FILETIME_PROP_ID: u32 = 126; +pub const CERT_NOT_BEFORE_ENHKEY_USAGE_PROP_ID: u32 = 127; +pub const CERT_DISALLOWED_CA_FILETIME_PROP_ID: u32 = 128; +pub const CERT_FIRST_RESERVED_PROP_ID: u32 = 129; +pub const CERT_LAST_RESERVED_PROP_ID: u32 = 32767; +pub const CERT_FIRST_USER_PROP_ID: u32 = 32768; +pub const CERT_LAST_USER_PROP_ID: u32 = 65535; +pub const szOID_CERT_PROP_ID_PREFIX: &[u8; 23] = b"1.3.6.1.4.1.311.10.11.\0"; +pub const szOID_CERT_KEY_IDENTIFIER_PROP_ID: &[u8; 25] = b"1.3.6.1.4.1.311.10.11.20\0"; +pub const szOID_CERT_ISSUER_SERIAL_NUMBER_MD5_HASH_PROP_ID: &[u8; 25] = + b"1.3.6.1.4.1.311.10.11.28\0"; +pub const szOID_CERT_SUBJECT_NAME_MD5_HASH_PROP_ID: &[u8; 25] = b"1.3.6.1.4.1.311.10.11.29\0"; +pub const szOID_CERT_MD5_HASH_PROP_ID: &[u8; 24] = b"1.3.6.1.4.1.311.10.11.4\0"; +pub const szOID_CERT_SIGNATURE_HASH_PROP_ID: &[u8; 25] = b"1.3.6.1.4.1.311.10.11.15\0"; +pub const szOID_DISALLOWED_HASH: &[u8; 25] = b"1.3.6.1.4.1.311.10.11.15\0"; +pub const szOID_CERT_DISALLOWED_FILETIME_PROP_ID: &[u8; 26] = b"1.3.6.1.4.1.311.10.11.104\0"; +pub const szOID_CERT_DISALLOWED_CA_FILETIME_PROP_ID: &[u8; 26] = b"1.3.6.1.4.1.311.10.11.128\0"; +pub const CERT_ACCESS_STATE_WRITE_PERSIST_FLAG: u32 = 1; +pub const CERT_ACCESS_STATE_SYSTEM_STORE_FLAG: u32 = 2; +pub const CERT_ACCESS_STATE_LM_SYSTEM_STORE_FLAG: u32 = 4; +pub const CERT_ACCESS_STATE_GP_SYSTEM_STORE_FLAG: u32 = 8; +pub const CERT_ACCESS_STATE_SHARED_USER_FLAG: u32 = 16; +pub const szOID_ROOT_PROGRAM_AUTO_UPDATE_CA_REVOCATION: &[u8; 23] = b"1.3.6.1.4.1.311.60.3.1\0"; +pub const szOID_ROOT_PROGRAM_AUTO_UPDATE_END_REVOCATION: &[u8; 23] = b"1.3.6.1.4.1.311.60.3.2\0"; +pub const szOID_ROOT_PROGRAM_NO_OCSP_FAILOVER_TO_CRL: &[u8; 23] = b"1.3.6.1.4.1.311.60.3.3\0"; +pub const CERT_SET_KEY_PROV_HANDLE_PROP_ID: u32 = 1; +pub const CERT_SET_KEY_CONTEXT_PROP_ID: u32 = 1; +pub const CERT_NCRYPT_KEY_SPEC: u32 = 4294967295; +pub const sz_CERT_STORE_PROV_MEMORY: &[u8; 7] = b"Memory\0"; +pub const sz_CERT_STORE_PROV_FILENAME_W: &[u8; 5] = b"File\0"; +pub const sz_CERT_STORE_PROV_FILENAME: &[u8; 5] = b"File\0"; +pub const sz_CERT_STORE_PROV_SYSTEM_W: &[u8; 7] = b"System\0"; +pub const sz_CERT_STORE_PROV_SYSTEM: &[u8; 7] = b"System\0"; +pub const sz_CERT_STORE_PROV_PKCS7: &[u8; 6] = b"PKCS7\0"; +pub const sz_CERT_STORE_PROV_PKCS12: &[u8; 7] = b"PKCS12\0"; +pub const sz_CERT_STORE_PROV_SERIALIZED: &[u8; 11] = b"Serialized\0"; +pub const sz_CERT_STORE_PROV_COLLECTION: &[u8; 11] = b"Collection\0"; +pub const sz_CERT_STORE_PROV_SYSTEM_REGISTRY_W: &[u8; 15] = b"SystemRegistry\0"; +pub const sz_CERT_STORE_PROV_SYSTEM_REGISTRY: &[u8; 15] = b"SystemRegistry\0"; +pub const sz_CERT_STORE_PROV_PHYSICAL_W: &[u8; 9] = b"Physical\0"; +pub const sz_CERT_STORE_PROV_PHYSICAL: &[u8; 9] = b"Physical\0"; +pub const sz_CERT_STORE_PROV_SMART_CARD_W: &[u8; 10] = b"SmartCard\0"; +pub const sz_CERT_STORE_PROV_SMART_CARD: &[u8; 10] = b"SmartCard\0"; +pub const sz_CERT_STORE_PROV_LDAP_W: &[u8; 5] = b"Ldap\0"; +pub const sz_CERT_STORE_PROV_LDAP: &[u8; 5] = b"Ldap\0"; +pub const CERT_STORE_SIGNATURE_FLAG: u32 = 1; +pub const CERT_STORE_TIME_VALIDITY_FLAG: u32 = 2; +pub const CERT_STORE_REVOCATION_FLAG: u32 = 4; +pub const CERT_STORE_NO_CRL_FLAG: u32 = 65536; +pub const CERT_STORE_NO_ISSUER_FLAG: u32 = 131072; +pub const CERT_STORE_BASE_CRL_FLAG: u32 = 256; +pub const CERT_STORE_DELTA_CRL_FLAG: u32 = 512; +pub const CERT_STORE_NO_CRYPT_RELEASE_FLAG: u32 = 1; +pub const CERT_STORE_SET_LOCALIZED_NAME_FLAG: u32 = 2; +pub const CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG: u32 = 4; +pub const CERT_STORE_DELETE_FLAG: u32 = 16; +pub const CERT_STORE_UNSAFE_PHYSICAL_FLAG: u32 = 32; +pub const CERT_STORE_SHARE_STORE_FLAG: u32 = 64; +pub const CERT_STORE_SHARE_CONTEXT_FLAG: u32 = 128; +pub const CERT_STORE_MANIFOLD_FLAG: u32 = 256; +pub const CERT_STORE_ENUM_ARCHIVED_FLAG: u32 = 512; +pub const CERT_STORE_UPDATE_KEYID_FLAG: u32 = 1024; +pub const CERT_STORE_BACKUP_RESTORE_FLAG: u32 = 2048; +pub const CERT_STORE_READONLY_FLAG: u32 = 32768; +pub const CERT_STORE_OPEN_EXISTING_FLAG: u32 = 16384; +pub const CERT_STORE_CREATE_NEW_FLAG: u32 = 8192; +pub const CERT_STORE_MAXIMUM_ALLOWED_FLAG: u32 = 4096; +pub const CERT_SYSTEM_STORE_MASK: u32 = 4294901760; +pub const CERT_SYSTEM_STORE_RELOCATE_FLAG: u32 = 2147483648; +pub const CERT_SYSTEM_STORE_UNPROTECTED_FLAG: u32 = 1073741824; +pub const CERT_SYSTEM_STORE_DEFER_READ_FLAG: u32 = 536870912; +pub const CERT_SYSTEM_STORE_LOCATION_MASK: u32 = 16711680; +pub const CERT_SYSTEM_STORE_LOCATION_SHIFT: u32 = 16; +pub const CERT_SYSTEM_STORE_CURRENT_USER_ID: u32 = 1; +pub const CERT_SYSTEM_STORE_LOCAL_MACHINE_ID: u32 = 2; +pub const CERT_SYSTEM_STORE_CURRENT_SERVICE_ID: u32 = 4; +pub const CERT_SYSTEM_STORE_SERVICES_ID: u32 = 5; +pub const CERT_SYSTEM_STORE_USERS_ID: u32 = 6; +pub const CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY_ID: u32 = 7; +pub const CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY_ID: u32 = 8; +pub const CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE_ID: u32 = 9; +pub const CERT_SYSTEM_STORE_LOCAL_MACHINE_WCOS_ID: u32 = 10; +pub const CERT_SYSTEM_STORE_CURRENT_USER: u32 = 65536; +pub const CERT_SYSTEM_STORE_LOCAL_MACHINE: u32 = 131072; +pub const CERT_SYSTEM_STORE_CURRENT_SERVICE: u32 = 262144; +pub const CERT_SYSTEM_STORE_SERVICES: u32 = 327680; +pub const CERT_SYSTEM_STORE_USERS: u32 = 393216; +pub const CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY: u32 = 458752; +pub const CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY: u32 = 524288; +pub const CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE: u32 = 589824; +pub const CERT_SYSTEM_STORE_LOCAL_MACHINE_WCOS: u32 = 655360; +pub const CERT_GROUP_POLICY_SYSTEM_STORE_REGPATH: &[u8; 47] = + b"Software\\Policies\\Microsoft\\SystemCertificates\0"; +pub const CERT_EFSBLOB_REGPATH: &[u8; 51] = + b"Software\\Policies\\Microsoft\\SystemCertificates\\EFS\0"; +pub const CERT_EFSBLOB_VALUE_NAME: &[u8; 8] = b"EFSBlob\0"; +pub const CERT_PROT_ROOT_FLAGS_REGPATH: &[u8; 67] = + b"Software\\Policies\\Microsoft\\SystemCertificates\\Root\\ProtectedRoots\0"; +pub const CERT_PROT_ROOT_FLAGS_VALUE_NAME: &[u8; 6] = b"Flags\0"; +pub const CERT_PROT_ROOT_DISABLE_CURRENT_USER_FLAG: u32 = 1; +pub const CERT_PROT_ROOT_INHIBIT_ADD_AT_INIT_FLAG: u32 = 2; +pub const CERT_PROT_ROOT_INHIBIT_PURGE_LM_FLAG: u32 = 4; +pub const CERT_PROT_ROOT_DISABLE_LM_AUTH_FLAG: u32 = 8; +pub const CERT_PROT_ROOT_ONLY_LM_GPT_FLAG: u32 = 8; +pub const CERT_PROT_ROOT_DISABLE_NT_AUTH_REQUIRED_FLAG: u32 = 16; +pub const CERT_PROT_ROOT_DISABLE_NOT_DEFINED_NAME_CONSTRAINT_FLAG: u32 = 32; +pub const CERT_PROT_ROOT_DISABLE_PEER_TRUST: u32 = 65536; +pub const CERT_PROT_ROOT_PEER_USAGES_VALUE_NAME: &[u8; 11] = b"PeerUsages\0"; +pub const CERT_PROT_ROOT_PEER_USAGES_VALUE_NAME_A: &[u8; 11] = b"PeerUsages\0"; +pub const CERT_PROT_ROOT_PEER_USAGES_DEFAULT_A: &[u8; 60] = + b"1.3.6.1.5.5.7.3.2\x001.3.6.1.5.5.7.3.4\x001.3.6.1.4.1.311.10.3.4\0\0"; +pub const CERT_TRUST_PUB_SAFER_GROUP_POLICY_REGPATH: &[u8; 70] = + b"Software\\Policies\\Microsoft\\SystemCertificates\\TrustedPublisher\\Safer\0"; +pub const CERT_LOCAL_MACHINE_SYSTEM_STORE_REGPATH: &[u8; 38] = + b"Software\\Microsoft\\SystemCertificates\0"; +pub const CERT_TRUST_PUB_SAFER_LOCAL_MACHINE_REGPATH: &[u8; 61] = + b"Software\\Microsoft\\SystemCertificates\\TrustedPublisher\\Safer\0"; +pub const CERT_TRUST_PUB_AUTHENTICODE_FLAGS_VALUE_NAME: &[u8; 18] = b"AuthenticodeFlags\0"; +pub const CERT_TRUST_PUB_ALLOW_TRUST_MASK: u32 = 3; +pub const CERT_TRUST_PUB_ALLOW_END_USER_TRUST: u32 = 0; +pub const CERT_TRUST_PUB_ALLOW_MACHINE_ADMIN_TRUST: u32 = 1; +pub const CERT_TRUST_PUB_ALLOW_ENTERPRISE_ADMIN_TRUST: u32 = 2; +pub const CERT_TRUST_PUB_CHECK_PUBLISHER_REV_FLAG: u32 = 256; +pub const CERT_TRUST_PUB_CHECK_TIMESTAMP_REV_FLAG: u32 = 512; +pub const CERT_OCM_SUBCOMPONENTS_LOCAL_MACHINE_REGPATH: &[u8; 73] = + b"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\OC Manager\\Subcomponents\0"; +pub const CERT_OCM_SUBCOMPONENTS_ROOT_AUTO_UPDATE_VALUE_NAME: &[u8; 15] = b"RootAutoUpdate\0"; +pub const CERT_DISABLE_ROOT_AUTO_UPDATE_REGPATH: &[u8; 56] = + b"Software\\Policies\\Microsoft\\SystemCertificates\\AuthRoot\0"; +pub const CERT_DISABLE_ROOT_AUTO_UPDATE_VALUE_NAME: &[u8; 22] = b"DisableRootAutoUpdate\0"; +pub const CERT_ENABLE_DISALLOWED_CERT_AUTO_UPDATE_VALUE_NAME: &[u8; 31] = + b"EnableDisallowedCertAutoUpdate\0"; +pub const CERT_DISABLE_PIN_RULES_AUTO_UPDATE_VALUE_NAME: &[u8; 26] = b"DisablePinRulesAutoUpdate\0"; +pub const CERT_AUTO_UPDATE_LOCAL_MACHINE_REGPATH: &[u8; 58] = + b"Software\\Microsoft\\SystemCertificates\\AuthRoot\\AutoUpdate\0"; +pub const CERT_AUTO_UPDATE_ROOT_DIR_URL_VALUE_NAME: &[u8; 11] = b"RootDirUrl\0"; +pub const CERT_AUTO_UPDATE_SYNC_FROM_DIR_URL_VALUE_NAME: &[u8; 15] = b"SyncFromDirUrl\0"; +pub const CERT_AUTH_ROOT_AUTO_UPDATE_LOCAL_MACHINE_REGPATH: &[u8; 58] = + b"Software\\Microsoft\\SystemCertificates\\AuthRoot\\AutoUpdate\0"; +pub const CERT_AUTH_ROOT_AUTO_UPDATE_ROOT_DIR_URL_VALUE_NAME: &[u8; 11] = b"RootDirUrl\0"; +pub const CERT_AUTH_ROOT_AUTO_UPDATE_SYNC_DELTA_TIME_VALUE_NAME: &[u8; 14] = b"SyncDeltaTime\0"; +pub const CERT_AUTH_ROOT_AUTO_UPDATE_FLAGS_VALUE_NAME: &[u8; 6] = b"Flags\0"; +pub const CERT_AUTH_ROOT_AUTO_UPDATE_DISABLE_UNTRUSTED_ROOT_LOGGING_FLAG: u32 = 1; +pub const CERT_AUTH_ROOT_AUTO_UPDATE_DISABLE_PARTIAL_CHAIN_LOGGING_FLAG: u32 = 2; +pub const CERT_AUTO_UPDATE_DISABLE_RANDOM_QUERY_STRING_FLAG: u32 = 4; +pub const CERT_AUTH_ROOT_AUTO_UPDATE_LAST_SYNC_TIME_VALUE_NAME: &[u8; 13] = b"LastSyncTime\0"; +pub const CERT_AUTH_ROOT_AUTO_UPDATE_ENCODED_CTL_VALUE_NAME: &[u8; 11] = b"EncodedCtl\0"; +pub const CERT_AUTH_ROOT_CTL_FILENAME: &[u8; 13] = b"authroot.stl\0"; +pub const CERT_AUTH_ROOT_CTL_FILENAME_A: &[u8; 13] = b"authroot.stl\0"; +pub const CERT_AUTH_ROOT_CAB_FILENAME: &[u8; 16] = b"authrootstl.cab\0"; +pub const CERT_AUTH_ROOT_SEQ_FILENAME: &[u8; 16] = b"authrootseq.txt\0"; +pub const CERT_AUTH_ROOT_CERT_EXT: &[u8; 5] = b".crt\0"; +pub const CERT_DISALLOWED_CERT_AUTO_UPDATE_SYNC_DELTA_TIME_VALUE_NAME: &[u8; 28] = + b"DisallowedCertSyncDeltaTime\0"; +pub const CERT_DISALLOWED_CERT_AUTO_UPDATE_LAST_SYNC_TIME_VALUE_NAME: &[u8; 27] = + b"DisallowedCertLastSyncTime\0"; +pub const CERT_DISALLOWED_CERT_AUTO_UPDATE_ENCODED_CTL_VALUE_NAME: &[u8; 25] = + b"DisallowedCertEncodedCtl\0"; +pub const CERT_DISALLOWED_CERT_CTL_FILENAME: &[u8; 19] = b"disallowedcert.stl\0"; +pub const CERT_DISALLOWED_CERT_CTL_FILENAME_A: &[u8; 19] = b"disallowedcert.stl\0"; +pub const CERT_DISALLOWED_CERT_CAB_FILENAME: &[u8; 22] = b"disallowedcertstl.cab\0"; +pub const CERT_DISALLOWED_CERT_AUTO_UPDATE_LIST_IDENTIFIER: &[u8; 28] = + b"DisallowedCert_AutoUpdate_1\0"; +pub const CERT_PIN_RULES_AUTO_UPDATE_SYNC_DELTA_TIME_VALUE_NAME: &[u8; 22] = + b"PinRulesSyncDeltaTime\0"; +pub const CERT_PIN_RULES_AUTO_UPDATE_LAST_SYNC_TIME_VALUE_NAME: &[u8; 21] = + b"PinRulesLastSyncTime\0"; +pub const CERT_PIN_RULES_AUTO_UPDATE_ENCODED_CTL_VALUE_NAME: &[u8; 19] = b"PinRulesEncodedCtl\0"; +pub const CERT_PIN_RULES_CTL_FILENAME: &[u8; 13] = b"pinrules.stl\0"; +pub const CERT_PIN_RULES_CTL_FILENAME_A: &[u8; 13] = b"pinrules.stl\0"; +pub const CERT_PIN_RULES_CAB_FILENAME: &[u8; 16] = b"pinrulesstl.cab\0"; +pub const CERT_PIN_RULES_AUTO_UPDATE_LIST_IDENTIFIER: &[u8; 22] = b"PinRules_AutoUpdate_1\0"; +pub const CERT_REGISTRY_STORE_REMOTE_FLAG: u32 = 65536; +pub const CERT_REGISTRY_STORE_SERIALIZED_FLAG: u32 = 131072; +pub const CERT_REGISTRY_STORE_CLIENT_GPT_FLAG: u32 = 2147483648; +pub const CERT_REGISTRY_STORE_LM_GPT_FLAG: u32 = 16777216; +pub const CERT_REGISTRY_STORE_ROAMING_FLAG: u32 = 262144; +pub const CERT_REGISTRY_STORE_MY_IE_DIRTY_FLAG: u32 = 524288; +pub const CERT_REGISTRY_STORE_EXTERNAL_FLAG: u32 = 1048576; +pub const CERT_IE_DIRTY_FLAGS_REGPATH: &[u8; 45] = + b"Software\\Microsoft\\Cryptography\\IEDirtyFlags\0"; +pub const CERT_FILE_STORE_COMMIT_ENABLE_FLAG: u32 = 65536; +pub const CERT_LDAP_STORE_SIGN_FLAG: u32 = 65536; +pub const CERT_LDAP_STORE_AREC_EXCLUSIVE_FLAG: u32 = 131072; +pub const CERT_LDAP_STORE_OPENED_FLAG: u32 = 262144; +pub const CERT_LDAP_STORE_UNBIND_FLAG: u32 = 524288; +pub const CRYPT_OID_OPEN_STORE_PROV_FUNC: &[u8; 21] = b"CertDllOpenStoreProv\0"; +pub const CERT_STORE_PROV_EXTERNAL_FLAG: u32 = 1; +pub const CERT_STORE_PROV_DELETED_FLAG: u32 = 2; +pub const CERT_STORE_PROV_NO_PERSIST_FLAG: u32 = 4; +pub const CERT_STORE_PROV_SYSTEM_STORE_FLAG: u32 = 8; +pub const CERT_STORE_PROV_LM_SYSTEM_STORE_FLAG: u32 = 16; +pub const CERT_STORE_PROV_GP_SYSTEM_STORE_FLAG: u32 = 32; +pub const CERT_STORE_PROV_SHARED_USER_FLAG: u32 = 64; +pub const CERT_STORE_PROV_CLOSE_FUNC: u32 = 0; +pub const CERT_STORE_PROV_READ_CERT_FUNC: u32 = 1; +pub const CERT_STORE_PROV_WRITE_CERT_FUNC: u32 = 2; +pub const CERT_STORE_PROV_DELETE_CERT_FUNC: u32 = 3; +pub const CERT_STORE_PROV_SET_CERT_PROPERTY_FUNC: u32 = 4; +pub const CERT_STORE_PROV_READ_CRL_FUNC: u32 = 5; +pub const CERT_STORE_PROV_WRITE_CRL_FUNC: u32 = 6; +pub const CERT_STORE_PROV_DELETE_CRL_FUNC: u32 = 7; +pub const CERT_STORE_PROV_SET_CRL_PROPERTY_FUNC: u32 = 8; +pub const CERT_STORE_PROV_READ_CTL_FUNC: u32 = 9; +pub const CERT_STORE_PROV_WRITE_CTL_FUNC: u32 = 10; +pub const CERT_STORE_PROV_DELETE_CTL_FUNC: u32 = 11; +pub const CERT_STORE_PROV_SET_CTL_PROPERTY_FUNC: u32 = 12; +pub const CERT_STORE_PROV_CONTROL_FUNC: u32 = 13; +pub const CERT_STORE_PROV_FIND_CERT_FUNC: u32 = 14; +pub const CERT_STORE_PROV_FREE_FIND_CERT_FUNC: u32 = 15; +pub const CERT_STORE_PROV_GET_CERT_PROPERTY_FUNC: u32 = 16; +pub const CERT_STORE_PROV_FIND_CRL_FUNC: u32 = 17; +pub const CERT_STORE_PROV_FREE_FIND_CRL_FUNC: u32 = 18; +pub const CERT_STORE_PROV_GET_CRL_PROPERTY_FUNC: u32 = 19; +pub const CERT_STORE_PROV_FIND_CTL_FUNC: u32 = 20; +pub const CERT_STORE_PROV_FREE_FIND_CTL_FUNC: u32 = 21; +pub const CERT_STORE_PROV_GET_CTL_PROPERTY_FUNC: u32 = 22; +pub const CERT_STORE_PROV_WRITE_ADD_FLAG: u32 = 1; +pub const CERT_STORE_SAVE_AS_STORE: u32 = 1; +pub const CERT_STORE_SAVE_AS_PKCS7: u32 = 2; +pub const CERT_STORE_SAVE_AS_PKCS12: u32 = 3; +pub const CERT_STORE_SAVE_TO_FILE: u32 = 1; +pub const CERT_STORE_SAVE_TO_MEMORY: u32 = 2; +pub const CERT_STORE_SAVE_TO_FILENAME_A: u32 = 3; +pub const CERT_STORE_SAVE_TO_FILENAME_W: u32 = 4; +pub const CERT_STORE_SAVE_TO_FILENAME: u32 = 4; +pub const CERT_CLOSE_STORE_FORCE_FLAG: u32 = 1; +pub const CERT_CLOSE_STORE_CHECK_FLAG: u32 = 2; +pub const CERT_COMPARE_MASK: u32 = 65535; +pub const CERT_COMPARE_SHIFT: u32 = 16; +pub const CERT_COMPARE_ANY: u32 = 0; +pub const CERT_COMPARE_SHA1_HASH: u32 = 1; +pub const CERT_COMPARE_NAME: u32 = 2; +pub const CERT_COMPARE_ATTR: u32 = 3; +pub const CERT_COMPARE_MD5_HASH: u32 = 4; +pub const CERT_COMPARE_PROPERTY: u32 = 5; +pub const CERT_COMPARE_PUBLIC_KEY: u32 = 6; +pub const CERT_COMPARE_HASH: u32 = 1; +pub const CERT_COMPARE_NAME_STR_A: u32 = 7; +pub const CERT_COMPARE_NAME_STR_W: u32 = 8; +pub const CERT_COMPARE_KEY_SPEC: u32 = 9; +pub const CERT_COMPARE_ENHKEY_USAGE: u32 = 10; +pub const CERT_COMPARE_CTL_USAGE: u32 = 10; +pub const CERT_COMPARE_SUBJECT_CERT: u32 = 11; +pub const CERT_COMPARE_ISSUER_OF: u32 = 12; +pub const CERT_COMPARE_EXISTING: u32 = 13; +pub const CERT_COMPARE_SIGNATURE_HASH: u32 = 14; +pub const CERT_COMPARE_KEY_IDENTIFIER: u32 = 15; +pub const CERT_COMPARE_CERT_ID: u32 = 16; +pub const CERT_COMPARE_CROSS_CERT_DIST_POINTS: u32 = 17; +pub const CERT_COMPARE_PUBKEY_MD5_HASH: u32 = 18; +pub const CERT_COMPARE_SUBJECT_INFO_ACCESS: u32 = 19; +pub const CERT_COMPARE_HASH_STR: u32 = 20; +pub const CERT_COMPARE_HAS_PRIVATE_KEY: u32 = 21; +pub const CERT_FIND_ANY: u32 = 0; +pub const CERT_FIND_SHA1_HASH: u32 = 65536; +pub const CERT_FIND_MD5_HASH: u32 = 262144; +pub const CERT_FIND_SIGNATURE_HASH: u32 = 917504; +pub const CERT_FIND_KEY_IDENTIFIER: u32 = 983040; +pub const CERT_FIND_HASH: u32 = 65536; +pub const CERT_FIND_PROPERTY: u32 = 327680; +pub const CERT_FIND_PUBLIC_KEY: u32 = 393216; +pub const CERT_FIND_SUBJECT_NAME: u32 = 131079; +pub const CERT_FIND_SUBJECT_ATTR: u32 = 196615; +pub const CERT_FIND_ISSUER_NAME: u32 = 131076; +pub const CERT_FIND_ISSUER_ATTR: u32 = 196612; +pub const CERT_FIND_SUBJECT_STR_A: u32 = 458759; +pub const CERT_FIND_SUBJECT_STR_W: u32 = 524295; +pub const CERT_FIND_SUBJECT_STR: u32 = 524295; +pub const CERT_FIND_ISSUER_STR_A: u32 = 458756; +pub const CERT_FIND_ISSUER_STR_W: u32 = 524292; +pub const CERT_FIND_ISSUER_STR: u32 = 524292; +pub const CERT_FIND_KEY_SPEC: u32 = 589824; +pub const CERT_FIND_ENHKEY_USAGE: u32 = 655360; +pub const CERT_FIND_CTL_USAGE: u32 = 655360; +pub const CERT_FIND_SUBJECT_CERT: u32 = 720896; +pub const CERT_FIND_ISSUER_OF: u32 = 786432; +pub const CERT_FIND_EXISTING: u32 = 851968; +pub const CERT_FIND_CERT_ID: u32 = 1048576; +pub const CERT_FIND_CROSS_CERT_DIST_POINTS: u32 = 1114112; +pub const CERT_FIND_PUBKEY_MD5_HASH: u32 = 1179648; +pub const CERT_FIND_SUBJECT_INFO_ACCESS: u32 = 1245184; +pub const CERT_FIND_HASH_STR: u32 = 1310720; +pub const CERT_FIND_HAS_PRIVATE_KEY: u32 = 1376256; +pub const CERT_FIND_OPTIONAL_ENHKEY_USAGE_FLAG: u32 = 1; +pub const CERT_FIND_EXT_ONLY_ENHKEY_USAGE_FLAG: u32 = 2; +pub const CERT_FIND_PROP_ONLY_ENHKEY_USAGE_FLAG: u32 = 4; +pub const CERT_FIND_NO_ENHKEY_USAGE_FLAG: u32 = 8; +pub const CERT_FIND_OR_ENHKEY_USAGE_FLAG: u32 = 16; +pub const CERT_FIND_VALID_ENHKEY_USAGE_FLAG: u32 = 32; +pub const CERT_FIND_OPTIONAL_CTL_USAGE_FLAG: u32 = 1; +pub const CERT_FIND_EXT_ONLY_CTL_USAGE_FLAG: u32 = 2; +pub const CERT_FIND_PROP_ONLY_CTL_USAGE_FLAG: u32 = 4; +pub const CERT_FIND_NO_CTL_USAGE_FLAG: u32 = 8; +pub const CERT_FIND_OR_CTL_USAGE_FLAG: u32 = 16; +pub const CERT_FIND_VALID_CTL_USAGE_FLAG: u32 = 32; +pub const CERT_SET_PROPERTY_IGNORE_PERSIST_ERROR_FLAG: u32 = 2147483648; +pub const CERT_SET_PROPERTY_INHIBIT_PERSIST_FLAG: u32 = 1073741824; +pub const CTL_ENTRY_FROM_PROP_CHAIN_FLAG: u32 = 1; +pub const CRL_FIND_ANY: u32 = 0; +pub const CRL_FIND_ISSUED_BY: u32 = 1; +pub const CRL_FIND_EXISTING: u32 = 2; +pub const CRL_FIND_ISSUED_FOR: u32 = 3; +pub const CRL_FIND_ISSUED_BY_AKI_FLAG: u32 = 1; +pub const CRL_FIND_ISSUED_BY_SIGNATURE_FLAG: u32 = 2; +pub const CRL_FIND_ISSUED_BY_DELTA_FLAG: u32 = 4; +pub const CRL_FIND_ISSUED_BY_BASE_FLAG: u32 = 8; +pub const CRL_FIND_ISSUED_FOR_SET_STRONG_PROPERTIES_FLAG: u32 = 16; +pub const CERT_STORE_ADD_NEW: u32 = 1; +pub const CERT_STORE_ADD_USE_EXISTING: u32 = 2; +pub const CERT_STORE_ADD_REPLACE_EXISTING: u32 = 3; +pub const CERT_STORE_ADD_ALWAYS: u32 = 4; +pub const CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES: u32 = 5; +pub const CERT_STORE_ADD_NEWER: u32 = 6; +pub const CERT_STORE_ADD_NEWER_INHERIT_PROPERTIES: u32 = 7; +pub const CERT_STORE_CERTIFICATE_CONTEXT: u32 = 1; +pub const CERT_STORE_CRL_CONTEXT: u32 = 2; +pub const CERT_STORE_CTL_CONTEXT: u32 = 3; +pub const CERT_STORE_ALL_CONTEXT_FLAG: i32 = -1; +pub const CERT_STORE_CERTIFICATE_CONTEXT_FLAG: u32 = 2; +pub const CERT_STORE_CRL_CONTEXT_FLAG: u32 = 4; +pub const CERT_STORE_CTL_CONTEXT_FLAG: u32 = 8; +pub const CTL_ANY_SUBJECT_TYPE: u32 = 1; +pub const CTL_CERT_SUBJECT_TYPE: u32 = 2; +pub const CTL_FIND_ANY: u32 = 0; +pub const CTL_FIND_SHA1_HASH: u32 = 1; +pub const CTL_FIND_MD5_HASH: u32 = 2; +pub const CTL_FIND_USAGE: u32 = 3; +pub const CTL_FIND_SUBJECT: u32 = 4; +pub const CTL_FIND_EXISTING: u32 = 5; +pub const CTL_FIND_NO_LIST_ID_CBDATA: u32 = 4294967295; +pub const CTL_FIND_SAME_USAGE_FLAG: u32 = 1; +pub const CERT_STORE_CTRL_RESYNC: u32 = 1; +pub const CERT_STORE_CTRL_NOTIFY_CHANGE: u32 = 2; +pub const CERT_STORE_CTRL_COMMIT: u32 = 3; +pub const CERT_STORE_CTRL_AUTO_RESYNC: u32 = 4; +pub const CERT_STORE_CTRL_CANCEL_NOTIFY: u32 = 5; +pub const CERT_STORE_CTRL_INHIBIT_DUPLICATE_HANDLE_FLAG: u32 = 1; +pub const CERT_STORE_CTRL_COMMIT_FORCE_FLAG: u32 = 1; +pub const CERT_STORE_CTRL_COMMIT_CLEAR_FLAG: u32 = 2; +pub const CERT_STORE_LOCALIZED_NAME_PROP_ID: u32 = 4096; +pub const CERT_CREATE_CONTEXT_NOCOPY_FLAG: u32 = 1; +pub const CERT_CREATE_CONTEXT_SORTED_FLAG: u32 = 2; +pub const CERT_CREATE_CONTEXT_NO_HCRYPTMSG_FLAG: u32 = 4; +pub const CERT_CREATE_CONTEXT_NO_ENTRY_FLAG: u32 = 8; +pub const CERT_PHYSICAL_STORE_ADD_ENABLE_FLAG: u32 = 1; +pub const CERT_PHYSICAL_STORE_OPEN_DISABLE_FLAG: u32 = 2; +pub const CERT_PHYSICAL_STORE_REMOTE_OPEN_DISABLE_FLAG: u32 = 4; +pub const CERT_PHYSICAL_STORE_INSERT_COMPUTER_NAME_ENABLE_FLAG: u32 = 8; +pub const CERT_PHYSICAL_STORE_PREDEFINED_ENUM_FLAG: u32 = 1; +pub const CERT_PHYSICAL_STORE_DEFAULT_NAME: &[u8; 9] = b".Default\0"; +pub const CERT_PHYSICAL_STORE_GROUP_POLICY_NAME: &[u8; 13] = b".GroupPolicy\0"; +pub const CERT_PHYSICAL_STORE_LOCAL_MACHINE_NAME: &[u8; 14] = b".LocalMachine\0"; +pub const CERT_PHYSICAL_STORE_DS_USER_CERTIFICATE_NAME: &[u8; 17] = b".UserCertificate\0"; +pub const CERT_PHYSICAL_STORE_LOCAL_MACHINE_GROUP_POLICY_NAME: &[u8; 25] = + b".LocalMachineGroupPolicy\0"; +pub const CERT_PHYSICAL_STORE_ENTERPRISE_NAME: &[u8; 12] = b".Enterprise\0"; +pub const CERT_PHYSICAL_STORE_AUTH_ROOT_NAME: &[u8; 10] = b".AuthRoot\0"; +pub const CERT_PHYSICAL_STORE_SMART_CARD_NAME: &[u8; 11] = b".SmartCard\0"; +pub const CRYPT_OID_OPEN_SYSTEM_STORE_PROV_FUNC: &[u8; 27] = b"CertDllOpenSystemStoreProv\0"; +pub const CRYPT_OID_REGISTER_SYSTEM_STORE_FUNC: &[u8; 27] = b"CertDllRegisterSystemStore\0"; +pub const CRYPT_OID_UNREGISTER_SYSTEM_STORE_FUNC: &[u8; 29] = b"CertDllUnregisterSystemStore\0"; +pub const CRYPT_OID_ENUM_SYSTEM_STORE_FUNC: &[u8; 23] = b"CertDllEnumSystemStore\0"; +pub const CRYPT_OID_REGISTER_PHYSICAL_STORE_FUNC: &[u8; 29] = b"CertDllRegisterPhysicalStore\0"; +pub const CRYPT_OID_UNREGISTER_PHYSICAL_STORE_FUNC: &[u8; 31] = b"CertDllUnregisterPhysicalStore\0"; +pub const CRYPT_OID_ENUM_PHYSICAL_STORE_FUNC: &[u8; 25] = b"CertDllEnumPhysicalStore\0"; +pub const CRYPT_OID_SYSTEM_STORE_LOCATION_VALUE_NAME: &[u8; 20] = b"SystemStoreLocation\0"; +pub const CMSG_TRUSTED_SIGNER_FLAG: u32 = 1; +pub const CMSG_SIGNER_ONLY_FLAG: u32 = 2; +pub const CMSG_USE_SIGNER_INDEX_FLAG: u32 = 4; +pub const CMSG_CMS_ENCAPSULATED_CTL_FLAG: u32 = 32768; +pub const CMSG_ENCODE_SORTED_CTL_FLAG: u32 = 1; +pub const CMSG_ENCODE_HASHED_SUBJECT_IDENTIFIER_FLAG: u32 = 2; +pub const CERT_VERIFY_INHIBIT_CTL_UPDATE_FLAG: u32 = 1; +pub const CERT_VERIFY_TRUSTED_SIGNERS_FLAG: u32 = 2; +pub const CERT_VERIFY_NO_TIME_CHECK_FLAG: u32 = 4; +pub const CERT_VERIFY_ALLOW_MORE_USAGE_FLAG: u32 = 8; +pub const CERT_VERIFY_UPDATED_CTL_FLAG: u32 = 1; +pub const CERT_CONTEXT_REVOCATION_TYPE: u32 = 1; +pub const CERT_VERIFY_REV_CHAIN_FLAG: u32 = 1; +pub const CERT_VERIFY_CACHE_ONLY_BASED_REVOCATION: u32 = 2; +pub const CERT_VERIFY_REV_ACCUMULATIVE_TIMEOUT_FLAG: u32 = 4; +pub const CERT_VERIFY_REV_SERVER_OCSP_FLAG: u32 = 8; +pub const CERT_VERIFY_REV_NO_OCSP_FAILOVER_TO_CRL_FLAG: u32 = 16; +pub const CERT_VERIFY_REV_SERVER_OCSP_WIRE_ONLY_FLAG: u32 = 32; +pub const CERT_UNICODE_IS_RDN_ATTRS_FLAG: u32 = 1; +pub const CERT_CASE_INSENSITIVE_IS_RDN_ATTRS_FLAG: u32 = 2; +pub const CRYPT_VERIFY_CERT_SIGN_SUBJECT_BLOB: u32 = 1; +pub const CRYPT_VERIFY_CERT_SIGN_SUBJECT_CERT: u32 = 2; +pub const CRYPT_VERIFY_CERT_SIGN_SUBJECT_CRL: u32 = 3; +pub const CRYPT_VERIFY_CERT_SIGN_SUBJECT_OCSP_BASIC_SIGNED_RESPONSE: u32 = 4; +pub const CRYPT_VERIFY_CERT_SIGN_ISSUER_PUBKEY: u32 = 1; +pub const CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT: u32 = 2; +pub const CRYPT_VERIFY_CERT_SIGN_ISSUER_CHAIN: u32 = 3; +pub const CRYPT_VERIFY_CERT_SIGN_ISSUER_NULL: u32 = 4; +pub const CRYPT_VERIFY_CERT_SIGN_DISABLE_MD2_MD4_FLAG: u32 = 1; +pub const CRYPT_VERIFY_CERT_SIGN_SET_STRONG_PROPERTIES_FLAG: u32 = 2; +pub const CRYPT_VERIFY_CERT_SIGN_RETURN_STRONG_PROPERTIES_FLAG: u32 = 4; +pub const CRYPT_VERIFY_CERT_SIGN_CHECK_WEAK_HASH_FLAG: u32 = 8; +pub const CRYPT_OID_EXTRACT_ENCODED_SIGNATURE_PARAMETERS_FUNC: &[u8; 42] = + b"CryptDllExtractEncodedSignatureParameters\0"; +pub const CRYPT_OID_SIGN_AND_ENCODE_HASH_FUNC: &[u8; 26] = b"CryptDllSignAndEncodeHash\0"; +pub const CRYPT_OID_VERIFY_ENCODED_SIGNATURE_FUNC: &[u8; 31] = b"CryptDllVerifyEncodedSignature\0"; +pub const CRYPT_DEFAULT_CONTEXT_AUTO_RELEASE_FLAG: u32 = 1; +pub const CRYPT_DEFAULT_CONTEXT_PROCESS_FLAG: u32 = 2; +pub const CRYPT_DEFAULT_CONTEXT_CERT_SIGN_OID: u32 = 1; +pub const CRYPT_DEFAULT_CONTEXT_MULTI_CERT_SIGN_OID: u32 = 2; +pub const CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_FUNC: &[u8; 30] = b"CryptDllExportPublicKeyInfoEx\0"; +pub const CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_EX2_FUNC: &[u8; 31] = + b"CryptDllExportPublicKeyInfoEx2\0"; +pub const CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_FROM_BCRYPT_HANDLE_FUNC: &[u8; 47] = + b"CryptDllExportPublicKeyInfoFromBCryptKeyHandle\0"; +pub const CRYPT_OID_IMPORT_PUBLIC_KEY_INFO_FUNC: &[u8; 30] = b"CryptDllImportPublicKeyInfoEx\0"; +pub const CRYPT_OID_IMPORT_PUBLIC_KEY_INFO_EX2_FUNC: &[u8; 31] = + b"CryptDllImportPublicKeyInfoEx2\0"; +pub const CRYPT_ACQUIRE_CACHE_FLAG: u32 = 1; +pub const CRYPT_ACQUIRE_USE_PROV_INFO_FLAG: u32 = 2; +pub const CRYPT_ACQUIRE_COMPARE_KEY_FLAG: u32 = 4; +pub const CRYPT_ACQUIRE_NO_HEALING: u32 = 8; +pub const CRYPT_ACQUIRE_SILENT_FLAG: u32 = 64; +pub const CRYPT_ACQUIRE_WINDOW_HANDLE_FLAG: u32 = 128; +pub const CRYPT_ACQUIRE_NCRYPT_KEY_FLAGS_MASK: u32 = 458752; +pub const CRYPT_ACQUIRE_ALLOW_NCRYPT_KEY_FLAG: u32 = 65536; +pub const CRYPT_ACQUIRE_PREFER_NCRYPT_KEY_FLAG: u32 = 131072; +pub const CRYPT_ACQUIRE_ONLY_NCRYPT_KEY_FLAG: u32 = 262144; +pub const CRYPT_FIND_USER_KEYSET_FLAG: u32 = 1; +pub const CRYPT_FIND_MACHINE_KEYSET_FLAG: u32 = 2; +pub const CRYPT_FIND_SILENT_KEYSET_FLAG: u32 = 64; +pub const CRYPT_OID_IMPORT_PRIVATE_KEY_INFO_FUNC: &[u8; 31] = b"CryptDllImportPrivateKeyInfoEx\0"; +pub const CRYPT_OID_EXPORT_PRIVATE_KEY_INFO_FUNC: &[u8; 31] = b"CryptDllExportPrivateKeyInfoEx\0"; +pub const CRYPT_DELETE_KEYSET: u32 = 16; +pub const CERT_SIMPLE_NAME_STR: u32 = 1; +pub const CERT_OID_NAME_STR: u32 = 2; +pub const CERT_X500_NAME_STR: u32 = 3; +pub const CERT_XML_NAME_STR: u32 = 4; +pub const CERT_NAME_STR_SEMICOLON_FLAG: u32 = 1073741824; +pub const CERT_NAME_STR_NO_PLUS_FLAG: u32 = 536870912; +pub const CERT_NAME_STR_NO_QUOTING_FLAG: u32 = 268435456; +pub const CERT_NAME_STR_CRLF_FLAG: u32 = 134217728; +pub const CERT_NAME_STR_COMMA_FLAG: u32 = 67108864; +pub const CERT_NAME_STR_REVERSE_FLAG: u32 = 33554432; +pub const CERT_NAME_STR_FORWARD_FLAG: u32 = 16777216; +pub const CERT_NAME_STR_DISABLE_IE4_UTF8_FLAG: u32 = 65536; +pub const CERT_NAME_STR_ENABLE_T61_UNICODE_FLAG: u32 = 131072; +pub const CERT_NAME_STR_ENABLE_UTF8_UNICODE_FLAG: u32 = 262144; +pub const CERT_NAME_STR_FORCE_UTF8_DIR_STR_FLAG: u32 = 524288; +pub const CERT_NAME_STR_DISABLE_UTF8_DIR_STR_FLAG: u32 = 1048576; +pub const CERT_NAME_STR_ENABLE_PUNYCODE_FLAG: u32 = 2097152; +pub const CERT_NAME_EMAIL_TYPE: u32 = 1; +pub const CERT_NAME_RDN_TYPE: u32 = 2; +pub const CERT_NAME_ATTR_TYPE: u32 = 3; +pub const CERT_NAME_SIMPLE_DISPLAY_TYPE: u32 = 4; +pub const CERT_NAME_FRIENDLY_DISPLAY_TYPE: u32 = 5; +pub const CERT_NAME_DNS_TYPE: u32 = 6; +pub const CERT_NAME_URL_TYPE: u32 = 7; +pub const CERT_NAME_UPN_TYPE: u32 = 8; +pub const CERT_NAME_ISSUER_FLAG: u32 = 1; +pub const CERT_NAME_DISABLE_IE4_UTF8_FLAG: u32 = 65536; +pub const CERT_NAME_SEARCH_ALL_NAMES_FLAG: u32 = 2; +pub const CRYPT_MESSAGE_BARE_CONTENT_OUT_FLAG: u32 = 1; +pub const CRYPT_MESSAGE_ENCAPSULATED_CONTENT_OUT_FLAG: u32 = 2; +pub const CRYPT_MESSAGE_KEYID_SIGNER_FLAG: u32 = 4; +pub const CRYPT_MESSAGE_SILENT_KEYSET_FLAG: u32 = 64; +pub const CRYPT_MESSAGE_KEYID_RECIPIENT_FLAG: u32 = 4; +pub const CERT_QUERY_OBJECT_FILE: u32 = 1; +pub const CERT_QUERY_OBJECT_BLOB: u32 = 2; +pub const CERT_QUERY_CONTENT_CERT: u32 = 1; +pub const CERT_QUERY_CONTENT_CTL: u32 = 2; +pub const CERT_QUERY_CONTENT_CRL: u32 = 3; +pub const CERT_QUERY_CONTENT_SERIALIZED_STORE: u32 = 4; +pub const CERT_QUERY_CONTENT_SERIALIZED_CERT: u32 = 5; +pub const CERT_QUERY_CONTENT_SERIALIZED_CTL: u32 = 6; +pub const CERT_QUERY_CONTENT_SERIALIZED_CRL: u32 = 7; +pub const CERT_QUERY_CONTENT_PKCS7_SIGNED: u32 = 8; +pub const CERT_QUERY_CONTENT_PKCS7_UNSIGNED: u32 = 9; +pub const CERT_QUERY_CONTENT_PKCS7_SIGNED_EMBED: u32 = 10; +pub const CERT_QUERY_CONTENT_PKCS10: u32 = 11; +pub const CERT_QUERY_CONTENT_PFX: u32 = 12; +pub const CERT_QUERY_CONTENT_CERT_PAIR: u32 = 13; +pub const CERT_QUERY_CONTENT_PFX_AND_LOAD: u32 = 14; +pub const CERT_QUERY_CONTENT_FLAG_CERT: u32 = 2; +pub const CERT_QUERY_CONTENT_FLAG_CTL: u32 = 4; +pub const CERT_QUERY_CONTENT_FLAG_CRL: u32 = 8; +pub const CERT_QUERY_CONTENT_FLAG_SERIALIZED_STORE: u32 = 16; +pub const CERT_QUERY_CONTENT_FLAG_SERIALIZED_CERT: u32 = 32; +pub const CERT_QUERY_CONTENT_FLAG_SERIALIZED_CTL: u32 = 64; +pub const CERT_QUERY_CONTENT_FLAG_SERIALIZED_CRL: u32 = 128; +pub const CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED: u32 = 256; +pub const CERT_QUERY_CONTENT_FLAG_PKCS7_UNSIGNED: u32 = 512; +pub const CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED_EMBED: u32 = 1024; +pub const CERT_QUERY_CONTENT_FLAG_PKCS10: u32 = 2048; +pub const CERT_QUERY_CONTENT_FLAG_PFX: u32 = 4096; +pub const CERT_QUERY_CONTENT_FLAG_CERT_PAIR: u32 = 8192; +pub const CERT_QUERY_CONTENT_FLAG_PFX_AND_LOAD: u32 = 16384; +pub const CERT_QUERY_CONTENT_FLAG_ALL: u32 = 16382; +pub const CERT_QUERY_CONTENT_FLAG_ALL_ISSUER_CERT: u32 = 818; +pub const CERT_QUERY_FORMAT_BINARY: u32 = 1; +pub const CERT_QUERY_FORMAT_BASE64_ENCODED: u32 = 2; +pub const CERT_QUERY_FORMAT_ASN_ASCII_HEX_ENCODED: u32 = 3; +pub const CERT_QUERY_FORMAT_FLAG_BINARY: u32 = 2; +pub const CERT_QUERY_FORMAT_FLAG_BASE64_ENCODED: u32 = 4; +pub const CERT_QUERY_FORMAT_FLAG_ASN_ASCII_HEX_ENCODED: u32 = 8; +pub const CERT_QUERY_FORMAT_FLAG_ALL: u32 = 14; +pub const SCHEME_OID_RETRIEVE_ENCODED_OBJECT_FUNC: &[u8; 31] = b"SchemeDllRetrieveEncodedObject\0"; +pub const SCHEME_OID_RETRIEVE_ENCODED_OBJECTW_FUNC: &[u8; 32] = + b"SchemeDllRetrieveEncodedObjectW\0"; +pub const CONTEXT_OID_CREATE_OBJECT_CONTEXT_FUNC: &[u8; 30] = b"ContextDllCreateObjectContext\0"; +pub const CRYPT_RETRIEVE_MULTIPLE_OBJECTS: u32 = 1; +pub const CRYPT_CACHE_ONLY_RETRIEVAL: u32 = 2; +pub const CRYPT_WIRE_ONLY_RETRIEVAL: u32 = 4; +pub const CRYPT_DONT_CACHE_RESULT: u32 = 8; +pub const CRYPT_ASYNC_RETRIEVAL: u32 = 16; +pub const CRYPT_STICKY_CACHE_RETRIEVAL: u32 = 4096; +pub const CRYPT_LDAP_SCOPE_BASE_ONLY_RETRIEVAL: u32 = 8192; +pub const CRYPT_OFFLINE_CHECK_RETRIEVAL: u32 = 16384; +pub const CRYPT_LDAP_INSERT_ENTRY_ATTRIBUTE: u32 = 32768; +pub const CRYPT_LDAP_SIGN_RETRIEVAL: u32 = 65536; +pub const CRYPT_NO_AUTH_RETRIEVAL: u32 = 131072; +pub const CRYPT_LDAP_AREC_EXCLUSIVE_RETRIEVAL: u32 = 262144; +pub const CRYPT_AIA_RETRIEVAL: u32 = 524288; +pub const CRYPT_HTTP_POST_RETRIEVAL: u32 = 1048576; +pub const CRYPT_PROXY_CACHE_RETRIEVAL: u32 = 2097152; +pub const CRYPT_NOT_MODIFIED_RETRIEVAL: u32 = 4194304; +pub const CRYPT_ENABLE_SSL_REVOCATION_RETRIEVAL: u32 = 8388608; +pub const CRYPT_RANDOM_QUERY_STRING_RETRIEVAL: u32 = 67108864; +pub const CRYPT_ENABLE_FILE_RETRIEVAL: u32 = 134217728; +pub const CRYPT_CREATE_NEW_FLUSH_ENTRY: u32 = 268435456; +pub const CRYPT_VERIFY_CONTEXT_SIGNATURE: u32 = 32; +pub const CRYPT_VERIFY_DATA_HASH: u32 = 64; +pub const CRYPT_KEEP_TIME_VALID: u32 = 128; +pub const CRYPT_DONT_VERIFY_SIGNATURE: u32 = 256; +pub const CRYPT_DONT_CHECK_TIME_VALIDITY: u32 = 512; +pub const CRYPT_CHECK_FRESHNESS_TIME_VALIDITY: u32 = 1024; +pub const CRYPT_ACCUMULATIVE_TIMEOUT: u32 = 2048; +pub const CRYPT_OCSP_ONLY_RETRIEVAL: u32 = 16777216; +pub const CRYPT_NO_OCSP_FAILOVER_TO_CRL_RETRIEVAL: u32 = 33554432; +pub const CRYPTNET_URL_CACHE_PRE_FETCH_NONE: u32 = 0; +pub const CRYPTNET_URL_CACHE_PRE_FETCH_BLOB: u32 = 1; +pub const CRYPTNET_URL_CACHE_PRE_FETCH_CRL: u32 = 2; +pub const CRYPTNET_URL_CACHE_PRE_FETCH_OCSP: u32 = 3; +pub const CRYPTNET_URL_CACHE_PRE_FETCH_AUTOROOT_CAB: u32 = 5; +pub const CRYPTNET_URL_CACHE_PRE_FETCH_DISALLOWED_CERT_CAB: u32 = 6; +pub const CRYPTNET_URL_CACHE_PRE_FETCH_PIN_RULES_CAB: u32 = 7; +pub const CRYPTNET_URL_CACHE_DEFAULT_FLUSH: u32 = 0; +pub const CRYPTNET_URL_CACHE_DISABLE_FLUSH: u32 = 4294967295; +pub const CRYPTNET_URL_CACHE_RESPONSE_NONE: u32 = 0; +pub const CRYPTNET_URL_CACHE_RESPONSE_HTTP: u32 = 1; +pub const CRYPTNET_URL_CACHE_RESPONSE_VALIDATED: u32 = 32768; +pub const CRYPT_RETRIEVE_MAX_ERROR_CONTENT_LENGTH: u32 = 4096; +pub const CRYPT_GET_URL_FROM_PROPERTY: u32 = 1; +pub const CRYPT_GET_URL_FROM_EXTENSION: u32 = 2; +pub const CRYPT_GET_URL_FROM_UNAUTH_ATTRIBUTE: u32 = 4; +pub const CRYPT_GET_URL_FROM_AUTH_ATTRIBUTE: u32 = 8; +pub const URL_OID_GET_OBJECT_URL_FUNC: &[u8; 19] = b"UrlDllGetObjectUrl\0"; +pub const TIME_VALID_OID_GET_OBJECT_FUNC: &[u8; 22] = b"TimeValidDllGetObject\0"; +pub const TIME_VALID_OID_FLUSH_OBJECT_FUNC: &[u8; 24] = b"TimeValidDllFlushObject\0"; +pub const CERT_CREATE_SELFSIGN_NO_SIGN: u32 = 1; +pub const CERT_CREATE_SELFSIGN_NO_KEY_INFO: u32 = 2; +pub const CRYPT_KEYID_MACHINE_FLAG: u32 = 32; +pub const CRYPT_KEYID_ALLOC_FLAG: u32 = 32768; +pub const CRYPT_KEYID_DELETE_FLAG: u32 = 16; +pub const CRYPT_KEYID_SET_NEW_FLAG: u32 = 8192; +pub const CERT_CHAIN_CONFIG_REGPATH : & [u8 ; 94] = b"Software\\Microsoft\\Cryptography\\OID\\EncodingType 0\\CertDllCreateCertificateChainEngine\\Config\0" ; +pub const CERT_CHAIN_MAX_URL_RETRIEVAL_BYTE_COUNT_VALUE_NAME: &[u8; 25] = + b"MaxUrlRetrievalByteCount\0"; +pub const CERT_CHAIN_MAX_URL_RETRIEVAL_BYTE_COUNT_DEFAULT: u32 = 104857600; +pub const CERT_CHAIN_CACHE_RESYNC_FILETIME_VALUE_NAME: &[u8; 25] = b"ChainCacheResyncFiletime\0"; +pub const CERT_CHAIN_DISABLE_MANDATORY_BASIC_CONSTRAINTS_VALUE_NAME: &[u8; 33] = + b"DisableMandatoryBasicConstraints\0"; +pub const CERT_CHAIN_DISABLE_CA_NAME_CONSTRAINTS_VALUE_NAME: &[u8; 25] = + b"DisableCANameConstraints\0"; +pub const CERT_CHAIN_DISABLE_UNSUPPORTED_CRITICAL_EXTENSIONS_VALUE_NAME: &[u8; 37] = + b"DisableUnsupportedCriticalExtensions\0"; +pub const CERT_CHAIN_MAX_AIA_URL_COUNT_IN_CERT_VALUE_NAME: &[u8; 21] = b"MaxAIAUrlCountInCert\0"; +pub const CERT_CHAIN_MAX_AIA_URL_COUNT_IN_CERT_DEFAULT: u32 = 5; +pub const CERT_CHAIN_MAX_AIA_URL_RETRIEVAL_COUNT_PER_CHAIN_VALUE_NAME: &[u8; 32] = + b"MaxAIAUrlRetrievalCountPerChain\0"; +pub const CERT_CHAIN_MAX_AIA_URL_RETRIEVAL_COUNT_PER_CHAIN_DEFAULT: u32 = 3; +pub const CERT_CHAIN_MAX_AIA_URL_RETRIEVAL_BYTE_COUNT_VALUE_NAME: &[u8; 28] = + b"MaxAIAUrlRetrievalByteCount\0"; +pub const CERT_CHAIN_MAX_AIA_URL_RETRIEVAL_BYTE_COUNT_DEFAULT: u32 = 100000; +pub const CERT_CHAIN_MAX_AIA_URL_RETRIEVAL_CERT_COUNT_VALUE_NAME: &[u8; 28] = + b"MaxAIAUrlRetrievalCertCount\0"; +pub const CERT_CHAIN_MAX_AIA_URL_RETRIEVAL_CERT_COUNT_DEFAULT: u32 = 10; +pub const CERT_CHAIN_OCSP_VALIDITY_SECONDS_VALUE_NAME: &[u8; 20] = b"OcspValiditySeconds\0"; +pub const CERT_CHAIN_OCSP_VALIDITY_SECONDS_DEFAULT: u32 = 43200; +pub const CERT_CHAIN_DISABLE_SERIAL_CHAIN_VALUE_NAME: &[u8; 19] = b"DisableSerialChain\0"; +pub const CERT_CHAIN_SERIAL_CHAIN_LOG_FILE_NAME_VALUE_NAME: &[u8; 23] = b"SerialChainLogFileName\0"; +pub const CERT_CHAIN_DISABLE_SYNC_WITH_SSL_TIME_VALUE_NAME: &[u8; 23] = b"DisableSyncWithSslTime\0"; +pub const CERT_CHAIN_MAX_SSL_TIME_UPDATED_EVENT_COUNT_VALUE_NAME: &[u8; 28] = + b"MaxSslTimeUpdatedEventCount\0"; +pub const CERT_CHAIN_MAX_SSL_TIME_UPDATED_EVENT_COUNT_DEFAULT: u32 = 5; +pub const CERT_CHAIN_MAX_SSL_TIME_UPDATED_EVENT_COUNT_DISABLE: u32 = 4294967295; +pub const CERT_CHAIN_SSL_HANDSHAKE_LOG_FILE_NAME_VALUE_NAME: &[u8; 24] = + b"SslHandshakeLogFileName\0"; +pub const CERT_CHAIN_ENABLE_WEAK_SIGNATURE_FLAGS_VALUE_NAME: &[u8; 25] = + b"EnableWeakSignatureFlags\0"; +pub const CERT_CHAIN_ENABLE_MD2_MD4_FLAG: u32 = 1; +pub const CERT_CHAIN_ENABLE_WEAK_RSA_ROOT_FLAG: u32 = 2; +pub const CERT_CHAIN_ENABLE_WEAK_LOGGING_FLAG: u32 = 4; +pub const CERT_CHAIN_ENABLE_ONLY_WEAK_LOGGING_FLAG: u32 = 8; +pub const CERT_CHAIN_MIN_RSA_PUB_KEY_BIT_LENGTH_VALUE_NAME: &[u8; 22] = b"MinRsaPubKeyBitLength\0"; +pub const CERT_CHAIN_MIN_RSA_PUB_KEY_BIT_LENGTH_DEFAULT: u32 = 1023; +pub const CERT_CHAIN_MIN_RSA_PUB_KEY_BIT_LENGTH_DISABLE: u32 = 4294967295; +pub const CERT_CHAIN_WEAK_RSA_PUB_KEY_TIME_VALUE_NAME: &[u8; 18] = b"WeakRsaPubKeyTime\0"; +pub const CERT_CHAIN_WEAK_SIGNATURE_LOG_DIR_VALUE_NAME: &[u8; 20] = b"WeakSignatureLogDir\0"; +pub const CERT_CHAIN_DEFAULT_CONFIG_SUBDIR: &[u8; 8] = b"Default\0"; +pub const CERT_CHAIN_WEAK_PREFIX_NAME: &[u8; 5] = b"Weak\0"; +pub const CERT_CHAIN_WEAK_THIRD_PARTY_CONFIG_NAME: &[u8; 11] = b"ThirdParty\0"; +pub const CERT_CHAIN_WEAK_ALL_CONFIG_NAME: &[u8; 4] = b"All\0"; +pub const CERT_CHAIN_WEAK_FLAGS_NAME: &[u8; 6] = b"Flags\0"; +pub const CERT_CHAIN_WEAK_HYGIENE_NAME: &[u8; 8] = b"Hygiene\0"; +pub const CERT_CHAIN_WEAK_AFTER_TIME_NAME: &[u8; 10] = b"AfterTime\0"; +pub const CERT_CHAIN_WEAK_FILE_HASH_AFTER_TIME_NAME: &[u8; 18] = b"FileHashAfterTime\0"; +pub const CERT_CHAIN_WEAK_TIMESTAMP_HASH_AFTER_TIME_NAME: &[u8; 23] = b"TimestampHashAfterTime\0"; +pub const CERT_CHAIN_WEAK_MIN_BIT_LENGTH_NAME: &[u8; 13] = b"MinBitLength\0"; +pub const CERT_CHAIN_WEAK_SHA256_ALLOW_NAME: &[u8; 12] = b"Sha256Allow\0"; +pub const CERT_CHAIN_MIN_PUB_KEY_BIT_LENGTH_DISABLE: u32 = 4294967295; +pub const CERT_CHAIN_ENABLE_WEAK_SETTINGS_FLAG: u32 = 2147483648; +pub const CERT_CHAIN_DISABLE_ECC_PARA_FLAG: u32 = 16; +pub const CERT_CHAIN_DISABLE_ALL_EKU_WEAK_FLAG: u32 = 65536; +pub const CERT_CHAIN_ENABLE_ALL_EKU_HYGIENE_FLAG: u32 = 131072; +pub const CERT_CHAIN_DISABLE_OPT_IN_SERVER_AUTH_WEAK_FLAG: u32 = 262144; +pub const CERT_CHAIN_DISABLE_SERVER_AUTH_WEAK_FLAG: u32 = 1048576; +pub const CERT_CHAIN_ENABLE_SERVER_AUTH_HYGIENE_FLAG: u32 = 2097152; +pub const CERT_CHAIN_DISABLE_CODE_SIGNING_WEAK_FLAG: u32 = 4194304; +pub const CERT_CHAIN_DISABLE_MOTW_CODE_SIGNING_WEAK_FLAG: u32 = 8388608; +pub const CERT_CHAIN_ENABLE_CODE_SIGNING_HYGIENE_FLAG: u32 = 16777216; +pub const CERT_CHAIN_ENABLE_MOTW_CODE_SIGNING_HYGIENE_FLAG: u32 = 33554432; +pub const CERT_CHAIN_DISABLE_TIMESTAMP_WEAK_FLAG: u32 = 67108864; +pub const CERT_CHAIN_DISABLE_MOTW_TIMESTAMP_WEAK_FLAG: u32 = 134217728; +pub const CERT_CHAIN_ENABLE_TIMESTAMP_HYGIENE_FLAG: u32 = 268435456; +pub const CERT_CHAIN_ENABLE_MOTW_TIMESTAMP_HYGIENE_FLAG: u32 = 536870912; +pub const CERT_CHAIN_MOTW_IGNORE_AFTER_TIME_WEAK_FLAG: u32 = 1073741824; +pub const CERT_CHAIN_DISABLE_FILE_HASH_WEAK_FLAG: u32 = 4096; +pub const CERT_CHAIN_DISABLE_MOTW_FILE_HASH_WEAK_FLAG: u32 = 8192; +pub const CERT_CHAIN_DISABLE_TIMESTAMP_HASH_WEAK_FLAG: u32 = 16384; +pub const CERT_CHAIN_DISABLE_MOTW_TIMESTAMP_HASH_WEAK_FLAG: u32 = 32768; +pub const CERT_CHAIN_DISABLE_WEAK_FLAGS: u32 = 215285776; +pub const CERT_CHAIN_DISABLE_FILE_HASH_WEAK_FLAGS: u32 = 12288; +pub const CERT_CHAIN_DISABLE_TIMESTAMP_HASH_WEAK_FLAGS: u32 = 49152; +pub const CERT_CHAIN_ENABLE_HYGIENE_FLAGS: u32 = 857866240; +pub const CERT_CHAIN_MOTW_WEAK_FLAGS: u32 = 1786773504; +pub const CERT_CHAIN_OPT_IN_WEAK_FLAGS: u32 = 262144; +pub const CERT_CHAIN_AUTO_CURRENT_USER: u32 = 1; +pub const CERT_CHAIN_AUTO_LOCAL_MACHINE: u32 = 2; +pub const CERT_CHAIN_AUTO_IMPERSONATED: u32 = 3; +pub const CERT_CHAIN_AUTO_PROCESS_INFO: u32 = 4; +pub const CERT_CHAIN_AUTO_PINRULE_INFO: u32 = 5; +pub const CERT_CHAIN_AUTO_NETWORK_INFO: u32 = 6; +pub const CERT_CHAIN_AUTO_SERIAL_LOCAL_MACHINE: u32 = 7; +pub const CERT_CHAIN_AUTO_HPKP_RULE_INFO: u32 = 8; +pub const CERT_CHAIN_AUTO_FLAGS_VALUE_NAME: &[u8; 10] = b"AutoFlags\0"; +pub const CERT_CHAIN_AUTO_FLUSH_DISABLE_FLAG: u32 = 1; +pub const CERT_CHAIN_AUTO_LOG_CREATE_FLAG: u32 = 2; +pub const CERT_CHAIN_AUTO_LOG_FREE_FLAG: u32 = 4; +pub const CERT_CHAIN_AUTO_LOG_FLUSH_FLAG: u32 = 8; +pub const CERT_CHAIN_AUTO_LOG_FLAGS: u32 = 14; +pub const CERT_CHAIN_AUTO_FLUSH_FIRST_DELTA_SECONDS_VALUE_NAME: &[u8; 27] = + b"AutoFlushFirstDeltaSeconds\0"; +pub const CERT_CHAIN_AUTO_FLUSH_FIRST_DELTA_SECONDS_DEFAULT: u32 = 300; +pub const CERT_CHAIN_AUTO_FLUSH_NEXT_DELTA_SECONDS_VALUE_NAME: &[u8; 26] = + b"AutoFlushNextDeltaSeconds\0"; +pub const CERT_CHAIN_AUTO_FLUSH_NEXT_DELTA_SECONDS_DEFAULT: u32 = 1800; +pub const CERT_CHAIN_AUTO_LOG_FILE_NAME_VALUE_NAME: &[u8; 16] = b"AutoLogFileName\0"; +pub const CERT_CHAIN_DISABLE_AUTO_FLUSH_PROCESS_NAME_LIST_VALUE_NAME: &[u8; 32] = + b"DisableAutoFlushProcessNameList\0"; +pub const CERT_SRV_OCSP_RESP_MIN_VALIDITY_SECONDS_VALUE_NAME: &[u8; 30] = + b"SrvOcspRespMinValiditySeconds\0"; +pub const CERT_SRV_OCSP_RESP_MIN_VALIDITY_SECONDS_DEFAULT: u32 = 600; +pub const CERT_SRV_OCSP_RESP_URL_RETRIEVAL_TIMEOUT_MILLISECONDS_VALUE_NAME: &[u8; 43] = + b"SrvOcspRespUrlRetrievalTimeoutMilliseconds\0"; +pub const CERT_SRV_OCSP_RESP_URL_RETRIEVAL_TIMEOUT_MILLISECONDS_DEFAULT: u32 = 15000; +pub const CERT_SRV_OCSP_RESP_MAX_BEFORE_NEXT_UPDATE_SECONDS_VALUE_NAME: &[u8; 38] = + b"SrvOcspRespMaxBeforeNextUpdateSeconds\0"; +pub const CERT_SRV_OCSP_RESP_MAX_BEFORE_NEXT_UPDATE_SECONDS_DEFAULT: u32 = 14400; +pub const CERT_SRV_OCSP_RESP_MIN_BEFORE_NEXT_UPDATE_SECONDS_VALUE_NAME: &[u8; 38] = + b"SrvOcspRespMinBeforeNextUpdateSeconds\0"; +pub const CERT_SRV_OCSP_RESP_MIN_BEFORE_NEXT_UPDATE_SECONDS_DEFAULT: u32 = 120; +pub const CERT_SRV_OCSP_RESP_MIN_AFTER_NEXT_UPDATE_SECONDS_VALUE_NAME: &[u8; 37] = + b"SrvOcspRespMinAfterNextUpdateSeconds\0"; +pub const CERT_SRV_OCSP_RESP_MIN_AFTER_NEXT_UPDATE_SECONDS_DEFAULT: u32 = 60; +pub const CERT_SRV_OCSP_RESP_MIN_SYNC_CERT_FILE_SECONDS_VALUE_NAME: &[u8; 34] = + b"SrvOcspRespMinSyncCertFileSeconds\0"; +pub const CERT_SRV_OCSP_RESP_MIN_SYNC_CERT_FILE_SECONDS_DEFAULT: u32 = 5; +pub const CERT_SRV_OCSP_RESP_MAX_SYNC_CERT_FILE_SECONDS_VALUE_NAME: &[u8; 34] = + b"SrvOcspRespMaxSyncCertFileSeconds\0"; +pub const CERT_SRV_OCSP_RESP_MAX_SYNC_CERT_FILE_SECONDS_DEFAULT: u32 = 3600; +pub const CRYPTNET_MAX_CACHED_OCSP_PER_CRL_COUNT_VALUE_NAME: &[u8; 33] = + b"CryptnetMaxCachedOcspPerCrlCount\0"; +pub const CRYPTNET_MAX_CACHED_OCSP_PER_CRL_COUNT_DEFAULT: u32 = 500; +pub const CRYPTNET_OCSP_AFTER_CRL_DISABLE: u32 = 4294967295; +pub const CRYPTNET_URL_CACHE_DEFAULT_FLUSH_EXEMPT_SECONDS_VALUE_NAME: &[u8; 34] = + b"CryptnetDefaultFlushExemptSeconds\0"; +pub const CRYPTNET_URL_CACHE_DEFAULT_FLUSH_EXEMPT_SECONDS_DEFAULT: u32 = 2419200; +pub const CRYPTNET_PRE_FETCH_MIN_MAX_AGE_SECONDS_VALUE_NAME: &[u8; 33] = + b"CryptnetPreFetchMinMaxAgeSeconds\0"; +pub const CRYPTNET_PRE_FETCH_MIN_MAX_AGE_SECONDS_DEFAULT: u32 = 3600; +pub const CRYPTNET_PRE_FETCH_MAX_MAX_AGE_SECONDS_VALUE_NAME: &[u8; 33] = + b"CryptnetPreFetchMaxMaxAgeSeconds\0"; +pub const CRYPTNET_PRE_FETCH_MAX_MAX_AGE_SECONDS_DEFAULT: u32 = 1209600; +pub const CRYPTNET_PRE_FETCH_MIN_OCSP_VALIDITY_PERIOD_SECONDS_VALUE_NAME: &[u8; 45] = + b"CryptnetPreFetchMinOcspValidityPeriodSeconds\0"; +pub const CRYPTNET_PRE_FETCH_MIN_OCSP_VALIDITY_PERIOD_SECONDS_DEFAULT: u32 = 1209600; +pub const CRYPTNET_PRE_FETCH_AFTER_PUBLISH_PRE_FETCH_DIVISOR_VALUE_NAME: &[u8; 44] = + b"CryptnetPreFetchAfterPublishPreFetchDivisor\0"; +pub const CRYPTNET_PRE_FETCH_AFTER_PUBLISH_PRE_FETCH_DIVISOR_DEFAULT: u32 = 10; +pub const CRYPTNET_PRE_FETCH_BEFORE_NEXT_UPDATE_PRE_FETCH_DIVISOR_VALUE_NAME: &[u8; 48] = + b"CryptnetPreFetchBeforeNextUpdatePreFetchDivisor\0"; +pub const CRYPTNET_PRE_FETCH_BEFORE_NEXT_UPDATE_PRE_FETCH_DIVISOR_DEFAULT: u32 = 20; +pub const CRYPTNET_PRE_FETCH_MIN_BEFORE_NEXT_UPDATE_PRE_FETCH_PERIOD_SECONDS_VALUE_NAME: &[u8; 51] = + b"CryptnetPreFetchMinBeforeNextUpdatePreFetchSeconds\0"; +pub const CRYPTNET_PRE_FETCH_MIN_BEFORE_NEXT_UPDATE_PRE_FETCH_PERIOD_SECONDS_DEFAULT: u32 = 3600; +pub const CRYPTNET_PRE_FETCH_VALIDITY_PERIOD_AFTER_NEXT_UPDATE_PRE_FETCH_DIVISOR_VALUE_NAME: + &[u8; 61] = b"CryptnetPreFetchValidityPeriodAfterNextUpdatePreFetchDivisor\0"; +pub const CRYPTNET_PRE_FETCH_VALIDITY_PERIOD_AFTER_NEXT_UPDATE_PRE_FETCH_DIVISOR_DEFAULT: u32 = 10; +pub const CRYPTNET_PRE_FETCH_MAX_AFTER_NEXT_UPDATE_PRE_FETCH_PERIOD_SECONDS_VALUE_NAME: &[u8; 56] = + b"CryptnetPreFetchMaxAfterNextUpdatePreFetchPeriodSeconds\0"; +pub const CRYPTNET_PRE_FETCH_MAX_AFTER_NEXT_UPDATE_PRE_FETCH_PERIOD_SECONDS_DEFAULT: u32 = 14400; +pub const CRYPTNET_PRE_FETCH_MIN_AFTER_NEXT_UPDATE_PRE_FETCH_PERIOD_SECONDS_VALUE_NAME: &[u8; 56] = + b"CryptnetPreFetchMinAfterNextUpdatePreFetchPeriodSeconds\0"; +pub const CRYPTNET_PRE_FETCH_MIN_AFTER_NEXT_UPDATE_PRE_FETCH_PERIOD_SECONDS_DEFAULT: u32 = 1800; +pub const CRYPTNET_PRE_FETCH_AFTER_CURRENT_TIME_PRE_FETCH_PERIOD_SECONDS_VALUE_NAME: &[u8; 54] = + b"CryptnetPreFetchAfterCurrentTimePreFetchPeriodSeconds\0"; +pub const CRYPTNET_PRE_FETCH_AFTER_CURRENT_TIME_PRE_FETCH_PERIOD_SECONDS_DEFAULT: u32 = 1800; +pub const CRYPTNET_PRE_FETCH_TRIGGER_PERIOD_SECONDS_VALUE_NAME: &[u8; 37] = + b"CryptnetPreFetchTriggerPeriodSeconds\0"; +pub const CRYPTNET_PRE_FETCH_TRIGGER_PERIOD_SECONDS_DEFAULT: u32 = 600; +pub const CRYPTNET_PRE_FETCH_TRIGGER_DISABLE: u32 = 4294967295; +pub const CRYPTNET_PRE_FETCH_SCAN_AFTER_TRIGGER_DELAY_SECONDS_VALUE_NAME: &[u8; 45] = + b"CryptnetPreFetchScanAfterTriggerDelaySeconds\0"; +pub const CRYPTNET_PRE_FETCH_SCAN_AFTER_TRIGGER_DELAY_SECONDS_DEFAULT: u32 = 60; +pub const CRYPTNET_PRE_FETCH_RETRIEVAL_TIMEOUT_SECONDS_VALUE_NAME: &[u8; 40] = + b"CryptnetPreFetchRetrievalTimeoutSeconds\0"; +pub const CRYPTNET_PRE_FETCH_RETRIEVAL_TIMEOUT_SECONDS_DEFAULT: u32 = 300; +pub const CRYPTNET_CRL_PRE_FETCH_CONFIG_REGPATH : & [u8 ; 106] = b"Software\\Microsoft\\Cryptography\\OID\\EncodingType 0\\CertDllCreateCertificateChainEngine\\Config\\CrlPreFetch\0" ; +pub const CRYPTNET_CRL_PRE_FETCH_PROCESS_NAME_LIST_VALUE_NAME: &[u8; 16] = b"ProcessNameList\0"; +pub const CRYPTNET_CRL_PRE_FETCH_URL_LIST_VALUE_NAME: &[u8; 16] = b"PreFetchUrlList\0"; +pub const CRYPTNET_CRL_PRE_FETCH_DISABLE_INFORMATION_EVENTS_VALUE_NAME: &[u8; 25] = + b"DisableInformationEvents\0"; +pub const CRYPTNET_CRL_PRE_FETCH_LOG_FILE_NAME_VALUE_NAME: &[u8; 12] = b"LogFileName\0"; +pub const CRYPTNET_CRL_PRE_FETCH_TIMEOUT_SECONDS_VALUE_NAME: &[u8; 15] = b"TimeoutSeconds\0"; +pub const CRYPTNET_CRL_PRE_FETCH_TIMEOUT_SECONDS_DEFAULT: u32 = 300; +pub const CRYPTNET_CRL_PRE_FETCH_MAX_AGE_SECONDS_VALUE_NAME: &[u8; 14] = b"MaxAgeSeconds\0"; +pub const CRYPTNET_CRL_PRE_FETCH_MAX_AGE_SECONDS_DEFAULT: u32 = 7200; +pub const CRYPTNET_CRL_PRE_FETCH_MAX_AGE_SECONDS_MIN: u32 = 300; +pub const CRYPTNET_CRL_PRE_FETCH_PUBLISH_BEFORE_NEXT_UPDATE_SECONDS_VALUE_NAME: &[u8; 31] = + b"PublishBeforeNextUpdateSeconds\0"; +pub const CRYPTNET_CRL_PRE_FETCH_PUBLISH_BEFORE_NEXT_UPDATE_SECONDS_DEFAULT: u32 = 3600; +pub const CRYPTNET_CRL_PRE_FETCH_PUBLISH_RANDOM_INTERVAL_SECONDS_VALUE_NAME: &[u8; 29] = + b"PublishRandomIntervalSeconds\0"; +pub const CRYPTNET_CRL_PRE_FETCH_PUBLISH_RANDOM_INTERVAL_SECONDS_DEFAULT: u32 = 300; +pub const CRYPTNET_CRL_PRE_FETCH_MIN_BEFORE_NEXT_UPDATE_SECONDS_VALUE_NAME: &[u8; 27] = + b"MinBeforeNextUpdateSeconds\0"; +pub const CRYPTNET_CRL_PRE_FETCH_MIN_BEFORE_NEXT_UPDATE_SECONDS_DEFAULT: u32 = 300; +pub const CRYPTNET_CRL_PRE_FETCH_MIN_AFTER_NEXT_UPDATE_SECONDS_VALUE_NAME: &[u8; 26] = + b"MinAfterNextUpdateSeconds\0"; +pub const CRYPTNET_CRL_PRE_FETCH_MIN_AFTER_NEXT_UPDATE_SECONDS_DEFAULT: u32 = 300; +pub const CERT_GROUP_POLICY_CHAIN_CONFIG_REGPATH: &[u8; 66] = + b"Software\\Policies\\Microsoft\\SystemCertificates\\ChainEngine\\Config\0"; +pub const CERT_CHAIN_URL_RETRIEVAL_TIMEOUT_MILLISECONDS_VALUE_NAME: &[u8; 37] = + b"ChainUrlRetrievalTimeoutMilliseconds\0"; +pub const CERT_CHAIN_URL_RETRIEVAL_TIMEOUT_MILLISECONDS_DEFAULT: u32 = 15000; +pub const CERT_CHAIN_REV_ACCUMULATIVE_URL_RETRIEVAL_TIMEOUT_MILLISECONDS_VALUE_NAME: &[u8; 52] = + b"ChainRevAccumulativeUrlRetrievalTimeoutMilliseconds\0"; +pub const CERT_CHAIN_REV_ACCUMULATIVE_URL_RETRIEVAL_TIMEOUT_MILLISECONDS_DEFAULT: u32 = 20000; +pub const CERT_RETR_BEHAVIOR_INET_AUTH_VALUE_NAME: &[u8; 22] = b"EnableInetUnknownAuth\0"; +pub const CERT_RETR_BEHAVIOR_INET_STATUS_VALUE_NAME: &[u8; 16] = b"EnableInetLocal\0"; +pub const CERT_RETR_BEHAVIOR_FILE_VALUE_NAME: &[u8; 19] = b"AllowFileUrlScheme\0"; +pub const CERT_RETR_BEHAVIOR_LDAP_VALUE_NAME: &[u8; 26] = b"DisableLDAPSignAndEncrypt\0"; +pub const CRYPTNET_CACHED_OCSP_SWITCH_TO_CRL_COUNT_VALUE_NAME: &[u8; 35] = + b"CryptnetCachedOcspSwitchToCrlCount\0"; +pub const CRYPTNET_CACHED_OCSP_SWITCH_TO_CRL_COUNT_DEFAULT: u32 = 50; +pub const CRYPTNET_CRL_BEFORE_OCSP_ENABLE: u32 = 4294967295; +pub const CERT_CHAIN_DISABLE_AIA_URL_RETRIEVAL_VALUE_NAME: &[u8; 23] = b"DisableAIAUrlRetrieval\0"; +pub const CERT_CHAIN_OPTIONS_VALUE_NAME: &[u8; 8] = b"Options\0"; +pub const CERT_CHAIN_OPTION_DISABLE_AIA_URL_RETRIEVAL: u32 = 2; +pub const CERT_CHAIN_OPTION_ENABLE_SIA_URL_RETRIEVAL: u32 = 4; +pub const CERT_CHAIN_CROSS_CERT_DOWNLOAD_INTERVAL_HOURS_VALUE_NAME: &[u8; 31] = + b"CrossCertDownloadIntervalHours\0"; +pub const CERT_CHAIN_CROSS_CERT_DOWNLOAD_INTERVAL_HOURS_DEFAULT: u32 = 168; +pub const CERT_CHAIN_CRL_VALIDITY_EXT_PERIOD_HOURS_VALUE_NAME: &[u8; 27] = + b"CRLValidityExtensionPeriod\0"; +pub const CERT_CHAIN_CRL_VALIDITY_EXT_PERIOD_HOURS_DEFAULT: u32 = 12; +pub const CERT_CHAIN_CACHE_END_CERT: u32 = 1; +pub const CERT_CHAIN_THREAD_STORE_SYNC: u32 = 2; +pub const CERT_CHAIN_CACHE_ONLY_URL_RETRIEVAL: u32 = 4; +pub const CERT_CHAIN_USE_LOCAL_MACHINE_STORE: u32 = 8; +pub const CERT_CHAIN_ENABLE_CACHE_AUTO_UPDATE: u32 = 16; +pub const CERT_CHAIN_ENABLE_SHARE_STORE: u32 = 32; +pub const CERT_CHAIN_EXCLUSIVE_ENABLE_CA_FLAG: u32 = 1; +pub const CERT_TRUST_NO_ERROR: u32 = 0; +pub const CERT_TRUST_IS_NOT_TIME_VALID: u32 = 1; +pub const CERT_TRUST_IS_NOT_TIME_NESTED: u32 = 2; +pub const CERT_TRUST_IS_REVOKED: u32 = 4; +pub const CERT_TRUST_IS_NOT_SIGNATURE_VALID: u32 = 8; +pub const CERT_TRUST_IS_NOT_VALID_FOR_USAGE: u32 = 16; +pub const CERT_TRUST_IS_UNTRUSTED_ROOT: u32 = 32; +pub const CERT_TRUST_REVOCATION_STATUS_UNKNOWN: u32 = 64; +pub const CERT_TRUST_IS_CYCLIC: u32 = 128; +pub const CERT_TRUST_INVALID_EXTENSION: u32 = 256; +pub const CERT_TRUST_INVALID_POLICY_CONSTRAINTS: u32 = 512; +pub const CERT_TRUST_INVALID_BASIC_CONSTRAINTS: u32 = 1024; +pub const CERT_TRUST_INVALID_NAME_CONSTRAINTS: u32 = 2048; +pub const CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT: u32 = 4096; +pub const CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT: u32 = 8192; +pub const CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT: u32 = 16384; +pub const CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT: u32 = 32768; +pub const CERT_TRUST_IS_OFFLINE_REVOCATION: u32 = 16777216; +pub const CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY: u32 = 33554432; +pub const CERT_TRUST_IS_EXPLICIT_DISTRUST: u32 = 67108864; +pub const CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT: u32 = 134217728; +pub const CERT_TRUST_HAS_WEAK_SIGNATURE: u32 = 1048576; +pub const CERT_TRUST_HAS_WEAK_HYGIENE: u32 = 2097152; +pub const CERT_TRUST_IS_PARTIAL_CHAIN: u32 = 65536; +pub const CERT_TRUST_CTL_IS_NOT_TIME_VALID: u32 = 131072; +pub const CERT_TRUST_CTL_IS_NOT_SIGNATURE_VALID: u32 = 262144; +pub const CERT_TRUST_CTL_IS_NOT_VALID_FOR_USAGE: u32 = 524288; +pub const CERT_TRUST_HAS_EXACT_MATCH_ISSUER: u32 = 1; +pub const CERT_TRUST_HAS_KEY_MATCH_ISSUER: u32 = 2; +pub const CERT_TRUST_HAS_NAME_MATCH_ISSUER: u32 = 4; +pub const CERT_TRUST_IS_SELF_SIGNED: u32 = 8; +pub const CERT_TRUST_AUTO_UPDATE_CA_REVOCATION: u32 = 16; +pub const CERT_TRUST_AUTO_UPDATE_END_REVOCATION: u32 = 32; +pub const CERT_TRUST_NO_OCSP_FAILOVER_TO_CRL: u32 = 64; +pub const CERT_TRUST_IS_KEY_ROLLOVER: u32 = 128; +pub const CERT_TRUST_SSL_HANDSHAKE_OCSP: u32 = 262144; +pub const CERT_TRUST_SSL_TIME_VALID_OCSP: u32 = 524288; +pub const CERT_TRUST_SSL_RECONNECT_OCSP: u32 = 1048576; +pub const CERT_TRUST_HAS_PREFERRED_ISSUER: u32 = 256; +pub const CERT_TRUST_HAS_ISSUANCE_CHAIN_POLICY: u32 = 512; +pub const CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS: u32 = 1024; +pub const CERT_TRUST_IS_PEER_TRUSTED: u32 = 2048; +pub const CERT_TRUST_HAS_CRL_VALIDITY_EXTENDED: u32 = 4096; +pub const CERT_TRUST_IS_FROM_EXCLUSIVE_TRUST_STORE: u32 = 8192; +pub const CERT_TRUST_IS_CA_TRUSTED: u32 = 16384; +pub const CERT_TRUST_HAS_AUTO_UPDATE_WEAK_SIGNATURE: u32 = 32768; +pub const CERT_TRUST_HAS_ALLOW_WEAK_SIGNATURE: u32 = 131072; +pub const CERT_TRUST_BEFORE_DISALLOWED_CA_FILETIME: u32 = 2097152; +pub const CERT_TRUST_IS_COMPLEX_CHAIN: u32 = 65536; +pub const CERT_TRUST_SSL_TIME_VALID: u32 = 16777216; +pub const CERT_TRUST_NO_TIME_CHECK: u32 = 33554432; +pub const USAGE_MATCH_TYPE_AND: u32 = 0; +pub const USAGE_MATCH_TYPE_OR: u32 = 1; +pub const CERT_CHAIN_STRONG_SIGN_DISABLE_END_CHECK_FLAG: u32 = 1; +pub const CERT_CHAIN_REVOCATION_CHECK_END_CERT: u32 = 268435456; +pub const CERT_CHAIN_REVOCATION_CHECK_CHAIN: u32 = 536870912; +pub const CERT_CHAIN_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT: u32 = 1073741824; +pub const CERT_CHAIN_REVOCATION_CHECK_CACHE_ONLY: u32 = 2147483648; +pub const CERT_CHAIN_REVOCATION_ACCUMULATIVE_TIMEOUT: u32 = 134217728; +pub const CERT_CHAIN_REVOCATION_CHECK_OCSP_CERT: u32 = 67108864; +pub const CERT_CHAIN_DISABLE_PASS1_QUALITY_FILTERING: u32 = 64; +pub const CERT_CHAIN_RETURN_LOWER_QUALITY_CONTEXTS: u32 = 128; +pub const CERT_CHAIN_DISABLE_AUTH_ROOT_AUTO_UPDATE: u32 = 256; +pub const CERT_CHAIN_TIMESTAMP_TIME: u32 = 512; +pub const CERT_CHAIN_ENABLE_PEER_TRUST: u32 = 1024; +pub const CERT_CHAIN_DISABLE_MY_PEER_TRUST: u32 = 2048; +pub const CERT_CHAIN_DISABLE_MD2_MD4: u32 = 4096; +pub const CERT_CHAIN_DISABLE_AIA: u32 = 8192; +pub const CERT_CHAIN_HAS_MOTW: u32 = 16384; +pub const CERT_CHAIN_ONLY_ADDITIONAL_AND_AUTH_ROOT: u32 = 32768; +pub const CERT_CHAIN_OPT_IN_WEAK_SIGNATURE: u32 = 65536; +pub const CERT_CHAIN_ENABLE_DISALLOWED_CA: u32 = 131072; +pub const CERT_CHAIN_FIND_BY_ISSUER: u32 = 1; +pub const CERT_CHAIN_FIND_BY_ISSUER_COMPARE_KEY_FLAG: u32 = 1; +pub const CERT_CHAIN_FIND_BY_ISSUER_COMPLEX_CHAIN_FLAG: u32 = 2; +pub const CERT_CHAIN_FIND_BY_ISSUER_CACHE_ONLY_URL_FLAG: u32 = 4; +pub const CERT_CHAIN_FIND_BY_ISSUER_LOCAL_MACHINE_FLAG: u32 = 8; +pub const CERT_CHAIN_FIND_BY_ISSUER_NO_KEY_FLAG: u32 = 16384; +pub const CERT_CHAIN_FIND_BY_ISSUER_CACHE_ONLY_FLAG: u32 = 32768; +pub const CERT_CHAIN_POLICY_IGNORE_NOT_TIME_VALID_FLAG: u32 = 1; +pub const CERT_CHAIN_POLICY_IGNORE_CTL_NOT_TIME_VALID_FLAG: u32 = 2; +pub const CERT_CHAIN_POLICY_IGNORE_NOT_TIME_NESTED_FLAG: u32 = 4; +pub const CERT_CHAIN_POLICY_IGNORE_INVALID_BASIC_CONSTRAINTS_FLAG: u32 = 8; +pub const CERT_CHAIN_POLICY_IGNORE_ALL_NOT_TIME_VALID_FLAGS: u32 = 7; +pub const CERT_CHAIN_POLICY_ALLOW_UNKNOWN_CA_FLAG: u32 = 16; +pub const CERT_CHAIN_POLICY_IGNORE_WRONG_USAGE_FLAG: u32 = 32; +pub const CERT_CHAIN_POLICY_IGNORE_INVALID_NAME_FLAG: u32 = 64; +pub const CERT_CHAIN_POLICY_IGNORE_INVALID_POLICY_FLAG: u32 = 128; +pub const CERT_CHAIN_POLICY_IGNORE_END_REV_UNKNOWN_FLAG: u32 = 256; +pub const CERT_CHAIN_POLICY_IGNORE_CTL_SIGNER_REV_UNKNOWN_FLAG: u32 = 512; +pub const CERT_CHAIN_POLICY_IGNORE_CA_REV_UNKNOWN_FLAG: u32 = 1024; +pub const CERT_CHAIN_POLICY_IGNORE_ROOT_REV_UNKNOWN_FLAG: u32 = 2048; +pub const CERT_CHAIN_POLICY_IGNORE_ALL_REV_UNKNOWN_FLAGS: u32 = 3840; +pub const CERT_CHAIN_POLICY_ALLOW_TESTROOT_FLAG: u32 = 32768; +pub const CERT_CHAIN_POLICY_TRUST_TESTROOT_FLAG: u32 = 16384; +pub const CERT_CHAIN_POLICY_IGNORE_NOT_SUPPORTED_CRITICAL_EXT_FLAG: u32 = 8192; +pub const CERT_CHAIN_POLICY_IGNORE_PEER_TRUST_FLAG: u32 = 4096; +pub const CERT_CHAIN_POLICY_IGNORE_WEAK_SIGNATURE_FLAG: u32 = 134217728; +pub const CRYPT_OID_VERIFY_CERTIFICATE_CHAIN_POLICY_FUNC: &[u8; 36] = + b"CertDllVerifyCertificateChainPolicy\0"; +pub const AUTHTYPE_CLIENT: u32 = 1; +pub const AUTHTYPE_SERVER: u32 = 2; +pub const BASIC_CONSTRAINTS_CERT_CHAIN_POLICY_CA_FLAG: u32 = 2147483648; +pub const BASIC_CONSTRAINTS_CERT_CHAIN_POLICY_END_ENTITY_FLAG: u32 = 1073741824; +pub const MICROSOFT_ROOT_CERT_CHAIN_POLICY_ENABLE_TEST_ROOT_FLAG: u32 = 65536; +pub const MICROSOFT_ROOT_CERT_CHAIN_POLICY_CHECK_APPLICATION_ROOT_FLAG: u32 = 131072; +pub const MICROSOFT_ROOT_CERT_CHAIN_POLICY_DISABLE_FLIGHT_ROOT_FLAG: u32 = 262144; +pub const SSL_F12_ERROR_TEXT_LENGTH: u32 = 256; +pub const CERT_CHAIN_POLICY_SSL_F12_SUCCESS_LEVEL: u32 = 0; +pub const CERT_CHAIN_POLICY_SSL_F12_WARNING_LEVEL: u32 = 1; +pub const CERT_CHAIN_POLICY_SSL_F12_ERROR_LEVEL: u32 = 2; +pub const CERT_CHAIN_POLICY_SSL_F12_NONE_CATEGORY: u32 = 0; +pub const CERT_CHAIN_POLICY_SSL_F12_WEAK_CRYPTO_CATEGORY: u32 = 1; +pub const CERT_CHAIN_POLICY_SSL_F12_ROOT_PROGRAM_CATEGORY: u32 = 2; +pub const SSL_HPKP_PKP_HEADER_INDEX: u32 = 0; +pub const SSL_HPKP_PKP_RO_HEADER_INDEX: u32 = 1; +pub const SSL_HPKP_HEADER_COUNT: u32 = 2; +pub const SSL_KEY_PIN_ERROR_TEXT_LENGTH: u32 = 512; +pub const CERT_CHAIN_POLICY_SSL_KEY_PIN_MISMATCH_ERROR: i32 = -2; +pub const CERT_CHAIN_POLICY_SSL_KEY_PIN_MITM_ERROR: i32 = -1; +pub const CERT_CHAIN_POLICY_SSL_KEY_PIN_SUCCESS: u32 = 0; +pub const CERT_CHAIN_POLICY_SSL_KEY_PIN_MITM_WARNING: u32 = 1; +pub const CERT_CHAIN_POLICY_SSL_KEY_PIN_MISMATCH_WARNING: u32 = 2; +pub const CRYPT_STRING_BASE64HEADER: u32 = 0; +pub const CRYPT_STRING_BASE64: u32 = 1; +pub const CRYPT_STRING_BINARY: u32 = 2; +pub const CRYPT_STRING_BASE64REQUESTHEADER: u32 = 3; +pub const CRYPT_STRING_HEX: u32 = 4; +pub const CRYPT_STRING_HEXASCII: u32 = 5; +pub const CRYPT_STRING_BASE64_ANY: u32 = 6; +pub const CRYPT_STRING_ANY: u32 = 7; +pub const CRYPT_STRING_HEX_ANY: u32 = 8; +pub const CRYPT_STRING_BASE64X509CRLHEADER: u32 = 9; +pub const CRYPT_STRING_HEXADDR: u32 = 10; +pub const CRYPT_STRING_HEXASCIIADDR: u32 = 11; +pub const CRYPT_STRING_HEXRAW: u32 = 12; +pub const CRYPT_STRING_BASE64URI: u32 = 13; +pub const CRYPT_STRING_ENCODEMASK: u32 = 255; +pub const CRYPT_STRING_RESERVED100: u32 = 256; +pub const CRYPT_STRING_RESERVED200: u32 = 512; +pub const CRYPT_STRING_PERCENTESCAPE: u32 = 134217728; +pub const CRYPT_STRING_HASHDATA: u32 = 268435456; +pub const CRYPT_STRING_STRICT: u32 = 536870912; +pub const CRYPT_STRING_NOCRLF: u32 = 1073741824; +pub const CRYPT_STRING_NOCR: u32 = 2147483648; +pub const szOID_PKCS_12_PbeIds: &[u8; 22] = b"1.2.840.113549.1.12.1\0"; +pub const szOID_PKCS_12_pbeWithSHA1And128BitRC4: &[u8; 24] = b"1.2.840.113549.1.12.1.1\0"; +pub const szOID_PKCS_12_pbeWithSHA1And40BitRC4: &[u8; 24] = b"1.2.840.113549.1.12.1.2\0"; +pub const szOID_PKCS_12_pbeWithSHA1And3KeyTripleDES: &[u8; 24] = b"1.2.840.113549.1.12.1.3\0"; +pub const szOID_PKCS_12_pbeWithSHA1And2KeyTripleDES: &[u8; 24] = b"1.2.840.113549.1.12.1.4\0"; +pub const szOID_PKCS_12_pbeWithSHA1And128BitRC2: &[u8; 24] = b"1.2.840.113549.1.12.1.5\0"; +pub const szOID_PKCS_12_pbeWithSHA1And40BitRC2: &[u8; 24] = b"1.2.840.113549.1.12.1.6\0"; +pub const szOID_PKCS_5_PBKDF2: &[u8; 22] = b"1.2.840.113549.1.5.12\0"; +pub const szOID_PKCS_5_PBES2: &[u8; 22] = b"1.2.840.113549.1.5.13\0"; +pub const PKCS12_IMPORT_SILENT: u32 = 64; +pub const CRYPT_USER_KEYSET: u32 = 4096; +pub const PKCS12_PREFER_CNG_KSP: u32 = 256; +pub const PKCS12_ALWAYS_CNG_KSP: u32 = 512; +pub const PKCS12_ONLY_CERTIFICATES: u32 = 1024; +pub const PKCS12_ONLY_NOT_ENCRYPTED_CERTIFICATES: u32 = 2048; +pub const PKCS12_ALLOW_OVERWRITE_KEY: u32 = 16384; +pub const PKCS12_NO_PERSIST_KEY: u32 = 32768; +pub const PKCS12_VIRTUAL_ISOLATION_KEY: u32 = 65536; +pub const PKCS12_IMPORT_RESERVED_MASK: u32 = 4294901760; +pub const PKCS12_ONLY_CERTIFICATES_PROVIDER_TYPE: u32 = 0; +pub const PKCS12_ONLY_CERTIFICATES_PROVIDER_NAME: &[u8; 12] = b"PfxProvider\0"; +pub const PKCS12_ONLY_CERTIFICATES_CONTAINER_NAME: &[u8; 13] = b"PfxContainer\0"; +pub const REPORT_NO_PRIVATE_KEY: u32 = 1; +pub const REPORT_NOT_ABLE_TO_EXPORT_PRIVATE_KEY: u32 = 2; +pub const EXPORT_PRIVATE_KEYS: u32 = 4; +pub const PKCS12_INCLUDE_EXTENDED_PROPERTIES: u32 = 16; +pub const PKCS12_PROTECT_TO_DOMAIN_SIDS: u32 = 32; +pub const PKCS12_EXPORT_SILENT: u32 = 64; +pub const PKCS12_EXPORT_PBES2_PARAMS: u32 = 128; +pub const PKCS12_DISABLE_ENCRYPT_CERTIFICATES: u32 = 256; +pub const PKCS12_ENCRYPT_CERTIFICATES: u32 = 512; +pub const PKCS12_EXPORT_ECC_CURVE_PARAMETERS: u32 = 4096; +pub const PKCS12_EXPORT_ECC_CURVE_OID: u32 = 8192; +pub const PKCS12_EXPORT_RESERVED_MASK: u32 = 4294901760; +pub const PKCS12_PBKDF2_ID_HMAC_SHA1: &[u8; 19] = b"1.2.840.113549.2.7\0"; +pub const PKCS12_PBKDF2_ID_HMAC_SHA256: &[u8; 19] = b"1.2.840.113549.2.9\0"; +pub const PKCS12_PBKDF2_ID_HMAC_SHA384: &[u8; 20] = b"1.2.840.113549.2.10\0"; +pub const PKCS12_PBKDF2_ID_HMAC_SHA512: &[u8; 20] = b"1.2.840.113549.2.11\0"; +pub const PKCS12_PBES2_ALG_AES256_SHA256: &[u8; 14] = b"AES256-SHA256\0"; +pub const PKCS12_CONFIG_REGPATH: &[u8; 46] = b"Software\\Microsoft\\Windows\\CurrentVersion\\PFX\0"; +pub const PKCS12_ENCRYPT_CERTIFICATES_VALUE_NAME: &[u8; 20] = b"EncryptCertificates\0"; +pub const CERT_SERVER_OCSP_RESPONSE_OPEN_PARA_READ_FLAG: u32 = 1; +pub const CERT_SERVER_OCSP_RESPONSE_OPEN_PARA_WRITE_FLAG: u32 = 2; +pub const CERT_SERVER_OCSP_RESPONSE_ASYNC_FLAG: u32 = 1; +pub const CERT_SELECT_MAX_PARA: u32 = 500; +pub const CERT_SELECT_BY_ENHKEY_USAGE: u32 = 1; +pub const CERT_SELECT_BY_KEY_USAGE: u32 = 2; +pub const CERT_SELECT_BY_POLICY_OID: u32 = 3; +pub const CERT_SELECT_BY_PROV_NAME: u32 = 4; +pub const CERT_SELECT_BY_EXTENSION: u32 = 5; +pub const CERT_SELECT_BY_SUBJECT_HOST_NAME: u32 = 6; +pub const CERT_SELECT_BY_ISSUER_ATTR: u32 = 7; +pub const CERT_SELECT_BY_SUBJECT_ATTR: u32 = 8; +pub const CERT_SELECT_BY_ISSUER_NAME: u32 = 9; +pub const CERT_SELECT_BY_PUBLIC_KEY: u32 = 10; +pub const CERT_SELECT_BY_TLS_SIGNATURES: u32 = 11; +pub const CERT_SELECT_BY_ISSUER_DISPLAYNAME: u32 = 12; +pub const CERT_SELECT_BY_FRIENDLYNAME: u32 = 13; +pub const CERT_SELECT_BY_THUMBPRINT: u32 = 14; +pub const CERT_SELECT_LAST: u32 = 11; +pub const CERT_SELECT_MAX: u32 = 33; +pub const CERT_SELECT_ALLOW_EXPIRED: u32 = 1; +pub const CERT_SELECT_TRUSTED_ROOT: u32 = 2; +pub const CERT_SELECT_DISALLOW_SELFSIGNED: u32 = 4; +pub const CERT_SELECT_HAS_PRIVATE_KEY: u32 = 8; +pub const CERT_SELECT_HAS_KEY_FOR_SIGNATURE: u32 = 16; +pub const CERT_SELECT_HAS_KEY_FOR_KEY_EXCHANGE: u32 = 32; +pub const CERT_SELECT_HARDWARE_ONLY: u32 = 64; +pub const CERT_SELECT_ALLOW_DUPLICATES: u32 = 128; +pub const CERT_SELECT_IGNORE_AUTOSELECT: u32 = 256; +pub const TIMESTAMP_VERSION: u32 = 1; +pub const TIMESTAMP_STATUS_GRANTED: u32 = 0; +pub const TIMESTAMP_STATUS_GRANTED_WITH_MODS: u32 = 1; +pub const TIMESTAMP_STATUS_REJECTED: u32 = 2; +pub const TIMESTAMP_STATUS_WAITING: u32 = 3; +pub const TIMESTAMP_STATUS_REVOCATION_WARNING: u32 = 4; +pub const TIMESTAMP_STATUS_REVOKED: u32 = 5; +pub const TIMESTAMP_FAILURE_BAD_ALG: u32 = 0; +pub const TIMESTAMP_FAILURE_BAD_REQUEST: u32 = 2; +pub const TIMESTAMP_FAILURE_BAD_FORMAT: u32 = 5; +pub const TIMESTAMP_FAILURE_TIME_NOT_AVAILABLE: u32 = 14; +pub const TIMESTAMP_FAILURE_POLICY_NOT_SUPPORTED: u32 = 15; +pub const TIMESTAMP_FAILURE_EXTENSION_NOT_SUPPORTED: u32 = 16; +pub const TIMESTAMP_FAILURE_INFO_NOT_AVAILABLE: u32 = 17; +pub const TIMESTAMP_FAILURE_SYSTEM_FAILURE: u32 = 25; +pub const TIMESTAMP_DONT_HASH_DATA: u32 = 1; +pub const TIMESTAMP_VERIFY_CONTEXT_SIGNATURE: u32 = 32; +pub const TIMESTAMP_NO_AUTH_RETRIEVAL: u32 = 131072; +pub const CRYPT_OBJECT_LOCATOR_SPN_NAME_TYPE: u32 = 1; +pub const CRYPT_OBJECT_LOCATOR_LAST_RESERVED_NAME_TYPE: u32 = 32; +pub const CRYPT_OBJECT_LOCATOR_FIRST_RESERVED_USER_NAME_TYPE: u32 = 33; +pub const CRYPT_OBJECT_LOCATOR_LAST_RESERVED_USER_NAME_TYPE: u32 = 65535; +pub const SSL_OBJECT_LOCATOR_PFX_FUNC: &[u8; 30] = b"SslObjectLocatorInitializePfx\0"; +pub const SSL_OBJECT_LOCATOR_ISSUER_LIST_FUNC: &[u8; 37] = + b"SslObjectLocatorInitializeIssuerList\0"; +pub const SSL_OBJECT_LOCATOR_CERT_VALIDATION_CONFIG_FUNC: &[u8; 47] = + b"SslObjectLocatorInitializeCertValidationConfig\0"; +pub const CRYPT_OBJECT_LOCATOR_RELEASE_SYSTEM_SHUTDOWN: u32 = 1; +pub const CRYPT_OBJECT_LOCATOR_RELEASE_SERVICE_STOP: u32 = 2; +pub const CRYPT_OBJECT_LOCATOR_RELEASE_PROCESS_EXIT: u32 = 3; +pub const CRYPT_OBJECT_LOCATOR_RELEASE_DLL_UNLOAD: u32 = 4; +pub const CERT_FILE_HASH_USE_TYPE: u32 = 1; +pub const CERT_TIMESTAMP_HASH_USE_TYPE: u32 = 2; +pub const szFORCE_KEY_PROTECTION: &[u8; 19] = b"ForceKeyProtection\0"; +pub const dwFORCE_KEY_PROTECTION_DISABLED: u32 = 0; +pub const dwFORCE_KEY_PROTECTION_USER_SELECT: u32 = 1; +pub const dwFORCE_KEY_PROTECTION_HIGH: u32 = 2; +pub const CRYPTPROTECT_PROMPT_ON_UNPROTECT: u32 = 1; +pub const CRYPTPROTECT_PROMPT_ON_PROTECT: u32 = 2; +pub const CRYPTPROTECT_PROMPT_RESERVED: u32 = 4; +pub const CRYPTPROTECT_PROMPT_STRONG: u32 = 8; +pub const CRYPTPROTECT_PROMPT_REQUIRE_STRONG: u32 = 16; +pub const CRYPTPROTECT_UI_FORBIDDEN: u32 = 1; +pub const CRYPTPROTECT_LOCAL_MACHINE: u32 = 4; +pub const CRYPTPROTECT_CRED_SYNC: u32 = 8; +pub const CRYPTPROTECT_AUDIT: u32 = 16; +pub const CRYPTPROTECT_NO_RECOVERY: u32 = 32; +pub const CRYPTPROTECT_VERIFY_PROTECTION: u32 = 64; +pub const CRYPTPROTECT_CRED_REGENERATE: u32 = 128; +pub const CRYPTPROTECT_FIRST_RESERVED_FLAGVAL: u32 = 268435455; +pub const CRYPTPROTECT_LAST_RESERVED_FLAGVAL: u32 = 4294967295; +pub const CRYPTPROTECTMEMORY_BLOCK_SIZE: u32 = 16; +pub const CRYPTPROTECTMEMORY_SAME_PROCESS: u32 = 0; +pub const CRYPTPROTECTMEMORY_CROSS_PROCESS: u32 = 1; +pub const CRYPTPROTECTMEMORY_SAME_LOGON: u32 = 2; +pub const WINEFS_SETUSERKEY_SET_CAPABILITIES: u32 = 1; +pub const EFS_COMPATIBILITY_VERSION_NCRYPT_PROTECTOR: u32 = 5; +pub const EFS_COMPATIBILITY_VERSION_PFILE_PROTECTOR: u32 = 6; +pub const EFS_SUBVER_UNKNOWN: u32 = 0; +pub const EFS_EFS_SUBVER_EFS_CERT: u32 = 1; +pub const EFS_PFILE_SUBVER_RMS: u32 = 2; +pub const EFS_PFILE_SUBVER_APPX: u32 = 3; +pub const MAX_SID_SIZE: u32 = 256; +pub const EFS_METADATA_ADD_USER: u32 = 1; +pub const EFS_METADATA_REMOVE_USER: u32 = 2; +pub const EFS_METADATA_REPLACE_USER: u32 = 4; +pub const EFS_METADATA_GENERAL_OP: u32 = 8; +pub const __REQUIRED_RPCNDR_H_VERSION__: u32 = 501; +pub const __REQUIRED_RPCSAL_H_VERSION__: u32 = 100; +pub const __RPCNDR_H_VERSION__: u32 = 501; +pub const __RPCSAL_H_VERSION__: u32 = 100; +pub const TARGET_IS_NT1012_OR_LATER: u32 = 1; +pub const TARGET_IS_NT102_OR_LATER: u32 = 1; +pub const TARGET_IS_NT100_OR_LATER: u32 = 1; +pub const TARGET_IS_NT63_OR_LATER: u32 = 1; +pub const TARGET_IS_NT62_OR_LATER: u32 = 1; +pub const TARGET_IS_NT61_OR_LATER: u32 = 1; +pub const TARGET_IS_NT60_OR_LATER: u32 = 1; +pub const TARGET_IS_NT51_OR_LATER: u32 = 1; +pub const TARGET_IS_NT50_OR_LATER: u32 = 1; +pub const TARGET_IS_NT40_OR_LATER: u32 = 1; +pub const TARGET_IS_NT351_OR_WIN95_OR_LATER: u32 = 1; +pub const cbNDRContext: u32 = 20; +pub const USER_CALL_IS_ASYNC: u32 = 256; +pub const USER_CALL_NEW_CORRELATION_DESC: u32 = 512; +pub const USER_MARSHAL_FC_BYTE: u32 = 1; +pub const USER_MARSHAL_FC_CHAR: u32 = 2; +pub const USER_MARSHAL_FC_SMALL: u32 = 3; +pub const USER_MARSHAL_FC_USMALL: u32 = 4; +pub const USER_MARSHAL_FC_WCHAR: u32 = 5; +pub const USER_MARSHAL_FC_SHORT: u32 = 6; +pub const USER_MARSHAL_FC_USHORT: u32 = 7; +pub const USER_MARSHAL_FC_LONG: u32 = 8; +pub const USER_MARSHAL_FC_ULONG: u32 = 9; +pub const USER_MARSHAL_FC_FLOAT: u32 = 10; +pub const USER_MARSHAL_FC_HYPER: u32 = 11; +pub const USER_MARSHAL_FC_DOUBLE: u32 = 12; +pub const ROTREGFLAGS_ALLOWANYCLIENT: u32 = 1; +pub const APPIDREGFLAGS_ACTIVATE_IUSERVER_INDESKTOP: u32 = 1; +pub const APPIDREGFLAGS_SECURE_SERVER_PROCESS_SD_AND_BIND: u32 = 2; +pub const APPIDREGFLAGS_ISSUE_ACTIVATION_RPC_AT_IDENTIFY: u32 = 4; +pub const APPIDREGFLAGS_IUSERVER_UNMODIFIED_LOGON_TOKEN: u32 = 8; +pub const APPIDREGFLAGS_IUSERVER_SELF_SID_IN_LAUNCH_PERMISSION: u32 = 16; +pub const APPIDREGFLAGS_IUSERVER_ACTIVATE_IN_CLIENT_SESSION_ONLY: u32 = 32; +pub const APPIDREGFLAGS_RESERVED1: u32 = 64; +pub const APPIDREGFLAGS_RESERVED2: u32 = 128; +pub const APPIDREGFLAGS_RESERVED3: u32 = 256; +pub const APPIDREGFLAGS_RESERVED4: u32 = 512; +pub const APPIDREGFLAGS_RESERVED5: u32 = 1024; +pub const APPIDREGFLAGS_AAA_NO_IMPLICIT_ACTIVATE_AS_IU: u32 = 2048; +pub const APPIDREGFLAGS_RESERVED7: u32 = 4096; +pub const APPIDREGFLAGS_RESERVED8: u32 = 8192; +pub const APPIDREGFLAGS_RESERVED9: u32 = 16384; +pub const DCOMSCM_ACTIVATION_USE_ALL_AUTHNSERVICES: u32 = 1; +pub const DCOMSCM_ACTIVATION_DISALLOW_UNSECURE_CALL: u32 = 2; +pub const DCOMSCM_RESOLVE_USE_ALL_AUTHNSERVICES: u32 = 4; +pub const DCOMSCM_RESOLVE_DISALLOW_UNSECURE_CALL: u32 = 8; +pub const DCOMSCM_PING_USE_MID_AUTHNSERVICE: u32 = 16; +pub const DCOMSCM_PING_DISALLOW_UNSECURE_CALL: u32 = 32; +pub const ROTFLAGS_REGISTRATIONKEEPSALIVE: u32 = 1; +pub const ROTFLAGS_ALLOWANYCLIENT: u32 = 2; +pub const ROT_COMPARE_MAX: u32 = 2048; +pub const WDT_INPROC_CALL: u32 = 1215587415; +pub const WDT_REMOTE_CALL: u32 = 1383359575; +pub const WDT_INPROC64_CALL: u32 = 1349805143; +pub const FILE_DEVICE_BEEP: u32 = 1; +pub const FILE_DEVICE_CD_ROM: u32 = 2; +pub const FILE_DEVICE_CD_ROM_FILE_SYSTEM: u32 = 3; +pub const FILE_DEVICE_CONTROLLER: u32 = 4; +pub const FILE_DEVICE_DATALINK: u32 = 5; +pub const FILE_DEVICE_DFS: u32 = 6; +pub const FILE_DEVICE_DISK: u32 = 7; +pub const FILE_DEVICE_DISK_FILE_SYSTEM: u32 = 8; +pub const FILE_DEVICE_FILE_SYSTEM: u32 = 9; +pub const FILE_DEVICE_INPORT_PORT: u32 = 10; +pub const FILE_DEVICE_KEYBOARD: u32 = 11; +pub const FILE_DEVICE_MAILSLOT: u32 = 12; +pub const FILE_DEVICE_MIDI_IN: u32 = 13; +pub const FILE_DEVICE_MIDI_OUT: u32 = 14; +pub const FILE_DEVICE_MOUSE: u32 = 15; +pub const FILE_DEVICE_MULTI_UNC_PROVIDER: u32 = 16; +pub const FILE_DEVICE_NAMED_PIPE: u32 = 17; +pub const FILE_DEVICE_NETWORK: u32 = 18; +pub const FILE_DEVICE_NETWORK_BROWSER: u32 = 19; +pub const FILE_DEVICE_NETWORK_FILE_SYSTEM: u32 = 20; +pub const FILE_DEVICE_NULL: u32 = 21; +pub const FILE_DEVICE_PARALLEL_PORT: u32 = 22; +pub const FILE_DEVICE_PHYSICAL_NETCARD: u32 = 23; +pub const FILE_DEVICE_PRINTER: u32 = 24; +pub const FILE_DEVICE_SCANNER: u32 = 25; +pub const FILE_DEVICE_SERIAL_MOUSE_PORT: u32 = 26; +pub const FILE_DEVICE_SERIAL_PORT: u32 = 27; +pub const FILE_DEVICE_SCREEN: u32 = 28; +pub const FILE_DEVICE_SOUND: u32 = 29; +pub const FILE_DEVICE_STREAMS: u32 = 30; +pub const FILE_DEVICE_TAPE: u32 = 31; +pub const FILE_DEVICE_TAPE_FILE_SYSTEM: u32 = 32; +pub const FILE_DEVICE_TRANSPORT: u32 = 33; +pub const FILE_DEVICE_UNKNOWN: u32 = 34; +pub const FILE_DEVICE_VIDEO: u32 = 35; +pub const FILE_DEVICE_VIRTUAL_DISK: u32 = 36; +pub const FILE_DEVICE_WAVE_IN: u32 = 37; +pub const FILE_DEVICE_WAVE_OUT: u32 = 38; +pub const FILE_DEVICE_8042_PORT: u32 = 39; +pub const FILE_DEVICE_NETWORK_REDIRECTOR: u32 = 40; +pub const FILE_DEVICE_BATTERY: u32 = 41; +pub const FILE_DEVICE_BUS_EXTENDER: u32 = 42; +pub const FILE_DEVICE_MODEM: u32 = 43; +pub const FILE_DEVICE_VDM: u32 = 44; +pub const FILE_DEVICE_MASS_STORAGE: u32 = 45; +pub const FILE_DEVICE_SMB: u32 = 46; +pub const FILE_DEVICE_KS: u32 = 47; +pub const FILE_DEVICE_CHANGER: u32 = 48; +pub const FILE_DEVICE_SMARTCARD: u32 = 49; +pub const FILE_DEVICE_ACPI: u32 = 50; +pub const FILE_DEVICE_DVD: u32 = 51; +pub const FILE_DEVICE_FULLSCREEN_VIDEO: u32 = 52; +pub const FILE_DEVICE_DFS_FILE_SYSTEM: u32 = 53; +pub const FILE_DEVICE_DFS_VOLUME: u32 = 54; +pub const FILE_DEVICE_SERENUM: u32 = 55; +pub const FILE_DEVICE_TERMSRV: u32 = 56; +pub const FILE_DEVICE_KSEC: u32 = 57; +pub const FILE_DEVICE_FIPS: u32 = 58; +pub const FILE_DEVICE_INFINIBAND: u32 = 59; +pub const FILE_DEVICE_VMBUS: u32 = 62; +pub const FILE_DEVICE_CRYPT_PROVIDER: u32 = 63; +pub const FILE_DEVICE_WPD: u32 = 64; +pub const FILE_DEVICE_BLUETOOTH: u32 = 65; +pub const FILE_DEVICE_MT_COMPOSITE: u32 = 66; +pub const FILE_DEVICE_MT_TRANSPORT: u32 = 67; +pub const FILE_DEVICE_BIOMETRIC: u32 = 68; +pub const FILE_DEVICE_PMI: u32 = 69; +pub const FILE_DEVICE_EHSTOR: u32 = 70; +pub const FILE_DEVICE_DEVAPI: u32 = 71; +pub const FILE_DEVICE_GPIO: u32 = 72; +pub const FILE_DEVICE_USBEX: u32 = 73; +pub const FILE_DEVICE_CONSOLE: u32 = 80; +pub const FILE_DEVICE_NFP: u32 = 81; +pub const FILE_DEVICE_SYSENV: u32 = 82; +pub const FILE_DEVICE_VIRTUAL_BLOCK: u32 = 83; +pub const FILE_DEVICE_POINT_OF_SERVICE: u32 = 84; +pub const FILE_DEVICE_STORAGE_REPLICATION: u32 = 85; +pub const FILE_DEVICE_TRUST_ENV: u32 = 86; +pub const FILE_DEVICE_UCM: u32 = 87; +pub const FILE_DEVICE_UCMTCPCI: u32 = 88; +pub const FILE_DEVICE_PERSISTENT_MEMORY: u32 = 89; +pub const FILE_DEVICE_NVDIMM: u32 = 90; +pub const FILE_DEVICE_HOLOGRAPHIC: u32 = 91; +pub const FILE_DEVICE_SDFXHCI: u32 = 92; +pub const FILE_DEVICE_UCMUCSI: u32 = 93; +pub const FILE_DEVICE_PRM: u32 = 94; +pub const FILE_DEVICE_EVENT_COLLECTOR: u32 = 95; +pub const FILE_DEVICE_USB4: u32 = 96; +pub const FILE_DEVICE_SOUNDWIRE: u32 = 97; +pub const METHOD_BUFFERED: u32 = 0; +pub const METHOD_IN_DIRECT: u32 = 1; +pub const METHOD_OUT_DIRECT: u32 = 2; +pub const METHOD_NEITHER: u32 = 3; +pub const METHOD_DIRECT_TO_HARDWARE: u32 = 1; +pub const METHOD_DIRECT_FROM_HARDWARE: u32 = 2; +pub const FILE_ANY_ACCESS: u32 = 0; +pub const FILE_SPECIAL_ACCESS: u32 = 0; +pub const FILE_READ_ACCESS: u32 = 1; +pub const FILE_WRITE_ACCESS: u32 = 2; +pub const IOCTL_STORAGE_BASE: u32 = 45; +pub const STORAGE_DEVICE_FLAGS_RANDOM_DEVICEGUID_REASON_CONFLICT: u32 = 1; +pub const STORAGE_DEVICE_FLAGS_RANDOM_DEVICEGUID_REASON_NOHWID: u32 = 2; +pub const STORAGE_DEVICE_FLAGS_PAGE_83_DEVICEGUID: u32 = 4; +pub const RECOVERED_WRITES_VALID: u32 = 1; +pub const UNRECOVERED_WRITES_VALID: u32 = 2; +pub const RECOVERED_READS_VALID: u32 = 4; +pub const UNRECOVERED_READS_VALID: u32 = 8; +pub const WRITE_COMPRESSION_INFO_VALID: u32 = 16; +pub const READ_COMPRESSION_INFO_VALID: u32 = 32; +pub const TAPE_RETURN_STATISTICS: u32 = 0; +pub const TAPE_RETURN_ENV_INFO: u32 = 1; +pub const TAPE_RESET_STATISTICS: u32 = 2; +pub const MEDIA_ERASEABLE: u32 = 1; +pub const MEDIA_WRITE_ONCE: u32 = 2; +pub const MEDIA_READ_ONLY: u32 = 4; +pub const MEDIA_READ_WRITE: u32 = 8; +pub const MEDIA_WRITE_PROTECTED: u32 = 256; +pub const MEDIA_CURRENTLY_MOUNTED: u32 = 2147483648; +pub const STORAGE_FAILURE_PREDICTION_CONFIG_V1: u32 = 1; +pub const SRB_TYPE_SCSI_REQUEST_BLOCK: u32 = 0; +pub const SRB_TYPE_STORAGE_REQUEST_BLOCK: u32 = 1; +pub const STORAGE_ADDRESS_TYPE_BTL8: u32 = 0; +pub const STORAGE_RPMB_DESCRIPTOR_VERSION_1: u32 = 1; +pub const STORAGE_RPMB_MINIMUM_RELIABLE_WRITE_SIZE: u32 = 512; +pub const STORAGE_CRYPTO_CAPABILITY_VERSION_1: u32 = 1; +pub const STORAGE_CRYPTO_DESCRIPTOR_VERSION_1: u32 = 1; +pub const STORAGE_TIER_NAME_LENGTH: u32 = 256; +pub const STORAGE_TIER_DESCRIPTION_LENGTH: u32 = 512; +pub const STORAGE_TIER_FLAG_NO_SEEK_PENALTY: u32 = 131072; +pub const STORAGE_TIER_FLAG_WRITE_BACK_CACHE: u32 = 2097152; +pub const STORAGE_TIER_FLAG_READ_CACHE: u32 = 4194304; +pub const STORAGE_TIER_FLAG_PARITY: u32 = 8388608; +pub const STORAGE_TIER_FLAG_SMR: u32 = 16777216; +pub const STORAGE_TEMPERATURE_VALUE_NOT_REPORTED: u32 = 32768; +pub const STORAGE_TEMPERATURE_THRESHOLD_FLAG_ADAPTER_REQUEST: u32 = 1; +pub const STORAGE_COMPONENT_ROLE_CACHE: u32 = 1; +pub const STORAGE_COMPONENT_ROLE_TIERING: u32 = 2; +pub const STORAGE_COMPONENT_ROLE_DATA: u32 = 4; +pub const STORAGE_ATTRIBUTE_BYTE_ADDRESSABLE_IO: u32 = 1; +pub const STORAGE_ATTRIBUTE_BLOCK_IO: u32 = 2; +pub const STORAGE_ATTRIBUTE_DYNAMIC_PERSISTENCE: u32 = 4; +pub const STORAGE_ATTRIBUTE_VOLATILE: u32 = 8; +pub const STORAGE_ATTRIBUTE_ASYNC_EVENT_NOTIFICATION: u32 = 16; +pub const STORAGE_ATTRIBUTE_PERF_SIZE_INDEPENDENT: u32 = 32; +pub const STORAGE_DEVICE_MAX_OPERATIONAL_STATUS: u32 = 16; +pub const STORAGE_ADAPTER_SERIAL_NUMBER_V1_MAX_LENGTH: u32 = 128; +pub const STORAGE_DEVICE_NUMA_NODE_UNKNOWN: u32 = 4294967295; +pub const DeviceDsmActionFlag_NonDestructive: u32 = 2147483648; +pub const DeviceDsmAction_None: u32 = 0; +pub const DeviceDsmAction_Trim: u32 = 1; +pub const DeviceDsmAction_Notification: u32 = 2147483650; +pub const DeviceDsmAction_OffloadRead: u32 = 2147483651; +pub const DeviceDsmAction_OffloadWrite: u32 = 4; +pub const DeviceDsmAction_Allocation: u32 = 2147483653; +pub const DeviceDsmAction_Repair: u32 = 2147483654; +pub const DeviceDsmAction_Scrub: u32 = 2147483655; +pub const DeviceDsmAction_DrtQuery: u32 = 2147483656; +pub const DeviceDsmAction_DrtClear: u32 = 2147483657; +pub const DeviceDsmAction_DrtDisable: u32 = 2147483658; +pub const DeviceDsmAction_TieringQuery: u32 = 2147483659; +pub const DeviceDsmAction_Map: u32 = 2147483660; +pub const DeviceDsmAction_RegenerateParity: u32 = 2147483661; +pub const DeviceDsmAction_NvCache_Change_Priority: u32 = 2147483662; +pub const DeviceDsmAction_NvCache_Evict: u32 = 2147483663; +pub const DeviceDsmAction_TopologyIdQuery: u32 = 2147483664; +pub const DeviceDsmAction_GetPhysicalAddresses: u32 = 2147483665; +pub const DeviceDsmAction_ScopeRegen: u32 = 2147483666; +pub const DeviceDsmAction_ReportZones: u32 = 2147483667; +pub const DeviceDsmAction_OpenZone: u32 = 2147483668; +pub const DeviceDsmAction_FinishZone: u32 = 2147483669; +pub const DeviceDsmAction_CloseZone: u32 = 2147483670; +pub const DeviceDsmAction_ResetWritePointer: u32 = 23; +pub const DeviceDsmAction_GetRangeErrorInfo: u32 = 2147483672; +pub const DeviceDsmAction_WriteZeroes: u32 = 25; +pub const DeviceDsmAction_LostQuery: u32 = 2147483674; +pub const DeviceDsmAction_GetFreeSpace: u32 = 2147483675; +pub const DeviceDsmAction_ConversionQuery: u32 = 2147483676; +pub const DeviceDsmAction_VdtSet: u32 = 29; +pub const DEVICE_DSM_FLAG_ENTIRE_DATA_SET_RANGE: u32 = 1; +pub const DEVICE_DSM_FLAG_TRIM_NOT_FS_ALLOCATED: u32 = 2147483648; +pub const DEVICE_DSM_FLAG_TRIM_BYPASS_RZAT: u32 = 1073741824; +pub const DEVICE_DSM_NOTIFY_FLAG_BEGIN: u32 = 1; +pub const DEVICE_DSM_NOTIFY_FLAG_END: u32 = 2; +pub const STORAGE_OFFLOAD_MAX_TOKEN_LENGTH: u32 = 512; +pub const STORAGE_OFFLOAD_TOKEN_ID_LENGTH: u32 = 504; +pub const STORAGE_OFFLOAD_TOKEN_TYPE_ZERO_DATA: u32 = 4294901761; +pub const STORAGE_OFFLOAD_READ_RANGE_TRUNCATED: u32 = 1; +pub const STORAGE_OFFLOAD_WRITE_RANGE_TRUNCATED: u32 = 1; +pub const STORAGE_OFFLOAD_TOKEN_INVALID: u32 = 2; +pub const DEVICE_DSM_FLAG_ALLOCATION_CONSOLIDATEABLE_ONLY: u32 = 1073741824; +pub const DEVICE_DSM_PARAMETERS_V1: u32 = 1; +pub const DEVICE_DATA_SET_LBP_STATE_PARAMETERS_VERSION_V1: u32 = 1; +pub const DEVICE_DSM_FLAG_REPAIR_INPUT_TOPOLOGY_ID_PRESENT: u32 = 1073741824; +pub const DEVICE_DSM_FLAG_REPAIR_OUTPUT_PARITY_EXTENT: u32 = 536870912; +pub const DEVICE_DSM_FLAG_SCRUB_SKIP_IN_SYNC: u32 = 268435456; +pub const DEVICE_DSM_FLAG_SCRUB_OUTPUT_PARITY_EXTENT: u32 = 536870912; +pub const DEVICE_DSM_FLAG_PHYSICAL_ADDRESSES_OMIT_TOTAL_RANGES: u32 = 268435456; +pub const DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_V1: u32 = 1; +pub const DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_VERSION_V1: u32 = 1; +pub const DEVICE_STORAGE_NO_ERRORS: u32 = 1; +pub const DEVICE_DSM_RANGE_ERROR_OUTPUT_V1: u32 = 1; +pub const DEVICE_DSM_RANGE_ERROR_INFO_VERSION_V1: u32 = 1; +pub const IOCTL_STORAGE_BC_VERSION: u32 = 1; +pub const STORAGE_PRIORITY_HINT_SUPPORTED: u32 = 1; +pub const STORAGE_DIAGNOSTIC_FLAG_ADAPTER_REQUEST: u32 = 1; +pub const ERROR_HISTORY_DIRECTORY_ENTRY_DEFAULT_COUNT: u32 = 8; +pub const DEVICEDUMP_STRUCTURE_VERSION_V1: u32 = 1; +pub const DEVICEDUMP_MAX_IDSTRING: u32 = 32; +pub const MAX_FW_BUCKET_ID_LENGTH: u32 = 132; +pub const STORAGE_CRASH_TELEMETRY_REGKEY: &[u8; 81] = + b"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\CrashControl\\StorageTelemetry\0"; +pub const STORAGE_DEVICE_TELEMETRY_REGKEY: &[u8; 76] = + b"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Storage\\StorageTelemetry\0"; +pub const DDUMP_FLAG_DATA_READ_FROM_DEVICE: u32 = 1; +pub const FW_ISSUEID_NO_ISSUE: u32 = 0; +pub const FW_ISSUEID_UNKNOWN: u32 = 4294967295; +pub const TC_PUBLIC_DEVICEDUMP_CONTENT_SMART: u32 = 1; +pub const TC_PUBLIC_DEVICEDUMP_CONTENT_GPLOG: u32 = 2; +pub const TC_PUBLIC_DEVICEDUMP_CONTENT_GPLOG_MAX: u32 = 16; +pub const TC_DEVICEDUMP_SUBSECTION_DESC_LENGTH: u32 = 16; +pub const TC_PUBLIC_DATA_TYPE_ATAGP: &[u8; 14] = b"ATAGPLogPages\0"; +pub const TC_PUBLIC_DATA_TYPE_ATASMART: &[u8; 14] = b"ATASMARTPages\0"; +pub const CDB_SIZE: u32 = 16; +pub const TELEMETRY_COMMAND_SIZE: u32 = 16; +pub const DEVICEDUMP_CAP_PRIVATE_SECTION: u32 = 1; +pub const DEVICEDUMP_CAP_RESTRICTED_SECTION: u32 = 2; +pub const STORAGE_IDLE_POWERUP_REASON_VERSION_V1: u32 = 1; +pub const STORAGE_DEVICE_POWER_CAP_VERSION_V1: u32 = 1; +pub const STORAGE_EVENT_NOTIFICATION_VERSION_V1: u32 = 1; +pub const STORAGE_EVENT_MEDIA_STATUS: u32 = 1; +pub const STORAGE_EVENT_DEVICE_STATUS: u32 = 2; +pub const STORAGE_EVENT_DEVICE_OPERATION: u32 = 4; +pub const STORAGE_EVENT_ALL: u32 = 7; +pub const READ_COPY_NUMBER_KEY: u32 = 1380142592; +pub const READ_COPY_NUMBER_BYPASS_CACHE_FLAG: u32 = 256; +pub const STORAGE_HW_FIRMWARE_REQUEST_FLAG_CONTROLLER: u32 = 1; +pub const STORAGE_HW_FIRMWARE_REQUEST_FLAG_LAST_SEGMENT: u32 = 2; +pub const STORAGE_HW_FIRMWARE_REQUEST_FLAG_FIRST_SEGMENT: u32 = 4; +pub const STORAGE_HW_FIRMWARE_REQUEST_FLAG_REPLACE_EXISTING_IMAGE: u32 = 1073741824; +pub const STORAGE_HW_FIRMWARE_REQUEST_FLAG_SWITCH_TO_EXISTING_FIRMWARE: u32 = 2147483648; +pub const STORAGE_HW_FIRMWARE_INVALID_SLOT: u32 = 255; +pub const STORAGE_HW_FIRMWARE_REVISION_LENGTH: u32 = 16; +pub const STORAGE_PROTOCOL_STRUCTURE_VERSION: u32 = 1; +pub const STORAGE_PROTOCOL_COMMAND_FLAG_ADAPTER_REQUEST: u32 = 2147483648; +pub const STORAGE_PROTOCOL_STATUS_PENDING: u32 = 0; +pub const STORAGE_PROTOCOL_STATUS_SUCCESS: u32 = 1; +pub const STORAGE_PROTOCOL_STATUS_ERROR: u32 = 2; +pub const STORAGE_PROTOCOL_STATUS_INVALID_REQUEST: u32 = 3; +pub const STORAGE_PROTOCOL_STATUS_NO_DEVICE: u32 = 4; +pub const STORAGE_PROTOCOL_STATUS_BUSY: u32 = 5; +pub const STORAGE_PROTOCOL_STATUS_DATA_OVERRUN: u32 = 6; +pub const STORAGE_PROTOCOL_STATUS_INSUFFICIENT_RESOURCES: u32 = 7; +pub const STORAGE_PROTOCOL_STATUS_THROTTLED_REQUEST: u32 = 8; +pub const STORAGE_PROTOCOL_STATUS_NOT_SUPPORTED: u32 = 255; +pub const STORAGE_PROTOCOL_COMMAND_LENGTH_NVME: u32 = 64; +pub const STORAGE_PROTOCOL_SPECIFIC_NVME_ADMIN_COMMAND: u32 = 1; +pub const STORAGE_PROTOCOL_SPECIFIC_NVME_NVM_COMMAND: u32 = 2; +pub const STORATTRIBUTE_NONE: u32 = 0; +pub const STORATTRIBUTE_MANAGEMENT_STATE: u32 = 1; +pub const IOCTL_SCMBUS_BASE: u32 = 89; +pub const IOCTL_SCMBUS_DEVICE_FUNCTION_BASE: u32 = 0; +pub const IOCTL_SCM_LOGICAL_DEVICE_FUNCTION_BASE: u32 = 768; +pub const IOCTL_SCM_PHYSICAL_DEVICE_FUNCTION_BASE: u32 = 1536; +pub const SCM_MAX_SYMLINK_LEN_IN_CHARS: u32 = 256; +pub const MAX_INTERFACE_CODES: u32 = 8; +pub const SCM_PD_FIRMWARE_REVISION_LENGTH_BYTES: u32 = 32; +pub const SCM_PD_PROPERTY_NAME_LENGTH_IN_CHARS: u32 = 128; +pub const SCM_PD_MAX_OPERATIONAL_STATUS: u32 = 16; +pub const SCM_PD_FIRMWARE_LAST_DOWNLOAD: u32 = 1; +pub const IOCTL_DISK_BASE: u32 = 7; +pub const PARTITION_ENTRY_UNUSED: u32 = 0; +pub const PARTITION_FAT_12: u32 = 1; +pub const PARTITION_XENIX_1: u32 = 2; +pub const PARTITION_XENIX_2: u32 = 3; +pub const PARTITION_FAT_16: u32 = 4; +pub const PARTITION_EXTENDED: u32 = 5; +pub const PARTITION_HUGE: u32 = 6; +pub const PARTITION_IFS: u32 = 7; +pub const PARTITION_OS2BOOTMGR: u32 = 10; +pub const PARTITION_FAT32: u32 = 11; +pub const PARTITION_FAT32_XINT13: u32 = 12; +pub const PARTITION_XINT13: u32 = 14; +pub const PARTITION_XINT13_EXTENDED: u32 = 15; +pub const PARTITION_MSFT_RECOVERY: u32 = 39; +pub const PARTITION_MAIN_OS: u32 = 40; +pub const PARTIITON_OS_DATA: u32 = 41; +pub const PARTITION_PRE_INSTALLED: u32 = 42; +pub const PARTITION_BSP: u32 = 43; +pub const PARTITION_DPP: u32 = 44; +pub const PARTITION_WINDOWS_SYSTEM: u32 = 45; +pub const PARTITION_PREP: u32 = 65; +pub const PARTITION_LDM: u32 = 66; +pub const PARTITION_DM: u32 = 84; +pub const PARTITION_EZDRIVE: u32 = 85; +pub const PARTITION_UNIX: u32 = 99; +pub const PARTITION_SPACES_DATA: u32 = 215; +pub const PARTITION_SPACES: u32 = 231; +pub const PARTITION_GPT: u32 = 238; +pub const PARTITION_SYSTEM: u32 = 239; +pub const VALID_NTFT: u32 = 192; +pub const PARTITION_NTFT: u32 = 128; +pub const GPT_ATTRIBUTE_PLATFORM_REQUIRED: u32 = 1; +pub const GPT_ATTRIBUTE_NO_BLOCK_IO_PROTOCOL: u32 = 2; +pub const GPT_ATTRIBUTE_LEGACY_BIOS_BOOTABLE: u32 = 4; +pub const GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER: i64 = -9223372036854775808; +pub const GPT_BASIC_DATA_ATTRIBUTE_HIDDEN: u64 = 4611686018427387904; +pub const GPT_BASIC_DATA_ATTRIBUTE_SHADOW_COPY: u64 = 2305843009213693952; +pub const GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY: u64 = 1152921504606846976; +pub const GPT_BASIC_DATA_ATTRIBUTE_OFFLINE: u64 = 576460752303423488; +pub const GPT_BASIC_DATA_ATTRIBUTE_DAX: u64 = 288230376151711744; +pub const GPT_BASIC_DATA_ATTRIBUTE_SERVICE: u64 = 144115188075855872; +pub const GPT_SPACES_ATTRIBUTE_NO_METADATA: i64 = -9223372036854775808; +pub const HIST_NO_OF_BUCKETS: u32 = 24; +pub const DISK_LOGGING_START: u32 = 0; +pub const DISK_LOGGING_STOP: u32 = 1; +pub const DISK_LOGGING_DUMP: u32 = 2; +pub const DISK_BINNING: u32 = 3; +pub const CAP_ATA_ID_CMD: u32 = 1; +pub const CAP_ATAPI_ID_CMD: u32 = 2; +pub const CAP_SMART_CMD: u32 = 4; +pub const ATAPI_ID_CMD: u32 = 161; +pub const ID_CMD: u32 = 236; +pub const SMART_CMD: u32 = 176; +pub const SMART_CYL_LOW: u32 = 79; +pub const SMART_CYL_HI: u32 = 194; +pub const SMART_NO_ERROR: u32 = 0; +pub const SMART_IDE_ERROR: u32 = 1; +pub const SMART_INVALID_FLAG: u32 = 2; +pub const SMART_INVALID_COMMAND: u32 = 3; +pub const SMART_INVALID_BUFFER: u32 = 4; +pub const SMART_INVALID_DRIVE: u32 = 5; +pub const SMART_INVALID_IOCTL: u32 = 6; +pub const SMART_ERROR_NO_MEM: u32 = 7; +pub const SMART_INVALID_REGISTER: u32 = 8; +pub const SMART_NOT_SUPPORTED: u32 = 9; +pub const SMART_NO_IDE_DEVICE: u32 = 10; +pub const SMART_OFFLINE_ROUTINE_OFFLINE: u32 = 0; +pub const SMART_SHORT_SELFTEST_OFFLINE: u32 = 1; +pub const SMART_EXTENDED_SELFTEST_OFFLINE: u32 = 2; +pub const SMART_ABORT_OFFLINE_SELFTEST: u32 = 127; +pub const SMART_SHORT_SELFTEST_CAPTIVE: u32 = 129; +pub const SMART_EXTENDED_SELFTEST_CAPTIVE: u32 = 130; +pub const READ_ATTRIBUTE_BUFFER_SIZE: u32 = 512; +pub const IDENTIFY_BUFFER_SIZE: u32 = 512; +pub const READ_THRESHOLD_BUFFER_SIZE: u32 = 512; +pub const SMART_LOG_SECTOR_SIZE: u32 = 512; +pub const READ_ATTRIBUTES: u32 = 208; +pub const READ_THRESHOLDS: u32 = 209; +pub const ENABLE_DISABLE_AUTOSAVE: u32 = 210; +pub const SAVE_ATTRIBUTE_VALUES: u32 = 211; +pub const EXECUTE_OFFLINE_DIAGS: u32 = 212; +pub const SMART_READ_LOG: u32 = 213; +pub const SMART_WRITE_LOG: u32 = 214; +pub const ENABLE_SMART: u32 = 216; +pub const DISABLE_SMART: u32 = 217; +pub const RETURN_SMART_STATUS: u32 = 218; +pub const ENABLE_DISABLE_AUTO_OFFLINE: u32 = 219; +pub const DISK_ATTRIBUTE_OFFLINE: u32 = 1; +pub const DISK_ATTRIBUTE_READ_ONLY: u32 = 2; +pub const IOCTL_CHANGER_BASE: u32 = 48; +pub const MAX_VOLUME_ID_SIZE: u32 = 36; +pub const MAX_VOLUME_TEMPLATE_SIZE: u32 = 40; +pub const VENDOR_ID_LENGTH: u32 = 8; +pub const PRODUCT_ID_LENGTH: u32 = 16; +pub const REVISION_LENGTH: u32 = 4; +pub const SERIAL_NUMBER_LENGTH: u32 = 32; +pub const CHANGER_BAR_CODE_SCANNER_INSTALLED: u32 = 1; +pub const CHANGER_INIT_ELEM_STAT_WITH_RANGE: u32 = 2; +pub const CHANGER_CLOSE_IEPORT: u32 = 4; +pub const CHANGER_OPEN_IEPORT: u32 = 8; +pub const CHANGER_STATUS_NON_VOLATILE: u32 = 16; +pub const CHANGER_EXCHANGE_MEDIA: u32 = 32; +pub const CHANGER_CLEANER_SLOT: u32 = 64; +pub const CHANGER_LOCK_UNLOCK: u32 = 128; +pub const CHANGER_CARTRIDGE_MAGAZINE: u32 = 256; +pub const CHANGER_MEDIUM_FLIP: u32 = 512; +pub const CHANGER_POSITION_TO_ELEMENT: u32 = 1024; +pub const CHANGER_REPORT_IEPORT_STATE: u32 = 2048; +pub const CHANGER_STORAGE_DRIVE: u32 = 4096; +pub const CHANGER_STORAGE_IEPORT: u32 = 8192; +pub const CHANGER_STORAGE_SLOT: u32 = 16384; +pub const CHANGER_STORAGE_TRANSPORT: u32 = 32768; +pub const CHANGER_DRIVE_CLEANING_REQUIRED: u32 = 65536; +pub const CHANGER_PREDISMOUNT_EJECT_REQUIRED: u32 = 131072; +pub const CHANGER_CLEANER_ACCESS_NOT_VALID: u32 = 262144; +pub const CHANGER_PREMOUNT_EJECT_REQUIRED: u32 = 524288; +pub const CHANGER_VOLUME_IDENTIFICATION: u32 = 1048576; +pub const CHANGER_VOLUME_SEARCH: u32 = 2097152; +pub const CHANGER_VOLUME_ASSERT: u32 = 4194304; +pub const CHANGER_VOLUME_REPLACE: u32 = 8388608; +pub const CHANGER_VOLUME_UNDEFINE: u32 = 16777216; +pub const CHANGER_SERIAL_NUMBER_VALID: u32 = 67108864; +pub const CHANGER_DEVICE_REINITIALIZE_CAPABLE: u32 = 134217728; +pub const CHANGER_KEYPAD_ENABLE_DISABLE: u32 = 268435456; +pub const CHANGER_DRIVE_EMPTY_ON_DOOR_ACCESS: u32 = 536870912; +pub const CHANGER_RESERVED_BIT: u32 = 2147483648; +pub const CHANGER_PREDISMOUNT_ALIGN_TO_SLOT: u32 = 2147483649; +pub const CHANGER_PREDISMOUNT_ALIGN_TO_DRIVE: u32 = 2147483650; +pub const CHANGER_CLEANER_AUTODISMOUNT: u32 = 2147483652; +pub const CHANGER_TRUE_EXCHANGE_CAPABLE: u32 = 2147483656; +pub const CHANGER_SLOTS_USE_TRAYS: u32 = 2147483664; +pub const CHANGER_RTN_MEDIA_TO_ORIGINAL_ADDR: u32 = 2147483680; +pub const CHANGER_CLEANER_OPS_NOT_SUPPORTED: u32 = 2147483712; +pub const CHANGER_IEPORT_USER_CONTROL_OPEN: u32 = 2147483776; +pub const CHANGER_IEPORT_USER_CONTROL_CLOSE: u32 = 2147483904; +pub const CHANGER_MOVE_EXTENDS_IEPORT: u32 = 2147484160; +pub const CHANGER_MOVE_RETRACTS_IEPORT: u32 = 2147484672; +pub const CHANGER_TO_TRANSPORT: u32 = 1; +pub const CHANGER_TO_SLOT: u32 = 2; +pub const CHANGER_TO_IEPORT: u32 = 4; +pub const CHANGER_TO_DRIVE: u32 = 8; +pub const LOCK_UNLOCK_IEPORT: u32 = 1; +pub const LOCK_UNLOCK_DOOR: u32 = 2; +pub const LOCK_UNLOCK_KEYPAD: u32 = 4; +pub const LOCK_ELEMENT: u32 = 0; +pub const UNLOCK_ELEMENT: u32 = 1; +pub const EXTEND_IEPORT: u32 = 2; +pub const RETRACT_IEPORT: u32 = 3; +pub const ELEMENT_STATUS_FULL: u32 = 1; +pub const ELEMENT_STATUS_IMPEXP: u32 = 2; +pub const ELEMENT_STATUS_EXCEPT: u32 = 4; +pub const ELEMENT_STATUS_ACCESS: u32 = 8; +pub const ELEMENT_STATUS_EXENAB: u32 = 16; +pub const ELEMENT_STATUS_INENAB: u32 = 32; +pub const ELEMENT_STATUS_PRODUCT_DATA: u32 = 64; +pub const ELEMENT_STATUS_LUN_VALID: u32 = 4096; +pub const ELEMENT_STATUS_ID_VALID: u32 = 8192; +pub const ELEMENT_STATUS_NOT_BUS: u32 = 32768; +pub const ELEMENT_STATUS_INVERT: u32 = 4194304; +pub const ELEMENT_STATUS_SVALID: u32 = 8388608; +pub const ELEMENT_STATUS_PVOLTAG: u32 = 268435456; +pub const ELEMENT_STATUS_AVOLTAG: u32 = 536870912; +pub const ERROR_LABEL_UNREADABLE: u32 = 1; +pub const ERROR_LABEL_QUESTIONABLE: u32 = 2; +pub const ERROR_SLOT_NOT_PRESENT: u32 = 4; +pub const ERROR_DRIVE_NOT_INSTALLED: u32 = 8; +pub const ERROR_TRAY_MALFUNCTION: u32 = 16; +pub const ERROR_INIT_STATUS_NEEDED: u32 = 17; +pub const ERROR_UNHANDLED_ERROR: u32 = 4294967295; +pub const SEARCH_ALL: u32 = 0; +pub const SEARCH_PRIMARY: u32 = 1; +pub const SEARCH_ALTERNATE: u32 = 2; +pub const SEARCH_ALL_NO_SEQ: u32 = 4; +pub const SEARCH_PRI_NO_SEQ: u32 = 5; +pub const SEARCH_ALT_NO_SEQ: u32 = 6; +pub const ASSERT_PRIMARY: u32 = 8; +pub const ASSERT_ALTERNATE: u32 = 9; +pub const REPLACE_PRIMARY: u32 = 10; +pub const REPLACE_ALTERNATE: u32 = 11; +pub const UNDEFINE_PRIMARY: u32 = 12; +pub const UNDEFINE_ALTERNATE: u32 = 13; +pub const GET_VOLUME_BITMAP_FLAG_MASK_METADATA: u32 = 1; +pub const FLAG_USN_TRACK_MODIFIED_RANGES_ENABLE: u32 = 1; +pub const USN_PAGE_SIZE: u32 = 4096; +pub const USN_REASON_DATA_OVERWRITE: u32 = 1; +pub const USN_REASON_DATA_EXTEND: u32 = 2; +pub const USN_REASON_DATA_TRUNCATION: u32 = 4; +pub const USN_REASON_NAMED_DATA_OVERWRITE: u32 = 16; +pub const USN_REASON_NAMED_DATA_EXTEND: u32 = 32; +pub const USN_REASON_NAMED_DATA_TRUNCATION: u32 = 64; +pub const USN_REASON_FILE_CREATE: u32 = 256; +pub const USN_REASON_FILE_DELETE: u32 = 512; +pub const USN_REASON_EA_CHANGE: u32 = 1024; +pub const USN_REASON_SECURITY_CHANGE: u32 = 2048; +pub const USN_REASON_RENAME_OLD_NAME: u32 = 4096; +pub const USN_REASON_RENAME_NEW_NAME: u32 = 8192; +pub const USN_REASON_INDEXABLE_CHANGE: u32 = 16384; +pub const USN_REASON_BASIC_INFO_CHANGE: u32 = 32768; +pub const USN_REASON_HARD_LINK_CHANGE: u32 = 65536; +pub const USN_REASON_COMPRESSION_CHANGE: u32 = 131072; +pub const USN_REASON_ENCRYPTION_CHANGE: u32 = 262144; +pub const USN_REASON_OBJECT_ID_CHANGE: u32 = 524288; +pub const USN_REASON_REPARSE_POINT_CHANGE: u32 = 1048576; +pub const USN_REASON_STREAM_CHANGE: u32 = 2097152; +pub const USN_REASON_TRANSACTED_CHANGE: u32 = 4194304; +pub const USN_REASON_INTEGRITY_CHANGE: u32 = 8388608; +pub const USN_REASON_DESIRED_STORAGE_CLASS_CHANGE: u32 = 16777216; +pub const USN_REASON_CLOSE: u32 = 2147483648; +pub const USN_DELETE_FLAG_DELETE: u32 = 1; +pub const USN_DELETE_FLAG_NOTIFY: u32 = 2; +pub const USN_DELETE_VALID_FLAGS: u32 = 3; +pub const USN_SOURCE_DATA_MANAGEMENT: u32 = 1; +pub const USN_SOURCE_AUXILIARY_DATA: u32 = 2; +pub const USN_SOURCE_REPLICATION_MANAGEMENT: u32 = 4; +pub const USN_SOURCE_CLIENT_REPLICATION_MANAGEMENT: u32 = 8; +pub const USN_SOURCE_VALID_FLAGS: u32 = 15; +pub const MARK_HANDLE_PROTECT_CLUSTERS: u32 = 1; +pub const MARK_HANDLE_TXF_SYSTEM_LOG: u32 = 4; +pub const MARK_HANDLE_NOT_TXF_SYSTEM_LOG: u32 = 8; +pub const MARK_HANDLE_REALTIME: u32 = 32; +pub const MARK_HANDLE_NOT_REALTIME: u32 = 64; +pub const MARK_HANDLE_CLOUD_SYNC: u32 = 2048; +pub const MARK_HANDLE_READ_COPY: u32 = 128; +pub const MARK_HANDLE_NOT_READ_COPY: u32 = 256; +pub const MARK_HANDLE_FILTER_METADATA: u32 = 512; +pub const MARK_HANDLE_RETURN_PURGE_FAILURE: u32 = 1024; +pub const MARK_HANDLE_DISABLE_FILE_METADATA_OPTIMIZATION: u32 = 4096; +pub const MARK_HANDLE_ENABLE_USN_SOURCE_ON_PAGING_IO: u32 = 8192; +pub const MARK_HANDLE_SKIP_COHERENCY_SYNC_DISALLOW_WRITES: u32 = 16384; +pub const MARK_HANDLE_SUPPRESS_VOLUME_OPEN_FLUSH: u32 = 32768; +pub const MARK_HANDLE_ENABLE_CPU_CACHE: u32 = 268435456; +pub const VOLUME_IS_DIRTY: u32 = 1; +pub const VOLUME_UPGRADE_SCHEDULED: u32 = 2; +pub const VOLUME_SESSION_OPEN: u32 = 4; +pub const FILE_PREFETCH_TYPE_FOR_CREATE: u32 = 1; +pub const FILE_PREFETCH_TYPE_FOR_DIRENUM: u32 = 2; +pub const FILE_PREFETCH_TYPE_FOR_CREATE_EX: u32 = 3; +pub const FILE_PREFETCH_TYPE_FOR_DIRENUM_EX: u32 = 4; +pub const FILE_PREFETCH_TYPE_MAX: u32 = 4; +pub const FILESYSTEM_STATISTICS_TYPE_NTFS: u32 = 1; +pub const FILESYSTEM_STATISTICS_TYPE_FAT: u32 = 2; +pub const FILESYSTEM_STATISTICS_TYPE_EXFAT: u32 = 3; +pub const FILESYSTEM_STATISTICS_TYPE_REFS: u32 = 4; +pub const FILE_ZERO_DATA_INFORMATION_FLAG_PRESERVE_CACHED_DATA: u32 = 1; +pub const FILE_SET_ENCRYPTION: u32 = 1; +pub const FILE_CLEAR_ENCRYPTION: u32 = 2; +pub const STREAM_SET_ENCRYPTION: u32 = 3; +pub const STREAM_CLEAR_ENCRYPTION: u32 = 4; +pub const MAXIMUM_ENCRYPTION_VALUE: u32 = 4; +pub const ENCRYPTION_FORMAT_DEFAULT: u32 = 1; +pub const ENCRYPTED_DATA_INFO_SPARSE_FILE: u32 = 1; +pub const COPYFILE_SIS_LINK: u32 = 1; +pub const COPYFILE_SIS_REPLACE: u32 = 2; +pub const COPYFILE_SIS_FLAGS: u32 = 3; +pub const SET_REPAIR_ENABLED: u32 = 1; +pub const SET_REPAIR_WARN_ABOUT_DATA_LOSS: u32 = 8; +pub const SET_REPAIR_DISABLED_AND_BUGCHECK_ON_CORRUPT: u32 = 16; +pub const SET_REPAIR_VALID_MASK: u32 = 25; +pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_NOT_IN_USE: u32 = 1; +pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_REUSED: u32 = 2; +pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_NOT_EXIST: u32 = 4; +pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_NOT_BASE_RECORD: u32 = 8; +pub const FILE_INITIATE_REPAIR_HINT1_SYSTEM_FILE: u32 = 16; +pub const FILE_INITIATE_REPAIR_HINT1_NOT_IMPLEMENTED: u32 = 32; +pub const FILE_INITIATE_REPAIR_HINT1_UNABLE_TO_REPAIR: u32 = 64; +pub const FILE_INITIATE_REPAIR_HINT1_REPAIR_DISABLED: u32 = 128; +pub const FILE_INITIATE_REPAIR_HINT1_RECURSIVELY_CORRUPTED: u32 = 256; +pub const FILE_INITIATE_REPAIR_HINT1_ORPHAN_GENERATED: u32 = 512; +pub const FILE_INITIATE_REPAIR_HINT1_REPAIRED: u32 = 1024; +pub const FILE_INITIATE_REPAIR_HINT1_NOTHING_WRONG: u32 = 2048; +pub const FILE_INITIATE_REPAIR_HINT1_ATTRIBUTE_NOT_FOUND: u32 = 4096; +pub const FILE_INITIATE_REPAIR_HINT1_POTENTIAL_CROSSLINK: u32 = 8192; +pub const FILE_INITIATE_REPAIR_HINT1_STALE_INFORMATION: u32 = 16384; +pub const FILE_INITIATE_REPAIR_HINT1_CLUSTERS_ALREADY_IN_USE: u32 = 32768; +pub const FILE_INITIATE_REPAIR_HINT1_LCN_NOT_EXIST: u32 = 65536; +pub const FILE_INITIATE_REPAIR_HINT1_INVALID_RUN_LENGTH: u32 = 131072; +pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_NOT_ORPHAN: u32 = 262144; +pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_IS_BASE_RECORD: u32 = 524288; +pub const FILE_INITIATE_REPAIR_HINT1_INVALID_ARRAY_LENGTH_COUNT: u32 = 1048576; +pub const FILE_INITIATE_REPAIR_HINT1_SID_VALID: u32 = 2097152; +pub const FILE_INITIATE_REPAIR_HINT1_SID_MISMATCH: u32 = 4194304; +pub const FILE_INITIATE_REPAIR_HINT1_INVALID_PARENT: u32 = 8388608; +pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_NOT_IN_USE: u32 = 16777216; +pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_REUSED: u32 = 33554432; +pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_NOT_EXIST: u32 = 67108864; +pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_NOT_BASE_RECORD: u32 = 134217728; +pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_NOT_INDEX: u32 = 268435456; +pub const FILE_INITIATE_REPAIR_HINT1_VALID_INDEX_ENTRY: u32 = 536870912; +pub const FILE_INITIATE_REPAIR_HINT1_OUT_OF_GENERIC_NAMES: u32 = 1073741824; +pub const FILE_INITIATE_REPAIR_HINT1_OUT_OF_RESOURCE: u32 = 2147483648; +pub const FILE_INITIATE_REPAIR_HINT1_INVALID_LCN: u64 = 4294967296; +pub const FILE_INITIATE_REPAIR_HINT1_INVALID_VCN: u64 = 8589934592; +pub const FILE_INITIATE_REPAIR_HINT1_NAME_CONFLICT: u64 = 17179869184; +pub const FILE_INITIATE_REPAIR_HINT1_ORPHAN: u64 = 34359738368; +pub const FILE_INITIATE_REPAIR_HINT1_ATTRIBUTE_TOO_SMALL: u64 = 68719476736; +pub const FILE_INITIATE_REPAIR_HINT1_ATTRIBUTE_NON_RESIDENT: u64 = 137438953472; +pub const FILE_INITIATE_REPAIR_HINT1_DENY_DEFRAG: u64 = 274877906944; +pub const FILE_INITIATE_REPAIR_HINT1_PREVIOUS_PARENT_STILL_VALID: u64 = 549755813888; +pub const FILE_INITIATE_REPAIR_HINT1_INDEX_ENTRY_MISMATCH: u64 = 1099511627776; +pub const FILE_INITIATE_REPAIR_HINT1_INVALID_ORPHAN_RECOVERY_NAME: u64 = 2199023255552; +pub const FILE_INITIATE_REPAIR_HINT1_MULTIPLE_FILE_NAME_ATTRIBUTES: u64 = 4398046511104; +pub const TXFS_RM_FLAG_LOGGING_MODE: u32 = 1; +pub const TXFS_RM_FLAG_RENAME_RM: u32 = 2; +pub const TXFS_RM_FLAG_LOG_CONTAINER_COUNT_MAX: u32 = 4; +pub const TXFS_RM_FLAG_LOG_CONTAINER_COUNT_MIN: u32 = 8; +pub const TXFS_RM_FLAG_LOG_GROWTH_INCREMENT_NUM_CONTAINERS: u32 = 16; +pub const TXFS_RM_FLAG_LOG_GROWTH_INCREMENT_PERCENT: u32 = 32; +pub const TXFS_RM_FLAG_LOG_AUTO_SHRINK_PERCENTAGE: u32 = 64; +pub const TXFS_RM_FLAG_LOG_NO_CONTAINER_COUNT_MAX: u32 = 128; +pub const TXFS_RM_FLAG_LOG_NO_CONTAINER_COUNT_MIN: u32 = 256; +pub const TXFS_RM_FLAG_GROW_LOG: u32 = 1024; +pub const TXFS_RM_FLAG_SHRINK_LOG: u32 = 2048; +pub const TXFS_RM_FLAG_ENFORCE_MINIMUM_SIZE: u32 = 4096; +pub const TXFS_RM_FLAG_PRESERVE_CHANGES: u32 = 8192; +pub const TXFS_RM_FLAG_RESET_RM_AT_NEXT_START: u32 = 16384; +pub const TXFS_RM_FLAG_DO_NOT_RESET_RM_AT_NEXT_START: u32 = 32768; +pub const TXFS_RM_FLAG_PREFER_CONSISTENCY: u32 = 65536; +pub const TXFS_RM_FLAG_PREFER_AVAILABILITY: u32 = 131072; +pub const TXFS_LOGGING_MODE_SIMPLE: u32 = 1; +pub const TXFS_LOGGING_MODE_FULL: u32 = 2; +pub const TXFS_TRANSACTION_STATE_NONE: u32 = 0; +pub const TXFS_TRANSACTION_STATE_ACTIVE: u32 = 1; +pub const TXFS_TRANSACTION_STATE_PREPARED: u32 = 2; +pub const TXFS_TRANSACTION_STATE_NOTACTIVE: u32 = 3; +pub const TXFS_MODIFY_RM_VALID_FLAGS: u32 = 261631; +pub const TXFS_RM_STATE_NOT_STARTED: u32 = 0; +pub const TXFS_RM_STATE_STARTING: u32 = 1; +pub const TXFS_RM_STATE_ACTIVE: u32 = 2; +pub const TXFS_RM_STATE_SHUTTING_DOWN: u32 = 3; +pub const TXFS_QUERY_RM_INFORMATION_VALID_FLAGS: u32 = 246192; +pub const TXFS_ROLLFORWARD_REDO_FLAG_USE_LAST_REDO_LSN: u32 = 1; +pub const TXFS_ROLLFORWARD_REDO_FLAG_USE_LAST_VIRTUAL_CLOCK: u32 = 2; +pub const TXFS_ROLLFORWARD_REDO_VALID_FLAGS: u32 = 3; +pub const TXFS_START_RM_FLAG_LOG_CONTAINER_COUNT_MAX: u32 = 1; +pub const TXFS_START_RM_FLAG_LOG_CONTAINER_COUNT_MIN: u32 = 2; +pub const TXFS_START_RM_FLAG_LOG_CONTAINER_SIZE: u32 = 4; +pub const TXFS_START_RM_FLAG_LOG_GROWTH_INCREMENT_NUM_CONTAINERS: u32 = 8; +pub const TXFS_START_RM_FLAG_LOG_GROWTH_INCREMENT_PERCENT: u32 = 16; +pub const TXFS_START_RM_FLAG_LOG_AUTO_SHRINK_PERCENTAGE: u32 = 32; +pub const TXFS_START_RM_FLAG_LOG_NO_CONTAINER_COUNT_MAX: u32 = 64; +pub const TXFS_START_RM_FLAG_LOG_NO_CONTAINER_COUNT_MIN: u32 = 128; +pub const TXFS_START_RM_FLAG_RECOVER_BEST_EFFORT: u32 = 512; +pub const TXFS_START_RM_FLAG_LOGGING_MODE: u32 = 1024; +pub const TXFS_START_RM_FLAG_PRESERVE_CHANGES: u32 = 2048; +pub const TXFS_START_RM_FLAG_PREFER_CONSISTENCY: u32 = 4096; +pub const TXFS_START_RM_FLAG_PREFER_AVAILABILITY: u32 = 8192; +pub const TXFS_START_RM_VALID_FLAGS: u32 = 15999; +pub const TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY_FLAG_CREATED: u32 = 1; +pub const TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY_FLAG_DELETED: u32 = 2; +pub const TXFS_TRANSACTED_VERSION_NONTRANSACTED: u32 = 4294967294; +pub const TXFS_TRANSACTED_VERSION_UNCOMMITTED: u32 = 4294967295; +pub const TXFS_SAVEPOINT_SET: u32 = 1; +pub const TXFS_SAVEPOINT_ROLLBACK: u32 = 2; +pub const TXFS_SAVEPOINT_CLEAR: u32 = 4; +pub const TXFS_SAVEPOINT_CLEAR_ALL: u32 = 16; +pub const PERSISTENT_VOLUME_STATE_SHORT_NAME_CREATION_DISABLED: u32 = 1; +pub const PERSISTENT_VOLUME_STATE_VOLUME_SCRUB_DISABLED: u32 = 2; +pub const PERSISTENT_VOLUME_STATE_GLOBAL_METADATA_NO_SEEK_PENALTY: u32 = 4; +pub const PERSISTENT_VOLUME_STATE_LOCAL_METADATA_NO_SEEK_PENALTY: u32 = 8; +pub const PERSISTENT_VOLUME_STATE_NO_HEAT_GATHERING: u32 = 16; +pub const PERSISTENT_VOLUME_STATE_CONTAINS_BACKING_WIM: u32 = 32; +pub const PERSISTENT_VOLUME_STATE_BACKED_BY_WIM: u32 = 64; +pub const PERSISTENT_VOLUME_STATE_NO_WRITE_AUTO_TIERING: u32 = 128; +pub const PERSISTENT_VOLUME_STATE_TXF_DISABLED: u32 = 256; +pub const PERSISTENT_VOLUME_STATE_REALLOCATE_ALL_DATA_WRITES: u32 = 512; +pub const PERSISTENT_VOLUME_STATE_CHKDSK_RAN_ONCE: u32 = 1024; +pub const PERSISTENT_VOLUME_STATE_MODIFIED_BY_CHKDSK: u32 = 2048; +pub const PERSISTENT_VOLUME_STATE_DAX_FORMATTED: u32 = 4096; +pub const OPLOCK_LEVEL_CACHE_READ: u32 = 1; +pub const OPLOCK_LEVEL_CACHE_HANDLE: u32 = 2; +pub const OPLOCK_LEVEL_CACHE_WRITE: u32 = 4; +pub const REQUEST_OPLOCK_INPUT_FLAG_REQUEST: u32 = 1; +pub const REQUEST_OPLOCK_INPUT_FLAG_ACK: u32 = 2; +pub const REQUEST_OPLOCK_INPUT_FLAG_COMPLETE_ACK_ON_CLOSE: u32 = 4; +pub const REQUEST_OPLOCK_CURRENT_VERSION: u32 = 1; +pub const REQUEST_OPLOCK_OUTPUT_FLAG_ACK_REQUIRED: u32 = 1; +pub const REQUEST_OPLOCK_OUTPUT_FLAG_MODES_PROVIDED: u32 = 2; +pub const QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_HOST_VOLUMES: u32 = 1; +pub const QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_GUEST_VOLUMES: u32 = 2; +pub const SD_GLOBAL_CHANGE_TYPE_MACHINE_SID: u32 = 1; +pub const SD_GLOBAL_CHANGE_TYPE_QUERY_STATS: u32 = 65536; +pub const SD_GLOBAL_CHANGE_TYPE_ENUM_SDS: u32 = 131072; +pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_FLAG_PAGE_FILE: u32 = 1; +pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_FLAG_DENY_DEFRAG_SET: u32 = 2; +pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_FLAG_FS_SYSTEM_FILE: u32 = 4; +pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_FLAG_TXF_SYSTEM_FILE: u32 = 8; +pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_ATTRIBUTE_MASK: u32 = 4278190080; +pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_ATTRIBUTE_DATA: u32 = 16777216; +pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_ATTRIBUTE_INDEX: u32 = 33554432; +pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_ATTRIBUTE_SYSTEM: u32 = 50331648; +pub const FILE_TYPE_NOTIFICATION_FLAG_USAGE_BEGIN: u32 = 1; +pub const FILE_TYPE_NOTIFICATION_FLAG_USAGE_END: u32 = 2; +pub const CSV_MGMTLOCK_CHECK_VOLUME_REDIRECTED: u32 = 1; +pub const CSV_INVALID_DEVICE_NUMBER: u32 = 4294967295; +pub const CSV_QUERY_MDS_PATH_V2_VERSION_1: u32 = 1; +pub const CSV_QUERY_MDS_PATH_FLAG_STORAGE_ON_THIS_NODE_IS_CONNECTED: u32 = 1; +pub const CSV_QUERY_MDS_PATH_FLAG_CSV_DIRECT_IO_ENABLED: u32 = 2; +pub const CSV_QUERY_MDS_PATH_FLAG_SMB_BYPASS_CSV_ENABLED: u32 = 4; +pub const QUERY_FILE_LAYOUT_RESTART: u32 = 1; +pub const QUERY_FILE_LAYOUT_INCLUDE_NAMES: u32 = 2; +pub const QUERY_FILE_LAYOUT_INCLUDE_STREAMS: u32 = 4; +pub const QUERY_FILE_LAYOUT_INCLUDE_EXTENTS: u32 = 8; +pub const QUERY_FILE_LAYOUT_INCLUDE_EXTRA_INFO: u32 = 16; +pub const QUERY_FILE_LAYOUT_INCLUDE_STREAMS_WITH_NO_CLUSTERS_ALLOCATED: u32 = 32; +pub const QUERY_FILE_LAYOUT_INCLUDE_FULL_PATH_IN_NAMES: u32 = 64; +pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION: u32 = 128; +pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_DSC_ATTRIBUTE: u32 = 256; +pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_TXF_ATTRIBUTE: u32 = 512; +pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_EFS_ATTRIBUTE: u32 = 1024; +pub const QUERY_FILE_LAYOUT_INCLUDE_ONLY_FILES_WITH_SPECIFIC_ATTRIBUTES: u32 = 2048; +pub const QUERY_FILE_LAYOUT_INCLUDE_FILES_WITH_DSC_ATTRIBUTE: u32 = 4096; +pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_DATA_ATTRIBUTE: u32 = 8192; +pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_REPARSE_ATTRIBUTE: u32 = 16384; +pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_EA_ATTRIBUTE: u32 = 32768; +pub const QUERY_FILE_LAYOUT_SINGLE_INSTANCED: u32 = 1; +pub const FILE_LAYOUT_NAME_ENTRY_PRIMARY: u32 = 1; +pub const FILE_LAYOUT_NAME_ENTRY_DOS: u32 = 2; +pub const STREAM_LAYOUT_ENTRY_IMMOVABLE: u32 = 1; +pub const STREAM_LAYOUT_ENTRY_PINNED: u32 = 2; +pub const STREAM_LAYOUT_ENTRY_RESIDENT: u32 = 4; +pub const STREAM_LAYOUT_ENTRY_NO_CLUSTERS_ALLOCATED: u32 = 8; +pub const STREAM_LAYOUT_ENTRY_HAS_INFORMATION: u32 = 16; +pub const STREAM_EXTENT_ENTRY_AS_RETRIEVAL_POINTERS: u32 = 1; +pub const STREAM_EXTENT_ENTRY_ALL_EXTENTS: u32 = 2; +pub const CHECKSUM_TYPE_UNCHANGED: i32 = -1; +pub const CHECKSUM_TYPE_NONE: u32 = 0; +pub const CHECKSUM_TYPE_CRC32: u32 = 1; +pub const CHECKSUM_TYPE_CRC64: u32 = 2; +pub const CHECKSUM_TYPE_ECC: u32 = 3; +pub const CHECKSUM_TYPE_FIRST_UNUSED_TYPE: u32 = 4; +pub const FSCTL_INTEGRITY_FLAG_CHECKSUM_ENFORCEMENT_OFF: u32 = 1; +pub const OFFLOAD_READ_FLAG_ALL_ZERO_BEYOND_CURRENT_RANGE: u32 = 1; +pub const SET_PURGE_FAILURE_MODE_ENABLED: u32 = 1; +pub const SET_PURGE_FAILURE_MODE_DISABLED: u32 = 2; +pub const FILE_REGION_USAGE_VALID_CACHED_DATA: u32 = 1; +pub const FILE_REGION_USAGE_VALID_NONCACHED_DATA: u32 = 2; +pub const FILE_REGION_USAGE_OTHER_PAGE_ALIGNMENT: u32 = 4; +pub const FILE_REGION_USAGE_LARGE_PAGE_ALIGNMENT: u32 = 8; +pub const FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT: u32 = 16; +pub const FILE_REGION_USAGE_QUERY_ALIGNMENT: u32 = 24; +pub const VALID_WRITE_USN_REASON_MASK: u32 = 2147483649; +pub const FILE_STORAGE_TIER_NAME_LENGTH: u32 = 256; +pub const FILE_STORAGE_TIER_DESCRIPTION_LENGTH: u32 = 512; +pub const FILE_STORAGE_TIER_FLAG_NO_SEEK_PENALTY: u32 = 131072; +pub const FILE_STORAGE_TIER_FLAG_WRITE_BACK_CACHE: u32 = 2097152; +pub const FILE_STORAGE_TIER_FLAG_READ_CACHE: u32 = 4194304; +pub const FILE_STORAGE_TIER_FLAG_PARITY: u32 = 8388608; +pub const FILE_STORAGE_TIER_FLAG_SMR: u32 = 16777216; +pub const QUERY_STORAGE_CLASSES_FLAGS_MEASURE_WRITE: u32 = 2147483648; +pub const QUERY_STORAGE_CLASSES_FLAGS_MEASURE_READ: u32 = 1073741824; +pub const QUERY_STORAGE_CLASSES_FLAGS_NO_DEFRAG_VOLUME: u32 = 536870912; +pub const QUERY_FILE_LAYOUT_REPARSE_DATA_INVALID: u32 = 1; +pub const QUERY_FILE_LAYOUT_REPARSE_TAG_INVALID: u32 = 2; +pub const DUPLICATE_EXTENTS_DATA_EX_SOURCE_ATOMIC: u32 = 1; +pub const DUPLICATE_EXTENTS_DATA_EX_ASYNC: u32 = 2; +pub const REFS_SMR_VOLUME_INFO_OUTPUT_VERSION_V0: u32 = 0; +pub const REFS_SMR_VOLUME_INFO_OUTPUT_VERSION_V1: u32 = 1; +pub const REFS_SMR_VOLUME_GC_PARAMETERS_VERSION_V1: u32 = 1; +pub const STREAMS_INVALID_ID: u32 = 0; +pub const STREAMS_MAX_ID: u32 = 65535; +pub const STREAMS_ASSOCIATE_ID_CLEAR: u32 = 1; +pub const STREAMS_ASSOCIATE_ID_SET: u32 = 2; +pub const DAX_ALLOC_ALIGNMENT_FLAG_MANDATORY: u32 = 1; +pub const DAX_ALLOC_ALIGNMENT_FLAG_FALLBACK_SPECIFIED: u32 = 2; +pub const WOF_CURRENT_VERSION: u32 = 1; +pub const WOF_PROVIDER_WIM: u32 = 1; +pub const WOF_PROVIDER_FILE: u32 = 2; +pub const WOF_PROVIDER_CLOUD: u32 = 3; +pub const WIM_PROVIDER_HASH_SIZE: u32 = 20; +pub const WIM_PROVIDER_CURRENT_VERSION: u32 = 1; +pub const WIM_PROVIDER_EXTERNAL_FLAG_NOT_ACTIVE: u32 = 1; +pub const WIM_PROVIDER_EXTERNAL_FLAG_SUSPENDED: u32 = 2; +pub const WIM_BOOT_OS_WIM: u32 = 1; +pub const WIM_BOOT_NOT_OS_WIM: u32 = 0; +pub const FILE_PROVIDER_CURRENT_VERSION: u32 = 1; +pub const FILE_PROVIDER_SINGLE_FILE: u32 = 1; +pub const FILE_PROVIDER_COMPRESSION_XPRESS4K: u32 = 0; +pub const FILE_PROVIDER_COMPRESSION_LZX: u32 = 1; +pub const FILE_PROVIDER_COMPRESSION_XPRESS8K: u32 = 2; +pub const FILE_PROVIDER_COMPRESSION_XPRESS16K: u32 = 3; +pub const FILE_PROVIDER_COMPRESSION_MAXIMUM: u32 = 4; +pub const FILE_PROVIDER_FLAG_COMPRESS_ON_WRITE: u32 = 1; +pub const CONTAINER_VOLUME_STATE_HOSTING_CONTAINER: u32 = 1; +pub const CONTAINER_ROOT_INFO_FLAG_SCRATCH_ROOT: u32 = 1; +pub const CONTAINER_ROOT_INFO_FLAG_LAYER_ROOT: u32 = 2; +pub const CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_ROOT: u32 = 4; +pub const CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_TARGET_ROOT: u32 = 8; +pub const CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_EXCEPTION_ROOT: u32 = 16; +pub const CONTAINER_ROOT_INFO_FLAG_BIND_ROOT: u32 = 32; +pub const CONTAINER_ROOT_INFO_FLAG_BIND_TARGET_ROOT: u32 = 64; +pub const CONTAINER_ROOT_INFO_FLAG_BIND_EXCEPTION_ROOT: u32 = 128; +pub const CONTAINER_ROOT_INFO_FLAG_BIND_DO_NOT_MAP_NAME: u32 = 256; +pub const CONTAINER_ROOT_INFO_FLAG_UNION_LAYER_ROOT: u32 = 512; +pub const CONTAINER_ROOT_INFO_VALID_FLAGS: u32 = 1023; +pub const PROJFS_PROTOCOL_VERSION: u32 = 3; +pub const IOCTL_VOLUME_BASE: u32 = 86; +pub const EFS_TRACKED_OFFSET_HEADER_FLAG: u32 = 1; +pub const SPACES_TRACKED_OFFSET_HEADER_FLAG: u32 = 2; +pub const SCARD_ATR_LENGTH: u32 = 33; +pub const SCARD_PROTOCOL_UNDEFINED: u32 = 0; +pub const SCARD_PROTOCOL_T0: u32 = 1; +pub const SCARD_PROTOCOL_T1: u32 = 2; +pub const SCARD_PROTOCOL_RAW: u32 = 65536; +pub const SCARD_PROTOCOL_Tx: u32 = 3; +pub const SCARD_PROTOCOL_DEFAULT: u32 = 2147483648; +pub const SCARD_PROTOCOL_OPTIMAL: u32 = 0; +pub const SCARD_POWER_DOWN: u32 = 0; +pub const SCARD_COLD_RESET: u32 = 1; +pub const SCARD_WARM_RESET: u32 = 2; +pub const MAXIMUM_ATTR_STRING_LENGTH: u32 = 32; +pub const MAXIMUM_SMARTCARD_READERS: u32 = 10; +pub const SCARD_CLASS_VENDOR_INFO: u32 = 1; +pub const SCARD_CLASS_COMMUNICATIONS: u32 = 2; +pub const SCARD_CLASS_PROTOCOL: u32 = 3; +pub const SCARD_CLASS_POWER_MGMT: u32 = 4; +pub const SCARD_CLASS_SECURITY: u32 = 5; +pub const SCARD_CLASS_MECHANICAL: u32 = 6; +pub const SCARD_CLASS_VENDOR_DEFINED: u32 = 7; +pub const SCARD_CLASS_IFD_PROTOCOL: u32 = 8; +pub const SCARD_CLASS_ICC_STATE: u32 = 9; +pub const SCARD_CLASS_PERF: u32 = 32766; +pub const SCARD_CLASS_SYSTEM: u32 = 32767; +pub const SCARD_T0_HEADER_LENGTH: u32 = 7; +pub const SCARD_T0_CMD_LENGTH: u32 = 5; +pub const SCARD_T1_PROLOGUE_LENGTH: u32 = 3; +pub const SCARD_T1_EPILOGUE_LENGTH: u32 = 2; +pub const SCARD_T1_EPILOGUE_LENGTH_LRC: u32 = 1; +pub const SCARD_T1_MAX_IFS: u32 = 254; +pub const SCARD_UNKNOWN: u32 = 0; +pub const SCARD_ABSENT: u32 = 1; +pub const SCARD_PRESENT: u32 = 2; +pub const SCARD_SWALLOWED: u32 = 3; +pub const SCARD_POWERED: u32 = 4; +pub const SCARD_NEGOTIABLE: u32 = 5; +pub const SCARD_SPECIFIC: u32 = 6; +pub const SCARD_READER_SWALLOWS: u32 = 1; +pub const SCARD_READER_EJECTS: u32 = 2; +pub const SCARD_READER_CONFISCATES: u32 = 4; +pub const SCARD_READER_CONTACTLESS: u32 = 8; +pub const SCARD_READER_TYPE_SERIAL: u32 = 1; +pub const SCARD_READER_TYPE_PARALELL: u32 = 2; +pub const SCARD_READER_TYPE_KEYBOARD: u32 = 4; +pub const SCARD_READER_TYPE_SCSI: u32 = 8; +pub const SCARD_READER_TYPE_IDE: u32 = 16; +pub const SCARD_READER_TYPE_USB: u32 = 32; +pub const SCARD_READER_TYPE_PCMCIA: u32 = 64; +pub const SCARD_READER_TYPE_TPM: u32 = 128; +pub const SCARD_READER_TYPE_NFC: u32 = 256; +pub const SCARD_READER_TYPE_UICC: u32 = 512; +pub const SCARD_READER_TYPE_NGC: u32 = 1024; +pub const SCARD_READER_TYPE_EMBEDDEDSE: u32 = 2048; +pub const SCARD_READER_TYPE_VENDOR: u32 = 240; +pub const SCARD_SCOPE_USER: u32 = 0; +pub const SCARD_SCOPE_TERMINAL: u32 = 1; +pub const SCARD_SCOPE_SYSTEM: u32 = 2; +pub const SCARD_PROVIDER_PRIMARY: u32 = 1; +pub const SCARD_PROVIDER_CSP: u32 = 2; +pub const SCARD_PROVIDER_KSP: u32 = 3; +pub const SCARD_STATE_UNAWARE: u32 = 0; +pub const SCARD_STATE_IGNORE: u32 = 1; +pub const SCARD_STATE_CHANGED: u32 = 2; +pub const SCARD_STATE_UNKNOWN: u32 = 4; +pub const SCARD_STATE_UNAVAILABLE: u32 = 8; +pub const SCARD_STATE_EMPTY: u32 = 16; +pub const SCARD_STATE_PRESENT: u32 = 32; +pub const SCARD_STATE_ATRMATCH: u32 = 64; +pub const SCARD_STATE_EXCLUSIVE: u32 = 128; +pub const SCARD_STATE_INUSE: u32 = 256; +pub const SCARD_STATE_MUTE: u32 = 512; +pub const SCARD_STATE_UNPOWERED: u32 = 1024; +pub const SCARD_SHARE_EXCLUSIVE: u32 = 1; +pub const SCARD_SHARE_SHARED: u32 = 2; +pub const SCARD_SHARE_DIRECT: u32 = 3; +pub const SCARD_LEAVE_CARD: u32 = 0; +pub const SCARD_RESET_CARD: u32 = 1; +pub const SCARD_UNPOWER_CARD: u32 = 2; +pub const SCARD_EJECT_CARD: u32 = 3; +pub const SC_DLG_MINIMAL_UI: u32 = 1; +pub const SC_DLG_NO_UI: u32 = 2; +pub const SC_DLG_FORCE_UI: u32 = 4; +pub const SCERR_NOCARDNAME: u32 = 16384; +pub const SCERR_NOGUIDS: u32 = 32768; +pub const SCARD_AUDIT_CHV_FAILURE: u32 = 0; +pub const SCARD_AUDIT_CHV_SUCCESS: u32 = 1; +pub const MAXPROPPAGES: u32 = 100; +pub const PSP_DEFAULT: u32 = 0; +pub const PSP_DLGINDIRECT: u32 = 1; +pub const PSP_USEHICON: u32 = 2; +pub const PSP_USEICONID: u32 = 4; +pub const PSP_USETITLE: u32 = 8; +pub const PSP_RTLREADING: u32 = 16; +pub const PSP_HASHELP: u32 = 32; +pub const PSP_USEREFPARENT: u32 = 64; +pub const PSP_USECALLBACK: u32 = 128; +pub const PSP_PREMATURE: u32 = 1024; +pub const PSP_HIDEHEADER: u32 = 2048; +pub const PSP_USEHEADERTITLE: u32 = 4096; +pub const PSP_USEHEADERSUBTITLE: u32 = 8192; +pub const PSP_USEFUSIONCONTEXT: u32 = 16384; +pub const PSPCB_ADDREF: u32 = 0; +pub const PSPCB_RELEASE: u32 = 1; +pub const PSPCB_CREATE: u32 = 2; +pub const PSH_DEFAULT: u32 = 0; +pub const PSH_PROPTITLE: u32 = 1; +pub const PSH_USEHICON: u32 = 2; +pub const PSH_USEICONID: u32 = 4; +pub const PSH_PROPSHEETPAGE: u32 = 8; +pub const PSH_WIZARDHASFINISH: u32 = 16; +pub const PSH_WIZARD: u32 = 32; +pub const PSH_USEPSTARTPAGE: u32 = 64; +pub const PSH_NOAPPLYNOW: u32 = 128; +pub const PSH_USECALLBACK: u32 = 256; +pub const PSH_HASHELP: u32 = 512; +pub const PSH_MODELESS: u32 = 1024; +pub const PSH_RTLREADING: u32 = 2048; +pub const PSH_WIZARDCONTEXTHELP: u32 = 4096; +pub const PSH_WIZARD97: u32 = 16777216; +pub const PSH_WATERMARK: u32 = 32768; +pub const PSH_USEHBMWATERMARK: u32 = 65536; +pub const PSH_USEHPLWATERMARK: u32 = 131072; +pub const PSH_STRETCHWATERMARK: u32 = 262144; +pub const PSH_HEADER: u32 = 524288; +pub const PSH_USEHBMHEADER: u32 = 1048576; +pub const PSH_USEPAGELANG: u32 = 2097152; +pub const PSH_WIZARD_LITE: u32 = 4194304; +pub const PSH_NOCONTEXTHELP: u32 = 33554432; +pub const PSH_AEROWIZARD: u32 = 16384; +pub const PSH_RESIZABLE: u32 = 67108864; +pub const PSH_HEADERBITMAP: u32 = 134217728; +pub const PSH_NOMARGIN: u32 = 268435456; +pub const PSCB_INITIALIZED: u32 = 1; +pub const PSCB_PRECREATE: u32 = 2; +pub const PSCB_BUTTONPRESSED: u32 = 3; +pub const PSN_FIRST: i32 = -200; +pub const PSN_LAST: i32 = -299; +pub const PSN_SETACTIVE: i32 = -200; +pub const PSN_KILLACTIVE: i32 = -201; +pub const PSN_APPLY: i32 = -202; +pub const PSN_RESET: i32 = -203; +pub const PSN_HELP: i32 = -205; +pub const PSN_WIZBACK: i32 = -206; +pub const PSN_WIZNEXT: i32 = -207; +pub const PSN_WIZFINISH: i32 = -208; +pub const PSN_QUERYCANCEL: i32 = -209; +pub const PSN_GETOBJECT: i32 = -210; +pub const PSN_TRANSLATEACCELERATOR: i32 = -212; +pub const PSN_QUERYINITIALFOCUS: i32 = -213; +pub const PSNRET_NOERROR: u32 = 0; +pub const PSNRET_INVALID: u32 = 1; +pub const PSNRET_INVALID_NOCHANGEPAGE: u32 = 2; +pub const PSNRET_MESSAGEHANDLED: u32 = 3; +pub const PSM_SETCURSEL: u32 = 1125; +pub const PSM_REMOVEPAGE: u32 = 1126; +pub const PSM_ADDPAGE: u32 = 1127; +pub const PSM_CHANGED: u32 = 1128; +pub const PSM_RESTARTWINDOWS: u32 = 1129; +pub const PSM_REBOOTSYSTEM: u32 = 1130; +pub const PSM_CANCELTOCLOSE: u32 = 1131; +pub const PSM_QUERYSIBLINGS: u32 = 1132; +pub const PSM_UNCHANGED: u32 = 1133; +pub const PSM_APPLY: u32 = 1134; +pub const PSM_SETTITLEA: u32 = 1135; +pub const PSM_SETTITLEW: u32 = 1144; +pub const PSM_SETTITLE: u32 = 1135; +pub const PSM_SETWIZBUTTONS: u32 = 1136; +pub const PSWIZB_BACK: u32 = 1; +pub const PSWIZB_NEXT: u32 = 2; +pub const PSWIZB_FINISH: u32 = 4; +pub const PSWIZB_DISABLEDFINISH: u32 = 8; +pub const PSWIZBF_ELEVATIONREQUIRED: u32 = 1; +pub const PSWIZB_CANCEL: u32 = 16; +pub const PSM_PRESSBUTTON: u32 = 1137; +pub const PSBTN_BACK: u32 = 0; +pub const PSBTN_NEXT: u32 = 1; +pub const PSBTN_FINISH: u32 = 2; +pub const PSBTN_OK: u32 = 3; +pub const PSBTN_APPLYNOW: u32 = 4; +pub const PSBTN_CANCEL: u32 = 5; +pub const PSBTN_HELP: u32 = 6; +pub const PSBTN_MAX: u32 = 6; +pub const PSM_SETCURSELID: u32 = 1138; +pub const PSM_SETFINISHTEXTA: u32 = 1139; +pub const PSM_SETFINISHTEXTW: u32 = 1145; +pub const PSM_SETFINISHTEXT: u32 = 1139; +pub const PSM_GETTABCONTROL: u32 = 1140; +pub const PSM_ISDIALOGMESSAGE: u32 = 1141; +pub const PSM_GETCURRENTPAGEHWND: u32 = 1142; +pub const PSM_INSERTPAGE: u32 = 1143; +pub const PSM_SETHEADERTITLEA: u32 = 1149; +pub const PSM_SETHEADERTITLEW: u32 = 1150; +pub const PSM_SETHEADERTITLE: u32 = 1149; +pub const PSM_SETHEADERSUBTITLEA: u32 = 1151; +pub const PSM_SETHEADERSUBTITLEW: u32 = 1152; +pub const PSM_SETHEADERSUBTITLE: u32 = 1151; +pub const PSM_HWNDTOINDEX: u32 = 1153; +pub const PSM_INDEXTOHWND: u32 = 1154; +pub const PSM_PAGETOINDEX: u32 = 1155; +pub const PSM_INDEXTOPAGE: u32 = 1156; +pub const PSM_IDTOINDEX: u32 = 1157; +pub const PSM_INDEXTOID: u32 = 1158; +pub const PSM_GETRESULT: u32 = 1159; +pub const PSM_RECALCPAGESIZES: u32 = 1160; +pub const PSM_SETNEXTTEXTW: u32 = 1161; +pub const PSM_SETNEXTTEXT: u32 = 1161; +pub const PSWIZB_SHOW: u32 = 0; +pub const PSWIZB_RESTORE: u32 = 1; +pub const PSM_SHOWWIZBUTTONS: u32 = 1162; +pub const PSM_ENABLEWIZBUTTONS: u32 = 1163; +pub const PSM_SETBUTTONTEXTW: u32 = 1164; +pub const PSM_SETBUTTONTEXT: u32 = 1164; +pub const ID_PSRESTARTWINDOWS: u32 = 2; +pub const ID_PSREBOOTSYSTEM: u32 = 3; +pub const WIZ_CXDLG: u32 = 276; +pub const WIZ_CYDLG: u32 = 140; +pub const WIZ_CXBMP: u32 = 80; +pub const WIZ_BODYX: u32 = 92; +pub const WIZ_BODYCX: u32 = 184; +pub const PROP_SM_CXDLG: u32 = 212; +pub const PROP_SM_CYDLG: u32 = 188; +pub const PROP_MED_CXDLG: u32 = 227; +pub const PROP_MED_CYDLG: u32 = 215; +pub const PROP_LG_CXDLG: u32 = 252; +pub const PROP_LG_CYDLG: u32 = 218; +pub const DSPRINT_PUBLISH: u32 = 1; +pub const DSPRINT_UPDATE: u32 = 2; +pub const DSPRINT_UNPUBLISH: u32 = 4; +pub const DSPRINT_REPUBLISH: u32 = 8; +pub const DSPRINT_PENDING: u32 = 2147483648; +pub const PRINTER_CONTROL_PAUSE: u32 = 1; +pub const PRINTER_CONTROL_RESUME: u32 = 2; +pub const PRINTER_CONTROL_PURGE: u32 = 3; +pub const PRINTER_CONTROL_SET_STATUS: u32 = 4; +pub const PRINTER_STATUS_PAUSED: u32 = 1; +pub const PRINTER_STATUS_ERROR: u32 = 2; +pub const PRINTER_STATUS_PENDING_DELETION: u32 = 4; +pub const PRINTER_STATUS_PAPER_JAM: u32 = 8; +pub const PRINTER_STATUS_PAPER_OUT: u32 = 16; +pub const PRINTER_STATUS_MANUAL_FEED: u32 = 32; +pub const PRINTER_STATUS_PAPER_PROBLEM: u32 = 64; +pub const PRINTER_STATUS_OFFLINE: u32 = 128; +pub const PRINTER_STATUS_IO_ACTIVE: u32 = 256; +pub const PRINTER_STATUS_BUSY: u32 = 512; +pub const PRINTER_STATUS_PRINTING: u32 = 1024; +pub const PRINTER_STATUS_OUTPUT_BIN_FULL: u32 = 2048; +pub const PRINTER_STATUS_NOT_AVAILABLE: u32 = 4096; +pub const PRINTER_STATUS_WAITING: u32 = 8192; +pub const PRINTER_STATUS_PROCESSING: u32 = 16384; +pub const PRINTER_STATUS_INITIALIZING: u32 = 32768; +pub const PRINTER_STATUS_WARMING_UP: u32 = 65536; +pub const PRINTER_STATUS_TONER_LOW: u32 = 131072; +pub const PRINTER_STATUS_NO_TONER: u32 = 262144; +pub const PRINTER_STATUS_PAGE_PUNT: u32 = 524288; +pub const PRINTER_STATUS_USER_INTERVENTION: u32 = 1048576; +pub const PRINTER_STATUS_OUT_OF_MEMORY: u32 = 2097152; +pub const PRINTER_STATUS_DOOR_OPEN: u32 = 4194304; +pub const PRINTER_STATUS_SERVER_UNKNOWN: u32 = 8388608; +pub const PRINTER_STATUS_POWER_SAVE: u32 = 16777216; +pub const PRINTER_STATUS_SERVER_OFFLINE: u32 = 33554432; +pub const PRINTER_STATUS_DRIVER_UPDATE_NEEDED: u32 = 67108864; +pub const PRINTER_ATTRIBUTE_QUEUED: u32 = 1; +pub const PRINTER_ATTRIBUTE_DIRECT: u32 = 2; +pub const PRINTER_ATTRIBUTE_DEFAULT: u32 = 4; +pub const PRINTER_ATTRIBUTE_SHARED: u32 = 8; +pub const PRINTER_ATTRIBUTE_NETWORK: u32 = 16; +pub const PRINTER_ATTRIBUTE_HIDDEN: u32 = 32; +pub const PRINTER_ATTRIBUTE_LOCAL: u32 = 64; +pub const PRINTER_ATTRIBUTE_ENABLE_DEVQ: u32 = 128; +pub const PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS: u32 = 256; +pub const PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST: u32 = 512; +pub const PRINTER_ATTRIBUTE_WORK_OFFLINE: u32 = 1024; +pub const PRINTER_ATTRIBUTE_ENABLE_BIDI: u32 = 2048; +pub const PRINTER_ATTRIBUTE_RAW_ONLY: u32 = 4096; +pub const PRINTER_ATTRIBUTE_PUBLISHED: u32 = 8192; +pub const PRINTER_ATTRIBUTE_FAX: u32 = 16384; +pub const PRINTER_ATTRIBUTE_TS: u32 = 32768; +pub const PRINTER_ATTRIBUTE_PUSHED_USER: u32 = 131072; +pub const PRINTER_ATTRIBUTE_PUSHED_MACHINE: u32 = 262144; +pub const PRINTER_ATTRIBUTE_MACHINE: u32 = 524288; +pub const PRINTER_ATTRIBUTE_FRIENDLY_NAME: u32 = 1048576; +pub const PRINTER_ATTRIBUTE_TS_GENERIC_DRIVER: u32 = 2097152; +pub const PRINTER_ATTRIBUTE_PER_USER: u32 = 4194304; +pub const PRINTER_ATTRIBUTE_ENTERPRISE_CLOUD: u32 = 8388608; +pub const NO_PRIORITY: u32 = 0; +pub const MAX_PRIORITY: u32 = 99; +pub const MIN_PRIORITY: u32 = 1; +pub const DEF_PRIORITY: u32 = 1; +pub const JOB_CONTROL_PAUSE: u32 = 1; +pub const JOB_CONTROL_RESUME: u32 = 2; +pub const JOB_CONTROL_CANCEL: u32 = 3; +pub const JOB_CONTROL_RESTART: u32 = 4; +pub const JOB_CONTROL_DELETE: u32 = 5; +pub const JOB_CONTROL_SENT_TO_PRINTER: u32 = 6; +pub const JOB_CONTROL_LAST_PAGE_EJECTED: u32 = 7; +pub const JOB_CONTROL_RETAIN: u32 = 8; +pub const JOB_CONTROL_RELEASE: u32 = 9; +pub const JOB_CONTROL_SEND_TOAST: u32 = 10; +pub const JOB_STATUS_PAUSED: u32 = 1; +pub const JOB_STATUS_ERROR: u32 = 2; +pub const JOB_STATUS_DELETING: u32 = 4; +pub const JOB_STATUS_SPOOLING: u32 = 8; +pub const JOB_STATUS_PRINTING: u32 = 16; +pub const JOB_STATUS_OFFLINE: u32 = 32; +pub const JOB_STATUS_PAPEROUT: u32 = 64; +pub const JOB_STATUS_PRINTED: u32 = 128; +pub const JOB_STATUS_DELETED: u32 = 256; +pub const JOB_STATUS_BLOCKED_DEVQ: u32 = 512; +pub const JOB_STATUS_USER_INTERVENTION: u32 = 1024; +pub const JOB_STATUS_RESTART: u32 = 2048; +pub const JOB_STATUS_COMPLETE: u32 = 4096; +pub const JOB_STATUS_RETAINED: u32 = 8192; +pub const JOB_STATUS_RENDERING_LOCALLY: u32 = 16384; +pub const JOB_POSITION_UNSPECIFIED: u32 = 0; +pub const PRINTER_DRIVER_PACKAGE_AWARE: u32 = 1; +pub const PRINTER_DRIVER_XPS: u32 = 2; +pub const PRINTER_DRIVER_SANDBOX_ENABLED: u32 = 4; +pub const PRINTER_DRIVER_CLASS: u32 = 8; +pub const PRINTER_DRIVER_DERIVED: u32 = 16; +pub const PRINTER_DRIVER_NOT_SHAREABLE: u32 = 32; +pub const PRINTER_DRIVER_CATEGORY_FAX: u32 = 64; +pub const PRINTER_DRIVER_CATEGORY_FILE: u32 = 128; +pub const PRINTER_DRIVER_CATEGORY_VIRTUAL: u32 = 256; +pub const PRINTER_DRIVER_CATEGORY_SERVICE: u32 = 512; +pub const PRINTER_DRIVER_SOFT_RESET_REQUIRED: u32 = 1024; +pub const PRINTER_DRIVER_SANDBOX_DISABLED: u32 = 2048; +pub const PRINTER_DRIVER_CATEGORY_3D: u32 = 4096; +pub const PRINTER_DRIVER_CATEGORY_CLOUD: u32 = 8192; +pub const DRIVER_KERNELMODE: u32 = 1; +pub const DRIVER_USERMODE: u32 = 2; +pub const DPD_DELETE_UNUSED_FILES: u32 = 1; +pub const DPD_DELETE_SPECIFIC_VERSION: u32 = 2; +pub const DPD_DELETE_ALL_FILES: u32 = 4; +pub const APD_STRICT_UPGRADE: u32 = 1; +pub const APD_STRICT_DOWNGRADE: u32 = 2; +pub const APD_COPY_ALL_FILES: u32 = 4; +pub const APD_COPY_NEW_FILES: u32 = 8; +pub const APD_COPY_FROM_DIRECTORY: u32 = 16; +pub const STRING_NONE: u32 = 1; +pub const STRING_MUIDLL: u32 = 2; +pub const STRING_LANGPAIR: u32 = 4; +pub const MAX_FORM_KEYWORD_LENGTH: u32 = 64; +pub const DI_CHANNEL: u32 = 1; +pub const DI_READ_SPOOL_JOB: u32 = 3; +pub const DI_MEMORYMAP_WRITE: u32 = 1; +pub const FORM_USER: u32 = 0; +pub const FORM_BUILTIN: u32 = 1; +pub const FORM_PRINTER: u32 = 2; +pub const NORMAL_PRINT: u32 = 0; +pub const REVERSE_PRINT: u32 = 1; +pub const PPCAPS_RIGHT_THEN_DOWN: u32 = 1; +pub const PPCAPS_DOWN_THEN_RIGHT: u32 = 2; +pub const PPCAPS_LEFT_THEN_DOWN: u32 = 4; +pub const PPCAPS_DOWN_THEN_LEFT: u32 = 8; +pub const PPCAPS_BORDER_PRINT: u32 = 1; +pub const PPCAPS_BOOKLET_EDGE: u32 = 1; +pub const PPCAPS_REVERSE_PAGES_FOR_REVERSE_DUPLEX: u32 = 1; +pub const PPCAPS_DONT_SEND_EXTRA_PAGES_FOR_DUPLEX: u32 = 2; +pub const PPCAPS_SQUARE_SCALING: u32 = 1; +pub const PORT_TYPE_WRITE: u32 = 1; +pub const PORT_TYPE_READ: u32 = 2; +pub const PORT_TYPE_REDIRECTED: u32 = 4; +pub const PORT_TYPE_NET_ATTACHED: u32 = 8; +pub const PORT_STATUS_TYPE_ERROR: u32 = 1; +pub const PORT_STATUS_TYPE_WARNING: u32 = 2; +pub const PORT_STATUS_TYPE_INFO: u32 = 3; +pub const PORT_STATUS_OFFLINE: u32 = 1; +pub const PORT_STATUS_PAPER_JAM: u32 = 2; +pub const PORT_STATUS_PAPER_OUT: u32 = 3; +pub const PORT_STATUS_OUTPUT_BIN_FULL: u32 = 4; +pub const PORT_STATUS_PAPER_PROBLEM: u32 = 5; +pub const PORT_STATUS_NO_TONER: u32 = 6; +pub const PORT_STATUS_DOOR_OPEN: u32 = 7; +pub const PORT_STATUS_USER_INTERVENTION: u32 = 8; +pub const PORT_STATUS_OUT_OF_MEMORY: u32 = 9; +pub const PORT_STATUS_TONER_LOW: u32 = 10; +pub const PORT_STATUS_WARMING_UP: u32 = 11; +pub const PORT_STATUS_POWER_SAVE: u32 = 12; +pub const PRINTER_ENUM_DEFAULT: u32 = 1; +pub const PRINTER_ENUM_LOCAL: u32 = 2; +pub const PRINTER_ENUM_CONNECTIONS: u32 = 4; +pub const PRINTER_ENUM_FAVORITE: u32 = 4; +pub const PRINTER_ENUM_NAME: u32 = 8; +pub const PRINTER_ENUM_REMOTE: u32 = 16; +pub const PRINTER_ENUM_SHARED: u32 = 32; +pub const PRINTER_ENUM_NETWORK: u32 = 64; +pub const PRINTER_ENUM_EXPAND: u32 = 16384; +pub const PRINTER_ENUM_CONTAINER: u32 = 32768; +pub const PRINTER_ENUM_ICONMASK: u32 = 16711680; +pub const PRINTER_ENUM_ICON1: u32 = 65536; +pub const PRINTER_ENUM_ICON2: u32 = 131072; +pub const PRINTER_ENUM_ICON3: u32 = 262144; +pub const PRINTER_ENUM_ICON4: u32 = 524288; +pub const PRINTER_ENUM_ICON5: u32 = 1048576; +pub const PRINTER_ENUM_ICON6: u32 = 2097152; +pub const PRINTER_ENUM_ICON7: u32 = 4194304; +pub const PRINTER_ENUM_ICON8: u32 = 8388608; +pub const PRINTER_ENUM_HIDE: u32 = 16777216; +pub const PRINTER_ENUM_CATEGORY_ALL: u32 = 33554432; +pub const PRINTER_ENUM_CATEGORY_3D: u32 = 67108864; +pub const SPOOL_FILE_PERSISTENT: u32 = 1; +pub const SPOOL_FILE_TEMPORARY: u32 = 2; +pub const PRINTER_NOTIFY_TYPE: u32 = 0; +pub const JOB_NOTIFY_TYPE: u32 = 1; +pub const SERVER_NOTIFY_TYPE: u32 = 2; +pub const PRINTER_NOTIFY_FIELD_SERVER_NAME: u32 = 0; +pub const PRINTER_NOTIFY_FIELD_PRINTER_NAME: u32 = 1; +pub const PRINTER_NOTIFY_FIELD_SHARE_NAME: u32 = 2; +pub const PRINTER_NOTIFY_FIELD_PORT_NAME: u32 = 3; +pub const PRINTER_NOTIFY_FIELD_DRIVER_NAME: u32 = 4; +pub const PRINTER_NOTIFY_FIELD_COMMENT: u32 = 5; +pub const PRINTER_NOTIFY_FIELD_LOCATION: u32 = 6; +pub const PRINTER_NOTIFY_FIELD_DEVMODE: u32 = 7; +pub const PRINTER_NOTIFY_FIELD_SEPFILE: u32 = 8; +pub const PRINTER_NOTIFY_FIELD_PRINT_PROCESSOR: u32 = 9; +pub const PRINTER_NOTIFY_FIELD_PARAMETERS: u32 = 10; +pub const PRINTER_NOTIFY_FIELD_DATATYPE: u32 = 11; +pub const PRINTER_NOTIFY_FIELD_SECURITY_DESCRIPTOR: u32 = 12; +pub const PRINTER_NOTIFY_FIELD_ATTRIBUTES: u32 = 13; +pub const PRINTER_NOTIFY_FIELD_PRIORITY: u32 = 14; +pub const PRINTER_NOTIFY_FIELD_DEFAULT_PRIORITY: u32 = 15; +pub const PRINTER_NOTIFY_FIELD_START_TIME: u32 = 16; +pub const PRINTER_NOTIFY_FIELD_UNTIL_TIME: u32 = 17; +pub const PRINTER_NOTIFY_FIELD_STATUS: u32 = 18; +pub const PRINTER_NOTIFY_FIELD_STATUS_STRING: u32 = 19; +pub const PRINTER_NOTIFY_FIELD_CJOBS: u32 = 20; +pub const PRINTER_NOTIFY_FIELD_AVERAGE_PPM: u32 = 21; +pub const PRINTER_NOTIFY_FIELD_TOTAL_PAGES: u32 = 22; +pub const PRINTER_NOTIFY_FIELD_PAGES_PRINTED: u32 = 23; +pub const PRINTER_NOTIFY_FIELD_TOTAL_BYTES: u32 = 24; +pub const PRINTER_NOTIFY_FIELD_BYTES_PRINTED: u32 = 25; +pub const PRINTER_NOTIFY_FIELD_OBJECT_GUID: u32 = 26; +pub const PRINTER_NOTIFY_FIELD_FRIENDLY_NAME: u32 = 27; +pub const PRINTER_NOTIFY_FIELD_BRANCH_OFFICE_PRINTING: u32 = 28; +pub const JOB_NOTIFY_FIELD_PRINTER_NAME: u32 = 0; +pub const JOB_NOTIFY_FIELD_MACHINE_NAME: u32 = 1; +pub const JOB_NOTIFY_FIELD_PORT_NAME: u32 = 2; +pub const JOB_NOTIFY_FIELD_USER_NAME: u32 = 3; +pub const JOB_NOTIFY_FIELD_NOTIFY_NAME: u32 = 4; +pub const JOB_NOTIFY_FIELD_DATATYPE: u32 = 5; +pub const JOB_NOTIFY_FIELD_PRINT_PROCESSOR: u32 = 6; +pub const JOB_NOTIFY_FIELD_PARAMETERS: u32 = 7; +pub const JOB_NOTIFY_FIELD_DRIVER_NAME: u32 = 8; +pub const JOB_NOTIFY_FIELD_DEVMODE: u32 = 9; +pub const JOB_NOTIFY_FIELD_STATUS: u32 = 10; +pub const JOB_NOTIFY_FIELD_STATUS_STRING: u32 = 11; +pub const JOB_NOTIFY_FIELD_SECURITY_DESCRIPTOR: u32 = 12; +pub const JOB_NOTIFY_FIELD_DOCUMENT: u32 = 13; +pub const JOB_NOTIFY_FIELD_PRIORITY: u32 = 14; +pub const JOB_NOTIFY_FIELD_POSITION: u32 = 15; +pub const JOB_NOTIFY_FIELD_SUBMITTED: u32 = 16; +pub const JOB_NOTIFY_FIELD_START_TIME: u32 = 17; +pub const JOB_NOTIFY_FIELD_UNTIL_TIME: u32 = 18; +pub const JOB_NOTIFY_FIELD_TIME: u32 = 19; +pub const JOB_NOTIFY_FIELD_TOTAL_PAGES: u32 = 20; +pub const JOB_NOTIFY_FIELD_PAGES_PRINTED: u32 = 21; +pub const JOB_NOTIFY_FIELD_TOTAL_BYTES: u32 = 22; +pub const JOB_NOTIFY_FIELD_BYTES_PRINTED: u32 = 23; +pub const JOB_NOTIFY_FIELD_REMOTE_JOB_ID: u32 = 24; +pub const SERVER_NOTIFY_FIELD_PRINT_DRIVER_ISOLATION_GROUP: u32 = 0; +pub const PRINTER_NOTIFY_CATEGORY_ALL: u32 = 4096; +pub const PRINTER_NOTIFY_CATEGORY_3D: u32 = 8192; +pub const PRINTER_NOTIFY_OPTIONS_REFRESH: u32 = 1; +pub const PRINTER_NOTIFY_INFO_DISCARDED: u32 = 1; +pub const BIDI_ACTION_ENUM_SCHEMA: &[u8; 11] = b"EnumSchema\0"; +pub const BIDI_ACTION_GET: &[u8; 4] = b"Get\0"; +pub const BIDI_ACTION_SET: &[u8; 4] = b"Set\0"; +pub const BIDI_ACTION_GET_ALL: &[u8; 7] = b"GetAll\0"; +pub const BIDI_ACTION_GET_WITH_ARGUMENT: &[u8; 16] = b"GetWithArgument\0"; +pub const BIDI_ACCESS_ADMINISTRATOR: u32 = 1; +pub const BIDI_ACCESS_USER: u32 = 2; +pub const ERROR_BIDI_STATUS_OK: u32 = 0; +pub const ERROR_BIDI_NOT_SUPPORTED: u32 = 50; +pub const ERROR_BIDI_ERROR_BASE: u32 = 13000; +pub const ERROR_BIDI_STATUS_WARNING: u32 = 13001; +pub const ERROR_BIDI_SCHEMA_READ_ONLY: u32 = 13002; +pub const ERROR_BIDI_SERVER_OFFLINE: u32 = 13003; +pub const ERROR_BIDI_DEVICE_OFFLINE: u32 = 13004; +pub const ERROR_BIDI_SCHEMA_NOT_SUPPORTED: u32 = 13005; +pub const ERROR_BIDI_SET_DIFFERENT_TYPE: u32 = 13006; +pub const ERROR_BIDI_SET_MULTIPLE_SCHEMAPATH: u32 = 13007; +pub const ERROR_BIDI_SET_INVALID_SCHEMAPATH: u32 = 13008; +pub const ERROR_BIDI_SET_UNKNOWN_FAILURE: u32 = 13009; +pub const ERROR_BIDI_SCHEMA_WRITE_ONLY: u32 = 13010; +pub const ERROR_BIDI_GET_REQUIRES_ARGUMENT: u32 = 13011; +pub const ERROR_BIDI_GET_ARGUMENT_NOT_SUPPORTED: u32 = 13012; +pub const ERROR_BIDI_GET_MISSING_ARGUMENT: u32 = 13013; +pub const ERROR_BIDI_DEVICE_CONFIG_UNCHANGED: u32 = 13014; +pub const ERROR_BIDI_NO_LOCALIZED_RESOURCES: u32 = 13015; +pub const ERROR_BIDI_NO_BIDI_SCHEMA_EXTENSIONS: u32 = 13016; +pub const ERROR_BIDI_UNSUPPORTED_CLIENT_LANGUAGE: u32 = 13017; +pub const ERROR_BIDI_UNSUPPORTED_RESOURCE_FORMAT: u32 = 13018; +pub const PRINTER_CHANGE_ADD_PRINTER: u32 = 1; +pub const PRINTER_CHANGE_SET_PRINTER: u32 = 2; +pub const PRINTER_CHANGE_DELETE_PRINTER: u32 = 4; +pub const PRINTER_CHANGE_FAILED_CONNECTION_PRINTER: u32 = 8; +pub const PRINTER_CHANGE_PRINTER: u32 = 255; +pub const PRINTER_CHANGE_ADD_JOB: u32 = 256; +pub const PRINTER_CHANGE_SET_JOB: u32 = 512; +pub const PRINTER_CHANGE_DELETE_JOB: u32 = 1024; +pub const PRINTER_CHANGE_WRITE_JOB: u32 = 2048; +pub const PRINTER_CHANGE_JOB: u32 = 65280; +pub const PRINTER_CHANGE_ADD_FORM: u32 = 65536; +pub const PRINTER_CHANGE_SET_FORM: u32 = 131072; +pub const PRINTER_CHANGE_DELETE_FORM: u32 = 262144; +pub const PRINTER_CHANGE_FORM: u32 = 458752; +pub const PRINTER_CHANGE_ADD_PORT: u32 = 1048576; +pub const PRINTER_CHANGE_CONFIGURE_PORT: u32 = 2097152; +pub const PRINTER_CHANGE_DELETE_PORT: u32 = 4194304; +pub const PRINTER_CHANGE_PORT: u32 = 7340032; +pub const PRINTER_CHANGE_ADD_PRINT_PROCESSOR: u32 = 16777216; +pub const PRINTER_CHANGE_DELETE_PRINT_PROCESSOR: u32 = 67108864; +pub const PRINTER_CHANGE_PRINT_PROCESSOR: u32 = 117440512; +pub const PRINTER_CHANGE_SERVER: u32 = 134217728; +pub const PRINTER_CHANGE_ADD_PRINTER_DRIVER: u32 = 268435456; +pub const PRINTER_CHANGE_SET_PRINTER_DRIVER: u32 = 536870912; +pub const PRINTER_CHANGE_DELETE_PRINTER_DRIVER: u32 = 1073741824; +pub const PRINTER_CHANGE_PRINTER_DRIVER: u32 = 1879048192; +pub const PRINTER_CHANGE_TIMEOUT: u32 = 2147483648; +pub const PRINTER_CHANGE_ALL: u32 = 2138570751; +pub const PRINTER_ERROR_INFORMATION: u32 = 2147483648; +pub const PRINTER_ERROR_WARNING: u32 = 1073741824; +pub const PRINTER_ERROR_SEVERE: u32 = 536870912; +pub const PRINTER_ERROR_OUTOFPAPER: u32 = 1; +pub const PRINTER_ERROR_JAM: u32 = 2; +pub const PRINTER_ERROR_OUTOFTONER: u32 = 4; +pub const SPLREG_PRINT_DRIVER_ISOLATION_GROUPS_SEPARATOR: u8 = 92u8; +pub const SERVER_ACCESS_ADMINISTER: u32 = 1; +pub const SERVER_ACCESS_ENUMERATE: u32 = 2; +pub const PRINTER_ACCESS_ADMINISTER: u32 = 4; +pub const PRINTER_ACCESS_USE: u32 = 8; +pub const JOB_ACCESS_ADMINISTER: u32 = 16; +pub const JOB_ACCESS_READ: u32 = 32; +pub const PRINTER_ACCESS_MANAGE_LIMITED: u32 = 64; +pub const SERVER_ALL_ACCESS: u32 = 983043; +pub const SERVER_READ: u32 = 131074; +pub const SERVER_WRITE: u32 = 131075; +pub const SERVER_EXECUTE: u32 = 131074; +pub const PRINTER_ALL_ACCESS: u32 = 983052; +pub const PRINTER_READ: u32 = 131080; +pub const PRINTER_WRITE: u32 = 131080; +pub const PRINTER_EXECUTE: u32 = 131080; +pub const JOB_ALL_ACCESS: u32 = 983088; +pub const JOB_READ: u32 = 131104; +pub const JOB_WRITE: u32 = 131088; +pub const JOB_EXECUTE: u32 = 131088; +pub const PRINTER_CONNECTION_MISMATCH: u32 = 32; +pub const PRINTER_CONNECTION_NO_UI: u32 = 64; +pub const IPDFP_COPY_ALL_FILES: u32 = 1; +pub const UPDP_SILENT_UPLOAD: u32 = 1; +pub const UPDP_UPLOAD_ALWAYS: u32 = 2; +pub const UPDP_CHECK_DRIVERSTORE: u32 = 4; +pub const MS_PRINT_JOB_OUTPUT_FILE: &[u8; 21] = b"MsPrintJobOutputFile\0"; +pub const _MAX_ITOSTR_BASE16_COUNT: u32 = 9; +pub const _MAX_ITOSTR_BASE10_COUNT: u32 = 12; +pub const _MAX_ITOSTR_BASE8_COUNT: u32 = 12; +pub const _MAX_ITOSTR_BASE2_COUNT: u32 = 33; +pub const _MAX_LTOSTR_BASE16_COUNT: u32 = 9; +pub const _MAX_LTOSTR_BASE10_COUNT: u32 = 12; +pub const _MAX_LTOSTR_BASE8_COUNT: u32 = 12; +pub const _MAX_LTOSTR_BASE2_COUNT: u32 = 33; +pub const _MAX_ULTOSTR_BASE16_COUNT: u32 = 9; +pub const _MAX_ULTOSTR_BASE10_COUNT: u32 = 11; +pub const _MAX_ULTOSTR_BASE8_COUNT: u32 = 12; +pub const _MAX_ULTOSTR_BASE2_COUNT: u32 = 33; +pub const _MAX_I64TOSTR_BASE16_COUNT: u32 = 17; +pub const _MAX_I64TOSTR_BASE10_COUNT: u32 = 21; +pub const _MAX_I64TOSTR_BASE8_COUNT: u32 = 23; +pub const _MAX_I64TOSTR_BASE2_COUNT: u32 = 65; +pub const _MAX_U64TOSTR_BASE16_COUNT: u32 = 17; +pub const _MAX_U64TOSTR_BASE10_COUNT: u32 = 21; +pub const _MAX_U64TOSTR_BASE8_COUNT: u32 = 23; +pub const _MAX_U64TOSTR_BASE2_COUNT: u32 = 65; +pub const CHAR_BIT: u32 = 8; +pub const SCHAR_MIN: i32 = -128; +pub const SCHAR_MAX: u32 = 127; +pub const UCHAR_MAX: u32 = 255; +pub const CHAR_MIN: i32 = -128; +pub const CHAR_MAX: u32 = 127; +pub const MB_LEN_MAX: u32 = 5; +pub const SHRT_MIN: i32 = -32768; +pub const SHRT_MAX: u32 = 32767; +pub const USHRT_MAX: u32 = 65535; +pub const INT_MIN: i32 = -2147483648; +pub const INT_MAX: u32 = 2147483647; +pub const UINT_MAX: u32 = 4294967295; +pub const LONG_MIN: i32 = -2147483648; +pub const LONG_MAX: u32 = 2147483647; +pub const ULONG_MAX: u32 = 4294967295; +pub const EXIT_SUCCESS: u32 = 0; +pub const EXIT_FAILURE: u32 = 1; +pub const _WRITE_ABORT_MSG: u32 = 1; +pub const _CALL_REPORTFAULT: u32 = 2; +pub const _OUT_TO_DEFAULT: u32 = 0; +pub const _OUT_TO_STDERR: u32 = 1; +pub const _OUT_TO_MSGBOX: u32 = 2; +pub const _REPORT_ERRMODE: u32 = 3; +pub const RAND_MAX: u32 = 32767; +pub const _CVTBUFSIZE: u32 = 349; +pub const _MAX_PATH: u32 = 260; +pub const _MAX_DRIVE: u32 = 3; +pub const _MAX_DIR: u32 = 256; +pub const _MAX_FNAME: u32 = 256; +pub const _MAX_EXT: u32 = 256; +pub const _MAX_ENV: u32 = 32767; +pub const _CRT_INTERNAL_COMBASE_SYMBOL_PREFIX: &[u8; 1] = b"\0"; +pub const COM_RIGHTS_EXECUTE: u32 = 1; +pub const COM_RIGHTS_EXECUTE_LOCAL: u32 = 2; +pub const COM_RIGHTS_EXECUTE_REMOTE: u32 = 4; +pub const COM_RIGHTS_ACTIVATE_LOCAL: u32 = 8; +pub const COM_RIGHTS_ACTIVATE_REMOTE: u32 = 16; +pub const COM_RIGHTS_RESERVED1: u32 = 32; +pub const COM_RIGHTS_RESERVED2: u32 = 64; +pub const CWMO_MAX_HANDLES: u32 = 56; +pub const FADF_AUTO: u32 = 1; +pub const FADF_STATIC: u32 = 2; +pub const FADF_EMBEDDED: u32 = 4; +pub const FADF_FIXEDSIZE: u32 = 16; +pub const FADF_RECORD: u32 = 32; +pub const FADF_HAVEIID: u32 = 64; +pub const FADF_HAVEVARTYPE: u32 = 128; +pub const FADF_BSTR: u32 = 256; +pub const FADF_UNKNOWN: u32 = 512; +pub const FADF_DISPATCH: u32 = 1024; +pub const FADF_VARIANT: u32 = 2048; +pub const FADF_RESERVED: u32 = 61448; +pub const PARAMFLAG_NONE: u32 = 0; +pub const PARAMFLAG_FIN: u32 = 1; +pub const PARAMFLAG_FOUT: u32 = 2; +pub const PARAMFLAG_FLCID: u32 = 4; +pub const PARAMFLAG_FRETVAL: u32 = 8; +pub const PARAMFLAG_FOPT: u32 = 16; +pub const PARAMFLAG_FHASDEFAULT: u32 = 32; +pub const PARAMFLAG_FHASCUSTDATA: u32 = 64; +pub const IDLFLAG_NONE: u32 = 0; +pub const IDLFLAG_FIN: u32 = 1; +pub const IDLFLAG_FOUT: u32 = 2; +pub const IDLFLAG_FLCID: u32 = 4; +pub const IDLFLAG_FRETVAL: u32 = 8; +pub const IMPLTYPEFLAG_FDEFAULT: u32 = 1; +pub const IMPLTYPEFLAG_FSOURCE: u32 = 2; +pub const IMPLTYPEFLAG_FRESTRICTED: u32 = 4; +pub const IMPLTYPEFLAG_FDEFAULTVTABLE: u32 = 8; +pub const DISPID_UNKNOWN: i32 = -1; +pub const DISPID_VALUE: u32 = 0; +pub const DISPID_PROPERTYPUT: i32 = -3; +pub const DISPID_NEWENUM: i32 = -4; +pub const DISPID_EVALUATE: i32 = -5; +pub const DISPID_CONSTRUCTOR: i32 = -6; +pub const DISPID_DESTRUCTOR: i32 = -7; +pub const DISPID_COLLECT: i32 = -8; +pub const PROPSETFLAG_DEFAULT: u32 = 0; +pub const PROPSETFLAG_NONSIMPLE: u32 = 1; +pub const PROPSETFLAG_ANSI: u32 = 2; +pub const PROPSETFLAG_UNBUFFERED: u32 = 4; +pub const PROPSETFLAG_CASE_SENSITIVE: u32 = 8; +pub const PROPSET_BEHAVIOR_CASE_SENSITIVE: u32 = 1; +pub const PID_DICTIONARY: u32 = 0; +pub const PID_CODEPAGE: u32 = 1; +pub const PID_FIRST_USABLE: u32 = 2; +pub const PID_FIRST_NAME_DEFAULT: u32 = 4095; +pub const PID_LOCALE: u32 = 2147483648; +pub const PID_MODIFY_TIME: u32 = 2147483649; +pub const PID_SECURITY: u32 = 2147483650; +pub const PID_BEHAVIOR: u32 = 2147483651; +pub const PID_ILLEGAL: u32 = 4294967295; +pub const PID_MIN_READONLY: u32 = 2147483648; +pub const PID_MAX_READONLY: u32 = 3221225471; +pub const PRSPEC_INVALID: u32 = 4294967295; +pub const PRSPEC_LPWSTR: u32 = 0; +pub const PRSPEC_PROPID: u32 = 1; +pub const PROPSETHDR_OSVERSION_UNKNOWN: u32 = 4294967295; +pub const CWCSTORAGENAME: u32 = 32; +pub const STGM_DIRECT: u32 = 0; +pub const STGM_TRANSACTED: u32 = 65536; +pub const STGM_SIMPLE: u32 = 134217728; +pub const STGM_READ: u32 = 0; +pub const STGM_WRITE: u32 = 1; +pub const STGM_READWRITE: u32 = 2; +pub const STGM_SHARE_DENY_NONE: u32 = 64; +pub const STGM_SHARE_DENY_READ: u32 = 48; +pub const STGM_SHARE_DENY_WRITE: u32 = 32; +pub const STGM_SHARE_EXCLUSIVE: u32 = 16; +pub const STGM_PRIORITY: u32 = 262144; +pub const STGM_DELETEONRELEASE: u32 = 67108864; +pub const STGM_NOSCRATCH: u32 = 1048576; +pub const STGM_CREATE: u32 = 4096; +pub const STGM_CONVERT: u32 = 131072; +pub const STGM_FAILIFTHERE: u32 = 0; +pub const STGM_NOSNAPSHOT: u32 = 2097152; +pub const STGM_DIRECT_SWMR: u32 = 4194304; +pub const STGFMT_STORAGE: u32 = 0; +pub const STGFMT_NATIVE: u32 = 1; +pub const STGFMT_FILE: u32 = 3; +pub const STGFMT_ANY: u32 = 4; +pub const STGFMT_DOCFILE: u32 = 5; +pub const STGFMT_DOCUMENT: u32 = 0; +pub const STGOPTIONS_VERSION: u32 = 2; +pub const CCH_MAX_PROPSTG_NAME: u32 = 31; +pub const MARSHALINTERFACE_MIN: u32 = 500; +pub const ASYNC_MODE_COMPATIBILITY: u32 = 1; +pub const ASYNC_MODE_DEFAULT: u32 = 0; +pub const STGTY_REPEAT: u32 = 256; +pub const STG_TOEND: u32 = 4294967295; +pub const STG_LAYOUT_SEQUENTIAL: u32 = 0; +pub const STG_LAYOUT_INTERLEAVED: u32 = 1; +pub const UPDFCACHE_NODATACACHE: u32 = 1; +pub const UPDFCACHE_ONSAVECACHE: u32 = 2; +pub const UPDFCACHE_ONSTOPCACHE: u32 = 4; +pub const UPDFCACHE_NORMALCACHE: u32 = 8; +pub const UPDFCACHE_IFBLANK: u32 = 16; +pub const UPDFCACHE_ONLYIFBLANK: u32 = 2147483648; +pub const UPDFCACHE_IFBLANKORONSAVECACHE: u32 = 18; +pub const MK_ALT: u32 = 32; +pub const DROPEFFECT_NONE: u32 = 0; +pub const DROPEFFECT_COPY: u32 = 1; +pub const DROPEFFECT_MOVE: u32 = 2; +pub const DROPEFFECT_LINK: u32 = 4; +pub const DROPEFFECT_SCROLL: u32 = 2147483648; +pub const DD_DEFSCROLLINSET: u32 = 11; +pub const DD_DEFSCROLLDELAY: u32 = 50; +pub const DD_DEFSCROLLINTERVAL: u32 = 50; +pub const DD_DEFDRAGDELAY: u32 = 200; +pub const DD_DEFDRAGMINDIST: u32 = 2; +pub const MKSYS_URLMONIKER: u32 = 6; +pub const URL_MK_LEGACY: u32 = 0; +pub const URL_MK_UNIFORM: u32 = 1; +pub const URL_MK_NO_CANONICALIZE: u32 = 2; +pub const FIEF_FLAG_FORCE_JITUI: u32 = 1; +pub const FIEF_FLAG_PEEK: u32 = 2; +pub const FIEF_FLAG_SKIP_INSTALLED_VERSION_CHECK: u32 = 4; +pub const FIEF_FLAG_RESERVED_0: u32 = 8; +pub const FMFD_DEFAULT: u32 = 0; +pub const FMFD_URLASFILENAME: u32 = 1; +pub const FMFD_ENABLEMIMESNIFFING: u32 = 2; +pub const FMFD_IGNOREMIMETEXTPLAIN: u32 = 4; +pub const FMFD_SERVERMIME: u32 = 8; +pub const FMFD_RESPECTTEXTPLAIN: u32 = 16; +pub const FMFD_RETURNUPDATEDIMGMIMES: u32 = 32; +pub const FMFD_RESERVED_1: u32 = 64; +pub const FMFD_RESERVED_2: u32 = 128; +pub const UAS_EXACTLEGACY: u32 = 4096; +pub const URLMON_OPTION_USERAGENT: u32 = 268435457; +pub const URLMON_OPTION_USERAGENT_REFRESH: u32 = 268435458; +pub const URLMON_OPTION_URL_ENCODING: u32 = 268435460; +pub const URLMON_OPTION_USE_BINDSTRINGCREDS: u32 = 268435464; +pub const URLMON_OPTION_USE_BROWSERAPPSDOCUMENTS: u32 = 268435472; +pub const CF_NULL: u32 = 0; +pub const Uri_CREATE_ALLOW_RELATIVE: u32 = 1; +pub const Uri_CREATE_ALLOW_IMPLICIT_WILDCARD_SCHEME: u32 = 2; +pub const Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME: u32 = 4; +pub const Uri_CREATE_NOFRAG: u32 = 8; +pub const Uri_CREATE_NO_CANONICALIZE: u32 = 16; +pub const Uri_CREATE_CANONICALIZE: u32 = 256; +pub const Uri_CREATE_FILE_USE_DOS_PATH: u32 = 32; +pub const Uri_CREATE_DECODE_EXTRA_INFO: u32 = 64; +pub const Uri_CREATE_NO_DECODE_EXTRA_INFO: u32 = 128; +pub const Uri_CREATE_CRACK_UNKNOWN_SCHEMES: u32 = 512; +pub const Uri_CREATE_NO_CRACK_UNKNOWN_SCHEMES: u32 = 1024; +pub const Uri_CREATE_PRE_PROCESS_HTML_URI: u32 = 2048; +pub const Uri_CREATE_NO_PRE_PROCESS_HTML_URI: u32 = 4096; +pub const Uri_CREATE_IE_SETTINGS: u32 = 8192; +pub const Uri_CREATE_NO_IE_SETTINGS: u32 = 16384; +pub const Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS: u32 = 32768; +pub const Uri_CREATE_NORMALIZE_INTL_CHARACTERS: u32 = 65536; +pub const Uri_CREATE_CANONICALIZE_ABSOLUTE: u32 = 131072; +pub const Uri_DISPLAY_NO_FRAGMENT: u32 = 1; +pub const Uri_PUNYCODE_IDN_HOST: u32 = 2; +pub const Uri_DISPLAY_IDN_HOST: u32 = 4; +pub const Uri_DISPLAY_NO_PUNYCODE: u32 = 8; +pub const Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8: u32 = 1; +pub const Uri_ENCODING_USER_INFO_AND_PATH_IS_CP: u32 = 2; +pub const Uri_ENCODING_HOST_IS_IDN: u32 = 4; +pub const Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8: u32 = 8; +pub const Uri_ENCODING_HOST_IS_PERCENT_ENCODED_CP: u32 = 16; +pub const Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8: u32 = 32; +pub const Uri_ENCODING_QUERY_AND_FRAGMENT_IS_CP: u32 = 64; +pub const Uri_ENCODING_RFC: u32 = 41; +pub const UriBuilder_USE_ORIGINAL_FLAGS: u32 = 1; +pub const WININETINFO_OPTION_LOCK_HANDLE: u32 = 65534; +pub const URLOSTRM_USECACHEDCOPY_ONLY: u32 = 1; +pub const URLOSTRM_USECACHEDCOPY: u32 = 2; +pub const URLOSTRM_GETNEWESTVERSION: u32 = 3; +pub const SET_FEATURE_ON_THREAD: u32 = 1; +pub const SET_FEATURE_ON_PROCESS: u32 = 2; +pub const SET_FEATURE_IN_REGISTRY: u32 = 4; +pub const SET_FEATURE_ON_THREAD_LOCALMACHINE: u32 = 8; +pub const SET_FEATURE_ON_THREAD_INTRANET: u32 = 16; +pub const SET_FEATURE_ON_THREAD_TRUSTED: u32 = 32; +pub const SET_FEATURE_ON_THREAD_INTERNET: u32 = 64; +pub const SET_FEATURE_ON_THREAD_RESTRICTED: u32 = 128; +pub const GET_FEATURE_FROM_THREAD: u32 = 1; +pub const GET_FEATURE_FROM_PROCESS: u32 = 2; +pub const GET_FEATURE_FROM_REGISTRY: u32 = 4; +pub const GET_FEATURE_FROM_THREAD_LOCALMACHINE: u32 = 8; +pub const GET_FEATURE_FROM_THREAD_INTRANET: u32 = 16; +pub const GET_FEATURE_FROM_THREAD_TRUSTED: u32 = 32; +pub const GET_FEATURE_FROM_THREAD_INTERNET: u32 = 64; +pub const GET_FEATURE_FROM_THREAD_RESTRICTED: u32 = 128; +pub const PROTOCOLFLAG_NO_PICS_CHECK: u32 = 1; +pub const MUTZ_NOSAVEDFILECHECK: u32 = 1; +pub const MUTZ_ISFILE: u32 = 2; +pub const MUTZ_ACCEPT_WILDCARD_SCHEME: u32 = 128; +pub const MUTZ_ENFORCERESTRICTED: u32 = 256; +pub const MUTZ_RESERVED: u32 = 512; +pub const MUTZ_REQUIRESAVEDFILECHECK: u32 = 1024; +pub const MUTZ_DONT_UNESCAPE: u32 = 2048; +pub const MUTZ_DONT_USE_CACHE: u32 = 4096; +pub const MUTZ_FORCE_INTRANET_FLAGS: u32 = 8192; +pub const MUTZ_IGNORE_ZONE_MAPPINGS: u32 = 16384; +pub const MAX_SIZE_SECURITY_ID: u32 = 512; +pub const URLACTION_MIN: u32 = 4096; +pub const URLACTION_DOWNLOAD_MIN: u32 = 4096; +pub const URLACTION_DOWNLOAD_SIGNED_ACTIVEX: u32 = 4097; +pub const URLACTION_DOWNLOAD_UNSIGNED_ACTIVEX: u32 = 4100; +pub const URLACTION_DOWNLOAD_CURR_MAX: u32 = 4100; +pub const URLACTION_DOWNLOAD_MAX: u32 = 4607; +pub const URLACTION_ACTIVEX_MIN: u32 = 4608; +pub const URLACTION_ACTIVEX_RUN: u32 = 4608; +pub const URLPOLICY_ACTIVEX_CHECK_LIST: u32 = 65536; +pub const URLACTION_ACTIVEX_OVERRIDE_OBJECT_SAFETY: u32 = 4609; +pub const URLACTION_ACTIVEX_OVERRIDE_DATA_SAFETY: u32 = 4610; +pub const URLACTION_ACTIVEX_OVERRIDE_SCRIPT_SAFETY: u32 = 4611; +pub const URLACTION_SCRIPT_OVERRIDE_SAFETY: u32 = 5121; +pub const URLACTION_ACTIVEX_CONFIRM_NOOBJECTSAFETY: u32 = 4612; +pub const URLACTION_ACTIVEX_TREATASUNTRUSTED: u32 = 4613; +pub const URLACTION_ACTIVEX_NO_WEBOC_SCRIPT: u32 = 4614; +pub const URLACTION_ACTIVEX_OVERRIDE_REPURPOSEDETECTION: u32 = 4615; +pub const URLACTION_ACTIVEX_OVERRIDE_OPTIN: u32 = 4616; +pub const URLACTION_ACTIVEX_SCRIPTLET_RUN: u32 = 4617; +pub const URLACTION_ACTIVEX_DYNSRC_VIDEO_AND_ANIMATION: u32 = 4618; +pub const URLACTION_ACTIVEX_OVERRIDE_DOMAINLIST: u32 = 4619; +pub const URLACTION_ACTIVEX_ALLOW_TDC: u32 = 4620; +pub const URLACTION_ACTIVEX_CURR_MAX: u32 = 4620; +pub const URLACTION_ACTIVEX_MAX: u32 = 5119; +pub const URLACTION_SCRIPT_MIN: u32 = 5120; +pub const URLACTION_SCRIPT_RUN: u32 = 5120; +pub const URLACTION_SCRIPT_JAVA_USE: u32 = 5122; +pub const URLACTION_SCRIPT_SAFE_ACTIVEX: u32 = 5125; +pub const URLACTION_CROSS_DOMAIN_DATA: u32 = 5126; +pub const URLACTION_SCRIPT_PASTE: u32 = 5127; +pub const URLACTION_ALLOW_XDOMAIN_SUBFRAME_RESIZE: u32 = 5128; +pub const URLACTION_SCRIPT_XSSFILTER: u32 = 5129; +pub const URLACTION_SCRIPT_NAVIGATE: u32 = 5130; +pub const URLACTION_PLUGGABLE_PROTOCOL_XHR: u32 = 5131; +pub const URLACTION_ALLOW_VBSCRIPT_IE: u32 = 5132; +pub const URLACTION_ALLOW_JSCRIPT_IE: u32 = 5133; +pub const URLACTION_SCRIPT_CURR_MAX: u32 = 5133; +pub const URLACTION_SCRIPT_MAX: u32 = 5631; +pub const URLACTION_HTML_MIN: u32 = 5632; +pub const URLACTION_HTML_SUBMIT_FORMS: u32 = 5633; +pub const URLACTION_HTML_SUBMIT_FORMS_FROM: u32 = 5634; +pub const URLACTION_HTML_SUBMIT_FORMS_TO: u32 = 5635; +pub const URLACTION_HTML_FONT_DOWNLOAD: u32 = 5636; +pub const URLACTION_HTML_JAVA_RUN: u32 = 5637; +pub const URLACTION_HTML_USERDATA_SAVE: u32 = 5638; +pub const URLACTION_HTML_SUBFRAME_NAVIGATE: u32 = 5639; +pub const URLACTION_HTML_META_REFRESH: u32 = 5640; +pub const URLACTION_HTML_MIXED_CONTENT: u32 = 5641; +pub const URLACTION_HTML_INCLUDE_FILE_PATH: u32 = 5642; +pub const URLACTION_HTML_ALLOW_INJECTED_DYNAMIC_HTML: u32 = 5643; +pub const URLACTION_HTML_REQUIRE_UTF8_DOCUMENT_CODEPAGE: u32 = 5644; +pub const URLACTION_HTML_ALLOW_CROSS_DOMAIN_CANVAS: u32 = 5645; +pub const URLACTION_HTML_ALLOW_WINDOW_CLOSE: u32 = 5646; +pub const URLACTION_HTML_ALLOW_CROSS_DOMAIN_WEBWORKER: u32 = 5647; +pub const URLACTION_HTML_ALLOW_CROSS_DOMAIN_TEXTTRACK: u32 = 5648; +pub const URLACTION_HTML_ALLOW_INDEXEDDB: u32 = 5649; +pub const URLACTION_HTML_MAX: u32 = 6143; +pub const URLACTION_SHELL_MIN: u32 = 6144; +pub const URLACTION_SHELL_INSTALL_DTITEMS: u32 = 6144; +pub const URLACTION_SHELL_MOVE_OR_COPY: u32 = 6146; +pub const URLACTION_SHELL_FILE_DOWNLOAD: u32 = 6147; +pub const URLACTION_SHELL_VERB: u32 = 6148; +pub const URLACTION_SHELL_WEBVIEW_VERB: u32 = 6149; +pub const URLACTION_SHELL_SHELLEXECUTE: u32 = 6150; +pub const URLACTION_SHELL_EXECUTE_HIGHRISK: u32 = 6150; +pub const URLACTION_SHELL_EXECUTE_MODRISK: u32 = 6151; +pub const URLACTION_SHELL_EXECUTE_LOWRISK: u32 = 6152; +pub const URLACTION_SHELL_POPUPMGR: u32 = 6153; +pub const URLACTION_SHELL_RTF_OBJECTS_LOAD: u32 = 6154; +pub const URLACTION_SHELL_ENHANCED_DRAGDROP_SECURITY: u32 = 6155; +pub const URLACTION_SHELL_EXTENSIONSECURITY: u32 = 6156; +pub const URLACTION_SHELL_SECURE_DRAGSOURCE: u32 = 6157; +pub const URLACTION_SHELL_REMOTEQUERY: u32 = 6158; +pub const URLACTION_SHELL_PREVIEW: u32 = 6159; +pub const URLACTION_SHELL_SHARE: u32 = 6160; +pub const URLACTION_SHELL_ALLOW_CROSS_SITE_SHARE: u32 = 6161; +pub const URLACTION_SHELL_TOCTOU_RISK: u32 = 6162; +pub const URLACTION_SHELL_CURR_MAX: u32 = 6162; +pub const URLACTION_SHELL_MAX: u32 = 6655; +pub const URLACTION_NETWORK_MIN: u32 = 6656; +pub const URLACTION_CREDENTIALS_USE: u32 = 6656; +pub const URLPOLICY_CREDENTIALS_SILENT_LOGON_OK: u32 = 0; +pub const URLPOLICY_CREDENTIALS_MUST_PROMPT_USER: u32 = 65536; +pub const URLPOLICY_CREDENTIALS_CONDITIONAL_PROMPT: u32 = 131072; +pub const URLPOLICY_CREDENTIALS_ANONYMOUS_ONLY: u32 = 196608; +pub const URLACTION_AUTHENTICATE_CLIENT: u32 = 6657; +pub const URLPOLICY_AUTHENTICATE_CLEARTEXT_OK: u32 = 0; +pub const URLPOLICY_AUTHENTICATE_CHALLENGE_RESPONSE: u32 = 65536; +pub const URLPOLICY_AUTHENTICATE_MUTUAL_ONLY: u32 = 196608; +pub const URLACTION_COOKIES: u32 = 6658; +pub const URLACTION_COOKIES_SESSION: u32 = 6659; +pub const URLACTION_CLIENT_CERT_PROMPT: u32 = 6660; +pub const URLACTION_COOKIES_THIRD_PARTY: u32 = 6661; +pub const URLACTION_COOKIES_SESSION_THIRD_PARTY: u32 = 6662; +pub const URLACTION_COOKIES_ENABLED: u32 = 6672; +pub const URLACTION_NETWORK_CURR_MAX: u32 = 6672; +pub const URLACTION_NETWORK_MAX: u32 = 7167; +pub const URLACTION_JAVA_MIN: u32 = 7168; +pub const URLACTION_JAVA_PERMISSIONS: u32 = 7168; +pub const URLPOLICY_JAVA_PROHIBIT: u32 = 0; +pub const URLPOLICY_JAVA_HIGH: u32 = 65536; +pub const URLPOLICY_JAVA_MEDIUM: u32 = 131072; +pub const URLPOLICY_JAVA_LOW: u32 = 196608; +pub const URLPOLICY_JAVA_CUSTOM: u32 = 8388608; +pub const URLACTION_JAVA_CURR_MAX: u32 = 7168; +pub const URLACTION_JAVA_MAX: u32 = 7423; +pub const URLACTION_INFODELIVERY_MIN: u32 = 7424; +pub const URLACTION_INFODELIVERY_NO_ADDING_CHANNELS: u32 = 7424; +pub const URLACTION_INFODELIVERY_NO_EDITING_CHANNELS: u32 = 7425; +pub const URLACTION_INFODELIVERY_NO_REMOVING_CHANNELS: u32 = 7426; +pub const URLACTION_INFODELIVERY_NO_ADDING_SUBSCRIPTIONS: u32 = 7427; +pub const URLACTION_INFODELIVERY_NO_EDITING_SUBSCRIPTIONS: u32 = 7428; +pub const URLACTION_INFODELIVERY_NO_REMOVING_SUBSCRIPTIONS: u32 = 7429; +pub const URLACTION_INFODELIVERY_NO_CHANNEL_LOGGING: u32 = 7430; +pub const URLACTION_INFODELIVERY_CURR_MAX: u32 = 7430; +pub const URLACTION_INFODELIVERY_MAX: u32 = 7679; +pub const URLACTION_CHANNEL_SOFTDIST_MIN: u32 = 7680; +pub const URLACTION_CHANNEL_SOFTDIST_PERMISSIONS: u32 = 7685; +pub const URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT: u32 = 65536; +pub const URLPOLICY_CHANNEL_SOFTDIST_PRECACHE: u32 = 131072; +pub const URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL: u32 = 196608; +pub const URLACTION_CHANNEL_SOFTDIST_MAX: u32 = 7935; +pub const URLACTION_DOTNET_USERCONTROLS: u32 = 8197; +pub const URLACTION_BEHAVIOR_MIN: u32 = 8192; +pub const URLACTION_BEHAVIOR_RUN: u32 = 8192; +pub const URLPOLICY_BEHAVIOR_CHECK_LIST: u32 = 65536; +pub const URLACTION_FEATURE_MIN: u32 = 8448; +pub const URLACTION_FEATURE_MIME_SNIFFING: u32 = 8448; +pub const URLACTION_FEATURE_ZONE_ELEVATION: u32 = 8449; +pub const URLACTION_FEATURE_WINDOW_RESTRICTIONS: u32 = 8450; +pub const URLACTION_FEATURE_SCRIPT_STATUS_BAR: u32 = 8451; +pub const URLACTION_FEATURE_FORCE_ADDR_AND_STATUS: u32 = 8452; +pub const URLACTION_FEATURE_BLOCK_INPUT_PROMPTS: u32 = 8453; +pub const URLACTION_FEATURE_DATA_BINDING: u32 = 8454; +pub const URLACTION_FEATURE_CROSSDOMAIN_FOCUS_CHANGE: u32 = 8455; +pub const URLACTION_AUTOMATIC_DOWNLOAD_UI_MIN: u32 = 8704; +pub const URLACTION_AUTOMATIC_DOWNLOAD_UI: u32 = 8704; +pub const URLACTION_AUTOMATIC_ACTIVEX_UI: u32 = 8705; +pub const URLACTION_ALLOW_RESTRICTEDPROTOCOLS: u32 = 8960; +pub const URLACTION_ALLOW_APEVALUATION: u32 = 8961; +pub const URLACTION_ALLOW_XHR_EVALUATION: u32 = 8962; +pub const URLACTION_WINDOWS_BROWSER_APPLICATIONS: u32 = 9216; +pub const URLACTION_XPS_DOCUMENTS: u32 = 9217; +pub const URLACTION_LOOSE_XAML: u32 = 9218; +pub const URLACTION_LOWRIGHTS: u32 = 9472; +pub const URLACTION_WINFX_SETUP: u32 = 9728; +pub const URLACTION_INPRIVATE_BLOCKING: u32 = 9984; +pub const URLACTION_ALLOW_AUDIO_VIDEO: u32 = 9985; +pub const URLACTION_ALLOW_ACTIVEX_FILTERING: u32 = 9986; +pub const URLACTION_ALLOW_STRUCTURED_STORAGE_SNIFFING: u32 = 9987; +pub const URLACTION_ALLOW_AUDIO_VIDEO_PLUGINS: u32 = 9988; +pub const URLACTION_ALLOW_ZONE_ELEVATION_VIA_OPT_OUT: u32 = 9989; +pub const URLACTION_ALLOW_ZONE_ELEVATION_OPT_OUT_ADDITION: u32 = 9990; +pub const URLACTION_ALLOW_CROSSDOMAIN_DROP_WITHIN_WINDOW: u32 = 9992; +pub const URLACTION_ALLOW_CROSSDOMAIN_DROP_ACROSS_WINDOWS: u32 = 9993; +pub const URLACTION_ALLOW_CROSSDOMAIN_APPCACHE_MANIFEST: u32 = 9994; +pub const URLACTION_ALLOW_RENDER_LEGACY_DXTFILTERS: u32 = 9995; +pub const URLACTION_ALLOW_ANTIMALWARE_SCANNING_OF_ACTIVEX: u32 = 9996; +pub const URLACTION_ALLOW_CSS_EXPRESSIONS: u32 = 9997; +pub const URLPOLICY_ALLOW: u32 = 0; +pub const URLPOLICY_QUERY: u32 = 1; +pub const URLPOLICY_DISALLOW: u32 = 3; +pub const URLPOLICY_NOTIFY_ON_ALLOW: u32 = 16; +pub const URLPOLICY_NOTIFY_ON_DISALLOW: u32 = 32; +pub const URLPOLICY_LOG_ON_ALLOW: u32 = 64; +pub const URLPOLICY_LOG_ON_DISALLOW: u32 = 128; +pub const URLPOLICY_MASK_PERMISSIONS: u32 = 15; +pub const URLPOLICY_DONTCHECKDLGBOX: u32 = 256; +pub const URLZONE_ESC_FLAG: u32 = 256; +pub const SECURITY_IE_STATE_GREEN: u32 = 0; +pub const SECURITY_IE_STATE_RED: u32 = 1; +pub const SOFTDIST_FLAG_USAGE_EMAIL: u32 = 1; +pub const SOFTDIST_FLAG_USAGE_PRECACHE: u32 = 2; +pub const SOFTDIST_FLAG_USAGE_AUTOINSTALL: u32 = 4; +pub const SOFTDIST_FLAG_DELETE_SUBSCRIPTION: u32 = 8; +pub const SOFTDIST_ADSTATE_NONE: u32 = 0; +pub const SOFTDIST_ADSTATE_AVAILABLE: u32 = 1; +pub const SOFTDIST_ADSTATE_DOWNLOADED: u32 = 2; +pub const SOFTDIST_ADSTATE_INSTALLED: u32 = 3; +pub const CONFIRMSAFETYACTION_LOADOBJECT: u32 = 1; +pub const PIDDI_THUMBNAIL: u32 = 2; +pub const PIDSI_TITLE: u32 = 2; +pub const PIDSI_SUBJECT: u32 = 3; +pub const PIDSI_AUTHOR: u32 = 4; +pub const PIDSI_KEYWORDS: u32 = 5; +pub const PIDSI_COMMENTS: u32 = 6; +pub const PIDSI_TEMPLATE: u32 = 7; +pub const PIDSI_LASTAUTHOR: u32 = 8; +pub const PIDSI_REVNUMBER: u32 = 9; +pub const PIDSI_EDITTIME: u32 = 10; +pub const PIDSI_LASTPRINTED: u32 = 11; +pub const PIDSI_CREATE_DTM: u32 = 12; +pub const PIDSI_LASTSAVE_DTM: u32 = 13; +pub const PIDSI_PAGECOUNT: u32 = 14; +pub const PIDSI_WORDCOUNT: u32 = 15; +pub const PIDSI_CHARCOUNT: u32 = 16; +pub const PIDSI_THUMBNAIL: u32 = 17; +pub const PIDSI_APPNAME: u32 = 18; +pub const PIDSI_DOC_SECURITY: u32 = 19; +pub const PIDDSI_CATEGORY: u32 = 2; +pub const PIDDSI_PRESFORMAT: u32 = 3; +pub const PIDDSI_BYTECOUNT: u32 = 4; +pub const PIDDSI_LINECOUNT: u32 = 5; +pub const PIDDSI_PARCOUNT: u32 = 6; +pub const PIDDSI_SLIDECOUNT: u32 = 7; +pub const PIDDSI_NOTECOUNT: u32 = 8; +pub const PIDDSI_HIDDENCOUNT: u32 = 9; +pub const PIDDSI_MMCLIPCOUNT: u32 = 10; +pub const PIDDSI_SCALE: u32 = 11; +pub const PIDDSI_HEADINGPAIR: u32 = 12; +pub const PIDDSI_DOCPARTS: u32 = 13; +pub const PIDDSI_MANAGER: u32 = 14; +pub const PIDDSI_COMPANY: u32 = 15; +pub const PIDDSI_LINKSDIRTY: u32 = 16; +pub const PIDMSI_EDITOR: u32 = 2; +pub const PIDMSI_SUPPLIER: u32 = 3; +pub const PIDMSI_SOURCE: u32 = 4; +pub const PIDMSI_SEQUENCE_NO: u32 = 5; +pub const PIDMSI_PROJECT: u32 = 6; +pub const PIDMSI_STATUS: u32 = 7; +pub const PIDMSI_OWNER: u32 = 8; +pub const PIDMSI_RATING: u32 = 9; +pub const PIDMSI_PRODUCTION: u32 = 10; +pub const PIDMSI_COPYRIGHT: u32 = 11; +pub const STDOLE_MAJORVERNUM: u32 = 1; +pub const STDOLE_MINORVERNUM: u32 = 0; +pub const STDOLE_LCID: u32 = 0; +pub const STDOLE2_MAJORVERNUM: u32 = 2; +pub const STDOLE2_MINORVERNUM: u32 = 0; +pub const STDOLE2_LCID: u32 = 0; +pub const VARIANT_NOVALUEPROP: u32 = 1; +pub const VARIANT_ALPHABOOL: u32 = 2; +pub const VARIANT_NOUSEROVERRIDE: u32 = 4; +pub const VARIANT_CALENDAR_HIJRI: u32 = 8; +pub const VARIANT_LOCALBOOL: u32 = 16; +pub const VARIANT_CALENDAR_THAI: u32 = 32; +pub const VARIANT_CALENDAR_GREGORIAN: u32 = 64; +pub const VARIANT_USE_NLS: u32 = 128; +pub const LOCALE_USE_NLS: u32 = 268435456; +pub const VTDATEGRE_MAX: u32 = 2958465; +pub const VTDATEGRE_MIN: i32 = -657434; +pub const NUMPRS_LEADING_WHITE: u32 = 1; +pub const NUMPRS_TRAILING_WHITE: u32 = 2; +pub const NUMPRS_LEADING_PLUS: u32 = 4; +pub const NUMPRS_TRAILING_PLUS: u32 = 8; +pub const NUMPRS_LEADING_MINUS: u32 = 16; +pub const NUMPRS_TRAILING_MINUS: u32 = 32; +pub const NUMPRS_HEX_OCT: u32 = 64; +pub const NUMPRS_PARENS: u32 = 128; +pub const NUMPRS_DECIMAL: u32 = 256; +pub const NUMPRS_THOUSANDS: u32 = 512; +pub const NUMPRS_CURRENCY: u32 = 1024; +pub const NUMPRS_EXPONENT: u32 = 2048; +pub const NUMPRS_USE_ALL: u32 = 4096; +pub const NUMPRS_STD: u32 = 8191; +pub const NUMPRS_NEG: u32 = 65536; +pub const NUMPRS_INEXACT: u32 = 131072; +pub const VARCMP_LT: u32 = 0; +pub const VARCMP_EQ: u32 = 1; +pub const VARCMP_GT: u32 = 2; +pub const VARCMP_NULL: u32 = 3; +pub const MEMBERID_NIL: i32 = -1; +pub const ID_DEFAULTINST: i32 = -2; +pub const DISPATCH_METHOD: u32 = 1; +pub const DISPATCH_PROPERTYGET: u32 = 2; +pub const DISPATCH_PROPERTYPUT: u32 = 4; +pub const DISPATCH_PROPERTYPUTREF: u32 = 8; +pub const LOAD_TLB_AS_32BIT: u32 = 32; +pub const LOAD_TLB_AS_64BIT: u32 = 64; +pub const MASK_TO_RESET_TLB_BITS: i32 = -97; +pub const ACTIVEOBJECT_STRONG: u32 = 0; +pub const ACTIVEOBJECT_WEAK: u32 = 1; +pub const OLEIVERB_PRIMARY: u32 = 0; +pub const OLEIVERB_SHOW: i32 = -1; +pub const OLEIVERB_OPEN: i32 = -2; +pub const OLEIVERB_HIDE: i32 = -3; +pub const OLEIVERB_UIACTIVATE: i32 = -4; +pub const OLEIVERB_INPLACEACTIVATE: i32 = -5; +pub const OLEIVERB_DISCARDUNDOSTATE: i32 = -6; +pub const EMBDHLP_INPROC_HANDLER: u32 = 0; +pub const EMBDHLP_INPROC_SERVER: u32 = 1; +pub const EMBDHLP_CREATENOW: u32 = 0; +pub const EMBDHLP_DELAYCREATE: u32 = 65536; +pub const OLECREATE_LEAVERUNNING: u32 = 1; +pub const OFN_READONLY: u32 = 1; +pub const OFN_OVERWRITEPROMPT: u32 = 2; +pub const OFN_HIDEREADONLY: u32 = 4; +pub const OFN_NOCHANGEDIR: u32 = 8; +pub const OFN_SHOWHELP: u32 = 16; +pub const OFN_ENABLEHOOK: u32 = 32; +pub const OFN_ENABLETEMPLATE: u32 = 64; +pub const OFN_ENABLETEMPLATEHANDLE: u32 = 128; +pub const OFN_NOVALIDATE: u32 = 256; +pub const OFN_ALLOWMULTISELECT: u32 = 512; +pub const OFN_EXTENSIONDIFFERENT: u32 = 1024; +pub const OFN_PATHMUSTEXIST: u32 = 2048; +pub const OFN_FILEMUSTEXIST: u32 = 4096; +pub const OFN_CREATEPROMPT: u32 = 8192; +pub const OFN_SHAREAWARE: u32 = 16384; +pub const OFN_NOREADONLYRETURN: u32 = 32768; +pub const OFN_NOTESTFILECREATE: u32 = 65536; +pub const OFN_NONETWORKBUTTON: u32 = 131072; +pub const OFN_NOLONGNAMES: u32 = 262144; +pub const OFN_EXPLORER: u32 = 524288; +pub const OFN_NODEREFERENCELINKS: u32 = 1048576; +pub const OFN_LONGNAMES: u32 = 2097152; +pub const OFN_ENABLEINCLUDENOTIFY: u32 = 4194304; +pub const OFN_ENABLESIZING: u32 = 8388608; +pub const OFN_DONTADDTORECENT: u32 = 33554432; +pub const OFN_FORCESHOWHIDDEN: u32 = 268435456; +pub const OFN_EX_NOPLACESBAR: u32 = 1; +pub const OFN_SHAREFALLTHROUGH: u32 = 2; +pub const OFN_SHARENOWARN: u32 = 1; +pub const OFN_SHAREWARN: u32 = 0; +pub const CDN_FIRST: i32 = -601; +pub const CDN_LAST: i32 = -699; +pub const CDN_INITDONE: i32 = -601; +pub const CDN_SELCHANGE: i32 = -602; +pub const CDN_FOLDERCHANGE: i32 = -603; +pub const CDN_SHAREVIOLATION: i32 = -604; +pub const CDN_HELP: i32 = -605; +pub const CDN_FILEOK: i32 = -606; +pub const CDN_TYPECHANGE: i32 = -607; +pub const CDN_INCLUDEITEM: i32 = -608; +pub const CDM_FIRST: u32 = 1124; +pub const CDM_LAST: u32 = 1224; +pub const CDM_GETSPEC: u32 = 1124; +pub const CDM_GETFILEPATH: u32 = 1125; +pub const CDM_GETFOLDERPATH: u32 = 1126; +pub const CDM_GETFOLDERIDLIST: u32 = 1127; +pub const CDM_SETCONTROLTEXT: u32 = 1128; +pub const CDM_HIDECONTROL: u32 = 1129; +pub const CDM_SETDEFEXT: u32 = 1130; +pub const CC_RGBINIT: u32 = 1; +pub const CC_FULLOPEN: u32 = 2; +pub const CC_PREVENTFULLOPEN: u32 = 4; +pub const CC_SHOWHELP: u32 = 8; +pub const CC_ENABLEHOOK: u32 = 16; +pub const CC_ENABLETEMPLATE: u32 = 32; +pub const CC_ENABLETEMPLATEHANDLE: u32 = 64; +pub const CC_SOLIDCOLOR: u32 = 128; +pub const CC_ANYCOLOR: u32 = 256; +pub const FR_DOWN: u32 = 1; +pub const FR_WHOLEWORD: u32 = 2; +pub const FR_MATCHCASE: u32 = 4; +pub const FR_FINDNEXT: u32 = 8; +pub const FR_REPLACE: u32 = 16; +pub const FR_REPLACEALL: u32 = 32; +pub const FR_DIALOGTERM: u32 = 64; +pub const FR_SHOWHELP: u32 = 128; +pub const FR_ENABLEHOOK: u32 = 256; +pub const FR_ENABLETEMPLATE: u32 = 512; +pub const FR_NOUPDOWN: u32 = 1024; +pub const FR_NOMATCHCASE: u32 = 2048; +pub const FR_NOWHOLEWORD: u32 = 4096; +pub const FR_ENABLETEMPLATEHANDLE: u32 = 8192; +pub const FR_HIDEUPDOWN: u32 = 16384; +pub const FR_HIDEMATCHCASE: u32 = 32768; +pub const FR_HIDEWHOLEWORD: u32 = 65536; +pub const FR_RAW: u32 = 131072; +pub const FR_SHOWWRAPAROUND: u32 = 262144; +pub const FR_NOWRAPAROUND: u32 = 524288; +pub const FR_WRAPAROUND: u32 = 1048576; +pub const FR_MATCHDIAC: u32 = 536870912; +pub const FR_MATCHKASHIDA: u32 = 1073741824; +pub const FR_MATCHALEFHAMZA: u32 = 2147483648; +pub const FRM_FIRST: u32 = 1124; +pub const FRM_LAST: u32 = 1224; +pub const FRM_SETOPERATIONRESULT: u32 = 1124; +pub const FRM_SETOPERATIONRESULTTEXT: u32 = 1125; +pub const CF_SCREENFONTS: u32 = 1; +pub const CF_PRINTERFONTS: u32 = 2; +pub const CF_BOTH: u32 = 3; +pub const CF_SHOWHELP: u32 = 4; +pub const CF_ENABLEHOOK: u32 = 8; +pub const CF_ENABLETEMPLATE: u32 = 16; +pub const CF_ENABLETEMPLATEHANDLE: u32 = 32; +pub const CF_INITTOLOGFONTSTRUCT: u32 = 64; +pub const CF_USESTYLE: u32 = 128; +pub const CF_EFFECTS: u32 = 256; +pub const CF_APPLY: u32 = 512; +pub const CF_ANSIONLY: u32 = 1024; +pub const CF_SCRIPTSONLY: u32 = 1024; +pub const CF_NOVECTORFONTS: u32 = 2048; +pub const CF_NOOEMFONTS: u32 = 2048; +pub const CF_NOSIMULATIONS: u32 = 4096; +pub const CF_LIMITSIZE: u32 = 8192; +pub const CF_FIXEDPITCHONLY: u32 = 16384; +pub const CF_WYSIWYG: u32 = 32768; +pub const CF_FORCEFONTEXIST: u32 = 65536; +pub const CF_SCALABLEONLY: u32 = 131072; +pub const CF_TTONLY: u32 = 262144; +pub const CF_NOFACESEL: u32 = 524288; +pub const CF_NOSTYLESEL: u32 = 1048576; +pub const CF_NOSIZESEL: u32 = 2097152; +pub const CF_SELECTSCRIPT: u32 = 4194304; +pub const CF_NOSCRIPTSEL: u32 = 8388608; +pub const CF_NOVERTFONTS: u32 = 16777216; +pub const CF_INACTIVEFONTS: u32 = 33554432; +pub const SIMULATED_FONTTYPE: u32 = 32768; +pub const PRINTER_FONTTYPE: u32 = 16384; +pub const SCREEN_FONTTYPE: u32 = 8192; +pub const BOLD_FONTTYPE: u32 = 256; +pub const ITALIC_FONTTYPE: u32 = 512; +pub const REGULAR_FONTTYPE: u32 = 1024; +pub const PS_OPENTYPE_FONTTYPE: u32 = 65536; +pub const TT_OPENTYPE_FONTTYPE: u32 = 131072; +pub const TYPE1_FONTTYPE: u32 = 262144; +pub const SYMBOL_FONTTYPE: u32 = 524288; +pub const WM_CHOOSEFONT_GETLOGFONT: u32 = 1025; +pub const WM_CHOOSEFONT_SETLOGFONT: u32 = 1125; +pub const WM_CHOOSEFONT_SETFLAGS: u32 = 1126; +pub const LBSELCHSTRINGA: &[u8; 27] = b"commdlg_LBSelChangedNotify\0"; +pub const SHAREVISTRINGA: &[u8; 23] = b"commdlg_ShareViolation\0"; +pub const FILEOKSTRINGA: &[u8; 19] = b"commdlg_FileNameOK\0"; +pub const COLOROKSTRINGA: &[u8; 16] = b"commdlg_ColorOK\0"; +pub const SETRGBSTRINGA: &[u8; 20] = b"commdlg_SetRGBColor\0"; +pub const HELPMSGSTRINGA: &[u8; 13] = b"commdlg_help\0"; +pub const FINDMSGSTRINGA: &[u8; 20] = b"commdlg_FindReplace\0"; +pub const LBSELCHSTRINGW: &[u8; 27] = b"commdlg_LBSelChangedNotify\0"; +pub const SHAREVISTRINGW: &[u8; 23] = b"commdlg_ShareViolation\0"; +pub const FILEOKSTRINGW: &[u8; 19] = b"commdlg_FileNameOK\0"; +pub const COLOROKSTRINGW: &[u8; 16] = b"commdlg_ColorOK\0"; +pub const SETRGBSTRINGW: &[u8; 20] = b"commdlg_SetRGBColor\0"; +pub const HELPMSGSTRINGW: &[u8; 13] = b"commdlg_help\0"; +pub const FINDMSGSTRINGW: &[u8; 20] = b"commdlg_FindReplace\0"; +pub const LBSELCHSTRING: &[u8; 27] = b"commdlg_LBSelChangedNotify\0"; +pub const SHAREVISTRING: &[u8; 23] = b"commdlg_ShareViolation\0"; +pub const FILEOKSTRING: &[u8; 19] = b"commdlg_FileNameOK\0"; +pub const COLOROKSTRING: &[u8; 16] = b"commdlg_ColorOK\0"; +pub const SETRGBSTRING: &[u8; 20] = b"commdlg_SetRGBColor\0"; +pub const HELPMSGSTRING: &[u8; 13] = b"commdlg_help\0"; +pub const FINDMSGSTRING: &[u8; 20] = b"commdlg_FindReplace\0"; +pub const CD_LBSELNOITEMS: i32 = -1; +pub const CD_LBSELCHANGE: u32 = 0; +pub const CD_LBSELSUB: u32 = 1; +pub const CD_LBSELADD: u32 = 2; +pub const PD_ALLPAGES: u32 = 0; +pub const PD_SELECTION: u32 = 1; +pub const PD_PAGENUMS: u32 = 2; +pub const PD_NOSELECTION: u32 = 4; +pub const PD_NOPAGENUMS: u32 = 8; +pub const PD_COLLATE: u32 = 16; +pub const PD_PRINTTOFILE: u32 = 32; +pub const PD_PRINTSETUP: u32 = 64; +pub const PD_NOWARNING: u32 = 128; +pub const PD_RETURNDC: u32 = 256; +pub const PD_RETURNIC: u32 = 512; +pub const PD_RETURNDEFAULT: u32 = 1024; +pub const PD_SHOWHELP: u32 = 2048; +pub const PD_ENABLEPRINTHOOK: u32 = 4096; +pub const PD_ENABLESETUPHOOK: u32 = 8192; +pub const PD_ENABLEPRINTTEMPLATE: u32 = 16384; +pub const PD_ENABLESETUPTEMPLATE: u32 = 32768; +pub const PD_ENABLEPRINTTEMPLATEHANDLE: u32 = 65536; +pub const PD_ENABLESETUPTEMPLATEHANDLE: u32 = 131072; +pub const PD_USEDEVMODECOPIES: u32 = 262144; +pub const PD_USEDEVMODECOPIESANDCOLLATE: u32 = 262144; +pub const PD_DISABLEPRINTTOFILE: u32 = 524288; +pub const PD_HIDEPRINTTOFILE: u32 = 1048576; +pub const PD_NONETWORKBUTTON: u32 = 2097152; +pub const PD_CURRENTPAGE: u32 = 4194304; +pub const PD_NOCURRENTPAGE: u32 = 8388608; +pub const PD_EXCLUSIONFLAGS: u32 = 16777216; +pub const PD_USELARGETEMPLATE: u32 = 268435456; +pub const PD_EXCL_COPIESANDCOLLATE: u32 = 33024; +pub const START_PAGE_GENERAL: u32 = 4294967295; +pub const PD_RESULT_CANCEL: u32 = 0; +pub const PD_RESULT_PRINT: u32 = 1; +pub const PD_RESULT_APPLY: u32 = 2; +pub const DN_DEFAULTPRN: u32 = 1; +pub const WM_PSD_PAGESETUPDLG: u32 = 1024; +pub const WM_PSD_FULLPAGERECT: u32 = 1025; +pub const WM_PSD_MINMARGINRECT: u32 = 1026; +pub const WM_PSD_MARGINRECT: u32 = 1027; +pub const WM_PSD_GREEKTEXTRECT: u32 = 1028; +pub const WM_PSD_ENVSTAMPRECT: u32 = 1029; +pub const WM_PSD_YAFULLPAGERECT: u32 = 1030; +pub const PSD_DEFAULTMINMARGINS: u32 = 0; +pub const PSD_INWININIINTLMEASURE: u32 = 0; +pub const PSD_MINMARGINS: u32 = 1; +pub const PSD_MARGINS: u32 = 2; +pub const PSD_INTHOUSANDTHSOFINCHES: u32 = 4; +pub const PSD_INHUNDREDTHSOFMILLIMETERS: u32 = 8; +pub const PSD_DISABLEMARGINS: u32 = 16; +pub const PSD_DISABLEPRINTER: u32 = 32; +pub const PSD_NOWARNING: u32 = 128; +pub const PSD_DISABLEORIENTATION: u32 = 256; +pub const PSD_RETURNDEFAULT: u32 = 1024; +pub const PSD_DISABLEPAPER: u32 = 512; +pub const PSD_SHOWHELP: u32 = 2048; +pub const PSD_ENABLEPAGESETUPHOOK: u32 = 8192; +pub const PSD_ENABLEPAGESETUPTEMPLATE: u32 = 32768; +pub const PSD_ENABLEPAGESETUPTEMPLATEHANDLE: u32 = 131072; +pub const PSD_ENABLEPAGEPAINTHOOK: u32 = 262144; +pub const PSD_DISABLEPAGEPAINTING: u32 = 524288; +pub const PSD_NONETWORKBUTTON: u32 = 2097152; +pub const _STRALIGN_USE_SECURE_CRT: u32 = 1; +pub const SERVICES_ACTIVE_DATABASEW: &[u8; 15] = b"ServicesActive\0"; +pub const SERVICES_FAILED_DATABASEW: &[u8; 15] = b"ServicesFailed\0"; +pub const SERVICES_ACTIVE_DATABASEA: &[u8; 15] = b"ServicesActive\0"; +pub const SERVICES_FAILED_DATABASEA: &[u8; 15] = b"ServicesFailed\0"; +pub const SC_GROUP_IDENTIFIERW: u8 = 43u8; +pub const SC_GROUP_IDENTIFIERA: u8 = 43u8; +pub const SERVICES_ACTIVE_DATABASE: &[u8; 15] = b"ServicesActive\0"; +pub const SERVICES_FAILED_DATABASE: &[u8; 15] = b"ServicesFailed\0"; +pub const SC_GROUP_IDENTIFIER: u8 = 43u8; +pub const SERVICE_NO_CHANGE: u32 = 4294967295; +pub const SERVICE_ACTIVE: u32 = 1; +pub const SERVICE_INACTIVE: u32 = 2; +pub const SERVICE_STATE_ALL: u32 = 3; +pub const SERVICE_CONTROL_STOP: u32 = 1; +pub const SERVICE_CONTROL_PAUSE: u32 = 2; +pub const SERVICE_CONTROL_CONTINUE: u32 = 3; +pub const SERVICE_CONTROL_INTERROGATE: u32 = 4; +pub const SERVICE_CONTROL_SHUTDOWN: u32 = 5; +pub const SERVICE_CONTROL_PARAMCHANGE: u32 = 6; +pub const SERVICE_CONTROL_NETBINDADD: u32 = 7; +pub const SERVICE_CONTROL_NETBINDREMOVE: u32 = 8; +pub const SERVICE_CONTROL_NETBINDENABLE: u32 = 9; +pub const SERVICE_CONTROL_NETBINDDISABLE: u32 = 10; +pub const SERVICE_CONTROL_DEVICEEVENT: u32 = 11; +pub const SERVICE_CONTROL_HARDWAREPROFILECHANGE: u32 = 12; +pub const SERVICE_CONTROL_POWEREVENT: u32 = 13; +pub const SERVICE_CONTROL_SESSIONCHANGE: u32 = 14; +pub const SERVICE_CONTROL_PRESHUTDOWN: u32 = 15; +pub const SERVICE_CONTROL_TIMECHANGE: u32 = 16; +pub const SERVICE_CONTROL_TRIGGEREVENT: u32 = 32; +pub const SERVICE_CONTROL_LOWRESOURCES: u32 = 96; +pub const SERVICE_CONTROL_SYSTEMLOWRESOURCES: u32 = 97; +pub const SERVICE_STOPPED: u32 = 1; +pub const SERVICE_START_PENDING: u32 = 2; +pub const SERVICE_STOP_PENDING: u32 = 3; +pub const SERVICE_RUNNING: u32 = 4; +pub const SERVICE_CONTINUE_PENDING: u32 = 5; +pub const SERVICE_PAUSE_PENDING: u32 = 6; +pub const SERVICE_PAUSED: u32 = 7; +pub const SERVICE_ACCEPT_STOP: u32 = 1; +pub const SERVICE_ACCEPT_PAUSE_CONTINUE: u32 = 2; +pub const SERVICE_ACCEPT_SHUTDOWN: u32 = 4; +pub const SERVICE_ACCEPT_PARAMCHANGE: u32 = 8; +pub const SERVICE_ACCEPT_NETBINDCHANGE: u32 = 16; +pub const SERVICE_ACCEPT_HARDWAREPROFILECHANGE: u32 = 32; +pub const SERVICE_ACCEPT_POWEREVENT: u32 = 64; +pub const SERVICE_ACCEPT_SESSIONCHANGE: u32 = 128; +pub const SERVICE_ACCEPT_PRESHUTDOWN: u32 = 256; +pub const SERVICE_ACCEPT_TIMECHANGE: u32 = 512; +pub const SERVICE_ACCEPT_TRIGGEREVENT: u32 = 1024; +pub const SERVICE_ACCEPT_USER_LOGOFF: u32 = 2048; +pub const SERVICE_ACCEPT_LOWRESOURCES: u32 = 8192; +pub const SERVICE_ACCEPT_SYSTEMLOWRESOURCES: u32 = 16384; +pub const SC_MANAGER_CONNECT: u32 = 1; +pub const SC_MANAGER_CREATE_SERVICE: u32 = 2; +pub const SC_MANAGER_ENUMERATE_SERVICE: u32 = 4; +pub const SC_MANAGER_LOCK: u32 = 8; +pub const SC_MANAGER_QUERY_LOCK_STATUS: u32 = 16; +pub const SC_MANAGER_MODIFY_BOOT_CONFIG: u32 = 32; +pub const SC_MANAGER_ALL_ACCESS: u32 = 983103; +pub const SERVICE_QUERY_CONFIG: u32 = 1; +pub const SERVICE_CHANGE_CONFIG: u32 = 2; +pub const SERVICE_QUERY_STATUS: u32 = 4; +pub const SERVICE_ENUMERATE_DEPENDENTS: u32 = 8; +pub const SERVICE_START: u32 = 16; +pub const SERVICE_STOP: u32 = 32; +pub const SERVICE_PAUSE_CONTINUE: u32 = 64; +pub const SERVICE_INTERROGATE: u32 = 128; +pub const SERVICE_USER_DEFINED_CONTROL: u32 = 256; +pub const SERVICE_ALL_ACCESS: u32 = 983551; +pub const SERVICE_RUNS_IN_SYSTEM_PROCESS: u32 = 1; +pub const SERVICE_CONFIG_DESCRIPTION: u32 = 1; +pub const SERVICE_CONFIG_FAILURE_ACTIONS: u32 = 2; +pub const SERVICE_CONFIG_DELAYED_AUTO_START_INFO: u32 = 3; +pub const SERVICE_CONFIG_FAILURE_ACTIONS_FLAG: u32 = 4; +pub const SERVICE_CONFIG_SERVICE_SID_INFO: u32 = 5; +pub const SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO: u32 = 6; +pub const SERVICE_CONFIG_PRESHUTDOWN_INFO: u32 = 7; +pub const SERVICE_CONFIG_TRIGGER_INFO: u32 = 8; +pub const SERVICE_CONFIG_PREFERRED_NODE: u32 = 9; +pub const SERVICE_CONFIG_LAUNCH_PROTECTED: u32 = 12; +pub const SERVICE_NOTIFY_STATUS_CHANGE_1: u32 = 1; +pub const SERVICE_NOTIFY_STATUS_CHANGE_2: u32 = 2; +pub const SERVICE_NOTIFY_STATUS_CHANGE: u32 = 2; +pub const SERVICE_NOTIFY_STOPPED: u32 = 1; +pub const SERVICE_NOTIFY_START_PENDING: u32 = 2; +pub const SERVICE_NOTIFY_STOP_PENDING: u32 = 4; +pub const SERVICE_NOTIFY_RUNNING: u32 = 8; +pub const SERVICE_NOTIFY_CONTINUE_PENDING: u32 = 16; +pub const SERVICE_NOTIFY_PAUSE_PENDING: u32 = 32; +pub const SERVICE_NOTIFY_PAUSED: u32 = 64; +pub const SERVICE_NOTIFY_CREATED: u32 = 128; +pub const SERVICE_NOTIFY_DELETED: u32 = 256; +pub const SERVICE_NOTIFY_DELETE_PENDING: u32 = 512; +pub const SERVICE_STOP_REASON_FLAG_MIN: u32 = 0; +pub const SERVICE_STOP_REASON_FLAG_UNPLANNED: u32 = 268435456; +pub const SERVICE_STOP_REASON_FLAG_CUSTOM: u32 = 536870912; +pub const SERVICE_STOP_REASON_FLAG_PLANNED: u32 = 1073741824; +pub const SERVICE_STOP_REASON_FLAG_MAX: u32 = 2147483648; +pub const SERVICE_STOP_REASON_MAJOR_MIN: u32 = 0; +pub const SERVICE_STOP_REASON_MAJOR_OTHER: u32 = 65536; +pub const SERVICE_STOP_REASON_MAJOR_HARDWARE: u32 = 131072; +pub const SERVICE_STOP_REASON_MAJOR_OPERATINGSYSTEM: u32 = 196608; +pub const SERVICE_STOP_REASON_MAJOR_SOFTWARE: u32 = 262144; +pub const SERVICE_STOP_REASON_MAJOR_APPLICATION: u32 = 327680; +pub const SERVICE_STOP_REASON_MAJOR_NONE: u32 = 393216; +pub const SERVICE_STOP_REASON_MAJOR_MAX: u32 = 458752; +pub const SERVICE_STOP_REASON_MAJOR_MIN_CUSTOM: u32 = 4194304; +pub const SERVICE_STOP_REASON_MAJOR_MAX_CUSTOM: u32 = 16711680; +pub const SERVICE_STOP_REASON_MINOR_MIN: u32 = 0; +pub const SERVICE_STOP_REASON_MINOR_OTHER: u32 = 1; +pub const SERVICE_STOP_REASON_MINOR_MAINTENANCE: u32 = 2; +pub const SERVICE_STOP_REASON_MINOR_INSTALLATION: u32 = 3; +pub const SERVICE_STOP_REASON_MINOR_UPGRADE: u32 = 4; +pub const SERVICE_STOP_REASON_MINOR_RECONFIG: u32 = 5; +pub const SERVICE_STOP_REASON_MINOR_HUNG: u32 = 6; +pub const SERVICE_STOP_REASON_MINOR_UNSTABLE: u32 = 7; +pub const SERVICE_STOP_REASON_MINOR_DISK: u32 = 8; +pub const SERVICE_STOP_REASON_MINOR_NETWORKCARD: u32 = 9; +pub const SERVICE_STOP_REASON_MINOR_ENVIRONMENT: u32 = 10; +pub const SERVICE_STOP_REASON_MINOR_HARDWARE_DRIVER: u32 = 11; +pub const SERVICE_STOP_REASON_MINOR_OTHERDRIVER: u32 = 12; +pub const SERVICE_STOP_REASON_MINOR_SERVICEPACK: u32 = 13; +pub const SERVICE_STOP_REASON_MINOR_SOFTWARE_UPDATE: u32 = 14; +pub const SERVICE_STOP_REASON_MINOR_SECURITYFIX: u32 = 15; +pub const SERVICE_STOP_REASON_MINOR_SECURITY: u32 = 16; +pub const SERVICE_STOP_REASON_MINOR_NETWORK_CONNECTIVITY: u32 = 17; +pub const SERVICE_STOP_REASON_MINOR_WMI: u32 = 18; +pub const SERVICE_STOP_REASON_MINOR_SERVICEPACK_UNINSTALL: u32 = 19; +pub const SERVICE_STOP_REASON_MINOR_SOFTWARE_UPDATE_UNINSTALL: u32 = 20; +pub const SERVICE_STOP_REASON_MINOR_SECURITYFIX_UNINSTALL: u32 = 21; +pub const SERVICE_STOP_REASON_MINOR_MMC: u32 = 22; +pub const SERVICE_STOP_REASON_MINOR_NONE: u32 = 23; +pub const SERVICE_STOP_REASON_MINOR_MEMOTYLIMIT: u32 = 24; +pub const SERVICE_STOP_REASON_MINOR_MAX: u32 = 25; +pub const SERVICE_STOP_REASON_MINOR_MIN_CUSTOM: u32 = 256; +pub const SERVICE_STOP_REASON_MINOR_MAX_CUSTOM: u32 = 65535; +pub const SERVICE_CONTROL_STATUS_REASON_INFO: u32 = 1; +pub const SERVICE_SID_TYPE_NONE: u32 = 0; +pub const SERVICE_SID_TYPE_UNRESTRICTED: u32 = 1; +pub const SERVICE_SID_TYPE_RESTRICTED: u32 = 3; +pub const SERVICE_TRIGGER_TYPE_DEVICE_INTERFACE_ARRIVAL: u32 = 1; +pub const SERVICE_TRIGGER_TYPE_IP_ADDRESS_AVAILABILITY: u32 = 2; +pub const SERVICE_TRIGGER_TYPE_DOMAIN_JOIN: u32 = 3; +pub const SERVICE_TRIGGER_TYPE_FIREWALL_PORT_EVENT: u32 = 4; +pub const SERVICE_TRIGGER_TYPE_GROUP_POLICY: u32 = 5; +pub const SERVICE_TRIGGER_TYPE_NETWORK_ENDPOINT: u32 = 6; +pub const SERVICE_TRIGGER_TYPE_CUSTOM_SYSTEM_STATE_CHANGE: u32 = 7; +pub const SERVICE_TRIGGER_TYPE_CUSTOM: u32 = 20; +pub const SERVICE_TRIGGER_TYPE_AGGREGATE: u32 = 30; +pub const SERVICE_TRIGGER_DATA_TYPE_BINARY: u32 = 1; +pub const SERVICE_TRIGGER_DATA_TYPE_STRING: u32 = 2; +pub const SERVICE_TRIGGER_DATA_TYPE_LEVEL: u32 = 3; +pub const SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ANY: u32 = 4; +pub const SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ALL: u32 = 5; +pub const SERVICE_START_REASON_DEMAND: u32 = 1; +pub const SERVICE_START_REASON_AUTO: u32 = 2; +pub const SERVICE_START_REASON_TRIGGER: u32 = 4; +pub const SERVICE_START_REASON_RESTART_ON_FAILURE: u32 = 8; +pub const SERVICE_START_REASON_DELAYEDAUTO: u32 = 16; +pub const SERVICE_DYNAMIC_INFORMATION_LEVEL_START_REASON: u32 = 1; +pub const SERVICE_LAUNCH_PROTECTED_NONE: u32 = 0; +pub const SERVICE_LAUNCH_PROTECTED_WINDOWS: u32 = 1; +pub const SERVICE_LAUNCH_PROTECTED_WINDOWS_LIGHT: u32 = 2; +pub const SERVICE_LAUNCH_PROTECTED_ANTIMALWARE_LIGHT: u32 = 3; +pub const SERVICE_TRIGGER_ACTION_SERVICE_START: u32 = 1; +pub const SERVICE_TRIGGER_ACTION_SERVICE_STOP: u32 = 2; +pub const SERVICE_TRIGGER_STARTED_ARGUMENT: &[u8; 15] = b"TriggerStarted\0"; +pub const SC_AGGREGATE_STORAGE_KEY: &[u8; 57] = + b"System\\CurrentControlSet\\Control\\ServiceAggregatedEvents\0"; +pub const DIALOPTION_BILLING: u32 = 64; +pub const DIALOPTION_QUIET: u32 = 128; +pub const DIALOPTION_DIALTONE: u32 = 256; +pub const MDMVOLFLAG_LOW: u32 = 1; +pub const MDMVOLFLAG_MEDIUM: u32 = 2; +pub const MDMVOLFLAG_HIGH: u32 = 4; +pub const MDMVOL_LOW: u32 = 0; +pub const MDMVOL_MEDIUM: u32 = 1; +pub const MDMVOL_HIGH: u32 = 2; +pub const MDMSPKRFLAG_OFF: u32 = 1; +pub const MDMSPKRFLAG_DIAL: u32 = 2; +pub const MDMSPKRFLAG_ON: u32 = 4; +pub const MDMSPKRFLAG_CALLSETUP: u32 = 8; +pub const MDMSPKR_OFF: u32 = 0; +pub const MDMSPKR_DIAL: u32 = 1; +pub const MDMSPKR_ON: u32 = 2; +pub const MDMSPKR_CALLSETUP: u32 = 3; +pub const MDM_COMPRESSION: u32 = 1; +pub const MDM_ERROR_CONTROL: u32 = 2; +pub const MDM_FORCED_EC: u32 = 4; +pub const MDM_CELLULAR: u32 = 8; +pub const MDM_FLOWCONTROL_HARD: u32 = 16; +pub const MDM_FLOWCONTROL_SOFT: u32 = 32; +pub const MDM_CCITT_OVERRIDE: u32 = 64; +pub const MDM_SPEED_ADJUST: u32 = 128; +pub const MDM_TONE_DIAL: u32 = 256; +pub const MDM_BLIND_DIAL: u32 = 512; +pub const MDM_V23_OVERRIDE: u32 = 1024; +pub const MDM_DIAGNOSTICS: u32 = 2048; +pub const MDM_MASK_BEARERMODE: u32 = 61440; +pub const MDM_SHIFT_BEARERMODE: u32 = 12; +pub const MDM_MASK_PROTOCOLID: u32 = 983040; +pub const MDM_SHIFT_PROTOCOLID: u32 = 16; +pub const MDM_MASK_PROTOCOLDATA: u32 = 267386880; +pub const MDM_SHIFT_PROTOCOLDATA: u32 = 20; +pub const MDM_MASK_PROTOCOLINFO: u32 = 268369920; +pub const MDM_SHIFT_PROTOCOLINFO: u32 = 16; +pub const MDM_MASK_EXTENDEDINFO: u32 = 268431360; +pub const MDM_SHIFT_EXTENDEDINFO: u32 = 12; +pub const MDM_BEARERMODE_ANALOG: u32 = 0; +pub const MDM_BEARERMODE_ISDN: u32 = 1; +pub const MDM_BEARERMODE_GSM: u32 = 2; +pub const MDM_PROTOCOLID_DEFAULT: u32 = 0; +pub const MDM_PROTOCOLID_HDLCPPP: u32 = 1; +pub const MDM_PROTOCOLID_V128: u32 = 2; +pub const MDM_PROTOCOLID_X75: u32 = 3; +pub const MDM_PROTOCOLID_V110: u32 = 4; +pub const MDM_PROTOCOLID_V120: u32 = 5; +pub const MDM_PROTOCOLID_AUTO: u32 = 6; +pub const MDM_PROTOCOLID_ANALOG: u32 = 7; +pub const MDM_PROTOCOLID_GPRS: u32 = 8; +pub const MDM_PROTOCOLID_PIAFS: u32 = 9; +pub const MDM_SHIFT_HDLCPPP_SPEED: u32 = 0; +pub const MDM_MASK_HDLCPPP_SPEED: u32 = 7; +pub const MDM_HDLCPPP_SPEED_DEFAULT: u32 = 0; +pub const MDM_HDLCPPP_SPEED_64K: u32 = 1; +pub const MDM_HDLCPPP_SPEED_56K: u32 = 2; +pub const MDM_SHIFT_HDLCPPP_AUTH: u32 = 3; +pub const MDM_MASK_HDLCPPP_AUTH: u32 = 56; +pub const MDM_HDLCPPP_AUTH_DEFAULT: u32 = 0; +pub const MDM_HDLCPPP_AUTH_NONE: u32 = 1; +pub const MDM_HDLCPPP_AUTH_PAP: u32 = 2; +pub const MDM_HDLCPPP_AUTH_CHAP: u32 = 3; +pub const MDM_HDLCPPP_AUTH_MSCHAP: u32 = 4; +pub const MDM_SHIFT_HDLCPPP_ML: u32 = 6; +pub const MDM_MASK_HDLCPPP_ML: u32 = 192; +pub const MDM_HDLCPPP_ML_DEFAULT: u32 = 0; +pub const MDM_HDLCPPP_ML_NONE: u32 = 1; +pub const MDM_HDLCPPP_ML_2: u32 = 2; +pub const MDM_SHIFT_V120_SPEED: u32 = 0; +pub const MDM_MASK_V120_SPEED: u32 = 7; +pub const MDM_V120_SPEED_DEFAULT: u32 = 0; +pub const MDM_V120_SPEED_64K: u32 = 1; +pub const MDM_V120_SPEED_56K: u32 = 2; +pub const MDM_SHIFT_V120_ML: u32 = 6; +pub const MDM_MASK_V120_ML: u32 = 192; +pub const MDM_V120_ML_DEFAULT: u32 = 0; +pub const MDM_V120_ML_NONE: u32 = 1; +pub const MDM_V120_ML_2: u32 = 2; +pub const MDM_SHIFT_X75_DATA: u32 = 0; +pub const MDM_MASK_X75_DATA: u32 = 7; +pub const MDM_X75_DATA_DEFAULT: u32 = 0; +pub const MDM_X75_DATA_64K: u32 = 1; +pub const MDM_X75_DATA_128K: u32 = 2; +pub const MDM_X75_DATA_T_70: u32 = 3; +pub const MDM_X75_DATA_BTX: u32 = 4; +pub const MDM_SHIFT_V110_SPEED: u32 = 0; +pub const MDM_MASK_V110_SPEED: u32 = 15; +pub const MDM_V110_SPEED_DEFAULT: u32 = 0; +pub const MDM_V110_SPEED_1DOT2K: u32 = 1; +pub const MDM_V110_SPEED_2DOT4K: u32 = 2; +pub const MDM_V110_SPEED_4DOT8K: u32 = 3; +pub const MDM_V110_SPEED_9DOT6K: u32 = 4; +pub const MDM_V110_SPEED_12DOT0K: u32 = 5; +pub const MDM_V110_SPEED_14DOT4K: u32 = 6; +pub const MDM_V110_SPEED_19DOT2K: u32 = 7; +pub const MDM_V110_SPEED_28DOT8K: u32 = 8; +pub const MDM_V110_SPEED_38DOT4K: u32 = 9; +pub const MDM_V110_SPEED_57DOT6K: u32 = 10; +pub const MDM_SHIFT_AUTO_SPEED: u32 = 0; +pub const MDM_MASK_AUTO_SPEED: u32 = 7; +pub const MDM_AUTO_SPEED_DEFAULT: u32 = 0; +pub const MDM_SHIFT_AUTO_ML: u32 = 6; +pub const MDM_MASK_AUTO_ML: u32 = 192; +pub const MDM_AUTO_ML_DEFAULT: u32 = 0; +pub const MDM_AUTO_ML_NONE: u32 = 1; +pub const MDM_AUTO_ML_2: u32 = 2; +pub const MDM_ANALOG_RLP_ON: u32 = 0; +pub const MDM_ANALOG_RLP_OFF: u32 = 1; +pub const MDM_ANALOG_V34: u32 = 2; +pub const MDM_PIAFS_INCOMING: u32 = 0; +pub const MDM_PIAFS_OUTGOING: u32 = 1; +pub const STYLE_DESCRIPTION_SIZE: u32 = 32; +pub const IMEMENUITEM_STRING_SIZE: u32 = 80; +pub const IMC_GETCANDIDATEPOS: u32 = 7; +pub const IMC_SETCANDIDATEPOS: u32 = 8; +pub const IMC_GETCOMPOSITIONFONT: u32 = 9; +pub const IMC_SETCOMPOSITIONFONT: u32 = 10; +pub const IMC_GETCOMPOSITIONWINDOW: u32 = 11; +pub const IMC_SETCOMPOSITIONWINDOW: u32 = 12; +pub const IMC_GETSTATUSWINDOWPOS: u32 = 15; +pub const IMC_SETSTATUSWINDOWPOS: u32 = 16; +pub const IMC_CLOSESTATUSWINDOW: u32 = 33; +pub const IMC_OPENSTATUSWINDOW: u32 = 34; +pub const NI_OPENCANDIDATE: u32 = 16; +pub const NI_CLOSECANDIDATE: u32 = 17; +pub const NI_SELECTCANDIDATESTR: u32 = 18; +pub const NI_CHANGECANDIDATELIST: u32 = 19; +pub const NI_FINALIZECONVERSIONRESULT: u32 = 20; +pub const NI_COMPOSITIONSTR: u32 = 21; +pub const NI_SETCANDIDATE_PAGESTART: u32 = 22; +pub const NI_SETCANDIDATE_PAGESIZE: u32 = 23; +pub const NI_IMEMENUSELECTED: u32 = 24; +pub const ISC_SHOWUICANDIDATEWINDOW: u32 = 1; +pub const ISC_SHOWUICOMPOSITIONWINDOW: u32 = 2147483648; +pub const ISC_SHOWUIGUIDELINE: u32 = 1073741824; +pub const ISC_SHOWUIALLCANDIDATEWINDOW: u32 = 15; +pub const ISC_SHOWUIALL: u32 = 3221225487; +pub const CPS_COMPLETE: u32 = 1; +pub const CPS_CONVERT: u32 = 2; +pub const CPS_REVERT: u32 = 3; +pub const CPS_CANCEL: u32 = 4; +pub const MOD_LEFT: u32 = 32768; +pub const MOD_RIGHT: u32 = 16384; +pub const MOD_ON_KEYUP: u32 = 2048; +pub const MOD_IGNORE_ALL_MODIFIER: u32 = 1024; +pub const IME_CHOTKEY_IME_NONIME_TOGGLE: u32 = 16; +pub const IME_CHOTKEY_SHAPE_TOGGLE: u32 = 17; +pub const IME_CHOTKEY_SYMBOL_TOGGLE: u32 = 18; +pub const IME_JHOTKEY_CLOSE_OPEN: u32 = 48; +pub const IME_KHOTKEY_SHAPE_TOGGLE: u32 = 80; +pub const IME_KHOTKEY_HANJACONVERT: u32 = 81; +pub const IME_KHOTKEY_ENGLISH: u32 = 82; +pub const IME_THOTKEY_IME_NONIME_TOGGLE: u32 = 112; +pub const IME_THOTKEY_SHAPE_TOGGLE: u32 = 113; +pub const IME_THOTKEY_SYMBOL_TOGGLE: u32 = 114; +pub const IME_HOTKEY_DSWITCH_FIRST: u32 = 256; +pub const IME_HOTKEY_DSWITCH_LAST: u32 = 287; +pub const IME_HOTKEY_PRIVATE_FIRST: u32 = 512; +pub const IME_ITHOTKEY_RESEND_RESULTSTR: u32 = 512; +pub const IME_ITHOTKEY_PREVIOUS_COMPOSITION: u32 = 513; +pub const IME_ITHOTKEY_UISTYLE_TOGGLE: u32 = 514; +pub const IME_ITHOTKEY_RECONVERTSTRING: u32 = 515; +pub const IME_HOTKEY_PRIVATE_LAST: u32 = 543; +pub const GCS_COMPREADSTR: u32 = 1; +pub const GCS_COMPREADATTR: u32 = 2; +pub const GCS_COMPREADCLAUSE: u32 = 4; +pub const GCS_COMPSTR: u32 = 8; +pub const GCS_COMPATTR: u32 = 16; +pub const GCS_COMPCLAUSE: u32 = 32; +pub const GCS_CURSORPOS: u32 = 128; +pub const GCS_DELTASTART: u32 = 256; +pub const GCS_RESULTREADSTR: u32 = 512; +pub const GCS_RESULTREADCLAUSE: u32 = 1024; +pub const GCS_RESULTSTR: u32 = 2048; +pub const GCS_RESULTCLAUSE: u32 = 4096; +pub const CS_INSERTCHAR: u32 = 8192; +pub const CS_NOMOVECARET: u32 = 16384; +pub const IMEVER_0310: u32 = 196618; +pub const IMEVER_0400: u32 = 262144; +pub const IME_PROP_AT_CARET: u32 = 65536; +pub const IME_PROP_SPECIAL_UI: u32 = 131072; +pub const IME_PROP_CANDLIST_START_FROM_1: u32 = 262144; +pub const IME_PROP_UNICODE: u32 = 524288; +pub const IME_PROP_COMPLETE_ON_UNSELECT: u32 = 1048576; +pub const UI_CAP_2700: u32 = 1; +pub const UI_CAP_ROT90: u32 = 2; +pub const UI_CAP_ROTANY: u32 = 4; +pub const SCS_CAP_COMPSTR: u32 = 1; +pub const SCS_CAP_MAKEREAD: u32 = 2; +pub const SCS_CAP_SETRECONVERTSTRING: u32 = 4; +pub const SELECT_CAP_CONVERSION: u32 = 1; +pub const SELECT_CAP_SENTENCE: u32 = 2; +pub const GGL_LEVEL: u32 = 1; +pub const GGL_INDEX: u32 = 2; +pub const GGL_STRING: u32 = 3; +pub const GGL_PRIVATE: u32 = 4; +pub const GL_LEVEL_NOGUIDELINE: u32 = 0; +pub const GL_LEVEL_FATAL: u32 = 1; +pub const GL_LEVEL_ERROR: u32 = 2; +pub const GL_LEVEL_WARNING: u32 = 3; +pub const GL_LEVEL_INFORMATION: u32 = 4; +pub const GL_ID_UNKNOWN: u32 = 0; +pub const GL_ID_NOMODULE: u32 = 1; +pub const GL_ID_NODICTIONARY: u32 = 16; +pub const GL_ID_CANNOTSAVE: u32 = 17; +pub const GL_ID_NOCONVERT: u32 = 32; +pub const GL_ID_TYPINGERROR: u32 = 33; +pub const GL_ID_TOOMANYSTROKE: u32 = 34; +pub const GL_ID_READINGCONFLICT: u32 = 35; +pub const GL_ID_INPUTREADING: u32 = 36; +pub const GL_ID_INPUTRADICAL: u32 = 37; +pub const GL_ID_INPUTCODE: u32 = 38; +pub const GL_ID_INPUTSYMBOL: u32 = 39; +pub const GL_ID_CHOOSECANDIDATE: u32 = 40; +pub const GL_ID_REVERSECONVERSION: u32 = 41; +pub const GL_ID_PRIVATE_FIRST: u32 = 32768; +pub const GL_ID_PRIVATE_LAST: u32 = 65535; +pub const IGP_PROPERTY: u32 = 4; +pub const IGP_CONVERSION: u32 = 8; +pub const IGP_SENTENCE: u32 = 12; +pub const IGP_UI: u32 = 16; +pub const IGP_SETCOMPSTR: u32 = 20; +pub const IGP_SELECT: u32 = 24; +pub const SCS_SETSTR: u32 = 9; +pub const SCS_CHANGEATTR: u32 = 18; +pub const SCS_CHANGECLAUSE: u32 = 36; +pub const SCS_SETRECONVERTSTRING: u32 = 65536; +pub const SCS_QUERYRECONVERTSTRING: u32 = 131072; +pub const ATTR_INPUT: u32 = 0; +pub const ATTR_TARGET_CONVERTED: u32 = 1; +pub const ATTR_CONVERTED: u32 = 2; +pub const ATTR_TARGET_NOTCONVERTED: u32 = 3; +pub const ATTR_INPUT_ERROR: u32 = 4; +pub const ATTR_FIXEDCONVERTED: u32 = 5; +pub const CFS_DEFAULT: u32 = 0; +pub const CFS_RECT: u32 = 1; +pub const CFS_POINT: u32 = 2; +pub const CFS_FORCE_POSITION: u32 = 32; +pub const CFS_CANDIDATEPOS: u32 = 64; +pub const CFS_EXCLUDE: u32 = 128; +pub const GCL_CONVERSION: u32 = 1; +pub const GCL_REVERSECONVERSION: u32 = 2; +pub const GCL_REVERSE_LENGTH: u32 = 3; +pub const IME_CMODE_ALPHANUMERIC: u32 = 0; +pub const IME_CMODE_NATIVE: u32 = 1; +pub const IME_CMODE_CHINESE: u32 = 1; +pub const IME_CMODE_HANGUL: u32 = 1; +pub const IME_CMODE_JAPANESE: u32 = 1; +pub const IME_CMODE_KATAKANA: u32 = 2; +pub const IME_CMODE_LANGUAGE: u32 = 3; +pub const IME_CMODE_FULLSHAPE: u32 = 8; +pub const IME_CMODE_ROMAN: u32 = 16; +pub const IME_CMODE_CHARCODE: u32 = 32; +pub const IME_CMODE_HANJACONVERT: u32 = 64; +pub const IME_CMODE_NATIVESYMBOL: u32 = 128; +pub const IME_CMODE_HANGEUL: u32 = 1; +pub const IME_CMODE_SOFTKBD: u32 = 128; +pub const IME_CMODE_NOCONVERSION: u32 = 256; +pub const IME_CMODE_EUDC: u32 = 512; +pub const IME_CMODE_SYMBOL: u32 = 1024; +pub const IME_CMODE_FIXED: u32 = 2048; +pub const IME_CMODE_RESERVED: u32 = 4026531840; +pub const IME_SMODE_NONE: u32 = 0; +pub const IME_SMODE_PLAURALCLAUSE: u32 = 1; +pub const IME_SMODE_SINGLECONVERT: u32 = 2; +pub const IME_SMODE_AUTOMATIC: u32 = 4; +pub const IME_SMODE_PHRASEPREDICT: u32 = 8; +pub const IME_SMODE_CONVERSATION: u32 = 16; +pub const IME_SMODE_RESERVED: u32 = 61440; +pub const IME_CAND_UNKNOWN: u32 = 0; +pub const IME_CAND_READ: u32 = 1; +pub const IME_CAND_CODE: u32 = 2; +pub const IME_CAND_MEANING: u32 = 3; +pub const IME_CAND_RADICAL: u32 = 4; +pub const IME_CAND_STROKE: u32 = 5; +pub const IMN_CLOSESTATUSWINDOW: u32 = 1; +pub const IMN_OPENSTATUSWINDOW: u32 = 2; +pub const IMN_CHANGECANDIDATE: u32 = 3; +pub const IMN_CLOSECANDIDATE: u32 = 4; +pub const IMN_OPENCANDIDATE: u32 = 5; +pub const IMN_SETCONVERSIONMODE: u32 = 6; +pub const IMN_SETSENTENCEMODE: u32 = 7; +pub const IMN_SETOPENSTATUS: u32 = 8; +pub const IMN_SETCANDIDATEPOS: u32 = 9; +pub const IMN_SETCOMPOSITIONFONT: u32 = 10; +pub const IMN_SETCOMPOSITIONWINDOW: u32 = 11; +pub const IMN_SETSTATUSWINDOWPOS: u32 = 12; +pub const IMN_GUIDELINE: u32 = 13; +pub const IMN_PRIVATE: u32 = 14; +pub const IMR_COMPOSITIONWINDOW: u32 = 1; +pub const IMR_CANDIDATEWINDOW: u32 = 2; +pub const IMR_COMPOSITIONFONT: u32 = 3; +pub const IMR_RECONVERTSTRING: u32 = 4; +pub const IMR_CONFIRMRECONVERTSTRING: u32 = 5; +pub const IMR_QUERYCHARPOSITION: u32 = 6; +pub const IMR_DOCUMENTFEED: u32 = 7; +pub const IMM_ERROR_NODATA: i32 = -1; +pub const IMM_ERROR_GENERAL: i32 = -2; +pub const IME_CONFIG_GENERAL: u32 = 1; +pub const IME_CONFIG_REGISTERWORD: u32 = 2; +pub const IME_CONFIG_SELECTDICTIONARY: u32 = 3; +pub const IME_ESC_QUERY_SUPPORT: u32 = 3; +pub const IME_ESC_RESERVED_FIRST: u32 = 4; +pub const IME_ESC_RESERVED_LAST: u32 = 2047; +pub const IME_ESC_PRIVATE_FIRST: u32 = 2048; +pub const IME_ESC_PRIVATE_LAST: u32 = 4095; +pub const IME_ESC_SEQUENCE_TO_INTERNAL: u32 = 4097; +pub const IME_ESC_GET_EUDC_DICTIONARY: u32 = 4099; +pub const IME_ESC_SET_EUDC_DICTIONARY: u32 = 4100; +pub const IME_ESC_MAX_KEY: u32 = 4101; +pub const IME_ESC_IME_NAME: u32 = 4102; +pub const IME_ESC_SYNC_HOTKEY: u32 = 4103; +pub const IME_ESC_HANJA_MODE: u32 = 4104; +pub const IME_ESC_AUTOMATA: u32 = 4105; +pub const IME_ESC_PRIVATE_HOTKEY: u32 = 4106; +pub const IME_ESC_GETHELPFILENAME: u32 = 4107; +pub const IME_REGWORD_STYLE_EUDC: u32 = 1; +pub const IME_REGWORD_STYLE_USER_FIRST: u32 = 2147483648; +pub const IME_REGWORD_STYLE_USER_LAST: u32 = 4294967295; +pub const IACE_CHILDREN: u32 = 1; +pub const IACE_DEFAULT: u32 = 16; +pub const IACE_IGNORENOCONTEXT: u32 = 32; +pub const IGIMIF_RIGHTMENU: u32 = 1; +pub const IGIMII_CMODE: u32 = 1; +pub const IGIMII_SMODE: u32 = 2; +pub const IGIMII_CONFIGURE: u32 = 4; +pub const IGIMII_TOOLS: u32 = 8; +pub const IGIMII_HELP: u32 = 16; +pub const IGIMII_OTHER: u32 = 32; +pub const IGIMII_INPUTTOOLS: u32 = 64; +pub const IMFT_RADIOCHECK: u32 = 1; +pub const IMFT_SEPARATOR: u32 = 2; +pub const IMFT_SUBMENU: u32 = 4; +pub const IMFS_GRAYED: u32 = 3; +pub const IMFS_DISABLED: u32 = 3; +pub const IMFS_CHECKED: u32 = 8; +pub const IMFS_HILITE: u32 = 128; +pub const IMFS_ENABLED: u32 = 0; +pub const IMFS_UNCHECKED: u32 = 0; +pub const IMFS_UNHILITE: u32 = 0; +pub const IMFS_DEFAULT: u32 = 4096; +pub const SOFTKEYBOARD_TYPE_T1: u32 = 1; +pub const SOFTKEYBOARD_TYPE_C1: u32 = 2; +pub const WCHAR_MIN: u32 = 0; +pub const WCHAR_MAX: u32 = 65535; +pub const WINT_MIN: u32 = 0; +pub const WINT_MAX: u32 = 65535; +pub const PRId8: &[u8; 4] = b"hhd\0"; +pub const PRId16: &[u8; 3] = b"hd\0"; +pub const PRId32: &[u8; 2] = b"d\0"; +pub const PRId64: &[u8; 4] = b"lld\0"; +pub const PRIdLEAST8: &[u8; 4] = b"hhd\0"; +pub const PRIdLEAST16: &[u8; 3] = b"hd\0"; +pub const PRIdLEAST32: &[u8; 2] = b"d\0"; +pub const PRIdLEAST64: &[u8; 4] = b"lld\0"; +pub const PRIdFAST8: &[u8; 4] = b"hhd\0"; +pub const PRIdFAST16: &[u8; 2] = b"d\0"; +pub const PRIdFAST32: &[u8; 2] = b"d\0"; +pub const PRIdFAST64: &[u8; 4] = b"lld\0"; +pub const PRIdMAX: &[u8; 4] = b"lld\0"; +pub const PRIdPTR: &[u8; 4] = b"lld\0"; +pub const PRIi8: &[u8; 4] = b"hhi\0"; +pub const PRIi16: &[u8; 3] = b"hi\0"; +pub const PRIi32: &[u8; 2] = b"i\0"; +pub const PRIi64: &[u8; 4] = b"lli\0"; +pub const PRIiLEAST8: &[u8; 4] = b"hhi\0"; +pub const PRIiLEAST16: &[u8; 3] = b"hi\0"; +pub const PRIiLEAST32: &[u8; 2] = b"i\0"; +pub const PRIiLEAST64: &[u8; 4] = b"lli\0"; +pub const PRIiFAST8: &[u8; 4] = b"hhi\0"; +pub const PRIiFAST16: &[u8; 2] = b"i\0"; +pub const PRIiFAST32: &[u8; 2] = b"i\0"; +pub const PRIiFAST64: &[u8; 4] = b"lli\0"; +pub const PRIiMAX: &[u8; 4] = b"lli\0"; +pub const PRIiPTR: &[u8; 4] = b"lli\0"; +pub const PRIo8: &[u8; 4] = b"hho\0"; +pub const PRIo16: &[u8; 3] = b"ho\0"; +pub const PRIo32: &[u8; 2] = b"o\0"; +pub const PRIo64: &[u8; 4] = b"llo\0"; +pub const PRIoLEAST8: &[u8; 4] = b"hho\0"; +pub const PRIoLEAST16: &[u8; 3] = b"ho\0"; +pub const PRIoLEAST32: &[u8; 2] = b"o\0"; +pub const PRIoLEAST64: &[u8; 4] = b"llo\0"; +pub const PRIoFAST8: &[u8; 4] = b"hho\0"; +pub const PRIoFAST16: &[u8; 2] = b"o\0"; +pub const PRIoFAST32: &[u8; 2] = b"o\0"; +pub const PRIoFAST64: &[u8; 4] = b"llo\0"; +pub const PRIoMAX: &[u8; 4] = b"llo\0"; +pub const PRIoPTR: &[u8; 4] = b"llo\0"; +pub const PRIu8: &[u8; 4] = b"hhu\0"; +pub const PRIu16: &[u8; 3] = b"hu\0"; +pub const PRIu32: &[u8; 2] = b"u\0"; +pub const PRIu64: &[u8; 4] = b"llu\0"; +pub const PRIuLEAST8: &[u8; 4] = b"hhu\0"; +pub const PRIuLEAST16: &[u8; 3] = b"hu\0"; +pub const PRIuLEAST32: &[u8; 2] = b"u\0"; +pub const PRIuLEAST64: &[u8; 4] = b"llu\0"; +pub const PRIuFAST8: &[u8; 4] = b"hhu\0"; +pub const PRIuFAST16: &[u8; 2] = b"u\0"; +pub const PRIuFAST32: &[u8; 2] = b"u\0"; +pub const PRIuFAST64: &[u8; 4] = b"llu\0"; +pub const PRIuMAX: &[u8; 4] = b"llu\0"; +pub const PRIuPTR: &[u8; 4] = b"llu\0"; +pub const PRIx8: &[u8; 4] = b"hhx\0"; +pub const PRIx16: &[u8; 3] = b"hx\0"; +pub const PRIx32: &[u8; 2] = b"x\0"; +pub const PRIx64: &[u8; 4] = b"llx\0"; +pub const PRIxLEAST8: &[u8; 4] = b"hhx\0"; +pub const PRIxLEAST16: &[u8; 3] = b"hx\0"; +pub const PRIxLEAST32: &[u8; 2] = b"x\0"; +pub const PRIxLEAST64: &[u8; 4] = b"llx\0"; +pub const PRIxFAST8: &[u8; 4] = b"hhx\0"; +pub const PRIxFAST16: &[u8; 2] = b"x\0"; +pub const PRIxFAST32: &[u8; 2] = b"x\0"; +pub const PRIxFAST64: &[u8; 4] = b"llx\0"; +pub const PRIxMAX: &[u8; 4] = b"llx\0"; +pub const PRIxPTR: &[u8; 4] = b"llx\0"; +pub const PRIX8: &[u8; 4] = b"hhX\0"; +pub const PRIX16: &[u8; 3] = b"hX\0"; +pub const PRIX32: &[u8; 2] = b"X\0"; +pub const PRIX64: &[u8; 4] = b"llX\0"; +pub const PRIXLEAST8: &[u8; 4] = b"hhX\0"; +pub const PRIXLEAST16: &[u8; 3] = b"hX\0"; +pub const PRIXLEAST32: &[u8; 2] = b"X\0"; +pub const PRIXLEAST64: &[u8; 4] = b"llX\0"; +pub const PRIXFAST8: &[u8; 4] = b"hhX\0"; +pub const PRIXFAST16: &[u8; 2] = b"X\0"; +pub const PRIXFAST32: &[u8; 2] = b"X\0"; +pub const PRIXFAST64: &[u8; 4] = b"llX\0"; +pub const PRIXMAX: &[u8; 4] = b"llX\0"; +pub const PRIXPTR: &[u8; 4] = b"llX\0"; +pub const SCNd8: &[u8; 4] = b"hhd\0"; +pub const SCNd16: &[u8; 3] = b"hd\0"; +pub const SCNd32: &[u8; 2] = b"d\0"; +pub const SCNd64: &[u8; 4] = b"lld\0"; +pub const SCNdLEAST8: &[u8; 4] = b"hhd\0"; +pub const SCNdLEAST16: &[u8; 3] = b"hd\0"; +pub const SCNdLEAST32: &[u8; 2] = b"d\0"; +pub const SCNdLEAST64: &[u8; 4] = b"lld\0"; +pub const SCNdFAST8: &[u8; 4] = b"hhd\0"; +pub const SCNdFAST16: &[u8; 2] = b"d\0"; +pub const SCNdFAST32: &[u8; 2] = b"d\0"; +pub const SCNdFAST64: &[u8; 4] = b"lld\0"; +pub const SCNdMAX: &[u8; 4] = b"lld\0"; +pub const SCNdPTR: &[u8; 4] = b"lld\0"; +pub const SCNi8: &[u8; 4] = b"hhi\0"; +pub const SCNi16: &[u8; 3] = b"hi\0"; +pub const SCNi32: &[u8; 2] = b"i\0"; +pub const SCNi64: &[u8; 4] = b"lli\0"; +pub const SCNiLEAST8: &[u8; 4] = b"hhi\0"; +pub const SCNiLEAST16: &[u8; 3] = b"hi\0"; +pub const SCNiLEAST32: &[u8; 2] = b"i\0"; +pub const SCNiLEAST64: &[u8; 4] = b"lli\0"; +pub const SCNiFAST8: &[u8; 4] = b"hhi\0"; +pub const SCNiFAST16: &[u8; 2] = b"i\0"; +pub const SCNiFAST32: &[u8; 2] = b"i\0"; +pub const SCNiFAST64: &[u8; 4] = b"lli\0"; +pub const SCNiMAX: &[u8; 4] = b"lli\0"; +pub const SCNiPTR: &[u8; 4] = b"lli\0"; +pub const SCNo8: &[u8; 4] = b"hho\0"; +pub const SCNo16: &[u8; 3] = b"ho\0"; +pub const SCNo32: &[u8; 2] = b"o\0"; +pub const SCNo64: &[u8; 4] = b"llo\0"; +pub const SCNoLEAST8: &[u8; 4] = b"hho\0"; +pub const SCNoLEAST16: &[u8; 3] = b"ho\0"; +pub const SCNoLEAST32: &[u8; 2] = b"o\0"; +pub const SCNoLEAST64: &[u8; 4] = b"llo\0"; +pub const SCNoFAST8: &[u8; 4] = b"hho\0"; +pub const SCNoFAST16: &[u8; 2] = b"o\0"; +pub const SCNoFAST32: &[u8; 2] = b"o\0"; +pub const SCNoFAST64: &[u8; 4] = b"llo\0"; +pub const SCNoMAX: &[u8; 4] = b"llo\0"; +pub const SCNoPTR: &[u8; 4] = b"llo\0"; +pub const SCNu8: &[u8; 4] = b"hhu\0"; +pub const SCNu16: &[u8; 3] = b"hu\0"; +pub const SCNu32: &[u8; 2] = b"u\0"; +pub const SCNu64: &[u8; 4] = b"llu\0"; +pub const SCNuLEAST8: &[u8; 4] = b"hhu\0"; +pub const SCNuLEAST16: &[u8; 3] = b"hu\0"; +pub const SCNuLEAST32: &[u8; 2] = b"u\0"; +pub const SCNuLEAST64: &[u8; 4] = b"llu\0"; +pub const SCNuFAST8: &[u8; 4] = b"hhu\0"; +pub const SCNuFAST16: &[u8; 2] = b"u\0"; +pub const SCNuFAST32: &[u8; 2] = b"u\0"; +pub const SCNuFAST64: &[u8; 4] = b"llu\0"; +pub const SCNuMAX: &[u8; 4] = b"llu\0"; +pub const SCNuPTR: &[u8; 4] = b"llu\0"; +pub const SCNx8: &[u8; 4] = b"hhx\0"; +pub const SCNx16: &[u8; 3] = b"hx\0"; +pub const SCNx32: &[u8; 2] = b"x\0"; +pub const SCNx64: &[u8; 4] = b"llx\0"; +pub const SCNxLEAST8: &[u8; 4] = b"hhx\0"; +pub const SCNxLEAST16: &[u8; 3] = b"hx\0"; +pub const SCNxLEAST32: &[u8; 2] = b"x\0"; +pub const SCNxLEAST64: &[u8; 4] = b"llx\0"; +pub const SCNxFAST8: &[u8; 4] = b"hhx\0"; +pub const SCNxFAST16: &[u8; 2] = b"x\0"; +pub const SCNxFAST32: &[u8; 2] = b"x\0"; +pub const SCNxFAST64: &[u8; 4] = b"llx\0"; +pub const SCNxMAX: &[u8; 4] = b"llx\0"; +pub const SCNxPTR: &[u8; 4] = b"llx\0"; +pub const __bool_true_false_are_defined: u32 = 1; +pub const true_: u32 = 1; +pub const false_: u32 = 0; +pub type va_list = *mut ::std::os::raw::c_char; +extern "C" { + pub fn __va_start(arg1: *mut *mut ::std::os::raw::c_char, ...); +} +pub type __vcrt_bool = bool; +pub type wchar_t = ::std::os::raw::c_ushort; +extern "C" { + pub fn __security_init_cookie(); +} +extern "C" { + pub fn __security_check_cookie(_StackCookie: usize); +} +extern "C" { + pub fn __report_gsfailure(_StackCookie: usize) -> !; +} +extern "C" { + pub static mut __security_cookie: usize; +} +pub const _EXCEPTION_DISPOSITION_ExceptionContinueExecution: _EXCEPTION_DISPOSITION = 0; +pub const _EXCEPTION_DISPOSITION_ExceptionContinueSearch: _EXCEPTION_DISPOSITION = 1; +pub const _EXCEPTION_DISPOSITION_ExceptionNestedException: _EXCEPTION_DISPOSITION = 2; +pub const _EXCEPTION_DISPOSITION_ExceptionCollidedUnwind: _EXCEPTION_DISPOSITION = 3; +pub type _EXCEPTION_DISPOSITION = ::std::os::raw::c_int; +pub use self::_EXCEPTION_DISPOSITION as EXCEPTION_DISPOSITION; +extern "C" { + pub fn __C_specific_handler( + ExceptionRecord: *mut _EXCEPTION_RECORD, + EstablisherFrame: *mut ::std::os::raw::c_void, + ContextRecord: *mut _CONTEXT, + DispatcherContext: *mut _DISPATCHER_CONTEXT, + ) -> EXCEPTION_DISPOSITION; +} +extern "C" { + pub fn _exception_code() -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn _exception_info() -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _abnormal_termination() -> ::std::os::raw::c_int; +} +pub type __gnuc_va_list = __builtin_va_list; +pub type ULONG = ::std::os::raw::c_ulong; +pub type PULONG = *mut ULONG; +pub type USHORT = ::std::os::raw::c_ushort; +pub type PUSHORT = *mut USHORT; +pub type UCHAR = ::std::os::raw::c_uchar; +pub type PUCHAR = *mut UCHAR; +pub type PSZ = *mut ::std::os::raw::c_char; +pub type DWORD = ::std::os::raw::c_ulong; +pub type BOOL = ::std::os::raw::c_int; +pub type BYTE = ::std::os::raw::c_uchar; +pub type WORD = ::std::os::raw::c_ushort; +pub type FLOAT = f32; +pub type PFLOAT = *mut FLOAT; +pub type PBOOL = *mut BOOL; +pub type LPBOOL = *mut BOOL; +pub type PBYTE = *mut BYTE; +pub type LPBYTE = *mut BYTE; +pub type PINT = *mut ::std::os::raw::c_int; +pub type LPINT = *mut ::std::os::raw::c_int; +pub type PWORD = *mut WORD; +pub type LPWORD = *mut WORD; +pub type LPLONG = *mut ::std::os::raw::c_long; +pub type PDWORD = *mut DWORD; +pub type LPDWORD = *mut DWORD; +pub type LPVOID = *mut ::std::os::raw::c_void; +pub type LPCVOID = *const ::std::os::raw::c_void; +pub type INT = ::std::os::raw::c_int; +pub type UINT = ::std::os::raw::c_uint; +pub type PUINT = *mut ::std::os::raw::c_uint; +pub type __crt_bool = bool; +extern "C" { + pub fn _invalid_parameter_noinfo(); +} +extern "C" { + pub fn _invalid_parameter_noinfo_noreturn() -> !; +} +extern "C" { + pub fn _invoke_watson( + _Expression: *const wchar_t, + _FunctionName: *const wchar_t, + _FileName: *const wchar_t, + _LineNo: ::std::os::raw::c_uint, + _Reserved: usize, + ) -> !; +} +pub type errno_t = ::std::os::raw::c_int; +pub type wint_t = ::std::os::raw::c_ushort; +pub type wctype_t = ::std::os::raw::c_ushort; +pub type __time32_t = ::std::os::raw::c_long; +pub type __time64_t = ::std::os::raw::c_longlong; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __crt_locale_data_public { + pub _locale_pctype: *const ::std::os::raw::c_ushort, + pub _locale_mb_cur_max: ::std::os::raw::c_int, + pub _locale_lc_codepage: ::std::os::raw::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __crt_locale_pointers { + pub locinfo: *mut __crt_locale_data, + pub mbcinfo: *mut __crt_multibyte_data, +} +pub type _locale_t = *mut __crt_locale_pointers; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _Mbstatet { + pub _Wchar: ::std::os::raw::c_ulong, + pub _Byte: ::std::os::raw::c_ushort, + pub _State: ::std::os::raw::c_ushort, +} +pub type mbstate_t = _Mbstatet; +pub type time_t = __time64_t; +pub type rsize_t = usize; +extern "C" { + pub fn __pctype_func() -> *const ::std::os::raw::c_ushort; +} +extern "C" { + pub fn __pwctype_func() -> *const wctype_t; +} +extern "C" { + pub fn iswalnum(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iswalpha(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iswascii(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iswblank(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iswcntrl(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iswdigit(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iswgraph(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iswlower(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iswprint(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iswpunct(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iswspace(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iswupper(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iswxdigit(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __iswcsymf(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __iswcsym(_C: wint_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iswalnum_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iswalpha_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iswblank_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iswcntrl_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iswdigit_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iswgraph_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iswlower_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iswprint_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iswpunct_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iswspace_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iswupper_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iswxdigit_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iswcsymf_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iswcsym_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn towupper(_C: wint_t) -> wint_t; +} +extern "C" { + pub fn towlower(_C: wint_t) -> wint_t; +} +extern "C" { + pub fn iswctype(_C: wint_t, _Type: wctype_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _towupper_l(_C: wint_t, _Locale: _locale_t) -> wint_t; +} +extern "C" { + pub fn _towlower_l(_C: wint_t, _Locale: _locale_t) -> wint_t; +} +extern "C" { + pub fn _iswctype_l(_C: wint_t, _Type: wctype_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isleadbyte(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _isleadbyte_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn is_wctype(_C: wint_t, _Type: wctype_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _isctype( + _C: ::std::os::raw::c_int, + _Type: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _isctype_l( + _C: ::std::os::raw::c_int, + _Type: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isalpha(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _isalpha_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isupper(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _isupper_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn islower(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _islower_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isdigit(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _isdigit_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isxdigit(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _isxdigit_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isspace(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _isspace_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ispunct(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _ispunct_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isblank(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _isblank_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isalnum(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _isalnum_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isprint(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _isprint_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn isgraph(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _isgraph_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn iscntrl(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _iscntrl_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn toupper(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn tolower(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _tolower(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _tolower_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _toupper(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _toupper_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __isascii(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __toascii(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __iscsymf(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __iscsym(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ___mb_cur_max_func() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ___mb_cur_max_l_func(_Locale: _locale_t) -> ::std::os::raw::c_int; +} +pub type POINTER_64_INT = ::std::os::raw::c_ulonglong; +pub type INT8 = ::std::os::raw::c_schar; +pub type PINT8 = *mut ::std::os::raw::c_schar; +pub type INT16 = ::std::os::raw::c_short; +pub type PINT16 = *mut ::std::os::raw::c_short; +pub type INT32 = ::std::os::raw::c_int; +pub type PINT32 = *mut ::std::os::raw::c_int; +pub type INT64 = ::std::os::raw::c_longlong; +pub type PINT64 = *mut ::std::os::raw::c_longlong; +pub type UINT8 = ::std::os::raw::c_uchar; +pub type PUINT8 = *mut ::std::os::raw::c_uchar; +pub type UINT16 = ::std::os::raw::c_ushort; +pub type PUINT16 = *mut ::std::os::raw::c_ushort; +pub type UINT32 = ::std::os::raw::c_uint; +pub type PUINT32 = *mut ::std::os::raw::c_uint; +pub type UINT64 = ::std::os::raw::c_ulonglong; +pub type PUINT64 = *mut ::std::os::raw::c_ulonglong; +pub type LONG32 = ::std::os::raw::c_int; +pub type PLONG32 = *mut ::std::os::raw::c_int; +pub type ULONG32 = ::std::os::raw::c_uint; +pub type PULONG32 = *mut ::std::os::raw::c_uint; +pub type DWORD32 = ::std::os::raw::c_uint; +pub type PDWORD32 = *mut ::std::os::raw::c_uint; +pub type INT_PTR = ::std::os::raw::c_longlong; +pub type PINT_PTR = *mut ::std::os::raw::c_longlong; +pub type UINT_PTR = ::std::os::raw::c_ulonglong; +pub type PUINT_PTR = *mut ::std::os::raw::c_ulonglong; +pub type LONG_PTR = ::std::os::raw::c_longlong; +pub type PLONG_PTR = *mut ::std::os::raw::c_longlong; +pub type ULONG_PTR = ::std::os::raw::c_ulonglong; +pub type PULONG_PTR = *mut ::std::os::raw::c_ulonglong; +pub type PHANDLE64 = *mut *mut ::std::os::raw::c_void; +pub type SHANDLE_PTR = ::std::os::raw::c_longlong; +pub type HANDLE_PTR = ::std::os::raw::c_ulonglong; +pub type UHALF_PTR = ::std::os::raw::c_uint; +pub type PUHALF_PTR = *mut ::std::os::raw::c_uint; +pub type HALF_PTR = ::std::os::raw::c_int; +pub type PHALF_PTR = *mut ::std::os::raw::c_int; +pub type SIZE_T = ULONG_PTR; +pub type PSIZE_T = *mut ULONG_PTR; +pub type SSIZE_T = LONG_PTR; +pub type PSSIZE_T = *mut LONG_PTR; +pub type DWORD_PTR = ULONG_PTR; +pub type PDWORD_PTR = *mut ULONG_PTR; +pub type LONG64 = ::std::os::raw::c_longlong; +pub type PLONG64 = *mut ::std::os::raw::c_longlong; +pub type ULONG64 = ::std::os::raw::c_ulonglong; +pub type PULONG64 = *mut ::std::os::raw::c_ulonglong; +pub type DWORD64 = ::std::os::raw::c_ulonglong; +pub type PDWORD64 = *mut ::std::os::raw::c_ulonglong; +pub type KAFFINITY = ULONG_PTR; +pub type PKAFFINITY = *mut KAFFINITY; +pub type PVOID = *mut ::std::os::raw::c_void; +pub type CHAR = ::std::os::raw::c_char; +pub type SHORT = ::std::os::raw::c_short; +pub type LONG = ::std::os::raw::c_long; +pub type WCHAR = wchar_t; +pub type PWCHAR = *mut WCHAR; +pub type LPWCH = *mut WCHAR; +pub type PWCH = *mut WCHAR; +pub type LPCWCH = *const WCHAR; +pub type PCWCH = *const WCHAR; +pub type NWPSTR = *mut WCHAR; +pub type LPWSTR = *mut WCHAR; +pub type PWSTR = *mut WCHAR; +pub type PZPWSTR = *mut PWSTR; +pub type PCZPWSTR = *const PWSTR; +pub type LPUWSTR = *mut WCHAR; +pub type PUWSTR = *mut WCHAR; +pub type LPCWSTR = *const WCHAR; +pub type PCWSTR = *const WCHAR; +pub type PZPCWSTR = *mut PCWSTR; +pub type PCZPCWSTR = *const PCWSTR; +pub type LPCUWSTR = *const WCHAR; +pub type PCUWSTR = *const WCHAR; +pub type PZZWSTR = *mut WCHAR; +pub type PCZZWSTR = *const WCHAR; +pub type PUZZWSTR = *mut WCHAR; +pub type PCUZZWSTR = *const WCHAR; +pub type PNZWCH = *mut WCHAR; +pub type PCNZWCH = *const WCHAR; +pub type PUNZWCH = *mut WCHAR; +pub type PCUNZWCH = *const WCHAR; +pub type LPCWCHAR = *const WCHAR; +pub type PCWCHAR = *const WCHAR; +pub type LPCUWCHAR = *const WCHAR; +pub type PCUWCHAR = *const WCHAR; +pub type UCSCHAR = ::std::os::raw::c_ulong; +pub type PUCSCHAR = *mut UCSCHAR; +pub type PCUCSCHAR = *const UCSCHAR; +pub type PUCSSTR = *mut UCSCHAR; +pub type PUUCSSTR = *mut UCSCHAR; +pub type PCUCSSTR = *const UCSCHAR; +pub type PCUUCSSTR = *const UCSCHAR; +pub type PUUCSCHAR = *mut UCSCHAR; +pub type PCUUCSCHAR = *const UCSCHAR; +pub type PCHAR = *mut CHAR; +pub type LPCH = *mut CHAR; +pub type PCH = *mut CHAR; +pub type LPCCH = *const CHAR; +pub type PCCH = *const CHAR; +pub type NPSTR = *mut CHAR; +pub type LPSTR = *mut CHAR; +pub type PSTR = *mut CHAR; +pub type PZPSTR = *mut PSTR; +pub type PCZPSTR = *const PSTR; +pub type LPCSTR = *const CHAR; +pub type PCSTR = *const CHAR; +pub type PZPCSTR = *mut PCSTR; +pub type PCZPCSTR = *const PCSTR; +pub type PZZSTR = *mut CHAR; +pub type PCZZSTR = *const CHAR; +pub type PNZCH = *mut CHAR; +pub type PCNZCH = *const CHAR; +pub type TCHAR = ::std::os::raw::c_char; +pub type PTCHAR = *mut ::std::os::raw::c_char; +pub type TBYTE = ::std::os::raw::c_uchar; +pub type PTBYTE = *mut ::std::os::raw::c_uchar; +pub type LPTCH = LPCH; +pub type PTCH = LPCH; +pub type LPCTCH = LPCCH; +pub type PCTCH = LPCCH; +pub type PTSTR = LPSTR; +pub type LPTSTR = LPSTR; +pub type PUTSTR = LPSTR; +pub type LPUTSTR = LPSTR; +pub type PCTSTR = LPCSTR; +pub type LPCTSTR = LPCSTR; +pub type PCUTSTR = LPCSTR; +pub type LPCUTSTR = LPCSTR; +pub type PZZTSTR = PZZSTR; +pub type PUZZTSTR = PZZSTR; +pub type PCZZTSTR = PCZZSTR; +pub type PCUZZTSTR = PCZZSTR; +pub type PZPTSTR = PZPSTR; +pub type PNZTCH = PNZCH; +pub type PUNZTCH = PNZCH; +pub type PCNZTCH = PCNZCH; +pub type PCUNZTCH = PCNZCH; +pub type PSHORT = *mut SHORT; +pub type PLONG = *mut LONG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESSOR_NUMBER { + pub Group: WORD, + pub Number: BYTE, + pub Reserved: BYTE, +} +pub type PROCESSOR_NUMBER = _PROCESSOR_NUMBER; +pub type PPROCESSOR_NUMBER = *mut _PROCESSOR_NUMBER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _GROUP_AFFINITY { + pub Mask: KAFFINITY, + pub Group: WORD, + pub Reserved: [WORD; 3usize], +} +pub type GROUP_AFFINITY = _GROUP_AFFINITY; +pub type PGROUP_AFFINITY = *mut _GROUP_AFFINITY; +pub type HANDLE = *mut ::std::os::raw::c_void; +pub type PHANDLE = *mut HANDLE; +pub type FCHAR = BYTE; +pub type FSHORT = WORD; +pub type FLONG = DWORD; +pub type HRESULT = ::std::os::raw::c_long; +pub type CCHAR = ::std::os::raw::c_char; +pub type LCID = DWORD; +pub type PLCID = PDWORD; +pub type LANGID = WORD; +pub const COMPARTMENT_ID_UNSPECIFIED_COMPARTMENT_ID: COMPARTMENT_ID = 0; +pub const COMPARTMENT_ID_DEFAULT_COMPARTMENT_ID: COMPARTMENT_ID = 1; +pub type COMPARTMENT_ID = ::std::os::raw::c_int; +pub type PCOMPARTMENT_ID = *mut COMPARTMENT_ID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FLOAT128 { + pub LowPart: ::std::os::raw::c_longlong, + pub HighPart: ::std::os::raw::c_longlong, +} +pub type FLOAT128 = _FLOAT128; +pub type PFLOAT128 = *mut FLOAT128; +pub type LONGLONG = ::std::os::raw::c_longlong; +pub type ULONGLONG = ::std::os::raw::c_ulonglong; +pub type PLONGLONG = *mut LONGLONG; +pub type PULONGLONG = *mut ULONGLONG; +pub type USN = LONGLONG; +#[repr(C)] +#[derive(Copy, Clone)] +pub union _LARGE_INTEGER { + pub __bindgen_anon_1: _LARGE_INTEGER__bindgen_ty_1, + pub u: _LARGE_INTEGER__bindgen_ty_2, + pub QuadPart: LONGLONG, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LARGE_INTEGER__bindgen_ty_1 { + pub LowPart: DWORD, + pub HighPart: LONG, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LARGE_INTEGER__bindgen_ty_2 { + pub LowPart: DWORD, + pub HighPart: LONG, +} +pub type LARGE_INTEGER = _LARGE_INTEGER; +pub type PLARGE_INTEGER = *mut LARGE_INTEGER; +#[repr(C)] +#[derive(Copy, Clone)] +pub union _ULARGE_INTEGER { + pub __bindgen_anon_1: _ULARGE_INTEGER__bindgen_ty_1, + pub u: _ULARGE_INTEGER__bindgen_ty_2, + pub QuadPart: ULONGLONG, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ULARGE_INTEGER__bindgen_ty_1 { + pub LowPart: DWORD, + pub HighPart: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ULARGE_INTEGER__bindgen_ty_2 { + pub LowPart: DWORD, + pub HighPart: DWORD, +} +pub type ULARGE_INTEGER = _ULARGE_INTEGER; +pub type PULARGE_INTEGER = *mut ULARGE_INTEGER; +pub type RTL_REFERENCE_COUNT = LONG_PTR; +pub type PRTL_REFERENCE_COUNT = *mut LONG_PTR; +pub type RTL_REFERENCE_COUNT32 = LONG; +pub type PRTL_REFERENCE_COUNT32 = *mut LONG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LUID { + pub LowPart: DWORD, + pub HighPart: LONG, +} +pub type LUID = _LUID; +pub type PLUID = *mut _LUID; +pub type DWORDLONG = ULONGLONG; +pub type PDWORDLONG = *mut DWORDLONG; +extern "C" { + pub fn _rotl8( + Value: ::std::os::raw::c_uchar, + Shift: ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _rotl16( + Value: ::std::os::raw::c_ushort, + Shift: ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_ushort; +} +extern "C" { + pub fn _rotr8( + Value: ::std::os::raw::c_uchar, + Shift: ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _rotr16( + Value: ::std::os::raw::c_ushort, + Shift: ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_ushort; +} +extern "C" { + pub fn _rotl( + Value: ::std::os::raw::c_uint, + Shift: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_uint; +} +extern "C" { + pub fn _rotl64( + Value: ::std::os::raw::c_ulonglong, + Shift: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn _rotr( + Value: ::std::os::raw::c_uint, + Shift: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_uint; +} +extern "C" { + pub fn _rotr64( + Value: ::std::os::raw::c_ulonglong, + Shift: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +pub type BOOLEAN = BYTE; +pub type PBOOLEAN = *mut BOOLEAN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LIST_ENTRY { + pub Flink: *mut _LIST_ENTRY, + pub Blink: *mut _LIST_ENTRY, +} +pub type LIST_ENTRY = _LIST_ENTRY; +pub type PLIST_ENTRY = *mut _LIST_ENTRY; +pub type PRLIST_ENTRY = *mut _LIST_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SINGLE_LIST_ENTRY { + pub Next: *mut _SINGLE_LIST_ENTRY, +} +pub type SINGLE_LIST_ENTRY = _SINGLE_LIST_ENTRY; +pub type PSINGLE_LIST_ENTRY = *mut _SINGLE_LIST_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LIST_ENTRY32 { + pub Flink: DWORD, + pub Blink: DWORD, +} +pub type PLIST_ENTRY32 = *mut LIST_ENTRY32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LIST_ENTRY64 { + pub Flink: ULONGLONG, + pub Blink: ULONGLONG, +} +pub type PLIST_ENTRY64 = *mut LIST_ENTRY64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _GUID { + pub Data1: ::std::os::raw::c_ulong, + pub Data2: ::std::os::raw::c_ushort, + pub Data3: ::std::os::raw::c_ushort, + pub Data4: [::std::os::raw::c_uchar; 8usize], +} +pub type GUID = _GUID; +pub type LPGUID = *mut GUID; +pub type LPCGUID = *const GUID; +pub type IID = GUID; +pub type LPIID = *mut IID; +pub type CLSID = GUID; +pub type LPCLSID = *mut CLSID; +pub type FMTID = GUID; +pub type LPFMTID = *mut FMTID; +extern "C" { + pub fn _errno() -> *mut ::std::os::raw::c_int; +} +extern "C" { + pub fn _set_errno(_Value: ::std::os::raw::c_int) -> errno_t; +} +extern "C" { + pub fn _get_errno(_Value: *mut ::std::os::raw::c_int) -> errno_t; +} +extern "C" { + pub fn __doserrno() -> *mut ::std::os::raw::c_ulong; +} +extern "C" { + pub fn _set_doserrno(_Value: ::std::os::raw::c_ulong) -> errno_t; +} +extern "C" { + pub fn _get_doserrno(_Value: *mut ::std::os::raw::c_ulong) -> errno_t; +} +extern "C" { + pub fn memchr( + _Buf: *const ::std::os::raw::c_void, + _Val: ::std::os::raw::c_int, + _MaxCount: ::std::os::raw::c_ulonglong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memcmp( + _Buf1: *const ::std::os::raw::c_void, + _Buf2: *const ::std::os::raw::c_void, + _Size: ::std::os::raw::c_ulonglong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn memcpy( + _Dst: *mut ::std::os::raw::c_void, + _Src: *const ::std::os::raw::c_void, + _Size: ::std::os::raw::c_ulonglong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memmove( + _Dst: *mut ::std::os::raw::c_void, + _Src: *const ::std::os::raw::c_void, + _Size: ::std::os::raw::c_ulonglong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memset( + _Dst: *mut ::std::os::raw::c_void, + _Val: ::std::os::raw::c_int, + _Size: ::std::os::raw::c_ulonglong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn strchr( + _Str: *const ::std::os::raw::c_char, + _Val: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strrchr( + _Str: *const ::std::os::raw::c_char, + _Ch: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strstr( + _Str: *const ::std::os::raw::c_char, + _SubStr: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn wcschr( + _Str: *const ::std::os::raw::c_ushort, + _Ch: ::std::os::raw::c_ushort, + ) -> *mut ::std::os::raw::c_ushort; +} +extern "C" { + pub fn wcsrchr(_Str: *const wchar_t, _Ch: wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn wcsstr(_Str: *const wchar_t, _SubStr: *const wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn _memicmp( + _Buf1: *const ::std::os::raw::c_void, + _Buf2: *const ::std::os::raw::c_void, + _Size: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _memicmp_l( + _Buf1: *const ::std::os::raw::c_void, + _Buf2: *const ::std::os::raw::c_void, + _Size: usize, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn memccpy( + _Dst: *mut ::std::os::raw::c_void, + _Src: *const ::std::os::raw::c_void, + _Val: ::std::os::raw::c_int, + _Size: ::std::os::raw::c_ulonglong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn memicmp( + _Buf1: *const ::std::os::raw::c_void, + _Buf2: *const ::std::os::raw::c_void, + _Size: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wcscat_s( + _Destination: *mut wchar_t, + _SizeInWords: rsize_t, + _Source: *const wchar_t, + ) -> errno_t; +} +extern "C" { + pub fn wcscpy_s( + _Destination: *mut wchar_t, + _SizeInWords: rsize_t, + _Source: *const wchar_t, + ) -> errno_t; +} +extern "C" { + pub fn wcsncat_s( + _Destination: *mut wchar_t, + _SizeInWords: rsize_t, + _Source: *const wchar_t, + _MaxCount: rsize_t, + ) -> errno_t; +} +extern "C" { + pub fn wcsncpy_s( + _Destination: *mut wchar_t, + _SizeInWords: rsize_t, + _Source: *const wchar_t, + _MaxCount: rsize_t, + ) -> errno_t; +} +extern "C" { + pub fn wcstok_s( + _String: *mut wchar_t, + _Delimiter: *const wchar_t, + _Context: *mut *mut wchar_t, + ) -> *mut wchar_t; +} +extern "C" { + pub fn _wcsdup(_String: *const wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn wcscat(_Destination: *mut wchar_t, _Source: *const wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn wcscmp( + _String1: *const ::std::os::raw::c_ushort, + _String2: *const ::std::os::raw::c_ushort, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wcscpy(_Destination: *mut wchar_t, _Source: *const wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn wcscspn(_String: *const wchar_t, _Control: *const wchar_t) -> usize; +} +extern "C" { + pub fn wcslen(_String: *const ::std::os::raw::c_ushort) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn wcsnlen(_Source: *const wchar_t, _MaxCount: usize) -> usize; +} +extern "C" { + pub fn wcsncat( + _Destination: *mut wchar_t, + _Source: *const wchar_t, + _Count: usize, + ) -> *mut wchar_t; +} +extern "C" { + pub fn wcsncmp( + _String1: *const ::std::os::raw::c_ushort, + _String2: *const ::std::os::raw::c_ushort, + _MaxCount: ::std::os::raw::c_ulonglong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wcsncpy( + _Destination: *mut wchar_t, + _Source: *const wchar_t, + _Count: usize, + ) -> *mut wchar_t; +} +extern "C" { + pub fn wcspbrk(_String: *const wchar_t, _Control: *const wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn wcsspn(_String: *const wchar_t, _Control: *const wchar_t) -> usize; +} +extern "C" { + pub fn wcstok( + _String: *mut wchar_t, + _Delimiter: *const wchar_t, + _Context: *mut *mut wchar_t, + ) -> *mut wchar_t; +} +extern "C" { + pub fn _wcserror(_ErrorNumber: ::std::os::raw::c_int) -> *mut wchar_t; +} +extern "C" { + pub fn _wcserror_s( + _Buffer: *mut wchar_t, + _SizeInWords: usize, + _ErrorNumber: ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn __wcserror(_String: *const wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn __wcserror_s( + _Buffer: *mut wchar_t, + _SizeInWords: usize, + _ErrorMessage: *const wchar_t, + ) -> errno_t; +} +extern "C" { + pub fn _wcsicmp(_String1: *const wchar_t, _String2: *const wchar_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wcsicmp_l( + _String1: *const wchar_t, + _String2: *const wchar_t, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wcsnicmp( + _String1: *const wchar_t, + _String2: *const wchar_t, + _MaxCount: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wcsnicmp_l( + _String1: *const wchar_t, + _String2: *const wchar_t, + _MaxCount: usize, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wcsnset_s( + _Destination: *mut wchar_t, + _SizeInWords: usize, + _Value: wchar_t, + _MaxCount: usize, + ) -> errno_t; +} +extern "C" { + pub fn _wcsnset(_String: *mut wchar_t, _Value: wchar_t, _MaxCount: usize) -> *mut wchar_t; +} +extern "C" { + pub fn _wcsrev(_String: *mut wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn _wcsset_s(_Destination: *mut wchar_t, _SizeInWords: usize, _Value: wchar_t) -> errno_t; +} +extern "C" { + pub fn _wcsset(_String: *mut wchar_t, _Value: wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn _wcslwr_s(_String: *mut wchar_t, _SizeInWords: usize) -> errno_t; +} +extern "C" { + pub fn _wcslwr(_String: *mut wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn _wcslwr_s_l(_String: *mut wchar_t, _SizeInWords: usize, _Locale: _locale_t) -> errno_t; +} +extern "C" { + pub fn _wcslwr_l(_String: *mut wchar_t, _Locale: _locale_t) -> *mut wchar_t; +} +extern "C" { + pub fn _wcsupr_s(_String: *mut wchar_t, _Size: usize) -> errno_t; +} +extern "C" { + pub fn _wcsupr(_String: *mut wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn _wcsupr_s_l(_String: *mut wchar_t, _Size: usize, _Locale: _locale_t) -> errno_t; +} +extern "C" { + pub fn _wcsupr_l(_String: *mut wchar_t, _Locale: _locale_t) -> *mut wchar_t; +} +extern "C" { + pub fn wcsxfrm(_Destination: *mut wchar_t, _Source: *const wchar_t, _MaxCount: usize) -> usize; +} +extern "C" { + pub fn _wcsxfrm_l( + _Destination: *mut wchar_t, + _Source: *const wchar_t, + _MaxCount: usize, + _Locale: _locale_t, + ) -> usize; +} +extern "C" { + pub fn wcscoll(_String1: *const wchar_t, _String2: *const wchar_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wcscoll_l( + _String1: *const wchar_t, + _String2: *const wchar_t, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wcsicoll(_String1: *const wchar_t, _String2: *const wchar_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wcsicoll_l( + _String1: *const wchar_t, + _String2: *const wchar_t, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wcsncoll( + _String1: *const wchar_t, + _String2: *const wchar_t, + _MaxCount: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wcsncoll_l( + _String1: *const wchar_t, + _String2: *const wchar_t, + _MaxCount: usize, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wcsnicoll( + _String1: *const wchar_t, + _String2: *const wchar_t, + _MaxCount: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wcsnicoll_l( + _String1: *const wchar_t, + _String2: *const wchar_t, + _MaxCount: usize, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wcsdup(_String: *const wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn wcsicmp(_String1: *const wchar_t, _String2: *const wchar_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wcsnicmp( + _String1: *const wchar_t, + _String2: *const wchar_t, + _MaxCount: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wcsnset(_String: *mut wchar_t, _Value: wchar_t, _MaxCount: usize) -> *mut wchar_t; +} +extern "C" { + pub fn wcsrev(_String: *mut wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn wcsset(_String: *mut wchar_t, _Value: wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn wcslwr(_String: *mut wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn wcsupr(_String: *mut wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn wcsicoll(_String1: *const wchar_t, _String2: *const wchar_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcpy_s( + _Destination: *mut ::std::os::raw::c_char, + _SizeInBytes: rsize_t, + _Source: *const ::std::os::raw::c_char, + ) -> errno_t; +} +extern "C" { + pub fn strcat_s( + _Destination: *mut ::std::os::raw::c_char, + _SizeInBytes: rsize_t, + _Source: *const ::std::os::raw::c_char, + ) -> errno_t; +} +extern "C" { + pub fn strerror_s( + _Buffer: *mut ::std::os::raw::c_char, + _SizeInBytes: usize, + _ErrorNumber: ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn strncat_s( + _Destination: *mut ::std::os::raw::c_char, + _SizeInBytes: rsize_t, + _Source: *const ::std::os::raw::c_char, + _MaxCount: rsize_t, + ) -> errno_t; +} +extern "C" { + pub fn strncpy_s( + _Destination: *mut ::std::os::raw::c_char, + _SizeInBytes: rsize_t, + _Source: *const ::std::os::raw::c_char, + _MaxCount: rsize_t, + ) -> errno_t; +} +extern "C" { + pub fn strtok_s( + _String: *mut ::std::os::raw::c_char, + _Delimiter: *const ::std::os::raw::c_char, + _Context: *mut *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _memccpy( + _Dst: *mut ::std::os::raw::c_void, + _Src: *const ::std::os::raw::c_void, + _Val: ::std::os::raw::c_int, + _MaxCount: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn strcat( + _Destination: *mut ::std::os::raw::c_char, + _Source: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strcmp( + _Str1: *const ::std::os::raw::c_char, + _Str2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _strcmpi( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcoll( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _strcoll_l( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strcpy( + _Destination: *mut ::std::os::raw::c_char, + _Source: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strcspn( + _Str: *const ::std::os::raw::c_char, + _Control: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn _strdup(_Source: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _strerror(_ErrorMessage: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _strerror_s( + _Buffer: *mut ::std::os::raw::c_char, + _SizeInBytes: usize, + _ErrorMessage: *const ::std::os::raw::c_char, + ) -> errno_t; +} +extern "C" { + pub fn strerror(_ErrorMessage: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _stricmp( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _stricoll( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _stricoll_l( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _stricmp_l( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strlen(_Str: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn _strlwr_s(_String: *mut ::std::os::raw::c_char, _Size: usize) -> errno_t; +} +extern "C" { + pub fn _strlwr(_String: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _strlwr_s_l( + _String: *mut ::std::os::raw::c_char, + _Size: usize, + _Locale: _locale_t, + ) -> errno_t; +} +extern "C" { + pub fn _strlwr_l( + _String: *mut ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strncat( + _Destination: *mut ::std::os::raw::c_char, + _Source: *const ::std::os::raw::c_char, + _Count: ::std::os::raw::c_ulonglong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strncmp( + _Str1: *const ::std::os::raw::c_char, + _Str2: *const ::std::os::raw::c_char, + _MaxCount: ::std::os::raw::c_ulonglong, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _strnicmp( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + _MaxCount: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _strnicmp_l( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + _MaxCount: usize, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _strnicoll( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + _MaxCount: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _strnicoll_l( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + _MaxCount: usize, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _strncoll( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + _MaxCount: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _strncoll_l( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + _MaxCount: usize, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __strncnt(_String: *const ::std::os::raw::c_char, _Count: usize) -> usize; +} +extern "C" { + pub fn strncpy( + _Destination: *mut ::std::os::raw::c_char, + _Source: *const ::std::os::raw::c_char, + _Count: ::std::os::raw::c_ulonglong, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strnlen(_String: *const ::std::os::raw::c_char, _MaxCount: usize) -> usize; +} +extern "C" { + pub fn _strnset_s( + _String: *mut ::std::os::raw::c_char, + _SizeInBytes: usize, + _Value: ::std::os::raw::c_int, + _MaxCount: usize, + ) -> errno_t; +} +extern "C" { + pub fn _strnset( + _Destination: *mut ::std::os::raw::c_char, + _Value: ::std::os::raw::c_int, + _Count: usize, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strpbrk( + _Str: *const ::std::os::raw::c_char, + _Control: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _strrev(_Str: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _strset_s( + _Destination: *mut ::std::os::raw::c_char, + _DestinationSize: usize, + _Value: ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn _strset( + _Destination: *mut ::std::os::raw::c_char, + _Value: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strspn( + _Str: *const ::std::os::raw::c_char, + _Control: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn strtok( + _String: *mut ::std::os::raw::c_char, + _Delimiter: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _strupr_s(_String: *mut ::std::os::raw::c_char, _Size: usize) -> errno_t; +} +extern "C" { + pub fn _strupr(_String: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _strupr_s_l( + _String: *mut ::std::os::raw::c_char, + _Size: usize, + _Locale: _locale_t, + ) -> errno_t; +} +extern "C" { + pub fn _strupr_l( + _String: *mut ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strxfrm( + _Destination: *mut ::std::os::raw::c_char, + _Source: *const ::std::os::raw::c_char, + _MaxCount: ::std::os::raw::c_ulonglong, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn _strxfrm_l( + _Destination: *mut ::std::os::raw::c_char, + _Source: *const ::std::os::raw::c_char, + _MaxCount: usize, + _Locale: _locale_t, + ) -> usize; +} +extern "C" { + pub fn strdup(_String: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strcmpi( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn stricmp( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strlwr(_String: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strnicmp( + _String1: *const ::std::os::raw::c_char, + _String2: *const ::std::os::raw::c_char, + _MaxCount: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strnset( + _String: *mut ::std::os::raw::c_char, + _Value: ::std::os::raw::c_int, + _MaxCount: usize, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strrev(_String: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strset( + _String: *mut ::std::os::raw::c_char, + _Value: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn strupr(_String: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OBJECTID { + pub Lineage: GUID, + pub Uniquifier: DWORD, +} +pub type OBJECTID = _OBJECTID; +pub type PEXCEPTION_ROUTINE = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut _EXCEPTION_RECORD, + arg2: PVOID, + arg3: *mut _CONTEXT, + arg4: PVOID, + ) -> EXCEPTION_DISPOSITION, +>; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _bindgen_ty_1 { + pub x: ::std::os::raw::c_char, + pub test: LARGE_INTEGER, +} +pub type __C_ASSERT__ = [::std::os::raw::c_char; 1usize]; +pub type KSPIN_LOCK = ULONG_PTR; +pub type PKSPIN_LOCK = *mut KSPIN_LOCK; +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct _M128A { + pub Low: ULONGLONG, + pub High: LONGLONG, +} +pub type M128A = _M128A; +pub type PM128A = *mut _M128A; +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct _XSAVE_FORMAT { + pub ControlWord: WORD, + pub StatusWord: WORD, + pub TagWord: BYTE, + pub Reserved1: BYTE, + pub ErrorOpcode: WORD, + pub ErrorOffset: DWORD, + pub ErrorSelector: WORD, + pub Reserved2: WORD, + pub DataOffset: DWORD, + pub DataSelector: WORD, + pub Reserved3: WORD, + pub MxCsr: DWORD, + pub MxCsr_Mask: DWORD, + pub FloatRegisters: [M128A; 8usize], + pub XmmRegisters: [M128A; 16usize], + pub Reserved4: [BYTE; 96usize], +} +pub type XSAVE_FORMAT = _XSAVE_FORMAT; +pub type PXSAVE_FORMAT = *mut _XSAVE_FORMAT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _XSAVE_CET_U_FORMAT { + pub Ia32CetUMsr: DWORD64, + pub Ia32Pl3SspMsr: DWORD64, +} +pub type XSAVE_CET_U_FORMAT = _XSAVE_CET_U_FORMAT; +pub type PXSAVE_CET_U_FORMAT = *mut _XSAVE_CET_U_FORMAT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _XSAVE_AREA_HEADER { + pub Mask: DWORD64, + pub CompactionMask: DWORD64, + pub Reserved2: [DWORD64; 6usize], +} +pub type XSAVE_AREA_HEADER = _XSAVE_AREA_HEADER; +pub type PXSAVE_AREA_HEADER = *mut _XSAVE_AREA_HEADER; +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct _XSAVE_AREA { + pub LegacyState: XSAVE_FORMAT, + pub Header: XSAVE_AREA_HEADER, +} +pub type XSAVE_AREA = _XSAVE_AREA; +pub type PXSAVE_AREA = *mut _XSAVE_AREA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _XSTATE_CONTEXT { + pub Mask: DWORD64, + pub Length: DWORD, + pub Reserved1: DWORD, + pub Area: PXSAVE_AREA, + pub Buffer: PVOID, +} +pub type XSTATE_CONTEXT = _XSTATE_CONTEXT; +pub type PXSTATE_CONTEXT = *mut _XSTATE_CONTEXT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _KERNEL_CET_CONTEXT { + pub Ssp: DWORD64, + pub Rip: DWORD64, + pub SegCs: WORD, + pub __bindgen_anon_1: _KERNEL_CET_CONTEXT__bindgen_ty_1, + pub Fill: [WORD; 2usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _KERNEL_CET_CONTEXT__bindgen_ty_1 { + pub AllFlags: WORD, + pub __bindgen_anon_1: _KERNEL_CET_CONTEXT__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(2))] +#[derive(Debug, Copy, Clone)] +pub struct _KERNEL_CET_CONTEXT__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +} +impl _KERNEL_CET_CONTEXT__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn UseWrss(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } + } + #[inline] + pub fn set_UseWrss(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn PopShadowStackOne(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } + } + #[inline] + pub fn set_PopShadowStackOne(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn Unused(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 14u8) as u16) } + } + #[inline] + pub fn set_Unused(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 14u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + UseWrss: WORD, + PopShadowStackOne: WORD, + Unused: WORD, + ) -> __BindgenBitfieldUnit<[u8; 2usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let UseWrss: u16 = unsafe { ::std::mem::transmute(UseWrss) }; + UseWrss as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let PopShadowStackOne: u16 = unsafe { ::std::mem::transmute(PopShadowStackOne) }; + PopShadowStackOne as u64 + }); + __bindgen_bitfield_unit.set(2usize, 14u8, { + let Unused: u16 = unsafe { ::std::mem::transmute(Unused) }; + Unused as u64 + }); + __bindgen_bitfield_unit + } +} +pub type KERNEL_CET_CONTEXT = _KERNEL_CET_CONTEXT; +pub type PKERNEL_CET_CONTEXT = *mut _KERNEL_CET_CONTEXT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCOPE_TABLE_AMD64 { + pub Count: DWORD, + pub ScopeRecord: [_SCOPE_TABLE_AMD64__bindgen_ty_1; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCOPE_TABLE_AMD64__bindgen_ty_1 { + pub BeginAddress: DWORD, + pub EndAddress: DWORD, + pub HandlerAddress: DWORD, + pub JumpTarget: DWORD, +} +pub type SCOPE_TABLE_AMD64 = _SCOPE_TABLE_AMD64; +pub type PSCOPE_TABLE_AMD64 = *mut _SCOPE_TABLE_AMD64; +extern "C" { + pub fn _bittest( + Base: *const ::std::os::raw::c_long, + Offset: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _bittestandcomplement( + Base: *mut ::std::os::raw::c_long, + Offset: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _bittestandset( + Base: *mut ::std::os::raw::c_long, + Offset: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _bittestandreset( + Base: *mut ::std::os::raw::c_long, + Offset: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _interlockedbittestandset( + Base: *mut ::std::os::raw::c_long, + Offset: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _interlockedbittestandreset( + Base: *mut ::std::os::raw::c_long, + Offset: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _bittest64( + Base: *const ::std::os::raw::c_longlong, + Offset: ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _bittestandcomplement64( + Base: *mut ::std::os::raw::c_longlong, + Offset: ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _bittestandset64( + Base: *mut ::std::os::raw::c_longlong, + Offset: ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _bittestandreset64( + Base: *mut ::std::os::raw::c_longlong, + Offset: ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _interlockedbittestandset64( + Base: *mut ::std::os::raw::c_longlong, + Offset: ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _interlockedbittestandreset64( + Base: *mut ::std::os::raw::c_longlong, + Offset: ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _BitScanForward( + Index: *mut ::std::os::raw::c_ulong, + Mask: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _BitScanReverse( + Index: *mut ::std::os::raw::c_ulong, + Mask: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _BitScanForward64( + Index: *mut ::std::os::raw::c_ulong, + Mask: ::std::os::raw::c_ulonglong, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _BitScanReverse64( + Index: *mut ::std::os::raw::c_ulong, + Mask: ::std::os::raw::c_ulonglong, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _InterlockedIncrement16(Addend: *mut ::std::os::raw::c_short) + -> ::std::os::raw::c_short; +} +extern "C" { + pub fn _InterlockedDecrement16(Addend: *mut ::std::os::raw::c_short) + -> ::std::os::raw::c_short; +} +extern "C" { + pub fn _InterlockedCompareExchange16( + Destination: *mut ::std::os::raw::c_short, + ExChange: ::std::os::raw::c_short, + Comperand: ::std::os::raw::c_short, + ) -> ::std::os::raw::c_short; +} +extern "C" { + pub fn _InterlockedAnd( + Destination: *mut ::std::os::raw::c_long, + Value: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _InterlockedOr( + Destination: *mut ::std::os::raw::c_long, + Value: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _InterlockedXor( + Destination: *mut ::std::os::raw::c_long, + Value: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _InterlockedAnd64( + Destination: *mut ::std::os::raw::c_longlong, + Value: ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _InterlockedOr64( + Destination: *mut ::std::os::raw::c_longlong, + Value: ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _InterlockedXor64( + Destination: *mut ::std::os::raw::c_longlong, + Value: ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _InterlockedIncrement(Addend: *mut ::std::os::raw::c_long) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _InterlockedDecrement(Addend: *mut ::std::os::raw::c_long) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _InterlockedExchange( + Target: *mut ::std::os::raw::c_long, + Value: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _InterlockedExchangeAdd( + Addend: *mut ::std::os::raw::c_long, + Value: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _InterlockedCompareExchange( + Destination: *mut ::std::os::raw::c_long, + ExChange: ::std::os::raw::c_long, + Comperand: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _InterlockedIncrement64( + Addend: *mut ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _InterlockedDecrement64( + Addend: *mut ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _InterlockedExchange64( + Target: *mut ::std::os::raw::c_longlong, + Value: ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _InterlockedExchangeAdd64( + Addend: *mut ::std::os::raw::c_longlong, + Value: ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _InterlockedCompareExchange64( + Destination: *mut ::std::os::raw::c_longlong, + ExChange: ::std::os::raw::c_longlong, + Comperand: ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _InterlockedCompareExchange128( + Destination: *mut ::std::os::raw::c_longlong, + ExchangeHigh: ::std::os::raw::c_longlong, + ExchangeLow: ::std::os::raw::c_longlong, + ComparandResult: *mut ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn _InterlockedCompareExchangePointer( + Destination: *mut *mut ::std::os::raw::c_void, + Exchange: *mut ::std::os::raw::c_void, + Comperand: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _InterlockedExchangePointer( + Target: *mut *mut ::std::os::raw::c_void, + Value: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _InterlockedExchange8( + Target: *mut ::std::os::raw::c_char, + Value: ::std::os::raw::c_char, + ) -> ::std::os::raw::c_char; +} +extern "C" { + pub fn _InterlockedExchange16( + Destination: *mut ::std::os::raw::c_short, + ExChange: ::std::os::raw::c_short, + ) -> ::std::os::raw::c_short; +} +extern "C" { + pub fn _InterlockedExchangeAdd8( + _Addend: *mut ::std::os::raw::c_char, + _Value: ::std::os::raw::c_char, + ) -> ::std::os::raw::c_char; +} +extern "C" { + pub fn _InterlockedAnd8( + Destination: *mut ::std::os::raw::c_char, + Value: ::std::os::raw::c_char, + ) -> ::std::os::raw::c_char; +} +extern "C" { + pub fn _InterlockedOr8( + Destination: *mut ::std::os::raw::c_char, + Value: ::std::os::raw::c_char, + ) -> ::std::os::raw::c_char; +} +extern "C" { + pub fn _InterlockedXor8( + Destination: *mut ::std::os::raw::c_char, + Value: ::std::os::raw::c_char, + ) -> ::std::os::raw::c_char; +} +extern "C" { + pub fn _InterlockedAnd16( + Destination: *mut ::std::os::raw::c_short, + Value: ::std::os::raw::c_short, + ) -> ::std::os::raw::c_short; +} +extern "C" { + pub fn _InterlockedOr16( + Destination: *mut ::std::os::raw::c_short, + Value: ::std::os::raw::c_short, + ) -> ::std::os::raw::c_short; +} +extern "C" { + pub fn _InterlockedXor16( + Destination: *mut ::std::os::raw::c_short, + Value: ::std::os::raw::c_short, + ) -> ::std::os::raw::c_short; +} +extern "C" { + pub fn __cpuidex( + CPUInfo: *mut ::std::os::raw::c_int, + Function: ::std::os::raw::c_int, + SubLeaf: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn _mm_clflush(Address: *const ::std::os::raw::c_void); +} +extern "C" { + pub fn _ReadWriteBarrier(); +} +extern "C" { + pub fn __faststorefence(); +} +extern "C" { + pub fn _mm_lfence(); +} +extern "C" { + pub fn _mm_mfence(); +} +extern "C" { + pub fn _mm_sfence(); +} +extern "C" { + pub fn _mm_pause(); +} +extern "C" { + pub fn _mm_prefetch(a: *const ::std::os::raw::c_char, sel: ::std::os::raw::c_int); +} +extern "C" { + pub fn _m_prefetchw(Source: *const ::std::os::raw::c_void); +} +extern "C" { + pub fn _mm_getcsr() -> ::std::os::raw::c_uint; +} +extern "C" { + pub fn _mm_setcsr(MxCsr: ::std::os::raw::c_uint); +} +extern "C" { + pub fn __getcallerseflags() -> ::std::os::raw::c_uint; +} +extern "C" { + pub fn __segmentlimit(Selector: DWORD) -> DWORD; +} +extern "C" { + pub fn __readpmc(Counter: DWORD) -> DWORD64; +} +extern "C" { + pub fn __rdtsc() -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn __movsb(Destination: PBYTE, Source: *const BYTE, Count: SIZE_T); +} +extern "C" { + pub fn __movsw(Destination: PWORD, Source: *const WORD, Count: SIZE_T); +} +extern "C" { + pub fn __movsd(Destination: PDWORD, Source: *const DWORD, Count: SIZE_T); +} +extern "C" { + pub fn __movsq(Destination: PDWORD64, Source: *const DWORD64, Count: SIZE_T); +} +extern "C" { + pub fn __stosb( + Destination: *mut ::std::os::raw::c_uchar, + Value: ::std::os::raw::c_uchar, + Count: ::std::os::raw::c_ulonglong, + ); +} +extern "C" { + pub fn __stosw(Destination: PWORD, Value: WORD, Count: SIZE_T); +} +extern "C" { + pub fn __stosd(Destination: PDWORD, Value: DWORD, Count: SIZE_T); +} +extern "C" { + pub fn __stosq(Destination: PDWORD64, Value: DWORD64, Count: SIZE_T); +} +extern "C" { + pub fn __mulh( + Multiplier: ::std::os::raw::c_longlong, + Multiplicand: ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn __umulh( + Multiplier: ::std::os::raw::c_ulonglong, + Multiplicand: ::std::os::raw::c_ulonglong, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn __popcnt64(operand: ::std::os::raw::c_ulonglong) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn __shiftleft128( + LowPart: ::std::os::raw::c_ulonglong, + HighPart: ::std::os::raw::c_ulonglong, + Shift: ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn __shiftright128( + LowPart: ::std::os::raw::c_ulonglong, + HighPart: ::std::os::raw::c_ulonglong, + Shift: ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn _mul128( + Multiplier: ::std::os::raw::c_longlong, + Multiplicand: ::std::os::raw::c_longlong, + HighProduct: *mut ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn UnsignedMultiply128( + Multiplier: DWORD64, + Multiplicand: DWORD64, + HighProduct: *mut DWORD64, + ) -> DWORD64; +} +extern "C" { + pub fn _umul128( + Multiplier: ::std::os::raw::c_ulonglong, + Multiplicand: ::std::os::raw::c_ulonglong, + HighProduct: *mut ::std::os::raw::c_ulonglong, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn __readgsbyte(Offset: ::std::os::raw::c_ulong) -> ::std::os::raw::c_uchar; +} +extern "C" { + pub fn __readgsword(Offset: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ushort; +} +extern "C" { + pub fn __readgsdword(Offset: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn __readgsqword(Offset: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn __writegsbyte(Offset: DWORD, Data: BYTE); +} +extern "C" { + pub fn __writegsword(Offset: DWORD, Data: WORD); +} +extern "C" { + pub fn __writegsdword(Offset: DWORD, Data: DWORD); +} +extern "C" { + pub fn __writegsqword(Offset: DWORD, Data: DWORD64); +} +extern "C" { + pub fn __incgsbyte(Offset: DWORD); +} +extern "C" { + pub fn __addgsbyte(Offset: DWORD, Value: BYTE); +} +extern "C" { + pub fn __incgsword(Offset: DWORD); +} +extern "C" { + pub fn __addgsword(Offset: DWORD, Value: WORD); +} +extern "C" { + pub fn __incgsdword(Offset: DWORD); +} +extern "C" { + pub fn __addgsdword(Offset: DWORD, Value: DWORD); +} +extern "C" { + pub fn __incgsqword(Offset: DWORD); +} +extern "C" { + pub fn __addgsqword(Offset: DWORD, Value: DWORD64); +} +pub type XMM_SAVE_AREA32 = XSAVE_FORMAT; +pub type PXMM_SAVE_AREA32 = *mut XSAVE_FORMAT; +#[repr(C)] +#[repr(align(16))] +#[derive(Copy, Clone)] +pub struct _CONTEXT { + pub P1Home: DWORD64, + pub P2Home: DWORD64, + pub P3Home: DWORD64, + pub P4Home: DWORD64, + pub P5Home: DWORD64, + pub P6Home: DWORD64, + pub ContextFlags: DWORD, + pub MxCsr: DWORD, + pub SegCs: WORD, + pub SegDs: WORD, + pub SegEs: WORD, + pub SegFs: WORD, + pub SegGs: WORD, + pub SegSs: WORD, + pub EFlags: DWORD, + pub Dr0: DWORD64, + pub Dr1: DWORD64, + pub Dr2: DWORD64, + pub Dr3: DWORD64, + pub Dr6: DWORD64, + pub Dr7: DWORD64, + pub Rax: DWORD64, + pub Rcx: DWORD64, + pub Rdx: DWORD64, + pub Rbx: DWORD64, + pub Rsp: DWORD64, + pub Rbp: DWORD64, + pub Rsi: DWORD64, + pub Rdi: DWORD64, + pub R8: DWORD64, + pub R9: DWORD64, + pub R10: DWORD64, + pub R11: DWORD64, + pub R12: DWORD64, + pub R13: DWORD64, + pub R14: DWORD64, + pub R15: DWORD64, + pub Rip: DWORD64, + pub __bindgen_anon_1: _CONTEXT__bindgen_ty_1, + pub VectorRegister: [M128A; 26usize], + pub VectorControl: DWORD64, + pub DebugControl: DWORD64, + pub LastBranchToRip: DWORD64, + pub LastBranchFromRip: DWORD64, + pub LastExceptionToRip: DWORD64, + pub LastExceptionFromRip: DWORD64, +} +#[repr(C)] +#[repr(align(16))] +#[derive(Copy, Clone)] +pub union _CONTEXT__bindgen_ty_1 { + pub FltSave: XMM_SAVE_AREA32, + pub __bindgen_anon_1: _CONTEXT__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct _CONTEXT__bindgen_ty_1__bindgen_ty_1 { + pub Header: [M128A; 2usize], + pub Legacy: [M128A; 8usize], + pub Xmm0: M128A, + pub Xmm1: M128A, + pub Xmm2: M128A, + pub Xmm3: M128A, + pub Xmm4: M128A, + pub Xmm5: M128A, + pub Xmm6: M128A, + pub Xmm7: M128A, + pub Xmm8: M128A, + pub Xmm9: M128A, + pub Xmm10: M128A, + pub Xmm11: M128A, + pub Xmm12: M128A, + pub Xmm13: M128A, + pub Xmm14: M128A, + pub Xmm15: M128A, +} +pub type CONTEXT = _CONTEXT; +pub type PCONTEXT = *mut _CONTEXT; +pub type RUNTIME_FUNCTION = _IMAGE_RUNTIME_FUNCTION_ENTRY; +pub type PRUNTIME_FUNCTION = *mut _IMAGE_RUNTIME_FUNCTION_ENTRY; +pub type SCOPE_TABLE = SCOPE_TABLE_AMD64; +pub type PSCOPE_TABLE = *mut SCOPE_TABLE_AMD64; +pub type GET_RUNTIME_FUNCTION_CALLBACK = ::std::option::Option< + unsafe extern "C" fn(ControlPc: DWORD64, Context: PVOID) -> PRUNTIME_FUNCTION, +>; +pub type PGET_RUNTIME_FUNCTION_CALLBACK = GET_RUNTIME_FUNCTION_CALLBACK; +pub type OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK = ::std::option::Option< + unsafe extern "C" fn( + Process: HANDLE, + TableAddress: PVOID, + Entries: PDWORD, + Functions: *mut PRUNTIME_FUNCTION, + ) -> DWORD, +>; +pub type POUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK = OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISPATCHER_CONTEXT { + pub ControlPc: DWORD64, + pub ImageBase: DWORD64, + pub FunctionEntry: PRUNTIME_FUNCTION, + pub EstablisherFrame: DWORD64, + pub TargetIp: DWORD64, + pub ContextRecord: PCONTEXT, + pub LanguageHandler: PEXCEPTION_ROUTINE, + pub HandlerData: PVOID, + pub HistoryTable: *mut _UNWIND_HISTORY_TABLE, + pub ScopeIndex: DWORD, + pub Fill0: DWORD, +} +pub type DISPATCHER_CONTEXT = _DISPATCHER_CONTEXT; +pub type PDISPATCHER_CONTEXT = *mut _DISPATCHER_CONTEXT; +pub type PEXCEPTION_FILTER = ::std::option::Option< + unsafe extern "C" fn( + ExceptionPointers: *mut _EXCEPTION_POINTERS, + EstablisherFrame: PVOID, + ) -> LONG, +>; +pub type PTERMINATION_HANDLER = ::std::option::Option< + unsafe extern "C" fn(_abnormal_termination: BOOLEAN, EstablisherFrame: PVOID), +>; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _KNONVOLATILE_CONTEXT_POINTERS { + pub __bindgen_anon_1: _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_1, + pub __bindgen_anon_2: _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_1 { + pub FloatingContext: [PM128A; 16usize], + pub __bindgen_anon_1: _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_1__bindgen_ty_1 { + pub Xmm0: PM128A, + pub Xmm1: PM128A, + pub Xmm2: PM128A, + pub Xmm3: PM128A, + pub Xmm4: PM128A, + pub Xmm5: PM128A, + pub Xmm6: PM128A, + pub Xmm7: PM128A, + pub Xmm8: PM128A, + pub Xmm9: PM128A, + pub Xmm10: PM128A, + pub Xmm11: PM128A, + pub Xmm12: PM128A, + pub Xmm13: PM128A, + pub Xmm14: PM128A, + pub Xmm15: PM128A, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_2 { + pub IntegerContext: [PDWORD64; 16usize], + pub __bindgen_anon_1: _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_2__bindgen_ty_1 { + pub Rax: PDWORD64, + pub Rcx: PDWORD64, + pub Rdx: PDWORD64, + pub Rbx: PDWORD64, + pub Rsp: PDWORD64, + pub Rbp: PDWORD64, + pub Rsi: PDWORD64, + pub Rdi: PDWORD64, + pub R8: PDWORD64, + pub R9: PDWORD64, + pub R10: PDWORD64, + pub R11: PDWORD64, + pub R12: PDWORD64, + pub R13: PDWORD64, + pub R14: PDWORD64, + pub R15: PDWORD64, +} +pub type KNONVOLATILE_CONTEXT_POINTERS = _KNONVOLATILE_CONTEXT_POINTERS; +pub type PKNONVOLATILE_CONTEXT_POINTERS = *mut _KNONVOLATILE_CONTEXT_POINTERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCOPE_TABLE_ARM { + pub Count: DWORD, + pub ScopeRecord: [_SCOPE_TABLE_ARM__bindgen_ty_1; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCOPE_TABLE_ARM__bindgen_ty_1 { + pub BeginAddress: DWORD, + pub EndAddress: DWORD, + pub HandlerAddress: DWORD, + pub JumpTarget: DWORD, +} +pub type SCOPE_TABLE_ARM = _SCOPE_TABLE_ARM; +pub type PSCOPE_TABLE_ARM = *mut _SCOPE_TABLE_ARM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCOPE_TABLE_ARM64 { + pub Count: DWORD, + pub ScopeRecord: [_SCOPE_TABLE_ARM64__bindgen_ty_1; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCOPE_TABLE_ARM64__bindgen_ty_1 { + pub BeginAddress: DWORD, + pub EndAddress: DWORD, + pub HandlerAddress: DWORD, + pub JumpTarget: DWORD, +} +pub type SCOPE_TABLE_ARM64 = _SCOPE_TABLE_ARM64; +pub type PSCOPE_TABLE_ARM64 = *mut _SCOPE_TABLE_ARM64; +#[repr(C)] +#[derive(Copy, Clone)] +pub union _ARM64_NT_NEON128 { + pub __bindgen_anon_1: _ARM64_NT_NEON128__bindgen_ty_1, + pub D: [f64; 2usize], + pub S: [f32; 4usize], + pub H: [WORD; 8usize], + pub B: [BYTE; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ARM64_NT_NEON128__bindgen_ty_1 { + pub Low: ULONGLONG, + pub High: LONGLONG, +} +pub type ARM64_NT_NEON128 = _ARM64_NT_NEON128; +pub type PARM64_NT_NEON128 = *mut _ARM64_NT_NEON128; +#[repr(C)] +#[repr(align(16))] +#[derive(Copy, Clone)] +pub struct _ARM64_NT_CONTEXT { + pub ContextFlags: DWORD, + pub Cpsr: DWORD, + pub __bindgen_anon_1: _ARM64_NT_CONTEXT__bindgen_ty_1, + pub Sp: DWORD64, + pub Pc: DWORD64, + pub V: [ARM64_NT_NEON128; 32usize], + pub Fpcr: DWORD, + pub Fpsr: DWORD, + pub Bcr: [DWORD; 8usize], + pub Bvr: [DWORD64; 8usize], + pub Wcr: [DWORD; 2usize], + pub Wvr: [DWORD64; 2usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _ARM64_NT_CONTEXT__bindgen_ty_1 { + pub __bindgen_anon_1: _ARM64_NT_CONTEXT__bindgen_ty_1__bindgen_ty_1, + pub X: [DWORD64; 31usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ARM64_NT_CONTEXT__bindgen_ty_1__bindgen_ty_1 { + pub X0: DWORD64, + pub X1: DWORD64, + pub X2: DWORD64, + pub X3: DWORD64, + pub X4: DWORD64, + pub X5: DWORD64, + pub X6: DWORD64, + pub X7: DWORD64, + pub X8: DWORD64, + pub X9: DWORD64, + pub X10: DWORD64, + pub X11: DWORD64, + pub X12: DWORD64, + pub X13: DWORD64, + pub X14: DWORD64, + pub X15: DWORD64, + pub X16: DWORD64, + pub X17: DWORD64, + pub X18: DWORD64, + pub X19: DWORD64, + pub X20: DWORD64, + pub X21: DWORD64, + pub X22: DWORD64, + pub X23: DWORD64, + pub X24: DWORD64, + pub X25: DWORD64, + pub X26: DWORD64, + pub X27: DWORD64, + pub X28: DWORD64, + pub Fp: DWORD64, + pub Lr: DWORD64, +} +pub type ARM64_NT_CONTEXT = _ARM64_NT_CONTEXT; +pub type PARM64_NT_CONTEXT = *mut _ARM64_NT_CONTEXT; +#[repr(C)] +#[repr(align(16))] +#[derive(Copy, Clone)] +pub struct _ARM64EC_NT_CONTEXT { + pub __bindgen_anon_1: _ARM64EC_NT_CONTEXT__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _ARM64EC_NT_CONTEXT__bindgen_ty_1 { + pub __bindgen_anon_1: _ARM64EC_NT_CONTEXT__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _ARM64EC_NT_CONTEXT__bindgen_ty_1__bindgen_ty_1 { + pub AMD64_P1Home: DWORD64, + pub AMD64_P2Home: DWORD64, + pub AMD64_P3Home: DWORD64, + pub AMD64_P4Home: DWORD64, + pub AMD64_P5Home: DWORD64, + pub AMD64_P6Home: DWORD64, + pub ContextFlags: DWORD, + pub AMD64_MxCsr_copy: DWORD, + pub AMD64_SegCs: WORD, + pub AMD64_SegDs: WORD, + pub AMD64_SegEs: WORD, + pub AMD64_SegFs: WORD, + pub AMD64_SegGs: WORD, + pub AMD64_SegSs: WORD, + pub AMD64_EFlags: DWORD, + pub AMD64_Dr0: DWORD64, + pub AMD64_Dr1: DWORD64, + pub AMD64_Dr2: DWORD64, + pub AMD64_Dr3: DWORD64, + pub AMD64_Dr6: DWORD64, + pub AMD64_Dr7: DWORD64, + pub X8: DWORD64, + pub X0: DWORD64, + pub X1: DWORD64, + pub X27: DWORD64, + pub Sp: DWORD64, + pub Fp: DWORD64, + pub X25: DWORD64, + pub X26: DWORD64, + pub X2: DWORD64, + pub X3: DWORD64, + pub X4: DWORD64, + pub X5: DWORD64, + pub X19: DWORD64, + pub X20: DWORD64, + pub X21: DWORD64, + pub X22: DWORD64, + pub Pc: DWORD64, + pub __bindgen_anon_1: _ARM64EC_NT_CONTEXT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, + pub AMD64_VectorRegister: [ARM64_NT_NEON128; 26usize], + pub AMD64_VectorControl: DWORD64, + pub AMD64_DebugControl: DWORD64, + pub AMD64_LastBranchToRip: DWORD64, + pub AMD64_LastBranchFromRip: DWORD64, + pub AMD64_LastExceptionToRip: DWORD64, + pub AMD64_LastExceptionFromRip: DWORD64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _ARM64EC_NT_CONTEXT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { + pub AMD64_ControlWord: WORD, + pub AMD64_StatusWord: WORD, + pub AMD64_TagWord: BYTE, + pub AMD64_Reserved1: BYTE, + pub AMD64_ErrorOpcode: WORD, + pub AMD64_ErrorOffset: DWORD, + pub AMD64_ErrorSelector: WORD, + pub AMD64_Reserved2: WORD, + pub AMD64_DataOffset: DWORD, + pub AMD64_DataSelector: WORD, + pub AMD64_Reserved3: WORD, + pub AMD64_MxCsr: DWORD, + pub AMD64_MxCsr_Mask: DWORD, + pub Lr: DWORD64, + pub X16_0: WORD, + pub AMD64_St0_Reserved1: WORD, + pub AMD64_St0_Reserved2: DWORD, + pub X6: DWORD64, + pub X16_1: WORD, + pub AMD64_St1_Reserved1: WORD, + pub AMD64_St1_Reserved2: DWORD, + pub X7: DWORD64, + pub X16_2: WORD, + pub AMD64_St2_Reserved1: WORD, + pub AMD64_St2_Reserved2: DWORD, + pub X9: DWORD64, + pub X16_3: WORD, + pub AMD64_St3_Reserved1: WORD, + pub AMD64_St3_Reserved2: DWORD, + pub X10: DWORD64, + pub X17_0: WORD, + pub AMD64_St4_Reserved1: WORD, + pub AMD64_St4_Reserved2: DWORD, + pub X11: DWORD64, + pub X17_1: WORD, + pub AMD64_St5_Reserved1: WORD, + pub AMD64_St5_Reserved2: DWORD, + pub X12: DWORD64, + pub X17_2: WORD, + pub AMD64_St6_Reserved1: WORD, + pub AMD64_St6_Reserved2: DWORD, + pub X15: DWORD64, + pub X17_3: WORD, + pub AMD64_St7_Reserved1: WORD, + pub AMD64_St7_Reserved2: DWORD, + pub V: [ARM64_NT_NEON128; 16usize], + pub AMD64_XSAVE_FORMAT_Reserved4: [BYTE; 96usize], +} +pub type ARM64EC_NT_CONTEXT = _ARM64EC_NT_CONTEXT; +pub type PARM64EC_NT_CONTEXT = *mut _ARM64EC_NT_CONTEXT; +pub type ARM64_RUNTIME_FUNCTION = _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY; +pub type PARM64_RUNTIME_FUNCTION = *mut _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY; +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DISPATCHER_CONTEXT_NONVOLREG_ARM64 { + pub Buffer: [BYTE; 152usize], + pub __bindgen_anon_1: _DISPATCHER_CONTEXT_NONVOLREG_ARM64__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISPATCHER_CONTEXT_NONVOLREG_ARM64__bindgen_ty_1 { + pub GpNvRegs: [DWORD64; 11usize], + pub FpNvRegs: [f64; 8usize], +} +pub type DISPATCHER_CONTEXT_NONVOLREG_ARM64 = _DISPATCHER_CONTEXT_NONVOLREG_ARM64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISPATCHER_CONTEXT_ARM64 { + pub ControlPc: ULONG_PTR, + pub ImageBase: ULONG_PTR, + pub FunctionEntry: PARM64_RUNTIME_FUNCTION, + pub EstablisherFrame: ULONG_PTR, + pub TargetPc: ULONG_PTR, + pub ContextRecord: PARM64_NT_CONTEXT, + pub LanguageHandler: PEXCEPTION_ROUTINE, + pub HandlerData: PVOID, + pub HistoryTable: *mut _UNWIND_HISTORY_TABLE, + pub ScopeIndex: DWORD, + pub ControlPcIsUnwound: BOOLEAN, + pub NonVolatileRegisters: PBYTE, +} +pub type DISPATCHER_CONTEXT_ARM64 = _DISPATCHER_CONTEXT_ARM64; +pub type PDISPATCHER_CONTEXT_ARM64 = *mut _DISPATCHER_CONTEXT_ARM64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _KNONVOLATILE_CONTEXT_POINTERS_ARM64 { + pub X19: PDWORD64, + pub X20: PDWORD64, + pub X21: PDWORD64, + pub X22: PDWORD64, + pub X23: PDWORD64, + pub X24: PDWORD64, + pub X25: PDWORD64, + pub X26: PDWORD64, + pub X27: PDWORD64, + pub X28: PDWORD64, + pub Fp: PDWORD64, + pub Lr: PDWORD64, + pub D8: PDWORD64, + pub D9: PDWORD64, + pub D10: PDWORD64, + pub D11: PDWORD64, + pub D12: PDWORD64, + pub D13: PDWORD64, + pub D14: PDWORD64, + pub D15: PDWORD64, +} +pub type KNONVOLATILE_CONTEXT_POINTERS_ARM64 = _KNONVOLATILE_CONTEXT_POINTERS_ARM64; +pub type PKNONVOLATILE_CONTEXT_POINTERS_ARM64 = *mut _KNONVOLATILE_CONTEXT_POINTERS_ARM64; +extern "C" { + pub fn __int2c() -> !; +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _LDT_ENTRY { + pub LimitLow: WORD, + pub BaseLow: WORD, + pub HighWord: _LDT_ENTRY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _LDT_ENTRY__bindgen_ty_1 { + pub Bytes: _LDT_ENTRY__bindgen_ty_1__bindgen_ty_1, + pub Bits: _LDT_ENTRY__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LDT_ENTRY__bindgen_ty_1__bindgen_ty_1 { + pub BaseMid: BYTE, + pub Flags1: BYTE, + pub Flags2: BYTE, + pub BaseHi: BYTE, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _LDT_ENTRY__bindgen_ty_1__bindgen_ty_2 { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _LDT_ENTRY__bindgen_ty_1__bindgen_ty_2 { + #[inline] + pub fn BaseMid(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_BaseMid(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn Type(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 5u8) as u32) } + } + #[inline] + pub fn set_Type(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 5u8, val as u64) + } + } + #[inline] + pub fn Dpl(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 2u8) as u32) } + } + #[inline] + pub fn set_Dpl(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(13usize, 2u8, val as u64) + } + } + #[inline] + pub fn Pres(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) } + } + #[inline] + pub fn set_Pres(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(15usize, 1u8, val as u64) + } + } + #[inline] + pub fn LimitHi(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 4u8) as u32) } + } + #[inline] + pub fn set_LimitHi(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 4u8, val as u64) + } + } + #[inline] + pub fn Sys(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) } + } + #[inline] + pub fn set_Sys(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(20usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved_0(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u32) } + } + #[inline] + pub fn set_Reserved_0(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(21usize, 1u8, val as u64) + } + } + #[inline] + pub fn Default_Big(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 1u8) as u32) } + } + #[inline] + pub fn set_Default_Big(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(22usize, 1u8, val as u64) + } + } + #[inline] + pub fn Granularity(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 1u8) as u32) } + } + #[inline] + pub fn set_Granularity(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(23usize, 1u8, val as u64) + } + } + #[inline] + pub fn BaseHi(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_BaseHi(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + BaseMid: DWORD, + Type: DWORD, + Dpl: DWORD, + Pres: DWORD, + LimitHi: DWORD, + Sys: DWORD, + Reserved_0: DWORD, + Default_Big: DWORD, + Granularity: DWORD, + BaseHi: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let BaseMid: u32 = unsafe { ::std::mem::transmute(BaseMid) }; + BaseMid as u64 + }); + __bindgen_bitfield_unit.set(8usize, 5u8, { + let Type: u32 = unsafe { ::std::mem::transmute(Type) }; + Type as u64 + }); + __bindgen_bitfield_unit.set(13usize, 2u8, { + let Dpl: u32 = unsafe { ::std::mem::transmute(Dpl) }; + Dpl as u64 + }); + __bindgen_bitfield_unit.set(15usize, 1u8, { + let Pres: u32 = unsafe { ::std::mem::transmute(Pres) }; + Pres as u64 + }); + __bindgen_bitfield_unit.set(16usize, 4u8, { + let LimitHi: u32 = unsafe { ::std::mem::transmute(LimitHi) }; + LimitHi as u64 + }); + __bindgen_bitfield_unit.set(20usize, 1u8, { + let Sys: u32 = unsafe { ::std::mem::transmute(Sys) }; + Sys as u64 + }); + __bindgen_bitfield_unit.set(21usize, 1u8, { + let Reserved_0: u32 = unsafe { ::std::mem::transmute(Reserved_0) }; + Reserved_0 as u64 + }); + __bindgen_bitfield_unit.set(22usize, 1u8, { + let Default_Big: u32 = unsafe { ::std::mem::transmute(Default_Big) }; + Default_Big as u64 + }); + __bindgen_bitfield_unit.set(23usize, 1u8, { + let Granularity: u32 = unsafe { ::std::mem::transmute(Granularity) }; + Granularity as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let BaseHi: u32 = unsafe { ::std::mem::transmute(BaseHi) }; + BaseHi as u64 + }); + __bindgen_bitfield_unit + } +} +pub type LDT_ENTRY = _LDT_ENTRY; +pub type PLDT_ENTRY = *mut _LDT_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WOW64_FLOATING_SAVE_AREA { + pub ControlWord: DWORD, + pub StatusWord: DWORD, + pub TagWord: DWORD, + pub ErrorOffset: DWORD, + pub ErrorSelector: DWORD, + pub DataOffset: DWORD, + pub DataSelector: DWORD, + pub RegisterArea: [BYTE; 80usize], + pub Cr0NpxState: DWORD, +} +pub type WOW64_FLOATING_SAVE_AREA = _WOW64_FLOATING_SAVE_AREA; +pub type PWOW64_FLOATING_SAVE_AREA = *mut WOW64_FLOATING_SAVE_AREA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WOW64_CONTEXT { + pub ContextFlags: DWORD, + pub Dr0: DWORD, + pub Dr1: DWORD, + pub Dr2: DWORD, + pub Dr3: DWORD, + pub Dr6: DWORD, + pub Dr7: DWORD, + pub FloatSave: WOW64_FLOATING_SAVE_AREA, + pub SegGs: DWORD, + pub SegFs: DWORD, + pub SegEs: DWORD, + pub SegDs: DWORD, + pub Edi: DWORD, + pub Esi: DWORD, + pub Ebx: DWORD, + pub Edx: DWORD, + pub Ecx: DWORD, + pub Eax: DWORD, + pub Ebp: DWORD, + pub Eip: DWORD, + pub SegCs: DWORD, + pub EFlags: DWORD, + pub Esp: DWORD, + pub SegSs: DWORD, + pub ExtendedRegisters: [BYTE; 512usize], +} +pub type WOW64_CONTEXT = _WOW64_CONTEXT; +pub type PWOW64_CONTEXT = *mut WOW64_CONTEXT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _WOW64_LDT_ENTRY { + pub LimitLow: WORD, + pub BaseLow: WORD, + pub HighWord: _WOW64_LDT_ENTRY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _WOW64_LDT_ENTRY__bindgen_ty_1 { + pub Bytes: _WOW64_LDT_ENTRY__bindgen_ty_1__bindgen_ty_1, + pub Bits: _WOW64_LDT_ENTRY__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WOW64_LDT_ENTRY__bindgen_ty_1__bindgen_ty_1 { + pub BaseMid: BYTE, + pub Flags1: BYTE, + pub Flags2: BYTE, + pub BaseHi: BYTE, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _WOW64_LDT_ENTRY__bindgen_ty_1__bindgen_ty_2 { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _WOW64_LDT_ENTRY__bindgen_ty_1__bindgen_ty_2 { + #[inline] + pub fn BaseMid(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_BaseMid(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn Type(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 5u8) as u32) } + } + #[inline] + pub fn set_Type(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 5u8, val as u64) + } + } + #[inline] + pub fn Dpl(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 2u8) as u32) } + } + #[inline] + pub fn set_Dpl(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(13usize, 2u8, val as u64) + } + } + #[inline] + pub fn Pres(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) } + } + #[inline] + pub fn set_Pres(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(15usize, 1u8, val as u64) + } + } + #[inline] + pub fn LimitHi(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 4u8) as u32) } + } + #[inline] + pub fn set_LimitHi(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 4u8, val as u64) + } + } + #[inline] + pub fn Sys(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) } + } + #[inline] + pub fn set_Sys(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(20usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved_0(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u32) } + } + #[inline] + pub fn set_Reserved_0(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(21usize, 1u8, val as u64) + } + } + #[inline] + pub fn Default_Big(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 1u8) as u32) } + } + #[inline] + pub fn set_Default_Big(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(22usize, 1u8, val as u64) + } + } + #[inline] + pub fn Granularity(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 1u8) as u32) } + } + #[inline] + pub fn set_Granularity(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(23usize, 1u8, val as u64) + } + } + #[inline] + pub fn BaseHi(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_BaseHi(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + BaseMid: DWORD, + Type: DWORD, + Dpl: DWORD, + Pres: DWORD, + LimitHi: DWORD, + Sys: DWORD, + Reserved_0: DWORD, + Default_Big: DWORD, + Granularity: DWORD, + BaseHi: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let BaseMid: u32 = unsafe { ::std::mem::transmute(BaseMid) }; + BaseMid as u64 + }); + __bindgen_bitfield_unit.set(8usize, 5u8, { + let Type: u32 = unsafe { ::std::mem::transmute(Type) }; + Type as u64 + }); + __bindgen_bitfield_unit.set(13usize, 2u8, { + let Dpl: u32 = unsafe { ::std::mem::transmute(Dpl) }; + Dpl as u64 + }); + __bindgen_bitfield_unit.set(15usize, 1u8, { + let Pres: u32 = unsafe { ::std::mem::transmute(Pres) }; + Pres as u64 + }); + __bindgen_bitfield_unit.set(16usize, 4u8, { + let LimitHi: u32 = unsafe { ::std::mem::transmute(LimitHi) }; + LimitHi as u64 + }); + __bindgen_bitfield_unit.set(20usize, 1u8, { + let Sys: u32 = unsafe { ::std::mem::transmute(Sys) }; + Sys as u64 + }); + __bindgen_bitfield_unit.set(21usize, 1u8, { + let Reserved_0: u32 = unsafe { ::std::mem::transmute(Reserved_0) }; + Reserved_0 as u64 + }); + __bindgen_bitfield_unit.set(22usize, 1u8, { + let Default_Big: u32 = unsafe { ::std::mem::transmute(Default_Big) }; + Default_Big as u64 + }); + __bindgen_bitfield_unit.set(23usize, 1u8, { + let Granularity: u32 = unsafe { ::std::mem::transmute(Granularity) }; + Granularity as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let BaseHi: u32 = unsafe { ::std::mem::transmute(BaseHi) }; + BaseHi as u64 + }); + __bindgen_bitfield_unit + } +} +pub type WOW64_LDT_ENTRY = _WOW64_LDT_ENTRY; +pub type PWOW64_LDT_ENTRY = *mut _WOW64_LDT_ENTRY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _WOW64_DESCRIPTOR_TABLE_ENTRY { + pub Selector: DWORD, + pub Descriptor: WOW64_LDT_ENTRY, +} +pub type WOW64_DESCRIPTOR_TABLE_ENTRY = _WOW64_DESCRIPTOR_TABLE_ENTRY; +pub type PWOW64_DESCRIPTOR_TABLE_ENTRY = *mut _WOW64_DESCRIPTOR_TABLE_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EXCEPTION_RECORD { + pub ExceptionCode: DWORD, + pub ExceptionFlags: DWORD, + pub ExceptionRecord: *mut _EXCEPTION_RECORD, + pub ExceptionAddress: PVOID, + pub NumberParameters: DWORD, + pub ExceptionInformation: [ULONG_PTR; 15usize], +} +pub type EXCEPTION_RECORD = _EXCEPTION_RECORD; +pub type PEXCEPTION_RECORD = *mut EXCEPTION_RECORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EXCEPTION_RECORD32 { + pub ExceptionCode: DWORD, + pub ExceptionFlags: DWORD, + pub ExceptionRecord: DWORD, + pub ExceptionAddress: DWORD, + pub NumberParameters: DWORD, + pub ExceptionInformation: [DWORD; 15usize], +} +pub type EXCEPTION_RECORD32 = _EXCEPTION_RECORD32; +pub type PEXCEPTION_RECORD32 = *mut _EXCEPTION_RECORD32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EXCEPTION_RECORD64 { + pub ExceptionCode: DWORD, + pub ExceptionFlags: DWORD, + pub ExceptionRecord: DWORD64, + pub ExceptionAddress: DWORD64, + pub NumberParameters: DWORD, + pub __unusedAlignment: DWORD, + pub ExceptionInformation: [DWORD64; 15usize], +} +pub type EXCEPTION_RECORD64 = _EXCEPTION_RECORD64; +pub type PEXCEPTION_RECORD64 = *mut _EXCEPTION_RECORD64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EXCEPTION_POINTERS { + pub ExceptionRecord: PEXCEPTION_RECORD, + pub ContextRecord: PCONTEXT, +} +pub type EXCEPTION_POINTERS = _EXCEPTION_POINTERS; +pub type PEXCEPTION_POINTERS = *mut _EXCEPTION_POINTERS; +pub type PACCESS_TOKEN = PVOID; +pub type PSECURITY_DESCRIPTOR = PVOID; +pub type PSID = PVOID; +pub type PCLAIMS_BLOB = PVOID; +pub type ACCESS_MASK = DWORD; +pub type PACCESS_MASK = *mut ACCESS_MASK; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _GENERIC_MAPPING { + pub GenericRead: ACCESS_MASK, + pub GenericWrite: ACCESS_MASK, + pub GenericExecute: ACCESS_MASK, + pub GenericAll: ACCESS_MASK, +} +pub type GENERIC_MAPPING = _GENERIC_MAPPING; +pub type PGENERIC_MAPPING = *mut GENERIC_MAPPING; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LUID_AND_ATTRIBUTES { + pub Luid: LUID, + pub Attributes: DWORD, +} +pub type LUID_AND_ATTRIBUTES = _LUID_AND_ATTRIBUTES; +pub type PLUID_AND_ATTRIBUTES = *mut _LUID_AND_ATTRIBUTES; +pub type LUID_AND_ATTRIBUTES_ARRAY = [LUID_AND_ATTRIBUTES; 1usize]; +pub type PLUID_AND_ATTRIBUTES_ARRAY = *mut LUID_AND_ATTRIBUTES_ARRAY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SID_IDENTIFIER_AUTHORITY { + pub Value: [BYTE; 6usize], +} +pub type SID_IDENTIFIER_AUTHORITY = _SID_IDENTIFIER_AUTHORITY; +pub type PSID_IDENTIFIER_AUTHORITY = *mut _SID_IDENTIFIER_AUTHORITY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SID { + pub Revision: BYTE, + pub SubAuthorityCount: BYTE, + pub IdentifierAuthority: SID_IDENTIFIER_AUTHORITY, + pub SubAuthority: [DWORD; 1usize], +} +pub type SID = _SID; +pub type PISID = *mut _SID; +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SE_SID { + pub Sid: SID, + pub Buffer: [BYTE; 68usize], +} +pub type SE_SID = _SE_SID; +pub type PSE_SID = *mut _SE_SID; +pub const _SID_NAME_USE_SidTypeUser: _SID_NAME_USE = 1; +pub const _SID_NAME_USE_SidTypeGroup: _SID_NAME_USE = 2; +pub const _SID_NAME_USE_SidTypeDomain: _SID_NAME_USE = 3; +pub const _SID_NAME_USE_SidTypeAlias: _SID_NAME_USE = 4; +pub const _SID_NAME_USE_SidTypeWellKnownGroup: _SID_NAME_USE = 5; +pub const _SID_NAME_USE_SidTypeDeletedAccount: _SID_NAME_USE = 6; +pub const _SID_NAME_USE_SidTypeInvalid: _SID_NAME_USE = 7; +pub const _SID_NAME_USE_SidTypeUnknown: _SID_NAME_USE = 8; +pub const _SID_NAME_USE_SidTypeComputer: _SID_NAME_USE = 9; +pub const _SID_NAME_USE_SidTypeLabel: _SID_NAME_USE = 10; +pub const _SID_NAME_USE_SidTypeLogonSession: _SID_NAME_USE = 11; +pub type _SID_NAME_USE = ::std::os::raw::c_int; +pub use self::_SID_NAME_USE as SID_NAME_USE; +pub type PSID_NAME_USE = *mut _SID_NAME_USE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SID_AND_ATTRIBUTES { + pub Sid: PSID, + pub Attributes: DWORD, +} +pub type SID_AND_ATTRIBUTES = _SID_AND_ATTRIBUTES; +pub type PSID_AND_ATTRIBUTES = *mut _SID_AND_ATTRIBUTES; +pub type SID_AND_ATTRIBUTES_ARRAY = [SID_AND_ATTRIBUTES; 1usize]; +pub type PSID_AND_ATTRIBUTES_ARRAY = *mut SID_AND_ATTRIBUTES_ARRAY; +pub type SID_HASH_ENTRY = ULONG_PTR; +pub type PSID_HASH_ENTRY = *mut ULONG_PTR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SID_AND_ATTRIBUTES_HASH { + pub SidCount: DWORD, + pub SidAttr: PSID_AND_ATTRIBUTES, + pub Hash: [SID_HASH_ENTRY; 32usize], +} +pub type SID_AND_ATTRIBUTES_HASH = _SID_AND_ATTRIBUTES_HASH; +pub type PSID_AND_ATTRIBUTES_HASH = *mut _SID_AND_ATTRIBUTES_HASH; +pub const WELL_KNOWN_SID_TYPE_WinNullSid: WELL_KNOWN_SID_TYPE = 0; +pub const WELL_KNOWN_SID_TYPE_WinWorldSid: WELL_KNOWN_SID_TYPE = 1; +pub const WELL_KNOWN_SID_TYPE_WinLocalSid: WELL_KNOWN_SID_TYPE = 2; +pub const WELL_KNOWN_SID_TYPE_WinCreatorOwnerSid: WELL_KNOWN_SID_TYPE = 3; +pub const WELL_KNOWN_SID_TYPE_WinCreatorGroupSid: WELL_KNOWN_SID_TYPE = 4; +pub const WELL_KNOWN_SID_TYPE_WinCreatorOwnerServerSid: WELL_KNOWN_SID_TYPE = 5; +pub const WELL_KNOWN_SID_TYPE_WinCreatorGroupServerSid: WELL_KNOWN_SID_TYPE = 6; +pub const WELL_KNOWN_SID_TYPE_WinNtAuthoritySid: WELL_KNOWN_SID_TYPE = 7; +pub const WELL_KNOWN_SID_TYPE_WinDialupSid: WELL_KNOWN_SID_TYPE = 8; +pub const WELL_KNOWN_SID_TYPE_WinNetworkSid: WELL_KNOWN_SID_TYPE = 9; +pub const WELL_KNOWN_SID_TYPE_WinBatchSid: WELL_KNOWN_SID_TYPE = 10; +pub const WELL_KNOWN_SID_TYPE_WinInteractiveSid: WELL_KNOWN_SID_TYPE = 11; +pub const WELL_KNOWN_SID_TYPE_WinServiceSid: WELL_KNOWN_SID_TYPE = 12; +pub const WELL_KNOWN_SID_TYPE_WinAnonymousSid: WELL_KNOWN_SID_TYPE = 13; +pub const WELL_KNOWN_SID_TYPE_WinProxySid: WELL_KNOWN_SID_TYPE = 14; +pub const WELL_KNOWN_SID_TYPE_WinEnterpriseControllersSid: WELL_KNOWN_SID_TYPE = 15; +pub const WELL_KNOWN_SID_TYPE_WinSelfSid: WELL_KNOWN_SID_TYPE = 16; +pub const WELL_KNOWN_SID_TYPE_WinAuthenticatedUserSid: WELL_KNOWN_SID_TYPE = 17; +pub const WELL_KNOWN_SID_TYPE_WinRestrictedCodeSid: WELL_KNOWN_SID_TYPE = 18; +pub const WELL_KNOWN_SID_TYPE_WinTerminalServerSid: WELL_KNOWN_SID_TYPE = 19; +pub const WELL_KNOWN_SID_TYPE_WinRemoteLogonIdSid: WELL_KNOWN_SID_TYPE = 20; +pub const WELL_KNOWN_SID_TYPE_WinLogonIdsSid: WELL_KNOWN_SID_TYPE = 21; +pub const WELL_KNOWN_SID_TYPE_WinLocalSystemSid: WELL_KNOWN_SID_TYPE = 22; +pub const WELL_KNOWN_SID_TYPE_WinLocalServiceSid: WELL_KNOWN_SID_TYPE = 23; +pub const WELL_KNOWN_SID_TYPE_WinNetworkServiceSid: WELL_KNOWN_SID_TYPE = 24; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinDomainSid: WELL_KNOWN_SID_TYPE = 25; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinAdministratorsSid: WELL_KNOWN_SID_TYPE = 26; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinUsersSid: WELL_KNOWN_SID_TYPE = 27; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinGuestsSid: WELL_KNOWN_SID_TYPE = 28; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinPowerUsersSid: WELL_KNOWN_SID_TYPE = 29; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinAccountOperatorsSid: WELL_KNOWN_SID_TYPE = 30; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinSystemOperatorsSid: WELL_KNOWN_SID_TYPE = 31; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinPrintOperatorsSid: WELL_KNOWN_SID_TYPE = 32; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinBackupOperatorsSid: WELL_KNOWN_SID_TYPE = 33; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinReplicatorSid: WELL_KNOWN_SID_TYPE = 34; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinPreWindows2000CompatibleAccessSid: WELL_KNOWN_SID_TYPE = 35; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinRemoteDesktopUsersSid: WELL_KNOWN_SID_TYPE = 36; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinNetworkConfigurationOperatorsSid: WELL_KNOWN_SID_TYPE = 37; +pub const WELL_KNOWN_SID_TYPE_WinAccountAdministratorSid: WELL_KNOWN_SID_TYPE = 38; +pub const WELL_KNOWN_SID_TYPE_WinAccountGuestSid: WELL_KNOWN_SID_TYPE = 39; +pub const WELL_KNOWN_SID_TYPE_WinAccountKrbtgtSid: WELL_KNOWN_SID_TYPE = 40; +pub const WELL_KNOWN_SID_TYPE_WinAccountDomainAdminsSid: WELL_KNOWN_SID_TYPE = 41; +pub const WELL_KNOWN_SID_TYPE_WinAccountDomainUsersSid: WELL_KNOWN_SID_TYPE = 42; +pub const WELL_KNOWN_SID_TYPE_WinAccountDomainGuestsSid: WELL_KNOWN_SID_TYPE = 43; +pub const WELL_KNOWN_SID_TYPE_WinAccountComputersSid: WELL_KNOWN_SID_TYPE = 44; +pub const WELL_KNOWN_SID_TYPE_WinAccountControllersSid: WELL_KNOWN_SID_TYPE = 45; +pub const WELL_KNOWN_SID_TYPE_WinAccountCertAdminsSid: WELL_KNOWN_SID_TYPE = 46; +pub const WELL_KNOWN_SID_TYPE_WinAccountSchemaAdminsSid: WELL_KNOWN_SID_TYPE = 47; +pub const WELL_KNOWN_SID_TYPE_WinAccountEnterpriseAdminsSid: WELL_KNOWN_SID_TYPE = 48; +pub const WELL_KNOWN_SID_TYPE_WinAccountPolicyAdminsSid: WELL_KNOWN_SID_TYPE = 49; +pub const WELL_KNOWN_SID_TYPE_WinAccountRasAndIasServersSid: WELL_KNOWN_SID_TYPE = 50; +pub const WELL_KNOWN_SID_TYPE_WinNTLMAuthenticationSid: WELL_KNOWN_SID_TYPE = 51; +pub const WELL_KNOWN_SID_TYPE_WinDigestAuthenticationSid: WELL_KNOWN_SID_TYPE = 52; +pub const WELL_KNOWN_SID_TYPE_WinSChannelAuthenticationSid: WELL_KNOWN_SID_TYPE = 53; +pub const WELL_KNOWN_SID_TYPE_WinThisOrganizationSid: WELL_KNOWN_SID_TYPE = 54; +pub const WELL_KNOWN_SID_TYPE_WinOtherOrganizationSid: WELL_KNOWN_SID_TYPE = 55; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinIncomingForestTrustBuildersSid: WELL_KNOWN_SID_TYPE = 56; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinPerfMonitoringUsersSid: WELL_KNOWN_SID_TYPE = 57; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinPerfLoggingUsersSid: WELL_KNOWN_SID_TYPE = 58; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinAuthorizationAccessSid: WELL_KNOWN_SID_TYPE = 59; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinTerminalServerLicenseServersSid: WELL_KNOWN_SID_TYPE = 60; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinDCOMUsersSid: WELL_KNOWN_SID_TYPE = 61; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinIUsersSid: WELL_KNOWN_SID_TYPE = 62; +pub const WELL_KNOWN_SID_TYPE_WinIUserSid: WELL_KNOWN_SID_TYPE = 63; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinCryptoOperatorsSid: WELL_KNOWN_SID_TYPE = 64; +pub const WELL_KNOWN_SID_TYPE_WinUntrustedLabelSid: WELL_KNOWN_SID_TYPE = 65; +pub const WELL_KNOWN_SID_TYPE_WinLowLabelSid: WELL_KNOWN_SID_TYPE = 66; +pub const WELL_KNOWN_SID_TYPE_WinMediumLabelSid: WELL_KNOWN_SID_TYPE = 67; +pub const WELL_KNOWN_SID_TYPE_WinHighLabelSid: WELL_KNOWN_SID_TYPE = 68; +pub const WELL_KNOWN_SID_TYPE_WinSystemLabelSid: WELL_KNOWN_SID_TYPE = 69; +pub const WELL_KNOWN_SID_TYPE_WinWriteRestrictedCodeSid: WELL_KNOWN_SID_TYPE = 70; +pub const WELL_KNOWN_SID_TYPE_WinCreatorOwnerRightsSid: WELL_KNOWN_SID_TYPE = 71; +pub const WELL_KNOWN_SID_TYPE_WinCacheablePrincipalsGroupSid: WELL_KNOWN_SID_TYPE = 72; +pub const WELL_KNOWN_SID_TYPE_WinNonCacheablePrincipalsGroupSid: WELL_KNOWN_SID_TYPE = 73; +pub const WELL_KNOWN_SID_TYPE_WinEnterpriseReadonlyControllersSid: WELL_KNOWN_SID_TYPE = 74; +pub const WELL_KNOWN_SID_TYPE_WinAccountReadonlyControllersSid: WELL_KNOWN_SID_TYPE = 75; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinEventLogReadersGroup: WELL_KNOWN_SID_TYPE = 76; +pub const WELL_KNOWN_SID_TYPE_WinNewEnterpriseReadonlyControllersSid: WELL_KNOWN_SID_TYPE = 77; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinCertSvcDComAccessGroup: WELL_KNOWN_SID_TYPE = 78; +pub const WELL_KNOWN_SID_TYPE_WinMediumPlusLabelSid: WELL_KNOWN_SID_TYPE = 79; +pub const WELL_KNOWN_SID_TYPE_WinLocalLogonSid: WELL_KNOWN_SID_TYPE = 80; +pub const WELL_KNOWN_SID_TYPE_WinConsoleLogonSid: WELL_KNOWN_SID_TYPE = 81; +pub const WELL_KNOWN_SID_TYPE_WinThisOrganizationCertificateSid: WELL_KNOWN_SID_TYPE = 82; +pub const WELL_KNOWN_SID_TYPE_WinApplicationPackageAuthoritySid: WELL_KNOWN_SID_TYPE = 83; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinAnyPackageSid: WELL_KNOWN_SID_TYPE = 84; +pub const WELL_KNOWN_SID_TYPE_WinCapabilityInternetClientSid: WELL_KNOWN_SID_TYPE = 85; +pub const WELL_KNOWN_SID_TYPE_WinCapabilityInternetClientServerSid: WELL_KNOWN_SID_TYPE = 86; +pub const WELL_KNOWN_SID_TYPE_WinCapabilityPrivateNetworkClientServerSid: WELL_KNOWN_SID_TYPE = 87; +pub const WELL_KNOWN_SID_TYPE_WinCapabilityPicturesLibrarySid: WELL_KNOWN_SID_TYPE = 88; +pub const WELL_KNOWN_SID_TYPE_WinCapabilityVideosLibrarySid: WELL_KNOWN_SID_TYPE = 89; +pub const WELL_KNOWN_SID_TYPE_WinCapabilityMusicLibrarySid: WELL_KNOWN_SID_TYPE = 90; +pub const WELL_KNOWN_SID_TYPE_WinCapabilityDocumentsLibrarySid: WELL_KNOWN_SID_TYPE = 91; +pub const WELL_KNOWN_SID_TYPE_WinCapabilitySharedUserCertificatesSid: WELL_KNOWN_SID_TYPE = 92; +pub const WELL_KNOWN_SID_TYPE_WinCapabilityEnterpriseAuthenticationSid: WELL_KNOWN_SID_TYPE = 93; +pub const WELL_KNOWN_SID_TYPE_WinCapabilityRemovableStorageSid: WELL_KNOWN_SID_TYPE = 94; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinRDSRemoteAccessServersSid: WELL_KNOWN_SID_TYPE = 95; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinRDSEndpointServersSid: WELL_KNOWN_SID_TYPE = 96; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinRDSManagementServersSid: WELL_KNOWN_SID_TYPE = 97; +pub const WELL_KNOWN_SID_TYPE_WinUserModeDriversSid: WELL_KNOWN_SID_TYPE = 98; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinHyperVAdminsSid: WELL_KNOWN_SID_TYPE = 99; +pub const WELL_KNOWN_SID_TYPE_WinAccountCloneableControllersSid: WELL_KNOWN_SID_TYPE = 100; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinAccessControlAssistanceOperatorsSid: WELL_KNOWN_SID_TYPE = + 101; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinRemoteManagementUsersSid: WELL_KNOWN_SID_TYPE = 102; +pub const WELL_KNOWN_SID_TYPE_WinAuthenticationAuthorityAssertedSid: WELL_KNOWN_SID_TYPE = 103; +pub const WELL_KNOWN_SID_TYPE_WinAuthenticationServiceAssertedSid: WELL_KNOWN_SID_TYPE = 104; +pub const WELL_KNOWN_SID_TYPE_WinLocalAccountSid: WELL_KNOWN_SID_TYPE = 105; +pub const WELL_KNOWN_SID_TYPE_WinLocalAccountAndAdministratorSid: WELL_KNOWN_SID_TYPE = 106; +pub const WELL_KNOWN_SID_TYPE_WinAccountProtectedUsersSid: WELL_KNOWN_SID_TYPE = 107; +pub const WELL_KNOWN_SID_TYPE_WinCapabilityAppointmentsSid: WELL_KNOWN_SID_TYPE = 108; +pub const WELL_KNOWN_SID_TYPE_WinCapabilityContactsSid: WELL_KNOWN_SID_TYPE = 109; +pub const WELL_KNOWN_SID_TYPE_WinAccountDefaultSystemManagedSid: WELL_KNOWN_SID_TYPE = 110; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinDefaultSystemManagedGroupSid: WELL_KNOWN_SID_TYPE = 111; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinStorageReplicaAdminsSid: WELL_KNOWN_SID_TYPE = 112; +pub const WELL_KNOWN_SID_TYPE_WinAccountKeyAdminsSid: WELL_KNOWN_SID_TYPE = 113; +pub const WELL_KNOWN_SID_TYPE_WinAccountEnterpriseKeyAdminsSid: WELL_KNOWN_SID_TYPE = 114; +pub const WELL_KNOWN_SID_TYPE_WinAuthenticationKeyTrustSid: WELL_KNOWN_SID_TYPE = 115; +pub const WELL_KNOWN_SID_TYPE_WinAuthenticationKeyPropertyMFASid: WELL_KNOWN_SID_TYPE = 116; +pub const WELL_KNOWN_SID_TYPE_WinAuthenticationKeyPropertyAttestationSid: WELL_KNOWN_SID_TYPE = 117; +pub const WELL_KNOWN_SID_TYPE_WinAuthenticationFreshKeyAuthSid: WELL_KNOWN_SID_TYPE = 118; +pub const WELL_KNOWN_SID_TYPE_WinBuiltinDeviceOwnersSid: WELL_KNOWN_SID_TYPE = 119; +pub type WELL_KNOWN_SID_TYPE = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACL { + pub AclRevision: BYTE, + pub Sbz1: BYTE, + pub AclSize: WORD, + pub AceCount: WORD, + pub Sbz2: WORD, +} +pub type ACL = _ACL; +pub type PACL = *mut ACL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACE_HEADER { + pub AceType: BYTE, + pub AceFlags: BYTE, + pub AceSize: WORD, +} +pub type ACE_HEADER = _ACE_HEADER; +pub type PACE_HEADER = *mut ACE_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACCESS_ALLOWED_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub SidStart: DWORD, +} +pub type ACCESS_ALLOWED_ACE = _ACCESS_ALLOWED_ACE; +pub type PACCESS_ALLOWED_ACE = *mut ACCESS_ALLOWED_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACCESS_DENIED_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub SidStart: DWORD, +} +pub type ACCESS_DENIED_ACE = _ACCESS_DENIED_ACE; +pub type PACCESS_DENIED_ACE = *mut ACCESS_DENIED_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_AUDIT_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub SidStart: DWORD, +} +pub type SYSTEM_AUDIT_ACE = _SYSTEM_AUDIT_ACE; +pub type PSYSTEM_AUDIT_ACE = *mut SYSTEM_AUDIT_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_ALARM_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub SidStart: DWORD, +} +pub type SYSTEM_ALARM_ACE = _SYSTEM_ALARM_ACE; +pub type PSYSTEM_ALARM_ACE = *mut SYSTEM_ALARM_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_RESOURCE_ATTRIBUTE_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub SidStart: DWORD, +} +pub type SYSTEM_RESOURCE_ATTRIBUTE_ACE = _SYSTEM_RESOURCE_ATTRIBUTE_ACE; +pub type PSYSTEM_RESOURCE_ATTRIBUTE_ACE = *mut _SYSTEM_RESOURCE_ATTRIBUTE_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_SCOPED_POLICY_ID_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub SidStart: DWORD, +} +pub type SYSTEM_SCOPED_POLICY_ID_ACE = _SYSTEM_SCOPED_POLICY_ID_ACE; +pub type PSYSTEM_SCOPED_POLICY_ID_ACE = *mut _SYSTEM_SCOPED_POLICY_ID_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_MANDATORY_LABEL_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub SidStart: DWORD, +} +pub type SYSTEM_MANDATORY_LABEL_ACE = _SYSTEM_MANDATORY_LABEL_ACE; +pub type PSYSTEM_MANDATORY_LABEL_ACE = *mut _SYSTEM_MANDATORY_LABEL_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_PROCESS_TRUST_LABEL_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub SidStart: DWORD, +} +pub type SYSTEM_PROCESS_TRUST_LABEL_ACE = _SYSTEM_PROCESS_TRUST_LABEL_ACE; +pub type PSYSTEM_PROCESS_TRUST_LABEL_ACE = *mut _SYSTEM_PROCESS_TRUST_LABEL_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_ACCESS_FILTER_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub SidStart: DWORD, +} +pub type SYSTEM_ACCESS_FILTER_ACE = _SYSTEM_ACCESS_FILTER_ACE; +pub type PSYSTEM_ACCESS_FILTER_ACE = *mut _SYSTEM_ACCESS_FILTER_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACCESS_ALLOWED_OBJECT_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub Flags: DWORD, + pub ObjectType: GUID, + pub InheritedObjectType: GUID, + pub SidStart: DWORD, +} +pub type ACCESS_ALLOWED_OBJECT_ACE = _ACCESS_ALLOWED_OBJECT_ACE; +pub type PACCESS_ALLOWED_OBJECT_ACE = *mut _ACCESS_ALLOWED_OBJECT_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACCESS_DENIED_OBJECT_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub Flags: DWORD, + pub ObjectType: GUID, + pub InheritedObjectType: GUID, + pub SidStart: DWORD, +} +pub type ACCESS_DENIED_OBJECT_ACE = _ACCESS_DENIED_OBJECT_ACE; +pub type PACCESS_DENIED_OBJECT_ACE = *mut _ACCESS_DENIED_OBJECT_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_AUDIT_OBJECT_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub Flags: DWORD, + pub ObjectType: GUID, + pub InheritedObjectType: GUID, + pub SidStart: DWORD, +} +pub type SYSTEM_AUDIT_OBJECT_ACE = _SYSTEM_AUDIT_OBJECT_ACE; +pub type PSYSTEM_AUDIT_OBJECT_ACE = *mut _SYSTEM_AUDIT_OBJECT_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_ALARM_OBJECT_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub Flags: DWORD, + pub ObjectType: GUID, + pub InheritedObjectType: GUID, + pub SidStart: DWORD, +} +pub type SYSTEM_ALARM_OBJECT_ACE = _SYSTEM_ALARM_OBJECT_ACE; +pub type PSYSTEM_ALARM_OBJECT_ACE = *mut _SYSTEM_ALARM_OBJECT_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACCESS_ALLOWED_CALLBACK_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub SidStart: DWORD, +} +pub type ACCESS_ALLOWED_CALLBACK_ACE = _ACCESS_ALLOWED_CALLBACK_ACE; +pub type PACCESS_ALLOWED_CALLBACK_ACE = *mut _ACCESS_ALLOWED_CALLBACK_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACCESS_DENIED_CALLBACK_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub SidStart: DWORD, +} +pub type ACCESS_DENIED_CALLBACK_ACE = _ACCESS_DENIED_CALLBACK_ACE; +pub type PACCESS_DENIED_CALLBACK_ACE = *mut _ACCESS_DENIED_CALLBACK_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_AUDIT_CALLBACK_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub SidStart: DWORD, +} +pub type SYSTEM_AUDIT_CALLBACK_ACE = _SYSTEM_AUDIT_CALLBACK_ACE; +pub type PSYSTEM_AUDIT_CALLBACK_ACE = *mut _SYSTEM_AUDIT_CALLBACK_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_ALARM_CALLBACK_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub SidStart: DWORD, +} +pub type SYSTEM_ALARM_CALLBACK_ACE = _SYSTEM_ALARM_CALLBACK_ACE; +pub type PSYSTEM_ALARM_CALLBACK_ACE = *mut _SYSTEM_ALARM_CALLBACK_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACCESS_ALLOWED_CALLBACK_OBJECT_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub Flags: DWORD, + pub ObjectType: GUID, + pub InheritedObjectType: GUID, + pub SidStart: DWORD, +} +pub type ACCESS_ALLOWED_CALLBACK_OBJECT_ACE = _ACCESS_ALLOWED_CALLBACK_OBJECT_ACE; +pub type PACCESS_ALLOWED_CALLBACK_OBJECT_ACE = *mut _ACCESS_ALLOWED_CALLBACK_OBJECT_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACCESS_DENIED_CALLBACK_OBJECT_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub Flags: DWORD, + pub ObjectType: GUID, + pub InheritedObjectType: GUID, + pub SidStart: DWORD, +} +pub type ACCESS_DENIED_CALLBACK_OBJECT_ACE = _ACCESS_DENIED_CALLBACK_OBJECT_ACE; +pub type PACCESS_DENIED_CALLBACK_OBJECT_ACE = *mut _ACCESS_DENIED_CALLBACK_OBJECT_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_AUDIT_CALLBACK_OBJECT_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub Flags: DWORD, + pub ObjectType: GUID, + pub InheritedObjectType: GUID, + pub SidStart: DWORD, +} +pub type SYSTEM_AUDIT_CALLBACK_OBJECT_ACE = _SYSTEM_AUDIT_CALLBACK_OBJECT_ACE; +pub type PSYSTEM_AUDIT_CALLBACK_OBJECT_ACE = *mut _SYSTEM_AUDIT_CALLBACK_OBJECT_ACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_ALARM_CALLBACK_OBJECT_ACE { + pub Header: ACE_HEADER, + pub Mask: ACCESS_MASK, + pub Flags: DWORD, + pub ObjectType: GUID, + pub InheritedObjectType: GUID, + pub SidStart: DWORD, +} +pub type SYSTEM_ALARM_CALLBACK_OBJECT_ACE = _SYSTEM_ALARM_CALLBACK_OBJECT_ACE; +pub type PSYSTEM_ALARM_CALLBACK_OBJECT_ACE = *mut _SYSTEM_ALARM_CALLBACK_OBJECT_ACE; +pub const _ACL_INFORMATION_CLASS_AclRevisionInformation: _ACL_INFORMATION_CLASS = 1; +pub const _ACL_INFORMATION_CLASS_AclSizeInformation: _ACL_INFORMATION_CLASS = 2; +pub type _ACL_INFORMATION_CLASS = ::std::os::raw::c_int; +pub use self::_ACL_INFORMATION_CLASS as ACL_INFORMATION_CLASS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACL_REVISION_INFORMATION { + pub AclRevision: DWORD, +} +pub type ACL_REVISION_INFORMATION = _ACL_REVISION_INFORMATION; +pub type PACL_REVISION_INFORMATION = *mut ACL_REVISION_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACL_SIZE_INFORMATION { + pub AceCount: DWORD, + pub AclBytesInUse: DWORD, + pub AclBytesFree: DWORD, +} +pub type ACL_SIZE_INFORMATION = _ACL_SIZE_INFORMATION; +pub type PACL_SIZE_INFORMATION = *mut ACL_SIZE_INFORMATION; +pub type SECURITY_DESCRIPTOR_CONTROL = WORD; +pub type PSECURITY_DESCRIPTOR_CONTROL = *mut WORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SECURITY_DESCRIPTOR_RELATIVE { + pub Revision: BYTE, + pub Sbz1: BYTE, + pub Control: SECURITY_DESCRIPTOR_CONTROL, + pub Owner: DWORD, + pub Group: DWORD, + pub Sacl: DWORD, + pub Dacl: DWORD, +} +pub type SECURITY_DESCRIPTOR_RELATIVE = _SECURITY_DESCRIPTOR_RELATIVE; +pub type PISECURITY_DESCRIPTOR_RELATIVE = *mut _SECURITY_DESCRIPTOR_RELATIVE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SECURITY_DESCRIPTOR { + pub Revision: BYTE, + pub Sbz1: BYTE, + pub Control: SECURITY_DESCRIPTOR_CONTROL, + pub Owner: PSID, + pub Group: PSID, + pub Sacl: PACL, + pub Dacl: PACL, +} +pub type SECURITY_DESCRIPTOR = _SECURITY_DESCRIPTOR; +pub type PISECURITY_DESCRIPTOR = *mut _SECURITY_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SECURITY_OBJECT_AI_PARAMS { + pub Size: DWORD, + pub ConstraintMask: DWORD, +} +pub type SECURITY_OBJECT_AI_PARAMS = _SECURITY_OBJECT_AI_PARAMS; +pub type PSECURITY_OBJECT_AI_PARAMS = *mut _SECURITY_OBJECT_AI_PARAMS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OBJECT_TYPE_LIST { + pub Level: WORD, + pub Sbz: WORD, + pub ObjectType: *mut GUID, +} +pub type OBJECT_TYPE_LIST = _OBJECT_TYPE_LIST; +pub type POBJECT_TYPE_LIST = *mut _OBJECT_TYPE_LIST; +pub const _AUDIT_EVENT_TYPE_AuditEventObjectAccess: _AUDIT_EVENT_TYPE = 0; +pub const _AUDIT_EVENT_TYPE_AuditEventDirectoryServiceAccess: _AUDIT_EVENT_TYPE = 1; +pub type _AUDIT_EVENT_TYPE = ::std::os::raw::c_int; +pub use self::_AUDIT_EVENT_TYPE as AUDIT_EVENT_TYPE; +pub type PAUDIT_EVENT_TYPE = *mut _AUDIT_EVENT_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRIVILEGE_SET { + pub PrivilegeCount: DWORD, + pub Control: DWORD, + pub Privilege: [LUID_AND_ATTRIBUTES; 1usize], +} +pub type PRIVILEGE_SET = _PRIVILEGE_SET; +pub type PPRIVILEGE_SET = *mut _PRIVILEGE_SET; +pub const _ACCESS_REASON_TYPE_AccessReasonNone: _ACCESS_REASON_TYPE = 0; +pub const _ACCESS_REASON_TYPE_AccessReasonAllowedAce: _ACCESS_REASON_TYPE = 65536; +pub const _ACCESS_REASON_TYPE_AccessReasonDeniedAce: _ACCESS_REASON_TYPE = 131072; +pub const _ACCESS_REASON_TYPE_AccessReasonAllowedParentAce: _ACCESS_REASON_TYPE = 196608; +pub const _ACCESS_REASON_TYPE_AccessReasonDeniedParentAce: _ACCESS_REASON_TYPE = 262144; +pub const _ACCESS_REASON_TYPE_AccessReasonNotGrantedByCape: _ACCESS_REASON_TYPE = 327680; +pub const _ACCESS_REASON_TYPE_AccessReasonNotGrantedByParentCape: _ACCESS_REASON_TYPE = 393216; +pub const _ACCESS_REASON_TYPE_AccessReasonNotGrantedToAppContainer: _ACCESS_REASON_TYPE = 458752; +pub const _ACCESS_REASON_TYPE_AccessReasonMissingPrivilege: _ACCESS_REASON_TYPE = 1048576; +pub const _ACCESS_REASON_TYPE_AccessReasonFromPrivilege: _ACCESS_REASON_TYPE = 2097152; +pub const _ACCESS_REASON_TYPE_AccessReasonIntegrityLevel: _ACCESS_REASON_TYPE = 3145728; +pub const _ACCESS_REASON_TYPE_AccessReasonOwnership: _ACCESS_REASON_TYPE = 4194304; +pub const _ACCESS_REASON_TYPE_AccessReasonNullDacl: _ACCESS_REASON_TYPE = 5242880; +pub const _ACCESS_REASON_TYPE_AccessReasonEmptyDacl: _ACCESS_REASON_TYPE = 6291456; +pub const _ACCESS_REASON_TYPE_AccessReasonNoSD: _ACCESS_REASON_TYPE = 7340032; +pub const _ACCESS_REASON_TYPE_AccessReasonNoGrant: _ACCESS_REASON_TYPE = 8388608; +pub const _ACCESS_REASON_TYPE_AccessReasonTrustLabel: _ACCESS_REASON_TYPE = 9437184; +pub const _ACCESS_REASON_TYPE_AccessReasonFilterAce: _ACCESS_REASON_TYPE = 10485760; +pub type _ACCESS_REASON_TYPE = ::std::os::raw::c_int; +pub use self::_ACCESS_REASON_TYPE as ACCESS_REASON_TYPE; +pub type ACCESS_REASON = DWORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACCESS_REASONS { + pub Data: [ACCESS_REASON; 32usize], +} +pub type ACCESS_REASONS = _ACCESS_REASONS; +pub type PACCESS_REASONS = *mut _ACCESS_REASONS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SE_SECURITY_DESCRIPTOR { + pub Size: DWORD, + pub Flags: DWORD, + pub SecurityDescriptor: PSECURITY_DESCRIPTOR, +} +pub type SE_SECURITY_DESCRIPTOR = _SE_SECURITY_DESCRIPTOR; +pub type PSE_SECURITY_DESCRIPTOR = *mut _SE_SECURITY_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SE_ACCESS_REQUEST { + pub Size: DWORD, + pub SeSecurityDescriptor: PSE_SECURITY_DESCRIPTOR, + pub DesiredAccess: ACCESS_MASK, + pub PreviouslyGrantedAccess: ACCESS_MASK, + pub PrincipalSelfSid: PSID, + pub GenericMapping: PGENERIC_MAPPING, + pub ObjectTypeListCount: DWORD, + pub ObjectTypeList: POBJECT_TYPE_LIST, +} +pub type SE_ACCESS_REQUEST = _SE_ACCESS_REQUEST; +pub type PSE_ACCESS_REQUEST = *mut _SE_ACCESS_REQUEST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SE_ACCESS_REPLY { + pub Size: DWORD, + pub ResultListCount: DWORD, + pub GrantedAccess: PACCESS_MASK, + pub AccessStatus: PDWORD, + pub AccessReason: PACCESS_REASONS, + pub Privileges: *mut PPRIVILEGE_SET, +} +pub type SE_ACCESS_REPLY = _SE_ACCESS_REPLY; +pub type PSE_ACCESS_REPLY = *mut _SE_ACCESS_REPLY; +pub const _SECURITY_IMPERSONATION_LEVEL_SecurityAnonymous: _SECURITY_IMPERSONATION_LEVEL = 0; +pub const _SECURITY_IMPERSONATION_LEVEL_SecurityIdentification: _SECURITY_IMPERSONATION_LEVEL = 1; +pub const _SECURITY_IMPERSONATION_LEVEL_SecurityImpersonation: _SECURITY_IMPERSONATION_LEVEL = 2; +pub const _SECURITY_IMPERSONATION_LEVEL_SecurityDelegation: _SECURITY_IMPERSONATION_LEVEL = 3; +pub type _SECURITY_IMPERSONATION_LEVEL = ::std::os::raw::c_int; +pub use self::_SECURITY_IMPERSONATION_LEVEL as SECURITY_IMPERSONATION_LEVEL; +pub type PSECURITY_IMPERSONATION_LEVEL = *mut _SECURITY_IMPERSONATION_LEVEL; +pub const _TOKEN_TYPE_TokenPrimary: _TOKEN_TYPE = 1; +pub const _TOKEN_TYPE_TokenImpersonation: _TOKEN_TYPE = 2; +pub type _TOKEN_TYPE = ::std::os::raw::c_int; +pub use self::_TOKEN_TYPE as TOKEN_TYPE; +pub type PTOKEN_TYPE = *mut TOKEN_TYPE; +pub const _TOKEN_ELEVATION_TYPE_TokenElevationTypeDefault: _TOKEN_ELEVATION_TYPE = 1; +pub const _TOKEN_ELEVATION_TYPE_TokenElevationTypeFull: _TOKEN_ELEVATION_TYPE = 2; +pub const _TOKEN_ELEVATION_TYPE_TokenElevationTypeLimited: _TOKEN_ELEVATION_TYPE = 3; +pub type _TOKEN_ELEVATION_TYPE = ::std::os::raw::c_int; +pub use self::_TOKEN_ELEVATION_TYPE as TOKEN_ELEVATION_TYPE; +pub type PTOKEN_ELEVATION_TYPE = *mut _TOKEN_ELEVATION_TYPE; +pub const _TOKEN_INFORMATION_CLASS_TokenUser: _TOKEN_INFORMATION_CLASS = 1; +pub const _TOKEN_INFORMATION_CLASS_TokenGroups: _TOKEN_INFORMATION_CLASS = 2; +pub const _TOKEN_INFORMATION_CLASS_TokenPrivileges: _TOKEN_INFORMATION_CLASS = 3; +pub const _TOKEN_INFORMATION_CLASS_TokenOwner: _TOKEN_INFORMATION_CLASS = 4; +pub const _TOKEN_INFORMATION_CLASS_TokenPrimaryGroup: _TOKEN_INFORMATION_CLASS = 5; +pub const _TOKEN_INFORMATION_CLASS_TokenDefaultDacl: _TOKEN_INFORMATION_CLASS = 6; +pub const _TOKEN_INFORMATION_CLASS_TokenSource: _TOKEN_INFORMATION_CLASS = 7; +pub const _TOKEN_INFORMATION_CLASS_TokenType: _TOKEN_INFORMATION_CLASS = 8; +pub const _TOKEN_INFORMATION_CLASS_TokenImpersonationLevel: _TOKEN_INFORMATION_CLASS = 9; +pub const _TOKEN_INFORMATION_CLASS_TokenStatistics: _TOKEN_INFORMATION_CLASS = 10; +pub const _TOKEN_INFORMATION_CLASS_TokenRestrictedSids: _TOKEN_INFORMATION_CLASS = 11; +pub const _TOKEN_INFORMATION_CLASS_TokenSessionId: _TOKEN_INFORMATION_CLASS = 12; +pub const _TOKEN_INFORMATION_CLASS_TokenGroupsAndPrivileges: _TOKEN_INFORMATION_CLASS = 13; +pub const _TOKEN_INFORMATION_CLASS_TokenSessionReference: _TOKEN_INFORMATION_CLASS = 14; +pub const _TOKEN_INFORMATION_CLASS_TokenSandBoxInert: _TOKEN_INFORMATION_CLASS = 15; +pub const _TOKEN_INFORMATION_CLASS_TokenAuditPolicy: _TOKEN_INFORMATION_CLASS = 16; +pub const _TOKEN_INFORMATION_CLASS_TokenOrigin: _TOKEN_INFORMATION_CLASS = 17; +pub const _TOKEN_INFORMATION_CLASS_TokenElevationType: _TOKEN_INFORMATION_CLASS = 18; +pub const _TOKEN_INFORMATION_CLASS_TokenLinkedToken: _TOKEN_INFORMATION_CLASS = 19; +pub const _TOKEN_INFORMATION_CLASS_TokenElevation: _TOKEN_INFORMATION_CLASS = 20; +pub const _TOKEN_INFORMATION_CLASS_TokenHasRestrictions: _TOKEN_INFORMATION_CLASS = 21; +pub const _TOKEN_INFORMATION_CLASS_TokenAccessInformation: _TOKEN_INFORMATION_CLASS = 22; +pub const _TOKEN_INFORMATION_CLASS_TokenVirtualizationAllowed: _TOKEN_INFORMATION_CLASS = 23; +pub const _TOKEN_INFORMATION_CLASS_TokenVirtualizationEnabled: _TOKEN_INFORMATION_CLASS = 24; +pub const _TOKEN_INFORMATION_CLASS_TokenIntegrityLevel: _TOKEN_INFORMATION_CLASS = 25; +pub const _TOKEN_INFORMATION_CLASS_TokenUIAccess: _TOKEN_INFORMATION_CLASS = 26; +pub const _TOKEN_INFORMATION_CLASS_TokenMandatoryPolicy: _TOKEN_INFORMATION_CLASS = 27; +pub const _TOKEN_INFORMATION_CLASS_TokenLogonSid: _TOKEN_INFORMATION_CLASS = 28; +pub const _TOKEN_INFORMATION_CLASS_TokenIsAppContainer: _TOKEN_INFORMATION_CLASS = 29; +pub const _TOKEN_INFORMATION_CLASS_TokenCapabilities: _TOKEN_INFORMATION_CLASS = 30; +pub const _TOKEN_INFORMATION_CLASS_TokenAppContainerSid: _TOKEN_INFORMATION_CLASS = 31; +pub const _TOKEN_INFORMATION_CLASS_TokenAppContainerNumber: _TOKEN_INFORMATION_CLASS = 32; +pub const _TOKEN_INFORMATION_CLASS_TokenUserClaimAttributes: _TOKEN_INFORMATION_CLASS = 33; +pub const _TOKEN_INFORMATION_CLASS_TokenDeviceClaimAttributes: _TOKEN_INFORMATION_CLASS = 34; +pub const _TOKEN_INFORMATION_CLASS_TokenRestrictedUserClaimAttributes: _TOKEN_INFORMATION_CLASS = + 35; +pub const _TOKEN_INFORMATION_CLASS_TokenRestrictedDeviceClaimAttributes: _TOKEN_INFORMATION_CLASS = + 36; +pub const _TOKEN_INFORMATION_CLASS_TokenDeviceGroups: _TOKEN_INFORMATION_CLASS = 37; +pub const _TOKEN_INFORMATION_CLASS_TokenRestrictedDeviceGroups: _TOKEN_INFORMATION_CLASS = 38; +pub const _TOKEN_INFORMATION_CLASS_TokenSecurityAttributes: _TOKEN_INFORMATION_CLASS = 39; +pub const _TOKEN_INFORMATION_CLASS_TokenIsRestricted: _TOKEN_INFORMATION_CLASS = 40; +pub const _TOKEN_INFORMATION_CLASS_TokenProcessTrustLevel: _TOKEN_INFORMATION_CLASS = 41; +pub const _TOKEN_INFORMATION_CLASS_TokenPrivateNameSpace: _TOKEN_INFORMATION_CLASS = 42; +pub const _TOKEN_INFORMATION_CLASS_TokenSingletonAttributes: _TOKEN_INFORMATION_CLASS = 43; +pub const _TOKEN_INFORMATION_CLASS_TokenBnoIsolation: _TOKEN_INFORMATION_CLASS = 44; +pub const _TOKEN_INFORMATION_CLASS_TokenChildProcessFlags: _TOKEN_INFORMATION_CLASS = 45; +pub const _TOKEN_INFORMATION_CLASS_TokenIsLessPrivilegedAppContainer: _TOKEN_INFORMATION_CLASS = 46; +pub const _TOKEN_INFORMATION_CLASS_TokenIsSandboxed: _TOKEN_INFORMATION_CLASS = 47; +pub const _TOKEN_INFORMATION_CLASS_TokenIsAppSilo: _TOKEN_INFORMATION_CLASS = 48; +pub const _TOKEN_INFORMATION_CLASS_MaxTokenInfoClass: _TOKEN_INFORMATION_CLASS = 49; +pub type _TOKEN_INFORMATION_CLASS = ::std::os::raw::c_int; +pub use self::_TOKEN_INFORMATION_CLASS as TOKEN_INFORMATION_CLASS; +pub type PTOKEN_INFORMATION_CLASS = *mut _TOKEN_INFORMATION_CLASS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_USER { + pub User: SID_AND_ATTRIBUTES, +} +pub type TOKEN_USER = _TOKEN_USER; +pub type PTOKEN_USER = *mut _TOKEN_USER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _SE_TOKEN_USER { + pub __bindgen_anon_1: _SE_TOKEN_USER__bindgen_ty_1, + pub __bindgen_anon_2: _SE_TOKEN_USER__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SE_TOKEN_USER__bindgen_ty_1 { + pub TokenUser: TOKEN_USER, + pub User: SID_AND_ATTRIBUTES, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SE_TOKEN_USER__bindgen_ty_2 { + pub Sid: SID, + pub Buffer: [BYTE; 68usize], +} +pub type SE_TOKEN_USER = _SE_TOKEN_USER; +pub type PSE_TOKEN_USER = _SE_TOKEN_USER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_GROUPS { + pub GroupCount: DWORD, + pub Groups: [SID_AND_ATTRIBUTES; 1usize], +} +pub type TOKEN_GROUPS = _TOKEN_GROUPS; +pub type PTOKEN_GROUPS = *mut _TOKEN_GROUPS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_PRIVILEGES { + pub PrivilegeCount: DWORD, + pub Privileges: [LUID_AND_ATTRIBUTES; 1usize], +} +pub type TOKEN_PRIVILEGES = _TOKEN_PRIVILEGES; +pub type PTOKEN_PRIVILEGES = *mut _TOKEN_PRIVILEGES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_OWNER { + pub Owner: PSID, +} +pub type TOKEN_OWNER = _TOKEN_OWNER; +pub type PTOKEN_OWNER = *mut _TOKEN_OWNER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_PRIMARY_GROUP { + pub PrimaryGroup: PSID, +} +pub type TOKEN_PRIMARY_GROUP = _TOKEN_PRIMARY_GROUP; +pub type PTOKEN_PRIMARY_GROUP = *mut _TOKEN_PRIMARY_GROUP; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_DEFAULT_DACL { + pub DefaultDacl: PACL, +} +pub type TOKEN_DEFAULT_DACL = _TOKEN_DEFAULT_DACL; +pub type PTOKEN_DEFAULT_DACL = *mut _TOKEN_DEFAULT_DACL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_USER_CLAIMS { + pub UserClaims: PCLAIMS_BLOB, +} +pub type TOKEN_USER_CLAIMS = _TOKEN_USER_CLAIMS; +pub type PTOKEN_USER_CLAIMS = *mut _TOKEN_USER_CLAIMS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_DEVICE_CLAIMS { + pub DeviceClaims: PCLAIMS_BLOB, +} +pub type TOKEN_DEVICE_CLAIMS = _TOKEN_DEVICE_CLAIMS; +pub type PTOKEN_DEVICE_CLAIMS = *mut _TOKEN_DEVICE_CLAIMS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_GROUPS_AND_PRIVILEGES { + pub SidCount: DWORD, + pub SidLength: DWORD, + pub Sids: PSID_AND_ATTRIBUTES, + pub RestrictedSidCount: DWORD, + pub RestrictedSidLength: DWORD, + pub RestrictedSids: PSID_AND_ATTRIBUTES, + pub PrivilegeCount: DWORD, + pub PrivilegeLength: DWORD, + pub Privileges: PLUID_AND_ATTRIBUTES, + pub AuthenticationId: LUID, +} +pub type TOKEN_GROUPS_AND_PRIVILEGES = _TOKEN_GROUPS_AND_PRIVILEGES; +pub type PTOKEN_GROUPS_AND_PRIVILEGES = *mut _TOKEN_GROUPS_AND_PRIVILEGES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_LINKED_TOKEN { + pub LinkedToken: HANDLE, +} +pub type TOKEN_LINKED_TOKEN = _TOKEN_LINKED_TOKEN; +pub type PTOKEN_LINKED_TOKEN = *mut _TOKEN_LINKED_TOKEN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_ELEVATION { + pub TokenIsElevated: DWORD, +} +pub type TOKEN_ELEVATION = _TOKEN_ELEVATION; +pub type PTOKEN_ELEVATION = *mut _TOKEN_ELEVATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_MANDATORY_LABEL { + pub Label: SID_AND_ATTRIBUTES, +} +pub type TOKEN_MANDATORY_LABEL = _TOKEN_MANDATORY_LABEL; +pub type PTOKEN_MANDATORY_LABEL = *mut _TOKEN_MANDATORY_LABEL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_MANDATORY_POLICY { + pub Policy: DWORD, +} +pub type TOKEN_MANDATORY_POLICY = _TOKEN_MANDATORY_POLICY; +pub type PTOKEN_MANDATORY_POLICY = *mut _TOKEN_MANDATORY_POLICY; +pub type PSECURITY_ATTRIBUTES_OPAQUE = PVOID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_ACCESS_INFORMATION { + pub SidHash: PSID_AND_ATTRIBUTES_HASH, + pub RestrictedSidHash: PSID_AND_ATTRIBUTES_HASH, + pub Privileges: PTOKEN_PRIVILEGES, + pub AuthenticationId: LUID, + pub TokenType: TOKEN_TYPE, + pub ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, + pub MandatoryPolicy: TOKEN_MANDATORY_POLICY, + pub Flags: DWORD, + pub AppContainerNumber: DWORD, + pub PackageSid: PSID, + pub CapabilitiesHash: PSID_AND_ATTRIBUTES_HASH, + pub TrustLevelSid: PSID, + pub SecurityAttributes: PSECURITY_ATTRIBUTES_OPAQUE, +} +pub type TOKEN_ACCESS_INFORMATION = _TOKEN_ACCESS_INFORMATION; +pub type PTOKEN_ACCESS_INFORMATION = *mut _TOKEN_ACCESS_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_AUDIT_POLICY { + pub PerUserPolicy: [BYTE; 30usize], +} +pub type TOKEN_AUDIT_POLICY = _TOKEN_AUDIT_POLICY; +pub type PTOKEN_AUDIT_POLICY = *mut _TOKEN_AUDIT_POLICY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_SOURCE { + pub SourceName: [CHAR; 8usize], + pub SourceIdentifier: LUID, +} +pub type TOKEN_SOURCE = _TOKEN_SOURCE; +pub type PTOKEN_SOURCE = *mut _TOKEN_SOURCE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _TOKEN_STATISTICS { + pub TokenId: LUID, + pub AuthenticationId: LUID, + pub ExpirationTime: LARGE_INTEGER, + pub TokenType: TOKEN_TYPE, + pub ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, + pub DynamicCharged: DWORD, + pub DynamicAvailable: DWORD, + pub GroupCount: DWORD, + pub PrivilegeCount: DWORD, + pub ModifiedId: LUID, +} +pub type TOKEN_STATISTICS = _TOKEN_STATISTICS; +pub type PTOKEN_STATISTICS = *mut _TOKEN_STATISTICS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_CONTROL { + pub TokenId: LUID, + pub AuthenticationId: LUID, + pub ModifiedId: LUID, + pub TokenSource: TOKEN_SOURCE, +} +pub type TOKEN_CONTROL = _TOKEN_CONTROL; +pub type PTOKEN_CONTROL = *mut _TOKEN_CONTROL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_ORIGIN { + pub OriginatingLogonSession: LUID, +} +pub type TOKEN_ORIGIN = _TOKEN_ORIGIN; +pub type PTOKEN_ORIGIN = *mut _TOKEN_ORIGIN; +pub const _MANDATORY_LEVEL_MandatoryLevelUntrusted: _MANDATORY_LEVEL = 0; +pub const _MANDATORY_LEVEL_MandatoryLevelLow: _MANDATORY_LEVEL = 1; +pub const _MANDATORY_LEVEL_MandatoryLevelMedium: _MANDATORY_LEVEL = 2; +pub const _MANDATORY_LEVEL_MandatoryLevelHigh: _MANDATORY_LEVEL = 3; +pub const _MANDATORY_LEVEL_MandatoryLevelSystem: _MANDATORY_LEVEL = 4; +pub const _MANDATORY_LEVEL_MandatoryLevelSecureProcess: _MANDATORY_LEVEL = 5; +pub const _MANDATORY_LEVEL_MandatoryLevelCount: _MANDATORY_LEVEL = 6; +pub type _MANDATORY_LEVEL = ::std::os::raw::c_int; +pub use self::_MANDATORY_LEVEL as MANDATORY_LEVEL; +pub type PMANDATORY_LEVEL = *mut _MANDATORY_LEVEL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_APPCONTAINER_INFORMATION { + pub TokenAppContainer: PSID, +} +pub type TOKEN_APPCONTAINER_INFORMATION = _TOKEN_APPCONTAINER_INFORMATION; +pub type PTOKEN_APPCONTAINER_INFORMATION = *mut _TOKEN_APPCONTAINER_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_SID_INFORMATION { + pub Sid: PSID, +} +pub type TOKEN_SID_INFORMATION = _TOKEN_SID_INFORMATION; +pub type PTOKEN_SID_INFORMATION = *mut _TOKEN_SID_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TOKEN_BNO_ISOLATION_INFORMATION { + pub IsolationPrefix: PWSTR, + pub IsolationEnabled: BOOLEAN, +} +pub type TOKEN_BNO_ISOLATION_INFORMATION = _TOKEN_BNO_ISOLATION_INFORMATION; +pub type PTOKEN_BNO_ISOLATION_INFORMATION = *mut _TOKEN_BNO_ISOLATION_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE { + pub Version: DWORD64, + pub Name: PWSTR, +} +pub type CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE = _CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE; +pub type PCLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE = *mut _CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE { + pub pValue: PVOID, + pub ValueLength: DWORD, +} +pub type CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE = _CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE; +pub type PCLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE = + *mut _CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CLAIM_SECURITY_ATTRIBUTE_V1 { + pub Name: PWSTR, + pub ValueType: WORD, + pub Reserved: WORD, + pub Flags: DWORD, + pub ValueCount: DWORD, + pub Values: _CLAIM_SECURITY_ATTRIBUTE_V1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CLAIM_SECURITY_ATTRIBUTE_V1__bindgen_ty_1 { + pub pInt64: PLONG64, + pub pUint64: PDWORD64, + pub ppString: *mut PWSTR, + pub pFqbn: PCLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE, + pub pOctetString: PCLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE, +} +pub type CLAIM_SECURITY_ATTRIBUTE_V1 = _CLAIM_SECURITY_ATTRIBUTE_V1; +pub type PCLAIM_SECURITY_ATTRIBUTE_V1 = *mut _CLAIM_SECURITY_ATTRIBUTE_V1; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 { + pub Name: DWORD, + pub ValueType: WORD, + pub Reserved: WORD, + pub Flags: DWORD, + pub ValueCount: DWORD, + pub Values: _CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1__bindgen_ty_1 { + pub pInt64: [DWORD; 1usize], + pub pUint64: [DWORD; 1usize], + pub ppString: [DWORD; 1usize], + pub pFqbn: [DWORD; 1usize], + pub pOctetString: [DWORD; 1usize], +} +pub type CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 = _CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1; +pub type PCLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 = *mut _CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CLAIM_SECURITY_ATTRIBUTES_INFORMATION { + pub Version: WORD, + pub Reserved: WORD, + pub AttributeCount: DWORD, + pub Attribute: _CLAIM_SECURITY_ATTRIBUTES_INFORMATION__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CLAIM_SECURITY_ATTRIBUTES_INFORMATION__bindgen_ty_1 { + pub pAttributeV1: PCLAIM_SECURITY_ATTRIBUTE_V1, +} +pub type CLAIM_SECURITY_ATTRIBUTES_INFORMATION = _CLAIM_SECURITY_ATTRIBUTES_INFORMATION; +pub type PCLAIM_SECURITY_ATTRIBUTES_INFORMATION = *mut _CLAIM_SECURITY_ATTRIBUTES_INFORMATION; +pub type SECURITY_CONTEXT_TRACKING_MODE = BOOLEAN; +pub type PSECURITY_CONTEXT_TRACKING_MODE = *mut BOOLEAN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SECURITY_QUALITY_OF_SERVICE { + pub Length: DWORD, + pub ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, + pub ContextTrackingMode: SECURITY_CONTEXT_TRACKING_MODE, + pub EffectiveOnly: BOOLEAN, +} +pub type SECURITY_QUALITY_OF_SERVICE = _SECURITY_QUALITY_OF_SERVICE; +pub type PSECURITY_QUALITY_OF_SERVICE = *mut _SECURITY_QUALITY_OF_SERVICE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SE_IMPERSONATION_STATE { + pub Token: PACCESS_TOKEN, + pub CopyOnOpen: BOOLEAN, + pub EffectiveOnly: BOOLEAN, + pub Level: SECURITY_IMPERSONATION_LEVEL, +} +pub type SE_IMPERSONATION_STATE = _SE_IMPERSONATION_STATE; +pub type PSE_IMPERSONATION_STATE = *mut _SE_IMPERSONATION_STATE; +pub type SECURITY_INFORMATION = DWORD; +pub type PSECURITY_INFORMATION = *mut DWORD; +pub type SE_SIGNING_LEVEL = BYTE; +pub type PSE_SIGNING_LEVEL = *mut BYTE; +pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignatureNone: _SE_IMAGE_SIGNATURE_TYPE = 0; +pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignatureEmbedded: _SE_IMAGE_SIGNATURE_TYPE = 1; +pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignatureCache: _SE_IMAGE_SIGNATURE_TYPE = 2; +pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignatureCatalogCached: _SE_IMAGE_SIGNATURE_TYPE = 3; +pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignatureCatalogNotCached: _SE_IMAGE_SIGNATURE_TYPE = 4; +pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignatureCatalogHint: _SE_IMAGE_SIGNATURE_TYPE = 5; +pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignaturePackageCatalog: _SE_IMAGE_SIGNATURE_TYPE = 6; +pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignaturePplMitigated: _SE_IMAGE_SIGNATURE_TYPE = 7; +pub type _SE_IMAGE_SIGNATURE_TYPE = ::std::os::raw::c_int; +pub use self::_SE_IMAGE_SIGNATURE_TYPE as SE_IMAGE_SIGNATURE_TYPE; +pub type PSE_IMAGE_SIGNATURE_TYPE = *mut _SE_IMAGE_SIGNATURE_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SECURITY_CAPABILITIES { + pub AppContainerSid: PSID, + pub Capabilities: PSID_AND_ATTRIBUTES, + pub CapabilityCount: DWORD, + pub Reserved: DWORD, +} +pub type SECURITY_CAPABILITIES = _SECURITY_CAPABILITIES; +pub type PSECURITY_CAPABILITIES = *mut _SECURITY_CAPABILITIES; +pub type LPSECURITY_CAPABILITIES = *mut _SECURITY_CAPABILITIES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOB_SET_ARRAY { + pub JobHandle: HANDLE, + pub MemberLevel: DWORD, + pub Flags: DWORD, +} +pub type JOB_SET_ARRAY = _JOB_SET_ARRAY; +pub type PJOB_SET_ARRAY = *mut _JOB_SET_ARRAY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EXCEPTION_REGISTRATION_RECORD { + pub Next: *mut _EXCEPTION_REGISTRATION_RECORD, + pub Handler: PEXCEPTION_ROUTINE, +} +pub type EXCEPTION_REGISTRATION_RECORD = _EXCEPTION_REGISTRATION_RECORD; +pub type PEXCEPTION_REGISTRATION_RECORD = *mut EXCEPTION_REGISTRATION_RECORD; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _NT_TIB { + pub ExceptionList: *mut _EXCEPTION_REGISTRATION_RECORD, + pub StackBase: PVOID, + pub StackLimit: PVOID, + pub SubSystemTib: PVOID, + pub __bindgen_anon_1: _NT_TIB__bindgen_ty_1, + pub ArbitraryUserPointer: PVOID, + pub Self_: *mut _NT_TIB, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _NT_TIB__bindgen_ty_1 { + pub FiberData: PVOID, + pub Version: DWORD, +} +pub type NT_TIB = _NT_TIB; +pub type PNT_TIB = *mut NT_TIB; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _NT_TIB32 { + pub ExceptionList: DWORD, + pub StackBase: DWORD, + pub StackLimit: DWORD, + pub SubSystemTib: DWORD, + pub __bindgen_anon_1: _NT_TIB32__bindgen_ty_1, + pub ArbitraryUserPointer: DWORD, + pub Self_: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _NT_TIB32__bindgen_ty_1 { + pub FiberData: DWORD, + pub Version: DWORD, +} +pub type NT_TIB32 = _NT_TIB32; +pub type PNT_TIB32 = *mut _NT_TIB32; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _NT_TIB64 { + pub ExceptionList: DWORD64, + pub StackBase: DWORD64, + pub StackLimit: DWORD64, + pub SubSystemTib: DWORD64, + pub __bindgen_anon_1: _NT_TIB64__bindgen_ty_1, + pub ArbitraryUserPointer: DWORD64, + pub Self_: DWORD64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _NT_TIB64__bindgen_ty_1 { + pub FiberData: DWORD64, + pub Version: DWORD, +} +pub type NT_TIB64 = _NT_TIB64; +pub type PNT_TIB64 = *mut _NT_TIB64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _UMS_CREATE_THREAD_ATTRIBUTES { + pub UmsVersion: DWORD, + pub UmsContext: PVOID, + pub UmsCompletionList: PVOID, +} +pub type UMS_CREATE_THREAD_ATTRIBUTES = _UMS_CREATE_THREAD_ATTRIBUTES; +pub type PUMS_CREATE_THREAD_ATTRIBUTES = *mut _UMS_CREATE_THREAD_ATTRIBUTES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _COMPONENT_FILTER { + pub ComponentFlags: DWORD, +} +pub type COMPONENT_FILTER = _COMPONENT_FILTER; +pub type PCOMPONENT_FILTER = *mut _COMPONENT_FILTER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_DYNAMIC_EH_CONTINUATION_TARGET { + pub TargetAddress: ULONG_PTR, + pub Flags: ULONG_PTR, +} +pub type PROCESS_DYNAMIC_EH_CONTINUATION_TARGET = _PROCESS_DYNAMIC_EH_CONTINUATION_TARGET; +pub type PPROCESS_DYNAMIC_EH_CONTINUATION_TARGET = *mut _PROCESS_DYNAMIC_EH_CONTINUATION_TARGET; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION { + pub NumberOfTargets: WORD, + pub Reserved: WORD, + pub Reserved2: DWORD, + pub Targets: PPROCESS_DYNAMIC_EH_CONTINUATION_TARGET, +} +pub type PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION = + _PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION; +pub type PPROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION = + *mut _PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE { + pub BaseAddress: ULONG_PTR, + pub Size: SIZE_T, + pub Flags: DWORD, +} +pub type PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE = _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE; +pub type PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE = *mut _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION { + pub NumberOfRanges: WORD, + pub Reserved: WORD, + pub Reserved2: DWORD, + pub Ranges: PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE, +} +pub type PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION = + _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION; +pub type PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION = + *mut _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _QUOTA_LIMITS { + pub PagedPoolLimit: SIZE_T, + pub NonPagedPoolLimit: SIZE_T, + pub MinimumWorkingSetSize: SIZE_T, + pub MaximumWorkingSetSize: SIZE_T, + pub PagefileLimit: SIZE_T, + pub TimeLimit: LARGE_INTEGER, +} +pub type QUOTA_LIMITS = _QUOTA_LIMITS; +pub type PQUOTA_LIMITS = *mut _QUOTA_LIMITS; +#[repr(C)] +#[derive(Copy, Clone)] +pub union _RATE_QUOTA_LIMIT { + pub RateData: DWORD, + pub __bindgen_anon_1: _RATE_QUOTA_LIMIT__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _RATE_QUOTA_LIMIT__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _RATE_QUOTA_LIMIT__bindgen_ty_1 { + #[inline] + pub fn RatePercent(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 7u8) as u32) } + } + #[inline] + pub fn set_RatePercent(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 7u8, val as u64) + } + } + #[inline] + pub fn Reserved0(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 25u8) as u32) } + } + #[inline] + pub fn set_Reserved0(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(7usize, 25u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + RatePercent: DWORD, + Reserved0: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 7u8, { + let RatePercent: u32 = unsafe { ::std::mem::transmute(RatePercent) }; + RatePercent as u64 + }); + __bindgen_bitfield_unit.set(7usize, 25u8, { + let Reserved0: u32 = unsafe { ::std::mem::transmute(Reserved0) }; + Reserved0 as u64 + }); + __bindgen_bitfield_unit + } +} +pub type RATE_QUOTA_LIMIT = _RATE_QUOTA_LIMIT; +pub type PRATE_QUOTA_LIMIT = *mut _RATE_QUOTA_LIMIT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _QUOTA_LIMITS_EX { + pub PagedPoolLimit: SIZE_T, + pub NonPagedPoolLimit: SIZE_T, + pub MinimumWorkingSetSize: SIZE_T, + pub MaximumWorkingSetSize: SIZE_T, + pub PagefileLimit: SIZE_T, + pub TimeLimit: LARGE_INTEGER, + pub WorkingSetLimit: SIZE_T, + pub Reserved2: SIZE_T, + pub Reserved3: SIZE_T, + pub Reserved4: SIZE_T, + pub Flags: DWORD, + pub CpuRateLimit: RATE_QUOTA_LIMIT, +} +pub type QUOTA_LIMITS_EX = _QUOTA_LIMITS_EX; +pub type PQUOTA_LIMITS_EX = *mut _QUOTA_LIMITS_EX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IO_COUNTERS { + pub ReadOperationCount: ULONGLONG, + pub WriteOperationCount: ULONGLONG, + pub OtherOperationCount: ULONGLONG, + pub ReadTransferCount: ULONGLONG, + pub WriteTransferCount: ULONGLONG, + pub OtherTransferCount: ULONGLONG, +} +pub type IO_COUNTERS = _IO_COUNTERS; +pub type PIO_COUNTERS = *mut IO_COUNTERS; +pub const _HARDWARE_COUNTER_TYPE_PMCCounter: _HARDWARE_COUNTER_TYPE = 0; +pub const _HARDWARE_COUNTER_TYPE_MaxHardwareCounterType: _HARDWARE_COUNTER_TYPE = 1; +pub type _HARDWARE_COUNTER_TYPE = ::std::os::raw::c_int; +pub use self::_HARDWARE_COUNTER_TYPE as HARDWARE_COUNTER_TYPE; +pub type PHARDWARE_COUNTER_TYPE = *mut _HARDWARE_COUNTER_TYPE; +pub const _PROCESS_MITIGATION_POLICY_ProcessDEPPolicy: _PROCESS_MITIGATION_POLICY = 0; +pub const _PROCESS_MITIGATION_POLICY_ProcessASLRPolicy: _PROCESS_MITIGATION_POLICY = 1; +pub const _PROCESS_MITIGATION_POLICY_ProcessDynamicCodePolicy: _PROCESS_MITIGATION_POLICY = 2; +pub const _PROCESS_MITIGATION_POLICY_ProcessStrictHandleCheckPolicy: _PROCESS_MITIGATION_POLICY = 3; +pub const _PROCESS_MITIGATION_POLICY_ProcessSystemCallDisablePolicy: _PROCESS_MITIGATION_POLICY = 4; +pub const _PROCESS_MITIGATION_POLICY_ProcessMitigationOptionsMask: _PROCESS_MITIGATION_POLICY = 5; +pub const _PROCESS_MITIGATION_POLICY_ProcessExtensionPointDisablePolicy: + _PROCESS_MITIGATION_POLICY = 6; +pub const _PROCESS_MITIGATION_POLICY_ProcessControlFlowGuardPolicy: _PROCESS_MITIGATION_POLICY = 7; +pub const _PROCESS_MITIGATION_POLICY_ProcessSignaturePolicy: _PROCESS_MITIGATION_POLICY = 8; +pub const _PROCESS_MITIGATION_POLICY_ProcessFontDisablePolicy: _PROCESS_MITIGATION_POLICY = 9; +pub const _PROCESS_MITIGATION_POLICY_ProcessImageLoadPolicy: _PROCESS_MITIGATION_POLICY = 10; +pub const _PROCESS_MITIGATION_POLICY_ProcessSystemCallFilterPolicy: _PROCESS_MITIGATION_POLICY = 11; +pub const _PROCESS_MITIGATION_POLICY_ProcessPayloadRestrictionPolicy: _PROCESS_MITIGATION_POLICY = + 12; +pub const _PROCESS_MITIGATION_POLICY_ProcessChildProcessPolicy: _PROCESS_MITIGATION_POLICY = 13; +pub const _PROCESS_MITIGATION_POLICY_ProcessSideChannelIsolationPolicy: _PROCESS_MITIGATION_POLICY = + 14; +pub const _PROCESS_MITIGATION_POLICY_ProcessUserShadowStackPolicy: _PROCESS_MITIGATION_POLICY = 15; +pub const _PROCESS_MITIGATION_POLICY_ProcessRedirectionTrustPolicy: _PROCESS_MITIGATION_POLICY = 16; +pub const _PROCESS_MITIGATION_POLICY_ProcessUserPointerAuthPolicy: _PROCESS_MITIGATION_POLICY = 17; +pub const _PROCESS_MITIGATION_POLICY_ProcessSEHOPPolicy: _PROCESS_MITIGATION_POLICY = 18; +pub const _PROCESS_MITIGATION_POLICY_ProcessActivationContextTrustPolicy: + _PROCESS_MITIGATION_POLICY = 19; +pub const _PROCESS_MITIGATION_POLICY_MaxProcessMitigationPolicy: _PROCESS_MITIGATION_POLICY = 20; +pub type _PROCESS_MITIGATION_POLICY = ::std::os::raw::c_int; +pub use self::_PROCESS_MITIGATION_POLICY as PROCESS_MITIGATION_POLICY; +pub type PPROCESS_MITIGATION_POLICY = *mut _PROCESS_MITIGATION_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_ASLR_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_ASLR_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_ASLR_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: _PROCESS_MITIGATION_ASLR_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_ASLR_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_ASLR_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn EnableBottomUpRandomization(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableBottomUpRandomization(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn EnableForceRelocateImages(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableForceRelocateImages(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn EnableHighEntropy(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableHighEntropy(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn DisallowStrippedImages(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_DisallowStrippedImages(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 28u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + EnableBottomUpRandomization: DWORD, + EnableForceRelocateImages: DWORD, + EnableHighEntropy: DWORD, + DisallowStrippedImages: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let EnableBottomUpRandomization: u32 = + unsafe { ::std::mem::transmute(EnableBottomUpRandomization) }; + EnableBottomUpRandomization as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let EnableForceRelocateImages: u32 = + unsafe { ::std::mem::transmute(EnableForceRelocateImages) }; + EnableForceRelocateImages as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let EnableHighEntropy: u32 = unsafe { ::std::mem::transmute(EnableHighEntropy) }; + EnableHighEntropy as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let DisallowStrippedImages: u32 = + unsafe { ::std::mem::transmute(DisallowStrippedImages) }; + DisallowStrippedImages as u64 + }); + __bindgen_bitfield_unit.set(4usize, 28u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_ASLR_POLICY = _PROCESS_MITIGATION_ASLR_POLICY; +pub type PPROCESS_MITIGATION_ASLR_POLICY = *mut _PROCESS_MITIGATION_ASLR_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_DEP_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_DEP_POLICY__bindgen_ty_1, + pub Permanent: BOOLEAN, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_DEP_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: _PROCESS_MITIGATION_DEP_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_DEP_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_DEP_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn Enable(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_Enable(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn DisableAtlThunkEmulation(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_DisableAtlThunkEmulation(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Enable: DWORD, + DisableAtlThunkEmulation: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let Enable: u32 = unsafe { ::std::mem::transmute(Enable) }; + Enable as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let DisableAtlThunkEmulation: u32 = + unsafe { ::std::mem::transmute(DisableAtlThunkEmulation) }; + DisableAtlThunkEmulation as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_DEP_POLICY = _PROCESS_MITIGATION_DEP_POLICY; +pub type PPROCESS_MITIGATION_DEP_POLICY = *mut _PROCESS_MITIGATION_DEP_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_SEHOP_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_SEHOP_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_SEHOP_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: _PROCESS_MITIGATION_SEHOP_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_SEHOP_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_SEHOP_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn EnableSehop(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableSehop(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 31u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + EnableSehop: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let EnableSehop: u32 = unsafe { ::std::mem::transmute(EnableSehop) }; + EnableSehop as u64 + }); + __bindgen_bitfield_unit.set(1usize, 31u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_SEHOP_POLICY = _PROCESS_MITIGATION_SEHOP_POLICY; +pub type PPROCESS_MITIGATION_SEHOP_POLICY = *mut _PROCESS_MITIGATION_SEHOP_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: + _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn RaiseExceptionOnInvalidHandleReference(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_RaiseExceptionOnInvalidHandleReference(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn HandleExceptionsPermanentlyEnabled(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_HandleExceptionsPermanentlyEnabled(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + RaiseExceptionOnInvalidHandleReference: DWORD, + HandleExceptionsPermanentlyEnabled: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let RaiseExceptionOnInvalidHandleReference: u32 = + unsafe { ::std::mem::transmute(RaiseExceptionOnInvalidHandleReference) }; + RaiseExceptionOnInvalidHandleReference as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let HandleExceptionsPermanentlyEnabled: u32 = + unsafe { ::std::mem::transmute(HandleExceptionsPermanentlyEnabled) }; + HandleExceptionsPermanentlyEnabled as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY = + _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY; +pub type PPROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY = + *mut _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: + _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn DisallowWin32kSystemCalls(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_DisallowWin32kSystemCalls(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditDisallowWin32kSystemCalls(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditDisallowWin32kSystemCalls(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + DisallowWin32kSystemCalls: DWORD, + AuditDisallowWin32kSystemCalls: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let DisallowWin32kSystemCalls: u32 = + unsafe { ::std::mem::transmute(DisallowWin32kSystemCalls) }; + DisallowWin32kSystemCalls as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let AuditDisallowWin32kSystemCalls: u32 = + unsafe { ::std::mem::transmute(AuditDisallowWin32kSystemCalls) }; + AuditDisallowWin32kSystemCalls as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY = + _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY; +pub type PPROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY = + *mut _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: + _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn DisableExtensionPoints(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_DisableExtensionPoints(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 31u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + DisableExtensionPoints: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let DisableExtensionPoints: u32 = + unsafe { ::std::mem::transmute(DisableExtensionPoints) }; + DisableExtensionPoints as u64 + }); + __bindgen_bitfield_unit.set(1usize, 31u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY = + _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY; +pub type PPROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY = + *mut _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn ProhibitDynamicCode(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_ProhibitDynamicCode(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn AllowThreadOptOut(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_AllowThreadOptOut(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn AllowRemoteDowngrade(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_AllowRemoteDowngrade(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditProhibitDynamicCode(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditProhibitDynamicCode(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 28u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + ProhibitDynamicCode: DWORD, + AllowThreadOptOut: DWORD, + AllowRemoteDowngrade: DWORD, + AuditProhibitDynamicCode: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let ProhibitDynamicCode: u32 = unsafe { ::std::mem::transmute(ProhibitDynamicCode) }; + ProhibitDynamicCode as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let AllowThreadOptOut: u32 = unsafe { ::std::mem::transmute(AllowThreadOptOut) }; + AllowThreadOptOut as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let AllowRemoteDowngrade: u32 = unsafe { ::std::mem::transmute(AllowRemoteDowngrade) }; + AllowRemoteDowngrade as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let AuditProhibitDynamicCode: u32 = + unsafe { ::std::mem::transmute(AuditProhibitDynamicCode) }; + AuditProhibitDynamicCode as u64 + }); + __bindgen_bitfield_unit.set(4usize, 28u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_DYNAMIC_CODE_POLICY = _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY; +pub type PPROCESS_MITIGATION_DYNAMIC_CODE_POLICY = *mut _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn EnableControlFlowGuard(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableControlFlowGuard(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn EnableExportSuppression(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableExportSuppression(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn StrictMode(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_StrictMode(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn EnableXfg(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableXfg(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn EnableXfgAuditMode(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableXfgAuditMode(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 27u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + EnableControlFlowGuard: DWORD, + EnableExportSuppression: DWORD, + StrictMode: DWORD, + EnableXfg: DWORD, + EnableXfgAuditMode: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let EnableControlFlowGuard: u32 = + unsafe { ::std::mem::transmute(EnableControlFlowGuard) }; + EnableControlFlowGuard as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let EnableExportSuppression: u32 = + unsafe { ::std::mem::transmute(EnableExportSuppression) }; + EnableExportSuppression as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let StrictMode: u32 = unsafe { ::std::mem::transmute(StrictMode) }; + StrictMode as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let EnableXfg: u32 = unsafe { ::std::mem::transmute(EnableXfg) }; + EnableXfg as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let EnableXfgAuditMode: u32 = unsafe { ::std::mem::transmute(EnableXfgAuditMode) }; + EnableXfgAuditMode as u64 + }); + __bindgen_bitfield_unit.set(5usize, 27u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY = + _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY; +pub type PPROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY = + *mut _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn MicrosoftSignedOnly(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_MicrosoftSignedOnly(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn StoreSignedOnly(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_StoreSignedOnly(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn MitigationOptIn(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_MitigationOptIn(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditMicrosoftSignedOnly(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditMicrosoftSignedOnly(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditStoreSignedOnly(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditStoreSignedOnly(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 27u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + MicrosoftSignedOnly: DWORD, + StoreSignedOnly: DWORD, + MitigationOptIn: DWORD, + AuditMicrosoftSignedOnly: DWORD, + AuditStoreSignedOnly: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let MicrosoftSignedOnly: u32 = unsafe { ::std::mem::transmute(MicrosoftSignedOnly) }; + MicrosoftSignedOnly as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let StoreSignedOnly: u32 = unsafe { ::std::mem::transmute(StoreSignedOnly) }; + StoreSignedOnly as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let MitigationOptIn: u32 = unsafe { ::std::mem::transmute(MitigationOptIn) }; + MitigationOptIn as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let AuditMicrosoftSignedOnly: u32 = + unsafe { ::std::mem::transmute(AuditMicrosoftSignedOnly) }; + AuditMicrosoftSignedOnly as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let AuditStoreSignedOnly: u32 = unsafe { ::std::mem::transmute(AuditStoreSignedOnly) }; + AuditStoreSignedOnly as u64 + }); + __bindgen_bitfield_unit.set(5usize, 27u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY = _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY; +pub type PPROCESS_MITIGATION_BINARY_SIGNATURE_POLICY = + *mut _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_FONT_DISABLE_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_FONT_DISABLE_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_FONT_DISABLE_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: _PROCESS_MITIGATION_FONT_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_FONT_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_FONT_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn DisableNonSystemFonts(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_DisableNonSystemFonts(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditNonSystemFontLoading(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditNonSystemFontLoading(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + DisableNonSystemFonts: DWORD, + AuditNonSystemFontLoading: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let DisableNonSystemFonts: u32 = + unsafe { ::std::mem::transmute(DisableNonSystemFonts) }; + DisableNonSystemFonts as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let AuditNonSystemFontLoading: u32 = + unsafe { ::std::mem::transmute(AuditNonSystemFontLoading) }; + AuditNonSystemFontLoading as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_FONT_DISABLE_POLICY = _PROCESS_MITIGATION_FONT_DISABLE_POLICY; +pub type PPROCESS_MITIGATION_FONT_DISABLE_POLICY = *mut _PROCESS_MITIGATION_FONT_DISABLE_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_IMAGE_LOAD_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_IMAGE_LOAD_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_IMAGE_LOAD_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: _PROCESS_MITIGATION_IMAGE_LOAD_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_IMAGE_LOAD_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_IMAGE_LOAD_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn NoRemoteImages(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_NoRemoteImages(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn NoLowMandatoryLabelImages(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_NoLowMandatoryLabelImages(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn PreferSystem32Images(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_PreferSystem32Images(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditNoRemoteImages(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditNoRemoteImages(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditNoLowMandatoryLabelImages(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditNoLowMandatoryLabelImages(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 27u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + NoRemoteImages: DWORD, + NoLowMandatoryLabelImages: DWORD, + PreferSystem32Images: DWORD, + AuditNoRemoteImages: DWORD, + AuditNoLowMandatoryLabelImages: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let NoRemoteImages: u32 = unsafe { ::std::mem::transmute(NoRemoteImages) }; + NoRemoteImages as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let NoLowMandatoryLabelImages: u32 = + unsafe { ::std::mem::transmute(NoLowMandatoryLabelImages) }; + NoLowMandatoryLabelImages as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let PreferSystem32Images: u32 = unsafe { ::std::mem::transmute(PreferSystem32Images) }; + PreferSystem32Images as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let AuditNoRemoteImages: u32 = unsafe { ::std::mem::transmute(AuditNoRemoteImages) }; + AuditNoRemoteImages as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let AuditNoLowMandatoryLabelImages: u32 = + unsafe { ::std::mem::transmute(AuditNoLowMandatoryLabelImages) }; + AuditNoLowMandatoryLabelImages as u64 + }); + __bindgen_bitfield_unit.set(5usize, 27u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_IMAGE_LOAD_POLICY = _PROCESS_MITIGATION_IMAGE_LOAD_POLICY; +pub type PPROCESS_MITIGATION_IMAGE_LOAD_POLICY = *mut _PROCESS_MITIGATION_IMAGE_LOAD_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn FilterId(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) } + } + #[inline] + pub fn set_FilterId(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 4u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 28u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + FilterId: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 4u8, { + let FilterId: u32 = unsafe { ::std::mem::transmute(FilterId) }; + FilterId as u64 + }); + __bindgen_bitfield_unit.set(4usize, 28u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY = + _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY; +pub type PPROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY = + *mut _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: + _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn EnableExportAddressFilter(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableExportAddressFilter(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditExportAddressFilter(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditExportAddressFilter(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn EnableExportAddressFilterPlus(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableExportAddressFilterPlus(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditExportAddressFilterPlus(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditExportAddressFilterPlus(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn EnableImportAddressFilter(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableImportAddressFilter(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditImportAddressFilter(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditImportAddressFilter(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 1u8, val as u64) + } + } + #[inline] + pub fn EnableRopStackPivot(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableRopStackPivot(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(6usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditRopStackPivot(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditRopStackPivot(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(7usize, 1u8, val as u64) + } + } + #[inline] + pub fn EnableRopCallerCheck(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableRopCallerCheck(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditRopCallerCheck(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditRopCallerCheck(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(9usize, 1u8, val as u64) + } + } + #[inline] + pub fn EnableRopSimExec(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableRopSimExec(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(10usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditRopSimExec(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditRopSimExec(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(11usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(12usize, 20u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + EnableExportAddressFilter: DWORD, + AuditExportAddressFilter: DWORD, + EnableExportAddressFilterPlus: DWORD, + AuditExportAddressFilterPlus: DWORD, + EnableImportAddressFilter: DWORD, + AuditImportAddressFilter: DWORD, + EnableRopStackPivot: DWORD, + AuditRopStackPivot: DWORD, + EnableRopCallerCheck: DWORD, + AuditRopCallerCheck: DWORD, + EnableRopSimExec: DWORD, + AuditRopSimExec: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let EnableExportAddressFilter: u32 = + unsafe { ::std::mem::transmute(EnableExportAddressFilter) }; + EnableExportAddressFilter as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let AuditExportAddressFilter: u32 = + unsafe { ::std::mem::transmute(AuditExportAddressFilter) }; + AuditExportAddressFilter as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let EnableExportAddressFilterPlus: u32 = + unsafe { ::std::mem::transmute(EnableExportAddressFilterPlus) }; + EnableExportAddressFilterPlus as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let AuditExportAddressFilterPlus: u32 = + unsafe { ::std::mem::transmute(AuditExportAddressFilterPlus) }; + AuditExportAddressFilterPlus as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let EnableImportAddressFilter: u32 = + unsafe { ::std::mem::transmute(EnableImportAddressFilter) }; + EnableImportAddressFilter as u64 + }); + __bindgen_bitfield_unit.set(5usize, 1u8, { + let AuditImportAddressFilter: u32 = + unsafe { ::std::mem::transmute(AuditImportAddressFilter) }; + AuditImportAddressFilter as u64 + }); + __bindgen_bitfield_unit.set(6usize, 1u8, { + let EnableRopStackPivot: u32 = unsafe { ::std::mem::transmute(EnableRopStackPivot) }; + EnableRopStackPivot as u64 + }); + __bindgen_bitfield_unit.set(7usize, 1u8, { + let AuditRopStackPivot: u32 = unsafe { ::std::mem::transmute(AuditRopStackPivot) }; + AuditRopStackPivot as u64 + }); + __bindgen_bitfield_unit.set(8usize, 1u8, { + let EnableRopCallerCheck: u32 = unsafe { ::std::mem::transmute(EnableRopCallerCheck) }; + EnableRopCallerCheck as u64 + }); + __bindgen_bitfield_unit.set(9usize, 1u8, { + let AuditRopCallerCheck: u32 = unsafe { ::std::mem::transmute(AuditRopCallerCheck) }; + AuditRopCallerCheck as u64 + }); + __bindgen_bitfield_unit.set(10usize, 1u8, { + let EnableRopSimExec: u32 = unsafe { ::std::mem::transmute(EnableRopSimExec) }; + EnableRopSimExec as u64 + }); + __bindgen_bitfield_unit.set(11usize, 1u8, { + let AuditRopSimExec: u32 = unsafe { ::std::mem::transmute(AuditRopSimExec) }; + AuditRopSimExec as u64 + }); + __bindgen_bitfield_unit.set(12usize, 20u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY = + _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY; +pub type PPROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY = + *mut _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_CHILD_PROCESS_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_CHILD_PROCESS_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_CHILD_PROCESS_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: _PROCESS_MITIGATION_CHILD_PROCESS_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_CHILD_PROCESS_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_CHILD_PROCESS_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn NoChildProcessCreation(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_NoChildProcessCreation(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditNoChildProcessCreation(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditNoChildProcessCreation(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn AllowSecureProcessCreation(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_AllowSecureProcessCreation(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 29u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + NoChildProcessCreation: DWORD, + AuditNoChildProcessCreation: DWORD, + AllowSecureProcessCreation: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let NoChildProcessCreation: u32 = + unsafe { ::std::mem::transmute(NoChildProcessCreation) }; + NoChildProcessCreation as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let AuditNoChildProcessCreation: u32 = + unsafe { ::std::mem::transmute(AuditNoChildProcessCreation) }; + AuditNoChildProcessCreation as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let AllowSecureProcessCreation: u32 = + unsafe { ::std::mem::transmute(AllowSecureProcessCreation) }; + AllowSecureProcessCreation as u64 + }); + __bindgen_bitfield_unit.set(3usize, 29u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_CHILD_PROCESS_POLICY = _PROCESS_MITIGATION_CHILD_PROCESS_POLICY; +pub type PPROCESS_MITIGATION_CHILD_PROCESS_POLICY = *mut _PROCESS_MITIGATION_CHILD_PROCESS_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: + _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn SmtBranchTargetIsolation(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_SmtBranchTargetIsolation(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn IsolateSecurityDomain(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_IsolateSecurityDomain(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn DisablePageCombine(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_DisablePageCombine(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn SpeculativeStoreBypassDisable(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_SpeculativeStoreBypassDisable(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn RestrictCoreSharing(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } + } + #[inline] + pub fn set_RestrictCoreSharing(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 27u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SmtBranchTargetIsolation: DWORD, + IsolateSecurityDomain: DWORD, + DisablePageCombine: DWORD, + SpeculativeStoreBypassDisable: DWORD, + RestrictCoreSharing: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let SmtBranchTargetIsolation: u32 = + unsafe { ::std::mem::transmute(SmtBranchTargetIsolation) }; + SmtBranchTargetIsolation as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let IsolateSecurityDomain: u32 = + unsafe { ::std::mem::transmute(IsolateSecurityDomain) }; + IsolateSecurityDomain as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let DisablePageCombine: u32 = unsafe { ::std::mem::transmute(DisablePageCombine) }; + DisablePageCombine as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let SpeculativeStoreBypassDisable: u32 = + unsafe { ::std::mem::transmute(SpeculativeStoreBypassDisable) }; + SpeculativeStoreBypassDisable as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let RestrictCoreSharing: u32 = unsafe { ::std::mem::transmute(RestrictCoreSharing) }; + RestrictCoreSharing as u64 + }); + __bindgen_bitfield_unit.set(5usize, 27u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY = + _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY; +pub type PPROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY = + *mut _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn EnableUserShadowStack(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableUserShadowStack(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditUserShadowStack(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditUserShadowStack(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn SetContextIpValidation(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_SetContextIpValidation(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditSetContextIpValidation(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditSetContextIpValidation(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn EnableUserShadowStackStrictMode(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnableUserShadowStackStrictMode(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn BlockNonCetBinaries(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } + } + #[inline] + pub fn set_BlockNonCetBinaries(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 1u8, val as u64) + } + } + #[inline] + pub fn BlockNonCetBinariesNonEhcont(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } + } + #[inline] + pub fn set_BlockNonCetBinariesNonEhcont(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(6usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditBlockNonCetBinaries(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditBlockNonCetBinaries(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(7usize, 1u8, val as u64) + } + } + #[inline] + pub fn CetDynamicApisOutOfProcOnly(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) } + } + #[inline] + pub fn set_CetDynamicApisOutOfProcOnly(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 1u8, val as u64) + } + } + #[inline] + pub fn SetContextIpValidationRelaxedMode(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) } + } + #[inline] + pub fn set_SetContextIpValidationRelaxedMode(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(9usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 22u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(10usize, 22u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + EnableUserShadowStack: DWORD, + AuditUserShadowStack: DWORD, + SetContextIpValidation: DWORD, + AuditSetContextIpValidation: DWORD, + EnableUserShadowStackStrictMode: DWORD, + BlockNonCetBinaries: DWORD, + BlockNonCetBinariesNonEhcont: DWORD, + AuditBlockNonCetBinaries: DWORD, + CetDynamicApisOutOfProcOnly: DWORD, + SetContextIpValidationRelaxedMode: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let EnableUserShadowStack: u32 = + unsafe { ::std::mem::transmute(EnableUserShadowStack) }; + EnableUserShadowStack as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let AuditUserShadowStack: u32 = unsafe { ::std::mem::transmute(AuditUserShadowStack) }; + AuditUserShadowStack as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let SetContextIpValidation: u32 = + unsafe { ::std::mem::transmute(SetContextIpValidation) }; + SetContextIpValidation as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let AuditSetContextIpValidation: u32 = + unsafe { ::std::mem::transmute(AuditSetContextIpValidation) }; + AuditSetContextIpValidation as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let EnableUserShadowStackStrictMode: u32 = + unsafe { ::std::mem::transmute(EnableUserShadowStackStrictMode) }; + EnableUserShadowStackStrictMode as u64 + }); + __bindgen_bitfield_unit.set(5usize, 1u8, { + let BlockNonCetBinaries: u32 = unsafe { ::std::mem::transmute(BlockNonCetBinaries) }; + BlockNonCetBinaries as u64 + }); + __bindgen_bitfield_unit.set(6usize, 1u8, { + let BlockNonCetBinariesNonEhcont: u32 = + unsafe { ::std::mem::transmute(BlockNonCetBinariesNonEhcont) }; + BlockNonCetBinariesNonEhcont as u64 + }); + __bindgen_bitfield_unit.set(7usize, 1u8, { + let AuditBlockNonCetBinaries: u32 = + unsafe { ::std::mem::transmute(AuditBlockNonCetBinaries) }; + AuditBlockNonCetBinaries as u64 + }); + __bindgen_bitfield_unit.set(8usize, 1u8, { + let CetDynamicApisOutOfProcOnly: u32 = + unsafe { ::std::mem::transmute(CetDynamicApisOutOfProcOnly) }; + CetDynamicApisOutOfProcOnly as u64 + }); + __bindgen_bitfield_unit.set(9usize, 1u8, { + let SetContextIpValidationRelaxedMode: u32 = + unsafe { ::std::mem::transmute(SetContextIpValidationRelaxedMode) }; + SetContextIpValidationRelaxedMode as u64 + }); + __bindgen_bitfield_unit.set(10usize, 22u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY = _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY; +pub type PPROCESS_MITIGATION_USER_SHADOW_STACK_POLICY = + *mut _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn EnablePointerAuthUserIp(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnablePointerAuthUserIp(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 31u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + EnablePointerAuthUserIp: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let EnablePointerAuthUserIp: u32 = + unsafe { ::std::mem::transmute(EnablePointerAuthUserIp) }; + EnablePointerAuthUserIp as u64 + }); + __bindgen_bitfield_unit.set(1usize, 31u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY = _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY; +pub type PPROCESS_MITIGATION_USER_POINTER_AUTH_POLICY = + *mut _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn EnforceRedirectionTrust(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_EnforceRedirectionTrust(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn AuditRedirectionTrust(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_AuditRedirectionTrust(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + EnforceRedirectionTrust: DWORD, + AuditRedirectionTrust: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let EnforceRedirectionTrust: u32 = + unsafe { ::std::mem::transmute(EnforceRedirectionTrust) }; + EnforceRedirectionTrust as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let AuditRedirectionTrust: u32 = + unsafe { ::std::mem::transmute(AuditRedirectionTrust) }; + AuditRedirectionTrust as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY = _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY; +pub type PPROCESS_MITIGATION_REDIRECTION_TRUST_POLICY = + *mut _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY { + pub __bindgen_anon_1: _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY__bindgen_ty_1 { + pub Flags: DWORD, + pub __bindgen_anon_1: + _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn AssemblyManifestRedirectionTrust(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_AssemblyManifestRedirectionTrust(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 31u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + AssemblyManifestRedirectionTrust: DWORD, + ReservedFlags: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let AssemblyManifestRedirectionTrust: u32 = + unsafe { ::std::mem::transmute(AssemblyManifestRedirectionTrust) }; + AssemblyManifestRedirectionTrust as u64 + }); + __bindgen_bitfield_unit.set(1usize, 31u8, { + let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY = + _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY; +pub type PPROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY = + *mut _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _JOBOBJECT_BASIC_ACCOUNTING_INFORMATION { + pub TotalUserTime: LARGE_INTEGER, + pub TotalKernelTime: LARGE_INTEGER, + pub ThisPeriodTotalUserTime: LARGE_INTEGER, + pub ThisPeriodTotalKernelTime: LARGE_INTEGER, + pub TotalPageFaultCount: DWORD, + pub TotalProcesses: DWORD, + pub ActiveProcesses: DWORD, + pub TotalTerminatedProcesses: DWORD, +} +pub type JOBOBJECT_BASIC_ACCOUNTING_INFORMATION = _JOBOBJECT_BASIC_ACCOUNTING_INFORMATION; +pub type PJOBOBJECT_BASIC_ACCOUNTING_INFORMATION = *mut _JOBOBJECT_BASIC_ACCOUNTING_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _JOBOBJECT_BASIC_LIMIT_INFORMATION { + pub PerProcessUserTimeLimit: LARGE_INTEGER, + pub PerJobUserTimeLimit: LARGE_INTEGER, + pub LimitFlags: DWORD, + pub MinimumWorkingSetSize: SIZE_T, + pub MaximumWorkingSetSize: SIZE_T, + pub ActiveProcessLimit: DWORD, + pub Affinity: ULONG_PTR, + pub PriorityClass: DWORD, + pub SchedulingClass: DWORD, +} +pub type JOBOBJECT_BASIC_LIMIT_INFORMATION = _JOBOBJECT_BASIC_LIMIT_INFORMATION; +pub type PJOBOBJECT_BASIC_LIMIT_INFORMATION = *mut _JOBOBJECT_BASIC_LIMIT_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _JOBOBJECT_EXTENDED_LIMIT_INFORMATION { + pub BasicLimitInformation: JOBOBJECT_BASIC_LIMIT_INFORMATION, + pub IoInfo: IO_COUNTERS, + pub ProcessMemoryLimit: SIZE_T, + pub JobMemoryLimit: SIZE_T, + pub PeakProcessMemoryUsed: SIZE_T, + pub PeakJobMemoryUsed: SIZE_T, +} +pub type JOBOBJECT_EXTENDED_LIMIT_INFORMATION = _JOBOBJECT_EXTENDED_LIMIT_INFORMATION; +pub type PJOBOBJECT_EXTENDED_LIMIT_INFORMATION = *mut _JOBOBJECT_EXTENDED_LIMIT_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOBOBJECT_BASIC_PROCESS_ID_LIST { + pub NumberOfAssignedProcesses: DWORD, + pub NumberOfProcessIdsInList: DWORD, + pub ProcessIdList: [ULONG_PTR; 1usize], +} +pub type JOBOBJECT_BASIC_PROCESS_ID_LIST = _JOBOBJECT_BASIC_PROCESS_ID_LIST; +pub type PJOBOBJECT_BASIC_PROCESS_ID_LIST = *mut _JOBOBJECT_BASIC_PROCESS_ID_LIST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOBOBJECT_BASIC_UI_RESTRICTIONS { + pub UIRestrictionsClass: DWORD, +} +pub type JOBOBJECT_BASIC_UI_RESTRICTIONS = _JOBOBJECT_BASIC_UI_RESTRICTIONS; +pub type PJOBOBJECT_BASIC_UI_RESTRICTIONS = *mut _JOBOBJECT_BASIC_UI_RESTRICTIONS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOBOBJECT_SECURITY_LIMIT_INFORMATION { + pub SecurityLimitFlags: DWORD, + pub JobToken: HANDLE, + pub SidsToDisable: PTOKEN_GROUPS, + pub PrivilegesToDelete: PTOKEN_PRIVILEGES, + pub RestrictedSids: PTOKEN_GROUPS, +} +pub type JOBOBJECT_SECURITY_LIMIT_INFORMATION = _JOBOBJECT_SECURITY_LIMIT_INFORMATION; +pub type PJOBOBJECT_SECURITY_LIMIT_INFORMATION = *mut _JOBOBJECT_SECURITY_LIMIT_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOBOBJECT_END_OF_JOB_TIME_INFORMATION { + pub EndOfJobTimeAction: DWORD, +} +pub type JOBOBJECT_END_OF_JOB_TIME_INFORMATION = _JOBOBJECT_END_OF_JOB_TIME_INFORMATION; +pub type PJOBOBJECT_END_OF_JOB_TIME_INFORMATION = *mut _JOBOBJECT_END_OF_JOB_TIME_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOBOBJECT_ASSOCIATE_COMPLETION_PORT { + pub CompletionKey: PVOID, + pub CompletionPort: HANDLE, +} +pub type JOBOBJECT_ASSOCIATE_COMPLETION_PORT = _JOBOBJECT_ASSOCIATE_COMPLETION_PORT; +pub type PJOBOBJECT_ASSOCIATE_COMPLETION_PORT = *mut _JOBOBJECT_ASSOCIATE_COMPLETION_PORT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION { + pub BasicInfo: JOBOBJECT_BASIC_ACCOUNTING_INFORMATION, + pub IoInfo: IO_COUNTERS, +} +pub type JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION = + _JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION; +pub type PJOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION = + *mut _JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOBOBJECT_JOBSET_INFORMATION { + pub MemberLevel: DWORD, +} +pub type JOBOBJECT_JOBSET_INFORMATION = _JOBOBJECT_JOBSET_INFORMATION; +pub type PJOBOBJECT_JOBSET_INFORMATION = *mut _JOBOBJECT_JOBSET_INFORMATION; +pub const _JOBOBJECT_RATE_CONTROL_TOLERANCE_ToleranceLow: _JOBOBJECT_RATE_CONTROL_TOLERANCE = 1; +pub const _JOBOBJECT_RATE_CONTROL_TOLERANCE_ToleranceMedium: _JOBOBJECT_RATE_CONTROL_TOLERANCE = 2; +pub const _JOBOBJECT_RATE_CONTROL_TOLERANCE_ToleranceHigh: _JOBOBJECT_RATE_CONTROL_TOLERANCE = 3; +pub type _JOBOBJECT_RATE_CONTROL_TOLERANCE = ::std::os::raw::c_int; +pub use self::_JOBOBJECT_RATE_CONTROL_TOLERANCE as JOBOBJECT_RATE_CONTROL_TOLERANCE; +pub type PJOBOBJECT_RATE_CONTROL_TOLERANCE = *mut _JOBOBJECT_RATE_CONTROL_TOLERANCE; +pub const _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL_ToleranceIntervalShort: + _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL = 1; +pub const _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL_ToleranceIntervalMedium: + _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL = 2; +pub const _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL_ToleranceIntervalLong: + _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL = 3; +pub type _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL = ::std::os::raw::c_int; +pub use self::_JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL as JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL; +pub type PJOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL = + *mut _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION { + pub IoReadBytesLimit: DWORD64, + pub IoWriteBytesLimit: DWORD64, + pub PerJobUserTimeLimit: LARGE_INTEGER, + pub JobMemoryLimit: DWORD64, + pub RateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, + pub RateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, + pub LimitFlags: DWORD, +} +pub type JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION = _JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION; +pub type PJOBOBJECT_NOTIFICATION_LIMIT_INFORMATION = *mut _JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2 { + pub IoReadBytesLimit: DWORD64, + pub IoWriteBytesLimit: DWORD64, + pub PerJobUserTimeLimit: LARGE_INTEGER, + pub __bindgen_anon_1: JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2__bindgen_ty_1, + pub __bindgen_anon_2: JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2__bindgen_ty_2, + pub __bindgen_anon_3: JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2__bindgen_ty_3, + pub LimitFlags: DWORD, + pub IoRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, + pub JobLowMemoryLimit: DWORD64, + pub IoRateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, + pub NetRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, + pub NetRateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2__bindgen_ty_1 { + pub JobHighMemoryLimit: DWORD64, + pub JobMemoryLimit: DWORD64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2__bindgen_ty_2 { + pub RateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, + pub CpuRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2__bindgen_ty_3 { + pub RateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, + pub CpuRateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _JOBOBJECT_LIMIT_VIOLATION_INFORMATION { + pub LimitFlags: DWORD, + pub ViolationLimitFlags: DWORD, + pub IoReadBytes: DWORD64, + pub IoReadBytesLimit: DWORD64, + pub IoWriteBytes: DWORD64, + pub IoWriteBytesLimit: DWORD64, + pub PerJobUserTime: LARGE_INTEGER, + pub PerJobUserTimeLimit: LARGE_INTEGER, + pub JobMemory: DWORD64, + pub JobMemoryLimit: DWORD64, + pub RateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, + pub RateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, +} +pub type JOBOBJECT_LIMIT_VIOLATION_INFORMATION = _JOBOBJECT_LIMIT_VIOLATION_INFORMATION; +pub type PJOBOBJECT_LIMIT_VIOLATION_INFORMATION = *mut _JOBOBJECT_LIMIT_VIOLATION_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2 { + pub LimitFlags: DWORD, + pub ViolationLimitFlags: DWORD, + pub IoReadBytes: DWORD64, + pub IoReadBytesLimit: DWORD64, + pub IoWriteBytes: DWORD64, + pub IoWriteBytesLimit: DWORD64, + pub PerJobUserTime: LARGE_INTEGER, + pub PerJobUserTimeLimit: LARGE_INTEGER, + pub JobMemory: DWORD64, + pub __bindgen_anon_1: JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2__bindgen_ty_1, + pub __bindgen_anon_2: JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2__bindgen_ty_2, + pub __bindgen_anon_3: JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2__bindgen_ty_3, + pub JobLowMemoryLimit: DWORD64, + pub IoRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, + pub IoRateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, + pub NetRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, + pub NetRateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2__bindgen_ty_1 { + pub JobHighMemoryLimit: DWORD64, + pub JobMemoryLimit: DWORD64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2__bindgen_ty_2 { + pub RateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, + pub CpuRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2__bindgen_ty_3 { + pub RateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, + pub CpuRateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION { + pub ControlFlags: DWORD, + pub __bindgen_anon_1: _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION__bindgen_ty_1 { + pub CpuRate: DWORD, + pub Weight: DWORD, + pub __bindgen_anon_1: _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION__bindgen_ty_1__bindgen_ty_1 { + pub MinRate: WORD, + pub MaxRate: WORD, +} +pub type JOBOBJECT_CPU_RATE_CONTROL_INFORMATION = _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION; +pub type PJOBOBJECT_CPU_RATE_CONTROL_INFORMATION = *mut _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION; +pub const JOB_OBJECT_NET_RATE_CONTROL_FLAGS_JOB_OBJECT_NET_RATE_CONTROL_ENABLE: + JOB_OBJECT_NET_RATE_CONTROL_FLAGS = 1; +pub const JOB_OBJECT_NET_RATE_CONTROL_FLAGS_JOB_OBJECT_NET_RATE_CONTROL_MAX_BANDWIDTH: + JOB_OBJECT_NET_RATE_CONTROL_FLAGS = 2; +pub const JOB_OBJECT_NET_RATE_CONTROL_FLAGS_JOB_OBJECT_NET_RATE_CONTROL_DSCP_TAG: + JOB_OBJECT_NET_RATE_CONTROL_FLAGS = 4; +pub const JOB_OBJECT_NET_RATE_CONTROL_FLAGS_JOB_OBJECT_NET_RATE_CONTROL_VALID_FLAGS: + JOB_OBJECT_NET_RATE_CONTROL_FLAGS = 7; +pub type JOB_OBJECT_NET_RATE_CONTROL_FLAGS = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct JOBOBJECT_NET_RATE_CONTROL_INFORMATION { + pub MaxBandwidth: DWORD64, + pub ControlFlags: JOB_OBJECT_NET_RATE_CONTROL_FLAGS, + pub DscpTag: BYTE, +} +pub const JOB_OBJECT_IO_RATE_CONTROL_FLAGS_JOB_OBJECT_IO_RATE_CONTROL_ENABLE: + JOB_OBJECT_IO_RATE_CONTROL_FLAGS = 1; +pub const JOB_OBJECT_IO_RATE_CONTROL_FLAGS_JOB_OBJECT_IO_RATE_CONTROL_STANDALONE_VOLUME: + JOB_OBJECT_IO_RATE_CONTROL_FLAGS = 2; +pub const JOB_OBJECT_IO_RATE_CONTROL_FLAGS_JOB_OBJECT_IO_RATE_CONTROL_FORCE_UNIT_ACCESS_ALL: + JOB_OBJECT_IO_RATE_CONTROL_FLAGS = 4; +pub const JOB_OBJECT_IO_RATE_CONTROL_FLAGS_JOB_OBJECT_IO_RATE_CONTROL_FORCE_UNIT_ACCESS_ON_SOFT_CAP : JOB_OBJECT_IO_RATE_CONTROL_FLAGS = 8 ; +pub const JOB_OBJECT_IO_RATE_CONTROL_FLAGS_JOB_OBJECT_IO_RATE_CONTROL_VALID_FLAGS: + JOB_OBJECT_IO_RATE_CONTROL_FLAGS = 15; +pub type JOB_OBJECT_IO_RATE_CONTROL_FLAGS = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE { + pub MaxIops: LONG64, + pub MaxBandwidth: LONG64, + pub ReservationIops: LONG64, + pub VolumeName: PWSTR, + pub BaseIoSize: DWORD, + pub ControlFlags: JOB_OBJECT_IO_RATE_CONTROL_FLAGS, + pub VolumeNameLength: WORD, +} +pub type JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1 = + JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V2 { + pub MaxIops: LONG64, + pub MaxBandwidth: LONG64, + pub ReservationIops: LONG64, + pub VolumeName: PWSTR, + pub BaseIoSize: DWORD, + pub ControlFlags: JOB_OBJECT_IO_RATE_CONTROL_FLAGS, + pub VolumeNameLength: WORD, + pub CriticalReservationIops: LONG64, + pub ReservationBandwidth: LONG64, + pub CriticalReservationBandwidth: LONG64, + pub MaxTimePercent: LONG64, + pub ReservationTimePercent: LONG64, + pub CriticalReservationTimePercent: LONG64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V3 { + pub MaxIops: LONG64, + pub MaxBandwidth: LONG64, + pub ReservationIops: LONG64, + pub VolumeName: PWSTR, + pub BaseIoSize: DWORD, + pub ControlFlags: JOB_OBJECT_IO_RATE_CONTROL_FLAGS, + pub VolumeNameLength: WORD, + pub CriticalReservationIops: LONG64, + pub ReservationBandwidth: LONG64, + pub CriticalReservationBandwidth: LONG64, + pub MaxTimePercent: LONG64, + pub ReservationTimePercent: LONG64, + pub CriticalReservationTimePercent: LONG64, + pub SoftMaxIops: LONG64, + pub SoftMaxBandwidth: LONG64, + pub SoftMaxTimePercent: LONG64, + pub LimitExcessNotifyIops: LONG64, + pub LimitExcessNotifyBandwidth: LONG64, + pub LimitExcessNotifyTimePercent: LONG64, +} +pub const JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS_JOBOBJECT_IO_ATTRIBUTION_CONTROL_ENABLE: + JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS = 1; +pub const JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS_JOBOBJECT_IO_ATTRIBUTION_CONTROL_DISABLE: + JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS = 2; +pub const JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS_JOBOBJECT_IO_ATTRIBUTION_CONTROL_VALID_FLAGS: + JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS = 3; +pub type JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOBOBJECT_IO_ATTRIBUTION_STATS { + pub IoCount: ULONG_PTR, + pub TotalNonOverlappedQueueTime: ULONGLONG, + pub TotalNonOverlappedServiceTime: ULONGLONG, + pub TotalSize: ULONGLONG, +} +pub type JOBOBJECT_IO_ATTRIBUTION_STATS = _JOBOBJECT_IO_ATTRIBUTION_STATS; +pub type PJOBOBJECT_IO_ATTRIBUTION_STATS = *mut _JOBOBJECT_IO_ATTRIBUTION_STATS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOBOBJECT_IO_ATTRIBUTION_INFORMATION { + pub ControlFlags: DWORD, + pub ReadStats: JOBOBJECT_IO_ATTRIBUTION_STATS, + pub WriteStats: JOBOBJECT_IO_ATTRIBUTION_STATS, +} +pub type JOBOBJECT_IO_ATTRIBUTION_INFORMATION = _JOBOBJECT_IO_ATTRIBUTION_INFORMATION; +pub type PJOBOBJECT_IO_ATTRIBUTION_INFORMATION = *mut _JOBOBJECT_IO_ATTRIBUTION_INFORMATION; +pub const _JOBOBJECTINFOCLASS_JobObjectBasicAccountingInformation: _JOBOBJECTINFOCLASS = 1; +pub const _JOBOBJECTINFOCLASS_JobObjectBasicLimitInformation: _JOBOBJECTINFOCLASS = 2; +pub const _JOBOBJECTINFOCLASS_JobObjectBasicProcessIdList: _JOBOBJECTINFOCLASS = 3; +pub const _JOBOBJECTINFOCLASS_JobObjectBasicUIRestrictions: _JOBOBJECTINFOCLASS = 4; +pub const _JOBOBJECTINFOCLASS_JobObjectSecurityLimitInformation: _JOBOBJECTINFOCLASS = 5; +pub const _JOBOBJECTINFOCLASS_JobObjectEndOfJobTimeInformation: _JOBOBJECTINFOCLASS = 6; +pub const _JOBOBJECTINFOCLASS_JobObjectAssociateCompletionPortInformation: _JOBOBJECTINFOCLASS = 7; +pub const _JOBOBJECTINFOCLASS_JobObjectBasicAndIoAccountingInformation: _JOBOBJECTINFOCLASS = 8; +pub const _JOBOBJECTINFOCLASS_JobObjectExtendedLimitInformation: _JOBOBJECTINFOCLASS = 9; +pub const _JOBOBJECTINFOCLASS_JobObjectJobSetInformation: _JOBOBJECTINFOCLASS = 10; +pub const _JOBOBJECTINFOCLASS_JobObjectGroupInformation: _JOBOBJECTINFOCLASS = 11; +pub const _JOBOBJECTINFOCLASS_JobObjectNotificationLimitInformation: _JOBOBJECTINFOCLASS = 12; +pub const _JOBOBJECTINFOCLASS_JobObjectLimitViolationInformation: _JOBOBJECTINFOCLASS = 13; +pub const _JOBOBJECTINFOCLASS_JobObjectGroupInformationEx: _JOBOBJECTINFOCLASS = 14; +pub const _JOBOBJECTINFOCLASS_JobObjectCpuRateControlInformation: _JOBOBJECTINFOCLASS = 15; +pub const _JOBOBJECTINFOCLASS_JobObjectCompletionFilter: _JOBOBJECTINFOCLASS = 16; +pub const _JOBOBJECTINFOCLASS_JobObjectCompletionCounter: _JOBOBJECTINFOCLASS = 17; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved1Information: _JOBOBJECTINFOCLASS = 18; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved2Information: _JOBOBJECTINFOCLASS = 19; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved3Information: _JOBOBJECTINFOCLASS = 20; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved4Information: _JOBOBJECTINFOCLASS = 21; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved5Information: _JOBOBJECTINFOCLASS = 22; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved6Information: _JOBOBJECTINFOCLASS = 23; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved7Information: _JOBOBJECTINFOCLASS = 24; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved8Information: _JOBOBJECTINFOCLASS = 25; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved9Information: _JOBOBJECTINFOCLASS = 26; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved10Information: _JOBOBJECTINFOCLASS = 27; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved11Information: _JOBOBJECTINFOCLASS = 28; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved12Information: _JOBOBJECTINFOCLASS = 29; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved13Information: _JOBOBJECTINFOCLASS = 30; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved14Information: _JOBOBJECTINFOCLASS = 31; +pub const _JOBOBJECTINFOCLASS_JobObjectNetRateControlInformation: _JOBOBJECTINFOCLASS = 32; +pub const _JOBOBJECTINFOCLASS_JobObjectNotificationLimitInformation2: _JOBOBJECTINFOCLASS = 33; +pub const _JOBOBJECTINFOCLASS_JobObjectLimitViolationInformation2: _JOBOBJECTINFOCLASS = 34; +pub const _JOBOBJECTINFOCLASS_JobObjectCreateSilo: _JOBOBJECTINFOCLASS = 35; +pub const _JOBOBJECTINFOCLASS_JobObjectSiloBasicInformation: _JOBOBJECTINFOCLASS = 36; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved15Information: _JOBOBJECTINFOCLASS = 37; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved16Information: _JOBOBJECTINFOCLASS = 38; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved17Information: _JOBOBJECTINFOCLASS = 39; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved18Information: _JOBOBJECTINFOCLASS = 40; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved19Information: _JOBOBJECTINFOCLASS = 41; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved20Information: _JOBOBJECTINFOCLASS = 42; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved21Information: _JOBOBJECTINFOCLASS = 43; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved22Information: _JOBOBJECTINFOCLASS = 44; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved23Information: _JOBOBJECTINFOCLASS = 45; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved24Information: _JOBOBJECTINFOCLASS = 46; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved25Information: _JOBOBJECTINFOCLASS = 47; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved26Information: _JOBOBJECTINFOCLASS = 48; +pub const _JOBOBJECTINFOCLASS_JobObjectReserved27Information: _JOBOBJECTINFOCLASS = 49; +pub const _JOBOBJECTINFOCLASS_MaxJobObjectInfoClass: _JOBOBJECTINFOCLASS = 50; +pub type _JOBOBJECTINFOCLASS = ::std::os::raw::c_int; +pub use self::_JOBOBJECTINFOCLASS as JOBOBJECTINFOCLASS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SILOOBJECT_BASIC_INFORMATION { + pub SiloId: DWORD, + pub SiloParentId: DWORD, + pub NumberOfProcesses: DWORD, + pub IsInServerSilo: BOOLEAN, + pub Reserved: [BYTE; 3usize], +} +pub type SILOOBJECT_BASIC_INFORMATION = _SILOOBJECT_BASIC_INFORMATION; +pub type PSILOOBJECT_BASIC_INFORMATION = *mut _SILOOBJECT_BASIC_INFORMATION; +pub const _SERVERSILO_STATE_SERVERSILO_INITING: _SERVERSILO_STATE = 0; +pub const _SERVERSILO_STATE_SERVERSILO_STARTED: _SERVERSILO_STATE = 1; +pub const _SERVERSILO_STATE_SERVERSILO_SHUTTING_DOWN: _SERVERSILO_STATE = 2; +pub const _SERVERSILO_STATE_SERVERSILO_TERMINATING: _SERVERSILO_STATE = 3; +pub const _SERVERSILO_STATE_SERVERSILO_TERMINATED: _SERVERSILO_STATE = 4; +pub type _SERVERSILO_STATE = ::std::os::raw::c_int; +pub use self::_SERVERSILO_STATE as SERVERSILO_STATE; +pub type PSERVERSILO_STATE = *mut _SERVERSILO_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVERSILO_BASIC_INFORMATION { + pub ServiceSessionId: DWORD, + pub State: SERVERSILO_STATE, + pub ExitStatus: DWORD, + pub IsDownlevelContainer: BOOLEAN, + pub ApiSetSchema: PVOID, + pub HostApiSetSchema: PVOID, +} +pub type SERVERSILO_BASIC_INFORMATION = _SERVERSILO_BASIC_INFORMATION; +pub type PSERVERSILO_BASIC_INFORMATION = *mut _SERVERSILO_BASIC_INFORMATION; +pub const _FIRMWARE_TYPE_FirmwareTypeUnknown: _FIRMWARE_TYPE = 0; +pub const _FIRMWARE_TYPE_FirmwareTypeBios: _FIRMWARE_TYPE = 1; +pub const _FIRMWARE_TYPE_FirmwareTypeUefi: _FIRMWARE_TYPE = 2; +pub const _FIRMWARE_TYPE_FirmwareTypeMax: _FIRMWARE_TYPE = 3; +pub type _FIRMWARE_TYPE = ::std::os::raw::c_int; +pub use self::_FIRMWARE_TYPE as FIRMWARE_TYPE; +pub type PFIRMWARE_TYPE = *mut _FIRMWARE_TYPE; +pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationProcessorCore: _LOGICAL_PROCESSOR_RELATIONSHIP = + 0; +pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationNumaNode: _LOGICAL_PROCESSOR_RELATIONSHIP = 1; +pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationCache: _LOGICAL_PROCESSOR_RELATIONSHIP = 2; +pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationProcessorPackage: + _LOGICAL_PROCESSOR_RELATIONSHIP = 3; +pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationGroup: _LOGICAL_PROCESSOR_RELATIONSHIP = 4; +pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationProcessorDie: _LOGICAL_PROCESSOR_RELATIONSHIP = 5; +pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationNumaNodeEx: _LOGICAL_PROCESSOR_RELATIONSHIP = 6; +pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationProcessorModule: _LOGICAL_PROCESSOR_RELATIONSHIP = + 7; +pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationAll: _LOGICAL_PROCESSOR_RELATIONSHIP = 65535; +pub type _LOGICAL_PROCESSOR_RELATIONSHIP = ::std::os::raw::c_int; +pub use self::_LOGICAL_PROCESSOR_RELATIONSHIP as LOGICAL_PROCESSOR_RELATIONSHIP; +pub const _PROCESSOR_CACHE_TYPE_CacheUnified: _PROCESSOR_CACHE_TYPE = 0; +pub const _PROCESSOR_CACHE_TYPE_CacheInstruction: _PROCESSOR_CACHE_TYPE = 1; +pub const _PROCESSOR_CACHE_TYPE_CacheData: _PROCESSOR_CACHE_TYPE = 2; +pub const _PROCESSOR_CACHE_TYPE_CacheTrace: _PROCESSOR_CACHE_TYPE = 3; +pub type _PROCESSOR_CACHE_TYPE = ::std::os::raw::c_int; +pub use self::_PROCESSOR_CACHE_TYPE as PROCESSOR_CACHE_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CACHE_DESCRIPTOR { + pub Level: BYTE, + pub Associativity: BYTE, + pub LineSize: WORD, + pub Size: DWORD, + pub Type: PROCESSOR_CACHE_TYPE, +} +pub type CACHE_DESCRIPTOR = _CACHE_DESCRIPTOR; +pub type PCACHE_DESCRIPTOR = *mut _CACHE_DESCRIPTOR; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION { + pub ProcessorMask: ULONG_PTR, + pub Relationship: LOGICAL_PROCESSOR_RELATIONSHIP, + pub __bindgen_anon_1: _SYSTEM_LOGICAL_PROCESSOR_INFORMATION__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SYSTEM_LOGICAL_PROCESSOR_INFORMATION__bindgen_ty_1 { + pub ProcessorCore: _SYSTEM_LOGICAL_PROCESSOR_INFORMATION__bindgen_ty_1__bindgen_ty_1, + pub NumaNode: _SYSTEM_LOGICAL_PROCESSOR_INFORMATION__bindgen_ty_1__bindgen_ty_2, + pub Cache: CACHE_DESCRIPTOR, + pub Reserved: [ULONGLONG; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION__bindgen_ty_1__bindgen_ty_1 { + pub Flags: BYTE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION__bindgen_ty_1__bindgen_ty_2 { + pub NodeNumber: DWORD, +} +pub type SYSTEM_LOGICAL_PROCESSOR_INFORMATION = _SYSTEM_LOGICAL_PROCESSOR_INFORMATION; +pub type PSYSTEM_LOGICAL_PROCESSOR_INFORMATION = *mut _SYSTEM_LOGICAL_PROCESSOR_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESSOR_RELATIONSHIP { + pub Flags: BYTE, + pub EfficiencyClass: BYTE, + pub Reserved: [BYTE; 20usize], + pub GroupCount: WORD, + pub GroupMask: [GROUP_AFFINITY; 1usize], +} +pub type PROCESSOR_RELATIONSHIP = _PROCESSOR_RELATIONSHIP; +pub type PPROCESSOR_RELATIONSHIP = *mut _PROCESSOR_RELATIONSHIP; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _NUMA_NODE_RELATIONSHIP { + pub NodeNumber: DWORD, + pub Reserved: [BYTE; 18usize], + pub GroupCount: WORD, + pub __bindgen_anon_1: _NUMA_NODE_RELATIONSHIP__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _NUMA_NODE_RELATIONSHIP__bindgen_ty_1 { + pub GroupMask: GROUP_AFFINITY, + pub GroupMasks: [GROUP_AFFINITY; 1usize], +} +pub type NUMA_NODE_RELATIONSHIP = _NUMA_NODE_RELATIONSHIP; +pub type PNUMA_NODE_RELATIONSHIP = *mut _NUMA_NODE_RELATIONSHIP; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CACHE_RELATIONSHIP { + pub Level: BYTE, + pub Associativity: BYTE, + pub LineSize: WORD, + pub CacheSize: DWORD, + pub Type: PROCESSOR_CACHE_TYPE, + pub Reserved: [BYTE; 18usize], + pub GroupCount: WORD, + pub __bindgen_anon_1: _CACHE_RELATIONSHIP__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CACHE_RELATIONSHIP__bindgen_ty_1 { + pub GroupMask: GROUP_AFFINITY, + pub GroupMasks: [GROUP_AFFINITY; 1usize], +} +pub type CACHE_RELATIONSHIP = _CACHE_RELATIONSHIP; +pub type PCACHE_RELATIONSHIP = *mut _CACHE_RELATIONSHIP; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESSOR_GROUP_INFO { + pub MaximumProcessorCount: BYTE, + pub ActiveProcessorCount: BYTE, + pub Reserved: [BYTE; 38usize], + pub ActiveProcessorMask: KAFFINITY, +} +pub type PROCESSOR_GROUP_INFO = _PROCESSOR_GROUP_INFO; +pub type PPROCESSOR_GROUP_INFO = *mut _PROCESSOR_GROUP_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _GROUP_RELATIONSHIP { + pub MaximumGroupCount: WORD, + pub ActiveGroupCount: WORD, + pub Reserved: [BYTE; 20usize], + pub GroupInfo: [PROCESSOR_GROUP_INFO; 1usize], +} +pub type GROUP_RELATIONSHIP = _GROUP_RELATIONSHIP; +pub type PGROUP_RELATIONSHIP = *mut _GROUP_RELATIONSHIP; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX { + pub Relationship: LOGICAL_PROCESSOR_RELATIONSHIP, + pub Size: DWORD, + pub __bindgen_anon_1: _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX__bindgen_ty_1 { + pub Processor: PROCESSOR_RELATIONSHIP, + pub NumaNode: NUMA_NODE_RELATIONSHIP, + pub Cache: CACHE_RELATIONSHIP, + pub Group: GROUP_RELATIONSHIP, +} +pub type SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX = _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX; +pub type PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX = *mut _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX; +pub const _CPU_SET_INFORMATION_TYPE_CpuSetInformation: _CPU_SET_INFORMATION_TYPE = 0; +pub type _CPU_SET_INFORMATION_TYPE = ::std::os::raw::c_int; +pub use self::_CPU_SET_INFORMATION_TYPE as CPU_SET_INFORMATION_TYPE; +pub type PCPU_SET_INFORMATION_TYPE = *mut _CPU_SET_INFORMATION_TYPE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _SYSTEM_CPU_SET_INFORMATION { + pub Size: DWORD, + pub Type: CPU_SET_INFORMATION_TYPE, + pub __bindgen_anon_1: _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1 { + pub CpuSet: _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1 { + pub Id: DWORD, + pub Group: WORD, + pub LogicalProcessorIndex: BYTE, + pub CoreIndex: BYTE, + pub LastLevelCacheIndex: BYTE, + pub NumaNodeIndex: BYTE, + pub EfficiencyClass: BYTE, + pub __bindgen_anon_1: _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, + pub __bindgen_anon_2: _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2, + pub AllocationTag: DWORD64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { + pub AllFlags: BYTE, + pub __bindgen_anon_1: + _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +} +impl _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn Parked(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } + } + #[inline] + pub fn set_Parked(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Allocated(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) } + } + #[inline] + pub fn set_Allocated(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn AllocatedToTargetProcess(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) } + } + #[inline] + pub fn set_AllocatedToTargetProcess(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn RealTime(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) } + } + #[inline] + pub fn set_RealTime(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedFlags(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } + } + #[inline] + pub fn set_ReservedFlags(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 4u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Parked: BYTE, + Allocated: BYTE, + AllocatedToTargetProcess: BYTE, + RealTime: BYTE, + ReservedFlags: BYTE, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let Parked: u8 = unsafe { ::std::mem::transmute(Parked) }; + Parked as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let Allocated: u8 = unsafe { ::std::mem::transmute(Allocated) }; + Allocated as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let AllocatedToTargetProcess: u8 = + unsafe { ::std::mem::transmute(AllocatedToTargetProcess) }; + AllocatedToTargetProcess as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let RealTime: u8 = unsafe { ::std::mem::transmute(RealTime) }; + RealTime as u64 + }); + __bindgen_bitfield_unit.set(4usize, 4u8, { + let ReservedFlags: u8 = unsafe { ::std::mem::transmute(ReservedFlags) }; + ReservedFlags as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2 { + pub Reserved: DWORD, + pub SchedulingClass: BYTE, +} +pub type SYSTEM_CPU_SET_INFORMATION = _SYSTEM_CPU_SET_INFORMATION; +pub type PSYSTEM_CPU_SET_INFORMATION = *mut _SYSTEM_CPU_SET_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_POOL_ZEROING_INFORMATION { + pub PoolZeroingSupportPresent: BOOLEAN, +} +pub type SYSTEM_POOL_ZEROING_INFORMATION = _SYSTEM_POOL_ZEROING_INFORMATION; +pub type PSYSTEM_POOL_ZEROING_INFORMATION = *mut _SYSTEM_POOL_ZEROING_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION { + pub CycleTime: DWORD64, +} +pub type SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION = _SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION; +pub type PSYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION = *mut _SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION; +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION { + #[inline] + pub fn Machine(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } + } + #[inline] + pub fn set_Machine(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 16u8, val as u64) + } + } + #[inline] + pub fn KernelMode(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) } + } + #[inline] + pub fn set_KernelMode(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 1u8, val as u64) + } + } + #[inline] + pub fn UserMode(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) } + } + #[inline] + pub fn set_UserMode(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(17usize, 1u8, val as u64) + } + } + #[inline] + pub fn Native(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u32) } + } + #[inline] + pub fn set_Native(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(18usize, 1u8, val as u64) + } + } + #[inline] + pub fn Process(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u32) } + } + #[inline] + pub fn set_Process(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(19usize, 1u8, val as u64) + } + } + #[inline] + pub fn WoW64Container(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) } + } + #[inline] + pub fn set_WoW64Container(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(20usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedZero0(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 11u8) as u32) } + } + #[inline] + pub fn set_ReservedZero0(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(21usize, 11u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Machine: DWORD, + KernelMode: DWORD, + UserMode: DWORD, + Native: DWORD, + Process: DWORD, + WoW64Container: DWORD, + ReservedZero0: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 16u8, { + let Machine: u32 = unsafe { ::std::mem::transmute(Machine) }; + Machine as u64 + }); + __bindgen_bitfield_unit.set(16usize, 1u8, { + let KernelMode: u32 = unsafe { ::std::mem::transmute(KernelMode) }; + KernelMode as u64 + }); + __bindgen_bitfield_unit.set(17usize, 1u8, { + let UserMode: u32 = unsafe { ::std::mem::transmute(UserMode) }; + UserMode as u64 + }); + __bindgen_bitfield_unit.set(18usize, 1u8, { + let Native: u32 = unsafe { ::std::mem::transmute(Native) }; + Native as u64 + }); + __bindgen_bitfield_unit.set(19usize, 1u8, { + let Process: u32 = unsafe { ::std::mem::transmute(Process) }; + Process as u64 + }); + __bindgen_bitfield_unit.set(20usize, 1u8, { + let WoW64Container: u32 = unsafe { ::std::mem::transmute(WoW64Container) }; + WoW64Container as u64 + }); + __bindgen_bitfield_unit.set(21usize, 11u8, { + let ReservedZero0: u32 = unsafe { ::std::mem::transmute(ReservedZero0) }; + ReservedZero0 as u64 + }); + __bindgen_bitfield_unit + } +} +pub type SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION = + _SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _XSTATE_FEATURE { + pub Offset: DWORD, + pub Size: DWORD, +} +pub type XSTATE_FEATURE = _XSTATE_FEATURE; +pub type PXSTATE_FEATURE = *mut _XSTATE_FEATURE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _XSTATE_CONFIGURATION { + pub EnabledFeatures: DWORD64, + pub EnabledVolatileFeatures: DWORD64, + pub Size: DWORD, + pub __bindgen_anon_1: _XSTATE_CONFIGURATION__bindgen_ty_1, + pub Features: [XSTATE_FEATURE; 64usize], + pub EnabledSupervisorFeatures: DWORD64, + pub AlignedFeatures: DWORD64, + pub AllFeatureSize: DWORD, + pub AllFeatures: [DWORD; 64usize], + pub EnabledUserVisibleSupervisorFeatures: DWORD64, + pub ExtendedFeatureDisableFeatures: DWORD64, + pub AllNonLargeFeatureSize: DWORD, + pub Spare: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _XSTATE_CONFIGURATION__bindgen_ty_1 { + pub ControlFlags: DWORD, + pub __bindgen_anon_1: _XSTATE_CONFIGURATION__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _XSTATE_CONFIGURATION__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 3usize], +} +impl _XSTATE_CONFIGURATION__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn OptimizedSave(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_OptimizedSave(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn CompactionEnabled(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_CompactionEnabled(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn ExtendedFeatureDisable(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_ExtendedFeatureDisable(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + OptimizedSave: DWORD, + CompactionEnabled: DWORD, + ExtendedFeatureDisable: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let OptimizedSave: u32 = unsafe { ::std::mem::transmute(OptimizedSave) }; + OptimizedSave as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let CompactionEnabled: u32 = unsafe { ::std::mem::transmute(CompactionEnabled) }; + CompactionEnabled as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let ExtendedFeatureDisable: u32 = + unsafe { ::std::mem::transmute(ExtendedFeatureDisable) }; + ExtendedFeatureDisable as u64 + }); + __bindgen_bitfield_unit + } +} +pub type XSTATE_CONFIGURATION = _XSTATE_CONFIGURATION; +pub type PXSTATE_CONFIGURATION = *mut _XSTATE_CONFIGURATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MEMORY_BASIC_INFORMATION { + pub BaseAddress: PVOID, + pub AllocationBase: PVOID, + pub AllocationProtect: DWORD, + pub PartitionId: WORD, + pub RegionSize: SIZE_T, + pub State: DWORD, + pub Protect: DWORD, + pub Type: DWORD, +} +pub type MEMORY_BASIC_INFORMATION = _MEMORY_BASIC_INFORMATION; +pub type PMEMORY_BASIC_INFORMATION = *mut _MEMORY_BASIC_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MEMORY_BASIC_INFORMATION32 { + pub BaseAddress: DWORD, + pub AllocationBase: DWORD, + pub AllocationProtect: DWORD, + pub RegionSize: DWORD, + pub State: DWORD, + pub Protect: DWORD, + pub Type: DWORD, +} +pub type MEMORY_BASIC_INFORMATION32 = _MEMORY_BASIC_INFORMATION32; +pub type PMEMORY_BASIC_INFORMATION32 = *mut _MEMORY_BASIC_INFORMATION32; +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct _MEMORY_BASIC_INFORMATION64 { + pub BaseAddress: ULONGLONG, + pub AllocationBase: ULONGLONG, + pub AllocationProtect: DWORD, + pub __alignment1: DWORD, + pub RegionSize: ULONGLONG, + pub State: DWORD, + pub Protect: DWORD, + pub Type: DWORD, + pub __alignment2: DWORD, +} +pub type MEMORY_BASIC_INFORMATION64 = _MEMORY_BASIC_INFORMATION64; +pub type PMEMORY_BASIC_INFORMATION64 = *mut _MEMORY_BASIC_INFORMATION64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CFG_CALL_TARGET_INFO { + pub Offset: ULONG_PTR, + pub Flags: ULONG_PTR, +} +pub type CFG_CALL_TARGET_INFO = _CFG_CALL_TARGET_INFO; +pub type PCFG_CALL_TARGET_INFO = *mut _CFG_CALL_TARGET_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MEM_ADDRESS_REQUIREMENTS { + pub LowestStartingAddress: PVOID, + pub HighestEndingAddress: PVOID, + pub Alignment: SIZE_T, +} +pub type MEM_ADDRESS_REQUIREMENTS = _MEM_ADDRESS_REQUIREMENTS; +pub type PMEM_ADDRESS_REQUIREMENTS = *mut _MEM_ADDRESS_REQUIREMENTS; +pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterInvalidType: MEM_EXTENDED_PARAMETER_TYPE = + 0; +pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterAddressRequirements: + MEM_EXTENDED_PARAMETER_TYPE = 1; +pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterNumaNode: MEM_EXTENDED_PARAMETER_TYPE = 2; +pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterPartitionHandle: + MEM_EXTENDED_PARAMETER_TYPE = 3; +pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterUserPhysicalHandle: + MEM_EXTENDED_PARAMETER_TYPE = 4; +pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterAttributeFlags: + MEM_EXTENDED_PARAMETER_TYPE = 5; +pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterImageMachine: + MEM_EXTENDED_PARAMETER_TYPE = 6; +pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterMax: MEM_EXTENDED_PARAMETER_TYPE = 7; +pub type MEM_EXTENDED_PARAMETER_TYPE = ::std::os::raw::c_int; +pub type PMEM_EXTENDED_PARAMETER_TYPE = *mut MEM_EXTENDED_PARAMETER_TYPE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct MEM_EXTENDED_PARAMETER { + pub __bindgen_anon_1: MEM_EXTENDED_PARAMETER__bindgen_ty_1, + pub __bindgen_anon_2: MEM_EXTENDED_PARAMETER__bindgen_ty_2, +} +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct MEM_EXTENDED_PARAMETER__bindgen_ty_1 { + pub _bitfield_align_1: [u64; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>, +} +impl MEM_EXTENDED_PARAMETER__bindgen_ty_1 { + #[inline] + pub fn Type(&self) -> DWORD64 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u64) } + } + #[inline] + pub fn set_Type(&mut self, val: DWORD64) { + unsafe { + let val: u64 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> DWORD64 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 56u8) as u64) } + } + #[inline] + pub fn set_Reserved(&mut self, val: DWORD64) { + unsafe { + let val: u64 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 56u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1(Type: DWORD64, Reserved: DWORD64) -> __BindgenBitfieldUnit<[u8; 8usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let Type: u64 = unsafe { ::std::mem::transmute(Type) }; + Type as u64 + }); + __bindgen_bitfield_unit.set(8usize, 56u8, { + let Reserved: u64 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union MEM_EXTENDED_PARAMETER__bindgen_ty_2 { + pub ULong64: DWORD64, + pub Pointer: PVOID, + pub Size: SIZE_T, + pub Handle: HANDLE, + pub ULong: DWORD, +} +pub type PMEM_EXTENDED_PARAMETER = *mut MEM_EXTENDED_PARAMETER; +pub const _MEM_DEDICATED_ATTRIBUTE_TYPE_MemDedicatedAttributeReadBandwidth: + _MEM_DEDICATED_ATTRIBUTE_TYPE = 0; +pub const _MEM_DEDICATED_ATTRIBUTE_TYPE_MemDedicatedAttributeReadLatency: + _MEM_DEDICATED_ATTRIBUTE_TYPE = 1; +pub const _MEM_DEDICATED_ATTRIBUTE_TYPE_MemDedicatedAttributeWriteBandwidth: + _MEM_DEDICATED_ATTRIBUTE_TYPE = 2; +pub const _MEM_DEDICATED_ATTRIBUTE_TYPE_MemDedicatedAttributeWriteLatency: + _MEM_DEDICATED_ATTRIBUTE_TYPE = 3; +pub const _MEM_DEDICATED_ATTRIBUTE_TYPE_MemDedicatedAttributeMax: _MEM_DEDICATED_ATTRIBUTE_TYPE = 4; +pub type _MEM_DEDICATED_ATTRIBUTE_TYPE = ::std::os::raw::c_int; +pub use self::_MEM_DEDICATED_ATTRIBUTE_TYPE as MEM_DEDICATED_ATTRIBUTE_TYPE; +pub type PMEM_DEDICATED_ATTRIBUTE_TYPE = *mut _MEM_DEDICATED_ATTRIBUTE_TYPE; +pub const MEM_SECTION_EXTENDED_PARAMETER_TYPE_MemSectionExtendedParameterInvalidType: + MEM_SECTION_EXTENDED_PARAMETER_TYPE = 0; +pub const MEM_SECTION_EXTENDED_PARAMETER_TYPE_MemSectionExtendedParameterUserPhysicalFlags: + MEM_SECTION_EXTENDED_PARAMETER_TYPE = 1; +pub const MEM_SECTION_EXTENDED_PARAMETER_TYPE_MemSectionExtendedParameterNumaNode: + MEM_SECTION_EXTENDED_PARAMETER_TYPE = 2; +pub const MEM_SECTION_EXTENDED_PARAMETER_TYPE_MemSectionExtendedParameterSigningLevel: + MEM_SECTION_EXTENDED_PARAMETER_TYPE = 3; +pub const MEM_SECTION_EXTENDED_PARAMETER_TYPE_MemSectionExtendedParameterMax: + MEM_SECTION_EXTENDED_PARAMETER_TYPE = 4; +pub type MEM_SECTION_EXTENDED_PARAMETER_TYPE = ::std::os::raw::c_int; +pub type PMEM_SECTION_EXTENDED_PARAMETER_TYPE = *mut MEM_SECTION_EXTENDED_PARAMETER_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCLAVE_CREATE_INFO_SGX { + pub Secs: [BYTE; 4096usize], +} +pub type ENCLAVE_CREATE_INFO_SGX = _ENCLAVE_CREATE_INFO_SGX; +pub type PENCLAVE_CREATE_INFO_SGX = *mut _ENCLAVE_CREATE_INFO_SGX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCLAVE_INIT_INFO_SGX { + pub SigStruct: [BYTE; 1808usize], + pub Reserved1: [BYTE; 240usize], + pub EInitToken: [BYTE; 304usize], + pub Reserved2: [BYTE; 1744usize], +} +pub type ENCLAVE_INIT_INFO_SGX = _ENCLAVE_INIT_INFO_SGX; +pub type PENCLAVE_INIT_INFO_SGX = *mut _ENCLAVE_INIT_INFO_SGX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCLAVE_CREATE_INFO_VBS { + pub Flags: DWORD, + pub OwnerID: [BYTE; 32usize], +} +pub type ENCLAVE_CREATE_INFO_VBS = _ENCLAVE_CREATE_INFO_VBS; +pub type PENCLAVE_CREATE_INFO_VBS = *mut _ENCLAVE_CREATE_INFO_VBS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCLAVE_CREATE_INFO_VBS_BASIC { + pub Flags: DWORD, + pub OwnerID: [BYTE; 32usize], +} +pub type ENCLAVE_CREATE_INFO_VBS_BASIC = _ENCLAVE_CREATE_INFO_VBS_BASIC; +pub type PENCLAVE_CREATE_INFO_VBS_BASIC = *mut _ENCLAVE_CREATE_INFO_VBS_BASIC; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCLAVE_LOAD_DATA_VBS_BASIC { + pub PageType: DWORD, +} +pub type ENCLAVE_LOAD_DATA_VBS_BASIC = _ENCLAVE_LOAD_DATA_VBS_BASIC; +pub type PENCLAVE_LOAD_DATA_VBS_BASIC = *mut _ENCLAVE_LOAD_DATA_VBS_BASIC; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _ENCLAVE_INIT_INFO_VBS_BASIC { + pub FamilyId: [BYTE; 16usize], + pub ImageId: [BYTE; 16usize], + pub EnclaveSize: ULONGLONG, + pub EnclaveSvn: DWORD, + pub Reserved: DWORD, + pub __bindgen_anon_1: _ENCLAVE_INIT_INFO_VBS_BASIC__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _ENCLAVE_INIT_INFO_VBS_BASIC__bindgen_ty_1 { + pub SignatureInfoHandle: HANDLE, + pub Unused: ULONGLONG, +} +pub type ENCLAVE_INIT_INFO_VBS_BASIC = _ENCLAVE_INIT_INFO_VBS_BASIC; +pub type PENCLAVE_INIT_INFO_VBS_BASIC = *mut _ENCLAVE_INIT_INFO_VBS_BASIC; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCLAVE_INIT_INFO_VBS { + pub Length: DWORD, + pub ThreadCount: DWORD, +} +pub type ENCLAVE_INIT_INFO_VBS = _ENCLAVE_INIT_INFO_VBS; +pub type PENCLAVE_INIT_INFO_VBS = *mut _ENCLAVE_INIT_INFO_VBS; +pub type ENCLAVE_TARGET_FUNCTION = + ::std::option::Option PVOID>; +pub type PENCLAVE_TARGET_FUNCTION = ENCLAVE_TARGET_FUNCTION; +pub type LPENCLAVE_TARGET_FUNCTION = PENCLAVE_TARGET_FUNCTION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE { + pub Type: MEM_DEDICATED_ATTRIBUTE_TYPE, + pub Reserved: DWORD, + pub Value: DWORD64, +} +pub type MEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE = _MEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE; +pub type PMEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE = + *mut _MEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION { + pub NextEntryOffset: DWORD, + pub SizeOfInformation: DWORD, + pub Flags: DWORD, + pub AttributesOffset: DWORD, + pub AttributeCount: DWORD, + pub Reserved: DWORD, + pub TypeId: DWORD64, +} +pub type MEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION = + _MEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION; +pub type PMEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION = + *mut _MEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_ID_128 { + pub Identifier: [BYTE; 16usize], +} +pub type FILE_ID_128 = _FILE_ID_128; +pub type PFILE_ID_128 = *mut _FILE_ID_128; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_NOTIFY_INFORMATION { + pub NextEntryOffset: DWORD, + pub Action: DWORD, + pub FileNameLength: DWORD, + pub FileName: [WCHAR; 1usize], +} +pub type FILE_NOTIFY_INFORMATION = _FILE_NOTIFY_INFORMATION; +pub type PFILE_NOTIFY_INFORMATION = *mut _FILE_NOTIFY_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_NOTIFY_EXTENDED_INFORMATION { + pub NextEntryOffset: DWORD, + pub Action: DWORD, + pub CreationTime: LARGE_INTEGER, + pub LastModificationTime: LARGE_INTEGER, + pub LastChangeTime: LARGE_INTEGER, + pub LastAccessTime: LARGE_INTEGER, + pub AllocatedLength: LARGE_INTEGER, + pub FileSize: LARGE_INTEGER, + pub FileAttributes: DWORD, + pub __bindgen_anon_1: _FILE_NOTIFY_EXTENDED_INFORMATION__bindgen_ty_1, + pub FileId: LARGE_INTEGER, + pub ParentFileId: LARGE_INTEGER, + pub FileNameLength: DWORD, + pub FileName: [WCHAR; 1usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _FILE_NOTIFY_EXTENDED_INFORMATION__bindgen_ty_1 { + pub ReparsePointTag: DWORD, + pub EaSize: DWORD, +} +pub type FILE_NOTIFY_EXTENDED_INFORMATION = _FILE_NOTIFY_EXTENDED_INFORMATION; +pub type PFILE_NOTIFY_EXTENDED_INFORMATION = *mut _FILE_NOTIFY_EXTENDED_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_NOTIFY_FULL_INFORMATION { + pub NextEntryOffset: DWORD, + pub Action: DWORD, + pub CreationTime: LARGE_INTEGER, + pub LastModificationTime: LARGE_INTEGER, + pub LastChangeTime: LARGE_INTEGER, + pub LastAccessTime: LARGE_INTEGER, + pub AllocatedLength: LARGE_INTEGER, + pub FileSize: LARGE_INTEGER, + pub FileAttributes: DWORD, + pub __bindgen_anon_1: _FILE_NOTIFY_FULL_INFORMATION__bindgen_ty_1, + pub FileId: LARGE_INTEGER, + pub ParentFileId: LARGE_INTEGER, + pub FileNameLength: WORD, + pub FileNameFlags: BYTE, + pub Reserved: BYTE, + pub FileName: [WCHAR; 1usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _FILE_NOTIFY_FULL_INFORMATION__bindgen_ty_1 { + pub ReparsePointTag: DWORD, + pub EaSize: DWORD, +} +pub type FILE_NOTIFY_FULL_INFORMATION = _FILE_NOTIFY_FULL_INFORMATION; +pub type PFILE_NOTIFY_FULL_INFORMATION = *mut _FILE_NOTIFY_FULL_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub union _FILE_SEGMENT_ELEMENT { + pub Buffer: *mut ::std::os::raw::c_void, + pub Alignment: ULONGLONG, +} +pub type FILE_SEGMENT_ELEMENT = _FILE_SEGMENT_ELEMENT; +pub type PFILE_SEGMENT_ELEMENT = *mut _FILE_SEGMENT_ELEMENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REPARSE_GUID_DATA_BUFFER { + pub ReparseTag: DWORD, + pub ReparseDataLength: WORD, + pub Reserved: WORD, + pub ReparseGuid: GUID, + pub GenericReparseBuffer: _REPARSE_GUID_DATA_BUFFER__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REPARSE_GUID_DATA_BUFFER__bindgen_ty_1 { + pub DataBuffer: [BYTE; 1usize], +} +pub type REPARSE_GUID_DATA_BUFFER = _REPARSE_GUID_DATA_BUFFER; +pub type PREPARSE_GUID_DATA_BUFFER = *mut _REPARSE_GUID_DATA_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCRUB_DATA_INPUT { + pub Size: DWORD, + pub Flags: DWORD, + pub MaximumIos: DWORD, + pub ObjectId: [DWORD; 4usize], + pub Reserved: [DWORD; 41usize], + pub ResumeContext: [BYTE; 1040usize], +} +pub type SCRUB_DATA_INPUT = _SCRUB_DATA_INPUT; +pub type PSCRUB_DATA_INPUT = *mut _SCRUB_DATA_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCRUB_PARITY_EXTENT { + pub Offset: LONGLONG, + pub Length: ULONGLONG, +} +pub type SCRUB_PARITY_EXTENT = _SCRUB_PARITY_EXTENT; +pub type PSCRUB_PARITY_EXTENT = *mut _SCRUB_PARITY_EXTENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCRUB_PARITY_EXTENT_DATA { + pub Size: WORD, + pub Flags: WORD, + pub NumberOfParityExtents: WORD, + pub MaximumNumberOfParityExtents: WORD, + pub ParityExtents: [SCRUB_PARITY_EXTENT; 1usize], +} +pub type SCRUB_PARITY_EXTENT_DATA = _SCRUB_PARITY_EXTENT_DATA; +pub type PSCRUB_PARITY_EXTENT_DATA = *mut _SCRUB_PARITY_EXTENT_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCRUB_DATA_OUTPUT { + pub Size: DWORD, + pub Flags: DWORD, + pub Status: DWORD, + pub ErrorFileOffset: ULONGLONG, + pub ErrorLength: ULONGLONG, + pub NumberOfBytesRepaired: ULONGLONG, + pub NumberOfBytesFailed: ULONGLONG, + pub InternalFileReference: ULONGLONG, + pub ResumeContextLength: WORD, + pub ParityExtentDataOffset: WORD, + pub Reserved: [DWORD; 9usize], + pub NumberOfMetadataBytesProcessed: ULONGLONG, + pub NumberOfDataBytesProcessed: ULONGLONG, + pub TotalNumberOfMetadataBytesInUse: ULONGLONG, + pub TotalNumberOfDataBytesInUse: ULONGLONG, + pub DataBytesSkippedDueToNoAllocation: ULONGLONG, + pub DataBytesSkippedDueToInvalidRun: ULONGLONG, + pub DataBytesSkippedDueToIntegrityStream: ULONGLONG, + pub DataBytesSkippedDueToRegionBeingClean: ULONGLONG, + pub DataBytesSkippedDueToLockConflict: ULONGLONG, + pub DataBytesSkippedDueToNoScrubDataFlag: ULONGLONG, + pub DataBytesSkippedDueToNoScrubNonIntegrityStreamFlag: ULONGLONG, + pub DataBytesScrubbed: ULONGLONG, + pub ResumeContext: [BYTE; 1040usize], +} +pub type SCRUB_DATA_OUTPUT = _SCRUB_DATA_OUTPUT; +pub type PSCRUB_DATA_OUTPUT = *mut _SCRUB_DATA_OUTPUT; +pub const _SharedVirtualDiskSupportType_SharedVirtualDisksUnsupported: + _SharedVirtualDiskSupportType = 0; +pub const _SharedVirtualDiskSupportType_SharedVirtualDisksSupported: _SharedVirtualDiskSupportType = + 1; +pub const _SharedVirtualDiskSupportType_SharedVirtualDiskSnapshotsSupported: + _SharedVirtualDiskSupportType = 3; +pub const _SharedVirtualDiskSupportType_SharedVirtualDiskCDPSnapshotsSupported: + _SharedVirtualDiskSupportType = 7; +pub type _SharedVirtualDiskSupportType = ::std::os::raw::c_int; +pub use self::_SharedVirtualDiskSupportType as SharedVirtualDiskSupportType; +pub const _SharedVirtualDiskHandleState_SharedVirtualDiskHandleStateNone: + _SharedVirtualDiskHandleState = 0; +pub const _SharedVirtualDiskHandleState_SharedVirtualDiskHandleStateFileShared: + _SharedVirtualDiskHandleState = 1; +pub const _SharedVirtualDiskHandleState_SharedVirtualDiskHandleStateHandleShared: + _SharedVirtualDiskHandleState = 3; +pub type _SharedVirtualDiskHandleState = ::std::os::raw::c_int; +pub use self::_SharedVirtualDiskHandleState as SharedVirtualDiskHandleState; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SHARED_VIRTUAL_DISK_SUPPORT { + pub SharedVirtualDiskSupport: SharedVirtualDiskSupportType, + pub HandleState: SharedVirtualDiskHandleState, +} +pub type SHARED_VIRTUAL_DISK_SUPPORT = _SHARED_VIRTUAL_DISK_SUPPORT; +pub type PSHARED_VIRTUAL_DISK_SUPPORT = *mut _SHARED_VIRTUAL_DISK_SUPPORT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REARRANGE_FILE_DATA { + pub SourceStartingOffset: ULONGLONG, + pub TargetOffset: ULONGLONG, + pub SourceFileHandle: HANDLE, + pub Length: DWORD, + pub Flags: DWORD, +} +pub type REARRANGE_FILE_DATA = _REARRANGE_FILE_DATA; +pub type PREARRANGE_FILE_DATA = *mut _REARRANGE_FILE_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REARRANGE_FILE_DATA32 { + pub SourceStartingOffset: ULONGLONG, + pub TargetOffset: ULONGLONG, + pub SourceFileHandle: UINT32, + pub Length: DWORD, + pub Flags: DWORD, +} +pub type REARRANGE_FILE_DATA32 = _REARRANGE_FILE_DATA32; +pub type PREARRANGE_FILE_DATA32 = *mut _REARRANGE_FILE_DATA32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SHUFFLE_FILE_DATA { + pub StartingOffset: LONGLONG, + pub Length: LONGLONG, + pub Flags: DWORD, +} +pub type SHUFFLE_FILE_DATA = _SHUFFLE_FILE_DATA; +pub type PSHUFFLE_FILE_DATA = *mut _SHUFFLE_FILE_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NETWORK_APP_INSTANCE_EA { + pub AppInstanceID: GUID, + pub CsvFlags: DWORD, +} +pub type NETWORK_APP_INSTANCE_EA = _NETWORK_APP_INSTANCE_EA; +pub type PNETWORK_APP_INSTANCE_EA = *mut _NETWORK_APP_INSTANCE_EA; +extern "C" { + pub static GUID_MAX_POWER_SAVINGS: GUID; +} +extern "C" { + pub static GUID_MIN_POWER_SAVINGS: GUID; +} +extern "C" { + pub static GUID_TYPICAL_POWER_SAVINGS: GUID; +} +extern "C" { + pub static NO_SUBGROUP_GUID: GUID; +} +extern "C" { + pub static ALL_POWERSCHEMES_GUID: GUID; +} +extern "C" { + pub static GUID_POWERSCHEME_PERSONALITY: GUID; +} +extern "C" { + pub static GUID_ACTIVE_POWERSCHEME: GUID; +} +extern "C" { + pub static GUID_IDLE_RESILIENCY_SUBGROUP: GUID; +} +extern "C" { + pub static GUID_IDLE_RESILIENCY_PERIOD: GUID; +} +extern "C" { + pub static GUID_DEEP_SLEEP_ENABLED: GUID; +} +extern "C" { + pub static GUID_DEEP_SLEEP_PLATFORM_STATE: GUID; +} +extern "C" { + pub static GUID_DISK_COALESCING_POWERDOWN_TIMEOUT: GUID; +} +extern "C" { + pub static GUID_EXECUTION_REQUIRED_REQUEST_TIMEOUT: GUID; +} +extern "C" { + pub static GUID_VIDEO_SUBGROUP: GUID; +} +extern "C" { + pub static GUID_VIDEO_POWERDOWN_TIMEOUT: GUID; +} +extern "C" { + pub static GUID_VIDEO_ANNOYANCE_TIMEOUT: GUID; +} +extern "C" { + pub static GUID_VIDEO_ADAPTIVE_PERCENT_INCREASE: GUID; +} +extern "C" { + pub static GUID_VIDEO_DIM_TIMEOUT: GUID; +} +extern "C" { + pub static GUID_VIDEO_ADAPTIVE_POWERDOWN: GUID; +} +extern "C" { + pub static GUID_MONITOR_POWER_ON: GUID; +} +extern "C" { + pub static GUID_DEVICE_POWER_POLICY_VIDEO_BRIGHTNESS: GUID; +} +extern "C" { + pub static GUID_DEVICE_POWER_POLICY_VIDEO_DIM_BRIGHTNESS: GUID; +} +extern "C" { + pub static GUID_VIDEO_CURRENT_MONITOR_BRIGHTNESS: GUID; +} +extern "C" { + pub static GUID_VIDEO_ADAPTIVE_DISPLAY_BRIGHTNESS: GUID; +} +extern "C" { + pub static GUID_CONSOLE_DISPLAY_STATE: GUID; +} +extern "C" { + pub static GUID_ALLOW_DISPLAY_REQUIRED: GUID; +} +extern "C" { + pub static GUID_VIDEO_CONSOLE_LOCK_TIMEOUT: GUID; +} +extern "C" { + pub static GUID_ADVANCED_COLOR_QUALITY_BIAS: GUID; +} +extern "C" { + pub static GUID_ADAPTIVE_POWER_BEHAVIOR_SUBGROUP: GUID; +} +extern "C" { + pub static GUID_NON_ADAPTIVE_INPUT_TIMEOUT: GUID; +} +extern "C" { + pub static GUID_ADAPTIVE_INPUT_CONTROLLER_STATE: GUID; +} +extern "C" { + pub static GUID_DISK_SUBGROUP: GUID; +} +extern "C" { + pub static GUID_DISK_MAX_POWER: GUID; +} +extern "C" { + pub static GUID_DISK_POWERDOWN_TIMEOUT: GUID; +} +extern "C" { + pub static GUID_DISK_IDLE_TIMEOUT: GUID; +} +extern "C" { + pub static GUID_DISK_BURST_IGNORE_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_DISK_ADAPTIVE_POWERDOWN: GUID; +} +extern "C" { + pub static GUID_DISK_NVME_NOPPME: GUID; +} +extern "C" { + pub static GUID_SLEEP_SUBGROUP: GUID; +} +extern "C" { + pub static GUID_SLEEP_IDLE_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_STANDBY_TIMEOUT: GUID; +} +extern "C" { + pub static GUID_UNATTEND_SLEEP_TIMEOUT: GUID; +} +extern "C" { + pub static GUID_HIBERNATE_TIMEOUT: GUID; +} +extern "C" { + pub static GUID_HIBERNATE_FASTS4_POLICY: GUID; +} +extern "C" { + pub static GUID_CRITICAL_POWER_TRANSITION: GUID; +} +extern "C" { + pub static GUID_SYSTEM_AWAYMODE: GUID; +} +extern "C" { + pub static GUID_ALLOW_AWAYMODE: GUID; +} +extern "C" { + pub static GUID_USER_PRESENCE_PREDICTION: GUID; +} +extern "C" { + pub static GUID_STANDBY_BUDGET_GRACE_PERIOD: GUID; +} +extern "C" { + pub static GUID_STANDBY_BUDGET_PERCENT: GUID; +} +extern "C" { + pub static GUID_STANDBY_RESERVE_GRACE_PERIOD: GUID; +} +extern "C" { + pub static GUID_STANDBY_RESERVE_TIME: GUID; +} +extern "C" { + pub static GUID_STANDBY_RESET_PERCENT: GUID; +} +extern "C" { + pub static GUID_HUPR_ADAPTIVE_DISPLAY_TIMEOUT: GUID; +} +extern "C" { + pub static GUID_HUPR_ADAPTIVE_DIM_TIMEOUT: GUID; +} +extern "C" { + pub static GUID_ALLOW_STANDBY_STATES: GUID; +} +extern "C" { + pub static GUID_ALLOW_RTC_WAKE: GUID; +} +extern "C" { + pub static GUID_LEGACY_RTC_MITIGATION: GUID; +} +extern "C" { + pub static GUID_ALLOW_SYSTEM_REQUIRED: GUID; +} +extern "C" { + pub static GUID_POWER_SAVING_STATUS: GUID; +} +extern "C" { + pub static GUID_ENERGY_SAVER_SUBGROUP: GUID; +} +extern "C" { + pub static GUID_ENERGY_SAVER_BATTERY_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_ENERGY_SAVER_BRIGHTNESS: GUID; +} +extern "C" { + pub static GUID_ENERGY_SAVER_POLICY: GUID; +} +extern "C" { + pub static GUID_SYSTEM_BUTTON_SUBGROUP: GUID; +} +extern "C" { + pub static GUID_POWERBUTTON_ACTION: GUID; +} +extern "C" { + pub static GUID_SLEEPBUTTON_ACTION: GUID; +} +extern "C" { + pub static GUID_USERINTERFACEBUTTON_ACTION: GUID; +} +extern "C" { + pub static GUID_LIDCLOSE_ACTION: GUID; +} +extern "C" { + pub static GUID_LIDOPEN_POWERSTATE: GUID; +} +extern "C" { + pub static GUID_BATTERY_SUBGROUP: GUID; +} +extern "C" { + pub static GUID_BATTERY_DISCHARGE_ACTION_0: GUID; +} +extern "C" { + pub static GUID_BATTERY_DISCHARGE_LEVEL_0: GUID; +} +extern "C" { + pub static GUID_BATTERY_DISCHARGE_FLAGS_0: GUID; +} +extern "C" { + pub static GUID_BATTERY_DISCHARGE_ACTION_1: GUID; +} +extern "C" { + pub static GUID_BATTERY_DISCHARGE_LEVEL_1: GUID; +} +extern "C" { + pub static GUID_BATTERY_DISCHARGE_FLAGS_1: GUID; +} +extern "C" { + pub static GUID_BATTERY_DISCHARGE_ACTION_2: GUID; +} +extern "C" { + pub static GUID_BATTERY_DISCHARGE_LEVEL_2: GUID; +} +extern "C" { + pub static GUID_BATTERY_DISCHARGE_FLAGS_2: GUID; +} +extern "C" { + pub static GUID_BATTERY_DISCHARGE_ACTION_3: GUID; +} +extern "C" { + pub static GUID_BATTERY_DISCHARGE_LEVEL_3: GUID; +} +extern "C" { + pub static GUID_BATTERY_DISCHARGE_FLAGS_3: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_SETTINGS_SUBGROUP: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_THROTTLE_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_THROTTLE_MAXIMUM: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_THROTTLE_MAXIMUM_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_THROTTLE_MINIMUM: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_THROTTLE_MINIMUM_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_FREQUENCY_LIMIT: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_FREQUENCY_LIMIT_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_ALLOW_THROTTLING: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_IDLESTATE_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERFSTATE_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_INCREASE_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_INCREASE_THRESHOLD_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_DECREASE_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_DECREASE_THRESHOLD_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_INCREASE_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_INCREASE_POLICY_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_DECREASE_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_DECREASE_POLICY_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_INCREASE_TIME: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_INCREASE_TIME_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_DECREASE_TIME: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_DECREASE_TIME_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_TIME_CHECK: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_BOOST_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_BOOST_MODE: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_AUTONOMOUS_MODE: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_AUTONOMOUS_ACTIVITY_WINDOW: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_DUTY_CYCLING: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_IDLE_ALLOW_SCALING: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_IDLE_DISABLE: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_IDLE_STATE_MAXIMUM: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_IDLE_TIME_CHECK: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_IDLE_DEMOTE_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_IDLE_PROMOTE_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_INCREASE_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_DECREASE_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_INCREASE_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_DECREASE_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_MAX_CORES: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_MAX_CORES_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_MIN_CORES: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_MIN_CORES_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_INCREASE_TIME: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_DECREASE_TIME: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_DECREASE_FACTOR: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_AFFINITY_WEIGHTING: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_DECREASE_FACTOR: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_WEIGHTING: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PARKING_CORE_OVERRIDE: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PARKING_PERF_STATE: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PARKING_PERF_STATE_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PARKING_CONCURRENCY_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PARKING_HEADROOM_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PARKING_DISTRIBUTION_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_SOFT_PARKING_LATENCY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_HISTORY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_HISTORY_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_INCREASE_HISTORY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_DECREASE_HISTORY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_CORE_PARKING_HISTORY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_LATENCY_HINT: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_LATENCY_HINT_PERF: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_PERF_LATENCY_HINT_PERF_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_MODULE_PARKING_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_COMPLEX_PARKING_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_SMT_UNPARKING_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_DISTRIBUTE_UTILITY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_HETEROGENEOUS_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_HETERO_DECREASE_TIME: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_HETERO_INCREASE_TIME: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_HETERO_DECREASE_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_HETERO_DECREASE_THRESHOLD_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_HETERO_INCREASE_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_HETERO_INCREASE_THRESHOLD_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CLASS0_FLOOR_PERF: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_CLASS1_INITIAL_PERF: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_THREAD_SCHEDULING_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_SHORT_THREAD_SCHEDULING_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_SHORT_THREAD_RUNTIME_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_SHORT_THREAD_ARCH_CLASS_UPPER_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_SHORT_THREAD_ARCH_CLASS_LOWER_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_LONG_THREAD_ARCH_CLASS_UPPER_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_LONG_THREAD_ARCH_CLASS_LOWER_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_SYSTEM_COOLING_POLICY: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING_1: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR: GUID; +} +extern "C" { + pub static GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR_1: GUID; +} +extern "C" { + pub static GUID_LOCK_CONSOLE_ON_WAKE: GUID; +} +extern "C" { + pub static GUID_DEVICE_IDLE_POLICY: GUID; +} +extern "C" { + pub static GUID_CONNECTIVITY_IN_STANDBY: GUID; +} +extern "C" { + pub static GUID_DISCONNECTED_STANDBY_MODE: GUID; +} +extern "C" { + pub static GUID_ACDC_POWER_SOURCE: GUID; +} +extern "C" { + pub static GUID_LIDSWITCH_STATE_CHANGE: GUID; +} +extern "C" { + pub static GUID_LIDSWITCH_STATE_RELIABILITY: GUID; +} +extern "C" { + pub static GUID_BATTERY_PERCENTAGE_REMAINING: GUID; +} +extern "C" { + pub static GUID_BATTERY_COUNT: GUID; +} +extern "C" { + pub static GUID_GLOBAL_USER_PRESENCE: GUID; +} +extern "C" { + pub static GUID_SESSION_DISPLAY_STATUS: GUID; +} +extern "C" { + pub static GUID_SESSION_USER_PRESENCE: GUID; +} +extern "C" { + pub static GUID_IDLE_BACKGROUND_TASK: GUID; +} +extern "C" { + pub static GUID_BACKGROUND_TASK_NOTIFICATION: GUID; +} +extern "C" { + pub static GUID_APPLAUNCH_BUTTON: GUID; +} +extern "C" { + pub static GUID_PCIEXPRESS_SETTINGS_SUBGROUP: GUID; +} +extern "C" { + pub static GUID_PCIEXPRESS_ASPM_POLICY: GUID; +} +extern "C" { + pub static GUID_ENABLE_SWITCH_FORCED_SHUTDOWN: GUID; +} +extern "C" { + pub static GUID_INTSTEER_SUBGROUP: GUID; +} +extern "C" { + pub static GUID_INTSTEER_MODE: GUID; +} +extern "C" { + pub static GUID_INTSTEER_LOAD_PER_PROC_TRIGGER: GUID; +} +extern "C" { + pub static GUID_INTSTEER_TIME_UNPARK_TRIGGER: GUID; +} +extern "C" { + pub static GUID_GRAPHICS_SUBGROUP: GUID; +} +extern "C" { + pub static GUID_GPU_PREFERENCE_POLICY: GUID; +} +extern "C" { + pub static GUID_MIXED_REALITY_MODE: GUID; +} +extern "C" { + pub static GUID_SPR_ACTIVE_SESSION_CHANGE: GUID; +} +pub const _SYSTEM_POWER_STATE_PowerSystemUnspecified: _SYSTEM_POWER_STATE = 0; +pub const _SYSTEM_POWER_STATE_PowerSystemWorking: _SYSTEM_POWER_STATE = 1; +pub const _SYSTEM_POWER_STATE_PowerSystemSleeping1: _SYSTEM_POWER_STATE = 2; +pub const _SYSTEM_POWER_STATE_PowerSystemSleeping2: _SYSTEM_POWER_STATE = 3; +pub const _SYSTEM_POWER_STATE_PowerSystemSleeping3: _SYSTEM_POWER_STATE = 4; +pub const _SYSTEM_POWER_STATE_PowerSystemHibernate: _SYSTEM_POWER_STATE = 5; +pub const _SYSTEM_POWER_STATE_PowerSystemShutdown: _SYSTEM_POWER_STATE = 6; +pub const _SYSTEM_POWER_STATE_PowerSystemMaximum: _SYSTEM_POWER_STATE = 7; +pub type _SYSTEM_POWER_STATE = ::std::os::raw::c_int; +pub use self::_SYSTEM_POWER_STATE as SYSTEM_POWER_STATE; +pub type PSYSTEM_POWER_STATE = *mut _SYSTEM_POWER_STATE; +pub const POWER_ACTION_PowerActionNone: POWER_ACTION = 0; +pub const POWER_ACTION_PowerActionReserved: POWER_ACTION = 1; +pub const POWER_ACTION_PowerActionSleep: POWER_ACTION = 2; +pub const POWER_ACTION_PowerActionHibernate: POWER_ACTION = 3; +pub const POWER_ACTION_PowerActionShutdown: POWER_ACTION = 4; +pub const POWER_ACTION_PowerActionShutdownReset: POWER_ACTION = 5; +pub const POWER_ACTION_PowerActionShutdownOff: POWER_ACTION = 6; +pub const POWER_ACTION_PowerActionWarmEject: POWER_ACTION = 7; +pub const POWER_ACTION_PowerActionDisplayOff: POWER_ACTION = 8; +pub type POWER_ACTION = ::std::os::raw::c_int; +pub type PPOWER_ACTION = *mut POWER_ACTION; +pub const _DEVICE_POWER_STATE_PowerDeviceUnspecified: _DEVICE_POWER_STATE = 0; +pub const _DEVICE_POWER_STATE_PowerDeviceD0: _DEVICE_POWER_STATE = 1; +pub const _DEVICE_POWER_STATE_PowerDeviceD1: _DEVICE_POWER_STATE = 2; +pub const _DEVICE_POWER_STATE_PowerDeviceD2: _DEVICE_POWER_STATE = 3; +pub const _DEVICE_POWER_STATE_PowerDeviceD3: _DEVICE_POWER_STATE = 4; +pub const _DEVICE_POWER_STATE_PowerDeviceMaximum: _DEVICE_POWER_STATE = 5; +pub type _DEVICE_POWER_STATE = ::std::os::raw::c_int; +pub use self::_DEVICE_POWER_STATE as DEVICE_POWER_STATE; +pub type PDEVICE_POWER_STATE = *mut _DEVICE_POWER_STATE; +pub const _MONITOR_DISPLAY_STATE_PowerMonitorOff: _MONITOR_DISPLAY_STATE = 0; +pub const _MONITOR_DISPLAY_STATE_PowerMonitorOn: _MONITOR_DISPLAY_STATE = 1; +pub const _MONITOR_DISPLAY_STATE_PowerMonitorDim: _MONITOR_DISPLAY_STATE = 2; +pub type _MONITOR_DISPLAY_STATE = ::std::os::raw::c_int; +pub use self::_MONITOR_DISPLAY_STATE as MONITOR_DISPLAY_STATE; +pub type PMONITOR_DISPLAY_STATE = *mut _MONITOR_DISPLAY_STATE; +pub const _USER_ACTIVITY_PRESENCE_PowerUserPresent: _USER_ACTIVITY_PRESENCE = 0; +pub const _USER_ACTIVITY_PRESENCE_PowerUserNotPresent: _USER_ACTIVITY_PRESENCE = 1; +pub const _USER_ACTIVITY_PRESENCE_PowerUserInactive: _USER_ACTIVITY_PRESENCE = 2; +pub const _USER_ACTIVITY_PRESENCE_PowerUserMaximum: _USER_ACTIVITY_PRESENCE = 3; +pub const _USER_ACTIVITY_PRESENCE_PowerUserInvalid: _USER_ACTIVITY_PRESENCE = 3; +pub type _USER_ACTIVITY_PRESENCE = ::std::os::raw::c_int; +pub use self::_USER_ACTIVITY_PRESENCE as USER_ACTIVITY_PRESENCE; +pub type PUSER_ACTIVITY_PRESENCE = *mut _USER_ACTIVITY_PRESENCE; +pub type EXECUTION_STATE = DWORD; +pub type PEXECUTION_STATE = *mut DWORD; +pub const LATENCY_TIME_LT_DONT_CARE: LATENCY_TIME = 0; +pub const LATENCY_TIME_LT_LOWEST_LATENCY: LATENCY_TIME = 1; +pub type LATENCY_TIME = ::std::os::raw::c_int; +pub const _POWER_REQUEST_TYPE_PowerRequestDisplayRequired: _POWER_REQUEST_TYPE = 0; +pub const _POWER_REQUEST_TYPE_PowerRequestSystemRequired: _POWER_REQUEST_TYPE = 1; +pub const _POWER_REQUEST_TYPE_PowerRequestAwayModeRequired: _POWER_REQUEST_TYPE = 2; +pub const _POWER_REQUEST_TYPE_PowerRequestExecutionRequired: _POWER_REQUEST_TYPE = 3; +pub type _POWER_REQUEST_TYPE = ::std::os::raw::c_int; +pub use self::_POWER_REQUEST_TYPE as POWER_REQUEST_TYPE; +pub type PPOWER_REQUEST_TYPE = *mut _POWER_REQUEST_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CM_Power_Data_s { + pub PD_Size: DWORD, + pub PD_MostRecentPowerState: DEVICE_POWER_STATE, + pub PD_Capabilities: DWORD, + pub PD_D1Latency: DWORD, + pub PD_D2Latency: DWORD, + pub PD_D3Latency: DWORD, + pub PD_PowerStateMapping: [DEVICE_POWER_STATE; 7usize], + pub PD_DeepestSystemWake: SYSTEM_POWER_STATE, +} +pub type CM_POWER_DATA = CM_Power_Data_s; +pub type PCM_POWER_DATA = *mut CM_Power_Data_s; +pub const POWER_INFORMATION_LEVEL_SystemPowerPolicyAc: POWER_INFORMATION_LEVEL = 0; +pub const POWER_INFORMATION_LEVEL_SystemPowerPolicyDc: POWER_INFORMATION_LEVEL = 1; +pub const POWER_INFORMATION_LEVEL_VerifySystemPolicyAc: POWER_INFORMATION_LEVEL = 2; +pub const POWER_INFORMATION_LEVEL_VerifySystemPolicyDc: POWER_INFORMATION_LEVEL = 3; +pub const POWER_INFORMATION_LEVEL_SystemPowerCapabilities: POWER_INFORMATION_LEVEL = 4; +pub const POWER_INFORMATION_LEVEL_SystemBatteryState: POWER_INFORMATION_LEVEL = 5; +pub const POWER_INFORMATION_LEVEL_SystemPowerStateHandler: POWER_INFORMATION_LEVEL = 6; +pub const POWER_INFORMATION_LEVEL_ProcessorStateHandler: POWER_INFORMATION_LEVEL = 7; +pub const POWER_INFORMATION_LEVEL_SystemPowerPolicyCurrent: POWER_INFORMATION_LEVEL = 8; +pub const POWER_INFORMATION_LEVEL_AdministratorPowerPolicy: POWER_INFORMATION_LEVEL = 9; +pub const POWER_INFORMATION_LEVEL_SystemReserveHiberFile: POWER_INFORMATION_LEVEL = 10; +pub const POWER_INFORMATION_LEVEL_ProcessorInformation: POWER_INFORMATION_LEVEL = 11; +pub const POWER_INFORMATION_LEVEL_SystemPowerInformation: POWER_INFORMATION_LEVEL = 12; +pub const POWER_INFORMATION_LEVEL_ProcessorStateHandler2: POWER_INFORMATION_LEVEL = 13; +pub const POWER_INFORMATION_LEVEL_LastWakeTime: POWER_INFORMATION_LEVEL = 14; +pub const POWER_INFORMATION_LEVEL_LastSleepTime: POWER_INFORMATION_LEVEL = 15; +pub const POWER_INFORMATION_LEVEL_SystemExecutionState: POWER_INFORMATION_LEVEL = 16; +pub const POWER_INFORMATION_LEVEL_SystemPowerStateNotifyHandler: POWER_INFORMATION_LEVEL = 17; +pub const POWER_INFORMATION_LEVEL_ProcessorPowerPolicyAc: POWER_INFORMATION_LEVEL = 18; +pub const POWER_INFORMATION_LEVEL_ProcessorPowerPolicyDc: POWER_INFORMATION_LEVEL = 19; +pub const POWER_INFORMATION_LEVEL_VerifyProcessorPowerPolicyAc: POWER_INFORMATION_LEVEL = 20; +pub const POWER_INFORMATION_LEVEL_VerifyProcessorPowerPolicyDc: POWER_INFORMATION_LEVEL = 21; +pub const POWER_INFORMATION_LEVEL_ProcessorPowerPolicyCurrent: POWER_INFORMATION_LEVEL = 22; +pub const POWER_INFORMATION_LEVEL_SystemPowerStateLogging: POWER_INFORMATION_LEVEL = 23; +pub const POWER_INFORMATION_LEVEL_SystemPowerLoggingEntry: POWER_INFORMATION_LEVEL = 24; +pub const POWER_INFORMATION_LEVEL_SetPowerSettingValue: POWER_INFORMATION_LEVEL = 25; +pub const POWER_INFORMATION_LEVEL_NotifyUserPowerSetting: POWER_INFORMATION_LEVEL = 26; +pub const POWER_INFORMATION_LEVEL_PowerInformationLevelUnused0: POWER_INFORMATION_LEVEL = 27; +pub const POWER_INFORMATION_LEVEL_SystemMonitorHiberBootPowerOff: POWER_INFORMATION_LEVEL = 28; +pub const POWER_INFORMATION_LEVEL_SystemVideoState: POWER_INFORMATION_LEVEL = 29; +pub const POWER_INFORMATION_LEVEL_TraceApplicationPowerMessage: POWER_INFORMATION_LEVEL = 30; +pub const POWER_INFORMATION_LEVEL_TraceApplicationPowerMessageEnd: POWER_INFORMATION_LEVEL = 31; +pub const POWER_INFORMATION_LEVEL_ProcessorPerfStates: POWER_INFORMATION_LEVEL = 32; +pub const POWER_INFORMATION_LEVEL_ProcessorIdleStates: POWER_INFORMATION_LEVEL = 33; +pub const POWER_INFORMATION_LEVEL_ProcessorCap: POWER_INFORMATION_LEVEL = 34; +pub const POWER_INFORMATION_LEVEL_SystemWakeSource: POWER_INFORMATION_LEVEL = 35; +pub const POWER_INFORMATION_LEVEL_SystemHiberFileInformation: POWER_INFORMATION_LEVEL = 36; +pub const POWER_INFORMATION_LEVEL_TraceServicePowerMessage: POWER_INFORMATION_LEVEL = 37; +pub const POWER_INFORMATION_LEVEL_ProcessorLoad: POWER_INFORMATION_LEVEL = 38; +pub const POWER_INFORMATION_LEVEL_PowerShutdownNotification: POWER_INFORMATION_LEVEL = 39; +pub const POWER_INFORMATION_LEVEL_MonitorCapabilities: POWER_INFORMATION_LEVEL = 40; +pub const POWER_INFORMATION_LEVEL_SessionPowerInit: POWER_INFORMATION_LEVEL = 41; +pub const POWER_INFORMATION_LEVEL_SessionDisplayState: POWER_INFORMATION_LEVEL = 42; +pub const POWER_INFORMATION_LEVEL_PowerRequestCreate: POWER_INFORMATION_LEVEL = 43; +pub const POWER_INFORMATION_LEVEL_PowerRequestAction: POWER_INFORMATION_LEVEL = 44; +pub const POWER_INFORMATION_LEVEL_GetPowerRequestList: POWER_INFORMATION_LEVEL = 45; +pub const POWER_INFORMATION_LEVEL_ProcessorInformationEx: POWER_INFORMATION_LEVEL = 46; +pub const POWER_INFORMATION_LEVEL_NotifyUserModeLegacyPowerEvent: POWER_INFORMATION_LEVEL = 47; +pub const POWER_INFORMATION_LEVEL_GroupPark: POWER_INFORMATION_LEVEL = 48; +pub const POWER_INFORMATION_LEVEL_ProcessorIdleDomains: POWER_INFORMATION_LEVEL = 49; +pub const POWER_INFORMATION_LEVEL_WakeTimerList: POWER_INFORMATION_LEVEL = 50; +pub const POWER_INFORMATION_LEVEL_SystemHiberFileSize: POWER_INFORMATION_LEVEL = 51; +pub const POWER_INFORMATION_LEVEL_ProcessorIdleStatesHv: POWER_INFORMATION_LEVEL = 52; +pub const POWER_INFORMATION_LEVEL_ProcessorPerfStatesHv: POWER_INFORMATION_LEVEL = 53; +pub const POWER_INFORMATION_LEVEL_ProcessorPerfCapHv: POWER_INFORMATION_LEVEL = 54; +pub const POWER_INFORMATION_LEVEL_ProcessorSetIdle: POWER_INFORMATION_LEVEL = 55; +pub const POWER_INFORMATION_LEVEL_LogicalProcessorIdling: POWER_INFORMATION_LEVEL = 56; +pub const POWER_INFORMATION_LEVEL_UserPresence: POWER_INFORMATION_LEVEL = 57; +pub const POWER_INFORMATION_LEVEL_PowerSettingNotificationName: POWER_INFORMATION_LEVEL = 58; +pub const POWER_INFORMATION_LEVEL_GetPowerSettingValue: POWER_INFORMATION_LEVEL = 59; +pub const POWER_INFORMATION_LEVEL_IdleResiliency: POWER_INFORMATION_LEVEL = 60; +pub const POWER_INFORMATION_LEVEL_SessionRITState: POWER_INFORMATION_LEVEL = 61; +pub const POWER_INFORMATION_LEVEL_SessionConnectNotification: POWER_INFORMATION_LEVEL = 62; +pub const POWER_INFORMATION_LEVEL_SessionPowerCleanup: POWER_INFORMATION_LEVEL = 63; +pub const POWER_INFORMATION_LEVEL_SessionLockState: POWER_INFORMATION_LEVEL = 64; +pub const POWER_INFORMATION_LEVEL_SystemHiberbootState: POWER_INFORMATION_LEVEL = 65; +pub const POWER_INFORMATION_LEVEL_PlatformInformation: POWER_INFORMATION_LEVEL = 66; +pub const POWER_INFORMATION_LEVEL_PdcInvocation: POWER_INFORMATION_LEVEL = 67; +pub const POWER_INFORMATION_LEVEL_MonitorInvocation: POWER_INFORMATION_LEVEL = 68; +pub const POWER_INFORMATION_LEVEL_FirmwareTableInformationRegistered: POWER_INFORMATION_LEVEL = 69; +pub const POWER_INFORMATION_LEVEL_SetShutdownSelectedTime: POWER_INFORMATION_LEVEL = 70; +pub const POWER_INFORMATION_LEVEL_SuspendResumeInvocation: POWER_INFORMATION_LEVEL = 71; +pub const POWER_INFORMATION_LEVEL_PlmPowerRequestCreate: POWER_INFORMATION_LEVEL = 72; +pub const POWER_INFORMATION_LEVEL_ScreenOff: POWER_INFORMATION_LEVEL = 73; +pub const POWER_INFORMATION_LEVEL_CsDeviceNotification: POWER_INFORMATION_LEVEL = 74; +pub const POWER_INFORMATION_LEVEL_PlatformRole: POWER_INFORMATION_LEVEL = 75; +pub const POWER_INFORMATION_LEVEL_LastResumePerformance: POWER_INFORMATION_LEVEL = 76; +pub const POWER_INFORMATION_LEVEL_DisplayBurst: POWER_INFORMATION_LEVEL = 77; +pub const POWER_INFORMATION_LEVEL_ExitLatencySamplingPercentage: POWER_INFORMATION_LEVEL = 78; +pub const POWER_INFORMATION_LEVEL_RegisterSpmPowerSettings: POWER_INFORMATION_LEVEL = 79; +pub const POWER_INFORMATION_LEVEL_PlatformIdleStates: POWER_INFORMATION_LEVEL = 80; +pub const POWER_INFORMATION_LEVEL_ProcessorIdleVeto: POWER_INFORMATION_LEVEL = 81; +pub const POWER_INFORMATION_LEVEL_PlatformIdleVeto: POWER_INFORMATION_LEVEL = 82; +pub const POWER_INFORMATION_LEVEL_SystemBatteryStatePrecise: POWER_INFORMATION_LEVEL = 83; +pub const POWER_INFORMATION_LEVEL_ThermalEvent: POWER_INFORMATION_LEVEL = 84; +pub const POWER_INFORMATION_LEVEL_PowerRequestActionInternal: POWER_INFORMATION_LEVEL = 85; +pub const POWER_INFORMATION_LEVEL_BatteryDeviceState: POWER_INFORMATION_LEVEL = 86; +pub const POWER_INFORMATION_LEVEL_PowerInformationInternal: POWER_INFORMATION_LEVEL = 87; +pub const POWER_INFORMATION_LEVEL_ThermalStandby: POWER_INFORMATION_LEVEL = 88; +pub const POWER_INFORMATION_LEVEL_SystemHiberFileType: POWER_INFORMATION_LEVEL = 89; +pub const POWER_INFORMATION_LEVEL_PhysicalPowerButtonPress: POWER_INFORMATION_LEVEL = 90; +pub const POWER_INFORMATION_LEVEL_QueryPotentialDripsConstraint: POWER_INFORMATION_LEVEL = 91; +pub const POWER_INFORMATION_LEVEL_EnergyTrackerCreate: POWER_INFORMATION_LEVEL = 92; +pub const POWER_INFORMATION_LEVEL_EnergyTrackerQuery: POWER_INFORMATION_LEVEL = 93; +pub const POWER_INFORMATION_LEVEL_UpdateBlackBoxRecorder: POWER_INFORMATION_LEVEL = 94; +pub const POWER_INFORMATION_LEVEL_SessionAllowExternalDmaDevices: POWER_INFORMATION_LEVEL = 95; +pub const POWER_INFORMATION_LEVEL_SendSuspendResumeNotification: POWER_INFORMATION_LEVEL = 96; +pub const POWER_INFORMATION_LEVEL_BlackBoxRecorderDirectAccessBuffer: POWER_INFORMATION_LEVEL = 97; +pub const POWER_INFORMATION_LEVEL_PowerInformationLevelMaximum: POWER_INFORMATION_LEVEL = 98; +pub type POWER_INFORMATION_LEVEL = ::std::os::raw::c_int; +pub const POWER_USER_PRESENCE_TYPE_UserNotPresent: POWER_USER_PRESENCE_TYPE = 0; +pub const POWER_USER_PRESENCE_TYPE_UserPresent: POWER_USER_PRESENCE_TYPE = 1; +pub const POWER_USER_PRESENCE_TYPE_UserUnknown: POWER_USER_PRESENCE_TYPE = 255; +pub type POWER_USER_PRESENCE_TYPE = ::std::os::raw::c_int; +pub type PPOWER_USER_PRESENCE_TYPE = *mut POWER_USER_PRESENCE_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _POWER_USER_PRESENCE { + pub UserPresence: POWER_USER_PRESENCE_TYPE, +} +pub type POWER_USER_PRESENCE = _POWER_USER_PRESENCE; +pub type PPOWER_USER_PRESENCE = *mut _POWER_USER_PRESENCE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _POWER_SESSION_CONNECT { + pub Connected: BOOLEAN, + pub Console: BOOLEAN, +} +pub type POWER_SESSION_CONNECT = _POWER_SESSION_CONNECT; +pub type PPOWER_SESSION_CONNECT = *mut _POWER_SESSION_CONNECT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _POWER_SESSION_TIMEOUTS { + pub InputTimeout: DWORD, + pub DisplayTimeout: DWORD, +} +pub type POWER_SESSION_TIMEOUTS = _POWER_SESSION_TIMEOUTS; +pub type PPOWER_SESSION_TIMEOUTS = *mut _POWER_SESSION_TIMEOUTS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _POWER_SESSION_RIT_STATE { + pub Active: BOOLEAN, + pub LastInputTime: DWORD64, +} +pub type POWER_SESSION_RIT_STATE = _POWER_SESSION_RIT_STATE; +pub type PPOWER_SESSION_RIT_STATE = *mut _POWER_SESSION_RIT_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _POWER_SESSION_WINLOGON { + pub SessionId: DWORD, + pub Console: BOOLEAN, + pub Locked: BOOLEAN, +} +pub type POWER_SESSION_WINLOGON = _POWER_SESSION_WINLOGON; +pub type PPOWER_SESSION_WINLOGON = *mut _POWER_SESSION_WINLOGON; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES { + pub IsAllowed: BOOLEAN, +} +pub type POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES = _POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES; +pub type PPOWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES = *mut _POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _POWER_IDLE_RESILIENCY { + pub CoalescingTimeout: DWORD, + pub IdleResiliencyPeriod: DWORD, +} +pub type POWER_IDLE_RESILIENCY = _POWER_IDLE_RESILIENCY; +pub type PPOWER_IDLE_RESILIENCY = *mut _POWER_IDLE_RESILIENCY; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUnknown: POWER_MONITOR_REQUEST_REASON = + 0; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPowerButton: + POWER_MONITOR_REQUEST_REASON = 1; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonRemoteConnection: + POWER_MONITOR_REQUEST_REASON = 2; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonScMonitorpower: + POWER_MONITOR_REQUEST_REASON = 3; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInput: POWER_MONITOR_REQUEST_REASON = + 4; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonAcDcDisplayBurst: + POWER_MONITOR_REQUEST_REASON = 5; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserDisplayBurst: + POWER_MONITOR_REQUEST_REASON = 6; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPoSetSystemState: + POWER_MONITOR_REQUEST_REASON = 7; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonSetThreadExecutionState: + POWER_MONITOR_REQUEST_REASON = 8; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonFullWake: POWER_MONITOR_REQUEST_REASON = + 9; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonSessionUnlock: + POWER_MONITOR_REQUEST_REASON = 10; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonScreenOffRequest: + POWER_MONITOR_REQUEST_REASON = 11; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonIdleTimeout: + POWER_MONITOR_REQUEST_REASON = 12; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPolicyChange: + POWER_MONITOR_REQUEST_REASON = 13; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonSleepButton: + POWER_MONITOR_REQUEST_REASON = 14; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonLid: POWER_MONITOR_REQUEST_REASON = 15; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonBatteryCountChange: + POWER_MONITOR_REQUEST_REASON = 16; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonGracePeriod: + POWER_MONITOR_REQUEST_REASON = 17; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPnP: POWER_MONITOR_REQUEST_REASON = 18; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonDP: POWER_MONITOR_REQUEST_REASON = 19; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonSxTransition: + POWER_MONITOR_REQUEST_REASON = 20; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonSystemIdle: + POWER_MONITOR_REQUEST_REASON = 21; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonNearProximity: + POWER_MONITOR_REQUEST_REASON = 22; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonThermalStandby: + POWER_MONITOR_REQUEST_REASON = 23; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonResumePdc: POWER_MONITOR_REQUEST_REASON = + 24; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonResumeS4: POWER_MONITOR_REQUEST_REASON = + 25; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonTerminal: POWER_MONITOR_REQUEST_REASON = + 26; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPdcSignal: POWER_MONITOR_REQUEST_REASON = + 27; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonAcDcDisplayBurstSuppressed: + POWER_MONITOR_REQUEST_REASON = 28; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonSystemStateEntered: + POWER_MONITOR_REQUEST_REASON = 29; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonWinrt: POWER_MONITOR_REQUEST_REASON = 30; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputKeyboard: + POWER_MONITOR_REQUEST_REASON = 31; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputMouse: + POWER_MONITOR_REQUEST_REASON = 32; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputTouchpad: + POWER_MONITOR_REQUEST_REASON = 33; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputPen: + POWER_MONITOR_REQUEST_REASON = 34; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputAccelerometer: + POWER_MONITOR_REQUEST_REASON = 35; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputHid: + POWER_MONITOR_REQUEST_REASON = 36; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputPoUserPresent: + POWER_MONITOR_REQUEST_REASON = 37; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputSessionSwitch: + POWER_MONITOR_REQUEST_REASON = 38; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputInitialization: + POWER_MONITOR_REQUEST_REASON = 39; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPdcSignalWindowsMobilePwrNotif: + POWER_MONITOR_REQUEST_REASON = 40; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPdcSignalWindowsMobileShell: + POWER_MONITOR_REQUEST_REASON = 41; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPdcSignalHeyCortana: + POWER_MONITOR_REQUEST_REASON = 42; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPdcSignalHolographicShell: + POWER_MONITOR_REQUEST_REASON = 43; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPdcSignalFingerprint: + POWER_MONITOR_REQUEST_REASON = 44; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonDirectedDrips: + POWER_MONITOR_REQUEST_REASON = 45; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonDim: POWER_MONITOR_REQUEST_REASON = 46; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonBuiltinPanel: + POWER_MONITOR_REQUEST_REASON = 47; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonDisplayRequiredUnDim: + POWER_MONITOR_REQUEST_REASON = 48; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonBatteryCountChangeSuppressed: + POWER_MONITOR_REQUEST_REASON = 49; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonResumeModernStandby: + POWER_MONITOR_REQUEST_REASON = 50; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonTerminalInit: + POWER_MONITOR_REQUEST_REASON = 51; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPdcSignalSensorsHumanPresence: + POWER_MONITOR_REQUEST_REASON = 52; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonBatteryPreCritical: + POWER_MONITOR_REQUEST_REASON = 53; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputTouch: + POWER_MONITOR_REQUEST_REASON = 54; +pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonMax: POWER_MONITOR_REQUEST_REASON = 55; +pub type POWER_MONITOR_REQUEST_REASON = ::std::os::raw::c_int; +pub const _POWER_MONITOR_REQUEST_TYPE_MonitorRequestTypeOff: _POWER_MONITOR_REQUEST_TYPE = 0; +pub const _POWER_MONITOR_REQUEST_TYPE_MonitorRequestTypeOnAndPresent: _POWER_MONITOR_REQUEST_TYPE = + 1; +pub const _POWER_MONITOR_REQUEST_TYPE_MonitorRequestTypeToggleOn: _POWER_MONITOR_REQUEST_TYPE = 2; +pub type _POWER_MONITOR_REQUEST_TYPE = ::std::os::raw::c_int; +pub use self::_POWER_MONITOR_REQUEST_TYPE as POWER_MONITOR_REQUEST_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _POWER_MONITOR_INVOCATION { + pub Console: BOOLEAN, + pub RequestReason: POWER_MONITOR_REQUEST_REASON, +} +pub type POWER_MONITOR_INVOCATION = _POWER_MONITOR_INVOCATION; +pub type PPOWER_MONITOR_INVOCATION = *mut _POWER_MONITOR_INVOCATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RESUME_PERFORMANCE { + pub PostTimeMs: DWORD, + pub TotalResumeTimeMs: ULONGLONG, + pub ResumeCompleteTimestamp: ULONGLONG, +} +pub type RESUME_PERFORMANCE = _RESUME_PERFORMANCE; +pub type PRESUME_PERFORMANCE = *mut _RESUME_PERFORMANCE; +pub const SYSTEM_POWER_CONDITION_PoAc: SYSTEM_POWER_CONDITION = 0; +pub const SYSTEM_POWER_CONDITION_PoDc: SYSTEM_POWER_CONDITION = 1; +pub const SYSTEM_POWER_CONDITION_PoHot: SYSTEM_POWER_CONDITION = 2; +pub const SYSTEM_POWER_CONDITION_PoConditionMaximum: SYSTEM_POWER_CONDITION = 3; +pub type SYSTEM_POWER_CONDITION = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SET_POWER_SETTING_VALUE { + pub Version: DWORD, + pub Guid: GUID, + pub PowerCondition: SYSTEM_POWER_CONDITION, + pub DataLength: DWORD, + pub Data: [BYTE; 1usize], +} +pub type PSET_POWER_SETTING_VALUE = *mut SET_POWER_SETTING_VALUE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NOTIFY_USER_POWER_SETTING { + pub Guid: GUID, +} +pub type PNOTIFY_USER_POWER_SETTING = *mut NOTIFY_USER_POWER_SETTING; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _APPLICATIONLAUNCH_SETTING_VALUE { + pub ActivationTime: LARGE_INTEGER, + pub Flags: DWORD, + pub ButtonInstanceID: DWORD, +} +pub type APPLICATIONLAUNCH_SETTING_VALUE = _APPLICATIONLAUNCH_SETTING_VALUE; +pub type PAPPLICATIONLAUNCH_SETTING_VALUE = *mut _APPLICATIONLAUNCH_SETTING_VALUE; +pub const _POWER_PLATFORM_ROLE_PlatformRoleUnspecified: _POWER_PLATFORM_ROLE = 0; +pub const _POWER_PLATFORM_ROLE_PlatformRoleDesktop: _POWER_PLATFORM_ROLE = 1; +pub const _POWER_PLATFORM_ROLE_PlatformRoleMobile: _POWER_PLATFORM_ROLE = 2; +pub const _POWER_PLATFORM_ROLE_PlatformRoleWorkstation: _POWER_PLATFORM_ROLE = 3; +pub const _POWER_PLATFORM_ROLE_PlatformRoleEnterpriseServer: _POWER_PLATFORM_ROLE = 4; +pub const _POWER_PLATFORM_ROLE_PlatformRoleSOHOServer: _POWER_PLATFORM_ROLE = 5; +pub const _POWER_PLATFORM_ROLE_PlatformRoleAppliancePC: _POWER_PLATFORM_ROLE = 6; +pub const _POWER_PLATFORM_ROLE_PlatformRolePerformanceServer: _POWER_PLATFORM_ROLE = 7; +pub const _POWER_PLATFORM_ROLE_PlatformRoleSlate: _POWER_PLATFORM_ROLE = 8; +pub const _POWER_PLATFORM_ROLE_PlatformRoleMaximum: _POWER_PLATFORM_ROLE = 9; +pub type _POWER_PLATFORM_ROLE = ::std::os::raw::c_int; +pub use self::_POWER_PLATFORM_ROLE as POWER_PLATFORM_ROLE; +pub type PPOWER_PLATFORM_ROLE = *mut _POWER_PLATFORM_ROLE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _POWER_PLATFORM_INFORMATION { + pub AoAc: BOOLEAN, +} +pub type POWER_PLATFORM_INFORMATION = _POWER_PLATFORM_INFORMATION; +pub type PPOWER_PLATFORM_INFORMATION = *mut _POWER_PLATFORM_INFORMATION; +pub const POWER_SETTING_ALTITUDE_ALTITUDE_GROUP_POLICY: POWER_SETTING_ALTITUDE = 0; +pub const POWER_SETTING_ALTITUDE_ALTITUDE_USER: POWER_SETTING_ALTITUDE = 1; +pub const POWER_SETTING_ALTITUDE_ALTITUDE_RUNTIME_OVERRIDE: POWER_SETTING_ALTITUDE = 2; +pub const POWER_SETTING_ALTITUDE_ALTITUDE_PROVISIONING: POWER_SETTING_ALTITUDE = 3; +pub const POWER_SETTING_ALTITUDE_ALTITUDE_OEM_CUSTOMIZATION: POWER_SETTING_ALTITUDE = 4; +pub const POWER_SETTING_ALTITUDE_ALTITUDE_INTERNAL_OVERRIDE: POWER_SETTING_ALTITUDE = 5; +pub const POWER_SETTING_ALTITUDE_ALTITUDE_OS_DEFAULT: POWER_SETTING_ALTITUDE = 6; +pub type POWER_SETTING_ALTITUDE = ::std::os::raw::c_int; +pub type PPOWER_SETTING_ALTITUDE = *mut POWER_SETTING_ALTITUDE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BATTERY_REPORTING_SCALE { + pub Granularity: DWORD, + pub Capacity: DWORD, +} +pub type PBATTERY_REPORTING_SCALE = *mut BATTERY_REPORTING_SCALE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_WMI_LEGACY_PERFSTATE { + pub Frequency: DWORD, + pub Flags: DWORD, + pub PercentFrequency: DWORD, +} +pub type PPPM_WMI_LEGACY_PERFSTATE = *mut PPM_WMI_LEGACY_PERFSTATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_WMI_IDLE_STATE { + pub Latency: DWORD, + pub Power: DWORD, + pub TimeCheck: DWORD, + pub PromotePercent: BYTE, + pub DemotePercent: BYTE, + pub StateType: BYTE, + pub Reserved: BYTE, + pub StateFlags: DWORD, + pub Context: DWORD, + pub IdleHandler: DWORD, + pub Reserved1: DWORD, +} +pub type PPPM_WMI_IDLE_STATE = *mut PPM_WMI_IDLE_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_WMI_IDLE_STATES { + pub Type: DWORD, + pub Count: DWORD, + pub TargetState: DWORD, + pub OldState: DWORD, + pub TargetProcessors: DWORD64, + pub State: [PPM_WMI_IDLE_STATE; 1usize], +} +pub type PPPM_WMI_IDLE_STATES = *mut PPM_WMI_IDLE_STATES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_WMI_IDLE_STATES_EX { + pub Type: DWORD, + pub Count: DWORD, + pub TargetState: DWORD, + pub OldState: DWORD, + pub TargetProcessors: PVOID, + pub State: [PPM_WMI_IDLE_STATE; 1usize], +} +pub type PPPM_WMI_IDLE_STATES_EX = *mut PPM_WMI_IDLE_STATES_EX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_WMI_PERF_STATE { + pub Frequency: DWORD, + pub Power: DWORD, + pub PercentFrequency: BYTE, + pub IncreaseLevel: BYTE, + pub DecreaseLevel: BYTE, + pub Type: BYTE, + pub IncreaseTime: DWORD, + pub DecreaseTime: DWORD, + pub Control: DWORD64, + pub Status: DWORD64, + pub HitCount: DWORD, + pub Reserved1: DWORD, + pub Reserved2: DWORD64, + pub Reserved3: DWORD64, +} +pub type PPPM_WMI_PERF_STATE = *mut PPM_WMI_PERF_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_WMI_PERF_STATES { + pub Count: DWORD, + pub MaxFrequency: DWORD, + pub CurrentState: DWORD, + pub MaxPerfState: DWORD, + pub MinPerfState: DWORD, + pub LowestPerfState: DWORD, + pub ThermalConstraint: DWORD, + pub BusyAdjThreshold: BYTE, + pub PolicyType: BYTE, + pub Type: BYTE, + pub Reserved: BYTE, + pub TimerInterval: DWORD, + pub TargetProcessors: DWORD64, + pub PStateHandler: DWORD, + pub PStateContext: DWORD, + pub TStateHandler: DWORD, + pub TStateContext: DWORD, + pub FeedbackHandler: DWORD, + pub Reserved1: DWORD, + pub Reserved2: DWORD64, + pub State: [PPM_WMI_PERF_STATE; 1usize], +} +pub type PPPM_WMI_PERF_STATES = *mut PPM_WMI_PERF_STATES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_WMI_PERF_STATES_EX { + pub Count: DWORD, + pub MaxFrequency: DWORD, + pub CurrentState: DWORD, + pub MaxPerfState: DWORD, + pub MinPerfState: DWORD, + pub LowestPerfState: DWORD, + pub ThermalConstraint: DWORD, + pub BusyAdjThreshold: BYTE, + pub PolicyType: BYTE, + pub Type: BYTE, + pub Reserved: BYTE, + pub TimerInterval: DWORD, + pub TargetProcessors: PVOID, + pub PStateHandler: DWORD, + pub PStateContext: DWORD, + pub TStateHandler: DWORD, + pub TStateContext: DWORD, + pub FeedbackHandler: DWORD, + pub Reserved1: DWORD, + pub Reserved2: DWORD64, + pub State: [PPM_WMI_PERF_STATE; 1usize], +} +pub type PPPM_WMI_PERF_STATES_EX = *mut PPM_WMI_PERF_STATES_EX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_IDLE_STATE_ACCOUNTING { + pub IdleTransitions: DWORD, + pub FailedTransitions: DWORD, + pub InvalidBucketIndex: DWORD, + pub TotalTime: DWORD64, + pub IdleTimeBuckets: [DWORD; 6usize], +} +pub type PPPM_IDLE_STATE_ACCOUNTING = *mut PPM_IDLE_STATE_ACCOUNTING; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_IDLE_ACCOUNTING { + pub StateCount: DWORD, + pub TotalTransitions: DWORD, + pub ResetCount: DWORD, + pub StartTime: DWORD64, + pub State: [PPM_IDLE_STATE_ACCOUNTING; 1usize], +} +pub type PPPM_IDLE_ACCOUNTING = *mut PPM_IDLE_ACCOUNTING; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_IDLE_STATE_BUCKET_EX { + pub TotalTimeUs: DWORD64, + pub MinTimeUs: DWORD, + pub MaxTimeUs: DWORD, + pub Count: DWORD, +} +pub type PPPM_IDLE_STATE_BUCKET_EX = *mut PPM_IDLE_STATE_BUCKET_EX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_IDLE_STATE_ACCOUNTING_EX { + pub TotalTime: DWORD64, + pub IdleTransitions: DWORD, + pub FailedTransitions: DWORD, + pub InvalidBucketIndex: DWORD, + pub MinTimeUs: DWORD, + pub MaxTimeUs: DWORD, + pub CancelledTransitions: DWORD, + pub IdleTimeBuckets: [PPM_IDLE_STATE_BUCKET_EX; 16usize], +} +pub type PPPM_IDLE_STATE_ACCOUNTING_EX = *mut PPM_IDLE_STATE_ACCOUNTING_EX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_IDLE_ACCOUNTING_EX { + pub StateCount: DWORD, + pub TotalTransitions: DWORD, + pub ResetCount: DWORD, + pub AbortCount: DWORD, + pub StartTime: DWORD64, + pub State: [PPM_IDLE_STATE_ACCOUNTING_EX; 1usize], +} +pub type PPPM_IDLE_ACCOUNTING_EX = *mut PPM_IDLE_ACCOUNTING_EX; +extern "C" { + pub static PPM_PERFSTATE_CHANGE_GUID: GUID; +} +extern "C" { + pub static PPM_PERFSTATE_DOMAIN_CHANGE_GUID: GUID; +} +extern "C" { + pub static PPM_IDLESTATE_CHANGE_GUID: GUID; +} +extern "C" { + pub static PPM_PERFSTATES_DATA_GUID: GUID; +} +extern "C" { + pub static PPM_IDLESTATES_DATA_GUID: GUID; +} +extern "C" { + pub static PPM_IDLE_ACCOUNTING_GUID: GUID; +} +extern "C" { + pub static PPM_IDLE_ACCOUNTING_EX_GUID: GUID; +} +extern "C" { + pub static PPM_THERMALCONSTRAINT_GUID: GUID; +} +extern "C" { + pub static PPM_PERFMON_PERFSTATE_GUID: GUID; +} +extern "C" { + pub static PPM_THERMAL_POLICY_CHANGE_GUID: GUID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_PERFSTATE_EVENT { + pub State: DWORD, + pub Status: DWORD, + pub Latency: DWORD, + pub Speed: DWORD, + pub Processor: DWORD, +} +pub type PPPM_PERFSTATE_EVENT = *mut PPM_PERFSTATE_EVENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_PERFSTATE_DOMAIN_EVENT { + pub State: DWORD, + pub Latency: DWORD, + pub Speed: DWORD, + pub Processors: DWORD64, +} +pub type PPPM_PERFSTATE_DOMAIN_EVENT = *mut PPM_PERFSTATE_DOMAIN_EVENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_IDLESTATE_EVENT { + pub NewState: DWORD, + pub OldState: DWORD, + pub Processors: DWORD64, +} +pub type PPPM_IDLESTATE_EVENT = *mut PPM_IDLESTATE_EVENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_THERMALCHANGE_EVENT { + pub ThermalConstraint: DWORD, + pub Processors: DWORD64, +} +pub type PPPM_THERMALCHANGE_EVENT = *mut PPM_THERMALCHANGE_EVENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PPM_THERMAL_POLICY_EVENT { + pub Mode: BYTE, + pub Processors: DWORD64, +} +pub type PPPM_THERMAL_POLICY_EVENT = *mut PPM_THERMAL_POLICY_EVENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct POWER_ACTION_POLICY { + pub Action: POWER_ACTION, + pub Flags: DWORD, + pub EventCode: DWORD, +} +pub type PPOWER_ACTION_POLICY = *mut POWER_ACTION_POLICY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SYSTEM_POWER_LEVEL { + pub Enable: BOOLEAN, + pub Spare: [BYTE; 3usize], + pub BatteryLevel: DWORD, + pub PowerPolicy: POWER_ACTION_POLICY, + pub MinSystemState: SYSTEM_POWER_STATE, +} +pub type PSYSTEM_POWER_LEVEL = *mut SYSTEM_POWER_LEVEL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_POWER_POLICY { + pub Revision: DWORD, + pub PowerButton: POWER_ACTION_POLICY, + pub SleepButton: POWER_ACTION_POLICY, + pub LidClose: POWER_ACTION_POLICY, + pub LidOpenWake: SYSTEM_POWER_STATE, + pub Reserved: DWORD, + pub Idle: POWER_ACTION_POLICY, + pub IdleTimeout: DWORD, + pub IdleSensitivity: BYTE, + pub DynamicThrottle: BYTE, + pub Spare2: [BYTE; 2usize], + pub MinSleep: SYSTEM_POWER_STATE, + pub MaxSleep: SYSTEM_POWER_STATE, + pub ReducedLatencySleep: SYSTEM_POWER_STATE, + pub WinLogonFlags: DWORD, + pub Spare3: DWORD, + pub DozeS4Timeout: DWORD, + pub BroadcastCapacityResolution: DWORD, + pub DischargePolicy: [SYSTEM_POWER_LEVEL; 4usize], + pub VideoTimeout: DWORD, + pub VideoDimDisplay: BOOLEAN, + pub VideoReserved: [DWORD; 3usize], + pub SpindownTimeout: DWORD, + pub OptimizeForPower: BOOLEAN, + pub FanThrottleTolerance: BYTE, + pub ForcedThrottle: BYTE, + pub MinThrottle: BYTE, + pub OverThrottled: POWER_ACTION_POLICY, +} +pub type SYSTEM_POWER_POLICY = _SYSTEM_POWER_POLICY; +pub type PSYSTEM_POWER_POLICY = *mut _SYSTEM_POWER_POLICY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PROCESSOR_IDLESTATE_INFO { + pub TimeCheck: DWORD, + pub DemotePercent: BYTE, + pub PromotePercent: BYTE, + pub Spare: [BYTE; 2usize], +} +pub type PPROCESSOR_IDLESTATE_INFO = *mut PROCESSOR_IDLESTATE_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct PROCESSOR_IDLESTATE_POLICY { + pub Revision: WORD, + pub Flags: PROCESSOR_IDLESTATE_POLICY__bindgen_ty_1, + pub PolicyCount: DWORD, + pub Policy: [PROCESSOR_IDLESTATE_INFO; 3usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union PROCESSOR_IDLESTATE_POLICY__bindgen_ty_1 { + pub AsWORD: WORD, + pub __bindgen_anon_1: PROCESSOR_IDLESTATE_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(2))] +#[derive(Debug, Copy, Clone)] +pub struct PROCESSOR_IDLESTATE_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +} +impl PROCESSOR_IDLESTATE_POLICY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn AllowScaling(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } + } + #[inline] + pub fn set_AllowScaling(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Disabled(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } + } + #[inline] + pub fn set_Disabled(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 14u8) as u16) } + } + #[inline] + pub fn set_Reserved(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 14u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + AllowScaling: WORD, + Disabled: WORD, + Reserved: WORD, + ) -> __BindgenBitfieldUnit<[u8; 2usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let AllowScaling: u16 = unsafe { ::std::mem::transmute(AllowScaling) }; + AllowScaling as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let Disabled: u16 = unsafe { ::std::mem::transmute(Disabled) }; + Disabled as u64 + }); + __bindgen_bitfield_unit.set(2usize, 14u8, { + let Reserved: u16 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PPROCESSOR_IDLESTATE_POLICY = *mut PROCESSOR_IDLESTATE_POLICY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESSOR_POWER_POLICY_INFO { + pub TimeCheck: DWORD, + pub DemoteLimit: DWORD, + pub PromoteLimit: DWORD, + pub DemotePercent: BYTE, + pub PromotePercent: BYTE, + pub Spare: [BYTE; 2usize], + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _PROCESSOR_POWER_POLICY_INFO { + #[inline] + pub fn AllowDemotion(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_AllowDemotion(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn AllowPromotion(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_AllowPromotion(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_Reserved(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + AllowDemotion: DWORD, + AllowPromotion: DWORD, + Reserved: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let AllowDemotion: u32 = unsafe { ::std::mem::transmute(AllowDemotion) }; + AllowDemotion as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let AllowPromotion: u32 = unsafe { ::std::mem::transmute(AllowPromotion) }; + AllowPromotion as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESSOR_POWER_POLICY_INFO = _PROCESSOR_POWER_POLICY_INFO; +pub type PPROCESSOR_POWER_POLICY_INFO = *mut _PROCESSOR_POWER_POLICY_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESSOR_POWER_POLICY { + pub Revision: DWORD, + pub DynamicThrottle: BYTE, + pub Spare: [BYTE; 3usize], + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub PolicyCount: DWORD, + pub Policy: [PROCESSOR_POWER_POLICY_INFO; 3usize], +} +impl _PROCESSOR_POWER_POLICY { + #[inline] + pub fn DisableCStates(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_DisableCStates(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } + } + #[inline] + pub fn set_Reserved(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 31u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + DisableCStates: DWORD, + Reserved: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let DisableCStates: u32 = unsafe { ::std::mem::transmute(DisableCStates) }; + DisableCStates as u64 + }); + __bindgen_bitfield_unit.set(1usize, 31u8, { + let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PROCESSOR_POWER_POLICY = _PROCESSOR_POWER_POLICY; +pub type PPROCESSOR_POWER_POLICY = *mut _PROCESSOR_POWER_POLICY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct PROCESSOR_PERFSTATE_POLICY { + pub Revision: DWORD, + pub MaxThrottle: BYTE, + pub MinThrottle: BYTE, + pub BusyAdjThreshold: BYTE, + pub __bindgen_anon_1: PROCESSOR_PERFSTATE_POLICY__bindgen_ty_1, + pub TimeCheck: DWORD, + pub IncreaseTime: DWORD, + pub DecreaseTime: DWORD, + pub IncreasePercent: DWORD, + pub DecreasePercent: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union PROCESSOR_PERFSTATE_POLICY__bindgen_ty_1 { + pub Spare: BYTE, + pub Flags: PROCESSOR_PERFSTATE_POLICY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union PROCESSOR_PERFSTATE_POLICY__bindgen_ty_1__bindgen_ty_1 { + pub AsBYTE: BYTE, + pub __bindgen_anon_1: PROCESSOR_PERFSTATE_POLICY__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct PROCESSOR_PERFSTATE_POLICY__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +} +impl PROCESSOR_PERFSTATE_POLICY__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn NoDomainAccounting(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } + } + #[inline] + pub fn set_NoDomainAccounting(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn IncreasePolicy(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u8) } + } + #[inline] + pub fn set_IncreasePolicy(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 2u8, val as u64) + } + } + #[inline] + pub fn DecreasePolicy(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 2u8) as u8) } + } + #[inline] + pub fn set_DecreasePolicy(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 2u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u8) } + } + #[inline] + pub fn set_Reserved(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 3u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + NoDomainAccounting: BYTE, + IncreasePolicy: BYTE, + DecreasePolicy: BYTE, + Reserved: BYTE, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let NoDomainAccounting: u8 = unsafe { ::std::mem::transmute(NoDomainAccounting) }; + NoDomainAccounting as u64 + }); + __bindgen_bitfield_unit.set(1usize, 2u8, { + let IncreasePolicy: u8 = unsafe { ::std::mem::transmute(IncreasePolicy) }; + IncreasePolicy as u64 + }); + __bindgen_bitfield_unit.set(3usize, 2u8, { + let DecreasePolicy: u8 = unsafe { ::std::mem::transmute(DecreasePolicy) }; + DecreasePolicy as u64 + }); + __bindgen_bitfield_unit.set(5usize, 3u8, { + let Reserved: u8 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PPROCESSOR_PERFSTATE_POLICY = *mut PROCESSOR_PERFSTATE_POLICY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ADMINISTRATOR_POWER_POLICY { + pub MinSleep: SYSTEM_POWER_STATE, + pub MaxSleep: SYSTEM_POWER_STATE, + pub MinVideoTimeout: DWORD, + pub MaxVideoTimeout: DWORD, + pub MinSpindownTimeout: DWORD, + pub MaxSpindownTimeout: DWORD, +} +pub type ADMINISTRATOR_POWER_POLICY = _ADMINISTRATOR_POWER_POLICY; +pub type PADMINISTRATOR_POWER_POLICY = *mut _ADMINISTRATOR_POWER_POLICY; +pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucket1GB: _HIBERFILE_BUCKET_SIZE = 0; +pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucket2GB: _HIBERFILE_BUCKET_SIZE = 1; +pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucket4GB: _HIBERFILE_BUCKET_SIZE = 2; +pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucket8GB: _HIBERFILE_BUCKET_SIZE = 3; +pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucket16GB: _HIBERFILE_BUCKET_SIZE = 4; +pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucket32GB: _HIBERFILE_BUCKET_SIZE = 5; +pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucketUnlimited: _HIBERFILE_BUCKET_SIZE = 6; +pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucketMax: _HIBERFILE_BUCKET_SIZE = 7; +pub type _HIBERFILE_BUCKET_SIZE = ::std::os::raw::c_int; +pub use self::_HIBERFILE_BUCKET_SIZE as HIBERFILE_BUCKET_SIZE; +pub type PHIBERFILE_BUCKET_SIZE = *mut _HIBERFILE_BUCKET_SIZE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _HIBERFILE_BUCKET { + pub MaxPhysicalMemory: DWORD64, + pub PhysicalMemoryPercent: [DWORD; 3usize], +} +pub type HIBERFILE_BUCKET = _HIBERFILE_BUCKET; +pub type PHIBERFILE_BUCKET = *mut _HIBERFILE_BUCKET; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SYSTEM_POWER_CAPABILITIES { + pub PowerButtonPresent: BOOLEAN, + pub SleepButtonPresent: BOOLEAN, + pub LidPresent: BOOLEAN, + pub SystemS1: BOOLEAN, + pub SystemS2: BOOLEAN, + pub SystemS3: BOOLEAN, + pub SystemS4: BOOLEAN, + pub SystemS5: BOOLEAN, + pub HiberFilePresent: BOOLEAN, + pub FullWake: BOOLEAN, + pub VideoDimPresent: BOOLEAN, + pub ApmPresent: BOOLEAN, + pub UpsPresent: BOOLEAN, + pub ThermalControl: BOOLEAN, + pub ProcessorThrottle: BOOLEAN, + pub ProcessorMinThrottle: BYTE, + pub ProcessorMaxThrottle: BYTE, + pub FastSystemS4: BOOLEAN, + pub Hiberboot: BOOLEAN, + pub WakeAlarmPresent: BOOLEAN, + pub AoAc: BOOLEAN, + pub DiskSpinDown: BOOLEAN, + pub HiberFileType: BYTE, + pub AoAcConnectivitySupported: BOOLEAN, + pub spare3: [BYTE; 6usize], + pub SystemBatteriesPresent: BOOLEAN, + pub BatteriesAreShortTerm: BOOLEAN, + pub BatteryScale: [BATTERY_REPORTING_SCALE; 3usize], + pub AcOnLineWake: SYSTEM_POWER_STATE, + pub SoftLidWake: SYSTEM_POWER_STATE, + pub RtcWake: SYSTEM_POWER_STATE, + pub MinDeviceWakeState: SYSTEM_POWER_STATE, + pub DefaultLowLatencyWake: SYSTEM_POWER_STATE, +} +pub type PSYSTEM_POWER_CAPABILITIES = *mut SYSTEM_POWER_CAPABILITIES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SYSTEM_BATTERY_STATE { + pub AcOnLine: BOOLEAN, + pub BatteryPresent: BOOLEAN, + pub Charging: BOOLEAN, + pub Discharging: BOOLEAN, + pub Spare1: [BOOLEAN; 3usize], + pub Tag: BYTE, + pub MaxCapacity: DWORD, + pub RemainingCapacity: DWORD, + pub Rate: DWORD, + pub EstimatedTime: DWORD, + pub DefaultAlert1: DWORD, + pub DefaultAlert2: DWORD, +} +pub type PSYSTEM_BATTERY_STATE = *mut SYSTEM_BATTERY_STATE; +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_DOS_HEADER { + pub e_magic: WORD, + pub e_cblp: WORD, + pub e_cp: WORD, + pub e_crlc: WORD, + pub e_cparhdr: WORD, + pub e_minalloc: WORD, + pub e_maxalloc: WORD, + pub e_ss: WORD, + pub e_sp: WORD, + pub e_csum: WORD, + pub e_ip: WORD, + pub e_cs: WORD, + pub e_lfarlc: WORD, + pub e_ovno: WORD, + pub e_res: [WORD; 4usize], + pub e_oemid: WORD, + pub e_oeminfo: WORD, + pub e_res2: [WORD; 10usize], + pub e_lfanew: LONG, +} +pub type IMAGE_DOS_HEADER = _IMAGE_DOS_HEADER; +pub type PIMAGE_DOS_HEADER = *mut _IMAGE_DOS_HEADER; +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_OS2_HEADER { + pub ne_magic: WORD, + pub ne_ver: CHAR, + pub ne_rev: CHAR, + pub ne_enttab: WORD, + pub ne_cbenttab: WORD, + pub ne_crc: LONG, + pub ne_flags: WORD, + pub ne_autodata: WORD, + pub ne_heap: WORD, + pub ne_stack: WORD, + pub ne_csip: LONG, + pub ne_sssp: LONG, + pub ne_cseg: WORD, + pub ne_cmod: WORD, + pub ne_cbnrestab: WORD, + pub ne_segtab: WORD, + pub ne_rsrctab: WORD, + pub ne_restab: WORD, + pub ne_modtab: WORD, + pub ne_imptab: WORD, + pub ne_nrestab: LONG, + pub ne_cmovent: WORD, + pub ne_align: WORD, + pub ne_cres: WORD, + pub ne_exetyp: BYTE, + pub ne_flagsothers: BYTE, + pub ne_pretthunks: WORD, + pub ne_psegrefbytes: WORD, + pub ne_swaparea: WORD, + pub ne_expver: WORD, +} +pub type IMAGE_OS2_HEADER = _IMAGE_OS2_HEADER; +pub type PIMAGE_OS2_HEADER = *mut _IMAGE_OS2_HEADER; +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_VXD_HEADER { + pub e32_magic: WORD, + pub e32_border: BYTE, + pub e32_worder: BYTE, + pub e32_level: DWORD, + pub e32_cpu: WORD, + pub e32_os: WORD, + pub e32_ver: DWORD, + pub e32_mflags: DWORD, + pub e32_mpages: DWORD, + pub e32_startobj: DWORD, + pub e32_eip: DWORD, + pub e32_stackobj: DWORD, + pub e32_esp: DWORD, + pub e32_pagesize: DWORD, + pub e32_lastpagesize: DWORD, + pub e32_fixupsize: DWORD, + pub e32_fixupsum: DWORD, + pub e32_ldrsize: DWORD, + pub e32_ldrsum: DWORD, + pub e32_objtab: DWORD, + pub e32_objcnt: DWORD, + pub e32_objmap: DWORD, + pub e32_itermap: DWORD, + pub e32_rsrctab: DWORD, + pub e32_rsrccnt: DWORD, + pub e32_restab: DWORD, + pub e32_enttab: DWORD, + pub e32_dirtab: DWORD, + pub e32_dircnt: DWORD, + pub e32_fpagetab: DWORD, + pub e32_frectab: DWORD, + pub e32_impmod: DWORD, + pub e32_impmodcnt: DWORD, + pub e32_impproc: DWORD, + pub e32_pagesum: DWORD, + pub e32_datapage: DWORD, + pub e32_preload: DWORD, + pub e32_nrestab: DWORD, + pub e32_cbnrestab: DWORD, + pub e32_nressum: DWORD, + pub e32_autodata: DWORD, + pub e32_debuginfo: DWORD, + pub e32_debuglen: DWORD, + pub e32_instpreload: DWORD, + pub e32_instdemand: DWORD, + pub e32_heapsize: DWORD, + pub e32_res3: [BYTE; 12usize], + pub e32_winresoff: DWORD, + pub e32_winreslen: DWORD, + pub e32_devid: WORD, + pub e32_ddkver: WORD, +} +pub type IMAGE_VXD_HEADER = _IMAGE_VXD_HEADER; +pub type PIMAGE_VXD_HEADER = *mut _IMAGE_VXD_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_FILE_HEADER { + pub Machine: WORD, + pub NumberOfSections: WORD, + pub TimeDateStamp: DWORD, + pub PointerToSymbolTable: DWORD, + pub NumberOfSymbols: DWORD, + pub SizeOfOptionalHeader: WORD, + pub Characteristics: WORD, +} +pub type IMAGE_FILE_HEADER = _IMAGE_FILE_HEADER; +pub type PIMAGE_FILE_HEADER = *mut _IMAGE_FILE_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_DATA_DIRECTORY { + pub VirtualAddress: DWORD, + pub Size: DWORD, +} +pub type IMAGE_DATA_DIRECTORY = _IMAGE_DATA_DIRECTORY; +pub type PIMAGE_DATA_DIRECTORY = *mut _IMAGE_DATA_DIRECTORY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_OPTIONAL_HEADER { + pub Magic: WORD, + pub MajorLinkerVersion: BYTE, + pub MinorLinkerVersion: BYTE, + pub SizeOfCode: DWORD, + pub SizeOfInitializedData: DWORD, + pub SizeOfUninitializedData: DWORD, + pub AddressOfEntryPoint: DWORD, + pub BaseOfCode: DWORD, + pub BaseOfData: DWORD, + pub ImageBase: DWORD, + pub SectionAlignment: DWORD, + pub FileAlignment: DWORD, + pub MajorOperatingSystemVersion: WORD, + pub MinorOperatingSystemVersion: WORD, + pub MajorImageVersion: WORD, + pub MinorImageVersion: WORD, + pub MajorSubsystemVersion: WORD, + pub MinorSubsystemVersion: WORD, + pub Win32VersionValue: DWORD, + pub SizeOfImage: DWORD, + pub SizeOfHeaders: DWORD, + pub CheckSum: DWORD, + pub Subsystem: WORD, + pub DllCharacteristics: WORD, + pub SizeOfStackReserve: DWORD, + pub SizeOfStackCommit: DWORD, + pub SizeOfHeapReserve: DWORD, + pub SizeOfHeapCommit: DWORD, + pub LoaderFlags: DWORD, + pub NumberOfRvaAndSizes: DWORD, + pub DataDirectory: [IMAGE_DATA_DIRECTORY; 16usize], +} +pub type IMAGE_OPTIONAL_HEADER32 = _IMAGE_OPTIONAL_HEADER; +pub type PIMAGE_OPTIONAL_HEADER32 = *mut _IMAGE_OPTIONAL_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_ROM_OPTIONAL_HEADER { + pub Magic: WORD, + pub MajorLinkerVersion: BYTE, + pub MinorLinkerVersion: BYTE, + pub SizeOfCode: DWORD, + pub SizeOfInitializedData: DWORD, + pub SizeOfUninitializedData: DWORD, + pub AddressOfEntryPoint: DWORD, + pub BaseOfCode: DWORD, + pub BaseOfData: DWORD, + pub BaseOfBss: DWORD, + pub GprMask: DWORD, + pub CprMask: [DWORD; 4usize], + pub GpValue: DWORD, +} +pub type IMAGE_ROM_OPTIONAL_HEADER = _IMAGE_ROM_OPTIONAL_HEADER; +pub type PIMAGE_ROM_OPTIONAL_HEADER = *mut _IMAGE_ROM_OPTIONAL_HEADER; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_OPTIONAL_HEADER64 { + pub Magic: WORD, + pub MajorLinkerVersion: BYTE, + pub MinorLinkerVersion: BYTE, + pub SizeOfCode: DWORD, + pub SizeOfInitializedData: DWORD, + pub SizeOfUninitializedData: DWORD, + pub AddressOfEntryPoint: DWORD, + pub BaseOfCode: DWORD, + pub ImageBase: ULONGLONG, + pub SectionAlignment: DWORD, + pub FileAlignment: DWORD, + pub MajorOperatingSystemVersion: WORD, + pub MinorOperatingSystemVersion: WORD, + pub MajorImageVersion: WORD, + pub MinorImageVersion: WORD, + pub MajorSubsystemVersion: WORD, + pub MinorSubsystemVersion: WORD, + pub Win32VersionValue: DWORD, + pub SizeOfImage: DWORD, + pub SizeOfHeaders: DWORD, + pub CheckSum: DWORD, + pub Subsystem: WORD, + pub DllCharacteristics: WORD, + pub SizeOfStackReserve: ULONGLONG, + pub SizeOfStackCommit: ULONGLONG, + pub SizeOfHeapReserve: ULONGLONG, + pub SizeOfHeapCommit: ULONGLONG, + pub LoaderFlags: DWORD, + pub NumberOfRvaAndSizes: DWORD, + pub DataDirectory: [IMAGE_DATA_DIRECTORY; 16usize], +} +pub type IMAGE_OPTIONAL_HEADER64 = _IMAGE_OPTIONAL_HEADER64; +pub type PIMAGE_OPTIONAL_HEADER64 = *mut _IMAGE_OPTIONAL_HEADER64; +pub type IMAGE_OPTIONAL_HEADER = IMAGE_OPTIONAL_HEADER64; +pub type PIMAGE_OPTIONAL_HEADER = PIMAGE_OPTIONAL_HEADER64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_NT_HEADERS64 { + pub Signature: DWORD, + pub FileHeader: IMAGE_FILE_HEADER, + pub OptionalHeader: IMAGE_OPTIONAL_HEADER64, +} +pub type IMAGE_NT_HEADERS64 = _IMAGE_NT_HEADERS64; +pub type PIMAGE_NT_HEADERS64 = *mut _IMAGE_NT_HEADERS64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_NT_HEADERS { + pub Signature: DWORD, + pub FileHeader: IMAGE_FILE_HEADER, + pub OptionalHeader: IMAGE_OPTIONAL_HEADER32, +} +pub type IMAGE_NT_HEADERS32 = _IMAGE_NT_HEADERS; +pub type PIMAGE_NT_HEADERS32 = *mut _IMAGE_NT_HEADERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_ROM_HEADERS { + pub FileHeader: IMAGE_FILE_HEADER, + pub OptionalHeader: IMAGE_ROM_OPTIONAL_HEADER, +} +pub type IMAGE_ROM_HEADERS = _IMAGE_ROM_HEADERS; +pub type PIMAGE_ROM_HEADERS = *mut _IMAGE_ROM_HEADERS; +pub type IMAGE_NT_HEADERS = IMAGE_NT_HEADERS64; +pub type PIMAGE_NT_HEADERS = PIMAGE_NT_HEADERS64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ANON_OBJECT_HEADER { + pub Sig1: WORD, + pub Sig2: WORD, + pub Version: WORD, + pub Machine: WORD, + pub TimeDateStamp: DWORD, + pub ClassID: CLSID, + pub SizeOfData: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ANON_OBJECT_HEADER_V2 { + pub Sig1: WORD, + pub Sig2: WORD, + pub Version: WORD, + pub Machine: WORD, + pub TimeDateStamp: DWORD, + pub ClassID: CLSID, + pub SizeOfData: DWORD, + pub Flags: DWORD, + pub MetaDataSize: DWORD, + pub MetaDataOffset: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ANON_OBJECT_HEADER_BIGOBJ { + pub Sig1: WORD, + pub Sig2: WORD, + pub Version: WORD, + pub Machine: WORD, + pub TimeDateStamp: DWORD, + pub ClassID: CLSID, + pub SizeOfData: DWORD, + pub Flags: DWORD, + pub MetaDataSize: DWORD, + pub MetaDataOffset: DWORD, + pub NumberOfSections: DWORD, + pub PointerToSymbolTable: DWORD, + pub NumberOfSymbols: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _IMAGE_SECTION_HEADER { + pub Name: [BYTE; 8usize], + pub Misc: _IMAGE_SECTION_HEADER__bindgen_ty_1, + pub VirtualAddress: DWORD, + pub SizeOfRawData: DWORD, + pub PointerToRawData: DWORD, + pub PointerToRelocations: DWORD, + pub PointerToLinenumbers: DWORD, + pub NumberOfRelocations: WORD, + pub NumberOfLinenumbers: WORD, + pub Characteristics: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_SECTION_HEADER__bindgen_ty_1 { + pub PhysicalAddress: DWORD, + pub VirtualSize: DWORD, +} +pub type IMAGE_SECTION_HEADER = _IMAGE_SECTION_HEADER; +pub type PIMAGE_SECTION_HEADER = *mut _IMAGE_SECTION_HEADER; +#[repr(C, packed(2))] +#[derive(Copy, Clone)] +pub struct _IMAGE_SYMBOL { + pub N: _IMAGE_SYMBOL__bindgen_ty_1, + pub Value: DWORD, + pub SectionNumber: SHORT, + pub Type: WORD, + pub StorageClass: BYTE, + pub NumberOfAuxSymbols: BYTE, +} +#[repr(C, packed(2))] +#[derive(Copy, Clone)] +pub union _IMAGE_SYMBOL__bindgen_ty_1 { + pub ShortName: [BYTE; 8usize], + pub Name: _IMAGE_SYMBOL__bindgen_ty_1__bindgen_ty_1, + pub LongName: [DWORD; 2usize], +} +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_SYMBOL__bindgen_ty_1__bindgen_ty_1 { + pub Short: DWORD, + pub Long: DWORD, +} +pub type IMAGE_SYMBOL = _IMAGE_SYMBOL; +pub type PIMAGE_SYMBOL = *mut IMAGE_SYMBOL; +#[repr(C, packed(2))] +#[derive(Copy, Clone)] +pub struct _IMAGE_SYMBOL_EX { + pub N: _IMAGE_SYMBOL_EX__bindgen_ty_1, + pub Value: DWORD, + pub SectionNumber: LONG, + pub Type: WORD, + pub StorageClass: BYTE, + pub NumberOfAuxSymbols: BYTE, +} +#[repr(C, packed(2))] +#[derive(Copy, Clone)] +pub union _IMAGE_SYMBOL_EX__bindgen_ty_1 { + pub ShortName: [BYTE; 8usize], + pub Name: _IMAGE_SYMBOL_EX__bindgen_ty_1__bindgen_ty_1, + pub LongName: [DWORD; 2usize], +} +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_SYMBOL_EX__bindgen_ty_1__bindgen_ty_1 { + pub Short: DWORD, + pub Long: DWORD, +} +pub type IMAGE_SYMBOL_EX = _IMAGE_SYMBOL_EX; +pub type PIMAGE_SYMBOL_EX = *mut IMAGE_SYMBOL_EX; +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct IMAGE_AUX_SYMBOL_TOKEN_DEF { + pub bAuxType: BYTE, + pub bReserved: BYTE, + pub SymbolTableIndex: DWORD, + pub rgbReserved: [BYTE; 12usize], +} +pub type PIMAGE_AUX_SYMBOL_TOKEN_DEF = *mut IMAGE_AUX_SYMBOL_TOKEN_DEF; +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_AUX_SYMBOL { + pub Sym: _IMAGE_AUX_SYMBOL__bindgen_ty_1, + pub File: _IMAGE_AUX_SYMBOL__bindgen_ty_2, + pub Section: _IMAGE_AUX_SYMBOL__bindgen_ty_3, + pub TokenDef: IMAGE_AUX_SYMBOL_TOKEN_DEF, + pub CRC: _IMAGE_AUX_SYMBOL__bindgen_ty_4, +} +#[repr(C, packed(2))] +#[derive(Copy, Clone)] +pub struct _IMAGE_AUX_SYMBOL__bindgen_ty_1 { + pub TagIndex: DWORD, + pub Misc: _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_1, + pub FcnAry: _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_2, + pub TvIndex: WORD, +} +#[repr(C, packed(2))] +#[derive(Copy, Clone)] +pub union _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_1 { + pub LnSz: _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, + pub TotalSize: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { + pub Linenumber: WORD, + pub Size: WORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_2 { + pub Function: _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, + pub Array: _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_2__bindgen_ty_2, +} +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 { + pub PointerToLinenumber: DWORD, + pub PointerToNextFunction: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_2__bindgen_ty_2 { + pub Dimension: [WORD; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_AUX_SYMBOL__bindgen_ty_2 { + pub Name: [BYTE; 18usize], +} +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_AUX_SYMBOL__bindgen_ty_3 { + pub Length: DWORD, + pub NumberOfRelocations: WORD, + pub NumberOfLinenumbers: WORD, + pub CheckSum: DWORD, + pub Number: SHORT, + pub Selection: BYTE, + pub bReserved: BYTE, + pub HighNumber: SHORT, +} +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_AUX_SYMBOL__bindgen_ty_4 { + pub crc: DWORD, + pub rgbReserved: [BYTE; 14usize], +} +pub type IMAGE_AUX_SYMBOL = _IMAGE_AUX_SYMBOL; +pub type PIMAGE_AUX_SYMBOL = *mut IMAGE_AUX_SYMBOL; +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_AUX_SYMBOL_EX { + pub Sym: _IMAGE_AUX_SYMBOL_EX__bindgen_ty_1, + pub File: _IMAGE_AUX_SYMBOL_EX__bindgen_ty_2, + pub Section: _IMAGE_AUX_SYMBOL_EX__bindgen_ty_3, + pub __bindgen_anon_1: _IMAGE_AUX_SYMBOL_EX__bindgen_ty_4, + pub CRC: _IMAGE_AUX_SYMBOL_EX__bindgen_ty_5, +} +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_AUX_SYMBOL_EX__bindgen_ty_1 { + pub WeakDefaultSymIndex: DWORD, + pub WeakSearchType: DWORD, + pub rgbReserved: [BYTE; 12usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_AUX_SYMBOL_EX__bindgen_ty_2 { + pub Name: [BYTE; 20usize], +} +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_AUX_SYMBOL_EX__bindgen_ty_3 { + pub Length: DWORD, + pub NumberOfRelocations: WORD, + pub NumberOfLinenumbers: WORD, + pub CheckSum: DWORD, + pub Number: SHORT, + pub Selection: BYTE, + pub bReserved: BYTE, + pub HighNumber: SHORT, + pub rgbReserved: [BYTE; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_AUX_SYMBOL_EX__bindgen_ty_4 { + pub TokenDef: IMAGE_AUX_SYMBOL_TOKEN_DEF, + pub rgbReserved: [BYTE; 2usize], +} +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_AUX_SYMBOL_EX__bindgen_ty_5 { + pub crc: DWORD, + pub rgbReserved: [BYTE; 16usize], +} +pub type IMAGE_AUX_SYMBOL_EX = _IMAGE_AUX_SYMBOL_EX; +pub type PIMAGE_AUX_SYMBOL_EX = *mut IMAGE_AUX_SYMBOL_EX; +pub const IMAGE_AUX_SYMBOL_TYPE_IMAGE_AUX_SYMBOL_TYPE_TOKEN_DEF: IMAGE_AUX_SYMBOL_TYPE = 1; +pub type IMAGE_AUX_SYMBOL_TYPE = ::std::os::raw::c_int; +#[repr(C, packed(2))] +#[derive(Copy, Clone)] +pub struct _IMAGE_RELOCATION { + pub __bindgen_anon_1: _IMAGE_RELOCATION__bindgen_ty_1, + pub SymbolTableIndex: DWORD, + pub Type: WORD, +} +#[repr(C, packed(2))] +#[derive(Copy, Clone)] +pub union _IMAGE_RELOCATION__bindgen_ty_1 { + pub VirtualAddress: DWORD, + pub RelocCount: DWORD, +} +pub type IMAGE_RELOCATION = _IMAGE_RELOCATION; +pub type PIMAGE_RELOCATION = *mut IMAGE_RELOCATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _IMAGE_LINENUMBER { + pub Type: _IMAGE_LINENUMBER__bindgen_ty_1, + pub Linenumber: WORD, +} +#[repr(C, packed(2))] +#[derive(Copy, Clone)] +pub union _IMAGE_LINENUMBER__bindgen_ty_1 { + pub SymbolTableIndex: DWORD, + pub VirtualAddress: DWORD, +} +pub type IMAGE_LINENUMBER = _IMAGE_LINENUMBER; +pub type PIMAGE_LINENUMBER = *mut IMAGE_LINENUMBER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_BASE_RELOCATION { + pub VirtualAddress: DWORD, + pub SizeOfBlock: DWORD, +} +pub type IMAGE_BASE_RELOCATION = _IMAGE_BASE_RELOCATION; +pub type PIMAGE_BASE_RELOCATION = *mut IMAGE_BASE_RELOCATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_ARCHIVE_MEMBER_HEADER { + pub Name: [BYTE; 16usize], + pub Date: [BYTE; 12usize], + pub UserID: [BYTE; 6usize], + pub GroupID: [BYTE; 6usize], + pub Mode: [BYTE; 8usize], + pub Size: [BYTE; 10usize], + pub EndHeader: [BYTE; 2usize], +} +pub type IMAGE_ARCHIVE_MEMBER_HEADER = _IMAGE_ARCHIVE_MEMBER_HEADER; +pub type PIMAGE_ARCHIVE_MEMBER_HEADER = *mut _IMAGE_ARCHIVE_MEMBER_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_EXPORT_DIRECTORY { + pub Characteristics: DWORD, + pub TimeDateStamp: DWORD, + pub MajorVersion: WORD, + pub MinorVersion: WORD, + pub Name: DWORD, + pub Base: DWORD, + pub NumberOfFunctions: DWORD, + pub NumberOfNames: DWORD, + pub AddressOfFunctions: DWORD, + pub AddressOfNames: DWORD, + pub AddressOfNameOrdinals: DWORD, +} +pub type IMAGE_EXPORT_DIRECTORY = _IMAGE_EXPORT_DIRECTORY; +pub type PIMAGE_EXPORT_DIRECTORY = *mut _IMAGE_EXPORT_DIRECTORY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_IMPORT_BY_NAME { + pub Hint: WORD, + pub Name: [CHAR; 1usize], +} +pub type IMAGE_IMPORT_BY_NAME = _IMAGE_IMPORT_BY_NAME; +pub type PIMAGE_IMPORT_BY_NAME = *mut _IMAGE_IMPORT_BY_NAME; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _IMAGE_THUNK_DATA64 { + pub u1: _IMAGE_THUNK_DATA64__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_THUNK_DATA64__bindgen_ty_1 { + pub ForwarderString: ULONGLONG, + pub Function: ULONGLONG, + pub Ordinal: ULONGLONG, + pub AddressOfData: ULONGLONG, +} +pub type IMAGE_THUNK_DATA64 = _IMAGE_THUNK_DATA64; +pub type PIMAGE_THUNK_DATA64 = *mut IMAGE_THUNK_DATA64; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _IMAGE_THUNK_DATA32 { + pub u1: _IMAGE_THUNK_DATA32__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_THUNK_DATA32__bindgen_ty_1 { + pub ForwarderString: DWORD, + pub Function: DWORD, + pub Ordinal: DWORD, + pub AddressOfData: DWORD, +} +pub type IMAGE_THUNK_DATA32 = _IMAGE_THUNK_DATA32; +pub type PIMAGE_THUNK_DATA32 = *mut IMAGE_THUNK_DATA32; +pub type PIMAGE_TLS_CALLBACK = + ::std::option::Option; +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_TLS_DIRECTORY64__bindgen_ty_1 { + pub Characteristics: DWORD, + pub __bindgen_anon_1: _IMAGE_TLS_DIRECTORY64__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_TLS_DIRECTORY64__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _IMAGE_TLS_DIRECTORY64__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn Reserved0(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 20u8) as u32) } + } + #[inline] + pub fn set_Reserved0(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 20u8, val as u64) + } + } + #[inline] + pub fn Alignment(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 4u8) as u32) } + } + #[inline] + pub fn set_Alignment(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(20usize, 4u8, val as u64) + } + } + #[inline] + pub fn Reserved1(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_Reserved1(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Reserved0: DWORD, + Alignment: DWORD, + Reserved1: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 20u8, { + let Reserved0: u32 = unsafe { ::std::mem::transmute(Reserved0) }; + Reserved0 as u64 + }); + __bindgen_bitfield_unit.set(20usize, 4u8, { + let Alignment: u32 = unsafe { ::std::mem::transmute(Alignment) }; + Alignment as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let Reserved1: u32 = unsafe { ::std::mem::transmute(Reserved1) }; + Reserved1 as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _IMAGE_TLS_DIRECTORY32 { + pub StartAddressOfRawData: DWORD, + pub EndAddressOfRawData: DWORD, + pub AddressOfIndex: DWORD, + pub AddressOfCallBacks: DWORD, + pub SizeOfZeroFill: DWORD, + pub __bindgen_anon_1: _IMAGE_TLS_DIRECTORY32__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_TLS_DIRECTORY32__bindgen_ty_1 { + pub Characteristics: DWORD, + pub __bindgen_anon_1: _IMAGE_TLS_DIRECTORY32__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_TLS_DIRECTORY32__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _IMAGE_TLS_DIRECTORY32__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn Reserved0(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 20u8) as u32) } + } + #[inline] + pub fn set_Reserved0(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 20u8, val as u64) + } + } + #[inline] + pub fn Alignment(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 4u8) as u32) } + } + #[inline] + pub fn set_Alignment(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(20usize, 4u8, val as u64) + } + } + #[inline] + pub fn Reserved1(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } + } + #[inline] + pub fn set_Reserved1(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(24usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Reserved0: DWORD, + Alignment: DWORD, + Reserved1: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 20u8, { + let Reserved0: u32 = unsafe { ::std::mem::transmute(Reserved0) }; + Reserved0 as u64 + }); + __bindgen_bitfield_unit.set(20usize, 4u8, { + let Alignment: u32 = unsafe { ::std::mem::transmute(Alignment) }; + Alignment as u64 + }); + __bindgen_bitfield_unit.set(24usize, 8u8, { + let Reserved1: u32 = unsafe { ::std::mem::transmute(Reserved1) }; + Reserved1 as u64 + }); + __bindgen_bitfield_unit + } +} +pub type IMAGE_TLS_DIRECTORY32 = _IMAGE_TLS_DIRECTORY32; +pub type PIMAGE_TLS_DIRECTORY32 = *mut IMAGE_TLS_DIRECTORY32; +pub type IMAGE_THUNK_DATA = IMAGE_THUNK_DATA64; +pub type PIMAGE_THUNK_DATA = PIMAGE_THUNK_DATA64; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _IMAGE_IMPORT_DESCRIPTOR { + pub __bindgen_anon_1: _IMAGE_IMPORT_DESCRIPTOR__bindgen_ty_1, + pub TimeDateStamp: DWORD, + pub ForwarderChain: DWORD, + pub Name: DWORD, + pub FirstThunk: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_IMPORT_DESCRIPTOR__bindgen_ty_1 { + pub Characteristics: DWORD, + pub OriginalFirstThunk: DWORD, +} +pub type IMAGE_IMPORT_DESCRIPTOR = _IMAGE_IMPORT_DESCRIPTOR; +pub type PIMAGE_IMPORT_DESCRIPTOR = *mut IMAGE_IMPORT_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_BOUND_IMPORT_DESCRIPTOR { + pub TimeDateStamp: DWORD, + pub OffsetModuleName: WORD, + pub NumberOfModuleForwarderRefs: WORD, +} +pub type IMAGE_BOUND_IMPORT_DESCRIPTOR = _IMAGE_BOUND_IMPORT_DESCRIPTOR; +pub type PIMAGE_BOUND_IMPORT_DESCRIPTOR = *mut _IMAGE_BOUND_IMPORT_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_BOUND_FORWARDER_REF { + pub TimeDateStamp: DWORD, + pub OffsetModuleName: WORD, + pub Reserved: WORD, +} +pub type IMAGE_BOUND_FORWARDER_REF = _IMAGE_BOUND_FORWARDER_REF; +pub type PIMAGE_BOUND_FORWARDER_REF = *mut _IMAGE_BOUND_FORWARDER_REF; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _IMAGE_DELAYLOAD_DESCRIPTOR { + pub Attributes: _IMAGE_DELAYLOAD_DESCRIPTOR__bindgen_ty_1, + pub DllNameRVA: DWORD, + pub ModuleHandleRVA: DWORD, + pub ImportAddressTableRVA: DWORD, + pub ImportNameTableRVA: DWORD, + pub BoundImportAddressTableRVA: DWORD, + pub UnloadInformationTableRVA: DWORD, + pub TimeDateStamp: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_DELAYLOAD_DESCRIPTOR__bindgen_ty_1 { + pub AllAttributes: DWORD, + pub __bindgen_anon_1: _IMAGE_DELAYLOAD_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_DELAYLOAD_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _IMAGE_DELAYLOAD_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn RvaBased(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_RvaBased(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn ReservedAttributes(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } + } + #[inline] + pub fn set_ReservedAttributes(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 31u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + RvaBased: DWORD, + ReservedAttributes: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let RvaBased: u32 = unsafe { ::std::mem::transmute(RvaBased) }; + RvaBased as u64 + }); + __bindgen_bitfield_unit.set(1usize, 31u8, { + let ReservedAttributes: u32 = unsafe { ::std::mem::transmute(ReservedAttributes) }; + ReservedAttributes as u64 + }); + __bindgen_bitfield_unit + } +} +pub type IMAGE_DELAYLOAD_DESCRIPTOR = _IMAGE_DELAYLOAD_DESCRIPTOR; +pub type PIMAGE_DELAYLOAD_DESCRIPTOR = *mut _IMAGE_DELAYLOAD_DESCRIPTOR; +pub type PCIMAGE_DELAYLOAD_DESCRIPTOR = *const IMAGE_DELAYLOAD_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_RESOURCE_DIRECTORY { + pub Characteristics: DWORD, + pub TimeDateStamp: DWORD, + pub MajorVersion: WORD, + pub MinorVersion: WORD, + pub NumberOfNamedEntries: WORD, + pub NumberOfIdEntries: WORD, +} +pub type IMAGE_RESOURCE_DIRECTORY = _IMAGE_RESOURCE_DIRECTORY; +pub type PIMAGE_RESOURCE_DIRECTORY = *mut _IMAGE_RESOURCE_DIRECTORY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _IMAGE_RESOURCE_DIRECTORY_ENTRY { + pub __bindgen_anon_1: _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_1, + pub __bindgen_anon_2: _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_1 { + pub __bindgen_anon_1: _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_1__bindgen_ty_1, + pub Name: DWORD, + pub Id: WORD, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn NameOffset(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 31u8) as u32) } + } + #[inline] + pub fn set_NameOffset(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 31u8, val as u64) + } + } + #[inline] + pub fn NameIsString(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) } + } + #[inline] + pub fn set_NameIsString(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(31usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + NameOffset: DWORD, + NameIsString: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 31u8, { + let NameOffset: u32 = unsafe { ::std::mem::transmute(NameOffset) }; + NameOffset as u64 + }); + __bindgen_bitfield_unit.set(31usize, 1u8, { + let NameIsString: u32 = unsafe { ::std::mem::transmute(NameIsString) }; + NameIsString as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_2 { + pub OffsetToData: DWORD, + pub __bindgen_anon_1: _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_2__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_2__bindgen_ty_1 { + #[inline] + pub fn OffsetToDirectory(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 31u8) as u32) } + } + #[inline] + pub fn set_OffsetToDirectory(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 31u8, val as u64) + } + } + #[inline] + pub fn DataIsDirectory(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) } + } + #[inline] + pub fn set_DataIsDirectory(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(31usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + OffsetToDirectory: DWORD, + DataIsDirectory: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 31u8, { + let OffsetToDirectory: u32 = unsafe { ::std::mem::transmute(OffsetToDirectory) }; + OffsetToDirectory as u64 + }); + __bindgen_bitfield_unit.set(31usize, 1u8, { + let DataIsDirectory: u32 = unsafe { ::std::mem::transmute(DataIsDirectory) }; + DataIsDirectory as u64 + }); + __bindgen_bitfield_unit + } +} +pub type IMAGE_RESOURCE_DIRECTORY_ENTRY = _IMAGE_RESOURCE_DIRECTORY_ENTRY; +pub type PIMAGE_RESOURCE_DIRECTORY_ENTRY = *mut _IMAGE_RESOURCE_DIRECTORY_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_RESOURCE_DIRECTORY_STRING { + pub Length: WORD, + pub NameString: [CHAR; 1usize], +} +pub type IMAGE_RESOURCE_DIRECTORY_STRING = _IMAGE_RESOURCE_DIRECTORY_STRING; +pub type PIMAGE_RESOURCE_DIRECTORY_STRING = *mut _IMAGE_RESOURCE_DIRECTORY_STRING; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_RESOURCE_DIR_STRING_U { + pub Length: WORD, + pub NameString: [WCHAR; 1usize], +} +pub type IMAGE_RESOURCE_DIR_STRING_U = _IMAGE_RESOURCE_DIR_STRING_U; +pub type PIMAGE_RESOURCE_DIR_STRING_U = *mut _IMAGE_RESOURCE_DIR_STRING_U; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_RESOURCE_DATA_ENTRY { + pub OffsetToData: DWORD, + pub Size: DWORD, + pub CodePage: DWORD, + pub Reserved: DWORD, +} +pub type IMAGE_RESOURCE_DATA_ENTRY = _IMAGE_RESOURCE_DATA_ENTRY; +pub type PIMAGE_RESOURCE_DATA_ENTRY = *mut _IMAGE_RESOURCE_DATA_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_LOAD_CONFIG_CODE_INTEGRITY { + pub Flags: WORD, + pub Catalog: WORD, + pub CatalogOffset: DWORD, + pub Reserved: DWORD, +} +pub type IMAGE_LOAD_CONFIG_CODE_INTEGRITY = _IMAGE_LOAD_CONFIG_CODE_INTEGRITY; +pub type PIMAGE_LOAD_CONFIG_CODE_INTEGRITY = *mut _IMAGE_LOAD_CONFIG_CODE_INTEGRITY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_DYNAMIC_RELOCATION_TABLE { + pub Version: DWORD, + pub Size: DWORD, +} +pub type IMAGE_DYNAMIC_RELOCATION_TABLE = _IMAGE_DYNAMIC_RELOCATION_TABLE; +pub type PIMAGE_DYNAMIC_RELOCATION_TABLE = *mut _IMAGE_DYNAMIC_RELOCATION_TABLE; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_DYNAMIC_RELOCATION32 { + pub Symbol: DWORD, + pub BaseRelocSize: DWORD, +} +pub type IMAGE_DYNAMIC_RELOCATION32 = _IMAGE_DYNAMIC_RELOCATION32; +pub type PIMAGE_DYNAMIC_RELOCATION32 = *mut _IMAGE_DYNAMIC_RELOCATION32; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_DYNAMIC_RELOCATION64 { + pub Symbol: ULONGLONG, + pub BaseRelocSize: DWORD, +} +pub type IMAGE_DYNAMIC_RELOCATION64 = _IMAGE_DYNAMIC_RELOCATION64; +pub type PIMAGE_DYNAMIC_RELOCATION64 = *mut _IMAGE_DYNAMIC_RELOCATION64; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_DYNAMIC_RELOCATION32_V2 { + pub HeaderSize: DWORD, + pub FixupInfoSize: DWORD, + pub Symbol: DWORD, + pub SymbolGroup: DWORD, + pub Flags: DWORD, +} +pub type IMAGE_DYNAMIC_RELOCATION32_V2 = _IMAGE_DYNAMIC_RELOCATION32_V2; +pub type PIMAGE_DYNAMIC_RELOCATION32_V2 = *mut _IMAGE_DYNAMIC_RELOCATION32_V2; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_DYNAMIC_RELOCATION64_V2 { + pub HeaderSize: DWORD, + pub FixupInfoSize: DWORD, + pub Symbol: ULONGLONG, + pub SymbolGroup: DWORD, + pub Flags: DWORD, +} +pub type IMAGE_DYNAMIC_RELOCATION64_V2 = _IMAGE_DYNAMIC_RELOCATION64_V2; +pub type PIMAGE_DYNAMIC_RELOCATION64_V2 = *mut _IMAGE_DYNAMIC_RELOCATION64_V2; +pub type IMAGE_DYNAMIC_RELOCATION = IMAGE_DYNAMIC_RELOCATION64; +pub type PIMAGE_DYNAMIC_RELOCATION = PIMAGE_DYNAMIC_RELOCATION64; +pub type IMAGE_DYNAMIC_RELOCATION_V2 = IMAGE_DYNAMIC_RELOCATION64_V2; +pub type PIMAGE_DYNAMIC_RELOCATION_V2 = PIMAGE_DYNAMIC_RELOCATION64_V2; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER { + pub PrologueByteCount: BYTE, +} +pub type IMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER = _IMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER; +pub type PIMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER = *mut IMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER { + pub EpilogueCount: DWORD, + pub EpilogueByteCount: BYTE, + pub BranchDescriptorElementSize: BYTE, + pub BranchDescriptorCount: WORD, +} +pub type IMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER = _IMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER; +pub type PIMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER = *mut IMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION { + #[inline] + pub fn PageRelativeOffset(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 12u8) as u32) } + } + #[inline] + pub fn set_PageRelativeOffset(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 12u8, val as u64) + } + } + #[inline] + pub fn IndirectCall(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) } + } + #[inline] + pub fn set_IndirectCall(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(12usize, 1u8, val as u64) + } + } + #[inline] + pub fn IATIndex(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 19u8) as u32) } + } + #[inline] + pub fn set_IATIndex(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(13usize, 19u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + PageRelativeOffset: DWORD, + IndirectCall: DWORD, + IATIndex: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 12u8, { + let PageRelativeOffset: u32 = unsafe { ::std::mem::transmute(PageRelativeOffset) }; + PageRelativeOffset as u64 + }); + __bindgen_bitfield_unit.set(12usize, 1u8, { + let IndirectCall: u32 = unsafe { ::std::mem::transmute(IndirectCall) }; + IndirectCall as u64 + }); + __bindgen_bitfield_unit.set(13usize, 19u8, { + let IATIndex: u32 = unsafe { ::std::mem::transmute(IATIndex) }; + IATIndex as u64 + }); + __bindgen_bitfield_unit + } +} +pub type IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION = + _IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION; +pub type PIMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION = + *mut IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +} +impl _IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION { + #[inline] + pub fn PageRelativeOffset(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 12u8) as u16) } + } + #[inline] + pub fn set_PageRelativeOffset(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 12u8, val as u64) + } + } + #[inline] + pub fn IndirectCall(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } + } + #[inline] + pub fn set_IndirectCall(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(12usize, 1u8, val as u64) + } + } + #[inline] + pub fn RexWPrefix(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } + } + #[inline] + pub fn set_RexWPrefix(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(13usize, 1u8, val as u64) + } + } + #[inline] + pub fn CfgCheck(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } + } + #[inline] + pub fn set_CfgCheck(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(14usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } + } + #[inline] + pub fn set_Reserved(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(15usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + PageRelativeOffset: WORD, + IndirectCall: WORD, + RexWPrefix: WORD, + CfgCheck: WORD, + Reserved: WORD, + ) -> __BindgenBitfieldUnit<[u8; 2usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 12u8, { + let PageRelativeOffset: u16 = unsafe { ::std::mem::transmute(PageRelativeOffset) }; + PageRelativeOffset as u64 + }); + __bindgen_bitfield_unit.set(12usize, 1u8, { + let IndirectCall: u16 = unsafe { ::std::mem::transmute(IndirectCall) }; + IndirectCall as u64 + }); + __bindgen_bitfield_unit.set(13usize, 1u8, { + let RexWPrefix: u16 = unsafe { ::std::mem::transmute(RexWPrefix) }; + RexWPrefix as u64 + }); + __bindgen_bitfield_unit.set(14usize, 1u8, { + let CfgCheck: u16 = unsafe { ::std::mem::transmute(CfgCheck) }; + CfgCheck as u64 + }); + __bindgen_bitfield_unit.set(15usize, 1u8, { + let Reserved: u16 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION = + _IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION; +pub type PIMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION = + *mut IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +} +impl _IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION { + #[inline] + pub fn PageRelativeOffset(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 12u8) as u16) } + } + #[inline] + pub fn set_PageRelativeOffset(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 12u8, val as u64) + } + } + #[inline] + pub fn RegisterNumber(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 4u8) as u16) } + } + #[inline] + pub fn set_RegisterNumber(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(12usize, 4u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + PageRelativeOffset: WORD, + RegisterNumber: WORD, + ) -> __BindgenBitfieldUnit<[u8; 2usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 12u8, { + let PageRelativeOffset: u16 = unsafe { ::std::mem::transmute(PageRelativeOffset) }; + PageRelativeOffset as u64 + }); + __bindgen_bitfield_unit.set(12usize, 4u8, { + let RegisterNumber: u16 = unsafe { ::std::mem::transmute(RegisterNumber) }; + RegisterNumber as u64 + }); + __bindgen_bitfield_unit + } +} +pub type IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION = _IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION; +pub type PIMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION = + *mut IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_FUNCTION_OVERRIDE_HEADER { + pub FuncOverrideSize: DWORD, +} +pub type IMAGE_FUNCTION_OVERRIDE_HEADER = _IMAGE_FUNCTION_OVERRIDE_HEADER; +pub type PIMAGE_FUNCTION_OVERRIDE_HEADER = *mut IMAGE_FUNCTION_OVERRIDE_HEADER; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION { + pub OriginalRva: DWORD, + pub BDDOffset: DWORD, + pub RvaSize: DWORD, + pub BaseRelocSize: DWORD, +} +pub type IMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION = _IMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION; +pub type PIMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION = + *mut IMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_BDD_INFO { + pub Version: DWORD, + pub BDDSize: DWORD, +} +pub type IMAGE_BDD_INFO = _IMAGE_BDD_INFO; +pub type PIMAGE_BDD_INFO = *mut IMAGE_BDD_INFO; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_BDD_DYNAMIC_RELOCATION { + pub Left: WORD, + pub Right: WORD, + pub Value: DWORD, +} +pub type IMAGE_BDD_DYNAMIC_RELOCATION = _IMAGE_BDD_DYNAMIC_RELOCATION; +pub type PIMAGE_BDD_DYNAMIC_RELOCATION = *mut IMAGE_BDD_DYNAMIC_RELOCATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_LOAD_CONFIG_DIRECTORY32 { + pub Size: DWORD, + pub TimeDateStamp: DWORD, + pub MajorVersion: WORD, + pub MinorVersion: WORD, + pub GlobalFlagsClear: DWORD, + pub GlobalFlagsSet: DWORD, + pub CriticalSectionDefaultTimeout: DWORD, + pub DeCommitFreeBlockThreshold: DWORD, + pub DeCommitTotalFreeThreshold: DWORD, + pub LockPrefixTable: DWORD, + pub MaximumAllocationSize: DWORD, + pub VirtualMemoryThreshold: DWORD, + pub ProcessHeapFlags: DWORD, + pub ProcessAffinityMask: DWORD, + pub CSDVersion: WORD, + pub DependentLoadFlags: WORD, + pub EditList: DWORD, + pub SecurityCookie: DWORD, + pub SEHandlerTable: DWORD, + pub SEHandlerCount: DWORD, + pub GuardCFCheckFunctionPointer: DWORD, + pub GuardCFDispatchFunctionPointer: DWORD, + pub GuardCFFunctionTable: DWORD, + pub GuardCFFunctionCount: DWORD, + pub GuardFlags: DWORD, + pub CodeIntegrity: IMAGE_LOAD_CONFIG_CODE_INTEGRITY, + pub GuardAddressTakenIatEntryTable: DWORD, + pub GuardAddressTakenIatEntryCount: DWORD, + pub GuardLongJumpTargetTable: DWORD, + pub GuardLongJumpTargetCount: DWORD, + pub DynamicValueRelocTable: DWORD, + pub CHPEMetadataPointer: DWORD, + pub GuardRFFailureRoutine: DWORD, + pub GuardRFFailureRoutineFunctionPointer: DWORD, + pub DynamicValueRelocTableOffset: DWORD, + pub DynamicValueRelocTableSection: WORD, + pub Reserved2: WORD, + pub GuardRFVerifyStackPointerFunctionPointer: DWORD, + pub HotPatchTableOffset: DWORD, + pub Reserved3: DWORD, + pub EnclaveConfigurationPointer: DWORD, + pub VolatileMetadataPointer: DWORD, + pub GuardEHContinuationTable: DWORD, + pub GuardEHContinuationCount: DWORD, + pub GuardXFGCheckFunctionPointer: DWORD, + pub GuardXFGDispatchFunctionPointer: DWORD, + pub GuardXFGTableDispatchFunctionPointer: DWORD, + pub CastGuardOsDeterminedFailureMode: DWORD, + pub GuardMemcpyFunctionPointer: DWORD, +} +pub type IMAGE_LOAD_CONFIG_DIRECTORY32 = _IMAGE_LOAD_CONFIG_DIRECTORY32; +pub type PIMAGE_LOAD_CONFIG_DIRECTORY32 = *mut _IMAGE_LOAD_CONFIG_DIRECTORY32; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_LOAD_CONFIG_DIRECTORY64 { + pub Size: DWORD, + pub TimeDateStamp: DWORD, + pub MajorVersion: WORD, + pub MinorVersion: WORD, + pub GlobalFlagsClear: DWORD, + pub GlobalFlagsSet: DWORD, + pub CriticalSectionDefaultTimeout: DWORD, + pub DeCommitFreeBlockThreshold: ULONGLONG, + pub DeCommitTotalFreeThreshold: ULONGLONG, + pub LockPrefixTable: ULONGLONG, + pub MaximumAllocationSize: ULONGLONG, + pub VirtualMemoryThreshold: ULONGLONG, + pub ProcessAffinityMask: ULONGLONG, + pub ProcessHeapFlags: DWORD, + pub CSDVersion: WORD, + pub DependentLoadFlags: WORD, + pub EditList: ULONGLONG, + pub SecurityCookie: ULONGLONG, + pub SEHandlerTable: ULONGLONG, + pub SEHandlerCount: ULONGLONG, + pub GuardCFCheckFunctionPointer: ULONGLONG, + pub GuardCFDispatchFunctionPointer: ULONGLONG, + pub GuardCFFunctionTable: ULONGLONG, + pub GuardCFFunctionCount: ULONGLONG, + pub GuardFlags: DWORD, + pub CodeIntegrity: IMAGE_LOAD_CONFIG_CODE_INTEGRITY, + pub GuardAddressTakenIatEntryTable: ULONGLONG, + pub GuardAddressTakenIatEntryCount: ULONGLONG, + pub GuardLongJumpTargetTable: ULONGLONG, + pub GuardLongJumpTargetCount: ULONGLONG, + pub DynamicValueRelocTable: ULONGLONG, + pub CHPEMetadataPointer: ULONGLONG, + pub GuardRFFailureRoutine: ULONGLONG, + pub GuardRFFailureRoutineFunctionPointer: ULONGLONG, + pub DynamicValueRelocTableOffset: DWORD, + pub DynamicValueRelocTableSection: WORD, + pub Reserved2: WORD, + pub GuardRFVerifyStackPointerFunctionPointer: ULONGLONG, + pub HotPatchTableOffset: DWORD, + pub Reserved3: DWORD, + pub EnclaveConfigurationPointer: ULONGLONG, + pub VolatileMetadataPointer: ULONGLONG, + pub GuardEHContinuationTable: ULONGLONG, + pub GuardEHContinuationCount: ULONGLONG, + pub GuardXFGCheckFunctionPointer: ULONGLONG, + pub GuardXFGDispatchFunctionPointer: ULONGLONG, + pub GuardXFGTableDispatchFunctionPointer: ULONGLONG, + pub CastGuardOsDeterminedFailureMode: ULONGLONG, + pub GuardMemcpyFunctionPointer: ULONGLONG, +} +pub type IMAGE_LOAD_CONFIG_DIRECTORY64 = _IMAGE_LOAD_CONFIG_DIRECTORY64; +pub type PIMAGE_LOAD_CONFIG_DIRECTORY64 = *mut _IMAGE_LOAD_CONFIG_DIRECTORY64; +pub type IMAGE_LOAD_CONFIG_DIRECTORY = IMAGE_LOAD_CONFIG_DIRECTORY64; +pub type PIMAGE_LOAD_CONFIG_DIRECTORY = PIMAGE_LOAD_CONFIG_DIRECTORY64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_HOT_PATCH_INFO { + pub Version: DWORD, + pub Size: DWORD, + pub SequenceNumber: DWORD, + pub BaseImageList: DWORD, + pub BaseImageCount: DWORD, + pub BufferOffset: DWORD, + pub ExtraPatchSize: DWORD, +} +pub type IMAGE_HOT_PATCH_INFO = _IMAGE_HOT_PATCH_INFO; +pub type PIMAGE_HOT_PATCH_INFO = *mut _IMAGE_HOT_PATCH_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_HOT_PATCH_BASE { + pub SequenceNumber: DWORD, + pub Flags: DWORD, + pub OriginalTimeDateStamp: DWORD, + pub OriginalCheckSum: DWORD, + pub CodeIntegrityInfo: DWORD, + pub CodeIntegritySize: DWORD, + pub PatchTable: DWORD, + pub BufferOffset: DWORD, +} +pub type IMAGE_HOT_PATCH_BASE = _IMAGE_HOT_PATCH_BASE; +pub type PIMAGE_HOT_PATCH_BASE = *mut _IMAGE_HOT_PATCH_BASE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_HOT_PATCH_HASHES { + pub SHA256: [BYTE; 32usize], + pub SHA1: [BYTE; 20usize], +} +pub type IMAGE_HOT_PATCH_HASHES = _IMAGE_HOT_PATCH_HASHES; +pub type PIMAGE_HOT_PATCH_HASHES = *mut _IMAGE_HOT_PATCH_HASHES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_CE_RUNTIME_FUNCTION_ENTRY { + pub FuncStart: DWORD, + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _IMAGE_CE_RUNTIME_FUNCTION_ENTRY { + #[inline] + pub fn PrologLen(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } + } + #[inline] + pub fn set_PrologLen(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn FuncLen(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 22u8) as u32) } + } + #[inline] + pub fn set_FuncLen(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 22u8, val as u64) + } + } + #[inline] + pub fn ThirtyTwoBit(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(30usize, 1u8) as u32) } + } + #[inline] + pub fn set_ThirtyTwoBit(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(30usize, 1u8, val as u64) + } + } + #[inline] + pub fn ExceptionFlag(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) } + } + #[inline] + pub fn set_ExceptionFlag(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(31usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + PrologLen: DWORD, + FuncLen: DWORD, + ThirtyTwoBit: DWORD, + ExceptionFlag: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let PrologLen: u32 = unsafe { ::std::mem::transmute(PrologLen) }; + PrologLen as u64 + }); + __bindgen_bitfield_unit.set(8usize, 22u8, { + let FuncLen: u32 = unsafe { ::std::mem::transmute(FuncLen) }; + FuncLen as u64 + }); + __bindgen_bitfield_unit.set(30usize, 1u8, { + let ThirtyTwoBit: u32 = unsafe { ::std::mem::transmute(ThirtyTwoBit) }; + ThirtyTwoBit as u64 + }); + __bindgen_bitfield_unit.set(31usize, 1u8, { + let ExceptionFlag: u32 = unsafe { ::std::mem::transmute(ExceptionFlag) }; + ExceptionFlag as u64 + }); + __bindgen_bitfield_unit + } +} +pub type IMAGE_CE_RUNTIME_FUNCTION_ENTRY = _IMAGE_CE_RUNTIME_FUNCTION_ENTRY; +pub type PIMAGE_CE_RUNTIME_FUNCTION_ENTRY = *mut _IMAGE_CE_RUNTIME_FUNCTION_ENTRY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY { + pub BeginAddress: DWORD, + pub __bindgen_anon_1: _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1 { + pub UnwindData: DWORD, + pub __bindgen_anon_1: _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn Flag(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) } + } + #[inline] + pub fn set_Flag(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 2u8, val as u64) + } + } + #[inline] + pub fn FunctionLength(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 11u8) as u32) } + } + #[inline] + pub fn set_FunctionLength(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 11u8, val as u64) + } + } + #[inline] + pub fn Ret(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 2u8) as u32) } + } + #[inline] + pub fn set_Ret(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(13usize, 2u8, val as u64) + } + } + #[inline] + pub fn H(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) } + } + #[inline] + pub fn set_H(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(15usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reg(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 3u8) as u32) } + } + #[inline] + pub fn set_Reg(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 3u8, val as u64) + } + } + #[inline] + pub fn R(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u32) } + } + #[inline] + pub fn set_R(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(19usize, 1u8, val as u64) + } + } + #[inline] + pub fn L(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) } + } + #[inline] + pub fn set_L(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(20usize, 1u8, val as u64) + } + } + #[inline] + pub fn C(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u32) } + } + #[inline] + pub fn set_C(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(21usize, 1u8, val as u64) + } + } + #[inline] + pub fn StackAdjust(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 10u8) as u32) } + } + #[inline] + pub fn set_StackAdjust(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(22usize, 10u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Flag: DWORD, + FunctionLength: DWORD, + Ret: DWORD, + H: DWORD, + Reg: DWORD, + R: DWORD, + L: DWORD, + C: DWORD, + StackAdjust: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 2u8, { + let Flag: u32 = unsafe { ::std::mem::transmute(Flag) }; + Flag as u64 + }); + __bindgen_bitfield_unit.set(2usize, 11u8, { + let FunctionLength: u32 = unsafe { ::std::mem::transmute(FunctionLength) }; + FunctionLength as u64 + }); + __bindgen_bitfield_unit.set(13usize, 2u8, { + let Ret: u32 = unsafe { ::std::mem::transmute(Ret) }; + Ret as u64 + }); + __bindgen_bitfield_unit.set(15usize, 1u8, { + let H: u32 = unsafe { ::std::mem::transmute(H) }; + H as u64 + }); + __bindgen_bitfield_unit.set(16usize, 3u8, { + let Reg: u32 = unsafe { ::std::mem::transmute(Reg) }; + Reg as u64 + }); + __bindgen_bitfield_unit.set(19usize, 1u8, { + let R: u32 = unsafe { ::std::mem::transmute(R) }; + R as u64 + }); + __bindgen_bitfield_unit.set(20usize, 1u8, { + let L: u32 = unsafe { ::std::mem::transmute(L) }; + L as u64 + }); + __bindgen_bitfield_unit.set(21usize, 1u8, { + let C: u32 = unsafe { ::std::mem::transmute(C) }; + C as u64 + }); + __bindgen_bitfield_unit.set(22usize, 10u8, { + let StackAdjust: u32 = unsafe { ::std::mem::transmute(StackAdjust) }; + StackAdjust as u64 + }); + __bindgen_bitfield_unit + } +} +pub type IMAGE_ARM_RUNTIME_FUNCTION_ENTRY = _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY; +pub type PIMAGE_ARM_RUNTIME_FUNCTION_ENTRY = *mut _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY; +pub const ARM64_FNPDATA_FLAGS_PdataRefToFullXdata: ARM64_FNPDATA_FLAGS = 0; +pub const ARM64_FNPDATA_FLAGS_PdataPackedUnwindFunction: ARM64_FNPDATA_FLAGS = 1; +pub const ARM64_FNPDATA_FLAGS_PdataPackedUnwindFragment: ARM64_FNPDATA_FLAGS = 2; +pub type ARM64_FNPDATA_FLAGS = ::std::os::raw::c_int; +pub const ARM64_FNPDATA_CR_PdataCrUnchained: ARM64_FNPDATA_CR = 0; +pub const ARM64_FNPDATA_CR_PdataCrUnchainedSavedLr: ARM64_FNPDATA_CR = 1; +pub const ARM64_FNPDATA_CR_PdataCrChainedWithPac: ARM64_FNPDATA_CR = 2; +pub const ARM64_FNPDATA_CR_PdataCrChained: ARM64_FNPDATA_CR = 3; +pub type ARM64_FNPDATA_CR = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY { + pub BeginAddress: DWORD, + pub __bindgen_anon_1: _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1 { + pub UnwindData: DWORD, + pub __bindgen_anon_1: _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn Flag(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) } + } + #[inline] + pub fn set_Flag(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 2u8, val as u64) + } + } + #[inline] + pub fn FunctionLength(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 11u8) as u32) } + } + #[inline] + pub fn set_FunctionLength(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 11u8, val as u64) + } + } + #[inline] + pub fn RegF(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 3u8) as u32) } + } + #[inline] + pub fn set_RegF(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(13usize, 3u8, val as u64) + } + } + #[inline] + pub fn RegI(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 4u8) as u32) } + } + #[inline] + pub fn set_RegI(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 4u8, val as u64) + } + } + #[inline] + pub fn H(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) } + } + #[inline] + pub fn set_H(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(20usize, 1u8, val as u64) + } + } + #[inline] + pub fn CR(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 2u8) as u32) } + } + #[inline] + pub fn set_CR(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(21usize, 2u8, val as u64) + } + } + #[inline] + pub fn FrameSize(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 9u8) as u32) } + } + #[inline] + pub fn set_FrameSize(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(23usize, 9u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Flag: DWORD, + FunctionLength: DWORD, + RegF: DWORD, + RegI: DWORD, + H: DWORD, + CR: DWORD, + FrameSize: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 2u8, { + let Flag: u32 = unsafe { ::std::mem::transmute(Flag) }; + Flag as u64 + }); + __bindgen_bitfield_unit.set(2usize, 11u8, { + let FunctionLength: u32 = unsafe { ::std::mem::transmute(FunctionLength) }; + FunctionLength as u64 + }); + __bindgen_bitfield_unit.set(13usize, 3u8, { + let RegF: u32 = unsafe { ::std::mem::transmute(RegF) }; + RegF as u64 + }); + __bindgen_bitfield_unit.set(16usize, 4u8, { + let RegI: u32 = unsafe { ::std::mem::transmute(RegI) }; + RegI as u64 + }); + __bindgen_bitfield_unit.set(20usize, 1u8, { + let H: u32 = unsafe { ::std::mem::transmute(H) }; + H as u64 + }); + __bindgen_bitfield_unit.set(21usize, 2u8, { + let CR: u32 = unsafe { ::std::mem::transmute(CR) }; + CR as u64 + }); + __bindgen_bitfield_unit.set(23usize, 9u8, { + let FrameSize: u32 = unsafe { ::std::mem::transmute(FrameSize) }; + FrameSize as u64 + }); + __bindgen_bitfield_unit + } +} +pub type IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY = _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY; +pub type PIMAGE_ARM64_RUNTIME_FUNCTION_ENTRY = *mut _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY; +#[repr(C)] +#[derive(Copy, Clone)] +pub union IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY_XDATA { + pub HeaderData: DWORD, + pub __bindgen_anon_1: IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY_XDATA__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY_XDATA__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY_XDATA__bindgen_ty_1 { + #[inline] + pub fn FunctionLength(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 18u8) as u32) } + } + #[inline] + pub fn set_FunctionLength(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 18u8, val as u64) + } + } + #[inline] + pub fn Version(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 2u8) as u32) } + } + #[inline] + pub fn set_Version(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(18usize, 2u8, val as u64) + } + } + #[inline] + pub fn ExceptionDataPresent(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) } + } + #[inline] + pub fn set_ExceptionDataPresent(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(20usize, 1u8, val as u64) + } + } + #[inline] + pub fn EpilogInHeader(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u32) } + } + #[inline] + pub fn set_EpilogInHeader(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(21usize, 1u8, val as u64) + } + } + #[inline] + pub fn EpilogCount(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 5u8) as u32) } + } + #[inline] + pub fn set_EpilogCount(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(22usize, 5u8, val as u64) + } + } + #[inline] + pub fn CodeWords(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(27usize, 5u8) as u32) } + } + #[inline] + pub fn set_CodeWords(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(27usize, 5u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + FunctionLength: DWORD, + Version: DWORD, + ExceptionDataPresent: DWORD, + EpilogInHeader: DWORD, + EpilogCount: DWORD, + CodeWords: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 18u8, { + let FunctionLength: u32 = unsafe { ::std::mem::transmute(FunctionLength) }; + FunctionLength as u64 + }); + __bindgen_bitfield_unit.set(18usize, 2u8, { + let Version: u32 = unsafe { ::std::mem::transmute(Version) }; + Version as u64 + }); + __bindgen_bitfield_unit.set(20usize, 1u8, { + let ExceptionDataPresent: u32 = unsafe { ::std::mem::transmute(ExceptionDataPresent) }; + ExceptionDataPresent as u64 + }); + __bindgen_bitfield_unit.set(21usize, 1u8, { + let EpilogInHeader: u32 = unsafe { ::std::mem::transmute(EpilogInHeader) }; + EpilogInHeader as u64 + }); + __bindgen_bitfield_unit.set(22usize, 5u8, { + let EpilogCount: u32 = unsafe { ::std::mem::transmute(EpilogCount) }; + EpilogCount as u64 + }); + __bindgen_bitfield_unit.set(27usize, 5u8, { + let CodeWords: u32 = unsafe { ::std::mem::transmute(CodeWords) }; + CodeWords as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY { + pub BeginAddress: ULONGLONG, + pub EndAddress: ULONGLONG, + pub ExceptionHandler: ULONGLONG, + pub HandlerData: ULONGLONG, + pub PrologEndAddress: ULONGLONG, +} +pub type IMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY = _IMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY; +pub type PIMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY = *mut _IMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY { + pub BeginAddress: DWORD, + pub EndAddress: DWORD, + pub ExceptionHandler: DWORD, + pub HandlerData: DWORD, + pub PrologEndAddress: DWORD, +} +pub type IMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY = _IMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY; +pub type PIMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY = *mut _IMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _IMAGE_RUNTIME_FUNCTION_ENTRY { + pub BeginAddress: DWORD, + pub EndAddress: DWORD, + pub __bindgen_anon_1: _IMAGE_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1 { + pub UnwindInfoAddress: DWORD, + pub UnwindData: DWORD, +} +pub type _PIMAGE_RUNTIME_FUNCTION_ENTRY = *mut _IMAGE_RUNTIME_FUNCTION_ENTRY; +pub type IMAGE_IA64_RUNTIME_FUNCTION_ENTRY = _IMAGE_RUNTIME_FUNCTION_ENTRY; +pub type PIMAGE_IA64_RUNTIME_FUNCTION_ENTRY = _PIMAGE_RUNTIME_FUNCTION_ENTRY; +pub type IMAGE_AMD64_RUNTIME_FUNCTION_ENTRY = _IMAGE_RUNTIME_FUNCTION_ENTRY; +pub type PIMAGE_AMD64_RUNTIME_FUNCTION_ENTRY = _PIMAGE_RUNTIME_FUNCTION_ENTRY; +pub type IMAGE_RUNTIME_FUNCTION_ENTRY = _IMAGE_RUNTIME_FUNCTION_ENTRY; +pub type PIMAGE_RUNTIME_FUNCTION_ENTRY = _PIMAGE_RUNTIME_FUNCTION_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_ENCLAVE_CONFIG32 { + pub Size: DWORD, + pub MinimumRequiredConfigSize: DWORD, + pub PolicyFlags: DWORD, + pub NumberOfImports: DWORD, + pub ImportList: DWORD, + pub ImportEntrySize: DWORD, + pub FamilyID: [BYTE; 16usize], + pub ImageID: [BYTE; 16usize], + pub ImageVersion: DWORD, + pub SecurityVersion: DWORD, + pub EnclaveSize: DWORD, + pub NumberOfThreads: DWORD, + pub EnclaveFlags: DWORD, +} +pub type IMAGE_ENCLAVE_CONFIG32 = _IMAGE_ENCLAVE_CONFIG32; +pub type PIMAGE_ENCLAVE_CONFIG32 = *mut _IMAGE_ENCLAVE_CONFIG32; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_ENCLAVE_CONFIG64 { + pub Size: DWORD, + pub MinimumRequiredConfigSize: DWORD, + pub PolicyFlags: DWORD, + pub NumberOfImports: DWORD, + pub ImportList: DWORD, + pub ImportEntrySize: DWORD, + pub FamilyID: [BYTE; 16usize], + pub ImageID: [BYTE; 16usize], + pub ImageVersion: DWORD, + pub SecurityVersion: DWORD, + pub EnclaveSize: ULONGLONG, + pub NumberOfThreads: DWORD, + pub EnclaveFlags: DWORD, +} +pub type IMAGE_ENCLAVE_CONFIG64 = _IMAGE_ENCLAVE_CONFIG64; +pub type PIMAGE_ENCLAVE_CONFIG64 = *mut _IMAGE_ENCLAVE_CONFIG64; +pub type IMAGE_ENCLAVE_CONFIG = IMAGE_ENCLAVE_CONFIG64; +pub type PIMAGE_ENCLAVE_CONFIG = PIMAGE_ENCLAVE_CONFIG64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_ENCLAVE_IMPORT { + pub MatchType: DWORD, + pub MinimumSecurityVersion: DWORD, + pub UniqueOrAuthorID: [BYTE; 32usize], + pub FamilyID: [BYTE; 16usize], + pub ImageID: [BYTE; 16usize], + pub ImportName: DWORD, + pub Reserved: DWORD, +} +pub type IMAGE_ENCLAVE_IMPORT = _IMAGE_ENCLAVE_IMPORT; +pub type PIMAGE_ENCLAVE_IMPORT = *mut _IMAGE_ENCLAVE_IMPORT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_DEBUG_DIRECTORY { + pub Characteristics: DWORD, + pub TimeDateStamp: DWORD, + pub MajorVersion: WORD, + pub MinorVersion: WORD, + pub Type: DWORD, + pub SizeOfData: DWORD, + pub AddressOfRawData: DWORD, + pub PointerToRawData: DWORD, +} +pub type IMAGE_DEBUG_DIRECTORY = _IMAGE_DEBUG_DIRECTORY; +pub type PIMAGE_DEBUG_DIRECTORY = *mut _IMAGE_DEBUG_DIRECTORY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_COFF_SYMBOLS_HEADER { + pub NumberOfSymbols: DWORD, + pub LvaToFirstSymbol: DWORD, + pub NumberOfLinenumbers: DWORD, + pub LvaToFirstLinenumber: DWORD, + pub RvaToFirstByteOfCode: DWORD, + pub RvaToLastByteOfCode: DWORD, + pub RvaToFirstByteOfData: DWORD, + pub RvaToLastByteOfData: DWORD, +} +pub type IMAGE_COFF_SYMBOLS_HEADER = _IMAGE_COFF_SYMBOLS_HEADER; +pub type PIMAGE_COFF_SYMBOLS_HEADER = *mut _IMAGE_COFF_SYMBOLS_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FPO_DATA { + pub ulOffStart: DWORD, + pub cbProcSize: DWORD, + pub cdwLocals: DWORD, + pub cdwParams: WORD, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +} +impl _FPO_DATA { + #[inline] + pub fn cbProlog(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u16) } + } + #[inline] + pub fn set_cbProlog(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn cbRegs(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 3u8) as u16) } + } + #[inline] + pub fn set_cbRegs(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 3u8, val as u64) + } + } + #[inline] + pub fn fHasSEH(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } + } + #[inline] + pub fn set_fHasSEH(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(11usize, 1u8, val as u64) + } + } + #[inline] + pub fn fUseBP(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } + } + #[inline] + pub fn set_fUseBP(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(12usize, 1u8, val as u64) + } + } + #[inline] + pub fn reserved(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } + } + #[inline] + pub fn set_reserved(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(13usize, 1u8, val as u64) + } + } + #[inline] + pub fn cbFrame(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 2u8) as u16) } + } + #[inline] + pub fn set_cbFrame(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(14usize, 2u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + cbProlog: WORD, + cbRegs: WORD, + fHasSEH: WORD, + fUseBP: WORD, + reserved: WORD, + cbFrame: WORD, + ) -> __BindgenBitfieldUnit<[u8; 2usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let cbProlog: u16 = unsafe { ::std::mem::transmute(cbProlog) }; + cbProlog as u64 + }); + __bindgen_bitfield_unit.set(8usize, 3u8, { + let cbRegs: u16 = unsafe { ::std::mem::transmute(cbRegs) }; + cbRegs as u64 + }); + __bindgen_bitfield_unit.set(11usize, 1u8, { + let fHasSEH: u16 = unsafe { ::std::mem::transmute(fHasSEH) }; + fHasSEH as u64 + }); + __bindgen_bitfield_unit.set(12usize, 1u8, { + let fUseBP: u16 = unsafe { ::std::mem::transmute(fUseBP) }; + fUseBP as u64 + }); + __bindgen_bitfield_unit.set(13usize, 1u8, { + let reserved: u16 = unsafe { ::std::mem::transmute(reserved) }; + reserved as u64 + }); + __bindgen_bitfield_unit.set(14usize, 2u8, { + let cbFrame: u16 = unsafe { ::std::mem::transmute(cbFrame) }; + cbFrame as u64 + }); + __bindgen_bitfield_unit + } +} +pub type FPO_DATA = _FPO_DATA; +pub type PFPO_DATA = *mut _FPO_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_DEBUG_MISC { + pub DataType: DWORD, + pub Length: DWORD, + pub Unicode: BOOLEAN, + pub Reserved: [BYTE; 3usize], + pub Data: [BYTE; 1usize], +} +pub type IMAGE_DEBUG_MISC = _IMAGE_DEBUG_MISC; +pub type PIMAGE_DEBUG_MISC = *mut _IMAGE_DEBUG_MISC; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_FUNCTION_ENTRY { + pub StartingAddress: DWORD, + pub EndingAddress: DWORD, + pub EndOfPrologue: DWORD, +} +pub type IMAGE_FUNCTION_ENTRY = _IMAGE_FUNCTION_ENTRY; +pub type PIMAGE_FUNCTION_ENTRY = *mut _IMAGE_FUNCTION_ENTRY; +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct _IMAGE_FUNCTION_ENTRY64 { + pub StartingAddress: ULONGLONG, + pub EndingAddress: ULONGLONG, + pub __bindgen_anon_1: _IMAGE_FUNCTION_ENTRY64__bindgen_ty_1, +} +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub union _IMAGE_FUNCTION_ENTRY64__bindgen_ty_1 { + pub EndOfPrologue: ULONGLONG, + pub UnwindInfoAddress: ULONGLONG, +} +pub type IMAGE_FUNCTION_ENTRY64 = _IMAGE_FUNCTION_ENTRY64; +pub type PIMAGE_FUNCTION_ENTRY64 = *mut _IMAGE_FUNCTION_ENTRY64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IMAGE_SEPARATE_DEBUG_HEADER { + pub Signature: WORD, + pub Flags: WORD, + pub Machine: WORD, + pub Characteristics: WORD, + pub TimeDateStamp: DWORD, + pub CheckSum: DWORD, + pub ImageBase: DWORD, + pub SizeOfImage: DWORD, + pub NumberOfSections: DWORD, + pub ExportedNamesSize: DWORD, + pub DebugDirectorySize: DWORD, + pub SectionAlignment: DWORD, + pub Reserved: [DWORD; 2usize], +} +pub type IMAGE_SEPARATE_DEBUG_HEADER = _IMAGE_SEPARATE_DEBUG_HEADER; +pub type PIMAGE_SEPARATE_DEBUG_HEADER = *mut _IMAGE_SEPARATE_DEBUG_HEADER; +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct _NON_PAGED_DEBUG_INFO { + pub Signature: WORD, + pub Flags: WORD, + pub Size: DWORD, + pub Machine: WORD, + pub Characteristics: WORD, + pub TimeDateStamp: DWORD, + pub CheckSum: DWORD, + pub SizeOfImage: DWORD, + pub ImageBase: ULONGLONG, +} +pub type NON_PAGED_DEBUG_INFO = _NON_PAGED_DEBUG_INFO; +pub type PNON_PAGED_DEBUG_INFO = *mut _NON_PAGED_DEBUG_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ImageArchitectureHeader { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub FirstEntryRVA: DWORD, +} +impl _ImageArchitectureHeader { + #[inline] + pub fn AmaskValue(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_AmaskValue(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn AmaskShift(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } + } + #[inline] + pub fn set_AmaskShift(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 8u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + AmaskValue: ::std::os::raw::c_uint, + AmaskShift: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let AmaskValue: u32 = unsafe { ::std::mem::transmute(AmaskValue) }; + AmaskValue as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let AmaskShift: u32 = unsafe { ::std::mem::transmute(AmaskShift) }; + AmaskShift as u64 + }); + __bindgen_bitfield_unit + } +} +pub type IMAGE_ARCHITECTURE_HEADER = _ImageArchitectureHeader; +pub type PIMAGE_ARCHITECTURE_HEADER = *mut _ImageArchitectureHeader; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ImageArchitectureEntry { + pub FixupInstRVA: DWORD, + pub NewInst: DWORD, +} +pub type IMAGE_ARCHITECTURE_ENTRY = _ImageArchitectureEntry; +pub type PIMAGE_ARCHITECTURE_ENTRY = *mut _ImageArchitectureEntry; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct IMPORT_OBJECT_HEADER { + pub Sig1: WORD, + pub Sig2: WORD, + pub Version: WORD, + pub Machine: WORD, + pub TimeDateStamp: DWORD, + pub SizeOfData: DWORD, + pub __bindgen_anon_1: IMPORT_OBJECT_HEADER__bindgen_ty_1, + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union IMPORT_OBJECT_HEADER__bindgen_ty_1 { + pub Ordinal: WORD, + pub Hint: WORD, +} +impl IMPORT_OBJECT_HEADER { + #[inline] + pub fn Type(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u16) } + } + #[inline] + pub fn set_Type(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 2u8, val as u64) + } + } + #[inline] + pub fn NameType(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 3u8) as u16) } + } + #[inline] + pub fn set_NameType(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 3u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> WORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 11u8) as u16) } + } + #[inline] + pub fn set_Reserved(&mut self, val: WORD) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 11u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Type: WORD, + NameType: WORD, + Reserved: WORD, + ) -> __BindgenBitfieldUnit<[u8; 2usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 2u8, { + let Type: u16 = unsafe { ::std::mem::transmute(Type) }; + Type as u64 + }); + __bindgen_bitfield_unit.set(2usize, 3u8, { + let NameType: u16 = unsafe { ::std::mem::transmute(NameType) }; + NameType as u64 + }); + __bindgen_bitfield_unit.set(5usize, 11u8, { + let Reserved: u16 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub const IMPORT_OBJECT_TYPE_IMPORT_OBJECT_CODE: IMPORT_OBJECT_TYPE = 0; +pub const IMPORT_OBJECT_TYPE_IMPORT_OBJECT_DATA: IMPORT_OBJECT_TYPE = 1; +pub const IMPORT_OBJECT_TYPE_IMPORT_OBJECT_CONST: IMPORT_OBJECT_TYPE = 2; +pub type IMPORT_OBJECT_TYPE = ::std::os::raw::c_int; +pub const IMPORT_OBJECT_NAME_TYPE_IMPORT_OBJECT_ORDINAL: IMPORT_OBJECT_NAME_TYPE = 0; +pub const IMPORT_OBJECT_NAME_TYPE_IMPORT_OBJECT_NAME: IMPORT_OBJECT_NAME_TYPE = 1; +pub const IMPORT_OBJECT_NAME_TYPE_IMPORT_OBJECT_NAME_NO_PREFIX: IMPORT_OBJECT_NAME_TYPE = 2; +pub const IMPORT_OBJECT_NAME_TYPE_IMPORT_OBJECT_NAME_UNDECORATE: IMPORT_OBJECT_NAME_TYPE = 3; +pub const IMPORT_OBJECT_NAME_TYPE_IMPORT_OBJECT_NAME_EXPORTAS: IMPORT_OBJECT_NAME_TYPE = 4; +pub type IMPORT_OBJECT_NAME_TYPE = ::std::os::raw::c_int; +pub const ReplacesCorHdrNumericDefines_COMIMAGE_FLAGS_ILONLY: ReplacesCorHdrNumericDefines = 1; +pub const ReplacesCorHdrNumericDefines_COMIMAGE_FLAGS_32BITREQUIRED: ReplacesCorHdrNumericDefines = + 2; +pub const ReplacesCorHdrNumericDefines_COMIMAGE_FLAGS_IL_LIBRARY: ReplacesCorHdrNumericDefines = 4; +pub const ReplacesCorHdrNumericDefines_COMIMAGE_FLAGS_STRONGNAMESIGNED: + ReplacesCorHdrNumericDefines = 8; +pub const ReplacesCorHdrNumericDefines_COMIMAGE_FLAGS_NATIVE_ENTRYPOINT: + ReplacesCorHdrNumericDefines = 16; +pub const ReplacesCorHdrNumericDefines_COMIMAGE_FLAGS_TRACKDEBUGDATA: ReplacesCorHdrNumericDefines = + 65536; +pub const ReplacesCorHdrNumericDefines_COMIMAGE_FLAGS_32BITPREFERRED: ReplacesCorHdrNumericDefines = + 131072; +pub const ReplacesCorHdrNumericDefines_COR_VERSION_MAJOR_V2: ReplacesCorHdrNumericDefines = 2; +pub const ReplacesCorHdrNumericDefines_COR_VERSION_MAJOR: ReplacesCorHdrNumericDefines = 2; +pub const ReplacesCorHdrNumericDefines_COR_VERSION_MINOR: ReplacesCorHdrNumericDefines = 5; +pub const ReplacesCorHdrNumericDefines_COR_DELETED_NAME_LENGTH: ReplacesCorHdrNumericDefines = 8; +pub const ReplacesCorHdrNumericDefines_COR_VTABLEGAP_NAME_LENGTH: ReplacesCorHdrNumericDefines = 8; +pub const ReplacesCorHdrNumericDefines_NATIVE_TYPE_MAX_CB: ReplacesCorHdrNumericDefines = 1; +pub const ReplacesCorHdrNumericDefines_COR_ILMETHOD_SECT_SMALL_MAX_DATASIZE: + ReplacesCorHdrNumericDefines = 255; +pub const ReplacesCorHdrNumericDefines_IMAGE_COR_MIH_METHODRVA: ReplacesCorHdrNumericDefines = 1; +pub const ReplacesCorHdrNumericDefines_IMAGE_COR_MIH_EHRVA: ReplacesCorHdrNumericDefines = 2; +pub const ReplacesCorHdrNumericDefines_IMAGE_COR_MIH_BASICBLOCK: ReplacesCorHdrNumericDefines = 8; +pub const ReplacesCorHdrNumericDefines_COR_VTABLE_32BIT: ReplacesCorHdrNumericDefines = 1; +pub const ReplacesCorHdrNumericDefines_COR_VTABLE_64BIT: ReplacesCorHdrNumericDefines = 2; +pub const ReplacesCorHdrNumericDefines_COR_VTABLE_FROM_UNMANAGED: ReplacesCorHdrNumericDefines = 4; +pub const ReplacesCorHdrNumericDefines_COR_VTABLE_FROM_UNMANAGED_RETAIN_APPDOMAIN: + ReplacesCorHdrNumericDefines = 8; +pub const ReplacesCorHdrNumericDefines_COR_VTABLE_CALL_MOST_DERIVED: ReplacesCorHdrNumericDefines = + 16; +pub const ReplacesCorHdrNumericDefines_IMAGE_COR_EATJ_THUNK_SIZE: ReplacesCorHdrNumericDefines = 32; +pub const ReplacesCorHdrNumericDefines_MAX_CLASS_NAME: ReplacesCorHdrNumericDefines = 1024; +pub const ReplacesCorHdrNumericDefines_MAX_PACKAGE_NAME: ReplacesCorHdrNumericDefines = 1024; +pub type ReplacesCorHdrNumericDefines = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct IMAGE_COR20_HEADER { + pub cb: DWORD, + pub MajorRuntimeVersion: WORD, + pub MinorRuntimeVersion: WORD, + pub MetaData: IMAGE_DATA_DIRECTORY, + pub Flags: DWORD, + pub __bindgen_anon_1: IMAGE_COR20_HEADER__bindgen_ty_1, + pub Resources: IMAGE_DATA_DIRECTORY, + pub StrongNameSignature: IMAGE_DATA_DIRECTORY, + pub CodeManagerTable: IMAGE_DATA_DIRECTORY, + pub VTableFixups: IMAGE_DATA_DIRECTORY, + pub ExportAddressTableJumps: IMAGE_DATA_DIRECTORY, + pub ManagedNativeHeader: IMAGE_DATA_DIRECTORY, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union IMAGE_COR20_HEADER__bindgen_ty_1 { + pub EntryPointToken: DWORD, + pub EntryPointRVA: DWORD, +} +pub type PIMAGE_COR20_HEADER = *mut IMAGE_COR20_HEADER; +extern "C" { + pub fn RtlCaptureStackBackTrace( + FramesToSkip: DWORD, + FramesToCapture: DWORD, + BackTrace: *mut PVOID, + BackTraceHash: PDWORD, + ) -> WORD; +} +extern "C" { + pub fn RtlCaptureContext(ContextRecord: PCONTEXT); +} +extern "C" { + pub fn RtlCaptureContext2(ContextRecord: PCONTEXT); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _UNWIND_HISTORY_TABLE_ENTRY { + pub ImageBase: ULONG_PTR, + pub FunctionEntry: PRUNTIME_FUNCTION, +} +pub type UNWIND_HISTORY_TABLE_ENTRY = _UNWIND_HISTORY_TABLE_ENTRY; +pub type PUNWIND_HISTORY_TABLE_ENTRY = *mut _UNWIND_HISTORY_TABLE_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _UNWIND_HISTORY_TABLE { + pub Count: DWORD, + pub LocalHint: BYTE, + pub GlobalHint: BYTE, + pub Search: BYTE, + pub Once: BYTE, + pub LowAddress: ULONG_PTR, + pub HighAddress: ULONG_PTR, + pub Entry: [UNWIND_HISTORY_TABLE_ENTRY; 12usize], +} +pub type UNWIND_HISTORY_TABLE = _UNWIND_HISTORY_TABLE; +pub type PUNWIND_HISTORY_TABLE = *mut _UNWIND_HISTORY_TABLE; +extern "C" { + pub fn RtlUnwind( + TargetFrame: PVOID, + TargetIp: PVOID, + ExceptionRecord: PEXCEPTION_RECORD, + ReturnValue: PVOID, + ); +} +extern "C" { + pub fn RtlAddFunctionTable( + FunctionTable: PRUNTIME_FUNCTION, + EntryCount: DWORD, + BaseAddress: DWORD64, + ) -> BOOLEAN; +} +extern "C" { + pub fn RtlDeleteFunctionTable(FunctionTable: PRUNTIME_FUNCTION) -> BOOLEAN; +} +extern "C" { + pub fn RtlInstallFunctionTableCallback( + TableIdentifier: DWORD64, + BaseAddress: DWORD64, + Length: DWORD, + Callback: PGET_RUNTIME_FUNCTION_CALLBACK, + Context: PVOID, + OutOfProcessCallbackDll: PCWSTR, + ) -> BOOLEAN; +} +extern "C" { + pub fn RtlAddGrowableFunctionTable( + DynamicTable: *mut PVOID, + FunctionTable: PRUNTIME_FUNCTION, + EntryCount: DWORD, + MaximumEntryCount: DWORD, + RangeBase: ULONG_PTR, + RangeEnd: ULONG_PTR, + ) -> DWORD; +} +extern "C" { + pub fn RtlGrowFunctionTable(DynamicTable: PVOID, NewEntryCount: DWORD); +} +extern "C" { + pub fn RtlDeleteGrowableFunctionTable(DynamicTable: PVOID); +} +extern "C" { + pub fn RtlLookupFunctionEntry( + ControlPc: DWORD64, + ImageBase: PDWORD64, + HistoryTable: PUNWIND_HISTORY_TABLE, + ) -> PRUNTIME_FUNCTION; +} +extern "C" { + pub fn RtlRestoreContext(ContextRecord: PCONTEXT, ExceptionRecord: *mut _EXCEPTION_RECORD); +} +extern "C" { + pub fn RtlUnwindEx( + TargetFrame: PVOID, + TargetIp: PVOID, + ExceptionRecord: PEXCEPTION_RECORD, + ReturnValue: PVOID, + ContextRecord: PCONTEXT, + HistoryTable: PUNWIND_HISTORY_TABLE, + ); +} +extern "C" { + pub fn RtlVirtualUnwind( + HandlerType: DWORD, + ImageBase: DWORD64, + ControlPc: DWORD64, + FunctionEntry: PRUNTIME_FUNCTION, + ContextRecord: PCONTEXT, + HandlerData: *mut PVOID, + EstablisherFrame: PDWORD64, + ContextPointers: PKNONVOLATILE_CONTEXT_POINTERS, + ) -> PEXCEPTION_ROUTINE; +} +extern "C" { + pub fn RtlRaiseException(ExceptionRecord: PEXCEPTION_RECORD); +} +extern "C" { + pub fn RtlPcToFileHeader(PcValue: PVOID, BaseOfImage: *mut PVOID) -> PVOID; +} +extern "C" { + pub fn RtlCompareMemory( + Source1: *const ::std::os::raw::c_void, + Source2: *const ::std::os::raw::c_void, + Length: SIZE_T, + ) -> SIZE_T; +} +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct _SLIST_ENTRY { + pub Next: *mut _SLIST_ENTRY, +} +pub type SLIST_ENTRY = _SLIST_ENTRY; +pub type PSLIST_ENTRY = *mut _SLIST_ENTRY; +#[repr(C)] +#[repr(align(16))] +#[derive(Copy, Clone)] +pub union _SLIST_HEADER { + pub __bindgen_anon_1: _SLIST_HEADER__bindgen_ty_1, + pub HeaderX64: _SLIST_HEADER__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SLIST_HEADER__bindgen_ty_1 { + pub Alignment: ULONGLONG, + pub Region: ULONGLONG, +} +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct _SLIST_HEADER__bindgen_ty_2 { + pub _bitfield_align_1: [u64; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 16usize]>, +} +impl _SLIST_HEADER__bindgen_ty_2 { + #[inline] + pub fn Depth(&self) -> ULONGLONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u64) } + } + #[inline] + pub fn set_Depth(&mut self, val: ULONGLONG) { + unsafe { + let val: u64 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 16u8, val as u64) + } + } + #[inline] + pub fn Sequence(&self) -> ULONGLONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 48u8) as u64) } + } + #[inline] + pub fn set_Sequence(&mut self, val: ULONGLONG) { + unsafe { + let val: u64 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 48u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> ULONGLONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(64usize, 4u8) as u64) } + } + #[inline] + pub fn set_Reserved(&mut self, val: ULONGLONG) { + unsafe { + let val: u64 = ::std::mem::transmute(val); + self._bitfield_1.set(64usize, 4u8, val as u64) + } + } + #[inline] + pub fn NextEntry(&self) -> ULONGLONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(68usize, 60u8) as u64) } + } + #[inline] + pub fn set_NextEntry(&mut self, val: ULONGLONG) { + unsafe { + let val: u64 = ::std::mem::transmute(val); + self._bitfield_1.set(68usize, 60u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Depth: ULONGLONG, + Sequence: ULONGLONG, + Reserved: ULONGLONG, + NextEntry: ULONGLONG, + ) -> __BindgenBitfieldUnit<[u8; 16usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 16usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 16u8, { + let Depth: u64 = unsafe { ::std::mem::transmute(Depth) }; + Depth as u64 + }); + __bindgen_bitfield_unit.set(16usize, 48u8, { + let Sequence: u64 = unsafe { ::std::mem::transmute(Sequence) }; + Sequence as u64 + }); + __bindgen_bitfield_unit.set(64usize, 4u8, { + let Reserved: u64 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit.set(68usize, 60u8, { + let NextEntry: u64 = unsafe { ::std::mem::transmute(NextEntry) }; + NextEntry as u64 + }); + __bindgen_bitfield_unit + } +} +pub type SLIST_HEADER = _SLIST_HEADER; +pub type PSLIST_HEADER = *mut _SLIST_HEADER; +extern "C" { + pub fn RtlInitializeSListHead(ListHead: PSLIST_HEADER); +} +extern "C" { + pub fn RtlFirstEntrySList(ListHead: *const SLIST_HEADER) -> PSLIST_ENTRY; +} +extern "C" { + pub fn RtlInterlockedPopEntrySList(ListHead: PSLIST_HEADER) -> PSLIST_ENTRY; +} +extern "C" { + pub fn RtlInterlockedPushEntrySList( + ListHead: PSLIST_HEADER, + ListEntry: PSLIST_ENTRY, + ) -> PSLIST_ENTRY; +} +extern "C" { + pub fn RtlInterlockedPushListSListEx( + ListHead: PSLIST_HEADER, + List: PSLIST_ENTRY, + ListEnd: PSLIST_ENTRY, + Count: DWORD, + ) -> PSLIST_ENTRY; +} +extern "C" { + pub fn RtlInterlockedFlushSList(ListHead: PSLIST_HEADER) -> PSLIST_ENTRY; +} +extern "C" { + pub fn RtlQueryDepthSList(ListHead: PSLIST_HEADER) -> WORD; +} +extern "C" { + pub fn RtlGetReturnAddressHijackTarget() -> ULONG_PTR; +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _RTL_RUN_ONCE { + pub Ptr: PVOID, +} +pub type RTL_RUN_ONCE = _RTL_RUN_ONCE; +pub type PRTL_RUN_ONCE = *mut _RTL_RUN_ONCE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RTL_BARRIER { + pub Reserved1: DWORD, + pub Reserved2: DWORD, + pub Reserved3: [ULONG_PTR; 2usize], + pub Reserved4: DWORD, + pub Reserved5: DWORD, +} +pub type RTL_BARRIER = _RTL_BARRIER; +pub type PRTL_BARRIER = *mut _RTL_BARRIER; +extern "C" { + pub fn __fastfail(Code: ::std::os::raw::c_uint) -> !; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MESSAGE_RESOURCE_ENTRY { + pub Length: WORD, + pub Flags: WORD, + pub Text: [BYTE; 1usize], +} +pub type MESSAGE_RESOURCE_ENTRY = _MESSAGE_RESOURCE_ENTRY; +pub type PMESSAGE_RESOURCE_ENTRY = *mut _MESSAGE_RESOURCE_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MESSAGE_RESOURCE_BLOCK { + pub LowId: DWORD, + pub HighId: DWORD, + pub OffsetToEntries: DWORD, +} +pub type MESSAGE_RESOURCE_BLOCK = _MESSAGE_RESOURCE_BLOCK; +pub type PMESSAGE_RESOURCE_BLOCK = *mut _MESSAGE_RESOURCE_BLOCK; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MESSAGE_RESOURCE_DATA { + pub NumberOfBlocks: DWORD, + pub Blocks: [MESSAGE_RESOURCE_BLOCK; 1usize], +} +pub type MESSAGE_RESOURCE_DATA = _MESSAGE_RESOURCE_DATA; +pub type PMESSAGE_RESOURCE_DATA = *mut _MESSAGE_RESOURCE_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OSVERSIONINFOA { + pub dwOSVersionInfoSize: DWORD, + pub dwMajorVersion: DWORD, + pub dwMinorVersion: DWORD, + pub dwBuildNumber: DWORD, + pub dwPlatformId: DWORD, + pub szCSDVersion: [CHAR; 128usize], +} +pub type OSVERSIONINFOA = _OSVERSIONINFOA; +pub type POSVERSIONINFOA = *mut _OSVERSIONINFOA; +pub type LPOSVERSIONINFOA = *mut _OSVERSIONINFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OSVERSIONINFOW { + pub dwOSVersionInfoSize: DWORD, + pub dwMajorVersion: DWORD, + pub dwMinorVersion: DWORD, + pub dwBuildNumber: DWORD, + pub dwPlatformId: DWORD, + pub szCSDVersion: [WCHAR; 128usize], +} +pub type OSVERSIONINFOW = _OSVERSIONINFOW; +pub type POSVERSIONINFOW = *mut _OSVERSIONINFOW; +pub type LPOSVERSIONINFOW = *mut _OSVERSIONINFOW; +pub type RTL_OSVERSIONINFOW = _OSVERSIONINFOW; +pub type PRTL_OSVERSIONINFOW = *mut _OSVERSIONINFOW; +pub type OSVERSIONINFO = OSVERSIONINFOA; +pub type POSVERSIONINFO = POSVERSIONINFOA; +pub type LPOSVERSIONINFO = LPOSVERSIONINFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OSVERSIONINFOEXA { + pub dwOSVersionInfoSize: DWORD, + pub dwMajorVersion: DWORD, + pub dwMinorVersion: DWORD, + pub dwBuildNumber: DWORD, + pub dwPlatformId: DWORD, + pub szCSDVersion: [CHAR; 128usize], + pub wServicePackMajor: WORD, + pub wServicePackMinor: WORD, + pub wSuiteMask: WORD, + pub wProductType: BYTE, + pub wReserved: BYTE, +} +pub type OSVERSIONINFOEXA = _OSVERSIONINFOEXA; +pub type POSVERSIONINFOEXA = *mut _OSVERSIONINFOEXA; +pub type LPOSVERSIONINFOEXA = *mut _OSVERSIONINFOEXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OSVERSIONINFOEXW { + pub dwOSVersionInfoSize: DWORD, + pub dwMajorVersion: DWORD, + pub dwMinorVersion: DWORD, + pub dwBuildNumber: DWORD, + pub dwPlatformId: DWORD, + pub szCSDVersion: [WCHAR; 128usize], + pub wServicePackMajor: WORD, + pub wServicePackMinor: WORD, + pub wSuiteMask: WORD, + pub wProductType: BYTE, + pub wReserved: BYTE, +} +pub type OSVERSIONINFOEXW = _OSVERSIONINFOEXW; +pub type POSVERSIONINFOEXW = *mut _OSVERSIONINFOEXW; +pub type LPOSVERSIONINFOEXW = *mut _OSVERSIONINFOEXW; +pub type RTL_OSVERSIONINFOEXW = _OSVERSIONINFOEXW; +pub type PRTL_OSVERSIONINFOEXW = *mut _OSVERSIONINFOEXW; +pub type OSVERSIONINFOEX = OSVERSIONINFOEXA; +pub type POSVERSIONINFOEX = POSVERSIONINFOEXA; +pub type LPOSVERSIONINFOEX = LPOSVERSIONINFOEXA; +extern "C" { + pub fn VerSetConditionMask( + ConditionMask: ULONGLONG, + TypeMask: DWORD, + Condition: BYTE, + ) -> ULONGLONG; +} +extern "C" { + pub fn RtlGetProductInfo( + OSMajorVersion: DWORD, + OSMinorVersion: DWORD, + SpMajorVersion: DWORD, + SpMinorVersion: DWORD, + ReturnedProductType: PDWORD, + ) -> BOOLEAN; +} +pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadInvalidInfoClass: _RTL_UMS_THREAD_INFO_CLASS = 0; +pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadUserContext: _RTL_UMS_THREAD_INFO_CLASS = 1; +pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadPriority: _RTL_UMS_THREAD_INFO_CLASS = 2; +pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadAffinity: _RTL_UMS_THREAD_INFO_CLASS = 3; +pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadTeb: _RTL_UMS_THREAD_INFO_CLASS = 4; +pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadIsSuspended: _RTL_UMS_THREAD_INFO_CLASS = 5; +pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadIsTerminated: _RTL_UMS_THREAD_INFO_CLASS = 6; +pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadMaxInfoClass: _RTL_UMS_THREAD_INFO_CLASS = 7; +pub type _RTL_UMS_THREAD_INFO_CLASS = ::std::os::raw::c_int; +pub use self::_RTL_UMS_THREAD_INFO_CLASS as RTL_UMS_THREAD_INFO_CLASS; +pub type PRTL_UMS_THREAD_INFO_CLASS = *mut _RTL_UMS_THREAD_INFO_CLASS; +pub const _RTL_UMS_SCHEDULER_REASON_UmsSchedulerStartup: _RTL_UMS_SCHEDULER_REASON = 0; +pub const _RTL_UMS_SCHEDULER_REASON_UmsSchedulerThreadBlocked: _RTL_UMS_SCHEDULER_REASON = 1; +pub const _RTL_UMS_SCHEDULER_REASON_UmsSchedulerThreadYield: _RTL_UMS_SCHEDULER_REASON = 2; +pub type _RTL_UMS_SCHEDULER_REASON = ::std::os::raw::c_int; +pub use self::_RTL_UMS_SCHEDULER_REASON as RTL_UMS_SCHEDULER_REASON; +pub type PRTL_UMS_SCHEDULER_REASON = *mut _RTL_UMS_SCHEDULER_REASON; +pub type PRTL_UMS_SCHEDULER_ENTRY_POINT = ::std::option::Option< + unsafe extern "C" fn(arg1: RTL_UMS_SCHEDULER_REASON, arg2: ULONG_PTR, arg3: PVOID), +>; +extern "C" { + pub fn RtlCrc32(Buffer: *const ::std::os::raw::c_void, Size: usize, InitialCrc: DWORD) + -> DWORD; +} +extern "C" { + pub fn RtlCrc64( + Buffer: *const ::std::os::raw::c_void, + Size: usize, + InitialCrc: ULONGLONG, + ) -> ULONGLONG; +} +pub const _OS_DEPLOYEMENT_STATE_VALUES_OS_DEPLOYMENT_STANDARD: _OS_DEPLOYEMENT_STATE_VALUES = 1; +pub const _OS_DEPLOYEMENT_STATE_VALUES_OS_DEPLOYMENT_COMPACT: _OS_DEPLOYEMENT_STATE_VALUES = 2; +pub type _OS_DEPLOYEMENT_STATE_VALUES = ::std::os::raw::c_int; +pub use self::_OS_DEPLOYEMENT_STATE_VALUES as OS_DEPLOYEMENT_STATE_VALUES; +extern "C" { + pub fn RtlOsDeploymentState(Flags: DWORD) -> OS_DEPLOYEMENT_STATE_VALUES; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NV_MEMORY_RANGE { + pub BaseAddress: *mut ::std::os::raw::c_void, + pub Length: SIZE_T, +} +pub type NV_MEMORY_RANGE = _NV_MEMORY_RANGE; +pub type PNV_MEMORY_RANGE = *mut _NV_MEMORY_RANGE; +extern "C" { + pub fn RtlGetNonVolatileToken(NvBuffer: PVOID, Size: SIZE_T, NvToken: *mut PVOID) -> DWORD; +} +extern "C" { + pub fn RtlFreeNonVolatileToken(NvToken: PVOID) -> DWORD; +} +extern "C" { + pub fn RtlFlushNonVolatileMemory( + NvToken: PVOID, + NvBuffer: PVOID, + Size: SIZE_T, + Flags: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn RtlDrainNonVolatileFlush(NvToken: PVOID) -> DWORD; +} +extern "C" { + pub fn RtlWriteNonVolatileMemory( + NvToken: PVOID, + NvDestination: *mut ::std::os::raw::c_void, + Source: *const ::std::os::raw::c_void, + Size: SIZE_T, + Flags: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn RtlFillNonVolatileMemory( + NvToken: PVOID, + NvDestination: *mut ::std::os::raw::c_void, + Size: SIZE_T, + Value: BYTE, + Flags: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn RtlFlushNonVolatileMemoryRanges( + NvToken: PVOID, + NvRanges: PNV_MEMORY_RANGE, + NumRanges: SIZE_T, + Flags: DWORD, + ) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CORRELATION_VECTOR { + pub Version: CHAR, + pub Vector: [CHAR; 129usize], +} +pub type PCORRELATION_VECTOR = *mut CORRELATION_VECTOR; +extern "C" { + pub fn RtlInitializeCorrelationVector( + CorrelationVector: PCORRELATION_VECTOR, + Version: ::std::os::raw::c_int, + Guid: *const GUID, + ) -> DWORD; +} +extern "C" { + pub fn RtlIncrementCorrelationVector(CorrelationVector: PCORRELATION_VECTOR) -> DWORD; +} +extern "C" { + pub fn RtlExtendCorrelationVector(CorrelationVector: PCORRELATION_VECTOR) -> DWORD; +} +extern "C" { + pub fn RtlValidateCorrelationVector(Vector: PCORRELATION_VECTOR) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG { + pub Size: DWORD, + pub TriggerId: PCWSTR, +} +pub type CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG = _CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG; +pub type PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG = *mut _CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG; +extern "C" { + pub fn RtlRaiseCustomSystemEventTrigger( + TriggerConfig: PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG, + ) -> DWORD; +} +pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeNone: _IMAGE_POLICY_ENTRY_TYPE = 0; +pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeBool: _IMAGE_POLICY_ENTRY_TYPE = 1; +pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeInt8: _IMAGE_POLICY_ENTRY_TYPE = 2; +pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeUInt8: _IMAGE_POLICY_ENTRY_TYPE = 3; +pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeInt16: _IMAGE_POLICY_ENTRY_TYPE = 4; +pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeUInt16: _IMAGE_POLICY_ENTRY_TYPE = 5; +pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeInt32: _IMAGE_POLICY_ENTRY_TYPE = 6; +pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeUInt32: _IMAGE_POLICY_ENTRY_TYPE = 7; +pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeInt64: _IMAGE_POLICY_ENTRY_TYPE = 8; +pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeUInt64: _IMAGE_POLICY_ENTRY_TYPE = 9; +pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeAnsiString: _IMAGE_POLICY_ENTRY_TYPE = 10; +pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeUnicodeString: _IMAGE_POLICY_ENTRY_TYPE = 11; +pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeOverride: _IMAGE_POLICY_ENTRY_TYPE = 12; +pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeMaximum: _IMAGE_POLICY_ENTRY_TYPE = 13; +pub type _IMAGE_POLICY_ENTRY_TYPE = ::std::os::raw::c_int; +pub use self::_IMAGE_POLICY_ENTRY_TYPE as IMAGE_POLICY_ENTRY_TYPE; +pub const _IMAGE_POLICY_ID_ImagePolicyIdNone: _IMAGE_POLICY_ID = 0; +pub const _IMAGE_POLICY_ID_ImagePolicyIdEtw: _IMAGE_POLICY_ID = 1; +pub const _IMAGE_POLICY_ID_ImagePolicyIdDebug: _IMAGE_POLICY_ID = 2; +pub const _IMAGE_POLICY_ID_ImagePolicyIdCrashDump: _IMAGE_POLICY_ID = 3; +pub const _IMAGE_POLICY_ID_ImagePolicyIdCrashDumpKey: _IMAGE_POLICY_ID = 4; +pub const _IMAGE_POLICY_ID_ImagePolicyIdCrashDumpKeyGuid: _IMAGE_POLICY_ID = 5; +pub const _IMAGE_POLICY_ID_ImagePolicyIdParentSd: _IMAGE_POLICY_ID = 6; +pub const _IMAGE_POLICY_ID_ImagePolicyIdParentSdRev: _IMAGE_POLICY_ID = 7; +pub const _IMAGE_POLICY_ID_ImagePolicyIdSvn: _IMAGE_POLICY_ID = 8; +pub const _IMAGE_POLICY_ID_ImagePolicyIdDeviceId: _IMAGE_POLICY_ID = 9; +pub const _IMAGE_POLICY_ID_ImagePolicyIdCapability: _IMAGE_POLICY_ID = 10; +pub const _IMAGE_POLICY_ID_ImagePolicyIdScenarioId: _IMAGE_POLICY_ID = 11; +pub const _IMAGE_POLICY_ID_ImagePolicyIdMaximum: _IMAGE_POLICY_ID = 12; +pub type _IMAGE_POLICY_ID = ::std::os::raw::c_int; +pub use self::_IMAGE_POLICY_ID as IMAGE_POLICY_ID; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _IMAGE_POLICY_ENTRY { + pub Type: IMAGE_POLICY_ENTRY_TYPE, + pub PolicyId: IMAGE_POLICY_ID, + pub u: _IMAGE_POLICY_ENTRY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _IMAGE_POLICY_ENTRY__bindgen_ty_1 { + pub None: *const ::std::os::raw::c_void, + pub BoolValue: BOOLEAN, + pub Int8Value: INT8, + pub UInt8Value: UINT8, + pub Int16Value: INT16, + pub UInt16Value: UINT16, + pub Int32Value: INT32, + pub UInt32Value: UINT32, + pub Int64Value: INT64, + pub UInt64Value: UINT64, + pub AnsiStringValue: PCSTR, + pub UnicodeStringValue: PCWSTR, +} +pub type IMAGE_POLICY_ENTRY = _IMAGE_POLICY_ENTRY; +pub type PCIMAGE_POLICY_ENTRY = *const IMAGE_POLICY_ENTRY; +#[repr(C)] +pub struct _IMAGE_POLICY_METADATA { + pub Version: BYTE, + pub Reserved0: [BYTE; 7usize], + pub ApplicationId: ULONGLONG, + pub Policies: __IncompleteArrayField, +} +pub type IMAGE_POLICY_METADATA = _IMAGE_POLICY_METADATA; +pub type PCIMAGE_POLICY_METADATA = *const IMAGE_POLICY_METADATA; +extern "C" { + pub fn RtlIsZeroMemory(Buffer: PVOID, Length: SIZE_T) -> BOOLEAN; +} +extern "C" { + pub fn RtlNormalizeSecurityDescriptor( + SecurityDescriptor: *mut PSECURITY_DESCRIPTOR, + SecurityDescriptorLength: DWORD, + NewSecurityDescriptor: *mut PSECURITY_DESCRIPTOR, + NewSecurityDescriptorLength: PDWORD, + CheckOnly: BOOLEAN, + ) -> BOOLEAN; +} +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdUnknown: _RTL_SYSTEM_GLOBAL_DATA_ID = 0; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdRngSeedVersion: _RTL_SYSTEM_GLOBAL_DATA_ID = 1; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdInterruptTime: _RTL_SYSTEM_GLOBAL_DATA_ID = 2; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdTimeZoneBias: _RTL_SYSTEM_GLOBAL_DATA_ID = 3; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdImageNumberLow: _RTL_SYSTEM_GLOBAL_DATA_ID = 4; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdImageNumberHigh: _RTL_SYSTEM_GLOBAL_DATA_ID = 5; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdTimeZoneId: _RTL_SYSTEM_GLOBAL_DATA_ID = 6; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdNtMajorVersion: _RTL_SYSTEM_GLOBAL_DATA_ID = 7; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdNtMinorVersion: _RTL_SYSTEM_GLOBAL_DATA_ID = 8; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdSystemExpirationDate: _RTL_SYSTEM_GLOBAL_DATA_ID = + 9; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdKdDebuggerEnabled: _RTL_SYSTEM_GLOBAL_DATA_ID = 10; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdCyclesPerYield: _RTL_SYSTEM_GLOBAL_DATA_ID = 11; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdSafeBootMode: _RTL_SYSTEM_GLOBAL_DATA_ID = 12; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdLastSystemRITEventTickCount: + _RTL_SYSTEM_GLOBAL_DATA_ID = 13; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdConsoleSharedDataFlags: + _RTL_SYSTEM_GLOBAL_DATA_ID = 14; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdNtSystemRootDrive: _RTL_SYSTEM_GLOBAL_DATA_ID = 15; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdQpcShift: _RTL_SYSTEM_GLOBAL_DATA_ID = 16; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdQpcBypassEnabled: _RTL_SYSTEM_GLOBAL_DATA_ID = 17; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdQpcData: _RTL_SYSTEM_GLOBAL_DATA_ID = 18; +pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdQpcBias: _RTL_SYSTEM_GLOBAL_DATA_ID = 19; +pub type _RTL_SYSTEM_GLOBAL_DATA_ID = ::std::os::raw::c_int; +pub use self::_RTL_SYSTEM_GLOBAL_DATA_ID as RTL_SYSTEM_GLOBAL_DATA_ID; +pub type PRTL_SYSTEM_GLOBAL_DATA_ID = *mut _RTL_SYSTEM_GLOBAL_DATA_ID; +extern "C" { + pub fn RtlGetSystemGlobalData( + DataId: RTL_SYSTEM_GLOBAL_DATA_ID, + Buffer: PVOID, + Size: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn RtlSetSystemGlobalData( + DataId: RTL_SYSTEM_GLOBAL_DATA_ID, + Buffer: PVOID, + Size: DWORD, + ) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RTL_CRITICAL_SECTION_DEBUG { + pub Type: WORD, + pub CreatorBackTraceIndex: WORD, + pub CriticalSection: *mut _RTL_CRITICAL_SECTION, + pub ProcessLocksList: LIST_ENTRY, + pub EntryCount: DWORD, + pub ContentionCount: DWORD, + pub Flags: DWORD, + pub CreatorBackTraceIndexHigh: WORD, + pub Identifier: WORD, +} +pub type RTL_CRITICAL_SECTION_DEBUG = _RTL_CRITICAL_SECTION_DEBUG; +pub type PRTL_CRITICAL_SECTION_DEBUG = *mut _RTL_CRITICAL_SECTION_DEBUG; +pub type RTL_RESOURCE_DEBUG = _RTL_CRITICAL_SECTION_DEBUG; +pub type PRTL_RESOURCE_DEBUG = *mut _RTL_CRITICAL_SECTION_DEBUG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RTL_CRITICAL_SECTION { + pub DebugInfo: PRTL_CRITICAL_SECTION_DEBUG, + pub LockCount: LONG, + pub RecursionCount: LONG, + pub OwningThread: HANDLE, + pub LockSemaphore: HANDLE, + pub SpinCount: ULONG_PTR, +} +pub type RTL_CRITICAL_SECTION = _RTL_CRITICAL_SECTION; +pub type PRTL_CRITICAL_SECTION = *mut _RTL_CRITICAL_SECTION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RTL_SRWLOCK { + pub Ptr: PVOID, +} +pub type RTL_SRWLOCK = _RTL_SRWLOCK; +pub type PRTL_SRWLOCK = *mut _RTL_SRWLOCK; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RTL_CONDITION_VARIABLE { + pub Ptr: PVOID, +} +pub type RTL_CONDITION_VARIABLE = _RTL_CONDITION_VARIABLE; +pub type PRTL_CONDITION_VARIABLE = *mut _RTL_CONDITION_VARIABLE; +pub type PAPCFUNC = ::std::option::Option; +pub type PVECTORED_EXCEPTION_HANDLER = + ::std::option::Option LONG>; +pub const _HEAP_INFORMATION_CLASS_HeapCompatibilityInformation: _HEAP_INFORMATION_CLASS = 0; +pub const _HEAP_INFORMATION_CLASS_HeapEnableTerminationOnCorruption: _HEAP_INFORMATION_CLASS = 1; +pub const _HEAP_INFORMATION_CLASS_HeapOptimizeResources: _HEAP_INFORMATION_CLASS = 3; +pub const _HEAP_INFORMATION_CLASS_HeapTag: _HEAP_INFORMATION_CLASS = 7; +pub type _HEAP_INFORMATION_CLASS = ::std::os::raw::c_int; +pub use self::_HEAP_INFORMATION_CLASS as HEAP_INFORMATION_CLASS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _HEAP_OPTIMIZE_RESOURCES_INFORMATION { + pub Version: DWORD, + pub Flags: DWORD, +} +pub type HEAP_OPTIMIZE_RESOURCES_INFORMATION = _HEAP_OPTIMIZE_RESOURCES_INFORMATION; +pub type PHEAP_OPTIMIZE_RESOURCES_INFORMATION = *mut _HEAP_OPTIMIZE_RESOURCES_INFORMATION; +pub type WAITORTIMERCALLBACKFUNC = + ::std::option::Option; +pub type WORKERCALLBACKFUNC = ::std::option::Option; +pub type APC_CALLBACK_FUNCTION = + ::std::option::Option; +pub type WAITORTIMERCALLBACK = WAITORTIMERCALLBACKFUNC; +pub type PFLS_CALLBACK_FUNCTION = ::std::option::Option; +pub type PSECURE_MEMORY_CACHE_CALLBACK = + ::std::option::Option BOOLEAN>; +pub const _ACTIVATION_CONTEXT_INFO_CLASS_ActivationContextBasicInformation: + _ACTIVATION_CONTEXT_INFO_CLASS = 1; +pub const _ACTIVATION_CONTEXT_INFO_CLASS_ActivationContextDetailedInformation: + _ACTIVATION_CONTEXT_INFO_CLASS = 2; +pub const _ACTIVATION_CONTEXT_INFO_CLASS_AssemblyDetailedInformationInActivationContext: + _ACTIVATION_CONTEXT_INFO_CLASS = 3; +pub const _ACTIVATION_CONTEXT_INFO_CLASS_FileInformationInAssemblyOfAssemblyInActivationContext: + _ACTIVATION_CONTEXT_INFO_CLASS = 4; +pub const _ACTIVATION_CONTEXT_INFO_CLASS_RunlevelInformationInActivationContext: + _ACTIVATION_CONTEXT_INFO_CLASS = 5; +pub const _ACTIVATION_CONTEXT_INFO_CLASS_CompatibilityInformationInActivationContext: + _ACTIVATION_CONTEXT_INFO_CLASS = 6; +pub const _ACTIVATION_CONTEXT_INFO_CLASS_ActivationContextManifestResourceName: + _ACTIVATION_CONTEXT_INFO_CLASS = 7; +pub const _ACTIVATION_CONTEXT_INFO_CLASS_MaxActivationContextInfoClass: + _ACTIVATION_CONTEXT_INFO_CLASS = 8; +pub const _ACTIVATION_CONTEXT_INFO_CLASS_AssemblyDetailedInformationInActivationContxt: + _ACTIVATION_CONTEXT_INFO_CLASS = 3; +pub const _ACTIVATION_CONTEXT_INFO_CLASS_FileInformationInAssemblyOfAssemblyInActivationContxt: + _ACTIVATION_CONTEXT_INFO_CLASS = 4; +pub type _ACTIVATION_CONTEXT_INFO_CLASS = ::std::os::raw::c_int; +pub use self::_ACTIVATION_CONTEXT_INFO_CLASS as ACTIVATION_CONTEXT_INFO_CLASS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACTIVATION_CONTEXT_QUERY_INDEX { + pub ulAssemblyIndex: DWORD, + pub ulFileIndexInAssembly: DWORD, +} +pub type ACTIVATION_CONTEXT_QUERY_INDEX = _ACTIVATION_CONTEXT_QUERY_INDEX; +pub type PACTIVATION_CONTEXT_QUERY_INDEX = *mut _ACTIVATION_CONTEXT_QUERY_INDEX; +pub type PCACTIVATION_CONTEXT_QUERY_INDEX = *const _ACTIVATION_CONTEXT_QUERY_INDEX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ASSEMBLY_FILE_DETAILED_INFORMATION { + pub ulFlags: DWORD, + pub ulFilenameLength: DWORD, + pub ulPathLength: DWORD, + pub lpFileName: PCWSTR, + pub lpFilePath: PCWSTR, +} +pub type ASSEMBLY_FILE_DETAILED_INFORMATION = _ASSEMBLY_FILE_DETAILED_INFORMATION; +pub type PASSEMBLY_FILE_DETAILED_INFORMATION = *mut _ASSEMBLY_FILE_DETAILED_INFORMATION; +pub type PCASSEMBLY_FILE_DETAILED_INFORMATION = *const ASSEMBLY_FILE_DETAILED_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION { + pub ulFlags: DWORD, + pub ulEncodedAssemblyIdentityLength: DWORD, + pub ulManifestPathType: DWORD, + pub ulManifestPathLength: DWORD, + pub liManifestLastWriteTime: LARGE_INTEGER, + pub ulPolicyPathType: DWORD, + pub ulPolicyPathLength: DWORD, + pub liPolicyLastWriteTime: LARGE_INTEGER, + pub ulMetadataSatelliteRosterIndex: DWORD, + pub ulManifestVersionMajor: DWORD, + pub ulManifestVersionMinor: DWORD, + pub ulPolicyVersionMajor: DWORD, + pub ulPolicyVersionMinor: DWORD, + pub ulAssemblyDirectoryNameLength: DWORD, + pub lpAssemblyEncodedAssemblyIdentity: PCWSTR, + pub lpAssemblyManifestPath: PCWSTR, + pub lpAssemblyPolicyPath: PCWSTR, + pub lpAssemblyDirectoryName: PCWSTR, + pub ulFileCount: DWORD, +} +pub type ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION = + _ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION; +pub type PACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION = + *mut _ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION; +pub type PCACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION = + *const _ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION; +pub const ACTCTX_REQUESTED_RUN_LEVEL_ACTCTX_RUN_LEVEL_UNSPECIFIED: ACTCTX_REQUESTED_RUN_LEVEL = 0; +pub const ACTCTX_REQUESTED_RUN_LEVEL_ACTCTX_RUN_LEVEL_AS_INVOKER: ACTCTX_REQUESTED_RUN_LEVEL = 1; +pub const ACTCTX_REQUESTED_RUN_LEVEL_ACTCTX_RUN_LEVEL_HIGHEST_AVAILABLE: + ACTCTX_REQUESTED_RUN_LEVEL = 2; +pub const ACTCTX_REQUESTED_RUN_LEVEL_ACTCTX_RUN_LEVEL_REQUIRE_ADMIN: ACTCTX_REQUESTED_RUN_LEVEL = 3; +pub const ACTCTX_REQUESTED_RUN_LEVEL_ACTCTX_RUN_LEVEL_NUMBERS: ACTCTX_REQUESTED_RUN_LEVEL = 4; +pub type ACTCTX_REQUESTED_RUN_LEVEL = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION { + pub ulFlags: DWORD, + pub RunLevel: ACTCTX_REQUESTED_RUN_LEVEL, + pub UiAccess: DWORD, +} +pub type ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION = _ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION; +pub type PACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION = *mut _ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION; +pub type PCACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION = + *const _ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION; +pub const ACTCTX_COMPATIBILITY_ELEMENT_TYPE_ACTCTX_COMPATIBILITY_ELEMENT_TYPE_UNKNOWN: + ACTCTX_COMPATIBILITY_ELEMENT_TYPE = 0; +pub const ACTCTX_COMPATIBILITY_ELEMENT_TYPE_ACTCTX_COMPATIBILITY_ELEMENT_TYPE_OS: + ACTCTX_COMPATIBILITY_ELEMENT_TYPE = 1; +pub const ACTCTX_COMPATIBILITY_ELEMENT_TYPE_ACTCTX_COMPATIBILITY_ELEMENT_TYPE_MITIGATION: + ACTCTX_COMPATIBILITY_ELEMENT_TYPE = 2; +pub const ACTCTX_COMPATIBILITY_ELEMENT_TYPE_ACTCTX_COMPATIBILITY_ELEMENT_TYPE_MAXVERSIONTESTED: + ACTCTX_COMPATIBILITY_ELEMENT_TYPE = 3; +pub type ACTCTX_COMPATIBILITY_ELEMENT_TYPE = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _COMPATIBILITY_CONTEXT_ELEMENT { + pub Id: GUID, + pub Type: ACTCTX_COMPATIBILITY_ELEMENT_TYPE, + pub MaxVersionTested: ULONGLONG, +} +pub type COMPATIBILITY_CONTEXT_ELEMENT = _COMPATIBILITY_CONTEXT_ELEMENT; +pub type PCOMPATIBILITY_CONTEXT_ELEMENT = *mut _COMPATIBILITY_CONTEXT_ELEMENT; +pub type PCCOMPATIBILITY_CONTEXT_ELEMENT = *const _COMPATIBILITY_CONTEXT_ELEMENT; +#[repr(C)] +#[derive(Debug)] +pub struct _ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION { + pub ElementCount: DWORD, + pub Elements: __IncompleteArrayField, +} +pub type ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION = + _ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION; +pub type PACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION = + *mut _ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION; +pub type PCACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION = + *const _ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SUPPORTED_OS_INFO { + pub MajorVersion: WORD, + pub MinorVersion: WORD, +} +pub type SUPPORTED_OS_INFO = _SUPPORTED_OS_INFO; +pub type PSUPPORTED_OS_INFO = *mut _SUPPORTED_OS_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MAXVERSIONTESTED_INFO { + pub MaxVersionTested: ULONGLONG, +} +pub type MAXVERSIONTESTED_INFO = _MAXVERSIONTESTED_INFO; +pub type PMAXVERSIONTESTED_INFO = *mut _MAXVERSIONTESTED_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACTIVATION_CONTEXT_DETAILED_INFORMATION { + pub dwFlags: DWORD, + pub ulFormatVersion: DWORD, + pub ulAssemblyCount: DWORD, + pub ulRootManifestPathType: DWORD, + pub ulRootManifestPathChars: DWORD, + pub ulRootConfigurationPathType: DWORD, + pub ulRootConfigurationPathChars: DWORD, + pub ulAppDirPathType: DWORD, + pub ulAppDirPathChars: DWORD, + pub lpRootManifestPath: PCWSTR, + pub lpRootConfigurationPath: PCWSTR, + pub lpAppDirPath: PCWSTR, +} +pub type ACTIVATION_CONTEXT_DETAILED_INFORMATION = _ACTIVATION_CONTEXT_DETAILED_INFORMATION; +pub type PACTIVATION_CONTEXT_DETAILED_INFORMATION = *mut _ACTIVATION_CONTEXT_DETAILED_INFORMATION; +pub type PCACTIVATION_CONTEXT_DETAILED_INFORMATION = + *const _ACTIVATION_CONTEXT_DETAILED_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _HARDWARE_COUNTER_DATA { + pub Type: HARDWARE_COUNTER_TYPE, + pub Reserved: DWORD, + pub Value: DWORD64, +} +pub type HARDWARE_COUNTER_DATA = _HARDWARE_COUNTER_DATA; +pub type PHARDWARE_COUNTER_DATA = *mut _HARDWARE_COUNTER_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PERFORMANCE_DATA { + pub Size: WORD, + pub Version: BYTE, + pub HwCountersCount: BYTE, + pub ContextSwitchCount: DWORD, + pub WaitReasonBitMap: DWORD64, + pub CycleTime: DWORD64, + pub RetryCount: DWORD, + pub Reserved: DWORD, + pub HwCounters: [HARDWARE_COUNTER_DATA; 16usize], +} +pub type PERFORMANCE_DATA = _PERFORMANCE_DATA; +pub type PPERFORMANCE_DATA = *mut _PERFORMANCE_DATA; +extern "C" { + pub fn RtlGetDeviceFamilyInfoEnum( + pullUAPInfo: *mut ULONGLONG, + pulDeviceFamily: *mut DWORD, + pulDeviceForm: *mut DWORD, + ); +} +extern "C" { + pub fn RtlConvertDeviceFamilyInfoToString( + pulDeviceFamilyBufferSize: PDWORD, + pulDeviceFormBufferSize: PDWORD, + DeviceFamily: PWSTR, + DeviceForm: PWSTR, + ) -> DWORD; +} +extern "C" { + pub fn RtlSwitchedVVI( + VersionInfo: PRTL_OSVERSIONINFOEXW, + TypeMask: DWORD, + ConditionMask: ULONGLONG, + ) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EVENTLOGRECORD { + pub Length: DWORD, + pub Reserved: DWORD, + pub RecordNumber: DWORD, + pub TimeGenerated: DWORD, + pub TimeWritten: DWORD, + pub EventID: DWORD, + pub EventType: WORD, + pub NumStrings: WORD, + pub EventCategory: WORD, + pub ReservedFlags: WORD, + pub ClosingRecordNumber: DWORD, + pub StringOffset: DWORD, + pub UserSidLength: DWORD, + pub UserSidOffset: DWORD, + pub DataLength: DWORD, + pub DataOffset: DWORD, +} +pub type EVENTLOGRECORD = _EVENTLOGRECORD; +pub type PEVENTLOGRECORD = *mut _EVENTLOGRECORD; +pub type EVENTSFORLOGFILE = _EVENTSFORLOGFILE; +pub type PEVENTSFORLOGFILE = *mut _EVENTSFORLOGFILE; +pub type PACKEDEVENTINFO = _PACKEDEVENTINFO; +pub type PPACKEDEVENTINFO = *mut _PACKEDEVENTINFO; +#[repr(C)] +#[derive(Debug)] +pub struct _EVENTSFORLOGFILE { + pub ulSize: DWORD, + pub szLogicalLogFile: [WCHAR; 256usize], + pub ulNumRecords: DWORD, + pub pEventLogRecords: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug)] +pub struct _PACKEDEVENTINFO { + pub ulSize: DWORD, + pub ulNumEventsForLogFile: DWORD, + pub ulOffsets: __IncompleteArrayField, +} +pub const _CM_SERVICE_NODE_TYPE_DriverType: _CM_SERVICE_NODE_TYPE = 1; +pub const _CM_SERVICE_NODE_TYPE_FileSystemType: _CM_SERVICE_NODE_TYPE = 2; +pub const _CM_SERVICE_NODE_TYPE_Win32ServiceOwnProcess: _CM_SERVICE_NODE_TYPE = 16; +pub const _CM_SERVICE_NODE_TYPE_Win32ServiceShareProcess: _CM_SERVICE_NODE_TYPE = 32; +pub const _CM_SERVICE_NODE_TYPE_AdapterType: _CM_SERVICE_NODE_TYPE = 4; +pub const _CM_SERVICE_NODE_TYPE_RecognizerType: _CM_SERVICE_NODE_TYPE = 8; +pub type _CM_SERVICE_NODE_TYPE = ::std::os::raw::c_int; +pub use self::_CM_SERVICE_NODE_TYPE as SERVICE_NODE_TYPE; +pub const _CM_SERVICE_LOAD_TYPE_BootLoad: _CM_SERVICE_LOAD_TYPE = 0; +pub const _CM_SERVICE_LOAD_TYPE_SystemLoad: _CM_SERVICE_LOAD_TYPE = 1; +pub const _CM_SERVICE_LOAD_TYPE_AutoLoad: _CM_SERVICE_LOAD_TYPE = 2; +pub const _CM_SERVICE_LOAD_TYPE_DemandLoad: _CM_SERVICE_LOAD_TYPE = 3; +pub const _CM_SERVICE_LOAD_TYPE_DisableLoad: _CM_SERVICE_LOAD_TYPE = 4; +pub type _CM_SERVICE_LOAD_TYPE = ::std::os::raw::c_int; +pub use self::_CM_SERVICE_LOAD_TYPE as SERVICE_LOAD_TYPE; +pub const _CM_ERROR_CONTROL_TYPE_IgnoreError: _CM_ERROR_CONTROL_TYPE = 0; +pub const _CM_ERROR_CONTROL_TYPE_NormalError: _CM_ERROR_CONTROL_TYPE = 1; +pub const _CM_ERROR_CONTROL_TYPE_SevereError: _CM_ERROR_CONTROL_TYPE = 2; +pub const _CM_ERROR_CONTROL_TYPE_CriticalError: _CM_ERROR_CONTROL_TYPE = 3; +pub type _CM_ERROR_CONTROL_TYPE = ::std::os::raw::c_int; +pub use self::_CM_ERROR_CONTROL_TYPE as SERVICE_ERROR_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TAPE_ERASE { + pub Type: DWORD, + pub Immediate: BOOLEAN, +} +pub type TAPE_ERASE = _TAPE_ERASE; +pub type PTAPE_ERASE = *mut _TAPE_ERASE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TAPE_PREPARE { + pub Operation: DWORD, + pub Immediate: BOOLEAN, +} +pub type TAPE_PREPARE = _TAPE_PREPARE; +pub type PTAPE_PREPARE = *mut _TAPE_PREPARE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TAPE_WRITE_MARKS { + pub Type: DWORD, + pub Count: DWORD, + pub Immediate: BOOLEAN, +} +pub type TAPE_WRITE_MARKS = _TAPE_WRITE_MARKS; +pub type PTAPE_WRITE_MARKS = *mut _TAPE_WRITE_MARKS; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _TAPE_GET_POSITION { + pub Type: DWORD, + pub Partition: DWORD, + pub Offset: LARGE_INTEGER, +} +pub type TAPE_GET_POSITION = _TAPE_GET_POSITION; +pub type PTAPE_GET_POSITION = *mut _TAPE_GET_POSITION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _TAPE_SET_POSITION { + pub Method: DWORD, + pub Partition: DWORD, + pub Offset: LARGE_INTEGER, + pub Immediate: BOOLEAN, +} +pub type TAPE_SET_POSITION = _TAPE_SET_POSITION; +pub type PTAPE_SET_POSITION = *mut _TAPE_SET_POSITION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TAPE_GET_DRIVE_PARAMETERS { + pub ECC: BOOLEAN, + pub Compression: BOOLEAN, + pub DataPadding: BOOLEAN, + pub ReportSetmarks: BOOLEAN, + pub DefaultBlockSize: DWORD, + pub MaximumBlockSize: DWORD, + pub MinimumBlockSize: DWORD, + pub MaximumPartitionCount: DWORD, + pub FeaturesLow: DWORD, + pub FeaturesHigh: DWORD, + pub EOTWarningZoneSize: DWORD, +} +pub type TAPE_GET_DRIVE_PARAMETERS = _TAPE_GET_DRIVE_PARAMETERS; +pub type PTAPE_GET_DRIVE_PARAMETERS = *mut _TAPE_GET_DRIVE_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TAPE_SET_DRIVE_PARAMETERS { + pub ECC: BOOLEAN, + pub Compression: BOOLEAN, + pub DataPadding: BOOLEAN, + pub ReportSetmarks: BOOLEAN, + pub EOTWarningZoneSize: DWORD, +} +pub type TAPE_SET_DRIVE_PARAMETERS = _TAPE_SET_DRIVE_PARAMETERS; +pub type PTAPE_SET_DRIVE_PARAMETERS = *mut _TAPE_SET_DRIVE_PARAMETERS; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _TAPE_GET_MEDIA_PARAMETERS { + pub Capacity: LARGE_INTEGER, + pub Remaining: LARGE_INTEGER, + pub BlockSize: DWORD, + pub PartitionCount: DWORD, + pub WriteProtected: BOOLEAN, +} +pub type TAPE_GET_MEDIA_PARAMETERS = _TAPE_GET_MEDIA_PARAMETERS; +pub type PTAPE_GET_MEDIA_PARAMETERS = *mut _TAPE_GET_MEDIA_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TAPE_SET_MEDIA_PARAMETERS { + pub BlockSize: DWORD, +} +pub type TAPE_SET_MEDIA_PARAMETERS = _TAPE_SET_MEDIA_PARAMETERS; +pub type PTAPE_SET_MEDIA_PARAMETERS = *mut _TAPE_SET_MEDIA_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TAPE_CREATE_PARTITION { + pub Method: DWORD, + pub Count: DWORD, + pub Size: DWORD, +} +pub type TAPE_CREATE_PARTITION = _TAPE_CREATE_PARTITION; +pub type PTAPE_CREATE_PARTITION = *mut _TAPE_CREATE_PARTITION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TAPE_WMI_OPERATIONS { + pub Method: DWORD, + pub DataBufferSize: DWORD, + pub DataBuffer: PVOID, +} +pub type TAPE_WMI_OPERATIONS = _TAPE_WMI_OPERATIONS; +pub type PTAPE_WMI_OPERATIONS = *mut _TAPE_WMI_OPERATIONS; +pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveProblemNone: _TAPE_DRIVE_PROBLEM_TYPE = 0; +pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveReadWriteWarning: _TAPE_DRIVE_PROBLEM_TYPE = 1; +pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveReadWriteError: _TAPE_DRIVE_PROBLEM_TYPE = 2; +pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveReadWarning: _TAPE_DRIVE_PROBLEM_TYPE = 3; +pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveWriteWarning: _TAPE_DRIVE_PROBLEM_TYPE = 4; +pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveReadError: _TAPE_DRIVE_PROBLEM_TYPE = 5; +pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveWriteError: _TAPE_DRIVE_PROBLEM_TYPE = 6; +pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveHardwareError: _TAPE_DRIVE_PROBLEM_TYPE = 7; +pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveUnsupportedMedia: _TAPE_DRIVE_PROBLEM_TYPE = 8; +pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveScsiConnectionError: _TAPE_DRIVE_PROBLEM_TYPE = 9; +pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveTimetoClean: _TAPE_DRIVE_PROBLEM_TYPE = 10; +pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveCleanDriveNow: _TAPE_DRIVE_PROBLEM_TYPE = 11; +pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveMediaLifeExpired: _TAPE_DRIVE_PROBLEM_TYPE = 12; +pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveSnappedTape: _TAPE_DRIVE_PROBLEM_TYPE = 13; +pub type _TAPE_DRIVE_PROBLEM_TYPE = ::std::os::raw::c_int; +pub use self::_TAPE_DRIVE_PROBLEM_TYPE as TAPE_DRIVE_PROBLEM_TYPE; +pub type UOW = GUID; +pub type PUOW = *mut GUID; +pub type CRM_PROTOCOL_ID = GUID; +pub type PCRM_PROTOCOL_ID = *mut GUID; +pub type NOTIFICATION_MASK = ULONG; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _TRANSACTION_NOTIFICATION { + pub TransactionKey: PVOID, + pub TransactionNotification: ULONG, + pub TmVirtualClock: LARGE_INTEGER, + pub ArgumentLength: ULONG, +} +pub type TRANSACTION_NOTIFICATION = _TRANSACTION_NOTIFICATION; +pub type PTRANSACTION_NOTIFICATION = *mut _TRANSACTION_NOTIFICATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT { + pub EnlistmentId: GUID, + pub UOW: UOW, +} +pub type TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT = _TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT; +pub type PTRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT = + *mut _TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT { + pub TmIdentity: GUID, + pub Flags: ULONG, +} +pub type TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT = _TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT; +pub type PTRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT = + *mut _TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT; +pub type SAVEPOINT_ID = ULONG; +pub type PSAVEPOINT_ID = *mut ULONG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT { + pub SavepointId: SAVEPOINT_ID, +} +pub type TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT = _TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT; +pub type PTRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT = + *mut _TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT { + pub PropagationCookie: ULONG, + pub UOW: GUID, + pub TmIdentity: GUID, + pub BufferLength: ULONG, +} +pub type TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT = _TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT; +pub type PTRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT = + *mut _TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT { + pub MarshalCookie: ULONG, + pub UOW: GUID, +} +pub type TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT = _TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT; +pub type PTRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT = + *mut _TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT; +pub type TRANSACTION_NOTIFICATION_PROMOTE_ARGUMENT = TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT; +pub type PTRANSACTION_NOTIFICATION_PROMOTE_ARGUMENT = + *mut TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _KCRM_MARSHAL_HEADER { + pub VersionMajor: ULONG, + pub VersionMinor: ULONG, + pub NumProtocols: ULONG, + pub Unused: ULONG, +} +pub type KCRM_MARSHAL_HEADER = _KCRM_MARSHAL_HEADER; +pub type PKCRM_MARSHAL_HEADER = *mut _KCRM_MARSHAL_HEADER; +pub type PRKCRM_MARSHAL_HEADER = *mut _KCRM_MARSHAL_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _KCRM_TRANSACTION_BLOB { + pub UOW: UOW, + pub TmIdentity: GUID, + pub IsolationLevel: ULONG, + pub IsolationFlags: ULONG, + pub Timeout: ULONG, + pub Description: [WCHAR; 64usize], +} +pub type KCRM_TRANSACTION_BLOB = _KCRM_TRANSACTION_BLOB; +pub type PKCRM_TRANSACTION_BLOB = *mut _KCRM_TRANSACTION_BLOB; +pub type PRKCRM_TRANSACTION_BLOB = *mut _KCRM_TRANSACTION_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _KCRM_PROTOCOL_BLOB { + pub ProtocolId: CRM_PROTOCOL_ID, + pub StaticInfoLength: ULONG, + pub TransactionIdInfoLength: ULONG, + pub Unused1: ULONG, + pub Unused2: ULONG, +} +pub type KCRM_PROTOCOL_BLOB = _KCRM_PROTOCOL_BLOB; +pub type PKCRM_PROTOCOL_BLOB = *mut _KCRM_PROTOCOL_BLOB; +pub type PRKCRM_PROTOCOL_BLOB = *mut _KCRM_PROTOCOL_BLOB; +pub const _TRANSACTION_OUTCOME_TransactionOutcomeUndetermined: _TRANSACTION_OUTCOME = 1; +pub const _TRANSACTION_OUTCOME_TransactionOutcomeCommitted: _TRANSACTION_OUTCOME = 2; +pub const _TRANSACTION_OUTCOME_TransactionOutcomeAborted: _TRANSACTION_OUTCOME = 3; +pub type _TRANSACTION_OUTCOME = ::std::os::raw::c_int; +pub use self::_TRANSACTION_OUTCOME as TRANSACTION_OUTCOME; +pub const _TRANSACTION_STATE_TransactionStateNormal: _TRANSACTION_STATE = 1; +pub const _TRANSACTION_STATE_TransactionStateIndoubt: _TRANSACTION_STATE = 2; +pub const _TRANSACTION_STATE_TransactionStateCommittedNotify: _TRANSACTION_STATE = 3; +pub type _TRANSACTION_STATE = ::std::os::raw::c_int; +pub use self::_TRANSACTION_STATE as TRANSACTION_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTION_BASIC_INFORMATION { + pub TransactionId: GUID, + pub State: DWORD, + pub Outcome: DWORD, +} +pub type TRANSACTION_BASIC_INFORMATION = _TRANSACTION_BASIC_INFORMATION; +pub type PTRANSACTION_BASIC_INFORMATION = *mut _TRANSACTION_BASIC_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _TRANSACTIONMANAGER_BASIC_INFORMATION { + pub TmIdentity: GUID, + pub VirtualClock: LARGE_INTEGER, +} +pub type TRANSACTIONMANAGER_BASIC_INFORMATION = _TRANSACTIONMANAGER_BASIC_INFORMATION; +pub type PTRANSACTIONMANAGER_BASIC_INFORMATION = *mut _TRANSACTIONMANAGER_BASIC_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTIONMANAGER_LOG_INFORMATION { + pub LogIdentity: GUID, +} +pub type TRANSACTIONMANAGER_LOG_INFORMATION = _TRANSACTIONMANAGER_LOG_INFORMATION; +pub type PTRANSACTIONMANAGER_LOG_INFORMATION = *mut _TRANSACTIONMANAGER_LOG_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTIONMANAGER_LOGPATH_INFORMATION { + pub LogPathLength: DWORD, + pub LogPath: [WCHAR; 1usize], +} +pub type TRANSACTIONMANAGER_LOGPATH_INFORMATION = _TRANSACTIONMANAGER_LOGPATH_INFORMATION; +pub type PTRANSACTIONMANAGER_LOGPATH_INFORMATION = *mut _TRANSACTIONMANAGER_LOGPATH_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTIONMANAGER_RECOVERY_INFORMATION { + pub LastRecoveredLsn: ULONGLONG, +} +pub type TRANSACTIONMANAGER_RECOVERY_INFORMATION = _TRANSACTIONMANAGER_RECOVERY_INFORMATION; +pub type PTRANSACTIONMANAGER_RECOVERY_INFORMATION = *mut _TRANSACTIONMANAGER_RECOVERY_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTIONMANAGER_OLDEST_INFORMATION { + pub OldestTransactionGuid: GUID, +} +pub type TRANSACTIONMANAGER_OLDEST_INFORMATION = _TRANSACTIONMANAGER_OLDEST_INFORMATION; +pub type PTRANSACTIONMANAGER_OLDEST_INFORMATION = *mut _TRANSACTIONMANAGER_OLDEST_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _TRANSACTION_PROPERTIES_INFORMATION { + pub IsolationLevel: DWORD, + pub IsolationFlags: DWORD, + pub Timeout: LARGE_INTEGER, + pub Outcome: DWORD, + pub DescriptionLength: DWORD, + pub Description: [WCHAR; 1usize], +} +pub type TRANSACTION_PROPERTIES_INFORMATION = _TRANSACTION_PROPERTIES_INFORMATION; +pub type PTRANSACTION_PROPERTIES_INFORMATION = *mut _TRANSACTION_PROPERTIES_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTION_BIND_INFORMATION { + pub TmHandle: HANDLE, +} +pub type TRANSACTION_BIND_INFORMATION = _TRANSACTION_BIND_INFORMATION; +pub type PTRANSACTION_BIND_INFORMATION = *mut _TRANSACTION_BIND_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTION_ENLISTMENT_PAIR { + pub EnlistmentId: GUID, + pub ResourceManagerId: GUID, +} +pub type TRANSACTION_ENLISTMENT_PAIR = _TRANSACTION_ENLISTMENT_PAIR; +pub type PTRANSACTION_ENLISTMENT_PAIR = *mut _TRANSACTION_ENLISTMENT_PAIR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTION_ENLISTMENTS_INFORMATION { + pub NumberOfEnlistments: DWORD, + pub EnlistmentPair: [TRANSACTION_ENLISTMENT_PAIR; 1usize], +} +pub type TRANSACTION_ENLISTMENTS_INFORMATION = _TRANSACTION_ENLISTMENTS_INFORMATION; +pub type PTRANSACTION_ENLISTMENTS_INFORMATION = *mut _TRANSACTION_ENLISTMENTS_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION { + pub SuperiorEnlistmentPair: TRANSACTION_ENLISTMENT_PAIR, +} +pub type TRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION = _TRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION; +pub type PTRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION = + *mut _TRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RESOURCEMANAGER_BASIC_INFORMATION { + pub ResourceManagerId: GUID, + pub DescriptionLength: DWORD, + pub Description: [WCHAR; 1usize], +} +pub type RESOURCEMANAGER_BASIC_INFORMATION = _RESOURCEMANAGER_BASIC_INFORMATION; +pub type PRESOURCEMANAGER_BASIC_INFORMATION = *mut _RESOURCEMANAGER_BASIC_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RESOURCEMANAGER_COMPLETION_INFORMATION { + pub IoCompletionPortHandle: HANDLE, + pub CompletionKey: ULONG_PTR, +} +pub type RESOURCEMANAGER_COMPLETION_INFORMATION = _RESOURCEMANAGER_COMPLETION_INFORMATION; +pub type PRESOURCEMANAGER_COMPLETION_INFORMATION = *mut _RESOURCEMANAGER_COMPLETION_INFORMATION; +pub const _TRANSACTION_INFORMATION_CLASS_TransactionBasicInformation: + _TRANSACTION_INFORMATION_CLASS = 0; +pub const _TRANSACTION_INFORMATION_CLASS_TransactionPropertiesInformation: + _TRANSACTION_INFORMATION_CLASS = 1; +pub const _TRANSACTION_INFORMATION_CLASS_TransactionEnlistmentInformation: + _TRANSACTION_INFORMATION_CLASS = 2; +pub const _TRANSACTION_INFORMATION_CLASS_TransactionSuperiorEnlistmentInformation: + _TRANSACTION_INFORMATION_CLASS = 3; +pub const _TRANSACTION_INFORMATION_CLASS_TransactionBindInformation: + _TRANSACTION_INFORMATION_CLASS = 4; +pub const _TRANSACTION_INFORMATION_CLASS_TransactionDTCPrivateInformation: + _TRANSACTION_INFORMATION_CLASS = 5; +pub type _TRANSACTION_INFORMATION_CLASS = ::std::os::raw::c_int; +pub use self::_TRANSACTION_INFORMATION_CLASS as TRANSACTION_INFORMATION_CLASS; +pub const _TRANSACTIONMANAGER_INFORMATION_CLASS_TransactionManagerBasicInformation: + _TRANSACTIONMANAGER_INFORMATION_CLASS = 0; +pub const _TRANSACTIONMANAGER_INFORMATION_CLASS_TransactionManagerLogInformation: + _TRANSACTIONMANAGER_INFORMATION_CLASS = 1; +pub const _TRANSACTIONMANAGER_INFORMATION_CLASS_TransactionManagerLogPathInformation: + _TRANSACTIONMANAGER_INFORMATION_CLASS = 2; +pub const _TRANSACTIONMANAGER_INFORMATION_CLASS_TransactionManagerRecoveryInformation: + _TRANSACTIONMANAGER_INFORMATION_CLASS = 4; +pub const _TRANSACTIONMANAGER_INFORMATION_CLASS_TransactionManagerOnlineProbeInformation: + _TRANSACTIONMANAGER_INFORMATION_CLASS = 3; +pub const _TRANSACTIONMANAGER_INFORMATION_CLASS_TransactionManagerOldestTransactionInformation: + _TRANSACTIONMANAGER_INFORMATION_CLASS = 5; +pub type _TRANSACTIONMANAGER_INFORMATION_CLASS = ::std::os::raw::c_int; +pub use self::_TRANSACTIONMANAGER_INFORMATION_CLASS as TRANSACTIONMANAGER_INFORMATION_CLASS; +pub const _RESOURCEMANAGER_INFORMATION_CLASS_ResourceManagerBasicInformation: + _RESOURCEMANAGER_INFORMATION_CLASS = 0; +pub const _RESOURCEMANAGER_INFORMATION_CLASS_ResourceManagerCompletionInformation: + _RESOURCEMANAGER_INFORMATION_CLASS = 1; +pub type _RESOURCEMANAGER_INFORMATION_CLASS = ::std::os::raw::c_int; +pub use self::_RESOURCEMANAGER_INFORMATION_CLASS as RESOURCEMANAGER_INFORMATION_CLASS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENLISTMENT_BASIC_INFORMATION { + pub EnlistmentId: GUID, + pub TransactionId: GUID, + pub ResourceManagerId: GUID, +} +pub type ENLISTMENT_BASIC_INFORMATION = _ENLISTMENT_BASIC_INFORMATION; +pub type PENLISTMENT_BASIC_INFORMATION = *mut _ENLISTMENT_BASIC_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENLISTMENT_CRM_INFORMATION { + pub CrmTransactionManagerId: GUID, + pub CrmResourceManagerId: GUID, + pub CrmEnlistmentId: GUID, +} +pub type ENLISTMENT_CRM_INFORMATION = _ENLISTMENT_CRM_INFORMATION; +pub type PENLISTMENT_CRM_INFORMATION = *mut _ENLISTMENT_CRM_INFORMATION; +pub const _ENLISTMENT_INFORMATION_CLASS_EnlistmentBasicInformation: _ENLISTMENT_INFORMATION_CLASS = + 0; +pub const _ENLISTMENT_INFORMATION_CLASS_EnlistmentRecoveryInformation: + _ENLISTMENT_INFORMATION_CLASS = 1; +pub const _ENLISTMENT_INFORMATION_CLASS_EnlistmentCrmInformation: _ENLISTMENT_INFORMATION_CLASS = 2; +pub type _ENLISTMENT_INFORMATION_CLASS = ::std::os::raw::c_int; +pub use self::_ENLISTMENT_INFORMATION_CLASS as ENLISTMENT_INFORMATION_CLASS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTION_LIST_ENTRY { + pub UOW: UOW, +} +pub type TRANSACTION_LIST_ENTRY = _TRANSACTION_LIST_ENTRY; +pub type PTRANSACTION_LIST_ENTRY = *mut _TRANSACTION_LIST_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSACTION_LIST_INFORMATION { + pub NumberOfTransactions: DWORD, + pub TransactionInformation: [TRANSACTION_LIST_ENTRY; 1usize], +} +pub type TRANSACTION_LIST_INFORMATION = _TRANSACTION_LIST_INFORMATION; +pub type PTRANSACTION_LIST_INFORMATION = *mut _TRANSACTION_LIST_INFORMATION; +pub const _KTMOBJECT_TYPE_KTMOBJECT_TRANSACTION: _KTMOBJECT_TYPE = 0; +pub const _KTMOBJECT_TYPE_KTMOBJECT_TRANSACTION_MANAGER: _KTMOBJECT_TYPE = 1; +pub const _KTMOBJECT_TYPE_KTMOBJECT_RESOURCE_MANAGER: _KTMOBJECT_TYPE = 2; +pub const _KTMOBJECT_TYPE_KTMOBJECT_ENLISTMENT: _KTMOBJECT_TYPE = 3; +pub const _KTMOBJECT_TYPE_KTMOBJECT_INVALID: _KTMOBJECT_TYPE = 4; +pub type _KTMOBJECT_TYPE = ::std::os::raw::c_int; +pub use self::_KTMOBJECT_TYPE as KTMOBJECT_TYPE; +pub type PKTMOBJECT_TYPE = *mut _KTMOBJECT_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _KTMOBJECT_CURSOR { + pub LastQuery: GUID, + pub ObjectIdCount: DWORD, + pub ObjectIds: [GUID; 1usize], +} +pub type KTMOBJECT_CURSOR = _KTMOBJECT_CURSOR; +pub type PKTMOBJECT_CURSOR = *mut _KTMOBJECT_CURSOR; +pub type TP_VERSION = DWORD; +pub type PTP_VERSION = *mut DWORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TP_CALLBACK_INSTANCE { + _unused: [u8; 0], +} +pub type TP_CALLBACK_INSTANCE = _TP_CALLBACK_INSTANCE; +pub type PTP_CALLBACK_INSTANCE = *mut _TP_CALLBACK_INSTANCE; +pub type PTP_SIMPLE_CALLBACK = + ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TP_POOL { + _unused: [u8; 0], +} +pub type TP_POOL = _TP_POOL; +pub type PTP_POOL = *mut _TP_POOL; +pub const _TP_CALLBACK_PRIORITY_TP_CALLBACK_PRIORITY_HIGH: _TP_CALLBACK_PRIORITY = 0; +pub const _TP_CALLBACK_PRIORITY_TP_CALLBACK_PRIORITY_NORMAL: _TP_CALLBACK_PRIORITY = 1; +pub const _TP_CALLBACK_PRIORITY_TP_CALLBACK_PRIORITY_LOW: _TP_CALLBACK_PRIORITY = 2; +pub const _TP_CALLBACK_PRIORITY_TP_CALLBACK_PRIORITY_INVALID: _TP_CALLBACK_PRIORITY = 3; +pub const _TP_CALLBACK_PRIORITY_TP_CALLBACK_PRIORITY_COUNT: _TP_CALLBACK_PRIORITY = 3; +pub type _TP_CALLBACK_PRIORITY = ::std::os::raw::c_int; +pub use self::_TP_CALLBACK_PRIORITY as TP_CALLBACK_PRIORITY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TP_POOL_STACK_INFORMATION { + pub StackReserve: SIZE_T, + pub StackCommit: SIZE_T, +} +pub type TP_POOL_STACK_INFORMATION = _TP_POOL_STACK_INFORMATION; +pub type PTP_POOL_STACK_INFORMATION = *mut _TP_POOL_STACK_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TP_CLEANUP_GROUP { + _unused: [u8; 0], +} +pub type TP_CLEANUP_GROUP = _TP_CLEANUP_GROUP; +pub type PTP_CLEANUP_GROUP = *mut _TP_CLEANUP_GROUP; +pub type PTP_CLEANUP_GROUP_CANCEL_CALLBACK = + ::std::option::Option; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _TP_CALLBACK_ENVIRON_V3 { + pub Version: TP_VERSION, + pub Pool: PTP_POOL, + pub CleanupGroup: PTP_CLEANUP_GROUP, + pub CleanupGroupCancelCallback: PTP_CLEANUP_GROUP_CANCEL_CALLBACK, + pub RaceDll: PVOID, + pub ActivationContext: *mut _ACTIVATION_CONTEXT, + pub FinalizationCallback: PTP_SIMPLE_CALLBACK, + pub u: _TP_CALLBACK_ENVIRON_V3__bindgen_ty_1, + pub CallbackPriority: TP_CALLBACK_PRIORITY, + pub Size: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _TP_CALLBACK_ENVIRON_V3__bindgen_ty_1 { + pub Flags: DWORD, + pub s: _TP_CALLBACK_ENVIRON_V3__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _TP_CALLBACK_ENVIRON_V3__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _TP_CALLBACK_ENVIRON_V3__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn LongFunction(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_LongFunction(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Persistent(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_Persistent(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn Private(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_Private(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + LongFunction: DWORD, + Persistent: DWORD, + Private: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let LongFunction: u32 = unsafe { ::std::mem::transmute(LongFunction) }; + LongFunction as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let Persistent: u32 = unsafe { ::std::mem::transmute(Persistent) }; + Persistent as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let Private: u32 = unsafe { ::std::mem::transmute(Private) }; + Private as u64 + }); + __bindgen_bitfield_unit + } +} +pub type TP_CALLBACK_ENVIRON_V3 = _TP_CALLBACK_ENVIRON_V3; +pub type TP_CALLBACK_ENVIRON = TP_CALLBACK_ENVIRON_V3; +pub type PTP_CALLBACK_ENVIRON = *mut TP_CALLBACK_ENVIRON_V3; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TP_WORK { + _unused: [u8; 0], +} +pub type TP_WORK = _TP_WORK; +pub type PTP_WORK = *mut _TP_WORK; +pub type PTP_WORK_CALLBACK = ::std::option::Option< + unsafe extern "C" fn(Instance: PTP_CALLBACK_INSTANCE, Context: PVOID, Work: PTP_WORK), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TP_TIMER { + _unused: [u8; 0], +} +pub type TP_TIMER = _TP_TIMER; +pub type PTP_TIMER = *mut _TP_TIMER; +pub type PTP_TIMER_CALLBACK = ::std::option::Option< + unsafe extern "C" fn(Instance: PTP_CALLBACK_INSTANCE, Context: PVOID, Timer: PTP_TIMER), +>; +pub type TP_WAIT_RESULT = DWORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TP_WAIT { + _unused: [u8; 0], +} +pub type TP_WAIT = _TP_WAIT; +pub type PTP_WAIT = *mut _TP_WAIT; +pub type PTP_WAIT_CALLBACK = ::std::option::Option< + unsafe extern "C" fn( + Instance: PTP_CALLBACK_INSTANCE, + Context: PVOID, + Wait: PTP_WAIT, + WaitResult: TP_WAIT_RESULT, + ), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TP_IO { + _unused: [u8; 0], +} +pub type TP_IO = _TP_IO; +pub type PTP_IO = *mut _TP_IO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TEB { + _unused: [u8; 0], +} +pub type WPARAM = UINT_PTR; +pub type LPARAM = LONG_PTR; +pub type LRESULT = LONG_PTR; +pub type SPHANDLE = *mut HANDLE; +pub type LPHANDLE = *mut HANDLE; +pub type HGLOBAL = HANDLE; +pub type HLOCAL = HANDLE; +pub type GLOBALHANDLE = HANDLE; +pub type LOCALHANDLE = HANDLE; +pub type FARPROC = ::std::option::Option INT_PTR>; +pub type NEARPROC = ::std::option::Option INT_PTR>; +pub type PROC = ::std::option::Option INT_PTR>; +pub type ATOM = WORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HKEY__ { + pub unused: ::std::os::raw::c_int, +} +pub type HKEY = *mut HKEY__; +pub type PHKEY = *mut HKEY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HMETAFILE__ { + pub unused: ::std::os::raw::c_int, +} +pub type HMETAFILE = *mut HMETAFILE__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HINSTANCE__ { + pub unused: ::std::os::raw::c_int, +} +pub type HINSTANCE = *mut HINSTANCE__; +pub type HMODULE = HINSTANCE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HRGN__ { + pub unused: ::std::os::raw::c_int, +} +pub type HRGN = *mut HRGN__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HRSRC__ { + pub unused: ::std::os::raw::c_int, +} +pub type HRSRC = *mut HRSRC__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HSPRITE__ { + pub unused: ::std::os::raw::c_int, +} +pub type HSPRITE = *mut HSPRITE__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HLSURF__ { + pub unused: ::std::os::raw::c_int, +} +pub type HLSURF = *mut HLSURF__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HSTR__ { + pub unused: ::std::os::raw::c_int, +} +pub type HSTR = *mut HSTR__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HTASK__ { + pub unused: ::std::os::raw::c_int, +} +pub type HTASK = *mut HTASK__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HWINSTA__ { + pub unused: ::std::os::raw::c_int, +} +pub type HWINSTA = *mut HWINSTA__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HKL__ { + pub unused: ::std::os::raw::c_int, +} +pub type HKL = *mut HKL__; +pub type HFILE = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILETIME { + pub dwLowDateTime: DWORD, + pub dwHighDateTime: DWORD, +} +pub type FILETIME = _FILETIME; +pub type PFILETIME = *mut _FILETIME; +pub type LPFILETIME = *mut _FILETIME; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HWND__ { + pub unused: ::std::os::raw::c_int, +} +pub type HWND = *mut HWND__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HHOOK__ { + pub unused: ::std::os::raw::c_int, +} +pub type HHOOK = *mut HHOOK__; +pub type HGDIOBJ = *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HACCEL__ { + pub unused: ::std::os::raw::c_int, +} +pub type HACCEL = *mut HACCEL__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HBITMAP__ { + pub unused: ::std::os::raw::c_int, +} +pub type HBITMAP = *mut HBITMAP__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HBRUSH__ { + pub unused: ::std::os::raw::c_int, +} +pub type HBRUSH = *mut HBRUSH__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HCOLORSPACE__ { + pub unused: ::std::os::raw::c_int, +} +pub type HCOLORSPACE = *mut HCOLORSPACE__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HDC__ { + pub unused: ::std::os::raw::c_int, +} +pub type HDC = *mut HDC__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HGLRC__ { + pub unused: ::std::os::raw::c_int, +} +pub type HGLRC = *mut HGLRC__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HDESK__ { + pub unused: ::std::os::raw::c_int, +} +pub type HDESK = *mut HDESK__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HENHMETAFILE__ { + pub unused: ::std::os::raw::c_int, +} +pub type HENHMETAFILE = *mut HENHMETAFILE__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HFONT__ { + pub unused: ::std::os::raw::c_int, +} +pub type HFONT = *mut HFONT__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HICON__ { + pub unused: ::std::os::raw::c_int, +} +pub type HICON = *mut HICON__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HMENU__ { + pub unused: ::std::os::raw::c_int, +} +pub type HMENU = *mut HMENU__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HPALETTE__ { + pub unused: ::std::os::raw::c_int, +} +pub type HPALETTE = *mut HPALETTE__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HPEN__ { + pub unused: ::std::os::raw::c_int, +} +pub type HPEN = *mut HPEN__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HWINEVENTHOOK__ { + pub unused: ::std::os::raw::c_int, +} +pub type HWINEVENTHOOK = *mut HWINEVENTHOOK__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HMONITOR__ { + pub unused: ::std::os::raw::c_int, +} +pub type HMONITOR = *mut HMONITOR__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HUMPD__ { + pub unused: ::std::os::raw::c_int, +} +pub type HUMPD = *mut HUMPD__; +pub type HCURSOR = HICON; +pub type COLORREF = DWORD; +pub type LPCOLORREF = *mut DWORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRECT { + pub left: LONG, + pub top: LONG, + pub right: LONG, + pub bottom: LONG, +} +pub type RECT = tagRECT; +pub type PRECT = *mut tagRECT; +pub type NPRECT = *mut tagRECT; +pub type LPRECT = *mut tagRECT; +pub type LPCRECT = *const RECT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RECTL { + pub left: LONG, + pub top: LONG, + pub right: LONG, + pub bottom: LONG, +} +pub type RECTL = _RECTL; +pub type PRECTL = *mut _RECTL; +pub type LPRECTL = *mut _RECTL; +pub type LPCRECTL = *const RECTL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPOINT { + pub x: LONG, + pub y: LONG, +} +pub type POINT = tagPOINT; +pub type PPOINT = *mut tagPOINT; +pub type NPPOINT = *mut tagPOINT; +pub type LPPOINT = *mut tagPOINT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _POINTL { + pub x: LONG, + pub y: LONG, +} +pub type POINTL = _POINTL; +pub type PPOINTL = *mut _POINTL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSIZE { + pub cx: LONG, + pub cy: LONG, +} +pub type SIZE = tagSIZE; +pub type PSIZE = *mut tagSIZE; +pub type LPSIZE = *mut tagSIZE; +pub type SIZEL = SIZE; +pub type PSIZEL = *mut SIZE; +pub type LPSIZEL = *mut SIZE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPOINTS { + pub x: SHORT, + pub y: SHORT, +} +pub type POINTS = tagPOINTS; +pub type PPOINTS = *mut tagPOINTS; +pub type LPPOINTS = *mut tagPOINTS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct APP_LOCAL_DEVICE_ID { + pub value: [BYTE; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DPI_AWARENESS_CONTEXT__ { + pub unused: ::std::os::raw::c_int, +} +pub type DPI_AWARENESS_CONTEXT = *mut DPI_AWARENESS_CONTEXT__; +pub const DPI_AWARENESS_DPI_AWARENESS_INVALID: DPI_AWARENESS = -1; +pub const DPI_AWARENESS_DPI_AWARENESS_UNAWARE: DPI_AWARENESS = 0; +pub const DPI_AWARENESS_DPI_AWARENESS_SYSTEM_AWARE: DPI_AWARENESS = 1; +pub const DPI_AWARENESS_DPI_AWARENESS_PER_MONITOR_AWARE: DPI_AWARENESS = 2; +pub type DPI_AWARENESS = ::std::os::raw::c_int; +pub const DPI_HOSTING_BEHAVIOR_DPI_HOSTING_BEHAVIOR_INVALID: DPI_HOSTING_BEHAVIOR = -1; +pub const DPI_HOSTING_BEHAVIOR_DPI_HOSTING_BEHAVIOR_DEFAULT: DPI_HOSTING_BEHAVIOR = 0; +pub const DPI_HOSTING_BEHAVIOR_DPI_HOSTING_BEHAVIOR_MIXED: DPI_HOSTING_BEHAVIOR = 1; +pub type DPI_HOSTING_BEHAVIOR = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SECURITY_ATTRIBUTES { + pub nLength: DWORD, + pub lpSecurityDescriptor: LPVOID, + pub bInheritHandle: BOOL, +} +pub type SECURITY_ATTRIBUTES = _SECURITY_ATTRIBUTES; +pub type PSECURITY_ATTRIBUTES = *mut _SECURITY_ATTRIBUTES; +pub type LPSECURITY_ATTRIBUTES = *mut _SECURITY_ATTRIBUTES; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _OVERLAPPED { + pub Internal: ULONG_PTR, + pub InternalHigh: ULONG_PTR, + pub __bindgen_anon_1: _OVERLAPPED__bindgen_ty_1, + pub hEvent: HANDLE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _OVERLAPPED__bindgen_ty_1 { + pub __bindgen_anon_1: _OVERLAPPED__bindgen_ty_1__bindgen_ty_1, + pub Pointer: PVOID, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OVERLAPPED__bindgen_ty_1__bindgen_ty_1 { + pub Offset: DWORD, + pub OffsetHigh: DWORD, +} +pub type OVERLAPPED = _OVERLAPPED; +pub type LPOVERLAPPED = *mut _OVERLAPPED; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OVERLAPPED_ENTRY { + pub lpCompletionKey: ULONG_PTR, + pub lpOverlapped: LPOVERLAPPED, + pub Internal: ULONG_PTR, + pub dwNumberOfBytesTransferred: DWORD, +} +pub type OVERLAPPED_ENTRY = _OVERLAPPED_ENTRY; +pub type LPOVERLAPPED_ENTRY = *mut _OVERLAPPED_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEMTIME { + pub wYear: WORD, + pub wMonth: WORD, + pub wDayOfWeek: WORD, + pub wDay: WORD, + pub wHour: WORD, + pub wMinute: WORD, + pub wSecond: WORD, + pub wMilliseconds: WORD, +} +pub type SYSTEMTIME = _SYSTEMTIME; +pub type PSYSTEMTIME = *mut _SYSTEMTIME; +pub type LPSYSTEMTIME = *mut _SYSTEMTIME; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WIN32_FIND_DATAA { + pub dwFileAttributes: DWORD, + pub ftCreationTime: FILETIME, + pub ftLastAccessTime: FILETIME, + pub ftLastWriteTime: FILETIME, + pub nFileSizeHigh: DWORD, + pub nFileSizeLow: DWORD, + pub dwReserved0: DWORD, + pub dwReserved1: DWORD, + pub cFileName: [CHAR; 260usize], + pub cAlternateFileName: [CHAR; 14usize], +} +pub type WIN32_FIND_DATAA = _WIN32_FIND_DATAA; +pub type PWIN32_FIND_DATAA = *mut _WIN32_FIND_DATAA; +pub type LPWIN32_FIND_DATAA = *mut _WIN32_FIND_DATAA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WIN32_FIND_DATAW { + pub dwFileAttributes: DWORD, + pub ftCreationTime: FILETIME, + pub ftLastAccessTime: FILETIME, + pub ftLastWriteTime: FILETIME, + pub nFileSizeHigh: DWORD, + pub nFileSizeLow: DWORD, + pub dwReserved0: DWORD, + pub dwReserved1: DWORD, + pub cFileName: [WCHAR; 260usize], + pub cAlternateFileName: [WCHAR; 14usize], +} +pub type WIN32_FIND_DATAW = _WIN32_FIND_DATAW; +pub type PWIN32_FIND_DATAW = *mut _WIN32_FIND_DATAW; +pub type LPWIN32_FIND_DATAW = *mut _WIN32_FIND_DATAW; +pub type WIN32_FIND_DATA = WIN32_FIND_DATAA; +pub type PWIN32_FIND_DATA = PWIN32_FIND_DATAA; +pub type LPWIN32_FIND_DATA = LPWIN32_FIND_DATAA; +pub const _FINDEX_INFO_LEVELS_FindExInfoStandard: _FINDEX_INFO_LEVELS = 0; +pub const _FINDEX_INFO_LEVELS_FindExInfoBasic: _FINDEX_INFO_LEVELS = 1; +pub const _FINDEX_INFO_LEVELS_FindExInfoMaxInfoLevel: _FINDEX_INFO_LEVELS = 2; +pub type _FINDEX_INFO_LEVELS = ::std::os::raw::c_int; +pub use self::_FINDEX_INFO_LEVELS as FINDEX_INFO_LEVELS; +pub const _FINDEX_SEARCH_OPS_FindExSearchNameMatch: _FINDEX_SEARCH_OPS = 0; +pub const _FINDEX_SEARCH_OPS_FindExSearchLimitToDirectories: _FINDEX_SEARCH_OPS = 1; +pub const _FINDEX_SEARCH_OPS_FindExSearchLimitToDevices: _FINDEX_SEARCH_OPS = 2; +pub const _FINDEX_SEARCH_OPS_FindExSearchMaxSearchOp: _FINDEX_SEARCH_OPS = 3; +pub type _FINDEX_SEARCH_OPS = ::std::os::raw::c_int; +pub use self::_FINDEX_SEARCH_OPS as FINDEX_SEARCH_OPS; +pub const _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS_ReadDirectoryNotifyInformation: + _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS = 1; +pub const _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS_ReadDirectoryNotifyExtendedInformation: + _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS = 2; +pub const _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS_ReadDirectoryNotifyFullInformation: + _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS = 3; +pub const _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS_ReadDirectoryNotifyMaximumInformation: + _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS = 4; +pub type _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS = ::std::os::raw::c_int; +pub use self::_READ_DIRECTORY_NOTIFY_INFORMATION_CLASS as READ_DIRECTORY_NOTIFY_INFORMATION_CLASS; +pub type PREAD_DIRECTORY_NOTIFY_INFORMATION_CLASS = *mut _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS; +pub const _GET_FILEEX_INFO_LEVELS_GetFileExInfoStandard: _GET_FILEEX_INFO_LEVELS = 0; +pub const _GET_FILEEX_INFO_LEVELS_GetFileExMaxInfoLevel: _GET_FILEEX_INFO_LEVELS = 1; +pub type _GET_FILEEX_INFO_LEVELS = ::std::os::raw::c_int; +pub use self::_GET_FILEEX_INFO_LEVELS as GET_FILEEX_INFO_LEVELS; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileBasicInfo: _FILE_INFO_BY_HANDLE_CLASS = 0; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileStandardInfo: _FILE_INFO_BY_HANDLE_CLASS = 1; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileNameInfo: _FILE_INFO_BY_HANDLE_CLASS = 2; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileRenameInfo: _FILE_INFO_BY_HANDLE_CLASS = 3; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileDispositionInfo: _FILE_INFO_BY_HANDLE_CLASS = 4; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileAllocationInfo: _FILE_INFO_BY_HANDLE_CLASS = 5; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileEndOfFileInfo: _FILE_INFO_BY_HANDLE_CLASS = 6; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileStreamInfo: _FILE_INFO_BY_HANDLE_CLASS = 7; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileCompressionInfo: _FILE_INFO_BY_HANDLE_CLASS = 8; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileAttributeTagInfo: _FILE_INFO_BY_HANDLE_CLASS = 9; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileIdBothDirectoryInfo: _FILE_INFO_BY_HANDLE_CLASS = 10; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileIdBothDirectoryRestartInfo: _FILE_INFO_BY_HANDLE_CLASS = + 11; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileIoPriorityHintInfo: _FILE_INFO_BY_HANDLE_CLASS = 12; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileRemoteProtocolInfo: _FILE_INFO_BY_HANDLE_CLASS = 13; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileFullDirectoryInfo: _FILE_INFO_BY_HANDLE_CLASS = 14; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileFullDirectoryRestartInfo: _FILE_INFO_BY_HANDLE_CLASS = 15; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileStorageInfo: _FILE_INFO_BY_HANDLE_CLASS = 16; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileAlignmentInfo: _FILE_INFO_BY_HANDLE_CLASS = 17; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileIdInfo: _FILE_INFO_BY_HANDLE_CLASS = 18; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileIdExtdDirectoryInfo: _FILE_INFO_BY_HANDLE_CLASS = 19; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileIdExtdDirectoryRestartInfo: _FILE_INFO_BY_HANDLE_CLASS = + 20; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileDispositionInfoEx: _FILE_INFO_BY_HANDLE_CLASS = 21; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileRenameInfoEx: _FILE_INFO_BY_HANDLE_CLASS = 22; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileCaseSensitiveInfo: _FILE_INFO_BY_HANDLE_CLASS = 23; +pub const _FILE_INFO_BY_HANDLE_CLASS_FileNormalizedNameInfo: _FILE_INFO_BY_HANDLE_CLASS = 24; +pub const _FILE_INFO_BY_HANDLE_CLASS_MaximumFileInfoByHandleClass: _FILE_INFO_BY_HANDLE_CLASS = 25; +pub type _FILE_INFO_BY_HANDLE_CLASS = ::std::os::raw::c_int; +pub use self::_FILE_INFO_BY_HANDLE_CLASS as FILE_INFO_BY_HANDLE_CLASS; +pub type PFILE_INFO_BY_HANDLE_CLASS = *mut _FILE_INFO_BY_HANDLE_CLASS; +pub type CRITICAL_SECTION = RTL_CRITICAL_SECTION; +pub type PCRITICAL_SECTION = PRTL_CRITICAL_SECTION; +pub type LPCRITICAL_SECTION = PRTL_CRITICAL_SECTION; +pub type CRITICAL_SECTION_DEBUG = RTL_CRITICAL_SECTION_DEBUG; +pub type PCRITICAL_SECTION_DEBUG = PRTL_CRITICAL_SECTION_DEBUG; +pub type LPCRITICAL_SECTION_DEBUG = PRTL_CRITICAL_SECTION_DEBUG; +pub type LPOVERLAPPED_COMPLETION_ROUTINE = ::std::option::Option< + unsafe extern "C" fn( + dwErrorCode: DWORD, + dwNumberOfBytesTransfered: DWORD, + lpOverlapped: LPOVERLAPPED, + ), +>; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROCESS_HEAP_ENTRY { + pub lpData: PVOID, + pub cbData: DWORD, + pub cbOverhead: BYTE, + pub iRegionIndex: BYTE, + pub wFlags: WORD, + pub __bindgen_anon_1: _PROCESS_HEAP_ENTRY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROCESS_HEAP_ENTRY__bindgen_ty_1 { + pub Block: _PROCESS_HEAP_ENTRY__bindgen_ty_1__bindgen_ty_1, + pub Region: _PROCESS_HEAP_ENTRY__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_HEAP_ENTRY__bindgen_ty_1__bindgen_ty_1 { + pub hMem: HANDLE, + pub dwReserved: [DWORD; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_HEAP_ENTRY__bindgen_ty_1__bindgen_ty_2 { + pub dwCommittedSize: DWORD, + pub dwUnCommittedSize: DWORD, + pub lpFirstBlock: LPVOID, + pub lpLastBlock: LPVOID, +} +pub type PROCESS_HEAP_ENTRY = _PROCESS_HEAP_ENTRY; +pub type LPPROCESS_HEAP_ENTRY = *mut _PROCESS_HEAP_ENTRY; +pub type PPROCESS_HEAP_ENTRY = *mut _PROCESS_HEAP_ENTRY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _REASON_CONTEXT { + pub Version: ULONG, + pub Flags: DWORD, + pub Reason: _REASON_CONTEXT__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _REASON_CONTEXT__bindgen_ty_1 { + pub Detailed: _REASON_CONTEXT__bindgen_ty_1__bindgen_ty_1, + pub SimpleReasonString: LPWSTR, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REASON_CONTEXT__bindgen_ty_1__bindgen_ty_1 { + pub LocalizedReasonModule: HMODULE, + pub LocalizedReasonId: ULONG, + pub ReasonStringCount: ULONG, + pub ReasonStrings: *mut LPWSTR, +} +pub type REASON_CONTEXT = _REASON_CONTEXT; +pub type PREASON_CONTEXT = *mut _REASON_CONTEXT; +pub type PTHREAD_START_ROUTINE = + ::std::option::Option DWORD>; +pub type LPTHREAD_START_ROUTINE = PTHREAD_START_ROUTINE; +pub type PENCLAVE_ROUTINE = + ::std::option::Option LPVOID>; +pub type LPENCLAVE_ROUTINE = PENCLAVE_ROUTINE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EXCEPTION_DEBUG_INFO { + pub ExceptionRecord: EXCEPTION_RECORD, + pub dwFirstChance: DWORD, +} +pub type EXCEPTION_DEBUG_INFO = _EXCEPTION_DEBUG_INFO; +pub type LPEXCEPTION_DEBUG_INFO = *mut _EXCEPTION_DEBUG_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CREATE_THREAD_DEBUG_INFO { + pub hThread: HANDLE, + pub lpThreadLocalBase: LPVOID, + pub lpStartAddress: LPTHREAD_START_ROUTINE, +} +pub type CREATE_THREAD_DEBUG_INFO = _CREATE_THREAD_DEBUG_INFO; +pub type LPCREATE_THREAD_DEBUG_INFO = *mut _CREATE_THREAD_DEBUG_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CREATE_PROCESS_DEBUG_INFO { + pub hFile: HANDLE, + pub hProcess: HANDLE, + pub hThread: HANDLE, + pub lpBaseOfImage: LPVOID, + pub dwDebugInfoFileOffset: DWORD, + pub nDebugInfoSize: DWORD, + pub lpThreadLocalBase: LPVOID, + pub lpStartAddress: LPTHREAD_START_ROUTINE, + pub lpImageName: LPVOID, + pub fUnicode: WORD, +} +pub type CREATE_PROCESS_DEBUG_INFO = _CREATE_PROCESS_DEBUG_INFO; +pub type LPCREATE_PROCESS_DEBUG_INFO = *mut _CREATE_PROCESS_DEBUG_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EXIT_THREAD_DEBUG_INFO { + pub dwExitCode: DWORD, +} +pub type EXIT_THREAD_DEBUG_INFO = _EXIT_THREAD_DEBUG_INFO; +pub type LPEXIT_THREAD_DEBUG_INFO = *mut _EXIT_THREAD_DEBUG_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EXIT_PROCESS_DEBUG_INFO { + pub dwExitCode: DWORD, +} +pub type EXIT_PROCESS_DEBUG_INFO = _EXIT_PROCESS_DEBUG_INFO; +pub type LPEXIT_PROCESS_DEBUG_INFO = *mut _EXIT_PROCESS_DEBUG_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LOAD_DLL_DEBUG_INFO { + pub hFile: HANDLE, + pub lpBaseOfDll: LPVOID, + pub dwDebugInfoFileOffset: DWORD, + pub nDebugInfoSize: DWORD, + pub lpImageName: LPVOID, + pub fUnicode: WORD, +} +pub type LOAD_DLL_DEBUG_INFO = _LOAD_DLL_DEBUG_INFO; +pub type LPLOAD_DLL_DEBUG_INFO = *mut _LOAD_DLL_DEBUG_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _UNLOAD_DLL_DEBUG_INFO { + pub lpBaseOfDll: LPVOID, +} +pub type UNLOAD_DLL_DEBUG_INFO = _UNLOAD_DLL_DEBUG_INFO; +pub type LPUNLOAD_DLL_DEBUG_INFO = *mut _UNLOAD_DLL_DEBUG_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OUTPUT_DEBUG_STRING_INFO { + pub lpDebugStringData: LPSTR, + pub fUnicode: WORD, + pub nDebugStringLength: WORD, +} +pub type OUTPUT_DEBUG_STRING_INFO = _OUTPUT_DEBUG_STRING_INFO; +pub type LPOUTPUT_DEBUG_STRING_INFO = *mut _OUTPUT_DEBUG_STRING_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RIP_INFO { + pub dwError: DWORD, + pub dwType: DWORD, +} +pub type RIP_INFO = _RIP_INFO; +pub type LPRIP_INFO = *mut _RIP_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DEBUG_EVENT { + pub dwDebugEventCode: DWORD, + pub dwProcessId: DWORD, + pub dwThreadId: DWORD, + pub u: _DEBUG_EVENT__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DEBUG_EVENT__bindgen_ty_1 { + pub Exception: EXCEPTION_DEBUG_INFO, + pub CreateThread: CREATE_THREAD_DEBUG_INFO, + pub CreateProcessInfo: CREATE_PROCESS_DEBUG_INFO, + pub ExitThread: EXIT_THREAD_DEBUG_INFO, + pub ExitProcess: EXIT_PROCESS_DEBUG_INFO, + pub LoadDll: LOAD_DLL_DEBUG_INFO, + pub UnloadDll: UNLOAD_DLL_DEBUG_INFO, + pub DebugString: OUTPUT_DEBUG_STRING_INFO, + pub RipInfo: RIP_INFO, +} +pub type DEBUG_EVENT = _DEBUG_EVENT; +pub type LPDEBUG_EVENT = *mut _DEBUG_EVENT; +pub type LPCONTEXT = PCONTEXT; +extern "C" { + pub fn IsApiSetImplemented(Contract: PCSTR) -> BOOL; +} +extern "C" { + pub fn SetEnvironmentStringsW(NewEnvironment: LPWCH) -> BOOL; +} +extern "C" { + pub fn GetStdHandle(nStdHandle: DWORD) -> HANDLE; +} +extern "C" { + pub fn SetStdHandle(nStdHandle: DWORD, hHandle: HANDLE) -> BOOL; +} +extern "C" { + pub fn SetStdHandleEx(nStdHandle: DWORD, hHandle: HANDLE, phPrevValue: PHANDLE) -> BOOL; +} +extern "C" { + pub fn GetCommandLineA() -> LPSTR; +} +extern "C" { + pub fn GetCommandLineW() -> LPWSTR; +} +extern "C" { + pub fn GetEnvironmentStrings() -> LPCH; +} +extern "C" { + pub fn GetEnvironmentStringsW() -> LPWCH; +} +extern "C" { + pub fn FreeEnvironmentStringsA(penv: LPCH) -> BOOL; +} +extern "C" { + pub fn FreeEnvironmentStringsW(penv: LPWCH) -> BOOL; +} +extern "C" { + pub fn GetEnvironmentVariableA(lpName: LPCSTR, lpBuffer: LPSTR, nSize: DWORD) -> DWORD; +} +extern "C" { + pub fn GetEnvironmentVariableW(lpName: LPCWSTR, lpBuffer: LPWSTR, nSize: DWORD) -> DWORD; +} +extern "C" { + pub fn SetEnvironmentVariableA(lpName: LPCSTR, lpValue: LPCSTR) -> BOOL; +} +extern "C" { + pub fn SetEnvironmentVariableW(lpName: LPCWSTR, lpValue: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn ExpandEnvironmentStringsA(lpSrc: LPCSTR, lpDst: LPSTR, nSize: DWORD) -> DWORD; +} +extern "C" { + pub fn ExpandEnvironmentStringsW(lpSrc: LPCWSTR, lpDst: LPWSTR, nSize: DWORD) -> DWORD; +} +extern "C" { + pub fn SetCurrentDirectoryA(lpPathName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn SetCurrentDirectoryW(lpPathName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn GetCurrentDirectoryA(nBufferLength: DWORD, lpBuffer: LPSTR) -> DWORD; +} +extern "C" { + pub fn GetCurrentDirectoryW(nBufferLength: DWORD, lpBuffer: LPWSTR) -> DWORD; +} +extern "C" { + pub fn SearchPathW( + lpPath: LPCWSTR, + lpFileName: LPCWSTR, + lpExtension: LPCWSTR, + nBufferLength: DWORD, + lpBuffer: LPWSTR, + lpFilePart: *mut LPWSTR, + ) -> DWORD; +} +extern "C" { + pub fn SearchPathA( + lpPath: LPCSTR, + lpFileName: LPCSTR, + lpExtension: LPCSTR, + nBufferLength: DWORD, + lpBuffer: LPSTR, + lpFilePart: *mut LPSTR, + ) -> DWORD; +} +extern "C" { + pub fn NeedCurrentDirectoryForExePathA(ExeName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn NeedCurrentDirectoryForExePathW(ExeName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn CompareFileTime(lpFileTime1: *const FILETIME, lpFileTime2: *const FILETIME) -> LONG; +} +extern "C" { + pub fn CreateDirectoryA( + lpPathName: LPCSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + ) -> BOOL; +} +extern "C" { + pub fn CreateDirectoryW( + lpPathName: LPCWSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + ) -> BOOL; +} +extern "C" { + pub fn CreateFileA( + lpFileName: LPCSTR, + dwDesiredAccess: DWORD, + dwShareMode: DWORD, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + dwCreationDisposition: DWORD, + dwFlagsAndAttributes: DWORD, + hTemplateFile: HANDLE, + ) -> HANDLE; +} +extern "C" { + pub fn CreateFileW( + lpFileName: LPCWSTR, + dwDesiredAccess: DWORD, + dwShareMode: DWORD, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + dwCreationDisposition: DWORD, + dwFlagsAndAttributes: DWORD, + hTemplateFile: HANDLE, + ) -> HANDLE; +} +extern "C" { + pub fn DefineDosDeviceW(dwFlags: DWORD, lpDeviceName: LPCWSTR, lpTargetPath: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn DeleteFileA(lpFileName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn DeleteFileW(lpFileName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn DeleteVolumeMountPointW(lpszVolumeMountPoint: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn FileTimeToLocalFileTime( + lpFileTime: *const FILETIME, + lpLocalFileTime: LPFILETIME, + ) -> BOOL; +} +extern "C" { + pub fn FindClose(hFindFile: HANDLE) -> BOOL; +} +extern "C" { + pub fn FindCloseChangeNotification(hChangeHandle: HANDLE) -> BOOL; +} +extern "C" { + pub fn FindFirstChangeNotificationA( + lpPathName: LPCSTR, + bWatchSubtree: BOOL, + dwNotifyFilter: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn FindFirstChangeNotificationW( + lpPathName: LPCWSTR, + bWatchSubtree: BOOL, + dwNotifyFilter: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn FindFirstFileA(lpFileName: LPCSTR, lpFindFileData: LPWIN32_FIND_DATAA) -> HANDLE; +} +extern "C" { + pub fn FindFirstFileW(lpFileName: LPCWSTR, lpFindFileData: LPWIN32_FIND_DATAW) -> HANDLE; +} +extern "C" { + pub fn FindFirstFileExA( + lpFileName: LPCSTR, + fInfoLevelId: FINDEX_INFO_LEVELS, + lpFindFileData: LPVOID, + fSearchOp: FINDEX_SEARCH_OPS, + lpSearchFilter: LPVOID, + dwAdditionalFlags: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn FindFirstFileExW( + lpFileName: LPCWSTR, + fInfoLevelId: FINDEX_INFO_LEVELS, + lpFindFileData: LPVOID, + fSearchOp: FINDEX_SEARCH_OPS, + lpSearchFilter: LPVOID, + dwAdditionalFlags: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn FindFirstVolumeW(lpszVolumeName: LPWSTR, cchBufferLength: DWORD) -> HANDLE; +} +extern "C" { + pub fn FindNextChangeNotification(hChangeHandle: HANDLE) -> BOOL; +} +extern "C" { + pub fn FindNextFileA(hFindFile: HANDLE, lpFindFileData: LPWIN32_FIND_DATAA) -> BOOL; +} +extern "C" { + pub fn FindNextFileW(hFindFile: HANDLE, lpFindFileData: LPWIN32_FIND_DATAW) -> BOOL; +} +extern "C" { + pub fn FindNextVolumeW( + hFindVolume: HANDLE, + lpszVolumeName: LPWSTR, + cchBufferLength: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn FindVolumeClose(hFindVolume: HANDLE) -> BOOL; +} +extern "C" { + pub fn FlushFileBuffers(hFile: HANDLE) -> BOOL; +} +extern "C" { + pub fn GetDiskFreeSpaceA( + lpRootPathName: LPCSTR, + lpSectorsPerCluster: LPDWORD, + lpBytesPerSector: LPDWORD, + lpNumberOfFreeClusters: LPDWORD, + lpTotalNumberOfClusters: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetDiskFreeSpaceW( + lpRootPathName: LPCWSTR, + lpSectorsPerCluster: LPDWORD, + lpBytesPerSector: LPDWORD, + lpNumberOfFreeClusters: LPDWORD, + lpTotalNumberOfClusters: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetDiskFreeSpaceExA( + lpDirectoryName: LPCSTR, + lpFreeBytesAvailableToCaller: PULARGE_INTEGER, + lpTotalNumberOfBytes: PULARGE_INTEGER, + lpTotalNumberOfFreeBytes: PULARGE_INTEGER, + ) -> BOOL; +} +extern "C" { + pub fn GetDiskFreeSpaceExW( + lpDirectoryName: LPCWSTR, + lpFreeBytesAvailableToCaller: PULARGE_INTEGER, + lpTotalNumberOfBytes: PULARGE_INTEGER, + lpTotalNumberOfFreeBytes: PULARGE_INTEGER, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DISK_SPACE_INFORMATION { + pub ActualTotalAllocationUnits: ULONGLONG, + pub ActualAvailableAllocationUnits: ULONGLONG, + pub ActualPoolUnavailableAllocationUnits: ULONGLONG, + pub CallerTotalAllocationUnits: ULONGLONG, + pub CallerAvailableAllocationUnits: ULONGLONG, + pub CallerPoolUnavailableAllocationUnits: ULONGLONG, + pub UsedAllocationUnits: ULONGLONG, + pub TotalReservedAllocationUnits: ULONGLONG, + pub VolumeStorageReserveAllocationUnits: ULONGLONG, + pub AvailableCommittedAllocationUnits: ULONGLONG, + pub PoolAvailableAllocationUnits: ULONGLONG, + pub SectorsPerAllocationUnit: DWORD, + pub BytesPerSector: DWORD, +} +extern "C" { + pub fn GetDiskSpaceInformationA( + rootPath: LPCSTR, + diskSpaceInfo: *mut DISK_SPACE_INFORMATION, + ) -> HRESULT; +} +extern "C" { + pub fn GetDiskSpaceInformationW( + rootPath: LPCWSTR, + diskSpaceInfo: *mut DISK_SPACE_INFORMATION, + ) -> HRESULT; +} +extern "C" { + pub fn GetDriveTypeA(lpRootPathName: LPCSTR) -> UINT; +} +extern "C" { + pub fn GetDriveTypeW(lpRootPathName: LPCWSTR) -> UINT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WIN32_FILE_ATTRIBUTE_DATA { + pub dwFileAttributes: DWORD, + pub ftCreationTime: FILETIME, + pub ftLastAccessTime: FILETIME, + pub ftLastWriteTime: FILETIME, + pub nFileSizeHigh: DWORD, + pub nFileSizeLow: DWORD, +} +pub type WIN32_FILE_ATTRIBUTE_DATA = _WIN32_FILE_ATTRIBUTE_DATA; +pub type LPWIN32_FILE_ATTRIBUTE_DATA = *mut _WIN32_FILE_ATTRIBUTE_DATA; +extern "C" { + pub fn GetFileAttributesA(lpFileName: LPCSTR) -> DWORD; +} +extern "C" { + pub fn GetFileAttributesW(lpFileName: LPCWSTR) -> DWORD; +} +extern "C" { + pub fn GetFileAttributesExA( + lpFileName: LPCSTR, + fInfoLevelId: GET_FILEEX_INFO_LEVELS, + lpFileInformation: LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn GetFileAttributesExW( + lpFileName: LPCWSTR, + fInfoLevelId: GET_FILEEX_INFO_LEVELS, + lpFileInformation: LPVOID, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BY_HANDLE_FILE_INFORMATION { + pub dwFileAttributes: DWORD, + pub ftCreationTime: FILETIME, + pub ftLastAccessTime: FILETIME, + pub ftLastWriteTime: FILETIME, + pub dwVolumeSerialNumber: DWORD, + pub nFileSizeHigh: DWORD, + pub nFileSizeLow: DWORD, + pub nNumberOfLinks: DWORD, + pub nFileIndexHigh: DWORD, + pub nFileIndexLow: DWORD, +} +pub type BY_HANDLE_FILE_INFORMATION = _BY_HANDLE_FILE_INFORMATION; +pub type PBY_HANDLE_FILE_INFORMATION = *mut _BY_HANDLE_FILE_INFORMATION; +pub type LPBY_HANDLE_FILE_INFORMATION = *mut _BY_HANDLE_FILE_INFORMATION; +extern "C" { + pub fn GetFileInformationByHandle( + hFile: HANDLE, + lpFileInformation: LPBY_HANDLE_FILE_INFORMATION, + ) -> BOOL; +} +extern "C" { + pub fn GetFileSize(hFile: HANDLE, lpFileSizeHigh: LPDWORD) -> DWORD; +} +extern "C" { + pub fn GetFileSizeEx(hFile: HANDLE, lpFileSize: PLARGE_INTEGER) -> BOOL; +} +extern "C" { + pub fn GetFileType(hFile: HANDLE) -> DWORD; +} +extern "C" { + pub fn GetFinalPathNameByHandleA( + hFile: HANDLE, + lpszFilePath: LPSTR, + cchFilePath: DWORD, + dwFlags: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetFinalPathNameByHandleW( + hFile: HANDLE, + lpszFilePath: LPWSTR, + cchFilePath: DWORD, + dwFlags: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetFileTime( + hFile: HANDLE, + lpCreationTime: LPFILETIME, + lpLastAccessTime: LPFILETIME, + lpLastWriteTime: LPFILETIME, + ) -> BOOL; +} +extern "C" { + pub fn GetFullPathNameW( + lpFileName: LPCWSTR, + nBufferLength: DWORD, + lpBuffer: LPWSTR, + lpFilePart: *mut LPWSTR, + ) -> DWORD; +} +extern "C" { + pub fn GetFullPathNameA( + lpFileName: LPCSTR, + nBufferLength: DWORD, + lpBuffer: LPSTR, + lpFilePart: *mut LPSTR, + ) -> DWORD; +} +extern "C" { + pub fn GetLogicalDrives() -> DWORD; +} +extern "C" { + pub fn GetLogicalDriveStringsW(nBufferLength: DWORD, lpBuffer: LPWSTR) -> DWORD; +} +extern "C" { + pub fn GetLongPathNameA(lpszShortPath: LPCSTR, lpszLongPath: LPSTR, cchBuffer: DWORD) -> DWORD; +} +extern "C" { + pub fn GetLongPathNameW( + lpszShortPath: LPCWSTR, + lpszLongPath: LPWSTR, + cchBuffer: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn AreShortNamesEnabled(Handle: HANDLE, Enabled: *mut BOOL) -> BOOL; +} +extern "C" { + pub fn GetShortPathNameW( + lpszLongPath: LPCWSTR, + lpszShortPath: LPWSTR, + cchBuffer: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetTempFileNameW( + lpPathName: LPCWSTR, + lpPrefixString: LPCWSTR, + uUnique: UINT, + lpTempFileName: LPWSTR, + ) -> UINT; +} +extern "C" { + pub fn GetVolumeInformationByHandleW( + hFile: HANDLE, + lpVolumeNameBuffer: LPWSTR, + nVolumeNameSize: DWORD, + lpVolumeSerialNumber: LPDWORD, + lpMaximumComponentLength: LPDWORD, + lpFileSystemFlags: LPDWORD, + lpFileSystemNameBuffer: LPWSTR, + nFileSystemNameSize: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetVolumeInformationW( + lpRootPathName: LPCWSTR, + lpVolumeNameBuffer: LPWSTR, + nVolumeNameSize: DWORD, + lpVolumeSerialNumber: LPDWORD, + lpMaximumComponentLength: LPDWORD, + lpFileSystemFlags: LPDWORD, + lpFileSystemNameBuffer: LPWSTR, + nFileSystemNameSize: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetVolumePathNameW( + lpszFileName: LPCWSTR, + lpszVolumePathName: LPWSTR, + cchBufferLength: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn LocalFileTimeToFileTime( + lpLocalFileTime: *const FILETIME, + lpFileTime: LPFILETIME, + ) -> BOOL; +} +extern "C" { + pub fn LockFile( + hFile: HANDLE, + dwFileOffsetLow: DWORD, + dwFileOffsetHigh: DWORD, + nNumberOfBytesToLockLow: DWORD, + nNumberOfBytesToLockHigh: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn LockFileEx( + hFile: HANDLE, + dwFlags: DWORD, + dwReserved: DWORD, + nNumberOfBytesToLockLow: DWORD, + nNumberOfBytesToLockHigh: DWORD, + lpOverlapped: LPOVERLAPPED, + ) -> BOOL; +} +extern "C" { + pub fn QueryDosDeviceW(lpDeviceName: LPCWSTR, lpTargetPath: LPWSTR, ucchMax: DWORD) -> DWORD; +} +extern "C" { + pub fn ReadFile( + hFile: HANDLE, + lpBuffer: LPVOID, + nNumberOfBytesToRead: DWORD, + lpNumberOfBytesRead: LPDWORD, + lpOverlapped: LPOVERLAPPED, + ) -> BOOL; +} +extern "C" { + pub fn ReadFileEx( + hFile: HANDLE, + lpBuffer: LPVOID, + nNumberOfBytesToRead: DWORD, + lpOverlapped: LPOVERLAPPED, + lpCompletionRoutine: LPOVERLAPPED_COMPLETION_ROUTINE, + ) -> BOOL; +} +extern "C" { + pub fn ReadFileScatter( + hFile: HANDLE, + aSegmentArray: *mut FILE_SEGMENT_ELEMENT, + nNumberOfBytesToRead: DWORD, + lpReserved: LPDWORD, + lpOverlapped: LPOVERLAPPED, + ) -> BOOL; +} +extern "C" { + pub fn RemoveDirectoryA(lpPathName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn RemoveDirectoryW(lpPathName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn SetEndOfFile(hFile: HANDLE) -> BOOL; +} +extern "C" { + pub fn SetFileAttributesA(lpFileName: LPCSTR, dwFileAttributes: DWORD) -> BOOL; +} +extern "C" { + pub fn SetFileAttributesW(lpFileName: LPCWSTR, dwFileAttributes: DWORD) -> BOOL; +} +extern "C" { + pub fn SetFileInformationByHandle( + hFile: HANDLE, + FileInformationClass: FILE_INFO_BY_HANDLE_CLASS, + lpFileInformation: LPVOID, + dwBufferSize: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetFilePointer( + hFile: HANDLE, + lDistanceToMove: LONG, + lpDistanceToMoveHigh: PLONG, + dwMoveMethod: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn SetFilePointerEx( + hFile: HANDLE, + liDistanceToMove: LARGE_INTEGER, + lpNewFilePointer: PLARGE_INTEGER, + dwMoveMethod: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetFileTime( + hFile: HANDLE, + lpCreationTime: *const FILETIME, + lpLastAccessTime: *const FILETIME, + lpLastWriteTime: *const FILETIME, + ) -> BOOL; +} +extern "C" { + pub fn SetFileValidData(hFile: HANDLE, ValidDataLength: LONGLONG) -> BOOL; +} +extern "C" { + pub fn UnlockFile( + hFile: HANDLE, + dwFileOffsetLow: DWORD, + dwFileOffsetHigh: DWORD, + nNumberOfBytesToUnlockLow: DWORD, + nNumberOfBytesToUnlockHigh: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn UnlockFileEx( + hFile: HANDLE, + dwReserved: DWORD, + nNumberOfBytesToUnlockLow: DWORD, + nNumberOfBytesToUnlockHigh: DWORD, + lpOverlapped: LPOVERLAPPED, + ) -> BOOL; +} +extern "C" { + pub fn WriteFile( + hFile: HANDLE, + lpBuffer: LPCVOID, + nNumberOfBytesToWrite: DWORD, + lpNumberOfBytesWritten: LPDWORD, + lpOverlapped: LPOVERLAPPED, + ) -> BOOL; +} +extern "C" { + pub fn WriteFileEx( + hFile: HANDLE, + lpBuffer: LPCVOID, + nNumberOfBytesToWrite: DWORD, + lpOverlapped: LPOVERLAPPED, + lpCompletionRoutine: LPOVERLAPPED_COMPLETION_ROUTINE, + ) -> BOOL; +} +extern "C" { + pub fn WriteFileGather( + hFile: HANDLE, + aSegmentArray: *mut FILE_SEGMENT_ELEMENT, + nNumberOfBytesToWrite: DWORD, + lpReserved: LPDWORD, + lpOverlapped: LPOVERLAPPED, + ) -> BOOL; +} +extern "C" { + pub fn GetTempPathW(nBufferLength: DWORD, lpBuffer: LPWSTR) -> DWORD; +} +extern "C" { + pub fn GetVolumeNameForVolumeMountPointW( + lpszVolumeMountPoint: LPCWSTR, + lpszVolumeName: LPWSTR, + cchBufferLength: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetVolumePathNamesForVolumeNameW( + lpszVolumeName: LPCWSTR, + lpszVolumePathNames: LPWCH, + cchBufferLength: DWORD, + lpcchReturnLength: PDWORD, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CREATEFILE2_EXTENDED_PARAMETERS { + pub dwSize: DWORD, + pub dwFileAttributes: DWORD, + pub dwFileFlags: DWORD, + pub dwSecurityQosFlags: DWORD, + pub lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + pub hTemplateFile: HANDLE, +} +pub type CREATEFILE2_EXTENDED_PARAMETERS = _CREATEFILE2_EXTENDED_PARAMETERS; +pub type PCREATEFILE2_EXTENDED_PARAMETERS = *mut _CREATEFILE2_EXTENDED_PARAMETERS; +pub type LPCREATEFILE2_EXTENDED_PARAMETERS = *mut _CREATEFILE2_EXTENDED_PARAMETERS; +extern "C" { + pub fn CreateFile2( + lpFileName: LPCWSTR, + dwDesiredAccess: DWORD, + dwShareMode: DWORD, + dwCreationDisposition: DWORD, + pCreateExParams: LPCREATEFILE2_EXTENDED_PARAMETERS, + ) -> HANDLE; +} +extern "C" { + pub fn SetFileIoOverlappedRange( + FileHandle: HANDLE, + OverlappedRangeStart: PUCHAR, + Length: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn GetCompressedFileSizeA(lpFileName: LPCSTR, lpFileSizeHigh: LPDWORD) -> DWORD; +} +extern "C" { + pub fn GetCompressedFileSizeW(lpFileName: LPCWSTR, lpFileSizeHigh: LPDWORD) -> DWORD; +} +pub const _STREAM_INFO_LEVELS_FindStreamInfoStandard: _STREAM_INFO_LEVELS = 0; +pub const _STREAM_INFO_LEVELS_FindStreamInfoMaxInfoLevel: _STREAM_INFO_LEVELS = 1; +pub type _STREAM_INFO_LEVELS = ::std::os::raw::c_int; +pub use self::_STREAM_INFO_LEVELS as STREAM_INFO_LEVELS; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _WIN32_FIND_STREAM_DATA { + pub StreamSize: LARGE_INTEGER, + pub cStreamName: [WCHAR; 296usize], +} +pub type WIN32_FIND_STREAM_DATA = _WIN32_FIND_STREAM_DATA; +pub type PWIN32_FIND_STREAM_DATA = *mut _WIN32_FIND_STREAM_DATA; +extern "C" { + pub fn FindFirstStreamW( + lpFileName: LPCWSTR, + InfoLevel: STREAM_INFO_LEVELS, + lpFindStreamData: LPVOID, + dwFlags: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn FindNextStreamW(hFindStream: HANDLE, lpFindStreamData: LPVOID) -> BOOL; +} +extern "C" { + pub fn AreFileApisANSI() -> BOOL; +} +extern "C" { + pub fn GetTempPathA(nBufferLength: DWORD, lpBuffer: LPSTR) -> DWORD; +} +extern "C" { + pub fn FindFirstFileNameW( + lpFileName: LPCWSTR, + dwFlags: DWORD, + StringLength: LPDWORD, + LinkName: PWSTR, + ) -> HANDLE; +} +extern "C" { + pub fn FindNextFileNameW(hFindStream: HANDLE, StringLength: LPDWORD, LinkName: PWSTR) -> BOOL; +} +extern "C" { + pub fn GetVolumeInformationA( + lpRootPathName: LPCSTR, + lpVolumeNameBuffer: LPSTR, + nVolumeNameSize: DWORD, + lpVolumeSerialNumber: LPDWORD, + lpMaximumComponentLength: LPDWORD, + lpFileSystemFlags: LPDWORD, + lpFileSystemNameBuffer: LPSTR, + nFileSystemNameSize: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetTempFileNameA( + lpPathName: LPCSTR, + lpPrefixString: LPCSTR, + uUnique: UINT, + lpTempFileName: LPSTR, + ) -> UINT; +} +extern "C" { + pub fn SetFileApisToOEM(); +} +extern "C" { + pub fn SetFileApisToANSI(); +} +extern "C" { + pub fn GetTempPath2W(BufferLength: DWORD, Buffer: LPWSTR) -> DWORD; +} +extern "C" { + pub fn GetTempPath2A(BufferLength: DWORD, Buffer: LPSTR) -> DWORD; +} +extern "C" { + pub fn CopyFileFromAppW( + lpExistingFileName: LPCWSTR, + lpNewFileName: LPCWSTR, + bFailIfExists: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn CreateDirectoryFromAppW( + lpPathName: LPCWSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + ) -> BOOL; +} +extern "C" { + pub fn CreateFileFromAppW( + lpFileName: LPCWSTR, + dwDesiredAccess: DWORD, + dwShareMode: DWORD, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + dwCreationDisposition: DWORD, + dwFlagsAndAttributes: DWORD, + hTemplateFile: HANDLE, + ) -> HANDLE; +} +extern "C" { + pub fn CreateFile2FromAppW( + lpFileName: LPCWSTR, + dwDesiredAccess: DWORD, + dwShareMode: DWORD, + dwCreationDisposition: DWORD, + pCreateExParams: LPCREATEFILE2_EXTENDED_PARAMETERS, + ) -> HANDLE; +} +extern "C" { + pub fn DeleteFileFromAppW(lpFileName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn FindFirstFileExFromAppW( + lpFileName: LPCWSTR, + fInfoLevelId: FINDEX_INFO_LEVELS, + lpFindFileData: LPVOID, + fSearchOp: FINDEX_SEARCH_OPS, + lpSearchFilter: LPVOID, + dwAdditionalFlags: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn GetFileAttributesExFromAppW( + lpFileName: LPCWSTR, + fInfoLevelId: GET_FILEEX_INFO_LEVELS, + lpFileInformation: LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn MoveFileFromAppW(lpExistingFileName: LPCWSTR, lpNewFileName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn RemoveDirectoryFromAppW(lpPathName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn ReplaceFileFromAppW( + lpReplacedFileName: LPCWSTR, + lpReplacementFileName: LPCWSTR, + lpBackupFileName: LPCWSTR, + dwReplaceFlags: DWORD, + lpExclude: LPVOID, + lpReserved: LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn SetFileAttributesFromAppW(lpFileName: LPCWSTR, dwFileAttributes: DWORD) -> BOOL; +} +extern "C" { + pub fn IsDebuggerPresent() -> BOOL; +} +extern "C" { + pub fn DebugBreak(); +} +extern "C" { + pub fn OutputDebugStringA(lpOutputString: LPCSTR); +} +extern "C" { + pub fn OutputDebugStringW(lpOutputString: LPCWSTR); +} +extern "C" { + pub fn ContinueDebugEvent( + dwProcessId: DWORD, + dwThreadId: DWORD, + dwContinueStatus: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn WaitForDebugEvent(lpDebugEvent: LPDEBUG_EVENT, dwMilliseconds: DWORD) -> BOOL; +} +extern "C" { + pub fn DebugActiveProcess(dwProcessId: DWORD) -> BOOL; +} +extern "C" { + pub fn DebugActiveProcessStop(dwProcessId: DWORD) -> BOOL; +} +extern "C" { + pub fn CheckRemoteDebuggerPresent(hProcess: HANDLE, pbDebuggerPresent: PBOOL) -> BOOL; +} +extern "C" { + pub fn WaitForDebugEventEx(lpDebugEvent: LPDEBUG_EVENT, dwMilliseconds: DWORD) -> BOOL; +} +extern "C" { + pub fn EncodePointer(Ptr: PVOID) -> PVOID; +} +extern "C" { + pub fn DecodePointer(Ptr: PVOID) -> PVOID; +} +extern "C" { + pub fn EncodeSystemPointer(Ptr: PVOID) -> PVOID; +} +extern "C" { + pub fn DecodeSystemPointer(Ptr: PVOID) -> PVOID; +} +extern "C" { + pub fn EncodeRemotePointer( + ProcessHandle: HANDLE, + Ptr: PVOID, + EncodedPtr: *mut PVOID, + ) -> HRESULT; +} +extern "C" { + pub fn DecodeRemotePointer( + ProcessHandle: HANDLE, + Ptr: PVOID, + DecodedPtr: *mut PVOID, + ) -> HRESULT; +} +extern "C" { + pub fn Beep(dwFreq: DWORD, dwDuration: DWORD) -> BOOL; +} +extern "C" { + pub fn CloseHandle(hObject: HANDLE) -> BOOL; +} +extern "C" { + pub fn DuplicateHandle( + hSourceProcessHandle: HANDLE, + hSourceHandle: HANDLE, + hTargetProcessHandle: HANDLE, + lpTargetHandle: LPHANDLE, + dwDesiredAccess: DWORD, + bInheritHandle: BOOL, + dwOptions: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CompareObjectHandles(hFirstObjectHandle: HANDLE, hSecondObjectHandle: HANDLE) -> BOOL; +} +extern "C" { + pub fn GetHandleInformation(hObject: HANDLE, lpdwFlags: LPDWORD) -> BOOL; +} +extern "C" { + pub fn SetHandleInformation(hObject: HANDLE, dwMask: DWORD, dwFlags: DWORD) -> BOOL; +} +pub type PTOP_LEVEL_EXCEPTION_FILTER = + ::std::option::Option LONG>; +pub type LPTOP_LEVEL_EXCEPTION_FILTER = PTOP_LEVEL_EXCEPTION_FILTER; +extern "C" { + pub fn RaiseException( + dwExceptionCode: DWORD, + dwExceptionFlags: DWORD, + nNumberOfArguments: DWORD, + lpArguments: *const ULONG_PTR, + ); +} +extern "C" { + pub fn UnhandledExceptionFilter(ExceptionInfo: *mut _EXCEPTION_POINTERS) -> LONG; +} +extern "C" { + pub fn SetUnhandledExceptionFilter( + lpTopLevelExceptionFilter: LPTOP_LEVEL_EXCEPTION_FILTER, + ) -> LPTOP_LEVEL_EXCEPTION_FILTER; +} +extern "C" { + pub fn GetLastError() -> DWORD; +} +extern "C" { + pub fn SetLastError(dwErrCode: DWORD); +} +extern "C" { + pub fn GetErrorMode() -> UINT; +} +extern "C" { + pub fn SetErrorMode(uMode: UINT) -> UINT; +} +extern "C" { + pub fn AddVectoredExceptionHandler(First: ULONG, Handler: PVECTORED_EXCEPTION_HANDLER) + -> PVOID; +} +extern "C" { + pub fn RemoveVectoredExceptionHandler(Handle: PVOID) -> ULONG; +} +extern "C" { + pub fn AddVectoredContinueHandler(First: ULONG, Handler: PVECTORED_EXCEPTION_HANDLER) -> PVOID; +} +extern "C" { + pub fn RemoveVectoredContinueHandler(Handle: PVOID) -> ULONG; +} +extern "C" { + pub fn RaiseFailFastException( + pExceptionRecord: PEXCEPTION_RECORD, + pContextRecord: PCONTEXT, + dwFlags: DWORD, + ); +} +extern "C" { + pub fn FatalAppExitA(uAction: UINT, lpMessageText: LPCSTR); +} +extern "C" { + pub fn FatalAppExitW(uAction: UINT, lpMessageText: LPCWSTR); +} +extern "C" { + pub fn GetThreadErrorMode() -> DWORD; +} +extern "C" { + pub fn SetThreadErrorMode(dwNewMode: DWORD, lpOldMode: LPDWORD) -> BOOL; +} +extern "C" { + pub fn TerminateProcessOnMemoryExhaustion(FailedAllocationSize: SIZE_T); +} +extern "C" { + pub fn FlsAlloc(lpCallback: PFLS_CALLBACK_FUNCTION) -> DWORD; +} +extern "C" { + pub fn FlsGetValue(dwFlsIndex: DWORD) -> PVOID; +} +extern "C" { + pub fn FlsSetValue(dwFlsIndex: DWORD, lpFlsData: PVOID) -> BOOL; +} +extern "C" { + pub fn FlsFree(dwFlsIndex: DWORD) -> BOOL; +} +extern "C" { + pub fn IsThreadAFiber() -> BOOL; +} +extern "C" { + pub fn CreatePipe( + hReadPipe: PHANDLE, + hWritePipe: PHANDLE, + lpPipeAttributes: LPSECURITY_ATTRIBUTES, + nSize: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn ConnectNamedPipe(hNamedPipe: HANDLE, lpOverlapped: LPOVERLAPPED) -> BOOL; +} +extern "C" { + pub fn DisconnectNamedPipe(hNamedPipe: HANDLE) -> BOOL; +} +extern "C" { + pub fn SetNamedPipeHandleState( + hNamedPipe: HANDLE, + lpMode: LPDWORD, + lpMaxCollectionCount: LPDWORD, + lpCollectDataTimeout: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn PeekNamedPipe( + hNamedPipe: HANDLE, + lpBuffer: LPVOID, + nBufferSize: DWORD, + lpBytesRead: LPDWORD, + lpTotalBytesAvail: LPDWORD, + lpBytesLeftThisMessage: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn TransactNamedPipe( + hNamedPipe: HANDLE, + lpInBuffer: LPVOID, + nInBufferSize: DWORD, + lpOutBuffer: LPVOID, + nOutBufferSize: DWORD, + lpBytesRead: LPDWORD, + lpOverlapped: LPOVERLAPPED, + ) -> BOOL; +} +extern "C" { + pub fn CreateNamedPipeW( + lpName: LPCWSTR, + dwOpenMode: DWORD, + dwPipeMode: DWORD, + nMaxInstances: DWORD, + nOutBufferSize: DWORD, + nInBufferSize: DWORD, + nDefaultTimeOut: DWORD, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + ) -> HANDLE; +} +extern "C" { + pub fn WaitNamedPipeW(lpNamedPipeName: LPCWSTR, nTimeOut: DWORD) -> BOOL; +} +extern "C" { + pub fn GetNamedPipeClientComputerNameW( + Pipe: HANDLE, + ClientComputerName: LPWSTR, + ClientComputerNameLength: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn ImpersonateNamedPipeClient(hNamedPipe: HANDLE) -> BOOL; +} +extern "C" { + pub fn GetNamedPipeInfo( + hNamedPipe: HANDLE, + lpFlags: LPDWORD, + lpOutBufferSize: LPDWORD, + lpInBufferSize: LPDWORD, + lpMaxInstances: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetNamedPipeHandleStateW( + hNamedPipe: HANDLE, + lpState: LPDWORD, + lpCurInstances: LPDWORD, + lpMaxCollectionCount: LPDWORD, + lpCollectDataTimeout: LPDWORD, + lpUserName: LPWSTR, + nMaxUserNameSize: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CallNamedPipeW( + lpNamedPipeName: LPCWSTR, + lpInBuffer: LPVOID, + nInBufferSize: DWORD, + lpOutBuffer: LPVOID, + nOutBufferSize: DWORD, + lpBytesRead: LPDWORD, + nTimeOut: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn QueryPerformanceCounter(lpPerformanceCount: *mut LARGE_INTEGER) -> BOOL; +} +extern "C" { + pub fn QueryPerformanceFrequency(lpFrequency: *mut LARGE_INTEGER) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _HEAP_SUMMARY { + pub cb: DWORD, + pub cbAllocated: SIZE_T, + pub cbCommitted: SIZE_T, + pub cbReserved: SIZE_T, + pub cbMaxReserve: SIZE_T, +} +pub type HEAP_SUMMARY = _HEAP_SUMMARY; +pub type PHEAP_SUMMARY = *mut _HEAP_SUMMARY; +pub type LPHEAP_SUMMARY = PHEAP_SUMMARY; +extern "C" { + pub fn HeapCreate(flOptions: DWORD, dwInitialSize: SIZE_T, dwMaximumSize: SIZE_T) -> HANDLE; +} +extern "C" { + pub fn HeapDestroy(hHeap: HANDLE) -> BOOL; +} +extern "C" { + pub fn HeapAlloc(hHeap: HANDLE, dwFlags: DWORD, dwBytes: SIZE_T) -> LPVOID; +} +extern "C" { + pub fn HeapReAlloc(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPVOID, dwBytes: SIZE_T) -> LPVOID; +} +extern "C" { + pub fn HeapFree(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPVOID) -> BOOL; +} +extern "C" { + pub fn HeapSize(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPCVOID) -> SIZE_T; +} +extern "C" { + pub fn GetProcessHeap() -> HANDLE; +} +extern "C" { + pub fn HeapCompact(hHeap: HANDLE, dwFlags: DWORD) -> SIZE_T; +} +extern "C" { + pub fn HeapSetInformation( + HeapHandle: HANDLE, + HeapInformationClass: HEAP_INFORMATION_CLASS, + HeapInformation: PVOID, + HeapInformationLength: SIZE_T, + ) -> BOOL; +} +extern "C" { + pub fn HeapValidate(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPCVOID) -> BOOL; +} +extern "C" { + pub fn HeapSummary(hHeap: HANDLE, dwFlags: DWORD, lpSummary: LPHEAP_SUMMARY) -> BOOL; +} +extern "C" { + pub fn GetProcessHeaps(NumberOfHeaps: DWORD, ProcessHeaps: PHANDLE) -> DWORD; +} +extern "C" { + pub fn HeapLock(hHeap: HANDLE) -> BOOL; +} +extern "C" { + pub fn HeapUnlock(hHeap: HANDLE) -> BOOL; +} +extern "C" { + pub fn HeapWalk(hHeap: HANDLE, lpEntry: LPPROCESS_HEAP_ENTRY) -> BOOL; +} +extern "C" { + pub fn HeapQueryInformation( + HeapHandle: HANDLE, + HeapInformationClass: HEAP_INFORMATION_CLASS, + HeapInformation: PVOID, + HeapInformationLength: SIZE_T, + ReturnLength: PSIZE_T, + ) -> BOOL; +} +extern "C" { + pub fn CreateIoCompletionPort( + FileHandle: HANDLE, + ExistingCompletionPort: HANDLE, + CompletionKey: ULONG_PTR, + NumberOfConcurrentThreads: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn GetQueuedCompletionStatus( + CompletionPort: HANDLE, + lpNumberOfBytesTransferred: LPDWORD, + lpCompletionKey: PULONG_PTR, + lpOverlapped: *mut LPOVERLAPPED, + dwMilliseconds: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetQueuedCompletionStatusEx( + CompletionPort: HANDLE, + lpCompletionPortEntries: LPOVERLAPPED_ENTRY, + ulCount: ULONG, + ulNumEntriesRemoved: PULONG, + dwMilliseconds: DWORD, + fAlertable: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn PostQueuedCompletionStatus( + CompletionPort: HANDLE, + dwNumberOfBytesTransferred: DWORD, + dwCompletionKey: ULONG_PTR, + lpOverlapped: LPOVERLAPPED, + ) -> BOOL; +} +extern "C" { + pub fn DeviceIoControl( + hDevice: HANDLE, + dwIoControlCode: DWORD, + lpInBuffer: LPVOID, + nInBufferSize: DWORD, + lpOutBuffer: LPVOID, + nOutBufferSize: DWORD, + lpBytesReturned: LPDWORD, + lpOverlapped: LPOVERLAPPED, + ) -> BOOL; +} +extern "C" { + pub fn GetOverlappedResult( + hFile: HANDLE, + lpOverlapped: LPOVERLAPPED, + lpNumberOfBytesTransferred: LPDWORD, + bWait: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn CancelIoEx(hFile: HANDLE, lpOverlapped: LPOVERLAPPED) -> BOOL; +} +extern "C" { + pub fn CancelIo(hFile: HANDLE) -> BOOL; +} +extern "C" { + pub fn GetOverlappedResultEx( + hFile: HANDLE, + lpOverlapped: LPOVERLAPPED, + lpNumberOfBytesTransferred: LPDWORD, + dwMilliseconds: DWORD, + bAlertable: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn CancelSynchronousIo(hThread: HANDLE) -> BOOL; +} +pub type SRWLOCK = RTL_SRWLOCK; +pub type PSRWLOCK = *mut RTL_SRWLOCK; +extern "C" { + pub fn InitializeSRWLock(SRWLock: PSRWLOCK); +} +extern "C" { + pub fn ReleaseSRWLockExclusive(SRWLock: PSRWLOCK); +} +extern "C" { + pub fn ReleaseSRWLockShared(SRWLock: PSRWLOCK); +} +extern "C" { + pub fn AcquireSRWLockExclusive(SRWLock: PSRWLOCK); +} +extern "C" { + pub fn AcquireSRWLockShared(SRWLock: PSRWLOCK); +} +extern "C" { + pub fn TryAcquireSRWLockExclusive(SRWLock: PSRWLOCK) -> BOOLEAN; +} +extern "C" { + pub fn TryAcquireSRWLockShared(SRWLock: PSRWLOCK) -> BOOLEAN; +} +extern "C" { + pub fn InitializeCriticalSection(lpCriticalSection: LPCRITICAL_SECTION); +} +extern "C" { + pub fn EnterCriticalSection(lpCriticalSection: LPCRITICAL_SECTION); +} +extern "C" { + pub fn LeaveCriticalSection(lpCriticalSection: LPCRITICAL_SECTION); +} +extern "C" { + pub fn InitializeCriticalSectionAndSpinCount( + lpCriticalSection: LPCRITICAL_SECTION, + dwSpinCount: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn InitializeCriticalSectionEx( + lpCriticalSection: LPCRITICAL_SECTION, + dwSpinCount: DWORD, + Flags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetCriticalSectionSpinCount( + lpCriticalSection: LPCRITICAL_SECTION, + dwSpinCount: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn TryEnterCriticalSection(lpCriticalSection: LPCRITICAL_SECTION) -> BOOL; +} +extern "C" { + pub fn DeleteCriticalSection(lpCriticalSection: LPCRITICAL_SECTION); +} +pub type INIT_ONCE = RTL_RUN_ONCE; +pub type PINIT_ONCE = PRTL_RUN_ONCE; +pub type LPINIT_ONCE = PRTL_RUN_ONCE; +pub type PINIT_ONCE_FN = ::std::option::Option< + unsafe extern "C" fn(InitOnce: PINIT_ONCE, Parameter: PVOID, Context: *mut PVOID) -> BOOL, +>; +extern "C" { + pub fn InitOnceInitialize(InitOnce: PINIT_ONCE); +} +extern "C" { + pub fn InitOnceExecuteOnce( + InitOnce: PINIT_ONCE, + InitFn: PINIT_ONCE_FN, + Parameter: PVOID, + Context: *mut LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn InitOnceBeginInitialize( + lpInitOnce: LPINIT_ONCE, + dwFlags: DWORD, + fPending: PBOOL, + lpContext: *mut LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn InitOnceComplete(lpInitOnce: LPINIT_ONCE, dwFlags: DWORD, lpContext: LPVOID) -> BOOL; +} +pub type CONDITION_VARIABLE = RTL_CONDITION_VARIABLE; +pub type PCONDITION_VARIABLE = *mut RTL_CONDITION_VARIABLE; +extern "C" { + pub fn InitializeConditionVariable(ConditionVariable: PCONDITION_VARIABLE); +} +extern "C" { + pub fn WakeConditionVariable(ConditionVariable: PCONDITION_VARIABLE); +} +extern "C" { + pub fn WakeAllConditionVariable(ConditionVariable: PCONDITION_VARIABLE); +} +extern "C" { + pub fn SleepConditionVariableCS( + ConditionVariable: PCONDITION_VARIABLE, + CriticalSection: PCRITICAL_SECTION, + dwMilliseconds: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SleepConditionVariableSRW( + ConditionVariable: PCONDITION_VARIABLE, + SRWLock: PSRWLOCK, + dwMilliseconds: DWORD, + Flags: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn SetEvent(hEvent: HANDLE) -> BOOL; +} +extern "C" { + pub fn ResetEvent(hEvent: HANDLE) -> BOOL; +} +extern "C" { + pub fn ReleaseSemaphore( + hSemaphore: HANDLE, + lReleaseCount: LONG, + lpPreviousCount: LPLONG, + ) -> BOOL; +} +extern "C" { + pub fn ReleaseMutex(hMutex: HANDLE) -> BOOL; +} +extern "C" { + pub fn WaitForSingleObject(hHandle: HANDLE, dwMilliseconds: DWORD) -> DWORD; +} +extern "C" { + pub fn SleepEx(dwMilliseconds: DWORD, bAlertable: BOOL) -> DWORD; +} +extern "C" { + pub fn WaitForSingleObjectEx(hHandle: HANDLE, dwMilliseconds: DWORD, bAlertable: BOOL) + -> DWORD; +} +extern "C" { + pub fn WaitForMultipleObjectsEx( + nCount: DWORD, + lpHandles: *const HANDLE, + bWaitAll: BOOL, + dwMilliseconds: DWORD, + bAlertable: BOOL, + ) -> DWORD; +} +extern "C" { + pub fn CreateMutexA( + lpMutexAttributes: LPSECURITY_ATTRIBUTES, + bInitialOwner: BOOL, + lpName: LPCSTR, + ) -> HANDLE; +} +extern "C" { + pub fn CreateMutexW( + lpMutexAttributes: LPSECURITY_ATTRIBUTES, + bInitialOwner: BOOL, + lpName: LPCWSTR, + ) -> HANDLE; +} +extern "C" { + pub fn OpenMutexW(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCWSTR) -> HANDLE; +} +extern "C" { + pub fn CreateEventA( + lpEventAttributes: LPSECURITY_ATTRIBUTES, + bManualReset: BOOL, + bInitialState: BOOL, + lpName: LPCSTR, + ) -> HANDLE; +} +extern "C" { + pub fn CreateEventW( + lpEventAttributes: LPSECURITY_ATTRIBUTES, + bManualReset: BOOL, + bInitialState: BOOL, + lpName: LPCWSTR, + ) -> HANDLE; +} +extern "C" { + pub fn OpenEventA(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCSTR) -> HANDLE; +} +extern "C" { + pub fn OpenEventW(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCWSTR) -> HANDLE; +} +extern "C" { + pub fn OpenSemaphoreW(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCWSTR) -> HANDLE; +} +pub type PTIMERAPCROUTINE = ::std::option::Option< + unsafe extern "C" fn( + lpArgToCompletionRoutine: LPVOID, + dwTimerLowValue: DWORD, + dwTimerHighValue: DWORD, + ), +>; +extern "C" { + pub fn OpenWaitableTimerW( + dwDesiredAccess: DWORD, + bInheritHandle: BOOL, + lpTimerName: LPCWSTR, + ) -> HANDLE; +} +extern "C" { + pub fn SetWaitableTimerEx( + hTimer: HANDLE, + lpDueTime: *const LARGE_INTEGER, + lPeriod: LONG, + pfnCompletionRoutine: PTIMERAPCROUTINE, + lpArgToCompletionRoutine: LPVOID, + WakeContext: PREASON_CONTEXT, + TolerableDelay: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn SetWaitableTimer( + hTimer: HANDLE, + lpDueTime: *const LARGE_INTEGER, + lPeriod: LONG, + pfnCompletionRoutine: PTIMERAPCROUTINE, + lpArgToCompletionRoutine: LPVOID, + fResume: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn CancelWaitableTimer(hTimer: HANDLE) -> BOOL; +} +extern "C" { + pub fn CreateMutexExA( + lpMutexAttributes: LPSECURITY_ATTRIBUTES, + lpName: LPCSTR, + dwFlags: DWORD, + dwDesiredAccess: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn CreateMutexExW( + lpMutexAttributes: LPSECURITY_ATTRIBUTES, + lpName: LPCWSTR, + dwFlags: DWORD, + dwDesiredAccess: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn CreateEventExA( + lpEventAttributes: LPSECURITY_ATTRIBUTES, + lpName: LPCSTR, + dwFlags: DWORD, + dwDesiredAccess: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn CreateEventExW( + lpEventAttributes: LPSECURITY_ATTRIBUTES, + lpName: LPCWSTR, + dwFlags: DWORD, + dwDesiredAccess: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn CreateSemaphoreExW( + lpSemaphoreAttributes: LPSECURITY_ATTRIBUTES, + lInitialCount: LONG, + lMaximumCount: LONG, + lpName: LPCWSTR, + dwFlags: DWORD, + dwDesiredAccess: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn CreateWaitableTimerExW( + lpTimerAttributes: LPSECURITY_ATTRIBUTES, + lpTimerName: LPCWSTR, + dwFlags: DWORD, + dwDesiredAccess: DWORD, + ) -> HANDLE; +} +pub type SYNCHRONIZATION_BARRIER = RTL_BARRIER; +pub type PSYNCHRONIZATION_BARRIER = PRTL_BARRIER; +pub type LPSYNCHRONIZATION_BARRIER = PRTL_BARRIER; +extern "C" { + pub fn EnterSynchronizationBarrier( + lpBarrier: LPSYNCHRONIZATION_BARRIER, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn InitializeSynchronizationBarrier( + lpBarrier: LPSYNCHRONIZATION_BARRIER, + lTotalThreads: LONG, + lSpinCount: LONG, + ) -> BOOL; +} +extern "C" { + pub fn DeleteSynchronizationBarrier(lpBarrier: LPSYNCHRONIZATION_BARRIER) -> BOOL; +} +extern "C" { + pub fn Sleep(dwMilliseconds: DWORD); +} +extern "C" { + pub fn WaitOnAddress( + Address: *mut ::std::os::raw::c_void, + CompareAddress: PVOID, + AddressSize: SIZE_T, + dwMilliseconds: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn WakeByAddressSingle(Address: PVOID); +} +extern "C" { + pub fn WakeByAddressAll(Address: PVOID); +} +extern "C" { + pub fn SignalObjectAndWait( + hObjectToSignal: HANDLE, + hObjectToWaitOn: HANDLE, + dwMilliseconds: DWORD, + bAlertable: BOOL, + ) -> DWORD; +} +extern "C" { + pub fn WaitForMultipleObjects( + nCount: DWORD, + lpHandles: *const HANDLE, + bWaitAll: BOOL, + dwMilliseconds: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn CreateSemaphoreW( + lpSemaphoreAttributes: LPSECURITY_ATTRIBUTES, + lInitialCount: LONG, + lMaximumCount: LONG, + lpName: LPCWSTR, + ) -> HANDLE; +} +extern "C" { + pub fn CreateWaitableTimerW( + lpTimerAttributes: LPSECURITY_ATTRIBUTES, + bManualReset: BOOL, + lpTimerName: LPCWSTR, + ) -> HANDLE; +} +extern "C" { + pub fn InitializeSListHead(ListHead: PSLIST_HEADER); +} +extern "C" { + pub fn InterlockedPopEntrySList(ListHead: PSLIST_HEADER) -> PSLIST_ENTRY; +} +extern "C" { + pub fn InterlockedPushEntrySList( + ListHead: PSLIST_HEADER, + ListEntry: PSLIST_ENTRY, + ) -> PSLIST_ENTRY; +} +extern "C" { + pub fn InterlockedPushListSListEx( + ListHead: PSLIST_HEADER, + List: PSLIST_ENTRY, + ListEnd: PSLIST_ENTRY, + Count: ULONG, + ) -> PSLIST_ENTRY; +} +extern "C" { + pub fn InterlockedFlushSList(ListHead: PSLIST_HEADER) -> PSLIST_ENTRY; +} +extern "C" { + pub fn QueryDepthSList(ListHead: PSLIST_HEADER) -> USHORT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_INFORMATION { + pub hProcess: HANDLE, + pub hThread: HANDLE, + pub dwProcessId: DWORD, + pub dwThreadId: DWORD, +} +pub type PROCESS_INFORMATION = _PROCESS_INFORMATION; +pub type PPROCESS_INFORMATION = *mut _PROCESS_INFORMATION; +pub type LPPROCESS_INFORMATION = *mut _PROCESS_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STARTUPINFOA { + pub cb: DWORD, + pub lpReserved: LPSTR, + pub lpDesktop: LPSTR, + pub lpTitle: LPSTR, + pub dwX: DWORD, + pub dwY: DWORD, + pub dwXSize: DWORD, + pub dwYSize: DWORD, + pub dwXCountChars: DWORD, + pub dwYCountChars: DWORD, + pub dwFillAttribute: DWORD, + pub dwFlags: DWORD, + pub wShowWindow: WORD, + pub cbReserved2: WORD, + pub lpReserved2: LPBYTE, + pub hStdInput: HANDLE, + pub hStdOutput: HANDLE, + pub hStdError: HANDLE, +} +pub type STARTUPINFOA = _STARTUPINFOA; +pub type LPSTARTUPINFOA = *mut _STARTUPINFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STARTUPINFOW { + pub cb: DWORD, + pub lpReserved: LPWSTR, + pub lpDesktop: LPWSTR, + pub lpTitle: LPWSTR, + pub dwX: DWORD, + pub dwY: DWORD, + pub dwXSize: DWORD, + pub dwYSize: DWORD, + pub dwXCountChars: DWORD, + pub dwYCountChars: DWORD, + pub dwFillAttribute: DWORD, + pub dwFlags: DWORD, + pub wShowWindow: WORD, + pub cbReserved2: WORD, + pub lpReserved2: LPBYTE, + pub hStdInput: HANDLE, + pub hStdOutput: HANDLE, + pub hStdError: HANDLE, +} +pub type STARTUPINFOW = _STARTUPINFOW; +pub type LPSTARTUPINFOW = *mut _STARTUPINFOW; +pub type STARTUPINFO = STARTUPINFOA; +pub type LPSTARTUPINFO = LPSTARTUPINFOA; +extern "C" { + pub fn QueueUserAPC(pfnAPC: PAPCFUNC, hThread: HANDLE, dwData: ULONG_PTR) -> DWORD; +} +pub const _QUEUE_USER_APC_FLAGS_QUEUE_USER_APC_FLAGS_NONE: _QUEUE_USER_APC_FLAGS = 0; +pub const _QUEUE_USER_APC_FLAGS_QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC: _QUEUE_USER_APC_FLAGS = 1; +pub const _QUEUE_USER_APC_FLAGS_QUEUE_USER_APC_CALLBACK_DATA_CONTEXT: _QUEUE_USER_APC_FLAGS = 65536; +pub type _QUEUE_USER_APC_FLAGS = ::std::os::raw::c_int; +pub use self::_QUEUE_USER_APC_FLAGS as QUEUE_USER_APC_FLAGS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _APC_CALLBACK_DATA { + pub Parameter: ULONG_PTR, + pub ContextRecord: PCONTEXT, + pub Reserved0: ULONG_PTR, + pub Reserved1: ULONG_PTR, +} +pub type APC_CALLBACK_DATA = _APC_CALLBACK_DATA; +pub type PAPC_CALLBACK_DATA = *mut _APC_CALLBACK_DATA; +extern "C" { + pub fn QueueUserAPC2( + ApcRoutine: PAPCFUNC, + Thread: HANDLE, + Data: ULONG_PTR, + Flags: QUEUE_USER_APC_FLAGS, + ) -> BOOL; +} +extern "C" { + pub fn GetProcessTimes( + hProcess: HANDLE, + lpCreationTime: LPFILETIME, + lpExitTime: LPFILETIME, + lpKernelTime: LPFILETIME, + lpUserTime: LPFILETIME, + ) -> BOOL; +} +extern "C" { + pub fn GetCurrentProcess() -> HANDLE; +} +extern "C" { + pub fn GetCurrentProcessId() -> DWORD; +} +extern "C" { + pub fn ExitProcess(uExitCode: UINT) -> !; +} +extern "C" { + pub fn TerminateProcess(hProcess: HANDLE, uExitCode: UINT) -> BOOL; +} +extern "C" { + pub fn GetExitCodeProcess(hProcess: HANDLE, lpExitCode: LPDWORD) -> BOOL; +} +extern "C" { + pub fn SwitchToThread() -> BOOL; +} +extern "C" { + pub fn CreateThread( + lpThreadAttributes: LPSECURITY_ATTRIBUTES, + dwStackSize: SIZE_T, + lpStartAddress: LPTHREAD_START_ROUTINE, + lpParameter: LPVOID, + dwCreationFlags: DWORD, + lpThreadId: LPDWORD, + ) -> HANDLE; +} +extern "C" { + pub fn CreateRemoteThread( + hProcess: HANDLE, + lpThreadAttributes: LPSECURITY_ATTRIBUTES, + dwStackSize: SIZE_T, + lpStartAddress: LPTHREAD_START_ROUTINE, + lpParameter: LPVOID, + dwCreationFlags: DWORD, + lpThreadId: LPDWORD, + ) -> HANDLE; +} +extern "C" { + pub fn GetCurrentThread() -> HANDLE; +} +extern "C" { + pub fn GetCurrentThreadId() -> DWORD; +} +extern "C" { + pub fn OpenThread(dwDesiredAccess: DWORD, bInheritHandle: BOOL, dwThreadId: DWORD) -> HANDLE; +} +extern "C" { + pub fn SetThreadPriority(hThread: HANDLE, nPriority: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn SetThreadPriorityBoost(hThread: HANDLE, bDisablePriorityBoost: BOOL) -> BOOL; +} +extern "C" { + pub fn GetThreadPriorityBoost(hThread: HANDLE, pDisablePriorityBoost: PBOOL) -> BOOL; +} +extern "C" { + pub fn GetThreadPriority(hThread: HANDLE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ExitThread(dwExitCode: DWORD) -> !; +} +extern "C" { + pub fn TerminateThread(hThread: HANDLE, dwExitCode: DWORD) -> BOOL; +} +extern "C" { + pub fn GetExitCodeThread(hThread: HANDLE, lpExitCode: LPDWORD) -> BOOL; +} +extern "C" { + pub fn SuspendThread(hThread: HANDLE) -> DWORD; +} +extern "C" { + pub fn ResumeThread(hThread: HANDLE) -> DWORD; +} +extern "C" { + pub fn TlsAlloc() -> DWORD; +} +extern "C" { + pub fn TlsGetValue(dwTlsIndex: DWORD) -> LPVOID; +} +extern "C" { + pub fn TlsSetValue(dwTlsIndex: DWORD, lpTlsValue: LPVOID) -> BOOL; +} +extern "C" { + pub fn TlsFree(dwTlsIndex: DWORD) -> BOOL; +} +extern "C" { + pub fn CreateProcessA( + lpApplicationName: LPCSTR, + lpCommandLine: LPSTR, + lpProcessAttributes: LPSECURITY_ATTRIBUTES, + lpThreadAttributes: LPSECURITY_ATTRIBUTES, + bInheritHandles: BOOL, + dwCreationFlags: DWORD, + lpEnvironment: LPVOID, + lpCurrentDirectory: LPCSTR, + lpStartupInfo: LPSTARTUPINFOA, + lpProcessInformation: LPPROCESS_INFORMATION, + ) -> BOOL; +} +extern "C" { + pub fn CreateProcessW( + lpApplicationName: LPCWSTR, + lpCommandLine: LPWSTR, + lpProcessAttributes: LPSECURITY_ATTRIBUTES, + lpThreadAttributes: LPSECURITY_ATTRIBUTES, + bInheritHandles: BOOL, + dwCreationFlags: DWORD, + lpEnvironment: LPVOID, + lpCurrentDirectory: LPCWSTR, + lpStartupInfo: LPSTARTUPINFOW, + lpProcessInformation: LPPROCESS_INFORMATION, + ) -> BOOL; +} +extern "C" { + pub fn SetProcessShutdownParameters(dwLevel: DWORD, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn GetProcessVersion(ProcessId: DWORD) -> DWORD; +} +extern "C" { + pub fn GetStartupInfoW(lpStartupInfo: LPSTARTUPINFOW); +} +extern "C" { + pub fn CreateProcessAsUserW( + hToken: HANDLE, + lpApplicationName: LPCWSTR, + lpCommandLine: LPWSTR, + lpProcessAttributes: LPSECURITY_ATTRIBUTES, + lpThreadAttributes: LPSECURITY_ATTRIBUTES, + bInheritHandles: BOOL, + dwCreationFlags: DWORD, + lpEnvironment: LPVOID, + lpCurrentDirectory: LPCWSTR, + lpStartupInfo: LPSTARTUPINFOW, + lpProcessInformation: LPPROCESS_INFORMATION, + ) -> BOOL; +} +extern "C" { + pub fn SetThreadToken(Thread: PHANDLE, Token: HANDLE) -> BOOL; +} +extern "C" { + pub fn OpenProcessToken( + ProcessHandle: HANDLE, + DesiredAccess: DWORD, + TokenHandle: PHANDLE, + ) -> BOOL; +} +extern "C" { + pub fn OpenThreadToken( + ThreadHandle: HANDLE, + DesiredAccess: DWORD, + OpenAsSelf: BOOL, + TokenHandle: PHANDLE, + ) -> BOOL; +} +extern "C" { + pub fn SetPriorityClass(hProcess: HANDLE, dwPriorityClass: DWORD) -> BOOL; +} +extern "C" { + pub fn GetPriorityClass(hProcess: HANDLE) -> DWORD; +} +extern "C" { + pub fn SetThreadStackGuarantee(StackSizeInBytes: PULONG) -> BOOL; +} +extern "C" { + pub fn ProcessIdToSessionId(dwProcessId: DWORD, pSessionId: *mut DWORD) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROC_THREAD_ATTRIBUTE_LIST { + _unused: [u8; 0], +} +pub type PPROC_THREAD_ATTRIBUTE_LIST = *mut _PROC_THREAD_ATTRIBUTE_LIST; +pub type LPPROC_THREAD_ATTRIBUTE_LIST = *mut _PROC_THREAD_ATTRIBUTE_LIST; +extern "C" { + pub fn GetProcessId(Process: HANDLE) -> DWORD; +} +extern "C" { + pub fn GetThreadId(Thread: HANDLE) -> DWORD; +} +extern "C" { + pub fn FlushProcessWriteBuffers(); +} +extern "C" { + pub fn GetProcessIdOfThread(Thread: HANDLE) -> DWORD; +} +extern "C" { + pub fn InitializeProcThreadAttributeList( + lpAttributeList: LPPROC_THREAD_ATTRIBUTE_LIST, + dwAttributeCount: DWORD, + dwFlags: DWORD, + lpSize: PSIZE_T, + ) -> BOOL; +} +extern "C" { + pub fn DeleteProcThreadAttributeList(lpAttributeList: LPPROC_THREAD_ATTRIBUTE_LIST); +} +extern "C" { + pub fn UpdateProcThreadAttribute( + lpAttributeList: LPPROC_THREAD_ATTRIBUTE_LIST, + dwFlags: DWORD, + Attribute: DWORD_PTR, + lpValue: PVOID, + cbSize: SIZE_T, + lpPreviousValue: PVOID, + lpReturnSize: PSIZE_T, + ) -> BOOL; +} +extern "C" { + pub fn SetProcessDynamicEHContinuationTargets( + Process: HANDLE, + NumberOfTargets: USHORT, + Targets: PPROCESS_DYNAMIC_EH_CONTINUATION_TARGET, + ) -> BOOL; +} +extern "C" { + pub fn SetProcessDynamicEnforcedCetCompatibleRanges( + Process: HANDLE, + NumberOfRanges: USHORT, + Ranges: PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE, + ) -> BOOL; +} +extern "C" { + pub fn SetProcessAffinityUpdateMode(hProcess: HANDLE, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn QueryProcessAffinityUpdateMode(hProcess: HANDLE, lpdwFlags: LPDWORD) -> BOOL; +} +extern "C" { + pub fn CreateRemoteThreadEx( + hProcess: HANDLE, + lpThreadAttributes: LPSECURITY_ATTRIBUTES, + dwStackSize: SIZE_T, + lpStartAddress: LPTHREAD_START_ROUTINE, + lpParameter: LPVOID, + dwCreationFlags: DWORD, + lpAttributeList: LPPROC_THREAD_ATTRIBUTE_LIST, + lpThreadId: LPDWORD, + ) -> HANDLE; +} +extern "C" { + pub fn GetCurrentThreadStackLimits(LowLimit: PULONG_PTR, HighLimit: PULONG_PTR); +} +extern "C" { + pub fn GetThreadContext(hThread: HANDLE, lpContext: LPCONTEXT) -> BOOL; +} +extern "C" { + pub fn GetProcessMitigationPolicy( + hProcess: HANDLE, + MitigationPolicy: PROCESS_MITIGATION_POLICY, + lpBuffer: PVOID, + dwLength: SIZE_T, + ) -> BOOL; +} +extern "C" { + pub fn SetThreadContext(hThread: HANDLE, lpContext: *const CONTEXT) -> BOOL; +} +extern "C" { + pub fn SetProcessMitigationPolicy( + MitigationPolicy: PROCESS_MITIGATION_POLICY, + lpBuffer: PVOID, + dwLength: SIZE_T, + ) -> BOOL; +} +extern "C" { + pub fn FlushInstructionCache(hProcess: HANDLE, lpBaseAddress: LPCVOID, dwSize: SIZE_T) -> BOOL; +} +extern "C" { + pub fn GetThreadTimes( + hThread: HANDLE, + lpCreationTime: LPFILETIME, + lpExitTime: LPFILETIME, + lpKernelTime: LPFILETIME, + lpUserTime: LPFILETIME, + ) -> BOOL; +} +extern "C" { + pub fn OpenProcess(dwDesiredAccess: DWORD, bInheritHandle: BOOL, dwProcessId: DWORD) -> HANDLE; +} +extern "C" { + pub fn IsProcessorFeaturePresent(ProcessorFeature: DWORD) -> BOOL; +} +extern "C" { + pub fn GetProcessHandleCount(hProcess: HANDLE, pdwHandleCount: PDWORD) -> BOOL; +} +extern "C" { + pub fn GetCurrentProcessorNumber() -> DWORD; +} +extern "C" { + pub fn SetThreadIdealProcessorEx( + hThread: HANDLE, + lpIdealProcessor: PPROCESSOR_NUMBER, + lpPreviousIdealProcessor: PPROCESSOR_NUMBER, + ) -> BOOL; +} +extern "C" { + pub fn GetThreadIdealProcessorEx(hThread: HANDLE, lpIdealProcessor: PPROCESSOR_NUMBER) -> BOOL; +} +extern "C" { + pub fn GetCurrentProcessorNumberEx(ProcNumber: PPROCESSOR_NUMBER); +} +extern "C" { + pub fn GetProcessPriorityBoost(hProcess: HANDLE, pDisablePriorityBoost: PBOOL) -> BOOL; +} +extern "C" { + pub fn SetProcessPriorityBoost(hProcess: HANDLE, bDisablePriorityBoost: BOOL) -> BOOL; +} +extern "C" { + pub fn GetThreadIOPendingFlag(hThread: HANDLE, lpIOIsPending: PBOOL) -> BOOL; +} +extern "C" { + pub fn GetSystemTimes( + lpIdleTime: PFILETIME, + lpKernelTime: PFILETIME, + lpUserTime: PFILETIME, + ) -> BOOL; +} +pub const _THREAD_INFORMATION_CLASS_ThreadMemoryPriority: _THREAD_INFORMATION_CLASS = 0; +pub const _THREAD_INFORMATION_CLASS_ThreadAbsoluteCpuPriority: _THREAD_INFORMATION_CLASS = 1; +pub const _THREAD_INFORMATION_CLASS_ThreadDynamicCodePolicy: _THREAD_INFORMATION_CLASS = 2; +pub const _THREAD_INFORMATION_CLASS_ThreadPowerThrottling: _THREAD_INFORMATION_CLASS = 3; +pub const _THREAD_INFORMATION_CLASS_ThreadInformationClassMax: _THREAD_INFORMATION_CLASS = 4; +pub type _THREAD_INFORMATION_CLASS = ::std::os::raw::c_int; +pub use self::_THREAD_INFORMATION_CLASS as THREAD_INFORMATION_CLASS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MEMORY_PRIORITY_INFORMATION { + pub MemoryPriority: ULONG, +} +pub type MEMORY_PRIORITY_INFORMATION = _MEMORY_PRIORITY_INFORMATION; +pub type PMEMORY_PRIORITY_INFORMATION = *mut _MEMORY_PRIORITY_INFORMATION; +extern "C" { + pub fn GetThreadInformation( + hThread: HANDLE, + ThreadInformationClass: THREAD_INFORMATION_CLASS, + ThreadInformation: LPVOID, + ThreadInformationSize: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetThreadInformation( + hThread: HANDLE, + ThreadInformationClass: THREAD_INFORMATION_CLASS, + ThreadInformation: LPVOID, + ThreadInformationSize: DWORD, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _THREAD_POWER_THROTTLING_STATE { + pub Version: ULONG, + pub ControlMask: ULONG, + pub StateMask: ULONG, +} +pub type THREAD_POWER_THROTTLING_STATE = _THREAD_POWER_THROTTLING_STATE; +extern "C" { + pub fn IsProcessCritical(hProcess: HANDLE, Critical: PBOOL) -> BOOL; +} +extern "C" { + pub fn SetProtectedPolicy( + PolicyGuid: LPCGUID, + PolicyValue: ULONG_PTR, + OldPolicyValue: PULONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn QueryProtectedPolicy(PolicyGuid: LPCGUID, PolicyValue: PULONG_PTR) -> BOOL; +} +extern "C" { + pub fn SetThreadIdealProcessor(hThread: HANDLE, dwIdealProcessor: DWORD) -> DWORD; +} +pub const _PROCESS_INFORMATION_CLASS_ProcessMemoryPriority: _PROCESS_INFORMATION_CLASS = 0; +pub const _PROCESS_INFORMATION_CLASS_ProcessMemoryExhaustionInfo: _PROCESS_INFORMATION_CLASS = 1; +pub const _PROCESS_INFORMATION_CLASS_ProcessAppMemoryInfo: _PROCESS_INFORMATION_CLASS = 2; +pub const _PROCESS_INFORMATION_CLASS_ProcessInPrivateInfo: _PROCESS_INFORMATION_CLASS = 3; +pub const _PROCESS_INFORMATION_CLASS_ProcessPowerThrottling: _PROCESS_INFORMATION_CLASS = 4; +pub const _PROCESS_INFORMATION_CLASS_ProcessReservedValue1: _PROCESS_INFORMATION_CLASS = 5; +pub const _PROCESS_INFORMATION_CLASS_ProcessTelemetryCoverageInfo: _PROCESS_INFORMATION_CLASS = 6; +pub const _PROCESS_INFORMATION_CLASS_ProcessProtectionLevelInfo: _PROCESS_INFORMATION_CLASS = 7; +pub const _PROCESS_INFORMATION_CLASS_ProcessLeapSecondInfo: _PROCESS_INFORMATION_CLASS = 8; +pub const _PROCESS_INFORMATION_CLASS_ProcessMachineTypeInfo: _PROCESS_INFORMATION_CLASS = 9; +pub const _PROCESS_INFORMATION_CLASS_ProcessInformationClassMax: _PROCESS_INFORMATION_CLASS = 10; +pub type _PROCESS_INFORMATION_CLASS = ::std::os::raw::c_int; +pub use self::_PROCESS_INFORMATION_CLASS as PROCESS_INFORMATION_CLASS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _APP_MEMORY_INFORMATION { + pub AvailableCommit: ULONG64, + pub PrivateCommitUsage: ULONG64, + pub PeakPrivateCommitUsage: ULONG64, + pub TotalCommitUsage: ULONG64, +} +pub type APP_MEMORY_INFORMATION = _APP_MEMORY_INFORMATION; +pub type PAPP_MEMORY_INFORMATION = *mut _APP_MEMORY_INFORMATION; +pub const _MACHINE_ATTRIBUTES_UserEnabled: _MACHINE_ATTRIBUTES = 1; +pub const _MACHINE_ATTRIBUTES_KernelEnabled: _MACHINE_ATTRIBUTES = 2; +pub const _MACHINE_ATTRIBUTES_Wow64Container: _MACHINE_ATTRIBUTES = 4; +pub type _MACHINE_ATTRIBUTES = ::std::os::raw::c_int; +pub use self::_MACHINE_ATTRIBUTES as MACHINE_ATTRIBUTES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MACHINE_INFORMATION { + pub ProcessMachine: USHORT, + pub Res0: USHORT, + pub MachineAttributes: MACHINE_ATTRIBUTES, +} +pub type PROCESS_MACHINE_INFORMATION = _PROCESS_MACHINE_INFORMATION; +pub const _PROCESS_MEMORY_EXHAUSTION_TYPE_PMETypeFailFastOnCommitFailure: + _PROCESS_MEMORY_EXHAUSTION_TYPE = 0; +pub const _PROCESS_MEMORY_EXHAUSTION_TYPE_PMETypeMax: _PROCESS_MEMORY_EXHAUSTION_TYPE = 1; +pub type _PROCESS_MEMORY_EXHAUSTION_TYPE = ::std::os::raw::c_int; +pub use self::_PROCESS_MEMORY_EXHAUSTION_TYPE as PROCESS_MEMORY_EXHAUSTION_TYPE; +pub type PPROCESS_MEMORY_EXHAUSTION_TYPE = *mut _PROCESS_MEMORY_EXHAUSTION_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_MEMORY_EXHAUSTION_INFO { + pub Version: USHORT, + pub Reserved: USHORT, + pub Type: PROCESS_MEMORY_EXHAUSTION_TYPE, + pub Value: ULONG_PTR, +} +pub type PROCESS_MEMORY_EXHAUSTION_INFO = _PROCESS_MEMORY_EXHAUSTION_INFO; +pub type PPROCESS_MEMORY_EXHAUSTION_INFO = *mut _PROCESS_MEMORY_EXHAUSTION_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_POWER_THROTTLING_STATE { + pub Version: ULONG, + pub ControlMask: ULONG, + pub StateMask: ULONG, +} +pub type PROCESS_POWER_THROTTLING_STATE = _PROCESS_POWER_THROTTLING_STATE; +pub type PPROCESS_POWER_THROTTLING_STATE = *mut _PROCESS_POWER_THROTTLING_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PROCESS_PROTECTION_LEVEL_INFORMATION { + pub ProtectionLevel: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROCESS_LEAP_SECOND_INFO { + pub Flags: ULONG, + pub Reserved: ULONG, +} +pub type PROCESS_LEAP_SECOND_INFO = _PROCESS_LEAP_SECOND_INFO; +pub type PPROCESS_LEAP_SECOND_INFO = *mut _PROCESS_LEAP_SECOND_INFO; +extern "C" { + pub fn SetProcessInformation( + hProcess: HANDLE, + ProcessInformationClass: PROCESS_INFORMATION_CLASS, + ProcessInformation: LPVOID, + ProcessInformationSize: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetProcessInformation( + hProcess: HANDLE, + ProcessInformationClass: PROCESS_INFORMATION_CLASS, + ProcessInformation: LPVOID, + ProcessInformationSize: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetSystemCpuSetInformation( + Information: PSYSTEM_CPU_SET_INFORMATION, + BufferLength: ULONG, + ReturnedLength: PULONG, + Process: HANDLE, + Flags: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn GetProcessDefaultCpuSets( + Process: HANDLE, + CpuSetIds: PULONG, + CpuSetIdCount: ULONG, + RequiredIdCount: PULONG, + ) -> BOOL; +} +extern "C" { + pub fn SetProcessDefaultCpuSets( + Process: HANDLE, + CpuSetIds: *const ULONG, + CpuSetIdCount: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn GetThreadSelectedCpuSets( + Thread: HANDLE, + CpuSetIds: PULONG, + CpuSetIdCount: ULONG, + RequiredIdCount: PULONG, + ) -> BOOL; +} +extern "C" { + pub fn SetThreadSelectedCpuSets( + Thread: HANDLE, + CpuSetIds: *const ULONG, + CpuSetIdCount: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn CreateProcessAsUserA( + hToken: HANDLE, + lpApplicationName: LPCSTR, + lpCommandLine: LPSTR, + lpProcessAttributes: LPSECURITY_ATTRIBUTES, + lpThreadAttributes: LPSECURITY_ATTRIBUTES, + bInheritHandles: BOOL, + dwCreationFlags: DWORD, + lpEnvironment: LPVOID, + lpCurrentDirectory: LPCSTR, + lpStartupInfo: LPSTARTUPINFOA, + lpProcessInformation: LPPROCESS_INFORMATION, + ) -> BOOL; +} +extern "C" { + pub fn GetProcessShutdownParameters(lpdwLevel: LPDWORD, lpdwFlags: LPDWORD) -> BOOL; +} +extern "C" { + pub fn GetProcessDefaultCpuSetMasks( + Process: HANDLE, + CpuSetMasks: PGROUP_AFFINITY, + CpuSetMaskCount: USHORT, + RequiredMaskCount: PUSHORT, + ) -> BOOL; +} +extern "C" { + pub fn SetProcessDefaultCpuSetMasks( + Process: HANDLE, + CpuSetMasks: PGROUP_AFFINITY, + CpuSetMaskCount: USHORT, + ) -> BOOL; +} +extern "C" { + pub fn GetThreadSelectedCpuSetMasks( + Thread: HANDLE, + CpuSetMasks: PGROUP_AFFINITY, + CpuSetMaskCount: USHORT, + RequiredMaskCount: PUSHORT, + ) -> BOOL; +} +extern "C" { + pub fn SetThreadSelectedCpuSetMasks( + Thread: HANDLE, + CpuSetMasks: PGROUP_AFFINITY, + CpuSetMaskCount: USHORT, + ) -> BOOL; +} +extern "C" { + pub fn GetMachineTypeAttributes( + Machine: USHORT, + MachineTypeAttributes: *mut MACHINE_ATTRIBUTES, + ) -> HRESULT; +} +extern "C" { + pub fn SetThreadDescription(hThread: HANDLE, lpThreadDescription: PCWSTR) -> HRESULT; +} +extern "C" { + pub fn GetThreadDescription(hThread: HANDLE, ppszThreadDescription: *mut PWSTR) -> HRESULT; +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _SYSTEM_INFO { + pub __bindgen_anon_1: _SYSTEM_INFO__bindgen_ty_1, + pub dwPageSize: DWORD, + pub lpMinimumApplicationAddress: LPVOID, + pub lpMaximumApplicationAddress: LPVOID, + pub dwActiveProcessorMask: DWORD_PTR, + pub dwNumberOfProcessors: DWORD, + pub dwProcessorType: DWORD, + pub dwAllocationGranularity: DWORD, + pub wProcessorLevel: WORD, + pub wProcessorRevision: WORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SYSTEM_INFO__bindgen_ty_1 { + pub dwOemId: DWORD, + pub __bindgen_anon_1: _SYSTEM_INFO__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_INFO__bindgen_ty_1__bindgen_ty_1 { + pub wProcessorArchitecture: WORD, + pub wReserved: WORD, +} +pub type SYSTEM_INFO = _SYSTEM_INFO; +pub type LPSYSTEM_INFO = *mut _SYSTEM_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MEMORYSTATUSEX { + pub dwLength: DWORD, + pub dwMemoryLoad: DWORD, + pub ullTotalPhys: DWORDLONG, + pub ullAvailPhys: DWORDLONG, + pub ullTotalPageFile: DWORDLONG, + pub ullAvailPageFile: DWORDLONG, + pub ullTotalVirtual: DWORDLONG, + pub ullAvailVirtual: DWORDLONG, + pub ullAvailExtendedVirtual: DWORDLONG, +} +pub type MEMORYSTATUSEX = _MEMORYSTATUSEX; +pub type LPMEMORYSTATUSEX = *mut _MEMORYSTATUSEX; +extern "C" { + pub fn GlobalMemoryStatusEx(lpBuffer: LPMEMORYSTATUSEX) -> BOOL; +} +extern "C" { + pub fn GetSystemInfo(lpSystemInfo: LPSYSTEM_INFO); +} +extern "C" { + pub fn GetSystemTime(lpSystemTime: LPSYSTEMTIME); +} +extern "C" { + pub fn GetSystemTimeAsFileTime(lpSystemTimeAsFileTime: LPFILETIME); +} +extern "C" { + pub fn GetLocalTime(lpSystemTime: LPSYSTEMTIME); +} +extern "C" { + pub fn IsUserCetAvailableInEnvironment(UserCetEnvironment: DWORD) -> BOOL; +} +extern "C" { + pub fn GetSystemLeapSecondInformation(Enabled: PBOOL, Flags: PDWORD) -> BOOL; +} +extern "C" { + pub fn GetVersion() -> DWORD; +} +extern "C" { + pub fn SetLocalTime(lpSystemTime: *const SYSTEMTIME) -> BOOL; +} +extern "C" { + pub fn GetTickCount() -> DWORD; +} +extern "C" { + pub fn GetTickCount64() -> ULONGLONG; +} +extern "C" { + pub fn GetSystemTimeAdjustment( + lpTimeAdjustment: PDWORD, + lpTimeIncrement: PDWORD, + lpTimeAdjustmentDisabled: PBOOL, + ) -> BOOL; +} +extern "C" { + pub fn GetSystemTimeAdjustmentPrecise( + lpTimeAdjustment: PDWORD64, + lpTimeIncrement: PDWORD64, + lpTimeAdjustmentDisabled: PBOOL, + ) -> BOOL; +} +extern "C" { + pub fn GetSystemDirectoryA(lpBuffer: LPSTR, uSize: UINT) -> UINT; +} +extern "C" { + pub fn GetSystemDirectoryW(lpBuffer: LPWSTR, uSize: UINT) -> UINT; +} +extern "C" { + pub fn GetWindowsDirectoryA(lpBuffer: LPSTR, uSize: UINT) -> UINT; +} +extern "C" { + pub fn GetWindowsDirectoryW(lpBuffer: LPWSTR, uSize: UINT) -> UINT; +} +extern "C" { + pub fn GetSystemWindowsDirectoryA(lpBuffer: LPSTR, uSize: UINT) -> UINT; +} +extern "C" { + pub fn GetSystemWindowsDirectoryW(lpBuffer: LPWSTR, uSize: UINT) -> UINT; +} +pub const _COMPUTER_NAME_FORMAT_ComputerNameNetBIOS: _COMPUTER_NAME_FORMAT = 0; +pub const _COMPUTER_NAME_FORMAT_ComputerNameDnsHostname: _COMPUTER_NAME_FORMAT = 1; +pub const _COMPUTER_NAME_FORMAT_ComputerNameDnsDomain: _COMPUTER_NAME_FORMAT = 2; +pub const _COMPUTER_NAME_FORMAT_ComputerNameDnsFullyQualified: _COMPUTER_NAME_FORMAT = 3; +pub const _COMPUTER_NAME_FORMAT_ComputerNamePhysicalNetBIOS: _COMPUTER_NAME_FORMAT = 4; +pub const _COMPUTER_NAME_FORMAT_ComputerNamePhysicalDnsHostname: _COMPUTER_NAME_FORMAT = 5; +pub const _COMPUTER_NAME_FORMAT_ComputerNamePhysicalDnsDomain: _COMPUTER_NAME_FORMAT = 6; +pub const _COMPUTER_NAME_FORMAT_ComputerNamePhysicalDnsFullyQualified: _COMPUTER_NAME_FORMAT = 7; +pub const _COMPUTER_NAME_FORMAT_ComputerNameMax: _COMPUTER_NAME_FORMAT = 8; +pub type _COMPUTER_NAME_FORMAT = ::std::os::raw::c_int; +pub use self::_COMPUTER_NAME_FORMAT as COMPUTER_NAME_FORMAT; +extern "C" { + pub fn GetComputerNameExA( + NameType: COMPUTER_NAME_FORMAT, + lpBuffer: LPSTR, + nSize: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetComputerNameExW( + NameType: COMPUTER_NAME_FORMAT, + lpBuffer: LPWSTR, + nSize: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetComputerNameExW(NameType: COMPUTER_NAME_FORMAT, lpBuffer: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn SetSystemTime(lpSystemTime: *const SYSTEMTIME) -> BOOL; +} +extern "C" { + pub fn GetVersionExA(lpVersionInformation: LPOSVERSIONINFOA) -> BOOL; +} +extern "C" { + pub fn GetVersionExW(lpVersionInformation: LPOSVERSIONINFOW) -> BOOL; +} +extern "C" { + pub fn GetLogicalProcessorInformation( + Buffer: PSYSTEM_LOGICAL_PROCESSOR_INFORMATION, + ReturnedLength: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetLogicalProcessorInformationEx( + RelationshipType: LOGICAL_PROCESSOR_RELATIONSHIP, + Buffer: PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, + ReturnedLength: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetNativeSystemInfo(lpSystemInfo: LPSYSTEM_INFO); +} +extern "C" { + pub fn GetSystemTimePreciseAsFileTime(lpSystemTimeAsFileTime: LPFILETIME); +} +extern "C" { + pub fn GetProductInfo( + dwOSMajorVersion: DWORD, + dwOSMinorVersion: DWORD, + dwSpMajorVersion: DWORD, + dwSpMinorVersion: DWORD, + pdwReturnedProductType: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetOsSafeBootMode(Flags: PDWORD) -> BOOL; +} +extern "C" { + pub fn EnumSystemFirmwareTables( + FirmwareTableProviderSignature: DWORD, + pFirmwareTableEnumBuffer: PVOID, + BufferSize: DWORD, + ) -> UINT; +} +extern "C" { + pub fn GetSystemFirmwareTable( + FirmwareTableProviderSignature: DWORD, + FirmwareTableID: DWORD, + pFirmwareTableBuffer: PVOID, + BufferSize: DWORD, + ) -> UINT; +} +extern "C" { + pub fn DnsHostnameToComputerNameExW( + Hostname: LPCWSTR, + ComputerName: LPWSTR, + nSize: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetPhysicallyInstalledSystemMemory(TotalMemoryInKilobytes: PULONGLONG) -> BOOL; +} +extern "C" { + pub fn SetComputerNameEx2W( + NameType: COMPUTER_NAME_FORMAT, + Flags: DWORD, + lpBuffer: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn SetSystemTimeAdjustment(dwTimeAdjustment: DWORD, bTimeAdjustmentDisabled: BOOL) -> BOOL; +} +extern "C" { + pub fn SetSystemTimeAdjustmentPrecise( + dwTimeAdjustment: DWORD64, + bTimeAdjustmentDisabled: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn InstallELAMCertificateInfo(ELAMFile: HANDLE) -> BOOL; +} +extern "C" { + pub fn GetProcessorSystemCycleTime( + Group: USHORT, + Buffer: PSYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION, + ReturnedLength: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetOsManufacturingMode(pbEnabled: PBOOL) -> BOOL; +} +extern "C" { + pub fn GetIntegratedDisplaySize(sizeInInches: *mut f64) -> HRESULT; +} +extern "C" { + pub fn SetComputerNameA(lpComputerName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn SetComputerNameW(lpComputerName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn SetComputerNameExA(NameType: COMPUTER_NAME_FORMAT, lpBuffer: LPCSTR) -> BOOL; +} +extern "C" { + pub fn VirtualAlloc( + lpAddress: LPVOID, + dwSize: SIZE_T, + flAllocationType: DWORD, + flProtect: DWORD, + ) -> LPVOID; +} +extern "C" { + pub fn VirtualProtect( + lpAddress: LPVOID, + dwSize: SIZE_T, + flNewProtect: DWORD, + lpflOldProtect: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn VirtualFree(lpAddress: LPVOID, dwSize: SIZE_T, dwFreeType: DWORD) -> BOOL; +} +extern "C" { + pub fn VirtualQuery( + lpAddress: LPCVOID, + lpBuffer: PMEMORY_BASIC_INFORMATION, + dwLength: SIZE_T, + ) -> SIZE_T; +} +extern "C" { + pub fn VirtualAllocEx( + hProcess: HANDLE, + lpAddress: LPVOID, + dwSize: SIZE_T, + flAllocationType: DWORD, + flProtect: DWORD, + ) -> LPVOID; +} +extern "C" { + pub fn VirtualProtectEx( + hProcess: HANDLE, + lpAddress: LPVOID, + dwSize: SIZE_T, + flNewProtect: DWORD, + lpflOldProtect: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn VirtualQueryEx( + hProcess: HANDLE, + lpAddress: LPCVOID, + lpBuffer: PMEMORY_BASIC_INFORMATION, + dwLength: SIZE_T, + ) -> SIZE_T; +} +extern "C" { + pub fn ReadProcessMemory( + hProcess: HANDLE, + lpBaseAddress: LPCVOID, + lpBuffer: LPVOID, + nSize: SIZE_T, + lpNumberOfBytesRead: *mut SIZE_T, + ) -> BOOL; +} +extern "C" { + pub fn WriteProcessMemory( + hProcess: HANDLE, + lpBaseAddress: LPVOID, + lpBuffer: LPCVOID, + nSize: SIZE_T, + lpNumberOfBytesWritten: *mut SIZE_T, + ) -> BOOL; +} +extern "C" { + pub fn CreateFileMappingW( + hFile: HANDLE, + lpFileMappingAttributes: LPSECURITY_ATTRIBUTES, + flProtect: DWORD, + dwMaximumSizeHigh: DWORD, + dwMaximumSizeLow: DWORD, + lpName: LPCWSTR, + ) -> HANDLE; +} +extern "C" { + pub fn OpenFileMappingW( + dwDesiredAccess: DWORD, + bInheritHandle: BOOL, + lpName: LPCWSTR, + ) -> HANDLE; +} +extern "C" { + pub fn MapViewOfFile( + hFileMappingObject: HANDLE, + dwDesiredAccess: DWORD, + dwFileOffsetHigh: DWORD, + dwFileOffsetLow: DWORD, + dwNumberOfBytesToMap: SIZE_T, + ) -> LPVOID; +} +extern "C" { + pub fn MapViewOfFileEx( + hFileMappingObject: HANDLE, + dwDesiredAccess: DWORD, + dwFileOffsetHigh: DWORD, + dwFileOffsetLow: DWORD, + dwNumberOfBytesToMap: SIZE_T, + lpBaseAddress: LPVOID, + ) -> LPVOID; +} +extern "C" { + pub fn VirtualFreeEx( + hProcess: HANDLE, + lpAddress: LPVOID, + dwSize: SIZE_T, + dwFreeType: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn FlushViewOfFile(lpBaseAddress: LPCVOID, dwNumberOfBytesToFlush: SIZE_T) -> BOOL; +} +extern "C" { + pub fn UnmapViewOfFile(lpBaseAddress: LPCVOID) -> BOOL; +} +extern "C" { + pub fn GetLargePageMinimum() -> SIZE_T; +} +extern "C" { + pub fn GetProcessWorkingSetSize( + hProcess: HANDLE, + lpMinimumWorkingSetSize: PSIZE_T, + lpMaximumWorkingSetSize: PSIZE_T, + ) -> BOOL; +} +extern "C" { + pub fn GetProcessWorkingSetSizeEx( + hProcess: HANDLE, + lpMinimumWorkingSetSize: PSIZE_T, + lpMaximumWorkingSetSize: PSIZE_T, + Flags: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetProcessWorkingSetSize( + hProcess: HANDLE, + dwMinimumWorkingSetSize: SIZE_T, + dwMaximumWorkingSetSize: SIZE_T, + ) -> BOOL; +} +extern "C" { + pub fn SetProcessWorkingSetSizeEx( + hProcess: HANDLE, + dwMinimumWorkingSetSize: SIZE_T, + dwMaximumWorkingSetSize: SIZE_T, + Flags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn VirtualLock(lpAddress: LPVOID, dwSize: SIZE_T) -> BOOL; +} +extern "C" { + pub fn VirtualUnlock(lpAddress: LPVOID, dwSize: SIZE_T) -> BOOL; +} +extern "C" { + pub fn GetWriteWatch( + dwFlags: DWORD, + lpBaseAddress: PVOID, + dwRegionSize: SIZE_T, + lpAddresses: *mut PVOID, + lpdwCount: *mut ULONG_PTR, + lpdwGranularity: LPDWORD, + ) -> UINT; +} +extern "C" { + pub fn ResetWriteWatch(lpBaseAddress: LPVOID, dwRegionSize: SIZE_T) -> UINT; +} +pub const _MEMORY_RESOURCE_NOTIFICATION_TYPE_LowMemoryResourceNotification: + _MEMORY_RESOURCE_NOTIFICATION_TYPE = 0; +pub const _MEMORY_RESOURCE_NOTIFICATION_TYPE_HighMemoryResourceNotification: + _MEMORY_RESOURCE_NOTIFICATION_TYPE = 1; +pub type _MEMORY_RESOURCE_NOTIFICATION_TYPE = ::std::os::raw::c_int; +pub use self::_MEMORY_RESOURCE_NOTIFICATION_TYPE as MEMORY_RESOURCE_NOTIFICATION_TYPE; +extern "C" { + pub fn CreateMemoryResourceNotification( + NotificationType: MEMORY_RESOURCE_NOTIFICATION_TYPE, + ) -> HANDLE; +} +extern "C" { + pub fn QueryMemoryResourceNotification( + ResourceNotificationHandle: HANDLE, + ResourceState: PBOOL, + ) -> BOOL; +} +extern "C" { + pub fn GetSystemFileCacheSize( + lpMinimumFileCacheSize: PSIZE_T, + lpMaximumFileCacheSize: PSIZE_T, + lpFlags: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetSystemFileCacheSize( + MinimumFileCacheSize: SIZE_T, + MaximumFileCacheSize: SIZE_T, + Flags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CreateFileMappingNumaW( + hFile: HANDLE, + lpFileMappingAttributes: LPSECURITY_ATTRIBUTES, + flProtect: DWORD, + dwMaximumSizeHigh: DWORD, + dwMaximumSizeLow: DWORD, + lpName: LPCWSTR, + nndPreferred: DWORD, + ) -> HANDLE; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WIN32_MEMORY_RANGE_ENTRY { + pub VirtualAddress: PVOID, + pub NumberOfBytes: SIZE_T, +} +pub type WIN32_MEMORY_RANGE_ENTRY = _WIN32_MEMORY_RANGE_ENTRY; +pub type PWIN32_MEMORY_RANGE_ENTRY = *mut _WIN32_MEMORY_RANGE_ENTRY; +extern "C" { + pub fn PrefetchVirtualMemory( + hProcess: HANDLE, + NumberOfEntries: ULONG_PTR, + VirtualAddresses: PWIN32_MEMORY_RANGE_ENTRY, + Flags: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn CreateFileMappingFromApp( + hFile: HANDLE, + SecurityAttributes: PSECURITY_ATTRIBUTES, + PageProtection: ULONG, + MaximumSize: ULONG64, + Name: PCWSTR, + ) -> HANDLE; +} +extern "C" { + pub fn MapViewOfFileFromApp( + hFileMappingObject: HANDLE, + DesiredAccess: ULONG, + FileOffset: ULONG64, + NumberOfBytesToMap: SIZE_T, + ) -> PVOID; +} +extern "C" { + pub fn UnmapViewOfFileEx(BaseAddress: PVOID, UnmapFlags: ULONG) -> BOOL; +} +extern "C" { + pub fn AllocateUserPhysicalPages( + hProcess: HANDLE, + NumberOfPages: PULONG_PTR, + PageArray: PULONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn FreeUserPhysicalPages( + hProcess: HANDLE, + NumberOfPages: PULONG_PTR, + PageArray: PULONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn MapUserPhysicalPages( + VirtualAddress: PVOID, + NumberOfPages: ULONG_PTR, + PageArray: PULONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn AllocateUserPhysicalPagesNuma( + hProcess: HANDLE, + NumberOfPages: PULONG_PTR, + PageArray: PULONG_PTR, + nndPreferred: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn VirtualAllocExNuma( + hProcess: HANDLE, + lpAddress: LPVOID, + dwSize: SIZE_T, + flAllocationType: DWORD, + flProtect: DWORD, + nndPreferred: DWORD, + ) -> LPVOID; +} +extern "C" { + pub fn GetMemoryErrorHandlingCapabilities(Capabilities: PULONG) -> BOOL; +} +pub type PBAD_MEMORY_CALLBACK_ROUTINE = ::std::option::Option; +extern "C" { + pub fn RegisterBadMemoryNotification(Callback: PBAD_MEMORY_CALLBACK_ROUTINE) -> PVOID; +} +extern "C" { + pub fn UnregisterBadMemoryNotification(RegistrationHandle: PVOID) -> BOOL; +} +pub const OFFER_PRIORITY_VmOfferPriorityVeryLow: OFFER_PRIORITY = 1; +pub const OFFER_PRIORITY_VmOfferPriorityLow: OFFER_PRIORITY = 2; +pub const OFFER_PRIORITY_VmOfferPriorityBelowNormal: OFFER_PRIORITY = 3; +pub const OFFER_PRIORITY_VmOfferPriorityNormal: OFFER_PRIORITY = 4; +pub type OFFER_PRIORITY = ::std::os::raw::c_int; +extern "C" { + pub fn OfferVirtualMemory( + VirtualAddress: PVOID, + Size: SIZE_T, + Priority: OFFER_PRIORITY, + ) -> DWORD; +} +extern "C" { + pub fn ReclaimVirtualMemory( + VirtualAddress: *const ::std::os::raw::c_void, + Size: SIZE_T, + ) -> DWORD; +} +extern "C" { + pub fn DiscardVirtualMemory(VirtualAddress: PVOID, Size: SIZE_T) -> DWORD; +} +extern "C" { + pub fn SetProcessValidCallTargets( + hProcess: HANDLE, + VirtualAddress: PVOID, + RegionSize: SIZE_T, + NumberOfOffsets: ULONG, + OffsetInformation: PCFG_CALL_TARGET_INFO, + ) -> BOOL; +} +extern "C" { + pub fn SetProcessValidCallTargetsForMappedView( + Process: HANDLE, + VirtualAddress: PVOID, + RegionSize: SIZE_T, + NumberOfOffsets: ULONG, + OffsetInformation: PCFG_CALL_TARGET_INFO, + Section: HANDLE, + ExpectedFileOffset: ULONG64, + ) -> BOOL; +} +extern "C" { + pub fn VirtualAllocFromApp( + BaseAddress: PVOID, + Size: SIZE_T, + AllocationType: ULONG, + Protection: ULONG, + ) -> PVOID; +} +extern "C" { + pub fn VirtualProtectFromApp( + Address: PVOID, + Size: SIZE_T, + NewProtection: ULONG, + OldProtection: PULONG, + ) -> BOOL; +} +extern "C" { + pub fn OpenFileMappingFromApp( + DesiredAccess: ULONG, + InheritHandle: BOOL, + Name: PCWSTR, + ) -> HANDLE; +} +pub const WIN32_MEMORY_INFORMATION_CLASS_MemoryRegionInfo: WIN32_MEMORY_INFORMATION_CLASS = 0; +pub type WIN32_MEMORY_INFORMATION_CLASS = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct WIN32_MEMORY_REGION_INFORMATION { + pub AllocationBase: PVOID, + pub AllocationProtect: ULONG, + pub __bindgen_anon_1: WIN32_MEMORY_REGION_INFORMATION__bindgen_ty_1, + pub RegionSize: SIZE_T, + pub CommitSize: SIZE_T, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union WIN32_MEMORY_REGION_INFORMATION__bindgen_ty_1 { + pub Flags: ULONG, + pub __bindgen_anon_1: WIN32_MEMORY_REGION_INFORMATION__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct WIN32_MEMORY_REGION_INFORMATION__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl WIN32_MEMORY_REGION_INFORMATION__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn Private(&self) -> ULONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_Private(&mut self, val: ULONG) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn MappedDataFile(&self) -> ULONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_MappedDataFile(&mut self, val: ULONG) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn MappedImage(&self) -> ULONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_MappedImage(&mut self, val: ULONG) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn MappedPageFile(&self) -> ULONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_MappedPageFile(&mut self, val: ULONG) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn MappedPhysical(&self) -> ULONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } + } + #[inline] + pub fn set_MappedPhysical(&mut self, val: ULONG) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn DirectMapped(&self) -> ULONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } + } + #[inline] + pub fn set_DirectMapped(&mut self, val: ULONG) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> ULONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 26u8) as u32) } + } + #[inline] + pub fn set_Reserved(&mut self, val: ULONG) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(6usize, 26u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + Private: ULONG, + MappedDataFile: ULONG, + MappedImage: ULONG, + MappedPageFile: ULONG, + MappedPhysical: ULONG, + DirectMapped: ULONG, + Reserved: ULONG, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let Private: u32 = unsafe { ::std::mem::transmute(Private) }; + Private as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let MappedDataFile: u32 = unsafe { ::std::mem::transmute(MappedDataFile) }; + MappedDataFile as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let MappedImage: u32 = unsafe { ::std::mem::transmute(MappedImage) }; + MappedImage as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let MappedPageFile: u32 = unsafe { ::std::mem::transmute(MappedPageFile) }; + MappedPageFile as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let MappedPhysical: u32 = unsafe { ::std::mem::transmute(MappedPhysical) }; + MappedPhysical as u64 + }); + __bindgen_bitfield_unit.set(5usize, 1u8, { + let DirectMapped: u32 = unsafe { ::std::mem::transmute(DirectMapped) }; + DirectMapped as u64 + }); + __bindgen_bitfield_unit.set(6usize, 26u8, { + let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +extern "C" { + pub fn QueryVirtualMemoryInformation( + Process: HANDLE, + VirtualAddress: *const ::std::os::raw::c_void, + MemoryInformationClass: WIN32_MEMORY_INFORMATION_CLASS, + MemoryInformation: PVOID, + MemoryInformationSize: SIZE_T, + ReturnSize: PSIZE_T, + ) -> BOOL; +} +extern "C" { + pub fn MapViewOfFileNuma2( + FileMappingHandle: HANDLE, + ProcessHandle: HANDLE, + Offset: ULONG64, + BaseAddress: PVOID, + ViewSize: SIZE_T, + AllocationType: ULONG, + PageProtection: ULONG, + PreferredNode: ULONG, + ) -> PVOID; +} +extern "C" { + pub fn UnmapViewOfFile2(Process: HANDLE, BaseAddress: PVOID, UnmapFlags: ULONG) -> BOOL; +} +extern "C" { + pub fn VirtualUnlockEx(Process: HANDLE, Address: LPVOID, Size: SIZE_T) -> BOOL; +} +extern "C" { + pub fn VirtualAlloc2( + Process: HANDLE, + BaseAddress: PVOID, + Size: SIZE_T, + AllocationType: ULONG, + PageProtection: ULONG, + ExtendedParameters: *mut MEM_EXTENDED_PARAMETER, + ParameterCount: ULONG, + ) -> PVOID; +} +extern "C" { + pub fn MapViewOfFile3( + FileMapping: HANDLE, + Process: HANDLE, + BaseAddress: PVOID, + Offset: ULONG64, + ViewSize: SIZE_T, + AllocationType: ULONG, + PageProtection: ULONG, + ExtendedParameters: *mut MEM_EXTENDED_PARAMETER, + ParameterCount: ULONG, + ) -> PVOID; +} +extern "C" { + pub fn VirtualAlloc2FromApp( + Process: HANDLE, + BaseAddress: PVOID, + Size: SIZE_T, + AllocationType: ULONG, + PageProtection: ULONG, + ExtendedParameters: *mut MEM_EXTENDED_PARAMETER, + ParameterCount: ULONG, + ) -> PVOID; +} +extern "C" { + pub fn MapViewOfFile3FromApp( + FileMapping: HANDLE, + Process: HANDLE, + BaseAddress: PVOID, + Offset: ULONG64, + ViewSize: SIZE_T, + AllocationType: ULONG, + PageProtection: ULONG, + ExtendedParameters: *mut MEM_EXTENDED_PARAMETER, + ParameterCount: ULONG, + ) -> PVOID; +} +extern "C" { + pub fn CreateFileMapping2( + File: HANDLE, + SecurityAttributes: *mut SECURITY_ATTRIBUTES, + DesiredAccess: ULONG, + PageProtection: ULONG, + AllocationAttributes: ULONG, + MaximumSize: ULONG64, + Name: PCWSTR, + ExtendedParameters: *mut MEM_EXTENDED_PARAMETER, + ParameterCount: ULONG, + ) -> HANDLE; +} +extern "C" { + pub fn AllocateUserPhysicalPages2( + ObjectHandle: HANDLE, + NumberOfPages: PULONG_PTR, + PageArray: PULONG_PTR, + ExtendedParameters: PMEM_EXTENDED_PARAMETER, + ExtendedParameterCount: ULONG, + ) -> BOOL; +} +pub const WIN32_MEMORY_PARTITION_INFORMATION_CLASS_MemoryPartitionInfo: + WIN32_MEMORY_PARTITION_INFORMATION_CLASS = 0; +pub const WIN32_MEMORY_PARTITION_INFORMATION_CLASS_MemoryPartitionDedicatedMemoryInfo: + WIN32_MEMORY_PARTITION_INFORMATION_CLASS = 1; +pub type WIN32_MEMORY_PARTITION_INFORMATION_CLASS = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WIN32_MEMORY_PARTITION_INFORMATION { + pub Flags: ULONG, + pub NumaNode: ULONG, + pub Channel: ULONG, + pub NumberOfNumaNodes: ULONG, + pub ResidentAvailablePages: ULONG64, + pub CommittedPages: ULONG64, + pub CommitLimit: ULONG64, + pub PeakCommitment: ULONG64, + pub TotalNumberOfPages: ULONG64, + pub AvailablePages: ULONG64, + pub ZeroPages: ULONG64, + pub FreePages: ULONG64, + pub StandbyPages: ULONG64, + pub Reserved: [ULONG64; 16usize], + pub MaximumCommitLimit: ULONG64, + pub Reserved2: ULONG64, + pub PartitionId: ULONG, +} +extern "C" { + pub fn OpenDedicatedMemoryPartition( + Partition: HANDLE, + DedicatedMemoryTypeId: ULONG64, + DesiredAccess: ACCESS_MASK, + InheritHandle: BOOL, + ) -> HANDLE; +} +extern "C" { + pub fn QueryPartitionInformation( + Partition: HANDLE, + PartitionInformationClass: WIN32_MEMORY_PARTITION_INFORMATION_CLASS, + PartitionInformation: PVOID, + PartitionInformationLength: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn IsEnclaveTypeSupported(flEnclaveType: DWORD) -> BOOL; +} +extern "C" { + pub fn CreateEnclave( + hProcess: HANDLE, + lpAddress: LPVOID, + dwSize: SIZE_T, + dwInitialCommitment: SIZE_T, + flEnclaveType: DWORD, + lpEnclaveInformation: LPCVOID, + dwInfoLength: DWORD, + lpEnclaveError: LPDWORD, + ) -> LPVOID; +} +extern "C" { + pub fn LoadEnclaveData( + hProcess: HANDLE, + lpAddress: LPVOID, + lpBuffer: LPCVOID, + nSize: SIZE_T, + flProtect: DWORD, + lpPageInformation: LPCVOID, + dwInfoLength: DWORD, + lpNumberOfBytesWritten: PSIZE_T, + lpEnclaveError: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn InitializeEnclave( + hProcess: HANDLE, + lpAddress: LPVOID, + lpEnclaveInformation: LPCVOID, + dwInfoLength: DWORD, + lpEnclaveError: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn LoadEnclaveImageA(lpEnclaveAddress: LPVOID, lpImageName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn LoadEnclaveImageW(lpEnclaveAddress: LPVOID, lpImageName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn CallEnclave( + lpRoutine: LPENCLAVE_ROUTINE, + lpParameter: LPVOID, + fWaitForThread: BOOL, + lpReturnValue: *mut LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn TerminateEnclave(lpAddress: LPVOID, fWait: BOOL) -> BOOL; +} +extern "C" { + pub fn DeleteEnclave(lpAddress: LPVOID) -> BOOL; +} +extern "C" { + pub fn QueueUserWorkItem( + Function: LPTHREAD_START_ROUTINE, + Context: PVOID, + Flags: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn UnregisterWaitEx(WaitHandle: HANDLE, CompletionEvent: HANDLE) -> BOOL; +} +extern "C" { + pub fn CreateTimerQueue() -> HANDLE; +} +extern "C" { + pub fn CreateTimerQueueTimer( + phNewTimer: PHANDLE, + TimerQueue: HANDLE, + Callback: WAITORTIMERCALLBACK, + Parameter: PVOID, + DueTime: DWORD, + Period: DWORD, + Flags: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn ChangeTimerQueueTimer( + TimerQueue: HANDLE, + Timer: HANDLE, + DueTime: ULONG, + Period: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn DeleteTimerQueueTimer( + TimerQueue: HANDLE, + Timer: HANDLE, + CompletionEvent: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn DeleteTimerQueue(TimerQueue: HANDLE) -> BOOL; +} +extern "C" { + pub fn DeleteTimerQueueEx(TimerQueue: HANDLE, CompletionEvent: HANDLE) -> BOOL; +} +pub type PTP_WIN32_IO_CALLBACK = ::std::option::Option< + unsafe extern "C" fn( + Instance: PTP_CALLBACK_INSTANCE, + Context: PVOID, + Overlapped: PVOID, + IoResult: ULONG, + NumberOfBytesTransferred: ULONG_PTR, + Io: PTP_IO, + ), +>; +extern "C" { + pub fn CreateThreadpool(reserved: PVOID) -> PTP_POOL; +} +extern "C" { + pub fn SetThreadpoolThreadMaximum(ptpp: PTP_POOL, cthrdMost: DWORD); +} +extern "C" { + pub fn SetThreadpoolThreadMinimum(ptpp: PTP_POOL, cthrdMic: DWORD) -> BOOL; +} +extern "C" { + pub fn SetThreadpoolStackInformation(ptpp: PTP_POOL, ptpsi: PTP_POOL_STACK_INFORMATION) + -> BOOL; +} +extern "C" { + pub fn QueryThreadpoolStackInformation( + ptpp: PTP_POOL, + ptpsi: PTP_POOL_STACK_INFORMATION, + ) -> BOOL; +} +extern "C" { + pub fn CloseThreadpool(ptpp: PTP_POOL); +} +extern "C" { + pub fn CreateThreadpoolCleanupGroup() -> PTP_CLEANUP_GROUP; +} +extern "C" { + pub fn CloseThreadpoolCleanupGroupMembers( + ptpcg: PTP_CLEANUP_GROUP, + fCancelPendingCallbacks: BOOL, + pvCleanupContext: PVOID, + ); +} +extern "C" { + pub fn CloseThreadpoolCleanupGroup(ptpcg: PTP_CLEANUP_GROUP); +} +extern "C" { + pub fn SetEventWhenCallbackReturns(pci: PTP_CALLBACK_INSTANCE, evt: HANDLE); +} +extern "C" { + pub fn ReleaseSemaphoreWhenCallbackReturns( + pci: PTP_CALLBACK_INSTANCE, + sem: HANDLE, + crel: DWORD, + ); +} +extern "C" { + pub fn ReleaseMutexWhenCallbackReturns(pci: PTP_CALLBACK_INSTANCE, mut_: HANDLE); +} +extern "C" { + pub fn LeaveCriticalSectionWhenCallbackReturns( + pci: PTP_CALLBACK_INSTANCE, + pcs: PCRITICAL_SECTION, + ); +} +extern "C" { + pub fn FreeLibraryWhenCallbackReturns(pci: PTP_CALLBACK_INSTANCE, mod_: HMODULE); +} +extern "C" { + pub fn CallbackMayRunLong(pci: PTP_CALLBACK_INSTANCE) -> BOOL; +} +extern "C" { + pub fn DisassociateCurrentThreadFromCallback(pci: PTP_CALLBACK_INSTANCE); +} +extern "C" { + pub fn TrySubmitThreadpoolCallback( + pfns: PTP_SIMPLE_CALLBACK, + pv: PVOID, + pcbe: PTP_CALLBACK_ENVIRON, + ) -> BOOL; +} +extern "C" { + pub fn CreateThreadpoolWork( + pfnwk: PTP_WORK_CALLBACK, + pv: PVOID, + pcbe: PTP_CALLBACK_ENVIRON, + ) -> PTP_WORK; +} +extern "C" { + pub fn SubmitThreadpoolWork(pwk: PTP_WORK); +} +extern "C" { + pub fn WaitForThreadpoolWorkCallbacks(pwk: PTP_WORK, fCancelPendingCallbacks: BOOL); +} +extern "C" { + pub fn CloseThreadpoolWork(pwk: PTP_WORK); +} +extern "C" { + pub fn CreateThreadpoolTimer( + pfnti: PTP_TIMER_CALLBACK, + pv: PVOID, + pcbe: PTP_CALLBACK_ENVIRON, + ) -> PTP_TIMER; +} +extern "C" { + pub fn SetThreadpoolTimer( + pti: PTP_TIMER, + pftDueTime: PFILETIME, + msPeriod: DWORD, + msWindowLength: DWORD, + ); +} +extern "C" { + pub fn IsThreadpoolTimerSet(pti: PTP_TIMER) -> BOOL; +} +extern "C" { + pub fn WaitForThreadpoolTimerCallbacks(pti: PTP_TIMER, fCancelPendingCallbacks: BOOL); +} +extern "C" { + pub fn CloseThreadpoolTimer(pti: PTP_TIMER); +} +extern "C" { + pub fn CreateThreadpoolWait( + pfnwa: PTP_WAIT_CALLBACK, + pv: PVOID, + pcbe: PTP_CALLBACK_ENVIRON, + ) -> PTP_WAIT; +} +extern "C" { + pub fn SetThreadpoolWait(pwa: PTP_WAIT, h: HANDLE, pftTimeout: PFILETIME); +} +extern "C" { + pub fn WaitForThreadpoolWaitCallbacks(pwa: PTP_WAIT, fCancelPendingCallbacks: BOOL); +} +extern "C" { + pub fn CloseThreadpoolWait(pwa: PTP_WAIT); +} +extern "C" { + pub fn CreateThreadpoolIo( + fl: HANDLE, + pfnio: PTP_WIN32_IO_CALLBACK, + pv: PVOID, + pcbe: PTP_CALLBACK_ENVIRON, + ) -> PTP_IO; +} +extern "C" { + pub fn StartThreadpoolIo(pio: PTP_IO); +} +extern "C" { + pub fn CancelThreadpoolIo(pio: PTP_IO); +} +extern "C" { + pub fn WaitForThreadpoolIoCallbacks(pio: PTP_IO, fCancelPendingCallbacks: BOOL); +} +extern "C" { + pub fn CloseThreadpoolIo(pio: PTP_IO); +} +extern "C" { + pub fn SetThreadpoolTimerEx( + pti: PTP_TIMER, + pftDueTime: PFILETIME, + msPeriod: DWORD, + msWindowLength: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetThreadpoolWaitEx( + pwa: PTP_WAIT, + h: HANDLE, + pftTimeout: PFILETIME, + Reserved: PVOID, + ) -> BOOL; +} +extern "C" { + pub fn IsProcessInJob(ProcessHandle: HANDLE, JobHandle: HANDLE, Result: PBOOL) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION { + pub MaxIops: LONG64, + pub MaxBandwidth: LONG64, + pub ReservationIops: LONG64, + pub VolumeName: PCWSTR, + pub BaseIoSize: ULONG, + pub ControlFlags: ULONG, +} +extern "C" { + pub fn CreateJobObjectW(lpJobAttributes: LPSECURITY_ATTRIBUTES, lpName: LPCWSTR) -> HANDLE; +} +extern "C" { + pub fn FreeMemoryJobObject(Buffer: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn OpenJobObjectW(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCWSTR) -> HANDLE; +} +extern "C" { + pub fn AssignProcessToJobObject(hJob: HANDLE, hProcess: HANDLE) -> BOOL; +} +extern "C" { + pub fn TerminateJobObject(hJob: HANDLE, uExitCode: UINT) -> BOOL; +} +extern "C" { + pub fn SetInformationJobObject( + hJob: HANDLE, + JobObjectInformationClass: JOBOBJECTINFOCLASS, + lpJobObjectInformation: LPVOID, + cbJobObjectInformationLength: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetIoRateControlInformationJobObject( + hJob: HANDLE, + IoRateControlInfo: *mut JOBOBJECT_IO_RATE_CONTROL_INFORMATION, + ) -> DWORD; +} +extern "C" { + pub fn QueryInformationJobObject( + hJob: HANDLE, + JobObjectInformationClass: JOBOBJECTINFOCLASS, + lpJobObjectInformation: LPVOID, + cbJobObjectInformationLength: DWORD, + lpReturnLength: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn QueryIoRateControlInformationJobObject( + hJob: HANDLE, + VolumeName: PCWSTR, + InfoBlocks: *mut *mut JOBOBJECT_IO_RATE_CONTROL_INFORMATION, + InfoBlockCount: *mut ULONG, + ) -> DWORD; +} +extern "C" { + pub fn Wow64EnableWow64FsRedirection(Wow64FsEnableRedirection: BOOLEAN) -> BOOLEAN; +} +extern "C" { + pub fn Wow64DisableWow64FsRedirection(OldValue: *mut PVOID) -> BOOL; +} +extern "C" { + pub fn Wow64RevertWow64FsRedirection(OlValue: PVOID) -> BOOL; +} +extern "C" { + pub fn IsWow64Process(hProcess: HANDLE, Wow64Process: PBOOL) -> BOOL; +} +extern "C" { + pub fn GetSystemWow64DirectoryA(lpBuffer: LPSTR, uSize: UINT) -> UINT; +} +extern "C" { + pub fn GetSystemWow64DirectoryW(lpBuffer: LPWSTR, uSize: UINT) -> UINT; +} +extern "C" { + pub fn Wow64SetThreadDefaultGuestMachine(Machine: USHORT) -> USHORT; +} +extern "C" { + pub fn IsWow64Process2( + hProcess: HANDLE, + pProcessMachine: *mut USHORT, + pNativeMachine: *mut USHORT, + ) -> BOOL; +} +extern "C" { + pub fn GetSystemWow64Directory2A( + lpBuffer: LPSTR, + uSize: UINT, + ImageFileMachineType: WORD, + ) -> UINT; +} +extern "C" { + pub fn GetSystemWow64Directory2W( + lpBuffer: LPWSTR, + uSize: UINT, + ImageFileMachineType: WORD, + ) -> UINT; +} +extern "C" { + pub fn IsWow64GuestMachineSupported( + WowGuestMachine: USHORT, + MachineIsSupported: *mut BOOL, + ) -> HRESULT; +} +extern "C" { + pub fn Wow64GetThreadContext(hThread: HANDLE, lpContext: PWOW64_CONTEXT) -> BOOL; +} +extern "C" { + pub fn Wow64SetThreadContext(hThread: HANDLE, lpContext: *const WOW64_CONTEXT) -> BOOL; +} +extern "C" { + pub fn Wow64SuspendThread(hThread: HANDLE) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagENUMUILANG { + pub NumOfEnumUILang: ULONG, + pub SizeOfEnumUIBuffer: ULONG, + pub pEnumUIBuffer: *mut LANGID, +} +pub type ENUMUILANG = tagENUMUILANG; +pub type PENUMUILANG = *mut tagENUMUILANG; +pub type ENUMRESLANGPROCA = ::std::option::Option< + unsafe extern "C" fn( + hModule: HMODULE, + lpType: LPCSTR, + lpName: LPCSTR, + wLanguage: WORD, + lParam: LONG_PTR, + ) -> BOOL, +>; +pub type ENUMRESLANGPROCW = ::std::option::Option< + unsafe extern "C" fn( + hModule: HMODULE, + lpType: LPCWSTR, + lpName: LPCWSTR, + wLanguage: WORD, + lParam: LONG_PTR, + ) -> BOOL, +>; +pub type ENUMRESNAMEPROCA = ::std::option::Option< + unsafe extern "C" fn(hModule: HMODULE, lpType: LPCSTR, lpName: LPSTR, lParam: LONG_PTR) -> BOOL, +>; +pub type ENUMRESNAMEPROCW = ::std::option::Option< + unsafe extern "C" fn( + hModule: HMODULE, + lpType: LPCWSTR, + lpName: LPWSTR, + lParam: LONG_PTR, + ) -> BOOL, +>; +pub type ENUMRESTYPEPROCA = ::std::option::Option< + unsafe extern "C" fn(hModule: HMODULE, lpType: LPSTR, lParam: LONG_PTR) -> BOOL, +>; +pub type ENUMRESTYPEPROCW = ::std::option::Option< + unsafe extern "C" fn(hModule: HMODULE, lpType: LPWSTR, lParam: LONG_PTR) -> BOOL, +>; +extern "C" { + pub fn DisableThreadLibraryCalls(hLibModule: HMODULE) -> BOOL; +} +extern "C" { + pub fn FindResourceExW( + hModule: HMODULE, + lpType: LPCWSTR, + lpName: LPCWSTR, + wLanguage: WORD, + ) -> HRSRC; +} +extern "C" { + pub fn FindStringOrdinal( + dwFindStringOrdinalFlags: DWORD, + lpStringSource: LPCWSTR, + cchSource: ::std::os::raw::c_int, + lpStringValue: LPCWSTR, + cchValue: ::std::os::raw::c_int, + bIgnoreCase: BOOL, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn FreeLibrary(hLibModule: HMODULE) -> BOOL; +} +extern "C" { + pub fn FreeLibraryAndExitThread(hLibModule: HMODULE, dwExitCode: DWORD) -> !; +} +extern "C" { + pub fn FreeResource(hResData: HGLOBAL) -> BOOL; +} +extern "C" { + pub fn GetModuleFileNameA(hModule: HMODULE, lpFilename: LPSTR, nSize: DWORD) -> DWORD; +} +extern "C" { + pub fn GetModuleFileNameW(hModule: HMODULE, lpFilename: LPWSTR, nSize: DWORD) -> DWORD; +} +extern "C" { + pub fn GetModuleHandleA(lpModuleName: LPCSTR) -> HMODULE; +} +extern "C" { + pub fn GetModuleHandleW(lpModuleName: LPCWSTR) -> HMODULE; +} +pub type PGET_MODULE_HANDLE_EXA = ::std::option::Option< + unsafe extern "C" fn(dwFlags: DWORD, lpModuleName: LPCSTR, phModule: *mut HMODULE) -> BOOL, +>; +pub type PGET_MODULE_HANDLE_EXW = ::std::option::Option< + unsafe extern "C" fn(dwFlags: DWORD, lpModuleName: LPCWSTR, phModule: *mut HMODULE) -> BOOL, +>; +extern "C" { + pub fn GetModuleHandleExA(dwFlags: DWORD, lpModuleName: LPCSTR, phModule: *mut HMODULE) + -> BOOL; +} +extern "C" { + pub fn GetModuleHandleExW( + dwFlags: DWORD, + lpModuleName: LPCWSTR, + phModule: *mut HMODULE, + ) -> BOOL; +} +extern "C" { + pub fn GetProcAddress(hModule: HMODULE, lpProcName: LPCSTR) -> FARPROC; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REDIRECTION_FUNCTION_DESCRIPTOR { + pub DllName: PCSTR, + pub FunctionName: PCSTR, + pub RedirectionTarget: PVOID, +} +pub type REDIRECTION_FUNCTION_DESCRIPTOR = _REDIRECTION_FUNCTION_DESCRIPTOR; +pub type PREDIRECTION_FUNCTION_DESCRIPTOR = *mut _REDIRECTION_FUNCTION_DESCRIPTOR; +pub type PCREDIRECTION_FUNCTION_DESCRIPTOR = *const REDIRECTION_FUNCTION_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REDIRECTION_DESCRIPTOR { + pub Version: ULONG, + pub FunctionCount: ULONG, + pub Redirections: PCREDIRECTION_FUNCTION_DESCRIPTOR, +} +pub type REDIRECTION_DESCRIPTOR = _REDIRECTION_DESCRIPTOR; +pub type PREDIRECTION_DESCRIPTOR = *mut _REDIRECTION_DESCRIPTOR; +pub type PCREDIRECTION_DESCRIPTOR = *const REDIRECTION_DESCRIPTOR; +extern "C" { + pub fn LoadLibraryExA(lpLibFileName: LPCSTR, hFile: HANDLE, dwFlags: DWORD) -> HMODULE; +} +extern "C" { + pub fn LoadLibraryExW(lpLibFileName: LPCWSTR, hFile: HANDLE, dwFlags: DWORD) -> HMODULE; +} +extern "C" { + pub fn LoadResource(hModule: HMODULE, hResInfo: HRSRC) -> HGLOBAL; +} +extern "C" { + pub fn LoadStringA( + hInstance: HINSTANCE, + uID: UINT, + lpBuffer: LPSTR, + cchBufferMax: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn LoadStringW( + hInstance: HINSTANCE, + uID: UINT, + lpBuffer: LPWSTR, + cchBufferMax: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn LockResource(hResData: HGLOBAL) -> LPVOID; +} +extern "C" { + pub fn SizeofResource(hModule: HMODULE, hResInfo: HRSRC) -> DWORD; +} +pub type DLL_DIRECTORY_COOKIE = PVOID; +pub type PDLL_DIRECTORY_COOKIE = *mut PVOID; +extern "C" { + pub fn AddDllDirectory(NewDirectory: PCWSTR) -> DLL_DIRECTORY_COOKIE; +} +extern "C" { + pub fn RemoveDllDirectory(Cookie: DLL_DIRECTORY_COOKIE) -> BOOL; +} +extern "C" { + pub fn SetDefaultDllDirectories(DirectoryFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn EnumResourceLanguagesExA( + hModule: HMODULE, + lpType: LPCSTR, + lpName: LPCSTR, + lpEnumFunc: ENUMRESLANGPROCA, + lParam: LONG_PTR, + dwFlags: DWORD, + LangId: LANGID, + ) -> BOOL; +} +extern "C" { + pub fn EnumResourceLanguagesExW( + hModule: HMODULE, + lpType: LPCWSTR, + lpName: LPCWSTR, + lpEnumFunc: ENUMRESLANGPROCW, + lParam: LONG_PTR, + dwFlags: DWORD, + LangId: LANGID, + ) -> BOOL; +} +extern "C" { + pub fn EnumResourceNamesExA( + hModule: HMODULE, + lpType: LPCSTR, + lpEnumFunc: ENUMRESNAMEPROCA, + lParam: LONG_PTR, + dwFlags: DWORD, + LangId: LANGID, + ) -> BOOL; +} +extern "C" { + pub fn EnumResourceNamesExW( + hModule: HMODULE, + lpType: LPCWSTR, + lpEnumFunc: ENUMRESNAMEPROCW, + lParam: LONG_PTR, + dwFlags: DWORD, + LangId: LANGID, + ) -> BOOL; +} +extern "C" { + pub fn EnumResourceTypesExA( + hModule: HMODULE, + lpEnumFunc: ENUMRESTYPEPROCA, + lParam: LONG_PTR, + dwFlags: DWORD, + LangId: LANGID, + ) -> BOOL; +} +extern "C" { + pub fn EnumResourceTypesExW( + hModule: HMODULE, + lpEnumFunc: ENUMRESTYPEPROCW, + lParam: LONG_PTR, + dwFlags: DWORD, + LangId: LANGID, + ) -> BOOL; +} +extern "C" { + pub fn FindResourceW(hModule: HMODULE, lpName: LPCWSTR, lpType: LPCWSTR) -> HRSRC; +} +extern "C" { + pub fn LoadLibraryA(lpLibFileName: LPCSTR) -> HMODULE; +} +extern "C" { + pub fn LoadLibraryW(lpLibFileName: LPCWSTR) -> HMODULE; +} +extern "C" { + pub fn EnumResourceNamesW( + hModule: HMODULE, + lpType: LPCWSTR, + lpEnumFunc: ENUMRESNAMEPROCW, + lParam: LONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn EnumResourceNamesA( + hModule: HMODULE, + lpType: LPCSTR, + lpEnumFunc: ENUMRESNAMEPROCA, + lParam: LONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn AccessCheck( + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + ClientToken: HANDLE, + DesiredAccess: DWORD, + GenericMapping: PGENERIC_MAPPING, + PrivilegeSet: PPRIVILEGE_SET, + PrivilegeSetLength: LPDWORD, + GrantedAccess: LPDWORD, + AccessStatus: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn AccessCheckAndAuditAlarmW( + SubsystemName: LPCWSTR, + HandleId: LPVOID, + ObjectTypeName: LPWSTR, + ObjectName: LPWSTR, + SecurityDescriptor: PSECURITY_DESCRIPTOR, + DesiredAccess: DWORD, + GenericMapping: PGENERIC_MAPPING, + ObjectCreation: BOOL, + GrantedAccess: LPDWORD, + AccessStatus: LPBOOL, + pfGenerateOnClose: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn AccessCheckByType( + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + PrincipalSelfSid: PSID, + ClientToken: HANDLE, + DesiredAccess: DWORD, + ObjectTypeList: POBJECT_TYPE_LIST, + ObjectTypeListLength: DWORD, + GenericMapping: PGENERIC_MAPPING, + PrivilegeSet: PPRIVILEGE_SET, + PrivilegeSetLength: LPDWORD, + GrantedAccess: LPDWORD, + AccessStatus: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn AccessCheckByTypeResultList( + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + PrincipalSelfSid: PSID, + ClientToken: HANDLE, + DesiredAccess: DWORD, + ObjectTypeList: POBJECT_TYPE_LIST, + ObjectTypeListLength: DWORD, + GenericMapping: PGENERIC_MAPPING, + PrivilegeSet: PPRIVILEGE_SET, + PrivilegeSetLength: LPDWORD, + GrantedAccessList: LPDWORD, + AccessStatusList: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn AccessCheckByTypeAndAuditAlarmW( + SubsystemName: LPCWSTR, + HandleId: LPVOID, + ObjectTypeName: LPCWSTR, + ObjectName: LPCWSTR, + SecurityDescriptor: PSECURITY_DESCRIPTOR, + PrincipalSelfSid: PSID, + DesiredAccess: DWORD, + AuditType: AUDIT_EVENT_TYPE, + Flags: DWORD, + ObjectTypeList: POBJECT_TYPE_LIST, + ObjectTypeListLength: DWORD, + GenericMapping: PGENERIC_MAPPING, + ObjectCreation: BOOL, + GrantedAccess: LPDWORD, + AccessStatus: LPBOOL, + pfGenerateOnClose: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn AccessCheckByTypeResultListAndAuditAlarmW( + SubsystemName: LPCWSTR, + HandleId: LPVOID, + ObjectTypeName: LPCWSTR, + ObjectName: LPCWSTR, + SecurityDescriptor: PSECURITY_DESCRIPTOR, + PrincipalSelfSid: PSID, + DesiredAccess: DWORD, + AuditType: AUDIT_EVENT_TYPE, + Flags: DWORD, + ObjectTypeList: POBJECT_TYPE_LIST, + ObjectTypeListLength: DWORD, + GenericMapping: PGENERIC_MAPPING, + ObjectCreation: BOOL, + GrantedAccessList: LPDWORD, + AccessStatusList: LPDWORD, + pfGenerateOnClose: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn AccessCheckByTypeResultListAndAuditAlarmByHandleW( + SubsystemName: LPCWSTR, + HandleId: LPVOID, + ClientToken: HANDLE, + ObjectTypeName: LPCWSTR, + ObjectName: LPCWSTR, + SecurityDescriptor: PSECURITY_DESCRIPTOR, + PrincipalSelfSid: PSID, + DesiredAccess: DWORD, + AuditType: AUDIT_EVENT_TYPE, + Flags: DWORD, + ObjectTypeList: POBJECT_TYPE_LIST, + ObjectTypeListLength: DWORD, + GenericMapping: PGENERIC_MAPPING, + ObjectCreation: BOOL, + GrantedAccessList: LPDWORD, + AccessStatusList: LPDWORD, + pfGenerateOnClose: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn AddAccessAllowedAce( + pAcl: PACL, + dwAceRevision: DWORD, + AccessMask: DWORD, + pSid: PSID, + ) -> BOOL; +} +extern "C" { + pub fn AddAccessAllowedAceEx( + pAcl: PACL, + dwAceRevision: DWORD, + AceFlags: DWORD, + AccessMask: DWORD, + pSid: PSID, + ) -> BOOL; +} +extern "C" { + pub fn AddAccessAllowedObjectAce( + pAcl: PACL, + dwAceRevision: DWORD, + AceFlags: DWORD, + AccessMask: DWORD, + ObjectTypeGuid: *mut GUID, + InheritedObjectTypeGuid: *mut GUID, + pSid: PSID, + ) -> BOOL; +} +extern "C" { + pub fn AddAccessDeniedAce( + pAcl: PACL, + dwAceRevision: DWORD, + AccessMask: DWORD, + pSid: PSID, + ) -> BOOL; +} +extern "C" { + pub fn AddAccessDeniedAceEx( + pAcl: PACL, + dwAceRevision: DWORD, + AceFlags: DWORD, + AccessMask: DWORD, + pSid: PSID, + ) -> BOOL; +} +extern "C" { + pub fn AddAccessDeniedObjectAce( + pAcl: PACL, + dwAceRevision: DWORD, + AceFlags: DWORD, + AccessMask: DWORD, + ObjectTypeGuid: *mut GUID, + InheritedObjectTypeGuid: *mut GUID, + pSid: PSID, + ) -> BOOL; +} +extern "C" { + pub fn AddAce( + pAcl: PACL, + dwAceRevision: DWORD, + dwStartingAceIndex: DWORD, + pAceList: LPVOID, + nAceListLength: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn AddAuditAccessAce( + pAcl: PACL, + dwAceRevision: DWORD, + dwAccessMask: DWORD, + pSid: PSID, + bAuditSuccess: BOOL, + bAuditFailure: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn AddAuditAccessAceEx( + pAcl: PACL, + dwAceRevision: DWORD, + AceFlags: DWORD, + dwAccessMask: DWORD, + pSid: PSID, + bAuditSuccess: BOOL, + bAuditFailure: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn AddAuditAccessObjectAce( + pAcl: PACL, + dwAceRevision: DWORD, + AceFlags: DWORD, + AccessMask: DWORD, + ObjectTypeGuid: *mut GUID, + InheritedObjectTypeGuid: *mut GUID, + pSid: PSID, + bAuditSuccess: BOOL, + bAuditFailure: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn AddMandatoryAce( + pAcl: PACL, + dwAceRevision: DWORD, + AceFlags: DWORD, + MandatoryPolicy: DWORD, + pLabelSid: PSID, + ) -> BOOL; +} +extern "C" { + pub fn AddResourceAttributeAce( + pAcl: PACL, + dwAceRevision: DWORD, + AceFlags: DWORD, + AccessMask: DWORD, + pSid: PSID, + pAttributeInfo: PCLAIM_SECURITY_ATTRIBUTES_INFORMATION, + pReturnLength: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn AddScopedPolicyIDAce( + pAcl: PACL, + dwAceRevision: DWORD, + AceFlags: DWORD, + AccessMask: DWORD, + pSid: PSID, + ) -> BOOL; +} +extern "C" { + pub fn AdjustTokenGroups( + TokenHandle: HANDLE, + ResetToDefault: BOOL, + NewState: PTOKEN_GROUPS, + BufferLength: DWORD, + PreviousState: PTOKEN_GROUPS, + ReturnLength: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn AdjustTokenPrivileges( + TokenHandle: HANDLE, + DisableAllPrivileges: BOOL, + NewState: PTOKEN_PRIVILEGES, + BufferLength: DWORD, + PreviousState: PTOKEN_PRIVILEGES, + ReturnLength: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn AllocateAndInitializeSid( + pIdentifierAuthority: PSID_IDENTIFIER_AUTHORITY, + nSubAuthorityCount: BYTE, + nSubAuthority0: DWORD, + nSubAuthority1: DWORD, + nSubAuthority2: DWORD, + nSubAuthority3: DWORD, + nSubAuthority4: DWORD, + nSubAuthority5: DWORD, + nSubAuthority6: DWORD, + nSubAuthority7: DWORD, + pSid: *mut PSID, + ) -> BOOL; +} +extern "C" { + pub fn AllocateLocallyUniqueId(Luid: PLUID) -> BOOL; +} +extern "C" { + pub fn AreAllAccessesGranted(GrantedAccess: DWORD, DesiredAccess: DWORD) -> BOOL; +} +extern "C" { + pub fn AreAnyAccessesGranted(GrantedAccess: DWORD, DesiredAccess: DWORD) -> BOOL; +} +extern "C" { + pub fn CheckTokenMembership(TokenHandle: HANDLE, SidToCheck: PSID, IsMember: PBOOL) -> BOOL; +} +extern "C" { + pub fn CheckTokenCapability( + TokenHandle: HANDLE, + CapabilitySidToCheck: PSID, + HasCapability: PBOOL, + ) -> BOOL; +} +extern "C" { + pub fn GetAppContainerAce( + Acl: PACL, + StartingAceIndex: DWORD, + AppContainerAce: *mut PVOID, + AppContainerAceIndex: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CheckTokenMembershipEx( + TokenHandle: HANDLE, + SidToCheck: PSID, + Flags: DWORD, + IsMember: PBOOL, + ) -> BOOL; +} +extern "C" { + pub fn ConvertToAutoInheritPrivateObjectSecurity( + ParentDescriptor: PSECURITY_DESCRIPTOR, + CurrentSecurityDescriptor: PSECURITY_DESCRIPTOR, + NewSecurityDescriptor: *mut PSECURITY_DESCRIPTOR, + ObjectType: *mut GUID, + IsDirectoryObject: BOOLEAN, + GenericMapping: PGENERIC_MAPPING, + ) -> BOOL; +} +extern "C" { + pub fn CopySid(nDestinationSidLength: DWORD, pDestinationSid: PSID, pSourceSid: PSID) -> BOOL; +} +extern "C" { + pub fn CreatePrivateObjectSecurity( + ParentDescriptor: PSECURITY_DESCRIPTOR, + CreatorDescriptor: PSECURITY_DESCRIPTOR, + NewDescriptor: *mut PSECURITY_DESCRIPTOR, + IsDirectoryObject: BOOL, + Token: HANDLE, + GenericMapping: PGENERIC_MAPPING, + ) -> BOOL; +} +extern "C" { + pub fn CreatePrivateObjectSecurityEx( + ParentDescriptor: PSECURITY_DESCRIPTOR, + CreatorDescriptor: PSECURITY_DESCRIPTOR, + NewDescriptor: *mut PSECURITY_DESCRIPTOR, + ObjectType: *mut GUID, + IsContainerObject: BOOL, + AutoInheritFlags: ULONG, + Token: HANDLE, + GenericMapping: PGENERIC_MAPPING, + ) -> BOOL; +} +extern "C" { + pub fn CreatePrivateObjectSecurityWithMultipleInheritance( + ParentDescriptor: PSECURITY_DESCRIPTOR, + CreatorDescriptor: PSECURITY_DESCRIPTOR, + NewDescriptor: *mut PSECURITY_DESCRIPTOR, + ObjectTypes: *mut *mut GUID, + GuidCount: ULONG, + IsContainerObject: BOOL, + AutoInheritFlags: ULONG, + Token: HANDLE, + GenericMapping: PGENERIC_MAPPING, + ) -> BOOL; +} +extern "C" { + pub fn CreateRestrictedToken( + ExistingTokenHandle: HANDLE, + Flags: DWORD, + DisableSidCount: DWORD, + SidsToDisable: PSID_AND_ATTRIBUTES, + DeletePrivilegeCount: DWORD, + PrivilegesToDelete: PLUID_AND_ATTRIBUTES, + RestrictedSidCount: DWORD, + SidsToRestrict: PSID_AND_ATTRIBUTES, + NewTokenHandle: PHANDLE, + ) -> BOOL; +} +extern "C" { + pub fn CreateWellKnownSid( + WellKnownSidType: WELL_KNOWN_SID_TYPE, + DomainSid: PSID, + pSid: PSID, + cbSid: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn EqualDomainSid(pSid1: PSID, pSid2: PSID, pfEqual: *mut BOOL) -> BOOL; +} +extern "C" { + pub fn DeleteAce(pAcl: PACL, dwAceIndex: DWORD) -> BOOL; +} +extern "C" { + pub fn DestroyPrivateObjectSecurity(ObjectDescriptor: *mut PSECURITY_DESCRIPTOR) -> BOOL; +} +extern "C" { + pub fn DuplicateToken( + ExistingTokenHandle: HANDLE, + ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, + DuplicateTokenHandle: PHANDLE, + ) -> BOOL; +} +extern "C" { + pub fn DuplicateTokenEx( + hExistingToken: HANDLE, + dwDesiredAccess: DWORD, + lpTokenAttributes: LPSECURITY_ATTRIBUTES, + ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, + TokenType: TOKEN_TYPE, + phNewToken: PHANDLE, + ) -> BOOL; +} +extern "C" { + pub fn EqualPrefixSid(pSid1: PSID, pSid2: PSID) -> BOOL; +} +extern "C" { + pub fn EqualSid(pSid1: PSID, pSid2: PSID) -> BOOL; +} +extern "C" { + pub fn FindFirstFreeAce(pAcl: PACL, pAce: *mut LPVOID) -> BOOL; +} +extern "C" { + pub fn FreeSid(pSid: PSID) -> PVOID; +} +extern "C" { + pub fn GetAce(pAcl: PACL, dwAceIndex: DWORD, pAce: *mut LPVOID) -> BOOL; +} +extern "C" { + pub fn GetAclInformation( + pAcl: PACL, + pAclInformation: LPVOID, + nAclInformationLength: DWORD, + dwAclInformationClass: ACL_INFORMATION_CLASS, + ) -> BOOL; +} +extern "C" { + pub fn GetFileSecurityW( + lpFileName: LPCWSTR, + RequestedInformation: SECURITY_INFORMATION, + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + nLength: DWORD, + lpnLengthNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetKernelObjectSecurity( + Handle: HANDLE, + RequestedInformation: SECURITY_INFORMATION, + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + nLength: DWORD, + lpnLengthNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetLengthSid(pSid: PSID) -> DWORD; +} +extern "C" { + pub fn GetPrivateObjectSecurity( + ObjectDescriptor: PSECURITY_DESCRIPTOR, + SecurityInformation: SECURITY_INFORMATION, + ResultantDescriptor: PSECURITY_DESCRIPTOR, + DescriptorLength: DWORD, + ReturnLength: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetSecurityDescriptorControl( + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + pControl: PSECURITY_DESCRIPTOR_CONTROL, + lpdwRevision: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetSecurityDescriptorDacl( + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + lpbDaclPresent: LPBOOL, + pDacl: *mut PACL, + lpbDaclDefaulted: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn GetSecurityDescriptorGroup( + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + pGroup: *mut PSID, + lpbGroupDefaulted: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn GetSecurityDescriptorLength(pSecurityDescriptor: PSECURITY_DESCRIPTOR) -> DWORD; +} +extern "C" { + pub fn GetSecurityDescriptorOwner( + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + pOwner: *mut PSID, + lpbOwnerDefaulted: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn GetSecurityDescriptorRMControl( + SecurityDescriptor: PSECURITY_DESCRIPTOR, + RMControl: PUCHAR, + ) -> DWORD; +} +extern "C" { + pub fn GetSecurityDescriptorSacl( + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + lpbSaclPresent: LPBOOL, + pSacl: *mut PACL, + lpbSaclDefaulted: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn GetSidIdentifierAuthority(pSid: PSID) -> PSID_IDENTIFIER_AUTHORITY; +} +extern "C" { + pub fn GetSidLengthRequired(nSubAuthorityCount: UCHAR) -> DWORD; +} +extern "C" { + pub fn GetSidSubAuthority(pSid: PSID, nSubAuthority: DWORD) -> PDWORD; +} +extern "C" { + pub fn GetSidSubAuthorityCount(pSid: PSID) -> PUCHAR; +} +extern "C" { + pub fn GetTokenInformation( + TokenHandle: HANDLE, + TokenInformationClass: TOKEN_INFORMATION_CLASS, + TokenInformation: LPVOID, + TokenInformationLength: DWORD, + ReturnLength: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetWindowsAccountDomainSid( + pSid: PSID, + pDomainSid: PSID, + cbDomainSid: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn ImpersonateAnonymousToken(ThreadHandle: HANDLE) -> BOOL; +} +extern "C" { + pub fn ImpersonateLoggedOnUser(hToken: HANDLE) -> BOOL; +} +extern "C" { + pub fn ImpersonateSelf(ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL) -> BOOL; +} +extern "C" { + pub fn InitializeAcl(pAcl: PACL, nAclLength: DWORD, dwAclRevision: DWORD) -> BOOL; +} +extern "C" { + pub fn InitializeSecurityDescriptor( + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + dwRevision: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn InitializeSid( + Sid: PSID, + pIdentifierAuthority: PSID_IDENTIFIER_AUTHORITY, + nSubAuthorityCount: BYTE, + ) -> BOOL; +} +extern "C" { + pub fn IsTokenRestricted(TokenHandle: HANDLE) -> BOOL; +} +extern "C" { + pub fn IsValidAcl(pAcl: PACL) -> BOOL; +} +extern "C" { + pub fn IsValidSecurityDescriptor(pSecurityDescriptor: PSECURITY_DESCRIPTOR) -> BOOL; +} +extern "C" { + pub fn IsValidSid(pSid: PSID) -> BOOL; +} +extern "C" { + pub fn IsWellKnownSid(pSid: PSID, WellKnownSidType: WELL_KNOWN_SID_TYPE) -> BOOL; +} +extern "C" { + pub fn MakeAbsoluteSD( + pSelfRelativeSecurityDescriptor: PSECURITY_DESCRIPTOR, + pAbsoluteSecurityDescriptor: PSECURITY_DESCRIPTOR, + lpdwAbsoluteSecurityDescriptorSize: LPDWORD, + pDacl: PACL, + lpdwDaclSize: LPDWORD, + pSacl: PACL, + lpdwSaclSize: LPDWORD, + pOwner: PSID, + lpdwOwnerSize: LPDWORD, + pPrimaryGroup: PSID, + lpdwPrimaryGroupSize: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn MakeSelfRelativeSD( + pAbsoluteSecurityDescriptor: PSECURITY_DESCRIPTOR, + pSelfRelativeSecurityDescriptor: PSECURITY_DESCRIPTOR, + lpdwBufferLength: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn MapGenericMask(AccessMask: PDWORD, GenericMapping: PGENERIC_MAPPING); +} +extern "C" { + pub fn ObjectCloseAuditAlarmW( + SubsystemName: LPCWSTR, + HandleId: LPVOID, + GenerateOnClose: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn ObjectDeleteAuditAlarmW( + SubsystemName: LPCWSTR, + HandleId: LPVOID, + GenerateOnClose: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn ObjectOpenAuditAlarmW( + SubsystemName: LPCWSTR, + HandleId: LPVOID, + ObjectTypeName: LPWSTR, + ObjectName: LPWSTR, + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + ClientToken: HANDLE, + DesiredAccess: DWORD, + GrantedAccess: DWORD, + Privileges: PPRIVILEGE_SET, + ObjectCreation: BOOL, + AccessGranted: BOOL, + GenerateOnClose: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn ObjectPrivilegeAuditAlarmW( + SubsystemName: LPCWSTR, + HandleId: LPVOID, + ClientToken: HANDLE, + DesiredAccess: DWORD, + Privileges: PPRIVILEGE_SET, + AccessGranted: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn PrivilegeCheck( + ClientToken: HANDLE, + RequiredPrivileges: PPRIVILEGE_SET, + pfResult: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn PrivilegedServiceAuditAlarmW( + SubsystemName: LPCWSTR, + ServiceName: LPCWSTR, + ClientToken: HANDLE, + Privileges: PPRIVILEGE_SET, + AccessGranted: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn QuerySecurityAccessMask( + SecurityInformation: SECURITY_INFORMATION, + DesiredAccess: LPDWORD, + ); +} +extern "C" { + pub fn RevertToSelf() -> BOOL; +} +extern "C" { + pub fn SetAclInformation( + pAcl: PACL, + pAclInformation: LPVOID, + nAclInformationLength: DWORD, + dwAclInformationClass: ACL_INFORMATION_CLASS, + ) -> BOOL; +} +extern "C" { + pub fn SetFileSecurityW( + lpFileName: LPCWSTR, + SecurityInformation: SECURITY_INFORMATION, + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + ) -> BOOL; +} +extern "C" { + pub fn SetKernelObjectSecurity( + Handle: HANDLE, + SecurityInformation: SECURITY_INFORMATION, + SecurityDescriptor: PSECURITY_DESCRIPTOR, + ) -> BOOL; +} +extern "C" { + pub fn SetPrivateObjectSecurity( + SecurityInformation: SECURITY_INFORMATION, + ModificationDescriptor: PSECURITY_DESCRIPTOR, + ObjectsSecurityDescriptor: *mut PSECURITY_DESCRIPTOR, + GenericMapping: PGENERIC_MAPPING, + Token: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn SetPrivateObjectSecurityEx( + SecurityInformation: SECURITY_INFORMATION, + ModificationDescriptor: PSECURITY_DESCRIPTOR, + ObjectsSecurityDescriptor: *mut PSECURITY_DESCRIPTOR, + AutoInheritFlags: ULONG, + GenericMapping: PGENERIC_MAPPING, + Token: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn SetSecurityAccessMask(SecurityInformation: SECURITY_INFORMATION, DesiredAccess: LPDWORD); +} +extern "C" { + pub fn SetSecurityDescriptorControl( + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + ControlBitsOfInterest: SECURITY_DESCRIPTOR_CONTROL, + ControlBitsToSet: SECURITY_DESCRIPTOR_CONTROL, + ) -> BOOL; +} +extern "C" { + pub fn SetSecurityDescriptorDacl( + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + bDaclPresent: BOOL, + pDacl: PACL, + bDaclDefaulted: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn SetSecurityDescriptorGroup( + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + pGroup: PSID, + bGroupDefaulted: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn SetSecurityDescriptorOwner( + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + pOwner: PSID, + bOwnerDefaulted: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn SetSecurityDescriptorRMControl( + SecurityDescriptor: PSECURITY_DESCRIPTOR, + RMControl: PUCHAR, + ) -> DWORD; +} +extern "C" { + pub fn SetSecurityDescriptorSacl( + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + bSaclPresent: BOOL, + pSacl: PACL, + bSaclDefaulted: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn SetTokenInformation( + TokenHandle: HANDLE, + TokenInformationClass: TOKEN_INFORMATION_CLASS, + TokenInformation: LPVOID, + TokenInformationLength: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetCachedSigningLevel( + SourceFiles: PHANDLE, + SourceFileCount: ULONG, + Flags: ULONG, + TargetFile: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn GetCachedSigningLevel( + File: HANDLE, + Flags: PULONG, + SigningLevel: PULONG, + Thumbprint: PUCHAR, + ThumbprintSize: PULONG, + ThumbprintAlgorithm: PULONG, + ) -> BOOL; +} +extern "C" { + pub fn CveEventWrite(CveId: PCWSTR, AdditionalDetails: PCWSTR) -> LONG; +} +extern "C" { + pub fn DeriveCapabilitySidsFromName( + CapName: LPCWSTR, + CapabilityGroupSids: *mut *mut PSID, + CapabilityGroupSidCount: *mut DWORD, + CapabilitySids: *mut *mut PSID, + CapabilitySidCount: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CreatePrivateNamespaceW( + lpPrivateNamespaceAttributes: LPSECURITY_ATTRIBUTES, + lpBoundaryDescriptor: LPVOID, + lpAliasPrefix: LPCWSTR, + ) -> HANDLE; +} +extern "C" { + pub fn OpenPrivateNamespaceW(lpBoundaryDescriptor: LPVOID, lpAliasPrefix: LPCWSTR) -> HANDLE; +} +extern "C" { + pub fn ClosePrivateNamespace(Handle: HANDLE, Flags: ULONG) -> BOOLEAN; +} +extern "C" { + pub fn CreateBoundaryDescriptorW(Name: LPCWSTR, Flags: ULONG) -> HANDLE; +} +extern "C" { + pub fn AddSIDToBoundaryDescriptor(BoundaryDescriptor: *mut HANDLE, RequiredSid: PSID) -> BOOL; +} +extern "C" { + pub fn DeleteBoundaryDescriptor(BoundaryDescriptor: HANDLE); +} +extern "C" { + pub fn GetNumaHighestNodeNumber(HighestNodeNumber: PULONG) -> BOOL; +} +extern "C" { + pub fn GetNumaNodeProcessorMaskEx(Node: USHORT, ProcessorMask: PGROUP_AFFINITY) -> BOOL; +} +extern "C" { + pub fn GetNumaNodeProcessorMask2( + NodeNumber: USHORT, + ProcessorMasks: PGROUP_AFFINITY, + ProcessorMaskCount: USHORT, + RequiredMaskCount: PUSHORT, + ) -> BOOL; +} +extern "C" { + pub fn GetNumaProximityNodeEx(ProximityId: ULONG, NodeNumber: PUSHORT) -> BOOL; +} +extern "C" { + pub fn GetProcessGroupAffinity( + hProcess: HANDLE, + GroupCount: PUSHORT, + GroupArray: PUSHORT, + ) -> BOOL; +} +extern "C" { + pub fn GetThreadGroupAffinity(hThread: HANDLE, GroupAffinity: PGROUP_AFFINITY) -> BOOL; +} +extern "C" { + pub fn SetThreadGroupAffinity( + hThread: HANDLE, + GroupAffinity: *const GROUP_AFFINITY, + PreviousGroupAffinity: PGROUP_AFFINITY, + ) -> BOOL; +} +extern "C" { + pub fn GetAppContainerNamedObjectPath( + Token: HANDLE, + AppContainerSid: PSID, + ObjectPathLength: ULONG, + ObjectPath: LPWSTR, + ReturnLength: PULONG, + ) -> BOOL; +} +extern "C" { + pub fn QueryThreadCycleTime(ThreadHandle: HANDLE, CycleTime: PULONG64) -> BOOL; +} +extern "C" { + pub fn QueryProcessCycleTime(ProcessHandle: HANDLE, CycleTime: PULONG64) -> BOOL; +} +extern "C" { + pub fn QueryIdleProcessorCycleTime( + BufferLength: PULONG, + ProcessorIdleCycleTime: PULONG64, + ) -> BOOL; +} +extern "C" { + pub fn QueryIdleProcessorCycleTimeEx( + Group: USHORT, + BufferLength: PULONG, + ProcessorIdleCycleTime: PULONG64, + ) -> BOOL; +} +extern "C" { + pub fn QueryInterruptTimePrecise(lpInterruptTimePrecise: PULONGLONG); +} +extern "C" { + pub fn QueryUnbiasedInterruptTimePrecise(lpUnbiasedInterruptTimePrecise: PULONGLONG); +} +extern "C" { + pub fn QueryInterruptTime(lpInterruptTime: PULONGLONG); +} +extern "C" { + pub fn QueryUnbiasedInterruptTime(UnbiasedTime: PULONGLONG) -> BOOL; +} +extern "C" { + pub fn QueryAuxiliaryCounterFrequency(lpAuxiliaryCounterFrequency: PULONGLONG) -> HRESULT; +} +extern "C" { + pub fn ConvertAuxiliaryCounterToPerformanceCounter( + ullAuxiliaryCounterValue: ULONGLONG, + lpPerformanceCounterValue: PULONGLONG, + lpConversionError: PULONGLONG, + ) -> HRESULT; +} +extern "C" { + pub fn ConvertPerformanceCounterToAuxiliaryCounter( + ullPerformanceCounterValue: ULONGLONG, + lpAuxiliaryCounterValue: PULONGLONG, + lpConversionError: PULONGLONG, + ) -> HRESULT; +} +pub const FILE_WRITE_FLAGS_FILE_WRITE_FLAGS_NONE: FILE_WRITE_FLAGS = 0; +pub const FILE_WRITE_FLAGS_FILE_WRITE_FLAGS_WRITE_THROUGH: FILE_WRITE_FLAGS = 1; +pub type FILE_WRITE_FLAGS = ::std::os::raw::c_int; +pub const FILE_FLUSH_MODE_FILE_FLUSH_DEFAULT: FILE_FLUSH_MODE = 0; +pub const FILE_FLUSH_MODE_FILE_FLUSH_DATA: FILE_FLUSH_MODE = 1; +pub const FILE_FLUSH_MODE_FILE_FLUSH_MIN_METADATA: FILE_FLUSH_MODE = 2; +pub const FILE_FLUSH_MODE_FILE_FLUSH_NO_SYNC: FILE_FLUSH_MODE = 3; +pub type FILE_FLUSH_MODE = ::std::os::raw::c_int; +pub type PFIBER_START_ROUTINE = + ::std::option::Option; +pub type LPFIBER_START_ROUTINE = PFIBER_START_ROUTINE; +pub type PFIBER_CALLOUT_ROUTINE = + ::std::option::Option LPVOID>; +pub type LPLDT_ENTRY = LPVOID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _COMMPROP { + pub wPacketLength: WORD, + pub wPacketVersion: WORD, + pub dwServiceMask: DWORD, + pub dwReserved1: DWORD, + pub dwMaxTxQueue: DWORD, + pub dwMaxRxQueue: DWORD, + pub dwMaxBaud: DWORD, + pub dwProvSubType: DWORD, + pub dwProvCapabilities: DWORD, + pub dwSettableParams: DWORD, + pub dwSettableBaud: DWORD, + pub wSettableData: WORD, + pub wSettableStopParity: WORD, + pub dwCurrentTxQueue: DWORD, + pub dwCurrentRxQueue: DWORD, + pub dwProvSpec1: DWORD, + pub dwProvSpec2: DWORD, + pub wcProvChar: [WCHAR; 1usize], +} +pub type COMMPROP = _COMMPROP; +pub type LPCOMMPROP = *mut _COMMPROP; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _COMSTAT { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub cbInQue: DWORD, + pub cbOutQue: DWORD, +} +impl _COMSTAT { + #[inline] + pub fn fCtsHold(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_fCtsHold(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn fDsrHold(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_fDsrHold(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn fRlsdHold(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_fRlsdHold(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn fXoffHold(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_fXoffHold(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn fXoffSent(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } + } + #[inline] + pub fn set_fXoffSent(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn fEof(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } + } + #[inline] + pub fn set_fEof(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 1u8, val as u64) + } + } + #[inline] + pub fn fTxim(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } + } + #[inline] + pub fn set_fTxim(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(6usize, 1u8, val as u64) + } + } + #[inline] + pub fn fReserved(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 25u8) as u32) } + } + #[inline] + pub fn set_fReserved(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(7usize, 25u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + fCtsHold: DWORD, + fDsrHold: DWORD, + fRlsdHold: DWORD, + fXoffHold: DWORD, + fXoffSent: DWORD, + fEof: DWORD, + fTxim: DWORD, + fReserved: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let fCtsHold: u32 = unsafe { ::std::mem::transmute(fCtsHold) }; + fCtsHold as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let fDsrHold: u32 = unsafe { ::std::mem::transmute(fDsrHold) }; + fDsrHold as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let fRlsdHold: u32 = unsafe { ::std::mem::transmute(fRlsdHold) }; + fRlsdHold as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let fXoffHold: u32 = unsafe { ::std::mem::transmute(fXoffHold) }; + fXoffHold as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let fXoffSent: u32 = unsafe { ::std::mem::transmute(fXoffSent) }; + fXoffSent as u64 + }); + __bindgen_bitfield_unit.set(5usize, 1u8, { + let fEof: u32 = unsafe { ::std::mem::transmute(fEof) }; + fEof as u64 + }); + __bindgen_bitfield_unit.set(6usize, 1u8, { + let fTxim: u32 = unsafe { ::std::mem::transmute(fTxim) }; + fTxim as u64 + }); + __bindgen_bitfield_unit.set(7usize, 25u8, { + let fReserved: u32 = unsafe { ::std::mem::transmute(fReserved) }; + fReserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type COMSTAT = _COMSTAT; +pub type LPCOMSTAT = *mut _COMSTAT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DCB { + pub DCBlength: DWORD, + pub BaudRate: DWORD, + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub wReserved: WORD, + pub XonLim: WORD, + pub XoffLim: WORD, + pub ByteSize: BYTE, + pub Parity: BYTE, + pub StopBits: BYTE, + pub XonChar: ::std::os::raw::c_char, + pub XoffChar: ::std::os::raw::c_char, + pub ErrorChar: ::std::os::raw::c_char, + pub EofChar: ::std::os::raw::c_char, + pub EvtChar: ::std::os::raw::c_char, + pub wReserved1: WORD, +} +impl _DCB { + #[inline] + pub fn fBinary(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_fBinary(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn fParity(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_fParity(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn fOutxCtsFlow(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_fOutxCtsFlow(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn fOutxDsrFlow(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_fOutxDsrFlow(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn fDtrControl(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 2u8) as u32) } + } + #[inline] + pub fn set_fDtrControl(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 2u8, val as u64) + } + } + #[inline] + pub fn fDsrSensitivity(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } + } + #[inline] + pub fn set_fDsrSensitivity(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(6usize, 1u8, val as u64) + } + } + #[inline] + pub fn fTXContinueOnXoff(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } + } + #[inline] + pub fn set_fTXContinueOnXoff(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(7usize, 1u8, val as u64) + } + } + #[inline] + pub fn fOutX(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) } + } + #[inline] + pub fn set_fOutX(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 1u8, val as u64) + } + } + #[inline] + pub fn fInX(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) } + } + #[inline] + pub fn set_fInX(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(9usize, 1u8, val as u64) + } + } + #[inline] + pub fn fErrorChar(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) } + } + #[inline] + pub fn set_fErrorChar(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(10usize, 1u8, val as u64) + } + } + #[inline] + pub fn fNull(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) } + } + #[inline] + pub fn set_fNull(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(11usize, 1u8, val as u64) + } + } + #[inline] + pub fn fRtsControl(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 2u8) as u32) } + } + #[inline] + pub fn set_fRtsControl(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(12usize, 2u8, val as u64) + } + } + #[inline] + pub fn fAbortOnError(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) } + } + #[inline] + pub fn set_fAbortOnError(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(14usize, 1u8, val as u64) + } + } + #[inline] + pub fn fDummy2(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 17u8) as u32) } + } + #[inline] + pub fn set_fDummy2(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(15usize, 17u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + fBinary: DWORD, + fParity: DWORD, + fOutxCtsFlow: DWORD, + fOutxDsrFlow: DWORD, + fDtrControl: DWORD, + fDsrSensitivity: DWORD, + fTXContinueOnXoff: DWORD, + fOutX: DWORD, + fInX: DWORD, + fErrorChar: DWORD, + fNull: DWORD, + fRtsControl: DWORD, + fAbortOnError: DWORD, + fDummy2: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let fBinary: u32 = unsafe { ::std::mem::transmute(fBinary) }; + fBinary as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let fParity: u32 = unsafe { ::std::mem::transmute(fParity) }; + fParity as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let fOutxCtsFlow: u32 = unsafe { ::std::mem::transmute(fOutxCtsFlow) }; + fOutxCtsFlow as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let fOutxDsrFlow: u32 = unsafe { ::std::mem::transmute(fOutxDsrFlow) }; + fOutxDsrFlow as u64 + }); + __bindgen_bitfield_unit.set(4usize, 2u8, { + let fDtrControl: u32 = unsafe { ::std::mem::transmute(fDtrControl) }; + fDtrControl as u64 + }); + __bindgen_bitfield_unit.set(6usize, 1u8, { + let fDsrSensitivity: u32 = unsafe { ::std::mem::transmute(fDsrSensitivity) }; + fDsrSensitivity as u64 + }); + __bindgen_bitfield_unit.set(7usize, 1u8, { + let fTXContinueOnXoff: u32 = unsafe { ::std::mem::transmute(fTXContinueOnXoff) }; + fTXContinueOnXoff as u64 + }); + __bindgen_bitfield_unit.set(8usize, 1u8, { + let fOutX: u32 = unsafe { ::std::mem::transmute(fOutX) }; + fOutX as u64 + }); + __bindgen_bitfield_unit.set(9usize, 1u8, { + let fInX: u32 = unsafe { ::std::mem::transmute(fInX) }; + fInX as u64 + }); + __bindgen_bitfield_unit.set(10usize, 1u8, { + let fErrorChar: u32 = unsafe { ::std::mem::transmute(fErrorChar) }; + fErrorChar as u64 + }); + __bindgen_bitfield_unit.set(11usize, 1u8, { + let fNull: u32 = unsafe { ::std::mem::transmute(fNull) }; + fNull as u64 + }); + __bindgen_bitfield_unit.set(12usize, 2u8, { + let fRtsControl: u32 = unsafe { ::std::mem::transmute(fRtsControl) }; + fRtsControl as u64 + }); + __bindgen_bitfield_unit.set(14usize, 1u8, { + let fAbortOnError: u32 = unsafe { ::std::mem::transmute(fAbortOnError) }; + fAbortOnError as u64 + }); + __bindgen_bitfield_unit.set(15usize, 17u8, { + let fDummy2: u32 = unsafe { ::std::mem::transmute(fDummy2) }; + fDummy2 as u64 + }); + __bindgen_bitfield_unit + } +} +pub type DCB = _DCB; +pub type LPDCB = *mut _DCB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _COMMTIMEOUTS { + pub ReadIntervalTimeout: DWORD, + pub ReadTotalTimeoutMultiplier: DWORD, + pub ReadTotalTimeoutConstant: DWORD, + pub WriteTotalTimeoutMultiplier: DWORD, + pub WriteTotalTimeoutConstant: DWORD, +} +pub type COMMTIMEOUTS = _COMMTIMEOUTS; +pub type LPCOMMTIMEOUTS = *mut _COMMTIMEOUTS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _COMMCONFIG { + pub dwSize: DWORD, + pub wVersion: WORD, + pub wReserved: WORD, + pub dcb: DCB, + pub dwProviderSubType: DWORD, + pub dwProviderOffset: DWORD, + pub dwProviderSize: DWORD, + pub wcProviderData: [WCHAR; 1usize], +} +pub type COMMCONFIG = _COMMCONFIG; +pub type LPCOMMCONFIG = *mut _COMMCONFIG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MEMORYSTATUS { + pub dwLength: DWORD, + pub dwMemoryLoad: DWORD, + pub dwTotalPhys: SIZE_T, + pub dwAvailPhys: SIZE_T, + pub dwTotalPageFile: SIZE_T, + pub dwAvailPageFile: SIZE_T, + pub dwTotalVirtual: SIZE_T, + pub dwAvailVirtual: SIZE_T, +} +pub type MEMORYSTATUS = _MEMORYSTATUS; +pub type LPMEMORYSTATUS = *mut _MEMORYSTATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JIT_DEBUG_INFO { + pub dwSize: DWORD, + pub dwProcessorArchitecture: DWORD, + pub dwThreadID: DWORD, + pub dwReserved0: DWORD, + pub lpExceptionAddress: ULONG64, + pub lpExceptionRecord: ULONG64, + pub lpContextRecord: ULONG64, +} +pub type JIT_DEBUG_INFO = _JIT_DEBUG_INFO; +pub type LPJIT_DEBUG_INFO = *mut _JIT_DEBUG_INFO; +pub type JIT_DEBUG_INFO32 = JIT_DEBUG_INFO; +pub type LPJIT_DEBUG_INFO32 = *mut JIT_DEBUG_INFO; +pub type JIT_DEBUG_INFO64 = JIT_DEBUG_INFO; +pub type LPJIT_DEBUG_INFO64 = *mut JIT_DEBUG_INFO; +pub type LPEXCEPTION_RECORD = PEXCEPTION_RECORD; +pub type LPEXCEPTION_POINTERS = PEXCEPTION_POINTERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OFSTRUCT { + pub cBytes: BYTE, + pub fFixedDisk: BYTE, + pub nErrCode: WORD, + pub Reserved1: WORD, + pub Reserved2: WORD, + pub szPathName: [CHAR; 128usize], +} +pub type OFSTRUCT = _OFSTRUCT; +pub type LPOFSTRUCT = *mut _OFSTRUCT; +pub type POFSTRUCT = *mut _OFSTRUCT; +extern "C" { + pub fn WinMain( + hInstance: HINSTANCE, + hPrevInstance: HINSTANCE, + lpCmdLine: LPSTR, + nShowCmd: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wWinMain( + hInstance: HINSTANCE, + hPrevInstance: HINSTANCE, + lpCmdLine: LPWSTR, + nShowCmd: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GlobalAlloc(uFlags: UINT, dwBytes: SIZE_T) -> HGLOBAL; +} +extern "C" { + pub fn GlobalReAlloc(hMem: HGLOBAL, dwBytes: SIZE_T, uFlags: UINT) -> HGLOBAL; +} +extern "C" { + pub fn GlobalSize(hMem: HGLOBAL) -> SIZE_T; +} +extern "C" { + pub fn GlobalUnlock(hMem: HGLOBAL) -> BOOL; +} +extern "C" { + pub fn GlobalLock(hMem: HGLOBAL) -> LPVOID; +} +extern "C" { + pub fn GlobalFlags(hMem: HGLOBAL) -> UINT; +} +extern "C" { + pub fn GlobalHandle(pMem: LPCVOID) -> HGLOBAL; +} +extern "C" { + pub fn GlobalFree(hMem: HGLOBAL) -> HGLOBAL; +} +extern "C" { + pub fn GlobalCompact(dwMinFree: DWORD) -> SIZE_T; +} +extern "C" { + pub fn GlobalFix(hMem: HGLOBAL); +} +extern "C" { + pub fn GlobalUnfix(hMem: HGLOBAL); +} +extern "C" { + pub fn GlobalWire(hMem: HGLOBAL) -> LPVOID; +} +extern "C" { + pub fn GlobalUnWire(hMem: HGLOBAL) -> BOOL; +} +extern "C" { + pub fn GlobalMemoryStatus(lpBuffer: LPMEMORYSTATUS); +} +extern "C" { + pub fn LocalAlloc(uFlags: UINT, uBytes: SIZE_T) -> HLOCAL; +} +extern "C" { + pub fn LocalReAlloc(hMem: HLOCAL, uBytes: SIZE_T, uFlags: UINT) -> HLOCAL; +} +extern "C" { + pub fn LocalLock(hMem: HLOCAL) -> LPVOID; +} +extern "C" { + pub fn LocalHandle(pMem: LPCVOID) -> HLOCAL; +} +extern "C" { + pub fn LocalUnlock(hMem: HLOCAL) -> BOOL; +} +extern "C" { + pub fn LocalSize(hMem: HLOCAL) -> SIZE_T; +} +extern "C" { + pub fn LocalFlags(hMem: HLOCAL) -> UINT; +} +extern "C" { + pub fn LocalFree(hMem: HLOCAL) -> HLOCAL; +} +extern "C" { + pub fn LocalShrink(hMem: HLOCAL, cbNewSize: UINT) -> SIZE_T; +} +extern "C" { + pub fn LocalCompact(uMinFree: UINT) -> SIZE_T; +} +extern "C" { + pub fn GetBinaryTypeA(lpApplicationName: LPCSTR, lpBinaryType: LPDWORD) -> BOOL; +} +extern "C" { + pub fn GetBinaryTypeW(lpApplicationName: LPCWSTR, lpBinaryType: LPDWORD) -> BOOL; +} +extern "C" { + pub fn GetShortPathNameA(lpszLongPath: LPCSTR, lpszShortPath: LPSTR, cchBuffer: DWORD) + -> DWORD; +} +extern "C" { + pub fn GetLongPathNameTransactedA( + lpszShortPath: LPCSTR, + lpszLongPath: LPSTR, + cchBuffer: DWORD, + hTransaction: HANDLE, + ) -> DWORD; +} +extern "C" { + pub fn GetLongPathNameTransactedW( + lpszShortPath: LPCWSTR, + lpszLongPath: LPWSTR, + cchBuffer: DWORD, + hTransaction: HANDLE, + ) -> DWORD; +} +extern "C" { + pub fn GetProcessAffinityMask( + hProcess: HANDLE, + lpProcessAffinityMask: PDWORD_PTR, + lpSystemAffinityMask: PDWORD_PTR, + ) -> BOOL; +} +extern "C" { + pub fn SetProcessAffinityMask(hProcess: HANDLE, dwProcessAffinityMask: DWORD_PTR) -> BOOL; +} +extern "C" { + pub fn GetProcessIoCounters(hProcess: HANDLE, lpIoCounters: PIO_COUNTERS) -> BOOL; +} +extern "C" { + pub fn FatalExit(ExitCode: ::std::os::raw::c_int); +} +extern "C" { + pub fn SetEnvironmentStringsA(NewEnvironment: LPCH) -> BOOL; +} +extern "C" { + pub fn SwitchToFiber(lpFiber: LPVOID); +} +extern "C" { + pub fn DeleteFiber(lpFiber: LPVOID); +} +extern "C" { + pub fn ConvertFiberToThread() -> BOOL; +} +extern "C" { + pub fn CreateFiberEx( + dwStackCommitSize: SIZE_T, + dwStackReserveSize: SIZE_T, + dwFlags: DWORD, + lpStartAddress: LPFIBER_START_ROUTINE, + lpParameter: LPVOID, + ) -> LPVOID; +} +extern "C" { + pub fn ConvertThreadToFiberEx(lpParameter: LPVOID, dwFlags: DWORD) -> LPVOID; +} +extern "C" { + pub fn CreateFiber( + dwStackSize: SIZE_T, + lpStartAddress: LPFIBER_START_ROUTINE, + lpParameter: LPVOID, + ) -> LPVOID; +} +extern "C" { + pub fn ConvertThreadToFiber(lpParameter: LPVOID) -> LPVOID; +} +pub type PUMS_CONTEXT = *mut ::std::os::raw::c_void; +pub type PUMS_COMPLETION_LIST = *mut ::std::os::raw::c_void; +pub use self::_RTL_UMS_THREAD_INFO_CLASS as UMS_THREAD_INFO_CLASS; +pub type PUMS_THREAD_INFO_CLASS = *mut _RTL_UMS_THREAD_INFO_CLASS; +pub use self::_RTL_UMS_SCHEDULER_REASON as UMS_SCHEDULER_REASON; +pub type PUMS_SCHEDULER_ENTRY_POINT = PRTL_UMS_SCHEDULER_ENTRY_POINT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _UMS_SCHEDULER_STARTUP_INFO { + pub UmsVersion: ULONG, + pub CompletionList: PUMS_COMPLETION_LIST, + pub SchedulerProc: PUMS_SCHEDULER_ENTRY_POINT, + pub SchedulerParam: PVOID, +} +pub type UMS_SCHEDULER_STARTUP_INFO = _UMS_SCHEDULER_STARTUP_INFO; +pub type PUMS_SCHEDULER_STARTUP_INFO = *mut _UMS_SCHEDULER_STARTUP_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _UMS_SYSTEM_THREAD_INFORMATION { + pub UmsVersion: ULONG, + pub __bindgen_anon_1: _UMS_SYSTEM_THREAD_INFORMATION__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _UMS_SYSTEM_THREAD_INFORMATION__bindgen_ty_1 { + pub __bindgen_anon_1: _UMS_SYSTEM_THREAD_INFORMATION__bindgen_ty_1__bindgen_ty_1, + pub ThreadUmsFlags: ULONG, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _UMS_SYSTEM_THREAD_INFORMATION__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 3usize], +} +impl _UMS_SYSTEM_THREAD_INFORMATION__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn IsUmsSchedulerThread(&self) -> ULONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_IsUmsSchedulerThread(&mut self, val: ULONG) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn IsUmsWorkerThread(&self) -> ULONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_IsUmsWorkerThread(&mut self, val: ULONG) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + IsUmsSchedulerThread: ULONG, + IsUmsWorkerThread: ULONG, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let IsUmsSchedulerThread: u32 = unsafe { ::std::mem::transmute(IsUmsSchedulerThread) }; + IsUmsSchedulerThread as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let IsUmsWorkerThread: u32 = unsafe { ::std::mem::transmute(IsUmsWorkerThread) }; + IsUmsWorkerThread as u64 + }); + __bindgen_bitfield_unit + } +} +pub type UMS_SYSTEM_THREAD_INFORMATION = _UMS_SYSTEM_THREAD_INFORMATION; +pub type PUMS_SYSTEM_THREAD_INFORMATION = *mut _UMS_SYSTEM_THREAD_INFORMATION; +extern "C" { + pub fn CreateUmsCompletionList(UmsCompletionList: *mut PUMS_COMPLETION_LIST) -> BOOL; +} +extern "C" { + pub fn DequeueUmsCompletionListItems( + UmsCompletionList: PUMS_COMPLETION_LIST, + WaitTimeOut: DWORD, + UmsThreadList: *mut PUMS_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn GetUmsCompletionListEvent( + UmsCompletionList: PUMS_COMPLETION_LIST, + UmsCompletionEvent: PHANDLE, + ) -> BOOL; +} +extern "C" { + pub fn ExecuteUmsThread(UmsThread: PUMS_CONTEXT) -> BOOL; +} +extern "C" { + pub fn UmsThreadYield(SchedulerParam: PVOID) -> BOOL; +} +extern "C" { + pub fn DeleteUmsCompletionList(UmsCompletionList: PUMS_COMPLETION_LIST) -> BOOL; +} +extern "C" { + pub fn GetCurrentUmsThread() -> PUMS_CONTEXT; +} +extern "C" { + pub fn GetNextUmsListItem(UmsContext: PUMS_CONTEXT) -> PUMS_CONTEXT; +} +extern "C" { + pub fn QueryUmsThreadInformation( + UmsThread: PUMS_CONTEXT, + UmsThreadInfoClass: UMS_THREAD_INFO_CLASS, + UmsThreadInformation: PVOID, + UmsThreadInformationLength: ULONG, + ReturnLength: PULONG, + ) -> BOOL; +} +extern "C" { + pub fn SetUmsThreadInformation( + UmsThread: PUMS_CONTEXT, + UmsThreadInfoClass: UMS_THREAD_INFO_CLASS, + UmsThreadInformation: PVOID, + UmsThreadInformationLength: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn DeleteUmsThreadContext(UmsThread: PUMS_CONTEXT) -> BOOL; +} +extern "C" { + pub fn CreateUmsThreadContext(lpUmsThread: *mut PUMS_CONTEXT) -> BOOL; +} +extern "C" { + pub fn EnterUmsSchedulingMode(SchedulerStartupInfo: PUMS_SCHEDULER_STARTUP_INFO) -> BOOL; +} +extern "C" { + pub fn GetUmsSystemThreadInformation( + ThreadHandle: HANDLE, + SystemThreadInfo: PUMS_SYSTEM_THREAD_INFORMATION, + ) -> BOOL; +} +extern "C" { + pub fn SetThreadAffinityMask(hThread: HANDLE, dwThreadAffinityMask: DWORD_PTR) -> DWORD_PTR; +} +extern "C" { + pub fn SetProcessDEPPolicy(dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn GetProcessDEPPolicy(hProcess: HANDLE, lpFlags: LPDWORD, lpPermanent: PBOOL) -> BOOL; +} +extern "C" { + pub fn RequestWakeupLatency(latency: LATENCY_TIME) -> BOOL; +} +extern "C" { + pub fn IsSystemResumeAutomatic() -> BOOL; +} +extern "C" { + pub fn GetThreadSelectorEntry( + hThread: HANDLE, + dwSelector: DWORD, + lpSelectorEntry: LPLDT_ENTRY, + ) -> BOOL; +} +extern "C" { + pub fn SetThreadExecutionState(esFlags: EXECUTION_STATE) -> EXECUTION_STATE; +} +pub type POWER_REQUEST_CONTEXT = REASON_CONTEXT; +pub type PPOWER_REQUEST_CONTEXT = *mut REASON_CONTEXT; +pub type LPPOWER_REQUEST_CONTEXT = *mut REASON_CONTEXT; +extern "C" { + pub fn PowerCreateRequest(Context: PREASON_CONTEXT) -> HANDLE; +} +extern "C" { + pub fn PowerSetRequest(PowerRequest: HANDLE, RequestType: POWER_REQUEST_TYPE) -> BOOL; +} +extern "C" { + pub fn PowerClearRequest(PowerRequest: HANDLE, RequestType: POWER_REQUEST_TYPE) -> BOOL; +} +extern "C" { + pub fn SetFileCompletionNotificationModes(FileHandle: HANDLE, Flags: UCHAR) -> BOOL; +} +extern "C" { + pub fn Wow64GetThreadSelectorEntry( + hThread: HANDLE, + dwSelector: DWORD, + lpSelectorEntry: PWOW64_LDT_ENTRY, + ) -> BOOL; +} +extern "C" { + pub fn DebugSetProcessKillOnExit(KillOnExit: BOOL) -> BOOL; +} +extern "C" { + pub fn DebugBreakProcess(Process: HANDLE) -> BOOL; +} +extern "C" { + pub fn PulseEvent(hEvent: HANDLE) -> BOOL; +} +extern "C" { + pub fn GlobalDeleteAtom(nAtom: ATOM) -> ATOM; +} +extern "C" { + pub fn InitAtomTable(nSize: DWORD) -> BOOL; +} +extern "C" { + pub fn DeleteAtom(nAtom: ATOM) -> ATOM; +} +extern "C" { + pub fn SetHandleCount(uNumber: UINT) -> UINT; +} +extern "C" { + pub fn RequestDeviceWakeup(hDevice: HANDLE) -> BOOL; +} +extern "C" { + pub fn CancelDeviceWakeupRequest(hDevice: HANDLE) -> BOOL; +} +extern "C" { + pub fn GetDevicePowerState(hDevice: HANDLE, pfOn: *mut BOOL) -> BOOL; +} +extern "C" { + pub fn SetMessageWaitingIndicator(hMsgIndicator: HANDLE, ulMsgCount: ULONG) -> BOOL; +} +extern "C" { + pub fn SetFileShortNameA(hFile: HANDLE, lpShortName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn SetFileShortNameW(hFile: HANDLE, lpShortName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn LoadModule(lpModuleName: LPCSTR, lpParameterBlock: LPVOID) -> DWORD; +} +extern "C" { + pub fn WinExec(lpCmdLine: LPCSTR, uCmdShow: UINT) -> UINT; +} +extern "C" { + pub fn ClearCommBreak(hFile: HANDLE) -> BOOL; +} +extern "C" { + pub fn ClearCommError(hFile: HANDLE, lpErrors: LPDWORD, lpStat: LPCOMSTAT) -> BOOL; +} +extern "C" { + pub fn SetupComm(hFile: HANDLE, dwInQueue: DWORD, dwOutQueue: DWORD) -> BOOL; +} +extern "C" { + pub fn EscapeCommFunction(hFile: HANDLE, dwFunc: DWORD) -> BOOL; +} +extern "C" { + pub fn GetCommConfig(hCommDev: HANDLE, lpCC: LPCOMMCONFIG, lpdwSize: LPDWORD) -> BOOL; +} +extern "C" { + pub fn GetCommMask(hFile: HANDLE, lpEvtMask: LPDWORD) -> BOOL; +} +extern "C" { + pub fn GetCommProperties(hFile: HANDLE, lpCommProp: LPCOMMPROP) -> BOOL; +} +extern "C" { + pub fn GetCommModemStatus(hFile: HANDLE, lpModemStat: LPDWORD) -> BOOL; +} +extern "C" { + pub fn GetCommState(hFile: HANDLE, lpDCB: LPDCB) -> BOOL; +} +extern "C" { + pub fn GetCommTimeouts(hFile: HANDLE, lpCommTimeouts: LPCOMMTIMEOUTS) -> BOOL; +} +extern "C" { + pub fn PurgeComm(hFile: HANDLE, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn SetCommBreak(hFile: HANDLE) -> BOOL; +} +extern "C" { + pub fn SetCommConfig(hCommDev: HANDLE, lpCC: LPCOMMCONFIG, dwSize: DWORD) -> BOOL; +} +extern "C" { + pub fn SetCommMask(hFile: HANDLE, dwEvtMask: DWORD) -> BOOL; +} +extern "C" { + pub fn SetCommState(hFile: HANDLE, lpDCB: LPDCB) -> BOOL; +} +extern "C" { + pub fn SetCommTimeouts(hFile: HANDLE, lpCommTimeouts: LPCOMMTIMEOUTS) -> BOOL; +} +extern "C" { + pub fn TransmitCommChar(hFile: HANDLE, cChar: ::std::os::raw::c_char) -> BOOL; +} +extern "C" { + pub fn WaitCommEvent(hFile: HANDLE, lpEvtMask: LPDWORD, lpOverlapped: LPOVERLAPPED) -> BOOL; +} +extern "C" { + pub fn OpenCommPort( + uPortNumber: ULONG, + dwDesiredAccess: DWORD, + dwFlagsAndAttributes: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn GetCommPorts( + lpPortNumbers: PULONG, + uPortNumbersCount: ULONG, + puPortNumbersFound: PULONG, + ) -> ULONG; +} +extern "C" { + pub fn SetTapePosition( + hDevice: HANDLE, + dwPositionMethod: DWORD, + dwPartition: DWORD, + dwOffsetLow: DWORD, + dwOffsetHigh: DWORD, + bImmediate: BOOL, + ) -> DWORD; +} +extern "C" { + pub fn GetTapePosition( + hDevice: HANDLE, + dwPositionType: DWORD, + lpdwPartition: LPDWORD, + lpdwOffsetLow: LPDWORD, + lpdwOffsetHigh: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn PrepareTape(hDevice: HANDLE, dwOperation: DWORD, bImmediate: BOOL) -> DWORD; +} +extern "C" { + pub fn EraseTape(hDevice: HANDLE, dwEraseType: DWORD, bImmediate: BOOL) -> DWORD; +} +extern "C" { + pub fn CreateTapePartition( + hDevice: HANDLE, + dwPartitionMethod: DWORD, + dwCount: DWORD, + dwSize: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn WriteTapemark( + hDevice: HANDLE, + dwTapemarkType: DWORD, + dwTapemarkCount: DWORD, + bImmediate: BOOL, + ) -> DWORD; +} +extern "C" { + pub fn GetTapeStatus(hDevice: HANDLE) -> DWORD; +} +extern "C" { + pub fn GetTapeParameters( + hDevice: HANDLE, + dwOperation: DWORD, + lpdwSize: LPDWORD, + lpTapeInformation: LPVOID, + ) -> DWORD; +} +extern "C" { + pub fn SetTapeParameters( + hDevice: HANDLE, + dwOperation: DWORD, + lpTapeInformation: LPVOID, + ) -> DWORD; +} +extern "C" { + pub fn MulDiv( + nNumber: ::std::os::raw::c_int, + nNumerator: ::std::os::raw::c_int, + nDenominator: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +pub const _DEP_SYSTEM_POLICY_TYPE_DEPPolicyAlwaysOff: _DEP_SYSTEM_POLICY_TYPE = 0; +pub const _DEP_SYSTEM_POLICY_TYPE_DEPPolicyAlwaysOn: _DEP_SYSTEM_POLICY_TYPE = 1; +pub const _DEP_SYSTEM_POLICY_TYPE_DEPPolicyOptIn: _DEP_SYSTEM_POLICY_TYPE = 2; +pub const _DEP_SYSTEM_POLICY_TYPE_DEPPolicyOptOut: _DEP_SYSTEM_POLICY_TYPE = 3; +pub const _DEP_SYSTEM_POLICY_TYPE_DEPTotalPolicyCount: _DEP_SYSTEM_POLICY_TYPE = 4; +pub type _DEP_SYSTEM_POLICY_TYPE = ::std::os::raw::c_int; +pub use self::_DEP_SYSTEM_POLICY_TYPE as DEP_SYSTEM_POLICY_TYPE; +extern "C" { + pub fn GetSystemDEPPolicy() -> DEP_SYSTEM_POLICY_TYPE; +} +extern "C" { + pub fn GetSystemRegistryQuota(pdwQuotaAllowed: PDWORD, pdwQuotaUsed: PDWORD) -> BOOL; +} +extern "C" { + pub fn FileTimeToDosDateTime( + lpFileTime: *const FILETIME, + lpFatDate: LPWORD, + lpFatTime: LPWORD, + ) -> BOOL; +} +extern "C" { + pub fn DosDateTimeToFileTime(wFatDate: WORD, wFatTime: WORD, lpFileTime: LPFILETIME) -> BOOL; +} +extern "C" { + pub fn FormatMessageA( + dwFlags: DWORD, + lpSource: LPCVOID, + dwMessageId: DWORD, + dwLanguageId: DWORD, + lpBuffer: LPSTR, + nSize: DWORD, + Arguments: *mut va_list, + ) -> DWORD; +} +extern "C" { + pub fn FormatMessageW( + dwFlags: DWORD, + lpSource: LPCVOID, + dwMessageId: DWORD, + dwLanguageId: DWORD, + lpBuffer: LPWSTR, + nSize: DWORD, + Arguments: *mut va_list, + ) -> DWORD; +} +extern "C" { + pub fn CreateMailslotA( + lpName: LPCSTR, + nMaxMessageSize: DWORD, + lReadTimeout: DWORD, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + ) -> HANDLE; +} +extern "C" { + pub fn CreateMailslotW( + lpName: LPCWSTR, + nMaxMessageSize: DWORD, + lReadTimeout: DWORD, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + ) -> HANDLE; +} +extern "C" { + pub fn GetMailslotInfo( + hMailslot: HANDLE, + lpMaxMessageSize: LPDWORD, + lpNextSize: LPDWORD, + lpMessageCount: LPDWORD, + lpReadTimeout: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetMailslotInfo(hMailslot: HANDLE, lReadTimeout: DWORD) -> BOOL; +} +extern "C" { + pub fn EncryptFileA(lpFileName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn EncryptFileW(lpFileName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn DecryptFileA(lpFileName: LPCSTR, dwReserved: DWORD) -> BOOL; +} +extern "C" { + pub fn DecryptFileW(lpFileName: LPCWSTR, dwReserved: DWORD) -> BOOL; +} +extern "C" { + pub fn FileEncryptionStatusA(lpFileName: LPCSTR, lpStatus: LPDWORD) -> BOOL; +} +extern "C" { + pub fn FileEncryptionStatusW(lpFileName: LPCWSTR, lpStatus: LPDWORD) -> BOOL; +} +pub type PFE_EXPORT_FUNC = ::std::option::Option< + unsafe extern "C" fn(pbData: PBYTE, pvCallbackContext: PVOID, ulLength: ULONG) -> DWORD, +>; +pub type PFE_IMPORT_FUNC = ::std::option::Option< + unsafe extern "C" fn(pbData: PBYTE, pvCallbackContext: PVOID, ulLength: PULONG) -> DWORD, +>; +extern "C" { + pub fn OpenEncryptedFileRawA( + lpFileName: LPCSTR, + ulFlags: ULONG, + pvContext: *mut PVOID, + ) -> DWORD; +} +extern "C" { + pub fn OpenEncryptedFileRawW( + lpFileName: LPCWSTR, + ulFlags: ULONG, + pvContext: *mut PVOID, + ) -> DWORD; +} +extern "C" { + pub fn ReadEncryptedFileRaw( + pfExportCallback: PFE_EXPORT_FUNC, + pvCallbackContext: PVOID, + pvContext: PVOID, + ) -> DWORD; +} +extern "C" { + pub fn WriteEncryptedFileRaw( + pfImportCallback: PFE_IMPORT_FUNC, + pvCallbackContext: PVOID, + pvContext: PVOID, + ) -> DWORD; +} +extern "C" { + pub fn CloseEncryptedFileRaw(pvContext: PVOID); +} +extern "C" { + pub fn lstrcmpA(lpString1: LPCSTR, lpString2: LPCSTR) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn lstrcmpW(lpString1: LPCWSTR, lpString2: LPCWSTR) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn lstrcmpiA(lpString1: LPCSTR, lpString2: LPCSTR) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn lstrcmpiW(lpString1: LPCWSTR, lpString2: LPCWSTR) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn lstrcpynA( + lpString1: LPSTR, + lpString2: LPCSTR, + iMaxLength: ::std::os::raw::c_int, + ) -> LPSTR; +} +extern "C" { + pub fn lstrcpynW( + lpString1: LPWSTR, + lpString2: LPCWSTR, + iMaxLength: ::std::os::raw::c_int, + ) -> LPWSTR; +} +extern "C" { + pub fn lstrcpyA(lpString1: LPSTR, lpString2: LPCSTR) -> LPSTR; +} +extern "C" { + pub fn lstrcpyW(lpString1: LPWSTR, lpString2: LPCWSTR) -> LPWSTR; +} +extern "C" { + pub fn lstrcatA(lpString1: LPSTR, lpString2: LPCSTR) -> LPSTR; +} +extern "C" { + pub fn lstrcatW(lpString1: LPWSTR, lpString2: LPCWSTR) -> LPWSTR; +} +extern "C" { + pub fn lstrlenA(lpString: LPCSTR) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn lstrlenW(lpString: LPCWSTR) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn OpenFile(lpFileName: LPCSTR, lpReOpenBuff: LPOFSTRUCT, uStyle: UINT) -> HFILE; +} +extern "C" { + pub fn _lopen(lpPathName: LPCSTR, iReadWrite: ::std::os::raw::c_int) -> HFILE; +} +extern "C" { + pub fn _lcreat(lpPathName: LPCSTR, iAttribute: ::std::os::raw::c_int) -> HFILE; +} +extern "C" { + pub fn _lread(hFile: HFILE, lpBuffer: LPVOID, uBytes: UINT) -> UINT; +} +extern "C" { + pub fn _lwrite(hFile: HFILE, lpBuffer: LPCCH, uBytes: UINT) -> UINT; +} +extern "C" { + pub fn _hread( + hFile: HFILE, + lpBuffer: LPVOID, + lBytes: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _hwrite( + hFile: HFILE, + lpBuffer: LPCCH, + lBytes: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _lclose(hFile: HFILE) -> HFILE; +} +extern "C" { + pub fn _llseek(hFile: HFILE, lOffset: LONG, iOrigin: ::std::os::raw::c_int) -> LONG; +} +extern "C" { + pub fn IsTextUnicode( + lpv: *const ::std::os::raw::c_void, + iSize: ::std::os::raw::c_int, + lpiResult: LPINT, + ) -> BOOL; +} +extern "C" { + pub fn BackupRead( + hFile: HANDLE, + lpBuffer: LPBYTE, + nNumberOfBytesToRead: DWORD, + lpNumberOfBytesRead: LPDWORD, + bAbort: BOOL, + bProcessSecurity: BOOL, + lpContext: *mut LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn BackupSeek( + hFile: HANDLE, + dwLowBytesToSeek: DWORD, + dwHighBytesToSeek: DWORD, + lpdwLowByteSeeked: LPDWORD, + lpdwHighByteSeeked: LPDWORD, + lpContext: *mut LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn BackupWrite( + hFile: HANDLE, + lpBuffer: LPBYTE, + nNumberOfBytesToWrite: DWORD, + lpNumberOfBytesWritten: LPDWORD, + bAbort: BOOL, + bProcessSecurity: BOOL, + lpContext: *mut LPVOID, + ) -> BOOL; +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _WIN32_STREAM_ID { + pub dwStreamId: DWORD, + pub dwStreamAttributes: DWORD, + pub Size: LARGE_INTEGER, + pub dwStreamNameSize: DWORD, + pub cStreamName: [WCHAR; 1usize], +} +pub type WIN32_STREAM_ID = _WIN32_STREAM_ID; +pub type LPWIN32_STREAM_ID = *mut _WIN32_STREAM_ID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STARTUPINFOEXA { + pub StartupInfo: STARTUPINFOA, + pub lpAttributeList: LPPROC_THREAD_ATTRIBUTE_LIST, +} +pub type STARTUPINFOEXA = _STARTUPINFOEXA; +pub type LPSTARTUPINFOEXA = *mut _STARTUPINFOEXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STARTUPINFOEXW { + pub StartupInfo: STARTUPINFOW, + pub lpAttributeList: LPPROC_THREAD_ATTRIBUTE_LIST, +} +pub type STARTUPINFOEXW = _STARTUPINFOEXW; +pub type LPSTARTUPINFOEXW = *mut _STARTUPINFOEXW; +pub type STARTUPINFOEX = STARTUPINFOEXA; +pub type LPSTARTUPINFOEX = LPSTARTUPINFOEXA; +extern "C" { + pub fn OpenMutexA(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCSTR) -> HANDLE; +} +extern "C" { + pub fn CreateSemaphoreA( + lpSemaphoreAttributes: LPSECURITY_ATTRIBUTES, + lInitialCount: LONG, + lMaximumCount: LONG, + lpName: LPCSTR, + ) -> HANDLE; +} +extern "C" { + pub fn OpenSemaphoreA(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCSTR) -> HANDLE; +} +extern "C" { + pub fn CreateWaitableTimerA( + lpTimerAttributes: LPSECURITY_ATTRIBUTES, + bManualReset: BOOL, + lpTimerName: LPCSTR, + ) -> HANDLE; +} +extern "C" { + pub fn OpenWaitableTimerA( + dwDesiredAccess: DWORD, + bInheritHandle: BOOL, + lpTimerName: LPCSTR, + ) -> HANDLE; +} +extern "C" { + pub fn CreateSemaphoreExA( + lpSemaphoreAttributes: LPSECURITY_ATTRIBUTES, + lInitialCount: LONG, + lMaximumCount: LONG, + lpName: LPCSTR, + dwFlags: DWORD, + dwDesiredAccess: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn CreateWaitableTimerExA( + lpTimerAttributes: LPSECURITY_ATTRIBUTES, + lpTimerName: LPCSTR, + dwFlags: DWORD, + dwDesiredAccess: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn CreateFileMappingA( + hFile: HANDLE, + lpFileMappingAttributes: LPSECURITY_ATTRIBUTES, + flProtect: DWORD, + dwMaximumSizeHigh: DWORD, + dwMaximumSizeLow: DWORD, + lpName: LPCSTR, + ) -> HANDLE; +} +extern "C" { + pub fn CreateFileMappingNumaA( + hFile: HANDLE, + lpFileMappingAttributes: LPSECURITY_ATTRIBUTES, + flProtect: DWORD, + dwMaximumSizeHigh: DWORD, + dwMaximumSizeLow: DWORD, + lpName: LPCSTR, + nndPreferred: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn OpenFileMappingA(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCSTR) + -> HANDLE; +} +extern "C" { + pub fn GetLogicalDriveStringsA(nBufferLength: DWORD, lpBuffer: LPSTR) -> DWORD; +} +extern "C" { + pub fn LoadPackagedLibrary(lpwLibFileName: LPCWSTR, Reserved: DWORD) -> HMODULE; +} +extern "C" { + pub fn QueryFullProcessImageNameA( + hProcess: HANDLE, + dwFlags: DWORD, + lpExeName: LPSTR, + lpdwSize: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn QueryFullProcessImageNameW( + hProcess: HANDLE, + dwFlags: DWORD, + lpExeName: LPWSTR, + lpdwSize: PDWORD, + ) -> BOOL; +} +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeParentProcess: _PROC_THREAD_ATTRIBUTE_NUM = + 0; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeHandleList: _PROC_THREAD_ATTRIBUTE_NUM = 2; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeGroupAffinity: _PROC_THREAD_ATTRIBUTE_NUM = + 3; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributePreferredNode: _PROC_THREAD_ATTRIBUTE_NUM = + 4; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeIdealProcessor: _PROC_THREAD_ATTRIBUTE_NUM = + 5; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeUmsThread: _PROC_THREAD_ATTRIBUTE_NUM = 6; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeMitigationPolicy: + _PROC_THREAD_ATTRIBUTE_NUM = 7; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeSecurityCapabilities: + _PROC_THREAD_ATTRIBUTE_NUM = 9; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeProtectionLevel: + _PROC_THREAD_ATTRIBUTE_NUM = 11; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeJobList: _PROC_THREAD_ATTRIBUTE_NUM = 13; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeChildProcessPolicy: + _PROC_THREAD_ATTRIBUTE_NUM = 14; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeAllApplicationPackagesPolicy: + _PROC_THREAD_ATTRIBUTE_NUM = 15; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeWin32kFilter: _PROC_THREAD_ATTRIBUTE_NUM = + 16; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeSafeOpenPromptOriginClaim: + _PROC_THREAD_ATTRIBUTE_NUM = 17; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeDesktopAppPolicy: + _PROC_THREAD_ATTRIBUTE_NUM = 18; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributePseudoConsole: _PROC_THREAD_ATTRIBUTE_NUM = + 22; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeMitigationAuditPolicy: + _PROC_THREAD_ATTRIBUTE_NUM = 24; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeMachineType: _PROC_THREAD_ATTRIBUTE_NUM = + 25; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeComponentFilter: + _PROC_THREAD_ATTRIBUTE_NUM = 26; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeEnableOptionalXStateFeatures: + _PROC_THREAD_ATTRIBUTE_NUM = 27; +pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeTrustedApp: _PROC_THREAD_ATTRIBUTE_NUM = 29; +pub type _PROC_THREAD_ATTRIBUTE_NUM = ::std::os::raw::c_int; +pub use self::_PROC_THREAD_ATTRIBUTE_NUM as PROC_THREAD_ATTRIBUTE_NUM; +extern "C" { + pub fn GetStartupInfoA(lpStartupInfo: LPSTARTUPINFOA); +} +extern "C" { + pub fn GetFirmwareEnvironmentVariableA( + lpName: LPCSTR, + lpGuid: LPCSTR, + pBuffer: PVOID, + nSize: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetFirmwareEnvironmentVariableW( + lpName: LPCWSTR, + lpGuid: LPCWSTR, + pBuffer: PVOID, + nSize: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetFirmwareEnvironmentVariableExA( + lpName: LPCSTR, + lpGuid: LPCSTR, + pBuffer: PVOID, + nSize: DWORD, + pdwAttribubutes: PDWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetFirmwareEnvironmentVariableExW( + lpName: LPCWSTR, + lpGuid: LPCWSTR, + pBuffer: PVOID, + nSize: DWORD, + pdwAttribubutes: PDWORD, + ) -> DWORD; +} +extern "C" { + pub fn SetFirmwareEnvironmentVariableA( + lpName: LPCSTR, + lpGuid: LPCSTR, + pValue: PVOID, + nSize: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetFirmwareEnvironmentVariableW( + lpName: LPCWSTR, + lpGuid: LPCWSTR, + pValue: PVOID, + nSize: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetFirmwareEnvironmentVariableExA( + lpName: LPCSTR, + lpGuid: LPCSTR, + pValue: PVOID, + nSize: DWORD, + dwAttributes: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetFirmwareEnvironmentVariableExW( + lpName: LPCWSTR, + lpGuid: LPCWSTR, + pValue: PVOID, + nSize: DWORD, + dwAttributes: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetFirmwareType(FirmwareType: PFIRMWARE_TYPE) -> BOOL; +} +extern "C" { + pub fn IsNativeVhdBoot(NativeVhdBoot: PBOOL) -> BOOL; +} +extern "C" { + pub fn FindResourceA(hModule: HMODULE, lpName: LPCSTR, lpType: LPCSTR) -> HRSRC; +} +extern "C" { + pub fn FindResourceExA( + hModule: HMODULE, + lpType: LPCSTR, + lpName: LPCSTR, + wLanguage: WORD, + ) -> HRSRC; +} +extern "C" { + pub fn EnumResourceTypesA( + hModule: HMODULE, + lpEnumFunc: ENUMRESTYPEPROCA, + lParam: LONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn EnumResourceTypesW( + hModule: HMODULE, + lpEnumFunc: ENUMRESTYPEPROCW, + lParam: LONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn EnumResourceLanguagesA( + hModule: HMODULE, + lpType: LPCSTR, + lpName: LPCSTR, + lpEnumFunc: ENUMRESLANGPROCA, + lParam: LONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn EnumResourceLanguagesW( + hModule: HMODULE, + lpType: LPCWSTR, + lpName: LPCWSTR, + lpEnumFunc: ENUMRESLANGPROCW, + lParam: LONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn BeginUpdateResourceA(pFileName: LPCSTR, bDeleteExistingResources: BOOL) -> HANDLE; +} +extern "C" { + pub fn BeginUpdateResourceW(pFileName: LPCWSTR, bDeleteExistingResources: BOOL) -> HANDLE; +} +extern "C" { + pub fn UpdateResourceA( + hUpdate: HANDLE, + lpType: LPCSTR, + lpName: LPCSTR, + wLanguage: WORD, + lpData: LPVOID, + cb: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn UpdateResourceW( + hUpdate: HANDLE, + lpType: LPCWSTR, + lpName: LPCWSTR, + wLanguage: WORD, + lpData: LPVOID, + cb: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn EndUpdateResourceA(hUpdate: HANDLE, fDiscard: BOOL) -> BOOL; +} +extern "C" { + pub fn EndUpdateResourceW(hUpdate: HANDLE, fDiscard: BOOL) -> BOOL; +} +extern "C" { + pub fn GlobalAddAtomA(lpString: LPCSTR) -> ATOM; +} +extern "C" { + pub fn GlobalAddAtomW(lpString: LPCWSTR) -> ATOM; +} +extern "C" { + pub fn GlobalAddAtomExA(lpString: LPCSTR, Flags: DWORD) -> ATOM; +} +extern "C" { + pub fn GlobalAddAtomExW(lpString: LPCWSTR, Flags: DWORD) -> ATOM; +} +extern "C" { + pub fn GlobalFindAtomA(lpString: LPCSTR) -> ATOM; +} +extern "C" { + pub fn GlobalFindAtomW(lpString: LPCWSTR) -> ATOM; +} +extern "C" { + pub fn GlobalGetAtomNameA(nAtom: ATOM, lpBuffer: LPSTR, nSize: ::std::os::raw::c_int) -> UINT; +} +extern "C" { + pub fn GlobalGetAtomNameW(nAtom: ATOM, lpBuffer: LPWSTR, nSize: ::std::os::raw::c_int) -> UINT; +} +extern "C" { + pub fn AddAtomA(lpString: LPCSTR) -> ATOM; +} +extern "C" { + pub fn AddAtomW(lpString: LPCWSTR) -> ATOM; +} +extern "C" { + pub fn FindAtomA(lpString: LPCSTR) -> ATOM; +} +extern "C" { + pub fn FindAtomW(lpString: LPCWSTR) -> ATOM; +} +extern "C" { + pub fn GetAtomNameA(nAtom: ATOM, lpBuffer: LPSTR, nSize: ::std::os::raw::c_int) -> UINT; +} +extern "C" { + pub fn GetAtomNameW(nAtom: ATOM, lpBuffer: LPWSTR, nSize: ::std::os::raw::c_int) -> UINT; +} +extern "C" { + pub fn GetProfileIntA(lpAppName: LPCSTR, lpKeyName: LPCSTR, nDefault: INT) -> UINT; +} +extern "C" { + pub fn GetProfileIntW(lpAppName: LPCWSTR, lpKeyName: LPCWSTR, nDefault: INT) -> UINT; +} +extern "C" { + pub fn GetProfileStringA( + lpAppName: LPCSTR, + lpKeyName: LPCSTR, + lpDefault: LPCSTR, + lpReturnedString: LPSTR, + nSize: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetProfileStringW( + lpAppName: LPCWSTR, + lpKeyName: LPCWSTR, + lpDefault: LPCWSTR, + lpReturnedString: LPWSTR, + nSize: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn WriteProfileStringA(lpAppName: LPCSTR, lpKeyName: LPCSTR, lpString: LPCSTR) -> BOOL; +} +extern "C" { + pub fn WriteProfileStringW(lpAppName: LPCWSTR, lpKeyName: LPCWSTR, lpString: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn GetProfileSectionA(lpAppName: LPCSTR, lpReturnedString: LPSTR, nSize: DWORD) -> DWORD; +} +extern "C" { + pub fn GetProfileSectionW(lpAppName: LPCWSTR, lpReturnedString: LPWSTR, nSize: DWORD) -> DWORD; +} +extern "C" { + pub fn WriteProfileSectionA(lpAppName: LPCSTR, lpString: LPCSTR) -> BOOL; +} +extern "C" { + pub fn WriteProfileSectionW(lpAppName: LPCWSTR, lpString: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn GetPrivateProfileIntA( + lpAppName: LPCSTR, + lpKeyName: LPCSTR, + nDefault: INT, + lpFileName: LPCSTR, + ) -> UINT; +} +extern "C" { + pub fn GetPrivateProfileIntW( + lpAppName: LPCWSTR, + lpKeyName: LPCWSTR, + nDefault: INT, + lpFileName: LPCWSTR, + ) -> UINT; +} +extern "C" { + pub fn GetPrivateProfileStringA( + lpAppName: LPCSTR, + lpKeyName: LPCSTR, + lpDefault: LPCSTR, + lpReturnedString: LPSTR, + nSize: DWORD, + lpFileName: LPCSTR, + ) -> DWORD; +} +extern "C" { + pub fn GetPrivateProfileStringW( + lpAppName: LPCWSTR, + lpKeyName: LPCWSTR, + lpDefault: LPCWSTR, + lpReturnedString: LPWSTR, + nSize: DWORD, + lpFileName: LPCWSTR, + ) -> DWORD; +} +extern "C" { + pub fn WritePrivateProfileStringA( + lpAppName: LPCSTR, + lpKeyName: LPCSTR, + lpString: LPCSTR, + lpFileName: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn WritePrivateProfileStringW( + lpAppName: LPCWSTR, + lpKeyName: LPCWSTR, + lpString: LPCWSTR, + lpFileName: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn GetPrivateProfileSectionA( + lpAppName: LPCSTR, + lpReturnedString: LPSTR, + nSize: DWORD, + lpFileName: LPCSTR, + ) -> DWORD; +} +extern "C" { + pub fn GetPrivateProfileSectionW( + lpAppName: LPCWSTR, + lpReturnedString: LPWSTR, + nSize: DWORD, + lpFileName: LPCWSTR, + ) -> DWORD; +} +extern "C" { + pub fn WritePrivateProfileSectionA( + lpAppName: LPCSTR, + lpString: LPCSTR, + lpFileName: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn WritePrivateProfileSectionW( + lpAppName: LPCWSTR, + lpString: LPCWSTR, + lpFileName: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn GetPrivateProfileSectionNamesA( + lpszReturnBuffer: LPSTR, + nSize: DWORD, + lpFileName: LPCSTR, + ) -> DWORD; +} +extern "C" { + pub fn GetPrivateProfileSectionNamesW( + lpszReturnBuffer: LPWSTR, + nSize: DWORD, + lpFileName: LPCWSTR, + ) -> DWORD; +} +extern "C" { + pub fn GetPrivateProfileStructA( + lpszSection: LPCSTR, + lpszKey: LPCSTR, + lpStruct: LPVOID, + uSizeStruct: UINT, + szFile: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn GetPrivateProfileStructW( + lpszSection: LPCWSTR, + lpszKey: LPCWSTR, + lpStruct: LPVOID, + uSizeStruct: UINT, + szFile: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn WritePrivateProfileStructA( + lpszSection: LPCSTR, + lpszKey: LPCSTR, + lpStruct: LPVOID, + uSizeStruct: UINT, + szFile: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn WritePrivateProfileStructW( + lpszSection: LPCWSTR, + lpszKey: LPCWSTR, + lpStruct: LPVOID, + uSizeStruct: UINT, + szFile: LPCWSTR, + ) -> BOOL; +} +pub type PGET_SYSTEM_WOW64_DIRECTORY_A = + ::std::option::Option UINT>; +pub type PGET_SYSTEM_WOW64_DIRECTORY_W = + ::std::option::Option UINT>; +extern "C" { + pub fn SetDllDirectoryA(lpPathName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn SetDllDirectoryW(lpPathName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn GetDllDirectoryA(nBufferLength: DWORD, lpBuffer: LPSTR) -> DWORD; +} +extern "C" { + pub fn GetDllDirectoryW(nBufferLength: DWORD, lpBuffer: LPWSTR) -> DWORD; +} +extern "C" { + pub fn SetSearchPathMode(Flags: DWORD) -> BOOL; +} +extern "C" { + pub fn CreateDirectoryExA( + lpTemplateDirectory: LPCSTR, + lpNewDirectory: LPCSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + ) -> BOOL; +} +extern "C" { + pub fn CreateDirectoryExW( + lpTemplateDirectory: LPCWSTR, + lpNewDirectory: LPCWSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + ) -> BOOL; +} +extern "C" { + pub fn CreateDirectoryTransactedA( + lpTemplateDirectory: LPCSTR, + lpNewDirectory: LPCSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + hTransaction: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn CreateDirectoryTransactedW( + lpTemplateDirectory: LPCWSTR, + lpNewDirectory: LPCWSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + hTransaction: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn RemoveDirectoryTransactedA(lpPathName: LPCSTR, hTransaction: HANDLE) -> BOOL; +} +extern "C" { + pub fn RemoveDirectoryTransactedW(lpPathName: LPCWSTR, hTransaction: HANDLE) -> BOOL; +} +extern "C" { + pub fn GetFullPathNameTransactedA( + lpFileName: LPCSTR, + nBufferLength: DWORD, + lpBuffer: LPSTR, + lpFilePart: *mut LPSTR, + hTransaction: HANDLE, + ) -> DWORD; +} +extern "C" { + pub fn GetFullPathNameTransactedW( + lpFileName: LPCWSTR, + nBufferLength: DWORD, + lpBuffer: LPWSTR, + lpFilePart: *mut LPWSTR, + hTransaction: HANDLE, + ) -> DWORD; +} +extern "C" { + pub fn DefineDosDeviceA(dwFlags: DWORD, lpDeviceName: LPCSTR, lpTargetPath: LPCSTR) -> BOOL; +} +extern "C" { + pub fn QueryDosDeviceA(lpDeviceName: LPCSTR, lpTargetPath: LPSTR, ucchMax: DWORD) -> DWORD; +} +extern "C" { + pub fn CreateFileTransactedA( + lpFileName: LPCSTR, + dwDesiredAccess: DWORD, + dwShareMode: DWORD, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + dwCreationDisposition: DWORD, + dwFlagsAndAttributes: DWORD, + hTemplateFile: HANDLE, + hTransaction: HANDLE, + pusMiniVersion: PUSHORT, + lpExtendedParameter: PVOID, + ) -> HANDLE; +} +extern "C" { + pub fn CreateFileTransactedW( + lpFileName: LPCWSTR, + dwDesiredAccess: DWORD, + dwShareMode: DWORD, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + dwCreationDisposition: DWORD, + dwFlagsAndAttributes: DWORD, + hTemplateFile: HANDLE, + hTransaction: HANDLE, + pusMiniVersion: PUSHORT, + lpExtendedParameter: PVOID, + ) -> HANDLE; +} +extern "C" { + pub fn ReOpenFile( + hOriginalFile: HANDLE, + dwDesiredAccess: DWORD, + dwShareMode: DWORD, + dwFlagsAndAttributes: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn SetFileAttributesTransactedA( + lpFileName: LPCSTR, + dwFileAttributes: DWORD, + hTransaction: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn SetFileAttributesTransactedW( + lpFileName: LPCWSTR, + dwFileAttributes: DWORD, + hTransaction: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn GetFileAttributesTransactedA( + lpFileName: LPCSTR, + fInfoLevelId: GET_FILEEX_INFO_LEVELS, + lpFileInformation: LPVOID, + hTransaction: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn GetFileAttributesTransactedW( + lpFileName: LPCWSTR, + fInfoLevelId: GET_FILEEX_INFO_LEVELS, + lpFileInformation: LPVOID, + hTransaction: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn GetCompressedFileSizeTransactedA( + lpFileName: LPCSTR, + lpFileSizeHigh: LPDWORD, + hTransaction: HANDLE, + ) -> DWORD; +} +extern "C" { + pub fn GetCompressedFileSizeTransactedW( + lpFileName: LPCWSTR, + lpFileSizeHigh: LPDWORD, + hTransaction: HANDLE, + ) -> DWORD; +} +extern "C" { + pub fn DeleteFileTransactedA(lpFileName: LPCSTR, hTransaction: HANDLE) -> BOOL; +} +extern "C" { + pub fn DeleteFileTransactedW(lpFileName: LPCWSTR, hTransaction: HANDLE) -> BOOL; +} +extern "C" { + pub fn CheckNameLegalDOS8Dot3A( + lpName: LPCSTR, + lpOemName: LPSTR, + OemNameSize: DWORD, + pbNameContainsSpaces: PBOOL, + pbNameLegal: PBOOL, + ) -> BOOL; +} +extern "C" { + pub fn CheckNameLegalDOS8Dot3W( + lpName: LPCWSTR, + lpOemName: LPSTR, + OemNameSize: DWORD, + pbNameContainsSpaces: PBOOL, + pbNameLegal: PBOOL, + ) -> BOOL; +} +extern "C" { + pub fn FindFirstFileTransactedA( + lpFileName: LPCSTR, + fInfoLevelId: FINDEX_INFO_LEVELS, + lpFindFileData: LPVOID, + fSearchOp: FINDEX_SEARCH_OPS, + lpSearchFilter: LPVOID, + dwAdditionalFlags: DWORD, + hTransaction: HANDLE, + ) -> HANDLE; +} +extern "C" { + pub fn FindFirstFileTransactedW( + lpFileName: LPCWSTR, + fInfoLevelId: FINDEX_INFO_LEVELS, + lpFindFileData: LPVOID, + fSearchOp: FINDEX_SEARCH_OPS, + lpSearchFilter: LPVOID, + dwAdditionalFlags: DWORD, + hTransaction: HANDLE, + ) -> HANDLE; +} +extern "C" { + pub fn CopyFileA( + lpExistingFileName: LPCSTR, + lpNewFileName: LPCSTR, + bFailIfExists: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn CopyFileW( + lpExistingFileName: LPCWSTR, + lpNewFileName: LPCWSTR, + bFailIfExists: BOOL, + ) -> BOOL; +} +pub type LPPROGRESS_ROUTINE = ::std::option::Option< + unsafe extern "C" fn( + TotalFileSize: LARGE_INTEGER, + TotalBytesTransferred: LARGE_INTEGER, + StreamSize: LARGE_INTEGER, + StreamBytesTransferred: LARGE_INTEGER, + dwStreamNumber: DWORD, + dwCallbackReason: DWORD, + hSourceFile: HANDLE, + hDestinationFile: HANDLE, + lpData: LPVOID, + ) -> DWORD, +>; +extern "C" { + pub fn CopyFileExA( + lpExistingFileName: LPCSTR, + lpNewFileName: LPCSTR, + lpProgressRoutine: LPPROGRESS_ROUTINE, + lpData: LPVOID, + pbCancel: LPBOOL, + dwCopyFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CopyFileExW( + lpExistingFileName: LPCWSTR, + lpNewFileName: LPCWSTR, + lpProgressRoutine: LPPROGRESS_ROUTINE, + lpData: LPVOID, + pbCancel: LPBOOL, + dwCopyFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CopyFileTransactedA( + lpExistingFileName: LPCSTR, + lpNewFileName: LPCSTR, + lpProgressRoutine: LPPROGRESS_ROUTINE, + lpData: LPVOID, + pbCancel: LPBOOL, + dwCopyFlags: DWORD, + hTransaction: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn CopyFileTransactedW( + lpExistingFileName: LPCWSTR, + lpNewFileName: LPCWSTR, + lpProgressRoutine: LPPROGRESS_ROUTINE, + lpData: LPVOID, + pbCancel: LPBOOL, + dwCopyFlags: DWORD, + hTransaction: HANDLE, + ) -> BOOL; +} +pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_NONE: _COPYFILE2_MESSAGE_TYPE = 0; +pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_CHUNK_STARTED: _COPYFILE2_MESSAGE_TYPE = 1; +pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_CHUNK_FINISHED: _COPYFILE2_MESSAGE_TYPE = 2; +pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_STREAM_STARTED: _COPYFILE2_MESSAGE_TYPE = 3; +pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_STREAM_FINISHED: _COPYFILE2_MESSAGE_TYPE = 4; +pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_POLL_CONTINUE: _COPYFILE2_MESSAGE_TYPE = 5; +pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_ERROR: _COPYFILE2_MESSAGE_TYPE = 6; +pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_MAX: _COPYFILE2_MESSAGE_TYPE = 7; +pub type _COPYFILE2_MESSAGE_TYPE = ::std::os::raw::c_int; +pub use self::_COPYFILE2_MESSAGE_TYPE as COPYFILE2_MESSAGE_TYPE; +pub const _COPYFILE2_MESSAGE_ACTION_COPYFILE2_PROGRESS_CONTINUE: _COPYFILE2_MESSAGE_ACTION = 0; +pub const _COPYFILE2_MESSAGE_ACTION_COPYFILE2_PROGRESS_CANCEL: _COPYFILE2_MESSAGE_ACTION = 1; +pub const _COPYFILE2_MESSAGE_ACTION_COPYFILE2_PROGRESS_STOP: _COPYFILE2_MESSAGE_ACTION = 2; +pub const _COPYFILE2_MESSAGE_ACTION_COPYFILE2_PROGRESS_QUIET: _COPYFILE2_MESSAGE_ACTION = 3; +pub const _COPYFILE2_MESSAGE_ACTION_COPYFILE2_PROGRESS_PAUSE: _COPYFILE2_MESSAGE_ACTION = 4; +pub type _COPYFILE2_MESSAGE_ACTION = ::std::os::raw::c_int; +pub use self::_COPYFILE2_MESSAGE_ACTION as COPYFILE2_MESSAGE_ACTION; +pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_NONE: _COPYFILE2_COPY_PHASE = 0; +pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_PREPARE_SOURCE: _COPYFILE2_COPY_PHASE = 1; +pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_PREPARE_DEST: _COPYFILE2_COPY_PHASE = 2; +pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_READ_SOURCE: _COPYFILE2_COPY_PHASE = 3; +pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_WRITE_DESTINATION: _COPYFILE2_COPY_PHASE = 4; +pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_SERVER_COPY: _COPYFILE2_COPY_PHASE = 5; +pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_NAMEGRAFT_COPY: _COPYFILE2_COPY_PHASE = 6; +pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_MAX: _COPYFILE2_COPY_PHASE = 7; +pub type _COPYFILE2_COPY_PHASE = ::std::os::raw::c_int; +pub use self::_COPYFILE2_COPY_PHASE as COPYFILE2_COPY_PHASE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct COPYFILE2_MESSAGE { + pub Type: COPYFILE2_MESSAGE_TYPE, + pub dwPadding: DWORD, + pub Info: COPYFILE2_MESSAGE__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union COPYFILE2_MESSAGE__bindgen_ty_1 { + pub ChunkStarted: COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_1, + pub ChunkFinished: COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_2, + pub StreamStarted: COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_3, + pub StreamFinished: COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_4, + pub PollContinue: COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_5, + pub Error: COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_1 { + pub dwStreamNumber: DWORD, + pub dwReserved: DWORD, + pub hSourceFile: HANDLE, + pub hDestinationFile: HANDLE, + pub uliChunkNumber: ULARGE_INTEGER, + pub uliChunkSize: ULARGE_INTEGER, + pub uliStreamSize: ULARGE_INTEGER, + pub uliTotalFileSize: ULARGE_INTEGER, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_2 { + pub dwStreamNumber: DWORD, + pub dwFlags: DWORD, + pub hSourceFile: HANDLE, + pub hDestinationFile: HANDLE, + pub uliChunkNumber: ULARGE_INTEGER, + pub uliChunkSize: ULARGE_INTEGER, + pub uliStreamSize: ULARGE_INTEGER, + pub uliStreamBytesTransferred: ULARGE_INTEGER, + pub uliTotalFileSize: ULARGE_INTEGER, + pub uliTotalBytesTransferred: ULARGE_INTEGER, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_3 { + pub dwStreamNumber: DWORD, + pub dwReserved: DWORD, + pub hSourceFile: HANDLE, + pub hDestinationFile: HANDLE, + pub uliStreamSize: ULARGE_INTEGER, + pub uliTotalFileSize: ULARGE_INTEGER, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_4 { + pub dwStreamNumber: DWORD, + pub dwReserved: DWORD, + pub hSourceFile: HANDLE, + pub hDestinationFile: HANDLE, + pub uliStreamSize: ULARGE_INTEGER, + pub uliStreamBytesTransferred: ULARGE_INTEGER, + pub uliTotalFileSize: ULARGE_INTEGER, + pub uliTotalBytesTransferred: ULARGE_INTEGER, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_5 { + pub dwReserved: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_6 { + pub CopyPhase: COPYFILE2_COPY_PHASE, + pub dwStreamNumber: DWORD, + pub hrFailure: HRESULT, + pub dwReserved: DWORD, + pub uliChunkNumber: ULARGE_INTEGER, + pub uliStreamSize: ULARGE_INTEGER, + pub uliStreamBytesTransferred: ULARGE_INTEGER, + pub uliTotalFileSize: ULARGE_INTEGER, + pub uliTotalBytesTransferred: ULARGE_INTEGER, +} +pub type PCOPYFILE2_PROGRESS_ROUTINE = ::std::option::Option< + unsafe extern "C" fn( + pMessage: *const COPYFILE2_MESSAGE, + pvCallbackContext: PVOID, + ) -> COPYFILE2_MESSAGE_ACTION, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct COPYFILE2_EXTENDED_PARAMETERS { + pub dwSize: DWORD, + pub dwCopyFlags: DWORD, + pub pfCancel: *mut BOOL, + pub pProgressRoutine: PCOPYFILE2_PROGRESS_ROUTINE, + pub pvCallbackContext: PVOID, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct COPYFILE2_EXTENDED_PARAMETERS_V2 { + pub dwSize: DWORD, + pub dwCopyFlags: DWORD, + pub pfCancel: *mut BOOL, + pub pProgressRoutine: PCOPYFILE2_PROGRESS_ROUTINE, + pub pvCallbackContext: PVOID, + pub dwCopyFlagsV2: DWORD, + pub ioDesiredSize: ULONG, + pub ioDesiredRate: ULONG, + pub reserved: [PVOID; 8usize], +} +extern "C" { + pub fn CopyFile2( + pwszExistingFileName: PCWSTR, + pwszNewFileName: PCWSTR, + pExtendedParameters: *mut COPYFILE2_EXTENDED_PARAMETERS, + ) -> HRESULT; +} +extern "C" { + pub fn MoveFileA(lpExistingFileName: LPCSTR, lpNewFileName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn MoveFileW(lpExistingFileName: LPCWSTR, lpNewFileName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn MoveFileExA(lpExistingFileName: LPCSTR, lpNewFileName: LPCSTR, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn MoveFileExW(lpExistingFileName: LPCWSTR, lpNewFileName: LPCWSTR, dwFlags: DWORD) + -> BOOL; +} +extern "C" { + pub fn MoveFileWithProgressA( + lpExistingFileName: LPCSTR, + lpNewFileName: LPCSTR, + lpProgressRoutine: LPPROGRESS_ROUTINE, + lpData: LPVOID, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn MoveFileWithProgressW( + lpExistingFileName: LPCWSTR, + lpNewFileName: LPCWSTR, + lpProgressRoutine: LPPROGRESS_ROUTINE, + lpData: LPVOID, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn MoveFileTransactedA( + lpExistingFileName: LPCSTR, + lpNewFileName: LPCSTR, + lpProgressRoutine: LPPROGRESS_ROUTINE, + lpData: LPVOID, + dwFlags: DWORD, + hTransaction: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn MoveFileTransactedW( + lpExistingFileName: LPCWSTR, + lpNewFileName: LPCWSTR, + lpProgressRoutine: LPPROGRESS_ROUTINE, + lpData: LPVOID, + dwFlags: DWORD, + hTransaction: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn ReplaceFileA( + lpReplacedFileName: LPCSTR, + lpReplacementFileName: LPCSTR, + lpBackupFileName: LPCSTR, + dwReplaceFlags: DWORD, + lpExclude: LPVOID, + lpReserved: LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn ReplaceFileW( + lpReplacedFileName: LPCWSTR, + lpReplacementFileName: LPCWSTR, + lpBackupFileName: LPCWSTR, + dwReplaceFlags: DWORD, + lpExclude: LPVOID, + lpReserved: LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn CreateHardLinkA( + lpFileName: LPCSTR, + lpExistingFileName: LPCSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + ) -> BOOL; +} +extern "C" { + pub fn CreateHardLinkW( + lpFileName: LPCWSTR, + lpExistingFileName: LPCWSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + ) -> BOOL; +} +extern "C" { + pub fn CreateHardLinkTransactedA( + lpFileName: LPCSTR, + lpExistingFileName: LPCSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + hTransaction: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn CreateHardLinkTransactedW( + lpFileName: LPCWSTR, + lpExistingFileName: LPCWSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + hTransaction: HANDLE, + ) -> BOOL; +} +extern "C" { + pub fn FindFirstStreamTransactedW( + lpFileName: LPCWSTR, + InfoLevel: STREAM_INFO_LEVELS, + lpFindStreamData: LPVOID, + dwFlags: DWORD, + hTransaction: HANDLE, + ) -> HANDLE; +} +extern "C" { + pub fn FindFirstFileNameTransactedW( + lpFileName: LPCWSTR, + dwFlags: DWORD, + StringLength: LPDWORD, + LinkName: PWSTR, + hTransaction: HANDLE, + ) -> HANDLE; +} +extern "C" { + pub fn CreateNamedPipeA( + lpName: LPCSTR, + dwOpenMode: DWORD, + dwPipeMode: DWORD, + nMaxInstances: DWORD, + nOutBufferSize: DWORD, + nInBufferSize: DWORD, + nDefaultTimeOut: DWORD, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + ) -> HANDLE; +} +extern "C" { + pub fn GetNamedPipeHandleStateA( + hNamedPipe: HANDLE, + lpState: LPDWORD, + lpCurInstances: LPDWORD, + lpMaxCollectionCount: LPDWORD, + lpCollectDataTimeout: LPDWORD, + lpUserName: LPSTR, + nMaxUserNameSize: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CallNamedPipeA( + lpNamedPipeName: LPCSTR, + lpInBuffer: LPVOID, + nInBufferSize: DWORD, + lpOutBuffer: LPVOID, + nOutBufferSize: DWORD, + lpBytesRead: LPDWORD, + nTimeOut: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn WaitNamedPipeA(lpNamedPipeName: LPCSTR, nTimeOut: DWORD) -> BOOL; +} +extern "C" { + pub fn GetNamedPipeClientComputerNameA( + Pipe: HANDLE, + ClientComputerName: LPSTR, + ClientComputerNameLength: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn GetNamedPipeClientProcessId(Pipe: HANDLE, ClientProcessId: PULONG) -> BOOL; +} +extern "C" { + pub fn GetNamedPipeClientSessionId(Pipe: HANDLE, ClientSessionId: PULONG) -> BOOL; +} +extern "C" { + pub fn GetNamedPipeServerProcessId(Pipe: HANDLE, ServerProcessId: PULONG) -> BOOL; +} +extern "C" { + pub fn GetNamedPipeServerSessionId(Pipe: HANDLE, ServerSessionId: PULONG) -> BOOL; +} +extern "C" { + pub fn SetVolumeLabelA(lpRootPathName: LPCSTR, lpVolumeName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn SetVolumeLabelW(lpRootPathName: LPCWSTR, lpVolumeName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn SetFileBandwidthReservation( + hFile: HANDLE, + nPeriodMilliseconds: DWORD, + nBytesPerPeriod: DWORD, + bDiscardable: BOOL, + lpTransferSize: LPDWORD, + lpNumOutstandingRequests: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetFileBandwidthReservation( + hFile: HANDLE, + lpPeriodMilliseconds: LPDWORD, + lpBytesPerPeriod: LPDWORD, + pDiscardable: LPBOOL, + lpTransferSize: LPDWORD, + lpNumOutstandingRequests: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn ClearEventLogA(hEventLog: HANDLE, lpBackupFileName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn ClearEventLogW(hEventLog: HANDLE, lpBackupFileName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn BackupEventLogA(hEventLog: HANDLE, lpBackupFileName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn BackupEventLogW(hEventLog: HANDLE, lpBackupFileName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn CloseEventLog(hEventLog: HANDLE) -> BOOL; +} +extern "C" { + pub fn DeregisterEventSource(hEventLog: HANDLE) -> BOOL; +} +extern "C" { + pub fn NotifyChangeEventLog(hEventLog: HANDLE, hEvent: HANDLE) -> BOOL; +} +extern "C" { + pub fn GetNumberOfEventLogRecords(hEventLog: HANDLE, NumberOfRecords: PDWORD) -> BOOL; +} +extern "C" { + pub fn GetOldestEventLogRecord(hEventLog: HANDLE, OldestRecord: PDWORD) -> BOOL; +} +extern "C" { + pub fn OpenEventLogA(lpUNCServerName: LPCSTR, lpSourceName: LPCSTR) -> HANDLE; +} +extern "C" { + pub fn OpenEventLogW(lpUNCServerName: LPCWSTR, lpSourceName: LPCWSTR) -> HANDLE; +} +extern "C" { + pub fn RegisterEventSourceA(lpUNCServerName: LPCSTR, lpSourceName: LPCSTR) -> HANDLE; +} +extern "C" { + pub fn RegisterEventSourceW(lpUNCServerName: LPCWSTR, lpSourceName: LPCWSTR) -> HANDLE; +} +extern "C" { + pub fn OpenBackupEventLogA(lpUNCServerName: LPCSTR, lpFileName: LPCSTR) -> HANDLE; +} +extern "C" { + pub fn OpenBackupEventLogW(lpUNCServerName: LPCWSTR, lpFileName: LPCWSTR) -> HANDLE; +} +extern "C" { + pub fn ReadEventLogA( + hEventLog: HANDLE, + dwReadFlags: DWORD, + dwRecordOffset: DWORD, + lpBuffer: LPVOID, + nNumberOfBytesToRead: DWORD, + pnBytesRead: *mut DWORD, + pnMinNumberOfBytesNeeded: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn ReadEventLogW( + hEventLog: HANDLE, + dwReadFlags: DWORD, + dwRecordOffset: DWORD, + lpBuffer: LPVOID, + nNumberOfBytesToRead: DWORD, + pnBytesRead: *mut DWORD, + pnMinNumberOfBytesNeeded: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn ReportEventA( + hEventLog: HANDLE, + wType: WORD, + wCategory: WORD, + dwEventID: DWORD, + lpUserSid: PSID, + wNumStrings: WORD, + dwDataSize: DWORD, + lpStrings: *mut LPCSTR, + lpRawData: LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn ReportEventW( + hEventLog: HANDLE, + wType: WORD, + wCategory: WORD, + dwEventID: DWORD, + lpUserSid: PSID, + wNumStrings: WORD, + dwDataSize: DWORD, + lpStrings: *mut LPCWSTR, + lpRawData: LPVOID, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EVENTLOG_FULL_INFORMATION { + pub dwFull: DWORD, +} +pub type EVENTLOG_FULL_INFORMATION = _EVENTLOG_FULL_INFORMATION; +pub type LPEVENTLOG_FULL_INFORMATION = *mut _EVENTLOG_FULL_INFORMATION; +extern "C" { + pub fn GetEventLogInformation( + hEventLog: HANDLE, + dwInfoLevel: DWORD, + lpBuffer: LPVOID, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + ) -> BOOL; +} +pub type OPERATION_ID = ULONG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OPERATION_START_PARAMETERS { + pub Version: ULONG, + pub OperationId: OPERATION_ID, + pub Flags: ULONG, +} +pub type OPERATION_START_PARAMETERS = _OPERATION_START_PARAMETERS; +pub type POPERATION_START_PARAMETERS = *mut _OPERATION_START_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OPERATION_END_PARAMETERS { + pub Version: ULONG, + pub OperationId: OPERATION_ID, + pub Flags: ULONG, +} +pub type OPERATION_END_PARAMETERS = _OPERATION_END_PARAMETERS; +pub type POPERATION_END_PARAMETERS = *mut _OPERATION_END_PARAMETERS; +extern "C" { + pub fn OperationStart(OperationStartParams: *mut OPERATION_START_PARAMETERS) -> BOOL; +} +extern "C" { + pub fn OperationEnd(OperationEndParams: *mut OPERATION_END_PARAMETERS) -> BOOL; +} +extern "C" { + pub fn AccessCheckAndAuditAlarmA( + SubsystemName: LPCSTR, + HandleId: LPVOID, + ObjectTypeName: LPSTR, + ObjectName: LPSTR, + SecurityDescriptor: PSECURITY_DESCRIPTOR, + DesiredAccess: DWORD, + GenericMapping: PGENERIC_MAPPING, + ObjectCreation: BOOL, + GrantedAccess: LPDWORD, + AccessStatus: LPBOOL, + pfGenerateOnClose: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn AccessCheckByTypeAndAuditAlarmA( + SubsystemName: LPCSTR, + HandleId: LPVOID, + ObjectTypeName: LPCSTR, + ObjectName: LPCSTR, + SecurityDescriptor: PSECURITY_DESCRIPTOR, + PrincipalSelfSid: PSID, + DesiredAccess: DWORD, + AuditType: AUDIT_EVENT_TYPE, + Flags: DWORD, + ObjectTypeList: POBJECT_TYPE_LIST, + ObjectTypeListLength: DWORD, + GenericMapping: PGENERIC_MAPPING, + ObjectCreation: BOOL, + GrantedAccess: LPDWORD, + AccessStatus: LPBOOL, + pfGenerateOnClose: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn AccessCheckByTypeResultListAndAuditAlarmA( + SubsystemName: LPCSTR, + HandleId: LPVOID, + ObjectTypeName: LPCSTR, + ObjectName: LPCSTR, + SecurityDescriptor: PSECURITY_DESCRIPTOR, + PrincipalSelfSid: PSID, + DesiredAccess: DWORD, + AuditType: AUDIT_EVENT_TYPE, + Flags: DWORD, + ObjectTypeList: POBJECT_TYPE_LIST, + ObjectTypeListLength: DWORD, + GenericMapping: PGENERIC_MAPPING, + ObjectCreation: BOOL, + GrantedAccess: LPDWORD, + AccessStatusList: LPDWORD, + pfGenerateOnClose: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn AccessCheckByTypeResultListAndAuditAlarmByHandleA( + SubsystemName: LPCSTR, + HandleId: LPVOID, + ClientToken: HANDLE, + ObjectTypeName: LPCSTR, + ObjectName: LPCSTR, + SecurityDescriptor: PSECURITY_DESCRIPTOR, + PrincipalSelfSid: PSID, + DesiredAccess: DWORD, + AuditType: AUDIT_EVENT_TYPE, + Flags: DWORD, + ObjectTypeList: POBJECT_TYPE_LIST, + ObjectTypeListLength: DWORD, + GenericMapping: PGENERIC_MAPPING, + ObjectCreation: BOOL, + GrantedAccess: LPDWORD, + AccessStatusList: LPDWORD, + pfGenerateOnClose: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn ObjectOpenAuditAlarmA( + SubsystemName: LPCSTR, + HandleId: LPVOID, + ObjectTypeName: LPSTR, + ObjectName: LPSTR, + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + ClientToken: HANDLE, + DesiredAccess: DWORD, + GrantedAccess: DWORD, + Privileges: PPRIVILEGE_SET, + ObjectCreation: BOOL, + AccessGranted: BOOL, + GenerateOnClose: LPBOOL, + ) -> BOOL; +} +extern "C" { + pub fn ObjectPrivilegeAuditAlarmA( + SubsystemName: LPCSTR, + HandleId: LPVOID, + ClientToken: HANDLE, + DesiredAccess: DWORD, + Privileges: PPRIVILEGE_SET, + AccessGranted: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn ObjectCloseAuditAlarmA( + SubsystemName: LPCSTR, + HandleId: LPVOID, + GenerateOnClose: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn ObjectDeleteAuditAlarmA( + SubsystemName: LPCSTR, + HandleId: LPVOID, + GenerateOnClose: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn PrivilegedServiceAuditAlarmA( + SubsystemName: LPCSTR, + ServiceName: LPCSTR, + ClientToken: HANDLE, + Privileges: PPRIVILEGE_SET, + AccessGranted: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn AddConditionalAce( + pAcl: PACL, + dwAceRevision: DWORD, + AceFlags: DWORD, + AceType: UCHAR, + AccessMask: DWORD, + pSid: PSID, + ConditionStr: PWCHAR, + ReturnLength: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetFileSecurityA( + lpFileName: LPCSTR, + SecurityInformation: SECURITY_INFORMATION, + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + ) -> BOOL; +} +extern "C" { + pub fn GetFileSecurityA( + lpFileName: LPCSTR, + RequestedInformation: SECURITY_INFORMATION, + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + nLength: DWORD, + lpnLengthNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn ReadDirectoryChangesW( + hDirectory: HANDLE, + lpBuffer: LPVOID, + nBufferLength: DWORD, + bWatchSubtree: BOOL, + dwNotifyFilter: DWORD, + lpBytesReturned: LPDWORD, + lpOverlapped: LPOVERLAPPED, + lpCompletionRoutine: LPOVERLAPPED_COMPLETION_ROUTINE, + ) -> BOOL; +} +extern "C" { + pub fn ReadDirectoryChangesExW( + hDirectory: HANDLE, + lpBuffer: LPVOID, + nBufferLength: DWORD, + bWatchSubtree: BOOL, + dwNotifyFilter: DWORD, + lpBytesReturned: LPDWORD, + lpOverlapped: LPOVERLAPPED, + lpCompletionRoutine: LPOVERLAPPED_COMPLETION_ROUTINE, + ReadDirectoryNotifyInformationClass: READ_DIRECTORY_NOTIFY_INFORMATION_CLASS, + ) -> BOOL; +} +extern "C" { + pub fn MapViewOfFileExNuma( + hFileMappingObject: HANDLE, + dwDesiredAccess: DWORD, + dwFileOffsetHigh: DWORD, + dwFileOffsetLow: DWORD, + dwNumberOfBytesToMap: SIZE_T, + lpBaseAddress: LPVOID, + nndPreferred: DWORD, + ) -> LPVOID; +} +extern "C" { + pub fn IsBadReadPtr(lp: *const ::std::os::raw::c_void, ucb: UINT_PTR) -> BOOL; +} +extern "C" { + pub fn IsBadWritePtr(lp: LPVOID, ucb: UINT_PTR) -> BOOL; +} +extern "C" { + pub fn IsBadHugeReadPtr(lp: *const ::std::os::raw::c_void, ucb: UINT_PTR) -> BOOL; +} +extern "C" { + pub fn IsBadHugeWritePtr(lp: LPVOID, ucb: UINT_PTR) -> BOOL; +} +extern "C" { + pub fn IsBadCodePtr(lpfn: FARPROC) -> BOOL; +} +extern "C" { + pub fn IsBadStringPtrA(lpsz: LPCSTR, ucchMax: UINT_PTR) -> BOOL; +} +extern "C" { + pub fn IsBadStringPtrW(lpsz: LPCWSTR, ucchMax: UINT_PTR) -> BOOL; +} +extern "C" { + pub fn LookupAccountSidA( + lpSystemName: LPCSTR, + Sid: PSID, + Name: LPSTR, + cchName: LPDWORD, + ReferencedDomainName: LPSTR, + cchReferencedDomainName: LPDWORD, + peUse: PSID_NAME_USE, + ) -> BOOL; +} +extern "C" { + pub fn LookupAccountSidW( + lpSystemName: LPCWSTR, + Sid: PSID, + Name: LPWSTR, + cchName: LPDWORD, + ReferencedDomainName: LPWSTR, + cchReferencedDomainName: LPDWORD, + peUse: PSID_NAME_USE, + ) -> BOOL; +} +extern "C" { + pub fn LookupAccountNameA( + lpSystemName: LPCSTR, + lpAccountName: LPCSTR, + Sid: PSID, + cbSid: LPDWORD, + ReferencedDomainName: LPSTR, + cchReferencedDomainName: LPDWORD, + peUse: PSID_NAME_USE, + ) -> BOOL; +} +extern "C" { + pub fn LookupAccountNameW( + lpSystemName: LPCWSTR, + lpAccountName: LPCWSTR, + Sid: PSID, + cbSid: LPDWORD, + ReferencedDomainName: LPWSTR, + cchReferencedDomainName: LPDWORD, + peUse: PSID_NAME_USE, + ) -> BOOL; +} +extern "C" { + pub fn LookupAccountNameLocalA( + lpAccountName: LPCSTR, + Sid: PSID, + cbSid: LPDWORD, + ReferencedDomainName: LPSTR, + cchReferencedDomainName: LPDWORD, + peUse: PSID_NAME_USE, + ) -> BOOL; +} +extern "C" { + pub fn LookupAccountNameLocalW( + lpAccountName: LPCWSTR, + Sid: PSID, + cbSid: LPDWORD, + ReferencedDomainName: LPWSTR, + cchReferencedDomainName: LPDWORD, + peUse: PSID_NAME_USE, + ) -> BOOL; +} +extern "C" { + pub fn LookupAccountSidLocalA( + Sid: PSID, + Name: LPSTR, + cchName: LPDWORD, + ReferencedDomainName: LPSTR, + cchReferencedDomainName: LPDWORD, + peUse: PSID_NAME_USE, + ) -> BOOL; +} +extern "C" { + pub fn LookupAccountSidLocalW( + Sid: PSID, + Name: LPWSTR, + cchName: LPDWORD, + ReferencedDomainName: LPWSTR, + cchReferencedDomainName: LPDWORD, + peUse: PSID_NAME_USE, + ) -> BOOL; +} +extern "C" { + pub fn LookupPrivilegeValueA(lpSystemName: LPCSTR, lpName: LPCSTR, lpLuid: PLUID) -> BOOL; +} +extern "C" { + pub fn LookupPrivilegeValueW(lpSystemName: LPCWSTR, lpName: LPCWSTR, lpLuid: PLUID) -> BOOL; +} +extern "C" { + pub fn LookupPrivilegeNameA( + lpSystemName: LPCSTR, + lpLuid: PLUID, + lpName: LPSTR, + cchName: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn LookupPrivilegeNameW( + lpSystemName: LPCWSTR, + lpLuid: PLUID, + lpName: LPWSTR, + cchName: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn LookupPrivilegeDisplayNameA( + lpSystemName: LPCSTR, + lpName: LPCSTR, + lpDisplayName: LPSTR, + cchDisplayName: LPDWORD, + lpLanguageId: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn LookupPrivilegeDisplayNameW( + lpSystemName: LPCWSTR, + lpName: LPCWSTR, + lpDisplayName: LPWSTR, + cchDisplayName: LPDWORD, + lpLanguageId: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn BuildCommDCBA(lpDef: LPCSTR, lpDCB: LPDCB) -> BOOL; +} +extern "C" { + pub fn BuildCommDCBW(lpDef: LPCWSTR, lpDCB: LPDCB) -> BOOL; +} +extern "C" { + pub fn BuildCommDCBAndTimeoutsA( + lpDef: LPCSTR, + lpDCB: LPDCB, + lpCommTimeouts: LPCOMMTIMEOUTS, + ) -> BOOL; +} +extern "C" { + pub fn BuildCommDCBAndTimeoutsW( + lpDef: LPCWSTR, + lpDCB: LPDCB, + lpCommTimeouts: LPCOMMTIMEOUTS, + ) -> BOOL; +} +extern "C" { + pub fn CommConfigDialogA(lpszName: LPCSTR, hWnd: HWND, lpCC: LPCOMMCONFIG) -> BOOL; +} +extern "C" { + pub fn CommConfigDialogW(lpszName: LPCWSTR, hWnd: HWND, lpCC: LPCOMMCONFIG) -> BOOL; +} +extern "C" { + pub fn GetDefaultCommConfigA(lpszName: LPCSTR, lpCC: LPCOMMCONFIG, lpdwSize: LPDWORD) -> BOOL; +} +extern "C" { + pub fn GetDefaultCommConfigW(lpszName: LPCWSTR, lpCC: LPCOMMCONFIG, lpdwSize: LPDWORD) -> BOOL; +} +extern "C" { + pub fn SetDefaultCommConfigA(lpszName: LPCSTR, lpCC: LPCOMMCONFIG, dwSize: DWORD) -> BOOL; +} +extern "C" { + pub fn SetDefaultCommConfigW(lpszName: LPCWSTR, lpCC: LPCOMMCONFIG, dwSize: DWORD) -> BOOL; +} +extern "C" { + pub fn GetComputerNameA(lpBuffer: LPSTR, nSize: LPDWORD) -> BOOL; +} +extern "C" { + pub fn GetComputerNameW(lpBuffer: LPWSTR, nSize: LPDWORD) -> BOOL; +} +extern "C" { + pub fn DnsHostnameToComputerNameA( + Hostname: LPCSTR, + ComputerName: LPSTR, + nSize: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn DnsHostnameToComputerNameW( + Hostname: LPCWSTR, + ComputerName: LPWSTR, + nSize: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetUserNameA(lpBuffer: LPSTR, pcbBuffer: LPDWORD) -> BOOL; +} +extern "C" { + pub fn GetUserNameW(lpBuffer: LPWSTR, pcbBuffer: LPDWORD) -> BOOL; +} +extern "C" { + pub fn LogonUserA( + lpszUsername: LPCSTR, + lpszDomain: LPCSTR, + lpszPassword: LPCSTR, + dwLogonType: DWORD, + dwLogonProvider: DWORD, + phToken: PHANDLE, + ) -> BOOL; +} +extern "C" { + pub fn LogonUserW( + lpszUsername: LPCWSTR, + lpszDomain: LPCWSTR, + lpszPassword: LPCWSTR, + dwLogonType: DWORD, + dwLogonProvider: DWORD, + phToken: PHANDLE, + ) -> BOOL; +} +extern "C" { + pub fn LogonUserExA( + lpszUsername: LPCSTR, + lpszDomain: LPCSTR, + lpszPassword: LPCSTR, + dwLogonType: DWORD, + dwLogonProvider: DWORD, + phToken: PHANDLE, + ppLogonSid: *mut PSID, + ppProfileBuffer: *mut PVOID, + pdwProfileLength: LPDWORD, + pQuotaLimits: PQUOTA_LIMITS, + ) -> BOOL; +} +extern "C" { + pub fn LogonUserExW( + lpszUsername: LPCWSTR, + lpszDomain: LPCWSTR, + lpszPassword: LPCWSTR, + dwLogonType: DWORD, + dwLogonProvider: DWORD, + phToken: PHANDLE, + ppLogonSid: *mut PSID, + ppProfileBuffer: *mut PVOID, + pdwProfileLength: LPDWORD, + pQuotaLimits: PQUOTA_LIMITS, + ) -> BOOL; +} +extern "C" { + pub fn CreateProcessWithLogonW( + lpUsername: LPCWSTR, + lpDomain: LPCWSTR, + lpPassword: LPCWSTR, + dwLogonFlags: DWORD, + lpApplicationName: LPCWSTR, + lpCommandLine: LPWSTR, + dwCreationFlags: DWORD, + lpEnvironment: LPVOID, + lpCurrentDirectory: LPCWSTR, + lpStartupInfo: LPSTARTUPINFOW, + lpProcessInformation: LPPROCESS_INFORMATION, + ) -> BOOL; +} +extern "C" { + pub fn CreateProcessWithTokenW( + hToken: HANDLE, + dwLogonFlags: DWORD, + lpApplicationName: LPCWSTR, + lpCommandLine: LPWSTR, + dwCreationFlags: DWORD, + lpEnvironment: LPVOID, + lpCurrentDirectory: LPCWSTR, + lpStartupInfo: LPSTARTUPINFOW, + lpProcessInformation: LPPROCESS_INFORMATION, + ) -> BOOL; +} +extern "C" { + pub fn IsTokenUntrusted(TokenHandle: HANDLE) -> BOOL; +} +extern "C" { + pub fn RegisterWaitForSingleObject( + phNewWaitObject: PHANDLE, + hObject: HANDLE, + Callback: WAITORTIMERCALLBACK, + Context: PVOID, + dwMilliseconds: ULONG, + dwFlags: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn UnregisterWait(WaitHandle: HANDLE) -> BOOL; +} +extern "C" { + pub fn BindIoCompletionCallback( + FileHandle: HANDLE, + Function: LPOVERLAPPED_COMPLETION_ROUTINE, + Flags: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn SetTimerQueueTimer( + TimerQueue: HANDLE, + Callback: WAITORTIMERCALLBACK, + Parameter: PVOID, + DueTime: DWORD, + Period: DWORD, + PreferIo: BOOL, + ) -> HANDLE; +} +extern "C" { + pub fn CancelTimerQueueTimer(TimerQueue: HANDLE, Timer: HANDLE) -> BOOL; +} +extern "C" { + pub fn CreatePrivateNamespaceA( + lpPrivateNamespaceAttributes: LPSECURITY_ATTRIBUTES, + lpBoundaryDescriptor: LPVOID, + lpAliasPrefix: LPCSTR, + ) -> HANDLE; +} +extern "C" { + pub fn OpenPrivateNamespaceA(lpBoundaryDescriptor: LPVOID, lpAliasPrefix: LPCSTR) -> HANDLE; +} +extern "C" { + pub fn CreateBoundaryDescriptorA(Name: LPCSTR, Flags: ULONG) -> HANDLE; +} +extern "C" { + pub fn AddIntegrityLabelToBoundaryDescriptor( + BoundaryDescriptor: *mut HANDLE, + IntegrityLabel: PSID, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagHW_PROFILE_INFOA { + pub dwDockInfo: DWORD, + pub szHwProfileGuid: [CHAR; 39usize], + pub szHwProfileName: [CHAR; 80usize], +} +pub type HW_PROFILE_INFOA = tagHW_PROFILE_INFOA; +pub type LPHW_PROFILE_INFOA = *mut tagHW_PROFILE_INFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagHW_PROFILE_INFOW { + pub dwDockInfo: DWORD, + pub szHwProfileGuid: [WCHAR; 39usize], + pub szHwProfileName: [WCHAR; 80usize], +} +pub type HW_PROFILE_INFOW = tagHW_PROFILE_INFOW; +pub type LPHW_PROFILE_INFOW = *mut tagHW_PROFILE_INFOW; +pub type HW_PROFILE_INFO = HW_PROFILE_INFOA; +pub type LPHW_PROFILE_INFO = LPHW_PROFILE_INFOA; +extern "C" { + pub fn GetCurrentHwProfileA(lpHwProfileInfo: LPHW_PROFILE_INFOA) -> BOOL; +} +extern "C" { + pub fn GetCurrentHwProfileW(lpHwProfileInfo: LPHW_PROFILE_INFOW) -> BOOL; +} +extern "C" { + pub fn VerifyVersionInfoA( + lpVersionInformation: LPOSVERSIONINFOEXA, + dwTypeMask: DWORD, + dwlConditionMask: DWORDLONG, + ) -> BOOL; +} +extern "C" { + pub fn VerifyVersionInfoW( + lpVersionInformation: LPOSVERSIONINFOEXW, + dwTypeMask: DWORD, + dwlConditionMask: DWORDLONG, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TIME_ZONE_INFORMATION { + pub Bias: LONG, + pub StandardName: [WCHAR; 32usize], + pub StandardDate: SYSTEMTIME, + pub StandardBias: LONG, + pub DaylightName: [WCHAR; 32usize], + pub DaylightDate: SYSTEMTIME, + pub DaylightBias: LONG, +} +pub type TIME_ZONE_INFORMATION = _TIME_ZONE_INFORMATION; +pub type PTIME_ZONE_INFORMATION = *mut _TIME_ZONE_INFORMATION; +pub type LPTIME_ZONE_INFORMATION = *mut _TIME_ZONE_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TIME_DYNAMIC_ZONE_INFORMATION { + pub Bias: LONG, + pub StandardName: [WCHAR; 32usize], + pub StandardDate: SYSTEMTIME, + pub StandardBias: LONG, + pub DaylightName: [WCHAR; 32usize], + pub DaylightDate: SYSTEMTIME, + pub DaylightBias: LONG, + pub TimeZoneKeyName: [WCHAR; 128usize], + pub DynamicDaylightTimeDisabled: BOOLEAN, +} +pub type DYNAMIC_TIME_ZONE_INFORMATION = _TIME_DYNAMIC_ZONE_INFORMATION; +pub type PDYNAMIC_TIME_ZONE_INFORMATION = *mut _TIME_DYNAMIC_ZONE_INFORMATION; +extern "C" { + pub fn SystemTimeToTzSpecificLocalTime( + lpTimeZoneInformation: *const TIME_ZONE_INFORMATION, + lpUniversalTime: *const SYSTEMTIME, + lpLocalTime: LPSYSTEMTIME, + ) -> BOOL; +} +extern "C" { + pub fn TzSpecificLocalTimeToSystemTime( + lpTimeZoneInformation: *const TIME_ZONE_INFORMATION, + lpLocalTime: *const SYSTEMTIME, + lpUniversalTime: LPSYSTEMTIME, + ) -> BOOL; +} +extern "C" { + pub fn FileTimeToSystemTime(lpFileTime: *const FILETIME, lpSystemTime: LPSYSTEMTIME) -> BOOL; +} +extern "C" { + pub fn SystemTimeToFileTime(lpSystemTime: *const SYSTEMTIME, lpFileTime: LPFILETIME) -> BOOL; +} +extern "C" { + pub fn GetTimeZoneInformation(lpTimeZoneInformation: LPTIME_ZONE_INFORMATION) -> DWORD; +} +extern "C" { + pub fn SetTimeZoneInformation(lpTimeZoneInformation: *const TIME_ZONE_INFORMATION) -> BOOL; +} +extern "C" { + pub fn SetDynamicTimeZoneInformation( + lpTimeZoneInformation: *const DYNAMIC_TIME_ZONE_INFORMATION, + ) -> BOOL; +} +extern "C" { + pub fn GetDynamicTimeZoneInformation( + pTimeZoneInformation: PDYNAMIC_TIME_ZONE_INFORMATION, + ) -> DWORD; +} +extern "C" { + pub fn GetTimeZoneInformationForYear( + wYear: USHORT, + pdtzi: PDYNAMIC_TIME_ZONE_INFORMATION, + ptzi: LPTIME_ZONE_INFORMATION, + ) -> BOOL; +} +extern "C" { + pub fn EnumDynamicTimeZoneInformation( + dwIndex: DWORD, + lpTimeZoneInformation: PDYNAMIC_TIME_ZONE_INFORMATION, + ) -> DWORD; +} +extern "C" { + pub fn GetDynamicTimeZoneInformationEffectiveYears( + lpTimeZoneInformation: PDYNAMIC_TIME_ZONE_INFORMATION, + FirstYear: LPDWORD, + LastYear: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn SystemTimeToTzSpecificLocalTimeEx( + lpTimeZoneInformation: *const DYNAMIC_TIME_ZONE_INFORMATION, + lpUniversalTime: *const SYSTEMTIME, + lpLocalTime: LPSYSTEMTIME, + ) -> BOOL; +} +extern "C" { + pub fn TzSpecificLocalTimeToSystemTimeEx( + lpTimeZoneInformation: *const DYNAMIC_TIME_ZONE_INFORMATION, + lpLocalTime: *const SYSTEMTIME, + lpUniversalTime: LPSYSTEMTIME, + ) -> BOOL; +} +extern "C" { + pub fn LocalFileTimeToLocalSystemTime( + timeZoneInformation: *const TIME_ZONE_INFORMATION, + localFileTime: *const FILETIME, + localSystemTime: *mut SYSTEMTIME, + ) -> BOOL; +} +extern "C" { + pub fn LocalSystemTimeToLocalFileTime( + timeZoneInformation: *const TIME_ZONE_INFORMATION, + localSystemTime: *const SYSTEMTIME, + localFileTime: *mut FILETIME, + ) -> BOOL; +} +extern "C" { + pub fn SetSystemPowerState(fSuspend: BOOL, fForce: BOOL) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SYSTEM_POWER_STATUS { + pub ACLineStatus: BYTE, + pub BatteryFlag: BYTE, + pub BatteryLifePercent: BYTE, + pub SystemStatusFlag: BYTE, + pub BatteryLifeTime: DWORD, + pub BatteryFullLifeTime: DWORD, +} +pub type SYSTEM_POWER_STATUS = _SYSTEM_POWER_STATUS; +pub type LPSYSTEM_POWER_STATUS = *mut _SYSTEM_POWER_STATUS; +extern "C" { + pub fn GetSystemPowerStatus(lpSystemPowerStatus: LPSYSTEM_POWER_STATUS) -> BOOL; +} +extern "C" { + pub fn MapUserPhysicalPagesScatter( + VirtualAddresses: *mut PVOID, + NumberOfPages: ULONG_PTR, + PageArray: PULONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn CreateJobObjectA(lpJobAttributes: LPSECURITY_ATTRIBUTES, lpName: LPCSTR) -> HANDLE; +} +extern "C" { + pub fn OpenJobObjectA(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCSTR) -> HANDLE; +} +extern "C" { + pub fn CreateJobSet(NumJob: ULONG, UserJobSet: PJOB_SET_ARRAY, Flags: ULONG) -> BOOL; +} +extern "C" { + pub fn FindFirstVolumeA(lpszVolumeName: LPSTR, cchBufferLength: DWORD) -> HANDLE; +} +extern "C" { + pub fn FindNextVolumeA( + hFindVolume: HANDLE, + lpszVolumeName: LPSTR, + cchBufferLength: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn FindFirstVolumeMountPointA( + lpszRootPathName: LPCSTR, + lpszVolumeMountPoint: LPSTR, + cchBufferLength: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn FindFirstVolumeMountPointW( + lpszRootPathName: LPCWSTR, + lpszVolumeMountPoint: LPWSTR, + cchBufferLength: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn FindNextVolumeMountPointA( + hFindVolumeMountPoint: HANDLE, + lpszVolumeMountPoint: LPSTR, + cchBufferLength: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn FindNextVolumeMountPointW( + hFindVolumeMountPoint: HANDLE, + lpszVolumeMountPoint: LPWSTR, + cchBufferLength: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn FindVolumeMountPointClose(hFindVolumeMountPoint: HANDLE) -> BOOL; +} +extern "C" { + pub fn SetVolumeMountPointA(lpszVolumeMountPoint: LPCSTR, lpszVolumeName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn SetVolumeMountPointW(lpszVolumeMountPoint: LPCWSTR, lpszVolumeName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn DeleteVolumeMountPointA(lpszVolumeMountPoint: LPCSTR) -> BOOL; +} +extern "C" { + pub fn GetVolumeNameForVolumeMountPointA( + lpszVolumeMountPoint: LPCSTR, + lpszVolumeName: LPSTR, + cchBufferLength: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetVolumePathNameA( + lpszFileName: LPCSTR, + lpszVolumePathName: LPSTR, + cchBufferLength: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetVolumePathNamesForVolumeNameA( + lpszVolumeName: LPCSTR, + lpszVolumePathNames: LPCH, + cchBufferLength: DWORD, + lpcchReturnLength: PDWORD, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagACTCTXA { + pub cbSize: ULONG, + pub dwFlags: DWORD, + pub lpSource: LPCSTR, + pub wProcessorArchitecture: USHORT, + pub wLangId: LANGID, + pub lpAssemblyDirectory: LPCSTR, + pub lpResourceName: LPCSTR, + pub lpApplicationName: LPCSTR, + pub hModule: HMODULE, +} +pub type ACTCTXA = tagACTCTXA; +pub type PACTCTXA = *mut tagACTCTXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagACTCTXW { + pub cbSize: ULONG, + pub dwFlags: DWORD, + pub lpSource: LPCWSTR, + pub wProcessorArchitecture: USHORT, + pub wLangId: LANGID, + pub lpAssemblyDirectory: LPCWSTR, + pub lpResourceName: LPCWSTR, + pub lpApplicationName: LPCWSTR, + pub hModule: HMODULE, +} +pub type ACTCTXW = tagACTCTXW; +pub type PACTCTXW = *mut tagACTCTXW; +pub type ACTCTX = ACTCTXA; +pub type PACTCTX = PACTCTXA; +pub type PCACTCTXA = *const ACTCTXA; +pub type PCACTCTXW = *const ACTCTXW; +pub type PCACTCTX = PCACTCTXA; +extern "C" { + pub fn CreateActCtxA(pActCtx: PCACTCTXA) -> HANDLE; +} +extern "C" { + pub fn CreateActCtxW(pActCtx: PCACTCTXW) -> HANDLE; +} +extern "C" { + pub fn AddRefActCtx(hActCtx: HANDLE); +} +extern "C" { + pub fn ReleaseActCtx(hActCtx: HANDLE); +} +extern "C" { + pub fn ZombifyActCtx(hActCtx: HANDLE) -> BOOL; +} +extern "C" { + pub fn ActivateActCtx(hActCtx: HANDLE, lpCookie: *mut ULONG_PTR) -> BOOL; +} +extern "C" { + pub fn DeactivateActCtx(dwFlags: DWORD, ulCookie: ULONG_PTR) -> BOOL; +} +extern "C" { + pub fn GetCurrentActCtx(lphActCtx: *mut HANDLE) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagACTCTX_SECTION_KEYED_DATA_2600 { + pub cbSize: ULONG, + pub ulDataFormatVersion: ULONG, + pub lpData: PVOID, + pub ulLength: ULONG, + pub lpSectionGlobalData: PVOID, + pub ulSectionGlobalDataLength: ULONG, + pub lpSectionBase: PVOID, + pub ulSectionTotalLength: ULONG, + pub hActCtx: HANDLE, + pub ulAssemblyRosterIndex: ULONG, +} +pub type ACTCTX_SECTION_KEYED_DATA_2600 = tagACTCTX_SECTION_KEYED_DATA_2600; +pub type PACTCTX_SECTION_KEYED_DATA_2600 = *mut tagACTCTX_SECTION_KEYED_DATA_2600; +pub type PCACTCTX_SECTION_KEYED_DATA_2600 = *const ACTCTX_SECTION_KEYED_DATA_2600; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA { + pub lpInformation: PVOID, + pub lpSectionBase: PVOID, + pub ulSectionLength: ULONG, + pub lpSectionGlobalDataBase: PVOID, + pub ulSectionGlobalDataLength: ULONG, +} +pub type ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA = + tagACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; +pub type PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA = + *mut tagACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; +pub type PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA = + *const ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagACTCTX_SECTION_KEYED_DATA { + pub cbSize: ULONG, + pub ulDataFormatVersion: ULONG, + pub lpData: PVOID, + pub ulLength: ULONG, + pub lpSectionGlobalData: PVOID, + pub ulSectionGlobalDataLength: ULONG, + pub lpSectionBase: PVOID, + pub ulSectionTotalLength: ULONG, + pub hActCtx: HANDLE, + pub ulAssemblyRosterIndex: ULONG, + pub ulFlags: ULONG, + pub AssemblyMetadata: ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, +} +pub type ACTCTX_SECTION_KEYED_DATA = tagACTCTX_SECTION_KEYED_DATA; +pub type PACTCTX_SECTION_KEYED_DATA = *mut tagACTCTX_SECTION_KEYED_DATA; +pub type PCACTCTX_SECTION_KEYED_DATA = *const ACTCTX_SECTION_KEYED_DATA; +extern "C" { + pub fn FindActCtxSectionStringA( + dwFlags: DWORD, + lpExtensionGuid: *const GUID, + ulSectionId: ULONG, + lpStringToFind: LPCSTR, + ReturnedData: PACTCTX_SECTION_KEYED_DATA, + ) -> BOOL; +} +extern "C" { + pub fn FindActCtxSectionStringW( + dwFlags: DWORD, + lpExtensionGuid: *const GUID, + ulSectionId: ULONG, + lpStringToFind: LPCWSTR, + ReturnedData: PACTCTX_SECTION_KEYED_DATA, + ) -> BOOL; +} +extern "C" { + pub fn FindActCtxSectionGuid( + dwFlags: DWORD, + lpExtensionGuid: *const GUID, + ulSectionId: ULONG, + lpGuidToFind: *const GUID, + ReturnedData: PACTCTX_SECTION_KEYED_DATA, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACTIVATION_CONTEXT_BASIC_INFORMATION { + pub hActCtx: HANDLE, + pub dwFlags: DWORD, +} +pub type ACTIVATION_CONTEXT_BASIC_INFORMATION = _ACTIVATION_CONTEXT_BASIC_INFORMATION; +pub type PACTIVATION_CONTEXT_BASIC_INFORMATION = *mut _ACTIVATION_CONTEXT_BASIC_INFORMATION; +pub type PCACTIVATION_CONTEXT_BASIC_INFORMATION = *const _ACTIVATION_CONTEXT_BASIC_INFORMATION; +extern "C" { + pub fn QueryActCtxW( + dwFlags: DWORD, + hActCtx: HANDLE, + pvSubInstance: PVOID, + ulInfoClass: ULONG, + pvBuffer: PVOID, + cbBuffer: SIZE_T, + pcbWrittenOrRequired: *mut SIZE_T, + ) -> BOOL; +} +pub type PQUERYACTCTXW_FUNC = ::std::option::Option< + unsafe extern "C" fn( + dwFlags: DWORD, + hActCtx: HANDLE, + pvSubInstance: PVOID, + ulInfoClass: ULONG, + pvBuffer: PVOID, + cbBuffer: SIZE_T, + pcbWrittenOrRequired: *mut SIZE_T, + ) -> BOOL, +>; +extern "C" { + pub fn WTSGetActiveConsoleSessionId() -> DWORD; +} +extern "C" { + pub fn WTSGetServiceSessionId() -> DWORD; +} +extern "C" { + pub fn WTSIsServerContainer() -> BOOLEAN; +} +extern "C" { + pub fn GetActiveProcessorGroupCount() -> WORD; +} +extern "C" { + pub fn GetMaximumProcessorGroupCount() -> WORD; +} +extern "C" { + pub fn GetActiveProcessorCount(GroupNumber: WORD) -> DWORD; +} +extern "C" { + pub fn GetMaximumProcessorCount(GroupNumber: WORD) -> DWORD; +} +extern "C" { + pub fn GetNumaProcessorNode(Processor: UCHAR, NodeNumber: PUCHAR) -> BOOL; +} +extern "C" { + pub fn GetNumaNodeNumberFromHandle(hFile: HANDLE, NodeNumber: PUSHORT) -> BOOL; +} +extern "C" { + pub fn GetNumaProcessorNodeEx(Processor: PPROCESSOR_NUMBER, NodeNumber: PUSHORT) -> BOOL; +} +extern "C" { + pub fn GetNumaNodeProcessorMask(Node: UCHAR, ProcessorMask: PULONGLONG) -> BOOL; +} +extern "C" { + pub fn GetNumaAvailableMemoryNode(Node: UCHAR, AvailableBytes: PULONGLONG) -> BOOL; +} +extern "C" { + pub fn GetNumaAvailableMemoryNodeEx(Node: USHORT, AvailableBytes: PULONGLONG) -> BOOL; +} +extern "C" { + pub fn GetNumaProximityNode(ProximityId: ULONG, NodeNumber: PUCHAR) -> BOOL; +} +pub type APPLICATION_RECOVERY_CALLBACK = + ::std::option::Option DWORD>; +extern "C" { + pub fn RegisterApplicationRecoveryCallback( + pRecoveyCallback: APPLICATION_RECOVERY_CALLBACK, + pvParameter: PVOID, + dwPingInterval: DWORD, + dwFlags: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn UnregisterApplicationRecoveryCallback() -> HRESULT; +} +extern "C" { + pub fn RegisterApplicationRestart(pwzCommandline: PCWSTR, dwFlags: DWORD) -> HRESULT; +} +extern "C" { + pub fn UnregisterApplicationRestart() -> HRESULT; +} +extern "C" { + pub fn GetApplicationRecoveryCallback( + hProcess: HANDLE, + pRecoveryCallback: *mut APPLICATION_RECOVERY_CALLBACK, + ppvParameter: *mut PVOID, + pdwPingInterval: PDWORD, + pdwFlags: PDWORD, + ) -> HRESULT; +} +extern "C" { + pub fn GetApplicationRestartSettings( + hProcess: HANDLE, + pwzCommandline: PWSTR, + pcchSize: PDWORD, + pdwFlags: PDWORD, + ) -> HRESULT; +} +extern "C" { + pub fn ApplicationRecoveryInProgress(pbCancelled: PBOOL) -> HRESULT; +} +extern "C" { + pub fn ApplicationRecoveryFinished(bSuccess: BOOL); +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_BASIC_INFO { + pub CreationTime: LARGE_INTEGER, + pub LastAccessTime: LARGE_INTEGER, + pub LastWriteTime: LARGE_INTEGER, + pub ChangeTime: LARGE_INTEGER, + pub FileAttributes: DWORD, +} +pub type FILE_BASIC_INFO = _FILE_BASIC_INFO; +pub type PFILE_BASIC_INFO = *mut _FILE_BASIC_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_STANDARD_INFO { + pub AllocationSize: LARGE_INTEGER, + pub EndOfFile: LARGE_INTEGER, + pub NumberOfLinks: DWORD, + pub DeletePending: BOOLEAN, + pub Directory: BOOLEAN, +} +pub type FILE_STANDARD_INFO = _FILE_STANDARD_INFO; +pub type PFILE_STANDARD_INFO = *mut _FILE_STANDARD_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_NAME_INFO { + pub FileNameLength: DWORD, + pub FileName: [WCHAR; 1usize], +} +pub type FILE_NAME_INFO = _FILE_NAME_INFO; +pub type PFILE_NAME_INFO = *mut _FILE_NAME_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_CASE_SENSITIVE_INFO { + pub Flags: ULONG, +} +pub type FILE_CASE_SENSITIVE_INFO = _FILE_CASE_SENSITIVE_INFO; +pub type PFILE_CASE_SENSITIVE_INFO = *mut _FILE_CASE_SENSITIVE_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_RENAME_INFO { + pub __bindgen_anon_1: _FILE_RENAME_INFO__bindgen_ty_1, + pub RootDirectory: HANDLE, + pub FileNameLength: DWORD, + pub FileName: [WCHAR; 1usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _FILE_RENAME_INFO__bindgen_ty_1 { + pub ReplaceIfExists: BOOLEAN, + pub Flags: DWORD, +} +pub type FILE_RENAME_INFO = _FILE_RENAME_INFO; +pub type PFILE_RENAME_INFO = *mut _FILE_RENAME_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_ALLOCATION_INFO { + pub AllocationSize: LARGE_INTEGER, +} +pub type FILE_ALLOCATION_INFO = _FILE_ALLOCATION_INFO; +pub type PFILE_ALLOCATION_INFO = *mut _FILE_ALLOCATION_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_END_OF_FILE_INFO { + pub EndOfFile: LARGE_INTEGER, +} +pub type FILE_END_OF_FILE_INFO = _FILE_END_OF_FILE_INFO; +pub type PFILE_END_OF_FILE_INFO = *mut _FILE_END_OF_FILE_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_STREAM_INFO { + pub NextEntryOffset: DWORD, + pub StreamNameLength: DWORD, + pub StreamSize: LARGE_INTEGER, + pub StreamAllocationSize: LARGE_INTEGER, + pub StreamName: [WCHAR; 1usize], +} +pub type FILE_STREAM_INFO = _FILE_STREAM_INFO; +pub type PFILE_STREAM_INFO = *mut _FILE_STREAM_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_COMPRESSION_INFO { + pub CompressedFileSize: LARGE_INTEGER, + pub CompressionFormat: WORD, + pub CompressionUnitShift: UCHAR, + pub ChunkShift: UCHAR, + pub ClusterShift: UCHAR, + pub Reserved: [UCHAR; 3usize], +} +pub type FILE_COMPRESSION_INFO = _FILE_COMPRESSION_INFO; +pub type PFILE_COMPRESSION_INFO = *mut _FILE_COMPRESSION_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_ATTRIBUTE_TAG_INFO { + pub FileAttributes: DWORD, + pub ReparseTag: DWORD, +} +pub type FILE_ATTRIBUTE_TAG_INFO = _FILE_ATTRIBUTE_TAG_INFO; +pub type PFILE_ATTRIBUTE_TAG_INFO = *mut _FILE_ATTRIBUTE_TAG_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_DISPOSITION_INFO { + pub DeleteFileA: BOOLEAN, +} +pub type FILE_DISPOSITION_INFO = _FILE_DISPOSITION_INFO; +pub type PFILE_DISPOSITION_INFO = *mut _FILE_DISPOSITION_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_DISPOSITION_INFO_EX { + pub Flags: DWORD, +} +pub type FILE_DISPOSITION_INFO_EX = _FILE_DISPOSITION_INFO_EX; +pub type PFILE_DISPOSITION_INFO_EX = *mut _FILE_DISPOSITION_INFO_EX; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_ID_BOTH_DIR_INFO { + pub NextEntryOffset: DWORD, + pub FileIndex: DWORD, + pub CreationTime: LARGE_INTEGER, + pub LastAccessTime: LARGE_INTEGER, + pub LastWriteTime: LARGE_INTEGER, + pub ChangeTime: LARGE_INTEGER, + pub EndOfFile: LARGE_INTEGER, + pub AllocationSize: LARGE_INTEGER, + pub FileAttributes: DWORD, + pub FileNameLength: DWORD, + pub EaSize: DWORD, + pub ShortNameLength: CCHAR, + pub ShortName: [WCHAR; 12usize], + pub FileId: LARGE_INTEGER, + pub FileName: [WCHAR; 1usize], +} +pub type FILE_ID_BOTH_DIR_INFO = _FILE_ID_BOTH_DIR_INFO; +pub type PFILE_ID_BOTH_DIR_INFO = *mut _FILE_ID_BOTH_DIR_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_FULL_DIR_INFO { + pub NextEntryOffset: ULONG, + pub FileIndex: ULONG, + pub CreationTime: LARGE_INTEGER, + pub LastAccessTime: LARGE_INTEGER, + pub LastWriteTime: LARGE_INTEGER, + pub ChangeTime: LARGE_INTEGER, + pub EndOfFile: LARGE_INTEGER, + pub AllocationSize: LARGE_INTEGER, + pub FileAttributes: ULONG, + pub FileNameLength: ULONG, + pub EaSize: ULONG, + pub FileName: [WCHAR; 1usize], +} +pub type FILE_FULL_DIR_INFO = _FILE_FULL_DIR_INFO; +pub type PFILE_FULL_DIR_INFO = *mut _FILE_FULL_DIR_INFO; +pub const _PRIORITY_HINT_IoPriorityHintVeryLow: _PRIORITY_HINT = 0; +pub const _PRIORITY_HINT_IoPriorityHintLow: _PRIORITY_HINT = 1; +pub const _PRIORITY_HINT_IoPriorityHintNormal: _PRIORITY_HINT = 2; +pub const _PRIORITY_HINT_MaximumIoPriorityHintType: _PRIORITY_HINT = 3; +pub type _PRIORITY_HINT = ::std::os::raw::c_int; +pub use self::_PRIORITY_HINT as PRIORITY_HINT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_IO_PRIORITY_HINT_INFO { + pub PriorityHint: PRIORITY_HINT, +} +pub type FILE_IO_PRIORITY_HINT_INFO = _FILE_IO_PRIORITY_HINT_INFO; +pub type PFILE_IO_PRIORITY_HINT_INFO = *mut _FILE_IO_PRIORITY_HINT_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_ALIGNMENT_INFO { + pub AlignmentRequirement: ULONG, +} +pub type FILE_ALIGNMENT_INFO = _FILE_ALIGNMENT_INFO; +pub type PFILE_ALIGNMENT_INFO = *mut _FILE_ALIGNMENT_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_STORAGE_INFO { + pub LogicalBytesPerSector: ULONG, + pub PhysicalBytesPerSectorForAtomicity: ULONG, + pub PhysicalBytesPerSectorForPerformance: ULONG, + pub FileSystemEffectivePhysicalBytesPerSectorForAtomicity: ULONG, + pub Flags: ULONG, + pub ByteOffsetForSectorAlignment: ULONG, + pub ByteOffsetForPartitionAlignment: ULONG, +} +pub type FILE_STORAGE_INFO = _FILE_STORAGE_INFO; +pub type PFILE_STORAGE_INFO = *mut _FILE_STORAGE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_ID_INFO { + pub VolumeSerialNumber: ULONGLONG, + pub FileId: FILE_ID_128, +} +pub type FILE_ID_INFO = _FILE_ID_INFO; +pub type PFILE_ID_INFO = *mut _FILE_ID_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_ID_EXTD_DIR_INFO { + pub NextEntryOffset: ULONG, + pub FileIndex: ULONG, + pub CreationTime: LARGE_INTEGER, + pub LastAccessTime: LARGE_INTEGER, + pub LastWriteTime: LARGE_INTEGER, + pub ChangeTime: LARGE_INTEGER, + pub EndOfFile: LARGE_INTEGER, + pub AllocationSize: LARGE_INTEGER, + pub FileAttributes: ULONG, + pub FileNameLength: ULONG, + pub EaSize: ULONG, + pub ReparsePointTag: ULONG, + pub FileId: FILE_ID_128, + pub FileName: [WCHAR; 1usize], +} +pub type FILE_ID_EXTD_DIR_INFO = _FILE_ID_EXTD_DIR_INFO; +pub type PFILE_ID_EXTD_DIR_INFO = *mut _FILE_ID_EXTD_DIR_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_REMOTE_PROTOCOL_INFO { + pub StructureVersion: USHORT, + pub StructureSize: USHORT, + pub Protocol: ULONG, + pub ProtocolMajorVersion: USHORT, + pub ProtocolMinorVersion: USHORT, + pub ProtocolRevision: USHORT, + pub Reserved: USHORT, + pub Flags: ULONG, + pub GenericReserved: _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_1, + pub ProtocolSpecific: _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_1 { + pub Reserved: [ULONG; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2 { + pub Smb2: _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2__bindgen_ty_1, + pub Reserved: [ULONG; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2__bindgen_ty_1 { + pub Server: _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1, + pub Share: _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1 { + pub Capabilities: ULONG, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2__bindgen_ty_1__bindgen_ty_2 { + pub Capabilities: ULONG, + pub ShareFlags: ULONG, +} +pub type FILE_REMOTE_PROTOCOL_INFO = _FILE_REMOTE_PROTOCOL_INFO; +pub type PFILE_REMOTE_PROTOCOL_INFO = *mut _FILE_REMOTE_PROTOCOL_INFO; +extern "C" { + pub fn GetFileInformationByHandleEx( + hFile: HANDLE, + FileInformationClass: FILE_INFO_BY_HANDLE_CLASS, + lpFileInformation: LPVOID, + dwBufferSize: DWORD, + ) -> BOOL; +} +pub const _FILE_ID_TYPE_FileIdType: _FILE_ID_TYPE = 0; +pub const _FILE_ID_TYPE_ObjectIdType: _FILE_ID_TYPE = 1; +pub const _FILE_ID_TYPE_ExtendedFileIdType: _FILE_ID_TYPE = 2; +pub const _FILE_ID_TYPE_MaximumFileIdType: _FILE_ID_TYPE = 3; +pub type _FILE_ID_TYPE = ::std::os::raw::c_int; +pub use self::_FILE_ID_TYPE as FILE_ID_TYPE; +pub type PFILE_ID_TYPE = *mut _FILE_ID_TYPE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct FILE_ID_DESCRIPTOR { + pub dwSize: DWORD, + pub Type: FILE_ID_TYPE, + pub __bindgen_anon_1: FILE_ID_DESCRIPTOR__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union FILE_ID_DESCRIPTOR__bindgen_ty_1 { + pub FileId: LARGE_INTEGER, + pub ObjectId: GUID, + pub ExtendedFileId: FILE_ID_128, +} +pub type LPFILE_ID_DESCRIPTOR = *mut FILE_ID_DESCRIPTOR; +extern "C" { + pub fn OpenFileById( + hVolumeHint: HANDLE, + lpFileId: LPFILE_ID_DESCRIPTOR, + dwDesiredAccess: DWORD, + dwShareMode: DWORD, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + dwFlagsAndAttributes: DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn CreateSymbolicLinkA( + lpSymlinkFileName: LPCSTR, + lpTargetFileName: LPCSTR, + dwFlags: DWORD, + ) -> BOOLEAN; +} +extern "C" { + pub fn CreateSymbolicLinkW( + lpSymlinkFileName: LPCWSTR, + lpTargetFileName: LPCWSTR, + dwFlags: DWORD, + ) -> BOOLEAN; +} +extern "C" { + pub fn QueryActCtxSettingsW( + dwFlags: DWORD, + hActCtx: HANDLE, + settingsNameSpace: PCWSTR, + settingName: PCWSTR, + pvBuffer: PWSTR, + dwBuffer: SIZE_T, + pdwWrittenOrRequired: *mut SIZE_T, + ) -> BOOL; +} +extern "C" { + pub fn CreateSymbolicLinkTransactedA( + lpSymlinkFileName: LPCSTR, + lpTargetFileName: LPCSTR, + dwFlags: DWORD, + hTransaction: HANDLE, + ) -> BOOLEAN; +} +extern "C" { + pub fn CreateSymbolicLinkTransactedW( + lpSymlinkFileName: LPCWSTR, + lpTargetFileName: LPCWSTR, + dwFlags: DWORD, + hTransaction: HANDLE, + ) -> BOOLEAN; +} +extern "C" { + pub fn ReplacePartitionUnit( + TargetPartition: PWSTR, + SparePartition: PWSTR, + Flags: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn AddSecureMemoryCacheCallback(pfnCallBack: PSECURE_MEMORY_CACHE_CALLBACK) -> BOOL; +} +extern "C" { + pub fn RemoveSecureMemoryCacheCallback(pfnCallBack: PSECURE_MEMORY_CACHE_CALLBACK) -> BOOL; +} +extern "C" { + pub fn CopyContext(Destination: PCONTEXT, ContextFlags: DWORD, Source: PCONTEXT) -> BOOL; +} +extern "C" { + pub fn InitializeContext( + Buffer: PVOID, + ContextFlags: DWORD, + Context: *mut PCONTEXT, + ContextLength: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn InitializeContext2( + Buffer: PVOID, + ContextFlags: DWORD, + Context: *mut PCONTEXT, + ContextLength: PDWORD, + XStateCompactionMask: ULONG64, + ) -> BOOL; +} +extern "C" { + pub fn GetEnabledXStateFeatures() -> DWORD64; +} +extern "C" { + pub fn GetXStateFeaturesMask(Context: PCONTEXT, FeatureMask: PDWORD64) -> BOOL; +} +extern "C" { + pub fn LocateXStateFeature(Context: PCONTEXT, FeatureId: DWORD, Length: PDWORD) -> PVOID; +} +extern "C" { + pub fn SetXStateFeaturesMask(Context: PCONTEXT, FeatureMask: DWORD64) -> BOOL; +} +extern "C" { + pub fn GetThreadEnabledXStateFeatures() -> DWORD64; +} +extern "C" { + pub fn EnableProcessOptionalXStateFeatures(Features: DWORD64) -> BOOL; +} +extern "C" { + pub fn EnableThreadProfiling( + ThreadHandle: HANDLE, + Flags: DWORD, + HardwareCounters: DWORD64, + PerformanceDataHandle: *mut HANDLE, + ) -> DWORD; +} +extern "C" { + pub fn DisableThreadProfiling(PerformanceDataHandle: HANDLE) -> DWORD; +} +extern "C" { + pub fn QueryThreadProfiling(ThreadHandle: HANDLE, Enabled: PBOOLEAN) -> DWORD; +} +extern "C" { + pub fn ReadThreadProfilingData( + PerformanceDataHandle: HANDLE, + Flags: DWORD, + PerformanceData: PPERFORMANCE_DATA, + ) -> DWORD; +} +extern "C" { + pub fn RaiseCustomSystemEventTrigger( + CustomSystemEventTriggerConfig: PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG, + ) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRAWPATRECT { + pub ptPosition: POINT, + pub ptSize: POINT, + pub wStyle: WORD, + pub wPattern: WORD, +} +pub type DRAWPATRECT = _DRAWPATRECT; +pub type PDRAWPATRECT = *mut _DRAWPATRECT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PSINJECTDATA { + pub DataBytes: DWORD, + pub InjectionPoint: WORD, + pub PageNumber: WORD, +} +pub type PSINJECTDATA = _PSINJECTDATA; +pub type PPSINJECTDATA = *mut _PSINJECTDATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PSFEATURE_OUTPUT { + pub bPageIndependent: BOOL, + pub bSetPageDevice: BOOL, +} +pub type PSFEATURE_OUTPUT = _PSFEATURE_OUTPUT; +pub type PPSFEATURE_OUTPUT = *mut _PSFEATURE_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PSFEATURE_CUSTPAPER { + pub lOrientation: LONG, + pub lWidth: LONG, + pub lHeight: LONG, + pub lWidthOffset: LONG, + pub lHeightOffset: LONG, +} +pub type PSFEATURE_CUSTPAPER = _PSFEATURE_CUSTPAPER; +pub type PPSFEATURE_CUSTPAPER = *mut _PSFEATURE_CUSTPAPER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagXFORM { + pub eM11: FLOAT, + pub eM12: FLOAT, + pub eM21: FLOAT, + pub eM22: FLOAT, + pub eDx: FLOAT, + pub eDy: FLOAT, +} +pub type XFORM = tagXFORM; +pub type PXFORM = *mut tagXFORM; +pub type LPXFORM = *mut tagXFORM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagBITMAP { + pub bmType: LONG, + pub bmWidth: LONG, + pub bmHeight: LONG, + pub bmWidthBytes: LONG, + pub bmPlanes: WORD, + pub bmBitsPixel: WORD, + pub bmBits: LPVOID, +} +pub type BITMAP = tagBITMAP; +pub type PBITMAP = *mut tagBITMAP; +pub type NPBITMAP = *mut tagBITMAP; +pub type LPBITMAP = *mut tagBITMAP; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRGBTRIPLE { + pub rgbtBlue: BYTE, + pub rgbtGreen: BYTE, + pub rgbtRed: BYTE, +} +pub type RGBTRIPLE = tagRGBTRIPLE; +pub type PRGBTRIPLE = *mut tagRGBTRIPLE; +pub type NPRGBTRIPLE = *mut tagRGBTRIPLE; +pub type LPRGBTRIPLE = *mut tagRGBTRIPLE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRGBQUAD { + pub rgbBlue: BYTE, + pub rgbGreen: BYTE, + pub rgbRed: BYTE, + pub rgbReserved: BYTE, +} +pub type RGBQUAD = tagRGBQUAD; +pub type LPRGBQUAD = *mut RGBQUAD; +pub type LCSCSTYPE = LONG; +pub type LCSGAMUTMATCH = LONG; +pub type FXPT16DOT16 = ::std::os::raw::c_long; +pub type LPFXPT16DOT16 = *mut ::std::os::raw::c_long; +pub type FXPT2DOT30 = ::std::os::raw::c_long; +pub type LPFXPT2DOT30 = *mut ::std::os::raw::c_long; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCIEXYZ { + pub ciexyzX: FXPT2DOT30, + pub ciexyzY: FXPT2DOT30, + pub ciexyzZ: FXPT2DOT30, +} +pub type CIEXYZ = tagCIEXYZ; +pub type LPCIEXYZ = *mut CIEXYZ; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagICEXYZTRIPLE { + pub ciexyzRed: CIEXYZ, + pub ciexyzGreen: CIEXYZ, + pub ciexyzBlue: CIEXYZ, +} +pub type CIEXYZTRIPLE = tagICEXYZTRIPLE; +pub type LPCIEXYZTRIPLE = *mut CIEXYZTRIPLE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagLOGCOLORSPACEA { + pub lcsSignature: DWORD, + pub lcsVersion: DWORD, + pub lcsSize: DWORD, + pub lcsCSType: LCSCSTYPE, + pub lcsIntent: LCSGAMUTMATCH, + pub lcsEndpoints: CIEXYZTRIPLE, + pub lcsGammaRed: DWORD, + pub lcsGammaGreen: DWORD, + pub lcsGammaBlue: DWORD, + pub lcsFilename: [CHAR; 260usize], +} +pub type LOGCOLORSPACEA = tagLOGCOLORSPACEA; +pub type LPLOGCOLORSPACEA = *mut tagLOGCOLORSPACEA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagLOGCOLORSPACEW { + pub lcsSignature: DWORD, + pub lcsVersion: DWORD, + pub lcsSize: DWORD, + pub lcsCSType: LCSCSTYPE, + pub lcsIntent: LCSGAMUTMATCH, + pub lcsEndpoints: CIEXYZTRIPLE, + pub lcsGammaRed: DWORD, + pub lcsGammaGreen: DWORD, + pub lcsGammaBlue: DWORD, + pub lcsFilename: [WCHAR; 260usize], +} +pub type LOGCOLORSPACEW = tagLOGCOLORSPACEW; +pub type LPLOGCOLORSPACEW = *mut tagLOGCOLORSPACEW; +pub type LOGCOLORSPACE = LOGCOLORSPACEA; +pub type LPLOGCOLORSPACE = LPLOGCOLORSPACEA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagBITMAPCOREHEADER { + pub bcSize: DWORD, + pub bcWidth: WORD, + pub bcHeight: WORD, + pub bcPlanes: WORD, + pub bcBitCount: WORD, +} +pub type BITMAPCOREHEADER = tagBITMAPCOREHEADER; +pub type LPBITMAPCOREHEADER = *mut tagBITMAPCOREHEADER; +pub type PBITMAPCOREHEADER = *mut tagBITMAPCOREHEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagBITMAPINFOHEADER { + pub biSize: DWORD, + pub biWidth: LONG, + pub biHeight: LONG, + pub biPlanes: WORD, + pub biBitCount: WORD, + pub biCompression: DWORD, + pub biSizeImage: DWORD, + pub biXPelsPerMeter: LONG, + pub biYPelsPerMeter: LONG, + pub biClrUsed: DWORD, + pub biClrImportant: DWORD, +} +pub type BITMAPINFOHEADER = tagBITMAPINFOHEADER; +pub type LPBITMAPINFOHEADER = *mut tagBITMAPINFOHEADER; +pub type PBITMAPINFOHEADER = *mut tagBITMAPINFOHEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BITMAPV4HEADER { + pub bV4Size: DWORD, + pub bV4Width: LONG, + pub bV4Height: LONG, + pub bV4Planes: WORD, + pub bV4BitCount: WORD, + pub bV4V4Compression: DWORD, + pub bV4SizeImage: DWORD, + pub bV4XPelsPerMeter: LONG, + pub bV4YPelsPerMeter: LONG, + pub bV4ClrUsed: DWORD, + pub bV4ClrImportant: DWORD, + pub bV4RedMask: DWORD, + pub bV4GreenMask: DWORD, + pub bV4BlueMask: DWORD, + pub bV4AlphaMask: DWORD, + pub bV4CSType: DWORD, + pub bV4Endpoints: CIEXYZTRIPLE, + pub bV4GammaRed: DWORD, + pub bV4GammaGreen: DWORD, + pub bV4GammaBlue: DWORD, +} +pub type LPBITMAPV4HEADER = *mut BITMAPV4HEADER; +pub type PBITMAPV4HEADER = *mut BITMAPV4HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BITMAPV5HEADER { + pub bV5Size: DWORD, + pub bV5Width: LONG, + pub bV5Height: LONG, + pub bV5Planes: WORD, + pub bV5BitCount: WORD, + pub bV5Compression: DWORD, + pub bV5SizeImage: DWORD, + pub bV5XPelsPerMeter: LONG, + pub bV5YPelsPerMeter: LONG, + pub bV5ClrUsed: DWORD, + pub bV5ClrImportant: DWORD, + pub bV5RedMask: DWORD, + pub bV5GreenMask: DWORD, + pub bV5BlueMask: DWORD, + pub bV5AlphaMask: DWORD, + pub bV5CSType: DWORD, + pub bV5Endpoints: CIEXYZTRIPLE, + pub bV5GammaRed: DWORD, + pub bV5GammaGreen: DWORD, + pub bV5GammaBlue: DWORD, + pub bV5Intent: DWORD, + pub bV5ProfileData: DWORD, + pub bV5ProfileSize: DWORD, + pub bV5Reserved: DWORD, +} +pub type LPBITMAPV5HEADER = *mut BITMAPV5HEADER; +pub type PBITMAPV5HEADER = *mut BITMAPV5HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagBITMAPINFO { + pub bmiHeader: BITMAPINFOHEADER, + pub bmiColors: [RGBQUAD; 1usize], +} +pub type BITMAPINFO = tagBITMAPINFO; +pub type LPBITMAPINFO = *mut tagBITMAPINFO; +pub type PBITMAPINFO = *mut tagBITMAPINFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagBITMAPCOREINFO { + pub bmciHeader: BITMAPCOREHEADER, + pub bmciColors: [RGBTRIPLE; 1usize], +} +pub type BITMAPCOREINFO = tagBITMAPCOREINFO; +pub type LPBITMAPCOREINFO = *mut tagBITMAPCOREINFO; +pub type PBITMAPCOREINFO = *mut tagBITMAPCOREINFO; +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct tagBITMAPFILEHEADER { + pub bfType: WORD, + pub bfSize: DWORD, + pub bfReserved1: WORD, + pub bfReserved2: WORD, + pub bfOffBits: DWORD, +} +pub type BITMAPFILEHEADER = tagBITMAPFILEHEADER; +pub type LPBITMAPFILEHEADER = *mut tagBITMAPFILEHEADER; +pub type PBITMAPFILEHEADER = *mut tagBITMAPFILEHEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagFONTSIGNATURE { + pub fsUsb: [DWORD; 4usize], + pub fsCsb: [DWORD; 2usize], +} +pub type FONTSIGNATURE = tagFONTSIGNATURE; +pub type PFONTSIGNATURE = *mut tagFONTSIGNATURE; +pub type LPFONTSIGNATURE = *mut tagFONTSIGNATURE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCHARSETINFO { + pub ciCharset: UINT, + pub ciACP: UINT, + pub fs: FONTSIGNATURE, +} +pub type CHARSETINFO = tagCHARSETINFO; +pub type PCHARSETINFO = *mut tagCHARSETINFO; +pub type NPCHARSETINFO = *mut tagCHARSETINFO; +pub type LPCHARSETINFO = *mut tagCHARSETINFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagLOCALESIGNATURE { + pub lsUsb: [DWORD; 4usize], + pub lsCsbDefault: [DWORD; 2usize], + pub lsCsbSupported: [DWORD; 2usize], +} +pub type LOCALESIGNATURE = tagLOCALESIGNATURE; +pub type PLOCALESIGNATURE = *mut tagLOCALESIGNATURE; +pub type LPLOCALESIGNATURE = *mut tagLOCALESIGNATURE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagHANDLETABLE { + pub objectHandle: [HGDIOBJ; 1usize], +} +pub type HANDLETABLE = tagHANDLETABLE; +pub type PHANDLETABLE = *mut tagHANDLETABLE; +pub type LPHANDLETABLE = *mut tagHANDLETABLE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMETARECORD { + pub rdSize: DWORD, + pub rdFunction: WORD, + pub rdParm: [WORD; 1usize], +} +pub type METARECORD = tagMETARECORD; +pub type PMETARECORD = *mut tagMETARECORD; +pub type LPMETARECORD = *mut tagMETARECORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMETAFILEPICT { + pub mm: LONG, + pub xExt: LONG, + pub yExt: LONG, + pub hMF: HMETAFILE, +} +pub type METAFILEPICT = tagMETAFILEPICT; +pub type LPMETAFILEPICT = *mut tagMETAFILEPICT; +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct tagMETAHEADER { + pub mtType: WORD, + pub mtHeaderSize: WORD, + pub mtVersion: WORD, + pub mtSize: DWORD, + pub mtNoObjects: WORD, + pub mtMaxRecord: DWORD, + pub mtNoParameters: WORD, +} +pub type METAHEADER = tagMETAHEADER; +pub type PMETAHEADER = *mut tagMETAHEADER; +pub type LPMETAHEADER = *mut tagMETAHEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagENHMETARECORD { + pub iType: DWORD, + pub nSize: DWORD, + pub dParm: [DWORD; 1usize], +} +pub type ENHMETARECORD = tagENHMETARECORD; +pub type PENHMETARECORD = *mut tagENHMETARECORD; +pub type LPENHMETARECORD = *mut tagENHMETARECORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagENHMETAHEADER { + pub iType: DWORD, + pub nSize: DWORD, + pub rclBounds: RECTL, + pub rclFrame: RECTL, + pub dSignature: DWORD, + pub nVersion: DWORD, + pub nBytes: DWORD, + pub nRecords: DWORD, + pub nHandles: WORD, + pub sReserved: WORD, + pub nDescription: DWORD, + pub offDescription: DWORD, + pub nPalEntries: DWORD, + pub szlDevice: SIZEL, + pub szlMillimeters: SIZEL, + pub cbPixelFormat: DWORD, + pub offPixelFormat: DWORD, + pub bOpenGL: DWORD, + pub szlMicrometers: SIZEL, +} +pub type ENHMETAHEADER = tagENHMETAHEADER; +pub type PENHMETAHEADER = *mut tagENHMETAHEADER; +pub type LPENHMETAHEADER = *mut tagENHMETAHEADER; +pub type BCHAR = BYTE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagTEXTMETRICA { + pub tmHeight: LONG, + pub tmAscent: LONG, + pub tmDescent: LONG, + pub tmInternalLeading: LONG, + pub tmExternalLeading: LONG, + pub tmAveCharWidth: LONG, + pub tmMaxCharWidth: LONG, + pub tmWeight: LONG, + pub tmOverhang: LONG, + pub tmDigitizedAspectX: LONG, + pub tmDigitizedAspectY: LONG, + pub tmFirstChar: BYTE, + pub tmLastChar: BYTE, + pub tmDefaultChar: BYTE, + pub tmBreakChar: BYTE, + pub tmItalic: BYTE, + pub tmUnderlined: BYTE, + pub tmStruckOut: BYTE, + pub tmPitchAndFamily: BYTE, + pub tmCharSet: BYTE, +} +pub type TEXTMETRICA = tagTEXTMETRICA; +pub type PTEXTMETRICA = *mut tagTEXTMETRICA; +pub type NPTEXTMETRICA = *mut tagTEXTMETRICA; +pub type LPTEXTMETRICA = *mut tagTEXTMETRICA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagTEXTMETRICW { + pub tmHeight: LONG, + pub tmAscent: LONG, + pub tmDescent: LONG, + pub tmInternalLeading: LONG, + pub tmExternalLeading: LONG, + pub tmAveCharWidth: LONG, + pub tmMaxCharWidth: LONG, + pub tmWeight: LONG, + pub tmOverhang: LONG, + pub tmDigitizedAspectX: LONG, + pub tmDigitizedAspectY: LONG, + pub tmFirstChar: WCHAR, + pub tmLastChar: WCHAR, + pub tmDefaultChar: WCHAR, + pub tmBreakChar: WCHAR, + pub tmItalic: BYTE, + pub tmUnderlined: BYTE, + pub tmStruckOut: BYTE, + pub tmPitchAndFamily: BYTE, + pub tmCharSet: BYTE, +} +pub type TEXTMETRICW = tagTEXTMETRICW; +pub type PTEXTMETRICW = *mut tagTEXTMETRICW; +pub type NPTEXTMETRICW = *mut tagTEXTMETRICW; +pub type LPTEXTMETRICW = *mut tagTEXTMETRICW; +pub type TEXTMETRIC = TEXTMETRICA; +pub type PTEXTMETRIC = PTEXTMETRICA; +pub type NPTEXTMETRIC = NPTEXTMETRICA; +pub type LPTEXTMETRIC = LPTEXTMETRICA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagNEWTEXTMETRICA { + pub tmHeight: LONG, + pub tmAscent: LONG, + pub tmDescent: LONG, + pub tmInternalLeading: LONG, + pub tmExternalLeading: LONG, + pub tmAveCharWidth: LONG, + pub tmMaxCharWidth: LONG, + pub tmWeight: LONG, + pub tmOverhang: LONG, + pub tmDigitizedAspectX: LONG, + pub tmDigitizedAspectY: LONG, + pub tmFirstChar: BYTE, + pub tmLastChar: BYTE, + pub tmDefaultChar: BYTE, + pub tmBreakChar: BYTE, + pub tmItalic: BYTE, + pub tmUnderlined: BYTE, + pub tmStruckOut: BYTE, + pub tmPitchAndFamily: BYTE, + pub tmCharSet: BYTE, + pub ntmFlags: DWORD, + pub ntmSizeEM: UINT, + pub ntmCellHeight: UINT, + pub ntmAvgWidth: UINT, +} +pub type NEWTEXTMETRICA = tagNEWTEXTMETRICA; +pub type PNEWTEXTMETRICA = *mut tagNEWTEXTMETRICA; +pub type NPNEWTEXTMETRICA = *mut tagNEWTEXTMETRICA; +pub type LPNEWTEXTMETRICA = *mut tagNEWTEXTMETRICA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagNEWTEXTMETRICW { + pub tmHeight: LONG, + pub tmAscent: LONG, + pub tmDescent: LONG, + pub tmInternalLeading: LONG, + pub tmExternalLeading: LONG, + pub tmAveCharWidth: LONG, + pub tmMaxCharWidth: LONG, + pub tmWeight: LONG, + pub tmOverhang: LONG, + pub tmDigitizedAspectX: LONG, + pub tmDigitizedAspectY: LONG, + pub tmFirstChar: WCHAR, + pub tmLastChar: WCHAR, + pub tmDefaultChar: WCHAR, + pub tmBreakChar: WCHAR, + pub tmItalic: BYTE, + pub tmUnderlined: BYTE, + pub tmStruckOut: BYTE, + pub tmPitchAndFamily: BYTE, + pub tmCharSet: BYTE, + pub ntmFlags: DWORD, + pub ntmSizeEM: UINT, + pub ntmCellHeight: UINT, + pub ntmAvgWidth: UINT, +} +pub type NEWTEXTMETRICW = tagNEWTEXTMETRICW; +pub type PNEWTEXTMETRICW = *mut tagNEWTEXTMETRICW; +pub type NPNEWTEXTMETRICW = *mut tagNEWTEXTMETRICW; +pub type LPNEWTEXTMETRICW = *mut tagNEWTEXTMETRICW; +pub type NEWTEXTMETRIC = NEWTEXTMETRICA; +pub type PNEWTEXTMETRIC = PNEWTEXTMETRICA; +pub type NPNEWTEXTMETRIC = NPNEWTEXTMETRICA; +pub type LPNEWTEXTMETRIC = LPNEWTEXTMETRICA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagNEWTEXTMETRICEXA { + pub ntmTm: NEWTEXTMETRICA, + pub ntmFontSig: FONTSIGNATURE, +} +pub type NEWTEXTMETRICEXA = tagNEWTEXTMETRICEXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagNEWTEXTMETRICEXW { + pub ntmTm: NEWTEXTMETRICW, + pub ntmFontSig: FONTSIGNATURE, +} +pub type NEWTEXTMETRICEXW = tagNEWTEXTMETRICEXW; +pub type NEWTEXTMETRICEX = NEWTEXTMETRICEXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPELARRAY { + pub paXCount: LONG, + pub paYCount: LONG, + pub paXExt: LONG, + pub paYExt: LONG, + pub paRGBs: BYTE, +} +pub type PELARRAY = tagPELARRAY; +pub type PPELARRAY = *mut tagPELARRAY; +pub type NPPELARRAY = *mut tagPELARRAY; +pub type LPPELARRAY = *mut tagPELARRAY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagLOGBRUSH { + pub lbStyle: UINT, + pub lbColor: COLORREF, + pub lbHatch: ULONG_PTR, +} +pub type LOGBRUSH = tagLOGBRUSH; +pub type PLOGBRUSH = *mut tagLOGBRUSH; +pub type NPLOGBRUSH = *mut tagLOGBRUSH; +pub type LPLOGBRUSH = *mut tagLOGBRUSH; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagLOGBRUSH32 { + pub lbStyle: UINT, + pub lbColor: COLORREF, + pub lbHatch: ULONG, +} +pub type LOGBRUSH32 = tagLOGBRUSH32; +pub type PLOGBRUSH32 = *mut tagLOGBRUSH32; +pub type NPLOGBRUSH32 = *mut tagLOGBRUSH32; +pub type LPLOGBRUSH32 = *mut tagLOGBRUSH32; +pub type PATTERN = LOGBRUSH; +pub type PPATTERN = *mut PATTERN; +pub type NPPATTERN = *mut PATTERN; +pub type LPPATTERN = *mut PATTERN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagLOGPEN { + pub lopnStyle: UINT, + pub lopnWidth: POINT, + pub lopnColor: COLORREF, +} +pub type LOGPEN = tagLOGPEN; +pub type PLOGPEN = *mut tagLOGPEN; +pub type NPLOGPEN = *mut tagLOGPEN; +pub type LPLOGPEN = *mut tagLOGPEN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEXTLOGPEN { + pub elpPenStyle: DWORD, + pub elpWidth: DWORD, + pub elpBrushStyle: UINT, + pub elpColor: COLORREF, + pub elpHatch: ULONG_PTR, + pub elpNumEntries: DWORD, + pub elpStyleEntry: [DWORD; 1usize], +} +pub type EXTLOGPEN = tagEXTLOGPEN; +pub type PEXTLOGPEN = *mut tagEXTLOGPEN; +pub type NPEXTLOGPEN = *mut tagEXTLOGPEN; +pub type LPEXTLOGPEN = *mut tagEXTLOGPEN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEXTLOGPEN32 { + pub elpPenStyle: DWORD, + pub elpWidth: DWORD, + pub elpBrushStyle: UINT, + pub elpColor: COLORREF, + pub elpHatch: ULONG, + pub elpNumEntries: DWORD, + pub elpStyleEntry: [DWORD; 1usize], +} +pub type EXTLOGPEN32 = tagEXTLOGPEN32; +pub type PEXTLOGPEN32 = *mut tagEXTLOGPEN32; +pub type NPEXTLOGPEN32 = *mut tagEXTLOGPEN32; +pub type LPEXTLOGPEN32 = *mut tagEXTLOGPEN32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPALETTEENTRY { + pub peRed: BYTE, + pub peGreen: BYTE, + pub peBlue: BYTE, + pub peFlags: BYTE, +} +pub type PALETTEENTRY = tagPALETTEENTRY; +pub type PPALETTEENTRY = *mut tagPALETTEENTRY; +pub type LPPALETTEENTRY = *mut tagPALETTEENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagLOGPALETTE { + pub palVersion: WORD, + pub palNumEntries: WORD, + pub palPalEntry: [PALETTEENTRY; 1usize], +} +pub type LOGPALETTE = tagLOGPALETTE; +pub type PLOGPALETTE = *mut tagLOGPALETTE; +pub type NPLOGPALETTE = *mut tagLOGPALETTE; +pub type LPLOGPALETTE = *mut tagLOGPALETTE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagLOGFONTA { + pub lfHeight: LONG, + pub lfWidth: LONG, + pub lfEscapement: LONG, + pub lfOrientation: LONG, + pub lfWeight: LONG, + pub lfItalic: BYTE, + pub lfUnderline: BYTE, + pub lfStrikeOut: BYTE, + pub lfCharSet: BYTE, + pub lfOutPrecision: BYTE, + pub lfClipPrecision: BYTE, + pub lfQuality: BYTE, + pub lfPitchAndFamily: BYTE, + pub lfFaceName: [CHAR; 32usize], +} +pub type LOGFONTA = tagLOGFONTA; +pub type PLOGFONTA = *mut tagLOGFONTA; +pub type NPLOGFONTA = *mut tagLOGFONTA; +pub type LPLOGFONTA = *mut tagLOGFONTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagLOGFONTW { + pub lfHeight: LONG, + pub lfWidth: LONG, + pub lfEscapement: LONG, + pub lfOrientation: LONG, + pub lfWeight: LONG, + pub lfItalic: BYTE, + pub lfUnderline: BYTE, + pub lfStrikeOut: BYTE, + pub lfCharSet: BYTE, + pub lfOutPrecision: BYTE, + pub lfClipPrecision: BYTE, + pub lfQuality: BYTE, + pub lfPitchAndFamily: BYTE, + pub lfFaceName: [WCHAR; 32usize], +} +pub type LOGFONTW = tagLOGFONTW; +pub type PLOGFONTW = *mut tagLOGFONTW; +pub type NPLOGFONTW = *mut tagLOGFONTW; +pub type LPLOGFONTW = *mut tagLOGFONTW; +pub type LOGFONT = LOGFONTA; +pub type PLOGFONT = PLOGFONTA; +pub type NPLOGFONT = NPLOGFONTA; +pub type LPLOGFONT = LPLOGFONTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagENUMLOGFONTA { + pub elfLogFont: LOGFONTA, + pub elfFullName: [BYTE; 64usize], + pub elfStyle: [BYTE; 32usize], +} +pub type ENUMLOGFONTA = tagENUMLOGFONTA; +pub type LPENUMLOGFONTA = *mut tagENUMLOGFONTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagENUMLOGFONTW { + pub elfLogFont: LOGFONTW, + pub elfFullName: [WCHAR; 64usize], + pub elfStyle: [WCHAR; 32usize], +} +pub type ENUMLOGFONTW = tagENUMLOGFONTW; +pub type LPENUMLOGFONTW = *mut tagENUMLOGFONTW; +pub type ENUMLOGFONT = ENUMLOGFONTA; +pub type LPENUMLOGFONT = LPENUMLOGFONTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagENUMLOGFONTEXA { + pub elfLogFont: LOGFONTA, + pub elfFullName: [BYTE; 64usize], + pub elfStyle: [BYTE; 32usize], + pub elfScript: [BYTE; 32usize], +} +pub type ENUMLOGFONTEXA = tagENUMLOGFONTEXA; +pub type LPENUMLOGFONTEXA = *mut tagENUMLOGFONTEXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagENUMLOGFONTEXW { + pub elfLogFont: LOGFONTW, + pub elfFullName: [WCHAR; 64usize], + pub elfStyle: [WCHAR; 32usize], + pub elfScript: [WCHAR; 32usize], +} +pub type ENUMLOGFONTEXW = tagENUMLOGFONTEXW; +pub type LPENUMLOGFONTEXW = *mut tagENUMLOGFONTEXW; +pub type ENUMLOGFONTEX = ENUMLOGFONTEXA; +pub type LPENUMLOGFONTEX = LPENUMLOGFONTEXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPANOSE { + pub bFamilyType: BYTE, + pub bSerifStyle: BYTE, + pub bWeight: BYTE, + pub bProportion: BYTE, + pub bContrast: BYTE, + pub bStrokeVariation: BYTE, + pub bArmStyle: BYTE, + pub bLetterform: BYTE, + pub bMidline: BYTE, + pub bXHeight: BYTE, +} +pub type PANOSE = tagPANOSE; +pub type LPPANOSE = *mut tagPANOSE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEXTLOGFONTA { + pub elfLogFont: LOGFONTA, + pub elfFullName: [BYTE; 64usize], + pub elfStyle: [BYTE; 32usize], + pub elfVersion: DWORD, + pub elfStyleSize: DWORD, + pub elfMatch: DWORD, + pub elfReserved: DWORD, + pub elfVendorId: [BYTE; 4usize], + pub elfCulture: DWORD, + pub elfPanose: PANOSE, +} +pub type EXTLOGFONTA = tagEXTLOGFONTA; +pub type PEXTLOGFONTA = *mut tagEXTLOGFONTA; +pub type NPEXTLOGFONTA = *mut tagEXTLOGFONTA; +pub type LPEXTLOGFONTA = *mut tagEXTLOGFONTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEXTLOGFONTW { + pub elfLogFont: LOGFONTW, + pub elfFullName: [WCHAR; 64usize], + pub elfStyle: [WCHAR; 32usize], + pub elfVersion: DWORD, + pub elfStyleSize: DWORD, + pub elfMatch: DWORD, + pub elfReserved: DWORD, + pub elfVendorId: [BYTE; 4usize], + pub elfCulture: DWORD, + pub elfPanose: PANOSE, +} +pub type EXTLOGFONTW = tagEXTLOGFONTW; +pub type PEXTLOGFONTW = *mut tagEXTLOGFONTW; +pub type NPEXTLOGFONTW = *mut tagEXTLOGFONTW; +pub type LPEXTLOGFONTW = *mut tagEXTLOGFONTW; +pub type EXTLOGFONT = EXTLOGFONTA; +pub type PEXTLOGFONT = PEXTLOGFONTA; +pub type NPEXTLOGFONT = NPEXTLOGFONTA; +pub type LPEXTLOGFONT = LPEXTLOGFONTA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _devicemodeA { + pub dmDeviceName: [BYTE; 32usize], + pub dmSpecVersion: WORD, + pub dmDriverVersion: WORD, + pub dmSize: WORD, + pub dmDriverExtra: WORD, + pub dmFields: DWORD, + pub __bindgen_anon_1: _devicemodeA__bindgen_ty_1, + pub dmColor: ::std::os::raw::c_short, + pub dmDuplex: ::std::os::raw::c_short, + pub dmYResolution: ::std::os::raw::c_short, + pub dmTTOption: ::std::os::raw::c_short, + pub dmCollate: ::std::os::raw::c_short, + pub dmFormName: [BYTE; 32usize], + pub dmLogPixels: WORD, + pub dmBitsPerPel: DWORD, + pub dmPelsWidth: DWORD, + pub dmPelsHeight: DWORD, + pub __bindgen_anon_2: _devicemodeA__bindgen_ty_2, + pub dmDisplayFrequency: DWORD, + pub dmICMMethod: DWORD, + pub dmICMIntent: DWORD, + pub dmMediaType: DWORD, + pub dmDitherType: DWORD, + pub dmReserved1: DWORD, + pub dmReserved2: DWORD, + pub dmPanningWidth: DWORD, + pub dmPanningHeight: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _devicemodeA__bindgen_ty_1 { + pub __bindgen_anon_1: _devicemodeA__bindgen_ty_1__bindgen_ty_1, + pub __bindgen_anon_2: _devicemodeA__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _devicemodeA__bindgen_ty_1__bindgen_ty_1 { + pub dmOrientation: ::std::os::raw::c_short, + pub dmPaperSize: ::std::os::raw::c_short, + pub dmPaperLength: ::std::os::raw::c_short, + pub dmPaperWidth: ::std::os::raw::c_short, + pub dmScale: ::std::os::raw::c_short, + pub dmCopies: ::std::os::raw::c_short, + pub dmDefaultSource: ::std::os::raw::c_short, + pub dmPrintQuality: ::std::os::raw::c_short, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _devicemodeA__bindgen_ty_1__bindgen_ty_2 { + pub dmPosition: POINTL, + pub dmDisplayOrientation: DWORD, + pub dmDisplayFixedOutput: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _devicemodeA__bindgen_ty_2 { + pub dmDisplayFlags: DWORD, + pub dmNup: DWORD, +} +pub type DEVMODEA = _devicemodeA; +pub type PDEVMODEA = *mut _devicemodeA; +pub type NPDEVMODEA = *mut _devicemodeA; +pub type LPDEVMODEA = *mut _devicemodeA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _devicemodeW { + pub dmDeviceName: [WCHAR; 32usize], + pub dmSpecVersion: WORD, + pub dmDriverVersion: WORD, + pub dmSize: WORD, + pub dmDriverExtra: WORD, + pub dmFields: DWORD, + pub __bindgen_anon_1: _devicemodeW__bindgen_ty_1, + pub dmColor: ::std::os::raw::c_short, + pub dmDuplex: ::std::os::raw::c_short, + pub dmYResolution: ::std::os::raw::c_short, + pub dmTTOption: ::std::os::raw::c_short, + pub dmCollate: ::std::os::raw::c_short, + pub dmFormName: [WCHAR; 32usize], + pub dmLogPixels: WORD, + pub dmBitsPerPel: DWORD, + pub dmPelsWidth: DWORD, + pub dmPelsHeight: DWORD, + pub __bindgen_anon_2: _devicemodeW__bindgen_ty_2, + pub dmDisplayFrequency: DWORD, + pub dmICMMethod: DWORD, + pub dmICMIntent: DWORD, + pub dmMediaType: DWORD, + pub dmDitherType: DWORD, + pub dmReserved1: DWORD, + pub dmReserved2: DWORD, + pub dmPanningWidth: DWORD, + pub dmPanningHeight: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _devicemodeW__bindgen_ty_1 { + pub __bindgen_anon_1: _devicemodeW__bindgen_ty_1__bindgen_ty_1, + pub __bindgen_anon_2: _devicemodeW__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _devicemodeW__bindgen_ty_1__bindgen_ty_1 { + pub dmOrientation: ::std::os::raw::c_short, + pub dmPaperSize: ::std::os::raw::c_short, + pub dmPaperLength: ::std::os::raw::c_short, + pub dmPaperWidth: ::std::os::raw::c_short, + pub dmScale: ::std::os::raw::c_short, + pub dmCopies: ::std::os::raw::c_short, + pub dmDefaultSource: ::std::os::raw::c_short, + pub dmPrintQuality: ::std::os::raw::c_short, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _devicemodeW__bindgen_ty_1__bindgen_ty_2 { + pub dmPosition: POINTL, + pub dmDisplayOrientation: DWORD, + pub dmDisplayFixedOutput: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _devicemodeW__bindgen_ty_2 { + pub dmDisplayFlags: DWORD, + pub dmNup: DWORD, +} +pub type DEVMODEW = _devicemodeW; +pub type PDEVMODEW = *mut _devicemodeW; +pub type NPDEVMODEW = *mut _devicemodeW; +pub type LPDEVMODEW = *mut _devicemodeW; +pub type DEVMODE = DEVMODEA; +pub type PDEVMODE = PDEVMODEA; +pub type NPDEVMODE = NPDEVMODEA; +pub type LPDEVMODE = LPDEVMODEA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISPLAY_DEVICEA { + pub cb: DWORD, + pub DeviceName: [CHAR; 32usize], + pub DeviceString: [CHAR; 128usize], + pub StateFlags: DWORD, + pub DeviceID: [CHAR; 128usize], + pub DeviceKey: [CHAR; 128usize], +} +pub type DISPLAY_DEVICEA = _DISPLAY_DEVICEA; +pub type PDISPLAY_DEVICEA = *mut _DISPLAY_DEVICEA; +pub type LPDISPLAY_DEVICEA = *mut _DISPLAY_DEVICEA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISPLAY_DEVICEW { + pub cb: DWORD, + pub DeviceName: [WCHAR; 32usize], + pub DeviceString: [WCHAR; 128usize], + pub StateFlags: DWORD, + pub DeviceID: [WCHAR; 128usize], + pub DeviceKey: [WCHAR; 128usize], +} +pub type DISPLAY_DEVICEW = _DISPLAY_DEVICEW; +pub type PDISPLAY_DEVICEW = *mut _DISPLAY_DEVICEW; +pub type LPDISPLAY_DEVICEW = *mut _DISPLAY_DEVICEW; +pub type DISPLAY_DEVICE = DISPLAY_DEVICEA; +pub type PDISPLAY_DEVICE = PDISPLAY_DEVICEA; +pub type LPDISPLAY_DEVICE = LPDISPLAY_DEVICEA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DISPLAYCONFIG_RATIONAL { + pub Numerator: UINT32, + pub Denominator: UINT32, +} +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_OTHER: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = -1; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HD15: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 0; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SVIDEO: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 1; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_COMPOSITE_VIDEO: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 2; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_COMPONENT_VIDEO: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 3; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DVI: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 4; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HDMI: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 5; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_LVDS: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 6; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_D_JPN: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 8; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SDI: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 9; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EXTERNAL : DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 10 ; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EMBEDDED : DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 11 ; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_UDI_EXTERNAL: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 12; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_UDI_EMBEDDED: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 13; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SDTVDONGLE: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 14; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_MIRACAST: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 15; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INDIRECT_WIRED: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 16; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INDIRECT_VIRTUAL: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 17; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_USB_TUNNEL : DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 18 ; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INTERNAL: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = -2147483648; +pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_FORCE_UINT32: + DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = -1; +pub type DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = ::std::os::raw::c_int; +pub const DISPLAYCONFIG_SCANLINE_ORDERING_DISPLAYCONFIG_SCANLINE_ORDERING_UNSPECIFIED: + DISPLAYCONFIG_SCANLINE_ORDERING = 0; +pub const DISPLAYCONFIG_SCANLINE_ORDERING_DISPLAYCONFIG_SCANLINE_ORDERING_PROGRESSIVE: + DISPLAYCONFIG_SCANLINE_ORDERING = 1; +pub const DISPLAYCONFIG_SCANLINE_ORDERING_DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED: + DISPLAYCONFIG_SCANLINE_ORDERING = 2; +pub const DISPLAYCONFIG_SCANLINE_ORDERING_DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED_UPPERFIELDFIRST : DISPLAYCONFIG_SCANLINE_ORDERING = 2 ; +pub const DISPLAYCONFIG_SCANLINE_ORDERING_DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED_LOWERFIELDFIRST : DISPLAYCONFIG_SCANLINE_ORDERING = 3 ; +pub const DISPLAYCONFIG_SCANLINE_ORDERING_DISPLAYCONFIG_SCANLINE_ORDERING_FORCE_UINT32: + DISPLAYCONFIG_SCANLINE_ORDERING = -1; +pub type DISPLAYCONFIG_SCANLINE_ORDERING = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DISPLAYCONFIG_2DREGION { + pub cx: UINT32, + pub cy: UINT32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DISPLAYCONFIG_VIDEO_SIGNAL_INFO { + pub pixelRate: UINT64, + pub hSyncFreq: DISPLAYCONFIG_RATIONAL, + pub vSyncFreq: DISPLAYCONFIG_RATIONAL, + pub activeSize: DISPLAYCONFIG_2DREGION, + pub totalSize: DISPLAYCONFIG_2DREGION, + pub __bindgen_anon_1: DISPLAYCONFIG_VIDEO_SIGNAL_INFO__bindgen_ty_1, + pub scanLineOrdering: DISPLAYCONFIG_SCANLINE_ORDERING, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union DISPLAYCONFIG_VIDEO_SIGNAL_INFO__bindgen_ty_1 { + pub AdditionalSignalInfo: DISPLAYCONFIG_VIDEO_SIGNAL_INFO__bindgen_ty_1__bindgen_ty_1, + pub videoStandard: UINT32, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct DISPLAYCONFIG_VIDEO_SIGNAL_INFO__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl DISPLAYCONFIG_VIDEO_SIGNAL_INFO__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn videoStandard(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } + } + #[inline] + pub fn set_videoStandard(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 16u8, val as u64) + } + } + #[inline] + pub fn vSyncFreqDivider(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 6u8) as u32) } + } + #[inline] + pub fn set_vSyncFreqDivider(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 6u8, val as u64) + } + } + #[inline] + pub fn reserved(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 10u8) as u32) } + } + #[inline] + pub fn set_reserved(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(22usize, 10u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + videoStandard: UINT32, + vSyncFreqDivider: UINT32, + reserved: UINT32, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 16u8, { + let videoStandard: u32 = unsafe { ::std::mem::transmute(videoStandard) }; + videoStandard as u64 + }); + __bindgen_bitfield_unit.set(16usize, 6u8, { + let vSyncFreqDivider: u32 = unsafe { ::std::mem::transmute(vSyncFreqDivider) }; + vSyncFreqDivider as u64 + }); + __bindgen_bitfield_unit.set(22usize, 10u8, { + let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; + reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub const DISPLAYCONFIG_SCALING_DISPLAYCONFIG_SCALING_IDENTITY: DISPLAYCONFIG_SCALING = 1; +pub const DISPLAYCONFIG_SCALING_DISPLAYCONFIG_SCALING_CENTERED: DISPLAYCONFIG_SCALING = 2; +pub const DISPLAYCONFIG_SCALING_DISPLAYCONFIG_SCALING_STRETCHED: DISPLAYCONFIG_SCALING = 3; +pub const DISPLAYCONFIG_SCALING_DISPLAYCONFIG_SCALING_ASPECTRATIOCENTEREDMAX: + DISPLAYCONFIG_SCALING = 4; +pub const DISPLAYCONFIG_SCALING_DISPLAYCONFIG_SCALING_CUSTOM: DISPLAYCONFIG_SCALING = 5; +pub const DISPLAYCONFIG_SCALING_DISPLAYCONFIG_SCALING_PREFERRED: DISPLAYCONFIG_SCALING = 128; +pub const DISPLAYCONFIG_SCALING_DISPLAYCONFIG_SCALING_FORCE_UINT32: DISPLAYCONFIG_SCALING = -1; +pub type DISPLAYCONFIG_SCALING = ::std::os::raw::c_int; +pub const DISPLAYCONFIG_ROTATION_DISPLAYCONFIG_ROTATION_IDENTITY: DISPLAYCONFIG_ROTATION = 1; +pub const DISPLAYCONFIG_ROTATION_DISPLAYCONFIG_ROTATION_ROTATE90: DISPLAYCONFIG_ROTATION = 2; +pub const DISPLAYCONFIG_ROTATION_DISPLAYCONFIG_ROTATION_ROTATE180: DISPLAYCONFIG_ROTATION = 3; +pub const DISPLAYCONFIG_ROTATION_DISPLAYCONFIG_ROTATION_ROTATE270: DISPLAYCONFIG_ROTATION = 4; +pub const DISPLAYCONFIG_ROTATION_DISPLAYCONFIG_ROTATION_FORCE_UINT32: DISPLAYCONFIG_ROTATION = -1; +pub type DISPLAYCONFIG_ROTATION = ::std::os::raw::c_int; +pub const DISPLAYCONFIG_MODE_INFO_TYPE_DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE: + DISPLAYCONFIG_MODE_INFO_TYPE = 1; +pub const DISPLAYCONFIG_MODE_INFO_TYPE_DISPLAYCONFIG_MODE_INFO_TYPE_TARGET: + DISPLAYCONFIG_MODE_INFO_TYPE = 2; +pub const DISPLAYCONFIG_MODE_INFO_TYPE_DISPLAYCONFIG_MODE_INFO_TYPE_DESKTOP_IMAGE: + DISPLAYCONFIG_MODE_INFO_TYPE = 3; +pub const DISPLAYCONFIG_MODE_INFO_TYPE_DISPLAYCONFIG_MODE_INFO_TYPE_FORCE_UINT32: + DISPLAYCONFIG_MODE_INFO_TYPE = -1; +pub type DISPLAYCONFIG_MODE_INFO_TYPE = ::std::os::raw::c_int; +pub const DISPLAYCONFIG_PIXELFORMAT_DISPLAYCONFIG_PIXELFORMAT_8BPP: DISPLAYCONFIG_PIXELFORMAT = 1; +pub const DISPLAYCONFIG_PIXELFORMAT_DISPLAYCONFIG_PIXELFORMAT_16BPP: DISPLAYCONFIG_PIXELFORMAT = 2; +pub const DISPLAYCONFIG_PIXELFORMAT_DISPLAYCONFIG_PIXELFORMAT_24BPP: DISPLAYCONFIG_PIXELFORMAT = 3; +pub const DISPLAYCONFIG_PIXELFORMAT_DISPLAYCONFIG_PIXELFORMAT_32BPP: DISPLAYCONFIG_PIXELFORMAT = 4; +pub const DISPLAYCONFIG_PIXELFORMAT_DISPLAYCONFIG_PIXELFORMAT_NONGDI: DISPLAYCONFIG_PIXELFORMAT = 5; +pub const DISPLAYCONFIG_PIXELFORMAT_DISPLAYCONFIG_PIXELFORMAT_FORCE_UINT32: + DISPLAYCONFIG_PIXELFORMAT = -1; +pub type DISPLAYCONFIG_PIXELFORMAT = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DISPLAYCONFIG_SOURCE_MODE { + pub width: UINT32, + pub height: UINT32, + pub pixelFormat: DISPLAYCONFIG_PIXELFORMAT, + pub position: POINTL, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DISPLAYCONFIG_TARGET_MODE { + pub targetVideoSignalInfo: DISPLAYCONFIG_VIDEO_SIGNAL_INFO, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DISPLAYCONFIG_DESKTOP_IMAGE_INFO { + pub PathSourceSize: POINTL, + pub DesktopImageRegion: RECTL, + pub DesktopImageClip: RECTL, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DISPLAYCONFIG_MODE_INFO { + pub infoType: DISPLAYCONFIG_MODE_INFO_TYPE, + pub id: UINT32, + pub adapterId: LUID, + pub __bindgen_anon_1: DISPLAYCONFIG_MODE_INFO__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union DISPLAYCONFIG_MODE_INFO__bindgen_ty_1 { + pub targetMode: DISPLAYCONFIG_TARGET_MODE, + pub sourceMode: DISPLAYCONFIG_SOURCE_MODE, + pub desktopImageInfo: DISPLAYCONFIG_DESKTOP_IMAGE_INFO, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DISPLAYCONFIG_PATH_SOURCE_INFO { + pub adapterId: LUID, + pub id: UINT32, + pub __bindgen_anon_1: DISPLAYCONFIG_PATH_SOURCE_INFO__bindgen_ty_1, + pub statusFlags: UINT32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union DISPLAYCONFIG_PATH_SOURCE_INFO__bindgen_ty_1 { + pub modeInfoIdx: UINT32, + pub __bindgen_anon_1: DISPLAYCONFIG_PATH_SOURCE_INFO__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct DISPLAYCONFIG_PATH_SOURCE_INFO__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl DISPLAYCONFIG_PATH_SOURCE_INFO__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn cloneGroupId(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } + } + #[inline] + pub fn set_cloneGroupId(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 16u8, val as u64) + } + } + #[inline] + pub fn sourceModeInfoIdx(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } + } + #[inline] + pub fn set_sourceModeInfoIdx(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 16u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + cloneGroupId: UINT32, + sourceModeInfoIdx: UINT32, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 16u8, { + let cloneGroupId: u32 = unsafe { ::std::mem::transmute(cloneGroupId) }; + cloneGroupId as u64 + }); + __bindgen_bitfield_unit.set(16usize, 16u8, { + let sourceModeInfoIdx: u32 = unsafe { ::std::mem::transmute(sourceModeInfoIdx) }; + sourceModeInfoIdx as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DISPLAYCONFIG_PATH_TARGET_INFO { + pub adapterId: LUID, + pub id: UINT32, + pub __bindgen_anon_1: DISPLAYCONFIG_PATH_TARGET_INFO__bindgen_ty_1, + pub outputTechnology: DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY, + pub rotation: DISPLAYCONFIG_ROTATION, + pub scaling: DISPLAYCONFIG_SCALING, + pub refreshRate: DISPLAYCONFIG_RATIONAL, + pub scanLineOrdering: DISPLAYCONFIG_SCANLINE_ORDERING, + pub targetAvailable: BOOL, + pub statusFlags: UINT32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union DISPLAYCONFIG_PATH_TARGET_INFO__bindgen_ty_1 { + pub modeInfoIdx: UINT32, + pub __bindgen_anon_1: DISPLAYCONFIG_PATH_TARGET_INFO__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct DISPLAYCONFIG_PATH_TARGET_INFO__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl DISPLAYCONFIG_PATH_TARGET_INFO__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn desktopModeInfoIdx(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } + } + #[inline] + pub fn set_desktopModeInfoIdx(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 16u8, val as u64) + } + } + #[inline] + pub fn targetModeInfoIdx(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } + } + #[inline] + pub fn set_targetModeInfoIdx(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 16u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + desktopModeInfoIdx: UINT32, + targetModeInfoIdx: UINT32, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 16u8, { + let desktopModeInfoIdx: u32 = unsafe { ::std::mem::transmute(desktopModeInfoIdx) }; + desktopModeInfoIdx as u64 + }); + __bindgen_bitfield_unit.set(16usize, 16u8, { + let targetModeInfoIdx: u32 = unsafe { ::std::mem::transmute(targetModeInfoIdx) }; + targetModeInfoIdx as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DISPLAYCONFIG_PATH_INFO { + pub sourceInfo: DISPLAYCONFIG_PATH_SOURCE_INFO, + pub targetInfo: DISPLAYCONFIG_PATH_TARGET_INFO, + pub flags: UINT32, +} +pub const DISPLAYCONFIG_TOPOLOGY_ID_DISPLAYCONFIG_TOPOLOGY_INTERNAL: DISPLAYCONFIG_TOPOLOGY_ID = 1; +pub const DISPLAYCONFIG_TOPOLOGY_ID_DISPLAYCONFIG_TOPOLOGY_CLONE: DISPLAYCONFIG_TOPOLOGY_ID = 2; +pub const DISPLAYCONFIG_TOPOLOGY_ID_DISPLAYCONFIG_TOPOLOGY_EXTEND: DISPLAYCONFIG_TOPOLOGY_ID = 4; +pub const DISPLAYCONFIG_TOPOLOGY_ID_DISPLAYCONFIG_TOPOLOGY_EXTERNAL: DISPLAYCONFIG_TOPOLOGY_ID = 8; +pub const DISPLAYCONFIG_TOPOLOGY_ID_DISPLAYCONFIG_TOPOLOGY_FORCE_UINT32: DISPLAYCONFIG_TOPOLOGY_ID = + -1; +pub type DISPLAYCONFIG_TOPOLOGY_ID = ::std::os::raw::c_int; +pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_SOURCE_NAME: + DISPLAYCONFIG_DEVICE_INFO_TYPE = 1; +pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_NAME: + DISPLAYCONFIG_DEVICE_INFO_TYPE = 2; +pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_PREFERRED_MODE: + DISPLAYCONFIG_DEVICE_INFO_TYPE = 3; +pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_ADAPTER_NAME: + DISPLAYCONFIG_DEVICE_INFO_TYPE = 4; +pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_SET_TARGET_PERSISTENCE: + DISPLAYCONFIG_DEVICE_INFO_TYPE = 5; +pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_BASE_TYPE: + DISPLAYCONFIG_DEVICE_INFO_TYPE = 6; +pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_SUPPORT_VIRTUAL_RESOLUTION : DISPLAYCONFIG_DEVICE_INFO_TYPE = 7 ; +pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_SET_SUPPORT_VIRTUAL_RESOLUTION : DISPLAYCONFIG_DEVICE_INFO_TYPE = 8 ; +pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_ADVANCED_COLOR_INFO: + DISPLAYCONFIG_DEVICE_INFO_TYPE = 9; +pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_SET_ADVANCED_COLOR_STATE: + DISPLAYCONFIG_DEVICE_INFO_TYPE = 10; +pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_SDR_WHITE_LEVEL: + DISPLAYCONFIG_DEVICE_INFO_TYPE = 11; +pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_MONITOR_SPECIALIZATION: + DISPLAYCONFIG_DEVICE_INFO_TYPE = 12; +pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_SET_MONITOR_SPECIALIZATION: + DISPLAYCONFIG_DEVICE_INFO_TYPE = 13; +pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_FORCE_UINT32: + DISPLAYCONFIG_DEVICE_INFO_TYPE = -1; +pub type DISPLAYCONFIG_DEVICE_INFO_TYPE = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DISPLAYCONFIG_DEVICE_INFO_HEADER { + pub type_: DISPLAYCONFIG_DEVICE_INFO_TYPE, + pub size: UINT32, + pub adapterId: LUID, + pub id: UINT32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DISPLAYCONFIG_SOURCE_DEVICE_NAME { + pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, + pub viewGdiDeviceName: [WCHAR; 32usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS { + pub __bindgen_anon_1: DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS__bindgen_ty_1 { + pub __bindgen_anon_1: DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS__bindgen_ty_1__bindgen_ty_1, + pub value: UINT32, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn friendlyNameFromEdid(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_friendlyNameFromEdid(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn friendlyNameForced(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_friendlyNameForced(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn edidIdsValid(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_edidIdsValid(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn reserved(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } + } + #[inline] + pub fn set_reserved(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 29u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + friendlyNameFromEdid: UINT32, + friendlyNameForced: UINT32, + edidIdsValid: UINT32, + reserved: UINT32, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let friendlyNameFromEdid: u32 = unsafe { ::std::mem::transmute(friendlyNameFromEdid) }; + friendlyNameFromEdid as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let friendlyNameForced: u32 = unsafe { ::std::mem::transmute(friendlyNameForced) }; + friendlyNameForced as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let edidIdsValid: u32 = unsafe { ::std::mem::transmute(edidIdsValid) }; + edidIdsValid as u64 + }); + __bindgen_bitfield_unit.set(3usize, 29u8, { + let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; + reserved as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DISPLAYCONFIG_TARGET_DEVICE_NAME { + pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, + pub flags: DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS, + pub outputTechnology: DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY, + pub edidManufactureId: UINT16, + pub edidProductCodeId: UINT16, + pub connectorInstance: UINT32, + pub monitorFriendlyDeviceName: [WCHAR; 64usize], + pub monitorDevicePath: [WCHAR; 128usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DISPLAYCONFIG_TARGET_PREFERRED_MODE { + pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, + pub width: UINT32, + pub height: UINT32, + pub targetMode: DISPLAYCONFIG_TARGET_MODE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DISPLAYCONFIG_ADAPTER_NAME { + pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, + pub adapterDevicePath: [WCHAR; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DISPLAYCONFIG_TARGET_BASE_TYPE { + pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, + pub baseOutputTechnology: DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DISPLAYCONFIG_SET_TARGET_PERSISTENCE { + pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, + pub __bindgen_anon_1: DISPLAYCONFIG_SET_TARGET_PERSISTENCE__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union DISPLAYCONFIG_SET_TARGET_PERSISTENCE__bindgen_ty_1 { + pub __bindgen_anon_1: DISPLAYCONFIG_SET_TARGET_PERSISTENCE__bindgen_ty_1__bindgen_ty_1, + pub value: UINT32, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct DISPLAYCONFIG_SET_TARGET_PERSISTENCE__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl DISPLAYCONFIG_SET_TARGET_PERSISTENCE__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn bootPersistenceOn(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_bootPersistenceOn(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn reserved(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } + } + #[inline] + pub fn set_reserved(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 31u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + bootPersistenceOn: UINT32, + reserved: UINT32, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let bootPersistenceOn: u32 = unsafe { ::std::mem::transmute(bootPersistenceOn) }; + bootPersistenceOn as u64 + }); + __bindgen_bitfield_unit.set(1usize, 31u8, { + let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; + reserved as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION { + pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, + pub __bindgen_anon_1: DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION__bindgen_ty_1 { + pub __bindgen_anon_1: DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION__bindgen_ty_1__bindgen_ty_1, + pub value: UINT32, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn disableMonitorVirtualResolution(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_disableMonitorVirtualResolution(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn reserved(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } + } + #[inline] + pub fn set_reserved(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 31u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + disableMonitorVirtualResolution: UINT32, + reserved: UINT32, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let disableMonitorVirtualResolution: u32 = + unsafe { ::std::mem::transmute(disableMonitorVirtualResolution) }; + disableMonitorVirtualResolution as u64 + }); + __bindgen_bitfield_unit.set(1usize, 31u8, { + let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; + reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub const _DISPLAYCONFIG_COLOR_ENCODING_DISPLAYCONFIG_COLOR_ENCODING_RGB: + _DISPLAYCONFIG_COLOR_ENCODING = 0; +pub const _DISPLAYCONFIG_COLOR_ENCODING_DISPLAYCONFIG_COLOR_ENCODING_YCBCR444: + _DISPLAYCONFIG_COLOR_ENCODING = 1; +pub const _DISPLAYCONFIG_COLOR_ENCODING_DISPLAYCONFIG_COLOR_ENCODING_YCBCR422: + _DISPLAYCONFIG_COLOR_ENCODING = 2; +pub const _DISPLAYCONFIG_COLOR_ENCODING_DISPLAYCONFIG_COLOR_ENCODING_YCBCR420: + _DISPLAYCONFIG_COLOR_ENCODING = 3; +pub const _DISPLAYCONFIG_COLOR_ENCODING_DISPLAYCONFIG_COLOR_ENCODING_INTENSITY: + _DISPLAYCONFIG_COLOR_ENCODING = 4; +pub const _DISPLAYCONFIG_COLOR_ENCODING_DISPLAYCONFIG_COLOR_ENCODING_FORCE_UINT32: + _DISPLAYCONFIG_COLOR_ENCODING = -1; +pub type _DISPLAYCONFIG_COLOR_ENCODING = ::std::os::raw::c_int; +pub use self::_DISPLAYCONFIG_COLOR_ENCODING as DISPLAYCONFIG_COLOR_ENCODING; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO { + pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, + pub __bindgen_anon_1: _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO__bindgen_ty_1, + pub colorEncoding: DISPLAYCONFIG_COLOR_ENCODING, + pub bitsPerColorChannel: UINT32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO__bindgen_ty_1 { + pub __bindgen_anon_1: _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO__bindgen_ty_1__bindgen_ty_1, + pub value: UINT32, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn advancedColorSupported(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_advancedColorSupported(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn advancedColorEnabled(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_advancedColorEnabled(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn wideColorEnforced(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_wideColorEnforced(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn advancedColorForceDisabled(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_advancedColorForceDisabled(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn reserved(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) } + } + #[inline] + pub fn set_reserved(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 28u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + advancedColorSupported: UINT32, + advancedColorEnabled: UINT32, + wideColorEnforced: UINT32, + advancedColorForceDisabled: UINT32, + reserved: UINT32, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let advancedColorSupported: u32 = + unsafe { ::std::mem::transmute(advancedColorSupported) }; + advancedColorSupported as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let advancedColorEnabled: u32 = unsafe { ::std::mem::transmute(advancedColorEnabled) }; + advancedColorEnabled as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let wideColorEnforced: u32 = unsafe { ::std::mem::transmute(wideColorEnforced) }; + wideColorEnforced as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let advancedColorForceDisabled: u32 = + unsafe { ::std::mem::transmute(advancedColorForceDisabled) }; + advancedColorForceDisabled as u64 + }); + __bindgen_bitfield_unit.set(4usize, 28u8, { + let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; + reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO = _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE { + pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, + pub __bindgen_anon_1: _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE__bindgen_ty_1 { + pub __bindgen_anon_1: _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE__bindgen_ty_1__bindgen_ty_1, + pub value: UINT32, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn enableAdvancedColor(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_enableAdvancedColor(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn reserved(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } + } + #[inline] + pub fn set_reserved(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 31u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + enableAdvancedColor: UINT32, + reserved: UINT32, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let enableAdvancedColor: u32 = unsafe { ::std::mem::transmute(enableAdvancedColor) }; + enableAdvancedColor as u64 + }); + __bindgen_bitfield_unit.set(1usize, 31u8, { + let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; + reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE = _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISPLAYCONFIG_SDR_WHITE_LEVEL { + pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, + pub SDRWhiteLevel: ULONG, +} +pub type DISPLAYCONFIG_SDR_WHITE_LEVEL = _DISPLAYCONFIG_SDR_WHITE_LEVEL; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION { + pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, + pub __bindgen_anon_1: _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION__bindgen_ty_1 { + pub __bindgen_anon_1: _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION__bindgen_ty_1__bindgen_ty_1, + pub value: UINT32, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn isSpecializationEnabled(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_isSpecializationEnabled(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn isSpecializationAvailableForMonitor(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_isSpecializationAvailableForMonitor(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn isSpecializationAvailableForSystem(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_isSpecializationAvailableForSystem(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn reserved(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } + } + #[inline] + pub fn set_reserved(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 29u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + isSpecializationEnabled: UINT32, + isSpecializationAvailableForMonitor: UINT32, + isSpecializationAvailableForSystem: UINT32, + reserved: UINT32, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let isSpecializationEnabled: u32 = + unsafe { ::std::mem::transmute(isSpecializationEnabled) }; + isSpecializationEnabled as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let isSpecializationAvailableForMonitor: u32 = + unsafe { ::std::mem::transmute(isSpecializationAvailableForMonitor) }; + isSpecializationAvailableForMonitor as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let isSpecializationAvailableForSystem: u32 = + unsafe { ::std::mem::transmute(isSpecializationAvailableForSystem) }; + isSpecializationAvailableForSystem as u64 + }); + __bindgen_bitfield_unit.set(3usize, 29u8, { + let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; + reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION = _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION { + pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, + pub __bindgen_anon_1: _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION__bindgen_ty_1, + pub specializationType: GUID, + pub specializationSubType: GUID, + pub specializationApplicationName: [WCHAR; 128usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION__bindgen_ty_1 { + pub __bindgen_anon_1: _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION__bindgen_ty_1__bindgen_ty_1, + pub value: UINT32, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn isSpecializationEnabled(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_isSpecializationEnabled(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn reserved(&self) -> UINT32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } + } + #[inline] + pub fn set_reserved(&mut self, val: UINT32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 31u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + isSpecializationEnabled: UINT32, + reserved: UINT32, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let isSpecializationEnabled: u32 = + unsafe { ::std::mem::transmute(isSpecializationEnabled) }; + isSpecializationEnabled as u64 + }); + __bindgen_bitfield_unit.set(1usize, 31u8, { + let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; + reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION = _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RGNDATAHEADER { + pub dwSize: DWORD, + pub iType: DWORD, + pub nCount: DWORD, + pub nRgnSize: DWORD, + pub rcBound: RECT, +} +pub type RGNDATAHEADER = _RGNDATAHEADER; +pub type PRGNDATAHEADER = *mut _RGNDATAHEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RGNDATA { + pub rdh: RGNDATAHEADER, + pub Buffer: [::std::os::raw::c_char; 1usize], +} +pub type RGNDATA = _RGNDATA; +pub type PRGNDATA = *mut _RGNDATA; +pub type NPRGNDATA = *mut _RGNDATA; +pub type LPRGNDATA = *mut _RGNDATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ABC { + pub abcA: ::std::os::raw::c_int, + pub abcB: UINT, + pub abcC: ::std::os::raw::c_int, +} +pub type ABC = _ABC; +pub type PABC = *mut _ABC; +pub type NPABC = *mut _ABC; +pub type LPABC = *mut _ABC; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ABCFLOAT { + pub abcfA: FLOAT, + pub abcfB: FLOAT, + pub abcfC: FLOAT, +} +pub type ABCFLOAT = _ABCFLOAT; +pub type PABCFLOAT = *mut _ABCFLOAT; +pub type NPABCFLOAT = *mut _ABCFLOAT; +pub type LPABCFLOAT = *mut _ABCFLOAT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OUTLINETEXTMETRICA { + pub otmSize: UINT, + pub otmTextMetrics: TEXTMETRICA, + pub otmFiller: BYTE, + pub otmPanoseNumber: PANOSE, + pub otmfsSelection: UINT, + pub otmfsType: UINT, + pub otmsCharSlopeRise: ::std::os::raw::c_int, + pub otmsCharSlopeRun: ::std::os::raw::c_int, + pub otmItalicAngle: ::std::os::raw::c_int, + pub otmEMSquare: UINT, + pub otmAscent: ::std::os::raw::c_int, + pub otmDescent: ::std::os::raw::c_int, + pub otmLineGap: UINT, + pub otmsCapEmHeight: UINT, + pub otmsXHeight: UINT, + pub otmrcFontBox: RECT, + pub otmMacAscent: ::std::os::raw::c_int, + pub otmMacDescent: ::std::os::raw::c_int, + pub otmMacLineGap: UINT, + pub otmusMinimumPPEM: UINT, + pub otmptSubscriptSize: POINT, + pub otmptSubscriptOffset: POINT, + pub otmptSuperscriptSize: POINT, + pub otmptSuperscriptOffset: POINT, + pub otmsStrikeoutSize: UINT, + pub otmsStrikeoutPosition: ::std::os::raw::c_int, + pub otmsUnderscoreSize: ::std::os::raw::c_int, + pub otmsUnderscorePosition: ::std::os::raw::c_int, + pub otmpFamilyName: PSTR, + pub otmpFaceName: PSTR, + pub otmpStyleName: PSTR, + pub otmpFullName: PSTR, +} +pub type OUTLINETEXTMETRICA = _OUTLINETEXTMETRICA; +pub type POUTLINETEXTMETRICA = *mut _OUTLINETEXTMETRICA; +pub type NPOUTLINETEXTMETRICA = *mut _OUTLINETEXTMETRICA; +pub type LPOUTLINETEXTMETRICA = *mut _OUTLINETEXTMETRICA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OUTLINETEXTMETRICW { + pub otmSize: UINT, + pub otmTextMetrics: TEXTMETRICW, + pub otmFiller: BYTE, + pub otmPanoseNumber: PANOSE, + pub otmfsSelection: UINT, + pub otmfsType: UINT, + pub otmsCharSlopeRise: ::std::os::raw::c_int, + pub otmsCharSlopeRun: ::std::os::raw::c_int, + pub otmItalicAngle: ::std::os::raw::c_int, + pub otmEMSquare: UINT, + pub otmAscent: ::std::os::raw::c_int, + pub otmDescent: ::std::os::raw::c_int, + pub otmLineGap: UINT, + pub otmsCapEmHeight: UINT, + pub otmsXHeight: UINT, + pub otmrcFontBox: RECT, + pub otmMacAscent: ::std::os::raw::c_int, + pub otmMacDescent: ::std::os::raw::c_int, + pub otmMacLineGap: UINT, + pub otmusMinimumPPEM: UINT, + pub otmptSubscriptSize: POINT, + pub otmptSubscriptOffset: POINT, + pub otmptSuperscriptSize: POINT, + pub otmptSuperscriptOffset: POINT, + pub otmsStrikeoutSize: UINT, + pub otmsStrikeoutPosition: ::std::os::raw::c_int, + pub otmsUnderscoreSize: ::std::os::raw::c_int, + pub otmsUnderscorePosition: ::std::os::raw::c_int, + pub otmpFamilyName: PSTR, + pub otmpFaceName: PSTR, + pub otmpStyleName: PSTR, + pub otmpFullName: PSTR, +} +pub type OUTLINETEXTMETRICW = _OUTLINETEXTMETRICW; +pub type POUTLINETEXTMETRICW = *mut _OUTLINETEXTMETRICW; +pub type NPOUTLINETEXTMETRICW = *mut _OUTLINETEXTMETRICW; +pub type LPOUTLINETEXTMETRICW = *mut _OUTLINETEXTMETRICW; +pub type OUTLINETEXTMETRIC = OUTLINETEXTMETRICA; +pub type POUTLINETEXTMETRIC = POUTLINETEXTMETRICA; +pub type NPOUTLINETEXTMETRIC = NPOUTLINETEXTMETRICA; +pub type LPOUTLINETEXTMETRIC = LPOUTLINETEXTMETRICA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPOLYTEXTA { + pub x: ::std::os::raw::c_int, + pub y: ::std::os::raw::c_int, + pub n: UINT, + pub lpstr: LPCSTR, + pub uiFlags: UINT, + pub rcl: RECT, + pub pdx: *mut ::std::os::raw::c_int, +} +pub type POLYTEXTA = tagPOLYTEXTA; +pub type PPOLYTEXTA = *mut tagPOLYTEXTA; +pub type NPPOLYTEXTA = *mut tagPOLYTEXTA; +pub type LPPOLYTEXTA = *mut tagPOLYTEXTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPOLYTEXTW { + pub x: ::std::os::raw::c_int, + pub y: ::std::os::raw::c_int, + pub n: UINT, + pub lpstr: LPCWSTR, + pub uiFlags: UINT, + pub rcl: RECT, + pub pdx: *mut ::std::os::raw::c_int, +} +pub type POLYTEXTW = tagPOLYTEXTW; +pub type PPOLYTEXTW = *mut tagPOLYTEXTW; +pub type NPPOLYTEXTW = *mut tagPOLYTEXTW; +pub type LPPOLYTEXTW = *mut tagPOLYTEXTW; +pub type POLYTEXT = POLYTEXTA; +pub type PPOLYTEXT = PPOLYTEXTA; +pub type NPPOLYTEXT = NPPOLYTEXTA; +pub type LPPOLYTEXT = LPPOLYTEXTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FIXED { + pub fract: WORD, + pub value: ::std::os::raw::c_short, +} +pub type FIXED = _FIXED; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MAT2 { + pub eM11: FIXED, + pub eM12: FIXED, + pub eM21: FIXED, + pub eM22: FIXED, +} +pub type MAT2 = _MAT2; +pub type LPMAT2 = *mut _MAT2; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _GLYPHMETRICS { + pub gmBlackBoxX: UINT, + pub gmBlackBoxY: UINT, + pub gmptGlyphOrigin: POINT, + pub gmCellIncX: ::std::os::raw::c_short, + pub gmCellIncY: ::std::os::raw::c_short, +} +pub type GLYPHMETRICS = _GLYPHMETRICS; +pub type LPGLYPHMETRICS = *mut _GLYPHMETRICS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPOINTFX { + pub x: FIXED, + pub y: FIXED, +} +pub type POINTFX = tagPOINTFX; +pub type LPPOINTFX = *mut tagPOINTFX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagTTPOLYCURVE { + pub wType: WORD, + pub cpfx: WORD, + pub apfx: [POINTFX; 1usize], +} +pub type TTPOLYCURVE = tagTTPOLYCURVE; +pub type LPTTPOLYCURVE = *mut tagTTPOLYCURVE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagTTPOLYGONHEADER { + pub cb: DWORD, + pub dwType: DWORD, + pub pfxStart: POINTFX, +} +pub type TTPOLYGONHEADER = tagTTPOLYGONHEADER; +pub type LPTTPOLYGONHEADER = *mut tagTTPOLYGONHEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagGCP_RESULTSA { + pub lStructSize: DWORD, + pub lpOutString: LPSTR, + pub lpOrder: *mut UINT, + pub lpDx: *mut ::std::os::raw::c_int, + pub lpCaretPos: *mut ::std::os::raw::c_int, + pub lpClass: LPSTR, + pub lpGlyphs: LPWSTR, + pub nGlyphs: UINT, + pub nMaxFit: ::std::os::raw::c_int, +} +pub type GCP_RESULTSA = tagGCP_RESULTSA; +pub type LPGCP_RESULTSA = *mut tagGCP_RESULTSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagGCP_RESULTSW { + pub lStructSize: DWORD, + pub lpOutString: LPWSTR, + pub lpOrder: *mut UINT, + pub lpDx: *mut ::std::os::raw::c_int, + pub lpCaretPos: *mut ::std::os::raw::c_int, + pub lpClass: LPSTR, + pub lpGlyphs: LPWSTR, + pub nGlyphs: UINT, + pub nMaxFit: ::std::os::raw::c_int, +} +pub type GCP_RESULTSW = tagGCP_RESULTSW; +pub type LPGCP_RESULTSW = *mut tagGCP_RESULTSW; +pub type GCP_RESULTS = GCP_RESULTSA; +pub type LPGCP_RESULTS = LPGCP_RESULTSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RASTERIZER_STATUS { + pub nSize: ::std::os::raw::c_short, + pub wFlags: ::std::os::raw::c_short, + pub nLanguageID: ::std::os::raw::c_short, +} +pub type RASTERIZER_STATUS = _RASTERIZER_STATUS; +pub type LPRASTERIZER_STATUS = *mut _RASTERIZER_STATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPIXELFORMATDESCRIPTOR { + pub nSize: WORD, + pub nVersion: WORD, + pub dwFlags: DWORD, + pub iPixelType: BYTE, + pub cColorBits: BYTE, + pub cRedBits: BYTE, + pub cRedShift: BYTE, + pub cGreenBits: BYTE, + pub cGreenShift: BYTE, + pub cBlueBits: BYTE, + pub cBlueShift: BYTE, + pub cAlphaBits: BYTE, + pub cAlphaShift: BYTE, + pub cAccumBits: BYTE, + pub cAccumRedBits: BYTE, + pub cAccumGreenBits: BYTE, + pub cAccumBlueBits: BYTE, + pub cAccumAlphaBits: BYTE, + pub cDepthBits: BYTE, + pub cStencilBits: BYTE, + pub cAuxBuffers: BYTE, + pub iLayerType: BYTE, + pub bReserved: BYTE, + pub dwLayerMask: DWORD, + pub dwVisibleMask: DWORD, + pub dwDamageMask: DWORD, +} +pub type PIXELFORMATDESCRIPTOR = tagPIXELFORMATDESCRIPTOR; +pub type PPIXELFORMATDESCRIPTOR = *mut tagPIXELFORMATDESCRIPTOR; +pub type LPPIXELFORMATDESCRIPTOR = *mut tagPIXELFORMATDESCRIPTOR; +pub type OLDFONTENUMPROCA = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const LOGFONTA, + arg2: *const TEXTMETRICA, + arg3: DWORD, + arg4: LPARAM, + ) -> ::std::os::raw::c_int, +>; +pub type OLDFONTENUMPROCW = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const LOGFONTW, + arg2: *const TEXTMETRICW, + arg3: DWORD, + arg4: LPARAM, + ) -> ::std::os::raw::c_int, +>; +pub type FONTENUMPROCA = OLDFONTENUMPROCA; +pub type FONTENUMPROCW = OLDFONTENUMPROCW; +pub type FONTENUMPROC = FONTENUMPROCA; +pub type GOBJENUMPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: LPVOID, arg2: LPARAM) -> ::std::os::raw::c_int, +>; +pub type LINEDDAPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int, arg3: LPARAM), +>; +extern "C" { + pub fn AddFontResourceA(arg1: LPCSTR) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn AddFontResourceW(arg1: LPCWSTR) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn AnimatePalette( + hPal: HPALETTE, + iStartIndex: UINT, + cEntries: UINT, + ppe: *const PALETTEENTRY, + ) -> BOOL; +} +extern "C" { + pub fn Arc( + hdc: HDC, + x1: ::std::os::raw::c_int, + y1: ::std::os::raw::c_int, + x2: ::std::os::raw::c_int, + y2: ::std::os::raw::c_int, + x3: ::std::os::raw::c_int, + y3: ::std::os::raw::c_int, + x4: ::std::os::raw::c_int, + y4: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn BitBlt( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + cx: ::std::os::raw::c_int, + cy: ::std::os::raw::c_int, + hdcSrc: HDC, + x1: ::std::os::raw::c_int, + y1: ::std::os::raw::c_int, + rop: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CancelDC(hdc: HDC) -> BOOL; +} +extern "C" { + pub fn Chord( + hdc: HDC, + x1: ::std::os::raw::c_int, + y1: ::std::os::raw::c_int, + x2: ::std::os::raw::c_int, + y2: ::std::os::raw::c_int, + x3: ::std::os::raw::c_int, + y3: ::std::os::raw::c_int, + x4: ::std::os::raw::c_int, + y4: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn ChoosePixelFormat(hdc: HDC, ppfd: *const PIXELFORMATDESCRIPTOR) + -> ::std::os::raw::c_int; +} +extern "C" { + pub fn CloseMetaFile(hdc: HDC) -> HMETAFILE; +} +extern "C" { + pub fn CombineRgn( + hrgnDst: HRGN, + hrgnSrc1: HRGN, + hrgnSrc2: HRGN, + iMode: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn CopyMetaFileA(arg1: HMETAFILE, arg2: LPCSTR) -> HMETAFILE; +} +extern "C" { + pub fn CopyMetaFileW(arg1: HMETAFILE, arg2: LPCWSTR) -> HMETAFILE; +} +extern "C" { + pub fn CreateBitmap( + nWidth: ::std::os::raw::c_int, + nHeight: ::std::os::raw::c_int, + nPlanes: UINT, + nBitCount: UINT, + lpBits: *const ::std::os::raw::c_void, + ) -> HBITMAP; +} +extern "C" { + pub fn CreateBitmapIndirect(pbm: *const BITMAP) -> HBITMAP; +} +extern "C" { + pub fn CreateBrushIndirect(plbrush: *const LOGBRUSH) -> HBRUSH; +} +extern "C" { + pub fn CreateCompatibleBitmap( + hdc: HDC, + cx: ::std::os::raw::c_int, + cy: ::std::os::raw::c_int, + ) -> HBITMAP; +} +extern "C" { + pub fn CreateDiscardableBitmap( + hdc: HDC, + cx: ::std::os::raw::c_int, + cy: ::std::os::raw::c_int, + ) -> HBITMAP; +} +extern "C" { + pub fn CreateCompatibleDC(hdc: HDC) -> HDC; +} +extern "C" { + pub fn CreateDCA( + pwszDriver: LPCSTR, + pwszDevice: LPCSTR, + pszPort: LPCSTR, + pdm: *const DEVMODEA, + ) -> HDC; +} +extern "C" { + pub fn CreateDCW( + pwszDriver: LPCWSTR, + pwszDevice: LPCWSTR, + pszPort: LPCWSTR, + pdm: *const DEVMODEW, + ) -> HDC; +} +extern "C" { + pub fn CreateDIBitmap( + hdc: HDC, + pbmih: *const BITMAPINFOHEADER, + flInit: DWORD, + pjBits: *const ::std::os::raw::c_void, + pbmi: *const BITMAPINFO, + iUsage: UINT, + ) -> HBITMAP; +} +extern "C" { + pub fn CreateDIBPatternBrush(h: HGLOBAL, iUsage: UINT) -> HBRUSH; +} +extern "C" { + pub fn CreateDIBPatternBrushPt( + lpPackedDIB: *const ::std::os::raw::c_void, + iUsage: UINT, + ) -> HBRUSH; +} +extern "C" { + pub fn CreateEllipticRgn( + x1: ::std::os::raw::c_int, + y1: ::std::os::raw::c_int, + x2: ::std::os::raw::c_int, + y2: ::std::os::raw::c_int, + ) -> HRGN; +} +extern "C" { + pub fn CreateEllipticRgnIndirect(lprect: *const RECT) -> HRGN; +} +extern "C" { + pub fn CreateFontIndirectA(lplf: *const LOGFONTA) -> HFONT; +} +extern "C" { + pub fn CreateFontIndirectW(lplf: *const LOGFONTW) -> HFONT; +} +extern "C" { + pub fn CreateFontA( + cHeight: ::std::os::raw::c_int, + cWidth: ::std::os::raw::c_int, + cEscapement: ::std::os::raw::c_int, + cOrientation: ::std::os::raw::c_int, + cWeight: ::std::os::raw::c_int, + bItalic: DWORD, + bUnderline: DWORD, + bStrikeOut: DWORD, + iCharSet: DWORD, + iOutPrecision: DWORD, + iClipPrecision: DWORD, + iQuality: DWORD, + iPitchAndFamily: DWORD, + pszFaceName: LPCSTR, + ) -> HFONT; +} +extern "C" { + pub fn CreateFontW( + cHeight: ::std::os::raw::c_int, + cWidth: ::std::os::raw::c_int, + cEscapement: ::std::os::raw::c_int, + cOrientation: ::std::os::raw::c_int, + cWeight: ::std::os::raw::c_int, + bItalic: DWORD, + bUnderline: DWORD, + bStrikeOut: DWORD, + iCharSet: DWORD, + iOutPrecision: DWORD, + iClipPrecision: DWORD, + iQuality: DWORD, + iPitchAndFamily: DWORD, + pszFaceName: LPCWSTR, + ) -> HFONT; +} +extern "C" { + pub fn CreateHatchBrush(iHatch: ::std::os::raw::c_int, color: COLORREF) -> HBRUSH; +} +extern "C" { + pub fn CreateICA( + pszDriver: LPCSTR, + pszDevice: LPCSTR, + pszPort: LPCSTR, + pdm: *const DEVMODEA, + ) -> HDC; +} +extern "C" { + pub fn CreateICW( + pszDriver: LPCWSTR, + pszDevice: LPCWSTR, + pszPort: LPCWSTR, + pdm: *const DEVMODEW, + ) -> HDC; +} +extern "C" { + pub fn CreateMetaFileA(pszFile: LPCSTR) -> HDC; +} +extern "C" { + pub fn CreateMetaFileW(pszFile: LPCWSTR) -> HDC; +} +extern "C" { + pub fn CreatePalette(plpal: *const LOGPALETTE) -> HPALETTE; +} +extern "C" { + pub fn CreatePen( + iStyle: ::std::os::raw::c_int, + cWidth: ::std::os::raw::c_int, + color: COLORREF, + ) -> HPEN; +} +extern "C" { + pub fn CreatePenIndirect(plpen: *const LOGPEN) -> HPEN; +} +extern "C" { + pub fn CreatePolyPolygonRgn( + pptl: *const POINT, + pc: *const INT, + cPoly: ::std::os::raw::c_int, + iMode: ::std::os::raw::c_int, + ) -> HRGN; +} +extern "C" { + pub fn CreatePatternBrush(hbm: HBITMAP) -> HBRUSH; +} +extern "C" { + pub fn CreateRectRgn( + x1: ::std::os::raw::c_int, + y1: ::std::os::raw::c_int, + x2: ::std::os::raw::c_int, + y2: ::std::os::raw::c_int, + ) -> HRGN; +} +extern "C" { + pub fn CreateRectRgnIndirect(lprect: *const RECT) -> HRGN; +} +extern "C" { + pub fn CreateRoundRectRgn( + x1: ::std::os::raw::c_int, + y1: ::std::os::raw::c_int, + x2: ::std::os::raw::c_int, + y2: ::std::os::raw::c_int, + w: ::std::os::raw::c_int, + h: ::std::os::raw::c_int, + ) -> HRGN; +} +extern "C" { + pub fn CreateScalableFontResourceA( + fdwHidden: DWORD, + lpszFont: LPCSTR, + lpszFile: LPCSTR, + lpszPath: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn CreateScalableFontResourceW( + fdwHidden: DWORD, + lpszFont: LPCWSTR, + lpszFile: LPCWSTR, + lpszPath: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn CreateSolidBrush(color: COLORREF) -> HBRUSH; +} +extern "C" { + pub fn DeleteDC(hdc: HDC) -> BOOL; +} +extern "C" { + pub fn DeleteMetaFile(hmf: HMETAFILE) -> BOOL; +} +extern "C" { + pub fn DeleteObject(ho: HGDIOBJ) -> BOOL; +} +extern "C" { + pub fn DescribePixelFormat( + hdc: HDC, + iPixelFormat: ::std::os::raw::c_int, + nBytes: UINT, + ppfd: LPPIXELFORMATDESCRIPTOR, + ) -> ::std::os::raw::c_int; +} +pub type LPFNDEVMODE = ::std::option::Option< + unsafe extern "C" fn( + arg1: HWND, + arg2: HMODULE, + arg3: LPDEVMODE, + arg4: LPSTR, + arg5: LPSTR, + arg6: LPDEVMODE, + arg7: LPSTR, + arg8: UINT, + ) -> UINT, +>; +pub type LPFNDEVCAPS = ::std::option::Option< + unsafe extern "C" fn( + arg1: LPSTR, + arg2: LPSTR, + arg3: UINT, + arg4: LPSTR, + arg5: LPDEVMODE, + ) -> DWORD, +>; +extern "C" { + pub fn DeviceCapabilitiesA( + pDevice: LPCSTR, + pPort: LPCSTR, + fwCapability: WORD, + pOutput: LPSTR, + pDevMode: *const DEVMODEA, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn DeviceCapabilitiesW( + pDevice: LPCWSTR, + pPort: LPCWSTR, + fwCapability: WORD, + pOutput: LPWSTR, + pDevMode: *const DEVMODEW, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn DrawEscape( + hdc: HDC, + iEscape: ::std::os::raw::c_int, + cjIn: ::std::os::raw::c_int, + lpIn: LPCSTR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn Ellipse( + hdc: HDC, + left: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + right: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn EnumFontFamiliesExA( + hdc: HDC, + lpLogfont: LPLOGFONTA, + lpProc: FONTENUMPROCA, + lParam: LPARAM, + dwFlags: DWORD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EnumFontFamiliesExW( + hdc: HDC, + lpLogfont: LPLOGFONTW, + lpProc: FONTENUMPROCW, + lParam: LPARAM, + dwFlags: DWORD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EnumFontFamiliesA( + hdc: HDC, + lpLogfont: LPCSTR, + lpProc: FONTENUMPROCA, + lParam: LPARAM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EnumFontFamiliesW( + hdc: HDC, + lpLogfont: LPCWSTR, + lpProc: FONTENUMPROCW, + lParam: LPARAM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EnumFontsA( + hdc: HDC, + lpLogfont: LPCSTR, + lpProc: FONTENUMPROCA, + lParam: LPARAM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EnumFontsW( + hdc: HDC, + lpLogfont: LPCWSTR, + lpProc: FONTENUMPROCW, + lParam: LPARAM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EnumObjects( + hdc: HDC, + nType: ::std::os::raw::c_int, + lpFunc: GOBJENUMPROC, + lParam: LPARAM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EqualRgn(hrgn1: HRGN, hrgn2: HRGN) -> BOOL; +} +extern "C" { + pub fn Escape( + hdc: HDC, + iEscape: ::std::os::raw::c_int, + cjIn: ::std::os::raw::c_int, + pvIn: LPCSTR, + pvOut: LPVOID, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ExtEscape( + hdc: HDC, + iEscape: ::std::os::raw::c_int, + cjInput: ::std::os::raw::c_int, + lpInData: LPCSTR, + cjOutput: ::std::os::raw::c_int, + lpOutData: LPSTR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ExcludeClipRect( + hdc: HDC, + left: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + right: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ExtCreateRegion(lpx: *const XFORM, nCount: DWORD, lpData: *const RGNDATA) -> HRGN; +} +extern "C" { + pub fn ExtFloodFill( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + color: COLORREF, + type_: UINT, + ) -> BOOL; +} +extern "C" { + pub fn FillRgn(hdc: HDC, hrgn: HRGN, hbr: HBRUSH) -> BOOL; +} +extern "C" { + pub fn FloodFill( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + color: COLORREF, + ) -> BOOL; +} +extern "C" { + pub fn FrameRgn( + hdc: HDC, + hrgn: HRGN, + hbr: HBRUSH, + w: ::std::os::raw::c_int, + h: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn GetROP2(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetAspectRatioFilterEx(hdc: HDC, lpsize: LPSIZE) -> BOOL; +} +extern "C" { + pub fn GetBkColor(hdc: HDC) -> COLORREF; +} +extern "C" { + pub fn GetDCBrushColor(hdc: HDC) -> COLORREF; +} +extern "C" { + pub fn GetDCPenColor(hdc: HDC) -> COLORREF; +} +extern "C" { + pub fn GetBkMode(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetBitmapBits(hbit: HBITMAP, cb: LONG, lpvBits: LPVOID) -> LONG; +} +extern "C" { + pub fn GetBitmapDimensionEx(hbit: HBITMAP, lpsize: LPSIZE) -> BOOL; +} +extern "C" { + pub fn GetBoundsRect(hdc: HDC, lprect: LPRECT, flags: UINT) -> UINT; +} +extern "C" { + pub fn GetBrushOrgEx(hdc: HDC, lppt: LPPOINT) -> BOOL; +} +extern "C" { + pub fn GetCharWidthA(hdc: HDC, iFirst: UINT, iLast: UINT, lpBuffer: LPINT) -> BOOL; +} +extern "C" { + pub fn GetCharWidthW(hdc: HDC, iFirst: UINT, iLast: UINT, lpBuffer: LPINT) -> BOOL; +} +extern "C" { + pub fn GetCharWidth32A(hdc: HDC, iFirst: UINT, iLast: UINT, lpBuffer: LPINT) -> BOOL; +} +extern "C" { + pub fn GetCharWidth32W(hdc: HDC, iFirst: UINT, iLast: UINT, lpBuffer: LPINT) -> BOOL; +} +extern "C" { + pub fn GetCharWidthFloatA(hdc: HDC, iFirst: UINT, iLast: UINT, lpBuffer: PFLOAT) -> BOOL; +} +extern "C" { + pub fn GetCharWidthFloatW(hdc: HDC, iFirst: UINT, iLast: UINT, lpBuffer: PFLOAT) -> BOOL; +} +extern "C" { + pub fn GetCharABCWidthsA(hdc: HDC, wFirst: UINT, wLast: UINT, lpABC: LPABC) -> BOOL; +} +extern "C" { + pub fn GetCharABCWidthsW(hdc: HDC, wFirst: UINT, wLast: UINT, lpABC: LPABC) -> BOOL; +} +extern "C" { + pub fn GetCharABCWidthsFloatA(hdc: HDC, iFirst: UINT, iLast: UINT, lpABC: LPABCFLOAT) -> BOOL; +} +extern "C" { + pub fn GetCharABCWidthsFloatW(hdc: HDC, iFirst: UINT, iLast: UINT, lpABC: LPABCFLOAT) -> BOOL; +} +extern "C" { + pub fn GetClipBox(hdc: HDC, lprect: LPRECT) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetClipRgn(hdc: HDC, hrgn: HRGN) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetMetaRgn(hdc: HDC, hrgn: HRGN) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetCurrentObject(hdc: HDC, type_: UINT) -> HGDIOBJ; +} +extern "C" { + pub fn GetCurrentPositionEx(hdc: HDC, lppt: LPPOINT) -> BOOL; +} +extern "C" { + pub fn GetDeviceCaps(hdc: HDC, index: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetDIBits( + hdc: HDC, + hbm: HBITMAP, + start: UINT, + cLines: UINT, + lpvBits: LPVOID, + lpbmi: LPBITMAPINFO, + usage: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetFontData( + hdc: HDC, + dwTable: DWORD, + dwOffset: DWORD, + pvBuffer: PVOID, + cjBuffer: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetGlyphOutlineA( + hdc: HDC, + uChar: UINT, + fuFormat: UINT, + lpgm: LPGLYPHMETRICS, + cjBuffer: DWORD, + pvBuffer: LPVOID, + lpmat2: *const MAT2, + ) -> DWORD; +} +extern "C" { + pub fn GetGlyphOutlineW( + hdc: HDC, + uChar: UINT, + fuFormat: UINT, + lpgm: LPGLYPHMETRICS, + cjBuffer: DWORD, + pvBuffer: LPVOID, + lpmat2: *const MAT2, + ) -> DWORD; +} +extern "C" { + pub fn GetGraphicsMode(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetMapMode(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetMetaFileBitsEx(hMF: HMETAFILE, cbBuffer: UINT, lpData: LPVOID) -> UINT; +} +extern "C" { + pub fn GetMetaFileA(lpName: LPCSTR) -> HMETAFILE; +} +extern "C" { + pub fn GetMetaFileW(lpName: LPCWSTR) -> HMETAFILE; +} +extern "C" { + pub fn GetNearestColor(hdc: HDC, color: COLORREF) -> COLORREF; +} +extern "C" { + pub fn GetNearestPaletteIndex(h: HPALETTE, color: COLORREF) -> UINT; +} +extern "C" { + pub fn GetObjectType(h: HGDIOBJ) -> DWORD; +} +extern "C" { + pub fn GetOutlineTextMetricsA(hdc: HDC, cjCopy: UINT, potm: LPOUTLINETEXTMETRICA) -> UINT; +} +extern "C" { + pub fn GetOutlineTextMetricsW(hdc: HDC, cjCopy: UINT, potm: LPOUTLINETEXTMETRICW) -> UINT; +} +extern "C" { + pub fn GetPaletteEntries( + hpal: HPALETTE, + iStart: UINT, + cEntries: UINT, + pPalEntries: LPPALETTEENTRY, + ) -> UINT; +} +extern "C" { + pub fn GetPixel(hdc: HDC, x: ::std::os::raw::c_int, y: ::std::os::raw::c_int) -> COLORREF; +} +extern "C" { + pub fn GetPixelFormat(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetPolyFillMode(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetRasterizerCaps(lpraststat: LPRASTERIZER_STATUS, cjBytes: UINT) -> BOOL; +} +extern "C" { + pub fn GetRandomRgn(hdc: HDC, hrgn: HRGN, i: INT) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetRegionData(hrgn: HRGN, nCount: DWORD, lpRgnData: LPRGNDATA) -> DWORD; +} +extern "C" { + pub fn GetRgnBox(hrgn: HRGN, lprc: LPRECT) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetStockObject(i: ::std::os::raw::c_int) -> HGDIOBJ; +} +extern "C" { + pub fn GetStretchBltMode(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetSystemPaletteEntries( + hdc: HDC, + iStart: UINT, + cEntries: UINT, + pPalEntries: LPPALETTEENTRY, + ) -> UINT; +} +extern "C" { + pub fn GetSystemPaletteUse(hdc: HDC) -> UINT; +} +extern "C" { + pub fn GetTextCharacterExtra(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetTextAlign(hdc: HDC) -> UINT; +} +extern "C" { + pub fn GetTextColor(hdc: HDC) -> COLORREF; +} +extern "C" { + pub fn GetTextExtentPointA( + hdc: HDC, + lpString: LPCSTR, + c: ::std::os::raw::c_int, + lpsz: LPSIZE, + ) -> BOOL; +} +extern "C" { + pub fn GetTextExtentPointW( + hdc: HDC, + lpString: LPCWSTR, + c: ::std::os::raw::c_int, + lpsz: LPSIZE, + ) -> BOOL; +} +extern "C" { + pub fn GetTextExtentPoint32A( + hdc: HDC, + lpString: LPCSTR, + c: ::std::os::raw::c_int, + psizl: LPSIZE, + ) -> BOOL; +} +extern "C" { + pub fn GetTextExtentPoint32W( + hdc: HDC, + lpString: LPCWSTR, + c: ::std::os::raw::c_int, + psizl: LPSIZE, + ) -> BOOL; +} +extern "C" { + pub fn GetTextExtentExPointA( + hdc: HDC, + lpszString: LPCSTR, + cchString: ::std::os::raw::c_int, + nMaxExtent: ::std::os::raw::c_int, + lpnFit: LPINT, + lpnDx: LPINT, + lpSize: LPSIZE, + ) -> BOOL; +} +extern "C" { + pub fn GetTextExtentExPointW( + hdc: HDC, + lpszString: LPCWSTR, + cchString: ::std::os::raw::c_int, + nMaxExtent: ::std::os::raw::c_int, + lpnFit: LPINT, + lpnDx: LPINT, + lpSize: LPSIZE, + ) -> BOOL; +} +extern "C" { + pub fn GetTextCharset(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetTextCharsetInfo( + hdc: HDC, + lpSig: LPFONTSIGNATURE, + dwFlags: DWORD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn TranslateCharsetInfo(lpSrc: *mut DWORD, lpCs: LPCHARSETINFO, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn GetFontLanguageInfo(hdc: HDC) -> DWORD; +} +extern "C" { + pub fn GetCharacterPlacementA( + hdc: HDC, + lpString: LPCSTR, + nCount: ::std::os::raw::c_int, + nMexExtent: ::std::os::raw::c_int, + lpResults: LPGCP_RESULTSA, + dwFlags: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetCharacterPlacementW( + hdc: HDC, + lpString: LPCWSTR, + nCount: ::std::os::raw::c_int, + nMexExtent: ::std::os::raw::c_int, + lpResults: LPGCP_RESULTSW, + dwFlags: DWORD, + ) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagWCRANGE { + pub wcLow: WCHAR, + pub cGlyphs: USHORT, +} +pub type WCRANGE = tagWCRANGE; +pub type PWCRANGE = *mut tagWCRANGE; +pub type LPWCRANGE = *mut tagWCRANGE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagGLYPHSET { + pub cbThis: DWORD, + pub flAccel: DWORD, + pub cGlyphsSupported: DWORD, + pub cRanges: DWORD, + pub ranges: [WCRANGE; 1usize], +} +pub type GLYPHSET = tagGLYPHSET; +pub type PGLYPHSET = *mut tagGLYPHSET; +pub type LPGLYPHSET = *mut tagGLYPHSET; +extern "C" { + pub fn GetFontUnicodeRanges(hdc: HDC, lpgs: LPGLYPHSET) -> DWORD; +} +extern "C" { + pub fn GetGlyphIndicesA( + hdc: HDC, + lpstr: LPCSTR, + c: ::std::os::raw::c_int, + pgi: LPWORD, + fl: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetGlyphIndicesW( + hdc: HDC, + lpstr: LPCWSTR, + c: ::std::os::raw::c_int, + pgi: LPWORD, + fl: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetTextExtentPointI( + hdc: HDC, + pgiIn: LPWORD, + cgi: ::std::os::raw::c_int, + psize: LPSIZE, + ) -> BOOL; +} +extern "C" { + pub fn GetTextExtentExPointI( + hdc: HDC, + lpwszString: LPWORD, + cwchString: ::std::os::raw::c_int, + nMaxExtent: ::std::os::raw::c_int, + lpnFit: LPINT, + lpnDx: LPINT, + lpSize: LPSIZE, + ) -> BOOL; +} +extern "C" { + pub fn GetCharWidthI(hdc: HDC, giFirst: UINT, cgi: UINT, pgi: LPWORD, piWidths: LPINT) -> BOOL; +} +extern "C" { + pub fn GetCharABCWidthsI(hdc: HDC, giFirst: UINT, cgi: UINT, pgi: LPWORD, pabc: LPABC) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagDESIGNVECTOR { + pub dvReserved: DWORD, + pub dvNumAxes: DWORD, + pub dvValues: [LONG; 16usize], +} +pub type DESIGNVECTOR = tagDESIGNVECTOR; +pub type PDESIGNVECTOR = *mut tagDESIGNVECTOR; +pub type LPDESIGNVECTOR = *mut tagDESIGNVECTOR; +extern "C" { + pub fn AddFontResourceExA(name: LPCSTR, fl: DWORD, res: PVOID) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn AddFontResourceExW(name: LPCWSTR, fl: DWORD, res: PVOID) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn RemoveFontResourceExA(name: LPCSTR, fl: DWORD, pdv: PVOID) -> BOOL; +} +extern "C" { + pub fn RemoveFontResourceExW(name: LPCWSTR, fl: DWORD, pdv: PVOID) -> BOOL; +} +extern "C" { + pub fn AddFontMemResourceEx( + pFileView: PVOID, + cjSize: DWORD, + pvResrved: PVOID, + pNumFonts: *mut DWORD, + ) -> HANDLE; +} +extern "C" { + pub fn RemoveFontMemResourceEx(h: HANDLE) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagAXISINFOA { + pub axMinValue: LONG, + pub axMaxValue: LONG, + pub axAxisName: [BYTE; 16usize], +} +pub type AXISINFOA = tagAXISINFOA; +pub type PAXISINFOA = *mut tagAXISINFOA; +pub type LPAXISINFOA = *mut tagAXISINFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagAXISINFOW { + pub axMinValue: LONG, + pub axMaxValue: LONG, + pub axAxisName: [WCHAR; 16usize], +} +pub type AXISINFOW = tagAXISINFOW; +pub type PAXISINFOW = *mut tagAXISINFOW; +pub type LPAXISINFOW = *mut tagAXISINFOW; +pub type AXISINFO = AXISINFOA; +pub type PAXISINFO = PAXISINFOA; +pub type LPAXISINFO = LPAXISINFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagAXESLISTA { + pub axlReserved: DWORD, + pub axlNumAxes: DWORD, + pub axlAxisInfo: [AXISINFOA; 16usize], +} +pub type AXESLISTA = tagAXESLISTA; +pub type PAXESLISTA = *mut tagAXESLISTA; +pub type LPAXESLISTA = *mut tagAXESLISTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagAXESLISTW { + pub axlReserved: DWORD, + pub axlNumAxes: DWORD, + pub axlAxisInfo: [AXISINFOW; 16usize], +} +pub type AXESLISTW = tagAXESLISTW; +pub type PAXESLISTW = *mut tagAXESLISTW; +pub type LPAXESLISTW = *mut tagAXESLISTW; +pub type AXESLIST = AXESLISTA; +pub type PAXESLIST = PAXESLISTA; +pub type LPAXESLIST = LPAXESLISTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagENUMLOGFONTEXDVA { + pub elfEnumLogfontEx: ENUMLOGFONTEXA, + pub elfDesignVector: DESIGNVECTOR, +} +pub type ENUMLOGFONTEXDVA = tagENUMLOGFONTEXDVA; +pub type PENUMLOGFONTEXDVA = *mut tagENUMLOGFONTEXDVA; +pub type LPENUMLOGFONTEXDVA = *mut tagENUMLOGFONTEXDVA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagENUMLOGFONTEXDVW { + pub elfEnumLogfontEx: ENUMLOGFONTEXW, + pub elfDesignVector: DESIGNVECTOR, +} +pub type ENUMLOGFONTEXDVW = tagENUMLOGFONTEXDVW; +pub type PENUMLOGFONTEXDVW = *mut tagENUMLOGFONTEXDVW; +pub type LPENUMLOGFONTEXDVW = *mut tagENUMLOGFONTEXDVW; +pub type ENUMLOGFONTEXDV = ENUMLOGFONTEXDVA; +pub type PENUMLOGFONTEXDV = PENUMLOGFONTEXDVA; +pub type LPENUMLOGFONTEXDV = LPENUMLOGFONTEXDVA; +extern "C" { + pub fn CreateFontIndirectExA(arg1: *const ENUMLOGFONTEXDVA) -> HFONT; +} +extern "C" { + pub fn CreateFontIndirectExW(arg1: *const ENUMLOGFONTEXDVW) -> HFONT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagENUMTEXTMETRICA { + pub etmNewTextMetricEx: NEWTEXTMETRICEXA, + pub etmAxesList: AXESLISTA, +} +pub type ENUMTEXTMETRICA = tagENUMTEXTMETRICA; +pub type PENUMTEXTMETRICA = *mut tagENUMTEXTMETRICA; +pub type LPENUMTEXTMETRICA = *mut tagENUMTEXTMETRICA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagENUMTEXTMETRICW { + pub etmNewTextMetricEx: NEWTEXTMETRICEXW, + pub etmAxesList: AXESLISTW, +} +pub type ENUMTEXTMETRICW = tagENUMTEXTMETRICW; +pub type PENUMTEXTMETRICW = *mut tagENUMTEXTMETRICW; +pub type LPENUMTEXTMETRICW = *mut tagENUMTEXTMETRICW; +pub type ENUMTEXTMETRIC = ENUMTEXTMETRICA; +pub type PENUMTEXTMETRIC = PENUMTEXTMETRICA; +pub type LPENUMTEXTMETRIC = LPENUMTEXTMETRICA; +extern "C" { + pub fn GetViewportExtEx(hdc: HDC, lpsize: LPSIZE) -> BOOL; +} +extern "C" { + pub fn GetViewportOrgEx(hdc: HDC, lppoint: LPPOINT) -> BOOL; +} +extern "C" { + pub fn GetWindowExtEx(hdc: HDC, lpsize: LPSIZE) -> BOOL; +} +extern "C" { + pub fn GetWindowOrgEx(hdc: HDC, lppoint: LPPOINT) -> BOOL; +} +extern "C" { + pub fn IntersectClipRect( + hdc: HDC, + left: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + right: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn InvertRgn(hdc: HDC, hrgn: HRGN) -> BOOL; +} +extern "C" { + pub fn LineDDA( + xStart: ::std::os::raw::c_int, + yStart: ::std::os::raw::c_int, + xEnd: ::std::os::raw::c_int, + yEnd: ::std::os::raw::c_int, + lpProc: LINEDDAPROC, + data: LPARAM, + ) -> BOOL; +} +extern "C" { + pub fn LineTo(hdc: HDC, x: ::std::os::raw::c_int, y: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn MaskBlt( + hdcDest: HDC, + xDest: ::std::os::raw::c_int, + yDest: ::std::os::raw::c_int, + width: ::std::os::raw::c_int, + height: ::std::os::raw::c_int, + hdcSrc: HDC, + xSrc: ::std::os::raw::c_int, + ySrc: ::std::os::raw::c_int, + hbmMask: HBITMAP, + xMask: ::std::os::raw::c_int, + yMask: ::std::os::raw::c_int, + rop: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn PlgBlt( + hdcDest: HDC, + lpPoint: *const POINT, + hdcSrc: HDC, + xSrc: ::std::os::raw::c_int, + ySrc: ::std::os::raw::c_int, + width: ::std::os::raw::c_int, + height: ::std::os::raw::c_int, + hbmMask: HBITMAP, + xMask: ::std::os::raw::c_int, + yMask: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn OffsetClipRgn( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn OffsetRgn( + hrgn: HRGN, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn PatBlt( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + w: ::std::os::raw::c_int, + h: ::std::os::raw::c_int, + rop: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn Pie( + hdc: HDC, + left: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + right: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, + xr1: ::std::os::raw::c_int, + yr1: ::std::os::raw::c_int, + xr2: ::std::os::raw::c_int, + yr2: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn PlayMetaFile(hdc: HDC, hmf: HMETAFILE) -> BOOL; +} +extern "C" { + pub fn PaintRgn(hdc: HDC, hrgn: HRGN) -> BOOL; +} +extern "C" { + pub fn PolyPolygon( + hdc: HDC, + apt: *const POINT, + asz: *const INT, + csz: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn PtInRegion(hrgn: HRGN, x: ::std::os::raw::c_int, y: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn PtVisible(hdc: HDC, x: ::std::os::raw::c_int, y: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn RectInRegion(hrgn: HRGN, lprect: *const RECT) -> BOOL; +} +extern "C" { + pub fn RectVisible(hdc: HDC, lprect: *const RECT) -> BOOL; +} +extern "C" { + pub fn Rectangle( + hdc: HDC, + left: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + right: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn RestoreDC(hdc: HDC, nSavedDC: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn ResetDCA(hdc: HDC, lpdm: *const DEVMODEA) -> HDC; +} +extern "C" { + pub fn ResetDCW(hdc: HDC, lpdm: *const DEVMODEW) -> HDC; +} +extern "C" { + pub fn RealizePalette(hdc: HDC) -> UINT; +} +extern "C" { + pub fn RemoveFontResourceA(lpFileName: LPCSTR) -> BOOL; +} +extern "C" { + pub fn RemoveFontResourceW(lpFileName: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn RoundRect( + hdc: HDC, + left: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + right: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, + width: ::std::os::raw::c_int, + height: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn ResizePalette(hpal: HPALETTE, n: UINT) -> BOOL; +} +extern "C" { + pub fn SaveDC(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SelectClipRgn(hdc: HDC, hrgn: HRGN) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ExtSelectClipRgn( + hdc: HDC, + hrgn: HRGN, + mode: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetMetaRgn(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SelectObject(hdc: HDC, h: HGDIOBJ) -> HGDIOBJ; +} +extern "C" { + pub fn SelectPalette(hdc: HDC, hPal: HPALETTE, bForceBkgd: BOOL) -> HPALETTE; +} +extern "C" { + pub fn SetBkColor(hdc: HDC, color: COLORREF) -> COLORREF; +} +extern "C" { + pub fn SetDCBrushColor(hdc: HDC, color: COLORREF) -> COLORREF; +} +extern "C" { + pub fn SetDCPenColor(hdc: HDC, color: COLORREF) -> COLORREF; +} +extern "C" { + pub fn SetBkMode(hdc: HDC, mode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetBitmapBits(hbm: HBITMAP, cb: DWORD, pvBits: *const ::std::os::raw::c_void) -> LONG; +} +extern "C" { + pub fn SetBoundsRect(hdc: HDC, lprect: *const RECT, flags: UINT) -> UINT; +} +extern "C" { + pub fn SetDIBits( + hdc: HDC, + hbm: HBITMAP, + start: UINT, + cLines: UINT, + lpBits: *const ::std::os::raw::c_void, + lpbmi: *const BITMAPINFO, + ColorUse: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetDIBitsToDevice( + hdc: HDC, + xDest: ::std::os::raw::c_int, + yDest: ::std::os::raw::c_int, + w: DWORD, + h: DWORD, + xSrc: ::std::os::raw::c_int, + ySrc: ::std::os::raw::c_int, + StartScan: UINT, + cLines: UINT, + lpvBits: *const ::std::os::raw::c_void, + lpbmi: *const BITMAPINFO, + ColorUse: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetMapperFlags(hdc: HDC, flags: DWORD) -> DWORD; +} +extern "C" { + pub fn SetGraphicsMode(hdc: HDC, iMode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetMapMode(hdc: HDC, iMode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetLayout(hdc: HDC, l: DWORD) -> DWORD; +} +extern "C" { + pub fn GetLayout(hdc: HDC) -> DWORD; +} +extern "C" { + pub fn SetMetaFileBitsEx(cbBuffer: UINT, lpData: *const BYTE) -> HMETAFILE; +} +extern "C" { + pub fn SetPaletteEntries( + hpal: HPALETTE, + iStart: UINT, + cEntries: UINT, + pPalEntries: *const PALETTEENTRY, + ) -> UINT; +} +extern "C" { + pub fn SetPixel( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + color: COLORREF, + ) -> COLORREF; +} +extern "C" { + pub fn SetPixelV( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + color: COLORREF, + ) -> BOOL; +} +extern "C" { + pub fn SetPixelFormat( + hdc: HDC, + format: ::std::os::raw::c_int, + ppfd: *const PIXELFORMATDESCRIPTOR, + ) -> BOOL; +} +extern "C" { + pub fn SetPolyFillMode(hdc: HDC, mode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn StretchBlt( + hdcDest: HDC, + xDest: ::std::os::raw::c_int, + yDest: ::std::os::raw::c_int, + wDest: ::std::os::raw::c_int, + hDest: ::std::os::raw::c_int, + hdcSrc: HDC, + xSrc: ::std::os::raw::c_int, + ySrc: ::std::os::raw::c_int, + wSrc: ::std::os::raw::c_int, + hSrc: ::std::os::raw::c_int, + rop: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetRectRgn( + hrgn: HRGN, + left: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + right: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn StretchDIBits( + hdc: HDC, + xDest: ::std::os::raw::c_int, + yDest: ::std::os::raw::c_int, + DestWidth: ::std::os::raw::c_int, + DestHeight: ::std::os::raw::c_int, + xSrc: ::std::os::raw::c_int, + ySrc: ::std::os::raw::c_int, + SrcWidth: ::std::os::raw::c_int, + SrcHeight: ::std::os::raw::c_int, + lpBits: *const ::std::os::raw::c_void, + lpbmi: *const BITMAPINFO, + iUsage: UINT, + rop: DWORD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetROP2(hdc: HDC, rop2: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetStretchBltMode(hdc: HDC, mode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetSystemPaletteUse(hdc: HDC, use_: UINT) -> UINT; +} +extern "C" { + pub fn SetTextCharacterExtra(hdc: HDC, extra: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetTextColor(hdc: HDC, color: COLORREF) -> COLORREF; +} +extern "C" { + pub fn SetTextAlign(hdc: HDC, align: UINT) -> UINT; +} +extern "C" { + pub fn SetTextJustification( + hdc: HDC, + extra: ::std::os::raw::c_int, + count: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn UpdateColors(hdc: HDC) -> BOOL; +} +pub type COLOR16 = USHORT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRIVERTEX { + pub x: LONG, + pub y: LONG, + pub Red: COLOR16, + pub Green: COLOR16, + pub Blue: COLOR16, + pub Alpha: COLOR16, +} +pub type TRIVERTEX = _TRIVERTEX; +pub type PTRIVERTEX = *mut _TRIVERTEX; +pub type LPTRIVERTEX = *mut _TRIVERTEX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _GRADIENT_TRIANGLE { + pub Vertex1: ULONG, + pub Vertex2: ULONG, + pub Vertex3: ULONG, +} +pub type GRADIENT_TRIANGLE = _GRADIENT_TRIANGLE; +pub type PGRADIENT_TRIANGLE = *mut _GRADIENT_TRIANGLE; +pub type LPGRADIENT_TRIANGLE = *mut _GRADIENT_TRIANGLE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _GRADIENT_RECT { + pub UpperLeft: ULONG, + pub LowerRight: ULONG, +} +pub type GRADIENT_RECT = _GRADIENT_RECT; +pub type PGRADIENT_RECT = *mut _GRADIENT_RECT; +pub type LPGRADIENT_RECT = *mut _GRADIENT_RECT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BLENDFUNCTION { + pub BlendOp: BYTE, + pub BlendFlags: BYTE, + pub SourceConstantAlpha: BYTE, + pub AlphaFormat: BYTE, +} +pub type BLENDFUNCTION = _BLENDFUNCTION; +pub type PBLENDFUNCTION = *mut _BLENDFUNCTION; +extern "C" { + pub fn AlphaBlend( + hdcDest: HDC, + xoriginDest: ::std::os::raw::c_int, + yoriginDest: ::std::os::raw::c_int, + wDest: ::std::os::raw::c_int, + hDest: ::std::os::raw::c_int, + hdcSrc: HDC, + xoriginSrc: ::std::os::raw::c_int, + yoriginSrc: ::std::os::raw::c_int, + wSrc: ::std::os::raw::c_int, + hSrc: ::std::os::raw::c_int, + ftn: BLENDFUNCTION, + ) -> BOOL; +} +extern "C" { + pub fn TransparentBlt( + hdcDest: HDC, + xoriginDest: ::std::os::raw::c_int, + yoriginDest: ::std::os::raw::c_int, + wDest: ::std::os::raw::c_int, + hDest: ::std::os::raw::c_int, + hdcSrc: HDC, + xoriginSrc: ::std::os::raw::c_int, + yoriginSrc: ::std::os::raw::c_int, + wSrc: ::std::os::raw::c_int, + hSrc: ::std::os::raw::c_int, + crTransparent: UINT, + ) -> BOOL; +} +extern "C" { + pub fn GradientFill( + hdc: HDC, + pVertex: PTRIVERTEX, + nVertex: ULONG, + pMesh: PVOID, + nMesh: ULONG, + ulMode: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn GdiAlphaBlend( + hdcDest: HDC, + xoriginDest: ::std::os::raw::c_int, + yoriginDest: ::std::os::raw::c_int, + wDest: ::std::os::raw::c_int, + hDest: ::std::os::raw::c_int, + hdcSrc: HDC, + xoriginSrc: ::std::os::raw::c_int, + yoriginSrc: ::std::os::raw::c_int, + wSrc: ::std::os::raw::c_int, + hSrc: ::std::os::raw::c_int, + ftn: BLENDFUNCTION, + ) -> BOOL; +} +extern "C" { + pub fn GdiTransparentBlt( + hdcDest: HDC, + xoriginDest: ::std::os::raw::c_int, + yoriginDest: ::std::os::raw::c_int, + wDest: ::std::os::raw::c_int, + hDest: ::std::os::raw::c_int, + hdcSrc: HDC, + xoriginSrc: ::std::os::raw::c_int, + yoriginSrc: ::std::os::raw::c_int, + wSrc: ::std::os::raw::c_int, + hSrc: ::std::os::raw::c_int, + crTransparent: UINT, + ) -> BOOL; +} +extern "C" { + pub fn GdiGradientFill( + hdc: HDC, + pVertex: PTRIVERTEX, + nVertex: ULONG, + pMesh: PVOID, + nCount: ULONG, + ulMode: ULONG, + ) -> BOOL; +} +extern "C" { + pub fn PlayMetaFileRecord( + hdc: HDC, + lpHandleTable: LPHANDLETABLE, + lpMR: LPMETARECORD, + noObjs: UINT, + ) -> BOOL; +} +pub type MFENUMPROC = ::std::option::Option< + unsafe extern "C" fn( + hdc: HDC, + lpht: *mut HANDLETABLE, + lpMR: *mut METARECORD, + nObj: ::std::os::raw::c_int, + param: LPARAM, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn EnumMetaFile(hdc: HDC, hmf: HMETAFILE, proc_: MFENUMPROC, param: LPARAM) -> BOOL; +} +pub type ENHMFENUMPROC = ::std::option::Option< + unsafe extern "C" fn( + hdc: HDC, + lpht: *mut HANDLETABLE, + lpmr: *const ENHMETARECORD, + nHandles: ::std::os::raw::c_int, + data: LPARAM, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn CloseEnhMetaFile(hdc: HDC) -> HENHMETAFILE; +} +extern "C" { + pub fn CopyEnhMetaFileA(hEnh: HENHMETAFILE, lpFileName: LPCSTR) -> HENHMETAFILE; +} +extern "C" { + pub fn CopyEnhMetaFileW(hEnh: HENHMETAFILE, lpFileName: LPCWSTR) -> HENHMETAFILE; +} +extern "C" { + pub fn CreateEnhMetaFileA( + hdc: HDC, + lpFilename: LPCSTR, + lprc: *const RECT, + lpDesc: LPCSTR, + ) -> HDC; +} +extern "C" { + pub fn CreateEnhMetaFileW( + hdc: HDC, + lpFilename: LPCWSTR, + lprc: *const RECT, + lpDesc: LPCWSTR, + ) -> HDC; +} +extern "C" { + pub fn DeleteEnhMetaFile(hmf: HENHMETAFILE) -> BOOL; +} +extern "C" { + pub fn EnumEnhMetaFile( + hdc: HDC, + hmf: HENHMETAFILE, + proc_: ENHMFENUMPROC, + param: LPVOID, + lpRect: *const RECT, + ) -> BOOL; +} +extern "C" { + pub fn GetEnhMetaFileA(lpName: LPCSTR) -> HENHMETAFILE; +} +extern "C" { + pub fn GetEnhMetaFileW(lpName: LPCWSTR) -> HENHMETAFILE; +} +extern "C" { + pub fn GetEnhMetaFileBits(hEMF: HENHMETAFILE, nSize: UINT, lpData: LPBYTE) -> UINT; +} +extern "C" { + pub fn GetEnhMetaFileDescriptionA( + hemf: HENHMETAFILE, + cchBuffer: UINT, + lpDescription: LPSTR, + ) -> UINT; +} +extern "C" { + pub fn GetEnhMetaFileDescriptionW( + hemf: HENHMETAFILE, + cchBuffer: UINT, + lpDescription: LPWSTR, + ) -> UINT; +} +extern "C" { + pub fn GetEnhMetaFileHeader( + hemf: HENHMETAFILE, + nSize: UINT, + lpEnhMetaHeader: LPENHMETAHEADER, + ) -> UINT; +} +extern "C" { + pub fn GetEnhMetaFilePaletteEntries( + hemf: HENHMETAFILE, + nNumEntries: UINT, + lpPaletteEntries: LPPALETTEENTRY, + ) -> UINT; +} +extern "C" { + pub fn GetEnhMetaFilePixelFormat( + hemf: HENHMETAFILE, + cbBuffer: UINT, + ppfd: *mut PIXELFORMATDESCRIPTOR, + ) -> UINT; +} +extern "C" { + pub fn GetWinMetaFileBits( + hemf: HENHMETAFILE, + cbData16: UINT, + pData16: LPBYTE, + iMapMode: INT, + hdcRef: HDC, + ) -> UINT; +} +extern "C" { + pub fn PlayEnhMetaFile(hdc: HDC, hmf: HENHMETAFILE, lprect: *const RECT) -> BOOL; +} +extern "C" { + pub fn PlayEnhMetaFileRecord( + hdc: HDC, + pht: LPHANDLETABLE, + pmr: *const ENHMETARECORD, + cht: UINT, + ) -> BOOL; +} +extern "C" { + pub fn SetEnhMetaFileBits(nSize: UINT, pb: *const BYTE) -> HENHMETAFILE; +} +extern "C" { + pub fn SetWinMetaFileBits( + nSize: UINT, + lpMeta16Data: *const BYTE, + hdcRef: HDC, + lpMFP: *const METAFILEPICT, + ) -> HENHMETAFILE; +} +extern "C" { + pub fn GdiComment(hdc: HDC, nSize: UINT, lpData: *const BYTE) -> BOOL; +} +extern "C" { + pub fn GetTextMetricsA(hdc: HDC, lptm: LPTEXTMETRICA) -> BOOL; +} +extern "C" { + pub fn GetTextMetricsW(hdc: HDC, lptm: LPTEXTMETRICW) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagDIBSECTION { + pub dsBm: BITMAP, + pub dsBmih: BITMAPINFOHEADER, + pub dsBitfields: [DWORD; 3usize], + pub dshSection: HANDLE, + pub dsOffset: DWORD, +} +pub type DIBSECTION = tagDIBSECTION; +pub type LPDIBSECTION = *mut tagDIBSECTION; +pub type PDIBSECTION = *mut tagDIBSECTION; +extern "C" { + pub fn AngleArc( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + r: DWORD, + StartAngle: FLOAT, + SweepAngle: FLOAT, + ) -> BOOL; +} +extern "C" { + pub fn PolyPolyline(hdc: HDC, apt: *const POINT, asz: *const DWORD, csz: DWORD) -> BOOL; +} +extern "C" { + pub fn GetWorldTransform(hdc: HDC, lpxf: LPXFORM) -> BOOL; +} +extern "C" { + pub fn SetWorldTransform(hdc: HDC, lpxf: *const XFORM) -> BOOL; +} +extern "C" { + pub fn ModifyWorldTransform(hdc: HDC, lpxf: *const XFORM, mode: DWORD) -> BOOL; +} +extern "C" { + pub fn CombineTransform(lpxfOut: LPXFORM, lpxf1: *const XFORM, lpxf2: *const XFORM) -> BOOL; +} +extern "C" { + pub fn CreateDIBSection( + hdc: HDC, + pbmi: *const BITMAPINFO, + usage: UINT, + ppvBits: *mut *mut ::std::os::raw::c_void, + hSection: HANDLE, + offset: DWORD, + ) -> HBITMAP; +} +extern "C" { + pub fn GetDIBColorTable(hdc: HDC, iStart: UINT, cEntries: UINT, prgbq: *mut RGBQUAD) -> UINT; +} +extern "C" { + pub fn SetDIBColorTable(hdc: HDC, iStart: UINT, cEntries: UINT, prgbq: *const RGBQUAD) -> UINT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCOLORADJUSTMENT { + pub caSize: WORD, + pub caFlags: WORD, + pub caIlluminantIndex: WORD, + pub caRedGamma: WORD, + pub caGreenGamma: WORD, + pub caBlueGamma: WORD, + pub caReferenceBlack: WORD, + pub caReferenceWhite: WORD, + pub caContrast: SHORT, + pub caBrightness: SHORT, + pub caColorfulness: SHORT, + pub caRedGreenTint: SHORT, +} +pub type COLORADJUSTMENT = tagCOLORADJUSTMENT; +pub type PCOLORADJUSTMENT = *mut tagCOLORADJUSTMENT; +pub type LPCOLORADJUSTMENT = *mut tagCOLORADJUSTMENT; +extern "C" { + pub fn SetColorAdjustment(hdc: HDC, lpca: *const COLORADJUSTMENT) -> BOOL; +} +extern "C" { + pub fn GetColorAdjustment(hdc: HDC, lpca: LPCOLORADJUSTMENT) -> BOOL; +} +extern "C" { + pub fn CreateHalftonePalette(hdc: HDC) -> HPALETTE; +} +pub type ABORTPROC = + ::std::option::Option BOOL>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DOCINFOA { + pub cbSize: ::std::os::raw::c_int, + pub lpszDocName: LPCSTR, + pub lpszOutput: LPCSTR, + pub lpszDatatype: LPCSTR, + pub fwType: DWORD, +} +pub type DOCINFOA = _DOCINFOA; +pub type LPDOCINFOA = *mut _DOCINFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DOCINFOW { + pub cbSize: ::std::os::raw::c_int, + pub lpszDocName: LPCWSTR, + pub lpszOutput: LPCWSTR, + pub lpszDatatype: LPCWSTR, + pub fwType: DWORD, +} +pub type DOCINFOW = _DOCINFOW; +pub type LPDOCINFOW = *mut _DOCINFOW; +pub type DOCINFO = DOCINFOA; +pub type LPDOCINFO = LPDOCINFOA; +extern "C" { + pub fn StartDocA(hdc: HDC, lpdi: *const DOCINFOA) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn StartDocW(hdc: HDC, lpdi: *const DOCINFOW) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EndDoc(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn StartPage(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EndPage(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn AbortDoc(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetAbortProc(hdc: HDC, proc_: ABORTPROC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn AbortPath(hdc: HDC) -> BOOL; +} +extern "C" { + pub fn ArcTo( + hdc: HDC, + left: ::std::os::raw::c_int, + top: ::std::os::raw::c_int, + right: ::std::os::raw::c_int, + bottom: ::std::os::raw::c_int, + xr1: ::std::os::raw::c_int, + yr1: ::std::os::raw::c_int, + xr2: ::std::os::raw::c_int, + yr2: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn BeginPath(hdc: HDC) -> BOOL; +} +extern "C" { + pub fn CloseFigure(hdc: HDC) -> BOOL; +} +extern "C" { + pub fn EndPath(hdc: HDC) -> BOOL; +} +extern "C" { + pub fn FillPath(hdc: HDC) -> BOOL; +} +extern "C" { + pub fn FlattenPath(hdc: HDC) -> BOOL; +} +extern "C" { + pub fn GetPath( + hdc: HDC, + apt: LPPOINT, + aj: LPBYTE, + cpt: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn PathToRegion(hdc: HDC) -> HRGN; +} +extern "C" { + pub fn PolyDraw( + hdc: HDC, + apt: *const POINT, + aj: *const BYTE, + cpt: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn SelectClipPath(hdc: HDC, mode: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn SetArcDirection(hdc: HDC, dir: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetMiterLimit(hdc: HDC, limit: FLOAT, old: PFLOAT) -> BOOL; +} +extern "C" { + pub fn StrokeAndFillPath(hdc: HDC) -> BOOL; +} +extern "C" { + pub fn StrokePath(hdc: HDC) -> BOOL; +} +extern "C" { + pub fn WidenPath(hdc: HDC) -> BOOL; +} +extern "C" { + pub fn ExtCreatePen( + iPenStyle: DWORD, + cWidth: DWORD, + plbrush: *const LOGBRUSH, + cStyle: DWORD, + pstyle: *const DWORD, + ) -> HPEN; +} +extern "C" { + pub fn GetMiterLimit(hdc: HDC, plimit: PFLOAT) -> BOOL; +} +extern "C" { + pub fn GetArcDirection(hdc: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetObjectA(h: HANDLE, c: ::std::os::raw::c_int, pv: LPVOID) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetObjectW(h: HANDLE, c: ::std::os::raw::c_int, pv: LPVOID) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn MoveToEx( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + lppt: LPPOINT, + ) -> BOOL; +} +extern "C" { + pub fn TextOutA( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + lpString: LPCSTR, + c: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn TextOutW( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + lpString: LPCWSTR, + c: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn ExtTextOutA( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + options: UINT, + lprect: *const RECT, + lpString: LPCSTR, + c: UINT, + lpDx: *const INT, + ) -> BOOL; +} +extern "C" { + pub fn ExtTextOutW( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + options: UINT, + lprect: *const RECT, + lpString: LPCWSTR, + c: UINT, + lpDx: *const INT, + ) -> BOOL; +} +extern "C" { + pub fn PolyTextOutA(hdc: HDC, ppt: *const POLYTEXTA, nstrings: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn PolyTextOutW(hdc: HDC, ppt: *const POLYTEXTW, nstrings: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn CreatePolygonRgn( + pptl: *const POINT, + cPoint: ::std::os::raw::c_int, + iMode: ::std::os::raw::c_int, + ) -> HRGN; +} +extern "C" { + pub fn DPtoLP(hdc: HDC, lppt: LPPOINT, c: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn LPtoDP(hdc: HDC, lppt: LPPOINT, c: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn Polygon(hdc: HDC, apt: *const POINT, cpt: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn Polyline(hdc: HDC, apt: *const POINT, cpt: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn PolyBezier(hdc: HDC, apt: *const POINT, cpt: DWORD) -> BOOL; +} +extern "C" { + pub fn PolyBezierTo(hdc: HDC, apt: *const POINT, cpt: DWORD) -> BOOL; +} +extern "C" { + pub fn PolylineTo(hdc: HDC, apt: *const POINT, cpt: DWORD) -> BOOL; +} +extern "C" { + pub fn SetViewportExtEx( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + lpsz: LPSIZE, + ) -> BOOL; +} +extern "C" { + pub fn SetViewportOrgEx( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + lppt: LPPOINT, + ) -> BOOL; +} +extern "C" { + pub fn SetWindowExtEx( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + lpsz: LPSIZE, + ) -> BOOL; +} +extern "C" { + pub fn SetWindowOrgEx( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + lppt: LPPOINT, + ) -> BOOL; +} +extern "C" { + pub fn OffsetViewportOrgEx( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + lppt: LPPOINT, + ) -> BOOL; +} +extern "C" { + pub fn OffsetWindowOrgEx( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + lppt: LPPOINT, + ) -> BOOL; +} +extern "C" { + pub fn ScaleViewportExtEx( + hdc: HDC, + xn: ::std::os::raw::c_int, + dx: ::std::os::raw::c_int, + yn: ::std::os::raw::c_int, + yd: ::std::os::raw::c_int, + lpsz: LPSIZE, + ) -> BOOL; +} +extern "C" { + pub fn ScaleWindowExtEx( + hdc: HDC, + xn: ::std::os::raw::c_int, + xd: ::std::os::raw::c_int, + yn: ::std::os::raw::c_int, + yd: ::std::os::raw::c_int, + lpsz: LPSIZE, + ) -> BOOL; +} +extern "C" { + pub fn SetBitmapDimensionEx( + hbm: HBITMAP, + w: ::std::os::raw::c_int, + h: ::std::os::raw::c_int, + lpsz: LPSIZE, + ) -> BOOL; +} +extern "C" { + pub fn SetBrushOrgEx( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + lppt: LPPOINT, + ) -> BOOL; +} +extern "C" { + pub fn GetTextFaceA(hdc: HDC, c: ::std::os::raw::c_int, lpName: LPSTR) + -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetTextFaceW( + hdc: HDC, + c: ::std::os::raw::c_int, + lpName: LPWSTR, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagKERNINGPAIR { + pub wFirst: WORD, + pub wSecond: WORD, + pub iKernAmount: ::std::os::raw::c_int, +} +pub type KERNINGPAIR = tagKERNINGPAIR; +pub type LPKERNINGPAIR = *mut tagKERNINGPAIR; +extern "C" { + pub fn GetKerningPairsA(hdc: HDC, nPairs: DWORD, lpKernPair: LPKERNINGPAIR) -> DWORD; +} +extern "C" { + pub fn GetKerningPairsW(hdc: HDC, nPairs: DWORD, lpKernPair: LPKERNINGPAIR) -> DWORD; +} +extern "C" { + pub fn GetDCOrgEx(hdc: HDC, lppt: LPPOINT) -> BOOL; +} +extern "C" { + pub fn FixBrushOrgEx( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + ptl: LPPOINT, + ) -> BOOL; +} +extern "C" { + pub fn UnrealizeObject(h: HGDIOBJ) -> BOOL; +} +extern "C" { + pub fn GdiFlush() -> BOOL; +} +extern "C" { + pub fn GdiSetBatchLimit(dw: DWORD) -> DWORD; +} +extern "C" { + pub fn GdiGetBatchLimit() -> DWORD; +} +pub type ICMENUMPROCA = + ::std::option::Option ::std::os::raw::c_int>; +pub type ICMENUMPROCW = ::std::option::Option< + unsafe extern "C" fn(arg1: LPWSTR, arg2: LPARAM) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn SetICMMode(hdc: HDC, mode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn CheckColorsInGamut( + hdc: HDC, + lpRGBTriple: LPRGBTRIPLE, + dlpBuffer: LPVOID, + nCount: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetColorSpace(hdc: HDC) -> HCOLORSPACE; +} +extern "C" { + pub fn GetLogColorSpaceA( + hColorSpace: HCOLORSPACE, + lpBuffer: LPLOGCOLORSPACEA, + nSize: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetLogColorSpaceW( + hColorSpace: HCOLORSPACE, + lpBuffer: LPLOGCOLORSPACEW, + nSize: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CreateColorSpaceA(lplcs: LPLOGCOLORSPACEA) -> HCOLORSPACE; +} +extern "C" { + pub fn CreateColorSpaceW(lplcs: LPLOGCOLORSPACEW) -> HCOLORSPACE; +} +extern "C" { + pub fn SetColorSpace(hdc: HDC, hcs: HCOLORSPACE) -> HCOLORSPACE; +} +extern "C" { + pub fn DeleteColorSpace(hcs: HCOLORSPACE) -> BOOL; +} +extern "C" { + pub fn GetICMProfileA(hdc: HDC, pBufSize: LPDWORD, pszFilename: LPSTR) -> BOOL; +} +extern "C" { + pub fn GetICMProfileW(hdc: HDC, pBufSize: LPDWORD, pszFilename: LPWSTR) -> BOOL; +} +extern "C" { + pub fn SetICMProfileA(hdc: HDC, lpFileName: LPSTR) -> BOOL; +} +extern "C" { + pub fn SetICMProfileW(hdc: HDC, lpFileName: LPWSTR) -> BOOL; +} +extern "C" { + pub fn GetDeviceGammaRamp(hdc: HDC, lpRamp: LPVOID) -> BOOL; +} +extern "C" { + pub fn SetDeviceGammaRamp(hdc: HDC, lpRamp: LPVOID) -> BOOL; +} +extern "C" { + pub fn ColorMatchToTarget(hdc: HDC, hdcTarget: HDC, action: DWORD) -> BOOL; +} +extern "C" { + pub fn EnumICMProfilesA(hdc: HDC, proc_: ICMENUMPROCA, param: LPARAM) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EnumICMProfilesW(hdc: HDC, proc_: ICMENUMPROCW, param: LPARAM) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn UpdateICMRegKeyA( + reserved: DWORD, + lpszCMID: LPSTR, + lpszFileName: LPSTR, + command: UINT, + ) -> BOOL; +} +extern "C" { + pub fn UpdateICMRegKeyW( + reserved: DWORD, + lpszCMID: LPWSTR, + lpszFileName: LPWSTR, + command: UINT, + ) -> BOOL; +} +extern "C" { + pub fn ColorCorrectPalette(hdc: HDC, hPal: HPALETTE, deFirst: DWORD, num: DWORD) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMR { + pub iType: DWORD, + pub nSize: DWORD, +} +pub type EMR = tagEMR; +pub type PEMR = *mut tagEMR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRTEXT { + pub ptlReference: POINTL, + pub nChars: DWORD, + pub offString: DWORD, + pub fOptions: DWORD, + pub rcl: RECTL, + pub offDx: DWORD, +} +pub type EMRTEXT = tagEMRTEXT; +pub type PEMRTEXT = *mut tagEMRTEXT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagABORTPATH { + pub emr: EMR, +} +pub type EMRABORTPATH = tagABORTPATH; +pub type PEMRABORTPATH = *mut tagABORTPATH; +pub type EMRBEGINPATH = tagABORTPATH; +pub type PEMRBEGINPATH = *mut tagABORTPATH; +pub type EMRENDPATH = tagABORTPATH; +pub type PEMRENDPATH = *mut tagABORTPATH; +pub type EMRCLOSEFIGURE = tagABORTPATH; +pub type PEMRCLOSEFIGURE = *mut tagABORTPATH; +pub type EMRFLATTENPATH = tagABORTPATH; +pub type PEMRFLATTENPATH = *mut tagABORTPATH; +pub type EMRWIDENPATH = tagABORTPATH; +pub type PEMRWIDENPATH = *mut tagABORTPATH; +pub type EMRSETMETARGN = tagABORTPATH; +pub type PEMRSETMETARGN = *mut tagABORTPATH; +pub type EMRSAVEDC = tagABORTPATH; +pub type PEMRSAVEDC = *mut tagABORTPATH; +pub type EMRREALIZEPALETTE = tagABORTPATH; +pub type PEMRREALIZEPALETTE = *mut tagABORTPATH; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSELECTCLIPPATH { + pub emr: EMR, + pub iMode: DWORD, +} +pub type EMRSELECTCLIPPATH = tagEMRSELECTCLIPPATH; +pub type PEMRSELECTCLIPPATH = *mut tagEMRSELECTCLIPPATH; +pub type EMRSETBKMODE = tagEMRSELECTCLIPPATH; +pub type PEMRSETBKMODE = *mut tagEMRSELECTCLIPPATH; +pub type EMRSETMAPMODE = tagEMRSELECTCLIPPATH; +pub type PEMRSETMAPMODE = *mut tagEMRSELECTCLIPPATH; +pub type EMRSETLAYOUT = tagEMRSELECTCLIPPATH; +pub type PEMRSETLAYOUT = *mut tagEMRSELECTCLIPPATH; +pub type EMRSETPOLYFILLMODE = tagEMRSELECTCLIPPATH; +pub type PEMRSETPOLYFILLMODE = *mut tagEMRSELECTCLIPPATH; +pub type EMRSETROP2 = tagEMRSELECTCLIPPATH; +pub type PEMRSETROP2 = *mut tagEMRSELECTCLIPPATH; +pub type EMRSETSTRETCHBLTMODE = tagEMRSELECTCLIPPATH; +pub type PEMRSETSTRETCHBLTMODE = *mut tagEMRSELECTCLIPPATH; +pub type EMRSETICMMODE = tagEMRSELECTCLIPPATH; +pub type PEMRSETICMMODE = *mut tagEMRSELECTCLIPPATH; +pub type EMRSETTEXTALIGN = tagEMRSELECTCLIPPATH; +pub type PEMRSETTEXTALIGN = *mut tagEMRSELECTCLIPPATH; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSETMITERLIMIT { + pub emr: EMR, + pub eMiterLimit: FLOAT, +} +pub type EMRSETMITERLIMIT = tagEMRSETMITERLIMIT; +pub type PEMRSETMITERLIMIT = *mut tagEMRSETMITERLIMIT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRRESTOREDC { + pub emr: EMR, + pub iRelative: LONG, +} +pub type EMRRESTOREDC = tagEMRRESTOREDC; +pub type PEMRRESTOREDC = *mut tagEMRRESTOREDC; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSETARCDIRECTION { + pub emr: EMR, + pub iArcDirection: DWORD, +} +pub type EMRSETARCDIRECTION = tagEMRSETARCDIRECTION; +pub type PEMRSETARCDIRECTION = *mut tagEMRSETARCDIRECTION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSETMAPPERFLAGS { + pub emr: EMR, + pub dwFlags: DWORD, +} +pub type EMRSETMAPPERFLAGS = tagEMRSETMAPPERFLAGS; +pub type PEMRSETMAPPERFLAGS = *mut tagEMRSETMAPPERFLAGS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSETTEXTCOLOR { + pub emr: EMR, + pub crColor: COLORREF, +} +pub type EMRSETBKCOLOR = tagEMRSETTEXTCOLOR; +pub type PEMRSETBKCOLOR = *mut tagEMRSETTEXTCOLOR; +pub type EMRSETTEXTCOLOR = tagEMRSETTEXTCOLOR; +pub type PEMRSETTEXTCOLOR = *mut tagEMRSETTEXTCOLOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSELECTOBJECT { + pub emr: EMR, + pub ihObject: DWORD, +} +pub type EMRSELECTOBJECT = tagEMRSELECTOBJECT; +pub type PEMRSELECTOBJECT = *mut tagEMRSELECTOBJECT; +pub type EMRDELETEOBJECT = tagEMRSELECTOBJECT; +pub type PEMRDELETEOBJECT = *mut tagEMRSELECTOBJECT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSELECTPALETTE { + pub emr: EMR, + pub ihPal: DWORD, +} +pub type EMRSELECTPALETTE = tagEMRSELECTPALETTE; +pub type PEMRSELECTPALETTE = *mut tagEMRSELECTPALETTE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRRESIZEPALETTE { + pub emr: EMR, + pub ihPal: DWORD, + pub cEntries: DWORD, +} +pub type EMRRESIZEPALETTE = tagEMRRESIZEPALETTE; +pub type PEMRRESIZEPALETTE = *mut tagEMRRESIZEPALETTE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSETPALETTEENTRIES { + pub emr: EMR, + pub ihPal: DWORD, + pub iStart: DWORD, + pub cEntries: DWORD, + pub aPalEntries: [PALETTEENTRY; 1usize], +} +pub type EMRSETPALETTEENTRIES = tagEMRSETPALETTEENTRIES; +pub type PEMRSETPALETTEENTRIES = *mut tagEMRSETPALETTEENTRIES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSETCOLORADJUSTMENT { + pub emr: EMR, + pub ColorAdjustment: COLORADJUSTMENT, +} +pub type EMRSETCOLORADJUSTMENT = tagEMRSETCOLORADJUSTMENT; +pub type PEMRSETCOLORADJUSTMENT = *mut tagEMRSETCOLORADJUSTMENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRGDICOMMENT { + pub emr: EMR, + pub cbData: DWORD, + pub Data: [BYTE; 1usize], +} +pub type EMRGDICOMMENT = tagEMRGDICOMMENT; +pub type PEMRGDICOMMENT = *mut tagEMRGDICOMMENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMREOF { + pub emr: EMR, + pub nPalEntries: DWORD, + pub offPalEntries: DWORD, + pub nSizeLast: DWORD, +} +pub type EMREOF = tagEMREOF; +pub type PEMREOF = *mut tagEMREOF; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRLINETO { + pub emr: EMR, + pub ptl: POINTL, +} +pub type EMRLINETO = tagEMRLINETO; +pub type PEMRLINETO = *mut tagEMRLINETO; +pub type EMRMOVETOEX = tagEMRLINETO; +pub type PEMRMOVETOEX = *mut tagEMRLINETO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMROFFSETCLIPRGN { + pub emr: EMR, + pub ptlOffset: POINTL, +} +pub type EMROFFSETCLIPRGN = tagEMROFFSETCLIPRGN; +pub type PEMROFFSETCLIPRGN = *mut tagEMROFFSETCLIPRGN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRFILLPATH { + pub emr: EMR, + pub rclBounds: RECTL, +} +pub type EMRFILLPATH = tagEMRFILLPATH; +pub type PEMRFILLPATH = *mut tagEMRFILLPATH; +pub type EMRSTROKEANDFILLPATH = tagEMRFILLPATH; +pub type PEMRSTROKEANDFILLPATH = *mut tagEMRFILLPATH; +pub type EMRSTROKEPATH = tagEMRFILLPATH; +pub type PEMRSTROKEPATH = *mut tagEMRFILLPATH; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMREXCLUDECLIPRECT { + pub emr: EMR, + pub rclClip: RECTL, +} +pub type EMREXCLUDECLIPRECT = tagEMREXCLUDECLIPRECT; +pub type PEMREXCLUDECLIPRECT = *mut tagEMREXCLUDECLIPRECT; +pub type EMRINTERSECTCLIPRECT = tagEMREXCLUDECLIPRECT; +pub type PEMRINTERSECTCLIPRECT = *mut tagEMREXCLUDECLIPRECT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSETVIEWPORTORGEX { + pub emr: EMR, + pub ptlOrigin: POINTL, +} +pub type EMRSETVIEWPORTORGEX = tagEMRSETVIEWPORTORGEX; +pub type PEMRSETVIEWPORTORGEX = *mut tagEMRSETVIEWPORTORGEX; +pub type EMRSETWINDOWORGEX = tagEMRSETVIEWPORTORGEX; +pub type PEMRSETWINDOWORGEX = *mut tagEMRSETVIEWPORTORGEX; +pub type EMRSETBRUSHORGEX = tagEMRSETVIEWPORTORGEX; +pub type PEMRSETBRUSHORGEX = *mut tagEMRSETVIEWPORTORGEX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSETVIEWPORTEXTEX { + pub emr: EMR, + pub szlExtent: SIZEL, +} +pub type EMRSETVIEWPORTEXTEX = tagEMRSETVIEWPORTEXTEX; +pub type PEMRSETVIEWPORTEXTEX = *mut tagEMRSETVIEWPORTEXTEX; +pub type EMRSETWINDOWEXTEX = tagEMRSETVIEWPORTEXTEX; +pub type PEMRSETWINDOWEXTEX = *mut tagEMRSETVIEWPORTEXTEX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSCALEVIEWPORTEXTEX { + pub emr: EMR, + pub xNum: LONG, + pub xDenom: LONG, + pub yNum: LONG, + pub yDenom: LONG, +} +pub type EMRSCALEVIEWPORTEXTEX = tagEMRSCALEVIEWPORTEXTEX; +pub type PEMRSCALEVIEWPORTEXTEX = *mut tagEMRSCALEVIEWPORTEXTEX; +pub type EMRSCALEWINDOWEXTEX = tagEMRSCALEVIEWPORTEXTEX; +pub type PEMRSCALEWINDOWEXTEX = *mut tagEMRSCALEVIEWPORTEXTEX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSETWORLDTRANSFORM { + pub emr: EMR, + pub xform: XFORM, +} +pub type EMRSETWORLDTRANSFORM = tagEMRSETWORLDTRANSFORM; +pub type PEMRSETWORLDTRANSFORM = *mut tagEMRSETWORLDTRANSFORM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRMODIFYWORLDTRANSFORM { + pub emr: EMR, + pub xform: XFORM, + pub iMode: DWORD, +} +pub type EMRMODIFYWORLDTRANSFORM = tagEMRMODIFYWORLDTRANSFORM; +pub type PEMRMODIFYWORLDTRANSFORM = *mut tagEMRMODIFYWORLDTRANSFORM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSETPIXELV { + pub emr: EMR, + pub ptlPixel: POINTL, + pub crColor: COLORREF, +} +pub type EMRSETPIXELV = tagEMRSETPIXELV; +pub type PEMRSETPIXELV = *mut tagEMRSETPIXELV; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMREXTFLOODFILL { + pub emr: EMR, + pub ptlStart: POINTL, + pub crColor: COLORREF, + pub iMode: DWORD, +} +pub type EMREXTFLOODFILL = tagEMREXTFLOODFILL; +pub type PEMREXTFLOODFILL = *mut tagEMREXTFLOODFILL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRELLIPSE { + pub emr: EMR, + pub rclBox: RECTL, +} +pub type EMRELLIPSE = tagEMRELLIPSE; +pub type PEMRELLIPSE = *mut tagEMRELLIPSE; +pub type EMRRECTANGLE = tagEMRELLIPSE; +pub type PEMRRECTANGLE = *mut tagEMRELLIPSE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRROUNDRECT { + pub emr: EMR, + pub rclBox: RECTL, + pub szlCorner: SIZEL, +} +pub type EMRROUNDRECT = tagEMRROUNDRECT; +pub type PEMRROUNDRECT = *mut tagEMRROUNDRECT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRARC { + pub emr: EMR, + pub rclBox: RECTL, + pub ptlStart: POINTL, + pub ptlEnd: POINTL, +} +pub type EMRARC = tagEMRARC; +pub type PEMRARC = *mut tagEMRARC; +pub type EMRARCTO = tagEMRARC; +pub type PEMRARCTO = *mut tagEMRARC; +pub type EMRCHORD = tagEMRARC; +pub type PEMRCHORD = *mut tagEMRARC; +pub type EMRPIE = tagEMRARC; +pub type PEMRPIE = *mut tagEMRARC; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRANGLEARC { + pub emr: EMR, + pub ptlCenter: POINTL, + pub nRadius: DWORD, + pub eStartAngle: FLOAT, + pub eSweepAngle: FLOAT, +} +pub type EMRANGLEARC = tagEMRANGLEARC; +pub type PEMRANGLEARC = *mut tagEMRANGLEARC; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRPOLYLINE { + pub emr: EMR, + pub rclBounds: RECTL, + pub cptl: DWORD, + pub aptl: [POINTL; 1usize], +} +pub type EMRPOLYLINE = tagEMRPOLYLINE; +pub type PEMRPOLYLINE = *mut tagEMRPOLYLINE; +pub type EMRPOLYBEZIER = tagEMRPOLYLINE; +pub type PEMRPOLYBEZIER = *mut tagEMRPOLYLINE; +pub type EMRPOLYGON = tagEMRPOLYLINE; +pub type PEMRPOLYGON = *mut tagEMRPOLYLINE; +pub type EMRPOLYBEZIERTO = tagEMRPOLYLINE; +pub type PEMRPOLYBEZIERTO = *mut tagEMRPOLYLINE; +pub type EMRPOLYLINETO = tagEMRPOLYLINE; +pub type PEMRPOLYLINETO = *mut tagEMRPOLYLINE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRPOLYLINE16 { + pub emr: EMR, + pub rclBounds: RECTL, + pub cpts: DWORD, + pub apts: [POINTS; 1usize], +} +pub type EMRPOLYLINE16 = tagEMRPOLYLINE16; +pub type PEMRPOLYLINE16 = *mut tagEMRPOLYLINE16; +pub type EMRPOLYBEZIER16 = tagEMRPOLYLINE16; +pub type PEMRPOLYBEZIER16 = *mut tagEMRPOLYLINE16; +pub type EMRPOLYGON16 = tagEMRPOLYLINE16; +pub type PEMRPOLYGON16 = *mut tagEMRPOLYLINE16; +pub type EMRPOLYBEZIERTO16 = tagEMRPOLYLINE16; +pub type PEMRPOLYBEZIERTO16 = *mut tagEMRPOLYLINE16; +pub type EMRPOLYLINETO16 = tagEMRPOLYLINE16; +pub type PEMRPOLYLINETO16 = *mut tagEMRPOLYLINE16; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRPOLYDRAW { + pub emr: EMR, + pub rclBounds: RECTL, + pub cptl: DWORD, + pub aptl: [POINTL; 1usize], + pub abTypes: [BYTE; 1usize], +} +pub type EMRPOLYDRAW = tagEMRPOLYDRAW; +pub type PEMRPOLYDRAW = *mut tagEMRPOLYDRAW; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRPOLYDRAW16 { + pub emr: EMR, + pub rclBounds: RECTL, + pub cpts: DWORD, + pub apts: [POINTS; 1usize], + pub abTypes: [BYTE; 1usize], +} +pub type EMRPOLYDRAW16 = tagEMRPOLYDRAW16; +pub type PEMRPOLYDRAW16 = *mut tagEMRPOLYDRAW16; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRPOLYPOLYLINE { + pub emr: EMR, + pub rclBounds: RECTL, + pub nPolys: DWORD, + pub cptl: DWORD, + pub aPolyCounts: [DWORD; 1usize], + pub aptl: [POINTL; 1usize], +} +pub type EMRPOLYPOLYLINE = tagEMRPOLYPOLYLINE; +pub type PEMRPOLYPOLYLINE = *mut tagEMRPOLYPOLYLINE; +pub type EMRPOLYPOLYGON = tagEMRPOLYPOLYLINE; +pub type PEMRPOLYPOLYGON = *mut tagEMRPOLYPOLYLINE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRPOLYPOLYLINE16 { + pub emr: EMR, + pub rclBounds: RECTL, + pub nPolys: DWORD, + pub cpts: DWORD, + pub aPolyCounts: [DWORD; 1usize], + pub apts: [POINTS; 1usize], +} +pub type EMRPOLYPOLYLINE16 = tagEMRPOLYPOLYLINE16; +pub type PEMRPOLYPOLYLINE16 = *mut tagEMRPOLYPOLYLINE16; +pub type EMRPOLYPOLYGON16 = tagEMRPOLYPOLYLINE16; +pub type PEMRPOLYPOLYGON16 = *mut tagEMRPOLYPOLYLINE16; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRINVERTRGN { + pub emr: EMR, + pub rclBounds: RECTL, + pub cbRgnData: DWORD, + pub RgnData: [BYTE; 1usize], +} +pub type EMRINVERTRGN = tagEMRINVERTRGN; +pub type PEMRINVERTRGN = *mut tagEMRINVERTRGN; +pub type EMRPAINTRGN = tagEMRINVERTRGN; +pub type PEMRPAINTRGN = *mut tagEMRINVERTRGN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRFILLRGN { + pub emr: EMR, + pub rclBounds: RECTL, + pub cbRgnData: DWORD, + pub ihBrush: DWORD, + pub RgnData: [BYTE; 1usize], +} +pub type EMRFILLRGN = tagEMRFILLRGN; +pub type PEMRFILLRGN = *mut tagEMRFILLRGN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRFRAMERGN { + pub emr: EMR, + pub rclBounds: RECTL, + pub cbRgnData: DWORD, + pub ihBrush: DWORD, + pub szlStroke: SIZEL, + pub RgnData: [BYTE; 1usize], +} +pub type EMRFRAMERGN = tagEMRFRAMERGN; +pub type PEMRFRAMERGN = *mut tagEMRFRAMERGN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMREXTSELECTCLIPRGN { + pub emr: EMR, + pub cbRgnData: DWORD, + pub iMode: DWORD, + pub RgnData: [BYTE; 1usize], +} +pub type EMREXTSELECTCLIPRGN = tagEMREXTSELECTCLIPRGN; +pub type PEMREXTSELECTCLIPRGN = *mut tagEMREXTSELECTCLIPRGN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMREXTTEXTOUTA { + pub emr: EMR, + pub rclBounds: RECTL, + pub iGraphicsMode: DWORD, + pub exScale: FLOAT, + pub eyScale: FLOAT, + pub emrtext: EMRTEXT, +} +pub type EMREXTTEXTOUTA = tagEMREXTTEXTOUTA; +pub type PEMREXTTEXTOUTA = *mut tagEMREXTTEXTOUTA; +pub type EMREXTTEXTOUTW = tagEMREXTTEXTOUTA; +pub type PEMREXTTEXTOUTW = *mut tagEMREXTTEXTOUTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRPOLYTEXTOUTA { + pub emr: EMR, + pub rclBounds: RECTL, + pub iGraphicsMode: DWORD, + pub exScale: FLOAT, + pub eyScale: FLOAT, + pub cStrings: LONG, + pub aemrtext: [EMRTEXT; 1usize], +} +pub type EMRPOLYTEXTOUTA = tagEMRPOLYTEXTOUTA; +pub type PEMRPOLYTEXTOUTA = *mut tagEMRPOLYTEXTOUTA; +pub type EMRPOLYTEXTOUTW = tagEMRPOLYTEXTOUTA; +pub type PEMRPOLYTEXTOUTW = *mut tagEMRPOLYTEXTOUTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRBITBLT { + pub emr: EMR, + pub rclBounds: RECTL, + pub xDest: LONG, + pub yDest: LONG, + pub cxDest: LONG, + pub cyDest: LONG, + pub dwRop: DWORD, + pub xSrc: LONG, + pub ySrc: LONG, + pub xformSrc: XFORM, + pub crBkColorSrc: COLORREF, + pub iUsageSrc: DWORD, + pub offBmiSrc: DWORD, + pub cbBmiSrc: DWORD, + pub offBitsSrc: DWORD, + pub cbBitsSrc: DWORD, +} +pub type EMRBITBLT = tagEMRBITBLT; +pub type PEMRBITBLT = *mut tagEMRBITBLT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSTRETCHBLT { + pub emr: EMR, + pub rclBounds: RECTL, + pub xDest: LONG, + pub yDest: LONG, + pub cxDest: LONG, + pub cyDest: LONG, + pub dwRop: DWORD, + pub xSrc: LONG, + pub ySrc: LONG, + pub xformSrc: XFORM, + pub crBkColorSrc: COLORREF, + pub iUsageSrc: DWORD, + pub offBmiSrc: DWORD, + pub cbBmiSrc: DWORD, + pub offBitsSrc: DWORD, + pub cbBitsSrc: DWORD, + pub cxSrc: LONG, + pub cySrc: LONG, +} +pub type EMRSTRETCHBLT = tagEMRSTRETCHBLT; +pub type PEMRSTRETCHBLT = *mut tagEMRSTRETCHBLT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRMASKBLT { + pub emr: EMR, + pub rclBounds: RECTL, + pub xDest: LONG, + pub yDest: LONG, + pub cxDest: LONG, + pub cyDest: LONG, + pub dwRop: DWORD, + pub xSrc: LONG, + pub ySrc: LONG, + pub xformSrc: XFORM, + pub crBkColorSrc: COLORREF, + pub iUsageSrc: DWORD, + pub offBmiSrc: DWORD, + pub cbBmiSrc: DWORD, + pub offBitsSrc: DWORD, + pub cbBitsSrc: DWORD, + pub xMask: LONG, + pub yMask: LONG, + pub iUsageMask: DWORD, + pub offBmiMask: DWORD, + pub cbBmiMask: DWORD, + pub offBitsMask: DWORD, + pub cbBitsMask: DWORD, +} +pub type EMRMASKBLT = tagEMRMASKBLT; +pub type PEMRMASKBLT = *mut tagEMRMASKBLT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRPLGBLT { + pub emr: EMR, + pub rclBounds: RECTL, + pub aptlDest: [POINTL; 3usize], + pub xSrc: LONG, + pub ySrc: LONG, + pub cxSrc: LONG, + pub cySrc: LONG, + pub xformSrc: XFORM, + pub crBkColorSrc: COLORREF, + pub iUsageSrc: DWORD, + pub offBmiSrc: DWORD, + pub cbBmiSrc: DWORD, + pub offBitsSrc: DWORD, + pub cbBitsSrc: DWORD, + pub xMask: LONG, + pub yMask: LONG, + pub iUsageMask: DWORD, + pub offBmiMask: DWORD, + pub cbBmiMask: DWORD, + pub offBitsMask: DWORD, + pub cbBitsMask: DWORD, +} +pub type EMRPLGBLT = tagEMRPLGBLT; +pub type PEMRPLGBLT = *mut tagEMRPLGBLT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSETDIBITSTODEVICE { + pub emr: EMR, + pub rclBounds: RECTL, + pub xDest: LONG, + pub yDest: LONG, + pub xSrc: LONG, + pub ySrc: LONG, + pub cxSrc: LONG, + pub cySrc: LONG, + pub offBmiSrc: DWORD, + pub cbBmiSrc: DWORD, + pub offBitsSrc: DWORD, + pub cbBitsSrc: DWORD, + pub iUsageSrc: DWORD, + pub iStartScan: DWORD, + pub cScans: DWORD, +} +pub type EMRSETDIBITSTODEVICE = tagEMRSETDIBITSTODEVICE; +pub type PEMRSETDIBITSTODEVICE = *mut tagEMRSETDIBITSTODEVICE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSTRETCHDIBITS { + pub emr: EMR, + pub rclBounds: RECTL, + pub xDest: LONG, + pub yDest: LONG, + pub xSrc: LONG, + pub ySrc: LONG, + pub cxSrc: LONG, + pub cySrc: LONG, + pub offBmiSrc: DWORD, + pub cbBmiSrc: DWORD, + pub offBitsSrc: DWORD, + pub cbBitsSrc: DWORD, + pub iUsageSrc: DWORD, + pub dwRop: DWORD, + pub cxDest: LONG, + pub cyDest: LONG, +} +pub type EMRSTRETCHDIBITS = tagEMRSTRETCHDIBITS; +pub type PEMRSTRETCHDIBITS = *mut tagEMRSTRETCHDIBITS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMREXTCREATEFONTINDIRECTW { + pub emr: EMR, + pub ihFont: DWORD, + pub elfw: EXTLOGFONTW, +} +pub type EMREXTCREATEFONTINDIRECTW = tagEMREXTCREATEFONTINDIRECTW; +pub type PEMREXTCREATEFONTINDIRECTW = *mut tagEMREXTCREATEFONTINDIRECTW; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRCREATEPALETTE { + pub emr: EMR, + pub ihPal: DWORD, + pub lgpl: LOGPALETTE, +} +pub type EMRCREATEPALETTE = tagEMRCREATEPALETTE; +pub type PEMRCREATEPALETTE = *mut tagEMRCREATEPALETTE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRCREATEPEN { + pub emr: EMR, + pub ihPen: DWORD, + pub lopn: LOGPEN, +} +pub type EMRCREATEPEN = tagEMRCREATEPEN; +pub type PEMRCREATEPEN = *mut tagEMRCREATEPEN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMREXTCREATEPEN { + pub emr: EMR, + pub ihPen: DWORD, + pub offBmi: DWORD, + pub cbBmi: DWORD, + pub offBits: DWORD, + pub cbBits: DWORD, + pub elp: EXTLOGPEN32, +} +pub type EMREXTCREATEPEN = tagEMREXTCREATEPEN; +pub type PEMREXTCREATEPEN = *mut tagEMREXTCREATEPEN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRCREATEBRUSHINDIRECT { + pub emr: EMR, + pub ihBrush: DWORD, + pub lb: LOGBRUSH32, +} +pub type EMRCREATEBRUSHINDIRECT = tagEMRCREATEBRUSHINDIRECT; +pub type PEMRCREATEBRUSHINDIRECT = *mut tagEMRCREATEBRUSHINDIRECT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRCREATEMONOBRUSH { + pub emr: EMR, + pub ihBrush: DWORD, + pub iUsage: DWORD, + pub offBmi: DWORD, + pub cbBmi: DWORD, + pub offBits: DWORD, + pub cbBits: DWORD, +} +pub type EMRCREATEMONOBRUSH = tagEMRCREATEMONOBRUSH; +pub type PEMRCREATEMONOBRUSH = *mut tagEMRCREATEMONOBRUSH; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRCREATEDIBPATTERNBRUSHPT { + pub emr: EMR, + pub ihBrush: DWORD, + pub iUsage: DWORD, + pub offBmi: DWORD, + pub cbBmi: DWORD, + pub offBits: DWORD, + pub cbBits: DWORD, +} +pub type EMRCREATEDIBPATTERNBRUSHPT = tagEMRCREATEDIBPATTERNBRUSHPT; +pub type PEMRCREATEDIBPATTERNBRUSHPT = *mut tagEMRCREATEDIBPATTERNBRUSHPT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRFORMAT { + pub dSignature: DWORD, + pub nVersion: DWORD, + pub cbData: DWORD, + pub offData: DWORD, +} +pub type EMRFORMAT = tagEMRFORMAT; +pub type PEMRFORMAT = *mut tagEMRFORMAT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRGLSRECORD { + pub emr: EMR, + pub cbData: DWORD, + pub Data: [BYTE; 1usize], +} +pub type EMRGLSRECORD = tagEMRGLSRECORD; +pub type PEMRGLSRECORD = *mut tagEMRGLSRECORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRGLSBOUNDEDRECORD { + pub emr: EMR, + pub rclBounds: RECTL, + pub cbData: DWORD, + pub Data: [BYTE; 1usize], +} +pub type EMRGLSBOUNDEDRECORD = tagEMRGLSBOUNDEDRECORD; +pub type PEMRGLSBOUNDEDRECORD = *mut tagEMRGLSBOUNDEDRECORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRPIXELFORMAT { + pub emr: EMR, + pub pfd: PIXELFORMATDESCRIPTOR, +} +pub type EMRPIXELFORMAT = tagEMRPIXELFORMAT; +pub type PEMRPIXELFORMAT = *mut tagEMRPIXELFORMAT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRCREATECOLORSPACE { + pub emr: EMR, + pub ihCS: DWORD, + pub lcs: LOGCOLORSPACEA, +} +pub type EMRCREATECOLORSPACE = tagEMRCREATECOLORSPACE; +pub type PEMRCREATECOLORSPACE = *mut tagEMRCREATECOLORSPACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSETCOLORSPACE { + pub emr: EMR, + pub ihCS: DWORD, +} +pub type EMRSETCOLORSPACE = tagEMRSETCOLORSPACE; +pub type PEMRSETCOLORSPACE = *mut tagEMRSETCOLORSPACE; +pub type EMRSELECTCOLORSPACE = tagEMRSETCOLORSPACE; +pub type PEMRSELECTCOLORSPACE = *mut tagEMRSETCOLORSPACE; +pub type EMRDELETECOLORSPACE = tagEMRSETCOLORSPACE; +pub type PEMRDELETECOLORSPACE = *mut tagEMRSETCOLORSPACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMREXTESCAPE { + pub emr: EMR, + pub iEscape: INT, + pub cbEscData: INT, + pub EscData: [BYTE; 1usize], +} +pub type EMREXTESCAPE = tagEMREXTESCAPE; +pub type PEMREXTESCAPE = *mut tagEMREXTESCAPE; +pub type EMRDRAWESCAPE = tagEMREXTESCAPE; +pub type PEMRDRAWESCAPE = *mut tagEMREXTESCAPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRNAMEDESCAPE { + pub emr: EMR, + pub iEscape: INT, + pub cbDriver: INT, + pub cbEscData: INT, + pub EscData: [BYTE; 1usize], +} +pub type EMRNAMEDESCAPE = tagEMRNAMEDESCAPE; +pub type PEMRNAMEDESCAPE = *mut tagEMRNAMEDESCAPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRSETICMPROFILE { + pub emr: EMR, + pub dwFlags: DWORD, + pub cbName: DWORD, + pub cbData: DWORD, + pub Data: [BYTE; 1usize], +} +pub type EMRSETICMPROFILE = tagEMRSETICMPROFILE; +pub type PEMRSETICMPROFILE = *mut tagEMRSETICMPROFILE; +pub type EMRSETICMPROFILEA = tagEMRSETICMPROFILE; +pub type PEMRSETICMPROFILEA = *mut tagEMRSETICMPROFILE; +pub type EMRSETICMPROFILEW = tagEMRSETICMPROFILE; +pub type PEMRSETICMPROFILEW = *mut tagEMRSETICMPROFILE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRCREATECOLORSPACEW { + pub emr: EMR, + pub ihCS: DWORD, + pub lcs: LOGCOLORSPACEW, + pub dwFlags: DWORD, + pub cbData: DWORD, + pub Data: [BYTE; 1usize], +} +pub type EMRCREATECOLORSPACEW = tagEMRCREATECOLORSPACEW; +pub type PEMRCREATECOLORSPACEW = *mut tagEMRCREATECOLORSPACEW; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCOLORMATCHTOTARGET { + pub emr: EMR, + pub dwAction: DWORD, + pub dwFlags: DWORD, + pub cbName: DWORD, + pub cbData: DWORD, + pub Data: [BYTE; 1usize], +} +pub type EMRCOLORMATCHTOTARGET = tagCOLORMATCHTOTARGET; +pub type PEMRCOLORMATCHTOTARGET = *mut tagCOLORMATCHTOTARGET; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCOLORCORRECTPALETTE { + pub emr: EMR, + pub ihPalette: DWORD, + pub nFirstEntry: DWORD, + pub nPalEntries: DWORD, + pub nReserved: DWORD, +} +pub type EMRCOLORCORRECTPALETTE = tagCOLORCORRECTPALETTE; +pub type PEMRCOLORCORRECTPALETTE = *mut tagCOLORCORRECTPALETTE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRALPHABLEND { + pub emr: EMR, + pub rclBounds: RECTL, + pub xDest: LONG, + pub yDest: LONG, + pub cxDest: LONG, + pub cyDest: LONG, + pub dwRop: DWORD, + pub xSrc: LONG, + pub ySrc: LONG, + pub xformSrc: XFORM, + pub crBkColorSrc: COLORREF, + pub iUsageSrc: DWORD, + pub offBmiSrc: DWORD, + pub cbBmiSrc: DWORD, + pub offBitsSrc: DWORD, + pub cbBitsSrc: DWORD, + pub cxSrc: LONG, + pub cySrc: LONG, +} +pub type EMRALPHABLEND = tagEMRALPHABLEND; +pub type PEMRALPHABLEND = *mut tagEMRALPHABLEND; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRGRADIENTFILL { + pub emr: EMR, + pub rclBounds: RECTL, + pub nVer: DWORD, + pub nTri: DWORD, + pub ulMode: ULONG, + pub Ver: [TRIVERTEX; 1usize], +} +pub type EMRGRADIENTFILL = tagEMRGRADIENTFILL; +pub type PEMRGRADIENTFILL = *mut tagEMRGRADIENTFILL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEMRTRANSPARENTBLT { + pub emr: EMR, + pub rclBounds: RECTL, + pub xDest: LONG, + pub yDest: LONG, + pub cxDest: LONG, + pub cyDest: LONG, + pub dwRop: DWORD, + pub xSrc: LONG, + pub ySrc: LONG, + pub xformSrc: XFORM, + pub crBkColorSrc: COLORREF, + pub iUsageSrc: DWORD, + pub offBmiSrc: DWORD, + pub cbBmiSrc: DWORD, + pub offBitsSrc: DWORD, + pub cbBitsSrc: DWORD, + pub cxSrc: LONG, + pub cySrc: LONG, +} +pub type EMRTRANSPARENTBLT = tagEMRTRANSPARENTBLT; +pub type PEMRTRANSPARENTBLT = *mut tagEMRTRANSPARENTBLT; +extern "C" { + pub fn wglCopyContext(arg1: HGLRC, arg2: HGLRC, arg3: UINT) -> BOOL; +} +extern "C" { + pub fn wglCreateContext(arg1: HDC) -> HGLRC; +} +extern "C" { + pub fn wglCreateLayerContext(arg1: HDC, arg2: ::std::os::raw::c_int) -> HGLRC; +} +extern "C" { + pub fn wglDeleteContext(arg1: HGLRC) -> BOOL; +} +extern "C" { + pub fn wglGetCurrentContext() -> HGLRC; +} +extern "C" { + pub fn wglGetCurrentDC() -> HDC; +} +extern "C" { + pub fn wglGetProcAddress(arg1: LPCSTR) -> PROC; +} +extern "C" { + pub fn wglMakeCurrent(arg1: HDC, arg2: HGLRC) -> BOOL; +} +extern "C" { + pub fn wglShareLists(arg1: HGLRC, arg2: HGLRC) -> BOOL; +} +extern "C" { + pub fn wglUseFontBitmapsA(arg1: HDC, arg2: DWORD, arg3: DWORD, arg4: DWORD) -> BOOL; +} +extern "C" { + pub fn wglUseFontBitmapsW(arg1: HDC, arg2: DWORD, arg3: DWORD, arg4: DWORD) -> BOOL; +} +extern "C" { + pub fn SwapBuffers(arg1: HDC) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _POINTFLOAT { + pub x: FLOAT, + pub y: FLOAT, +} +pub type POINTFLOAT = _POINTFLOAT; +pub type PPOINTFLOAT = *mut _POINTFLOAT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _GLYPHMETRICSFLOAT { + pub gmfBlackBoxX: FLOAT, + pub gmfBlackBoxY: FLOAT, + pub gmfptGlyphOrigin: POINTFLOAT, + pub gmfCellIncX: FLOAT, + pub gmfCellIncY: FLOAT, +} +pub type GLYPHMETRICSFLOAT = _GLYPHMETRICSFLOAT; +pub type PGLYPHMETRICSFLOAT = *mut _GLYPHMETRICSFLOAT; +pub type LPGLYPHMETRICSFLOAT = *mut _GLYPHMETRICSFLOAT; +extern "C" { + pub fn wglUseFontOutlinesA( + arg1: HDC, + arg2: DWORD, + arg3: DWORD, + arg4: DWORD, + arg5: FLOAT, + arg6: FLOAT, + arg7: ::std::os::raw::c_int, + arg8: LPGLYPHMETRICSFLOAT, + ) -> BOOL; +} +extern "C" { + pub fn wglUseFontOutlinesW( + arg1: HDC, + arg2: DWORD, + arg3: DWORD, + arg4: DWORD, + arg5: FLOAT, + arg6: FLOAT, + arg7: ::std::os::raw::c_int, + arg8: LPGLYPHMETRICSFLOAT, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagLAYERPLANEDESCRIPTOR { + pub nSize: WORD, + pub nVersion: WORD, + pub dwFlags: DWORD, + pub iPixelType: BYTE, + pub cColorBits: BYTE, + pub cRedBits: BYTE, + pub cRedShift: BYTE, + pub cGreenBits: BYTE, + pub cGreenShift: BYTE, + pub cBlueBits: BYTE, + pub cBlueShift: BYTE, + pub cAlphaBits: BYTE, + pub cAlphaShift: BYTE, + pub cAccumBits: BYTE, + pub cAccumRedBits: BYTE, + pub cAccumGreenBits: BYTE, + pub cAccumBlueBits: BYTE, + pub cAccumAlphaBits: BYTE, + pub cDepthBits: BYTE, + pub cStencilBits: BYTE, + pub cAuxBuffers: BYTE, + pub iLayerPlane: BYTE, + pub bReserved: BYTE, + pub crTransparent: COLORREF, +} +pub type LAYERPLANEDESCRIPTOR = tagLAYERPLANEDESCRIPTOR; +pub type PLAYERPLANEDESCRIPTOR = *mut tagLAYERPLANEDESCRIPTOR; +pub type LPLAYERPLANEDESCRIPTOR = *mut tagLAYERPLANEDESCRIPTOR; +extern "C" { + pub fn wglDescribeLayerPlane( + arg1: HDC, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_int, + arg4: UINT, + arg5: LPLAYERPLANEDESCRIPTOR, + ) -> BOOL; +} +extern "C" { + pub fn wglSetLayerPaletteEntries( + arg1: HDC, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_int, + arg4: ::std::os::raw::c_int, + arg5: *const COLORREF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wglGetLayerPaletteEntries( + arg1: HDC, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_int, + arg4: ::std::os::raw::c_int, + arg5: *mut COLORREF, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wglRealizeLayerPalette(arg1: HDC, arg2: ::std::os::raw::c_int, arg3: BOOL) -> BOOL; +} +extern "C" { + pub fn wglSwapLayerBuffers(arg1: HDC, arg2: UINT) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WGLSWAP { + pub hdc: HDC, + pub uiFlags: UINT, +} +pub type WGLSWAP = _WGLSWAP; +pub type PWGLSWAP = *mut _WGLSWAP; +pub type LPWGLSWAP = *mut _WGLSWAP; +extern "C" { + pub fn wglSwapMultipleBuffers(arg1: UINT, arg2: *const WGLSWAP) -> DWORD; +} +pub type HDWP = HANDLE; +pub type MENUTEMPLATEA = ::std::os::raw::c_void; +pub type MENUTEMPLATEW = ::std::os::raw::c_void; +pub type MENUTEMPLATE = MENUTEMPLATEA; +pub type LPMENUTEMPLATEA = PVOID; +pub type LPMENUTEMPLATEW = PVOID; +pub type LPMENUTEMPLATE = LPMENUTEMPLATEA; +pub type WNDPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> LRESULT, +>; +pub type DLGPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> INT_PTR, +>; +pub type TIMERPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: UINT_PTR, arg4: DWORD), +>; +pub type GRAYSTRINGPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: HDC, arg2: LPARAM, arg3: ::std::os::raw::c_int) -> BOOL, +>; +pub type WNDENUMPROC = + ::std::option::Option BOOL>; +pub type HOOKPROC = ::std::option::Option< + unsafe extern "C" fn(code: ::std::os::raw::c_int, wParam: WPARAM, lParam: LPARAM) -> LRESULT, +>; +pub type SENDASYNCPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: ULONG_PTR, arg4: LRESULT), +>; +pub type PROPENUMPROCA = + ::std::option::Option BOOL>; +pub type PROPENUMPROCW = + ::std::option::Option BOOL>; +pub type PROPENUMPROCEXA = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: LPSTR, arg3: HANDLE, arg4: ULONG_PTR) -> BOOL, +>; +pub type PROPENUMPROCEXW = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: LPWSTR, arg3: HANDLE, arg4: ULONG_PTR) -> BOOL, +>; +pub type EDITWORDBREAKPROCA = ::std::option::Option< + unsafe extern "C" fn( + lpch: LPSTR, + ichCurrent: ::std::os::raw::c_int, + cch: ::std::os::raw::c_int, + code: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type EDITWORDBREAKPROCW = ::std::option::Option< + unsafe extern "C" fn( + lpch: LPWSTR, + ichCurrent: ::std::os::raw::c_int, + cch: ::std::os::raw::c_int, + code: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, +>; +pub type DRAWSTATEPROC = ::std::option::Option< + unsafe extern "C" fn( + hdc: HDC, + lData: LPARAM, + wData: WPARAM, + cx: ::std::os::raw::c_int, + cy: ::std::os::raw::c_int, + ) -> BOOL, +>; +pub type PROPENUMPROC = PROPENUMPROCA; +pub type PROPENUMPROCEX = PROPENUMPROCEXA; +pub type EDITWORDBREAKPROC = EDITWORDBREAKPROCA; +pub type NAMEENUMPROCA = + ::std::option::Option BOOL>; +pub type NAMEENUMPROCW = + ::std::option::Option BOOL>; +pub type WINSTAENUMPROCA = NAMEENUMPROCA; +pub type DESKTOPENUMPROCA = NAMEENUMPROCA; +pub type WINSTAENUMPROCW = NAMEENUMPROCW; +pub type DESKTOPENUMPROCW = NAMEENUMPROCW; +pub type WINSTAENUMPROC = WINSTAENUMPROCA; +pub type DESKTOPENUMPROC = DESKTOPENUMPROCA; +extern "C" { + pub fn wvsprintfA(arg1: LPSTR, arg2: LPCSTR, arglist: va_list) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wvsprintfW(arg1: LPWSTR, arg2: LPCWSTR, arglist: va_list) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wsprintfA(arg1: LPSTR, arg2: LPCSTR, ...) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wsprintfW(arg1: LPWSTR, arg2: LPCWSTR, ...) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCBT_CREATEWNDA { + pub lpcs: *mut tagCREATESTRUCTA, + pub hwndInsertAfter: HWND, +} +pub type CBT_CREATEWNDA = tagCBT_CREATEWNDA; +pub type LPCBT_CREATEWNDA = *mut tagCBT_CREATEWNDA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCBT_CREATEWNDW { + pub lpcs: *mut tagCREATESTRUCTW, + pub hwndInsertAfter: HWND, +} +pub type CBT_CREATEWNDW = tagCBT_CREATEWNDW; +pub type LPCBT_CREATEWNDW = *mut tagCBT_CREATEWNDW; +pub type CBT_CREATEWND = CBT_CREATEWNDA; +pub type LPCBT_CREATEWND = LPCBT_CREATEWNDA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCBTACTIVATESTRUCT { + pub fMouse: BOOL, + pub hWndActive: HWND, +} +pub type CBTACTIVATESTRUCT = tagCBTACTIVATESTRUCT; +pub type LPCBTACTIVATESTRUCT = *mut tagCBTACTIVATESTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagWTSSESSION_NOTIFICATION { + pub cbSize: DWORD, + pub dwSessionId: DWORD, +} +pub type WTSSESSION_NOTIFICATION = tagWTSSESSION_NOTIFICATION; +pub type PWTSSESSION_NOTIFICATION = *mut tagWTSSESSION_NOTIFICATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SHELLHOOKINFO { + pub hwnd: HWND, + pub rc: RECT, +} +pub type LPSHELLHOOKINFO = *mut SHELLHOOKINFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEVENTMSG { + pub message: UINT, + pub paramL: UINT, + pub paramH: UINT, + pub time: DWORD, + pub hwnd: HWND, +} +pub type EVENTMSG = tagEVENTMSG; +pub type PEVENTMSGMSG = *mut tagEVENTMSG; +pub type NPEVENTMSGMSG = *mut tagEVENTMSG; +pub type LPEVENTMSGMSG = *mut tagEVENTMSG; +pub type PEVENTMSG = *mut tagEVENTMSG; +pub type NPEVENTMSG = *mut tagEVENTMSG; +pub type LPEVENTMSG = *mut tagEVENTMSG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCWPSTRUCT { + pub lParam: LPARAM, + pub wParam: WPARAM, + pub message: UINT, + pub hwnd: HWND, +} +pub type CWPSTRUCT = tagCWPSTRUCT; +pub type PCWPSTRUCT = *mut tagCWPSTRUCT; +pub type NPCWPSTRUCT = *mut tagCWPSTRUCT; +pub type LPCWPSTRUCT = *mut tagCWPSTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCWPRETSTRUCT { + pub lResult: LRESULT, + pub lParam: LPARAM, + pub wParam: WPARAM, + pub message: UINT, + pub hwnd: HWND, +} +pub type CWPRETSTRUCT = tagCWPRETSTRUCT; +pub type PCWPRETSTRUCT = *mut tagCWPRETSTRUCT; +pub type NPCWPRETSTRUCT = *mut tagCWPRETSTRUCT; +pub type LPCWPRETSTRUCT = *mut tagCWPRETSTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagKBDLLHOOKSTRUCT { + pub vkCode: DWORD, + pub scanCode: DWORD, + pub flags: DWORD, + pub time: DWORD, + pub dwExtraInfo: ULONG_PTR, +} +pub type KBDLLHOOKSTRUCT = tagKBDLLHOOKSTRUCT; +pub type LPKBDLLHOOKSTRUCT = *mut tagKBDLLHOOKSTRUCT; +pub type PKBDLLHOOKSTRUCT = *mut tagKBDLLHOOKSTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMSLLHOOKSTRUCT { + pub pt: POINT, + pub mouseData: DWORD, + pub flags: DWORD, + pub time: DWORD, + pub dwExtraInfo: ULONG_PTR, +} +pub type MSLLHOOKSTRUCT = tagMSLLHOOKSTRUCT; +pub type LPMSLLHOOKSTRUCT = *mut tagMSLLHOOKSTRUCT; +pub type PMSLLHOOKSTRUCT = *mut tagMSLLHOOKSTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagDEBUGHOOKINFO { + pub idThread: DWORD, + pub idThreadInstaller: DWORD, + pub lParam: LPARAM, + pub wParam: WPARAM, + pub code: ::std::os::raw::c_int, +} +pub type DEBUGHOOKINFO = tagDEBUGHOOKINFO; +pub type PDEBUGHOOKINFO = *mut tagDEBUGHOOKINFO; +pub type NPDEBUGHOOKINFO = *mut tagDEBUGHOOKINFO; +pub type LPDEBUGHOOKINFO = *mut tagDEBUGHOOKINFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMOUSEHOOKSTRUCT { + pub pt: POINT, + pub hwnd: HWND, + pub wHitTestCode: UINT, + pub dwExtraInfo: ULONG_PTR, +} +pub type MOUSEHOOKSTRUCT = tagMOUSEHOOKSTRUCT; +pub type LPMOUSEHOOKSTRUCT = *mut tagMOUSEHOOKSTRUCT; +pub type PMOUSEHOOKSTRUCT = *mut tagMOUSEHOOKSTRUCT; +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct tagMOUSEHOOKSTRUCTEX { + pub __bindgen_padding_0: [u32; 8usize], + pub mouseData: DWORD, +} +pub type MOUSEHOOKSTRUCTEX = tagMOUSEHOOKSTRUCTEX; +pub type LPMOUSEHOOKSTRUCTEX = *mut tagMOUSEHOOKSTRUCTEX; +pub type PMOUSEHOOKSTRUCTEX = *mut tagMOUSEHOOKSTRUCTEX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagHARDWAREHOOKSTRUCT { + pub hwnd: HWND, + pub message: UINT, + pub wParam: WPARAM, + pub lParam: LPARAM, +} +pub type HARDWAREHOOKSTRUCT = tagHARDWAREHOOKSTRUCT; +pub type LPHARDWAREHOOKSTRUCT = *mut tagHARDWAREHOOKSTRUCT; +pub type PHARDWAREHOOKSTRUCT = *mut tagHARDWAREHOOKSTRUCT; +extern "C" { + pub fn LoadKeyboardLayoutA(pwszKLID: LPCSTR, Flags: UINT) -> HKL; +} +extern "C" { + pub fn LoadKeyboardLayoutW(pwszKLID: LPCWSTR, Flags: UINT) -> HKL; +} +extern "C" { + pub fn ActivateKeyboardLayout(hkl: HKL, Flags: UINT) -> HKL; +} +extern "C" { + pub fn ToUnicodeEx( + wVirtKey: UINT, + wScanCode: UINT, + lpKeyState: *const BYTE, + pwszBuff: LPWSTR, + cchBuff: ::std::os::raw::c_int, + wFlags: UINT, + dwhkl: HKL, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn UnloadKeyboardLayout(hkl: HKL) -> BOOL; +} +extern "C" { + pub fn GetKeyboardLayoutNameA(pwszKLID: LPSTR) -> BOOL; +} +extern "C" { + pub fn GetKeyboardLayoutNameW(pwszKLID: LPWSTR) -> BOOL; +} +extern "C" { + pub fn GetKeyboardLayoutList( + nBuff: ::std::os::raw::c_int, + lpList: *mut HKL, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetKeyboardLayout(idThread: DWORD) -> HKL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMOUSEMOVEPOINT { + pub x: ::std::os::raw::c_int, + pub y: ::std::os::raw::c_int, + pub time: DWORD, + pub dwExtraInfo: ULONG_PTR, +} +pub type MOUSEMOVEPOINT = tagMOUSEMOVEPOINT; +pub type PMOUSEMOVEPOINT = *mut tagMOUSEMOVEPOINT; +pub type LPMOUSEMOVEPOINT = *mut tagMOUSEMOVEPOINT; +extern "C" { + pub fn GetMouseMovePointsEx( + cbSize: UINT, + lppt: LPMOUSEMOVEPOINT, + lpptBuf: LPMOUSEMOVEPOINT, + nBufPoints: ::std::os::raw::c_int, + resolution: DWORD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn CreateDesktopA( + lpszDesktop: LPCSTR, + lpszDevice: LPCSTR, + pDevmode: *mut DEVMODEA, + dwFlags: DWORD, + dwDesiredAccess: ACCESS_MASK, + lpsa: LPSECURITY_ATTRIBUTES, + ) -> HDESK; +} +extern "C" { + pub fn CreateDesktopW( + lpszDesktop: LPCWSTR, + lpszDevice: LPCWSTR, + pDevmode: *mut DEVMODEW, + dwFlags: DWORD, + dwDesiredAccess: ACCESS_MASK, + lpsa: LPSECURITY_ATTRIBUTES, + ) -> HDESK; +} +extern "C" { + pub fn CreateDesktopExA( + lpszDesktop: LPCSTR, + lpszDevice: LPCSTR, + pDevmode: *mut DEVMODEA, + dwFlags: DWORD, + dwDesiredAccess: ACCESS_MASK, + lpsa: LPSECURITY_ATTRIBUTES, + ulHeapSize: ULONG, + pvoid: PVOID, + ) -> HDESK; +} +extern "C" { + pub fn CreateDesktopExW( + lpszDesktop: LPCWSTR, + lpszDevice: LPCWSTR, + pDevmode: *mut DEVMODEW, + dwFlags: DWORD, + dwDesiredAccess: ACCESS_MASK, + lpsa: LPSECURITY_ATTRIBUTES, + ulHeapSize: ULONG, + pvoid: PVOID, + ) -> HDESK; +} +extern "C" { + pub fn OpenDesktopA( + lpszDesktop: LPCSTR, + dwFlags: DWORD, + fInherit: BOOL, + dwDesiredAccess: ACCESS_MASK, + ) -> HDESK; +} +extern "C" { + pub fn OpenDesktopW( + lpszDesktop: LPCWSTR, + dwFlags: DWORD, + fInherit: BOOL, + dwDesiredAccess: ACCESS_MASK, + ) -> HDESK; +} +extern "C" { + pub fn OpenInputDesktop(dwFlags: DWORD, fInherit: BOOL, dwDesiredAccess: ACCESS_MASK) -> HDESK; +} +extern "C" { + pub fn EnumDesktopsA(hwinsta: HWINSTA, lpEnumFunc: DESKTOPENUMPROCA, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn EnumDesktopsW(hwinsta: HWINSTA, lpEnumFunc: DESKTOPENUMPROCW, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn EnumDesktopWindows(hDesktop: HDESK, lpfn: WNDENUMPROC, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn SwitchDesktop(hDesktop: HDESK) -> BOOL; +} +extern "C" { + pub fn SetThreadDesktop(hDesktop: HDESK) -> BOOL; +} +extern "C" { + pub fn CloseDesktop(hDesktop: HDESK) -> BOOL; +} +extern "C" { + pub fn GetThreadDesktop(dwThreadId: DWORD) -> HDESK; +} +extern "C" { + pub fn CreateWindowStationA( + lpwinsta: LPCSTR, + dwFlags: DWORD, + dwDesiredAccess: ACCESS_MASK, + lpsa: LPSECURITY_ATTRIBUTES, + ) -> HWINSTA; +} +extern "C" { + pub fn CreateWindowStationW( + lpwinsta: LPCWSTR, + dwFlags: DWORD, + dwDesiredAccess: ACCESS_MASK, + lpsa: LPSECURITY_ATTRIBUTES, + ) -> HWINSTA; +} +extern "C" { + pub fn OpenWindowStationA( + lpszWinSta: LPCSTR, + fInherit: BOOL, + dwDesiredAccess: ACCESS_MASK, + ) -> HWINSTA; +} +extern "C" { + pub fn OpenWindowStationW( + lpszWinSta: LPCWSTR, + fInherit: BOOL, + dwDesiredAccess: ACCESS_MASK, + ) -> HWINSTA; +} +extern "C" { + pub fn EnumWindowStationsA(lpEnumFunc: WINSTAENUMPROCA, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn EnumWindowStationsW(lpEnumFunc: WINSTAENUMPROCW, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn CloseWindowStation(hWinSta: HWINSTA) -> BOOL; +} +extern "C" { + pub fn SetProcessWindowStation(hWinSta: HWINSTA) -> BOOL; +} +extern "C" { + pub fn GetProcessWindowStation() -> HWINSTA; +} +extern "C" { + pub fn SetUserObjectSecurity( + hObj: HANDLE, + pSIRequested: PSECURITY_INFORMATION, + pSID: PSECURITY_DESCRIPTOR, + ) -> BOOL; +} +extern "C" { + pub fn GetUserObjectSecurity( + hObj: HANDLE, + pSIRequested: PSECURITY_INFORMATION, + pSID: PSECURITY_DESCRIPTOR, + nLength: DWORD, + lpnLengthNeeded: LPDWORD, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagUSEROBJECTFLAGS { + pub fInherit: BOOL, + pub fReserved: BOOL, + pub dwFlags: DWORD, +} +pub type USEROBJECTFLAGS = tagUSEROBJECTFLAGS; +pub type PUSEROBJECTFLAGS = *mut tagUSEROBJECTFLAGS; +extern "C" { + pub fn GetUserObjectInformationA( + hObj: HANDLE, + nIndex: ::std::os::raw::c_int, + pvInfo: PVOID, + nLength: DWORD, + lpnLengthNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetUserObjectInformationW( + hObj: HANDLE, + nIndex: ::std::os::raw::c_int, + pvInfo: PVOID, + nLength: DWORD, + lpnLengthNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetUserObjectInformationA( + hObj: HANDLE, + nIndex: ::std::os::raw::c_int, + pvInfo: PVOID, + nLength: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetUserObjectInformationW( + hObj: HANDLE, + nIndex: ::std::os::raw::c_int, + pvInfo: PVOID, + nLength: DWORD, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagWNDCLASSEXA { + pub cbSize: UINT, + pub style: UINT, + pub lpfnWndProc: WNDPROC, + pub cbClsExtra: ::std::os::raw::c_int, + pub cbWndExtra: ::std::os::raw::c_int, + pub hInstance: HINSTANCE, + pub hIcon: HICON, + pub hCursor: HCURSOR, + pub hbrBackground: HBRUSH, + pub lpszMenuName: LPCSTR, + pub lpszClassName: LPCSTR, + pub hIconSm: HICON, +} +pub type WNDCLASSEXA = tagWNDCLASSEXA; +pub type PWNDCLASSEXA = *mut tagWNDCLASSEXA; +pub type NPWNDCLASSEXA = *mut tagWNDCLASSEXA; +pub type LPWNDCLASSEXA = *mut tagWNDCLASSEXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagWNDCLASSEXW { + pub cbSize: UINT, + pub style: UINT, + pub lpfnWndProc: WNDPROC, + pub cbClsExtra: ::std::os::raw::c_int, + pub cbWndExtra: ::std::os::raw::c_int, + pub hInstance: HINSTANCE, + pub hIcon: HICON, + pub hCursor: HCURSOR, + pub hbrBackground: HBRUSH, + pub lpszMenuName: LPCWSTR, + pub lpszClassName: LPCWSTR, + pub hIconSm: HICON, +} +pub type WNDCLASSEXW = tagWNDCLASSEXW; +pub type PWNDCLASSEXW = *mut tagWNDCLASSEXW; +pub type NPWNDCLASSEXW = *mut tagWNDCLASSEXW; +pub type LPWNDCLASSEXW = *mut tagWNDCLASSEXW; +pub type WNDCLASSEX = WNDCLASSEXA; +pub type PWNDCLASSEX = PWNDCLASSEXA; +pub type NPWNDCLASSEX = NPWNDCLASSEXA; +pub type LPWNDCLASSEX = LPWNDCLASSEXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagWNDCLASSA { + pub style: UINT, + pub lpfnWndProc: WNDPROC, + pub cbClsExtra: ::std::os::raw::c_int, + pub cbWndExtra: ::std::os::raw::c_int, + pub hInstance: HINSTANCE, + pub hIcon: HICON, + pub hCursor: HCURSOR, + pub hbrBackground: HBRUSH, + pub lpszMenuName: LPCSTR, + pub lpszClassName: LPCSTR, +} +pub type WNDCLASSA = tagWNDCLASSA; +pub type PWNDCLASSA = *mut tagWNDCLASSA; +pub type NPWNDCLASSA = *mut tagWNDCLASSA; +pub type LPWNDCLASSA = *mut tagWNDCLASSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagWNDCLASSW { + pub style: UINT, + pub lpfnWndProc: WNDPROC, + pub cbClsExtra: ::std::os::raw::c_int, + pub cbWndExtra: ::std::os::raw::c_int, + pub hInstance: HINSTANCE, + pub hIcon: HICON, + pub hCursor: HCURSOR, + pub hbrBackground: HBRUSH, + pub lpszMenuName: LPCWSTR, + pub lpszClassName: LPCWSTR, +} +pub type WNDCLASSW = tagWNDCLASSW; +pub type PWNDCLASSW = *mut tagWNDCLASSW; +pub type NPWNDCLASSW = *mut tagWNDCLASSW; +pub type LPWNDCLASSW = *mut tagWNDCLASSW; +pub type WNDCLASS = WNDCLASSA; +pub type PWNDCLASS = PWNDCLASSA; +pub type NPWNDCLASS = NPWNDCLASSA; +pub type LPWNDCLASS = LPWNDCLASSA; +extern "C" { + pub fn IsHungAppWindow(hwnd: HWND) -> BOOL; +} +extern "C" { + pub fn DisableProcessWindowsGhosting(); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMSG { + pub hwnd: HWND, + pub message: UINT, + pub wParam: WPARAM, + pub lParam: LPARAM, + pub time: DWORD, + pub pt: POINT, +} +pub type MSG = tagMSG; +pub type PMSG = *mut tagMSG; +pub type NPMSG = *mut tagMSG; +pub type LPMSG = *mut tagMSG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMINMAXINFO { + pub ptReserved: POINT, + pub ptMaxSize: POINT, + pub ptMaxPosition: POINT, + pub ptMinTrackSize: POINT, + pub ptMaxTrackSize: POINT, +} +pub type MINMAXINFO = tagMINMAXINFO; +pub type PMINMAXINFO = *mut tagMINMAXINFO; +pub type LPMINMAXINFO = *mut tagMINMAXINFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCOPYDATASTRUCT { + pub dwData: ULONG_PTR, + pub cbData: DWORD, + pub lpData: PVOID, +} +pub type COPYDATASTRUCT = tagCOPYDATASTRUCT; +pub type PCOPYDATASTRUCT = *mut tagCOPYDATASTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMDINEXTMENU { + pub hmenuIn: HMENU, + pub hmenuNext: HMENU, + pub hwndNext: HWND, +} +pub type MDINEXTMENU = tagMDINEXTMENU; +pub type PMDINEXTMENU = *mut tagMDINEXTMENU; +pub type LPMDINEXTMENU = *mut tagMDINEXTMENU; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct POWERBROADCAST_SETTING { + pub PowerSetting: GUID, + pub DataLength: DWORD, + pub Data: [UCHAR; 1usize], +} +pub type PPOWERBROADCAST_SETTING = *mut POWERBROADCAST_SETTING; +extern "C" { + pub fn RegisterWindowMessageA(lpString: LPCSTR) -> UINT; +} +extern "C" { + pub fn RegisterWindowMessageW(lpString: LPCWSTR) -> UINT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagWINDOWPOS { + pub hwnd: HWND, + pub hwndInsertAfter: HWND, + pub x: ::std::os::raw::c_int, + pub y: ::std::os::raw::c_int, + pub cx: ::std::os::raw::c_int, + pub cy: ::std::os::raw::c_int, + pub flags: UINT, +} +pub type WINDOWPOS = tagWINDOWPOS; +pub type LPWINDOWPOS = *mut tagWINDOWPOS; +pub type PWINDOWPOS = *mut tagWINDOWPOS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagNCCALCSIZE_PARAMS { + pub rgrc: [RECT; 3usize], + pub lppos: PWINDOWPOS, +} +pub type NCCALCSIZE_PARAMS = tagNCCALCSIZE_PARAMS; +pub type LPNCCALCSIZE_PARAMS = *mut tagNCCALCSIZE_PARAMS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagTRACKMOUSEEVENT { + pub cbSize: DWORD, + pub dwFlags: DWORD, + pub hwndTrack: HWND, + pub dwHoverTime: DWORD, +} +pub type TRACKMOUSEEVENT = tagTRACKMOUSEEVENT; +pub type LPTRACKMOUSEEVENT = *mut tagTRACKMOUSEEVENT; +extern "C" { + pub fn TrackMouseEvent(lpEventTrack: LPTRACKMOUSEEVENT) -> BOOL; +} +extern "C" { + pub fn DrawEdge(hdc: HDC, qrc: LPRECT, edge: UINT, grfFlags: UINT) -> BOOL; +} +extern "C" { + pub fn DrawFrameControl(arg1: HDC, arg2: LPRECT, arg3: UINT, arg4: UINT) -> BOOL; +} +extern "C" { + pub fn DrawCaption(hwnd: HWND, hdc: HDC, lprect: *const RECT, flags: UINT) -> BOOL; +} +extern "C" { + pub fn DrawAnimatedRects( + hwnd: HWND, + idAni: ::std::os::raw::c_int, + lprcFrom: *const RECT, + lprcTo: *const RECT, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagACCEL { + pub fVirt: BYTE, + pub key: WORD, + pub cmd: WORD, +} +pub type ACCEL = tagACCEL; +pub type LPACCEL = *mut tagACCEL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPAINTSTRUCT { + pub hdc: HDC, + pub fErase: BOOL, + pub rcPaint: RECT, + pub fRestore: BOOL, + pub fIncUpdate: BOOL, + pub rgbReserved: [BYTE; 32usize], +} +pub type PAINTSTRUCT = tagPAINTSTRUCT; +pub type PPAINTSTRUCT = *mut tagPAINTSTRUCT; +pub type NPPAINTSTRUCT = *mut tagPAINTSTRUCT; +pub type LPPAINTSTRUCT = *mut tagPAINTSTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCREATESTRUCTA { + pub lpCreateParams: LPVOID, + pub hInstance: HINSTANCE, + pub hMenu: HMENU, + pub hwndParent: HWND, + pub cy: ::std::os::raw::c_int, + pub cx: ::std::os::raw::c_int, + pub y: ::std::os::raw::c_int, + pub x: ::std::os::raw::c_int, + pub style: LONG, + pub lpszName: LPCSTR, + pub lpszClass: LPCSTR, + pub dwExStyle: DWORD, +} +pub type CREATESTRUCTA = tagCREATESTRUCTA; +pub type LPCREATESTRUCTA = *mut tagCREATESTRUCTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCREATESTRUCTW { + pub lpCreateParams: LPVOID, + pub hInstance: HINSTANCE, + pub hMenu: HMENU, + pub hwndParent: HWND, + pub cy: ::std::os::raw::c_int, + pub cx: ::std::os::raw::c_int, + pub y: ::std::os::raw::c_int, + pub x: ::std::os::raw::c_int, + pub style: LONG, + pub lpszName: LPCWSTR, + pub lpszClass: LPCWSTR, + pub dwExStyle: DWORD, +} +pub type CREATESTRUCTW = tagCREATESTRUCTW; +pub type LPCREATESTRUCTW = *mut tagCREATESTRUCTW; +pub type CREATESTRUCT = CREATESTRUCTA; +pub type LPCREATESTRUCT = LPCREATESTRUCTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagWINDOWPLACEMENT { + pub length: UINT, + pub flags: UINT, + pub showCmd: UINT, + pub ptMinPosition: POINT, + pub ptMaxPosition: POINT, + pub rcNormalPosition: RECT, +} +pub type WINDOWPLACEMENT = tagWINDOWPLACEMENT; +pub type PWINDOWPLACEMENT = *mut WINDOWPLACEMENT; +pub type LPWINDOWPLACEMENT = *mut WINDOWPLACEMENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagNMHDR { + pub hwndFrom: HWND, + pub idFrom: UINT_PTR, + pub code: UINT, +} +pub type NMHDR = tagNMHDR; +pub type LPNMHDR = *mut NMHDR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSTYLESTRUCT { + pub styleOld: DWORD, + pub styleNew: DWORD, +} +pub type STYLESTRUCT = tagSTYLESTRUCT; +pub type LPSTYLESTRUCT = *mut tagSTYLESTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMEASUREITEMSTRUCT { + pub CtlType: UINT, + pub CtlID: UINT, + pub itemID: UINT, + pub itemWidth: UINT, + pub itemHeight: UINT, + pub itemData: ULONG_PTR, +} +pub type MEASUREITEMSTRUCT = tagMEASUREITEMSTRUCT; +pub type PMEASUREITEMSTRUCT = *mut tagMEASUREITEMSTRUCT; +pub type LPMEASUREITEMSTRUCT = *mut tagMEASUREITEMSTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagDRAWITEMSTRUCT { + pub CtlType: UINT, + pub CtlID: UINT, + pub itemID: UINT, + pub itemAction: UINT, + pub itemState: UINT, + pub hwndItem: HWND, + pub hDC: HDC, + pub rcItem: RECT, + pub itemData: ULONG_PTR, +} +pub type DRAWITEMSTRUCT = tagDRAWITEMSTRUCT; +pub type PDRAWITEMSTRUCT = *mut tagDRAWITEMSTRUCT; +pub type LPDRAWITEMSTRUCT = *mut tagDRAWITEMSTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagDELETEITEMSTRUCT { + pub CtlType: UINT, + pub CtlID: UINT, + pub itemID: UINT, + pub hwndItem: HWND, + pub itemData: ULONG_PTR, +} +pub type DELETEITEMSTRUCT = tagDELETEITEMSTRUCT; +pub type PDELETEITEMSTRUCT = *mut tagDELETEITEMSTRUCT; +pub type LPDELETEITEMSTRUCT = *mut tagDELETEITEMSTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCOMPAREITEMSTRUCT { + pub CtlType: UINT, + pub CtlID: UINT, + pub hwndItem: HWND, + pub itemID1: UINT, + pub itemData1: ULONG_PTR, + pub itemID2: UINT, + pub itemData2: ULONG_PTR, + pub dwLocaleId: DWORD, +} +pub type COMPAREITEMSTRUCT = tagCOMPAREITEMSTRUCT; +pub type PCOMPAREITEMSTRUCT = *mut tagCOMPAREITEMSTRUCT; +pub type LPCOMPAREITEMSTRUCT = *mut tagCOMPAREITEMSTRUCT; +extern "C" { + pub fn GetMessageA(lpMsg: LPMSG, hWnd: HWND, wMsgFilterMin: UINT, wMsgFilterMax: UINT) -> BOOL; +} +extern "C" { + pub fn GetMessageW(lpMsg: LPMSG, hWnd: HWND, wMsgFilterMin: UINT, wMsgFilterMax: UINT) -> BOOL; +} +extern "C" { + pub fn TranslateMessage(lpMsg: *const MSG) -> BOOL; +} +extern "C" { + pub fn DispatchMessageA(lpMsg: *const MSG) -> LRESULT; +} +extern "C" { + pub fn DispatchMessageW(lpMsg: *const MSG) -> LRESULT; +} +extern "C" { + pub fn SetMessageQueue(cMessagesMax: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn PeekMessageA( + lpMsg: LPMSG, + hWnd: HWND, + wMsgFilterMin: UINT, + wMsgFilterMax: UINT, + wRemoveMsg: UINT, + ) -> BOOL; +} +extern "C" { + pub fn PeekMessageW( + lpMsg: LPMSG, + hWnd: HWND, + wMsgFilterMin: UINT, + wMsgFilterMax: UINT, + wRemoveMsg: UINT, + ) -> BOOL; +} +extern "C" { + pub fn RegisterHotKey( + hWnd: HWND, + id: ::std::os::raw::c_int, + fsModifiers: UINT, + vk: UINT, + ) -> BOOL; +} +extern "C" { + pub fn UnregisterHotKey(hWnd: HWND, id: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn ExitWindowsEx(uFlags: UINT, dwReason: DWORD) -> BOOL; +} +extern "C" { + pub fn SwapMouseButton(fSwap: BOOL) -> BOOL; +} +extern "C" { + pub fn GetMessagePos() -> DWORD; +} +extern "C" { + pub fn GetMessageTime() -> LONG; +} +extern "C" { + pub fn GetMessageExtraInfo() -> LPARAM; +} +extern "C" { + pub fn GetUnpredictedMessagePos() -> DWORD; +} +extern "C" { + pub fn IsWow64Message() -> BOOL; +} +extern "C" { + pub fn SetMessageExtraInfo(lParam: LPARAM) -> LPARAM; +} +extern "C" { + pub fn SendMessageA(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; +} +extern "C" { + pub fn SendMessageW(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; +} +extern "C" { + pub fn SendMessageTimeoutA( + hWnd: HWND, + Msg: UINT, + wParam: WPARAM, + lParam: LPARAM, + fuFlags: UINT, + uTimeout: UINT, + lpdwResult: PDWORD_PTR, + ) -> LRESULT; +} +extern "C" { + pub fn SendMessageTimeoutW( + hWnd: HWND, + Msg: UINT, + wParam: WPARAM, + lParam: LPARAM, + fuFlags: UINT, + uTimeout: UINT, + lpdwResult: PDWORD_PTR, + ) -> LRESULT; +} +extern "C" { + pub fn SendNotifyMessageA(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn SendNotifyMessageW(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn SendMessageCallbackA( + hWnd: HWND, + Msg: UINT, + wParam: WPARAM, + lParam: LPARAM, + lpResultCallBack: SENDASYNCPROC, + dwData: ULONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn SendMessageCallbackW( + hWnd: HWND, + Msg: UINT, + wParam: WPARAM, + lParam: LPARAM, + lpResultCallBack: SENDASYNCPROC, + dwData: ULONG_PTR, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BSMINFO { + pub cbSize: UINT, + pub hdesk: HDESK, + pub hwnd: HWND, + pub luid: LUID, +} +pub type PBSMINFO = *mut BSMINFO; +extern "C" { + pub fn BroadcastSystemMessageExA( + flags: DWORD, + lpInfo: LPDWORD, + Msg: UINT, + wParam: WPARAM, + lParam: LPARAM, + pbsmInfo: PBSMINFO, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn BroadcastSystemMessageExW( + flags: DWORD, + lpInfo: LPDWORD, + Msg: UINT, + wParam: WPARAM, + lParam: LPARAM, + pbsmInfo: PBSMINFO, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn BroadcastSystemMessageA( + flags: DWORD, + lpInfo: LPDWORD, + Msg: UINT, + wParam: WPARAM, + lParam: LPARAM, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn BroadcastSystemMessageW( + flags: DWORD, + lpInfo: LPDWORD, + Msg: UINT, + wParam: WPARAM, + lParam: LPARAM, + ) -> ::std::os::raw::c_long; +} +pub type HDEVNOTIFY = PVOID; +pub type PHDEVNOTIFY = *mut HDEVNOTIFY; +extern "C" { + pub fn RegisterDeviceNotificationA( + hRecipient: HANDLE, + NotificationFilter: LPVOID, + Flags: DWORD, + ) -> HDEVNOTIFY; +} +extern "C" { + pub fn RegisterDeviceNotificationW( + hRecipient: HANDLE, + NotificationFilter: LPVOID, + Flags: DWORD, + ) -> HDEVNOTIFY; +} +extern "C" { + pub fn UnregisterDeviceNotification(Handle: HDEVNOTIFY) -> BOOL; +} +pub type HPOWERNOTIFY = PVOID; +pub type PHPOWERNOTIFY = *mut HPOWERNOTIFY; +extern "C" { + pub fn RegisterPowerSettingNotification( + hRecipient: HANDLE, + PowerSettingGuid: LPCGUID, + Flags: DWORD, + ) -> HPOWERNOTIFY; +} +extern "C" { + pub fn UnregisterPowerSettingNotification(Handle: HPOWERNOTIFY) -> BOOL; +} +extern "C" { + pub fn RegisterSuspendResumeNotification(hRecipient: HANDLE, Flags: DWORD) -> HPOWERNOTIFY; +} +extern "C" { + pub fn UnregisterSuspendResumeNotification(Handle: HPOWERNOTIFY) -> BOOL; +} +extern "C" { + pub fn PostMessageA(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn PostMessageW(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn PostThreadMessageA(idThread: DWORD, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn PostThreadMessageW(idThread: DWORD, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn AttachThreadInput(idAttach: DWORD, idAttachTo: DWORD, fAttach: BOOL) -> BOOL; +} +extern "C" { + pub fn ReplyMessage(lResult: LRESULT) -> BOOL; +} +extern "C" { + pub fn WaitMessage() -> BOOL; +} +extern "C" { + pub fn WaitForInputIdle(hProcess: HANDLE, dwMilliseconds: DWORD) -> DWORD; +} +extern "C" { + pub fn DefWindowProcA(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; +} +extern "C" { + pub fn DefWindowProcW(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; +} +extern "C" { + pub fn PostQuitMessage(nExitCode: ::std::os::raw::c_int); +} +extern "C" { + pub fn CallWindowProcA( + lpPrevWndFunc: WNDPROC, + hWnd: HWND, + Msg: UINT, + wParam: WPARAM, + lParam: LPARAM, + ) -> LRESULT; +} +extern "C" { + pub fn CallWindowProcW( + lpPrevWndFunc: WNDPROC, + hWnd: HWND, + Msg: UINT, + wParam: WPARAM, + lParam: LPARAM, + ) -> LRESULT; +} +extern "C" { + pub fn InSendMessage() -> BOOL; +} +extern "C" { + pub fn InSendMessageEx(lpReserved: LPVOID) -> DWORD; +} +extern "C" { + pub fn GetDoubleClickTime() -> UINT; +} +extern "C" { + pub fn SetDoubleClickTime(arg1: UINT) -> BOOL; +} +extern "C" { + pub fn RegisterClassA(lpWndClass: *const WNDCLASSA) -> ATOM; +} +extern "C" { + pub fn RegisterClassW(lpWndClass: *const WNDCLASSW) -> ATOM; +} +extern "C" { + pub fn UnregisterClassA(lpClassName: LPCSTR, hInstance: HINSTANCE) -> BOOL; +} +extern "C" { + pub fn UnregisterClassW(lpClassName: LPCWSTR, hInstance: HINSTANCE) -> BOOL; +} +extern "C" { + pub fn GetClassInfoA( + hInstance: HINSTANCE, + lpClassName: LPCSTR, + lpWndClass: LPWNDCLASSA, + ) -> BOOL; +} +extern "C" { + pub fn GetClassInfoW( + hInstance: HINSTANCE, + lpClassName: LPCWSTR, + lpWndClass: LPWNDCLASSW, + ) -> BOOL; +} +extern "C" { + pub fn RegisterClassExA(arg1: *const WNDCLASSEXA) -> ATOM; +} +extern "C" { + pub fn RegisterClassExW(arg1: *const WNDCLASSEXW) -> ATOM; +} +extern "C" { + pub fn GetClassInfoExA(hInstance: HINSTANCE, lpszClass: LPCSTR, lpwcx: LPWNDCLASSEXA) -> BOOL; +} +extern "C" { + pub fn GetClassInfoExW(hInstance: HINSTANCE, lpszClass: LPCWSTR, lpwcx: LPWNDCLASSEXW) -> BOOL; +} +pub type PREGISTERCLASSNAMEW = + ::std::option::Option BOOLEAN>; +extern "C" { + pub fn CreateWindowExA( + dwExStyle: DWORD, + lpClassName: LPCSTR, + lpWindowName: LPCSTR, + dwStyle: DWORD, + X: ::std::os::raw::c_int, + Y: ::std::os::raw::c_int, + nWidth: ::std::os::raw::c_int, + nHeight: ::std::os::raw::c_int, + hWndParent: HWND, + hMenu: HMENU, + hInstance: HINSTANCE, + lpParam: LPVOID, + ) -> HWND; +} +extern "C" { + pub fn CreateWindowExW( + dwExStyle: DWORD, + lpClassName: LPCWSTR, + lpWindowName: LPCWSTR, + dwStyle: DWORD, + X: ::std::os::raw::c_int, + Y: ::std::os::raw::c_int, + nWidth: ::std::os::raw::c_int, + nHeight: ::std::os::raw::c_int, + hWndParent: HWND, + hMenu: HMENU, + hInstance: HINSTANCE, + lpParam: LPVOID, + ) -> HWND; +} +extern "C" { + pub fn IsWindow(hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn IsMenu(hMenu: HMENU) -> BOOL; +} +extern "C" { + pub fn IsChild(hWndParent: HWND, hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn DestroyWindow(hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn ShowWindow(hWnd: HWND, nCmdShow: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn AnimateWindow(hWnd: HWND, dwTime: DWORD, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn UpdateLayeredWindow( + hWnd: HWND, + hdcDst: HDC, + pptDst: *mut POINT, + psize: *mut SIZE, + hdcSrc: HDC, + pptSrc: *mut POINT, + crKey: COLORREF, + pblend: *mut BLENDFUNCTION, + dwFlags: DWORD, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagUPDATELAYEREDWINDOWINFO { + pub cbSize: DWORD, + pub hdcDst: HDC, + pub pptDst: *const POINT, + pub psize: *const SIZE, + pub hdcSrc: HDC, + pub pptSrc: *const POINT, + pub crKey: COLORREF, + pub pblend: *const BLENDFUNCTION, + pub dwFlags: DWORD, + pub prcDirty: *const RECT, +} +pub type UPDATELAYEREDWINDOWINFO = tagUPDATELAYEREDWINDOWINFO; +pub type PUPDATELAYEREDWINDOWINFO = *mut tagUPDATELAYEREDWINDOWINFO; +extern "C" { + pub fn UpdateLayeredWindowIndirect( + hWnd: HWND, + pULWInfo: *const UPDATELAYEREDWINDOWINFO, + ) -> BOOL; +} +extern "C" { + pub fn GetLayeredWindowAttributes( + hwnd: HWND, + pcrKey: *mut COLORREF, + pbAlpha: *mut BYTE, + pdwFlags: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn PrintWindow(hwnd: HWND, hdcBlt: HDC, nFlags: UINT) -> BOOL; +} +extern "C" { + pub fn SetLayeredWindowAttributes( + hwnd: HWND, + crKey: COLORREF, + bAlpha: BYTE, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn ShowWindowAsync(hWnd: HWND, nCmdShow: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn FlashWindow(hWnd: HWND, bInvert: BOOL) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FLASHWINFO { + pub cbSize: UINT, + pub hwnd: HWND, + pub dwFlags: DWORD, + pub uCount: UINT, + pub dwTimeout: DWORD, +} +pub type PFLASHWINFO = *mut FLASHWINFO; +extern "C" { + pub fn FlashWindowEx(pfwi: PFLASHWINFO) -> BOOL; +} +extern "C" { + pub fn ShowOwnedPopups(hWnd: HWND, fShow: BOOL) -> BOOL; +} +extern "C" { + pub fn OpenIcon(hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn CloseWindow(hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn MoveWindow( + hWnd: HWND, + X: ::std::os::raw::c_int, + Y: ::std::os::raw::c_int, + nWidth: ::std::os::raw::c_int, + nHeight: ::std::os::raw::c_int, + bRepaint: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn SetWindowPos( + hWnd: HWND, + hWndInsertAfter: HWND, + X: ::std::os::raw::c_int, + Y: ::std::os::raw::c_int, + cx: ::std::os::raw::c_int, + cy: ::std::os::raw::c_int, + uFlags: UINT, + ) -> BOOL; +} +extern "C" { + pub fn GetWindowPlacement(hWnd: HWND, lpwndpl: *mut WINDOWPLACEMENT) -> BOOL; +} +extern "C" { + pub fn SetWindowPlacement(hWnd: HWND, lpwndpl: *const WINDOWPLACEMENT) -> BOOL; +} +extern "C" { + pub fn GetWindowDisplayAffinity(hWnd: HWND, pdwAffinity: *mut DWORD) -> BOOL; +} +extern "C" { + pub fn SetWindowDisplayAffinity(hWnd: HWND, dwAffinity: DWORD) -> BOOL; +} +extern "C" { + pub fn BeginDeferWindowPos(nNumWindows: ::std::os::raw::c_int) -> HDWP; +} +extern "C" { + pub fn DeferWindowPos( + hWinPosInfo: HDWP, + hWnd: HWND, + hWndInsertAfter: HWND, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + cx: ::std::os::raw::c_int, + cy: ::std::os::raw::c_int, + uFlags: UINT, + ) -> HDWP; +} +extern "C" { + pub fn EndDeferWindowPos(hWinPosInfo: HDWP) -> BOOL; +} +extern "C" { + pub fn IsWindowVisible(hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn IsIconic(hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn AnyPopup() -> BOOL; +} +extern "C" { + pub fn BringWindowToTop(hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn IsZoomed(hWnd: HWND) -> BOOL; +} +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct DLGTEMPLATE { + pub style: DWORD, + pub dwExtendedStyle: DWORD, + pub cdit: WORD, + pub x: ::std::os::raw::c_short, + pub y: ::std::os::raw::c_short, + pub cx: ::std::os::raw::c_short, + pub cy: ::std::os::raw::c_short, +} +pub type LPDLGTEMPLATEA = *mut DLGTEMPLATE; +pub type LPDLGTEMPLATEW = *mut DLGTEMPLATE; +pub type LPDLGTEMPLATE = LPDLGTEMPLATEA; +pub type LPCDLGTEMPLATEA = *const DLGTEMPLATE; +pub type LPCDLGTEMPLATEW = *const DLGTEMPLATE; +pub type LPCDLGTEMPLATE = LPCDLGTEMPLATEA; +#[repr(C, packed(2))] +#[derive(Debug, Copy, Clone)] +pub struct DLGITEMTEMPLATE { + pub style: DWORD, + pub dwExtendedStyle: DWORD, + pub x: ::std::os::raw::c_short, + pub y: ::std::os::raw::c_short, + pub cx: ::std::os::raw::c_short, + pub cy: ::std::os::raw::c_short, + pub id: WORD, +} +pub type PDLGITEMTEMPLATEA = *mut DLGITEMTEMPLATE; +pub type PDLGITEMTEMPLATEW = *mut DLGITEMTEMPLATE; +pub type PDLGITEMTEMPLATE = PDLGITEMTEMPLATEA; +pub type LPDLGITEMTEMPLATEA = *mut DLGITEMTEMPLATE; +pub type LPDLGITEMTEMPLATEW = *mut DLGITEMTEMPLATE; +pub type LPDLGITEMTEMPLATE = LPDLGITEMTEMPLATEA; +extern "C" { + pub fn CreateDialogParamA( + hInstance: HINSTANCE, + lpTemplateName: LPCSTR, + hWndParent: HWND, + lpDialogFunc: DLGPROC, + dwInitParam: LPARAM, + ) -> HWND; +} +extern "C" { + pub fn CreateDialogParamW( + hInstance: HINSTANCE, + lpTemplateName: LPCWSTR, + hWndParent: HWND, + lpDialogFunc: DLGPROC, + dwInitParam: LPARAM, + ) -> HWND; +} +extern "C" { + pub fn CreateDialogIndirectParamA( + hInstance: HINSTANCE, + lpTemplate: LPCDLGTEMPLATEA, + hWndParent: HWND, + lpDialogFunc: DLGPROC, + dwInitParam: LPARAM, + ) -> HWND; +} +extern "C" { + pub fn CreateDialogIndirectParamW( + hInstance: HINSTANCE, + lpTemplate: LPCDLGTEMPLATEW, + hWndParent: HWND, + lpDialogFunc: DLGPROC, + dwInitParam: LPARAM, + ) -> HWND; +} +extern "C" { + pub fn DialogBoxParamA( + hInstance: HINSTANCE, + lpTemplateName: LPCSTR, + hWndParent: HWND, + lpDialogFunc: DLGPROC, + dwInitParam: LPARAM, + ) -> INT_PTR; +} +extern "C" { + pub fn DialogBoxParamW( + hInstance: HINSTANCE, + lpTemplateName: LPCWSTR, + hWndParent: HWND, + lpDialogFunc: DLGPROC, + dwInitParam: LPARAM, + ) -> INT_PTR; +} +extern "C" { + pub fn DialogBoxIndirectParamA( + hInstance: HINSTANCE, + hDialogTemplate: LPCDLGTEMPLATEA, + hWndParent: HWND, + lpDialogFunc: DLGPROC, + dwInitParam: LPARAM, + ) -> INT_PTR; +} +extern "C" { + pub fn DialogBoxIndirectParamW( + hInstance: HINSTANCE, + hDialogTemplate: LPCDLGTEMPLATEW, + hWndParent: HWND, + lpDialogFunc: DLGPROC, + dwInitParam: LPARAM, + ) -> INT_PTR; +} +extern "C" { + pub fn EndDialog(hDlg: HWND, nResult: INT_PTR) -> BOOL; +} +extern "C" { + pub fn GetDlgItem(hDlg: HWND, nIDDlgItem: ::std::os::raw::c_int) -> HWND; +} +extern "C" { + pub fn SetDlgItemInt( + hDlg: HWND, + nIDDlgItem: ::std::os::raw::c_int, + uValue: UINT, + bSigned: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn GetDlgItemInt( + hDlg: HWND, + nIDDlgItem: ::std::os::raw::c_int, + lpTranslated: *mut BOOL, + bSigned: BOOL, + ) -> UINT; +} +extern "C" { + pub fn SetDlgItemTextA(hDlg: HWND, nIDDlgItem: ::std::os::raw::c_int, lpString: LPCSTR) + -> BOOL; +} +extern "C" { + pub fn SetDlgItemTextW( + hDlg: HWND, + nIDDlgItem: ::std::os::raw::c_int, + lpString: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn GetDlgItemTextA( + hDlg: HWND, + nIDDlgItem: ::std::os::raw::c_int, + lpString: LPSTR, + cchMax: ::std::os::raw::c_int, + ) -> UINT; +} +extern "C" { + pub fn GetDlgItemTextW( + hDlg: HWND, + nIDDlgItem: ::std::os::raw::c_int, + lpString: LPWSTR, + cchMax: ::std::os::raw::c_int, + ) -> UINT; +} +extern "C" { + pub fn CheckDlgButton(hDlg: HWND, nIDButton: ::std::os::raw::c_int, uCheck: UINT) -> BOOL; +} +extern "C" { + pub fn CheckRadioButton( + hDlg: HWND, + nIDFirstButton: ::std::os::raw::c_int, + nIDLastButton: ::std::os::raw::c_int, + nIDCheckButton: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn IsDlgButtonChecked(hDlg: HWND, nIDButton: ::std::os::raw::c_int) -> UINT; +} +extern "C" { + pub fn SendDlgItemMessageA( + hDlg: HWND, + nIDDlgItem: ::std::os::raw::c_int, + Msg: UINT, + wParam: WPARAM, + lParam: LPARAM, + ) -> LRESULT; +} +extern "C" { + pub fn SendDlgItemMessageW( + hDlg: HWND, + nIDDlgItem: ::std::os::raw::c_int, + Msg: UINT, + wParam: WPARAM, + lParam: LPARAM, + ) -> LRESULT; +} +extern "C" { + pub fn GetNextDlgGroupItem(hDlg: HWND, hCtl: HWND, bPrevious: BOOL) -> HWND; +} +extern "C" { + pub fn GetNextDlgTabItem(hDlg: HWND, hCtl: HWND, bPrevious: BOOL) -> HWND; +} +extern "C" { + pub fn GetDlgCtrlID(hWnd: HWND) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetDialogBaseUnits() -> ::std::os::raw::c_long; +} +extern "C" { + pub fn DefDlgProcA(hDlg: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; +} +extern "C" { + pub fn DefDlgProcW(hDlg: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; +} +pub const DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS_DCDC_DEFAULT: DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS = 0; +pub const DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS_DCDC_DISABLE_FONT_UPDATE: + DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS = 1; +pub const DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS_DCDC_DISABLE_RELAYOUT: + DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS = 2; +pub type DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS = ::std::os::raw::c_int; +extern "C" { + pub fn SetDialogControlDpiChangeBehavior( + hWnd: HWND, + mask: DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS, + values: DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS, + ) -> BOOL; +} +extern "C" { + pub fn GetDialogControlDpiChangeBehavior(hWnd: HWND) -> DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS; +} +pub const DIALOG_DPI_CHANGE_BEHAVIORS_DDC_DEFAULT: DIALOG_DPI_CHANGE_BEHAVIORS = 0; +pub const DIALOG_DPI_CHANGE_BEHAVIORS_DDC_DISABLE_ALL: DIALOG_DPI_CHANGE_BEHAVIORS = 1; +pub const DIALOG_DPI_CHANGE_BEHAVIORS_DDC_DISABLE_RESIZE: DIALOG_DPI_CHANGE_BEHAVIORS = 2; +pub const DIALOG_DPI_CHANGE_BEHAVIORS_DDC_DISABLE_CONTROL_RELAYOUT: DIALOG_DPI_CHANGE_BEHAVIORS = 4; +pub type DIALOG_DPI_CHANGE_BEHAVIORS = ::std::os::raw::c_int; +extern "C" { + pub fn SetDialogDpiChangeBehavior( + hDlg: HWND, + mask: DIALOG_DPI_CHANGE_BEHAVIORS, + values: DIALOG_DPI_CHANGE_BEHAVIORS, + ) -> BOOL; +} +extern "C" { + pub fn GetDialogDpiChangeBehavior(hDlg: HWND) -> DIALOG_DPI_CHANGE_BEHAVIORS; +} +extern "C" { + pub fn CallMsgFilterA(lpMsg: LPMSG, nCode: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn CallMsgFilterW(lpMsg: LPMSG, nCode: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn OpenClipboard(hWndNewOwner: HWND) -> BOOL; +} +extern "C" { + pub fn CloseClipboard() -> BOOL; +} +extern "C" { + pub fn GetClipboardSequenceNumber() -> DWORD; +} +extern "C" { + pub fn GetClipboardOwner() -> HWND; +} +extern "C" { + pub fn SetClipboardViewer(hWndNewViewer: HWND) -> HWND; +} +extern "C" { + pub fn GetClipboardViewer() -> HWND; +} +extern "C" { + pub fn ChangeClipboardChain(hWndRemove: HWND, hWndNewNext: HWND) -> BOOL; +} +extern "C" { + pub fn SetClipboardData(uFormat: UINT, hMem: HANDLE) -> HANDLE; +} +extern "C" { + pub fn GetClipboardData(uFormat: UINT) -> HANDLE; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagGETCLIPBMETADATA { + pub Version: UINT, + pub IsDelayRendered: BOOL, + pub IsSynthetic: BOOL, +} +pub type GETCLIPBMETADATA = tagGETCLIPBMETADATA; +pub type PGETCLIPBMETADATA = *mut tagGETCLIPBMETADATA; +extern "C" { + pub fn GetClipboardMetadata(format: UINT, metadata: PGETCLIPBMETADATA) -> BOOL; +} +extern "C" { + pub fn RegisterClipboardFormatA(lpszFormat: LPCSTR) -> UINT; +} +extern "C" { + pub fn RegisterClipboardFormatW(lpszFormat: LPCWSTR) -> UINT; +} +extern "C" { + pub fn CountClipboardFormats() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EnumClipboardFormats(format: UINT) -> UINT; +} +extern "C" { + pub fn GetClipboardFormatNameA( + format: UINT, + lpszFormatName: LPSTR, + cchMaxCount: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetClipboardFormatNameW( + format: UINT, + lpszFormatName: LPWSTR, + cchMaxCount: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EmptyClipboard() -> BOOL; +} +extern "C" { + pub fn IsClipboardFormatAvailable(format: UINT) -> BOOL; +} +extern "C" { + pub fn GetPriorityClipboardFormat( + paFormatPriorityList: *mut UINT, + cFormats: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetOpenClipboardWindow() -> HWND; +} +extern "C" { + pub fn AddClipboardFormatListener(hwnd: HWND) -> BOOL; +} +extern "C" { + pub fn RemoveClipboardFormatListener(hwnd: HWND) -> BOOL; +} +extern "C" { + pub fn GetUpdatedClipboardFormats( + lpuiFormats: PUINT, + cFormats: UINT, + pcFormatsOut: PUINT, + ) -> BOOL; +} +extern "C" { + pub fn CharToOemA(pSrc: LPCSTR, pDst: LPSTR) -> BOOL; +} +extern "C" { + pub fn CharToOemW(pSrc: LPCWSTR, pDst: LPSTR) -> BOOL; +} +extern "C" { + pub fn OemToCharA(pSrc: LPCSTR, pDst: LPSTR) -> BOOL; +} +extern "C" { + pub fn OemToCharW(pSrc: LPCSTR, pDst: LPWSTR) -> BOOL; +} +extern "C" { + pub fn CharToOemBuffA(lpszSrc: LPCSTR, lpszDst: LPSTR, cchDstLength: DWORD) -> BOOL; +} +extern "C" { + pub fn CharToOemBuffW(lpszSrc: LPCWSTR, lpszDst: LPSTR, cchDstLength: DWORD) -> BOOL; +} +extern "C" { + pub fn OemToCharBuffA(lpszSrc: LPCSTR, lpszDst: LPSTR, cchDstLength: DWORD) -> BOOL; +} +extern "C" { + pub fn OemToCharBuffW(lpszSrc: LPCSTR, lpszDst: LPWSTR, cchDstLength: DWORD) -> BOOL; +} +extern "C" { + pub fn CharUpperA(lpsz: LPSTR) -> LPSTR; +} +extern "C" { + pub fn CharUpperW(lpsz: LPWSTR) -> LPWSTR; +} +extern "C" { + pub fn CharUpperBuffA(lpsz: LPSTR, cchLength: DWORD) -> DWORD; +} +extern "C" { + pub fn CharUpperBuffW(lpsz: LPWSTR, cchLength: DWORD) -> DWORD; +} +extern "C" { + pub fn CharLowerA(lpsz: LPSTR) -> LPSTR; +} +extern "C" { + pub fn CharLowerW(lpsz: LPWSTR) -> LPWSTR; +} +extern "C" { + pub fn CharLowerBuffA(lpsz: LPSTR, cchLength: DWORD) -> DWORD; +} +extern "C" { + pub fn CharLowerBuffW(lpsz: LPWSTR, cchLength: DWORD) -> DWORD; +} +extern "C" { + pub fn CharNextA(lpsz: LPCSTR) -> LPSTR; +} +extern "C" { + pub fn CharNextW(lpsz: LPCWSTR) -> LPWSTR; +} +extern "C" { + pub fn CharPrevA(lpszStart: LPCSTR, lpszCurrent: LPCSTR) -> LPSTR; +} +extern "C" { + pub fn CharPrevW(lpszStart: LPCWSTR, lpszCurrent: LPCWSTR) -> LPWSTR; +} +extern "C" { + pub fn CharNextExA(CodePage: WORD, lpCurrentChar: LPCSTR, dwFlags: DWORD) -> LPSTR; +} +extern "C" { + pub fn CharPrevExA( + CodePage: WORD, + lpStart: LPCSTR, + lpCurrentChar: LPCSTR, + dwFlags: DWORD, + ) -> LPSTR; +} +extern "C" { + pub fn IsCharAlphaA(ch: CHAR) -> BOOL; +} +extern "C" { + pub fn IsCharAlphaW(ch: WCHAR) -> BOOL; +} +extern "C" { + pub fn IsCharAlphaNumericA(ch: CHAR) -> BOOL; +} +extern "C" { + pub fn IsCharAlphaNumericW(ch: WCHAR) -> BOOL; +} +extern "C" { + pub fn IsCharUpperA(ch: CHAR) -> BOOL; +} +extern "C" { + pub fn IsCharUpperW(ch: WCHAR) -> BOOL; +} +extern "C" { + pub fn IsCharLowerA(ch: CHAR) -> BOOL; +} +extern "C" { + pub fn IsCharLowerW(ch: WCHAR) -> BOOL; +} +extern "C" { + pub fn SetFocus(hWnd: HWND) -> HWND; +} +extern "C" { + pub fn GetActiveWindow() -> HWND; +} +extern "C" { + pub fn GetFocus() -> HWND; +} +extern "C" { + pub fn GetKBCodePage() -> UINT; +} +extern "C" { + pub fn GetKeyState(nVirtKey: ::std::os::raw::c_int) -> SHORT; +} +extern "C" { + pub fn GetAsyncKeyState(vKey: ::std::os::raw::c_int) -> SHORT; +} +extern "C" { + pub fn GetKeyboardState(lpKeyState: PBYTE) -> BOOL; +} +extern "C" { + pub fn SetKeyboardState(lpKeyState: LPBYTE) -> BOOL; +} +extern "C" { + pub fn GetKeyNameTextA( + lParam: LONG, + lpString: LPSTR, + cchSize: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetKeyNameTextW( + lParam: LONG, + lpString: LPWSTR, + cchSize: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetKeyboardType(nTypeFlag: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ToAscii( + uVirtKey: UINT, + uScanCode: UINT, + lpKeyState: *const BYTE, + lpChar: LPWORD, + uFlags: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ToAsciiEx( + uVirtKey: UINT, + uScanCode: UINT, + lpKeyState: *const BYTE, + lpChar: LPWORD, + uFlags: UINT, + dwhkl: HKL, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ToUnicode( + wVirtKey: UINT, + wScanCode: UINT, + lpKeyState: *const BYTE, + pwszBuff: LPWSTR, + cchBuff: ::std::os::raw::c_int, + wFlags: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn OemKeyScan(wOemChar: WORD) -> DWORD; +} +extern "C" { + pub fn VkKeyScanA(ch: CHAR) -> SHORT; +} +extern "C" { + pub fn VkKeyScanW(ch: WCHAR) -> SHORT; +} +extern "C" { + pub fn VkKeyScanExA(ch: CHAR, dwhkl: HKL) -> SHORT; +} +extern "C" { + pub fn VkKeyScanExW(ch: WCHAR, dwhkl: HKL) -> SHORT; +} +extern "C" { + pub fn keybd_event(bVk: BYTE, bScan: BYTE, dwFlags: DWORD, dwExtraInfo: ULONG_PTR); +} +extern "C" { + pub fn mouse_event(dwFlags: DWORD, dx: DWORD, dy: DWORD, dwData: DWORD, dwExtraInfo: ULONG_PTR); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMOUSEINPUT { + pub dx: LONG, + pub dy: LONG, + pub mouseData: DWORD, + pub dwFlags: DWORD, + pub time: DWORD, + pub dwExtraInfo: ULONG_PTR, +} +pub type MOUSEINPUT = tagMOUSEINPUT; +pub type PMOUSEINPUT = *mut tagMOUSEINPUT; +pub type LPMOUSEINPUT = *mut tagMOUSEINPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagKEYBDINPUT { + pub wVk: WORD, + pub wScan: WORD, + pub dwFlags: DWORD, + pub time: DWORD, + pub dwExtraInfo: ULONG_PTR, +} +pub type KEYBDINPUT = tagKEYBDINPUT; +pub type PKEYBDINPUT = *mut tagKEYBDINPUT; +pub type LPKEYBDINPUT = *mut tagKEYBDINPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagHARDWAREINPUT { + pub uMsg: DWORD, + pub wParamL: WORD, + pub wParamH: WORD, +} +pub type HARDWAREINPUT = tagHARDWAREINPUT; +pub type PHARDWAREINPUT = *mut tagHARDWAREINPUT; +pub type LPHARDWAREINPUT = *mut tagHARDWAREINPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagINPUT { + pub type_: DWORD, + pub __bindgen_anon_1: tagINPUT__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagINPUT__bindgen_ty_1 { + pub mi: MOUSEINPUT, + pub ki: KEYBDINPUT, + pub hi: HARDWAREINPUT, +} +pub type INPUT = tagINPUT; +pub type PINPUT = *mut tagINPUT; +pub type LPINPUT = *mut tagINPUT; +extern "C" { + pub fn SendInput(cInputs: UINT, pInputs: LPINPUT, cbSize: ::std::os::raw::c_int) -> UINT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HTOUCHINPUT__ { + pub unused: ::std::os::raw::c_int, +} +pub type HTOUCHINPUT = *mut HTOUCHINPUT__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagTOUCHINPUT { + pub x: LONG, + pub y: LONG, + pub hSource: HANDLE, + pub dwID: DWORD, + pub dwFlags: DWORD, + pub dwMask: DWORD, + pub dwTime: DWORD, + pub dwExtraInfo: ULONG_PTR, + pub cxContact: DWORD, + pub cyContact: DWORD, +} +pub type TOUCHINPUT = tagTOUCHINPUT; +pub type PTOUCHINPUT = *mut tagTOUCHINPUT; +pub type PCTOUCHINPUT = *const TOUCHINPUT; +extern "C" { + pub fn GetTouchInputInfo( + hTouchInput: HTOUCHINPUT, + cInputs: UINT, + pInputs: PTOUCHINPUT, + cbSize: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn CloseTouchInputHandle(hTouchInput: HTOUCHINPUT) -> BOOL; +} +extern "C" { + pub fn RegisterTouchWindow(hwnd: HWND, ulFlags: ULONG) -> BOOL; +} +extern "C" { + pub fn UnregisterTouchWindow(hwnd: HWND) -> BOOL; +} +extern "C" { + pub fn IsTouchWindow(hwnd: HWND, pulFlags: PULONG) -> BOOL; +} +pub const tagPOINTER_INPUT_TYPE_PT_POINTER: tagPOINTER_INPUT_TYPE = 1; +pub const tagPOINTER_INPUT_TYPE_PT_TOUCH: tagPOINTER_INPUT_TYPE = 2; +pub const tagPOINTER_INPUT_TYPE_PT_PEN: tagPOINTER_INPUT_TYPE = 3; +pub const tagPOINTER_INPUT_TYPE_PT_MOUSE: tagPOINTER_INPUT_TYPE = 4; +pub const tagPOINTER_INPUT_TYPE_PT_TOUCHPAD: tagPOINTER_INPUT_TYPE = 5; +pub type tagPOINTER_INPUT_TYPE = ::std::os::raw::c_int; +pub type POINTER_INPUT_TYPE = DWORD; +pub type POINTER_FLAGS = UINT32; +pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_NONE: tagPOINTER_BUTTON_CHANGE_TYPE = 0; +pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_FIRSTBUTTON_DOWN: + tagPOINTER_BUTTON_CHANGE_TYPE = 1; +pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_FIRSTBUTTON_UP: + tagPOINTER_BUTTON_CHANGE_TYPE = 2; +pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_SECONDBUTTON_DOWN: + tagPOINTER_BUTTON_CHANGE_TYPE = 3; +pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_SECONDBUTTON_UP: + tagPOINTER_BUTTON_CHANGE_TYPE = 4; +pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_THIRDBUTTON_DOWN: + tagPOINTER_BUTTON_CHANGE_TYPE = 5; +pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_THIRDBUTTON_UP: + tagPOINTER_BUTTON_CHANGE_TYPE = 6; +pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_FOURTHBUTTON_DOWN: + tagPOINTER_BUTTON_CHANGE_TYPE = 7; +pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_FOURTHBUTTON_UP: + tagPOINTER_BUTTON_CHANGE_TYPE = 8; +pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_FIFTHBUTTON_DOWN: + tagPOINTER_BUTTON_CHANGE_TYPE = 9; +pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_FIFTHBUTTON_UP: + tagPOINTER_BUTTON_CHANGE_TYPE = 10; +pub type tagPOINTER_BUTTON_CHANGE_TYPE = ::std::os::raw::c_int; +pub use self::tagPOINTER_BUTTON_CHANGE_TYPE as POINTER_BUTTON_CHANGE_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPOINTER_INFO { + pub pointerType: POINTER_INPUT_TYPE, + pub pointerId: UINT32, + pub frameId: UINT32, + pub pointerFlags: POINTER_FLAGS, + pub sourceDevice: HANDLE, + pub hwndTarget: HWND, + pub ptPixelLocation: POINT, + pub ptHimetricLocation: POINT, + pub ptPixelLocationRaw: POINT, + pub ptHimetricLocationRaw: POINT, + pub dwTime: DWORD, + pub historyCount: UINT32, + pub InputData: INT32, + pub dwKeyStates: DWORD, + pub PerformanceCount: UINT64, + pub ButtonChangeType: POINTER_BUTTON_CHANGE_TYPE, +} +pub type POINTER_INFO = tagPOINTER_INFO; +pub type TOUCH_FLAGS = UINT32; +pub type TOUCH_MASK = UINT32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPOINTER_TOUCH_INFO { + pub pointerInfo: POINTER_INFO, + pub touchFlags: TOUCH_FLAGS, + pub touchMask: TOUCH_MASK, + pub rcContact: RECT, + pub rcContactRaw: RECT, + pub orientation: UINT32, + pub pressure: UINT32, +} +pub type POINTER_TOUCH_INFO = tagPOINTER_TOUCH_INFO; +pub type PEN_FLAGS = UINT32; +pub type PEN_MASK = UINT32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPOINTER_PEN_INFO { + pub pointerInfo: POINTER_INFO, + pub penFlags: PEN_FLAGS, + pub penMask: PEN_MASK, + pub pressure: UINT32, + pub rotation: UINT32, + pub tiltX: INT32, + pub tiltY: INT32, +} +pub type POINTER_PEN_INFO = tagPOINTER_PEN_INFO; +pub const POINTER_FEEDBACK_MODE_POINTER_FEEDBACK_DEFAULT: POINTER_FEEDBACK_MODE = 1; +pub const POINTER_FEEDBACK_MODE_POINTER_FEEDBACK_INDIRECT: POINTER_FEEDBACK_MODE = 2; +pub const POINTER_FEEDBACK_MODE_POINTER_FEEDBACK_NONE: POINTER_FEEDBACK_MODE = 3; +pub type POINTER_FEEDBACK_MODE = ::std::os::raw::c_int; +extern "C" { + pub fn InitializeTouchInjection(maxCount: UINT32, dwMode: DWORD) -> BOOL; +} +extern "C" { + pub fn InjectTouchInput(count: UINT32, contacts: *const POINTER_TOUCH_INFO) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagUSAGE_PROPERTIES { + pub level: USHORT, + pub page: USHORT, + pub usage: USHORT, + pub logicalMinimum: INT32, + pub logicalMaximum: INT32, + pub unit: USHORT, + pub exponent: USHORT, + pub count: BYTE, + pub physicalMinimum: INT32, + pub physicalMaximum: INT32, +} +pub type USAGE_PROPERTIES = tagUSAGE_PROPERTIES; +pub type PUSAGE_PROPERTIES = *mut tagUSAGE_PROPERTIES; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagPOINTER_TYPE_INFO { + pub type_: POINTER_INPUT_TYPE, + pub __bindgen_anon_1: tagPOINTER_TYPE_INFO__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagPOINTER_TYPE_INFO__bindgen_ty_1 { + pub touchInfo: POINTER_TOUCH_INFO, + pub penInfo: POINTER_PEN_INFO, +} +pub type POINTER_TYPE_INFO = tagPOINTER_TYPE_INFO; +pub type PPOINTER_TYPE_INFO = *mut tagPOINTER_TYPE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagINPUT_INJECTION_VALUE { + pub page: USHORT, + pub usage: USHORT, + pub value: INT32, + pub index: USHORT, +} +pub type INPUT_INJECTION_VALUE = tagINPUT_INJECTION_VALUE; +pub type PINPUT_INJECTION_VALUE = *mut tagINPUT_INJECTION_VALUE; +extern "C" { + pub fn GetPointerType(pointerId: UINT32, pointerType: *mut POINTER_INPUT_TYPE) -> BOOL; +} +extern "C" { + pub fn GetPointerCursorId(pointerId: UINT32, cursorId: *mut UINT32) -> BOOL; +} +extern "C" { + pub fn GetPointerInfo(pointerId: UINT32, pointerInfo: *mut POINTER_INFO) -> BOOL; +} +extern "C" { + pub fn GetPointerInfoHistory( + pointerId: UINT32, + entriesCount: *mut UINT32, + pointerInfo: *mut POINTER_INFO, + ) -> BOOL; +} +extern "C" { + pub fn GetPointerFrameInfo( + pointerId: UINT32, + pointerCount: *mut UINT32, + pointerInfo: *mut POINTER_INFO, + ) -> BOOL; +} +extern "C" { + pub fn GetPointerFrameInfoHistory( + pointerId: UINT32, + entriesCount: *mut UINT32, + pointerCount: *mut UINT32, + pointerInfo: *mut POINTER_INFO, + ) -> BOOL; +} +extern "C" { + pub fn GetPointerTouchInfo(pointerId: UINT32, touchInfo: *mut POINTER_TOUCH_INFO) -> BOOL; +} +extern "C" { + pub fn GetPointerTouchInfoHistory( + pointerId: UINT32, + entriesCount: *mut UINT32, + touchInfo: *mut POINTER_TOUCH_INFO, + ) -> BOOL; +} +extern "C" { + pub fn GetPointerFrameTouchInfo( + pointerId: UINT32, + pointerCount: *mut UINT32, + touchInfo: *mut POINTER_TOUCH_INFO, + ) -> BOOL; +} +extern "C" { + pub fn GetPointerFrameTouchInfoHistory( + pointerId: UINT32, + entriesCount: *mut UINT32, + pointerCount: *mut UINT32, + touchInfo: *mut POINTER_TOUCH_INFO, + ) -> BOOL; +} +extern "C" { + pub fn GetPointerPenInfo(pointerId: UINT32, penInfo: *mut POINTER_PEN_INFO) -> BOOL; +} +extern "C" { + pub fn GetPointerPenInfoHistory( + pointerId: UINT32, + entriesCount: *mut UINT32, + penInfo: *mut POINTER_PEN_INFO, + ) -> BOOL; +} +extern "C" { + pub fn GetPointerFramePenInfo( + pointerId: UINT32, + pointerCount: *mut UINT32, + penInfo: *mut POINTER_PEN_INFO, + ) -> BOOL; +} +extern "C" { + pub fn GetPointerFramePenInfoHistory( + pointerId: UINT32, + entriesCount: *mut UINT32, + pointerCount: *mut UINT32, + penInfo: *mut POINTER_PEN_INFO, + ) -> BOOL; +} +extern "C" { + pub fn SkipPointerFrameMessages(pointerId: UINT32) -> BOOL; +} +extern "C" { + pub fn RegisterPointerInputTarget(hwnd: HWND, pointerType: POINTER_INPUT_TYPE) -> BOOL; +} +extern "C" { + pub fn UnregisterPointerInputTarget(hwnd: HWND, pointerType: POINTER_INPUT_TYPE) -> BOOL; +} +extern "C" { + pub fn RegisterPointerInputTargetEx( + hwnd: HWND, + pointerType: POINTER_INPUT_TYPE, + fObserve: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn UnregisterPointerInputTargetEx(hwnd: HWND, pointerType: POINTER_INPUT_TYPE) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HSYNTHETICPOINTERDEVICE__ { + pub unused: ::std::os::raw::c_int, +} +pub type HSYNTHETICPOINTERDEVICE = *mut HSYNTHETICPOINTERDEVICE__; +extern "C" { + pub fn CreateSyntheticPointerDevice( + pointerType: POINTER_INPUT_TYPE, + maxCount: ULONG, + mode: POINTER_FEEDBACK_MODE, + ) -> HSYNTHETICPOINTERDEVICE; +} +extern "C" { + pub fn InjectSyntheticPointerInput( + device: HSYNTHETICPOINTERDEVICE, + pointerInfo: *const POINTER_TYPE_INFO, + count: UINT32, + ) -> BOOL; +} +extern "C" { + pub fn DestroySyntheticPointerDevice(device: HSYNTHETICPOINTERDEVICE); +} +extern "C" { + pub fn EnableMouseInPointer(fEnable: BOOL) -> BOOL; +} +extern "C" { + pub fn IsMouseInPointerEnabled() -> BOOL; +} +extern "C" { + pub fn EnableMouseInPointerForThread() -> BOOL; +} +extern "C" { + pub fn RegisterTouchHitTestingWindow(hwnd: HWND, value: ULONG) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagTOUCH_HIT_TESTING_PROXIMITY_EVALUATION { + pub score: UINT16, + pub adjustedPoint: POINT, +} +pub type TOUCH_HIT_TESTING_PROXIMITY_EVALUATION = tagTOUCH_HIT_TESTING_PROXIMITY_EVALUATION; +pub type PTOUCH_HIT_TESTING_PROXIMITY_EVALUATION = *mut tagTOUCH_HIT_TESTING_PROXIMITY_EVALUATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagTOUCH_HIT_TESTING_INPUT { + pub pointerId: UINT32, + pub point: POINT, + pub boundingBox: RECT, + pub nonOccludedBoundingBox: RECT, + pub orientation: UINT32, +} +pub type TOUCH_HIT_TESTING_INPUT = tagTOUCH_HIT_TESTING_INPUT; +pub type PTOUCH_HIT_TESTING_INPUT = *mut tagTOUCH_HIT_TESTING_INPUT; +extern "C" { + pub fn EvaluateProximityToRect( + controlBoundingBox: *const RECT, + pHitTestingInput: *const TOUCH_HIT_TESTING_INPUT, + pProximityEval: *mut TOUCH_HIT_TESTING_PROXIMITY_EVALUATION, + ) -> BOOL; +} +extern "C" { + pub fn EvaluateProximityToPolygon( + numVertices: UINT32, + controlPolygon: *const POINT, + pHitTestingInput: *const TOUCH_HIT_TESTING_INPUT, + pProximityEval: *mut TOUCH_HIT_TESTING_PROXIMITY_EVALUATION, + ) -> BOOL; +} +extern "C" { + pub fn PackTouchHitTestingProximityEvaluation( + pHitTestingInput: *const TOUCH_HIT_TESTING_INPUT, + pProximityEval: *const TOUCH_HIT_TESTING_PROXIMITY_EVALUATION, + ) -> LRESULT; +} +pub const tagFEEDBACK_TYPE_FEEDBACK_TOUCH_CONTACTVISUALIZATION: tagFEEDBACK_TYPE = 1; +pub const tagFEEDBACK_TYPE_FEEDBACK_PEN_BARRELVISUALIZATION: tagFEEDBACK_TYPE = 2; +pub const tagFEEDBACK_TYPE_FEEDBACK_PEN_TAP: tagFEEDBACK_TYPE = 3; +pub const tagFEEDBACK_TYPE_FEEDBACK_PEN_DOUBLETAP: tagFEEDBACK_TYPE = 4; +pub const tagFEEDBACK_TYPE_FEEDBACK_PEN_PRESSANDHOLD: tagFEEDBACK_TYPE = 5; +pub const tagFEEDBACK_TYPE_FEEDBACK_PEN_RIGHTTAP: tagFEEDBACK_TYPE = 6; +pub const tagFEEDBACK_TYPE_FEEDBACK_TOUCH_TAP: tagFEEDBACK_TYPE = 7; +pub const tagFEEDBACK_TYPE_FEEDBACK_TOUCH_DOUBLETAP: tagFEEDBACK_TYPE = 8; +pub const tagFEEDBACK_TYPE_FEEDBACK_TOUCH_PRESSANDHOLD: tagFEEDBACK_TYPE = 9; +pub const tagFEEDBACK_TYPE_FEEDBACK_TOUCH_RIGHTTAP: tagFEEDBACK_TYPE = 10; +pub const tagFEEDBACK_TYPE_FEEDBACK_GESTURE_PRESSANDTAP: tagFEEDBACK_TYPE = 11; +pub const tagFEEDBACK_TYPE_FEEDBACK_MAX: tagFEEDBACK_TYPE = -1; +pub type tagFEEDBACK_TYPE = ::std::os::raw::c_int; +pub use self::tagFEEDBACK_TYPE as FEEDBACK_TYPE; +extern "C" { + pub fn GetWindowFeedbackSetting( + hwnd: HWND, + feedback: FEEDBACK_TYPE, + dwFlags: DWORD, + pSize: *mut UINT32, + config: *mut ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn SetWindowFeedbackSetting( + hwnd: HWND, + feedback: FEEDBACK_TYPE, + dwFlags: DWORD, + size: UINT32, + configuration: *const ::std::os::raw::c_void, + ) -> BOOL; +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagINPUT_TRANSFORM { + pub __bindgen_anon_1: tagINPUT_TRANSFORM__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagINPUT_TRANSFORM__bindgen_ty_1 { + pub __bindgen_anon_1: tagINPUT_TRANSFORM__bindgen_ty_1__bindgen_ty_1, + pub m: [[f32; 4usize]; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagINPUT_TRANSFORM__bindgen_ty_1__bindgen_ty_1 { + pub _11: f32, + pub _12: f32, + pub _13: f32, + pub _14: f32, + pub _21: f32, + pub _22: f32, + pub _23: f32, + pub _24: f32, + pub _31: f32, + pub _32: f32, + pub _33: f32, + pub _34: f32, + pub _41: f32, + pub _42: f32, + pub _43: f32, + pub _44: f32, +} +pub type INPUT_TRANSFORM = tagINPUT_TRANSFORM; +extern "C" { + pub fn GetPointerInputTransform( + pointerId: UINT32, + historyCount: UINT32, + inputTransform: *mut INPUT_TRANSFORM, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagLASTINPUTINFO { + pub cbSize: UINT, + pub dwTime: DWORD, +} +pub type LASTINPUTINFO = tagLASTINPUTINFO; +pub type PLASTINPUTINFO = *mut tagLASTINPUTINFO; +extern "C" { + pub fn GetLastInputInfo(plii: PLASTINPUTINFO) -> BOOL; +} +extern "C" { + pub fn MapVirtualKeyA(uCode: UINT, uMapType: UINT) -> UINT; +} +extern "C" { + pub fn MapVirtualKeyW(uCode: UINT, uMapType: UINT) -> UINT; +} +extern "C" { + pub fn MapVirtualKeyExA(uCode: UINT, uMapType: UINT, dwhkl: HKL) -> UINT; +} +extern "C" { + pub fn MapVirtualKeyExW(uCode: UINT, uMapType: UINT, dwhkl: HKL) -> UINT; +} +extern "C" { + pub fn GetInputState() -> BOOL; +} +extern "C" { + pub fn GetQueueStatus(flags: UINT) -> DWORD; +} +extern "C" { + pub fn GetCapture() -> HWND; +} +extern "C" { + pub fn SetCapture(hWnd: HWND) -> HWND; +} +extern "C" { + pub fn ReleaseCapture() -> BOOL; +} +extern "C" { + pub fn MsgWaitForMultipleObjects( + nCount: DWORD, + pHandles: *const HANDLE, + fWaitAll: BOOL, + dwMilliseconds: DWORD, + dwWakeMask: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn MsgWaitForMultipleObjectsEx( + nCount: DWORD, + pHandles: *const HANDLE, + dwMilliseconds: DWORD, + dwWakeMask: DWORD, + dwFlags: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn SetTimer( + hWnd: HWND, + nIDEvent: UINT_PTR, + uElapse: UINT, + lpTimerFunc: TIMERPROC, + ) -> UINT_PTR; +} +extern "C" { + pub fn SetCoalescableTimer( + hWnd: HWND, + nIDEvent: UINT_PTR, + uElapse: UINT, + lpTimerFunc: TIMERPROC, + uToleranceDelay: ULONG, + ) -> UINT_PTR; +} +extern "C" { + pub fn KillTimer(hWnd: HWND, uIDEvent: UINT_PTR) -> BOOL; +} +extern "C" { + pub fn IsWindowUnicode(hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn EnableWindow(hWnd: HWND, bEnable: BOOL) -> BOOL; +} +extern "C" { + pub fn IsWindowEnabled(hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn LoadAcceleratorsA(hInstance: HINSTANCE, lpTableName: LPCSTR) -> HACCEL; +} +extern "C" { + pub fn LoadAcceleratorsW(hInstance: HINSTANCE, lpTableName: LPCWSTR) -> HACCEL; +} +extern "C" { + pub fn CreateAcceleratorTableA(paccel: LPACCEL, cAccel: ::std::os::raw::c_int) -> HACCEL; +} +extern "C" { + pub fn CreateAcceleratorTableW(paccel: LPACCEL, cAccel: ::std::os::raw::c_int) -> HACCEL; +} +extern "C" { + pub fn DestroyAcceleratorTable(hAccel: HACCEL) -> BOOL; +} +extern "C" { + pub fn CopyAcceleratorTableA( + hAccelSrc: HACCEL, + lpAccelDst: LPACCEL, + cAccelEntries: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn CopyAcceleratorTableW( + hAccelSrc: HACCEL, + lpAccelDst: LPACCEL, + cAccelEntries: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn TranslateAcceleratorA( + hWnd: HWND, + hAccTable: HACCEL, + lpMsg: LPMSG, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn TranslateAcceleratorW( + hWnd: HWND, + hAccTable: HACCEL, + lpMsg: LPMSG, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetSystemMetrics(nIndex: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetSystemMetricsForDpi( + nIndex: ::std::os::raw::c_int, + dpi: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn LoadMenuA(hInstance: HINSTANCE, lpMenuName: LPCSTR) -> HMENU; +} +extern "C" { + pub fn LoadMenuW(hInstance: HINSTANCE, lpMenuName: LPCWSTR) -> HMENU; +} +extern "C" { + pub fn LoadMenuIndirectA(lpMenuTemplate: *const MENUTEMPLATEA) -> HMENU; +} +extern "C" { + pub fn LoadMenuIndirectW(lpMenuTemplate: *const MENUTEMPLATEW) -> HMENU; +} +extern "C" { + pub fn GetMenu(hWnd: HWND) -> HMENU; +} +extern "C" { + pub fn SetMenu(hWnd: HWND, hMenu: HMENU) -> BOOL; +} +extern "C" { + pub fn ChangeMenuA( + hMenu: HMENU, + cmd: UINT, + lpszNewItem: LPCSTR, + cmdInsert: UINT, + flags: UINT, + ) -> BOOL; +} +extern "C" { + pub fn ChangeMenuW( + hMenu: HMENU, + cmd: UINT, + lpszNewItem: LPCWSTR, + cmdInsert: UINT, + flags: UINT, + ) -> BOOL; +} +extern "C" { + pub fn HiliteMenuItem(hWnd: HWND, hMenu: HMENU, uIDHiliteItem: UINT, uHilite: UINT) -> BOOL; +} +extern "C" { + pub fn GetMenuStringA( + hMenu: HMENU, + uIDItem: UINT, + lpString: LPSTR, + cchMax: ::std::os::raw::c_int, + flags: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetMenuStringW( + hMenu: HMENU, + uIDItem: UINT, + lpString: LPWSTR, + cchMax: ::std::os::raw::c_int, + flags: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetMenuState(hMenu: HMENU, uId: UINT, uFlags: UINT) -> UINT; +} +extern "C" { + pub fn DrawMenuBar(hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn GetSystemMenu(hWnd: HWND, bRevert: BOOL) -> HMENU; +} +extern "C" { + pub fn CreateMenu() -> HMENU; +} +extern "C" { + pub fn CreatePopupMenu() -> HMENU; +} +extern "C" { + pub fn DestroyMenu(hMenu: HMENU) -> BOOL; +} +extern "C" { + pub fn CheckMenuItem(hMenu: HMENU, uIDCheckItem: UINT, uCheck: UINT) -> DWORD; +} +extern "C" { + pub fn EnableMenuItem(hMenu: HMENU, uIDEnableItem: UINT, uEnable: UINT) -> BOOL; +} +extern "C" { + pub fn GetSubMenu(hMenu: HMENU, nPos: ::std::os::raw::c_int) -> HMENU; +} +extern "C" { + pub fn GetMenuItemID(hMenu: HMENU, nPos: ::std::os::raw::c_int) -> UINT; +} +extern "C" { + pub fn GetMenuItemCount(hMenu: HMENU) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn InsertMenuA( + hMenu: HMENU, + uPosition: UINT, + uFlags: UINT, + uIDNewItem: UINT_PTR, + lpNewItem: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn InsertMenuW( + hMenu: HMENU, + uPosition: UINT, + uFlags: UINT, + uIDNewItem: UINT_PTR, + lpNewItem: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn AppendMenuA(hMenu: HMENU, uFlags: UINT, uIDNewItem: UINT_PTR, lpNewItem: LPCSTR) + -> BOOL; +} +extern "C" { + pub fn AppendMenuW( + hMenu: HMENU, + uFlags: UINT, + uIDNewItem: UINT_PTR, + lpNewItem: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn ModifyMenuA( + hMnu: HMENU, + uPosition: UINT, + uFlags: UINT, + uIDNewItem: UINT_PTR, + lpNewItem: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn ModifyMenuW( + hMnu: HMENU, + uPosition: UINT, + uFlags: UINT, + uIDNewItem: UINT_PTR, + lpNewItem: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn RemoveMenu(hMenu: HMENU, uPosition: UINT, uFlags: UINT) -> BOOL; +} +extern "C" { + pub fn DeleteMenu(hMenu: HMENU, uPosition: UINT, uFlags: UINT) -> BOOL; +} +extern "C" { + pub fn SetMenuItemBitmaps( + hMenu: HMENU, + uPosition: UINT, + uFlags: UINT, + hBitmapUnchecked: HBITMAP, + hBitmapChecked: HBITMAP, + ) -> BOOL; +} +extern "C" { + pub fn GetMenuCheckMarkDimensions() -> LONG; +} +extern "C" { + pub fn TrackPopupMenu( + hMenu: HMENU, + uFlags: UINT, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + nReserved: ::std::os::raw::c_int, + hWnd: HWND, + prcRect: *const RECT, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagTPMPARAMS { + pub cbSize: UINT, + pub rcExclude: RECT, +} +pub type TPMPARAMS = tagTPMPARAMS; +pub type LPTPMPARAMS = *mut TPMPARAMS; +extern "C" { + pub fn TrackPopupMenuEx( + hMenu: HMENU, + uFlags: UINT, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + hwnd: HWND, + lptpm: LPTPMPARAMS, + ) -> BOOL; +} +extern "C" { + pub fn CalculatePopupWindowPosition( + anchorPoint: *const POINT, + windowSize: *const SIZE, + flags: UINT, + excludeRect: *mut RECT, + popupWindowPosition: *mut RECT, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMENUINFO { + pub cbSize: DWORD, + pub fMask: DWORD, + pub dwStyle: DWORD, + pub cyMax: UINT, + pub hbrBack: HBRUSH, + pub dwContextHelpID: DWORD, + pub dwMenuData: ULONG_PTR, +} +pub type MENUINFO = tagMENUINFO; +pub type LPMENUINFO = *mut tagMENUINFO; +pub type LPCMENUINFO = *const MENUINFO; +extern "C" { + pub fn GetMenuInfo(arg1: HMENU, arg2: LPMENUINFO) -> BOOL; +} +extern "C" { + pub fn SetMenuInfo(arg1: HMENU, arg2: LPCMENUINFO) -> BOOL; +} +extern "C" { + pub fn EndMenu() -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMENUGETOBJECTINFO { + pub dwFlags: DWORD, + pub uPos: UINT, + pub hmenu: HMENU, + pub riid: PVOID, + pub pvObj: PVOID, +} +pub type MENUGETOBJECTINFO = tagMENUGETOBJECTINFO; +pub type PMENUGETOBJECTINFO = *mut tagMENUGETOBJECTINFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMENUITEMINFOA { + pub cbSize: UINT, + pub fMask: UINT, + pub fType: UINT, + pub fState: UINT, + pub wID: UINT, + pub hSubMenu: HMENU, + pub hbmpChecked: HBITMAP, + pub hbmpUnchecked: HBITMAP, + pub dwItemData: ULONG_PTR, + pub dwTypeData: LPSTR, + pub cch: UINT, + pub hbmpItem: HBITMAP, +} +pub type MENUITEMINFOA = tagMENUITEMINFOA; +pub type LPMENUITEMINFOA = *mut tagMENUITEMINFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMENUITEMINFOW { + pub cbSize: UINT, + pub fMask: UINT, + pub fType: UINT, + pub fState: UINT, + pub wID: UINT, + pub hSubMenu: HMENU, + pub hbmpChecked: HBITMAP, + pub hbmpUnchecked: HBITMAP, + pub dwItemData: ULONG_PTR, + pub dwTypeData: LPWSTR, + pub cch: UINT, + pub hbmpItem: HBITMAP, +} +pub type MENUITEMINFOW = tagMENUITEMINFOW; +pub type LPMENUITEMINFOW = *mut tagMENUITEMINFOW; +pub type MENUITEMINFO = MENUITEMINFOA; +pub type LPMENUITEMINFO = LPMENUITEMINFOA; +pub type LPCMENUITEMINFOA = *const MENUITEMINFOA; +pub type LPCMENUITEMINFOW = *const MENUITEMINFOW; +pub type LPCMENUITEMINFO = LPCMENUITEMINFOA; +extern "C" { + pub fn InsertMenuItemA( + hmenu: HMENU, + item: UINT, + fByPosition: BOOL, + lpmi: LPCMENUITEMINFOA, + ) -> BOOL; +} +extern "C" { + pub fn InsertMenuItemW( + hmenu: HMENU, + item: UINT, + fByPosition: BOOL, + lpmi: LPCMENUITEMINFOW, + ) -> BOOL; +} +extern "C" { + pub fn GetMenuItemInfoA( + hmenu: HMENU, + item: UINT, + fByPosition: BOOL, + lpmii: LPMENUITEMINFOA, + ) -> BOOL; +} +extern "C" { + pub fn GetMenuItemInfoW( + hmenu: HMENU, + item: UINT, + fByPosition: BOOL, + lpmii: LPMENUITEMINFOW, + ) -> BOOL; +} +extern "C" { + pub fn SetMenuItemInfoA( + hmenu: HMENU, + item: UINT, + fByPositon: BOOL, + lpmii: LPCMENUITEMINFOA, + ) -> BOOL; +} +extern "C" { + pub fn SetMenuItemInfoW( + hmenu: HMENU, + item: UINT, + fByPositon: BOOL, + lpmii: LPCMENUITEMINFOW, + ) -> BOOL; +} +extern "C" { + pub fn GetMenuDefaultItem(hMenu: HMENU, fByPos: UINT, gmdiFlags: UINT) -> UINT; +} +extern "C" { + pub fn SetMenuDefaultItem(hMenu: HMENU, uItem: UINT, fByPos: UINT) -> BOOL; +} +extern "C" { + pub fn GetMenuItemRect(hWnd: HWND, hMenu: HMENU, uItem: UINT, lprcItem: LPRECT) -> BOOL; +} +extern "C" { + pub fn MenuItemFromPoint(hWnd: HWND, hMenu: HMENU, ptScreen: POINT) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagDROPSTRUCT { + pub hwndSource: HWND, + pub hwndSink: HWND, + pub wFmt: DWORD, + pub dwData: ULONG_PTR, + pub ptDrop: POINT, + pub dwControlData: DWORD, +} +pub type DROPSTRUCT = tagDROPSTRUCT; +pub type PDROPSTRUCT = *mut tagDROPSTRUCT; +pub type LPDROPSTRUCT = *mut tagDROPSTRUCT; +extern "C" { + pub fn DragObject( + hwndParent: HWND, + hwndFrom: HWND, + fmt: UINT, + data: ULONG_PTR, + hcur: HCURSOR, + ) -> DWORD; +} +extern "C" { + pub fn DragDetect(hwnd: HWND, pt: POINT) -> BOOL; +} +extern "C" { + pub fn DrawIcon( + hDC: HDC, + X: ::std::os::raw::c_int, + Y: ::std::os::raw::c_int, + hIcon: HICON, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagDRAWTEXTPARAMS { + pub cbSize: UINT, + pub iTabLength: ::std::os::raw::c_int, + pub iLeftMargin: ::std::os::raw::c_int, + pub iRightMargin: ::std::os::raw::c_int, + pub uiLengthDrawn: UINT, +} +pub type DRAWTEXTPARAMS = tagDRAWTEXTPARAMS; +pub type LPDRAWTEXTPARAMS = *mut tagDRAWTEXTPARAMS; +extern "C" { + pub fn DrawTextA( + hdc: HDC, + lpchText: LPCSTR, + cchText: ::std::os::raw::c_int, + lprc: LPRECT, + format: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn DrawTextW( + hdc: HDC, + lpchText: LPCWSTR, + cchText: ::std::os::raw::c_int, + lprc: LPRECT, + format: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn DrawTextExA( + hdc: HDC, + lpchText: LPSTR, + cchText: ::std::os::raw::c_int, + lprc: LPRECT, + format: UINT, + lpdtp: LPDRAWTEXTPARAMS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn DrawTextExW( + hdc: HDC, + lpchText: LPWSTR, + cchText: ::std::os::raw::c_int, + lprc: LPRECT, + format: UINT, + lpdtp: LPDRAWTEXTPARAMS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GrayStringA( + hDC: HDC, + hBrush: HBRUSH, + lpOutputFunc: GRAYSTRINGPROC, + lpData: LPARAM, + nCount: ::std::os::raw::c_int, + X: ::std::os::raw::c_int, + Y: ::std::os::raw::c_int, + nWidth: ::std::os::raw::c_int, + nHeight: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn GrayStringW( + hDC: HDC, + hBrush: HBRUSH, + lpOutputFunc: GRAYSTRINGPROC, + lpData: LPARAM, + nCount: ::std::os::raw::c_int, + X: ::std::os::raw::c_int, + Y: ::std::os::raw::c_int, + nWidth: ::std::os::raw::c_int, + nHeight: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn DrawStateA( + hdc: HDC, + hbrFore: HBRUSH, + qfnCallBack: DRAWSTATEPROC, + lData: LPARAM, + wData: WPARAM, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + cx: ::std::os::raw::c_int, + cy: ::std::os::raw::c_int, + uFlags: UINT, + ) -> BOOL; +} +extern "C" { + pub fn DrawStateW( + hdc: HDC, + hbrFore: HBRUSH, + qfnCallBack: DRAWSTATEPROC, + lData: LPARAM, + wData: WPARAM, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + cx: ::std::os::raw::c_int, + cy: ::std::os::raw::c_int, + uFlags: UINT, + ) -> BOOL; +} +extern "C" { + pub fn TabbedTextOutA( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + lpString: LPCSTR, + chCount: ::std::os::raw::c_int, + nTabPositions: ::std::os::raw::c_int, + lpnTabStopPositions: *const INT, + nTabOrigin: ::std::os::raw::c_int, + ) -> LONG; +} +extern "C" { + pub fn TabbedTextOutW( + hdc: HDC, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + lpString: LPCWSTR, + chCount: ::std::os::raw::c_int, + nTabPositions: ::std::os::raw::c_int, + lpnTabStopPositions: *const INT, + nTabOrigin: ::std::os::raw::c_int, + ) -> LONG; +} +extern "C" { + pub fn GetTabbedTextExtentA( + hdc: HDC, + lpString: LPCSTR, + chCount: ::std::os::raw::c_int, + nTabPositions: ::std::os::raw::c_int, + lpnTabStopPositions: *const INT, + ) -> DWORD; +} +extern "C" { + pub fn GetTabbedTextExtentW( + hdc: HDC, + lpString: LPCWSTR, + chCount: ::std::os::raw::c_int, + nTabPositions: ::std::os::raw::c_int, + lpnTabStopPositions: *const INT, + ) -> DWORD; +} +extern "C" { + pub fn UpdateWindow(hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn SetActiveWindow(hWnd: HWND) -> HWND; +} +extern "C" { + pub fn GetForegroundWindow() -> HWND; +} +extern "C" { + pub fn PaintDesktop(hdc: HDC) -> BOOL; +} +extern "C" { + pub fn SwitchToThisWindow(hwnd: HWND, fUnknown: BOOL); +} +extern "C" { + pub fn SetForegroundWindow(hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn AllowSetForegroundWindow(dwProcessId: DWORD) -> BOOL; +} +extern "C" { + pub fn LockSetForegroundWindow(uLockCode: UINT) -> BOOL; +} +extern "C" { + pub fn WindowFromDC(hDC: HDC) -> HWND; +} +extern "C" { + pub fn GetDC(hWnd: HWND) -> HDC; +} +extern "C" { + pub fn GetDCEx(hWnd: HWND, hrgnClip: HRGN, flags: DWORD) -> HDC; +} +extern "C" { + pub fn GetWindowDC(hWnd: HWND) -> HDC; +} +extern "C" { + pub fn ReleaseDC(hWnd: HWND, hDC: HDC) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn BeginPaint(hWnd: HWND, lpPaint: LPPAINTSTRUCT) -> HDC; +} +extern "C" { + pub fn EndPaint(hWnd: HWND, lpPaint: *const PAINTSTRUCT) -> BOOL; +} +extern "C" { + pub fn GetUpdateRect(hWnd: HWND, lpRect: LPRECT, bErase: BOOL) -> BOOL; +} +extern "C" { + pub fn GetUpdateRgn(hWnd: HWND, hRgn: HRGN, bErase: BOOL) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetWindowRgn(hWnd: HWND, hRgn: HRGN, bRedraw: BOOL) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetWindowRgn(hWnd: HWND, hRgn: HRGN) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetWindowRgnBox(hWnd: HWND, lprc: LPRECT) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ExcludeUpdateRgn(hDC: HDC, hWnd: HWND) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn InvalidateRect(hWnd: HWND, lpRect: *const RECT, bErase: BOOL) -> BOOL; +} +extern "C" { + pub fn ValidateRect(hWnd: HWND, lpRect: *const RECT) -> BOOL; +} +extern "C" { + pub fn InvalidateRgn(hWnd: HWND, hRgn: HRGN, bErase: BOOL) -> BOOL; +} +extern "C" { + pub fn ValidateRgn(hWnd: HWND, hRgn: HRGN) -> BOOL; +} +extern "C" { + pub fn RedrawWindow(hWnd: HWND, lprcUpdate: *const RECT, hrgnUpdate: HRGN, flags: UINT) + -> BOOL; +} +extern "C" { + pub fn LockWindowUpdate(hWndLock: HWND) -> BOOL; +} +extern "C" { + pub fn ScrollWindow( + hWnd: HWND, + XAmount: ::std::os::raw::c_int, + YAmount: ::std::os::raw::c_int, + lpRect: *const RECT, + lpClipRect: *const RECT, + ) -> BOOL; +} +extern "C" { + pub fn ScrollDC( + hDC: HDC, + dx: ::std::os::raw::c_int, + dy: ::std::os::raw::c_int, + lprcScroll: *const RECT, + lprcClip: *const RECT, + hrgnUpdate: HRGN, + lprcUpdate: LPRECT, + ) -> BOOL; +} +extern "C" { + pub fn ScrollWindowEx( + hWnd: HWND, + dx: ::std::os::raw::c_int, + dy: ::std::os::raw::c_int, + prcScroll: *const RECT, + prcClip: *const RECT, + hrgnUpdate: HRGN, + prcUpdate: LPRECT, + flags: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetScrollPos( + hWnd: HWND, + nBar: ::std::os::raw::c_int, + nPos: ::std::os::raw::c_int, + bRedraw: BOOL, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetScrollPos(hWnd: HWND, nBar: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetScrollRange( + hWnd: HWND, + nBar: ::std::os::raw::c_int, + nMinPos: ::std::os::raw::c_int, + nMaxPos: ::std::os::raw::c_int, + bRedraw: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn GetScrollRange( + hWnd: HWND, + nBar: ::std::os::raw::c_int, + lpMinPos: LPINT, + lpMaxPos: LPINT, + ) -> BOOL; +} +extern "C" { + pub fn ShowScrollBar(hWnd: HWND, wBar: ::std::os::raw::c_int, bShow: BOOL) -> BOOL; +} +extern "C" { + pub fn EnableScrollBar(hWnd: HWND, wSBflags: UINT, wArrows: UINT) -> BOOL; +} +extern "C" { + pub fn SetPropA(hWnd: HWND, lpString: LPCSTR, hData: HANDLE) -> BOOL; +} +extern "C" { + pub fn SetPropW(hWnd: HWND, lpString: LPCWSTR, hData: HANDLE) -> BOOL; +} +extern "C" { + pub fn GetPropA(hWnd: HWND, lpString: LPCSTR) -> HANDLE; +} +extern "C" { + pub fn GetPropW(hWnd: HWND, lpString: LPCWSTR) -> HANDLE; +} +extern "C" { + pub fn RemovePropA(hWnd: HWND, lpString: LPCSTR) -> HANDLE; +} +extern "C" { + pub fn RemovePropW(hWnd: HWND, lpString: LPCWSTR) -> HANDLE; +} +extern "C" { + pub fn EnumPropsExA( + hWnd: HWND, + lpEnumFunc: PROPENUMPROCEXA, + lParam: LPARAM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EnumPropsExW( + hWnd: HWND, + lpEnumFunc: PROPENUMPROCEXW, + lParam: LPARAM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EnumPropsA(hWnd: HWND, lpEnumFunc: PROPENUMPROCA) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EnumPropsW(hWnd: HWND, lpEnumFunc: PROPENUMPROCW) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetWindowTextA(hWnd: HWND, lpString: LPCSTR) -> BOOL; +} +extern "C" { + pub fn SetWindowTextW(hWnd: HWND, lpString: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn GetWindowTextA( + hWnd: HWND, + lpString: LPSTR, + nMaxCount: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetWindowTextW( + hWnd: HWND, + lpString: LPWSTR, + nMaxCount: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetWindowTextLengthA(hWnd: HWND) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetWindowTextLengthW(hWnd: HWND) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetClientRect(hWnd: HWND, lpRect: LPRECT) -> BOOL; +} +extern "C" { + pub fn GetWindowRect(hWnd: HWND, lpRect: LPRECT) -> BOOL; +} +extern "C" { + pub fn AdjustWindowRect(lpRect: LPRECT, dwStyle: DWORD, bMenu: BOOL) -> BOOL; +} +extern "C" { + pub fn AdjustWindowRectEx( + lpRect: LPRECT, + dwStyle: DWORD, + bMenu: BOOL, + dwExStyle: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn AdjustWindowRectExForDpi( + lpRect: LPRECT, + dwStyle: DWORD, + bMenu: BOOL, + dwExStyle: DWORD, + dpi: UINT, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagHELPINFO { + pub cbSize: UINT, + pub iContextType: ::std::os::raw::c_int, + pub iCtrlId: ::std::os::raw::c_int, + pub hItemHandle: HANDLE, + pub dwContextId: DWORD_PTR, + pub MousePos: POINT, +} +pub type HELPINFO = tagHELPINFO; +pub type LPHELPINFO = *mut tagHELPINFO; +extern "C" { + pub fn SetWindowContextHelpId(arg1: HWND, arg2: DWORD) -> BOOL; +} +extern "C" { + pub fn GetWindowContextHelpId(arg1: HWND) -> DWORD; +} +extern "C" { + pub fn SetMenuContextHelpId(arg1: HMENU, arg2: DWORD) -> BOOL; +} +extern "C" { + pub fn GetMenuContextHelpId(arg1: HMENU) -> DWORD; +} +extern "C" { + pub fn MessageBoxA( + hWnd: HWND, + lpText: LPCSTR, + lpCaption: LPCSTR, + uType: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn MessageBoxW( + hWnd: HWND, + lpText: LPCWSTR, + lpCaption: LPCWSTR, + uType: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn MessageBoxExA( + hWnd: HWND, + lpText: LPCSTR, + lpCaption: LPCSTR, + uType: UINT, + wLanguageId: WORD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn MessageBoxExW( + hWnd: HWND, + lpText: LPCWSTR, + lpCaption: LPCWSTR, + uType: UINT, + wLanguageId: WORD, + ) -> ::std::os::raw::c_int; +} +pub type MSGBOXCALLBACK = ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMSGBOXPARAMSA { + pub cbSize: UINT, + pub hwndOwner: HWND, + pub hInstance: HINSTANCE, + pub lpszText: LPCSTR, + pub lpszCaption: LPCSTR, + pub dwStyle: DWORD, + pub lpszIcon: LPCSTR, + pub dwContextHelpId: DWORD_PTR, + pub lpfnMsgBoxCallback: MSGBOXCALLBACK, + pub dwLanguageId: DWORD, +} +pub type MSGBOXPARAMSA = tagMSGBOXPARAMSA; +pub type PMSGBOXPARAMSA = *mut tagMSGBOXPARAMSA; +pub type LPMSGBOXPARAMSA = *mut tagMSGBOXPARAMSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMSGBOXPARAMSW { + pub cbSize: UINT, + pub hwndOwner: HWND, + pub hInstance: HINSTANCE, + pub lpszText: LPCWSTR, + pub lpszCaption: LPCWSTR, + pub dwStyle: DWORD, + pub lpszIcon: LPCWSTR, + pub dwContextHelpId: DWORD_PTR, + pub lpfnMsgBoxCallback: MSGBOXCALLBACK, + pub dwLanguageId: DWORD, +} +pub type MSGBOXPARAMSW = tagMSGBOXPARAMSW; +pub type PMSGBOXPARAMSW = *mut tagMSGBOXPARAMSW; +pub type LPMSGBOXPARAMSW = *mut tagMSGBOXPARAMSW; +pub type MSGBOXPARAMS = MSGBOXPARAMSA; +pub type PMSGBOXPARAMS = PMSGBOXPARAMSA; +pub type LPMSGBOXPARAMS = LPMSGBOXPARAMSA; +extern "C" { + pub fn MessageBoxIndirectA(lpmbp: *const MSGBOXPARAMSA) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn MessageBoxIndirectW(lpmbp: *const MSGBOXPARAMSW) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn MessageBeep(uType: UINT) -> BOOL; +} +extern "C" { + pub fn ShowCursor(bShow: BOOL) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetCursorPos(X: ::std::os::raw::c_int, Y: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn SetPhysicalCursorPos(X: ::std::os::raw::c_int, Y: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn SetCursor(hCursor: HCURSOR) -> HCURSOR; +} +extern "C" { + pub fn GetCursorPos(lpPoint: LPPOINT) -> BOOL; +} +extern "C" { + pub fn GetPhysicalCursorPos(lpPoint: LPPOINT) -> BOOL; +} +extern "C" { + pub fn GetClipCursor(lpRect: LPRECT) -> BOOL; +} +extern "C" { + pub fn GetCursor() -> HCURSOR; +} +extern "C" { + pub fn CreateCaret( + hWnd: HWND, + hBitmap: HBITMAP, + nWidth: ::std::os::raw::c_int, + nHeight: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn GetCaretBlinkTime() -> UINT; +} +extern "C" { + pub fn SetCaretBlinkTime(uMSeconds: UINT) -> BOOL; +} +extern "C" { + pub fn DestroyCaret() -> BOOL; +} +extern "C" { + pub fn HideCaret(hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn ShowCaret(hWnd: HWND) -> BOOL; +} +extern "C" { + pub fn SetCaretPos(X: ::std::os::raw::c_int, Y: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn GetCaretPos(lpPoint: LPPOINT) -> BOOL; +} +extern "C" { + pub fn ClientToScreen(hWnd: HWND, lpPoint: LPPOINT) -> BOOL; +} +extern "C" { + pub fn ScreenToClient(hWnd: HWND, lpPoint: LPPOINT) -> BOOL; +} +extern "C" { + pub fn LogicalToPhysicalPoint(hWnd: HWND, lpPoint: LPPOINT) -> BOOL; +} +extern "C" { + pub fn PhysicalToLogicalPoint(hWnd: HWND, lpPoint: LPPOINT) -> BOOL; +} +extern "C" { + pub fn LogicalToPhysicalPointForPerMonitorDPI(hWnd: HWND, lpPoint: LPPOINT) -> BOOL; +} +extern "C" { + pub fn PhysicalToLogicalPointForPerMonitorDPI(hWnd: HWND, lpPoint: LPPOINT) -> BOOL; +} +extern "C" { + pub fn MapWindowPoints( + hWndFrom: HWND, + hWndTo: HWND, + lpPoints: LPPOINT, + cPoints: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn WindowFromPoint(Point: POINT) -> HWND; +} +extern "C" { + pub fn WindowFromPhysicalPoint(Point: POINT) -> HWND; +} +extern "C" { + pub fn ChildWindowFromPoint(hWndParent: HWND, Point: POINT) -> HWND; +} +extern "C" { + pub fn ClipCursor(lpRect: *const RECT) -> BOOL; +} +extern "C" { + pub fn ChildWindowFromPointEx(hwnd: HWND, pt: POINT, flags: UINT) -> HWND; +} +extern "C" { + pub fn GetSysColor(nIndex: ::std::os::raw::c_int) -> DWORD; +} +extern "C" { + pub fn GetSysColorBrush(nIndex: ::std::os::raw::c_int) -> HBRUSH; +} +extern "C" { + pub fn SetSysColors( + cElements: ::std::os::raw::c_int, + lpaElements: *const INT, + lpaRgbValues: *const COLORREF, + ) -> BOOL; +} +extern "C" { + pub fn DrawFocusRect(hDC: HDC, lprc: *const RECT) -> BOOL; +} +extern "C" { + pub fn FillRect(hDC: HDC, lprc: *const RECT, hbr: HBRUSH) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn FrameRect(hDC: HDC, lprc: *const RECT, hbr: HBRUSH) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn InvertRect(hDC: HDC, lprc: *const RECT) -> BOOL; +} +extern "C" { + pub fn SetRect( + lprc: LPRECT, + xLeft: ::std::os::raw::c_int, + yTop: ::std::os::raw::c_int, + xRight: ::std::os::raw::c_int, + yBottom: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn SetRectEmpty(lprc: LPRECT) -> BOOL; +} +extern "C" { + pub fn CopyRect(lprcDst: LPRECT, lprcSrc: *const RECT) -> BOOL; +} +extern "C" { + pub fn InflateRect(lprc: LPRECT, dx: ::std::os::raw::c_int, dy: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn IntersectRect(lprcDst: LPRECT, lprcSrc1: *const RECT, lprcSrc2: *const RECT) -> BOOL; +} +extern "C" { + pub fn UnionRect(lprcDst: LPRECT, lprcSrc1: *const RECT, lprcSrc2: *const RECT) -> BOOL; +} +extern "C" { + pub fn SubtractRect(lprcDst: LPRECT, lprcSrc1: *const RECT, lprcSrc2: *const RECT) -> BOOL; +} +extern "C" { + pub fn OffsetRect(lprc: LPRECT, dx: ::std::os::raw::c_int, dy: ::std::os::raw::c_int) -> BOOL; +} +extern "C" { + pub fn IsRectEmpty(lprc: *const RECT) -> BOOL; +} +extern "C" { + pub fn EqualRect(lprc1: *const RECT, lprc2: *const RECT) -> BOOL; +} +extern "C" { + pub fn PtInRect(lprc: *const RECT, pt: POINT) -> BOOL; +} +extern "C" { + pub fn GetWindowWord(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> WORD; +} +extern "C" { + pub fn SetWindowWord(hWnd: HWND, nIndex: ::std::os::raw::c_int, wNewWord: WORD) -> WORD; +} +extern "C" { + pub fn GetWindowLongA(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> LONG; +} +extern "C" { + pub fn GetWindowLongW(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> LONG; +} +extern "C" { + pub fn SetWindowLongA(hWnd: HWND, nIndex: ::std::os::raw::c_int, dwNewLong: LONG) -> LONG; +} +extern "C" { + pub fn SetWindowLongW(hWnd: HWND, nIndex: ::std::os::raw::c_int, dwNewLong: LONG) -> LONG; +} +extern "C" { + pub fn GetWindowLongPtrA(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> LONG_PTR; +} +extern "C" { + pub fn GetWindowLongPtrW(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> LONG_PTR; +} +extern "C" { + pub fn SetWindowLongPtrA( + hWnd: HWND, + nIndex: ::std::os::raw::c_int, + dwNewLong: LONG_PTR, + ) -> LONG_PTR; +} +extern "C" { + pub fn SetWindowLongPtrW( + hWnd: HWND, + nIndex: ::std::os::raw::c_int, + dwNewLong: LONG_PTR, + ) -> LONG_PTR; +} +extern "C" { + pub fn GetClassWord(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> WORD; +} +extern "C" { + pub fn SetClassWord(hWnd: HWND, nIndex: ::std::os::raw::c_int, wNewWord: WORD) -> WORD; +} +extern "C" { + pub fn GetClassLongA(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> DWORD; +} +extern "C" { + pub fn GetClassLongW(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> DWORD; +} +extern "C" { + pub fn SetClassLongA(hWnd: HWND, nIndex: ::std::os::raw::c_int, dwNewLong: LONG) -> DWORD; +} +extern "C" { + pub fn SetClassLongW(hWnd: HWND, nIndex: ::std::os::raw::c_int, dwNewLong: LONG) -> DWORD; +} +extern "C" { + pub fn GetClassLongPtrA(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> ULONG_PTR; +} +extern "C" { + pub fn GetClassLongPtrW(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> ULONG_PTR; +} +extern "C" { + pub fn SetClassLongPtrA( + hWnd: HWND, + nIndex: ::std::os::raw::c_int, + dwNewLong: LONG_PTR, + ) -> ULONG_PTR; +} +extern "C" { + pub fn SetClassLongPtrW( + hWnd: HWND, + nIndex: ::std::os::raw::c_int, + dwNewLong: LONG_PTR, + ) -> ULONG_PTR; +} +extern "C" { + pub fn GetProcessDefaultLayout(pdwDefaultLayout: *mut DWORD) -> BOOL; +} +extern "C" { + pub fn SetProcessDefaultLayout(dwDefaultLayout: DWORD) -> BOOL; +} +extern "C" { + pub fn GetDesktopWindow() -> HWND; +} +extern "C" { + pub fn GetParent(hWnd: HWND) -> HWND; +} +extern "C" { + pub fn SetParent(hWndChild: HWND, hWndNewParent: HWND) -> HWND; +} +extern "C" { + pub fn EnumChildWindows(hWndParent: HWND, lpEnumFunc: WNDENUMPROC, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn FindWindowA(lpClassName: LPCSTR, lpWindowName: LPCSTR) -> HWND; +} +extern "C" { + pub fn FindWindowW(lpClassName: LPCWSTR, lpWindowName: LPCWSTR) -> HWND; +} +extern "C" { + pub fn FindWindowExA( + hWndParent: HWND, + hWndChildAfter: HWND, + lpszClass: LPCSTR, + lpszWindow: LPCSTR, + ) -> HWND; +} +extern "C" { + pub fn FindWindowExW( + hWndParent: HWND, + hWndChildAfter: HWND, + lpszClass: LPCWSTR, + lpszWindow: LPCWSTR, + ) -> HWND; +} +extern "C" { + pub fn GetShellWindow() -> HWND; +} +extern "C" { + pub fn RegisterShellHookWindow(hwnd: HWND) -> BOOL; +} +extern "C" { + pub fn DeregisterShellHookWindow(hwnd: HWND) -> BOOL; +} +extern "C" { + pub fn EnumWindows(lpEnumFunc: WNDENUMPROC, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn EnumThreadWindows(dwThreadId: DWORD, lpfn: WNDENUMPROC, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn GetClassNameA( + hWnd: HWND, + lpClassName: LPSTR, + nMaxCount: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetClassNameW( + hWnd: HWND, + lpClassName: LPWSTR, + nMaxCount: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetTopWindow(hWnd: HWND) -> HWND; +} +extern "C" { + pub fn GetWindowThreadProcessId(hWnd: HWND, lpdwProcessId: LPDWORD) -> DWORD; +} +extern "C" { + pub fn IsGUIThread(bConvert: BOOL) -> BOOL; +} +extern "C" { + pub fn GetLastActivePopup(hWnd: HWND) -> HWND; +} +extern "C" { + pub fn GetWindow(hWnd: HWND, uCmd: UINT) -> HWND; +} +extern "C" { + pub fn SetWindowsHookA(nFilterType: ::std::os::raw::c_int, pfnFilterProc: HOOKPROC) -> HHOOK; +} +extern "C" { + pub fn SetWindowsHookW(nFilterType: ::std::os::raw::c_int, pfnFilterProc: HOOKPROC) -> HHOOK; +} +extern "C" { + pub fn UnhookWindowsHook(nCode: ::std::os::raw::c_int, pfnFilterProc: HOOKPROC) -> BOOL; +} +extern "C" { + pub fn SetWindowsHookExA( + idHook: ::std::os::raw::c_int, + lpfn: HOOKPROC, + hmod: HINSTANCE, + dwThreadId: DWORD, + ) -> HHOOK; +} +extern "C" { + pub fn SetWindowsHookExW( + idHook: ::std::os::raw::c_int, + lpfn: HOOKPROC, + hmod: HINSTANCE, + dwThreadId: DWORD, + ) -> HHOOK; +} +extern "C" { + pub fn UnhookWindowsHookEx(hhk: HHOOK) -> BOOL; +} +extern "C" { + pub fn CallNextHookEx( + hhk: HHOOK, + nCode: ::std::os::raw::c_int, + wParam: WPARAM, + lParam: LPARAM, + ) -> LRESULT; +} +extern "C" { + pub fn CheckMenuRadioItem( + hmenu: HMENU, + first: UINT, + last: UINT, + check: UINT, + flags: UINT, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MENUITEMTEMPLATEHEADER { + pub versionNumber: WORD, + pub offset: WORD, +} +pub type PMENUITEMTEMPLATEHEADER = *mut MENUITEMTEMPLATEHEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MENUITEMTEMPLATE { + pub mtOption: WORD, + pub mtID: WORD, + pub mtString: [WCHAR; 1usize], +} +pub type PMENUITEMTEMPLATE = *mut MENUITEMTEMPLATE; +extern "C" { + pub fn LoadBitmapA(hInstance: HINSTANCE, lpBitmapName: LPCSTR) -> HBITMAP; +} +extern "C" { + pub fn LoadBitmapW(hInstance: HINSTANCE, lpBitmapName: LPCWSTR) -> HBITMAP; +} +extern "C" { + pub fn LoadCursorA(hInstance: HINSTANCE, lpCursorName: LPCSTR) -> HCURSOR; +} +extern "C" { + pub fn LoadCursorW(hInstance: HINSTANCE, lpCursorName: LPCWSTR) -> HCURSOR; +} +extern "C" { + pub fn LoadCursorFromFileA(lpFileName: LPCSTR) -> HCURSOR; +} +extern "C" { + pub fn LoadCursorFromFileW(lpFileName: LPCWSTR) -> HCURSOR; +} +extern "C" { + pub fn CreateCursor( + hInst: HINSTANCE, + xHotSpot: ::std::os::raw::c_int, + yHotSpot: ::std::os::raw::c_int, + nWidth: ::std::os::raw::c_int, + nHeight: ::std::os::raw::c_int, + pvANDPlane: *const ::std::os::raw::c_void, + pvXORPlane: *const ::std::os::raw::c_void, + ) -> HCURSOR; +} +extern "C" { + pub fn DestroyCursor(hCursor: HCURSOR) -> BOOL; +} +extern "C" { + pub fn SetSystemCursor(hcur: HCURSOR, id: DWORD) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ICONINFO { + pub fIcon: BOOL, + pub xHotspot: DWORD, + pub yHotspot: DWORD, + pub hbmMask: HBITMAP, + pub hbmColor: HBITMAP, +} +pub type ICONINFO = _ICONINFO; +pub type PICONINFO = *mut ICONINFO; +extern "C" { + pub fn LoadIconA(hInstance: HINSTANCE, lpIconName: LPCSTR) -> HICON; +} +extern "C" { + pub fn LoadIconW(hInstance: HINSTANCE, lpIconName: LPCWSTR) -> HICON; +} +extern "C" { + pub fn PrivateExtractIconsA( + szFileName: LPCSTR, + nIconIndex: ::std::os::raw::c_int, + cxIcon: ::std::os::raw::c_int, + cyIcon: ::std::os::raw::c_int, + phicon: *mut HICON, + piconid: *mut UINT, + nIcons: UINT, + flags: UINT, + ) -> UINT; +} +extern "C" { + pub fn PrivateExtractIconsW( + szFileName: LPCWSTR, + nIconIndex: ::std::os::raw::c_int, + cxIcon: ::std::os::raw::c_int, + cyIcon: ::std::os::raw::c_int, + phicon: *mut HICON, + piconid: *mut UINT, + nIcons: UINT, + flags: UINT, + ) -> UINT; +} +extern "C" { + pub fn CreateIcon( + hInstance: HINSTANCE, + nWidth: ::std::os::raw::c_int, + nHeight: ::std::os::raw::c_int, + cPlanes: BYTE, + cBitsPixel: BYTE, + lpbANDbits: *const BYTE, + lpbXORbits: *const BYTE, + ) -> HICON; +} +extern "C" { + pub fn DestroyIcon(hIcon: HICON) -> BOOL; +} +extern "C" { + pub fn LookupIconIdFromDirectory(presbits: PBYTE, fIcon: BOOL) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn LookupIconIdFromDirectoryEx( + presbits: PBYTE, + fIcon: BOOL, + cxDesired: ::std::os::raw::c_int, + cyDesired: ::std::os::raw::c_int, + Flags: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn CreateIconFromResource( + presbits: PBYTE, + dwResSize: DWORD, + fIcon: BOOL, + dwVer: DWORD, + ) -> HICON; +} +extern "C" { + pub fn CreateIconFromResourceEx( + presbits: PBYTE, + dwResSize: DWORD, + fIcon: BOOL, + dwVer: DWORD, + cxDesired: ::std::os::raw::c_int, + cyDesired: ::std::os::raw::c_int, + Flags: UINT, + ) -> HICON; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCURSORSHAPE { + pub xHotSpot: ::std::os::raw::c_int, + pub yHotSpot: ::std::os::raw::c_int, + pub cx: ::std::os::raw::c_int, + pub cy: ::std::os::raw::c_int, + pub cbWidth: ::std::os::raw::c_int, + pub Planes: BYTE, + pub BitsPixel: BYTE, +} +pub type CURSORSHAPE = tagCURSORSHAPE; +pub type LPCURSORSHAPE = *mut tagCURSORSHAPE; +extern "C" { + pub fn SetThreadCursorCreationScaling(cursorDpi: UINT) -> UINT; +} +extern "C" { + pub fn LoadImageA( + hInst: HINSTANCE, + name: LPCSTR, + type_: UINT, + cx: ::std::os::raw::c_int, + cy: ::std::os::raw::c_int, + fuLoad: UINT, + ) -> HANDLE; +} +extern "C" { + pub fn LoadImageW( + hInst: HINSTANCE, + name: LPCWSTR, + type_: UINT, + cx: ::std::os::raw::c_int, + cy: ::std::os::raw::c_int, + fuLoad: UINT, + ) -> HANDLE; +} +extern "C" { + pub fn CopyImage( + h: HANDLE, + type_: UINT, + cx: ::std::os::raw::c_int, + cy: ::std::os::raw::c_int, + flags: UINT, + ) -> HANDLE; +} +extern "C" { + pub fn DrawIconEx( + hdc: HDC, + xLeft: ::std::os::raw::c_int, + yTop: ::std::os::raw::c_int, + hIcon: HICON, + cxWidth: ::std::os::raw::c_int, + cyWidth: ::std::os::raw::c_int, + istepIfAniCur: UINT, + hbrFlickerFreeDraw: HBRUSH, + diFlags: UINT, + ) -> BOOL; +} +extern "C" { + pub fn CreateIconIndirect(piconinfo: PICONINFO) -> HICON; +} +extern "C" { + pub fn CopyIcon(hIcon: HICON) -> HICON; +} +extern "C" { + pub fn GetIconInfo(hIcon: HICON, piconinfo: PICONINFO) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ICONINFOEXA { + pub cbSize: DWORD, + pub fIcon: BOOL, + pub xHotspot: DWORD, + pub yHotspot: DWORD, + pub hbmMask: HBITMAP, + pub hbmColor: HBITMAP, + pub wResID: WORD, + pub szModName: [CHAR; 260usize], + pub szResName: [CHAR; 260usize], +} +pub type ICONINFOEXA = _ICONINFOEXA; +pub type PICONINFOEXA = *mut _ICONINFOEXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ICONINFOEXW { + pub cbSize: DWORD, + pub fIcon: BOOL, + pub xHotspot: DWORD, + pub yHotspot: DWORD, + pub hbmMask: HBITMAP, + pub hbmColor: HBITMAP, + pub wResID: WORD, + pub szModName: [WCHAR; 260usize], + pub szResName: [WCHAR; 260usize], +} +pub type ICONINFOEXW = _ICONINFOEXW; +pub type PICONINFOEXW = *mut _ICONINFOEXW; +pub type ICONINFOEX = ICONINFOEXA; +pub type PICONINFOEX = PICONINFOEXA; +extern "C" { + pub fn GetIconInfoExA(hicon: HICON, piconinfo: PICONINFOEXA) -> BOOL; +} +extern "C" { + pub fn GetIconInfoExW(hicon: HICON, piconinfo: PICONINFOEXW) -> BOOL; +} +pub const EDIT_CONTROL_FEATURE_EDIT_CONTROL_FEATURE_ENTERPRISE_DATA_PROTECTION_PASTE_SUPPORT: + EDIT_CONTROL_FEATURE = 0; +pub const EDIT_CONTROL_FEATURE_EDIT_CONTROL_FEATURE_PASTE_NOTIFICATIONS: EDIT_CONTROL_FEATURE = 1; +pub type EDIT_CONTROL_FEATURE = ::std::os::raw::c_int; +extern "C" { + pub fn IsDialogMessageA(hDlg: HWND, lpMsg: LPMSG) -> BOOL; +} +extern "C" { + pub fn IsDialogMessageW(hDlg: HWND, lpMsg: LPMSG) -> BOOL; +} +extern "C" { + pub fn MapDialogRect(hDlg: HWND, lpRect: LPRECT) -> BOOL; +} +extern "C" { + pub fn DlgDirListA( + hDlg: HWND, + lpPathSpec: LPSTR, + nIDListBox: ::std::os::raw::c_int, + nIDStaticPath: ::std::os::raw::c_int, + uFileType: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn DlgDirListW( + hDlg: HWND, + lpPathSpec: LPWSTR, + nIDListBox: ::std::os::raw::c_int, + nIDStaticPath: ::std::os::raw::c_int, + uFileType: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn DlgDirSelectExA( + hwndDlg: HWND, + lpString: LPSTR, + chCount: ::std::os::raw::c_int, + idListBox: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn DlgDirSelectExW( + hwndDlg: HWND, + lpString: LPWSTR, + chCount: ::std::os::raw::c_int, + idListBox: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn DlgDirListComboBoxA( + hDlg: HWND, + lpPathSpec: LPSTR, + nIDComboBox: ::std::os::raw::c_int, + nIDStaticPath: ::std::os::raw::c_int, + uFiletype: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn DlgDirListComboBoxW( + hDlg: HWND, + lpPathSpec: LPWSTR, + nIDComboBox: ::std::os::raw::c_int, + nIDStaticPath: ::std::os::raw::c_int, + uFiletype: UINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn DlgDirSelectComboBoxExA( + hwndDlg: HWND, + lpString: LPSTR, + cchOut: ::std::os::raw::c_int, + idComboBox: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn DlgDirSelectComboBoxExW( + hwndDlg: HWND, + lpString: LPWSTR, + cchOut: ::std::os::raw::c_int, + idComboBox: ::std::os::raw::c_int, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSCROLLINFO { + pub cbSize: UINT, + pub fMask: UINT, + pub nMin: ::std::os::raw::c_int, + pub nMax: ::std::os::raw::c_int, + pub nPage: UINT, + pub nPos: ::std::os::raw::c_int, + pub nTrackPos: ::std::os::raw::c_int, +} +pub type SCROLLINFO = tagSCROLLINFO; +pub type LPSCROLLINFO = *mut tagSCROLLINFO; +pub type LPCSCROLLINFO = *const SCROLLINFO; +extern "C" { + pub fn SetScrollInfo( + hwnd: HWND, + nBar: ::std::os::raw::c_int, + lpsi: LPCSCROLLINFO, + redraw: BOOL, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetScrollInfo(hwnd: HWND, nBar: ::std::os::raw::c_int, lpsi: LPSCROLLINFO) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMDICREATESTRUCTA { + pub szClass: LPCSTR, + pub szTitle: LPCSTR, + pub hOwner: HANDLE, + pub x: ::std::os::raw::c_int, + pub y: ::std::os::raw::c_int, + pub cx: ::std::os::raw::c_int, + pub cy: ::std::os::raw::c_int, + pub style: DWORD, + pub lParam: LPARAM, +} +pub type MDICREATESTRUCTA = tagMDICREATESTRUCTA; +pub type LPMDICREATESTRUCTA = *mut tagMDICREATESTRUCTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMDICREATESTRUCTW { + pub szClass: LPCWSTR, + pub szTitle: LPCWSTR, + pub hOwner: HANDLE, + pub x: ::std::os::raw::c_int, + pub y: ::std::os::raw::c_int, + pub cx: ::std::os::raw::c_int, + pub cy: ::std::os::raw::c_int, + pub style: DWORD, + pub lParam: LPARAM, +} +pub type MDICREATESTRUCTW = tagMDICREATESTRUCTW; +pub type LPMDICREATESTRUCTW = *mut tagMDICREATESTRUCTW; +pub type MDICREATESTRUCT = MDICREATESTRUCTA; +pub type LPMDICREATESTRUCT = LPMDICREATESTRUCTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCLIENTCREATESTRUCT { + pub hWindowMenu: HANDLE, + pub idFirstChild: UINT, +} +pub type CLIENTCREATESTRUCT = tagCLIENTCREATESTRUCT; +pub type LPCLIENTCREATESTRUCT = *mut tagCLIENTCREATESTRUCT; +extern "C" { + pub fn DefFrameProcA( + hWnd: HWND, + hWndMDIClient: HWND, + uMsg: UINT, + wParam: WPARAM, + lParam: LPARAM, + ) -> LRESULT; +} +extern "C" { + pub fn DefFrameProcW( + hWnd: HWND, + hWndMDIClient: HWND, + uMsg: UINT, + wParam: WPARAM, + lParam: LPARAM, + ) -> LRESULT; +} +extern "C" { + pub fn DefMDIChildProcA(hWnd: HWND, uMsg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; +} +extern "C" { + pub fn DefMDIChildProcW(hWnd: HWND, uMsg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; +} +extern "C" { + pub fn TranslateMDISysAccel(hWndClient: HWND, lpMsg: LPMSG) -> BOOL; +} +extern "C" { + pub fn ArrangeIconicWindows(hWnd: HWND) -> UINT; +} +extern "C" { + pub fn CreateMDIWindowA( + lpClassName: LPCSTR, + lpWindowName: LPCSTR, + dwStyle: DWORD, + X: ::std::os::raw::c_int, + Y: ::std::os::raw::c_int, + nWidth: ::std::os::raw::c_int, + nHeight: ::std::os::raw::c_int, + hWndParent: HWND, + hInstance: HINSTANCE, + lParam: LPARAM, + ) -> HWND; +} +extern "C" { + pub fn CreateMDIWindowW( + lpClassName: LPCWSTR, + lpWindowName: LPCWSTR, + dwStyle: DWORD, + X: ::std::os::raw::c_int, + Y: ::std::os::raw::c_int, + nWidth: ::std::os::raw::c_int, + nHeight: ::std::os::raw::c_int, + hWndParent: HWND, + hInstance: HINSTANCE, + lParam: LPARAM, + ) -> HWND; +} +extern "C" { + pub fn TileWindows( + hwndParent: HWND, + wHow: UINT, + lpRect: *const RECT, + cKids: UINT, + lpKids: *const HWND, + ) -> WORD; +} +extern "C" { + pub fn CascadeWindows( + hwndParent: HWND, + wHow: UINT, + lpRect: *const RECT, + cKids: UINT, + lpKids: *const HWND, + ) -> WORD; +} +pub type HELPPOLY = DWORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMULTIKEYHELPA { + pub mkSize: DWORD, + pub mkKeylist: CHAR, + pub szKeyphrase: [CHAR; 1usize], +} +pub type MULTIKEYHELPA = tagMULTIKEYHELPA; +pub type PMULTIKEYHELPA = *mut tagMULTIKEYHELPA; +pub type LPMULTIKEYHELPA = *mut tagMULTIKEYHELPA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMULTIKEYHELPW { + pub mkSize: DWORD, + pub mkKeylist: WCHAR, + pub szKeyphrase: [WCHAR; 1usize], +} +pub type MULTIKEYHELPW = tagMULTIKEYHELPW; +pub type PMULTIKEYHELPW = *mut tagMULTIKEYHELPW; +pub type LPMULTIKEYHELPW = *mut tagMULTIKEYHELPW; +pub type MULTIKEYHELP = MULTIKEYHELPA; +pub type PMULTIKEYHELP = PMULTIKEYHELPA; +pub type LPMULTIKEYHELP = LPMULTIKEYHELPA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagHELPWININFOA { + pub wStructSize: ::std::os::raw::c_int, + pub x: ::std::os::raw::c_int, + pub y: ::std::os::raw::c_int, + pub dx: ::std::os::raw::c_int, + pub dy: ::std::os::raw::c_int, + pub wMax: ::std::os::raw::c_int, + pub rgchMember: [CHAR; 2usize], +} +pub type HELPWININFOA = tagHELPWININFOA; +pub type PHELPWININFOA = *mut tagHELPWININFOA; +pub type LPHELPWININFOA = *mut tagHELPWININFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagHELPWININFOW { + pub wStructSize: ::std::os::raw::c_int, + pub x: ::std::os::raw::c_int, + pub y: ::std::os::raw::c_int, + pub dx: ::std::os::raw::c_int, + pub dy: ::std::os::raw::c_int, + pub wMax: ::std::os::raw::c_int, + pub rgchMember: [WCHAR; 2usize], +} +pub type HELPWININFOW = tagHELPWININFOW; +pub type PHELPWININFOW = *mut tagHELPWININFOW; +pub type LPHELPWININFOW = *mut tagHELPWININFOW; +pub type HELPWININFO = HELPWININFOA; +pub type PHELPWININFO = PHELPWININFOA; +pub type LPHELPWININFO = LPHELPWININFOA; +extern "C" { + pub fn WinHelpA(hWndMain: HWND, lpszHelp: LPCSTR, uCommand: UINT, dwData: ULONG_PTR) -> BOOL; +} +extern "C" { + pub fn WinHelpW(hWndMain: HWND, lpszHelp: LPCWSTR, uCommand: UINT, dwData: ULONG_PTR) -> BOOL; +} +extern "C" { + pub fn GetGuiResources(hProcess: HANDLE, uiFlags: DWORD) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagTouchPredictionParameters { + pub cbSize: UINT, + pub dwLatency: UINT, + pub dwSampleTime: UINT, + pub bUseHWTimeStamp: UINT, +} +pub type TOUCHPREDICTIONPARAMETERS = tagTouchPredictionParameters; +pub type PTOUCHPREDICTIONPARAMETERS = *mut tagTouchPredictionParameters; +pub const tagHANDEDNESS_HANDEDNESS_LEFT: tagHANDEDNESS = 0; +pub const tagHANDEDNESS_HANDEDNESS_RIGHT: tagHANDEDNESS = 1; +pub type tagHANDEDNESS = ::std::os::raw::c_int; +pub use self::tagHANDEDNESS as HANDEDNESS; +pub type PHANDEDNESS = *mut tagHANDEDNESS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagNONCLIENTMETRICSA { + pub cbSize: UINT, + pub iBorderWidth: ::std::os::raw::c_int, + pub iScrollWidth: ::std::os::raw::c_int, + pub iScrollHeight: ::std::os::raw::c_int, + pub iCaptionWidth: ::std::os::raw::c_int, + pub iCaptionHeight: ::std::os::raw::c_int, + pub lfCaptionFont: LOGFONTA, + pub iSmCaptionWidth: ::std::os::raw::c_int, + pub iSmCaptionHeight: ::std::os::raw::c_int, + pub lfSmCaptionFont: LOGFONTA, + pub iMenuWidth: ::std::os::raw::c_int, + pub iMenuHeight: ::std::os::raw::c_int, + pub lfMenuFont: LOGFONTA, + pub lfStatusFont: LOGFONTA, + pub lfMessageFont: LOGFONTA, + pub iPaddedBorderWidth: ::std::os::raw::c_int, +} +pub type NONCLIENTMETRICSA = tagNONCLIENTMETRICSA; +pub type PNONCLIENTMETRICSA = *mut tagNONCLIENTMETRICSA; +pub type LPNONCLIENTMETRICSA = *mut tagNONCLIENTMETRICSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagNONCLIENTMETRICSW { + pub cbSize: UINT, + pub iBorderWidth: ::std::os::raw::c_int, + pub iScrollWidth: ::std::os::raw::c_int, + pub iScrollHeight: ::std::os::raw::c_int, + pub iCaptionWidth: ::std::os::raw::c_int, + pub iCaptionHeight: ::std::os::raw::c_int, + pub lfCaptionFont: LOGFONTW, + pub iSmCaptionWidth: ::std::os::raw::c_int, + pub iSmCaptionHeight: ::std::os::raw::c_int, + pub lfSmCaptionFont: LOGFONTW, + pub iMenuWidth: ::std::os::raw::c_int, + pub iMenuHeight: ::std::os::raw::c_int, + pub lfMenuFont: LOGFONTW, + pub lfStatusFont: LOGFONTW, + pub lfMessageFont: LOGFONTW, + pub iPaddedBorderWidth: ::std::os::raw::c_int, +} +pub type NONCLIENTMETRICSW = tagNONCLIENTMETRICSW; +pub type PNONCLIENTMETRICSW = *mut tagNONCLIENTMETRICSW; +pub type LPNONCLIENTMETRICSW = *mut tagNONCLIENTMETRICSW; +pub type NONCLIENTMETRICS = NONCLIENTMETRICSA; +pub type PNONCLIENTMETRICS = PNONCLIENTMETRICSA; +pub type LPNONCLIENTMETRICS = LPNONCLIENTMETRICSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMINIMIZEDMETRICS { + pub cbSize: UINT, + pub iWidth: ::std::os::raw::c_int, + pub iHorzGap: ::std::os::raw::c_int, + pub iVertGap: ::std::os::raw::c_int, + pub iArrange: ::std::os::raw::c_int, +} +pub type MINIMIZEDMETRICS = tagMINIMIZEDMETRICS; +pub type PMINIMIZEDMETRICS = *mut tagMINIMIZEDMETRICS; +pub type LPMINIMIZEDMETRICS = *mut tagMINIMIZEDMETRICS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagICONMETRICSA { + pub cbSize: UINT, + pub iHorzSpacing: ::std::os::raw::c_int, + pub iVertSpacing: ::std::os::raw::c_int, + pub iTitleWrap: ::std::os::raw::c_int, + pub lfFont: LOGFONTA, +} +pub type ICONMETRICSA = tagICONMETRICSA; +pub type PICONMETRICSA = *mut tagICONMETRICSA; +pub type LPICONMETRICSA = *mut tagICONMETRICSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagICONMETRICSW { + pub cbSize: UINT, + pub iHorzSpacing: ::std::os::raw::c_int, + pub iVertSpacing: ::std::os::raw::c_int, + pub iTitleWrap: ::std::os::raw::c_int, + pub lfFont: LOGFONTW, +} +pub type ICONMETRICSW = tagICONMETRICSW; +pub type PICONMETRICSW = *mut tagICONMETRICSW; +pub type LPICONMETRICSW = *mut tagICONMETRICSW; +pub type ICONMETRICS = ICONMETRICSA; +pub type PICONMETRICS = PICONMETRICSA; +pub type LPICONMETRICS = LPICONMETRICSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagANIMATIONINFO { + pub cbSize: UINT, + pub iMinAnimate: ::std::os::raw::c_int, +} +pub type ANIMATIONINFO = tagANIMATIONINFO; +pub type LPANIMATIONINFO = *mut tagANIMATIONINFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSERIALKEYSA { + pub cbSize: UINT, + pub dwFlags: DWORD, + pub lpszActivePort: LPSTR, + pub lpszPort: LPSTR, + pub iBaudRate: UINT, + pub iPortState: UINT, + pub iActive: UINT, +} +pub type SERIALKEYSA = tagSERIALKEYSA; +pub type LPSERIALKEYSA = *mut tagSERIALKEYSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSERIALKEYSW { + pub cbSize: UINT, + pub dwFlags: DWORD, + pub lpszActivePort: LPWSTR, + pub lpszPort: LPWSTR, + pub iBaudRate: UINT, + pub iPortState: UINT, + pub iActive: UINT, +} +pub type SERIALKEYSW = tagSERIALKEYSW; +pub type LPSERIALKEYSW = *mut tagSERIALKEYSW; +pub type SERIALKEYS = SERIALKEYSA; +pub type LPSERIALKEYS = LPSERIALKEYSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagHIGHCONTRASTA { + pub cbSize: UINT, + pub dwFlags: DWORD, + pub lpszDefaultScheme: LPSTR, +} +pub type HIGHCONTRASTA = tagHIGHCONTRASTA; +pub type LPHIGHCONTRASTA = *mut tagHIGHCONTRASTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagHIGHCONTRASTW { + pub cbSize: UINT, + pub dwFlags: DWORD, + pub lpszDefaultScheme: LPWSTR, +} +pub type HIGHCONTRASTW = tagHIGHCONTRASTW; +pub type LPHIGHCONTRASTW = *mut tagHIGHCONTRASTW; +pub type HIGHCONTRAST = HIGHCONTRASTA; +pub type LPHIGHCONTRAST = LPHIGHCONTRASTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _VIDEOPARAMETERS { + pub Guid: GUID, + pub dwOffset: ULONG, + pub dwCommand: ULONG, + pub dwFlags: ULONG, + pub dwMode: ULONG, + pub dwTVStandard: ULONG, + pub dwAvailableModes: ULONG, + pub dwAvailableTVStandard: ULONG, + pub dwFlickerFilter: ULONG, + pub dwOverScanX: ULONG, + pub dwOverScanY: ULONG, + pub dwMaxUnscaledX: ULONG, + pub dwMaxUnscaledY: ULONG, + pub dwPositionX: ULONG, + pub dwPositionY: ULONG, + pub dwBrightness: ULONG, + pub dwContrast: ULONG, + pub dwCPType: ULONG, + pub dwCPCommand: ULONG, + pub dwCPStandard: ULONG, + pub dwCPKey: ULONG, + pub bCP_APSTriggerBits: ULONG, + pub bOEMCopyProtection: [UCHAR; 256usize], +} +pub type VIDEOPARAMETERS = _VIDEOPARAMETERS; +pub type PVIDEOPARAMETERS = *mut _VIDEOPARAMETERS; +pub type LPVIDEOPARAMETERS = *mut _VIDEOPARAMETERS; +extern "C" { + pub fn ChangeDisplaySettingsA(lpDevMode: *mut DEVMODEA, dwFlags: DWORD) -> LONG; +} +extern "C" { + pub fn ChangeDisplaySettingsW(lpDevMode: *mut DEVMODEW, dwFlags: DWORD) -> LONG; +} +extern "C" { + pub fn ChangeDisplaySettingsExA( + lpszDeviceName: LPCSTR, + lpDevMode: *mut DEVMODEA, + hwnd: HWND, + dwflags: DWORD, + lParam: LPVOID, + ) -> LONG; +} +extern "C" { + pub fn ChangeDisplaySettingsExW( + lpszDeviceName: LPCWSTR, + lpDevMode: *mut DEVMODEW, + hwnd: HWND, + dwflags: DWORD, + lParam: LPVOID, + ) -> LONG; +} +extern "C" { + pub fn EnumDisplaySettingsA( + lpszDeviceName: LPCSTR, + iModeNum: DWORD, + lpDevMode: *mut DEVMODEA, + ) -> BOOL; +} +extern "C" { + pub fn EnumDisplaySettingsW( + lpszDeviceName: LPCWSTR, + iModeNum: DWORD, + lpDevMode: *mut DEVMODEW, + ) -> BOOL; +} +extern "C" { + pub fn EnumDisplaySettingsExA( + lpszDeviceName: LPCSTR, + iModeNum: DWORD, + lpDevMode: *mut DEVMODEA, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumDisplaySettingsExW( + lpszDeviceName: LPCWSTR, + iModeNum: DWORD, + lpDevMode: *mut DEVMODEW, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumDisplayDevicesA( + lpDevice: LPCSTR, + iDevNum: DWORD, + lpDisplayDevice: PDISPLAY_DEVICEA, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumDisplayDevicesW( + lpDevice: LPCWSTR, + iDevNum: DWORD, + lpDisplayDevice: PDISPLAY_DEVICEW, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetDisplayConfigBufferSizes( + flags: UINT32, + numPathArrayElements: *mut UINT32, + numModeInfoArrayElements: *mut UINT32, + ) -> LONG; +} +extern "C" { + pub fn SetDisplayConfig( + numPathArrayElements: UINT32, + pathArray: *mut DISPLAYCONFIG_PATH_INFO, + numModeInfoArrayElements: UINT32, + modeInfoArray: *mut DISPLAYCONFIG_MODE_INFO, + flags: UINT32, + ) -> LONG; +} +extern "C" { + pub fn QueryDisplayConfig( + flags: UINT32, + numPathArrayElements: *mut UINT32, + pathArray: *mut DISPLAYCONFIG_PATH_INFO, + numModeInfoArrayElements: *mut UINT32, + modeInfoArray: *mut DISPLAYCONFIG_MODE_INFO, + currentTopologyId: *mut DISPLAYCONFIG_TOPOLOGY_ID, + ) -> LONG; +} +extern "C" { + pub fn DisplayConfigGetDeviceInfo(requestPacket: *mut DISPLAYCONFIG_DEVICE_INFO_HEADER) + -> LONG; +} +extern "C" { + pub fn DisplayConfigSetDeviceInfo(setPacket: *mut DISPLAYCONFIG_DEVICE_INFO_HEADER) -> LONG; +} +extern "C" { + pub fn SystemParametersInfoA( + uiAction: UINT, + uiParam: UINT, + pvParam: PVOID, + fWinIni: UINT, + ) -> BOOL; +} +extern "C" { + pub fn SystemParametersInfoW( + uiAction: UINT, + uiParam: UINT, + pvParam: PVOID, + fWinIni: UINT, + ) -> BOOL; +} +extern "C" { + pub fn SystemParametersInfoForDpi( + uiAction: UINT, + uiParam: UINT, + pvParam: PVOID, + fWinIni: UINT, + dpi: UINT, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagFILTERKEYS { + pub cbSize: UINT, + pub dwFlags: DWORD, + pub iWaitMSec: DWORD, + pub iDelayMSec: DWORD, + pub iRepeatMSec: DWORD, + pub iBounceMSec: DWORD, +} +pub type FILTERKEYS = tagFILTERKEYS; +pub type LPFILTERKEYS = *mut tagFILTERKEYS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSTICKYKEYS { + pub cbSize: UINT, + pub dwFlags: DWORD, +} +pub type STICKYKEYS = tagSTICKYKEYS; +pub type LPSTICKYKEYS = *mut tagSTICKYKEYS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMOUSEKEYS { + pub cbSize: UINT, + pub dwFlags: DWORD, + pub iMaxSpeed: DWORD, + pub iTimeToMaxSpeed: DWORD, + pub iCtrlSpeed: DWORD, + pub dwReserved1: DWORD, + pub dwReserved2: DWORD, +} +pub type MOUSEKEYS = tagMOUSEKEYS; +pub type LPMOUSEKEYS = *mut tagMOUSEKEYS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagACCESSTIMEOUT { + pub cbSize: UINT, + pub dwFlags: DWORD, + pub iTimeOutMSec: DWORD, +} +pub type ACCESSTIMEOUT = tagACCESSTIMEOUT; +pub type LPACCESSTIMEOUT = *mut tagACCESSTIMEOUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSOUNDSENTRYA { + pub cbSize: UINT, + pub dwFlags: DWORD, + pub iFSTextEffect: DWORD, + pub iFSTextEffectMSec: DWORD, + pub iFSTextEffectColorBits: DWORD, + pub iFSGrafEffect: DWORD, + pub iFSGrafEffectMSec: DWORD, + pub iFSGrafEffectColor: DWORD, + pub iWindowsEffect: DWORD, + pub iWindowsEffectMSec: DWORD, + pub lpszWindowsEffectDLL: LPSTR, + pub iWindowsEffectOrdinal: DWORD, +} +pub type SOUNDSENTRYA = tagSOUNDSENTRYA; +pub type LPSOUNDSENTRYA = *mut tagSOUNDSENTRYA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSOUNDSENTRYW { + pub cbSize: UINT, + pub dwFlags: DWORD, + pub iFSTextEffect: DWORD, + pub iFSTextEffectMSec: DWORD, + pub iFSTextEffectColorBits: DWORD, + pub iFSGrafEffect: DWORD, + pub iFSGrafEffectMSec: DWORD, + pub iFSGrafEffectColor: DWORD, + pub iWindowsEffect: DWORD, + pub iWindowsEffectMSec: DWORD, + pub lpszWindowsEffectDLL: LPWSTR, + pub iWindowsEffectOrdinal: DWORD, +} +pub type SOUNDSENTRYW = tagSOUNDSENTRYW; +pub type LPSOUNDSENTRYW = *mut tagSOUNDSENTRYW; +pub type SOUNDSENTRY = SOUNDSENTRYA; +pub type LPSOUNDSENTRY = LPSOUNDSENTRYA; +extern "C" { + pub fn SoundSentry() -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagTOGGLEKEYS { + pub cbSize: UINT, + pub dwFlags: DWORD, +} +pub type TOGGLEKEYS = tagTOGGLEKEYS; +pub type LPTOGGLEKEYS = *mut tagTOGGLEKEYS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagAUDIODESCRIPTION { + pub cbSize: UINT, + pub Enabled: BOOL, + pub Locale: LCID, +} +pub type AUDIODESCRIPTION = tagAUDIODESCRIPTION; +pub type LPAUDIODESCRIPTION = *mut tagAUDIODESCRIPTION; +extern "C" { + pub fn SetDebugErrorLevel(dwLevel: DWORD); +} +extern "C" { + pub fn SetLastErrorEx(dwErrCode: DWORD, dwType: DWORD); +} +extern "C" { + pub fn InternalGetWindowText( + hWnd: HWND, + pString: LPWSTR, + cchMaxCount: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn CancelShutdown() -> BOOL; +} +extern "C" { + pub fn MonitorFromPoint(pt: POINT, dwFlags: DWORD) -> HMONITOR; +} +extern "C" { + pub fn MonitorFromRect(lprc: LPCRECT, dwFlags: DWORD) -> HMONITOR; +} +extern "C" { + pub fn MonitorFromWindow(hwnd: HWND, dwFlags: DWORD) -> HMONITOR; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMONITORINFO { + pub cbSize: DWORD, + pub rcMonitor: RECT, + pub rcWork: RECT, + pub dwFlags: DWORD, +} +pub type MONITORINFO = tagMONITORINFO; +pub type LPMONITORINFO = *mut tagMONITORINFO; +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct tagMONITORINFOEXA { + pub __bindgen_padding_0: [u8; 40usize], + pub szDevice: [CHAR; 32usize], +} +pub type MONITORINFOEXA = tagMONITORINFOEXA; +pub type LPMONITORINFOEXA = *mut tagMONITORINFOEXA; +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct tagMONITORINFOEXW { + pub __bindgen_padding_0: [u16; 20usize], + pub szDevice: [WCHAR; 32usize], +} +pub type MONITORINFOEXW = tagMONITORINFOEXW; +pub type LPMONITORINFOEXW = *mut tagMONITORINFOEXW; +pub type MONITORINFOEX = MONITORINFOEXA; +pub type LPMONITORINFOEX = LPMONITORINFOEXA; +extern "C" { + pub fn GetMonitorInfoA(hMonitor: HMONITOR, lpmi: LPMONITORINFO) -> BOOL; +} +extern "C" { + pub fn GetMonitorInfoW(hMonitor: HMONITOR, lpmi: LPMONITORINFO) -> BOOL; +} +pub type MONITORENUMPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: HMONITOR, arg2: HDC, arg3: LPRECT, arg4: LPARAM) -> BOOL, +>; +extern "C" { + pub fn EnumDisplayMonitors( + hdc: HDC, + lprcClip: LPCRECT, + lpfnEnum: MONITORENUMPROC, + dwData: LPARAM, + ) -> BOOL; +} +extern "C" { + pub fn NotifyWinEvent(event: DWORD, hwnd: HWND, idObject: LONG, idChild: LONG); +} +pub type WINEVENTPROC = ::std::option::Option< + unsafe extern "C" fn( + hWinEventHook: HWINEVENTHOOK, + event: DWORD, + hwnd: HWND, + idObject: LONG, + idChild: LONG, + idEventThread: DWORD, + dwmsEventTime: DWORD, + ), +>; +extern "C" { + pub fn SetWinEventHook( + eventMin: DWORD, + eventMax: DWORD, + hmodWinEventProc: HMODULE, + pfnWinEventProc: WINEVENTPROC, + idProcess: DWORD, + idThread: DWORD, + dwFlags: DWORD, + ) -> HWINEVENTHOOK; +} +extern "C" { + pub fn IsWinEventHookInstalled(event: DWORD) -> BOOL; +} +extern "C" { + pub fn UnhookWinEvent(hWinEventHook: HWINEVENTHOOK) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagGUITHREADINFO { + pub cbSize: DWORD, + pub flags: DWORD, + pub hwndActive: HWND, + pub hwndFocus: HWND, + pub hwndCapture: HWND, + pub hwndMenuOwner: HWND, + pub hwndMoveSize: HWND, + pub hwndCaret: HWND, + pub rcCaret: RECT, +} +pub type GUITHREADINFO = tagGUITHREADINFO; +pub type PGUITHREADINFO = *mut tagGUITHREADINFO; +pub type LPGUITHREADINFO = *mut tagGUITHREADINFO; +extern "C" { + pub fn GetGUIThreadInfo(idThread: DWORD, pgui: PGUITHREADINFO) -> BOOL; +} +extern "C" { + pub fn BlockInput(fBlockIt: BOOL) -> BOOL; +} +extern "C" { + pub fn SetProcessDPIAware() -> BOOL; +} +extern "C" { + pub fn IsProcessDPIAware() -> BOOL; +} +extern "C" { + pub fn SetThreadDpiAwarenessContext(dpiContext: DPI_AWARENESS_CONTEXT) + -> DPI_AWARENESS_CONTEXT; +} +extern "C" { + pub fn GetThreadDpiAwarenessContext() -> DPI_AWARENESS_CONTEXT; +} +extern "C" { + pub fn GetWindowDpiAwarenessContext(hwnd: HWND) -> DPI_AWARENESS_CONTEXT; +} +extern "C" { + pub fn GetAwarenessFromDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> DPI_AWARENESS; +} +extern "C" { + pub fn GetDpiFromDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> UINT; +} +extern "C" { + pub fn AreDpiAwarenessContextsEqual( + dpiContextA: DPI_AWARENESS_CONTEXT, + dpiContextB: DPI_AWARENESS_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn IsValidDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> BOOL; +} +extern "C" { + pub fn GetDpiForWindow(hwnd: HWND) -> UINT; +} +extern "C" { + pub fn GetDpiForSystem() -> UINT; +} +extern "C" { + pub fn GetSystemDpiForProcess(hProcess: HANDLE) -> UINT; +} +extern "C" { + pub fn EnableNonClientDpiScaling(hwnd: HWND) -> BOOL; +} +extern "C" { + pub fn InheritWindowMonitor(hwnd: HWND, hwndInherit: HWND) -> BOOL; +} +extern "C" { + pub fn SetProcessDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> BOOL; +} +extern "C" { + pub fn GetDpiAwarenessContextForProcess(hProcess: HANDLE) -> DPI_AWARENESS_CONTEXT; +} +extern "C" { + pub fn SetThreadDpiHostingBehavior(value: DPI_HOSTING_BEHAVIOR) -> DPI_HOSTING_BEHAVIOR; +} +extern "C" { + pub fn GetThreadDpiHostingBehavior() -> DPI_HOSTING_BEHAVIOR; +} +extern "C" { + pub fn GetWindowDpiHostingBehavior(hwnd: HWND) -> DPI_HOSTING_BEHAVIOR; +} +extern "C" { + pub fn GetWindowModuleFileNameA(hwnd: HWND, pszFileName: LPSTR, cchFileNameMax: UINT) -> UINT; +} +extern "C" { + pub fn GetWindowModuleFileNameW(hwnd: HWND, pszFileName: LPWSTR, cchFileNameMax: UINT) -> UINT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCURSORINFO { + pub cbSize: DWORD, + pub flags: DWORD, + pub hCursor: HCURSOR, + pub ptScreenPos: POINT, +} +pub type CURSORINFO = tagCURSORINFO; +pub type PCURSORINFO = *mut tagCURSORINFO; +pub type LPCURSORINFO = *mut tagCURSORINFO; +extern "C" { + pub fn GetCursorInfo(pci: PCURSORINFO) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagWINDOWINFO { + pub cbSize: DWORD, + pub rcWindow: RECT, + pub rcClient: RECT, + pub dwStyle: DWORD, + pub dwExStyle: DWORD, + pub dwWindowStatus: DWORD, + pub cxWindowBorders: UINT, + pub cyWindowBorders: UINT, + pub atomWindowType: ATOM, + pub wCreatorVersion: WORD, +} +pub type WINDOWINFO = tagWINDOWINFO; +pub type PWINDOWINFO = *mut tagWINDOWINFO; +pub type LPWINDOWINFO = *mut tagWINDOWINFO; +extern "C" { + pub fn GetWindowInfo(hwnd: HWND, pwi: PWINDOWINFO) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagTITLEBARINFO { + pub cbSize: DWORD, + pub rcTitleBar: RECT, + pub rgstate: [DWORD; 6usize], +} +pub type TITLEBARINFO = tagTITLEBARINFO; +pub type PTITLEBARINFO = *mut tagTITLEBARINFO; +pub type LPTITLEBARINFO = *mut tagTITLEBARINFO; +extern "C" { + pub fn GetTitleBarInfo(hwnd: HWND, pti: PTITLEBARINFO) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagTITLEBARINFOEX { + pub cbSize: DWORD, + pub rcTitleBar: RECT, + pub rgstate: [DWORD; 6usize], + pub rgrect: [RECT; 6usize], +} +pub type TITLEBARINFOEX = tagTITLEBARINFOEX; +pub type PTITLEBARINFOEX = *mut tagTITLEBARINFOEX; +pub type LPTITLEBARINFOEX = *mut tagTITLEBARINFOEX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMENUBARINFO { + pub cbSize: DWORD, + pub rcBar: RECT, + pub hMenu: HMENU, + pub hwndMenu: HWND, + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub __bindgen_padding_0: u32, +} +impl tagMENUBARINFO { + #[inline] + pub fn fBarFocused(&self) -> BOOL { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_fBarFocused(&mut self, val: BOOL) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn fFocused(&self) -> BOOL { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_fFocused(&mut self, val: BOOL) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn fUnused(&self) -> BOOL { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_fUnused(&mut self, val: BOOL) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + fBarFocused: BOOL, + fFocused: BOOL, + fUnused: BOOL, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let fBarFocused: u32 = unsafe { ::std::mem::transmute(fBarFocused) }; + fBarFocused as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let fFocused: u32 = unsafe { ::std::mem::transmute(fFocused) }; + fFocused as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let fUnused: u32 = unsafe { ::std::mem::transmute(fUnused) }; + fUnused as u64 + }); + __bindgen_bitfield_unit + } +} +pub type MENUBARINFO = tagMENUBARINFO; +pub type PMENUBARINFO = *mut tagMENUBARINFO; +pub type LPMENUBARINFO = *mut tagMENUBARINFO; +extern "C" { + pub fn GetMenuBarInfo(hwnd: HWND, idObject: LONG, idItem: LONG, pmbi: PMENUBARINFO) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSCROLLBARINFO { + pub cbSize: DWORD, + pub rcScrollBar: RECT, + pub dxyLineButton: ::std::os::raw::c_int, + pub xyThumbTop: ::std::os::raw::c_int, + pub xyThumbBottom: ::std::os::raw::c_int, + pub reserved: ::std::os::raw::c_int, + pub rgstate: [DWORD; 6usize], +} +pub type SCROLLBARINFO = tagSCROLLBARINFO; +pub type PSCROLLBARINFO = *mut tagSCROLLBARINFO; +pub type LPSCROLLBARINFO = *mut tagSCROLLBARINFO; +extern "C" { + pub fn GetScrollBarInfo(hwnd: HWND, idObject: LONG, psbi: PSCROLLBARINFO) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCOMBOBOXINFO { + pub cbSize: DWORD, + pub rcItem: RECT, + pub rcButton: RECT, + pub stateButton: DWORD, + pub hwndCombo: HWND, + pub hwndItem: HWND, + pub hwndList: HWND, +} +pub type COMBOBOXINFO = tagCOMBOBOXINFO; +pub type PCOMBOBOXINFO = *mut tagCOMBOBOXINFO; +pub type LPCOMBOBOXINFO = *mut tagCOMBOBOXINFO; +extern "C" { + pub fn GetComboBoxInfo(hwndCombo: HWND, pcbi: PCOMBOBOXINFO) -> BOOL; +} +extern "C" { + pub fn GetAncestor(hwnd: HWND, gaFlags: UINT) -> HWND; +} +extern "C" { + pub fn RealChildWindowFromPoint(hwndParent: HWND, ptParentClientCoords: POINT) -> HWND; +} +extern "C" { + pub fn RealGetWindowClassA(hwnd: HWND, ptszClassName: LPSTR, cchClassNameMax: UINT) -> UINT; +} +extern "C" { + pub fn RealGetWindowClassW(hwnd: HWND, ptszClassName: LPWSTR, cchClassNameMax: UINT) -> UINT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagALTTABINFO { + pub cbSize: DWORD, + pub cItems: ::std::os::raw::c_int, + pub cColumns: ::std::os::raw::c_int, + pub cRows: ::std::os::raw::c_int, + pub iColFocus: ::std::os::raw::c_int, + pub iRowFocus: ::std::os::raw::c_int, + pub cxItem: ::std::os::raw::c_int, + pub cyItem: ::std::os::raw::c_int, + pub ptStart: POINT, +} +pub type ALTTABINFO = tagALTTABINFO; +pub type PALTTABINFO = *mut tagALTTABINFO; +pub type LPALTTABINFO = *mut tagALTTABINFO; +extern "C" { + pub fn GetAltTabInfoA( + hwnd: HWND, + iItem: ::std::os::raw::c_int, + pati: PALTTABINFO, + pszItemText: LPSTR, + cchItemText: UINT, + ) -> BOOL; +} +extern "C" { + pub fn GetAltTabInfoW( + hwnd: HWND, + iItem: ::std::os::raw::c_int, + pati: PALTTABINFO, + pszItemText: LPWSTR, + cchItemText: UINT, + ) -> BOOL; +} +extern "C" { + pub fn GetListBoxInfo(hwnd: HWND) -> DWORD; +} +extern "C" { + pub fn LockWorkStation() -> BOOL; +} +extern "C" { + pub fn UserHandleGrantAccess(hUserHandle: HANDLE, hJob: HANDLE, bGrant: BOOL) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HRAWINPUT__ { + pub unused: ::std::os::raw::c_int, +} +pub type HRAWINPUT = *mut HRAWINPUT__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRAWINPUTHEADER { + pub dwType: DWORD, + pub dwSize: DWORD, + pub hDevice: HANDLE, + pub wParam: WPARAM, +} +pub type RAWINPUTHEADER = tagRAWINPUTHEADER; +pub type PRAWINPUTHEADER = *mut tagRAWINPUTHEADER; +pub type LPRAWINPUTHEADER = *mut tagRAWINPUTHEADER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagRAWMOUSE { + pub usFlags: USHORT, + pub __bindgen_anon_1: tagRAWMOUSE__bindgen_ty_1, + pub ulRawButtons: ULONG, + pub lLastX: LONG, + pub lLastY: LONG, + pub ulExtraInformation: ULONG, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagRAWMOUSE__bindgen_ty_1 { + pub ulButtons: ULONG, + pub __bindgen_anon_1: tagRAWMOUSE__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRAWMOUSE__bindgen_ty_1__bindgen_ty_1 { + pub usButtonFlags: USHORT, + pub usButtonData: USHORT, +} +pub type RAWMOUSE = tagRAWMOUSE; +pub type PRAWMOUSE = *mut tagRAWMOUSE; +pub type LPRAWMOUSE = *mut tagRAWMOUSE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRAWKEYBOARD { + pub MakeCode: USHORT, + pub Flags: USHORT, + pub Reserved: USHORT, + pub VKey: USHORT, + pub Message: UINT, + pub ExtraInformation: ULONG, +} +pub type RAWKEYBOARD = tagRAWKEYBOARD; +pub type PRAWKEYBOARD = *mut tagRAWKEYBOARD; +pub type LPRAWKEYBOARD = *mut tagRAWKEYBOARD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRAWHID { + pub dwSizeHid: DWORD, + pub dwCount: DWORD, + pub bRawData: [BYTE; 1usize], +} +pub type RAWHID = tagRAWHID; +pub type PRAWHID = *mut tagRAWHID; +pub type LPRAWHID = *mut tagRAWHID; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagRAWINPUT { + pub header: RAWINPUTHEADER, + pub data: tagRAWINPUT__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagRAWINPUT__bindgen_ty_1 { + pub mouse: RAWMOUSE, + pub keyboard: RAWKEYBOARD, + pub hid: RAWHID, +} +pub type RAWINPUT = tagRAWINPUT; +pub type PRAWINPUT = *mut tagRAWINPUT; +pub type LPRAWINPUT = *mut tagRAWINPUT; +extern "C" { + pub fn GetRawInputData( + hRawInput: HRAWINPUT, + uiCommand: UINT, + pData: LPVOID, + pcbSize: PUINT, + cbSizeHeader: UINT, + ) -> UINT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRID_DEVICE_INFO_MOUSE { + pub dwId: DWORD, + pub dwNumberOfButtons: DWORD, + pub dwSampleRate: DWORD, + pub fHasHorizontalWheel: BOOL, +} +pub type RID_DEVICE_INFO_MOUSE = tagRID_DEVICE_INFO_MOUSE; +pub type PRID_DEVICE_INFO_MOUSE = *mut tagRID_DEVICE_INFO_MOUSE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRID_DEVICE_INFO_KEYBOARD { + pub dwType: DWORD, + pub dwSubType: DWORD, + pub dwKeyboardMode: DWORD, + pub dwNumberOfFunctionKeys: DWORD, + pub dwNumberOfIndicators: DWORD, + pub dwNumberOfKeysTotal: DWORD, +} +pub type RID_DEVICE_INFO_KEYBOARD = tagRID_DEVICE_INFO_KEYBOARD; +pub type PRID_DEVICE_INFO_KEYBOARD = *mut tagRID_DEVICE_INFO_KEYBOARD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRID_DEVICE_INFO_HID { + pub dwVendorId: DWORD, + pub dwProductId: DWORD, + pub dwVersionNumber: DWORD, + pub usUsagePage: USHORT, + pub usUsage: USHORT, +} +pub type RID_DEVICE_INFO_HID = tagRID_DEVICE_INFO_HID; +pub type PRID_DEVICE_INFO_HID = *mut tagRID_DEVICE_INFO_HID; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagRID_DEVICE_INFO { + pub cbSize: DWORD, + pub dwType: DWORD, + pub __bindgen_anon_1: tagRID_DEVICE_INFO__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagRID_DEVICE_INFO__bindgen_ty_1 { + pub mouse: RID_DEVICE_INFO_MOUSE, + pub keyboard: RID_DEVICE_INFO_KEYBOARD, + pub hid: RID_DEVICE_INFO_HID, +} +pub type RID_DEVICE_INFO = tagRID_DEVICE_INFO; +pub type PRID_DEVICE_INFO = *mut tagRID_DEVICE_INFO; +pub type LPRID_DEVICE_INFO = *mut tagRID_DEVICE_INFO; +extern "C" { + pub fn GetRawInputDeviceInfoA( + hDevice: HANDLE, + uiCommand: UINT, + pData: LPVOID, + pcbSize: PUINT, + ) -> UINT; +} +extern "C" { + pub fn GetRawInputDeviceInfoW( + hDevice: HANDLE, + uiCommand: UINT, + pData: LPVOID, + pcbSize: PUINT, + ) -> UINT; +} +extern "C" { + pub fn GetRawInputBuffer(pData: PRAWINPUT, pcbSize: PUINT, cbSizeHeader: UINT) -> UINT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRAWINPUTDEVICE { + pub usUsagePage: USHORT, + pub usUsage: USHORT, + pub dwFlags: DWORD, + pub hwndTarget: HWND, +} +pub type RAWINPUTDEVICE = tagRAWINPUTDEVICE; +pub type PRAWINPUTDEVICE = *mut tagRAWINPUTDEVICE; +pub type LPRAWINPUTDEVICE = *mut tagRAWINPUTDEVICE; +pub type PCRAWINPUTDEVICE = *const RAWINPUTDEVICE; +extern "C" { + pub fn RegisterRawInputDevices( + pRawInputDevices: PCRAWINPUTDEVICE, + uiNumDevices: UINT, + cbSize: UINT, + ) -> BOOL; +} +extern "C" { + pub fn GetRegisteredRawInputDevices( + pRawInputDevices: PRAWINPUTDEVICE, + puiNumDevices: PUINT, + cbSize: UINT, + ) -> UINT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRAWINPUTDEVICELIST { + pub hDevice: HANDLE, + pub dwType: DWORD, +} +pub type RAWINPUTDEVICELIST = tagRAWINPUTDEVICELIST; +pub type PRAWINPUTDEVICELIST = *mut tagRAWINPUTDEVICELIST; +extern "C" { + pub fn GetRawInputDeviceList( + pRawInputDeviceList: PRAWINPUTDEVICELIST, + puiNumDevices: PUINT, + cbSize: UINT, + ) -> UINT; +} +extern "C" { + pub fn DefRawInputProc(paRawInput: *mut PRAWINPUT, nInput: INT, cbSizeHeader: UINT) -> LRESULT; +} +pub const tagPOINTER_DEVICE_TYPE_POINTER_DEVICE_TYPE_INTEGRATED_PEN: tagPOINTER_DEVICE_TYPE = 1; +pub const tagPOINTER_DEVICE_TYPE_POINTER_DEVICE_TYPE_EXTERNAL_PEN: tagPOINTER_DEVICE_TYPE = 2; +pub const tagPOINTER_DEVICE_TYPE_POINTER_DEVICE_TYPE_TOUCH: tagPOINTER_DEVICE_TYPE = 3; +pub const tagPOINTER_DEVICE_TYPE_POINTER_DEVICE_TYPE_TOUCH_PAD: tagPOINTER_DEVICE_TYPE = 4; +pub const tagPOINTER_DEVICE_TYPE_POINTER_DEVICE_TYPE_MAX: tagPOINTER_DEVICE_TYPE = -1; +pub type tagPOINTER_DEVICE_TYPE = ::std::os::raw::c_int; +pub use self::tagPOINTER_DEVICE_TYPE as POINTER_DEVICE_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPOINTER_DEVICE_INFO { + pub displayOrientation: DWORD, + pub device: HANDLE, + pub pointerDeviceType: POINTER_DEVICE_TYPE, + pub monitor: HMONITOR, + pub startingCursorId: ULONG, + pub maxActiveContacts: USHORT, + pub productString: [WCHAR; 520usize], +} +pub type POINTER_DEVICE_INFO = tagPOINTER_DEVICE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPOINTER_DEVICE_PROPERTY { + pub logicalMin: INT32, + pub logicalMax: INT32, + pub physicalMin: INT32, + pub physicalMax: INT32, + pub unit: UINT32, + pub unitExponent: UINT32, + pub usagePageId: USHORT, + pub usageId: USHORT, +} +pub type POINTER_DEVICE_PROPERTY = tagPOINTER_DEVICE_PROPERTY; +pub const tagPOINTER_DEVICE_CURSOR_TYPE_POINTER_DEVICE_CURSOR_TYPE_UNKNOWN: + tagPOINTER_DEVICE_CURSOR_TYPE = 0; +pub const tagPOINTER_DEVICE_CURSOR_TYPE_POINTER_DEVICE_CURSOR_TYPE_TIP: + tagPOINTER_DEVICE_CURSOR_TYPE = 1; +pub const tagPOINTER_DEVICE_CURSOR_TYPE_POINTER_DEVICE_CURSOR_TYPE_ERASER: + tagPOINTER_DEVICE_CURSOR_TYPE = 2; +pub const tagPOINTER_DEVICE_CURSOR_TYPE_POINTER_DEVICE_CURSOR_TYPE_MAX: + tagPOINTER_DEVICE_CURSOR_TYPE = -1; +pub type tagPOINTER_DEVICE_CURSOR_TYPE = ::std::os::raw::c_int; +pub use self::tagPOINTER_DEVICE_CURSOR_TYPE as POINTER_DEVICE_CURSOR_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPOINTER_DEVICE_CURSOR_INFO { + pub cursorId: UINT32, + pub cursor: POINTER_DEVICE_CURSOR_TYPE, +} +pub type POINTER_DEVICE_CURSOR_INFO = tagPOINTER_DEVICE_CURSOR_INFO; +extern "C" { + pub fn GetPointerDevices( + deviceCount: *mut UINT32, + pointerDevices: *mut POINTER_DEVICE_INFO, + ) -> BOOL; +} +extern "C" { + pub fn GetPointerDevice(device: HANDLE, pointerDevice: *mut POINTER_DEVICE_INFO) -> BOOL; +} +extern "C" { + pub fn GetPointerDeviceProperties( + device: HANDLE, + propertyCount: *mut UINT32, + pointerProperties: *mut POINTER_DEVICE_PROPERTY, + ) -> BOOL; +} +extern "C" { + pub fn RegisterPointerDeviceNotifications(window: HWND, notifyRange: BOOL) -> BOOL; +} +extern "C" { + pub fn GetPointerDeviceRects( + device: HANDLE, + pointerDeviceRect: *mut RECT, + displayRect: *mut RECT, + ) -> BOOL; +} +extern "C" { + pub fn GetPointerDeviceCursors( + device: HANDLE, + cursorCount: *mut UINT32, + deviceCursors: *mut POINTER_DEVICE_CURSOR_INFO, + ) -> BOOL; +} +extern "C" { + pub fn GetRawPointerDeviceData( + pointerId: UINT32, + historyCount: UINT32, + propertiesCount: UINT32, + pProperties: *mut POINTER_DEVICE_PROPERTY, + pValues: *mut LONG, + ) -> BOOL; +} +extern "C" { + pub fn ChangeWindowMessageFilter(message: UINT, dwFlag: DWORD) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCHANGEFILTERSTRUCT { + pub cbSize: DWORD, + pub ExtStatus: DWORD, +} +pub type CHANGEFILTERSTRUCT = tagCHANGEFILTERSTRUCT; +pub type PCHANGEFILTERSTRUCT = *mut tagCHANGEFILTERSTRUCT; +extern "C" { + pub fn ChangeWindowMessageFilterEx( + hwnd: HWND, + message: UINT, + action: DWORD, + pChangeFilterStruct: PCHANGEFILTERSTRUCT, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HGESTUREINFO__ { + pub unused: ::std::os::raw::c_int, +} +pub type HGESTUREINFO = *mut HGESTUREINFO__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagGESTUREINFO { + pub cbSize: UINT, + pub dwFlags: DWORD, + pub dwID: DWORD, + pub hwndTarget: HWND, + pub ptsLocation: POINTS, + pub dwInstanceID: DWORD, + pub dwSequenceID: DWORD, + pub ullArguments: ULONGLONG, + pub cbExtraArgs: UINT, +} +pub type GESTUREINFO = tagGESTUREINFO; +pub type PGESTUREINFO = *mut tagGESTUREINFO; +pub type PCGESTUREINFO = *const GESTUREINFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagGESTURENOTIFYSTRUCT { + pub cbSize: UINT, + pub dwFlags: DWORD, + pub hwndTarget: HWND, + pub ptsLocation: POINTS, + pub dwInstanceID: DWORD, +} +pub type GESTURENOTIFYSTRUCT = tagGESTURENOTIFYSTRUCT; +pub type PGESTURENOTIFYSTRUCT = *mut tagGESTURENOTIFYSTRUCT; +extern "C" { + pub fn GetGestureInfo(hGestureInfo: HGESTUREINFO, pGestureInfo: PGESTUREINFO) -> BOOL; +} +extern "C" { + pub fn GetGestureExtraArgs( + hGestureInfo: HGESTUREINFO, + cbExtraArgs: UINT, + pExtraArgs: PBYTE, + ) -> BOOL; +} +extern "C" { + pub fn CloseGestureInfoHandle(hGestureInfo: HGESTUREINFO) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagGESTURECONFIG { + pub dwID: DWORD, + pub dwWant: DWORD, + pub dwBlock: DWORD, +} +pub type GESTURECONFIG = tagGESTURECONFIG; +pub type PGESTURECONFIG = *mut tagGESTURECONFIG; +extern "C" { + pub fn SetGestureConfig( + hwnd: HWND, + dwReserved: DWORD, + cIDs: UINT, + pGestureConfig: PGESTURECONFIG, + cbSize: UINT, + ) -> BOOL; +} +extern "C" { + pub fn GetGestureConfig( + hwnd: HWND, + dwReserved: DWORD, + dwFlags: DWORD, + pcIDs: PUINT, + pGestureConfig: PGESTURECONFIG, + cbSize: UINT, + ) -> BOOL; +} +extern "C" { + pub fn ShutdownBlockReasonCreate(hWnd: HWND, pwszReason: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn ShutdownBlockReasonQuery(hWnd: HWND, pwszBuff: LPWSTR, pcchBuff: *mut DWORD) -> BOOL; +} +extern "C" { + pub fn ShutdownBlockReasonDestroy(hWnd: HWND) -> BOOL; +} +pub const tagINPUT_MESSAGE_DEVICE_TYPE_IMDT_UNAVAILABLE: tagINPUT_MESSAGE_DEVICE_TYPE = 0; +pub const tagINPUT_MESSAGE_DEVICE_TYPE_IMDT_KEYBOARD: tagINPUT_MESSAGE_DEVICE_TYPE = 1; +pub const tagINPUT_MESSAGE_DEVICE_TYPE_IMDT_MOUSE: tagINPUT_MESSAGE_DEVICE_TYPE = 2; +pub const tagINPUT_MESSAGE_DEVICE_TYPE_IMDT_TOUCH: tagINPUT_MESSAGE_DEVICE_TYPE = 4; +pub const tagINPUT_MESSAGE_DEVICE_TYPE_IMDT_PEN: tagINPUT_MESSAGE_DEVICE_TYPE = 8; +pub const tagINPUT_MESSAGE_DEVICE_TYPE_IMDT_TOUCHPAD: tagINPUT_MESSAGE_DEVICE_TYPE = 16; +pub type tagINPUT_MESSAGE_DEVICE_TYPE = ::std::os::raw::c_int; +pub use self::tagINPUT_MESSAGE_DEVICE_TYPE as INPUT_MESSAGE_DEVICE_TYPE; +pub const tagINPUT_MESSAGE_ORIGIN_ID_IMO_UNAVAILABLE: tagINPUT_MESSAGE_ORIGIN_ID = 0; +pub const tagINPUT_MESSAGE_ORIGIN_ID_IMO_HARDWARE: tagINPUT_MESSAGE_ORIGIN_ID = 1; +pub const tagINPUT_MESSAGE_ORIGIN_ID_IMO_INJECTED: tagINPUT_MESSAGE_ORIGIN_ID = 2; +pub const tagINPUT_MESSAGE_ORIGIN_ID_IMO_SYSTEM: tagINPUT_MESSAGE_ORIGIN_ID = 4; +pub type tagINPUT_MESSAGE_ORIGIN_ID = ::std::os::raw::c_int; +pub use self::tagINPUT_MESSAGE_ORIGIN_ID as INPUT_MESSAGE_ORIGIN_ID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagINPUT_MESSAGE_SOURCE { + pub deviceType: INPUT_MESSAGE_DEVICE_TYPE, + pub originId: INPUT_MESSAGE_ORIGIN_ID, +} +pub type INPUT_MESSAGE_SOURCE = tagINPUT_MESSAGE_SOURCE; +extern "C" { + pub fn GetCurrentInputMessageSource(inputMessageSource: *mut INPUT_MESSAGE_SOURCE) -> BOOL; +} +extern "C" { + pub fn GetCIMSSM(inputMessageSource: *mut INPUT_MESSAGE_SOURCE) -> BOOL; +} +pub const tagAR_STATE_AR_ENABLED: tagAR_STATE = 0; +pub const tagAR_STATE_AR_DISABLED: tagAR_STATE = 1; +pub const tagAR_STATE_AR_SUPPRESSED: tagAR_STATE = 2; +pub const tagAR_STATE_AR_REMOTESESSION: tagAR_STATE = 4; +pub const tagAR_STATE_AR_MULTIMON: tagAR_STATE = 8; +pub const tagAR_STATE_AR_NOSENSOR: tagAR_STATE = 16; +pub const tagAR_STATE_AR_NOT_SUPPORTED: tagAR_STATE = 32; +pub const tagAR_STATE_AR_DOCKED: tagAR_STATE = 64; +pub const tagAR_STATE_AR_LAPTOP: tagAR_STATE = 128; +pub type tagAR_STATE = ::std::os::raw::c_int; +pub use self::tagAR_STATE as AR_STATE; +pub type PAR_STATE = *mut tagAR_STATE; +pub const ORIENTATION_PREFERENCE_ORIENTATION_PREFERENCE_NONE: ORIENTATION_PREFERENCE = 0; +pub const ORIENTATION_PREFERENCE_ORIENTATION_PREFERENCE_LANDSCAPE: ORIENTATION_PREFERENCE = 1; +pub const ORIENTATION_PREFERENCE_ORIENTATION_PREFERENCE_PORTRAIT: ORIENTATION_PREFERENCE = 2; +pub const ORIENTATION_PREFERENCE_ORIENTATION_PREFERENCE_LANDSCAPE_FLIPPED: ORIENTATION_PREFERENCE = + 4; +pub const ORIENTATION_PREFERENCE_ORIENTATION_PREFERENCE_PORTRAIT_FLIPPED: ORIENTATION_PREFERENCE = + 8; +pub type ORIENTATION_PREFERENCE = ::std::os::raw::c_int; +extern "C" { + pub fn GetAutoRotationState(pState: PAR_STATE) -> BOOL; +} +extern "C" { + pub fn GetDisplayAutoRotationPreferences(pOrientation: *mut ORIENTATION_PREFERENCE) -> BOOL; +} +extern "C" { + pub fn GetDisplayAutoRotationPreferencesByProcessId( + dwProcessId: DWORD, + pOrientation: *mut ORIENTATION_PREFERENCE, + fRotateScreen: *mut BOOL, + ) -> BOOL; +} +extern "C" { + pub fn SetDisplayAutoRotationPreferences(orientation: ORIENTATION_PREFERENCE) -> BOOL; +} +extern "C" { + pub fn IsImmersiveProcess(hProcess: HANDLE) -> BOOL; +} +extern "C" { + pub fn SetProcessRestrictionExemption(fEnableExemption: BOOL) -> BOOL; +} +extern "C" { + pub fn SetAdditionalForegroundBoostProcesses( + topLevelWindow: HWND, + processHandleCount: DWORD, + processHandleArray: *mut HANDLE, + ) -> BOOL; +} +pub const TOOLTIP_DISMISS_FLAGS_TDF_REGISTER: TOOLTIP_DISMISS_FLAGS = 1; +pub const TOOLTIP_DISMISS_FLAGS_TDF_UNREGISTER: TOOLTIP_DISMISS_FLAGS = 2; +pub type TOOLTIP_DISMISS_FLAGS = ::std::os::raw::c_int; +extern "C" { + pub fn RegisterForTooltipDismissNotification( + hWnd: HWND, + tdFlags: TOOLTIP_DISMISS_FLAGS, + ) -> BOOL; +} +extern "C" { + pub fn GetDateFormatA( + Locale: LCID, + dwFlags: DWORD, + lpDate: *const SYSTEMTIME, + lpFormat: LPCSTR, + lpDateStr: LPSTR, + cchDate: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetDateFormatW( + Locale: LCID, + dwFlags: DWORD, + lpDate: *const SYSTEMTIME, + lpFormat: LPCWSTR, + lpDateStr: LPWSTR, + cchDate: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetTimeFormatA( + Locale: LCID, + dwFlags: DWORD, + lpTime: *const SYSTEMTIME, + lpFormat: LPCSTR, + lpTimeStr: LPSTR, + cchTime: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetTimeFormatW( + Locale: LCID, + dwFlags: DWORD, + lpTime: *const SYSTEMTIME, + lpFormat: LPCWSTR, + lpTimeStr: LPWSTR, + cchTime: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetTimeFormatEx( + lpLocaleName: LPCWSTR, + dwFlags: DWORD, + lpTime: *const SYSTEMTIME, + lpFormat: LPCWSTR, + lpTimeStr: LPWSTR, + cchTime: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetDateFormatEx( + lpLocaleName: LPCWSTR, + dwFlags: DWORD, + lpDate: *const SYSTEMTIME, + lpFormat: LPCWSTR, + lpDateStr: LPWSTR, + cchDate: ::std::os::raw::c_int, + lpCalendar: LPCWSTR, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetDurationFormatEx( + lpLocaleName: LPCWSTR, + dwFlags: DWORD, + lpDuration: *const SYSTEMTIME, + ullDuration: ULONGLONG, + lpFormat: LPCWSTR, + lpDurationStr: LPWSTR, + cchDuration: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +pub type LGRPID = DWORD; +pub type LCTYPE = DWORD; +pub type CALTYPE = DWORD; +pub type CALID = DWORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cpinfo { + pub MaxCharSize: UINT, + pub DefaultChar: [BYTE; 2usize], + pub LeadByte: [BYTE; 12usize], +} +pub type CPINFO = _cpinfo; +pub type LPCPINFO = *mut _cpinfo; +pub type GEOTYPE = DWORD; +pub type GEOCLASS = DWORD; +pub type GEOID = LONG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cpinfoexA { + pub MaxCharSize: UINT, + pub DefaultChar: [BYTE; 2usize], + pub LeadByte: [BYTE; 12usize], + pub UnicodeDefaultChar: WCHAR, + pub CodePage: UINT, + pub CodePageName: [CHAR; 260usize], +} +pub type CPINFOEXA = _cpinfoexA; +pub type LPCPINFOEXA = *mut _cpinfoexA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cpinfoexW { + pub MaxCharSize: UINT, + pub DefaultChar: [BYTE; 2usize], + pub LeadByte: [BYTE; 12usize], + pub UnicodeDefaultChar: WCHAR, + pub CodePage: UINT, + pub CodePageName: [WCHAR; 260usize], +} +pub type CPINFOEXW = _cpinfoexW; +pub type LPCPINFOEXW = *mut _cpinfoexW; +pub type CPINFOEX = CPINFOEXA; +pub type LPCPINFOEX = LPCPINFOEXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _numberfmtA { + pub NumDigits: UINT, + pub LeadingZero: UINT, + pub Grouping: UINT, + pub lpDecimalSep: LPSTR, + pub lpThousandSep: LPSTR, + pub NegativeOrder: UINT, +} +pub type NUMBERFMTA = _numberfmtA; +pub type LPNUMBERFMTA = *mut _numberfmtA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _numberfmtW { + pub NumDigits: UINT, + pub LeadingZero: UINT, + pub Grouping: UINT, + pub lpDecimalSep: LPWSTR, + pub lpThousandSep: LPWSTR, + pub NegativeOrder: UINT, +} +pub type NUMBERFMTW = _numberfmtW; +pub type LPNUMBERFMTW = *mut _numberfmtW; +pub type NUMBERFMT = NUMBERFMTA; +pub type LPNUMBERFMT = LPNUMBERFMTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _currencyfmtA { + pub NumDigits: UINT, + pub LeadingZero: UINT, + pub Grouping: UINT, + pub lpDecimalSep: LPSTR, + pub lpThousandSep: LPSTR, + pub NegativeOrder: UINT, + pub PositiveOrder: UINT, + pub lpCurrencySymbol: LPSTR, +} +pub type CURRENCYFMTA = _currencyfmtA; +pub type LPCURRENCYFMTA = *mut _currencyfmtA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _currencyfmtW { + pub NumDigits: UINT, + pub LeadingZero: UINT, + pub Grouping: UINT, + pub lpDecimalSep: LPWSTR, + pub lpThousandSep: LPWSTR, + pub NegativeOrder: UINT, + pub PositiveOrder: UINT, + pub lpCurrencySymbol: LPWSTR, +} +pub type CURRENCYFMTW = _currencyfmtW; +pub type LPCURRENCYFMTW = *mut _currencyfmtW; +pub type CURRENCYFMT = CURRENCYFMTA; +pub type LPCURRENCYFMT = LPCURRENCYFMTA; +pub const SYSNLS_FUNCTION_COMPARE_STRING: SYSNLS_FUNCTION = 1; +pub type SYSNLS_FUNCTION = ::std::os::raw::c_int; +pub type NLS_FUNCTION = DWORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _nlsversioninfo { + pub dwNLSVersionInfoSize: DWORD, + pub dwNLSVersion: DWORD, + pub dwDefinedVersion: DWORD, + pub dwEffectiveId: DWORD, + pub guidCustomVersion: GUID, +} +pub type NLSVERSIONINFO = _nlsversioninfo; +pub type LPNLSVERSIONINFO = *mut _nlsversioninfo; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _nlsversioninfoex { + pub dwNLSVersionInfoSize: DWORD, + pub dwNLSVersion: DWORD, + pub dwDefinedVersion: DWORD, + pub dwEffectiveId: DWORD, + pub guidCustomVersion: GUID, +} +pub type NLSVERSIONINFOEX = _nlsversioninfoex; +pub type LPNLSVERSIONINFOEX = *mut _nlsversioninfoex; +pub const SYSGEOTYPE_GEO_NATION: SYSGEOTYPE = 1; +pub const SYSGEOTYPE_GEO_LATITUDE: SYSGEOTYPE = 2; +pub const SYSGEOTYPE_GEO_LONGITUDE: SYSGEOTYPE = 3; +pub const SYSGEOTYPE_GEO_ISO2: SYSGEOTYPE = 4; +pub const SYSGEOTYPE_GEO_ISO3: SYSGEOTYPE = 5; +pub const SYSGEOTYPE_GEO_RFC1766: SYSGEOTYPE = 6; +pub const SYSGEOTYPE_GEO_LCID: SYSGEOTYPE = 7; +pub const SYSGEOTYPE_GEO_FRIENDLYNAME: SYSGEOTYPE = 8; +pub const SYSGEOTYPE_GEO_OFFICIALNAME: SYSGEOTYPE = 9; +pub const SYSGEOTYPE_GEO_TIMEZONES: SYSGEOTYPE = 10; +pub const SYSGEOTYPE_GEO_OFFICIALLANGUAGES: SYSGEOTYPE = 11; +pub const SYSGEOTYPE_GEO_ISO_UN_NUMBER: SYSGEOTYPE = 12; +pub const SYSGEOTYPE_GEO_PARENT: SYSGEOTYPE = 13; +pub const SYSGEOTYPE_GEO_DIALINGCODE: SYSGEOTYPE = 14; +pub const SYSGEOTYPE_GEO_CURRENCYCODE: SYSGEOTYPE = 15; +pub const SYSGEOTYPE_GEO_CURRENCYSYMBOL: SYSGEOTYPE = 16; +pub const SYSGEOTYPE_GEO_NAME: SYSGEOTYPE = 17; +pub const SYSGEOTYPE_GEO_ID: SYSGEOTYPE = 18; +pub type SYSGEOTYPE = ::std::os::raw::c_int; +pub const SYSGEOCLASS_GEOCLASS_NATION: SYSGEOCLASS = 16; +pub const SYSGEOCLASS_GEOCLASS_REGION: SYSGEOCLASS = 14; +pub const SYSGEOCLASS_GEOCLASS_ALL: SYSGEOCLASS = 0; +pub type SYSGEOCLASS = ::std::os::raw::c_int; +pub type LOCALE_ENUMPROCA = ::std::option::Option BOOL>; +pub type LOCALE_ENUMPROCW = ::std::option::Option BOOL>; +pub const _NORM_FORM_NormalizationOther: _NORM_FORM = 0; +pub const _NORM_FORM_NormalizationC: _NORM_FORM = 1; +pub const _NORM_FORM_NormalizationD: _NORM_FORM = 2; +pub const _NORM_FORM_NormalizationKC: _NORM_FORM = 5; +pub const _NORM_FORM_NormalizationKD: _NORM_FORM = 6; +pub type _NORM_FORM = ::std::os::raw::c_int; +pub use self::_NORM_FORM as NORM_FORM; +pub type LANGUAGEGROUP_ENUMPROCA = ::std::option::Option< + unsafe extern "C" fn( + arg1: LGRPID, + arg2: LPSTR, + arg3: LPSTR, + arg4: DWORD, + arg5: LONG_PTR, + ) -> BOOL, +>; +pub type LANGGROUPLOCALE_ENUMPROCA = ::std::option::Option< + unsafe extern "C" fn(arg1: LGRPID, arg2: LCID, arg3: LPSTR, arg4: LONG_PTR) -> BOOL, +>; +pub type UILANGUAGE_ENUMPROCA = + ::std::option::Option BOOL>; +pub type CODEPAGE_ENUMPROCA = ::std::option::Option BOOL>; +pub type DATEFMT_ENUMPROCA = ::std::option::Option BOOL>; +pub type DATEFMT_ENUMPROCEXA = + ::std::option::Option BOOL>; +pub type TIMEFMT_ENUMPROCA = ::std::option::Option BOOL>; +pub type CALINFO_ENUMPROCA = ::std::option::Option BOOL>; +pub type CALINFO_ENUMPROCEXA = + ::std::option::Option BOOL>; +pub type LANGUAGEGROUP_ENUMPROCW = ::std::option::Option< + unsafe extern "C" fn( + arg1: LGRPID, + arg2: LPWSTR, + arg3: LPWSTR, + arg4: DWORD, + arg5: LONG_PTR, + ) -> BOOL, +>; +pub type LANGGROUPLOCALE_ENUMPROCW = ::std::option::Option< + unsafe extern "C" fn(arg1: LGRPID, arg2: LCID, arg3: LPWSTR, arg4: LONG_PTR) -> BOOL, +>; +pub type UILANGUAGE_ENUMPROCW = + ::std::option::Option BOOL>; +pub type CODEPAGE_ENUMPROCW = ::std::option::Option BOOL>; +pub type DATEFMT_ENUMPROCW = ::std::option::Option BOOL>; +pub type DATEFMT_ENUMPROCEXW = + ::std::option::Option BOOL>; +pub type TIMEFMT_ENUMPROCW = ::std::option::Option BOOL>; +pub type CALINFO_ENUMPROCW = ::std::option::Option BOOL>; +pub type CALINFO_ENUMPROCEXW = + ::std::option::Option BOOL>; +pub type GEO_ENUMPROC = ::std::option::Option BOOL>; +pub type GEO_ENUMNAMEPROC = + ::std::option::Option BOOL>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILEMUIINFO { + pub dwSize: DWORD, + pub dwVersion: DWORD, + pub dwFileType: DWORD, + pub pChecksum: [BYTE; 16usize], + pub pServiceChecksum: [BYTE; 16usize], + pub dwLanguageNameOffset: DWORD, + pub dwTypeIDMainSize: DWORD, + pub dwTypeIDMainOffset: DWORD, + pub dwTypeNameMainOffset: DWORD, + pub dwTypeIDMUISize: DWORD, + pub dwTypeIDMUIOffset: DWORD, + pub dwTypeNameMUIOffset: DWORD, + pub abBuffer: [BYTE; 8usize], +} +pub type FILEMUIINFO = _FILEMUIINFO; +pub type PFILEMUIINFO = *mut _FILEMUIINFO; +extern "C" { + pub fn CompareStringEx( + lpLocaleName: LPCWSTR, + dwCmpFlags: DWORD, + lpString1: LPCWCH, + cchCount1: ::std::os::raw::c_int, + lpString2: LPCWCH, + cchCount2: ::std::os::raw::c_int, + lpVersionInformation: LPNLSVERSIONINFO, + lpReserved: LPVOID, + lParam: LPARAM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn CompareStringOrdinal( + lpString1: LPCWCH, + cchCount1: ::std::os::raw::c_int, + lpString2: LPCWCH, + cchCount2: ::std::os::raw::c_int, + bIgnoreCase: BOOL, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn CompareStringW( + Locale: LCID, + dwCmpFlags: DWORD, + lpString1: PCNZWCH, + cchCount1: ::std::os::raw::c_int, + lpString2: PCNZWCH, + cchCount2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn FoldStringW( + dwMapFlags: DWORD, + lpSrcStr: LPCWCH, + cchSrc: ::std::os::raw::c_int, + lpDestStr: LPWSTR, + cchDest: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetStringTypeExW( + Locale: LCID, + dwInfoType: DWORD, + lpSrcStr: LPCWCH, + cchSrc: ::std::os::raw::c_int, + lpCharType: LPWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetStringTypeW( + dwInfoType: DWORD, + lpSrcStr: LPCWCH, + cchSrc: ::std::os::raw::c_int, + lpCharType: LPWORD, + ) -> BOOL; +} +extern "C" { + pub fn MultiByteToWideChar( + CodePage: UINT, + dwFlags: DWORD, + lpMultiByteStr: LPCCH, + cbMultiByte: ::std::os::raw::c_int, + lpWideCharStr: LPWSTR, + cchWideChar: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn WideCharToMultiByte( + CodePage: UINT, + dwFlags: DWORD, + lpWideCharStr: LPCWCH, + cchWideChar: ::std::os::raw::c_int, + lpMultiByteStr: LPSTR, + cbMultiByte: ::std::os::raw::c_int, + lpDefaultChar: LPCCH, + lpUsedDefaultChar: LPBOOL, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn IsValidCodePage(CodePage: UINT) -> BOOL; +} +extern "C" { + pub fn GetACP() -> UINT; +} +extern "C" { + pub fn GetOEMCP() -> UINT; +} +extern "C" { + pub fn GetCPInfo(CodePage: UINT, lpCPInfo: LPCPINFO) -> BOOL; +} +extern "C" { + pub fn GetCPInfoExA(CodePage: UINT, dwFlags: DWORD, lpCPInfoEx: LPCPINFOEXA) -> BOOL; +} +extern "C" { + pub fn GetCPInfoExW(CodePage: UINT, dwFlags: DWORD, lpCPInfoEx: LPCPINFOEXW) -> BOOL; +} +extern "C" { + pub fn CompareStringA( + Locale: LCID, + dwCmpFlags: DWORD, + lpString1: PCNZCH, + cchCount1: ::std::os::raw::c_int, + lpString2: PCNZCH, + cchCount2: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn FindNLSString( + Locale: LCID, + dwFindNLSStringFlags: DWORD, + lpStringSource: LPCWSTR, + cchSource: ::std::os::raw::c_int, + lpStringValue: LPCWSTR, + cchValue: ::std::os::raw::c_int, + pcchFound: LPINT, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn LCMapStringW( + Locale: LCID, + dwMapFlags: DWORD, + lpSrcStr: LPCWSTR, + cchSrc: ::std::os::raw::c_int, + lpDestStr: LPWSTR, + cchDest: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn LCMapStringA( + Locale: LCID, + dwMapFlags: DWORD, + lpSrcStr: LPCSTR, + cchSrc: ::std::os::raw::c_int, + lpDestStr: LPSTR, + cchDest: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetLocaleInfoW( + Locale: LCID, + LCType: LCTYPE, + lpLCData: LPWSTR, + cchData: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetLocaleInfoA( + Locale: LCID, + LCType: LCTYPE, + lpLCData: LPSTR, + cchData: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetLocaleInfoA(Locale: LCID, LCType: LCTYPE, lpLCData: LPCSTR) -> BOOL; +} +extern "C" { + pub fn SetLocaleInfoW(Locale: LCID, LCType: LCTYPE, lpLCData: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn GetCalendarInfoA( + Locale: LCID, + Calendar: CALID, + CalType: CALTYPE, + lpCalData: LPSTR, + cchData: ::std::os::raw::c_int, + lpValue: LPDWORD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetCalendarInfoW( + Locale: LCID, + Calendar: CALID, + CalType: CALTYPE, + lpCalData: LPWSTR, + cchData: ::std::os::raw::c_int, + lpValue: LPDWORD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetCalendarInfoA( + Locale: LCID, + Calendar: CALID, + CalType: CALTYPE, + lpCalData: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn SetCalendarInfoW( + Locale: LCID, + Calendar: CALID, + CalType: CALTYPE, + lpCalData: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn LoadStringByReference( + Flags: DWORD, + Language: PCWSTR, + SourceString: PCWSTR, + Buffer: PWSTR, + cchBuffer: ULONG, + Directory: PCWSTR, + pcchBufferOut: PULONG, + ) -> BOOL; +} +extern "C" { + pub fn IsDBCSLeadByte(TestChar: BYTE) -> BOOL; +} +extern "C" { + pub fn IsDBCSLeadByteEx(CodePage: UINT, TestChar: BYTE) -> BOOL; +} +extern "C" { + pub fn LocaleNameToLCID(lpName: LPCWSTR, dwFlags: DWORD) -> LCID; +} +extern "C" { + pub fn LCIDToLocaleName( + Locale: LCID, + lpName: LPWSTR, + cchName: ::std::os::raw::c_int, + dwFlags: DWORD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetDurationFormat( + Locale: LCID, + dwFlags: DWORD, + lpDuration: *const SYSTEMTIME, + ullDuration: ULONGLONG, + lpFormat: LPCWSTR, + lpDurationStr: LPWSTR, + cchDuration: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetNumberFormatA( + Locale: LCID, + dwFlags: DWORD, + lpValue: LPCSTR, + lpFormat: *const NUMBERFMTA, + lpNumberStr: LPSTR, + cchNumber: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetNumberFormatW( + Locale: LCID, + dwFlags: DWORD, + lpValue: LPCWSTR, + lpFormat: *const NUMBERFMTW, + lpNumberStr: LPWSTR, + cchNumber: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetCurrencyFormatA( + Locale: LCID, + dwFlags: DWORD, + lpValue: LPCSTR, + lpFormat: *const CURRENCYFMTA, + lpCurrencyStr: LPSTR, + cchCurrency: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetCurrencyFormatW( + Locale: LCID, + dwFlags: DWORD, + lpValue: LPCWSTR, + lpFormat: *const CURRENCYFMTW, + lpCurrencyStr: LPWSTR, + cchCurrency: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EnumCalendarInfoA( + lpCalInfoEnumProc: CALINFO_ENUMPROCA, + Locale: LCID, + Calendar: CALID, + CalType: CALTYPE, + ) -> BOOL; +} +extern "C" { + pub fn EnumCalendarInfoW( + lpCalInfoEnumProc: CALINFO_ENUMPROCW, + Locale: LCID, + Calendar: CALID, + CalType: CALTYPE, + ) -> BOOL; +} +extern "C" { + pub fn EnumCalendarInfoExA( + lpCalInfoEnumProcEx: CALINFO_ENUMPROCEXA, + Locale: LCID, + Calendar: CALID, + CalType: CALTYPE, + ) -> BOOL; +} +extern "C" { + pub fn EnumCalendarInfoExW( + lpCalInfoEnumProcEx: CALINFO_ENUMPROCEXW, + Locale: LCID, + Calendar: CALID, + CalType: CALTYPE, + ) -> BOOL; +} +extern "C" { + pub fn EnumTimeFormatsA( + lpTimeFmtEnumProc: TIMEFMT_ENUMPROCA, + Locale: LCID, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumTimeFormatsW( + lpTimeFmtEnumProc: TIMEFMT_ENUMPROCW, + Locale: LCID, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumDateFormatsA( + lpDateFmtEnumProc: DATEFMT_ENUMPROCA, + Locale: LCID, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumDateFormatsW( + lpDateFmtEnumProc: DATEFMT_ENUMPROCW, + Locale: LCID, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumDateFormatsExA( + lpDateFmtEnumProcEx: DATEFMT_ENUMPROCEXA, + Locale: LCID, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumDateFormatsExW( + lpDateFmtEnumProcEx: DATEFMT_ENUMPROCEXW, + Locale: LCID, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn IsValidLanguageGroup(LanguageGroup: LGRPID, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn GetNLSVersion( + Function: NLS_FUNCTION, + Locale: LCID, + lpVersionInformation: LPNLSVERSIONINFO, + ) -> BOOL; +} +extern "C" { + pub fn IsValidLocale(Locale: LCID, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn GetGeoInfoA( + Location: GEOID, + GeoType: GEOTYPE, + lpGeoData: LPSTR, + cchData: ::std::os::raw::c_int, + LangId: LANGID, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetGeoInfoW( + Location: GEOID, + GeoType: GEOTYPE, + lpGeoData: LPWSTR, + cchData: ::std::os::raw::c_int, + LangId: LANGID, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetGeoInfoEx( + location: PWSTR, + geoType: GEOTYPE, + geoData: PWSTR, + geoDataCount: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EnumSystemGeoID( + GeoClass: GEOCLASS, + ParentGeoId: GEOID, + lpGeoEnumProc: GEO_ENUMPROC, + ) -> BOOL; +} +extern "C" { + pub fn EnumSystemGeoNames( + geoClass: GEOCLASS, + geoEnumProc: GEO_ENUMNAMEPROC, + data: LPARAM, + ) -> BOOL; +} +extern "C" { + pub fn GetUserGeoID(GeoClass: GEOCLASS) -> GEOID; +} +extern "C" { + pub fn GetUserDefaultGeoName( + geoName: LPWSTR, + geoNameCount: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SetUserGeoID(GeoId: GEOID) -> BOOL; +} +extern "C" { + pub fn SetUserGeoName(geoName: PWSTR) -> BOOL; +} +extern "C" { + pub fn ConvertDefaultLocale(Locale: LCID) -> LCID; +} +extern "C" { + pub fn GetSystemDefaultUILanguage() -> LANGID; +} +extern "C" { + pub fn GetThreadLocale() -> LCID; +} +extern "C" { + pub fn SetThreadLocale(Locale: LCID) -> BOOL; +} +extern "C" { + pub fn GetUserDefaultUILanguage() -> LANGID; +} +extern "C" { + pub fn GetUserDefaultLangID() -> LANGID; +} +extern "C" { + pub fn GetSystemDefaultLangID() -> LANGID; +} +extern "C" { + pub fn GetSystemDefaultLCID() -> LCID; +} +extern "C" { + pub fn GetUserDefaultLCID() -> LCID; +} +extern "C" { + pub fn SetThreadUILanguage(LangId: LANGID) -> LANGID; +} +extern "C" { + pub fn GetThreadUILanguage() -> LANGID; +} +extern "C" { + pub fn GetProcessPreferredUILanguages( + dwFlags: DWORD, + pulNumLanguages: PULONG, + pwszLanguagesBuffer: PZZWSTR, + pcchLanguagesBuffer: PULONG, + ) -> BOOL; +} +extern "C" { + pub fn SetProcessPreferredUILanguages( + dwFlags: DWORD, + pwszLanguagesBuffer: PCZZWSTR, + pulNumLanguages: PULONG, + ) -> BOOL; +} +extern "C" { + pub fn GetUserPreferredUILanguages( + dwFlags: DWORD, + pulNumLanguages: PULONG, + pwszLanguagesBuffer: PZZWSTR, + pcchLanguagesBuffer: PULONG, + ) -> BOOL; +} +extern "C" { + pub fn GetSystemPreferredUILanguages( + dwFlags: DWORD, + pulNumLanguages: PULONG, + pwszLanguagesBuffer: PZZWSTR, + pcchLanguagesBuffer: PULONG, + ) -> BOOL; +} +extern "C" { + pub fn GetThreadPreferredUILanguages( + dwFlags: DWORD, + pulNumLanguages: PULONG, + pwszLanguagesBuffer: PZZWSTR, + pcchLanguagesBuffer: PULONG, + ) -> BOOL; +} +extern "C" { + pub fn SetThreadPreferredUILanguages( + dwFlags: DWORD, + pwszLanguagesBuffer: PCZZWSTR, + pulNumLanguages: PULONG, + ) -> BOOL; +} +extern "C" { + pub fn GetFileMUIInfo( + dwFlags: DWORD, + pcwszFilePath: PCWSTR, + pFileMUIInfo: PFILEMUIINFO, + pcbFileMUIInfo: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetFileMUIPath( + dwFlags: DWORD, + pcwszFilePath: PCWSTR, + pwszLanguage: PWSTR, + pcchLanguage: PULONG, + pwszFileMUIPath: PWSTR, + pcchFileMUIPath: PULONG, + pululEnumerator: PULONGLONG, + ) -> BOOL; +} +extern "C" { + pub fn GetUILanguageInfo( + dwFlags: DWORD, + pwmszLanguage: PCZZWSTR, + pwszFallbackLanguages: PZZWSTR, + pcchFallbackLanguages: PDWORD, + pAttributes: PDWORD, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HSAVEDUILANGUAGES__ { + pub unused: ::std::os::raw::c_int, +} +pub type HSAVEDUILANGUAGES = *mut HSAVEDUILANGUAGES__; +extern "C" { + pub fn SetThreadPreferredUILanguages2( + flags: ULONG, + languages: PCZZWSTR, + numLanguagesSet: PULONG, + snapshot: *mut HSAVEDUILANGUAGES, + ) -> BOOL; +} +extern "C" { + pub fn RestoreThreadPreferredUILanguages(snapshot: HSAVEDUILANGUAGES); +} +extern "C" { + pub fn NotifyUILanguageChange( + dwFlags: DWORD, + pcwstrNewLanguage: PCWSTR, + pcwstrPreviousLanguage: PCWSTR, + dwReserved: DWORD, + pdwStatusRtrn: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetStringTypeExA( + Locale: LCID, + dwInfoType: DWORD, + lpSrcStr: LPCSTR, + cchSrc: ::std::os::raw::c_int, + lpCharType: LPWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetStringTypeA( + Locale: LCID, + dwInfoType: DWORD, + lpSrcStr: LPCSTR, + cchSrc: ::std::os::raw::c_int, + lpCharType: LPWORD, + ) -> BOOL; +} +extern "C" { + pub fn FoldStringA( + dwMapFlags: DWORD, + lpSrcStr: LPCSTR, + cchSrc: ::std::os::raw::c_int, + lpDestStr: LPSTR, + cchDest: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn EnumSystemLocalesA(lpLocaleEnumProc: LOCALE_ENUMPROCA, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn EnumSystemLocalesW(lpLocaleEnumProc: LOCALE_ENUMPROCW, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn EnumSystemLanguageGroupsA( + lpLanguageGroupEnumProc: LANGUAGEGROUP_ENUMPROCA, + dwFlags: DWORD, + lParam: LONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn EnumSystemLanguageGroupsW( + lpLanguageGroupEnumProc: LANGUAGEGROUP_ENUMPROCW, + dwFlags: DWORD, + lParam: LONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn EnumLanguageGroupLocalesA( + lpLangGroupLocaleEnumProc: LANGGROUPLOCALE_ENUMPROCA, + LanguageGroup: LGRPID, + dwFlags: DWORD, + lParam: LONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn EnumLanguageGroupLocalesW( + lpLangGroupLocaleEnumProc: LANGGROUPLOCALE_ENUMPROCW, + LanguageGroup: LGRPID, + dwFlags: DWORD, + lParam: LONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn EnumUILanguagesA( + lpUILanguageEnumProc: UILANGUAGE_ENUMPROCA, + dwFlags: DWORD, + lParam: LONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn EnumUILanguagesW( + lpUILanguageEnumProc: UILANGUAGE_ENUMPROCW, + dwFlags: DWORD, + lParam: LONG_PTR, + ) -> BOOL; +} +extern "C" { + pub fn EnumSystemCodePagesA(lpCodePageEnumProc: CODEPAGE_ENUMPROCA, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn EnumSystemCodePagesW(lpCodePageEnumProc: CODEPAGE_ENUMPROCW, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn IdnToAscii( + dwFlags: DWORD, + lpUnicodeCharStr: LPCWSTR, + cchUnicodeChar: ::std::os::raw::c_int, + lpASCIICharStr: LPWSTR, + cchASCIIChar: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn IdnToUnicode( + dwFlags: DWORD, + lpASCIICharStr: LPCWSTR, + cchASCIIChar: ::std::os::raw::c_int, + lpUnicodeCharStr: LPWSTR, + cchUnicodeChar: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn IdnToNameprepUnicode( + dwFlags: DWORD, + lpUnicodeCharStr: LPCWSTR, + cchUnicodeChar: ::std::os::raw::c_int, + lpNameprepCharStr: LPWSTR, + cchNameprepChar: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn NormalizeString( + NormForm: NORM_FORM, + lpSrcString: LPCWSTR, + cwSrcLength: ::std::os::raw::c_int, + lpDstString: LPWSTR, + cwDstLength: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn IsNormalizedString( + NormForm: NORM_FORM, + lpString: LPCWSTR, + cwLength: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn VerifyScripts( + dwFlags: DWORD, + lpLocaleScripts: LPCWSTR, + cchLocaleScripts: ::std::os::raw::c_int, + lpTestScripts: LPCWSTR, + cchTestScripts: ::std::os::raw::c_int, + ) -> BOOL; +} +extern "C" { + pub fn GetStringScripts( + dwFlags: DWORD, + lpString: LPCWSTR, + cchString: ::std::os::raw::c_int, + lpScripts: LPWSTR, + cchScripts: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetLocaleInfoEx( + lpLocaleName: LPCWSTR, + LCType: LCTYPE, + lpLCData: LPWSTR, + cchData: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetCalendarInfoEx( + lpLocaleName: LPCWSTR, + Calendar: CALID, + lpReserved: LPCWSTR, + CalType: CALTYPE, + lpCalData: LPWSTR, + cchData: ::std::os::raw::c_int, + lpValue: LPDWORD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetNumberFormatEx( + lpLocaleName: LPCWSTR, + dwFlags: DWORD, + lpValue: LPCWSTR, + lpFormat: *const NUMBERFMTW, + lpNumberStr: LPWSTR, + cchNumber: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetCurrencyFormatEx( + lpLocaleName: LPCWSTR, + dwFlags: DWORD, + lpValue: LPCWSTR, + lpFormat: *const CURRENCYFMTW, + lpCurrencyStr: LPWSTR, + cchCurrency: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetUserDefaultLocaleName( + lpLocaleName: LPWSTR, + cchLocaleName: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn GetSystemDefaultLocaleName( + lpLocaleName: LPWSTR, + cchLocaleName: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn IsNLSDefinedString( + Function: NLS_FUNCTION, + dwFlags: DWORD, + lpVersionInformation: LPNLSVERSIONINFO, + lpString: LPCWSTR, + cchStr: INT, + ) -> BOOL; +} +extern "C" { + pub fn GetNLSVersionEx( + function: NLS_FUNCTION, + lpLocaleName: LPCWSTR, + lpVersionInformation: LPNLSVERSIONINFOEX, + ) -> BOOL; +} +extern "C" { + pub fn IsValidNLSVersion( + function: NLS_FUNCTION, + lpLocaleName: LPCWSTR, + lpVersionInformation: LPNLSVERSIONINFOEX, + ) -> DWORD; +} +extern "C" { + pub fn FindNLSStringEx( + lpLocaleName: LPCWSTR, + dwFindNLSStringFlags: DWORD, + lpStringSource: LPCWSTR, + cchSource: ::std::os::raw::c_int, + lpStringValue: LPCWSTR, + cchValue: ::std::os::raw::c_int, + pcchFound: LPINT, + lpVersionInformation: LPNLSVERSIONINFO, + lpReserved: LPVOID, + sortHandle: LPARAM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn LCMapStringEx( + lpLocaleName: LPCWSTR, + dwMapFlags: DWORD, + lpSrcStr: LPCWSTR, + cchSrc: ::std::os::raw::c_int, + lpDestStr: LPWSTR, + cchDest: ::std::os::raw::c_int, + lpVersionInformation: LPNLSVERSIONINFO, + lpReserved: LPVOID, + sortHandle: LPARAM, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn IsValidLocaleName(lpLocaleName: LPCWSTR) -> BOOL; +} +pub type CALINFO_ENUMPROCEXEX = ::std::option::Option< + unsafe extern "C" fn(arg1: LPWSTR, arg2: CALID, arg3: LPWSTR, arg4: LPARAM) -> BOOL, +>; +extern "C" { + pub fn EnumCalendarInfoExEx( + pCalInfoEnumProcExEx: CALINFO_ENUMPROCEXEX, + lpLocaleName: LPCWSTR, + Calendar: CALID, + lpReserved: LPCWSTR, + CalType: CALTYPE, + lParam: LPARAM, + ) -> BOOL; +} +pub type DATEFMT_ENUMPROCEXEX = + ::std::option::Option BOOL>; +extern "C" { + pub fn EnumDateFormatsExEx( + lpDateFmtEnumProcExEx: DATEFMT_ENUMPROCEXEX, + lpLocaleName: LPCWSTR, + dwFlags: DWORD, + lParam: LPARAM, + ) -> BOOL; +} +pub type TIMEFMT_ENUMPROCEX = + ::std::option::Option BOOL>; +extern "C" { + pub fn EnumTimeFormatsEx( + lpTimeFmtEnumProcEx: TIMEFMT_ENUMPROCEX, + lpLocaleName: LPCWSTR, + dwFlags: DWORD, + lParam: LPARAM, + ) -> BOOL; +} +pub type LOCALE_ENUMPROCEX = + ::std::option::Option BOOL>; +extern "C" { + pub fn EnumSystemLocalesEx( + lpLocaleEnumProcEx: LOCALE_ENUMPROCEX, + dwFlags: DWORD, + lParam: LPARAM, + lpReserved: LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn ResolveLocaleName( + lpNameToResolve: LPCWSTR, + lpLocaleName: LPWSTR, + cchLocaleName: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _COORD { + pub X: SHORT, + pub Y: SHORT, +} +pub type COORD = _COORD; +pub type PCOORD = *mut _COORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SMALL_RECT { + pub Left: SHORT, + pub Top: SHORT, + pub Right: SHORT, + pub Bottom: SHORT, +} +pub type SMALL_RECT = _SMALL_RECT; +pub type PSMALL_RECT = *mut _SMALL_RECT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _KEY_EVENT_RECORD { + pub bKeyDown: BOOL, + pub wRepeatCount: WORD, + pub wVirtualKeyCode: WORD, + pub wVirtualScanCode: WORD, + pub uChar: _KEY_EVENT_RECORD__bindgen_ty_1, + pub dwControlKeyState: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _KEY_EVENT_RECORD__bindgen_ty_1 { + pub UnicodeChar: WCHAR, + pub AsciiChar: CHAR, +} +pub type KEY_EVENT_RECORD = _KEY_EVENT_RECORD; +pub type PKEY_EVENT_RECORD = *mut _KEY_EVENT_RECORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MOUSE_EVENT_RECORD { + pub dwMousePosition: COORD, + pub dwButtonState: DWORD, + pub dwControlKeyState: DWORD, + pub dwEventFlags: DWORD, +} +pub type MOUSE_EVENT_RECORD = _MOUSE_EVENT_RECORD; +pub type PMOUSE_EVENT_RECORD = *mut _MOUSE_EVENT_RECORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WINDOW_BUFFER_SIZE_RECORD { + pub dwSize: COORD, +} +pub type WINDOW_BUFFER_SIZE_RECORD = _WINDOW_BUFFER_SIZE_RECORD; +pub type PWINDOW_BUFFER_SIZE_RECORD = *mut _WINDOW_BUFFER_SIZE_RECORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MENU_EVENT_RECORD { + pub dwCommandId: UINT, +} +pub type MENU_EVENT_RECORD = _MENU_EVENT_RECORD; +pub type PMENU_EVENT_RECORD = *mut _MENU_EVENT_RECORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FOCUS_EVENT_RECORD { + pub bSetFocus: BOOL, +} +pub type FOCUS_EVENT_RECORD = _FOCUS_EVENT_RECORD; +pub type PFOCUS_EVENT_RECORD = *mut _FOCUS_EVENT_RECORD; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _INPUT_RECORD { + pub EventType: WORD, + pub Event: _INPUT_RECORD__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _INPUT_RECORD__bindgen_ty_1 { + pub KeyEvent: KEY_EVENT_RECORD, + pub MouseEvent: MOUSE_EVENT_RECORD, + pub WindowBufferSizeEvent: WINDOW_BUFFER_SIZE_RECORD, + pub MenuEvent: MENU_EVENT_RECORD, + pub FocusEvent: FOCUS_EVENT_RECORD, +} +pub type INPUT_RECORD = _INPUT_RECORD; +pub type PINPUT_RECORD = *mut _INPUT_RECORD; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CHAR_INFO { + pub Char: _CHAR_INFO__bindgen_ty_1, + pub Attributes: WORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CHAR_INFO__bindgen_ty_1 { + pub UnicodeChar: WCHAR, + pub AsciiChar: CHAR, +} +pub type CHAR_INFO = _CHAR_INFO; +pub type PCHAR_INFO = *mut _CHAR_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CONSOLE_FONT_INFO { + pub nFont: DWORD, + pub dwFontSize: COORD, +} +pub type CONSOLE_FONT_INFO = _CONSOLE_FONT_INFO; +pub type PCONSOLE_FONT_INFO = *mut _CONSOLE_FONT_INFO; +pub type HPCON = *mut ::std::os::raw::c_void; +extern "C" { + pub fn AllocConsole() -> BOOL; +} +extern "C" { + pub fn FreeConsole() -> BOOL; +} +extern "C" { + pub fn AttachConsole(dwProcessId: DWORD) -> BOOL; +} +extern "C" { + pub fn GetConsoleCP() -> UINT; +} +extern "C" { + pub fn GetConsoleOutputCP() -> UINT; +} +extern "C" { + pub fn GetConsoleMode(hConsoleHandle: HANDLE, lpMode: LPDWORD) -> BOOL; +} +extern "C" { + pub fn SetConsoleMode(hConsoleHandle: HANDLE, dwMode: DWORD) -> BOOL; +} +extern "C" { + pub fn GetNumberOfConsoleInputEvents(hConsoleInput: HANDLE, lpNumberOfEvents: LPDWORD) -> BOOL; +} +extern "C" { + pub fn ReadConsoleInputA( + hConsoleInput: HANDLE, + lpBuffer: PINPUT_RECORD, + nLength: DWORD, + lpNumberOfEventsRead: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn ReadConsoleInputW( + hConsoleInput: HANDLE, + lpBuffer: PINPUT_RECORD, + nLength: DWORD, + lpNumberOfEventsRead: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn PeekConsoleInputA( + hConsoleInput: HANDLE, + lpBuffer: PINPUT_RECORD, + nLength: DWORD, + lpNumberOfEventsRead: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn PeekConsoleInputW( + hConsoleInput: HANDLE, + lpBuffer: PINPUT_RECORD, + nLength: DWORD, + lpNumberOfEventsRead: LPDWORD, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CONSOLE_READCONSOLE_CONTROL { + pub nLength: ULONG, + pub nInitialChars: ULONG, + pub dwCtrlWakeupMask: ULONG, + pub dwControlKeyState: ULONG, +} +pub type CONSOLE_READCONSOLE_CONTROL = _CONSOLE_READCONSOLE_CONTROL; +pub type PCONSOLE_READCONSOLE_CONTROL = *mut _CONSOLE_READCONSOLE_CONTROL; +extern "C" { + pub fn ReadConsoleA( + hConsoleInput: HANDLE, + lpBuffer: LPVOID, + nNumberOfCharsToRead: DWORD, + lpNumberOfCharsRead: LPDWORD, + pInputControl: PCONSOLE_READCONSOLE_CONTROL, + ) -> BOOL; +} +extern "C" { + pub fn ReadConsoleW( + hConsoleInput: HANDLE, + lpBuffer: LPVOID, + nNumberOfCharsToRead: DWORD, + lpNumberOfCharsRead: LPDWORD, + pInputControl: PCONSOLE_READCONSOLE_CONTROL, + ) -> BOOL; +} +extern "C" { + pub fn WriteConsoleA( + hConsoleOutput: HANDLE, + lpBuffer: *const ::std::os::raw::c_void, + nNumberOfCharsToWrite: DWORD, + lpNumberOfCharsWritten: LPDWORD, + lpReserved: LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn WriteConsoleW( + hConsoleOutput: HANDLE, + lpBuffer: *const ::std::os::raw::c_void, + nNumberOfCharsToWrite: DWORD, + lpNumberOfCharsWritten: LPDWORD, + lpReserved: LPVOID, + ) -> BOOL; +} +pub type PHANDLER_ROUTINE = ::std::option::Option BOOL>; +extern "C" { + pub fn SetConsoleCtrlHandler(HandlerRoutine: PHANDLER_ROUTINE, Add: BOOL) -> BOOL; +} +extern "C" { + pub fn CreatePseudoConsole( + size: COORD, + hInput: HANDLE, + hOutput: HANDLE, + dwFlags: DWORD, + phPC: *mut HPCON, + ) -> HRESULT; +} +extern "C" { + pub fn ResizePseudoConsole(hPC: HPCON, size: COORD) -> HRESULT; +} +extern "C" { + pub fn ClosePseudoConsole(hPC: HPCON); +} +extern "C" { + pub fn FillConsoleOutputCharacterA( + hConsoleOutput: HANDLE, + cCharacter: CHAR, + nLength: DWORD, + dwWriteCoord: COORD, + lpNumberOfCharsWritten: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn FillConsoleOutputCharacterW( + hConsoleOutput: HANDLE, + cCharacter: WCHAR, + nLength: DWORD, + dwWriteCoord: COORD, + lpNumberOfCharsWritten: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn FillConsoleOutputAttribute( + hConsoleOutput: HANDLE, + wAttribute: WORD, + nLength: DWORD, + dwWriteCoord: COORD, + lpNumberOfAttrsWritten: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GenerateConsoleCtrlEvent(dwCtrlEvent: DWORD, dwProcessGroupId: DWORD) -> BOOL; +} +extern "C" { + pub fn CreateConsoleScreenBuffer( + dwDesiredAccess: DWORD, + dwShareMode: DWORD, + lpSecurityAttributes: *const SECURITY_ATTRIBUTES, + dwFlags: DWORD, + lpScreenBufferData: LPVOID, + ) -> HANDLE; +} +extern "C" { + pub fn SetConsoleActiveScreenBuffer(hConsoleOutput: HANDLE) -> BOOL; +} +extern "C" { + pub fn FlushConsoleInputBuffer(hConsoleInput: HANDLE) -> BOOL; +} +extern "C" { + pub fn SetConsoleCP(wCodePageID: UINT) -> BOOL; +} +extern "C" { + pub fn SetConsoleOutputCP(wCodePageID: UINT) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CONSOLE_CURSOR_INFO { + pub dwSize: DWORD, + pub bVisible: BOOL, +} +pub type CONSOLE_CURSOR_INFO = _CONSOLE_CURSOR_INFO; +pub type PCONSOLE_CURSOR_INFO = *mut _CONSOLE_CURSOR_INFO; +extern "C" { + pub fn GetConsoleCursorInfo( + hConsoleOutput: HANDLE, + lpConsoleCursorInfo: PCONSOLE_CURSOR_INFO, + ) -> BOOL; +} +extern "C" { + pub fn SetConsoleCursorInfo( + hConsoleOutput: HANDLE, + lpConsoleCursorInfo: *const CONSOLE_CURSOR_INFO, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CONSOLE_SCREEN_BUFFER_INFO { + pub dwSize: COORD, + pub dwCursorPosition: COORD, + pub wAttributes: WORD, + pub srWindow: SMALL_RECT, + pub dwMaximumWindowSize: COORD, +} +pub type CONSOLE_SCREEN_BUFFER_INFO = _CONSOLE_SCREEN_BUFFER_INFO; +pub type PCONSOLE_SCREEN_BUFFER_INFO = *mut _CONSOLE_SCREEN_BUFFER_INFO; +extern "C" { + pub fn GetConsoleScreenBufferInfo( + hConsoleOutput: HANDLE, + lpConsoleScreenBufferInfo: PCONSOLE_SCREEN_BUFFER_INFO, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CONSOLE_SCREEN_BUFFER_INFOEX { + pub cbSize: ULONG, + pub dwSize: COORD, + pub dwCursorPosition: COORD, + pub wAttributes: WORD, + pub srWindow: SMALL_RECT, + pub dwMaximumWindowSize: COORD, + pub wPopupAttributes: WORD, + pub bFullscreenSupported: BOOL, + pub ColorTable: [COLORREF; 16usize], +} +pub type CONSOLE_SCREEN_BUFFER_INFOEX = _CONSOLE_SCREEN_BUFFER_INFOEX; +pub type PCONSOLE_SCREEN_BUFFER_INFOEX = *mut _CONSOLE_SCREEN_BUFFER_INFOEX; +extern "C" { + pub fn GetConsoleScreenBufferInfoEx( + hConsoleOutput: HANDLE, + lpConsoleScreenBufferInfoEx: PCONSOLE_SCREEN_BUFFER_INFOEX, + ) -> BOOL; +} +extern "C" { + pub fn SetConsoleScreenBufferInfoEx( + hConsoleOutput: HANDLE, + lpConsoleScreenBufferInfoEx: PCONSOLE_SCREEN_BUFFER_INFOEX, + ) -> BOOL; +} +extern "C" { + pub fn SetConsoleScreenBufferSize(hConsoleOutput: HANDLE, dwSize: COORD) -> BOOL; +} +extern "C" { + pub fn SetConsoleCursorPosition(hConsoleOutput: HANDLE, dwCursorPosition: COORD) -> BOOL; +} +extern "C" { + pub fn GetLargestConsoleWindowSize(hConsoleOutput: HANDLE) -> COORD; +} +extern "C" { + pub fn SetConsoleTextAttribute(hConsoleOutput: HANDLE, wAttributes: WORD) -> BOOL; +} +extern "C" { + pub fn SetConsoleWindowInfo( + hConsoleOutput: HANDLE, + bAbsolute: BOOL, + lpConsoleWindow: *const SMALL_RECT, + ) -> BOOL; +} +extern "C" { + pub fn WriteConsoleOutputCharacterA( + hConsoleOutput: HANDLE, + lpCharacter: LPCSTR, + nLength: DWORD, + dwWriteCoord: COORD, + lpNumberOfCharsWritten: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn WriteConsoleOutputCharacterW( + hConsoleOutput: HANDLE, + lpCharacter: LPCWSTR, + nLength: DWORD, + dwWriteCoord: COORD, + lpNumberOfCharsWritten: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn WriteConsoleOutputAttribute( + hConsoleOutput: HANDLE, + lpAttribute: *const WORD, + nLength: DWORD, + dwWriteCoord: COORD, + lpNumberOfAttrsWritten: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn ReadConsoleOutputCharacterA( + hConsoleOutput: HANDLE, + lpCharacter: LPSTR, + nLength: DWORD, + dwReadCoord: COORD, + lpNumberOfCharsRead: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn ReadConsoleOutputCharacterW( + hConsoleOutput: HANDLE, + lpCharacter: LPWSTR, + nLength: DWORD, + dwReadCoord: COORD, + lpNumberOfCharsRead: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn ReadConsoleOutputAttribute( + hConsoleOutput: HANDLE, + lpAttribute: LPWORD, + nLength: DWORD, + dwReadCoord: COORD, + lpNumberOfAttrsRead: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn WriteConsoleInputA( + hConsoleInput: HANDLE, + lpBuffer: *const INPUT_RECORD, + nLength: DWORD, + lpNumberOfEventsWritten: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn WriteConsoleInputW( + hConsoleInput: HANDLE, + lpBuffer: *const INPUT_RECORD, + nLength: DWORD, + lpNumberOfEventsWritten: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn ScrollConsoleScreenBufferA( + hConsoleOutput: HANDLE, + lpScrollRectangle: *const SMALL_RECT, + lpClipRectangle: *const SMALL_RECT, + dwDestinationOrigin: COORD, + lpFill: *const CHAR_INFO, + ) -> BOOL; +} +extern "C" { + pub fn ScrollConsoleScreenBufferW( + hConsoleOutput: HANDLE, + lpScrollRectangle: *const SMALL_RECT, + lpClipRectangle: *const SMALL_RECT, + dwDestinationOrigin: COORD, + lpFill: *const CHAR_INFO, + ) -> BOOL; +} +extern "C" { + pub fn WriteConsoleOutputA( + hConsoleOutput: HANDLE, + lpBuffer: *const CHAR_INFO, + dwBufferSize: COORD, + dwBufferCoord: COORD, + lpWriteRegion: PSMALL_RECT, + ) -> BOOL; +} +extern "C" { + pub fn WriteConsoleOutputW( + hConsoleOutput: HANDLE, + lpBuffer: *const CHAR_INFO, + dwBufferSize: COORD, + dwBufferCoord: COORD, + lpWriteRegion: PSMALL_RECT, + ) -> BOOL; +} +extern "C" { + pub fn ReadConsoleOutputA( + hConsoleOutput: HANDLE, + lpBuffer: PCHAR_INFO, + dwBufferSize: COORD, + dwBufferCoord: COORD, + lpReadRegion: PSMALL_RECT, + ) -> BOOL; +} +extern "C" { + pub fn ReadConsoleOutputW( + hConsoleOutput: HANDLE, + lpBuffer: PCHAR_INFO, + dwBufferSize: COORD, + dwBufferCoord: COORD, + lpReadRegion: PSMALL_RECT, + ) -> BOOL; +} +extern "C" { + pub fn GetConsoleTitleA(lpConsoleTitle: LPSTR, nSize: DWORD) -> DWORD; +} +extern "C" { + pub fn GetConsoleTitleW(lpConsoleTitle: LPWSTR, nSize: DWORD) -> DWORD; +} +extern "C" { + pub fn GetConsoleOriginalTitleA(lpConsoleTitle: LPSTR, nSize: DWORD) -> DWORD; +} +extern "C" { + pub fn GetConsoleOriginalTitleW(lpConsoleTitle: LPWSTR, nSize: DWORD) -> DWORD; +} +extern "C" { + pub fn SetConsoleTitleA(lpConsoleTitle: LPCSTR) -> BOOL; +} +extern "C" { + pub fn SetConsoleTitleW(lpConsoleTitle: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn GetNumberOfConsoleMouseButtons(lpNumberOfMouseButtons: LPDWORD) -> BOOL; +} +extern "C" { + pub fn GetConsoleFontSize(hConsoleOutput: HANDLE, nFont: DWORD) -> COORD; +} +extern "C" { + pub fn GetCurrentConsoleFont( + hConsoleOutput: HANDLE, + bMaximumWindow: BOOL, + lpConsoleCurrentFont: PCONSOLE_FONT_INFO, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CONSOLE_FONT_INFOEX { + pub cbSize: ULONG, + pub nFont: DWORD, + pub dwFontSize: COORD, + pub FontFamily: UINT, + pub FontWeight: UINT, + pub FaceName: [WCHAR; 32usize], +} +pub type CONSOLE_FONT_INFOEX = _CONSOLE_FONT_INFOEX; +pub type PCONSOLE_FONT_INFOEX = *mut _CONSOLE_FONT_INFOEX; +extern "C" { + pub fn GetCurrentConsoleFontEx( + hConsoleOutput: HANDLE, + bMaximumWindow: BOOL, + lpConsoleCurrentFontEx: PCONSOLE_FONT_INFOEX, + ) -> BOOL; +} +extern "C" { + pub fn SetCurrentConsoleFontEx( + hConsoleOutput: HANDLE, + bMaximumWindow: BOOL, + lpConsoleCurrentFontEx: PCONSOLE_FONT_INFOEX, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CONSOLE_SELECTION_INFO { + pub dwFlags: DWORD, + pub dwSelectionAnchor: COORD, + pub srSelection: SMALL_RECT, +} +pub type CONSOLE_SELECTION_INFO = _CONSOLE_SELECTION_INFO; +pub type PCONSOLE_SELECTION_INFO = *mut _CONSOLE_SELECTION_INFO; +extern "C" { + pub fn GetConsoleSelectionInfo(lpConsoleSelectionInfo: PCONSOLE_SELECTION_INFO) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CONSOLE_HISTORY_INFO { + pub cbSize: UINT, + pub HistoryBufferSize: UINT, + pub NumberOfHistoryBuffers: UINT, + pub dwFlags: DWORD, +} +pub type CONSOLE_HISTORY_INFO = _CONSOLE_HISTORY_INFO; +pub type PCONSOLE_HISTORY_INFO = *mut _CONSOLE_HISTORY_INFO; +extern "C" { + pub fn GetConsoleHistoryInfo(lpConsoleHistoryInfo: PCONSOLE_HISTORY_INFO) -> BOOL; +} +extern "C" { + pub fn SetConsoleHistoryInfo(lpConsoleHistoryInfo: PCONSOLE_HISTORY_INFO) -> BOOL; +} +extern "C" { + pub fn GetConsoleDisplayMode(lpModeFlags: LPDWORD) -> BOOL; +} +extern "C" { + pub fn SetConsoleDisplayMode( + hConsoleOutput: HANDLE, + dwFlags: DWORD, + lpNewScreenBufferDimensions: PCOORD, + ) -> BOOL; +} +extern "C" { + pub fn GetConsoleWindow() -> HWND; +} +extern "C" { + pub fn AddConsoleAliasA(Source: LPSTR, Target: LPSTR, ExeName: LPSTR) -> BOOL; +} +extern "C" { + pub fn AddConsoleAliasW(Source: LPWSTR, Target: LPWSTR, ExeName: LPWSTR) -> BOOL; +} +extern "C" { + pub fn GetConsoleAliasA( + Source: LPSTR, + TargetBuffer: LPSTR, + TargetBufferLength: DWORD, + ExeName: LPSTR, + ) -> DWORD; +} +extern "C" { + pub fn GetConsoleAliasW( + Source: LPWSTR, + TargetBuffer: LPWSTR, + TargetBufferLength: DWORD, + ExeName: LPWSTR, + ) -> DWORD; +} +extern "C" { + pub fn GetConsoleAliasesLengthA(ExeName: LPSTR) -> DWORD; +} +extern "C" { + pub fn GetConsoleAliasesLengthW(ExeName: LPWSTR) -> DWORD; +} +extern "C" { + pub fn GetConsoleAliasExesLengthA() -> DWORD; +} +extern "C" { + pub fn GetConsoleAliasExesLengthW() -> DWORD; +} +extern "C" { + pub fn GetConsoleAliasesA( + AliasBuffer: LPSTR, + AliasBufferLength: DWORD, + ExeName: LPSTR, + ) -> DWORD; +} +extern "C" { + pub fn GetConsoleAliasesW( + AliasBuffer: LPWSTR, + AliasBufferLength: DWORD, + ExeName: LPWSTR, + ) -> DWORD; +} +extern "C" { + pub fn GetConsoleAliasExesA(ExeNameBuffer: LPSTR, ExeNameBufferLength: DWORD) -> DWORD; +} +extern "C" { + pub fn GetConsoleAliasExesW(ExeNameBuffer: LPWSTR, ExeNameBufferLength: DWORD) -> DWORD; +} +extern "C" { + pub fn ExpungeConsoleCommandHistoryA(ExeName: LPSTR); +} +extern "C" { + pub fn ExpungeConsoleCommandHistoryW(ExeName: LPWSTR); +} +extern "C" { + pub fn SetConsoleNumberOfCommandsA(Number: DWORD, ExeName: LPSTR) -> BOOL; +} +extern "C" { + pub fn SetConsoleNumberOfCommandsW(Number: DWORD, ExeName: LPWSTR) -> BOOL; +} +extern "C" { + pub fn GetConsoleCommandHistoryLengthA(ExeName: LPSTR) -> DWORD; +} +extern "C" { + pub fn GetConsoleCommandHistoryLengthW(ExeName: LPWSTR) -> DWORD; +} +extern "C" { + pub fn GetConsoleCommandHistoryA( + Commands: LPSTR, + CommandBufferLength: DWORD, + ExeName: LPSTR, + ) -> DWORD; +} +extern "C" { + pub fn GetConsoleCommandHistoryW( + Commands: LPWSTR, + CommandBufferLength: DWORD, + ExeName: LPWSTR, + ) -> DWORD; +} +extern "C" { + pub fn GetConsoleProcessList(lpdwProcessList: LPDWORD, dwProcessCount: DWORD) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagVS_FIXEDFILEINFO { + pub dwSignature: DWORD, + pub dwStrucVersion: DWORD, + pub dwFileVersionMS: DWORD, + pub dwFileVersionLS: DWORD, + pub dwProductVersionMS: DWORD, + pub dwProductVersionLS: DWORD, + pub dwFileFlagsMask: DWORD, + pub dwFileFlags: DWORD, + pub dwFileOS: DWORD, + pub dwFileType: DWORD, + pub dwFileSubtype: DWORD, + pub dwFileDateMS: DWORD, + pub dwFileDateLS: DWORD, +} +pub type VS_FIXEDFILEINFO = tagVS_FIXEDFILEINFO; +extern "C" { + pub fn VerFindFileA( + uFlags: DWORD, + szFileName: LPCSTR, + szWinDir: LPCSTR, + szAppDir: LPCSTR, + szCurDir: LPSTR, + puCurDirLen: PUINT, + szDestDir: LPSTR, + puDestDirLen: PUINT, + ) -> DWORD; +} +extern "C" { + pub fn VerFindFileW( + uFlags: DWORD, + szFileName: LPCWSTR, + szWinDir: LPCWSTR, + szAppDir: LPCWSTR, + szCurDir: LPWSTR, + puCurDirLen: PUINT, + szDestDir: LPWSTR, + puDestDirLen: PUINT, + ) -> DWORD; +} +extern "C" { + pub fn VerInstallFileA( + uFlags: DWORD, + szSrcFileName: LPCSTR, + szDestFileName: LPCSTR, + szSrcDir: LPCSTR, + szDestDir: LPCSTR, + szCurDir: LPCSTR, + szTmpFile: LPSTR, + puTmpFileLen: PUINT, + ) -> DWORD; +} +extern "C" { + pub fn VerInstallFileW( + uFlags: DWORD, + szSrcFileName: LPCWSTR, + szDestFileName: LPCWSTR, + szSrcDir: LPCWSTR, + szDestDir: LPCWSTR, + szCurDir: LPCWSTR, + szTmpFile: LPWSTR, + puTmpFileLen: PUINT, + ) -> DWORD; +} +extern "C" { + pub fn GetFileVersionInfoSizeA(lptstrFilename: LPCSTR, lpdwHandle: LPDWORD) -> DWORD; +} +extern "C" { + pub fn GetFileVersionInfoSizeW(lptstrFilename: LPCWSTR, lpdwHandle: LPDWORD) -> DWORD; +} +extern "C" { + pub fn GetFileVersionInfoA( + lptstrFilename: LPCSTR, + dwHandle: DWORD, + dwLen: DWORD, + lpData: LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn GetFileVersionInfoW( + lptstrFilename: LPCWSTR, + dwHandle: DWORD, + dwLen: DWORD, + lpData: LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn GetFileVersionInfoSizeExA( + dwFlags: DWORD, + lpwstrFilename: LPCSTR, + lpdwHandle: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetFileVersionInfoSizeExW( + dwFlags: DWORD, + lpwstrFilename: LPCWSTR, + lpdwHandle: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetFileVersionInfoExA( + dwFlags: DWORD, + lpwstrFilename: LPCSTR, + dwHandle: DWORD, + dwLen: DWORD, + lpData: LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn GetFileVersionInfoExW( + dwFlags: DWORD, + lpwstrFilename: LPCWSTR, + dwHandle: DWORD, + dwLen: DWORD, + lpData: LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn VerLanguageNameA(wLang: DWORD, szLang: LPSTR, cchLang: DWORD) -> DWORD; +} +extern "C" { + pub fn VerLanguageNameW(wLang: DWORD, szLang: LPWSTR, cchLang: DWORD) -> DWORD; +} +extern "C" { + pub fn VerQueryValueA( + pBlock: LPCVOID, + lpSubBlock: LPCSTR, + lplpBuffer: *mut LPVOID, + puLen: PUINT, + ) -> BOOL; +} +extern "C" { + pub fn VerQueryValueW( + pBlock: LPCVOID, + lpSubBlock: LPCWSTR, + lplpBuffer: *mut LPVOID, + puLen: PUINT, + ) -> BOOL; +} +pub type LSTATUS = LONG; +pub type REGSAM = ACCESS_MASK; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct val_context { + pub valuelen: ::std::os::raw::c_int, + pub value_context: LPVOID, + pub val_buff_ptr: LPVOID, +} +pub type PVALCONTEXT = *mut val_context; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pvalueA { + pub pv_valuename: LPSTR, + pub pv_valuelen: ::std::os::raw::c_int, + pub pv_value_context: LPVOID, + pub pv_type: DWORD, +} +pub type PVALUEA = pvalueA; +pub type PPVALUEA = *mut pvalueA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pvalueW { + pub pv_valuename: LPWSTR, + pub pv_valuelen: ::std::os::raw::c_int, + pub pv_value_context: LPVOID, + pub pv_type: DWORD, +} +pub type PVALUEW = pvalueW; +pub type PPVALUEW = *mut pvalueW; +pub type PVALUE = PVALUEA; +pub type PPVALUE = PPVALUEA; +pub type PQUERYHANDLER = ::std::option::Option< + unsafe extern "C" fn( + arg1: LPVOID, + arg2: PVALCONTEXT, + arg3: DWORD, + arg4: LPVOID, + arg5: *mut DWORD, + arg6: DWORD, + ) -> DWORD, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct provider_info { + pub pi_R0_1val: PQUERYHANDLER, + pub pi_R0_allvals: PQUERYHANDLER, + pub pi_R3_1val: PQUERYHANDLER, + pub pi_R3_allvals: PQUERYHANDLER, + pub pi_flags: DWORD, + pub pi_key_context: LPVOID, +} +pub type REG_PROVIDER = provider_info; +pub type PPROVIDER = *mut provider_info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct value_entA { + pub ve_valuename: LPSTR, + pub ve_valuelen: DWORD, + pub ve_valueptr: DWORD_PTR, + pub ve_type: DWORD, +} +pub type VALENTA = value_entA; +pub type PVALENTA = *mut value_entA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct value_entW { + pub ve_valuename: LPWSTR, + pub ve_valuelen: DWORD, + pub ve_valueptr: DWORD_PTR, + pub ve_type: DWORD, +} +pub type VALENTW = value_entW; +pub type PVALENTW = *mut value_entW; +pub type VALENT = VALENTA; +pub type PVALENT = PVALENTA; +extern "C" { + pub fn RegCloseKey(hKey: HKEY) -> LSTATUS; +} +extern "C" { + pub fn RegOverridePredefKey(hKey: HKEY, hNewHKey: HKEY) -> LSTATUS; +} +extern "C" { + pub fn RegOpenUserClassesRoot( + hToken: HANDLE, + dwOptions: DWORD, + samDesired: REGSAM, + phkResult: PHKEY, + ) -> LSTATUS; +} +extern "C" { + pub fn RegOpenCurrentUser(samDesired: REGSAM, phkResult: PHKEY) -> LSTATUS; +} +extern "C" { + pub fn RegDisablePredefinedCache() -> LSTATUS; +} +extern "C" { + pub fn RegDisablePredefinedCacheEx() -> LSTATUS; +} +extern "C" { + pub fn RegConnectRegistryA(lpMachineName: LPCSTR, hKey: HKEY, phkResult: PHKEY) -> LSTATUS; +} +extern "C" { + pub fn RegConnectRegistryW(lpMachineName: LPCWSTR, hKey: HKEY, phkResult: PHKEY) -> LSTATUS; +} +extern "C" { + pub fn RegConnectRegistryExA( + lpMachineName: LPCSTR, + hKey: HKEY, + Flags: ULONG, + phkResult: PHKEY, + ) -> LSTATUS; +} +extern "C" { + pub fn RegConnectRegistryExW( + lpMachineName: LPCWSTR, + hKey: HKEY, + Flags: ULONG, + phkResult: PHKEY, + ) -> LSTATUS; +} +extern "C" { + pub fn RegCreateKeyA(hKey: HKEY, lpSubKey: LPCSTR, phkResult: PHKEY) -> LSTATUS; +} +extern "C" { + pub fn RegCreateKeyW(hKey: HKEY, lpSubKey: LPCWSTR, phkResult: PHKEY) -> LSTATUS; +} +extern "C" { + pub fn RegCreateKeyExA( + hKey: HKEY, + lpSubKey: LPCSTR, + Reserved: DWORD, + lpClass: LPSTR, + dwOptions: DWORD, + samDesired: REGSAM, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + phkResult: PHKEY, + lpdwDisposition: LPDWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegCreateKeyExW( + hKey: HKEY, + lpSubKey: LPCWSTR, + Reserved: DWORD, + lpClass: LPWSTR, + dwOptions: DWORD, + samDesired: REGSAM, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + phkResult: PHKEY, + lpdwDisposition: LPDWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegCreateKeyTransactedA( + hKey: HKEY, + lpSubKey: LPCSTR, + Reserved: DWORD, + lpClass: LPSTR, + dwOptions: DWORD, + samDesired: REGSAM, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + phkResult: PHKEY, + lpdwDisposition: LPDWORD, + hTransaction: HANDLE, + pExtendedParemeter: PVOID, + ) -> LSTATUS; +} +extern "C" { + pub fn RegCreateKeyTransactedW( + hKey: HKEY, + lpSubKey: LPCWSTR, + Reserved: DWORD, + lpClass: LPWSTR, + dwOptions: DWORD, + samDesired: REGSAM, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + phkResult: PHKEY, + lpdwDisposition: LPDWORD, + hTransaction: HANDLE, + pExtendedParemeter: PVOID, + ) -> LSTATUS; +} +extern "C" { + pub fn RegDeleteKeyA(hKey: HKEY, lpSubKey: LPCSTR) -> LSTATUS; +} +extern "C" { + pub fn RegDeleteKeyW(hKey: HKEY, lpSubKey: LPCWSTR) -> LSTATUS; +} +extern "C" { + pub fn RegDeleteKeyExA( + hKey: HKEY, + lpSubKey: LPCSTR, + samDesired: REGSAM, + Reserved: DWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegDeleteKeyExW( + hKey: HKEY, + lpSubKey: LPCWSTR, + samDesired: REGSAM, + Reserved: DWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegDeleteKeyTransactedA( + hKey: HKEY, + lpSubKey: LPCSTR, + samDesired: REGSAM, + Reserved: DWORD, + hTransaction: HANDLE, + pExtendedParameter: PVOID, + ) -> LSTATUS; +} +extern "C" { + pub fn RegDeleteKeyTransactedW( + hKey: HKEY, + lpSubKey: LPCWSTR, + samDesired: REGSAM, + Reserved: DWORD, + hTransaction: HANDLE, + pExtendedParameter: PVOID, + ) -> LSTATUS; +} +extern "C" { + pub fn RegDisableReflectionKey(hBase: HKEY) -> LONG; +} +extern "C" { + pub fn RegEnableReflectionKey(hBase: HKEY) -> LONG; +} +extern "C" { + pub fn RegQueryReflectionKey(hBase: HKEY, bIsReflectionDisabled: *mut BOOL) -> LONG; +} +extern "C" { + pub fn RegDeleteValueA(hKey: HKEY, lpValueName: LPCSTR) -> LSTATUS; +} +extern "C" { + pub fn RegDeleteValueW(hKey: HKEY, lpValueName: LPCWSTR) -> LSTATUS; +} +extern "C" { + pub fn RegEnumKeyA(hKey: HKEY, dwIndex: DWORD, lpName: LPSTR, cchName: DWORD) -> LSTATUS; +} +extern "C" { + pub fn RegEnumKeyW(hKey: HKEY, dwIndex: DWORD, lpName: LPWSTR, cchName: DWORD) -> LSTATUS; +} +extern "C" { + pub fn RegEnumKeyExA( + hKey: HKEY, + dwIndex: DWORD, + lpName: LPSTR, + lpcchName: LPDWORD, + lpReserved: LPDWORD, + lpClass: LPSTR, + lpcchClass: LPDWORD, + lpftLastWriteTime: PFILETIME, + ) -> LSTATUS; +} +extern "C" { + pub fn RegEnumKeyExW( + hKey: HKEY, + dwIndex: DWORD, + lpName: LPWSTR, + lpcchName: LPDWORD, + lpReserved: LPDWORD, + lpClass: LPWSTR, + lpcchClass: LPDWORD, + lpftLastWriteTime: PFILETIME, + ) -> LSTATUS; +} +extern "C" { + pub fn RegEnumValueA( + hKey: HKEY, + dwIndex: DWORD, + lpValueName: LPSTR, + lpcchValueName: LPDWORD, + lpReserved: LPDWORD, + lpType: LPDWORD, + lpData: LPBYTE, + lpcbData: LPDWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegEnumValueW( + hKey: HKEY, + dwIndex: DWORD, + lpValueName: LPWSTR, + lpcchValueName: LPDWORD, + lpReserved: LPDWORD, + lpType: LPDWORD, + lpData: LPBYTE, + lpcbData: LPDWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegFlushKey(hKey: HKEY) -> LSTATUS; +} +extern "C" { + pub fn RegGetKeySecurity( + hKey: HKEY, + SecurityInformation: SECURITY_INFORMATION, + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + lpcbSecurityDescriptor: LPDWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegLoadKeyA(hKey: HKEY, lpSubKey: LPCSTR, lpFile: LPCSTR) -> LSTATUS; +} +extern "C" { + pub fn RegLoadKeyW(hKey: HKEY, lpSubKey: LPCWSTR, lpFile: LPCWSTR) -> LSTATUS; +} +extern "C" { + pub fn RegNotifyChangeKeyValue( + hKey: HKEY, + bWatchSubtree: BOOL, + dwNotifyFilter: DWORD, + hEvent: HANDLE, + fAsynchronous: BOOL, + ) -> LSTATUS; +} +extern "C" { + pub fn RegOpenKeyA(hKey: HKEY, lpSubKey: LPCSTR, phkResult: PHKEY) -> LSTATUS; +} +extern "C" { + pub fn RegOpenKeyW(hKey: HKEY, lpSubKey: LPCWSTR, phkResult: PHKEY) -> LSTATUS; +} +extern "C" { + pub fn RegOpenKeyExA( + hKey: HKEY, + lpSubKey: LPCSTR, + ulOptions: DWORD, + samDesired: REGSAM, + phkResult: PHKEY, + ) -> LSTATUS; +} +extern "C" { + pub fn RegOpenKeyExW( + hKey: HKEY, + lpSubKey: LPCWSTR, + ulOptions: DWORD, + samDesired: REGSAM, + phkResult: PHKEY, + ) -> LSTATUS; +} +extern "C" { + pub fn RegOpenKeyTransactedA( + hKey: HKEY, + lpSubKey: LPCSTR, + ulOptions: DWORD, + samDesired: REGSAM, + phkResult: PHKEY, + hTransaction: HANDLE, + pExtendedParemeter: PVOID, + ) -> LSTATUS; +} +extern "C" { + pub fn RegOpenKeyTransactedW( + hKey: HKEY, + lpSubKey: LPCWSTR, + ulOptions: DWORD, + samDesired: REGSAM, + phkResult: PHKEY, + hTransaction: HANDLE, + pExtendedParemeter: PVOID, + ) -> LSTATUS; +} +extern "C" { + pub fn RegQueryInfoKeyA( + hKey: HKEY, + lpClass: LPSTR, + lpcchClass: LPDWORD, + lpReserved: LPDWORD, + lpcSubKeys: LPDWORD, + lpcbMaxSubKeyLen: LPDWORD, + lpcbMaxClassLen: LPDWORD, + lpcValues: LPDWORD, + lpcbMaxValueNameLen: LPDWORD, + lpcbMaxValueLen: LPDWORD, + lpcbSecurityDescriptor: LPDWORD, + lpftLastWriteTime: PFILETIME, + ) -> LSTATUS; +} +extern "C" { + pub fn RegQueryInfoKeyW( + hKey: HKEY, + lpClass: LPWSTR, + lpcchClass: LPDWORD, + lpReserved: LPDWORD, + lpcSubKeys: LPDWORD, + lpcbMaxSubKeyLen: LPDWORD, + lpcbMaxClassLen: LPDWORD, + lpcValues: LPDWORD, + lpcbMaxValueNameLen: LPDWORD, + lpcbMaxValueLen: LPDWORD, + lpcbSecurityDescriptor: LPDWORD, + lpftLastWriteTime: PFILETIME, + ) -> LSTATUS; +} +extern "C" { + pub fn RegQueryValueA(hKey: HKEY, lpSubKey: LPCSTR, lpData: LPSTR, lpcbData: PLONG) -> LSTATUS; +} +extern "C" { + pub fn RegQueryValueW( + hKey: HKEY, + lpSubKey: LPCWSTR, + lpData: LPWSTR, + lpcbData: PLONG, + ) -> LSTATUS; +} +extern "C" { + pub fn RegQueryMultipleValuesA( + hKey: HKEY, + val_list: PVALENTA, + num_vals: DWORD, + lpValueBuf: LPSTR, + ldwTotsize: LPDWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegQueryMultipleValuesW( + hKey: HKEY, + val_list: PVALENTW, + num_vals: DWORD, + lpValueBuf: LPWSTR, + ldwTotsize: LPDWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegQueryValueExA( + hKey: HKEY, + lpValueName: LPCSTR, + lpReserved: LPDWORD, + lpType: LPDWORD, + lpData: LPBYTE, + lpcbData: LPDWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegQueryValueExW( + hKey: HKEY, + lpValueName: LPCWSTR, + lpReserved: LPDWORD, + lpType: LPDWORD, + lpData: LPBYTE, + lpcbData: LPDWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegReplaceKeyA( + hKey: HKEY, + lpSubKey: LPCSTR, + lpNewFile: LPCSTR, + lpOldFile: LPCSTR, + ) -> LSTATUS; +} +extern "C" { + pub fn RegReplaceKeyW( + hKey: HKEY, + lpSubKey: LPCWSTR, + lpNewFile: LPCWSTR, + lpOldFile: LPCWSTR, + ) -> LSTATUS; +} +extern "C" { + pub fn RegRestoreKeyA(hKey: HKEY, lpFile: LPCSTR, dwFlags: DWORD) -> LSTATUS; +} +extern "C" { + pub fn RegRestoreKeyW(hKey: HKEY, lpFile: LPCWSTR, dwFlags: DWORD) -> LSTATUS; +} +extern "C" { + pub fn RegRenameKey(hKey: HKEY, lpSubKeyName: LPCWSTR, lpNewKeyName: LPCWSTR) -> LSTATUS; +} +extern "C" { + pub fn RegSaveKeyA( + hKey: HKEY, + lpFile: LPCSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + ) -> LSTATUS; +} +extern "C" { + pub fn RegSaveKeyW( + hKey: HKEY, + lpFile: LPCWSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + ) -> LSTATUS; +} +extern "C" { + pub fn RegSetKeySecurity( + hKey: HKEY, + SecurityInformation: SECURITY_INFORMATION, + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + ) -> LSTATUS; +} +extern "C" { + pub fn RegSetValueA( + hKey: HKEY, + lpSubKey: LPCSTR, + dwType: DWORD, + lpData: LPCSTR, + cbData: DWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegSetValueW( + hKey: HKEY, + lpSubKey: LPCWSTR, + dwType: DWORD, + lpData: LPCWSTR, + cbData: DWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegSetValueExA( + hKey: HKEY, + lpValueName: LPCSTR, + Reserved: DWORD, + dwType: DWORD, + lpData: *const BYTE, + cbData: DWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegSetValueExW( + hKey: HKEY, + lpValueName: LPCWSTR, + Reserved: DWORD, + dwType: DWORD, + lpData: *const BYTE, + cbData: DWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegUnLoadKeyA(hKey: HKEY, lpSubKey: LPCSTR) -> LSTATUS; +} +extern "C" { + pub fn RegUnLoadKeyW(hKey: HKEY, lpSubKey: LPCWSTR) -> LSTATUS; +} +extern "C" { + pub fn RegDeleteKeyValueA(hKey: HKEY, lpSubKey: LPCSTR, lpValueName: LPCSTR) -> LSTATUS; +} +extern "C" { + pub fn RegDeleteKeyValueW(hKey: HKEY, lpSubKey: LPCWSTR, lpValueName: LPCWSTR) -> LSTATUS; +} +extern "C" { + pub fn RegSetKeyValueA( + hKey: HKEY, + lpSubKey: LPCSTR, + lpValueName: LPCSTR, + dwType: DWORD, + lpData: LPCVOID, + cbData: DWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegSetKeyValueW( + hKey: HKEY, + lpSubKey: LPCWSTR, + lpValueName: LPCWSTR, + dwType: DWORD, + lpData: LPCVOID, + cbData: DWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegDeleteTreeA(hKey: HKEY, lpSubKey: LPCSTR) -> LSTATUS; +} +extern "C" { + pub fn RegDeleteTreeW(hKey: HKEY, lpSubKey: LPCWSTR) -> LSTATUS; +} +extern "C" { + pub fn RegCopyTreeA(hKeySrc: HKEY, lpSubKey: LPCSTR, hKeyDest: HKEY) -> LSTATUS; +} +extern "C" { + pub fn RegGetValueA( + hkey: HKEY, + lpSubKey: LPCSTR, + lpValue: LPCSTR, + dwFlags: DWORD, + pdwType: LPDWORD, + pvData: PVOID, + pcbData: LPDWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegGetValueW( + hkey: HKEY, + lpSubKey: LPCWSTR, + lpValue: LPCWSTR, + dwFlags: DWORD, + pdwType: LPDWORD, + pvData: PVOID, + pcbData: LPDWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegCopyTreeW(hKeySrc: HKEY, lpSubKey: LPCWSTR, hKeyDest: HKEY) -> LSTATUS; +} +extern "C" { + pub fn RegLoadMUIStringA( + hKey: HKEY, + pszValue: LPCSTR, + pszOutBuf: LPSTR, + cbOutBuf: DWORD, + pcbData: LPDWORD, + Flags: DWORD, + pszDirectory: LPCSTR, + ) -> LSTATUS; +} +extern "C" { + pub fn RegLoadMUIStringW( + hKey: HKEY, + pszValue: LPCWSTR, + pszOutBuf: LPWSTR, + cbOutBuf: DWORD, + pcbData: LPDWORD, + Flags: DWORD, + pszDirectory: LPCWSTR, + ) -> LSTATUS; +} +extern "C" { + pub fn RegLoadAppKeyA( + lpFile: LPCSTR, + phkResult: PHKEY, + samDesired: REGSAM, + dwOptions: DWORD, + Reserved: DWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegLoadAppKeyW( + lpFile: LPCWSTR, + phkResult: PHKEY, + samDesired: REGSAM, + dwOptions: DWORD, + Reserved: DWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn InitiateSystemShutdownA( + lpMachineName: LPSTR, + lpMessage: LPSTR, + dwTimeout: DWORD, + bForceAppsClosed: BOOL, + bRebootAfterShutdown: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn InitiateSystemShutdownW( + lpMachineName: LPWSTR, + lpMessage: LPWSTR, + dwTimeout: DWORD, + bForceAppsClosed: BOOL, + bRebootAfterShutdown: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn AbortSystemShutdownA(lpMachineName: LPSTR) -> BOOL; +} +extern "C" { + pub fn AbortSystemShutdownW(lpMachineName: LPWSTR) -> BOOL; +} +extern "C" { + pub fn InitiateSystemShutdownExA( + lpMachineName: LPSTR, + lpMessage: LPSTR, + dwTimeout: DWORD, + bForceAppsClosed: BOOL, + bRebootAfterShutdown: BOOL, + dwReason: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn InitiateSystemShutdownExW( + lpMachineName: LPWSTR, + lpMessage: LPWSTR, + dwTimeout: DWORD, + bForceAppsClosed: BOOL, + bRebootAfterShutdown: BOOL, + dwReason: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn InitiateShutdownA( + lpMachineName: LPSTR, + lpMessage: LPSTR, + dwGracePeriod: DWORD, + dwShutdownFlags: DWORD, + dwReason: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn InitiateShutdownW( + lpMachineName: LPWSTR, + lpMessage: LPWSTR, + dwGracePeriod: DWORD, + dwShutdownFlags: DWORD, + dwReason: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn CheckForHiberboot(pHiberboot: PBOOLEAN, bClearFlag: BOOLEAN) -> DWORD; +} +extern "C" { + pub fn RegSaveKeyExA( + hKey: HKEY, + lpFile: LPCSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + Flags: DWORD, + ) -> LSTATUS; +} +extern "C" { + pub fn RegSaveKeyExW( + hKey: HKEY, + lpFile: LPCWSTR, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + Flags: DWORD, + ) -> LSTATUS; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NETRESOURCEA { + pub dwScope: DWORD, + pub dwType: DWORD, + pub dwDisplayType: DWORD, + pub dwUsage: DWORD, + pub lpLocalName: LPSTR, + pub lpRemoteName: LPSTR, + pub lpComment: LPSTR, + pub lpProvider: LPSTR, +} +pub type NETRESOURCEA = _NETRESOURCEA; +pub type LPNETRESOURCEA = *mut _NETRESOURCEA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NETRESOURCEW { + pub dwScope: DWORD, + pub dwType: DWORD, + pub dwDisplayType: DWORD, + pub dwUsage: DWORD, + pub lpLocalName: LPWSTR, + pub lpRemoteName: LPWSTR, + pub lpComment: LPWSTR, + pub lpProvider: LPWSTR, +} +pub type NETRESOURCEW = _NETRESOURCEW; +pub type LPNETRESOURCEW = *mut _NETRESOURCEW; +pub type NETRESOURCE = NETRESOURCEA; +pub type LPNETRESOURCE = LPNETRESOURCEA; +extern "C" { + pub fn WNetAddConnectionA( + lpRemoteName: LPCSTR, + lpPassword: LPCSTR, + lpLocalName: LPCSTR, + ) -> DWORD; +} +extern "C" { + pub fn WNetAddConnectionW( + lpRemoteName: LPCWSTR, + lpPassword: LPCWSTR, + lpLocalName: LPCWSTR, + ) -> DWORD; +} +extern "C" { + pub fn WNetAddConnection2A( + lpNetResource: LPNETRESOURCEA, + lpPassword: LPCSTR, + lpUserName: LPCSTR, + dwFlags: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetAddConnection2W( + lpNetResource: LPNETRESOURCEW, + lpPassword: LPCWSTR, + lpUserName: LPCWSTR, + dwFlags: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetAddConnection3A( + hwndOwner: HWND, + lpNetResource: LPNETRESOURCEA, + lpPassword: LPCSTR, + lpUserName: LPCSTR, + dwFlags: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetAddConnection3W( + hwndOwner: HWND, + lpNetResource: LPNETRESOURCEW, + lpPassword: LPCWSTR, + lpUserName: LPCWSTR, + dwFlags: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetAddConnection4A( + hwndOwner: HWND, + lpNetResource: LPNETRESOURCEA, + pAuthBuffer: PVOID, + cbAuthBuffer: DWORD, + dwFlags: DWORD, + lpUseOptions: PBYTE, + cbUseOptions: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetAddConnection4W( + hwndOwner: HWND, + lpNetResource: LPNETRESOURCEW, + pAuthBuffer: PVOID, + cbAuthBuffer: DWORD, + dwFlags: DWORD, + lpUseOptions: PBYTE, + cbUseOptions: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetCancelConnectionA(lpName: LPCSTR, fForce: BOOL) -> DWORD; +} +extern "C" { + pub fn WNetCancelConnectionW(lpName: LPCWSTR, fForce: BOOL) -> DWORD; +} +extern "C" { + pub fn WNetCancelConnection2A(lpName: LPCSTR, dwFlags: DWORD, fForce: BOOL) -> DWORD; +} +extern "C" { + pub fn WNetCancelConnection2W(lpName: LPCWSTR, dwFlags: DWORD, fForce: BOOL) -> DWORD; +} +extern "C" { + pub fn WNetGetConnectionA( + lpLocalName: LPCSTR, + lpRemoteName: LPSTR, + lpnLength: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetGetConnectionW( + lpLocalName: LPCWSTR, + lpRemoteName: LPWSTR, + lpnLength: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetRestoreSingleConnectionW(hwndParent: HWND, lpDevice: LPCWSTR, fUseUI: BOOL) + -> DWORD; +} +extern "C" { + pub fn WNetUseConnectionA( + hwndOwner: HWND, + lpNetResource: LPNETRESOURCEA, + lpPassword: LPCSTR, + lpUserId: LPCSTR, + dwFlags: DWORD, + lpAccessName: LPSTR, + lpBufferSize: LPDWORD, + lpResult: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetUseConnectionW( + hwndOwner: HWND, + lpNetResource: LPNETRESOURCEW, + lpPassword: LPCWSTR, + lpUserId: LPCWSTR, + dwFlags: DWORD, + lpAccessName: LPWSTR, + lpBufferSize: LPDWORD, + lpResult: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetUseConnection4A( + hwndOwner: HWND, + lpNetResource: LPNETRESOURCEA, + pAuthBuffer: PVOID, + cbAuthBuffer: DWORD, + dwFlags: DWORD, + lpUseOptions: PBYTE, + cbUseOptions: DWORD, + lpAccessName: LPSTR, + lpBufferSize: LPDWORD, + lpResult: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetUseConnection4W( + hwndOwner: HWND, + lpNetResource: LPNETRESOURCEW, + pAuthBuffer: PVOID, + cbAuthBuffer: DWORD, + dwFlags: DWORD, + lpUseOptions: PBYTE, + cbUseOptions: DWORD, + lpAccessName: LPWSTR, + lpBufferSize: LPDWORD, + lpResult: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetConnectionDialog(hwnd: HWND, dwType: DWORD) -> DWORD; +} +extern "C" { + pub fn WNetDisconnectDialog(hwnd: HWND, dwType: DWORD) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CONNECTDLGSTRUCTA { + pub cbStructure: DWORD, + pub hwndOwner: HWND, + pub lpConnRes: LPNETRESOURCEA, + pub dwFlags: DWORD, + pub dwDevNum: DWORD, +} +pub type CONNECTDLGSTRUCTA = _CONNECTDLGSTRUCTA; +pub type LPCONNECTDLGSTRUCTA = *mut _CONNECTDLGSTRUCTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CONNECTDLGSTRUCTW { + pub cbStructure: DWORD, + pub hwndOwner: HWND, + pub lpConnRes: LPNETRESOURCEW, + pub dwFlags: DWORD, + pub dwDevNum: DWORD, +} +pub type CONNECTDLGSTRUCTW = _CONNECTDLGSTRUCTW; +pub type LPCONNECTDLGSTRUCTW = *mut _CONNECTDLGSTRUCTW; +pub type CONNECTDLGSTRUCT = CONNECTDLGSTRUCTA; +pub type LPCONNECTDLGSTRUCT = LPCONNECTDLGSTRUCTA; +extern "C" { + pub fn WNetConnectionDialog1A(lpConnDlgStruct: LPCONNECTDLGSTRUCTA) -> DWORD; +} +extern "C" { + pub fn WNetConnectionDialog1W(lpConnDlgStruct: LPCONNECTDLGSTRUCTW) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISCDLGSTRUCTA { + pub cbStructure: DWORD, + pub hwndOwner: HWND, + pub lpLocalName: LPSTR, + pub lpRemoteName: LPSTR, + pub dwFlags: DWORD, +} +pub type DISCDLGSTRUCTA = _DISCDLGSTRUCTA; +pub type LPDISCDLGSTRUCTA = *mut _DISCDLGSTRUCTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISCDLGSTRUCTW { + pub cbStructure: DWORD, + pub hwndOwner: HWND, + pub lpLocalName: LPWSTR, + pub lpRemoteName: LPWSTR, + pub dwFlags: DWORD, +} +pub type DISCDLGSTRUCTW = _DISCDLGSTRUCTW; +pub type LPDISCDLGSTRUCTW = *mut _DISCDLGSTRUCTW; +pub type DISCDLGSTRUCT = DISCDLGSTRUCTA; +pub type LPDISCDLGSTRUCT = LPDISCDLGSTRUCTA; +extern "C" { + pub fn WNetDisconnectDialog1A(lpConnDlgStruct: LPDISCDLGSTRUCTA) -> DWORD; +} +extern "C" { + pub fn WNetDisconnectDialog1W(lpConnDlgStruct: LPDISCDLGSTRUCTW) -> DWORD; +} +extern "C" { + pub fn WNetOpenEnumA( + dwScope: DWORD, + dwType: DWORD, + dwUsage: DWORD, + lpNetResource: LPNETRESOURCEA, + lphEnum: LPHANDLE, + ) -> DWORD; +} +extern "C" { + pub fn WNetOpenEnumW( + dwScope: DWORD, + dwType: DWORD, + dwUsage: DWORD, + lpNetResource: LPNETRESOURCEW, + lphEnum: LPHANDLE, + ) -> DWORD; +} +extern "C" { + pub fn WNetEnumResourceA( + hEnum: HANDLE, + lpcCount: LPDWORD, + lpBuffer: LPVOID, + lpBufferSize: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetEnumResourceW( + hEnum: HANDLE, + lpcCount: LPDWORD, + lpBuffer: LPVOID, + lpBufferSize: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetCloseEnum(hEnum: HANDLE) -> DWORD; +} +extern "C" { + pub fn WNetGetResourceParentA( + lpNetResource: LPNETRESOURCEA, + lpBuffer: LPVOID, + lpcbBuffer: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetGetResourceParentW( + lpNetResource: LPNETRESOURCEW, + lpBuffer: LPVOID, + lpcbBuffer: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetGetResourceInformationA( + lpNetResource: LPNETRESOURCEA, + lpBuffer: LPVOID, + lpcbBuffer: LPDWORD, + lplpSystem: *mut LPSTR, + ) -> DWORD; +} +extern "C" { + pub fn WNetGetResourceInformationW( + lpNetResource: LPNETRESOURCEW, + lpBuffer: LPVOID, + lpcbBuffer: LPDWORD, + lplpSystem: *mut LPWSTR, + ) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _UNIVERSAL_NAME_INFOA { + pub lpUniversalName: LPSTR, +} +pub type UNIVERSAL_NAME_INFOA = _UNIVERSAL_NAME_INFOA; +pub type LPUNIVERSAL_NAME_INFOA = *mut _UNIVERSAL_NAME_INFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _UNIVERSAL_NAME_INFOW { + pub lpUniversalName: LPWSTR, +} +pub type UNIVERSAL_NAME_INFOW = _UNIVERSAL_NAME_INFOW; +pub type LPUNIVERSAL_NAME_INFOW = *mut _UNIVERSAL_NAME_INFOW; +pub type UNIVERSAL_NAME_INFO = UNIVERSAL_NAME_INFOA; +pub type LPUNIVERSAL_NAME_INFO = LPUNIVERSAL_NAME_INFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REMOTE_NAME_INFOA { + pub lpUniversalName: LPSTR, + pub lpConnectionName: LPSTR, + pub lpRemainingPath: LPSTR, +} +pub type REMOTE_NAME_INFOA = _REMOTE_NAME_INFOA; +pub type LPREMOTE_NAME_INFOA = *mut _REMOTE_NAME_INFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REMOTE_NAME_INFOW { + pub lpUniversalName: LPWSTR, + pub lpConnectionName: LPWSTR, + pub lpRemainingPath: LPWSTR, +} +pub type REMOTE_NAME_INFOW = _REMOTE_NAME_INFOW; +pub type LPREMOTE_NAME_INFOW = *mut _REMOTE_NAME_INFOW; +pub type REMOTE_NAME_INFO = REMOTE_NAME_INFOA; +pub type LPREMOTE_NAME_INFO = LPREMOTE_NAME_INFOA; +extern "C" { + pub fn WNetGetUniversalNameA( + lpLocalPath: LPCSTR, + dwInfoLevel: DWORD, + lpBuffer: LPVOID, + lpBufferSize: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetGetUniversalNameW( + lpLocalPath: LPCWSTR, + dwInfoLevel: DWORD, + lpBuffer: LPVOID, + lpBufferSize: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetGetUserA(lpName: LPCSTR, lpUserName: LPSTR, lpnLength: LPDWORD) -> DWORD; +} +extern "C" { + pub fn WNetGetUserW(lpName: LPCWSTR, lpUserName: LPWSTR, lpnLength: LPDWORD) -> DWORD; +} +extern "C" { + pub fn WNetGetProviderNameA( + dwNetType: DWORD, + lpProviderName: LPSTR, + lpBufferSize: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetGetProviderNameW( + dwNetType: DWORD, + lpProviderName: LPWSTR, + lpBufferSize: LPDWORD, + ) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NETINFOSTRUCT { + pub cbStructure: DWORD, + pub dwProviderVersion: DWORD, + pub dwStatus: DWORD, + pub dwCharacteristics: DWORD, + pub dwHandle: ULONG_PTR, + pub wNetType: WORD, + pub dwPrinters: DWORD, + pub dwDrives: DWORD, +} +pub type NETINFOSTRUCT = _NETINFOSTRUCT; +pub type LPNETINFOSTRUCT = *mut _NETINFOSTRUCT; +extern "C" { + pub fn WNetGetNetworkInformationA( + lpProvider: LPCSTR, + lpNetInfoStruct: LPNETINFOSTRUCT, + ) -> DWORD; +} +extern "C" { + pub fn WNetGetNetworkInformationW( + lpProvider: LPCWSTR, + lpNetInfoStruct: LPNETINFOSTRUCT, + ) -> DWORD; +} +extern "C" { + pub fn WNetGetLastErrorA( + lpError: LPDWORD, + lpErrorBuf: LPSTR, + nErrorBufSize: DWORD, + lpNameBuf: LPSTR, + nNameBufSize: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn WNetGetLastErrorW( + lpError: LPDWORD, + lpErrorBuf: LPWSTR, + nErrorBufSize: DWORD, + lpNameBuf: LPWSTR, + nNameBufSize: DWORD, + ) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NETCONNECTINFOSTRUCT { + pub cbStructure: DWORD, + pub dwFlags: DWORD, + pub dwSpeed: DWORD, + pub dwDelay: DWORD, + pub dwOptDataSize: DWORD, +} +pub type NETCONNECTINFOSTRUCT = _NETCONNECTINFOSTRUCT; +pub type LPNETCONNECTINFOSTRUCT = *mut _NETCONNECTINFOSTRUCT; +extern "C" { + pub fn MultinetGetConnectionPerformanceA( + lpNetResource: LPNETRESOURCEA, + lpNetConnectInfoStruct: LPNETCONNECTINFOSTRUCT, + ) -> DWORD; +} +extern "C" { + pub fn MultinetGetConnectionPerformanceW( + lpNetResource: LPNETRESOURCEW, + lpNetConnectInfoStruct: LPNETCONNECTINFOSTRUCT, + ) -> DWORD; +} +#[repr(C)] +#[repr(align(2))] +#[derive(Debug, Copy, Clone)] +pub struct DDEACK { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +} +impl DDEACK { + #[inline] + pub fn bAppReturnCode(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u16) } + } + #[inline] + pub fn set_bAppReturnCode(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 8u8, val as u64) + } + } + #[inline] + pub fn reserved(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 6u8) as u16) } + } + #[inline] + pub fn set_reserved(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 6u8, val as u64) + } + } + #[inline] + pub fn fBusy(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } + } + #[inline] + pub fn set_fBusy(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(14usize, 1u8, val as u64) + } + } + #[inline] + pub fn fAck(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } + } + #[inline] + pub fn set_fAck(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(15usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + bAppReturnCode: ::std::os::raw::c_ushort, + reserved: ::std::os::raw::c_ushort, + fBusy: ::std::os::raw::c_ushort, + fAck: ::std::os::raw::c_ushort, + ) -> __BindgenBitfieldUnit<[u8; 2usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 8u8, { + let bAppReturnCode: u16 = unsafe { ::std::mem::transmute(bAppReturnCode) }; + bAppReturnCode as u64 + }); + __bindgen_bitfield_unit.set(8usize, 6u8, { + let reserved: u16 = unsafe { ::std::mem::transmute(reserved) }; + reserved as u64 + }); + __bindgen_bitfield_unit.set(14usize, 1u8, { + let fBusy: u16 = unsafe { ::std::mem::transmute(fBusy) }; + fBusy as u64 + }); + __bindgen_bitfield_unit.set(15usize, 1u8, { + let fAck: u16 = unsafe { ::std::mem::transmute(fAck) }; + fAck as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DDEADVISE { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, + pub cfFormat: ::std::os::raw::c_short, +} +impl DDEADVISE { + #[inline] + pub fn reserved(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 14u8) as u16) } + } + #[inline] + pub fn set_reserved(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 14u8, val as u64) + } + } + #[inline] + pub fn fDeferUpd(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } + } + #[inline] + pub fn set_fDeferUpd(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(14usize, 1u8, val as u64) + } + } + #[inline] + pub fn fAckReq(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } + } + #[inline] + pub fn set_fAckReq(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(15usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + reserved: ::std::os::raw::c_ushort, + fDeferUpd: ::std::os::raw::c_ushort, + fAckReq: ::std::os::raw::c_ushort, + ) -> __BindgenBitfieldUnit<[u8; 2usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 14u8, { + let reserved: u16 = unsafe { ::std::mem::transmute(reserved) }; + reserved as u64 + }); + __bindgen_bitfield_unit.set(14usize, 1u8, { + let fDeferUpd: u16 = unsafe { ::std::mem::transmute(fDeferUpd) }; + fDeferUpd as u64 + }); + __bindgen_bitfield_unit.set(15usize, 1u8, { + let fAckReq: u16 = unsafe { ::std::mem::transmute(fAckReq) }; + fAckReq as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DDEDATA { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, + pub cfFormat: ::std::os::raw::c_short, + pub Value: [BYTE; 1usize], +} +impl DDEDATA { + #[inline] + pub fn unused(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 12u8) as u16) } + } + #[inline] + pub fn set_unused(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 12u8, val as u64) + } + } + #[inline] + pub fn fResponse(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } + } + #[inline] + pub fn set_fResponse(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(12usize, 1u8, val as u64) + } + } + #[inline] + pub fn fRelease(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } + } + #[inline] + pub fn set_fRelease(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(13usize, 1u8, val as u64) + } + } + #[inline] + pub fn reserved(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } + } + #[inline] + pub fn set_reserved(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(14usize, 1u8, val as u64) + } + } + #[inline] + pub fn fAckReq(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } + } + #[inline] + pub fn set_fAckReq(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(15usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + unused: ::std::os::raw::c_ushort, + fResponse: ::std::os::raw::c_ushort, + fRelease: ::std::os::raw::c_ushort, + reserved: ::std::os::raw::c_ushort, + fAckReq: ::std::os::raw::c_ushort, + ) -> __BindgenBitfieldUnit<[u8; 2usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 12u8, { + let unused: u16 = unsafe { ::std::mem::transmute(unused) }; + unused as u64 + }); + __bindgen_bitfield_unit.set(12usize, 1u8, { + let fResponse: u16 = unsafe { ::std::mem::transmute(fResponse) }; + fResponse as u64 + }); + __bindgen_bitfield_unit.set(13usize, 1u8, { + let fRelease: u16 = unsafe { ::std::mem::transmute(fRelease) }; + fRelease as u64 + }); + __bindgen_bitfield_unit.set(14usize, 1u8, { + let reserved: u16 = unsafe { ::std::mem::transmute(reserved) }; + reserved as u64 + }); + __bindgen_bitfield_unit.set(15usize, 1u8, { + let fAckReq: u16 = unsafe { ::std::mem::transmute(fAckReq) }; + fAckReq as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DDEPOKE { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, + pub cfFormat: ::std::os::raw::c_short, + pub Value: [BYTE; 1usize], +} +impl DDEPOKE { + #[inline] + pub fn unused(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 13u8) as u16) } + } + #[inline] + pub fn set_unused(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 13u8, val as u64) + } + } + #[inline] + pub fn fRelease(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } + } + #[inline] + pub fn set_fRelease(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(13usize, 1u8, val as u64) + } + } + #[inline] + pub fn fReserved(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 2u8) as u16) } + } + #[inline] + pub fn set_fReserved(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(14usize, 2u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + unused: ::std::os::raw::c_ushort, + fRelease: ::std::os::raw::c_ushort, + fReserved: ::std::os::raw::c_ushort, + ) -> __BindgenBitfieldUnit<[u8; 2usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 13u8, { + let unused: u16 = unsafe { ::std::mem::transmute(unused) }; + unused as u64 + }); + __bindgen_bitfield_unit.set(13usize, 1u8, { + let fRelease: u16 = unsafe { ::std::mem::transmute(fRelease) }; + fRelease as u64 + }); + __bindgen_bitfield_unit.set(14usize, 2u8, { + let fReserved: u16 = unsafe { ::std::mem::transmute(fReserved) }; + fReserved as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DDELN { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, + pub cfFormat: ::std::os::raw::c_short, +} +impl DDELN { + #[inline] + pub fn unused(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 13u8) as u16) } + } + #[inline] + pub fn set_unused(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 13u8, val as u64) + } + } + #[inline] + pub fn fRelease(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } + } + #[inline] + pub fn set_fRelease(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(13usize, 1u8, val as u64) + } + } + #[inline] + pub fn fDeferUpd(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } + } + #[inline] + pub fn set_fDeferUpd(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(14usize, 1u8, val as u64) + } + } + #[inline] + pub fn fAckReq(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } + } + #[inline] + pub fn set_fAckReq(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(15usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + unused: ::std::os::raw::c_ushort, + fRelease: ::std::os::raw::c_ushort, + fDeferUpd: ::std::os::raw::c_ushort, + fAckReq: ::std::os::raw::c_ushort, + ) -> __BindgenBitfieldUnit<[u8; 2usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 13u8, { + let unused: u16 = unsafe { ::std::mem::transmute(unused) }; + unused as u64 + }); + __bindgen_bitfield_unit.set(13usize, 1u8, { + let fRelease: u16 = unsafe { ::std::mem::transmute(fRelease) }; + fRelease as u64 + }); + __bindgen_bitfield_unit.set(14usize, 1u8, { + let fDeferUpd: u16 = unsafe { ::std::mem::transmute(fDeferUpd) }; + fDeferUpd as u64 + }); + __bindgen_bitfield_unit.set(15usize, 1u8, { + let fAckReq: u16 = unsafe { ::std::mem::transmute(fAckReq) }; + fAckReq as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DDEUP { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, + pub cfFormat: ::std::os::raw::c_short, + pub rgb: [BYTE; 1usize], +} +impl DDEUP { + #[inline] + pub fn unused(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 12u8) as u16) } + } + #[inline] + pub fn set_unused(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 12u8, val as u64) + } + } + #[inline] + pub fn fAck(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } + } + #[inline] + pub fn set_fAck(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(12usize, 1u8, val as u64) + } + } + #[inline] + pub fn fRelease(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } + } + #[inline] + pub fn set_fRelease(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(13usize, 1u8, val as u64) + } + } + #[inline] + pub fn fReserved(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } + } + #[inline] + pub fn set_fReserved(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(14usize, 1u8, val as u64) + } + } + #[inline] + pub fn fAckReq(&self) -> ::std::os::raw::c_ushort { + unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } + } + #[inline] + pub fn set_fAckReq(&mut self, val: ::std::os::raw::c_ushort) { + unsafe { + let val: u16 = ::std::mem::transmute(val); + self._bitfield_1.set(15usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + unused: ::std::os::raw::c_ushort, + fAck: ::std::os::raw::c_ushort, + fRelease: ::std::os::raw::c_ushort, + fReserved: ::std::os::raw::c_ushort, + fAckReq: ::std::os::raw::c_ushort, + ) -> __BindgenBitfieldUnit<[u8; 2usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 12u8, { + let unused: u16 = unsafe { ::std::mem::transmute(unused) }; + unused as u64 + }); + __bindgen_bitfield_unit.set(12usize, 1u8, { + let fAck: u16 = unsafe { ::std::mem::transmute(fAck) }; + fAck as u64 + }); + __bindgen_bitfield_unit.set(13usize, 1u8, { + let fRelease: u16 = unsafe { ::std::mem::transmute(fRelease) }; + fRelease as u64 + }); + __bindgen_bitfield_unit.set(14usize, 1u8, { + let fReserved: u16 = unsafe { ::std::mem::transmute(fReserved) }; + fReserved as u64 + }); + __bindgen_bitfield_unit.set(15usize, 1u8, { + let fAckReq: u16 = unsafe { ::std::mem::transmute(fAckReq) }; + fAckReq as u64 + }); + __bindgen_bitfield_unit + } +} +extern "C" { + pub fn DdeSetQualityOfService( + hwndClient: HWND, + pqosNew: *const SECURITY_QUALITY_OF_SERVICE, + pqosPrev: PSECURITY_QUALITY_OF_SERVICE, + ) -> BOOL; +} +extern "C" { + pub fn ImpersonateDdeClientWindow(hWndClient: HWND, hWndServer: HWND) -> BOOL; +} +extern "C" { + pub fn PackDDElParam(msg: UINT, uiLo: UINT_PTR, uiHi: UINT_PTR) -> LPARAM; +} +extern "C" { + pub fn UnpackDDElParam(msg: UINT, lParam: LPARAM, puiLo: PUINT_PTR, puiHi: PUINT_PTR) -> BOOL; +} +extern "C" { + pub fn FreeDDElParam(msg: UINT, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn ReuseDDElParam( + lParam: LPARAM, + msgIn: UINT, + msgOut: UINT, + uiLo: UINT_PTR, + uiHi: UINT_PTR, + ) -> LPARAM; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HCONVLIST__ { + pub unused: ::std::os::raw::c_int, +} +pub type HCONVLIST = *mut HCONVLIST__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HCONV__ { + pub unused: ::std::os::raw::c_int, +} +pub type HCONV = *mut HCONV__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HSZ__ { + pub unused: ::std::os::raw::c_int, +} +pub type HSZ = *mut HSZ__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HDDEDATA__ { + pub unused: ::std::os::raw::c_int, +} +pub type HDDEDATA = *mut HDDEDATA__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagHSZPAIR { + pub hszSvc: HSZ, + pub hszTopic: HSZ, +} +pub type HSZPAIR = tagHSZPAIR; +pub type PHSZPAIR = *mut tagHSZPAIR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCONVCONTEXT { + pub cb: UINT, + pub wFlags: UINT, + pub wCountryID: UINT, + pub iCodePage: ::std::os::raw::c_int, + pub dwLangID: DWORD, + pub dwSecurity: DWORD, + pub qos: SECURITY_QUALITY_OF_SERVICE, +} +pub type CONVCONTEXT = tagCONVCONTEXT; +pub type PCONVCONTEXT = *mut tagCONVCONTEXT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCONVINFO { + pub cb: DWORD, + pub hUser: DWORD_PTR, + pub hConvPartner: HCONV, + pub hszSvcPartner: HSZ, + pub hszServiceReq: HSZ, + pub hszTopic: HSZ, + pub hszItem: HSZ, + pub wFmt: UINT, + pub wType: UINT, + pub wStatus: UINT, + pub wConvst: UINT, + pub wLastError: UINT, + pub hConvList: HCONVLIST, + pub ConvCtxt: CONVCONTEXT, + pub hwnd: HWND, + pub hwndPartner: HWND, +} +pub type CONVINFO = tagCONVINFO; +pub type PCONVINFO = *mut tagCONVINFO; +pub type PFNCALLBACK = ::std::option::Option< + unsafe extern "C" fn( + wType: UINT, + wFmt: UINT, + hConv: HCONV, + hsz1: HSZ, + hsz2: HSZ, + hData: HDDEDATA, + dwData1: ULONG_PTR, + dwData2: ULONG_PTR, + ) -> HDDEDATA, +>; +extern "C" { + pub fn DdeInitializeA( + pidInst: LPDWORD, + pfnCallback: PFNCALLBACK, + afCmd: DWORD, + ulRes: DWORD, + ) -> UINT; +} +extern "C" { + pub fn DdeInitializeW( + pidInst: LPDWORD, + pfnCallback: PFNCALLBACK, + afCmd: DWORD, + ulRes: DWORD, + ) -> UINT; +} +extern "C" { + pub fn DdeUninitialize(idInst: DWORD) -> BOOL; +} +extern "C" { + pub fn DdeConnectList( + idInst: DWORD, + hszService: HSZ, + hszTopic: HSZ, + hConvList: HCONVLIST, + pCC: PCONVCONTEXT, + ) -> HCONVLIST; +} +extern "C" { + pub fn DdeQueryNextServer(hConvList: HCONVLIST, hConvPrev: HCONV) -> HCONV; +} +extern "C" { + pub fn DdeDisconnectList(hConvList: HCONVLIST) -> BOOL; +} +extern "C" { + pub fn DdeConnect(idInst: DWORD, hszService: HSZ, hszTopic: HSZ, pCC: PCONVCONTEXT) -> HCONV; +} +extern "C" { + pub fn DdeDisconnect(hConv: HCONV) -> BOOL; +} +extern "C" { + pub fn DdeReconnect(hConv: HCONV) -> HCONV; +} +extern "C" { + pub fn DdeQueryConvInfo(hConv: HCONV, idTransaction: DWORD, pConvInfo: PCONVINFO) -> UINT; +} +extern "C" { + pub fn DdeSetUserHandle(hConv: HCONV, id: DWORD, hUser: DWORD_PTR) -> BOOL; +} +extern "C" { + pub fn DdeAbandonTransaction(idInst: DWORD, hConv: HCONV, idTransaction: DWORD) -> BOOL; +} +extern "C" { + pub fn DdePostAdvise(idInst: DWORD, hszTopic: HSZ, hszItem: HSZ) -> BOOL; +} +extern "C" { + pub fn DdeEnableCallback(idInst: DWORD, hConv: HCONV, wCmd: UINT) -> BOOL; +} +extern "C" { + pub fn DdeImpersonateClient(hConv: HCONV) -> BOOL; +} +extern "C" { + pub fn DdeNameService(idInst: DWORD, hsz1: HSZ, hsz2: HSZ, afCmd: UINT) -> HDDEDATA; +} +extern "C" { + pub fn DdeClientTransaction( + pData: LPBYTE, + cbData: DWORD, + hConv: HCONV, + hszItem: HSZ, + wFmt: UINT, + wType: UINT, + dwTimeout: DWORD, + pdwResult: LPDWORD, + ) -> HDDEDATA; +} +extern "C" { + pub fn DdeCreateDataHandle( + idInst: DWORD, + pSrc: LPBYTE, + cb: DWORD, + cbOff: DWORD, + hszItem: HSZ, + wFmt: UINT, + afCmd: UINT, + ) -> HDDEDATA; +} +extern "C" { + pub fn DdeAddData(hData: HDDEDATA, pSrc: LPBYTE, cb: DWORD, cbOff: DWORD) -> HDDEDATA; +} +extern "C" { + pub fn DdeGetData(hData: HDDEDATA, pDst: LPBYTE, cbMax: DWORD, cbOff: DWORD) -> DWORD; +} +extern "C" { + pub fn DdeAccessData(hData: HDDEDATA, pcbDataSize: LPDWORD) -> LPBYTE; +} +extern "C" { + pub fn DdeUnaccessData(hData: HDDEDATA) -> BOOL; +} +extern "C" { + pub fn DdeFreeDataHandle(hData: HDDEDATA) -> BOOL; +} +extern "C" { + pub fn DdeGetLastError(idInst: DWORD) -> UINT; +} +extern "C" { + pub fn DdeCreateStringHandleA( + idInst: DWORD, + psz: LPCSTR, + iCodePage: ::std::os::raw::c_int, + ) -> HSZ; +} +extern "C" { + pub fn DdeCreateStringHandleW( + idInst: DWORD, + psz: LPCWSTR, + iCodePage: ::std::os::raw::c_int, + ) -> HSZ; +} +extern "C" { + pub fn DdeQueryStringA( + idInst: DWORD, + hsz: HSZ, + psz: LPSTR, + cchMax: DWORD, + iCodePage: ::std::os::raw::c_int, + ) -> DWORD; +} +extern "C" { + pub fn DdeQueryStringW( + idInst: DWORD, + hsz: HSZ, + psz: LPWSTR, + cchMax: DWORD, + iCodePage: ::std::os::raw::c_int, + ) -> DWORD; +} +extern "C" { + pub fn DdeFreeStringHandle(idInst: DWORD, hsz: HSZ) -> BOOL; +} +extern "C" { + pub fn DdeKeepStringHandle(idInst: DWORD, hsz: HSZ) -> BOOL; +} +extern "C" { + pub fn DdeCmpStringHandles(hsz1: HSZ, hsz2: HSZ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagDDEML_MSG_HOOK_DATA { + pub uiLo: UINT_PTR, + pub uiHi: UINT_PTR, + pub cbData: DWORD, + pub Data: [DWORD; 8usize], +} +pub type DDEML_MSG_HOOK_DATA = tagDDEML_MSG_HOOK_DATA; +pub type PDDEML_MSG_HOOK_DATA = *mut tagDDEML_MSG_HOOK_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMONMSGSTRUCT { + pub cb: UINT, + pub hwndTo: HWND, + pub dwTime: DWORD, + pub hTask: HANDLE, + pub wMsg: UINT, + pub wParam: WPARAM, + pub lParam: LPARAM, + pub dmhd: DDEML_MSG_HOOK_DATA, +} +pub type MONMSGSTRUCT = tagMONMSGSTRUCT; +pub type PMONMSGSTRUCT = *mut tagMONMSGSTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMONCBSTRUCT { + pub cb: UINT, + pub dwTime: DWORD, + pub hTask: HANDLE, + pub dwRet: DWORD, + pub wType: UINT, + pub wFmt: UINT, + pub hConv: HCONV, + pub hsz1: HSZ, + pub hsz2: HSZ, + pub hData: HDDEDATA, + pub dwData1: ULONG_PTR, + pub dwData2: ULONG_PTR, + pub cc: CONVCONTEXT, + pub cbData: DWORD, + pub Data: [DWORD; 8usize], +} +pub type MONCBSTRUCT = tagMONCBSTRUCT; +pub type PMONCBSTRUCT = *mut tagMONCBSTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMONHSZSTRUCTA { + pub cb: UINT, + pub fsAction: BOOL, + pub dwTime: DWORD, + pub hsz: HSZ, + pub hTask: HANDLE, + pub str_: [CHAR; 1usize], +} +pub type MONHSZSTRUCTA = tagMONHSZSTRUCTA; +pub type PMONHSZSTRUCTA = *mut tagMONHSZSTRUCTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMONHSZSTRUCTW { + pub cb: UINT, + pub fsAction: BOOL, + pub dwTime: DWORD, + pub hsz: HSZ, + pub hTask: HANDLE, + pub str_: [WCHAR; 1usize], +} +pub type MONHSZSTRUCTW = tagMONHSZSTRUCTW; +pub type PMONHSZSTRUCTW = *mut tagMONHSZSTRUCTW; +pub type MONHSZSTRUCT = MONHSZSTRUCTA; +pub type PMONHSZSTRUCT = PMONHSZSTRUCTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMONERRSTRUCT { + pub cb: UINT, + pub wLastError: UINT, + pub dwTime: DWORD, + pub hTask: HANDLE, +} +pub type MONERRSTRUCT = tagMONERRSTRUCT; +pub type PMONERRSTRUCT = *mut tagMONERRSTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMONLINKSTRUCT { + pub cb: UINT, + pub dwTime: DWORD, + pub hTask: HANDLE, + pub fEstablished: BOOL, + pub fNoData: BOOL, + pub hszSvc: HSZ, + pub hszTopic: HSZ, + pub hszItem: HSZ, + pub wFmt: UINT, + pub fServer: BOOL, + pub hConvServer: HCONV, + pub hConvClient: HCONV, +} +pub type MONLINKSTRUCT = tagMONLINKSTRUCT; +pub type PMONLINKSTRUCT = *mut tagMONLINKSTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMONCONVSTRUCT { + pub cb: UINT, + pub fConnect: BOOL, + pub dwTime: DWORD, + pub hTask: HANDLE, + pub hszSvc: HSZ, + pub hszTopic: HSZ, + pub hConvClient: HCONV, + pub hConvServer: HCONV, +} +pub type MONCONVSTRUCT = tagMONCONVSTRUCT; +pub type PMONCONVSTRUCT = *mut tagMONCONVSTRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCRGB { + pub bRed: BYTE, + pub bGreen: BYTE, + pub bBlue: BYTE, + pub bExtra: BYTE, +} +pub type CRGB = tagCRGB; +extern "C" { + pub fn LZStart() -> INT; +} +extern "C" { + pub fn LZDone(); +} +extern "C" { + pub fn CopyLZFile(hfSource: INT, hfDest: INT) -> LONG; +} +extern "C" { + pub fn LZCopy(hfSource: INT, hfDest: INT) -> LONG; +} +extern "C" { + pub fn LZInit(hfSource: INT) -> INT; +} +extern "C" { + pub fn GetExpandedNameA(lpszSource: LPSTR, lpszBuffer: LPSTR) -> INT; +} +extern "C" { + pub fn GetExpandedNameW(lpszSource: LPWSTR, lpszBuffer: LPWSTR) -> INT; +} +extern "C" { + pub fn LZOpenFileA(lpFileName: LPSTR, lpReOpenBuf: LPOFSTRUCT, wStyle: WORD) -> INT; +} +extern "C" { + pub fn LZOpenFileW(lpFileName: LPWSTR, lpReOpenBuf: LPOFSTRUCT, wStyle: WORD) -> INT; +} +extern "C" { + pub fn LZSeek(hFile: INT, lOffset: LONG, iOrigin: INT) -> LONG; +} +extern "C" { + pub fn LZRead(hFile: INT, lpBuffer: *mut CHAR, cbRead: INT) -> INT; +} +extern "C" { + pub fn LZClose(hFile: INT); +} +pub type MMVERSION = UINT; +pub type MMRESULT = UINT; +pub type LPUINT = *mut UINT; +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct mmtime_tag { + pub wType: UINT, + pub u: mmtime_tag__bindgen_ty_1, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union mmtime_tag__bindgen_ty_1 { + pub ms: DWORD, + pub sample: DWORD, + pub cb: DWORD, + pub ticks: DWORD, + pub smpte: mmtime_tag__bindgen_ty_1__bindgen_ty_1, + pub midi: mmtime_tag__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mmtime_tag__bindgen_ty_1__bindgen_ty_1 { + pub hour: BYTE, + pub min: BYTE, + pub sec: BYTE, + pub frame: BYTE, + pub fps: BYTE, + pub dummy: BYTE, + pub pad: [BYTE; 2usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct mmtime_tag__bindgen_ty_1__bindgen_ty_2 { + pub songptrpos: DWORD, +} +pub type MMTIME = mmtime_tag; +pub type PMMTIME = *mut mmtime_tag; +pub type NPMMTIME = *mut mmtime_tag; +pub type LPMMTIME = *mut mmtime_tag; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct HDRVR__ { + pub unused: ::std::os::raw::c_int, +} +pub type HDRVR = *mut HDRVR__; +pub type LPDRVCALLBACK = ::std::option::Option< + unsafe extern "C" fn( + arg1: HDRVR, + arg2: UINT, + arg3: DWORD_PTR, + arg4: DWORD_PTR, + arg5: DWORD_PTR, + ), +>; +pub type PDRVCALLBACK = ::std::option::Option< + unsafe extern "C" fn( + arg1: HDRVR, + arg2: UINT, + arg3: DWORD_PTR, + arg4: DWORD_PTR, + arg5: DWORD_PTR, + ), +>; +pub type MCIERROR = DWORD; +pub type MCIDEVICEID = UINT; +pub type YIELDPROC = + ::std::option::Option UINT>; +extern "C" { + pub fn mciSendCommandA( + mciId: MCIDEVICEID, + uMsg: UINT, + dwParam1: DWORD_PTR, + dwParam2: DWORD_PTR, + ) -> MCIERROR; +} +extern "C" { + pub fn mciSendCommandW( + mciId: MCIDEVICEID, + uMsg: UINT, + dwParam1: DWORD_PTR, + dwParam2: DWORD_PTR, + ) -> MCIERROR; +} +extern "C" { + pub fn mciSendStringA( + lpstrCommand: LPCSTR, + lpstrReturnString: LPSTR, + uReturnLength: UINT, + hwndCallback: HWND, + ) -> MCIERROR; +} +extern "C" { + pub fn mciSendStringW( + lpstrCommand: LPCWSTR, + lpstrReturnString: LPWSTR, + uReturnLength: UINT, + hwndCallback: HWND, + ) -> MCIERROR; +} +extern "C" { + pub fn mciGetDeviceIDA(pszDevice: LPCSTR) -> MCIDEVICEID; +} +extern "C" { + pub fn mciGetDeviceIDW(pszDevice: LPCWSTR) -> MCIDEVICEID; +} +extern "C" { + pub fn mciGetDeviceIDFromElementIDA(dwElementID: DWORD, lpstrType: LPCSTR) -> MCIDEVICEID; +} +extern "C" { + pub fn mciGetDeviceIDFromElementIDW(dwElementID: DWORD, lpstrType: LPCWSTR) -> MCIDEVICEID; +} +extern "C" { + pub fn mciGetErrorStringA(mcierr: MCIERROR, pszText: LPSTR, cchText: UINT) -> BOOL; +} +extern "C" { + pub fn mciGetErrorStringW(mcierr: MCIERROR, pszText: LPWSTR, cchText: UINT) -> BOOL; +} +extern "C" { + pub fn mciSetYieldProc(mciId: MCIDEVICEID, fpYieldProc: YIELDPROC, dwYieldData: DWORD) -> BOOL; +} +extern "C" { + pub fn mciGetCreatorTask(mciId: MCIDEVICEID) -> HTASK; +} +extern "C" { + pub fn mciGetYieldProc(mciId: MCIDEVICEID, pdwYieldData: LPDWORD) -> YIELDPROC; +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_GENERIC_PARMS { + pub dwCallback: DWORD_PTR, +} +pub type MCI_GENERIC_PARMS = tagMCI_GENERIC_PARMS; +pub type PMCI_GENERIC_PARMS = *mut tagMCI_GENERIC_PARMS; +pub type LPMCI_GENERIC_PARMS = *mut tagMCI_GENERIC_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_OPEN_PARMSA { + pub dwCallback: DWORD_PTR, + pub wDeviceID: MCIDEVICEID, + pub lpstrDeviceType: LPCSTR, + pub lpstrElementName: LPCSTR, + pub lpstrAlias: LPCSTR, +} +pub type MCI_OPEN_PARMSA = tagMCI_OPEN_PARMSA; +pub type PMCI_OPEN_PARMSA = *mut tagMCI_OPEN_PARMSA; +pub type LPMCI_OPEN_PARMSA = *mut tagMCI_OPEN_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_OPEN_PARMSW { + pub dwCallback: DWORD_PTR, + pub wDeviceID: MCIDEVICEID, + pub lpstrDeviceType: LPCWSTR, + pub lpstrElementName: LPCWSTR, + pub lpstrAlias: LPCWSTR, +} +pub type MCI_OPEN_PARMSW = tagMCI_OPEN_PARMSW; +pub type PMCI_OPEN_PARMSW = *mut tagMCI_OPEN_PARMSW; +pub type LPMCI_OPEN_PARMSW = *mut tagMCI_OPEN_PARMSW; +pub type MCI_OPEN_PARMS = MCI_OPEN_PARMSA; +pub type PMCI_OPEN_PARMS = PMCI_OPEN_PARMSA; +pub type LPMCI_OPEN_PARMS = LPMCI_OPEN_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_PLAY_PARMS { + pub dwCallback: DWORD_PTR, + pub dwFrom: DWORD, + pub dwTo: DWORD, +} +pub type MCI_PLAY_PARMS = tagMCI_PLAY_PARMS; +pub type PMCI_PLAY_PARMS = *mut tagMCI_PLAY_PARMS; +pub type LPMCI_PLAY_PARMS = *mut tagMCI_PLAY_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_SEEK_PARMS { + pub dwCallback: DWORD_PTR, + pub dwTo: DWORD, +} +pub type MCI_SEEK_PARMS = tagMCI_SEEK_PARMS; +pub type PMCI_SEEK_PARMS = *mut tagMCI_SEEK_PARMS; +pub type LPMCI_SEEK_PARMS = *mut tagMCI_SEEK_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_STATUS_PARMS { + pub dwCallback: DWORD_PTR, + pub dwReturn: DWORD_PTR, + pub dwItem: DWORD, + pub dwTrack: DWORD, +} +pub type MCI_STATUS_PARMS = tagMCI_STATUS_PARMS; +pub type PMCI_STATUS_PARMS = *mut tagMCI_STATUS_PARMS; +pub type LPMCI_STATUS_PARMS = *mut tagMCI_STATUS_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_INFO_PARMSA { + pub dwCallback: DWORD_PTR, + pub lpstrReturn: LPSTR, + pub dwRetSize: DWORD, +} +pub type MCI_INFO_PARMSA = tagMCI_INFO_PARMSA; +pub type LPMCI_INFO_PARMSA = *mut tagMCI_INFO_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_INFO_PARMSW { + pub dwCallback: DWORD_PTR, + pub lpstrReturn: LPWSTR, + pub dwRetSize: DWORD, +} +pub type MCI_INFO_PARMSW = tagMCI_INFO_PARMSW; +pub type LPMCI_INFO_PARMSW = *mut tagMCI_INFO_PARMSW; +pub type MCI_INFO_PARMS = MCI_INFO_PARMSA; +pub type LPMCI_INFO_PARMS = LPMCI_INFO_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_GETDEVCAPS_PARMS { + pub dwCallback: DWORD_PTR, + pub dwReturn: DWORD, + pub dwItem: DWORD, +} +pub type MCI_GETDEVCAPS_PARMS = tagMCI_GETDEVCAPS_PARMS; +pub type PMCI_GETDEVCAPS_PARMS = *mut tagMCI_GETDEVCAPS_PARMS; +pub type LPMCI_GETDEVCAPS_PARMS = *mut tagMCI_GETDEVCAPS_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_SYSINFO_PARMSA { + pub dwCallback: DWORD_PTR, + pub lpstrReturn: LPSTR, + pub dwRetSize: DWORD, + pub dwNumber: DWORD, + pub wDeviceType: UINT, +} +pub type MCI_SYSINFO_PARMSA = tagMCI_SYSINFO_PARMSA; +pub type PMCI_SYSINFO_PARMSA = *mut tagMCI_SYSINFO_PARMSA; +pub type LPMCI_SYSINFO_PARMSA = *mut tagMCI_SYSINFO_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_SYSINFO_PARMSW { + pub dwCallback: DWORD_PTR, + pub lpstrReturn: LPWSTR, + pub dwRetSize: DWORD, + pub dwNumber: DWORD, + pub wDeviceType: UINT, +} +pub type MCI_SYSINFO_PARMSW = tagMCI_SYSINFO_PARMSW; +pub type PMCI_SYSINFO_PARMSW = *mut tagMCI_SYSINFO_PARMSW; +pub type LPMCI_SYSINFO_PARMSW = *mut tagMCI_SYSINFO_PARMSW; +pub type MCI_SYSINFO_PARMS = MCI_SYSINFO_PARMSA; +pub type PMCI_SYSINFO_PARMS = PMCI_SYSINFO_PARMSA; +pub type LPMCI_SYSINFO_PARMS = LPMCI_SYSINFO_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_SET_PARMS { + pub dwCallback: DWORD_PTR, + pub dwTimeFormat: DWORD, + pub dwAudio: DWORD, +} +pub type MCI_SET_PARMS = tagMCI_SET_PARMS; +pub type PMCI_SET_PARMS = *mut tagMCI_SET_PARMS; +pub type LPMCI_SET_PARMS = *mut tagMCI_SET_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_BREAK_PARMS { + pub dwCallback: DWORD_PTR, + pub nVirtKey: ::std::os::raw::c_int, + pub hwndBreak: HWND, +} +pub type MCI_BREAK_PARMS = tagMCI_BREAK_PARMS; +pub type PMCI_BREAK_PARMS = *mut tagMCI_BREAK_PARMS; +pub type LPMCI_BREAK_PARMS = *mut tagMCI_BREAK_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_SAVE_PARMSA { + pub dwCallback: DWORD_PTR, + pub lpfilename: LPCSTR, +} +pub type MCI_SAVE_PARMSA = tagMCI_SAVE_PARMSA; +pub type PMCI_SAVE_PARMSA = *mut tagMCI_SAVE_PARMSA; +pub type LPMCI_SAVE_PARMSA = *mut tagMCI_SAVE_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_SAVE_PARMSW { + pub dwCallback: DWORD_PTR, + pub lpfilename: LPCWSTR, +} +pub type MCI_SAVE_PARMSW = tagMCI_SAVE_PARMSW; +pub type PMCI_SAVE_PARMSW = *mut tagMCI_SAVE_PARMSW; +pub type LPMCI_SAVE_PARMSW = *mut tagMCI_SAVE_PARMSW; +pub type MCI_SAVE_PARMS = MCI_SAVE_PARMSA; +pub type PMCI_SAVE_PARMS = PMCI_SAVE_PARMSA; +pub type LPMCI_SAVE_PARMS = LPMCI_SAVE_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_LOAD_PARMSA { + pub dwCallback: DWORD_PTR, + pub lpfilename: LPCSTR, +} +pub type MCI_LOAD_PARMSA = tagMCI_LOAD_PARMSA; +pub type PMCI_LOAD_PARMSA = *mut tagMCI_LOAD_PARMSA; +pub type LPMCI_LOAD_PARMSA = *mut tagMCI_LOAD_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_LOAD_PARMSW { + pub dwCallback: DWORD_PTR, + pub lpfilename: LPCWSTR, +} +pub type MCI_LOAD_PARMSW = tagMCI_LOAD_PARMSW; +pub type PMCI_LOAD_PARMSW = *mut tagMCI_LOAD_PARMSW; +pub type LPMCI_LOAD_PARMSW = *mut tagMCI_LOAD_PARMSW; +pub type MCI_LOAD_PARMS = MCI_LOAD_PARMSA; +pub type PMCI_LOAD_PARMS = PMCI_LOAD_PARMSA; +pub type LPMCI_LOAD_PARMS = LPMCI_LOAD_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_RECORD_PARMS { + pub dwCallback: DWORD_PTR, + pub dwFrom: DWORD, + pub dwTo: DWORD, +} +pub type MCI_RECORD_PARMS = tagMCI_RECORD_PARMS; +pub type LPMCI_RECORD_PARMS = *mut tagMCI_RECORD_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_VD_PLAY_PARMS { + pub dwCallback: DWORD_PTR, + pub dwFrom: DWORD, + pub dwTo: DWORD, + pub dwSpeed: DWORD, +} +pub type MCI_VD_PLAY_PARMS = tagMCI_VD_PLAY_PARMS; +pub type PMCI_VD_PLAY_PARMS = *mut tagMCI_VD_PLAY_PARMS; +pub type LPMCI_VD_PLAY_PARMS = *mut tagMCI_VD_PLAY_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_VD_STEP_PARMS { + pub dwCallback: DWORD_PTR, + pub dwFrames: DWORD, +} +pub type MCI_VD_STEP_PARMS = tagMCI_VD_STEP_PARMS; +pub type PMCI_VD_STEP_PARMS = *mut tagMCI_VD_STEP_PARMS; +pub type LPMCI_VD_STEP_PARMS = *mut tagMCI_VD_STEP_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_VD_ESCAPE_PARMSA { + pub dwCallback: DWORD_PTR, + pub lpstrCommand: LPCSTR, +} +pub type MCI_VD_ESCAPE_PARMSA = tagMCI_VD_ESCAPE_PARMSA; +pub type PMCI_VD_ESCAPE_PARMSA = *mut tagMCI_VD_ESCAPE_PARMSA; +pub type LPMCI_VD_ESCAPE_PARMSA = *mut tagMCI_VD_ESCAPE_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_VD_ESCAPE_PARMSW { + pub dwCallback: DWORD_PTR, + pub lpstrCommand: LPCWSTR, +} +pub type MCI_VD_ESCAPE_PARMSW = tagMCI_VD_ESCAPE_PARMSW; +pub type PMCI_VD_ESCAPE_PARMSW = *mut tagMCI_VD_ESCAPE_PARMSW; +pub type LPMCI_VD_ESCAPE_PARMSW = *mut tagMCI_VD_ESCAPE_PARMSW; +pub type MCI_VD_ESCAPE_PARMS = MCI_VD_ESCAPE_PARMSA; +pub type PMCI_VD_ESCAPE_PARMS = PMCI_VD_ESCAPE_PARMSA; +pub type LPMCI_VD_ESCAPE_PARMS = LPMCI_VD_ESCAPE_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_WAVE_OPEN_PARMSA { + pub dwCallback: DWORD_PTR, + pub wDeviceID: MCIDEVICEID, + pub lpstrDeviceType: LPCSTR, + pub lpstrElementName: LPCSTR, + pub lpstrAlias: LPCSTR, + pub dwBufferSeconds: DWORD, +} +pub type MCI_WAVE_OPEN_PARMSA = tagMCI_WAVE_OPEN_PARMSA; +pub type PMCI_WAVE_OPEN_PARMSA = *mut tagMCI_WAVE_OPEN_PARMSA; +pub type LPMCI_WAVE_OPEN_PARMSA = *mut tagMCI_WAVE_OPEN_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_WAVE_OPEN_PARMSW { + pub dwCallback: DWORD_PTR, + pub wDeviceID: MCIDEVICEID, + pub lpstrDeviceType: LPCWSTR, + pub lpstrElementName: LPCWSTR, + pub lpstrAlias: LPCWSTR, + pub dwBufferSeconds: DWORD, +} +pub type MCI_WAVE_OPEN_PARMSW = tagMCI_WAVE_OPEN_PARMSW; +pub type PMCI_WAVE_OPEN_PARMSW = *mut tagMCI_WAVE_OPEN_PARMSW; +pub type LPMCI_WAVE_OPEN_PARMSW = *mut tagMCI_WAVE_OPEN_PARMSW; +pub type MCI_WAVE_OPEN_PARMS = MCI_WAVE_OPEN_PARMSA; +pub type PMCI_WAVE_OPEN_PARMS = PMCI_WAVE_OPEN_PARMSA; +pub type LPMCI_WAVE_OPEN_PARMS = LPMCI_WAVE_OPEN_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_WAVE_DELETE_PARMS { + pub dwCallback: DWORD_PTR, + pub dwFrom: DWORD, + pub dwTo: DWORD, +} +pub type MCI_WAVE_DELETE_PARMS = tagMCI_WAVE_DELETE_PARMS; +pub type PMCI_WAVE_DELETE_PARMS = *mut tagMCI_WAVE_DELETE_PARMS; +pub type LPMCI_WAVE_DELETE_PARMS = *mut tagMCI_WAVE_DELETE_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_WAVE_SET_PARMS { + pub dwCallback: DWORD_PTR, + pub dwTimeFormat: DWORD, + pub dwAudio: DWORD, + pub wInput: UINT, + pub wOutput: UINT, + pub wFormatTag: WORD, + pub wReserved2: WORD, + pub nChannels: WORD, + pub wReserved3: WORD, + pub nSamplesPerSec: DWORD, + pub nAvgBytesPerSec: DWORD, + pub nBlockAlign: WORD, + pub wReserved4: WORD, + pub wBitsPerSample: WORD, + pub wReserved5: WORD, +} +pub type MCI_WAVE_SET_PARMS = tagMCI_WAVE_SET_PARMS; +pub type PMCI_WAVE_SET_PARMS = *mut tagMCI_WAVE_SET_PARMS; +pub type LPMCI_WAVE_SET_PARMS = *mut tagMCI_WAVE_SET_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_SEQ_SET_PARMS { + pub dwCallback: DWORD_PTR, + pub dwTimeFormat: DWORD, + pub dwAudio: DWORD, + pub dwTempo: DWORD, + pub dwPort: DWORD, + pub dwSlave: DWORD, + pub dwMaster: DWORD, + pub dwOffset: DWORD, +} +pub type MCI_SEQ_SET_PARMS = tagMCI_SEQ_SET_PARMS; +pub type PMCI_SEQ_SET_PARMS = *mut tagMCI_SEQ_SET_PARMS; +pub type LPMCI_SEQ_SET_PARMS = *mut tagMCI_SEQ_SET_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_ANIM_OPEN_PARMSA { + pub dwCallback: DWORD_PTR, + pub wDeviceID: MCIDEVICEID, + pub lpstrDeviceType: LPCSTR, + pub lpstrElementName: LPCSTR, + pub lpstrAlias: LPCSTR, + pub dwStyle: DWORD, + pub hWndParent: HWND, +} +pub type MCI_ANIM_OPEN_PARMSA = tagMCI_ANIM_OPEN_PARMSA; +pub type PMCI_ANIM_OPEN_PARMSA = *mut tagMCI_ANIM_OPEN_PARMSA; +pub type LPMCI_ANIM_OPEN_PARMSA = *mut tagMCI_ANIM_OPEN_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_ANIM_OPEN_PARMSW { + pub dwCallback: DWORD_PTR, + pub wDeviceID: MCIDEVICEID, + pub lpstrDeviceType: LPCWSTR, + pub lpstrElementName: LPCWSTR, + pub lpstrAlias: LPCWSTR, + pub dwStyle: DWORD, + pub hWndParent: HWND, +} +pub type MCI_ANIM_OPEN_PARMSW = tagMCI_ANIM_OPEN_PARMSW; +pub type PMCI_ANIM_OPEN_PARMSW = *mut tagMCI_ANIM_OPEN_PARMSW; +pub type LPMCI_ANIM_OPEN_PARMSW = *mut tagMCI_ANIM_OPEN_PARMSW; +pub type MCI_ANIM_OPEN_PARMS = MCI_ANIM_OPEN_PARMSA; +pub type PMCI_ANIM_OPEN_PARMS = PMCI_ANIM_OPEN_PARMSA; +pub type LPMCI_ANIM_OPEN_PARMS = LPMCI_ANIM_OPEN_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_ANIM_PLAY_PARMS { + pub dwCallback: DWORD_PTR, + pub dwFrom: DWORD, + pub dwTo: DWORD, + pub dwSpeed: DWORD, +} +pub type MCI_ANIM_PLAY_PARMS = tagMCI_ANIM_PLAY_PARMS; +pub type PMCI_ANIM_PLAY_PARMS = *mut tagMCI_ANIM_PLAY_PARMS; +pub type LPMCI_ANIM_PLAY_PARMS = *mut tagMCI_ANIM_PLAY_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_ANIM_STEP_PARMS { + pub dwCallback: DWORD_PTR, + pub dwFrames: DWORD, +} +pub type MCI_ANIM_STEP_PARMS = tagMCI_ANIM_STEP_PARMS; +pub type PMCI_ANIM_STEP_PARMS = *mut tagMCI_ANIM_STEP_PARMS; +pub type LPMCI_ANIM_STEP_PARMS = *mut tagMCI_ANIM_STEP_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_ANIM_WINDOW_PARMSA { + pub dwCallback: DWORD_PTR, + pub hWnd: HWND, + pub nCmdShow: UINT, + pub lpstrText: LPCSTR, +} +pub type MCI_ANIM_WINDOW_PARMSA = tagMCI_ANIM_WINDOW_PARMSA; +pub type PMCI_ANIM_WINDOW_PARMSA = *mut tagMCI_ANIM_WINDOW_PARMSA; +pub type LPMCI_ANIM_WINDOW_PARMSA = *mut tagMCI_ANIM_WINDOW_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_ANIM_WINDOW_PARMSW { + pub dwCallback: DWORD_PTR, + pub hWnd: HWND, + pub nCmdShow: UINT, + pub lpstrText: LPCWSTR, +} +pub type MCI_ANIM_WINDOW_PARMSW = tagMCI_ANIM_WINDOW_PARMSW; +pub type PMCI_ANIM_WINDOW_PARMSW = *mut tagMCI_ANIM_WINDOW_PARMSW; +pub type LPMCI_ANIM_WINDOW_PARMSW = *mut tagMCI_ANIM_WINDOW_PARMSW; +pub type MCI_ANIM_WINDOW_PARMS = MCI_ANIM_WINDOW_PARMSA; +pub type PMCI_ANIM_WINDOW_PARMS = PMCI_ANIM_WINDOW_PARMSA; +pub type LPMCI_ANIM_WINDOW_PARMS = LPMCI_ANIM_WINDOW_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_ANIM_RECT_PARMS { + pub dwCallback: DWORD_PTR, + pub rc: RECT, +} +pub type MCI_ANIM_RECT_PARMS = tagMCI_ANIM_RECT_PARMS; +pub type PMCI_ANIM_RECT_PARMS = *mut MCI_ANIM_RECT_PARMS; +pub type LPMCI_ANIM_RECT_PARMS = *mut MCI_ANIM_RECT_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_ANIM_UPDATE_PARMS { + pub dwCallback: DWORD_PTR, + pub rc: RECT, + pub hDC: HDC, +} +pub type MCI_ANIM_UPDATE_PARMS = tagMCI_ANIM_UPDATE_PARMS; +pub type PMCI_ANIM_UPDATE_PARMS = *mut tagMCI_ANIM_UPDATE_PARMS; +pub type LPMCI_ANIM_UPDATE_PARMS = *mut tagMCI_ANIM_UPDATE_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_OVLY_OPEN_PARMSA { + pub dwCallback: DWORD_PTR, + pub wDeviceID: MCIDEVICEID, + pub lpstrDeviceType: LPCSTR, + pub lpstrElementName: LPCSTR, + pub lpstrAlias: LPCSTR, + pub dwStyle: DWORD, + pub hWndParent: HWND, +} +pub type MCI_OVLY_OPEN_PARMSA = tagMCI_OVLY_OPEN_PARMSA; +pub type PMCI_OVLY_OPEN_PARMSA = *mut tagMCI_OVLY_OPEN_PARMSA; +pub type LPMCI_OVLY_OPEN_PARMSA = *mut tagMCI_OVLY_OPEN_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_OVLY_OPEN_PARMSW { + pub dwCallback: DWORD_PTR, + pub wDeviceID: MCIDEVICEID, + pub lpstrDeviceType: LPCWSTR, + pub lpstrElementName: LPCWSTR, + pub lpstrAlias: LPCWSTR, + pub dwStyle: DWORD, + pub hWndParent: HWND, +} +pub type MCI_OVLY_OPEN_PARMSW = tagMCI_OVLY_OPEN_PARMSW; +pub type PMCI_OVLY_OPEN_PARMSW = *mut tagMCI_OVLY_OPEN_PARMSW; +pub type LPMCI_OVLY_OPEN_PARMSW = *mut tagMCI_OVLY_OPEN_PARMSW; +pub type MCI_OVLY_OPEN_PARMS = MCI_OVLY_OPEN_PARMSA; +pub type PMCI_OVLY_OPEN_PARMS = PMCI_OVLY_OPEN_PARMSA; +pub type LPMCI_OVLY_OPEN_PARMS = LPMCI_OVLY_OPEN_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_OVLY_WINDOW_PARMSA { + pub dwCallback: DWORD_PTR, + pub hWnd: HWND, + pub nCmdShow: UINT, + pub lpstrText: LPCSTR, +} +pub type MCI_OVLY_WINDOW_PARMSA = tagMCI_OVLY_WINDOW_PARMSA; +pub type PMCI_OVLY_WINDOW_PARMSA = *mut tagMCI_OVLY_WINDOW_PARMSA; +pub type LPMCI_OVLY_WINDOW_PARMSA = *mut tagMCI_OVLY_WINDOW_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_OVLY_WINDOW_PARMSW { + pub dwCallback: DWORD_PTR, + pub hWnd: HWND, + pub nCmdShow: UINT, + pub lpstrText: LPCWSTR, +} +pub type MCI_OVLY_WINDOW_PARMSW = tagMCI_OVLY_WINDOW_PARMSW; +pub type PMCI_OVLY_WINDOW_PARMSW = *mut tagMCI_OVLY_WINDOW_PARMSW; +pub type LPMCI_OVLY_WINDOW_PARMSW = *mut tagMCI_OVLY_WINDOW_PARMSW; +pub type MCI_OVLY_WINDOW_PARMS = MCI_OVLY_WINDOW_PARMSA; +pub type PMCI_OVLY_WINDOW_PARMS = PMCI_OVLY_WINDOW_PARMSA; +pub type LPMCI_OVLY_WINDOW_PARMS = LPMCI_OVLY_WINDOW_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_OVLY_RECT_PARMS { + pub dwCallback: DWORD_PTR, + pub rc: RECT, +} +pub type MCI_OVLY_RECT_PARMS = tagMCI_OVLY_RECT_PARMS; +pub type PMCI_OVLY_RECT_PARMS = *mut tagMCI_OVLY_RECT_PARMS; +pub type LPMCI_OVLY_RECT_PARMS = *mut tagMCI_OVLY_RECT_PARMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_OVLY_SAVE_PARMSA { + pub dwCallback: DWORD_PTR, + pub lpfilename: LPCSTR, + pub rc: RECT, +} +pub type MCI_OVLY_SAVE_PARMSA = tagMCI_OVLY_SAVE_PARMSA; +pub type PMCI_OVLY_SAVE_PARMSA = *mut tagMCI_OVLY_SAVE_PARMSA; +pub type LPMCI_OVLY_SAVE_PARMSA = *mut tagMCI_OVLY_SAVE_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_OVLY_SAVE_PARMSW { + pub dwCallback: DWORD_PTR, + pub lpfilename: LPCWSTR, + pub rc: RECT, +} +pub type MCI_OVLY_SAVE_PARMSW = tagMCI_OVLY_SAVE_PARMSW; +pub type PMCI_OVLY_SAVE_PARMSW = *mut tagMCI_OVLY_SAVE_PARMSW; +pub type LPMCI_OVLY_SAVE_PARMSW = *mut tagMCI_OVLY_SAVE_PARMSW; +pub type MCI_OVLY_SAVE_PARMS = MCI_OVLY_SAVE_PARMSA; +pub type PMCI_OVLY_SAVE_PARMS = PMCI_OVLY_SAVE_PARMSA; +pub type LPMCI_OVLY_SAVE_PARMS = LPMCI_OVLY_SAVE_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_OVLY_LOAD_PARMSA { + pub dwCallback: DWORD_PTR, + pub lpfilename: LPCSTR, + pub rc: RECT, +} +pub type MCI_OVLY_LOAD_PARMSA = tagMCI_OVLY_LOAD_PARMSA; +pub type PMCI_OVLY_LOAD_PARMSA = *mut tagMCI_OVLY_LOAD_PARMSA; +pub type LPMCI_OVLY_LOAD_PARMSA = *mut tagMCI_OVLY_LOAD_PARMSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMCI_OVLY_LOAD_PARMSW { + pub dwCallback: DWORD_PTR, + pub lpfilename: LPCWSTR, + pub rc: RECT, +} +pub type MCI_OVLY_LOAD_PARMSW = tagMCI_OVLY_LOAD_PARMSW; +pub type PMCI_OVLY_LOAD_PARMSW = *mut tagMCI_OVLY_LOAD_PARMSW; +pub type LPMCI_OVLY_LOAD_PARMSW = *mut tagMCI_OVLY_LOAD_PARMSW; +pub type MCI_OVLY_LOAD_PARMS = MCI_OVLY_LOAD_PARMSA; +pub type PMCI_OVLY_LOAD_PARMS = PMCI_OVLY_LOAD_PARMSA; +pub type LPMCI_OVLY_LOAD_PARMS = LPMCI_OVLY_LOAD_PARMSA; +extern "C" { + pub fn mciGetDriverData(wDeviceID: MCIDEVICEID) -> DWORD_PTR; +} +extern "C" { + pub fn mciLoadCommandResource(hInstance: HANDLE, lpResName: LPCWSTR, wType: UINT) -> UINT; +} +extern "C" { + pub fn mciSetDriverData(wDeviceID: MCIDEVICEID, dwData: DWORD_PTR) -> BOOL; +} +extern "C" { + pub fn mciDriverYield(wDeviceID: MCIDEVICEID) -> UINT; +} +extern "C" { + pub fn mciDriverNotify(hwndCallback: HANDLE, wDeviceID: MCIDEVICEID, uStatus: UINT) -> BOOL; +} +extern "C" { + pub fn mciFreeCommandResource(wTable: UINT) -> BOOL; +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct DRVCONFIGINFOEX { + pub dwDCISize: DWORD, + pub lpszDCISectionName: LPCWSTR, + pub lpszDCIAliasName: LPCWSTR, + pub dnDevNode: DWORD, +} +pub type PDRVCONFIGINFOEX = *mut DRVCONFIGINFOEX; +pub type NPDRVCONFIGINFOEX = *mut DRVCONFIGINFOEX; +pub type LPDRVCONFIGINFOEX = *mut DRVCONFIGINFOEX; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagDRVCONFIGINFO { + pub dwDCISize: DWORD, + pub lpszDCISectionName: LPCWSTR, + pub lpszDCIAliasName: LPCWSTR, +} +pub type DRVCONFIGINFO = tagDRVCONFIGINFO; +pub type PDRVCONFIGINFO = *mut tagDRVCONFIGINFO; +pub type NPDRVCONFIGINFO = *mut tagDRVCONFIGINFO; +pub type LPDRVCONFIGINFO = *mut tagDRVCONFIGINFO; +pub type DRIVERPROC = ::std::option::Option< + unsafe extern "C" fn( + arg1: DWORD_PTR, + arg2: HDRVR, + arg3: UINT, + arg4: LPARAM, + arg5: LPARAM, + ) -> LRESULT, +>; +extern "C" { + pub fn CloseDriver(hDriver: HDRVR, lParam1: LPARAM, lParam2: LPARAM) -> LRESULT; +} +extern "C" { + pub fn OpenDriver(szDriverName: LPCWSTR, szSectionName: LPCWSTR, lParam2: LPARAM) -> HDRVR; +} +extern "C" { + pub fn SendDriverMessage( + hDriver: HDRVR, + message: UINT, + lParam1: LPARAM, + lParam2: LPARAM, + ) -> LRESULT; +} +extern "C" { + pub fn DrvGetModuleHandle(hDriver: HDRVR) -> HMODULE; +} +extern "C" { + pub fn GetDriverModuleHandle(hDriver: HDRVR) -> HMODULE; +} +extern "C" { + pub fn DefDriverProc( + dwDriverIdentifier: DWORD_PTR, + hdrvr: HDRVR, + uMsg: UINT, + lParam1: LPARAM, + lParam2: LPARAM, + ) -> LRESULT; +} +extern "C" { + pub fn DriverCallback( + dwCallback: DWORD_PTR, + dwFlags: DWORD, + hDevice: HDRVR, + dwMsg: DWORD, + dwUser: DWORD_PTR, + dwParam1: DWORD_PTR, + dwParam2: DWORD_PTR, + ) -> BOOL; +} +extern "C" { + pub fn sndOpenSound( + EventName: LPCWSTR, + AppName: LPCWSTR, + Flags: INT32, + FileHandle: PHANDLE, + ) -> LONG; +} +pub type DRIVERMSGPROC = ::std::option::Option< + unsafe extern "C" fn( + arg1: DWORD, + arg2: DWORD, + arg3: DWORD_PTR, + arg4: DWORD_PTR, + arg5: DWORD_PTR, + ) -> DWORD, +>; +extern "C" { + pub fn mmDrvInstall( + hDriver: HDRVR, + wszDrvEntry: LPCWSTR, + drvMessage: DRIVERMSGPROC, + wFlags: UINT, + ) -> UINT; +} +pub type FOURCC = DWORD; +pub type HPSTR = *mut ::std::os::raw::c_char; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct HMMIO__ { + pub unused: ::std::os::raw::c_int, +} +pub type HMMIO = *mut HMMIO__; +pub type LPMMIOPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: LPSTR, arg2: UINT, arg3: LPARAM, arg4: LPARAM) -> LRESULT, +>; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _MMIOINFO { + pub dwFlags: DWORD, + pub fccIOProc: FOURCC, + pub pIOProc: LPMMIOPROC, + pub wErrorRet: UINT, + pub htask: HTASK, + pub cchBuffer: LONG, + pub pchBuffer: HPSTR, + pub pchNext: HPSTR, + pub pchEndRead: HPSTR, + pub pchEndWrite: HPSTR, + pub lBufOffset: LONG, + pub lDiskOffset: LONG, + pub adwInfo: [DWORD; 3usize], + pub dwReserved1: DWORD, + pub dwReserved2: DWORD, + pub hmmio: HMMIO, +} +pub type MMIOINFO = _MMIOINFO; +pub type PMMIOINFO = *mut _MMIOINFO; +pub type NPMMIOINFO = *mut _MMIOINFO; +pub type LPMMIOINFO = *mut _MMIOINFO; +pub type LPCMMIOINFO = *const MMIOINFO; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _MMCKINFO { + pub ckid: FOURCC, + pub cksize: DWORD, + pub fccType: FOURCC, + pub dwDataOffset: DWORD, + pub dwFlags: DWORD, +} +pub type MMCKINFO = _MMCKINFO; +pub type PMMCKINFO = *mut _MMCKINFO; +pub type NPMMCKINFO = *mut _MMCKINFO; +pub type LPMMCKINFO = *mut _MMCKINFO; +pub type LPCMMCKINFO = *const MMCKINFO; +extern "C" { + pub fn mmioStringToFOURCCA(sz: LPCSTR, uFlags: UINT) -> FOURCC; +} +extern "C" { + pub fn mmioStringToFOURCCW(sz: LPCWSTR, uFlags: UINT) -> FOURCC; +} +extern "C" { + pub fn mmioInstallIOProcA(fccIOProc: FOURCC, pIOProc: LPMMIOPROC, dwFlags: DWORD) + -> LPMMIOPROC; +} +extern "C" { + pub fn mmioInstallIOProcW(fccIOProc: FOURCC, pIOProc: LPMMIOPROC, dwFlags: DWORD) + -> LPMMIOPROC; +} +extern "C" { + pub fn mmioOpenA(pszFileName: LPSTR, pmmioinfo: LPMMIOINFO, fdwOpen: DWORD) -> HMMIO; +} +extern "C" { + pub fn mmioOpenW(pszFileName: LPWSTR, pmmioinfo: LPMMIOINFO, fdwOpen: DWORD) -> HMMIO; +} +extern "C" { + pub fn mmioRenameA( + pszFileName: LPCSTR, + pszNewFileName: LPCSTR, + pmmioinfo: LPCMMIOINFO, + fdwRename: DWORD, + ) -> MMRESULT; +} +extern "C" { + pub fn mmioRenameW( + pszFileName: LPCWSTR, + pszNewFileName: LPCWSTR, + pmmioinfo: LPCMMIOINFO, + fdwRename: DWORD, + ) -> MMRESULT; +} +extern "C" { + pub fn mmioClose(hmmio: HMMIO, fuClose: UINT) -> MMRESULT; +} +extern "C" { + pub fn mmioRead(hmmio: HMMIO, pch: HPSTR, cch: LONG) -> LONG; +} +extern "C" { + pub fn mmioWrite(hmmio: HMMIO, pch: *const ::std::os::raw::c_char, cch: LONG) -> LONG; +} +extern "C" { + pub fn mmioSeek(hmmio: HMMIO, lOffset: LONG, iOrigin: ::std::os::raw::c_int) -> LONG; +} +extern "C" { + pub fn mmioGetInfo(hmmio: HMMIO, pmmioinfo: LPMMIOINFO, fuInfo: UINT) -> MMRESULT; +} +extern "C" { + pub fn mmioSetInfo(hmmio: HMMIO, pmmioinfo: LPCMMIOINFO, fuInfo: UINT) -> MMRESULT; +} +extern "C" { + pub fn mmioSetBuffer( + hmmio: HMMIO, + pchBuffer: LPSTR, + cchBuffer: LONG, + fuBuffer: UINT, + ) -> MMRESULT; +} +extern "C" { + pub fn mmioFlush(hmmio: HMMIO, fuFlush: UINT) -> MMRESULT; +} +extern "C" { + pub fn mmioAdvance(hmmio: HMMIO, pmmioinfo: LPMMIOINFO, fuAdvance: UINT) -> MMRESULT; +} +extern "C" { + pub fn mmioSendMessage(hmmio: HMMIO, uMsg: UINT, lParam1: LPARAM, lParam2: LPARAM) -> LRESULT; +} +extern "C" { + pub fn mmioDescend( + hmmio: HMMIO, + pmmcki: LPMMCKINFO, + pmmckiParent: *const MMCKINFO, + fuDescend: UINT, + ) -> MMRESULT; +} +extern "C" { + pub fn mmioAscend(hmmio: HMMIO, pmmcki: LPMMCKINFO, fuAscend: UINT) -> MMRESULT; +} +extern "C" { + pub fn mmioCreateChunk(hmmio: HMMIO, pmmcki: LPMMCKINFO, fuCreate: UINT) -> MMRESULT; +} +pub type LPTIMECALLBACK = ::std::option::Option< + unsafe extern "C" fn(arg1: UINT, arg2: UINT, arg3: DWORD_PTR, arg4: DWORD_PTR, arg5: DWORD_PTR), +>; +extern "C" { + pub fn timeSetEvent( + uDelay: UINT, + uResolution: UINT, + fptc: LPTIMECALLBACK, + dwUser: DWORD_PTR, + fuEvent: UINT, + ) -> MMRESULT; +} +extern "C" { + pub fn timeKillEvent(uTimerID: UINT) -> MMRESULT; +} +extern "C" { + pub fn sndPlaySoundA(pszSound: LPCSTR, fuSound: UINT) -> BOOL; +} +extern "C" { + pub fn sndPlaySoundW(pszSound: LPCWSTR, fuSound: UINT) -> BOOL; +} +extern "C" { + pub fn PlaySoundA(pszSound: LPCSTR, hmod: HMODULE, fdwSound: DWORD) -> BOOL; +} +extern "C" { + pub fn PlaySoundW(pszSound: LPCWSTR, hmod: HMODULE, fdwSound: DWORD) -> BOOL; +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct HWAVE__ { + pub unused: ::std::os::raw::c_int, +} +pub type HWAVE = *mut HWAVE__; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct HWAVEIN__ { + pub unused: ::std::os::raw::c_int, +} +pub type HWAVEIN = *mut HWAVEIN__; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct HWAVEOUT__ { + pub unused: ::std::os::raw::c_int, +} +pub type HWAVEOUT = *mut HWAVEOUT__; +pub type LPHWAVEIN = *mut HWAVEIN; +pub type LPHWAVEOUT = *mut HWAVEOUT; +pub type LPWAVECALLBACK = ::std::option::Option< + unsafe extern "C" fn( + arg1: HDRVR, + arg2: UINT, + arg3: DWORD_PTR, + arg4: DWORD_PTR, + arg5: DWORD_PTR, + ), +>; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct wavehdr_tag { + pub lpData: LPSTR, + pub dwBufferLength: DWORD, + pub dwBytesRecorded: DWORD, + pub dwUser: DWORD_PTR, + pub dwFlags: DWORD, + pub dwLoops: DWORD, + pub lpNext: *mut wavehdr_tag, + pub reserved: DWORD_PTR, +} +pub type WAVEHDR = wavehdr_tag; +pub type PWAVEHDR = *mut wavehdr_tag; +pub type NPWAVEHDR = *mut wavehdr_tag; +pub type LPWAVEHDR = *mut wavehdr_tag; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagWAVEOUTCAPSA { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [CHAR; 32usize], + pub dwFormats: DWORD, + pub wChannels: WORD, + pub wReserved1: WORD, + pub dwSupport: DWORD, +} +pub type WAVEOUTCAPSA = tagWAVEOUTCAPSA; +pub type PWAVEOUTCAPSA = *mut tagWAVEOUTCAPSA; +pub type NPWAVEOUTCAPSA = *mut tagWAVEOUTCAPSA; +pub type LPWAVEOUTCAPSA = *mut tagWAVEOUTCAPSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagWAVEOUTCAPSW { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [WCHAR; 32usize], + pub dwFormats: DWORD, + pub wChannels: WORD, + pub wReserved1: WORD, + pub dwSupport: DWORD, +} +pub type WAVEOUTCAPSW = tagWAVEOUTCAPSW; +pub type PWAVEOUTCAPSW = *mut tagWAVEOUTCAPSW; +pub type NPWAVEOUTCAPSW = *mut tagWAVEOUTCAPSW; +pub type LPWAVEOUTCAPSW = *mut tagWAVEOUTCAPSW; +pub type WAVEOUTCAPS = WAVEOUTCAPSA; +pub type PWAVEOUTCAPS = PWAVEOUTCAPSA; +pub type NPWAVEOUTCAPS = NPWAVEOUTCAPSA; +pub type LPWAVEOUTCAPS = LPWAVEOUTCAPSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagWAVEOUTCAPS2A { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [CHAR; 32usize], + pub dwFormats: DWORD, + pub wChannels: WORD, + pub wReserved1: WORD, + pub dwSupport: DWORD, + pub ManufacturerGuid: GUID, + pub ProductGuid: GUID, + pub NameGuid: GUID, +} +pub type WAVEOUTCAPS2A = tagWAVEOUTCAPS2A; +pub type PWAVEOUTCAPS2A = *mut tagWAVEOUTCAPS2A; +pub type NPWAVEOUTCAPS2A = *mut tagWAVEOUTCAPS2A; +pub type LPWAVEOUTCAPS2A = *mut tagWAVEOUTCAPS2A; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagWAVEOUTCAPS2W { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [WCHAR; 32usize], + pub dwFormats: DWORD, + pub wChannels: WORD, + pub wReserved1: WORD, + pub dwSupport: DWORD, + pub ManufacturerGuid: GUID, + pub ProductGuid: GUID, + pub NameGuid: GUID, +} +pub type WAVEOUTCAPS2W = tagWAVEOUTCAPS2W; +pub type PWAVEOUTCAPS2W = *mut tagWAVEOUTCAPS2W; +pub type NPWAVEOUTCAPS2W = *mut tagWAVEOUTCAPS2W; +pub type LPWAVEOUTCAPS2W = *mut tagWAVEOUTCAPS2W; +pub type WAVEOUTCAPS2 = WAVEOUTCAPS2A; +pub type PWAVEOUTCAPS2 = PWAVEOUTCAPS2A; +pub type NPWAVEOUTCAPS2 = NPWAVEOUTCAPS2A; +pub type LPWAVEOUTCAPS2 = LPWAVEOUTCAPS2A; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagWAVEINCAPSA { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [CHAR; 32usize], + pub dwFormats: DWORD, + pub wChannels: WORD, + pub wReserved1: WORD, +} +pub type WAVEINCAPSA = tagWAVEINCAPSA; +pub type PWAVEINCAPSA = *mut tagWAVEINCAPSA; +pub type NPWAVEINCAPSA = *mut tagWAVEINCAPSA; +pub type LPWAVEINCAPSA = *mut tagWAVEINCAPSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagWAVEINCAPSW { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [WCHAR; 32usize], + pub dwFormats: DWORD, + pub wChannels: WORD, + pub wReserved1: WORD, +} +pub type WAVEINCAPSW = tagWAVEINCAPSW; +pub type PWAVEINCAPSW = *mut tagWAVEINCAPSW; +pub type NPWAVEINCAPSW = *mut tagWAVEINCAPSW; +pub type LPWAVEINCAPSW = *mut tagWAVEINCAPSW; +pub type WAVEINCAPS = WAVEINCAPSA; +pub type PWAVEINCAPS = PWAVEINCAPSA; +pub type NPWAVEINCAPS = NPWAVEINCAPSA; +pub type LPWAVEINCAPS = LPWAVEINCAPSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagWAVEINCAPS2A { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [CHAR; 32usize], + pub dwFormats: DWORD, + pub wChannels: WORD, + pub wReserved1: WORD, + pub ManufacturerGuid: GUID, + pub ProductGuid: GUID, + pub NameGuid: GUID, +} +pub type WAVEINCAPS2A = tagWAVEINCAPS2A; +pub type PWAVEINCAPS2A = *mut tagWAVEINCAPS2A; +pub type NPWAVEINCAPS2A = *mut tagWAVEINCAPS2A; +pub type LPWAVEINCAPS2A = *mut tagWAVEINCAPS2A; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagWAVEINCAPS2W { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [WCHAR; 32usize], + pub dwFormats: DWORD, + pub wChannels: WORD, + pub wReserved1: WORD, + pub ManufacturerGuid: GUID, + pub ProductGuid: GUID, + pub NameGuid: GUID, +} +pub type WAVEINCAPS2W = tagWAVEINCAPS2W; +pub type PWAVEINCAPS2W = *mut tagWAVEINCAPS2W; +pub type NPWAVEINCAPS2W = *mut tagWAVEINCAPS2W; +pub type LPWAVEINCAPS2W = *mut tagWAVEINCAPS2W; +pub type WAVEINCAPS2 = WAVEINCAPS2A; +pub type PWAVEINCAPS2 = PWAVEINCAPS2A; +pub type NPWAVEINCAPS2 = NPWAVEINCAPS2A; +pub type LPWAVEINCAPS2 = LPWAVEINCAPS2A; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct waveformat_tag { + pub wFormatTag: WORD, + pub nChannels: WORD, + pub nSamplesPerSec: DWORD, + pub nAvgBytesPerSec: DWORD, + pub nBlockAlign: WORD, +} +pub type WAVEFORMAT = waveformat_tag; +pub type PWAVEFORMAT = *mut waveformat_tag; +pub type NPWAVEFORMAT = *mut waveformat_tag; +pub type LPWAVEFORMAT = *mut waveformat_tag; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct pcmwaveformat_tag { + pub wf: WAVEFORMAT, + pub wBitsPerSample: WORD, +} +pub type PCMWAVEFORMAT = pcmwaveformat_tag; +pub type PPCMWAVEFORMAT = *mut pcmwaveformat_tag; +pub type NPPCMWAVEFORMAT = *mut pcmwaveformat_tag; +pub type LPPCMWAVEFORMAT = *mut pcmwaveformat_tag; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tWAVEFORMATEX { + pub wFormatTag: WORD, + pub nChannels: WORD, + pub nSamplesPerSec: DWORD, + pub nAvgBytesPerSec: DWORD, + pub nBlockAlign: WORD, + pub wBitsPerSample: WORD, + pub cbSize: WORD, +} +pub type WAVEFORMATEX = tWAVEFORMATEX; +pub type PWAVEFORMATEX = *mut tWAVEFORMATEX; +pub type NPWAVEFORMATEX = *mut tWAVEFORMATEX; +pub type LPWAVEFORMATEX = *mut tWAVEFORMATEX; +pub type LPCWAVEFORMATEX = *const WAVEFORMATEX; +extern "C" { + pub fn waveOutGetNumDevs() -> UINT; +} +extern "C" { + pub fn waveOutGetDevCapsA(uDeviceID: UINT_PTR, pwoc: LPWAVEOUTCAPSA, cbwoc: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveOutGetDevCapsW(uDeviceID: UINT_PTR, pwoc: LPWAVEOUTCAPSW, cbwoc: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveOutGetVolume(hwo: HWAVEOUT, pdwVolume: LPDWORD) -> MMRESULT; +} +extern "C" { + pub fn waveOutSetVolume(hwo: HWAVEOUT, dwVolume: DWORD) -> MMRESULT; +} +extern "C" { + pub fn waveOutGetErrorTextA(mmrError: MMRESULT, pszText: LPSTR, cchText: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveOutGetErrorTextW(mmrError: MMRESULT, pszText: LPWSTR, cchText: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveOutOpen( + phwo: LPHWAVEOUT, + uDeviceID: UINT, + pwfx: LPCWAVEFORMATEX, + dwCallback: DWORD_PTR, + dwInstance: DWORD_PTR, + fdwOpen: DWORD, + ) -> MMRESULT; +} +extern "C" { + pub fn waveOutClose(hwo: HWAVEOUT) -> MMRESULT; +} +extern "C" { + pub fn waveOutPrepareHeader(hwo: HWAVEOUT, pwh: LPWAVEHDR, cbwh: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveOutUnprepareHeader(hwo: HWAVEOUT, pwh: LPWAVEHDR, cbwh: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveOutWrite(hwo: HWAVEOUT, pwh: LPWAVEHDR, cbwh: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveOutPause(hwo: HWAVEOUT) -> MMRESULT; +} +extern "C" { + pub fn waveOutRestart(hwo: HWAVEOUT) -> MMRESULT; +} +extern "C" { + pub fn waveOutReset(hwo: HWAVEOUT) -> MMRESULT; +} +extern "C" { + pub fn waveOutBreakLoop(hwo: HWAVEOUT) -> MMRESULT; +} +extern "C" { + pub fn waveOutGetPosition(hwo: HWAVEOUT, pmmt: LPMMTIME, cbmmt: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveOutGetPitch(hwo: HWAVEOUT, pdwPitch: LPDWORD) -> MMRESULT; +} +extern "C" { + pub fn waveOutSetPitch(hwo: HWAVEOUT, dwPitch: DWORD) -> MMRESULT; +} +extern "C" { + pub fn waveOutGetPlaybackRate(hwo: HWAVEOUT, pdwRate: LPDWORD) -> MMRESULT; +} +extern "C" { + pub fn waveOutSetPlaybackRate(hwo: HWAVEOUT, dwRate: DWORD) -> MMRESULT; +} +extern "C" { + pub fn waveOutGetID(hwo: HWAVEOUT, puDeviceID: LPUINT) -> MMRESULT; +} +extern "C" { + pub fn waveOutMessage(hwo: HWAVEOUT, uMsg: UINT, dw1: DWORD_PTR, dw2: DWORD_PTR) -> MMRESULT; +} +extern "C" { + pub fn waveInGetNumDevs() -> UINT; +} +extern "C" { + pub fn waveInGetDevCapsA(uDeviceID: UINT_PTR, pwic: LPWAVEINCAPSA, cbwic: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveInGetDevCapsW(uDeviceID: UINT_PTR, pwic: LPWAVEINCAPSW, cbwic: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveInGetErrorTextA(mmrError: MMRESULT, pszText: LPSTR, cchText: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveInGetErrorTextW(mmrError: MMRESULT, pszText: LPWSTR, cchText: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveInOpen( + phwi: LPHWAVEIN, + uDeviceID: UINT, + pwfx: LPCWAVEFORMATEX, + dwCallback: DWORD_PTR, + dwInstance: DWORD_PTR, + fdwOpen: DWORD, + ) -> MMRESULT; +} +extern "C" { + pub fn waveInClose(hwi: HWAVEIN) -> MMRESULT; +} +extern "C" { + pub fn waveInPrepareHeader(hwi: HWAVEIN, pwh: LPWAVEHDR, cbwh: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveInUnprepareHeader(hwi: HWAVEIN, pwh: LPWAVEHDR, cbwh: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveInAddBuffer(hwi: HWAVEIN, pwh: LPWAVEHDR, cbwh: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveInStart(hwi: HWAVEIN) -> MMRESULT; +} +extern "C" { + pub fn waveInStop(hwi: HWAVEIN) -> MMRESULT; +} +extern "C" { + pub fn waveInReset(hwi: HWAVEIN) -> MMRESULT; +} +extern "C" { + pub fn waveInGetPosition(hwi: HWAVEIN, pmmt: LPMMTIME, cbmmt: UINT) -> MMRESULT; +} +extern "C" { + pub fn waveInGetID(hwi: HWAVEIN, puDeviceID: LPUINT) -> MMRESULT; +} +extern "C" { + pub fn waveInMessage(hwi: HWAVEIN, uMsg: UINT, dw1: DWORD_PTR, dw2: DWORD_PTR) -> MMRESULT; +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct HMIDI__ { + pub unused: ::std::os::raw::c_int, +} +pub type HMIDI = *mut HMIDI__; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct HMIDIIN__ { + pub unused: ::std::os::raw::c_int, +} +pub type HMIDIIN = *mut HMIDIIN__; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct HMIDIOUT__ { + pub unused: ::std::os::raw::c_int, +} +pub type HMIDIOUT = *mut HMIDIOUT__; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct HMIDISTRM__ { + pub unused: ::std::os::raw::c_int, +} +pub type HMIDISTRM = *mut HMIDISTRM__; +pub type LPHMIDI = *mut HMIDI; +pub type LPHMIDIIN = *mut HMIDIIN; +pub type LPHMIDIOUT = *mut HMIDIOUT; +pub type LPHMIDISTRM = *mut HMIDISTRM; +pub type LPMIDICALLBACK = ::std::option::Option< + unsafe extern "C" fn( + arg1: HDRVR, + arg2: UINT, + arg3: DWORD_PTR, + arg4: DWORD_PTR, + arg5: DWORD_PTR, + ), +>; +pub type PATCHARRAY = [WORD; 128usize]; +pub type LPPATCHARRAY = *mut WORD; +pub type KEYARRAY = [WORD; 128usize]; +pub type LPKEYARRAY = *mut WORD; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIDIOUTCAPSA { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [CHAR; 32usize], + pub wTechnology: WORD, + pub wVoices: WORD, + pub wNotes: WORD, + pub wChannelMask: WORD, + pub dwSupport: DWORD, +} +pub type MIDIOUTCAPSA = tagMIDIOUTCAPSA; +pub type PMIDIOUTCAPSA = *mut tagMIDIOUTCAPSA; +pub type NPMIDIOUTCAPSA = *mut tagMIDIOUTCAPSA; +pub type LPMIDIOUTCAPSA = *mut tagMIDIOUTCAPSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIDIOUTCAPSW { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [WCHAR; 32usize], + pub wTechnology: WORD, + pub wVoices: WORD, + pub wNotes: WORD, + pub wChannelMask: WORD, + pub dwSupport: DWORD, +} +pub type MIDIOUTCAPSW = tagMIDIOUTCAPSW; +pub type PMIDIOUTCAPSW = *mut tagMIDIOUTCAPSW; +pub type NPMIDIOUTCAPSW = *mut tagMIDIOUTCAPSW; +pub type LPMIDIOUTCAPSW = *mut tagMIDIOUTCAPSW; +pub type MIDIOUTCAPS = MIDIOUTCAPSA; +pub type PMIDIOUTCAPS = PMIDIOUTCAPSA; +pub type NPMIDIOUTCAPS = NPMIDIOUTCAPSA; +pub type LPMIDIOUTCAPS = LPMIDIOUTCAPSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIDIOUTCAPS2A { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [CHAR; 32usize], + pub wTechnology: WORD, + pub wVoices: WORD, + pub wNotes: WORD, + pub wChannelMask: WORD, + pub dwSupport: DWORD, + pub ManufacturerGuid: GUID, + pub ProductGuid: GUID, + pub NameGuid: GUID, +} +pub type MIDIOUTCAPS2A = tagMIDIOUTCAPS2A; +pub type PMIDIOUTCAPS2A = *mut tagMIDIOUTCAPS2A; +pub type NPMIDIOUTCAPS2A = *mut tagMIDIOUTCAPS2A; +pub type LPMIDIOUTCAPS2A = *mut tagMIDIOUTCAPS2A; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIDIOUTCAPS2W { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [WCHAR; 32usize], + pub wTechnology: WORD, + pub wVoices: WORD, + pub wNotes: WORD, + pub wChannelMask: WORD, + pub dwSupport: DWORD, + pub ManufacturerGuid: GUID, + pub ProductGuid: GUID, + pub NameGuid: GUID, +} +pub type MIDIOUTCAPS2W = tagMIDIOUTCAPS2W; +pub type PMIDIOUTCAPS2W = *mut tagMIDIOUTCAPS2W; +pub type NPMIDIOUTCAPS2W = *mut tagMIDIOUTCAPS2W; +pub type LPMIDIOUTCAPS2W = *mut tagMIDIOUTCAPS2W; +pub type MIDIOUTCAPS2 = MIDIOUTCAPS2A; +pub type PMIDIOUTCAPS2 = PMIDIOUTCAPS2A; +pub type NPMIDIOUTCAPS2 = NPMIDIOUTCAPS2A; +pub type LPMIDIOUTCAPS2 = LPMIDIOUTCAPS2A; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIDIINCAPSA { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [CHAR; 32usize], + pub dwSupport: DWORD, +} +pub type MIDIINCAPSA = tagMIDIINCAPSA; +pub type PMIDIINCAPSA = *mut tagMIDIINCAPSA; +pub type NPMIDIINCAPSA = *mut tagMIDIINCAPSA; +pub type LPMIDIINCAPSA = *mut tagMIDIINCAPSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIDIINCAPSW { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [WCHAR; 32usize], + pub dwSupport: DWORD, +} +pub type MIDIINCAPSW = tagMIDIINCAPSW; +pub type PMIDIINCAPSW = *mut tagMIDIINCAPSW; +pub type NPMIDIINCAPSW = *mut tagMIDIINCAPSW; +pub type LPMIDIINCAPSW = *mut tagMIDIINCAPSW; +pub type MIDIINCAPS = MIDIINCAPSA; +pub type PMIDIINCAPS = PMIDIINCAPSA; +pub type NPMIDIINCAPS = NPMIDIINCAPSA; +pub type LPMIDIINCAPS = LPMIDIINCAPSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIDIINCAPS2A { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [CHAR; 32usize], + pub dwSupport: DWORD, + pub ManufacturerGuid: GUID, + pub ProductGuid: GUID, + pub NameGuid: GUID, +} +pub type MIDIINCAPS2A = tagMIDIINCAPS2A; +pub type PMIDIINCAPS2A = *mut tagMIDIINCAPS2A; +pub type NPMIDIINCAPS2A = *mut tagMIDIINCAPS2A; +pub type LPMIDIINCAPS2A = *mut tagMIDIINCAPS2A; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIDIINCAPS2W { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [WCHAR; 32usize], + pub dwSupport: DWORD, + pub ManufacturerGuid: GUID, + pub ProductGuid: GUID, + pub NameGuid: GUID, +} +pub type MIDIINCAPS2W = tagMIDIINCAPS2W; +pub type PMIDIINCAPS2W = *mut tagMIDIINCAPS2W; +pub type NPMIDIINCAPS2W = *mut tagMIDIINCAPS2W; +pub type LPMIDIINCAPS2W = *mut tagMIDIINCAPS2W; +pub type MIDIINCAPS2 = MIDIINCAPS2A; +pub type PMIDIINCAPS2 = PMIDIINCAPS2A; +pub type NPMIDIINCAPS2 = NPMIDIINCAPS2A; +pub type LPMIDIINCAPS2 = LPMIDIINCAPS2A; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct midihdr_tag { + pub lpData: LPSTR, + pub dwBufferLength: DWORD, + pub dwBytesRecorded: DWORD, + pub dwUser: DWORD_PTR, + pub dwFlags: DWORD, + pub lpNext: *mut midihdr_tag, + pub reserved: DWORD_PTR, + pub dwOffset: DWORD, + pub dwReserved: [DWORD_PTR; 8usize], +} +pub type MIDIHDR = midihdr_tag; +pub type PMIDIHDR = *mut midihdr_tag; +pub type NPMIDIHDR = *mut midihdr_tag; +pub type LPMIDIHDR = *mut midihdr_tag; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct midievent_tag { + pub dwDeltaTime: DWORD, + pub dwStreamID: DWORD, + pub dwEvent: DWORD, + pub dwParms: [DWORD; 1usize], +} +pub type MIDIEVENT = midievent_tag; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct midistrmbuffver_tag { + pub dwVersion: DWORD, + pub dwMid: DWORD, + pub dwOEMVersion: DWORD, +} +pub type MIDISTRMBUFFVER = midistrmbuffver_tag; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct midiproptimediv_tag { + pub cbStruct: DWORD, + pub dwTimeDiv: DWORD, +} +pub type MIDIPROPTIMEDIV = midiproptimediv_tag; +pub type LPMIDIPROPTIMEDIV = *mut midiproptimediv_tag; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct midiproptempo_tag { + pub cbStruct: DWORD, + pub dwTempo: DWORD, +} +pub type MIDIPROPTEMPO = midiproptempo_tag; +pub type LPMIDIPROPTEMPO = *mut midiproptempo_tag; +extern "C" { + pub fn midiOutGetNumDevs() -> UINT; +} +extern "C" { + pub fn midiStreamOpen( + phms: LPHMIDISTRM, + puDeviceID: LPUINT, + cMidi: DWORD, + dwCallback: DWORD_PTR, + dwInstance: DWORD_PTR, + fdwOpen: DWORD, + ) -> MMRESULT; +} +extern "C" { + pub fn midiStreamClose(hms: HMIDISTRM) -> MMRESULT; +} +extern "C" { + pub fn midiStreamProperty(hms: HMIDISTRM, lppropdata: LPBYTE, dwProperty: DWORD) -> MMRESULT; +} +extern "C" { + pub fn midiStreamPosition(hms: HMIDISTRM, lpmmt: LPMMTIME, cbmmt: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiStreamOut(hms: HMIDISTRM, pmh: LPMIDIHDR, cbmh: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiStreamPause(hms: HMIDISTRM) -> MMRESULT; +} +extern "C" { + pub fn midiStreamRestart(hms: HMIDISTRM) -> MMRESULT; +} +extern "C" { + pub fn midiStreamStop(hms: HMIDISTRM) -> MMRESULT; +} +extern "C" { + pub fn midiConnect(hmi: HMIDI, hmo: HMIDIOUT, pReserved: LPVOID) -> MMRESULT; +} +extern "C" { + pub fn midiDisconnect(hmi: HMIDI, hmo: HMIDIOUT, pReserved: LPVOID) -> MMRESULT; +} +extern "C" { + pub fn midiOutGetDevCapsA(uDeviceID: UINT_PTR, pmoc: LPMIDIOUTCAPSA, cbmoc: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiOutGetDevCapsW(uDeviceID: UINT_PTR, pmoc: LPMIDIOUTCAPSW, cbmoc: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiOutGetVolume(hmo: HMIDIOUT, pdwVolume: LPDWORD) -> MMRESULT; +} +extern "C" { + pub fn midiOutSetVolume(hmo: HMIDIOUT, dwVolume: DWORD) -> MMRESULT; +} +extern "C" { + pub fn midiOutGetErrorTextA(mmrError: MMRESULT, pszText: LPSTR, cchText: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiOutGetErrorTextW(mmrError: MMRESULT, pszText: LPWSTR, cchText: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiOutOpen( + phmo: LPHMIDIOUT, + uDeviceID: UINT, + dwCallback: DWORD_PTR, + dwInstance: DWORD_PTR, + fdwOpen: DWORD, + ) -> MMRESULT; +} +extern "C" { + pub fn midiOutClose(hmo: HMIDIOUT) -> MMRESULT; +} +extern "C" { + pub fn midiOutPrepareHeader(hmo: HMIDIOUT, pmh: LPMIDIHDR, cbmh: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiOutUnprepareHeader(hmo: HMIDIOUT, pmh: LPMIDIHDR, cbmh: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiOutShortMsg(hmo: HMIDIOUT, dwMsg: DWORD) -> MMRESULT; +} +extern "C" { + pub fn midiOutLongMsg(hmo: HMIDIOUT, pmh: LPMIDIHDR, cbmh: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiOutReset(hmo: HMIDIOUT) -> MMRESULT; +} +extern "C" { + pub fn midiOutCachePatches(hmo: HMIDIOUT, uBank: UINT, pwpa: LPWORD, fuCache: UINT) + -> MMRESULT; +} +extern "C" { + pub fn midiOutCacheDrumPatches( + hmo: HMIDIOUT, + uPatch: UINT, + pwkya: LPWORD, + fuCache: UINT, + ) -> MMRESULT; +} +extern "C" { + pub fn midiOutGetID(hmo: HMIDIOUT, puDeviceID: LPUINT) -> MMRESULT; +} +extern "C" { + pub fn midiOutMessage(hmo: HMIDIOUT, uMsg: UINT, dw1: DWORD_PTR, dw2: DWORD_PTR) -> MMRESULT; +} +extern "C" { + pub fn midiInGetNumDevs() -> UINT; +} +extern "C" { + pub fn midiInGetDevCapsA(uDeviceID: UINT_PTR, pmic: LPMIDIINCAPSA, cbmic: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiInGetDevCapsW(uDeviceID: UINT_PTR, pmic: LPMIDIINCAPSW, cbmic: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiInGetErrorTextA(mmrError: MMRESULT, pszText: LPSTR, cchText: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiInGetErrorTextW(mmrError: MMRESULT, pszText: LPWSTR, cchText: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiInOpen( + phmi: LPHMIDIIN, + uDeviceID: UINT, + dwCallback: DWORD_PTR, + dwInstance: DWORD_PTR, + fdwOpen: DWORD, + ) -> MMRESULT; +} +extern "C" { + pub fn midiInClose(hmi: HMIDIIN) -> MMRESULT; +} +extern "C" { + pub fn midiInPrepareHeader(hmi: HMIDIIN, pmh: LPMIDIHDR, cbmh: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiInUnprepareHeader(hmi: HMIDIIN, pmh: LPMIDIHDR, cbmh: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiInAddBuffer(hmi: HMIDIIN, pmh: LPMIDIHDR, cbmh: UINT) -> MMRESULT; +} +extern "C" { + pub fn midiInStart(hmi: HMIDIIN) -> MMRESULT; +} +extern "C" { + pub fn midiInStop(hmi: HMIDIIN) -> MMRESULT; +} +extern "C" { + pub fn midiInReset(hmi: HMIDIIN) -> MMRESULT; +} +extern "C" { + pub fn midiInGetID(hmi: HMIDIIN, puDeviceID: LPUINT) -> MMRESULT; +} +extern "C" { + pub fn midiInMessage(hmi: HMIDIIN, uMsg: UINT, dw1: DWORD_PTR, dw2: DWORD_PTR) -> MMRESULT; +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagAUXCAPSA { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [CHAR; 32usize], + pub wTechnology: WORD, + pub wReserved1: WORD, + pub dwSupport: DWORD, +} +pub type AUXCAPSA = tagAUXCAPSA; +pub type PAUXCAPSA = *mut tagAUXCAPSA; +pub type NPAUXCAPSA = *mut tagAUXCAPSA; +pub type LPAUXCAPSA = *mut tagAUXCAPSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagAUXCAPSW { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [WCHAR; 32usize], + pub wTechnology: WORD, + pub wReserved1: WORD, + pub dwSupport: DWORD, +} +pub type AUXCAPSW = tagAUXCAPSW; +pub type PAUXCAPSW = *mut tagAUXCAPSW; +pub type NPAUXCAPSW = *mut tagAUXCAPSW; +pub type LPAUXCAPSW = *mut tagAUXCAPSW; +pub type AUXCAPS = AUXCAPSA; +pub type PAUXCAPS = PAUXCAPSA; +pub type NPAUXCAPS = NPAUXCAPSA; +pub type LPAUXCAPS = LPAUXCAPSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagAUXCAPS2A { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [CHAR; 32usize], + pub wTechnology: WORD, + pub wReserved1: WORD, + pub dwSupport: DWORD, + pub ManufacturerGuid: GUID, + pub ProductGuid: GUID, + pub NameGuid: GUID, +} +pub type AUXCAPS2A = tagAUXCAPS2A; +pub type PAUXCAPS2A = *mut tagAUXCAPS2A; +pub type NPAUXCAPS2A = *mut tagAUXCAPS2A; +pub type LPAUXCAPS2A = *mut tagAUXCAPS2A; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagAUXCAPS2W { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [WCHAR; 32usize], + pub wTechnology: WORD, + pub wReserved1: WORD, + pub dwSupport: DWORD, + pub ManufacturerGuid: GUID, + pub ProductGuid: GUID, + pub NameGuid: GUID, +} +pub type AUXCAPS2W = tagAUXCAPS2W; +pub type PAUXCAPS2W = *mut tagAUXCAPS2W; +pub type NPAUXCAPS2W = *mut tagAUXCAPS2W; +pub type LPAUXCAPS2W = *mut tagAUXCAPS2W; +pub type AUXCAPS2 = AUXCAPS2A; +pub type PAUXCAPS2 = PAUXCAPS2A; +pub type NPAUXCAPS2 = NPAUXCAPS2A; +pub type LPAUXCAPS2 = LPAUXCAPS2A; +extern "C" { + pub fn auxGetNumDevs() -> UINT; +} +extern "C" { + pub fn auxGetDevCapsA(uDeviceID: UINT_PTR, pac: LPAUXCAPSA, cbac: UINT) -> MMRESULT; +} +extern "C" { + pub fn auxGetDevCapsW(uDeviceID: UINT_PTR, pac: LPAUXCAPSW, cbac: UINT) -> MMRESULT; +} +extern "C" { + pub fn auxSetVolume(uDeviceID: UINT, dwVolume: DWORD) -> MMRESULT; +} +extern "C" { + pub fn auxGetVolume(uDeviceID: UINT, pdwVolume: LPDWORD) -> MMRESULT; +} +extern "C" { + pub fn auxOutMessage(uDeviceID: UINT, uMsg: UINT, dw1: DWORD_PTR, dw2: DWORD_PTR) -> MMRESULT; +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct HMIXEROBJ__ { + pub unused: ::std::os::raw::c_int, +} +pub type HMIXEROBJ = *mut HMIXEROBJ__; +pub type LPHMIXEROBJ = *mut HMIXEROBJ; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct HMIXER__ { + pub unused: ::std::os::raw::c_int, +} +pub type HMIXER = *mut HMIXER__; +pub type LPHMIXER = *mut HMIXER; +extern "C" { + pub fn mixerGetNumDevs() -> UINT; +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIXERCAPSA { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [CHAR; 32usize], + pub fdwSupport: DWORD, + pub cDestinations: DWORD, +} +pub type MIXERCAPSA = tagMIXERCAPSA; +pub type PMIXERCAPSA = *mut tagMIXERCAPSA; +pub type LPMIXERCAPSA = *mut tagMIXERCAPSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIXERCAPSW { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [WCHAR; 32usize], + pub fdwSupport: DWORD, + pub cDestinations: DWORD, +} +pub type MIXERCAPSW = tagMIXERCAPSW; +pub type PMIXERCAPSW = *mut tagMIXERCAPSW; +pub type LPMIXERCAPSW = *mut tagMIXERCAPSW; +pub type MIXERCAPS = MIXERCAPSA; +pub type PMIXERCAPS = PMIXERCAPSA; +pub type LPMIXERCAPS = LPMIXERCAPSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIXERCAPS2A { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [CHAR; 32usize], + pub fdwSupport: DWORD, + pub cDestinations: DWORD, + pub ManufacturerGuid: GUID, + pub ProductGuid: GUID, + pub NameGuid: GUID, +} +pub type MIXERCAPS2A = tagMIXERCAPS2A; +pub type PMIXERCAPS2A = *mut tagMIXERCAPS2A; +pub type LPMIXERCAPS2A = *mut tagMIXERCAPS2A; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIXERCAPS2W { + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [WCHAR; 32usize], + pub fdwSupport: DWORD, + pub cDestinations: DWORD, + pub ManufacturerGuid: GUID, + pub ProductGuid: GUID, + pub NameGuid: GUID, +} +pub type MIXERCAPS2W = tagMIXERCAPS2W; +pub type PMIXERCAPS2W = *mut tagMIXERCAPS2W; +pub type LPMIXERCAPS2W = *mut tagMIXERCAPS2W; +pub type MIXERCAPS2 = MIXERCAPS2A; +pub type PMIXERCAPS2 = PMIXERCAPS2A; +pub type LPMIXERCAPS2 = LPMIXERCAPS2A; +extern "C" { + pub fn mixerGetDevCapsA(uMxId: UINT_PTR, pmxcaps: LPMIXERCAPSA, cbmxcaps: UINT) -> MMRESULT; +} +extern "C" { + pub fn mixerGetDevCapsW(uMxId: UINT_PTR, pmxcaps: LPMIXERCAPSW, cbmxcaps: UINT) -> MMRESULT; +} +extern "C" { + pub fn mixerOpen( + phmx: LPHMIXER, + uMxId: UINT, + dwCallback: DWORD_PTR, + dwInstance: DWORD_PTR, + fdwOpen: DWORD, + ) -> MMRESULT; +} +extern "C" { + pub fn mixerClose(hmx: HMIXER) -> MMRESULT; +} +extern "C" { + pub fn mixerMessage(hmx: HMIXER, uMsg: UINT, dwParam1: DWORD_PTR, dwParam2: DWORD_PTR) + -> DWORD; +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIXERLINEA { + pub cbStruct: DWORD, + pub dwDestination: DWORD, + pub dwSource: DWORD, + pub dwLineID: DWORD, + pub fdwLine: DWORD, + pub dwUser: DWORD_PTR, + pub dwComponentType: DWORD, + pub cChannels: DWORD, + pub cConnections: DWORD, + pub cControls: DWORD, + pub szShortName: [CHAR; 16usize], + pub szName: [CHAR; 64usize], + pub Target: tagMIXERLINEA__bindgen_ty_1, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIXERLINEA__bindgen_ty_1 { + pub dwType: DWORD, + pub dwDeviceID: DWORD, + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [CHAR; 32usize], +} +pub type MIXERLINEA = tagMIXERLINEA; +pub type PMIXERLINEA = *mut tagMIXERLINEA; +pub type LPMIXERLINEA = *mut tagMIXERLINEA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIXERLINEW { + pub cbStruct: DWORD, + pub dwDestination: DWORD, + pub dwSource: DWORD, + pub dwLineID: DWORD, + pub fdwLine: DWORD, + pub dwUser: DWORD_PTR, + pub dwComponentType: DWORD, + pub cChannels: DWORD, + pub cConnections: DWORD, + pub cControls: DWORD, + pub szShortName: [WCHAR; 16usize], + pub szName: [WCHAR; 64usize], + pub Target: tagMIXERLINEW__bindgen_ty_1, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIXERLINEW__bindgen_ty_1 { + pub dwType: DWORD, + pub dwDeviceID: DWORD, + pub wMid: WORD, + pub wPid: WORD, + pub vDriverVersion: MMVERSION, + pub szPname: [WCHAR; 32usize], +} +pub type MIXERLINEW = tagMIXERLINEW; +pub type PMIXERLINEW = *mut tagMIXERLINEW; +pub type LPMIXERLINEW = *mut tagMIXERLINEW; +pub type MIXERLINE = MIXERLINEA; +pub type PMIXERLINE = PMIXERLINEA; +pub type LPMIXERLINE = LPMIXERLINEA; +extern "C" { + pub fn mixerGetLineInfoA(hmxobj: HMIXEROBJ, pmxl: LPMIXERLINEA, fdwInfo: DWORD) -> MMRESULT; +} +extern "C" { + pub fn mixerGetLineInfoW(hmxobj: HMIXEROBJ, pmxl: LPMIXERLINEW, fdwInfo: DWORD) -> MMRESULT; +} +extern "C" { + pub fn mixerGetID(hmxobj: HMIXEROBJ, puMxId: *mut UINT, fdwId: DWORD) -> MMRESULT; +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct tagMIXERCONTROLA { + pub cbStruct: DWORD, + pub dwControlID: DWORD, + pub dwControlType: DWORD, + pub fdwControl: DWORD, + pub cMultipleItems: DWORD, + pub szShortName: [CHAR; 16usize], + pub szName: [CHAR; 64usize], + pub Bounds: tagMIXERCONTROLA__bindgen_ty_1, + pub Metrics: tagMIXERCONTROLA__bindgen_ty_2, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union tagMIXERCONTROLA__bindgen_ty_1 { + pub __bindgen_anon_1: tagMIXERCONTROLA__bindgen_ty_1__bindgen_ty_1, + pub __bindgen_anon_2: tagMIXERCONTROLA__bindgen_ty_1__bindgen_ty_2, + pub dwReserved: [DWORD; 6usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIXERCONTROLA__bindgen_ty_1__bindgen_ty_1 { + pub lMinimum: LONG, + pub lMaximum: LONG, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIXERCONTROLA__bindgen_ty_1__bindgen_ty_2 { + pub dwMinimum: DWORD, + pub dwMaximum: DWORD, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union tagMIXERCONTROLA__bindgen_ty_2 { + pub cSteps: DWORD, + pub cbCustomData: DWORD, + pub dwReserved: [DWORD; 6usize], +} +pub type MIXERCONTROLA = tagMIXERCONTROLA; +pub type PMIXERCONTROLA = *mut tagMIXERCONTROLA; +pub type LPMIXERCONTROLA = *mut tagMIXERCONTROLA; +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct tagMIXERCONTROLW { + pub cbStruct: DWORD, + pub dwControlID: DWORD, + pub dwControlType: DWORD, + pub fdwControl: DWORD, + pub cMultipleItems: DWORD, + pub szShortName: [WCHAR; 16usize], + pub szName: [WCHAR; 64usize], + pub Bounds: tagMIXERCONTROLW__bindgen_ty_1, + pub Metrics: tagMIXERCONTROLW__bindgen_ty_2, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union tagMIXERCONTROLW__bindgen_ty_1 { + pub __bindgen_anon_1: tagMIXERCONTROLW__bindgen_ty_1__bindgen_ty_1, + pub __bindgen_anon_2: tagMIXERCONTROLW__bindgen_ty_1__bindgen_ty_2, + pub dwReserved: [DWORD; 6usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIXERCONTROLW__bindgen_ty_1__bindgen_ty_1 { + pub lMinimum: LONG, + pub lMaximum: LONG, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIXERCONTROLW__bindgen_ty_1__bindgen_ty_2 { + pub dwMinimum: DWORD, + pub dwMaximum: DWORD, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union tagMIXERCONTROLW__bindgen_ty_2 { + pub cSteps: DWORD, + pub cbCustomData: DWORD, + pub dwReserved: [DWORD; 6usize], +} +pub type MIXERCONTROLW = tagMIXERCONTROLW; +pub type PMIXERCONTROLW = *mut tagMIXERCONTROLW; +pub type LPMIXERCONTROLW = *mut tagMIXERCONTROLW; +pub type MIXERCONTROL = MIXERCONTROLA; +pub type PMIXERCONTROL = PMIXERCONTROLA; +pub type LPMIXERCONTROL = LPMIXERCONTROLA; +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct tagMIXERLINECONTROLSA { + pub cbStruct: DWORD, + pub dwLineID: DWORD, + pub __bindgen_anon_1: tagMIXERLINECONTROLSA__bindgen_ty_1, + pub cControls: DWORD, + pub cbmxctrl: DWORD, + pub pamxctrl: LPMIXERCONTROLA, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union tagMIXERLINECONTROLSA__bindgen_ty_1 { + pub dwControlID: DWORD, + pub dwControlType: DWORD, +} +pub type MIXERLINECONTROLSA = tagMIXERLINECONTROLSA; +pub type PMIXERLINECONTROLSA = *mut tagMIXERLINECONTROLSA; +pub type LPMIXERLINECONTROLSA = *mut tagMIXERLINECONTROLSA; +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct tagMIXERLINECONTROLSW { + pub cbStruct: DWORD, + pub dwLineID: DWORD, + pub __bindgen_anon_1: tagMIXERLINECONTROLSW__bindgen_ty_1, + pub cControls: DWORD, + pub cbmxctrl: DWORD, + pub pamxctrl: LPMIXERCONTROLW, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union tagMIXERLINECONTROLSW__bindgen_ty_1 { + pub dwControlID: DWORD, + pub dwControlType: DWORD, +} +pub type MIXERLINECONTROLSW = tagMIXERLINECONTROLSW; +pub type PMIXERLINECONTROLSW = *mut tagMIXERLINECONTROLSW; +pub type LPMIXERLINECONTROLSW = *mut tagMIXERLINECONTROLSW; +pub type MIXERLINECONTROLS = MIXERLINECONTROLSA; +pub type PMIXERLINECONTROLS = PMIXERLINECONTROLSA; +pub type LPMIXERLINECONTROLS = LPMIXERLINECONTROLSA; +extern "C" { + pub fn mixerGetLineControlsA( + hmxobj: HMIXEROBJ, + pmxlc: LPMIXERLINECONTROLSA, + fdwControls: DWORD, + ) -> MMRESULT; +} +extern "C" { + pub fn mixerGetLineControlsW( + hmxobj: HMIXEROBJ, + pmxlc: LPMIXERLINECONTROLSW, + fdwControls: DWORD, + ) -> MMRESULT; +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct tMIXERCONTROLDETAILS { + pub cbStruct: DWORD, + pub dwControlID: DWORD, + pub cChannels: DWORD, + pub __bindgen_anon_1: tMIXERCONTROLDETAILS__bindgen_ty_1, + pub cbDetails: DWORD, + pub paDetails: LPVOID, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union tMIXERCONTROLDETAILS__bindgen_ty_1 { + pub hwndOwner: HWND, + pub cMultipleItems: DWORD, +} +pub type MIXERCONTROLDETAILS = tMIXERCONTROLDETAILS; +pub type PMIXERCONTROLDETAILS = *mut tMIXERCONTROLDETAILS; +pub type LPMIXERCONTROLDETAILS = *mut tMIXERCONTROLDETAILS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIXERCONTROLDETAILS_LISTTEXTA { + pub dwParam1: DWORD, + pub dwParam2: DWORD, + pub szName: [CHAR; 64usize], +} +pub type MIXERCONTROLDETAILS_LISTTEXTA = tagMIXERCONTROLDETAILS_LISTTEXTA; +pub type PMIXERCONTROLDETAILS_LISTTEXTA = *mut tagMIXERCONTROLDETAILS_LISTTEXTA; +pub type LPMIXERCONTROLDETAILS_LISTTEXTA = *mut tagMIXERCONTROLDETAILS_LISTTEXTA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagMIXERCONTROLDETAILS_LISTTEXTW { + pub dwParam1: DWORD, + pub dwParam2: DWORD, + pub szName: [WCHAR; 64usize], +} +pub type MIXERCONTROLDETAILS_LISTTEXTW = tagMIXERCONTROLDETAILS_LISTTEXTW; +pub type PMIXERCONTROLDETAILS_LISTTEXTW = *mut tagMIXERCONTROLDETAILS_LISTTEXTW; +pub type LPMIXERCONTROLDETAILS_LISTTEXTW = *mut tagMIXERCONTROLDETAILS_LISTTEXTW; +pub type MIXERCONTROLDETAILS_LISTTEXT = MIXERCONTROLDETAILS_LISTTEXTA; +pub type PMIXERCONTROLDETAILS_LISTTEXT = PMIXERCONTROLDETAILS_LISTTEXTA; +pub type LPMIXERCONTROLDETAILS_LISTTEXT = LPMIXERCONTROLDETAILS_LISTTEXTA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tMIXERCONTROLDETAILS_BOOLEAN { + pub fValue: LONG, +} +pub type MIXERCONTROLDETAILS_BOOLEAN = tMIXERCONTROLDETAILS_BOOLEAN; +pub type PMIXERCONTROLDETAILS_BOOLEAN = *mut tMIXERCONTROLDETAILS_BOOLEAN; +pub type LPMIXERCONTROLDETAILS_BOOLEAN = *mut tMIXERCONTROLDETAILS_BOOLEAN; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tMIXERCONTROLDETAILS_SIGNED { + pub lValue: LONG, +} +pub type MIXERCONTROLDETAILS_SIGNED = tMIXERCONTROLDETAILS_SIGNED; +pub type PMIXERCONTROLDETAILS_SIGNED = *mut tMIXERCONTROLDETAILS_SIGNED; +pub type LPMIXERCONTROLDETAILS_SIGNED = *mut tMIXERCONTROLDETAILS_SIGNED; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tMIXERCONTROLDETAILS_UNSIGNED { + pub dwValue: DWORD, +} +pub type MIXERCONTROLDETAILS_UNSIGNED = tMIXERCONTROLDETAILS_UNSIGNED; +pub type PMIXERCONTROLDETAILS_UNSIGNED = *mut tMIXERCONTROLDETAILS_UNSIGNED; +pub type LPMIXERCONTROLDETAILS_UNSIGNED = *mut tMIXERCONTROLDETAILS_UNSIGNED; +extern "C" { + pub fn mixerGetControlDetailsA( + hmxobj: HMIXEROBJ, + pmxcd: LPMIXERCONTROLDETAILS, + fdwDetails: DWORD, + ) -> MMRESULT; +} +extern "C" { + pub fn mixerGetControlDetailsW( + hmxobj: HMIXEROBJ, + pmxcd: LPMIXERCONTROLDETAILS, + fdwDetails: DWORD, + ) -> MMRESULT; +} +extern "C" { + pub fn mixerSetControlDetails( + hmxobj: HMIXEROBJ, + pmxcd: LPMIXERCONTROLDETAILS, + fdwDetails: DWORD, + ) -> MMRESULT; +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct timecaps_tag { + pub wPeriodMin: UINT, + pub wPeriodMax: UINT, +} +pub type TIMECAPS = timecaps_tag; +pub type PTIMECAPS = *mut timecaps_tag; +pub type NPTIMECAPS = *mut timecaps_tag; +pub type LPTIMECAPS = *mut timecaps_tag; +extern "C" { + pub fn timeGetSystemTime(pmmt: LPMMTIME, cbmmt: UINT) -> MMRESULT; +} +extern "C" { + pub fn timeGetTime() -> DWORD; +} +extern "C" { + pub fn timeGetDevCaps(ptc: LPTIMECAPS, cbtc: UINT) -> MMRESULT; +} +extern "C" { + pub fn timeBeginPeriod(uPeriod: UINT) -> MMRESULT; +} +extern "C" { + pub fn timeEndPeriod(uPeriod: UINT) -> MMRESULT; +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagJOYCAPSA { + pub wMid: WORD, + pub wPid: WORD, + pub szPname: [CHAR; 32usize], + pub wXmin: UINT, + pub wXmax: UINT, + pub wYmin: UINT, + pub wYmax: UINT, + pub wZmin: UINT, + pub wZmax: UINT, + pub wNumButtons: UINT, + pub wPeriodMin: UINT, + pub wPeriodMax: UINT, + pub wRmin: UINT, + pub wRmax: UINT, + pub wUmin: UINT, + pub wUmax: UINT, + pub wVmin: UINT, + pub wVmax: UINT, + pub wCaps: UINT, + pub wMaxAxes: UINT, + pub wNumAxes: UINT, + pub wMaxButtons: UINT, + pub szRegKey: [CHAR; 32usize], + pub szOEMVxD: [CHAR; 260usize], +} +pub type JOYCAPSA = tagJOYCAPSA; +pub type PJOYCAPSA = *mut tagJOYCAPSA; +pub type NPJOYCAPSA = *mut tagJOYCAPSA; +pub type LPJOYCAPSA = *mut tagJOYCAPSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagJOYCAPSW { + pub wMid: WORD, + pub wPid: WORD, + pub szPname: [WCHAR; 32usize], + pub wXmin: UINT, + pub wXmax: UINT, + pub wYmin: UINT, + pub wYmax: UINT, + pub wZmin: UINT, + pub wZmax: UINT, + pub wNumButtons: UINT, + pub wPeriodMin: UINT, + pub wPeriodMax: UINT, + pub wRmin: UINT, + pub wRmax: UINT, + pub wUmin: UINT, + pub wUmax: UINT, + pub wVmin: UINT, + pub wVmax: UINT, + pub wCaps: UINT, + pub wMaxAxes: UINT, + pub wNumAxes: UINT, + pub wMaxButtons: UINT, + pub szRegKey: [WCHAR; 32usize], + pub szOEMVxD: [WCHAR; 260usize], +} +pub type JOYCAPSW = tagJOYCAPSW; +pub type PJOYCAPSW = *mut tagJOYCAPSW; +pub type NPJOYCAPSW = *mut tagJOYCAPSW; +pub type LPJOYCAPSW = *mut tagJOYCAPSW; +pub type JOYCAPS = JOYCAPSA; +pub type PJOYCAPS = PJOYCAPSA; +pub type NPJOYCAPS = NPJOYCAPSA; +pub type LPJOYCAPS = LPJOYCAPSA; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagJOYCAPS2A { + pub wMid: WORD, + pub wPid: WORD, + pub szPname: [CHAR; 32usize], + pub wXmin: UINT, + pub wXmax: UINT, + pub wYmin: UINT, + pub wYmax: UINT, + pub wZmin: UINT, + pub wZmax: UINT, + pub wNumButtons: UINT, + pub wPeriodMin: UINT, + pub wPeriodMax: UINT, + pub wRmin: UINT, + pub wRmax: UINT, + pub wUmin: UINT, + pub wUmax: UINT, + pub wVmin: UINT, + pub wVmax: UINT, + pub wCaps: UINT, + pub wMaxAxes: UINT, + pub wNumAxes: UINT, + pub wMaxButtons: UINT, + pub szRegKey: [CHAR; 32usize], + pub szOEMVxD: [CHAR; 260usize], + pub ManufacturerGuid: GUID, + pub ProductGuid: GUID, + pub NameGuid: GUID, +} +pub type JOYCAPS2A = tagJOYCAPS2A; +pub type PJOYCAPS2A = *mut tagJOYCAPS2A; +pub type NPJOYCAPS2A = *mut tagJOYCAPS2A; +pub type LPJOYCAPS2A = *mut tagJOYCAPS2A; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct tagJOYCAPS2W { + pub wMid: WORD, + pub wPid: WORD, + pub szPname: [WCHAR; 32usize], + pub wXmin: UINT, + pub wXmax: UINT, + pub wYmin: UINT, + pub wYmax: UINT, + pub wZmin: UINT, + pub wZmax: UINT, + pub wNumButtons: UINT, + pub wPeriodMin: UINT, + pub wPeriodMax: UINT, + pub wRmin: UINT, + pub wRmax: UINT, + pub wUmin: UINT, + pub wUmax: UINT, + pub wVmin: UINT, + pub wVmax: UINT, + pub wCaps: UINT, + pub wMaxAxes: UINT, + pub wNumAxes: UINT, + pub wMaxButtons: UINT, + pub szRegKey: [WCHAR; 32usize], + pub szOEMVxD: [WCHAR; 260usize], + pub ManufacturerGuid: GUID, + pub ProductGuid: GUID, + pub NameGuid: GUID, +} +pub type JOYCAPS2W = tagJOYCAPS2W; +pub type PJOYCAPS2W = *mut tagJOYCAPS2W; +pub type NPJOYCAPS2W = *mut tagJOYCAPS2W; +pub type LPJOYCAPS2W = *mut tagJOYCAPS2W; +pub type JOYCAPS2 = JOYCAPS2A; +pub type PJOYCAPS2 = PJOYCAPS2A; +pub type NPJOYCAPS2 = NPJOYCAPS2A; +pub type LPJOYCAPS2 = LPJOYCAPS2A; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct joyinfo_tag { + pub wXpos: UINT, + pub wYpos: UINT, + pub wZpos: UINT, + pub wButtons: UINT, +} +pub type JOYINFO = joyinfo_tag; +pub type PJOYINFO = *mut joyinfo_tag; +pub type NPJOYINFO = *mut joyinfo_tag; +pub type LPJOYINFO = *mut joyinfo_tag; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct joyinfoex_tag { + pub dwSize: DWORD, + pub dwFlags: DWORD, + pub dwXpos: DWORD, + pub dwYpos: DWORD, + pub dwZpos: DWORD, + pub dwRpos: DWORD, + pub dwUpos: DWORD, + pub dwVpos: DWORD, + pub dwButtons: DWORD, + pub dwButtonNumber: DWORD, + pub dwPOV: DWORD, + pub dwReserved1: DWORD, + pub dwReserved2: DWORD, +} +pub type JOYINFOEX = joyinfoex_tag; +pub type PJOYINFOEX = *mut joyinfoex_tag; +pub type NPJOYINFOEX = *mut joyinfoex_tag; +pub type LPJOYINFOEX = *mut joyinfoex_tag; +extern "C" { + pub fn joyGetPosEx(uJoyID: UINT, pji: LPJOYINFOEX) -> MMRESULT; +} +extern "C" { + pub fn joyGetNumDevs() -> UINT; +} +extern "C" { + pub fn joyGetDevCapsA(uJoyID: UINT_PTR, pjc: LPJOYCAPSA, cbjc: UINT) -> MMRESULT; +} +extern "C" { + pub fn joyGetDevCapsW(uJoyID: UINT_PTR, pjc: LPJOYCAPSW, cbjc: UINT) -> MMRESULT; +} +extern "C" { + pub fn joyGetPos(uJoyID: UINT, pji: LPJOYINFO) -> MMRESULT; +} +extern "C" { + pub fn joyGetThreshold(uJoyID: UINT, puThreshold: LPUINT) -> MMRESULT; +} +extern "C" { + pub fn joyReleaseCapture(uJoyID: UINT) -> MMRESULT; +} +extern "C" { + pub fn joySetCapture(hwnd: HWND, uJoyID: UINT, uPeriod: UINT, fChanged: BOOL) -> MMRESULT; +} +extern "C" { + pub fn joySetThreshold(uJoyID: UINT, uThreshold: UINT) -> MMRESULT; +} +extern "C" { + pub fn joyConfigChanged(dwFlags: DWORD) -> MMRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NCB { + pub ncb_command: UCHAR, + pub ncb_retcode: UCHAR, + pub ncb_lsn: UCHAR, + pub ncb_num: UCHAR, + pub ncb_buffer: PUCHAR, + pub ncb_length: WORD, + pub ncb_callname: [UCHAR; 16usize], + pub ncb_name: [UCHAR; 16usize], + pub ncb_rto: UCHAR, + pub ncb_sto: UCHAR, + pub ncb_post: ::std::option::Option, + pub ncb_lana_num: UCHAR, + pub ncb_cmd_cplt: UCHAR, + pub ncb_reserve: [UCHAR; 18usize], + pub ncb_event: HANDLE, +} +pub type NCB = _NCB; +pub type PNCB = *mut _NCB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ADAPTER_STATUS { + pub adapter_address: [UCHAR; 6usize], + pub rev_major: UCHAR, + pub reserved0: UCHAR, + pub adapter_type: UCHAR, + pub rev_minor: UCHAR, + pub duration: WORD, + pub frmr_recv: WORD, + pub frmr_xmit: WORD, + pub iframe_recv_err: WORD, + pub xmit_aborts: WORD, + pub xmit_success: DWORD, + pub recv_success: DWORD, + pub iframe_xmit_err: WORD, + pub recv_buff_unavail: WORD, + pub t1_timeouts: WORD, + pub ti_timeouts: WORD, + pub reserved1: DWORD, + pub free_ncbs: WORD, + pub max_cfg_ncbs: WORD, + pub max_ncbs: WORD, + pub xmit_buf_unavail: WORD, + pub max_dgram_size: WORD, + pub pending_sess: WORD, + pub max_cfg_sess: WORD, + pub max_sess: WORD, + pub max_sess_pkt_size: WORD, + pub name_count: WORD, +} +pub type ADAPTER_STATUS = _ADAPTER_STATUS; +pub type PADAPTER_STATUS = *mut _ADAPTER_STATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NAME_BUFFER { + pub name: [UCHAR; 16usize], + pub name_num: UCHAR, + pub name_flags: UCHAR, +} +pub type NAME_BUFFER = _NAME_BUFFER; +pub type PNAME_BUFFER = *mut _NAME_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SESSION_HEADER { + pub sess_name: UCHAR, + pub num_sess: UCHAR, + pub rcv_dg_outstanding: UCHAR, + pub rcv_any_outstanding: UCHAR, +} +pub type SESSION_HEADER = _SESSION_HEADER; +pub type PSESSION_HEADER = *mut _SESSION_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SESSION_BUFFER { + pub lsn: UCHAR, + pub state: UCHAR, + pub local_name: [UCHAR; 16usize], + pub remote_name: [UCHAR; 16usize], + pub rcvs_outstanding: UCHAR, + pub sends_outstanding: UCHAR, +} +pub type SESSION_BUFFER = _SESSION_BUFFER; +pub type PSESSION_BUFFER = *mut _SESSION_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LANA_ENUM { + pub length: UCHAR, + pub lana: [UCHAR; 255usize], +} +pub type LANA_ENUM = _LANA_ENUM; +pub type PLANA_ENUM = *mut _LANA_ENUM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FIND_NAME_HEADER { + pub node_count: WORD, + pub reserved: UCHAR, + pub unique_group: UCHAR, +} +pub type FIND_NAME_HEADER = _FIND_NAME_HEADER; +pub type PFIND_NAME_HEADER = *mut _FIND_NAME_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FIND_NAME_BUFFER { + pub length: UCHAR, + pub access_control: UCHAR, + pub frame_control: UCHAR, + pub destination_addr: [UCHAR; 6usize], + pub source_addr: [UCHAR; 6usize], + pub routing_info: [UCHAR; 18usize], +} +pub type FIND_NAME_BUFFER = _FIND_NAME_BUFFER; +pub type PFIND_NAME_BUFFER = *mut _FIND_NAME_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACTION_HEADER { + pub transport_id: ULONG, + pub action_code: USHORT, + pub reserved: USHORT, +} +pub type ACTION_HEADER = _ACTION_HEADER; +pub type PACTION_HEADER = *mut _ACTION_HEADER; +extern "C" { + pub fn Netbios(pncb: PNCB) -> UCHAR; +} +pub type I_RPC_HANDLE = *mut ::std::os::raw::c_void; +pub type RPC_STATUS = ::std::os::raw::c_long; +pub type RPC_CSTR = *mut ::std::os::raw::c_uchar; +pub type RPC_WSTR = *mut ::std::os::raw::c_ushort; +pub type RPC_CWSTR = *const ::std::os::raw::c_ushort; +pub type RPC_BINDING_HANDLE = I_RPC_HANDLE; +pub type handle_t = RPC_BINDING_HANDLE; +pub type UUID = GUID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_BINDING_VECTOR { + pub Count: ::std::os::raw::c_ulong, + pub BindingH: [RPC_BINDING_HANDLE; 1usize], +} +pub type RPC_BINDING_VECTOR = _RPC_BINDING_VECTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _UUID_VECTOR { + pub Count: ::std::os::raw::c_ulong, + pub Uuid: [*mut UUID; 1usize], +} +pub type UUID_VECTOR = _UUID_VECTOR; +pub type RPC_IF_HANDLE = *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_IF_ID { + pub Uuid: UUID, + pub VersMajor: ::std::os::raw::c_ushort, + pub VersMinor: ::std::os::raw::c_ushort, +} +pub type RPC_IF_ID = _RPC_IF_ID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_PROTSEQ_VECTORA { + pub Count: ::std::os::raw::c_uint, + pub Protseq: [*mut ::std::os::raw::c_uchar; 1usize], +} +pub type RPC_PROTSEQ_VECTORA = _RPC_PROTSEQ_VECTORA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_PROTSEQ_VECTORW { + pub Count: ::std::os::raw::c_uint, + pub Protseq: [*mut ::std::os::raw::c_ushort; 1usize], +} +pub type RPC_PROTSEQ_VECTORW = _RPC_PROTSEQ_VECTORW; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_POLICY { + pub Length: ::std::os::raw::c_uint, + pub EndpointFlags: ::std::os::raw::c_ulong, + pub NICFlags: ::std::os::raw::c_ulong, +} +pub type RPC_POLICY = _RPC_POLICY; +pub type PRPC_POLICY = *mut _RPC_POLICY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RPC_STATS_VECTOR { + pub Count: ::std::os::raw::c_uint, + pub Stats: [::std::os::raw::c_ulong; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RPC_IF_ID_VECTOR { + pub Count: ::std::os::raw::c_ulong, + pub IfId: [*mut RPC_IF_ID; 1usize], +} +extern "C" { + pub fn RpcBindingCopy( + SourceBinding: RPC_BINDING_HANDLE, + DestinationBinding: *mut RPC_BINDING_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingFree(Binding: *mut RPC_BINDING_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingSetOption( + hBinding: RPC_BINDING_HANDLE, + option: ::std::os::raw::c_ulong, + optionValue: ULONG_PTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingInqOption( + hBinding: RPC_BINDING_HANDLE, + option: ::std::os::raw::c_ulong, + pOptionValue: *mut ULONG_PTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingFromStringBindingA( + StringBinding: RPC_CSTR, + Binding: *mut RPC_BINDING_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingFromStringBindingW( + StringBinding: RPC_WSTR, + Binding: *mut RPC_BINDING_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcSsGetContextBinding( + ContextHandle: *mut ::std::os::raw::c_void, + Binding: *mut RPC_BINDING_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingInqMaxCalls( + Binding: RPC_BINDING_HANDLE, + MaxCalls: *mut ::std::os::raw::c_uint, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingInqObject(Binding: RPC_BINDING_HANDLE, ObjectUuid: *mut UUID) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingReset(Binding: RPC_BINDING_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingSetObject(Binding: RPC_BINDING_HANDLE, ObjectUuid: *mut UUID) -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtInqDefaultProtectLevel( + AuthnSvc: ::std::os::raw::c_ulong, + AuthnLevel: *mut ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingToStringBindingA( + Binding: RPC_BINDING_HANDLE, + StringBinding: *mut RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingToStringBindingW( + Binding: RPC_BINDING_HANDLE, + StringBinding: *mut RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingVectorFree(BindingVector: *mut *mut RPC_BINDING_VECTOR) -> RPC_STATUS; +} +extern "C" { + pub fn RpcStringBindingComposeA( + ObjUuid: RPC_CSTR, + ProtSeq: RPC_CSTR, + NetworkAddr: RPC_CSTR, + Endpoint: RPC_CSTR, + Options: RPC_CSTR, + StringBinding: *mut RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcStringBindingComposeW( + ObjUuid: RPC_WSTR, + ProtSeq: RPC_WSTR, + NetworkAddr: RPC_WSTR, + Endpoint: RPC_WSTR, + Options: RPC_WSTR, + StringBinding: *mut RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcStringBindingParseA( + StringBinding: RPC_CSTR, + ObjUuid: *mut RPC_CSTR, + Protseq: *mut RPC_CSTR, + NetworkAddr: *mut RPC_CSTR, + Endpoint: *mut RPC_CSTR, + NetworkOptions: *mut RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcStringBindingParseW( + StringBinding: RPC_WSTR, + ObjUuid: *mut RPC_WSTR, + Protseq: *mut RPC_WSTR, + NetworkAddr: *mut RPC_WSTR, + Endpoint: *mut RPC_WSTR, + NetworkOptions: *mut RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcStringFreeA(String: *mut RPC_CSTR) -> RPC_STATUS; +} +extern "C" { + pub fn RpcStringFreeW(String: *mut RPC_WSTR) -> RPC_STATUS; +} +extern "C" { + pub fn RpcIfInqId(RpcIfHandle: RPC_IF_HANDLE, RpcIfId: *mut RPC_IF_ID) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNetworkIsProtseqValidA(Protseq: RPC_CSTR) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNetworkIsProtseqValidW(Protseq: RPC_WSTR) -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtInqComTimeout( + Binding: RPC_BINDING_HANDLE, + Timeout: *mut ::std::os::raw::c_uint, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtSetComTimeout( + Binding: RPC_BINDING_HANDLE, + Timeout: ::std::os::raw::c_uint, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtSetCancelTimeout(Timeout: ::std::os::raw::c_long) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNetworkInqProtseqsA(ProtseqVector: *mut *mut RPC_PROTSEQ_VECTORA) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNetworkInqProtseqsW(ProtseqVector: *mut *mut RPC_PROTSEQ_VECTORW) -> RPC_STATUS; +} +extern "C" { + pub fn RpcObjectInqType(ObjUuid: *mut UUID, TypeUuid: *mut UUID) -> RPC_STATUS; +} +extern "C" { + pub fn RpcObjectSetInqFn( + InquiryFn: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut UUID, arg2: *mut UUID, arg3: *mut RPC_STATUS), + >, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcObjectSetType(ObjUuid: *mut UUID, TypeUuid: *mut UUID) -> RPC_STATUS; +} +extern "C" { + pub fn RpcProtseqVectorFreeA(ProtseqVector: *mut *mut RPC_PROTSEQ_VECTORA) -> RPC_STATUS; +} +extern "C" { + pub fn RpcProtseqVectorFreeW(ProtseqVector: *mut *mut RPC_PROTSEQ_VECTORW) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerInqBindings(BindingVector: *mut *mut RPC_BINDING_VECTOR) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerInqBindingsEx( + SecurityDescriptor: *mut ::std::os::raw::c_void, + BindingVector: *mut *mut RPC_BINDING_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerInqIf( + IfSpec: RPC_IF_HANDLE, + MgrTypeUuid: *mut UUID, + MgrEpv: *mut *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerListen( + MinimumCallThreads: ::std::os::raw::c_uint, + MaxCalls: ::std::os::raw::c_uint, + DontWait: ::std::os::raw::c_uint, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerRegisterIf( + IfSpec: RPC_IF_HANDLE, + MgrTypeUuid: *mut UUID, + MgrEpv: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerRegisterIfEx( + IfSpec: RPC_IF_HANDLE, + MgrTypeUuid: *mut UUID, + MgrEpv: *mut ::std::os::raw::c_void, + Flags: ::std::os::raw::c_uint, + MaxCalls: ::std::os::raw::c_uint, + IfCallback: ::std::option::Option< + unsafe extern "C" fn( + arg1: RPC_IF_HANDLE, + arg2: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS, + >, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerRegisterIf2( + IfSpec: RPC_IF_HANDLE, + MgrTypeUuid: *mut UUID, + MgrEpv: *mut ::std::os::raw::c_void, + Flags: ::std::os::raw::c_uint, + MaxCalls: ::std::os::raw::c_uint, + MaxRpcSize: ::std::os::raw::c_uint, + IfCallbackFn: ::std::option::Option< + unsafe extern "C" fn( + arg1: RPC_IF_HANDLE, + arg2: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS, + >, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerRegisterIf3( + IfSpec: RPC_IF_HANDLE, + MgrTypeUuid: *mut UUID, + MgrEpv: *mut ::std::os::raw::c_void, + Flags: ::std::os::raw::c_uint, + MaxCalls: ::std::os::raw::c_uint, + MaxRpcSize: ::std::os::raw::c_uint, + IfCallback: ::std::option::Option< + unsafe extern "C" fn( + arg1: RPC_IF_HANDLE, + arg2: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS, + >, + SecurityDescriptor: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUnregisterIf( + IfSpec: RPC_IF_HANDLE, + MgrTypeUuid: *mut UUID, + WaitForCallsToComplete: ::std::os::raw::c_uint, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUnregisterIfEx( + IfSpec: RPC_IF_HANDLE, + MgrTypeUuid: *mut UUID, + RundownContextHandles: ::std::os::raw::c_int, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseAllProtseqs( + MaxCalls: ::std::os::raw::c_uint, + SecurityDescriptor: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseAllProtseqsEx( + MaxCalls: ::std::os::raw::c_uint, + SecurityDescriptor: *mut ::std::os::raw::c_void, + Policy: PRPC_POLICY, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseAllProtseqsIf( + MaxCalls: ::std::os::raw::c_uint, + IfSpec: RPC_IF_HANDLE, + SecurityDescriptor: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseAllProtseqsIfEx( + MaxCalls: ::std::os::raw::c_uint, + IfSpec: RPC_IF_HANDLE, + SecurityDescriptor: *mut ::std::os::raw::c_void, + Policy: PRPC_POLICY, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseProtseqA( + Protseq: RPC_CSTR, + MaxCalls: ::std::os::raw::c_uint, + SecurityDescriptor: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseProtseqExA( + Protseq: RPC_CSTR, + MaxCalls: ::std::os::raw::c_uint, + SecurityDescriptor: *mut ::std::os::raw::c_void, + Policy: PRPC_POLICY, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseProtseqW( + Protseq: RPC_WSTR, + MaxCalls: ::std::os::raw::c_uint, + SecurityDescriptor: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseProtseqExW( + Protseq: RPC_WSTR, + MaxCalls: ::std::os::raw::c_uint, + SecurityDescriptor: *mut ::std::os::raw::c_void, + Policy: PRPC_POLICY, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseProtseqEpA( + Protseq: RPC_CSTR, + MaxCalls: ::std::os::raw::c_uint, + Endpoint: RPC_CSTR, + SecurityDescriptor: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseProtseqEpExA( + Protseq: RPC_CSTR, + MaxCalls: ::std::os::raw::c_uint, + Endpoint: RPC_CSTR, + SecurityDescriptor: *mut ::std::os::raw::c_void, + Policy: PRPC_POLICY, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseProtseqEpW( + Protseq: RPC_WSTR, + MaxCalls: ::std::os::raw::c_uint, + Endpoint: RPC_WSTR, + SecurityDescriptor: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseProtseqEpExW( + Protseq: RPC_WSTR, + MaxCalls: ::std::os::raw::c_uint, + Endpoint: RPC_WSTR, + SecurityDescriptor: *mut ::std::os::raw::c_void, + Policy: PRPC_POLICY, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseProtseqIfA( + Protseq: RPC_CSTR, + MaxCalls: ::std::os::raw::c_uint, + IfSpec: RPC_IF_HANDLE, + SecurityDescriptor: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseProtseqIfExA( + Protseq: RPC_CSTR, + MaxCalls: ::std::os::raw::c_uint, + IfSpec: RPC_IF_HANDLE, + SecurityDescriptor: *mut ::std::os::raw::c_void, + Policy: PRPC_POLICY, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseProtseqIfW( + Protseq: RPC_WSTR, + MaxCalls: ::std::os::raw::c_uint, + IfSpec: RPC_IF_HANDLE, + SecurityDescriptor: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUseProtseqIfExW( + Protseq: RPC_WSTR, + MaxCalls: ::std::os::raw::c_uint, + IfSpec: RPC_IF_HANDLE, + SecurityDescriptor: *mut ::std::os::raw::c_void, + Policy: PRPC_POLICY, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerYield(); +} +extern "C" { + pub fn RpcMgmtStatsVectorFree(StatsVector: *mut *mut RPC_STATS_VECTOR) -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtInqStats( + Binding: RPC_BINDING_HANDLE, + Statistics: *mut *mut RPC_STATS_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtIsServerListening(Binding: RPC_BINDING_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtStopServerListening(Binding: RPC_BINDING_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtWaitServerListen() -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtSetServerStackSize(ThreadStackSize: ::std::os::raw::c_ulong) -> RPC_STATUS; +} +extern "C" { + pub fn RpcSsDontSerializeContext(); +} +extern "C" { + pub fn RpcMgmtEnableIdleCleanup() -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtInqIfIds( + Binding: RPC_BINDING_HANDLE, + IfIdVector: *mut *mut RPC_IF_ID_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcIfIdVectorFree(IfIdVector: *mut *mut RPC_IF_ID_VECTOR) -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtInqServerPrincNameA( + Binding: RPC_BINDING_HANDLE, + AuthnSvc: ::std::os::raw::c_ulong, + ServerPrincName: *mut RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtInqServerPrincNameW( + Binding: RPC_BINDING_HANDLE, + AuthnSvc: ::std::os::raw::c_ulong, + ServerPrincName: *mut RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerInqDefaultPrincNameA( + AuthnSvc: ::std::os::raw::c_ulong, + PrincName: *mut RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerInqDefaultPrincNameW( + AuthnSvc: ::std::os::raw::c_ulong, + PrincName: *mut RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcEpResolveBinding(Binding: RPC_BINDING_HANDLE, IfSpec: RPC_IF_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingInqEntryNameA( + Binding: RPC_BINDING_HANDLE, + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: *mut RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingInqEntryNameW( + Binding: RPC_BINDING_HANDLE, + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: *mut RPC_WSTR, + ) -> RPC_STATUS; +} +pub type RPC_AUTH_IDENTITY_HANDLE = *mut ::std::os::raw::c_void; +pub type RPC_AUTHZ_HANDLE = *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_SECURITY_QOS { + pub Version: ::std::os::raw::c_ulong, + pub Capabilities: ::std::os::raw::c_ulong, + pub IdentityTracking: ::std::os::raw::c_ulong, + pub ImpersonationType: ::std::os::raw::c_ulong, +} +pub type RPC_SECURITY_QOS = _RPC_SECURITY_QOS; +pub type PRPC_SECURITY_QOS = *mut _RPC_SECURITY_QOS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SEC_WINNT_AUTH_IDENTITY_W { + pub User: *mut ::std::os::raw::c_ushort, + pub UserLength: ::std::os::raw::c_ulong, + pub Domain: *mut ::std::os::raw::c_ushort, + pub DomainLength: ::std::os::raw::c_ulong, + pub Password: *mut ::std::os::raw::c_ushort, + pub PasswordLength: ::std::os::raw::c_ulong, + pub Flags: ::std::os::raw::c_ulong, +} +pub type SEC_WINNT_AUTH_IDENTITY_W = _SEC_WINNT_AUTH_IDENTITY_W; +pub type PSEC_WINNT_AUTH_IDENTITY_W = *mut _SEC_WINNT_AUTH_IDENTITY_W; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SEC_WINNT_AUTH_IDENTITY_A { + pub User: *mut ::std::os::raw::c_uchar, + pub UserLength: ::std::os::raw::c_ulong, + pub Domain: *mut ::std::os::raw::c_uchar, + pub DomainLength: ::std::os::raw::c_ulong, + pub Password: *mut ::std::os::raw::c_uchar, + pub PasswordLength: ::std::os::raw::c_ulong, + pub Flags: ::std::os::raw::c_ulong, +} +pub type SEC_WINNT_AUTH_IDENTITY_A = _SEC_WINNT_AUTH_IDENTITY_A; +pub type PSEC_WINNT_AUTH_IDENTITY_A = *mut _SEC_WINNT_AUTH_IDENTITY_A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W { + pub TransportCredentials: *mut SEC_WINNT_AUTH_IDENTITY_W, + pub Flags: ::std::os::raw::c_ulong, + pub AuthenticationTarget: ::std::os::raw::c_ulong, + pub NumberOfAuthnSchemes: ::std::os::raw::c_ulong, + pub AuthnSchemes: *mut ::std::os::raw::c_ulong, + pub ServerCertificateSubject: *mut ::std::os::raw::c_ushort, +} +pub type RPC_HTTP_TRANSPORT_CREDENTIALS_W = _RPC_HTTP_TRANSPORT_CREDENTIALS_W; +pub type PRPC_HTTP_TRANSPORT_CREDENTIALS_W = *mut _RPC_HTTP_TRANSPORT_CREDENTIALS_W; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_HTTP_TRANSPORT_CREDENTIALS_A { + pub TransportCredentials: *mut SEC_WINNT_AUTH_IDENTITY_A, + pub Flags: ::std::os::raw::c_ulong, + pub AuthenticationTarget: ::std::os::raw::c_ulong, + pub NumberOfAuthnSchemes: ::std::os::raw::c_ulong, + pub AuthnSchemes: *mut ::std::os::raw::c_ulong, + pub ServerCertificateSubject: *mut ::std::os::raw::c_uchar, +} +pub type RPC_HTTP_TRANSPORT_CREDENTIALS_A = _RPC_HTTP_TRANSPORT_CREDENTIALS_A; +pub type PRPC_HTTP_TRANSPORT_CREDENTIALS_A = *mut _RPC_HTTP_TRANSPORT_CREDENTIALS_A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W { + pub TransportCredentials: *mut SEC_WINNT_AUTH_IDENTITY_W, + pub Flags: ::std::os::raw::c_ulong, + pub AuthenticationTarget: ::std::os::raw::c_ulong, + pub NumberOfAuthnSchemes: ::std::os::raw::c_ulong, + pub AuthnSchemes: *mut ::std::os::raw::c_ulong, + pub ServerCertificateSubject: *mut ::std::os::raw::c_ushort, + pub ProxyCredentials: *mut SEC_WINNT_AUTH_IDENTITY_W, + pub NumberOfProxyAuthnSchemes: ::std::os::raw::c_ulong, + pub ProxyAuthnSchemes: *mut ::std::os::raw::c_ulong, +} +pub type RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W = _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W; +pub type PRPC_HTTP_TRANSPORT_CREDENTIALS_V2_W = *mut _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A { + pub TransportCredentials: *mut SEC_WINNT_AUTH_IDENTITY_A, + pub Flags: ::std::os::raw::c_ulong, + pub AuthenticationTarget: ::std::os::raw::c_ulong, + pub NumberOfAuthnSchemes: ::std::os::raw::c_ulong, + pub AuthnSchemes: *mut ::std::os::raw::c_ulong, + pub ServerCertificateSubject: *mut ::std::os::raw::c_uchar, + pub ProxyCredentials: *mut SEC_WINNT_AUTH_IDENTITY_A, + pub NumberOfProxyAuthnSchemes: ::std::os::raw::c_ulong, + pub ProxyAuthnSchemes: *mut ::std::os::raw::c_ulong, +} +pub type RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A = _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A; +pub type PRPC_HTTP_TRANSPORT_CREDENTIALS_V2_A = *mut _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W { + pub TransportCredentials: RPC_AUTH_IDENTITY_HANDLE, + pub Flags: ::std::os::raw::c_ulong, + pub AuthenticationTarget: ::std::os::raw::c_ulong, + pub NumberOfAuthnSchemes: ::std::os::raw::c_ulong, + pub AuthnSchemes: *mut ::std::os::raw::c_ulong, + pub ServerCertificateSubject: *mut ::std::os::raw::c_ushort, + pub ProxyCredentials: RPC_AUTH_IDENTITY_HANDLE, + pub NumberOfProxyAuthnSchemes: ::std::os::raw::c_ulong, + pub ProxyAuthnSchemes: *mut ::std::os::raw::c_ulong, +} +pub type RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W = _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W; +pub type PRPC_HTTP_TRANSPORT_CREDENTIALS_V3_W = *mut _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A { + pub TransportCredentials: RPC_AUTH_IDENTITY_HANDLE, + pub Flags: ::std::os::raw::c_ulong, + pub AuthenticationTarget: ::std::os::raw::c_ulong, + pub NumberOfAuthnSchemes: ::std::os::raw::c_ulong, + pub AuthnSchemes: *mut ::std::os::raw::c_ulong, + pub ServerCertificateSubject: *mut ::std::os::raw::c_uchar, + pub ProxyCredentials: RPC_AUTH_IDENTITY_HANDLE, + pub NumberOfProxyAuthnSchemes: ::std::os::raw::c_ulong, + pub ProxyAuthnSchemes: *mut ::std::os::raw::c_ulong, +} +pub type RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A = _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A; +pub type PRPC_HTTP_TRANSPORT_CREDENTIALS_V3_A = *mut _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _RPC_SECURITY_QOS_V2_W { + pub Version: ::std::os::raw::c_ulong, + pub Capabilities: ::std::os::raw::c_ulong, + pub IdentityTracking: ::std::os::raw::c_ulong, + pub ImpersonationType: ::std::os::raw::c_ulong, + pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, + pub u: _RPC_SECURITY_QOS_V2_W__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _RPC_SECURITY_QOS_V2_W__bindgen_ty_1 { + pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_W, +} +pub type RPC_SECURITY_QOS_V2_W = _RPC_SECURITY_QOS_V2_W; +pub type PRPC_SECURITY_QOS_V2_W = *mut _RPC_SECURITY_QOS_V2_W; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _RPC_SECURITY_QOS_V2_A { + pub Version: ::std::os::raw::c_ulong, + pub Capabilities: ::std::os::raw::c_ulong, + pub IdentityTracking: ::std::os::raw::c_ulong, + pub ImpersonationType: ::std::os::raw::c_ulong, + pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, + pub u: _RPC_SECURITY_QOS_V2_A__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _RPC_SECURITY_QOS_V2_A__bindgen_ty_1 { + pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_A, +} +pub type RPC_SECURITY_QOS_V2_A = _RPC_SECURITY_QOS_V2_A; +pub type PRPC_SECURITY_QOS_V2_A = *mut _RPC_SECURITY_QOS_V2_A; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _RPC_SECURITY_QOS_V3_W { + pub Version: ::std::os::raw::c_ulong, + pub Capabilities: ::std::os::raw::c_ulong, + pub IdentityTracking: ::std::os::raw::c_ulong, + pub ImpersonationType: ::std::os::raw::c_ulong, + pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, + pub u: _RPC_SECURITY_QOS_V3_W__bindgen_ty_1, + pub Sid: *mut ::std::os::raw::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _RPC_SECURITY_QOS_V3_W__bindgen_ty_1 { + pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_W, +} +pub type RPC_SECURITY_QOS_V3_W = _RPC_SECURITY_QOS_V3_W; +pub type PRPC_SECURITY_QOS_V3_W = *mut _RPC_SECURITY_QOS_V3_W; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _RPC_SECURITY_QOS_V3_A { + pub Version: ::std::os::raw::c_ulong, + pub Capabilities: ::std::os::raw::c_ulong, + pub IdentityTracking: ::std::os::raw::c_ulong, + pub ImpersonationType: ::std::os::raw::c_ulong, + pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, + pub u: _RPC_SECURITY_QOS_V3_A__bindgen_ty_1, + pub Sid: *mut ::std::os::raw::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _RPC_SECURITY_QOS_V3_A__bindgen_ty_1 { + pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_A, +} +pub type RPC_SECURITY_QOS_V3_A = _RPC_SECURITY_QOS_V3_A; +pub type PRPC_SECURITY_QOS_V3_A = *mut _RPC_SECURITY_QOS_V3_A; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _RPC_SECURITY_QOS_V4_W { + pub Version: ::std::os::raw::c_ulong, + pub Capabilities: ::std::os::raw::c_ulong, + pub IdentityTracking: ::std::os::raw::c_ulong, + pub ImpersonationType: ::std::os::raw::c_ulong, + pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, + pub u: _RPC_SECURITY_QOS_V4_W__bindgen_ty_1, + pub Sid: *mut ::std::os::raw::c_void, + pub EffectiveOnly: ::std::os::raw::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _RPC_SECURITY_QOS_V4_W__bindgen_ty_1 { + pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_W, +} +pub type RPC_SECURITY_QOS_V4_W = _RPC_SECURITY_QOS_V4_W; +pub type PRPC_SECURITY_QOS_V4_W = *mut _RPC_SECURITY_QOS_V4_W; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _RPC_SECURITY_QOS_V4_A { + pub Version: ::std::os::raw::c_ulong, + pub Capabilities: ::std::os::raw::c_ulong, + pub IdentityTracking: ::std::os::raw::c_ulong, + pub ImpersonationType: ::std::os::raw::c_ulong, + pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, + pub u: _RPC_SECURITY_QOS_V4_A__bindgen_ty_1, + pub Sid: *mut ::std::os::raw::c_void, + pub EffectiveOnly: ::std::os::raw::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _RPC_SECURITY_QOS_V4_A__bindgen_ty_1 { + pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_A, +} +pub type RPC_SECURITY_QOS_V4_A = _RPC_SECURITY_QOS_V4_A; +pub type PRPC_SECURITY_QOS_V4_A = *mut _RPC_SECURITY_QOS_V4_A; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _RPC_SECURITY_QOS_V5_W { + pub Version: ::std::os::raw::c_ulong, + pub Capabilities: ::std::os::raw::c_ulong, + pub IdentityTracking: ::std::os::raw::c_ulong, + pub ImpersonationType: ::std::os::raw::c_ulong, + pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, + pub u: _RPC_SECURITY_QOS_V5_W__bindgen_ty_1, + pub Sid: *mut ::std::os::raw::c_void, + pub EffectiveOnly: ::std::os::raw::c_uint, + pub ServerSecurityDescriptor: *mut ::std::os::raw::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _RPC_SECURITY_QOS_V5_W__bindgen_ty_1 { + pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_W, +} +pub type RPC_SECURITY_QOS_V5_W = _RPC_SECURITY_QOS_V5_W; +pub type PRPC_SECURITY_QOS_V5_W = *mut _RPC_SECURITY_QOS_V5_W; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _RPC_SECURITY_QOS_V5_A { + pub Version: ::std::os::raw::c_ulong, + pub Capabilities: ::std::os::raw::c_ulong, + pub IdentityTracking: ::std::os::raw::c_ulong, + pub ImpersonationType: ::std::os::raw::c_ulong, + pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, + pub u: _RPC_SECURITY_QOS_V5_A__bindgen_ty_1, + pub Sid: *mut ::std::os::raw::c_void, + pub EffectiveOnly: ::std::os::raw::c_uint, + pub ServerSecurityDescriptor: *mut ::std::os::raw::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _RPC_SECURITY_QOS_V5_A__bindgen_ty_1 { + pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_A, +} +pub type RPC_SECURITY_QOS_V5_A = _RPC_SECURITY_QOS_V5_A; +pub type PRPC_SECURITY_QOS_V5_A = *mut _RPC_SECURITY_QOS_V5_A; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _RPC_BINDING_HANDLE_TEMPLATE_V1_W { + pub Version: ::std::os::raw::c_ulong, + pub Flags: ::std::os::raw::c_ulong, + pub ProtocolSequence: ::std::os::raw::c_ulong, + pub NetworkAddress: *mut ::std::os::raw::c_ushort, + pub StringEndpoint: *mut ::std::os::raw::c_ushort, + pub u1: _RPC_BINDING_HANDLE_TEMPLATE_V1_W__bindgen_ty_1, + pub ObjectUuid: UUID, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _RPC_BINDING_HANDLE_TEMPLATE_V1_W__bindgen_ty_1 { + pub Reserved: *mut ::std::os::raw::c_ushort, +} +pub type RPC_BINDING_HANDLE_TEMPLATE_V1_W = _RPC_BINDING_HANDLE_TEMPLATE_V1_W; +pub type PRPC_BINDING_HANDLE_TEMPLATE_V1_W = *mut _RPC_BINDING_HANDLE_TEMPLATE_V1_W; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _RPC_BINDING_HANDLE_TEMPLATE_V1_A { + pub Version: ::std::os::raw::c_ulong, + pub Flags: ::std::os::raw::c_ulong, + pub ProtocolSequence: ::std::os::raw::c_ulong, + pub NetworkAddress: *mut ::std::os::raw::c_uchar, + pub StringEndpoint: *mut ::std::os::raw::c_uchar, + pub u1: _RPC_BINDING_HANDLE_TEMPLATE_V1_A__bindgen_ty_1, + pub ObjectUuid: UUID, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _RPC_BINDING_HANDLE_TEMPLATE_V1_A__bindgen_ty_1 { + pub Reserved: *mut ::std::os::raw::c_uchar, +} +pub type RPC_BINDING_HANDLE_TEMPLATE_V1_A = _RPC_BINDING_HANDLE_TEMPLATE_V1_A; +pub type PRPC_BINDING_HANDLE_TEMPLATE_V1_A = *mut _RPC_BINDING_HANDLE_TEMPLATE_V1_A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_BINDING_HANDLE_SECURITY_V1_W { + pub Version: ::std::os::raw::c_ulong, + pub ServerPrincName: *mut ::std::os::raw::c_ushort, + pub AuthnLevel: ::std::os::raw::c_ulong, + pub AuthnSvc: ::std::os::raw::c_ulong, + pub AuthIdentity: *mut SEC_WINNT_AUTH_IDENTITY_W, + pub SecurityQos: *mut RPC_SECURITY_QOS, +} +pub type RPC_BINDING_HANDLE_SECURITY_V1_W = _RPC_BINDING_HANDLE_SECURITY_V1_W; +pub type PRPC_BINDING_HANDLE_SECURITY_V1_W = *mut _RPC_BINDING_HANDLE_SECURITY_V1_W; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_BINDING_HANDLE_SECURITY_V1_A { + pub Version: ::std::os::raw::c_ulong, + pub ServerPrincName: *mut ::std::os::raw::c_uchar, + pub AuthnLevel: ::std::os::raw::c_ulong, + pub AuthnSvc: ::std::os::raw::c_ulong, + pub AuthIdentity: *mut SEC_WINNT_AUTH_IDENTITY_A, + pub SecurityQos: *mut RPC_SECURITY_QOS, +} +pub type RPC_BINDING_HANDLE_SECURITY_V1_A = _RPC_BINDING_HANDLE_SECURITY_V1_A; +pub type PRPC_BINDING_HANDLE_SECURITY_V1_A = *mut _RPC_BINDING_HANDLE_SECURITY_V1_A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_BINDING_HANDLE_OPTIONS_V1 { + pub Version: ::std::os::raw::c_ulong, + pub Flags: ::std::os::raw::c_ulong, + pub ComTimeout: ::std::os::raw::c_ulong, + pub CallTimeout: ::std::os::raw::c_ulong, +} +pub type RPC_BINDING_HANDLE_OPTIONS_V1 = _RPC_BINDING_HANDLE_OPTIONS_V1; +pub type PRPC_BINDING_HANDLE_OPTIONS_V1 = *mut _RPC_BINDING_HANDLE_OPTIONS_V1; +extern "C" { + pub fn RpcBindingCreateA( + Template: *mut RPC_BINDING_HANDLE_TEMPLATE_V1_A, + Security: *mut RPC_BINDING_HANDLE_SECURITY_V1_A, + Options: *mut RPC_BINDING_HANDLE_OPTIONS_V1, + Binding: *mut RPC_BINDING_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingCreateW( + Template: *mut RPC_BINDING_HANDLE_TEMPLATE_V1_W, + Security: *mut RPC_BINDING_HANDLE_SECURITY_V1_W, + Options: *mut RPC_BINDING_HANDLE_OPTIONS_V1, + Binding: *mut RPC_BINDING_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingGetTrainingContextHandle( + Binding: RPC_BINDING_HANDLE, + ContextHandle: *mut *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerInqBindingHandle(Binding: *mut RPC_BINDING_HANDLE) -> RPC_STATUS; +} +pub const _RPC_HTTP_REDIRECTOR_STAGE_RPCHTTP_RS_REDIRECT: _RPC_HTTP_REDIRECTOR_STAGE = 1; +pub const _RPC_HTTP_REDIRECTOR_STAGE_RPCHTTP_RS_ACCESS_1: _RPC_HTTP_REDIRECTOR_STAGE = 2; +pub const _RPC_HTTP_REDIRECTOR_STAGE_RPCHTTP_RS_SESSION: _RPC_HTTP_REDIRECTOR_STAGE = 3; +pub const _RPC_HTTP_REDIRECTOR_STAGE_RPCHTTP_RS_ACCESS_2: _RPC_HTTP_REDIRECTOR_STAGE = 4; +pub const _RPC_HTTP_REDIRECTOR_STAGE_RPCHTTP_RS_INTERFACE: _RPC_HTTP_REDIRECTOR_STAGE = 5; +pub type _RPC_HTTP_REDIRECTOR_STAGE = ::std::os::raw::c_int; +pub use self::_RPC_HTTP_REDIRECTOR_STAGE as RPC_HTTP_REDIRECTOR_STAGE; +pub type RPC_NEW_HTTP_PROXY_CHANNEL = ::std::option::Option< + unsafe extern "C" fn( + RedirectorStage: RPC_HTTP_REDIRECTOR_STAGE, + ServerName: RPC_WSTR, + ServerPort: RPC_WSTR, + RemoteUser: RPC_WSTR, + AuthType: RPC_WSTR, + ResourceUuid: *mut ::std::os::raw::c_void, + SessionId: *mut ::std::os::raw::c_void, + Interface: *mut ::std::os::raw::c_void, + Reserved: *mut ::std::os::raw::c_void, + Flags: ::std::os::raw::c_ulong, + NewServerName: *mut RPC_WSTR, + NewServerPort: *mut RPC_WSTR, + ) -> RPC_STATUS, +>; +pub type RPC_HTTP_PROXY_FREE_STRING = ::std::option::Option; +extern "C" { + pub fn RpcImpersonateClient(BindingHandle: RPC_BINDING_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcImpersonateClient2(BindingHandle: RPC_BINDING_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcRevertToSelfEx(BindingHandle: RPC_BINDING_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcRevertToSelf() -> RPC_STATUS; +} +extern "C" { + pub fn RpcImpersonateClientContainer(BindingHandle: RPC_BINDING_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcRevertContainerImpersonation() -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingInqAuthClientA( + ClientBinding: RPC_BINDING_HANDLE, + Privs: *mut RPC_AUTHZ_HANDLE, + ServerPrincName: *mut RPC_CSTR, + AuthnLevel: *mut ::std::os::raw::c_ulong, + AuthnSvc: *mut ::std::os::raw::c_ulong, + AuthzSvc: *mut ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingInqAuthClientW( + ClientBinding: RPC_BINDING_HANDLE, + Privs: *mut RPC_AUTHZ_HANDLE, + ServerPrincName: *mut RPC_WSTR, + AuthnLevel: *mut ::std::os::raw::c_ulong, + AuthnSvc: *mut ::std::os::raw::c_ulong, + AuthzSvc: *mut ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingInqAuthClientExA( + ClientBinding: RPC_BINDING_HANDLE, + Privs: *mut RPC_AUTHZ_HANDLE, + ServerPrincName: *mut RPC_CSTR, + AuthnLevel: *mut ::std::os::raw::c_ulong, + AuthnSvc: *mut ::std::os::raw::c_ulong, + AuthzSvc: *mut ::std::os::raw::c_ulong, + Flags: ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingInqAuthClientExW( + ClientBinding: RPC_BINDING_HANDLE, + Privs: *mut RPC_AUTHZ_HANDLE, + ServerPrincName: *mut RPC_WSTR, + AuthnLevel: *mut ::std::os::raw::c_ulong, + AuthnSvc: *mut ::std::os::raw::c_ulong, + AuthzSvc: *mut ::std::os::raw::c_ulong, + Flags: ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingInqAuthInfoA( + Binding: RPC_BINDING_HANDLE, + ServerPrincName: *mut RPC_CSTR, + AuthnLevel: *mut ::std::os::raw::c_ulong, + AuthnSvc: *mut ::std::os::raw::c_ulong, + AuthIdentity: *mut RPC_AUTH_IDENTITY_HANDLE, + AuthzSvc: *mut ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingInqAuthInfoW( + Binding: RPC_BINDING_HANDLE, + ServerPrincName: *mut RPC_WSTR, + AuthnLevel: *mut ::std::os::raw::c_ulong, + AuthnSvc: *mut ::std::os::raw::c_ulong, + AuthIdentity: *mut RPC_AUTH_IDENTITY_HANDLE, + AuthzSvc: *mut ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingSetAuthInfoA( + Binding: RPC_BINDING_HANDLE, + ServerPrincName: RPC_CSTR, + AuthnLevel: ::std::os::raw::c_ulong, + AuthnSvc: ::std::os::raw::c_ulong, + AuthIdentity: RPC_AUTH_IDENTITY_HANDLE, + AuthzSvc: ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingSetAuthInfoExA( + Binding: RPC_BINDING_HANDLE, + ServerPrincName: RPC_CSTR, + AuthnLevel: ::std::os::raw::c_ulong, + AuthnSvc: ::std::os::raw::c_ulong, + AuthIdentity: RPC_AUTH_IDENTITY_HANDLE, + AuthzSvc: ::std::os::raw::c_ulong, + SecurityQos: *mut RPC_SECURITY_QOS, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingSetAuthInfoW( + Binding: RPC_BINDING_HANDLE, + ServerPrincName: RPC_WSTR, + AuthnLevel: ::std::os::raw::c_ulong, + AuthnSvc: ::std::os::raw::c_ulong, + AuthIdentity: RPC_AUTH_IDENTITY_HANDLE, + AuthzSvc: ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingSetAuthInfoExW( + Binding: RPC_BINDING_HANDLE, + ServerPrincName: RPC_WSTR, + AuthnLevel: ::std::os::raw::c_ulong, + AuthnSvc: ::std::os::raw::c_ulong, + AuthIdentity: RPC_AUTH_IDENTITY_HANDLE, + AuthzSvc: ::std::os::raw::c_ulong, + SecurityQOS: *mut RPC_SECURITY_QOS, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingInqAuthInfoExA( + Binding: RPC_BINDING_HANDLE, + ServerPrincName: *mut RPC_CSTR, + AuthnLevel: *mut ::std::os::raw::c_ulong, + AuthnSvc: *mut ::std::os::raw::c_ulong, + AuthIdentity: *mut RPC_AUTH_IDENTITY_HANDLE, + AuthzSvc: *mut ::std::os::raw::c_ulong, + RpcQosVersion: ::std::os::raw::c_ulong, + SecurityQOS: *mut RPC_SECURITY_QOS, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingInqAuthInfoExW( + Binding: RPC_BINDING_HANDLE, + ServerPrincName: *mut RPC_WSTR, + AuthnLevel: *mut ::std::os::raw::c_ulong, + AuthnSvc: *mut ::std::os::raw::c_ulong, + AuthIdentity: *mut RPC_AUTH_IDENTITY_HANDLE, + AuthzSvc: *mut ::std::os::raw::c_ulong, + RpcQosVersion: ::std::os::raw::c_ulong, + SecurityQOS: *mut RPC_SECURITY_QOS, + ) -> RPC_STATUS; +} +pub type RPC_AUTH_KEY_RETRIEVAL_FN = ::std::option::Option< + unsafe extern "C" fn( + Arg: *mut ::std::os::raw::c_void, + ServerPrincName: RPC_WSTR, + KeyVer: ::std::os::raw::c_ulong, + Key: *mut *mut ::std::os::raw::c_void, + Status: *mut RPC_STATUS, + ), +>; +extern "C" { + pub fn RpcServerCompleteSecurityCallback( + BindingHandle: RPC_BINDING_HANDLE, + Status: RPC_STATUS, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerRegisterAuthInfoA( + ServerPrincName: RPC_CSTR, + AuthnSvc: ::std::os::raw::c_ulong, + GetKeyFn: RPC_AUTH_KEY_RETRIEVAL_FN, + Arg: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerRegisterAuthInfoW( + ServerPrincName: RPC_WSTR, + AuthnSvc: ::std::os::raw::c_ulong, + GetKeyFn: RPC_AUTH_KEY_RETRIEVAL_FN, + Arg: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RPC_CLIENT_INFORMATION1 { + pub UserName: *mut ::std::os::raw::c_uchar, + pub ComputerName: *mut ::std::os::raw::c_uchar, + pub Privilege: ::std::os::raw::c_ushort, + pub AuthFlags: ::std::os::raw::c_ulong, +} +pub type PRPC_CLIENT_INFORMATION1 = *mut RPC_CLIENT_INFORMATION1; +extern "C" { + pub fn RpcBindingServerFromClient( + ClientBinding: RPC_BINDING_HANDLE, + ServerBinding: *mut RPC_BINDING_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcRaiseException(exception: RPC_STATUS) -> !; +} +extern "C" { + pub fn RpcTestCancel() -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerTestCancel(BindingHandle: RPC_BINDING_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcCancelThread(Thread: *mut ::std::os::raw::c_void) -> RPC_STATUS; +} +extern "C" { + pub fn RpcCancelThreadEx( + Thread: *mut ::std::os::raw::c_void, + Timeout: ::std::os::raw::c_long, + ) -> RPC_STATUS; +} +extern "C" { + pub fn UuidCreate(Uuid: *mut UUID) -> RPC_STATUS; +} +extern "C" { + pub fn UuidCreateSequential(Uuid: *mut UUID) -> RPC_STATUS; +} +extern "C" { + pub fn UuidToStringA(Uuid: *const UUID, StringUuid: *mut RPC_CSTR) -> RPC_STATUS; +} +extern "C" { + pub fn UuidFromStringA(StringUuid: RPC_CSTR, Uuid: *mut UUID) -> RPC_STATUS; +} +extern "C" { + pub fn UuidToStringW(Uuid: *const UUID, StringUuid: *mut RPC_WSTR) -> RPC_STATUS; +} +extern "C" { + pub fn UuidFromStringW(StringUuid: RPC_WSTR, Uuid: *mut UUID) -> RPC_STATUS; +} +extern "C" { + pub fn UuidCompare( + Uuid1: *mut UUID, + Uuid2: *mut UUID, + Status: *mut RPC_STATUS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn UuidCreateNil(NilUuid: *mut UUID) -> RPC_STATUS; +} +extern "C" { + pub fn UuidEqual( + Uuid1: *mut UUID, + Uuid2: *mut UUID, + Status: *mut RPC_STATUS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn UuidHash(Uuid: *mut UUID, Status: *mut RPC_STATUS) -> ::std::os::raw::c_ushort; +} +extern "C" { + pub fn UuidIsNil(Uuid: *mut UUID, Status: *mut RPC_STATUS) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn RpcEpRegisterNoReplaceA( + IfSpec: RPC_IF_HANDLE, + BindingVector: *mut RPC_BINDING_VECTOR, + UuidVector: *mut UUID_VECTOR, + Annotation: RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcEpRegisterNoReplaceW( + IfSpec: RPC_IF_HANDLE, + BindingVector: *mut RPC_BINDING_VECTOR, + UuidVector: *mut UUID_VECTOR, + Annotation: RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcEpRegisterA( + IfSpec: RPC_IF_HANDLE, + BindingVector: *mut RPC_BINDING_VECTOR, + UuidVector: *mut UUID_VECTOR, + Annotation: RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcEpRegisterW( + IfSpec: RPC_IF_HANDLE, + BindingVector: *mut RPC_BINDING_VECTOR, + UuidVector: *mut UUID_VECTOR, + Annotation: RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcEpUnregister( + IfSpec: RPC_IF_HANDLE, + BindingVector: *mut RPC_BINDING_VECTOR, + UuidVector: *mut UUID_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn DceErrorInqTextA(RpcStatus: RPC_STATUS, ErrorText: RPC_CSTR) -> RPC_STATUS; +} +extern "C" { + pub fn DceErrorInqTextW(RpcStatus: RPC_STATUS, ErrorText: RPC_WSTR) -> RPC_STATUS; +} +pub type RPC_EP_INQ_HANDLE = *mut I_RPC_HANDLE; +extern "C" { + pub fn RpcMgmtEpEltInqBegin( + EpBinding: RPC_BINDING_HANDLE, + InquiryType: ::std::os::raw::c_ulong, + IfId: *mut RPC_IF_ID, + VersOption: ::std::os::raw::c_ulong, + ObjectUuid: *mut UUID, + InquiryContext: *mut RPC_EP_INQ_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtEpEltInqDone(InquiryContext: *mut RPC_EP_INQ_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtEpEltInqNextA( + InquiryContext: RPC_EP_INQ_HANDLE, + IfId: *mut RPC_IF_ID, + Binding: *mut RPC_BINDING_HANDLE, + ObjectUuid: *mut UUID, + Annotation: *mut RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtEpEltInqNextW( + InquiryContext: RPC_EP_INQ_HANDLE, + IfId: *mut RPC_IF_ID, + Binding: *mut RPC_BINDING_HANDLE, + ObjectUuid: *mut UUID, + Annotation: *mut RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcMgmtEpUnregister( + EpBinding: RPC_BINDING_HANDLE, + IfId: *mut RPC_IF_ID, + Binding: RPC_BINDING_HANDLE, + ObjectUuid: *mut UUID, + ) -> RPC_STATUS; +} +pub type RPC_MGMT_AUTHORIZATION_FN = ::std::option::Option< + unsafe extern "C" fn( + ClientBinding: RPC_BINDING_HANDLE, + RequestedMgmtOperation: ::std::os::raw::c_ulong, + Status: *mut RPC_STATUS, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn RpcMgmtSetAuthorizationFn(AuthorizationFn: RPC_MGMT_AUTHORIZATION_FN) -> RPC_STATUS; +} +extern "C" { + pub fn RpcExceptionFilter(ExceptionCode: ::std::os::raw::c_ulong) -> ::std::os::raw::c_int; +} +pub type RPC_INTERFACE_GROUP = *mut ::std::os::raw::c_void; +pub type PRPC_INTERFACE_GROUP = *mut *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RPC_ENDPOINT_TEMPLATEW { + pub Version: ::std::os::raw::c_ulong, + pub ProtSeq: RPC_WSTR, + pub Endpoint: RPC_WSTR, + pub SecurityDescriptor: *mut ::std::os::raw::c_void, + pub Backlog: ::std::os::raw::c_ulong, +} +pub type PRPC_ENDPOINT_TEMPLATEW = *mut RPC_ENDPOINT_TEMPLATEW; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RPC_ENDPOINT_TEMPLATEA { + pub Version: ::std::os::raw::c_ulong, + pub ProtSeq: RPC_CSTR, + pub Endpoint: RPC_CSTR, + pub SecurityDescriptor: *mut ::std::os::raw::c_void, + pub Backlog: ::std::os::raw::c_ulong, +} +pub type PRPC_ENDPOINT_TEMPLATEA = *mut RPC_ENDPOINT_TEMPLATEA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RPC_INTERFACE_TEMPLATEA { + pub Version: ::std::os::raw::c_ulong, + pub IfSpec: RPC_IF_HANDLE, + pub MgrTypeUuid: *mut UUID, + pub MgrEpv: *mut ::std::os::raw::c_void, + pub Flags: ::std::os::raw::c_uint, + pub MaxCalls: ::std::os::raw::c_uint, + pub MaxRpcSize: ::std::os::raw::c_uint, + pub IfCallback: ::std::option::Option< + unsafe extern "C" fn(arg1: RPC_IF_HANDLE, arg2: *mut ::std::os::raw::c_void) -> RPC_STATUS, + >, + pub UuidVector: *mut UUID_VECTOR, + pub Annotation: RPC_CSTR, + pub SecurityDescriptor: *mut ::std::os::raw::c_void, +} +pub type PRPC_INTERFACE_TEMPLATEA = *mut RPC_INTERFACE_TEMPLATEA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RPC_INTERFACE_TEMPLATEW { + pub Version: ::std::os::raw::c_ulong, + pub IfSpec: RPC_IF_HANDLE, + pub MgrTypeUuid: *mut UUID, + pub MgrEpv: *mut ::std::os::raw::c_void, + pub Flags: ::std::os::raw::c_uint, + pub MaxCalls: ::std::os::raw::c_uint, + pub MaxRpcSize: ::std::os::raw::c_uint, + pub IfCallback: ::std::option::Option< + unsafe extern "C" fn(arg1: RPC_IF_HANDLE, arg2: *mut ::std::os::raw::c_void) -> RPC_STATUS, + >, + pub UuidVector: *mut UUID_VECTOR, + pub Annotation: RPC_WSTR, + pub SecurityDescriptor: *mut ::std::os::raw::c_void, +} +pub type PRPC_INTERFACE_TEMPLATEW = *mut RPC_INTERFACE_TEMPLATEW; +extern "C" { + pub fn RpcServerInterfaceGroupCreateW( + Interfaces: *mut RPC_INTERFACE_TEMPLATEW, + NumIfs: ::std::os::raw::c_ulong, + Endpoints: *mut RPC_ENDPOINT_TEMPLATEW, + NumEndpoints: ::std::os::raw::c_ulong, + IdlePeriod: ::std::os::raw::c_ulong, + IdleCallbackFn: ::std::option::Option< + unsafe extern "C" fn( + arg1: RPC_INTERFACE_GROUP, + arg2: *mut ::std::os::raw::c_void, + arg3: ::std::os::raw::c_ulong, + ), + >, + IdleCallbackContext: *mut ::std::os::raw::c_void, + IfGroup: PRPC_INTERFACE_GROUP, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerInterfaceGroupCreateA( + Interfaces: *mut RPC_INTERFACE_TEMPLATEA, + NumIfs: ::std::os::raw::c_ulong, + Endpoints: *mut RPC_ENDPOINT_TEMPLATEA, + NumEndpoints: ::std::os::raw::c_ulong, + IdlePeriod: ::std::os::raw::c_ulong, + IdleCallbackFn: ::std::option::Option< + unsafe extern "C" fn( + arg1: RPC_INTERFACE_GROUP, + arg2: *mut ::std::os::raw::c_void, + arg3: ::std::os::raw::c_ulong, + ), + >, + IdleCallbackContext: *mut ::std::os::raw::c_void, + IfGroup: PRPC_INTERFACE_GROUP, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerInterfaceGroupClose(IfGroup: RPC_INTERFACE_GROUP) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerInterfaceGroupActivate(IfGroup: RPC_INTERFACE_GROUP) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerInterfaceGroupDeactivate( + IfGroup: RPC_INTERFACE_GROUP, + ForceDeactivation: ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerInterfaceGroupInqBindings( + IfGroup: RPC_INTERFACE_GROUP, + BindingVector: *mut *mut RPC_BINDING_VECTOR, + ) -> RPC_STATUS; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_VERSION { + pub MajorVersion: ::std::os::raw::c_ushort, + pub MinorVersion: ::std::os::raw::c_ushort, +} +pub type RPC_VERSION = _RPC_VERSION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_SYNTAX_IDENTIFIER { + pub SyntaxGUID: GUID, + pub SyntaxVersion: RPC_VERSION, +} +pub type RPC_SYNTAX_IDENTIFIER = _RPC_SYNTAX_IDENTIFIER; +pub type PRPC_SYNTAX_IDENTIFIER = *mut _RPC_SYNTAX_IDENTIFIER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_MESSAGE { + pub Handle: RPC_BINDING_HANDLE, + pub DataRepresentation: ::std::os::raw::c_ulong, + pub Buffer: *mut ::std::os::raw::c_void, + pub BufferLength: ::std::os::raw::c_uint, + pub ProcNum: ::std::os::raw::c_uint, + pub TransferSyntax: PRPC_SYNTAX_IDENTIFIER, + pub RpcInterfaceInformation: *mut ::std::os::raw::c_void, + pub ReservedForRuntime: *mut ::std::os::raw::c_void, + pub ManagerEpv: *mut ::std::os::raw::c_void, + pub ImportContext: *mut ::std::os::raw::c_void, + pub RpcFlags: ::std::os::raw::c_ulong, +} +pub type RPC_MESSAGE = _RPC_MESSAGE; +pub type PRPC_MESSAGE = *mut _RPC_MESSAGE; +pub const RPC_ADDRESS_CHANGE_TYPE_PROTOCOL_NOT_LOADED: RPC_ADDRESS_CHANGE_TYPE = 1; +pub const RPC_ADDRESS_CHANGE_TYPE_PROTOCOL_LOADED: RPC_ADDRESS_CHANGE_TYPE = 2; +pub const RPC_ADDRESS_CHANGE_TYPE_PROTOCOL_ADDRESS_CHANGE: RPC_ADDRESS_CHANGE_TYPE = 3; +pub type RPC_ADDRESS_CHANGE_TYPE = ::std::os::raw::c_int; +pub type RPC_DISPATCH_FUNCTION = ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RPC_DISPATCH_TABLE { + pub DispatchTableCount: ::std::os::raw::c_uint, + pub DispatchTable: *mut RPC_DISPATCH_FUNCTION, + pub Reserved: LONG_PTR, +} +pub type PRPC_DISPATCH_TABLE = *mut RPC_DISPATCH_TABLE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_PROTSEQ_ENDPOINT { + pub RpcProtocolSequence: *mut ::std::os::raw::c_uchar, + pub Endpoint: *mut ::std::os::raw::c_uchar, +} +pub type RPC_PROTSEQ_ENDPOINT = _RPC_PROTSEQ_ENDPOINT; +pub type PRPC_PROTSEQ_ENDPOINT = *mut _RPC_PROTSEQ_ENDPOINT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_SERVER_INTERFACE { + pub Length: ::std::os::raw::c_uint, + pub InterfaceId: RPC_SYNTAX_IDENTIFIER, + pub TransferSyntax: RPC_SYNTAX_IDENTIFIER, + pub DispatchTable: PRPC_DISPATCH_TABLE, + pub RpcProtseqEndpointCount: ::std::os::raw::c_uint, + pub RpcProtseqEndpoint: PRPC_PROTSEQ_ENDPOINT, + pub DefaultManagerEpv: *mut ::std::os::raw::c_void, + pub InterpreterInfo: *const ::std::os::raw::c_void, + pub Flags: ::std::os::raw::c_uint, +} +pub type RPC_SERVER_INTERFACE = _RPC_SERVER_INTERFACE; +pub type PRPC_SERVER_INTERFACE = *mut _RPC_SERVER_INTERFACE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_CLIENT_INTERFACE { + pub Length: ::std::os::raw::c_uint, + pub InterfaceId: RPC_SYNTAX_IDENTIFIER, + pub TransferSyntax: RPC_SYNTAX_IDENTIFIER, + pub DispatchTable: PRPC_DISPATCH_TABLE, + pub RpcProtseqEndpointCount: ::std::os::raw::c_uint, + pub RpcProtseqEndpoint: PRPC_PROTSEQ_ENDPOINT, + pub Reserved: ULONG_PTR, + pub InterpreterInfo: *const ::std::os::raw::c_void, + pub Flags: ::std::os::raw::c_uint, +} +pub type RPC_CLIENT_INTERFACE = _RPC_CLIENT_INTERFACE; +pub type PRPC_CLIENT_INTERFACE = *mut _RPC_CLIENT_INTERFACE; +extern "C" { + pub fn I_RpcNegotiateTransferSyntax(Message: *mut RPC_MESSAGE) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcGetBuffer(Message: *mut RPC_MESSAGE) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcGetBufferWithObject(Message: *mut RPC_MESSAGE, ObjectUuid: *mut UUID) + -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcSendReceive(Message: *mut RPC_MESSAGE) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcFreeBuffer(Message: *mut RPC_MESSAGE) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcSend(Message: PRPC_MESSAGE) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcReceive(Message: PRPC_MESSAGE, Size: ::std::os::raw::c_uint) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcFreePipeBuffer(Message: *mut RPC_MESSAGE) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcReallocPipeBuffer( + Message: PRPC_MESSAGE, + NewSize: ::std::os::raw::c_uint, + ) -> RPC_STATUS; +} +pub type I_RPC_MUTEX = *mut ::std::os::raw::c_void; +extern "C" { + pub fn I_RpcRequestMutex(Mutex: *mut I_RPC_MUTEX); +} +extern "C" { + pub fn I_RpcClearMutex(Mutex: I_RPC_MUTEX); +} +extern "C" { + pub fn I_RpcDeleteMutex(Mutex: I_RPC_MUTEX); +} +extern "C" { + pub fn I_RpcAllocate(Size: ::std::os::raw::c_uint) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn I_RpcFree(Object: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn I_RpcFreeSystemHandleCollection( + CallObj: *mut ::std::os::raw::c_void, + FreeFlags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn I_RpcSetSystemHandle( + Handle: *mut ::std::os::raw::c_void, + Type: ::std::os::raw::c_uchar, + AccessMask: ::std::os::raw::c_ulong, + CallObj: *mut ::std::os::raw::c_void, + HandleIndex: *mut ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcGetSystemHandle( + pMemory: *mut ::std::os::raw::c_uchar, + Type: ::std::os::raw::c_uchar, + AccessMask: ::std::os::raw::c_ulong, + HandleIndex: ::std::os::raw::c_ulong, + CallObj: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcFreeSystemHandle( + Type: ::std::os::raw::c_uchar, + Handle: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn I_RpcPauseExecution(Milliseconds: ::std::os::raw::c_ulong); +} +extern "C" { + pub fn I_RpcGetExtendedError() -> RPC_STATUS; +} +pub const _LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION_MarshalDirectionMarshal: + _LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION = 0; +pub const _LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION_MarshalDirectionUnmarshal: + _LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION = 1; +pub type _LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION = ::std::os::raw::c_int; +pub use self::_LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION as LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION; +extern "C" { + pub fn I_RpcSystemHandleTypeSpecificWork( + Handle: *mut ::std::os::raw::c_void, + ActualType: ::std::os::raw::c_uchar, + IdlType: ::std::os::raw::c_uchar, + MarshalDirection: LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION, + ) -> RPC_STATUS; +} +pub type PRPC_RUNDOWN = + ::std::option::Option; +extern "C" { + pub fn I_RpcMonitorAssociation( + Handle: RPC_BINDING_HANDLE, + RundownRoutine: PRPC_RUNDOWN, + Context: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcStopMonitorAssociation(Handle: RPC_BINDING_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcGetCurrentCallHandle() -> RPC_BINDING_HANDLE; +} +extern "C" { + pub fn I_RpcGetAssociationContext( + BindingHandle: RPC_BINDING_HANDLE, + AssociationContext: *mut *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcGetServerContextList( + BindingHandle: RPC_BINDING_HANDLE, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn I_RpcSetServerContextList( + BindingHandle: RPC_BINDING_HANDLE, + ServerContextList: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn I_RpcNsInterfaceExported( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: *mut ::std::os::raw::c_ushort, + RpcInterfaceInformation: *mut RPC_SERVER_INTERFACE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcNsInterfaceUnexported( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: *mut ::std::os::raw::c_ushort, + RpcInterfaceInformation: *mut RPC_SERVER_INTERFACE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcBindingToStaticStringBindingW( + Binding: RPC_BINDING_HANDLE, + StringBinding: *mut *mut ::std::os::raw::c_ushort, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcBindingInqSecurityContext( + Binding: RPC_BINDING_HANDLE, + SecurityContextHandle: *mut *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_SEC_CONTEXT_KEY_INFO { + pub EncryptAlgorithm: ::std::os::raw::c_ulong, + pub KeySize: ::std::os::raw::c_ulong, + pub SignatureAlgorithm: ::std::os::raw::c_ulong, +} +pub type RPC_SEC_CONTEXT_KEY_INFO = _RPC_SEC_CONTEXT_KEY_INFO; +pub type PRPC_SEC_CONTEXT_KEY_INFO = *mut _RPC_SEC_CONTEXT_KEY_INFO; +extern "C" { + pub fn I_RpcBindingInqSecurityContextKeyInfo( + Binding: RPC_BINDING_HANDLE, + KeyInfo: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcBindingInqWireIdForSnego( + Binding: RPC_BINDING_HANDLE, + WireId: *mut ::std::os::raw::c_uchar, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcBindingInqMarshalledTargetInfo( + Binding: RPC_BINDING_HANDLE, + MarshalledTargetInfoSize: *mut ::std::os::raw::c_ulong, + MarshalledTargetInfo: *mut RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcBindingInqLocalClientPID( + Binding: RPC_BINDING_HANDLE, + Pid: *mut ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcBindingHandleToAsyncHandle( + Binding: RPC_BINDING_HANDLE, + AsyncHandle: *mut *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcNsBindingSetEntryNameW( + Binding: RPC_BINDING_HANDLE, + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcNsBindingSetEntryNameA( + Binding: RPC_BINDING_HANDLE, + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerUseProtseqEp2A( + NetworkAddress: RPC_CSTR, + Protseq: RPC_CSTR, + MaxCalls: ::std::os::raw::c_uint, + Endpoint: RPC_CSTR, + SecurityDescriptor: *mut ::std::os::raw::c_void, + Policy: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerUseProtseqEp2W( + NetworkAddress: RPC_WSTR, + Protseq: RPC_WSTR, + MaxCalls: ::std::os::raw::c_uint, + Endpoint: RPC_WSTR, + SecurityDescriptor: *mut ::std::os::raw::c_void, + Policy: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerUseProtseq2W( + NetworkAddress: RPC_WSTR, + Protseq: RPC_WSTR, + MaxCalls: ::std::os::raw::c_uint, + SecurityDescriptor: *mut ::std::os::raw::c_void, + Policy: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerUseProtseq2A( + NetworkAddress: RPC_CSTR, + Protseq: RPC_CSTR, + MaxCalls: ::std::os::raw::c_uint, + SecurityDescriptor: *mut ::std::os::raw::c_void, + Policy: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerStartService( + Protseq: RPC_WSTR, + Endpoint: RPC_WSTR, + IfSpec: RPC_IF_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcBindingInqDynamicEndpointW( + Binding: RPC_BINDING_HANDLE, + DynamicEndpoint: *mut RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcBindingInqDynamicEndpointA( + Binding: RPC_BINDING_HANDLE, + DynamicEndpoint: *mut RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerCheckClientRestriction(Context: RPC_BINDING_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcBindingInqTransportType( + Binding: RPC_BINDING_HANDLE, + Type: *mut ::std::os::raw::c_uint, + ) -> RPC_STATUS; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_TRANSFER_SYNTAX { + pub Uuid: UUID, + pub VersMajor: ::std::os::raw::c_ushort, + pub VersMinor: ::std::os::raw::c_ushort, +} +pub type RPC_TRANSFER_SYNTAX = _RPC_TRANSFER_SYNTAX; +extern "C" { + pub fn I_RpcIfInqTransferSyntaxes( + RpcIfHandle: RPC_IF_HANDLE, + TransferSyntaxes: *mut RPC_TRANSFER_SYNTAX, + TransferSyntaxSize: ::std::os::raw::c_uint, + TransferSyntaxCount: *mut ::std::os::raw::c_uint, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_UuidCreate(Uuid: *mut UUID) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcUninitializeNdrOle(); +} +extern "C" { + pub fn I_RpcBindingCopy( + SourceBinding: RPC_BINDING_HANDLE, + DestinationBinding: *mut RPC_BINDING_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcBindingIsClientLocal( + BindingHandle: RPC_BINDING_HANDLE, + ClientLocalFlag: *mut ::std::os::raw::c_uint, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcBindingInqConnId( + Binding: RPC_BINDING_HANDLE, + ConnId: *mut *mut ::std::os::raw::c_void, + pfFirstCall: *mut ::std::os::raw::c_int, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcBindingCreateNP( + ServerName: RPC_WSTR, + ServiceName: RPC_WSTR, + NetworkOptions: RPC_WSTR, + Binding: *mut RPC_BINDING_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcSsDontSerializeContext(); +} +extern "C" { + pub fn I_RpcLaunchDatagramReceiveThread(pAddress: *mut ::std::os::raw::c_void) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerRegisterForwardFunction( + pForwardFunction: ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut UUID, + arg2: *mut RPC_VERSION, + arg3: *mut UUID, + arg4: *mut ::std::os::raw::c_uchar, + arg5: *mut *mut ::std::os::raw::c_void, + ) -> RPC_STATUS, + >, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerInqAddressChangeFn( + ) -> ::std::option::Option; +} +extern "C" { + pub fn I_RpcServerSetAddressChangeFn( + pAddressChangeFn: ::std::option::Option< + unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void), + >, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerInqLocalConnAddress( + Binding: RPC_BINDING_HANDLE, + Buffer: *mut ::std::os::raw::c_void, + BufferSize: *mut ::std::os::raw::c_ulong, + AddressFormat: *mut ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerInqRemoteConnAddress( + Binding: RPC_BINDING_HANDLE, + Buffer: *mut ::std::os::raw::c_void, + BufferSize: *mut ::std::os::raw::c_ulong, + AddressFormat: *mut ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcSessionStrictContextHandle(); +} +extern "C" { + pub fn I_RpcTurnOnEEInfoPropagation() -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcConnectionInqSockBuffSize( + RecvBuffSize: *mut ::std::os::raw::c_ulong, + SendBuffSize: *mut ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcConnectionSetSockBuffSize( + RecvBuffSize: ::std::os::raw::c_ulong, + SendBuffSize: ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +pub type RPCLT_PDU_FILTER_FUNC = ::std::option::Option< + unsafe extern "C" fn( + Buffer: *mut ::std::os::raw::c_void, + BufferLength: ::std::os::raw::c_uint, + fDatagram: ::std::os::raw::c_int, + ), +>; +pub type RPC_SETFILTER_FUNC = + ::std::option::Option; +extern "C" { + pub fn I_RpcServerStartListening(hWnd: *mut ::std::os::raw::c_void) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerStopListening() -> RPC_STATUS; +} +pub type RPC_BLOCKING_FN = ::std::option::Option< + unsafe extern "C" fn( + hWnd: *mut ::std::os::raw::c_void, + Context: *mut ::std::os::raw::c_void, + hSyncEvent: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS, +>; +extern "C" { + pub fn I_RpcBindingSetAsync( + Binding: RPC_BINDING_HANDLE, + BlockingFn: RPC_BLOCKING_FN, + ServerTid: ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcSetThreadParams( + fClientFree: ::std::os::raw::c_int, + Context: *mut ::std::os::raw::c_void, + hWndClient: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcWindowProc( + hWnd: *mut ::std::os::raw::c_void, + Message: ::std::os::raw::c_uint, + wParam: ::std::os::raw::c_uint, + lParam: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_uint; +} +extern "C" { + pub fn I_RpcServerUnregisterEndpointA(Protseq: RPC_CSTR, Endpoint: RPC_CSTR) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerUnregisterEndpointW(Protseq: RPC_WSTR, Endpoint: RPC_WSTR) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerInqTransportType(Type: *mut ::std::os::raw::c_uint) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcMapWin32Status(Status: RPC_STATUS) -> ::std::os::raw::c_long; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_C_OPT_COOKIE_AUTH_DESCRIPTOR { + pub BufferSize: ::std::os::raw::c_ulong, + pub Buffer: *mut ::std::os::raw::c_char, +} +pub type RPC_C_OPT_COOKIE_AUTH_DESCRIPTOR = _RPC_C_OPT_COOKIE_AUTH_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RDR_CALLOUT_STATE { + pub LastError: RPC_STATUS, + pub LastEEInfo: *mut ::std::os::raw::c_void, + pub LastCalledStage: RPC_HTTP_REDIRECTOR_STAGE, + pub ServerName: *mut ::std::os::raw::c_ushort, + pub ServerPort: *mut ::std::os::raw::c_ushort, + pub RemoteUser: *mut ::std::os::raw::c_ushort, + pub AuthType: *mut ::std::os::raw::c_ushort, + pub ResourceTypePresent: ::std::os::raw::c_uchar, + pub SessionIdPresent: ::std::os::raw::c_uchar, + pub InterfacePresent: ::std::os::raw::c_uchar, + pub ResourceType: UUID, + pub SessionId: UUID, + pub Interface: RPC_SYNTAX_IDENTIFIER, + pub CertContext: *mut ::std::os::raw::c_void, +} +pub type RDR_CALLOUT_STATE = _RDR_CALLOUT_STATE; +pub type I_RpcProxyIsValidMachineFn = ::std::option::Option< + unsafe extern "C" fn( + Machine: RPC_WSTR, + DotMachine: RPC_WSTR, + PortNumber: ::std::os::raw::c_ulong, + ) -> RPC_STATUS, +>; +pub type I_RpcProxyGetClientAddressFn = ::std::option::Option< + unsafe extern "C" fn( + Context: *mut ::std::os::raw::c_void, + Buffer: *mut ::std::os::raw::c_char, + BufferLength: *mut ::std::os::raw::c_ulong, + ) -> RPC_STATUS, +>; +pub type I_RpcProxyGetConnectionTimeoutFn = ::std::option::Option< + unsafe extern "C" fn(ConnectionTimeout: *mut ::std::os::raw::c_ulong) -> RPC_STATUS, +>; +pub type I_RpcPerformCalloutFn = ::std::option::Option< + unsafe extern "C" fn( + Context: *mut ::std::os::raw::c_void, + CallOutState: *mut RDR_CALLOUT_STATE, + Stage: RPC_HTTP_REDIRECTOR_STAGE, + ) -> RPC_STATUS, +>; +pub type I_RpcFreeCalloutStateFn = + ::std::option::Option; +pub type I_RpcProxyGetClientSessionAndResourceUUID = ::std::option::Option< + unsafe extern "C" fn( + Context: *mut ::std::os::raw::c_void, + SessionIdPresent: *mut ::std::os::raw::c_int, + SessionId: *mut UUID, + ResourceIdPresent: *mut ::std::os::raw::c_int, + ResourceId: *mut UUID, + ) -> RPC_STATUS, +>; +pub type I_RpcProxyFilterIfFn = ::std::option::Option< + unsafe extern "C" fn( + Context: *mut ::std::os::raw::c_void, + IfUuid: *mut UUID, + IfMajorVersion: ::std::os::raw::c_ushort, + fAllow: *mut ::std::os::raw::c_int, + ) -> RPC_STATUS, +>; +pub const RpcProxyPerfCounters_RpcCurrentUniqueUser: RpcProxyPerfCounters = 1; +pub const RpcProxyPerfCounters_RpcBackEndConnectionAttempts: RpcProxyPerfCounters = 2; +pub const RpcProxyPerfCounters_RpcBackEndConnectionFailed: RpcProxyPerfCounters = 3; +pub const RpcProxyPerfCounters_RpcRequestsPerSecond: RpcProxyPerfCounters = 4; +pub const RpcProxyPerfCounters_RpcIncomingConnections: RpcProxyPerfCounters = 5; +pub const RpcProxyPerfCounters_RpcIncomingBandwidth: RpcProxyPerfCounters = 6; +pub const RpcProxyPerfCounters_RpcOutgoingBandwidth: RpcProxyPerfCounters = 7; +pub const RpcProxyPerfCounters_RpcAttemptedLbsDecisions: RpcProxyPerfCounters = 8; +pub const RpcProxyPerfCounters_RpcFailedLbsDecisions: RpcProxyPerfCounters = 9; +pub const RpcProxyPerfCounters_RpcAttemptedLbsMessages: RpcProxyPerfCounters = 10; +pub const RpcProxyPerfCounters_RpcFailedLbsMessages: RpcProxyPerfCounters = 11; +pub const RpcProxyPerfCounters_RpcLastCounter: RpcProxyPerfCounters = 12; +pub type RpcProxyPerfCounters = ::std::os::raw::c_int; +pub use self::RpcProxyPerfCounters as RpcPerfCounters; +pub type I_RpcProxyUpdatePerfCounterFn = ::std::option::Option< + unsafe extern "C" fn( + Counter: RpcPerfCounters, + ModifyTrend: ::std::os::raw::c_int, + Size: ::std::os::raw::c_ulong, + ), +>; +pub type I_RpcProxyUpdatePerfCounterBackendServerFn = ::std::option::Option< + unsafe extern "C" fn( + MachineName: *mut ::std::os::raw::c_ushort, + IsConnectEvent: ::std::os::raw::c_int, + ), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagI_RpcProxyCallbackInterface { + pub IsValidMachineFn: I_RpcProxyIsValidMachineFn, + pub GetClientAddressFn: I_RpcProxyGetClientAddressFn, + pub GetConnectionTimeoutFn: I_RpcProxyGetConnectionTimeoutFn, + pub PerformCalloutFn: I_RpcPerformCalloutFn, + pub FreeCalloutStateFn: I_RpcFreeCalloutStateFn, + pub GetClientSessionAndResourceUUIDFn: I_RpcProxyGetClientSessionAndResourceUUID, + pub ProxyFilterIfFn: I_RpcProxyFilterIfFn, + pub RpcProxyUpdatePerfCounterFn: I_RpcProxyUpdatePerfCounterFn, + pub RpcProxyUpdatePerfCounterBackendServerFn: I_RpcProxyUpdatePerfCounterBackendServerFn, +} +pub type I_RpcProxyCallbackInterface = tagI_RpcProxyCallbackInterface; +extern "C" { + pub fn I_RpcProxyNewConnection( + ConnectionType: ::std::os::raw::c_ulong, + ServerAddress: *mut ::std::os::raw::c_ushort, + ServerPort: *mut ::std::os::raw::c_ushort, + MinConnTimeout: *mut ::std::os::raw::c_ushort, + ConnectionParameter: *mut ::std::os::raw::c_void, + CallOutState: *mut RDR_CALLOUT_STATE, + ProxyCallbackInterface: *mut I_RpcProxyCallbackInterface, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcReplyToClientWithStatus( + ConnectionParameter: *mut ::std::os::raw::c_void, + RpcStatus: RPC_STATUS, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcRecordCalloutFailure( + RpcStatus: RPC_STATUS, + CallOutState: *mut RDR_CALLOUT_STATE, + DllName: *mut ::std::os::raw::c_ushort, + ); +} +extern "C" { + pub fn I_RpcMgmtEnableDedicatedThreadPool() -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcGetDefaultSD(ppSecurityDescriptor: *mut *mut ::std::os::raw::c_void) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcOpenClientProcess( + Binding: RPC_BINDING_HANDLE, + DesiredAccess: ::std::os::raw::c_ulong, + ClientProcess: *mut *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcBindingIsServerLocal( + Binding: RPC_BINDING_HANDLE, + ServerLocalFlag: *mut ::std::os::raw::c_uint, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcBindingSetPrivateOption( + hBinding: RPC_BINDING_HANDLE, + option: ::std::os::raw::c_ulong, + optionValue: ULONG_PTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerSubscribeForDisconnectNotification( + Binding: RPC_BINDING_HANDLE, + hEvent: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerGetAssociationID( + Binding: RPC_BINDING_HANDLE, + AssociationID: *mut ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerDisableExceptionFilter() -> ::std::os::raw::c_long; +} +extern "C" { + pub fn I_RpcServerSubscribeForDisconnectNotification2( + Binding: RPC_BINDING_HANDLE, + hEvent: *mut ::std::os::raw::c_void, + SubscriptionId: *mut UUID, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcServerUnsubscribeForDisconnectNotification( + Binding: RPC_BINDING_HANDLE, + SubscriptionId: UUID, + ) -> RPC_STATUS; +} +pub type RPC_NS_HANDLE = *mut ::std::os::raw::c_void; +extern "C" { + pub fn RpcNsBindingExportA( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_CSTR, + IfSpec: RPC_IF_HANDLE, + BindingVec: *mut RPC_BINDING_VECTOR, + ObjectUuidVec: *mut UUID_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingUnexportA( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_CSTR, + IfSpec: RPC_IF_HANDLE, + ObjectUuidVec: *mut UUID_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingExportW( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_WSTR, + IfSpec: RPC_IF_HANDLE, + BindingVec: *mut RPC_BINDING_VECTOR, + ObjectUuidVec: *mut UUID_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingUnexportW( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_WSTR, + IfSpec: RPC_IF_HANDLE, + ObjectUuidVec: *mut UUID_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingExportPnPA( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_CSTR, + IfSpec: RPC_IF_HANDLE, + ObjectVector: *mut UUID_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingUnexportPnPA( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_CSTR, + IfSpec: RPC_IF_HANDLE, + ObjectVector: *mut UUID_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingExportPnPW( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_WSTR, + IfSpec: RPC_IF_HANDLE, + ObjectVector: *mut UUID_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingUnexportPnPW( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_WSTR, + IfSpec: RPC_IF_HANDLE, + ObjectVector: *mut UUID_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingLookupBeginA( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_CSTR, + IfSpec: RPC_IF_HANDLE, + ObjUuid: *mut UUID, + BindingMaxCount: ::std::os::raw::c_ulong, + LookupContext: *mut RPC_NS_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingLookupBeginW( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_WSTR, + IfSpec: RPC_IF_HANDLE, + ObjUuid: *mut UUID, + BindingMaxCount: ::std::os::raw::c_ulong, + LookupContext: *mut RPC_NS_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingLookupNext( + LookupContext: RPC_NS_HANDLE, + BindingVec: *mut *mut RPC_BINDING_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingLookupDone(LookupContext: *mut RPC_NS_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsGroupDeleteA( + GroupNameSyntax: ::std::os::raw::c_ulong, + GroupName: RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsGroupMbrAddA( + GroupNameSyntax: ::std::os::raw::c_ulong, + GroupName: RPC_CSTR, + MemberNameSyntax: ::std::os::raw::c_ulong, + MemberName: RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsGroupMbrRemoveA( + GroupNameSyntax: ::std::os::raw::c_ulong, + GroupName: RPC_CSTR, + MemberNameSyntax: ::std::os::raw::c_ulong, + MemberName: RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsGroupMbrInqBeginA( + GroupNameSyntax: ::std::os::raw::c_ulong, + GroupName: RPC_CSTR, + MemberNameSyntax: ::std::os::raw::c_ulong, + InquiryContext: *mut RPC_NS_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsGroupMbrInqNextA( + InquiryContext: RPC_NS_HANDLE, + MemberName: *mut RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsGroupDeleteW( + GroupNameSyntax: ::std::os::raw::c_ulong, + GroupName: RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsGroupMbrAddW( + GroupNameSyntax: ::std::os::raw::c_ulong, + GroupName: RPC_WSTR, + MemberNameSyntax: ::std::os::raw::c_ulong, + MemberName: RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsGroupMbrRemoveW( + GroupNameSyntax: ::std::os::raw::c_ulong, + GroupName: RPC_WSTR, + MemberNameSyntax: ::std::os::raw::c_ulong, + MemberName: RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsGroupMbrInqBeginW( + GroupNameSyntax: ::std::os::raw::c_ulong, + GroupName: RPC_WSTR, + MemberNameSyntax: ::std::os::raw::c_ulong, + InquiryContext: *mut RPC_NS_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsGroupMbrInqNextW( + InquiryContext: RPC_NS_HANDLE, + MemberName: *mut RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsGroupMbrInqDone(InquiryContext: *mut RPC_NS_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsProfileDeleteA( + ProfileNameSyntax: ::std::os::raw::c_ulong, + ProfileName: RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsProfileEltAddA( + ProfileNameSyntax: ::std::os::raw::c_ulong, + ProfileName: RPC_CSTR, + IfId: *mut RPC_IF_ID, + MemberNameSyntax: ::std::os::raw::c_ulong, + MemberName: RPC_CSTR, + Priority: ::std::os::raw::c_ulong, + Annotation: RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsProfileEltRemoveA( + ProfileNameSyntax: ::std::os::raw::c_ulong, + ProfileName: RPC_CSTR, + IfId: *mut RPC_IF_ID, + MemberNameSyntax: ::std::os::raw::c_ulong, + MemberName: RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsProfileEltInqBeginA( + ProfileNameSyntax: ::std::os::raw::c_ulong, + ProfileName: RPC_CSTR, + InquiryType: ::std::os::raw::c_ulong, + IfId: *mut RPC_IF_ID, + VersOption: ::std::os::raw::c_ulong, + MemberNameSyntax: ::std::os::raw::c_ulong, + MemberName: RPC_CSTR, + InquiryContext: *mut RPC_NS_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsProfileEltInqNextA( + InquiryContext: RPC_NS_HANDLE, + IfId: *mut RPC_IF_ID, + MemberName: *mut RPC_CSTR, + Priority: *mut ::std::os::raw::c_ulong, + Annotation: *mut RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsProfileDeleteW( + ProfileNameSyntax: ::std::os::raw::c_ulong, + ProfileName: RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsProfileEltAddW( + ProfileNameSyntax: ::std::os::raw::c_ulong, + ProfileName: RPC_WSTR, + IfId: *mut RPC_IF_ID, + MemberNameSyntax: ::std::os::raw::c_ulong, + MemberName: RPC_WSTR, + Priority: ::std::os::raw::c_ulong, + Annotation: RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsProfileEltRemoveW( + ProfileNameSyntax: ::std::os::raw::c_ulong, + ProfileName: RPC_WSTR, + IfId: *mut RPC_IF_ID, + MemberNameSyntax: ::std::os::raw::c_ulong, + MemberName: RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsProfileEltInqBeginW( + ProfileNameSyntax: ::std::os::raw::c_ulong, + ProfileName: RPC_WSTR, + InquiryType: ::std::os::raw::c_ulong, + IfId: *mut RPC_IF_ID, + VersOption: ::std::os::raw::c_ulong, + MemberNameSyntax: ::std::os::raw::c_ulong, + MemberName: RPC_WSTR, + InquiryContext: *mut RPC_NS_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsProfileEltInqNextW( + InquiryContext: RPC_NS_HANDLE, + IfId: *mut RPC_IF_ID, + MemberName: *mut RPC_WSTR, + Priority: *mut ::std::os::raw::c_ulong, + Annotation: *mut RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsProfileEltInqDone(InquiryContext: *mut RPC_NS_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsEntryObjectInqBeginA( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_CSTR, + InquiryContext: *mut RPC_NS_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsEntryObjectInqBeginW( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_WSTR, + InquiryContext: *mut RPC_NS_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsEntryObjectInqNext(InquiryContext: RPC_NS_HANDLE, ObjUuid: *mut UUID) + -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsEntryObjectInqDone(InquiryContext: *mut RPC_NS_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsEntryExpandNameA( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_CSTR, + ExpandedName: *mut RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsMgmtBindingUnexportA( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_CSTR, + IfId: *mut RPC_IF_ID, + VersOption: ::std::os::raw::c_ulong, + ObjectUuidVec: *mut UUID_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsMgmtEntryCreateA( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsMgmtEntryDeleteA( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_CSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsMgmtEntryInqIfIdsA( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_CSTR, + IfIdVec: *mut *mut RPC_IF_ID_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsMgmtHandleSetExpAge( + NsHandle: RPC_NS_HANDLE, + ExpirationAge: ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsMgmtInqExpAge(ExpirationAge: *mut ::std::os::raw::c_ulong) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsMgmtSetExpAge(ExpirationAge: ::std::os::raw::c_ulong) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsEntryExpandNameW( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_WSTR, + ExpandedName: *mut RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsMgmtBindingUnexportW( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_WSTR, + IfId: *mut RPC_IF_ID, + VersOption: ::std::os::raw::c_ulong, + ObjectUuidVec: *mut UUID_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsMgmtEntryCreateW( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsMgmtEntryDeleteW( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_WSTR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsMgmtEntryInqIfIdsW( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_WSTR, + IfIdVec: *mut *mut RPC_IF_ID_VECTOR, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingImportBeginA( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_CSTR, + IfSpec: RPC_IF_HANDLE, + ObjUuid: *mut UUID, + ImportContext: *mut RPC_NS_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingImportBeginW( + EntryNameSyntax: ::std::os::raw::c_ulong, + EntryName: RPC_WSTR, + IfSpec: RPC_IF_HANDLE, + ObjUuid: *mut UUID, + ImportContext: *mut RPC_NS_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingImportNext( + ImportContext: RPC_NS_HANDLE, + Binding: *mut RPC_BINDING_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingImportDone(ImportContext: *mut RPC_NS_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcNsBindingSelect( + BindingVec: *mut RPC_BINDING_VECTOR, + Binding: *mut RPC_BINDING_HANDLE, + ) -> RPC_STATUS; +} +pub const _RPC_NOTIFICATION_TYPES_RpcNotificationTypeNone: _RPC_NOTIFICATION_TYPES = 0; +pub const _RPC_NOTIFICATION_TYPES_RpcNotificationTypeEvent: _RPC_NOTIFICATION_TYPES = 1; +pub const _RPC_NOTIFICATION_TYPES_RpcNotificationTypeApc: _RPC_NOTIFICATION_TYPES = 2; +pub const _RPC_NOTIFICATION_TYPES_RpcNotificationTypeIoc: _RPC_NOTIFICATION_TYPES = 3; +pub const _RPC_NOTIFICATION_TYPES_RpcNotificationTypeHwnd: _RPC_NOTIFICATION_TYPES = 4; +pub const _RPC_NOTIFICATION_TYPES_RpcNotificationTypeCallback: _RPC_NOTIFICATION_TYPES = 5; +pub type _RPC_NOTIFICATION_TYPES = ::std::os::raw::c_int; +pub use self::_RPC_NOTIFICATION_TYPES as RPC_NOTIFICATION_TYPES; +pub const _RPC_ASYNC_EVENT_RpcCallComplete: _RPC_ASYNC_EVENT = 0; +pub const _RPC_ASYNC_EVENT_RpcSendComplete: _RPC_ASYNC_EVENT = 1; +pub const _RPC_ASYNC_EVENT_RpcReceiveComplete: _RPC_ASYNC_EVENT = 2; +pub const _RPC_ASYNC_EVENT_RpcClientDisconnect: _RPC_ASYNC_EVENT = 3; +pub const _RPC_ASYNC_EVENT_RpcClientCancel: _RPC_ASYNC_EVENT = 4; +pub type _RPC_ASYNC_EVENT = ::std::os::raw::c_int; +pub use self::_RPC_ASYNC_EVENT as RPC_ASYNC_EVENT; +pub type PFN_RPCNOTIFICATION_ROUTINE = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut _RPC_ASYNC_STATE, + arg2: *mut ::std::os::raw::c_void, + arg3: RPC_ASYNC_EVENT, + ), +>; +#[repr(C)] +#[derive(Copy, Clone)] +pub union _RPC_ASYNC_NOTIFICATION_INFO { + pub APC: _RPC_ASYNC_NOTIFICATION_INFO__bindgen_ty_1, + pub IOC: _RPC_ASYNC_NOTIFICATION_INFO__bindgen_ty_2, + pub HWND: _RPC_ASYNC_NOTIFICATION_INFO__bindgen_ty_3, + pub hEvent: HANDLE, + pub NotificationRoutine: PFN_RPCNOTIFICATION_ROUTINE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_ASYNC_NOTIFICATION_INFO__bindgen_ty_1 { + pub NotificationRoutine: PFN_RPCNOTIFICATION_ROUTINE, + pub hThread: HANDLE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_ASYNC_NOTIFICATION_INFO__bindgen_ty_2 { + pub hIOPort: HANDLE, + pub dwNumberOfBytesTransferred: DWORD, + pub dwCompletionKey: DWORD_PTR, + pub lpOverlapped: LPOVERLAPPED, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_ASYNC_NOTIFICATION_INFO__bindgen_ty_3 { + pub hWnd: HWND, + pub Msg: UINT, +} +pub type RPC_ASYNC_NOTIFICATION_INFO = _RPC_ASYNC_NOTIFICATION_INFO; +pub type PRPC_ASYNC_NOTIFICATION_INFO = *mut _RPC_ASYNC_NOTIFICATION_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _RPC_ASYNC_STATE { + pub Size: ::std::os::raw::c_uint, + pub Signature: ::std::os::raw::c_ulong, + pub Lock: ::std::os::raw::c_long, + pub Flags: ::std::os::raw::c_ulong, + pub StubInfo: *mut ::std::os::raw::c_void, + pub UserInfo: *mut ::std::os::raw::c_void, + pub RuntimeInfo: *mut ::std::os::raw::c_void, + pub Event: RPC_ASYNC_EVENT, + pub NotificationType: RPC_NOTIFICATION_TYPES, + pub u: RPC_ASYNC_NOTIFICATION_INFO, + pub Reserved: [LONG_PTR; 4usize], +} +pub type RPC_ASYNC_STATE = _RPC_ASYNC_STATE; +pub type PRPC_ASYNC_STATE = *mut _RPC_ASYNC_STATE; +extern "C" { + pub fn RpcAsyncRegisterInfo(pAsync: PRPC_ASYNC_STATE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcAsyncInitializeHandle( + pAsync: PRPC_ASYNC_STATE, + Size: ::std::os::raw::c_uint, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcAsyncGetCallStatus(pAsync: PRPC_ASYNC_STATE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcAsyncCompleteCall( + pAsync: PRPC_ASYNC_STATE, + Reply: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcAsyncAbortCall( + pAsync: PRPC_ASYNC_STATE, + ExceptionCode: ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcAsyncCancelCall(pAsync: PRPC_ASYNC_STATE, fAbort: BOOL) -> RPC_STATUS; +} +pub const tagExtendedErrorParamTypes_eeptAnsiString: tagExtendedErrorParamTypes = 1; +pub const tagExtendedErrorParamTypes_eeptUnicodeString: tagExtendedErrorParamTypes = 2; +pub const tagExtendedErrorParamTypes_eeptLongVal: tagExtendedErrorParamTypes = 3; +pub const tagExtendedErrorParamTypes_eeptShortVal: tagExtendedErrorParamTypes = 4; +pub const tagExtendedErrorParamTypes_eeptPointerVal: tagExtendedErrorParamTypes = 5; +pub const tagExtendedErrorParamTypes_eeptNone: tagExtendedErrorParamTypes = 6; +pub const tagExtendedErrorParamTypes_eeptBinary: tagExtendedErrorParamTypes = 7; +pub type tagExtendedErrorParamTypes = ::std::os::raw::c_int; +pub use self::tagExtendedErrorParamTypes as ExtendedErrorParamTypes; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagBinaryParam { + pub Buffer: *mut ::std::os::raw::c_void, + pub Size: ::std::os::raw::c_short, +} +pub type BinaryParam = tagBinaryParam; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagRPC_EE_INFO_PARAM { + pub ParameterType: ExtendedErrorParamTypes, + pub u: tagRPC_EE_INFO_PARAM__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagRPC_EE_INFO_PARAM__bindgen_ty_1 { + pub AnsiString: LPSTR, + pub UnicodeString: LPWSTR, + pub LVal: ::std::os::raw::c_long, + pub SVal: ::std::os::raw::c_short, + pub PVal: ULONGLONG, + pub BVal: BinaryParam, +} +pub type RPC_EE_INFO_PARAM = tagRPC_EE_INFO_PARAM; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagRPC_EXTENDED_ERROR_INFO { + pub Version: ULONG, + pub ComputerName: LPWSTR, + pub ProcessID: ULONG, + pub u: tagRPC_EXTENDED_ERROR_INFO__bindgen_ty_1, + pub GeneratingComponent: ULONG, + pub Status: ULONG, + pub DetectionLocation: USHORT, + pub Flags: USHORT, + pub NumberOfParameters: ::std::os::raw::c_int, + pub Parameters: [RPC_EE_INFO_PARAM; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagRPC_EXTENDED_ERROR_INFO__bindgen_ty_1 { + pub SystemTime: SYSTEMTIME, + pub FileTime: FILETIME, +} +pub type RPC_EXTENDED_ERROR_INFO = tagRPC_EXTENDED_ERROR_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRPC_ERROR_ENUM_HANDLE { + pub Signature: ULONG, + pub CurrentPos: *mut ::std::os::raw::c_void, + pub Head: *mut ::std::os::raw::c_void, +} +pub type RPC_ERROR_ENUM_HANDLE = tagRPC_ERROR_ENUM_HANDLE; +extern "C" { + pub fn RpcErrorStartEnumeration(EnumHandle: *mut RPC_ERROR_ENUM_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcErrorGetNextRecord( + EnumHandle: *mut RPC_ERROR_ENUM_HANDLE, + CopyStrings: BOOL, + ErrorInfo: *mut RPC_EXTENDED_ERROR_INFO, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcErrorEndEnumeration(EnumHandle: *mut RPC_ERROR_ENUM_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcErrorResetEnumeration(EnumHandle: *mut RPC_ERROR_ENUM_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcErrorGetNumberOfRecords( + EnumHandle: *mut RPC_ERROR_ENUM_HANDLE, + Records: *mut ::std::os::raw::c_int, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcErrorSaveErrorInfo( + EnumHandle: *mut RPC_ERROR_ENUM_HANDLE, + ErrorBlob: *mut PVOID, + BlobSize: *mut usize, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcErrorLoadErrorInfo( + ErrorBlob: PVOID, + BlobSize: usize, + EnumHandle: *mut RPC_ERROR_ENUM_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcErrorAddRecord(ErrorInfo: *mut RPC_EXTENDED_ERROR_INFO) -> RPC_STATUS; +} +extern "C" { + pub fn RpcErrorClearInformation(); +} +extern "C" { + pub fn RpcAsyncCleanupThread(dwTimeout: DWORD) -> RPC_STATUS; +} +extern "C" { + pub fn RpcGetAuthorizationContextForClient( + ClientBinding: RPC_BINDING_HANDLE, + ImpersonateOnReturn: BOOL, + Reserved1: PVOID, + pExpirationTime: PLARGE_INTEGER, + Reserved2: LUID, + Reserved3: DWORD, + Reserved4: PVOID, + pAuthzClientContext: *mut PVOID, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcFreeAuthorizationContext(pAuthzClientContext: *mut PVOID) -> RPC_STATUS; +} +extern "C" { + pub fn RpcSsContextLockExclusive( + ServerBindingHandle: RPC_BINDING_HANDLE, + UserContext: PVOID, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcSsContextLockShared( + ServerBindingHandle: RPC_BINDING_HANDLE, + UserContext: PVOID, + ) -> RPC_STATUS; +} +pub const tagRpcLocalAddressFormat_rlafInvalid: tagRpcLocalAddressFormat = 0; +pub const tagRpcLocalAddressFormat_rlafIPv4: tagRpcLocalAddressFormat = 1; +pub const tagRpcLocalAddressFormat_rlafIPv6: tagRpcLocalAddressFormat = 2; +pub type tagRpcLocalAddressFormat = ::std::os::raw::c_int; +pub use self::tagRpcLocalAddressFormat as RpcLocalAddressFormat; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RPC_CALL_LOCAL_ADDRESS_V1 { + pub Version: ::std::os::raw::c_uint, + pub Buffer: *mut ::std::os::raw::c_void, + pub BufferSize: ::std::os::raw::c_ulong, + pub AddressFormat: RpcLocalAddressFormat, +} +pub type RPC_CALL_LOCAL_ADDRESS_V1 = _RPC_CALL_LOCAL_ADDRESS_V1; +pub type PRPC_CALL_LOCAL_ADDRESS_V1 = *mut _RPC_CALL_LOCAL_ADDRESS_V1; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRPC_CALL_ATTRIBUTES_V1_W { + pub Version: ::std::os::raw::c_uint, + pub Flags: ::std::os::raw::c_ulong, + pub ServerPrincipalNameBufferLength: ::std::os::raw::c_ulong, + pub ServerPrincipalName: *mut ::std::os::raw::c_ushort, + pub ClientPrincipalNameBufferLength: ::std::os::raw::c_ulong, + pub ClientPrincipalName: *mut ::std::os::raw::c_ushort, + pub AuthenticationLevel: ::std::os::raw::c_ulong, + pub AuthenticationService: ::std::os::raw::c_ulong, + pub NullSession: BOOL, +} +pub type RPC_CALL_ATTRIBUTES_V1_W = tagRPC_CALL_ATTRIBUTES_V1_W; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRPC_CALL_ATTRIBUTES_V1_A { + pub Version: ::std::os::raw::c_uint, + pub Flags: ::std::os::raw::c_ulong, + pub ServerPrincipalNameBufferLength: ::std::os::raw::c_ulong, + pub ServerPrincipalName: *mut ::std::os::raw::c_uchar, + pub ClientPrincipalNameBufferLength: ::std::os::raw::c_ulong, + pub ClientPrincipalName: *mut ::std::os::raw::c_uchar, + pub AuthenticationLevel: ::std::os::raw::c_ulong, + pub AuthenticationService: ::std::os::raw::c_ulong, + pub NullSession: BOOL, +} +pub type RPC_CALL_ATTRIBUTES_V1_A = tagRPC_CALL_ATTRIBUTES_V1_A; +pub const tagRpcCallType_rctInvalid: tagRpcCallType = 0; +pub const tagRpcCallType_rctNormal: tagRpcCallType = 1; +pub const tagRpcCallType_rctTraining: tagRpcCallType = 2; +pub const tagRpcCallType_rctGuaranteed: tagRpcCallType = 3; +pub type tagRpcCallType = ::std::os::raw::c_int; +pub use self::tagRpcCallType as RpcCallType; +pub const tagRpcCallClientLocality_rcclInvalid: tagRpcCallClientLocality = 0; +pub const tagRpcCallClientLocality_rcclLocal: tagRpcCallClientLocality = 1; +pub const tagRpcCallClientLocality_rcclRemote: tagRpcCallClientLocality = 2; +pub const tagRpcCallClientLocality_rcclClientUnknownLocality: tagRpcCallClientLocality = 3; +pub type tagRpcCallClientLocality = ::std::os::raw::c_int; +pub use self::tagRpcCallClientLocality as RpcCallClientLocality; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRPC_CALL_ATTRIBUTES_V2_W { + pub Version: ::std::os::raw::c_uint, + pub Flags: ::std::os::raw::c_ulong, + pub ServerPrincipalNameBufferLength: ::std::os::raw::c_ulong, + pub ServerPrincipalName: *mut ::std::os::raw::c_ushort, + pub ClientPrincipalNameBufferLength: ::std::os::raw::c_ulong, + pub ClientPrincipalName: *mut ::std::os::raw::c_ushort, + pub AuthenticationLevel: ::std::os::raw::c_ulong, + pub AuthenticationService: ::std::os::raw::c_ulong, + pub NullSession: BOOL, + pub KernelModeCaller: BOOL, + pub ProtocolSequence: ::std::os::raw::c_ulong, + pub IsClientLocal: RpcCallClientLocality, + pub ClientPID: HANDLE, + pub CallStatus: ::std::os::raw::c_ulong, + pub CallType: RpcCallType, + pub CallLocalAddress: *mut RPC_CALL_LOCAL_ADDRESS_V1, + pub OpNum: ::std::os::raw::c_ushort, + pub InterfaceUuid: UUID, +} +pub type RPC_CALL_ATTRIBUTES_V2_W = tagRPC_CALL_ATTRIBUTES_V2_W; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRPC_CALL_ATTRIBUTES_V2_A { + pub Version: ::std::os::raw::c_uint, + pub Flags: ::std::os::raw::c_ulong, + pub ServerPrincipalNameBufferLength: ::std::os::raw::c_ulong, + pub ServerPrincipalName: *mut ::std::os::raw::c_uchar, + pub ClientPrincipalNameBufferLength: ::std::os::raw::c_ulong, + pub ClientPrincipalName: *mut ::std::os::raw::c_uchar, + pub AuthenticationLevel: ::std::os::raw::c_ulong, + pub AuthenticationService: ::std::os::raw::c_ulong, + pub NullSession: BOOL, + pub KernelModeCaller: BOOL, + pub ProtocolSequence: ::std::os::raw::c_ulong, + pub IsClientLocal: ::std::os::raw::c_ulong, + pub ClientPID: HANDLE, + pub CallStatus: ::std::os::raw::c_ulong, + pub CallType: RpcCallType, + pub CallLocalAddress: *mut RPC_CALL_LOCAL_ADDRESS_V1, + pub OpNum: ::std::os::raw::c_ushort, + pub InterfaceUuid: UUID, +} +pub type RPC_CALL_ATTRIBUTES_V2_A = tagRPC_CALL_ATTRIBUTES_V2_A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRPC_CALL_ATTRIBUTES_V3_W { + pub Version: ::std::os::raw::c_uint, + pub Flags: ::std::os::raw::c_ulong, + pub ServerPrincipalNameBufferLength: ::std::os::raw::c_ulong, + pub ServerPrincipalName: *mut ::std::os::raw::c_ushort, + pub ClientPrincipalNameBufferLength: ::std::os::raw::c_ulong, + pub ClientPrincipalName: *mut ::std::os::raw::c_ushort, + pub AuthenticationLevel: ::std::os::raw::c_ulong, + pub AuthenticationService: ::std::os::raw::c_ulong, + pub NullSession: BOOL, + pub KernelModeCaller: BOOL, + pub ProtocolSequence: ::std::os::raw::c_ulong, + pub IsClientLocal: RpcCallClientLocality, + pub ClientPID: HANDLE, + pub CallStatus: ::std::os::raw::c_ulong, + pub CallType: RpcCallType, + pub CallLocalAddress: *mut RPC_CALL_LOCAL_ADDRESS_V1, + pub OpNum: ::std::os::raw::c_ushort, + pub InterfaceUuid: UUID, + pub ClientIdentifierBufferLength: ::std::os::raw::c_ulong, + pub ClientIdentifier: *mut ::std::os::raw::c_uchar, +} +pub type RPC_CALL_ATTRIBUTES_V3_W = tagRPC_CALL_ATTRIBUTES_V3_W; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRPC_CALL_ATTRIBUTES_V3_A { + pub Version: ::std::os::raw::c_uint, + pub Flags: ::std::os::raw::c_ulong, + pub ServerPrincipalNameBufferLength: ::std::os::raw::c_ulong, + pub ServerPrincipalName: *mut ::std::os::raw::c_uchar, + pub ClientPrincipalNameBufferLength: ::std::os::raw::c_ulong, + pub ClientPrincipalName: *mut ::std::os::raw::c_uchar, + pub AuthenticationLevel: ::std::os::raw::c_ulong, + pub AuthenticationService: ::std::os::raw::c_ulong, + pub NullSession: BOOL, + pub KernelModeCaller: BOOL, + pub ProtocolSequence: ::std::os::raw::c_ulong, + pub IsClientLocal: ::std::os::raw::c_ulong, + pub ClientPID: HANDLE, + pub CallStatus: ::std::os::raw::c_ulong, + pub CallType: RpcCallType, + pub CallLocalAddress: *mut RPC_CALL_LOCAL_ADDRESS_V1, + pub OpNum: ::std::os::raw::c_ushort, + pub InterfaceUuid: UUID, + pub ClientIdentifierBufferLength: ::std::os::raw::c_ulong, + pub ClientIdentifier: *mut ::std::os::raw::c_uchar, +} +pub type RPC_CALL_ATTRIBUTES_V3_A = tagRPC_CALL_ATTRIBUTES_V3_A; +extern "C" { + pub fn RpcServerInqCallAttributesW( + ClientBinding: RPC_BINDING_HANDLE, + RpcCallAttributes: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerInqCallAttributesA( + ClientBinding: RPC_BINDING_HANDLE, + RpcCallAttributes: *mut ::std::os::raw::c_void, + ) -> RPC_STATUS; +} +pub type RPC_CALL_ATTRIBUTES = RPC_CALL_ATTRIBUTES_V3_A; +pub const _RPC_NOTIFICATIONS_RpcNotificationCallNone: _RPC_NOTIFICATIONS = 0; +pub const _RPC_NOTIFICATIONS_RpcNotificationClientDisconnect: _RPC_NOTIFICATIONS = 1; +pub const _RPC_NOTIFICATIONS_RpcNotificationCallCancel: _RPC_NOTIFICATIONS = 2; +pub type _RPC_NOTIFICATIONS = ::std::os::raw::c_int; +pub use self::_RPC_NOTIFICATIONS as RPC_NOTIFICATIONS; +extern "C" { + pub fn RpcServerSubscribeForNotification( + Binding: RPC_BINDING_HANDLE, + Notification: RPC_NOTIFICATIONS, + NotificationType: RPC_NOTIFICATION_TYPES, + NotificationInfo: *mut RPC_ASYNC_NOTIFICATION_INFO, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcServerUnsubscribeForNotification( + Binding: RPC_BINDING_HANDLE, + Notification: RPC_NOTIFICATIONS, + NotificationsQueued: *mut ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingBind( + pAsync: PRPC_ASYNC_STATE, + Binding: RPC_BINDING_HANDLE, + IfSpec: RPC_IF_HANDLE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcBindingUnbind(Binding: RPC_BINDING_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcAsyncSetHandle(Message: PRPC_MESSAGE, pAsync: PRPC_ASYNC_STATE) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcAsyncAbortCall( + pAsync: PRPC_ASYNC_STATE, + ExceptionCode: ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcExceptionFilter(ExceptionCode: ::std::os::raw::c_ulong) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn I_RpcBindingInqClientTokenAttributes( + Binding: RPC_BINDING_HANDLE, + TokenId: *mut LUID, + AuthenticationId: *mut LUID, + ModifiedId: *mut LUID, + ) -> RPC_STATUS; +} +extern "C" { + pub fn CommandLineToArgvW( + lpCmdLine: LPCWSTR, + pNumArgs: *mut ::std::os::raw::c_int, + ) -> *mut LPWSTR; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HDROP__ { + pub unused: ::std::os::raw::c_int, +} +pub type HDROP = *mut HDROP__; +extern "C" { + pub fn DragQueryFileA(hDrop: HDROP, iFile: UINT, lpszFile: LPSTR, cch: UINT) -> UINT; +} +extern "C" { + pub fn DragQueryFileW(hDrop: HDROP, iFile: UINT, lpszFile: LPWSTR, cch: UINT) -> UINT; +} +extern "C" { + pub fn DragQueryPoint(hDrop: HDROP, ppt: *mut POINT) -> BOOL; +} +extern "C" { + pub fn DragFinish(hDrop: HDROP); +} +extern "C" { + pub fn DragAcceptFiles(hWnd: HWND, fAccept: BOOL); +} +extern "C" { + pub fn ShellExecuteA( + hwnd: HWND, + lpOperation: LPCSTR, + lpFile: LPCSTR, + lpParameters: LPCSTR, + lpDirectory: LPCSTR, + nShowCmd: INT, + ) -> HINSTANCE; +} +extern "C" { + pub fn ShellExecuteW( + hwnd: HWND, + lpOperation: LPCWSTR, + lpFile: LPCWSTR, + lpParameters: LPCWSTR, + lpDirectory: LPCWSTR, + nShowCmd: INT, + ) -> HINSTANCE; +} +extern "C" { + pub fn FindExecutableA(lpFile: LPCSTR, lpDirectory: LPCSTR, lpResult: LPSTR) -> HINSTANCE; +} +extern "C" { + pub fn FindExecutableW(lpFile: LPCWSTR, lpDirectory: LPCWSTR, lpResult: LPWSTR) -> HINSTANCE; +} +extern "C" { + pub fn ShellAboutA(hWnd: HWND, szApp: LPCSTR, szOtherStuff: LPCSTR, hIcon: HICON) -> INT; +} +extern "C" { + pub fn ShellAboutW(hWnd: HWND, szApp: LPCWSTR, szOtherStuff: LPCWSTR, hIcon: HICON) -> INT; +} +extern "C" { + pub fn DuplicateIcon(hInst: HINSTANCE, hIcon: HICON) -> HICON; +} +extern "C" { + pub fn ExtractAssociatedIconA(hInst: HINSTANCE, pszIconPath: LPSTR, piIcon: *mut WORD) + -> HICON; +} +extern "C" { + pub fn ExtractAssociatedIconW( + hInst: HINSTANCE, + pszIconPath: LPWSTR, + piIcon: *mut WORD, + ) -> HICON; +} +extern "C" { + pub fn ExtractAssociatedIconExA( + hInst: HINSTANCE, + pszIconPath: LPSTR, + piIconIndex: *mut WORD, + piIconId: *mut WORD, + ) -> HICON; +} +extern "C" { + pub fn ExtractAssociatedIconExW( + hInst: HINSTANCE, + pszIconPath: LPWSTR, + piIconIndex: *mut WORD, + piIconId: *mut WORD, + ) -> HICON; +} +extern "C" { + pub fn ExtractIconA(hInst: HINSTANCE, pszExeFileName: LPCSTR, nIconIndex: UINT) -> HICON; +} +extern "C" { + pub fn ExtractIconW(hInst: HINSTANCE, pszExeFileName: LPCWSTR, nIconIndex: UINT) -> HICON; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRAGINFOA { + pub uSize: UINT, + pub pt: POINT, + pub fNC: BOOL, + pub lpFileList: PZZSTR, + pub grfKeyState: DWORD, +} +pub type DRAGINFOA = _DRAGINFOA; +pub type LPDRAGINFOA = *mut _DRAGINFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRAGINFOW { + pub uSize: UINT, + pub pt: POINT, + pub fNC: BOOL, + pub lpFileList: PZZWSTR, + pub grfKeyState: DWORD, +} +pub type DRAGINFOW = _DRAGINFOW; +pub type LPDRAGINFOW = *mut _DRAGINFOW; +pub type DRAGINFO = DRAGINFOA; +pub type LPDRAGINFO = LPDRAGINFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _AppBarData { + pub cbSize: DWORD, + pub hWnd: HWND, + pub uCallbackMessage: UINT, + pub uEdge: UINT, + pub rc: RECT, + pub lParam: LPARAM, +} +pub type APPBARDATA = _AppBarData; +pub type PAPPBARDATA = *mut _AppBarData; +extern "C" { + pub fn SHAppBarMessage(dwMessage: DWORD, pData: PAPPBARDATA) -> UINT_PTR; +} +extern "C" { + pub fn DoEnvironmentSubstA(pszSrc: LPSTR, cchSrc: UINT) -> DWORD; +} +extern "C" { + pub fn DoEnvironmentSubstW(pszSrc: LPWSTR, cchSrc: UINT) -> DWORD; +} +extern "C" { + pub fn ExtractIconExA( + lpszFile: LPCSTR, + nIconIndex: ::std::os::raw::c_int, + phiconLarge: *mut HICON, + phiconSmall: *mut HICON, + nIcons: UINT, + ) -> UINT; +} +extern "C" { + pub fn ExtractIconExW( + lpszFile: LPCWSTR, + nIconIndex: ::std::os::raw::c_int, + phiconLarge: *mut HICON, + phiconSmall: *mut HICON, + nIcons: UINT, + ) -> UINT; +} +pub type FILEOP_FLAGS = WORD; +pub type PRINTEROP_FLAGS = WORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SHFILEOPSTRUCTA { + pub hwnd: HWND, + pub wFunc: UINT, + pub pFrom: PCZZSTR, + pub pTo: PCZZSTR, + pub fFlags: FILEOP_FLAGS, + pub fAnyOperationsAborted: BOOL, + pub hNameMappings: LPVOID, + pub lpszProgressTitle: PCSTR, +} +pub type SHFILEOPSTRUCTA = _SHFILEOPSTRUCTA; +pub type LPSHFILEOPSTRUCTA = *mut _SHFILEOPSTRUCTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SHFILEOPSTRUCTW { + pub hwnd: HWND, + pub wFunc: UINT, + pub pFrom: PCZZWSTR, + pub pTo: PCZZWSTR, + pub fFlags: FILEOP_FLAGS, + pub fAnyOperationsAborted: BOOL, + pub hNameMappings: LPVOID, + pub lpszProgressTitle: PCWSTR, +} +pub type SHFILEOPSTRUCTW = _SHFILEOPSTRUCTW; +pub type LPSHFILEOPSTRUCTW = *mut _SHFILEOPSTRUCTW; +pub type SHFILEOPSTRUCT = SHFILEOPSTRUCTA; +pub type LPSHFILEOPSTRUCT = LPSHFILEOPSTRUCTA; +extern "C" { + pub fn SHFileOperationA(lpFileOp: LPSHFILEOPSTRUCTA) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SHFileOperationW(lpFileOp: LPSHFILEOPSTRUCTW) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SHFreeNameMappings(hNameMappings: HANDLE); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SHNAMEMAPPINGA { + pub pszOldPath: LPSTR, + pub pszNewPath: LPSTR, + pub cchOldPath: ::std::os::raw::c_int, + pub cchNewPath: ::std::os::raw::c_int, +} +pub type SHNAMEMAPPINGA = _SHNAMEMAPPINGA; +pub type LPSHNAMEMAPPINGA = *mut _SHNAMEMAPPINGA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SHNAMEMAPPINGW { + pub pszOldPath: LPWSTR, + pub pszNewPath: LPWSTR, + pub cchOldPath: ::std::os::raw::c_int, + pub cchNewPath: ::std::os::raw::c_int, +} +pub type SHNAMEMAPPINGW = _SHNAMEMAPPINGW; +pub type LPSHNAMEMAPPINGW = *mut _SHNAMEMAPPINGW; +pub type SHNAMEMAPPING = SHNAMEMAPPINGA; +pub type LPSHNAMEMAPPING = LPSHNAMEMAPPINGA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _SHELLEXECUTEINFOA { + pub cbSize: DWORD, + pub fMask: ULONG, + pub hwnd: HWND, + pub lpVerb: LPCSTR, + pub lpFile: LPCSTR, + pub lpParameters: LPCSTR, + pub lpDirectory: LPCSTR, + pub nShow: ::std::os::raw::c_int, + pub hInstApp: HINSTANCE, + pub lpIDList: *mut ::std::os::raw::c_void, + pub lpClass: LPCSTR, + pub hkeyClass: HKEY, + pub dwHotKey: DWORD, + pub __bindgen_anon_1: _SHELLEXECUTEINFOA__bindgen_ty_1, + pub hProcess: HANDLE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SHELLEXECUTEINFOA__bindgen_ty_1 { + pub hIcon: HANDLE, + pub hMonitor: HANDLE, +} +pub type SHELLEXECUTEINFOA = _SHELLEXECUTEINFOA; +pub type LPSHELLEXECUTEINFOA = *mut _SHELLEXECUTEINFOA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _SHELLEXECUTEINFOW { + pub cbSize: DWORD, + pub fMask: ULONG, + pub hwnd: HWND, + pub lpVerb: LPCWSTR, + pub lpFile: LPCWSTR, + pub lpParameters: LPCWSTR, + pub lpDirectory: LPCWSTR, + pub nShow: ::std::os::raw::c_int, + pub hInstApp: HINSTANCE, + pub lpIDList: *mut ::std::os::raw::c_void, + pub lpClass: LPCWSTR, + pub hkeyClass: HKEY, + pub dwHotKey: DWORD, + pub __bindgen_anon_1: _SHELLEXECUTEINFOW__bindgen_ty_1, + pub hProcess: HANDLE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SHELLEXECUTEINFOW__bindgen_ty_1 { + pub hIcon: HANDLE, + pub hMonitor: HANDLE, +} +pub type SHELLEXECUTEINFOW = _SHELLEXECUTEINFOW; +pub type LPSHELLEXECUTEINFOW = *mut _SHELLEXECUTEINFOW; +pub type SHELLEXECUTEINFO = SHELLEXECUTEINFOA; +pub type LPSHELLEXECUTEINFO = LPSHELLEXECUTEINFOA; +extern "C" { + pub fn ShellExecuteExA(pExecInfo: *mut SHELLEXECUTEINFOA) -> BOOL; +} +extern "C" { + pub fn ShellExecuteExW(pExecInfo: *mut SHELLEXECUTEINFOW) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SHCREATEPROCESSINFOW { + pub cbSize: DWORD, + pub fMask: ULONG, + pub hwnd: HWND, + pub pszFile: LPCWSTR, + pub pszParameters: LPCWSTR, + pub pszCurrentDirectory: LPCWSTR, + pub hUserToken: HANDLE, + pub lpProcessAttributes: LPSECURITY_ATTRIBUTES, + pub lpThreadAttributes: LPSECURITY_ATTRIBUTES, + pub bInheritHandles: BOOL, + pub dwCreationFlags: DWORD, + pub lpStartupInfo: LPSTARTUPINFOW, + pub lpProcessInformation: LPPROCESS_INFORMATION, +} +pub type SHCREATEPROCESSINFOW = _SHCREATEPROCESSINFOW; +pub type PSHCREATEPROCESSINFOW = *mut _SHCREATEPROCESSINFOW; +extern "C" { + pub fn SHCreateProcessAsUserW(pscpi: PSHCREATEPROCESSINFOW) -> BOOL; +} +extern "C" { + pub fn SHEvaluateSystemCommandTemplate( + pszCmdTemplate: PCWSTR, + ppszApplication: *mut PWSTR, + ppszCommandLine: *mut PWSTR, + ppszParameters: *mut PWSTR, + ) -> HRESULT; +} +pub const ASSOCCLASS_ASSOCCLASS_SHELL_KEY: ASSOCCLASS = 0; +pub const ASSOCCLASS_ASSOCCLASS_PROGID_KEY: ASSOCCLASS = 1; +pub const ASSOCCLASS_ASSOCCLASS_PROGID_STR: ASSOCCLASS = 2; +pub const ASSOCCLASS_ASSOCCLASS_CLSID_KEY: ASSOCCLASS = 3; +pub const ASSOCCLASS_ASSOCCLASS_CLSID_STR: ASSOCCLASS = 4; +pub const ASSOCCLASS_ASSOCCLASS_APP_KEY: ASSOCCLASS = 5; +pub const ASSOCCLASS_ASSOCCLASS_APP_STR: ASSOCCLASS = 6; +pub const ASSOCCLASS_ASSOCCLASS_SYSTEM_STR: ASSOCCLASS = 7; +pub const ASSOCCLASS_ASSOCCLASS_FOLDER: ASSOCCLASS = 8; +pub const ASSOCCLASS_ASSOCCLASS_STAR: ASSOCCLASS = 9; +pub const ASSOCCLASS_ASSOCCLASS_FIXED_PROGID_STR: ASSOCCLASS = 10; +pub const ASSOCCLASS_ASSOCCLASS_PROTOCOL_STR: ASSOCCLASS = 11; +pub type ASSOCCLASS = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ASSOCIATIONELEMENT { + pub ac: ASSOCCLASS, + pub hkClass: HKEY, + pub pszClass: PCWSTR, +} +extern "C" { + pub fn AssocCreateForClasses( + rgClasses: *const ASSOCIATIONELEMENT, + cClasses: ULONG, + riid: *const IID, + ppv: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SHQUERYRBINFO { + pub cbSize: DWORD, + pub i64Size: ::std::os::raw::c_longlong, + pub i64NumItems: ::std::os::raw::c_longlong, +} +pub type SHQUERYRBINFO = _SHQUERYRBINFO; +pub type LPSHQUERYRBINFO = *mut _SHQUERYRBINFO; +extern "C" { + pub fn SHQueryRecycleBinA(pszRootPath: LPCSTR, pSHQueryRBInfo: LPSHQUERYRBINFO) -> HRESULT; +} +extern "C" { + pub fn SHQueryRecycleBinW(pszRootPath: LPCWSTR, pSHQueryRBInfo: LPSHQUERYRBINFO) -> HRESULT; +} +extern "C" { + pub fn SHEmptyRecycleBinA(hwnd: HWND, pszRootPath: LPCSTR, dwFlags: DWORD) -> HRESULT; +} +extern "C" { + pub fn SHEmptyRecycleBinW(hwnd: HWND, pszRootPath: LPCWSTR, dwFlags: DWORD) -> HRESULT; +} +pub const QUERY_USER_NOTIFICATION_STATE_QUNS_NOT_PRESENT: QUERY_USER_NOTIFICATION_STATE = 1; +pub const QUERY_USER_NOTIFICATION_STATE_QUNS_BUSY: QUERY_USER_NOTIFICATION_STATE = 2; +pub const QUERY_USER_NOTIFICATION_STATE_QUNS_RUNNING_D3D_FULL_SCREEN: + QUERY_USER_NOTIFICATION_STATE = 3; +pub const QUERY_USER_NOTIFICATION_STATE_QUNS_PRESENTATION_MODE: QUERY_USER_NOTIFICATION_STATE = 4; +pub const QUERY_USER_NOTIFICATION_STATE_QUNS_ACCEPTS_NOTIFICATIONS: QUERY_USER_NOTIFICATION_STATE = + 5; +pub const QUERY_USER_NOTIFICATION_STATE_QUNS_QUIET_TIME: QUERY_USER_NOTIFICATION_STATE = 6; +pub const QUERY_USER_NOTIFICATION_STATE_QUNS_APP: QUERY_USER_NOTIFICATION_STATE = 7; +pub type QUERY_USER_NOTIFICATION_STATE = ::std::os::raw::c_int; +extern "C" { + pub fn SHQueryUserNotificationState(pquns: *mut QUERY_USER_NOTIFICATION_STATE) -> HRESULT; +} +extern "C" { + pub fn SHGetPropertyStoreForWindow( + hwnd: HWND, + riid: *const IID, + ppv: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _NOTIFYICONDATAA { + pub cbSize: DWORD, + pub hWnd: HWND, + pub uID: UINT, + pub uFlags: UINT, + pub uCallbackMessage: UINT, + pub hIcon: HICON, + pub szTip: [CHAR; 128usize], + pub dwState: DWORD, + pub dwStateMask: DWORD, + pub szInfo: [CHAR; 256usize], + pub __bindgen_anon_1: _NOTIFYICONDATAA__bindgen_ty_1, + pub szInfoTitle: [CHAR; 64usize], + pub dwInfoFlags: DWORD, + pub guidItem: GUID, + pub hBalloonIcon: HICON, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _NOTIFYICONDATAA__bindgen_ty_1 { + pub uTimeout: UINT, + pub uVersion: UINT, +} +pub type NOTIFYICONDATAA = _NOTIFYICONDATAA; +pub type PNOTIFYICONDATAA = *mut _NOTIFYICONDATAA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _NOTIFYICONDATAW { + pub cbSize: DWORD, + pub hWnd: HWND, + pub uID: UINT, + pub uFlags: UINT, + pub uCallbackMessage: UINT, + pub hIcon: HICON, + pub szTip: [WCHAR; 128usize], + pub dwState: DWORD, + pub dwStateMask: DWORD, + pub szInfo: [WCHAR; 256usize], + pub __bindgen_anon_1: _NOTIFYICONDATAW__bindgen_ty_1, + pub szInfoTitle: [WCHAR; 64usize], + pub dwInfoFlags: DWORD, + pub guidItem: GUID, + pub hBalloonIcon: HICON, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _NOTIFYICONDATAW__bindgen_ty_1 { + pub uTimeout: UINT, + pub uVersion: UINT, +} +pub type NOTIFYICONDATAW = _NOTIFYICONDATAW; +pub type PNOTIFYICONDATAW = *mut _NOTIFYICONDATAW; +pub type NOTIFYICONDATA = NOTIFYICONDATAA; +pub type PNOTIFYICONDATA = PNOTIFYICONDATAA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NOTIFYICONIDENTIFIER { + pub cbSize: DWORD, + pub hWnd: HWND, + pub uID: UINT, + pub guidItem: GUID, +} +pub type NOTIFYICONIDENTIFIER = _NOTIFYICONIDENTIFIER; +pub type PNOTIFYICONIDENTIFIER = *mut _NOTIFYICONIDENTIFIER; +extern "C" { + pub fn Shell_NotifyIconA(dwMessage: DWORD, lpData: PNOTIFYICONDATAA) -> BOOL; +} +extern "C" { + pub fn Shell_NotifyIconW(dwMessage: DWORD, lpData: PNOTIFYICONDATAW) -> BOOL; +} +extern "C" { + pub fn Shell_NotifyIconGetRect( + identifier: *const NOTIFYICONIDENTIFIER, + iconLocation: *mut RECT, + ) -> HRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SHFILEINFOA { + pub hIcon: HICON, + pub iIcon: ::std::os::raw::c_int, + pub dwAttributes: DWORD, + pub szDisplayName: [CHAR; 260usize], + pub szTypeName: [CHAR; 80usize], +} +pub type SHFILEINFOA = _SHFILEINFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SHFILEINFOW { + pub hIcon: HICON, + pub iIcon: ::std::os::raw::c_int, + pub dwAttributes: DWORD, + pub szDisplayName: [WCHAR; 260usize], + pub szTypeName: [WCHAR; 80usize], +} +pub type SHFILEINFOW = _SHFILEINFOW; +pub type SHFILEINFO = SHFILEINFOA; +extern "C" { + pub fn SHGetFileInfoA( + pszPath: LPCSTR, + dwFileAttributes: DWORD, + psfi: *mut SHFILEINFOA, + cbFileInfo: UINT, + uFlags: UINT, + ) -> DWORD_PTR; +} +extern "C" { + pub fn SHGetFileInfoW( + pszPath: LPCWSTR, + dwFileAttributes: DWORD, + psfi: *mut SHFILEINFOW, + cbFileInfo: UINT, + uFlags: UINT, + ) -> DWORD_PTR; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SHSTOCKICONINFO { + pub cbSize: DWORD, + pub hIcon: HICON, + pub iSysImageIndex: ::std::os::raw::c_int, + pub iIcon: ::std::os::raw::c_int, + pub szPath: [WCHAR; 260usize], +} +pub type SHSTOCKICONINFO = _SHSTOCKICONINFO; +pub const SHSTOCKICONID_SIID_DOCNOASSOC: SHSTOCKICONID = 0; +pub const SHSTOCKICONID_SIID_DOCASSOC: SHSTOCKICONID = 1; +pub const SHSTOCKICONID_SIID_APPLICATION: SHSTOCKICONID = 2; +pub const SHSTOCKICONID_SIID_FOLDER: SHSTOCKICONID = 3; +pub const SHSTOCKICONID_SIID_FOLDEROPEN: SHSTOCKICONID = 4; +pub const SHSTOCKICONID_SIID_DRIVE525: SHSTOCKICONID = 5; +pub const SHSTOCKICONID_SIID_DRIVE35: SHSTOCKICONID = 6; +pub const SHSTOCKICONID_SIID_DRIVEREMOVE: SHSTOCKICONID = 7; +pub const SHSTOCKICONID_SIID_DRIVEFIXED: SHSTOCKICONID = 8; +pub const SHSTOCKICONID_SIID_DRIVENET: SHSTOCKICONID = 9; +pub const SHSTOCKICONID_SIID_DRIVENETDISABLED: SHSTOCKICONID = 10; +pub const SHSTOCKICONID_SIID_DRIVECD: SHSTOCKICONID = 11; +pub const SHSTOCKICONID_SIID_DRIVERAM: SHSTOCKICONID = 12; +pub const SHSTOCKICONID_SIID_WORLD: SHSTOCKICONID = 13; +pub const SHSTOCKICONID_SIID_SERVER: SHSTOCKICONID = 15; +pub const SHSTOCKICONID_SIID_PRINTER: SHSTOCKICONID = 16; +pub const SHSTOCKICONID_SIID_MYNETWORK: SHSTOCKICONID = 17; +pub const SHSTOCKICONID_SIID_FIND: SHSTOCKICONID = 22; +pub const SHSTOCKICONID_SIID_HELP: SHSTOCKICONID = 23; +pub const SHSTOCKICONID_SIID_SHARE: SHSTOCKICONID = 28; +pub const SHSTOCKICONID_SIID_LINK: SHSTOCKICONID = 29; +pub const SHSTOCKICONID_SIID_SLOWFILE: SHSTOCKICONID = 30; +pub const SHSTOCKICONID_SIID_RECYCLER: SHSTOCKICONID = 31; +pub const SHSTOCKICONID_SIID_RECYCLERFULL: SHSTOCKICONID = 32; +pub const SHSTOCKICONID_SIID_MEDIACDAUDIO: SHSTOCKICONID = 40; +pub const SHSTOCKICONID_SIID_LOCK: SHSTOCKICONID = 47; +pub const SHSTOCKICONID_SIID_AUTOLIST: SHSTOCKICONID = 49; +pub const SHSTOCKICONID_SIID_PRINTERNET: SHSTOCKICONID = 50; +pub const SHSTOCKICONID_SIID_SERVERSHARE: SHSTOCKICONID = 51; +pub const SHSTOCKICONID_SIID_PRINTERFAX: SHSTOCKICONID = 52; +pub const SHSTOCKICONID_SIID_PRINTERFAXNET: SHSTOCKICONID = 53; +pub const SHSTOCKICONID_SIID_PRINTERFILE: SHSTOCKICONID = 54; +pub const SHSTOCKICONID_SIID_STACK: SHSTOCKICONID = 55; +pub const SHSTOCKICONID_SIID_MEDIASVCD: SHSTOCKICONID = 56; +pub const SHSTOCKICONID_SIID_STUFFEDFOLDER: SHSTOCKICONID = 57; +pub const SHSTOCKICONID_SIID_DRIVEUNKNOWN: SHSTOCKICONID = 58; +pub const SHSTOCKICONID_SIID_DRIVEDVD: SHSTOCKICONID = 59; +pub const SHSTOCKICONID_SIID_MEDIADVD: SHSTOCKICONID = 60; +pub const SHSTOCKICONID_SIID_MEDIADVDRAM: SHSTOCKICONID = 61; +pub const SHSTOCKICONID_SIID_MEDIADVDRW: SHSTOCKICONID = 62; +pub const SHSTOCKICONID_SIID_MEDIADVDR: SHSTOCKICONID = 63; +pub const SHSTOCKICONID_SIID_MEDIADVDROM: SHSTOCKICONID = 64; +pub const SHSTOCKICONID_SIID_MEDIACDAUDIOPLUS: SHSTOCKICONID = 65; +pub const SHSTOCKICONID_SIID_MEDIACDRW: SHSTOCKICONID = 66; +pub const SHSTOCKICONID_SIID_MEDIACDR: SHSTOCKICONID = 67; +pub const SHSTOCKICONID_SIID_MEDIACDBURN: SHSTOCKICONID = 68; +pub const SHSTOCKICONID_SIID_MEDIABLANKCD: SHSTOCKICONID = 69; +pub const SHSTOCKICONID_SIID_MEDIACDROM: SHSTOCKICONID = 70; +pub const SHSTOCKICONID_SIID_AUDIOFILES: SHSTOCKICONID = 71; +pub const SHSTOCKICONID_SIID_IMAGEFILES: SHSTOCKICONID = 72; +pub const SHSTOCKICONID_SIID_VIDEOFILES: SHSTOCKICONID = 73; +pub const SHSTOCKICONID_SIID_MIXEDFILES: SHSTOCKICONID = 74; +pub const SHSTOCKICONID_SIID_FOLDERBACK: SHSTOCKICONID = 75; +pub const SHSTOCKICONID_SIID_FOLDERFRONT: SHSTOCKICONID = 76; +pub const SHSTOCKICONID_SIID_SHIELD: SHSTOCKICONID = 77; +pub const SHSTOCKICONID_SIID_WARNING: SHSTOCKICONID = 78; +pub const SHSTOCKICONID_SIID_INFO: SHSTOCKICONID = 79; +pub const SHSTOCKICONID_SIID_ERROR: SHSTOCKICONID = 80; +pub const SHSTOCKICONID_SIID_KEY: SHSTOCKICONID = 81; +pub const SHSTOCKICONID_SIID_SOFTWARE: SHSTOCKICONID = 82; +pub const SHSTOCKICONID_SIID_RENAME: SHSTOCKICONID = 83; +pub const SHSTOCKICONID_SIID_DELETE: SHSTOCKICONID = 84; +pub const SHSTOCKICONID_SIID_MEDIAAUDIODVD: SHSTOCKICONID = 85; +pub const SHSTOCKICONID_SIID_MEDIAMOVIEDVD: SHSTOCKICONID = 86; +pub const SHSTOCKICONID_SIID_MEDIAENHANCEDCD: SHSTOCKICONID = 87; +pub const SHSTOCKICONID_SIID_MEDIAENHANCEDDVD: SHSTOCKICONID = 88; +pub const SHSTOCKICONID_SIID_MEDIAHDDVD: SHSTOCKICONID = 89; +pub const SHSTOCKICONID_SIID_MEDIABLURAY: SHSTOCKICONID = 90; +pub const SHSTOCKICONID_SIID_MEDIAVCD: SHSTOCKICONID = 91; +pub const SHSTOCKICONID_SIID_MEDIADVDPLUSR: SHSTOCKICONID = 92; +pub const SHSTOCKICONID_SIID_MEDIADVDPLUSRW: SHSTOCKICONID = 93; +pub const SHSTOCKICONID_SIID_DESKTOPPC: SHSTOCKICONID = 94; +pub const SHSTOCKICONID_SIID_MOBILEPC: SHSTOCKICONID = 95; +pub const SHSTOCKICONID_SIID_USERS: SHSTOCKICONID = 96; +pub const SHSTOCKICONID_SIID_MEDIASMARTMEDIA: SHSTOCKICONID = 97; +pub const SHSTOCKICONID_SIID_MEDIACOMPACTFLASH: SHSTOCKICONID = 98; +pub const SHSTOCKICONID_SIID_DEVICECELLPHONE: SHSTOCKICONID = 99; +pub const SHSTOCKICONID_SIID_DEVICECAMERA: SHSTOCKICONID = 100; +pub const SHSTOCKICONID_SIID_DEVICEVIDEOCAMERA: SHSTOCKICONID = 101; +pub const SHSTOCKICONID_SIID_DEVICEAUDIOPLAYER: SHSTOCKICONID = 102; +pub const SHSTOCKICONID_SIID_NETWORKCONNECT: SHSTOCKICONID = 103; +pub const SHSTOCKICONID_SIID_INTERNET: SHSTOCKICONID = 104; +pub const SHSTOCKICONID_SIID_ZIPFILE: SHSTOCKICONID = 105; +pub const SHSTOCKICONID_SIID_SETTINGS: SHSTOCKICONID = 106; +pub const SHSTOCKICONID_SIID_DRIVEHDDVD: SHSTOCKICONID = 132; +pub const SHSTOCKICONID_SIID_DRIVEBD: SHSTOCKICONID = 133; +pub const SHSTOCKICONID_SIID_MEDIAHDDVDROM: SHSTOCKICONID = 134; +pub const SHSTOCKICONID_SIID_MEDIAHDDVDR: SHSTOCKICONID = 135; +pub const SHSTOCKICONID_SIID_MEDIAHDDVDRAM: SHSTOCKICONID = 136; +pub const SHSTOCKICONID_SIID_MEDIABDROM: SHSTOCKICONID = 137; +pub const SHSTOCKICONID_SIID_MEDIABDR: SHSTOCKICONID = 138; +pub const SHSTOCKICONID_SIID_MEDIABDRE: SHSTOCKICONID = 139; +pub const SHSTOCKICONID_SIID_CLUSTEREDDRIVE: SHSTOCKICONID = 140; +pub const SHSTOCKICONID_SIID_MAX_ICONS: SHSTOCKICONID = 181; +pub type SHSTOCKICONID = ::std::os::raw::c_int; +extern "C" { + pub fn SHGetStockIconInfo( + siid: SHSTOCKICONID, + uFlags: UINT, + psii: *mut SHSTOCKICONINFO, + ) -> HRESULT; +} +extern "C" { + pub fn SHGetDiskFreeSpaceExA( + pszDirectoryName: LPCSTR, + pulFreeBytesAvailableToCaller: *mut ULARGE_INTEGER, + pulTotalNumberOfBytes: *mut ULARGE_INTEGER, + pulTotalNumberOfFreeBytes: *mut ULARGE_INTEGER, + ) -> BOOL; +} +extern "C" { + pub fn SHGetDiskFreeSpaceExW( + pszDirectoryName: LPCWSTR, + pulFreeBytesAvailableToCaller: *mut ULARGE_INTEGER, + pulTotalNumberOfBytes: *mut ULARGE_INTEGER, + pulTotalNumberOfFreeBytes: *mut ULARGE_INTEGER, + ) -> BOOL; +} +extern "C" { + pub fn SHGetNewLinkInfoA( + pszLinkTo: LPCSTR, + pszDir: LPCSTR, + pszName: LPSTR, + pfMustCopy: *mut BOOL, + uFlags: UINT, + ) -> BOOL; +} +extern "C" { + pub fn SHGetNewLinkInfoW( + pszLinkTo: LPCWSTR, + pszDir: LPCWSTR, + pszName: LPWSTR, + pfMustCopy: *mut BOOL, + uFlags: UINT, + ) -> BOOL; +} +extern "C" { + pub fn SHInvokePrinterCommandA( + hwnd: HWND, + uAction: UINT, + lpBuf1: LPCSTR, + lpBuf2: LPCSTR, + fModal: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn SHInvokePrinterCommandW( + hwnd: HWND, + uAction: UINT, + lpBuf1: LPCWSTR, + lpBuf2: LPCWSTR, + fModal: BOOL, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OPEN_PRINTER_PROPS_INFOA { + pub dwSize: DWORD, + pub pszSheetName: LPSTR, + pub uSheetIndex: UINT, + pub dwFlags: DWORD, + pub bModal: BOOL, +} +pub type OPEN_PRINTER_PROPS_INFOA = _OPEN_PRINTER_PROPS_INFOA; +pub type POPEN_PRINTER_PROPS_INFOA = *mut _OPEN_PRINTER_PROPS_INFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OPEN_PRINTER_PROPS_INFOW { + pub dwSize: DWORD, + pub pszSheetName: LPWSTR, + pub uSheetIndex: UINT, + pub dwFlags: DWORD, + pub bModal: BOOL, +} +pub type OPEN_PRINTER_PROPS_INFOW = _OPEN_PRINTER_PROPS_INFOW; +pub type POPEN_PRINTER_PROPS_INFOW = *mut _OPEN_PRINTER_PROPS_INFOW; +pub type OPEN_PRINTER_PROPS_INFO = OPEN_PRINTER_PROPS_INFOA; +pub type POPEN_PRINTER_PROPS_INFO = POPEN_PRINTER_PROPS_INFOA; +extern "C" { + pub fn SHLoadNonloadedIconOverlayIdentifiers() -> HRESULT; +} +extern "C" { + pub fn SHIsFileAvailableOffline(pwszPath: PCWSTR, pdwStatus: *mut DWORD) -> HRESULT; +} +extern "C" { + pub fn SHSetLocalizedName( + pszPath: PCWSTR, + pszResModule: PCWSTR, + idsRes: ::std::os::raw::c_int, + ) -> HRESULT; +} +extern "C" { + pub fn SHRemoveLocalizedName(pszPath: PCWSTR) -> HRESULT; +} +extern "C" { + pub fn SHGetLocalizedName( + pszPath: PCWSTR, + pszResModule: PWSTR, + cch: UINT, + pidsRes: *mut ::std::os::raw::c_int, + ) -> HRESULT; +} +extern "C" { + pub fn ShellMessageBoxA( + hAppInst: HINSTANCE, + hWnd: HWND, + lpcText: LPCSTR, + lpcTitle: LPCSTR, + fuStyle: UINT, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ShellMessageBoxW( + hAppInst: HINSTANCE, + hWnd: HWND, + lpcText: LPCWSTR, + lpcTitle: LPCWSTR, + fuStyle: UINT, + ... + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn IsLFNDriveA(pszPath: LPCSTR) -> BOOL; +} +extern "C" { + pub fn IsLFNDriveW(pszPath: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn SHEnumerateUnreadMailAccountsA( + hKeyUser: HKEY, + dwIndex: DWORD, + pszMailAddress: LPSTR, + cchMailAddress: ::std::os::raw::c_int, + ) -> HRESULT; +} +extern "C" { + pub fn SHEnumerateUnreadMailAccountsW( + hKeyUser: HKEY, + dwIndex: DWORD, + pszMailAddress: LPWSTR, + cchMailAddress: ::std::os::raw::c_int, + ) -> HRESULT; +} +extern "C" { + pub fn SHGetUnreadMailCountA( + hKeyUser: HKEY, + pszMailAddress: LPCSTR, + pdwCount: *mut DWORD, + pFileTime: *mut FILETIME, + pszShellExecuteCommand: LPSTR, + cchShellExecuteCommand: ::std::os::raw::c_int, + ) -> HRESULT; +} +extern "C" { + pub fn SHGetUnreadMailCountW( + hKeyUser: HKEY, + pszMailAddress: LPCWSTR, + pdwCount: *mut DWORD, + pFileTime: *mut FILETIME, + pszShellExecuteCommand: LPWSTR, + cchShellExecuteCommand: ::std::os::raw::c_int, + ) -> HRESULT; +} +extern "C" { + pub fn SHSetUnreadMailCountA( + pszMailAddress: LPCSTR, + dwCount: DWORD, + pszShellExecuteCommand: LPCSTR, + ) -> HRESULT; +} +extern "C" { + pub fn SHSetUnreadMailCountW( + pszMailAddress: LPCWSTR, + dwCount: DWORD, + pszShellExecuteCommand: LPCWSTR, + ) -> HRESULT; +} +extern "C" { + pub fn SHTestTokenMembership(hToken: HANDLE, ulRID: ULONG) -> BOOL; +} +extern "C" { + pub fn SHGetImageList( + iImageList: ::std::os::raw::c_int, + riid: *const IID, + ppvObj: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +pub type PFNCANSHAREFOLDERW = + ::std::option::Option HRESULT>; +pub type PFNSHOWSHAREFOLDERUIW = + ::std::option::Option HRESULT>; +extern "C" { + pub fn InitNetworkAddressControl() -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagNC_ADDRESS { + pub pAddrInfo: *mut NET_ADDRESS_INFO_, + pub PortNumber: USHORT, + pub PrefixLength: BYTE, +} +pub type NC_ADDRESS = tagNC_ADDRESS; +pub type PNC_ADDRESS = *mut tagNC_ADDRESS; +extern "C" { + pub fn SHGetDriveMedia(pszDrive: PCWSTR, pdwMediaContent: *mut DWORD) -> HRESULT; +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PERF_DATA_BLOCK { + pub Signature: [WCHAR; 4usize], + pub LittleEndian: DWORD, + pub Version: DWORD, + pub Revision: DWORD, + pub TotalByteLength: DWORD, + pub HeaderLength: DWORD, + pub NumObjectTypes: DWORD, + pub DefaultObject: LONG, + pub SystemTime: SYSTEMTIME, + pub PerfTime: LARGE_INTEGER, + pub PerfFreq: LARGE_INTEGER, + pub PerfTime100nSec: LARGE_INTEGER, + pub SystemNameLength: DWORD, + pub SystemNameOffset: DWORD, +} +pub type PERF_DATA_BLOCK = _PERF_DATA_BLOCK; +pub type PPERF_DATA_BLOCK = *mut _PERF_DATA_BLOCK; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PERF_OBJECT_TYPE { + pub TotalByteLength: DWORD, + pub DefinitionLength: DWORD, + pub HeaderLength: DWORD, + pub ObjectNameTitleIndex: DWORD, + pub ObjectNameTitle: DWORD, + pub ObjectHelpTitleIndex: DWORD, + pub ObjectHelpTitle: DWORD, + pub DetailLevel: DWORD, + pub NumCounters: DWORD, + pub DefaultCounter: LONG, + pub NumInstances: LONG, + pub CodePage: DWORD, + pub PerfTime: LARGE_INTEGER, + pub PerfFreq: LARGE_INTEGER, +} +pub type PERF_OBJECT_TYPE = _PERF_OBJECT_TYPE; +pub type PPERF_OBJECT_TYPE = *mut _PERF_OBJECT_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PERF_COUNTER_DEFINITION { + pub ByteLength: DWORD, + pub CounterNameTitleIndex: DWORD, + pub CounterNameTitle: DWORD, + pub CounterHelpTitleIndex: DWORD, + pub CounterHelpTitle: DWORD, + pub DefaultScale: LONG, + pub DetailLevel: DWORD, + pub CounterType: DWORD, + pub CounterSize: DWORD, + pub CounterOffset: DWORD, +} +pub type PERF_COUNTER_DEFINITION = _PERF_COUNTER_DEFINITION; +pub type PPERF_COUNTER_DEFINITION = *mut _PERF_COUNTER_DEFINITION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PERF_INSTANCE_DEFINITION { + pub ByteLength: DWORD, + pub ParentObjectTitleIndex: DWORD, + pub ParentObjectInstance: DWORD, + pub UniqueID: LONG, + pub NameOffset: DWORD, + pub NameLength: DWORD, +} +pub type PERF_INSTANCE_DEFINITION = _PERF_INSTANCE_DEFINITION; +pub type PPERF_INSTANCE_DEFINITION = *mut _PERF_INSTANCE_DEFINITION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PERF_COUNTER_BLOCK { + pub ByteLength: DWORD, +} +pub type PERF_COUNTER_BLOCK = _PERF_COUNTER_BLOCK; +pub type PPERF_COUNTER_BLOCK = *mut _PERF_COUNTER_BLOCK; +pub type u_char = ::std::os::raw::c_uchar; +pub type u_short = ::std::os::raw::c_ushort; +pub type u_int = ::std::os::raw::c_uint; +pub type u_long = ::std::os::raw::c_ulong; +pub type SOCKET = UINT_PTR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fd_set { + pub fd_count: u_int, + pub fd_array: [SOCKET; 64usize], +} +extern "C" { + pub fn __WSAFDIsSet(arg1: SOCKET, arg2: *mut fd_set) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timeval { + pub tv_sec: ::std::os::raw::c_long, + pub tv_usec: ::std::os::raw::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hostent { + pub h_name: *mut ::std::os::raw::c_char, + pub h_aliases: *mut *mut ::std::os::raw::c_char, + pub h_addrtype: ::std::os::raw::c_short, + pub h_length: ::std::os::raw::c_short, + pub h_addr_list: *mut *mut ::std::os::raw::c_char, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct netent { + pub n_name: *mut ::std::os::raw::c_char, + pub n_aliases: *mut *mut ::std::os::raw::c_char, + pub n_addrtype: ::std::os::raw::c_short, + pub n_net: u_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct servent { + pub s_name: *mut ::std::os::raw::c_char, + pub s_aliases: *mut *mut ::std::os::raw::c_char, + pub s_proto: *mut ::std::os::raw::c_char, + pub s_port: ::std::os::raw::c_short, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct protoent { + pub p_name: *mut ::std::os::raw::c_char, + pub p_aliases: *mut *mut ::std::os::raw::c_char, + pub p_proto: ::std::os::raw::c_short, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in_addr { + pub S_un: in_addr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union in_addr__bindgen_ty_1 { + pub S_un_b: in_addr__bindgen_ty_1__bindgen_ty_1, + pub S_un_w: in_addr__bindgen_ty_1__bindgen_ty_2, + pub S_addr: ULONG, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_addr__bindgen_ty_1__bindgen_ty_1 { + pub s_b1: UCHAR, + pub s_b2: UCHAR, + pub s_b3: UCHAR, + pub s_b4: UCHAR, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_addr__bindgen_ty_1__bindgen_ty_2 { + pub s_w1: USHORT, + pub s_w2: USHORT, +} +pub type IN_ADDR = in_addr; +pub type PIN_ADDR = *mut in_addr; +pub type LPIN_ADDR = *mut in_addr; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr_in { + pub sin_family: ::std::os::raw::c_short, + pub sin_port: u_short, + pub sin_addr: in_addr, + pub sin_zero: [::std::os::raw::c_char; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WSAData { + pub wVersion: WORD, + pub wHighVersion: WORD, + pub iMaxSockets: ::std::os::raw::c_ushort, + pub iMaxUdpDg: ::std::os::raw::c_ushort, + pub lpVendorInfo: *mut ::std::os::raw::c_char, + pub szDescription: [::std::os::raw::c_char; 257usize], + pub szSystemStatus: [::std::os::raw::c_char; 129usize], +} +pub type WSADATA = WSAData; +pub type LPWSADATA = *mut WSADATA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip_mreq { + pub imr_multiaddr: in_addr, + pub imr_interface: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr { + pub sa_family: u_short, + pub sa_data: [::std::os::raw::c_char; 14usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockproto { + pub sp_family: u_short, + pub sp_protocol: u_short, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct linger { + pub l_onoff: u_short, + pub l_linger: u_short, +} +extern "C" { + pub fn accept(s: SOCKET, addr: *mut sockaddr, addrlen: *mut ::std::os::raw::c_int) -> SOCKET; +} +extern "C" { + pub fn bind( + s: SOCKET, + addr: *const sockaddr, + namelen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn closesocket(s: SOCKET) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn connect( + s: SOCKET, + name: *const sockaddr, + namelen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ioctlsocket( + s: SOCKET, + cmd: ::std::os::raw::c_long, + argp: *mut u_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getpeername( + s: SOCKET, + name: *mut sockaddr, + namelen: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getsockname( + s: SOCKET, + name: *mut sockaddr, + namelen: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getsockopt( + s: SOCKET, + level: ::std::os::raw::c_int, + optname: ::std::os::raw::c_int, + optval: *mut ::std::os::raw::c_char, + optlen: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn htonl(hostlong: u_long) -> u_long; +} +extern "C" { + pub fn htons(hostshort: u_short) -> u_short; +} +extern "C" { + pub fn inet_addr(cp: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn inet_ntoa(in_: in_addr) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn listen(s: SOCKET, backlog: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn ntohl(netlong: u_long) -> u_long; +} +extern "C" { + pub fn ntohs(netshort: u_short) -> u_short; +} +extern "C" { + pub fn recv( + s: SOCKET, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn recvfrom( + s: SOCKET, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + from: *mut sockaddr, + fromlen: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn select( + nfds: ::std::os::raw::c_int, + readfds: *mut fd_set, + writefds: *mut fd_set, + exceptfds: *mut fd_set, + timeout: *const timeval, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn send( + s: SOCKET, + buf: *const ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn sendto( + s: SOCKET, + buf: *const ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + to: *const sockaddr, + tolen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn setsockopt( + s: SOCKET, + level: ::std::os::raw::c_int, + optname: ::std::os::raw::c_int, + optval: *const ::std::os::raw::c_char, + optlen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn shutdown(s: SOCKET, how: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn socket( + af: ::std::os::raw::c_int, + type_: ::std::os::raw::c_int, + protocol: ::std::os::raw::c_int, + ) -> SOCKET; +} +extern "C" { + pub fn gethostbyaddr( + addr: *const ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + type_: ::std::os::raw::c_int, + ) -> *mut hostent; +} +extern "C" { + pub fn gethostbyname(name: *const ::std::os::raw::c_char) -> *mut hostent; +} +extern "C" { + pub fn gethostname( + name: *mut ::std::os::raw::c_char, + namelen: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn getservbyport( + port: ::std::os::raw::c_int, + proto: *const ::std::os::raw::c_char, + ) -> *mut servent; +} +extern "C" { + pub fn getservbyname( + name: *const ::std::os::raw::c_char, + proto: *const ::std::os::raw::c_char, + ) -> *mut servent; +} +extern "C" { + pub fn getprotobynumber(proto: ::std::os::raw::c_int) -> *mut protoent; +} +extern "C" { + pub fn getprotobyname(name: *const ::std::os::raw::c_char) -> *mut protoent; +} +extern "C" { + pub fn WSAStartup(wVersionRequired: WORD, lpWSAData: LPWSADATA) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn WSACleanup() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn WSASetLastError(iError: ::std::os::raw::c_int); +} +extern "C" { + pub fn WSAGetLastError() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn WSAIsBlocking() -> BOOL; +} +extern "C" { + pub fn WSAUnhookBlockingHook() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn WSASetBlockingHook(lpBlockFunc: FARPROC) -> FARPROC; +} +extern "C" { + pub fn WSACancelBlockingCall() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn WSAAsyncGetServByName( + hWnd: HWND, + wMsg: u_int, + name: *const ::std::os::raw::c_char, + proto: *const ::std::os::raw::c_char, + buf: *mut ::std::os::raw::c_char, + buflen: ::std::os::raw::c_int, + ) -> HANDLE; +} +extern "C" { + pub fn WSAAsyncGetServByPort( + hWnd: HWND, + wMsg: u_int, + port: ::std::os::raw::c_int, + proto: *const ::std::os::raw::c_char, + buf: *mut ::std::os::raw::c_char, + buflen: ::std::os::raw::c_int, + ) -> HANDLE; +} +extern "C" { + pub fn WSAAsyncGetProtoByName( + hWnd: HWND, + wMsg: u_int, + name: *const ::std::os::raw::c_char, + buf: *mut ::std::os::raw::c_char, + buflen: ::std::os::raw::c_int, + ) -> HANDLE; +} +extern "C" { + pub fn WSAAsyncGetProtoByNumber( + hWnd: HWND, + wMsg: u_int, + number: ::std::os::raw::c_int, + buf: *mut ::std::os::raw::c_char, + buflen: ::std::os::raw::c_int, + ) -> HANDLE; +} +extern "C" { + pub fn WSAAsyncGetHostByName( + hWnd: HWND, + wMsg: u_int, + name: *const ::std::os::raw::c_char, + buf: *mut ::std::os::raw::c_char, + buflen: ::std::os::raw::c_int, + ) -> HANDLE; +} +extern "C" { + pub fn WSAAsyncGetHostByAddr( + hWnd: HWND, + wMsg: u_int, + addr: *const ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + type_: ::std::os::raw::c_int, + buf: *mut ::std::os::raw::c_char, + buflen: ::std::os::raw::c_int, + ) -> HANDLE; +} +extern "C" { + pub fn WSACancelAsyncRequest(hAsyncTaskHandle: HANDLE) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn WSAAsyncSelect( + s: SOCKET, + hWnd: HWND, + wMsg: u_int, + lEvent: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn WSARecvEx( + s: SOCKET, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, + flags: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TRANSMIT_FILE_BUFFERS { + pub Head: PVOID, + pub HeadLength: DWORD, + pub Tail: PVOID, + pub TailLength: DWORD, +} +pub type TRANSMIT_FILE_BUFFERS = _TRANSMIT_FILE_BUFFERS; +pub type PTRANSMIT_FILE_BUFFERS = *mut _TRANSMIT_FILE_BUFFERS; +pub type LPTRANSMIT_FILE_BUFFERS = *mut _TRANSMIT_FILE_BUFFERS; +extern "C" { + pub fn TransmitFile( + hSocket: SOCKET, + hFile: HANDLE, + nNumberOfBytesToWrite: DWORD, + nNumberOfBytesPerSend: DWORD, + lpOverlapped: LPOVERLAPPED, + lpTransmitBuffers: LPTRANSMIT_FILE_BUFFERS, + dwReserved: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn AcceptEx( + sListenSocket: SOCKET, + sAcceptSocket: SOCKET, + lpOutputBuffer: PVOID, + dwReceiveDataLength: DWORD, + dwLocalAddressLength: DWORD, + dwRemoteAddressLength: DWORD, + lpdwBytesReceived: LPDWORD, + lpOverlapped: LPOVERLAPPED, + ) -> BOOL; +} +extern "C" { + pub fn GetAcceptExSockaddrs( + lpOutputBuffer: PVOID, + dwReceiveDataLength: DWORD, + dwLocalAddressLength: DWORD, + dwRemoteAddressLength: DWORD, + LocalSockaddr: *mut *mut sockaddr, + LocalSockaddrLength: LPINT, + RemoteSockaddr: *mut *mut sockaddr, + RemoteSockaddrLength: LPINT, + ); +} +pub type SOCKADDR = sockaddr; +pub type PSOCKADDR = *mut sockaddr; +pub type LPSOCKADDR = *mut sockaddr; +pub type SOCKADDR_IN = sockaddr_in; +pub type PSOCKADDR_IN = *mut sockaddr_in; +pub type LPSOCKADDR_IN = *mut sockaddr_in; +pub type LINGER = linger; +pub type PLINGER = *mut linger; +pub type LPLINGER = *mut linger; +pub type FD_SET = fd_set; +pub type PFD_SET = *mut fd_set; +pub type LPFD_SET = *mut fd_set; +pub type HOSTENT = hostent; +pub type PHOSTENT = *mut hostent; +pub type LPHOSTENT = *mut hostent; +pub type SERVENT = servent; +pub type PSERVENT = *mut servent; +pub type LPSERVENT = *mut servent; +pub type PROTOENT = protoent; +pub type PPROTOENT = *mut protoent; +pub type LPPROTOENT = *mut protoent; +pub type TIMEVAL = timeval; +pub type PTIMEVAL = *mut timeval; +pub type LPTIMEVAL = *mut timeval; +pub type ALG_ID = ::std::os::raw::c_uint; +pub type HCRYPTPROV = ULONG_PTR; +pub type HCRYPTKEY = ULONG_PTR; +pub type HCRYPTHASH = ULONG_PTR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMS_KEY_INFO { + pub dwVersion: DWORD, + pub Algid: ALG_ID, + pub pbOID: *mut BYTE, + pub cbOID: DWORD, +} +pub type CMS_KEY_INFO = _CMS_KEY_INFO; +pub type PCMS_KEY_INFO = *mut _CMS_KEY_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _HMAC_Info { + pub HashAlgid: ALG_ID, + pub pbInnerString: *mut BYTE, + pub cbInnerString: DWORD, + pub pbOuterString: *mut BYTE, + pub cbOuterString: DWORD, +} +pub type HMAC_INFO = _HMAC_Info; +pub type PHMAC_INFO = *mut _HMAC_Info; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCHANNEL_ALG { + pub dwUse: DWORD, + pub Algid: ALG_ID, + pub cBits: DWORD, + pub dwFlags: DWORD, + pub dwReserved: DWORD, +} +pub type SCHANNEL_ALG = _SCHANNEL_ALG; +pub type PSCHANNEL_ALG = *mut _SCHANNEL_ALG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROV_ENUMALGS { + pub aiAlgid: ALG_ID, + pub dwBitLen: DWORD, + pub dwNameLen: DWORD, + pub szName: [CHAR; 20usize], +} +pub type PROV_ENUMALGS = _PROV_ENUMALGS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROV_ENUMALGS_EX { + pub aiAlgid: ALG_ID, + pub dwDefaultLen: DWORD, + pub dwMinLen: DWORD, + pub dwMaxLen: DWORD, + pub dwProtocols: DWORD, + pub dwNameLen: DWORD, + pub szName: [CHAR; 20usize], + pub dwLongNameLen: DWORD, + pub szLongName: [CHAR; 40usize], +} +pub type PROV_ENUMALGS_EX = _PROV_ENUMALGS_EX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PUBLICKEYSTRUC { + pub bType: BYTE, + pub bVersion: BYTE, + pub reserved: WORD, + pub aiKeyAlg: ALG_ID, +} +pub type BLOBHEADER = _PUBLICKEYSTRUC; +pub type PUBLICKEYSTRUC = _PUBLICKEYSTRUC; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _RSAPUBKEY { + pub magic: DWORD, + pub bitlen: DWORD, + pub pubexp: DWORD, +} +pub type RSAPUBKEY = _RSAPUBKEY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PUBKEY { + pub magic: DWORD, + pub bitlen: DWORD, +} +pub type DHPUBKEY = _PUBKEY; +pub type DSSPUBKEY = _PUBKEY; +pub type KEAPUBKEY = _PUBKEY; +pub type TEKPUBKEY = _PUBKEY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DSSSEED { + pub counter: DWORD, + pub seed: [BYTE; 20usize], +} +pub type DSSSEED = _DSSSEED; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PUBKEYVER3 { + pub magic: DWORD, + pub bitlenP: DWORD, + pub bitlenQ: DWORD, + pub bitlenJ: DWORD, + pub DSSSeed: DSSSEED, +} +pub type DHPUBKEY_VER3 = _PUBKEYVER3; +pub type DSSPUBKEY_VER3 = _PUBKEYVER3; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRIVKEYVER3 { + pub magic: DWORD, + pub bitlenP: DWORD, + pub bitlenQ: DWORD, + pub bitlenJ: DWORD, + pub bitlenX: DWORD, + pub DSSSeed: DSSSEED, +} +pub type DHPRIVKEY_VER3 = _PRIVKEYVER3; +pub type DSSPRIVKEY_VER3 = _PRIVKEYVER3; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _KEY_TYPE_SUBTYPE { + pub dwKeySpec: DWORD, + pub Type: GUID, + pub Subtype: GUID, +} +pub type KEY_TYPE_SUBTYPE = _KEY_TYPE_SUBTYPE; +pub type PKEY_TYPE_SUBTYPE = *mut _KEY_TYPE_SUBTYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_FORTEZZA_DATA_PROP { + pub SerialNumber: [::std::os::raw::c_uchar; 8usize], + pub CertIndex: ::std::os::raw::c_int, + pub CertLabel: [::std::os::raw::c_uchar; 36usize], +} +pub type CERT_FORTEZZA_DATA_PROP = _CERT_FORTEZZA_DATA_PROP; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_RC4_KEY_STATE { + pub Key: [::std::os::raw::c_uchar; 16usize], + pub SBox: [::std::os::raw::c_uchar; 256usize], + pub i: ::std::os::raw::c_uchar, + pub j: ::std::os::raw::c_uchar, +} +pub type CRYPT_RC4_KEY_STATE = _CRYPT_RC4_KEY_STATE; +pub type PCRYPT_RC4_KEY_STATE = *mut _CRYPT_RC4_KEY_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_DES_KEY_STATE { + pub Key: [::std::os::raw::c_uchar; 8usize], + pub IV: [::std::os::raw::c_uchar; 8usize], + pub Feedback: [::std::os::raw::c_uchar; 8usize], +} +pub type CRYPT_DES_KEY_STATE = _CRYPT_DES_KEY_STATE; +pub type PCRYPT_DES_KEY_STATE = *mut _CRYPT_DES_KEY_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_3DES_KEY_STATE { + pub Key: [::std::os::raw::c_uchar; 24usize], + pub IV: [::std::os::raw::c_uchar; 8usize], + pub Feedback: [::std::os::raw::c_uchar; 8usize], +} +pub type CRYPT_3DES_KEY_STATE = _CRYPT_3DES_KEY_STATE; +pub type PCRYPT_3DES_KEY_STATE = *mut _CRYPT_3DES_KEY_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_AES_128_KEY_STATE { + pub Key: [::std::os::raw::c_uchar; 16usize], + pub IV: [::std::os::raw::c_uchar; 16usize], + pub EncryptionState: [[::std::os::raw::c_uchar; 16usize]; 11usize], + pub DecryptionState: [[::std::os::raw::c_uchar; 16usize]; 11usize], + pub Feedback: [::std::os::raw::c_uchar; 16usize], +} +pub type CRYPT_AES_128_KEY_STATE = _CRYPT_AES_128_KEY_STATE; +pub type PCRYPT_AES_128_KEY_STATE = *mut _CRYPT_AES_128_KEY_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_AES_256_KEY_STATE { + pub Key: [::std::os::raw::c_uchar; 32usize], + pub IV: [::std::os::raw::c_uchar; 16usize], + pub EncryptionState: [[::std::os::raw::c_uchar; 16usize]; 15usize], + pub DecryptionState: [[::std::os::raw::c_uchar; 16usize]; 15usize], + pub Feedback: [::std::os::raw::c_uchar; 16usize], +} +pub type CRYPT_AES_256_KEY_STATE = _CRYPT_AES_256_KEY_STATE; +pub type PCRYPT_AES_256_KEY_STATE = *mut _CRYPT_AES_256_KEY_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPTOAPI_BLOB { + pub cbData: DWORD, + pub pbData: *mut BYTE, +} +pub type CRYPT_INTEGER_BLOB = _CRYPTOAPI_BLOB; +pub type PCRYPT_INTEGER_BLOB = *mut _CRYPTOAPI_BLOB; +pub type CRYPT_UINT_BLOB = _CRYPTOAPI_BLOB; +pub type PCRYPT_UINT_BLOB = *mut _CRYPTOAPI_BLOB; +pub type CRYPT_OBJID_BLOB = _CRYPTOAPI_BLOB; +pub type PCRYPT_OBJID_BLOB = *mut _CRYPTOAPI_BLOB; +pub type CERT_NAME_BLOB = _CRYPTOAPI_BLOB; +pub type PCERT_NAME_BLOB = *mut _CRYPTOAPI_BLOB; +pub type CERT_RDN_VALUE_BLOB = _CRYPTOAPI_BLOB; +pub type PCERT_RDN_VALUE_BLOB = *mut _CRYPTOAPI_BLOB; +pub type CERT_BLOB = _CRYPTOAPI_BLOB; +pub type PCERT_BLOB = *mut _CRYPTOAPI_BLOB; +pub type CRL_BLOB = _CRYPTOAPI_BLOB; +pub type PCRL_BLOB = *mut _CRYPTOAPI_BLOB; +pub type DATA_BLOB = _CRYPTOAPI_BLOB; +pub type PDATA_BLOB = *mut _CRYPTOAPI_BLOB; +pub type CRYPT_DATA_BLOB = _CRYPTOAPI_BLOB; +pub type PCRYPT_DATA_BLOB = *mut _CRYPTOAPI_BLOB; +pub type CRYPT_HASH_BLOB = _CRYPTOAPI_BLOB; +pub type PCRYPT_HASH_BLOB = *mut _CRYPTOAPI_BLOB; +pub type CRYPT_DIGEST_BLOB = _CRYPTOAPI_BLOB; +pub type PCRYPT_DIGEST_BLOB = *mut _CRYPTOAPI_BLOB; +pub type CRYPT_DER_BLOB = _CRYPTOAPI_BLOB; +pub type PCRYPT_DER_BLOB = *mut _CRYPTOAPI_BLOB; +pub type CRYPT_ATTR_BLOB = _CRYPTOAPI_BLOB; +pub type PCRYPT_ATTR_BLOB = *mut _CRYPTOAPI_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMS_DH_KEY_INFO { + pub dwVersion: DWORD, + pub Algid: ALG_ID, + pub pszContentEncObjId: LPSTR, + pub PubInfo: CRYPT_DATA_BLOB, + pub pReserved: *mut ::std::os::raw::c_void, +} +pub type CMS_DH_KEY_INFO = _CMS_DH_KEY_INFO; +pub type PCMS_DH_KEY_INFO = *mut _CMS_DH_KEY_INFO; +extern "C" { + pub fn CryptAcquireContextA( + phProv: *mut HCRYPTPROV, + szContainer: LPCSTR, + szProvider: LPCSTR, + dwProvType: DWORD, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptAcquireContextW( + phProv: *mut HCRYPTPROV, + szContainer: LPCWSTR, + szProvider: LPCWSTR, + dwProvType: DWORD, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptReleaseContext(hProv: HCRYPTPROV, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn CryptGenKey( + hProv: HCRYPTPROV, + Algid: ALG_ID, + dwFlags: DWORD, + phKey: *mut HCRYPTKEY, + ) -> BOOL; +} +extern "C" { + pub fn CryptDeriveKey( + hProv: HCRYPTPROV, + Algid: ALG_ID, + hBaseData: HCRYPTHASH, + dwFlags: DWORD, + phKey: *mut HCRYPTKEY, + ) -> BOOL; +} +extern "C" { + pub fn CryptDestroyKey(hKey: HCRYPTKEY) -> BOOL; +} +extern "C" { + pub fn CryptSetKeyParam( + hKey: HCRYPTKEY, + dwParam: DWORD, + pbData: *const BYTE, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptGetKeyParam( + hKey: HCRYPTKEY, + dwParam: DWORD, + pbData: *mut BYTE, + pdwDataLen: *mut DWORD, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptSetHashParam( + hHash: HCRYPTHASH, + dwParam: DWORD, + pbData: *const BYTE, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptGetHashParam( + hHash: HCRYPTHASH, + dwParam: DWORD, + pbData: *mut BYTE, + pdwDataLen: *mut DWORD, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptSetProvParam( + hProv: HCRYPTPROV, + dwParam: DWORD, + pbData: *const BYTE, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptGetProvParam( + hProv: HCRYPTPROV, + dwParam: DWORD, + pbData: *mut BYTE, + pdwDataLen: *mut DWORD, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptGenRandom(hProv: HCRYPTPROV, dwLen: DWORD, pbBuffer: *mut BYTE) -> BOOL; +} +extern "C" { + pub fn CryptGetUserKey(hProv: HCRYPTPROV, dwKeySpec: DWORD, phUserKey: *mut HCRYPTKEY) -> BOOL; +} +extern "C" { + pub fn CryptExportKey( + hKey: HCRYPTKEY, + hExpKey: HCRYPTKEY, + dwBlobType: DWORD, + dwFlags: DWORD, + pbData: *mut BYTE, + pdwDataLen: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptImportKey( + hProv: HCRYPTPROV, + pbData: *const BYTE, + dwDataLen: DWORD, + hPubKey: HCRYPTKEY, + dwFlags: DWORD, + phKey: *mut HCRYPTKEY, + ) -> BOOL; +} +extern "C" { + pub fn CryptEncrypt( + hKey: HCRYPTKEY, + hHash: HCRYPTHASH, + Final: BOOL, + dwFlags: DWORD, + pbData: *mut BYTE, + pdwDataLen: *mut DWORD, + dwBufLen: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptDecrypt( + hKey: HCRYPTKEY, + hHash: HCRYPTHASH, + Final: BOOL, + dwFlags: DWORD, + pbData: *mut BYTE, + pdwDataLen: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptCreateHash( + hProv: HCRYPTPROV, + Algid: ALG_ID, + hKey: HCRYPTKEY, + dwFlags: DWORD, + phHash: *mut HCRYPTHASH, + ) -> BOOL; +} +extern "C" { + pub fn CryptHashData( + hHash: HCRYPTHASH, + pbData: *const BYTE, + dwDataLen: DWORD, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptHashSessionKey(hHash: HCRYPTHASH, hKey: HCRYPTKEY, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn CryptDestroyHash(hHash: HCRYPTHASH) -> BOOL; +} +extern "C" { + pub fn CryptSignHashA( + hHash: HCRYPTHASH, + dwKeySpec: DWORD, + szDescription: LPCSTR, + dwFlags: DWORD, + pbSignature: *mut BYTE, + pdwSigLen: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptSignHashW( + hHash: HCRYPTHASH, + dwKeySpec: DWORD, + szDescription: LPCWSTR, + dwFlags: DWORD, + pbSignature: *mut BYTE, + pdwSigLen: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptVerifySignatureA( + hHash: HCRYPTHASH, + pbSignature: *const BYTE, + dwSigLen: DWORD, + hPubKey: HCRYPTKEY, + szDescription: LPCSTR, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptVerifySignatureW( + hHash: HCRYPTHASH, + pbSignature: *const BYTE, + dwSigLen: DWORD, + hPubKey: HCRYPTKEY, + szDescription: LPCWSTR, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptSetProviderA(pszProvName: LPCSTR, dwProvType: DWORD) -> BOOL; +} +extern "C" { + pub fn CryptSetProviderW(pszProvName: LPCWSTR, dwProvType: DWORD) -> BOOL; +} +extern "C" { + pub fn CryptSetProviderExA( + pszProvName: LPCSTR, + dwProvType: DWORD, + pdwReserved: *mut DWORD, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptSetProviderExW( + pszProvName: LPCWSTR, + dwProvType: DWORD, + pdwReserved: *mut DWORD, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptGetDefaultProviderA( + dwProvType: DWORD, + pdwReserved: *mut DWORD, + dwFlags: DWORD, + pszProvName: LPSTR, + pcbProvName: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptGetDefaultProviderW( + dwProvType: DWORD, + pdwReserved: *mut DWORD, + dwFlags: DWORD, + pszProvName: LPWSTR, + pcbProvName: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptEnumProviderTypesA( + dwIndex: DWORD, + pdwReserved: *mut DWORD, + dwFlags: DWORD, + pdwProvType: *mut DWORD, + szTypeName: LPSTR, + pcbTypeName: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptEnumProviderTypesW( + dwIndex: DWORD, + pdwReserved: *mut DWORD, + dwFlags: DWORD, + pdwProvType: *mut DWORD, + szTypeName: LPWSTR, + pcbTypeName: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptEnumProvidersA( + dwIndex: DWORD, + pdwReserved: *mut DWORD, + dwFlags: DWORD, + pdwProvType: *mut DWORD, + szProvName: LPSTR, + pcbProvName: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptEnumProvidersW( + dwIndex: DWORD, + pdwReserved: *mut DWORD, + dwFlags: DWORD, + pdwProvType: *mut DWORD, + szProvName: LPWSTR, + pcbProvName: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptContextAddRef(hProv: HCRYPTPROV, pdwReserved: *mut DWORD, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn CryptDuplicateKey( + hKey: HCRYPTKEY, + pdwReserved: *mut DWORD, + dwFlags: DWORD, + phKey: *mut HCRYPTKEY, + ) -> BOOL; +} +extern "C" { + pub fn CryptDuplicateHash( + hHash: HCRYPTHASH, + pdwReserved: *mut DWORD, + dwFlags: DWORD, + phHash: *mut HCRYPTHASH, + ) -> BOOL; +} +extern "C" { + pub fn GetEncSChannel(pData: *mut *mut BYTE, dwDecSize: *mut DWORD) -> BOOL; +} +pub type NTSTATUS = LONG; +pub type PNTSTATUS = *mut NTSTATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __BCRYPT_KEY_LENGTHS_STRUCT { + pub dwMinLength: ULONG, + pub dwMaxLength: ULONG, + pub dwIncrement: ULONG, +} +pub type BCRYPT_KEY_LENGTHS_STRUCT = __BCRYPT_KEY_LENGTHS_STRUCT; +pub type BCRYPT_AUTH_TAG_LENGTHS_STRUCT = BCRYPT_KEY_LENGTHS_STRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_OID { + pub cbOID: ULONG, + pub pbOID: PUCHAR, +} +pub type BCRYPT_OID = _BCRYPT_OID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_OID_LIST { + pub dwOIDCount: ULONG, + pub pOIDs: *mut BCRYPT_OID, +} +pub type BCRYPT_OID_LIST = _BCRYPT_OID_LIST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_PKCS1_PADDING_INFO { + pub pszAlgId: LPCWSTR, +} +pub type BCRYPT_PKCS1_PADDING_INFO = _BCRYPT_PKCS1_PADDING_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_PSS_PADDING_INFO { + pub pszAlgId: LPCWSTR, + pub cbSalt: ULONG, +} +pub type BCRYPT_PSS_PADDING_INFO = _BCRYPT_PSS_PADDING_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_OAEP_PADDING_INFO { + pub pszAlgId: LPCWSTR, + pub pbLabel: PUCHAR, + pub cbLabel: ULONG, +} +pub type BCRYPT_OAEP_PADDING_INFO = _BCRYPT_OAEP_PADDING_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO { + pub cbSize: ULONG, + pub dwInfoVersion: ULONG, + pub pbNonce: PUCHAR, + pub cbNonce: ULONG, + pub pbAuthData: PUCHAR, + pub cbAuthData: ULONG, + pub pbTag: PUCHAR, + pub cbTag: ULONG, + pub pbMacContext: PUCHAR, + pub cbMacContext: ULONG, + pub cbAAD: ULONG, + pub cbData: ULONGLONG, + pub dwFlags: ULONG, +} +pub type BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO = _BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO; +pub type PBCRYPT_AUTHENTICATED_CIPHER_MODE_INFO = *mut _BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCryptBuffer { + pub cbBuffer: ULONG, + pub BufferType: ULONG, + pub pvBuffer: PVOID, +} +pub type BCryptBuffer = _BCryptBuffer; +pub type PBCryptBuffer = *mut _BCryptBuffer; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCryptBufferDesc { + pub ulVersion: ULONG, + pub cBuffers: ULONG, + pub pBuffers: PBCryptBuffer, +} +pub type BCryptBufferDesc = _BCryptBufferDesc; +pub type PBCryptBufferDesc = *mut _BCryptBufferDesc; +pub type BCRYPT_HANDLE = PVOID; +pub type BCRYPT_ALG_HANDLE = PVOID; +pub type BCRYPT_KEY_HANDLE = PVOID; +pub type BCRYPT_HASH_HANDLE = PVOID; +pub type BCRYPT_SECRET_HANDLE = PVOID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_KEY_BLOB { + pub Magic: ULONG, +} +pub type BCRYPT_KEY_BLOB = _BCRYPT_KEY_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_RSAKEY_BLOB { + pub Magic: ULONG, + pub BitLength: ULONG, + pub cbPublicExp: ULONG, + pub cbModulus: ULONG, + pub cbPrime1: ULONG, + pub cbPrime2: ULONG, +} +pub type BCRYPT_RSAKEY_BLOB = _BCRYPT_RSAKEY_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_ECCKEY_BLOB { + pub dwMagic: ULONG, + pub cbKey: ULONG, +} +pub type BCRYPT_ECCKEY_BLOB = _BCRYPT_ECCKEY_BLOB; +pub type PBCRYPT_ECCKEY_BLOB = *mut _BCRYPT_ECCKEY_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SSL_ECCKEY_BLOB { + pub dwCurveType: ULONG, + pub cbKey: ULONG, +} +pub type SSL_ECCKEY_BLOB = _SSL_ECCKEY_BLOB; +pub type PSSL_ECCKEY_BLOB = *mut _SSL_ECCKEY_BLOB; +pub const ECC_CURVE_TYPE_ENUM_BCRYPT_ECC_PRIME_SHORT_WEIERSTRASS_CURVE: ECC_CURVE_TYPE_ENUM = 1; +pub const ECC_CURVE_TYPE_ENUM_BCRYPT_ECC_PRIME_TWISTED_EDWARDS_CURVE: ECC_CURVE_TYPE_ENUM = 2; +pub const ECC_CURVE_TYPE_ENUM_BCRYPT_ECC_PRIME_MONTGOMERY_CURVE: ECC_CURVE_TYPE_ENUM = 3; +pub type ECC_CURVE_TYPE_ENUM = ::std::os::raw::c_int; +pub const ECC_CURVE_ALG_ID_ENUM_BCRYPT_NO_CURVE_GENERATION_ALG_ID: ECC_CURVE_ALG_ID_ENUM = 0; +pub type ECC_CURVE_ALG_ID_ENUM = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_ECCFULLKEY_BLOB { + pub dwMagic: ULONG, + pub dwVersion: ULONG, + pub dwCurveType: ECC_CURVE_TYPE_ENUM, + pub dwCurveGenerationAlgId: ECC_CURVE_ALG_ID_ENUM, + pub cbFieldLength: ULONG, + pub cbSubgroupOrder: ULONG, + pub cbCofactor: ULONG, + pub cbSeed: ULONG, +} +pub type BCRYPT_ECCFULLKEY_BLOB = _BCRYPT_ECCFULLKEY_BLOB; +pub type PBCRYPT_ECCFULLKEY_BLOB = *mut _BCRYPT_ECCFULLKEY_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_DH_KEY_BLOB { + pub dwMagic: ULONG, + pub cbKey: ULONG, +} +pub type BCRYPT_DH_KEY_BLOB = _BCRYPT_DH_KEY_BLOB; +pub type PBCRYPT_DH_KEY_BLOB = *mut _BCRYPT_DH_KEY_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_DH_PARAMETER_HEADER { + pub cbLength: ULONG, + pub dwMagic: ULONG, + pub cbKeyLength: ULONG, +} +pub type BCRYPT_DH_PARAMETER_HEADER = _BCRYPT_DH_PARAMETER_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_DSA_KEY_BLOB { + pub dwMagic: ULONG, + pub cbKey: ULONG, + pub Count: [UCHAR; 4usize], + pub Seed: [UCHAR; 20usize], + pub q: [UCHAR; 20usize], +} +pub type BCRYPT_DSA_KEY_BLOB = _BCRYPT_DSA_KEY_BLOB; +pub type PBCRYPT_DSA_KEY_BLOB = *mut _BCRYPT_DSA_KEY_BLOB; +pub const HASHALGORITHM_ENUM_DSA_HASH_ALGORITHM_SHA1: HASHALGORITHM_ENUM = 0; +pub const HASHALGORITHM_ENUM_DSA_HASH_ALGORITHM_SHA256: HASHALGORITHM_ENUM = 1; +pub const HASHALGORITHM_ENUM_DSA_HASH_ALGORITHM_SHA512: HASHALGORITHM_ENUM = 2; +pub type HASHALGORITHM_ENUM = ::std::os::raw::c_int; +pub const DSAFIPSVERSION_ENUM_DSA_FIPS186_2: DSAFIPSVERSION_ENUM = 0; +pub const DSAFIPSVERSION_ENUM_DSA_FIPS186_3: DSAFIPSVERSION_ENUM = 1; +pub type DSAFIPSVERSION_ENUM = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_DSA_KEY_BLOB_V2 { + pub dwMagic: ULONG, + pub cbKey: ULONG, + pub hashAlgorithm: HASHALGORITHM_ENUM, + pub standardVersion: DSAFIPSVERSION_ENUM, + pub cbSeedLength: ULONG, + pub cbGroupSize: ULONG, + pub Count: [UCHAR; 4usize], +} +pub type BCRYPT_DSA_KEY_BLOB_V2 = _BCRYPT_DSA_KEY_BLOB_V2; +pub type PBCRYPT_DSA_KEY_BLOB_V2 = *mut _BCRYPT_DSA_KEY_BLOB_V2; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_KEY_DATA_BLOB_HEADER { + pub dwMagic: ULONG, + pub dwVersion: ULONG, + pub cbKeyData: ULONG, +} +pub type BCRYPT_KEY_DATA_BLOB_HEADER = _BCRYPT_KEY_DATA_BLOB_HEADER; +pub type PBCRYPT_KEY_DATA_BLOB_HEADER = *mut _BCRYPT_KEY_DATA_BLOB_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_DSA_PARAMETER_HEADER { + pub cbLength: ULONG, + pub dwMagic: ULONG, + pub cbKeyLength: ULONG, + pub Count: [UCHAR; 4usize], + pub Seed: [UCHAR; 20usize], + pub q: [UCHAR; 20usize], +} +pub type BCRYPT_DSA_PARAMETER_HEADER = _BCRYPT_DSA_PARAMETER_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_DSA_PARAMETER_HEADER_V2 { + pub cbLength: ULONG, + pub dwMagic: ULONG, + pub cbKeyLength: ULONG, + pub hashAlgorithm: HASHALGORITHM_ENUM, + pub standardVersion: DSAFIPSVERSION_ENUM, + pub cbSeedLength: ULONG, + pub cbGroupSize: ULONG, + pub Count: [UCHAR; 4usize], +} +pub type BCRYPT_DSA_PARAMETER_HEADER_V2 = _BCRYPT_DSA_PARAMETER_HEADER_V2; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_ECC_CURVE_NAMES { + pub dwEccCurveNames: ULONG, + pub pEccCurveNames: *mut LPWSTR, +} +pub type BCRYPT_ECC_CURVE_NAMES = _BCRYPT_ECC_CURVE_NAMES; +pub const BCRYPT_HASH_OPERATION_TYPE_BCRYPT_HASH_OPERATION_HASH_DATA: BCRYPT_HASH_OPERATION_TYPE = + 1; +pub const BCRYPT_HASH_OPERATION_TYPE_BCRYPT_HASH_OPERATION_FINISH_HASH: BCRYPT_HASH_OPERATION_TYPE = + 2; +pub type BCRYPT_HASH_OPERATION_TYPE = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_MULTI_HASH_OPERATION { + pub iHash: ULONG, + pub hashOperation: BCRYPT_HASH_OPERATION_TYPE, + pub pbBuffer: PUCHAR, + pub cbBuffer: ULONG, +} +pub type BCRYPT_MULTI_HASH_OPERATION = _BCRYPT_MULTI_HASH_OPERATION; +pub const BCRYPT_MULTI_OPERATION_TYPE_BCRYPT_OPERATION_TYPE_HASH: BCRYPT_MULTI_OPERATION_TYPE = 1; +pub type BCRYPT_MULTI_OPERATION_TYPE = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_MULTI_OBJECT_LENGTH_STRUCT { + pub cbPerObject: ULONG, + pub cbPerElement: ULONG, +} +pub type BCRYPT_MULTI_OBJECT_LENGTH_STRUCT = _BCRYPT_MULTI_OBJECT_LENGTH_STRUCT; +extern "C" { + pub fn BCryptOpenAlgorithmProvider( + phAlgorithm: *mut BCRYPT_ALG_HANDLE, + pszAlgId: LPCWSTR, + pszImplementation: LPCWSTR, + dwFlags: ULONG, + ) -> NTSTATUS; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_ALGORITHM_IDENTIFIER { + pub pszName: LPWSTR, + pub dwClass: ULONG, + pub dwFlags: ULONG, +} +pub type BCRYPT_ALGORITHM_IDENTIFIER = _BCRYPT_ALGORITHM_IDENTIFIER; +extern "C" { + pub fn BCryptEnumAlgorithms( + dwAlgOperations: ULONG, + pAlgCount: *mut ULONG, + ppAlgList: *mut *mut BCRYPT_ALGORITHM_IDENTIFIER, + dwFlags: ULONG, + ) -> NTSTATUS; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_PROVIDER_NAME { + pub pszProviderName: LPWSTR, +} +pub type BCRYPT_PROVIDER_NAME = _BCRYPT_PROVIDER_NAME; +extern "C" { + pub fn BCryptEnumProviders( + pszAlgId: LPCWSTR, + pImplCount: *mut ULONG, + ppImplList: *mut *mut BCRYPT_PROVIDER_NAME, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptGetProperty( + hObject: BCRYPT_HANDLE, + pszProperty: LPCWSTR, + pbOutput: PUCHAR, + cbOutput: ULONG, + pcbResult: *mut ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptSetProperty( + hObject: BCRYPT_HANDLE, + pszProperty: LPCWSTR, + pbInput: PUCHAR, + cbInput: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptCloseAlgorithmProvider(hAlgorithm: BCRYPT_ALG_HANDLE, dwFlags: ULONG) -> NTSTATUS; +} +extern "C" { + pub fn BCryptFreeBuffer(pvBuffer: PVOID); +} +extern "C" { + pub fn BCryptGenerateSymmetricKey( + hAlgorithm: BCRYPT_ALG_HANDLE, + phKey: *mut BCRYPT_KEY_HANDLE, + pbKeyObject: PUCHAR, + cbKeyObject: ULONG, + pbSecret: PUCHAR, + cbSecret: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptGenerateKeyPair( + hAlgorithm: BCRYPT_ALG_HANDLE, + phKey: *mut BCRYPT_KEY_HANDLE, + dwLength: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptEncrypt( + hKey: BCRYPT_KEY_HANDLE, + pbInput: PUCHAR, + cbInput: ULONG, + pPaddingInfo: *mut ::std::os::raw::c_void, + pbIV: PUCHAR, + cbIV: ULONG, + pbOutput: PUCHAR, + cbOutput: ULONG, + pcbResult: *mut ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptDecrypt( + hKey: BCRYPT_KEY_HANDLE, + pbInput: PUCHAR, + cbInput: ULONG, + pPaddingInfo: *mut ::std::os::raw::c_void, + pbIV: PUCHAR, + cbIV: ULONG, + pbOutput: PUCHAR, + cbOutput: ULONG, + pcbResult: *mut ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptExportKey( + hKey: BCRYPT_KEY_HANDLE, + hExportKey: BCRYPT_KEY_HANDLE, + pszBlobType: LPCWSTR, + pbOutput: PUCHAR, + cbOutput: ULONG, + pcbResult: *mut ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptImportKey( + hAlgorithm: BCRYPT_ALG_HANDLE, + hImportKey: BCRYPT_KEY_HANDLE, + pszBlobType: LPCWSTR, + phKey: *mut BCRYPT_KEY_HANDLE, + pbKeyObject: PUCHAR, + cbKeyObject: ULONG, + pbInput: PUCHAR, + cbInput: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptImportKeyPair( + hAlgorithm: BCRYPT_ALG_HANDLE, + hImportKey: BCRYPT_KEY_HANDLE, + pszBlobType: LPCWSTR, + phKey: *mut BCRYPT_KEY_HANDLE, + pbInput: PUCHAR, + cbInput: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptDuplicateKey( + hKey: BCRYPT_KEY_HANDLE, + phNewKey: *mut BCRYPT_KEY_HANDLE, + pbKeyObject: PUCHAR, + cbKeyObject: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptFinalizeKeyPair(hKey: BCRYPT_KEY_HANDLE, dwFlags: ULONG) -> NTSTATUS; +} +extern "C" { + pub fn BCryptDestroyKey(hKey: BCRYPT_KEY_HANDLE) -> NTSTATUS; +} +extern "C" { + pub fn BCryptDestroySecret(hSecret: BCRYPT_SECRET_HANDLE) -> NTSTATUS; +} +extern "C" { + pub fn BCryptSignHash( + hKey: BCRYPT_KEY_HANDLE, + pPaddingInfo: *mut ::std::os::raw::c_void, + pbInput: PUCHAR, + cbInput: ULONG, + pbOutput: PUCHAR, + cbOutput: ULONG, + pcbResult: *mut ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptVerifySignature( + hKey: BCRYPT_KEY_HANDLE, + pPaddingInfo: *mut ::std::os::raw::c_void, + pbHash: PUCHAR, + cbHash: ULONG, + pbSignature: PUCHAR, + cbSignature: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptSecretAgreement( + hPrivKey: BCRYPT_KEY_HANDLE, + hPubKey: BCRYPT_KEY_HANDLE, + phAgreedSecret: *mut BCRYPT_SECRET_HANDLE, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptDeriveKey( + hSharedSecret: BCRYPT_SECRET_HANDLE, + pwszKDF: LPCWSTR, + pParameterList: *mut BCryptBufferDesc, + pbDerivedKey: PUCHAR, + cbDerivedKey: ULONG, + pcbResult: *mut ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptKeyDerivation( + hKey: BCRYPT_KEY_HANDLE, + pParameterList: *mut BCryptBufferDesc, + pbDerivedKey: PUCHAR, + cbDerivedKey: ULONG, + pcbResult: *mut ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptCreateHash( + hAlgorithm: BCRYPT_ALG_HANDLE, + phHash: *mut BCRYPT_HASH_HANDLE, + pbHashObject: PUCHAR, + cbHashObject: ULONG, + pbSecret: PUCHAR, + cbSecret: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptHashData( + hHash: BCRYPT_HASH_HANDLE, + pbInput: PUCHAR, + cbInput: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptFinishHash( + hHash: BCRYPT_HASH_HANDLE, + pbOutput: PUCHAR, + cbOutput: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptCreateMultiHash( + hAlgorithm: BCRYPT_ALG_HANDLE, + phHash: *mut BCRYPT_HASH_HANDLE, + nHashes: ULONG, + pbHashObject: PUCHAR, + cbHashObject: ULONG, + pbSecret: PUCHAR, + cbSecret: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptProcessMultiOperations( + hObject: BCRYPT_HANDLE, + operationType: BCRYPT_MULTI_OPERATION_TYPE, + pOperations: PVOID, + cbOperations: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptDuplicateHash( + hHash: BCRYPT_HASH_HANDLE, + phNewHash: *mut BCRYPT_HASH_HANDLE, + pbHashObject: PUCHAR, + cbHashObject: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptDestroyHash(hHash: BCRYPT_HASH_HANDLE) -> NTSTATUS; +} +extern "C" { + pub fn BCryptHash( + hAlgorithm: BCRYPT_ALG_HANDLE, + pbSecret: PUCHAR, + cbSecret: ULONG, + pbInput: PUCHAR, + cbInput: ULONG, + pbOutput: PUCHAR, + cbOutput: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptGenRandom( + hAlgorithm: BCRYPT_ALG_HANDLE, + pbBuffer: PUCHAR, + cbBuffer: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptDeriveKeyCapi( + hHash: BCRYPT_HASH_HANDLE, + hTargetAlg: BCRYPT_ALG_HANDLE, + pbDerivedKey: PUCHAR, + cbDerivedKey: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptDeriveKeyPBKDF2( + hPrf: BCRYPT_ALG_HANDLE, + pbPassword: PUCHAR, + cbPassword: ULONG, + pbSalt: PUCHAR, + cbSalt: ULONG, + cIterations: ULONGLONG, + pbDerivedKey: PUCHAR, + cbDerivedKey: ULONG, + dwFlags: ULONG, + ) -> NTSTATUS; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BCRYPT_INTERFACE_VERSION { + pub MajorVersion: USHORT, + pub MinorVersion: USHORT, +} +pub type BCRYPT_INTERFACE_VERSION = _BCRYPT_INTERFACE_VERSION; +pub type PBCRYPT_INTERFACE_VERSION = *mut _BCRYPT_INTERFACE_VERSION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_INTERFACE_REG { + pub dwInterface: ULONG, + pub dwFlags: ULONG, + pub cFunctions: ULONG, + pub rgpszFunctions: *mut PWSTR, +} +pub type CRYPT_INTERFACE_REG = _CRYPT_INTERFACE_REG; +pub type PCRYPT_INTERFACE_REG = *mut _CRYPT_INTERFACE_REG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_IMAGE_REG { + pub pszImage: PWSTR, + pub cInterfaces: ULONG, + pub rgpInterfaces: *mut PCRYPT_INTERFACE_REG, +} +pub type CRYPT_IMAGE_REG = _CRYPT_IMAGE_REG; +pub type PCRYPT_IMAGE_REG = *mut _CRYPT_IMAGE_REG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_PROVIDER_REG { + pub cAliases: ULONG, + pub rgpszAliases: *mut PWSTR, + pub pUM: PCRYPT_IMAGE_REG, + pub pKM: PCRYPT_IMAGE_REG, +} +pub type CRYPT_PROVIDER_REG = _CRYPT_PROVIDER_REG; +pub type PCRYPT_PROVIDER_REG = *mut _CRYPT_PROVIDER_REG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_PROVIDERS { + pub cProviders: ULONG, + pub rgpszProviders: *mut PWSTR, +} +pub type CRYPT_PROVIDERS = _CRYPT_PROVIDERS; +pub type PCRYPT_PROVIDERS = *mut _CRYPT_PROVIDERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_CONTEXT_CONFIG { + pub dwFlags: ULONG, + pub dwReserved: ULONG, +} +pub type CRYPT_CONTEXT_CONFIG = _CRYPT_CONTEXT_CONFIG; +pub type PCRYPT_CONTEXT_CONFIG = *mut _CRYPT_CONTEXT_CONFIG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_CONTEXT_FUNCTION_CONFIG { + pub dwFlags: ULONG, + pub dwReserved: ULONG, +} +pub type CRYPT_CONTEXT_FUNCTION_CONFIG = _CRYPT_CONTEXT_FUNCTION_CONFIG; +pub type PCRYPT_CONTEXT_FUNCTION_CONFIG = *mut _CRYPT_CONTEXT_FUNCTION_CONFIG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_CONTEXTS { + pub cContexts: ULONG, + pub rgpszContexts: *mut PWSTR, +} +pub type CRYPT_CONTEXTS = _CRYPT_CONTEXTS; +pub type PCRYPT_CONTEXTS = *mut _CRYPT_CONTEXTS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_CONTEXT_FUNCTIONS { + pub cFunctions: ULONG, + pub rgpszFunctions: *mut PWSTR, +} +pub type CRYPT_CONTEXT_FUNCTIONS = _CRYPT_CONTEXT_FUNCTIONS; +pub type PCRYPT_CONTEXT_FUNCTIONS = *mut _CRYPT_CONTEXT_FUNCTIONS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_CONTEXT_FUNCTION_PROVIDERS { + pub cProviders: ULONG, + pub rgpszProviders: *mut PWSTR, +} +pub type CRYPT_CONTEXT_FUNCTION_PROVIDERS = _CRYPT_CONTEXT_FUNCTION_PROVIDERS; +pub type PCRYPT_CONTEXT_FUNCTION_PROVIDERS = *mut _CRYPT_CONTEXT_FUNCTION_PROVIDERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_PROPERTY_REF { + pub pszProperty: PWSTR, + pub cbValue: ULONG, + pub pbValue: PUCHAR, +} +pub type CRYPT_PROPERTY_REF = _CRYPT_PROPERTY_REF; +pub type PCRYPT_PROPERTY_REF = *mut _CRYPT_PROPERTY_REF; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_IMAGE_REF { + pub pszImage: PWSTR, + pub dwFlags: ULONG, +} +pub type CRYPT_IMAGE_REF = _CRYPT_IMAGE_REF; +pub type PCRYPT_IMAGE_REF = *mut _CRYPT_IMAGE_REF; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_PROVIDER_REF { + pub dwInterface: ULONG, + pub pszFunction: PWSTR, + pub pszProvider: PWSTR, + pub cProperties: ULONG, + pub rgpProperties: *mut PCRYPT_PROPERTY_REF, + pub pUM: PCRYPT_IMAGE_REF, + pub pKM: PCRYPT_IMAGE_REF, +} +pub type CRYPT_PROVIDER_REF = _CRYPT_PROVIDER_REF; +pub type PCRYPT_PROVIDER_REF = *mut _CRYPT_PROVIDER_REF; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_PROVIDER_REFS { + pub cProviders: ULONG, + pub rgpProviders: *mut PCRYPT_PROVIDER_REF, +} +pub type CRYPT_PROVIDER_REFS = _CRYPT_PROVIDER_REFS; +pub type PCRYPT_PROVIDER_REFS = *mut _CRYPT_PROVIDER_REFS; +extern "C" { + pub fn BCryptQueryProviderRegistration( + pszProvider: LPCWSTR, + dwMode: ULONG, + dwInterface: ULONG, + pcbBuffer: *mut ULONG, + ppBuffer: *mut PCRYPT_PROVIDER_REG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptEnumRegisteredProviders( + pcbBuffer: *mut ULONG, + ppBuffer: *mut PCRYPT_PROVIDERS, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptCreateContext( + dwTable: ULONG, + pszContext: LPCWSTR, + pConfig: PCRYPT_CONTEXT_CONFIG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptDeleteContext(dwTable: ULONG, pszContext: LPCWSTR) -> NTSTATUS; +} +extern "C" { + pub fn BCryptEnumContexts( + dwTable: ULONG, + pcbBuffer: *mut ULONG, + ppBuffer: *mut PCRYPT_CONTEXTS, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptConfigureContext( + dwTable: ULONG, + pszContext: LPCWSTR, + pConfig: PCRYPT_CONTEXT_CONFIG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptQueryContextConfiguration( + dwTable: ULONG, + pszContext: LPCWSTR, + pcbBuffer: *mut ULONG, + ppBuffer: *mut PCRYPT_CONTEXT_CONFIG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptAddContextFunction( + dwTable: ULONG, + pszContext: LPCWSTR, + dwInterface: ULONG, + pszFunction: LPCWSTR, + dwPosition: ULONG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptRemoveContextFunction( + dwTable: ULONG, + pszContext: LPCWSTR, + dwInterface: ULONG, + pszFunction: LPCWSTR, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptEnumContextFunctions( + dwTable: ULONG, + pszContext: LPCWSTR, + dwInterface: ULONG, + pcbBuffer: *mut ULONG, + ppBuffer: *mut PCRYPT_CONTEXT_FUNCTIONS, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptConfigureContextFunction( + dwTable: ULONG, + pszContext: LPCWSTR, + dwInterface: ULONG, + pszFunction: LPCWSTR, + pConfig: PCRYPT_CONTEXT_FUNCTION_CONFIG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptQueryContextFunctionConfiguration( + dwTable: ULONG, + pszContext: LPCWSTR, + dwInterface: ULONG, + pszFunction: LPCWSTR, + pcbBuffer: *mut ULONG, + ppBuffer: *mut PCRYPT_CONTEXT_FUNCTION_CONFIG, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptEnumContextFunctionProviders( + dwTable: ULONG, + pszContext: LPCWSTR, + dwInterface: ULONG, + pszFunction: LPCWSTR, + pcbBuffer: *mut ULONG, + ppBuffer: *mut PCRYPT_CONTEXT_FUNCTION_PROVIDERS, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptSetContextFunctionProperty( + dwTable: ULONG, + pszContext: LPCWSTR, + dwInterface: ULONG, + pszFunction: LPCWSTR, + pszProperty: LPCWSTR, + cbValue: ULONG, + pbValue: PUCHAR, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptQueryContextFunctionProperty( + dwTable: ULONG, + pszContext: LPCWSTR, + dwInterface: ULONG, + pszFunction: LPCWSTR, + pszProperty: LPCWSTR, + pcbValue: *mut ULONG, + ppbValue: *mut PUCHAR, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptRegisterConfigChangeNotify(phEvent: *mut HANDLE) -> NTSTATUS; +} +extern "C" { + pub fn BCryptUnregisterConfigChangeNotify(hEvent: HANDLE) -> NTSTATUS; +} +extern "C" { + pub fn BCryptResolveProviders( + pszContext: LPCWSTR, + dwInterface: ULONG, + pszFunction: LPCWSTR, + pszProvider: LPCWSTR, + dwMode: ULONG, + dwFlags: ULONG, + pcbBuffer: *mut ULONG, + ppBuffer: *mut PCRYPT_PROVIDER_REFS, + ) -> NTSTATUS; +} +extern "C" { + pub fn BCryptGetFipsAlgorithmMode(pfEnabled: *mut BOOLEAN) -> NTSTATUS; +} +extern "C" { + pub fn CngGetFipsAlgorithmMode() -> BOOLEAN; +} +pub type SECURITY_STATUS = LONG; +pub type PFN_NCRYPT_ALLOC = ::std::option::Option LPVOID>; +pub type PFN_NCRYPT_FREE = ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NCRYPT_ALLOC_PARA { + pub cbSize: DWORD, + pub pfnAlloc: PFN_NCRYPT_ALLOC, + pub pfnFree: PFN_NCRYPT_FREE, +} +pub type NCryptBuffer = BCryptBuffer; +pub type PNCryptBuffer = *mut BCryptBuffer; +pub type NCryptBufferDesc = BCryptBufferDesc; +pub type PNCryptBufferDesc = *mut BCryptBufferDesc; +pub type NCRYPT_HANDLE = ULONG_PTR; +pub type NCRYPT_PROV_HANDLE = ULONG_PTR; +pub type NCRYPT_KEY_HANDLE = ULONG_PTR; +pub type NCRYPT_HASH_HANDLE = ULONG_PTR; +pub type NCRYPT_SECRET_HANDLE = ULONG_PTR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NCRYPT_CIPHER_PADDING_INFO { + pub cbSize: ULONG, + pub dwFlags: DWORD, + pub pbIV: PUCHAR, + pub cbIV: ULONG, + pub pbOtherInfo: PUCHAR, + pub cbOtherInfo: ULONG, +} +pub type NCRYPT_CIPHER_PADDING_INFO = _NCRYPT_CIPHER_PADDING_INFO; +pub type PNCRYPT_CIPHER_PADDING_INFO = *mut _NCRYPT_CIPHER_PADDING_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NCRYPT_PLATFORM_ATTEST_PADDING_INFO { + pub magic: ULONG, + pub pcrMask: ULONG, +} +pub type NCRYPT_PLATFORM_ATTEST_PADDING_INFO = _NCRYPT_PLATFORM_ATTEST_PADDING_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NCRYPT_KEY_ATTEST_PADDING_INFO { + pub magic: ULONG, + pub pbKeyBlob: PUCHAR, + pub cbKeyBlob: ULONG, + pub pbKeyAuth: PUCHAR, + pub cbKeyAuth: ULONG, +} +pub type NCRYPT_KEY_ATTEST_PADDING_INFO = _NCRYPT_KEY_ATTEST_PADDING_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES { + pub Version: ULONG, + pub Flags: ULONG, + pub cbPublicKeyBlob: ULONG, +} +pub type NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES = _NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES; +pub type PNCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES = *mut _NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NCRYPT_VSM_KEY_ATTESTATION_STATEMENT { + pub Magic: ULONG, + pub Version: ULONG, + pub cbSignature: ULONG, + pub cbReport: ULONG, + pub cbAttributes: ULONG, +} +pub type NCRYPT_VSM_KEY_ATTESTATION_STATEMENT = _NCRYPT_VSM_KEY_ATTESTATION_STATEMENT; +pub type PNCRYPT_VSM_KEY_ATTESTATION_STATEMENT = *mut _NCRYPT_VSM_KEY_ATTESTATION_STATEMENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS { + pub Version: ULONG, + pub TrustletId: ULONGLONG, + pub MinSvn: ULONG, + pub FlagsMask: ULONG, + pub FlagsExpected: ULONG, + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS { + #[inline] + pub fn AllowDebugging(&self) -> ULONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_AllowDebugging(&mut self, val: ULONG) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> ULONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } + } + #[inline] + pub fn set_Reserved(&mut self, val: ULONG) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 31u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + AllowDebugging: ULONG, + Reserved: ULONG, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let AllowDebugging: u32 = unsafe { ::std::mem::transmute(AllowDebugging) }; + AllowDebugging as u64 + }); + __bindgen_bitfield_unit.set(1usize, 31u8, { + let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS = + _NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS; +pub type PNCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS = + *mut _NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NCRYPT_EXPORTED_ISOLATED_KEY_HEADER { + pub Version: ULONG, + pub KeyUsage: ULONG, + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub cbAlgName: ULONG, + pub cbNonce: ULONG, + pub cbAuthTag: ULONG, + pub cbWrappingKey: ULONG, + pub cbIsolatedKey: ULONG, +} +impl _NCRYPT_EXPORTED_ISOLATED_KEY_HEADER { + #[inline] + pub fn PerBootKey(&self) -> ULONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_PerBootKey(&mut self, val: ULONG) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> ULONG { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } + } + #[inline] + pub fn set_Reserved(&mut self, val: ULONG) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 31u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + PerBootKey: ULONG, + Reserved: ULONG, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let PerBootKey: u32 = unsafe { ::std::mem::transmute(PerBootKey) }; + PerBootKey as u64 + }); + __bindgen_bitfield_unit.set(1usize, 31u8, { + let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type NCRYPT_EXPORTED_ISOLATED_KEY_HEADER = _NCRYPT_EXPORTED_ISOLATED_KEY_HEADER; +pub type PNCRYPT_EXPORTED_ISOLATED_KEY_HEADER = *mut _NCRYPT_EXPORTED_ISOLATED_KEY_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE { + pub Header: NCRYPT_EXPORTED_ISOLATED_KEY_HEADER, +} +pub type NCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE = _NCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE; +pub type PNCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE = *mut _NCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __NCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT { + pub Magic: UINT32, + pub Version: UINT32, + pub HeaderSize: UINT32, + pub cbCertifyInfo: UINT32, + pub cbSignature: UINT32, + pub cbTpmPublic: UINT32, +} +pub type NCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT = + __NCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT; +pub type PNCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT = + *mut __NCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT { + pub Magic: ULONG, + pub Version: ULONG, + pub pcrAlg: ULONG, + pub cbSignature: ULONG, + pub cbQuote: ULONG, + pub cbPcrs: ULONG, +} +pub type NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT = _NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT; +pub type PNCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT = + *mut _NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT; +extern "C" { + pub fn NCryptOpenStorageProvider( + phProvider: *mut NCRYPT_PROV_HANDLE, + pszProviderName: LPCWSTR, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NCryptAlgorithmName { + pub pszName: LPWSTR, + pub dwClass: DWORD, + pub dwAlgOperations: DWORD, + pub dwFlags: DWORD, +} +pub type NCryptAlgorithmName = _NCryptAlgorithmName; +extern "C" { + pub fn NCryptEnumAlgorithms( + hProvider: NCRYPT_PROV_HANDLE, + dwAlgOperations: DWORD, + pdwAlgCount: *mut DWORD, + ppAlgList: *mut *mut NCryptAlgorithmName, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptIsAlgSupported( + hProvider: NCRYPT_PROV_HANDLE, + pszAlgId: LPCWSTR, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NCryptKeyName { + pub pszName: LPWSTR, + pub pszAlgid: LPWSTR, + pub dwLegacyKeySpec: DWORD, + pub dwFlags: DWORD, +} +extern "C" { + pub fn NCryptEnumKeys( + hProvider: NCRYPT_PROV_HANDLE, + pszScope: LPCWSTR, + ppKeyName: *mut *mut NCryptKeyName, + ppEnumState: *mut PVOID, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NCryptProviderName { + pub pszName: LPWSTR, + pub pszComment: LPWSTR, +} +extern "C" { + pub fn NCryptEnumStorageProviders( + pdwProviderCount: *mut DWORD, + ppProviderList: *mut *mut NCryptProviderName, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptFreeBuffer(pvInput: PVOID) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptOpenKey( + hProvider: NCRYPT_PROV_HANDLE, + phKey: *mut NCRYPT_KEY_HANDLE, + pszKeyName: LPCWSTR, + dwLegacyKeySpec: DWORD, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptCreatePersistedKey( + hProvider: NCRYPT_PROV_HANDLE, + phKey: *mut NCRYPT_KEY_HANDLE, + pszAlgId: LPCWSTR, + pszKeyName: LPCWSTR, + dwLegacyKeySpec: DWORD, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __NCRYPT_UI_POLICY { + pub dwVersion: DWORD, + pub dwFlags: DWORD, + pub pszCreationTitle: LPCWSTR, + pub pszFriendlyName: LPCWSTR, + pub pszDescription: LPCWSTR, +} +pub type NCRYPT_UI_POLICY = __NCRYPT_UI_POLICY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __NCRYPT_KEY_ACCESS_POLICY_BLOB { + pub dwVersion: DWORD, + pub dwPolicyFlags: DWORD, + pub cbUserSid: DWORD, + pub cbApplicationSid: DWORD, +} +pub type NCRYPT_KEY_ACCESS_POLICY_BLOB = __NCRYPT_KEY_ACCESS_POLICY_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __NCRYPT_SUPPORTED_LENGTHS { + pub dwMinLength: DWORD, + pub dwMaxLength: DWORD, + pub dwIncrement: DWORD, + pub dwDefaultLength: DWORD, +} +pub type NCRYPT_SUPPORTED_LENGTHS = __NCRYPT_SUPPORTED_LENGTHS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __NCRYPT_PCP_HMAC_AUTH_SIGNATURE_INFO { + pub dwVersion: DWORD, + pub iExpiration: INT32, + pub pabNonce: [BYTE; 32usize], + pub pabPolicyRef: [BYTE; 32usize], + pub pabHMAC: [BYTE; 32usize], +} +pub type NCRYPT_PCP_HMAC_AUTH_SIGNATURE_INFO = __NCRYPT_PCP_HMAC_AUTH_SIGNATURE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __NCRYPT_PCP_TPM_FW_VERSION_INFO { + pub major1: UINT16, + pub major2: UINT16, + pub minor1: UINT16, + pub minor2: UINT16, +} +pub type NCRYPT_PCP_TPM_FW_VERSION_INFO = __NCRYPT_PCP_TPM_FW_VERSION_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __NCRYPT_PCP_RAW_POLICYDIGEST { + pub dwVersion: DWORD, + pub cbDigest: DWORD, +} +pub type NCRYPT_PCP_RAW_POLICYDIGEST_INFO = __NCRYPT_PCP_RAW_POLICYDIGEST; +extern "C" { + pub fn NCryptGetProperty( + hObject: NCRYPT_HANDLE, + pszProperty: LPCWSTR, + pbOutput: PBYTE, + cbOutput: DWORD, + pcbResult: *mut DWORD, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptSetProperty( + hObject: NCRYPT_HANDLE, + pszProperty: LPCWSTR, + pbInput: PBYTE, + cbInput: DWORD, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptFinalizeKey(hKey: NCRYPT_KEY_HANDLE, dwFlags: DWORD) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptEncrypt( + hKey: NCRYPT_KEY_HANDLE, + pbInput: PBYTE, + cbInput: DWORD, + pPaddingInfo: *mut ::std::os::raw::c_void, + pbOutput: PBYTE, + cbOutput: DWORD, + pcbResult: *mut DWORD, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptDecrypt( + hKey: NCRYPT_KEY_HANDLE, + pbInput: PBYTE, + cbInput: DWORD, + pPaddingInfo: *mut ::std::os::raw::c_void, + pbOutput: PBYTE, + cbOutput: DWORD, + pcbResult: *mut DWORD, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NCRYPT_KEY_BLOB_HEADER { + pub cbSize: ULONG, + pub dwMagic: ULONG, + pub cbAlgName: ULONG, + pub cbKeyData: ULONG, +} +pub type NCRYPT_KEY_BLOB_HEADER = _NCRYPT_KEY_BLOB_HEADER; +pub type PNCRYPT_KEY_BLOB_HEADER = *mut _NCRYPT_KEY_BLOB_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NCRYPT_TPM_LOADABLE_KEY_BLOB_HEADER { + pub magic: DWORD, + pub cbHeader: DWORD, + pub cbPublic: DWORD, + pub cbPrivate: DWORD, + pub cbName: DWORD, +} +pub type PNCRYPT_TPM_LOADABLE_KEY_BLOB_HEADER = *mut NCRYPT_TPM_LOADABLE_KEY_BLOB_HEADER; +extern "C" { + pub fn NCryptImportKey( + hProvider: NCRYPT_PROV_HANDLE, + hImportKey: NCRYPT_KEY_HANDLE, + pszBlobType: LPCWSTR, + pParameterList: *mut NCryptBufferDesc, + phKey: *mut NCRYPT_KEY_HANDLE, + pbData: PBYTE, + cbData: DWORD, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptExportKey( + hKey: NCRYPT_KEY_HANDLE, + hExportKey: NCRYPT_KEY_HANDLE, + pszBlobType: LPCWSTR, + pParameterList: *mut NCryptBufferDesc, + pbOutput: PBYTE, + cbOutput: DWORD, + pcbResult: *mut DWORD, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptSignHash( + hKey: NCRYPT_KEY_HANDLE, + pPaddingInfo: *mut ::std::os::raw::c_void, + pbHashValue: PBYTE, + cbHashValue: DWORD, + pbSignature: PBYTE, + cbSignature: DWORD, + pcbResult: *mut DWORD, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptVerifySignature( + hKey: NCRYPT_KEY_HANDLE, + pPaddingInfo: *mut ::std::os::raw::c_void, + pbHashValue: PBYTE, + cbHashValue: DWORD, + pbSignature: PBYTE, + cbSignature: DWORD, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptDeleteKey(hKey: NCRYPT_KEY_HANDLE, dwFlags: DWORD) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptFreeObject(hObject: NCRYPT_HANDLE) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptIsKeyHandle(hKey: NCRYPT_KEY_HANDLE) -> BOOL; +} +extern "C" { + pub fn NCryptTranslateHandle( + phProvider: *mut NCRYPT_PROV_HANDLE, + phKey: *mut NCRYPT_KEY_HANDLE, + hLegacyProv: HCRYPTPROV, + hLegacyKey: HCRYPTKEY, + dwLegacyKeySpec: DWORD, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptNotifyChangeKey( + hProvider: NCRYPT_PROV_HANDLE, + phEvent: *mut HANDLE, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptSecretAgreement( + hPrivKey: NCRYPT_KEY_HANDLE, + hPubKey: NCRYPT_KEY_HANDLE, + phAgreedSecret: *mut NCRYPT_SECRET_HANDLE, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptDeriveKey( + hSharedSecret: NCRYPT_SECRET_HANDLE, + pwszKDF: LPCWSTR, + pParameterList: *mut NCryptBufferDesc, + pbDerivedKey: PBYTE, + cbDerivedKey: DWORD, + pcbResult: *mut DWORD, + dwFlags: ULONG, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptKeyDerivation( + hKey: NCRYPT_KEY_HANDLE, + pParameterList: *mut NCryptBufferDesc, + pbDerivedKey: PUCHAR, + cbDerivedKey: DWORD, + pcbResult: *mut DWORD, + dwFlags: ULONG, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptCreateClaim( + hSubjectKey: NCRYPT_KEY_HANDLE, + hAuthorityKey: NCRYPT_KEY_HANDLE, + dwClaimType: DWORD, + pParameterList: *mut NCryptBufferDesc, + pbClaimBlob: PBYTE, + cbClaimBlob: DWORD, + pcbResult: *mut DWORD, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +extern "C" { + pub fn NCryptVerifyClaim( + hSubjectKey: NCRYPT_KEY_HANDLE, + hAuthorityKey: NCRYPT_KEY_HANDLE, + dwClaimType: DWORD, + pParameterList: *mut NCryptBufferDesc, + pbClaimBlob: PBYTE, + cbClaimBlob: DWORD, + pOutput: *mut NCryptBufferDesc, + dwFlags: DWORD, + ) -> SECURITY_STATUS; +} +pub type HCRYPTPROV_OR_NCRYPT_KEY_HANDLE = ULONG_PTR; +pub type HCRYPTPROV_LEGACY = ULONG_PTR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_BIT_BLOB { + pub cbData: DWORD, + pub pbData: *mut BYTE, + pub cUnusedBits: DWORD, +} +pub type CRYPT_BIT_BLOB = _CRYPT_BIT_BLOB; +pub type PCRYPT_BIT_BLOB = *mut _CRYPT_BIT_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_ALGORITHM_IDENTIFIER { + pub pszObjId: LPSTR, + pub Parameters: CRYPT_OBJID_BLOB, +} +pub type CRYPT_ALGORITHM_IDENTIFIER = _CRYPT_ALGORITHM_IDENTIFIER; +pub type PCRYPT_ALGORITHM_IDENTIFIER = *mut _CRYPT_ALGORITHM_IDENTIFIER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_OBJID_TABLE { + pub dwAlgId: DWORD, + pub pszObjId: LPCSTR, +} +pub type CRYPT_OBJID_TABLE = _CRYPT_OBJID_TABLE; +pub type PCRYPT_OBJID_TABLE = *mut _CRYPT_OBJID_TABLE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_HASH_INFO { + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub Hash: CRYPT_HASH_BLOB, +} +pub type CRYPT_HASH_INFO = _CRYPT_HASH_INFO; +pub type PCRYPT_HASH_INFO = *mut _CRYPT_HASH_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_EXTENSION { + pub pszObjId: LPSTR, + pub fCritical: BOOL, + pub Value: CRYPT_OBJID_BLOB, +} +pub type CERT_EXTENSION = _CERT_EXTENSION; +pub type PCERT_EXTENSION = *mut _CERT_EXTENSION; +pub type PCCERT_EXTENSION = *const CERT_EXTENSION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_ATTRIBUTE_TYPE_VALUE { + pub pszObjId: LPSTR, + pub Value: CRYPT_OBJID_BLOB, +} +pub type CRYPT_ATTRIBUTE_TYPE_VALUE = _CRYPT_ATTRIBUTE_TYPE_VALUE; +pub type PCRYPT_ATTRIBUTE_TYPE_VALUE = *mut _CRYPT_ATTRIBUTE_TYPE_VALUE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_ATTRIBUTE { + pub pszObjId: LPSTR, + pub cValue: DWORD, + pub rgValue: PCRYPT_ATTR_BLOB, +} +pub type CRYPT_ATTRIBUTE = _CRYPT_ATTRIBUTE; +pub type PCRYPT_ATTRIBUTE = *mut _CRYPT_ATTRIBUTE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_ATTRIBUTES { + pub cAttr: DWORD, + pub rgAttr: PCRYPT_ATTRIBUTE, +} +pub type CRYPT_ATTRIBUTES = _CRYPT_ATTRIBUTES; +pub type PCRYPT_ATTRIBUTES = *mut _CRYPT_ATTRIBUTES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_RDN_ATTR { + pub pszObjId: LPSTR, + pub dwValueType: DWORD, + pub Value: CERT_RDN_VALUE_BLOB, +} +pub type CERT_RDN_ATTR = _CERT_RDN_ATTR; +pub type PCERT_RDN_ATTR = *mut _CERT_RDN_ATTR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_RDN { + pub cRDNAttr: DWORD, + pub rgRDNAttr: PCERT_RDN_ATTR, +} +pub type CERT_RDN = _CERT_RDN; +pub type PCERT_RDN = *mut _CERT_RDN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_NAME_INFO { + pub cRDN: DWORD, + pub rgRDN: PCERT_RDN, +} +pub type CERT_NAME_INFO = _CERT_NAME_INFO; +pub type PCERT_NAME_INFO = *mut _CERT_NAME_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_NAME_VALUE { + pub dwValueType: DWORD, + pub Value: CERT_RDN_VALUE_BLOB, +} +pub type CERT_NAME_VALUE = _CERT_NAME_VALUE; +pub type PCERT_NAME_VALUE = *mut _CERT_NAME_VALUE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_PUBLIC_KEY_INFO { + pub Algorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub PublicKey: CRYPT_BIT_BLOB, +} +pub type CERT_PUBLIC_KEY_INFO = _CERT_PUBLIC_KEY_INFO; +pub type PCERT_PUBLIC_KEY_INFO = *mut _CERT_PUBLIC_KEY_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_ECC_PRIVATE_KEY_INFO { + pub dwVersion: DWORD, + pub PrivateKey: CRYPT_DER_BLOB, + pub szCurveOid: LPSTR, + pub PublicKey: CRYPT_BIT_BLOB, +} +pub type CRYPT_ECC_PRIVATE_KEY_INFO = _CRYPT_ECC_PRIVATE_KEY_INFO; +pub type PCRYPT_ECC_PRIVATE_KEY_INFO = *mut _CRYPT_ECC_PRIVATE_KEY_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_PRIVATE_KEY_INFO { + pub Version: DWORD, + pub Algorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub PrivateKey: CRYPT_DER_BLOB, + pub pAttributes: PCRYPT_ATTRIBUTES, +} +pub type CRYPT_PRIVATE_KEY_INFO = _CRYPT_PRIVATE_KEY_INFO; +pub type PCRYPT_PRIVATE_KEY_INFO = *mut _CRYPT_PRIVATE_KEY_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_ENCRYPTED_PRIVATE_KEY_INFO { + pub EncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub EncryptedPrivateKey: CRYPT_DATA_BLOB, +} +pub type CRYPT_ENCRYPTED_PRIVATE_KEY_INFO = _CRYPT_ENCRYPTED_PRIVATE_KEY_INFO; +pub type PCRYPT_ENCRYPTED_PRIVATE_KEY_INFO = *mut _CRYPT_ENCRYPTED_PRIVATE_KEY_INFO; +pub type PCRYPT_DECRYPT_PRIVATE_KEY_FUNC = ::std::option::Option< + unsafe extern "C" fn( + Algorithm: CRYPT_ALGORITHM_IDENTIFIER, + EncryptedPrivateKey: CRYPT_DATA_BLOB, + pbClearTextKey: *mut BYTE, + pcbClearTextKey: *mut DWORD, + pVoidDecryptFunc: LPVOID, + ) -> BOOL, +>; +pub type PCRYPT_ENCRYPT_PRIVATE_KEY_FUNC = ::std::option::Option< + unsafe extern "C" fn( + pAlgorithm: *mut CRYPT_ALGORITHM_IDENTIFIER, + pClearTextPrivateKey: *mut CRYPT_DATA_BLOB, + pbEncryptedKey: *mut BYTE, + pcbEncryptedKey: *mut DWORD, + pVoidEncryptFunc: LPVOID, + ) -> BOOL, +>; +pub type PCRYPT_RESOLVE_HCRYPTPROV_FUNC = ::std::option::Option< + unsafe extern "C" fn( + pPrivateKeyInfo: *mut CRYPT_PRIVATE_KEY_INFO, + phCryptProv: *mut HCRYPTPROV, + pVoidResolveFunc: LPVOID, + ) -> BOOL, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_PKCS8_IMPORT_PARAMS { + pub PrivateKey: CRYPT_DIGEST_BLOB, + pub pResolvehCryptProvFunc: PCRYPT_RESOLVE_HCRYPTPROV_FUNC, + pub pVoidResolveFunc: LPVOID, + pub pDecryptPrivateKeyFunc: PCRYPT_DECRYPT_PRIVATE_KEY_FUNC, + pub pVoidDecryptFunc: LPVOID, +} +pub type CRYPT_PKCS8_IMPORT_PARAMS = _CRYPT_PKCS8_IMPORT_PARAMS; +pub type PCRYPT_PKCS8_IMPORT_PARAMS = *mut _CRYPT_PKCS8_IMPORT_PARAMS; +pub type CRYPT_PRIVATE_KEY_BLOB_AND_PARAMS = _CRYPT_PKCS8_IMPORT_PARAMS; +pub type PCRYPT_PRIVATE_KEY_BLOB_AND_PARAMS = *mut _CRYPT_PKCS8_IMPORT_PARAMS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_PKCS8_EXPORT_PARAMS { + pub hCryptProv: HCRYPTPROV, + pub dwKeySpec: DWORD, + pub pszPrivateKeyObjId: LPSTR, + pub pEncryptPrivateKeyFunc: PCRYPT_ENCRYPT_PRIVATE_KEY_FUNC, + pub pVoidEncryptFunc: LPVOID, +} +pub type CRYPT_PKCS8_EXPORT_PARAMS = _CRYPT_PKCS8_EXPORT_PARAMS; +pub type PCRYPT_PKCS8_EXPORT_PARAMS = *mut _CRYPT_PKCS8_EXPORT_PARAMS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_INFO { + pub dwVersion: DWORD, + pub SerialNumber: CRYPT_INTEGER_BLOB, + pub SignatureAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub Issuer: CERT_NAME_BLOB, + pub NotBefore: FILETIME, + pub NotAfter: FILETIME, + pub Subject: CERT_NAME_BLOB, + pub SubjectPublicKeyInfo: CERT_PUBLIC_KEY_INFO, + pub IssuerUniqueId: CRYPT_BIT_BLOB, + pub SubjectUniqueId: CRYPT_BIT_BLOB, + pub cExtension: DWORD, + pub rgExtension: PCERT_EXTENSION, +} +pub type CERT_INFO = _CERT_INFO; +pub type PCERT_INFO = *mut _CERT_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRL_ENTRY { + pub SerialNumber: CRYPT_INTEGER_BLOB, + pub RevocationDate: FILETIME, + pub cExtension: DWORD, + pub rgExtension: PCERT_EXTENSION, +} +pub type CRL_ENTRY = _CRL_ENTRY; +pub type PCRL_ENTRY = *mut _CRL_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRL_INFO { + pub dwVersion: DWORD, + pub SignatureAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub Issuer: CERT_NAME_BLOB, + pub ThisUpdate: FILETIME, + pub NextUpdate: FILETIME, + pub cCRLEntry: DWORD, + pub rgCRLEntry: PCRL_ENTRY, + pub cExtension: DWORD, + pub rgExtension: PCERT_EXTENSION, +} +pub type CRL_INFO = _CRL_INFO; +pub type PCRL_INFO = *mut _CRL_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_OR_CRL_BLOB { + pub dwChoice: DWORD, + pub cbEncoded: DWORD, + pub pbEncoded: *mut BYTE, +} +pub type CERT_OR_CRL_BLOB = _CERT_OR_CRL_BLOB; +pub type PCERT_OR_CRL_BLOB = *mut _CERT_OR_CRL_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_OR_CRL_BUNDLE { + pub cItem: DWORD, + pub rgItem: PCERT_OR_CRL_BLOB, +} +pub type CERT_OR_CRL_BUNDLE = _CERT_OR_CRL_BUNDLE; +pub type PCERT_OR_CRL_BUNDLE = *mut _CERT_OR_CRL_BUNDLE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_REQUEST_INFO { + pub dwVersion: DWORD, + pub Subject: CERT_NAME_BLOB, + pub SubjectPublicKeyInfo: CERT_PUBLIC_KEY_INFO, + pub cAttribute: DWORD, + pub rgAttribute: PCRYPT_ATTRIBUTE, +} +pub type CERT_REQUEST_INFO = _CERT_REQUEST_INFO; +pub type PCERT_REQUEST_INFO = *mut _CERT_REQUEST_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_KEYGEN_REQUEST_INFO { + pub dwVersion: DWORD, + pub SubjectPublicKeyInfo: CERT_PUBLIC_KEY_INFO, + pub pwszChallengeString: LPWSTR, +} +pub type CERT_KEYGEN_REQUEST_INFO = _CERT_KEYGEN_REQUEST_INFO; +pub type PCERT_KEYGEN_REQUEST_INFO = *mut _CERT_KEYGEN_REQUEST_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_SIGNED_CONTENT_INFO { + pub ToBeSigned: CRYPT_DER_BLOB, + pub SignatureAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub Signature: CRYPT_BIT_BLOB, +} +pub type CERT_SIGNED_CONTENT_INFO = _CERT_SIGNED_CONTENT_INFO; +pub type PCERT_SIGNED_CONTENT_INFO = *mut _CERT_SIGNED_CONTENT_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CTL_USAGE { + pub cUsageIdentifier: DWORD, + pub rgpszUsageIdentifier: *mut LPSTR, +} +pub type CTL_USAGE = _CTL_USAGE; +pub type PCTL_USAGE = *mut _CTL_USAGE; +pub type CERT_ENHKEY_USAGE = _CTL_USAGE; +pub type PCERT_ENHKEY_USAGE = *mut _CTL_USAGE; +pub type PCCTL_USAGE = *const CTL_USAGE; +pub type PCCERT_ENHKEY_USAGE = *const CERT_ENHKEY_USAGE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CTL_ENTRY { + pub SubjectIdentifier: CRYPT_DATA_BLOB, + pub cAttribute: DWORD, + pub rgAttribute: PCRYPT_ATTRIBUTE, +} +pub type CTL_ENTRY = _CTL_ENTRY; +pub type PCTL_ENTRY = *mut _CTL_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CTL_INFO { + pub dwVersion: DWORD, + pub SubjectUsage: CTL_USAGE, + pub ListIdentifier: CRYPT_DATA_BLOB, + pub SequenceNumber: CRYPT_INTEGER_BLOB, + pub ThisUpdate: FILETIME, + pub NextUpdate: FILETIME, + pub SubjectAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub cCTLEntry: DWORD, + pub rgCTLEntry: PCTL_ENTRY, + pub cExtension: DWORD, + pub rgExtension: PCERT_EXTENSION, +} +pub type CTL_INFO = _CTL_INFO; +pub type PCTL_INFO = *mut _CTL_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_TIME_STAMP_REQUEST_INFO { + pub pszTimeStampAlgorithm: LPSTR, + pub pszContentType: LPSTR, + pub Content: CRYPT_OBJID_BLOB, + pub cAttribute: DWORD, + pub rgAttribute: PCRYPT_ATTRIBUTE, +} +pub type CRYPT_TIME_STAMP_REQUEST_INFO = _CRYPT_TIME_STAMP_REQUEST_INFO; +pub type PCRYPT_TIME_STAMP_REQUEST_INFO = *mut _CRYPT_TIME_STAMP_REQUEST_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_ENROLLMENT_NAME_VALUE_PAIR { + pub pwszName: LPWSTR, + pub pwszValue: LPWSTR, +} +pub type CRYPT_ENROLLMENT_NAME_VALUE_PAIR = _CRYPT_ENROLLMENT_NAME_VALUE_PAIR; +pub type PCRYPT_ENROLLMENT_NAME_VALUE_PAIR = *mut _CRYPT_ENROLLMENT_NAME_VALUE_PAIR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_CSP_PROVIDER { + pub dwKeySpec: DWORD, + pub pwszProviderName: LPWSTR, + pub Signature: CRYPT_BIT_BLOB, +} +pub type CRYPT_CSP_PROVIDER = _CRYPT_CSP_PROVIDER; +pub type PCRYPT_CSP_PROVIDER = *mut _CRYPT_CSP_PROVIDER; +extern "C" { + pub fn CryptFormatObject( + dwCertEncodingType: DWORD, + dwFormatType: DWORD, + dwFormatStrType: DWORD, + pFormatStruct: *mut ::std::os::raw::c_void, + lpszStructType: LPCSTR, + pbEncoded: *const BYTE, + cbEncoded: DWORD, + pbFormat: *mut ::std::os::raw::c_void, + pcbFormat: *mut DWORD, + ) -> BOOL; +} +pub type PFN_CRYPT_ALLOC = ::std::option::Option LPVOID>; +pub type PFN_CRYPT_FREE = ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_ENCODE_PARA { + pub cbSize: DWORD, + pub pfnAlloc: PFN_CRYPT_ALLOC, + pub pfnFree: PFN_CRYPT_FREE, +} +pub type CRYPT_ENCODE_PARA = _CRYPT_ENCODE_PARA; +pub type PCRYPT_ENCODE_PARA = *mut _CRYPT_ENCODE_PARA; +extern "C" { + pub fn CryptEncodeObjectEx( + dwCertEncodingType: DWORD, + lpszStructType: LPCSTR, + pvStructInfo: *const ::std::os::raw::c_void, + dwFlags: DWORD, + pEncodePara: PCRYPT_ENCODE_PARA, + pvEncoded: *mut ::std::os::raw::c_void, + pcbEncoded: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptEncodeObject( + dwCertEncodingType: DWORD, + lpszStructType: LPCSTR, + pvStructInfo: *const ::std::os::raw::c_void, + pbEncoded: *mut BYTE, + pcbEncoded: *mut DWORD, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_DECODE_PARA { + pub cbSize: DWORD, + pub pfnAlloc: PFN_CRYPT_ALLOC, + pub pfnFree: PFN_CRYPT_FREE, +} +pub type CRYPT_DECODE_PARA = _CRYPT_DECODE_PARA; +pub type PCRYPT_DECODE_PARA = *mut _CRYPT_DECODE_PARA; +extern "C" { + pub fn CryptDecodeObjectEx( + dwCertEncodingType: DWORD, + lpszStructType: LPCSTR, + pbEncoded: *const BYTE, + cbEncoded: DWORD, + dwFlags: DWORD, + pDecodePara: PCRYPT_DECODE_PARA, + pvStructInfo: *mut ::std::os::raw::c_void, + pcbStructInfo: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptDecodeObject( + dwCertEncodingType: DWORD, + lpszStructType: LPCSTR, + pbEncoded: *const BYTE, + cbEncoded: DWORD, + dwFlags: DWORD, + pvStructInfo: *mut ::std::os::raw::c_void, + pcbStructInfo: *mut DWORD, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_EXTENSIONS { + pub cExtension: DWORD, + pub rgExtension: PCERT_EXTENSION, +} +pub type CERT_EXTENSIONS = _CERT_EXTENSIONS; +pub type PCERT_EXTENSIONS = *mut _CERT_EXTENSIONS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_AUTHORITY_KEY_ID_INFO { + pub KeyId: CRYPT_DATA_BLOB, + pub CertIssuer: CERT_NAME_BLOB, + pub CertSerialNumber: CRYPT_INTEGER_BLOB, +} +pub type CERT_AUTHORITY_KEY_ID_INFO = _CERT_AUTHORITY_KEY_ID_INFO; +pub type PCERT_AUTHORITY_KEY_ID_INFO = *mut _CERT_AUTHORITY_KEY_ID_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_PRIVATE_KEY_VALIDITY { + pub NotBefore: FILETIME, + pub NotAfter: FILETIME, +} +pub type CERT_PRIVATE_KEY_VALIDITY = _CERT_PRIVATE_KEY_VALIDITY; +pub type PCERT_PRIVATE_KEY_VALIDITY = *mut _CERT_PRIVATE_KEY_VALIDITY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_KEY_ATTRIBUTES_INFO { + pub KeyId: CRYPT_DATA_BLOB, + pub IntendedKeyUsage: CRYPT_BIT_BLOB, + pub pPrivateKeyUsagePeriod: PCERT_PRIVATE_KEY_VALIDITY, +} +pub type CERT_KEY_ATTRIBUTES_INFO = _CERT_KEY_ATTRIBUTES_INFO; +pub type PCERT_KEY_ATTRIBUTES_INFO = *mut _CERT_KEY_ATTRIBUTES_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_POLICY_ID { + pub cCertPolicyElementId: DWORD, + pub rgpszCertPolicyElementId: *mut LPSTR, +} +pub type CERT_POLICY_ID = _CERT_POLICY_ID; +pub type PCERT_POLICY_ID = *mut _CERT_POLICY_ID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_KEY_USAGE_RESTRICTION_INFO { + pub cCertPolicyId: DWORD, + pub rgCertPolicyId: PCERT_POLICY_ID, + pub RestrictedKeyUsage: CRYPT_BIT_BLOB, +} +pub type CERT_KEY_USAGE_RESTRICTION_INFO = _CERT_KEY_USAGE_RESTRICTION_INFO; +pub type PCERT_KEY_USAGE_RESTRICTION_INFO = *mut _CERT_KEY_USAGE_RESTRICTION_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_OTHER_NAME { + pub pszObjId: LPSTR, + pub Value: CRYPT_OBJID_BLOB, +} +pub type CERT_OTHER_NAME = _CERT_OTHER_NAME; +pub type PCERT_OTHER_NAME = *mut _CERT_OTHER_NAME; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CERT_ALT_NAME_ENTRY { + pub dwAltNameChoice: DWORD, + pub __bindgen_anon_1: _CERT_ALT_NAME_ENTRY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CERT_ALT_NAME_ENTRY__bindgen_ty_1 { + pub pOtherName: PCERT_OTHER_NAME, + pub pwszRfc822Name: LPWSTR, + pub pwszDNSName: LPWSTR, + pub DirectoryName: CERT_NAME_BLOB, + pub pwszURL: LPWSTR, + pub IPAddress: CRYPT_DATA_BLOB, + pub pszRegisteredID: LPSTR, +} +pub type CERT_ALT_NAME_ENTRY = _CERT_ALT_NAME_ENTRY; +pub type PCERT_ALT_NAME_ENTRY = *mut _CERT_ALT_NAME_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_ALT_NAME_INFO { + pub cAltEntry: DWORD, + pub rgAltEntry: PCERT_ALT_NAME_ENTRY, +} +pub type CERT_ALT_NAME_INFO = _CERT_ALT_NAME_INFO; +pub type PCERT_ALT_NAME_INFO = *mut _CERT_ALT_NAME_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_BASIC_CONSTRAINTS_INFO { + pub SubjectType: CRYPT_BIT_BLOB, + pub fPathLenConstraint: BOOL, + pub dwPathLenConstraint: DWORD, + pub cSubtreesConstraint: DWORD, + pub rgSubtreesConstraint: *mut CERT_NAME_BLOB, +} +pub type CERT_BASIC_CONSTRAINTS_INFO = _CERT_BASIC_CONSTRAINTS_INFO; +pub type PCERT_BASIC_CONSTRAINTS_INFO = *mut _CERT_BASIC_CONSTRAINTS_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_BASIC_CONSTRAINTS2_INFO { + pub fCA: BOOL, + pub fPathLenConstraint: BOOL, + pub dwPathLenConstraint: DWORD, +} +pub type CERT_BASIC_CONSTRAINTS2_INFO = _CERT_BASIC_CONSTRAINTS2_INFO; +pub type PCERT_BASIC_CONSTRAINTS2_INFO = *mut _CERT_BASIC_CONSTRAINTS2_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_POLICY_QUALIFIER_INFO { + pub pszPolicyQualifierId: LPSTR, + pub Qualifier: CRYPT_OBJID_BLOB, +} +pub type CERT_POLICY_QUALIFIER_INFO = _CERT_POLICY_QUALIFIER_INFO; +pub type PCERT_POLICY_QUALIFIER_INFO = *mut _CERT_POLICY_QUALIFIER_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_POLICY_INFO { + pub pszPolicyIdentifier: LPSTR, + pub cPolicyQualifier: DWORD, + pub rgPolicyQualifier: *mut CERT_POLICY_QUALIFIER_INFO, +} +pub type CERT_POLICY_INFO = _CERT_POLICY_INFO; +pub type PCERT_POLICY_INFO = *mut _CERT_POLICY_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_POLICIES_INFO { + pub cPolicyInfo: DWORD, + pub rgPolicyInfo: *mut CERT_POLICY_INFO, +} +pub type CERT_POLICIES_INFO = _CERT_POLICIES_INFO; +pub type PCERT_POLICIES_INFO = *mut _CERT_POLICIES_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_POLICY_QUALIFIER_NOTICE_REFERENCE { + pub pszOrganization: LPSTR, + pub cNoticeNumbers: DWORD, + pub rgNoticeNumbers: *mut ::std::os::raw::c_int, +} +pub type CERT_POLICY_QUALIFIER_NOTICE_REFERENCE = _CERT_POLICY_QUALIFIER_NOTICE_REFERENCE; +pub type PCERT_POLICY_QUALIFIER_NOTICE_REFERENCE = *mut _CERT_POLICY_QUALIFIER_NOTICE_REFERENCE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_POLICY_QUALIFIER_USER_NOTICE { + pub pNoticeReference: *mut CERT_POLICY_QUALIFIER_NOTICE_REFERENCE, + pub pszDisplayText: LPWSTR, +} +pub type CERT_POLICY_QUALIFIER_USER_NOTICE = _CERT_POLICY_QUALIFIER_USER_NOTICE; +pub type PCERT_POLICY_QUALIFIER_USER_NOTICE = *mut _CERT_POLICY_QUALIFIER_USER_NOTICE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CPS_URLS { + pub pszURL: LPWSTR, + pub pAlgorithm: *mut CRYPT_ALGORITHM_IDENTIFIER, + pub pDigest: *mut CRYPT_DATA_BLOB, +} +pub type CPS_URLS = _CPS_URLS; +pub type PCPS_URLS = *mut _CPS_URLS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_POLICY95_QUALIFIER1 { + pub pszPracticesReference: LPWSTR, + pub pszNoticeIdentifier: LPSTR, + pub pszNSINoticeIdentifier: LPSTR, + pub cCPSURLs: DWORD, + pub rgCPSURLs: *mut CPS_URLS, +} +pub type CERT_POLICY95_QUALIFIER1 = _CERT_POLICY95_QUALIFIER1; +pub type PCERT_POLICY95_QUALIFIER1 = *mut _CERT_POLICY95_QUALIFIER1; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_POLICY_MAPPING { + pub pszIssuerDomainPolicy: LPSTR, + pub pszSubjectDomainPolicy: LPSTR, +} +pub type CERT_POLICY_MAPPING = _CERT_POLICY_MAPPING; +pub type PCERT_POLICY_MAPPING = *mut _CERT_POLICY_MAPPING; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_POLICY_MAPPINGS_INFO { + pub cPolicyMapping: DWORD, + pub rgPolicyMapping: PCERT_POLICY_MAPPING, +} +pub type CERT_POLICY_MAPPINGS_INFO = _CERT_POLICY_MAPPINGS_INFO; +pub type PCERT_POLICY_MAPPINGS_INFO = *mut _CERT_POLICY_MAPPINGS_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_POLICY_CONSTRAINTS_INFO { + pub fRequireExplicitPolicy: BOOL, + pub dwRequireExplicitPolicySkipCerts: DWORD, + pub fInhibitPolicyMapping: BOOL, + pub dwInhibitPolicyMappingSkipCerts: DWORD, +} +pub type CERT_POLICY_CONSTRAINTS_INFO = _CERT_POLICY_CONSTRAINTS_INFO; +pub type PCERT_POLICY_CONSTRAINTS_INFO = *mut _CERT_POLICY_CONSTRAINTS_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY { + pub pszObjId: LPSTR, + pub cValue: DWORD, + pub rgValue: PCRYPT_DER_BLOB, +} +pub type CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY = _CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY; +pub type PCRYPT_CONTENT_INFO_SEQUENCE_OF_ANY = *mut _CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_CONTENT_INFO { + pub pszObjId: LPSTR, + pub Content: CRYPT_DER_BLOB, +} +pub type CRYPT_CONTENT_INFO = _CRYPT_CONTENT_INFO; +pub type PCRYPT_CONTENT_INFO = *mut _CRYPT_CONTENT_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_SEQUENCE_OF_ANY { + pub cValue: DWORD, + pub rgValue: PCRYPT_DER_BLOB, +} +pub type CRYPT_SEQUENCE_OF_ANY = _CRYPT_SEQUENCE_OF_ANY; +pub type PCRYPT_SEQUENCE_OF_ANY = *mut _CRYPT_SEQUENCE_OF_ANY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_AUTHORITY_KEY_ID2_INFO { + pub KeyId: CRYPT_DATA_BLOB, + pub AuthorityCertIssuer: CERT_ALT_NAME_INFO, + pub AuthorityCertSerialNumber: CRYPT_INTEGER_BLOB, +} +pub type CERT_AUTHORITY_KEY_ID2_INFO = _CERT_AUTHORITY_KEY_ID2_INFO; +pub type PCERT_AUTHORITY_KEY_ID2_INFO = *mut _CERT_AUTHORITY_KEY_ID2_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CERT_ACCESS_DESCRIPTION { + pub pszAccessMethod: LPSTR, + pub AccessLocation: CERT_ALT_NAME_ENTRY, +} +pub type CERT_ACCESS_DESCRIPTION = _CERT_ACCESS_DESCRIPTION; +pub type PCERT_ACCESS_DESCRIPTION = *mut _CERT_ACCESS_DESCRIPTION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_AUTHORITY_INFO_ACCESS { + pub cAccDescr: DWORD, + pub rgAccDescr: PCERT_ACCESS_DESCRIPTION, +} +pub type CERT_AUTHORITY_INFO_ACCESS = _CERT_AUTHORITY_INFO_ACCESS; +pub type PCERT_AUTHORITY_INFO_ACCESS = *mut _CERT_AUTHORITY_INFO_ACCESS; +pub type CERT_SUBJECT_INFO_ACCESS = _CERT_AUTHORITY_INFO_ACCESS; +pub type PCERT_SUBJECT_INFO_ACCESS = *mut _CERT_AUTHORITY_INFO_ACCESS; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CRL_DIST_POINT_NAME { + pub dwDistPointNameChoice: DWORD, + pub __bindgen_anon_1: _CRL_DIST_POINT_NAME__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CRL_DIST_POINT_NAME__bindgen_ty_1 { + pub FullName: CERT_ALT_NAME_INFO, +} +pub type CRL_DIST_POINT_NAME = _CRL_DIST_POINT_NAME; +pub type PCRL_DIST_POINT_NAME = *mut _CRL_DIST_POINT_NAME; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CRL_DIST_POINT { + pub DistPointName: CRL_DIST_POINT_NAME, + pub ReasonFlags: CRYPT_BIT_BLOB, + pub CRLIssuer: CERT_ALT_NAME_INFO, +} +pub type CRL_DIST_POINT = _CRL_DIST_POINT; +pub type PCRL_DIST_POINT = *mut _CRL_DIST_POINT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRL_DIST_POINTS_INFO { + pub cDistPoint: DWORD, + pub rgDistPoint: PCRL_DIST_POINT, +} +pub type CRL_DIST_POINTS_INFO = _CRL_DIST_POINTS_INFO; +pub type PCRL_DIST_POINTS_INFO = *mut _CRL_DIST_POINTS_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CROSS_CERT_DIST_POINTS_INFO { + pub dwSyncDeltaTime: DWORD, + pub cDistPoint: DWORD, + pub rgDistPoint: PCERT_ALT_NAME_INFO, +} +pub type CROSS_CERT_DIST_POINTS_INFO = _CROSS_CERT_DIST_POINTS_INFO; +pub type PCROSS_CERT_DIST_POINTS_INFO = *mut _CROSS_CERT_DIST_POINTS_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_PAIR { + pub Forward: CERT_BLOB, + pub Reverse: CERT_BLOB, +} +pub type CERT_PAIR = _CERT_PAIR; +pub type PCERT_PAIR = *mut _CERT_PAIR; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CRL_ISSUING_DIST_POINT { + pub DistPointName: CRL_DIST_POINT_NAME, + pub fOnlyContainsUserCerts: BOOL, + pub fOnlyContainsCACerts: BOOL, + pub OnlySomeReasonFlags: CRYPT_BIT_BLOB, + pub fIndirectCRL: BOOL, +} +pub type CRL_ISSUING_DIST_POINT = _CRL_ISSUING_DIST_POINT; +pub type PCRL_ISSUING_DIST_POINT = *mut _CRL_ISSUING_DIST_POINT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CERT_GENERAL_SUBTREE { + pub Base: CERT_ALT_NAME_ENTRY, + pub dwMinimum: DWORD, + pub fMaximum: BOOL, + pub dwMaximum: DWORD, +} +pub type CERT_GENERAL_SUBTREE = _CERT_GENERAL_SUBTREE; +pub type PCERT_GENERAL_SUBTREE = *mut _CERT_GENERAL_SUBTREE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_NAME_CONSTRAINTS_INFO { + pub cPermittedSubtree: DWORD, + pub rgPermittedSubtree: PCERT_GENERAL_SUBTREE, + pub cExcludedSubtree: DWORD, + pub rgExcludedSubtree: PCERT_GENERAL_SUBTREE, +} +pub type CERT_NAME_CONSTRAINTS_INFO = _CERT_NAME_CONSTRAINTS_INFO; +pub type PCERT_NAME_CONSTRAINTS_INFO = *mut _CERT_NAME_CONSTRAINTS_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_DSS_PARAMETERS { + pub p: CRYPT_UINT_BLOB, + pub q: CRYPT_UINT_BLOB, + pub g: CRYPT_UINT_BLOB, +} +pub type CERT_DSS_PARAMETERS = _CERT_DSS_PARAMETERS; +pub type PCERT_DSS_PARAMETERS = *mut _CERT_DSS_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_DH_PARAMETERS { + pub p: CRYPT_UINT_BLOB, + pub g: CRYPT_UINT_BLOB, +} +pub type CERT_DH_PARAMETERS = _CERT_DH_PARAMETERS; +pub type PCERT_DH_PARAMETERS = *mut _CERT_DH_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_ECC_SIGNATURE { + pub r: CRYPT_UINT_BLOB, + pub s: CRYPT_UINT_BLOB, +} +pub type CERT_ECC_SIGNATURE = _CERT_ECC_SIGNATURE; +pub type PCERT_ECC_SIGNATURE = *mut _CERT_ECC_SIGNATURE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_X942_DH_VALIDATION_PARAMS { + pub seed: CRYPT_BIT_BLOB, + pub pgenCounter: DWORD, +} +pub type CERT_X942_DH_VALIDATION_PARAMS = _CERT_X942_DH_VALIDATION_PARAMS; +pub type PCERT_X942_DH_VALIDATION_PARAMS = *mut _CERT_X942_DH_VALIDATION_PARAMS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_X942_DH_PARAMETERS { + pub p: CRYPT_UINT_BLOB, + pub g: CRYPT_UINT_BLOB, + pub q: CRYPT_UINT_BLOB, + pub j: CRYPT_UINT_BLOB, + pub pValidationParams: PCERT_X942_DH_VALIDATION_PARAMS, +} +pub type CERT_X942_DH_PARAMETERS = _CERT_X942_DH_PARAMETERS; +pub type PCERT_X942_DH_PARAMETERS = *mut _CERT_X942_DH_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_X942_OTHER_INFO { + pub pszContentEncryptionObjId: LPSTR, + pub rgbCounter: [BYTE; 4usize], + pub rgbKeyLength: [BYTE; 4usize], + pub PubInfo: CRYPT_DATA_BLOB, +} +pub type CRYPT_X942_OTHER_INFO = _CRYPT_X942_OTHER_INFO; +pub type PCRYPT_X942_OTHER_INFO = *mut _CRYPT_X942_OTHER_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_ECC_CMS_SHARED_INFO { + pub Algorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub EntityUInfo: CRYPT_DATA_BLOB, + pub rgbSuppPubInfo: [BYTE; 4usize], +} +pub type CRYPT_ECC_CMS_SHARED_INFO = _CRYPT_ECC_CMS_SHARED_INFO; +pub type PCRYPT_ECC_CMS_SHARED_INFO = *mut _CRYPT_ECC_CMS_SHARED_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_RC2_CBC_PARAMETERS { + pub dwVersion: DWORD, + pub fIV: BOOL, + pub rgbIV: [BYTE; 8usize], +} +pub type CRYPT_RC2_CBC_PARAMETERS = _CRYPT_RC2_CBC_PARAMETERS; +pub type PCRYPT_RC2_CBC_PARAMETERS = *mut _CRYPT_RC2_CBC_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_SMIME_CAPABILITY { + pub pszObjId: LPSTR, + pub Parameters: CRYPT_OBJID_BLOB, +} +pub type CRYPT_SMIME_CAPABILITY = _CRYPT_SMIME_CAPABILITY; +pub type PCRYPT_SMIME_CAPABILITY = *mut _CRYPT_SMIME_CAPABILITY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_SMIME_CAPABILITIES { + pub cCapability: DWORD, + pub rgCapability: PCRYPT_SMIME_CAPABILITY, +} +pub type CRYPT_SMIME_CAPABILITIES = _CRYPT_SMIME_CAPABILITIES; +pub type PCRYPT_SMIME_CAPABILITIES = *mut _CRYPT_SMIME_CAPABILITIES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_QC_STATEMENT { + pub pszStatementId: LPSTR, + pub StatementInfo: CRYPT_OBJID_BLOB, +} +pub type CERT_QC_STATEMENT = _CERT_QC_STATEMENT; +pub type PCERT_QC_STATEMENT = *mut _CERT_QC_STATEMENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_QC_STATEMENTS_EXT_INFO { + pub cStatement: DWORD, + pub rgStatement: PCERT_QC_STATEMENT, +} +pub type CERT_QC_STATEMENTS_EXT_INFO = _CERT_QC_STATEMENTS_EXT_INFO; +pub type PCERT_QC_STATEMENTS_EXT_INFO = *mut _CERT_QC_STATEMENTS_EXT_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_MASK_GEN_ALGORITHM { + pub pszObjId: LPSTR, + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, +} +pub type CRYPT_MASK_GEN_ALGORITHM = _CRYPT_MASK_GEN_ALGORITHM; +pub type PCRYPT_MASK_GEN_ALGORITHM = *mut _CRYPT_MASK_GEN_ALGORITHM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_RSA_SSA_PSS_PARAMETERS { + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub MaskGenAlgorithm: CRYPT_MASK_GEN_ALGORITHM, + pub dwSaltLength: DWORD, + pub dwTrailerField: DWORD, +} +pub type CRYPT_RSA_SSA_PSS_PARAMETERS = _CRYPT_RSA_SSA_PSS_PARAMETERS; +pub type PCRYPT_RSA_SSA_PSS_PARAMETERS = *mut _CRYPT_RSA_SSA_PSS_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_PSOURCE_ALGORITHM { + pub pszObjId: LPSTR, + pub EncodingParameters: CRYPT_DATA_BLOB, +} +pub type CRYPT_PSOURCE_ALGORITHM = _CRYPT_PSOURCE_ALGORITHM; +pub type PCRYPT_PSOURCE_ALGORITHM = *mut _CRYPT_PSOURCE_ALGORITHM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_RSAES_OAEP_PARAMETERS { + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub MaskGenAlgorithm: CRYPT_MASK_GEN_ALGORITHM, + pub PSourceAlgorithm: CRYPT_PSOURCE_ALGORITHM, +} +pub type CRYPT_RSAES_OAEP_PARAMETERS = _CRYPT_RSAES_OAEP_PARAMETERS; +pub type PCRYPT_RSAES_OAEP_PARAMETERS = *mut _CRYPT_RSAES_OAEP_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMC_TAGGED_ATTRIBUTE { + pub dwBodyPartID: DWORD, + pub Attribute: CRYPT_ATTRIBUTE, +} +pub type CMC_TAGGED_ATTRIBUTE = _CMC_TAGGED_ATTRIBUTE; +pub type PCMC_TAGGED_ATTRIBUTE = *mut _CMC_TAGGED_ATTRIBUTE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMC_TAGGED_CERT_REQUEST { + pub dwBodyPartID: DWORD, + pub SignedCertRequest: CRYPT_DER_BLOB, +} +pub type CMC_TAGGED_CERT_REQUEST = _CMC_TAGGED_CERT_REQUEST; +pub type PCMC_TAGGED_CERT_REQUEST = *mut _CMC_TAGGED_CERT_REQUEST; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMC_TAGGED_REQUEST { + pub dwTaggedRequestChoice: DWORD, + pub __bindgen_anon_1: _CMC_TAGGED_REQUEST__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CMC_TAGGED_REQUEST__bindgen_ty_1 { + pub pTaggedCertRequest: PCMC_TAGGED_CERT_REQUEST, +} +pub type CMC_TAGGED_REQUEST = _CMC_TAGGED_REQUEST; +pub type PCMC_TAGGED_REQUEST = *mut _CMC_TAGGED_REQUEST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMC_TAGGED_CONTENT_INFO { + pub dwBodyPartID: DWORD, + pub EncodedContentInfo: CRYPT_DER_BLOB, +} +pub type CMC_TAGGED_CONTENT_INFO = _CMC_TAGGED_CONTENT_INFO; +pub type PCMC_TAGGED_CONTENT_INFO = *mut _CMC_TAGGED_CONTENT_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMC_TAGGED_OTHER_MSG { + pub dwBodyPartID: DWORD, + pub pszObjId: LPSTR, + pub Value: CRYPT_OBJID_BLOB, +} +pub type CMC_TAGGED_OTHER_MSG = _CMC_TAGGED_OTHER_MSG; +pub type PCMC_TAGGED_OTHER_MSG = *mut _CMC_TAGGED_OTHER_MSG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMC_DATA_INFO { + pub cTaggedAttribute: DWORD, + pub rgTaggedAttribute: PCMC_TAGGED_ATTRIBUTE, + pub cTaggedRequest: DWORD, + pub rgTaggedRequest: PCMC_TAGGED_REQUEST, + pub cTaggedContentInfo: DWORD, + pub rgTaggedContentInfo: PCMC_TAGGED_CONTENT_INFO, + pub cTaggedOtherMsg: DWORD, + pub rgTaggedOtherMsg: PCMC_TAGGED_OTHER_MSG, +} +pub type CMC_DATA_INFO = _CMC_DATA_INFO; +pub type PCMC_DATA_INFO = *mut _CMC_DATA_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMC_RESPONSE_INFO { + pub cTaggedAttribute: DWORD, + pub rgTaggedAttribute: PCMC_TAGGED_ATTRIBUTE, + pub cTaggedContentInfo: DWORD, + pub rgTaggedContentInfo: PCMC_TAGGED_CONTENT_INFO, + pub cTaggedOtherMsg: DWORD, + pub rgTaggedOtherMsg: PCMC_TAGGED_OTHER_MSG, +} +pub type CMC_RESPONSE_INFO = _CMC_RESPONSE_INFO; +pub type PCMC_RESPONSE_INFO = *mut _CMC_RESPONSE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMC_PEND_INFO { + pub PendToken: CRYPT_DATA_BLOB, + pub PendTime: FILETIME, +} +pub type CMC_PEND_INFO = _CMC_PEND_INFO; +pub type PCMC_PEND_INFO = *mut _CMC_PEND_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMC_STATUS_INFO { + pub dwStatus: DWORD, + pub cBodyList: DWORD, + pub rgdwBodyList: *mut DWORD, + pub pwszStatusString: LPWSTR, + pub dwOtherInfoChoice: DWORD, + pub __bindgen_anon_1: _CMC_STATUS_INFO__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CMC_STATUS_INFO__bindgen_ty_1 { + pub dwFailInfo: DWORD, + pub pPendInfo: PCMC_PEND_INFO, +} +pub type CMC_STATUS_INFO = _CMC_STATUS_INFO; +pub type PCMC_STATUS_INFO = *mut _CMC_STATUS_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMC_ADD_EXTENSIONS_INFO { + pub dwCmcDataReference: DWORD, + pub cCertReference: DWORD, + pub rgdwCertReference: *mut DWORD, + pub cExtension: DWORD, + pub rgExtension: PCERT_EXTENSION, +} +pub type CMC_ADD_EXTENSIONS_INFO = _CMC_ADD_EXTENSIONS_INFO; +pub type PCMC_ADD_EXTENSIONS_INFO = *mut _CMC_ADD_EXTENSIONS_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMC_ADD_ATTRIBUTES_INFO { + pub dwCmcDataReference: DWORD, + pub cCertReference: DWORD, + pub rgdwCertReference: *mut DWORD, + pub cAttribute: DWORD, + pub rgAttribute: PCRYPT_ATTRIBUTE, +} +pub type CMC_ADD_ATTRIBUTES_INFO = _CMC_ADD_ATTRIBUTES_INFO; +pub type PCMC_ADD_ATTRIBUTES_INFO = *mut _CMC_ADD_ATTRIBUTES_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_TEMPLATE_EXT { + pub pszObjId: LPSTR, + pub dwMajorVersion: DWORD, + pub fMinorVersion: BOOL, + pub dwMinorVersion: DWORD, +} +pub type CERT_TEMPLATE_EXT = _CERT_TEMPLATE_EXT; +pub type PCERT_TEMPLATE_EXT = *mut _CERT_TEMPLATE_EXT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_HASHED_URL { + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub Hash: CRYPT_HASH_BLOB, + pub pwszUrl: LPWSTR, +} +pub type CERT_HASHED_URL = _CERT_HASHED_URL; +pub type PCERT_HASHED_URL = *mut _CERT_HASHED_URL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_LOGOTYPE_DETAILS { + pub pwszMimeType: LPWSTR, + pub cHashedUrl: DWORD, + pub rgHashedUrl: PCERT_HASHED_URL, +} +pub type CERT_LOGOTYPE_DETAILS = _CERT_LOGOTYPE_DETAILS; +pub type PCERT_LOGOTYPE_DETAILS = *mut _CERT_LOGOTYPE_DETAILS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_LOGOTYPE_REFERENCE { + pub cHashedUrl: DWORD, + pub rgHashedUrl: PCERT_HASHED_URL, +} +pub type CERT_LOGOTYPE_REFERENCE = _CERT_LOGOTYPE_REFERENCE; +pub type PCERT_LOGOTYPE_REFERENCE = *mut _CERT_LOGOTYPE_REFERENCE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CERT_LOGOTYPE_IMAGE_INFO { + pub dwLogotypeImageInfoChoice: DWORD, + pub dwFileSize: DWORD, + pub dwXSize: DWORD, + pub dwYSize: DWORD, + pub dwLogotypeImageResolutionChoice: DWORD, + pub __bindgen_anon_1: _CERT_LOGOTYPE_IMAGE_INFO__bindgen_ty_1, + pub pwszLanguage: LPWSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CERT_LOGOTYPE_IMAGE_INFO__bindgen_ty_1 { + pub dwNumBits: DWORD, + pub dwTableSize: DWORD, +} +pub type CERT_LOGOTYPE_IMAGE_INFO = _CERT_LOGOTYPE_IMAGE_INFO; +pub type PCERT_LOGOTYPE_IMAGE_INFO = *mut _CERT_LOGOTYPE_IMAGE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_LOGOTYPE_IMAGE { + pub LogotypeDetails: CERT_LOGOTYPE_DETAILS, + pub pLogotypeImageInfo: PCERT_LOGOTYPE_IMAGE_INFO, +} +pub type CERT_LOGOTYPE_IMAGE = _CERT_LOGOTYPE_IMAGE; +pub type PCERT_LOGOTYPE_IMAGE = *mut _CERT_LOGOTYPE_IMAGE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_LOGOTYPE_AUDIO_INFO { + pub dwFileSize: DWORD, + pub dwPlayTime: DWORD, + pub dwChannels: DWORD, + pub dwSampleRate: DWORD, + pub pwszLanguage: LPWSTR, +} +pub type CERT_LOGOTYPE_AUDIO_INFO = _CERT_LOGOTYPE_AUDIO_INFO; +pub type PCERT_LOGOTYPE_AUDIO_INFO = *mut _CERT_LOGOTYPE_AUDIO_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_LOGOTYPE_AUDIO { + pub LogotypeDetails: CERT_LOGOTYPE_DETAILS, + pub pLogotypeAudioInfo: PCERT_LOGOTYPE_AUDIO_INFO, +} +pub type CERT_LOGOTYPE_AUDIO = _CERT_LOGOTYPE_AUDIO; +pub type PCERT_LOGOTYPE_AUDIO = *mut _CERT_LOGOTYPE_AUDIO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_LOGOTYPE_DATA { + pub cLogotypeImage: DWORD, + pub rgLogotypeImage: PCERT_LOGOTYPE_IMAGE, + pub cLogotypeAudio: DWORD, + pub rgLogotypeAudio: PCERT_LOGOTYPE_AUDIO, +} +pub type CERT_LOGOTYPE_DATA = _CERT_LOGOTYPE_DATA; +pub type PCERT_LOGOTYPE_DATA = *mut _CERT_LOGOTYPE_DATA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CERT_LOGOTYPE_INFO { + pub dwLogotypeInfoChoice: DWORD, + pub __bindgen_anon_1: _CERT_LOGOTYPE_INFO__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CERT_LOGOTYPE_INFO__bindgen_ty_1 { + pub pLogotypeDirectInfo: PCERT_LOGOTYPE_DATA, + pub pLogotypeIndirectInfo: PCERT_LOGOTYPE_REFERENCE, +} +pub type CERT_LOGOTYPE_INFO = _CERT_LOGOTYPE_INFO; +pub type PCERT_LOGOTYPE_INFO = *mut _CERT_LOGOTYPE_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CERT_OTHER_LOGOTYPE_INFO { + pub pszObjId: LPSTR, + pub LogotypeInfo: CERT_LOGOTYPE_INFO, +} +pub type CERT_OTHER_LOGOTYPE_INFO = _CERT_OTHER_LOGOTYPE_INFO; +pub type PCERT_OTHER_LOGOTYPE_INFO = *mut _CERT_OTHER_LOGOTYPE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_LOGOTYPE_EXT_INFO { + pub cCommunityLogo: DWORD, + pub rgCommunityLogo: PCERT_LOGOTYPE_INFO, + pub pIssuerLogo: PCERT_LOGOTYPE_INFO, + pub pSubjectLogo: PCERT_LOGOTYPE_INFO, + pub cOtherLogo: DWORD, + pub rgOtherLogo: PCERT_OTHER_LOGOTYPE_INFO, +} +pub type CERT_LOGOTYPE_EXT_INFO = _CERT_LOGOTYPE_EXT_INFO; +pub type PCERT_LOGOTYPE_EXT_INFO = *mut _CERT_LOGOTYPE_EXT_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CERT_BIOMETRIC_DATA { + pub dwTypeOfBiometricDataChoice: DWORD, + pub __bindgen_anon_1: _CERT_BIOMETRIC_DATA__bindgen_ty_1, + pub HashedUrl: CERT_HASHED_URL, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CERT_BIOMETRIC_DATA__bindgen_ty_1 { + pub dwPredefined: DWORD, + pub pszObjId: LPSTR, +} +pub type CERT_BIOMETRIC_DATA = _CERT_BIOMETRIC_DATA; +pub type PCERT_BIOMETRIC_DATA = *mut _CERT_BIOMETRIC_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_BIOMETRIC_EXT_INFO { + pub cBiometricData: DWORD, + pub rgBiometricData: PCERT_BIOMETRIC_DATA, +} +pub type CERT_BIOMETRIC_EXT_INFO = _CERT_BIOMETRIC_EXT_INFO; +pub type PCERT_BIOMETRIC_EXT_INFO = *mut _CERT_BIOMETRIC_EXT_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OCSP_SIGNATURE_INFO { + pub SignatureAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub Signature: CRYPT_BIT_BLOB, + pub cCertEncoded: DWORD, + pub rgCertEncoded: PCERT_BLOB, +} +pub type OCSP_SIGNATURE_INFO = _OCSP_SIGNATURE_INFO; +pub type POCSP_SIGNATURE_INFO = *mut _OCSP_SIGNATURE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OCSP_SIGNED_REQUEST_INFO { + pub ToBeSigned: CRYPT_DER_BLOB, + pub pOptionalSignatureInfo: POCSP_SIGNATURE_INFO, +} +pub type OCSP_SIGNED_REQUEST_INFO = _OCSP_SIGNED_REQUEST_INFO; +pub type POCSP_SIGNED_REQUEST_INFO = *mut _OCSP_SIGNED_REQUEST_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OCSP_CERT_ID { + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub IssuerNameHash: CRYPT_HASH_BLOB, + pub IssuerKeyHash: CRYPT_HASH_BLOB, + pub SerialNumber: CRYPT_INTEGER_BLOB, +} +pub type OCSP_CERT_ID = _OCSP_CERT_ID; +pub type POCSP_CERT_ID = *mut _OCSP_CERT_ID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OCSP_REQUEST_ENTRY { + pub CertId: OCSP_CERT_ID, + pub cExtension: DWORD, + pub rgExtension: PCERT_EXTENSION, +} +pub type OCSP_REQUEST_ENTRY = _OCSP_REQUEST_ENTRY; +pub type POCSP_REQUEST_ENTRY = *mut _OCSP_REQUEST_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OCSP_REQUEST_INFO { + pub dwVersion: DWORD, + pub pRequestorName: PCERT_ALT_NAME_ENTRY, + pub cRequestEntry: DWORD, + pub rgRequestEntry: POCSP_REQUEST_ENTRY, + pub cExtension: DWORD, + pub rgExtension: PCERT_EXTENSION, +} +pub type OCSP_REQUEST_INFO = _OCSP_REQUEST_INFO; +pub type POCSP_REQUEST_INFO = *mut _OCSP_REQUEST_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OCSP_RESPONSE_INFO { + pub dwStatus: DWORD, + pub pszObjId: LPSTR, + pub Value: CRYPT_OBJID_BLOB, +} +pub type OCSP_RESPONSE_INFO = _OCSP_RESPONSE_INFO; +pub type POCSP_RESPONSE_INFO = *mut _OCSP_RESPONSE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OCSP_BASIC_SIGNED_RESPONSE_INFO { + pub ToBeSigned: CRYPT_DER_BLOB, + pub SignatureInfo: OCSP_SIGNATURE_INFO, +} +pub type OCSP_BASIC_SIGNED_RESPONSE_INFO = _OCSP_BASIC_SIGNED_RESPONSE_INFO; +pub type POCSP_BASIC_SIGNED_RESPONSE_INFO = *mut _OCSP_BASIC_SIGNED_RESPONSE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OCSP_BASIC_REVOKED_INFO { + pub RevocationDate: FILETIME, + pub dwCrlReasonCode: DWORD, +} +pub type OCSP_BASIC_REVOKED_INFO = _OCSP_BASIC_REVOKED_INFO; +pub type POCSP_BASIC_REVOKED_INFO = *mut _OCSP_BASIC_REVOKED_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _OCSP_BASIC_RESPONSE_ENTRY { + pub CertId: OCSP_CERT_ID, + pub dwCertStatus: DWORD, + pub __bindgen_anon_1: _OCSP_BASIC_RESPONSE_ENTRY__bindgen_ty_1, + pub ThisUpdate: FILETIME, + pub NextUpdate: FILETIME, + pub cExtension: DWORD, + pub rgExtension: PCERT_EXTENSION, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _OCSP_BASIC_RESPONSE_ENTRY__bindgen_ty_1 { + pub pRevokedInfo: POCSP_BASIC_REVOKED_INFO, +} +pub type OCSP_BASIC_RESPONSE_ENTRY = _OCSP_BASIC_RESPONSE_ENTRY; +pub type POCSP_BASIC_RESPONSE_ENTRY = *mut _OCSP_BASIC_RESPONSE_ENTRY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _OCSP_BASIC_RESPONSE_INFO { + pub dwVersion: DWORD, + pub dwResponderIdChoice: DWORD, + pub __bindgen_anon_1: _OCSP_BASIC_RESPONSE_INFO__bindgen_ty_1, + pub ProducedAt: FILETIME, + pub cResponseEntry: DWORD, + pub rgResponseEntry: POCSP_BASIC_RESPONSE_ENTRY, + pub cExtension: DWORD, + pub rgExtension: PCERT_EXTENSION, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _OCSP_BASIC_RESPONSE_INFO__bindgen_ty_1 { + pub ByNameResponderId: CERT_NAME_BLOB, + pub ByKeyResponderId: CRYPT_HASH_BLOB, +} +pub type OCSP_BASIC_RESPONSE_INFO = _OCSP_BASIC_RESPONSE_INFO; +pub type POCSP_BASIC_RESPONSE_INFO = *mut _OCSP_BASIC_RESPONSE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_SUPPORTED_ALGORITHM_INFO { + pub Algorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub IntendedKeyUsage: CRYPT_BIT_BLOB, + pub IntendedCertPolicies: CERT_POLICIES_INFO, +} +pub type CERT_SUPPORTED_ALGORITHM_INFO = _CERT_SUPPORTED_ALGORITHM_INFO; +pub type PCERT_SUPPORTED_ALGORITHM_INFO = *mut _CERT_SUPPORTED_ALGORITHM_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_TPM_SPECIFICATION_INFO { + pub pwszFamily: LPWSTR, + pub dwLevel: DWORD, + pub dwRevision: DWORD, +} +pub type CERT_TPM_SPECIFICATION_INFO = _CERT_TPM_SPECIFICATION_INFO; +pub type PCERT_TPM_SPECIFICATION_INFO = *mut _CERT_TPM_SPECIFICATION_INFO; +pub type HCRYPTOIDFUNCSET = *mut ::std::os::raw::c_void; +pub type HCRYPTOIDFUNCADDR = *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_OID_FUNC_ENTRY { + pub pszOID: LPCSTR, + pub pvFuncAddr: *mut ::std::os::raw::c_void, +} +pub type CRYPT_OID_FUNC_ENTRY = _CRYPT_OID_FUNC_ENTRY; +pub type PCRYPT_OID_FUNC_ENTRY = *mut _CRYPT_OID_FUNC_ENTRY; +extern "C" { + pub fn CryptInstallOIDFunctionAddress( + hModule: HMODULE, + dwEncodingType: DWORD, + pszFuncName: LPCSTR, + cFuncEntry: DWORD, + rgFuncEntry: *const CRYPT_OID_FUNC_ENTRY, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptInitOIDFunctionSet(pszFuncName: LPCSTR, dwFlags: DWORD) -> HCRYPTOIDFUNCSET; +} +extern "C" { + pub fn CryptGetOIDFunctionAddress( + hFuncSet: HCRYPTOIDFUNCSET, + dwEncodingType: DWORD, + pszOID: LPCSTR, + dwFlags: DWORD, + ppvFuncAddr: *mut *mut ::std::os::raw::c_void, + phFuncAddr: *mut HCRYPTOIDFUNCADDR, + ) -> BOOL; +} +extern "C" { + pub fn CryptGetDefaultOIDDllList( + hFuncSet: HCRYPTOIDFUNCSET, + dwEncodingType: DWORD, + pwszDllList: *mut WCHAR, + pcchDllList: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptGetDefaultOIDFunctionAddress( + hFuncSet: HCRYPTOIDFUNCSET, + dwEncodingType: DWORD, + pwszDll: LPCWSTR, + dwFlags: DWORD, + ppvFuncAddr: *mut *mut ::std::os::raw::c_void, + phFuncAddr: *mut HCRYPTOIDFUNCADDR, + ) -> BOOL; +} +extern "C" { + pub fn CryptFreeOIDFunctionAddress(hFuncAddr: HCRYPTOIDFUNCADDR, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn CryptRegisterOIDFunction( + dwEncodingType: DWORD, + pszFuncName: LPCSTR, + pszOID: LPCSTR, + pwszDll: LPCWSTR, + pszOverrideFuncName: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn CryptUnregisterOIDFunction( + dwEncodingType: DWORD, + pszFuncName: LPCSTR, + pszOID: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn CryptRegisterDefaultOIDFunction( + dwEncodingType: DWORD, + pszFuncName: LPCSTR, + dwIndex: DWORD, + pwszDll: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn CryptUnregisterDefaultOIDFunction( + dwEncodingType: DWORD, + pszFuncName: LPCSTR, + pwszDll: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn CryptSetOIDFunctionValue( + dwEncodingType: DWORD, + pszFuncName: LPCSTR, + pszOID: LPCSTR, + pwszValueName: LPCWSTR, + dwValueType: DWORD, + pbValueData: *const BYTE, + cbValueData: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptGetOIDFunctionValue( + dwEncodingType: DWORD, + pszFuncName: LPCSTR, + pszOID: LPCSTR, + pwszValueName: LPCWSTR, + pdwValueType: *mut DWORD, + pbValueData: *mut BYTE, + pcbValueData: *mut DWORD, + ) -> BOOL; +} +pub type PFN_CRYPT_ENUM_OID_FUNC = ::std::option::Option< + unsafe extern "C" fn( + dwEncodingType: DWORD, + pszFuncName: LPCSTR, + pszOID: LPCSTR, + cValue: DWORD, + rgdwValueType: *const DWORD, + rgpwszValueName: *const LPCWSTR, + rgpbValueData: *const *const BYTE, + rgcbValueData: *const DWORD, + pvArg: *mut ::std::os::raw::c_void, + ) -> BOOL, +>; +extern "C" { + pub fn CryptEnumOIDFunction( + dwEncodingType: DWORD, + pszFuncName: LPCSTR, + pszOID: LPCSTR, + dwFlags: DWORD, + pvArg: *mut ::std::os::raw::c_void, + pfnEnumOIDFunc: PFN_CRYPT_ENUM_OID_FUNC, + ) -> BOOL; +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CRYPT_OID_INFO { + pub cbSize: DWORD, + pub pszOID: LPCSTR, + pub pwszName: LPCWSTR, + pub dwGroupId: DWORD, + pub __bindgen_anon_1: _CRYPT_OID_INFO__bindgen_ty_1, + pub ExtraInfo: CRYPT_DATA_BLOB, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CRYPT_OID_INFO__bindgen_ty_1 { + pub dwValue: DWORD, + pub Algid: ALG_ID, + pub dwLength: DWORD, +} +pub type CRYPT_OID_INFO = _CRYPT_OID_INFO; +pub type PCRYPT_OID_INFO = *mut _CRYPT_OID_INFO; +pub type CCRYPT_OID_INFO = CRYPT_OID_INFO; +pub type PCCRYPT_OID_INFO = *const CRYPT_OID_INFO; +extern "C" { + pub fn CryptFindOIDInfo( + dwKeyType: DWORD, + pvKey: *mut ::std::os::raw::c_void, + dwGroupId: DWORD, + ) -> PCCRYPT_OID_INFO; +} +extern "C" { + pub fn CryptRegisterOIDInfo(pInfo: PCCRYPT_OID_INFO, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn CryptUnregisterOIDInfo(pInfo: PCCRYPT_OID_INFO) -> BOOL; +} +pub type PFN_CRYPT_ENUM_OID_INFO = ::std::option::Option< + unsafe extern "C" fn(pInfo: PCCRYPT_OID_INFO, pvArg: *mut ::std::os::raw::c_void) -> BOOL, +>; +extern "C" { + pub fn CryptEnumOIDInfo( + dwGroupId: DWORD, + dwFlags: DWORD, + pvArg: *mut ::std::os::raw::c_void, + pfnEnumOIDInfo: PFN_CRYPT_ENUM_OID_INFO, + ) -> BOOL; +} +extern "C" { + pub fn CryptFindLocalizedName(pwszCryptName: LPCWSTR) -> LPCWSTR; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_STRONG_SIGN_SERIALIZED_INFO { + pub dwFlags: DWORD, + pub pwszCNGSignHashAlgids: LPWSTR, + pub pwszCNGPubKeyMinBitLengths: LPWSTR, +} +pub type CERT_STRONG_SIGN_SERIALIZED_INFO = _CERT_STRONG_SIGN_SERIALIZED_INFO; +pub type PCERT_STRONG_SIGN_SERIALIZED_INFO = *mut _CERT_STRONG_SIGN_SERIALIZED_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CERT_STRONG_SIGN_PARA { + pub cbSize: DWORD, + pub dwInfoChoice: DWORD, + pub __bindgen_anon_1: _CERT_STRONG_SIGN_PARA__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CERT_STRONG_SIGN_PARA__bindgen_ty_1 { + pub pvInfo: *mut ::std::os::raw::c_void, + pub pSerializedInfo: PCERT_STRONG_SIGN_SERIALIZED_INFO, + pub pszOID: LPSTR, +} +pub type CERT_STRONG_SIGN_PARA = _CERT_STRONG_SIGN_PARA; +pub type PCERT_STRONG_SIGN_PARA = *mut _CERT_STRONG_SIGN_PARA; +pub type PCCERT_STRONG_SIGN_PARA = *const CERT_STRONG_SIGN_PARA; +pub type HCRYPTMSG = *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_ISSUER_SERIAL_NUMBER { + pub Issuer: CERT_NAME_BLOB, + pub SerialNumber: CRYPT_INTEGER_BLOB, +} +pub type CERT_ISSUER_SERIAL_NUMBER = _CERT_ISSUER_SERIAL_NUMBER; +pub type PCERT_ISSUER_SERIAL_NUMBER = *mut _CERT_ISSUER_SERIAL_NUMBER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CERT_ID { + pub dwIdChoice: DWORD, + pub __bindgen_anon_1: _CERT_ID__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CERT_ID__bindgen_ty_1 { + pub IssuerSerialNumber: CERT_ISSUER_SERIAL_NUMBER, + pub KeyId: CRYPT_HASH_BLOB, + pub HashId: CRYPT_HASH_BLOB, +} +pub type CERT_ID = _CERT_ID; +pub type PCERT_ID = *mut _CERT_ID; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_SIGNER_ENCODE_INFO { + pub cbSize: DWORD, + pub pCertInfo: PCERT_INFO, + pub __bindgen_anon_1: _CMSG_SIGNER_ENCODE_INFO__bindgen_ty_1, + pub dwKeySpec: DWORD, + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub pvHashAuxInfo: *mut ::std::os::raw::c_void, + pub cAuthAttr: DWORD, + pub rgAuthAttr: PCRYPT_ATTRIBUTE, + pub cUnauthAttr: DWORD, + pub rgUnauthAttr: PCRYPT_ATTRIBUTE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CMSG_SIGNER_ENCODE_INFO__bindgen_ty_1 { + pub hCryptProv: HCRYPTPROV, + pub hNCryptKey: NCRYPT_KEY_HANDLE, +} +pub type CMSG_SIGNER_ENCODE_INFO = _CMSG_SIGNER_ENCODE_INFO; +pub type PCMSG_SIGNER_ENCODE_INFO = *mut _CMSG_SIGNER_ENCODE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_SIGNED_ENCODE_INFO { + pub cbSize: DWORD, + pub cSigners: DWORD, + pub rgSigners: PCMSG_SIGNER_ENCODE_INFO, + pub cCertEncoded: DWORD, + pub rgCertEncoded: PCERT_BLOB, + pub cCrlEncoded: DWORD, + pub rgCrlEncoded: PCRL_BLOB, +} +pub type CMSG_SIGNED_ENCODE_INFO = _CMSG_SIGNED_ENCODE_INFO; +pub type PCMSG_SIGNED_ENCODE_INFO = *mut _CMSG_SIGNED_ENCODE_INFO; +pub type CMSG_RECIPIENT_ENCODE_INFO = _CMSG_RECIPIENT_ENCODE_INFO; +pub type PCMSG_RECIPIENT_ENCODE_INFO = *mut _CMSG_RECIPIENT_ENCODE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_ENVELOPED_ENCODE_INFO { + pub cbSize: DWORD, + pub hCryptProv: HCRYPTPROV_LEGACY, + pub ContentEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub pvEncryptionAuxInfo: *mut ::std::os::raw::c_void, + pub cRecipients: DWORD, + pub rgpRecipients: *mut PCERT_INFO, +} +pub type CMSG_ENVELOPED_ENCODE_INFO = _CMSG_ENVELOPED_ENCODE_INFO; +pub type PCMSG_ENVELOPED_ENCODE_INFO = *mut _CMSG_ENVELOPED_ENCODE_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO { + pub cbSize: DWORD, + pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub pvKeyEncryptionAuxInfo: *mut ::std::os::raw::c_void, + pub hCryptProv: HCRYPTPROV_LEGACY, + pub RecipientPublicKey: CRYPT_BIT_BLOB, + pub RecipientId: CERT_ID, +} +pub type CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO = _CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO; +pub type PCMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO = *mut _CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO { + pub cbSize: DWORD, + pub RecipientPublicKey: CRYPT_BIT_BLOB, + pub RecipientId: CERT_ID, + pub Date: FILETIME, + pub pOtherAttr: PCRYPT_ATTRIBUTE_TYPE_VALUE, +} +pub type CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO = _CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO; +pub type PCMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO = *mut _CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO { + pub cbSize: DWORD, + pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub pvKeyEncryptionAuxInfo: *mut ::std::os::raw::c_void, + pub KeyWrapAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub pvKeyWrapAuxInfo: *mut ::std::os::raw::c_void, + pub hCryptProv: HCRYPTPROV_LEGACY, + pub dwKeySpec: DWORD, + pub dwKeyChoice: DWORD, + pub __bindgen_anon_1: _CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO__bindgen_ty_1, + pub UserKeyingMaterial: CRYPT_DATA_BLOB, + pub cRecipientEncryptedKeys: DWORD, + pub rgpRecipientEncryptedKeys: *mut PCMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO__bindgen_ty_1 { + pub pEphemeralAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, + pub pSenderId: PCERT_ID, +} +pub type CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO = _CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO; +pub type PCMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO = *mut _CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO { + pub cbSize: DWORD, + pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub pvKeyEncryptionAuxInfo: *mut ::std::os::raw::c_void, + pub hCryptProv: HCRYPTPROV, + pub dwKeyChoice: DWORD, + pub __bindgen_anon_1: _CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO__bindgen_ty_1, + pub KeyId: CRYPT_DATA_BLOB, + pub Date: FILETIME, + pub pOtherAttr: PCRYPT_ATTRIBUTE_TYPE_VALUE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO__bindgen_ty_1 { + pub hKeyEncryptionKey: HCRYPTKEY, + pub pvKeyEncryptionKey: *mut ::std::os::raw::c_void, +} +pub type CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO = _CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO; +pub type PCMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO = *mut _CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_RECIPIENT_ENCODE_INFO { + pub dwRecipientChoice: DWORD, + pub __bindgen_anon_1: _CMSG_RECIPIENT_ENCODE_INFO__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CMSG_RECIPIENT_ENCODE_INFO__bindgen_ty_1 { + pub pKeyTrans: PCMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO, + pub pKeyAgree: PCMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO, + pub pMailList: PCMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_RC2_AUX_INFO { + pub cbSize: DWORD, + pub dwBitLen: DWORD, +} +pub type CMSG_RC2_AUX_INFO = _CMSG_RC2_AUX_INFO; +pub type PCMSG_RC2_AUX_INFO = *mut _CMSG_RC2_AUX_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_SP3_COMPATIBLE_AUX_INFO { + pub cbSize: DWORD, + pub dwFlags: DWORD, +} +pub type CMSG_SP3_COMPATIBLE_AUX_INFO = _CMSG_SP3_COMPATIBLE_AUX_INFO; +pub type PCMSG_SP3_COMPATIBLE_AUX_INFO = *mut _CMSG_SP3_COMPATIBLE_AUX_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_RC4_AUX_INFO { + pub cbSize: DWORD, + pub dwBitLen: DWORD, +} +pub type CMSG_RC4_AUX_INFO = _CMSG_RC4_AUX_INFO; +pub type PCMSG_RC4_AUX_INFO = *mut _CMSG_RC4_AUX_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO { + pub cbSize: DWORD, + pub SignedInfo: CMSG_SIGNED_ENCODE_INFO, + pub EnvelopedInfo: CMSG_ENVELOPED_ENCODE_INFO, +} +pub type CMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO = _CMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO; +pub type PCMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO = *mut _CMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_HASHED_ENCODE_INFO { + pub cbSize: DWORD, + pub hCryptProv: HCRYPTPROV_LEGACY, + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub pvHashAuxInfo: *mut ::std::os::raw::c_void, +} +pub type CMSG_HASHED_ENCODE_INFO = _CMSG_HASHED_ENCODE_INFO; +pub type PCMSG_HASHED_ENCODE_INFO = *mut _CMSG_HASHED_ENCODE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_ENCRYPTED_ENCODE_INFO { + pub cbSize: DWORD, + pub ContentEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub pvEncryptionAuxInfo: *mut ::std::os::raw::c_void, +} +pub type CMSG_ENCRYPTED_ENCODE_INFO = _CMSG_ENCRYPTED_ENCODE_INFO; +pub type PCMSG_ENCRYPTED_ENCODE_INFO = *mut _CMSG_ENCRYPTED_ENCODE_INFO; +pub type PFN_CMSG_STREAM_OUTPUT = ::std::option::Option< + unsafe extern "C" fn( + pvArg: *const ::std::os::raw::c_void, + pbData: *mut BYTE, + cbData: DWORD, + fFinal: BOOL, + ) -> BOOL, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_STREAM_INFO { + pub cbContent: DWORD, + pub pfnStreamOutput: PFN_CMSG_STREAM_OUTPUT, + pub pvArg: *mut ::std::os::raw::c_void, +} +pub type CMSG_STREAM_INFO = _CMSG_STREAM_INFO; +pub type PCMSG_STREAM_INFO = *mut _CMSG_STREAM_INFO; +extern "C" { + pub fn CryptMsgOpenToEncode( + dwMsgEncodingType: DWORD, + dwFlags: DWORD, + dwMsgType: DWORD, + pvMsgEncodeInfo: *const ::std::os::raw::c_void, + pszInnerContentObjID: LPSTR, + pStreamInfo: PCMSG_STREAM_INFO, + ) -> HCRYPTMSG; +} +extern "C" { + pub fn CryptMsgCalculateEncodedLength( + dwMsgEncodingType: DWORD, + dwFlags: DWORD, + dwMsgType: DWORD, + pvMsgEncodeInfo: *const ::std::os::raw::c_void, + pszInnerContentObjID: LPSTR, + cbData: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn CryptMsgOpenToDecode( + dwMsgEncodingType: DWORD, + dwFlags: DWORD, + dwMsgType: DWORD, + hCryptProv: HCRYPTPROV_LEGACY, + pRecipientInfo: PCERT_INFO, + pStreamInfo: PCMSG_STREAM_INFO, + ) -> HCRYPTMSG; +} +extern "C" { + pub fn CryptMsgDuplicate(hCryptMsg: HCRYPTMSG) -> HCRYPTMSG; +} +extern "C" { + pub fn CryptMsgClose(hCryptMsg: HCRYPTMSG) -> BOOL; +} +extern "C" { + pub fn CryptMsgUpdate( + hCryptMsg: HCRYPTMSG, + pbData: *const BYTE, + cbData: DWORD, + fFinal: BOOL, + ) -> BOOL; +} +extern "C" { + pub fn CryptMsgGetParam( + hCryptMsg: HCRYPTMSG, + dwParamType: DWORD, + dwIndex: DWORD, + pvData: *mut ::std::os::raw::c_void, + pcbData: *mut DWORD, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_SIGNER_INFO { + pub dwVersion: DWORD, + pub Issuer: CERT_NAME_BLOB, + pub SerialNumber: CRYPT_INTEGER_BLOB, + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub HashEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub EncryptedHash: CRYPT_DATA_BLOB, + pub AuthAttrs: CRYPT_ATTRIBUTES, + pub UnauthAttrs: CRYPT_ATTRIBUTES, +} +pub type CMSG_SIGNER_INFO = _CMSG_SIGNER_INFO; +pub type PCMSG_SIGNER_INFO = *mut _CMSG_SIGNER_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_CMS_SIGNER_INFO { + pub dwVersion: DWORD, + pub SignerId: CERT_ID, + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub HashEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub EncryptedHash: CRYPT_DATA_BLOB, + pub AuthAttrs: CRYPT_ATTRIBUTES, + pub UnauthAttrs: CRYPT_ATTRIBUTES, +} +pub type CMSG_CMS_SIGNER_INFO = _CMSG_CMS_SIGNER_INFO; +pub type PCMSG_CMS_SIGNER_INFO = *mut _CMSG_CMS_SIGNER_INFO; +pub type CMSG_ATTR = CRYPT_ATTRIBUTES; +pub type PCMSG_ATTR = *mut CRYPT_ATTRIBUTES; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_KEY_TRANS_RECIPIENT_INFO { + pub dwVersion: DWORD, + pub RecipientId: CERT_ID, + pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub EncryptedKey: CRYPT_DATA_BLOB, +} +pub type CMSG_KEY_TRANS_RECIPIENT_INFO = _CMSG_KEY_TRANS_RECIPIENT_INFO; +pub type PCMSG_KEY_TRANS_RECIPIENT_INFO = *mut _CMSG_KEY_TRANS_RECIPIENT_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_RECIPIENT_ENCRYPTED_KEY_INFO { + pub RecipientId: CERT_ID, + pub EncryptedKey: CRYPT_DATA_BLOB, + pub Date: FILETIME, + pub pOtherAttr: PCRYPT_ATTRIBUTE_TYPE_VALUE, +} +pub type CMSG_RECIPIENT_ENCRYPTED_KEY_INFO = _CMSG_RECIPIENT_ENCRYPTED_KEY_INFO; +pub type PCMSG_RECIPIENT_ENCRYPTED_KEY_INFO = *mut _CMSG_RECIPIENT_ENCRYPTED_KEY_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_KEY_AGREE_RECIPIENT_INFO { + pub dwVersion: DWORD, + pub dwOriginatorChoice: DWORD, + pub __bindgen_anon_1: _CMSG_KEY_AGREE_RECIPIENT_INFO__bindgen_ty_1, + pub UserKeyingMaterial: CRYPT_DATA_BLOB, + pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub cRecipientEncryptedKeys: DWORD, + pub rgpRecipientEncryptedKeys: *mut PCMSG_RECIPIENT_ENCRYPTED_KEY_INFO, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CMSG_KEY_AGREE_RECIPIENT_INFO__bindgen_ty_1 { + pub OriginatorCertId: CERT_ID, + pub OriginatorPublicKeyInfo: CERT_PUBLIC_KEY_INFO, +} +pub type CMSG_KEY_AGREE_RECIPIENT_INFO = _CMSG_KEY_AGREE_RECIPIENT_INFO; +pub type PCMSG_KEY_AGREE_RECIPIENT_INFO = *mut _CMSG_KEY_AGREE_RECIPIENT_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_MAIL_LIST_RECIPIENT_INFO { + pub dwVersion: DWORD, + pub KeyId: CRYPT_DATA_BLOB, + pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub EncryptedKey: CRYPT_DATA_BLOB, + pub Date: FILETIME, + pub pOtherAttr: PCRYPT_ATTRIBUTE_TYPE_VALUE, +} +pub type CMSG_MAIL_LIST_RECIPIENT_INFO = _CMSG_MAIL_LIST_RECIPIENT_INFO; +pub type PCMSG_MAIL_LIST_RECIPIENT_INFO = *mut _CMSG_MAIL_LIST_RECIPIENT_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_CMS_RECIPIENT_INFO { + pub dwRecipientChoice: DWORD, + pub __bindgen_anon_1: _CMSG_CMS_RECIPIENT_INFO__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CMSG_CMS_RECIPIENT_INFO__bindgen_ty_1 { + pub pKeyTrans: PCMSG_KEY_TRANS_RECIPIENT_INFO, + pub pKeyAgree: PCMSG_KEY_AGREE_RECIPIENT_INFO, + pub pMailList: PCMSG_MAIL_LIST_RECIPIENT_INFO, +} +pub type CMSG_CMS_RECIPIENT_INFO = _CMSG_CMS_RECIPIENT_INFO; +pub type PCMSG_CMS_RECIPIENT_INFO = *mut _CMSG_CMS_RECIPIENT_INFO; +extern "C" { + pub fn CryptMsgControl( + hCryptMsg: HCRYPTMSG, + dwFlags: DWORD, + dwCtrlType: DWORD, + pvCtrlPara: *const ::std::os::raw::c_void, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA { + pub cbSize: DWORD, + pub hCryptProv: HCRYPTPROV_LEGACY, + pub dwSignerIndex: DWORD, + pub dwSignerType: DWORD, + pub pvSigner: *mut ::std::os::raw::c_void, +} +pub type CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA = _CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA; +pub type PCMSG_CTRL_VERIFY_SIGNATURE_EX_PARA = *mut _CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_CTRL_DECRYPT_PARA { + pub cbSize: DWORD, + pub __bindgen_anon_1: _CMSG_CTRL_DECRYPT_PARA__bindgen_ty_1, + pub dwKeySpec: DWORD, + pub dwRecipientIndex: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CMSG_CTRL_DECRYPT_PARA__bindgen_ty_1 { + pub hCryptProv: HCRYPTPROV, + pub hNCryptKey: NCRYPT_KEY_HANDLE, +} +pub type CMSG_CTRL_DECRYPT_PARA = _CMSG_CTRL_DECRYPT_PARA; +pub type PCMSG_CTRL_DECRYPT_PARA = *mut _CMSG_CTRL_DECRYPT_PARA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_CTRL_KEY_TRANS_DECRYPT_PARA { + pub cbSize: DWORD, + pub __bindgen_anon_1: _CMSG_CTRL_KEY_TRANS_DECRYPT_PARA__bindgen_ty_1, + pub dwKeySpec: DWORD, + pub pKeyTrans: PCMSG_KEY_TRANS_RECIPIENT_INFO, + pub dwRecipientIndex: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CMSG_CTRL_KEY_TRANS_DECRYPT_PARA__bindgen_ty_1 { + pub hCryptProv: HCRYPTPROV, + pub hNCryptKey: NCRYPT_KEY_HANDLE, +} +pub type CMSG_CTRL_KEY_TRANS_DECRYPT_PARA = _CMSG_CTRL_KEY_TRANS_DECRYPT_PARA; +pub type PCMSG_CTRL_KEY_TRANS_DECRYPT_PARA = *mut _CMSG_CTRL_KEY_TRANS_DECRYPT_PARA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_CTRL_KEY_AGREE_DECRYPT_PARA { + pub cbSize: DWORD, + pub __bindgen_anon_1: _CMSG_CTRL_KEY_AGREE_DECRYPT_PARA__bindgen_ty_1, + pub dwKeySpec: DWORD, + pub pKeyAgree: PCMSG_KEY_AGREE_RECIPIENT_INFO, + pub dwRecipientIndex: DWORD, + pub dwRecipientEncryptedKeyIndex: DWORD, + pub OriginatorPublicKey: CRYPT_BIT_BLOB, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CMSG_CTRL_KEY_AGREE_DECRYPT_PARA__bindgen_ty_1 { + pub hCryptProv: HCRYPTPROV, + pub hNCryptKey: NCRYPT_KEY_HANDLE, +} +pub type CMSG_CTRL_KEY_AGREE_DECRYPT_PARA = _CMSG_CTRL_KEY_AGREE_DECRYPT_PARA; +pub type PCMSG_CTRL_KEY_AGREE_DECRYPT_PARA = *mut _CMSG_CTRL_KEY_AGREE_DECRYPT_PARA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_CTRL_MAIL_LIST_DECRYPT_PARA { + pub cbSize: DWORD, + pub hCryptProv: HCRYPTPROV, + pub pMailList: PCMSG_MAIL_LIST_RECIPIENT_INFO, + pub dwRecipientIndex: DWORD, + pub dwKeyChoice: DWORD, + pub __bindgen_anon_1: _CMSG_CTRL_MAIL_LIST_DECRYPT_PARA__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CMSG_CTRL_MAIL_LIST_DECRYPT_PARA__bindgen_ty_1 { + pub hKeyEncryptionKey: HCRYPTKEY, + pub pvKeyEncryptionKey: *mut ::std::os::raw::c_void, +} +pub type CMSG_CTRL_MAIL_LIST_DECRYPT_PARA = _CMSG_CTRL_MAIL_LIST_DECRYPT_PARA; +pub type PCMSG_CTRL_MAIL_LIST_DECRYPT_PARA = *mut _CMSG_CTRL_MAIL_LIST_DECRYPT_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA { + pub cbSize: DWORD, + pub dwSignerIndex: DWORD, + pub blob: CRYPT_DATA_BLOB, +} +pub type CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA = _CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA; +pub type PCMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA = *mut _CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA { + pub cbSize: DWORD, + pub dwSignerIndex: DWORD, + pub dwUnauthAttrIndex: DWORD, +} +pub type CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA = _CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA; +pub type PCMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA = *mut _CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA; +extern "C" { + pub fn CryptMsgVerifyCountersignatureEncoded( + hCryptProv: HCRYPTPROV_LEGACY, + dwEncodingType: DWORD, + pbSignerInfo: PBYTE, + cbSignerInfo: DWORD, + pbSignerInfoCountersignature: PBYTE, + cbSignerInfoCountersignature: DWORD, + pciCountersigner: PCERT_INFO, + ) -> BOOL; +} +extern "C" { + pub fn CryptMsgVerifyCountersignatureEncodedEx( + hCryptProv: HCRYPTPROV_LEGACY, + dwEncodingType: DWORD, + pbSignerInfo: PBYTE, + cbSignerInfo: DWORD, + pbSignerInfoCountersignature: PBYTE, + cbSignerInfoCountersignature: DWORD, + dwSignerType: DWORD, + pvSigner: *mut ::std::os::raw::c_void, + dwFlags: DWORD, + pvExtra: *mut ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn CryptMsgCountersign( + hCryptMsg: HCRYPTMSG, + dwIndex: DWORD, + cCountersigners: DWORD, + rgCountersigners: PCMSG_SIGNER_ENCODE_INFO, + ) -> BOOL; +} +extern "C" { + pub fn CryptMsgCountersignEncoded( + dwEncodingType: DWORD, + pbSignerInfo: PBYTE, + cbSignerInfo: DWORD, + cCountersigners: DWORD, + rgCountersigners: PCMSG_SIGNER_ENCODE_INFO, + pbCountersignature: PBYTE, + pcbCountersignature: PDWORD, + ) -> BOOL; +} +pub type PFN_CMSG_ALLOC = + ::std::option::Option *mut ::std::os::raw::c_void>; +pub type PFN_CMSG_FREE = + ::std::option::Option; +pub type PFN_CMSG_GEN_ENCRYPT_KEY = ::std::option::Option< + unsafe extern "C" fn( + phCryptProv: *mut HCRYPTPROV, + paiEncrypt: PCRYPT_ALGORITHM_IDENTIFIER, + pvEncryptAuxInfo: PVOID, + pPublicKeyInfo: PCERT_PUBLIC_KEY_INFO, + pfnAlloc: PFN_CMSG_ALLOC, + phEncryptKey: *mut HCRYPTKEY, + ppbEncryptParameters: *mut PBYTE, + pcbEncryptParameters: PDWORD, + ) -> BOOL, +>; +pub type PFN_CMSG_EXPORT_ENCRYPT_KEY = ::std::option::Option< + unsafe extern "C" fn( + hCryptProv: HCRYPTPROV, + hEncryptKey: HCRYPTKEY, + pPublicKeyInfo: PCERT_PUBLIC_KEY_INFO, + pbData: PBYTE, + pcbData: PDWORD, + ) -> BOOL, +>; +pub type PFN_CMSG_IMPORT_ENCRYPT_KEY = ::std::option::Option< + unsafe extern "C" fn( + hCryptProv: HCRYPTPROV, + dwKeySpec: DWORD, + paiEncrypt: PCRYPT_ALGORITHM_IDENTIFIER, + paiPubKey: PCRYPT_ALGORITHM_IDENTIFIER, + pbEncodedKey: PBYTE, + cbEncodedKey: DWORD, + phEncryptKey: *mut HCRYPTKEY, + ) -> BOOL, +>; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_CONTENT_ENCRYPT_INFO { + pub cbSize: DWORD, + pub hCryptProv: HCRYPTPROV_LEGACY, + pub ContentEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub pvEncryptionAuxInfo: *mut ::std::os::raw::c_void, + pub cRecipients: DWORD, + pub rgCmsRecipients: PCMSG_RECIPIENT_ENCODE_INFO, + pub pfnAlloc: PFN_CMSG_ALLOC, + pub pfnFree: PFN_CMSG_FREE, + pub dwEncryptFlags: DWORD, + pub __bindgen_anon_1: _CMSG_CONTENT_ENCRYPT_INFO__bindgen_ty_1, + pub dwFlags: DWORD, + pub fCNG: BOOL, + pub pbCNGContentEncryptKeyObject: *mut BYTE, + pub pbContentEncryptKey: *mut BYTE, + pub cbContentEncryptKey: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CMSG_CONTENT_ENCRYPT_INFO__bindgen_ty_1 { + pub hContentEncryptKey: HCRYPTKEY, + pub hCNGContentEncryptKey: BCRYPT_KEY_HANDLE, +} +pub type CMSG_CONTENT_ENCRYPT_INFO = _CMSG_CONTENT_ENCRYPT_INFO; +pub type PCMSG_CONTENT_ENCRYPT_INFO = *mut _CMSG_CONTENT_ENCRYPT_INFO; +pub type PFN_CMSG_GEN_CONTENT_ENCRYPT_KEY = ::std::option::Option< + unsafe extern "C" fn( + pContentEncryptInfo: PCMSG_CONTENT_ENCRYPT_INFO, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ) -> BOOL, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_KEY_TRANS_ENCRYPT_INFO { + pub cbSize: DWORD, + pub dwRecipientIndex: DWORD, + pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub EncryptedKey: CRYPT_DATA_BLOB, + pub dwFlags: DWORD, +} +pub type CMSG_KEY_TRANS_ENCRYPT_INFO = _CMSG_KEY_TRANS_ENCRYPT_INFO; +pub type PCMSG_KEY_TRANS_ENCRYPT_INFO = *mut _CMSG_KEY_TRANS_ENCRYPT_INFO; +pub type PFN_CMSG_EXPORT_KEY_TRANS = ::std::option::Option< + unsafe extern "C" fn( + pContentEncryptInfo: PCMSG_CONTENT_ENCRYPT_INFO, + pKeyTransEncodeInfo: PCMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO, + pKeyTransEncryptInfo: PCMSG_KEY_TRANS_ENCRYPT_INFO, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ) -> BOOL, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_KEY_AGREE_KEY_ENCRYPT_INFO { + pub cbSize: DWORD, + pub EncryptedKey: CRYPT_DATA_BLOB, +} +pub type CMSG_KEY_AGREE_KEY_ENCRYPT_INFO = _CMSG_KEY_AGREE_KEY_ENCRYPT_INFO; +pub type PCMSG_KEY_AGREE_KEY_ENCRYPT_INFO = *mut _CMSG_KEY_AGREE_KEY_ENCRYPT_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CMSG_KEY_AGREE_ENCRYPT_INFO { + pub cbSize: DWORD, + pub dwRecipientIndex: DWORD, + pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub UserKeyingMaterial: CRYPT_DATA_BLOB, + pub dwOriginatorChoice: DWORD, + pub __bindgen_anon_1: _CMSG_KEY_AGREE_ENCRYPT_INFO__bindgen_ty_1, + pub cKeyAgreeKeyEncryptInfo: DWORD, + pub rgpKeyAgreeKeyEncryptInfo: *mut PCMSG_KEY_AGREE_KEY_ENCRYPT_INFO, + pub dwFlags: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CMSG_KEY_AGREE_ENCRYPT_INFO__bindgen_ty_1 { + pub OriginatorCertId: CERT_ID, + pub OriginatorPublicKeyInfo: CERT_PUBLIC_KEY_INFO, +} +pub type CMSG_KEY_AGREE_ENCRYPT_INFO = _CMSG_KEY_AGREE_ENCRYPT_INFO; +pub type PCMSG_KEY_AGREE_ENCRYPT_INFO = *mut _CMSG_KEY_AGREE_ENCRYPT_INFO; +pub type PFN_CMSG_EXPORT_KEY_AGREE = ::std::option::Option< + unsafe extern "C" fn( + pContentEncryptInfo: PCMSG_CONTENT_ENCRYPT_INFO, + pKeyAgreeEncodeInfo: PCMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO, + pKeyAgreeEncryptInfo: PCMSG_KEY_AGREE_ENCRYPT_INFO, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ) -> BOOL, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_MAIL_LIST_ENCRYPT_INFO { + pub cbSize: DWORD, + pub dwRecipientIndex: DWORD, + pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub EncryptedKey: CRYPT_DATA_BLOB, + pub dwFlags: DWORD, +} +pub type CMSG_MAIL_LIST_ENCRYPT_INFO = _CMSG_MAIL_LIST_ENCRYPT_INFO; +pub type PCMSG_MAIL_LIST_ENCRYPT_INFO = *mut _CMSG_MAIL_LIST_ENCRYPT_INFO; +pub type PFN_CMSG_EXPORT_MAIL_LIST = ::std::option::Option< + unsafe extern "C" fn( + pContentEncryptInfo: PCMSG_CONTENT_ENCRYPT_INFO, + pMailListEncodeInfo: PCMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO, + pMailListEncryptInfo: PCMSG_MAIL_LIST_ENCRYPT_INFO, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ) -> BOOL, +>; +pub type PFN_CMSG_IMPORT_KEY_TRANS = ::std::option::Option< + unsafe extern "C" fn( + pContentEncryptionAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, + pKeyTransDecryptPara: PCMSG_CTRL_KEY_TRANS_DECRYPT_PARA, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + phContentEncryptKey: *mut HCRYPTKEY, + ) -> BOOL, +>; +pub type PFN_CMSG_IMPORT_KEY_AGREE = ::std::option::Option< + unsafe extern "C" fn( + pContentEncryptionAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, + pKeyAgreeDecryptPara: PCMSG_CTRL_KEY_AGREE_DECRYPT_PARA, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + phContentEncryptKey: *mut HCRYPTKEY, + ) -> BOOL, +>; +pub type PFN_CMSG_IMPORT_MAIL_LIST = ::std::option::Option< + unsafe extern "C" fn( + pContentEncryptionAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, + pMailListDecryptPara: PCMSG_CTRL_MAIL_LIST_DECRYPT_PARA, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + phContentEncryptKey: *mut HCRYPTKEY, + ) -> BOOL, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CMSG_CNG_CONTENT_DECRYPT_INFO { + pub cbSize: DWORD, + pub ContentEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub pfnAlloc: PFN_CMSG_ALLOC, + pub pfnFree: PFN_CMSG_FREE, + pub hNCryptKey: NCRYPT_KEY_HANDLE, + pub pbContentEncryptKey: *mut BYTE, + pub cbContentEncryptKey: DWORD, + pub hCNGContentEncryptKey: BCRYPT_KEY_HANDLE, + pub pbCNGContentEncryptKeyObject: *mut BYTE, +} +pub type CMSG_CNG_CONTENT_DECRYPT_INFO = _CMSG_CNG_CONTENT_DECRYPT_INFO; +pub type PCMSG_CNG_CONTENT_DECRYPT_INFO = *mut _CMSG_CNG_CONTENT_DECRYPT_INFO; +pub type PFN_CMSG_CNG_IMPORT_KEY_TRANS = ::std::option::Option< + unsafe extern "C" fn( + pCNGContentDecryptInfo: PCMSG_CNG_CONTENT_DECRYPT_INFO, + pKeyTransDecryptPara: PCMSG_CTRL_KEY_TRANS_DECRYPT_PARA, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ) -> BOOL, +>; +pub type PFN_CMSG_CNG_IMPORT_KEY_AGREE = ::std::option::Option< + unsafe extern "C" fn( + pCNGContentDecryptInfo: PCMSG_CNG_CONTENT_DECRYPT_INFO, + pKeyAgreeDecryptPara: PCMSG_CTRL_KEY_AGREE_DECRYPT_PARA, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ) -> BOOL, +>; +pub type PFN_CMSG_CNG_IMPORT_CONTENT_ENCRYPT_KEY = ::std::option::Option< + unsafe extern "C" fn( + pCNGContentDecryptInfo: PCMSG_CNG_CONTENT_DECRYPT_INFO, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ) -> BOOL, +>; +pub type HCERTSTORE = *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_CONTEXT { + pub dwCertEncodingType: DWORD, + pub pbCertEncoded: *mut BYTE, + pub cbCertEncoded: DWORD, + pub pCertInfo: PCERT_INFO, + pub hCertStore: HCERTSTORE, +} +pub type CERT_CONTEXT = _CERT_CONTEXT; +pub type PCERT_CONTEXT = *mut _CERT_CONTEXT; +pub type PCCERT_CONTEXT = *const CERT_CONTEXT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRL_CONTEXT { + pub dwCertEncodingType: DWORD, + pub pbCrlEncoded: *mut BYTE, + pub cbCrlEncoded: DWORD, + pub pCrlInfo: PCRL_INFO, + pub hCertStore: HCERTSTORE, +} +pub type CRL_CONTEXT = _CRL_CONTEXT; +pub type PCRL_CONTEXT = *mut _CRL_CONTEXT; +pub type PCCRL_CONTEXT = *const CRL_CONTEXT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CTL_CONTEXT { + pub dwMsgAndCertEncodingType: DWORD, + pub pbCtlEncoded: *mut BYTE, + pub cbCtlEncoded: DWORD, + pub pCtlInfo: PCTL_INFO, + pub hCertStore: HCERTSTORE, + pub hCryptMsg: HCRYPTMSG, + pub pbCtlContent: *mut BYTE, + pub cbCtlContent: DWORD, +} +pub type CTL_CONTEXT = _CTL_CONTEXT; +pub type PCTL_CONTEXT = *mut _CTL_CONTEXT; +pub type PCCTL_CONTEXT = *const CTL_CONTEXT; +pub const CertKeyType_KeyTypeOther: CertKeyType = 0; +pub const CertKeyType_KeyTypeVirtualSmartCard: CertKeyType = 1; +pub const CertKeyType_KeyTypePhysicalSmartCard: CertKeyType = 2; +pub const CertKeyType_KeyTypePassport: CertKeyType = 3; +pub const CertKeyType_KeyTypePassportRemote: CertKeyType = 4; +pub const CertKeyType_KeyTypePassportSmartCard: CertKeyType = 5; +pub const CertKeyType_KeyTypeHardware: CertKeyType = 6; +pub const CertKeyType_KeyTypeSoftware: CertKeyType = 7; +pub const CertKeyType_KeyTypeSelfSigned: CertKeyType = 8; +pub type CertKeyType = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_KEY_PROV_PARAM { + pub dwParam: DWORD, + pub pbData: *mut BYTE, + pub cbData: DWORD, + pub dwFlags: DWORD, +} +pub type CRYPT_KEY_PROV_PARAM = _CRYPT_KEY_PROV_PARAM; +pub type PCRYPT_KEY_PROV_PARAM = *mut _CRYPT_KEY_PROV_PARAM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_KEY_PROV_INFO { + pub pwszContainerName: LPWSTR, + pub pwszProvName: LPWSTR, + pub dwProvType: DWORD, + pub dwFlags: DWORD, + pub cProvParam: DWORD, + pub rgProvParam: PCRYPT_KEY_PROV_PARAM, + pub dwKeySpec: DWORD, +} +pub type CRYPT_KEY_PROV_INFO = _CRYPT_KEY_PROV_INFO; +pub type PCRYPT_KEY_PROV_INFO = *mut _CRYPT_KEY_PROV_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CERT_KEY_CONTEXT { + pub cbSize: DWORD, + pub __bindgen_anon_1: _CERT_KEY_CONTEXT__bindgen_ty_1, + pub dwKeySpec: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CERT_KEY_CONTEXT__bindgen_ty_1 { + pub hCryptProv: HCRYPTPROV, + pub hNCryptKey: NCRYPT_KEY_HANDLE, +} +pub type CERT_KEY_CONTEXT = _CERT_KEY_CONTEXT; +pub type PCERT_KEY_CONTEXT = *mut _CERT_KEY_CONTEXT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ROOT_INFO_LUID { + pub LowPart: DWORD, + pub HighPart: LONG, +} +pub type ROOT_INFO_LUID = _ROOT_INFO_LUID; +pub type PROOT_INFO_LUID = *mut _ROOT_INFO_LUID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_SMART_CARD_ROOT_INFO { + pub rgbCardID: [BYTE; 16usize], + pub luid: ROOT_INFO_LUID, +} +pub type CRYPT_SMART_CARD_ROOT_INFO = _CRYPT_SMART_CARD_ROOT_INFO; +pub type PCRYPT_SMART_CARD_ROOT_INFO = *mut _CRYPT_SMART_CARD_ROOT_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CERT_SYSTEM_STORE_RELOCATE_PARA { + pub __bindgen_anon_1: _CERT_SYSTEM_STORE_RELOCATE_PARA__bindgen_ty_1, + pub __bindgen_anon_2: _CERT_SYSTEM_STORE_RELOCATE_PARA__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CERT_SYSTEM_STORE_RELOCATE_PARA__bindgen_ty_1 { + pub hKeyBase: HKEY, + pub pvBase: *mut ::std::os::raw::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CERT_SYSTEM_STORE_RELOCATE_PARA__bindgen_ty_2 { + pub pvSystemStore: *mut ::std::os::raw::c_void, + pub pszSystemStore: LPCSTR, + pub pwszSystemStore: LPCWSTR, +} +pub type CERT_SYSTEM_STORE_RELOCATE_PARA = _CERT_SYSTEM_STORE_RELOCATE_PARA; +pub type PCERT_SYSTEM_STORE_RELOCATE_PARA = *mut _CERT_SYSTEM_STORE_RELOCATE_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_REGISTRY_STORE_CLIENT_GPT_PARA { + pub hKeyBase: HKEY, + pub pwszRegPath: LPWSTR, +} +pub type CERT_REGISTRY_STORE_CLIENT_GPT_PARA = _CERT_REGISTRY_STORE_CLIENT_GPT_PARA; +pub type PCERT_REGISTRY_STORE_CLIENT_GPT_PARA = *mut _CERT_REGISTRY_STORE_CLIENT_GPT_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_REGISTRY_STORE_ROAMING_PARA { + pub hKey: HKEY, + pub pwszStoreDirectory: LPWSTR, +} +pub type CERT_REGISTRY_STORE_ROAMING_PARA = _CERT_REGISTRY_STORE_ROAMING_PARA; +pub type PCERT_REGISTRY_STORE_ROAMING_PARA = *mut _CERT_REGISTRY_STORE_ROAMING_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_LDAP_STORE_OPENED_PARA { + pub pvLdapSessionHandle: *mut ::std::os::raw::c_void, + pub pwszLdapUrl: LPCWSTR, +} +pub type CERT_LDAP_STORE_OPENED_PARA = _CERT_LDAP_STORE_OPENED_PARA; +pub type PCERT_LDAP_STORE_OPENED_PARA = *mut _CERT_LDAP_STORE_OPENED_PARA; +extern "C" { + pub fn CertOpenStore( + lpszStoreProvider: LPCSTR, + dwEncodingType: DWORD, + hCryptProv: HCRYPTPROV_LEGACY, + dwFlags: DWORD, + pvPara: *const ::std::os::raw::c_void, + ) -> HCERTSTORE; +} +pub type HCERTSTOREPROV = *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_STORE_PROV_INFO { + pub cbSize: DWORD, + pub cStoreProvFunc: DWORD, + pub rgpvStoreProvFunc: *mut *mut ::std::os::raw::c_void, + pub hStoreProv: HCERTSTOREPROV, + pub dwStoreProvFlags: DWORD, + pub hStoreProvFuncAddr2: HCRYPTOIDFUNCADDR, +} +pub type CERT_STORE_PROV_INFO = _CERT_STORE_PROV_INFO; +pub type PCERT_STORE_PROV_INFO = *mut _CERT_STORE_PROV_INFO; +pub type PFN_CERT_DLL_OPEN_STORE_PROV_FUNC = ::std::option::Option< + unsafe extern "C" fn( + lpszStoreProvider: LPCSTR, + dwEncodingType: DWORD, + hCryptProv: HCRYPTPROV_LEGACY, + dwFlags: DWORD, + pvPara: *const ::std::os::raw::c_void, + hCertStore: HCERTSTORE, + pStoreProvInfo: PCERT_STORE_PROV_INFO, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_CLOSE = + ::std::option::Option; +pub type PFN_CERT_STORE_PROV_READ_CERT = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pStoreCertContext: PCCERT_CONTEXT, + dwFlags: DWORD, + ppProvCertContext: *mut PCCERT_CONTEXT, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_WRITE_CERT = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCertContext: PCCERT_CONTEXT, + dwFlags: DWORD, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_DELETE_CERT = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCertContext: PCCERT_CONTEXT, + dwFlags: DWORD, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_SET_CERT_PROPERTY = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCertContext: PCCERT_CONTEXT, + dwPropId: DWORD, + dwFlags: DWORD, + pvData: *const ::std::os::raw::c_void, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_READ_CRL = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pStoreCrlContext: PCCRL_CONTEXT, + dwFlags: DWORD, + ppProvCrlContext: *mut PCCRL_CONTEXT, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_WRITE_CRL = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCrlContext: PCCRL_CONTEXT, + dwFlags: DWORD, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_DELETE_CRL = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCrlContext: PCCRL_CONTEXT, + dwFlags: DWORD, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_SET_CRL_PROPERTY = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCrlContext: PCCRL_CONTEXT, + dwPropId: DWORD, + dwFlags: DWORD, + pvData: *const ::std::os::raw::c_void, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_READ_CTL = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pStoreCtlContext: PCCTL_CONTEXT, + dwFlags: DWORD, + ppProvCtlContext: *mut PCCTL_CONTEXT, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_WRITE_CTL = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCtlContext: PCCTL_CONTEXT, + dwFlags: DWORD, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_DELETE_CTL = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCtlContext: PCCTL_CONTEXT, + dwFlags: DWORD, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_SET_CTL_PROPERTY = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCtlContext: PCCTL_CONTEXT, + dwPropId: DWORD, + dwFlags: DWORD, + pvData: *const ::std::os::raw::c_void, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_CONTROL = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + dwFlags: DWORD, + dwCtrlType: DWORD, + pvCtrlPara: *const ::std::os::raw::c_void, + ) -> BOOL, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_STORE_PROV_FIND_INFO { + pub cbSize: DWORD, + pub dwMsgAndCertEncodingType: DWORD, + pub dwFindFlags: DWORD, + pub dwFindType: DWORD, + pub pvFindPara: *const ::std::os::raw::c_void, +} +pub type CERT_STORE_PROV_FIND_INFO = _CERT_STORE_PROV_FIND_INFO; +pub type PCERT_STORE_PROV_FIND_INFO = *mut _CERT_STORE_PROV_FIND_INFO; +pub type CCERT_STORE_PROV_FIND_INFO = CERT_STORE_PROV_FIND_INFO; +pub type PCCERT_STORE_PROV_FIND_INFO = *const CERT_STORE_PROV_FIND_INFO; +pub type PFN_CERT_STORE_PROV_FIND_CERT = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pFindInfo: PCCERT_STORE_PROV_FIND_INFO, + pPrevCertContext: PCCERT_CONTEXT, + dwFlags: DWORD, + ppvStoreProvFindInfo: *mut *mut ::std::os::raw::c_void, + ppProvCertContext: *mut PCCERT_CONTEXT, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_FREE_FIND_CERT = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCertContext: PCCERT_CONTEXT, + pvStoreProvFindInfo: *mut ::std::os::raw::c_void, + dwFlags: DWORD, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_GET_CERT_PROPERTY = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCertContext: PCCERT_CONTEXT, + dwPropId: DWORD, + dwFlags: DWORD, + pvData: *mut ::std::os::raw::c_void, + pcbData: *mut DWORD, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_FIND_CRL = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pFindInfo: PCCERT_STORE_PROV_FIND_INFO, + pPrevCrlContext: PCCRL_CONTEXT, + dwFlags: DWORD, + ppvStoreProvFindInfo: *mut *mut ::std::os::raw::c_void, + ppProvCrlContext: *mut PCCRL_CONTEXT, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_FREE_FIND_CRL = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCrlContext: PCCRL_CONTEXT, + pvStoreProvFindInfo: *mut ::std::os::raw::c_void, + dwFlags: DWORD, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_GET_CRL_PROPERTY = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCrlContext: PCCRL_CONTEXT, + dwPropId: DWORD, + dwFlags: DWORD, + pvData: *mut ::std::os::raw::c_void, + pcbData: *mut DWORD, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_FIND_CTL = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pFindInfo: PCCERT_STORE_PROV_FIND_INFO, + pPrevCtlContext: PCCTL_CONTEXT, + dwFlags: DWORD, + ppvStoreProvFindInfo: *mut *mut ::std::os::raw::c_void, + ppProvCtlContext: *mut PCCTL_CONTEXT, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_FREE_FIND_CTL = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCtlContext: PCCTL_CONTEXT, + pvStoreProvFindInfo: *mut ::std::os::raw::c_void, + dwFlags: DWORD, + ) -> BOOL, +>; +pub type PFN_CERT_STORE_PROV_GET_CTL_PROPERTY = ::std::option::Option< + unsafe extern "C" fn( + hStoreProv: HCERTSTOREPROV, + pCtlContext: PCCTL_CONTEXT, + dwPropId: DWORD, + dwFlags: DWORD, + pvData: *mut ::std::os::raw::c_void, + pcbData: *mut DWORD, + ) -> BOOL, +>; +extern "C" { + pub fn CertDuplicateStore(hCertStore: HCERTSTORE) -> HCERTSTORE; +} +extern "C" { + pub fn CertSaveStore( + hCertStore: HCERTSTORE, + dwEncodingType: DWORD, + dwSaveAs: DWORD, + dwSaveTo: DWORD, + pvSaveToPara: *mut ::std::os::raw::c_void, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertCloseStore(hCertStore: HCERTSTORE, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn CertGetSubjectCertificateFromStore( + hCertStore: HCERTSTORE, + dwCertEncodingType: DWORD, + pCertId: PCERT_INFO, + ) -> PCCERT_CONTEXT; +} +extern "C" { + pub fn CertEnumCertificatesInStore( + hCertStore: HCERTSTORE, + pPrevCertContext: PCCERT_CONTEXT, + ) -> PCCERT_CONTEXT; +} +extern "C" { + pub fn CertFindCertificateInStore( + hCertStore: HCERTSTORE, + dwCertEncodingType: DWORD, + dwFindFlags: DWORD, + dwFindType: DWORD, + pvFindPara: *const ::std::os::raw::c_void, + pPrevCertContext: PCCERT_CONTEXT, + ) -> PCCERT_CONTEXT; +} +extern "C" { + pub fn CertGetIssuerCertificateFromStore( + hCertStore: HCERTSTORE, + pSubjectContext: PCCERT_CONTEXT, + pPrevIssuerContext: PCCERT_CONTEXT, + pdwFlags: *mut DWORD, + ) -> PCCERT_CONTEXT; +} +extern "C" { + pub fn CertVerifySubjectCertificateContext( + pSubject: PCCERT_CONTEXT, + pIssuer: PCCERT_CONTEXT, + pdwFlags: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertDuplicateCertificateContext(pCertContext: PCCERT_CONTEXT) -> PCCERT_CONTEXT; +} +extern "C" { + pub fn CertCreateCertificateContext( + dwCertEncodingType: DWORD, + pbCertEncoded: *const BYTE, + cbCertEncoded: DWORD, + ) -> PCCERT_CONTEXT; +} +extern "C" { + pub fn CertFreeCertificateContext(pCertContext: PCCERT_CONTEXT) -> BOOL; +} +extern "C" { + pub fn CertSetCertificateContextProperty( + pCertContext: PCCERT_CONTEXT, + dwPropId: DWORD, + dwFlags: DWORD, + pvData: *const ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn CertGetCertificateContextProperty( + pCertContext: PCCERT_CONTEXT, + dwPropId: DWORD, + pvData: *mut ::std::os::raw::c_void, + pcbData: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertEnumCertificateContextProperties( + pCertContext: PCCERT_CONTEXT, + dwPropId: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn CertCreateCTLEntryFromCertificateContextProperties( + pCertContext: PCCERT_CONTEXT, + cOptAttr: DWORD, + rgOptAttr: PCRYPT_ATTRIBUTE, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + pCtlEntry: PCTL_ENTRY, + pcbCtlEntry: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertSetCertificateContextPropertiesFromCTLEntry( + pCertContext: PCCERT_CONTEXT, + pCtlEntry: PCTL_ENTRY, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertGetCRLFromStore( + hCertStore: HCERTSTORE, + pIssuerContext: PCCERT_CONTEXT, + pPrevCrlContext: PCCRL_CONTEXT, + pdwFlags: *mut DWORD, + ) -> PCCRL_CONTEXT; +} +extern "C" { + pub fn CertEnumCRLsInStore( + hCertStore: HCERTSTORE, + pPrevCrlContext: PCCRL_CONTEXT, + ) -> PCCRL_CONTEXT; +} +extern "C" { + pub fn CertFindCRLInStore( + hCertStore: HCERTSTORE, + dwCertEncodingType: DWORD, + dwFindFlags: DWORD, + dwFindType: DWORD, + pvFindPara: *const ::std::os::raw::c_void, + pPrevCrlContext: PCCRL_CONTEXT, + ) -> PCCRL_CONTEXT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRL_FIND_ISSUED_FOR_PARA { + pub pSubjectCert: PCCERT_CONTEXT, + pub pIssuerCert: PCCERT_CONTEXT, +} +pub type CRL_FIND_ISSUED_FOR_PARA = _CRL_FIND_ISSUED_FOR_PARA; +pub type PCRL_FIND_ISSUED_FOR_PARA = *mut _CRL_FIND_ISSUED_FOR_PARA; +extern "C" { + pub fn CertDuplicateCRLContext(pCrlContext: PCCRL_CONTEXT) -> PCCRL_CONTEXT; +} +extern "C" { + pub fn CertCreateCRLContext( + dwCertEncodingType: DWORD, + pbCrlEncoded: *const BYTE, + cbCrlEncoded: DWORD, + ) -> PCCRL_CONTEXT; +} +extern "C" { + pub fn CertFreeCRLContext(pCrlContext: PCCRL_CONTEXT) -> BOOL; +} +extern "C" { + pub fn CertSetCRLContextProperty( + pCrlContext: PCCRL_CONTEXT, + dwPropId: DWORD, + dwFlags: DWORD, + pvData: *const ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn CertGetCRLContextProperty( + pCrlContext: PCCRL_CONTEXT, + dwPropId: DWORD, + pvData: *mut ::std::os::raw::c_void, + pcbData: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertEnumCRLContextProperties(pCrlContext: PCCRL_CONTEXT, dwPropId: DWORD) -> DWORD; +} +extern "C" { + pub fn CertFindCertificateInCRL( + pCert: PCCERT_CONTEXT, + pCrlContext: PCCRL_CONTEXT, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ppCrlEntry: *mut PCRL_ENTRY, + ) -> BOOL; +} +extern "C" { + pub fn CertIsValidCRLForCertificate( + pCert: PCCERT_CONTEXT, + pCrl: PCCRL_CONTEXT, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn CertAddEncodedCertificateToStore( + hCertStore: HCERTSTORE, + dwCertEncodingType: DWORD, + pbCertEncoded: *const BYTE, + cbCertEncoded: DWORD, + dwAddDisposition: DWORD, + ppCertContext: *mut PCCERT_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CertAddCertificateContextToStore( + hCertStore: HCERTSTORE, + pCertContext: PCCERT_CONTEXT, + dwAddDisposition: DWORD, + ppStoreContext: *mut PCCERT_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CertAddSerializedElementToStore( + hCertStore: HCERTSTORE, + pbElement: *const BYTE, + cbElement: DWORD, + dwAddDisposition: DWORD, + dwFlags: DWORD, + dwContextTypeFlags: DWORD, + pdwContextType: *mut DWORD, + ppvContext: *mut *const ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn CertDeleteCertificateFromStore(pCertContext: PCCERT_CONTEXT) -> BOOL; +} +extern "C" { + pub fn CertAddEncodedCRLToStore( + hCertStore: HCERTSTORE, + dwCertEncodingType: DWORD, + pbCrlEncoded: *const BYTE, + cbCrlEncoded: DWORD, + dwAddDisposition: DWORD, + ppCrlContext: *mut PCCRL_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CertAddCRLContextToStore( + hCertStore: HCERTSTORE, + pCrlContext: PCCRL_CONTEXT, + dwAddDisposition: DWORD, + ppStoreContext: *mut PCCRL_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CertDeleteCRLFromStore(pCrlContext: PCCRL_CONTEXT) -> BOOL; +} +extern "C" { + pub fn CertSerializeCertificateStoreElement( + pCertContext: PCCERT_CONTEXT, + dwFlags: DWORD, + pbElement: *mut BYTE, + pcbElement: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertSerializeCRLStoreElement( + pCrlContext: PCCRL_CONTEXT, + dwFlags: DWORD, + pbElement: *mut BYTE, + pcbElement: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertDuplicateCTLContext(pCtlContext: PCCTL_CONTEXT) -> PCCTL_CONTEXT; +} +extern "C" { + pub fn CertCreateCTLContext( + dwMsgAndCertEncodingType: DWORD, + pbCtlEncoded: *const BYTE, + cbCtlEncoded: DWORD, + ) -> PCCTL_CONTEXT; +} +extern "C" { + pub fn CertFreeCTLContext(pCtlContext: PCCTL_CONTEXT) -> BOOL; +} +extern "C" { + pub fn CertSetCTLContextProperty( + pCtlContext: PCCTL_CONTEXT, + dwPropId: DWORD, + dwFlags: DWORD, + pvData: *const ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn CertGetCTLContextProperty( + pCtlContext: PCCTL_CONTEXT, + dwPropId: DWORD, + pvData: *mut ::std::os::raw::c_void, + pcbData: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertEnumCTLContextProperties(pCtlContext: PCCTL_CONTEXT, dwPropId: DWORD) -> DWORD; +} +extern "C" { + pub fn CertEnumCTLsInStore( + hCertStore: HCERTSTORE, + pPrevCtlContext: PCCTL_CONTEXT, + ) -> PCCTL_CONTEXT; +} +extern "C" { + pub fn CertFindSubjectInCTL( + dwEncodingType: DWORD, + dwSubjectType: DWORD, + pvSubject: *mut ::std::os::raw::c_void, + pCtlContext: PCCTL_CONTEXT, + dwFlags: DWORD, + ) -> PCTL_ENTRY; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CTL_ANY_SUBJECT_INFO { + pub SubjectAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub SubjectIdentifier: CRYPT_DATA_BLOB, +} +pub type CTL_ANY_SUBJECT_INFO = _CTL_ANY_SUBJECT_INFO; +pub type PCTL_ANY_SUBJECT_INFO = *mut _CTL_ANY_SUBJECT_INFO; +extern "C" { + pub fn CertFindCTLInStore( + hCertStore: HCERTSTORE, + dwMsgAndCertEncodingType: DWORD, + dwFindFlags: DWORD, + dwFindType: DWORD, + pvFindPara: *const ::std::os::raw::c_void, + pPrevCtlContext: PCCTL_CONTEXT, + ) -> PCCTL_CONTEXT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CTL_FIND_USAGE_PARA { + pub cbSize: DWORD, + pub SubjectUsage: CTL_USAGE, + pub ListIdentifier: CRYPT_DATA_BLOB, + pub pSigner: PCERT_INFO, +} +pub type CTL_FIND_USAGE_PARA = _CTL_FIND_USAGE_PARA; +pub type PCTL_FIND_USAGE_PARA = *mut _CTL_FIND_USAGE_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CTL_FIND_SUBJECT_PARA { + pub cbSize: DWORD, + pub pUsagePara: PCTL_FIND_USAGE_PARA, + pub dwSubjectType: DWORD, + pub pvSubject: *mut ::std::os::raw::c_void, +} +pub type CTL_FIND_SUBJECT_PARA = _CTL_FIND_SUBJECT_PARA; +pub type PCTL_FIND_SUBJECT_PARA = *mut _CTL_FIND_SUBJECT_PARA; +extern "C" { + pub fn CertAddEncodedCTLToStore( + hCertStore: HCERTSTORE, + dwMsgAndCertEncodingType: DWORD, + pbCtlEncoded: *const BYTE, + cbCtlEncoded: DWORD, + dwAddDisposition: DWORD, + ppCtlContext: *mut PCCTL_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CertAddCTLContextToStore( + hCertStore: HCERTSTORE, + pCtlContext: PCCTL_CONTEXT, + dwAddDisposition: DWORD, + ppStoreContext: *mut PCCTL_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CertSerializeCTLStoreElement( + pCtlContext: PCCTL_CONTEXT, + dwFlags: DWORD, + pbElement: *mut BYTE, + pcbElement: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertDeleteCTLFromStore(pCtlContext: PCCTL_CONTEXT) -> BOOL; +} +extern "C" { + pub fn CertAddCertificateLinkToStore( + hCertStore: HCERTSTORE, + pCertContext: PCCERT_CONTEXT, + dwAddDisposition: DWORD, + ppStoreContext: *mut PCCERT_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CertAddCRLLinkToStore( + hCertStore: HCERTSTORE, + pCrlContext: PCCRL_CONTEXT, + dwAddDisposition: DWORD, + ppStoreContext: *mut PCCRL_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CertAddCTLLinkToStore( + hCertStore: HCERTSTORE, + pCtlContext: PCCTL_CONTEXT, + dwAddDisposition: DWORD, + ppStoreContext: *mut PCCTL_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CertAddStoreToCollection( + hCollectionStore: HCERTSTORE, + hSiblingStore: HCERTSTORE, + dwUpdateFlags: DWORD, + dwPriority: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertRemoveStoreFromCollection(hCollectionStore: HCERTSTORE, hSiblingStore: HCERTSTORE); +} +extern "C" { + pub fn CertControlStore( + hCertStore: HCERTSTORE, + dwFlags: DWORD, + dwCtrlType: DWORD, + pvCtrlPara: *const ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn CertSetStoreProperty( + hCertStore: HCERTSTORE, + dwPropId: DWORD, + dwFlags: DWORD, + pvData: *const ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn CertGetStoreProperty( + hCertStore: HCERTSTORE, + dwPropId: DWORD, + pvData: *mut ::std::os::raw::c_void, + pcbData: *mut DWORD, + ) -> BOOL; +} +pub type PFN_CERT_CREATE_CONTEXT_SORT_FUNC = ::std::option::Option< + unsafe extern "C" fn( + cbTotalEncoded: DWORD, + cbRemainEncoded: DWORD, + cEntry: DWORD, + pvSort: *mut ::std::os::raw::c_void, + ) -> BOOL, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_CREATE_CONTEXT_PARA { + pub cbSize: DWORD, + pub pfnFree: PFN_CRYPT_FREE, + pub pvFree: *mut ::std::os::raw::c_void, + pub pfnSort: PFN_CERT_CREATE_CONTEXT_SORT_FUNC, + pub pvSort: *mut ::std::os::raw::c_void, +} +pub type CERT_CREATE_CONTEXT_PARA = _CERT_CREATE_CONTEXT_PARA; +pub type PCERT_CREATE_CONTEXT_PARA = *mut _CERT_CREATE_CONTEXT_PARA; +extern "C" { + pub fn CertCreateContext( + dwContextType: DWORD, + dwEncodingType: DWORD, + pbEncoded: *const BYTE, + cbEncoded: DWORD, + dwFlags: DWORD, + pCreatePara: PCERT_CREATE_CONTEXT_PARA, + ) -> *const ::std::os::raw::c_void; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_SYSTEM_STORE_INFO { + pub cbSize: DWORD, +} +pub type CERT_SYSTEM_STORE_INFO = _CERT_SYSTEM_STORE_INFO; +pub type PCERT_SYSTEM_STORE_INFO = *mut _CERT_SYSTEM_STORE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_PHYSICAL_STORE_INFO { + pub cbSize: DWORD, + pub pszOpenStoreProvider: LPSTR, + pub dwOpenEncodingType: DWORD, + pub dwOpenFlags: DWORD, + pub OpenParameters: CRYPT_DATA_BLOB, + pub dwFlags: DWORD, + pub dwPriority: DWORD, +} +pub type CERT_PHYSICAL_STORE_INFO = _CERT_PHYSICAL_STORE_INFO; +pub type PCERT_PHYSICAL_STORE_INFO = *mut _CERT_PHYSICAL_STORE_INFO; +extern "C" { + pub fn CertRegisterSystemStore( + pvSystemStore: *const ::std::os::raw::c_void, + dwFlags: DWORD, + pStoreInfo: PCERT_SYSTEM_STORE_INFO, + pvReserved: *mut ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn CertRegisterPhysicalStore( + pvSystemStore: *const ::std::os::raw::c_void, + dwFlags: DWORD, + pwszStoreName: LPCWSTR, + pStoreInfo: PCERT_PHYSICAL_STORE_INFO, + pvReserved: *mut ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn CertUnregisterSystemStore( + pvSystemStore: *const ::std::os::raw::c_void, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertUnregisterPhysicalStore( + pvSystemStore: *const ::std::os::raw::c_void, + dwFlags: DWORD, + pwszStoreName: LPCWSTR, + ) -> BOOL; +} +pub type PFN_CERT_ENUM_SYSTEM_STORE_LOCATION = ::std::option::Option< + unsafe extern "C" fn( + pwszStoreLocation: LPCWSTR, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + pvArg: *mut ::std::os::raw::c_void, + ) -> BOOL, +>; +pub type PFN_CERT_ENUM_SYSTEM_STORE = ::std::option::Option< + unsafe extern "C" fn( + pvSystemStore: *const ::std::os::raw::c_void, + dwFlags: DWORD, + pStoreInfo: PCERT_SYSTEM_STORE_INFO, + pvReserved: *mut ::std::os::raw::c_void, + pvArg: *mut ::std::os::raw::c_void, + ) -> BOOL, +>; +pub type PFN_CERT_ENUM_PHYSICAL_STORE = ::std::option::Option< + unsafe extern "C" fn( + pvSystemStore: *const ::std::os::raw::c_void, + dwFlags: DWORD, + pwszStoreName: LPCWSTR, + pStoreInfo: PCERT_PHYSICAL_STORE_INFO, + pvReserved: *mut ::std::os::raw::c_void, + pvArg: *mut ::std::os::raw::c_void, + ) -> BOOL, +>; +extern "C" { + pub fn CertEnumSystemStoreLocation( + dwFlags: DWORD, + pvArg: *mut ::std::os::raw::c_void, + pfnEnum: PFN_CERT_ENUM_SYSTEM_STORE_LOCATION, + ) -> BOOL; +} +extern "C" { + pub fn CertEnumSystemStore( + dwFlags: DWORD, + pvSystemStoreLocationPara: *mut ::std::os::raw::c_void, + pvArg: *mut ::std::os::raw::c_void, + pfnEnum: PFN_CERT_ENUM_SYSTEM_STORE, + ) -> BOOL; +} +extern "C" { + pub fn CertEnumPhysicalStore( + pvSystemStore: *const ::std::os::raw::c_void, + dwFlags: DWORD, + pvArg: *mut ::std::os::raw::c_void, + pfnEnum: PFN_CERT_ENUM_PHYSICAL_STORE, + ) -> BOOL; +} +extern "C" { + pub fn CertGetEnhancedKeyUsage( + pCertContext: PCCERT_CONTEXT, + dwFlags: DWORD, + pUsage: PCERT_ENHKEY_USAGE, + pcbUsage: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertSetEnhancedKeyUsage( + pCertContext: PCCERT_CONTEXT, + pUsage: PCERT_ENHKEY_USAGE, + ) -> BOOL; +} +extern "C" { + pub fn CertAddEnhancedKeyUsageIdentifier( + pCertContext: PCCERT_CONTEXT, + pszUsageIdentifier: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn CertRemoveEnhancedKeyUsageIdentifier( + pCertContext: PCCERT_CONTEXT, + pszUsageIdentifier: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn CertGetValidUsages( + cCerts: DWORD, + rghCerts: *mut PCCERT_CONTEXT, + cNumOIDs: *mut ::std::os::raw::c_int, + rghOIDs: *mut LPSTR, + pcbOIDs: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptMsgGetAndVerifySigner( + hCryptMsg: HCRYPTMSG, + cSignerStore: DWORD, + rghSignerStore: *mut HCERTSTORE, + dwFlags: DWORD, + ppSigner: *mut PCCERT_CONTEXT, + pdwSignerIndex: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptMsgSignCTL( + dwMsgEncodingType: DWORD, + pbCtlContent: *mut BYTE, + cbCtlContent: DWORD, + pSignInfo: PCMSG_SIGNED_ENCODE_INFO, + dwFlags: DWORD, + pbEncoded: *mut BYTE, + pcbEncoded: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptMsgEncodeAndSignCTL( + dwMsgEncodingType: DWORD, + pCtlInfo: PCTL_INFO, + pSignInfo: PCMSG_SIGNED_ENCODE_INFO, + dwFlags: DWORD, + pbEncoded: *mut BYTE, + pcbEncoded: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertFindSubjectInSortedCTL( + pSubjectIdentifier: PCRYPT_DATA_BLOB, + pCtlContext: PCCTL_CONTEXT, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + pEncodedAttributes: PCRYPT_DER_BLOB, + ) -> BOOL; +} +extern "C" { + pub fn CertEnumSubjectInSortedCTL( + pCtlContext: PCCTL_CONTEXT, + ppvNextSubject: *mut *mut ::std::os::raw::c_void, + pSubjectIdentifier: PCRYPT_DER_BLOB, + pEncodedAttributes: PCRYPT_DER_BLOB, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CTL_VERIFY_USAGE_PARA { + pub cbSize: DWORD, + pub ListIdentifier: CRYPT_DATA_BLOB, + pub cCtlStore: DWORD, + pub rghCtlStore: *mut HCERTSTORE, + pub cSignerStore: DWORD, + pub rghSignerStore: *mut HCERTSTORE, +} +pub type CTL_VERIFY_USAGE_PARA = _CTL_VERIFY_USAGE_PARA; +pub type PCTL_VERIFY_USAGE_PARA = *mut _CTL_VERIFY_USAGE_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CTL_VERIFY_USAGE_STATUS { + pub cbSize: DWORD, + pub dwError: DWORD, + pub dwFlags: DWORD, + pub ppCtl: *mut PCCTL_CONTEXT, + pub dwCtlEntryIndex: DWORD, + pub ppSigner: *mut PCCERT_CONTEXT, + pub dwSignerIndex: DWORD, +} +pub type CTL_VERIFY_USAGE_STATUS = _CTL_VERIFY_USAGE_STATUS; +pub type PCTL_VERIFY_USAGE_STATUS = *mut _CTL_VERIFY_USAGE_STATUS; +extern "C" { + pub fn CertVerifyCTLUsage( + dwEncodingType: DWORD, + dwSubjectType: DWORD, + pvSubject: *mut ::std::os::raw::c_void, + pSubjectUsage: PCTL_USAGE, + dwFlags: DWORD, + pVerifyUsagePara: PCTL_VERIFY_USAGE_PARA, + pVerifyUsageStatus: PCTL_VERIFY_USAGE_STATUS, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_REVOCATION_CRL_INFO { + pub cbSize: DWORD, + pub pBaseCrlContext: PCCRL_CONTEXT, + pub pDeltaCrlContext: PCCRL_CONTEXT, + pub pCrlEntry: PCRL_ENTRY, + pub fDeltaCrlEntry: BOOL, +} +pub type CERT_REVOCATION_CRL_INFO = _CERT_REVOCATION_CRL_INFO; +pub type PCERT_REVOCATION_CRL_INFO = *mut _CERT_REVOCATION_CRL_INFO; +pub type CERT_REVOCATION_CHAIN_PARA = _CERT_REVOCATION_CHAIN_PARA; +pub type PCERT_REVOCATION_CHAIN_PARA = *mut _CERT_REVOCATION_CHAIN_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_REVOCATION_PARA { + pub cbSize: DWORD, + pub pIssuerCert: PCCERT_CONTEXT, + pub cCertStore: DWORD, + pub rgCertStore: *mut HCERTSTORE, + pub hCrlStore: HCERTSTORE, + pub pftTimeToUse: LPFILETIME, +} +pub type CERT_REVOCATION_PARA = _CERT_REVOCATION_PARA; +pub type PCERT_REVOCATION_PARA = *mut _CERT_REVOCATION_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_REVOCATION_STATUS { + pub cbSize: DWORD, + pub dwIndex: DWORD, + pub dwError: DWORD, + pub dwReason: DWORD, + pub fHasFreshnessTime: BOOL, + pub dwFreshnessTime: DWORD, +} +pub type CERT_REVOCATION_STATUS = _CERT_REVOCATION_STATUS; +pub type PCERT_REVOCATION_STATUS = *mut _CERT_REVOCATION_STATUS; +extern "C" { + pub fn CertVerifyRevocation( + dwEncodingType: DWORD, + dwRevType: DWORD, + cContext: DWORD, + rgpvContext: *mut PVOID, + dwFlags: DWORD, + pRevPara: PCERT_REVOCATION_PARA, + pRevStatus: PCERT_REVOCATION_STATUS, + ) -> BOOL; +} +extern "C" { + pub fn CertCompareIntegerBlob(pInt1: PCRYPT_INTEGER_BLOB, pInt2: PCRYPT_INTEGER_BLOB) -> BOOL; +} +extern "C" { + pub fn CertCompareCertificate( + dwCertEncodingType: DWORD, + pCertId1: PCERT_INFO, + pCertId2: PCERT_INFO, + ) -> BOOL; +} +extern "C" { + pub fn CertCompareCertificateName( + dwCertEncodingType: DWORD, + pCertName1: PCERT_NAME_BLOB, + pCertName2: PCERT_NAME_BLOB, + ) -> BOOL; +} +extern "C" { + pub fn CertIsRDNAttrsInCertificateName( + dwCertEncodingType: DWORD, + dwFlags: DWORD, + pCertName: PCERT_NAME_BLOB, + pRDN: PCERT_RDN, + ) -> BOOL; +} +extern "C" { + pub fn CertComparePublicKeyInfo( + dwCertEncodingType: DWORD, + pPublicKey1: PCERT_PUBLIC_KEY_INFO, + pPublicKey2: PCERT_PUBLIC_KEY_INFO, + ) -> BOOL; +} +extern "C" { + pub fn CertGetPublicKeyLength( + dwCertEncodingType: DWORD, + pPublicKey: PCERT_PUBLIC_KEY_INFO, + ) -> DWORD; +} +extern "C" { + pub fn CryptVerifyCertificateSignature( + hCryptProv: HCRYPTPROV_LEGACY, + dwCertEncodingType: DWORD, + pbEncoded: *const BYTE, + cbEncoded: DWORD, + pPublicKey: PCERT_PUBLIC_KEY_INFO, + ) -> BOOL; +} +extern "C" { + pub fn CryptVerifyCertificateSignatureEx( + hCryptProv: HCRYPTPROV_LEGACY, + dwCertEncodingType: DWORD, + dwSubjectType: DWORD, + pvSubject: *mut ::std::os::raw::c_void, + dwIssuerType: DWORD, + pvIssuer: *mut ::std::os::raw::c_void, + dwFlags: DWORD, + pvExtra: *mut ::std::os::raw::c_void, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO { + pub CertSignHashCNGAlgPropData: CRYPT_DATA_BLOB, + pub CertIssuerPubKeyBitLengthPropData: CRYPT_DATA_BLOB, +} +pub type CRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO = + _CRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO; +pub type PCRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO = + *mut _CRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO { + pub cCNGHashAlgid: DWORD, + pub rgpwszCNGHashAlgid: *mut PCWSTR, + pub dwWeakIndex: DWORD, +} +pub type CRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO = _CRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO; +pub type PCRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO = *mut _CRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO; +extern "C" { + pub fn CertIsStrongHashToSign( + pStrongSignPara: PCCERT_STRONG_SIGN_PARA, + pwszCNGHashAlgid: LPCWSTR, + pSigningCert: PCCERT_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CryptHashToBeSigned( + hCryptProv: HCRYPTPROV_LEGACY, + dwCertEncodingType: DWORD, + pbEncoded: *const BYTE, + cbEncoded: DWORD, + pbComputedHash: *mut BYTE, + pcbComputedHash: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptHashCertificate( + hCryptProv: HCRYPTPROV_LEGACY, + Algid: ALG_ID, + dwFlags: DWORD, + pbEncoded: *const BYTE, + cbEncoded: DWORD, + pbComputedHash: *mut BYTE, + pcbComputedHash: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptHashCertificate2( + pwszCNGHashAlgid: LPCWSTR, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + pbEncoded: *const BYTE, + cbEncoded: DWORD, + pbComputedHash: *mut BYTE, + pcbComputedHash: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptSignCertificate( + hCryptProvOrNCryptKey: HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, + dwKeySpec: DWORD, + dwCertEncodingType: DWORD, + pbEncodedToBeSigned: *const BYTE, + cbEncodedToBeSigned: DWORD, + pSignatureAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, + pvHashAuxInfo: *const ::std::os::raw::c_void, + pbSignature: *mut BYTE, + pcbSignature: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptSignAndEncodeCertificate( + hCryptProvOrNCryptKey: HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, + dwKeySpec: DWORD, + dwCertEncodingType: DWORD, + lpszStructType: LPCSTR, + pvStructInfo: *const ::std::os::raw::c_void, + pSignatureAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, + pvHashAuxInfo: *const ::std::os::raw::c_void, + pbEncoded: *mut BYTE, + pcbEncoded: *mut DWORD, + ) -> BOOL; +} +pub type PFN_CRYPT_EXTRACT_ENCODED_SIGNATURE_PARAMETERS_FUNC = ::std::option::Option< + unsafe extern "C" fn( + dwCertEncodingType: DWORD, + pSignatureAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, + ppvDecodedSignPara: *mut *mut ::std::os::raw::c_void, + ppwszCNGHashAlgid: *mut LPWSTR, + ) -> BOOL, +>; +pub type PFN_CRYPT_SIGN_AND_ENCODE_HASH_FUNC = ::std::option::Option< + unsafe extern "C" fn( + hKey: NCRYPT_KEY_HANDLE, + dwCertEncodingType: DWORD, + pSignatureAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, + pvDecodedSignPara: *mut ::std::os::raw::c_void, + pwszCNGPubKeyAlgid: LPCWSTR, + pwszCNGHashAlgid: LPCWSTR, + pbComputedHash: *mut BYTE, + cbComputedHash: DWORD, + pbSignature: *mut BYTE, + pcbSignature: *mut DWORD, + ) -> BOOL, +>; +pub type PFN_CRYPT_VERIFY_ENCODED_SIGNATURE_FUNC = ::std::option::Option< + unsafe extern "C" fn( + dwCertEncodingType: DWORD, + pPubKeyInfo: PCERT_PUBLIC_KEY_INFO, + pSignatureAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, + pvDecodedSignPara: *mut ::std::os::raw::c_void, + pwszCNGPubKeyAlgid: LPCWSTR, + pwszCNGHashAlgid: LPCWSTR, + pbComputedHash: *mut BYTE, + cbComputedHash: DWORD, + pbSignature: *mut BYTE, + cbSignature: DWORD, + ) -> BOOL, +>; +extern "C" { + pub fn CertVerifyTimeValidity(pTimeToVerify: LPFILETIME, pCertInfo: PCERT_INFO) -> LONG; +} +extern "C" { + pub fn CertVerifyCRLTimeValidity(pTimeToVerify: LPFILETIME, pCrlInfo: PCRL_INFO) -> LONG; +} +extern "C" { + pub fn CertVerifyValidityNesting(pSubjectInfo: PCERT_INFO, pIssuerInfo: PCERT_INFO) -> BOOL; +} +extern "C" { + pub fn CertVerifyCRLRevocation( + dwCertEncodingType: DWORD, + pCertId: PCERT_INFO, + cCrlInfo: DWORD, + rgpCrlInfo: *mut PCRL_INFO, + ) -> BOOL; +} +extern "C" { + pub fn CertAlgIdToOID(dwAlgId: DWORD) -> LPCSTR; +} +extern "C" { + pub fn CertOIDToAlgId(pszObjId: LPCSTR) -> DWORD; +} +extern "C" { + pub fn CertFindExtension( + pszObjId: LPCSTR, + cExtensions: DWORD, + rgExtensions: *mut CERT_EXTENSION, + ) -> PCERT_EXTENSION; +} +extern "C" { + pub fn CertFindAttribute( + pszObjId: LPCSTR, + cAttr: DWORD, + rgAttr: *mut CRYPT_ATTRIBUTE, + ) -> PCRYPT_ATTRIBUTE; +} +extern "C" { + pub fn CertFindRDNAttr(pszObjId: LPCSTR, pName: PCERT_NAME_INFO) -> PCERT_RDN_ATTR; +} +extern "C" { + pub fn CertGetIntendedKeyUsage( + dwCertEncodingType: DWORD, + pCertInfo: PCERT_INFO, + pbKeyUsage: *mut BYTE, + cbKeyUsage: DWORD, + ) -> BOOL; +} +pub type HCRYPTDEFAULTCONTEXT = *mut ::std::os::raw::c_void; +extern "C" { + pub fn CryptInstallDefaultContext( + hCryptProv: HCRYPTPROV, + dwDefaultType: DWORD, + pvDefaultPara: *const ::std::os::raw::c_void, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + phDefaultContext: *mut HCRYPTDEFAULTCONTEXT, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA { + pub cOID: DWORD, + pub rgpszOID: *mut LPSTR, +} +pub type CRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA = _CRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA; +pub type PCRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA = *mut _CRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA; +extern "C" { + pub fn CryptUninstallDefaultContext( + hDefaultContext: HCRYPTDEFAULTCONTEXT, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn CryptExportPublicKeyInfo( + hCryptProvOrNCryptKey: HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, + dwKeySpec: DWORD, + dwCertEncodingType: DWORD, + pInfo: PCERT_PUBLIC_KEY_INFO, + pcbInfo: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptExportPublicKeyInfoEx( + hCryptProvOrNCryptKey: HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, + dwKeySpec: DWORD, + dwCertEncodingType: DWORD, + pszPublicKeyObjId: LPSTR, + dwFlags: DWORD, + pvAuxInfo: *mut ::std::os::raw::c_void, + pInfo: PCERT_PUBLIC_KEY_INFO, + pcbInfo: *mut DWORD, + ) -> BOOL; +} +pub type PFN_CRYPT_EXPORT_PUBLIC_KEY_INFO_EX2_FUNC = ::std::option::Option< + unsafe extern "C" fn( + hNCryptKey: NCRYPT_KEY_HANDLE, + dwCertEncodingType: DWORD, + pszPublicKeyObjId: LPSTR, + dwFlags: DWORD, + pvAuxInfo: *mut ::std::os::raw::c_void, + pInfo: PCERT_PUBLIC_KEY_INFO, + pcbInfo: *mut DWORD, + ) -> BOOL, +>; +extern "C" { + pub fn CryptExportPublicKeyInfoFromBCryptKeyHandle( + hBCryptKey: BCRYPT_KEY_HANDLE, + dwCertEncodingType: DWORD, + pszPublicKeyObjId: LPSTR, + dwFlags: DWORD, + pvAuxInfo: *mut ::std::os::raw::c_void, + pInfo: PCERT_PUBLIC_KEY_INFO, + pcbInfo: *mut DWORD, + ) -> BOOL; +} +pub type PFN_CRYPT_EXPORT_PUBLIC_KEY_INFO_FROM_BCRYPT_HANDLE_FUNC = ::std::option::Option< + unsafe extern "C" fn( + hBCryptKey: BCRYPT_KEY_HANDLE, + dwCertEncodingType: DWORD, + pszPublicKeyObjId: LPSTR, + dwFlags: DWORD, + pvAuxInfo: *mut ::std::os::raw::c_void, + pInfo: PCERT_PUBLIC_KEY_INFO, + pcbInfo: *mut DWORD, + ) -> BOOL, +>; +extern "C" { + pub fn CryptImportPublicKeyInfo( + hCryptProv: HCRYPTPROV, + dwCertEncodingType: DWORD, + pInfo: PCERT_PUBLIC_KEY_INFO, + phKey: *mut HCRYPTKEY, + ) -> BOOL; +} +extern "C" { + pub fn CryptImportPublicKeyInfoEx( + hCryptProv: HCRYPTPROV, + dwCertEncodingType: DWORD, + pInfo: PCERT_PUBLIC_KEY_INFO, + aiKeyAlg: ALG_ID, + dwFlags: DWORD, + pvAuxInfo: *mut ::std::os::raw::c_void, + phKey: *mut HCRYPTKEY, + ) -> BOOL; +} +extern "C" { + pub fn CryptImportPublicKeyInfoEx2( + dwCertEncodingType: DWORD, + pInfo: PCERT_PUBLIC_KEY_INFO, + dwFlags: DWORD, + pvAuxInfo: *mut ::std::os::raw::c_void, + phKey: *mut BCRYPT_KEY_HANDLE, + ) -> BOOL; +} +pub type PFN_IMPORT_PUBLIC_KEY_INFO_EX2_FUNC = ::std::option::Option< + unsafe extern "C" fn( + dwCertEncodingType: DWORD, + pInfo: PCERT_PUBLIC_KEY_INFO, + dwFlags: DWORD, + pvAuxInfo: *mut ::std::os::raw::c_void, + phKey: *mut BCRYPT_KEY_HANDLE, + ) -> BOOL, +>; +extern "C" { + pub fn CryptAcquireCertificatePrivateKey( + pCert: PCCERT_CONTEXT, + dwFlags: DWORD, + pvParameters: *mut ::std::os::raw::c_void, + phCryptProvOrNCryptKey: *mut HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, + pdwKeySpec: *mut DWORD, + pfCallerFreeProvOrNCryptKey: *mut BOOL, + ) -> BOOL; +} +extern "C" { + pub fn CryptFindCertificateKeyProvInfo( + pCert: PCCERT_CONTEXT, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ) -> BOOL; +} +pub type PFN_IMPORT_PRIV_KEY_FUNC = ::std::option::Option< + unsafe extern "C" fn( + hCryptProv: HCRYPTPROV, + pPrivateKeyInfo: *mut CRYPT_PRIVATE_KEY_INFO, + dwFlags: DWORD, + pvAuxInfo: *mut ::std::os::raw::c_void, + ) -> BOOL, +>; +extern "C" { + pub fn CryptImportPKCS8( + sPrivateKeyAndParams: CRYPT_PKCS8_IMPORT_PARAMS, + dwFlags: DWORD, + phCryptProv: *mut HCRYPTPROV, + pvAuxInfo: *mut ::std::os::raw::c_void, + ) -> BOOL; +} +pub type PFN_EXPORT_PRIV_KEY_FUNC = ::std::option::Option< + unsafe extern "C" fn( + hCryptProv: HCRYPTPROV, + dwKeySpec: DWORD, + pszPrivateKeyObjId: LPSTR, + dwFlags: DWORD, + pvAuxInfo: *mut ::std::os::raw::c_void, + pPrivateKeyInfo: *mut CRYPT_PRIVATE_KEY_INFO, + pcbPrivateKeyInfo: *mut DWORD, + ) -> BOOL, +>; +extern "C" { + pub fn CryptExportPKCS8( + hCryptProv: HCRYPTPROV, + dwKeySpec: DWORD, + pszPrivateKeyObjId: LPSTR, + dwFlags: DWORD, + pvAuxInfo: *mut ::std::os::raw::c_void, + pbPrivateKeyBlob: *mut BYTE, + pcbPrivateKeyBlob: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptExportPKCS8Ex( + psExportParams: *mut CRYPT_PKCS8_EXPORT_PARAMS, + dwFlags: DWORD, + pvAuxInfo: *mut ::std::os::raw::c_void, + pbPrivateKeyBlob: *mut BYTE, + pcbPrivateKeyBlob: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptHashPublicKeyInfo( + hCryptProv: HCRYPTPROV_LEGACY, + Algid: ALG_ID, + dwFlags: DWORD, + dwCertEncodingType: DWORD, + pInfo: PCERT_PUBLIC_KEY_INFO, + pbComputedHash: *mut BYTE, + pcbComputedHash: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertRDNValueToStrA( + dwValueType: DWORD, + pValue: PCERT_RDN_VALUE_BLOB, + psz: LPSTR, + csz: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn CertRDNValueToStrW( + dwValueType: DWORD, + pValue: PCERT_RDN_VALUE_BLOB, + psz: LPWSTR, + csz: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn CertNameToStrA( + dwCertEncodingType: DWORD, + pName: PCERT_NAME_BLOB, + dwStrType: DWORD, + psz: LPSTR, + csz: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn CertNameToStrW( + dwCertEncodingType: DWORD, + pName: PCERT_NAME_BLOB, + dwStrType: DWORD, + psz: LPWSTR, + csz: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn CertStrToNameA( + dwCertEncodingType: DWORD, + pszX500: LPCSTR, + dwStrType: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + pbEncoded: *mut BYTE, + pcbEncoded: *mut DWORD, + ppszError: *mut LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn CertStrToNameW( + dwCertEncodingType: DWORD, + pszX500: LPCWSTR, + dwStrType: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + pbEncoded: *mut BYTE, + pcbEncoded: *mut DWORD, + ppszError: *mut LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn CertGetNameStringA( + pCertContext: PCCERT_CONTEXT, + dwType: DWORD, + dwFlags: DWORD, + pvTypePara: *mut ::std::os::raw::c_void, + pszNameString: LPSTR, + cchNameString: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn CertGetNameStringW( + pCertContext: PCCERT_CONTEXT, + dwType: DWORD, + dwFlags: DWORD, + pvTypePara: *mut ::std::os::raw::c_void, + pszNameString: LPWSTR, + cchNameString: DWORD, + ) -> DWORD; +} +pub type PFN_CRYPT_GET_SIGNER_CERTIFICATE = ::std::option::Option< + unsafe extern "C" fn( + pvGetArg: *mut ::std::os::raw::c_void, + dwCertEncodingType: DWORD, + pSignerId: PCERT_INFO, + hMsgCertStore: HCERTSTORE, + ) -> PCCERT_CONTEXT, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_SIGN_MESSAGE_PARA { + pub cbSize: DWORD, + pub dwMsgEncodingType: DWORD, + pub pSigningCert: PCCERT_CONTEXT, + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub pvHashAuxInfo: *mut ::std::os::raw::c_void, + pub cMsgCert: DWORD, + pub rgpMsgCert: *mut PCCERT_CONTEXT, + pub cMsgCrl: DWORD, + pub rgpMsgCrl: *mut PCCRL_CONTEXT, + pub cAuthAttr: DWORD, + pub rgAuthAttr: PCRYPT_ATTRIBUTE, + pub cUnauthAttr: DWORD, + pub rgUnauthAttr: PCRYPT_ATTRIBUTE, + pub dwFlags: DWORD, + pub dwInnerContentType: DWORD, +} +pub type CRYPT_SIGN_MESSAGE_PARA = _CRYPT_SIGN_MESSAGE_PARA; +pub type PCRYPT_SIGN_MESSAGE_PARA = *mut _CRYPT_SIGN_MESSAGE_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_VERIFY_MESSAGE_PARA { + pub cbSize: DWORD, + pub dwMsgAndCertEncodingType: DWORD, + pub hCryptProv: HCRYPTPROV_LEGACY, + pub pfnGetSignerCertificate: PFN_CRYPT_GET_SIGNER_CERTIFICATE, + pub pvGetArg: *mut ::std::os::raw::c_void, +} +pub type CRYPT_VERIFY_MESSAGE_PARA = _CRYPT_VERIFY_MESSAGE_PARA; +pub type PCRYPT_VERIFY_MESSAGE_PARA = *mut _CRYPT_VERIFY_MESSAGE_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_ENCRYPT_MESSAGE_PARA { + pub cbSize: DWORD, + pub dwMsgEncodingType: DWORD, + pub hCryptProv: HCRYPTPROV_LEGACY, + pub ContentEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub pvEncryptionAuxInfo: *mut ::std::os::raw::c_void, + pub dwFlags: DWORD, + pub dwInnerContentType: DWORD, +} +pub type CRYPT_ENCRYPT_MESSAGE_PARA = _CRYPT_ENCRYPT_MESSAGE_PARA; +pub type PCRYPT_ENCRYPT_MESSAGE_PARA = *mut _CRYPT_ENCRYPT_MESSAGE_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_DECRYPT_MESSAGE_PARA { + pub cbSize: DWORD, + pub dwMsgAndCertEncodingType: DWORD, + pub cCertStore: DWORD, + pub rghCertStore: *mut HCERTSTORE, +} +pub type CRYPT_DECRYPT_MESSAGE_PARA = _CRYPT_DECRYPT_MESSAGE_PARA; +pub type PCRYPT_DECRYPT_MESSAGE_PARA = *mut _CRYPT_DECRYPT_MESSAGE_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_HASH_MESSAGE_PARA { + pub cbSize: DWORD, + pub dwMsgEncodingType: DWORD, + pub hCryptProv: HCRYPTPROV_LEGACY, + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub pvHashAuxInfo: *mut ::std::os::raw::c_void, +} +pub type CRYPT_HASH_MESSAGE_PARA = _CRYPT_HASH_MESSAGE_PARA; +pub type PCRYPT_HASH_MESSAGE_PARA = *mut _CRYPT_HASH_MESSAGE_PARA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CRYPT_KEY_SIGN_MESSAGE_PARA { + pub cbSize: DWORD, + pub dwMsgAndCertEncodingType: DWORD, + pub __bindgen_anon_1: _CRYPT_KEY_SIGN_MESSAGE_PARA__bindgen_ty_1, + pub dwKeySpec: DWORD, + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub pvHashAuxInfo: *mut ::std::os::raw::c_void, + pub PubKeyAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CRYPT_KEY_SIGN_MESSAGE_PARA__bindgen_ty_1 { + pub hCryptProv: HCRYPTPROV, + pub hNCryptKey: NCRYPT_KEY_HANDLE, +} +pub type CRYPT_KEY_SIGN_MESSAGE_PARA = _CRYPT_KEY_SIGN_MESSAGE_PARA; +pub type PCRYPT_KEY_SIGN_MESSAGE_PARA = *mut _CRYPT_KEY_SIGN_MESSAGE_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_KEY_VERIFY_MESSAGE_PARA { + pub cbSize: DWORD, + pub dwMsgEncodingType: DWORD, + pub hCryptProv: HCRYPTPROV_LEGACY, +} +pub type CRYPT_KEY_VERIFY_MESSAGE_PARA = _CRYPT_KEY_VERIFY_MESSAGE_PARA; +pub type PCRYPT_KEY_VERIFY_MESSAGE_PARA = *mut _CRYPT_KEY_VERIFY_MESSAGE_PARA; +extern "C" { + pub fn CryptSignMessage( + pSignPara: PCRYPT_SIGN_MESSAGE_PARA, + fDetachedSignature: BOOL, + cToBeSigned: DWORD, + rgpbToBeSigned: *mut *const BYTE, + rgcbToBeSigned: *mut DWORD, + pbSignedBlob: *mut BYTE, + pcbSignedBlob: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptVerifyMessageSignature( + pVerifyPara: PCRYPT_VERIFY_MESSAGE_PARA, + dwSignerIndex: DWORD, + pbSignedBlob: *const BYTE, + cbSignedBlob: DWORD, + pbDecoded: *mut BYTE, + pcbDecoded: *mut DWORD, + ppSignerCert: *mut PCCERT_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CryptGetMessageSignerCount( + dwMsgEncodingType: DWORD, + pbSignedBlob: *const BYTE, + cbSignedBlob: DWORD, + ) -> LONG; +} +extern "C" { + pub fn CryptGetMessageCertificates( + dwMsgAndCertEncodingType: DWORD, + hCryptProv: HCRYPTPROV_LEGACY, + dwFlags: DWORD, + pbSignedBlob: *const BYTE, + cbSignedBlob: DWORD, + ) -> HCERTSTORE; +} +extern "C" { + pub fn CryptVerifyDetachedMessageSignature( + pVerifyPara: PCRYPT_VERIFY_MESSAGE_PARA, + dwSignerIndex: DWORD, + pbDetachedSignBlob: *const BYTE, + cbDetachedSignBlob: DWORD, + cToBeSigned: DWORD, + rgpbToBeSigned: *mut *const BYTE, + rgcbToBeSigned: *mut DWORD, + ppSignerCert: *mut PCCERT_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CryptEncryptMessage( + pEncryptPara: PCRYPT_ENCRYPT_MESSAGE_PARA, + cRecipientCert: DWORD, + rgpRecipientCert: *mut PCCERT_CONTEXT, + pbToBeEncrypted: *const BYTE, + cbToBeEncrypted: DWORD, + pbEncryptedBlob: *mut BYTE, + pcbEncryptedBlob: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptDecryptMessage( + pDecryptPara: PCRYPT_DECRYPT_MESSAGE_PARA, + pbEncryptedBlob: *const BYTE, + cbEncryptedBlob: DWORD, + pbDecrypted: *mut BYTE, + pcbDecrypted: *mut DWORD, + ppXchgCert: *mut PCCERT_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CryptSignAndEncryptMessage( + pSignPara: PCRYPT_SIGN_MESSAGE_PARA, + pEncryptPara: PCRYPT_ENCRYPT_MESSAGE_PARA, + cRecipientCert: DWORD, + rgpRecipientCert: *mut PCCERT_CONTEXT, + pbToBeSignedAndEncrypted: *const BYTE, + cbToBeSignedAndEncrypted: DWORD, + pbSignedAndEncryptedBlob: *mut BYTE, + pcbSignedAndEncryptedBlob: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptDecryptAndVerifyMessageSignature( + pDecryptPara: PCRYPT_DECRYPT_MESSAGE_PARA, + pVerifyPara: PCRYPT_VERIFY_MESSAGE_PARA, + dwSignerIndex: DWORD, + pbEncryptedBlob: *const BYTE, + cbEncryptedBlob: DWORD, + pbDecrypted: *mut BYTE, + pcbDecrypted: *mut DWORD, + ppXchgCert: *mut PCCERT_CONTEXT, + ppSignerCert: *mut PCCERT_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CryptDecodeMessage( + dwMsgTypeFlags: DWORD, + pDecryptPara: PCRYPT_DECRYPT_MESSAGE_PARA, + pVerifyPara: PCRYPT_VERIFY_MESSAGE_PARA, + dwSignerIndex: DWORD, + pbEncodedBlob: *const BYTE, + cbEncodedBlob: DWORD, + dwPrevInnerContentType: DWORD, + pdwMsgType: *mut DWORD, + pdwInnerContentType: *mut DWORD, + pbDecoded: *mut BYTE, + pcbDecoded: *mut DWORD, + ppXchgCert: *mut PCCERT_CONTEXT, + ppSignerCert: *mut PCCERT_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CryptHashMessage( + pHashPara: PCRYPT_HASH_MESSAGE_PARA, + fDetachedHash: BOOL, + cToBeHashed: DWORD, + rgpbToBeHashed: *mut *const BYTE, + rgcbToBeHashed: *mut DWORD, + pbHashedBlob: *mut BYTE, + pcbHashedBlob: *mut DWORD, + pbComputedHash: *mut BYTE, + pcbComputedHash: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptVerifyMessageHash( + pHashPara: PCRYPT_HASH_MESSAGE_PARA, + pbHashedBlob: *mut BYTE, + cbHashedBlob: DWORD, + pbToBeHashed: *mut BYTE, + pcbToBeHashed: *mut DWORD, + pbComputedHash: *mut BYTE, + pcbComputedHash: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptVerifyDetachedMessageHash( + pHashPara: PCRYPT_HASH_MESSAGE_PARA, + pbDetachedHashBlob: *mut BYTE, + cbDetachedHashBlob: DWORD, + cToBeHashed: DWORD, + rgpbToBeHashed: *mut *const BYTE, + rgcbToBeHashed: *mut DWORD, + pbComputedHash: *mut BYTE, + pcbComputedHash: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptSignMessageWithKey( + pSignPara: PCRYPT_KEY_SIGN_MESSAGE_PARA, + pbToBeSigned: *const BYTE, + cbToBeSigned: DWORD, + pbSignedBlob: *mut BYTE, + pcbSignedBlob: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptVerifyMessageSignatureWithKey( + pVerifyPara: PCRYPT_KEY_VERIFY_MESSAGE_PARA, + pPublicKeyInfo: PCERT_PUBLIC_KEY_INFO, + pbSignedBlob: *const BYTE, + cbSignedBlob: DWORD, + pbDecoded: *mut BYTE, + pcbDecoded: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertOpenSystemStoreA( + hProv: HCRYPTPROV_LEGACY, + szSubsystemProtocol: LPCSTR, + ) -> HCERTSTORE; +} +extern "C" { + pub fn CertOpenSystemStoreW( + hProv: HCRYPTPROV_LEGACY, + szSubsystemProtocol: LPCWSTR, + ) -> HCERTSTORE; +} +extern "C" { + pub fn CertAddEncodedCertificateToSystemStoreA( + szCertStoreName: LPCSTR, + pbCertEncoded: *const BYTE, + cbCertEncoded: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CertAddEncodedCertificateToSystemStoreW( + szCertStoreName: LPCWSTR, + pbCertEncoded: *const BYTE, + cbCertEncoded: DWORD, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_CHAIN { + pub cCerts: DWORD, + pub certs: PCERT_BLOB, + pub keyLocatorInfo: CRYPT_KEY_PROV_INFO, +} +pub type CERT_CHAIN = _CERT_CHAIN; +pub type PCERT_CHAIN = *mut _CERT_CHAIN; +extern "C" { + pub fn FindCertsByIssuer( + pCertChains: PCERT_CHAIN, + pcbCertChains: *mut DWORD, + pcCertChains: *mut DWORD, + pbEncodedIssuerName: *mut BYTE, + cbEncodedIssuerName: DWORD, + pwszPurpose: LPCWSTR, + dwKeySpec: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CryptQueryObject( + dwObjectType: DWORD, + pvObject: *const ::std::os::raw::c_void, + dwExpectedContentTypeFlags: DWORD, + dwExpectedFormatTypeFlags: DWORD, + dwFlags: DWORD, + pdwMsgAndCertEncodingType: *mut DWORD, + pdwContentType: *mut DWORD, + pdwFormatType: *mut DWORD, + phCertStore: *mut HCERTSTORE, + phMsg: *mut HCRYPTMSG, + ppvContext: *mut *const ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn CryptMemAlloc(cbSize: ULONG) -> LPVOID; +} +extern "C" { + pub fn CryptMemRealloc(pv: LPVOID, cbSize: ULONG) -> LPVOID; +} +extern "C" { + pub fn CryptMemFree(pv: LPVOID); +} +pub type HCRYPTASYNC = HANDLE; +pub type PHCRYPTASYNC = *mut HANDLE; +pub type PFN_CRYPT_ASYNC_PARAM_FREE_FUNC = + ::std::option::Option; +extern "C" { + pub fn CryptCreateAsyncHandle(dwFlags: DWORD, phAsync: PHCRYPTASYNC) -> BOOL; +} +extern "C" { + pub fn CryptSetAsyncParam( + hAsync: HCRYPTASYNC, + pszParamOid: LPSTR, + pvParam: LPVOID, + pfnFree: PFN_CRYPT_ASYNC_PARAM_FREE_FUNC, + ) -> BOOL; +} +extern "C" { + pub fn CryptGetAsyncParam( + hAsync: HCRYPTASYNC, + pszParamOid: LPSTR, + ppvParam: *mut LPVOID, + ppfnFree: *mut PFN_CRYPT_ASYNC_PARAM_FREE_FUNC, + ) -> BOOL; +} +extern "C" { + pub fn CryptCloseAsyncHandle(hAsync: HCRYPTASYNC) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_BLOB_ARRAY { + pub cBlob: DWORD, + pub rgBlob: PCRYPT_DATA_BLOB, +} +pub type CRYPT_BLOB_ARRAY = _CRYPT_BLOB_ARRAY; +pub type PCRYPT_BLOB_ARRAY = *mut _CRYPT_BLOB_ARRAY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_CREDENTIALS { + pub cbSize: DWORD, + pub pszCredentialsOid: LPCSTR, + pub pvCredentials: LPVOID, +} +pub type CRYPT_CREDENTIALS = _CRYPT_CREDENTIALS; +pub type PCRYPT_CREDENTIALS = *mut _CRYPT_CREDENTIALS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_PASSWORD_CREDENTIALSA { + pub cbSize: DWORD, + pub pszUsername: LPSTR, + pub pszPassword: LPSTR, +} +pub type CRYPT_PASSWORD_CREDENTIALSA = _CRYPT_PASSWORD_CREDENTIALSA; +pub type PCRYPT_PASSWORD_CREDENTIALSA = *mut _CRYPT_PASSWORD_CREDENTIALSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_PASSWORD_CREDENTIALSW { + pub cbSize: DWORD, + pub pszUsername: LPWSTR, + pub pszPassword: LPWSTR, +} +pub type CRYPT_PASSWORD_CREDENTIALSW = _CRYPT_PASSWORD_CREDENTIALSW; +pub type PCRYPT_PASSWORD_CREDENTIALSW = *mut _CRYPT_PASSWORD_CREDENTIALSW; +pub type CRYPT_PASSWORD_CREDENTIALS = CRYPT_PASSWORD_CREDENTIALSA; +pub type PCRYPT_PASSWORD_CREDENTIALS = PCRYPT_PASSWORD_CREDENTIALSA; +pub type PFN_FREE_ENCODED_OBJECT_FUNC = ::std::option::Option< + unsafe extern "C" fn(pszObjectOid: LPCSTR, pObject: PCRYPT_BLOB_ARRAY, pvFreeContext: LPVOID), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPTNET_URL_CACHE_PRE_FETCH_INFO { + pub cbSize: DWORD, + pub dwObjectType: DWORD, + pub dwError: DWORD, + pub dwReserved: DWORD, + pub ThisUpdateTime: FILETIME, + pub NextUpdateTime: FILETIME, + pub PublishTime: FILETIME, +} +pub type CRYPTNET_URL_CACHE_PRE_FETCH_INFO = _CRYPTNET_URL_CACHE_PRE_FETCH_INFO; +pub type PCRYPTNET_URL_CACHE_PRE_FETCH_INFO = *mut _CRYPTNET_URL_CACHE_PRE_FETCH_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPTNET_URL_CACHE_FLUSH_INFO { + pub cbSize: DWORD, + pub dwExemptSeconds: DWORD, + pub ExpireTime: FILETIME, +} +pub type CRYPTNET_URL_CACHE_FLUSH_INFO = _CRYPTNET_URL_CACHE_FLUSH_INFO; +pub type PCRYPTNET_URL_CACHE_FLUSH_INFO = *mut _CRYPTNET_URL_CACHE_FLUSH_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPTNET_URL_CACHE_RESPONSE_INFO { + pub cbSize: DWORD, + pub wResponseType: WORD, + pub wResponseFlags: WORD, + pub LastModifiedTime: FILETIME, + pub dwMaxAge: DWORD, + pub pwszETag: LPCWSTR, + pub dwProxyId: DWORD, +} +pub type CRYPTNET_URL_CACHE_RESPONSE_INFO = _CRYPTNET_URL_CACHE_RESPONSE_INFO; +pub type PCRYPTNET_URL_CACHE_RESPONSE_INFO = *mut _CRYPTNET_URL_CACHE_RESPONSE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_RETRIEVE_AUX_INFO { + pub cbSize: DWORD, + pub pLastSyncTime: *mut FILETIME, + pub dwMaxUrlRetrievalByteCount: DWORD, + pub pPreFetchInfo: PCRYPTNET_URL_CACHE_PRE_FETCH_INFO, + pub pFlushInfo: PCRYPTNET_URL_CACHE_FLUSH_INFO, + pub ppResponseInfo: *mut PCRYPTNET_URL_CACHE_RESPONSE_INFO, + pub pwszCacheFileNamePrefix: LPWSTR, + pub pftCacheResync: LPFILETIME, + pub fProxyCacheRetrieval: BOOL, + pub dwHttpStatusCode: DWORD, + pub ppwszErrorResponseHeaders: *mut LPWSTR, + pub ppErrorContentBlob: *mut PCRYPT_DATA_BLOB, +} +pub type CRYPT_RETRIEVE_AUX_INFO = _CRYPT_RETRIEVE_AUX_INFO; +pub type PCRYPT_RETRIEVE_AUX_INFO = *mut _CRYPT_RETRIEVE_AUX_INFO; +extern "C" { + pub fn CryptRetrieveObjectByUrlA( + pszUrl: LPCSTR, + pszObjectOid: LPCSTR, + dwRetrievalFlags: DWORD, + dwTimeout: DWORD, + ppvObject: *mut LPVOID, + hAsyncRetrieve: HCRYPTASYNC, + pCredentials: PCRYPT_CREDENTIALS, + pvVerify: LPVOID, + pAuxInfo: PCRYPT_RETRIEVE_AUX_INFO, + ) -> BOOL; +} +extern "C" { + pub fn CryptRetrieveObjectByUrlW( + pszUrl: LPCWSTR, + pszObjectOid: LPCSTR, + dwRetrievalFlags: DWORD, + dwTimeout: DWORD, + ppvObject: *mut LPVOID, + hAsyncRetrieve: HCRYPTASYNC, + pCredentials: PCRYPT_CREDENTIALS, + pvVerify: LPVOID, + pAuxInfo: PCRYPT_RETRIEVE_AUX_INFO, + ) -> BOOL; +} +pub type PFN_CRYPT_CANCEL_RETRIEVAL = ::std::option::Option< + unsafe extern "C" fn(dwFlags: DWORD, pvArg: *mut ::std::os::raw::c_void) -> BOOL, +>; +extern "C" { + pub fn CryptInstallCancelRetrieval( + pfnCancel: PFN_CRYPT_CANCEL_RETRIEVAL, + pvArg: *const ::std::os::raw::c_void, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn CryptUninstallCancelRetrieval( + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ) -> BOOL; +} +extern "C" { + pub fn CryptCancelAsyncRetrieval(hAsyncRetrieval: HCRYPTASYNC) -> BOOL; +} +pub type PFN_CRYPT_ASYNC_RETRIEVAL_COMPLETION_FUNC = ::std::option::Option< + unsafe extern "C" fn( + pvCompletion: LPVOID, + dwCompletionCode: DWORD, + pszUrl: LPCSTR, + pszObjectOid: LPSTR, + pvObject: LPVOID, + ), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_ASYNC_RETRIEVAL_COMPLETION { + pub pfnCompletion: PFN_CRYPT_ASYNC_RETRIEVAL_COMPLETION_FUNC, + pub pvCompletion: LPVOID, +} +pub type CRYPT_ASYNC_RETRIEVAL_COMPLETION = _CRYPT_ASYNC_RETRIEVAL_COMPLETION; +pub type PCRYPT_ASYNC_RETRIEVAL_COMPLETION = *mut _CRYPT_ASYNC_RETRIEVAL_COMPLETION; +pub type PFN_CANCEL_ASYNC_RETRIEVAL_FUNC = + ::std::option::Option BOOL>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_URL_ARRAY { + pub cUrl: DWORD, + pub rgwszUrl: *mut LPWSTR, +} +pub type CRYPT_URL_ARRAY = _CRYPT_URL_ARRAY; +pub type PCRYPT_URL_ARRAY = *mut _CRYPT_URL_ARRAY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_URL_INFO { + pub cbSize: DWORD, + pub dwSyncDeltaTime: DWORD, + pub cGroup: DWORD, + pub rgcGroupEntry: *mut DWORD, +} +pub type CRYPT_URL_INFO = _CRYPT_URL_INFO; +pub type PCRYPT_URL_INFO = *mut _CRYPT_URL_INFO; +extern "C" { + pub fn CryptGetObjectUrl( + pszUrlOid: LPCSTR, + pvPara: LPVOID, + dwFlags: DWORD, + pUrlArray: PCRYPT_URL_ARRAY, + pcbUrlArray: *mut DWORD, + pUrlInfo: PCRYPT_URL_INFO, + pcbUrlInfo: *mut DWORD, + pvReserved: LPVOID, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_CRL_CONTEXT_PAIR { + pub pCertContext: PCCERT_CONTEXT, + pub pCrlContext: PCCRL_CONTEXT, +} +pub type CERT_CRL_CONTEXT_PAIR = _CERT_CRL_CONTEXT_PAIR; +pub type PCERT_CRL_CONTEXT_PAIR = *mut _CERT_CRL_CONTEXT_PAIR; +pub type PCCERT_CRL_CONTEXT_PAIR = *const CERT_CRL_CONTEXT_PAIR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO { + pub cbSize: DWORD, + pub iDeltaCrlIndicator: ::std::os::raw::c_int, + pub pftCacheResync: LPFILETIME, + pub pLastSyncTime: LPFILETIME, + pub pMaxAgeTime: LPFILETIME, + pub pChainPara: PCERT_REVOCATION_CHAIN_PARA, + pub pDeltaCrlIndicator: PCRYPT_INTEGER_BLOB, +} +pub type CRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO = _CRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO; +pub type PCRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO = *mut _CRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO; +extern "C" { + pub fn CryptGetTimeValidObject( + pszTimeValidOid: LPCSTR, + pvPara: LPVOID, + pIssuer: PCCERT_CONTEXT, + pftValidFor: LPFILETIME, + dwFlags: DWORD, + dwTimeout: DWORD, + ppvObject: *mut LPVOID, + pCredentials: PCRYPT_CREDENTIALS, + pExtraInfo: PCRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO, + ) -> BOOL; +} +extern "C" { + pub fn CryptFlushTimeValidObject( + pszFlushTimeValidOid: LPCSTR, + pvPara: LPVOID, + pIssuer: PCCERT_CONTEXT, + dwFlags: DWORD, + pvReserved: LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn CertCreateSelfSignCertificate( + hCryptProvOrNCryptKey: HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, + pSubjectIssuerBlob: PCERT_NAME_BLOB, + dwFlags: DWORD, + pKeyProvInfo: PCRYPT_KEY_PROV_INFO, + pSignatureAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, + pStartTime: PSYSTEMTIME, + pEndTime: PSYSTEMTIME, + pExtensions: PCERT_EXTENSIONS, + ) -> PCCERT_CONTEXT; +} +extern "C" { + pub fn CryptGetKeyIdentifierProperty( + pKeyIdentifier: *const CRYPT_HASH_BLOB, + dwPropId: DWORD, + dwFlags: DWORD, + pwszComputerName: LPCWSTR, + pvReserved: *mut ::std::os::raw::c_void, + pvData: *mut ::std::os::raw::c_void, + pcbData: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptSetKeyIdentifierProperty( + pKeyIdentifier: *const CRYPT_HASH_BLOB, + dwPropId: DWORD, + dwFlags: DWORD, + pwszComputerName: LPCWSTR, + pvReserved: *mut ::std::os::raw::c_void, + pvData: *const ::std::os::raw::c_void, + ) -> BOOL; +} +pub type PFN_CRYPT_ENUM_KEYID_PROP = ::std::option::Option< + unsafe extern "C" fn( + pKeyIdentifier: *const CRYPT_HASH_BLOB, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + pvArg: *mut ::std::os::raw::c_void, + cProp: DWORD, + rgdwPropId: *mut DWORD, + rgpvData: *mut *mut ::std::os::raw::c_void, + rgcbData: *mut DWORD, + ) -> BOOL, +>; +extern "C" { + pub fn CryptEnumKeyIdentifierProperties( + pKeyIdentifier: *const CRYPT_HASH_BLOB, + dwPropId: DWORD, + dwFlags: DWORD, + pwszComputerName: LPCWSTR, + pvReserved: *mut ::std::os::raw::c_void, + pvArg: *mut ::std::os::raw::c_void, + pfnEnum: PFN_CRYPT_ENUM_KEYID_PROP, + ) -> BOOL; +} +extern "C" { + pub fn CryptCreateKeyIdentifierFromCSP( + dwCertEncodingType: DWORD, + pszPubKeyOID: LPCSTR, + pPubKeyStruc: *const PUBLICKEYSTRUC, + cbPubKeyStruc: DWORD, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + pbHash: *mut BYTE, + pcbHash: *mut DWORD, + ) -> BOOL; +} +pub type HCERTCHAINENGINE = HANDLE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_CHAIN_ENGINE_CONFIG { + pub cbSize: DWORD, + pub hRestrictedRoot: HCERTSTORE, + pub hRestrictedTrust: HCERTSTORE, + pub hRestrictedOther: HCERTSTORE, + pub cAdditionalStore: DWORD, + pub rghAdditionalStore: *mut HCERTSTORE, + pub dwFlags: DWORD, + pub dwUrlRetrievalTimeout: DWORD, + pub MaximumCachedCertificates: DWORD, + pub CycleDetectionModulus: DWORD, + pub hExclusiveRoot: HCERTSTORE, + pub hExclusiveTrustedPeople: HCERTSTORE, + pub dwExclusiveFlags: DWORD, +} +pub type CERT_CHAIN_ENGINE_CONFIG = _CERT_CHAIN_ENGINE_CONFIG; +pub type PCERT_CHAIN_ENGINE_CONFIG = *mut _CERT_CHAIN_ENGINE_CONFIG; +extern "C" { + pub fn CertCreateCertificateChainEngine( + pConfig: PCERT_CHAIN_ENGINE_CONFIG, + phChainEngine: *mut HCERTCHAINENGINE, + ) -> BOOL; +} +extern "C" { + pub fn CertFreeCertificateChainEngine(hChainEngine: HCERTCHAINENGINE); +} +extern "C" { + pub fn CertResyncCertificateChainEngine(hChainEngine: HCERTCHAINENGINE) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_TRUST_STATUS { + pub dwErrorStatus: DWORD, + pub dwInfoStatus: DWORD, +} +pub type CERT_TRUST_STATUS = _CERT_TRUST_STATUS; +pub type PCERT_TRUST_STATUS = *mut _CERT_TRUST_STATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_REVOCATION_INFO { + pub cbSize: DWORD, + pub dwRevocationResult: DWORD, + pub pszRevocationOid: LPCSTR, + pub pvOidSpecificInfo: LPVOID, + pub fHasFreshnessTime: BOOL, + pub dwFreshnessTime: DWORD, + pub pCrlInfo: PCERT_REVOCATION_CRL_INFO, +} +pub type CERT_REVOCATION_INFO = _CERT_REVOCATION_INFO; +pub type PCERT_REVOCATION_INFO = *mut _CERT_REVOCATION_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_TRUST_LIST_INFO { + pub cbSize: DWORD, + pub pCtlEntry: PCTL_ENTRY, + pub pCtlContext: PCCTL_CONTEXT, +} +pub type CERT_TRUST_LIST_INFO = _CERT_TRUST_LIST_INFO; +pub type PCERT_TRUST_LIST_INFO = *mut _CERT_TRUST_LIST_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_CHAIN_ELEMENT { + pub cbSize: DWORD, + pub pCertContext: PCCERT_CONTEXT, + pub TrustStatus: CERT_TRUST_STATUS, + pub pRevocationInfo: PCERT_REVOCATION_INFO, + pub pIssuanceUsage: PCERT_ENHKEY_USAGE, + pub pApplicationUsage: PCERT_ENHKEY_USAGE, + pub pwszExtendedErrorInfo: LPCWSTR, +} +pub type CERT_CHAIN_ELEMENT = _CERT_CHAIN_ELEMENT; +pub type PCERT_CHAIN_ELEMENT = *mut _CERT_CHAIN_ELEMENT; +pub type PCCERT_CHAIN_ELEMENT = *const CERT_CHAIN_ELEMENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_SIMPLE_CHAIN { + pub cbSize: DWORD, + pub TrustStatus: CERT_TRUST_STATUS, + pub cElement: DWORD, + pub rgpElement: *mut PCERT_CHAIN_ELEMENT, + pub pTrustListInfo: PCERT_TRUST_LIST_INFO, + pub fHasRevocationFreshnessTime: BOOL, + pub dwRevocationFreshnessTime: DWORD, +} +pub type CERT_SIMPLE_CHAIN = _CERT_SIMPLE_CHAIN; +pub type PCERT_SIMPLE_CHAIN = *mut _CERT_SIMPLE_CHAIN; +pub type PCCERT_SIMPLE_CHAIN = *const CERT_SIMPLE_CHAIN; +pub type CERT_CHAIN_CONTEXT = _CERT_CHAIN_CONTEXT; +pub type PCERT_CHAIN_CONTEXT = *mut _CERT_CHAIN_CONTEXT; +pub type PCCERT_CHAIN_CONTEXT = *const CERT_CHAIN_CONTEXT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_CHAIN_CONTEXT { + pub cbSize: DWORD, + pub TrustStatus: CERT_TRUST_STATUS, + pub cChain: DWORD, + pub rgpChain: *mut PCERT_SIMPLE_CHAIN, + pub cLowerQualityChainContext: DWORD, + pub rgpLowerQualityChainContext: *mut PCCERT_CHAIN_CONTEXT, + pub fHasRevocationFreshnessTime: BOOL, + pub dwRevocationFreshnessTime: DWORD, + pub dwCreateFlags: DWORD, + pub ChainId: GUID, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_USAGE_MATCH { + pub dwType: DWORD, + pub Usage: CERT_ENHKEY_USAGE, +} +pub type CERT_USAGE_MATCH = _CERT_USAGE_MATCH; +pub type PCERT_USAGE_MATCH = *mut _CERT_USAGE_MATCH; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CTL_USAGE_MATCH { + pub dwType: DWORD, + pub Usage: CTL_USAGE, +} +pub type CTL_USAGE_MATCH = _CTL_USAGE_MATCH; +pub type PCTL_USAGE_MATCH = *mut _CTL_USAGE_MATCH; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_CHAIN_PARA { + pub cbSize: DWORD, + pub RequestedUsage: CERT_USAGE_MATCH, +} +pub type CERT_CHAIN_PARA = _CERT_CHAIN_PARA; +pub type PCERT_CHAIN_PARA = *mut _CERT_CHAIN_PARA; +extern "C" { + pub fn CertGetCertificateChain( + hChainEngine: HCERTCHAINENGINE, + pCertContext: PCCERT_CONTEXT, + pTime: LPFILETIME, + hAdditionalStore: HCERTSTORE, + pChainPara: PCERT_CHAIN_PARA, + dwFlags: DWORD, + pvReserved: LPVOID, + ppChainContext: *mut PCCERT_CHAIN_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CertFreeCertificateChain(pChainContext: PCCERT_CHAIN_CONTEXT); +} +extern "C" { + pub fn CertDuplicateCertificateChain( + pChainContext: PCCERT_CHAIN_CONTEXT, + ) -> PCCERT_CHAIN_CONTEXT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_REVOCATION_CHAIN_PARA { + pub cbSize: DWORD, + pub hChainEngine: HCERTCHAINENGINE, + pub hAdditionalStore: HCERTSTORE, + pub dwChainFlags: DWORD, + pub dwUrlRetrievalTimeout: DWORD, + pub pftCurrentTime: LPFILETIME, + pub pftCacheResync: LPFILETIME, + pub cbMaxUrlRetrievalByteCount: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRL_REVOCATION_INFO { + pub pCrlEntry: PCRL_ENTRY, + pub pCrlContext: PCCRL_CONTEXT, + pub pCrlIssuerChain: PCCERT_CHAIN_CONTEXT, +} +pub type CRL_REVOCATION_INFO = _CRL_REVOCATION_INFO; +pub type PCRL_REVOCATION_INFO = *mut _CRL_REVOCATION_INFO; +extern "C" { + pub fn CertFindChainInStore( + hCertStore: HCERTSTORE, + dwCertEncodingType: DWORD, + dwFindFlags: DWORD, + dwFindType: DWORD, + pvFindPara: *const ::std::os::raw::c_void, + pPrevChainContext: PCCERT_CHAIN_CONTEXT, + ) -> PCCERT_CHAIN_CONTEXT; +} +pub type PFN_CERT_CHAIN_FIND_BY_ISSUER_CALLBACK = ::std::option::Option< + unsafe extern "C" fn(pCert: PCCERT_CONTEXT, pvFindArg: *mut ::std::os::raw::c_void) -> BOOL, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_CHAIN_FIND_BY_ISSUER_PARA { + pub cbSize: DWORD, + pub pszUsageIdentifier: LPCSTR, + pub dwKeySpec: DWORD, + pub dwAcquirePrivateKeyFlags: DWORD, + pub cIssuer: DWORD, + pub rgIssuer: *mut CERT_NAME_BLOB, + pub pfnFindCallback: PFN_CERT_CHAIN_FIND_BY_ISSUER_CALLBACK, + pub pvFindArg: *mut ::std::os::raw::c_void, +} +pub type CERT_CHAIN_FIND_ISSUER_PARA = _CERT_CHAIN_FIND_BY_ISSUER_PARA; +pub type PCERT_CHAIN_FIND_ISSUER_PARA = *mut _CERT_CHAIN_FIND_BY_ISSUER_PARA; +pub type CERT_CHAIN_FIND_BY_ISSUER_PARA = _CERT_CHAIN_FIND_BY_ISSUER_PARA; +pub type PCERT_CHAIN_FIND_BY_ISSUER_PARA = *mut _CERT_CHAIN_FIND_BY_ISSUER_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_CHAIN_POLICY_PARA { + pub cbSize: DWORD, + pub dwFlags: DWORD, + pub pvExtraPolicyPara: *mut ::std::os::raw::c_void, +} +pub type CERT_CHAIN_POLICY_PARA = _CERT_CHAIN_POLICY_PARA; +pub type PCERT_CHAIN_POLICY_PARA = *mut _CERT_CHAIN_POLICY_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_CHAIN_POLICY_STATUS { + pub cbSize: DWORD, + pub dwError: DWORD, + pub lChainIndex: LONG, + pub lElementIndex: LONG, + pub pvExtraPolicyStatus: *mut ::std::os::raw::c_void, +} +pub type CERT_CHAIN_POLICY_STATUS = _CERT_CHAIN_POLICY_STATUS; +pub type PCERT_CHAIN_POLICY_STATUS = *mut _CERT_CHAIN_POLICY_STATUS; +extern "C" { + pub fn CertVerifyCertificateChainPolicy( + pszPolicyOID: LPCSTR, + pChainContext: PCCERT_CHAIN_CONTEXT, + pPolicyPara: PCERT_CHAIN_POLICY_PARA, + pPolicyStatus: PCERT_CHAIN_POLICY_STATUS, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA { + pub cbSize: DWORD, + pub dwRegPolicySettings: DWORD, + pub pSignerInfo: PCMSG_SIGNER_INFO, +} +pub type AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA = _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA; +pub type PAUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA = + *mut _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS { + pub cbSize: DWORD, + pub fCommercial: BOOL, +} +pub type AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS = _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS; +pub type PAUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS = + *mut _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _AUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA { + pub cbSize: DWORD, + pub dwRegPolicySettings: DWORD, + pub fCommercial: BOOL, +} +pub type AUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA = + _AUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA; +pub type PAUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA = + *mut _AUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _HTTPSPolicyCallbackData { + pub __bindgen_anon_1: _HTTPSPolicyCallbackData__bindgen_ty_1, + pub dwAuthType: DWORD, + pub fdwChecks: DWORD, + pub pwszServerName: *mut WCHAR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _HTTPSPolicyCallbackData__bindgen_ty_1 { + pub cbStruct: DWORD, + pub cbSize: DWORD, +} +pub type HTTPSPolicyCallbackData = _HTTPSPolicyCallbackData; +pub type PHTTPSPolicyCallbackData = *mut _HTTPSPolicyCallbackData; +pub type SSL_EXTRA_CERT_CHAIN_POLICY_PARA = _HTTPSPolicyCallbackData; +pub type PSSL_EXTRA_CERT_CHAIN_POLICY_PARA = *mut _HTTPSPolicyCallbackData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EV_EXTRA_CERT_CHAIN_POLICY_PARA { + pub cbSize: DWORD, + pub dwRootProgramQualifierFlags: DWORD, +} +pub type EV_EXTRA_CERT_CHAIN_POLICY_PARA = _EV_EXTRA_CERT_CHAIN_POLICY_PARA; +pub type PEV_EXTRA_CERT_CHAIN_POLICY_PARA = *mut _EV_EXTRA_CERT_CHAIN_POLICY_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EV_EXTRA_CERT_CHAIN_POLICY_STATUS { + pub cbSize: DWORD, + pub dwQualifiers: DWORD, + pub dwIssuanceUsageIndex: DWORD, +} +pub type EV_EXTRA_CERT_CHAIN_POLICY_STATUS = _EV_EXTRA_CERT_CHAIN_POLICY_STATUS; +pub type PEV_EXTRA_CERT_CHAIN_POLICY_STATUS = *mut _EV_EXTRA_CERT_CHAIN_POLICY_STATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS { + pub cbSize: DWORD, + pub dwErrorLevel: DWORD, + pub dwErrorCategory: DWORD, + pub dwReserved: DWORD, + pub wszErrorText: [WCHAR; 256usize], +} +pub type SSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS = _SSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS; +pub type PSSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS = *mut _SSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA { + pub cbSize: DWORD, + pub dwReserved: DWORD, + pub pwszServerName: LPWSTR, + pub rgpszHpkpValue: [LPSTR; 2usize], +} +pub type SSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA = + _SSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA; +pub type PSSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA = + *mut _SSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA { + pub cbSize: DWORD, + pub dwReserved: DWORD, + pub pwszServerName: PCWSTR, +} +pub type SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA = _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA; +pub type PSSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA = *mut _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS { + pub cbSize: DWORD, + pub lError: LONG, + pub wszErrorText: [WCHAR; 512usize], +} +pub type SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS = _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS; +pub type PSSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS = + *mut _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS; +extern "C" { + pub fn CryptStringToBinaryA( + pszString: LPCSTR, + cchString: DWORD, + dwFlags: DWORD, + pbBinary: *mut BYTE, + pcbBinary: *mut DWORD, + pdwSkip: *mut DWORD, + pdwFlags: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptStringToBinaryW( + pszString: LPCWSTR, + cchString: DWORD, + dwFlags: DWORD, + pbBinary: *mut BYTE, + pcbBinary: *mut DWORD, + pdwSkip: *mut DWORD, + pdwFlags: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptBinaryToStringA( + pbBinary: *const BYTE, + cbBinary: DWORD, + dwFlags: DWORD, + pszString: LPSTR, + pcchString: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptBinaryToStringW( + pbBinary: *const BYTE, + cbBinary: DWORD, + dwFlags: DWORD, + pszString: LPWSTR, + pcchString: *mut DWORD, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_PKCS12_PBE_PARAMS { + pub iIterations: ::std::os::raw::c_int, + pub cbSalt: ULONG, +} +pub type CRYPT_PKCS12_PBE_PARAMS = _CRYPT_PKCS12_PBE_PARAMS; +extern "C" { + pub fn PFXImportCertStore( + pPFX: *mut CRYPT_DATA_BLOB, + szPassword: LPCWSTR, + dwFlags: DWORD, + ) -> HCERTSTORE; +} +extern "C" { + pub fn PFXIsPFXBlob(pPFX: *mut CRYPT_DATA_BLOB) -> BOOL; +} +extern "C" { + pub fn PFXVerifyPassword( + pPFX: *mut CRYPT_DATA_BLOB, + szPassword: LPCWSTR, + dwFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn PFXExportCertStoreEx( + hStore: HCERTSTORE, + pPFX: *mut CRYPT_DATA_BLOB, + szPassword: LPCWSTR, + pvPara: *mut ::std::os::raw::c_void, + dwFlags: DWORD, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PKCS12_PBES2_EXPORT_PARAMS { + pub dwSize: DWORD, + pub hNcryptDescriptor: PVOID, + pub pwszPbes2Alg: LPWSTR, +} +pub type PKCS12_PBES2_EXPORT_PARAMS = _PKCS12_PBES2_EXPORT_PARAMS; +pub type PPKCS12_PBES2_EXPORT_PARAMS = *mut _PKCS12_PBES2_EXPORT_PARAMS; +extern "C" { + pub fn PFXExportCertStore( + hStore: HCERTSTORE, + pPFX: *mut CRYPT_DATA_BLOB, + szPassword: LPCWSTR, + dwFlags: DWORD, + ) -> BOOL; +} +pub type HCERT_SERVER_OCSP_RESPONSE = *mut ::std::os::raw::c_void; +pub type CERT_SERVER_OCSP_RESPONSE_CONTEXT = _CERT_SERVER_OCSP_RESPONSE_CONTEXT; +pub type PCERT_SERVER_OCSP_RESPONSE_CONTEXT = *mut _CERT_SERVER_OCSP_RESPONSE_CONTEXT; +pub type PCCERT_SERVER_OCSP_RESPONSE_CONTEXT = *const CERT_SERVER_OCSP_RESPONSE_CONTEXT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_SERVER_OCSP_RESPONSE_CONTEXT { + pub cbSize: DWORD, + pub pbEncodedOcspResponse: *mut BYTE, + pub cbEncodedOcspResponse: DWORD, +} +pub type PFN_CERT_SERVER_OCSP_RESPONSE_UPDATE_CALLBACK = ::std::option::Option< + unsafe extern "C" fn( + pChainContext: PCCERT_CHAIN_CONTEXT, + pServerOcspResponseContext: PCCERT_SERVER_OCSP_RESPONSE_CONTEXT, + pNewCrlContext: PCCRL_CONTEXT, + pPrevCrlContext: PCCRL_CONTEXT, + pvArg: PVOID, + dwWriteOcspFileError: DWORD, + ), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_SERVER_OCSP_RESPONSE_OPEN_PARA { + pub cbSize: DWORD, + pub dwFlags: DWORD, + pub pcbUsedSize: *mut DWORD, + pub pwszOcspDirectory: PWSTR, + pub pfnUpdateCallback: PFN_CERT_SERVER_OCSP_RESPONSE_UPDATE_CALLBACK, + pub pvUpdateCallbackArg: PVOID, +} +pub type CERT_SERVER_OCSP_RESPONSE_OPEN_PARA = _CERT_SERVER_OCSP_RESPONSE_OPEN_PARA; +pub type PCERT_SERVER_OCSP_RESPONSE_OPEN_PARA = *mut _CERT_SERVER_OCSP_RESPONSE_OPEN_PARA; +extern "C" { + pub fn CertOpenServerOcspResponse( + pChainContext: PCCERT_CHAIN_CONTEXT, + dwFlags: DWORD, + pOpenPara: PCERT_SERVER_OCSP_RESPONSE_OPEN_PARA, + ) -> HCERT_SERVER_OCSP_RESPONSE; +} +extern "C" { + pub fn CertAddRefServerOcspResponse(hServerOcspResponse: HCERT_SERVER_OCSP_RESPONSE); +} +extern "C" { + pub fn CertCloseServerOcspResponse( + hServerOcspResponse: HCERT_SERVER_OCSP_RESPONSE, + dwFlags: DWORD, + ); +} +extern "C" { + pub fn CertGetServerOcspResponseContext( + hServerOcspResponse: HCERT_SERVER_OCSP_RESPONSE, + dwFlags: DWORD, + pvReserved: LPVOID, + ) -> PCCERT_SERVER_OCSP_RESPONSE_CONTEXT; +} +extern "C" { + pub fn CertAddRefServerOcspResponseContext( + pServerOcspResponseContext: PCCERT_SERVER_OCSP_RESPONSE_CONTEXT, + ); +} +extern "C" { + pub fn CertFreeServerOcspResponseContext( + pServerOcspResponseContext: PCCERT_SERVER_OCSP_RESPONSE_CONTEXT, + ); +} +extern "C" { + pub fn CertRetrieveLogoOrBiometricInfo( + pCertContext: PCCERT_CONTEXT, + lpszLogoOrBiometricType: LPCSTR, + dwRetrievalFlags: DWORD, + dwTimeout: DWORD, + dwFlags: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ppbData: *mut *mut BYTE, + pcbData: *mut DWORD, + ppwszMimeType: *mut LPWSTR, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_SELECT_CHAIN_PARA { + pub hChainEngine: HCERTCHAINENGINE, + pub pTime: PFILETIME, + pub hAdditionalStore: HCERTSTORE, + pub pChainPara: PCERT_CHAIN_PARA, + pub dwFlags: DWORD, +} +pub type CERT_SELECT_CHAIN_PARA = _CERT_SELECT_CHAIN_PARA; +pub type PCERT_SELECT_CHAIN_PARA = *mut _CERT_SELECT_CHAIN_PARA; +pub type PCCERT_SELECT_CHAIN_PARA = *const CERT_SELECT_CHAIN_PARA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERT_SELECT_CRITERIA { + pub dwType: DWORD, + pub cPara: DWORD, + pub ppPara: *mut *mut ::std::os::raw::c_void, +} +pub type CERT_SELECT_CRITERIA = _CERT_SELECT_CRITERIA; +pub type PCERT_SELECT_CRITERIA = *mut _CERT_SELECT_CRITERIA; +pub type PCCERT_SELECT_CRITERIA = *const CERT_SELECT_CRITERIA; +extern "C" { + pub fn CertSelectCertificateChains( + pSelectionContext: LPCGUID, + dwFlags: DWORD, + pChainParameters: PCCERT_SELECT_CHAIN_PARA, + cCriteria: DWORD, + rgpCriteria: PCCERT_SELECT_CRITERIA, + hStore: HCERTSTORE, + pcSelection: PDWORD, + pprgpSelection: *mut *mut PCCERT_CHAIN_CONTEXT, + ) -> BOOL; +} +extern "C" { + pub fn CertFreeCertificateChainList(prgpSelection: *mut PCCERT_CHAIN_CONTEXT); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_TIMESTAMP_REQUEST { + pub dwVersion: DWORD, + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub HashedMessage: CRYPT_DER_BLOB, + pub pszTSAPolicyId: LPSTR, + pub Nonce: CRYPT_INTEGER_BLOB, + pub fCertReq: BOOL, + pub cExtension: DWORD, + pub rgExtension: PCERT_EXTENSION, +} +pub type CRYPT_TIMESTAMP_REQUEST = _CRYPT_TIMESTAMP_REQUEST; +pub type PCRYPT_TIMESTAMP_REQUEST = *mut _CRYPT_TIMESTAMP_REQUEST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_TIMESTAMP_RESPONSE { + pub dwStatus: DWORD, + pub cFreeText: DWORD, + pub rgFreeText: *mut LPWSTR, + pub FailureInfo: CRYPT_BIT_BLOB, + pub ContentInfo: CRYPT_DER_BLOB, +} +pub type CRYPT_TIMESTAMP_RESPONSE = _CRYPT_TIMESTAMP_RESPONSE; +pub type PCRYPT_TIMESTAMP_RESPONSE = *mut _CRYPT_TIMESTAMP_RESPONSE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_TIMESTAMP_ACCURACY { + pub dwSeconds: DWORD, + pub dwMillis: DWORD, + pub dwMicros: DWORD, +} +pub type CRYPT_TIMESTAMP_ACCURACY = _CRYPT_TIMESTAMP_ACCURACY; +pub type PCRYPT_TIMESTAMP_ACCURACY = *mut _CRYPT_TIMESTAMP_ACCURACY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_TIMESTAMP_INFO { + pub dwVersion: DWORD, + pub pszTSAPolicyId: LPSTR, + pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, + pub HashedMessage: CRYPT_DER_BLOB, + pub SerialNumber: CRYPT_INTEGER_BLOB, + pub ftTime: FILETIME, + pub pvAccuracy: PCRYPT_TIMESTAMP_ACCURACY, + pub fOrdering: BOOL, + pub Nonce: CRYPT_DER_BLOB, + pub Tsa: CRYPT_DER_BLOB, + pub cExtension: DWORD, + pub rgExtension: PCERT_EXTENSION, +} +pub type CRYPT_TIMESTAMP_INFO = _CRYPT_TIMESTAMP_INFO; +pub type PCRYPT_TIMESTAMP_INFO = *mut _CRYPT_TIMESTAMP_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_TIMESTAMP_CONTEXT { + pub cbEncoded: DWORD, + pub pbEncoded: *mut BYTE, + pub pTimeStamp: PCRYPT_TIMESTAMP_INFO, +} +pub type CRYPT_TIMESTAMP_CONTEXT = _CRYPT_TIMESTAMP_CONTEXT; +pub type PCRYPT_TIMESTAMP_CONTEXT = *mut _CRYPT_TIMESTAMP_CONTEXT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_TIMESTAMP_PARA { + pub pszTSAPolicyId: LPCSTR, + pub fRequestCerts: BOOL, + pub Nonce: CRYPT_INTEGER_BLOB, + pub cExtension: DWORD, + pub rgExtension: PCERT_EXTENSION, +} +pub type CRYPT_TIMESTAMP_PARA = _CRYPT_TIMESTAMP_PARA; +pub type PCRYPT_TIMESTAMP_PARA = *mut _CRYPT_TIMESTAMP_PARA; +extern "C" { + pub fn CryptRetrieveTimeStamp( + wszUrl: LPCWSTR, + dwRetrievalFlags: DWORD, + dwTimeout: DWORD, + pszHashId: LPCSTR, + pPara: *const CRYPT_TIMESTAMP_PARA, + pbData: *const BYTE, + cbData: DWORD, + ppTsContext: *mut PCRYPT_TIMESTAMP_CONTEXT, + ppTsSigner: *mut PCCERT_CONTEXT, + phStore: *mut HCERTSTORE, + ) -> BOOL; +} +extern "C" { + pub fn CryptVerifyTimeStampSignature( + pbTSContentInfo: *const BYTE, + cbTSContentInfo: DWORD, + pbData: *const BYTE, + cbData: DWORD, + hAdditionalStore: HCERTSTORE, + ppTsContext: *mut PCRYPT_TIMESTAMP_CONTEXT, + ppTsSigner: *mut PCCERT_CONTEXT, + phStore: *mut HCERTSTORE, + ) -> BOOL; +} +pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FLUSH = ::std::option::Option< + unsafe extern "C" fn( + pContext: LPVOID, + rgIdentifierOrNameList: *mut PCERT_NAME_BLOB, + dwIdentifierOrNameListCount: DWORD, + ) -> BOOL, +>; +pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_GET = ::std::option::Option< + unsafe extern "C" fn( + pPluginContext: LPVOID, + pIdentifier: PCRYPT_DATA_BLOB, + dwNameType: DWORD, + pNameBlob: PCERT_NAME_BLOB, + ppbContent: *mut PBYTE, + pcbContent: *mut DWORD, + ppwszPassword: *mut PCWSTR, + ppIdentifier: *mut PCRYPT_DATA_BLOB, + ) -> BOOL, +>; +pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_RELEASE = + ::std::option::Option; +pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_PASSWORD = + ::std::option::Option; +pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE = + ::std::option::Option; +pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_IDENTIFIER = ::std::option::Option< + unsafe extern "C" fn(pPluginContext: LPVOID, pIdentifier: PCRYPT_DATA_BLOB), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPT_OBJECT_LOCATOR_PROVIDER_TABLE { + pub cbSize: DWORD, + pub pfnGet: PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_GET, + pub pfnRelease: PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_RELEASE, + pub pfnFreePassword: PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_PASSWORD, + pub pfnFree: PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE, + pub pfnFreeIdentifier: PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_IDENTIFIER, +} +pub type CRYPT_OBJECT_LOCATOR_PROVIDER_TABLE = _CRYPT_OBJECT_LOCATOR_PROVIDER_TABLE; +pub type PCRYPT_OBJECT_LOCATOR_PROVIDER_TABLE = *mut _CRYPT_OBJECT_LOCATOR_PROVIDER_TABLE; +pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_INITIALIZE = ::std::option::Option< + unsafe extern "C" fn( + pfnFlush: PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FLUSH, + pContext: LPVOID, + pdwExpectedObjectCount: *mut DWORD, + ppFuncTable: *mut PCRYPT_OBJECT_LOCATOR_PROVIDER_TABLE, + ppPluginContext: *mut *mut ::std::os::raw::c_void, + ) -> BOOL, +>; +extern "C" { + pub fn CertIsWeakHash( + dwHashUseType: DWORD, + pwszCNGHashAlgid: LPCWSTR, + dwChainFlags: DWORD, + pSignerChainContext: PCCERT_CHAIN_CONTEXT, + pTimeStamp: LPFILETIME, + pwszFileName: LPCWSTR, + ) -> BOOL; +} +pub type PFN_CERT_IS_WEAK_HASH = ::std::option::Option< + unsafe extern "C" fn( + dwHashUseType: DWORD, + pwszCNGHashAlgid: LPCWSTR, + dwChainFlags: DWORD, + pSignerChainContext: PCCERT_CHAIN_CONTEXT, + pTimeStamp: LPFILETIME, + pwszFileName: LPCWSTR, + ) -> BOOL, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRYPTPROTECT_PROMPTSTRUCT { + pub cbSize: DWORD, + pub dwPromptFlags: DWORD, + pub hwndApp: HWND, + pub szPrompt: LPCWSTR, +} +pub type CRYPTPROTECT_PROMPTSTRUCT = _CRYPTPROTECT_PROMPTSTRUCT; +pub type PCRYPTPROTECT_PROMPTSTRUCT = *mut _CRYPTPROTECT_PROMPTSTRUCT; +extern "C" { + pub fn CryptProtectData( + pDataIn: *mut DATA_BLOB, + szDataDescr: LPCWSTR, + pOptionalEntropy: *mut DATA_BLOB, + pvReserved: PVOID, + pPromptStruct: *mut CRYPTPROTECT_PROMPTSTRUCT, + dwFlags: DWORD, + pDataOut: *mut DATA_BLOB, + ) -> BOOL; +} +extern "C" { + pub fn CryptUnprotectData( + pDataIn: *mut DATA_BLOB, + ppszDataDescr: *mut LPWSTR, + pOptionalEntropy: *mut DATA_BLOB, + pvReserved: PVOID, + pPromptStruct: *mut CRYPTPROTECT_PROMPTSTRUCT, + dwFlags: DWORD, + pDataOut: *mut DATA_BLOB, + ) -> BOOL; +} +extern "C" { + pub fn CryptProtectDataNoUI( + pDataIn: *mut DATA_BLOB, + szDataDescr: LPCWSTR, + pOptionalEntropy: *mut DATA_BLOB, + pvReserved: PVOID, + pPromptStruct: *mut CRYPTPROTECT_PROMPTSTRUCT, + dwFlags: DWORD, + pbOptionalPassword: *const BYTE, + cbOptionalPassword: DWORD, + pDataOut: *mut DATA_BLOB, + ) -> BOOL; +} +extern "C" { + pub fn CryptUnprotectDataNoUI( + pDataIn: *mut DATA_BLOB, + ppszDataDescr: *mut LPWSTR, + pOptionalEntropy: *mut DATA_BLOB, + pvReserved: PVOID, + pPromptStruct: *mut CRYPTPROTECT_PROMPTSTRUCT, + dwFlags: DWORD, + pbOptionalPassword: *const BYTE, + cbOptionalPassword: DWORD, + pDataOut: *mut DATA_BLOB, + ) -> BOOL; +} +extern "C" { + pub fn CryptUpdateProtectedState( + pOldSid: PSID, + pwszOldPassword: LPCWSTR, + dwFlags: DWORD, + pdwSuccessCount: *mut DWORD, + pdwFailureCount: *mut DWORD, + ) -> BOOL; +} +extern "C" { + pub fn CryptProtectMemory(pDataIn: LPVOID, cbDataIn: DWORD, dwFlags: DWORD) -> BOOL; +} +extern "C" { + pub fn CryptUnprotectMemory(pDataIn: LPVOID, cbDataIn: DWORD, dwFlags: DWORD) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CERTIFICATE_BLOB { + pub dwCertEncodingType: DWORD, + pub cbData: DWORD, + pub pbData: PBYTE, +} +pub type EFS_CERTIFICATE_BLOB = _CERTIFICATE_BLOB; +pub type PEFS_CERTIFICATE_BLOB = *mut _CERTIFICATE_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EFS_HASH_BLOB { + pub cbData: DWORD, + pub pbData: PBYTE, +} +pub type EFS_HASH_BLOB = _EFS_HASH_BLOB; +pub type PEFS_HASH_BLOB = *mut _EFS_HASH_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EFS_RPC_BLOB { + pub cbData: DWORD, + pub pbData: PBYTE, +} +pub type EFS_RPC_BLOB = _EFS_RPC_BLOB; +pub type PEFS_RPC_BLOB = *mut _EFS_RPC_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EFS_PIN_BLOB { + pub cbPadding: DWORD, + pub cbData: DWORD, + pub pbData: PBYTE, +} +pub type EFS_PIN_BLOB = _EFS_PIN_BLOB; +pub type PEFS_PIN_BLOB = *mut _EFS_PIN_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EFS_KEY_INFO { + pub dwVersion: DWORD, + pub Entropy: ULONG, + pub Algorithm: ALG_ID, + pub KeyLength: ULONG, +} +pub type EFS_KEY_INFO = _EFS_KEY_INFO; +pub type PEFS_KEY_INFO = *mut _EFS_KEY_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EFS_COMPATIBILITY_INFO { + pub EfsVersion: DWORD, +} +pub type EFS_COMPATIBILITY_INFO = _EFS_COMPATIBILITY_INFO; +pub type PEFS_COMPATIBILITY_INFO = *mut _EFS_COMPATIBILITY_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EFS_VERSION_INFO { + pub EfsVersion: DWORD, + pub SubVersion: DWORD, +} +pub type EFS_VERSION_INFO = _EFS_VERSION_INFO; +pub type PEFS_VERSION_INFO = *mut _EFS_VERSION_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EFS_DECRYPTION_STATUS_INFO { + pub dwDecryptionError: DWORD, + pub dwHashOffset: DWORD, + pub cbHash: DWORD, +} +pub type EFS_DECRYPTION_STATUS_INFO = _EFS_DECRYPTION_STATUS_INFO; +pub type PEFS_DECRYPTION_STATUS_INFO = *mut _EFS_DECRYPTION_STATUS_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EFS_ENCRYPTION_STATUS_INFO { + pub bHasCurrentKey: BOOL, + pub dwEncryptionError: DWORD, +} +pub type EFS_ENCRYPTION_STATUS_INFO = _EFS_ENCRYPTION_STATUS_INFO; +pub type PEFS_ENCRYPTION_STATUS_INFO = *mut _EFS_ENCRYPTION_STATUS_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCRYPTION_CERTIFICATE { + pub cbTotalLength: DWORD, + pub pUserSid: *mut SID, + pub pCertBlob: PEFS_CERTIFICATE_BLOB, +} +pub type ENCRYPTION_CERTIFICATE = _ENCRYPTION_CERTIFICATE; +pub type PENCRYPTION_CERTIFICATE = *mut _ENCRYPTION_CERTIFICATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCRYPTION_CERTIFICATE_HASH { + pub cbTotalLength: DWORD, + pub pUserSid: *mut SID, + pub pHash: PEFS_HASH_BLOB, + pub lpDisplayInformation: LPWSTR, +} +pub type ENCRYPTION_CERTIFICATE_HASH = _ENCRYPTION_CERTIFICATE_HASH; +pub type PENCRYPTION_CERTIFICATE_HASH = *mut _ENCRYPTION_CERTIFICATE_HASH; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCRYPTION_CERTIFICATE_HASH_LIST { + pub nCert_Hash: DWORD, + pub pUsers: *mut PENCRYPTION_CERTIFICATE_HASH, +} +pub type ENCRYPTION_CERTIFICATE_HASH_LIST = _ENCRYPTION_CERTIFICATE_HASH_LIST; +pub type PENCRYPTION_CERTIFICATE_HASH_LIST = *mut _ENCRYPTION_CERTIFICATE_HASH_LIST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCRYPTION_CERTIFICATE_LIST { + pub nUsers: DWORD, + pub pUsers: *mut PENCRYPTION_CERTIFICATE, +} +pub type ENCRYPTION_CERTIFICATE_LIST = _ENCRYPTION_CERTIFICATE_LIST; +pub type PENCRYPTION_CERTIFICATE_LIST = *mut _ENCRYPTION_CERTIFICATE_LIST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCRYPTED_FILE_METADATA_SIGNATURE { + pub dwEfsAccessType: DWORD, + pub pCertificatesAdded: PENCRYPTION_CERTIFICATE_HASH_LIST, + pub pEncryptionCertificate: PENCRYPTION_CERTIFICATE, + pub pEfsStreamSignature: PEFS_RPC_BLOB, +} +pub type ENCRYPTED_FILE_METADATA_SIGNATURE = _ENCRYPTED_FILE_METADATA_SIGNATURE; +pub type PENCRYPTED_FILE_METADATA_SIGNATURE = *mut _ENCRYPTED_FILE_METADATA_SIGNATURE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCRYPTION_PROTECTOR { + pub cbTotalLength: DWORD, + pub pUserSid: *mut SID, + pub lpProtectorDescriptor: LPWSTR, +} +pub type ENCRYPTION_PROTECTOR = _ENCRYPTION_PROTECTOR; +pub type PENCRYPTION_PROTECTOR = *mut _ENCRYPTION_PROTECTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCRYPTION_PROTECTOR_LIST { + pub nProtectors: DWORD, + pub pProtectors: *mut PENCRYPTION_PROTECTOR, +} +pub type ENCRYPTION_PROTECTOR_LIST = _ENCRYPTION_PROTECTOR_LIST; +pub type PENCRYPTION_PROTECTOR_LIST = *mut _ENCRYPTION_PROTECTOR_LIST; +extern "C" { + pub fn QueryUsersOnEncryptedFile( + lpFileName: LPCWSTR, + pUsers: *mut PENCRYPTION_CERTIFICATE_HASH_LIST, + ) -> DWORD; +} +extern "C" { + pub fn QueryRecoveryAgentsOnEncryptedFile( + lpFileName: LPCWSTR, + pRecoveryAgents: *mut PENCRYPTION_CERTIFICATE_HASH_LIST, + ) -> DWORD; +} +extern "C" { + pub fn RemoveUsersFromEncryptedFile( + lpFileName: LPCWSTR, + pHashes: PENCRYPTION_CERTIFICATE_HASH_LIST, + ) -> DWORD; +} +extern "C" { + pub fn AddUsersToEncryptedFile( + lpFileName: LPCWSTR, + pEncryptionCertificates: PENCRYPTION_CERTIFICATE_LIST, + ) -> DWORD; +} +extern "C" { + pub fn SetUserFileEncryptionKey(pEncryptionCertificate: PENCRYPTION_CERTIFICATE) -> DWORD; +} +extern "C" { + pub fn SetUserFileEncryptionKeyEx( + pEncryptionCertificate: PENCRYPTION_CERTIFICATE, + dwCapabilities: DWORD, + dwFlags: DWORD, + pvReserved: LPVOID, + ) -> DWORD; +} +extern "C" { + pub fn FreeEncryptionCertificateHashList(pUsers: PENCRYPTION_CERTIFICATE_HASH_LIST); +} +extern "C" { + pub fn EncryptionDisable(DirPath: LPCWSTR, Disable: BOOL) -> BOOL; +} +extern "C" { + pub fn DuplicateEncryptionInfoFile( + SrcFileName: LPCWSTR, + DstFileName: LPCWSTR, + dwCreationDistribution: DWORD, + dwAttributes: DWORD, + lpSecurityAttributes: LPSECURITY_ATTRIBUTES, + ) -> DWORD; +} +extern "C" { + pub fn GetEncryptedFileMetadata( + lpFileName: LPCWSTR, + pcbMetadata: PDWORD, + ppbMetadata: *mut PBYTE, + ) -> DWORD; +} +extern "C" { + pub fn SetEncryptedFileMetadata( + lpFileName: LPCWSTR, + pbOldMetadata: PBYTE, + pbNewMetadata: PBYTE, + pOwnerHash: PENCRYPTION_CERTIFICATE_HASH, + dwOperation: DWORD, + pCertificatesAdded: PENCRYPTION_CERTIFICATE_HASH_LIST, + ) -> DWORD; +} +extern "C" { + pub fn FreeEncryptedFileMetadata(pbMetadata: PBYTE); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RPC_IMPORT_CONTEXT_P { + pub LookupContext: RPC_NS_HANDLE, + pub ProposedHandle: RPC_BINDING_HANDLE, + pub Bindings: *mut RPC_BINDING_VECTOR, +} +pub type PRPC_IMPORT_CONTEXT_P = *mut RPC_IMPORT_CONTEXT_P; +extern "C" { + pub fn I_RpcNsGetBuffer(Message: PRPC_MESSAGE) -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcNsSendReceive(Message: PRPC_MESSAGE, Handle: *mut RPC_BINDING_HANDLE) + -> RPC_STATUS; +} +extern "C" { + pub fn I_RpcNsRaiseException(Message: PRPC_MESSAGE, Status: RPC_STATUS); +} +extern "C" { + pub fn I_RpcReBindBuffer(Message: PRPC_MESSAGE) -> RPC_STATUS; +} +extern "C" { + pub fn I_NsServerBindSearch() -> RPC_STATUS; +} +extern "C" { + pub fn I_NsClientBindSearch() -> RPC_STATUS; +} +extern "C" { + pub fn I_NsClientBindDone(); +} +pub type byte = ::std::os::raw::c_uchar; +pub type cs_byte = byte; +pub type boolean = ::std::os::raw::c_uchar; +extern "C" { + pub fn MIDL_user_allocate(size: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn MIDL_user_free(arg1: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn I_RpcDefaultAllocate( + bh: handle_t, + size: usize, + RealAlloc: ::std::option::Option< + unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void, + >, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn I_RpcDefaultFree( + bh: handle_t, + arg1: *mut ::std::os::raw::c_void, + RealFree: ::std::option::Option, + ); +} +pub type NDR_CCONTEXT = *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NDR_SCONTEXT { + pub pad: [*mut ::std::os::raw::c_void; 2usize], + pub userContext: *mut ::std::os::raw::c_void, +} +pub type NDR_SCONTEXT = *mut _NDR_SCONTEXT; +pub type NDR_RUNDOWN = + ::std::option::Option; +pub type NDR_NOTIFY_ROUTINE = ::std::option::Option; +pub type NDR_NOTIFY2_ROUTINE = ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCONTEXT_QUEUE { + pub NumberOfObjects: ::std::os::raw::c_ulong, + pub ArrayOfObjects: *mut NDR_SCONTEXT, +} +pub type SCONTEXT_QUEUE = _SCONTEXT_QUEUE; +pub type PSCONTEXT_QUEUE = *mut _SCONTEXT_QUEUE; +extern "C" { + pub fn NDRCContextBinding(CContext: NDR_CCONTEXT) -> RPC_BINDING_HANDLE; +} +extern "C" { + pub fn NDRCContextMarshall(CContext: NDR_CCONTEXT, pBuff: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn NDRCContextUnmarshall( + pCContext: *mut NDR_CCONTEXT, + hBinding: RPC_BINDING_HANDLE, + pBuff: *mut ::std::os::raw::c_void, + DataRepresentation: ::std::os::raw::c_ulong, + ); +} +extern "C" { + pub fn NDRCContextUnmarshall2( + pCContext: *mut NDR_CCONTEXT, + hBinding: RPC_BINDING_HANDLE, + pBuff: *mut ::std::os::raw::c_void, + DataRepresentation: ::std::os::raw::c_ulong, + ); +} +extern "C" { + pub fn NDRSContextMarshall( + CContext: NDR_SCONTEXT, + pBuff: *mut ::std::os::raw::c_void, + userRunDownIn: NDR_RUNDOWN, + ); +} +extern "C" { + pub fn NDRSContextUnmarshall( + pBuff: *mut ::std::os::raw::c_void, + DataRepresentation: ::std::os::raw::c_ulong, + ) -> NDR_SCONTEXT; +} +extern "C" { + pub fn NDRSContextMarshallEx( + BindingHandle: RPC_BINDING_HANDLE, + CContext: NDR_SCONTEXT, + pBuff: *mut ::std::os::raw::c_void, + userRunDownIn: NDR_RUNDOWN, + ); +} +extern "C" { + pub fn NDRSContextMarshall2( + BindingHandle: RPC_BINDING_HANDLE, + CContext: NDR_SCONTEXT, + pBuff: *mut ::std::os::raw::c_void, + userRunDownIn: NDR_RUNDOWN, + CtxGuard: *mut ::std::os::raw::c_void, + Flags: ::std::os::raw::c_ulong, + ); +} +extern "C" { + pub fn NDRSContextUnmarshallEx( + BindingHandle: RPC_BINDING_HANDLE, + pBuff: *mut ::std::os::raw::c_void, + DataRepresentation: ::std::os::raw::c_ulong, + ) -> NDR_SCONTEXT; +} +extern "C" { + pub fn NDRSContextUnmarshall2( + BindingHandle: RPC_BINDING_HANDLE, + pBuff: *mut ::std::os::raw::c_void, + DataRepresentation: ::std::os::raw::c_ulong, + CtxGuard: *mut ::std::os::raw::c_void, + Flags: ::std::os::raw::c_ulong, + ) -> NDR_SCONTEXT; +} +extern "C" { + pub fn RpcSsDestroyClientContext(ContextHandle: *mut *mut ::std::os::raw::c_void); +} +pub type error_status_t = ::std::os::raw::c_ulong; +pub type RPC_BUFPTR = *mut ::std::os::raw::c_uchar; +pub type RPC_LENGTH = ::std::os::raw::c_ulong; +pub type EXPR_EVAL = ::std::option::Option; +pub type PFORMAT_STRING = *const ::std::os::raw::c_uchar; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ARRAY_INFO { + pub Dimension: ::std::os::raw::c_long, + pub BufferConformanceMark: *mut ::std::os::raw::c_ulong, + pub BufferVarianceMark: *mut ::std::os::raw::c_ulong, + pub MaxCountArray: *mut ::std::os::raw::c_ulong, + pub OffsetArray: *mut ::std::os::raw::c_ulong, + pub ActualCountArray: *mut ::std::os::raw::c_ulong, +} +pub type PARRAY_INFO = *mut ARRAY_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NDR_ASYNC_MESSAGE { + _unused: [u8; 0], +} +pub type PNDR_ASYNC_MESSAGE = *mut _NDR_ASYNC_MESSAGE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NDR_CORRELATION_INFO { + _unused: [u8; 0], +} +pub type PNDR_CORRELATION_INFO = *mut _NDR_CORRELATION_INFO; +pub type MIDL_SYNTAX_INFO = _MIDL_SYNTAX_INFO; +pub type PMIDL_SYNTAX_INFO = *mut _MIDL_SYNTAX_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NDR_ALLOC_ALL_NODES_CONTEXT { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NDR_POINTER_QUEUE_STATE { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NDR_PROC_CONTEXT { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MIDL_STUB_MESSAGE { + pub RpcMsg: PRPC_MESSAGE, + pub Buffer: *mut ::std::os::raw::c_uchar, + pub BufferStart: *mut ::std::os::raw::c_uchar, + pub BufferEnd: *mut ::std::os::raw::c_uchar, + pub BufferMark: *mut ::std::os::raw::c_uchar, + pub BufferLength: ::std::os::raw::c_ulong, + pub MemorySize: ::std::os::raw::c_ulong, + pub Memory: *mut ::std::os::raw::c_uchar, + pub IsClient: ::std::os::raw::c_uchar, + pub Pad: ::std::os::raw::c_uchar, + pub uFlags2: ::std::os::raw::c_ushort, + pub ReuseBuffer: ::std::os::raw::c_int, + pub pAllocAllNodesContext: *mut NDR_ALLOC_ALL_NODES_CONTEXT, + pub pPointerQueueState: *mut NDR_POINTER_QUEUE_STATE, + pub IgnoreEmbeddedPointers: ::std::os::raw::c_int, + pub PointerBufferMark: *mut ::std::os::raw::c_uchar, + pub CorrDespIncrement: ::std::os::raw::c_uchar, + pub uFlags: ::std::os::raw::c_uchar, + pub UniquePtrCount: ::std::os::raw::c_ushort, + pub MaxCount: ULONG_PTR, + pub Offset: ::std::os::raw::c_ulong, + pub ActualCount: ::std::os::raw::c_ulong, + pub pfnAllocate: + ::std::option::Option *mut ::std::os::raw::c_void>, + pub pfnFree: ::std::option::Option, + pub StackTop: *mut ::std::os::raw::c_uchar, + pub pPresentedType: *mut ::std::os::raw::c_uchar, + pub pTransmitType: *mut ::std::os::raw::c_uchar, + pub SavedHandle: handle_t, + pub StubDesc: *const _MIDL_STUB_DESC, + pub FullPtrXlatTables: *mut _FULL_PTR_XLAT_TABLES, + pub FullPtrRefId: ::std::os::raw::c_ulong, + pub PointerLength: ::std::os::raw::c_ulong, + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub dwDestContext: ::std::os::raw::c_ulong, + pub pvDestContext: *mut ::std::os::raw::c_void, + pub SavedContextHandles: *mut NDR_SCONTEXT, + pub ParamNumber: ::std::os::raw::c_long, + pub pRpcChannelBuffer: *mut IRpcChannelBuffer, + pub pArrayInfo: PARRAY_INFO, + pub SizePtrCountArray: *mut ::std::os::raw::c_ulong, + pub SizePtrOffsetArray: *mut ::std::os::raw::c_ulong, + pub SizePtrLengthArray: *mut ::std::os::raw::c_ulong, + pub pArgQueue: *mut ::std::os::raw::c_void, + pub dwStubPhase: ::std::os::raw::c_ulong, + pub LowStackMark: *mut ::std::os::raw::c_void, + pub pAsyncMsg: PNDR_ASYNC_MESSAGE, + pub pCorrInfo: PNDR_CORRELATION_INFO, + pub pCorrMemory: *mut ::std::os::raw::c_uchar, + pub pMemoryList: *mut ::std::os::raw::c_void, + pub pCSInfo: INT_PTR, + pub ConformanceMark: *mut ::std::os::raw::c_uchar, + pub VarianceMark: *mut ::std::os::raw::c_uchar, + pub Unused: INT_PTR, + pub pContext: *mut _NDR_PROC_CONTEXT, + pub ContextHandleHash: *mut ::std::os::raw::c_void, + pub pUserMarshalList: *mut ::std::os::raw::c_void, + pub Reserved51_3: INT_PTR, + pub Reserved51_4: INT_PTR, + pub Reserved51_5: INT_PTR, +} +impl _MIDL_STUB_MESSAGE { + #[inline] + pub fn fInDontFree(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_fInDontFree(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn fDontCallFreeInst(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_fDontCallFreeInst(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn fUnused1(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_fUnused1(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn fHasReturn(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_fHasReturn(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) + } + } + #[inline] + pub fn fHasExtensions(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } + } + #[inline] + pub fn set_fHasExtensions(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn fHasNewCorrDesc(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } + } + #[inline] + pub fn set_fHasNewCorrDesc(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 1u8, val as u64) + } + } + #[inline] + pub fn fIsIn(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } + } + #[inline] + pub fn set_fIsIn(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(6usize, 1u8, val as u64) + } + } + #[inline] + pub fn fIsOut(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } + } + #[inline] + pub fn set_fIsOut(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(7usize, 1u8, val as u64) + } + } + #[inline] + pub fn fIsOicf(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) } + } + #[inline] + pub fn set_fIsOicf(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 1u8, val as u64) + } + } + #[inline] + pub fn fBufferValid(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) } + } + #[inline] + pub fn set_fBufferValid(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(9usize, 1u8, val as u64) + } + } + #[inline] + pub fn fHasMemoryValidateCallback(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) } + } + #[inline] + pub fn set_fHasMemoryValidateCallback(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(10usize, 1u8, val as u64) + } + } + #[inline] + pub fn fInFree(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) } + } + #[inline] + pub fn set_fInFree(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(11usize, 1u8, val as u64) + } + } + #[inline] + pub fn fNeedMCCP(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) } + } + #[inline] + pub fn set_fNeedMCCP(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(12usize, 1u8, val as u64) + } + } + #[inline] + pub fn fUnused2(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 3u8) as u32) } + } + #[inline] + pub fn set_fUnused2(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(13usize, 3u8, val as u64) + } + } + #[inline] + pub fn fUnused3(&self) -> ::std::os::raw::c_int { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } + } + #[inline] + pub fn set_fUnused3(&mut self, val: ::std::os::raw::c_int) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 16u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + fInDontFree: ::std::os::raw::c_int, + fDontCallFreeInst: ::std::os::raw::c_int, + fUnused1: ::std::os::raw::c_int, + fHasReturn: ::std::os::raw::c_int, + fHasExtensions: ::std::os::raw::c_int, + fHasNewCorrDesc: ::std::os::raw::c_int, + fIsIn: ::std::os::raw::c_int, + fIsOut: ::std::os::raw::c_int, + fIsOicf: ::std::os::raw::c_int, + fBufferValid: ::std::os::raw::c_int, + fHasMemoryValidateCallback: ::std::os::raw::c_int, + fInFree: ::std::os::raw::c_int, + fNeedMCCP: ::std::os::raw::c_int, + fUnused2: ::std::os::raw::c_int, + fUnused3: ::std::os::raw::c_int, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let fInDontFree: u32 = unsafe { ::std::mem::transmute(fInDontFree) }; + fInDontFree as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let fDontCallFreeInst: u32 = unsafe { ::std::mem::transmute(fDontCallFreeInst) }; + fDontCallFreeInst as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let fUnused1: u32 = unsafe { ::std::mem::transmute(fUnused1) }; + fUnused1 as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let fHasReturn: u32 = unsafe { ::std::mem::transmute(fHasReturn) }; + fHasReturn as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let fHasExtensions: u32 = unsafe { ::std::mem::transmute(fHasExtensions) }; + fHasExtensions as u64 + }); + __bindgen_bitfield_unit.set(5usize, 1u8, { + let fHasNewCorrDesc: u32 = unsafe { ::std::mem::transmute(fHasNewCorrDesc) }; + fHasNewCorrDesc as u64 + }); + __bindgen_bitfield_unit.set(6usize, 1u8, { + let fIsIn: u32 = unsafe { ::std::mem::transmute(fIsIn) }; + fIsIn as u64 + }); + __bindgen_bitfield_unit.set(7usize, 1u8, { + let fIsOut: u32 = unsafe { ::std::mem::transmute(fIsOut) }; + fIsOut as u64 + }); + __bindgen_bitfield_unit.set(8usize, 1u8, { + let fIsOicf: u32 = unsafe { ::std::mem::transmute(fIsOicf) }; + fIsOicf as u64 + }); + __bindgen_bitfield_unit.set(9usize, 1u8, { + let fBufferValid: u32 = unsafe { ::std::mem::transmute(fBufferValid) }; + fBufferValid as u64 + }); + __bindgen_bitfield_unit.set(10usize, 1u8, { + let fHasMemoryValidateCallback: u32 = + unsafe { ::std::mem::transmute(fHasMemoryValidateCallback) }; + fHasMemoryValidateCallback as u64 + }); + __bindgen_bitfield_unit.set(11usize, 1u8, { + let fInFree: u32 = unsafe { ::std::mem::transmute(fInFree) }; + fInFree as u64 + }); + __bindgen_bitfield_unit.set(12usize, 1u8, { + let fNeedMCCP: u32 = unsafe { ::std::mem::transmute(fNeedMCCP) }; + fNeedMCCP as u64 + }); + __bindgen_bitfield_unit.set(13usize, 3u8, { + let fUnused2: u32 = unsafe { ::std::mem::transmute(fUnused2) }; + fUnused2 as u64 + }); + __bindgen_bitfield_unit.set(16usize, 16u8, { + let fUnused3: u32 = unsafe { ::std::mem::transmute(fUnused3) }; + fUnused3 as u64 + }); + __bindgen_bitfield_unit + } +} +pub type MIDL_STUB_MESSAGE = _MIDL_STUB_MESSAGE; +pub type PMIDL_STUB_MESSAGE = *mut _MIDL_STUB_MESSAGE; +pub type GENERIC_BINDING_ROUTINE = ::std::option::Option< + unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, +>; +pub type GENERIC_UNBIND_ROUTINE = ::std::option::Option< + unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: *mut ::std::os::raw::c_uchar), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _GENERIC_BINDING_ROUTINE_PAIR { + pub pfnBind: GENERIC_BINDING_ROUTINE, + pub pfnUnbind: GENERIC_UNBIND_ROUTINE, +} +pub type GENERIC_BINDING_ROUTINE_PAIR = _GENERIC_BINDING_ROUTINE_PAIR; +pub type PGENERIC_BINDING_ROUTINE_PAIR = *mut _GENERIC_BINDING_ROUTINE_PAIR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __GENERIC_BINDING_INFO { + pub pObj: *mut ::std::os::raw::c_void, + pub Size: ::std::os::raw::c_uint, + pub pfnBind: GENERIC_BINDING_ROUTINE, + pub pfnUnbind: GENERIC_UNBIND_ROUTINE, +} +pub type GENERIC_BINDING_INFO = __GENERIC_BINDING_INFO; +pub type PGENERIC_BINDING_INFO = *mut __GENERIC_BINDING_INFO; +pub type XMIT_HELPER_ROUTINE = + ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _XMIT_ROUTINE_QUINTUPLE { + pub pfnTranslateToXmit: XMIT_HELPER_ROUTINE, + pub pfnTranslateFromXmit: XMIT_HELPER_ROUTINE, + pub pfnFreeXmit: XMIT_HELPER_ROUTINE, + pub pfnFreeInst: XMIT_HELPER_ROUTINE, +} +pub type XMIT_ROUTINE_QUINTUPLE = _XMIT_ROUTINE_QUINTUPLE; +pub type PXMIT_ROUTINE_QUINTUPLE = *mut _XMIT_ROUTINE_QUINTUPLE; +pub type USER_MARSHAL_SIZING_ROUTINE = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_ulong, +>; +pub type USER_MARSHAL_MARSHALLING_ROUTINE = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_uchar, +>; +pub type USER_MARSHAL_UNMARSHALLING_ROUTINE = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_uchar, +>; +pub type USER_MARSHAL_FREEING_ROUTINE = ::std::option::Option< + unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut ::std::os::raw::c_void), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _USER_MARSHAL_ROUTINE_QUADRUPLE { + pub pfnBufferSize: USER_MARSHAL_SIZING_ROUTINE, + pub pfnMarshall: USER_MARSHAL_MARSHALLING_ROUTINE, + pub pfnUnmarshall: USER_MARSHAL_UNMARSHALLING_ROUTINE, + pub pfnFree: USER_MARSHAL_FREEING_ROUTINE, +} +pub type USER_MARSHAL_ROUTINE_QUADRUPLE = _USER_MARSHAL_ROUTINE_QUADRUPLE; +pub const _USER_MARSHAL_CB_TYPE_USER_MARSHAL_CB_BUFFER_SIZE: _USER_MARSHAL_CB_TYPE = 0; +pub const _USER_MARSHAL_CB_TYPE_USER_MARSHAL_CB_MARSHALL: _USER_MARSHAL_CB_TYPE = 1; +pub const _USER_MARSHAL_CB_TYPE_USER_MARSHAL_CB_UNMARSHALL: _USER_MARSHAL_CB_TYPE = 2; +pub const _USER_MARSHAL_CB_TYPE_USER_MARSHAL_CB_FREE: _USER_MARSHAL_CB_TYPE = 3; +pub type _USER_MARSHAL_CB_TYPE = ::std::os::raw::c_int; +pub use self::_USER_MARSHAL_CB_TYPE as USER_MARSHAL_CB_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _USER_MARSHAL_CB { + pub Flags: ::std::os::raw::c_ulong, + pub pStubMsg: PMIDL_STUB_MESSAGE, + pub pReserve: PFORMAT_STRING, + pub Signature: ::std::os::raw::c_ulong, + pub CBType: USER_MARSHAL_CB_TYPE, + pub pFormat: PFORMAT_STRING, + pub pTypeFormat: PFORMAT_STRING, +} +pub type USER_MARSHAL_CB = _USER_MARSHAL_CB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MALLOC_FREE_STRUCT { + pub pfnAllocate: + ::std::option::Option *mut ::std::os::raw::c_void>, + pub pfnFree: ::std::option::Option, +} +pub type MALLOC_FREE_STRUCT = _MALLOC_FREE_STRUCT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _COMM_FAULT_OFFSETS { + pub CommOffset: ::std::os::raw::c_short, + pub FaultOffset: ::std::os::raw::c_short, +} +pub type COMM_FAULT_OFFSETS = _COMM_FAULT_OFFSETS; +pub const _IDL_CS_CONVERT_IDL_CS_NO_CONVERT: _IDL_CS_CONVERT = 0; +pub const _IDL_CS_CONVERT_IDL_CS_IN_PLACE_CONVERT: _IDL_CS_CONVERT = 1; +pub const _IDL_CS_CONVERT_IDL_CS_NEW_BUFFER_CONVERT: _IDL_CS_CONVERT = 2; +pub type _IDL_CS_CONVERT = ::std::os::raw::c_int; +pub use self::_IDL_CS_CONVERT as IDL_CS_CONVERT; +pub type CS_TYPE_NET_SIZE_ROUTINE = ::std::option::Option< + unsafe extern "C" fn( + hBinding: RPC_BINDING_HANDLE, + ulNetworkCodeSet: ::std::os::raw::c_ulong, + ulLocalBufferSize: ::std::os::raw::c_ulong, + conversionType: *mut IDL_CS_CONVERT, + pulNetworkBufferSize: *mut ::std::os::raw::c_ulong, + pStatus: *mut error_status_t, + ), +>; +pub type CS_TYPE_LOCAL_SIZE_ROUTINE = ::std::option::Option< + unsafe extern "C" fn( + hBinding: RPC_BINDING_HANDLE, + ulNetworkCodeSet: ::std::os::raw::c_ulong, + ulNetworkBufferSize: ::std::os::raw::c_ulong, + conversionType: *mut IDL_CS_CONVERT, + pulLocalBufferSize: *mut ::std::os::raw::c_ulong, + pStatus: *mut error_status_t, + ), +>; +pub type CS_TYPE_TO_NETCS_ROUTINE = ::std::option::Option< + unsafe extern "C" fn( + hBinding: RPC_BINDING_HANDLE, + ulNetworkCodeSet: ::std::os::raw::c_ulong, + pLocalData: *mut ::std::os::raw::c_void, + ulLocalDataLength: ::std::os::raw::c_ulong, + pNetworkData: *mut byte, + pulNetworkDataLength: *mut ::std::os::raw::c_ulong, + pStatus: *mut error_status_t, + ), +>; +pub type CS_TYPE_FROM_NETCS_ROUTINE = ::std::option::Option< + unsafe extern "C" fn( + hBinding: RPC_BINDING_HANDLE, + ulNetworkCodeSet: ::std::os::raw::c_ulong, + pNetworkData: *mut byte, + ulNetworkDataLength: ::std::os::raw::c_ulong, + ulLocalBufferSize: ::std::os::raw::c_ulong, + pLocalData: *mut ::std::os::raw::c_void, + pulLocalDataLength: *mut ::std::os::raw::c_ulong, + pStatus: *mut error_status_t, + ), +>; +pub type CS_TAG_GETTING_ROUTINE = ::std::option::Option< + unsafe extern "C" fn( + hBinding: RPC_BINDING_HANDLE, + fServerSide: ::std::os::raw::c_int, + pulSendingTag: *mut ::std::os::raw::c_ulong, + pulDesiredReceivingTag: *mut ::std::os::raw::c_ulong, + pulReceivingTag: *mut ::std::os::raw::c_ulong, + pStatus: *mut error_status_t, + ), +>; +extern "C" { + pub fn RpcCsGetTags( + hBinding: RPC_BINDING_HANDLE, + fServerSide: ::std::os::raw::c_int, + pulSendingTag: *mut ::std::os::raw::c_ulong, + pulDesiredReceivingTag: *mut ::std::os::raw::c_ulong, + pulReceivingTag: *mut ::std::os::raw::c_ulong, + pStatus: *mut error_status_t, + ); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NDR_CS_SIZE_CONVERT_ROUTINES { + pub pfnNetSize: CS_TYPE_NET_SIZE_ROUTINE, + pub pfnToNetCs: CS_TYPE_TO_NETCS_ROUTINE, + pub pfnLocalSize: CS_TYPE_LOCAL_SIZE_ROUTINE, + pub pfnFromNetCs: CS_TYPE_FROM_NETCS_ROUTINE, +} +pub type NDR_CS_SIZE_CONVERT_ROUTINES = _NDR_CS_SIZE_CONVERT_ROUTINES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NDR_CS_ROUTINES { + pub pSizeConvertRoutines: *mut NDR_CS_SIZE_CONVERT_ROUTINES, + pub pTagGettingRoutines: *mut CS_TAG_GETTING_ROUTINE, +} +pub type NDR_CS_ROUTINES = _NDR_CS_ROUTINES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NDR_EXPR_DESC { + pub pOffset: *const ::std::os::raw::c_ushort, + pub pFormatExpr: PFORMAT_STRING, +} +pub type NDR_EXPR_DESC = _NDR_EXPR_DESC; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _MIDL_STUB_DESC { + pub RpcInterfaceInformation: *mut ::std::os::raw::c_void, + pub pfnAllocate: + ::std::option::Option *mut ::std::os::raw::c_void>, + pub pfnFree: ::std::option::Option, + pub IMPLICIT_HANDLE_INFO: _MIDL_STUB_DESC__bindgen_ty_1, + pub apfnNdrRundownRoutines: *const NDR_RUNDOWN, + pub aGenericBindingRoutinePairs: *const GENERIC_BINDING_ROUTINE_PAIR, + pub apfnExprEval: *const EXPR_EVAL, + pub aXmitQuintuple: *const XMIT_ROUTINE_QUINTUPLE, + pub pFormatTypes: *const ::std::os::raw::c_uchar, + pub fCheckBounds: ::std::os::raw::c_int, + pub Version: ::std::os::raw::c_ulong, + pub pMallocFreeStruct: *mut MALLOC_FREE_STRUCT, + pub MIDLVersion: ::std::os::raw::c_long, + pub CommFaultOffsets: *const COMM_FAULT_OFFSETS, + pub aUserMarshalQuadruple: *const USER_MARSHAL_ROUTINE_QUADRUPLE, + pub NotifyRoutineTable: *const NDR_NOTIFY_ROUTINE, + pub mFlags: ULONG_PTR, + pub CsRoutineTables: *const NDR_CS_ROUTINES, + pub ProxyServerInfo: *mut ::std::os::raw::c_void, + pub pExprInfo: *const NDR_EXPR_DESC, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _MIDL_STUB_DESC__bindgen_ty_1 { + pub pAutoHandle: *mut handle_t, + pub pPrimitiveHandle: *mut handle_t, + pub pGenericBindingInfo: PGENERIC_BINDING_INFO, +} +pub type MIDL_STUB_DESC = _MIDL_STUB_DESC; +pub type PMIDL_STUB_DESC = *const MIDL_STUB_DESC; +pub type PMIDL_XMIT_TYPE = *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug)] +pub struct _MIDL_FORMAT_STRING { + pub Pad: ::std::os::raw::c_short, + pub Format: __IncompleteArrayField<::std::os::raw::c_uchar>, +} +pub type MIDL_FORMAT_STRING = _MIDL_FORMAT_STRING; +pub type STUB_THUNK = ::std::option::Option; +pub type SERVER_ROUTINE = ::std::option::Option ::std::os::raw::c_long>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MIDL_METHOD_PROPERTY { + pub Id: ::std::os::raw::c_ulong, + pub Value: ULONG_PTR, +} +pub type MIDL_METHOD_PROPERTY = _MIDL_METHOD_PROPERTY; +pub type PMIDL_METHOD_PROPERTY = *mut _MIDL_METHOD_PROPERTY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MIDL_METHOD_PROPERTY_MAP { + pub Count: ::std::os::raw::c_ulong, + pub Properties: *const MIDL_METHOD_PROPERTY, +} +pub type MIDL_METHOD_PROPERTY_MAP = _MIDL_METHOD_PROPERTY_MAP; +pub type PMIDL_METHOD_PROPERTY_MAP = *mut _MIDL_METHOD_PROPERTY_MAP; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MIDL_INTERFACE_METHOD_PROPERTIES { + pub MethodCount: ::std::os::raw::c_ushort, + pub MethodProperties: *const *const MIDL_METHOD_PROPERTY_MAP, +} +pub type MIDL_INTERFACE_METHOD_PROPERTIES = _MIDL_INTERFACE_METHOD_PROPERTIES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MIDL_SERVER_INFO_ { + pub pStubDesc: PMIDL_STUB_DESC, + pub DispatchTable: *const SERVER_ROUTINE, + pub ProcString: PFORMAT_STRING, + pub FmtStringOffset: *const ::std::os::raw::c_ushort, + pub ThunkTable: *const STUB_THUNK, + pub pTransferSyntax: PRPC_SYNTAX_IDENTIFIER, + pub nCount: ULONG_PTR, + pub pSyntaxInfo: PMIDL_SYNTAX_INFO, +} +pub type MIDL_SERVER_INFO = _MIDL_SERVER_INFO_; +pub type PMIDL_SERVER_INFO = *mut _MIDL_SERVER_INFO_; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MIDL_STUBLESS_PROXY_INFO { + pub pStubDesc: PMIDL_STUB_DESC, + pub ProcFormatString: PFORMAT_STRING, + pub FormatStringOffset: *const ::std::os::raw::c_ushort, + pub pTransferSyntax: PRPC_SYNTAX_IDENTIFIER, + pub nCount: ULONG_PTR, + pub pSyntaxInfo: PMIDL_SYNTAX_INFO, +} +pub type MIDL_STUBLESS_PROXY_INFO = _MIDL_STUBLESS_PROXY_INFO; +pub type PMIDL_STUBLESS_PROXY_INFO = *mut MIDL_STUBLESS_PROXY_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MIDL_SYNTAX_INFO { + pub TransferSyntax: RPC_SYNTAX_IDENTIFIER, + pub DispatchTable: *mut RPC_DISPATCH_TABLE, + pub ProcString: PFORMAT_STRING, + pub FmtStringOffset: *const ::std::os::raw::c_ushort, + pub TypeString: PFORMAT_STRING, + pub aUserMarshalQuadruple: *const ::std::os::raw::c_void, + pub pMethodProperties: *const MIDL_INTERFACE_METHOD_PROPERTIES, + pub pReserved2: ULONG_PTR, +} +pub type PARAM_OFFSETTABLE = *mut ::std::os::raw::c_ushort; +pub type PPARAM_OFFSETTABLE = *mut ::std::os::raw::c_ushort; +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CLIENT_CALL_RETURN { + pub Pointer: *mut ::std::os::raw::c_void, + pub Simple: LONG_PTR, +} +pub type CLIENT_CALL_RETURN = _CLIENT_CALL_RETURN; +pub const XLAT_SIDE_XLAT_SERVER: XLAT_SIDE = 1; +pub const XLAT_SIDE_XLAT_CLIENT: XLAT_SIDE = 2; +pub type XLAT_SIDE = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FULL_PTR_XLAT_TABLES { + pub RefIdToPointer: *mut ::std::os::raw::c_void, + pub PointerToRefId: *mut ::std::os::raw::c_void, + pub NextRefId: ::std::os::raw::c_ulong, + pub XlatSide: XLAT_SIDE, +} +pub type FULL_PTR_XLAT_TABLES = _FULL_PTR_XLAT_TABLES; +pub type PFULL_PTR_XLAT_TABLES = *mut _FULL_PTR_XLAT_TABLES; +pub const _system_handle_t_SYSTEM_HANDLE_FILE: _system_handle_t = 0; +pub const _system_handle_t_SYSTEM_HANDLE_SEMAPHORE: _system_handle_t = 1; +pub const _system_handle_t_SYSTEM_HANDLE_EVENT: _system_handle_t = 2; +pub const _system_handle_t_SYSTEM_HANDLE_MUTEX: _system_handle_t = 3; +pub const _system_handle_t_SYSTEM_HANDLE_PROCESS: _system_handle_t = 4; +pub const _system_handle_t_SYSTEM_HANDLE_TOKEN: _system_handle_t = 5; +pub const _system_handle_t_SYSTEM_HANDLE_SECTION: _system_handle_t = 6; +pub const _system_handle_t_SYSTEM_HANDLE_REG_KEY: _system_handle_t = 7; +pub const _system_handle_t_SYSTEM_HANDLE_THREAD: _system_handle_t = 8; +pub const _system_handle_t_SYSTEM_HANDLE_COMPOSITION_OBJECT: _system_handle_t = 9; +pub const _system_handle_t_SYSTEM_HANDLE_SOCKET: _system_handle_t = 10; +pub const _system_handle_t_SYSTEM_HANDLE_JOB: _system_handle_t = 11; +pub const _system_handle_t_SYSTEM_HANDLE_PIPE: _system_handle_t = 12; +pub const _system_handle_t_SYSTEM_HANDLE_MAX: _system_handle_t = 12; +pub const _system_handle_t_SYSTEM_HANDLE_INVALID: _system_handle_t = 255; +pub type _system_handle_t = ::std::os::raw::c_int; +pub use self::_system_handle_t as system_handle_t; +pub const MidlInterceptionInfoVersionOne: _bindgen_ty_2 = 1; +pub type _bindgen_ty_2 = ::std::os::raw::c_int; +pub const MidlWinrtTypeSerializationInfoVersionOne: _bindgen_ty_3 = 1; +pub type _bindgen_ty_3 = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MIDL_INTERCEPTION_INFO { + pub Version: ::std::os::raw::c_ulong, + pub ProcString: PFORMAT_STRING, + pub ProcFormatOffsetTable: *const ::std::os::raw::c_ushort, + pub ProcCount: ::std::os::raw::c_ulong, + pub TypeString: PFORMAT_STRING, +} +pub type MIDL_INTERCEPTION_INFO = _MIDL_INTERCEPTION_INFO; +pub type PMIDL_INTERCEPTION_INFO = *mut _MIDL_INTERCEPTION_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MIDL_WINRT_TYPE_SERIALIZATION_INFO { + pub Version: ::std::os::raw::c_ulong, + pub TypeFormatString: PFORMAT_STRING, + pub FormatStringSize: ::std::os::raw::c_ushort, + pub TypeOffset: ::std::os::raw::c_ushort, + pub StubDesc: PMIDL_STUB_DESC, +} +pub type MIDL_WINRT_TYPE_SERIALIZATION_INFO = _MIDL_WINRT_TYPE_SERIALIZATION_INFO; +pub type PMIDL_WINRT_TYPE_SERIALIZATION_INFO = *mut _MIDL_WINRT_TYPE_SERIALIZATION_INFO; +extern "C" { + pub fn NdrClientGetSupportedSyntaxes( + pInf: *mut RPC_CLIENT_INTERFACE, + pCount: *mut ::std::os::raw::c_ulong, + pArr: *mut *mut MIDL_SYNTAX_INFO, + ) -> RPC_STATUS; +} +extern "C" { + pub fn NdrServerGetSupportedSyntaxes( + pInf: *mut RPC_SERVER_INTERFACE, + pCount: *mut ::std::os::raw::c_ulong, + pArr: *mut *mut MIDL_SYNTAX_INFO, + pPreferSyntaxIndex: *mut ::std::os::raw::c_ulong, + ) -> RPC_STATUS; +} +extern "C" { + pub fn NdrSimpleTypeMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + FormatChar: ::std::os::raw::c_uchar, + ); +} +extern "C" { + pub fn NdrPointerMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrCsArrayMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrCsTagMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrSimpleStructMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrConformantStructMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrConformantVaryingStructMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrComplexStructMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrFixedArrayMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrConformantArrayMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrConformantVaryingArrayMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrVaryingArrayMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrComplexArrayMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrNonConformantStringMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrConformantStringMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrEncapsulatedUnionMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrNonEncapsulatedUnionMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrByteCountPointerMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrXmitOrRepAsMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrUserMarshalMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrInterfacePointerMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrClientContextMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ContextHandle: NDR_CCONTEXT, + fCheck: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn NdrServerContextMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ContextHandle: NDR_SCONTEXT, + RundownRoutine: NDR_RUNDOWN, + ); +} +extern "C" { + pub fn NdrServerContextNewMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ContextHandle: NDR_SCONTEXT, + RundownRoutine: NDR_RUNDOWN, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrSimpleTypeUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + FormatChar: ::std::os::raw::c_uchar, + ); +} +extern "C" { + pub fn NdrCsArrayUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrCsTagUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrRangeUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrCorrelationInitialize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_void, + CacheSize: ::std::os::raw::c_ulong, + flags: ::std::os::raw::c_ulong, + ); +} +extern "C" { + pub fn NdrCorrelationPass(pStubMsg: PMIDL_STUB_MESSAGE); +} +extern "C" { + pub fn NdrCorrelationFree(pStubMsg: PMIDL_STUB_MESSAGE); +} +extern "C" { + pub fn NdrPointerUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrSimpleStructUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrConformantStructUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrConformantVaryingStructUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrComplexStructUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrFixedArrayUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrConformantArrayUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrConformantVaryingArrayUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrVaryingArrayUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrComplexArrayUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrNonConformantStringUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrConformantStringUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrEncapsulatedUnionUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrNonEncapsulatedUnionUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrByteCountPointerUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrXmitOrRepAsUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrUserMarshalUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrInterfacePointerUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + fMustAlloc: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrClientContextUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pContextHandle: *mut NDR_CCONTEXT, + BindHandle: RPC_BINDING_HANDLE, + ); +} +extern "C" { + pub fn NdrServerContextUnmarshall(pStubMsg: PMIDL_STUB_MESSAGE) -> NDR_SCONTEXT; +} +extern "C" { + pub fn NdrContextHandleInitialize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> NDR_SCONTEXT; +} +extern "C" { + pub fn NdrServerContextNewUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> NDR_SCONTEXT; +} +extern "C" { + pub fn NdrPointerBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrCsArrayBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrCsTagBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrSimpleStructBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrConformantStructBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrConformantVaryingStructBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrComplexStructBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrFixedArrayBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrConformantArrayBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrConformantVaryingArrayBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrVaryingArrayBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrComplexArrayBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrConformantStringBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrNonConformantStringBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrEncapsulatedUnionBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrNonEncapsulatedUnionBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrByteCountPointerBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrXmitOrRepAsBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrUserMarshalBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrInterfacePointerBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrContextHandleSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrPointerMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrContextHandleMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrCsArrayMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrCsTagMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrSimpleStructMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrConformantStructMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrConformantVaryingStructMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrComplexStructMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrFixedArrayMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrConformantArrayMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrConformantVaryingArrayMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrVaryingArrayMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrComplexArrayMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrConformantStringMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrNonConformantStringMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrEncapsulatedUnionMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrNonEncapsulatedUnionMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrXmitOrRepAsMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrUserMarshalMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrInterfacePointerMemorySize( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn NdrPointerFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrCsArrayFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrSimpleStructFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrConformantStructFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrConformantVaryingStructFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrComplexStructFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrFixedArrayFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrConformantArrayFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrConformantVaryingArrayFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrVaryingArrayFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrComplexArrayFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrEncapsulatedUnionFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrNonEncapsulatedUnionFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrByteCountPointerFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrXmitOrRepAsFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrUserMarshalFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrInterfacePointerFree( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_uchar, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrConvert2( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + NumberParams: ::std::os::raw::c_long, + ); +} +extern "C" { + pub fn NdrConvert(pStubMsg: PMIDL_STUB_MESSAGE, pFormat: PFORMAT_STRING); +} +extern "C" { + pub fn NdrUserMarshalSimpleTypeConvert( + pFlags: *mut ::std::os::raw::c_ulong, + pBuffer: *mut ::std::os::raw::c_uchar, + FormatChar: ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrClientInitializeNew( + pRpcMsg: PRPC_MESSAGE, + pStubMsg: PMIDL_STUB_MESSAGE, + pStubDescriptor: PMIDL_STUB_DESC, + ProcNum: ::std::os::raw::c_uint, + ); +} +extern "C" { + pub fn NdrServerInitializeNew( + pRpcMsg: PRPC_MESSAGE, + pStubMsg: PMIDL_STUB_MESSAGE, + pStubDescriptor: PMIDL_STUB_DESC, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrServerInitializePartial( + pRpcMsg: PRPC_MESSAGE, + pStubMsg: PMIDL_STUB_MESSAGE, + pStubDescriptor: PMIDL_STUB_DESC, + RequestedBufferSize: ::std::os::raw::c_ulong, + ); +} +extern "C" { + pub fn NdrClientInitialize( + pRpcMsg: PRPC_MESSAGE, + pStubMsg: PMIDL_STUB_MESSAGE, + pStubDescriptor: PMIDL_STUB_DESC, + ProcNum: ::std::os::raw::c_uint, + ); +} +extern "C" { + pub fn NdrServerInitialize( + pRpcMsg: PRPC_MESSAGE, + pStubMsg: PMIDL_STUB_MESSAGE, + pStubDescriptor: PMIDL_STUB_DESC, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrServerInitializeUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pStubDescriptor: PMIDL_STUB_DESC, + pRpcMsg: PRPC_MESSAGE, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrServerInitializeMarshall(pRpcMsg: PRPC_MESSAGE, pStubMsg: PMIDL_STUB_MESSAGE); +} +extern "C" { + pub fn NdrGetBuffer( + pStubMsg: PMIDL_STUB_MESSAGE, + BufferLength: ::std::os::raw::c_ulong, + Handle: RPC_BINDING_HANDLE, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrNsGetBuffer( + pStubMsg: PMIDL_STUB_MESSAGE, + BufferLength: ::std::os::raw::c_ulong, + Handle: RPC_BINDING_HANDLE, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrSendReceive( + pStubMsg: PMIDL_STUB_MESSAGE, + pBufferEnd: *mut ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrNsSendReceive( + pStubMsg: PMIDL_STUB_MESSAGE, + pBufferEnd: *mut ::std::os::raw::c_uchar, + pAutoHandle: *mut RPC_BINDING_HANDLE, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn NdrFreeBuffer(pStubMsg: PMIDL_STUB_MESSAGE); +} +extern "C" { + pub fn NdrGetDcomProtocolVersion( + pStubMsg: PMIDL_STUB_MESSAGE, + pVersion: *mut RPC_VERSION, + ) -> HRESULT; +} +extern "C" { + pub fn NdrClientCall2( + pStubDescriptor: PMIDL_STUB_DESC, + pFormat: PFORMAT_STRING, + ... + ) -> CLIENT_CALL_RETURN; +} +extern "C" { + pub fn NdrClientCall( + pStubDescriptor: PMIDL_STUB_DESC, + pFormat: PFORMAT_STRING, + ... + ) -> CLIENT_CALL_RETURN; +} +extern "C" { + pub fn NdrAsyncClientCall( + pStubDescriptor: PMIDL_STUB_DESC, + pFormat: PFORMAT_STRING, + ... + ) -> CLIENT_CALL_RETURN; +} +extern "C" { + pub fn NdrDcomAsyncClientCall( + pStubDescriptor: PMIDL_STUB_DESC, + pFormat: PFORMAT_STRING, + ... + ) -> CLIENT_CALL_RETURN; +} +pub const STUB_PHASE_STUB_UNMARSHAL: STUB_PHASE = 0; +pub const STUB_PHASE_STUB_CALL_SERVER: STUB_PHASE = 1; +pub const STUB_PHASE_STUB_MARSHAL: STUB_PHASE = 2; +pub const STUB_PHASE_STUB_CALL_SERVER_NO_HRESULT: STUB_PHASE = 3; +pub type STUB_PHASE = ::std::os::raw::c_int; +pub const PROXY_PHASE_PROXY_CALCSIZE: PROXY_PHASE = 0; +pub const PROXY_PHASE_PROXY_GETBUFFER: PROXY_PHASE = 1; +pub const PROXY_PHASE_PROXY_MARSHAL: PROXY_PHASE = 2; +pub const PROXY_PHASE_PROXY_SENDRECEIVE: PROXY_PHASE = 3; +pub const PROXY_PHASE_PROXY_UNMARSHAL: PROXY_PHASE = 4; +pub type PROXY_PHASE = ::std::os::raw::c_int; +extern "C" { + pub fn NdrAsyncServerCall(pRpcMsg: PRPC_MESSAGE); +} +extern "C" { + pub fn NdrAsyncStubCall( + pThis: *mut IRpcStubBuffer, + pChannel: *mut IRpcChannelBuffer, + pRpcMsg: PRPC_MESSAGE, + pdwStubPhase: *mut ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn NdrDcomAsyncStubCall( + pThis: *mut IRpcStubBuffer, + pChannel: *mut IRpcChannelBuffer, + pRpcMsg: PRPC_MESSAGE, + pdwStubPhase: *mut ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn NdrStubCall2( + pThis: *mut ::std::os::raw::c_void, + pChannel: *mut ::std::os::raw::c_void, + pRpcMsg: PRPC_MESSAGE, + pdwStubPhase: *mut ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn NdrServerCall2(pRpcMsg: PRPC_MESSAGE); +} +extern "C" { + pub fn NdrStubCall( + pThis: *mut ::std::os::raw::c_void, + pChannel: *mut ::std::os::raw::c_void, + pRpcMsg: PRPC_MESSAGE, + pdwStubPhase: *mut ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn NdrServerCall(pRpcMsg: PRPC_MESSAGE); +} +extern "C" { + pub fn NdrServerUnmarshall( + pChannel: *mut ::std::os::raw::c_void, + pRpcMsg: PRPC_MESSAGE, + pStubMsg: PMIDL_STUB_MESSAGE, + pStubDescriptor: PMIDL_STUB_DESC, + pFormat: PFORMAT_STRING, + pParamList: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn NdrServerMarshall( + pThis: *mut ::std::os::raw::c_void, + pChannel: *mut ::std::os::raw::c_void, + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn NdrMapCommAndFaultStatus( + pStubMsg: PMIDL_STUB_MESSAGE, + pCommStatus: *mut ::std::os::raw::c_ulong, + pFaultStatus: *mut ::std::os::raw::c_ulong, + Status: RPC_STATUS, + ) -> RPC_STATUS; +} +pub type RPC_SS_THREAD_HANDLE = *mut ::std::os::raw::c_void; +extern "C" { + pub fn RpcSsAllocate(Size: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn RpcSsDisableAllocate(); +} +extern "C" { + pub fn RpcSsEnableAllocate(); +} +extern "C" { + pub fn RpcSsFree(NodeToFree: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn RpcSsGetThreadHandle() -> RPC_SS_THREAD_HANDLE; +} +extern "C" { + pub fn RpcSsSetClientAllocFree( + ClientAlloc: ::std::option::Option< + unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void, + >, + ClientFree: ::std::option::Option, + ); +} +extern "C" { + pub fn RpcSsSetThreadHandle(Id: RPC_SS_THREAD_HANDLE); +} +extern "C" { + pub fn RpcSsSwapClientAllocFree( + ClientAlloc: ::std::option::Option< + unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void, + >, + ClientFree: ::std::option::Option, + OldClientAlloc: *mut ::std::option::Option< + unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void, + >, + OldClientFree: *mut ::std::option::Option< + unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void), + >, + ); +} +extern "C" { + pub fn RpcSmAllocate(Size: usize, pStatus: *mut RPC_STATUS) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn RpcSmClientFree(pNodeToFree: *mut ::std::os::raw::c_void) -> RPC_STATUS; +} +extern "C" { + pub fn RpcSmDestroyClientContext(ContextHandle: *mut *mut ::std::os::raw::c_void) + -> RPC_STATUS; +} +extern "C" { + pub fn RpcSmDisableAllocate() -> RPC_STATUS; +} +extern "C" { + pub fn RpcSmEnableAllocate() -> RPC_STATUS; +} +extern "C" { + pub fn RpcSmFree(NodeToFree: *mut ::std::os::raw::c_void) -> RPC_STATUS; +} +extern "C" { + pub fn RpcSmGetThreadHandle(pStatus: *mut RPC_STATUS) -> RPC_SS_THREAD_HANDLE; +} +extern "C" { + pub fn RpcSmSetClientAllocFree( + ClientAlloc: ::std::option::Option< + unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void, + >, + ClientFree: ::std::option::Option, + ) -> RPC_STATUS; +} +extern "C" { + pub fn RpcSmSetThreadHandle(Id: RPC_SS_THREAD_HANDLE) -> RPC_STATUS; +} +extern "C" { + pub fn RpcSmSwapClientAllocFree( + ClientAlloc: ::std::option::Option< + unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void, + >, + ClientFree: ::std::option::Option, + OldClientAlloc: *mut ::std::option::Option< + unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void, + >, + OldClientFree: *mut ::std::option::Option< + unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void), + >, + ) -> RPC_STATUS; +} +extern "C" { + pub fn NdrRpcSsEnableAllocate(pMessage: PMIDL_STUB_MESSAGE); +} +extern "C" { + pub fn NdrRpcSsDisableAllocate(pMessage: PMIDL_STUB_MESSAGE); +} +extern "C" { + pub fn NdrRpcSmSetClientToOsf(pMessage: PMIDL_STUB_MESSAGE); +} +extern "C" { + pub fn NdrRpcSmClientAllocate(Size: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn NdrRpcSmClientFree(NodeToFree: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn NdrRpcSsDefaultAllocate(Size: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn NdrRpcSsDefaultFree(NodeToFree: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn NdrFullPointerXlatInit( + NumberOfPointers: ::std::os::raw::c_ulong, + XlatSide: XLAT_SIDE, + ) -> PFULL_PTR_XLAT_TABLES; +} +extern "C" { + pub fn NdrFullPointerXlatFree(pXlatTables: PFULL_PTR_XLAT_TABLES); +} +extern "C" { + pub fn NdrAllocate(pStubMsg: PMIDL_STUB_MESSAGE, Len: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn NdrClearOutParameters( + pStubMsg: PMIDL_STUB_MESSAGE, + pFormat: PFORMAT_STRING, + ArgAddr: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn NdrOleAllocate(Size: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn NdrOleFree(NodeToFree: *mut ::std::os::raw::c_void); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NDR_USER_MARSHAL_INFO_LEVEL1 { + pub Buffer: *mut ::std::os::raw::c_void, + pub BufferSize: ::std::os::raw::c_ulong, + pub pfnAllocate: + ::std::option::Option *mut ::std::os::raw::c_void>, + pub pfnFree: ::std::option::Option, + pub pRpcChannelBuffer: *mut IRpcChannelBuffer, + pub Reserved: [ULONG_PTR; 5usize], +} +pub type NDR_USER_MARSHAL_INFO_LEVEL1 = _NDR_USER_MARSHAL_INFO_LEVEL1; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _NDR_USER_MARSHAL_INFO { + pub InformationLevel: ::std::os::raw::c_ulong, + pub __bindgen_anon_1: _NDR_USER_MARSHAL_INFO__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _NDR_USER_MARSHAL_INFO__bindgen_ty_1 { + pub Level1: NDR_USER_MARSHAL_INFO_LEVEL1, +} +pub type NDR_USER_MARSHAL_INFO = _NDR_USER_MARSHAL_INFO; +extern "C" { + pub fn NdrGetUserMarshalInfo( + pFlags: *mut ::std::os::raw::c_ulong, + InformationLevel: ::std::os::raw::c_ulong, + pMarshalInfo: *mut NDR_USER_MARSHAL_INFO, + ) -> RPC_STATUS; +} +extern "C" { + pub fn NdrCreateServerInterfaceFromStub( + pStub: *mut IRpcStubBuffer, + pServerIf: *mut RPC_SERVER_INTERFACE, + ) -> RPC_STATUS; +} +extern "C" { + pub fn NdrClientCall3( + pProxyInfo: *mut MIDL_STUBLESS_PROXY_INFO, + nProcNum: ::std::os::raw::c_ulong, + pReturnValue: *mut ::std::os::raw::c_void, + ... + ) -> CLIENT_CALL_RETURN; +} +extern "C" { + pub fn Ndr64AsyncClientCall( + pProxyInfo: *mut MIDL_STUBLESS_PROXY_INFO, + nProcNum: ::std::os::raw::c_ulong, + pReturnValue: *mut ::std::os::raw::c_void, + ... + ) -> CLIENT_CALL_RETURN; +} +extern "C" { + pub fn Ndr64DcomAsyncClientCall( + pProxyInfo: *mut MIDL_STUBLESS_PROXY_INFO, + nProcNum: ::std::os::raw::c_ulong, + pReturnValue: *mut ::std::os::raw::c_void, + ... + ) -> CLIENT_CALL_RETURN; +} +extern "C" { + pub fn Ndr64AsyncServerCall(pRpcMsg: PRPC_MESSAGE); +} +extern "C" { + pub fn Ndr64AsyncServerCall64(pRpcMsg: PRPC_MESSAGE); +} +extern "C" { + pub fn Ndr64AsyncServerCallAll(pRpcMsg: PRPC_MESSAGE); +} +extern "C" { + pub fn Ndr64AsyncStubCall( + pThis: *mut IRpcStubBuffer, + pChannel: *mut IRpcChannelBuffer, + pRpcMsg: PRPC_MESSAGE, + pdwStubPhase: *mut ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn Ndr64DcomAsyncStubCall( + pThis: *mut IRpcStubBuffer, + pChannel: *mut IRpcChannelBuffer, + pRpcMsg: PRPC_MESSAGE, + pdwStubPhase: *mut ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn NdrStubCall3( + pThis: *mut ::std::os::raw::c_void, + pChannel: *mut ::std::os::raw::c_void, + pRpcMsg: PRPC_MESSAGE, + pdwStubPhase: *mut ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn NdrServerCallAll(pRpcMsg: PRPC_MESSAGE); +} +extern "C" { + pub fn NdrServerCallNdr64(pRpcMsg: PRPC_MESSAGE); +} +extern "C" { + pub fn NdrServerCall3(pRpcMsg: PRPC_MESSAGE); +} +extern "C" { + pub fn NdrPartialIgnoreClientMarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn NdrPartialIgnoreServerUnmarshall( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn NdrPartialIgnoreClientBufferSize( + pStubMsg: PMIDL_STUB_MESSAGE, + pMemory: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn NdrPartialIgnoreServerInitialize( + pStubMsg: PMIDL_STUB_MESSAGE, + ppMemory: *mut *mut ::std::os::raw::c_void, + pFormat: PFORMAT_STRING, + ); +} +extern "C" { + pub fn RpcUserFree(AsyncHandle: handle_t, pBuffer: *mut ::std::os::raw::c_void); +} +extern "C" { + pub static mut __MIDL_itf_wtypesbase_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_wtypesbase_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type OLECHAR = WCHAR; +pub type LPOLESTR = *mut OLECHAR; +pub type LPCOLESTR = *const OLECHAR; +pub type DOUBLE = f64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _COAUTHIDENTITY { + pub User: *mut USHORT, + pub UserLength: ULONG, + pub Domain: *mut USHORT, + pub DomainLength: ULONG, + pub Password: *mut USHORT, + pub PasswordLength: ULONG, + pub Flags: ULONG, +} +pub type COAUTHIDENTITY = _COAUTHIDENTITY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _COAUTHINFO { + pub dwAuthnSvc: DWORD, + pub dwAuthzSvc: DWORD, + pub pwszServerPrincName: LPWSTR, + pub dwAuthnLevel: DWORD, + pub dwImpersonationLevel: DWORD, + pub pAuthIdentityData: *mut COAUTHIDENTITY, + pub dwCapabilities: DWORD, +} +pub type COAUTHINFO = _COAUTHINFO; +pub type SCODE = LONG; +pub type PSCODE = *mut SCODE; +pub const tagMEMCTX_MEMCTX_TASK: tagMEMCTX = 1; +pub const tagMEMCTX_MEMCTX_SHARED: tagMEMCTX = 2; +pub const tagMEMCTX_MEMCTX_MACSYSTEM: tagMEMCTX = 3; +pub const tagMEMCTX_MEMCTX_UNKNOWN: tagMEMCTX = -1; +pub const tagMEMCTX_MEMCTX_SAME: tagMEMCTX = -2; +pub type tagMEMCTX = ::std::os::raw::c_int; +pub use self::tagMEMCTX as MEMCTX; +pub const tagCLSCTX_CLSCTX_INPROC_SERVER: tagCLSCTX = 1; +pub const tagCLSCTX_CLSCTX_INPROC_HANDLER: tagCLSCTX = 2; +pub const tagCLSCTX_CLSCTX_LOCAL_SERVER: tagCLSCTX = 4; +pub const tagCLSCTX_CLSCTX_INPROC_SERVER16: tagCLSCTX = 8; +pub const tagCLSCTX_CLSCTX_REMOTE_SERVER: tagCLSCTX = 16; +pub const tagCLSCTX_CLSCTX_INPROC_HANDLER16: tagCLSCTX = 32; +pub const tagCLSCTX_CLSCTX_RESERVED1: tagCLSCTX = 64; +pub const tagCLSCTX_CLSCTX_RESERVED2: tagCLSCTX = 128; +pub const tagCLSCTX_CLSCTX_RESERVED3: tagCLSCTX = 256; +pub const tagCLSCTX_CLSCTX_RESERVED4: tagCLSCTX = 512; +pub const tagCLSCTX_CLSCTX_NO_CODE_DOWNLOAD: tagCLSCTX = 1024; +pub const tagCLSCTX_CLSCTX_RESERVED5: tagCLSCTX = 2048; +pub const tagCLSCTX_CLSCTX_NO_CUSTOM_MARSHAL: tagCLSCTX = 4096; +pub const tagCLSCTX_CLSCTX_ENABLE_CODE_DOWNLOAD: tagCLSCTX = 8192; +pub const tagCLSCTX_CLSCTX_NO_FAILURE_LOG: tagCLSCTX = 16384; +pub const tagCLSCTX_CLSCTX_DISABLE_AAA: tagCLSCTX = 32768; +pub const tagCLSCTX_CLSCTX_ENABLE_AAA: tagCLSCTX = 65536; +pub const tagCLSCTX_CLSCTX_FROM_DEFAULT_CONTEXT: tagCLSCTX = 131072; +pub const tagCLSCTX_CLSCTX_ACTIVATE_X86_SERVER: tagCLSCTX = 262144; +pub const tagCLSCTX_CLSCTX_ACTIVATE_32_BIT_SERVER: tagCLSCTX = 262144; +pub const tagCLSCTX_CLSCTX_ACTIVATE_64_BIT_SERVER: tagCLSCTX = 524288; +pub const tagCLSCTX_CLSCTX_ENABLE_CLOAKING: tagCLSCTX = 1048576; +pub const tagCLSCTX_CLSCTX_APPCONTAINER: tagCLSCTX = 4194304; +pub const tagCLSCTX_CLSCTX_ACTIVATE_AAA_AS_IU: tagCLSCTX = 8388608; +pub const tagCLSCTX_CLSCTX_RESERVED6: tagCLSCTX = 16777216; +pub const tagCLSCTX_CLSCTX_ACTIVATE_ARM32_SERVER: tagCLSCTX = 33554432; +pub const tagCLSCTX_CLSCTX_ALLOW_LOWER_TRUST_REGISTRATION: tagCLSCTX = 67108864; +pub const tagCLSCTX_CLSCTX_PS_DLL: tagCLSCTX = -2147483648; +pub type tagCLSCTX = ::std::os::raw::c_int; +pub use self::tagCLSCTX as CLSCTX; +pub const tagMSHLFLAGS_MSHLFLAGS_NORMAL: tagMSHLFLAGS = 0; +pub const tagMSHLFLAGS_MSHLFLAGS_TABLESTRONG: tagMSHLFLAGS = 1; +pub const tagMSHLFLAGS_MSHLFLAGS_TABLEWEAK: tagMSHLFLAGS = 2; +pub const tagMSHLFLAGS_MSHLFLAGS_NOPING: tagMSHLFLAGS = 4; +pub const tagMSHLFLAGS_MSHLFLAGS_RESERVED1: tagMSHLFLAGS = 8; +pub const tagMSHLFLAGS_MSHLFLAGS_RESERVED2: tagMSHLFLAGS = 16; +pub const tagMSHLFLAGS_MSHLFLAGS_RESERVED3: tagMSHLFLAGS = 32; +pub const tagMSHLFLAGS_MSHLFLAGS_RESERVED4: tagMSHLFLAGS = 64; +pub type tagMSHLFLAGS = ::std::os::raw::c_int; +pub use self::tagMSHLFLAGS as MSHLFLAGS; +pub const tagMSHCTX_MSHCTX_LOCAL: tagMSHCTX = 0; +pub const tagMSHCTX_MSHCTX_NOSHAREDMEM: tagMSHCTX = 1; +pub const tagMSHCTX_MSHCTX_DIFFERENTMACHINE: tagMSHCTX = 2; +pub const tagMSHCTX_MSHCTX_INPROC: tagMSHCTX = 3; +pub const tagMSHCTX_MSHCTX_CROSSCTX: tagMSHCTX = 4; +pub const tagMSHCTX_MSHCTX_CONTAINER: tagMSHCTX = 5; +pub type tagMSHCTX = ::std::os::raw::c_int; +pub use self::tagMSHCTX as MSHCTX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BYTE_BLOB { + pub clSize: ULONG, + pub abData: [byte; 1usize], +} +pub type BYTE_BLOB = _BYTE_BLOB; +pub type UP_BYTE_BLOB = *mut BYTE_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WORD_BLOB { + pub clSize: ULONG, + pub asData: [::std::os::raw::c_ushort; 1usize], +} +pub type WORD_BLOB = _WORD_BLOB; +pub type UP_WORD_BLOB = *mut WORD_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DWORD_BLOB { + pub clSize: ULONG, + pub alData: [ULONG; 1usize], +} +pub type DWORD_BLOB = _DWORD_BLOB; +pub type UP_DWORD_BLOB = *mut DWORD_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FLAGGED_BYTE_BLOB { + pub fFlags: ULONG, + pub clSize: ULONG, + pub abData: [byte; 1usize], +} +pub type FLAGGED_BYTE_BLOB = _FLAGGED_BYTE_BLOB; +pub type UP_FLAGGED_BYTE_BLOB = *mut FLAGGED_BYTE_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FLAGGED_WORD_BLOB { + pub fFlags: ULONG, + pub clSize: ULONG, + pub asData: [::std::os::raw::c_ushort; 1usize], +} +pub type FLAGGED_WORD_BLOB = _FLAGGED_WORD_BLOB; +pub type UP_FLAGGED_WORD_BLOB = *mut FLAGGED_WORD_BLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BYTE_SIZEDARR { + pub clSize: ULONG, + pub pData: *mut byte, +} +pub type BYTE_SIZEDARR = _BYTE_SIZEDARR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SHORT_SIZEDARR { + pub clSize: ULONG, + pub pData: *mut ::std::os::raw::c_ushort, +} +pub type WORD_SIZEDARR = _SHORT_SIZEDARR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LONG_SIZEDARR { + pub clSize: ULONG, + pub pData: *mut ULONG, +} +pub type DWORD_SIZEDARR = _LONG_SIZEDARR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _HYPER_SIZEDARR { + pub clSize: ULONG, + pub pData: *mut ::std::os::raw::c_longlong, +} +pub type HYPER_SIZEDARR = _HYPER_SIZEDARR; +extern "C" { + pub static mut IWinTypesBase_v0_1_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut IWinTypesBase_v0_1_s_ifspec: RPC_IF_HANDLE; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagBLOB { + pub cbSize: ULONG, + pub pBlobData: *mut BYTE, +} +pub type BLOB = tagBLOB; +pub type LPBLOB = *mut tagBLOB; +extern "C" { + pub static mut __MIDL_itf_wtypesbase_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_wtypesbase_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_wtypes_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_wtypes_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRemHGLOBAL { + pub fNullHGlobal: LONG, + pub cbData: ULONG, + pub data: [byte; 1usize], +} +pub type RemHGLOBAL = tagRemHGLOBAL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRemHMETAFILEPICT { + pub mm: LONG, + pub xExt: LONG, + pub yExt: LONG, + pub cbData: ULONG, + pub data: [byte; 1usize], +} +pub type RemHMETAFILEPICT = tagRemHMETAFILEPICT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRemHENHMETAFILE { + pub cbData: ULONG, + pub data: [byte; 1usize], +} +pub type RemHENHMETAFILE = tagRemHENHMETAFILE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRemHBITMAP { + pub cbData: ULONG, + pub data: [byte; 1usize], +} +pub type RemHBITMAP = tagRemHBITMAP; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRemHPALETTE { + pub cbData: ULONG, + pub data: [byte; 1usize], +} +pub type RemHPALETTE = tagRemHPALETTE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRemBRUSH { + pub cbData: ULONG, + pub data: [byte; 1usize], +} +pub type RemHBRUSH = tagRemBRUSH; +pub const tagDVASPECT_DVASPECT_CONTENT: tagDVASPECT = 1; +pub const tagDVASPECT_DVASPECT_THUMBNAIL: tagDVASPECT = 2; +pub const tagDVASPECT_DVASPECT_ICON: tagDVASPECT = 4; +pub const tagDVASPECT_DVASPECT_DOCPRINT: tagDVASPECT = 8; +pub type tagDVASPECT = ::std::os::raw::c_int; +pub use self::tagDVASPECT as DVASPECT; +pub const tagSTGC_STGC_DEFAULT: tagSTGC = 0; +pub const tagSTGC_STGC_OVERWRITE: tagSTGC = 1; +pub const tagSTGC_STGC_ONLYIFCURRENT: tagSTGC = 2; +pub const tagSTGC_STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE: tagSTGC = 4; +pub const tagSTGC_STGC_CONSOLIDATE: tagSTGC = 8; +pub type tagSTGC = ::std::os::raw::c_int; +pub use self::tagSTGC as STGC; +pub const tagSTGMOVE_STGMOVE_MOVE: tagSTGMOVE = 0; +pub const tagSTGMOVE_STGMOVE_COPY: tagSTGMOVE = 1; +pub const tagSTGMOVE_STGMOVE_SHALLOWCOPY: tagSTGMOVE = 2; +pub type tagSTGMOVE = ::std::os::raw::c_int; +pub use self::tagSTGMOVE as STGMOVE; +pub const tagSTATFLAG_STATFLAG_DEFAULT: tagSTATFLAG = 0; +pub const tagSTATFLAG_STATFLAG_NONAME: tagSTATFLAG = 1; +pub const tagSTATFLAG_STATFLAG_NOOPEN: tagSTATFLAG = 2; +pub type tagSTATFLAG = ::std::os::raw::c_int; +pub use self::tagSTATFLAG as STATFLAG; +pub type HCONTEXT = *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _userCLIPFORMAT { + pub fContext: LONG, + pub u: _userCLIPFORMAT___MIDL_IWinTypes_0001, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _userCLIPFORMAT___MIDL_IWinTypes_0001 { + pub dwValue: DWORD, + pub pwszName: *mut wchar_t, +} +pub type userCLIPFORMAT = _userCLIPFORMAT; +pub type wireCLIPFORMAT = *mut userCLIPFORMAT; +pub type CLIPFORMAT = WORD; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _GDI_NONREMOTE { + pub fContext: LONG, + pub u: _GDI_NONREMOTE___MIDL_IWinTypes_0002, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _GDI_NONREMOTE___MIDL_IWinTypes_0002 { + pub hInproc: LONG, + pub hRemote: *mut DWORD_BLOB, +} +pub type GDI_NONREMOTE = _GDI_NONREMOTE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _userHGLOBAL { + pub fContext: LONG, + pub u: _userHGLOBAL___MIDL_IWinTypes_0003, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _userHGLOBAL___MIDL_IWinTypes_0003 { + pub hInproc: LONG, + pub hRemote: *mut FLAGGED_BYTE_BLOB, + pub hInproc64: ::std::os::raw::c_longlong, +} +pub type userHGLOBAL = _userHGLOBAL; +pub type wireHGLOBAL = *mut userHGLOBAL; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _userHMETAFILE { + pub fContext: LONG, + pub u: _userHMETAFILE___MIDL_IWinTypes_0004, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _userHMETAFILE___MIDL_IWinTypes_0004 { + pub hInproc: LONG, + pub hRemote: *mut BYTE_BLOB, + pub hInproc64: ::std::os::raw::c_longlong, +} +pub type userHMETAFILE = _userHMETAFILE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _remoteMETAFILEPICT { + pub mm: LONG, + pub xExt: LONG, + pub yExt: LONG, + pub hMF: *mut userHMETAFILE, +} +pub type remoteMETAFILEPICT = _remoteMETAFILEPICT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _userHMETAFILEPICT { + pub fContext: LONG, + pub u: _userHMETAFILEPICT___MIDL_IWinTypes_0005, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _userHMETAFILEPICT___MIDL_IWinTypes_0005 { + pub hInproc: LONG, + pub hRemote: *mut remoteMETAFILEPICT, + pub hInproc64: ::std::os::raw::c_longlong, +} +pub type userHMETAFILEPICT = _userHMETAFILEPICT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _userHENHMETAFILE { + pub fContext: LONG, + pub u: _userHENHMETAFILE___MIDL_IWinTypes_0006, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _userHENHMETAFILE___MIDL_IWinTypes_0006 { + pub hInproc: LONG, + pub hRemote: *mut BYTE_BLOB, + pub hInproc64: ::std::os::raw::c_longlong, +} +pub type userHENHMETAFILE = _userHENHMETAFILE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _userBITMAP { + pub bmType: LONG, + pub bmWidth: LONG, + pub bmHeight: LONG, + pub bmWidthBytes: LONG, + pub bmPlanes: WORD, + pub bmBitsPixel: WORD, + pub cbSize: ULONG, + pub pBuffer: [byte; 1usize], +} +pub type userBITMAP = _userBITMAP; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _userHBITMAP { + pub fContext: LONG, + pub u: _userHBITMAP___MIDL_IWinTypes_0007, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _userHBITMAP___MIDL_IWinTypes_0007 { + pub hInproc: LONG, + pub hRemote: *mut userBITMAP, + pub hInproc64: ::std::os::raw::c_longlong, +} +pub type userHBITMAP = _userHBITMAP; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _userHPALETTE { + pub fContext: LONG, + pub u: _userHPALETTE___MIDL_IWinTypes_0008, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _userHPALETTE___MIDL_IWinTypes_0008 { + pub hInproc: LONG, + pub hRemote: *mut LOGPALETTE, + pub hInproc64: ::std::os::raw::c_longlong, +} +pub type userHPALETTE = _userHPALETTE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _RemotableHandle { + pub fContext: LONG, + pub u: _RemotableHandle___MIDL_IWinTypes_0009, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _RemotableHandle___MIDL_IWinTypes_0009 { + pub hInproc: LONG, + pub hRemote: LONG, +} +pub type RemotableHandle = _RemotableHandle; +pub type wireHWND = *mut RemotableHandle; +pub type wireHMENU = *mut RemotableHandle; +pub type wireHACCEL = *mut RemotableHandle; +pub type wireHBRUSH = *mut RemotableHandle; +pub type wireHFONT = *mut RemotableHandle; +pub type wireHDC = *mut RemotableHandle; +pub type wireHICON = *mut RemotableHandle; +pub type wireHRGN = *mut RemotableHandle; +pub type wireHMONITOR = *mut RemotableHandle; +pub type wireHBITMAP = *mut userHBITMAP; +pub type wireHPALETTE = *mut userHPALETTE; +pub type wireHENHMETAFILE = *mut userHENHMETAFILE; +pub type wireHMETAFILE = *mut userHMETAFILE; +pub type wireHMETAFILEPICT = *mut userHMETAFILEPICT; +pub type HMETAFILEPICT = *mut ::std::os::raw::c_void; +extern "C" { + pub static mut IWinTypes_v0_1_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut IWinTypes_v0_1_s_ifspec: RPC_IF_HANDLE; +} +pub type DATE = f64; +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagCY { + pub __bindgen_anon_1: tagCY__bindgen_ty_1, + pub int64: LONGLONG, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCY__bindgen_ty_1 { + pub Lo: ULONG, + pub Hi: LONG, +} +pub type CY = tagCY; +pub type LPCY = *mut CY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagDEC { + pub wReserved: USHORT, + pub __bindgen_anon_1: tagDEC__bindgen_ty_1, + pub Hi32: ULONG, + pub __bindgen_anon_2: tagDEC__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagDEC__bindgen_ty_1 { + pub __bindgen_anon_1: tagDEC__bindgen_ty_1__bindgen_ty_1, + pub signscale: USHORT, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagDEC__bindgen_ty_1__bindgen_ty_1 { + pub scale: BYTE, + pub sign: BYTE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagDEC__bindgen_ty_2 { + pub __bindgen_anon_1: tagDEC__bindgen_ty_2__bindgen_ty_1, + pub Lo64: ULONGLONG, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagDEC__bindgen_ty_2__bindgen_ty_1 { + pub Lo32: ULONG, + pub Mid32: ULONG, +} +pub type DECIMAL = tagDEC; +pub type LPDECIMAL = *mut DECIMAL; +pub type wireBSTR = *mut FLAGGED_WORD_BLOB; +pub type BSTR = *mut OLECHAR; +pub type LPBSTR = *mut BSTR; +pub type VARIANT_BOOL = ::std::os::raw::c_short; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagBSTRBLOB { + pub cbSize: ULONG, + pub pData: *mut BYTE, +} +pub type BSTRBLOB = tagBSTRBLOB; +pub type LPBSTRBLOB = *mut tagBSTRBLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCLIPDATA { + pub cbSize: ULONG, + pub ulClipFmt: LONG, + pub pClipData: *mut BYTE, +} +pub type CLIPDATA = tagCLIPDATA; +pub type VARTYPE = ::std::os::raw::c_ushort; +pub const VARENUM_VT_EMPTY: VARENUM = 0; +pub const VARENUM_VT_NULL: VARENUM = 1; +pub const VARENUM_VT_I2: VARENUM = 2; +pub const VARENUM_VT_I4: VARENUM = 3; +pub const VARENUM_VT_R4: VARENUM = 4; +pub const VARENUM_VT_R8: VARENUM = 5; +pub const VARENUM_VT_CY: VARENUM = 6; +pub const VARENUM_VT_DATE: VARENUM = 7; +pub const VARENUM_VT_BSTR: VARENUM = 8; +pub const VARENUM_VT_DISPATCH: VARENUM = 9; +pub const VARENUM_VT_ERROR: VARENUM = 10; +pub const VARENUM_VT_BOOL: VARENUM = 11; +pub const VARENUM_VT_VARIANT: VARENUM = 12; +pub const VARENUM_VT_UNKNOWN: VARENUM = 13; +pub const VARENUM_VT_DECIMAL: VARENUM = 14; +pub const VARENUM_VT_I1: VARENUM = 16; +pub const VARENUM_VT_UI1: VARENUM = 17; +pub const VARENUM_VT_UI2: VARENUM = 18; +pub const VARENUM_VT_UI4: VARENUM = 19; +pub const VARENUM_VT_I8: VARENUM = 20; +pub const VARENUM_VT_UI8: VARENUM = 21; +pub const VARENUM_VT_INT: VARENUM = 22; +pub const VARENUM_VT_UINT: VARENUM = 23; +pub const VARENUM_VT_VOID: VARENUM = 24; +pub const VARENUM_VT_HRESULT: VARENUM = 25; +pub const VARENUM_VT_PTR: VARENUM = 26; +pub const VARENUM_VT_SAFEARRAY: VARENUM = 27; +pub const VARENUM_VT_CARRAY: VARENUM = 28; +pub const VARENUM_VT_USERDEFINED: VARENUM = 29; +pub const VARENUM_VT_LPSTR: VARENUM = 30; +pub const VARENUM_VT_LPWSTR: VARENUM = 31; +pub const VARENUM_VT_RECORD: VARENUM = 36; +pub const VARENUM_VT_INT_PTR: VARENUM = 37; +pub const VARENUM_VT_UINT_PTR: VARENUM = 38; +pub const VARENUM_VT_FILETIME: VARENUM = 64; +pub const VARENUM_VT_BLOB: VARENUM = 65; +pub const VARENUM_VT_STREAM: VARENUM = 66; +pub const VARENUM_VT_STORAGE: VARENUM = 67; +pub const VARENUM_VT_STREAMED_OBJECT: VARENUM = 68; +pub const VARENUM_VT_STORED_OBJECT: VARENUM = 69; +pub const VARENUM_VT_BLOB_OBJECT: VARENUM = 70; +pub const VARENUM_VT_CF: VARENUM = 71; +pub const VARENUM_VT_CLSID: VARENUM = 72; +pub const VARENUM_VT_VERSIONED_STREAM: VARENUM = 73; +pub const VARENUM_VT_BSTR_BLOB: VARENUM = 4095; +pub const VARENUM_VT_VECTOR: VARENUM = 4096; +pub const VARENUM_VT_ARRAY: VARENUM = 8192; +pub const VARENUM_VT_BYREF: VARENUM = 16384; +pub const VARENUM_VT_RESERVED: VARENUM = 32768; +pub const VARENUM_VT_ILLEGAL: VARENUM = 65535; +pub const VARENUM_VT_ILLEGALMASKED: VARENUM = 4095; +pub const VARENUM_VT_TYPEMASK: VARENUM = 4095; +pub type VARENUM = ::std::os::raw::c_int; +pub type PROPID = ULONG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _tagpropertykey { + pub fmtid: GUID, + pub pid: DWORD, +} +pub type PROPERTYKEY = _tagpropertykey; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCSPLATFORM { + pub dwPlatformId: DWORD, + pub dwVersionHi: DWORD, + pub dwVersionLo: DWORD, + pub dwProcessorArch: DWORD, +} +pub type CSPLATFORM = tagCSPLATFORM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagQUERYCONTEXT { + pub dwContext: DWORD, + pub Platform: CSPLATFORM, + pub Locale: LCID, + pub dwVersionHi: DWORD, + pub dwVersionLo: DWORD, +} +pub type QUERYCONTEXT = tagQUERYCONTEXT; +pub const tagTYSPEC_TYSPEC_CLSID: tagTYSPEC = 0; +pub const tagTYSPEC_TYSPEC_FILEEXT: tagTYSPEC = 1; +pub const tagTYSPEC_TYSPEC_MIMETYPE: tagTYSPEC = 2; +pub const tagTYSPEC_TYSPEC_FILENAME: tagTYSPEC = 3; +pub const tagTYSPEC_TYSPEC_PROGID: tagTYSPEC = 4; +pub const tagTYSPEC_TYSPEC_PACKAGENAME: tagTYSPEC = 5; +pub const tagTYSPEC_TYSPEC_OBJECTID: tagTYSPEC = 6; +pub type tagTYSPEC = ::std::os::raw::c_int; +pub use self::tagTYSPEC as TYSPEC; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __MIDL___MIDL_itf_wtypes_0000_0001_0001 { + pub tyspec: DWORD, + pub tagged_union: + __MIDL___MIDL_itf_wtypes_0000_0001_0001___MIDL___MIDL_itf_wtypes_0000_0001_0005, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __MIDL___MIDL_itf_wtypes_0000_0001_0001___MIDL___MIDL_itf_wtypes_0000_0001_0005 { pub clsid : CLSID , pub pFileExt : LPOLESTR , pub pMimeType : LPOLESTR , pub pProgId : LPOLESTR , pub pFileName : LPOLESTR , pub ByName : __MIDL___MIDL_itf_wtypes_0000_0001_0001___MIDL___MIDL_itf_wtypes_0000_0001_0005__bindgen_ty_1 , pub ByObjectId : __MIDL___MIDL_itf_wtypes_0000_0001_0001___MIDL___MIDL_itf_wtypes_0000_0001_0005__bindgen_ty_2 , } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __MIDL___MIDL_itf_wtypes_0000_0001_0001___MIDL___MIDL_itf_wtypes_0000_0001_0005__bindgen_ty_1 +{ + pub pPackageName: LPOLESTR, + pub PolicyId: GUID, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __MIDL___MIDL_itf_wtypes_0000_0001_0001___MIDL___MIDL_itf_wtypes_0000_0001_0005__bindgen_ty_2 +{ + pub ObjectId: GUID, + pub PolicyId: GUID, +} +pub type uCLSSPEC = __MIDL___MIDL_itf_wtypes_0000_0001_0001; +extern "C" { + pub static mut __MIDL_itf_wtypes_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_wtypes_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static GUID_DEVINTERFACE_DISK: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_CDROM: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_PARTITION: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_TAPE: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_WRITEONCEDISK: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_VOLUME: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_MEDIUMCHANGER: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_FLOPPY: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_CDCHANGER: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_STORAGEPORT: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_VMLUN: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_SES: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_ZNSDISK: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_SERVICE_VOLUME: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_HIDDEN_VOLUME: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_UNIFIED_ACCESS_RPMB: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_SCM_PHYSICAL_DEVICE: GUID; +} +extern "C" { + pub static GUID_SCM_PD_HEALTH_NOTIFICATION: GUID; +} +extern "C" { + pub static GUID_SCM_PD_PASSTHROUGH_INVDIMM: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_COMPORT: GUID; +} +extern "C" { + pub static GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR: GUID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_HOTPLUG_INFO { + pub Size: DWORD, + pub MediaRemovable: BOOLEAN, + pub MediaHotplug: BOOLEAN, + pub DeviceHotplug: BOOLEAN, + pub WriteCacheEnableOverride: BOOLEAN, +} +pub type STORAGE_HOTPLUG_INFO = _STORAGE_HOTPLUG_INFO; +pub type PSTORAGE_HOTPLUG_INFO = *mut _STORAGE_HOTPLUG_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_NUMBER { + pub DeviceType: DWORD, + pub DeviceNumber: DWORD, + pub PartitionNumber: DWORD, +} +pub type STORAGE_DEVICE_NUMBER = _STORAGE_DEVICE_NUMBER; +pub type PSTORAGE_DEVICE_NUMBER = *mut _STORAGE_DEVICE_NUMBER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_NUMBERS { + pub Version: DWORD, + pub Size: DWORD, + pub NumberOfDevices: DWORD, + pub Devices: [STORAGE_DEVICE_NUMBER; 1usize], +} +pub type STORAGE_DEVICE_NUMBERS = _STORAGE_DEVICE_NUMBERS; +pub type PSTORAGE_DEVICE_NUMBERS = *mut _STORAGE_DEVICE_NUMBERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_NUMBER_EX { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub DeviceType: DWORD, + pub DeviceNumber: DWORD, + pub DeviceGuid: GUID, + pub PartitionNumber: DWORD, +} +pub type STORAGE_DEVICE_NUMBER_EX = _STORAGE_DEVICE_NUMBER_EX; +pub type PSTORAGE_DEVICE_NUMBER_EX = *mut _STORAGE_DEVICE_NUMBER_EX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_BUS_RESET_REQUEST { + pub PathId: BYTE, +} +pub type STORAGE_BUS_RESET_REQUEST = _STORAGE_BUS_RESET_REQUEST; +pub type PSTORAGE_BUS_RESET_REQUEST = *mut _STORAGE_BUS_RESET_REQUEST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct STORAGE_BREAK_RESERVATION_REQUEST { + pub Length: DWORD, + pub _unused: BYTE, + pub PathId: BYTE, + pub TargetId: BYTE, + pub Lun: BYTE, +} +pub type PSTORAGE_BREAK_RESERVATION_REQUEST = *mut STORAGE_BREAK_RESERVATION_REQUEST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PREVENT_MEDIA_REMOVAL { + pub PreventMediaRemoval: BOOLEAN, +} +pub type PREVENT_MEDIA_REMOVAL = _PREVENT_MEDIA_REMOVAL; +pub type PPREVENT_MEDIA_REMOVAL = *mut _PREVENT_MEDIA_REMOVAL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CLASS_MEDIA_CHANGE_CONTEXT { + pub MediaChangeCount: DWORD, + pub NewState: DWORD, +} +pub type CLASS_MEDIA_CHANGE_CONTEXT = _CLASS_MEDIA_CHANGE_CONTEXT; +pub type PCLASS_MEDIA_CHANGE_CONTEXT = *mut _CLASS_MEDIA_CHANGE_CONTEXT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _TAPE_STATISTICS { + pub Version: DWORD, + pub Flags: DWORD, + pub RecoveredWrites: LARGE_INTEGER, + pub UnrecoveredWrites: LARGE_INTEGER, + pub RecoveredReads: LARGE_INTEGER, + pub UnrecoveredReads: LARGE_INTEGER, + pub CompressionRatioReads: BYTE, + pub CompressionRatioWrites: BYTE, +} +pub type TAPE_STATISTICS = _TAPE_STATISTICS; +pub type PTAPE_STATISTICS = *mut _TAPE_STATISTICS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TAPE_GET_STATISTICS { + pub Operation: DWORD, +} +pub type TAPE_GET_STATISTICS = _TAPE_GET_STATISTICS; +pub type PTAPE_GET_STATISTICS = *mut _TAPE_GET_STATISTICS; +pub const _STORAGE_MEDIA_TYPE_DDS_4mm: _STORAGE_MEDIA_TYPE = 32; +pub const _STORAGE_MEDIA_TYPE_MiniQic: _STORAGE_MEDIA_TYPE = 33; +pub const _STORAGE_MEDIA_TYPE_Travan: _STORAGE_MEDIA_TYPE = 34; +pub const _STORAGE_MEDIA_TYPE_QIC: _STORAGE_MEDIA_TYPE = 35; +pub const _STORAGE_MEDIA_TYPE_MP_8mm: _STORAGE_MEDIA_TYPE = 36; +pub const _STORAGE_MEDIA_TYPE_AME_8mm: _STORAGE_MEDIA_TYPE = 37; +pub const _STORAGE_MEDIA_TYPE_AIT1_8mm: _STORAGE_MEDIA_TYPE = 38; +pub const _STORAGE_MEDIA_TYPE_DLT: _STORAGE_MEDIA_TYPE = 39; +pub const _STORAGE_MEDIA_TYPE_NCTP: _STORAGE_MEDIA_TYPE = 40; +pub const _STORAGE_MEDIA_TYPE_IBM_3480: _STORAGE_MEDIA_TYPE = 41; +pub const _STORAGE_MEDIA_TYPE_IBM_3490E: _STORAGE_MEDIA_TYPE = 42; +pub const _STORAGE_MEDIA_TYPE_IBM_Magstar_3590: _STORAGE_MEDIA_TYPE = 43; +pub const _STORAGE_MEDIA_TYPE_IBM_Magstar_MP: _STORAGE_MEDIA_TYPE = 44; +pub const _STORAGE_MEDIA_TYPE_STK_DATA_D3: _STORAGE_MEDIA_TYPE = 45; +pub const _STORAGE_MEDIA_TYPE_SONY_DTF: _STORAGE_MEDIA_TYPE = 46; +pub const _STORAGE_MEDIA_TYPE_DV_6mm: _STORAGE_MEDIA_TYPE = 47; +pub const _STORAGE_MEDIA_TYPE_DMI: _STORAGE_MEDIA_TYPE = 48; +pub const _STORAGE_MEDIA_TYPE_SONY_D2: _STORAGE_MEDIA_TYPE = 49; +pub const _STORAGE_MEDIA_TYPE_CLEANER_CARTRIDGE: _STORAGE_MEDIA_TYPE = 50; +pub const _STORAGE_MEDIA_TYPE_CD_ROM: _STORAGE_MEDIA_TYPE = 51; +pub const _STORAGE_MEDIA_TYPE_CD_R: _STORAGE_MEDIA_TYPE = 52; +pub const _STORAGE_MEDIA_TYPE_CD_RW: _STORAGE_MEDIA_TYPE = 53; +pub const _STORAGE_MEDIA_TYPE_DVD_ROM: _STORAGE_MEDIA_TYPE = 54; +pub const _STORAGE_MEDIA_TYPE_DVD_R: _STORAGE_MEDIA_TYPE = 55; +pub const _STORAGE_MEDIA_TYPE_DVD_RW: _STORAGE_MEDIA_TYPE = 56; +pub const _STORAGE_MEDIA_TYPE_MO_3_RW: _STORAGE_MEDIA_TYPE = 57; +pub const _STORAGE_MEDIA_TYPE_MO_5_WO: _STORAGE_MEDIA_TYPE = 58; +pub const _STORAGE_MEDIA_TYPE_MO_5_RW: _STORAGE_MEDIA_TYPE = 59; +pub const _STORAGE_MEDIA_TYPE_MO_5_LIMDOW: _STORAGE_MEDIA_TYPE = 60; +pub const _STORAGE_MEDIA_TYPE_PC_5_WO: _STORAGE_MEDIA_TYPE = 61; +pub const _STORAGE_MEDIA_TYPE_PC_5_RW: _STORAGE_MEDIA_TYPE = 62; +pub const _STORAGE_MEDIA_TYPE_PD_5_RW: _STORAGE_MEDIA_TYPE = 63; +pub const _STORAGE_MEDIA_TYPE_ABL_5_WO: _STORAGE_MEDIA_TYPE = 64; +pub const _STORAGE_MEDIA_TYPE_PINNACLE_APEX_5_RW: _STORAGE_MEDIA_TYPE = 65; +pub const _STORAGE_MEDIA_TYPE_SONY_12_WO: _STORAGE_MEDIA_TYPE = 66; +pub const _STORAGE_MEDIA_TYPE_PHILIPS_12_WO: _STORAGE_MEDIA_TYPE = 67; +pub const _STORAGE_MEDIA_TYPE_HITACHI_12_WO: _STORAGE_MEDIA_TYPE = 68; +pub const _STORAGE_MEDIA_TYPE_CYGNET_12_WO: _STORAGE_MEDIA_TYPE = 69; +pub const _STORAGE_MEDIA_TYPE_KODAK_14_WO: _STORAGE_MEDIA_TYPE = 70; +pub const _STORAGE_MEDIA_TYPE_MO_NFR_525: _STORAGE_MEDIA_TYPE = 71; +pub const _STORAGE_MEDIA_TYPE_NIKON_12_RW: _STORAGE_MEDIA_TYPE = 72; +pub const _STORAGE_MEDIA_TYPE_IOMEGA_ZIP: _STORAGE_MEDIA_TYPE = 73; +pub const _STORAGE_MEDIA_TYPE_IOMEGA_JAZ: _STORAGE_MEDIA_TYPE = 74; +pub const _STORAGE_MEDIA_TYPE_SYQUEST_EZ135: _STORAGE_MEDIA_TYPE = 75; +pub const _STORAGE_MEDIA_TYPE_SYQUEST_EZFLYER: _STORAGE_MEDIA_TYPE = 76; +pub const _STORAGE_MEDIA_TYPE_SYQUEST_SYJET: _STORAGE_MEDIA_TYPE = 77; +pub const _STORAGE_MEDIA_TYPE_AVATAR_F2: _STORAGE_MEDIA_TYPE = 78; +pub const _STORAGE_MEDIA_TYPE_MP2_8mm: _STORAGE_MEDIA_TYPE = 79; +pub const _STORAGE_MEDIA_TYPE_DST_S: _STORAGE_MEDIA_TYPE = 80; +pub const _STORAGE_MEDIA_TYPE_DST_M: _STORAGE_MEDIA_TYPE = 81; +pub const _STORAGE_MEDIA_TYPE_DST_L: _STORAGE_MEDIA_TYPE = 82; +pub const _STORAGE_MEDIA_TYPE_VXATape_1: _STORAGE_MEDIA_TYPE = 83; +pub const _STORAGE_MEDIA_TYPE_VXATape_2: _STORAGE_MEDIA_TYPE = 84; +pub const _STORAGE_MEDIA_TYPE_STK_9840: _STORAGE_MEDIA_TYPE = 85; +pub const _STORAGE_MEDIA_TYPE_LTO_Ultrium: _STORAGE_MEDIA_TYPE = 86; +pub const _STORAGE_MEDIA_TYPE_LTO_Accelis: _STORAGE_MEDIA_TYPE = 87; +pub const _STORAGE_MEDIA_TYPE_DVD_RAM: _STORAGE_MEDIA_TYPE = 88; +pub const _STORAGE_MEDIA_TYPE_AIT_8mm: _STORAGE_MEDIA_TYPE = 89; +pub const _STORAGE_MEDIA_TYPE_ADR_1: _STORAGE_MEDIA_TYPE = 90; +pub const _STORAGE_MEDIA_TYPE_ADR_2: _STORAGE_MEDIA_TYPE = 91; +pub const _STORAGE_MEDIA_TYPE_STK_9940: _STORAGE_MEDIA_TYPE = 92; +pub const _STORAGE_MEDIA_TYPE_SAIT: _STORAGE_MEDIA_TYPE = 93; +pub const _STORAGE_MEDIA_TYPE_VXATape: _STORAGE_MEDIA_TYPE = 94; +pub type _STORAGE_MEDIA_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_MEDIA_TYPE as STORAGE_MEDIA_TYPE; +pub type PSTORAGE_MEDIA_TYPE = *mut _STORAGE_MEDIA_TYPE; +pub const _STORAGE_BUS_TYPE_BusTypeUnknown: _STORAGE_BUS_TYPE = 0; +pub const _STORAGE_BUS_TYPE_BusTypeScsi: _STORAGE_BUS_TYPE = 1; +pub const _STORAGE_BUS_TYPE_BusTypeAtapi: _STORAGE_BUS_TYPE = 2; +pub const _STORAGE_BUS_TYPE_BusTypeAta: _STORAGE_BUS_TYPE = 3; +pub const _STORAGE_BUS_TYPE_BusType1394: _STORAGE_BUS_TYPE = 4; +pub const _STORAGE_BUS_TYPE_BusTypeSsa: _STORAGE_BUS_TYPE = 5; +pub const _STORAGE_BUS_TYPE_BusTypeFibre: _STORAGE_BUS_TYPE = 6; +pub const _STORAGE_BUS_TYPE_BusTypeUsb: _STORAGE_BUS_TYPE = 7; +pub const _STORAGE_BUS_TYPE_BusTypeRAID: _STORAGE_BUS_TYPE = 8; +pub const _STORAGE_BUS_TYPE_BusTypeiScsi: _STORAGE_BUS_TYPE = 9; +pub const _STORAGE_BUS_TYPE_BusTypeSas: _STORAGE_BUS_TYPE = 10; +pub const _STORAGE_BUS_TYPE_BusTypeSata: _STORAGE_BUS_TYPE = 11; +pub const _STORAGE_BUS_TYPE_BusTypeSd: _STORAGE_BUS_TYPE = 12; +pub const _STORAGE_BUS_TYPE_BusTypeMmc: _STORAGE_BUS_TYPE = 13; +pub const _STORAGE_BUS_TYPE_BusTypeVirtual: _STORAGE_BUS_TYPE = 14; +pub const _STORAGE_BUS_TYPE_BusTypeFileBackedVirtual: _STORAGE_BUS_TYPE = 15; +pub const _STORAGE_BUS_TYPE_BusTypeSpaces: _STORAGE_BUS_TYPE = 16; +pub const _STORAGE_BUS_TYPE_BusTypeNvme: _STORAGE_BUS_TYPE = 17; +pub const _STORAGE_BUS_TYPE_BusTypeSCM: _STORAGE_BUS_TYPE = 18; +pub const _STORAGE_BUS_TYPE_BusTypeUfs: _STORAGE_BUS_TYPE = 19; +pub const _STORAGE_BUS_TYPE_BusTypeMax: _STORAGE_BUS_TYPE = 20; +pub const _STORAGE_BUS_TYPE_BusTypeMaxReserved: _STORAGE_BUS_TYPE = 127; +pub type _STORAGE_BUS_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_BUS_TYPE as STORAGE_BUS_TYPE; +pub type PSTORAGE_BUS_TYPE = *mut _STORAGE_BUS_TYPE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DEVICE_MEDIA_INFO { + pub DeviceSpecific: _DEVICE_MEDIA_INFO__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DEVICE_MEDIA_INFO__bindgen_ty_1 { + pub DiskInfo: _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_1, + pub RemovableDiskInfo: _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_2, + pub TapeInfo: _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_1 { + pub Cylinders: LARGE_INTEGER, + pub MediaType: STORAGE_MEDIA_TYPE, + pub TracksPerCylinder: DWORD, + pub SectorsPerTrack: DWORD, + pub BytesPerSector: DWORD, + pub NumberMediaSides: DWORD, + pub MediaCharacteristics: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_2 { + pub Cylinders: LARGE_INTEGER, + pub MediaType: STORAGE_MEDIA_TYPE, + pub TracksPerCylinder: DWORD, + pub SectorsPerTrack: DWORD, + pub BytesPerSector: DWORD, + pub NumberMediaSides: DWORD, + pub MediaCharacteristics: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_3 { + pub MediaType: STORAGE_MEDIA_TYPE, + pub MediaCharacteristics: DWORD, + pub CurrentBlockSize: DWORD, + pub BusType: STORAGE_BUS_TYPE, + pub BusSpecificData: _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1 { + pub ScsiInformation: _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1__bindgen_ty_1 { + pub MediumType: BYTE, + pub DensityCode: BYTE, +} +pub type DEVICE_MEDIA_INFO = _DEVICE_MEDIA_INFO; +pub type PDEVICE_MEDIA_INFO = *mut _DEVICE_MEDIA_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _GET_MEDIA_TYPES { + pub DeviceType: DWORD, + pub MediaInfoCount: DWORD, + pub MediaInfo: [DEVICE_MEDIA_INFO; 1usize], +} +pub type GET_MEDIA_TYPES = _GET_MEDIA_TYPES; +pub type PGET_MEDIA_TYPES = *mut _GET_MEDIA_TYPES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_PREDICT_FAILURE { + pub PredictFailure: DWORD, + pub VendorSpecific: [BYTE; 512usize], +} +pub type STORAGE_PREDICT_FAILURE = _STORAGE_PREDICT_FAILURE; +pub type PSTORAGE_PREDICT_FAILURE = *mut _STORAGE_PREDICT_FAILURE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_FAILURE_PREDICTION_CONFIG { + pub Version: DWORD, + pub Size: DWORD, + pub Set: BOOLEAN, + pub Enabled: BOOLEAN, + pub Reserved: WORD, +} +pub type STORAGE_FAILURE_PREDICTION_CONFIG = _STORAGE_FAILURE_PREDICTION_CONFIG; +pub type PSTORAGE_FAILURE_PREDICTION_CONFIG = *mut _STORAGE_FAILURE_PREDICTION_CONFIG; +pub const _STORAGE_QUERY_TYPE_PropertyStandardQuery: _STORAGE_QUERY_TYPE = 0; +pub const _STORAGE_QUERY_TYPE_PropertyExistsQuery: _STORAGE_QUERY_TYPE = 1; +pub const _STORAGE_QUERY_TYPE_PropertyMaskQuery: _STORAGE_QUERY_TYPE = 2; +pub const _STORAGE_QUERY_TYPE_PropertyQueryMaxDefined: _STORAGE_QUERY_TYPE = 3; +pub type _STORAGE_QUERY_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_QUERY_TYPE as STORAGE_QUERY_TYPE; +pub type PSTORAGE_QUERY_TYPE = *mut _STORAGE_QUERY_TYPE; +pub const _STORAGE_SET_TYPE_PropertyStandardSet: _STORAGE_SET_TYPE = 0; +pub const _STORAGE_SET_TYPE_PropertyExistsSet: _STORAGE_SET_TYPE = 1; +pub const _STORAGE_SET_TYPE_PropertySetMaxDefined: _STORAGE_SET_TYPE = 2; +pub type _STORAGE_SET_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_SET_TYPE as STORAGE_SET_TYPE; +pub type PSTORAGE_SET_TYPE = *mut _STORAGE_SET_TYPE; +pub const _STORAGE_PROPERTY_ID_StorageDeviceProperty: _STORAGE_PROPERTY_ID = 0; +pub const _STORAGE_PROPERTY_ID_StorageAdapterProperty: _STORAGE_PROPERTY_ID = 1; +pub const _STORAGE_PROPERTY_ID_StorageDeviceIdProperty: _STORAGE_PROPERTY_ID = 2; +pub const _STORAGE_PROPERTY_ID_StorageDeviceUniqueIdProperty: _STORAGE_PROPERTY_ID = 3; +pub const _STORAGE_PROPERTY_ID_StorageDeviceWriteCacheProperty: _STORAGE_PROPERTY_ID = 4; +pub const _STORAGE_PROPERTY_ID_StorageMiniportProperty: _STORAGE_PROPERTY_ID = 5; +pub const _STORAGE_PROPERTY_ID_StorageAccessAlignmentProperty: _STORAGE_PROPERTY_ID = 6; +pub const _STORAGE_PROPERTY_ID_StorageDeviceSeekPenaltyProperty: _STORAGE_PROPERTY_ID = 7; +pub const _STORAGE_PROPERTY_ID_StorageDeviceTrimProperty: _STORAGE_PROPERTY_ID = 8; +pub const _STORAGE_PROPERTY_ID_StorageDeviceWriteAggregationProperty: _STORAGE_PROPERTY_ID = 9; +pub const _STORAGE_PROPERTY_ID_StorageDeviceDeviceTelemetryProperty: _STORAGE_PROPERTY_ID = 10; +pub const _STORAGE_PROPERTY_ID_StorageDeviceLBProvisioningProperty: _STORAGE_PROPERTY_ID = 11; +pub const _STORAGE_PROPERTY_ID_StorageDevicePowerProperty: _STORAGE_PROPERTY_ID = 12; +pub const _STORAGE_PROPERTY_ID_StorageDeviceCopyOffloadProperty: _STORAGE_PROPERTY_ID = 13; +pub const _STORAGE_PROPERTY_ID_StorageDeviceResiliencyProperty: _STORAGE_PROPERTY_ID = 14; +pub const _STORAGE_PROPERTY_ID_StorageDeviceMediumProductType: _STORAGE_PROPERTY_ID = 15; +pub const _STORAGE_PROPERTY_ID_StorageAdapterRpmbProperty: _STORAGE_PROPERTY_ID = 16; +pub const _STORAGE_PROPERTY_ID_StorageAdapterCryptoProperty: _STORAGE_PROPERTY_ID = 17; +pub const _STORAGE_PROPERTY_ID_StorageDeviceIoCapabilityProperty: _STORAGE_PROPERTY_ID = 48; +pub const _STORAGE_PROPERTY_ID_StorageAdapterProtocolSpecificProperty: _STORAGE_PROPERTY_ID = 49; +pub const _STORAGE_PROPERTY_ID_StorageDeviceProtocolSpecificProperty: _STORAGE_PROPERTY_ID = 50; +pub const _STORAGE_PROPERTY_ID_StorageAdapterTemperatureProperty: _STORAGE_PROPERTY_ID = 51; +pub const _STORAGE_PROPERTY_ID_StorageDeviceTemperatureProperty: _STORAGE_PROPERTY_ID = 52; +pub const _STORAGE_PROPERTY_ID_StorageAdapterPhysicalTopologyProperty: _STORAGE_PROPERTY_ID = 53; +pub const _STORAGE_PROPERTY_ID_StorageDevicePhysicalTopologyProperty: _STORAGE_PROPERTY_ID = 54; +pub const _STORAGE_PROPERTY_ID_StorageDeviceAttributesProperty: _STORAGE_PROPERTY_ID = 55; +pub const _STORAGE_PROPERTY_ID_StorageDeviceManagementStatus: _STORAGE_PROPERTY_ID = 56; +pub const _STORAGE_PROPERTY_ID_StorageAdapterSerialNumberProperty: _STORAGE_PROPERTY_ID = 57; +pub const _STORAGE_PROPERTY_ID_StorageDeviceLocationProperty: _STORAGE_PROPERTY_ID = 58; +pub const _STORAGE_PROPERTY_ID_StorageDeviceNumaProperty: _STORAGE_PROPERTY_ID = 59; +pub const _STORAGE_PROPERTY_ID_StorageDeviceZonedDeviceProperty: _STORAGE_PROPERTY_ID = 60; +pub const _STORAGE_PROPERTY_ID_StorageDeviceUnsafeShutdownCount: _STORAGE_PROPERTY_ID = 61; +pub const _STORAGE_PROPERTY_ID_StorageDeviceEnduranceProperty: _STORAGE_PROPERTY_ID = 62; +pub const _STORAGE_PROPERTY_ID_StorageDeviceLedStateProperty: _STORAGE_PROPERTY_ID = 63; +pub const _STORAGE_PROPERTY_ID_StorageDeviceSelfEncryptionProperty: _STORAGE_PROPERTY_ID = 64; +pub const _STORAGE_PROPERTY_ID_StorageFruIdProperty: _STORAGE_PROPERTY_ID = 65; +pub type _STORAGE_PROPERTY_ID = ::std::os::raw::c_int; +pub use self::_STORAGE_PROPERTY_ID as STORAGE_PROPERTY_ID; +pub type PSTORAGE_PROPERTY_ID = *mut _STORAGE_PROPERTY_ID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_PROPERTY_QUERY { + pub PropertyId: STORAGE_PROPERTY_ID, + pub QueryType: STORAGE_QUERY_TYPE, + pub AdditionalParameters: [BYTE; 1usize], +} +pub type STORAGE_PROPERTY_QUERY = _STORAGE_PROPERTY_QUERY; +pub type PSTORAGE_PROPERTY_QUERY = *mut _STORAGE_PROPERTY_QUERY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_PROPERTY_SET { + pub PropertyId: STORAGE_PROPERTY_ID, + pub SetType: STORAGE_SET_TYPE, + pub AdditionalParameters: [BYTE; 1usize], +} +pub type STORAGE_PROPERTY_SET = _STORAGE_PROPERTY_SET; +pub type PSTORAGE_PROPERTY_SET = *mut _STORAGE_PROPERTY_SET; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DESCRIPTOR_HEADER { + pub Version: DWORD, + pub Size: DWORD, +} +pub type STORAGE_DESCRIPTOR_HEADER = _STORAGE_DESCRIPTOR_HEADER; +pub type PSTORAGE_DESCRIPTOR_HEADER = *mut _STORAGE_DESCRIPTOR_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub DeviceType: BYTE, + pub DeviceTypeModifier: BYTE, + pub RemovableMedia: BOOLEAN, + pub CommandQueueing: BOOLEAN, + pub VendorIdOffset: DWORD, + pub ProductIdOffset: DWORD, + pub ProductRevisionOffset: DWORD, + pub SerialNumberOffset: DWORD, + pub BusType: STORAGE_BUS_TYPE, + pub RawPropertiesLength: DWORD, + pub RawDeviceProperties: [BYTE; 1usize], +} +pub type STORAGE_DEVICE_DESCRIPTOR = _STORAGE_DEVICE_DESCRIPTOR; +pub type PSTORAGE_DEVICE_DESCRIPTOR = *mut _STORAGE_DEVICE_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_ADAPTER_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub MaximumTransferLength: DWORD, + pub MaximumPhysicalPages: DWORD, + pub AlignmentMask: DWORD, + pub AdapterUsesPio: BOOLEAN, + pub AdapterScansDown: BOOLEAN, + pub CommandQueueing: BOOLEAN, + pub AcceleratedTransfer: BOOLEAN, + pub BusType: BYTE, + pub BusMajorVersion: WORD, + pub BusMinorVersion: WORD, + pub SrbType: BYTE, + pub AddressType: BYTE, +} +pub type STORAGE_ADAPTER_DESCRIPTOR = _STORAGE_ADAPTER_DESCRIPTOR; +pub type PSTORAGE_ADAPTER_DESCRIPTOR = *mut _STORAGE_ADAPTER_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub BytesPerCacheLine: DWORD, + pub BytesOffsetForCacheAlignment: DWORD, + pub BytesPerLogicalSector: DWORD, + pub BytesPerPhysicalSector: DWORD, + pub BytesOffsetForSectorAlignment: DWORD, +} +pub type STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR = _STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR; +pub type PSTORAGE_ACCESS_ALIGNMENT_DESCRIPTOR = *mut _STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub MediumProductType: DWORD, +} +pub type STORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR = _STORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR; +pub type PSTORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR = *mut _STORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR; +pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetReserved: _STORAGE_PORT_CODE_SET = 0; +pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetStorport: _STORAGE_PORT_CODE_SET = 1; +pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetSCSIport: _STORAGE_PORT_CODE_SET = 2; +pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetSpaceport: _STORAGE_PORT_CODE_SET = 3; +pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetATAport: _STORAGE_PORT_CODE_SET = 4; +pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetUSBport: _STORAGE_PORT_CODE_SET = 5; +pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetSBP2port: _STORAGE_PORT_CODE_SET = 6; +pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetSDport: _STORAGE_PORT_CODE_SET = 7; +pub type _STORAGE_PORT_CODE_SET = ::std::os::raw::c_int; +pub use self::_STORAGE_PORT_CODE_SET as STORAGE_PORT_CODE_SET; +pub type PSTORAGE_PORT_CODE_SET = *mut _STORAGE_PORT_CODE_SET; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STORAGE_MINIPORT_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub Portdriver: STORAGE_PORT_CODE_SET, + pub LUNResetSupported: BOOLEAN, + pub TargetResetSupported: BOOLEAN, + pub IoTimeoutValue: WORD, + pub ExtraIoInfoSupported: BOOLEAN, + pub Flags: _STORAGE_MINIPORT_DESCRIPTOR__bindgen_ty_1, + pub Reserved0: [BYTE; 2usize], + pub Reserved1: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _STORAGE_MINIPORT_DESCRIPTOR__bindgen_ty_1 { + pub __bindgen_anon_1: _STORAGE_MINIPORT_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1, + pub AsBYTE: BYTE, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_MINIPORT_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +} +impl _STORAGE_MINIPORT_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn LogicalPoFxForDisk(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } + } + #[inline] + pub fn set_LogicalPoFxForDisk(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 7u8) as u8) } + } + #[inline] + pub fn set_Reserved(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 7u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + LogicalPoFxForDisk: BYTE, + Reserved: BYTE, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let LogicalPoFxForDisk: u8 = unsafe { ::std::mem::transmute(LogicalPoFxForDisk) }; + LogicalPoFxForDisk as u64 + }); + __bindgen_bitfield_unit.set(1usize, 7u8, { + let Reserved: u8 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type STORAGE_MINIPORT_DESCRIPTOR = _STORAGE_MINIPORT_DESCRIPTOR; +pub type PSTORAGE_MINIPORT_DESCRIPTOR = *mut _STORAGE_MINIPORT_DESCRIPTOR; +pub const _STORAGE_IDENTIFIER_CODE_SET_StorageIdCodeSetReserved: _STORAGE_IDENTIFIER_CODE_SET = 0; +pub const _STORAGE_IDENTIFIER_CODE_SET_StorageIdCodeSetBinary: _STORAGE_IDENTIFIER_CODE_SET = 1; +pub const _STORAGE_IDENTIFIER_CODE_SET_StorageIdCodeSetAscii: _STORAGE_IDENTIFIER_CODE_SET = 2; +pub const _STORAGE_IDENTIFIER_CODE_SET_StorageIdCodeSetUtf8: _STORAGE_IDENTIFIER_CODE_SET = 3; +pub type _STORAGE_IDENTIFIER_CODE_SET = ::std::os::raw::c_int; +pub use self::_STORAGE_IDENTIFIER_CODE_SET as STORAGE_IDENTIFIER_CODE_SET; +pub type PSTORAGE_IDENTIFIER_CODE_SET = *mut _STORAGE_IDENTIFIER_CODE_SET; +pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeVendorSpecific: _STORAGE_IDENTIFIER_TYPE = 0; +pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeVendorId: _STORAGE_IDENTIFIER_TYPE = 1; +pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeEUI64: _STORAGE_IDENTIFIER_TYPE = 2; +pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeFCPHName: _STORAGE_IDENTIFIER_TYPE = 3; +pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypePortRelative: _STORAGE_IDENTIFIER_TYPE = 4; +pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeTargetPortGroup: _STORAGE_IDENTIFIER_TYPE = 5; +pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeLogicalUnitGroup: _STORAGE_IDENTIFIER_TYPE = 6; +pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeMD5LogicalUnitIdentifier: _STORAGE_IDENTIFIER_TYPE = + 7; +pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeScsiNameString: _STORAGE_IDENTIFIER_TYPE = 8; +pub type _STORAGE_IDENTIFIER_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_IDENTIFIER_TYPE as STORAGE_IDENTIFIER_TYPE; +pub type PSTORAGE_IDENTIFIER_TYPE = *mut _STORAGE_IDENTIFIER_TYPE; +pub const _STORAGE_ID_NAA_FORMAT_StorageIdNAAFormatIEEEExtended: _STORAGE_ID_NAA_FORMAT = 2; +pub const _STORAGE_ID_NAA_FORMAT_StorageIdNAAFormatIEEERegistered: _STORAGE_ID_NAA_FORMAT = 3; +pub const _STORAGE_ID_NAA_FORMAT_StorageIdNAAFormatIEEEERegisteredExtended: _STORAGE_ID_NAA_FORMAT = + 5; +pub type _STORAGE_ID_NAA_FORMAT = ::std::os::raw::c_int; +pub use self::_STORAGE_ID_NAA_FORMAT as STORAGE_ID_NAA_FORMAT; +pub type PSTORAGE_ID_NAA_FORMAT = *mut _STORAGE_ID_NAA_FORMAT; +pub const _STORAGE_ASSOCIATION_TYPE_StorageIdAssocDevice: _STORAGE_ASSOCIATION_TYPE = 0; +pub const _STORAGE_ASSOCIATION_TYPE_StorageIdAssocPort: _STORAGE_ASSOCIATION_TYPE = 1; +pub const _STORAGE_ASSOCIATION_TYPE_StorageIdAssocTarget: _STORAGE_ASSOCIATION_TYPE = 2; +pub type _STORAGE_ASSOCIATION_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_ASSOCIATION_TYPE as STORAGE_ASSOCIATION_TYPE; +pub type PSTORAGE_ASSOCIATION_TYPE = *mut _STORAGE_ASSOCIATION_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_IDENTIFIER { + pub CodeSet: STORAGE_IDENTIFIER_CODE_SET, + pub Type: STORAGE_IDENTIFIER_TYPE, + pub IdentifierSize: WORD, + pub NextOffset: WORD, + pub Association: STORAGE_ASSOCIATION_TYPE, + pub Identifier: [BYTE; 1usize], +} +pub type STORAGE_IDENTIFIER = _STORAGE_IDENTIFIER; +pub type PSTORAGE_IDENTIFIER = *mut _STORAGE_IDENTIFIER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_ID_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub NumberOfIdentifiers: DWORD, + pub Identifiers: [BYTE; 1usize], +} +pub type STORAGE_DEVICE_ID_DESCRIPTOR = _STORAGE_DEVICE_ID_DESCRIPTOR; +pub type PSTORAGE_DEVICE_ID_DESCRIPTOR = *mut _STORAGE_DEVICE_ID_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_SEEK_PENALTY_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub IncursSeekPenalty: BOOLEAN, +} +pub type DEVICE_SEEK_PENALTY_DESCRIPTOR = _DEVICE_SEEK_PENALTY_DESCRIPTOR; +pub type PDEVICE_SEEK_PENALTY_DESCRIPTOR = *mut _DEVICE_SEEK_PENALTY_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_WRITE_AGGREGATION_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub BenefitsFromWriteAggregation: BOOLEAN, +} +pub type DEVICE_WRITE_AGGREGATION_DESCRIPTOR = _DEVICE_WRITE_AGGREGATION_DESCRIPTOR; +pub type PDEVICE_WRITE_AGGREGATION_DESCRIPTOR = *mut _DEVICE_WRITE_AGGREGATION_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_TRIM_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub TrimEnabled: BOOLEAN, +} +pub type DEVICE_TRIM_DESCRIPTOR = _DEVICE_TRIM_DESCRIPTOR; +pub type PDEVICE_TRIM_DESCRIPTOR = *mut _DEVICE_TRIM_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_LB_PROVISIONING_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub Reserved1: [BYTE; 7usize], + pub OptimalUnmapGranularity: DWORDLONG, + pub UnmapGranularityAlignment: DWORDLONG, + pub MaxUnmapLbaCount: DWORD, + pub MaxUnmapBlockDescriptorCount: DWORD, +} +impl _DEVICE_LB_PROVISIONING_DESCRIPTOR { + #[inline] + pub fn ThinProvisioningEnabled(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } + } + #[inline] + pub fn set_ThinProvisioningEnabled(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn ThinProvisioningReadZeros(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) } + } + #[inline] + pub fn set_ThinProvisioningReadZeros(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn AnchorSupported(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 3u8) as u8) } + } + #[inline] + pub fn set_AnchorSupported(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 3u8, val as u64) + } + } + #[inline] + pub fn UnmapGranularityAlignmentValid(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u8) } + } + #[inline] + pub fn set_UnmapGranularityAlignmentValid(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 1u8, val as u64) + } + } + #[inline] + pub fn GetFreeSpaceSupported(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u8) } + } + #[inline] + pub fn set_GetFreeSpaceSupported(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(6usize, 1u8, val as u64) + } + } + #[inline] + pub fn MapSupported(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u8) } + } + #[inline] + pub fn set_MapSupported(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(7usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + ThinProvisioningEnabled: BYTE, + ThinProvisioningReadZeros: BYTE, + AnchorSupported: BYTE, + UnmapGranularityAlignmentValid: BYTE, + GetFreeSpaceSupported: BYTE, + MapSupported: BYTE, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let ThinProvisioningEnabled: u8 = + unsafe { ::std::mem::transmute(ThinProvisioningEnabled) }; + ThinProvisioningEnabled as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let ThinProvisioningReadZeros: u8 = + unsafe { ::std::mem::transmute(ThinProvisioningReadZeros) }; + ThinProvisioningReadZeros as u64 + }); + __bindgen_bitfield_unit.set(2usize, 3u8, { + let AnchorSupported: u8 = unsafe { ::std::mem::transmute(AnchorSupported) }; + AnchorSupported as u64 + }); + __bindgen_bitfield_unit.set(5usize, 1u8, { + let UnmapGranularityAlignmentValid: u8 = + unsafe { ::std::mem::transmute(UnmapGranularityAlignmentValid) }; + UnmapGranularityAlignmentValid as u64 + }); + __bindgen_bitfield_unit.set(6usize, 1u8, { + let GetFreeSpaceSupported: u8 = unsafe { ::std::mem::transmute(GetFreeSpaceSupported) }; + GetFreeSpaceSupported as u64 + }); + __bindgen_bitfield_unit.set(7usize, 1u8, { + let MapSupported: u8 = unsafe { ::std::mem::transmute(MapSupported) }; + MapSupported as u64 + }); + __bindgen_bitfield_unit + } +} +pub type DEVICE_LB_PROVISIONING_DESCRIPTOR = _DEVICE_LB_PROVISIONING_DESCRIPTOR; +pub type PDEVICE_LB_PROVISIONING_DESCRIPTOR = *mut _DEVICE_LB_PROVISIONING_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_LB_PROVISIONING_MAP_RESOURCES { + pub Size: DWORD, + pub Version: DWORD, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub Reserved1: [BYTE; 3usize], + pub _bitfield_align_2: [u8; 0], + pub _bitfield_2: __BindgenBitfieldUnit<[u8; 1usize]>, + pub Reserved3: [BYTE; 3usize], + pub AvailableMappingResources: DWORDLONG, + pub UsedMappingResources: DWORDLONG, +} +impl _STORAGE_LB_PROVISIONING_MAP_RESOURCES { + #[inline] + pub fn AvailableMappingResourcesValid(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } + } + #[inline] + pub fn set_AvailableMappingResourcesValid(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn UsedMappingResourcesValid(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) } + } + #[inline] + pub fn set_UsedMappingResourcesValid(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved0(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 6u8) as u8) } + } + #[inline] + pub fn set_Reserved0(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 6u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + AvailableMappingResourcesValid: BYTE, + UsedMappingResourcesValid: BYTE, + Reserved0: BYTE, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let AvailableMappingResourcesValid: u8 = + unsafe { ::std::mem::transmute(AvailableMappingResourcesValid) }; + AvailableMappingResourcesValid as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let UsedMappingResourcesValid: u8 = + unsafe { ::std::mem::transmute(UsedMappingResourcesValid) }; + UsedMappingResourcesValid as u64 + }); + __bindgen_bitfield_unit.set(2usize, 6u8, { + let Reserved0: u8 = unsafe { ::std::mem::transmute(Reserved0) }; + Reserved0 as u64 + }); + __bindgen_bitfield_unit + } + #[inline] + pub fn AvailableMappingResourcesScope(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_2.get(0usize, 2u8) as u8) } + } + #[inline] + pub fn set_AvailableMappingResourcesScope(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_2.set(0usize, 2u8, val as u64) + } + } + #[inline] + pub fn UsedMappingResourcesScope(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_2.get(2usize, 2u8) as u8) } + } + #[inline] + pub fn set_UsedMappingResourcesScope(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_2.set(2usize, 2u8, val as u64) + } + } + #[inline] + pub fn Reserved2(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_2.get(4usize, 4u8) as u8) } + } + #[inline] + pub fn set_Reserved2(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_2.set(4usize, 4u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_2( + AvailableMappingResourcesScope: BYTE, + UsedMappingResourcesScope: BYTE, + Reserved2: BYTE, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 2u8, { + let AvailableMappingResourcesScope: u8 = + unsafe { ::std::mem::transmute(AvailableMappingResourcesScope) }; + AvailableMappingResourcesScope as u64 + }); + __bindgen_bitfield_unit.set(2usize, 2u8, { + let UsedMappingResourcesScope: u8 = + unsafe { ::std::mem::transmute(UsedMappingResourcesScope) }; + UsedMappingResourcesScope as u64 + }); + __bindgen_bitfield_unit.set(4usize, 4u8, { + let Reserved2: u8 = unsafe { ::std::mem::transmute(Reserved2) }; + Reserved2 as u64 + }); + __bindgen_bitfield_unit + } +} +pub type STORAGE_LB_PROVISIONING_MAP_RESOURCES = _STORAGE_LB_PROVISIONING_MAP_RESOURCES; +pub type PSTORAGE_LB_PROVISIONING_MAP_RESOURCES = *mut _STORAGE_LB_PROVISIONING_MAP_RESOURCES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_POWER_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub DeviceAttentionSupported: BOOLEAN, + pub AsynchronousNotificationSupported: BOOLEAN, + pub IdlePowerManagementEnabled: BOOLEAN, + pub D3ColdEnabled: BOOLEAN, + pub D3ColdSupported: BOOLEAN, + pub NoVerifyDuringIdlePower: BOOLEAN, + pub Reserved: [BYTE; 2usize], + pub IdleTimeoutInMS: DWORD, +} +pub type DEVICE_POWER_DESCRIPTOR = _DEVICE_POWER_DESCRIPTOR; +pub type PDEVICE_POWER_DESCRIPTOR = *mut _DEVICE_POWER_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_COPY_OFFLOAD_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub MaximumTokenLifetime: DWORD, + pub DefaultTokenLifetime: DWORD, + pub MaximumTransferSize: DWORDLONG, + pub OptimalTransferCount: DWORDLONG, + pub MaximumDataDescriptors: DWORD, + pub MaximumTransferLengthPerDescriptor: DWORD, + pub OptimalTransferLengthPerDescriptor: DWORD, + pub OptimalTransferLengthGranularity: WORD, + pub Reserved: [BYTE; 2usize], +} +pub type DEVICE_COPY_OFFLOAD_DESCRIPTOR = _DEVICE_COPY_OFFLOAD_DESCRIPTOR; +pub type PDEVICE_COPY_OFFLOAD_DESCRIPTOR = *mut _DEVICE_COPY_OFFLOAD_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_RESILIENCY_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub NameOffset: DWORD, + pub NumberOfLogicalCopies: DWORD, + pub NumberOfPhysicalCopies: DWORD, + pub PhysicalDiskRedundancy: DWORD, + pub NumberOfColumns: DWORD, + pub Interleave: DWORD, +} +pub type STORAGE_DEVICE_RESILIENCY_DESCRIPTOR = _STORAGE_DEVICE_RESILIENCY_DESCRIPTOR; +pub type PSTORAGE_DEVICE_RESILIENCY_DESCRIPTOR = *mut _STORAGE_DEVICE_RESILIENCY_DESCRIPTOR; +pub const _STORAGE_RPMB_FRAME_TYPE_StorageRpmbFrameTypeUnknown: _STORAGE_RPMB_FRAME_TYPE = 0; +pub const _STORAGE_RPMB_FRAME_TYPE_StorageRpmbFrameTypeStandard: _STORAGE_RPMB_FRAME_TYPE = 1; +pub const _STORAGE_RPMB_FRAME_TYPE_StorageRpmbFrameTypeMax: _STORAGE_RPMB_FRAME_TYPE = 2; +pub type _STORAGE_RPMB_FRAME_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_RPMB_FRAME_TYPE as STORAGE_RPMB_FRAME_TYPE; +pub type PSTORAGE_RPMB_FRAME_TYPE = *mut _STORAGE_RPMB_FRAME_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_RPMB_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub SizeInBytes: DWORD, + pub MaxReliableWriteSizeInBytes: DWORD, + pub FrameFormat: STORAGE_RPMB_FRAME_TYPE, +} +pub type STORAGE_RPMB_DESCRIPTOR = _STORAGE_RPMB_DESCRIPTOR; +pub type PSTORAGE_RPMB_DESCRIPTOR = *mut _STORAGE_RPMB_DESCRIPTOR; +pub const _STORAGE_CRYPTO_ALGORITHM_ID_StorageCryptoAlgorithmUnknown: _STORAGE_CRYPTO_ALGORITHM_ID = + 0; +pub const _STORAGE_CRYPTO_ALGORITHM_ID_StorageCryptoAlgorithmXTSAES: _STORAGE_CRYPTO_ALGORITHM_ID = + 1; +pub const _STORAGE_CRYPTO_ALGORITHM_ID_StorageCryptoAlgorithmBitlockerAESCBC: + _STORAGE_CRYPTO_ALGORITHM_ID = 2; +pub const _STORAGE_CRYPTO_ALGORITHM_ID_StorageCryptoAlgorithmAESECB: _STORAGE_CRYPTO_ALGORITHM_ID = + 3; +pub const _STORAGE_CRYPTO_ALGORITHM_ID_StorageCryptoAlgorithmESSIVAESCBC: + _STORAGE_CRYPTO_ALGORITHM_ID = 4; +pub const _STORAGE_CRYPTO_ALGORITHM_ID_StorageCryptoAlgorithmMax: _STORAGE_CRYPTO_ALGORITHM_ID = 5; +pub type _STORAGE_CRYPTO_ALGORITHM_ID = ::std::os::raw::c_int; +pub use self::_STORAGE_CRYPTO_ALGORITHM_ID as STORAGE_CRYPTO_ALGORITHM_ID; +pub type PSTORAGE_CRYPTO_ALGORITHM_ID = *mut _STORAGE_CRYPTO_ALGORITHM_ID; +pub const _STORAGE_CRYPTO_KEY_SIZE_StorageCryptoKeySizeUnknown: _STORAGE_CRYPTO_KEY_SIZE = 0; +pub const _STORAGE_CRYPTO_KEY_SIZE_StorageCryptoKeySize128Bits: _STORAGE_CRYPTO_KEY_SIZE = 1; +pub const _STORAGE_CRYPTO_KEY_SIZE_StorageCryptoKeySize192Bits: _STORAGE_CRYPTO_KEY_SIZE = 2; +pub const _STORAGE_CRYPTO_KEY_SIZE_StorageCryptoKeySize256Bits: _STORAGE_CRYPTO_KEY_SIZE = 3; +pub const _STORAGE_CRYPTO_KEY_SIZE_StorageCryptoKeySize512Bits: _STORAGE_CRYPTO_KEY_SIZE = 4; +pub type _STORAGE_CRYPTO_KEY_SIZE = ::std::os::raw::c_int; +pub use self::_STORAGE_CRYPTO_KEY_SIZE as STORAGE_CRYPTO_KEY_SIZE; +pub type PSTORAGE_CRYPTO_KEY_SIZE = *mut _STORAGE_CRYPTO_KEY_SIZE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_CRYPTO_CAPABILITY { + pub Version: DWORD, + pub Size: DWORD, + pub CryptoCapabilityIndex: DWORD, + pub AlgorithmId: STORAGE_CRYPTO_ALGORITHM_ID, + pub KeySize: STORAGE_CRYPTO_KEY_SIZE, + pub DataUnitSizeBitmask: DWORD, +} +pub type STORAGE_CRYPTO_CAPABILITY = _STORAGE_CRYPTO_CAPABILITY; +pub type PSTORAGE_CRYPTO_CAPABILITY = *mut _STORAGE_CRYPTO_CAPABILITY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_CRYPTO_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub NumKeysSupported: DWORD, + pub NumCryptoCapabilities: DWORD, + pub CryptoCapabilities: [STORAGE_CRYPTO_CAPABILITY; 1usize], +} +pub type STORAGE_CRYPTO_DESCRIPTOR = _STORAGE_CRYPTO_DESCRIPTOR; +pub type PSTORAGE_CRYPTO_DESCRIPTOR = *mut _STORAGE_CRYPTO_DESCRIPTOR; +pub const _STORAGE_TIER_MEDIA_TYPE_StorageTierMediaTypeUnspecified: _STORAGE_TIER_MEDIA_TYPE = 0; +pub const _STORAGE_TIER_MEDIA_TYPE_StorageTierMediaTypeDisk: _STORAGE_TIER_MEDIA_TYPE = 1; +pub const _STORAGE_TIER_MEDIA_TYPE_StorageTierMediaTypeSsd: _STORAGE_TIER_MEDIA_TYPE = 2; +pub const _STORAGE_TIER_MEDIA_TYPE_StorageTierMediaTypeScm: _STORAGE_TIER_MEDIA_TYPE = 4; +pub const _STORAGE_TIER_MEDIA_TYPE_StorageTierMediaTypeMax: _STORAGE_TIER_MEDIA_TYPE = 5; +pub type _STORAGE_TIER_MEDIA_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_TIER_MEDIA_TYPE as STORAGE_TIER_MEDIA_TYPE; +pub type PSTORAGE_TIER_MEDIA_TYPE = *mut _STORAGE_TIER_MEDIA_TYPE; +pub const _STORAGE_TIER_CLASS_StorageTierClassUnspecified: _STORAGE_TIER_CLASS = 0; +pub const _STORAGE_TIER_CLASS_StorageTierClassCapacity: _STORAGE_TIER_CLASS = 1; +pub const _STORAGE_TIER_CLASS_StorageTierClassPerformance: _STORAGE_TIER_CLASS = 2; +pub const _STORAGE_TIER_CLASS_StorageTierClassMax: _STORAGE_TIER_CLASS = 3; +pub type _STORAGE_TIER_CLASS = ::std::os::raw::c_int; +pub use self::_STORAGE_TIER_CLASS as STORAGE_TIER_CLASS; +pub type PSTORAGE_TIER_CLASS = *mut _STORAGE_TIER_CLASS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_TIER { + pub Id: GUID, + pub Name: [WCHAR; 256usize], + pub Description: [WCHAR; 256usize], + pub Flags: DWORDLONG, + pub ProvisionedCapacity: DWORDLONG, + pub MediaType: STORAGE_TIER_MEDIA_TYPE, + pub Class: STORAGE_TIER_CLASS, +} +pub type STORAGE_TIER = _STORAGE_TIER; +pub type PSTORAGE_TIER = *mut _STORAGE_TIER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_TIERING_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub TotalNumberOfTiers: DWORD, + pub NumberOfTiersReturned: DWORD, + pub Tiers: [STORAGE_TIER; 1usize], +} +pub type STORAGE_DEVICE_TIERING_DESCRIPTOR = _STORAGE_DEVICE_TIERING_DESCRIPTOR; +pub type PSTORAGE_DEVICE_TIERING_DESCRIPTOR = *mut _STORAGE_DEVICE_TIERING_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub NumberOfFaultDomains: DWORD, + pub FaultDomainIds: [GUID; 1usize], +} +pub type STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR = _STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR; +pub type PSTORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR = *mut _STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR; +pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeUnknown: _STORAGE_PROTOCOL_TYPE = 0; +pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeScsi: _STORAGE_PROTOCOL_TYPE = 1; +pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeAta: _STORAGE_PROTOCOL_TYPE = 2; +pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeNvme: _STORAGE_PROTOCOL_TYPE = 3; +pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeSd: _STORAGE_PROTOCOL_TYPE = 4; +pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeUfs: _STORAGE_PROTOCOL_TYPE = 5; +pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeProprietary: _STORAGE_PROTOCOL_TYPE = 126; +pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeMaxReserved: _STORAGE_PROTOCOL_TYPE = 127; +pub type _STORAGE_PROTOCOL_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_PROTOCOL_TYPE as STORAGE_PROTOCOL_TYPE; +pub type PSTORAGE_PROTOCOL_TYPE = *mut _STORAGE_PROTOCOL_TYPE; +pub const _STORAGE_PROTOCOL_NVME_DATA_TYPE_NVMeDataTypeUnknown: _STORAGE_PROTOCOL_NVME_DATA_TYPE = + 0; +pub const _STORAGE_PROTOCOL_NVME_DATA_TYPE_NVMeDataTypeIdentify: _STORAGE_PROTOCOL_NVME_DATA_TYPE = + 1; +pub const _STORAGE_PROTOCOL_NVME_DATA_TYPE_NVMeDataTypeLogPage: _STORAGE_PROTOCOL_NVME_DATA_TYPE = + 2; +pub const _STORAGE_PROTOCOL_NVME_DATA_TYPE_NVMeDataTypeFeature: _STORAGE_PROTOCOL_NVME_DATA_TYPE = + 3; +pub type _STORAGE_PROTOCOL_NVME_DATA_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_PROTOCOL_NVME_DATA_TYPE as STORAGE_PROTOCOL_NVME_DATA_TYPE; +pub type PSTORAGE_PROTOCOL_NVME_DATA_TYPE = *mut _STORAGE_PROTOCOL_NVME_DATA_TYPE; +pub const _STORAGE_PROTOCOL_ATA_DATA_TYPE_AtaDataTypeUnknown: _STORAGE_PROTOCOL_ATA_DATA_TYPE = 0; +pub const _STORAGE_PROTOCOL_ATA_DATA_TYPE_AtaDataTypeIdentify: _STORAGE_PROTOCOL_ATA_DATA_TYPE = 1; +pub const _STORAGE_PROTOCOL_ATA_DATA_TYPE_AtaDataTypeLogPage: _STORAGE_PROTOCOL_ATA_DATA_TYPE = 2; +pub type _STORAGE_PROTOCOL_ATA_DATA_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_PROTOCOL_ATA_DATA_TYPE as STORAGE_PROTOCOL_ATA_DATA_TYPE; +pub type PSTORAGE_PROTOCOL_ATA_DATA_TYPE = *mut _STORAGE_PROTOCOL_ATA_DATA_TYPE; +pub const _STORAGE_PROTOCOL_UFS_DATA_TYPE_UfsDataTypeUnknown: _STORAGE_PROTOCOL_UFS_DATA_TYPE = 0; +pub const _STORAGE_PROTOCOL_UFS_DATA_TYPE_UfsDataTypeQueryDescriptor: + _STORAGE_PROTOCOL_UFS_DATA_TYPE = 1; +pub const _STORAGE_PROTOCOL_UFS_DATA_TYPE_UfsDataTypeQueryAttribute: + _STORAGE_PROTOCOL_UFS_DATA_TYPE = 2; +pub const _STORAGE_PROTOCOL_UFS_DATA_TYPE_UfsDataTypeQueryFlag: _STORAGE_PROTOCOL_UFS_DATA_TYPE = 3; +pub const _STORAGE_PROTOCOL_UFS_DATA_TYPE_UfsDataTypeQueryDmeAttribute: + _STORAGE_PROTOCOL_UFS_DATA_TYPE = 4; +pub const _STORAGE_PROTOCOL_UFS_DATA_TYPE_UfsDataTypeQueryDmePeerAttribute: + _STORAGE_PROTOCOL_UFS_DATA_TYPE = 5; +pub const _STORAGE_PROTOCOL_UFS_DATA_TYPE_UfsDataTypeMax: _STORAGE_PROTOCOL_UFS_DATA_TYPE = 6; +pub type _STORAGE_PROTOCOL_UFS_DATA_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_PROTOCOL_UFS_DATA_TYPE as STORAGE_PROTOCOL_UFS_DATA_TYPE; +pub type PSTORAGE_PROTOCOL_UFS_DATA_TYPE = *mut _STORAGE_PROTOCOL_UFS_DATA_TYPE; +#[repr(C)] +#[derive(Copy, Clone)] +pub union _STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE { + pub __bindgen_anon_1: _STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE__bindgen_ty_1, + pub AsUlong: DWORD, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE__bindgen_ty_1 { + #[inline] + pub fn RetainAsynEvent(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_RetainAsynEvent(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn LogSpecificField(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 4u8) as u32) } + } + #[inline] + pub fn set_LogSpecificField(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 4u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } + } + #[inline] + pub fn set_Reserved(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 27u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + RetainAsynEvent: DWORD, + LogSpecificField: DWORD, + Reserved: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let RetainAsynEvent: u32 = unsafe { ::std::mem::transmute(RetainAsynEvent) }; + RetainAsynEvent as u64 + }); + __bindgen_bitfield_unit.set(1usize, 4u8, { + let LogSpecificField: u32 = unsafe { ::std::mem::transmute(LogSpecificField) }; + LogSpecificField as u64 + }); + __bindgen_bitfield_unit.set(5usize, 27u8, { + let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE = _STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE; +pub type PSTORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE = + *mut _STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_PROTOCOL_SPECIFIC_DATA { + pub ProtocolType: STORAGE_PROTOCOL_TYPE, + pub DataType: DWORD, + pub ProtocolDataRequestValue: DWORD, + pub ProtocolDataRequestSubValue: DWORD, + pub ProtocolDataOffset: DWORD, + pub ProtocolDataLength: DWORD, + pub FixedProtocolReturnData: DWORD, + pub ProtocolDataRequestSubValue2: DWORD, + pub ProtocolDataRequestSubValue3: DWORD, + pub ProtocolDataRequestSubValue4: DWORD, +} +pub type STORAGE_PROTOCOL_SPECIFIC_DATA = _STORAGE_PROTOCOL_SPECIFIC_DATA; +pub type PSTORAGE_PROTOCOL_SPECIFIC_DATA = *mut _STORAGE_PROTOCOL_SPECIFIC_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_PROTOCOL_SPECIFIC_DATA_EXT { + pub ProtocolType: STORAGE_PROTOCOL_TYPE, + pub DataType: DWORD, + pub ProtocolDataValue: DWORD, + pub ProtocolDataSubValue: DWORD, + pub ProtocolDataOffset: DWORD, + pub ProtocolDataLength: DWORD, + pub FixedProtocolReturnData: DWORD, + pub ProtocolDataSubValue2: DWORD, + pub ProtocolDataSubValue3: DWORD, + pub ProtocolDataSubValue4: DWORD, + pub ProtocolDataSubValue5: DWORD, + pub Reserved: [DWORD; 5usize], +} +pub type STORAGE_PROTOCOL_SPECIFIC_DATA_EXT = _STORAGE_PROTOCOL_SPECIFIC_DATA_EXT; +pub type PSTORAGE_PROTOCOL_SPECIFIC_DATA_EXT = *mut _STORAGE_PROTOCOL_SPECIFIC_DATA_EXT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_PROTOCOL_DATA_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub ProtocolSpecificData: STORAGE_PROTOCOL_SPECIFIC_DATA, +} +pub type STORAGE_PROTOCOL_DATA_DESCRIPTOR = _STORAGE_PROTOCOL_DATA_DESCRIPTOR; +pub type PSTORAGE_PROTOCOL_DATA_DESCRIPTOR = *mut _STORAGE_PROTOCOL_DATA_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT { + pub Version: DWORD, + pub Size: DWORD, + pub ProtocolSpecificData: STORAGE_PROTOCOL_SPECIFIC_DATA_EXT, +} +pub type STORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT = _STORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT; +pub type PSTORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT = *mut _STORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_TEMPERATURE_INFO { + pub Index: WORD, + pub Temperature: SHORT, + pub OverThreshold: SHORT, + pub UnderThreshold: SHORT, + pub OverThresholdChangable: BOOLEAN, + pub UnderThresholdChangable: BOOLEAN, + pub EventGenerated: BOOLEAN, + pub Reserved0: BYTE, + pub Reserved1: DWORD, +} +pub type STORAGE_TEMPERATURE_INFO = _STORAGE_TEMPERATURE_INFO; +pub type PSTORAGE_TEMPERATURE_INFO = *mut _STORAGE_TEMPERATURE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_TEMPERATURE_DATA_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub CriticalTemperature: SHORT, + pub WarningTemperature: SHORT, + pub InfoCount: WORD, + pub Reserved0: [BYTE; 2usize], + pub Reserved1: [DWORD; 2usize], + pub TemperatureInfo: [STORAGE_TEMPERATURE_INFO; 1usize], +} +pub type STORAGE_TEMPERATURE_DATA_DESCRIPTOR = _STORAGE_TEMPERATURE_DATA_DESCRIPTOR; +pub type PSTORAGE_TEMPERATURE_DATA_DESCRIPTOR = *mut _STORAGE_TEMPERATURE_DATA_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_TEMPERATURE_THRESHOLD { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: WORD, + pub Index: WORD, + pub Threshold: SHORT, + pub OverThreshold: BOOLEAN, + pub Reserved: BYTE, +} +pub type STORAGE_TEMPERATURE_THRESHOLD = _STORAGE_TEMPERATURE_THRESHOLD; +pub type PSTORAGE_TEMPERATURE_THRESHOLD = *mut _STORAGE_TEMPERATURE_THRESHOLD; +pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactorUnknown: _STORAGE_DEVICE_FORM_FACTOR = 0; +pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactor3_5: _STORAGE_DEVICE_FORM_FACTOR = 1; +pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactor2_5: _STORAGE_DEVICE_FORM_FACTOR = 2; +pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactor1_8: _STORAGE_DEVICE_FORM_FACTOR = 3; +pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactor1_8Less: _STORAGE_DEVICE_FORM_FACTOR = 4; +pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactorEmbedded: _STORAGE_DEVICE_FORM_FACTOR = 5; +pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactorMemoryCard: _STORAGE_DEVICE_FORM_FACTOR = 6; +pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactormSata: _STORAGE_DEVICE_FORM_FACTOR = 7; +pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactorM_2: _STORAGE_DEVICE_FORM_FACTOR = 8; +pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactorPCIeBoard: _STORAGE_DEVICE_FORM_FACTOR = 9; +pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactorDimm: _STORAGE_DEVICE_FORM_FACTOR = 10; +pub type _STORAGE_DEVICE_FORM_FACTOR = ::std::os::raw::c_int; +pub use self::_STORAGE_DEVICE_FORM_FACTOR as STORAGE_DEVICE_FORM_FACTOR; +pub type PSTORAGE_DEVICE_FORM_FACTOR = *mut _STORAGE_DEVICE_FORM_FACTOR; +pub const _STORAGE_COMPONENT_HEALTH_STATUS_HealthStatusUnknown: _STORAGE_COMPONENT_HEALTH_STATUS = + 0; +pub const _STORAGE_COMPONENT_HEALTH_STATUS_HealthStatusNormal: _STORAGE_COMPONENT_HEALTH_STATUS = 1; +pub const _STORAGE_COMPONENT_HEALTH_STATUS_HealthStatusThrottled: _STORAGE_COMPONENT_HEALTH_STATUS = + 2; +pub const _STORAGE_COMPONENT_HEALTH_STATUS_HealthStatusWarning: _STORAGE_COMPONENT_HEALTH_STATUS = + 3; +pub const _STORAGE_COMPONENT_HEALTH_STATUS_HealthStatusDisabled: _STORAGE_COMPONENT_HEALTH_STATUS = + 4; +pub const _STORAGE_COMPONENT_HEALTH_STATUS_HealthStatusFailed: _STORAGE_COMPONENT_HEALTH_STATUS = 5; +pub type _STORAGE_COMPONENT_HEALTH_STATUS = ::std::os::raw::c_int; +pub use self::_STORAGE_COMPONENT_HEALTH_STATUS as STORAGE_COMPONENT_HEALTH_STATUS; +pub type PSTORAGE_COMPONENT_HEALTH_STATUS = *mut _STORAGE_COMPONENT_HEALTH_STATUS; +#[repr(C)] +#[derive(Copy, Clone)] +pub union _STORAGE_SPEC_VERSION { + pub __bindgen_anon_1: _STORAGE_SPEC_VERSION__bindgen_ty_1, + pub AsUlong: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STORAGE_SPEC_VERSION__bindgen_ty_1 { + pub MinorVersion: _STORAGE_SPEC_VERSION__bindgen_ty_1__bindgen_ty_1, + pub MajorVersion: WORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _STORAGE_SPEC_VERSION__bindgen_ty_1__bindgen_ty_1 { + pub __bindgen_anon_1: _STORAGE_SPEC_VERSION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, + pub AsUshort: WORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_SPEC_VERSION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { + pub SubMinor: BYTE, + pub Minor: BYTE, +} +pub type STORAGE_SPEC_VERSION = _STORAGE_SPEC_VERSION; +pub type PSTORAGE_SPEC_VERSION = *mut _STORAGE_SPEC_VERSION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STORAGE_PHYSICAL_DEVICE_DATA { + pub DeviceId: DWORD, + pub Role: DWORD, + pub HealthStatus: STORAGE_COMPONENT_HEALTH_STATUS, + pub CommandProtocol: STORAGE_PROTOCOL_TYPE, + pub SpecVersion: STORAGE_SPEC_VERSION, + pub FormFactor: STORAGE_DEVICE_FORM_FACTOR, + pub Vendor: [BYTE; 8usize], + pub Model: [BYTE; 40usize], + pub FirmwareRevision: [BYTE; 16usize], + pub Capacity: DWORDLONG, + pub PhysicalLocation: [BYTE; 32usize], + pub Reserved: [DWORD; 2usize], +} +pub type STORAGE_PHYSICAL_DEVICE_DATA = _STORAGE_PHYSICAL_DEVICE_DATA; +pub type PSTORAGE_PHYSICAL_DEVICE_DATA = *mut _STORAGE_PHYSICAL_DEVICE_DATA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STORAGE_PHYSICAL_ADAPTER_DATA { + pub AdapterId: DWORD, + pub HealthStatus: STORAGE_COMPONENT_HEALTH_STATUS, + pub CommandProtocol: STORAGE_PROTOCOL_TYPE, + pub SpecVersion: STORAGE_SPEC_VERSION, + pub Vendor: [BYTE; 8usize], + pub Model: [BYTE; 40usize], + pub FirmwareRevision: [BYTE; 16usize], + pub PhysicalLocation: [BYTE; 32usize], + pub ExpanderConnected: BOOLEAN, + pub Reserved0: [BYTE; 3usize], + pub Reserved1: [DWORD; 3usize], +} +pub type STORAGE_PHYSICAL_ADAPTER_DATA = _STORAGE_PHYSICAL_ADAPTER_DATA; +pub type PSTORAGE_PHYSICAL_ADAPTER_DATA = *mut _STORAGE_PHYSICAL_ADAPTER_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_PHYSICAL_NODE_DATA { + pub NodeId: DWORD, + pub AdapterCount: DWORD, + pub AdapterDataLength: DWORD, + pub AdapterDataOffset: DWORD, + pub DeviceCount: DWORD, + pub DeviceDataLength: DWORD, + pub DeviceDataOffset: DWORD, + pub Reserved: [DWORD; 3usize], +} +pub type STORAGE_PHYSICAL_NODE_DATA = _STORAGE_PHYSICAL_NODE_DATA; +pub type PSTORAGE_PHYSICAL_NODE_DATA = *mut _STORAGE_PHYSICAL_NODE_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub NodeCount: DWORD, + pub Reserved: DWORD, + pub Node: [STORAGE_PHYSICAL_NODE_DATA; 1usize], +} +pub type STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR = _STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR; +pub type PSTORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR = *mut _STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub LunMaxIoCount: DWORD, + pub AdapterMaxIoCount: DWORD, +} +pub type STORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR = _STORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR; +pub type PSTORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR = *mut _STORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub Attributes: DWORD64, +} +pub type STORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR = _STORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR; +pub type PSTORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR = *mut _STORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR; +pub const _STORAGE_DISK_HEALTH_STATUS_DiskHealthUnknown: _STORAGE_DISK_HEALTH_STATUS = 0; +pub const _STORAGE_DISK_HEALTH_STATUS_DiskHealthUnhealthy: _STORAGE_DISK_HEALTH_STATUS = 1; +pub const _STORAGE_DISK_HEALTH_STATUS_DiskHealthWarning: _STORAGE_DISK_HEALTH_STATUS = 2; +pub const _STORAGE_DISK_HEALTH_STATUS_DiskHealthHealthy: _STORAGE_DISK_HEALTH_STATUS = 3; +pub const _STORAGE_DISK_HEALTH_STATUS_DiskHealthMax: _STORAGE_DISK_HEALTH_STATUS = 4; +pub type _STORAGE_DISK_HEALTH_STATUS = ::std::os::raw::c_int; +pub use self::_STORAGE_DISK_HEALTH_STATUS as STORAGE_DISK_HEALTH_STATUS; +pub type PSTORAGE_DISK_HEALTH_STATUS = *mut _STORAGE_DISK_HEALTH_STATUS; +pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusNone: _STORAGE_DISK_OPERATIONAL_STATUS = 0; +pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusUnknown: _STORAGE_DISK_OPERATIONAL_STATUS = + 1; +pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusOk: _STORAGE_DISK_OPERATIONAL_STATUS = 2; +pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusPredictingFailure: + _STORAGE_DISK_OPERATIONAL_STATUS = 3; +pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusInService: _STORAGE_DISK_OPERATIONAL_STATUS = + 4; +pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusHardwareError: + _STORAGE_DISK_OPERATIONAL_STATUS = 5; +pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusNotUsable: _STORAGE_DISK_OPERATIONAL_STATUS = + 6; +pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusTransientError: + _STORAGE_DISK_OPERATIONAL_STATUS = 7; +pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusMissing: _STORAGE_DISK_OPERATIONAL_STATUS = + 8; +pub type _STORAGE_DISK_OPERATIONAL_STATUS = ::std::os::raw::c_int; +pub use self::_STORAGE_DISK_OPERATIONAL_STATUS as STORAGE_DISK_OPERATIONAL_STATUS; +pub type PSTORAGE_DISK_OPERATIONAL_STATUS = *mut _STORAGE_DISK_OPERATIONAL_STATUS; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonUnknown: + _STORAGE_OPERATIONAL_STATUS_REASON = 0; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonScsiSenseCode: + _STORAGE_OPERATIONAL_STATUS_REASON = 1; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonMedia: _STORAGE_OPERATIONAL_STATUS_REASON = + 2; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonIo: _STORAGE_OPERATIONAL_STATUS_REASON = 3; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonThresholdExceeded: + _STORAGE_OPERATIONAL_STATUS_REASON = 4; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonLostData: + _STORAGE_OPERATIONAL_STATUS_REASON = 5; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonEnergySource: + _STORAGE_OPERATIONAL_STATUS_REASON = 6; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonConfiguration: + _STORAGE_OPERATIONAL_STATUS_REASON = 7; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonDeviceController: + _STORAGE_OPERATIONAL_STATUS_REASON = 8; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonMediaController: + _STORAGE_OPERATIONAL_STATUS_REASON = 9; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonComponent: + _STORAGE_OPERATIONAL_STATUS_REASON = 10; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonNVDIMM_N: + _STORAGE_OPERATIONAL_STATUS_REASON = 11; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonBackgroundOperation: + _STORAGE_OPERATIONAL_STATUS_REASON = 12; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonInvalidFirmware: + _STORAGE_OPERATIONAL_STATUS_REASON = 13; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonHealthCheck: + _STORAGE_OPERATIONAL_STATUS_REASON = 14; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonLostDataPersistence: + _STORAGE_OPERATIONAL_STATUS_REASON = 15; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonDisabledByPlatform: + _STORAGE_OPERATIONAL_STATUS_REASON = 16; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonLostWritePersistence: + _STORAGE_OPERATIONAL_STATUS_REASON = 17; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonDataPersistenceLossImminent: + _STORAGE_OPERATIONAL_STATUS_REASON = 18; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonWritePersistenceLossImminent: + _STORAGE_OPERATIONAL_STATUS_REASON = 19; +pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonMax: _STORAGE_OPERATIONAL_STATUS_REASON = + 20; +pub type _STORAGE_OPERATIONAL_STATUS_REASON = ::std::os::raw::c_int; +pub use self::_STORAGE_OPERATIONAL_STATUS_REASON as STORAGE_OPERATIONAL_STATUS_REASON; +pub type PSTORAGE_OPERATIONAL_STATUS_REASON = *mut _STORAGE_OPERATIONAL_STATUS_REASON; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STORAGE_OPERATIONAL_REASON { + pub Version: DWORD, + pub Size: DWORD, + pub Reason: STORAGE_OPERATIONAL_STATUS_REASON, + pub RawBytes: _STORAGE_OPERATIONAL_REASON__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _STORAGE_OPERATIONAL_REASON__bindgen_ty_1 { + pub ScsiSenseKey: _STORAGE_OPERATIONAL_REASON__bindgen_ty_1__bindgen_ty_1, + pub NVDIMM_N: _STORAGE_OPERATIONAL_REASON__bindgen_ty_1__bindgen_ty_2, + pub AsUlong: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_OPERATIONAL_REASON__bindgen_ty_1__bindgen_ty_1 { + pub SenseKey: BYTE, + pub ASC: BYTE, + pub ASCQ: BYTE, + pub Reserved: BYTE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_OPERATIONAL_REASON__bindgen_ty_1__bindgen_ty_2 { + pub CriticalHealth: BYTE, + pub ModuleHealth: [BYTE; 2usize], + pub ErrorThresholdStatus: BYTE, +} +pub type STORAGE_OPERATIONAL_REASON = _STORAGE_OPERATIONAL_REASON; +pub type PSTORAGE_OPERATIONAL_REASON = *mut _STORAGE_OPERATIONAL_REASON; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STORAGE_DEVICE_MANAGEMENT_STATUS { + pub Version: DWORD, + pub Size: DWORD, + pub Health: STORAGE_DISK_HEALTH_STATUS, + pub NumberOfOperationalStatus: DWORD, + pub NumberOfAdditionalReasons: DWORD, + pub OperationalStatus: [STORAGE_DISK_OPERATIONAL_STATUS; 16usize], + pub AdditionalReasons: [STORAGE_OPERATIONAL_REASON; 1usize], +} +pub type STORAGE_DEVICE_MANAGEMENT_STATUS = _STORAGE_DEVICE_MANAGEMENT_STATUS; +pub type PSTORAGE_DEVICE_MANAGEMENT_STATUS = *mut _STORAGE_DEVICE_MANAGEMENT_STATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_ADAPTER_SERIAL_NUMBER { + pub Version: DWORD, + pub Size: DWORD, + pub SerialNumber: [WCHAR; 128usize], +} +pub type STORAGE_ADAPTER_SERIAL_NUMBER = _STORAGE_ADAPTER_SERIAL_NUMBER; +pub type PSTORAGE_ADAPTER_SERIAL_NUMBER = *mut _STORAGE_ADAPTER_SERIAL_NUMBER; +pub const _STORAGE_ZONED_DEVICE_TYPES_ZonedDeviceTypeUnknown: _STORAGE_ZONED_DEVICE_TYPES = 0; +pub const _STORAGE_ZONED_DEVICE_TYPES_ZonedDeviceTypeHostManaged: _STORAGE_ZONED_DEVICE_TYPES = 1; +pub const _STORAGE_ZONED_DEVICE_TYPES_ZonedDeviceTypeHostAware: _STORAGE_ZONED_DEVICE_TYPES = 2; +pub const _STORAGE_ZONED_DEVICE_TYPES_ZonedDeviceTypeDeviceManaged: _STORAGE_ZONED_DEVICE_TYPES = 3; +pub type _STORAGE_ZONED_DEVICE_TYPES = ::std::os::raw::c_int; +pub use self::_STORAGE_ZONED_DEVICE_TYPES as STORAGE_ZONED_DEVICE_TYPES; +pub type PSTORAGE_ZONED_DEVICE_TYPES = *mut _STORAGE_ZONED_DEVICE_TYPES; +pub const _STORAGE_ZONE_TYPES_ZoneTypeUnknown: _STORAGE_ZONE_TYPES = 0; +pub const _STORAGE_ZONE_TYPES_ZoneTypeConventional: _STORAGE_ZONE_TYPES = 1; +pub const _STORAGE_ZONE_TYPES_ZoneTypeSequentialWriteRequired: _STORAGE_ZONE_TYPES = 2; +pub const _STORAGE_ZONE_TYPES_ZoneTypeSequentialWritePreferred: _STORAGE_ZONE_TYPES = 3; +pub const _STORAGE_ZONE_TYPES_ZoneTypeMax: _STORAGE_ZONE_TYPES = 4; +pub type _STORAGE_ZONE_TYPES = ::std::os::raw::c_int; +pub use self::_STORAGE_ZONE_TYPES as STORAGE_ZONE_TYPES; +pub type PSTORAGE_ZONE_TYPES = *mut _STORAGE_ZONE_TYPES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_ZONE_GROUP { + pub ZoneCount: DWORD, + pub ZoneType: STORAGE_ZONE_TYPES, + pub ZoneSize: DWORDLONG, +} +pub type STORAGE_ZONE_GROUP = _STORAGE_ZONE_GROUP; +pub type PSTORAGE_ZONE_GROUP = *mut _STORAGE_ZONE_GROUP; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STORAGE_ZONED_DEVICE_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub DeviceType: STORAGE_ZONED_DEVICE_TYPES, + pub ZoneCount: DWORD, + pub ZoneAttributes: _STORAGE_ZONED_DEVICE_DESCRIPTOR__bindgen_ty_1, + pub ZoneGroupCount: DWORD, + pub ZoneGroup: [STORAGE_ZONE_GROUP; 1usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _STORAGE_ZONED_DEVICE_DESCRIPTOR__bindgen_ty_1 { + pub SequentialRequiredZone: _STORAGE_ZONED_DEVICE_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1, + pub SequentialPreferredZone: _STORAGE_ZONED_DEVICE_DESCRIPTOR__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_ZONED_DEVICE_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1 { + pub MaxOpenZoneCount: DWORD, + pub UnrestrictedRead: BOOLEAN, + pub Reserved: [BYTE; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_ZONED_DEVICE_DESCRIPTOR__bindgen_ty_1__bindgen_ty_2 { + pub OptimalOpenZoneCount: DWORD, + pub Reserved: DWORD, +} +pub type STORAGE_ZONED_DEVICE_DESCRIPTOR = _STORAGE_ZONED_DEVICE_DESCRIPTOR; +pub type PSTORAGE_ZONED_DEVICE_DESCRIPTOR = *mut _STORAGE_ZONED_DEVICE_DESCRIPTOR; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DEVICE_LOCATION { + pub Socket: DWORD, + pub Slot: DWORD, + pub Adapter: DWORD, + pub Port: DWORD, + pub __bindgen_anon_1: _DEVICE_LOCATION__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DEVICE_LOCATION__bindgen_ty_1 { + pub __bindgen_anon_1: _DEVICE_LOCATION__bindgen_ty_1__bindgen_ty_1, + pub __bindgen_anon_2: _DEVICE_LOCATION__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_LOCATION__bindgen_ty_1__bindgen_ty_1 { + pub Channel: DWORD, + pub Device: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_LOCATION__bindgen_ty_1__bindgen_ty_2 { + pub Target: DWORD, + pub Lun: DWORD, +} +pub type DEVICE_LOCATION = _DEVICE_LOCATION; +pub type PDEVICE_LOCATION = *mut _DEVICE_LOCATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STORAGE_DEVICE_LOCATION_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub Location: DEVICE_LOCATION, + pub StringOffset: DWORD, +} +pub type STORAGE_DEVICE_LOCATION_DESCRIPTOR = _STORAGE_DEVICE_LOCATION_DESCRIPTOR; +pub type PSTORAGE_DEVICE_LOCATION_DESCRIPTOR = *mut _STORAGE_DEVICE_LOCATION_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_NUMA_PROPERTY { + pub Version: DWORD, + pub Size: DWORD, + pub NumaNode: DWORD, +} +pub type STORAGE_DEVICE_NUMA_PROPERTY = _STORAGE_DEVICE_NUMA_PROPERTY; +pub type PSTORAGE_DEVICE_NUMA_PROPERTY = *mut _STORAGE_DEVICE_NUMA_PROPERTY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT { + pub Version: DWORD, + pub Size: DWORD, + pub UnsafeShutdownCount: DWORD, +} +pub type STORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT = _STORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT; +pub type PSTORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT = *mut _STORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_HW_ENDURANCE_INFO { + pub ValidFields: DWORD, + pub GroupId: DWORD, + pub Flags: _STORAGE_HW_ENDURANCE_INFO__bindgen_ty_1, + pub LifePercentage: DWORD, + pub BytesReadCount: [BYTE; 16usize], + pub ByteWriteCount: [BYTE; 16usize], +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_HW_ENDURANCE_INFO__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _STORAGE_HW_ENDURANCE_INFO__bindgen_ty_1 { + #[inline] + pub fn Shared(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_Shared(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } + } + #[inline] + pub fn set_Reserved(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 31u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1(Shared: DWORD, Reserved: DWORD) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let Shared: u32 = unsafe { ::std::mem::transmute(Shared) }; + Shared as u64 + }); + __bindgen_bitfield_unit.set(1usize, 31u8, { + let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type STORAGE_HW_ENDURANCE_INFO = _STORAGE_HW_ENDURANCE_INFO; +pub type PSTORAGE_HW_ENDURANCE_INFO = *mut _STORAGE_HW_ENDURANCE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub EnduranceInfo: STORAGE_HW_ENDURANCE_INFO, +} +pub type STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR = _STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR; +pub type PSTORAGE_HW_ENDURANCE_DATA_DESCRIPTOR = *mut _STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_LED_STATE_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub State: DWORDLONG, +} +pub type STORAGE_DEVICE_LED_STATE_DESCRIPTOR = _STORAGE_DEVICE_LED_STATE_DESCRIPTOR; +pub type PSTORAGE_DEVICE_LED_STATE_DESCRIPTOR = *mut _STORAGE_DEVICE_LED_STATE_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY { + pub Version: DWORD, + pub Size: DWORD, + pub SupportsSelfEncryption: BOOLEAN, +} +pub type STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY = _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY; +pub type PSTORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY = *mut _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY; +pub const _STORAGE_ENCRYPTION_TYPE_StorageEncryptionTypeUnknown: _STORAGE_ENCRYPTION_TYPE = 0; +pub const _STORAGE_ENCRYPTION_TYPE_StorageEncryptionTypeEDrive: _STORAGE_ENCRYPTION_TYPE = 1; +pub const _STORAGE_ENCRYPTION_TYPE_StorageEncryptionTypeTcgOpal: _STORAGE_ENCRYPTION_TYPE = 2; +pub type _STORAGE_ENCRYPTION_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_ENCRYPTION_TYPE as STORAGE_ENCRYPTION_TYPE; +pub type PSTORAGE_ENCRYPTION_TYPE = *mut _STORAGE_ENCRYPTION_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2 { + pub Version: DWORD, + pub Size: DWORD, + pub SupportsSelfEncryption: BOOLEAN, + pub EncryptionType: STORAGE_ENCRYPTION_TYPE, +} +pub type STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2 = _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2; +pub type PSTORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2 = + *mut _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_FRU_ID_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub IdentifierSize: DWORD, + pub Identifier: [BYTE; 1usize], +} +pub type STORAGE_FRU_ID_DESCRIPTOR = _STORAGE_FRU_ID_DESCRIPTOR; +pub type PSTORAGE_FRU_ID_DESCRIPTOR = *mut _STORAGE_FRU_ID_DESCRIPTOR; +pub type DEVICE_DATA_MANAGEMENT_SET_ACTION = DWORD; +pub type DEVICE_DSM_ACTION = DWORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DATA_SET_RANGE { + pub StartingOffset: LONGLONG, + pub LengthInBytes: DWORDLONG, +} +pub type DEVICE_DATA_SET_RANGE = _DEVICE_DATA_SET_RANGE; +pub type PDEVICE_DATA_SET_RANGE = *mut _DEVICE_DATA_SET_RANGE; +pub type DEVICE_DSM_RANGE = _DEVICE_DATA_SET_RANGE; +pub type PDEVICE_DSM_RANGE = *mut _DEVICE_DATA_SET_RANGE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_MANAGE_DATA_SET_ATTRIBUTES { + pub Size: DWORD, + pub Action: DEVICE_DSM_ACTION, + pub Flags: DWORD, + pub ParameterBlockOffset: DWORD, + pub ParameterBlockLength: DWORD, + pub DataSetRangesOffset: DWORD, + pub DataSetRangesLength: DWORD, +} +pub type DEVICE_MANAGE_DATA_SET_ATTRIBUTES = _DEVICE_MANAGE_DATA_SET_ATTRIBUTES; +pub type PDEVICE_MANAGE_DATA_SET_ATTRIBUTES = *mut _DEVICE_MANAGE_DATA_SET_ATTRIBUTES; +pub type DEVICE_DSM_INPUT = _DEVICE_MANAGE_DATA_SET_ATTRIBUTES; +pub type PDEVICE_DSM_INPUT = *mut _DEVICE_MANAGE_DATA_SET_ATTRIBUTES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT { + pub Size: DWORD, + pub Action: DEVICE_DSM_ACTION, + pub Flags: DWORD, + pub OperationStatus: DWORD, + pub ExtendedError: DWORD, + pub TargetDetailedError: DWORD, + pub ReservedStatus: DWORD, + pub OutputBlockOffset: DWORD, + pub OutputBlockLength: DWORD, +} +pub type DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT = _DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT; +pub type PDEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT = *mut _DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT; +pub type DEVICE_DSM_OUTPUT = _DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT; +pub type PDEVICE_DSM_OUTPUT = *mut _DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DSM_DEFINITION { + pub Action: DEVICE_DSM_ACTION, + pub SingleRange: BOOLEAN, + pub ParameterBlockAlignment: DWORD, + pub ParameterBlockLength: DWORD, + pub HasOutput: BOOLEAN, + pub OutputBlockAlignment: DWORD, + pub OutputBlockLength: DWORD, +} +pub type DEVICE_DSM_DEFINITION = _DEVICE_DSM_DEFINITION; +pub type PDEVICE_DSM_DEFINITION = *mut _DEVICE_DSM_DEFINITION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DSM_NOTIFICATION_PARAMETERS { + pub Size: DWORD, + pub Flags: DWORD, + pub NumFileTypeIDs: DWORD, + pub FileTypeID: [GUID; 1usize], +} +pub type DEVICE_DSM_NOTIFICATION_PARAMETERS = _DEVICE_DSM_NOTIFICATION_PARAMETERS; +pub type PDEVICE_DSM_NOTIFICATION_PARAMETERS = *mut _DEVICE_DSM_NOTIFICATION_PARAMETERS; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STORAGE_OFFLOAD_TOKEN { + pub TokenType: [BYTE; 4usize], + pub Reserved: [BYTE; 2usize], + pub TokenIdLength: [BYTE; 2usize], + pub __bindgen_anon_1: _STORAGE_OFFLOAD_TOKEN__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _STORAGE_OFFLOAD_TOKEN__bindgen_ty_1 { + pub StorageOffloadZeroDataToken: _STORAGE_OFFLOAD_TOKEN__bindgen_ty_1__bindgen_ty_1, + pub Token: [BYTE; 504usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_OFFLOAD_TOKEN__bindgen_ty_1__bindgen_ty_1 { + pub Reserved2: [BYTE; 504usize], +} +pub type STORAGE_OFFLOAD_TOKEN = _STORAGE_OFFLOAD_TOKEN; +pub type PSTORAGE_OFFLOAD_TOKEN = *mut _STORAGE_OFFLOAD_TOKEN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DSM_OFFLOAD_READ_PARAMETERS { + pub Flags: DWORD, + pub TimeToLive: DWORD, + pub Reserved: [DWORD; 2usize], +} +pub type DEVICE_DSM_OFFLOAD_READ_PARAMETERS = _DEVICE_DSM_OFFLOAD_READ_PARAMETERS; +pub type PDEVICE_DSM_OFFLOAD_READ_PARAMETERS = *mut _DEVICE_DSM_OFFLOAD_READ_PARAMETERS; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STORAGE_OFFLOAD_READ_OUTPUT { + pub OffloadReadFlags: DWORD, + pub Reserved: DWORD, + pub LengthProtected: DWORDLONG, + pub TokenLength: DWORD, + pub Token: STORAGE_OFFLOAD_TOKEN, +} +pub type STORAGE_OFFLOAD_READ_OUTPUT = _STORAGE_OFFLOAD_READ_OUTPUT; +pub type PSTORAGE_OFFLOAD_READ_OUTPUT = *mut _STORAGE_OFFLOAD_READ_OUTPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS { + pub Flags: DWORD, + pub Reserved: DWORD, + pub TokenOffset: DWORDLONG, + pub Token: STORAGE_OFFLOAD_TOKEN, +} +pub type DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS = _DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS; +pub type PDEVICE_DSM_OFFLOAD_WRITE_PARAMETERS = *mut _DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_OFFLOAD_WRITE_OUTPUT { + pub OffloadWriteFlags: DWORD, + pub Reserved: DWORD, + pub LengthCopied: DWORDLONG, +} +pub type STORAGE_OFFLOAD_WRITE_OUTPUT = _STORAGE_OFFLOAD_WRITE_OUTPUT; +pub type PSTORAGE_OFFLOAD_WRITE_OUTPUT = *mut _STORAGE_OFFLOAD_WRITE_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DATA_SET_LBP_STATE_PARAMETERS { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub OutputVersion: DWORD, +} +pub type DEVICE_DATA_SET_LBP_STATE_PARAMETERS = _DEVICE_DATA_SET_LBP_STATE_PARAMETERS; +pub type PDEVICE_DATA_SET_LBP_STATE_PARAMETERS = *mut _DEVICE_DATA_SET_LBP_STATE_PARAMETERS; +pub type DEVICE_DSM_ALLOCATION_PARAMETERS = _DEVICE_DATA_SET_LBP_STATE_PARAMETERS; +pub type PDEVICE_DSM_ALLOCATION_PARAMETERS = *mut _DEVICE_DATA_SET_LBP_STATE_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DATA_SET_LB_PROVISIONING_STATE { + pub Size: DWORD, + pub Version: DWORD, + pub SlabSizeInBytes: DWORDLONG, + pub SlabOffsetDeltaInBytes: DWORD, + pub SlabAllocationBitMapBitCount: DWORD, + pub SlabAllocationBitMapLength: DWORD, + pub SlabAllocationBitMap: [DWORD; 1usize], +} +pub type DEVICE_DATA_SET_LB_PROVISIONING_STATE = _DEVICE_DATA_SET_LB_PROVISIONING_STATE; +pub type PDEVICE_DATA_SET_LB_PROVISIONING_STATE = *mut _DEVICE_DATA_SET_LB_PROVISIONING_STATE; +pub type DEVICE_DSM_ALLOCATION_OUTPUT = _DEVICE_DATA_SET_LB_PROVISIONING_STATE; +pub type PDEVICE_DSM_ALLOCATION_OUTPUT = *mut _DEVICE_DATA_SET_LB_PROVISIONING_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2 { + pub Size: DWORD, + pub Version: DWORD, + pub SlabSizeInBytes: DWORDLONG, + pub SlabOffsetDeltaInBytes: DWORDLONG, + pub SlabAllocationBitMapBitCount: DWORD, + pub SlabAllocationBitMapLength: DWORD, + pub SlabAllocationBitMap: [DWORD; 1usize], +} +pub type DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2 = _DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2; +pub type PDEVICE_DATA_SET_LB_PROVISIONING_STATE_V2 = *mut _DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2; +pub type DEVICE_DSM_ALLOCATION_OUTPUT2 = _DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2; +pub type PDEVICE_DSM_ALLOCATION_OUTPUT2 = *mut _DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DATA_SET_REPAIR_PARAMETERS { + pub NumberOfRepairCopies: DWORD, + pub SourceCopy: DWORD, + pub RepairCopies: [DWORD; 1usize], +} +pub type DEVICE_DATA_SET_REPAIR_PARAMETERS = _DEVICE_DATA_SET_REPAIR_PARAMETERS; +pub type PDEVICE_DATA_SET_REPAIR_PARAMETERS = *mut _DEVICE_DATA_SET_REPAIR_PARAMETERS; +pub type DEVICE_DSM_REPAIR_PARAMETERS = _DEVICE_DATA_SET_REPAIR_PARAMETERS; +pub type PDEVICE_DSM_REPAIR_PARAMETERS = *mut _DEVICE_DATA_SET_REPAIR_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DATA_SET_REPAIR_OUTPUT { + pub ParityExtent: DEVICE_DSM_RANGE, +} +pub type DEVICE_DATA_SET_REPAIR_OUTPUT = _DEVICE_DATA_SET_REPAIR_OUTPUT; +pub type PDEVICE_DATA_SET_REPAIR_OUTPUT = *mut _DEVICE_DATA_SET_REPAIR_OUTPUT; +pub type DEVICE_DSM_REPAIR_OUTPUT = _DEVICE_DATA_SET_REPAIR_OUTPUT; +pub type PDEVICE_DSM_REPAIR_OUTPUT = *mut _DEVICE_DATA_SET_REPAIR_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DATA_SET_SCRUB_OUTPUT { + pub BytesProcessed: DWORDLONG, + pub BytesRepaired: DWORDLONG, + pub BytesFailed: DWORDLONG, +} +pub type DEVICE_DATA_SET_SCRUB_OUTPUT = _DEVICE_DATA_SET_SCRUB_OUTPUT; +pub type PDEVICE_DATA_SET_SCRUB_OUTPUT = *mut _DEVICE_DATA_SET_SCRUB_OUTPUT; +pub type DEVICE_DSM_SCRUB_OUTPUT = _DEVICE_DATA_SET_SCRUB_OUTPUT; +pub type PDEVICE_DSM_SCRUB_OUTPUT = *mut _DEVICE_DATA_SET_SCRUB_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DATA_SET_SCRUB_EX_OUTPUT { + pub BytesProcessed: DWORDLONG, + pub BytesRepaired: DWORDLONG, + pub BytesFailed: DWORDLONG, + pub ParityExtent: DEVICE_DSM_RANGE, + pub BytesScrubbed: DWORDLONG, +} +pub type DEVICE_DATA_SET_SCRUB_EX_OUTPUT = _DEVICE_DATA_SET_SCRUB_EX_OUTPUT; +pub type PDEVICE_DATA_SET_SCRUB_EX_OUTPUT = *mut _DEVICE_DATA_SET_SCRUB_EX_OUTPUT; +pub type DEVICE_DSM_SCRUB_OUTPUT2 = _DEVICE_DATA_SET_SCRUB_EX_OUTPUT; +pub type PDEVICE_DSM_SCRUB_OUTPUT2 = *mut _DEVICE_DATA_SET_SCRUB_EX_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DSM_TIERING_QUERY_INPUT { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub NumberOfTierIds: DWORD, + pub TierIds: [GUID; 1usize], +} +pub type DEVICE_DSM_TIERING_QUERY_INPUT = _DEVICE_DSM_TIERING_QUERY_INPUT; +pub type PDEVICE_DSM_TIERING_QUERY_INPUT = *mut _DEVICE_DSM_TIERING_QUERY_INPUT; +pub type DEVICE_DSM_TIERING_QUERY_PARAMETERS = _DEVICE_DSM_TIERING_QUERY_INPUT; +pub type PDEVICE_DSM_TIERING_QUERY_PARAMETERS = *mut _DEVICE_DSM_TIERING_QUERY_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_TIER_REGION { + pub TierId: GUID, + pub Offset: DWORDLONG, + pub Length: DWORDLONG, +} +pub type STORAGE_TIER_REGION = _STORAGE_TIER_REGION; +pub type PSTORAGE_TIER_REGION = *mut _STORAGE_TIER_REGION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DSM_TIERING_QUERY_OUTPUT { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub Reserved: DWORD, + pub Alignment: DWORDLONG, + pub TotalNumberOfRegions: DWORD, + pub NumberOfRegionsReturned: DWORD, + pub Regions: [STORAGE_TIER_REGION; 1usize], +} +pub type DEVICE_DSM_TIERING_QUERY_OUTPUT = _DEVICE_DSM_TIERING_QUERY_OUTPUT; +pub type PDEVICE_DSM_TIERING_QUERY_OUTPUT = *mut _DEVICE_DSM_TIERING_QUERY_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS { + pub Size: DWORD, + pub TargetPriority: BYTE, + pub Reserved: [BYTE; 3usize], +} +pub type DEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS = + _DEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS; +pub type PDEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS = + *mut _DEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT { + pub TopologyRangeBytes: DWORDLONG, + pub TopologyId: [BYTE; 16usize], +} +pub type DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT = _DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT; +pub type PDEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT = *mut _DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT; +pub type DEVICE_DSM_TOPOLOGY_ID_QUERY_OUTPUT = _DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT; +pub type PDEVICE_DSM_TOPOLOGY_ID_QUERY_OUTPUT = *mut _DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_STORAGE_ADDRESS_RANGE { + pub StartAddress: LONGLONG, + pub LengthInBytes: DWORDLONG, +} +pub type DEVICE_STORAGE_ADDRESS_RANGE = _DEVICE_STORAGE_ADDRESS_RANGE; +pub type PDEVICE_STORAGE_ADDRESS_RANGE = *mut _DEVICE_STORAGE_ADDRESS_RANGE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT { + pub Version: DWORD, + pub Flags: DWORD, + pub TotalNumberOfRanges: DWORD, + pub NumberOfRangesReturned: DWORD, + pub Ranges: [DEVICE_STORAGE_ADDRESS_RANGE; 1usize], +} +pub type DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT = _DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT; +pub type PDEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT = *mut _DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DSM_REPORT_ZONES_PARAMETERS { + pub Size: DWORD, + pub ReportOption: BYTE, + pub Partial: BYTE, + pub Reserved: [BYTE; 2usize], +} +pub type DEVICE_DSM_REPORT_ZONES_PARAMETERS = _DEVICE_DSM_REPORT_ZONES_PARAMETERS; +pub type PDEVICE_DSM_REPORT_ZONES_PARAMETERS = *mut _DEVICE_DSM_REPORT_ZONES_PARAMETERS; +pub const _STORAGE_ZONES_ATTRIBUTES_ZonesAttributeTypeAndLengthMayDifferent: + _STORAGE_ZONES_ATTRIBUTES = 0; +pub const _STORAGE_ZONES_ATTRIBUTES_ZonesAttributeTypeSameLengthSame: _STORAGE_ZONES_ATTRIBUTES = 1; +pub const _STORAGE_ZONES_ATTRIBUTES_ZonesAttributeTypeSameLastZoneLengthDifferent: + _STORAGE_ZONES_ATTRIBUTES = 2; +pub const _STORAGE_ZONES_ATTRIBUTES_ZonesAttributeTypeMayDifferentLengthSame: + _STORAGE_ZONES_ATTRIBUTES = 3; +pub type _STORAGE_ZONES_ATTRIBUTES = ::std::os::raw::c_int; +pub use self::_STORAGE_ZONES_ATTRIBUTES as STORAGE_ZONES_ATTRIBUTES; +pub type PSTORAGE_ZONES_ATTRIBUTES = *mut _STORAGE_ZONES_ATTRIBUTES; +pub const _STORAGE_ZONE_CONDITION_ZoneConditionConventional: _STORAGE_ZONE_CONDITION = 0; +pub const _STORAGE_ZONE_CONDITION_ZoneConditionEmpty: _STORAGE_ZONE_CONDITION = 1; +pub const _STORAGE_ZONE_CONDITION_ZoneConditionImplicitlyOpened: _STORAGE_ZONE_CONDITION = 2; +pub const _STORAGE_ZONE_CONDITION_ZoneConditionExplicitlyOpened: _STORAGE_ZONE_CONDITION = 3; +pub const _STORAGE_ZONE_CONDITION_ZoneConditionClosed: _STORAGE_ZONE_CONDITION = 4; +pub const _STORAGE_ZONE_CONDITION_ZoneConditionReadOnly: _STORAGE_ZONE_CONDITION = 13; +pub const _STORAGE_ZONE_CONDITION_ZoneConditionFull: _STORAGE_ZONE_CONDITION = 14; +pub const _STORAGE_ZONE_CONDITION_ZoneConditionOffline: _STORAGE_ZONE_CONDITION = 15; +pub type _STORAGE_ZONE_CONDITION = ::std::os::raw::c_int; +pub use self::_STORAGE_ZONE_CONDITION as STORAGE_ZONE_CONDITION; +pub type PSTORAGE_ZONE_CONDITION = *mut _STORAGE_ZONE_CONDITION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_ZONE_DESCRIPTOR { + pub Size: DWORD, + pub ZoneType: STORAGE_ZONE_TYPES, + pub ZoneCondition: STORAGE_ZONE_CONDITION, + pub ResetWritePointerRecommend: BOOLEAN, + pub Reserved0: [BYTE; 3usize], + pub ZoneSize: DWORDLONG, + pub WritePointerOffset: DWORDLONG, +} +pub type STORAGE_ZONE_DESCRIPTOR = _STORAGE_ZONE_DESCRIPTOR; +pub type PSTORAGE_ZONE_DESCRIPTOR = *mut _STORAGE_ZONE_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DSM_REPORT_ZONES_DATA { + pub Size: DWORD, + pub ZoneCount: DWORD, + pub Attributes: STORAGE_ZONES_ATTRIBUTES, + pub Reserved0: DWORD, + pub ZoneDescriptors: [STORAGE_ZONE_DESCRIPTOR; 1usize], +} +pub type DEVICE_DSM_REPORT_ZONES_DATA = _DEVICE_DSM_REPORT_ZONES_DATA; +pub type PDEVICE_DSM_REPORT_ZONES_DATA = *mut _DEVICE_DSM_REPORT_ZONES_DATA; +pub type DEVICE_DSM_REPORT_ZONES_OUTPUT = _DEVICE_DSM_REPORT_ZONES_DATA; +pub type PDEVICE_DSM_REPORT_ZONES_OUTPUT = *mut _DEVICE_DSM_REPORT_ZONES_DATA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DEVICE_STORAGE_RANGE_ATTRIBUTES { + pub LengthInBytes: DWORDLONG, + pub __bindgen_anon_1: _DEVICE_STORAGE_RANGE_ATTRIBUTES__bindgen_ty_1, + pub Reserved: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DEVICE_STORAGE_RANGE_ATTRIBUTES__bindgen_ty_1 { + pub AllFlags: DWORD, + pub __bindgen_anon_1: _DEVICE_STORAGE_RANGE_ATTRIBUTES__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_STORAGE_RANGE_ATTRIBUTES__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 3usize], +} +impl _DEVICE_STORAGE_RANGE_ATTRIBUTES__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn IsRangeBad(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_IsRangeBad(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1(IsRangeBad: DWORD) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let IsRangeBad: u32 = unsafe { ::std::mem::transmute(IsRangeBad) }; + IsRangeBad as u64 + }); + __bindgen_bitfield_unit + } +} +pub type DEVICE_STORAGE_RANGE_ATTRIBUTES = _DEVICE_STORAGE_RANGE_ATTRIBUTES; +pub type PDEVICE_STORAGE_RANGE_ATTRIBUTES = *mut _DEVICE_STORAGE_RANGE_ATTRIBUTES; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DEVICE_DSM_RANGE_ERROR_INFO { + pub Version: DWORD, + pub Flags: DWORD, + pub TotalNumberOfRanges: DWORD, + pub NumberOfRangesReturned: DWORD, + pub Ranges: [DEVICE_STORAGE_RANGE_ATTRIBUTES; 1usize], +} +pub type DEVICE_DSM_RANGE_ERROR_INFO = _DEVICE_DSM_RANGE_ERROR_INFO; +pub type PDEVICE_DSM_RANGE_ERROR_INFO = *mut _DEVICE_DSM_RANGE_ERROR_INFO; +pub type DEVICE_DSM_RANGE_ERROR_OUTPUT = _DEVICE_DSM_RANGE_ERROR_INFO; +pub type PDEVICE_DSM_RANGE_ERROR_OUTPUT = *mut _DEVICE_DSM_RANGE_ERROR_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DSM_LOST_QUERY_PARAMETERS { + pub Version: DWORD, + pub Granularity: DWORDLONG, +} +pub type DEVICE_DSM_LOST_QUERY_PARAMETERS = _DEVICE_DSM_LOST_QUERY_PARAMETERS; +pub type PDEVICE_DSM_LOST_QUERY_PARAMETERS = *mut _DEVICE_DSM_LOST_QUERY_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DSM_LOST_QUERY_OUTPUT { + pub Version: DWORD, + pub Size: DWORD, + pub Alignment: DWORDLONG, + pub NumberOfBits: DWORD, + pub BitMap: [DWORD; 1usize], +} +pub type DEVICE_DSM_LOST_QUERY_OUTPUT = _DEVICE_DSM_LOST_QUERY_OUTPUT; +pub type PDEVICE_DSM_LOST_QUERY_OUTPUT = *mut _DEVICE_DSM_LOST_QUERY_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DSM_FREE_SPACE_OUTPUT { + pub Version: DWORD, + pub FreeSpace: DWORDLONG, +} +pub type DEVICE_DSM_FREE_SPACE_OUTPUT = _DEVICE_DSM_FREE_SPACE_OUTPUT; +pub type PDEVICE_DSM_FREE_SPACE_OUTPUT = *mut _DEVICE_DSM_FREE_SPACE_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_DSM_CONVERSION_OUTPUT { + pub Version: DWORD, + pub Source: GUID, +} +pub type DEVICE_DSM_CONVERSION_OUTPUT = _DEVICE_DSM_CONVERSION_OUTPUT; +pub type PDEVICE_DSM_CONVERSION_OUTPUT = *mut _DEVICE_DSM_CONVERSION_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_GET_BC_PROPERTIES_OUTPUT { + pub MaximumRequestsPerPeriod: DWORD, + pub MinimumPeriod: DWORD, + pub MaximumRequestSize: DWORDLONG, + pub EstimatedTimePerRequest: DWORD, + pub NumOutStandingRequests: DWORD, + pub RequestSize: DWORDLONG, +} +pub type STORAGE_GET_BC_PROPERTIES_OUTPUT = _STORAGE_GET_BC_PROPERTIES_OUTPUT; +pub type PSTORAGE_GET_BC_PROPERTIES_OUTPUT = *mut _STORAGE_GET_BC_PROPERTIES_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_ALLOCATE_BC_STREAM_INPUT { + pub Version: DWORD, + pub RequestsPerPeriod: DWORD, + pub Period: DWORD, + pub RetryFailures: BOOLEAN, + pub Discardable: BOOLEAN, + pub Reserved1: [BOOLEAN; 2usize], + pub AccessType: DWORD, + pub AccessMode: DWORD, +} +pub type STORAGE_ALLOCATE_BC_STREAM_INPUT = _STORAGE_ALLOCATE_BC_STREAM_INPUT; +pub type PSTORAGE_ALLOCATE_BC_STREAM_INPUT = *mut _STORAGE_ALLOCATE_BC_STREAM_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_ALLOCATE_BC_STREAM_OUTPUT { + pub RequestSize: DWORDLONG, + pub NumOutStandingRequests: DWORD, +} +pub type STORAGE_ALLOCATE_BC_STREAM_OUTPUT = _STORAGE_ALLOCATE_BC_STREAM_OUTPUT; +pub type PSTORAGE_ALLOCATE_BC_STREAM_OUTPUT = *mut _STORAGE_ALLOCATE_BC_STREAM_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_PRIORITY_HINT_SUPPORT { + pub SupportFlags: DWORD, +} +pub type STORAGE_PRIORITY_HINT_SUPPORT = _STORAGE_PRIORITY_HINT_SUPPORT; +pub type PSTORAGE_PRIORITY_HINT_SUPPORT = *mut _STORAGE_PRIORITY_HINT_SUPPORT; +pub const _STORAGE_DIAGNOSTIC_LEVEL_StorageDiagnosticLevelDefault: _STORAGE_DIAGNOSTIC_LEVEL = 0; +pub const _STORAGE_DIAGNOSTIC_LEVEL_StorageDiagnosticLevelMax: _STORAGE_DIAGNOSTIC_LEVEL = 1; +pub type _STORAGE_DIAGNOSTIC_LEVEL = ::std::os::raw::c_int; +pub use self::_STORAGE_DIAGNOSTIC_LEVEL as STORAGE_DIAGNOSTIC_LEVEL; +pub type PSTORAGE_DIAGNOSTIC_LEVEL = *mut _STORAGE_DIAGNOSTIC_LEVEL; +pub const _STORAGE_DIAGNOSTIC_TARGET_TYPE_StorageDiagnosticTargetTypeUndefined: + _STORAGE_DIAGNOSTIC_TARGET_TYPE = 0; +pub const _STORAGE_DIAGNOSTIC_TARGET_TYPE_StorageDiagnosticTargetTypePort: + _STORAGE_DIAGNOSTIC_TARGET_TYPE = 1; +pub const _STORAGE_DIAGNOSTIC_TARGET_TYPE_StorageDiagnosticTargetTypeMiniport: + _STORAGE_DIAGNOSTIC_TARGET_TYPE = 2; +pub const _STORAGE_DIAGNOSTIC_TARGET_TYPE_StorageDiagnosticTargetTypeHbaFirmware: + _STORAGE_DIAGNOSTIC_TARGET_TYPE = 3; +pub const _STORAGE_DIAGNOSTIC_TARGET_TYPE_StorageDiagnosticTargetTypeMax: + _STORAGE_DIAGNOSTIC_TARGET_TYPE = 4; +pub type _STORAGE_DIAGNOSTIC_TARGET_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_DIAGNOSTIC_TARGET_TYPE as STORAGE_DIAGNOSTIC_TARGET_TYPE; +pub type PSTORAGE_DIAGNOSTIC_TARGET_TYPE = *mut _STORAGE_DIAGNOSTIC_TARGET_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DIAGNOSTIC_REQUEST { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub TargetType: STORAGE_DIAGNOSTIC_TARGET_TYPE, + pub Level: STORAGE_DIAGNOSTIC_LEVEL, +} +pub type STORAGE_DIAGNOSTIC_REQUEST = _STORAGE_DIAGNOSTIC_REQUEST; +pub type PSTORAGE_DIAGNOSTIC_REQUEST = *mut _STORAGE_DIAGNOSTIC_REQUEST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DIAGNOSTIC_DATA { + pub Version: DWORD, + pub Size: DWORD, + pub ProviderId: GUID, + pub BufferSize: DWORD, + pub Reserved: DWORD, + pub DiagnosticDataBuffer: [BYTE; 1usize], +} +pub type STORAGE_DIAGNOSTIC_DATA = _STORAGE_DIAGNOSTIC_DATA; +pub type PSTORAGE_DIAGNOSTIC_DATA = *mut _STORAGE_DIAGNOSTIC_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PHYSICAL_ELEMENT_STATUS_REQUEST { + pub Version: DWORD, + pub Size: DWORD, + pub StartingElement: DWORD, + pub Filter: BYTE, + pub ReportType: BYTE, + pub Reserved: [BYTE; 2usize], +} +pub type PHYSICAL_ELEMENT_STATUS_REQUEST = _PHYSICAL_ELEMENT_STATUS_REQUEST; +pub type PPHYSICAL_ELEMENT_STATUS_REQUEST = *mut _PHYSICAL_ELEMENT_STATUS_REQUEST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PHYSICAL_ELEMENT_STATUS_DESCRIPTOR { + pub Version: DWORD, + pub Size: DWORD, + pub ElementIdentifier: DWORD, + pub PhysicalElementType: BYTE, + pub PhysicalElementHealth: BYTE, + pub Reserved1: [BYTE; 2usize], + pub AssociatedCapacity: DWORDLONG, + pub Reserved2: [DWORD; 4usize], +} +pub type PHYSICAL_ELEMENT_STATUS_DESCRIPTOR = _PHYSICAL_ELEMENT_STATUS_DESCRIPTOR; +pub type PPHYSICAL_ELEMENT_STATUS_DESCRIPTOR = *mut _PHYSICAL_ELEMENT_STATUS_DESCRIPTOR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PHYSICAL_ELEMENT_STATUS { + pub Version: DWORD, + pub Size: DWORD, + pub DescriptorCount: DWORD, + pub ReturnedDescriptorCount: DWORD, + pub ElementIdentifierBeingDepoped: DWORD, + pub Reserved: DWORD, + pub Descriptors: [PHYSICAL_ELEMENT_STATUS_DESCRIPTOR; 1usize], +} +pub type PHYSICAL_ELEMENT_STATUS = _PHYSICAL_ELEMENT_STATUS; +pub type PPHYSICAL_ELEMENT_STATUS = *mut _PHYSICAL_ELEMENT_STATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REMOVE_ELEMENT_AND_TRUNCATE_REQUEST { + pub Version: DWORD, + pub Size: DWORD, + pub RequestCapacity: DWORDLONG, + pub ElementIdentifier: DWORD, + pub Reserved: DWORD, +} +pub type REMOVE_ELEMENT_AND_TRUNCATE_REQUEST = _REMOVE_ELEMENT_AND_TRUNCATE_REQUEST; +pub type PREMOVE_ELEMENT_AND_TRUNCATE_REQUEST = *mut _REMOVE_ELEMENT_AND_TRUNCATE_REQUEST; +pub const _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE_DeviceInternalStatusDataRequestTypeUndefined: + _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = 0; +pub const _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE_DeviceCurrentInternalStatusDataHeader: + _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = 1; +pub const _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE_DeviceCurrentInternalStatusData: + _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = 2; +pub const _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE_DeviceSavedInternalStatusDataHeader: + _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = 3; +pub const _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE_DeviceSavedInternalStatusData: + _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = 4; +pub type _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = ::std::os::raw::c_int; +pub use self::_DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE as DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE; +pub type PDEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = *mut _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE; +pub const _DEVICE_INTERNAL_STATUS_DATA_SET_DeviceStatusDataSetUndefined: + _DEVICE_INTERNAL_STATUS_DATA_SET = 0; +pub const _DEVICE_INTERNAL_STATUS_DATA_SET_DeviceStatusDataSet1: _DEVICE_INTERNAL_STATUS_DATA_SET = + 1; +pub const _DEVICE_INTERNAL_STATUS_DATA_SET_DeviceStatusDataSet2: _DEVICE_INTERNAL_STATUS_DATA_SET = + 2; +pub const _DEVICE_INTERNAL_STATUS_DATA_SET_DeviceStatusDataSet3: _DEVICE_INTERNAL_STATUS_DATA_SET = + 3; +pub const _DEVICE_INTERNAL_STATUS_DATA_SET_DeviceStatusDataSet4: _DEVICE_INTERNAL_STATUS_DATA_SET = + 4; +pub const _DEVICE_INTERNAL_STATUS_DATA_SET_DeviceStatusDataSetMax: + _DEVICE_INTERNAL_STATUS_DATA_SET = 5; +pub type _DEVICE_INTERNAL_STATUS_DATA_SET = ::std::os::raw::c_int; +pub use self::_DEVICE_INTERNAL_STATUS_DATA_SET as DEVICE_INTERNAL_STATUS_DATA_SET; +pub type PDEVICE_INTERNAL_STATUS_DATA_SET = *mut _DEVICE_INTERNAL_STATUS_DATA_SET; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _GET_DEVICE_INTERNAL_STATUS_DATA_REQUEST { + pub Version: DWORD, + pub Size: DWORD, + pub RequestDataType: DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE, + pub RequestDataSet: DEVICE_INTERNAL_STATUS_DATA_SET, +} +pub type GET_DEVICE_INTERNAL_STATUS_DATA_REQUEST = _GET_DEVICE_INTERNAL_STATUS_DATA_REQUEST; +pub type PGET_DEVICE_INTERNAL_STATUS_DATA_REQUEST = *mut _GET_DEVICE_INTERNAL_STATUS_DATA_REQUEST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICE_INTERNAL_STATUS_DATA { + pub Version: DWORD, + pub Size: DWORD, + pub T10VendorId: DWORDLONG, + pub DataSet1Length: DWORD, + pub DataSet2Length: DWORD, + pub DataSet3Length: DWORD, + pub DataSet4Length: DWORD, + pub StatusDataVersion: BYTE, + pub Reserved: [BYTE; 3usize], + pub ReasonIdentifier: [BYTE; 128usize], + pub StatusDataLength: DWORD, + pub StatusData: [BYTE; 1usize], +} +pub type DEVICE_INTERNAL_STATUS_DATA = _DEVICE_INTERNAL_STATUS_DATA; +pub type PDEVICE_INTERNAL_STATUS_DATA = *mut _DEVICE_INTERNAL_STATUS_DATA; +pub const _STORAGE_SANITIZE_METHOD_StorageSanitizeMethodDefault: _STORAGE_SANITIZE_METHOD = 0; +pub const _STORAGE_SANITIZE_METHOD_StorageSanitizeMethodBlockErase: _STORAGE_SANITIZE_METHOD = 1; +pub const _STORAGE_SANITIZE_METHOD_StorageSanitizeMethodCryptoErase: _STORAGE_SANITIZE_METHOD = 2; +pub type _STORAGE_SANITIZE_METHOD = ::std::os::raw::c_int; +pub use self::_STORAGE_SANITIZE_METHOD as STORAGE_SANITIZE_METHOD; +pub type PSTORAGE_SANITIZE_METHOD = *mut _STORAGE_SANITIZE_METHOD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_REINITIALIZE_MEDIA { + pub Version: DWORD, + pub Size: DWORD, + pub TimeoutInSeconds: DWORD, + pub SanitizeOption: _STORAGE_REINITIALIZE_MEDIA__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_REINITIALIZE_MEDIA__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _STORAGE_REINITIALIZE_MEDIA__bindgen_ty_1 { + #[inline] + pub fn SanitizeMethod(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) } + } + #[inline] + pub fn set_SanitizeMethod(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 4u8, val as u64) + } + } + #[inline] + pub fn DisallowUnrestrictedSanitizeExit(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } + } + #[inline] + pub fn set_DisallowUnrestrictedSanitizeExit(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } + } + #[inline] + pub fn set_Reserved(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 27u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SanitizeMethod: DWORD, + DisallowUnrestrictedSanitizeExit: DWORD, + Reserved: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 4u8, { + let SanitizeMethod: u32 = unsafe { ::std::mem::transmute(SanitizeMethod) }; + SanitizeMethod as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let DisallowUnrestrictedSanitizeExit: u32 = + unsafe { ::std::mem::transmute(DisallowUnrestrictedSanitizeExit) }; + DisallowUnrestrictedSanitizeExit as u64 + }); + __bindgen_bitfield_unit.set(5usize, 27u8, { + let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type STORAGE_REINITIALIZE_MEDIA = _STORAGE_REINITIALIZE_MEDIA; +pub type PSTORAGE_REINITIALIZE_MEDIA = *mut _STORAGE_REINITIALIZE_MEDIA; +#[repr(C)] +#[derive(Debug)] +pub struct _STORAGE_MEDIA_SERIAL_NUMBER_DATA { + pub Reserved: WORD, + pub SerialNumberLength: WORD, + pub SerialNumber: __IncompleteArrayField, +} +pub type STORAGE_MEDIA_SERIAL_NUMBER_DATA = _STORAGE_MEDIA_SERIAL_NUMBER_DATA; +pub type PSTORAGE_MEDIA_SERIAL_NUMBER_DATA = *mut _STORAGE_MEDIA_SERIAL_NUMBER_DATA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STORAGE_READ_CAPACITY { + pub Version: DWORD, + pub Size: DWORD, + pub BlockLength: DWORD, + pub NumberOfBlocks: LARGE_INTEGER, + pub DiskLength: LARGE_INTEGER, +} +pub type STORAGE_READ_CAPACITY = _STORAGE_READ_CAPACITY; +pub type PSTORAGE_READ_CAPACITY = *mut _STORAGE_READ_CAPACITY; +pub const _WRITE_CACHE_TYPE_WriteCacheTypeUnknown: _WRITE_CACHE_TYPE = 0; +pub const _WRITE_CACHE_TYPE_WriteCacheTypeNone: _WRITE_CACHE_TYPE = 1; +pub const _WRITE_CACHE_TYPE_WriteCacheTypeWriteBack: _WRITE_CACHE_TYPE = 2; +pub const _WRITE_CACHE_TYPE_WriteCacheTypeWriteThrough: _WRITE_CACHE_TYPE = 3; +pub type _WRITE_CACHE_TYPE = ::std::os::raw::c_int; +pub use self::_WRITE_CACHE_TYPE as WRITE_CACHE_TYPE; +pub const _WRITE_CACHE_ENABLE_WriteCacheEnableUnknown: _WRITE_CACHE_ENABLE = 0; +pub const _WRITE_CACHE_ENABLE_WriteCacheDisabled: _WRITE_CACHE_ENABLE = 1; +pub const _WRITE_CACHE_ENABLE_WriteCacheEnabled: _WRITE_CACHE_ENABLE = 2; +pub type _WRITE_CACHE_ENABLE = ::std::os::raw::c_int; +pub use self::_WRITE_CACHE_ENABLE as WRITE_CACHE_ENABLE; +pub const _WRITE_CACHE_CHANGE_WriteCacheChangeUnknown: _WRITE_CACHE_CHANGE = 0; +pub const _WRITE_CACHE_CHANGE_WriteCacheNotChangeable: _WRITE_CACHE_CHANGE = 1; +pub const _WRITE_CACHE_CHANGE_WriteCacheChangeable: _WRITE_CACHE_CHANGE = 2; +pub type _WRITE_CACHE_CHANGE = ::std::os::raw::c_int; +pub use self::_WRITE_CACHE_CHANGE as WRITE_CACHE_CHANGE; +pub const _WRITE_THROUGH_WriteThroughUnknown: _WRITE_THROUGH = 0; +pub const _WRITE_THROUGH_WriteThroughNotSupported: _WRITE_THROUGH = 1; +pub const _WRITE_THROUGH_WriteThroughSupported: _WRITE_THROUGH = 2; +pub type _WRITE_THROUGH = ::std::os::raw::c_int; +pub use self::_WRITE_THROUGH as WRITE_THROUGH; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_WRITE_CACHE_PROPERTY { + pub Version: DWORD, + pub Size: DWORD, + pub WriteCacheType: WRITE_CACHE_TYPE, + pub WriteCacheEnabled: WRITE_CACHE_ENABLE, + pub WriteCacheChangeable: WRITE_CACHE_CHANGE, + pub WriteThroughSupported: WRITE_THROUGH, + pub FlushCacheSupported: BOOLEAN, + pub UserDefinedPowerProtection: BOOLEAN, + pub NVCacheEnabled: BOOLEAN, +} +pub type STORAGE_WRITE_CACHE_PROPERTY = _STORAGE_WRITE_CACHE_PROPERTY; +pub type PSTORAGE_WRITE_CACHE_PROPERTY = *mut _STORAGE_WRITE_CACHE_PROPERTY; +#[repr(C)] +pub struct _PERSISTENT_RESERVE_COMMAND { + pub Version: DWORD, + pub Size: DWORD, + pub __bindgen_anon_1: _PERSISTENT_RESERVE_COMMAND__bindgen_ty_1, +} +#[repr(C)] +pub struct _PERSISTENT_RESERVE_COMMAND__bindgen_ty_1 { + pub PR_IN: __BindgenUnionField<_PERSISTENT_RESERVE_COMMAND__bindgen_ty_1__bindgen_ty_1>, + pub PR_OUT: __BindgenUnionField<_PERSISTENT_RESERVE_COMMAND__bindgen_ty_1__bindgen_ty_2>, + pub bindgen_union_field: [u16; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PERSISTENT_RESERVE_COMMAND__bindgen_ty_1__bindgen_ty_1 { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub AllocationLength: WORD, +} +impl _PERSISTENT_RESERVE_COMMAND__bindgen_ty_1__bindgen_ty_1 { + #[inline] + pub fn ServiceAction(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 5u8) as u8) } + } + #[inline] + pub fn set_ServiceAction(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 5u8, val as u64) + } + } + #[inline] + pub fn Reserved1(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u8) } + } + #[inline] + pub fn set_Reserved1(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 3u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + ServiceAction: BYTE, + Reserved1: BYTE, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 5u8, { + let ServiceAction: u8 = unsafe { ::std::mem::transmute(ServiceAction) }; + ServiceAction as u64 + }); + __bindgen_bitfield_unit.set(5usize, 3u8, { + let Reserved1: u8 = unsafe { ::std::mem::transmute(Reserved1) }; + Reserved1 as u64 + }); + __bindgen_bitfield_unit + } +} +#[repr(C)] +#[derive(Debug)] +pub struct _PERSISTENT_RESERVE_COMMAND__bindgen_ty_1__bindgen_ty_2 { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, + pub ParameterList: __IncompleteArrayField, +} +impl _PERSISTENT_RESERVE_COMMAND__bindgen_ty_1__bindgen_ty_2 { + #[inline] + pub fn ServiceAction(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 5u8) as u8) } + } + #[inline] + pub fn set_ServiceAction(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 5u8, val as u64) + } + } + #[inline] + pub fn Reserved1(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u8) } + } + #[inline] + pub fn set_Reserved1(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 3u8, val as u64) + } + } + #[inline] + pub fn Type(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 4u8) as u8) } + } + #[inline] + pub fn set_Type(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 4u8, val as u64) + } + } + #[inline] + pub fn Scope(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 4u8) as u8) } + } + #[inline] + pub fn set_Scope(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(12usize, 4u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + ServiceAction: BYTE, + Reserved1: BYTE, + Type: BYTE, + Scope: BYTE, + ) -> __BindgenBitfieldUnit<[u8; 2usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 5u8, { + let ServiceAction: u8 = unsafe { ::std::mem::transmute(ServiceAction) }; + ServiceAction as u64 + }); + __bindgen_bitfield_unit.set(5usize, 3u8, { + let Reserved1: u8 = unsafe { ::std::mem::transmute(Reserved1) }; + Reserved1 as u64 + }); + __bindgen_bitfield_unit.set(8usize, 4u8, { + let Type: u8 = unsafe { ::std::mem::transmute(Type) }; + Type as u64 + }); + __bindgen_bitfield_unit.set(12usize, 4u8, { + let Scope: u8 = unsafe { ::std::mem::transmute(Scope) }; + Scope as u64 + }); + __bindgen_bitfield_unit + } +} +pub type PERSISTENT_RESERVE_COMMAND = _PERSISTENT_RESERVE_COMMAND; +pub type PPERSISTENT_RESERVE_COMMAND = *mut _PERSISTENT_RESERVE_COMMAND; +pub const _DEVICEDUMP_COLLECTION_TYPE_TCCollectionBugCheck: _DEVICEDUMP_COLLECTION_TYPE = 1; +pub const _DEVICEDUMP_COLLECTION_TYPE_TCCollectionApplicationRequested: + _DEVICEDUMP_COLLECTION_TYPE = 2; +pub const _DEVICEDUMP_COLLECTION_TYPE_TCCollectionDeviceRequested: _DEVICEDUMP_COLLECTION_TYPE = 3; +pub type _DEVICEDUMP_COLLECTION_TYPE = ::std::os::raw::c_int; +pub use self::_DEVICEDUMP_COLLECTION_TYPE as DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE; +pub type PDEVICEDUMP_COLLECTION_TYPE = *mut _DEVICEDUMP_COLLECTION_TYPE; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICEDUMP_SUBSECTION_POINTER { + pub dwSize: DWORD, + pub dwFlags: DWORD, + pub dwOffset: DWORD, +} +pub type DEVICEDUMP_SUBSECTION_POINTER = _DEVICEDUMP_SUBSECTION_POINTER; +pub type PDEVICEDUMP_SUBSECTION_POINTER = *mut _DEVICEDUMP_SUBSECTION_POINTER; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICEDUMP_STRUCTURE_VERSION { + pub dwSignature: DWORD, + pub dwVersion: DWORD, + pub dwSize: DWORD, +} +pub type DEVICEDUMP_STRUCTURE_VERSION = _DEVICEDUMP_STRUCTURE_VERSION; +pub type PDEVICEDUMP_STRUCTURE_VERSION = *mut _DEVICEDUMP_STRUCTURE_VERSION; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICEDUMP_SECTION_HEADER { + pub guidDeviceDataId: GUID, + pub sOrganizationID: [BYTE; 16usize], + pub dwFirmwareRevision: DWORD, + pub sModelNumber: [BYTE; 32usize], + pub szDeviceManufacturingID: [BYTE; 32usize], + pub dwFlags: DWORD, + pub bRestrictedPrivateDataVersion: DWORD, + pub dwFirmwareIssueId: DWORD, + pub szIssueDescriptionString: [BYTE; 132usize], +} +pub type DEVICEDUMP_SECTION_HEADER = _DEVICEDUMP_SECTION_HEADER; +pub type PDEVICEDUMP_SECTION_HEADER = *mut _DEVICEDUMP_SECTION_HEADER; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _GP_LOG_PAGE_DESCRIPTOR { + pub LogAddress: WORD, + pub LogSectors: WORD, +} +pub type GP_LOG_PAGE_DESCRIPTOR = _GP_LOG_PAGE_DESCRIPTOR; +pub type PGP_LOG_PAGE_DESCRIPTOR = *mut _GP_LOG_PAGE_DESCRIPTOR; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICEDUMP_PUBLIC_SUBSECTION { + pub dwFlags: DWORD, + pub GPLogTable: [GP_LOG_PAGE_DESCRIPTOR; 16usize], + pub szDescription: [CHAR; 16usize], + pub bData: [BYTE; 1usize], +} +pub type DEVICEDUMP_PUBLIC_SUBSECTION = _DEVICEDUMP_PUBLIC_SUBSECTION; +pub type PDEVICEDUMP_PUBLIC_SUBSECTION = *mut _DEVICEDUMP_PUBLIC_SUBSECTION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICEDUMP_RESTRICTED_SUBSECTION { + pub bData: [BYTE; 1usize], +} +pub type DEVICEDUMP_RESTRICTED_SUBSECTION = _DEVICEDUMP_RESTRICTED_SUBSECTION; +pub type PDEVICEDUMP_RESTRICTED_SUBSECTION = *mut _DEVICEDUMP_RESTRICTED_SUBSECTION; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICEDUMP_PRIVATE_SUBSECTION { + pub dwFlags: DWORD, + pub GPLogId: GP_LOG_PAGE_DESCRIPTOR, + pub bData: [BYTE; 1usize], +} +pub type DEVICEDUMP_PRIVATE_SUBSECTION = _DEVICEDUMP_PRIVATE_SUBSECTION; +pub type PDEVICEDUMP_PRIVATE_SUBSECTION = *mut _DEVICEDUMP_PRIVATE_SUBSECTION; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICEDUMP_STORAGEDEVICE_DATA { + pub Descriptor: DEVICEDUMP_STRUCTURE_VERSION, + pub SectionHeader: DEVICEDUMP_SECTION_HEADER, + pub dwBufferSize: DWORD, + pub dwReasonForCollection: DWORD, + pub PublicData: DEVICEDUMP_SUBSECTION_POINTER, + pub RestrictedData: DEVICEDUMP_SUBSECTION_POINTER, + pub PrivateData: DEVICEDUMP_SUBSECTION_POINTER, +} +pub type DEVICEDUMP_STORAGEDEVICE_DATA = _DEVICEDUMP_STORAGEDEVICE_DATA; +pub type PDEVICEDUMP_STORAGEDEVICE_DATA = *mut _DEVICEDUMP_STORAGEDEVICE_DATA; +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD { + pub Cdb: [BYTE; 16usize], + pub Command: [BYTE; 16usize], + pub StartTime: DWORDLONG, + pub EndTime: DWORDLONG, + pub OperationStatus: DWORD, + pub OperationError: DWORD, + pub StackSpecific: _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1 { + pub ExternalStack: _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1__bindgen_ty_1, + pub AtaPort: _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1__bindgen_ty_2, + pub StorPort: _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1__bindgen_ty_3, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1__bindgen_ty_1 { + pub dwReserved: DWORD, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1__bindgen_ty_2 { + pub dwAtaPortSpecific: DWORD, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1__bindgen_ty_3 { + pub SrbTag: DWORD, +} +pub type DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD = _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD; +pub type PDEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD = + *mut _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD; +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct _DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP { + pub Descriptor: DEVICEDUMP_STRUCTURE_VERSION, + pub dwReasonForCollection: DWORD, + pub cDriverName: [BYTE; 16usize], + pub uiNumRecords: DWORD, + pub RecordArray: [DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD; 1usize], +} +pub type DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP = _DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP; +pub type PDEVICEDUMP_STORAGESTACK_PUBLIC_DUMP = *mut _DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_IDLE_POWER { + pub Version: DWORD, + pub Size: DWORD, + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub D3IdleTimeout: DWORD, +} +impl _STORAGE_IDLE_POWER { + #[inline] + pub fn WakeCapableHint(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_WakeCapableHint(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn D3ColdSupported(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_D3ColdSupported(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_Reserved(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + WakeCapableHint: DWORD, + D3ColdSupported: DWORD, + Reserved: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let WakeCapableHint: u32 = unsafe { ::std::mem::transmute(WakeCapableHint) }; + WakeCapableHint as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let D3ColdSupported: u32 = unsafe { ::std::mem::transmute(D3ColdSupported) }; + D3ColdSupported as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type STORAGE_IDLE_POWER = _STORAGE_IDLE_POWER; +pub type PSTORAGE_IDLE_POWER = *mut _STORAGE_IDLE_POWER; +pub const _STORAGE_POWERUP_REASON_TYPE_StoragePowerupUnknown: _STORAGE_POWERUP_REASON_TYPE = 0; +pub const _STORAGE_POWERUP_REASON_TYPE_StoragePowerupIO: _STORAGE_POWERUP_REASON_TYPE = 1; +pub const _STORAGE_POWERUP_REASON_TYPE_StoragePowerupDeviceAttention: _STORAGE_POWERUP_REASON_TYPE = + 2; +pub type _STORAGE_POWERUP_REASON_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_POWERUP_REASON_TYPE as STORAGE_POWERUP_REASON_TYPE; +pub type PSTORAGE_POWERUP_REASON_TYPE = *mut _STORAGE_POWERUP_REASON_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_IDLE_POWERUP_REASON { + pub Version: DWORD, + pub Size: DWORD, + pub PowerupReason: STORAGE_POWERUP_REASON_TYPE, +} +pub type STORAGE_IDLE_POWERUP_REASON = _STORAGE_IDLE_POWERUP_REASON; +pub type PSTORAGE_IDLE_POWERUP_REASON = *mut _STORAGE_IDLE_POWERUP_REASON; +pub const _STORAGE_DEVICE_POWER_CAP_UNITS_StorageDevicePowerCapUnitsPercent: + _STORAGE_DEVICE_POWER_CAP_UNITS = 0; +pub const _STORAGE_DEVICE_POWER_CAP_UNITS_StorageDevicePowerCapUnitsMilliwatts: + _STORAGE_DEVICE_POWER_CAP_UNITS = 1; +pub type _STORAGE_DEVICE_POWER_CAP_UNITS = ::std::os::raw::c_int; +pub use self::_STORAGE_DEVICE_POWER_CAP_UNITS as STORAGE_DEVICE_POWER_CAP_UNITS; +pub type PSTORAGE_DEVICE_POWER_CAP_UNITS = *mut _STORAGE_DEVICE_POWER_CAP_UNITS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_DEVICE_POWER_CAP { + pub Version: DWORD, + pub Size: DWORD, + pub Units: STORAGE_DEVICE_POWER_CAP_UNITS, + pub MaxPower: DWORDLONG, +} +pub type STORAGE_DEVICE_POWER_CAP = _STORAGE_DEVICE_POWER_CAP; +pub type PSTORAGE_DEVICE_POWER_CAP = *mut _STORAGE_DEVICE_POWER_CAP; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_RPMB_DATA_FRAME { + pub Stuff: [BYTE; 196usize], + pub KeyOrMAC: [BYTE; 32usize], + pub Data: [BYTE; 256usize], + pub Nonce: [BYTE; 16usize], + pub WriteCounter: [BYTE; 4usize], + pub Address: [BYTE; 2usize], + pub BlockCount: [BYTE; 2usize], + pub OperationResult: [BYTE; 2usize], + pub RequestOrResponseType: [BYTE; 2usize], +} +pub type STORAGE_RPMB_DATA_FRAME = _STORAGE_RPMB_DATA_FRAME; +pub type PSTORAGE_RPMB_DATA_FRAME = *mut _STORAGE_RPMB_DATA_FRAME; +pub const _STORAGE_RPMB_COMMAND_TYPE_StorRpmbProgramAuthKey: _STORAGE_RPMB_COMMAND_TYPE = 1; +pub const _STORAGE_RPMB_COMMAND_TYPE_StorRpmbQueryWriteCounter: _STORAGE_RPMB_COMMAND_TYPE = 2; +pub const _STORAGE_RPMB_COMMAND_TYPE_StorRpmbAuthenticatedWrite: _STORAGE_RPMB_COMMAND_TYPE = 3; +pub const _STORAGE_RPMB_COMMAND_TYPE_StorRpmbAuthenticatedRead: _STORAGE_RPMB_COMMAND_TYPE = 4; +pub const _STORAGE_RPMB_COMMAND_TYPE_StorRpmbReadResultRequest: _STORAGE_RPMB_COMMAND_TYPE = 5; +pub const _STORAGE_RPMB_COMMAND_TYPE_StorRpmbAuthenticatedDeviceConfigWrite: + _STORAGE_RPMB_COMMAND_TYPE = 6; +pub const _STORAGE_RPMB_COMMAND_TYPE_StorRpmbAuthenticatedDeviceConfigRead: + _STORAGE_RPMB_COMMAND_TYPE = 7; +pub type _STORAGE_RPMB_COMMAND_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_RPMB_COMMAND_TYPE as STORAGE_RPMB_COMMAND_TYPE; +pub type PSTORAGE_RPMB_COMMAND_TYPE = *mut _STORAGE_RPMB_COMMAND_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_EVENT_NOTIFICATION { + pub Version: DWORD, + pub Size: DWORD, + pub Events: DWORDLONG, +} +pub type STORAGE_EVENT_NOTIFICATION = _STORAGE_EVENT_NOTIFICATION; +pub type PSTORAGE_EVENT_NOTIFICATION = *mut _STORAGE_EVENT_NOTIFICATION; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeUnknown: _STORAGE_COUNTER_TYPE = 0; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeTemperatureCelsius: _STORAGE_COUNTER_TYPE = 1; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeTemperatureCelsiusMax: _STORAGE_COUNTER_TYPE = 2; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeReadErrorsTotal: _STORAGE_COUNTER_TYPE = 3; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeReadErrorsCorrected: _STORAGE_COUNTER_TYPE = 4; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeReadErrorsUncorrected: _STORAGE_COUNTER_TYPE = 5; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeWriteErrorsTotal: _STORAGE_COUNTER_TYPE = 6; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeWriteErrorsCorrected: _STORAGE_COUNTER_TYPE = 7; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeWriteErrorsUncorrected: _STORAGE_COUNTER_TYPE = 8; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeManufactureDate: _STORAGE_COUNTER_TYPE = 9; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeStartStopCycleCount: _STORAGE_COUNTER_TYPE = 10; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeStartStopCycleCountMax: _STORAGE_COUNTER_TYPE = + 11; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeLoadUnloadCycleCount: _STORAGE_COUNTER_TYPE = 12; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeLoadUnloadCycleCountMax: _STORAGE_COUNTER_TYPE = + 13; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeWearPercentage: _STORAGE_COUNTER_TYPE = 14; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeWearPercentageWarning: _STORAGE_COUNTER_TYPE = 15; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeWearPercentageMax: _STORAGE_COUNTER_TYPE = 16; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypePowerOnHours: _STORAGE_COUNTER_TYPE = 17; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeReadLatency100NSMax: _STORAGE_COUNTER_TYPE = 18; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeWriteLatency100NSMax: _STORAGE_COUNTER_TYPE = 19; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeFlushLatency100NSMax: _STORAGE_COUNTER_TYPE = 20; +pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeMax: _STORAGE_COUNTER_TYPE = 21; +pub type _STORAGE_COUNTER_TYPE = ::std::os::raw::c_int; +pub use self::_STORAGE_COUNTER_TYPE as STORAGE_COUNTER_TYPE; +pub type PSTORAGE_COUNTER_TYPE = *mut _STORAGE_COUNTER_TYPE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STORAGE_COUNTER { + pub Type: STORAGE_COUNTER_TYPE, + pub Value: _STORAGE_COUNTER__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _STORAGE_COUNTER__bindgen_ty_1 { + pub ManufactureDate: _STORAGE_COUNTER__bindgen_ty_1__bindgen_ty_1, + pub AsUlonglong: DWORDLONG, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_COUNTER__bindgen_ty_1__bindgen_ty_1 { + pub Week: DWORD, + pub Year: DWORD, +} +pub type STORAGE_COUNTER = _STORAGE_COUNTER; +pub type PSTORAGE_COUNTER = *mut _STORAGE_COUNTER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STORAGE_COUNTERS { + pub Version: DWORD, + pub Size: DWORD, + pub NumberOfCounters: DWORD, + pub Counters: [STORAGE_COUNTER; 1usize], +} +pub type STORAGE_COUNTERS = _STORAGE_COUNTERS; +pub type PSTORAGE_COUNTERS = *mut _STORAGE_COUNTERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_HW_FIRMWARE_INFO_QUERY { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub Reserved: DWORD, +} +pub type STORAGE_HW_FIRMWARE_INFO_QUERY = _STORAGE_HW_FIRMWARE_INFO_QUERY; +pub type PSTORAGE_HW_FIRMWARE_INFO_QUERY = *mut _STORAGE_HW_FIRMWARE_INFO_QUERY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_HW_FIRMWARE_SLOT_INFO { + pub Version: DWORD, + pub Size: DWORD, + pub SlotNumber: BYTE, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub Reserved1: [BYTE; 6usize], + pub Revision: [BYTE; 16usize], +} +impl _STORAGE_HW_FIRMWARE_SLOT_INFO { + #[inline] + pub fn ReadOnly(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } + } + #[inline] + pub fn set_ReadOnly(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved0(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 7u8) as u8) } + } + #[inline] + pub fn set_Reserved0(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 7u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1(ReadOnly: BYTE, Reserved0: BYTE) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let ReadOnly: u8 = unsafe { ::std::mem::transmute(ReadOnly) }; + ReadOnly as u64 + }); + __bindgen_bitfield_unit.set(1usize, 7u8, { + let Reserved0: u8 = unsafe { ::std::mem::transmute(Reserved0) }; + Reserved0 as u64 + }); + __bindgen_bitfield_unit + } +} +pub type STORAGE_HW_FIRMWARE_SLOT_INFO = _STORAGE_HW_FIRMWARE_SLOT_INFO; +pub type PSTORAGE_HW_FIRMWARE_SLOT_INFO = *mut _STORAGE_HW_FIRMWARE_SLOT_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_HW_FIRMWARE_INFO { + pub Version: DWORD, + pub Size: DWORD, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub SlotCount: BYTE, + pub ActiveSlot: BYTE, + pub PendingActivateSlot: BYTE, + pub FirmwareShared: BOOLEAN, + pub Reserved: [BYTE; 3usize], + pub ImagePayloadAlignment: DWORD, + pub ImagePayloadMaxSize: DWORD, + pub Slot: [STORAGE_HW_FIRMWARE_SLOT_INFO; 1usize], +} +impl _STORAGE_HW_FIRMWARE_INFO { + #[inline] + pub fn SupportUpgrade(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } + } + #[inline] + pub fn set_SupportUpgrade(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved0(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 7u8) as u8) } + } + #[inline] + pub fn set_Reserved0(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 7u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + SupportUpgrade: BYTE, + Reserved0: BYTE, + ) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let SupportUpgrade: u8 = unsafe { ::std::mem::transmute(SupportUpgrade) }; + SupportUpgrade as u64 + }); + __bindgen_bitfield_unit.set(1usize, 7u8, { + let Reserved0: u8 = unsafe { ::std::mem::transmute(Reserved0) }; + Reserved0 as u64 + }); + __bindgen_bitfield_unit + } +} +pub type STORAGE_HW_FIRMWARE_INFO = _STORAGE_HW_FIRMWARE_INFO; +pub type PSTORAGE_HW_FIRMWARE_INFO = *mut _STORAGE_HW_FIRMWARE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_HW_FIRMWARE_DOWNLOAD { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub Slot: BYTE, + pub Reserved: [BYTE; 3usize], + pub Offset: DWORDLONG, + pub BufferSize: DWORDLONG, + pub ImageBuffer: [BYTE; 1usize], +} +pub type STORAGE_HW_FIRMWARE_DOWNLOAD = _STORAGE_HW_FIRMWARE_DOWNLOAD; +pub type PSTORAGE_HW_FIRMWARE_DOWNLOAD = *mut _STORAGE_HW_FIRMWARE_DOWNLOAD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_HW_FIRMWARE_DOWNLOAD_V2 { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub Slot: BYTE, + pub Reserved: [BYTE; 3usize], + pub Offset: DWORDLONG, + pub BufferSize: DWORDLONG, + pub ImageSize: DWORD, + pub Reserved2: DWORD, + pub ImageBuffer: [BYTE; 1usize], +} +pub type STORAGE_HW_FIRMWARE_DOWNLOAD_V2 = _STORAGE_HW_FIRMWARE_DOWNLOAD_V2; +pub type PSTORAGE_HW_FIRMWARE_DOWNLOAD_V2 = *mut _STORAGE_HW_FIRMWARE_DOWNLOAD_V2; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_HW_FIRMWARE_ACTIVATE { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub Slot: BYTE, + pub Reserved0: [BYTE; 3usize], +} +pub type STORAGE_HW_FIRMWARE_ACTIVATE = _STORAGE_HW_FIRMWARE_ACTIVATE; +pub type PSTORAGE_HW_FIRMWARE_ACTIVATE = *mut _STORAGE_HW_FIRMWARE_ACTIVATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_PROTOCOL_COMMAND { + pub Version: DWORD, + pub Length: DWORD, + pub ProtocolType: STORAGE_PROTOCOL_TYPE, + pub Flags: DWORD, + pub ReturnStatus: DWORD, + pub ErrorCode: DWORD, + pub CommandLength: DWORD, + pub ErrorInfoLength: DWORD, + pub DataToDeviceTransferLength: DWORD, + pub DataFromDeviceTransferLength: DWORD, + pub TimeOutValue: DWORD, + pub ErrorInfoOffset: DWORD, + pub DataToDeviceBufferOffset: DWORD, + pub DataFromDeviceBufferOffset: DWORD, + pub CommandSpecific: DWORD, + pub Reserved0: DWORD, + pub FixedProtocolReturnData: DWORD, + pub Reserved1: [DWORD; 3usize], + pub Command: [BYTE; 1usize], +} +pub type STORAGE_PROTOCOL_COMMAND = _STORAGE_PROTOCOL_COMMAND; +pub type PSTORAGE_PROTOCOL_COMMAND = *mut _STORAGE_PROTOCOL_COMMAND; +pub const _STORAGE_ATTRIBUTE_MGMT_ACTION_StorAttributeMgmt_ClearAttribute: + _STORAGE_ATTRIBUTE_MGMT_ACTION = 0; +pub const _STORAGE_ATTRIBUTE_MGMT_ACTION_StorAttributeMgmt_SetAttribute: + _STORAGE_ATTRIBUTE_MGMT_ACTION = 1; +pub const _STORAGE_ATTRIBUTE_MGMT_ACTION_StorAttributeMgmt_ResetAttribute: + _STORAGE_ATTRIBUTE_MGMT_ACTION = 2; +pub type _STORAGE_ATTRIBUTE_MGMT_ACTION = ::std::os::raw::c_int; +pub use self::_STORAGE_ATTRIBUTE_MGMT_ACTION as STORAGE_ATTRIBUTE_MGMT_ACTION; +pub type PSTORAGE_ATTRIBUTE_MGMT_ACTION = *mut _STORAGE_ATTRIBUTE_MGMT_ACTION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_ATTRIBUTE_MGMT { + pub Version: DWORD, + pub Size: DWORD, + pub Action: STORAGE_ATTRIBUTE_MGMT_ACTION, + pub Attribute: DWORD, +} +pub type STORAGE_ATTRIBUTE_MGMT = _STORAGE_ATTRIBUTE_MGMT; +pub type PSTORAGE_ATTRIBUTE_MGMT = *mut _STORAGE_ATTRIBUTE_MGMT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_HEALTH_NOTIFICATION_DATA { + pub DeviceGuid: GUID, +} +pub type SCM_PD_HEALTH_NOTIFICATION_DATA = _SCM_PD_HEALTH_NOTIFICATION_DATA; +pub type PSCM_PD_HEALTH_NOTIFICATION_DATA = *mut _SCM_PD_HEALTH_NOTIFICATION_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_LOGICAL_DEVICE_INSTANCE { + pub Version: DWORD, + pub Size: DWORD, + pub DeviceGuid: GUID, + pub SymbolicLink: [WCHAR; 256usize], +} +pub type SCM_LOGICAL_DEVICE_INSTANCE = _SCM_LOGICAL_DEVICE_INSTANCE; +pub type PSCM_LOGICAL_DEVICE_INSTANCE = *mut _SCM_LOGICAL_DEVICE_INSTANCE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_LOGICAL_DEVICES { + pub Version: DWORD, + pub Size: DWORD, + pub DeviceCount: DWORD, + pub Devices: [SCM_LOGICAL_DEVICE_INSTANCE; 1usize], +} +pub type SCM_LOGICAL_DEVICES = _SCM_LOGICAL_DEVICES; +pub type PSCM_LOGICAL_DEVICES = *mut _SCM_LOGICAL_DEVICES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PHYSICAL_DEVICE_INSTANCE { + pub Version: DWORD, + pub Size: DWORD, + pub NfitHandle: DWORD, + pub SymbolicLink: [WCHAR; 256usize], +} +pub type SCM_PHYSICAL_DEVICE_INSTANCE = _SCM_PHYSICAL_DEVICE_INSTANCE; +pub type PSCM_PHYSICAL_DEVICE_INSTANCE = *mut _SCM_PHYSICAL_DEVICE_INSTANCE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PHYSICAL_DEVICES { + pub Version: DWORD, + pub Size: DWORD, + pub DeviceCount: DWORD, + pub Devices: [SCM_PHYSICAL_DEVICE_INSTANCE; 1usize], +} +pub type SCM_PHYSICAL_DEVICES = _SCM_PHYSICAL_DEVICES; +pub type PSCM_PHYSICAL_DEVICES = *mut _SCM_PHYSICAL_DEVICES; +pub const _SCM_REGION_FLAG_ScmRegionFlagNone: _SCM_REGION_FLAG = 0; +pub const _SCM_REGION_FLAG_ScmRegionFlagLabel: _SCM_REGION_FLAG = 1; +pub type _SCM_REGION_FLAG = ::std::os::raw::c_int; +pub use self::_SCM_REGION_FLAG as SCM_REGION_FLAG; +pub type PSCM_REGION_FLAG = *mut _SCM_REGION_FLAG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_REGION { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub NfitHandle: DWORD, + pub LogicalDeviceGuid: GUID, + pub AddressRangeType: GUID, + pub AssociatedId: DWORD, + pub Length: DWORD64, + pub StartingDPA: DWORD64, + pub BaseSPA: DWORD64, + pub SPAOffset: DWORD64, + pub RegionOffset: DWORD64, +} +pub type SCM_REGION = _SCM_REGION; +pub type PSCM_REGION = *mut _SCM_REGION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_REGIONS { + pub Version: DWORD, + pub Size: DWORD, + pub RegionCount: DWORD, + pub Regions: [SCM_REGION; 1usize], +} +pub type SCM_REGIONS = _SCM_REGIONS; +pub type PSCM_REGIONS = *mut _SCM_REGIONS; +pub const _SCM_BUS_QUERY_TYPE_ScmBusQuery_Descriptor: _SCM_BUS_QUERY_TYPE = 0; +pub const _SCM_BUS_QUERY_TYPE_ScmBusQuery_IsSupported: _SCM_BUS_QUERY_TYPE = 1; +pub const _SCM_BUS_QUERY_TYPE_ScmBusQuery_Max: _SCM_BUS_QUERY_TYPE = 2; +pub type _SCM_BUS_QUERY_TYPE = ::std::os::raw::c_int; +pub use self::_SCM_BUS_QUERY_TYPE as SCM_BUS_QUERY_TYPE; +pub type PSCM_BUS_QUERY_TYPE = *mut _SCM_BUS_QUERY_TYPE; +pub const _SCM_BUS_SET_TYPE_ScmBusSet_Descriptor: _SCM_BUS_SET_TYPE = 0; +pub const _SCM_BUS_SET_TYPE_ScmBusSet_IsSupported: _SCM_BUS_SET_TYPE = 1; +pub const _SCM_BUS_SET_TYPE_ScmBusSet_Max: _SCM_BUS_SET_TYPE = 2; +pub type _SCM_BUS_SET_TYPE = ::std::os::raw::c_int; +pub use self::_SCM_BUS_SET_TYPE as SCM_BUS_SET_TYPE; +pub type PSCM_BUS_SET_TYPE = *mut _SCM_BUS_SET_TYPE; +pub const _SCM_BUS_PROPERTY_ID_ScmBusProperty_RuntimeFwActivationInfo: _SCM_BUS_PROPERTY_ID = 0; +pub const _SCM_BUS_PROPERTY_ID_ScmBusProperty_DedicatedMemoryInfo: _SCM_BUS_PROPERTY_ID = 1; +pub const _SCM_BUS_PROPERTY_ID_ScmBusProperty_DedicatedMemoryState: _SCM_BUS_PROPERTY_ID = 2; +pub const _SCM_BUS_PROPERTY_ID_ScmBusProperty_Max: _SCM_BUS_PROPERTY_ID = 3; +pub type _SCM_BUS_PROPERTY_ID = ::std::os::raw::c_int; +pub use self::_SCM_BUS_PROPERTY_ID as SCM_BUS_PROPERTY_ID; +pub type PSCM_BUS_PROPERTY_ID = *mut _SCM_BUS_PROPERTY_ID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_BUS_PROPERTY_QUERY { + pub Version: DWORD, + pub Size: DWORD, + pub PropertyId: SCM_BUS_PROPERTY_ID, + pub QueryType: SCM_BUS_QUERY_TYPE, + pub AdditionalParameters: [BYTE; 1usize], +} +pub type SCM_BUS_PROPERTY_QUERY = _SCM_BUS_PROPERTY_QUERY; +pub type PSCM_BUS_PROPERTY_QUERY = *mut _SCM_BUS_PROPERTY_QUERY; +pub const _SCM_BUS_FIRMWARE_ACTIVATION_STATE_ScmBusFirmwareActivationState_Idle: + _SCM_BUS_FIRMWARE_ACTIVATION_STATE = 0; +pub const _SCM_BUS_FIRMWARE_ACTIVATION_STATE_ScmBusFirmwareActivationState_Armed: + _SCM_BUS_FIRMWARE_ACTIVATION_STATE = 1; +pub const _SCM_BUS_FIRMWARE_ACTIVATION_STATE_ScmBusFirmwareActivationState_Busy: + _SCM_BUS_FIRMWARE_ACTIVATION_STATE = 2; +pub type _SCM_BUS_FIRMWARE_ACTIVATION_STATE = ::std::os::raw::c_int; +pub use self::_SCM_BUS_FIRMWARE_ACTIVATION_STATE as SCM_BUS_FIRMWARE_ACTIVATION_STATE; +pub type PSCM_BUS_FIRMWARE_ACTIVATION_STATE = *mut _SCM_BUS_FIRMWARE_ACTIVATION_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_BUS_RUNTIME_FW_ACTIVATION_INFO { + pub Version: DWORD, + pub Size: DWORD, + pub RuntimeFwActivationSupported: BOOLEAN, + pub FirmwareActivationState: SCM_BUS_FIRMWARE_ACTIVATION_STATE, + pub FirmwareActivationCapability: _SCM_BUS_RUNTIME_FW_ACTIVATION_INFO__bindgen_ty_1, + pub EstimatedFirmwareActivationTimeInUSecs: DWORDLONG, + pub EstimatedProcessorAccessQuiesceTimeInUSecs: DWORDLONG, + pub EstimatedIOAccessQuiesceTimeInUSecs: DWORDLONG, + pub PlatformSupportedMaxIOAccessQuiesceTimeInUSecs: DWORDLONG, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_BUS_RUNTIME_FW_ACTIVATION_INFO__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _SCM_BUS_RUNTIME_FW_ACTIVATION_INFO__bindgen_ty_1 { + #[inline] + pub fn FwManagedIoQuiesceFwActivationSupported(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_FwManagedIoQuiesceFwActivationSupported(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn OsManagedIoQuiesceFwActivationSupported(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_OsManagedIoQuiesceFwActivationSupported(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn WarmResetBasedFwActivationSupported(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_WarmResetBasedFwActivationSupported(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } + } + #[inline] + pub fn set_Reserved(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 29u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + FwManagedIoQuiesceFwActivationSupported: DWORD, + OsManagedIoQuiesceFwActivationSupported: DWORD, + WarmResetBasedFwActivationSupported: DWORD, + Reserved: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let FwManagedIoQuiesceFwActivationSupported: u32 = + unsafe { ::std::mem::transmute(FwManagedIoQuiesceFwActivationSupported) }; + FwManagedIoQuiesceFwActivationSupported as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let OsManagedIoQuiesceFwActivationSupported: u32 = + unsafe { ::std::mem::transmute(OsManagedIoQuiesceFwActivationSupported) }; + OsManagedIoQuiesceFwActivationSupported as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let WarmResetBasedFwActivationSupported: u32 = + unsafe { ::std::mem::transmute(WarmResetBasedFwActivationSupported) }; + WarmResetBasedFwActivationSupported as u64 + }); + __bindgen_bitfield_unit.set(3usize, 29u8, { + let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type SCM_BUS_RUNTIME_FW_ACTIVATION_INFO = _SCM_BUS_RUNTIME_FW_ACTIVATION_INFO; +pub type PSCM_BUS_RUNTIME_FW_ACTIVATION_INFO = *mut _SCM_BUS_RUNTIME_FW_ACTIVATION_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO { + pub DeviceGuid: GUID, + pub DeviceNumber: DWORD, + pub Flags: _SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO__bindgen_ty_1, + pub DeviceSize: DWORDLONG, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO__bindgen_ty_1 { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl _SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO__bindgen_ty_1 { + #[inline] + pub fn ForcedByRegistry(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_ForcedByRegistry(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Initialized(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_Initialized(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } + } + #[inline] + pub fn set_Reserved(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 30u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + ForcedByRegistry: DWORD, + Initialized: DWORD, + Reserved: DWORD, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let ForcedByRegistry: u32 = unsafe { ::std::mem::transmute(ForcedByRegistry) }; + ForcedByRegistry as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let Initialized: u32 = unsafe { ::std::mem::transmute(Initialized) }; + Initialized as u64 + }); + __bindgen_bitfield_unit.set(2usize, 30u8, { + let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; + Reserved as u64 + }); + __bindgen_bitfield_unit + } +} +pub type SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO = _SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO; +pub type PSCM_BUS_DEDICATED_MEMORY_DEVICE_INFO = *mut _SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO { + pub Version: DWORD, + pub Size: DWORD, + pub DeviceCount: DWORD, + pub Devices: [SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO; 1usize], +} +pub type SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO = _SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO; +pub type PSCM_BUS_DEDICATED_MEMORY_DEVICES_INFO = *mut _SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_BUS_PROPERTY_SET { + pub Version: DWORD, + pub Size: DWORD, + pub PropertyId: SCM_BUS_PROPERTY_ID, + pub SetType: SCM_BUS_SET_TYPE, + pub AdditionalParameters: [BYTE; 1usize], +} +pub type SCM_BUS_PROPERTY_SET = _SCM_BUS_PROPERTY_SET; +pub type PSCM_BUS_PROPERTY_SET = *mut _SCM_BUS_PROPERTY_SET; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_BUS_DEDICATED_MEMORY_STATE { + pub ActivateState: BOOLEAN, +} +pub type SCM_BUS_DEDICATED_MEMORY_STATE = _SCM_BUS_DEDICATED_MEMORY_STATE; +pub type PSCM_BUS_DEDICATED_MEMORY_STATE = *mut _SCM_BUS_DEDICATED_MEMORY_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_INTERLEAVED_PD_INFO { + pub DeviceHandle: DWORD, + pub DeviceGuid: GUID, +} +pub type SCM_INTERLEAVED_PD_INFO = _SCM_INTERLEAVED_PD_INFO; +pub type PSCM_INTERLEAVED_PD_INFO = *mut _SCM_INTERLEAVED_PD_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_LD_INTERLEAVE_SET_INFO { + pub Version: DWORD, + pub Size: DWORD, + pub InterleaveSetSize: DWORD, + pub InterleaveSet: [SCM_INTERLEAVED_PD_INFO; 1usize], +} +pub type SCM_LD_INTERLEAVE_SET_INFO = _SCM_LD_INTERLEAVE_SET_INFO; +pub type PSCM_LD_INTERLEAVE_SET_INFO = *mut _SCM_LD_INTERLEAVE_SET_INFO; +pub const _SCM_PD_QUERY_TYPE_ScmPhysicalDeviceQuery_Descriptor: _SCM_PD_QUERY_TYPE = 0; +pub const _SCM_PD_QUERY_TYPE_ScmPhysicalDeviceQuery_IsSupported: _SCM_PD_QUERY_TYPE = 1; +pub const _SCM_PD_QUERY_TYPE_ScmPhysicalDeviceQuery_Max: _SCM_PD_QUERY_TYPE = 2; +pub type _SCM_PD_QUERY_TYPE = ::std::os::raw::c_int; +pub use self::_SCM_PD_QUERY_TYPE as SCM_PD_QUERY_TYPE; +pub type PSCM_PD_QUERY_TYPE = *mut _SCM_PD_QUERY_TYPE; +pub const _SCM_PD_SET_TYPE_ScmPhysicalDeviceSet_Descriptor: _SCM_PD_SET_TYPE = 0; +pub const _SCM_PD_SET_TYPE_ScmPhysicalDeviceSet_IsSupported: _SCM_PD_SET_TYPE = 1; +pub const _SCM_PD_SET_TYPE_ScmPhysicalDeviceSet_Max: _SCM_PD_SET_TYPE = 2; +pub type _SCM_PD_SET_TYPE = ::std::os::raw::c_int; +pub use self::_SCM_PD_SET_TYPE as SCM_PD_SET_TYPE; +pub type PSCM_PD_SET_TYPE = *mut _SCM_PD_SET_TYPE; +pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_DeviceInfo: _SCM_PD_PROPERTY_ID = 0; +pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_ManagementStatus: _SCM_PD_PROPERTY_ID = 1; +pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_FirmwareInfo: _SCM_PD_PROPERTY_ID = 2; +pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_LocationString: _SCM_PD_PROPERTY_ID = 3; +pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_DeviceSpecificInfo: _SCM_PD_PROPERTY_ID = 4; +pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_DeviceHandle: _SCM_PD_PROPERTY_ID = 5; +pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_FruIdString: _SCM_PD_PROPERTY_ID = 6; +pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_RuntimeFwActivationInfo: + _SCM_PD_PROPERTY_ID = 7; +pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_RuntimeFwActivationArmState: + _SCM_PD_PROPERTY_ID = 8; +pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_Max: _SCM_PD_PROPERTY_ID = 9; +pub type _SCM_PD_PROPERTY_ID = ::std::os::raw::c_int; +pub use self::_SCM_PD_PROPERTY_ID as SCM_PD_PROPERTY_ID; +pub type PSCM_PD_PROPERTY_ID = *mut _SCM_PD_PROPERTY_ID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_PROPERTY_QUERY { + pub Version: DWORD, + pub Size: DWORD, + pub PropertyId: SCM_PD_PROPERTY_ID, + pub QueryType: SCM_PD_QUERY_TYPE, + pub AdditionalParameters: [BYTE; 1usize], +} +pub type SCM_PD_PROPERTY_QUERY = _SCM_PD_PROPERTY_QUERY; +pub type PSCM_PD_PROPERTY_QUERY = *mut _SCM_PD_PROPERTY_QUERY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_PROPERTY_SET { + pub Version: DWORD, + pub Size: DWORD, + pub PropertyId: SCM_PD_PROPERTY_ID, + pub SetType: SCM_PD_SET_TYPE, + pub AdditionalParameters: [BYTE; 1usize], +} +pub type SCM_PD_PROPERTY_SET = _SCM_PD_PROPERTY_SET; +pub type PSCM_PD_PROPERTY_SET = *mut _SCM_PD_PROPERTY_SET; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE { + pub ArmState: BOOLEAN, +} +pub type SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE = _SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE; +pub type PSCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE = *mut _SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_DESCRIPTOR_HEADER { + pub Version: DWORD, + pub Size: DWORD, +} +pub type SCM_PD_DESCRIPTOR_HEADER = _SCM_PD_DESCRIPTOR_HEADER; +pub type PSCM_PD_DESCRIPTOR_HEADER = *mut _SCM_PD_DESCRIPTOR_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_DEVICE_HANDLE { + pub Version: DWORD, + pub Size: DWORD, + pub DeviceGuid: GUID, + pub DeviceHandle: DWORD, +} +pub type SCM_PD_DEVICE_HANDLE = _SCM_PD_DEVICE_HANDLE; +pub type PSCM_PD_DEVICE_HANDLE = *mut _SCM_PD_DEVICE_HANDLE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_DEVICE_INFO { + pub Version: DWORD, + pub Size: DWORD, + pub DeviceGuid: GUID, + pub UnsafeShutdownCount: DWORD, + pub PersistentMemorySizeInBytes: DWORD64, + pub VolatileMemorySizeInBytes: DWORD64, + pub TotalMemorySizeInBytes: DWORD64, + pub SlotNumber: DWORD, + pub DeviceHandle: DWORD, + pub PhysicalId: WORD, + pub NumberOfFormatInterfaceCodes: BYTE, + pub FormatInterfaceCodes: [WORD; 8usize], + pub VendorId: DWORD, + pub ProductId: DWORD, + pub SubsystemDeviceId: DWORD, + pub SubsystemVendorId: DWORD, + pub ManufacturingLocation: BYTE, + pub ManufacturingWeek: BYTE, + pub ManufacturingYear: BYTE, + pub SerialNumber4Byte: DWORD, + pub SerialNumberLengthInChars: DWORD, + pub SerialNumber: [CHAR; 1usize], +} +pub type SCM_PD_DEVICE_INFO = _SCM_PD_DEVICE_INFO; +pub type PSCM_PD_DEVICE_INFO = *mut _SCM_PD_DEVICE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_DEVICE_SPECIFIC_PROPERTY { + pub Name: [WCHAR; 128usize], + pub Value: LONGLONG, +} +pub type SCM_PD_DEVICE_SPECIFIC_PROPERTY = _SCM_PD_DEVICE_SPECIFIC_PROPERTY; +pub type PSCM_PD_DEVICE_SPECIFIC_PROPERTY = *mut _SCM_PD_DEVICE_SPECIFIC_PROPERTY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_DEVICE_SPECIFIC_INFO { + pub Version: DWORD, + pub Size: DWORD, + pub NumberOfProperties: DWORD, + pub DeviceSpecificProperties: [SCM_PD_DEVICE_SPECIFIC_PROPERTY; 1usize], +} +pub type SCM_PD_DEVICE_SPECIFIC_INFO = _SCM_PD_DEVICE_SPECIFIC_INFO; +pub type PSCM_PD_DEVICE_SPECIFIC_INFO = *mut _SCM_PD_DEVICE_SPECIFIC_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_FIRMWARE_SLOT_INFO { + pub Version: DWORD, + pub Size: DWORD, + pub SlotNumber: BYTE, + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub Reserved1: [BYTE; 6usize], + pub Revision: [BYTE; 32usize], +} +impl _SCM_PD_FIRMWARE_SLOT_INFO { + #[inline] + pub fn ReadOnly(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } + } + #[inline] + pub fn set_ReadOnly(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn Reserved0(&self) -> BYTE { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 7u8) as u8) } + } + #[inline] + pub fn set_Reserved0(&mut self, val: BYTE) { + unsafe { + let val: u8 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 7u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1(ReadOnly: BYTE, Reserved0: BYTE) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let ReadOnly: u8 = unsafe { ::std::mem::transmute(ReadOnly) }; + ReadOnly as u64 + }); + __bindgen_bitfield_unit.set(1usize, 7u8, { + let Reserved0: u8 = unsafe { ::std::mem::transmute(Reserved0) }; + Reserved0 as u64 + }); + __bindgen_bitfield_unit + } +} +pub type SCM_PD_FIRMWARE_SLOT_INFO = _SCM_PD_FIRMWARE_SLOT_INFO; +pub type PSCM_PD_FIRMWARE_SLOT_INFO = *mut _SCM_PD_FIRMWARE_SLOT_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_FIRMWARE_INFO { + pub Version: DWORD, + pub Size: DWORD, + pub ActiveSlot: BYTE, + pub NextActiveSlot: BYTE, + pub SlotCount: BYTE, + pub Slots: [SCM_PD_FIRMWARE_SLOT_INFO; 1usize], +} +pub type SCM_PD_FIRMWARE_INFO = _SCM_PD_FIRMWARE_INFO; +pub type PSCM_PD_FIRMWARE_INFO = *mut _SCM_PD_FIRMWARE_INFO; +pub const _SCM_PD_HEALTH_STATUS_ScmPhysicalDeviceHealth_Unknown: _SCM_PD_HEALTH_STATUS = 0; +pub const _SCM_PD_HEALTH_STATUS_ScmPhysicalDeviceHealth_Unhealthy: _SCM_PD_HEALTH_STATUS = 1; +pub const _SCM_PD_HEALTH_STATUS_ScmPhysicalDeviceHealth_Warning: _SCM_PD_HEALTH_STATUS = 2; +pub const _SCM_PD_HEALTH_STATUS_ScmPhysicalDeviceHealth_Healthy: _SCM_PD_HEALTH_STATUS = 3; +pub const _SCM_PD_HEALTH_STATUS_ScmPhysicalDeviceHealth_Max: _SCM_PD_HEALTH_STATUS = 4; +pub type _SCM_PD_HEALTH_STATUS = ::std::os::raw::c_int; +pub use self::_SCM_PD_HEALTH_STATUS as SCM_PD_HEALTH_STATUS; +pub type PSCM_PD_HEALTH_STATUS = *mut _SCM_PD_HEALTH_STATUS; +pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_Unknown: _SCM_PD_OPERATIONAL_STATUS = + 0; +pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_Ok: _SCM_PD_OPERATIONAL_STATUS = 1; +pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_PredictingFailure: + _SCM_PD_OPERATIONAL_STATUS = 2; +pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_InService: + _SCM_PD_OPERATIONAL_STATUS = 3; +pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_HardwareError: + _SCM_PD_OPERATIONAL_STATUS = 4; +pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_NotUsable: + _SCM_PD_OPERATIONAL_STATUS = 5; +pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_TransientError: + _SCM_PD_OPERATIONAL_STATUS = 6; +pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_Missing: _SCM_PD_OPERATIONAL_STATUS = + 7; +pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_Max: _SCM_PD_OPERATIONAL_STATUS = 8; +pub type _SCM_PD_OPERATIONAL_STATUS = ::std::os::raw::c_int; +pub use self::_SCM_PD_OPERATIONAL_STATUS as SCM_PD_OPERATIONAL_STATUS; +pub type PSCM_PD_OPERATIONAL_STATUS = *mut _SCM_PD_OPERATIONAL_STATUS; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_Unknown: + _SCM_PD_OPERATIONAL_STATUS_REASON = 0; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_Media: + _SCM_PD_OPERATIONAL_STATUS_REASON = 1; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_ThresholdExceeded: + _SCM_PD_OPERATIONAL_STATUS_REASON = 2; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_LostData: + _SCM_PD_OPERATIONAL_STATUS_REASON = 3; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_EnergySource: + _SCM_PD_OPERATIONAL_STATUS_REASON = 4; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_Configuration: + _SCM_PD_OPERATIONAL_STATUS_REASON = 5; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_DeviceController: + _SCM_PD_OPERATIONAL_STATUS_REASON = 6; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_MediaController: + _SCM_PD_OPERATIONAL_STATUS_REASON = 7; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_Component: + _SCM_PD_OPERATIONAL_STATUS_REASON = 8; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_BackgroundOperation: + _SCM_PD_OPERATIONAL_STATUS_REASON = 9; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_InvalidFirmware: + _SCM_PD_OPERATIONAL_STATUS_REASON = 10; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_HealthCheck: + _SCM_PD_OPERATIONAL_STATUS_REASON = 11; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_LostDataPersistence: + _SCM_PD_OPERATIONAL_STATUS_REASON = 12; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_DisabledByPlatform: + _SCM_PD_OPERATIONAL_STATUS_REASON = 13; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_PermanentError: + _SCM_PD_OPERATIONAL_STATUS_REASON = 14; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_LostWritePersistence: + _SCM_PD_OPERATIONAL_STATUS_REASON = 15; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_FatalError: + _SCM_PD_OPERATIONAL_STATUS_REASON = 16; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_DataPersistenceLossImminent : _SCM_PD_OPERATIONAL_STATUS_REASON = 17 ; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_WritePersistenceLossImminent : _SCM_PD_OPERATIONAL_STATUS_REASON = 18 ; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_MediaRemainingSpareBlock: + _SCM_PD_OPERATIONAL_STATUS_REASON = 19; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_PerformanceDegradation: + _SCM_PD_OPERATIONAL_STATUS_REASON = 20; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_ExcessiveTemperature: + _SCM_PD_OPERATIONAL_STATUS_REASON = 21; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_InternalFailure: + _SCM_PD_OPERATIONAL_STATUS_REASON = 22; +pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_Max: + _SCM_PD_OPERATIONAL_STATUS_REASON = 23; +pub type _SCM_PD_OPERATIONAL_STATUS_REASON = ::std::os::raw::c_int; +pub use self::_SCM_PD_OPERATIONAL_STATUS_REASON as SCM_PD_OPERATIONAL_STATUS_REASON; +pub type PSCM_PD_OPERATIONAL_STATUS_REASON = *mut _SCM_PD_OPERATIONAL_STATUS_REASON; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_MANAGEMENT_STATUS { + pub Version: DWORD, + pub Size: DWORD, + pub Health: SCM_PD_HEALTH_STATUS, + pub NumberOfOperationalStatus: DWORD, + pub NumberOfAdditionalReasons: DWORD, + pub OperationalStatus: [SCM_PD_OPERATIONAL_STATUS; 16usize], + pub AdditionalReasons: [SCM_PD_OPERATIONAL_STATUS_REASON; 1usize], +} +pub type SCM_PD_MANAGEMENT_STATUS = _SCM_PD_MANAGEMENT_STATUS; +pub type PSCM_PD_MANAGEMENT_STATUS = *mut _SCM_PD_MANAGEMENT_STATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_LOCATION_STRING { + pub Version: DWORD, + pub Size: DWORD, + pub Location: [WCHAR; 1usize], +} +pub type SCM_PD_LOCATION_STRING = _SCM_PD_LOCATION_STRING; +pub type PSCM_PD_LOCATION_STRING = *mut _SCM_PD_LOCATION_STRING; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_FRU_ID_STRING { + pub Version: DWORD, + pub Size: DWORD, + pub IdentifierSize: DWORD, + pub Identifier: [BYTE; 1usize], +} +pub type SCM_PD_FRU_ID_STRING = _SCM_PD_FRU_ID_STRING; +pub type PSCM_PD_FRU_ID_STRING = *mut _SCM_PD_FRU_ID_STRING; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_FIRMWARE_DOWNLOAD { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub Slot: BYTE, + pub Reserved: [BYTE; 3usize], + pub Offset: DWORD64, + pub FirmwareImageSizeInBytes: DWORD, + pub FirmwareImage: [BYTE; 1usize], +} +pub type SCM_PD_FIRMWARE_DOWNLOAD = _SCM_PD_FIRMWARE_DOWNLOAD; +pub type PSCM_PD_FIRMWARE_DOWNLOAD = *mut _SCM_PD_FIRMWARE_DOWNLOAD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_FIRMWARE_ACTIVATE { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub Slot: BYTE, +} +pub type SCM_PD_FIRMWARE_ACTIVATE = _SCM_PD_FIRMWARE_ACTIVATE; +pub type PSCM_PD_FIRMWARE_ACTIVATE = *mut _SCM_PD_FIRMWARE_ACTIVATE; +pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivationStatus_None: + _SCM_PD_LAST_FW_ACTIVATION_STATUS = 0; +pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivationStatus_Success: + _SCM_PD_LAST_FW_ACTIVATION_STATUS = 1; +pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivationStatus_FwNotFound: + _SCM_PD_LAST_FW_ACTIVATION_STATUS = 2; +pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivationStatus_ColdRebootRequired: + _SCM_PD_LAST_FW_ACTIVATION_STATUS = 3; +pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivaitonStatus_ActivationInProgress: + _SCM_PD_LAST_FW_ACTIVATION_STATUS = 4; +pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivaitonStatus_Retry: + _SCM_PD_LAST_FW_ACTIVATION_STATUS = 5; +pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivaitonStatus_FwUnsupported: + _SCM_PD_LAST_FW_ACTIVATION_STATUS = 6; +pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivaitonStatus_UnknownError: + _SCM_PD_LAST_FW_ACTIVATION_STATUS = 7; +pub type _SCM_PD_LAST_FW_ACTIVATION_STATUS = ::std::os::raw::c_int; +pub use self::_SCM_PD_LAST_FW_ACTIVATION_STATUS as SCM_PD_LAST_FW_ACTIVATION_STATUS; +pub type PSCM_PD_LAST_FW_ACTIVATION_STATUS = *mut _SCM_PD_LAST_FW_ACTIVATION_STATUS; +pub const _SCM_PD_FIRMWARE_ACTIVATION_STATE_ScmPdFirmwareActivationState_Idle: + _SCM_PD_FIRMWARE_ACTIVATION_STATE = 0; +pub const _SCM_PD_FIRMWARE_ACTIVATION_STATE_ScmPdFirmwareActivationState_Armed: + _SCM_PD_FIRMWARE_ACTIVATION_STATE = 1; +pub const _SCM_PD_FIRMWARE_ACTIVATION_STATE_ScmPdFirmwareActivationState_Busy: + _SCM_PD_FIRMWARE_ACTIVATION_STATE = 2; +pub type _SCM_PD_FIRMWARE_ACTIVATION_STATE = ::std::os::raw::c_int; +pub use self::_SCM_PD_FIRMWARE_ACTIVATION_STATE as SCM_PD_FIRMWARE_ACTIVATION_STATE; +pub type PSCM_PD_FIRMWARE_ACTIVATION_STATE = *mut _SCM_PD_FIRMWARE_ACTIVATION_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_RUNTIME_FW_ACTIVATION_INFO { + pub Version: DWORD, + pub Size: DWORD, + pub LastFirmwareActivationStatus: SCM_PD_LAST_FW_ACTIVATION_STATUS, + pub FirmwareActivationState: SCM_PD_FIRMWARE_ACTIVATION_STATE, +} +pub type SCM_PD_RUNTIME_FW_ACTIVATION_INFO = _SCM_PD_RUNTIME_FW_ACTIVATION_INFO; +pub type PSCM_PD_RUNTIME_FW_ACTIVATION_INFO = *mut _SCM_PD_RUNTIME_FW_ACTIVATION_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_PASSTHROUGH_INPUT { + pub Version: DWORD, + pub Size: DWORD, + pub ProtocolGuid: GUID, + pub DataSize: DWORD, + pub Data: [BYTE; 1usize], +} +pub type SCM_PD_PASSTHROUGH_INPUT = _SCM_PD_PASSTHROUGH_INPUT; +pub type PSCM_PD_PASSTHROUGH_INPUT = *mut _SCM_PD_PASSTHROUGH_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_PASSTHROUGH_OUTPUT { + pub Version: DWORD, + pub Size: DWORD, + pub ProtocolGuid: GUID, + pub DataSize: DWORD, + pub Data: [BYTE; 1usize], +} +pub type SCM_PD_PASSTHROUGH_OUTPUT = _SCM_PD_PASSTHROUGH_OUTPUT; +pub type PSCM_PD_PASSTHROUGH_OUTPUT = *mut _SCM_PD_PASSTHROUGH_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_PASSTHROUGH_INVDIMM_INPUT { + pub Opcode: DWORD, + pub OpcodeParametersLength: DWORD, + pub OpcodeParameters: [BYTE; 1usize], +} +pub type SCM_PD_PASSTHROUGH_INVDIMM_INPUT = _SCM_PD_PASSTHROUGH_INVDIMM_INPUT; +pub type PSCM_PD_PASSTHROUGH_INVDIMM_INPUT = *mut _SCM_PD_PASSTHROUGH_INVDIMM_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_PASSTHROUGH_INVDIMM_OUTPUT { + pub GeneralStatus: WORD, + pub ExtendedStatus: WORD, + pub OutputDataLength: DWORD, + pub OutputData: [BYTE; 1usize], +} +pub type SCM_PD_PASSTHROUGH_INVDIMM_OUTPUT = _SCM_PD_PASSTHROUGH_INVDIMM_OUTPUT; +pub type PSCM_PD_PASSTHROUGH_INVDIMM_OUTPUT = *mut _SCM_PD_PASSTHROUGH_INVDIMM_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_REINITIALIZE_MEDIA_INPUT { + pub Version: DWORD, + pub Size: DWORD, + pub Options: _SCM_PD_REINITIALIZE_MEDIA_INPUT__bindgen_ty_1, +} +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_REINITIALIZE_MEDIA_INPUT__bindgen_ty_1 { + pub _bitfield_align_1: [u8; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, + pub __bindgen_padding_0: [u8; 3usize], +} +impl _SCM_PD_REINITIALIZE_MEDIA_INPUT__bindgen_ty_1 { + #[inline] + pub fn Overwrite(&self) -> DWORD { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_Overwrite(&mut self, val: DWORD) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1(Overwrite: DWORD) -> __BindgenBitfieldUnit<[u8; 1usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let Overwrite: u32 = unsafe { ::std::mem::transmute(Overwrite) }; + Overwrite as u64 + }); + __bindgen_bitfield_unit + } +} +pub type SCM_PD_REINITIALIZE_MEDIA_INPUT = _SCM_PD_REINITIALIZE_MEDIA_INPUT; +pub type PSCM_PD_REINITIALIZE_MEDIA_INPUT = *mut _SCM_PD_REINITIALIZE_MEDIA_INPUT; +pub const _SCM_PD_MEDIA_REINITIALIZATION_STATUS_ScmPhysicalDeviceReinit_Success: + _SCM_PD_MEDIA_REINITIALIZATION_STATUS = 0; +pub const _SCM_PD_MEDIA_REINITIALIZATION_STATUS_ScmPhysicalDeviceReinit_RebootNeeded: + _SCM_PD_MEDIA_REINITIALIZATION_STATUS = 1; +pub const _SCM_PD_MEDIA_REINITIALIZATION_STATUS_ScmPhysicalDeviceReinit_ColdBootNeeded: + _SCM_PD_MEDIA_REINITIALIZATION_STATUS = 2; +pub const _SCM_PD_MEDIA_REINITIALIZATION_STATUS_ScmPhysicalDeviceReinit_Max: + _SCM_PD_MEDIA_REINITIALIZATION_STATUS = 3; +pub type _SCM_PD_MEDIA_REINITIALIZATION_STATUS = ::std::os::raw::c_int; +pub use self::_SCM_PD_MEDIA_REINITIALIZATION_STATUS as SCM_PD_MEDIA_REINITIALIZATION_STATUS; +pub type PSCM_PD_MEDIA_REINITIALIZATION_STATUS = *mut _SCM_PD_MEDIA_REINITIALIZATION_STATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCM_PD_REINITIALIZE_MEDIA_OUTPUT { + pub Version: DWORD, + pub Size: DWORD, + pub Status: SCM_PD_MEDIA_REINITIALIZATION_STATUS, +} +pub type SCM_PD_REINITIALIZE_MEDIA_OUTPUT = _SCM_PD_REINITIALIZE_MEDIA_OUTPUT; +pub type PSCM_PD_REINITIALIZE_MEDIA_OUTPUT = *mut _SCM_PD_REINITIALIZE_MEDIA_OUTPUT; +pub const _MEDIA_TYPE_Unknown: _MEDIA_TYPE = 0; +pub const _MEDIA_TYPE_F5_1Pt2_512: _MEDIA_TYPE = 1; +pub const _MEDIA_TYPE_F3_1Pt44_512: _MEDIA_TYPE = 2; +pub const _MEDIA_TYPE_F3_2Pt88_512: _MEDIA_TYPE = 3; +pub const _MEDIA_TYPE_F3_20Pt8_512: _MEDIA_TYPE = 4; +pub const _MEDIA_TYPE_F3_720_512: _MEDIA_TYPE = 5; +pub const _MEDIA_TYPE_F5_360_512: _MEDIA_TYPE = 6; +pub const _MEDIA_TYPE_F5_320_512: _MEDIA_TYPE = 7; +pub const _MEDIA_TYPE_F5_320_1024: _MEDIA_TYPE = 8; +pub const _MEDIA_TYPE_F5_180_512: _MEDIA_TYPE = 9; +pub const _MEDIA_TYPE_F5_160_512: _MEDIA_TYPE = 10; +pub const _MEDIA_TYPE_RemovableMedia: _MEDIA_TYPE = 11; +pub const _MEDIA_TYPE_FixedMedia: _MEDIA_TYPE = 12; +pub const _MEDIA_TYPE_F3_120M_512: _MEDIA_TYPE = 13; +pub const _MEDIA_TYPE_F3_640_512: _MEDIA_TYPE = 14; +pub const _MEDIA_TYPE_F5_640_512: _MEDIA_TYPE = 15; +pub const _MEDIA_TYPE_F5_720_512: _MEDIA_TYPE = 16; +pub const _MEDIA_TYPE_F3_1Pt2_512: _MEDIA_TYPE = 17; +pub const _MEDIA_TYPE_F3_1Pt23_1024: _MEDIA_TYPE = 18; +pub const _MEDIA_TYPE_F5_1Pt23_1024: _MEDIA_TYPE = 19; +pub const _MEDIA_TYPE_F3_128Mb_512: _MEDIA_TYPE = 20; +pub const _MEDIA_TYPE_F3_230Mb_512: _MEDIA_TYPE = 21; +pub const _MEDIA_TYPE_F8_256_128: _MEDIA_TYPE = 22; +pub const _MEDIA_TYPE_F3_200Mb_512: _MEDIA_TYPE = 23; +pub const _MEDIA_TYPE_F3_240M_512: _MEDIA_TYPE = 24; +pub const _MEDIA_TYPE_F3_32M_512: _MEDIA_TYPE = 25; +pub type _MEDIA_TYPE = ::std::os::raw::c_int; +pub use self::_MEDIA_TYPE as MEDIA_TYPE; +pub type PMEDIA_TYPE = *mut _MEDIA_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FORMAT_PARAMETERS { + pub MediaType: MEDIA_TYPE, + pub StartCylinderNumber: DWORD, + pub EndCylinderNumber: DWORD, + pub StartHeadNumber: DWORD, + pub EndHeadNumber: DWORD, +} +pub type FORMAT_PARAMETERS = _FORMAT_PARAMETERS; +pub type PFORMAT_PARAMETERS = *mut _FORMAT_PARAMETERS; +pub type BAD_TRACK_NUMBER = WORD; +pub type PBAD_TRACK_NUMBER = *mut WORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FORMAT_EX_PARAMETERS { + pub MediaType: MEDIA_TYPE, + pub StartCylinderNumber: DWORD, + pub EndCylinderNumber: DWORD, + pub StartHeadNumber: DWORD, + pub EndHeadNumber: DWORD, + pub FormatGapLength: WORD, + pub SectorsPerTrack: WORD, + pub SectorNumber: [WORD; 1usize], +} +pub type FORMAT_EX_PARAMETERS = _FORMAT_EX_PARAMETERS; +pub type PFORMAT_EX_PARAMETERS = *mut _FORMAT_EX_PARAMETERS; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DISK_GEOMETRY { + pub Cylinders: LARGE_INTEGER, + pub MediaType: MEDIA_TYPE, + pub TracksPerCylinder: DWORD, + pub SectorsPerTrack: DWORD, + pub BytesPerSector: DWORD, +} +pub type DISK_GEOMETRY = _DISK_GEOMETRY; +pub type PDISK_GEOMETRY = *mut _DISK_GEOMETRY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PARTITION_INFORMATION { + pub StartingOffset: LARGE_INTEGER, + pub PartitionLength: LARGE_INTEGER, + pub HiddenSectors: DWORD, + pub PartitionNumber: DWORD, + pub PartitionType: BYTE, + pub BootIndicator: BOOLEAN, + pub RecognizedPartition: BOOLEAN, + pub RewritePartition: BOOLEAN, +} +pub type PARTITION_INFORMATION = _PARTITION_INFORMATION; +pub type PPARTITION_INFORMATION = *mut _PARTITION_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SET_PARTITION_INFORMATION { + pub PartitionType: BYTE, +} +pub type SET_PARTITION_INFORMATION = _SET_PARTITION_INFORMATION; +pub type PSET_PARTITION_INFORMATION = *mut _SET_PARTITION_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DRIVE_LAYOUT_INFORMATION { + pub PartitionCount: DWORD, + pub Signature: DWORD, + pub PartitionEntry: [PARTITION_INFORMATION; 1usize], +} +pub type DRIVE_LAYOUT_INFORMATION = _DRIVE_LAYOUT_INFORMATION; +pub type PDRIVE_LAYOUT_INFORMATION = *mut _DRIVE_LAYOUT_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _VERIFY_INFORMATION { + pub StartingOffset: LARGE_INTEGER, + pub Length: DWORD, +} +pub type VERIFY_INFORMATION = _VERIFY_INFORMATION; +pub type PVERIFY_INFORMATION = *mut _VERIFY_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REASSIGN_BLOCKS { + pub Reserved: WORD, + pub Count: WORD, + pub BlockNumber: [DWORD; 1usize], +} +pub type REASSIGN_BLOCKS = _REASSIGN_BLOCKS; +pub type PREASSIGN_BLOCKS = *mut _REASSIGN_BLOCKS; +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct _REASSIGN_BLOCKS_EX { + pub Reserved: WORD, + pub Count: WORD, + pub BlockNumber: [LARGE_INTEGER; 1usize], +} +pub type REASSIGN_BLOCKS_EX = _REASSIGN_BLOCKS_EX; +pub type PREASSIGN_BLOCKS_EX = *mut _REASSIGN_BLOCKS_EX; +pub const _PARTITION_STYLE_PARTITION_STYLE_MBR: _PARTITION_STYLE = 0; +pub const _PARTITION_STYLE_PARTITION_STYLE_GPT: _PARTITION_STYLE = 1; +pub const _PARTITION_STYLE_PARTITION_STYLE_RAW: _PARTITION_STYLE = 2; +pub type _PARTITION_STYLE = ::std::os::raw::c_int; +pub use self::_PARTITION_STYLE as PARTITION_STYLE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PARTITION_INFORMATION_GPT { + pub PartitionType: GUID, + pub PartitionId: GUID, + pub Attributes: DWORD64, + pub Name: [WCHAR; 36usize], +} +pub type PARTITION_INFORMATION_GPT = _PARTITION_INFORMATION_GPT; +pub type PPARTITION_INFORMATION_GPT = *mut _PARTITION_INFORMATION_GPT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PARTITION_INFORMATION_MBR { + pub PartitionType: BYTE, + pub BootIndicator: BOOLEAN, + pub RecognizedPartition: BOOLEAN, + pub HiddenSectors: DWORD, + pub PartitionId: GUID, +} +pub type PARTITION_INFORMATION_MBR = _PARTITION_INFORMATION_MBR; +pub type PPARTITION_INFORMATION_MBR = *mut _PARTITION_INFORMATION_MBR; +pub type SET_PARTITION_INFORMATION_MBR = SET_PARTITION_INFORMATION; +pub type SET_PARTITION_INFORMATION_GPT = PARTITION_INFORMATION_GPT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _SET_PARTITION_INFORMATION_EX { + pub PartitionStyle: PARTITION_STYLE, + pub __bindgen_anon_1: _SET_PARTITION_INFORMATION_EX__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SET_PARTITION_INFORMATION_EX__bindgen_ty_1 { + pub Mbr: SET_PARTITION_INFORMATION_MBR, + pub Gpt: SET_PARTITION_INFORMATION_GPT, +} +pub type SET_PARTITION_INFORMATION_EX = _SET_PARTITION_INFORMATION_EX; +pub type PSET_PARTITION_INFORMATION_EX = *mut _SET_PARTITION_INFORMATION_EX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CREATE_DISK_GPT { + pub DiskId: GUID, + pub MaxPartitionCount: DWORD, +} +pub type CREATE_DISK_GPT = _CREATE_DISK_GPT; +pub type PCREATE_DISK_GPT = *mut _CREATE_DISK_GPT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CREATE_DISK_MBR { + pub Signature: DWORD, +} +pub type CREATE_DISK_MBR = _CREATE_DISK_MBR; +pub type PCREATE_DISK_MBR = *mut _CREATE_DISK_MBR; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CREATE_DISK { + pub PartitionStyle: PARTITION_STYLE, + pub __bindgen_anon_1: _CREATE_DISK__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _CREATE_DISK__bindgen_ty_1 { + pub Mbr: CREATE_DISK_MBR, + pub Gpt: CREATE_DISK_GPT, +} +pub type CREATE_DISK = _CREATE_DISK; +pub type PCREATE_DISK = *mut _CREATE_DISK; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _GET_LENGTH_INFORMATION { + pub Length: LARGE_INTEGER, +} +pub type GET_LENGTH_INFORMATION = _GET_LENGTH_INFORMATION; +pub type PGET_LENGTH_INFORMATION = *mut _GET_LENGTH_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PARTITION_INFORMATION_EX { + pub PartitionStyle: PARTITION_STYLE, + pub StartingOffset: LARGE_INTEGER, + pub PartitionLength: LARGE_INTEGER, + pub PartitionNumber: DWORD, + pub RewritePartition: BOOLEAN, + pub IsServicePartition: BOOLEAN, + pub __bindgen_anon_1: _PARTITION_INFORMATION_EX__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PARTITION_INFORMATION_EX__bindgen_ty_1 { + pub Mbr: PARTITION_INFORMATION_MBR, + pub Gpt: PARTITION_INFORMATION_GPT, +} +pub type PARTITION_INFORMATION_EX = _PARTITION_INFORMATION_EX; +pub type PPARTITION_INFORMATION_EX = *mut _PARTITION_INFORMATION_EX; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DRIVE_LAYOUT_INFORMATION_GPT { + pub DiskId: GUID, + pub StartingUsableOffset: LARGE_INTEGER, + pub UsableLength: LARGE_INTEGER, + pub MaxPartitionCount: DWORD, +} +pub type DRIVE_LAYOUT_INFORMATION_GPT = _DRIVE_LAYOUT_INFORMATION_GPT; +pub type PDRIVE_LAYOUT_INFORMATION_GPT = *mut _DRIVE_LAYOUT_INFORMATION_GPT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVE_LAYOUT_INFORMATION_MBR { + pub Signature: DWORD, + pub CheckSum: DWORD, +} +pub type DRIVE_LAYOUT_INFORMATION_MBR = _DRIVE_LAYOUT_INFORMATION_MBR; +pub type PDRIVE_LAYOUT_INFORMATION_MBR = *mut _DRIVE_LAYOUT_INFORMATION_MBR; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DRIVE_LAYOUT_INFORMATION_EX { + pub PartitionStyle: DWORD, + pub PartitionCount: DWORD, + pub __bindgen_anon_1: _DRIVE_LAYOUT_INFORMATION_EX__bindgen_ty_1, + pub PartitionEntry: [PARTITION_INFORMATION_EX; 1usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DRIVE_LAYOUT_INFORMATION_EX__bindgen_ty_1 { + pub Mbr: DRIVE_LAYOUT_INFORMATION_MBR, + pub Gpt: DRIVE_LAYOUT_INFORMATION_GPT, +} +pub type DRIVE_LAYOUT_INFORMATION_EX = _DRIVE_LAYOUT_INFORMATION_EX; +pub type PDRIVE_LAYOUT_INFORMATION_EX = *mut _DRIVE_LAYOUT_INFORMATION_EX; +pub const _DETECTION_TYPE_DetectNone: _DETECTION_TYPE = 0; +pub const _DETECTION_TYPE_DetectInt13: _DETECTION_TYPE = 1; +pub const _DETECTION_TYPE_DetectExInt13: _DETECTION_TYPE = 2; +pub type _DETECTION_TYPE = ::std::os::raw::c_int; +pub use self::_DETECTION_TYPE as DETECTION_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISK_INT13_INFO { + pub DriveSelect: WORD, + pub MaxCylinders: DWORD, + pub SectorsPerTrack: WORD, + pub MaxHeads: WORD, + pub NumberDrives: WORD, +} +pub type DISK_INT13_INFO = _DISK_INT13_INFO; +pub type PDISK_INT13_INFO = *mut _DISK_INT13_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISK_EX_INT13_INFO { + pub ExBufferSize: WORD, + pub ExFlags: WORD, + pub ExCylinders: DWORD, + pub ExHeads: DWORD, + pub ExSectorsPerTrack: DWORD, + pub ExSectorsPerDrive: DWORD64, + pub ExSectorSize: WORD, + pub ExReserved: WORD, +} +pub type DISK_EX_INT13_INFO = _DISK_EX_INT13_INFO; +pub type PDISK_EX_INT13_INFO = *mut _DISK_EX_INT13_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DISK_DETECTION_INFO { + pub SizeOfDetectInfo: DWORD, + pub DetectionType: DETECTION_TYPE, + pub __bindgen_anon_1: _DISK_DETECTION_INFO__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DISK_DETECTION_INFO__bindgen_ty_1 { + pub __bindgen_anon_1: _DISK_DETECTION_INFO__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISK_DETECTION_INFO__bindgen_ty_1__bindgen_ty_1 { + pub Int13: DISK_INT13_INFO, + pub ExInt13: DISK_EX_INT13_INFO, +} +pub type DISK_DETECTION_INFO = _DISK_DETECTION_INFO; +pub type PDISK_DETECTION_INFO = *mut _DISK_DETECTION_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DISK_PARTITION_INFO { + pub SizeOfPartitionInfo: DWORD, + pub PartitionStyle: PARTITION_STYLE, + pub __bindgen_anon_1: _DISK_PARTITION_INFO__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DISK_PARTITION_INFO__bindgen_ty_1 { + pub Mbr: _DISK_PARTITION_INFO__bindgen_ty_1__bindgen_ty_1, + pub Gpt: _DISK_PARTITION_INFO__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISK_PARTITION_INFO__bindgen_ty_1__bindgen_ty_1 { + pub Signature: DWORD, + pub CheckSum: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISK_PARTITION_INFO__bindgen_ty_1__bindgen_ty_2 { + pub DiskId: GUID, +} +pub type DISK_PARTITION_INFO = _DISK_PARTITION_INFO; +pub type PDISK_PARTITION_INFO = *mut _DISK_PARTITION_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DISK_GEOMETRY_EX { + pub Geometry: DISK_GEOMETRY, + pub DiskSize: LARGE_INTEGER, + pub Data: [BYTE; 1usize], +} +pub type DISK_GEOMETRY_EX = _DISK_GEOMETRY_EX; +pub type PDISK_GEOMETRY_EX = *mut _DISK_GEOMETRY_EX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISK_CONTROLLER_NUMBER { + pub ControllerNumber: DWORD, + pub DiskNumber: DWORD, +} +pub type DISK_CONTROLLER_NUMBER = _DISK_CONTROLLER_NUMBER; +pub type PDISK_CONTROLLER_NUMBER = *mut _DISK_CONTROLLER_NUMBER; +pub const DISK_CACHE_RETENTION_PRIORITY_EqualPriority: DISK_CACHE_RETENTION_PRIORITY = 0; +pub const DISK_CACHE_RETENTION_PRIORITY_KeepPrefetchedData: DISK_CACHE_RETENTION_PRIORITY = 1; +pub const DISK_CACHE_RETENTION_PRIORITY_KeepReadData: DISK_CACHE_RETENTION_PRIORITY = 2; +pub type DISK_CACHE_RETENTION_PRIORITY = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DISK_CACHE_INFORMATION { + pub ParametersSavable: BOOLEAN, + pub ReadCacheEnabled: BOOLEAN, + pub WriteCacheEnabled: BOOLEAN, + pub ReadRetentionPriority: DISK_CACHE_RETENTION_PRIORITY, + pub WriteRetentionPriority: DISK_CACHE_RETENTION_PRIORITY, + pub DisablePrefetchTransferLength: WORD, + pub PrefetchScalar: BOOLEAN, + pub __bindgen_anon_1: _DISK_CACHE_INFORMATION__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _DISK_CACHE_INFORMATION__bindgen_ty_1 { + pub ScalarPrefetch: _DISK_CACHE_INFORMATION__bindgen_ty_1__bindgen_ty_1, + pub BlockPrefetch: _DISK_CACHE_INFORMATION__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISK_CACHE_INFORMATION__bindgen_ty_1__bindgen_ty_1 { + pub Minimum: WORD, + pub Maximum: WORD, + pub MaximumBlocks: WORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISK_CACHE_INFORMATION__bindgen_ty_1__bindgen_ty_2 { + pub Minimum: WORD, + pub Maximum: WORD, +} +pub type DISK_CACHE_INFORMATION = _DISK_CACHE_INFORMATION; +pub type PDISK_CACHE_INFORMATION = *mut _DISK_CACHE_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DISK_GROW_PARTITION { + pub PartitionNumber: DWORD, + pub BytesToGrow: LARGE_INTEGER, +} +pub type DISK_GROW_PARTITION = _DISK_GROW_PARTITION; +pub type PDISK_GROW_PARTITION = *mut _DISK_GROW_PARTITION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _HISTOGRAM_BUCKET { + pub Reads: DWORD, + pub Writes: DWORD, +} +pub type HISTOGRAM_BUCKET = _HISTOGRAM_BUCKET; +pub type PHISTOGRAM_BUCKET = *mut _HISTOGRAM_BUCKET; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DISK_HISTOGRAM { + pub DiskSize: LARGE_INTEGER, + pub Start: LARGE_INTEGER, + pub End: LARGE_INTEGER, + pub Average: LARGE_INTEGER, + pub AverageRead: LARGE_INTEGER, + pub AverageWrite: LARGE_INTEGER, + pub Granularity: DWORD, + pub Size: DWORD, + pub ReadCount: DWORD, + pub WriteCount: DWORD, + pub Histogram: PHISTOGRAM_BUCKET, +} +pub type DISK_HISTOGRAM = _DISK_HISTOGRAM; +pub type PDISK_HISTOGRAM = *mut _DISK_HISTOGRAM; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DISK_PERFORMANCE { + pub BytesRead: LARGE_INTEGER, + pub BytesWritten: LARGE_INTEGER, + pub ReadTime: LARGE_INTEGER, + pub WriteTime: LARGE_INTEGER, + pub IdleTime: LARGE_INTEGER, + pub ReadCount: DWORD, + pub WriteCount: DWORD, + pub QueueDepth: DWORD, + pub SplitCount: DWORD, + pub QueryTime: LARGE_INTEGER, + pub StorageDeviceNumber: DWORD, + pub StorageManagerName: [WCHAR; 8usize], +} +pub type DISK_PERFORMANCE = _DISK_PERFORMANCE; +pub type PDISK_PERFORMANCE = *mut _DISK_PERFORMANCE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DISK_RECORD { + pub ByteOffset: LARGE_INTEGER, + pub StartTime: LARGE_INTEGER, + pub EndTime: LARGE_INTEGER, + pub VirtualAddress: PVOID, + pub NumberOfBytes: DWORD, + pub DeviceNumber: BYTE, + pub ReadRequest: BOOLEAN, +} +pub type DISK_RECORD = _DISK_RECORD; +pub type PDISK_RECORD = *mut _DISK_RECORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DISK_LOGGING { + pub Function: BYTE, + pub BufferAddress: PVOID, + pub BufferSize: DWORD, +} +pub type DISK_LOGGING = _DISK_LOGGING; +pub type PDISK_LOGGING = *mut _DISK_LOGGING; +pub const _BIN_TYPES_RequestSize: _BIN_TYPES = 0; +pub const _BIN_TYPES_RequestLocation: _BIN_TYPES = 1; +pub type _BIN_TYPES = ::std::os::raw::c_int; +pub use self::_BIN_TYPES as BIN_TYPES; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _BIN_RANGE { + pub StartValue: LARGE_INTEGER, + pub Length: LARGE_INTEGER, +} +pub type BIN_RANGE = _BIN_RANGE; +pub type PBIN_RANGE = *mut _BIN_RANGE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PERF_BIN { + pub NumberOfBins: DWORD, + pub TypeOfBin: DWORD, + pub BinsRanges: [BIN_RANGE; 1usize], +} +pub type PERF_BIN = _PERF_BIN; +pub type PPERF_BIN = *mut _PERF_BIN; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _BIN_COUNT { + pub BinRange: BIN_RANGE, + pub BinCount: DWORD, +} +pub type BIN_COUNT = _BIN_COUNT; +pub type PBIN_COUNT = *mut _BIN_COUNT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _BIN_RESULTS { + pub NumberOfBins: DWORD, + pub BinCounts: [BIN_COUNT; 1usize], +} +pub type BIN_RESULTS = _BIN_RESULTS; +pub type PBIN_RESULTS = *mut _BIN_RESULTS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _GETVERSIONINPARAMS { + pub bVersion: BYTE, + pub bRevision: BYTE, + pub bReserved: BYTE, + pub bIDEDeviceMap: BYTE, + pub fCapabilities: DWORD, + pub dwReserved: [DWORD; 4usize], +} +pub type GETVERSIONINPARAMS = _GETVERSIONINPARAMS; +pub type PGETVERSIONINPARAMS = *mut _GETVERSIONINPARAMS; +pub type LPGETVERSIONINPARAMS = *mut _GETVERSIONINPARAMS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IDEREGS { + pub bFeaturesReg: BYTE, + pub bSectorCountReg: BYTE, + pub bSectorNumberReg: BYTE, + pub bCylLowReg: BYTE, + pub bCylHighReg: BYTE, + pub bDriveHeadReg: BYTE, + pub bCommandReg: BYTE, + pub bReserved: BYTE, +} +pub type IDEREGS = _IDEREGS; +pub type PIDEREGS = *mut _IDEREGS; +pub type LPIDEREGS = *mut _IDEREGS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _SENDCMDINPARAMS { + pub cBufferSize: DWORD, + pub irDriveRegs: IDEREGS, + pub bDriveNumber: BYTE, + pub bReserved: [BYTE; 3usize], + pub dwReserved: [DWORD; 4usize], + pub bBuffer: [BYTE; 1usize], +} +pub type SENDCMDINPARAMS = _SENDCMDINPARAMS; +pub type PSENDCMDINPARAMS = *mut _SENDCMDINPARAMS; +pub type LPSENDCMDINPARAMS = *mut _SENDCMDINPARAMS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVERSTATUS { + pub bDriverError: BYTE, + pub bIDEError: BYTE, + pub bReserved: [BYTE; 2usize], + pub dwReserved: [DWORD; 2usize], +} +pub type DRIVERSTATUS = _DRIVERSTATUS; +pub type PDRIVERSTATUS = *mut _DRIVERSTATUS; +pub type LPDRIVERSTATUS = *mut _DRIVERSTATUS; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct _SENDCMDOUTPARAMS { + pub cBufferSize: DWORD, + pub DriverStatus: DRIVERSTATUS, + pub bBuffer: [BYTE; 1usize], +} +pub type SENDCMDOUTPARAMS = _SENDCMDOUTPARAMS; +pub type PSENDCMDOUTPARAMS = *mut _SENDCMDOUTPARAMS; +pub type LPSENDCMDOUTPARAMS = *mut _SENDCMDOUTPARAMS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _GET_DISK_ATTRIBUTES { + pub Version: DWORD, + pub Reserved1: DWORD, + pub Attributes: DWORDLONG, +} +pub type GET_DISK_ATTRIBUTES = _GET_DISK_ATTRIBUTES; +pub type PGET_DISK_ATTRIBUTES = *mut _GET_DISK_ATTRIBUTES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SET_DISK_ATTRIBUTES { + pub Version: DWORD, + pub Persist: BOOLEAN, + pub Reserved1: [BYTE; 3usize], + pub Attributes: DWORDLONG, + pub AttributesMask: DWORDLONG, + pub Reserved2: [DWORD; 4usize], +} +pub type SET_DISK_ATTRIBUTES = _SET_DISK_ATTRIBUTES; +pub type PSET_DISK_ATTRIBUTES = *mut _SET_DISK_ATTRIBUTES; +pub const _ELEMENT_TYPE_AllElements: _ELEMENT_TYPE = 0; +pub const _ELEMENT_TYPE_ChangerTransport: _ELEMENT_TYPE = 1; +pub const _ELEMENT_TYPE_ChangerSlot: _ELEMENT_TYPE = 2; +pub const _ELEMENT_TYPE_ChangerIEPort: _ELEMENT_TYPE = 3; +pub const _ELEMENT_TYPE_ChangerDrive: _ELEMENT_TYPE = 4; +pub const _ELEMENT_TYPE_ChangerDoor: _ELEMENT_TYPE = 5; +pub const _ELEMENT_TYPE_ChangerKeypad: _ELEMENT_TYPE = 6; +pub const _ELEMENT_TYPE_ChangerMaxElement: _ELEMENT_TYPE = 7; +pub type _ELEMENT_TYPE = ::std::os::raw::c_int; +pub use self::_ELEMENT_TYPE as ELEMENT_TYPE; +pub type PELEMENT_TYPE = *mut _ELEMENT_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CHANGER_ELEMENT { + pub ElementType: ELEMENT_TYPE, + pub ElementAddress: DWORD, +} +pub type CHANGER_ELEMENT = _CHANGER_ELEMENT; +pub type PCHANGER_ELEMENT = *mut _CHANGER_ELEMENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CHANGER_ELEMENT_LIST { + pub Element: CHANGER_ELEMENT, + pub NumberOfElements: DWORD, +} +pub type CHANGER_ELEMENT_LIST = _CHANGER_ELEMENT_LIST; +pub type PCHANGER_ELEMENT_LIST = *mut _CHANGER_ELEMENT_LIST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _GET_CHANGER_PARAMETERS { + pub Size: DWORD, + pub NumberTransportElements: WORD, + pub NumberStorageElements: WORD, + pub NumberCleanerSlots: WORD, + pub NumberIEElements: WORD, + pub NumberDataTransferElements: WORD, + pub NumberOfDoors: WORD, + pub FirstSlotNumber: WORD, + pub FirstDriveNumber: WORD, + pub FirstTransportNumber: WORD, + pub FirstIEPortNumber: WORD, + pub FirstCleanerSlotAddress: WORD, + pub MagazineSize: WORD, + pub DriveCleanTimeout: DWORD, + pub Features0: DWORD, + pub Features1: DWORD, + pub MoveFromTransport: BYTE, + pub MoveFromSlot: BYTE, + pub MoveFromIePort: BYTE, + pub MoveFromDrive: BYTE, + pub ExchangeFromTransport: BYTE, + pub ExchangeFromSlot: BYTE, + pub ExchangeFromIePort: BYTE, + pub ExchangeFromDrive: BYTE, + pub LockUnlockCapabilities: BYTE, + pub PositionCapabilities: BYTE, + pub Reserved1: [BYTE; 2usize], + pub Reserved2: [DWORD; 2usize], +} +pub type GET_CHANGER_PARAMETERS = _GET_CHANGER_PARAMETERS; +pub type PGET_CHANGER_PARAMETERS = *mut _GET_CHANGER_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CHANGER_PRODUCT_DATA { + pub VendorId: [BYTE; 8usize], + pub ProductId: [BYTE; 16usize], + pub Revision: [BYTE; 4usize], + pub SerialNumber: [BYTE; 32usize], + pub DeviceType: BYTE, +} +pub type CHANGER_PRODUCT_DATA = _CHANGER_PRODUCT_DATA; +pub type PCHANGER_PRODUCT_DATA = *mut _CHANGER_PRODUCT_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CHANGER_SET_ACCESS { + pub Element: CHANGER_ELEMENT, + pub Control: DWORD, +} +pub type CHANGER_SET_ACCESS = _CHANGER_SET_ACCESS; +pub type PCHANGER_SET_ACCESS = *mut _CHANGER_SET_ACCESS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CHANGER_READ_ELEMENT_STATUS { + pub ElementList: CHANGER_ELEMENT_LIST, + pub VolumeTagInfo: BOOLEAN, +} +pub type CHANGER_READ_ELEMENT_STATUS = _CHANGER_READ_ELEMENT_STATUS; +pub type PCHANGER_READ_ELEMENT_STATUS = *mut _CHANGER_READ_ELEMENT_STATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CHANGER_ELEMENT_STATUS { + pub Element: CHANGER_ELEMENT, + pub SrcElementAddress: CHANGER_ELEMENT, + pub Flags: DWORD, + pub ExceptionCode: DWORD, + pub TargetId: BYTE, + pub Lun: BYTE, + pub Reserved: WORD, + pub PrimaryVolumeID: [BYTE; 36usize], + pub AlternateVolumeID: [BYTE; 36usize], +} +pub type CHANGER_ELEMENT_STATUS = _CHANGER_ELEMENT_STATUS; +pub type PCHANGER_ELEMENT_STATUS = *mut _CHANGER_ELEMENT_STATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CHANGER_ELEMENT_STATUS_EX { + pub Element: CHANGER_ELEMENT, + pub SrcElementAddress: CHANGER_ELEMENT, + pub Flags: DWORD, + pub ExceptionCode: DWORD, + pub TargetId: BYTE, + pub Lun: BYTE, + pub Reserved: WORD, + pub PrimaryVolumeID: [BYTE; 36usize], + pub AlternateVolumeID: [BYTE; 36usize], + pub VendorIdentification: [BYTE; 8usize], + pub ProductIdentification: [BYTE; 16usize], + pub SerialNumber: [BYTE; 32usize], +} +pub type CHANGER_ELEMENT_STATUS_EX = _CHANGER_ELEMENT_STATUS_EX; +pub type PCHANGER_ELEMENT_STATUS_EX = *mut _CHANGER_ELEMENT_STATUS_EX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CHANGER_INITIALIZE_ELEMENT_STATUS { + pub ElementList: CHANGER_ELEMENT_LIST, + pub BarCodeScan: BOOLEAN, +} +pub type CHANGER_INITIALIZE_ELEMENT_STATUS = _CHANGER_INITIALIZE_ELEMENT_STATUS; +pub type PCHANGER_INITIALIZE_ELEMENT_STATUS = *mut _CHANGER_INITIALIZE_ELEMENT_STATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CHANGER_SET_POSITION { + pub Transport: CHANGER_ELEMENT, + pub Destination: CHANGER_ELEMENT, + pub Flip: BOOLEAN, +} +pub type CHANGER_SET_POSITION = _CHANGER_SET_POSITION; +pub type PCHANGER_SET_POSITION = *mut _CHANGER_SET_POSITION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CHANGER_EXCHANGE_MEDIUM { + pub Transport: CHANGER_ELEMENT, + pub Source: CHANGER_ELEMENT, + pub Destination1: CHANGER_ELEMENT, + pub Destination2: CHANGER_ELEMENT, + pub Flip1: BOOLEAN, + pub Flip2: BOOLEAN, +} +pub type CHANGER_EXCHANGE_MEDIUM = _CHANGER_EXCHANGE_MEDIUM; +pub type PCHANGER_EXCHANGE_MEDIUM = *mut _CHANGER_EXCHANGE_MEDIUM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CHANGER_MOVE_MEDIUM { + pub Transport: CHANGER_ELEMENT, + pub Source: CHANGER_ELEMENT, + pub Destination: CHANGER_ELEMENT, + pub Flip: BOOLEAN, +} +pub type CHANGER_MOVE_MEDIUM = _CHANGER_MOVE_MEDIUM; +pub type PCHANGER_MOVE_MEDIUM = *mut _CHANGER_MOVE_MEDIUM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CHANGER_SEND_VOLUME_TAG_INFORMATION { + pub StartingElement: CHANGER_ELEMENT, + pub ActionCode: DWORD, + pub VolumeIDTemplate: [BYTE; 40usize], +} +pub type CHANGER_SEND_VOLUME_TAG_INFORMATION = _CHANGER_SEND_VOLUME_TAG_INFORMATION; +pub type PCHANGER_SEND_VOLUME_TAG_INFORMATION = *mut _CHANGER_SEND_VOLUME_TAG_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _READ_ELEMENT_ADDRESS_INFO { + pub NumberOfElements: DWORD, + pub ElementStatus: [CHANGER_ELEMENT_STATUS; 1usize], +} +pub type READ_ELEMENT_ADDRESS_INFO = _READ_ELEMENT_ADDRESS_INFO; +pub type PREAD_ELEMENT_ADDRESS_INFO = *mut _READ_ELEMENT_ADDRESS_INFO; +pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemNone: _CHANGER_DEVICE_PROBLEM_TYPE = 0; +pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemHardware: _CHANGER_DEVICE_PROBLEM_TYPE = 1; +pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemCHMError: _CHANGER_DEVICE_PROBLEM_TYPE = 2; +pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemDoorOpen: _CHANGER_DEVICE_PROBLEM_TYPE = 3; +pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemCalibrationError: _CHANGER_DEVICE_PROBLEM_TYPE = + 4; +pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemTargetFailure: _CHANGER_DEVICE_PROBLEM_TYPE = 5; +pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemCHMMoveError: _CHANGER_DEVICE_PROBLEM_TYPE = 6; +pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemCHMZeroError: _CHANGER_DEVICE_PROBLEM_TYPE = 7; +pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemCartridgeInsertError: + _CHANGER_DEVICE_PROBLEM_TYPE = 8; +pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemPositionError: _CHANGER_DEVICE_PROBLEM_TYPE = 9; +pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemSensorError: _CHANGER_DEVICE_PROBLEM_TYPE = 10; +pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemCartridgeEjectError: + _CHANGER_DEVICE_PROBLEM_TYPE = 11; +pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemGripperError: _CHANGER_DEVICE_PROBLEM_TYPE = 12; +pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemDriveError: _CHANGER_DEVICE_PROBLEM_TYPE = 13; +pub type _CHANGER_DEVICE_PROBLEM_TYPE = ::std::os::raw::c_int; +pub use self::_CHANGER_DEVICE_PROBLEM_TYPE as CHANGER_DEVICE_PROBLEM_TYPE; +pub type PCHANGER_DEVICE_PROBLEM_TYPE = *mut _CHANGER_DEVICE_PROBLEM_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PATHNAME_BUFFER { + pub PathNameLength: DWORD, + pub Name: [WCHAR; 1usize], +} +pub type PATHNAME_BUFFER = _PATHNAME_BUFFER; +pub type PPATHNAME_BUFFER = *mut _PATHNAME_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FSCTL_QUERY_FAT_BPB_BUFFER { + pub First0x24BytesOfBootSector: [BYTE; 36usize], +} +pub type FSCTL_QUERY_FAT_BPB_BUFFER = _FSCTL_QUERY_FAT_BPB_BUFFER; +pub type PFSCTL_QUERY_FAT_BPB_BUFFER = *mut _FSCTL_QUERY_FAT_BPB_BUFFER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct NTFS_VOLUME_DATA_BUFFER { + pub VolumeSerialNumber: LARGE_INTEGER, + pub NumberSectors: LARGE_INTEGER, + pub TotalClusters: LARGE_INTEGER, + pub FreeClusters: LARGE_INTEGER, + pub TotalReserved: LARGE_INTEGER, + pub BytesPerSector: DWORD, + pub BytesPerCluster: DWORD, + pub BytesPerFileRecordSegment: DWORD, + pub ClustersPerFileRecordSegment: DWORD, + pub MftValidDataLength: LARGE_INTEGER, + pub MftStartLcn: LARGE_INTEGER, + pub Mft2StartLcn: LARGE_INTEGER, + pub MftZoneStart: LARGE_INTEGER, + pub MftZoneEnd: LARGE_INTEGER, +} +pub type PNTFS_VOLUME_DATA_BUFFER = *mut NTFS_VOLUME_DATA_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NTFS_EXTENDED_VOLUME_DATA { + pub ByteCount: DWORD, + pub MajorVersion: WORD, + pub MinorVersion: WORD, + pub BytesPerPhysicalSector: DWORD, + pub LfsMajorVersion: WORD, + pub LfsMinorVersion: WORD, + pub MaxDeviceTrimExtentCount: DWORD, + pub MaxDeviceTrimByteCount: DWORD, + pub MaxVolumeTrimExtentCount: DWORD, + pub MaxVolumeTrimByteCount: DWORD, +} +pub type PNTFS_EXTENDED_VOLUME_DATA = *mut NTFS_EXTENDED_VOLUME_DATA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct REFS_VOLUME_DATA_BUFFER { + pub ByteCount: DWORD, + pub MajorVersion: DWORD, + pub MinorVersion: DWORD, + pub BytesPerPhysicalSector: DWORD, + pub VolumeSerialNumber: LARGE_INTEGER, + pub NumberSectors: LARGE_INTEGER, + pub TotalClusters: LARGE_INTEGER, + pub FreeClusters: LARGE_INTEGER, + pub TotalReserved: LARGE_INTEGER, + pub BytesPerSector: DWORD, + pub BytesPerCluster: DWORD, + pub MaximumSizeOfResidentFile: LARGE_INTEGER, + pub FastTierDataFillRatio: WORD, + pub SlowTierDataFillRatio: WORD, + pub DestagesFastTierToSlowTierRate: DWORD, + pub Reserved: [LARGE_INTEGER; 9usize], +} +pub type PREFS_VOLUME_DATA_BUFFER = *mut REFS_VOLUME_DATA_BUFFER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct STARTING_LCN_INPUT_BUFFER { + pub StartingLcn: LARGE_INTEGER, +} +pub type PSTARTING_LCN_INPUT_BUFFER = *mut STARTING_LCN_INPUT_BUFFER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct STARTING_LCN_INPUT_BUFFER_EX { + pub StartingLcn: LARGE_INTEGER, + pub Flags: DWORD, +} +pub type PSTARTING_LCN_INPUT_BUFFER_EX = *mut STARTING_LCN_INPUT_BUFFER_EX; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct VOLUME_BITMAP_BUFFER { + pub StartingLcn: LARGE_INTEGER, + pub BitmapSize: LARGE_INTEGER, + pub Buffer: [BYTE; 1usize], +} +pub type PVOLUME_BITMAP_BUFFER = *mut VOLUME_BITMAP_BUFFER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct STARTING_VCN_INPUT_BUFFER { + pub StartingVcn: LARGE_INTEGER, +} +pub type PSTARTING_VCN_INPUT_BUFFER = *mut STARTING_VCN_INPUT_BUFFER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct RETRIEVAL_POINTERS_BUFFER { + pub ExtentCount: DWORD, + pub StartingVcn: LARGE_INTEGER, + pub Extents: [RETRIEVAL_POINTERS_BUFFER__bindgen_ty_1; 1usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct RETRIEVAL_POINTERS_BUFFER__bindgen_ty_1 { + pub NextVcn: LARGE_INTEGER, + pub Lcn: LARGE_INTEGER, +} +pub type PRETRIEVAL_POINTERS_BUFFER = *mut RETRIEVAL_POINTERS_BUFFER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER { + pub ExtentCount: DWORD, + pub StartingVcn: LARGE_INTEGER, + pub Extents: [RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER__bindgen_ty_1; 1usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER__bindgen_ty_1 { + pub NextVcn: LARGE_INTEGER, + pub Lcn: LARGE_INTEGER, + pub ReferenceCount: DWORD, +} +pub type PRETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER = *mut RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RETRIEVAL_POINTER_COUNT { + pub ExtentCount: DWORD, +} +pub type PRETRIEVAL_POINTER_COUNT = *mut RETRIEVAL_POINTER_COUNT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct NTFS_FILE_RECORD_INPUT_BUFFER { + pub FileReferenceNumber: LARGE_INTEGER, +} +pub type PNTFS_FILE_RECORD_INPUT_BUFFER = *mut NTFS_FILE_RECORD_INPUT_BUFFER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct NTFS_FILE_RECORD_OUTPUT_BUFFER { + pub FileReferenceNumber: LARGE_INTEGER, + pub FileRecordLength: DWORD, + pub FileRecordBuffer: [BYTE; 1usize], +} +pub type PNTFS_FILE_RECORD_OUTPUT_BUFFER = *mut NTFS_FILE_RECORD_OUTPUT_BUFFER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct MOVE_FILE_DATA { + pub FileHandle: HANDLE, + pub StartingVcn: LARGE_INTEGER, + pub StartingLcn: LARGE_INTEGER, + pub ClusterCount: DWORD, +} +pub type PMOVE_FILE_DATA = *mut MOVE_FILE_DATA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct MOVE_FILE_RECORD_DATA { + pub FileHandle: HANDLE, + pub SourceFileRecord: LARGE_INTEGER, + pub TargetFileRecord: LARGE_INTEGER, +} +pub type PMOVE_FILE_RECORD_DATA = *mut MOVE_FILE_RECORD_DATA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _MOVE_FILE_DATA32 { + pub FileHandle: UINT32, + pub StartingVcn: LARGE_INTEGER, + pub StartingLcn: LARGE_INTEGER, + pub ClusterCount: DWORD, +} +pub type MOVE_FILE_DATA32 = _MOVE_FILE_DATA32; +pub type PMOVE_FILE_DATA32 = *mut _MOVE_FILE_DATA32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FIND_BY_SID_DATA { + pub Restart: DWORD, + pub Sid: SID, +} +pub type PFIND_BY_SID_DATA = *mut FIND_BY_SID_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FIND_BY_SID_OUTPUT { + pub NextEntryOffset: DWORD, + pub FileIndex: DWORD, + pub FileNameLength: DWORD, + pub FileName: [WCHAR; 1usize], +} +pub type PFIND_BY_SID_OUTPUT = *mut FIND_BY_SID_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MFT_ENUM_DATA_V0 { + pub StartFileReferenceNumber: DWORDLONG, + pub LowUsn: USN, + pub HighUsn: USN, +} +pub type PMFT_ENUM_DATA_V0 = *mut MFT_ENUM_DATA_V0; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MFT_ENUM_DATA_V1 { + pub StartFileReferenceNumber: DWORDLONG, + pub LowUsn: USN, + pub HighUsn: USN, + pub MinMajorVersion: WORD, + pub MaxMajorVersion: WORD, +} +pub type PMFT_ENUM_DATA_V1 = *mut MFT_ENUM_DATA_V1; +pub type MFT_ENUM_DATA = MFT_ENUM_DATA_V1; +pub type PMFT_ENUM_DATA = *mut MFT_ENUM_DATA_V1; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CREATE_USN_JOURNAL_DATA { + pub MaximumSize: DWORDLONG, + pub AllocationDelta: DWORDLONG, +} +pub type PCREATE_USN_JOURNAL_DATA = *mut CREATE_USN_JOURNAL_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct READ_FILE_USN_DATA { + pub MinMajorVersion: WORD, + pub MaxMajorVersion: WORD, +} +pub type PREAD_FILE_USN_DATA = *mut READ_FILE_USN_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct READ_USN_JOURNAL_DATA_V0 { + pub StartUsn: USN, + pub ReasonMask: DWORD, + pub ReturnOnlyOnClose: DWORD, + pub Timeout: DWORDLONG, + pub BytesToWaitFor: DWORDLONG, + pub UsnJournalID: DWORDLONG, +} +pub type PREAD_USN_JOURNAL_DATA_V0 = *mut READ_USN_JOURNAL_DATA_V0; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct READ_USN_JOURNAL_DATA_V1 { + pub StartUsn: USN, + pub ReasonMask: DWORD, + pub ReturnOnlyOnClose: DWORD, + pub Timeout: DWORDLONG, + pub BytesToWaitFor: DWORDLONG, + pub UsnJournalID: DWORDLONG, + pub MinMajorVersion: WORD, + pub MaxMajorVersion: WORD, +} +pub type PREAD_USN_JOURNAL_DATA_V1 = *mut READ_USN_JOURNAL_DATA_V1; +pub type READ_USN_JOURNAL_DATA = READ_USN_JOURNAL_DATA_V1; +pub type PREAD_USN_JOURNAL_DATA = *mut READ_USN_JOURNAL_DATA_V1; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct USN_TRACK_MODIFIED_RANGES { + pub Flags: DWORD, + pub Unused: DWORD, + pub ChunkSize: DWORDLONG, + pub FileSizeThreshold: LONGLONG, +} +pub type PUSN_TRACK_MODIFIED_RANGES = *mut USN_TRACK_MODIFIED_RANGES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct USN_RANGE_TRACK_OUTPUT { + pub Usn: USN, +} +pub type PUSN_RANGE_TRACK_OUTPUT = *mut USN_RANGE_TRACK_OUTPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct USN_RECORD_V2 { + pub RecordLength: DWORD, + pub MajorVersion: WORD, + pub MinorVersion: WORD, + pub FileReferenceNumber: DWORDLONG, + pub ParentFileReferenceNumber: DWORDLONG, + pub Usn: USN, + pub TimeStamp: LARGE_INTEGER, + pub Reason: DWORD, + pub SourceInfo: DWORD, + pub SecurityId: DWORD, + pub FileAttributes: DWORD, + pub FileNameLength: WORD, + pub FileNameOffset: WORD, + pub FileName: [WCHAR; 1usize], +} +pub type PUSN_RECORD_V2 = *mut USN_RECORD_V2; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct USN_RECORD_V3 { + pub RecordLength: DWORD, + pub MajorVersion: WORD, + pub MinorVersion: WORD, + pub FileReferenceNumber: FILE_ID_128, + pub ParentFileReferenceNumber: FILE_ID_128, + pub Usn: USN, + pub TimeStamp: LARGE_INTEGER, + pub Reason: DWORD, + pub SourceInfo: DWORD, + pub SecurityId: DWORD, + pub FileAttributes: DWORD, + pub FileNameLength: WORD, + pub FileNameOffset: WORD, + pub FileName: [WCHAR; 1usize], +} +pub type PUSN_RECORD_V3 = *mut USN_RECORD_V3; +pub type USN_RECORD = USN_RECORD_V2; +pub type PUSN_RECORD = *mut USN_RECORD_V2; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct USN_RECORD_COMMON_HEADER { + pub RecordLength: DWORD, + pub MajorVersion: WORD, + pub MinorVersion: WORD, +} +pub type PUSN_RECORD_COMMON_HEADER = *mut USN_RECORD_COMMON_HEADER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct USN_RECORD_EXTENT { + pub Offset: LONGLONG, + pub Length: LONGLONG, +} +pub type PUSN_RECORD_EXTENT = *mut USN_RECORD_EXTENT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct USN_RECORD_V4 { + pub Header: USN_RECORD_COMMON_HEADER, + pub FileReferenceNumber: FILE_ID_128, + pub ParentFileReferenceNumber: FILE_ID_128, + pub Usn: USN, + pub Reason: DWORD, + pub SourceInfo: DWORD, + pub RemainingExtents: DWORD, + pub NumberOfExtents: WORD, + pub ExtentSize: WORD, + pub Extents: [USN_RECORD_EXTENT; 1usize], +} +pub type PUSN_RECORD_V4 = *mut USN_RECORD_V4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union USN_RECORD_UNION { + pub Header: USN_RECORD_COMMON_HEADER, + pub V2: USN_RECORD_V2, + pub V3: USN_RECORD_V3, + pub V4: USN_RECORD_V4, +} +pub type PUSN_RECORD_UNION = *mut USN_RECORD_UNION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct USN_JOURNAL_DATA_V0 { + pub UsnJournalID: DWORDLONG, + pub FirstUsn: USN, + pub NextUsn: USN, + pub LowestValidUsn: USN, + pub MaxUsn: USN, + pub MaximumSize: DWORDLONG, + pub AllocationDelta: DWORDLONG, +} +pub type PUSN_JOURNAL_DATA_V0 = *mut USN_JOURNAL_DATA_V0; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct USN_JOURNAL_DATA_V1 { + pub UsnJournalID: DWORDLONG, + pub FirstUsn: USN, + pub NextUsn: USN, + pub LowestValidUsn: USN, + pub MaxUsn: USN, + pub MaximumSize: DWORDLONG, + pub AllocationDelta: DWORDLONG, + pub MinSupportedMajorVersion: WORD, + pub MaxSupportedMajorVersion: WORD, +} +pub type PUSN_JOURNAL_DATA_V1 = *mut USN_JOURNAL_DATA_V1; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct USN_JOURNAL_DATA_V2 { + pub UsnJournalID: DWORDLONG, + pub FirstUsn: USN, + pub NextUsn: USN, + pub LowestValidUsn: USN, + pub MaxUsn: USN, + pub MaximumSize: DWORDLONG, + pub AllocationDelta: DWORDLONG, + pub MinSupportedMajorVersion: WORD, + pub MaxSupportedMajorVersion: WORD, + pub Flags: DWORD, + pub RangeTrackChunkSize: DWORDLONG, + pub RangeTrackFileSizeThreshold: LONGLONG, +} +pub type PUSN_JOURNAL_DATA_V2 = *mut USN_JOURNAL_DATA_V2; +pub type USN_JOURNAL_DATA = USN_JOURNAL_DATA_V1; +pub type PUSN_JOURNAL_DATA = *mut USN_JOURNAL_DATA_V1; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DELETE_USN_JOURNAL_DATA { + pub UsnJournalID: DWORDLONG, + pub DeleteFlags: DWORD, +} +pub type PDELETE_USN_JOURNAL_DATA = *mut DELETE_USN_JOURNAL_DATA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _MARK_HANDLE_INFO { + pub __bindgen_anon_1: _MARK_HANDLE_INFO__bindgen_ty_1, + pub VolumeHandle: HANDLE, + pub HandleInfo: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _MARK_HANDLE_INFO__bindgen_ty_1 { + pub UsnSourceInfo: DWORD, + pub CopyNumber: DWORD, +} +pub type MARK_HANDLE_INFO = _MARK_HANDLE_INFO; +pub type PMARK_HANDLE_INFO = *mut _MARK_HANDLE_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _MARK_HANDLE_INFO32 { + pub __bindgen_anon_1: _MARK_HANDLE_INFO32__bindgen_ty_1, + pub VolumeHandle: UINT32, + pub HandleInfo: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _MARK_HANDLE_INFO32__bindgen_ty_1 { + pub UsnSourceInfo: DWORD, + pub CopyNumber: DWORD, +} +pub type MARK_HANDLE_INFO32 = _MARK_HANDLE_INFO32; +pub type PMARK_HANDLE_INFO32 = *mut _MARK_HANDLE_INFO32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BULK_SECURITY_TEST_DATA { + pub DesiredAccess: ACCESS_MASK, + pub SecurityIds: [DWORD; 1usize], +} +pub type PBULK_SECURITY_TEST_DATA = *mut BULK_SECURITY_TEST_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_PREFETCH { + pub Type: DWORD, + pub Count: DWORD, + pub Prefetch: [DWORDLONG; 1usize], +} +pub type FILE_PREFETCH = _FILE_PREFETCH; +pub type PFILE_PREFETCH = *mut _FILE_PREFETCH; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_PREFETCH_EX { + pub Type: DWORD, + pub Count: DWORD, + pub Context: PVOID, + pub Prefetch: [DWORDLONG; 1usize], +} +pub type FILE_PREFETCH_EX = _FILE_PREFETCH_EX; +pub type PFILE_PREFETCH_EX = *mut _FILE_PREFETCH_EX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILESYSTEM_STATISTICS { + pub FileSystemType: WORD, + pub Version: WORD, + pub SizeOfCompleteStructure: DWORD, + pub UserFileReads: DWORD, + pub UserFileReadBytes: DWORD, + pub UserDiskReads: DWORD, + pub UserFileWrites: DWORD, + pub UserFileWriteBytes: DWORD, + pub UserDiskWrites: DWORD, + pub MetaDataReads: DWORD, + pub MetaDataReadBytes: DWORD, + pub MetaDataDiskReads: DWORD, + pub MetaDataWrites: DWORD, + pub MetaDataWriteBytes: DWORD, + pub MetaDataDiskWrites: DWORD, +} +pub type FILESYSTEM_STATISTICS = _FILESYSTEM_STATISTICS; +pub type PFILESYSTEM_STATISTICS = *mut _FILESYSTEM_STATISTICS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FAT_STATISTICS { + pub CreateHits: DWORD, + pub SuccessfulCreates: DWORD, + pub FailedCreates: DWORD, + pub NonCachedReads: DWORD, + pub NonCachedReadBytes: DWORD, + pub NonCachedWrites: DWORD, + pub NonCachedWriteBytes: DWORD, + pub NonCachedDiskReads: DWORD, + pub NonCachedDiskWrites: DWORD, +} +pub type FAT_STATISTICS = _FAT_STATISTICS; +pub type PFAT_STATISTICS = *mut _FAT_STATISTICS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EXFAT_STATISTICS { + pub CreateHits: DWORD, + pub SuccessfulCreates: DWORD, + pub FailedCreates: DWORD, + pub NonCachedReads: DWORD, + pub NonCachedReadBytes: DWORD, + pub NonCachedWrites: DWORD, + pub NonCachedWriteBytes: DWORD, + pub NonCachedDiskReads: DWORD, + pub NonCachedDiskWrites: DWORD, +} +pub type EXFAT_STATISTICS = _EXFAT_STATISTICS; +pub type PEXFAT_STATISTICS = *mut _EXFAT_STATISTICS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NTFS_STATISTICS { + pub LogFileFullExceptions: DWORD, + pub OtherExceptions: DWORD, + pub MftReads: DWORD, + pub MftReadBytes: DWORD, + pub MftWrites: DWORD, + pub MftWriteBytes: DWORD, + pub MftWritesUserLevel: _NTFS_STATISTICS__bindgen_ty_1, + pub MftWritesFlushForLogFileFull: WORD, + pub MftWritesLazyWriter: WORD, + pub MftWritesUserRequest: WORD, + pub Mft2Writes: DWORD, + pub Mft2WriteBytes: DWORD, + pub Mft2WritesUserLevel: _NTFS_STATISTICS__bindgen_ty_2, + pub Mft2WritesFlushForLogFileFull: WORD, + pub Mft2WritesLazyWriter: WORD, + pub Mft2WritesUserRequest: WORD, + pub RootIndexReads: DWORD, + pub RootIndexReadBytes: DWORD, + pub RootIndexWrites: DWORD, + pub RootIndexWriteBytes: DWORD, + pub BitmapReads: DWORD, + pub BitmapReadBytes: DWORD, + pub BitmapWrites: DWORD, + pub BitmapWriteBytes: DWORD, + pub BitmapWritesFlushForLogFileFull: WORD, + pub BitmapWritesLazyWriter: WORD, + pub BitmapWritesUserRequest: WORD, + pub BitmapWritesUserLevel: _NTFS_STATISTICS__bindgen_ty_3, + pub MftBitmapReads: DWORD, + pub MftBitmapReadBytes: DWORD, + pub MftBitmapWrites: DWORD, + pub MftBitmapWriteBytes: DWORD, + pub MftBitmapWritesFlushForLogFileFull: WORD, + pub MftBitmapWritesLazyWriter: WORD, + pub MftBitmapWritesUserRequest: WORD, + pub MftBitmapWritesUserLevel: _NTFS_STATISTICS__bindgen_ty_4, + pub UserIndexReads: DWORD, + pub UserIndexReadBytes: DWORD, + pub UserIndexWrites: DWORD, + pub UserIndexWriteBytes: DWORD, + pub LogFileReads: DWORD, + pub LogFileReadBytes: DWORD, + pub LogFileWrites: DWORD, + pub LogFileWriteBytes: DWORD, + pub Allocate: _NTFS_STATISTICS__bindgen_ty_5, + pub DiskResourcesExhausted: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NTFS_STATISTICS__bindgen_ty_1 { + pub Write: WORD, + pub Create: WORD, + pub SetInfo: WORD, + pub Flush: WORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NTFS_STATISTICS__bindgen_ty_2 { + pub Write: WORD, + pub Create: WORD, + pub SetInfo: WORD, + pub Flush: WORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NTFS_STATISTICS__bindgen_ty_3 { + pub Write: WORD, + pub Create: WORD, + pub SetInfo: WORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NTFS_STATISTICS__bindgen_ty_4 { + pub Write: WORD, + pub Create: WORD, + pub SetInfo: WORD, + pub Flush: WORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NTFS_STATISTICS__bindgen_ty_5 { + pub Calls: DWORD, + pub Clusters: DWORD, + pub Hints: DWORD, + pub RunsReturned: DWORD, + pub HintsHonored: DWORD, + pub HintsClusters: DWORD, + pub Cache: DWORD, + pub CacheClusters: DWORD, + pub CacheMiss: DWORD, + pub CacheMissClusters: DWORD, +} +pub type NTFS_STATISTICS = _NTFS_STATISTICS; +pub type PNTFS_STATISTICS = *mut _NTFS_STATISTICS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILESYSTEM_STATISTICS_EX { + pub FileSystemType: WORD, + pub Version: WORD, + pub SizeOfCompleteStructure: DWORD, + pub UserFileReads: DWORDLONG, + pub UserFileReadBytes: DWORDLONG, + pub UserDiskReads: DWORDLONG, + pub UserFileWrites: DWORDLONG, + pub UserFileWriteBytes: DWORDLONG, + pub UserDiskWrites: DWORDLONG, + pub MetaDataReads: DWORDLONG, + pub MetaDataReadBytes: DWORDLONG, + pub MetaDataDiskReads: DWORDLONG, + pub MetaDataWrites: DWORDLONG, + pub MetaDataWriteBytes: DWORDLONG, + pub MetaDataDiskWrites: DWORDLONG, +} +pub type FILESYSTEM_STATISTICS_EX = _FILESYSTEM_STATISTICS_EX; +pub type PFILESYSTEM_STATISTICS_EX = *mut _FILESYSTEM_STATISTICS_EX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NTFS_STATISTICS_EX { + pub LogFileFullExceptions: DWORD, + pub OtherExceptions: DWORD, + pub MftReads: DWORDLONG, + pub MftReadBytes: DWORDLONG, + pub MftWrites: DWORDLONG, + pub MftWriteBytes: DWORDLONG, + pub MftWritesUserLevel: _NTFS_STATISTICS_EX__bindgen_ty_1, + pub MftWritesFlushForLogFileFull: DWORD, + pub MftWritesLazyWriter: DWORD, + pub MftWritesUserRequest: DWORD, + pub Mft2Writes: DWORDLONG, + pub Mft2WriteBytes: DWORDLONG, + pub Mft2WritesUserLevel: _NTFS_STATISTICS_EX__bindgen_ty_2, + pub Mft2WritesFlushForLogFileFull: DWORD, + pub Mft2WritesLazyWriter: DWORD, + pub Mft2WritesUserRequest: DWORD, + pub RootIndexReads: DWORDLONG, + pub RootIndexReadBytes: DWORDLONG, + pub RootIndexWrites: DWORDLONG, + pub RootIndexWriteBytes: DWORDLONG, + pub BitmapReads: DWORDLONG, + pub BitmapReadBytes: DWORDLONG, + pub BitmapWrites: DWORDLONG, + pub BitmapWriteBytes: DWORDLONG, + pub BitmapWritesFlushForLogFileFull: DWORD, + pub BitmapWritesLazyWriter: DWORD, + pub BitmapWritesUserRequest: DWORD, + pub BitmapWritesUserLevel: _NTFS_STATISTICS_EX__bindgen_ty_3, + pub MftBitmapReads: DWORDLONG, + pub MftBitmapReadBytes: DWORDLONG, + pub MftBitmapWrites: DWORDLONG, + pub MftBitmapWriteBytes: DWORDLONG, + pub MftBitmapWritesFlushForLogFileFull: DWORD, + pub MftBitmapWritesLazyWriter: DWORD, + pub MftBitmapWritesUserRequest: DWORD, + pub MftBitmapWritesUserLevel: _NTFS_STATISTICS_EX__bindgen_ty_4, + pub UserIndexReads: DWORDLONG, + pub UserIndexReadBytes: DWORDLONG, + pub UserIndexWrites: DWORDLONG, + pub UserIndexWriteBytes: DWORDLONG, + pub LogFileReads: DWORDLONG, + pub LogFileReadBytes: DWORDLONG, + pub LogFileWrites: DWORDLONG, + pub LogFileWriteBytes: DWORDLONG, + pub Allocate: _NTFS_STATISTICS_EX__bindgen_ty_5, + pub DiskResourcesExhausted: DWORD, + pub VolumeTrimCount: DWORDLONG, + pub VolumeTrimTime: DWORDLONG, + pub VolumeTrimByteCount: DWORDLONG, + pub FileLevelTrimCount: DWORDLONG, + pub FileLevelTrimTime: DWORDLONG, + pub FileLevelTrimByteCount: DWORDLONG, + pub VolumeTrimSkippedCount: DWORDLONG, + pub VolumeTrimSkippedByteCount: DWORDLONG, + pub NtfsFillStatInfoFromMftRecordCalledCount: DWORDLONG, + pub NtfsFillStatInfoFromMftRecordBailedBecauseOfAttributeListCount: DWORDLONG, + pub NtfsFillStatInfoFromMftRecordBailedBecauseOfNonResReparsePointCount: DWORDLONG, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NTFS_STATISTICS_EX__bindgen_ty_1 { + pub Write: DWORD, + pub Create: DWORD, + pub SetInfo: DWORD, + pub Flush: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NTFS_STATISTICS_EX__bindgen_ty_2 { + pub Write: DWORD, + pub Create: DWORD, + pub SetInfo: DWORD, + pub Flush: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NTFS_STATISTICS_EX__bindgen_ty_3 { + pub Write: DWORD, + pub Create: DWORD, + pub SetInfo: DWORD, + pub Flush: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NTFS_STATISTICS_EX__bindgen_ty_4 { + pub Write: DWORD, + pub Create: DWORD, + pub SetInfo: DWORD, + pub Flush: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _NTFS_STATISTICS_EX__bindgen_ty_5 { + pub Calls: DWORD, + pub RunsReturned: DWORD, + pub Hints: DWORD, + pub HintsHonored: DWORD, + pub Cache: DWORD, + pub CacheMiss: DWORD, + pub Clusters: DWORDLONG, + pub HintsClusters: DWORDLONG, + pub CacheClusters: DWORDLONG, + pub CacheMissClusters: DWORDLONG, +} +pub type NTFS_STATISTICS_EX = _NTFS_STATISTICS_EX; +pub type PNTFS_STATISTICS_EX = *mut _NTFS_STATISTICS_EX; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_OBJECTID_BUFFER { + pub ObjectId: [BYTE; 16usize], + pub __bindgen_anon_1: _FILE_OBJECTID_BUFFER__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _FILE_OBJECTID_BUFFER__bindgen_ty_1 { + pub __bindgen_anon_1: _FILE_OBJECTID_BUFFER__bindgen_ty_1__bindgen_ty_1, + pub ExtendedInfo: [BYTE; 48usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_OBJECTID_BUFFER__bindgen_ty_1__bindgen_ty_1 { + pub BirthVolumeId: [BYTE; 16usize], + pub BirthObjectId: [BYTE; 16usize], + pub DomainId: [BYTE; 16usize], +} +pub type FILE_OBJECTID_BUFFER = _FILE_OBJECTID_BUFFER; +pub type PFILE_OBJECTID_BUFFER = *mut _FILE_OBJECTID_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_SET_SPARSE_BUFFER { + pub SetSparse: BOOLEAN, +} +pub type FILE_SET_SPARSE_BUFFER = _FILE_SET_SPARSE_BUFFER; +pub type PFILE_SET_SPARSE_BUFFER = *mut _FILE_SET_SPARSE_BUFFER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_ZERO_DATA_INFORMATION { + pub FileOffset: LARGE_INTEGER, + pub BeyondFinalZero: LARGE_INTEGER, +} +pub type FILE_ZERO_DATA_INFORMATION = _FILE_ZERO_DATA_INFORMATION; +pub type PFILE_ZERO_DATA_INFORMATION = *mut _FILE_ZERO_DATA_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_ZERO_DATA_INFORMATION_EX { + pub FileOffset: LARGE_INTEGER, + pub BeyondFinalZero: LARGE_INTEGER, + pub Flags: DWORD, +} +pub type FILE_ZERO_DATA_INFORMATION_EX = _FILE_ZERO_DATA_INFORMATION_EX; +pub type PFILE_ZERO_DATA_INFORMATION_EX = *mut _FILE_ZERO_DATA_INFORMATION_EX; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_ALLOCATED_RANGE_BUFFER { + pub FileOffset: LARGE_INTEGER, + pub Length: LARGE_INTEGER, +} +pub type FILE_ALLOCATED_RANGE_BUFFER = _FILE_ALLOCATED_RANGE_BUFFER; +pub type PFILE_ALLOCATED_RANGE_BUFFER = *mut _FILE_ALLOCATED_RANGE_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCRYPTION_BUFFER { + pub EncryptionOperation: DWORD, + pub Private: [BYTE; 1usize], +} +pub type ENCRYPTION_BUFFER = _ENCRYPTION_BUFFER; +pub type PENCRYPTION_BUFFER = *mut _ENCRYPTION_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DECRYPTION_STATUS_BUFFER { + pub NoEncryptedStreams: BOOLEAN, +} +pub type DECRYPTION_STATUS_BUFFER = _DECRYPTION_STATUS_BUFFER; +pub type PDECRYPTION_STATUS_BUFFER = *mut _DECRYPTION_STATUS_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REQUEST_RAW_ENCRYPTED_DATA { + pub FileOffset: LONGLONG, + pub Length: DWORD, +} +pub type REQUEST_RAW_ENCRYPTED_DATA = _REQUEST_RAW_ENCRYPTED_DATA; +pub type PREQUEST_RAW_ENCRYPTED_DATA = *mut _REQUEST_RAW_ENCRYPTED_DATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCRYPTED_DATA_INFO { + pub StartingFileOffset: DWORDLONG, + pub OutputBufferOffset: DWORD, + pub BytesWithinFileSize: DWORD, + pub BytesWithinValidDataLength: DWORD, + pub CompressionFormat: WORD, + pub DataUnitShift: BYTE, + pub ChunkShift: BYTE, + pub ClusterShift: BYTE, + pub EncryptionFormat: BYTE, + pub NumberOfDataBlocks: WORD, + pub DataBlockSize: [DWORD; 1usize], +} +pub type ENCRYPTED_DATA_INFO = _ENCRYPTED_DATA_INFO; +pub type PENCRYPTED_DATA_INFO = *mut _ENCRYPTED_DATA_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _EXTENDED_ENCRYPTED_DATA_INFO { + pub ExtendedCode: DWORD, + pub Length: DWORD, + pub Flags: DWORD, + pub Reserved: DWORD, +} +pub type EXTENDED_ENCRYPTED_DATA_INFO = _EXTENDED_ENCRYPTED_DATA_INFO; +pub type PEXTENDED_ENCRYPTED_DATA_INFO = *mut _EXTENDED_ENCRYPTED_DATA_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PLEX_READ_DATA_REQUEST { + pub ByteOffset: LARGE_INTEGER, + pub ByteLength: DWORD, + pub PlexNumber: DWORD, +} +pub type PLEX_READ_DATA_REQUEST = _PLEX_READ_DATA_REQUEST; +pub type PPLEX_READ_DATA_REQUEST = *mut _PLEX_READ_DATA_REQUEST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SI_COPYFILE { + pub SourceFileNameLength: DWORD, + pub DestinationFileNameLength: DWORD, + pub Flags: DWORD, + pub FileNameBuffer: [WCHAR; 1usize], +} +pub type SI_COPYFILE = _SI_COPYFILE; +pub type PSI_COPYFILE = *mut _SI_COPYFILE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_MAKE_COMPATIBLE_BUFFER { + pub CloseDisc: BOOLEAN, +} +pub type FILE_MAKE_COMPATIBLE_BUFFER = _FILE_MAKE_COMPATIBLE_BUFFER; +pub type PFILE_MAKE_COMPATIBLE_BUFFER = *mut _FILE_MAKE_COMPATIBLE_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_SET_DEFECT_MGMT_BUFFER { + pub Disable: BOOLEAN, +} +pub type FILE_SET_DEFECT_MGMT_BUFFER = _FILE_SET_DEFECT_MGMT_BUFFER; +pub type PFILE_SET_DEFECT_MGMT_BUFFER = *mut _FILE_SET_DEFECT_MGMT_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_QUERY_SPARING_BUFFER { + pub SparingUnitBytes: DWORD, + pub SoftwareSparing: BOOLEAN, + pub TotalSpareBlocks: DWORD, + pub FreeSpareBlocks: DWORD, +} +pub type FILE_QUERY_SPARING_BUFFER = _FILE_QUERY_SPARING_BUFFER; +pub type PFILE_QUERY_SPARING_BUFFER = *mut _FILE_QUERY_SPARING_BUFFER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_QUERY_ON_DISK_VOL_INFO_BUFFER { + pub DirectoryCount: LARGE_INTEGER, + pub FileCount: LARGE_INTEGER, + pub FsFormatMajVersion: WORD, + pub FsFormatMinVersion: WORD, + pub FsFormatName: [WCHAR; 12usize], + pub FormatTime: LARGE_INTEGER, + pub LastUpdateTime: LARGE_INTEGER, + pub CopyrightInfo: [WCHAR; 34usize], + pub AbstractInfo: [WCHAR; 34usize], + pub FormattingImplementationInfo: [WCHAR; 34usize], + pub LastModifyingImplementationInfo: [WCHAR; 34usize], +} +pub type FILE_QUERY_ON_DISK_VOL_INFO_BUFFER = _FILE_QUERY_ON_DISK_VOL_INFO_BUFFER; +pub type PFILE_QUERY_ON_DISK_VOL_INFO_BUFFER = *mut _FILE_QUERY_ON_DISK_VOL_INFO_BUFFER; +pub type CLSN = DWORDLONG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_INITIATE_REPAIR_OUTPUT_BUFFER { + pub Hint1: DWORDLONG, + pub Hint2: DWORDLONG, + pub Clsn: CLSN, + pub Status: DWORD, +} +pub type FILE_INITIATE_REPAIR_OUTPUT_BUFFER = _FILE_INITIATE_REPAIR_OUTPUT_BUFFER; +pub type PFILE_INITIATE_REPAIR_OUTPUT_BUFFER = *mut _FILE_INITIATE_REPAIR_OUTPUT_BUFFER; +pub const _SHRINK_VOLUME_REQUEST_TYPES_ShrinkPrepare: _SHRINK_VOLUME_REQUEST_TYPES = 1; +pub const _SHRINK_VOLUME_REQUEST_TYPES_ShrinkCommit: _SHRINK_VOLUME_REQUEST_TYPES = 2; +pub const _SHRINK_VOLUME_REQUEST_TYPES_ShrinkAbort: _SHRINK_VOLUME_REQUEST_TYPES = 3; +pub type _SHRINK_VOLUME_REQUEST_TYPES = ::std::os::raw::c_int; +pub use self::_SHRINK_VOLUME_REQUEST_TYPES as SHRINK_VOLUME_REQUEST_TYPES; +pub type PSHRINK_VOLUME_REQUEST_TYPES = *mut _SHRINK_VOLUME_REQUEST_TYPES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SHRINK_VOLUME_INFORMATION { + pub ShrinkRequestType: SHRINK_VOLUME_REQUEST_TYPES, + pub Flags: DWORDLONG, + pub NewNumberOfSectors: LONGLONG, +} +pub type SHRINK_VOLUME_INFORMATION = _SHRINK_VOLUME_INFORMATION; +pub type PSHRINK_VOLUME_INFORMATION = *mut _SHRINK_VOLUME_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TXFS_MODIFY_RM { + pub Flags: DWORD, + pub LogContainerCountMax: DWORD, + pub LogContainerCountMin: DWORD, + pub LogContainerCount: DWORD, + pub LogGrowthIncrement: DWORD, + pub LogAutoShrinkPercentage: DWORD, + pub Reserved: DWORDLONG, + pub LoggingMode: WORD, +} +pub type TXFS_MODIFY_RM = _TXFS_MODIFY_RM; +pub type PTXFS_MODIFY_RM = *mut _TXFS_MODIFY_RM; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _TXFS_QUERY_RM_INFORMATION { + pub BytesRequired: DWORD, + pub TailLsn: DWORDLONG, + pub CurrentLsn: DWORDLONG, + pub ArchiveTailLsn: DWORDLONG, + pub LogContainerSize: DWORDLONG, + pub HighestVirtualClock: LARGE_INTEGER, + pub LogContainerCount: DWORD, + pub LogContainerCountMax: DWORD, + pub LogContainerCountMin: DWORD, + pub LogGrowthIncrement: DWORD, + pub LogAutoShrinkPercentage: DWORD, + pub Flags: DWORD, + pub LoggingMode: WORD, + pub Reserved: WORD, + pub RmState: DWORD, + pub LogCapacity: DWORDLONG, + pub LogFree: DWORDLONG, + pub TopsSize: DWORDLONG, + pub TopsUsed: DWORDLONG, + pub TransactionCount: DWORDLONG, + pub OnePCCount: DWORDLONG, + pub TwoPCCount: DWORDLONG, + pub NumberLogFileFull: DWORDLONG, + pub OldestTransactionAge: DWORDLONG, + pub RMName: GUID, + pub TmLogPathOffset: DWORD, +} +pub type TXFS_QUERY_RM_INFORMATION = _TXFS_QUERY_RM_INFORMATION; +pub type PTXFS_QUERY_RM_INFORMATION = *mut _TXFS_QUERY_RM_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _TXFS_ROLLFORWARD_REDO_INFORMATION { + pub LastVirtualClock: LARGE_INTEGER, + pub LastRedoLsn: DWORDLONG, + pub HighestRecoveryLsn: DWORDLONG, + pub Flags: DWORD, +} +pub type TXFS_ROLLFORWARD_REDO_INFORMATION = _TXFS_ROLLFORWARD_REDO_INFORMATION; +pub type PTXFS_ROLLFORWARD_REDO_INFORMATION = *mut _TXFS_ROLLFORWARD_REDO_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TXFS_START_RM_INFORMATION { + pub Flags: DWORD, + pub LogContainerSize: DWORDLONG, + pub LogContainerCountMin: DWORD, + pub LogContainerCountMax: DWORD, + pub LogGrowthIncrement: DWORD, + pub LogAutoShrinkPercentage: DWORD, + pub TmLogPathOffset: DWORD, + pub TmLogPathLength: WORD, + pub LoggingMode: WORD, + pub LogPathLength: WORD, + pub Reserved: WORD, + pub LogPath: [WCHAR; 1usize], +} +pub type TXFS_START_RM_INFORMATION = _TXFS_START_RM_INFORMATION; +pub type PTXFS_START_RM_INFORMATION = *mut _TXFS_START_RM_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TXFS_GET_METADATA_INFO_OUT { + pub TxfFileId: _TXFS_GET_METADATA_INFO_OUT__bindgen_ty_1, + pub LockingTransaction: GUID, + pub LastLsn: DWORDLONG, + pub TransactionState: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TXFS_GET_METADATA_INFO_OUT__bindgen_ty_1 { + pub LowPart: LONGLONG, + pub HighPart: LONGLONG, +} +pub type TXFS_GET_METADATA_INFO_OUT = _TXFS_GET_METADATA_INFO_OUT; +pub type PTXFS_GET_METADATA_INFO_OUT = *mut _TXFS_GET_METADATA_INFO_OUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY { + pub Offset: DWORDLONG, + pub NameFlags: DWORD, + pub FileId: LONGLONG, + pub Reserved1: DWORD, + pub Reserved2: DWORD, + pub Reserved3: LONGLONG, + pub FileName: [WCHAR; 1usize], +} +pub type TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY = _TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY; +pub type PTXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY = *mut _TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TXFS_LIST_TRANSACTION_LOCKED_FILES { + pub KtmTransaction: GUID, + pub NumberOfFiles: DWORDLONG, + pub BufferSizeRequired: DWORDLONG, + pub Offset: DWORDLONG, +} +pub type TXFS_LIST_TRANSACTION_LOCKED_FILES = _TXFS_LIST_TRANSACTION_LOCKED_FILES; +pub type PTXFS_LIST_TRANSACTION_LOCKED_FILES = *mut _TXFS_LIST_TRANSACTION_LOCKED_FILES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TXFS_LIST_TRANSACTIONS_ENTRY { + pub TransactionId: GUID, + pub TransactionState: DWORD, + pub Reserved1: DWORD, + pub Reserved2: DWORD, + pub Reserved3: LONGLONG, +} +pub type TXFS_LIST_TRANSACTIONS_ENTRY = _TXFS_LIST_TRANSACTIONS_ENTRY; +pub type PTXFS_LIST_TRANSACTIONS_ENTRY = *mut _TXFS_LIST_TRANSACTIONS_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TXFS_LIST_TRANSACTIONS { + pub NumberOfTransactions: DWORDLONG, + pub BufferSizeRequired: DWORDLONG, +} +pub type TXFS_LIST_TRANSACTIONS = _TXFS_LIST_TRANSACTIONS; +pub type PTXFS_LIST_TRANSACTIONS = *mut _TXFS_LIST_TRANSACTIONS; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _TXFS_READ_BACKUP_INFORMATION_OUT { + pub __bindgen_anon_1: _TXFS_READ_BACKUP_INFORMATION_OUT__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _TXFS_READ_BACKUP_INFORMATION_OUT__bindgen_ty_1 { + pub BufferLength: DWORD, + pub Buffer: [BYTE; 1usize], +} +pub type TXFS_READ_BACKUP_INFORMATION_OUT = _TXFS_READ_BACKUP_INFORMATION_OUT; +pub type PTXFS_READ_BACKUP_INFORMATION_OUT = *mut _TXFS_READ_BACKUP_INFORMATION_OUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TXFS_WRITE_BACKUP_INFORMATION { + pub Buffer: [BYTE; 1usize], +} +pub type TXFS_WRITE_BACKUP_INFORMATION = _TXFS_WRITE_BACKUP_INFORMATION; +pub type PTXFS_WRITE_BACKUP_INFORMATION = *mut _TXFS_WRITE_BACKUP_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TXFS_GET_TRANSACTED_VERSION { + pub ThisBaseVersion: DWORD, + pub LatestVersion: DWORD, + pub ThisMiniVersion: WORD, + pub FirstMiniVersion: WORD, + pub LatestMiniVersion: WORD, +} +pub type TXFS_GET_TRANSACTED_VERSION = _TXFS_GET_TRANSACTED_VERSION; +pub type PTXFS_GET_TRANSACTED_VERSION = *mut _TXFS_GET_TRANSACTED_VERSION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TXFS_SAVEPOINT_INFORMATION { + pub KtmTransaction: HANDLE, + pub ActionCode: DWORD, + pub SavepointId: DWORD, +} +pub type TXFS_SAVEPOINT_INFORMATION = _TXFS_SAVEPOINT_INFORMATION; +pub type PTXFS_SAVEPOINT_INFORMATION = *mut _TXFS_SAVEPOINT_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TXFS_CREATE_MINIVERSION_INFO { + pub StructureVersion: WORD, + pub StructureLength: WORD, + pub BaseVersion: DWORD, + pub MiniVersion: WORD, +} +pub type TXFS_CREATE_MINIVERSION_INFO = _TXFS_CREATE_MINIVERSION_INFO; +pub type PTXFS_CREATE_MINIVERSION_INFO = *mut _TXFS_CREATE_MINIVERSION_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _TXFS_TRANSACTION_ACTIVE_INFO { + pub TransactionsActiveAtSnapshot: BOOLEAN, +} +pub type TXFS_TRANSACTION_ACTIVE_INFO = _TXFS_TRANSACTION_ACTIVE_INFO; +pub type PTXFS_TRANSACTION_ACTIVE_INFO = *mut _TXFS_TRANSACTION_ACTIVE_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _BOOT_AREA_INFO { + pub BootSectorCount: DWORD, + pub BootSectors: [_BOOT_AREA_INFO__bindgen_ty_1; 2usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _BOOT_AREA_INFO__bindgen_ty_1 { + pub Offset: LARGE_INTEGER, +} +pub type BOOT_AREA_INFO = _BOOT_AREA_INFO; +pub type PBOOT_AREA_INFO = *mut _BOOT_AREA_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _RETRIEVAL_POINTER_BASE { + pub FileAreaOffset: LARGE_INTEGER, +} +pub type RETRIEVAL_POINTER_BASE = _RETRIEVAL_POINTER_BASE; +pub type PRETRIEVAL_POINTER_BASE = *mut _RETRIEVAL_POINTER_BASE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_FS_PERSISTENT_VOLUME_INFORMATION { + pub VolumeFlags: DWORD, + pub FlagMask: DWORD, + pub Version: DWORD, + pub Reserved: DWORD, +} +pub type FILE_FS_PERSISTENT_VOLUME_INFORMATION = _FILE_FS_PERSISTENT_VOLUME_INFORMATION; +pub type PFILE_FS_PERSISTENT_VOLUME_INFORMATION = *mut _FILE_FS_PERSISTENT_VOLUME_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_SYSTEM_RECOGNITION_INFORMATION { + pub FileSystem: [CHAR; 9usize], +} +pub type FILE_SYSTEM_RECOGNITION_INFORMATION = _FILE_SYSTEM_RECOGNITION_INFORMATION; +pub type PFILE_SYSTEM_RECOGNITION_INFORMATION = *mut _FILE_SYSTEM_RECOGNITION_INFORMATION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REQUEST_OPLOCK_INPUT_BUFFER { + pub StructureVersion: WORD, + pub StructureLength: WORD, + pub RequestedOplockLevel: DWORD, + pub Flags: DWORD, +} +pub type REQUEST_OPLOCK_INPUT_BUFFER = _REQUEST_OPLOCK_INPUT_BUFFER; +pub type PREQUEST_OPLOCK_INPUT_BUFFER = *mut _REQUEST_OPLOCK_INPUT_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REQUEST_OPLOCK_OUTPUT_BUFFER { + pub StructureVersion: WORD, + pub StructureLength: WORD, + pub OriginalOplockLevel: DWORD, + pub NewOplockLevel: DWORD, + pub Flags: DWORD, + pub AccessMode: ACCESS_MASK, + pub ShareMode: WORD, +} +pub type REQUEST_OPLOCK_OUTPUT_BUFFER = _REQUEST_OPLOCK_OUTPUT_BUFFER; +pub type PREQUEST_OPLOCK_OUTPUT_BUFFER = *mut _REQUEST_OPLOCK_OUTPUT_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _VIRTUAL_STORAGE_TYPE { + pub DeviceId: DWORD, + pub VendorId: GUID, +} +pub type VIRTUAL_STORAGE_TYPE = _VIRTUAL_STORAGE_TYPE; +pub type PVIRTUAL_STORAGE_TYPE = *mut _VIRTUAL_STORAGE_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_QUERY_DEPENDENT_VOLUME_REQUEST { + pub RequestLevel: DWORD, + pub RequestFlags: DWORD, +} +pub type STORAGE_QUERY_DEPENDENT_VOLUME_REQUEST = _STORAGE_QUERY_DEPENDENT_VOLUME_REQUEST; +pub type PSTORAGE_QUERY_DEPENDENT_VOLUME_REQUEST = *mut _STORAGE_QUERY_DEPENDENT_VOLUME_REQUEST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY { + pub EntryLength: DWORD, + pub DependencyTypeFlags: DWORD, + pub ProviderSpecificFlags: DWORD, + pub VirtualStorageType: VIRTUAL_STORAGE_TYPE, +} +pub type STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY = _STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY; +pub type PSTORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY = + *mut _STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY { + pub EntryLength: DWORD, + pub DependencyTypeFlags: DWORD, + pub ProviderSpecificFlags: DWORD, + pub VirtualStorageType: VIRTUAL_STORAGE_TYPE, + pub AncestorLevel: DWORD, + pub HostVolumeNameOffset: DWORD, + pub HostVolumeNameSize: DWORD, + pub DependentVolumeNameOffset: DWORD, + pub DependentVolumeNameSize: DWORD, + pub RelativePathOffset: DWORD, + pub RelativePathSize: DWORD, + pub DependentDeviceNameOffset: DWORD, + pub DependentDeviceNameSize: DWORD, +} +pub type STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY = _STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY; +pub type PSTORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY = + *mut _STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY; +#[repr(C)] +pub struct _STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE { + pub ResponseLevel: DWORD, + pub NumberEntries: DWORD, + pub __bindgen_anon_1: _STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE__bindgen_ty_1, +} +#[repr(C)] +pub struct _STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE__bindgen_ty_1 { + pub Lev1Depends: __BindgenUnionField<[STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY; 0usize]>, + pub Lev2Depends: __BindgenUnionField<[STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY; 0usize]>, + pub bindgen_union_field: u32, +} +pub type STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE = _STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE; +pub type PSTORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE = *mut _STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SD_CHANGE_MACHINE_SID_INPUT { + pub CurrentMachineSIDOffset: WORD, + pub CurrentMachineSIDLength: WORD, + pub NewMachineSIDOffset: WORD, + pub NewMachineSIDLength: WORD, +} +pub type SD_CHANGE_MACHINE_SID_INPUT = _SD_CHANGE_MACHINE_SID_INPUT; +pub type PSD_CHANGE_MACHINE_SID_INPUT = *mut _SD_CHANGE_MACHINE_SID_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SD_CHANGE_MACHINE_SID_OUTPUT { + pub NumSDChangedSuccess: DWORDLONG, + pub NumSDChangedFail: DWORDLONG, + pub NumSDUnused: DWORDLONG, + pub NumSDTotal: DWORDLONG, + pub NumMftSDChangedSuccess: DWORDLONG, + pub NumMftSDChangedFail: DWORDLONG, + pub NumMftSDTotal: DWORDLONG, +} +pub type SD_CHANGE_MACHINE_SID_OUTPUT = _SD_CHANGE_MACHINE_SID_OUTPUT; +pub type PSD_CHANGE_MACHINE_SID_OUTPUT = *mut _SD_CHANGE_MACHINE_SID_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SD_QUERY_STATS_INPUT { + pub Reserved: DWORD, +} +pub type SD_QUERY_STATS_INPUT = _SD_QUERY_STATS_INPUT; +pub type PSD_QUERY_STATS_INPUT = *mut _SD_QUERY_STATS_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SD_QUERY_STATS_OUTPUT { + pub SdsStreamSize: DWORDLONG, + pub SdsAllocationSize: DWORDLONG, + pub SiiStreamSize: DWORDLONG, + pub SiiAllocationSize: DWORDLONG, + pub SdhStreamSize: DWORDLONG, + pub SdhAllocationSize: DWORDLONG, + pub NumSDTotal: DWORDLONG, + pub NumSDUnused: DWORDLONG, +} +pub type SD_QUERY_STATS_OUTPUT = _SD_QUERY_STATS_OUTPUT; +pub type PSD_QUERY_STATS_OUTPUT = *mut _SD_QUERY_STATS_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SD_ENUM_SDS_INPUT { + pub StartingOffset: DWORDLONG, + pub MaxSDEntriesToReturn: DWORDLONG, +} +pub type SD_ENUM_SDS_INPUT = _SD_ENUM_SDS_INPUT; +pub type PSD_ENUM_SDS_INPUT = *mut _SD_ENUM_SDS_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SD_ENUM_SDS_ENTRY { + pub Hash: DWORD, + pub SecurityId: DWORD, + pub Offset: DWORDLONG, + pub Length: DWORD, + pub Descriptor: [BYTE; 1usize], +} +pub type SD_ENUM_SDS_ENTRY = _SD_ENUM_SDS_ENTRY; +pub type PSD_ENUM_SDS_ENTRY = *mut _SD_ENUM_SDS_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SD_ENUM_SDS_OUTPUT { + pub NextOffset: DWORDLONG, + pub NumSDEntriesReturned: DWORDLONG, + pub NumSDBytesReturned: DWORDLONG, + pub SDEntry: [SD_ENUM_SDS_ENTRY; 1usize], +} +pub type SD_ENUM_SDS_OUTPUT = _SD_ENUM_SDS_OUTPUT; +pub type PSD_ENUM_SDS_OUTPUT = *mut _SD_ENUM_SDS_OUTPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _SD_GLOBAL_CHANGE_INPUT { + pub Flags: DWORD, + pub ChangeType: DWORD, + pub __bindgen_anon_1: _SD_GLOBAL_CHANGE_INPUT__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SD_GLOBAL_CHANGE_INPUT__bindgen_ty_1 { + pub SdChange: SD_CHANGE_MACHINE_SID_INPUT, + pub SdQueryStats: SD_QUERY_STATS_INPUT, + pub SdEnumSds: SD_ENUM_SDS_INPUT, +} +pub type SD_GLOBAL_CHANGE_INPUT = _SD_GLOBAL_CHANGE_INPUT; +pub type PSD_GLOBAL_CHANGE_INPUT = *mut _SD_GLOBAL_CHANGE_INPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _SD_GLOBAL_CHANGE_OUTPUT { + pub Flags: DWORD, + pub ChangeType: DWORD, + pub __bindgen_anon_1: _SD_GLOBAL_CHANGE_OUTPUT__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SD_GLOBAL_CHANGE_OUTPUT__bindgen_ty_1 { + pub SdChange: SD_CHANGE_MACHINE_SID_OUTPUT, + pub SdQueryStats: SD_QUERY_STATS_OUTPUT, + pub SdEnumSds: SD_ENUM_SDS_OUTPUT, +} +pub type SD_GLOBAL_CHANGE_OUTPUT = _SD_GLOBAL_CHANGE_OUTPUT; +pub type PSD_GLOBAL_CHANGE_OUTPUT = *mut _SD_GLOBAL_CHANGE_OUTPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _LOOKUP_STREAM_FROM_CLUSTER_INPUT { + pub Flags: DWORD, + pub NumberOfClusters: DWORD, + pub Cluster: [LARGE_INTEGER; 1usize], +} +pub type LOOKUP_STREAM_FROM_CLUSTER_INPUT = _LOOKUP_STREAM_FROM_CLUSTER_INPUT; +pub type PLOOKUP_STREAM_FROM_CLUSTER_INPUT = *mut _LOOKUP_STREAM_FROM_CLUSTER_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LOOKUP_STREAM_FROM_CLUSTER_OUTPUT { + pub Offset: DWORD, + pub NumberOfMatches: DWORD, + pub BufferSizeRequired: DWORD, +} +pub type LOOKUP_STREAM_FROM_CLUSTER_OUTPUT = _LOOKUP_STREAM_FROM_CLUSTER_OUTPUT; +pub type PLOOKUP_STREAM_FROM_CLUSTER_OUTPUT = *mut _LOOKUP_STREAM_FROM_CLUSTER_OUTPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _LOOKUP_STREAM_FROM_CLUSTER_ENTRY { + pub OffsetToNext: DWORD, + pub Flags: DWORD, + pub Reserved: LARGE_INTEGER, + pub Cluster: LARGE_INTEGER, + pub FileName: [WCHAR; 1usize], +} +pub type LOOKUP_STREAM_FROM_CLUSTER_ENTRY = _LOOKUP_STREAM_FROM_CLUSTER_ENTRY; +pub type PLOOKUP_STREAM_FROM_CLUSTER_ENTRY = *mut _LOOKUP_STREAM_FROM_CLUSTER_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_TYPE_NOTIFICATION_INPUT { + pub Flags: DWORD, + pub NumFileTypeIDs: DWORD, + pub FileTypeID: [GUID; 1usize], +} +pub type FILE_TYPE_NOTIFICATION_INPUT = _FILE_TYPE_NOTIFICATION_INPUT; +pub type PFILE_TYPE_NOTIFICATION_INPUT = *mut _FILE_TYPE_NOTIFICATION_INPUT; +extern "C" { + pub static FILE_TYPE_NOTIFICATION_GUID_PAGE_FILE: GUID; +} +extern "C" { + pub static FILE_TYPE_NOTIFICATION_GUID_HIBERNATION_FILE: GUID; +} +extern "C" { + pub static FILE_TYPE_NOTIFICATION_GUID_CRASHDUMP_FILE: GUID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CSV_MGMT_LOCK { + pub Flags: DWORD, +} +pub type CSV_MGMT_LOCK = _CSV_MGMT_LOCK; +pub type PCSV_MGMT_LOCK = *mut _CSV_MGMT_LOCK; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CSV_NAMESPACE_INFO { + pub Version: DWORD, + pub DeviceNumber: DWORD, + pub StartingOffset: LARGE_INTEGER, + pub SectorSize: DWORD, +} +pub type CSV_NAMESPACE_INFO = _CSV_NAMESPACE_INFO; +pub type PCSV_NAMESPACE_INFO = *mut _CSV_NAMESPACE_INFO; +pub const _CSV_CONTROL_OP_CsvControlStartRedirectFile: _CSV_CONTROL_OP = 2; +pub const _CSV_CONTROL_OP_CsvControlStopRedirectFile: _CSV_CONTROL_OP = 3; +pub const _CSV_CONTROL_OP_CsvControlQueryRedirectState: _CSV_CONTROL_OP = 4; +pub const _CSV_CONTROL_OP_CsvControlQueryFileRevision: _CSV_CONTROL_OP = 6; +pub const _CSV_CONTROL_OP_CsvControlQueryMdsPath: _CSV_CONTROL_OP = 8; +pub const _CSV_CONTROL_OP_CsvControlQueryFileRevisionFileId128: _CSV_CONTROL_OP = 9; +pub const _CSV_CONTROL_OP_CsvControlQueryVolumeRedirectState: _CSV_CONTROL_OP = 10; +pub const _CSV_CONTROL_OP_CsvControlEnableUSNRangeModificationTracking: _CSV_CONTROL_OP = 13; +pub const _CSV_CONTROL_OP_CsvControlMarkHandleLocalVolumeMount: _CSV_CONTROL_OP = 14; +pub const _CSV_CONTROL_OP_CsvControlUnmarkHandleLocalVolumeMount: _CSV_CONTROL_OP = 15; +pub const _CSV_CONTROL_OP_CsvControlGetCsvFsMdsPathV2: _CSV_CONTROL_OP = 18; +pub const _CSV_CONTROL_OP_CsvControlDisableCaching: _CSV_CONTROL_OP = 19; +pub const _CSV_CONTROL_OP_CsvControlEnableCaching: _CSV_CONTROL_OP = 20; +pub const _CSV_CONTROL_OP_CsvControlStartForceDFO: _CSV_CONTROL_OP = 21; +pub const _CSV_CONTROL_OP_CsvControlStopForceDFO: _CSV_CONTROL_OP = 22; +pub const _CSV_CONTROL_OP_CsvControlQueryMdsPathNoPause: _CSV_CONTROL_OP = 23; +pub const _CSV_CONTROL_OP_CsvControlSetVolumeId: _CSV_CONTROL_OP = 24; +pub const _CSV_CONTROL_OP_CsvControlQueryVolumeId: _CSV_CONTROL_OP = 25; +pub type _CSV_CONTROL_OP = ::std::os::raw::c_int; +pub use self::_CSV_CONTROL_OP as CSV_CONTROL_OP; +pub type PCSV_CONTROL_OP = *mut _CSV_CONTROL_OP; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CSV_CONTROL_PARAM { + pub Operation: CSV_CONTROL_OP, + pub Unused: LONGLONG, +} +pub type CSV_CONTROL_PARAM = _CSV_CONTROL_PARAM; +pub type PCSV_CONTROL_PARAM = *mut _CSV_CONTROL_PARAM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CSV_QUERY_REDIRECT_STATE { + pub MdsNodeId: DWORD, + pub DsNodeId: DWORD, + pub FileRedirected: BOOLEAN, +} +pub type CSV_QUERY_REDIRECT_STATE = _CSV_QUERY_REDIRECT_STATE; +pub type PCSV_QUERY_REDIRECT_STATE = *mut _CSV_QUERY_REDIRECT_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CSV_QUERY_FILE_REVISION { + pub FileId: LONGLONG, + pub FileRevision: [LONGLONG; 3usize], +} +pub type CSV_QUERY_FILE_REVISION = _CSV_QUERY_FILE_REVISION; +pub type PCSV_QUERY_FILE_REVISION = *mut _CSV_QUERY_FILE_REVISION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CSV_QUERY_FILE_REVISION_FILE_ID_128 { + pub FileId: FILE_ID_128, + pub FileRevision: [LONGLONG; 3usize], +} +pub type CSV_QUERY_FILE_REVISION_FILE_ID_128 = _CSV_QUERY_FILE_REVISION_FILE_ID_128; +pub type PCSV_QUERY_FILE_REVISION_FILE_ID_128 = *mut _CSV_QUERY_FILE_REVISION_FILE_ID_128; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CSV_QUERY_MDS_PATH { + pub MdsNodeId: DWORD, + pub DsNodeId: DWORD, + pub PathLength: DWORD, + pub Path: [WCHAR; 1usize], +} +pub type CSV_QUERY_MDS_PATH = _CSV_QUERY_MDS_PATH; +pub type PCSV_QUERY_MDS_PATH = *mut _CSV_QUERY_MDS_PATH; +pub const _CSVFS_DISK_CONNECTIVITY_CsvFsDiskConnectivityNone: _CSVFS_DISK_CONNECTIVITY = 0; +pub const _CSVFS_DISK_CONNECTIVITY_CsvFsDiskConnectivityMdsNodeOnly: _CSVFS_DISK_CONNECTIVITY = 1; +pub const _CSVFS_DISK_CONNECTIVITY_CsvFsDiskConnectivitySubsetOfNodes: _CSVFS_DISK_CONNECTIVITY = 2; +pub const _CSVFS_DISK_CONNECTIVITY_CsvFsDiskConnectivityAllNodes: _CSVFS_DISK_CONNECTIVITY = 3; +pub type _CSVFS_DISK_CONNECTIVITY = ::std::os::raw::c_int; +pub use self::_CSVFS_DISK_CONNECTIVITY as CSVFS_DISK_CONNECTIVITY; +pub type PCSVFS_DISK_CONNECTIVITY = *mut _CSVFS_DISK_CONNECTIVITY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CSV_QUERY_VOLUME_REDIRECT_STATE { + pub MdsNodeId: DWORD, + pub DsNodeId: DWORD, + pub IsDiskConnected: BOOLEAN, + pub ClusterEnableDirectIo: BOOLEAN, + pub DiskConnectivity: CSVFS_DISK_CONNECTIVITY, +} +pub type CSV_QUERY_VOLUME_REDIRECT_STATE = _CSV_QUERY_VOLUME_REDIRECT_STATE; +pub type PCSV_QUERY_VOLUME_REDIRECT_STATE = *mut _CSV_QUERY_VOLUME_REDIRECT_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CSV_QUERY_MDS_PATH_V2 { + pub Version: LONGLONG, + pub RequiredSize: DWORD, + pub MdsNodeId: DWORD, + pub DsNodeId: DWORD, + pub Flags: DWORD, + pub DiskConnectivity: CSVFS_DISK_CONNECTIVITY, + pub VolumeId: GUID, + pub IpAddressOffset: DWORD, + pub IpAddressLength: DWORD, + pub PathOffset: DWORD, + pub PathLength: DWORD, +} +pub type CSV_QUERY_MDS_PATH_V2 = _CSV_QUERY_MDS_PATH_V2; +pub type PCSV_QUERY_MDS_PATH_V2 = *mut _CSV_QUERY_MDS_PATH_V2; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CSV_SET_VOLUME_ID { + pub VolumeId: GUID, +} +pub type CSV_SET_VOLUME_ID = _CSV_SET_VOLUME_ID; +pub type PCSV_SET_VOLUME_ID = *mut _CSV_SET_VOLUME_ID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CSV_QUERY_VOLUME_ID { + pub VolumeId: GUID, +} +pub type CSV_QUERY_VOLUME_ID = _CSV_QUERY_VOLUME_ID; +pub type PCSV_QUERY_VOLUME_ID = *mut _CSV_QUERY_VOLUME_ID; +pub const _LMR_QUERY_INFO_CLASS_LMRQuerySessionInfo: _LMR_QUERY_INFO_CLASS = 1; +pub type _LMR_QUERY_INFO_CLASS = ::std::os::raw::c_int; +pub use self::_LMR_QUERY_INFO_CLASS as LMR_QUERY_INFO_CLASS; +pub type PLMR_QUERY_INFO_CLASS = *mut _LMR_QUERY_INFO_CLASS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LMR_QUERY_INFO_PARAM { + pub Operation: LMR_QUERY_INFO_CLASS, +} +pub type LMR_QUERY_INFO_PARAM = _LMR_QUERY_INFO_PARAM; +pub type PLMR_QUERY_INFO_PARAM = *mut _LMR_QUERY_INFO_PARAM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LMR_QUERY_SESSION_INFO { + pub SessionId: UINT64, +} +pub type LMR_QUERY_SESSION_INFO = _LMR_QUERY_SESSION_INFO; +pub type PLMR_QUERY_SESSION_INFO = *mut _LMR_QUERY_SESSION_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT { + pub VetoedFromAltitudeIntegral: DWORDLONG, + pub VetoedFromAltitudeDecimal: DWORDLONG, + pub Reason: [WCHAR; 256usize], +} +pub type CSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT = _CSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT; +pub type PCSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT = *mut _CSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT; +pub const _STORAGE_RESERVE_ID_StorageReserveIdNone: _STORAGE_RESERVE_ID = 0; +pub const _STORAGE_RESERVE_ID_StorageReserveIdHard: _STORAGE_RESERVE_ID = 1; +pub const _STORAGE_RESERVE_ID_StorageReserveIdSoft: _STORAGE_RESERVE_ID = 2; +pub const _STORAGE_RESERVE_ID_StorageReserveIdUpdateScratch: _STORAGE_RESERVE_ID = 3; +pub const _STORAGE_RESERVE_ID_StorageReserveIdMax: _STORAGE_RESERVE_ID = 4; +pub type _STORAGE_RESERVE_ID = ::std::os::raw::c_int; +pub use self::_STORAGE_RESERVE_ID as STORAGE_RESERVE_ID; +pub type PSTORAGE_RESERVE_ID = *mut _STORAGE_RESERVE_ID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CSV_IS_OWNED_BY_CSVFS { + pub OwnedByCSVFS: BOOLEAN, +} +pub type CSV_IS_OWNED_BY_CSVFS = _CSV_IS_OWNED_BY_CSVFS; +pub type PCSV_IS_OWNED_BY_CSVFS = *mut _CSV_IS_OWNED_BY_CSVFS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_LEVEL_TRIM_RANGE { + pub Offset: DWORDLONG, + pub Length: DWORDLONG, +} +pub type FILE_LEVEL_TRIM_RANGE = _FILE_LEVEL_TRIM_RANGE; +pub type PFILE_LEVEL_TRIM_RANGE = *mut _FILE_LEVEL_TRIM_RANGE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_LEVEL_TRIM { + pub Key: DWORD, + pub NumRanges: DWORD, + pub Ranges: [FILE_LEVEL_TRIM_RANGE; 1usize], +} +pub type FILE_LEVEL_TRIM = _FILE_LEVEL_TRIM; +pub type PFILE_LEVEL_TRIM = *mut _FILE_LEVEL_TRIM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_LEVEL_TRIM_OUTPUT { + pub NumRangesProcessed: DWORD, +} +pub type FILE_LEVEL_TRIM_OUTPUT = _FILE_LEVEL_TRIM_OUTPUT; +pub type PFILE_LEVEL_TRIM_OUTPUT = *mut _FILE_LEVEL_TRIM_OUTPUT; +pub const _QUERY_FILE_LAYOUT_FILTER_TYPE_QUERY_FILE_LAYOUT_FILTER_TYPE_NONE: + _QUERY_FILE_LAYOUT_FILTER_TYPE = 0; +pub const _QUERY_FILE_LAYOUT_FILTER_TYPE_QUERY_FILE_LAYOUT_FILTER_TYPE_CLUSTERS: + _QUERY_FILE_LAYOUT_FILTER_TYPE = 1; +pub const _QUERY_FILE_LAYOUT_FILTER_TYPE_QUERY_FILE_LAYOUT_FILTER_TYPE_FILEID: + _QUERY_FILE_LAYOUT_FILTER_TYPE = 2; +pub const _QUERY_FILE_LAYOUT_FILTER_TYPE_QUERY_FILE_LAYOUT_FILTER_TYPE_STORAGE_RESERVE_ID: + _QUERY_FILE_LAYOUT_FILTER_TYPE = 3; +pub const _QUERY_FILE_LAYOUT_FILTER_TYPE_QUERY_FILE_LAYOUT_NUM_FILTER_TYPES: + _QUERY_FILE_LAYOUT_FILTER_TYPE = 4; +pub type _QUERY_FILE_LAYOUT_FILTER_TYPE = ::std::os::raw::c_int; +pub use self::_QUERY_FILE_LAYOUT_FILTER_TYPE as QUERY_FILE_LAYOUT_FILTER_TYPE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _CLUSTER_RANGE { + pub StartingCluster: LARGE_INTEGER, + pub ClusterCount: LARGE_INTEGER, +} +pub type CLUSTER_RANGE = _CLUSTER_RANGE; +pub type PCLUSTER_RANGE = *mut _CLUSTER_RANGE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_REFERENCE_RANGE { + pub StartingFileReferenceNumber: DWORDLONG, + pub EndingFileReferenceNumber: DWORDLONG, +} +pub type FILE_REFERENCE_RANGE = _FILE_REFERENCE_RANGE; +pub type PFILE_REFERENCE_RANGE = *mut _FILE_REFERENCE_RANGE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _QUERY_FILE_LAYOUT_INPUT { + pub __bindgen_anon_1: _QUERY_FILE_LAYOUT_INPUT__bindgen_ty_1, + pub Flags: DWORD, + pub FilterType: QUERY_FILE_LAYOUT_FILTER_TYPE, + pub Reserved: DWORD, + pub Filter: _QUERY_FILE_LAYOUT_INPUT__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _QUERY_FILE_LAYOUT_INPUT__bindgen_ty_1 { + pub FilterEntryCount: DWORD, + pub NumberOfPairs: DWORD, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _QUERY_FILE_LAYOUT_INPUT__bindgen_ty_2 { + pub ClusterRanges: [CLUSTER_RANGE; 1usize], + pub FileReferenceRanges: [FILE_REFERENCE_RANGE; 1usize], + pub StorageReserveIds: [STORAGE_RESERVE_ID; 1usize], +} +pub type QUERY_FILE_LAYOUT_INPUT = _QUERY_FILE_LAYOUT_INPUT; +pub type PQUERY_FILE_LAYOUT_INPUT = *mut _QUERY_FILE_LAYOUT_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _QUERY_FILE_LAYOUT_OUTPUT { + pub FileEntryCount: DWORD, + pub FirstFileOffset: DWORD, + pub Flags: DWORD, + pub Reserved: DWORD, +} +pub type QUERY_FILE_LAYOUT_OUTPUT = _QUERY_FILE_LAYOUT_OUTPUT; +pub type PQUERY_FILE_LAYOUT_OUTPUT = *mut _QUERY_FILE_LAYOUT_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_LAYOUT_ENTRY { + pub Version: DWORD, + pub NextFileOffset: DWORD, + pub Flags: DWORD, + pub FileAttributes: DWORD, + pub FileReferenceNumber: DWORDLONG, + pub FirstNameOffset: DWORD, + pub FirstStreamOffset: DWORD, + pub ExtraInfoOffset: DWORD, + pub ExtraInfoLength: DWORD, +} +pub type FILE_LAYOUT_ENTRY = _FILE_LAYOUT_ENTRY; +pub type PFILE_LAYOUT_ENTRY = *mut _FILE_LAYOUT_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_LAYOUT_NAME_ENTRY { + pub NextNameOffset: DWORD, + pub Flags: DWORD, + pub ParentFileReferenceNumber: DWORDLONG, + pub FileNameLength: DWORD, + pub Reserved: DWORD, + pub FileName: [WCHAR; 1usize], +} +pub type FILE_LAYOUT_NAME_ENTRY = _FILE_LAYOUT_NAME_ENTRY; +pub type PFILE_LAYOUT_NAME_ENTRY = *mut _FILE_LAYOUT_NAME_ENTRY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_LAYOUT_INFO_ENTRY { + pub BasicInformation: _FILE_LAYOUT_INFO_ENTRY__bindgen_ty_1, + pub OwnerId: DWORD, + pub SecurityId: DWORD, + pub Usn: USN, + pub StorageReserveId: STORAGE_RESERVE_ID, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FILE_LAYOUT_INFO_ENTRY__bindgen_ty_1 { + pub CreationTime: LARGE_INTEGER, + pub LastAccessTime: LARGE_INTEGER, + pub LastWriteTime: LARGE_INTEGER, + pub ChangeTime: LARGE_INTEGER, + pub FileAttributes: DWORD, +} +pub type FILE_LAYOUT_INFO_ENTRY = _FILE_LAYOUT_INFO_ENTRY; +pub type PFILE_LAYOUT_INFO_ENTRY = *mut _FILE_LAYOUT_INFO_ENTRY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STREAM_LAYOUT_ENTRY { + pub Version: DWORD, + pub NextStreamOffset: DWORD, + pub Flags: DWORD, + pub ExtentInformationOffset: DWORD, + pub AllocationSize: LARGE_INTEGER, + pub EndOfFile: LARGE_INTEGER, + pub StreamInformationOffset: DWORD, + pub AttributeTypeCode: DWORD, + pub AttributeFlags: DWORD, + pub StreamIdentifierLength: DWORD, + pub StreamIdentifier: [WCHAR; 1usize], +} +pub type STREAM_LAYOUT_ENTRY = _STREAM_LAYOUT_ENTRY; +pub type PSTREAM_LAYOUT_ENTRY = *mut _STREAM_LAYOUT_ENTRY; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STREAM_EXTENT_ENTRY { + pub Flags: DWORD, + pub ExtentInformation: _STREAM_EXTENT_ENTRY__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _STREAM_EXTENT_ENTRY__bindgen_ty_1 { + pub RetrievalPointers: RETRIEVAL_POINTERS_BUFFER, +} +pub type STREAM_EXTENT_ENTRY = _STREAM_EXTENT_ENTRY; +pub type PSTREAM_EXTENT_ENTRY = *mut _STREAM_EXTENT_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER { + pub ChecksumAlgorithm: WORD, + pub Reserved: WORD, + pub Flags: DWORD, + pub ChecksumChunkSizeInBytes: DWORD, + pub ClusterSizeInBytes: DWORD, +} +pub type FSCTL_GET_INTEGRITY_INFORMATION_BUFFER = _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER; +pub type PFSCTL_GET_INTEGRITY_INFORMATION_BUFFER = *mut _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER { + pub ChecksumAlgorithm: WORD, + pub Reserved: WORD, + pub Flags: DWORD, +} +pub type FSCTL_SET_INTEGRITY_INFORMATION_BUFFER = _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER; +pub type PFSCTL_SET_INTEGRITY_INFORMATION_BUFFER = *mut _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX { + pub EnableIntegrity: BYTE, + pub KeepIntegrityStateUnchanged: BYTE, + pub Reserved: WORD, + pub Flags: DWORD, + pub Version: BYTE, + pub Reserved2: [BYTE; 7usize], +} +pub type FSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX = _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX; +pub type PFSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX = + *mut _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FSCTL_OFFLOAD_READ_INPUT { + pub Size: DWORD, + pub Flags: DWORD, + pub TokenTimeToLive: DWORD, + pub Reserved: DWORD, + pub FileOffset: DWORDLONG, + pub CopyLength: DWORDLONG, +} +pub type FSCTL_OFFLOAD_READ_INPUT = _FSCTL_OFFLOAD_READ_INPUT; +pub type PFSCTL_OFFLOAD_READ_INPUT = *mut _FSCTL_OFFLOAD_READ_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FSCTL_OFFLOAD_READ_OUTPUT { + pub Size: DWORD, + pub Flags: DWORD, + pub TransferLength: DWORDLONG, + pub Token: [BYTE; 512usize], +} +pub type FSCTL_OFFLOAD_READ_OUTPUT = _FSCTL_OFFLOAD_READ_OUTPUT; +pub type PFSCTL_OFFLOAD_READ_OUTPUT = *mut _FSCTL_OFFLOAD_READ_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FSCTL_OFFLOAD_WRITE_INPUT { + pub Size: DWORD, + pub Flags: DWORD, + pub FileOffset: DWORDLONG, + pub CopyLength: DWORDLONG, + pub TransferOffset: DWORDLONG, + pub Token: [BYTE; 512usize], +} +pub type FSCTL_OFFLOAD_WRITE_INPUT = _FSCTL_OFFLOAD_WRITE_INPUT; +pub type PFSCTL_OFFLOAD_WRITE_INPUT = *mut _FSCTL_OFFLOAD_WRITE_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FSCTL_OFFLOAD_WRITE_OUTPUT { + pub Size: DWORD, + pub Flags: DWORD, + pub LengthWritten: DWORDLONG, +} +pub type FSCTL_OFFLOAD_WRITE_OUTPUT = _FSCTL_OFFLOAD_WRITE_OUTPUT; +pub type PFSCTL_OFFLOAD_WRITE_OUTPUT = *mut _FSCTL_OFFLOAD_WRITE_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SET_PURGE_FAILURE_MODE_INPUT { + pub Flags: DWORD, +} +pub type SET_PURGE_FAILURE_MODE_INPUT = _SET_PURGE_FAILURE_MODE_INPUT; +pub type PSET_PURGE_FAILURE_MODE_INPUT = *mut _SET_PURGE_FAILURE_MODE_INPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _REPAIR_COPIES_INPUT { + pub Size: DWORD, + pub Flags: DWORD, + pub FileOffset: LARGE_INTEGER, + pub Length: DWORD, + pub SourceCopy: DWORD, + pub NumberOfRepairCopies: DWORD, + pub RepairCopies: [DWORD; 1usize], +} +pub type REPAIR_COPIES_INPUT = _REPAIR_COPIES_INPUT; +pub type PREPAIR_COPIES_INPUT = *mut _REPAIR_COPIES_INPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _REPAIR_COPIES_OUTPUT { + pub Size: DWORD, + pub Status: DWORD, + pub ResumeFileOffset: LARGE_INTEGER, +} +pub type REPAIR_COPIES_OUTPUT = _REPAIR_COPIES_OUTPUT; +pub type PREPAIR_COPIES_OUTPUT = *mut _REPAIR_COPIES_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_REGION_INFO { + pub FileOffset: LONGLONG, + pub Length: LONGLONG, + pub Usage: DWORD, + pub Reserved: DWORD, +} +pub type FILE_REGION_INFO = _FILE_REGION_INFO; +pub type PFILE_REGION_INFO = *mut _FILE_REGION_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_REGION_OUTPUT { + pub Flags: DWORD, + pub TotalRegionEntryCount: DWORD, + pub RegionEntryCount: DWORD, + pub Reserved: DWORD, + pub Region: [FILE_REGION_INFO; 1usize], +} +pub type FILE_REGION_OUTPUT = _FILE_REGION_OUTPUT; +pub type PFILE_REGION_OUTPUT = *mut _FILE_REGION_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_REGION_INPUT { + pub FileOffset: LONGLONG, + pub Length: LONGLONG, + pub DesiredUsage: DWORD, +} +pub type FILE_REGION_INPUT = _FILE_REGION_INPUT; +pub type PFILE_REGION_INPUT = *mut _FILE_REGION_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WRITE_USN_REASON_INPUT { + pub Flags: DWORD, + pub UsnReasonToWrite: DWORD, +} +pub type WRITE_USN_REASON_INPUT = _WRITE_USN_REASON_INPUT; +pub type PWRITE_USN_REASON_INPUT = *mut _WRITE_USN_REASON_INPUT; +pub const _FILE_STORAGE_TIER_MEDIA_TYPE_FileStorageTierMediaTypeUnspecified: + _FILE_STORAGE_TIER_MEDIA_TYPE = 0; +pub const _FILE_STORAGE_TIER_MEDIA_TYPE_FileStorageTierMediaTypeDisk: + _FILE_STORAGE_TIER_MEDIA_TYPE = 1; +pub const _FILE_STORAGE_TIER_MEDIA_TYPE_FileStorageTierMediaTypeSsd: _FILE_STORAGE_TIER_MEDIA_TYPE = + 2; +pub const _FILE_STORAGE_TIER_MEDIA_TYPE_FileStorageTierMediaTypeScm: _FILE_STORAGE_TIER_MEDIA_TYPE = + 4; +pub const _FILE_STORAGE_TIER_MEDIA_TYPE_FileStorageTierMediaTypeMax: _FILE_STORAGE_TIER_MEDIA_TYPE = + 5; +pub type _FILE_STORAGE_TIER_MEDIA_TYPE = ::std::os::raw::c_int; +pub use self::_FILE_STORAGE_TIER_MEDIA_TYPE as FILE_STORAGE_TIER_MEDIA_TYPE; +pub type PFILE_STORAGE_TIER_MEDIA_TYPE = *mut _FILE_STORAGE_TIER_MEDIA_TYPE; +pub const _FILE_STORAGE_TIER_CLASS_FileStorageTierClassUnspecified: _FILE_STORAGE_TIER_CLASS = 0; +pub const _FILE_STORAGE_TIER_CLASS_FileStorageTierClassCapacity: _FILE_STORAGE_TIER_CLASS = 1; +pub const _FILE_STORAGE_TIER_CLASS_FileStorageTierClassPerformance: _FILE_STORAGE_TIER_CLASS = 2; +pub const _FILE_STORAGE_TIER_CLASS_FileStorageTierClassMax: _FILE_STORAGE_TIER_CLASS = 3; +pub type _FILE_STORAGE_TIER_CLASS = ::std::os::raw::c_int; +pub use self::_FILE_STORAGE_TIER_CLASS as FILE_STORAGE_TIER_CLASS; +pub type PFILE_STORAGE_TIER_CLASS = *mut _FILE_STORAGE_TIER_CLASS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_STORAGE_TIER { + pub Id: GUID, + pub Name: [WCHAR; 256usize], + pub Description: [WCHAR; 256usize], + pub Flags: DWORDLONG, + pub ProvisionedCapacity: DWORDLONG, + pub MediaType: FILE_STORAGE_TIER_MEDIA_TYPE, + pub Class: FILE_STORAGE_TIER_CLASS, +} +pub type FILE_STORAGE_TIER = _FILE_STORAGE_TIER; +pub type PFILE_STORAGE_TIER = *mut _FILE_STORAGE_TIER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FSCTL_QUERY_STORAGE_CLASSES_OUTPUT { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub TotalNumberOfTiers: DWORD, + pub NumberOfTiersReturned: DWORD, + pub Tiers: [FILE_STORAGE_TIER; 1usize], +} +pub type FSCTL_QUERY_STORAGE_CLASSES_OUTPUT = _FSCTL_QUERY_STORAGE_CLASSES_OUTPUT; +pub type PFSCTL_QUERY_STORAGE_CLASSES_OUTPUT = *mut _FSCTL_QUERY_STORAGE_CLASSES_OUTPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _STREAM_INFORMATION_ENTRY { + pub Version: DWORD, + pub Flags: DWORD, + pub StreamInformation: _STREAM_INFORMATION_ENTRY__StreamInformation, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _STREAM_INFORMATION_ENTRY__StreamInformation { + pub DesiredStorageClass: _STREAM_INFORMATION_ENTRY__StreamInformation__DesiredStorageClass, + pub DataStream: _STREAM_INFORMATION_ENTRY__StreamInformation__DataStream, + pub Reparse: _STREAM_INFORMATION_ENTRY__StreamInformation__Reparse, + pub Ea: _STREAM_INFORMATION_ENTRY__StreamInformation__Ea, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STREAM_INFORMATION_ENTRY__StreamInformation__DesiredStorageClass { + pub Class: FILE_STORAGE_TIER_CLASS, + pub Flags: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STREAM_INFORMATION_ENTRY__StreamInformation__DataStream { + pub Length: WORD, + pub Flags: WORD, + pub Reserved: DWORD, + pub Vdl: DWORDLONG, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STREAM_INFORMATION_ENTRY__StreamInformation__Reparse { + pub Length: WORD, + pub Flags: WORD, + pub ReparseDataSize: DWORD, + pub ReparseDataOffset: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STREAM_INFORMATION_ENTRY__StreamInformation__Ea { + pub Length: WORD, + pub Flags: WORD, + pub EaSize: DWORD, + pub EaInformationOffset: DWORD, +} +pub type STREAM_INFORMATION_ENTRY = _STREAM_INFORMATION_ENTRY; +pub type PSTREAM_INFORMATION_ENTRY = *mut _STREAM_INFORMATION_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FSCTL_QUERY_REGION_INFO_INPUT { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub NumberOfTierIds: DWORD, + pub TierIds: [GUID; 1usize], +} +pub type FSCTL_QUERY_REGION_INFO_INPUT = _FSCTL_QUERY_REGION_INFO_INPUT; +pub type PFSCTL_QUERY_REGION_INFO_INPUT = *mut _FSCTL_QUERY_REGION_INFO_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_STORAGE_TIER_REGION { + pub TierId: GUID, + pub Offset: DWORDLONG, + pub Length: DWORDLONG, +} +pub type FILE_STORAGE_TIER_REGION = _FILE_STORAGE_TIER_REGION; +pub type PFILE_STORAGE_TIER_REGION = *mut _FILE_STORAGE_TIER_REGION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FSCTL_QUERY_REGION_INFO_OUTPUT { + pub Version: DWORD, + pub Size: DWORD, + pub Flags: DWORD, + pub Reserved: DWORD, + pub Alignment: DWORDLONG, + pub TotalNumberOfRegions: DWORD, + pub NumberOfRegionsReturned: DWORD, + pub Regions: [FILE_STORAGE_TIER_REGION; 1usize], +} +pub type FSCTL_QUERY_REGION_INFO_OUTPUT = _FSCTL_QUERY_REGION_INFO_OUTPUT; +pub type PFSCTL_QUERY_REGION_INFO_OUTPUT = *mut _FSCTL_QUERY_REGION_INFO_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_DESIRED_STORAGE_CLASS_INFORMATION { + pub Class: FILE_STORAGE_TIER_CLASS, + pub Flags: DWORD, +} +pub type FILE_DESIRED_STORAGE_CLASS_INFORMATION = _FILE_DESIRED_STORAGE_CLASS_INFORMATION; +pub type PFILE_DESIRED_STORAGE_CLASS_INFORMATION = *mut _FILE_DESIRED_STORAGE_CLASS_INFORMATION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DUPLICATE_EXTENTS_DATA { + pub FileHandle: HANDLE, + pub SourceFileOffset: LARGE_INTEGER, + pub TargetFileOffset: LARGE_INTEGER, + pub ByteCount: LARGE_INTEGER, +} +pub type DUPLICATE_EXTENTS_DATA = _DUPLICATE_EXTENTS_DATA; +pub type PDUPLICATE_EXTENTS_DATA = *mut _DUPLICATE_EXTENTS_DATA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DUPLICATE_EXTENTS_DATA32 { + pub FileHandle: UINT32, + pub SourceFileOffset: LARGE_INTEGER, + pub TargetFileOffset: LARGE_INTEGER, + pub ByteCount: LARGE_INTEGER, +} +pub type DUPLICATE_EXTENTS_DATA32 = _DUPLICATE_EXTENTS_DATA32; +pub type PDUPLICATE_EXTENTS_DATA32 = *mut _DUPLICATE_EXTENTS_DATA32; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DUPLICATE_EXTENTS_DATA_EX { + pub Size: SIZE_T, + pub FileHandle: HANDLE, + pub SourceFileOffset: LARGE_INTEGER, + pub TargetFileOffset: LARGE_INTEGER, + pub ByteCount: LARGE_INTEGER, + pub Flags: DWORD, +} +pub type DUPLICATE_EXTENTS_DATA_EX = _DUPLICATE_EXTENTS_DATA_EX; +pub type PDUPLICATE_EXTENTS_DATA_EX = *mut _DUPLICATE_EXTENTS_DATA_EX; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DUPLICATE_EXTENTS_DATA_EX32 { + pub Size: DWORD32, + pub FileHandle: DWORD32, + pub SourceFileOffset: LARGE_INTEGER, + pub TargetFileOffset: LARGE_INTEGER, + pub ByteCount: LARGE_INTEGER, + pub Flags: DWORD, +} +pub type DUPLICATE_EXTENTS_DATA_EX32 = _DUPLICATE_EXTENTS_DATA_EX32; +pub type PDUPLICATE_EXTENTS_DATA_EX32 = *mut _DUPLICATE_EXTENTS_DATA_EX32; +pub const _DUPLICATE_EXTENTS_STATE_FileSnapStateInactive: _DUPLICATE_EXTENTS_STATE = 0; +pub const _DUPLICATE_EXTENTS_STATE_FileSnapStateSource: _DUPLICATE_EXTENTS_STATE = 1; +pub const _DUPLICATE_EXTENTS_STATE_FileSnapStateTarget: _DUPLICATE_EXTENTS_STATE = 2; +pub type _DUPLICATE_EXTENTS_STATE = ::std::os::raw::c_int; +pub use self::_DUPLICATE_EXTENTS_STATE as DUPLICATE_EXTENTS_STATE; +pub type PDUPLICATE_EXTENTS_STATE = *mut _DUPLICATE_EXTENTS_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ASYNC_DUPLICATE_EXTENTS_STATUS { + pub Version: DWORD, + pub State: DUPLICATE_EXTENTS_STATE, + pub SourceFileOffset: DWORDLONG, + pub TargetFileOffset: DWORDLONG, + pub ByteCount: DWORDLONG, + pub BytesDuplicated: DWORDLONG, +} +pub type ASYNC_DUPLICATE_EXTENTS_STATUS = _ASYNC_DUPLICATE_EXTENTS_STATUS; +pub type PASYNC_DUPLICATE_EXTENTS_STATUS = *mut _ASYNC_DUPLICATE_EXTENTS_STATUS; +pub const _REFS_SMR_VOLUME_GC_STATE_SmrGcStateInactive: _REFS_SMR_VOLUME_GC_STATE = 0; +pub const _REFS_SMR_VOLUME_GC_STATE_SmrGcStatePaused: _REFS_SMR_VOLUME_GC_STATE = 1; +pub const _REFS_SMR_VOLUME_GC_STATE_SmrGcStateActive: _REFS_SMR_VOLUME_GC_STATE = 2; +pub const _REFS_SMR_VOLUME_GC_STATE_SmrGcStateActiveFullSpeed: _REFS_SMR_VOLUME_GC_STATE = 3; +pub type _REFS_SMR_VOLUME_GC_STATE = ::std::os::raw::c_int; +pub use self::_REFS_SMR_VOLUME_GC_STATE as REFS_SMR_VOLUME_GC_STATE; +pub type PREFS_SMR_VOLUME_GC_STATE = *mut _REFS_SMR_VOLUME_GC_STATE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _REFS_SMR_VOLUME_INFO_OUTPUT { + pub Version: DWORD, + pub Flags: DWORD, + pub SizeOfRandomlyWritableTier: LARGE_INTEGER, + pub FreeSpaceInRandomlyWritableTier: LARGE_INTEGER, + pub SizeofSMRTier: LARGE_INTEGER, + pub FreeSpaceInSMRTier: LARGE_INTEGER, + pub UsableFreeSpaceInSMRTier: LARGE_INTEGER, + pub VolumeGcState: REFS_SMR_VOLUME_GC_STATE, + pub VolumeGcLastStatus: DWORD, + pub CurrentGcBandFillPercentage: DWORD, + pub Unused: [DWORDLONG; 6usize], +} +pub type REFS_SMR_VOLUME_INFO_OUTPUT = _REFS_SMR_VOLUME_INFO_OUTPUT; +pub type PREFS_SMR_VOLUME_INFO_OUTPUT = *mut _REFS_SMR_VOLUME_INFO_OUTPUT; +pub const _REFS_SMR_VOLUME_GC_ACTION_SmrGcActionStart: _REFS_SMR_VOLUME_GC_ACTION = 1; +pub const _REFS_SMR_VOLUME_GC_ACTION_SmrGcActionStartFullSpeed: _REFS_SMR_VOLUME_GC_ACTION = 2; +pub const _REFS_SMR_VOLUME_GC_ACTION_SmrGcActionPause: _REFS_SMR_VOLUME_GC_ACTION = 3; +pub const _REFS_SMR_VOLUME_GC_ACTION_SmrGcActionStop: _REFS_SMR_VOLUME_GC_ACTION = 4; +pub type _REFS_SMR_VOLUME_GC_ACTION = ::std::os::raw::c_int; +pub use self::_REFS_SMR_VOLUME_GC_ACTION as REFS_SMR_VOLUME_GC_ACTION; +pub type PREFS_SMR_VOLUME_GC_ACTION = *mut _REFS_SMR_VOLUME_GC_ACTION; +pub const _REFS_SMR_VOLUME_GC_METHOD_SmrGcMethodCompaction: _REFS_SMR_VOLUME_GC_METHOD = 1; +pub const _REFS_SMR_VOLUME_GC_METHOD_SmrGcMethodCompression: _REFS_SMR_VOLUME_GC_METHOD = 2; +pub const _REFS_SMR_VOLUME_GC_METHOD_SmrGcMethodRotation: _REFS_SMR_VOLUME_GC_METHOD = 3; +pub type _REFS_SMR_VOLUME_GC_METHOD = ::std::os::raw::c_int; +pub use self::_REFS_SMR_VOLUME_GC_METHOD as REFS_SMR_VOLUME_GC_METHOD; +pub type PREFS_SMR_VOLUME_GC_METHOD = *mut _REFS_SMR_VOLUME_GC_METHOD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REFS_SMR_VOLUME_GC_PARAMETERS { + pub Version: DWORD, + pub Flags: DWORD, + pub Action: REFS_SMR_VOLUME_GC_ACTION, + pub Method: REFS_SMR_VOLUME_GC_METHOD, + pub IoGranularity: DWORD, + pub CompressionFormat: DWORD, + pub Unused: [DWORDLONG; 8usize], +} +pub type REFS_SMR_VOLUME_GC_PARAMETERS = _REFS_SMR_VOLUME_GC_PARAMETERS; +pub type PREFS_SMR_VOLUME_GC_PARAMETERS = *mut _REFS_SMR_VOLUME_GC_PARAMETERS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER { + pub OptimalWriteSize: DWORD, + pub StreamGranularitySize: DWORD, + pub StreamIdMin: DWORD, + pub StreamIdMax: DWORD, +} +pub type STREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER = _STREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER; +pub type PSTREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER = *mut _STREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STREAMS_ASSOCIATE_ID_INPUT_BUFFER { + pub Flags: DWORD, + pub StreamId: DWORD, +} +pub type STREAMS_ASSOCIATE_ID_INPUT_BUFFER = _STREAMS_ASSOCIATE_ID_INPUT_BUFFER; +pub type PSTREAMS_ASSOCIATE_ID_INPUT_BUFFER = *mut _STREAMS_ASSOCIATE_ID_INPUT_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _STREAMS_QUERY_ID_OUTPUT_BUFFER { + pub StreamId: DWORD, +} +pub type STREAMS_QUERY_ID_OUTPUT_BUFFER = _STREAMS_QUERY_ID_OUTPUT_BUFFER; +pub type PSTREAMS_QUERY_ID_OUTPUT_BUFFER = *mut _STREAMS_QUERY_ID_OUTPUT_BUFFER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _QUERY_BAD_RANGES_INPUT_RANGE { + pub StartOffset: DWORDLONG, + pub LengthInBytes: DWORDLONG, +} +pub type QUERY_BAD_RANGES_INPUT_RANGE = _QUERY_BAD_RANGES_INPUT_RANGE; +pub type PQUERY_BAD_RANGES_INPUT_RANGE = *mut _QUERY_BAD_RANGES_INPUT_RANGE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _QUERY_BAD_RANGES_INPUT { + pub Flags: DWORD, + pub NumRanges: DWORD, + pub Ranges: [QUERY_BAD_RANGES_INPUT_RANGE; 1usize], +} +pub type QUERY_BAD_RANGES_INPUT = _QUERY_BAD_RANGES_INPUT; +pub type PQUERY_BAD_RANGES_INPUT = *mut _QUERY_BAD_RANGES_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _QUERY_BAD_RANGES_OUTPUT_RANGE { + pub Flags: DWORD, + pub Reserved: DWORD, + pub StartOffset: DWORDLONG, + pub LengthInBytes: DWORDLONG, +} +pub type QUERY_BAD_RANGES_OUTPUT_RANGE = _QUERY_BAD_RANGES_OUTPUT_RANGE; +pub type PQUERY_BAD_RANGES_OUTPUT_RANGE = *mut _QUERY_BAD_RANGES_OUTPUT_RANGE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _QUERY_BAD_RANGES_OUTPUT { + pub Flags: DWORD, + pub NumBadRanges: DWORD, + pub NextOffsetToLookUp: DWORDLONG, + pub BadRanges: [QUERY_BAD_RANGES_OUTPUT_RANGE; 1usize], +} +pub type QUERY_BAD_RANGES_OUTPUT = _QUERY_BAD_RANGES_OUTPUT; +pub type PQUERY_BAD_RANGES_OUTPUT = *mut _QUERY_BAD_RANGES_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT { + pub Flags: DWORD, + pub AlignmentShift: DWORD, + pub FileOffsetToAlign: DWORDLONG, + pub FallbackAlignmentShift: DWORD, +} +pub type SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT = _SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT; +pub type PSET_DAX_ALLOC_ALIGNMENT_HINT_INPUT = *mut _SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT; +pub const _VIRTUAL_STORAGE_BEHAVIOR_CODE_VirtualStorageBehaviorUndefined: + _VIRTUAL_STORAGE_BEHAVIOR_CODE = 0; +pub const _VIRTUAL_STORAGE_BEHAVIOR_CODE_VirtualStorageBehaviorCacheWriteThrough: + _VIRTUAL_STORAGE_BEHAVIOR_CODE = 1; +pub const _VIRTUAL_STORAGE_BEHAVIOR_CODE_VirtualStorageBehaviorCacheWriteBack: + _VIRTUAL_STORAGE_BEHAVIOR_CODE = 2; +pub const _VIRTUAL_STORAGE_BEHAVIOR_CODE_VirtualStorageBehaviorStopIoProcessing: + _VIRTUAL_STORAGE_BEHAVIOR_CODE = 3; +pub const _VIRTUAL_STORAGE_BEHAVIOR_CODE_VirtualStorageBehaviorRestartIoProcessing: + _VIRTUAL_STORAGE_BEHAVIOR_CODE = 4; +pub type _VIRTUAL_STORAGE_BEHAVIOR_CODE = ::std::os::raw::c_int; +pub use self::_VIRTUAL_STORAGE_BEHAVIOR_CODE as VIRTUAL_STORAGE_BEHAVIOR_CODE; +pub type PVIRTUAL_STORAGE_BEHAVIOR_CODE = *mut _VIRTUAL_STORAGE_BEHAVIOR_CODE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _VIRTUAL_STORAGE_SET_BEHAVIOR_INPUT { + pub Size: DWORD, + pub BehaviorCode: VIRTUAL_STORAGE_BEHAVIOR_CODE, +} +pub type VIRTUAL_STORAGE_SET_BEHAVIOR_INPUT = _VIRTUAL_STORAGE_SET_BEHAVIOR_INPUT; +pub type PVIRTUAL_STORAGE_SET_BEHAVIOR_INPUT = *mut _VIRTUAL_STORAGE_SET_BEHAVIOR_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENCRYPTION_KEY_CTRL_INPUT { + pub HeaderSize: DWORD, + pub StructureSize: DWORD, + pub KeyOffset: WORD, + pub KeySize: WORD, + pub DplLock: DWORD, + pub DplUserId: DWORDLONG, + pub DplCredentialId: DWORDLONG, +} +pub type ENCRYPTION_KEY_CTRL_INPUT = _ENCRYPTION_KEY_CTRL_INPUT; +pub type PENCRYPTION_KEY_CTRL_INPUT = *mut _ENCRYPTION_KEY_CTRL_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WOF_EXTERNAL_INFO { + pub Version: DWORD, + pub Provider: DWORD, +} +pub type WOF_EXTERNAL_INFO = _WOF_EXTERNAL_INFO; +pub type PWOF_EXTERNAL_INFO = *mut _WOF_EXTERNAL_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WOF_EXTERNAL_FILE_ID { + pub FileId: FILE_ID_128, +} +pub type WOF_EXTERNAL_FILE_ID = _WOF_EXTERNAL_FILE_ID; +pub type PWOF_EXTERNAL_FILE_ID = *mut _WOF_EXTERNAL_FILE_ID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WOF_VERSION_INFO { + pub WofVersion: DWORD, +} +pub type WOF_VERSION_INFO = _WOF_VERSION_INFO; +pub type PWOF_VERSION_INFO = *mut _WOF_VERSION_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _WIM_PROVIDER_EXTERNAL_INFO { + pub Version: DWORD, + pub Flags: DWORD, + pub DataSourceId: LARGE_INTEGER, + pub ResourceHash: [BYTE; 20usize], +} +pub type WIM_PROVIDER_EXTERNAL_INFO = _WIM_PROVIDER_EXTERNAL_INFO; +pub type PWIM_PROVIDER_EXTERNAL_INFO = *mut _WIM_PROVIDER_EXTERNAL_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _WIM_PROVIDER_ADD_OVERLAY_INPUT { + pub WimType: DWORD, + pub WimIndex: DWORD, + pub WimFileNameOffset: DWORD, + pub WimFileNameLength: DWORD, +} +pub type WIM_PROVIDER_ADD_OVERLAY_INPUT = _WIM_PROVIDER_ADD_OVERLAY_INPUT; +pub type PWIM_PROVIDER_ADD_OVERLAY_INPUT = *mut _WIM_PROVIDER_ADD_OVERLAY_INPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _WIM_PROVIDER_UPDATE_OVERLAY_INPUT { + pub DataSourceId: LARGE_INTEGER, + pub WimFileNameOffset: DWORD, + pub WimFileNameLength: DWORD, +} +pub type WIM_PROVIDER_UPDATE_OVERLAY_INPUT = _WIM_PROVIDER_UPDATE_OVERLAY_INPUT; +pub type PWIM_PROVIDER_UPDATE_OVERLAY_INPUT = *mut _WIM_PROVIDER_UPDATE_OVERLAY_INPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _WIM_PROVIDER_REMOVE_OVERLAY_INPUT { + pub DataSourceId: LARGE_INTEGER, +} +pub type WIM_PROVIDER_REMOVE_OVERLAY_INPUT = _WIM_PROVIDER_REMOVE_OVERLAY_INPUT; +pub type PWIM_PROVIDER_REMOVE_OVERLAY_INPUT = *mut _WIM_PROVIDER_REMOVE_OVERLAY_INPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _WIM_PROVIDER_SUSPEND_OVERLAY_INPUT { + pub DataSourceId: LARGE_INTEGER, +} +pub type WIM_PROVIDER_SUSPEND_OVERLAY_INPUT = _WIM_PROVIDER_SUSPEND_OVERLAY_INPUT; +pub type PWIM_PROVIDER_SUSPEND_OVERLAY_INPUT = *mut _WIM_PROVIDER_SUSPEND_OVERLAY_INPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _WIM_PROVIDER_OVERLAY_ENTRY { + pub NextEntryOffset: DWORD, + pub DataSourceId: LARGE_INTEGER, + pub WimGuid: GUID, + pub WimFileNameOffset: DWORD, + pub WimType: DWORD, + pub WimIndex: DWORD, + pub Flags: DWORD, +} +pub type WIM_PROVIDER_OVERLAY_ENTRY = _WIM_PROVIDER_OVERLAY_ENTRY; +pub type PWIM_PROVIDER_OVERLAY_ENTRY = *mut _WIM_PROVIDER_OVERLAY_ENTRY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_PROVIDER_EXTERNAL_INFO_V0 { + pub Version: DWORD, + pub Algorithm: DWORD, +} +pub type FILE_PROVIDER_EXTERNAL_INFO_V0 = _FILE_PROVIDER_EXTERNAL_INFO_V0; +pub type PFILE_PROVIDER_EXTERNAL_INFO_V0 = *mut _FILE_PROVIDER_EXTERNAL_INFO_V0; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FILE_PROVIDER_EXTERNAL_INFO_V1 { + pub Version: DWORD, + pub Algorithm: DWORD, + pub Flags: DWORD, +} +pub type FILE_PROVIDER_EXTERNAL_INFO_V1 = _FILE_PROVIDER_EXTERNAL_INFO_V1; +pub type PFILE_PROVIDER_EXTERNAL_INFO_V1 = *mut _FILE_PROVIDER_EXTERNAL_INFO_V1; +pub type FILE_PROVIDER_EXTERNAL_INFO = FILE_PROVIDER_EXTERNAL_INFO_V1; +pub type PFILE_PROVIDER_EXTERNAL_INFO = PFILE_PROVIDER_EXTERNAL_INFO_V1; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CONTAINER_VOLUME_STATE { + pub Flags: DWORD, +} +pub type CONTAINER_VOLUME_STATE = _CONTAINER_VOLUME_STATE; +pub type PCONTAINER_VOLUME_STATE = *mut _CONTAINER_VOLUME_STATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CONTAINER_ROOT_INFO_INPUT { + pub Flags: DWORD, +} +pub type CONTAINER_ROOT_INFO_INPUT = _CONTAINER_ROOT_INFO_INPUT; +pub type PCONTAINER_ROOT_INFO_INPUT = *mut _CONTAINER_ROOT_INFO_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CONTAINER_ROOT_INFO_OUTPUT { + pub ContainerRootIdLength: WORD, + pub ContainerRootId: [BYTE; 1usize], +} +pub type CONTAINER_ROOT_INFO_OUTPUT = _CONTAINER_ROOT_INFO_OUTPUT; +pub type PCONTAINER_ROOT_INFO_OUTPUT = *mut _CONTAINER_ROOT_INFO_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _VIRTUALIZATION_INSTANCE_INFO_INPUT { + pub NumberOfWorkerThreads: DWORD, + pub Flags: DWORD, +} +pub type VIRTUALIZATION_INSTANCE_INFO_INPUT = _VIRTUALIZATION_INSTANCE_INFO_INPUT; +pub type PVIRTUALIZATION_INSTANCE_INFO_INPUT = *mut _VIRTUALIZATION_INSTANCE_INFO_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _VIRTUALIZATION_INSTANCE_INFO_INPUT_EX { + pub HeaderSize: WORD, + pub Flags: DWORD, + pub NotificationInfoSize: DWORD, + pub NotificationInfoOffset: WORD, + pub ProviderMajorVersion: WORD, +} +pub type VIRTUALIZATION_INSTANCE_INFO_INPUT_EX = _VIRTUALIZATION_INSTANCE_INFO_INPUT_EX; +pub type PVIRTUALIZATION_INSTANCE_INFO_INPUT_EX = *mut _VIRTUALIZATION_INSTANCE_INFO_INPUT_EX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _VIRTUALIZATION_INSTANCE_INFO_OUTPUT { + pub VirtualizationInstanceID: GUID, +} +pub type VIRTUALIZATION_INSTANCE_INFO_OUTPUT = _VIRTUALIZATION_INSTANCE_INFO_OUTPUT; +pub type PVIRTUALIZATION_INSTANCE_INFO_OUTPUT = *mut _VIRTUALIZATION_INSTANCE_INFO_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _GET_FILTER_FILE_IDENTIFIER_INPUT { + pub AltitudeLength: WORD, + pub Altitude: [WCHAR; 1usize], +} +pub type GET_FILTER_FILE_IDENTIFIER_INPUT = _GET_FILTER_FILE_IDENTIFIER_INPUT; +pub type PGET_FILTER_FILE_IDENTIFIER_INPUT = *mut _GET_FILTER_FILE_IDENTIFIER_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _GET_FILTER_FILE_IDENTIFIER_OUTPUT { + pub FilterFileIdentifierLength: WORD, + pub FilterFileIdentifier: [BYTE; 1usize], +} +pub type GET_FILTER_FILE_IDENTIFIER_OUTPUT = _GET_FILTER_FILE_IDENTIFIER_OUTPUT; +pub type PGET_FILTER_FILE_IDENTIFIER_OUTPUT = *mut _GET_FILTER_FILE_IDENTIFIER_OUTPUT; +pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_ENABLE: _FS_BPIO_OPERATIONS = 1; +pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_DISABLE: _FS_BPIO_OPERATIONS = 2; +pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_QUERY: _FS_BPIO_OPERATIONS = 3; +pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_VOLUME_STACK_PAUSE: _FS_BPIO_OPERATIONS = 4; +pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_VOLUME_STACK_RESUME: _FS_BPIO_OPERATIONS = 5; +pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_STREAM_PAUSE: _FS_BPIO_OPERATIONS = 6; +pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_STREAM_RESUME: _FS_BPIO_OPERATIONS = 7; +pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_GET_INFO: _FS_BPIO_OPERATIONS = 8; +pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_MAX_OPERATION: _FS_BPIO_OPERATIONS = 9; +pub type _FS_BPIO_OPERATIONS = ::std::os::raw::c_int; +pub use self::_FS_BPIO_OPERATIONS as FS_BPIO_OPERATIONS; +pub const _FS_BPIO_INFLAGS_FSBPIO_INFL_None: _FS_BPIO_INFLAGS = 0; +pub const _FS_BPIO_INFLAGS_FSBPIO_INFL_SKIP_STORAGE_STACK_QUERY: _FS_BPIO_INFLAGS = 1; +pub type _FS_BPIO_INFLAGS = ::std::os::raw::c_int; +pub use self::_FS_BPIO_INFLAGS as FS_BPIO_INFLAGS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FS_BPIO_INPUT { + pub Operation: FS_BPIO_OPERATIONS, + pub InFlags: FS_BPIO_INFLAGS, + pub Reserved1: DWORDLONG, + pub Reserved2: DWORDLONG, +} +pub type FS_BPIO_INPUT = _FS_BPIO_INPUT; +pub type PFS_BPIO_INPUT = *mut _FS_BPIO_INPUT; +pub const _FS_BPIO_OUTFLAGS_FSBPIO_OUTFL_None: _FS_BPIO_OUTFLAGS = 0; +pub const _FS_BPIO_OUTFLAGS_FSBPIO_OUTFL_VOLUME_STACK_BYPASS_PAUSED: _FS_BPIO_OUTFLAGS = 1; +pub const _FS_BPIO_OUTFLAGS_FSBPIO_OUTFL_STREAM_BYPASS_PAUSED: _FS_BPIO_OUTFLAGS = 2; +pub const _FS_BPIO_OUTFLAGS_FSBPIO_OUTFL_FILTER_ATTACH_BLOCKED: _FS_BPIO_OUTFLAGS = 4; +pub const _FS_BPIO_OUTFLAGS_FSBPIO_OUTFL_COMPATIBLE_STORAGE_DRIVER: _FS_BPIO_OUTFLAGS = 8; +pub type _FS_BPIO_OUTFLAGS = ::std::os::raw::c_int; +pub use self::_FS_BPIO_OUTFLAGS as FS_BPIO_OUTFLAGS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FS_BPIO_RESULTS { + pub OpStatus: DWORD, + pub FailingDriverNameLen: WORD, + pub FailingDriverName: [WCHAR; 32usize], + pub FailureReasonLen: WORD, + pub FailureReason: [WCHAR; 128usize], +} +pub type FS_BPIO_RESULTS = _FS_BPIO_RESULTS; +pub type PFS_BPIO_RESULTS = *mut _FS_BPIO_RESULTS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FS_BPIO_INFO { + pub ActiveBypassIoCount: DWORD, + pub StorageDriverNameLen: WORD, + pub StorageDriverName: [WCHAR; 32usize], +} +pub type FS_BPIO_INFO = _FS_BPIO_INFO; +pub type PFS_BPIO_INFO = *mut _FS_BPIO_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FS_BPIO_OUTPUT { + pub Operation: FS_BPIO_OPERATIONS, + pub OutFlags: FS_BPIO_OUTFLAGS, + pub Reserved1: DWORDLONG, + pub Reserved2: DWORDLONG, + pub __bindgen_anon_1: _FS_BPIO_OUTPUT__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _FS_BPIO_OUTPUT__bindgen_ty_1 { + pub Enable: FS_BPIO_RESULTS, + pub Query: FS_BPIO_RESULTS, + pub VolumeStackResume: FS_BPIO_RESULTS, + pub StreamResume: FS_BPIO_RESULTS, + pub GetInfo: FS_BPIO_INFO, +} +pub type FS_BPIO_OUTPUT = _FS_BPIO_OUTPUT; +pub type PFS_BPIO_OUTPUT = *mut _FS_BPIO_OUTPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SMB_SHARE_FLUSH_AND_PURGE_INPUT { + pub Version: WORD, +} +pub type SMB_SHARE_FLUSH_AND_PURGE_INPUT = _SMB_SHARE_FLUSH_AND_PURGE_INPUT; +pub type PSMB_SHARE_FLUSH_AND_PURGE_INPUT = *mut _SMB_SHARE_FLUSH_AND_PURGE_INPUT; +pub type PCSMB_SHARE_FLUSH_AND_PURGE_INPUT = *const _SMB_SHARE_FLUSH_AND_PURGE_INPUT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SMB_SHARE_FLUSH_AND_PURGE_OUTPUT { + pub cEntriesPurged: DWORD, +} +pub type SMB_SHARE_FLUSH_AND_PURGE_OUTPUT = _SMB_SHARE_FLUSH_AND_PURGE_OUTPUT; +pub type PSMB_SHARE_FLUSH_AND_PURGE_OUTPUT = *mut _SMB_SHARE_FLUSH_AND_PURGE_OUTPUT; +pub type PCSMB_SHARE_FLUSH_AND_PURGE_OUTPUT = *const _SMB_SHARE_FLUSH_AND_PURGE_OUTPUT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _DISK_EXTENT { + pub DiskNumber: DWORD, + pub StartingOffset: LARGE_INTEGER, + pub ExtentLength: LARGE_INTEGER, +} +pub type DISK_EXTENT = _DISK_EXTENT; +pub type PDISK_EXTENT = *mut _DISK_EXTENT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _VOLUME_DISK_EXTENTS { + pub NumberOfDiskExtents: DWORD, + pub Extents: [DISK_EXTENT; 1usize], +} +pub type VOLUME_DISK_EXTENTS = _VOLUME_DISK_EXTENTS; +pub type PVOLUME_DISK_EXTENTS = *mut _VOLUME_DISK_EXTENTS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _VOLUME_GET_GPT_ATTRIBUTES_INFORMATION { + pub GptAttributes: DWORDLONG, +} +pub type VOLUME_GET_GPT_ATTRIBUTES_INFORMATION = _VOLUME_GET_GPT_ATTRIBUTES_INFORMATION; +pub type PVOLUME_GET_GPT_ATTRIBUTES_INFORMATION = *mut _VOLUME_GET_GPT_ATTRIBUTES_INFORMATION; +pub type PIO_IRP_EXT_PROCESS_TRACKED_OFFSET_CALLBACK = ::std::option::Option< + unsafe extern "C" fn( + SourceContext: *mut _IO_IRP_EXT_TRACK_OFFSET_HEADER, + TargetContext: *mut _IO_IRP_EXT_TRACK_OFFSET_HEADER, + RelativeOffset: LONGLONG, + ), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _IO_IRP_EXT_TRACK_OFFSET_HEADER { + pub Validation: WORD, + pub Flags: WORD, + pub TrackedOffsetCallback: PIO_IRP_EXT_PROCESS_TRACKED_OFFSET_CALLBACK, +} +pub type IO_IRP_EXT_TRACK_OFFSET_HEADER = _IO_IRP_EXT_TRACK_OFFSET_HEADER; +pub type PIO_IRP_EXT_TRACK_OFFSET_HEADER = *mut _IO_IRP_EXT_TRACK_OFFSET_HEADER; +pub type UWORD = WORD; +extern "C" { + pub static GUID_DEVINTERFACE_SMARTCARD_READER: GUID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCARD_IO_REQUEST { + pub dwProtocol: DWORD, + pub cbPciLength: DWORD, +} +pub type SCARD_IO_REQUEST = _SCARD_IO_REQUEST; +pub type PSCARD_IO_REQUEST = *mut _SCARD_IO_REQUEST; +pub type LPSCARD_IO_REQUEST = *mut _SCARD_IO_REQUEST; +pub type LPCSCARD_IO_REQUEST = *const SCARD_IO_REQUEST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCARD_T0_COMMAND { + pub bCla: BYTE, + pub bIns: BYTE, + pub bP1: BYTE, + pub bP2: BYTE, + pub bP3: BYTE, +} +pub type SCARD_T0_COMMAND = _SCARD_T0_COMMAND; +pub type LPSCARD_T0_COMMAND = *mut _SCARD_T0_COMMAND; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _SCARD_T0_REQUEST { + pub ioRequest: SCARD_IO_REQUEST, + pub bSw1: BYTE, + pub bSw2: BYTE, + pub __bindgen_anon_1: _SCARD_T0_REQUEST__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SCARD_T0_REQUEST__bindgen_ty_1 { + pub CmdBytes: SCARD_T0_COMMAND, + pub rgbHeader: [BYTE; 5usize], +} +pub type SCARD_T0_REQUEST = _SCARD_T0_REQUEST; +pub type PSCARD_T0_REQUEST = *mut SCARD_T0_REQUEST; +pub type LPSCARD_T0_REQUEST = *mut SCARD_T0_REQUEST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCARD_T1_REQUEST { + pub ioRequest: SCARD_IO_REQUEST, +} +pub type SCARD_T1_REQUEST = _SCARD_T1_REQUEST; +pub type PSCARD_T1_REQUEST = *mut SCARD_T1_REQUEST; +pub type LPSCARD_T1_REQUEST = *mut SCARD_T1_REQUEST; +pub type LPCBYTE = *const BYTE; +extern "C" { + pub static g_rgSCardT0Pci: SCARD_IO_REQUEST; +} +extern "C" { + pub static g_rgSCardT1Pci: SCARD_IO_REQUEST; +} +extern "C" { + pub static g_rgSCardRawPci: SCARD_IO_REQUEST; +} +pub type SCARDCONTEXT = ULONG_PTR; +pub type PSCARDCONTEXT = *mut SCARDCONTEXT; +pub type LPSCARDCONTEXT = *mut SCARDCONTEXT; +pub type SCARDHANDLE = ULONG_PTR; +pub type PSCARDHANDLE = *mut SCARDHANDLE; +pub type LPSCARDHANDLE = *mut SCARDHANDLE; +extern "C" { + pub fn SCardEstablishContext( + dwScope: DWORD, + pvReserved1: LPCVOID, + pvReserved2: LPCVOID, + phContext: LPSCARDCONTEXT, + ) -> LONG; +} +extern "C" { + pub fn SCardReleaseContext(hContext: SCARDCONTEXT) -> LONG; +} +extern "C" { + pub fn SCardIsValidContext(hContext: SCARDCONTEXT) -> LONG; +} +extern "C" { + pub fn SCardListReaderGroupsA( + hContext: SCARDCONTEXT, + mszGroups: LPSTR, + pcchGroups: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardListReaderGroupsW( + hContext: SCARDCONTEXT, + mszGroups: LPWSTR, + pcchGroups: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardListReadersA( + hContext: SCARDCONTEXT, + mszGroups: LPCSTR, + mszReaders: LPSTR, + pcchReaders: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardListReadersW( + hContext: SCARDCONTEXT, + mszGroups: LPCWSTR, + mszReaders: LPWSTR, + pcchReaders: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardListCardsA( + hContext: SCARDCONTEXT, + pbAtr: LPCBYTE, + rgquidInterfaces: LPCGUID, + cguidInterfaceCount: DWORD, + mszCards: *mut CHAR, + pcchCards: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardListCardsW( + hContext: SCARDCONTEXT, + pbAtr: LPCBYTE, + rgquidInterfaces: LPCGUID, + cguidInterfaceCount: DWORD, + mszCards: *mut WCHAR, + pcchCards: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardListInterfacesA( + hContext: SCARDCONTEXT, + szCard: LPCSTR, + pguidInterfaces: LPGUID, + pcguidInterfaces: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardListInterfacesW( + hContext: SCARDCONTEXT, + szCard: LPCWSTR, + pguidInterfaces: LPGUID, + pcguidInterfaces: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardGetProviderIdA( + hContext: SCARDCONTEXT, + szCard: LPCSTR, + pguidProviderId: LPGUID, + ) -> LONG; +} +extern "C" { + pub fn SCardGetProviderIdW( + hContext: SCARDCONTEXT, + szCard: LPCWSTR, + pguidProviderId: LPGUID, + ) -> LONG; +} +extern "C" { + pub fn SCardGetCardTypeProviderNameA( + hContext: SCARDCONTEXT, + szCardName: LPCSTR, + dwProviderId: DWORD, + szProvider: *mut CHAR, + pcchProvider: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardGetCardTypeProviderNameW( + hContext: SCARDCONTEXT, + szCardName: LPCWSTR, + dwProviderId: DWORD, + szProvider: *mut WCHAR, + pcchProvider: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardIntroduceReaderGroupA(hContext: SCARDCONTEXT, szGroupName: LPCSTR) -> LONG; +} +extern "C" { + pub fn SCardIntroduceReaderGroupW(hContext: SCARDCONTEXT, szGroupName: LPCWSTR) -> LONG; +} +extern "C" { + pub fn SCardForgetReaderGroupA(hContext: SCARDCONTEXT, szGroupName: LPCSTR) -> LONG; +} +extern "C" { + pub fn SCardForgetReaderGroupW(hContext: SCARDCONTEXT, szGroupName: LPCWSTR) -> LONG; +} +extern "C" { + pub fn SCardIntroduceReaderA( + hContext: SCARDCONTEXT, + szReaderName: LPCSTR, + szDeviceName: LPCSTR, + ) -> LONG; +} +extern "C" { + pub fn SCardIntroduceReaderW( + hContext: SCARDCONTEXT, + szReaderName: LPCWSTR, + szDeviceName: LPCWSTR, + ) -> LONG; +} +extern "C" { + pub fn SCardForgetReaderA(hContext: SCARDCONTEXT, szReaderName: LPCSTR) -> LONG; +} +extern "C" { + pub fn SCardForgetReaderW(hContext: SCARDCONTEXT, szReaderName: LPCWSTR) -> LONG; +} +extern "C" { + pub fn SCardAddReaderToGroupA( + hContext: SCARDCONTEXT, + szReaderName: LPCSTR, + szGroupName: LPCSTR, + ) -> LONG; +} +extern "C" { + pub fn SCardAddReaderToGroupW( + hContext: SCARDCONTEXT, + szReaderName: LPCWSTR, + szGroupName: LPCWSTR, + ) -> LONG; +} +extern "C" { + pub fn SCardRemoveReaderFromGroupA( + hContext: SCARDCONTEXT, + szReaderName: LPCSTR, + szGroupName: LPCSTR, + ) -> LONG; +} +extern "C" { + pub fn SCardRemoveReaderFromGroupW( + hContext: SCARDCONTEXT, + szReaderName: LPCWSTR, + szGroupName: LPCWSTR, + ) -> LONG; +} +extern "C" { + pub fn SCardIntroduceCardTypeA( + hContext: SCARDCONTEXT, + szCardName: LPCSTR, + pguidPrimaryProvider: LPCGUID, + rgguidInterfaces: LPCGUID, + dwInterfaceCount: DWORD, + pbAtr: LPCBYTE, + pbAtrMask: LPCBYTE, + cbAtrLen: DWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardIntroduceCardTypeW( + hContext: SCARDCONTEXT, + szCardName: LPCWSTR, + pguidPrimaryProvider: LPCGUID, + rgguidInterfaces: LPCGUID, + dwInterfaceCount: DWORD, + pbAtr: LPCBYTE, + pbAtrMask: LPCBYTE, + cbAtrLen: DWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardSetCardTypeProviderNameA( + hContext: SCARDCONTEXT, + szCardName: LPCSTR, + dwProviderId: DWORD, + szProvider: LPCSTR, + ) -> LONG; +} +extern "C" { + pub fn SCardSetCardTypeProviderNameW( + hContext: SCARDCONTEXT, + szCardName: LPCWSTR, + dwProviderId: DWORD, + szProvider: LPCWSTR, + ) -> LONG; +} +extern "C" { + pub fn SCardForgetCardTypeA(hContext: SCARDCONTEXT, szCardName: LPCSTR) -> LONG; +} +extern "C" { + pub fn SCardForgetCardTypeW(hContext: SCARDCONTEXT, szCardName: LPCWSTR) -> LONG; +} +extern "C" { + pub fn SCardFreeMemory(hContext: SCARDCONTEXT, pvMem: LPCVOID) -> LONG; +} +extern "C" { + pub fn SCardAccessStartedEvent() -> HANDLE; +} +extern "C" { + pub fn SCardReleaseStartedEvent(); +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SCARD_READERSTATEA { + pub szReader: LPCSTR, + pub pvUserData: LPVOID, + pub dwCurrentState: DWORD, + pub dwEventState: DWORD, + pub cbAtr: DWORD, + pub rgbAtr: [BYTE; 36usize], +} +pub type PSCARD_READERSTATEA = *mut SCARD_READERSTATEA; +pub type LPSCARD_READERSTATEA = *mut SCARD_READERSTATEA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SCARD_READERSTATEW { + pub szReader: LPCWSTR, + pub pvUserData: LPVOID, + pub dwCurrentState: DWORD, + pub dwEventState: DWORD, + pub cbAtr: DWORD, + pub rgbAtr: [BYTE; 36usize], +} +pub type PSCARD_READERSTATEW = *mut SCARD_READERSTATEW; +pub type LPSCARD_READERSTATEW = *mut SCARD_READERSTATEW; +pub type SCARD_READERSTATE = SCARD_READERSTATEA; +pub type PSCARD_READERSTATE = PSCARD_READERSTATEA; +pub type LPSCARD_READERSTATE = LPSCARD_READERSTATEA; +extern "C" { + pub fn SCardLocateCardsA( + hContext: SCARDCONTEXT, + mszCards: LPCSTR, + rgReaderStates: LPSCARD_READERSTATEA, + cReaders: DWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardLocateCardsW( + hContext: SCARDCONTEXT, + mszCards: LPCWSTR, + rgReaderStates: LPSCARD_READERSTATEW, + cReaders: DWORD, + ) -> LONG; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SCARD_ATRMASK { + pub cbAtr: DWORD, + pub rgbAtr: [BYTE; 36usize], + pub rgbMask: [BYTE; 36usize], +} +pub type SCARD_ATRMASK = _SCARD_ATRMASK; +pub type PSCARD_ATRMASK = *mut _SCARD_ATRMASK; +pub type LPSCARD_ATRMASK = *mut _SCARD_ATRMASK; +extern "C" { + pub fn SCardLocateCardsByATRA( + hContext: SCARDCONTEXT, + rgAtrMasks: LPSCARD_ATRMASK, + cAtrs: DWORD, + rgReaderStates: LPSCARD_READERSTATEA, + cReaders: DWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardLocateCardsByATRW( + hContext: SCARDCONTEXT, + rgAtrMasks: LPSCARD_ATRMASK, + cAtrs: DWORD, + rgReaderStates: LPSCARD_READERSTATEW, + cReaders: DWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardGetStatusChangeA( + hContext: SCARDCONTEXT, + dwTimeout: DWORD, + rgReaderStates: LPSCARD_READERSTATEA, + cReaders: DWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardGetStatusChangeW( + hContext: SCARDCONTEXT, + dwTimeout: DWORD, + rgReaderStates: LPSCARD_READERSTATEW, + cReaders: DWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardCancel(hContext: SCARDCONTEXT) -> LONG; +} +extern "C" { + pub fn SCardConnectA( + hContext: SCARDCONTEXT, + szReader: LPCSTR, + dwShareMode: DWORD, + dwPreferredProtocols: DWORD, + phCard: LPSCARDHANDLE, + pdwActiveProtocol: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardConnectW( + hContext: SCARDCONTEXT, + szReader: LPCWSTR, + dwShareMode: DWORD, + dwPreferredProtocols: DWORD, + phCard: LPSCARDHANDLE, + pdwActiveProtocol: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardReconnect( + hCard: SCARDHANDLE, + dwShareMode: DWORD, + dwPreferredProtocols: DWORD, + dwInitialization: DWORD, + pdwActiveProtocol: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardDisconnect(hCard: SCARDHANDLE, dwDisposition: DWORD) -> LONG; +} +extern "C" { + pub fn SCardBeginTransaction(hCard: SCARDHANDLE) -> LONG; +} +extern "C" { + pub fn SCardEndTransaction(hCard: SCARDHANDLE, dwDisposition: DWORD) -> LONG; +} +extern "C" { + pub fn SCardCancelTransaction(hCard: SCARDHANDLE) -> LONG; +} +extern "C" { + pub fn SCardState( + hCard: SCARDHANDLE, + pdwState: LPDWORD, + pdwProtocol: LPDWORD, + pbAtr: LPBYTE, + pcbAtrLen: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardStatusA( + hCard: SCARDHANDLE, + mszReaderNames: LPSTR, + pcchReaderLen: LPDWORD, + pdwState: LPDWORD, + pdwProtocol: LPDWORD, + pbAtr: LPBYTE, + pcbAtrLen: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardStatusW( + hCard: SCARDHANDLE, + mszReaderNames: LPWSTR, + pcchReaderLen: LPDWORD, + pdwState: LPDWORD, + pdwProtocol: LPDWORD, + pbAtr: LPBYTE, + pcbAtrLen: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardTransmit( + hCard: SCARDHANDLE, + pioSendPci: LPCSCARD_IO_REQUEST, + pbSendBuffer: LPCBYTE, + cbSendLength: DWORD, + pioRecvPci: LPSCARD_IO_REQUEST, + pbRecvBuffer: LPBYTE, + pcbRecvLength: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardGetTransmitCount(hCard: SCARDHANDLE, pcTransmitCount: LPDWORD) -> LONG; +} +extern "C" { + pub fn SCardControl( + hCard: SCARDHANDLE, + dwControlCode: DWORD, + lpInBuffer: LPCVOID, + cbInBufferSize: DWORD, + lpOutBuffer: LPVOID, + cbOutBufferSize: DWORD, + lpBytesReturned: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardGetAttrib( + hCard: SCARDHANDLE, + dwAttrId: DWORD, + pbAttr: LPBYTE, + pcbAttrLen: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardSetAttrib( + hCard: SCARDHANDLE, + dwAttrId: DWORD, + pbAttr: LPCBYTE, + cbAttrLen: DWORD, + ) -> LONG; +} +pub type LPOCNCONNPROCA = ::std::option::Option< + unsafe extern "C" fn(arg1: SCARDCONTEXT, arg2: LPSTR, arg3: LPSTR, arg4: PVOID) -> SCARDHANDLE, +>; +pub type LPOCNCONNPROCW = ::std::option::Option< + unsafe extern "C" fn( + arg1: SCARDCONTEXT, + arg2: LPWSTR, + arg3: LPWSTR, + arg4: PVOID, + ) -> SCARDHANDLE, +>; +pub type LPOCNCHKPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: SCARDCONTEXT, arg2: SCARDHANDLE, arg3: PVOID) -> BOOL, +>; +pub type LPOCNDSCPROC = + ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct OPENCARD_SEARCH_CRITERIAA { + pub dwStructSize: DWORD, + pub lpstrGroupNames: LPSTR, + pub nMaxGroupNames: DWORD, + pub rgguidInterfaces: LPCGUID, + pub cguidInterfaces: DWORD, + pub lpstrCardNames: LPSTR, + pub nMaxCardNames: DWORD, + pub lpfnCheck: LPOCNCHKPROC, + pub lpfnConnect: LPOCNCONNPROCA, + pub lpfnDisconnect: LPOCNDSCPROC, + pub pvUserData: LPVOID, + pub dwShareMode: DWORD, + pub dwPreferredProtocols: DWORD, +} +pub type POPENCARD_SEARCH_CRITERIAA = *mut OPENCARD_SEARCH_CRITERIAA; +pub type LPOPENCARD_SEARCH_CRITERIAA = *mut OPENCARD_SEARCH_CRITERIAA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct OPENCARD_SEARCH_CRITERIAW { + pub dwStructSize: DWORD, + pub lpstrGroupNames: LPWSTR, + pub nMaxGroupNames: DWORD, + pub rgguidInterfaces: LPCGUID, + pub cguidInterfaces: DWORD, + pub lpstrCardNames: LPWSTR, + pub nMaxCardNames: DWORD, + pub lpfnCheck: LPOCNCHKPROC, + pub lpfnConnect: LPOCNCONNPROCW, + pub lpfnDisconnect: LPOCNDSCPROC, + pub pvUserData: LPVOID, + pub dwShareMode: DWORD, + pub dwPreferredProtocols: DWORD, +} +pub type POPENCARD_SEARCH_CRITERIAW = *mut OPENCARD_SEARCH_CRITERIAW; +pub type LPOPENCARD_SEARCH_CRITERIAW = *mut OPENCARD_SEARCH_CRITERIAW; +pub type OPENCARD_SEARCH_CRITERIA = OPENCARD_SEARCH_CRITERIAA; +pub type POPENCARD_SEARCH_CRITERIA = POPENCARD_SEARCH_CRITERIAA; +pub type LPOPENCARD_SEARCH_CRITERIA = LPOPENCARD_SEARCH_CRITERIAA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct OPENCARDNAME_EXA { + pub dwStructSize: DWORD, + pub hSCardContext: SCARDCONTEXT, + pub hwndOwner: HWND, + pub dwFlags: DWORD, + pub lpstrTitle: LPCSTR, + pub lpstrSearchDesc: LPCSTR, + pub hIcon: HICON, + pub pOpenCardSearchCriteria: POPENCARD_SEARCH_CRITERIAA, + pub lpfnConnect: LPOCNCONNPROCA, + pub pvUserData: LPVOID, + pub dwShareMode: DWORD, + pub dwPreferredProtocols: DWORD, + pub lpstrRdr: LPSTR, + pub nMaxRdr: DWORD, + pub lpstrCard: LPSTR, + pub nMaxCard: DWORD, + pub dwActiveProtocol: DWORD, + pub hCardHandle: SCARDHANDLE, +} +pub type POPENCARDNAME_EXA = *mut OPENCARDNAME_EXA; +pub type LPOPENCARDNAME_EXA = *mut OPENCARDNAME_EXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct OPENCARDNAME_EXW { + pub dwStructSize: DWORD, + pub hSCardContext: SCARDCONTEXT, + pub hwndOwner: HWND, + pub dwFlags: DWORD, + pub lpstrTitle: LPCWSTR, + pub lpstrSearchDesc: LPCWSTR, + pub hIcon: HICON, + pub pOpenCardSearchCriteria: POPENCARD_SEARCH_CRITERIAW, + pub lpfnConnect: LPOCNCONNPROCW, + pub pvUserData: LPVOID, + pub dwShareMode: DWORD, + pub dwPreferredProtocols: DWORD, + pub lpstrRdr: LPWSTR, + pub nMaxRdr: DWORD, + pub lpstrCard: LPWSTR, + pub nMaxCard: DWORD, + pub dwActiveProtocol: DWORD, + pub hCardHandle: SCARDHANDLE, +} +pub type POPENCARDNAME_EXW = *mut OPENCARDNAME_EXW; +pub type LPOPENCARDNAME_EXW = *mut OPENCARDNAME_EXW; +pub type OPENCARDNAME_EX = OPENCARDNAME_EXA; +pub type POPENCARDNAME_EX = POPENCARDNAME_EXA; +pub type LPOPENCARDNAME_EX = LPOPENCARDNAME_EXA; +pub const READER_SEL_REQUEST_MATCH_TYPE_RSR_MATCH_TYPE_READER_AND_CONTAINER: + READER_SEL_REQUEST_MATCH_TYPE = 1; +pub const READER_SEL_REQUEST_MATCH_TYPE_RSR_MATCH_TYPE_SERIAL_NUMBER: + READER_SEL_REQUEST_MATCH_TYPE = 2; +pub const READER_SEL_REQUEST_MATCH_TYPE_RSR_MATCH_TYPE_ALL_CARDS: READER_SEL_REQUEST_MATCH_TYPE = 3; +pub type READER_SEL_REQUEST_MATCH_TYPE = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct READER_SEL_REQUEST { + pub dwShareMode: DWORD, + pub dwPreferredProtocols: DWORD, + pub MatchType: READER_SEL_REQUEST_MATCH_TYPE, + pub __bindgen_anon_1: READER_SEL_REQUEST__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union READER_SEL_REQUEST__bindgen_ty_1 { + pub ReaderAndContainerParameter: READER_SEL_REQUEST__bindgen_ty_1__bindgen_ty_1, + pub SerialNumberParameter: READER_SEL_REQUEST__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct READER_SEL_REQUEST__bindgen_ty_1__bindgen_ty_1 { + pub cbReaderNameOffset: DWORD, + pub cchReaderNameLength: DWORD, + pub cbContainerNameOffset: DWORD, + pub cchContainerNameLength: DWORD, + pub dwDesiredCardModuleVersion: DWORD, + pub dwCspFlags: DWORD, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct READER_SEL_REQUEST__bindgen_ty_1__bindgen_ty_2 { + pub cbSerialNumberOffset: DWORD, + pub cbSerialNumberLength: DWORD, + pub dwDesiredCardModuleVersion: DWORD, +} +pub type PREADER_SEL_REQUEST = *mut READER_SEL_REQUEST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct READER_SEL_RESPONSE { + pub cbReaderNameOffset: DWORD, + pub cchReaderNameLength: DWORD, + pub cbCardNameOffset: DWORD, + pub cchCardNameLength: DWORD, +} +pub type PREADER_SEL_RESPONSE = *mut READER_SEL_RESPONSE; +extern "C" { + pub fn SCardUIDlgSelectCardA(arg1: LPOPENCARDNAME_EXA) -> LONG; +} +extern "C" { + pub fn SCardUIDlgSelectCardW(arg1: LPOPENCARDNAME_EXW) -> LONG; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct OPENCARDNAMEA { + pub dwStructSize: DWORD, + pub hwndOwner: HWND, + pub hSCardContext: SCARDCONTEXT, + pub lpstrGroupNames: LPSTR, + pub nMaxGroupNames: DWORD, + pub lpstrCardNames: LPSTR, + pub nMaxCardNames: DWORD, + pub rgguidInterfaces: LPCGUID, + pub cguidInterfaces: DWORD, + pub lpstrRdr: LPSTR, + pub nMaxRdr: DWORD, + pub lpstrCard: LPSTR, + pub nMaxCard: DWORD, + pub lpstrTitle: LPCSTR, + pub dwFlags: DWORD, + pub pvUserData: LPVOID, + pub dwShareMode: DWORD, + pub dwPreferredProtocols: DWORD, + pub dwActiveProtocol: DWORD, + pub lpfnConnect: LPOCNCONNPROCA, + pub lpfnCheck: LPOCNCHKPROC, + pub lpfnDisconnect: LPOCNDSCPROC, + pub hCardHandle: SCARDHANDLE, +} +pub type POPENCARDNAMEA = *mut OPENCARDNAMEA; +pub type LPOPENCARDNAMEA = *mut OPENCARDNAMEA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct OPENCARDNAMEW { + pub dwStructSize: DWORD, + pub hwndOwner: HWND, + pub hSCardContext: SCARDCONTEXT, + pub lpstrGroupNames: LPWSTR, + pub nMaxGroupNames: DWORD, + pub lpstrCardNames: LPWSTR, + pub nMaxCardNames: DWORD, + pub rgguidInterfaces: LPCGUID, + pub cguidInterfaces: DWORD, + pub lpstrRdr: LPWSTR, + pub nMaxRdr: DWORD, + pub lpstrCard: LPWSTR, + pub nMaxCard: DWORD, + pub lpstrTitle: LPCWSTR, + pub dwFlags: DWORD, + pub pvUserData: LPVOID, + pub dwShareMode: DWORD, + pub dwPreferredProtocols: DWORD, + pub dwActiveProtocol: DWORD, + pub lpfnConnect: LPOCNCONNPROCW, + pub lpfnCheck: LPOCNCHKPROC, + pub lpfnDisconnect: LPOCNDSCPROC, + pub hCardHandle: SCARDHANDLE, +} +pub type POPENCARDNAMEW = *mut OPENCARDNAMEW; +pub type LPOPENCARDNAMEW = *mut OPENCARDNAMEW; +pub type OPENCARDNAME = OPENCARDNAMEA; +pub type POPENCARDNAME = POPENCARDNAMEA; +pub type LPOPENCARDNAME = LPOPENCARDNAMEA; +extern "C" { + pub fn GetOpenCardNameA(arg1: LPOPENCARDNAMEA) -> LONG; +} +extern "C" { + pub fn GetOpenCardNameW(arg1: LPOPENCARDNAMEW) -> LONG; +} +extern "C" { + pub fn SCardDlgExtendedError() -> LONG; +} +extern "C" { + pub fn SCardReadCacheA( + hContext: SCARDCONTEXT, + CardIdentifier: *mut UUID, + FreshnessCounter: DWORD, + LookupName: LPSTR, + Data: PBYTE, + DataLen: *mut DWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardReadCacheW( + hContext: SCARDCONTEXT, + CardIdentifier: *mut UUID, + FreshnessCounter: DWORD, + LookupName: LPWSTR, + Data: PBYTE, + DataLen: *mut DWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardWriteCacheA( + hContext: SCARDCONTEXT, + CardIdentifier: *mut UUID, + FreshnessCounter: DWORD, + LookupName: LPSTR, + Data: PBYTE, + DataLen: DWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardWriteCacheW( + hContext: SCARDCONTEXT, + CardIdentifier: *mut UUID, + FreshnessCounter: DWORD, + LookupName: LPWSTR, + Data: PBYTE, + DataLen: DWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardGetReaderIconA( + hContext: SCARDCONTEXT, + szReaderName: LPCSTR, + pbIcon: LPBYTE, + pcbIcon: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardGetReaderIconW( + hContext: SCARDCONTEXT, + szReaderName: LPCWSTR, + pbIcon: LPBYTE, + pcbIcon: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardGetDeviceTypeIdA( + hContext: SCARDCONTEXT, + szReaderName: LPCSTR, + pdwDeviceTypeId: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardGetDeviceTypeIdW( + hContext: SCARDCONTEXT, + szReaderName: LPCWSTR, + pdwDeviceTypeId: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardGetReaderDeviceInstanceIdA( + hContext: SCARDCONTEXT, + szReaderName: LPCSTR, + szDeviceInstanceId: LPSTR, + pcchDeviceInstanceId: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardGetReaderDeviceInstanceIdW( + hContext: SCARDCONTEXT, + szReaderName: LPCWSTR, + szDeviceInstanceId: LPWSTR, + pcchDeviceInstanceId: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardListReadersWithDeviceInstanceIdA( + hContext: SCARDCONTEXT, + szDeviceInstanceId: LPCSTR, + mszReaders: LPSTR, + pcchReaders: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardListReadersWithDeviceInstanceIdW( + hContext: SCARDCONTEXT, + szDeviceInstanceId: LPCWSTR, + mszReaders: LPWSTR, + pcchReaders: LPDWORD, + ) -> LONG; +} +extern "C" { + pub fn SCardAudit(hContext: SCARDCONTEXT, dwEvent: DWORD) -> LONG; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PSP { + _unused: [u8; 0], +} +pub type HPROPSHEETPAGE = *mut _PSP; +pub type LPFNPSPCALLBACKA = ::std::option::Option< + unsafe extern "C" fn(hwnd: HWND, uMsg: UINT, ppsp: *mut _PROPSHEETPAGEA) -> UINT, +>; +pub type LPFNPSPCALLBACKW = ::std::option::Option< + unsafe extern "C" fn(hwnd: HWND, uMsg: UINT, ppsp: *mut _PROPSHEETPAGEW) -> UINT, +>; +pub type PROPSHEETPAGE_RESOURCE = LPCDLGTEMPLATE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROPSHEETPAGEA_V1 { + pub dwSize: DWORD, + pub dwFlags: DWORD, + pub hInstance: HINSTANCE, + pub __bindgen_anon_1: _PROPSHEETPAGEA_V1__bindgen_ty_1, + pub __bindgen_anon_2: _PROPSHEETPAGEA_V1__bindgen_ty_2, + pub pszTitle: LPCSTR, + pub pfnDlgProc: DLGPROC, + pub lParam: LPARAM, + pub pfnCallback: LPFNPSPCALLBACKA, + pub pcRefParent: *mut UINT, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEA_V1__bindgen_ty_1 { + pub pszTemplate: LPCSTR, + pub pResource: PROPSHEETPAGE_RESOURCE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEA_V1__bindgen_ty_2 { + pub hIcon: HICON, + pub pszIcon: LPCSTR, +} +pub type PROPSHEETPAGEA_V1 = _PROPSHEETPAGEA_V1; +pub type LPPROPSHEETPAGEA_V1 = *mut _PROPSHEETPAGEA_V1; +pub type LPCPROPSHEETPAGEA_V1 = *const PROPSHEETPAGEA_V1; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROPSHEETPAGEA_V2 { + pub dwSize: DWORD, + pub dwFlags: DWORD, + pub hInstance: HINSTANCE, + pub __bindgen_anon_1: _PROPSHEETPAGEA_V2__bindgen_ty_1, + pub __bindgen_anon_2: _PROPSHEETPAGEA_V2__bindgen_ty_2, + pub pszTitle: LPCSTR, + pub pfnDlgProc: DLGPROC, + pub lParam: LPARAM, + pub pfnCallback: LPFNPSPCALLBACKA, + pub pcRefParent: *mut UINT, + pub pszHeaderTitle: LPCSTR, + pub pszHeaderSubTitle: LPCSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEA_V2__bindgen_ty_1 { + pub pszTemplate: LPCSTR, + pub pResource: PROPSHEETPAGE_RESOURCE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEA_V2__bindgen_ty_2 { + pub hIcon: HICON, + pub pszIcon: LPCSTR, +} +pub type PROPSHEETPAGEA_V2 = _PROPSHEETPAGEA_V2; +pub type LPPROPSHEETPAGEA_V2 = *mut _PROPSHEETPAGEA_V2; +pub type LPCPROPSHEETPAGEA_V2 = *const PROPSHEETPAGEA_V2; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROPSHEETPAGEA_V3 { + pub dwSize: DWORD, + pub dwFlags: DWORD, + pub hInstance: HINSTANCE, + pub __bindgen_anon_1: _PROPSHEETPAGEA_V3__bindgen_ty_1, + pub __bindgen_anon_2: _PROPSHEETPAGEA_V3__bindgen_ty_2, + pub pszTitle: LPCSTR, + pub pfnDlgProc: DLGPROC, + pub lParam: LPARAM, + pub pfnCallback: LPFNPSPCALLBACKA, + pub pcRefParent: *mut UINT, + pub pszHeaderTitle: LPCSTR, + pub pszHeaderSubTitle: LPCSTR, + pub hActCtx: HANDLE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEA_V3__bindgen_ty_1 { + pub pszTemplate: LPCSTR, + pub pResource: PROPSHEETPAGE_RESOURCE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEA_V3__bindgen_ty_2 { + pub hIcon: HICON, + pub pszIcon: LPCSTR, +} +pub type PROPSHEETPAGEA_V3 = _PROPSHEETPAGEA_V3; +pub type LPPROPSHEETPAGEA_V3 = *mut _PROPSHEETPAGEA_V3; +pub type LPCPROPSHEETPAGEA_V3 = *const PROPSHEETPAGEA_V3; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROPSHEETPAGEA { + pub dwSize: DWORD, + pub dwFlags: DWORD, + pub hInstance: HINSTANCE, + pub __bindgen_anon_1: _PROPSHEETPAGEA__bindgen_ty_1, + pub __bindgen_anon_2: _PROPSHEETPAGEA__bindgen_ty_2, + pub pszTitle: LPCSTR, + pub pfnDlgProc: DLGPROC, + pub lParam: LPARAM, + pub pfnCallback: LPFNPSPCALLBACKA, + pub pcRefParent: *mut UINT, + pub pszHeaderTitle: LPCSTR, + pub pszHeaderSubTitle: LPCSTR, + pub hActCtx: HANDLE, + pub __bindgen_anon_3: _PROPSHEETPAGEA__bindgen_ty_3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEA__bindgen_ty_1 { + pub pszTemplate: LPCSTR, + pub pResource: PROPSHEETPAGE_RESOURCE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEA__bindgen_ty_2 { + pub hIcon: HICON, + pub pszIcon: LPCSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEA__bindgen_ty_3 { + pub hbmHeader: HBITMAP, + pub pszbmHeader: LPCSTR, +} +pub type PROPSHEETPAGEA_V4 = _PROPSHEETPAGEA; +pub type LPPROPSHEETPAGEA_V4 = *mut _PROPSHEETPAGEA; +pub type LPCPROPSHEETPAGEA_V4 = *const PROPSHEETPAGEA_V4; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROPSHEETPAGEW_V1 { + pub dwSize: DWORD, + pub dwFlags: DWORD, + pub hInstance: HINSTANCE, + pub __bindgen_anon_1: _PROPSHEETPAGEW_V1__bindgen_ty_1, + pub __bindgen_anon_2: _PROPSHEETPAGEW_V1__bindgen_ty_2, + pub pszTitle: LPCWSTR, + pub pfnDlgProc: DLGPROC, + pub lParam: LPARAM, + pub pfnCallback: LPFNPSPCALLBACKW, + pub pcRefParent: *mut UINT, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEW_V1__bindgen_ty_1 { + pub pszTemplate: LPCWSTR, + pub pResource: PROPSHEETPAGE_RESOURCE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEW_V1__bindgen_ty_2 { + pub hIcon: HICON, + pub pszIcon: LPCWSTR, +} +pub type PROPSHEETPAGEW_V1 = _PROPSHEETPAGEW_V1; +pub type LPPROPSHEETPAGEW_V1 = *mut _PROPSHEETPAGEW_V1; +pub type LPCPROPSHEETPAGEW_V1 = *const PROPSHEETPAGEW_V1; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROPSHEETPAGEW_V2 { + pub dwSize: DWORD, + pub dwFlags: DWORD, + pub hInstance: HINSTANCE, + pub __bindgen_anon_1: _PROPSHEETPAGEW_V2__bindgen_ty_1, + pub __bindgen_anon_2: _PROPSHEETPAGEW_V2__bindgen_ty_2, + pub pszTitle: LPCWSTR, + pub pfnDlgProc: DLGPROC, + pub lParam: LPARAM, + pub pfnCallback: LPFNPSPCALLBACKW, + pub pcRefParent: *mut UINT, + pub pszHeaderTitle: LPCWSTR, + pub pszHeaderSubTitle: LPCWSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEW_V2__bindgen_ty_1 { + pub pszTemplate: LPCWSTR, + pub pResource: PROPSHEETPAGE_RESOURCE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEW_V2__bindgen_ty_2 { + pub hIcon: HICON, + pub pszIcon: LPCWSTR, +} +pub type PROPSHEETPAGEW_V2 = _PROPSHEETPAGEW_V2; +pub type LPPROPSHEETPAGEW_V2 = *mut _PROPSHEETPAGEW_V2; +pub type LPCPROPSHEETPAGEW_V2 = *const PROPSHEETPAGEW_V2; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROPSHEETPAGEW_V3 { + pub dwSize: DWORD, + pub dwFlags: DWORD, + pub hInstance: HINSTANCE, + pub __bindgen_anon_1: _PROPSHEETPAGEW_V3__bindgen_ty_1, + pub __bindgen_anon_2: _PROPSHEETPAGEW_V3__bindgen_ty_2, + pub pszTitle: LPCWSTR, + pub pfnDlgProc: DLGPROC, + pub lParam: LPARAM, + pub pfnCallback: LPFNPSPCALLBACKW, + pub pcRefParent: *mut UINT, + pub pszHeaderTitle: LPCWSTR, + pub pszHeaderSubTitle: LPCWSTR, + pub hActCtx: HANDLE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEW_V3__bindgen_ty_1 { + pub pszTemplate: LPCWSTR, + pub pResource: PROPSHEETPAGE_RESOURCE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEW_V3__bindgen_ty_2 { + pub hIcon: HICON, + pub pszIcon: LPCWSTR, +} +pub type PROPSHEETPAGEW_V3 = _PROPSHEETPAGEW_V3; +pub type LPPROPSHEETPAGEW_V3 = *mut _PROPSHEETPAGEW_V3; +pub type LPCPROPSHEETPAGEW_V3 = *const PROPSHEETPAGEW_V3; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROPSHEETPAGEW { + pub dwSize: DWORD, + pub dwFlags: DWORD, + pub hInstance: HINSTANCE, + pub __bindgen_anon_1: _PROPSHEETPAGEW__bindgen_ty_1, + pub __bindgen_anon_2: _PROPSHEETPAGEW__bindgen_ty_2, + pub pszTitle: LPCWSTR, + pub pfnDlgProc: DLGPROC, + pub lParam: LPARAM, + pub pfnCallback: LPFNPSPCALLBACKW, + pub pcRefParent: *mut UINT, + pub pszHeaderTitle: LPCWSTR, + pub pszHeaderSubTitle: LPCWSTR, + pub hActCtx: HANDLE, + pub __bindgen_anon_3: _PROPSHEETPAGEW__bindgen_ty_3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEW__bindgen_ty_1 { + pub pszTemplate: LPCWSTR, + pub pResource: PROPSHEETPAGE_RESOURCE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEW__bindgen_ty_2 { + pub hIcon: HICON, + pub pszIcon: LPCWSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETPAGEW__bindgen_ty_3 { + pub hbmHeader: HBITMAP, + pub pszbmHeader: LPCWSTR, +} +pub type PROPSHEETPAGEW_V4 = _PROPSHEETPAGEW; +pub type LPPROPSHEETPAGEW_V4 = *mut _PROPSHEETPAGEW; +pub type LPCPROPSHEETPAGEW_V4 = *const PROPSHEETPAGEW_V4; +pub type PROPSHEETPAGEA_LATEST = PROPSHEETPAGEA_V4; +pub type PROPSHEETPAGEW_LATEST = PROPSHEETPAGEW_V4; +pub type LPPROPSHEETPAGEA_LATEST = LPPROPSHEETPAGEA_V4; +pub type LPPROPSHEETPAGEW_LATEST = LPPROPSHEETPAGEW_V4; +pub type LPCPROPSHEETPAGEA_LATEST = LPCPROPSHEETPAGEA_V4; +pub type LPCPROPSHEETPAGEW_LATEST = LPCPROPSHEETPAGEW_V4; +pub type PROPSHEETPAGEA = PROPSHEETPAGEA_V4; +pub type PROPSHEETPAGEW = PROPSHEETPAGEW_V4; +pub type LPPROPSHEETPAGEA = LPPROPSHEETPAGEA_V4; +pub type LPPROPSHEETPAGEW = LPPROPSHEETPAGEW_V4; +pub type LPCPROPSHEETPAGEA = LPCPROPSHEETPAGEA_V4; +pub type LPCPROPSHEETPAGEW = LPCPROPSHEETPAGEW_V4; +pub type PFNPROPSHEETCALLBACK = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: LPARAM) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROPSHEETHEADERA_V1 { + pub dwSize: DWORD, + pub dwFlags: DWORD, + pub hwndParent: HWND, + pub hInstance: HINSTANCE, + pub __bindgen_anon_1: _PROPSHEETHEADERA_V1__bindgen_ty_1, + pub pszCaption: LPCSTR, + pub nPages: UINT, + pub __bindgen_anon_2: _PROPSHEETHEADERA_V1__bindgen_ty_2, + pub __bindgen_anon_3: _PROPSHEETHEADERA_V1__bindgen_ty_3, + pub pfnCallback: PFNPROPSHEETCALLBACK, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERA_V1__bindgen_ty_1 { + pub hIcon: HICON, + pub pszIcon: LPCSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERA_V1__bindgen_ty_2 { + pub nStartPage: UINT, + pub pStartPage: LPCSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERA_V1__bindgen_ty_3 { + pub ppsp: LPCPROPSHEETPAGEA, + pub phpage: *mut HPROPSHEETPAGE, +} +pub type PROPSHEETHEADERA_V1 = _PROPSHEETHEADERA_V1; +pub type LPPROPSHEETHEADERA_V1 = *mut _PROPSHEETHEADERA_V1; +pub type LPCPROPSHEETHEADERA_V1 = *const PROPSHEETHEADERA_V1; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROPSHEETHEADERA_V2 { + pub dwSize: DWORD, + pub dwFlags: DWORD, + pub hwndParent: HWND, + pub hInstance: HINSTANCE, + pub __bindgen_anon_1: _PROPSHEETHEADERA_V2__bindgen_ty_1, + pub pszCaption: LPCSTR, + pub nPages: UINT, + pub __bindgen_anon_2: _PROPSHEETHEADERA_V2__bindgen_ty_2, + pub __bindgen_anon_3: _PROPSHEETHEADERA_V2__bindgen_ty_3, + pub pfnCallback: PFNPROPSHEETCALLBACK, + pub __bindgen_anon_4: _PROPSHEETHEADERA_V2__bindgen_ty_4, + pub hplWatermark: HPALETTE, + pub __bindgen_anon_5: _PROPSHEETHEADERA_V2__bindgen_ty_5, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERA_V2__bindgen_ty_1 { + pub hIcon: HICON, + pub pszIcon: LPCSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERA_V2__bindgen_ty_2 { + pub nStartPage: UINT, + pub pStartPage: LPCSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERA_V2__bindgen_ty_3 { + pub ppsp: LPCPROPSHEETPAGEA, + pub phpage: *mut HPROPSHEETPAGE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERA_V2__bindgen_ty_4 { + pub hbmWatermark: HBITMAP, + pub pszbmWatermark: LPCSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERA_V2__bindgen_ty_5 { + pub hbmHeader: HBITMAP, + pub pszbmHeader: LPCSTR, +} +pub type PROPSHEETHEADERA_V2 = _PROPSHEETHEADERA_V2; +pub type LPPROPSHEETHEADERA_V2 = *mut _PROPSHEETHEADERA_V2; +pub type LPCPROPSHEETHEADERA_V2 = *const PROPSHEETHEADERA_V2; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROPSHEETHEADERW_V1 { + pub dwSize: DWORD, + pub dwFlags: DWORD, + pub hwndParent: HWND, + pub hInstance: HINSTANCE, + pub __bindgen_anon_1: _PROPSHEETHEADERW_V1__bindgen_ty_1, + pub pszCaption: LPCWSTR, + pub nPages: UINT, + pub __bindgen_anon_2: _PROPSHEETHEADERW_V1__bindgen_ty_2, + pub __bindgen_anon_3: _PROPSHEETHEADERW_V1__bindgen_ty_3, + pub pfnCallback: PFNPROPSHEETCALLBACK, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERW_V1__bindgen_ty_1 { + pub hIcon: HICON, + pub pszIcon: LPCWSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERW_V1__bindgen_ty_2 { + pub nStartPage: UINT, + pub pStartPage: LPCWSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERW_V1__bindgen_ty_3 { + pub ppsp: LPCPROPSHEETPAGEW, + pub phpage: *mut HPROPSHEETPAGE, +} +pub type PROPSHEETHEADERW_V1 = _PROPSHEETHEADERW_V1; +pub type LPPROPSHEETHEADERW_V1 = *mut _PROPSHEETHEADERW_V1; +pub type LPCPROPSHEETHEADERW_V1 = *const PROPSHEETHEADERW_V1; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PROPSHEETHEADERW_V2 { + pub dwSize: DWORD, + pub dwFlags: DWORD, + pub hwndParent: HWND, + pub hInstance: HINSTANCE, + pub __bindgen_anon_1: _PROPSHEETHEADERW_V2__bindgen_ty_1, + pub pszCaption: LPCWSTR, + pub nPages: UINT, + pub __bindgen_anon_2: _PROPSHEETHEADERW_V2__bindgen_ty_2, + pub __bindgen_anon_3: _PROPSHEETHEADERW_V2__bindgen_ty_3, + pub pfnCallback: PFNPROPSHEETCALLBACK, + pub __bindgen_anon_4: _PROPSHEETHEADERW_V2__bindgen_ty_4, + pub hplWatermark: HPALETTE, + pub __bindgen_anon_5: _PROPSHEETHEADERW_V2__bindgen_ty_5, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERW_V2__bindgen_ty_1 { + pub hIcon: HICON, + pub pszIcon: LPCWSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERW_V2__bindgen_ty_2 { + pub nStartPage: UINT, + pub pStartPage: LPCWSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERW_V2__bindgen_ty_3 { + pub ppsp: LPCPROPSHEETPAGEW, + pub phpage: *mut HPROPSHEETPAGE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERW_V2__bindgen_ty_4 { + pub hbmWatermark: HBITMAP, + pub pszbmWatermark: LPCWSTR, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PROPSHEETHEADERW_V2__bindgen_ty_5 { + pub hbmHeader: HBITMAP, + pub pszbmHeader: LPCWSTR, +} +pub type PROPSHEETHEADERW_V2 = _PROPSHEETHEADERW_V2; +pub type LPPROPSHEETHEADERW_V2 = *mut _PROPSHEETHEADERW_V2; +pub type LPCPROPSHEETHEADERW_V2 = *const PROPSHEETHEADERW_V2; +pub type PROPSHEETHEADERA = PROPSHEETHEADERA_V2; +pub type PROPSHEETHEADERW = PROPSHEETHEADERW_V2; +pub type LPPROPSHEETHEADERA = LPPROPSHEETHEADERA_V2; +pub type LPPROPSHEETHEADERW = LPPROPSHEETHEADERW_V2; +pub type LPCPROPSHEETHEADERA = LPCPROPSHEETHEADERA_V2; +pub type LPCPROPSHEETHEADERW = LPCPROPSHEETHEADERW_V2; +extern "C" { + pub fn CreatePropertySheetPageA(constPropSheetPagePointer: LPCPROPSHEETPAGEA) + -> HPROPSHEETPAGE; +} +extern "C" { + pub fn CreatePropertySheetPageW(constPropSheetPagePointer: LPCPROPSHEETPAGEW) + -> HPROPSHEETPAGE; +} +extern "C" { + pub fn DestroyPropertySheetPage(arg1: HPROPSHEETPAGE) -> BOOL; +} +extern "C" { + pub fn PropertySheetA(arg1: LPCPROPSHEETHEADERA) -> INT_PTR; +} +extern "C" { + pub fn PropertySheetW(arg1: LPCPROPSHEETHEADERW) -> INT_PTR; +} +pub type LPFNADDPROPSHEETPAGE = + ::std::option::Option BOOL>; +pub type LPFNADDPROPSHEETPAGES = ::std::option::Option< + unsafe extern "C" fn(arg1: LPVOID, arg2: LPFNADDPROPSHEETPAGE, arg3: LPARAM) -> BOOL, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PSHNOTIFY { + pub hdr: NMHDR, + pub lParam: LPARAM, +} +pub type PSHNOTIFY = _PSHNOTIFY; +pub type LPPSHNOTIFY = *mut _PSHNOTIFY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_1A { + pub Flags: DWORD, + pub pDescription: LPSTR, + pub pName: LPSTR, + pub pComment: LPSTR, +} +pub type PRINTER_INFO_1A = _PRINTER_INFO_1A; +pub type PPRINTER_INFO_1A = *mut _PRINTER_INFO_1A; +pub type LPPRINTER_INFO_1A = *mut _PRINTER_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_1W { + pub Flags: DWORD, + pub pDescription: LPWSTR, + pub pName: LPWSTR, + pub pComment: LPWSTR, +} +pub type PRINTER_INFO_1W = _PRINTER_INFO_1W; +pub type PPRINTER_INFO_1W = *mut _PRINTER_INFO_1W; +pub type LPPRINTER_INFO_1W = *mut _PRINTER_INFO_1W; +pub type PRINTER_INFO_1 = PRINTER_INFO_1A; +pub type PPRINTER_INFO_1 = PPRINTER_INFO_1A; +pub type LPPRINTER_INFO_1 = LPPRINTER_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_2A { + pub pServerName: LPSTR, + pub pPrinterName: LPSTR, + pub pShareName: LPSTR, + pub pPortName: LPSTR, + pub pDriverName: LPSTR, + pub pComment: LPSTR, + pub pLocation: LPSTR, + pub pDevMode: LPDEVMODEA, + pub pSepFile: LPSTR, + pub pPrintProcessor: LPSTR, + pub pDatatype: LPSTR, + pub pParameters: LPSTR, + pub pSecurityDescriptor: PSECURITY_DESCRIPTOR, + pub Attributes: DWORD, + pub Priority: DWORD, + pub DefaultPriority: DWORD, + pub StartTime: DWORD, + pub UntilTime: DWORD, + pub Status: DWORD, + pub cJobs: DWORD, + pub AveragePPM: DWORD, +} +pub type PRINTER_INFO_2A = _PRINTER_INFO_2A; +pub type PPRINTER_INFO_2A = *mut _PRINTER_INFO_2A; +pub type LPPRINTER_INFO_2A = *mut _PRINTER_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_2W { + pub pServerName: LPWSTR, + pub pPrinterName: LPWSTR, + pub pShareName: LPWSTR, + pub pPortName: LPWSTR, + pub pDriverName: LPWSTR, + pub pComment: LPWSTR, + pub pLocation: LPWSTR, + pub pDevMode: LPDEVMODEW, + pub pSepFile: LPWSTR, + pub pPrintProcessor: LPWSTR, + pub pDatatype: LPWSTR, + pub pParameters: LPWSTR, + pub pSecurityDescriptor: PSECURITY_DESCRIPTOR, + pub Attributes: DWORD, + pub Priority: DWORD, + pub DefaultPriority: DWORD, + pub StartTime: DWORD, + pub UntilTime: DWORD, + pub Status: DWORD, + pub cJobs: DWORD, + pub AveragePPM: DWORD, +} +pub type PRINTER_INFO_2W = _PRINTER_INFO_2W; +pub type PPRINTER_INFO_2W = *mut _PRINTER_INFO_2W; +pub type LPPRINTER_INFO_2W = *mut _PRINTER_INFO_2W; +pub type PRINTER_INFO_2 = PRINTER_INFO_2A; +pub type PPRINTER_INFO_2 = PPRINTER_INFO_2A; +pub type LPPRINTER_INFO_2 = LPPRINTER_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_3 { + pub pSecurityDescriptor: PSECURITY_DESCRIPTOR, +} +pub type PRINTER_INFO_3 = _PRINTER_INFO_3; +pub type PPRINTER_INFO_3 = *mut _PRINTER_INFO_3; +pub type LPPRINTER_INFO_3 = *mut _PRINTER_INFO_3; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_4A { + pub pPrinterName: LPSTR, + pub pServerName: LPSTR, + pub Attributes: DWORD, +} +pub type PRINTER_INFO_4A = _PRINTER_INFO_4A; +pub type PPRINTER_INFO_4A = *mut _PRINTER_INFO_4A; +pub type LPPRINTER_INFO_4A = *mut _PRINTER_INFO_4A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_4W { + pub pPrinterName: LPWSTR, + pub pServerName: LPWSTR, + pub Attributes: DWORD, +} +pub type PRINTER_INFO_4W = _PRINTER_INFO_4W; +pub type PPRINTER_INFO_4W = *mut _PRINTER_INFO_4W; +pub type LPPRINTER_INFO_4W = *mut _PRINTER_INFO_4W; +pub type PRINTER_INFO_4 = PRINTER_INFO_4A; +pub type PPRINTER_INFO_4 = PPRINTER_INFO_4A; +pub type LPPRINTER_INFO_4 = LPPRINTER_INFO_4A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_5A { + pub pPrinterName: LPSTR, + pub pPortName: LPSTR, + pub Attributes: DWORD, + pub DeviceNotSelectedTimeout: DWORD, + pub TransmissionRetryTimeout: DWORD, +} +pub type PRINTER_INFO_5A = _PRINTER_INFO_5A; +pub type PPRINTER_INFO_5A = *mut _PRINTER_INFO_5A; +pub type LPPRINTER_INFO_5A = *mut _PRINTER_INFO_5A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_5W { + pub pPrinterName: LPWSTR, + pub pPortName: LPWSTR, + pub Attributes: DWORD, + pub DeviceNotSelectedTimeout: DWORD, + pub TransmissionRetryTimeout: DWORD, +} +pub type PRINTER_INFO_5W = _PRINTER_INFO_5W; +pub type PPRINTER_INFO_5W = *mut _PRINTER_INFO_5W; +pub type LPPRINTER_INFO_5W = *mut _PRINTER_INFO_5W; +pub type PRINTER_INFO_5 = PRINTER_INFO_5A; +pub type PPRINTER_INFO_5 = PPRINTER_INFO_5A; +pub type LPPRINTER_INFO_5 = LPPRINTER_INFO_5A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_6 { + pub dwStatus: DWORD, +} +pub type PRINTER_INFO_6 = _PRINTER_INFO_6; +pub type PPRINTER_INFO_6 = *mut _PRINTER_INFO_6; +pub type LPPRINTER_INFO_6 = *mut _PRINTER_INFO_6; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_7A { + pub pszObjectGUID: LPSTR, + pub dwAction: DWORD, +} +pub type PRINTER_INFO_7A = _PRINTER_INFO_7A; +pub type PPRINTER_INFO_7A = *mut _PRINTER_INFO_7A; +pub type LPPRINTER_INFO_7A = *mut _PRINTER_INFO_7A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_7W { + pub pszObjectGUID: LPWSTR, + pub dwAction: DWORD, +} +pub type PRINTER_INFO_7W = _PRINTER_INFO_7W; +pub type PPRINTER_INFO_7W = *mut _PRINTER_INFO_7W; +pub type LPPRINTER_INFO_7W = *mut _PRINTER_INFO_7W; +pub type PRINTER_INFO_7 = PRINTER_INFO_7A; +pub type PPRINTER_INFO_7 = PPRINTER_INFO_7A; +pub type LPPRINTER_INFO_7 = LPPRINTER_INFO_7A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_8A { + pub pDevMode: LPDEVMODEA, +} +pub type PRINTER_INFO_8A = _PRINTER_INFO_8A; +pub type PPRINTER_INFO_8A = *mut _PRINTER_INFO_8A; +pub type LPPRINTER_INFO_8A = *mut _PRINTER_INFO_8A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_8W { + pub pDevMode: LPDEVMODEW, +} +pub type PRINTER_INFO_8W = _PRINTER_INFO_8W; +pub type PPRINTER_INFO_8W = *mut _PRINTER_INFO_8W; +pub type LPPRINTER_INFO_8W = *mut _PRINTER_INFO_8W; +pub type PRINTER_INFO_8 = PRINTER_INFO_8A; +pub type PPRINTER_INFO_8 = PPRINTER_INFO_8A; +pub type LPPRINTER_INFO_8 = LPPRINTER_INFO_8A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_9A { + pub pDevMode: LPDEVMODEA, +} +pub type PRINTER_INFO_9A = _PRINTER_INFO_9A; +pub type PPRINTER_INFO_9A = *mut _PRINTER_INFO_9A; +pub type LPPRINTER_INFO_9A = *mut _PRINTER_INFO_9A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_INFO_9W { + pub pDevMode: LPDEVMODEW, +} +pub type PRINTER_INFO_9W = _PRINTER_INFO_9W; +pub type PPRINTER_INFO_9W = *mut _PRINTER_INFO_9W; +pub type LPPRINTER_INFO_9W = *mut _PRINTER_INFO_9W; +pub type PRINTER_INFO_9 = PRINTER_INFO_9A; +pub type PPRINTER_INFO_9 = PPRINTER_INFO_9A; +pub type LPPRINTER_INFO_9 = LPPRINTER_INFO_9A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOB_INFO_1A { + pub JobId: DWORD, + pub pPrinterName: LPSTR, + pub pMachineName: LPSTR, + pub pUserName: LPSTR, + pub pDocument: LPSTR, + pub pDatatype: LPSTR, + pub pStatus: LPSTR, + pub Status: DWORD, + pub Priority: DWORD, + pub Position: DWORD, + pub TotalPages: DWORD, + pub PagesPrinted: DWORD, + pub Submitted: SYSTEMTIME, +} +pub type JOB_INFO_1A = _JOB_INFO_1A; +pub type PJOB_INFO_1A = *mut _JOB_INFO_1A; +pub type LPJOB_INFO_1A = *mut _JOB_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOB_INFO_1W { + pub JobId: DWORD, + pub pPrinterName: LPWSTR, + pub pMachineName: LPWSTR, + pub pUserName: LPWSTR, + pub pDocument: LPWSTR, + pub pDatatype: LPWSTR, + pub pStatus: LPWSTR, + pub Status: DWORD, + pub Priority: DWORD, + pub Position: DWORD, + pub TotalPages: DWORD, + pub PagesPrinted: DWORD, + pub Submitted: SYSTEMTIME, +} +pub type JOB_INFO_1W = _JOB_INFO_1W; +pub type PJOB_INFO_1W = *mut _JOB_INFO_1W; +pub type LPJOB_INFO_1W = *mut _JOB_INFO_1W; +pub type JOB_INFO_1 = JOB_INFO_1A; +pub type PJOB_INFO_1 = PJOB_INFO_1A; +pub type LPJOB_INFO_1 = LPJOB_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOB_INFO_2A { + pub JobId: DWORD, + pub pPrinterName: LPSTR, + pub pMachineName: LPSTR, + pub pUserName: LPSTR, + pub pDocument: LPSTR, + pub pNotifyName: LPSTR, + pub pDatatype: LPSTR, + pub pPrintProcessor: LPSTR, + pub pParameters: LPSTR, + pub pDriverName: LPSTR, + pub pDevMode: LPDEVMODEA, + pub pStatus: LPSTR, + pub pSecurityDescriptor: PSECURITY_DESCRIPTOR, + pub Status: DWORD, + pub Priority: DWORD, + pub Position: DWORD, + pub StartTime: DWORD, + pub UntilTime: DWORD, + pub TotalPages: DWORD, + pub Size: DWORD, + pub Submitted: SYSTEMTIME, + pub Time: DWORD, + pub PagesPrinted: DWORD, +} +pub type JOB_INFO_2A = _JOB_INFO_2A; +pub type PJOB_INFO_2A = *mut _JOB_INFO_2A; +pub type LPJOB_INFO_2A = *mut _JOB_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOB_INFO_2W { + pub JobId: DWORD, + pub pPrinterName: LPWSTR, + pub pMachineName: LPWSTR, + pub pUserName: LPWSTR, + pub pDocument: LPWSTR, + pub pNotifyName: LPWSTR, + pub pDatatype: LPWSTR, + pub pPrintProcessor: LPWSTR, + pub pParameters: LPWSTR, + pub pDriverName: LPWSTR, + pub pDevMode: LPDEVMODEW, + pub pStatus: LPWSTR, + pub pSecurityDescriptor: PSECURITY_DESCRIPTOR, + pub Status: DWORD, + pub Priority: DWORD, + pub Position: DWORD, + pub StartTime: DWORD, + pub UntilTime: DWORD, + pub TotalPages: DWORD, + pub Size: DWORD, + pub Submitted: SYSTEMTIME, + pub Time: DWORD, + pub PagesPrinted: DWORD, +} +pub type JOB_INFO_2W = _JOB_INFO_2W; +pub type PJOB_INFO_2W = *mut _JOB_INFO_2W; +pub type LPJOB_INFO_2W = *mut _JOB_INFO_2W; +pub type JOB_INFO_2 = JOB_INFO_2A; +pub type PJOB_INFO_2 = PJOB_INFO_2A; +pub type LPJOB_INFO_2 = LPJOB_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOB_INFO_3 { + pub JobId: DWORD, + pub NextJobId: DWORD, + pub Reserved: DWORD, +} +pub type JOB_INFO_3 = _JOB_INFO_3; +pub type PJOB_INFO_3 = *mut _JOB_INFO_3; +pub type LPJOB_INFO_3 = *mut _JOB_INFO_3; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOB_INFO_4A { + pub JobId: DWORD, + pub pPrinterName: LPSTR, + pub pMachineName: LPSTR, + pub pUserName: LPSTR, + pub pDocument: LPSTR, + pub pNotifyName: LPSTR, + pub pDatatype: LPSTR, + pub pPrintProcessor: LPSTR, + pub pParameters: LPSTR, + pub pDriverName: LPSTR, + pub pDevMode: LPDEVMODEA, + pub pStatus: LPSTR, + pub pSecurityDescriptor: PSECURITY_DESCRIPTOR, + pub Status: DWORD, + pub Priority: DWORD, + pub Position: DWORD, + pub StartTime: DWORD, + pub UntilTime: DWORD, + pub TotalPages: DWORD, + pub Size: DWORD, + pub Submitted: SYSTEMTIME, + pub Time: DWORD, + pub PagesPrinted: DWORD, + pub SizeHigh: LONG, +} +pub type JOB_INFO_4A = _JOB_INFO_4A; +pub type PJOB_INFO_4A = *mut _JOB_INFO_4A; +pub type LPJOB_INFO_4A = *mut _JOB_INFO_4A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _JOB_INFO_4W { + pub JobId: DWORD, + pub pPrinterName: LPWSTR, + pub pMachineName: LPWSTR, + pub pUserName: LPWSTR, + pub pDocument: LPWSTR, + pub pNotifyName: LPWSTR, + pub pDatatype: LPWSTR, + pub pPrintProcessor: LPWSTR, + pub pParameters: LPWSTR, + pub pDriverName: LPWSTR, + pub pDevMode: LPDEVMODEW, + pub pStatus: LPWSTR, + pub pSecurityDescriptor: PSECURITY_DESCRIPTOR, + pub Status: DWORD, + pub Priority: DWORD, + pub Position: DWORD, + pub StartTime: DWORD, + pub UntilTime: DWORD, + pub TotalPages: DWORD, + pub Size: DWORD, + pub Submitted: SYSTEMTIME, + pub Time: DWORD, + pub PagesPrinted: DWORD, + pub SizeHigh: LONG, +} +pub type JOB_INFO_4W = _JOB_INFO_4W; +pub type PJOB_INFO_4W = *mut _JOB_INFO_4W; +pub type LPJOB_INFO_4W = *mut _JOB_INFO_4W; +pub type JOB_INFO_4 = JOB_INFO_4A; +pub type PJOB_INFO_4 = PJOB_INFO_4A; +pub type LPJOB_INFO_4 = LPJOB_INFO_4A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ADDJOB_INFO_1A { + pub Path: LPSTR, + pub JobId: DWORD, +} +pub type ADDJOB_INFO_1A = _ADDJOB_INFO_1A; +pub type PADDJOB_INFO_1A = *mut _ADDJOB_INFO_1A; +pub type LPADDJOB_INFO_1A = *mut _ADDJOB_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ADDJOB_INFO_1W { + pub Path: LPWSTR, + pub JobId: DWORD, +} +pub type ADDJOB_INFO_1W = _ADDJOB_INFO_1W; +pub type PADDJOB_INFO_1W = *mut _ADDJOB_INFO_1W; +pub type LPADDJOB_INFO_1W = *mut _ADDJOB_INFO_1W; +pub type ADDJOB_INFO_1 = ADDJOB_INFO_1A; +pub type PADDJOB_INFO_1 = PADDJOB_INFO_1A; +pub type LPADDJOB_INFO_1 = LPADDJOB_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVER_INFO_1A { + pub pName: LPSTR, +} +pub type DRIVER_INFO_1A = _DRIVER_INFO_1A; +pub type PDRIVER_INFO_1A = *mut _DRIVER_INFO_1A; +pub type LPDRIVER_INFO_1A = *mut _DRIVER_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVER_INFO_1W { + pub pName: LPWSTR, +} +pub type DRIVER_INFO_1W = _DRIVER_INFO_1W; +pub type PDRIVER_INFO_1W = *mut _DRIVER_INFO_1W; +pub type LPDRIVER_INFO_1W = *mut _DRIVER_INFO_1W; +pub type DRIVER_INFO_1 = DRIVER_INFO_1A; +pub type PDRIVER_INFO_1 = PDRIVER_INFO_1A; +pub type LPDRIVER_INFO_1 = LPDRIVER_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVER_INFO_2A { + pub cVersion: DWORD, + pub pName: LPSTR, + pub pEnvironment: LPSTR, + pub pDriverPath: LPSTR, + pub pDataFile: LPSTR, + pub pConfigFile: LPSTR, +} +pub type DRIVER_INFO_2A = _DRIVER_INFO_2A; +pub type PDRIVER_INFO_2A = *mut _DRIVER_INFO_2A; +pub type LPDRIVER_INFO_2A = *mut _DRIVER_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVER_INFO_2W { + pub cVersion: DWORD, + pub pName: LPWSTR, + pub pEnvironment: LPWSTR, + pub pDriverPath: LPWSTR, + pub pDataFile: LPWSTR, + pub pConfigFile: LPWSTR, +} +pub type DRIVER_INFO_2W = _DRIVER_INFO_2W; +pub type PDRIVER_INFO_2W = *mut _DRIVER_INFO_2W; +pub type LPDRIVER_INFO_2W = *mut _DRIVER_INFO_2W; +pub type DRIVER_INFO_2 = DRIVER_INFO_2A; +pub type PDRIVER_INFO_2 = PDRIVER_INFO_2A; +pub type LPDRIVER_INFO_2 = LPDRIVER_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVER_INFO_3A { + pub cVersion: DWORD, + pub pName: LPSTR, + pub pEnvironment: LPSTR, + pub pDriverPath: LPSTR, + pub pDataFile: LPSTR, + pub pConfigFile: LPSTR, + pub pHelpFile: LPSTR, + pub pDependentFiles: LPSTR, + pub pMonitorName: LPSTR, + pub pDefaultDataType: LPSTR, +} +pub type DRIVER_INFO_3A = _DRIVER_INFO_3A; +pub type PDRIVER_INFO_3A = *mut _DRIVER_INFO_3A; +pub type LPDRIVER_INFO_3A = *mut _DRIVER_INFO_3A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVER_INFO_3W { + pub cVersion: DWORD, + pub pName: LPWSTR, + pub pEnvironment: LPWSTR, + pub pDriverPath: LPWSTR, + pub pDataFile: LPWSTR, + pub pConfigFile: LPWSTR, + pub pHelpFile: LPWSTR, + pub pDependentFiles: LPWSTR, + pub pMonitorName: LPWSTR, + pub pDefaultDataType: LPWSTR, +} +pub type DRIVER_INFO_3W = _DRIVER_INFO_3W; +pub type PDRIVER_INFO_3W = *mut _DRIVER_INFO_3W; +pub type LPDRIVER_INFO_3W = *mut _DRIVER_INFO_3W; +pub type DRIVER_INFO_3 = DRIVER_INFO_3A; +pub type PDRIVER_INFO_3 = PDRIVER_INFO_3A; +pub type LPDRIVER_INFO_3 = LPDRIVER_INFO_3A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVER_INFO_4A { + pub cVersion: DWORD, + pub pName: LPSTR, + pub pEnvironment: LPSTR, + pub pDriverPath: LPSTR, + pub pDataFile: LPSTR, + pub pConfigFile: LPSTR, + pub pHelpFile: LPSTR, + pub pDependentFiles: LPSTR, + pub pMonitorName: LPSTR, + pub pDefaultDataType: LPSTR, + pub pszzPreviousNames: LPSTR, +} +pub type DRIVER_INFO_4A = _DRIVER_INFO_4A; +pub type PDRIVER_INFO_4A = *mut _DRIVER_INFO_4A; +pub type LPDRIVER_INFO_4A = *mut _DRIVER_INFO_4A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVER_INFO_4W { + pub cVersion: DWORD, + pub pName: LPWSTR, + pub pEnvironment: LPWSTR, + pub pDriverPath: LPWSTR, + pub pDataFile: LPWSTR, + pub pConfigFile: LPWSTR, + pub pHelpFile: LPWSTR, + pub pDependentFiles: LPWSTR, + pub pMonitorName: LPWSTR, + pub pDefaultDataType: LPWSTR, + pub pszzPreviousNames: LPWSTR, +} +pub type DRIVER_INFO_4W = _DRIVER_INFO_4W; +pub type PDRIVER_INFO_4W = *mut _DRIVER_INFO_4W; +pub type LPDRIVER_INFO_4W = *mut _DRIVER_INFO_4W; +pub type DRIVER_INFO_4 = DRIVER_INFO_4A; +pub type PDRIVER_INFO_4 = PDRIVER_INFO_4A; +pub type LPDRIVER_INFO_4 = LPDRIVER_INFO_4A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVER_INFO_5A { + pub cVersion: DWORD, + pub pName: LPSTR, + pub pEnvironment: LPSTR, + pub pDriverPath: LPSTR, + pub pDataFile: LPSTR, + pub pConfigFile: LPSTR, + pub dwDriverAttributes: DWORD, + pub dwConfigVersion: DWORD, + pub dwDriverVersion: DWORD, +} +pub type DRIVER_INFO_5A = _DRIVER_INFO_5A; +pub type PDRIVER_INFO_5A = *mut _DRIVER_INFO_5A; +pub type LPDRIVER_INFO_5A = *mut _DRIVER_INFO_5A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVER_INFO_5W { + pub cVersion: DWORD, + pub pName: LPWSTR, + pub pEnvironment: LPWSTR, + pub pDriverPath: LPWSTR, + pub pDataFile: LPWSTR, + pub pConfigFile: LPWSTR, + pub dwDriverAttributes: DWORD, + pub dwConfigVersion: DWORD, + pub dwDriverVersion: DWORD, +} +pub type DRIVER_INFO_5W = _DRIVER_INFO_5W; +pub type PDRIVER_INFO_5W = *mut _DRIVER_INFO_5W; +pub type LPDRIVER_INFO_5W = *mut _DRIVER_INFO_5W; +pub type DRIVER_INFO_5 = DRIVER_INFO_5A; +pub type PDRIVER_INFO_5 = PDRIVER_INFO_5A; +pub type LPDRIVER_INFO_5 = LPDRIVER_INFO_5A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVER_INFO_6A { + pub cVersion: DWORD, + pub pName: LPSTR, + pub pEnvironment: LPSTR, + pub pDriverPath: LPSTR, + pub pDataFile: LPSTR, + pub pConfigFile: LPSTR, + pub pHelpFile: LPSTR, + pub pDependentFiles: LPSTR, + pub pMonitorName: LPSTR, + pub pDefaultDataType: LPSTR, + pub pszzPreviousNames: LPSTR, + pub ftDriverDate: FILETIME, + pub dwlDriverVersion: DWORDLONG, + pub pszMfgName: LPSTR, + pub pszOEMUrl: LPSTR, + pub pszHardwareID: LPSTR, + pub pszProvider: LPSTR, +} +pub type DRIVER_INFO_6A = _DRIVER_INFO_6A; +pub type PDRIVER_INFO_6A = *mut _DRIVER_INFO_6A; +pub type LPDRIVER_INFO_6A = *mut _DRIVER_INFO_6A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVER_INFO_6W { + pub cVersion: DWORD, + pub pName: LPWSTR, + pub pEnvironment: LPWSTR, + pub pDriverPath: LPWSTR, + pub pDataFile: LPWSTR, + pub pConfigFile: LPWSTR, + pub pHelpFile: LPWSTR, + pub pDependentFiles: LPWSTR, + pub pMonitorName: LPWSTR, + pub pDefaultDataType: LPWSTR, + pub pszzPreviousNames: LPWSTR, + pub ftDriverDate: FILETIME, + pub dwlDriverVersion: DWORDLONG, + pub pszMfgName: LPWSTR, + pub pszOEMUrl: LPWSTR, + pub pszHardwareID: LPWSTR, + pub pszProvider: LPWSTR, +} +pub type DRIVER_INFO_6W = _DRIVER_INFO_6W; +pub type PDRIVER_INFO_6W = *mut _DRIVER_INFO_6W; +pub type LPDRIVER_INFO_6W = *mut _DRIVER_INFO_6W; +pub type DRIVER_INFO_6 = DRIVER_INFO_6A; +pub type PDRIVER_INFO_6 = PDRIVER_INFO_6A; +pub type LPDRIVER_INFO_6 = LPDRIVER_INFO_6A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVER_INFO_8A { + pub cVersion: DWORD, + pub pName: LPSTR, + pub pEnvironment: LPSTR, + pub pDriverPath: LPSTR, + pub pDataFile: LPSTR, + pub pConfigFile: LPSTR, + pub pHelpFile: LPSTR, + pub pDependentFiles: LPSTR, + pub pMonitorName: LPSTR, + pub pDefaultDataType: LPSTR, + pub pszzPreviousNames: LPSTR, + pub ftDriverDate: FILETIME, + pub dwlDriverVersion: DWORDLONG, + pub pszMfgName: LPSTR, + pub pszOEMUrl: LPSTR, + pub pszHardwareID: LPSTR, + pub pszProvider: LPSTR, + pub pszPrintProcessor: LPSTR, + pub pszVendorSetup: LPSTR, + pub pszzColorProfiles: LPSTR, + pub pszInfPath: LPSTR, + pub dwPrinterDriverAttributes: DWORD, + pub pszzCoreDriverDependencies: LPSTR, + pub ftMinInboxDriverVerDate: FILETIME, + pub dwlMinInboxDriverVerVersion: DWORDLONG, +} +pub type DRIVER_INFO_8A = _DRIVER_INFO_8A; +pub type PDRIVER_INFO_8A = *mut _DRIVER_INFO_8A; +pub type LPDRIVER_INFO_8A = *mut _DRIVER_INFO_8A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DRIVER_INFO_8W { + pub cVersion: DWORD, + pub pName: LPWSTR, + pub pEnvironment: LPWSTR, + pub pDriverPath: LPWSTR, + pub pDataFile: LPWSTR, + pub pConfigFile: LPWSTR, + pub pHelpFile: LPWSTR, + pub pDependentFiles: LPWSTR, + pub pMonitorName: LPWSTR, + pub pDefaultDataType: LPWSTR, + pub pszzPreviousNames: LPWSTR, + pub ftDriverDate: FILETIME, + pub dwlDriverVersion: DWORDLONG, + pub pszMfgName: LPWSTR, + pub pszOEMUrl: LPWSTR, + pub pszHardwareID: LPWSTR, + pub pszProvider: LPWSTR, + pub pszPrintProcessor: LPWSTR, + pub pszVendorSetup: LPWSTR, + pub pszzColorProfiles: LPWSTR, + pub pszInfPath: LPWSTR, + pub dwPrinterDriverAttributes: DWORD, + pub pszzCoreDriverDependencies: LPWSTR, + pub ftMinInboxDriverVerDate: FILETIME, + pub dwlMinInboxDriverVerVersion: DWORDLONG, +} +pub type DRIVER_INFO_8W = _DRIVER_INFO_8W; +pub type PDRIVER_INFO_8W = *mut _DRIVER_INFO_8W; +pub type LPDRIVER_INFO_8W = *mut _DRIVER_INFO_8W; +pub type DRIVER_INFO_8 = DRIVER_INFO_8A; +pub type PDRIVER_INFO_8 = PDRIVER_INFO_8A; +pub type LPDRIVER_INFO_8 = LPDRIVER_INFO_8A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DOC_INFO_1A { + pub pDocName: LPSTR, + pub pOutputFile: LPSTR, + pub pDatatype: LPSTR, +} +pub type DOC_INFO_1A = _DOC_INFO_1A; +pub type PDOC_INFO_1A = *mut _DOC_INFO_1A; +pub type LPDOC_INFO_1A = *mut _DOC_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DOC_INFO_1W { + pub pDocName: LPWSTR, + pub pOutputFile: LPWSTR, + pub pDatatype: LPWSTR, +} +pub type DOC_INFO_1W = _DOC_INFO_1W; +pub type PDOC_INFO_1W = *mut _DOC_INFO_1W; +pub type LPDOC_INFO_1W = *mut _DOC_INFO_1W; +pub type DOC_INFO_1 = DOC_INFO_1A; +pub type PDOC_INFO_1 = PDOC_INFO_1A; +pub type LPDOC_INFO_1 = LPDOC_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FORM_INFO_1A { + pub Flags: DWORD, + pub pName: LPSTR, + pub Size: SIZEL, + pub ImageableArea: RECTL, +} +pub type FORM_INFO_1A = _FORM_INFO_1A; +pub type PFORM_INFO_1A = *mut _FORM_INFO_1A; +pub type LPFORM_INFO_1A = *mut _FORM_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FORM_INFO_1W { + pub Flags: DWORD, + pub pName: LPWSTR, + pub Size: SIZEL, + pub ImageableArea: RECTL, +} +pub type FORM_INFO_1W = _FORM_INFO_1W; +pub type PFORM_INFO_1W = *mut _FORM_INFO_1W; +pub type LPFORM_INFO_1W = *mut _FORM_INFO_1W; +pub type FORM_INFO_1 = FORM_INFO_1A; +pub type PFORM_INFO_1 = PFORM_INFO_1A; +pub type LPFORM_INFO_1 = LPFORM_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FORM_INFO_2A { + pub Flags: DWORD, + pub pName: LPCSTR, + pub Size: SIZEL, + pub ImageableArea: RECTL, + pub pKeyword: LPCSTR, + pub StringType: DWORD, + pub pMuiDll: LPCSTR, + pub dwResourceId: DWORD, + pub pDisplayName: LPCSTR, + pub wLangId: LANGID, +} +pub type FORM_INFO_2A = _FORM_INFO_2A; +pub type PFORM_INFO_2A = *mut _FORM_INFO_2A; +pub type LPFORM_INFO_2A = *mut _FORM_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _FORM_INFO_2W { + pub Flags: DWORD, + pub pName: LPCWSTR, + pub Size: SIZEL, + pub ImageableArea: RECTL, + pub pKeyword: LPCSTR, + pub StringType: DWORD, + pub pMuiDll: LPCWSTR, + pub dwResourceId: DWORD, + pub pDisplayName: LPCWSTR, + pub wLangId: LANGID, +} +pub type FORM_INFO_2W = _FORM_INFO_2W; +pub type PFORM_INFO_2W = *mut _FORM_INFO_2W; +pub type LPFORM_INFO_2W = *mut _FORM_INFO_2W; +pub type FORM_INFO_2 = FORM_INFO_2A; +pub type PFORM_INFO_2 = PFORM_INFO_2A; +pub type LPFORM_INFO_2 = LPFORM_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DOC_INFO_2A { + pub pDocName: LPSTR, + pub pOutputFile: LPSTR, + pub pDatatype: LPSTR, + pub dwMode: DWORD, + pub JobId: DWORD, +} +pub type DOC_INFO_2A = _DOC_INFO_2A; +pub type PDOC_INFO_2A = *mut _DOC_INFO_2A; +pub type LPDOC_INFO_2A = *mut _DOC_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DOC_INFO_2W { + pub pDocName: LPWSTR, + pub pOutputFile: LPWSTR, + pub pDatatype: LPWSTR, + pub dwMode: DWORD, + pub JobId: DWORD, +} +pub type DOC_INFO_2W = _DOC_INFO_2W; +pub type PDOC_INFO_2W = *mut _DOC_INFO_2W; +pub type LPDOC_INFO_2W = *mut _DOC_INFO_2W; +pub type DOC_INFO_2 = DOC_INFO_2A; +pub type PDOC_INFO_2 = PDOC_INFO_2A; +pub type LPDOC_INFO_2 = LPDOC_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DOC_INFO_3A { + pub pDocName: LPSTR, + pub pOutputFile: LPSTR, + pub pDatatype: LPSTR, + pub dwFlags: DWORD, +} +pub type DOC_INFO_3A = _DOC_INFO_3A; +pub type PDOC_INFO_3A = *mut _DOC_INFO_3A; +pub type LPDOC_INFO_3A = *mut _DOC_INFO_3A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DOC_INFO_3W { + pub pDocName: LPWSTR, + pub pOutputFile: LPWSTR, + pub pDatatype: LPWSTR, + pub dwFlags: DWORD, +} +pub type DOC_INFO_3W = _DOC_INFO_3W; +pub type PDOC_INFO_3W = *mut _DOC_INFO_3W; +pub type LPDOC_INFO_3W = *mut _DOC_INFO_3W; +pub type DOC_INFO_3 = DOC_INFO_3A; +pub type PDOC_INFO_3 = PDOC_INFO_3A; +pub type LPDOC_INFO_3 = LPDOC_INFO_3A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTPROCESSOR_INFO_1A { + pub pName: LPSTR, +} +pub type PRINTPROCESSOR_INFO_1A = _PRINTPROCESSOR_INFO_1A; +pub type PPRINTPROCESSOR_INFO_1A = *mut _PRINTPROCESSOR_INFO_1A; +pub type LPPRINTPROCESSOR_INFO_1A = *mut _PRINTPROCESSOR_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTPROCESSOR_INFO_1W { + pub pName: LPWSTR, +} +pub type PRINTPROCESSOR_INFO_1W = _PRINTPROCESSOR_INFO_1W; +pub type PPRINTPROCESSOR_INFO_1W = *mut _PRINTPROCESSOR_INFO_1W; +pub type LPPRINTPROCESSOR_INFO_1W = *mut _PRINTPROCESSOR_INFO_1W; +pub type PRINTPROCESSOR_INFO_1 = PRINTPROCESSOR_INFO_1A; +pub type PPRINTPROCESSOR_INFO_1 = PPRINTPROCESSOR_INFO_1A; +pub type LPPRINTPROCESSOR_INFO_1 = LPPRINTPROCESSOR_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTPROCESSOR_CAPS_1 { + pub dwLevel: DWORD, + pub dwNupOptions: DWORD, + pub dwPageOrderFlags: DWORD, + pub dwNumberOfCopies: DWORD, +} +pub type PRINTPROCESSOR_CAPS_1 = _PRINTPROCESSOR_CAPS_1; +pub type PPRINTPROCESSOR_CAPS_1 = *mut _PRINTPROCESSOR_CAPS_1; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTPROCESSOR_CAPS_2 { + pub dwLevel: DWORD, + pub dwNupOptions: DWORD, + pub dwPageOrderFlags: DWORD, + pub dwNumberOfCopies: DWORD, + pub dwDuplexHandlingCaps: DWORD, + pub dwNupDirectionCaps: DWORD, + pub dwNupBorderCaps: DWORD, + pub dwBookletHandlingCaps: DWORD, + pub dwScalingCaps: DWORD, +} +pub type PRINTPROCESSOR_CAPS_2 = _PRINTPROCESSOR_CAPS_2; +pub type PPRINTPROCESSOR_CAPS_2 = *mut _PRINTPROCESSOR_CAPS_2; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PORT_INFO_1A { + pub pName: LPSTR, +} +pub type PORT_INFO_1A = _PORT_INFO_1A; +pub type PPORT_INFO_1A = *mut _PORT_INFO_1A; +pub type LPPORT_INFO_1A = *mut _PORT_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PORT_INFO_1W { + pub pName: LPWSTR, +} +pub type PORT_INFO_1W = _PORT_INFO_1W; +pub type PPORT_INFO_1W = *mut _PORT_INFO_1W; +pub type LPPORT_INFO_1W = *mut _PORT_INFO_1W; +pub type PORT_INFO_1 = PORT_INFO_1A; +pub type PPORT_INFO_1 = PPORT_INFO_1A; +pub type LPPORT_INFO_1 = LPPORT_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PORT_INFO_2A { + pub pPortName: LPSTR, + pub pMonitorName: LPSTR, + pub pDescription: LPSTR, + pub fPortType: DWORD, + pub Reserved: DWORD, +} +pub type PORT_INFO_2A = _PORT_INFO_2A; +pub type PPORT_INFO_2A = *mut _PORT_INFO_2A; +pub type LPPORT_INFO_2A = *mut _PORT_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PORT_INFO_2W { + pub pPortName: LPWSTR, + pub pMonitorName: LPWSTR, + pub pDescription: LPWSTR, + pub fPortType: DWORD, + pub Reserved: DWORD, +} +pub type PORT_INFO_2W = _PORT_INFO_2W; +pub type PPORT_INFO_2W = *mut _PORT_INFO_2W; +pub type LPPORT_INFO_2W = *mut _PORT_INFO_2W; +pub type PORT_INFO_2 = PORT_INFO_2A; +pub type PPORT_INFO_2 = PPORT_INFO_2A; +pub type LPPORT_INFO_2 = LPPORT_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PORT_INFO_3A { + pub dwStatus: DWORD, + pub pszStatus: LPSTR, + pub dwSeverity: DWORD, +} +pub type PORT_INFO_3A = _PORT_INFO_3A; +pub type PPORT_INFO_3A = *mut _PORT_INFO_3A; +pub type LPPORT_INFO_3A = *mut _PORT_INFO_3A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PORT_INFO_3W { + pub dwStatus: DWORD, + pub pszStatus: LPWSTR, + pub dwSeverity: DWORD, +} +pub type PORT_INFO_3W = _PORT_INFO_3W; +pub type PPORT_INFO_3W = *mut _PORT_INFO_3W; +pub type LPPORT_INFO_3W = *mut _PORT_INFO_3W; +pub type PORT_INFO_3 = PORT_INFO_3A; +pub type PPORT_INFO_3 = PPORT_INFO_3A; +pub type LPPORT_INFO_3 = LPPORT_INFO_3A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MONITOR_INFO_1A { + pub pName: LPSTR, +} +pub type MONITOR_INFO_1A = _MONITOR_INFO_1A; +pub type PMONITOR_INFO_1A = *mut _MONITOR_INFO_1A; +pub type LPMONITOR_INFO_1A = *mut _MONITOR_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MONITOR_INFO_1W { + pub pName: LPWSTR, +} +pub type MONITOR_INFO_1W = _MONITOR_INFO_1W; +pub type PMONITOR_INFO_1W = *mut _MONITOR_INFO_1W; +pub type LPMONITOR_INFO_1W = *mut _MONITOR_INFO_1W; +pub type MONITOR_INFO_1 = MONITOR_INFO_1A; +pub type PMONITOR_INFO_1 = PMONITOR_INFO_1A; +pub type LPMONITOR_INFO_1 = LPMONITOR_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MONITOR_INFO_2A { + pub pName: LPSTR, + pub pEnvironment: LPSTR, + pub pDLLName: LPSTR, +} +pub type MONITOR_INFO_2A = _MONITOR_INFO_2A; +pub type PMONITOR_INFO_2A = *mut _MONITOR_INFO_2A; +pub type LPMONITOR_INFO_2A = *mut _MONITOR_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MONITOR_INFO_2W { + pub pName: LPWSTR, + pub pEnvironment: LPWSTR, + pub pDLLName: LPWSTR, +} +pub type MONITOR_INFO_2W = _MONITOR_INFO_2W; +pub type PMONITOR_INFO_2W = *mut _MONITOR_INFO_2W; +pub type LPMONITOR_INFO_2W = *mut _MONITOR_INFO_2W; +pub type MONITOR_INFO_2 = MONITOR_INFO_2A; +pub type PMONITOR_INFO_2 = PMONITOR_INFO_2A; +pub type LPMONITOR_INFO_2 = LPMONITOR_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DATATYPES_INFO_1A { + pub pName: LPSTR, +} +pub type DATATYPES_INFO_1A = _DATATYPES_INFO_1A; +pub type PDATATYPES_INFO_1A = *mut _DATATYPES_INFO_1A; +pub type LPDATATYPES_INFO_1A = *mut _DATATYPES_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DATATYPES_INFO_1W { + pub pName: LPWSTR, +} +pub type DATATYPES_INFO_1W = _DATATYPES_INFO_1W; +pub type PDATATYPES_INFO_1W = *mut _DATATYPES_INFO_1W; +pub type LPDATATYPES_INFO_1W = *mut _DATATYPES_INFO_1W; +pub type DATATYPES_INFO_1 = DATATYPES_INFO_1A; +pub type PDATATYPES_INFO_1 = PDATATYPES_INFO_1A; +pub type LPDATATYPES_INFO_1 = LPDATATYPES_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_DEFAULTSA { + pub pDatatype: LPSTR, + pub pDevMode: LPDEVMODEA, + pub DesiredAccess: ACCESS_MASK, +} +pub type PRINTER_DEFAULTSA = _PRINTER_DEFAULTSA; +pub type PPRINTER_DEFAULTSA = *mut _PRINTER_DEFAULTSA; +pub type LPPRINTER_DEFAULTSA = *mut _PRINTER_DEFAULTSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_DEFAULTSW { + pub pDatatype: LPWSTR, + pub pDevMode: LPDEVMODEW, + pub DesiredAccess: ACCESS_MASK, +} +pub type PRINTER_DEFAULTSW = _PRINTER_DEFAULTSW; +pub type PPRINTER_DEFAULTSW = *mut _PRINTER_DEFAULTSW; +pub type LPPRINTER_DEFAULTSW = *mut _PRINTER_DEFAULTSW; +pub type PRINTER_DEFAULTS = PRINTER_DEFAULTSA; +pub type PPRINTER_DEFAULTS = PPRINTER_DEFAULTSA; +pub type LPPRINTER_DEFAULTS = LPPRINTER_DEFAULTSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_ENUM_VALUESA { + pub pValueName: LPSTR, + pub cbValueName: DWORD, + pub dwType: DWORD, + pub pData: LPBYTE, + pub cbData: DWORD, +} +pub type PRINTER_ENUM_VALUESA = _PRINTER_ENUM_VALUESA; +pub type PPRINTER_ENUM_VALUESA = *mut _PRINTER_ENUM_VALUESA; +pub type LPPRINTER_ENUM_VALUESA = *mut _PRINTER_ENUM_VALUESA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_ENUM_VALUESW { + pub pValueName: LPWSTR, + pub cbValueName: DWORD, + pub dwType: DWORD, + pub pData: LPBYTE, + pub cbData: DWORD, +} +pub type PRINTER_ENUM_VALUESW = _PRINTER_ENUM_VALUESW; +pub type PPRINTER_ENUM_VALUESW = *mut _PRINTER_ENUM_VALUESW; +pub type LPPRINTER_ENUM_VALUESW = *mut _PRINTER_ENUM_VALUESW; +pub type PRINTER_ENUM_VALUES = PRINTER_ENUM_VALUESA; +pub type PPRINTER_ENUM_VALUES = PPRINTER_ENUM_VALUESA; +pub type LPPRINTER_ENUM_VALUES = LPPRINTER_ENUM_VALUESA; +extern "C" { + pub fn EnumPrintersA( + Flags: DWORD, + Name: LPSTR, + Level: DWORD, + pPrinterEnum: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumPrintersW( + Flags: DWORD, + Name: LPWSTR, + Level: DWORD, + pPrinterEnum: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetSpoolFileHandle(hPrinter: HANDLE) -> HANDLE; +} +extern "C" { + pub fn CommitSpoolData(hPrinter: HANDLE, hSpoolFile: HANDLE, cbCommit: DWORD) -> HANDLE; +} +extern "C" { + pub fn CloseSpoolFileHandle(hPrinter: HANDLE, hSpoolFile: HANDLE) -> BOOL; +} +extern "C" { + pub fn OpenPrinterA( + pPrinterName: LPSTR, + phPrinter: LPHANDLE, + pDefault: LPPRINTER_DEFAULTSA, + ) -> BOOL; +} +extern "C" { + pub fn OpenPrinterW( + pPrinterName: LPWSTR, + phPrinter: LPHANDLE, + pDefault: LPPRINTER_DEFAULTSW, + ) -> BOOL; +} +extern "C" { + pub fn ResetPrinterA(hPrinter: HANDLE, pDefault: LPPRINTER_DEFAULTSA) -> BOOL; +} +extern "C" { + pub fn ResetPrinterW(hPrinter: HANDLE, pDefault: LPPRINTER_DEFAULTSW) -> BOOL; +} +extern "C" { + pub fn SetJobA( + hPrinter: HANDLE, + JobId: DWORD, + Level: DWORD, + pJob: LPBYTE, + Command: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetJobW( + hPrinter: HANDLE, + JobId: DWORD, + Level: DWORD, + pJob: LPBYTE, + Command: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetJobA( + hPrinter: HANDLE, + JobId: DWORD, + Level: DWORD, + pJob: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetJobW( + hPrinter: HANDLE, + JobId: DWORD, + Level: DWORD, + pJob: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumJobsA( + hPrinter: HANDLE, + FirstJob: DWORD, + NoJobs: DWORD, + Level: DWORD, + pJob: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumJobsW( + hPrinter: HANDLE, + FirstJob: DWORD, + NoJobs: DWORD, + Level: DWORD, + pJob: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn AddPrinterA(pName: LPSTR, Level: DWORD, pPrinter: LPBYTE) -> HANDLE; +} +extern "C" { + pub fn AddPrinterW(pName: LPWSTR, Level: DWORD, pPrinter: LPBYTE) -> HANDLE; +} +extern "C" { + pub fn DeletePrinter(hPrinter: HANDLE) -> BOOL; +} +extern "C" { + pub fn SetPrinterA(hPrinter: HANDLE, Level: DWORD, pPrinter: LPBYTE, Command: DWORD) -> BOOL; +} +extern "C" { + pub fn SetPrinterW(hPrinter: HANDLE, Level: DWORD, pPrinter: LPBYTE, Command: DWORD) -> BOOL; +} +extern "C" { + pub fn GetPrinterA( + hPrinter: HANDLE, + Level: DWORD, + pPrinter: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetPrinterW( + hPrinter: HANDLE, + Level: DWORD, + pPrinter: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn AddPrinterDriverA(pName: LPSTR, Level: DWORD, pDriverInfo: LPBYTE) -> BOOL; +} +extern "C" { + pub fn AddPrinterDriverW(pName: LPWSTR, Level: DWORD, pDriverInfo: LPBYTE) -> BOOL; +} +extern "C" { + pub fn AddPrinterDriverExA( + pName: LPSTR, + Level: DWORD, + lpbDriverInfo: PBYTE, + dwFileCopyFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn AddPrinterDriverExW( + pName: LPWSTR, + Level: DWORD, + lpbDriverInfo: PBYTE, + dwFileCopyFlags: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumPrinterDriversA( + pName: LPSTR, + pEnvironment: LPSTR, + Level: DWORD, + pDriverInfo: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumPrinterDriversW( + pName: LPWSTR, + pEnvironment: LPWSTR, + Level: DWORD, + pDriverInfo: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetPrinterDriverA( + hPrinter: HANDLE, + pEnvironment: LPSTR, + Level: DWORD, + pDriverInfo: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetPrinterDriverW( + hPrinter: HANDLE, + pEnvironment: LPWSTR, + Level: DWORD, + pDriverInfo: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetPrinterDriverDirectoryA( + pName: LPSTR, + pEnvironment: LPSTR, + Level: DWORD, + pDriverDirectory: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetPrinterDriverDirectoryW( + pName: LPWSTR, + pEnvironment: LPWSTR, + Level: DWORD, + pDriverDirectory: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn DeletePrinterDriverA(pName: LPSTR, pEnvironment: LPSTR, pDriverName: LPSTR) -> BOOL; +} +extern "C" { + pub fn DeletePrinterDriverW(pName: LPWSTR, pEnvironment: LPWSTR, pDriverName: LPWSTR) -> BOOL; +} +extern "C" { + pub fn DeletePrinterDriverExA( + pName: LPSTR, + pEnvironment: LPSTR, + pDriverName: LPSTR, + dwDeleteFlag: DWORD, + dwVersionFlag: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn DeletePrinterDriverExW( + pName: LPWSTR, + pEnvironment: LPWSTR, + pDriverName: LPWSTR, + dwDeleteFlag: DWORD, + dwVersionFlag: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn AddPrintProcessorA( + pName: LPSTR, + pEnvironment: LPSTR, + pPathName: LPSTR, + pPrintProcessorName: LPSTR, + ) -> BOOL; +} +extern "C" { + pub fn AddPrintProcessorW( + pName: LPWSTR, + pEnvironment: LPWSTR, + pPathName: LPWSTR, + pPrintProcessorName: LPWSTR, + ) -> BOOL; +} +extern "C" { + pub fn EnumPrintProcessorsA( + pName: LPSTR, + pEnvironment: LPSTR, + Level: DWORD, + pPrintProcessorInfo: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumPrintProcessorsW( + pName: LPWSTR, + pEnvironment: LPWSTR, + Level: DWORD, + pPrintProcessorInfo: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetPrintProcessorDirectoryA( + pName: LPSTR, + pEnvironment: LPSTR, + Level: DWORD, + pPrintProcessorInfo: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetPrintProcessorDirectoryW( + pName: LPWSTR, + pEnvironment: LPWSTR, + Level: DWORD, + pPrintProcessorInfo: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumPrintProcessorDatatypesA( + pName: LPSTR, + pPrintProcessorName: LPSTR, + Level: DWORD, + pDatatypes: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumPrintProcessorDatatypesW( + pName: LPWSTR, + pPrintProcessorName: LPWSTR, + Level: DWORD, + pDatatypes: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn DeletePrintProcessorA( + pName: LPSTR, + pEnvironment: LPSTR, + pPrintProcessorName: LPSTR, + ) -> BOOL; +} +extern "C" { + pub fn DeletePrintProcessorW( + pName: LPWSTR, + pEnvironment: LPWSTR, + pPrintProcessorName: LPWSTR, + ) -> BOOL; +} +extern "C" { + pub fn StartDocPrinterA(hPrinter: HANDLE, Level: DWORD, pDocInfo: LPBYTE) -> DWORD; +} +extern "C" { + pub fn StartDocPrinterW(hPrinter: HANDLE, Level: DWORD, pDocInfo: LPBYTE) -> DWORD; +} +extern "C" { + pub fn StartPagePrinter(hPrinter: HANDLE) -> BOOL; +} +extern "C" { + pub fn WritePrinter(hPrinter: HANDLE, pBuf: LPVOID, cbBuf: DWORD, pcWritten: LPDWORD) -> BOOL; +} +extern "C" { + pub fn FlushPrinter( + hPrinter: HANDLE, + pBuf: LPVOID, + cbBuf: DWORD, + pcWritten: LPDWORD, + cSleep: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn EndPagePrinter(hPrinter: HANDLE) -> BOOL; +} +extern "C" { + pub fn AbortPrinter(hPrinter: HANDLE) -> BOOL; +} +extern "C" { + pub fn ReadPrinter(hPrinter: HANDLE, pBuf: LPVOID, cbBuf: DWORD, pNoBytesRead: LPDWORD) + -> BOOL; +} +extern "C" { + pub fn EndDocPrinter(hPrinter: HANDLE) -> BOOL; +} +extern "C" { + pub fn AddJobA( + hPrinter: HANDLE, + Level: DWORD, + pData: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn AddJobW( + hPrinter: HANDLE, + Level: DWORD, + pData: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn ScheduleJob(hPrinter: HANDLE, JobId: DWORD) -> BOOL; +} +extern "C" { + pub fn PrinterProperties(hWnd: HWND, hPrinter: HANDLE) -> BOOL; +} +extern "C" { + pub fn DocumentPropertiesA( + hWnd: HWND, + hPrinter: HANDLE, + pDeviceName: LPSTR, + pDevModeOutput: PDEVMODEA, + pDevModeInput: PDEVMODEA, + fMode: DWORD, + ) -> LONG; +} +extern "C" { + pub fn DocumentPropertiesW( + hWnd: HWND, + hPrinter: HANDLE, + pDeviceName: LPWSTR, + pDevModeOutput: PDEVMODEW, + pDevModeInput: PDEVMODEW, + fMode: DWORD, + ) -> LONG; +} +extern "C" { + pub fn AdvancedDocumentPropertiesA( + hWnd: HWND, + hPrinter: HANDLE, + pDeviceName: LPSTR, + pDevModeOutput: PDEVMODEA, + pDevModeInput: PDEVMODEA, + ) -> LONG; +} +extern "C" { + pub fn AdvancedDocumentPropertiesW( + hWnd: HWND, + hPrinter: HANDLE, + pDeviceName: LPWSTR, + pDevModeOutput: PDEVMODEW, + pDevModeInput: PDEVMODEW, + ) -> LONG; +} +extern "C" { + pub fn ExtDeviceMode( + hWnd: HWND, + hInst: HANDLE, + pDevModeOutput: LPDEVMODEA, + pDeviceName: LPSTR, + pPort: LPSTR, + pDevModeInput: LPDEVMODEA, + pProfile: LPSTR, + fMode: DWORD, + ) -> LONG; +} +extern "C" { + pub fn GetPrinterDataA( + hPrinter: HANDLE, + pValueName: LPSTR, + pType: LPDWORD, + pData: LPBYTE, + nSize: DWORD, + pcbNeeded: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetPrinterDataW( + hPrinter: HANDLE, + pValueName: LPWSTR, + pType: LPDWORD, + pData: LPBYTE, + nSize: DWORD, + pcbNeeded: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetPrinterDataExA( + hPrinter: HANDLE, + pKeyName: LPCSTR, + pValueName: LPCSTR, + pType: LPDWORD, + pData: LPBYTE, + nSize: DWORD, + pcbNeeded: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn GetPrinterDataExW( + hPrinter: HANDLE, + pKeyName: LPCWSTR, + pValueName: LPCWSTR, + pType: LPDWORD, + pData: LPBYTE, + nSize: DWORD, + pcbNeeded: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn EnumPrinterDataA( + hPrinter: HANDLE, + dwIndex: DWORD, + pValueName: LPSTR, + cbValueName: DWORD, + pcbValueName: LPDWORD, + pType: LPDWORD, + pData: LPBYTE, + cbData: DWORD, + pcbData: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn EnumPrinterDataW( + hPrinter: HANDLE, + dwIndex: DWORD, + pValueName: LPWSTR, + cbValueName: DWORD, + pcbValueName: LPDWORD, + pType: LPDWORD, + pData: LPBYTE, + cbData: DWORD, + pcbData: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn EnumPrinterDataExA( + hPrinter: HANDLE, + pKeyName: LPCSTR, + pEnumValues: LPBYTE, + cbEnumValues: DWORD, + pcbEnumValues: LPDWORD, + pnEnumValues: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn EnumPrinterDataExW( + hPrinter: HANDLE, + pKeyName: LPCWSTR, + pEnumValues: LPBYTE, + cbEnumValues: DWORD, + pcbEnumValues: LPDWORD, + pnEnumValues: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn EnumPrinterKeyA( + hPrinter: HANDLE, + pKeyName: LPCSTR, + pSubkey: LPSTR, + cbSubkey: DWORD, + pcbSubkey: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn EnumPrinterKeyW( + hPrinter: HANDLE, + pKeyName: LPCWSTR, + pSubkey: LPWSTR, + cbSubkey: DWORD, + pcbSubkey: LPDWORD, + ) -> DWORD; +} +extern "C" { + pub fn SetPrinterDataA( + hPrinter: HANDLE, + pValueName: LPSTR, + Type: DWORD, + pData: LPBYTE, + cbData: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn SetPrinterDataW( + hPrinter: HANDLE, + pValueName: LPWSTR, + Type: DWORD, + pData: LPBYTE, + cbData: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn SetPrinterDataExA( + hPrinter: HANDLE, + pKeyName: LPCSTR, + pValueName: LPCSTR, + Type: DWORD, + pData: LPBYTE, + cbData: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn SetPrinterDataExW( + hPrinter: HANDLE, + pKeyName: LPCWSTR, + pValueName: LPCWSTR, + Type: DWORD, + pData: LPBYTE, + cbData: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn DeletePrinterDataA(hPrinter: HANDLE, pValueName: LPSTR) -> DWORD; +} +extern "C" { + pub fn DeletePrinterDataW(hPrinter: HANDLE, pValueName: LPWSTR) -> DWORD; +} +extern "C" { + pub fn DeletePrinterDataExA(hPrinter: HANDLE, pKeyName: LPCSTR, pValueName: LPCSTR) -> DWORD; +} +extern "C" { + pub fn DeletePrinterDataExW(hPrinter: HANDLE, pKeyName: LPCWSTR, pValueName: LPCWSTR) -> DWORD; +} +extern "C" { + pub fn DeletePrinterKeyA(hPrinter: HANDLE, pKeyName: LPCSTR) -> DWORD; +} +extern "C" { + pub fn DeletePrinterKeyW(hPrinter: HANDLE, pKeyName: LPCWSTR) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_NOTIFY_OPTIONS_TYPE { + pub Type: WORD, + pub Reserved0: WORD, + pub Reserved1: DWORD, + pub Reserved2: DWORD, + pub Count: DWORD, + pub pFields: PWORD, +} +pub type PRINTER_NOTIFY_OPTIONS_TYPE = _PRINTER_NOTIFY_OPTIONS_TYPE; +pub type PPRINTER_NOTIFY_OPTIONS_TYPE = *mut _PRINTER_NOTIFY_OPTIONS_TYPE; +pub type LPPRINTER_NOTIFY_OPTIONS_TYPE = *mut _PRINTER_NOTIFY_OPTIONS_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_NOTIFY_OPTIONS { + pub Version: DWORD, + pub Flags: DWORD, + pub Count: DWORD, + pub pTypes: PPRINTER_NOTIFY_OPTIONS_TYPE, +} +pub type PRINTER_NOTIFY_OPTIONS = _PRINTER_NOTIFY_OPTIONS; +pub type PPRINTER_NOTIFY_OPTIONS = *mut _PRINTER_NOTIFY_OPTIONS; +pub type LPPRINTER_NOTIFY_OPTIONS = *mut _PRINTER_NOTIFY_OPTIONS; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PRINTER_NOTIFY_INFO_DATA { + pub Type: WORD, + pub Field: WORD, + pub Reserved: DWORD, + pub Id: DWORD, + pub NotifyData: _PRINTER_NOTIFY_INFO_DATA__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _PRINTER_NOTIFY_INFO_DATA__bindgen_ty_1 { + pub adwData: [DWORD; 2usize], + pub Data: _PRINTER_NOTIFY_INFO_DATA__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_NOTIFY_INFO_DATA__bindgen_ty_1__bindgen_ty_1 { + pub cbBuf: DWORD, + pub pBuf: LPVOID, +} +pub type PRINTER_NOTIFY_INFO_DATA = _PRINTER_NOTIFY_INFO_DATA; +pub type PPRINTER_NOTIFY_INFO_DATA = *mut _PRINTER_NOTIFY_INFO_DATA; +pub type LPPRINTER_NOTIFY_INFO_DATA = *mut _PRINTER_NOTIFY_INFO_DATA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _PRINTER_NOTIFY_INFO { + pub Version: DWORD, + pub Flags: DWORD, + pub Count: DWORD, + pub aData: [PRINTER_NOTIFY_INFO_DATA; 1usize], +} +pub type PRINTER_NOTIFY_INFO = _PRINTER_NOTIFY_INFO; +pub type PPRINTER_NOTIFY_INFO = *mut _PRINTER_NOTIFY_INFO; +pub type LPPRINTER_NOTIFY_INFO = *mut _PRINTER_NOTIFY_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _BINARY_CONTAINER { + pub cbBuf: DWORD, + pub pData: LPBYTE, +} +pub type BINARY_CONTAINER = _BINARY_CONTAINER; +pub type PBINARY_CONTAINER = *mut _BINARY_CONTAINER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _BIDI_DATA { + pub dwBidiType: DWORD, + pub u: _BIDI_DATA__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _BIDI_DATA__bindgen_ty_1 { + pub bData: BOOL, + pub iData: LONG, + pub sData: LPWSTR, + pub fData: FLOAT, + pub biData: BINARY_CONTAINER, +} +pub type BIDI_DATA = _BIDI_DATA; +pub type PBIDI_DATA = *mut _BIDI_DATA; +pub type LPBIDI_DATA = *mut _BIDI_DATA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _BIDI_REQUEST_DATA { + pub dwReqNumber: DWORD, + pub pSchema: LPWSTR, + pub data: BIDI_DATA, +} +pub type BIDI_REQUEST_DATA = _BIDI_REQUEST_DATA; +pub type PBIDI_REQUEST_DATA = *mut _BIDI_REQUEST_DATA; +pub type LPBIDI_REQUEST_DATA = *mut _BIDI_REQUEST_DATA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _BIDI_REQUEST_CONTAINER { + pub Version: DWORD, + pub Flags: DWORD, + pub Count: DWORD, + pub aData: [BIDI_REQUEST_DATA; 1usize], +} +pub type BIDI_REQUEST_CONTAINER = _BIDI_REQUEST_CONTAINER; +pub type PBIDI_REQUEST_CONTAINER = *mut _BIDI_REQUEST_CONTAINER; +pub type LPBIDI_REQUEST_CONTAINER = *mut _BIDI_REQUEST_CONTAINER; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _BIDI_RESPONSE_DATA { + pub dwResult: DWORD, + pub dwReqNumber: DWORD, + pub pSchema: LPWSTR, + pub data: BIDI_DATA, +} +pub type BIDI_RESPONSE_DATA = _BIDI_RESPONSE_DATA; +pub type PBIDI_RESPONSE_DATA = *mut _BIDI_RESPONSE_DATA; +pub type LPBIDI_RESPONSE_DATA = *mut _BIDI_RESPONSE_DATA; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _BIDI_RESPONSE_CONTAINER { + pub Version: DWORD, + pub Flags: DWORD, + pub Count: DWORD, + pub aData: [BIDI_RESPONSE_DATA; 1usize], +} +pub type BIDI_RESPONSE_CONTAINER = _BIDI_RESPONSE_CONTAINER; +pub type PBIDI_RESPONSE_CONTAINER = *mut _BIDI_RESPONSE_CONTAINER; +pub type LPBIDI_RESPONSE_CONTAINER = *mut _BIDI_RESPONSE_CONTAINER; +pub const BIDI_TYPE_BIDI_NULL: BIDI_TYPE = 0; +pub const BIDI_TYPE_BIDI_INT: BIDI_TYPE = 1; +pub const BIDI_TYPE_BIDI_FLOAT: BIDI_TYPE = 2; +pub const BIDI_TYPE_BIDI_BOOL: BIDI_TYPE = 3; +pub const BIDI_TYPE_BIDI_STRING: BIDI_TYPE = 4; +pub const BIDI_TYPE_BIDI_TEXT: BIDI_TYPE = 5; +pub const BIDI_TYPE_BIDI_ENUM: BIDI_TYPE = 6; +pub const BIDI_TYPE_BIDI_BLOB: BIDI_TYPE = 7; +pub type BIDI_TYPE = ::std::os::raw::c_int; +extern "C" { + pub fn WaitForPrinterChange(hPrinter: HANDLE, Flags: DWORD) -> DWORD; +} +extern "C" { + pub fn FindFirstPrinterChangeNotification( + hPrinter: HANDLE, + fdwFilter: DWORD, + fdwOptions: DWORD, + pPrinterNotifyOptions: PVOID, + ) -> HANDLE; +} +extern "C" { + pub fn FindNextPrinterChangeNotification( + hChange: HANDLE, + pdwChange: PDWORD, + pvReserved: LPVOID, + ppPrinterNotifyInfo: *mut LPVOID, + ) -> BOOL; +} +extern "C" { + pub fn FreePrinterNotifyInfo(pPrinterNotifyInfo: PPRINTER_NOTIFY_INFO) -> BOOL; +} +extern "C" { + pub fn FindClosePrinterChangeNotification(hChange: HANDLE) -> BOOL; +} +extern "C" { + pub fn PrinterMessageBoxA( + hPrinter: HANDLE, + Error: DWORD, + hWnd: HWND, + pText: LPSTR, + pCaption: LPSTR, + dwType: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn PrinterMessageBoxW( + hPrinter: HANDLE, + Error: DWORD, + hWnd: HWND, + pText: LPWSTR, + pCaption: LPWSTR, + dwType: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn ClosePrinter(hPrinter: HANDLE) -> BOOL; +} +extern "C" { + pub fn AddFormA(hPrinter: HANDLE, Level: DWORD, pForm: LPBYTE) -> BOOL; +} +extern "C" { + pub fn AddFormW(hPrinter: HANDLE, Level: DWORD, pForm: LPBYTE) -> BOOL; +} +extern "C" { + pub fn DeleteFormA(hPrinter: HANDLE, pFormName: LPSTR) -> BOOL; +} +extern "C" { + pub fn DeleteFormW(hPrinter: HANDLE, pFormName: LPWSTR) -> BOOL; +} +extern "C" { + pub fn GetFormA( + hPrinter: HANDLE, + pFormName: LPSTR, + Level: DWORD, + pForm: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetFormW( + hPrinter: HANDLE, + pFormName: LPWSTR, + Level: DWORD, + pForm: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn SetFormA(hPrinter: HANDLE, pFormName: LPSTR, Level: DWORD, pForm: LPBYTE) -> BOOL; +} +extern "C" { + pub fn SetFormW(hPrinter: HANDLE, pFormName: LPWSTR, Level: DWORD, pForm: LPBYTE) -> BOOL; +} +extern "C" { + pub fn EnumFormsA( + hPrinter: HANDLE, + Level: DWORD, + pForm: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumFormsW( + hPrinter: HANDLE, + Level: DWORD, + pForm: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumMonitorsA( + pName: LPSTR, + Level: DWORD, + pMonitor: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumMonitorsW( + pName: LPWSTR, + Level: DWORD, + pMonitor: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn AddMonitorA(pName: LPSTR, Level: DWORD, pMonitors: LPBYTE) -> BOOL; +} +extern "C" { + pub fn AddMonitorW(pName: LPWSTR, Level: DWORD, pMonitors: LPBYTE) -> BOOL; +} +extern "C" { + pub fn DeleteMonitorA(pName: LPSTR, pEnvironment: LPSTR, pMonitorName: LPSTR) -> BOOL; +} +extern "C" { + pub fn DeleteMonitorW(pName: LPWSTR, pEnvironment: LPWSTR, pMonitorName: LPWSTR) -> BOOL; +} +extern "C" { + pub fn EnumPortsA( + pName: LPSTR, + Level: DWORD, + pPort: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumPortsW( + pName: LPWSTR, + Level: DWORD, + pPort: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + pcReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn AddPortA(pName: LPSTR, hWnd: HWND, pMonitorName: LPSTR) -> BOOL; +} +extern "C" { + pub fn AddPortW(pName: LPWSTR, hWnd: HWND, pMonitorName: LPWSTR) -> BOOL; +} +extern "C" { + pub fn ConfigurePortA(pName: LPSTR, hWnd: HWND, pPortName: LPSTR) -> BOOL; +} +extern "C" { + pub fn ConfigurePortW(pName: LPWSTR, hWnd: HWND, pPortName: LPWSTR) -> BOOL; +} +extern "C" { + pub fn DeletePortA(pName: LPSTR, hWnd: HWND, pPortName: LPSTR) -> BOOL; +} +extern "C" { + pub fn DeletePortW(pName: LPWSTR, hWnd: HWND, pPortName: LPWSTR) -> BOOL; +} +extern "C" { + pub fn XcvDataW( + hXcv: HANDLE, + pszDataName: PCWSTR, + pInputData: PBYTE, + cbInputData: DWORD, + pOutputData: PBYTE, + cbOutputData: DWORD, + pcbOutputNeeded: PDWORD, + pdwStatus: PDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetDefaultPrinterA(pszBuffer: LPSTR, pcchBuffer: LPDWORD) -> BOOL; +} +extern "C" { + pub fn GetDefaultPrinterW(pszBuffer: LPWSTR, pcchBuffer: LPDWORD) -> BOOL; +} +extern "C" { + pub fn SetDefaultPrinterA(pszPrinter: LPCSTR) -> BOOL; +} +extern "C" { + pub fn SetDefaultPrinterW(pszPrinter: LPCWSTR) -> BOOL; +} +extern "C" { + pub fn SetPortA(pName: LPSTR, pPortName: LPSTR, dwLevel: DWORD, pPortInfo: LPBYTE) -> BOOL; +} +extern "C" { + pub fn SetPortW(pName: LPWSTR, pPortName: LPWSTR, dwLevel: DWORD, pPortInfo: LPBYTE) -> BOOL; +} +extern "C" { + pub fn AddPrinterConnectionA(pName: LPSTR) -> BOOL; +} +extern "C" { + pub fn AddPrinterConnectionW(pName: LPWSTR) -> BOOL; +} +extern "C" { + pub fn DeletePrinterConnectionA(pName: LPSTR) -> BOOL; +} +extern "C" { + pub fn DeletePrinterConnectionW(pName: LPWSTR) -> BOOL; +} +extern "C" { + pub fn ConnectToPrinterDlg(hwnd: HWND, Flags: DWORD) -> HANDLE; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROVIDOR_INFO_1A { + pub pName: LPSTR, + pub pEnvironment: LPSTR, + pub pDLLName: LPSTR, +} +pub type PROVIDOR_INFO_1A = _PROVIDOR_INFO_1A; +pub type PPROVIDOR_INFO_1A = *mut _PROVIDOR_INFO_1A; +pub type LPPROVIDOR_INFO_1A = *mut _PROVIDOR_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROVIDOR_INFO_1W { + pub pName: LPWSTR, + pub pEnvironment: LPWSTR, + pub pDLLName: LPWSTR, +} +pub type PROVIDOR_INFO_1W = _PROVIDOR_INFO_1W; +pub type PPROVIDOR_INFO_1W = *mut _PROVIDOR_INFO_1W; +pub type LPPROVIDOR_INFO_1W = *mut _PROVIDOR_INFO_1W; +pub type PROVIDOR_INFO_1 = PROVIDOR_INFO_1A; +pub type PPROVIDOR_INFO_1 = PPROVIDOR_INFO_1A; +pub type LPPROVIDOR_INFO_1 = LPPROVIDOR_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROVIDOR_INFO_2A { + pub pOrder: LPSTR, +} +pub type PROVIDOR_INFO_2A = _PROVIDOR_INFO_2A; +pub type PPROVIDOR_INFO_2A = *mut _PROVIDOR_INFO_2A; +pub type LPPROVIDOR_INFO_2A = *mut _PROVIDOR_INFO_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PROVIDOR_INFO_2W { + pub pOrder: LPWSTR, +} +pub type PROVIDOR_INFO_2W = _PROVIDOR_INFO_2W; +pub type PPROVIDOR_INFO_2W = *mut _PROVIDOR_INFO_2W; +pub type LPPROVIDOR_INFO_2W = *mut _PROVIDOR_INFO_2W; +pub type PROVIDOR_INFO_2 = PROVIDOR_INFO_2A; +pub type PPROVIDOR_INFO_2 = PPROVIDOR_INFO_2A; +pub type LPPROVIDOR_INFO_2 = LPPROVIDOR_INFO_2A; +extern "C" { + pub fn AddPrintProvidorA(pName: LPSTR, Level: DWORD, pProvidorInfo: LPBYTE) -> BOOL; +} +extern "C" { + pub fn AddPrintProvidorW(pName: LPWSTR, Level: DWORD, pProvidorInfo: LPBYTE) -> BOOL; +} +extern "C" { + pub fn DeletePrintProvidorA( + pName: LPSTR, + pEnvironment: LPSTR, + pPrintProvidorName: LPSTR, + ) -> BOOL; +} +extern "C" { + pub fn DeletePrintProvidorW( + pName: LPWSTR, + pEnvironment: LPWSTR, + pPrintProvidorName: LPWSTR, + ) -> BOOL; +} +extern "C" { + pub fn IsValidDevmodeA(pDevmode: PDEVMODEA, DevmodeSize: usize) -> BOOL; +} +extern "C" { + pub fn IsValidDevmodeW(pDevmode: PDEVMODEW, DevmodeSize: usize) -> BOOL; +} +pub const _PRINTER_OPTION_FLAGS_PRINTER_OPTION_NO_CACHE: _PRINTER_OPTION_FLAGS = 1; +pub const _PRINTER_OPTION_FLAGS_PRINTER_OPTION_CACHE: _PRINTER_OPTION_FLAGS = 2; +pub const _PRINTER_OPTION_FLAGS_PRINTER_OPTION_CLIENT_CHANGE: _PRINTER_OPTION_FLAGS = 4; +pub const _PRINTER_OPTION_FLAGS_PRINTER_OPTION_NO_CLIENT_DATA: _PRINTER_OPTION_FLAGS = 8; +pub type _PRINTER_OPTION_FLAGS = ::std::os::raw::c_int; +pub use self::_PRINTER_OPTION_FLAGS as PRINTER_OPTION_FLAGS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_OPTIONSA { + pub cbSize: UINT, + pub dwFlags: DWORD, +} +pub type PRINTER_OPTIONSA = _PRINTER_OPTIONSA; +pub type PPRINTER_OPTIONSA = *mut _PRINTER_OPTIONSA; +pub type LPPRINTER_OPTIONSA = *mut _PRINTER_OPTIONSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_OPTIONSW { + pub cbSize: UINT, + pub dwFlags: DWORD, +} +pub type PRINTER_OPTIONSW = _PRINTER_OPTIONSW; +pub type PPRINTER_OPTIONSW = *mut _PRINTER_OPTIONSW; +pub type LPPRINTER_OPTIONSW = *mut _PRINTER_OPTIONSW; +pub type PRINTER_OPTIONS = PRINTER_OPTIONSA; +pub type PPRINTER_OPTIONS = PPRINTER_OPTIONSA; +pub type LPPRINTER_OPTIONS = LPPRINTER_OPTIONSA; +extern "C" { + pub fn OpenPrinter2A( + pPrinterName: LPCSTR, + phPrinter: LPHANDLE, + pDefault: PPRINTER_DEFAULTSA, + pOptions: PPRINTER_OPTIONSA, + ) -> BOOL; +} +extern "C" { + pub fn OpenPrinter2W( + pPrinterName: LPCWSTR, + phPrinter: LPHANDLE, + pDefault: PPRINTER_DEFAULTSW, + pOptions: PPRINTER_OPTIONSW, + ) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_CONNECTION_INFO_1A { + pub dwFlags: DWORD, + pub pszDriverName: LPSTR, +} +pub type PRINTER_CONNECTION_INFO_1A = _PRINTER_CONNECTION_INFO_1A; +pub type PPRINTER_CONNECTION_INFO_1A = *mut _PRINTER_CONNECTION_INFO_1A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _PRINTER_CONNECTION_INFO_1W { + pub dwFlags: DWORD, + pub pszDriverName: LPWSTR, +} +pub type PRINTER_CONNECTION_INFO_1W = _PRINTER_CONNECTION_INFO_1W; +pub type PPRINTER_CONNECTION_INFO_1W = *mut _PRINTER_CONNECTION_INFO_1W; +pub type PRINTER_CONNECTION_INFO_1 = PRINTER_CONNECTION_INFO_1A; +pub type PPRINTER_CONNECTION_INFO_1 = PPRINTER_CONNECTION_INFO_1A; +extern "C" { + pub fn AddPrinterConnection2A( + hWnd: HWND, + pszName: LPCSTR, + dwLevel: DWORD, + pConnectionInfo: PVOID, + ) -> BOOL; +} +extern "C" { + pub fn AddPrinterConnection2W( + hWnd: HWND, + pszName: LPCWSTR, + dwLevel: DWORD, + pConnectionInfo: PVOID, + ) -> BOOL; +} +extern "C" { + pub fn InstallPrinterDriverFromPackageA( + pszServer: LPCSTR, + pszInfPath: LPCSTR, + pszDriverName: LPCSTR, + pszEnvironment: LPCSTR, + dwFlags: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn InstallPrinterDriverFromPackageW( + pszServer: LPCWSTR, + pszInfPath: LPCWSTR, + pszDriverName: LPCWSTR, + pszEnvironment: LPCWSTR, + dwFlags: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn UploadPrinterDriverPackageA( + pszServer: LPCSTR, + pszInfPath: LPCSTR, + pszEnvironment: LPCSTR, + dwFlags: DWORD, + hwnd: HWND, + pszDestInfPath: LPSTR, + pcchDestInfPath: PULONG, + ) -> HRESULT; +} +extern "C" { + pub fn UploadPrinterDriverPackageW( + pszServer: LPCWSTR, + pszInfPath: LPCWSTR, + pszEnvironment: LPCWSTR, + dwFlags: DWORD, + hwnd: HWND, + pszDestInfPath: LPWSTR, + pcchDestInfPath: PULONG, + ) -> HRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CORE_PRINTER_DRIVERA { + pub CoreDriverGUID: GUID, + pub ftDriverDate: FILETIME, + pub dwlDriverVersion: DWORDLONG, + pub szPackageID: [CHAR; 260usize], +} +pub type CORE_PRINTER_DRIVERA = _CORE_PRINTER_DRIVERA; +pub type PCORE_PRINTER_DRIVERA = *mut _CORE_PRINTER_DRIVERA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CORE_PRINTER_DRIVERW { + pub CoreDriverGUID: GUID, + pub ftDriverDate: FILETIME, + pub dwlDriverVersion: DWORDLONG, + pub szPackageID: [WCHAR; 260usize], +} +pub type CORE_PRINTER_DRIVERW = _CORE_PRINTER_DRIVERW; +pub type PCORE_PRINTER_DRIVERW = *mut _CORE_PRINTER_DRIVERW; +pub type CORE_PRINTER_DRIVER = CORE_PRINTER_DRIVERA; +pub type PCORE_PRINTER_DRIVER = PCORE_PRINTER_DRIVERA; +extern "C" { + pub fn GetCorePrinterDriversA( + pszServer: LPCSTR, + pszEnvironment: LPCSTR, + pszzCoreDriverDependencies: LPCSTR, + cCorePrinterDrivers: DWORD, + pCorePrinterDrivers: PCORE_PRINTER_DRIVERA, + ) -> HRESULT; +} +extern "C" { + pub fn GetCorePrinterDriversW( + pszServer: LPCWSTR, + pszEnvironment: LPCWSTR, + pszzCoreDriverDependencies: LPCWSTR, + cCorePrinterDrivers: DWORD, + pCorePrinterDrivers: PCORE_PRINTER_DRIVERW, + ) -> HRESULT; +} +extern "C" { + pub fn CorePrinterDriverInstalledA( + pszServer: LPCSTR, + pszEnvironment: LPCSTR, + CoreDriverGUID: GUID, + ftDriverDate: FILETIME, + dwlDriverVersion: DWORDLONG, + pbDriverInstalled: *mut BOOL, + ) -> HRESULT; +} +extern "C" { + pub fn CorePrinterDriverInstalledW( + pszServer: LPCWSTR, + pszEnvironment: LPCWSTR, + CoreDriverGUID: GUID, + ftDriverDate: FILETIME, + dwlDriverVersion: DWORDLONG, + pbDriverInstalled: *mut BOOL, + ) -> HRESULT; +} +extern "C" { + pub fn GetPrinterDriverPackagePathA( + pszServer: LPCSTR, + pszEnvironment: LPCSTR, + pszLanguage: LPCSTR, + pszPackageID: LPCSTR, + pszDriverPackageCab: LPSTR, + cchDriverPackageCab: DWORD, + pcchRequiredSize: LPDWORD, + ) -> HRESULT; +} +extern "C" { + pub fn GetPrinterDriverPackagePathW( + pszServer: LPCWSTR, + pszEnvironment: LPCWSTR, + pszLanguage: LPCWSTR, + pszPackageID: LPCWSTR, + pszDriverPackageCab: LPWSTR, + cchDriverPackageCab: DWORD, + pcchRequiredSize: LPDWORD, + ) -> HRESULT; +} +extern "C" { + pub fn DeletePrinterDriverPackageA( + pszServer: LPCSTR, + pszInfPath: LPCSTR, + pszEnvironment: LPCSTR, + ) -> HRESULT; +} +extern "C" { + pub fn DeletePrinterDriverPackageW( + pszServer: LPCWSTR, + pszInfPath: LPCWSTR, + pszEnvironment: LPCWSTR, + ) -> HRESULT; +} +pub const EPrintPropertyType_kPropertyTypeString: EPrintPropertyType = 1; +pub const EPrintPropertyType_kPropertyTypeInt32: EPrintPropertyType = 2; +pub const EPrintPropertyType_kPropertyTypeInt64: EPrintPropertyType = 3; +pub const EPrintPropertyType_kPropertyTypeByte: EPrintPropertyType = 4; +pub const EPrintPropertyType_kPropertyTypeTime: EPrintPropertyType = 5; +pub const EPrintPropertyType_kPropertyTypeDevMode: EPrintPropertyType = 6; +pub const EPrintPropertyType_kPropertyTypeSD: EPrintPropertyType = 7; +pub const EPrintPropertyType_kPropertyTypeNotificationReply: EPrintPropertyType = 8; +pub const EPrintPropertyType_kPropertyTypeNotificationOptions: EPrintPropertyType = 9; +pub const EPrintPropertyType_kPropertyTypeBuffer: EPrintPropertyType = 10; +pub type EPrintPropertyType = ::std::os::raw::c_int; +pub const EPrintXPSJobProgress_kAddingDocumentSequence: EPrintXPSJobProgress = 0; +pub const EPrintXPSJobProgress_kDocumentSequenceAdded: EPrintXPSJobProgress = 1; +pub const EPrintXPSJobProgress_kAddingFixedDocument: EPrintXPSJobProgress = 2; +pub const EPrintXPSJobProgress_kFixedDocumentAdded: EPrintXPSJobProgress = 3; +pub const EPrintXPSJobProgress_kAddingFixedPage: EPrintXPSJobProgress = 4; +pub const EPrintXPSJobProgress_kFixedPageAdded: EPrintXPSJobProgress = 5; +pub const EPrintXPSJobProgress_kResourceAdded: EPrintXPSJobProgress = 6; +pub const EPrintXPSJobProgress_kFontAdded: EPrintXPSJobProgress = 7; +pub const EPrintXPSJobProgress_kImageAdded: EPrintXPSJobProgress = 8; +pub const EPrintXPSJobProgress_kXpsDocumentCommitted: EPrintXPSJobProgress = 9; +pub type EPrintXPSJobProgress = ::std::os::raw::c_int; +pub const EPrintXPSJobOperation_kJobProduction: EPrintXPSJobOperation = 1; +pub const EPrintXPSJobOperation_kJobConsumption: EPrintXPSJobOperation = 2; +pub type EPrintXPSJobOperation = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct PrintPropertyValue { + pub ePropertyType: EPrintPropertyType, + pub value: PrintPropertyValue__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union PrintPropertyValue__bindgen_ty_1 { + pub propertyByte: BYTE, + pub propertyString: PWSTR, + pub propertyInt32: LONG, + pub propertyInt64: LONGLONG, + pub propertyBlob: PrintPropertyValue__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PrintPropertyValue__bindgen_ty_1__bindgen_ty_1 { + pub cbBuf: DWORD, + pub pBuf: LPVOID, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct PrintNamedProperty { + pub propertyName: *mut WCHAR, + pub propertyValue: PrintPropertyValue, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PrintPropertiesCollection { + pub numberOfProperties: ULONG, + pub propertiesCollection: *mut PrintNamedProperty, +} +extern "C" { + pub fn ReportJobProcessingProgress( + printerHandle: HANDLE, + jobId: ULONG, + jobOperation: EPrintXPSJobOperation, + jobProgress: EPrintXPSJobProgress, + ) -> HRESULT; +} +extern "C" { + pub fn GetPrinterDriver2A( + hWnd: HWND, + hPrinter: HANDLE, + pEnvironment: LPSTR, + Level: DWORD, + pDriverInfo: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetPrinterDriver2W( + hWnd: HWND, + hPrinter: HANDLE, + pEnvironment: LPWSTR, + Level: DWORD, + pDriverInfo: LPBYTE, + cbBuf: DWORD, + pcbNeeded: LPDWORD, + ) -> BOOL; +} +pub const PRINT_EXECUTION_CONTEXT_PRINT_EXECUTION_CONTEXT_APPLICATION: PRINT_EXECUTION_CONTEXT = 0; +pub const PRINT_EXECUTION_CONTEXT_PRINT_EXECUTION_CONTEXT_SPOOLER_SERVICE: PRINT_EXECUTION_CONTEXT = + 1; +pub const PRINT_EXECUTION_CONTEXT_PRINT_EXECUTION_CONTEXT_SPOOLER_ISOLATION_HOST: + PRINT_EXECUTION_CONTEXT = 2; +pub const PRINT_EXECUTION_CONTEXT_PRINT_EXECUTION_CONTEXT_FILTER_PIPELINE: PRINT_EXECUTION_CONTEXT = + 3; +pub const PRINT_EXECUTION_CONTEXT_PRINT_EXECUTION_CONTEXT_WOW64: PRINT_EXECUTION_CONTEXT = 4; +pub type PRINT_EXECUTION_CONTEXT = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PRINT_EXECUTION_DATA { + pub context: PRINT_EXECUTION_CONTEXT, + pub clientAppPID: DWORD, +} +extern "C" { + pub fn GetPrintExecutionData(pData: *mut PRINT_EXECUTION_DATA) -> BOOL; +} +extern "C" { + pub fn GetJobNamedPropertyValue( + hPrinter: HANDLE, + JobId: DWORD, + pszName: PCWSTR, + pValue: *mut PrintPropertyValue, + ) -> DWORD; +} +extern "C" { + pub fn FreePrintPropertyValue(pValue: *mut PrintPropertyValue); +} +extern "C" { + pub fn FreePrintNamedPropertyArray( + cProperties: DWORD, + ppProperties: *mut *mut PrintNamedProperty, + ); +} +extern "C" { + pub fn SetJobNamedProperty( + hPrinter: HANDLE, + JobId: DWORD, + pProperty: *const PrintNamedProperty, + ) -> DWORD; +} +extern "C" { + pub fn DeleteJobNamedProperty(hPrinter: HANDLE, JobId: DWORD, pszName: PCWSTR) -> DWORD; +} +extern "C" { + pub fn EnumJobNamedProperties( + hPrinter: HANDLE, + JobId: DWORD, + pcProperties: *mut DWORD, + ppProperties: *mut *mut PrintNamedProperty, + ) -> DWORD; +} +extern "C" { + pub fn GetPrintOutputInfo( + hWnd: HWND, + pszPrinter: PCWSTR, + phFile: *mut HANDLE, + ppszOutputFile: *mut PWSTR, + ) -> HRESULT; +} +extern "C" { + pub fn _calloc_base(_Count: usize, _Size: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn calloc( + _Count: ::std::os::raw::c_ulonglong, + _Size: ::std::os::raw::c_ulonglong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _callnewh(_Size: usize) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _expand( + _Block: *mut ::std::os::raw::c_void, + _Size: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _free_base(_Block: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn free(_Block: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn _malloc_base(_Size: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn malloc(_Size: ::std::os::raw::c_ulonglong) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _msize_base(_Block: *mut ::std::os::raw::c_void) -> usize; +} +extern "C" { + pub fn _msize(_Block: *mut ::std::os::raw::c_void) -> usize; +} +extern "C" { + pub fn _realloc_base( + _Block: *mut ::std::os::raw::c_void, + _Size: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn realloc( + _Block: *mut ::std::os::raw::c_void, + _Size: ::std::os::raw::c_ulonglong, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _recalloc_base( + _Block: *mut ::std::os::raw::c_void, + _Count: usize, + _Size: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _recalloc( + _Block: *mut ::std::os::raw::c_void, + _Count: usize, + _Size: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _aligned_free(_Block: *mut ::std::os::raw::c_void); +} +extern "C" { + pub fn _aligned_malloc(_Size: usize, _Alignment: usize) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _aligned_offset_malloc( + _Size: usize, + _Alignment: usize, + _Offset: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _aligned_msize( + _Block: *mut ::std::os::raw::c_void, + _Alignment: usize, + _Offset: usize, + ) -> usize; +} +extern "C" { + pub fn _aligned_offset_realloc( + _Block: *mut ::std::os::raw::c_void, + _Size: usize, + _Alignment: usize, + _Offset: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _aligned_offset_recalloc( + _Block: *mut ::std::os::raw::c_void, + _Count: usize, + _Size: usize, + _Alignment: usize, + _Offset: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _aligned_realloc( + _Block: *mut ::std::os::raw::c_void, + _Size: usize, + _Alignment: usize, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _aligned_recalloc( + _Block: *mut ::std::os::raw::c_void, + _Count: usize, + _Size: usize, + _Alignment: usize, + ) -> *mut ::std::os::raw::c_void; +} +pub type max_align_t = f64; +pub type _CoreCrtSecureSearchSortCompareFunction = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + arg3: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub type _CoreCrtNonSecureSearchSortCompareFunction = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn bsearch_s( + _Key: *const ::std::os::raw::c_void, + _Base: *const ::std::os::raw::c_void, + _NumOfElements: rsize_t, + _SizeOfElements: rsize_t, + _CompareFunction: _CoreCrtSecureSearchSortCompareFunction, + _Context: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn qsort_s( + _Base: *mut ::std::os::raw::c_void, + _NumOfElements: rsize_t, + _SizeOfElements: rsize_t, + _CompareFunction: _CoreCrtSecureSearchSortCompareFunction, + _Context: *mut ::std::os::raw::c_void, + ); +} +extern "C" { + pub fn bsearch( + _Key: *const ::std::os::raw::c_void, + _Base: *const ::std::os::raw::c_void, + _NumOfElements: usize, + _SizeOfElements: usize, + _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn qsort( + _Base: *mut ::std::os::raw::c_void, + _NumOfElements: usize, + _SizeOfElements: usize, + _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction, + ); +} +extern "C" { + pub fn _lfind_s( + _Key: *const ::std::os::raw::c_void, + _Base: *const ::std::os::raw::c_void, + _NumOfElements: *mut ::std::os::raw::c_uint, + _SizeOfElements: usize, + _CompareFunction: _CoreCrtSecureSearchSortCompareFunction, + _Context: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _lfind( + _Key: *const ::std::os::raw::c_void, + _Base: *const ::std::os::raw::c_void, + _NumOfElements: *mut ::std::os::raw::c_uint, + _SizeOfElements: ::std::os::raw::c_uint, + _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _lsearch_s( + _Key: *const ::std::os::raw::c_void, + _Base: *mut ::std::os::raw::c_void, + _NumOfElements: *mut ::std::os::raw::c_uint, + _SizeOfElements: usize, + _CompareFunction: _CoreCrtSecureSearchSortCompareFunction, + _Context: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _lsearch( + _Key: *const ::std::os::raw::c_void, + _Base: *mut ::std::os::raw::c_void, + _NumOfElements: *mut ::std::os::raw::c_uint, + _SizeOfElements: ::std::os::raw::c_uint, + _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn lfind( + _Key: *const ::std::os::raw::c_void, + _Base: *const ::std::os::raw::c_void, + _NumOfElements: *mut ::std::os::raw::c_uint, + _SizeOfElements: ::std::os::raw::c_uint, + _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn lsearch( + _Key: *const ::std::os::raw::c_void, + _Base: *mut ::std::os::raw::c_void, + _NumOfElements: *mut ::std::os::raw::c_uint, + _SizeOfElements: ::std::os::raw::c_uint, + _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + pub fn _itow_s( + _Value: ::std::os::raw::c_int, + _Buffer: *mut wchar_t, + _BufferCount: usize, + _Radix: ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn _itow( + _Value: ::std::os::raw::c_int, + _Buffer: *mut wchar_t, + _Radix: ::std::os::raw::c_int, + ) -> *mut wchar_t; +} +extern "C" { + pub fn _ltow_s( + _Value: ::std::os::raw::c_long, + _Buffer: *mut wchar_t, + _BufferCount: usize, + _Radix: ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn _ltow( + _Value: ::std::os::raw::c_long, + _Buffer: *mut wchar_t, + _Radix: ::std::os::raw::c_int, + ) -> *mut wchar_t; +} +extern "C" { + pub fn _ultow_s( + _Value: ::std::os::raw::c_ulong, + _Buffer: *mut wchar_t, + _BufferCount: usize, + _Radix: ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn _ultow( + _Value: ::std::os::raw::c_ulong, + _Buffer: *mut wchar_t, + _Radix: ::std::os::raw::c_int, + ) -> *mut wchar_t; +} +extern "C" { + pub fn wcstod(_String: *const wchar_t, _EndPtr: *mut *mut wchar_t) -> f64; +} +extern "C" { + pub fn _wcstod_l( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Locale: _locale_t, + ) -> f64; +} +extern "C" { + pub fn wcstol( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _wcstol_l( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn wcstoll( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _wcstoll_l( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn wcstoul( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn _wcstoul_l( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn wcstoull( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn _wcstoull_l( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn wcstold(_String: *const wchar_t, _EndPtr: *mut *mut wchar_t) -> f64; +} +extern "C" { + pub fn _wcstold_l( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Locale: _locale_t, + ) -> f64; +} +extern "C" { + pub fn wcstof(_String: *const wchar_t, _EndPtr: *mut *mut wchar_t) -> f32; +} +extern "C" { + pub fn _wcstof_l( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Locale: _locale_t, + ) -> f32; +} +extern "C" { + pub fn _wtof(_String: *const wchar_t) -> f64; +} +extern "C" { + pub fn _wtof_l(_String: *const wchar_t, _Locale: _locale_t) -> f64; +} +extern "C" { + pub fn _wtoi(_String: *const wchar_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wtoi_l(_String: *const wchar_t, _Locale: _locale_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wtol(_String: *const wchar_t) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _wtol_l(_String: *const wchar_t, _Locale: _locale_t) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _wtoll(_String: *const wchar_t) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _wtoll_l(_String: *const wchar_t, _Locale: _locale_t) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _i64tow_s( + _Value: ::std::os::raw::c_longlong, + _Buffer: *mut wchar_t, + _BufferCount: usize, + _Radix: ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn _i64tow( + _Value: ::std::os::raw::c_longlong, + _Buffer: *mut wchar_t, + _Radix: ::std::os::raw::c_int, + ) -> *mut wchar_t; +} +extern "C" { + pub fn _ui64tow_s( + _Value: ::std::os::raw::c_ulonglong, + _Buffer: *mut wchar_t, + _BufferCount: usize, + _Radix: ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn _ui64tow( + _Value: ::std::os::raw::c_ulonglong, + _Buffer: *mut wchar_t, + _Radix: ::std::os::raw::c_int, + ) -> *mut wchar_t; +} +extern "C" { + pub fn _wtoi64(_String: *const wchar_t) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _wtoi64_l(_String: *const wchar_t, _Locale: _locale_t) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _wcstoi64( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _wcstoi64_l( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _wcstoui64( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn _wcstoui64_l( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn _wfullpath( + _Buffer: *mut wchar_t, + _Path: *const wchar_t, + _BufferCount: usize, + ) -> *mut wchar_t; +} +extern "C" { + pub fn _wmakepath_s( + _Buffer: *mut wchar_t, + _BufferCount: usize, + _Drive: *const wchar_t, + _Dir: *const wchar_t, + _Filename: *const wchar_t, + _Ext: *const wchar_t, + ) -> errno_t; +} +extern "C" { + pub fn _wmakepath( + _Buffer: *mut wchar_t, + _Drive: *const wchar_t, + _Dir: *const wchar_t, + _Filename: *const wchar_t, + _Ext: *const wchar_t, + ); +} +extern "C" { + pub fn _wperror(_ErrorMessage: *const wchar_t); +} +extern "C" { + pub fn _wsplitpath( + _FullPath: *const wchar_t, + _Drive: *mut wchar_t, + _Dir: *mut wchar_t, + _Filename: *mut wchar_t, + _Ext: *mut wchar_t, + ); +} +extern "C" { + pub fn _wsplitpath_s( + _FullPath: *const wchar_t, + _Drive: *mut wchar_t, + _DriveCount: usize, + _Dir: *mut wchar_t, + _DirCount: usize, + _Filename: *mut wchar_t, + _FilenameCount: usize, + _Ext: *mut wchar_t, + _ExtCount: usize, + ) -> errno_t; +} +extern "C" { + pub fn _wdupenv_s( + _Buffer: *mut *mut wchar_t, + _BufferCount: *mut usize, + _VarName: *const wchar_t, + ) -> errno_t; +} +extern "C" { + pub fn _wgetenv(_VarName: *const wchar_t) -> *mut wchar_t; +} +extern "C" { + pub fn _wgetenv_s( + _RequiredCount: *mut usize, + _Buffer: *mut wchar_t, + _BufferCount: usize, + _VarName: *const wchar_t, + ) -> errno_t; +} +extern "C" { + pub fn _wputenv(_EnvString: *const wchar_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wputenv_s(_Name: *const wchar_t, _Value: *const wchar_t) -> errno_t; +} +extern "C" { + pub fn _wsearchenv_s( + _Filename: *const wchar_t, + _VarName: *const wchar_t, + _Buffer: *mut wchar_t, + _BufferCount: usize, + ) -> errno_t; +} +extern "C" { + pub fn _wsearchenv( + _Filename: *const wchar_t, + _VarName: *const wchar_t, + _ResultPath: *mut wchar_t, + ); +} +extern "C" { + pub fn _wsystem(_Command: *const wchar_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _swab( + _Buf1: *mut ::std::os::raw::c_char, + _Buf2: *mut ::std::os::raw::c_char, + _SizeInBytes: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn exit(_Code: ::std::os::raw::c_int) -> !; +} +extern "C" { + pub fn _exit(_Code: ::std::os::raw::c_int) -> !; +} +extern "C" { + pub fn _Exit(_Code: ::std::os::raw::c_int) -> !; +} +extern "C" { + pub fn quick_exit(_Code: ::std::os::raw::c_int) -> !; +} +extern "C" { + pub fn abort() -> !; +} +extern "C" { + pub fn _set_abort_behavior( + _Flags: ::std::os::raw::c_uint, + _Mask: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_uint; +} +pub type _onexit_t = ::std::option::Option ::std::os::raw::c_int>; +extern "C" { + pub fn atexit(arg1: ::std::option::Option) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _onexit(_Func: _onexit_t) -> _onexit_t; +} +extern "C" { + pub fn at_quick_exit( + arg1: ::std::option::Option, + ) -> ::std::os::raw::c_int; +} +pub type _purecall_handler = ::std::option::Option; +pub type _invalid_parameter_handler = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const wchar_t, + arg2: *const wchar_t, + arg3: *const wchar_t, + arg4: ::std::os::raw::c_uint, + arg5: usize, + ), +>; +extern "C" { + pub fn _set_purecall_handler(_Handler: _purecall_handler) -> _purecall_handler; +} +extern "C" { + pub fn _get_purecall_handler() -> _purecall_handler; +} +extern "C" { + pub fn _set_invalid_parameter_handler( + _Handler: _invalid_parameter_handler, + ) -> _invalid_parameter_handler; +} +extern "C" { + pub fn _get_invalid_parameter_handler() -> _invalid_parameter_handler; +} +extern "C" { + pub fn _set_thread_local_invalid_parameter_handler( + _Handler: _invalid_parameter_handler, + ) -> _invalid_parameter_handler; +} +extern "C" { + pub fn _get_thread_local_invalid_parameter_handler() -> _invalid_parameter_handler; +} +extern "C" { + pub fn _set_error_mode(_Mode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn __sys_errlist() -> *mut *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn __sys_nerr() -> *mut ::std::os::raw::c_int; +} +extern "C" { + pub fn perror(_ErrMsg: *const ::std::os::raw::c_char); +} +extern "C" { + pub fn __p__pgmptr() -> *mut *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn __p__wpgmptr() -> *mut *mut wchar_t; +} +extern "C" { + pub fn __p__fmode() -> *mut ::std::os::raw::c_int; +} +extern "C" { + pub fn _get_pgmptr(_Value: *mut *mut ::std::os::raw::c_char) -> errno_t; +} +extern "C" { + pub fn _get_wpgmptr(_Value: *mut *mut wchar_t) -> errno_t; +} +extern "C" { + pub fn _set_fmode(_Mode: ::std::os::raw::c_int) -> errno_t; +} +extern "C" { + pub fn _get_fmode(_PMode: *mut ::std::os::raw::c_int) -> errno_t; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _div_t { + pub quot: ::std::os::raw::c_int, + pub rem: ::std::os::raw::c_int, +} +pub type div_t = _div_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ldiv_t { + pub quot: ::std::os::raw::c_long, + pub rem: ::std::os::raw::c_long, +} +pub type ldiv_t = _ldiv_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _lldiv_t { + pub quot: ::std::os::raw::c_longlong, + pub rem: ::std::os::raw::c_longlong, +} +pub type lldiv_t = _lldiv_t; +extern "C" { + pub fn abs(_Number: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn labs(_Number: ::std::os::raw::c_long) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn llabs(_Number: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _abs64(_Number: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _byteswap_ushort(_Number: ::std::os::raw::c_ushort) -> ::std::os::raw::c_ushort; +} +extern "C" { + pub fn _byteswap_ulong(_Number: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn _byteswap_uint64(_Number: ::std::os::raw::c_ulonglong) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn div(_Numerator: ::std::os::raw::c_int, _Denominator: ::std::os::raw::c_int) -> div_t; +} +extern "C" { + pub fn ldiv(_Numerator: ::std::os::raw::c_long, _Denominator: ::std::os::raw::c_long) + -> ldiv_t; +} +extern "C" { + pub fn lldiv( + _Numerator: ::std::os::raw::c_longlong, + _Denominator: ::std::os::raw::c_longlong, + ) -> lldiv_t; +} +extern "C" { + pub fn _lrotl( + _Value: ::std::os::raw::c_ulong, + _Shift: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn _lrotr( + _Value: ::std::os::raw::c_ulong, + _Shift: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn srand(_Seed: ::std::os::raw::c_uint); +} +extern "C" { + pub fn rand() -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LDOUBLE { + pub ld: [::std::os::raw::c_uchar; 10usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRT_DOUBLE { + pub x: f64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _CRT_FLOAT { + pub f: f32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LONGDOUBLE { + pub x: f64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _LDBL12 { + pub ld12: [::std::os::raw::c_uchar; 12usize], +} +extern "C" { + pub fn atof(_String: *const ::std::os::raw::c_char) -> f64; +} +extern "C" { + pub fn atoi(_String: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn atol(_String: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn atoll(_String: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _atoi64(_String: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _atof_l(_String: *const ::std::os::raw::c_char, _Locale: _locale_t) -> f64; +} +extern "C" { + pub fn _atoi_l( + _String: *const ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _atol_l( + _String: *const ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _atoll_l( + _String: *const ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _atoi64_l( + _String: *const ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _atoflt( + _Result: *mut _CRT_FLOAT, + _String: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _atodbl( + _Result: *mut _CRT_DOUBLE, + _String: *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _atoldbl( + _Result: *mut _LDOUBLE, + _String: *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _atoflt_l( + _Result: *mut _CRT_FLOAT, + _String: *const ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _atodbl_l( + _Result: *mut _CRT_DOUBLE, + _String: *mut ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _atoldbl_l( + _Result: *mut _LDOUBLE, + _String: *mut ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn strtof( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + ) -> f32; +} +extern "C" { + pub fn _strtof_l( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> f32; +} +extern "C" { + pub fn strtod( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + ) -> f64; +} +extern "C" { + pub fn _strtod_l( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> f64; +} +extern "C" { + pub fn strtold( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + ) -> f64; +} +extern "C" { + pub fn _strtold_l( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Locale: _locale_t, + ) -> f64; +} +extern "C" { + pub fn strtol( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn _strtol_l( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> ::std::os::raw::c_long; +} +extern "C" { + pub fn strtoll( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _strtoll_l( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn strtoul( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn _strtoul_l( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn strtoull( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn _strtoull_l( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn _strtoi64( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _strtoi64_l( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> ::std::os::raw::c_longlong; +} +extern "C" { + pub fn _strtoui64( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn _strtoui64_l( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> ::std::os::raw::c_ulonglong; +} +extern "C" { + pub fn _itoa_s( + _Value: ::std::os::raw::c_int, + _Buffer: *mut ::std::os::raw::c_char, + _BufferCount: usize, + _Radix: ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn _itoa( + _Value: ::std::os::raw::c_int, + _Buffer: *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _ltoa_s( + _Value: ::std::os::raw::c_long, + _Buffer: *mut ::std::os::raw::c_char, + _BufferCount: usize, + _Radix: ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn _ltoa( + _Value: ::std::os::raw::c_long, + _Buffer: *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _ultoa_s( + _Value: ::std::os::raw::c_ulong, + _Buffer: *mut ::std::os::raw::c_char, + _BufferCount: usize, + _Radix: ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn _ultoa( + _Value: ::std::os::raw::c_ulong, + _Buffer: *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _i64toa_s( + _Value: ::std::os::raw::c_longlong, + _Buffer: *mut ::std::os::raw::c_char, + _BufferCount: usize, + _Radix: ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn _i64toa( + _Value: ::std::os::raw::c_longlong, + _Buffer: *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _ui64toa_s( + _Value: ::std::os::raw::c_ulonglong, + _Buffer: *mut ::std::os::raw::c_char, + _BufferCount: usize, + _Radix: ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn _ui64toa( + _Value: ::std::os::raw::c_ulonglong, + _Buffer: *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _ecvt_s( + _Buffer: *mut ::std::os::raw::c_char, + _BufferCount: usize, + _Value: f64, + _DigitCount: ::std::os::raw::c_int, + _PtDec: *mut ::std::os::raw::c_int, + _PtSign: *mut ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn _ecvt( + _Value: f64, + _DigitCount: ::std::os::raw::c_int, + _PtDec: *mut ::std::os::raw::c_int, + _PtSign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _fcvt_s( + _Buffer: *mut ::std::os::raw::c_char, + _BufferCount: usize, + _Value: f64, + _FractionalDigitCount: ::std::os::raw::c_int, + _PtDec: *mut ::std::os::raw::c_int, + _PtSign: *mut ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn _fcvt( + _Value: f64, + _FractionalDigitCount: ::std::os::raw::c_int, + _PtDec: *mut ::std::os::raw::c_int, + _PtSign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _gcvt_s( + _Buffer: *mut ::std::os::raw::c_char, + _BufferCount: usize, + _Value: f64, + _DigitCount: ::std::os::raw::c_int, + ) -> errno_t; +} +extern "C" { + pub fn _gcvt( + _Value: f64, + _DigitCount: ::std::os::raw::c_int, + _Buffer: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn mblen(_Ch: *const ::std::os::raw::c_char, _MaxCount: usize) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _mblen_l( + _Ch: *const ::std::os::raw::c_char, + _MaxCount: usize, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _mbstrlen(_String: *const ::std::os::raw::c_char) -> usize; +} +extern "C" { + pub fn _mbstrlen_l(_String: *const ::std::os::raw::c_char, _Locale: _locale_t) -> usize; +} +extern "C" { + pub fn _mbstrnlen(_String: *const ::std::os::raw::c_char, _MaxCount: usize) -> usize; +} +extern "C" { + pub fn _mbstrnlen_l( + _String: *const ::std::os::raw::c_char, + _MaxCount: usize, + _Locale: _locale_t, + ) -> usize; +} +extern "C" { + pub fn mbtowc( + _DstCh: *mut wchar_t, + _SrcCh: *const ::std::os::raw::c_char, + _SrcSizeInBytes: usize, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _mbtowc_l( + _DstCh: *mut wchar_t, + _SrcCh: *const ::std::os::raw::c_char, + _SrcSizeInBytes: usize, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn mbstowcs_s( + _PtNumOfCharConverted: *mut usize, + _DstBuf: *mut wchar_t, + _SizeInWords: usize, + _SrcBuf: *const ::std::os::raw::c_char, + _MaxCount: usize, + ) -> errno_t; +} +extern "C" { + pub fn mbstowcs( + _Dest: *mut wchar_t, + _Source: *const ::std::os::raw::c_char, + _MaxCount: usize, + ) -> usize; +} +extern "C" { + pub fn _mbstowcs_s_l( + _PtNumOfCharConverted: *mut usize, + _DstBuf: *mut wchar_t, + _SizeInWords: usize, + _SrcBuf: *const ::std::os::raw::c_char, + _MaxCount: usize, + _Locale: _locale_t, + ) -> errno_t; +} +extern "C" { + pub fn _mbstowcs_l( + _Dest: *mut wchar_t, + _Source: *const ::std::os::raw::c_char, + _MaxCount: usize, + _Locale: _locale_t, + ) -> usize; +} +extern "C" { + pub fn wctomb(_MbCh: *mut ::std::os::raw::c_char, _WCh: wchar_t) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _wctomb_l( + _MbCh: *mut ::std::os::raw::c_char, + _WCh: wchar_t, + _Locale: _locale_t, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn wctomb_s( + _SizeConverted: *mut ::std::os::raw::c_int, + _MbCh: *mut ::std::os::raw::c_char, + _SizeInBytes: rsize_t, + _WCh: wchar_t, + ) -> errno_t; +} +extern "C" { + pub fn _wctomb_s_l( + _SizeConverted: *mut ::std::os::raw::c_int, + _MbCh: *mut ::std::os::raw::c_char, + _SizeInBytes: usize, + _WCh: wchar_t, + _Locale: _locale_t, + ) -> errno_t; +} +extern "C" { + pub fn wcstombs_s( + _PtNumOfCharConverted: *mut usize, + _Dst: *mut ::std::os::raw::c_char, + _DstSizeInBytes: usize, + _Src: *const wchar_t, + _MaxCountInBytes: usize, + ) -> errno_t; +} +extern "C" { + pub fn wcstombs( + _Dest: *mut ::std::os::raw::c_char, + _Source: *const wchar_t, + _MaxCount: usize, + ) -> usize; +} +extern "C" { + pub fn _wcstombs_s_l( + _PtNumOfCharConverted: *mut usize, + _Dst: *mut ::std::os::raw::c_char, + _DstSizeInBytes: usize, + _Src: *const wchar_t, + _MaxCountInBytes: usize, + _Locale: _locale_t, + ) -> errno_t; +} +extern "C" { + pub fn _wcstombs_l( + _Dest: *mut ::std::os::raw::c_char, + _Source: *const wchar_t, + _MaxCount: usize, + _Locale: _locale_t, + ) -> usize; +} +extern "C" { + pub fn _fullpath( + _Buffer: *mut ::std::os::raw::c_char, + _Path: *const ::std::os::raw::c_char, + _BufferCount: usize, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _makepath_s( + _Buffer: *mut ::std::os::raw::c_char, + _BufferCount: usize, + _Drive: *const ::std::os::raw::c_char, + _Dir: *const ::std::os::raw::c_char, + _Filename: *const ::std::os::raw::c_char, + _Ext: *const ::std::os::raw::c_char, + ) -> errno_t; +} +extern "C" { + pub fn _makepath( + _Buffer: *mut ::std::os::raw::c_char, + _Drive: *const ::std::os::raw::c_char, + _Dir: *const ::std::os::raw::c_char, + _Filename: *const ::std::os::raw::c_char, + _Ext: *const ::std::os::raw::c_char, + ); +} +extern "C" { + pub fn _splitpath( + _FullPath: *const ::std::os::raw::c_char, + _Drive: *mut ::std::os::raw::c_char, + _Dir: *mut ::std::os::raw::c_char, + _Filename: *mut ::std::os::raw::c_char, + _Ext: *mut ::std::os::raw::c_char, + ); +} +extern "C" { + pub fn _splitpath_s( + _FullPath: *const ::std::os::raw::c_char, + _Drive: *mut ::std::os::raw::c_char, + _DriveCount: usize, + _Dir: *mut ::std::os::raw::c_char, + _DirCount: usize, + _Filename: *mut ::std::os::raw::c_char, + _FilenameCount: usize, + _Ext: *mut ::std::os::raw::c_char, + _ExtCount: usize, + ) -> errno_t; +} +extern "C" { + pub fn getenv_s( + _RequiredCount: *mut usize, + _Buffer: *mut ::std::os::raw::c_char, + _BufferCount: rsize_t, + _VarName: *const ::std::os::raw::c_char, + ) -> errno_t; +} +extern "C" { + pub fn __p___argc() -> *mut ::std::os::raw::c_int; +} +extern "C" { + pub fn __p___argv() -> *mut *mut *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn __p___wargv() -> *mut *mut *mut wchar_t; +} +extern "C" { + pub fn __p__environ() -> *mut *mut *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn __p__wenviron() -> *mut *mut *mut wchar_t; +} +extern "C" { + pub fn getenv(_VarName: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn _dupenv_s( + _Buffer: *mut *mut ::std::os::raw::c_char, + _BufferCount: *mut usize, + _VarName: *const ::std::os::raw::c_char, + ) -> errno_t; +} +extern "C" { + pub fn system(_Command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _putenv(_EnvString: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn _putenv_s( + _Name: *const ::std::os::raw::c_char, + _Value: *const ::std::os::raw::c_char, + ) -> errno_t; +} +extern "C" { + pub fn _searchenv_s( + _Filename: *const ::std::os::raw::c_char, + _VarName: *const ::std::os::raw::c_char, + _Buffer: *mut ::std::os::raw::c_char, + _BufferCount: usize, + ) -> errno_t; +} +extern "C" { + pub fn _searchenv( + _Filename: *const ::std::os::raw::c_char, + _VarName: *const ::std::os::raw::c_char, + _Buffer: *mut ::std::os::raw::c_char, + ); +} +extern "C" { + pub fn _seterrormode(_Mode: ::std::os::raw::c_int); +} +extern "C" { + pub fn _beep(_Frequency: ::std::os::raw::c_uint, _Duration: ::std::os::raw::c_uint); +} +extern "C" { + pub fn _sleep(_Duration: ::std::os::raw::c_ulong); +} +extern "C" { + pub fn ecvt( + _Value: f64, + _DigitCount: ::std::os::raw::c_int, + _PtDec: *mut ::std::os::raw::c_int, + _PtSign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn fcvt( + _Value: f64, + _FractionalDigitCount: ::std::os::raw::c_int, + _PtDec: *mut ::std::os::raw::c_int, + _PtSign: *mut ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn gcvt( + _Value: f64, + _DigitCount: ::std::os::raw::c_int, + _DstBuf: *mut ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn itoa( + _Value: ::std::os::raw::c_int, + _Buffer: *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn ltoa( + _Value: ::std::os::raw::c_long, + _Buffer: *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn swab( + _Buf1: *mut ::std::os::raw::c_char, + _Buf2: *mut ::std::os::raw::c_char, + _SizeInBytes: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ultoa( + _Value: ::std::os::raw::c_ulong, + _Buffer: *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn putenv(_EnvString: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn onexit(_Func: _onexit_t) -> _onexit_t; +} +pub const tagREGCLS_REGCLS_SINGLEUSE: tagREGCLS = 0; +pub const tagREGCLS_REGCLS_MULTIPLEUSE: tagREGCLS = 1; +pub const tagREGCLS_REGCLS_MULTI_SEPARATE: tagREGCLS = 2; +pub const tagREGCLS_REGCLS_SUSPENDED: tagREGCLS = 4; +pub const tagREGCLS_REGCLS_SURROGATE: tagREGCLS = 8; +pub const tagREGCLS_REGCLS_AGILE: tagREGCLS = 16; +pub type tagREGCLS = ::std::os::raw::c_int; +pub use self::tagREGCLS as REGCLS; +pub const tagCOINITBASE_COINITBASE_MULTITHREADED: tagCOINITBASE = 0; +pub type tagCOINITBASE = ::std::os::raw::c_int; +pub use self::tagCOINITBASE as COINITBASE; +extern "C" { + pub static mut __MIDL_itf_unknwnbase_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_unknwnbase_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPUNKNOWN = *mut IUnknown; +extern "C" { + pub static IID_IUnknown: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IUnknownVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUnknown, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IUnknown { + pub lpVtbl: *mut IUnknownVtbl, +} +extern "C" { + pub fn IUnknown_QueryInterface_Proxy( + This: *mut IUnknown, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn IUnknown_QueryInterface_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IUnknown_AddRef_Proxy(This: *mut IUnknown) -> ULONG; +} +extern "C" { + pub fn IUnknown_AddRef_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IUnknown_Release_Proxy(This: *mut IUnknown) -> ULONG; +} +extern "C" { + pub fn IUnknown_Release_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_unknwnbase_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_unknwnbase_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_AsyncIUnknown: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AsyncIUnknownVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIUnknown, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Begin_QueryInterface: ::std::option::Option< + unsafe extern "C" fn(This: *mut AsyncIUnknown, riid: *const IID) -> HRESULT, + >, + pub Finish_QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIUnknown, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub Begin_AddRef: + ::std::option::Option HRESULT>, + pub Finish_AddRef: + ::std::option::Option ULONG>, + pub Begin_Release: + ::std::option::Option HRESULT>, + pub Finish_Release: + ::std::option::Option ULONG>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AsyncIUnknown { + pub lpVtbl: *mut AsyncIUnknownVtbl, +} +extern "C" { + pub static mut __MIDL_itf_unknwnbase_0000_0002_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_unknwnbase_0000_0002_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPCLASSFACTORY = *mut IClassFactory; +extern "C" { + pub static IID_IClassFactory: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IClassFactoryVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IClassFactory, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub CreateInstance: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IClassFactory, + pUnkOuter: *mut IUnknown, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub LockServer: ::std::option::Option< + unsafe extern "C" fn(This: *mut IClassFactory, fLock: BOOL) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IClassFactory { + pub lpVtbl: *mut IClassFactoryVtbl, +} +extern "C" { + pub fn IClassFactory_RemoteCreateInstance_Proxy( + This: *mut IClassFactory, + riid: *const IID, + ppvObject: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn IClassFactory_RemoteCreateInstance_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IClassFactory_RemoteLockServer_Proxy(This: *mut IClassFactory, fLock: BOOL) -> HRESULT; +} +extern "C" { + pub fn IClassFactory_RemoteLockServer_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_unknwnbase_0000_0003_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_unknwnbase_0000_0003_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub fn IClassFactory_CreateInstance_Proxy( + This: *mut IClassFactory, + pUnkOuter: *mut IUnknown, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn IClassFactory_CreateInstance_Stub( + This: *mut IClassFactory, + riid: *const IID, + ppvObject: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn IClassFactory_LockServer_Proxy(This: *mut IClassFactory, fLock: BOOL) -> HRESULT; +} +extern "C" { + pub fn IClassFactory_LockServer_Stub(This: *mut IClassFactory, fLock: BOOL) -> HRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumContextProps { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IContext { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IObjContext { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _COSERVERINFO { + pub dwReserved1: DWORD, + pub pwszName: LPWSTR, + pub pAuthInfo: *mut COAUTHINFO, + pub dwReserved2: DWORD, +} +pub type COSERVERINFO = _COSERVERINFO; +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPMARSHAL = *mut IMarshal; +extern "C" { + pub static IID_IMarshal: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMarshalVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshal, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetUnmarshalClass: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshal, + riid: *const IID, + pv: *mut ::std::os::raw::c_void, + dwDestContext: DWORD, + pvDestContext: *mut ::std::os::raw::c_void, + mshlflags: DWORD, + pCid: *mut CLSID, + ) -> HRESULT, + >, + pub GetMarshalSizeMax: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshal, + riid: *const IID, + pv: *mut ::std::os::raw::c_void, + dwDestContext: DWORD, + pvDestContext: *mut ::std::os::raw::c_void, + mshlflags: DWORD, + pSize: *mut DWORD, + ) -> HRESULT, + >, + pub MarshalInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshal, + pStm: *mut IStream, + riid: *const IID, + pv: *mut ::std::os::raw::c_void, + dwDestContext: DWORD, + pvDestContext: *mut ::std::os::raw::c_void, + mshlflags: DWORD, + ) -> HRESULT, + >, + pub UnmarshalInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshal, + pStm: *mut IStream, + riid: *const IID, + ppv: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub ReleaseMarshalData: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMarshal, pStm: *mut IStream) -> HRESULT, + >, + pub DisconnectObject: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMarshal, dwReserved: DWORD) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMarshal { + pub lpVtbl: *mut IMarshalVtbl, +} +extern "C" { + pub static IID_INoMarshal: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct INoMarshalVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut INoMarshal, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct INoMarshal { + pub lpVtbl: *mut INoMarshalVtbl, +} +extern "C" { + pub static IID_IAgileObject: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAgileObjectVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAgileObject, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAgileObject { + pub lpVtbl: *mut IAgileObjectVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0003_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0003_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub const tagACTIVATIONTYPE_ACTIVATIONTYPE_UNCATEGORIZED: tagACTIVATIONTYPE = 0; +pub const tagACTIVATIONTYPE_ACTIVATIONTYPE_FROM_MONIKER: tagACTIVATIONTYPE = 1; +pub const tagACTIVATIONTYPE_ACTIVATIONTYPE_FROM_DATA: tagACTIVATIONTYPE = 2; +pub const tagACTIVATIONTYPE_ACTIVATIONTYPE_FROM_STORAGE: tagACTIVATIONTYPE = 4; +pub const tagACTIVATIONTYPE_ACTIVATIONTYPE_FROM_STREAM: tagACTIVATIONTYPE = 8; +pub const tagACTIVATIONTYPE_ACTIVATIONTYPE_FROM_FILE: tagACTIVATIONTYPE = 16; +pub type tagACTIVATIONTYPE = ::std::os::raw::c_int; +pub use self::tagACTIVATIONTYPE as ACTIVATIONTYPE; +extern "C" { + pub static IID_IActivationFilter: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IActivationFilterVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IActivationFilter, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub HandleActivation: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IActivationFilter, + dwActivationType: DWORD, + rclsid: *const IID, + pReplacementClsId: *mut CLSID, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IActivationFilter { + pub lpVtbl: *mut IActivationFilterVtbl, +} +pub type LPMARSHAL2 = *mut IMarshal2; +extern "C" { + pub static IID_IMarshal2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMarshal2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshal2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetUnmarshalClass: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshal2, + riid: *const IID, + pv: *mut ::std::os::raw::c_void, + dwDestContext: DWORD, + pvDestContext: *mut ::std::os::raw::c_void, + mshlflags: DWORD, + pCid: *mut CLSID, + ) -> HRESULT, + >, + pub GetMarshalSizeMax: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshal2, + riid: *const IID, + pv: *mut ::std::os::raw::c_void, + dwDestContext: DWORD, + pvDestContext: *mut ::std::os::raw::c_void, + mshlflags: DWORD, + pSize: *mut DWORD, + ) -> HRESULT, + >, + pub MarshalInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshal2, + pStm: *mut IStream, + riid: *const IID, + pv: *mut ::std::os::raw::c_void, + dwDestContext: DWORD, + pvDestContext: *mut ::std::os::raw::c_void, + mshlflags: DWORD, + ) -> HRESULT, + >, + pub UnmarshalInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshal2, + pStm: *mut IStream, + riid: *const IID, + ppv: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub ReleaseMarshalData: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMarshal2, pStm: *mut IStream) -> HRESULT, + >, + pub DisconnectObject: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMarshal2, dwReserved: DWORD) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMarshal2 { + pub lpVtbl: *mut IMarshal2Vtbl, +} +pub type LPMALLOC = *mut IMalloc; +extern "C" { + pub static IID_IMalloc: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMallocVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMalloc, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Alloc: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMalloc, cb: SIZE_T) -> *mut ::std::os::raw::c_void, + >, + pub Realloc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMalloc, + pv: *mut ::std::os::raw::c_void, + cb: SIZE_T, + ) -> *mut ::std::os::raw::c_void, + >, + pub Free: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMalloc, pv: *mut ::std::os::raw::c_void), + >, + pub GetSize: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMalloc, pv: *mut ::std::os::raw::c_void) -> SIZE_T, + >, + pub DidAlloc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMalloc, + pv: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + pub HeapMinimize: ::std::option::Option, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMalloc { + pub lpVtbl: *mut IMallocVtbl, +} +pub type LPSTDMARSHALINFO = *mut IStdMarshalInfo; +extern "C" { + pub static IID_IStdMarshalInfo: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IStdMarshalInfoVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStdMarshalInfo, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetClassForHandler: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStdMarshalInfo, + dwDestContext: DWORD, + pvDestContext: *mut ::std::os::raw::c_void, + pClsid: *mut CLSID, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IStdMarshalInfo { + pub lpVtbl: *mut IStdMarshalInfoVtbl, +} +pub type LPEXTERNALCONNECTION = *mut IExternalConnection; +pub const tagEXTCONN_EXTCONN_STRONG: tagEXTCONN = 1; +pub const tagEXTCONN_EXTCONN_WEAK: tagEXTCONN = 2; +pub const tagEXTCONN_EXTCONN_CALLABLE: tagEXTCONN = 4; +pub type tagEXTCONN = ::std::os::raw::c_int; +pub use self::tagEXTCONN as EXTCONN; +extern "C" { + pub static IID_IExternalConnection: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IExternalConnectionVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IExternalConnection, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub AddConnection: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IExternalConnection, + extconn: DWORD, + reserved: DWORD, + ) -> DWORD, + >, + pub ReleaseConnection: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IExternalConnection, + extconn: DWORD, + reserved: DWORD, + fLastReleaseCloses: BOOL, + ) -> DWORD, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IExternalConnection { + pub lpVtbl: *mut IExternalConnectionVtbl, +} +pub type LPMULTIQI = *mut IMultiQI; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMULTI_QI { + pub pIID: *const IID, + pub pItf: *mut IUnknown, + pub hr: HRESULT, +} +pub type MULTI_QI = tagMULTI_QI; +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0008_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0008_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IMultiQI: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMultiQIVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMultiQI, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub QueryMultipleInterfaces: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMultiQI, cMQIs: ULONG, pMQIs: *mut MULTI_QI) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMultiQI { + pub lpVtbl: *mut IMultiQIVtbl, +} +extern "C" { + pub static IID_AsyncIMultiQI: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AsyncIMultiQIVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIMultiQI, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Begin_QueryMultipleInterfaces: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIMultiQI, + cMQIs: ULONG, + pMQIs: *mut MULTI_QI, + ) -> HRESULT, + >, + pub Finish_QueryMultipleInterfaces: ::std::option::Option< + unsafe extern "C" fn(This: *mut AsyncIMultiQI, pMQIs: *mut MULTI_QI) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AsyncIMultiQI { + pub lpVtbl: *mut AsyncIMultiQIVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0009_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0009_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IInternalUnknown: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternalUnknownVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternalUnknown, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub QueryInternalInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternalUnknown, + riid: *const IID, + ppv: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternalUnknown { + pub lpVtbl: *mut IInternalUnknownVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0010_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0010_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPENUMUNKNOWN = *mut IEnumUnknown; +extern "C" { + pub static IID_IEnumUnknown: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumUnknownVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumUnknown, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Next: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumUnknown, + celt: ULONG, + rgelt: *mut *mut IUnknown, + pceltFetched: *mut ULONG, + ) -> HRESULT, + >, + pub Skip: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumUnknown, celt: ULONG) -> HRESULT, + >, + pub Reset: ::std::option::Option HRESULT>, + pub Clone: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumUnknown, ppenum: *mut *mut IEnumUnknown) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumUnknown { + pub lpVtbl: *mut IEnumUnknownVtbl, +} +extern "C" { + pub fn IEnumUnknown_RemoteNext_Proxy( + This: *mut IEnumUnknown, + celt: ULONG, + rgelt: *mut *mut IUnknown, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumUnknown_RemoteNext_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPENUMSTRING = *mut IEnumString; +extern "C" { + pub static IID_IEnumString: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumStringVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumString, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Next: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumString, + celt: ULONG, + rgelt: *mut LPOLESTR, + pceltFetched: *mut ULONG, + ) -> HRESULT, + >, + pub Skip: + ::std::option::Option HRESULT>, + pub Reset: ::std::option::Option HRESULT>, + pub Clone: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumString, ppenum: *mut *mut IEnumString) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumString { + pub lpVtbl: *mut IEnumStringVtbl, +} +extern "C" { + pub fn IEnumString_RemoteNext_Proxy( + This: *mut IEnumString, + celt: ULONG, + rgelt: *mut LPOLESTR, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumString_RemoteNext_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static IID_ISequentialStream: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISequentialStreamVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISequentialStream, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Read: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISequentialStream, + pv: *mut ::std::os::raw::c_void, + cb: ULONG, + pcbRead: *mut ULONG, + ) -> HRESULT, + >, + pub Write: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISequentialStream, + pv: *const ::std::os::raw::c_void, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISequentialStream { + pub lpVtbl: *mut ISequentialStreamVtbl, +} +extern "C" { + pub fn ISequentialStream_RemoteRead_Proxy( + This: *mut ISequentialStream, + pv: *mut byte, + cb: ULONG, + pcbRead: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ISequentialStream_RemoteRead_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ISequentialStream_RemoteWrite_Proxy( + This: *mut ISequentialStream, + pv: *const byte, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ISequentialStream_RemoteWrite_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPSTREAM = *mut IStream; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagSTATSTG { + pub pwcsName: LPOLESTR, + pub type_: DWORD, + pub cbSize: ULARGE_INTEGER, + pub mtime: FILETIME, + pub ctime: FILETIME, + pub atime: FILETIME, + pub grfMode: DWORD, + pub grfLocksSupported: DWORD, + pub clsid: CLSID, + pub grfStateBits: DWORD, + pub reserved: DWORD, +} +pub type STATSTG = tagSTATSTG; +pub const tagSTGTY_STGTY_STORAGE: tagSTGTY = 1; +pub const tagSTGTY_STGTY_STREAM: tagSTGTY = 2; +pub const tagSTGTY_STGTY_LOCKBYTES: tagSTGTY = 3; +pub const tagSTGTY_STGTY_PROPERTY: tagSTGTY = 4; +pub type tagSTGTY = ::std::os::raw::c_int; +pub use self::tagSTGTY as STGTY; +pub const tagSTREAM_SEEK_STREAM_SEEK_SET: tagSTREAM_SEEK = 0; +pub const tagSTREAM_SEEK_STREAM_SEEK_CUR: tagSTREAM_SEEK = 1; +pub const tagSTREAM_SEEK_STREAM_SEEK_END: tagSTREAM_SEEK = 2; +pub type tagSTREAM_SEEK = ::std::os::raw::c_int; +pub use self::tagSTREAM_SEEK as STREAM_SEEK; +pub const tagLOCKTYPE_LOCK_WRITE: tagLOCKTYPE = 1; +pub const tagLOCKTYPE_LOCK_EXCLUSIVE: tagLOCKTYPE = 2; +pub const tagLOCKTYPE_LOCK_ONLYONCE: tagLOCKTYPE = 4; +pub type tagLOCKTYPE = ::std::os::raw::c_int; +pub use self::tagLOCKTYPE as LOCKTYPE; +extern "C" { + pub static IID_IStream: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IStreamVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStream, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Read: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStream, + pv: *mut ::std::os::raw::c_void, + cb: ULONG, + pcbRead: *mut ULONG, + ) -> HRESULT, + >, + pub Write: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStream, + pv: *const ::std::os::raw::c_void, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT, + >, + pub Seek: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStream, + dlibMove: LARGE_INTEGER, + dwOrigin: DWORD, + plibNewPosition: *mut ULARGE_INTEGER, + ) -> HRESULT, + >, + pub SetSize: ::std::option::Option< + unsafe extern "C" fn(This: *mut IStream, libNewSize: ULARGE_INTEGER) -> HRESULT, + >, + pub CopyTo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStream, + pstm: *mut IStream, + cb: ULARGE_INTEGER, + pcbRead: *mut ULARGE_INTEGER, + pcbWritten: *mut ULARGE_INTEGER, + ) -> HRESULT, + >, + pub Commit: ::std::option::Option< + unsafe extern "C" fn(This: *mut IStream, grfCommitFlags: DWORD) -> HRESULT, + >, + pub Revert: ::std::option::Option HRESULT>, + pub LockRegion: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStream, + libOffset: ULARGE_INTEGER, + cb: ULARGE_INTEGER, + dwLockType: DWORD, + ) -> HRESULT, + >, + pub UnlockRegion: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStream, + libOffset: ULARGE_INTEGER, + cb: ULARGE_INTEGER, + dwLockType: DWORD, + ) -> HRESULT, + >, + pub Stat: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStream, + pstatstg: *mut STATSTG, + grfStatFlag: DWORD, + ) -> HRESULT, + >, + pub Clone: ::std::option::Option< + unsafe extern "C" fn(This: *mut IStream, ppstm: *mut *mut IStream) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IStream { + pub lpVtbl: *mut IStreamVtbl, +} +extern "C" { + pub fn IStream_RemoteSeek_Proxy( + This: *mut IStream, + dlibMove: LARGE_INTEGER, + dwOrigin: DWORD, + plibNewPosition: *mut ULARGE_INTEGER, + ) -> HRESULT; +} +extern "C" { + pub fn IStream_RemoteSeek_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IStream_RemoteCopyTo_Proxy( + This: *mut IStream, + pstm: *mut IStream, + cb: ULARGE_INTEGER, + pcbRead: *mut ULARGE_INTEGER, + pcbWritten: *mut ULARGE_INTEGER, + ) -> HRESULT; +} +extern "C" { + pub fn IStream_RemoteCopyTo_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type RPCOLEDATAREP = ULONG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRPCOLEMESSAGE { + pub reserved1: *mut ::std::os::raw::c_void, + pub dataRepresentation: RPCOLEDATAREP, + pub Buffer: *mut ::std::os::raw::c_void, + pub cbBuffer: ULONG, + pub iMethod: ULONG, + pub reserved2: [*mut ::std::os::raw::c_void; 5usize], + pub rpcFlags: ULONG, +} +pub type RPCOLEMESSAGE = tagRPCOLEMESSAGE; +pub type PRPCOLEMESSAGE = *mut RPCOLEMESSAGE; +extern "C" { + pub static IID_IRpcChannelBuffer: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcChannelBufferVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetBuffer: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer, + pMessage: *mut RPCOLEMESSAGE, + riid: *const IID, + ) -> HRESULT, + >, + pub SendReceive: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer, + pMessage: *mut RPCOLEMESSAGE, + pStatus: *mut ULONG, + ) -> HRESULT, + >, + pub FreeBuffer: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRpcChannelBuffer, pMessage: *mut RPCOLEMESSAGE) -> HRESULT, + >, + pub GetDestCtx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer, + pdwDestContext: *mut DWORD, + ppvDestContext: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub IsConnected: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcChannelBuffer { + pub lpVtbl: *mut IRpcChannelBufferVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0015_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0015_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IRpcChannelBuffer2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcChannelBuffer2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetBuffer: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer2, + pMessage: *mut RPCOLEMESSAGE, + riid: *const IID, + ) -> HRESULT, + >, + pub SendReceive: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer2, + pMessage: *mut RPCOLEMESSAGE, + pStatus: *mut ULONG, + ) -> HRESULT, + >, + pub FreeBuffer: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer2, + pMessage: *mut RPCOLEMESSAGE, + ) -> HRESULT, + >, + pub GetDestCtx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer2, + pdwDestContext: *mut DWORD, + ppvDestContext: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub IsConnected: + ::std::option::Option HRESULT>, + pub GetProtocolVersion: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRpcChannelBuffer2, pdwVersion: *mut DWORD) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcChannelBuffer2 { + pub lpVtbl: *mut IRpcChannelBuffer2Vtbl, +} +extern "C" { + pub static IID_IAsyncRpcChannelBuffer: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAsyncRpcChannelBufferVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAsyncRpcChannelBuffer, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetBuffer: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAsyncRpcChannelBuffer, + pMessage: *mut RPCOLEMESSAGE, + riid: *const IID, + ) -> HRESULT, + >, + pub SendReceive: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAsyncRpcChannelBuffer, + pMessage: *mut RPCOLEMESSAGE, + pStatus: *mut ULONG, + ) -> HRESULT, + >, + pub FreeBuffer: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAsyncRpcChannelBuffer, + pMessage: *mut RPCOLEMESSAGE, + ) -> HRESULT, + >, + pub GetDestCtx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAsyncRpcChannelBuffer, + pdwDestContext: *mut DWORD, + ppvDestContext: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub IsConnected: + ::std::option::Option HRESULT>, + pub GetProtocolVersion: ::std::option::Option< + unsafe extern "C" fn(This: *mut IAsyncRpcChannelBuffer, pdwVersion: *mut DWORD) -> HRESULT, + >, + pub Send: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAsyncRpcChannelBuffer, + pMsg: *mut RPCOLEMESSAGE, + pSync: *mut ISynchronize, + pulStatus: *mut ULONG, + ) -> HRESULT, + >, + pub Receive: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAsyncRpcChannelBuffer, + pMsg: *mut RPCOLEMESSAGE, + pulStatus: *mut ULONG, + ) -> HRESULT, + >, + pub GetDestCtxEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAsyncRpcChannelBuffer, + pMsg: *mut RPCOLEMESSAGE, + pdwDestContext: *mut DWORD, + ppvDestContext: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAsyncRpcChannelBuffer { + pub lpVtbl: *mut IAsyncRpcChannelBufferVtbl, +} +extern "C" { + pub static IID_IRpcChannelBuffer3: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcChannelBuffer3Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer3, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetBuffer: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer3, + pMessage: *mut RPCOLEMESSAGE, + riid: *const IID, + ) -> HRESULT, + >, + pub SendReceive: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer3, + pMessage: *mut RPCOLEMESSAGE, + pStatus: *mut ULONG, + ) -> HRESULT, + >, + pub FreeBuffer: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer3, + pMessage: *mut RPCOLEMESSAGE, + ) -> HRESULT, + >, + pub GetDestCtx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer3, + pdwDestContext: *mut DWORD, + ppvDestContext: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub IsConnected: + ::std::option::Option HRESULT>, + pub GetProtocolVersion: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRpcChannelBuffer3, pdwVersion: *mut DWORD) -> HRESULT, + >, + pub Send: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer3, + pMsg: *mut RPCOLEMESSAGE, + pulStatus: *mut ULONG, + ) -> HRESULT, + >, + pub Receive: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer3, + pMsg: *mut RPCOLEMESSAGE, + ulSize: ULONG, + pulStatus: *mut ULONG, + ) -> HRESULT, + >, + pub Cancel: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRpcChannelBuffer3, pMsg: *mut RPCOLEMESSAGE) -> HRESULT, + >, + pub GetCallContext: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer3, + pMsg: *mut RPCOLEMESSAGE, + riid: *const IID, + pInterface: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub GetDestCtxEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer3, + pMsg: *mut RPCOLEMESSAGE, + pdwDestContext: *mut DWORD, + ppvDestContext: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub GetState: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer3, + pMsg: *mut RPCOLEMESSAGE, + pState: *mut DWORD, + ) -> HRESULT, + >, + pub RegisterAsync: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcChannelBuffer3, + pMsg: *mut RPCOLEMESSAGE, + pAsyncMgr: *mut IAsyncManager, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcChannelBuffer3 { + pub lpVtbl: *mut IRpcChannelBuffer3Vtbl, +} +extern "C" { + pub static IID_IRpcSyntaxNegotiate: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcSyntaxNegotiateVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcSyntaxNegotiate, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub NegotiateSyntax: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRpcSyntaxNegotiate, pMsg: *mut RPCOLEMESSAGE) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcSyntaxNegotiate { + pub lpVtbl: *mut IRpcSyntaxNegotiateVtbl, +} +extern "C" { + pub static IID_IRpcProxyBuffer: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcProxyBufferVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcProxyBuffer, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Connect: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcProxyBuffer, + pRpcChannelBuffer: *mut IRpcChannelBuffer, + ) -> HRESULT, + >, + pub Disconnect: ::std::option::Option, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcProxyBuffer { + pub lpVtbl: *mut IRpcProxyBufferVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0020_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0020_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IRpcStubBuffer: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcStubBufferVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcStubBuffer, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Connect: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRpcStubBuffer, pUnkServer: *mut IUnknown) -> HRESULT, + >, + pub Disconnect: ::std::option::Option, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcStubBuffer, + _prpcmsg: *mut RPCOLEMESSAGE, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + ) -> HRESULT, + >, + pub IsIIDSupported: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRpcStubBuffer, riid: *const IID) -> *mut IRpcStubBuffer, + >, + pub CountRefs: ::std::option::Option ULONG>, + pub DebugServerQueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcStubBuffer, + ppv: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub DebugServerRelease: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRpcStubBuffer, pv: *mut ::std::os::raw::c_void), + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcStubBuffer { + pub lpVtbl: *mut IRpcStubBufferVtbl, +} +extern "C" { + pub static IID_IPSFactoryBuffer: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPSFactoryBufferVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPSFactoryBuffer, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub CreateProxy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPSFactoryBuffer, + pUnkOuter: *mut IUnknown, + riid: *const IID, + ppProxy: *mut *mut IRpcProxyBuffer, + ppv: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub CreateStub: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPSFactoryBuffer, + riid: *const IID, + pUnkServer: *mut IUnknown, + ppStub: *mut *mut IRpcStubBuffer, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPSFactoryBuffer { + pub lpVtbl: *mut IPSFactoryBufferVtbl, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SChannelHookCallInfo { + pub iid: IID, + pub cbSize: DWORD, + pub uCausality: GUID, + pub dwServerPid: DWORD, + pub iMethod: DWORD, + pub pObject: *mut ::std::os::raw::c_void, +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0022_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0022_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IChannelHook: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IChannelHookVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IChannelHook, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub ClientGetSize: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IChannelHook, + uExtent: *const GUID, + riid: *const IID, + pDataSize: *mut ULONG, + ), + >, + pub ClientFillBuffer: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IChannelHook, + uExtent: *const GUID, + riid: *const IID, + pDataSize: *mut ULONG, + pDataBuffer: *mut ::std::os::raw::c_void, + ), + >, + pub ClientNotify: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IChannelHook, + uExtent: *const GUID, + riid: *const IID, + cbDataSize: ULONG, + pDataBuffer: *mut ::std::os::raw::c_void, + lDataRep: DWORD, + hrFault: HRESULT, + ), + >, + pub ServerNotify: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IChannelHook, + uExtent: *const GUID, + riid: *const IID, + cbDataSize: ULONG, + pDataBuffer: *mut ::std::os::raw::c_void, + lDataRep: DWORD, + ), + >, + pub ServerGetSize: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IChannelHook, + uExtent: *const GUID, + riid: *const IID, + hrFault: HRESULT, + pDataSize: *mut ULONG, + ), + >, + pub ServerFillBuffer: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IChannelHook, + uExtent: *const GUID, + riid: *const IID, + pDataSize: *mut ULONG, + pDataBuffer: *mut ::std::os::raw::c_void, + hrFault: HRESULT, + ), + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IChannelHook { + pub lpVtbl: *mut IChannelHookVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0023_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0023_v0_0_s_ifspec: RPC_IF_HANDLE; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSOLE_AUTHENTICATION_SERVICE { + pub dwAuthnSvc: DWORD, + pub dwAuthzSvc: DWORD, + pub pPrincipalName: *mut OLECHAR, + pub hr: HRESULT, +} +pub type SOLE_AUTHENTICATION_SERVICE = tagSOLE_AUTHENTICATION_SERVICE; +pub type PSOLE_AUTHENTICATION_SERVICE = *mut SOLE_AUTHENTICATION_SERVICE; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_NONE: tagEOLE_AUTHENTICATION_CAPABILITIES = 0; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_MUTUAL_AUTH: + tagEOLE_AUTHENTICATION_CAPABILITIES = 1; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_STATIC_CLOAKING: + tagEOLE_AUTHENTICATION_CAPABILITIES = 32; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_DYNAMIC_CLOAKING: + tagEOLE_AUTHENTICATION_CAPABILITIES = 64; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_ANY_AUTHORITY: + tagEOLE_AUTHENTICATION_CAPABILITIES = 128; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_MAKE_FULLSIC: + tagEOLE_AUTHENTICATION_CAPABILITIES = 256; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_DEFAULT: tagEOLE_AUTHENTICATION_CAPABILITIES = + 2048; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_SECURE_REFS: + tagEOLE_AUTHENTICATION_CAPABILITIES = 2; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_ACCESS_CONTROL: + tagEOLE_AUTHENTICATION_CAPABILITIES = 4; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_APPID: tagEOLE_AUTHENTICATION_CAPABILITIES = 8; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_DYNAMIC: tagEOLE_AUTHENTICATION_CAPABILITIES = + 16; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_REQUIRE_FULLSIC: + tagEOLE_AUTHENTICATION_CAPABILITIES = 512; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_AUTO_IMPERSONATE: + tagEOLE_AUTHENTICATION_CAPABILITIES = 1024; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_DISABLE_AAA: + tagEOLE_AUTHENTICATION_CAPABILITIES = 4096; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_NO_CUSTOM_MARSHAL: + tagEOLE_AUTHENTICATION_CAPABILITIES = 8192; +pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_RESERVED1: tagEOLE_AUTHENTICATION_CAPABILITIES = + 16384; +pub type tagEOLE_AUTHENTICATION_CAPABILITIES = ::std::os::raw::c_int; +pub use self::tagEOLE_AUTHENTICATION_CAPABILITIES as EOLE_AUTHENTICATION_CAPABILITIES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSOLE_AUTHENTICATION_INFO { + pub dwAuthnSvc: DWORD, + pub dwAuthzSvc: DWORD, + pub pAuthInfo: *mut ::std::os::raw::c_void, +} +pub type SOLE_AUTHENTICATION_INFO = tagSOLE_AUTHENTICATION_INFO; +pub type PSOLE_AUTHENTICATION_INFO = *mut tagSOLE_AUTHENTICATION_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSOLE_AUTHENTICATION_LIST { + pub cAuthInfo: DWORD, + pub aAuthInfo: *mut SOLE_AUTHENTICATION_INFO, +} +pub type SOLE_AUTHENTICATION_LIST = tagSOLE_AUTHENTICATION_LIST; +pub type PSOLE_AUTHENTICATION_LIST = *mut tagSOLE_AUTHENTICATION_LIST; +extern "C" { + pub static IID_IClientSecurity: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IClientSecurityVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IClientSecurity, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub QueryBlanket: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IClientSecurity, + pProxy: *mut IUnknown, + pAuthnSvc: *mut DWORD, + pAuthzSvc: *mut DWORD, + pServerPrincName: *mut *mut OLECHAR, + pAuthnLevel: *mut DWORD, + pImpLevel: *mut DWORD, + pAuthInfo: *mut *mut ::std::os::raw::c_void, + pCapabilites: *mut DWORD, + ) -> HRESULT, + >, + pub SetBlanket: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IClientSecurity, + pProxy: *mut IUnknown, + dwAuthnSvc: DWORD, + dwAuthzSvc: DWORD, + pServerPrincName: *mut OLECHAR, + dwAuthnLevel: DWORD, + dwImpLevel: DWORD, + pAuthInfo: *mut ::std::os::raw::c_void, + dwCapabilities: DWORD, + ) -> HRESULT, + >, + pub CopyProxy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IClientSecurity, + pProxy: *mut IUnknown, + ppCopy: *mut *mut IUnknown, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IClientSecurity { + pub lpVtbl: *mut IClientSecurityVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0024_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0024_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IServerSecurity: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IServerSecurityVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IServerSecurity, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub QueryBlanket: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IServerSecurity, + pAuthnSvc: *mut DWORD, + pAuthzSvc: *mut DWORD, + pServerPrincName: *mut *mut OLECHAR, + pAuthnLevel: *mut DWORD, + pImpLevel: *mut DWORD, + pPrivs: *mut *mut ::std::os::raw::c_void, + pCapabilities: *mut DWORD, + ) -> HRESULT, + >, + pub ImpersonateClient: + ::std::option::Option HRESULT>, + pub RevertToSelf: + ::std::option::Option HRESULT>, + pub IsImpersonating: + ::std::option::Option BOOL>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IServerSecurity { + pub lpVtbl: *mut IServerSecurityVtbl, +} +pub const tagRPCOPT_PROPERTIES_COMBND_RPCTIMEOUT: tagRPCOPT_PROPERTIES = 1; +pub const tagRPCOPT_PROPERTIES_COMBND_SERVER_LOCALITY: tagRPCOPT_PROPERTIES = 2; +pub const tagRPCOPT_PROPERTIES_COMBND_RESERVED1: tagRPCOPT_PROPERTIES = 4; +pub const tagRPCOPT_PROPERTIES_COMBND_RESERVED2: tagRPCOPT_PROPERTIES = 5; +pub const tagRPCOPT_PROPERTIES_COMBND_RESERVED3: tagRPCOPT_PROPERTIES = 8; +pub const tagRPCOPT_PROPERTIES_COMBND_RESERVED4: tagRPCOPT_PROPERTIES = 16; +pub type tagRPCOPT_PROPERTIES = ::std::os::raw::c_int; +pub use self::tagRPCOPT_PROPERTIES as RPCOPT_PROPERTIES; +pub const tagRPCOPT_SERVER_LOCALITY_VALUES_SERVER_LOCALITY_PROCESS_LOCAL: + tagRPCOPT_SERVER_LOCALITY_VALUES = 0; +pub const tagRPCOPT_SERVER_LOCALITY_VALUES_SERVER_LOCALITY_MACHINE_LOCAL: + tagRPCOPT_SERVER_LOCALITY_VALUES = 1; +pub const tagRPCOPT_SERVER_LOCALITY_VALUES_SERVER_LOCALITY_REMOTE: + tagRPCOPT_SERVER_LOCALITY_VALUES = 2; +pub type tagRPCOPT_SERVER_LOCALITY_VALUES = ::std::os::raw::c_int; +pub use self::tagRPCOPT_SERVER_LOCALITY_VALUES as RPCOPT_SERVER_LOCALITY_VALUES; +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0025_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0025_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IRpcOptions: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcOptionsVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcOptions, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Set: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcOptions, + pPrx: *mut IUnknown, + dwProperty: RPCOPT_PROPERTIES, + dwValue: ULONG_PTR, + ) -> HRESULT, + >, + pub Query: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcOptions, + pPrx: *mut IUnknown, + dwProperty: RPCOPT_PROPERTIES, + pdwValue: *mut ULONG_PTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcOptions { + pub lpVtbl: *mut IRpcOptionsVtbl, +} +pub const tagGLOBALOPT_PROPERTIES_COMGLB_EXCEPTION_HANDLING: tagGLOBALOPT_PROPERTIES = 1; +pub const tagGLOBALOPT_PROPERTIES_COMGLB_APPID: tagGLOBALOPT_PROPERTIES = 2; +pub const tagGLOBALOPT_PROPERTIES_COMGLB_RPC_THREADPOOL_SETTING: tagGLOBALOPT_PROPERTIES = 3; +pub const tagGLOBALOPT_PROPERTIES_COMGLB_RO_SETTINGS: tagGLOBALOPT_PROPERTIES = 4; +pub const tagGLOBALOPT_PROPERTIES_COMGLB_UNMARSHALING_POLICY: tagGLOBALOPT_PROPERTIES = 5; +pub const tagGLOBALOPT_PROPERTIES_COMGLB_PROPERTIES_RESERVED1: tagGLOBALOPT_PROPERTIES = 6; +pub const tagGLOBALOPT_PROPERTIES_COMGLB_PROPERTIES_RESERVED2: tagGLOBALOPT_PROPERTIES = 7; +pub const tagGLOBALOPT_PROPERTIES_COMGLB_PROPERTIES_RESERVED3: tagGLOBALOPT_PROPERTIES = 8; +pub type tagGLOBALOPT_PROPERTIES = ::std::os::raw::c_int; +pub use self::tagGLOBALOPT_PROPERTIES as GLOBALOPT_PROPERTIES; +pub const tagGLOBALOPT_EH_VALUES_COMGLB_EXCEPTION_HANDLE: tagGLOBALOPT_EH_VALUES = 0; +pub const tagGLOBALOPT_EH_VALUES_COMGLB_EXCEPTION_DONOT_HANDLE_FATAL: tagGLOBALOPT_EH_VALUES = 1; +pub const tagGLOBALOPT_EH_VALUES_COMGLB_EXCEPTION_DONOT_HANDLE: tagGLOBALOPT_EH_VALUES = 1; +pub const tagGLOBALOPT_EH_VALUES_COMGLB_EXCEPTION_DONOT_HANDLE_ANY: tagGLOBALOPT_EH_VALUES = 2; +pub type tagGLOBALOPT_EH_VALUES = ::std::os::raw::c_int; +pub use self::tagGLOBALOPT_EH_VALUES as GLOBALOPT_EH_VALUES; +pub const tagGLOBALOPT_RPCTP_VALUES_COMGLB_RPC_THREADPOOL_SETTING_DEFAULT_POOL: + tagGLOBALOPT_RPCTP_VALUES = 0; +pub const tagGLOBALOPT_RPCTP_VALUES_COMGLB_RPC_THREADPOOL_SETTING_PRIVATE_POOL: + tagGLOBALOPT_RPCTP_VALUES = 1; +pub type tagGLOBALOPT_RPCTP_VALUES = ::std::os::raw::c_int; +pub use self::tagGLOBALOPT_RPCTP_VALUES as GLOBALOPT_RPCTP_VALUES; +pub const tagGLOBALOPT_RO_FLAGS_COMGLB_STA_MODALLOOP_REMOVE_TOUCH_MESSAGES: tagGLOBALOPT_RO_FLAGS = + 1; +pub const tagGLOBALOPT_RO_FLAGS_COMGLB_STA_MODALLOOP_SHARED_QUEUE_REMOVE_INPUT_MESSAGES: + tagGLOBALOPT_RO_FLAGS = 2; +pub const tagGLOBALOPT_RO_FLAGS_COMGLB_STA_MODALLOOP_SHARED_QUEUE_DONOT_REMOVE_INPUT_MESSAGES: + tagGLOBALOPT_RO_FLAGS = 4; +pub const tagGLOBALOPT_RO_FLAGS_COMGLB_FAST_RUNDOWN: tagGLOBALOPT_RO_FLAGS = 8; +pub const tagGLOBALOPT_RO_FLAGS_COMGLB_RESERVED1: tagGLOBALOPT_RO_FLAGS = 16; +pub const tagGLOBALOPT_RO_FLAGS_COMGLB_RESERVED2: tagGLOBALOPT_RO_FLAGS = 32; +pub const tagGLOBALOPT_RO_FLAGS_COMGLB_RESERVED3: tagGLOBALOPT_RO_FLAGS = 64; +pub const tagGLOBALOPT_RO_FLAGS_COMGLB_STA_MODALLOOP_SHARED_QUEUE_REORDER_POINTER_MESSAGES: + tagGLOBALOPT_RO_FLAGS = 128; +pub const tagGLOBALOPT_RO_FLAGS_COMGLB_RESERVED4: tagGLOBALOPT_RO_FLAGS = 256; +pub const tagGLOBALOPT_RO_FLAGS_COMGLB_RESERVED5: tagGLOBALOPT_RO_FLAGS = 512; +pub const tagGLOBALOPT_RO_FLAGS_COMGLB_RESERVED6: tagGLOBALOPT_RO_FLAGS = 1024; +pub type tagGLOBALOPT_RO_FLAGS = ::std::os::raw::c_int; +pub use self::tagGLOBALOPT_RO_FLAGS as GLOBALOPT_RO_FLAGS; +pub const tagGLOBALOPT_UNMARSHALING_POLICY_VALUES_COMGLB_UNMARSHALING_POLICY_NORMAL: + tagGLOBALOPT_UNMARSHALING_POLICY_VALUES = 0; +pub const tagGLOBALOPT_UNMARSHALING_POLICY_VALUES_COMGLB_UNMARSHALING_POLICY_STRONG: + tagGLOBALOPT_UNMARSHALING_POLICY_VALUES = 1; +pub const tagGLOBALOPT_UNMARSHALING_POLICY_VALUES_COMGLB_UNMARSHALING_POLICY_HYBRID: + tagGLOBALOPT_UNMARSHALING_POLICY_VALUES = 2; +pub type tagGLOBALOPT_UNMARSHALING_POLICY_VALUES = ::std::os::raw::c_int; +pub use self::tagGLOBALOPT_UNMARSHALING_POLICY_VALUES as GLOBALOPT_UNMARSHALING_POLICY_VALUES; +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0026_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0026_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IGlobalOptions: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IGlobalOptionsVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IGlobalOptions, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Set: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IGlobalOptions, + dwProperty: GLOBALOPT_PROPERTIES, + dwValue: ULONG_PTR, + ) -> HRESULT, + >, + pub Query: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IGlobalOptions, + dwProperty: GLOBALOPT_PROPERTIES, + pdwValue: *mut ULONG_PTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IGlobalOptions { + pub lpVtbl: *mut IGlobalOptionsVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0027_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0027_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPSURROGATE = *mut ISurrogate; +extern "C" { + pub static IID_ISurrogate: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISurrogateVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISurrogate, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub LoadDllServer: ::std::option::Option< + unsafe extern "C" fn(This: *mut ISurrogate, Clsid: *const IID) -> HRESULT, + >, + pub FreeSurrogate: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISurrogate { + pub lpVtbl: *mut ISurrogateVtbl, +} +pub type LPGLOBALINTERFACETABLE = *mut IGlobalInterfaceTable; +extern "C" { + pub static IID_IGlobalInterfaceTable: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IGlobalInterfaceTableVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IGlobalInterfaceTable, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub RegisterInterfaceInGlobal: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IGlobalInterfaceTable, + pUnk: *mut IUnknown, + riid: *const IID, + pdwCookie: *mut DWORD, + ) -> HRESULT, + >, + pub RevokeInterfaceFromGlobal: ::std::option::Option< + unsafe extern "C" fn(This: *mut IGlobalInterfaceTable, dwCookie: DWORD) -> HRESULT, + >, + pub GetInterfaceFromGlobal: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IGlobalInterfaceTable, + dwCookie: DWORD, + riid: *const IID, + ppv: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IGlobalInterfaceTable { + pub lpVtbl: *mut IGlobalInterfaceTableVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0029_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0029_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_ISynchronize: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISynchronizeVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISynchronize, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Wait: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISynchronize, + dwFlags: DWORD, + dwMilliseconds: DWORD, + ) -> HRESULT, + >, + pub Signal: ::std::option::Option HRESULT>, + pub Reset: ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISynchronize { + pub lpVtbl: *mut ISynchronizeVtbl, +} +extern "C" { + pub static IID_ISynchronizeHandle: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISynchronizeHandleVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISynchronizeHandle, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetHandle: ::std::option::Option< + unsafe extern "C" fn(This: *mut ISynchronizeHandle, ph: *mut HANDLE) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISynchronizeHandle { + pub lpVtbl: *mut ISynchronizeHandleVtbl, +} +extern "C" { + pub static IID_ISynchronizeEvent: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISynchronizeEventVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISynchronizeEvent, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetHandle: ::std::option::Option< + unsafe extern "C" fn(This: *mut ISynchronizeEvent, ph: *mut HANDLE) -> HRESULT, + >, + pub SetEventHandle: ::std::option::Option< + unsafe extern "C" fn(This: *mut ISynchronizeEvent, ph: *mut HANDLE) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISynchronizeEvent { + pub lpVtbl: *mut ISynchronizeEventVtbl, +} +extern "C" { + pub static IID_ISynchronizeContainer: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISynchronizeContainerVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISynchronizeContainer, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub AddSynchronize: ::std::option::Option< + unsafe extern "C" fn(This: *mut ISynchronizeContainer, pSync: *mut ISynchronize) -> HRESULT, + >, + pub WaitMultiple: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISynchronizeContainer, + dwFlags: DWORD, + dwTimeOut: DWORD, + ppSync: *mut *mut ISynchronize, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISynchronizeContainer { + pub lpVtbl: *mut ISynchronizeContainerVtbl, +} +extern "C" { + pub static IID_ISynchronizeMutex: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISynchronizeMutexVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISynchronizeMutex, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Wait: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISynchronizeMutex, + dwFlags: DWORD, + dwMilliseconds: DWORD, + ) -> HRESULT, + >, + pub Signal: + ::std::option::Option HRESULT>, + pub Reset: ::std::option::Option HRESULT>, + pub ReleaseMutex: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISynchronizeMutex { + pub lpVtbl: *mut ISynchronizeMutexVtbl, +} +pub type LPCANCELMETHODCALLS = *mut ICancelMethodCalls; +extern "C" { + pub static IID_ICancelMethodCalls: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICancelMethodCallsVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICancelMethodCalls, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub Cancel: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICancelMethodCalls, ulSeconds: ULONG) -> HRESULT, + >, + pub TestCancel: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICancelMethodCalls { + pub lpVtbl: *mut ICancelMethodCallsVtbl, +} +pub const tagDCOM_CALL_STATE_DCOM_NONE: tagDCOM_CALL_STATE = 0; +pub const tagDCOM_CALL_STATE_DCOM_CALL_COMPLETE: tagDCOM_CALL_STATE = 1; +pub const tagDCOM_CALL_STATE_DCOM_CALL_CANCELED: tagDCOM_CALL_STATE = 2; +pub type tagDCOM_CALL_STATE = ::std::os::raw::c_int; +pub use self::tagDCOM_CALL_STATE as DCOM_CALL_STATE; +extern "C" { + pub static IID_IAsyncManager: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAsyncManagerVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAsyncManager, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub CompleteCall: ::std::option::Option< + unsafe extern "C" fn(This: *mut IAsyncManager, Result: HRESULT) -> HRESULT, + >, + pub GetCallContext: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAsyncManager, + riid: *const IID, + pInterface: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub GetState: ::std::option::Option< + unsafe extern "C" fn(This: *mut IAsyncManager, pulStateFlags: *mut ULONG) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAsyncManager { + pub lpVtbl: *mut IAsyncManagerVtbl, +} +extern "C" { + pub static IID_ICallFactory: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICallFactoryVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICallFactory, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub CreateCall: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICallFactory, + riid: *const IID, + pCtrlUnk: *mut IUnknown, + riid2: *const IID, + ppv: *mut *mut IUnknown, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICallFactory { + pub lpVtbl: *mut ICallFactoryVtbl, +} +extern "C" { + pub static IID_IRpcHelper: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcHelperVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcHelper, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetDCOMProtocolVersion: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRpcHelper, pComVersion: *mut DWORD) -> HRESULT, + >, + pub GetIIDFromOBJREF: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRpcHelper, + pObjRef: *mut ::std::os::raw::c_void, + piid: *mut *mut IID, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRpcHelper { + pub lpVtbl: *mut IRpcHelperVtbl, +} +extern "C" { + pub static IID_IReleaseMarshalBuffers: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IReleaseMarshalBuffersVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IReleaseMarshalBuffers, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub ReleaseMarshalBuffer: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IReleaseMarshalBuffers, + pMsg: *mut RPCOLEMESSAGE, + dwFlags: DWORD, + pChnl: *mut IUnknown, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IReleaseMarshalBuffers { + pub lpVtbl: *mut IReleaseMarshalBuffersVtbl, +} +extern "C" { + pub static IID_IWaitMultiple: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWaitMultipleVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWaitMultiple, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub WaitMultiple: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWaitMultiple, + timeout: DWORD, + pSync: *mut *mut ISynchronize, + ) -> HRESULT, + >, + pub AddSynchronize: ::std::option::Option< + unsafe extern "C" fn(This: *mut IWaitMultiple, pSync: *mut ISynchronize) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWaitMultiple { + pub lpVtbl: *mut IWaitMultipleVtbl, +} +pub type LPADDRTRACKINGCONTROL = *mut IAddrTrackingControl; +extern "C" { + pub static IID_IAddrTrackingControl: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAddrTrackingControlVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAddrTrackingControl, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub EnableCOMDynamicAddrTracking: + ::std::option::Option HRESULT>, + pub DisableCOMDynamicAddrTracking: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAddrTrackingControl { + pub lpVtbl: *mut IAddrTrackingControlVtbl, +} +pub type LPADDREXCLUSIONCONTROL = *mut IAddrExclusionControl; +extern "C" { + pub static IID_IAddrExclusionControl: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAddrExclusionControlVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAddrExclusionControl, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetCurrentAddrExclusionList: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAddrExclusionControl, + riid: *const IID, + ppEnumerator: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub UpdateAddrExclusionList: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAddrExclusionControl, + pEnumerator: *mut IUnknown, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAddrExclusionControl { + pub lpVtbl: *mut IAddrExclusionControlVtbl, +} +extern "C" { + pub static IID_IPipeByte: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPipeByteVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPipeByte, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Pull: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPipeByte, + buf: *mut BYTE, + cRequest: ULONG, + pcReturned: *mut ULONG, + ) -> HRESULT, + >, + pub Push: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPipeByte, buf: *mut BYTE, cSent: ULONG) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPipeByte { + pub lpVtbl: *mut IPipeByteVtbl, +} +extern "C" { + pub static IID_AsyncIPipeByte: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AsyncIPipeByteVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIPipeByte, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Begin_Pull: ::std::option::Option< + unsafe extern "C" fn(This: *mut AsyncIPipeByte, cRequest: ULONG) -> HRESULT, + >, + pub Finish_Pull: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIPipeByte, + buf: *mut BYTE, + pcReturned: *mut ULONG, + ) -> HRESULT, + >, + pub Begin_Push: ::std::option::Option< + unsafe extern "C" fn(This: *mut AsyncIPipeByte, buf: *mut BYTE, cSent: ULONG) -> HRESULT, + >, + pub Finish_Push: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AsyncIPipeByte { + pub lpVtbl: *mut AsyncIPipeByteVtbl, +} +extern "C" { + pub static IID_IPipeLong: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPipeLongVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPipeLong, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Pull: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPipeLong, + buf: *mut LONG, + cRequest: ULONG, + pcReturned: *mut ULONG, + ) -> HRESULT, + >, + pub Push: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPipeLong, buf: *mut LONG, cSent: ULONG) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPipeLong { + pub lpVtbl: *mut IPipeLongVtbl, +} +extern "C" { + pub static IID_AsyncIPipeLong: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AsyncIPipeLongVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIPipeLong, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Begin_Pull: ::std::option::Option< + unsafe extern "C" fn(This: *mut AsyncIPipeLong, cRequest: ULONG) -> HRESULT, + >, + pub Finish_Pull: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIPipeLong, + buf: *mut LONG, + pcReturned: *mut ULONG, + ) -> HRESULT, + >, + pub Begin_Push: ::std::option::Option< + unsafe extern "C" fn(This: *mut AsyncIPipeLong, buf: *mut LONG, cSent: ULONG) -> HRESULT, + >, + pub Finish_Push: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AsyncIPipeLong { + pub lpVtbl: *mut AsyncIPipeLongVtbl, +} +extern "C" { + pub static IID_IPipeDouble: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPipeDoubleVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPipeDouble, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Pull: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPipeDouble, + buf: *mut DOUBLE, + cRequest: ULONG, + pcReturned: *mut ULONG, + ) -> HRESULT, + >, + pub Push: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPipeDouble, buf: *mut DOUBLE, cSent: ULONG) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPipeDouble { + pub lpVtbl: *mut IPipeDoubleVtbl, +} +extern "C" { + pub static IID_AsyncIPipeDouble: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AsyncIPipeDoubleVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIPipeDouble, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Begin_Pull: ::std::option::Option< + unsafe extern "C" fn(This: *mut AsyncIPipeDouble, cRequest: ULONG) -> HRESULT, + >, + pub Finish_Pull: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIPipeDouble, + buf: *mut DOUBLE, + pcReturned: *mut ULONG, + ) -> HRESULT, + >, + pub Begin_Push: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIPipeDouble, + buf: *mut DOUBLE, + cSent: ULONG, + ) -> HRESULT, + >, + pub Finish_Push: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AsyncIPipeDouble { + pub lpVtbl: *mut AsyncIPipeDoubleVtbl, +} +pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_NONE: _APTTYPEQUALIFIER = 0; +pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_IMPLICIT_MTA: _APTTYPEQUALIFIER = 1; +pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_NA_ON_MTA: _APTTYPEQUALIFIER = 2; +pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_NA_ON_STA: _APTTYPEQUALIFIER = 3; +pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_NA_ON_IMPLICIT_MTA: _APTTYPEQUALIFIER = 4; +pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_NA_ON_MAINSTA: _APTTYPEQUALIFIER = 5; +pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_APPLICATION_STA: _APTTYPEQUALIFIER = 6; +pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_RESERVED_1: _APTTYPEQUALIFIER = 7; +pub type _APTTYPEQUALIFIER = ::std::os::raw::c_int; +pub use self::_APTTYPEQUALIFIER as APTTYPEQUALIFIER; +pub const _APTTYPE_APTTYPE_CURRENT: _APTTYPE = -1; +pub const _APTTYPE_APTTYPE_STA: _APTTYPE = 0; +pub const _APTTYPE_APTTYPE_MTA: _APTTYPE = 1; +pub const _APTTYPE_APTTYPE_NA: _APTTYPE = 2; +pub const _APTTYPE_APTTYPE_MAINSTA: _APTTYPE = 3; +pub type _APTTYPE = ::std::os::raw::c_int; +pub use self::_APTTYPE as APTTYPE; +pub const _THDTYPE_THDTYPE_BLOCKMESSAGES: _THDTYPE = 0; +pub const _THDTYPE_THDTYPE_PROCESSMESSAGES: _THDTYPE = 1; +pub type _THDTYPE = ::std::os::raw::c_int; +pub use self::_THDTYPE as THDTYPE; +pub type APARTMENTID = DWORD; +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0048_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0048_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IComThreadingInfo: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IComThreadingInfoVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IComThreadingInfo, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetCurrentApartmentType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IComThreadingInfo, pAptType: *mut APTTYPE) -> HRESULT, + >, + pub GetCurrentThreadType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IComThreadingInfo, pThreadType: *mut THDTYPE) -> HRESULT, + >, + pub GetCurrentLogicalThreadId: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IComThreadingInfo, + pguidLogicalThreadId: *mut GUID, + ) -> HRESULT, + >, + pub SetCurrentLogicalThreadId: ::std::option::Option< + unsafe extern "C" fn(This: *mut IComThreadingInfo, rguid: *const GUID) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IComThreadingInfo { + pub lpVtbl: *mut IComThreadingInfoVtbl, +} +extern "C" { + pub static IID_IProcessInitControl: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IProcessInitControlVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IProcessInitControl, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub ResetInitializerTimeout: ::std::option::Option< + unsafe extern "C" fn(This: *mut IProcessInitControl, dwSecondsRemaining: DWORD) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IProcessInitControl { + pub lpVtbl: *mut IProcessInitControlVtbl, +} +extern "C" { + pub static IID_IFastRundown: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IFastRundownVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IFastRundown, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IFastRundown { + pub lpVtbl: *mut IFastRundownVtbl, +} +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_SOURCE_IS_APP_CONTAINER: + CO_MARSHALING_CONTEXT_ATTRIBUTES = 0; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_1: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483648; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_2: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483647; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_3: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483646; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_4: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483645; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_5: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483644; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_6: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483643; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_7: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483642; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_8: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483641; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_9: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483640; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_10: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483639; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_11: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483638; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_12: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483637; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_13: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483636; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_14: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483635; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_15: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483634; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_16: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483633; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_17: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483632; +pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_18: + CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483631; +pub type CO_MARSHALING_CONTEXT_ATTRIBUTES = ::std::os::raw::c_int; +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0051_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0051_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IMarshalingStream: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMarshalingStreamVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshalingStream, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Read: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshalingStream, + pv: *mut ::std::os::raw::c_void, + cb: ULONG, + pcbRead: *mut ULONG, + ) -> HRESULT, + >, + pub Write: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshalingStream, + pv: *const ::std::os::raw::c_void, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT, + >, + pub Seek: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshalingStream, + dlibMove: LARGE_INTEGER, + dwOrigin: DWORD, + plibNewPosition: *mut ULARGE_INTEGER, + ) -> HRESULT, + >, + pub SetSize: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMarshalingStream, libNewSize: ULARGE_INTEGER) -> HRESULT, + >, + pub CopyTo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshalingStream, + pstm: *mut IStream, + cb: ULARGE_INTEGER, + pcbRead: *mut ULARGE_INTEGER, + pcbWritten: *mut ULARGE_INTEGER, + ) -> HRESULT, + >, + pub Commit: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMarshalingStream, grfCommitFlags: DWORD) -> HRESULT, + >, + pub Revert: + ::std::option::Option HRESULT>, + pub LockRegion: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshalingStream, + libOffset: ULARGE_INTEGER, + cb: ULARGE_INTEGER, + dwLockType: DWORD, + ) -> HRESULT, + >, + pub UnlockRegion: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshalingStream, + libOffset: ULARGE_INTEGER, + cb: ULARGE_INTEGER, + dwLockType: DWORD, + ) -> HRESULT, + >, + pub Stat: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshalingStream, + pstatstg: *mut STATSTG, + grfStatFlag: DWORD, + ) -> HRESULT, + >, + pub Clone: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMarshalingStream, ppstm: *mut *mut IStream) -> HRESULT, + >, + pub GetMarshalingContextAttribute: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMarshalingStream, + attribute: CO_MARSHALING_CONTEXT_ATTRIBUTES, + pAttributeValue: *mut ULONG_PTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMarshalingStream { + pub lpVtbl: *mut IMarshalingStreamVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0052_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0052_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IAgileReference: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAgileReferenceVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAgileReference, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Resolve: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAgileReference, + riid: *const IID, + ppvObjectReference: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAgileReference { + pub lpVtbl: *mut IAgileReferenceVtbl, +} +extern "C" { + pub static IID_ICallbackWithNoReentrancyToApplicationSTA: GUID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MachineGlobalObjectTableRegistrationToken__ { + pub unused: ::std::os::raw::c_int, +} +pub type MachineGlobalObjectTableRegistrationToken = + *mut MachineGlobalObjectTableRegistrationToken__; +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0053_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0053_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IMachineGlobalObjectTable: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMachineGlobalObjectTableVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMachineGlobalObjectTable, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub RegisterObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMachineGlobalObjectTable, + clsid: *const IID, + identifier: LPCWSTR, + object: *mut IUnknown, + token: *mut MachineGlobalObjectTableRegistrationToken, + ) -> HRESULT, + >, + pub GetObjectA: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMachineGlobalObjectTable, + clsid: *const IID, + identifier: LPCWSTR, + riid: *const IID, + ppv: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub RevokeObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMachineGlobalObjectTable, + token: MachineGlobalObjectTableRegistrationToken, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMachineGlobalObjectTable { + pub lpVtbl: *mut IMachineGlobalObjectTableVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0054_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0054_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_ISupportAllowLowerTrustActivation: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISupportAllowLowerTrustActivationVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISupportAllowLowerTrustActivation, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option< + unsafe extern "C" fn(This: *mut ISupportAllowLowerTrustActivation) -> ULONG, + >, + pub Release: ::std::option::Option< + unsafe extern "C" fn(This: *mut ISupportAllowLowerTrustActivation) -> ULONG, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISupportAllowLowerTrustActivation { + pub lpVtbl: *mut ISupportAllowLowerTrustActivationVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0055_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidlbase_0000_0055_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub fn IEnumUnknown_Next_Proxy( + This: *mut IEnumUnknown, + celt: ULONG, + rgelt: *mut *mut IUnknown, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumUnknown_Next_Stub( + This: *mut IEnumUnknown, + celt: ULONG, + rgelt: *mut *mut IUnknown, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumString_Next_Proxy( + This: *mut IEnumString, + celt: ULONG, + rgelt: *mut LPOLESTR, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumString_Next_Stub( + This: *mut IEnumString, + celt: ULONG, + rgelt: *mut LPOLESTR, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ISequentialStream_Read_Proxy( + This: *mut ISequentialStream, + pv: *mut ::std::os::raw::c_void, + cb: ULONG, + pcbRead: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ISequentialStream_Read_Stub( + This: *mut ISequentialStream, + pv: *mut byte, + cb: ULONG, + pcbRead: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ISequentialStream_Write_Proxy( + This: *mut ISequentialStream, + pv: *const ::std::os::raw::c_void, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ISequentialStream_Write_Stub( + This: *mut ISequentialStream, + pv: *const byte, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IStream_Seek_Proxy( + This: *mut IStream, + dlibMove: LARGE_INTEGER, + dwOrigin: DWORD, + plibNewPosition: *mut ULARGE_INTEGER, + ) -> HRESULT; +} +extern "C" { + pub fn IStream_Seek_Stub( + This: *mut IStream, + dlibMove: LARGE_INTEGER, + dwOrigin: DWORD, + plibNewPosition: *mut ULARGE_INTEGER, + ) -> HRESULT; +} +extern "C" { + pub fn IStream_CopyTo_Proxy( + This: *mut IStream, + pstm: *mut IStream, + cb: ULARGE_INTEGER, + pcbRead: *mut ULARGE_INTEGER, + pcbWritten: *mut ULARGE_INTEGER, + ) -> HRESULT; +} +extern "C" { + pub fn IStream_CopyTo_Stub( + This: *mut IStream, + pstm: *mut IStream, + cb: ULARGE_INTEGER, + pcbRead: *mut ULARGE_INTEGER, + pcbWritten: *mut ULARGE_INTEGER, + ) -> HRESULT; +} +extern "C" { + pub static GUID_NULL: IID; +} +extern "C" { + pub static CATID_MARSHALER: IID; +} +extern "C" { + pub static IID_IRpcChannel: IID; +} +extern "C" { + pub static IID_IRpcStub: IID; +} +extern "C" { + pub static IID_IStubManager: IID; +} +extern "C" { + pub static IID_IRpcProxy: IID; +} +extern "C" { + pub static IID_IProxyManager: IID; +} +extern "C" { + pub static IID_IPSFactory: IID; +} +extern "C" { + pub static IID_IInternalMoniker: IID; +} +extern "C" { + pub static IID_IDfReserved1: IID; +} +extern "C" { + pub static IID_IDfReserved2: IID; +} +extern "C" { + pub static IID_IDfReserved3: IID; +} +extern "C" { + pub static CLSID_StdMarshal: CLSID; +} +extern "C" { + pub static CLSID_AggStdMarshal: CLSID; +} +extern "C" { + pub static CLSID_StdAsyncActManager: CLSID; +} +extern "C" { + pub static IID_IStub: IID; +} +extern "C" { + pub static IID_IProxy: IID; +} +extern "C" { + pub static IID_IEnumGeneric: IID; +} +extern "C" { + pub static IID_IEnumHolder: IID; +} +extern "C" { + pub static IID_IEnumCallback: IID; +} +extern "C" { + pub static IID_IOleManager: IID; +} +extern "C" { + pub static IID_IOlePresObj: IID; +} +extern "C" { + pub static IID_IDebug: IID; +} +extern "C" { + pub static IID_IDebugStream: IID; +} +extern "C" { + pub static CLSID_PSGenObject: CLSID; +} +extern "C" { + pub static CLSID_PSClientSite: CLSID; +} +extern "C" { + pub static CLSID_PSClassObject: CLSID; +} +extern "C" { + pub static CLSID_PSInPlaceActive: CLSID; +} +extern "C" { + pub static CLSID_PSInPlaceFrame: CLSID; +} +extern "C" { + pub static CLSID_PSDragDrop: CLSID; +} +extern "C" { + pub static CLSID_PSBindCtx: CLSID; +} +extern "C" { + pub static CLSID_PSEnumerators: CLSID; +} +extern "C" { + pub static CLSID_StaticMetafile: CLSID; +} +extern "C" { + pub static CLSID_StaticDib: CLSID; +} +extern "C" { + pub static CID_CDfsVolume: CLSID; +} +extern "C" { + pub static CLSID_DCOMAccessControl: CLSID; +} +extern "C" { + pub static CLSID_GlobalOptions: CLSID; +} +extern "C" { + pub static CLSID_StdGlobalInterfaceTable: CLSID; +} +extern "C" { + pub static CLSID_MachineGlobalObjectTable: CLSID; +} +extern "C" { + pub static CLSID_ActivationCapabilities: CLSID; +} +extern "C" { + pub static CLSID_ComBinding: CLSID; +} +extern "C" { + pub static CLSID_StdEvent: CLSID; +} +extern "C" { + pub static CLSID_ManualResetEvent: CLSID; +} +extern "C" { + pub static CLSID_SynchronizeContainer: CLSID; +} +extern "C" { + pub static CLSID_AddrControl: CLSID; +} +extern "C" { + pub static CLSID_ContextSwitcher: CLSID; +} +extern "C" { + pub static CLSID_CCDFormKrnl: CLSID; +} +extern "C" { + pub static CLSID_CCDPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CCDFormDialog: CLSID; +} +extern "C" { + pub static CLSID_CCDCommandButton: CLSID; +} +extern "C" { + pub static CLSID_CCDComboBox: CLSID; +} +extern "C" { + pub static CLSID_CCDTextBox: CLSID; +} +extern "C" { + pub static CLSID_CCDCheckBox: CLSID; +} +extern "C" { + pub static CLSID_CCDLabel: CLSID; +} +extern "C" { + pub static CLSID_CCDOptionButton: CLSID; +} +extern "C" { + pub static CLSID_CCDListBox: CLSID; +} +extern "C" { + pub static CLSID_CCDScrollBar: CLSID; +} +extern "C" { + pub static CLSID_CCDGroupBox: CLSID; +} +extern "C" { + pub static CLSID_CCDGeneralPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CCDGenericPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CCDFontPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CCDColorPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CCDLabelPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CCDCheckBoxPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CCDTextBoxPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CCDOptionButtonPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CCDListBoxPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CCDCommandButtonPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CCDComboBoxPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CCDScrollBarPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CCDGroupBoxPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CCDXObjectPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CStdPropertyFrame: CLSID; +} +extern "C" { + pub static CLSID_CFormPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CGridPropertyPage: CLSID; +} +extern "C" { + pub static CLSID_CWSJArticlePage: CLSID; +} +extern "C" { + pub static CLSID_CSystemPage: CLSID; +} +extern "C" { + pub static CLSID_IdentityUnmarshal: CLSID; +} +extern "C" { + pub static CLSID_InProcFreeMarshaler: CLSID; +} +extern "C" { + pub static CLSID_Picture_Metafile: CLSID; +} +extern "C" { + pub static CLSID_Picture_EnhMetafile: CLSID; +} +extern "C" { + pub static CLSID_Picture_Dib: CLSID; +} +extern "C" { + pub static GUID_TRISTATE: GUID; +} +extern "C" { + pub fn CoGetMalloc(dwMemContext: DWORD, ppMalloc: *mut LPMALLOC) -> HRESULT; +} +extern "C" { + pub fn CreateStreamOnHGlobal( + hGlobal: HGLOBAL, + fDeleteOnRelease: BOOL, + ppstm: *mut LPSTREAM, + ) -> HRESULT; +} +extern "C" { + pub fn GetHGlobalFromStream(pstm: LPSTREAM, phglobal: *mut HGLOBAL) -> HRESULT; +} +extern "C" { + pub fn CoUninitialize(); +} +extern "C" { + pub fn CoGetCurrentProcess() -> DWORD; +} +extern "C" { + pub fn CoInitializeEx(pvReserved: LPVOID, dwCoInit: DWORD) -> HRESULT; +} +extern "C" { + pub fn CoGetCallerTID(lpdwTID: LPDWORD) -> HRESULT; +} +extern "C" { + pub fn CoGetCurrentLogicalThreadId(pguid: *mut GUID) -> HRESULT; +} +extern "C" { + pub fn CoGetContextToken(pToken: *mut ULONG_PTR) -> HRESULT; +} +extern "C" { + pub fn CoGetDefaultContext( + aptType: APTTYPE, + riid: *const IID, + ppv: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn CoGetApartmentType( + pAptType: *mut APTTYPE, + pAptQualifier: *mut APTTYPEQUALIFIER, + ) -> HRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagServerInformation { + pub dwServerPid: DWORD, + pub dwServerTid: DWORD, + pub ui64ServerAddress: UINT64, +} +pub type ServerInformation = tagServerInformation; +pub type PServerInformation = *mut tagServerInformation; +extern "C" { + pub fn CoDecodeProxy( + dwClientPid: DWORD, + ui64ProxyAddress: UINT64, + pServerInformation: PServerInformation, + ) -> HRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CO_MTA_USAGE_COOKIE__ { + pub unused: ::std::os::raw::c_int, +} +pub type CO_MTA_USAGE_COOKIE = *mut CO_MTA_USAGE_COOKIE__; +extern "C" { + pub fn CoIncrementMTAUsage(pCookie: *mut CO_MTA_USAGE_COOKIE) -> HRESULT; +} +extern "C" { + pub fn CoDecrementMTAUsage(Cookie: CO_MTA_USAGE_COOKIE) -> HRESULT; +} +extern "C" { + pub fn CoAllowUnmarshalerCLSID(clsid: *const IID) -> HRESULT; +} +extern "C" { + pub fn CoGetObjectContext(riid: *const IID, ppv: *mut LPVOID) -> HRESULT; +} +extern "C" { + pub fn CoGetClassObject( + rclsid: *const IID, + dwClsContext: DWORD, + pvReserved: LPVOID, + riid: *const IID, + ppv: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn CoRegisterClassObject( + rclsid: *const IID, + pUnk: LPUNKNOWN, + dwClsContext: DWORD, + flags: DWORD, + lpdwRegister: LPDWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CoRevokeClassObject(dwRegister: DWORD) -> HRESULT; +} +extern "C" { + pub fn CoResumeClassObjects() -> HRESULT; +} +extern "C" { + pub fn CoSuspendClassObjects() -> HRESULT; +} +extern "C" { + pub fn CoAddRefServerProcess() -> ULONG; +} +extern "C" { + pub fn CoReleaseServerProcess() -> ULONG; +} +extern "C" { + pub fn CoGetPSClsid(riid: *const IID, pClsid: *mut CLSID) -> HRESULT; +} +extern "C" { + pub fn CoRegisterPSClsid(riid: *const IID, rclsid: *const IID) -> HRESULT; +} +extern "C" { + pub fn CoRegisterSurrogate(pSurrogate: LPSURROGATE) -> HRESULT; +} +extern "C" { + pub fn CoGetMarshalSizeMax( + pulSize: *mut ULONG, + riid: *const IID, + pUnk: LPUNKNOWN, + dwDestContext: DWORD, + pvDestContext: LPVOID, + mshlflags: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CoMarshalInterface( + pStm: LPSTREAM, + riid: *const IID, + pUnk: LPUNKNOWN, + dwDestContext: DWORD, + pvDestContext: LPVOID, + mshlflags: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CoUnmarshalInterface(pStm: LPSTREAM, riid: *const IID, ppv: *mut LPVOID) -> HRESULT; +} +extern "C" { + pub fn CoMarshalHresult(pstm: LPSTREAM, hresult: HRESULT) -> HRESULT; +} +extern "C" { + pub fn CoUnmarshalHresult(pstm: LPSTREAM, phresult: *mut HRESULT) -> HRESULT; +} +extern "C" { + pub fn CoReleaseMarshalData(pStm: LPSTREAM) -> HRESULT; +} +extern "C" { + pub fn CoDisconnectObject(pUnk: LPUNKNOWN, dwReserved: DWORD) -> HRESULT; +} +extern "C" { + pub fn CoLockObjectExternal(pUnk: LPUNKNOWN, fLock: BOOL, fLastUnlockReleases: BOOL) + -> HRESULT; +} +extern "C" { + pub fn CoGetStandardMarshal( + riid: *const IID, + pUnk: LPUNKNOWN, + dwDestContext: DWORD, + pvDestContext: LPVOID, + mshlflags: DWORD, + ppMarshal: *mut LPMARSHAL, + ) -> HRESULT; +} +extern "C" { + pub fn CoGetStdMarshalEx( + pUnkOuter: LPUNKNOWN, + smexflags: DWORD, + ppUnkInner: *mut LPUNKNOWN, + ) -> HRESULT; +} +pub const tagSTDMSHLFLAGS_SMEXF_SERVER: tagSTDMSHLFLAGS = 1; +pub const tagSTDMSHLFLAGS_SMEXF_HANDLER: tagSTDMSHLFLAGS = 2; +pub type tagSTDMSHLFLAGS = ::std::os::raw::c_int; +pub use self::tagSTDMSHLFLAGS as STDMSHLFLAGS; +extern "C" { + pub fn CoIsHandlerConnected(pUnk: LPUNKNOWN) -> BOOL; +} +extern "C" { + pub fn CoMarshalInterThreadInterfaceInStream( + riid: *const IID, + pUnk: LPUNKNOWN, + ppStm: *mut LPSTREAM, + ) -> HRESULT; +} +extern "C" { + pub fn CoGetInterfaceAndReleaseStream( + pStm: LPSTREAM, + iid: *const IID, + ppv: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn CoCreateFreeThreadedMarshaler( + punkOuter: LPUNKNOWN, + ppunkMarshal: *mut LPUNKNOWN, + ) -> HRESULT; +} +extern "C" { + pub fn CoFreeUnusedLibraries(); +} +extern "C" { + pub fn CoFreeUnusedLibrariesEx(dwUnloadDelay: DWORD, dwReserved: DWORD); +} +extern "C" { + pub fn CoDisconnectContext(dwTimeout: DWORD) -> HRESULT; +} +extern "C" { + pub fn CoInitializeSecurity( + pSecDesc: PSECURITY_DESCRIPTOR, + cAuthSvc: LONG, + asAuthSvc: *mut SOLE_AUTHENTICATION_SERVICE, + pReserved1: *mut ::std::os::raw::c_void, + dwAuthnLevel: DWORD, + dwImpLevel: DWORD, + pAuthList: *mut ::std::os::raw::c_void, + dwCapabilities: DWORD, + pReserved3: *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn CoGetCallContext( + riid: *const IID, + ppInterface: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn CoQueryProxyBlanket( + pProxy: *mut IUnknown, + pwAuthnSvc: *mut DWORD, + pAuthzSvc: *mut DWORD, + pServerPrincName: *mut LPOLESTR, + pAuthnLevel: *mut DWORD, + pImpLevel: *mut DWORD, + pAuthInfo: *mut RPC_AUTH_IDENTITY_HANDLE, + pCapabilites: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CoSetProxyBlanket( + pProxy: *mut IUnknown, + dwAuthnSvc: DWORD, + dwAuthzSvc: DWORD, + pServerPrincName: *mut OLECHAR, + dwAuthnLevel: DWORD, + dwImpLevel: DWORD, + pAuthInfo: RPC_AUTH_IDENTITY_HANDLE, + dwCapabilities: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CoCopyProxy(pProxy: *mut IUnknown, ppCopy: *mut *mut IUnknown) -> HRESULT; +} +extern "C" { + pub fn CoQueryClientBlanket( + pAuthnSvc: *mut DWORD, + pAuthzSvc: *mut DWORD, + pServerPrincName: *mut LPOLESTR, + pAuthnLevel: *mut DWORD, + pImpLevel: *mut DWORD, + pPrivs: *mut RPC_AUTHZ_HANDLE, + pCapabilities: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CoImpersonateClient() -> HRESULT; +} +extern "C" { + pub fn CoRevertToSelf() -> HRESULT; +} +extern "C" { + pub fn CoQueryAuthenticationServices( + pcAuthSvc: *mut DWORD, + asAuthSvc: *mut *mut SOLE_AUTHENTICATION_SERVICE, + ) -> HRESULT; +} +extern "C" { + pub fn CoSwitchCallContext( + pNewObject: *mut IUnknown, + ppOldObject: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn CoCreateInstance( + rclsid: *const IID, + pUnkOuter: LPUNKNOWN, + dwClsContext: DWORD, + riid: *const IID, + ppv: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn CoCreateInstanceEx( + Clsid: *const IID, + punkOuter: *mut IUnknown, + dwClsCtx: DWORD, + pServerInfo: *mut COSERVERINFO, + dwCount: DWORD, + pResults: *mut MULTI_QI, + ) -> HRESULT; +} +extern "C" { + pub fn CoCreateInstanceFromApp( + Clsid: *const IID, + punkOuter: *mut IUnknown, + dwClsCtx: DWORD, + reserved: PVOID, + dwCount: DWORD, + pResults: *mut MULTI_QI, + ) -> HRESULT; +} +extern "C" { + pub fn CoRegisterActivationFilter(pActivationFilter: *mut IActivationFilter) -> HRESULT; +} +extern "C" { + pub fn CoGetCancelObject( + dwThreadId: DWORD, + iid: *const IID, + ppUnk: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn CoSetCancelObject(pUnk: *mut IUnknown) -> HRESULT; +} +extern "C" { + pub fn CoCancelCall(dwThreadId: DWORD, ulTimeout: ULONG) -> HRESULT; +} +extern "C" { + pub fn CoTestCancel() -> HRESULT; +} +extern "C" { + pub fn CoEnableCallCancellation(pReserved: LPVOID) -> HRESULT; +} +extern "C" { + pub fn CoDisableCallCancellation(pReserved: LPVOID) -> HRESULT; +} +extern "C" { + pub fn StringFromCLSID(rclsid: *const IID, lplpsz: *mut LPOLESTR) -> HRESULT; +} +extern "C" { + pub fn CLSIDFromString(lpsz: LPCOLESTR, pclsid: LPCLSID) -> HRESULT; +} +extern "C" { + pub fn StringFromIID(rclsid: *const IID, lplpsz: *mut LPOLESTR) -> HRESULT; +} +extern "C" { + pub fn IIDFromString(lpsz: LPCOLESTR, lpiid: LPIID) -> HRESULT; +} +extern "C" { + pub fn ProgIDFromCLSID(clsid: *const IID, lplpszProgID: *mut LPOLESTR) -> HRESULT; +} +extern "C" { + pub fn CLSIDFromProgID(lpszProgID: LPCOLESTR, lpclsid: LPCLSID) -> HRESULT; +} +extern "C" { + pub fn StringFromGUID2( + rguid: *const GUID, + lpsz: LPOLESTR, + cchMax: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn CoCreateGuid(pguid: *mut GUID) -> HRESULT; +} +pub type PROPVARIANT = tagPROPVARIANT; +extern "C" { + pub fn PropVariantCopy(pvarDest: *mut PROPVARIANT, pvarSrc: *const PROPVARIANT) -> HRESULT; +} +extern "C" { + pub fn PropVariantClear(pvar: *mut PROPVARIANT) -> HRESULT; +} +extern "C" { + pub fn FreePropVariantArray(cVariants: ULONG, rgvars: *mut PROPVARIANT) -> HRESULT; +} +extern "C" { + pub fn CoWaitForMultipleHandles( + dwFlags: DWORD, + dwTimeout: DWORD, + cHandles: ULONG, + pHandles: LPHANDLE, + lpdwindex: LPDWORD, + ) -> HRESULT; +} +pub const tagCOWAIT_FLAGS_COWAIT_DEFAULT: tagCOWAIT_FLAGS = 0; +pub const tagCOWAIT_FLAGS_COWAIT_WAITALL: tagCOWAIT_FLAGS = 1; +pub const tagCOWAIT_FLAGS_COWAIT_ALERTABLE: tagCOWAIT_FLAGS = 2; +pub const tagCOWAIT_FLAGS_COWAIT_INPUTAVAILABLE: tagCOWAIT_FLAGS = 4; +pub const tagCOWAIT_FLAGS_COWAIT_DISPATCH_CALLS: tagCOWAIT_FLAGS = 8; +pub const tagCOWAIT_FLAGS_COWAIT_DISPATCH_WINDOW_MESSAGES: tagCOWAIT_FLAGS = 16; +pub type tagCOWAIT_FLAGS = ::std::os::raw::c_int; +pub use self::tagCOWAIT_FLAGS as COWAIT_FLAGS; +pub const CWMO_FLAGS_CWMO_DEFAULT: CWMO_FLAGS = 0; +pub const CWMO_FLAGS_CWMO_DISPATCH_CALLS: CWMO_FLAGS = 1; +pub const CWMO_FLAGS_CWMO_DISPATCH_WINDOW_MESSAGES: CWMO_FLAGS = 2; +pub type CWMO_FLAGS = ::std::os::raw::c_int; +extern "C" { + pub fn CoWaitForMultipleObjects( + dwFlags: DWORD, + dwTimeout: DWORD, + cHandles: ULONG, + pHandles: *const HANDLE, + lpdwindex: LPDWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CoGetTreatAsClass(clsidOld: *const IID, pClsidNew: LPCLSID) -> HRESULT; +} +extern "C" { + pub fn CoInvalidateRemoteMachineBindings(pszMachineName: LPOLESTR) -> HRESULT; +} +pub const AgileReferenceOptions_AGILEREFERENCE_DEFAULT: AgileReferenceOptions = 0; +pub const AgileReferenceOptions_AGILEREFERENCE_DELAYEDMARSHAL: AgileReferenceOptions = 1; +pub type AgileReferenceOptions = ::std::os::raw::c_int; +extern "C" { + pub fn RoGetAgileReference( + options: AgileReferenceOptions, + riid: *const IID, + pUnk: *mut IUnknown, + ppAgileReference: *mut *mut IAgileReference, + ) -> HRESULT; +} +pub type LPFNGETCLASSOBJECT = ::std::option::Option< + unsafe extern "C" fn(arg1: *const IID, arg2: *const IID, arg3: *mut LPVOID) -> HRESULT, +>; +pub type LPFNCANUNLOADNOW = ::std::option::Option HRESULT>; +extern "C" { + pub fn DllGetClassObject(rclsid: *const IID, riid: *const IID, ppv: *mut LPVOID) -> HRESULT; +} +extern "C" { + pub fn DllCanUnloadNow() -> HRESULT; +} +extern "C" { + pub fn CoTaskMemAlloc(cb: SIZE_T) -> LPVOID; +} +extern "C" { + pub fn CoTaskMemRealloc(pv: LPVOID, cb: SIZE_T) -> LPVOID; +} +extern "C" { + pub fn CoTaskMemFree(pv: LPVOID); +} +extern "C" { + pub fn CoFileTimeNow(lpFileTime: *mut FILETIME) -> HRESULT; +} +extern "C" { + pub fn CLSIDFromProgIDEx(lpszProgID: LPCOLESTR, lpclsid: LPCLSID) -> HRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CO_DEVICE_CATALOG_COOKIE__ { + pub unused: ::std::os::raw::c_int, +} +pub type CO_DEVICE_CATALOG_COOKIE = *mut CO_DEVICE_CATALOG_COOKIE__; +extern "C" { + pub fn CoRegisterDeviceCatalog( + deviceInstanceId: PCWSTR, + cookie: *mut CO_DEVICE_CATALOG_COOKIE, + ) -> HRESULT; +} +extern "C" { + pub fn CoRevokeDeviceCatalog(cookie: CO_DEVICE_CATALOG_COOKIE) -> HRESULT; +} +extern "C" { + pub static mut __MIDL_itf_unknwn_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_unknwn_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_unknwn_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_unknwn_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_unknwn_0000_0002_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_unknwn_0000_0002_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_unknwn_0000_0003_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_unknwn_0000_0003_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0055_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0055_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPMALLOCSPY = *mut IMallocSpy; +extern "C" { + pub static IID_IMallocSpy: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMallocSpyVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMallocSpy, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub PreAlloc: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMallocSpy, cbRequest: SIZE_T) -> SIZE_T, + >, + pub PostAlloc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMallocSpy, + pActual: *mut ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void, + >, + pub PreFree: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMallocSpy, + pRequest: *mut ::std::os::raw::c_void, + fSpyed: BOOL, + ) -> *mut ::std::os::raw::c_void, + >, + pub PostFree: ::std::option::Option, + pub PreRealloc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMallocSpy, + pRequest: *mut ::std::os::raw::c_void, + cbRequest: SIZE_T, + ppNewRequest: *mut *mut ::std::os::raw::c_void, + fSpyed: BOOL, + ) -> SIZE_T, + >, + pub PostRealloc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMallocSpy, + pActual: *mut ::std::os::raw::c_void, + fSpyed: BOOL, + ) -> *mut ::std::os::raw::c_void, + >, + pub PreGetSize: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMallocSpy, + pRequest: *mut ::std::os::raw::c_void, + fSpyed: BOOL, + ) -> *mut ::std::os::raw::c_void, + >, + pub PostGetSize: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMallocSpy, cbActual: SIZE_T, fSpyed: BOOL) -> SIZE_T, + >, + pub PreDidAlloc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMallocSpy, + pRequest: *mut ::std::os::raw::c_void, + fSpyed: BOOL, + ) -> *mut ::std::os::raw::c_void, + >, + pub PostDidAlloc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMallocSpy, + pRequest: *mut ::std::os::raw::c_void, + fSpyed: BOOL, + fActual: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub PreHeapMinimize: ::std::option::Option, + pub PostHeapMinimize: ::std::option::Option, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMallocSpy { + pub lpVtbl: *mut IMallocSpyVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0056_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0056_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPBC = *mut IBindCtx; +pub type LPBINDCTX = *mut IBindCtx; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagBIND_OPTS { + pub cbStruct: DWORD, + pub grfFlags: DWORD, + pub grfMode: DWORD, + pub dwTickCountDeadline: DWORD, +} +pub type BIND_OPTS = tagBIND_OPTS; +pub type LPBIND_OPTS = *mut tagBIND_OPTS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagBIND_OPTS2 { + pub cbStruct: DWORD, + pub grfFlags: DWORD, + pub grfMode: DWORD, + pub dwTickCountDeadline: DWORD, + pub dwTrackFlags: DWORD, + pub dwClassContext: DWORD, + pub locale: LCID, + pub pServerInfo: *mut COSERVERINFO, +} +pub type BIND_OPTS2 = tagBIND_OPTS2; +pub type LPBIND_OPTS2 = *mut tagBIND_OPTS2; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagBIND_OPTS3 { + pub cbStruct: DWORD, + pub grfFlags: DWORD, + pub grfMode: DWORD, + pub dwTickCountDeadline: DWORD, + pub dwTrackFlags: DWORD, + pub dwClassContext: DWORD, + pub locale: LCID, + pub pServerInfo: *mut COSERVERINFO, + pub hwnd: HWND, +} +pub type BIND_OPTS3 = tagBIND_OPTS3; +pub type LPBIND_OPTS3 = *mut tagBIND_OPTS3; +pub const tagBIND_FLAGS_BIND_MAYBOTHERUSER: tagBIND_FLAGS = 1; +pub const tagBIND_FLAGS_BIND_JUSTTESTEXISTENCE: tagBIND_FLAGS = 2; +pub type tagBIND_FLAGS = ::std::os::raw::c_int; +pub use self::tagBIND_FLAGS as BIND_FLAGS; +extern "C" { + pub static IID_IBindCtx: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindCtxVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindCtx, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub RegisterObjectBound: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBindCtx, punk: *mut IUnknown) -> HRESULT, + >, + pub RevokeObjectBound: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBindCtx, punk: *mut IUnknown) -> HRESULT, + >, + pub ReleaseBoundObjects: + ::std::option::Option HRESULT>, + pub SetBindOptions: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBindCtx, pbindopts: *mut BIND_OPTS) -> HRESULT, + >, + pub GetBindOptions: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBindCtx, pbindopts: *mut BIND_OPTS) -> HRESULT, + >, + pub GetRunningObjectTable: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBindCtx, pprot: *mut *mut IRunningObjectTable) -> HRESULT, + >, + pub RegisterObjectParam: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBindCtx, pszKey: LPOLESTR, punk: *mut IUnknown) -> HRESULT, + >, + pub GetObjectParam: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindCtx, + pszKey: LPOLESTR, + ppunk: *mut *mut IUnknown, + ) -> HRESULT, + >, + pub EnumObjectParam: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBindCtx, ppenum: *mut *mut IEnumString) -> HRESULT, + >, + pub RevokeObjectParam: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBindCtx, pszKey: LPOLESTR) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindCtx { + pub lpVtbl: *mut IBindCtxVtbl, +} +extern "C" { + pub fn IBindCtx_RemoteSetBindOptions_Proxy( + This: *mut IBindCtx, + pbindopts: *mut BIND_OPTS2, + ) -> HRESULT; +} +extern "C" { + pub fn IBindCtx_RemoteSetBindOptions_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IBindCtx_RemoteGetBindOptions_Proxy( + This: *mut IBindCtx, + pbindopts: *mut BIND_OPTS2, + ) -> HRESULT; +} +extern "C" { + pub fn IBindCtx_RemoteGetBindOptions_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPENUMMONIKER = *mut IEnumMoniker; +extern "C" { + pub static IID_IEnumMoniker: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumMonikerVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumMoniker, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Next: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumMoniker, + celt: ULONG, + rgelt: *mut *mut IMoniker, + pceltFetched: *mut ULONG, + ) -> HRESULT, + >, + pub Skip: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumMoniker, celt: ULONG) -> HRESULT, + >, + pub Reset: ::std::option::Option HRESULT>, + pub Clone: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumMoniker, ppenum: *mut *mut IEnumMoniker) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumMoniker { + pub lpVtbl: *mut IEnumMonikerVtbl, +} +extern "C" { + pub fn IEnumMoniker_RemoteNext_Proxy( + This: *mut IEnumMoniker, + celt: ULONG, + rgelt: *mut *mut IMoniker, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumMoniker_RemoteNext_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0058_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0058_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPRUNNABLEOBJECT = *mut IRunnableObject; +extern "C" { + pub static IID_IRunnableObject: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRunnableObjectVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRunnableObject, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetRunningClass: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRunnableObject, lpClsid: LPCLSID) -> HRESULT, + >, + pub Run: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRunnableObject, pbc: LPBINDCTX) -> HRESULT, + >, + pub IsRunning: ::std::option::Option BOOL>, + pub LockRunning: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRunnableObject, + fLock: BOOL, + fLastUnlockCloses: BOOL, + ) -> HRESULT, + >, + pub SetContainedObject: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRunnableObject, fContained: BOOL) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRunnableObject { + pub lpVtbl: *mut IRunnableObjectVtbl, +} +extern "C" { + pub fn IRunnableObject_RemoteIsRunning_Proxy(This: *mut IRunnableObject) -> HRESULT; +} +extern "C" { + pub fn IRunnableObject_RemoteIsRunning_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPRUNNINGOBJECTTABLE = *mut IRunningObjectTable; +extern "C" { + pub static IID_IRunningObjectTable: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRunningObjectTableVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRunningObjectTable, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub Register: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRunningObjectTable, + grfFlags: DWORD, + punkObject: *mut IUnknown, + pmkObjectName: *mut IMoniker, + pdwRegister: *mut DWORD, + ) -> HRESULT, + >, + pub Revoke: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRunningObjectTable, dwRegister: DWORD) -> HRESULT, + >, + pub IsRunning: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRunningObjectTable, + pmkObjectName: *mut IMoniker, + ) -> HRESULT, + >, + pub GetObjectA: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRunningObjectTable, + pmkObjectName: *mut IMoniker, + ppunkObject: *mut *mut IUnknown, + ) -> HRESULT, + >, + pub NoteChangeTime: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRunningObjectTable, + dwRegister: DWORD, + pfiletime: *mut FILETIME, + ) -> HRESULT, + >, + pub GetTimeOfLastChange: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRunningObjectTable, + pmkObjectName: *mut IMoniker, + pfiletime: *mut FILETIME, + ) -> HRESULT, + >, + pub EnumRunning: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRunningObjectTable, + ppenumMoniker: *mut *mut IEnumMoniker, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRunningObjectTable { + pub lpVtbl: *mut IRunningObjectTableVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0060_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0060_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPPERSIST = *mut IPersist; +extern "C" { + pub static IID_IPersist: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPersistVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPersist, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetClassID: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPersist, pClassID: *mut CLSID) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPersist { + pub lpVtbl: *mut IPersistVtbl, +} +pub type LPPERSISTSTREAM = *mut IPersistStream; +extern "C" { + pub static IID_IPersistStream: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPersistStreamVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPersistStream, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetClassID: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPersistStream, pClassID: *mut CLSID) -> HRESULT, + >, + pub IsDirty: ::std::option::Option HRESULT>, + pub Load: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPersistStream, pStm: *mut IStream) -> HRESULT, + >, + pub Save: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPersistStream, + pStm: *mut IStream, + fClearDirty: BOOL, + ) -> HRESULT, + >, + pub GetSizeMax: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPersistStream, pcbSize: *mut ULARGE_INTEGER) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPersistStream { + pub lpVtbl: *mut IPersistStreamVtbl, +} +pub type LPMONIKER = *mut IMoniker; +pub const tagMKSYS_MKSYS_NONE: tagMKSYS = 0; +pub const tagMKSYS_MKSYS_GENERICCOMPOSITE: tagMKSYS = 1; +pub const tagMKSYS_MKSYS_FILEMONIKER: tagMKSYS = 2; +pub const tagMKSYS_MKSYS_ANTIMONIKER: tagMKSYS = 3; +pub const tagMKSYS_MKSYS_ITEMMONIKER: tagMKSYS = 4; +pub const tagMKSYS_MKSYS_POINTERMONIKER: tagMKSYS = 5; +pub const tagMKSYS_MKSYS_CLASSMONIKER: tagMKSYS = 7; +pub const tagMKSYS_MKSYS_OBJREFMONIKER: tagMKSYS = 8; +pub const tagMKSYS_MKSYS_SESSIONMONIKER: tagMKSYS = 9; +pub const tagMKSYS_MKSYS_LUAMONIKER: tagMKSYS = 10; +pub type tagMKSYS = ::std::os::raw::c_int; +pub use self::tagMKSYS as MKSYS; +pub const tagMKREDUCE_MKRREDUCE_ONE: tagMKREDUCE = 196608; +pub const tagMKREDUCE_MKRREDUCE_TOUSER: tagMKREDUCE = 131072; +pub const tagMKREDUCE_MKRREDUCE_THROUGHUSER: tagMKREDUCE = 65536; +pub const tagMKREDUCE_MKRREDUCE_ALL: tagMKREDUCE = 0; +pub type tagMKREDUCE = ::std::os::raw::c_int; +pub use self::tagMKREDUCE as MKRREDUCE; +extern "C" { + pub static IID_IMoniker: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMonikerVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMoniker, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetClassID: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMoniker, pClassID: *mut CLSID) -> HRESULT, + >, + pub IsDirty: ::std::option::Option HRESULT>, + pub Load: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMoniker, pStm: *mut IStream) -> HRESULT, + >, + pub Save: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMoniker, pStm: *mut IStream, fClearDirty: BOOL) -> HRESULT, + >, + pub GetSizeMax: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMoniker, pcbSize: *mut ULARGE_INTEGER) -> HRESULT, + >, + pub BindToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMoniker, + pbc: *mut IBindCtx, + pmkToLeft: *mut IMoniker, + riidResult: *const IID, + ppvResult: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub BindToStorage: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMoniker, + pbc: *mut IBindCtx, + pmkToLeft: *mut IMoniker, + riid: *const IID, + ppvObj: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub Reduce: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMoniker, + pbc: *mut IBindCtx, + dwReduceHowFar: DWORD, + ppmkToLeft: *mut *mut IMoniker, + ppmkReduced: *mut *mut IMoniker, + ) -> HRESULT, + >, + pub ComposeWith: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMoniker, + pmkRight: *mut IMoniker, + fOnlyIfNotGeneric: BOOL, + ppmkComposite: *mut *mut IMoniker, + ) -> HRESULT, + >, + pub Enum: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMoniker, + fForward: BOOL, + ppenumMoniker: *mut *mut IEnumMoniker, + ) -> HRESULT, + >, + pub IsEqual: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMoniker, pmkOtherMoniker: *mut IMoniker) -> HRESULT, + >, + pub Hash: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMoniker, pdwHash: *mut DWORD) -> HRESULT, + >, + pub IsRunning: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMoniker, + pbc: *mut IBindCtx, + pmkToLeft: *mut IMoniker, + pmkNewlyRunning: *mut IMoniker, + ) -> HRESULT, + >, + pub GetTimeOfLastChange: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMoniker, + pbc: *mut IBindCtx, + pmkToLeft: *mut IMoniker, + pFileTime: *mut FILETIME, + ) -> HRESULT, + >, + pub Inverse: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMoniker, ppmk: *mut *mut IMoniker) -> HRESULT, + >, + pub CommonPrefixWith: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMoniker, + pmkOther: *mut IMoniker, + ppmkPrefix: *mut *mut IMoniker, + ) -> HRESULT, + >, + pub RelativePathTo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMoniker, + pmkOther: *mut IMoniker, + ppmkRelPath: *mut *mut IMoniker, + ) -> HRESULT, + >, + pub GetDisplayName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMoniker, + pbc: *mut IBindCtx, + pmkToLeft: *mut IMoniker, + ppszDisplayName: *mut LPOLESTR, + ) -> HRESULT, + >, + pub ParseDisplayName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMoniker, + pbc: *mut IBindCtx, + pmkToLeft: *mut IMoniker, + pszDisplayName: LPOLESTR, + pchEaten: *mut ULONG, + ppmkOut: *mut *mut IMoniker, + ) -> HRESULT, + >, + pub IsSystemMoniker: ::std::option::Option< + unsafe extern "C" fn(This: *mut IMoniker, pdwMksys: *mut DWORD) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMoniker { + pub lpVtbl: *mut IMonikerVtbl, +} +extern "C" { + pub fn IMoniker_RemoteBindToObject_Proxy( + This: *mut IMoniker, + pbc: *mut IBindCtx, + pmkToLeft: *mut IMoniker, + riidResult: *const IID, + ppvResult: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn IMoniker_RemoteBindToObject_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IMoniker_RemoteBindToStorage_Proxy( + This: *mut IMoniker, + pbc: *mut IBindCtx, + pmkToLeft: *mut IMoniker, + riid: *const IID, + ppvObj: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn IMoniker_RemoteBindToStorage_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0063_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0063_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IROTData: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IROTDataVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IROTData, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetComparisonData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IROTData, + pbData: *mut byte, + cbMax: ULONG, + pcbData: *mut ULONG, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IROTData { + pub lpVtbl: *mut IROTDataVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0064_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0064_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPENUMSTATSTG = *mut IEnumSTATSTG; +extern "C" { + pub static IID_IEnumSTATSTG: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumSTATSTGVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumSTATSTG, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Next: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumSTATSTG, + celt: ULONG, + rgelt: *mut STATSTG, + pceltFetched: *mut ULONG, + ) -> HRESULT, + >, + pub Skip: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumSTATSTG, celt: ULONG) -> HRESULT, + >, + pub Reset: ::std::option::Option HRESULT>, + pub Clone: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumSTATSTG, ppenum: *mut *mut IEnumSTATSTG) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumSTATSTG { + pub lpVtbl: *mut IEnumSTATSTGVtbl, +} +extern "C" { + pub fn IEnumSTATSTG_RemoteNext_Proxy( + This: *mut IEnumSTATSTG, + celt: ULONG, + rgelt: *mut STATSTG, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumSTATSTG_RemoteNext_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPSTORAGE = *mut IStorage; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRemSNB { + pub ulCntStr: ULONG, + pub ulCntChar: ULONG, + pub rgString: [OLECHAR; 1usize], +} +pub type RemSNB = tagRemSNB; +pub type wireSNB = *mut RemSNB; +pub type SNB = *mut LPOLESTR; +extern "C" { + pub static IID_IStorage: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IStorageVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStorage, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub CreateStream: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStorage, + pwcsName: *const OLECHAR, + grfMode: DWORD, + reserved1: DWORD, + reserved2: DWORD, + ppstm: *mut *mut IStream, + ) -> HRESULT, + >, + pub OpenStream: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStorage, + pwcsName: *const OLECHAR, + reserved1: *mut ::std::os::raw::c_void, + grfMode: DWORD, + reserved2: DWORD, + ppstm: *mut *mut IStream, + ) -> HRESULT, + >, + pub CreateStorage: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStorage, + pwcsName: *const OLECHAR, + grfMode: DWORD, + reserved1: DWORD, + reserved2: DWORD, + ppstg: *mut *mut IStorage, + ) -> HRESULT, + >, + pub OpenStorage: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStorage, + pwcsName: *const OLECHAR, + pstgPriority: *mut IStorage, + grfMode: DWORD, + snbExclude: SNB, + reserved: DWORD, + ppstg: *mut *mut IStorage, + ) -> HRESULT, + >, + pub CopyTo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStorage, + ciidExclude: DWORD, + rgiidExclude: *const IID, + snbExclude: SNB, + pstgDest: *mut IStorage, + ) -> HRESULT, + >, + pub MoveElementTo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStorage, + pwcsName: *const OLECHAR, + pstgDest: *mut IStorage, + pwcsNewName: *const OLECHAR, + grfFlags: DWORD, + ) -> HRESULT, + >, + pub Commit: ::std::option::Option< + unsafe extern "C" fn(This: *mut IStorage, grfCommitFlags: DWORD) -> HRESULT, + >, + pub Revert: ::std::option::Option HRESULT>, + pub EnumElements: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStorage, + reserved1: DWORD, + reserved2: *mut ::std::os::raw::c_void, + reserved3: DWORD, + ppenum: *mut *mut IEnumSTATSTG, + ) -> HRESULT, + >, + pub DestroyElement: ::std::option::Option< + unsafe extern "C" fn(This: *mut IStorage, pwcsName: *const OLECHAR) -> HRESULT, + >, + pub RenameElement: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStorage, + pwcsOldName: *const OLECHAR, + pwcsNewName: *const OLECHAR, + ) -> HRESULT, + >, + pub SetElementTimes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStorage, + pwcsName: *const OLECHAR, + pctime: *const FILETIME, + patime: *const FILETIME, + pmtime: *const FILETIME, + ) -> HRESULT, + >, + pub SetClass: ::std::option::Option< + unsafe extern "C" fn(This: *mut IStorage, clsid: *const IID) -> HRESULT, + >, + pub SetStateBits: ::std::option::Option< + unsafe extern "C" fn(This: *mut IStorage, grfStateBits: DWORD, grfMask: DWORD) -> HRESULT, + >, + pub Stat: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IStorage, + pstatstg: *mut STATSTG, + grfStatFlag: DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IStorage { + pub lpVtbl: *mut IStorageVtbl, +} +extern "C" { + pub fn IStorage_RemoteOpenStream_Proxy( + This: *mut IStorage, + pwcsName: *const OLECHAR, + cbReserved1: ULONG, + reserved1: *mut byte, + grfMode: DWORD, + reserved2: DWORD, + ppstm: *mut *mut IStream, + ) -> HRESULT; +} +extern "C" { + pub fn IStorage_RemoteOpenStream_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IStorage_RemoteCopyTo_Proxy( + This: *mut IStorage, + ciidExclude: DWORD, + rgiidExclude: *const IID, + snbExclude: SNB, + pstgDest: *mut IStorage, + ) -> HRESULT; +} +extern "C" { + pub fn IStorage_RemoteCopyTo_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IStorage_RemoteEnumElements_Proxy( + This: *mut IStorage, + reserved1: DWORD, + cbReserved2: ULONG, + reserved2: *mut byte, + reserved3: DWORD, + ppenum: *mut *mut IEnumSTATSTG, + ) -> HRESULT; +} +extern "C" { + pub fn IStorage_RemoteEnumElements_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0066_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0066_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPPERSISTFILE = *mut IPersistFile; +extern "C" { + pub static IID_IPersistFile: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPersistFileVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPersistFile, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetClassID: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPersistFile, pClassID: *mut CLSID) -> HRESULT, + >, + pub IsDirty: ::std::option::Option HRESULT>, + pub Load: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPersistFile, + pszFileName: LPCOLESTR, + dwMode: DWORD, + ) -> HRESULT, + >, + pub Save: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPersistFile, + pszFileName: LPCOLESTR, + fRemember: BOOL, + ) -> HRESULT, + >, + pub SaveCompleted: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPersistFile, pszFileName: LPCOLESTR) -> HRESULT, + >, + pub GetCurFile: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPersistFile, ppszFileName: *mut LPOLESTR) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPersistFile { + pub lpVtbl: *mut IPersistFileVtbl, +} +pub type LPPERSISTSTORAGE = *mut IPersistStorage; +extern "C" { + pub static IID_IPersistStorage: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPersistStorageVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPersistStorage, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetClassID: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPersistStorage, pClassID: *mut CLSID) -> HRESULT, + >, + pub IsDirty: ::std::option::Option HRESULT>, + pub InitNew: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPersistStorage, pStg: *mut IStorage) -> HRESULT, + >, + pub Load: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPersistStorage, pStg: *mut IStorage) -> HRESULT, + >, + pub Save: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPersistStorage, + pStgSave: *mut IStorage, + fSameAsLoad: BOOL, + ) -> HRESULT, + >, + pub SaveCompleted: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPersistStorage, pStgNew: *mut IStorage) -> HRESULT, + >, + pub HandsOffStorage: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPersistStorage { + pub lpVtbl: *mut IPersistStorageVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0068_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0068_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPLOCKBYTES = *mut ILockBytes; +extern "C" { + pub static IID_ILockBytes: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ILockBytesVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ILockBytes, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub ReadAt: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ILockBytes, + ulOffset: ULARGE_INTEGER, + pv: *mut ::std::os::raw::c_void, + cb: ULONG, + pcbRead: *mut ULONG, + ) -> HRESULT, + >, + pub WriteAt: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ILockBytes, + ulOffset: ULARGE_INTEGER, + pv: *const ::std::os::raw::c_void, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT, + >, + pub Flush: ::std::option::Option HRESULT>, + pub SetSize: ::std::option::Option< + unsafe extern "C" fn(This: *mut ILockBytes, cb: ULARGE_INTEGER) -> HRESULT, + >, + pub LockRegion: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ILockBytes, + libOffset: ULARGE_INTEGER, + cb: ULARGE_INTEGER, + dwLockType: DWORD, + ) -> HRESULT, + >, + pub UnlockRegion: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ILockBytes, + libOffset: ULARGE_INTEGER, + cb: ULARGE_INTEGER, + dwLockType: DWORD, + ) -> HRESULT, + >, + pub Stat: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ILockBytes, + pstatstg: *mut STATSTG, + grfStatFlag: DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ILockBytes { + pub lpVtbl: *mut ILockBytesVtbl, +} +extern "C" { + pub fn ILockBytes_RemoteReadAt_Proxy( + This: *mut ILockBytes, + ulOffset: ULARGE_INTEGER, + pv: *mut byte, + cb: ULONG, + pcbRead: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ILockBytes_RemoteReadAt_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ILockBytes_RemoteWriteAt_Proxy( + This: *mut ILockBytes, + ulOffset: ULARGE_INTEGER, + pv: *const byte, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ILockBytes_RemoteWriteAt_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPENUMFORMATETC = *mut IEnumFORMATETC; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagDVTARGETDEVICE { + pub tdSize: DWORD, + pub tdDriverNameOffset: WORD, + pub tdDeviceNameOffset: WORD, + pub tdPortNameOffset: WORD, + pub tdExtDevmodeOffset: WORD, + pub tdData: [BYTE; 1usize], +} +pub type DVTARGETDEVICE = tagDVTARGETDEVICE; +pub type LPCLIPFORMAT = *mut CLIPFORMAT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagFORMATETC { + pub cfFormat: CLIPFORMAT, + pub ptd: *mut DVTARGETDEVICE, + pub dwAspect: DWORD, + pub lindex: LONG, + pub tymed: DWORD, +} +pub type FORMATETC = tagFORMATETC; +pub type LPFORMATETC = *mut tagFORMATETC; +extern "C" { + pub static IID_IEnumFORMATETC: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumFORMATETCVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumFORMATETC, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Next: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumFORMATETC, + celt: ULONG, + rgelt: *mut FORMATETC, + pceltFetched: *mut ULONG, + ) -> HRESULT, + >, + pub Skip: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumFORMATETC, celt: ULONG) -> HRESULT, + >, + pub Reset: ::std::option::Option HRESULT>, + pub Clone: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumFORMATETC, + ppenum: *mut *mut IEnumFORMATETC, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumFORMATETC { + pub lpVtbl: *mut IEnumFORMATETCVtbl, +} +extern "C" { + pub fn IEnumFORMATETC_RemoteNext_Proxy( + This: *mut IEnumFORMATETC, + celt: ULONG, + rgelt: *mut FORMATETC, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumFORMATETC_RemoteNext_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPENUMSTATDATA = *mut IEnumSTATDATA; +pub const tagADVF_ADVF_NODATA: tagADVF = 1; +pub const tagADVF_ADVF_PRIMEFIRST: tagADVF = 2; +pub const tagADVF_ADVF_ONLYONCE: tagADVF = 4; +pub const tagADVF_ADVF_DATAONSTOP: tagADVF = 64; +pub const tagADVF_ADVFCACHE_NOHANDLER: tagADVF = 8; +pub const tagADVF_ADVFCACHE_FORCEBUILTIN: tagADVF = 16; +pub const tagADVF_ADVFCACHE_ONSAVE: tagADVF = 32; +pub type tagADVF = ::std::os::raw::c_int; +pub use self::tagADVF as ADVF; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSTATDATA { + pub formatetc: FORMATETC, + pub advf: DWORD, + pub pAdvSink: *mut IAdviseSink, + pub dwConnection: DWORD, +} +pub type STATDATA = tagSTATDATA; +pub type LPSTATDATA = *mut STATDATA; +extern "C" { + pub static IID_IEnumSTATDATA: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumSTATDATAVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumSTATDATA, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Next: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumSTATDATA, + celt: ULONG, + rgelt: *mut STATDATA, + pceltFetched: *mut ULONG, + ) -> HRESULT, + >, + pub Skip: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumSTATDATA, celt: ULONG) -> HRESULT, + >, + pub Reset: ::std::option::Option HRESULT>, + pub Clone: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumSTATDATA, ppenum: *mut *mut IEnumSTATDATA) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumSTATDATA { + pub lpVtbl: *mut IEnumSTATDATAVtbl, +} +extern "C" { + pub fn IEnumSTATDATA_RemoteNext_Proxy( + This: *mut IEnumSTATDATA, + celt: ULONG, + rgelt: *mut STATDATA, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumSTATDATA_RemoteNext_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPROOTSTORAGE = *mut IRootStorage; +extern "C" { + pub static IID_IRootStorage: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRootStorageVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRootStorage, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub SwitchToFile: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRootStorage, pszFile: LPOLESTR) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRootStorage { + pub lpVtbl: *mut IRootStorageVtbl, +} +pub type LPADVISESINK = *mut IAdviseSink; +pub const tagTYMED_TYMED_HGLOBAL: tagTYMED = 1; +pub const tagTYMED_TYMED_FILE: tagTYMED = 2; +pub const tagTYMED_TYMED_ISTREAM: tagTYMED = 4; +pub const tagTYMED_TYMED_ISTORAGE: tagTYMED = 8; +pub const tagTYMED_TYMED_GDI: tagTYMED = 16; +pub const tagTYMED_TYMED_MFPICT: tagTYMED = 32; +pub const tagTYMED_TYMED_ENHMF: tagTYMED = 64; +pub const tagTYMED_TYMED_NULL: tagTYMED = 0; +pub type tagTYMED = ::std::os::raw::c_int; +pub use self::tagTYMED as TYMED; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRemSTGMEDIUM { + pub tymed: DWORD, + pub dwHandleType: DWORD, + pub pData: ULONG, + pub pUnkForRelease: ULONG, + pub cbData: ULONG, + pub data: [byte; 1usize], +} +pub type RemSTGMEDIUM = tagRemSTGMEDIUM; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagSTGMEDIUM { + pub tymed: DWORD, + pub __bindgen_anon_1: tagSTGMEDIUM__bindgen_ty_1, + pub pUnkForRelease: *mut IUnknown, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagSTGMEDIUM__bindgen_ty_1 { + pub hBitmap: HBITMAP, + pub hMetaFilePict: HMETAFILEPICT, + pub hEnhMetaFile: HENHMETAFILE, + pub hGlobal: HGLOBAL, + pub lpszFileName: LPOLESTR, + pub pstm: *mut IStream, + pub pstg: *mut IStorage, +} +pub type uSTGMEDIUM = tagSTGMEDIUM; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _GDI_OBJECT { + pub ObjectType: DWORD, + pub u: _GDI_OBJECT___MIDL_IAdviseSink_0002, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _GDI_OBJECT___MIDL_IAdviseSink_0002 { + pub hBitmap: wireHBITMAP, + pub hPalette: wireHPALETTE, + pub hGeneric: wireHGLOBAL, +} +pub type GDI_OBJECT = _GDI_OBJECT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _userSTGMEDIUM { + pub __bindgen_padding_0: [u64; 2usize], + pub pUnkForRelease: *mut IUnknown, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _userSTGMEDIUM__STGMEDIUM_UNION { + pub tymed: DWORD, + pub u: _userSTGMEDIUM__STGMEDIUM_UNION___MIDL_IAdviseSink_0003, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _userSTGMEDIUM__STGMEDIUM_UNION___MIDL_IAdviseSink_0003 { + pub hMetaFilePict: wireHMETAFILEPICT, + pub hHEnhMetaFile: wireHENHMETAFILE, + pub hGdiHandle: *mut GDI_OBJECT, + pub hGlobal: wireHGLOBAL, + pub lpszFileName: LPOLESTR, + pub pstm: *mut BYTE_BLOB, + pub pstg: *mut BYTE_BLOB, +} +pub type userSTGMEDIUM = _userSTGMEDIUM; +pub type wireSTGMEDIUM = *mut userSTGMEDIUM; +pub type STGMEDIUM = uSTGMEDIUM; +pub type wireASYNC_STGMEDIUM = *mut userSTGMEDIUM; +pub type ASYNC_STGMEDIUM = STGMEDIUM; +pub type LPSTGMEDIUM = *mut STGMEDIUM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _userFLAG_STGMEDIUM { + pub ContextFlags: LONG, + pub fPassOwnership: LONG, + pub Stgmed: userSTGMEDIUM, +} +pub type userFLAG_STGMEDIUM = _userFLAG_STGMEDIUM; +pub type wireFLAG_STGMEDIUM = *mut userFLAG_STGMEDIUM; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _FLAG_STGMEDIUM { + pub ContextFlags: LONG, + pub fPassOwnership: LONG, + pub Stgmed: STGMEDIUM, +} +pub type FLAG_STGMEDIUM = _FLAG_STGMEDIUM; +extern "C" { + pub static IID_IAdviseSink: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAdviseSinkVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAdviseSink, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub OnDataChange: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAdviseSink, + pFormatetc: *mut FORMATETC, + pStgmed: *mut STGMEDIUM, + ), + >, + pub OnViewChange: ::std::option::Option< + unsafe extern "C" fn(This: *mut IAdviseSink, dwAspect: DWORD, lindex: LONG), + >, + pub OnRename: + ::std::option::Option, + pub OnSave: ::std::option::Option, + pub OnClose: ::std::option::Option, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAdviseSink { + pub lpVtbl: *mut IAdviseSinkVtbl, +} +extern "C" { + pub fn IAdviseSink_RemoteOnDataChange_Proxy( + This: *mut IAdviseSink, + pFormatetc: *mut FORMATETC, + pStgmed: *mut ASYNC_STGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn IAdviseSink_RemoteOnDataChange_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IAdviseSink_RemoteOnViewChange_Proxy( + This: *mut IAdviseSink, + dwAspect: DWORD, + lindex: LONG, + ) -> HRESULT; +} +extern "C" { + pub fn IAdviseSink_RemoteOnViewChange_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IAdviseSink_RemoteOnRename_Proxy(This: *mut IAdviseSink, pmk: *mut IMoniker) -> HRESULT; +} +extern "C" { + pub fn IAdviseSink_RemoteOnRename_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IAdviseSink_RemoteOnSave_Proxy(This: *mut IAdviseSink) -> HRESULT; +} +extern "C" { + pub fn IAdviseSink_RemoteOnSave_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IAdviseSink_RemoteOnClose_Proxy(This: *mut IAdviseSink) -> HRESULT; +} +extern "C" { + pub fn IAdviseSink_RemoteOnClose_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static IID_AsyncIAdviseSink: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AsyncIAdviseSinkVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIAdviseSink, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Begin_OnDataChange: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIAdviseSink, + pFormatetc: *mut FORMATETC, + pStgmed: *mut STGMEDIUM, + ), + >, + pub Finish_OnDataChange: + ::std::option::Option, + pub Begin_OnViewChange: ::std::option::Option< + unsafe extern "C" fn(This: *mut AsyncIAdviseSink, dwAspect: DWORD, lindex: LONG), + >, + pub Finish_OnViewChange: + ::std::option::Option, + pub Begin_OnRename: ::std::option::Option< + unsafe extern "C" fn(This: *mut AsyncIAdviseSink, pmk: *mut IMoniker), + >, + pub Finish_OnRename: ::std::option::Option, + pub Begin_OnSave: ::std::option::Option, + pub Finish_OnSave: ::std::option::Option, + pub Begin_OnClose: ::std::option::Option, + pub Finish_OnClose: ::std::option::Option, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AsyncIAdviseSink { + pub lpVtbl: *mut AsyncIAdviseSinkVtbl, +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_RemoteOnDataChange_Proxy( + This: *mut AsyncIAdviseSink, + pFormatetc: *mut FORMATETC, + pStgmed: *mut ASYNC_STGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_RemoteOnDataChange_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_RemoteOnDataChange_Proxy(This: *mut AsyncIAdviseSink) + -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_RemoteOnDataChange_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_RemoteOnViewChange_Proxy( + This: *mut AsyncIAdviseSink, + dwAspect: DWORD, + lindex: LONG, + ) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_RemoteOnViewChange_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_RemoteOnViewChange_Proxy(This: *mut AsyncIAdviseSink) + -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_RemoteOnViewChange_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_RemoteOnRename_Proxy( + This: *mut AsyncIAdviseSink, + pmk: *mut IMoniker, + ) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_RemoteOnRename_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_RemoteOnRename_Proxy(This: *mut AsyncIAdviseSink) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_RemoteOnRename_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_RemoteOnSave_Proxy(This: *mut AsyncIAdviseSink) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_RemoteOnSave_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_RemoteOnSave_Proxy(This: *mut AsyncIAdviseSink) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_RemoteOnSave_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_RemoteOnClose_Proxy(This: *mut AsyncIAdviseSink) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_RemoteOnClose_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_RemoteOnClose_Proxy(This: *mut AsyncIAdviseSink) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_RemoteOnClose_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0073_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0073_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPADVISESINK2 = *mut IAdviseSink2; +extern "C" { + pub static IID_IAdviseSink2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAdviseSink2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAdviseSink2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub OnDataChange: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAdviseSink2, + pFormatetc: *mut FORMATETC, + pStgmed: *mut STGMEDIUM, + ), + >, + pub OnViewChange: ::std::option::Option< + unsafe extern "C" fn(This: *mut IAdviseSink2, dwAspect: DWORD, lindex: LONG), + >, + pub OnRename: + ::std::option::Option, + pub OnSave: ::std::option::Option, + pub OnClose: ::std::option::Option, + pub OnLinkSrcChange: + ::std::option::Option, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAdviseSink2 { + pub lpVtbl: *mut IAdviseSink2Vtbl, +} +extern "C" { + pub fn IAdviseSink2_RemoteOnLinkSrcChange_Proxy( + This: *mut IAdviseSink2, + pmk: *mut IMoniker, + ) -> HRESULT; +} +extern "C" { + pub fn IAdviseSink2_RemoteOnLinkSrcChange_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static IID_AsyncIAdviseSink2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AsyncIAdviseSink2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIAdviseSink2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Begin_OnDataChange: ::std::option::Option< + unsafe extern "C" fn( + This: *mut AsyncIAdviseSink2, + pFormatetc: *mut FORMATETC, + pStgmed: *mut STGMEDIUM, + ), + >, + pub Finish_OnDataChange: + ::std::option::Option, + pub Begin_OnViewChange: ::std::option::Option< + unsafe extern "C" fn(This: *mut AsyncIAdviseSink2, dwAspect: DWORD, lindex: LONG), + >, + pub Finish_OnViewChange: + ::std::option::Option, + pub Begin_OnRename: ::std::option::Option< + unsafe extern "C" fn(This: *mut AsyncIAdviseSink2, pmk: *mut IMoniker), + >, + pub Finish_OnRename: ::std::option::Option, + pub Begin_OnSave: ::std::option::Option, + pub Finish_OnSave: ::std::option::Option, + pub Begin_OnClose: ::std::option::Option, + pub Finish_OnClose: ::std::option::Option, + pub Begin_OnLinkSrcChange: ::std::option::Option< + unsafe extern "C" fn(This: *mut AsyncIAdviseSink2, pmk: *mut IMoniker), + >, + pub Finish_OnLinkSrcChange: + ::std::option::Option, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AsyncIAdviseSink2 { + pub lpVtbl: *mut AsyncIAdviseSink2Vtbl, +} +extern "C" { + pub fn AsyncIAdviseSink2_Begin_RemoteOnLinkSrcChange_Proxy( + This: *mut AsyncIAdviseSink2, + pmk: *mut IMoniker, + ) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink2_Begin_RemoteOnLinkSrcChange_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn AsyncIAdviseSink2_Finish_RemoteOnLinkSrcChange_Proxy( + This: *mut AsyncIAdviseSink2, + ) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink2_Finish_RemoteOnLinkSrcChange_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0074_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0074_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPDATAOBJECT = *mut IDataObject; +pub const tagDATADIR_DATADIR_GET: tagDATADIR = 1; +pub const tagDATADIR_DATADIR_SET: tagDATADIR = 2; +pub type tagDATADIR = ::std::os::raw::c_int; +pub use self::tagDATADIR as DATADIR; +extern "C" { + pub static IID_IDataObject: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDataObjectVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataObject, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataObject, + pformatetcIn: *mut FORMATETC, + pmedium: *mut STGMEDIUM, + ) -> HRESULT, + >, + pub GetDataHere: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataObject, + pformatetc: *mut FORMATETC, + pmedium: *mut STGMEDIUM, + ) -> HRESULT, + >, + pub QueryGetData: ::std::option::Option< + unsafe extern "C" fn(This: *mut IDataObject, pformatetc: *mut FORMATETC) -> HRESULT, + >, + pub GetCanonicalFormatEtc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataObject, + pformatectIn: *mut FORMATETC, + pformatetcOut: *mut FORMATETC, + ) -> HRESULT, + >, + pub SetData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataObject, + pformatetc: *mut FORMATETC, + pmedium: *mut STGMEDIUM, + fRelease: BOOL, + ) -> HRESULT, + >, + pub EnumFormatEtc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataObject, + dwDirection: DWORD, + ppenumFormatEtc: *mut *mut IEnumFORMATETC, + ) -> HRESULT, + >, + pub DAdvise: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataObject, + pformatetc: *mut FORMATETC, + advf: DWORD, + pAdvSink: *mut IAdviseSink, + pdwConnection: *mut DWORD, + ) -> HRESULT, + >, + pub DUnadvise: ::std::option::Option< + unsafe extern "C" fn(This: *mut IDataObject, dwConnection: DWORD) -> HRESULT, + >, + pub EnumDAdvise: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataObject, + ppenumAdvise: *mut *mut IEnumSTATDATA, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDataObject { + pub lpVtbl: *mut IDataObjectVtbl, +} +extern "C" { + pub fn IDataObject_RemoteGetData_Proxy( + This: *mut IDataObject, + pformatetcIn: *mut FORMATETC, + pRemoteMedium: *mut STGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn IDataObject_RemoteGetData_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IDataObject_RemoteGetDataHere_Proxy( + This: *mut IDataObject, + pformatetc: *mut FORMATETC, + pRemoteMedium: *mut STGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn IDataObject_RemoteGetDataHere_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IDataObject_RemoteSetData_Proxy( + This: *mut IDataObject, + pformatetc: *mut FORMATETC, + pmedium: *mut FLAG_STGMEDIUM, + fRelease: BOOL, + ) -> HRESULT; +} +extern "C" { + pub fn IDataObject_RemoteSetData_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0075_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0075_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPDATAADVISEHOLDER = *mut IDataAdviseHolder; +extern "C" { + pub static IID_IDataAdviseHolder: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDataAdviseHolderVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataAdviseHolder, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Advise: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataAdviseHolder, + pDataObject: *mut IDataObject, + pFetc: *mut FORMATETC, + advf: DWORD, + pAdvise: *mut IAdviseSink, + pdwConnection: *mut DWORD, + ) -> HRESULT, + >, + pub Unadvise: ::std::option::Option< + unsafe extern "C" fn(This: *mut IDataAdviseHolder, dwConnection: DWORD) -> HRESULT, + >, + pub EnumAdvise: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataAdviseHolder, + ppenumAdvise: *mut *mut IEnumSTATDATA, + ) -> HRESULT, + >, + pub SendOnDataChange: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataAdviseHolder, + pDataObject: *mut IDataObject, + dwReserved: DWORD, + advf: DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDataAdviseHolder { + pub lpVtbl: *mut IDataAdviseHolderVtbl, +} +pub type LPMESSAGEFILTER = *mut IMessageFilter; +pub const tagCALLTYPE_CALLTYPE_TOPLEVEL: tagCALLTYPE = 1; +pub const tagCALLTYPE_CALLTYPE_NESTED: tagCALLTYPE = 2; +pub const tagCALLTYPE_CALLTYPE_ASYNC: tagCALLTYPE = 3; +pub const tagCALLTYPE_CALLTYPE_TOPLEVEL_CALLPENDING: tagCALLTYPE = 4; +pub const tagCALLTYPE_CALLTYPE_ASYNC_CALLPENDING: tagCALLTYPE = 5; +pub type tagCALLTYPE = ::std::os::raw::c_int; +pub use self::tagCALLTYPE as CALLTYPE; +pub const tagSERVERCALL_SERVERCALL_ISHANDLED: tagSERVERCALL = 0; +pub const tagSERVERCALL_SERVERCALL_REJECTED: tagSERVERCALL = 1; +pub const tagSERVERCALL_SERVERCALL_RETRYLATER: tagSERVERCALL = 2; +pub type tagSERVERCALL = ::std::os::raw::c_int; +pub use self::tagSERVERCALL as SERVERCALL; +pub const tagPENDINGTYPE_PENDINGTYPE_TOPLEVEL: tagPENDINGTYPE = 1; +pub const tagPENDINGTYPE_PENDINGTYPE_NESTED: tagPENDINGTYPE = 2; +pub type tagPENDINGTYPE = ::std::os::raw::c_int; +pub use self::tagPENDINGTYPE as PENDINGTYPE; +pub const tagPENDINGMSG_PENDINGMSG_CANCELCALL: tagPENDINGMSG = 0; +pub const tagPENDINGMSG_PENDINGMSG_WAITNOPROCESS: tagPENDINGMSG = 1; +pub const tagPENDINGMSG_PENDINGMSG_WAITDEFPROCESS: tagPENDINGMSG = 2; +pub type tagPENDINGMSG = ::std::os::raw::c_int; +pub use self::tagPENDINGMSG as PENDINGMSG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagINTERFACEINFO { + pub pUnk: *mut IUnknown, + pub iid: IID, + pub wMethod: WORD, +} +pub type INTERFACEINFO = tagINTERFACEINFO; +pub type LPINTERFACEINFO = *mut tagINTERFACEINFO; +extern "C" { + pub static IID_IMessageFilter: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMessageFilterVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMessageFilter, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub HandleInComingCall: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMessageFilter, + dwCallType: DWORD, + htaskCaller: HTASK, + dwTickCount: DWORD, + lpInterfaceInfo: LPINTERFACEINFO, + ) -> DWORD, + >, + pub RetryRejectedCall: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMessageFilter, + htaskCallee: HTASK, + dwTickCount: DWORD, + dwRejectType: DWORD, + ) -> DWORD, + >, + pub MessagePending: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMessageFilter, + htaskCallee: HTASK, + dwTickCount: DWORD, + dwPendingType: DWORD, + ) -> DWORD, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMessageFilter { + pub lpVtbl: *mut IMessageFilterVtbl, +} +extern "C" { + pub static FMTID_SummaryInformation: FMTID; +} +extern "C" { + pub static FMTID_DocSummaryInformation: FMTID; +} +extern "C" { + pub static FMTID_UserDefinedProperties: FMTID; +} +extern "C" { + pub static FMTID_DiscardableInformation: FMTID; +} +extern "C" { + pub static FMTID_ImageSummaryInformation: FMTID; +} +extern "C" { + pub static FMTID_AudioSummaryInformation: FMTID; +} +extern "C" { + pub static FMTID_VideoSummaryInformation: FMTID; +} +extern "C" { + pub static FMTID_MediaFileSummaryInformation: FMTID; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0077_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0077_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IClassActivator: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IClassActivatorVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IClassActivator, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetClassObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IClassActivator, + rclsid: *const IID, + dwClassContext: DWORD, + locale: LCID, + riid: *const IID, + ppv: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IClassActivator { + pub lpVtbl: *mut IClassActivatorVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0078_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0078_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IFillLockBytes: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IFillLockBytesVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IFillLockBytes, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub FillAppend: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IFillLockBytes, + pv: *const ::std::os::raw::c_void, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT, + >, + pub FillAt: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IFillLockBytes, + ulOffset: ULARGE_INTEGER, + pv: *const ::std::os::raw::c_void, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT, + >, + pub SetFillSize: ::std::option::Option< + unsafe extern "C" fn(This: *mut IFillLockBytes, ulSize: ULARGE_INTEGER) -> HRESULT, + >, + pub Terminate: ::std::option::Option< + unsafe extern "C" fn(This: *mut IFillLockBytes, bCanceled: BOOL) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IFillLockBytes { + pub lpVtbl: *mut IFillLockBytesVtbl, +} +extern "C" { + pub fn IFillLockBytes_RemoteFillAppend_Proxy( + This: *mut IFillLockBytes, + pv: *const byte, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IFillLockBytes_RemoteFillAppend_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IFillLockBytes_RemoteFillAt_Proxy( + This: *mut IFillLockBytes, + ulOffset: ULARGE_INTEGER, + pv: *const byte, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IFillLockBytes_RemoteFillAt_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0079_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0079_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IProgressNotify: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IProgressNotifyVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IProgressNotify, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub OnProgress: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IProgressNotify, + dwProgressCurrent: DWORD, + dwProgressMaximum: DWORD, + fAccurate: BOOL, + fOwner: BOOL, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IProgressNotify { + pub lpVtbl: *mut IProgressNotifyVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0080_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0080_v0_0_s_ifspec: RPC_IF_HANDLE; +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagStorageLayout { + pub LayoutType: DWORD, + pub pwcsElementName: *mut OLECHAR, + pub cOffset: LARGE_INTEGER, + pub cBytes: LARGE_INTEGER, +} +pub type StorageLayout = tagStorageLayout; +extern "C" { + pub static IID_ILayoutStorage: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ILayoutStorageVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ILayoutStorage, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub LayoutScript: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ILayoutStorage, + pStorageLayout: *mut StorageLayout, + nEntries: DWORD, + glfInterleavedFlag: DWORD, + ) -> HRESULT, + >, + pub BeginMonitor: + ::std::option::Option HRESULT>, + pub EndMonitor: + ::std::option::Option HRESULT>, + pub ReLayoutDocfile: ::std::option::Option< + unsafe extern "C" fn(This: *mut ILayoutStorage, pwcsNewDfName: *mut OLECHAR) -> HRESULT, + >, + pub ReLayoutDocfileOnILockBytes: ::std::option::Option< + unsafe extern "C" fn(This: *mut ILayoutStorage, pILockBytes: *mut ILockBytes) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ILayoutStorage { + pub lpVtbl: *mut ILayoutStorageVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0081_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0081_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IBlockingLock: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBlockingLockVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBlockingLock, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Lock: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBlockingLock, dwTimeout: DWORD) -> HRESULT, + >, + pub Unlock: ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBlockingLock { + pub lpVtbl: *mut IBlockingLockVtbl, +} +extern "C" { + pub static IID_ITimeAndNoticeControl: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITimeAndNoticeControlVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITimeAndNoticeControl, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub SuppressChanges: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITimeAndNoticeControl, res1: DWORD, res2: DWORD) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITimeAndNoticeControl { + pub lpVtbl: *mut ITimeAndNoticeControlVtbl, +} +extern "C" { + pub static IID_IOplockStorage: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOplockStorageVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOplockStorage, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub CreateStorageEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOplockStorage, + pwcsName: LPCWSTR, + grfMode: DWORD, + stgfmt: DWORD, + grfAttrs: DWORD, + riid: *const IID, + ppstgOpen: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub OpenStorageEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOplockStorage, + pwcsName: LPCWSTR, + grfMode: DWORD, + stgfmt: DWORD, + grfAttrs: DWORD, + riid: *const IID, + ppstgOpen: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOplockStorage { + pub lpVtbl: *mut IOplockStorageVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0084_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0084_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IDirectWriterLock: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDirectWriterLockVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDirectWriterLock, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub WaitForWriteAccess: ::std::option::Option< + unsafe extern "C" fn(This: *mut IDirectWriterLock, dwTimeout: DWORD) -> HRESULT, + >, + pub ReleaseWriteAccess: + ::std::option::Option HRESULT>, + pub HaveWriteAccess: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDirectWriterLock { + pub lpVtbl: *mut IDirectWriterLockVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0085_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0085_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IUrlMon: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IUrlMonVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUrlMon, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub AsyncGetClassBits: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUrlMon, + rclsid: *const IID, + pszTYPE: LPCWSTR, + pszExt: LPCWSTR, + dwFileVersionMS: DWORD, + dwFileVersionLS: DWORD, + pszCodeBase: LPCWSTR, + pbc: *mut IBindCtx, + dwClassContext: DWORD, + riid: *const IID, + flags: DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IUrlMon { + pub lpVtbl: *mut IUrlMonVtbl, +} +extern "C" { + pub static IID_IForegroundTransfer: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IForegroundTransferVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IForegroundTransfer, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub AllowForegroundTransfer: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IForegroundTransfer, + lpvReserved: *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IForegroundTransfer { + pub lpVtbl: *mut IForegroundTransferVtbl, +} +extern "C" { + pub static IID_IThumbnailExtractor: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IThumbnailExtractorVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IThumbnailExtractor, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub ExtractThumbnail: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IThumbnailExtractor, + pStg: *mut IStorage, + ulLength: ULONG, + ulHeight: ULONG, + pulOutputLength: *mut ULONG, + pulOutputHeight: *mut ULONG, + phOutputBitmap: *mut HBITMAP, + ) -> HRESULT, + >, + pub OnFileUpdated: ::std::option::Option< + unsafe extern "C" fn(This: *mut IThumbnailExtractor, pStg: *mut IStorage) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IThumbnailExtractor { + pub lpVtbl: *mut IThumbnailExtractorVtbl, +} +extern "C" { + pub static IID_IDummyHICONIncluder: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDummyHICONIncluderVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDummyHICONIncluder, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub Dummy: ::std::option::Option< + unsafe extern "C" fn(This: *mut IDummyHICONIncluder, h1: HICON, h2: HDC) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDummyHICONIncluder { + pub lpVtbl: *mut IDummyHICONIncluderVtbl, +} +pub const tagApplicationType_ServerApplication: tagApplicationType = 0; +pub const tagApplicationType_LibraryApplication: tagApplicationType = 1; +pub type tagApplicationType = ::std::os::raw::c_int; +pub use self::tagApplicationType as ApplicationType; +pub const tagShutdownType_IdleShutdown: tagShutdownType = 0; +pub const tagShutdownType_ForcedShutdown: tagShutdownType = 1; +pub type tagShutdownType = ::std::os::raw::c_int; +pub use self::tagShutdownType as ShutdownType; +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0089_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0089_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IProcessLock: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IProcessLockVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IProcessLock, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub AddRefOnProcess: + ::std::option::Option ULONG>, + pub ReleaseRefOnProcess: + ::std::option::Option ULONG>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IProcessLock { + pub lpVtbl: *mut IProcessLockVtbl, +} +extern "C" { + pub static IID_ISurrogateService: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISurrogateServiceVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISurrogateService, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Init: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISurrogateService, + rguidProcessID: *const GUID, + pProcessLock: *mut IProcessLock, + pfApplicationAware: *mut BOOL, + ) -> HRESULT, + >, + pub ApplicationLaunch: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISurrogateService, + rguidApplID: *const GUID, + appType: ApplicationType, + ) -> HRESULT, + >, + pub ApplicationFree: ::std::option::Option< + unsafe extern "C" fn(This: *mut ISurrogateService, rguidApplID: *const GUID) -> HRESULT, + >, + pub CatalogRefresh: ::std::option::Option< + unsafe extern "C" fn(This: *mut ISurrogateService, ulReserved: ULONG) -> HRESULT, + >, + pub ProcessShutdown: ::std::option::Option< + unsafe extern "C" fn(This: *mut ISurrogateService, shutdownType: ShutdownType) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISurrogateService { + pub lpVtbl: *mut ISurrogateServiceVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0091_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0091_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPINITIALIZESPY = *mut IInitializeSpy; +extern "C" { + pub static IID_IInitializeSpy: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInitializeSpyVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInitializeSpy, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub PreInitialize: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInitializeSpy, + dwCoInit: DWORD, + dwCurThreadAptRefs: DWORD, + ) -> HRESULT, + >, + pub PostInitialize: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInitializeSpy, + hrCoInit: HRESULT, + dwCoInit: DWORD, + dwNewThreadAptRefs: DWORD, + ) -> HRESULT, + >, + pub PreUninitialize: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInitializeSpy, dwCurThreadAptRefs: DWORD) -> HRESULT, + >, + pub PostUninitialize: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInitializeSpy, dwNewThreadAptRefs: DWORD) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInitializeSpy { + pub lpVtbl: *mut IInitializeSpyVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0092_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0092_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IApartmentShutdown: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IApartmentShutdownVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IApartmentShutdown, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub OnUninitialize: ::std::option::Option< + unsafe extern "C" fn(This: *mut IApartmentShutdown, ui64ApartmentIdentifier: UINT64), + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IApartmentShutdown { + pub lpVtbl: *mut IApartmentShutdownVtbl, +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0093_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_objidl_0000_0093_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub fn ASYNC_STGMEDIUM_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut ASYNC_STGMEDIUM, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn ASYNC_STGMEDIUM_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut ASYNC_STGMEDIUM, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn ASYNC_STGMEDIUM_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut ASYNC_STGMEDIUM, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn ASYNC_STGMEDIUM_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut ASYNC_STGMEDIUM); +} +extern "C" { + pub fn CLIPFORMAT_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut CLIPFORMAT, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn CLIPFORMAT_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut CLIPFORMAT, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn CLIPFORMAT_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut CLIPFORMAT, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn CLIPFORMAT_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut CLIPFORMAT); +} +extern "C" { + pub fn FLAG_STGMEDIUM_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut FLAG_STGMEDIUM, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn FLAG_STGMEDIUM_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut FLAG_STGMEDIUM, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn FLAG_STGMEDIUM_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut FLAG_STGMEDIUM, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn FLAG_STGMEDIUM_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut FLAG_STGMEDIUM); +} +extern "C" { + pub fn HBITMAP_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut HBITMAP, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn HBITMAP_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HBITMAP, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HBITMAP_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HBITMAP, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HBITMAP_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HBITMAP); +} +extern "C" { + pub fn HDC_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut HDC, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn HDC_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HDC, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HDC_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HDC, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HDC_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HDC); +} +extern "C" { + pub fn HICON_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut HICON, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn HICON_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HICON, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HICON_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HICON, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HICON_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HICON); +} +extern "C" { + pub fn SNB_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut SNB, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn SNB_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut SNB, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn SNB_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut SNB, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn SNB_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut SNB); +} +extern "C" { + pub fn STGMEDIUM_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut STGMEDIUM, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn STGMEDIUM_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut STGMEDIUM, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn STGMEDIUM_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut STGMEDIUM, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn STGMEDIUM_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut STGMEDIUM); +} +extern "C" { + pub fn ASYNC_STGMEDIUM_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut ASYNC_STGMEDIUM, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn ASYNC_STGMEDIUM_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut ASYNC_STGMEDIUM, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn ASYNC_STGMEDIUM_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut ASYNC_STGMEDIUM, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn ASYNC_STGMEDIUM_UserFree64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ASYNC_STGMEDIUM, + ); +} +extern "C" { + pub fn CLIPFORMAT_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut CLIPFORMAT, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn CLIPFORMAT_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut CLIPFORMAT, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn CLIPFORMAT_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut CLIPFORMAT, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn CLIPFORMAT_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut CLIPFORMAT); +} +extern "C" { + pub fn FLAG_STGMEDIUM_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut FLAG_STGMEDIUM, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn FLAG_STGMEDIUM_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut FLAG_STGMEDIUM, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn FLAG_STGMEDIUM_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut FLAG_STGMEDIUM, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn FLAG_STGMEDIUM_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut FLAG_STGMEDIUM); +} +extern "C" { + pub fn HBITMAP_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut HBITMAP, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn HBITMAP_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HBITMAP, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HBITMAP_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HBITMAP, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HBITMAP_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HBITMAP); +} +extern "C" { + pub fn HDC_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut HDC, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn HDC_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HDC, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HDC_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HDC, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HDC_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HDC); +} +extern "C" { + pub fn HICON_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut HICON, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn HICON_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HICON, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HICON_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HICON, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HICON_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HICON); +} +extern "C" { + pub fn SNB_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut SNB, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn SNB_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut SNB, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn SNB_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut SNB, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn SNB_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut SNB); +} +extern "C" { + pub fn STGMEDIUM_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut STGMEDIUM, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn STGMEDIUM_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut STGMEDIUM, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn STGMEDIUM_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut STGMEDIUM, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn STGMEDIUM_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut STGMEDIUM); +} +extern "C" { + pub fn IBindCtx_SetBindOptions_Proxy(This: *mut IBindCtx, pbindopts: *mut BIND_OPTS) + -> HRESULT; +} +extern "C" { + pub fn IBindCtx_SetBindOptions_Stub(This: *mut IBindCtx, pbindopts: *mut BIND_OPTS2) + -> HRESULT; +} +extern "C" { + pub fn IBindCtx_GetBindOptions_Proxy(This: *mut IBindCtx, pbindopts: *mut BIND_OPTS) + -> HRESULT; +} +extern "C" { + pub fn IBindCtx_GetBindOptions_Stub(This: *mut IBindCtx, pbindopts: *mut BIND_OPTS2) + -> HRESULT; +} +extern "C" { + pub fn IEnumMoniker_Next_Proxy( + This: *mut IEnumMoniker, + celt: ULONG, + rgelt: *mut *mut IMoniker, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumMoniker_Next_Stub( + This: *mut IEnumMoniker, + celt: ULONG, + rgelt: *mut *mut IMoniker, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IRunnableObject_IsRunning_Proxy(This: *mut IRunnableObject) -> BOOL; +} +extern "C" { + pub fn IRunnableObject_IsRunning_Stub(This: *mut IRunnableObject) -> HRESULT; +} +extern "C" { + pub fn IMoniker_BindToObject_Proxy( + This: *mut IMoniker, + pbc: *mut IBindCtx, + pmkToLeft: *mut IMoniker, + riidResult: *const IID, + ppvResult: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn IMoniker_BindToObject_Stub( + This: *mut IMoniker, + pbc: *mut IBindCtx, + pmkToLeft: *mut IMoniker, + riidResult: *const IID, + ppvResult: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn IMoniker_BindToStorage_Proxy( + This: *mut IMoniker, + pbc: *mut IBindCtx, + pmkToLeft: *mut IMoniker, + riid: *const IID, + ppvObj: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn IMoniker_BindToStorage_Stub( + This: *mut IMoniker, + pbc: *mut IBindCtx, + pmkToLeft: *mut IMoniker, + riid: *const IID, + ppvObj: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumSTATSTG_Next_Proxy( + This: *mut IEnumSTATSTG, + celt: ULONG, + rgelt: *mut STATSTG, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumSTATSTG_Next_Stub( + This: *mut IEnumSTATSTG, + celt: ULONG, + rgelt: *mut STATSTG, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IStorage_OpenStream_Proxy( + This: *mut IStorage, + pwcsName: *const OLECHAR, + reserved1: *mut ::std::os::raw::c_void, + grfMode: DWORD, + reserved2: DWORD, + ppstm: *mut *mut IStream, + ) -> HRESULT; +} +extern "C" { + pub fn IStorage_OpenStream_Stub( + This: *mut IStorage, + pwcsName: *const OLECHAR, + cbReserved1: ULONG, + reserved1: *mut byte, + grfMode: DWORD, + reserved2: DWORD, + ppstm: *mut *mut IStream, + ) -> HRESULT; +} +extern "C" { + pub fn IStorage_CopyTo_Proxy( + This: *mut IStorage, + ciidExclude: DWORD, + rgiidExclude: *const IID, + snbExclude: SNB, + pstgDest: *mut IStorage, + ) -> HRESULT; +} +extern "C" { + pub fn IStorage_CopyTo_Stub( + This: *mut IStorage, + ciidExclude: DWORD, + rgiidExclude: *const IID, + snbExclude: SNB, + pstgDest: *mut IStorage, + ) -> HRESULT; +} +extern "C" { + pub fn IStorage_EnumElements_Proxy( + This: *mut IStorage, + reserved1: DWORD, + reserved2: *mut ::std::os::raw::c_void, + reserved3: DWORD, + ppenum: *mut *mut IEnumSTATSTG, + ) -> HRESULT; +} +extern "C" { + pub fn IStorage_EnumElements_Stub( + This: *mut IStorage, + reserved1: DWORD, + cbReserved2: ULONG, + reserved2: *mut byte, + reserved3: DWORD, + ppenum: *mut *mut IEnumSTATSTG, + ) -> HRESULT; +} +extern "C" { + pub fn ILockBytes_ReadAt_Proxy( + This: *mut ILockBytes, + ulOffset: ULARGE_INTEGER, + pv: *mut ::std::os::raw::c_void, + cb: ULONG, + pcbRead: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ILockBytes_ReadAt_Stub( + This: *mut ILockBytes, + ulOffset: ULARGE_INTEGER, + pv: *mut byte, + cb: ULONG, + pcbRead: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ILockBytes_WriteAt_Proxy( + This: *mut ILockBytes, + ulOffset: ULARGE_INTEGER, + pv: *const ::std::os::raw::c_void, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ILockBytes_WriteAt_Stub( + This: *mut ILockBytes, + ulOffset: ULARGE_INTEGER, + pv: *const byte, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumFORMATETC_Next_Proxy( + This: *mut IEnumFORMATETC, + celt: ULONG, + rgelt: *mut FORMATETC, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumFORMATETC_Next_Stub( + This: *mut IEnumFORMATETC, + celt: ULONG, + rgelt: *mut FORMATETC, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumSTATDATA_Next_Proxy( + This: *mut IEnumSTATDATA, + celt: ULONG, + rgelt: *mut STATDATA, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumSTATDATA_Next_Stub( + This: *mut IEnumSTATDATA, + celt: ULONG, + rgelt: *mut STATDATA, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IAdviseSink_OnDataChange_Proxy( + This: *mut IAdviseSink, + pFormatetc: *mut FORMATETC, + pStgmed: *mut STGMEDIUM, + ); +} +extern "C" { + pub fn IAdviseSink_OnDataChange_Stub( + This: *mut IAdviseSink, + pFormatetc: *mut FORMATETC, + pStgmed: *mut ASYNC_STGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn IAdviseSink_OnViewChange_Proxy(This: *mut IAdviseSink, dwAspect: DWORD, lindex: LONG); +} +extern "C" { + pub fn IAdviseSink_OnViewChange_Stub( + This: *mut IAdviseSink, + dwAspect: DWORD, + lindex: LONG, + ) -> HRESULT; +} +extern "C" { + pub fn IAdviseSink_OnRename_Proxy(This: *mut IAdviseSink, pmk: *mut IMoniker); +} +extern "C" { + pub fn IAdviseSink_OnRename_Stub(This: *mut IAdviseSink, pmk: *mut IMoniker) -> HRESULT; +} +extern "C" { + pub fn IAdviseSink_OnSave_Proxy(This: *mut IAdviseSink); +} +extern "C" { + pub fn IAdviseSink_OnSave_Stub(This: *mut IAdviseSink) -> HRESULT; +} +extern "C" { + pub fn IAdviseSink_OnClose_Proxy(This: *mut IAdviseSink); +} +extern "C" { + pub fn IAdviseSink_OnClose_Stub(This: *mut IAdviseSink) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_OnDataChange_Proxy( + This: *mut AsyncIAdviseSink, + pFormatetc: *mut FORMATETC, + pStgmed: *mut STGMEDIUM, + ); +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_OnDataChange_Stub( + This: *mut AsyncIAdviseSink, + pFormatetc: *mut FORMATETC, + pStgmed: *mut ASYNC_STGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_OnDataChange_Proxy(This: *mut AsyncIAdviseSink); +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_OnDataChange_Stub(This: *mut AsyncIAdviseSink) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_OnViewChange_Proxy( + This: *mut AsyncIAdviseSink, + dwAspect: DWORD, + lindex: LONG, + ); +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_OnViewChange_Stub( + This: *mut AsyncIAdviseSink, + dwAspect: DWORD, + lindex: LONG, + ) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_OnViewChange_Proxy(This: *mut AsyncIAdviseSink); +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_OnViewChange_Stub(This: *mut AsyncIAdviseSink) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_OnRename_Proxy(This: *mut AsyncIAdviseSink, pmk: *mut IMoniker); +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_OnRename_Stub( + This: *mut AsyncIAdviseSink, + pmk: *mut IMoniker, + ) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_OnRename_Proxy(This: *mut AsyncIAdviseSink); +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_OnRename_Stub(This: *mut AsyncIAdviseSink) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_OnSave_Proxy(This: *mut AsyncIAdviseSink); +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_OnSave_Stub(This: *mut AsyncIAdviseSink) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_OnSave_Proxy(This: *mut AsyncIAdviseSink); +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_OnSave_Stub(This: *mut AsyncIAdviseSink) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_OnClose_Proxy(This: *mut AsyncIAdviseSink); +} +extern "C" { + pub fn AsyncIAdviseSink_Begin_OnClose_Stub(This: *mut AsyncIAdviseSink) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_OnClose_Proxy(This: *mut AsyncIAdviseSink); +} +extern "C" { + pub fn AsyncIAdviseSink_Finish_OnClose_Stub(This: *mut AsyncIAdviseSink) -> HRESULT; +} +extern "C" { + pub fn IAdviseSink2_OnLinkSrcChange_Proxy(This: *mut IAdviseSink2, pmk: *mut IMoniker); +} +extern "C" { + pub fn IAdviseSink2_OnLinkSrcChange_Stub( + This: *mut IAdviseSink2, + pmk: *mut IMoniker, + ) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink2_Begin_OnLinkSrcChange_Proxy( + This: *mut AsyncIAdviseSink2, + pmk: *mut IMoniker, + ); +} +extern "C" { + pub fn AsyncIAdviseSink2_Begin_OnLinkSrcChange_Stub( + This: *mut AsyncIAdviseSink2, + pmk: *mut IMoniker, + ) -> HRESULT; +} +extern "C" { + pub fn AsyncIAdviseSink2_Finish_OnLinkSrcChange_Proxy(This: *mut AsyncIAdviseSink2); +} +extern "C" { + pub fn AsyncIAdviseSink2_Finish_OnLinkSrcChange_Stub(This: *mut AsyncIAdviseSink2) -> HRESULT; +} +extern "C" { + pub fn IDataObject_GetData_Proxy( + This: *mut IDataObject, + pformatetcIn: *mut FORMATETC, + pmedium: *mut STGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn IDataObject_GetData_Stub( + This: *mut IDataObject, + pformatetcIn: *mut FORMATETC, + pRemoteMedium: *mut STGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn IDataObject_GetDataHere_Proxy( + This: *mut IDataObject, + pformatetc: *mut FORMATETC, + pmedium: *mut STGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn IDataObject_GetDataHere_Stub( + This: *mut IDataObject, + pformatetc: *mut FORMATETC, + pRemoteMedium: *mut STGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn IDataObject_SetData_Proxy( + This: *mut IDataObject, + pformatetc: *mut FORMATETC, + pmedium: *mut STGMEDIUM, + fRelease: BOOL, + ) -> HRESULT; +} +extern "C" { + pub fn IDataObject_SetData_Stub( + This: *mut IDataObject, + pformatetc: *mut FORMATETC, + pmedium: *mut FLAG_STGMEDIUM, + fRelease: BOOL, + ) -> HRESULT; +} +extern "C" { + pub fn IFillLockBytes_FillAppend_Proxy( + This: *mut IFillLockBytes, + pv: *const ::std::os::raw::c_void, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IFillLockBytes_FillAppend_Stub( + This: *mut IFillLockBytes, + pv: *const byte, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IFillLockBytes_FillAt_Proxy( + This: *mut IFillLockBytes, + ulOffset: ULARGE_INTEGER, + pv: *const ::std::os::raw::c_void, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IFillLockBytes_FillAt_Stub( + This: *mut IFillLockBytes, + ulOffset: ULARGE_INTEGER, + pv: *const byte, + cb: ULONG, + pcbWritten: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub static mut __MIDL_itf_oaidl_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_oaidl_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type CURRENCY = CY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSAFEARRAYBOUND { + pub cElements: ULONG, + pub lLbound: LONG, +} +pub type SAFEARRAYBOUND = tagSAFEARRAYBOUND; +pub type LPSAFEARRAYBOUND = *mut tagSAFEARRAYBOUND; +pub type wireVARIANT = *mut _wireVARIANT; +pub type wireBRECORD = *mut _wireBRECORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _wireSAFEARR_BSTR { + pub Size: ULONG, + pub aBstr: *mut wireBSTR, +} +pub type SAFEARR_BSTR = _wireSAFEARR_BSTR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _wireSAFEARR_UNKNOWN { + pub Size: ULONG, + pub apUnknown: *mut *mut IUnknown, +} +pub type SAFEARR_UNKNOWN = _wireSAFEARR_UNKNOWN; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _wireSAFEARR_DISPATCH { + pub Size: ULONG, + pub apDispatch: *mut *mut IDispatch, +} +pub type SAFEARR_DISPATCH = _wireSAFEARR_DISPATCH; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _wireSAFEARR_VARIANT { + pub Size: ULONG, + pub aVariant: *mut wireVARIANT, +} +pub type SAFEARR_VARIANT = _wireSAFEARR_VARIANT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _wireSAFEARR_BRECORD { + pub Size: ULONG, + pub aRecord: *mut wireBRECORD, +} +pub type SAFEARR_BRECORD = _wireSAFEARR_BRECORD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _wireSAFEARR_HAVEIID { + pub Size: ULONG, + pub apUnknown: *mut *mut IUnknown, + pub iid: IID, +} +pub type SAFEARR_HAVEIID = _wireSAFEARR_HAVEIID; +pub const tagSF_TYPE_SF_ERROR: tagSF_TYPE = 10; +pub const tagSF_TYPE_SF_I1: tagSF_TYPE = 16; +pub const tagSF_TYPE_SF_I2: tagSF_TYPE = 2; +pub const tagSF_TYPE_SF_I4: tagSF_TYPE = 3; +pub const tagSF_TYPE_SF_I8: tagSF_TYPE = 20; +pub const tagSF_TYPE_SF_BSTR: tagSF_TYPE = 8; +pub const tagSF_TYPE_SF_UNKNOWN: tagSF_TYPE = 13; +pub const tagSF_TYPE_SF_DISPATCH: tagSF_TYPE = 9; +pub const tagSF_TYPE_SF_VARIANT: tagSF_TYPE = 12; +pub const tagSF_TYPE_SF_RECORD: tagSF_TYPE = 36; +pub const tagSF_TYPE_SF_HAVEIID: tagSF_TYPE = 32781; +pub type tagSF_TYPE = ::std::os::raw::c_int; +pub use self::tagSF_TYPE as SF_TYPE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _wireSAFEARRAY_UNION { + pub sfType: ULONG, + pub u: _wireSAFEARRAY_UNION___MIDL_IOleAutomationTypes_0001, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _wireSAFEARRAY_UNION___MIDL_IOleAutomationTypes_0001 { + pub BstrStr: SAFEARR_BSTR, + pub UnknownStr: SAFEARR_UNKNOWN, + pub DispatchStr: SAFEARR_DISPATCH, + pub VariantStr: SAFEARR_VARIANT, + pub RecordStr: SAFEARR_BRECORD, + pub HaveIidStr: SAFEARR_HAVEIID, + pub ByteStr: BYTE_SIZEDARR, + pub WordStr: WORD_SIZEDARR, + pub LongStr: DWORD_SIZEDARR, + pub HyperStr: HYPER_SIZEDARR, +} +pub type SAFEARRAYUNION = _wireSAFEARRAY_UNION; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _wireSAFEARRAY { + pub cDims: USHORT, + pub fFeatures: USHORT, + pub cbElements: ULONG, + pub cLocks: ULONG, + pub uArrayStructs: SAFEARRAYUNION, + pub rgsabound: [SAFEARRAYBOUND; 1usize], +} +pub type wireSAFEARRAY = *mut _wireSAFEARRAY; +pub type wirePSAFEARRAY = *mut wireSAFEARRAY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSAFEARRAY { + pub cDims: USHORT, + pub fFeatures: USHORT, + pub cbElements: ULONG, + pub cLocks: ULONG, + pub pvData: PVOID, + pub rgsabound: [SAFEARRAYBOUND; 1usize], +} +pub type SAFEARRAY = tagSAFEARRAY; +pub type LPSAFEARRAY = *mut SAFEARRAY; +pub type VARIANT = tagVARIANT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagVARIANT { + pub __bindgen_anon_1: tagVARIANT__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagVARIANT__bindgen_ty_1 { + pub __bindgen_anon_1: tagVARIANT__bindgen_ty_1__bindgen_ty_1, + pub decVal: DECIMAL, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagVARIANT__bindgen_ty_1__bindgen_ty_1 { + pub vt: VARTYPE, + pub wReserved1: WORD, + pub wReserved2: WORD, + pub wReserved3: WORD, + pub __bindgen_anon_1: tagVARIANT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagVARIANT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { + pub llVal: LONGLONG, + pub lVal: LONG, + pub bVal: BYTE, + pub iVal: SHORT, + pub fltVal: FLOAT, + pub dblVal: DOUBLE, + pub boolVal: VARIANT_BOOL, + pub __OBSOLETE__VARIANT_BOOL: VARIANT_BOOL, + pub scode: SCODE, + pub cyVal: CY, + pub date: DATE, + pub bstrVal: BSTR, + pub punkVal: *mut IUnknown, + pub pdispVal: *mut IDispatch, + pub parray: *mut SAFEARRAY, + pub pbVal: *mut BYTE, + pub piVal: *mut SHORT, + pub plVal: *mut LONG, + pub pllVal: *mut LONGLONG, + pub pfltVal: *mut FLOAT, + pub pdblVal: *mut DOUBLE, + pub pboolVal: *mut VARIANT_BOOL, + pub __OBSOLETE__VARIANT_PBOOL: *mut VARIANT_BOOL, + pub pscode: *mut SCODE, + pub pcyVal: *mut CY, + pub pdate: *mut DATE, + pub pbstrVal: *mut BSTR, + pub ppunkVal: *mut *mut IUnknown, + pub ppdispVal: *mut *mut IDispatch, + pub pparray: *mut *mut SAFEARRAY, + pub pvarVal: *mut VARIANT, + pub byref: PVOID, + pub cVal: CHAR, + pub uiVal: USHORT, + pub ulVal: ULONG, + pub ullVal: ULONGLONG, + pub intVal: INT, + pub uintVal: UINT, + pub pdecVal: *mut DECIMAL, + pub pcVal: *mut CHAR, + pub puiVal: *mut USHORT, + pub pulVal: *mut ULONG, + pub pullVal: *mut ULONGLONG, + pub pintVal: *mut INT, + pub puintVal: *mut UINT, + pub __bindgen_anon_1: tagVARIANT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagVARIANT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { + pub pvRecord: PVOID, + pub pRecInfo: *mut IRecordInfo, +} +pub type LPVARIANT = *mut VARIANT; +pub type VARIANTARG = VARIANT; +pub type LPVARIANTARG = *mut VARIANT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _wireBRECORD { + pub fFlags: ULONG, + pub clSize: ULONG, + pub pRecInfo: *mut IRecordInfo, + pub pRecord: *mut byte, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _wireVARIANT { + pub clSize: DWORD, + pub rpcReserved: DWORD, + pub vt: USHORT, + pub wReserved1: USHORT, + pub wReserved2: USHORT, + pub wReserved3: USHORT, + pub __bindgen_anon_1: _wireVARIANT__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _wireVARIANT__bindgen_ty_1 { + pub llVal: LONGLONG, + pub lVal: LONG, + pub bVal: BYTE, + pub iVal: SHORT, + pub fltVal: FLOAT, + pub dblVal: DOUBLE, + pub boolVal: VARIANT_BOOL, + pub scode: SCODE, + pub cyVal: CY, + pub date: DATE, + pub bstrVal: wireBSTR, + pub punkVal: *mut IUnknown, + pub pdispVal: *mut IDispatch, + pub parray: wirePSAFEARRAY, + pub brecVal: wireBRECORD, + pub pbVal: *mut BYTE, + pub piVal: *mut SHORT, + pub plVal: *mut LONG, + pub pllVal: *mut LONGLONG, + pub pfltVal: *mut FLOAT, + pub pdblVal: *mut DOUBLE, + pub pboolVal: *mut VARIANT_BOOL, + pub pscode: *mut SCODE, + pub pcyVal: *mut CY, + pub pdate: *mut DATE, + pub pbstrVal: *mut wireBSTR, + pub ppunkVal: *mut *mut IUnknown, + pub ppdispVal: *mut *mut IDispatch, + pub pparray: *mut wirePSAFEARRAY, + pub pvarVal: *mut wireVARIANT, + pub cVal: CHAR, + pub uiVal: USHORT, + pub ulVal: ULONG, + pub ullVal: ULONGLONG, + pub intVal: INT, + pub uintVal: UINT, + pub decVal: DECIMAL, + pub pdecVal: *mut DECIMAL, + pub pcVal: *mut CHAR, + pub puiVal: *mut USHORT, + pub pulVal: *mut ULONG, + pub pullVal: *mut ULONGLONG, + pub pintVal: *mut INT, + pub puintVal: *mut UINT, +} +pub type DISPID = LONG; +pub type MEMBERID = DISPID; +pub type HREFTYPE = DWORD; +pub const tagTYPEKIND_TKIND_ENUM: tagTYPEKIND = 0; +pub const tagTYPEKIND_TKIND_RECORD: tagTYPEKIND = 1; +pub const tagTYPEKIND_TKIND_MODULE: tagTYPEKIND = 2; +pub const tagTYPEKIND_TKIND_INTERFACE: tagTYPEKIND = 3; +pub const tagTYPEKIND_TKIND_DISPATCH: tagTYPEKIND = 4; +pub const tagTYPEKIND_TKIND_COCLASS: tagTYPEKIND = 5; +pub const tagTYPEKIND_TKIND_ALIAS: tagTYPEKIND = 6; +pub const tagTYPEKIND_TKIND_UNION: tagTYPEKIND = 7; +pub const tagTYPEKIND_TKIND_MAX: tagTYPEKIND = 8; +pub type tagTYPEKIND = ::std::os::raw::c_int; +pub use self::tagTYPEKIND as TYPEKIND; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagTYPEDESC { + pub __bindgen_anon_1: tagTYPEDESC__bindgen_ty_1, + pub vt: VARTYPE, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagTYPEDESC__bindgen_ty_1 { + pub lptdesc: *mut tagTYPEDESC, + pub lpadesc: *mut tagARRAYDESC, + pub hreftype: HREFTYPE, +} +pub type TYPEDESC = tagTYPEDESC; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagARRAYDESC { + pub tdescElem: TYPEDESC, + pub cDims: USHORT, + pub rgbounds: [SAFEARRAYBOUND; 1usize], +} +pub type ARRAYDESC = tagARRAYDESC; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagPARAMDESCEX { + pub cBytes: ULONG, + pub varDefaultValue: VARIANTARG, +} +pub type PARAMDESCEX = tagPARAMDESCEX; +pub type LPPARAMDESCEX = *mut tagPARAMDESCEX; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPARAMDESC { + pub pparamdescex: LPPARAMDESCEX, + pub wParamFlags: USHORT, +} +pub type PARAMDESC = tagPARAMDESC; +pub type LPPARAMDESC = *mut tagPARAMDESC; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagIDLDESC { + pub dwReserved: ULONG_PTR, + pub wIDLFlags: USHORT, +} +pub type IDLDESC = tagIDLDESC; +pub type LPIDLDESC = *mut tagIDLDESC; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagELEMDESC { + pub tdesc: TYPEDESC, + pub __bindgen_anon_1: tagELEMDESC__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagELEMDESC__bindgen_ty_1 { + pub idldesc: IDLDESC, + pub paramdesc: PARAMDESC, +} +pub type ELEMDESC = tagELEMDESC; +pub type LPELEMDESC = *mut tagELEMDESC; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagTYPEATTR { + pub guid: GUID, + pub lcid: LCID, + pub dwReserved: DWORD, + pub memidConstructor: MEMBERID, + pub memidDestructor: MEMBERID, + pub lpstrSchema: LPOLESTR, + pub cbSizeInstance: ULONG, + pub typekind: TYPEKIND, + pub cFuncs: WORD, + pub cVars: WORD, + pub cImplTypes: WORD, + pub cbSizeVft: WORD, + pub cbAlignment: WORD, + pub wTypeFlags: WORD, + pub wMajorVerNum: WORD, + pub wMinorVerNum: WORD, + pub tdescAlias: TYPEDESC, + pub idldescType: IDLDESC, +} +pub type TYPEATTR = tagTYPEATTR; +pub type LPTYPEATTR = *mut tagTYPEATTR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagDISPPARAMS { + pub rgvarg: *mut VARIANTARG, + pub rgdispidNamedArgs: *mut DISPID, + pub cArgs: UINT, + pub cNamedArgs: UINT, +} +pub type DISPPARAMS = tagDISPPARAMS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagEXCEPINFO { + pub wCode: WORD, + pub wReserved: WORD, + pub bstrSource: BSTR, + pub bstrDescription: BSTR, + pub bstrHelpFile: BSTR, + pub dwHelpContext: DWORD, + pub pvReserved: PVOID, + pub pfnDeferredFillIn: + ::std::option::Option HRESULT>, + pub scode: SCODE, +} +pub type EXCEPINFO = tagEXCEPINFO; +pub type LPEXCEPINFO = *mut tagEXCEPINFO; +pub const tagCALLCONV_CC_FASTCALL: tagCALLCONV = 0; +pub const tagCALLCONV_CC_CDECL: tagCALLCONV = 1; +pub const tagCALLCONV_CC_MSCPASCAL: tagCALLCONV = 2; +pub const tagCALLCONV_CC_PASCAL: tagCALLCONV = 2; +pub const tagCALLCONV_CC_MACPASCAL: tagCALLCONV = 3; +pub const tagCALLCONV_CC_STDCALL: tagCALLCONV = 4; +pub const tagCALLCONV_CC_FPFASTCALL: tagCALLCONV = 5; +pub const tagCALLCONV_CC_SYSCALL: tagCALLCONV = 6; +pub const tagCALLCONV_CC_MPWCDECL: tagCALLCONV = 7; +pub const tagCALLCONV_CC_MPWPASCAL: tagCALLCONV = 8; +pub const tagCALLCONV_CC_MAX: tagCALLCONV = 9; +pub type tagCALLCONV = ::std::os::raw::c_int; +pub use self::tagCALLCONV as CALLCONV; +pub const tagFUNCKIND_FUNC_VIRTUAL: tagFUNCKIND = 0; +pub const tagFUNCKIND_FUNC_PUREVIRTUAL: tagFUNCKIND = 1; +pub const tagFUNCKIND_FUNC_NONVIRTUAL: tagFUNCKIND = 2; +pub const tagFUNCKIND_FUNC_STATIC: tagFUNCKIND = 3; +pub const tagFUNCKIND_FUNC_DISPATCH: tagFUNCKIND = 4; +pub type tagFUNCKIND = ::std::os::raw::c_int; +pub use self::tagFUNCKIND as FUNCKIND; +pub const tagINVOKEKIND_INVOKE_FUNC: tagINVOKEKIND = 1; +pub const tagINVOKEKIND_INVOKE_PROPERTYGET: tagINVOKEKIND = 2; +pub const tagINVOKEKIND_INVOKE_PROPERTYPUT: tagINVOKEKIND = 4; +pub const tagINVOKEKIND_INVOKE_PROPERTYPUTREF: tagINVOKEKIND = 8; +pub type tagINVOKEKIND = ::std::os::raw::c_int; +pub use self::tagINVOKEKIND as INVOKEKIND; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagFUNCDESC { + pub memid: MEMBERID, + pub lprgscode: *mut SCODE, + pub lprgelemdescParam: *mut ELEMDESC, + pub funckind: FUNCKIND, + pub invkind: INVOKEKIND, + pub callconv: CALLCONV, + pub cParams: SHORT, + pub cParamsOpt: SHORT, + pub oVft: SHORT, + pub cScodes: SHORT, + pub elemdescFunc: ELEMDESC, + pub wFuncFlags: WORD, +} +pub type FUNCDESC = tagFUNCDESC; +pub type LPFUNCDESC = *mut tagFUNCDESC; +pub const tagVARKIND_VAR_PERINSTANCE: tagVARKIND = 0; +pub const tagVARKIND_VAR_STATIC: tagVARKIND = 1; +pub const tagVARKIND_VAR_CONST: tagVARKIND = 2; +pub const tagVARKIND_VAR_DISPATCH: tagVARKIND = 3; +pub type tagVARKIND = ::std::os::raw::c_int; +pub use self::tagVARKIND as VARKIND; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagVARDESC { + pub memid: MEMBERID, + pub lpstrSchema: LPOLESTR, + pub __bindgen_anon_1: tagVARDESC__bindgen_ty_1, + pub elemdescVar: ELEMDESC, + pub wVarFlags: WORD, + pub varkind: VARKIND, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagVARDESC__bindgen_ty_1 { + pub oInst: ULONG, + pub lpvarValue: *mut VARIANT, +} +pub type VARDESC = tagVARDESC; +pub type LPVARDESC = *mut tagVARDESC; +pub const tagTYPEFLAGS_TYPEFLAG_FAPPOBJECT: tagTYPEFLAGS = 1; +pub const tagTYPEFLAGS_TYPEFLAG_FCANCREATE: tagTYPEFLAGS = 2; +pub const tagTYPEFLAGS_TYPEFLAG_FLICENSED: tagTYPEFLAGS = 4; +pub const tagTYPEFLAGS_TYPEFLAG_FPREDECLID: tagTYPEFLAGS = 8; +pub const tagTYPEFLAGS_TYPEFLAG_FHIDDEN: tagTYPEFLAGS = 16; +pub const tagTYPEFLAGS_TYPEFLAG_FCONTROL: tagTYPEFLAGS = 32; +pub const tagTYPEFLAGS_TYPEFLAG_FDUAL: tagTYPEFLAGS = 64; +pub const tagTYPEFLAGS_TYPEFLAG_FNONEXTENSIBLE: tagTYPEFLAGS = 128; +pub const tagTYPEFLAGS_TYPEFLAG_FOLEAUTOMATION: tagTYPEFLAGS = 256; +pub const tagTYPEFLAGS_TYPEFLAG_FRESTRICTED: tagTYPEFLAGS = 512; +pub const tagTYPEFLAGS_TYPEFLAG_FAGGREGATABLE: tagTYPEFLAGS = 1024; +pub const tagTYPEFLAGS_TYPEFLAG_FREPLACEABLE: tagTYPEFLAGS = 2048; +pub const tagTYPEFLAGS_TYPEFLAG_FDISPATCHABLE: tagTYPEFLAGS = 4096; +pub const tagTYPEFLAGS_TYPEFLAG_FREVERSEBIND: tagTYPEFLAGS = 8192; +pub const tagTYPEFLAGS_TYPEFLAG_FPROXY: tagTYPEFLAGS = 16384; +pub type tagTYPEFLAGS = ::std::os::raw::c_int; +pub use self::tagTYPEFLAGS as TYPEFLAGS; +pub const tagFUNCFLAGS_FUNCFLAG_FRESTRICTED: tagFUNCFLAGS = 1; +pub const tagFUNCFLAGS_FUNCFLAG_FSOURCE: tagFUNCFLAGS = 2; +pub const tagFUNCFLAGS_FUNCFLAG_FBINDABLE: tagFUNCFLAGS = 4; +pub const tagFUNCFLAGS_FUNCFLAG_FREQUESTEDIT: tagFUNCFLAGS = 8; +pub const tagFUNCFLAGS_FUNCFLAG_FDISPLAYBIND: tagFUNCFLAGS = 16; +pub const tagFUNCFLAGS_FUNCFLAG_FDEFAULTBIND: tagFUNCFLAGS = 32; +pub const tagFUNCFLAGS_FUNCFLAG_FHIDDEN: tagFUNCFLAGS = 64; +pub const tagFUNCFLAGS_FUNCFLAG_FUSESGETLASTERROR: tagFUNCFLAGS = 128; +pub const tagFUNCFLAGS_FUNCFLAG_FDEFAULTCOLLELEM: tagFUNCFLAGS = 256; +pub const tagFUNCFLAGS_FUNCFLAG_FUIDEFAULT: tagFUNCFLAGS = 512; +pub const tagFUNCFLAGS_FUNCFLAG_FNONBROWSABLE: tagFUNCFLAGS = 1024; +pub const tagFUNCFLAGS_FUNCFLAG_FREPLACEABLE: tagFUNCFLAGS = 2048; +pub const tagFUNCFLAGS_FUNCFLAG_FIMMEDIATEBIND: tagFUNCFLAGS = 4096; +pub type tagFUNCFLAGS = ::std::os::raw::c_int; +pub use self::tagFUNCFLAGS as FUNCFLAGS; +pub const tagVARFLAGS_VARFLAG_FREADONLY: tagVARFLAGS = 1; +pub const tagVARFLAGS_VARFLAG_FSOURCE: tagVARFLAGS = 2; +pub const tagVARFLAGS_VARFLAG_FBINDABLE: tagVARFLAGS = 4; +pub const tagVARFLAGS_VARFLAG_FREQUESTEDIT: tagVARFLAGS = 8; +pub const tagVARFLAGS_VARFLAG_FDISPLAYBIND: tagVARFLAGS = 16; +pub const tagVARFLAGS_VARFLAG_FDEFAULTBIND: tagVARFLAGS = 32; +pub const tagVARFLAGS_VARFLAG_FHIDDEN: tagVARFLAGS = 64; +pub const tagVARFLAGS_VARFLAG_FRESTRICTED: tagVARFLAGS = 128; +pub const tagVARFLAGS_VARFLAG_FDEFAULTCOLLELEM: tagVARFLAGS = 256; +pub const tagVARFLAGS_VARFLAG_FUIDEFAULT: tagVARFLAGS = 512; +pub const tagVARFLAGS_VARFLAG_FNONBROWSABLE: tagVARFLAGS = 1024; +pub const tagVARFLAGS_VARFLAG_FREPLACEABLE: tagVARFLAGS = 2048; +pub const tagVARFLAGS_VARFLAG_FIMMEDIATEBIND: tagVARFLAGS = 4096; +pub type tagVARFLAGS = ::std::os::raw::c_int; +pub use self::tagVARFLAGS as VARFLAGS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCLEANLOCALSTORAGE { + pub pInterface: *mut IUnknown, + pub pStorage: PVOID, + pub flags: DWORD, +} +pub type CLEANLOCALSTORAGE = tagCLEANLOCALSTORAGE; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagCUSTDATAITEM { + pub guid: GUID, + pub varValue: VARIANTARG, +} +pub type CUSTDATAITEM = tagCUSTDATAITEM; +pub type LPCUSTDATAITEM = *mut tagCUSTDATAITEM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCUSTDATA { + pub cCustData: DWORD, + pub prgCustData: LPCUSTDATAITEM, +} +pub type CUSTDATA = tagCUSTDATA; +pub type LPCUSTDATA = *mut tagCUSTDATA; +extern "C" { + pub static mut IOleAutomationTypes_v1_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut IOleAutomationTypes_v1_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_oaidl_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_oaidl_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPCREATETYPEINFO = *mut ICreateTypeInfo; +extern "C" { + pub static IID_ICreateTypeInfo: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICreateTypeInfoVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub SetGuid: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo, guid: *const GUID) -> HRESULT, + >, + pub SetTypeFlags: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo, uTypeFlags: UINT) -> HRESULT, + >, + pub SetDocString: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo, pStrDoc: LPOLESTR) -> HRESULT, + >, + pub SetHelpContext: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo, dwHelpContext: DWORD) -> HRESULT, + >, + pub SetVersion: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo, + wMajorVerNum: WORD, + wMinorVerNum: WORD, + ) -> HRESULT, + >, + pub AddRefTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo, + pTInfo: *mut ITypeInfo, + phRefType: *mut HREFTYPE, + ) -> HRESULT, + >, + pub AddFuncDesc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo, + index: UINT, + pFuncDesc: *mut FUNCDESC, + ) -> HRESULT, + >, + pub AddImplType: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo, + index: UINT, + hRefType: HREFTYPE, + ) -> HRESULT, + >, + pub SetImplTypeFlags: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo, + index: UINT, + implTypeFlags: INT, + ) -> HRESULT, + >, + pub SetAlignment: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo, cbAlignment: WORD) -> HRESULT, + >, + pub SetSchema: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo, pStrSchema: LPOLESTR) -> HRESULT, + >, + pub AddVarDesc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo, + index: UINT, + pVarDesc: *mut VARDESC, + ) -> HRESULT, + >, + pub SetFuncAndParamNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo, + index: UINT, + rgszNames: *mut LPOLESTR, + cNames: UINT, + ) -> HRESULT, + >, + pub SetVarName: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo, index: UINT, szName: LPOLESTR) -> HRESULT, + >, + pub SetTypeDescAlias: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo, pTDescAlias: *mut TYPEDESC) -> HRESULT, + >, + pub DefineFuncAsDllEntry: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo, + index: UINT, + szDllName: LPOLESTR, + szProcName: LPOLESTR, + ) -> HRESULT, + >, + pub SetFuncDocString: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo, + index: UINT, + szDocString: LPOLESTR, + ) -> HRESULT, + >, + pub SetVarDocString: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo, + index: UINT, + szDocString: LPOLESTR, + ) -> HRESULT, + >, + pub SetFuncHelpContext: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo, + index: UINT, + dwHelpContext: DWORD, + ) -> HRESULT, + >, + pub SetVarHelpContext: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo, + index: UINT, + dwHelpContext: DWORD, + ) -> HRESULT, + >, + pub SetMops: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo, index: UINT, bstrMops: BSTR) -> HRESULT, + >, + pub SetTypeIdldesc: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo, pIdlDesc: *mut IDLDESC) -> HRESULT, + >, + pub LayOut: ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICreateTypeInfo { + pub lpVtbl: *mut ICreateTypeInfoVtbl, +} +pub type LPCREATETYPEINFO2 = *mut ICreateTypeInfo2; +extern "C" { + pub static IID_ICreateTypeInfo2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICreateTypeInfo2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub SetGuid: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, guid: *const GUID) -> HRESULT, + >, + pub SetTypeFlags: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, uTypeFlags: UINT) -> HRESULT, + >, + pub SetDocString: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, pStrDoc: LPOLESTR) -> HRESULT, + >, + pub SetHelpContext: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, dwHelpContext: DWORD) -> HRESULT, + >, + pub SetVersion: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + wMajorVerNum: WORD, + wMinorVerNum: WORD, + ) -> HRESULT, + >, + pub AddRefTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + pTInfo: *mut ITypeInfo, + phRefType: *mut HREFTYPE, + ) -> HRESULT, + >, + pub AddFuncDesc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + pFuncDesc: *mut FUNCDESC, + ) -> HRESULT, + >, + pub AddImplType: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + hRefType: HREFTYPE, + ) -> HRESULT, + >, + pub SetImplTypeFlags: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + implTypeFlags: INT, + ) -> HRESULT, + >, + pub SetAlignment: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, cbAlignment: WORD) -> HRESULT, + >, + pub SetSchema: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, pStrSchema: LPOLESTR) -> HRESULT, + >, + pub AddVarDesc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + pVarDesc: *mut VARDESC, + ) -> HRESULT, + >, + pub SetFuncAndParamNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + rgszNames: *mut LPOLESTR, + cNames: UINT, + ) -> HRESULT, + >, + pub SetVarName: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, index: UINT, szName: LPOLESTR) -> HRESULT, + >, + pub SetTypeDescAlias: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, pTDescAlias: *mut TYPEDESC) -> HRESULT, + >, + pub DefineFuncAsDllEntry: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + szDllName: LPOLESTR, + szProcName: LPOLESTR, + ) -> HRESULT, + >, + pub SetFuncDocString: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + szDocString: LPOLESTR, + ) -> HRESULT, + >, + pub SetVarDocString: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + szDocString: LPOLESTR, + ) -> HRESULT, + >, + pub SetFuncHelpContext: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + dwHelpContext: DWORD, + ) -> HRESULT, + >, + pub SetVarHelpContext: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + dwHelpContext: DWORD, + ) -> HRESULT, + >, + pub SetMops: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, index: UINT, bstrMops: BSTR) -> HRESULT, + >, + pub SetTypeIdldesc: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, pIdlDesc: *mut IDLDESC) -> HRESULT, + >, + pub LayOut: ::std::option::Option HRESULT>, + pub DeleteFuncDesc: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, index: UINT) -> HRESULT, + >, + pub DeleteFuncDescByMemId: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + memid: MEMBERID, + invKind: INVOKEKIND, + ) -> HRESULT, + >, + pub DeleteVarDesc: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, index: UINT) -> HRESULT, + >, + pub DeleteVarDescByMemId: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, memid: MEMBERID) -> HRESULT, + >, + pub DeleteImplType: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, index: UINT) -> HRESULT, + >, + pub SetCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + guid: *const GUID, + pVarVal: *mut VARIANT, + ) -> HRESULT, + >, + pub SetFuncCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + guid: *const GUID, + pVarVal: *mut VARIANT, + ) -> HRESULT, + >, + pub SetParamCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + indexFunc: UINT, + indexParam: UINT, + guid: *const GUID, + pVarVal: *mut VARIANT, + ) -> HRESULT, + >, + pub SetVarCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + guid: *const GUID, + pVarVal: *mut VARIANT, + ) -> HRESULT, + >, + pub SetImplTypeCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + guid: *const GUID, + pVarVal: *mut VARIANT, + ) -> HRESULT, + >, + pub SetHelpStringContext: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, dwHelpStringContext: ULONG) -> HRESULT, + >, + pub SetFuncHelpStringContext: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + dwHelpStringContext: ULONG, + ) -> HRESULT, + >, + pub SetVarHelpStringContext: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeInfo2, + index: UINT, + dwHelpStringContext: ULONG, + ) -> HRESULT, + >, + pub Invalidate: + ::std::option::Option HRESULT>, + pub SetName: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeInfo2, szName: LPOLESTR) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICreateTypeInfo2 { + pub lpVtbl: *mut ICreateTypeInfo2Vtbl, +} +pub type LPCREATETYPELIB = *mut ICreateTypeLib; +extern "C" { + pub static IID_ICreateTypeLib: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICreateTypeLibVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeLib, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub CreateTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeLib, + szName: LPOLESTR, + tkind: TYPEKIND, + ppCTInfo: *mut *mut ICreateTypeInfo, + ) -> HRESULT, + >, + pub SetName: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib, szName: LPOLESTR) -> HRESULT, + >, + pub SetVersion: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeLib, + wMajorVerNum: WORD, + wMinorVerNum: WORD, + ) -> HRESULT, + >, + pub SetGuid: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib, guid: *const GUID) -> HRESULT, + >, + pub SetDocString: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib, szDoc: LPOLESTR) -> HRESULT, + >, + pub SetHelpFileName: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib, szHelpFileName: LPOLESTR) -> HRESULT, + >, + pub SetHelpContext: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib, dwHelpContext: DWORD) -> HRESULT, + >, + pub SetLcid: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib, lcid: LCID) -> HRESULT, + >, + pub SetLibFlags: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib, uLibFlags: UINT) -> HRESULT, + >, + pub SaveAllChanges: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICreateTypeLib { + pub lpVtbl: *mut ICreateTypeLibVtbl, +} +pub type LPCREATETYPELIB2 = *mut ICreateTypeLib2; +extern "C" { + pub static IID_ICreateTypeLib2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICreateTypeLib2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeLib2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub CreateTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeLib2, + szName: LPOLESTR, + tkind: TYPEKIND, + ppCTInfo: *mut *mut ICreateTypeInfo, + ) -> HRESULT, + >, + pub SetName: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib2, szName: LPOLESTR) -> HRESULT, + >, + pub SetVersion: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeLib2, + wMajorVerNum: WORD, + wMinorVerNum: WORD, + ) -> HRESULT, + >, + pub SetGuid: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib2, guid: *const GUID) -> HRESULT, + >, + pub SetDocString: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib2, szDoc: LPOLESTR) -> HRESULT, + >, + pub SetHelpFileName: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib2, szHelpFileName: LPOLESTR) -> HRESULT, + >, + pub SetHelpContext: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib2, dwHelpContext: DWORD) -> HRESULT, + >, + pub SetLcid: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib2, lcid: LCID) -> HRESULT, + >, + pub SetLibFlags: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib2, uLibFlags: UINT) -> HRESULT, + >, + pub SaveAllChanges: + ::std::option::Option HRESULT>, + pub DeleteTypeInfo: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib2, szName: LPOLESTR) -> HRESULT, + >, + pub SetCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateTypeLib2, + guid: *const GUID, + pVarVal: *mut VARIANT, + ) -> HRESULT, + >, + pub SetHelpStringContext: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib2, dwHelpStringContext: ULONG) -> HRESULT, + >, + pub SetHelpStringDll: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateTypeLib2, szFileName: LPOLESTR) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICreateTypeLib2 { + pub lpVtbl: *mut ICreateTypeLib2Vtbl, +} +extern "C" { + pub static mut __MIDL_itf_oaidl_0000_0005_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_oaidl_0000_0005_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPDISPATCH = *mut IDispatch; +extern "C" { + pub static IID_IDispatch: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDispatchVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDispatch, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IDispatch, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDispatch, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDispatch, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDispatch, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDispatch { + pub lpVtbl: *mut IDispatchVtbl, +} +extern "C" { + pub fn IDispatch_RemoteInvoke_Proxy( + This: *mut IDispatch, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + dwFlags: DWORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + pArgErr: *mut UINT, + cVarRef: UINT, + rgVarRefIdx: *mut UINT, + rgVarRef: *mut VARIANTARG, + ) -> HRESULT; +} +extern "C" { + pub fn IDispatch_RemoteInvoke_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPENUMVARIANT = *mut IEnumVARIANT; +extern "C" { + pub static IID_IEnumVARIANT: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumVARIANTVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumVARIANT, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Next: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumVARIANT, + celt: ULONG, + rgVar: *mut VARIANT, + pCeltFetched: *mut ULONG, + ) -> HRESULT, + >, + pub Skip: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumVARIANT, celt: ULONG) -> HRESULT, + >, + pub Reset: ::std::option::Option HRESULT>, + pub Clone: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumVARIANT, ppEnum: *mut *mut IEnumVARIANT) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumVARIANT { + pub lpVtbl: *mut IEnumVARIANTVtbl, +} +extern "C" { + pub fn IEnumVARIANT_RemoteNext_Proxy( + This: *mut IEnumVARIANT, + celt: ULONG, + rgVar: *mut VARIANT, + pCeltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumVARIANT_RemoteNext_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPTYPECOMP = *mut ITypeComp; +pub const tagDESCKIND_DESCKIND_NONE: tagDESCKIND = 0; +pub const tagDESCKIND_DESCKIND_FUNCDESC: tagDESCKIND = 1; +pub const tagDESCKIND_DESCKIND_VARDESC: tagDESCKIND = 2; +pub const tagDESCKIND_DESCKIND_TYPECOMP: tagDESCKIND = 3; +pub const tagDESCKIND_DESCKIND_IMPLICITAPPOBJ: tagDESCKIND = 4; +pub const tagDESCKIND_DESCKIND_MAX: tagDESCKIND = 5; +pub type tagDESCKIND = ::std::os::raw::c_int; +pub use self::tagDESCKIND as DESCKIND; +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagBINDPTR { + pub lpfuncdesc: *mut FUNCDESC, + pub lpvardesc: *mut VARDESC, + pub lptcomp: *mut ITypeComp, +} +pub type BINDPTR = tagBINDPTR; +pub type LPBINDPTR = *mut tagBINDPTR; +extern "C" { + pub static IID_ITypeComp: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeCompVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeComp, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Bind: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeComp, + szName: LPOLESTR, + lHashVal: ULONG, + wFlags: WORD, + ppTInfo: *mut *mut ITypeInfo, + pDescKind: *mut DESCKIND, + pBindPtr: *mut BINDPTR, + ) -> HRESULT, + >, + pub BindType: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeComp, + szName: LPOLESTR, + lHashVal: ULONG, + ppTInfo: *mut *mut ITypeInfo, + ppTComp: *mut *mut ITypeComp, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeComp { + pub lpVtbl: *mut ITypeCompVtbl, +} +extern "C" { + pub fn ITypeComp_RemoteBind_Proxy( + This: *mut ITypeComp, + szName: LPOLESTR, + lHashVal: ULONG, + wFlags: WORD, + ppTInfo: *mut *mut ITypeInfo, + pDescKind: *mut DESCKIND, + ppFuncDesc: *mut LPFUNCDESC, + ppVarDesc: *mut LPVARDESC, + ppTypeComp: *mut *mut ITypeComp, + pDummy: *mut CLEANLOCALSTORAGE, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeComp_RemoteBind_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeComp_RemoteBindType_Proxy( + This: *mut ITypeComp, + szName: LPOLESTR, + lHashVal: ULONG, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeComp_RemoteBindType_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_oaidl_0000_0008_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_oaidl_0000_0008_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPTYPEINFO = *mut ITypeInfo; +extern "C" { + pub static IID_ITypeInfo: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeInfoVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeAttr: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeInfo, ppTypeAttr: *mut *mut TYPEATTR) -> HRESULT, + >, + pub GetTypeComp: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeInfo, ppTComp: *mut *mut ITypeComp) -> HRESULT, + >, + pub GetFuncDesc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo, + index: UINT, + ppFuncDesc: *mut *mut FUNCDESC, + ) -> HRESULT, + >, + pub GetVarDesc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo, + index: UINT, + ppVarDesc: *mut *mut VARDESC, + ) -> HRESULT, + >, + pub GetNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo, + memid: MEMBERID, + rgBstrNames: *mut BSTR, + cMaxNames: UINT, + pcNames: *mut UINT, + ) -> HRESULT, + >, + pub GetRefTypeOfImplType: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeInfo, index: UINT, pRefType: *mut HREFTYPE) -> HRESULT, + >, + pub GetImplTypeFlags: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo, + index: UINT, + pImplTypeFlags: *mut INT, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo, + rgszNames: *mut LPOLESTR, + cNames: UINT, + pMemId: *mut MEMBERID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo, + pvInstance: PVOID, + memid: MEMBERID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub GetDocumentation: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo, + memid: MEMBERID, + pBstrName: *mut BSTR, + pBstrDocString: *mut BSTR, + pdwHelpContext: *mut DWORD, + pBstrHelpFile: *mut BSTR, + ) -> HRESULT, + >, + pub GetDllEntry: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo, + memid: MEMBERID, + invKind: INVOKEKIND, + pBstrDllName: *mut BSTR, + pBstrName: *mut BSTR, + pwOrdinal: *mut WORD, + ) -> HRESULT, + >, + pub GetRefTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo, + hRefType: HREFTYPE, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub AddressOfMember: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo, + memid: MEMBERID, + invKind: INVOKEKIND, + ppv: *mut PVOID, + ) -> HRESULT, + >, + pub CreateInstance: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo, + pUnkOuter: *mut IUnknown, + riid: *const IID, + ppvObj: *mut PVOID, + ) -> HRESULT, + >, + pub GetMops: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo, + memid: MEMBERID, + pBstrMops: *mut BSTR, + ) -> HRESULT, + >, + pub GetContainingTypeLib: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo, + ppTLib: *mut *mut ITypeLib, + pIndex: *mut UINT, + ) -> HRESULT, + >, + pub ReleaseTypeAttr: + ::std::option::Option, + pub ReleaseFuncDesc: + ::std::option::Option, + pub ReleaseVarDesc: + ::std::option::Option, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeInfo { + pub lpVtbl: *mut ITypeInfoVtbl, +} +extern "C" { + pub fn ITypeInfo_RemoteGetTypeAttr_Proxy( + This: *mut ITypeInfo, + ppTypeAttr: *mut LPTYPEATTR, + pDummy: *mut CLEANLOCALSTORAGE, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_RemoteGetTypeAttr_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeInfo_RemoteGetFuncDesc_Proxy( + This: *mut ITypeInfo, + index: UINT, + ppFuncDesc: *mut LPFUNCDESC, + pDummy: *mut CLEANLOCALSTORAGE, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_RemoteGetFuncDesc_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeInfo_RemoteGetVarDesc_Proxy( + This: *mut ITypeInfo, + index: UINT, + ppVarDesc: *mut LPVARDESC, + pDummy: *mut CLEANLOCALSTORAGE, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_RemoteGetVarDesc_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeInfo_RemoteGetNames_Proxy( + This: *mut ITypeInfo, + memid: MEMBERID, + rgBstrNames: *mut BSTR, + cMaxNames: UINT, + pcNames: *mut UINT, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_RemoteGetNames_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeInfo_LocalGetIDsOfNames_Proxy(This: *mut ITypeInfo) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_LocalGetIDsOfNames_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeInfo_LocalInvoke_Proxy(This: *mut ITypeInfo) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_LocalInvoke_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeInfo_RemoteGetDocumentation_Proxy( + This: *mut ITypeInfo, + memid: MEMBERID, + refPtrFlags: DWORD, + pBstrName: *mut BSTR, + pBstrDocString: *mut BSTR, + pdwHelpContext: *mut DWORD, + pBstrHelpFile: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_RemoteGetDocumentation_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeInfo_RemoteGetDllEntry_Proxy( + This: *mut ITypeInfo, + memid: MEMBERID, + invKind: INVOKEKIND, + refPtrFlags: DWORD, + pBstrDllName: *mut BSTR, + pBstrName: *mut BSTR, + pwOrdinal: *mut WORD, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_RemoteGetDllEntry_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeInfo_LocalAddressOfMember_Proxy(This: *mut ITypeInfo) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_LocalAddressOfMember_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeInfo_RemoteCreateInstance_Proxy( + This: *mut ITypeInfo, + riid: *const IID, + ppvObj: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_RemoteCreateInstance_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeInfo_RemoteGetContainingTypeLib_Proxy( + This: *mut ITypeInfo, + ppTLib: *mut *mut ITypeLib, + pIndex: *mut UINT, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_RemoteGetContainingTypeLib_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeInfo_LocalReleaseTypeAttr_Proxy(This: *mut ITypeInfo) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_LocalReleaseTypeAttr_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeInfo_LocalReleaseFuncDesc_Proxy(This: *mut ITypeInfo) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_LocalReleaseFuncDesc_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeInfo_LocalReleaseVarDesc_Proxy(This: *mut ITypeInfo) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_LocalReleaseVarDesc_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPTYPEINFO2 = *mut ITypeInfo2; +extern "C" { + pub static IID_ITypeInfo2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeInfo2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeAttr: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeInfo2, ppTypeAttr: *mut *mut TYPEATTR) -> HRESULT, + >, + pub GetTypeComp: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeInfo2, ppTComp: *mut *mut ITypeComp) -> HRESULT, + >, + pub GetFuncDesc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + index: UINT, + ppFuncDesc: *mut *mut FUNCDESC, + ) -> HRESULT, + >, + pub GetVarDesc: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + index: UINT, + ppVarDesc: *mut *mut VARDESC, + ) -> HRESULT, + >, + pub GetNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + memid: MEMBERID, + rgBstrNames: *mut BSTR, + cMaxNames: UINT, + pcNames: *mut UINT, + ) -> HRESULT, + >, + pub GetRefTypeOfImplType: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + index: UINT, + pRefType: *mut HREFTYPE, + ) -> HRESULT, + >, + pub GetImplTypeFlags: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + index: UINT, + pImplTypeFlags: *mut INT, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + rgszNames: *mut LPOLESTR, + cNames: UINT, + pMemId: *mut MEMBERID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + pvInstance: PVOID, + memid: MEMBERID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub GetDocumentation: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + memid: MEMBERID, + pBstrName: *mut BSTR, + pBstrDocString: *mut BSTR, + pdwHelpContext: *mut DWORD, + pBstrHelpFile: *mut BSTR, + ) -> HRESULT, + >, + pub GetDllEntry: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + memid: MEMBERID, + invKind: INVOKEKIND, + pBstrDllName: *mut BSTR, + pBstrName: *mut BSTR, + pwOrdinal: *mut WORD, + ) -> HRESULT, + >, + pub GetRefTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + hRefType: HREFTYPE, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub AddressOfMember: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + memid: MEMBERID, + invKind: INVOKEKIND, + ppv: *mut PVOID, + ) -> HRESULT, + >, + pub CreateInstance: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + pUnkOuter: *mut IUnknown, + riid: *const IID, + ppvObj: *mut PVOID, + ) -> HRESULT, + >, + pub GetMops: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + memid: MEMBERID, + pBstrMops: *mut BSTR, + ) -> HRESULT, + >, + pub GetContainingTypeLib: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + ppTLib: *mut *mut ITypeLib, + pIndex: *mut UINT, + ) -> HRESULT, + >, + pub ReleaseTypeAttr: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeInfo2, pTypeAttr: *mut TYPEATTR), + >, + pub ReleaseFuncDesc: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeInfo2, pFuncDesc: *mut FUNCDESC), + >, + pub ReleaseVarDesc: + ::std::option::Option, + pub GetTypeKind: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeInfo2, pTypeKind: *mut TYPEKIND) -> HRESULT, + >, + pub GetTypeFlags: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeInfo2, pTypeFlags: *mut ULONG) -> HRESULT, + >, + pub GetFuncIndexOfMemId: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + memid: MEMBERID, + invKind: INVOKEKIND, + pFuncIndex: *mut UINT, + ) -> HRESULT, + >, + pub GetVarIndexOfMemId: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + memid: MEMBERID, + pVarIndex: *mut UINT, + ) -> HRESULT, + >, + pub GetCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + guid: *const GUID, + pVarVal: *mut VARIANT, + ) -> HRESULT, + >, + pub GetFuncCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + index: UINT, + guid: *const GUID, + pVarVal: *mut VARIANT, + ) -> HRESULT, + >, + pub GetParamCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + indexFunc: UINT, + indexParam: UINT, + guid: *const GUID, + pVarVal: *mut VARIANT, + ) -> HRESULT, + >, + pub GetVarCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + index: UINT, + guid: *const GUID, + pVarVal: *mut VARIANT, + ) -> HRESULT, + >, + pub GetImplTypeCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + index: UINT, + guid: *const GUID, + pVarVal: *mut VARIANT, + ) -> HRESULT, + >, + pub GetDocumentation2: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + memid: MEMBERID, + lcid: LCID, + pbstrHelpString: *mut BSTR, + pdwHelpStringContext: *mut DWORD, + pbstrHelpStringDll: *mut BSTR, + ) -> HRESULT, + >, + pub GetAllCustData: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeInfo2, pCustData: *mut CUSTDATA) -> HRESULT, + >, + pub GetAllFuncCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + index: UINT, + pCustData: *mut CUSTDATA, + ) -> HRESULT, + >, + pub GetAllParamCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + indexFunc: UINT, + indexParam: UINT, + pCustData: *mut CUSTDATA, + ) -> HRESULT, + >, + pub GetAllVarCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + index: UINT, + pCustData: *mut CUSTDATA, + ) -> HRESULT, + >, + pub GetAllImplTypeCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeInfo2, + index: UINT, + pCustData: *mut CUSTDATA, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeInfo2 { + pub lpVtbl: *mut ITypeInfo2Vtbl, +} +extern "C" { + pub fn ITypeInfo2_RemoteGetDocumentation2_Proxy( + This: *mut ITypeInfo2, + memid: MEMBERID, + lcid: LCID, + refPtrFlags: DWORD, + pbstrHelpString: *mut BSTR, + pdwHelpStringContext: *mut DWORD, + pbstrHelpStringDll: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo2_RemoteGetDocumentation2_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_oaidl_0000_0010_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_oaidl_0000_0010_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub const tagSYSKIND_SYS_WIN16: tagSYSKIND = 0; +pub const tagSYSKIND_SYS_WIN32: tagSYSKIND = 1; +pub const tagSYSKIND_SYS_MAC: tagSYSKIND = 2; +pub const tagSYSKIND_SYS_WIN64: tagSYSKIND = 3; +pub type tagSYSKIND = ::std::os::raw::c_int; +pub use self::tagSYSKIND as SYSKIND; +pub const tagLIBFLAGS_LIBFLAG_FRESTRICTED: tagLIBFLAGS = 1; +pub const tagLIBFLAGS_LIBFLAG_FCONTROL: tagLIBFLAGS = 2; +pub const tagLIBFLAGS_LIBFLAG_FHIDDEN: tagLIBFLAGS = 4; +pub const tagLIBFLAGS_LIBFLAG_FHASDISKIMAGE: tagLIBFLAGS = 8; +pub type tagLIBFLAGS = ::std::os::raw::c_int; +pub use self::tagLIBFLAGS as LIBFLAGS; +pub type LPTYPELIB = *mut ITypeLib; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagTLIBATTR { + pub guid: GUID, + pub lcid: LCID, + pub syskind: SYSKIND, + pub wMajorVerNum: WORD, + pub wMinorVerNum: WORD, + pub wLibFlags: WORD, +} +pub type TLIBATTR = tagTLIBATTR; +pub type LPTLIBATTR = *mut tagTLIBATTR; +extern "C" { + pub static IID_ITypeLib: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeLibVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option UINT>, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib, + index: UINT, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetTypeInfoType: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLib, index: UINT, pTKind: *mut TYPEKIND) -> HRESULT, + >, + pub GetTypeInfoOfGuid: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib, + guid: *const GUID, + ppTinfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetLibAttr: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLib, ppTLibAttr: *mut *mut TLIBATTR) -> HRESULT, + >, + pub GetTypeComp: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLib, ppTComp: *mut *mut ITypeComp) -> HRESULT, + >, + pub GetDocumentation: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib, + index: INT, + pBstrName: *mut BSTR, + pBstrDocString: *mut BSTR, + pdwHelpContext: *mut DWORD, + pBstrHelpFile: *mut BSTR, + ) -> HRESULT, + >, + pub IsName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib, + szNameBuf: LPOLESTR, + lHashVal: ULONG, + pfName: *mut BOOL, + ) -> HRESULT, + >, + pub FindName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib, + szNameBuf: LPOLESTR, + lHashVal: ULONG, + ppTInfo: *mut *mut ITypeInfo, + rgMemId: *mut MEMBERID, + pcFound: *mut USHORT, + ) -> HRESULT, + >, + pub ReleaseTLibAttr: + ::std::option::Option, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeLib { + pub lpVtbl: *mut ITypeLibVtbl, +} +extern "C" { + pub fn ITypeLib_RemoteGetTypeInfoCount_Proxy( + This: *mut ITypeLib, + pcTInfo: *mut UINT, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_RemoteGetTypeInfoCount_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeLib_RemoteGetLibAttr_Proxy( + This: *mut ITypeLib, + ppTLibAttr: *mut LPTLIBATTR, + pDummy: *mut CLEANLOCALSTORAGE, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_RemoteGetLibAttr_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeLib_RemoteGetDocumentation_Proxy( + This: *mut ITypeLib, + index: INT, + refPtrFlags: DWORD, + pBstrName: *mut BSTR, + pBstrDocString: *mut BSTR, + pdwHelpContext: *mut DWORD, + pBstrHelpFile: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_RemoteGetDocumentation_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeLib_RemoteIsName_Proxy( + This: *mut ITypeLib, + szNameBuf: LPOLESTR, + lHashVal: ULONG, + pfName: *mut BOOL, + pBstrLibName: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_RemoteIsName_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeLib_RemoteFindName_Proxy( + This: *mut ITypeLib, + szNameBuf: LPOLESTR, + lHashVal: ULONG, + ppTInfo: *mut *mut ITypeInfo, + rgMemId: *mut MEMBERID, + pcFound: *mut USHORT, + pBstrLibName: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_RemoteFindName_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeLib_LocalReleaseTLibAttr_Proxy(This: *mut ITypeLib) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_LocalReleaseTLibAttr_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_oaidl_0000_0011_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_oaidl_0000_0011_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPTYPELIB2 = *mut ITypeLib2; +extern "C" { + pub static IID_ITypeLib2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeLib2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option UINT>, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib2, + index: UINT, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetTypeInfoType: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLib2, index: UINT, pTKind: *mut TYPEKIND) -> HRESULT, + >, + pub GetTypeInfoOfGuid: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib2, + guid: *const GUID, + ppTinfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetLibAttr: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLib2, ppTLibAttr: *mut *mut TLIBATTR) -> HRESULT, + >, + pub GetTypeComp: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLib2, ppTComp: *mut *mut ITypeComp) -> HRESULT, + >, + pub GetDocumentation: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib2, + index: INT, + pBstrName: *mut BSTR, + pBstrDocString: *mut BSTR, + pdwHelpContext: *mut DWORD, + pBstrHelpFile: *mut BSTR, + ) -> HRESULT, + >, + pub IsName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib2, + szNameBuf: LPOLESTR, + lHashVal: ULONG, + pfName: *mut BOOL, + ) -> HRESULT, + >, + pub FindName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib2, + szNameBuf: LPOLESTR, + lHashVal: ULONG, + ppTInfo: *mut *mut ITypeInfo, + rgMemId: *mut MEMBERID, + pcFound: *mut USHORT, + ) -> HRESULT, + >, + pub ReleaseTLibAttr: + ::std::option::Option, + pub GetCustData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib2, + guid: *const GUID, + pVarVal: *mut VARIANT, + ) -> HRESULT, + >, + pub GetLibStatistics: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib2, + pcUniqueNames: *mut ULONG, + pcchUniqueNames: *mut ULONG, + ) -> HRESULT, + >, + pub GetDocumentation2: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLib2, + index: INT, + lcid: LCID, + pbstrHelpString: *mut BSTR, + pdwHelpStringContext: *mut DWORD, + pbstrHelpStringDll: *mut BSTR, + ) -> HRESULT, + >, + pub GetAllCustData: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLib2, pCustData: *mut CUSTDATA) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeLib2 { + pub lpVtbl: *mut ITypeLib2Vtbl, +} +extern "C" { + pub fn ITypeLib2_RemoteGetLibStatistics_Proxy( + This: *mut ITypeLib2, + pcUniqueNames: *mut ULONG, + pcchUniqueNames: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib2_RemoteGetLibStatistics_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn ITypeLib2_RemoteGetDocumentation2_Proxy( + This: *mut ITypeLib2, + index: INT, + lcid: LCID, + refPtrFlags: DWORD, + pbstrHelpString: *mut BSTR, + pdwHelpStringContext: *mut DWORD, + pbstrHelpStringDll: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib2_RemoteGetDocumentation2_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPTYPECHANGEEVENTS = *mut ITypeChangeEvents; +pub const tagCHANGEKIND_CHANGEKIND_ADDMEMBER: tagCHANGEKIND = 0; +pub const tagCHANGEKIND_CHANGEKIND_DELETEMEMBER: tagCHANGEKIND = 1; +pub const tagCHANGEKIND_CHANGEKIND_SETNAMES: tagCHANGEKIND = 2; +pub const tagCHANGEKIND_CHANGEKIND_SETDOCUMENTATION: tagCHANGEKIND = 3; +pub const tagCHANGEKIND_CHANGEKIND_GENERAL: tagCHANGEKIND = 4; +pub const tagCHANGEKIND_CHANGEKIND_INVALIDATE: tagCHANGEKIND = 5; +pub const tagCHANGEKIND_CHANGEKIND_CHANGEFAILED: tagCHANGEKIND = 6; +pub const tagCHANGEKIND_CHANGEKIND_MAX: tagCHANGEKIND = 7; +pub type tagCHANGEKIND = ::std::os::raw::c_int; +pub use self::tagCHANGEKIND as CHANGEKIND; +extern "C" { + pub static IID_ITypeChangeEvents: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeChangeEventsVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeChangeEvents, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub RequestTypeChange: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeChangeEvents, + changeKind: CHANGEKIND, + pTInfoBefore: *mut ITypeInfo, + pStrName: LPOLESTR, + pfCancel: *mut INT, + ) -> HRESULT, + >, + pub AfterTypeChange: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeChangeEvents, + changeKind: CHANGEKIND, + pTInfoAfter: *mut ITypeInfo, + pStrName: LPOLESTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeChangeEvents { + pub lpVtbl: *mut ITypeChangeEventsVtbl, +} +pub type LPERRORINFO = *mut IErrorInfo; +extern "C" { + pub static IID_IErrorInfo: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IErrorInfoVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IErrorInfo, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetGUID: ::std::option::Option< + unsafe extern "C" fn(This: *mut IErrorInfo, pGUID: *mut GUID) -> HRESULT, + >, + pub GetSource: ::std::option::Option< + unsafe extern "C" fn(This: *mut IErrorInfo, pBstrSource: *mut BSTR) -> HRESULT, + >, + pub GetDescription: ::std::option::Option< + unsafe extern "C" fn(This: *mut IErrorInfo, pBstrDescription: *mut BSTR) -> HRESULT, + >, + pub GetHelpFile: ::std::option::Option< + unsafe extern "C" fn(This: *mut IErrorInfo, pBstrHelpFile: *mut BSTR) -> HRESULT, + >, + pub GetHelpContext: ::std::option::Option< + unsafe extern "C" fn(This: *mut IErrorInfo, pdwHelpContext: *mut DWORD) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IErrorInfo { + pub lpVtbl: *mut IErrorInfoVtbl, +} +pub type LPCREATEERRORINFO = *mut ICreateErrorInfo; +extern "C" { + pub static IID_ICreateErrorInfo: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICreateErrorInfoVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICreateErrorInfo, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub SetGUID: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateErrorInfo, rguid: *const GUID) -> HRESULT, + >, + pub SetSource: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateErrorInfo, szSource: LPOLESTR) -> HRESULT, + >, + pub SetDescription: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateErrorInfo, szDescription: LPOLESTR) -> HRESULT, + >, + pub SetHelpFile: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateErrorInfo, szHelpFile: LPOLESTR) -> HRESULT, + >, + pub SetHelpContext: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICreateErrorInfo, dwHelpContext: DWORD) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICreateErrorInfo { + pub lpVtbl: *mut ICreateErrorInfoVtbl, +} +pub type LPSUPPORTERRORINFO = *mut ISupportErrorInfo; +extern "C" { + pub static IID_ISupportErrorInfo: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISupportErrorInfoVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISupportErrorInfo, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub InterfaceSupportsErrorInfo: ::std::option::Option< + unsafe extern "C" fn(This: *mut ISupportErrorInfo, riid: *const IID) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISupportErrorInfo { + pub lpVtbl: *mut ISupportErrorInfoVtbl, +} +extern "C" { + pub static IID_ITypeFactory: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeFactoryVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeFactory, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub CreateFromTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeFactory, + pTypeInfo: *mut ITypeInfo, + riid: *const IID, + ppv: *mut *mut IUnknown, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeFactory { + pub lpVtbl: *mut ITypeFactoryVtbl, +} +extern "C" { + pub static IID_ITypeMarshal: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeMarshalVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeMarshal, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Size: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeMarshal, + pvType: PVOID, + dwDestContext: DWORD, + pvDestContext: PVOID, + pSize: *mut ULONG, + ) -> HRESULT, + >, + pub Marshal: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeMarshal, + pvType: PVOID, + dwDestContext: DWORD, + pvDestContext: PVOID, + cbBufferLength: ULONG, + pBuffer: *mut BYTE, + pcbWritten: *mut ULONG, + ) -> HRESULT, + >, + pub Unmarshal: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeMarshal, + pvType: PVOID, + dwFlags: DWORD, + cbBufferLength: ULONG, + pBuffer: *mut BYTE, + pcbRead: *mut ULONG, + ) -> HRESULT, + >, + pub Free: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeMarshal, pvType: PVOID) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeMarshal { + pub lpVtbl: *mut ITypeMarshalVtbl, +} +pub type LPRECORDINFO = *mut IRecordInfo; +extern "C" { + pub static IID_IRecordInfo: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRecordInfoVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRecordInfo, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub RecordInit: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRecordInfo, pvNew: PVOID) -> HRESULT, + >, + pub RecordClear: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRecordInfo, pvExisting: PVOID) -> HRESULT, + >, + pub RecordCopy: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRecordInfo, pvExisting: PVOID, pvNew: PVOID) -> HRESULT, + >, + pub GetGuid: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRecordInfo, pguid: *mut GUID) -> HRESULT, + >, + pub GetName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRecordInfo, pbstrName: *mut BSTR) -> HRESULT, + >, + pub GetSize: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRecordInfo, pcbSize: *mut ULONG) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRecordInfo, ppTypeInfo: *mut *mut ITypeInfo) -> HRESULT, + >, + pub GetField: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRecordInfo, + pvData: PVOID, + szFieldName: LPCOLESTR, + pvarField: *mut VARIANT, + ) -> HRESULT, + >, + pub GetFieldNoCopy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRecordInfo, + pvData: PVOID, + szFieldName: LPCOLESTR, + pvarField: *mut VARIANT, + ppvDataCArray: *mut PVOID, + ) -> HRESULT, + >, + pub PutField: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRecordInfo, + wFlags: ULONG, + pvData: PVOID, + szFieldName: LPCOLESTR, + pvarField: *mut VARIANT, + ) -> HRESULT, + >, + pub PutFieldNoCopy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRecordInfo, + wFlags: ULONG, + pvData: PVOID, + szFieldName: LPCOLESTR, + pvarField: *mut VARIANT, + ) -> HRESULT, + >, + pub GetFieldNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRecordInfo, + pcNames: *mut ULONG, + rgBstrNames: *mut BSTR, + ) -> HRESULT, + >, + pub IsMatchingType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRecordInfo, pRecordInfo: *mut IRecordInfo) -> BOOL, + >, + pub RecordCreate: ::std::option::Option PVOID>, + pub RecordCreateCopy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IRecordInfo, + pvSource: PVOID, + ppvDest: *mut PVOID, + ) -> HRESULT, + >, + pub RecordDestroy: ::std::option::Option< + unsafe extern "C" fn(This: *mut IRecordInfo, pvRecord: PVOID) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IRecordInfo { + pub lpVtbl: *mut IRecordInfoVtbl, +} +pub type LPERRORLOG = *mut IErrorLog; +extern "C" { + pub static IID_IErrorLog: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IErrorLogVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IErrorLog, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub AddError: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IErrorLog, + pszPropName: LPCOLESTR, + pExcepInfo: *mut EXCEPINFO, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IErrorLog { + pub lpVtbl: *mut IErrorLogVtbl, +} +pub type LPPROPERTYBAG = *mut IPropertyBag; +extern "C" { + pub static IID_IPropertyBag: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPropertyBagVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertyBag, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Read: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertyBag, + pszPropName: LPCOLESTR, + pVar: *mut VARIANT, + pErrorLog: *mut IErrorLog, + ) -> HRESULT, + >, + pub Write: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertyBag, + pszPropName: LPCOLESTR, + pVar: *mut VARIANT, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPropertyBag { + pub lpVtbl: *mut IPropertyBagVtbl, +} +extern "C" { + pub fn IPropertyBag_RemoteRead_Proxy( + This: *mut IPropertyBag, + pszPropName: LPCOLESTR, + pVar: *mut VARIANT, + pErrorLog: *mut IErrorLog, + varType: DWORD, + pUnkObj: *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn IPropertyBag_RemoteRead_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static IID_ITypeLibRegistrationReader: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeLibRegistrationReaderVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLibRegistrationReader, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub EnumTypeLibRegistrations: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLibRegistrationReader, + ppEnumUnknown: *mut *mut IEnumUnknown, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeLibRegistrationReader { + pub lpVtbl: *mut ITypeLibRegistrationReaderVtbl, +} +extern "C" { + pub static IID_ITypeLibRegistration: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeLibRegistrationVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ITypeLibRegistration, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetGuid: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLibRegistration, pGuid: *mut GUID) -> HRESULT, + >, + pub GetVersion: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLibRegistration, pVersion: *mut BSTR) -> HRESULT, + >, + pub GetLcid: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLibRegistration, pLcid: *mut LCID) -> HRESULT, + >, + pub GetWin32Path: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLibRegistration, pWin32Path: *mut BSTR) -> HRESULT, + >, + pub GetWin64Path: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLibRegistration, pWin64Path: *mut BSTR) -> HRESULT, + >, + pub GetDisplayName: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLibRegistration, pDisplayName: *mut BSTR) -> HRESULT, + >, + pub GetFlags: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLibRegistration, pFlags: *mut DWORD) -> HRESULT, + >, + pub GetHelpDir: ::std::option::Option< + unsafe extern "C" fn(This: *mut ITypeLibRegistration, pHelpDir: *mut BSTR) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ITypeLibRegistration { + pub lpVtbl: *mut ITypeLibRegistrationVtbl, +} +extern "C" { + pub static CLSID_TypeLibRegistrationReader: CLSID; +} +extern "C" { + pub static mut __MIDL_itf_oaidl_0000_0023_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_oaidl_0000_0023_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub fn BSTR_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut BSTR, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn BSTR_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut BSTR, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn BSTR_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut BSTR, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn BSTR_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut BSTR); +} +extern "C" { + pub fn CLEANLOCALSTORAGE_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut CLEANLOCALSTORAGE, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn CLEANLOCALSTORAGE_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut CLEANLOCALSTORAGE, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn CLEANLOCALSTORAGE_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut CLEANLOCALSTORAGE, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn CLEANLOCALSTORAGE_UserFree( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut CLEANLOCALSTORAGE, + ); +} +extern "C" { + pub fn VARIANT_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut VARIANT, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn VARIANT_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut VARIANT, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn VARIANT_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut VARIANT, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn VARIANT_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut VARIANT); +} +extern "C" { + pub fn BSTR_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut BSTR, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn BSTR_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut BSTR, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn BSTR_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut BSTR, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn BSTR_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut BSTR); +} +extern "C" { + pub fn CLEANLOCALSTORAGE_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut CLEANLOCALSTORAGE, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn CLEANLOCALSTORAGE_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut CLEANLOCALSTORAGE, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn CLEANLOCALSTORAGE_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut CLEANLOCALSTORAGE, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn CLEANLOCALSTORAGE_UserFree64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut CLEANLOCALSTORAGE, + ); +} +extern "C" { + pub fn VARIANT_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut VARIANT, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn VARIANT_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut VARIANT, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn VARIANT_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut VARIANT, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn VARIANT_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut VARIANT); +} +extern "C" { + pub fn IDispatch_Invoke_Proxy( + This: *mut IDispatch, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT; +} +extern "C" { + pub fn IDispatch_Invoke_Stub( + This: *mut IDispatch, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + dwFlags: DWORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + pArgErr: *mut UINT, + cVarRef: UINT, + rgVarRefIdx: *mut UINT, + rgVarRef: *mut VARIANTARG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumVARIANT_Next_Proxy( + This: *mut IEnumVARIANT, + celt: ULONG, + rgVar: *mut VARIANT, + pCeltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumVARIANT_Next_Stub( + This: *mut IEnumVARIANT, + celt: ULONG, + rgVar: *mut VARIANT, + pCeltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeComp_Bind_Proxy( + This: *mut ITypeComp, + szName: LPOLESTR, + lHashVal: ULONG, + wFlags: WORD, + ppTInfo: *mut *mut ITypeInfo, + pDescKind: *mut DESCKIND, + pBindPtr: *mut BINDPTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeComp_Bind_Stub( + This: *mut ITypeComp, + szName: LPOLESTR, + lHashVal: ULONG, + wFlags: WORD, + ppTInfo: *mut *mut ITypeInfo, + pDescKind: *mut DESCKIND, + ppFuncDesc: *mut LPFUNCDESC, + ppVarDesc: *mut LPVARDESC, + ppTypeComp: *mut *mut ITypeComp, + pDummy: *mut CLEANLOCALSTORAGE, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeComp_BindType_Proxy( + This: *mut ITypeComp, + szName: LPOLESTR, + lHashVal: ULONG, + ppTInfo: *mut *mut ITypeInfo, + ppTComp: *mut *mut ITypeComp, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeComp_BindType_Stub( + This: *mut ITypeComp, + szName: LPOLESTR, + lHashVal: ULONG, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetTypeAttr_Proxy( + This: *mut ITypeInfo, + ppTypeAttr: *mut *mut TYPEATTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetTypeAttr_Stub( + This: *mut ITypeInfo, + ppTypeAttr: *mut LPTYPEATTR, + pDummy: *mut CLEANLOCALSTORAGE, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetFuncDesc_Proxy( + This: *mut ITypeInfo, + index: UINT, + ppFuncDesc: *mut *mut FUNCDESC, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetFuncDesc_Stub( + This: *mut ITypeInfo, + index: UINT, + ppFuncDesc: *mut LPFUNCDESC, + pDummy: *mut CLEANLOCALSTORAGE, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetVarDesc_Proxy( + This: *mut ITypeInfo, + index: UINT, + ppVarDesc: *mut *mut VARDESC, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetVarDesc_Stub( + This: *mut ITypeInfo, + index: UINT, + ppVarDesc: *mut LPVARDESC, + pDummy: *mut CLEANLOCALSTORAGE, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetNames_Proxy( + This: *mut ITypeInfo, + memid: MEMBERID, + rgBstrNames: *mut BSTR, + cMaxNames: UINT, + pcNames: *mut UINT, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetNames_Stub( + This: *mut ITypeInfo, + memid: MEMBERID, + rgBstrNames: *mut BSTR, + cMaxNames: UINT, + pcNames: *mut UINT, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetIDsOfNames_Proxy( + This: *mut ITypeInfo, + rgszNames: *mut LPOLESTR, + cNames: UINT, + pMemId: *mut MEMBERID, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetIDsOfNames_Stub(This: *mut ITypeInfo) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_Invoke_Proxy( + This: *mut ITypeInfo, + pvInstance: PVOID, + memid: MEMBERID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_Invoke_Stub(This: *mut ITypeInfo) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetDocumentation_Proxy( + This: *mut ITypeInfo, + memid: MEMBERID, + pBstrName: *mut BSTR, + pBstrDocString: *mut BSTR, + pdwHelpContext: *mut DWORD, + pBstrHelpFile: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetDocumentation_Stub( + This: *mut ITypeInfo, + memid: MEMBERID, + refPtrFlags: DWORD, + pBstrName: *mut BSTR, + pBstrDocString: *mut BSTR, + pdwHelpContext: *mut DWORD, + pBstrHelpFile: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetDllEntry_Proxy( + This: *mut ITypeInfo, + memid: MEMBERID, + invKind: INVOKEKIND, + pBstrDllName: *mut BSTR, + pBstrName: *mut BSTR, + pwOrdinal: *mut WORD, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetDllEntry_Stub( + This: *mut ITypeInfo, + memid: MEMBERID, + invKind: INVOKEKIND, + refPtrFlags: DWORD, + pBstrDllName: *mut BSTR, + pBstrName: *mut BSTR, + pwOrdinal: *mut WORD, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_AddressOfMember_Proxy( + This: *mut ITypeInfo, + memid: MEMBERID, + invKind: INVOKEKIND, + ppv: *mut PVOID, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_AddressOfMember_Stub(This: *mut ITypeInfo) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_CreateInstance_Proxy( + This: *mut ITypeInfo, + pUnkOuter: *mut IUnknown, + riid: *const IID, + ppvObj: *mut PVOID, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_CreateInstance_Stub( + This: *mut ITypeInfo, + riid: *const IID, + ppvObj: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetContainingTypeLib_Proxy( + This: *mut ITypeInfo, + ppTLib: *mut *mut ITypeLib, + pIndex: *mut UINT, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_GetContainingTypeLib_Stub( + This: *mut ITypeInfo, + ppTLib: *mut *mut ITypeLib, + pIndex: *mut UINT, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_ReleaseTypeAttr_Proxy(This: *mut ITypeInfo, pTypeAttr: *mut TYPEATTR); +} +extern "C" { + pub fn ITypeInfo_ReleaseTypeAttr_Stub(This: *mut ITypeInfo) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_ReleaseFuncDesc_Proxy(This: *mut ITypeInfo, pFuncDesc: *mut FUNCDESC); +} +extern "C" { + pub fn ITypeInfo_ReleaseFuncDesc_Stub(This: *mut ITypeInfo) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo_ReleaseVarDesc_Proxy(This: *mut ITypeInfo, pVarDesc: *mut VARDESC); +} +extern "C" { + pub fn ITypeInfo_ReleaseVarDesc_Stub(This: *mut ITypeInfo) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo2_GetDocumentation2_Proxy( + This: *mut ITypeInfo2, + memid: MEMBERID, + lcid: LCID, + pbstrHelpString: *mut BSTR, + pdwHelpStringContext: *mut DWORD, + pbstrHelpStringDll: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeInfo2_GetDocumentation2_Stub( + This: *mut ITypeInfo2, + memid: MEMBERID, + lcid: LCID, + refPtrFlags: DWORD, + pbstrHelpString: *mut BSTR, + pdwHelpStringContext: *mut DWORD, + pbstrHelpStringDll: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_GetTypeInfoCount_Proxy(This: *mut ITypeLib) -> UINT; +} +extern "C" { + pub fn ITypeLib_GetTypeInfoCount_Stub(This: *mut ITypeLib, pcTInfo: *mut UINT) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_GetLibAttr_Proxy( + This: *mut ITypeLib, + ppTLibAttr: *mut *mut TLIBATTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_GetLibAttr_Stub( + This: *mut ITypeLib, + ppTLibAttr: *mut LPTLIBATTR, + pDummy: *mut CLEANLOCALSTORAGE, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_GetDocumentation_Proxy( + This: *mut ITypeLib, + index: INT, + pBstrName: *mut BSTR, + pBstrDocString: *mut BSTR, + pdwHelpContext: *mut DWORD, + pBstrHelpFile: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_GetDocumentation_Stub( + This: *mut ITypeLib, + index: INT, + refPtrFlags: DWORD, + pBstrName: *mut BSTR, + pBstrDocString: *mut BSTR, + pdwHelpContext: *mut DWORD, + pBstrHelpFile: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_IsName_Proxy( + This: *mut ITypeLib, + szNameBuf: LPOLESTR, + lHashVal: ULONG, + pfName: *mut BOOL, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_IsName_Stub( + This: *mut ITypeLib, + szNameBuf: LPOLESTR, + lHashVal: ULONG, + pfName: *mut BOOL, + pBstrLibName: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_FindName_Proxy( + This: *mut ITypeLib, + szNameBuf: LPOLESTR, + lHashVal: ULONG, + ppTInfo: *mut *mut ITypeInfo, + rgMemId: *mut MEMBERID, + pcFound: *mut USHORT, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_FindName_Stub( + This: *mut ITypeLib, + szNameBuf: LPOLESTR, + lHashVal: ULONG, + ppTInfo: *mut *mut ITypeInfo, + rgMemId: *mut MEMBERID, + pcFound: *mut USHORT, + pBstrLibName: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib_ReleaseTLibAttr_Proxy(This: *mut ITypeLib, pTLibAttr: *mut TLIBATTR); +} +extern "C" { + pub fn ITypeLib_ReleaseTLibAttr_Stub(This: *mut ITypeLib) -> HRESULT; +} +extern "C" { + pub fn ITypeLib2_GetLibStatistics_Proxy( + This: *mut ITypeLib2, + pcUniqueNames: *mut ULONG, + pcchUniqueNames: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib2_GetLibStatistics_Stub( + This: *mut ITypeLib2, + pcUniqueNames: *mut ULONG, + pcchUniqueNames: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib2_GetDocumentation2_Proxy( + This: *mut ITypeLib2, + index: INT, + lcid: LCID, + pbstrHelpString: *mut BSTR, + pdwHelpStringContext: *mut DWORD, + pbstrHelpStringDll: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn ITypeLib2_GetDocumentation2_Stub( + This: *mut ITypeLib2, + index: INT, + lcid: LCID, + refPtrFlags: DWORD, + pbstrHelpString: *mut BSTR, + pdwHelpStringContext: *mut DWORD, + pbstrHelpStringDll: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn IPropertyBag_Read_Proxy( + This: *mut IPropertyBag, + pszPropName: LPCOLESTR, + pVar: *mut VARIANT, + pErrorLog: *mut IErrorLog, + ) -> HRESULT; +} +extern "C" { + pub fn IPropertyBag_Read_Stub( + This: *mut IPropertyBag, + pszPropName: LPCOLESTR, + pVar: *mut VARIANT, + pErrorLog: *mut IErrorLog, + varType: DWORD, + pUnkObj: *mut IUnknown, + ) -> HRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagVersionedStream { + pub guidVersion: GUID, + pub pStream: *mut IStream, +} +pub type VERSIONEDSTREAM = tagVersionedStream; +pub type LPVERSIONEDSTREAM = *mut tagVersionedStream; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCAC { + pub cElems: ULONG, + pub pElems: *mut CHAR, +} +pub type CAC = tagCAC; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCAUB { + pub cElems: ULONG, + pub pElems: *mut UCHAR, +} +pub type CAUB = tagCAUB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCAI { + pub cElems: ULONG, + pub pElems: *mut SHORT, +} +pub type CAI = tagCAI; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCAUI { + pub cElems: ULONG, + pub pElems: *mut USHORT, +} +pub type CAUI = tagCAUI; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCAL { + pub cElems: ULONG, + pub pElems: *mut LONG, +} +pub type CAL = tagCAL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCAUL { + pub cElems: ULONG, + pub pElems: *mut ULONG, +} +pub type CAUL = tagCAUL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCAFLT { + pub cElems: ULONG, + pub pElems: *mut FLOAT, +} +pub type CAFLT = tagCAFLT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCADBL { + pub cElems: ULONG, + pub pElems: *mut DOUBLE, +} +pub type CADBL = tagCADBL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCACY { + pub cElems: ULONG, + pub pElems: *mut CY, +} +pub type CACY = tagCACY; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCADATE { + pub cElems: ULONG, + pub pElems: *mut DATE, +} +pub type CADATE = tagCADATE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCABSTR { + pub cElems: ULONG, + pub pElems: *mut BSTR, +} +pub type CABSTR = tagCABSTR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCABSTRBLOB { + pub cElems: ULONG, + pub pElems: *mut BSTRBLOB, +} +pub type CABSTRBLOB = tagCABSTRBLOB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCABOOL { + pub cElems: ULONG, + pub pElems: *mut VARIANT_BOOL, +} +pub type CABOOL = tagCABOOL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCASCODE { + pub cElems: ULONG, + pub pElems: *mut SCODE, +} +pub type CASCODE = tagCASCODE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCAPROPVARIANT { + pub cElems: ULONG, + pub pElems: *mut PROPVARIANT, +} +pub type CAPROPVARIANT = tagCAPROPVARIANT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCAH { + pub cElems: ULONG, + pub pElems: *mut LARGE_INTEGER, +} +pub type CAH = tagCAH; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCAUH { + pub cElems: ULONG, + pub pElems: *mut ULARGE_INTEGER, +} +pub type CAUH = tagCAUH; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCALPSTR { + pub cElems: ULONG, + pub pElems: *mut LPSTR, +} +pub type CALPSTR = tagCALPSTR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCALPWSTR { + pub cElems: ULONG, + pub pElems: *mut LPWSTR, +} +pub type CALPWSTR = tagCALPWSTR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCAFILETIME { + pub cElems: ULONG, + pub pElems: *mut FILETIME, +} +pub type CAFILETIME = tagCAFILETIME; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCACLIPDATA { + pub cElems: ULONG, + pub pElems: *mut CLIPDATA, +} +pub type CACLIPDATA = tagCACLIPDATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCACLSID { + pub cElems: ULONG, + pub pElems: *mut CLSID, +} +pub type CACLSID = tagCACLSID; +pub type PROPVAR_PAD1 = WORD; +pub type PROPVAR_PAD2 = WORD; +pub type PROPVAR_PAD3 = WORD; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagPROPVARIANT { + pub __bindgen_anon_1: tagPROPVARIANT__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagPROPVARIANT__bindgen_ty_1 { + pub __bindgen_anon_1: tagPROPVARIANT__bindgen_ty_1__bindgen_ty_1, + pub decVal: DECIMAL, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagPROPVARIANT__bindgen_ty_1__bindgen_ty_1 { + pub vt: VARTYPE, + pub wReserved1: PROPVAR_PAD1, + pub wReserved2: PROPVAR_PAD2, + pub wReserved3: PROPVAR_PAD3, + pub __bindgen_anon_1: tagPROPVARIANT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagPROPVARIANT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { + pub cVal: CHAR, + pub bVal: UCHAR, + pub iVal: SHORT, + pub uiVal: USHORT, + pub lVal: LONG, + pub ulVal: ULONG, + pub intVal: INT, + pub uintVal: UINT, + pub hVal: LARGE_INTEGER, + pub uhVal: ULARGE_INTEGER, + pub fltVal: FLOAT, + pub dblVal: DOUBLE, + pub boolVal: VARIANT_BOOL, + pub __OBSOLETE__VARIANT_BOOL: VARIANT_BOOL, + pub scode: SCODE, + pub cyVal: CY, + pub date: DATE, + pub filetime: FILETIME, + pub puuid: *mut CLSID, + pub pclipdata: *mut CLIPDATA, + pub bstrVal: BSTR, + pub bstrblobVal: BSTRBLOB, + pub blob: BLOB, + pub pszVal: LPSTR, + pub pwszVal: LPWSTR, + pub punkVal: *mut IUnknown, + pub pdispVal: *mut IDispatch, + pub pStream: *mut IStream, + pub pStorage: *mut IStorage, + pub pVersionedStream: LPVERSIONEDSTREAM, + pub parray: LPSAFEARRAY, + pub cac: CAC, + pub caub: CAUB, + pub cai: CAI, + pub caui: CAUI, + pub cal: CAL, + pub caul: CAUL, + pub cah: CAH, + pub cauh: CAUH, + pub caflt: CAFLT, + pub cadbl: CADBL, + pub cabool: CABOOL, + pub cascode: CASCODE, + pub cacy: CACY, + pub cadate: CADATE, + pub cafiletime: CAFILETIME, + pub cauuid: CACLSID, + pub caclipdata: CACLIPDATA, + pub cabstr: CABSTR, + pub cabstrblob: CABSTRBLOB, + pub calpstr: CALPSTR, + pub calpwstr: CALPWSTR, + pub capropvar: CAPROPVARIANT, + pub pcVal: *mut CHAR, + pub pbVal: *mut UCHAR, + pub piVal: *mut SHORT, + pub puiVal: *mut USHORT, + pub plVal: *mut LONG, + pub pulVal: *mut ULONG, + pub pintVal: *mut INT, + pub puintVal: *mut UINT, + pub pfltVal: *mut FLOAT, + pub pdblVal: *mut DOUBLE, + pub pboolVal: *mut VARIANT_BOOL, + pub pdecVal: *mut DECIMAL, + pub pscode: *mut SCODE, + pub pcyVal: *mut CY, + pub pdate: *mut DATE, + pub pbstrVal: *mut BSTR, + pub ppunkVal: *mut *mut IUnknown, + pub ppdispVal: *mut *mut IDispatch, + pub pparray: *mut LPSAFEARRAY, + pub pvarVal: *mut PROPVARIANT, +} +pub type LPPROPVARIANT = *mut tagPROPVARIANT; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tagPROPSPEC { + pub ulKind: ULONG, + pub __bindgen_anon_1: tagPROPSPEC__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tagPROPSPEC__bindgen_ty_1 { + pub propid: PROPID, + pub lpwstr: LPOLESTR, +} +pub type PROPSPEC = tagPROPSPEC; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSTATPROPSTG { + pub lpwstrName: LPOLESTR, + pub propid: PROPID, + pub vt: VARTYPE, +} +pub type STATPROPSTG = tagSTATPROPSTG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSTATPROPSETSTG { + pub fmtid: FMTID, + pub clsid: CLSID, + pub grfFlags: DWORD, + pub mtime: FILETIME, + pub ctime: FILETIME, + pub atime: FILETIME, + pub dwOSVersion: DWORD, +} +pub type STATPROPSETSTG = tagSTATPROPSETSTG; +extern "C" { + pub static mut __MIDL_itf_propidlbase_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_propidlbase_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IPropertyStorage: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPropertyStorageVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertyStorage, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub ReadMultiple: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertyStorage, + cpspec: ULONG, + rgpspec: *const PROPSPEC, + rgpropvar: *mut PROPVARIANT, + ) -> HRESULT, + >, + pub WriteMultiple: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertyStorage, + cpspec: ULONG, + rgpspec: *const PROPSPEC, + rgpropvar: *const PROPVARIANT, + propidNameFirst: PROPID, + ) -> HRESULT, + >, + pub DeleteMultiple: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertyStorage, + cpspec: ULONG, + rgpspec: *const PROPSPEC, + ) -> HRESULT, + >, + pub ReadPropertyNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertyStorage, + cpropid: ULONG, + rgpropid: *const PROPID, + rglpwstrName: *mut LPOLESTR, + ) -> HRESULT, + >, + pub WritePropertyNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertyStorage, + cpropid: ULONG, + rgpropid: *const PROPID, + rglpwstrName: *const LPOLESTR, + ) -> HRESULT, + >, + pub DeletePropertyNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertyStorage, + cpropid: ULONG, + rgpropid: *const PROPID, + ) -> HRESULT, + >, + pub Commit: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPropertyStorage, grfCommitFlags: DWORD) -> HRESULT, + >, + pub Revert: ::std::option::Option HRESULT>, + pub Enum: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertyStorage, + ppenum: *mut *mut IEnumSTATPROPSTG, + ) -> HRESULT, + >, + pub SetTimes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertyStorage, + pctime: *const FILETIME, + patime: *const FILETIME, + pmtime: *const FILETIME, + ) -> HRESULT, + >, + pub SetClass: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPropertyStorage, clsid: *const IID) -> HRESULT, + >, + pub Stat: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertyStorage, + pstatpsstg: *mut STATPROPSETSTG, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPropertyStorage { + pub lpVtbl: *mut IPropertyStorageVtbl, +} +pub type LPPROPERTYSETSTORAGE = *mut IPropertySetStorage; +extern "C" { + pub static IID_IPropertySetStorage: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPropertySetStorageVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertySetStorage, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub Create: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertySetStorage, + rfmtid: *const IID, + pclsid: *const CLSID, + grfFlags: DWORD, + grfMode: DWORD, + ppprstg: *mut *mut IPropertyStorage, + ) -> HRESULT, + >, + pub Open: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertySetStorage, + rfmtid: *const IID, + grfMode: DWORD, + ppprstg: *mut *mut IPropertyStorage, + ) -> HRESULT, + >, + pub Delete: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPropertySetStorage, rfmtid: *const IID) -> HRESULT, + >, + pub Enum: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPropertySetStorage, + ppenum: *mut *mut IEnumSTATPROPSETSTG, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPropertySetStorage { + pub lpVtbl: *mut IPropertySetStorageVtbl, +} +pub type LPENUMSTATPROPSTG = *mut IEnumSTATPROPSTG; +extern "C" { + pub static IID_IEnumSTATPROPSTG: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumSTATPROPSTGVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumSTATPROPSTG, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Next: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumSTATPROPSTG, + celt: ULONG, + rgelt: *mut STATPROPSTG, + pceltFetched: *mut ULONG, + ) -> HRESULT, + >, + pub Skip: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumSTATPROPSTG, celt: ULONG) -> HRESULT, + >, + pub Reset: ::std::option::Option HRESULT>, + pub Clone: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumSTATPROPSTG, + ppenum: *mut *mut IEnumSTATPROPSTG, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumSTATPROPSTG { + pub lpVtbl: *mut IEnumSTATPROPSTGVtbl, +} +extern "C" { + pub fn IEnumSTATPROPSTG_RemoteNext_Proxy( + This: *mut IEnumSTATPROPSTG, + celt: ULONG, + rgelt: *mut STATPROPSTG, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumSTATPROPSTG_RemoteNext_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPENUMSTATPROPSETSTG = *mut IEnumSTATPROPSETSTG; +extern "C" { + pub static IID_IEnumSTATPROPSETSTG: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumSTATPROPSETSTGVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumSTATPROPSETSTG, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub Next: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumSTATPROPSETSTG, + celt: ULONG, + rgelt: *mut STATPROPSETSTG, + pceltFetched: *mut ULONG, + ) -> HRESULT, + >, + pub Skip: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumSTATPROPSETSTG, celt: ULONG) -> HRESULT, + >, + pub Reset: + ::std::option::Option HRESULT>, + pub Clone: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumSTATPROPSETSTG, + ppenum: *mut *mut IEnumSTATPROPSETSTG, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumSTATPROPSETSTG { + pub lpVtbl: *mut IEnumSTATPROPSETSTGVtbl, +} +extern "C" { + pub fn IEnumSTATPROPSETSTG_RemoteNext_Proxy( + This: *mut IEnumSTATPROPSETSTG, + celt: ULONG, + rgelt: *mut STATPROPSETSTG, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumSTATPROPSETSTG_RemoteNext_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPPROPERTYSTORAGE = *mut IPropertyStorage; +extern "C" { + pub static mut __MIDL_itf_propidlbase_0000_0004_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_propidlbase_0000_0004_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub fn LPSAFEARRAY_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut LPSAFEARRAY, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn LPSAFEARRAY_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut LPSAFEARRAY, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn LPSAFEARRAY_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut LPSAFEARRAY, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn LPSAFEARRAY_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut LPSAFEARRAY); +} +extern "C" { + pub fn LPSAFEARRAY_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut LPSAFEARRAY, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn LPSAFEARRAY_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut LPSAFEARRAY, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn LPSAFEARRAY_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut LPSAFEARRAY, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn LPSAFEARRAY_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut LPSAFEARRAY); +} +extern "C" { + pub fn IEnumSTATPROPSTG_Next_Proxy( + This: *mut IEnumSTATPROPSTG, + celt: ULONG, + rgelt: *mut STATPROPSTG, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumSTATPROPSTG_Next_Stub( + This: *mut IEnumSTATPROPSTG, + celt: ULONG, + rgelt: *mut STATPROPSTG, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumSTATPROPSETSTG_Next_Proxy( + This: *mut IEnumSTATPROPSETSTG, + celt: ULONG, + rgelt: *mut STATPROPSETSTG, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumSTATPROPSETSTG_Next_Stub( + This: *mut IEnumSTATPROPSETSTG, + celt: ULONG, + rgelt: *mut STATPROPSETSTG, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +pub type STGFMT = DWORD; +extern "C" { + pub fn StgCreateDocfile( + pwcsName: *const WCHAR, + grfMode: DWORD, + reserved: DWORD, + ppstgOpen: *mut *mut IStorage, + ) -> HRESULT; +} +extern "C" { + pub fn StgCreateDocfileOnILockBytes( + plkbyt: *mut ILockBytes, + grfMode: DWORD, + reserved: DWORD, + ppstgOpen: *mut *mut IStorage, + ) -> HRESULT; +} +extern "C" { + pub fn StgOpenStorage( + pwcsName: *const WCHAR, + pstgPriority: *mut IStorage, + grfMode: DWORD, + snbExclude: SNB, + reserved: DWORD, + ppstgOpen: *mut *mut IStorage, + ) -> HRESULT; +} +extern "C" { + pub fn StgOpenStorageOnILockBytes( + plkbyt: *mut ILockBytes, + pstgPriority: *mut IStorage, + grfMode: DWORD, + snbExclude: SNB, + reserved: DWORD, + ppstgOpen: *mut *mut IStorage, + ) -> HRESULT; +} +extern "C" { + pub fn StgIsStorageFile(pwcsName: *const WCHAR) -> HRESULT; +} +extern "C" { + pub fn StgIsStorageILockBytes(plkbyt: *mut ILockBytes) -> HRESULT; +} +extern "C" { + pub fn StgSetTimes( + lpszName: *const WCHAR, + pctime: *const FILETIME, + patime: *const FILETIME, + pmtime: *const FILETIME, + ) -> HRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSTGOPTIONS { + pub usVersion: USHORT, + pub reserved: USHORT, + pub ulSectorSize: ULONG, + pub pwcsTemplateFile: *const WCHAR, +} +pub type STGOPTIONS = tagSTGOPTIONS; +extern "C" { + pub fn StgCreateStorageEx( + pwcsName: *const WCHAR, + grfMode: DWORD, + stgfmt: DWORD, + grfAttrs: DWORD, + pStgOptions: *mut STGOPTIONS, + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + riid: *const IID, + ppObjectOpen: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn StgOpenStorageEx( + pwcsName: *const WCHAR, + grfMode: DWORD, + stgfmt: DWORD, + grfAttrs: DWORD, + pStgOptions: *mut STGOPTIONS, + pSecurityDescriptor: PSECURITY_DESCRIPTOR, + riid: *const IID, + ppObjectOpen: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn StgCreatePropStg( + pUnk: *mut IUnknown, + fmtid: *const IID, + pclsid: *const CLSID, + grfFlags: DWORD, + dwReserved: DWORD, + ppPropStg: *mut *mut IPropertyStorage, + ) -> HRESULT; +} +extern "C" { + pub fn StgOpenPropStg( + pUnk: *mut IUnknown, + fmtid: *const IID, + grfFlags: DWORD, + dwReserved: DWORD, + ppPropStg: *mut *mut IPropertyStorage, + ) -> HRESULT; +} +extern "C" { + pub fn StgCreatePropSetStg( + pStorage: *mut IStorage, + dwReserved: DWORD, + ppPropSetStg: *mut *mut IPropertySetStorage, + ) -> HRESULT; +} +extern "C" { + pub fn FmtIdToPropStgName(pfmtid: *const FMTID, oszName: LPOLESTR) -> HRESULT; +} +extern "C" { + pub fn PropStgNameToFmtId(oszName: LPOLESTR, pfmtid: *mut FMTID) -> HRESULT; +} +extern "C" { + pub fn ReadClassStg(pStg: LPSTORAGE, pclsid: *mut CLSID) -> HRESULT; +} +extern "C" { + pub fn WriteClassStg(pStg: LPSTORAGE, rclsid: *const IID) -> HRESULT; +} +extern "C" { + pub fn ReadClassStm(pStm: LPSTREAM, pclsid: *mut CLSID) -> HRESULT; +} +extern "C" { + pub fn WriteClassStm(pStm: LPSTREAM, rclsid: *const IID) -> HRESULT; +} +extern "C" { + pub fn GetHGlobalFromILockBytes(plkbyt: LPLOCKBYTES, phglobal: *mut HGLOBAL) -> HRESULT; +} +extern "C" { + pub fn CreateILockBytesOnHGlobal( + hGlobal: HGLOBAL, + fDeleteOnRelease: BOOL, + pplkbyt: *mut LPLOCKBYTES, + ) -> HRESULT; +} +extern "C" { + pub fn GetConvertStg(pStg: LPSTORAGE) -> HRESULT; +} +pub const tagCOINIT_COINIT_APARTMENTTHREADED: tagCOINIT = 2; +pub const tagCOINIT_COINIT_MULTITHREADED: tagCOINIT = 0; +pub const tagCOINIT_COINIT_DISABLE_OLE1DDE: tagCOINIT = 4; +pub const tagCOINIT_COINIT_SPEED_OVER_MEMORY: tagCOINIT = 8; +pub type tagCOINIT = ::std::os::raw::c_int; +pub use self::tagCOINIT as COINIT; +extern "C" { + pub fn CoBuildVersion() -> DWORD; +} +extern "C" { + pub fn CoInitialize(pvReserved: LPVOID) -> HRESULT; +} +extern "C" { + pub fn CoRegisterMallocSpy(pMallocSpy: LPMALLOCSPY) -> HRESULT; +} +extern "C" { + pub fn CoRevokeMallocSpy() -> HRESULT; +} +extern "C" { + pub fn CoCreateStandardMalloc(memctx: DWORD, ppMalloc: *mut *mut IMalloc) -> HRESULT; +} +extern "C" { + pub fn CoRegisterInitializeSpy( + pSpy: *mut IInitializeSpy, + puliCookie: *mut ULARGE_INTEGER, + ) -> HRESULT; +} +extern "C" { + pub fn CoRevokeInitializeSpy(uliCookie: ULARGE_INTEGER) -> HRESULT; +} +pub const tagCOMSD_SD_LAUNCHPERMISSIONS: tagCOMSD = 0; +pub const tagCOMSD_SD_ACCESSPERMISSIONS: tagCOMSD = 1; +pub const tagCOMSD_SD_LAUNCHRESTRICTIONS: tagCOMSD = 2; +pub const tagCOMSD_SD_ACCESSRESTRICTIONS: tagCOMSD = 3; +pub type tagCOMSD = ::std::os::raw::c_int; +pub use self::tagCOMSD as COMSD; +extern "C" { + pub fn CoGetSystemSecurityPermissions( + comSDType: COMSD, + ppSD: *mut PSECURITY_DESCRIPTOR, + ) -> HRESULT; +} +extern "C" { + pub fn CoLoadLibrary(lpszLibName: LPOLESTR, bAutoFree: BOOL) -> HINSTANCE; +} +extern "C" { + pub fn CoFreeLibrary(hInst: HINSTANCE); +} +extern "C" { + pub fn CoFreeAllLibraries(); +} +extern "C" { + pub fn CoGetInstanceFromFile( + pServerInfo: *mut COSERVERINFO, + pClsid: *mut CLSID, + punkOuter: *mut IUnknown, + dwClsCtx: DWORD, + grfMode: DWORD, + pwszName: *mut OLECHAR, + dwCount: DWORD, + pResults: *mut MULTI_QI, + ) -> HRESULT; +} +extern "C" { + pub fn CoGetInstanceFromIStorage( + pServerInfo: *mut COSERVERINFO, + pClsid: *mut CLSID, + punkOuter: *mut IUnknown, + dwClsCtx: DWORD, + pstg: *mut IStorage, + dwCount: DWORD, + pResults: *mut MULTI_QI, + ) -> HRESULT; +} +extern "C" { + pub fn CoAllowSetForegroundWindow(pUnk: *mut IUnknown, lpvReserved: LPVOID) -> HRESULT; +} +extern "C" { + pub fn DcomChannelSetHResult( + pvReserved: LPVOID, + pulReserved: *mut ULONG, + appsHR: HRESULT, + ) -> HRESULT; +} +extern "C" { + pub fn CoIsOle1Class(rclsid: *const IID) -> BOOL; +} +extern "C" { + pub fn CoFileTimeToDosDateTime( + lpFileTime: *mut FILETIME, + lpDosDate: LPWORD, + lpDosTime: LPWORD, + ) -> BOOL; +} +extern "C" { + pub fn CoDosDateTimeToFileTime( + nDosDate: WORD, + nDosTime: WORD, + lpFileTime: *mut FILETIME, + ) -> BOOL; +} +extern "C" { + pub fn CoRegisterMessageFilter( + lpMessageFilter: LPMESSAGEFILTER, + lplpMessageFilter: *mut LPMESSAGEFILTER, + ) -> HRESULT; +} +extern "C" { + pub fn CoRegisterChannelHook( + ExtensionUuid: *const GUID, + pChannelHook: *mut IChannelHook, + ) -> HRESULT; +} +extern "C" { + pub fn CoTreatAsClass(clsidOld: *const IID, clsidNew: *const IID) -> HRESULT; +} +extern "C" { + pub fn CreateDataAdviseHolder(ppDAHolder: *mut LPDATAADVISEHOLDER) -> HRESULT; +} +extern "C" { + pub fn CreateDataCache( + pUnkOuter: LPUNKNOWN, + rclsid: *const IID, + iid: *const IID, + ppv: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn StgOpenAsyncDocfileOnIFillLockBytes( + pflb: *mut IFillLockBytes, + grfMode: DWORD, + asyncFlags: DWORD, + ppstgOpen: *mut *mut IStorage, + ) -> HRESULT; +} +extern "C" { + pub fn StgGetIFillLockBytesOnILockBytes( + pilb: *mut ILockBytes, + ppflb: *mut *mut IFillLockBytes, + ) -> HRESULT; +} +extern "C" { + pub fn StgGetIFillLockBytesOnFile( + pwcsName: *const OLECHAR, + ppflb: *mut *mut IFillLockBytes, + ) -> HRESULT; +} +extern "C" { + pub fn StgOpenLayoutDocfile( + pwcsDfName: *const OLECHAR, + grfMode: DWORD, + reserved: DWORD, + ppstgOpen: *mut *mut IStorage, + ) -> HRESULT; +} +extern "C" { + pub fn CoInstall( + pbc: *mut IBindCtx, + dwFlags: DWORD, + pClassSpec: *mut uCLSSPEC, + pQuery: *mut QUERYCONTEXT, + pszCodeBase: LPWSTR, + ) -> HRESULT; +} +extern "C" { + pub fn BindMoniker( + pmk: LPMONIKER, + grfOpt: DWORD, + iidResult: *const IID, + ppvResult: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn CoGetObject( + pszName: LPCWSTR, + pBindOptions: *mut BIND_OPTS, + riid: *const IID, + ppv: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn MkParseDisplayName( + pbc: LPBC, + szUserName: LPCOLESTR, + pchEaten: *mut ULONG, + ppmk: *mut LPMONIKER, + ) -> HRESULT; +} +extern "C" { + pub fn MonikerRelativePathTo( + pmkSrc: LPMONIKER, + pmkDest: LPMONIKER, + ppmkRelPath: *mut LPMONIKER, + dwReserved: BOOL, + ) -> HRESULT; +} +extern "C" { + pub fn MonikerCommonPrefixWith( + pmkThis: LPMONIKER, + pmkOther: LPMONIKER, + ppmkCommon: *mut LPMONIKER, + ) -> HRESULT; +} +extern "C" { + pub fn CreateBindCtx(reserved: DWORD, ppbc: *mut LPBC) -> HRESULT; +} +extern "C" { + pub fn CreateGenericComposite( + pmkFirst: LPMONIKER, + pmkRest: LPMONIKER, + ppmkComposite: *mut LPMONIKER, + ) -> HRESULT; +} +extern "C" { + pub fn GetClassFile(szFilename: LPCOLESTR, pclsid: *mut CLSID) -> HRESULT; +} +extern "C" { + pub fn CreateClassMoniker(rclsid: *const IID, ppmk: *mut LPMONIKER) -> HRESULT; +} +extern "C" { + pub fn CreateFileMoniker(lpszPathName: LPCOLESTR, ppmk: *mut LPMONIKER) -> HRESULT; +} +extern "C" { + pub fn CreateItemMoniker( + lpszDelim: LPCOLESTR, + lpszItem: LPCOLESTR, + ppmk: *mut LPMONIKER, + ) -> HRESULT; +} +extern "C" { + pub fn CreateAntiMoniker(ppmk: *mut LPMONIKER) -> HRESULT; +} +extern "C" { + pub fn CreatePointerMoniker(punk: LPUNKNOWN, ppmk: *mut LPMONIKER) -> HRESULT; +} +extern "C" { + pub fn CreateObjrefMoniker(punk: LPUNKNOWN, ppmk: *mut LPMONIKER) -> HRESULT; +} +extern "C" { + pub fn GetRunningObjectTable(reserved: DWORD, pprot: *mut LPRUNNINGOBJECTTABLE) -> HRESULT; +} +extern "C" { + pub static mut __MIDL_itf_oleidl_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_oleidl_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPOLEADVISEHOLDER = *mut IOleAdviseHolder; +extern "C" { + pub static IID_IOleAdviseHolder: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleAdviseHolderVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleAdviseHolder, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Advise: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleAdviseHolder, + pAdvise: *mut IAdviseSink, + pdwConnection: *mut DWORD, + ) -> HRESULT, + >, + pub Unadvise: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleAdviseHolder, dwConnection: DWORD) -> HRESULT, + >, + pub EnumAdvise: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleAdviseHolder, + ppenumAdvise: *mut *mut IEnumSTATDATA, + ) -> HRESULT, + >, + pub SendOnRename: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleAdviseHolder, pmk: *mut IMoniker) -> HRESULT, + >, + pub SendOnSave: + ::std::option::Option HRESULT>, + pub SendOnClose: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleAdviseHolder { + pub lpVtbl: *mut IOleAdviseHolderVtbl, +} +extern "C" { + pub static mut __MIDL_itf_oleidl_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_oleidl_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPOLECACHE = *mut IOleCache; +extern "C" { + pub static IID_IOleCache: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleCacheVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleCache, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Cache: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleCache, + pformatetc: *mut FORMATETC, + advf: DWORD, + pdwConnection: *mut DWORD, + ) -> HRESULT, + >, + pub Uncache: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleCache, dwConnection: DWORD) -> HRESULT, + >, + pub EnumCache: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleCache, + ppenumSTATDATA: *mut *mut IEnumSTATDATA, + ) -> HRESULT, + >, + pub InitCache: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleCache, pDataObject: *mut IDataObject) -> HRESULT, + >, + pub SetData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleCache, + pformatetc: *mut FORMATETC, + pmedium: *mut STGMEDIUM, + fRelease: BOOL, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleCache { + pub lpVtbl: *mut IOleCacheVtbl, +} +pub type LPOLECACHE2 = *mut IOleCache2; +pub const tagDISCARDCACHE_DISCARDCACHE_SAVEIFDIRTY: tagDISCARDCACHE = 0; +pub const tagDISCARDCACHE_DISCARDCACHE_NOSAVE: tagDISCARDCACHE = 1; +pub type tagDISCARDCACHE = ::std::os::raw::c_int; +pub use self::tagDISCARDCACHE as DISCARDCACHE; +extern "C" { + pub static IID_IOleCache2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleCache2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleCache2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Cache: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleCache2, + pformatetc: *mut FORMATETC, + advf: DWORD, + pdwConnection: *mut DWORD, + ) -> HRESULT, + >, + pub Uncache: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleCache2, dwConnection: DWORD) -> HRESULT, + >, + pub EnumCache: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleCache2, + ppenumSTATDATA: *mut *mut IEnumSTATDATA, + ) -> HRESULT, + >, + pub InitCache: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleCache2, pDataObject: *mut IDataObject) -> HRESULT, + >, + pub SetData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleCache2, + pformatetc: *mut FORMATETC, + pmedium: *mut STGMEDIUM, + fRelease: BOOL, + ) -> HRESULT, + >, + pub UpdateCache: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleCache2, + pDataObject: LPDATAOBJECT, + grfUpdf: DWORD, + pReserved: LPVOID, + ) -> HRESULT, + >, + pub DiscardCache: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleCache2, dwDiscardOptions: DWORD) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleCache2 { + pub lpVtbl: *mut IOleCache2Vtbl, +} +extern "C" { + pub fn IOleCache2_RemoteUpdateCache_Proxy( + This: *mut IOleCache2, + pDataObject: LPDATAOBJECT, + grfUpdf: DWORD, + pReserved: LONG_PTR, + ) -> HRESULT; +} +extern "C" { + pub fn IOleCache2_RemoteUpdateCache_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_oleidl_0000_0003_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_oleidl_0000_0003_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPOLECACHECONTROL = *mut IOleCacheControl; +extern "C" { + pub static IID_IOleCacheControl: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleCacheControlVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleCacheControl, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub OnRun: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleCacheControl, pDataObject: LPDATAOBJECT) -> HRESULT, + >, + pub OnStop: ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleCacheControl { + pub lpVtbl: *mut IOleCacheControlVtbl, +} +pub type LPPARSEDISPLAYNAME = *mut IParseDisplayName; +extern "C" { + pub static IID_IParseDisplayName: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IParseDisplayNameVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IParseDisplayName, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub ParseDisplayName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IParseDisplayName, + pbc: *mut IBindCtx, + pszDisplayName: LPOLESTR, + pchEaten: *mut ULONG, + ppmkOut: *mut *mut IMoniker, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IParseDisplayName { + pub lpVtbl: *mut IParseDisplayNameVtbl, +} +pub type LPOLECONTAINER = *mut IOleContainer; +extern "C" { + pub static IID_IOleContainer: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleContainerVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleContainer, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub ParseDisplayName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleContainer, + pbc: *mut IBindCtx, + pszDisplayName: LPOLESTR, + pchEaten: *mut ULONG, + ppmkOut: *mut *mut IMoniker, + ) -> HRESULT, + >, + pub EnumObjects: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleContainer, + grfFlags: DWORD, + ppenum: *mut *mut IEnumUnknown, + ) -> HRESULT, + >, + pub LockContainer: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleContainer, fLock: BOOL) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleContainer { + pub lpVtbl: *mut IOleContainerVtbl, +} +pub type LPOLECLIENTSITE = *mut IOleClientSite; +extern "C" { + pub static IID_IOleClientSite: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleClientSiteVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleClientSite, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub SaveObject: + ::std::option::Option HRESULT>, + pub GetMoniker: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleClientSite, + dwAssign: DWORD, + dwWhichMoniker: DWORD, + ppmk: *mut *mut IMoniker, + ) -> HRESULT, + >, + pub GetContainer: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleClientSite, + ppContainer: *mut *mut IOleContainer, + ) -> HRESULT, + >, + pub ShowObject: + ::std::option::Option HRESULT>, + pub OnShowWindow: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleClientSite, fShow: BOOL) -> HRESULT, + >, + pub RequestNewObjectLayout: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleClientSite { + pub lpVtbl: *mut IOleClientSiteVtbl, +} +pub type LPOLEOBJECT = *mut IOleObject; +pub const tagOLEGETMONIKER_OLEGETMONIKER_ONLYIFTHERE: tagOLEGETMONIKER = 1; +pub const tagOLEGETMONIKER_OLEGETMONIKER_FORCEASSIGN: tagOLEGETMONIKER = 2; +pub const tagOLEGETMONIKER_OLEGETMONIKER_UNASSIGN: tagOLEGETMONIKER = 3; +pub const tagOLEGETMONIKER_OLEGETMONIKER_TEMPFORUSER: tagOLEGETMONIKER = 4; +pub type tagOLEGETMONIKER = ::std::os::raw::c_int; +pub use self::tagOLEGETMONIKER as OLEGETMONIKER; +pub const tagOLEWHICHMK_OLEWHICHMK_CONTAINER: tagOLEWHICHMK = 1; +pub const tagOLEWHICHMK_OLEWHICHMK_OBJREL: tagOLEWHICHMK = 2; +pub const tagOLEWHICHMK_OLEWHICHMK_OBJFULL: tagOLEWHICHMK = 3; +pub type tagOLEWHICHMK = ::std::os::raw::c_int; +pub use self::tagOLEWHICHMK as OLEWHICHMK; +pub const tagUSERCLASSTYPE_USERCLASSTYPE_FULL: tagUSERCLASSTYPE = 1; +pub const tagUSERCLASSTYPE_USERCLASSTYPE_SHORT: tagUSERCLASSTYPE = 2; +pub const tagUSERCLASSTYPE_USERCLASSTYPE_APPNAME: tagUSERCLASSTYPE = 3; +pub type tagUSERCLASSTYPE = ::std::os::raw::c_int; +pub use self::tagUSERCLASSTYPE as USERCLASSTYPE; +pub const tagOLEMISC_OLEMISC_RECOMPOSEONRESIZE: tagOLEMISC = 1; +pub const tagOLEMISC_OLEMISC_ONLYICONIC: tagOLEMISC = 2; +pub const tagOLEMISC_OLEMISC_INSERTNOTREPLACE: tagOLEMISC = 4; +pub const tagOLEMISC_OLEMISC_STATIC: tagOLEMISC = 8; +pub const tagOLEMISC_OLEMISC_CANTLINKINSIDE: tagOLEMISC = 16; +pub const tagOLEMISC_OLEMISC_CANLINKBYOLE1: tagOLEMISC = 32; +pub const tagOLEMISC_OLEMISC_ISLINKOBJECT: tagOLEMISC = 64; +pub const tagOLEMISC_OLEMISC_INSIDEOUT: tagOLEMISC = 128; +pub const tagOLEMISC_OLEMISC_ACTIVATEWHENVISIBLE: tagOLEMISC = 256; +pub const tagOLEMISC_OLEMISC_RENDERINGISDEVICEINDEPENDENT: tagOLEMISC = 512; +pub const tagOLEMISC_OLEMISC_INVISIBLEATRUNTIME: tagOLEMISC = 1024; +pub const tagOLEMISC_OLEMISC_ALWAYSRUN: tagOLEMISC = 2048; +pub const tagOLEMISC_OLEMISC_ACTSLIKEBUTTON: tagOLEMISC = 4096; +pub const tagOLEMISC_OLEMISC_ACTSLIKELABEL: tagOLEMISC = 8192; +pub const tagOLEMISC_OLEMISC_NOUIACTIVATE: tagOLEMISC = 16384; +pub const tagOLEMISC_OLEMISC_ALIGNABLE: tagOLEMISC = 32768; +pub const tagOLEMISC_OLEMISC_SIMPLEFRAME: tagOLEMISC = 65536; +pub const tagOLEMISC_OLEMISC_SETCLIENTSITEFIRST: tagOLEMISC = 131072; +pub const tagOLEMISC_OLEMISC_IMEMODE: tagOLEMISC = 262144; +pub const tagOLEMISC_OLEMISC_IGNOREACTIVATEWHENVISIBLE: tagOLEMISC = 524288; +pub const tagOLEMISC_OLEMISC_WANTSTOMENUMERGE: tagOLEMISC = 1048576; +pub const tagOLEMISC_OLEMISC_SUPPORTSMULTILEVELUNDO: tagOLEMISC = 2097152; +pub type tagOLEMISC = ::std::os::raw::c_int; +pub use self::tagOLEMISC as OLEMISC; +pub const tagOLECLOSE_OLECLOSE_SAVEIFDIRTY: tagOLECLOSE = 0; +pub const tagOLECLOSE_OLECLOSE_NOSAVE: tagOLECLOSE = 1; +pub const tagOLECLOSE_OLECLOSE_PROMPTSAVE: tagOLECLOSE = 2; +pub type tagOLECLOSE = ::std::os::raw::c_int; +pub use self::tagOLECLOSE as OLECLOSE; +extern "C" { + pub static IID_IOleObject: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleObjectVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub SetClientSite: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleObject, pClientSite: *mut IOleClientSite) -> HRESULT, + >, + pub GetClientSite: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + ppClientSite: *mut *mut IOleClientSite, + ) -> HRESULT, + >, + pub SetHostNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + szContainerApp: LPCOLESTR, + szContainerObj: LPCOLESTR, + ) -> HRESULT, + >, + pub Close: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleObject, dwSaveOption: DWORD) -> HRESULT, + >, + pub SetMoniker: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + dwWhichMoniker: DWORD, + pmk: *mut IMoniker, + ) -> HRESULT, + >, + pub GetMoniker: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + dwAssign: DWORD, + dwWhichMoniker: DWORD, + ppmk: *mut *mut IMoniker, + ) -> HRESULT, + >, + pub InitFromData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + pDataObject: *mut IDataObject, + fCreation: BOOL, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub GetClipboardData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + dwReserved: DWORD, + ppDataObject: *mut *mut IDataObject, + ) -> HRESULT, + >, + pub DoVerb: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + iVerb: LONG, + lpmsg: LPMSG, + pActiveSite: *mut IOleClientSite, + lindex: LONG, + hwndParent: HWND, + lprcPosRect: LPCRECT, + ) -> HRESULT, + >, + pub EnumVerbs: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + ppEnumOleVerb: *mut *mut IEnumOLEVERB, + ) -> HRESULT, + >, + pub Update: ::std::option::Option HRESULT>, + pub IsUpToDate: ::std::option::Option HRESULT>, + pub GetUserClassID: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleObject, pClsid: *mut CLSID) -> HRESULT, + >, + pub GetUserType: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + dwFormOfType: DWORD, + pszUserType: *mut LPOLESTR, + ) -> HRESULT, + >, + pub SetExtent: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + dwDrawAspect: DWORD, + psizel: *mut SIZEL, + ) -> HRESULT, + >, + pub GetExtent: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + dwDrawAspect: DWORD, + psizel: *mut SIZEL, + ) -> HRESULT, + >, + pub Advise: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + pAdvSink: *mut IAdviseSink, + pdwConnection: *mut DWORD, + ) -> HRESULT, + >, + pub Unadvise: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleObject, dwConnection: DWORD) -> HRESULT, + >, + pub EnumAdvise: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + ppenumAdvise: *mut *mut IEnumSTATDATA, + ) -> HRESULT, + >, + pub GetMiscStatus: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleObject, + dwAspect: DWORD, + pdwStatus: *mut DWORD, + ) -> HRESULT, + >, + pub SetColorScheme: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleObject, pLogpal: *mut LOGPALETTE) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleObject { + pub lpVtbl: *mut IOleObjectVtbl, +} +pub const tagOLERENDER_OLERENDER_NONE: tagOLERENDER = 0; +pub const tagOLERENDER_OLERENDER_DRAW: tagOLERENDER = 1; +pub const tagOLERENDER_OLERENDER_FORMAT: tagOLERENDER = 2; +pub const tagOLERENDER_OLERENDER_ASIS: tagOLERENDER = 3; +pub type tagOLERENDER = ::std::os::raw::c_int; +pub use self::tagOLERENDER as OLERENDER; +pub type LPOLERENDER = *mut OLERENDER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagOBJECTDESCRIPTOR { + pub cbSize: ULONG, + pub clsid: CLSID, + pub dwDrawAspect: DWORD, + pub sizel: SIZEL, + pub pointl: POINTL, + pub dwStatus: DWORD, + pub dwFullUserTypeName: DWORD, + pub dwSrcOfCopy: DWORD, +} +pub type OBJECTDESCRIPTOR = tagOBJECTDESCRIPTOR; +pub type POBJECTDESCRIPTOR = *mut tagOBJECTDESCRIPTOR; +pub type LPOBJECTDESCRIPTOR = *mut tagOBJECTDESCRIPTOR; +pub type LINKSRCDESCRIPTOR = tagOBJECTDESCRIPTOR; +pub type PLINKSRCDESCRIPTOR = *mut tagOBJECTDESCRIPTOR; +pub type LPLINKSRCDESCRIPTOR = *mut tagOBJECTDESCRIPTOR; +extern "C" { + pub static mut IOLETypes_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut IOLETypes_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPOLEWINDOW = *mut IOleWindow; +extern "C" { + pub static IID_IOleWindow: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleWindowVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleWindow, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetWindow: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleWindow, phwnd: *mut HWND) -> HRESULT, + >, + pub ContextSensitiveHelp: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleWindow, fEnterMode: BOOL) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleWindow { + pub lpVtbl: *mut IOleWindowVtbl, +} +pub type LPOLELINK = *mut IOleLink; +pub const tagOLEUPDATE_OLEUPDATE_ALWAYS: tagOLEUPDATE = 1; +pub const tagOLEUPDATE_OLEUPDATE_ONCALL: tagOLEUPDATE = 3; +pub type tagOLEUPDATE = ::std::os::raw::c_int; +pub use self::tagOLEUPDATE as OLEUPDATE; +pub type LPOLEUPDATE = *mut OLEUPDATE; +pub type POLEUPDATE = *mut OLEUPDATE; +pub const tagOLELINKBIND_OLELINKBIND_EVENIFCLASSDIFF: tagOLELINKBIND = 1; +pub type tagOLELINKBIND = ::std::os::raw::c_int; +pub use self::tagOLELINKBIND as OLELINKBIND; +extern "C" { + pub static IID_IOleLink: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleLinkVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleLink, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub SetUpdateOptions: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleLink, dwUpdateOpt: DWORD) -> HRESULT, + >, + pub GetUpdateOptions: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleLink, pdwUpdateOpt: *mut DWORD) -> HRESULT, + >, + pub SetSourceMoniker: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleLink, + pmk: *mut IMoniker, + rclsid: *const IID, + ) -> HRESULT, + >, + pub GetSourceMoniker: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleLink, ppmk: *mut *mut IMoniker) -> HRESULT, + >, + pub SetSourceDisplayName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleLink, pszStatusText: LPCOLESTR) -> HRESULT, + >, + pub GetSourceDisplayName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleLink, ppszDisplayName: *mut LPOLESTR) -> HRESULT, + >, + pub BindToSource: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleLink, bindflags: DWORD, pbc: *mut IBindCtx) -> HRESULT, + >, + pub BindIfRunning: ::std::option::Option HRESULT>, + pub GetBoundSource: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleLink, ppunk: *mut *mut IUnknown) -> HRESULT, + >, + pub UnbindSource: ::std::option::Option HRESULT>, + pub Update: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleLink, pbc: *mut IBindCtx) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleLink { + pub lpVtbl: *mut IOleLinkVtbl, +} +pub type LPOLEITEMCONTAINER = *mut IOleItemContainer; +pub const tagBINDSPEED_BINDSPEED_INDEFINITE: tagBINDSPEED = 1; +pub const tagBINDSPEED_BINDSPEED_MODERATE: tagBINDSPEED = 2; +pub const tagBINDSPEED_BINDSPEED_IMMEDIATE: tagBINDSPEED = 3; +pub type tagBINDSPEED = ::std::os::raw::c_int; +pub use self::tagBINDSPEED as BINDSPEED; +pub const tagOLECONTF_OLECONTF_EMBEDDINGS: tagOLECONTF = 1; +pub const tagOLECONTF_OLECONTF_LINKS: tagOLECONTF = 2; +pub const tagOLECONTF_OLECONTF_OTHERS: tagOLECONTF = 4; +pub const tagOLECONTF_OLECONTF_ONLYUSER: tagOLECONTF = 8; +pub const tagOLECONTF_OLECONTF_ONLYIFRUNNING: tagOLECONTF = 16; +pub type tagOLECONTF = ::std::os::raw::c_int; +pub use self::tagOLECONTF as OLECONTF; +extern "C" { + pub static IID_IOleItemContainer: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleItemContainerVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleItemContainer, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub ParseDisplayName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleItemContainer, + pbc: *mut IBindCtx, + pszDisplayName: LPOLESTR, + pchEaten: *mut ULONG, + ppmkOut: *mut *mut IMoniker, + ) -> HRESULT, + >, + pub EnumObjects: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleItemContainer, + grfFlags: DWORD, + ppenum: *mut *mut IEnumUnknown, + ) -> HRESULT, + >, + pub LockContainer: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleItemContainer, fLock: BOOL) -> HRESULT, + >, + pub GetObjectA: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleItemContainer, + pszItem: LPOLESTR, + dwSpeedNeeded: DWORD, + pbc: *mut IBindCtx, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub GetObjectStorage: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleItemContainer, + pszItem: LPOLESTR, + pbc: *mut IBindCtx, + riid: *const IID, + ppvStorage: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub IsRunning: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleItemContainer, pszItem: LPOLESTR) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleItemContainer { + pub lpVtbl: *mut IOleItemContainerVtbl, +} +pub type LPOLEINPLACEUIWINDOW = *mut IOleInPlaceUIWindow; +pub type BORDERWIDTHS = RECT; +pub type LPBORDERWIDTHS = LPRECT; +pub type LPCBORDERWIDTHS = LPCRECT; +extern "C" { + pub static IID_IOleInPlaceUIWindow: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleInPlaceUIWindowVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceUIWindow, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetWindow: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceUIWindow, phwnd: *mut HWND) -> HRESULT, + >, + pub ContextSensitiveHelp: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceUIWindow, fEnterMode: BOOL) -> HRESULT, + >, + pub GetBorder: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceUIWindow, lprectBorder: LPRECT) -> HRESULT, + >, + pub RequestBorderSpace: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceUIWindow, + pborderwidths: LPCBORDERWIDTHS, + ) -> HRESULT, + >, + pub SetBorderSpace: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceUIWindow, + pborderwidths: LPCBORDERWIDTHS, + ) -> HRESULT, + >, + pub SetActiveObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceUIWindow, + pActiveObject: *mut IOleInPlaceActiveObject, + pszObjName: LPCOLESTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleInPlaceUIWindow { + pub lpVtbl: *mut IOleInPlaceUIWindowVtbl, +} +pub type LPOLEINPLACEACTIVEOBJECT = *mut IOleInPlaceActiveObject; +extern "C" { + pub static IID_IOleInPlaceActiveObject: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleInPlaceActiveObjectVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceActiveObject, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetWindow: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceActiveObject, phwnd: *mut HWND) -> HRESULT, + >, + pub ContextSensitiveHelp: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceActiveObject, fEnterMode: BOOL) -> HRESULT, + >, + pub TranslateAcceleratorA: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceActiveObject, lpmsg: LPMSG) -> HRESULT, + >, + pub OnFrameWindowActivate: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceActiveObject, fActivate: BOOL) -> HRESULT, + >, + pub OnDocWindowActivate: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceActiveObject, fActivate: BOOL) -> HRESULT, + >, + pub ResizeBorder: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceActiveObject, + prcBorder: LPCRECT, + pUIWindow: *mut IOleInPlaceUIWindow, + fFrameWindow: BOOL, + ) -> HRESULT, + >, + pub EnableModeless: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceActiveObject, fEnable: BOOL) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleInPlaceActiveObject { + pub lpVtbl: *mut IOleInPlaceActiveObjectVtbl, +} +extern "C" { + pub fn IOleInPlaceActiveObject_RemoteTranslateAccelerator_Proxy( + This: *mut IOleInPlaceActiveObject, + ) -> HRESULT; +} +extern "C" { + pub fn IOleInPlaceActiveObject_RemoteTranslateAccelerator_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IOleInPlaceActiveObject_RemoteResizeBorder_Proxy( + This: *mut IOleInPlaceActiveObject, + prcBorder: LPCRECT, + riid: *const IID, + pUIWindow: *mut IOleInPlaceUIWindow, + fFrameWindow: BOOL, + ) -> HRESULT; +} +extern "C" { + pub fn IOleInPlaceActiveObject_RemoteResizeBorder_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPOLEINPLACEFRAME = *mut IOleInPlaceFrame; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagOIFI { + pub cb: UINT, + pub fMDIApp: BOOL, + pub hwndFrame: HWND, + pub haccel: HACCEL, + pub cAccelEntries: UINT, +} +pub type OLEINPLACEFRAMEINFO = tagOIFI; +pub type LPOLEINPLACEFRAMEINFO = *mut tagOIFI; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagOleMenuGroupWidths { + pub width: [LONG; 6usize], +} +pub type OLEMENUGROUPWIDTHS = tagOleMenuGroupWidths; +pub type LPOLEMENUGROUPWIDTHS = *mut tagOleMenuGroupWidths; +pub type HOLEMENU = HGLOBAL; +extern "C" { + pub static IID_IOleInPlaceFrame: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleInPlaceFrameVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceFrame, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetWindow: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceFrame, phwnd: *mut HWND) -> HRESULT, + >, + pub ContextSensitiveHelp: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceFrame, fEnterMode: BOOL) -> HRESULT, + >, + pub GetBorder: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceFrame, lprectBorder: LPRECT) -> HRESULT, + >, + pub RequestBorderSpace: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceFrame, + pborderwidths: LPCBORDERWIDTHS, + ) -> HRESULT, + >, + pub SetBorderSpace: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceFrame, + pborderwidths: LPCBORDERWIDTHS, + ) -> HRESULT, + >, + pub SetActiveObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceFrame, + pActiveObject: *mut IOleInPlaceActiveObject, + pszObjName: LPCOLESTR, + ) -> HRESULT, + >, + pub InsertMenus: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceFrame, + hmenuShared: HMENU, + lpMenuWidths: LPOLEMENUGROUPWIDTHS, + ) -> HRESULT, + >, + pub SetMenu: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceFrame, + hmenuShared: HMENU, + holemenu: HOLEMENU, + hwndActiveObject: HWND, + ) -> HRESULT, + >, + pub RemoveMenus: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceFrame, hmenuShared: HMENU) -> HRESULT, + >, + pub SetStatusText: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceFrame, pszStatusText: LPCOLESTR) -> HRESULT, + >, + pub EnableModeless: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceFrame, fEnable: BOOL) -> HRESULT, + >, + pub TranslateAcceleratorA: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceFrame, lpmsg: LPMSG, wID: WORD) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleInPlaceFrame { + pub lpVtbl: *mut IOleInPlaceFrameVtbl, +} +pub type LPOLEINPLACEOBJECT = *mut IOleInPlaceObject; +extern "C" { + pub static IID_IOleInPlaceObject: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleInPlaceObjectVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceObject, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetWindow: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceObject, phwnd: *mut HWND) -> HRESULT, + >, + pub ContextSensitiveHelp: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceObject, fEnterMode: BOOL) -> HRESULT, + >, + pub InPlaceDeactivate: + ::std::option::Option HRESULT>, + pub UIDeactivate: + ::std::option::Option HRESULT>, + pub SetObjectRects: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceObject, + lprcPosRect: LPCRECT, + lprcClipRect: LPCRECT, + ) -> HRESULT, + >, + pub ReactivateAndUndo: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleInPlaceObject { + pub lpVtbl: *mut IOleInPlaceObjectVtbl, +} +pub type LPOLEINPLACESITE = *mut IOleInPlaceSite; +extern "C" { + pub static IID_IOleInPlaceSite: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleInPlaceSiteVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceSite, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetWindow: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceSite, phwnd: *mut HWND) -> HRESULT, + >, + pub ContextSensitiveHelp: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceSite, fEnterMode: BOOL) -> HRESULT, + >, + pub CanInPlaceActivate: + ::std::option::Option HRESULT>, + pub OnInPlaceActivate: + ::std::option::Option HRESULT>, + pub OnUIActivate: + ::std::option::Option HRESULT>, + pub GetWindowContext: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IOleInPlaceSite, + ppFrame: *mut *mut IOleInPlaceFrame, + ppDoc: *mut *mut IOleInPlaceUIWindow, + lprcPosRect: LPRECT, + lprcClipRect: LPRECT, + lpFrameInfo: LPOLEINPLACEFRAMEINFO, + ) -> HRESULT, + >, + pub Scroll: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceSite, scrollExtant: SIZE) -> HRESULT, + >, + pub OnUIDeactivate: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceSite, fUndoable: BOOL) -> HRESULT, + >, + pub OnInPlaceDeactivate: + ::std::option::Option HRESULT>, + pub DiscardUndoState: + ::std::option::Option HRESULT>, + pub DeactivateAndUndo: + ::std::option::Option HRESULT>, + pub OnPosRectChange: ::std::option::Option< + unsafe extern "C" fn(This: *mut IOleInPlaceSite, lprcPosRect: LPCRECT) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IOleInPlaceSite { + pub lpVtbl: *mut IOleInPlaceSiteVtbl, +} +extern "C" { + pub static IID_IContinue: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IContinueVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IContinue, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub FContinue: ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IContinue { + pub lpVtbl: *mut IContinueVtbl, +} +pub type LPVIEWOBJECT = *mut IViewObject; +extern "C" { + pub static IID_IViewObject: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IViewObjectVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IViewObject, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Draw: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IViewObject, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: *mut ::std::os::raw::c_void, + ptd: *mut DVTARGETDEVICE, + hdcTargetDev: HDC, + hdcDraw: HDC, + lprcBounds: LPCRECTL, + lprcWBounds: LPCRECTL, + pfnContinue: ::std::option::Option BOOL>, + dwContinue: ULONG_PTR, + ) -> HRESULT, + >, + pub GetColorSet: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IViewObject, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: *mut ::std::os::raw::c_void, + ptd: *mut DVTARGETDEVICE, + hicTargetDev: HDC, + ppColorSet: *mut *mut LOGPALETTE, + ) -> HRESULT, + >, + pub Freeze: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IViewObject, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: *mut ::std::os::raw::c_void, + pdwFreeze: *mut DWORD, + ) -> HRESULT, + >, + pub Unfreeze: ::std::option::Option< + unsafe extern "C" fn(This: *mut IViewObject, dwFreeze: DWORD) -> HRESULT, + >, + pub SetAdvise: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IViewObject, + aspects: DWORD, + advf: DWORD, + pAdvSink: *mut IAdviseSink, + ) -> HRESULT, + >, + pub GetAdvise: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IViewObject, + pAspects: *mut DWORD, + pAdvf: *mut DWORD, + ppAdvSink: *mut *mut IAdviseSink, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IViewObject { + pub lpVtbl: *mut IViewObjectVtbl, +} +extern "C" { + pub fn IViewObject_RemoteDraw_Proxy( + This: *mut IViewObject, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: ULONG_PTR, + ptd: *mut DVTARGETDEVICE, + hdcTargetDev: HDC, + hdcDraw: HDC, + lprcBounds: LPCRECTL, + lprcWBounds: LPCRECTL, + pContinue: *mut IContinue, + ) -> HRESULT; +} +extern "C" { + pub fn IViewObject_RemoteDraw_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IViewObject_RemoteGetColorSet_Proxy( + This: *mut IViewObject, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: ULONG_PTR, + ptd: *mut DVTARGETDEVICE, + hicTargetDev: ULONG_PTR, + ppColorSet: *mut *mut LOGPALETTE, + ) -> HRESULT; +} +extern "C" { + pub fn IViewObject_RemoteGetColorSet_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IViewObject_RemoteFreeze_Proxy( + This: *mut IViewObject, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: ULONG_PTR, + pdwFreeze: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IViewObject_RemoteFreeze_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IViewObject_RemoteGetAdvise_Proxy( + This: *mut IViewObject, + pAspects: *mut DWORD, + pAdvf: *mut DWORD, + ppAdvSink: *mut *mut IAdviseSink, + ) -> HRESULT; +} +extern "C" { + pub fn IViewObject_RemoteGetAdvise_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +pub type LPVIEWOBJECT2 = *mut IViewObject2; +extern "C" { + pub static IID_IViewObject2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IViewObject2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IViewObject2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Draw: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IViewObject2, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: *mut ::std::os::raw::c_void, + ptd: *mut DVTARGETDEVICE, + hdcTargetDev: HDC, + hdcDraw: HDC, + lprcBounds: LPCRECTL, + lprcWBounds: LPCRECTL, + pfnContinue: ::std::option::Option BOOL>, + dwContinue: ULONG_PTR, + ) -> HRESULT, + >, + pub GetColorSet: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IViewObject2, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: *mut ::std::os::raw::c_void, + ptd: *mut DVTARGETDEVICE, + hicTargetDev: HDC, + ppColorSet: *mut *mut LOGPALETTE, + ) -> HRESULT, + >, + pub Freeze: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IViewObject2, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: *mut ::std::os::raw::c_void, + pdwFreeze: *mut DWORD, + ) -> HRESULT, + >, + pub Unfreeze: ::std::option::Option< + unsafe extern "C" fn(This: *mut IViewObject2, dwFreeze: DWORD) -> HRESULT, + >, + pub SetAdvise: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IViewObject2, + aspects: DWORD, + advf: DWORD, + pAdvSink: *mut IAdviseSink, + ) -> HRESULT, + >, + pub GetAdvise: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IViewObject2, + pAspects: *mut DWORD, + pAdvf: *mut DWORD, + ppAdvSink: *mut *mut IAdviseSink, + ) -> HRESULT, + >, + pub GetExtent: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IViewObject2, + dwDrawAspect: DWORD, + lindex: LONG, + ptd: *mut DVTARGETDEVICE, + lpsizel: LPSIZEL, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IViewObject2 { + pub lpVtbl: *mut IViewObject2Vtbl, +} +pub type LPDROPSOURCE = *mut IDropSource; +extern "C" { + pub static IID_IDropSource: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDropSourceVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDropSource, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub QueryContinueDrag: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDropSource, + fEscapePressed: BOOL, + grfKeyState: DWORD, + ) -> HRESULT, + >, + pub GiveFeedback: ::std::option::Option< + unsafe extern "C" fn(This: *mut IDropSource, dwEffect: DWORD) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDropSource { + pub lpVtbl: *mut IDropSourceVtbl, +} +pub type LPDROPTARGET = *mut IDropTarget; +extern "C" { + pub static IID_IDropTarget: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDropTargetVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDropTarget, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub DragEnter: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDropTarget, + pDataObj: *mut IDataObject, + grfKeyState: DWORD, + pt: POINTL, + pdwEffect: *mut DWORD, + ) -> HRESULT, + >, + pub DragOver: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDropTarget, + grfKeyState: DWORD, + pt: POINTL, + pdwEffect: *mut DWORD, + ) -> HRESULT, + >, + pub DragLeave: ::std::option::Option HRESULT>, + pub Drop: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDropTarget, + pDataObj: *mut IDataObject, + grfKeyState: DWORD, + pt: POINTL, + pdwEffect: *mut DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDropTarget { + pub lpVtbl: *mut IDropTargetVtbl, +} +extern "C" { + pub static IID_IDropSourceNotify: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDropSourceNotifyVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDropSourceNotify, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub DragEnterTarget: ::std::option::Option< + unsafe extern "C" fn(This: *mut IDropSourceNotify, hwndTarget: HWND) -> HRESULT, + >, + pub DragLeaveTarget: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDropSourceNotify { + pub lpVtbl: *mut IDropSourceNotifyVtbl, +} +extern "C" { + pub static IID_IEnterpriseDropTarget: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnterpriseDropTargetVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnterpriseDropTarget, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub SetDropSourceEnterpriseId: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnterpriseDropTarget, identity: LPCWSTR) -> HRESULT, + >, + pub IsEvaluatingEdpPolicy: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnterpriseDropTarget, value: *mut BOOL) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnterpriseDropTarget { + pub lpVtbl: *mut IEnterpriseDropTargetVtbl, +} +extern "C" { + pub static mut __MIDL_itf_oleidl_0000_0024_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_oleidl_0000_0024_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPENUMOLEVERB = *mut IEnumOLEVERB; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagOLEVERB { + pub lVerb: LONG, + pub lpszVerbName: LPOLESTR, + pub fuFlags: DWORD, + pub grfAttribs: DWORD, +} +pub type OLEVERB = tagOLEVERB; +pub type LPOLEVERB = *mut tagOLEVERB; +pub const tagOLEVERBATTRIB_OLEVERBATTRIB_NEVERDIRTIES: tagOLEVERBATTRIB = 1; +pub const tagOLEVERBATTRIB_OLEVERBATTRIB_ONCONTAINERMENU: tagOLEVERBATTRIB = 2; +pub type tagOLEVERBATTRIB = ::std::os::raw::c_int; +pub use self::tagOLEVERBATTRIB as OLEVERBATTRIB; +extern "C" { + pub static IID_IEnumOLEVERB: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumOLEVERBVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumOLEVERB, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Next: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEnumOLEVERB, + celt: ULONG, + rgelt: LPOLEVERB, + pceltFetched: *mut ULONG, + ) -> HRESULT, + >, + pub Skip: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumOLEVERB, celt: ULONG) -> HRESULT, + >, + pub Reset: ::std::option::Option HRESULT>, + pub Clone: ::std::option::Option< + unsafe extern "C" fn(This: *mut IEnumOLEVERB, ppenum: *mut *mut IEnumOLEVERB) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEnumOLEVERB { + pub lpVtbl: *mut IEnumOLEVERBVtbl, +} +extern "C" { + pub fn IEnumOLEVERB_RemoteNext_Proxy( + This: *mut IEnumOLEVERB, + celt: ULONG, + rgelt: LPOLEVERB, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumOLEVERB_RemoteNext_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_oleidl_0000_0025_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_oleidl_0000_0025_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub fn HACCEL_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut HACCEL, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn HACCEL_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HACCEL, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HACCEL_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HACCEL, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HACCEL_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HACCEL); +} +extern "C" { + pub fn HGLOBAL_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut HGLOBAL, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn HGLOBAL_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HGLOBAL, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HGLOBAL_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HGLOBAL, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HGLOBAL_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HGLOBAL); +} +extern "C" { + pub fn HMENU_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut HMENU, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn HMENU_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HMENU, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HMENU_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HMENU, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HMENU_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HMENU); +} +extern "C" { + pub fn HWND_UserSize( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut HWND, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn HWND_UserMarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HWND, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HWND_UserUnmarshal( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HWND, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HWND_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HWND); +} +extern "C" { + pub fn HACCEL_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut HACCEL, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn HACCEL_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HACCEL, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HACCEL_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HACCEL, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HACCEL_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HACCEL); +} +extern "C" { + pub fn HGLOBAL_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut HGLOBAL, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn HGLOBAL_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HGLOBAL, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HGLOBAL_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HGLOBAL, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HGLOBAL_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HGLOBAL); +} +extern "C" { + pub fn HMENU_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut HMENU, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn HMENU_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HMENU, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HMENU_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HMENU, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HMENU_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HMENU); +} +extern "C" { + pub fn HWND_UserSize64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: ::std::os::raw::c_ulong, + arg3: *mut HWND, + ) -> ::std::os::raw::c_ulong; +} +extern "C" { + pub fn HWND_UserMarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HWND, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HWND_UserUnmarshal64( + arg1: *mut ::std::os::raw::c_ulong, + arg2: *mut ::std::os::raw::c_uchar, + arg3: *mut HWND, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn HWND_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HWND); +} +extern "C" { + pub fn IOleCache2_UpdateCache_Proxy( + This: *mut IOleCache2, + pDataObject: LPDATAOBJECT, + grfUpdf: DWORD, + pReserved: LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn IOleCache2_UpdateCache_Stub( + This: *mut IOleCache2, + pDataObject: LPDATAOBJECT, + grfUpdf: DWORD, + pReserved: LONG_PTR, + ) -> HRESULT; +} +extern "C" { + pub fn IOleInPlaceActiveObject_TranslateAccelerator_Proxy( + This: *mut IOleInPlaceActiveObject, + lpmsg: LPMSG, + ) -> HRESULT; +} +extern "C" { + pub fn IOleInPlaceActiveObject_TranslateAccelerator_Stub( + This: *mut IOleInPlaceActiveObject, + ) -> HRESULT; +} +extern "C" { + pub fn IOleInPlaceActiveObject_ResizeBorder_Proxy( + This: *mut IOleInPlaceActiveObject, + prcBorder: LPCRECT, + pUIWindow: *mut IOleInPlaceUIWindow, + fFrameWindow: BOOL, + ) -> HRESULT; +} +extern "C" { + pub fn IOleInPlaceActiveObject_ResizeBorder_Stub( + This: *mut IOleInPlaceActiveObject, + prcBorder: LPCRECT, + riid: *const IID, + pUIWindow: *mut IOleInPlaceUIWindow, + fFrameWindow: BOOL, + ) -> HRESULT; +} +extern "C" { + pub fn IViewObject_Draw_Proxy( + This: *mut IViewObject, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: *mut ::std::os::raw::c_void, + ptd: *mut DVTARGETDEVICE, + hdcTargetDev: HDC, + hdcDraw: HDC, + lprcBounds: LPCRECTL, + lprcWBounds: LPCRECTL, + pfnContinue: ::std::option::Option BOOL>, + dwContinue: ULONG_PTR, + ) -> HRESULT; +} +extern "C" { + pub fn IViewObject_Draw_Stub( + This: *mut IViewObject, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: ULONG_PTR, + ptd: *mut DVTARGETDEVICE, + hdcTargetDev: HDC, + hdcDraw: HDC, + lprcBounds: LPCRECTL, + lprcWBounds: LPCRECTL, + pContinue: *mut IContinue, + ) -> HRESULT; +} +extern "C" { + pub fn IViewObject_GetColorSet_Proxy( + This: *mut IViewObject, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: *mut ::std::os::raw::c_void, + ptd: *mut DVTARGETDEVICE, + hicTargetDev: HDC, + ppColorSet: *mut *mut LOGPALETTE, + ) -> HRESULT; +} +extern "C" { + pub fn IViewObject_GetColorSet_Stub( + This: *mut IViewObject, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: ULONG_PTR, + ptd: *mut DVTARGETDEVICE, + hicTargetDev: ULONG_PTR, + ppColorSet: *mut *mut LOGPALETTE, + ) -> HRESULT; +} +extern "C" { + pub fn IViewObject_Freeze_Proxy( + This: *mut IViewObject, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: *mut ::std::os::raw::c_void, + pdwFreeze: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IViewObject_Freeze_Stub( + This: *mut IViewObject, + dwDrawAspect: DWORD, + lindex: LONG, + pvAspect: ULONG_PTR, + pdwFreeze: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IViewObject_GetAdvise_Proxy( + This: *mut IViewObject, + pAspects: *mut DWORD, + pAdvf: *mut DWORD, + ppAdvSink: *mut *mut IAdviseSink, + ) -> HRESULT; +} +extern "C" { + pub fn IViewObject_GetAdvise_Stub( + This: *mut IViewObject, + pAspects: *mut DWORD, + pAdvf: *mut DWORD, + ppAdvSink: *mut *mut IAdviseSink, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumOLEVERB_Next_Proxy( + This: *mut IEnumOLEVERB, + celt: ULONG, + rgelt: LPOLEVERB, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn IEnumOLEVERB_Next_Stub( + This: *mut IEnumOLEVERB, + celt: ULONG, + rgelt: LPOLEVERB, + pceltFetched: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub static mut __MIDL_itf_servprov_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_servprov_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPSERVICEPROVIDER = *mut IServiceProvider; +extern "C" { + pub static IID_IServiceProvider: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IServiceProviderVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IServiceProvider, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub QueryService: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IServiceProvider, + guidService: *const GUID, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IServiceProvider { + pub lpVtbl: *mut IServiceProviderVtbl, +} +extern "C" { + pub fn IServiceProvider_RemoteQueryService_Proxy( + This: *mut IServiceProvider, + guidService: *const GUID, + riid: *const IID, + ppvObject: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn IServiceProvider_RemoteQueryService_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_servprov_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_servprov_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub fn IServiceProvider_QueryService_Proxy( + This: *mut IServiceProvider, + guidService: *const GUID, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn IServiceProvider_QueryService_Stub( + This: *mut IServiceProvider, + guidService: *const GUID, + riid: *const IID, + ppvObject: *mut *mut IUnknown, + ) -> HRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DOMDocument { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DOMFreeThreadedDocument { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct XMLHTTPRequest { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct XMLDSOControl { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct XMLDocument { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _xml_error { + pub _nLine: ::std::os::raw::c_uint, + pub _pchBuf: BSTR, + pub _cchBuf: ::std::os::raw::c_uint, + pub _ich: ::std::os::raw::c_uint, + pub _pszFound: BSTR, + pub _pszExpected: BSTR, + pub _reserved1: DWORD, + pub _reserved2: DWORD, +} +pub type XML_ERROR = _xml_error; +extern "C" { + pub static mut __MIDL_itf_msxml_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_msxml_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub const tagDOMNodeType_NODE_INVALID: tagDOMNodeType = 0; +pub const tagDOMNodeType_NODE_ELEMENT: tagDOMNodeType = 1; +pub const tagDOMNodeType_NODE_ATTRIBUTE: tagDOMNodeType = 2; +pub const tagDOMNodeType_NODE_TEXT: tagDOMNodeType = 3; +pub const tagDOMNodeType_NODE_CDATA_SECTION: tagDOMNodeType = 4; +pub const tagDOMNodeType_NODE_ENTITY_REFERENCE: tagDOMNodeType = 5; +pub const tagDOMNodeType_NODE_ENTITY: tagDOMNodeType = 6; +pub const tagDOMNodeType_NODE_PROCESSING_INSTRUCTION: tagDOMNodeType = 7; +pub const tagDOMNodeType_NODE_COMMENT: tagDOMNodeType = 8; +pub const tagDOMNodeType_NODE_DOCUMENT: tagDOMNodeType = 9; +pub const tagDOMNodeType_NODE_DOCUMENT_TYPE: tagDOMNodeType = 10; +pub const tagDOMNodeType_NODE_DOCUMENT_FRAGMENT: tagDOMNodeType = 11; +pub const tagDOMNodeType_NODE_NOTATION: tagDOMNodeType = 12; +pub type tagDOMNodeType = ::std::os::raw::c_int; +pub use self::tagDOMNodeType as DOMNodeType; +pub const tagXMLEMEM_TYPE_XMLELEMTYPE_ELEMENT: tagXMLEMEM_TYPE = 0; +pub const tagXMLEMEM_TYPE_XMLELEMTYPE_TEXT: tagXMLEMEM_TYPE = 1; +pub const tagXMLEMEM_TYPE_XMLELEMTYPE_COMMENT: tagXMLEMEM_TYPE = 2; +pub const tagXMLEMEM_TYPE_XMLELEMTYPE_DOCUMENT: tagXMLEMEM_TYPE = 3; +pub const tagXMLEMEM_TYPE_XMLELEMTYPE_DTD: tagXMLEMEM_TYPE = 4; +pub const tagXMLEMEM_TYPE_XMLELEMTYPE_PI: tagXMLEMEM_TYPE = 5; +pub const tagXMLEMEM_TYPE_XMLELEMTYPE_OTHER: tagXMLEMEM_TYPE = 6; +pub type tagXMLEMEM_TYPE = ::std::os::raw::c_int; +pub use self::tagXMLEMEM_TYPE as XMLELEM_TYPE; +extern "C" { + pub static LIBID_MSXML: IID; +} +extern "C" { + pub static IID_IXMLDOMImplementation: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMImplementationVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMImplementation, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMImplementation, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMImplementation, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMImplementation, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMImplementation, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub hasFeature: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMImplementation, + feature: BSTR, + version: BSTR, + hasFeature: *mut VARIANT_BOOL, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMImplementation { + pub lpVtbl: *mut IXMLDOMImplementationVtbl, +} +extern "C" { + pub static IID_IXMLDOMNode: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMNodeVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, value: *mut VARIANT) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, type_: *mut DOMNodeType) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, parent: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, firstChild: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, lastChild: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, nextSibling: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, hasChild: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, nodeType: *mut BSTR) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, text: *mut BSTR) -> HRESULT, + >, + pub put_text: + ::std::option::Option HRESULT>, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, isSpecified: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, typedValue: *mut VARIANT) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, typedValue: VARIANT) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, dataTypeName: *mut VARIANT) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, dataTypeName: BSTR) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, xmlString: *mut BSTR) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, isParsed: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, namespaceURI: *mut BSTR) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, prefixString: *mut BSTR) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNode, nameString: *mut BSTR) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNode, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMNode { + pub lpVtbl: *mut IXMLDOMNodeVtbl, +} +extern "C" { + pub static IID_IXMLDOMDocumentFragment: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMDocumentFragmentVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, value: *mut VARIANT) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + type_: *mut DOMNodeType, + ) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + parent: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + firstChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + lastChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + nextSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + hasChild: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, nodeType: *mut BSTR) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, text: *mut BSTR) -> HRESULT, + >, + pub put_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, text: BSTR) -> HRESULT, + >, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + isSpecified: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + typedValue: *mut VARIANT, + ) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, typedValue: VARIANT) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + dataTypeName: *mut VARIANT, + ) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, dataTypeName: BSTR) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, xmlString: *mut BSTR) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + isParsed: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + namespaceURI: *mut BSTR, + ) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + prefixString: *mut BSTR, + ) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, nameString: *mut BSTR) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentFragment, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMDocumentFragment { + pub lpVtbl: *mut IXMLDOMDocumentFragmentVtbl, +} +extern "C" { + pub static IID_IXMLDOMDocument: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMDocumentVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, value: *mut VARIANT) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, type_: *mut DOMNodeType) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, parent: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + firstChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + lastChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + nextSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, hasChild: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, nodeType: *mut BSTR) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, text: *mut BSTR) -> HRESULT, + >, + pub put_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, text: BSTR) -> HRESULT, + >, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, isSpecified: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, typedValue: *mut VARIANT) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, typedValue: VARIANT) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, dataTypeName: *mut VARIANT) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, dataTypeName: BSTR) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, xmlString: *mut BSTR) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, isParsed: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, namespaceURI: *mut BSTR) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, prefixString: *mut BSTR) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, nameString: *mut BSTR) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, + pub get_doctype: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + documentType: *mut *mut IXMLDOMDocumentType, + ) -> HRESULT, + >, + pub get_implementation: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + impl_: *mut *mut IXMLDOMImplementation, + ) -> HRESULT, + >, + pub get_documentElement: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + DOMElement: *mut *mut IXMLDOMElement, + ) -> HRESULT, + >, + pub putref_documentElement: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + DOMElement: *mut IXMLDOMElement, + ) -> HRESULT, + >, + pub createElement: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + tagName: BSTR, + element: *mut *mut IXMLDOMElement, + ) -> HRESULT, + >, + pub createDocumentFragment: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + docFrag: *mut *mut IXMLDOMDocumentFragment, + ) -> HRESULT, + >, + pub createTextNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + data: BSTR, + text: *mut *mut IXMLDOMText, + ) -> HRESULT, + >, + pub createComment: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + data: BSTR, + comment: *mut *mut IXMLDOMComment, + ) -> HRESULT, + >, + pub createCDATASection: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + data: BSTR, + cdata: *mut *mut IXMLDOMCDATASection, + ) -> HRESULT, + >, + pub createProcessingInstruction: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + target: BSTR, + data: BSTR, + pi: *mut *mut IXMLDOMProcessingInstruction, + ) -> HRESULT, + >, + pub createAttribute: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + name: BSTR, + attribute: *mut *mut IXMLDOMAttribute, + ) -> HRESULT, + >, + pub createEntityReference: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + name: BSTR, + entityRef: *mut *mut IXMLDOMEntityReference, + ) -> HRESULT, + >, + pub getElementsByTagName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + tagName: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub createNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + Type: VARIANT, + name: BSTR, + namespaceURI: BSTR, + node: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub nodeFromID: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + idString: BSTR, + node: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub load: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + xmlSource: VARIANT, + isSuccessful: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_readyState: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + value: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub get_parseError: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + errorObj: *mut *mut IXMLDOMParseError, + ) -> HRESULT, + >, + pub get_url: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, urlString: *mut BSTR) -> HRESULT, + >, + pub get_async: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, isAsync: *mut VARIANT_BOOL) -> HRESULT, + >, + pub put_async: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, isAsync: VARIANT_BOOL) -> HRESULT, + >, + pub abort: ::std::option::Option HRESULT>, + pub loadXML: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + bstrXML: BSTR, + isSuccessful: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub save: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, destination: VARIANT) -> HRESULT, + >, + pub get_validateOnParse: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + isValidating: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub put_validateOnParse: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, isValidating: VARIANT_BOOL) -> HRESULT, + >, + pub get_resolveExternals: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, isResolving: *mut VARIANT_BOOL) -> HRESULT, + >, + pub put_resolveExternals: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, isResolving: VARIANT_BOOL) -> HRESULT, + >, + pub get_preserveWhiteSpace: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocument, + isPreserving: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub put_preserveWhiteSpace: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, isPreserving: VARIANT_BOOL) -> HRESULT, + >, + pub put_onreadystatechange: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, readystatechangeSink: VARIANT) -> HRESULT, + >, + pub put_ondataavailable: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, ondataavailableSink: VARIANT) -> HRESULT, + >, + pub put_ontransformnode: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocument, ontransformnodeSink: VARIANT) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMDocument { + pub lpVtbl: *mut IXMLDOMDocumentVtbl, +} +extern "C" { + pub static IID_IXMLDOMNodeList: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMNodeListVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNodeList, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNodeList, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNodeList, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNodeList, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNodeList, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_item: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNodeList, + index: ::std::os::raw::c_long, + listItem: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_length: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNodeList, + listLength: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub nextNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNodeList, + nextItem: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub reset: ::std::option::Option HRESULT>, + pub get__newEnum: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNodeList, ppUnk: *mut *mut IUnknown) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMNodeList { + pub lpVtbl: *mut IXMLDOMNodeListVtbl, +} +extern "C" { + pub static IID_IXMLDOMNamedNodeMap: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMNamedNodeMapVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNamedNodeMap, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNamedNodeMap, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNamedNodeMap, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNamedNodeMap, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNamedNodeMap, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub getNamedItem: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNamedNodeMap, + name: BSTR, + namedItem: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub setNamedItem: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNamedNodeMap, + newItem: *mut IXMLDOMNode, + nameItem: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeNamedItem: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNamedNodeMap, + name: BSTR, + namedItem: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_item: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNamedNodeMap, + index: ::std::os::raw::c_long, + listItem: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_length: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNamedNodeMap, + listLength: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub getQualifiedItem: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNamedNodeMap, + baseName: BSTR, + namespaceURI: BSTR, + qualifiedItem: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeQualifiedItem: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNamedNodeMap, + baseName: BSTR, + namespaceURI: BSTR, + qualifiedItem: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub nextNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNamedNodeMap, + nextItem: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub reset: + ::std::option::Option HRESULT>, + pub get__newEnum: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNamedNodeMap, ppUnk: *mut *mut IUnknown) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMNamedNodeMap { + pub lpVtbl: *mut IXMLDOMNamedNodeMapVtbl, +} +extern "C" { + pub static IID_IXMLDOMCharacterData: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMCharacterDataVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, value: *mut VARIANT) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, type_: *mut DOMNodeType) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + parent: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + firstChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + lastChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + nextSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + hasChild: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, nodeType: *mut BSTR) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, text: *mut BSTR) -> HRESULT, + >, + pub put_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, text: BSTR) -> HRESULT, + >, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + isSpecified: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, typedValue: *mut VARIANT) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, typedValue: VARIANT) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + dataTypeName: *mut VARIANT, + ) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, dataTypeName: BSTR) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, xmlString: *mut BSTR) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + isParsed: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, namespaceURI: *mut BSTR) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, prefixString: *mut BSTR) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, nameString: *mut BSTR) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, + pub get_data: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, data: *mut BSTR) -> HRESULT, + >, + pub put_data: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, data: BSTR) -> HRESULT, + >, + pub get_length: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + dataLength: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub substringData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + offset: ::std::os::raw::c_long, + count: ::std::os::raw::c_long, + data: *mut BSTR, + ) -> HRESULT, + >, + pub appendData: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, data: BSTR) -> HRESULT, + >, + pub insertData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + offset: ::std::os::raw::c_long, + data: BSTR, + ) -> HRESULT, + >, + pub deleteData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + offset: ::std::os::raw::c_long, + count: ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub replaceData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCharacterData, + offset: ::std::os::raw::c_long, + count: ::std::os::raw::c_long, + data: BSTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMCharacterData { + pub lpVtbl: *mut IXMLDOMCharacterDataVtbl, +} +extern "C" { + pub static IID_IXMLDOMAttribute: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMAttributeVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, value: *mut VARIANT) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, type_: *mut DOMNodeType) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, parent: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + firstChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + lastChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + nextSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, hasChild: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, nodeType: *mut BSTR) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, text: *mut BSTR) -> HRESULT, + >, + pub put_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, text: BSTR) -> HRESULT, + >, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + isSpecified: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, typedValue: *mut VARIANT) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, typedValue: VARIANT) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, dataTypeName: *mut VARIANT) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, dataTypeName: BSTR) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, xmlString: *mut BSTR) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, isParsed: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, namespaceURI: *mut BSTR) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, prefixString: *mut BSTR) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, nameString: *mut BSTR) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMAttribute, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, + pub get_name: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, attributeName: *mut BSTR) -> HRESULT, + >, + pub get_value: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, attributeValue: *mut VARIANT) -> HRESULT, + >, + pub put_value: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMAttribute, attributeValue: VARIANT) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMAttribute { + pub lpVtbl: *mut IXMLDOMAttributeVtbl, +} +extern "C" { + pub static IID_IXMLDOMElement: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMElementVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, value: *mut VARIANT) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, type_: *mut DOMNodeType) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, parent: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + firstChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + lastChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + nextSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, hasChild: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, nodeType: *mut BSTR) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, text: *mut BSTR) -> HRESULT, + >, + pub put_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, text: BSTR) -> HRESULT, + >, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, isSpecified: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, typedValue: *mut VARIANT) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, typedValue: VARIANT) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, dataTypeName: *mut VARIANT) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, dataTypeName: BSTR) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, xmlString: *mut BSTR) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, isParsed: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, namespaceURI: *mut BSTR) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, prefixString: *mut BSTR) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, nameString: *mut BSTR) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, + pub get_tagName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, tagName: *mut BSTR) -> HRESULT, + >, + pub getAttribute: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, name: BSTR, value: *mut VARIANT) -> HRESULT, + >, + pub setAttribute: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, name: BSTR, value: VARIANT) -> HRESULT, + >, + pub removeAttribute: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMElement, name: BSTR) -> HRESULT, + >, + pub getAttributeNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + name: BSTR, + attributeNode: *mut *mut IXMLDOMAttribute, + ) -> HRESULT, + >, + pub setAttributeNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + DOMAttribute: *mut IXMLDOMAttribute, + attributeNode: *mut *mut IXMLDOMAttribute, + ) -> HRESULT, + >, + pub removeAttributeNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + DOMAttribute: *mut IXMLDOMAttribute, + attributeNode: *mut *mut IXMLDOMAttribute, + ) -> HRESULT, + >, + pub getElementsByTagName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMElement, + tagName: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub normalize: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMElement { + pub lpVtbl: *mut IXMLDOMElementVtbl, +} +extern "C" { + pub static IID_IXMLDOMText: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMTextVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, value: *mut VARIANT) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, type_: *mut DOMNodeType) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, parent: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, firstChild: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, lastChild: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, nextSibling: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, hasChild: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, nodeType: *mut BSTR) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, text: *mut BSTR) -> HRESULT, + >, + pub put_text: + ::std::option::Option HRESULT>, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, isSpecified: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, typedValue: *mut VARIANT) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, typedValue: VARIANT) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, dataTypeName: *mut VARIANT) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, dataTypeName: BSTR) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, xmlString: *mut BSTR) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, isParsed: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, namespaceURI: *mut BSTR) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, prefixString: *mut BSTR) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, nameString: *mut BSTR) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, + pub get_data: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMText, data: *mut BSTR) -> HRESULT, + >, + pub put_data: + ::std::option::Option HRESULT>, + pub get_length: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + dataLength: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub substringData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + offset: ::std::os::raw::c_long, + count: ::std::os::raw::c_long, + data: *mut BSTR, + ) -> HRESULT, + >, + pub appendData: + ::std::option::Option HRESULT>, + pub insertData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + offset: ::std::os::raw::c_long, + data: BSTR, + ) -> HRESULT, + >, + pub deleteData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + offset: ::std::os::raw::c_long, + count: ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub replaceData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + offset: ::std::os::raw::c_long, + count: ::std::os::raw::c_long, + data: BSTR, + ) -> HRESULT, + >, + pub splitText: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMText, + offset: ::std::os::raw::c_long, + rightHandTextNode: *mut *mut IXMLDOMText, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMText { + pub lpVtbl: *mut IXMLDOMTextVtbl, +} +extern "C" { + pub static IID_IXMLDOMComment: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMCommentVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, value: *mut VARIANT) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, type_: *mut DOMNodeType) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, parent: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + firstChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + lastChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + nextSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, hasChild: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, nodeType: *mut BSTR) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, text: *mut BSTR) -> HRESULT, + >, + pub put_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, text: BSTR) -> HRESULT, + >, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, isSpecified: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, typedValue: *mut VARIANT) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, typedValue: VARIANT) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, dataTypeName: *mut VARIANT) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, dataTypeName: BSTR) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, xmlString: *mut BSTR) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, isParsed: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, namespaceURI: *mut BSTR) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, prefixString: *mut BSTR) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, nameString: *mut BSTR) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, + pub get_data: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, data: *mut BSTR) -> HRESULT, + >, + pub put_data: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, data: BSTR) -> HRESULT, + >, + pub get_length: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + dataLength: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub substringData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + offset: ::std::os::raw::c_long, + count: ::std::os::raw::c_long, + data: *mut BSTR, + ) -> HRESULT, + >, + pub appendData: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMComment, data: BSTR) -> HRESULT, + >, + pub insertData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + offset: ::std::os::raw::c_long, + data: BSTR, + ) -> HRESULT, + >, + pub deleteData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + offset: ::std::os::raw::c_long, + count: ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub replaceData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMComment, + offset: ::std::os::raw::c_long, + count: ::std::os::raw::c_long, + data: BSTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMComment { + pub lpVtbl: *mut IXMLDOMCommentVtbl, +} +extern "C" { + pub static IID_IXMLDOMProcessingInstruction: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMProcessingInstructionVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction) -> ULONG, + >, + pub Release: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction) -> ULONG, + >, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + pctinfo: *mut UINT, + ) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + value: *mut VARIANT, + ) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + type_: *mut DOMNodeType, + ) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + parent: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + firstChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + lastChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + nextSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + hasChild: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + nodeType: *mut BSTR, + ) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction, text: *mut BSTR) -> HRESULT, + >, + pub put_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction, text: BSTR) -> HRESULT, + >, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + isSpecified: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + typedValue: *mut VARIANT, + ) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + typedValue: VARIANT, + ) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + dataTypeName: *mut VARIANT, + ) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + dataTypeName: BSTR, + ) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + isParsed: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + namespaceURI: *mut BSTR, + ) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + prefixString: *mut BSTR, + ) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + nameString: *mut BSTR, + ) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMProcessingInstruction, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, + pub get_target: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction, name: *mut BSTR) -> HRESULT, + >, + pub get_data: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction, value: *mut BSTR) -> HRESULT, + >, + pub put_data: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction, value: BSTR) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMProcessingInstruction { + pub lpVtbl: *mut IXMLDOMProcessingInstructionVtbl, +} +extern "C" { + pub static IID_IXMLDOMCDATASection: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMCDATASectionVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, value: *mut VARIANT) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, type_: *mut DOMNodeType) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + parent: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + firstChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + lastChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + nextSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + hasChild: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, nodeType: *mut BSTR) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, text: *mut BSTR) -> HRESULT, + >, + pub put_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, text: BSTR) -> HRESULT, + >, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + isSpecified: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, typedValue: *mut VARIANT) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, typedValue: VARIANT) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, dataTypeName: *mut VARIANT) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, dataTypeName: BSTR) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, xmlString: *mut BSTR) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + isParsed: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, namespaceURI: *mut BSTR) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, prefixString: *mut BSTR) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, nameString: *mut BSTR) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, + pub get_data: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, data: *mut BSTR) -> HRESULT, + >, + pub put_data: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, data: BSTR) -> HRESULT, + >, + pub get_length: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + dataLength: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub substringData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + offset: ::std::os::raw::c_long, + count: ::std::os::raw::c_long, + data: *mut BSTR, + ) -> HRESULT, + >, + pub appendData: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, data: BSTR) -> HRESULT, + >, + pub insertData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + offset: ::std::os::raw::c_long, + data: BSTR, + ) -> HRESULT, + >, + pub deleteData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + offset: ::std::os::raw::c_long, + count: ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub replaceData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + offset: ::std::os::raw::c_long, + count: ::std::os::raw::c_long, + data: BSTR, + ) -> HRESULT, + >, + pub splitText: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMCDATASection, + offset: ::std::os::raw::c_long, + rightHandTextNode: *mut *mut IXMLDOMText, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMCDATASection { + pub lpVtbl: *mut IXMLDOMCDATASectionVtbl, +} +extern "C" { + pub static IID_IXMLDOMDocumentType: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMDocumentTypeVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, value: *mut VARIANT) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, type_: *mut DOMNodeType) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + parent: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + firstChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + lastChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + nextSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + hasChild: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, nodeType: *mut BSTR) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, text: *mut BSTR) -> HRESULT, + >, + pub put_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, text: BSTR) -> HRESULT, + >, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + isSpecified: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, typedValue: *mut VARIANT) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, typedValue: VARIANT) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, dataTypeName: *mut VARIANT) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, dataTypeName: BSTR) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, xmlString: *mut BSTR) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + isParsed: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, namespaceURI: *mut BSTR) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, prefixString: *mut BSTR) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, nameString: *mut BSTR) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, + pub get_name: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, rootName: *mut BSTR) -> HRESULT, + >, + pub get_entities: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + entityMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub get_notations: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMDocumentType, + notationMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMDocumentType { + pub lpVtbl: *mut IXMLDOMDocumentTypeVtbl, +} +extern "C" { + pub static IID_IXMLDOMNotation: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMNotationVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, value: *mut VARIANT) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, type_: *mut DOMNodeType) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, parent: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + firstChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + lastChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + nextSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, hasChild: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, nodeType: *mut BSTR) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, text: *mut BSTR) -> HRESULT, + >, + pub put_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, text: BSTR) -> HRESULT, + >, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, isSpecified: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, typedValue: *mut VARIANT) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, typedValue: VARIANT) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, dataTypeName: *mut VARIANT) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, dataTypeName: BSTR) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, xmlString: *mut BSTR) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, isParsed: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, namespaceURI: *mut BSTR) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, prefixString: *mut BSTR) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, nameString: *mut BSTR) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMNotation, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, + pub get_publicId: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, publicID: *mut VARIANT) -> HRESULT, + >, + pub get_systemId: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMNotation, systemID: *mut VARIANT) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMNotation { + pub lpVtbl: *mut IXMLDOMNotationVtbl, +} +extern "C" { + pub static IID_IXMLDOMEntity: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMEntityVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, value: *mut VARIANT) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, type_: *mut DOMNodeType) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, parent: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + firstChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, lastChild: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + nextSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, hasChild: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, nodeType: *mut BSTR) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, text: *mut BSTR) -> HRESULT, + >, + pub put_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, text: BSTR) -> HRESULT, + >, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, isSpecified: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, typedValue: *mut VARIANT) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, typedValue: VARIANT) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, dataTypeName: *mut VARIANT) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, dataTypeName: BSTR) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, xmlString: *mut BSTR) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, isParsed: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, namespaceURI: *mut BSTR) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, prefixString: *mut BSTR) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, nameString: *mut BSTR) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntity, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, + pub get_publicId: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, publicID: *mut VARIANT) -> HRESULT, + >, + pub get_systemId: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, systemID: *mut VARIANT) -> HRESULT, + >, + pub get_notationName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntity, name: *mut BSTR) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMEntity { + pub lpVtbl: *mut IXMLDOMEntityVtbl, +} +extern "C" { + pub static IID_IXMLDOMEntityReference: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMEntityReferenceVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, value: *mut VARIANT) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, type_: *mut DOMNodeType) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + parent: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + firstChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + lastChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + nextSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + hasChild: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, nodeType: *mut BSTR) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, text: *mut BSTR) -> HRESULT, + >, + pub put_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, text: BSTR) -> HRESULT, + >, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + isSpecified: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + typedValue: *mut VARIANT, + ) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, typedValue: VARIANT) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + dataTypeName: *mut VARIANT, + ) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, dataTypeName: BSTR) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, xmlString: *mut BSTR) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + isParsed: *mut VARIANT_BOOL, + ) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, namespaceURI: *mut BSTR) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, prefixString: *mut BSTR) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, nameString: *mut BSTR) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMEntityReference, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMEntityReference { + pub lpVtbl: *mut IXMLDOMEntityReferenceVtbl, +} +extern "C" { + pub static IID_IXMLDOMParseError: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMParseErrorVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMParseError, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMParseError, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMParseError, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMParseError, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMParseError, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_errorCode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMParseError, + errorCode: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub get_url: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMParseError, urlString: *mut BSTR) -> HRESULT, + >, + pub get_reason: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMParseError, reasonString: *mut BSTR) -> HRESULT, + >, + pub get_srcText: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDOMParseError, sourceString: *mut BSTR) -> HRESULT, + >, + pub get_line: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMParseError, + lineNumber: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub get_linepos: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMParseError, + linePosition: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub get_filepos: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDOMParseError, + filePosition: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDOMParseError { + pub lpVtbl: *mut IXMLDOMParseErrorVtbl, +} +extern "C" { + pub static IID_IXTLRuntime: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXTLRuntimeVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_nodeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, name: *mut BSTR) -> HRESULT, + >, + pub get_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, value: *mut VARIANT) -> HRESULT, + >, + pub put_nodeValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, value: VARIANT) -> HRESULT, + >, + pub get_nodeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, type_: *mut DOMNodeType) -> HRESULT, + >, + pub get_parentNode: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, parent: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_childNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + childList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub get_firstChild: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, firstChild: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_lastChild: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, lastChild: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_previousSibling: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + previousSibling: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nextSibling: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, nextSibling: *mut *mut IXMLDOMNode) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + attributeMap: *mut *mut IXMLDOMNamedNodeMap, + ) -> HRESULT, + >, + pub insertBefore: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + newChild: *mut IXMLDOMNode, + refChild: VARIANT, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub replaceChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + newChild: *mut IXMLDOMNode, + oldChild: *mut IXMLDOMNode, + outOldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + childNode: *mut IXMLDOMNode, + oldChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub appendChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + newChild: *mut IXMLDOMNode, + outNewChild: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub hasChildNodes: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, hasChild: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_ownerDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + XMLDOMDocument: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub cloneNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + deep: VARIANT_BOOL, + cloneRoot: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypeString: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, nodeType: *mut BSTR) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, text: *mut BSTR) -> HRESULT, + >, + pub put_text: + ::std::option::Option HRESULT>, + pub get_specified: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, isSpecified: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_definition: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + definitionNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, typedValue: *mut VARIANT) -> HRESULT, + >, + pub put_nodeTypedValue: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, typedValue: VARIANT) -> HRESULT, + >, + pub get_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, dataTypeName: *mut VARIANT) -> HRESULT, + >, + pub put_dataType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, dataTypeName: BSTR) -> HRESULT, + >, + pub get_xml: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, xmlString: *mut BSTR) -> HRESULT, + >, + pub transformNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + stylesheet: *mut IXMLDOMNode, + xmlString: *mut BSTR, + ) -> HRESULT, + >, + pub selectNodes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + queryString: BSTR, + resultList: *mut *mut IXMLDOMNodeList, + ) -> HRESULT, + >, + pub selectSingleNode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + queryString: BSTR, + resultNode: *mut *mut IXMLDOMNode, + ) -> HRESULT, + >, + pub get_parsed: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, isParsed: *mut VARIANT_BOOL) -> HRESULT, + >, + pub get_namespaceURI: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, namespaceURI: *mut BSTR) -> HRESULT, + >, + pub get_prefix: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, prefixString: *mut BSTR) -> HRESULT, + >, + pub get_baseName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXTLRuntime, nameString: *mut BSTR) -> HRESULT, + >, + pub transformNodeToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + stylesheet: *mut IXMLDOMNode, + outputObject: VARIANT, + ) -> HRESULT, + >, + pub uniqueID: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + pNode: *mut IXMLDOMNode, + pID: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub depth: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + pNode: *mut IXMLDOMNode, + pDepth: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub childNumber: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + pNode: *mut IXMLDOMNode, + pNumber: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub ancestorChildNumber: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + bstrNodeName: BSTR, + pNode: *mut IXMLDOMNode, + pNumber: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub absoluteChildNumber: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + pNode: *mut IXMLDOMNode, + pNumber: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub formatIndex: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + lIndex: ::std::os::raw::c_long, + bstrFormat: BSTR, + pbstrFormattedString: *mut BSTR, + ) -> HRESULT, + >, + pub formatNumber: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + dblNumber: f64, + bstrFormat: BSTR, + pbstrFormattedString: *mut BSTR, + ) -> HRESULT, + >, + pub formatDate: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + varDate: VARIANT, + bstrFormat: BSTR, + varDestLocale: VARIANT, + pbstrFormattedString: *mut BSTR, + ) -> HRESULT, + >, + pub formatTime: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXTLRuntime, + varTime: VARIANT, + bstrFormat: BSTR, + varDestLocale: VARIANT, + pbstrFormattedString: *mut BSTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXTLRuntime { + pub lpVtbl: *mut IXTLRuntimeVtbl, +} +extern "C" { + pub static DIID_XMLDOMDocumentEvents: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct XMLDOMDocumentEventsVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut XMLDOMDocumentEvents, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut XMLDOMDocumentEvents, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut XMLDOMDocumentEvents, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut XMLDOMDocumentEvents, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut XMLDOMDocumentEvents, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct XMLDOMDocumentEvents { + pub lpVtbl: *mut XMLDOMDocumentEventsVtbl, +} +extern "C" { + pub static CLSID_DOMDocument: CLSID; +} +extern "C" { + pub static CLSID_DOMFreeThreadedDocument: CLSID; +} +extern "C" { + pub static IID_IXMLHttpRequest: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLHttpRequestVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLHttpRequest, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLHttpRequest, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLHttpRequest, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLHttpRequest, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLHttpRequest, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub open: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLHttpRequest, + bstrMethod: BSTR, + bstrUrl: BSTR, + varAsync: VARIANT, + bstrUser: VARIANT, + bstrPassword: VARIANT, + ) -> HRESULT, + >, + pub setRequestHeader: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLHttpRequest, + bstrHeader: BSTR, + bstrValue: BSTR, + ) -> HRESULT, + >, + pub getResponseHeader: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLHttpRequest, + bstrHeader: BSTR, + pbstrValue: *mut BSTR, + ) -> HRESULT, + >, + pub getAllResponseHeaders: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLHttpRequest, pbstrHeaders: *mut BSTR) -> HRESULT, + >, + pub send: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLHttpRequest, varBody: VARIANT) -> HRESULT, + >, + pub abort: ::std::option::Option HRESULT>, + pub get_status: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLHttpRequest, + plStatus: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub get_statusText: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLHttpRequest, pbstrStatus: *mut BSTR) -> HRESULT, + >, + pub get_responseXML: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLHttpRequest, ppBody: *mut *mut IDispatch) -> HRESULT, + >, + pub get_responseText: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLHttpRequest, pbstrBody: *mut BSTR) -> HRESULT, + >, + pub get_responseBody: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLHttpRequest, pvarBody: *mut VARIANT) -> HRESULT, + >, + pub get_responseStream: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLHttpRequest, pvarBody: *mut VARIANT) -> HRESULT, + >, + pub get_readyState: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLHttpRequest, + plState: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub put_onreadystatechange: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLHttpRequest, + pReadyStateSink: *mut IDispatch, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLHttpRequest { + pub lpVtbl: *mut IXMLHttpRequestVtbl, +} +extern "C" { + pub static CLSID_XMLHTTPRequest: CLSID; +} +extern "C" { + pub static IID_IXMLDSOControl: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDSOControlVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDSOControl, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDSOControl, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDSOControl, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDSOControl, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDSOControl, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_XMLDocument: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDSOControl, + ppDoc: *mut *mut IXMLDOMDocument, + ) -> HRESULT, + >, + pub put_XMLDocument: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDSOControl, ppDoc: *mut IXMLDOMDocument) -> HRESULT, + >, + pub get_JavaDSOCompatible: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDSOControl, fJavaDSOCompatible: *mut BOOL) -> HRESULT, + >, + pub put_JavaDSOCompatible: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDSOControl, fJavaDSOCompatible: BOOL) -> HRESULT, + >, + pub get_readyState: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDSOControl, + state: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDSOControl { + pub lpVtbl: *mut IXMLDSOControlVtbl, +} +extern "C" { + pub static CLSID_XMLDSOControl: CLSID; +} +extern "C" { + pub static IID_IXMLElementCollection: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLElementCollectionVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElementCollection, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLElementCollection, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElementCollection, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElementCollection, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElementCollection, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub put_length: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElementCollection, + v: ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub get_length: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElementCollection, + p: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub get__newEnum: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElementCollection, + ppUnk: *mut *mut IUnknown, + ) -> HRESULT, + >, + pub item: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElementCollection, + var1: VARIANT, + var2: VARIANT, + ppDisp: *mut *mut IDispatch, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLElementCollection { + pub lpVtbl: *mut IXMLElementCollectionVtbl, +} +extern "C" { + pub static IID_IXMLDocument: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDocumentVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDocument, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDocument, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDocument, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDocument, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_root: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut *mut IXMLElement) -> HRESULT, + >, + pub get_fileSize: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, + >, + pub get_fileModifiedDate: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, + >, + pub get_fileUpdatedDate: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, + >, + pub get_URL: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, + >, + pub put_URL: + ::std::option::Option HRESULT>, + pub get_mimeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, + >, + pub get_readyState: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument, pl: *mut ::std::os::raw::c_long) -> HRESULT, + >, + pub get_charset: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, + >, + pub put_charset: + ::std::option::Option HRESULT>, + pub get_version: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, + >, + pub get_doctype: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, + >, + pub get_dtdURL: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, + >, + pub createElement: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDocument, + vType: VARIANT, + var1: VARIANT, + ppElem: *mut *mut IXMLElement, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDocument { + pub lpVtbl: *mut IXMLDocumentVtbl, +} +extern "C" { + pub static IID_IXMLDocument2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDocument2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDocument2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument2, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDocument2, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDocument2, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDocument2, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_root: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut *mut IXMLElement2) -> HRESULT, + >, + pub get_fileSize: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, + >, + pub get_fileModifiedDate: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, + >, + pub get_fileUpdatedDate: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, + >, + pub get_URL: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, + >, + pub put_URL: + ::std::option::Option HRESULT>, + pub get_mimeType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, + >, + pub get_readyState: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument2, pl: *mut ::std::os::raw::c_long) -> HRESULT, + >, + pub get_charset: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, + >, + pub put_charset: + ::std::option::Option HRESULT>, + pub get_version: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, + >, + pub get_doctype: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, + >, + pub get_dtdURL: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, + >, + pub createElement: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLDocument2, + vType: VARIANT, + var1: VARIANT, + ppElem: *mut *mut IXMLElement2, + ) -> HRESULT, + >, + pub get_async: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument2, pf: *mut VARIANT_BOOL) -> HRESULT, + >, + pub put_async: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLDocument2, f: VARIANT_BOOL) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLDocument2 { + pub lpVtbl: *mut IXMLDocument2Vtbl, +} +extern "C" { + pub static IID_IXMLElement: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLElementVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLElement, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_tagName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLElement, p: *mut BSTR) -> HRESULT, + >, + pub put_tagName: + ::std::option::Option HRESULT>, + pub get_parent: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLElement, ppParent: *mut *mut IXMLElement) -> HRESULT, + >, + pub setAttribute: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement, + strPropertyName: BSTR, + PropertyValue: VARIANT, + ) -> HRESULT, + >, + pub getAttribute: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement, + strPropertyName: BSTR, + PropertyValue: *mut VARIANT, + ) -> HRESULT, + >, + pub removeAttribute: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLElement, strPropertyName: BSTR) -> HRESULT, + >, + pub get_children: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement, + pp: *mut *mut IXMLElementCollection, + ) -> HRESULT, + >, + pub get_type: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement, + plType: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLElement, p: *mut BSTR) -> HRESULT, + >, + pub put_text: + ::std::option::Option HRESULT>, + pub addChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement, + pChildElem: *mut IXMLElement, + lIndex: ::std::os::raw::c_long, + lReserved: ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLElement, pChildElem: *mut IXMLElement) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLElement { + pub lpVtbl: *mut IXMLElementVtbl, +} +extern "C" { + pub static IID_IXMLElement2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLElement2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLElement2, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement2, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement2, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement2, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_tagName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLElement2, p: *mut BSTR) -> HRESULT, + >, + pub put_tagName: + ::std::option::Option HRESULT>, + pub get_parent: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLElement2, ppParent: *mut *mut IXMLElement2) -> HRESULT, + >, + pub setAttribute: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement2, + strPropertyName: BSTR, + PropertyValue: VARIANT, + ) -> HRESULT, + >, + pub getAttribute: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement2, + strPropertyName: BSTR, + PropertyValue: *mut VARIANT, + ) -> HRESULT, + >, + pub removeAttribute: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLElement2, strPropertyName: BSTR) -> HRESULT, + >, + pub get_children: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement2, + pp: *mut *mut IXMLElementCollection, + ) -> HRESULT, + >, + pub get_type: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement2, + plType: *mut ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub get_text: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLElement2, p: *mut BSTR) -> HRESULT, + >, + pub put_text: + ::std::option::Option HRESULT>, + pub addChild: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement2, + pChildElem: *mut IXMLElement2, + lIndex: ::std::os::raw::c_long, + lReserved: ::std::os::raw::c_long, + ) -> HRESULT, + >, + pub removeChild: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLElement2, pChildElem: *mut IXMLElement2) -> HRESULT, + >, + pub get_attributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLElement2, + pp: *mut *mut IXMLElementCollection, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLElement2 { + pub lpVtbl: *mut IXMLElement2Vtbl, +} +extern "C" { + pub static IID_IXMLAttribute: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLAttributeVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLAttribute, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetTypeInfoCount: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLAttribute, pctinfo: *mut UINT) -> HRESULT, + >, + pub GetTypeInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLAttribute, + iTInfo: UINT, + lcid: LCID, + ppTInfo: *mut *mut ITypeInfo, + ) -> HRESULT, + >, + pub GetIDsOfNames: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLAttribute, + riid: *const IID, + rgszNames: *mut LPOLESTR, + cNames: UINT, + lcid: LCID, + rgDispId: *mut DISPID, + ) -> HRESULT, + >, + pub Invoke: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLAttribute, + dispIdMember: DISPID, + riid: *const IID, + lcid: LCID, + wFlags: WORD, + pDispParams: *mut DISPPARAMS, + pVarResult: *mut VARIANT, + pExcepInfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT, + >, + pub get_name: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLAttribute, n: *mut BSTR) -> HRESULT, + >, + pub get_value: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLAttribute, v: *mut BSTR) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLAttribute { + pub lpVtbl: *mut IXMLAttributeVtbl, +} +extern "C" { + pub static IID_IXMLError: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLErrorVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IXMLError, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetErrorInfo: ::std::option::Option< + unsafe extern "C" fn(This: *mut IXMLError, pErrorReturn: *mut XML_ERROR) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IXMLError { + pub lpVtbl: *mut IXMLErrorVtbl, +} +extern "C" { + pub static CLSID_XMLDocument: CLSID; +} +extern "C" { + pub static mut __MIDL_itf_msxml_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_msxml_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static CLSID_SBS_StdURLMoniker: IID; +} +extern "C" { + pub static CLSID_SBS_HttpProtocol: IID; +} +extern "C" { + pub static CLSID_SBS_FtpProtocol: IID; +} +extern "C" { + pub static CLSID_SBS_GopherProtocol: IID; +} +extern "C" { + pub static CLSID_SBS_HttpSProtocol: IID; +} +extern "C" { + pub static CLSID_SBS_FileProtocol: IID; +} +extern "C" { + pub static CLSID_SBS_MkProtocol: IID; +} +extern "C" { + pub static CLSID_SBS_UrlMkBindCtx: IID; +} +extern "C" { + pub static CLSID_SBS_SoftDistExt: IID; +} +extern "C" { + pub static CLSID_SBS_CdlProtocol: IID; +} +extern "C" { + pub static CLSID_SBS_ClassInstallFilter: IID; +} +extern "C" { + pub static CLSID_SBS_InternetSecurityManager: IID; +} +extern "C" { + pub static CLSID_SBS_InternetZoneManager: IID; +} +extern "C" { + pub static IID_IAsyncMoniker: IID; +} +extern "C" { + pub static CLSID_StdURLMoniker: IID; +} +extern "C" { + pub static CLSID_HttpProtocol: IID; +} +extern "C" { + pub static CLSID_FtpProtocol: IID; +} +extern "C" { + pub static CLSID_GopherProtocol: IID; +} +extern "C" { + pub static CLSID_HttpSProtocol: IID; +} +extern "C" { + pub static CLSID_FileProtocol: IID; +} +extern "C" { + pub static CLSID_ResProtocol: IID; +} +extern "C" { + pub static CLSID_AboutProtocol: IID; +} +extern "C" { + pub static CLSID_JSProtocol: IID; +} +extern "C" { + pub static CLSID_MailtoProtocol: IID; +} +extern "C" { + pub static CLSID_IE4_PROTOCOLS: IID; +} +extern "C" { + pub static CLSID_MkProtocol: IID; +} +extern "C" { + pub static CLSID_StdURLProtocol: IID; +} +extern "C" { + pub static CLSID_TBAuthProtocol: IID; +} +extern "C" { + pub static CLSID_UrlMkBindCtx: IID; +} +extern "C" { + pub static CLSID_CdlProtocol: IID; +} +extern "C" { + pub static CLSID_ClassInstallFilter: IID; +} +extern "C" { + pub static IID_IAsyncBindCtx: IID; +} +extern "C" { + pub fn CreateURLMoniker(pMkCtx: LPMONIKER, szURL: LPCWSTR, ppmk: *mut LPMONIKER) -> HRESULT; +} +extern "C" { + pub fn CreateURLMonikerEx( + pMkCtx: LPMONIKER, + szURL: LPCWSTR, + ppmk: *mut LPMONIKER, + dwFlags: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn GetClassURL(szURL: LPCWSTR, pClsID: *mut CLSID) -> HRESULT; +} +extern "C" { + pub fn CreateAsyncBindCtx( + reserved: DWORD, + pBSCb: *mut IBindStatusCallback, + pEFetc: *mut IEnumFORMATETC, + ppBC: *mut *mut IBindCtx, + ) -> HRESULT; +} +extern "C" { + pub fn CreateURLMonikerEx2( + pMkCtx: LPMONIKER, + pUri: *mut IUri, + ppmk: *mut LPMONIKER, + dwFlags: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CreateAsyncBindCtxEx( + pbc: *mut IBindCtx, + dwOptions: DWORD, + pBSCb: *mut IBindStatusCallback, + pEnum: *mut IEnumFORMATETC, + ppBC: *mut *mut IBindCtx, + reserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn MkParseDisplayNameEx( + pbc: *mut IBindCtx, + szDisplayName: LPCWSTR, + pchEaten: *mut ULONG, + ppmk: *mut LPMONIKER, + ) -> HRESULT; +} +extern "C" { + pub fn RegisterBindStatusCallback( + pBC: LPBC, + pBSCb: *mut IBindStatusCallback, + ppBSCBPrev: *mut *mut IBindStatusCallback, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn RevokeBindStatusCallback(pBC: LPBC, pBSCb: *mut IBindStatusCallback) -> HRESULT; +} +extern "C" { + pub fn GetClassFileOrMime( + pBC: LPBC, + szFilename: LPCWSTR, + pBuffer: LPVOID, + cbSize: DWORD, + szMime: LPCWSTR, + dwReserved: DWORD, + pclsid: *mut CLSID, + ) -> HRESULT; +} +extern "C" { + pub fn IsValidURL(pBC: LPBC, szURL: LPCWSTR, dwReserved: DWORD) -> HRESULT; +} +extern "C" { + pub fn CoGetClassObjectFromURL( + rCLASSID: *const IID, + szCODE: LPCWSTR, + dwFileVersionMS: DWORD, + dwFileVersionLS: DWORD, + szTYPE: LPCWSTR, + pBindCtx: LPBINDCTX, + dwClsContext: DWORD, + pvReserved: LPVOID, + riid: *const IID, + ppv: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn IEInstallScope(pdwScope: LPDWORD) -> HRESULT; +} +extern "C" { + pub fn FaultInIEFeature( + hWnd: HWND, + pClassSpec: *mut uCLSSPEC, + pQuery: *mut QUERYCONTEXT, + dwFlags: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn GetComponentIDFromCLSSPEC( + pClassspec: *mut uCLSSPEC, + ppszComponentID: *mut LPSTR, + ) -> HRESULT; +} +extern "C" { + pub fn IsAsyncMoniker(pmk: *mut IMoniker) -> HRESULT; +} +extern "C" { + pub fn CreateURLBinding( + lpszUrl: LPCWSTR, + pbc: *mut IBindCtx, + ppBdg: *mut *mut IBinding, + ) -> HRESULT; +} +extern "C" { + pub fn RegisterMediaTypes( + ctypes: UINT, + rgszTypes: *const LPCSTR, + rgcfTypes: *mut CLIPFORMAT, + ) -> HRESULT; +} +extern "C" { + pub fn FindMediaType(rgszTypes: LPCSTR, rgcfTypes: *mut CLIPFORMAT) -> HRESULT; +} +extern "C" { + pub fn CreateFormatEnumerator( + cfmtetc: UINT, + rgfmtetc: *mut FORMATETC, + ppenumfmtetc: *mut *mut IEnumFORMATETC, + ) -> HRESULT; +} +extern "C" { + pub fn RegisterFormatEnumerator( + pBC: LPBC, + pEFetc: *mut IEnumFORMATETC, + reserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn RevokeFormatEnumerator(pBC: LPBC, pEFetc: *mut IEnumFORMATETC) -> HRESULT; +} +extern "C" { + pub fn RegisterMediaTypeClass( + pBC: LPBC, + ctypes: UINT, + rgszTypes: *const LPCSTR, + rgclsID: *mut CLSID, + reserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn FindMediaTypeClass( + pBC: LPBC, + szType: LPCSTR, + pclsID: *mut CLSID, + reserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn UrlMkSetSessionOption( + dwOption: DWORD, + pBuffer: LPVOID, + dwBufferLength: DWORD, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn UrlMkGetSessionOption( + dwOption: DWORD, + pBuffer: LPVOID, + dwBufferLength: DWORD, + pdwBufferLengthOut: *mut DWORD, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn FindMimeFromData( + pBC: LPBC, + pwzUrl: LPCWSTR, + pBuffer: LPVOID, + cbSize: DWORD, + pwzMimeProposed: LPCWSTR, + dwMimeFlags: DWORD, + ppwzMimeOut: *mut LPWSTR, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn ObtainUserAgentString(dwOption: DWORD, pszUAOut: LPSTR, cbSize: *mut DWORD) -> HRESULT; +} +extern "C" { + pub fn CompareSecurityIds( + pbSecurityId1: *mut BYTE, + dwLen1: DWORD, + pbSecurityId2: *mut BYTE, + dwLen2: DWORD, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CompatFlagsFromClsid( + pclsid: *mut CLSID, + pdwCompatFlags: LPDWORD, + pdwMiscStatusFlags: LPDWORD, + ) -> HRESULT; +} +pub const IEObjectType_IE_EPM_OBJECT_EVENT: IEObjectType = 0; +pub const IEObjectType_IE_EPM_OBJECT_MUTEX: IEObjectType = 1; +pub const IEObjectType_IE_EPM_OBJECT_SEMAPHORE: IEObjectType = 2; +pub const IEObjectType_IE_EPM_OBJECT_SHARED_MEMORY: IEObjectType = 3; +pub const IEObjectType_IE_EPM_OBJECT_WAITABLE_TIMER: IEObjectType = 4; +pub const IEObjectType_IE_EPM_OBJECT_FILE: IEObjectType = 5; +pub const IEObjectType_IE_EPM_OBJECT_NAMED_PIPE: IEObjectType = 6; +pub const IEObjectType_IE_EPM_OBJECT_REGISTRY: IEObjectType = 7; +pub type IEObjectType = ::std::os::raw::c_int; +extern "C" { + pub fn SetAccessForIEAppContainer( + hObject: HANDLE, + ieObjectType: IEObjectType, + dwAccessMask: DWORD, + ) -> HRESULT; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPPERSISTMONIKER = *mut IPersistMoniker; +extern "C" { + pub static IID_IPersistMoniker: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPersistMonikerVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPersistMoniker, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetClassID: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPersistMoniker, pClassID: *mut CLSID) -> HRESULT, + >, + pub IsDirty: ::std::option::Option HRESULT>, + pub Load: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPersistMoniker, + fFullyAvailable: BOOL, + pimkName: *mut IMoniker, + pibc: LPBC, + grfMode: DWORD, + ) -> HRESULT, + >, + pub Save: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPersistMoniker, + pimkName: *mut IMoniker, + pbc: LPBC, + fRemember: BOOL, + ) -> HRESULT, + >, + pub SaveCompleted: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPersistMoniker, + pimkName: *mut IMoniker, + pibc: LPBC, + ) -> HRESULT, + >, + pub GetCurMoniker: ::std::option::Option< + unsafe extern "C" fn(This: *mut IPersistMoniker, ppimkName: *mut *mut IMoniker) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPersistMoniker { + pub lpVtbl: *mut IPersistMonikerVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPMONIKERPROP = *mut IMonikerProp; +pub const __MIDL_IMonikerProp_0001_MIMETYPEPROP: __MIDL_IMonikerProp_0001 = 0; +pub const __MIDL_IMonikerProp_0001_USE_SRC_URL: __MIDL_IMonikerProp_0001 = 1; +pub const __MIDL_IMonikerProp_0001_CLASSIDPROP: __MIDL_IMonikerProp_0001 = 2; +pub const __MIDL_IMonikerProp_0001_TRUSTEDDOWNLOADPROP: __MIDL_IMonikerProp_0001 = 3; +pub const __MIDL_IMonikerProp_0001_POPUPLEVELPROP: __MIDL_IMonikerProp_0001 = 4; +pub type __MIDL_IMonikerProp_0001 = ::std::os::raw::c_int; +pub use self::__MIDL_IMonikerProp_0001 as MONIKERPROPERTY; +extern "C" { + pub static IID_IMonikerProp: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMonikerPropVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMonikerProp, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub PutProperty: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IMonikerProp, + mkp: MONIKERPROPERTY, + val: LPCWSTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IMonikerProp { + pub lpVtbl: *mut IMonikerPropVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0002_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0002_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPBINDPROTOCOL = *mut IBindProtocol; +extern "C" { + pub static IID_IBindProtocol: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindProtocolVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindProtocol, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub CreateBinding: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindProtocol, + szUrl: LPCWSTR, + pbc: *mut IBindCtx, + ppb: *mut *mut IBinding, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindProtocol { + pub lpVtbl: *mut IBindProtocolVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0003_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0003_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPBINDING = *mut IBinding; +extern "C" { + pub static IID_IBinding: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindingVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBinding, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Abort: ::std::option::Option HRESULT>, + pub Suspend: ::std::option::Option HRESULT>, + pub Resume: ::std::option::Option HRESULT>, + pub SetPriority: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBinding, nPriority: LONG) -> HRESULT, + >, + pub GetPriority: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBinding, pnPriority: *mut LONG) -> HRESULT, + >, + pub GetBindResult: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBinding, + pclsidProtocol: *mut CLSID, + pdwResult: *mut DWORD, + pszResult: *mut LPOLESTR, + pdwReserved: *mut DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBinding { + pub lpVtbl: *mut IBindingVtbl, +} +extern "C" { + pub fn IBinding_RemoteGetBindResult_Proxy( + This: *mut IBinding, + pclsidProtocol: *mut CLSID, + pdwResult: *mut DWORD, + pszResult: *mut LPOLESTR, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IBinding_RemoteGetBindResult_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0004_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0004_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPBINDSTATUSCALLBACK = *mut IBindStatusCallback; +pub const __MIDL_IBindStatusCallback_0001_BINDVERB_GET: __MIDL_IBindStatusCallback_0001 = 0; +pub const __MIDL_IBindStatusCallback_0001_BINDVERB_POST: __MIDL_IBindStatusCallback_0001 = 1; +pub const __MIDL_IBindStatusCallback_0001_BINDVERB_PUT: __MIDL_IBindStatusCallback_0001 = 2; +pub const __MIDL_IBindStatusCallback_0001_BINDVERB_CUSTOM: __MIDL_IBindStatusCallback_0001 = 3; +pub const __MIDL_IBindStatusCallback_0001_BINDVERB_RESERVED1: __MIDL_IBindStatusCallback_0001 = 4; +pub type __MIDL_IBindStatusCallback_0001 = ::std::os::raw::c_int; +pub use self::__MIDL_IBindStatusCallback_0001 as BINDVERB; +pub const __MIDL_IBindStatusCallback_0002_BINDINFOF_URLENCODESTGMEDDATA: + __MIDL_IBindStatusCallback_0002 = 1; +pub const __MIDL_IBindStatusCallback_0002_BINDINFOF_URLENCODEDEXTRAINFO: + __MIDL_IBindStatusCallback_0002 = 2; +pub type __MIDL_IBindStatusCallback_0002 = ::std::os::raw::c_int; +pub use self::__MIDL_IBindStatusCallback_0002 as BINDINFOF; +pub const __MIDL_IBindStatusCallback_0003_BINDF_ASYNCHRONOUS: __MIDL_IBindStatusCallback_0003 = 1; +pub const __MIDL_IBindStatusCallback_0003_BINDF_ASYNCSTORAGE: __MIDL_IBindStatusCallback_0003 = 2; +pub const __MIDL_IBindStatusCallback_0003_BINDF_NOPROGRESSIVERENDERING: + __MIDL_IBindStatusCallback_0003 = 4; +pub const __MIDL_IBindStatusCallback_0003_BINDF_OFFLINEOPERATION: __MIDL_IBindStatusCallback_0003 = + 8; +pub const __MIDL_IBindStatusCallback_0003_BINDF_GETNEWESTVERSION: __MIDL_IBindStatusCallback_0003 = + 16; +pub const __MIDL_IBindStatusCallback_0003_BINDF_NOWRITECACHE: __MIDL_IBindStatusCallback_0003 = 32; +pub const __MIDL_IBindStatusCallback_0003_BINDF_NEEDFILE: __MIDL_IBindStatusCallback_0003 = 64; +pub const __MIDL_IBindStatusCallback_0003_BINDF_PULLDATA: __MIDL_IBindStatusCallback_0003 = 128; +pub const __MIDL_IBindStatusCallback_0003_BINDF_IGNORESECURITYPROBLEM: + __MIDL_IBindStatusCallback_0003 = 256; +pub const __MIDL_IBindStatusCallback_0003_BINDF_RESYNCHRONIZE: __MIDL_IBindStatusCallback_0003 = + 512; +pub const __MIDL_IBindStatusCallback_0003_BINDF_HYPERLINK: __MIDL_IBindStatusCallback_0003 = 1024; +pub const __MIDL_IBindStatusCallback_0003_BINDF_NO_UI: __MIDL_IBindStatusCallback_0003 = 2048; +pub const __MIDL_IBindStatusCallback_0003_BINDF_SILENTOPERATION: __MIDL_IBindStatusCallback_0003 = + 4096; +pub const __MIDL_IBindStatusCallback_0003_BINDF_PRAGMA_NO_CACHE: __MIDL_IBindStatusCallback_0003 = + 8192; +pub const __MIDL_IBindStatusCallback_0003_BINDF_GETCLASSOBJECT: __MIDL_IBindStatusCallback_0003 = + 16384; +pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_1: __MIDL_IBindStatusCallback_0003 = 32768; +pub const __MIDL_IBindStatusCallback_0003_BINDF_FREE_THREADED: __MIDL_IBindStatusCallback_0003 = + 65536; +pub const __MIDL_IBindStatusCallback_0003_BINDF_DIRECT_READ: __MIDL_IBindStatusCallback_0003 = + 131072; +pub const __MIDL_IBindStatusCallback_0003_BINDF_FORMS_SUBMIT: __MIDL_IBindStatusCallback_0003 = + 262144; +pub const __MIDL_IBindStatusCallback_0003_BINDF_GETFROMCACHE_IF_NET_FAIL: + __MIDL_IBindStatusCallback_0003 = 524288; +pub const __MIDL_IBindStatusCallback_0003_BINDF_FROMURLMON: __MIDL_IBindStatusCallback_0003 = + 1048576; +pub const __MIDL_IBindStatusCallback_0003_BINDF_FWD_BACK: __MIDL_IBindStatusCallback_0003 = 2097152; +pub const __MIDL_IBindStatusCallback_0003_BINDF_PREFERDEFAULTHANDLER: + __MIDL_IBindStatusCallback_0003 = 4194304; +pub const __MIDL_IBindStatusCallback_0003_BINDF_ENFORCERESTRICTED: __MIDL_IBindStatusCallback_0003 = + 8388608; +pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_2: __MIDL_IBindStatusCallback_0003 = + -2147483648; +pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_3: __MIDL_IBindStatusCallback_0003 = + 16777216; +pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_4: __MIDL_IBindStatusCallback_0003 = + 33554432; +pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_5: __MIDL_IBindStatusCallback_0003 = + 67108864; +pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_6: __MIDL_IBindStatusCallback_0003 = + 134217728; +pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_7: __MIDL_IBindStatusCallback_0003 = + 1073741824; +pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_8: __MIDL_IBindStatusCallback_0003 = + 536870912; +pub type __MIDL_IBindStatusCallback_0003 = ::std::os::raw::c_int; +pub use self::__MIDL_IBindStatusCallback_0003 as BINDF; +pub const __MIDL_IBindStatusCallback_0004_URL_ENCODING_NONE: __MIDL_IBindStatusCallback_0004 = 0; +pub const __MIDL_IBindStatusCallback_0004_URL_ENCODING_ENABLE_UTF8: + __MIDL_IBindStatusCallback_0004 = 268435456; +pub const __MIDL_IBindStatusCallback_0004_URL_ENCODING_DISABLE_UTF8: + __MIDL_IBindStatusCallback_0004 = 536870912; +pub type __MIDL_IBindStatusCallback_0004 = ::std::os::raw::c_int; +pub use self::__MIDL_IBindStatusCallback_0004 as URL_ENCODING; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _tagBINDINFO { + pub cbSize: ULONG, + pub szExtraInfo: LPWSTR, + pub stgmedData: STGMEDIUM, + pub grfBindInfoF: DWORD, + pub dwBindVerb: DWORD, + pub szCustomVerb: LPWSTR, + pub cbstgmedData: DWORD, + pub dwOptions: DWORD, + pub dwOptionsFlags: DWORD, + pub dwCodePage: DWORD, + pub securityAttributes: SECURITY_ATTRIBUTES, + pub iid: IID, + pub pUnk: *mut IUnknown, + pub dwReserved: DWORD, +} +pub type BINDINFO = _tagBINDINFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _REMSECURITY_ATTRIBUTES { + pub nLength: DWORD, + pub lpSecurityDescriptor: DWORD, + pub bInheritHandle: BOOL, +} +pub type REMSECURITY_ATTRIBUTES = _REMSECURITY_ATTRIBUTES; +pub type PREMSECURITY_ATTRIBUTES = *mut _REMSECURITY_ATTRIBUTES; +pub type LPREMSECURITY_ATTRIBUTES = *mut _REMSECURITY_ATTRIBUTES; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _tagRemBINDINFO { + pub cbSize: ULONG, + pub szExtraInfo: LPWSTR, + pub grfBindInfoF: DWORD, + pub dwBindVerb: DWORD, + pub szCustomVerb: LPWSTR, + pub cbstgmedData: DWORD, + pub dwOptions: DWORD, + pub dwOptionsFlags: DWORD, + pub dwCodePage: DWORD, + pub securityAttributes: REMSECURITY_ATTRIBUTES, + pub iid: IID, + pub pUnk: *mut IUnknown, + pub dwReserved: DWORD, +} +pub type RemBINDINFO = _tagRemBINDINFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRemFORMATETC { + pub cfFormat: DWORD, + pub ptd: DWORD, + pub dwAspect: DWORD, + pub lindex: LONG, + pub tymed: DWORD, +} +pub type RemFORMATETC = tagRemFORMATETC; +pub type LPREMFORMATETC = *mut tagRemFORMATETC; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_WININETFLAG: + __MIDL_IBindStatusCallback_0005 = 65536; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_ENABLE_UTF8: + __MIDL_IBindStatusCallback_0005 = 131072; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_DISABLE_UTF8: + __MIDL_IBindStatusCallback_0005 = 262144; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_USE_IE_ENCODING: + __MIDL_IBindStatusCallback_0005 = 524288; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_BINDTOOBJECT: + __MIDL_IBindStatusCallback_0005 = 1048576; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_SECURITYOPTOUT: + __MIDL_IBindStatusCallback_0005 = 2097152; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_IGNOREMIMETEXTPLAIN: + __MIDL_IBindStatusCallback_0005 = 4194304; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_USEBINDSTRINGCREDS: + __MIDL_IBindStatusCallback_0005 = 8388608; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_IGNOREHTTPHTTPSREDIRECTS: + __MIDL_IBindStatusCallback_0005 = 16777216; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_IGNORE_SSLERRORS_ONCE: + __MIDL_IBindStatusCallback_0005 = 33554432; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_WPC_DOWNLOADBLOCKED: + __MIDL_IBindStatusCallback_0005 = 134217728; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_WPC_LOGGING_ENABLED: + __MIDL_IBindStatusCallback_0005 = 268435456; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_ALLOWCONNECTDATA: + __MIDL_IBindStatusCallback_0005 = 536870912; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_DISABLEAUTOREDIRECTS: + __MIDL_IBindStatusCallback_0005 = 1073741824; +pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_SHDOCVW_NAVIGATE: + __MIDL_IBindStatusCallback_0005 = -2147483648; +pub type __MIDL_IBindStatusCallback_0005 = ::std::os::raw::c_int; +pub use self::__MIDL_IBindStatusCallback_0005 as BINDINFO_OPTIONS; +pub const __MIDL_IBindStatusCallback_0006_BSCF_FIRSTDATANOTIFICATION: + __MIDL_IBindStatusCallback_0006 = 1; +pub const __MIDL_IBindStatusCallback_0006_BSCF_INTERMEDIATEDATANOTIFICATION: + __MIDL_IBindStatusCallback_0006 = 2; +pub const __MIDL_IBindStatusCallback_0006_BSCF_LASTDATANOTIFICATION: + __MIDL_IBindStatusCallback_0006 = 4; +pub const __MIDL_IBindStatusCallback_0006_BSCF_DATAFULLYAVAILABLE: __MIDL_IBindStatusCallback_0006 = + 8; +pub const __MIDL_IBindStatusCallback_0006_BSCF_AVAILABLEDATASIZEUNKNOWN: + __MIDL_IBindStatusCallback_0006 = 16; +pub const __MIDL_IBindStatusCallback_0006_BSCF_SKIPDRAINDATAFORFILEURLS: + __MIDL_IBindStatusCallback_0006 = 32; +pub const __MIDL_IBindStatusCallback_0006_BSCF_64BITLENGTHDOWNLOAD: + __MIDL_IBindStatusCallback_0006 = 64; +pub type __MIDL_IBindStatusCallback_0006 = ::std::os::raw::c_int; +pub use self::__MIDL_IBindStatusCallback_0006 as BSCF; +pub const tagBINDSTATUS_BINDSTATUS_FINDINGRESOURCE: tagBINDSTATUS = 1; +pub const tagBINDSTATUS_BINDSTATUS_CONNECTING: tagBINDSTATUS = 2; +pub const tagBINDSTATUS_BINDSTATUS_REDIRECTING: tagBINDSTATUS = 3; +pub const tagBINDSTATUS_BINDSTATUS_BEGINDOWNLOADDATA: tagBINDSTATUS = 4; +pub const tagBINDSTATUS_BINDSTATUS_DOWNLOADINGDATA: tagBINDSTATUS = 5; +pub const tagBINDSTATUS_BINDSTATUS_ENDDOWNLOADDATA: tagBINDSTATUS = 6; +pub const tagBINDSTATUS_BINDSTATUS_BEGINDOWNLOADCOMPONENTS: tagBINDSTATUS = 7; +pub const tagBINDSTATUS_BINDSTATUS_INSTALLINGCOMPONENTS: tagBINDSTATUS = 8; +pub const tagBINDSTATUS_BINDSTATUS_ENDDOWNLOADCOMPONENTS: tagBINDSTATUS = 9; +pub const tagBINDSTATUS_BINDSTATUS_USINGCACHEDCOPY: tagBINDSTATUS = 10; +pub const tagBINDSTATUS_BINDSTATUS_SENDINGREQUEST: tagBINDSTATUS = 11; +pub const tagBINDSTATUS_BINDSTATUS_CLASSIDAVAILABLE: tagBINDSTATUS = 12; +pub const tagBINDSTATUS_BINDSTATUS_MIMETYPEAVAILABLE: tagBINDSTATUS = 13; +pub const tagBINDSTATUS_BINDSTATUS_CACHEFILENAMEAVAILABLE: tagBINDSTATUS = 14; +pub const tagBINDSTATUS_BINDSTATUS_BEGINSYNCOPERATION: tagBINDSTATUS = 15; +pub const tagBINDSTATUS_BINDSTATUS_ENDSYNCOPERATION: tagBINDSTATUS = 16; +pub const tagBINDSTATUS_BINDSTATUS_BEGINUPLOADDATA: tagBINDSTATUS = 17; +pub const tagBINDSTATUS_BINDSTATUS_UPLOADINGDATA: tagBINDSTATUS = 18; +pub const tagBINDSTATUS_BINDSTATUS_ENDUPLOADDATA: tagBINDSTATUS = 19; +pub const tagBINDSTATUS_BINDSTATUS_PROTOCOLCLASSID: tagBINDSTATUS = 20; +pub const tagBINDSTATUS_BINDSTATUS_ENCODING: tagBINDSTATUS = 21; +pub const tagBINDSTATUS_BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE: tagBINDSTATUS = 22; +pub const tagBINDSTATUS_BINDSTATUS_CLASSINSTALLLOCATION: tagBINDSTATUS = 23; +pub const tagBINDSTATUS_BINDSTATUS_DECODING: tagBINDSTATUS = 24; +pub const tagBINDSTATUS_BINDSTATUS_LOADINGMIMEHANDLER: tagBINDSTATUS = 25; +pub const tagBINDSTATUS_BINDSTATUS_CONTENTDISPOSITIONATTACH: tagBINDSTATUS = 26; +pub const tagBINDSTATUS_BINDSTATUS_FILTERREPORTMIMETYPE: tagBINDSTATUS = 27; +pub const tagBINDSTATUS_BINDSTATUS_CLSIDCANINSTANTIATE: tagBINDSTATUS = 28; +pub const tagBINDSTATUS_BINDSTATUS_IUNKNOWNAVAILABLE: tagBINDSTATUS = 29; +pub const tagBINDSTATUS_BINDSTATUS_DIRECTBIND: tagBINDSTATUS = 30; +pub const tagBINDSTATUS_BINDSTATUS_RAWMIMETYPE: tagBINDSTATUS = 31; +pub const tagBINDSTATUS_BINDSTATUS_PROXYDETECTING: tagBINDSTATUS = 32; +pub const tagBINDSTATUS_BINDSTATUS_ACCEPTRANGES: tagBINDSTATUS = 33; +pub const tagBINDSTATUS_BINDSTATUS_COOKIE_SENT: tagBINDSTATUS = 34; +pub const tagBINDSTATUS_BINDSTATUS_COMPACT_POLICY_RECEIVED: tagBINDSTATUS = 35; +pub const tagBINDSTATUS_BINDSTATUS_COOKIE_SUPPRESSED: tagBINDSTATUS = 36; +pub const tagBINDSTATUS_BINDSTATUS_COOKIE_STATE_UNKNOWN: tagBINDSTATUS = 37; +pub const tagBINDSTATUS_BINDSTATUS_COOKIE_STATE_ACCEPT: tagBINDSTATUS = 38; +pub const tagBINDSTATUS_BINDSTATUS_COOKIE_STATE_REJECT: tagBINDSTATUS = 39; +pub const tagBINDSTATUS_BINDSTATUS_COOKIE_STATE_PROMPT: tagBINDSTATUS = 40; +pub const tagBINDSTATUS_BINDSTATUS_COOKIE_STATE_LEASH: tagBINDSTATUS = 41; +pub const tagBINDSTATUS_BINDSTATUS_COOKIE_STATE_DOWNGRADE: tagBINDSTATUS = 42; +pub const tagBINDSTATUS_BINDSTATUS_POLICY_HREF: tagBINDSTATUS = 43; +pub const tagBINDSTATUS_BINDSTATUS_P3P_HEADER: tagBINDSTATUS = 44; +pub const tagBINDSTATUS_BINDSTATUS_SESSION_COOKIE_RECEIVED: tagBINDSTATUS = 45; +pub const tagBINDSTATUS_BINDSTATUS_PERSISTENT_COOKIE_RECEIVED: tagBINDSTATUS = 46; +pub const tagBINDSTATUS_BINDSTATUS_SESSION_COOKIES_ALLOWED: tagBINDSTATUS = 47; +pub const tagBINDSTATUS_BINDSTATUS_CACHECONTROL: tagBINDSTATUS = 48; +pub const tagBINDSTATUS_BINDSTATUS_CONTENTDISPOSITIONFILENAME: tagBINDSTATUS = 49; +pub const tagBINDSTATUS_BINDSTATUS_MIMETEXTPLAINMISMATCH: tagBINDSTATUS = 50; +pub const tagBINDSTATUS_BINDSTATUS_PUBLISHERAVAILABLE: tagBINDSTATUS = 51; +pub const tagBINDSTATUS_BINDSTATUS_DISPLAYNAMEAVAILABLE: tagBINDSTATUS = 52; +pub const tagBINDSTATUS_BINDSTATUS_SSLUX_NAVBLOCKED: tagBINDSTATUS = 53; +pub const tagBINDSTATUS_BINDSTATUS_SERVER_MIMETYPEAVAILABLE: tagBINDSTATUS = 54; +pub const tagBINDSTATUS_BINDSTATUS_SNIFFED_CLASSIDAVAILABLE: tagBINDSTATUS = 55; +pub const tagBINDSTATUS_BINDSTATUS_64BIT_PROGRESS: tagBINDSTATUS = 56; +pub const tagBINDSTATUS_BINDSTATUS_LAST: tagBINDSTATUS = 56; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_0: tagBINDSTATUS = 57; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_1: tagBINDSTATUS = 58; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_2: tagBINDSTATUS = 59; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_3: tagBINDSTATUS = 60; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_4: tagBINDSTATUS = 61; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_5: tagBINDSTATUS = 62; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_6: tagBINDSTATUS = 63; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_7: tagBINDSTATUS = 64; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_8: tagBINDSTATUS = 65; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_9: tagBINDSTATUS = 66; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_A: tagBINDSTATUS = 67; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_B: tagBINDSTATUS = 68; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_C: tagBINDSTATUS = 69; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_D: tagBINDSTATUS = 70; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_E: tagBINDSTATUS = 71; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_F: tagBINDSTATUS = 72; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_10: tagBINDSTATUS = 73; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_11: tagBINDSTATUS = 74; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_12: tagBINDSTATUS = 75; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_13: tagBINDSTATUS = 76; +pub const tagBINDSTATUS_BINDSTATUS_RESERVED_14: tagBINDSTATUS = 77; +pub const tagBINDSTATUS_BINDSTATUS_LAST_PRIVATE: tagBINDSTATUS = 77; +pub type tagBINDSTATUS = ::std::os::raw::c_int; +pub use self::tagBINDSTATUS as BINDSTATUS; +extern "C" { + pub static IID_IBindStatusCallback: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindStatusCallbackVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallback, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub OnStartBinding: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallback, + dwReserved: DWORD, + pib: *mut IBinding, + ) -> HRESULT, + >, + pub GetPriority: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBindStatusCallback, pnPriority: *mut LONG) -> HRESULT, + >, + pub OnLowResource: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBindStatusCallback, reserved: DWORD) -> HRESULT, + >, + pub OnProgress: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallback, + ulProgress: ULONG, + ulProgressMax: ULONG, + ulStatusCode: ULONG, + szStatusText: LPCWSTR, + ) -> HRESULT, + >, + pub OnStopBinding: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallback, + hresult: HRESULT, + szError: LPCWSTR, + ) -> HRESULT, + >, + pub GetBindInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallback, + grfBINDF: *mut DWORD, + pbindinfo: *mut BINDINFO, + ) -> HRESULT, + >, + pub OnDataAvailable: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallback, + grfBSCF: DWORD, + dwSize: DWORD, + pformatetc: *mut FORMATETC, + pstgmed: *mut STGMEDIUM, + ) -> HRESULT, + >, + pub OnObjectAvailable: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallback, + riid: *const IID, + punk: *mut IUnknown, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindStatusCallback { + pub lpVtbl: *mut IBindStatusCallbackVtbl, +} +extern "C" { + pub fn IBindStatusCallback_RemoteGetBindInfo_Proxy( + This: *mut IBindStatusCallback, + grfBINDF: *mut DWORD, + pbindinfo: *mut RemBINDINFO, + pstgmed: *mut RemSTGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn IBindStatusCallback_RemoteGetBindInfo_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IBindStatusCallback_RemoteOnDataAvailable_Proxy( + This: *mut IBindStatusCallback, + grfBSCF: DWORD, + dwSize: DWORD, + pformatetc: *mut RemFORMATETC, + pstgmed: *mut RemSTGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn IBindStatusCallback_RemoteOnDataAvailable_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0005_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0005_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPBINDSTATUSCALLBACKEX = *mut IBindStatusCallbackEx; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_DISABLEBASICOVERHTTP: + __MIDL_IBindStatusCallbackEx_0001 = 1; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_DISABLEAUTOCOOKIEHANDLING: + __MIDL_IBindStatusCallbackEx_0001 = 2; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_READ_DATA_GREATER_THAN_4GB: + __MIDL_IBindStatusCallbackEx_0001 = 4; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_DISABLE_HTTP_REDIRECT_XSECURITYID: + __MIDL_IBindStatusCallbackEx_0001 = 8; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_SETDOWNLOADMODE: + __MIDL_IBindStatusCallbackEx_0001 = 32; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_DISABLE_HTTP_REDIRECT_CACHING: + __MIDL_IBindStatusCallbackEx_0001 = 64; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_KEEP_CALLBACK_MODULE_LOADED: + __MIDL_IBindStatusCallbackEx_0001 = 128; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_ALLOW_PROXY_CRED_PROMPT: + __MIDL_IBindStatusCallbackEx_0001 = 256; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_17: __MIDL_IBindStatusCallbackEx_0001 = + 512; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_16: __MIDL_IBindStatusCallbackEx_0001 = + 1024; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_15: __MIDL_IBindStatusCallbackEx_0001 = + 2048; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_14: __MIDL_IBindStatusCallbackEx_0001 = + 4096; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_13: __MIDL_IBindStatusCallbackEx_0001 = + 8192; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_12: __MIDL_IBindStatusCallbackEx_0001 = + 16384; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_11: __MIDL_IBindStatusCallbackEx_0001 = + 32768; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_10: __MIDL_IBindStatusCallbackEx_0001 = + 65536; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_F: __MIDL_IBindStatusCallbackEx_0001 = + 131072; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_E: __MIDL_IBindStatusCallbackEx_0001 = + 262144; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_D: __MIDL_IBindStatusCallbackEx_0001 = + 524288; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_C: __MIDL_IBindStatusCallbackEx_0001 = + 1048576; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_B: __MIDL_IBindStatusCallbackEx_0001 = + 2097152; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_A: __MIDL_IBindStatusCallbackEx_0001 = + 4194304; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_9: __MIDL_IBindStatusCallbackEx_0001 = + 8388608; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_8: __MIDL_IBindStatusCallbackEx_0001 = + 16777216; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_7: __MIDL_IBindStatusCallbackEx_0001 = + 33554432; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_6: __MIDL_IBindStatusCallbackEx_0001 = + 67108864; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_5: __MIDL_IBindStatusCallbackEx_0001 = + 134217728; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_4: __MIDL_IBindStatusCallbackEx_0001 = + 268435456; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_3: __MIDL_IBindStatusCallbackEx_0001 = + 536870912; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_2: __MIDL_IBindStatusCallbackEx_0001 = + 1073741824; +pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_1: __MIDL_IBindStatusCallbackEx_0001 = + -2147483648; +pub type __MIDL_IBindStatusCallbackEx_0001 = ::std::os::raw::c_int; +pub use self::__MIDL_IBindStatusCallbackEx_0001 as BINDF2; +extern "C" { + pub static IID_IBindStatusCallbackEx: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindStatusCallbackExVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallbackEx, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub OnStartBinding: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallbackEx, + dwReserved: DWORD, + pib: *mut IBinding, + ) -> HRESULT, + >, + pub GetPriority: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBindStatusCallbackEx, pnPriority: *mut LONG) -> HRESULT, + >, + pub OnLowResource: ::std::option::Option< + unsafe extern "C" fn(This: *mut IBindStatusCallbackEx, reserved: DWORD) -> HRESULT, + >, + pub OnProgress: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallbackEx, + ulProgress: ULONG, + ulProgressMax: ULONG, + ulStatusCode: ULONG, + szStatusText: LPCWSTR, + ) -> HRESULT, + >, + pub OnStopBinding: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallbackEx, + hresult: HRESULT, + szError: LPCWSTR, + ) -> HRESULT, + >, + pub GetBindInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallbackEx, + grfBINDF: *mut DWORD, + pbindinfo: *mut BINDINFO, + ) -> HRESULT, + >, + pub OnDataAvailable: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallbackEx, + grfBSCF: DWORD, + dwSize: DWORD, + pformatetc: *mut FORMATETC, + pstgmed: *mut STGMEDIUM, + ) -> HRESULT, + >, + pub OnObjectAvailable: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallbackEx, + riid: *const IID, + punk: *mut IUnknown, + ) -> HRESULT, + >, + pub GetBindInfoEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindStatusCallbackEx, + grfBINDF: *mut DWORD, + pbindinfo: *mut BINDINFO, + grfBINDF2: *mut DWORD, + pdwReserved: *mut DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindStatusCallbackEx { + pub lpVtbl: *mut IBindStatusCallbackExVtbl, +} +extern "C" { + pub fn IBindStatusCallbackEx_RemoteGetBindInfoEx_Proxy( + This: *mut IBindStatusCallbackEx, + grfBINDF: *mut DWORD, + pbindinfo: *mut RemBINDINFO, + pstgmed: *mut RemSTGMEDIUM, + grfBINDF2: *mut DWORD, + pdwReserved: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IBindStatusCallbackEx_RemoteGetBindInfoEx_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0006_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0006_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPAUTHENTICATION = *mut IAuthenticate; +extern "C" { + pub static IID_IAuthenticate: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAuthenticateVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAuthenticate, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Authenticate: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAuthenticate, + phwnd: *mut HWND, + pszUsername: *mut LPWSTR, + pszPassword: *mut LPWSTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAuthenticate { + pub lpVtbl: *mut IAuthenticateVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0007_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0007_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPAUTHENTICATIONEX = *mut IAuthenticateEx; +pub const __MIDL_IAuthenticateEx_0001_AUTHENTICATEF_PROXY: __MIDL_IAuthenticateEx_0001 = 1; +pub const __MIDL_IAuthenticateEx_0001_AUTHENTICATEF_BASIC: __MIDL_IAuthenticateEx_0001 = 2; +pub const __MIDL_IAuthenticateEx_0001_AUTHENTICATEF_HTTP: __MIDL_IAuthenticateEx_0001 = 4; +pub type __MIDL_IAuthenticateEx_0001 = ::std::os::raw::c_int; +pub use self::__MIDL_IAuthenticateEx_0001 as AUTHENTICATEF; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _tagAUTHENTICATEINFO { + pub dwFlags: DWORD, + pub dwReserved: DWORD, +} +pub type AUTHENTICATEINFO = _tagAUTHENTICATEINFO; +extern "C" { + pub static IID_IAuthenticateEx: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAuthenticateExVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAuthenticateEx, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Authenticate: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAuthenticateEx, + phwnd: *mut HWND, + pszUsername: *mut LPWSTR, + pszPassword: *mut LPWSTR, + ) -> HRESULT, + >, + pub AuthenticateEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IAuthenticateEx, + phwnd: *mut HWND, + pszUsername: *mut LPWSTR, + pszPassword: *mut LPWSTR, + pauthinfo: *mut AUTHENTICATEINFO, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IAuthenticateEx { + pub lpVtbl: *mut IAuthenticateExVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0008_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0008_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPHTTPNEGOTIATE = *mut IHttpNegotiate; +extern "C" { + pub static IID_IHttpNegotiate: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IHttpNegotiateVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IHttpNegotiate, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub BeginningTransaction: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IHttpNegotiate, + szURL: LPCWSTR, + szHeaders: LPCWSTR, + dwReserved: DWORD, + pszAdditionalHeaders: *mut LPWSTR, + ) -> HRESULT, + >, + pub OnResponse: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IHttpNegotiate, + dwResponseCode: DWORD, + szResponseHeaders: LPCWSTR, + szRequestHeaders: LPCWSTR, + pszAdditionalRequestHeaders: *mut LPWSTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IHttpNegotiate { + pub lpVtbl: *mut IHttpNegotiateVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0009_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0009_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPHTTPNEGOTIATE2 = *mut IHttpNegotiate2; +extern "C" { + pub static IID_IHttpNegotiate2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IHttpNegotiate2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IHttpNegotiate2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub BeginningTransaction: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IHttpNegotiate2, + szURL: LPCWSTR, + szHeaders: LPCWSTR, + dwReserved: DWORD, + pszAdditionalHeaders: *mut LPWSTR, + ) -> HRESULT, + >, + pub OnResponse: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IHttpNegotiate2, + dwResponseCode: DWORD, + szResponseHeaders: LPCWSTR, + szRequestHeaders: LPCWSTR, + pszAdditionalRequestHeaders: *mut LPWSTR, + ) -> HRESULT, + >, + pub GetRootSecurityId: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IHttpNegotiate2, + pbSecurityId: *mut BYTE, + pcbSecurityId: *mut DWORD, + dwReserved: DWORD_PTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IHttpNegotiate2 { + pub lpVtbl: *mut IHttpNegotiate2Vtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0010_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0010_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPHTTPNEGOTIATE3 = *mut IHttpNegotiate3; +extern "C" { + pub static IID_IHttpNegotiate3: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IHttpNegotiate3Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IHttpNegotiate3, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub BeginningTransaction: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IHttpNegotiate3, + szURL: LPCWSTR, + szHeaders: LPCWSTR, + dwReserved: DWORD, + pszAdditionalHeaders: *mut LPWSTR, + ) -> HRESULT, + >, + pub OnResponse: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IHttpNegotiate3, + dwResponseCode: DWORD, + szResponseHeaders: LPCWSTR, + szRequestHeaders: LPCWSTR, + pszAdditionalRequestHeaders: *mut LPWSTR, + ) -> HRESULT, + >, + pub GetRootSecurityId: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IHttpNegotiate3, + pbSecurityId: *mut BYTE, + pcbSecurityId: *mut DWORD, + dwReserved: DWORD_PTR, + ) -> HRESULT, + >, + pub GetSerializedClientCertContext: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IHttpNegotiate3, + ppbCert: *mut *mut BYTE, + pcbCert: *mut DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IHttpNegotiate3 { + pub lpVtbl: *mut IHttpNegotiate3Vtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0011_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0011_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPWININETFILESTREAM = *mut IWinInetFileStream; +extern "C" { + pub static IID_IWinInetFileStream: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWinInetFileStreamVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWinInetFileStream, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub SetHandleForUnlock: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWinInetFileStream, + hWinInetLockHandle: DWORD_PTR, + dwReserved: DWORD_PTR, + ) -> HRESULT, + >, + pub SetDeleteFile: ::std::option::Option< + unsafe extern "C" fn(This: *mut IWinInetFileStream, dwReserved: DWORD_PTR) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWinInetFileStream { + pub lpVtbl: *mut IWinInetFileStreamVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0012_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0012_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPWINDOWFORBINDINGUI = *mut IWindowForBindingUI; +extern "C" { + pub static IID_IWindowForBindingUI: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWindowForBindingUIVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWindowForBindingUI, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetWindow: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWindowForBindingUI, + rguidReason: *const GUID, + phwnd: *mut HWND, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWindowForBindingUI { + pub lpVtbl: *mut IWindowForBindingUIVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0013_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0013_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPCODEINSTALL = *mut ICodeInstall; +pub const __MIDL_ICodeInstall_0001_CIP_DISK_FULL: __MIDL_ICodeInstall_0001 = 0; +pub const __MIDL_ICodeInstall_0001_CIP_ACCESS_DENIED: __MIDL_ICodeInstall_0001 = 1; +pub const __MIDL_ICodeInstall_0001_CIP_NEWER_VERSION_EXISTS: __MIDL_ICodeInstall_0001 = 2; +pub const __MIDL_ICodeInstall_0001_CIP_OLDER_VERSION_EXISTS: __MIDL_ICodeInstall_0001 = 3; +pub const __MIDL_ICodeInstall_0001_CIP_NAME_CONFLICT: __MIDL_ICodeInstall_0001 = 4; +pub const __MIDL_ICodeInstall_0001_CIP_TRUST_VERIFICATION_COMPONENT_MISSING: + __MIDL_ICodeInstall_0001 = 5; +pub const __MIDL_ICodeInstall_0001_CIP_EXE_SELF_REGISTERATION_TIMEOUT: __MIDL_ICodeInstall_0001 = 6; +pub const __MIDL_ICodeInstall_0001_CIP_UNSAFE_TO_ABORT: __MIDL_ICodeInstall_0001 = 7; +pub const __MIDL_ICodeInstall_0001_CIP_NEED_REBOOT: __MIDL_ICodeInstall_0001 = 8; +pub const __MIDL_ICodeInstall_0001_CIP_NEED_REBOOT_UI_PERMISSION: __MIDL_ICodeInstall_0001 = 9; +pub type __MIDL_ICodeInstall_0001 = ::std::os::raw::c_int; +pub use self::__MIDL_ICodeInstall_0001 as CIP_STATUS; +extern "C" { + pub static IID_ICodeInstall: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICodeInstallVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICodeInstall, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetWindow: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICodeInstall, + rguidReason: *const GUID, + phwnd: *mut HWND, + ) -> HRESULT, + >, + pub OnCodeInstallProblem: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICodeInstall, + ulStatusCode: ULONG, + szDestination: LPCWSTR, + szSource: LPCWSTR, + dwReserved: DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICodeInstall { + pub lpVtbl: *mut ICodeInstallVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0014_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0014_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub const __MIDL_IUri_0001_Uri_PROPERTY_ABSOLUTE_URI: __MIDL_IUri_0001 = 0; +pub const __MIDL_IUri_0001_Uri_PROPERTY_STRING_START: __MIDL_IUri_0001 = 0; +pub const __MIDL_IUri_0001_Uri_PROPERTY_AUTHORITY: __MIDL_IUri_0001 = 1; +pub const __MIDL_IUri_0001_Uri_PROPERTY_DISPLAY_URI: __MIDL_IUri_0001 = 2; +pub const __MIDL_IUri_0001_Uri_PROPERTY_DOMAIN: __MIDL_IUri_0001 = 3; +pub const __MIDL_IUri_0001_Uri_PROPERTY_EXTENSION: __MIDL_IUri_0001 = 4; +pub const __MIDL_IUri_0001_Uri_PROPERTY_FRAGMENT: __MIDL_IUri_0001 = 5; +pub const __MIDL_IUri_0001_Uri_PROPERTY_HOST: __MIDL_IUri_0001 = 6; +pub const __MIDL_IUri_0001_Uri_PROPERTY_PASSWORD: __MIDL_IUri_0001 = 7; +pub const __MIDL_IUri_0001_Uri_PROPERTY_PATH: __MIDL_IUri_0001 = 8; +pub const __MIDL_IUri_0001_Uri_PROPERTY_PATH_AND_QUERY: __MIDL_IUri_0001 = 9; +pub const __MIDL_IUri_0001_Uri_PROPERTY_QUERY: __MIDL_IUri_0001 = 10; +pub const __MIDL_IUri_0001_Uri_PROPERTY_RAW_URI: __MIDL_IUri_0001 = 11; +pub const __MIDL_IUri_0001_Uri_PROPERTY_SCHEME_NAME: __MIDL_IUri_0001 = 12; +pub const __MIDL_IUri_0001_Uri_PROPERTY_USER_INFO: __MIDL_IUri_0001 = 13; +pub const __MIDL_IUri_0001_Uri_PROPERTY_USER_NAME: __MIDL_IUri_0001 = 14; +pub const __MIDL_IUri_0001_Uri_PROPERTY_STRING_LAST: __MIDL_IUri_0001 = 14; +pub const __MIDL_IUri_0001_Uri_PROPERTY_HOST_TYPE: __MIDL_IUri_0001 = 15; +pub const __MIDL_IUri_0001_Uri_PROPERTY_DWORD_START: __MIDL_IUri_0001 = 15; +pub const __MIDL_IUri_0001_Uri_PROPERTY_PORT: __MIDL_IUri_0001 = 16; +pub const __MIDL_IUri_0001_Uri_PROPERTY_SCHEME: __MIDL_IUri_0001 = 17; +pub const __MIDL_IUri_0001_Uri_PROPERTY_ZONE: __MIDL_IUri_0001 = 18; +pub const __MIDL_IUri_0001_Uri_PROPERTY_DWORD_LAST: __MIDL_IUri_0001 = 18; +pub type __MIDL_IUri_0001 = ::std::os::raw::c_int; +pub use self::__MIDL_IUri_0001 as Uri_PROPERTY; +pub const __MIDL_IUri_0002_Uri_HOST_UNKNOWN: __MIDL_IUri_0002 = 0; +pub const __MIDL_IUri_0002_Uri_HOST_DNS: __MIDL_IUri_0002 = 1; +pub const __MIDL_IUri_0002_Uri_HOST_IPV4: __MIDL_IUri_0002 = 2; +pub const __MIDL_IUri_0002_Uri_HOST_IPV6: __MIDL_IUri_0002 = 3; +pub const __MIDL_IUri_0002_Uri_HOST_IDN: __MIDL_IUri_0002 = 4; +pub type __MIDL_IUri_0002 = ::std::os::raw::c_int; +pub use self::__MIDL_IUri_0002 as Uri_HOST_TYPE; +extern "C" { + pub static IID_IUri: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IUriVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUri, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetPropertyBSTR: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUri, + uriProp: Uri_PROPERTY, + pbstrProperty: *mut BSTR, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub GetPropertyLength: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUri, + uriProp: Uri_PROPERTY, + pcchProperty: *mut DWORD, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub GetPropertyDWORD: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUri, + uriProp: Uri_PROPERTY, + pdwProperty: *mut DWORD, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub HasProperty: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUri, + uriProp: Uri_PROPERTY, + pfHasProperty: *mut BOOL, + ) -> HRESULT, + >, + pub GetAbsoluteUri: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrAbsoluteUri: *mut BSTR) -> HRESULT, + >, + pub GetAuthority: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrAuthority: *mut BSTR) -> HRESULT, + >, + pub GetDisplayUri: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrDisplayString: *mut BSTR) -> HRESULT, + >, + pub GetDomain: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrDomain: *mut BSTR) -> HRESULT, + >, + pub GetExtension: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrExtension: *mut BSTR) -> HRESULT, + >, + pub GetFragment: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrFragment: *mut BSTR) -> HRESULT, + >, + pub GetHost: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrHost: *mut BSTR) -> HRESULT, + >, + pub GetPassword: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrPassword: *mut BSTR) -> HRESULT, + >, + pub GetPath: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrPath: *mut BSTR) -> HRESULT, + >, + pub GetPathAndQuery: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrPathAndQuery: *mut BSTR) -> HRESULT, + >, + pub GetQuery: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrQuery: *mut BSTR) -> HRESULT, + >, + pub GetRawUri: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrRawUri: *mut BSTR) -> HRESULT, + >, + pub GetSchemeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrSchemeName: *mut BSTR) -> HRESULT, + >, + pub GetUserInfo: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrUserInfo: *mut BSTR) -> HRESULT, + >, + pub GetUserNameA: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pbstrUserName: *mut BSTR) -> HRESULT, + >, + pub GetHostType: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pdwHostType: *mut DWORD) -> HRESULT, + >, + pub GetPort: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pdwPort: *mut DWORD) -> HRESULT, + >, + pub GetScheme: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pdwScheme: *mut DWORD) -> HRESULT, + >, + pub GetZone: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pdwZone: *mut DWORD) -> HRESULT, + >, + pub GetProperties: + ::std::option::Option HRESULT>, + pub IsEqual: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUri, pUri: *mut IUri, pfEqual: *mut BOOL) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IUri { + pub lpVtbl: *mut IUriVtbl, +} +extern "C" { + pub fn CreateUri( + pwzURI: LPCWSTR, + dwFlags: DWORD, + dwReserved: DWORD_PTR, + ppURI: *mut *mut IUri, + ) -> HRESULT; +} +extern "C" { + pub fn CreateUriWithFragment( + pwzURI: LPCWSTR, + pwzFragment: LPCWSTR, + dwFlags: DWORD, + dwReserved: DWORD_PTR, + ppURI: *mut *mut IUri, + ) -> HRESULT; +} +extern "C" { + pub fn CreateUriFromMultiByteString( + pszANSIInputUri: LPCSTR, + dwEncodingFlags: DWORD, + dwCodePage: DWORD, + dwCreateFlags: DWORD, + dwReserved: DWORD_PTR, + ppUri: *mut *mut IUri, + ) -> HRESULT; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0015_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0015_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IUriContainer: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IUriContainerVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriContainer, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetIUri: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUriContainer, ppIUri: *mut *mut IUri) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IUriContainer { + pub lpVtbl: *mut IUriContainerVtbl, +} +extern "C" { + pub static IID_IUriBuilder: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IUriBuilderVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilder, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub CreateUriSimple: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilder, + dwAllowEncodingPropertyMask: DWORD, + dwReserved: DWORD_PTR, + ppIUri: *mut *mut IUri, + ) -> HRESULT, + >, + pub CreateUri: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilder, + dwCreateFlags: DWORD, + dwAllowEncodingPropertyMask: DWORD, + dwReserved: DWORD_PTR, + ppIUri: *mut *mut IUri, + ) -> HRESULT, + >, + pub CreateUriWithFlags: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilder, + dwCreateFlags: DWORD, + dwUriBuilderFlags: DWORD, + dwAllowEncodingPropertyMask: DWORD, + dwReserved: DWORD_PTR, + ppIUri: *mut *mut IUri, + ) -> HRESULT, + >, + pub GetIUri: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUriBuilder, ppIUri: *mut *mut IUri) -> HRESULT, + >, + pub SetIUri: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUriBuilder, pIUri: *mut IUri) -> HRESULT, + >, + pub GetFragment: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilder, + pcchFragment: *mut DWORD, + ppwzFragment: *mut LPCWSTR, + ) -> HRESULT, + >, + pub GetHost: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilder, + pcchHost: *mut DWORD, + ppwzHost: *mut LPCWSTR, + ) -> HRESULT, + >, + pub GetPassword: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilder, + pcchPassword: *mut DWORD, + ppwzPassword: *mut LPCWSTR, + ) -> HRESULT, + >, + pub GetPath: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilder, + pcchPath: *mut DWORD, + ppwzPath: *mut LPCWSTR, + ) -> HRESULT, + >, + pub GetPort: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilder, + pfHasPort: *mut BOOL, + pdwPort: *mut DWORD, + ) -> HRESULT, + >, + pub GetQuery: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilder, + pcchQuery: *mut DWORD, + ppwzQuery: *mut LPCWSTR, + ) -> HRESULT, + >, + pub GetSchemeName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilder, + pcchSchemeName: *mut DWORD, + ppwzSchemeName: *mut LPCWSTR, + ) -> HRESULT, + >, + pub GetUserNameA: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilder, + pcchUserName: *mut DWORD, + ppwzUserName: *mut LPCWSTR, + ) -> HRESULT, + >, + pub SetFragment: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUriBuilder, pwzNewValue: LPCWSTR) -> HRESULT, + >, + pub SetHost: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUriBuilder, pwzNewValue: LPCWSTR) -> HRESULT, + >, + pub SetPassword: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUriBuilder, pwzNewValue: LPCWSTR) -> HRESULT, + >, + pub SetPath: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUriBuilder, pwzNewValue: LPCWSTR) -> HRESULT, + >, + pub SetPortA: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUriBuilder, fHasPort: BOOL, dwNewValue: DWORD) -> HRESULT, + >, + pub SetQuery: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUriBuilder, pwzNewValue: LPCWSTR) -> HRESULT, + >, + pub SetSchemeName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUriBuilder, pwzNewValue: LPCWSTR) -> HRESULT, + >, + pub SetUserName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUriBuilder, pwzNewValue: LPCWSTR) -> HRESULT, + >, + pub RemoveProperties: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUriBuilder, dwPropertyMask: DWORD) -> HRESULT, + >, + pub HasBeenModified: ::std::option::Option< + unsafe extern "C" fn(This: *mut IUriBuilder, pfModified: *mut BOOL) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IUriBuilder { + pub lpVtbl: *mut IUriBuilderVtbl, +} +extern "C" { + pub static IID_IUriBuilderFactory: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IUriBuilderFactoryVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilderFactory, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub CreateIUriBuilder: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilderFactory, + dwFlags: DWORD, + dwReserved: DWORD_PTR, + ppIUriBuilder: *mut *mut IUriBuilder, + ) -> HRESULT, + >, + pub CreateInitializedIUriBuilder: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IUriBuilderFactory, + dwFlags: DWORD, + dwReserved: DWORD_PTR, + ppIUriBuilder: *mut *mut IUriBuilder, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IUriBuilderFactory { + pub lpVtbl: *mut IUriBuilderFactoryVtbl, +} +extern "C" { + pub fn CreateIUriBuilder( + pIUri: *mut IUri, + dwFlags: DWORD, + dwReserved: DWORD_PTR, + ppIUriBuilder: *mut *mut IUriBuilder, + ) -> HRESULT; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0018_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0018_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPWININETINFO = *mut IWinInetInfo; +extern "C" { + pub static IID_IWinInetInfo: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWinInetInfoVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWinInetInfo, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub QueryOption: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWinInetInfo, + dwOption: DWORD, + pBuffer: LPVOID, + pcbBuf: *mut DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWinInetInfo { + pub lpVtbl: *mut IWinInetInfoVtbl, +} +extern "C" { + pub fn IWinInetInfo_RemoteQueryOption_Proxy( + This: *mut IWinInetInfo, + dwOption: DWORD, + pBuffer: *mut BYTE, + pcbBuf: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IWinInetInfo_RemoteQueryOption_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0019_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0019_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPHTTPSECURITY = *mut IHttpSecurity; +extern "C" { + pub static IID_IHttpSecurity: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IHttpSecurityVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IHttpSecurity, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetWindow: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IHttpSecurity, + rguidReason: *const GUID, + phwnd: *mut HWND, + ) -> HRESULT, + >, + pub OnSecurityProblem: ::std::option::Option< + unsafe extern "C" fn(This: *mut IHttpSecurity, dwProblem: DWORD) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IHttpSecurity { + pub lpVtbl: *mut IHttpSecurityVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0020_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0020_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPWININETHTTPINFO = *mut IWinInetHttpInfo; +extern "C" { + pub static IID_IWinInetHttpInfo: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWinInetHttpInfoVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWinInetHttpInfo, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub QueryOption: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWinInetHttpInfo, + dwOption: DWORD, + pBuffer: LPVOID, + pcbBuf: *mut DWORD, + ) -> HRESULT, + >, + pub QueryInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWinInetHttpInfo, + dwOption: DWORD, + pBuffer: LPVOID, + pcbBuf: *mut DWORD, + pdwFlags: *mut DWORD, + pdwReserved: *mut DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWinInetHttpInfo { + pub lpVtbl: *mut IWinInetHttpInfoVtbl, +} +extern "C" { + pub fn IWinInetHttpInfo_RemoteQueryInfo_Proxy( + This: *mut IWinInetHttpInfo, + dwOption: DWORD, + pBuffer: *mut BYTE, + pcbBuf: *mut DWORD, + pdwFlags: *mut DWORD, + pdwReserved: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IWinInetHttpInfo_RemoteQueryInfo_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0021_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0021_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IWinInetHttpTimeouts: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWinInetHttpTimeoutsVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWinInetHttpTimeouts, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetRequestTimeouts: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWinInetHttpTimeouts, + pdwConnectTimeout: *mut DWORD, + pdwSendTimeout: *mut DWORD, + pdwReceiveTimeout: *mut DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWinInetHttpTimeouts { + pub lpVtbl: *mut IWinInetHttpTimeoutsVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0022_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0022_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPWININETCACHEHINTS = *mut IWinInetCacheHints; +extern "C" { + pub static IID_IWinInetCacheHints: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWinInetCacheHintsVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWinInetCacheHints, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub SetCacheExtension: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWinInetCacheHints, + pwzExt: LPCWSTR, + pszCacheFile: LPVOID, + pcbCacheFile: *mut DWORD, + pdwWinInetError: *mut DWORD, + pdwReserved: *mut DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWinInetCacheHints { + pub lpVtbl: *mut IWinInetCacheHintsVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0023_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0023_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPWININETCACHEHINTS2 = *mut IWinInetCacheHints2; +extern "C" { + pub static IID_IWinInetCacheHints2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWinInetCacheHints2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWinInetCacheHints2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub SetCacheExtension: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWinInetCacheHints2, + pwzExt: LPCWSTR, + pszCacheFile: LPVOID, + pcbCacheFile: *mut DWORD, + pdwWinInetError: *mut DWORD, + pdwReserved: *mut DWORD, + ) -> HRESULT, + >, + pub SetCacheExtension2: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWinInetCacheHints2, + pwzExt: LPCWSTR, + pwzCacheFile: *mut WCHAR, + pcchCacheFile: *mut DWORD, + pdwWinInetError: *mut DWORD, + pdwReserved: *mut DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWinInetCacheHints2 { + pub lpVtbl: *mut IWinInetCacheHints2Vtbl, +} +extern "C" { + pub static SID_BindHost: GUID; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0024_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0024_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPBINDHOST = *mut IBindHost; +extern "C" { + pub static IID_IBindHost: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindHostVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindHost, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub CreateMoniker: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindHost, + szName: LPOLESTR, + pBC: *mut IBindCtx, + ppmk: *mut *mut IMoniker, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub MonikerBindToStorage: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindHost, + pMk: *mut IMoniker, + pBC: *mut IBindCtx, + pBSC: *mut IBindStatusCallback, + riid: *const IID, + ppvObj: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub MonikerBindToObject: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindHost, + pMk: *mut IMoniker, + pBC: *mut IBindCtx, + pBSC: *mut IBindStatusCallback, + riid: *const IID, + ppvObj: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindHost { + pub lpVtbl: *mut IBindHostVtbl, +} +extern "C" { + pub fn IBindHost_RemoteMonikerBindToStorage_Proxy( + This: *mut IBindHost, + pMk: *mut IMoniker, + pBC: *mut IBindCtx, + pBSC: *mut IBindStatusCallback, + riid: *const IID, + ppvObj: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn IBindHost_RemoteMonikerBindToStorage_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn IBindHost_RemoteMonikerBindToObject_Proxy( + This: *mut IBindHost, + pMk: *mut IMoniker, + pBC: *mut IBindCtx, + pBSC: *mut IBindStatusCallback, + riid: *const IID, + ppvObj: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn IBindHost_RemoteMonikerBindToObject_Stub( + This: *mut IRpcStubBuffer, + _pRpcChannelBuffer: *mut IRpcChannelBuffer, + _pRpcMessage: PRPC_MESSAGE, + _pdwStubPhase: *mut DWORD, + ); +} +extern "C" { + pub fn HlinkSimpleNavigateToString( + szTarget: LPCWSTR, + szLocation: LPCWSTR, + szTargetFrameName: LPCWSTR, + pUnk: *mut IUnknown, + pbc: *mut IBindCtx, + arg1: *mut IBindStatusCallback, + grfHLNF: DWORD, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn HlinkSimpleNavigateToMoniker( + pmkTarget: *mut IMoniker, + szLocation: LPCWSTR, + szTargetFrameName: LPCWSTR, + pUnk: *mut IUnknown, + pbc: *mut IBindCtx, + arg1: *mut IBindStatusCallback, + grfHLNF: DWORD, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn URLOpenStreamA( + arg1: LPUNKNOWN, + arg2: LPCSTR, + arg3: DWORD, + arg4: LPBINDSTATUSCALLBACK, + ) -> HRESULT; +} +extern "C" { + pub fn URLOpenStreamW( + arg1: LPUNKNOWN, + arg2: LPCWSTR, + arg3: DWORD, + arg4: LPBINDSTATUSCALLBACK, + ) -> HRESULT; +} +extern "C" { + pub fn URLOpenPullStreamA( + arg1: LPUNKNOWN, + arg2: LPCSTR, + arg3: DWORD, + arg4: LPBINDSTATUSCALLBACK, + ) -> HRESULT; +} +extern "C" { + pub fn URLOpenPullStreamW( + arg1: LPUNKNOWN, + arg2: LPCWSTR, + arg3: DWORD, + arg4: LPBINDSTATUSCALLBACK, + ) -> HRESULT; +} +extern "C" { + pub fn URLDownloadToFileA( + arg1: LPUNKNOWN, + arg2: LPCSTR, + arg3: LPCSTR, + arg4: DWORD, + arg5: LPBINDSTATUSCALLBACK, + ) -> HRESULT; +} +extern "C" { + pub fn URLDownloadToFileW( + arg1: LPUNKNOWN, + arg2: LPCWSTR, + arg3: LPCWSTR, + arg4: DWORD, + arg5: LPBINDSTATUSCALLBACK, + ) -> HRESULT; +} +extern "C" { + pub fn URLDownloadToCacheFileA( + arg1: LPUNKNOWN, + arg2: LPCSTR, + arg3: LPSTR, + cchFileName: DWORD, + arg4: DWORD, + arg5: LPBINDSTATUSCALLBACK, + ) -> HRESULT; +} +extern "C" { + pub fn URLDownloadToCacheFileW( + arg1: LPUNKNOWN, + arg2: LPCWSTR, + arg3: LPWSTR, + cchFileName: DWORD, + arg4: DWORD, + arg5: LPBINDSTATUSCALLBACK, + ) -> HRESULT; +} +extern "C" { + pub fn URLOpenBlockingStreamA( + arg1: LPUNKNOWN, + arg2: LPCSTR, + arg3: *mut LPSTREAM, + arg4: DWORD, + arg5: LPBINDSTATUSCALLBACK, + ) -> HRESULT; +} +extern "C" { + pub fn URLOpenBlockingStreamW( + arg1: LPUNKNOWN, + arg2: LPCWSTR, + arg3: *mut LPSTREAM, + arg4: DWORD, + arg5: LPBINDSTATUSCALLBACK, + ) -> HRESULT; +} +extern "C" { + pub fn HlinkGoBack(pUnk: *mut IUnknown) -> HRESULT; +} +extern "C" { + pub fn HlinkGoForward(pUnk: *mut IUnknown) -> HRESULT; +} +extern "C" { + pub fn HlinkNavigateString(pUnk: *mut IUnknown, szTarget: LPCWSTR) -> HRESULT; +} +extern "C" { + pub fn HlinkNavigateMoniker(pUnk: *mut IUnknown, pmkTarget: *mut IMoniker) -> HRESULT; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0025_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0025_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPIINTERNET = *mut IInternet; +extern "C" { + pub static IID_IInternet: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternet, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternet { + pub lpVtbl: *mut IInternetVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0026_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0026_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPIINTERNETBINDINFO = *mut IInternetBindInfo; +pub const tagBINDSTRING_BINDSTRING_HEADERS: tagBINDSTRING = 1; +pub const tagBINDSTRING_BINDSTRING_ACCEPT_MIMES: tagBINDSTRING = 2; +pub const tagBINDSTRING_BINDSTRING_EXTRA_URL: tagBINDSTRING = 3; +pub const tagBINDSTRING_BINDSTRING_LANGUAGE: tagBINDSTRING = 4; +pub const tagBINDSTRING_BINDSTRING_USERNAME: tagBINDSTRING = 5; +pub const tagBINDSTRING_BINDSTRING_PASSWORD: tagBINDSTRING = 6; +pub const tagBINDSTRING_BINDSTRING_UA_PIXELS: tagBINDSTRING = 7; +pub const tagBINDSTRING_BINDSTRING_UA_COLOR: tagBINDSTRING = 8; +pub const tagBINDSTRING_BINDSTRING_OS: tagBINDSTRING = 9; +pub const tagBINDSTRING_BINDSTRING_USER_AGENT: tagBINDSTRING = 10; +pub const tagBINDSTRING_BINDSTRING_ACCEPT_ENCODINGS: tagBINDSTRING = 11; +pub const tagBINDSTRING_BINDSTRING_POST_COOKIE: tagBINDSTRING = 12; +pub const tagBINDSTRING_BINDSTRING_POST_DATA_MIME: tagBINDSTRING = 13; +pub const tagBINDSTRING_BINDSTRING_URL: tagBINDSTRING = 14; +pub const tagBINDSTRING_BINDSTRING_IID: tagBINDSTRING = 15; +pub const tagBINDSTRING_BINDSTRING_FLAG_BIND_TO_OBJECT: tagBINDSTRING = 16; +pub const tagBINDSTRING_BINDSTRING_PTR_BIND_CONTEXT: tagBINDSTRING = 17; +pub const tagBINDSTRING_BINDSTRING_XDR_ORIGIN: tagBINDSTRING = 18; +pub const tagBINDSTRING_BINDSTRING_DOWNLOADPATH: tagBINDSTRING = 19; +pub const tagBINDSTRING_BINDSTRING_ROOTDOC_URL: tagBINDSTRING = 20; +pub const tagBINDSTRING_BINDSTRING_INITIAL_FILENAME: tagBINDSTRING = 21; +pub const tagBINDSTRING_BINDSTRING_PROXY_USERNAME: tagBINDSTRING = 22; +pub const tagBINDSTRING_BINDSTRING_PROXY_PASSWORD: tagBINDSTRING = 23; +pub const tagBINDSTRING_BINDSTRING_ENTERPRISE_ID: tagBINDSTRING = 24; +pub const tagBINDSTRING_BINDSTRING_DOC_URL: tagBINDSTRING = 25; +pub const tagBINDSTRING_BINDSTRING_SAMESITE_COOKIE_LEVEL: tagBINDSTRING = 26; +pub type tagBINDSTRING = ::std::os::raw::c_int; +pub use self::tagBINDSTRING as BINDSTRING; +extern "C" { + pub static IID_IInternetBindInfo: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetBindInfoVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetBindInfo, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetBindInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetBindInfo, + grfBINDF: *mut DWORD, + pbindinfo: *mut BINDINFO, + ) -> HRESULT, + >, + pub GetBindString: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetBindInfo, + ulStringType: ULONG, + ppwzStr: *mut LPOLESTR, + cEl: ULONG, + pcElFetched: *mut ULONG, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetBindInfo { + pub lpVtbl: *mut IInternetBindInfoVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0027_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0027_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPIINTERNETBINDINFOEX = *mut IInternetBindInfoEx; +extern "C" { + pub static IID_IInternetBindInfoEx: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetBindInfoExVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetBindInfoEx, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetBindInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetBindInfoEx, + grfBINDF: *mut DWORD, + pbindinfo: *mut BINDINFO, + ) -> HRESULT, + >, + pub GetBindString: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetBindInfoEx, + ulStringType: ULONG, + ppwzStr: *mut LPOLESTR, + cEl: ULONG, + pcElFetched: *mut ULONG, + ) -> HRESULT, + >, + pub GetBindInfoEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetBindInfoEx, + grfBINDF: *mut DWORD, + pbindinfo: *mut BINDINFO, + grfBINDF2: *mut DWORD, + pdwReserved: *mut DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetBindInfoEx { + pub lpVtbl: *mut IInternetBindInfoExVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0028_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0028_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPIINTERNETPROTOCOLROOT = *mut IInternetProtocolRoot; +pub const _tagPI_FLAGS_PI_PARSE_URL: _tagPI_FLAGS = 1; +pub const _tagPI_FLAGS_PI_FILTER_MODE: _tagPI_FLAGS = 2; +pub const _tagPI_FLAGS_PI_FORCE_ASYNC: _tagPI_FLAGS = 4; +pub const _tagPI_FLAGS_PI_USE_WORKERTHREAD: _tagPI_FLAGS = 8; +pub const _tagPI_FLAGS_PI_MIMEVERIFICATION: _tagPI_FLAGS = 16; +pub const _tagPI_FLAGS_PI_CLSIDLOOKUP: _tagPI_FLAGS = 32; +pub const _tagPI_FLAGS_PI_DATAPROGRESS: _tagPI_FLAGS = 64; +pub const _tagPI_FLAGS_PI_SYNCHRONOUS: _tagPI_FLAGS = 128; +pub const _tagPI_FLAGS_PI_APARTMENTTHREADED: _tagPI_FLAGS = 256; +pub const _tagPI_FLAGS_PI_CLASSINSTALL: _tagPI_FLAGS = 512; +pub const _tagPI_FLAGS_PI_PASSONBINDCTX: _tagPI_FLAGS = 8192; +pub const _tagPI_FLAGS_PI_NOMIMEHANDLER: _tagPI_FLAGS = 32768; +pub const _tagPI_FLAGS_PI_LOADAPPDIRECT: _tagPI_FLAGS = 16384; +pub const _tagPI_FLAGS_PD_FORCE_SWITCH: _tagPI_FLAGS = 65536; +pub const _tagPI_FLAGS_PI_PREFERDEFAULTHANDLER: _tagPI_FLAGS = 131072; +pub type _tagPI_FLAGS = ::std::os::raw::c_int; +pub use self::_tagPI_FLAGS as PI_FLAGS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _tagPROTOCOLDATA { + pub grfFlags: DWORD, + pub dwState: DWORD, + pub pData: LPVOID, + pub cbData: ULONG, +} +pub type PROTOCOLDATA = _tagPROTOCOLDATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _tagStartParam { + pub iid: IID, + pub pIBindCtx: *mut IBindCtx, + pub pItf: *mut IUnknown, +} +pub type StartParam = _tagStartParam; +extern "C" { + pub static IID_IInternetProtocolRoot: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetProtocolRootVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolRoot, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub Start: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolRoot, + szUrl: LPCWSTR, + pOIProtSink: *mut IInternetProtocolSink, + pOIBindInfo: *mut IInternetBindInfo, + grfPI: DWORD, + dwReserved: HANDLE_PTR, + ) -> HRESULT, + >, + pub Continue: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolRoot, + pProtocolData: *mut PROTOCOLDATA, + ) -> HRESULT, + >, + pub Abort: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolRoot, + hrReason: HRESULT, + dwOptions: DWORD, + ) -> HRESULT, + >, + pub Terminate: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetProtocolRoot, dwOptions: DWORD) -> HRESULT, + >, + pub Suspend: + ::std::option::Option HRESULT>, + pub Resume: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetProtocolRoot { + pub lpVtbl: *mut IInternetProtocolRootVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0029_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0029_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPIINTERNETPROTOCOL = *mut IInternetProtocol; +extern "C" { + pub static IID_IInternetProtocol: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetProtocolVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocol, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub Start: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocol, + szUrl: LPCWSTR, + pOIProtSink: *mut IInternetProtocolSink, + pOIBindInfo: *mut IInternetBindInfo, + grfPI: DWORD, + dwReserved: HANDLE_PTR, + ) -> HRESULT, + >, + pub Continue: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocol, + pProtocolData: *mut PROTOCOLDATA, + ) -> HRESULT, + >, + pub Abort: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocol, + hrReason: HRESULT, + dwOptions: DWORD, + ) -> HRESULT, + >, + pub Terminate: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetProtocol, dwOptions: DWORD) -> HRESULT, + >, + pub Suspend: + ::std::option::Option HRESULT>, + pub Resume: + ::std::option::Option HRESULT>, + pub Read: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocol, + pv: *mut ::std::os::raw::c_void, + cb: ULONG, + pcbRead: *mut ULONG, + ) -> HRESULT, + >, + pub Seek: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocol, + dlibMove: LARGE_INTEGER, + dwOrigin: DWORD, + plibNewPosition: *mut ULARGE_INTEGER, + ) -> HRESULT, + >, + pub LockRequest: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetProtocol, dwOptions: DWORD) -> HRESULT, + >, + pub UnlockRequest: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetProtocol { + pub lpVtbl: *mut IInternetProtocolVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0030_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0030_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IInternetProtocolEx: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetProtocolExVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolEx, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub Start: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolEx, + szUrl: LPCWSTR, + pOIProtSink: *mut IInternetProtocolSink, + pOIBindInfo: *mut IInternetBindInfo, + grfPI: DWORD, + dwReserved: HANDLE_PTR, + ) -> HRESULT, + >, + pub Continue: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolEx, + pProtocolData: *mut PROTOCOLDATA, + ) -> HRESULT, + >, + pub Abort: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolEx, + hrReason: HRESULT, + dwOptions: DWORD, + ) -> HRESULT, + >, + pub Terminate: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetProtocolEx, dwOptions: DWORD) -> HRESULT, + >, + pub Suspend: + ::std::option::Option HRESULT>, + pub Resume: + ::std::option::Option HRESULT>, + pub Read: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolEx, + pv: *mut ::std::os::raw::c_void, + cb: ULONG, + pcbRead: *mut ULONG, + ) -> HRESULT, + >, + pub Seek: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolEx, + dlibMove: LARGE_INTEGER, + dwOrigin: DWORD, + plibNewPosition: *mut ULARGE_INTEGER, + ) -> HRESULT, + >, + pub LockRequest: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetProtocolEx, dwOptions: DWORD) -> HRESULT, + >, + pub UnlockRequest: + ::std::option::Option HRESULT>, + pub StartEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolEx, + pUri: *mut IUri, + pOIProtSink: *mut IInternetProtocolSink, + pOIBindInfo: *mut IInternetBindInfo, + grfPI: DWORD, + dwReserved: HANDLE_PTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetProtocolEx { + pub lpVtbl: *mut IInternetProtocolExVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0031_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0031_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPIINTERNETPROTOCOLSINK = *mut IInternetProtocolSink; +extern "C" { + pub static IID_IInternetProtocolSink: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetProtocolSinkVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolSink, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub Switch: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolSink, + pProtocolData: *mut PROTOCOLDATA, + ) -> HRESULT, + >, + pub ReportProgress: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolSink, + ulStatusCode: ULONG, + szStatusText: LPCWSTR, + ) -> HRESULT, + >, + pub ReportData: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolSink, + grfBSCF: DWORD, + ulProgress: ULONG, + ulProgressMax: ULONG, + ) -> HRESULT, + >, + pub ReportResult: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolSink, + hrResult: HRESULT, + dwError: DWORD, + szResult: LPCWSTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetProtocolSink { + pub lpVtbl: *mut IInternetProtocolSinkVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0032_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0032_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPIINTERNETPROTOCOLSINKStackable = *mut IInternetProtocolSinkStackable; +extern "C" { + pub static IID_IInternetProtocolSinkStackable: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetProtocolSinkStackableVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolSinkStackable, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetProtocolSinkStackable) -> ULONG, + >, + pub Release: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetProtocolSinkStackable) -> ULONG, + >, + pub SwitchSink: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolSinkStackable, + pOIProtSink: *mut IInternetProtocolSink, + ) -> HRESULT, + >, + pub CommitSwitch: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetProtocolSinkStackable) -> HRESULT, + >, + pub RollbackSwitch: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetProtocolSinkStackable) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetProtocolSinkStackable { + pub lpVtbl: *mut IInternetProtocolSinkStackableVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0033_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0033_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPIINTERNETSESSION = *mut IInternetSession; +pub const _tagOIBDG_FLAGS_OIBDG_APARTMENTTHREADED: _tagOIBDG_FLAGS = 256; +pub const _tagOIBDG_FLAGS_OIBDG_DATAONLY: _tagOIBDG_FLAGS = 4096; +pub type _tagOIBDG_FLAGS = ::std::os::raw::c_int; +pub use self::_tagOIBDG_FLAGS as OIBDG_FLAGS; +extern "C" { + pub static IID_IInternetSession: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetSessionVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSession, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub RegisterNameSpace: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSession, + pCF: *mut IClassFactory, + rclsid: *const IID, + pwzProtocol: LPCWSTR, + cPatterns: ULONG, + ppwzPatterns: *const LPCWSTR, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub UnregisterNameSpace: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSession, + pCF: *mut IClassFactory, + pszProtocol: LPCWSTR, + ) -> HRESULT, + >, + pub RegisterMimeFilter: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSession, + pCF: *mut IClassFactory, + rclsid: *const IID, + pwzType: LPCWSTR, + ) -> HRESULT, + >, + pub UnregisterMimeFilter: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSession, + pCF: *mut IClassFactory, + pwzType: LPCWSTR, + ) -> HRESULT, + >, + pub CreateBinding: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSession, + pBC: LPBC, + szUrl: LPCWSTR, + pUnkOuter: *mut IUnknown, + ppUnk: *mut *mut IUnknown, + ppOInetProt: *mut *mut IInternetProtocol, + dwOption: DWORD, + ) -> HRESULT, + >, + pub SetSessionOption: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSession, + dwOption: DWORD, + pBuffer: LPVOID, + dwBufferLength: DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub GetSessionOption: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSession, + dwOption: DWORD, + pBuffer: LPVOID, + pdwBufferLength: *mut DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetSession { + pub lpVtbl: *mut IInternetSessionVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0034_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0034_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPIINTERNETTHREADSWITCH = *mut IInternetThreadSwitch; +extern "C" { + pub static IID_IInternetThreadSwitch: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetThreadSwitchVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetThreadSwitch, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub Prepare: + ::std::option::Option HRESULT>, + pub Continue: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetThreadSwitch { + pub lpVtbl: *mut IInternetThreadSwitchVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0035_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0035_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPIINTERNETPRIORITY = *mut IInternetPriority; +extern "C" { + pub static IID_IInternetPriority: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetPriorityVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetPriority, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub SetPriority: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetPriority, nPriority: LONG) -> HRESULT, + >, + pub GetPriority: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetPriority, pnPriority: *mut LONG) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetPriority { + pub lpVtbl: *mut IInternetPriorityVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0036_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0036_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPIINTERNETPROTOCOLINFO = *mut IInternetProtocolInfo; +pub const _tagPARSEACTION_PARSE_CANONICALIZE: _tagPARSEACTION = 1; +pub const _tagPARSEACTION_PARSE_FRIENDLY: _tagPARSEACTION = 2; +pub const _tagPARSEACTION_PARSE_SECURITY_URL: _tagPARSEACTION = 3; +pub const _tagPARSEACTION_PARSE_ROOTDOCUMENT: _tagPARSEACTION = 4; +pub const _tagPARSEACTION_PARSE_DOCUMENT: _tagPARSEACTION = 5; +pub const _tagPARSEACTION_PARSE_ANCHOR: _tagPARSEACTION = 6; +pub const _tagPARSEACTION_PARSE_ENCODE_IS_UNESCAPE: _tagPARSEACTION = 7; +pub const _tagPARSEACTION_PARSE_DECODE_IS_ESCAPE: _tagPARSEACTION = 8; +pub const _tagPARSEACTION_PARSE_PATH_FROM_URL: _tagPARSEACTION = 9; +pub const _tagPARSEACTION_PARSE_URL_FROM_PATH: _tagPARSEACTION = 10; +pub const _tagPARSEACTION_PARSE_MIME: _tagPARSEACTION = 11; +pub const _tagPARSEACTION_PARSE_SERVER: _tagPARSEACTION = 12; +pub const _tagPARSEACTION_PARSE_SCHEMA: _tagPARSEACTION = 13; +pub const _tagPARSEACTION_PARSE_SITE: _tagPARSEACTION = 14; +pub const _tagPARSEACTION_PARSE_DOMAIN: _tagPARSEACTION = 15; +pub const _tagPARSEACTION_PARSE_LOCATION: _tagPARSEACTION = 16; +pub const _tagPARSEACTION_PARSE_SECURITY_DOMAIN: _tagPARSEACTION = 17; +pub const _tagPARSEACTION_PARSE_ESCAPE: _tagPARSEACTION = 18; +pub const _tagPARSEACTION_PARSE_UNESCAPE: _tagPARSEACTION = 19; +pub type _tagPARSEACTION = ::std::os::raw::c_int; +pub use self::_tagPARSEACTION as PARSEACTION; +pub const _tagPSUACTION_PSU_DEFAULT: _tagPSUACTION = 1; +pub const _tagPSUACTION_PSU_SECURITY_URL_ONLY: _tagPSUACTION = 2; +pub type _tagPSUACTION = ::std::os::raw::c_int; +pub use self::_tagPSUACTION as PSUACTION; +pub const _tagQUERYOPTION_QUERY_EXPIRATION_DATE: _tagQUERYOPTION = 1; +pub const _tagQUERYOPTION_QUERY_TIME_OF_LAST_CHANGE: _tagQUERYOPTION = 2; +pub const _tagQUERYOPTION_QUERY_CONTENT_ENCODING: _tagQUERYOPTION = 3; +pub const _tagQUERYOPTION_QUERY_CONTENT_TYPE: _tagQUERYOPTION = 4; +pub const _tagQUERYOPTION_QUERY_REFRESH: _tagQUERYOPTION = 5; +pub const _tagQUERYOPTION_QUERY_RECOMBINE: _tagQUERYOPTION = 6; +pub const _tagQUERYOPTION_QUERY_CAN_NAVIGATE: _tagQUERYOPTION = 7; +pub const _tagQUERYOPTION_QUERY_USES_NETWORK: _tagQUERYOPTION = 8; +pub const _tagQUERYOPTION_QUERY_IS_CACHED: _tagQUERYOPTION = 9; +pub const _tagQUERYOPTION_QUERY_IS_INSTALLEDENTRY: _tagQUERYOPTION = 10; +pub const _tagQUERYOPTION_QUERY_IS_CACHED_OR_MAPPED: _tagQUERYOPTION = 11; +pub const _tagQUERYOPTION_QUERY_USES_CACHE: _tagQUERYOPTION = 12; +pub const _tagQUERYOPTION_QUERY_IS_SECURE: _tagQUERYOPTION = 13; +pub const _tagQUERYOPTION_QUERY_IS_SAFE: _tagQUERYOPTION = 14; +pub const _tagQUERYOPTION_QUERY_USES_HISTORYFOLDER: _tagQUERYOPTION = 15; +pub const _tagQUERYOPTION_QUERY_IS_CACHED_AND_USABLE_OFFLINE: _tagQUERYOPTION = 16; +pub type _tagQUERYOPTION = ::std::os::raw::c_int; +pub use self::_tagQUERYOPTION as QUERYOPTION; +extern "C" { + pub static IID_IInternetProtocolInfo: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetProtocolInfoVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolInfo, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub ParseUrl: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolInfo, + pwzUrl: LPCWSTR, + ParseAction: PARSEACTION, + dwParseFlags: DWORD, + pwzResult: LPWSTR, + cchResult: DWORD, + pcchResult: *mut DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub CombineUrl: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolInfo, + pwzBaseUrl: LPCWSTR, + pwzRelativeUrl: LPCWSTR, + dwCombineFlags: DWORD, + pwzResult: LPWSTR, + cchResult: DWORD, + pcchResult: *mut DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub CompareUrl: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolInfo, + pwzUrl1: LPCWSTR, + pwzUrl2: LPCWSTR, + dwCompareFlags: DWORD, + ) -> HRESULT, + >, + pub QueryInfo: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetProtocolInfo, + pwzUrl: LPCWSTR, + OueryOption: QUERYOPTION, + dwQueryFlags: DWORD, + pBuffer: LPVOID, + cbBuffer: DWORD, + pcbBuf: *mut DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetProtocolInfo { + pub lpVtbl: *mut IInternetProtocolInfoVtbl, +} +extern "C" { + pub fn CoInternetParseUrl( + pwzUrl: LPCWSTR, + ParseAction: PARSEACTION, + dwFlags: DWORD, + pszResult: LPWSTR, + cchResult: DWORD, + pcchResult: *mut DWORD, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CoInternetParseIUri( + pIUri: *mut IUri, + ParseAction: PARSEACTION, + dwFlags: DWORD, + pwzResult: LPWSTR, + cchResult: DWORD, + pcchResult: *mut DWORD, + dwReserved: DWORD_PTR, + ) -> HRESULT; +} +extern "C" { + pub fn CoInternetCombineUrl( + pwzBaseUrl: LPCWSTR, + pwzRelativeUrl: LPCWSTR, + dwCombineFlags: DWORD, + pszResult: LPWSTR, + cchResult: DWORD, + pcchResult: *mut DWORD, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CoInternetCombineUrlEx( + pBaseUri: *mut IUri, + pwzRelativeUrl: LPCWSTR, + dwCombineFlags: DWORD, + ppCombinedUri: *mut *mut IUri, + dwReserved: DWORD_PTR, + ) -> HRESULT; +} +extern "C" { + pub fn CoInternetCombineIUri( + pBaseUri: *mut IUri, + pRelativeUri: *mut IUri, + dwCombineFlags: DWORD, + ppCombinedUri: *mut *mut IUri, + dwReserved: DWORD_PTR, + ) -> HRESULT; +} +extern "C" { + pub fn CoInternetCompareUrl(pwzUrl1: LPCWSTR, pwzUrl2: LPCWSTR, dwFlags: DWORD) -> HRESULT; +} +extern "C" { + pub fn CoInternetGetProtocolFlags( + pwzUrl: LPCWSTR, + pdwFlags: *mut DWORD, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CoInternetQueryInfo( + pwzUrl: LPCWSTR, + QueryOptions: QUERYOPTION, + dwQueryFlags: DWORD, + pvBuffer: LPVOID, + cbBuffer: DWORD, + pcbBuffer: *mut DWORD, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CoInternetGetSession( + dwSessionMode: DWORD, + ppIInternetSession: *mut *mut IInternetSession, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CoInternetGetSecurityUrl( + pwszUrl: LPCWSTR, + ppwszSecUrl: *mut LPWSTR, + psuAction: PSUACTION, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn AsyncInstallDistributionUnit( + szDistUnit: LPCWSTR, + szTYPE: LPCWSTR, + szExt: LPCWSTR, + dwFileVersionMS: DWORD, + dwFileVersionLS: DWORD, + szURL: LPCWSTR, + pbc: *mut IBindCtx, + pvReserved: LPVOID, + flags: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CoInternetGetSecurityUrlEx( + pUri: *mut IUri, + ppSecUri: *mut *mut IUri, + psuAction: PSUACTION, + dwReserved: DWORD_PTR, + ) -> HRESULT; +} +pub const _tagINTERNETFEATURELIST_FEATURE_OBJECT_CACHING: _tagINTERNETFEATURELIST = 0; +pub const _tagINTERNETFEATURELIST_FEATURE_ZONE_ELEVATION: _tagINTERNETFEATURELIST = 1; +pub const _tagINTERNETFEATURELIST_FEATURE_MIME_HANDLING: _tagINTERNETFEATURELIST = 2; +pub const _tagINTERNETFEATURELIST_FEATURE_MIME_SNIFFING: _tagINTERNETFEATURELIST = 3; +pub const _tagINTERNETFEATURELIST_FEATURE_WINDOW_RESTRICTIONS: _tagINTERNETFEATURELIST = 4; +pub const _tagINTERNETFEATURELIST_FEATURE_WEBOC_POPUPMANAGEMENT: _tagINTERNETFEATURELIST = 5; +pub const _tagINTERNETFEATURELIST_FEATURE_BEHAVIORS: _tagINTERNETFEATURELIST = 6; +pub const _tagINTERNETFEATURELIST_FEATURE_DISABLE_MK_PROTOCOL: _tagINTERNETFEATURELIST = 7; +pub const _tagINTERNETFEATURELIST_FEATURE_LOCALMACHINE_LOCKDOWN: _tagINTERNETFEATURELIST = 8; +pub const _tagINTERNETFEATURELIST_FEATURE_SECURITYBAND: _tagINTERNETFEATURELIST = 9; +pub const _tagINTERNETFEATURELIST_FEATURE_RESTRICT_ACTIVEXINSTALL: _tagINTERNETFEATURELIST = 10; +pub const _tagINTERNETFEATURELIST_FEATURE_VALIDATE_NAVIGATE_URL: _tagINTERNETFEATURELIST = 11; +pub const _tagINTERNETFEATURELIST_FEATURE_RESTRICT_FILEDOWNLOAD: _tagINTERNETFEATURELIST = 12; +pub const _tagINTERNETFEATURELIST_FEATURE_ADDON_MANAGEMENT: _tagINTERNETFEATURELIST = 13; +pub const _tagINTERNETFEATURELIST_FEATURE_PROTOCOL_LOCKDOWN: _tagINTERNETFEATURELIST = 14; +pub const _tagINTERNETFEATURELIST_FEATURE_HTTP_USERNAME_PASSWORD_DISABLE: _tagINTERNETFEATURELIST = + 15; +pub const _tagINTERNETFEATURELIST_FEATURE_SAFE_BINDTOOBJECT: _tagINTERNETFEATURELIST = 16; +pub const _tagINTERNETFEATURELIST_FEATURE_UNC_SAVEDFILECHECK: _tagINTERNETFEATURELIST = 17; +pub const _tagINTERNETFEATURELIST_FEATURE_GET_URL_DOM_FILEPATH_UNENCODED: _tagINTERNETFEATURELIST = + 18; +pub const _tagINTERNETFEATURELIST_FEATURE_TABBED_BROWSING: _tagINTERNETFEATURELIST = 19; +pub const _tagINTERNETFEATURELIST_FEATURE_SSLUX: _tagINTERNETFEATURELIST = 20; +pub const _tagINTERNETFEATURELIST_FEATURE_DISABLE_NAVIGATION_SOUNDS: _tagINTERNETFEATURELIST = 21; +pub const _tagINTERNETFEATURELIST_FEATURE_DISABLE_LEGACY_COMPRESSION: _tagINTERNETFEATURELIST = 22; +pub const _tagINTERNETFEATURELIST_FEATURE_FORCE_ADDR_AND_STATUS: _tagINTERNETFEATURELIST = 23; +pub const _tagINTERNETFEATURELIST_FEATURE_XMLHTTP: _tagINTERNETFEATURELIST = 24; +pub const _tagINTERNETFEATURELIST_FEATURE_DISABLE_TELNET_PROTOCOL: _tagINTERNETFEATURELIST = 25; +pub const _tagINTERNETFEATURELIST_FEATURE_FEEDS: _tagINTERNETFEATURELIST = 26; +pub const _tagINTERNETFEATURELIST_FEATURE_BLOCK_INPUT_PROMPTS: _tagINTERNETFEATURELIST = 27; +pub const _tagINTERNETFEATURELIST_FEATURE_ENTRY_COUNT: _tagINTERNETFEATURELIST = 28; +pub type _tagINTERNETFEATURELIST = ::std::os::raw::c_int; +pub use self::_tagINTERNETFEATURELIST as INTERNETFEATURELIST; +extern "C" { + pub fn CoInternetSetFeatureEnabled( + FeatureEntry: INTERNETFEATURELIST, + dwFlags: DWORD, + fEnable: BOOL, + ) -> HRESULT; +} +extern "C" { + pub fn CoInternetIsFeatureEnabled(FeatureEntry: INTERNETFEATURELIST, dwFlags: DWORD) + -> HRESULT; +} +extern "C" { + pub fn CoInternetIsFeatureEnabledForUrl( + FeatureEntry: INTERNETFEATURELIST, + dwFlags: DWORD, + szURL: LPCWSTR, + pSecMgr: *mut IInternetSecurityManager, + ) -> HRESULT; +} +extern "C" { + pub fn CoInternetIsFeatureEnabledForIUri( + FeatureEntry: INTERNETFEATURELIST, + dwFlags: DWORD, + pIUri: *mut IUri, + pSecMgr: *mut IInternetSecurityManagerEx2, + ) -> HRESULT; +} +extern "C" { + pub fn CoInternetIsFeatureZoneElevationEnabled( + szFromURL: LPCWSTR, + szToURL: LPCWSTR, + pSecMgr: *mut IInternetSecurityManager, + dwFlags: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CopyStgMedium(pcstgmedSrc: *const STGMEDIUM, pstgmedDest: *mut STGMEDIUM) -> HRESULT; +} +extern "C" { + pub fn CopyBindInfo(pcbiSrc: *const BINDINFO, pbiDest: *mut BINDINFO) -> HRESULT; +} +extern "C" { + pub fn ReleaseBindInfo(pbindinfo: *mut BINDINFO); +} +extern "C" { + pub fn IEGetUserPrivateNamespaceName() -> PWSTR; +} +extern "C" { + pub fn CoInternetCreateSecurityManager( + pSP: *mut IServiceProvider, + ppSM: *mut *mut IInternetSecurityManager, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn CoInternetCreateZoneManager( + pSP: *mut IServiceProvider, + ppZM: *mut *mut IInternetZoneManager, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub static CLSID_InternetSecurityManager: IID; +} +extern "C" { + pub static CLSID_InternetZoneManager: IID; +} +extern "C" { + pub static CLSID_PersistentZoneIdentifier: IID; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0037_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0037_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IInternetSecurityMgrSite: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetSecurityMgrSiteVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityMgrSite, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetWindow: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetSecurityMgrSite, phwnd: *mut HWND) -> HRESULT, + >, + pub EnableModeless: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetSecurityMgrSite, fEnable: BOOL) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetSecurityMgrSite { + pub lpVtbl: *mut IInternetSecurityMgrSiteVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0038_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0038_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub const __MIDL_IInternetSecurityManager_0001_PUAF_DEFAULT: __MIDL_IInternetSecurityManager_0001 = + 0; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_NOUI: __MIDL_IInternetSecurityManager_0001 = 1; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_ISFILE: __MIDL_IInternetSecurityManager_0001 = + 2; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_WARN_IF_DENIED: + __MIDL_IInternetSecurityManager_0001 = 4; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_FORCEUI_FOREGROUND: + __MIDL_IInternetSecurityManager_0001 = 8; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_CHECK_TIFS: + __MIDL_IInternetSecurityManager_0001 = 16; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_DONTCHECKBOXINDIALOG: + __MIDL_IInternetSecurityManager_0001 = 32; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_TRUSTED: __MIDL_IInternetSecurityManager_0001 = + 64; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_ACCEPT_WILDCARD_SCHEME: + __MIDL_IInternetSecurityManager_0001 = 128; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_ENFORCERESTRICTED: + __MIDL_IInternetSecurityManager_0001 = 256; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_NOSAVEDFILECHECK: + __MIDL_IInternetSecurityManager_0001 = 512; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_REQUIRESAVEDFILECHECK: + __MIDL_IInternetSecurityManager_0001 = 1024; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_DONT_USE_CACHE: + __MIDL_IInternetSecurityManager_0001 = 4096; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_RESERVED1: + __MIDL_IInternetSecurityManager_0001 = 8192; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_RESERVED2: + __MIDL_IInternetSecurityManager_0001 = 16384; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_LMZ_UNLOCKED: + __MIDL_IInternetSecurityManager_0001 = 65536; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_LMZ_LOCKED: + __MIDL_IInternetSecurityManager_0001 = 131072; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_DEFAULTZONEPOL: + __MIDL_IInternetSecurityManager_0001 = 262144; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_NPL_USE_LOCKED_IF_RESTRICTED: + __MIDL_IInternetSecurityManager_0001 = 524288; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_NOUIIFLOCKED: + __MIDL_IInternetSecurityManager_0001 = 1048576; +pub const __MIDL_IInternetSecurityManager_0001_PUAF_DRAGPROTOCOLCHECK: + __MIDL_IInternetSecurityManager_0001 = 2097152; +pub type __MIDL_IInternetSecurityManager_0001 = ::std::os::raw::c_int; +pub use self::__MIDL_IInternetSecurityManager_0001 as PUAF; +pub const __MIDL_IInternetSecurityManager_0002_PUAFOUT_DEFAULT: + __MIDL_IInternetSecurityManager_0002 = 0; +pub const __MIDL_IInternetSecurityManager_0002_PUAFOUT_ISLOCKZONEPOLICY: + __MIDL_IInternetSecurityManager_0002 = 1; +pub type __MIDL_IInternetSecurityManager_0002 = ::std::os::raw::c_int; +pub use self::__MIDL_IInternetSecurityManager_0002 as PUAFOUT; +pub const __MIDL_IInternetSecurityManager_0003_SZM_CREATE: __MIDL_IInternetSecurityManager_0003 = 0; +pub const __MIDL_IInternetSecurityManager_0003_SZM_DELETE: __MIDL_IInternetSecurityManager_0003 = 1; +pub type __MIDL_IInternetSecurityManager_0003 = ::std::os::raw::c_int; +pub use self::__MIDL_IInternetSecurityManager_0003 as SZM_FLAGS; +extern "C" { + pub static IID_IInternetSecurityManager: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetSecurityManagerVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManager, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub SetSecuritySite: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManager, + pSite: *mut IInternetSecurityMgrSite, + ) -> HRESULT, + >, + pub GetSecuritySite: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManager, + ppSite: *mut *mut IInternetSecurityMgrSite, + ) -> HRESULT, + >, + pub MapUrlToZone: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManager, + pwszUrl: LPCWSTR, + pdwZone: *mut DWORD, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub GetSecurityId: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManager, + pwszUrl: LPCWSTR, + pbSecurityId: *mut BYTE, + pcbSecurityId: *mut DWORD, + dwReserved: DWORD_PTR, + ) -> HRESULT, + >, + pub ProcessUrlAction: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManager, + pwszUrl: LPCWSTR, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + pContext: *mut BYTE, + cbContext: DWORD, + dwFlags: DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub QueryCustomPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManager, + pwszUrl: LPCWSTR, + guidKey: *const GUID, + ppPolicy: *mut *mut BYTE, + pcbPolicy: *mut DWORD, + pContext: *mut BYTE, + cbContext: DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub SetZoneMapping: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManager, + dwZone: DWORD, + lpszPattern: LPCWSTR, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub GetZoneMappings: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManager, + dwZone: DWORD, + ppenumString: *mut *mut IEnumString, + dwFlags: DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetSecurityManager { + pub lpVtbl: *mut IInternetSecurityManagerVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0039_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0039_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IInternetSecurityManagerEx: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetSecurityManagerExVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub SetSecuritySite: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx, + pSite: *mut IInternetSecurityMgrSite, + ) -> HRESULT, + >, + pub GetSecuritySite: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx, + ppSite: *mut *mut IInternetSecurityMgrSite, + ) -> HRESULT, + >, + pub MapUrlToZone: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx, + pwszUrl: LPCWSTR, + pdwZone: *mut DWORD, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub GetSecurityId: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx, + pwszUrl: LPCWSTR, + pbSecurityId: *mut BYTE, + pcbSecurityId: *mut DWORD, + dwReserved: DWORD_PTR, + ) -> HRESULT, + >, + pub ProcessUrlAction: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx, + pwszUrl: LPCWSTR, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + pContext: *mut BYTE, + cbContext: DWORD, + dwFlags: DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub QueryCustomPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx, + pwszUrl: LPCWSTR, + guidKey: *const GUID, + ppPolicy: *mut *mut BYTE, + pcbPolicy: *mut DWORD, + pContext: *mut BYTE, + cbContext: DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub SetZoneMapping: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx, + dwZone: DWORD, + lpszPattern: LPCWSTR, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub GetZoneMappings: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx, + dwZone: DWORD, + ppenumString: *mut *mut IEnumString, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub ProcessUrlActionEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx, + pwszUrl: LPCWSTR, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + pContext: *mut BYTE, + cbContext: DWORD, + dwFlags: DWORD, + dwReserved: DWORD, + pdwOutFlags: *mut DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetSecurityManagerEx { + pub lpVtbl: *mut IInternetSecurityManagerExVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0040_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0040_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IInternetSecurityManagerEx2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetSecurityManagerEx2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetSecurityManagerEx2) -> ULONG, + >, + pub Release: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetSecurityManagerEx2) -> ULONG, + >, + pub SetSecuritySite: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx2, + pSite: *mut IInternetSecurityMgrSite, + ) -> HRESULT, + >, + pub GetSecuritySite: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx2, + ppSite: *mut *mut IInternetSecurityMgrSite, + ) -> HRESULT, + >, + pub MapUrlToZone: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx2, + pwszUrl: LPCWSTR, + pdwZone: *mut DWORD, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub GetSecurityId: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx2, + pwszUrl: LPCWSTR, + pbSecurityId: *mut BYTE, + pcbSecurityId: *mut DWORD, + dwReserved: DWORD_PTR, + ) -> HRESULT, + >, + pub ProcessUrlAction: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx2, + pwszUrl: LPCWSTR, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + pContext: *mut BYTE, + cbContext: DWORD, + dwFlags: DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub QueryCustomPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx2, + pwszUrl: LPCWSTR, + guidKey: *const GUID, + ppPolicy: *mut *mut BYTE, + pcbPolicy: *mut DWORD, + pContext: *mut BYTE, + cbContext: DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub SetZoneMapping: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx2, + dwZone: DWORD, + lpszPattern: LPCWSTR, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub GetZoneMappings: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx2, + dwZone: DWORD, + ppenumString: *mut *mut IEnumString, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub ProcessUrlActionEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx2, + pwszUrl: LPCWSTR, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + pContext: *mut BYTE, + cbContext: DWORD, + dwFlags: DWORD, + dwReserved: DWORD, + pdwOutFlags: *mut DWORD, + ) -> HRESULT, + >, + pub MapUrlToZoneEx2: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx2, + pUri: *mut IUri, + pdwZone: *mut DWORD, + dwFlags: DWORD, + ppwszMappedUrl: *mut LPWSTR, + pdwOutFlags: *mut DWORD, + ) -> HRESULT, + >, + pub ProcessUrlActionEx2: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx2, + pUri: *mut IUri, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + pContext: *mut BYTE, + cbContext: DWORD, + dwFlags: DWORD, + dwReserved: DWORD_PTR, + pdwOutFlags: *mut DWORD, + ) -> HRESULT, + >, + pub GetSecurityIdEx2: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx2, + pUri: *mut IUri, + pbSecurityId: *mut BYTE, + pcbSecurityId: *mut DWORD, + dwReserved: DWORD_PTR, + ) -> HRESULT, + >, + pub QueryCustomPolicyEx2: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetSecurityManagerEx2, + pUri: *mut IUri, + guidKey: *const GUID, + ppPolicy: *mut *mut BYTE, + pcbPolicy: *mut DWORD, + pContext: *mut BYTE, + cbContext: DWORD, + dwReserved: DWORD_PTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetSecurityManagerEx2 { + pub lpVtbl: *mut IInternetSecurityManagerEx2Vtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0041_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0041_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IZoneIdentifier: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IZoneIdentifierVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IZoneIdentifier, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetId: ::std::option::Option< + unsafe extern "C" fn(This: *mut IZoneIdentifier, pdwZone: *mut DWORD) -> HRESULT, + >, + pub SetId: ::std::option::Option< + unsafe extern "C" fn(This: *mut IZoneIdentifier, dwZone: DWORD) -> HRESULT, + >, + pub Remove: ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IZoneIdentifier { + pub lpVtbl: *mut IZoneIdentifierVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0042_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0042_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IZoneIdentifier2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IZoneIdentifier2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IZoneIdentifier2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetId: ::std::option::Option< + unsafe extern "C" fn(This: *mut IZoneIdentifier2, pdwZone: *mut DWORD) -> HRESULT, + >, + pub SetId: ::std::option::Option< + unsafe extern "C" fn(This: *mut IZoneIdentifier2, dwZone: DWORD) -> HRESULT, + >, + pub Remove: ::std::option::Option HRESULT>, + pub GetLastWriterPackageFamilyName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IZoneIdentifier2, + packageFamilyName: *mut LPWSTR, + ) -> HRESULT, + >, + pub SetLastWriterPackageFamilyName: ::std::option::Option< + unsafe extern "C" fn(This: *mut IZoneIdentifier2, packageFamilyName: LPCWSTR) -> HRESULT, + >, + pub RemoveLastWriterPackageFamilyName: + ::std::option::Option HRESULT>, + pub GetAppZoneId: ::std::option::Option< + unsafe extern "C" fn(This: *mut IZoneIdentifier2, zone: *mut DWORD) -> HRESULT, + >, + pub SetAppZoneId: ::std::option::Option< + unsafe extern "C" fn(This: *mut IZoneIdentifier2, zone: DWORD) -> HRESULT, + >, + pub RemoveAppZoneId: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IZoneIdentifier2 { + pub lpVtbl: *mut IZoneIdentifier2Vtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0043_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0043_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IInternetHostSecurityManager: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetHostSecurityManagerVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetHostSecurityManager, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetHostSecurityManager) -> ULONG, + >, + pub Release: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetHostSecurityManager) -> ULONG, + >, + pub GetSecurityId: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetHostSecurityManager, + pbSecurityId: *mut BYTE, + pcbSecurityId: *mut DWORD, + dwReserved: DWORD_PTR, + ) -> HRESULT, + >, + pub ProcessUrlAction: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetHostSecurityManager, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + pContext: *mut BYTE, + cbContext: DWORD, + dwFlags: DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub QueryCustomPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetHostSecurityManager, + guidKey: *const GUID, + ppPolicy: *mut *mut BYTE, + pcbPolicy: *mut DWORD, + pContext: *mut BYTE, + cbContext: DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetHostSecurityManager { + pub lpVtbl: *mut IInternetHostSecurityManagerVtbl, +} +extern "C" { + pub static GUID_CUSTOM_LOCALMACHINEZONEUNLOCKED: GUID; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0044_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0044_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPURLZONEMANAGER = *mut IInternetZoneManager; +pub const tagURLZONE_URLZONE_INVALID: tagURLZONE = -1; +pub const tagURLZONE_URLZONE_PREDEFINED_MIN: tagURLZONE = 0; +pub const tagURLZONE_URLZONE_LOCAL_MACHINE: tagURLZONE = 0; +pub const tagURLZONE_URLZONE_INTRANET: tagURLZONE = 1; +pub const tagURLZONE_URLZONE_TRUSTED: tagURLZONE = 2; +pub const tagURLZONE_URLZONE_INTERNET: tagURLZONE = 3; +pub const tagURLZONE_URLZONE_UNTRUSTED: tagURLZONE = 4; +pub const tagURLZONE_URLZONE_PREDEFINED_MAX: tagURLZONE = 999; +pub const tagURLZONE_URLZONE_USER_MIN: tagURLZONE = 1000; +pub const tagURLZONE_URLZONE_USER_MAX: tagURLZONE = 10000; +pub type tagURLZONE = ::std::os::raw::c_int; +pub use self::tagURLZONE as URLZONE; +pub const tagURLTEMPLATE_URLTEMPLATE_CUSTOM: tagURLTEMPLATE = 0; +pub const tagURLTEMPLATE_URLTEMPLATE_PREDEFINED_MIN: tagURLTEMPLATE = 65536; +pub const tagURLTEMPLATE_URLTEMPLATE_LOW: tagURLTEMPLATE = 65536; +pub const tagURLTEMPLATE_URLTEMPLATE_MEDLOW: tagURLTEMPLATE = 66816; +pub const tagURLTEMPLATE_URLTEMPLATE_MEDIUM: tagURLTEMPLATE = 69632; +pub const tagURLTEMPLATE_URLTEMPLATE_MEDHIGH: tagURLTEMPLATE = 70912; +pub const tagURLTEMPLATE_URLTEMPLATE_HIGH: tagURLTEMPLATE = 73728; +pub const tagURLTEMPLATE_URLTEMPLATE_PREDEFINED_MAX: tagURLTEMPLATE = 131072; +pub type tagURLTEMPLATE = ::std::os::raw::c_int; +pub use self::tagURLTEMPLATE as URLTEMPLATE; +pub const __MIDL_IInternetZoneManager_0001_MAX_ZONE_PATH: __MIDL_IInternetZoneManager_0001 = 260; +pub const __MIDL_IInternetZoneManager_0001_MAX_ZONE_DESCRIPTION: __MIDL_IInternetZoneManager_0001 = + 200; +pub type __MIDL_IInternetZoneManager_0001 = ::std::os::raw::c_int; +pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_CUSTOM_EDIT: __MIDL_IInternetZoneManager_0002 = + 1; +pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_ADD_SITES: __MIDL_IInternetZoneManager_0002 = 2; +pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_REQUIRE_VERIFICATION: + __MIDL_IInternetZoneManager_0002 = 4; +pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_INCLUDE_PROXY_OVERRIDE: + __MIDL_IInternetZoneManager_0002 = 8; +pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_INCLUDE_INTRANET_SITES: + __MIDL_IInternetZoneManager_0002 = 16; +pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_NO_UI: __MIDL_IInternetZoneManager_0002 = 32; +pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_SUPPORTS_VERIFICATION: + __MIDL_IInternetZoneManager_0002 = 64; +pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_UNC_AS_INTRANET: + __MIDL_IInternetZoneManager_0002 = 128; +pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_DETECT_INTRANET: + __MIDL_IInternetZoneManager_0002 = 256; +pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_USE_LOCKED_ZONES: + __MIDL_IInternetZoneManager_0002 = 65536; +pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_VERIFY_TEMPLATE_SETTINGS: + __MIDL_IInternetZoneManager_0002 = 131072; +pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_NO_CACHE: __MIDL_IInternetZoneManager_0002 = + 262144; +pub type __MIDL_IInternetZoneManager_0002 = ::std::os::raw::c_int; +pub use self::__MIDL_IInternetZoneManager_0002 as ZAFLAGS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ZONEATTRIBUTES { + pub cbSize: ULONG, + pub szDisplayName: [WCHAR; 260usize], + pub szDescription: [WCHAR; 200usize], + pub szIconPath: [WCHAR; 260usize], + pub dwTemplateMinLevel: DWORD, + pub dwTemplateRecommended: DWORD, + pub dwTemplateCurrentLevel: DWORD, + pub dwFlags: DWORD, +} +pub type ZONEATTRIBUTES = _ZONEATTRIBUTES; +pub type LPZONEATTRIBUTES = *mut _ZONEATTRIBUTES; +pub const _URLZONEREG_URLZONEREG_DEFAULT: _URLZONEREG = 0; +pub const _URLZONEREG_URLZONEREG_HKLM: _URLZONEREG = 1; +pub const _URLZONEREG_URLZONEREG_HKCU: _URLZONEREG = 2; +pub type _URLZONEREG = ::std::os::raw::c_int; +pub use self::_URLZONEREG as URLZONEREG; +extern "C" { + pub static IID_IInternetZoneManager: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetZoneManagerVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManager, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetZoneAttributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManager, + dwZone: DWORD, + pZoneAttributes: *mut ZONEATTRIBUTES, + ) -> HRESULT, + >, + pub SetZoneAttributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManager, + dwZone: DWORD, + pZoneAttributes: *mut ZONEATTRIBUTES, + ) -> HRESULT, + >, + pub GetZoneCustomPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManager, + dwZone: DWORD, + guidKey: *const GUID, + ppPolicy: *mut *mut BYTE, + pcbPolicy: *mut DWORD, + urlZoneReg: URLZONEREG, + ) -> HRESULT, + >, + pub SetZoneCustomPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManager, + dwZone: DWORD, + guidKey: *const GUID, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + urlZoneReg: URLZONEREG, + ) -> HRESULT, + >, + pub GetZoneActionPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManager, + dwZone: DWORD, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + urlZoneReg: URLZONEREG, + ) -> HRESULT, + >, + pub SetZoneActionPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManager, + dwZone: DWORD, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + urlZoneReg: URLZONEREG, + ) -> HRESULT, + >, + pub PromptAction: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManager, + dwAction: DWORD, + hwndParent: HWND, + pwszUrl: LPCWSTR, + pwszText: LPCWSTR, + dwPromptFlags: DWORD, + ) -> HRESULT, + >, + pub LogAction: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManager, + dwAction: DWORD, + pwszUrl: LPCWSTR, + pwszText: LPCWSTR, + dwLogFlags: DWORD, + ) -> HRESULT, + >, + pub CreateZoneEnumerator: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManager, + pdwEnum: *mut DWORD, + pdwCount: *mut DWORD, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub GetZoneAt: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManager, + dwEnum: DWORD, + dwIndex: DWORD, + pdwZone: *mut DWORD, + ) -> HRESULT, + >, + pub DestroyZoneEnumerator: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetZoneManager, dwEnum: DWORD) -> HRESULT, + >, + pub CopyTemplatePoliciesToZone: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManager, + dwTemplate: DWORD, + dwZone: DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetZoneManager { + pub lpVtbl: *mut IInternetZoneManagerVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0045_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0045_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IInternetZoneManagerEx: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetZoneManagerExVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetZoneAttributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx, + dwZone: DWORD, + pZoneAttributes: *mut ZONEATTRIBUTES, + ) -> HRESULT, + >, + pub SetZoneAttributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx, + dwZone: DWORD, + pZoneAttributes: *mut ZONEATTRIBUTES, + ) -> HRESULT, + >, + pub GetZoneCustomPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx, + dwZone: DWORD, + guidKey: *const GUID, + ppPolicy: *mut *mut BYTE, + pcbPolicy: *mut DWORD, + urlZoneReg: URLZONEREG, + ) -> HRESULT, + >, + pub SetZoneCustomPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx, + dwZone: DWORD, + guidKey: *const GUID, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + urlZoneReg: URLZONEREG, + ) -> HRESULT, + >, + pub GetZoneActionPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx, + dwZone: DWORD, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + urlZoneReg: URLZONEREG, + ) -> HRESULT, + >, + pub SetZoneActionPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx, + dwZone: DWORD, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + urlZoneReg: URLZONEREG, + ) -> HRESULT, + >, + pub PromptAction: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx, + dwAction: DWORD, + hwndParent: HWND, + pwszUrl: LPCWSTR, + pwszText: LPCWSTR, + dwPromptFlags: DWORD, + ) -> HRESULT, + >, + pub LogAction: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx, + dwAction: DWORD, + pwszUrl: LPCWSTR, + pwszText: LPCWSTR, + dwLogFlags: DWORD, + ) -> HRESULT, + >, + pub CreateZoneEnumerator: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx, + pdwEnum: *mut DWORD, + pdwCount: *mut DWORD, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub GetZoneAt: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx, + dwEnum: DWORD, + dwIndex: DWORD, + pdwZone: *mut DWORD, + ) -> HRESULT, + >, + pub DestroyZoneEnumerator: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetZoneManagerEx, dwEnum: DWORD) -> HRESULT, + >, + pub CopyTemplatePoliciesToZone: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx, + dwTemplate: DWORD, + dwZone: DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub GetZoneActionPolicyEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx, + dwZone: DWORD, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + urlZoneReg: URLZONEREG, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub SetZoneActionPolicyEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx, + dwZone: DWORD, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + urlZoneReg: URLZONEREG, + dwFlags: DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetZoneManagerEx { + pub lpVtbl: *mut IInternetZoneManagerExVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0046_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0046_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IInternetZoneManagerEx2: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetZoneManagerEx2Vtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetZoneAttributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + dwZone: DWORD, + pZoneAttributes: *mut ZONEATTRIBUTES, + ) -> HRESULT, + >, + pub SetZoneAttributes: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + dwZone: DWORD, + pZoneAttributes: *mut ZONEATTRIBUTES, + ) -> HRESULT, + >, + pub GetZoneCustomPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + dwZone: DWORD, + guidKey: *const GUID, + ppPolicy: *mut *mut BYTE, + pcbPolicy: *mut DWORD, + urlZoneReg: URLZONEREG, + ) -> HRESULT, + >, + pub SetZoneCustomPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + dwZone: DWORD, + guidKey: *const GUID, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + urlZoneReg: URLZONEREG, + ) -> HRESULT, + >, + pub GetZoneActionPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + dwZone: DWORD, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + urlZoneReg: URLZONEREG, + ) -> HRESULT, + >, + pub SetZoneActionPolicy: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + dwZone: DWORD, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + urlZoneReg: URLZONEREG, + ) -> HRESULT, + >, + pub PromptAction: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + dwAction: DWORD, + hwndParent: HWND, + pwszUrl: LPCWSTR, + pwszText: LPCWSTR, + dwPromptFlags: DWORD, + ) -> HRESULT, + >, + pub LogAction: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + dwAction: DWORD, + pwszUrl: LPCWSTR, + pwszText: LPCWSTR, + dwLogFlags: DWORD, + ) -> HRESULT, + >, + pub CreateZoneEnumerator: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + pdwEnum: *mut DWORD, + pdwCount: *mut DWORD, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub GetZoneAt: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + dwEnum: DWORD, + dwIndex: DWORD, + pdwZone: *mut DWORD, + ) -> HRESULT, + >, + pub DestroyZoneEnumerator: ::std::option::Option< + unsafe extern "C" fn(This: *mut IInternetZoneManagerEx2, dwEnum: DWORD) -> HRESULT, + >, + pub CopyTemplatePoliciesToZone: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + dwTemplate: DWORD, + dwZone: DWORD, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub GetZoneActionPolicyEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + dwZone: DWORD, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + urlZoneReg: URLZONEREG, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub SetZoneActionPolicyEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + dwZone: DWORD, + dwAction: DWORD, + pPolicy: *mut BYTE, + cbPolicy: DWORD, + urlZoneReg: URLZONEREG, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub GetZoneAttributesEx: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + dwZone: DWORD, + pZoneAttributes: *mut ZONEATTRIBUTES, + dwFlags: DWORD, + ) -> HRESULT, + >, + pub GetZoneSecurityState: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + dwZoneIndex: DWORD, + fRespectPolicy: BOOL, + pdwState: LPDWORD, + pfPolicyEncountered: *mut BOOL, + ) -> HRESULT, + >, + pub GetIESecurityState: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IInternetZoneManagerEx2, + fRespectPolicy: BOOL, + pdwState: LPDWORD, + pfPolicyEncountered: *mut BOOL, + fNoCache: BOOL, + ) -> HRESULT, + >, + pub FixUnsecureSettings: + ::std::option::Option HRESULT>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IInternetZoneManagerEx2 { + pub lpVtbl: *mut IInternetZoneManagerEx2Vtbl, +} +extern "C" { + pub static CLSID_SoftDistExt: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _tagCODEBASEHOLD { + pub cbSize: ULONG, + pub szDistUnit: LPWSTR, + pub szCodeBase: LPWSTR, + pub dwVersionMS: DWORD, + pub dwVersionLS: DWORD, + pub dwStyle: DWORD, +} +pub type CODEBASEHOLD = _tagCODEBASEHOLD; +pub type LPCODEBASEHOLD = *mut _tagCODEBASEHOLD; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _tagSOFTDISTINFO { + pub cbSize: ULONG, + pub dwFlags: DWORD, + pub dwAdState: DWORD, + pub szTitle: LPWSTR, + pub szAbstract: LPWSTR, + pub szHREF: LPWSTR, + pub dwInstalledVersionMS: DWORD, + pub dwInstalledVersionLS: DWORD, + pub dwUpdateVersionMS: DWORD, + pub dwUpdateVersionLS: DWORD, + pub dwAdvertisedVersionMS: DWORD, + pub dwAdvertisedVersionLS: DWORD, + pub dwReserved: DWORD, +} +pub type SOFTDISTINFO = _tagSOFTDISTINFO; +pub type LPSOFTDISTINFO = *mut _tagSOFTDISTINFO; +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0047_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0047_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_ISoftDistExt: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISoftDistExtVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISoftDistExt, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub ProcessSoftDist: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISoftDistExt, + szCDFURL: LPCWSTR, + pSoftDistElement: *mut IXMLElement, + lpsdi: LPSOFTDISTINFO, + ) -> HRESULT, + >, + pub GetFirstCodeBase: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISoftDistExt, + szCodeBase: *mut LPWSTR, + dwMaxSize: LPDWORD, + ) -> HRESULT, + >, + pub GetNextCodeBase: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISoftDistExt, + szCodeBase: *mut LPWSTR, + dwMaxSize: LPDWORD, + ) -> HRESULT, + >, + pub AsyncInstallDistributionUnit: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ISoftDistExt, + pbc: *mut IBindCtx, + pvReserved: LPVOID, + flags: DWORD, + lpcbh: LPCODEBASEHOLD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ISoftDistExt { + pub lpVtbl: *mut ISoftDistExtVtbl, +} +extern "C" { + pub fn GetSoftwareUpdateInfo(szDistUnit: LPCWSTR, psdi: LPSOFTDISTINFO) -> HRESULT; +} +extern "C" { + pub fn SetSoftwareUpdateAdvertisementState( + szDistUnit: LPCWSTR, + dwAdState: DWORD, + dwAdvertisedVersionMS: DWORD, + dwAdvertisedVersionLS: DWORD, + ) -> HRESULT; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0048_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0048_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPCATALOGFILEINFO = *mut ICatalogFileInfo; +extern "C" { + pub static IID_ICatalogFileInfo: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICatalogFileInfoVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICatalogFileInfo, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetCatalogFile: ::std::option::Option< + unsafe extern "C" fn(This: *mut ICatalogFileInfo, ppszCatalogFile: *mut LPSTR) -> HRESULT, + >, + pub GetJavaTrust: ::std::option::Option< + unsafe extern "C" fn( + This: *mut ICatalogFileInfo, + ppJavaTrust: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ICatalogFileInfo { + pub lpVtbl: *mut ICatalogFileInfoVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0049_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0049_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPDATAFILTER = *mut IDataFilter; +extern "C" { + pub static IID_IDataFilter: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDataFilterVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataFilter, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub DoEncode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataFilter, + dwFlags: DWORD, + lInBufferSize: LONG, + pbInBuffer: *mut BYTE, + lOutBufferSize: LONG, + pbOutBuffer: *mut BYTE, + lInBytesAvailable: LONG, + plInBytesRead: *mut LONG, + plOutBytesWritten: *mut LONG, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub DoDecode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IDataFilter, + dwFlags: DWORD, + lInBufferSize: LONG, + pbInBuffer: *mut BYTE, + lOutBufferSize: LONG, + pbOutBuffer: *mut BYTE, + lInBytesAvailable: LONG, + plInBytesRead: *mut LONG, + plOutBytesWritten: *mut LONG, + dwReserved: DWORD, + ) -> HRESULT, + >, + pub SetEncodingLevel: ::std::option::Option< + unsafe extern "C" fn(This: *mut IDataFilter, dwEncLevel: DWORD) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IDataFilter { + pub lpVtbl: *mut IDataFilterVtbl, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _tagPROTOCOLFILTERDATA { + pub cbSize: DWORD, + pub pProtocolSink: *mut IInternetProtocolSink, + pub pProtocol: *mut IInternetProtocol, + pub pUnk: *mut IUnknown, + pub dwFilterFlags: DWORD, +} +pub type PROTOCOLFILTERDATA = _tagPROTOCOLFILTERDATA; +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0050_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0050_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPENCODINGFILTERFACTORY = *mut IEncodingFilterFactory; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _tagDATAINFO { + pub ulTotalSize: ULONG, + pub ulavrPacketSize: ULONG, + pub ulConnectSpeed: ULONG, + pub ulProcessorSpeed: ULONG, +} +pub type DATAINFO = _tagDATAINFO; +extern "C" { + pub static IID_IEncodingFilterFactory: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEncodingFilterFactoryVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEncodingFilterFactory, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub FindBestFilter: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEncodingFilterFactory, + pwzCodeIn: LPCWSTR, + pwzCodeOut: LPCWSTR, + info: DATAINFO, + ppDF: *mut *mut IDataFilter, + ) -> HRESULT, + >, + pub GetDefaultFilter: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IEncodingFilterFactory, + pwzCodeIn: LPCWSTR, + pwzCodeOut: LPCWSTR, + ppDF: *mut *mut IDataFilter, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IEncodingFilterFactory { + pub lpVtbl: *mut IEncodingFilterFactoryVtbl, +} +extern "C" { + pub fn IsLoggingEnabledA(pszUrl: LPCSTR) -> BOOL; +} +extern "C" { + pub fn IsLoggingEnabledW(pwszUrl: LPCWSTR) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _tagHIT_LOGGING_INFO { + pub dwStructSize: DWORD, + pub lpszLoggedUrlName: LPSTR, + pub StartTime: SYSTEMTIME, + pub EndTime: SYSTEMTIME, + pub lpszExtendedInfo: LPSTR, +} +pub type HIT_LOGGING_INFO = _tagHIT_LOGGING_INFO; +pub type LPHIT_LOGGING_INFO = *mut _tagHIT_LOGGING_INFO; +extern "C" { + pub fn WriteHitLogging(lpLogginginfo: LPHIT_LOGGING_INFO) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CONFIRMSAFETY { + pub clsid: CLSID, + pub pUnk: *mut IUnknown, + pub dwFlags: DWORD, +} +extern "C" { + pub static GUID_CUSTOM_CONFIRMOBJECTSAFETY: GUID; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0051_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0051_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPIWRAPPEDPROTOCOL = *mut IWrappedProtocol; +extern "C" { + pub static IID_IWrappedProtocol: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWrappedProtocolVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWrappedProtocol, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetWrapperCode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IWrappedProtocol, + pnCode: *mut LONG, + dwReserved: DWORD_PTR, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IWrappedProtocol { + pub lpVtbl: *mut IWrappedProtocolVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0052_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0052_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPGETBINDHANDLE = *mut IGetBindHandle; +pub const __MIDL_IGetBindHandle_0001_BINDHANDLETYPES_APPCACHE: __MIDL_IGetBindHandle_0001 = 0; +pub const __MIDL_IGetBindHandle_0001_BINDHANDLETYPES_DEPENDENCY: __MIDL_IGetBindHandle_0001 = 1; +pub const __MIDL_IGetBindHandle_0001_BINDHANDLETYPES_COUNT: __MIDL_IGetBindHandle_0001 = 2; +pub type __MIDL_IGetBindHandle_0001 = ::std::os::raw::c_int; +pub use self::__MIDL_IGetBindHandle_0001 as BINDHANDLETYPES; +extern "C" { + pub static IID_IGetBindHandle: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IGetBindHandleVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IGetBindHandle, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetBindHandle: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IGetBindHandle, + enumRequestedHandle: BINDHANDLETYPES, + pRetHandle: *mut HANDLE, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IGetBindHandle { + pub lpVtbl: *mut IGetBindHandleVtbl, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _tagPROTOCOL_ARGUMENT { + pub szMethod: LPCWSTR, + pub szTargetUrl: LPCWSTR, +} +pub type PROTOCOL_ARGUMENT = _tagPROTOCOL_ARGUMENT; +pub type LPPROTOCOL_ARGUMENT = *mut _tagPROTOCOL_ARGUMENT; +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0053_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0053_v0_0_s_ifspec: RPC_IF_HANDLE; +} +pub type LPBINDCALLBACKREDIRECT = *mut IBindCallbackRedirect; +extern "C" { + pub static IID_IBindCallbackRedirect: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindCallbackRedirectVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindCallbackRedirect, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub Redirect: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindCallbackRedirect, + lpcUrl: LPCWSTR, + vbCancel: *mut VARIANT_BOOL, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindCallbackRedirect { + pub lpVtbl: *mut IBindCallbackRedirectVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0054_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0054_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static IID_IBindHttpSecurity: IID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindHttpSecurityVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindHttpSecurity, + riid: *const IID, + ppvObject: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: ::std::option::Option ULONG>, + pub Release: ::std::option::Option ULONG>, + pub GetIgnoreCertMask: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IBindHttpSecurity, + pdwIgnoreCertMask: *mut DWORD, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IBindHttpSecurity { + pub lpVtbl: *mut IBindHttpSecurityVtbl, +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0055_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_urlmon_0000_0055_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub fn IBinding_GetBindResult_Proxy( + This: *mut IBinding, + pclsidProtocol: *mut CLSID, + pdwResult: *mut DWORD, + pszResult: *mut LPOLESTR, + pdwReserved: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IBinding_GetBindResult_Stub( + This: *mut IBinding, + pclsidProtocol: *mut CLSID, + pdwResult: *mut DWORD, + pszResult: *mut LPOLESTR, + dwReserved: DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IBindStatusCallback_GetBindInfo_Proxy( + This: *mut IBindStatusCallback, + grfBINDF: *mut DWORD, + pbindinfo: *mut BINDINFO, + ) -> HRESULT; +} +extern "C" { + pub fn IBindStatusCallback_GetBindInfo_Stub( + This: *mut IBindStatusCallback, + grfBINDF: *mut DWORD, + pbindinfo: *mut RemBINDINFO, + pstgmed: *mut RemSTGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn IBindStatusCallback_OnDataAvailable_Proxy( + This: *mut IBindStatusCallback, + grfBSCF: DWORD, + dwSize: DWORD, + pformatetc: *mut FORMATETC, + pstgmed: *mut STGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn IBindStatusCallback_OnDataAvailable_Stub( + This: *mut IBindStatusCallback, + grfBSCF: DWORD, + dwSize: DWORD, + pformatetc: *mut RemFORMATETC, + pstgmed: *mut RemSTGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub fn IBindStatusCallbackEx_GetBindInfoEx_Proxy( + This: *mut IBindStatusCallbackEx, + grfBINDF: *mut DWORD, + pbindinfo: *mut BINDINFO, + grfBINDF2: *mut DWORD, + pdwReserved: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IBindStatusCallbackEx_GetBindInfoEx_Stub( + This: *mut IBindStatusCallbackEx, + grfBINDF: *mut DWORD, + pbindinfo: *mut RemBINDINFO, + pstgmed: *mut RemSTGMEDIUM, + grfBINDF2: *mut DWORD, + pdwReserved: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IWinInetInfo_QueryOption_Proxy( + This: *mut IWinInetInfo, + dwOption: DWORD, + pBuffer: LPVOID, + pcbBuf: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IWinInetInfo_QueryOption_Stub( + This: *mut IWinInetInfo, + dwOption: DWORD, + pBuffer: *mut BYTE, + pcbBuf: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IWinInetHttpInfo_QueryInfo_Proxy( + This: *mut IWinInetHttpInfo, + dwOption: DWORD, + pBuffer: LPVOID, + pcbBuf: *mut DWORD, + pdwFlags: *mut DWORD, + pdwReserved: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IWinInetHttpInfo_QueryInfo_Stub( + This: *mut IWinInetHttpInfo, + dwOption: DWORD, + pBuffer: *mut BYTE, + pcbBuf: *mut DWORD, + pdwFlags: *mut DWORD, + pdwReserved: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn IBindHost_MonikerBindToStorage_Proxy( + This: *mut IBindHost, + pMk: *mut IMoniker, + pBC: *mut IBindCtx, + pBSC: *mut IBindStatusCallback, + riid: *const IID, + ppvObj: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn IBindHost_MonikerBindToStorage_Stub( + This: *mut IBindHost, + pMk: *mut IMoniker, + pBC: *mut IBindCtx, + pBSC: *mut IBindStatusCallback, + riid: *const IID, + ppvObj: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn IBindHost_MonikerBindToObject_Proxy( + This: *mut IBindHost, + pMk: *mut IMoniker, + pBC: *mut IBindCtx, + pBSC: *mut IBindStatusCallback, + riid: *const IID, + ppvObj: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn IBindHost_MonikerBindToObject_Stub( + This: *mut IBindHost, + pMk: *mut IMoniker, + pBC: *mut IBindCtx, + pBSC: *mut IBindStatusCallback, + riid: *const IID, + ppvObj: *mut *mut IUnknown, + ) -> HRESULT; +} +pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_NORMAL: PIDMSI_STATUS_VALUE = 0; +pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_NEW: PIDMSI_STATUS_VALUE = 1; +pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_PRELIM: PIDMSI_STATUS_VALUE = 2; +pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_DRAFT: PIDMSI_STATUS_VALUE = 3; +pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_INPROGRESS: PIDMSI_STATUS_VALUE = 4; +pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_EDIT: PIDMSI_STATUS_VALUE = 5; +pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_REVIEW: PIDMSI_STATUS_VALUE = 6; +pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_PROOF: PIDMSI_STATUS_VALUE = 7; +pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_FINAL: PIDMSI_STATUS_VALUE = 8; +pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_OTHER: PIDMSI_STATUS_VALUE = 32767; +pub type PIDMSI_STATUS_VALUE = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSERIALIZEDPROPERTYVALUE { + pub dwType: DWORD, + pub rgb: [BYTE; 1usize], +} +pub type SERIALIZEDPROPERTYVALUE = tagSERIALIZEDPROPERTYVALUE; +extern "C" { + pub fn StgConvertVariantToProperty( + pvar: *const PROPVARIANT, + CodePage: USHORT, + pprop: *mut SERIALIZEDPROPERTYVALUE, + pcb: *mut ULONG, + pid: PROPID, + fReserved: BOOLEAN, + pcIndirect: *mut ULONG, + ) -> *mut SERIALIZEDPROPERTYVALUE; +} +extern "C" { + pub static mut __MIDL_itf_propidl_0000_0004_v0_0_c_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub static mut __MIDL_itf_propidl_0000_0004_v0_0_s_ifspec: RPC_IF_HANDLE; +} +extern "C" { + pub fn CreateStdProgressIndicator( + hwndParent: HWND, + pszTitle: LPCOLESTR, + pIbscCaller: *mut IBindStatusCallback, + ppIbsc: *mut *mut IBindStatusCallback, + ) -> HRESULT; +} +extern "C" { + pub static IID_StdOle: IID; +} +extern "C" { + pub fn SysAllocString(psz: *const OLECHAR) -> BSTR; +} +extern "C" { + pub fn SysReAllocString(pbstr: *mut BSTR, psz: *const OLECHAR) -> INT; +} +extern "C" { + pub fn SysAllocStringLen(strIn: *const OLECHAR, ui: UINT) -> BSTR; +} +extern "C" { + pub fn SysReAllocStringLen( + pbstr: *mut BSTR, + psz: *const OLECHAR, + len: ::std::os::raw::c_uint, + ) -> INT; +} +extern "C" { + pub fn SysAddRefString(bstrString: BSTR) -> HRESULT; +} +extern "C" { + pub fn SysReleaseString(bstrString: BSTR); +} +extern "C" { + pub fn SysFreeString(bstrString: BSTR); +} +extern "C" { + pub fn SysStringLen(pbstr: BSTR) -> UINT; +} +extern "C" { + pub fn SysStringByteLen(bstr: BSTR) -> UINT; +} +extern "C" { + pub fn SysAllocStringByteLen(psz: LPCSTR, len: UINT) -> BSTR; +} +extern "C" { + pub fn DosDateTimeToVariantTime(wDosDate: USHORT, wDosTime: USHORT, pvtime: *mut DOUBLE) + -> INT; +} +extern "C" { + pub fn VariantTimeToDosDateTime( + vtime: DOUBLE, + pwDosDate: *mut USHORT, + pwDosTime: *mut USHORT, + ) -> INT; +} +extern "C" { + pub fn SystemTimeToVariantTime(lpSystemTime: LPSYSTEMTIME, pvtime: *mut DOUBLE) -> INT; +} +extern "C" { + pub fn VariantTimeToSystemTime(vtime: DOUBLE, lpSystemTime: LPSYSTEMTIME) -> INT; +} +extern "C" { + pub fn SafeArrayAllocDescriptor(cDims: UINT, ppsaOut: *mut *mut SAFEARRAY) -> HRESULT; +} +extern "C" { + pub fn SafeArrayAllocDescriptorEx( + vt: VARTYPE, + cDims: UINT, + ppsaOut: *mut *mut SAFEARRAY, + ) -> HRESULT; +} +extern "C" { + pub fn SafeArrayAllocData(psa: *mut SAFEARRAY) -> HRESULT; +} +extern "C" { + pub fn SafeArrayCreate( + vt: VARTYPE, + cDims: UINT, + rgsabound: *mut SAFEARRAYBOUND, + ) -> *mut SAFEARRAY; +} +extern "C" { + pub fn SafeArrayCreateEx( + vt: VARTYPE, + cDims: UINT, + rgsabound: *mut SAFEARRAYBOUND, + pvExtra: PVOID, + ) -> *mut SAFEARRAY; +} +extern "C" { + pub fn SafeArrayCopyData(psaSource: *mut SAFEARRAY, psaTarget: *mut SAFEARRAY) -> HRESULT; +} +extern "C" { + pub fn SafeArrayReleaseDescriptor(psa: *mut SAFEARRAY); +} +extern "C" { + pub fn SafeArrayDestroyDescriptor(psa: *mut SAFEARRAY) -> HRESULT; +} +extern "C" { + pub fn SafeArrayReleaseData(pData: PVOID); +} +extern "C" { + pub fn SafeArrayDestroyData(psa: *mut SAFEARRAY) -> HRESULT; +} +extern "C" { + pub fn SafeArrayAddRef(psa: *mut SAFEARRAY, ppDataToRelease: *mut PVOID) -> HRESULT; +} +extern "C" { + pub fn SafeArrayDestroy(psa: *mut SAFEARRAY) -> HRESULT; +} +extern "C" { + pub fn SafeArrayRedim(psa: *mut SAFEARRAY, psaboundNew: *mut SAFEARRAYBOUND) -> HRESULT; +} +extern "C" { + pub fn SafeArrayGetDim(psa: *mut SAFEARRAY) -> UINT; +} +extern "C" { + pub fn SafeArrayGetElemsize(psa: *mut SAFEARRAY) -> UINT; +} +extern "C" { + pub fn SafeArrayGetUBound(psa: *mut SAFEARRAY, nDim: UINT, plUbound: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn SafeArrayGetLBound(psa: *mut SAFEARRAY, nDim: UINT, plLbound: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn SafeArrayLock(psa: *mut SAFEARRAY) -> HRESULT; +} +extern "C" { + pub fn SafeArrayUnlock(psa: *mut SAFEARRAY) -> HRESULT; +} +extern "C" { + pub fn SafeArrayAccessData( + psa: *mut SAFEARRAY, + ppvData: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn SafeArrayUnaccessData(psa: *mut SAFEARRAY) -> HRESULT; +} +extern "C" { + pub fn SafeArrayGetElement( + psa: *mut SAFEARRAY, + rgIndices: *mut LONG, + pv: *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn SafeArrayPutElement( + psa: *mut SAFEARRAY, + rgIndices: *mut LONG, + pv: *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn SafeArrayCopy(psa: *mut SAFEARRAY, ppsaOut: *mut *mut SAFEARRAY) -> HRESULT; +} +extern "C" { + pub fn SafeArrayPtrOfIndex( + psa: *mut SAFEARRAY, + rgIndices: *mut LONG, + ppvData: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn SafeArraySetRecordInfo(psa: *mut SAFEARRAY, prinfo: *mut IRecordInfo) -> HRESULT; +} +extern "C" { + pub fn SafeArrayGetRecordInfo(psa: *mut SAFEARRAY, prinfo: *mut *mut IRecordInfo) -> HRESULT; +} +extern "C" { + pub fn SafeArraySetIID(psa: *mut SAFEARRAY, guid: *const GUID) -> HRESULT; +} +extern "C" { + pub fn SafeArrayGetIID(psa: *mut SAFEARRAY, pguid: *mut GUID) -> HRESULT; +} +extern "C" { + pub fn SafeArrayGetVartype(psa: *mut SAFEARRAY, pvt: *mut VARTYPE) -> HRESULT; +} +extern "C" { + pub fn SafeArrayCreateVector(vt: VARTYPE, lLbound: LONG, cElements: ULONG) -> *mut SAFEARRAY; +} +extern "C" { + pub fn SafeArrayCreateVectorEx( + vt: VARTYPE, + lLbound: LONG, + cElements: ULONG, + pvExtra: PVOID, + ) -> *mut SAFEARRAY; +} +extern "C" { + pub fn VariantInit(pvarg: *mut VARIANTARG); +} +extern "C" { + pub fn VariantClear(pvarg: *mut VARIANTARG) -> HRESULT; +} +extern "C" { + pub fn VariantCopy(pvargDest: *mut VARIANTARG, pvargSrc: *const VARIANTARG) -> HRESULT; +} +extern "C" { + pub fn VariantCopyInd(pvarDest: *mut VARIANT, pvargSrc: *const VARIANTARG) -> HRESULT; +} +extern "C" { + pub fn VariantChangeType( + pvargDest: *mut VARIANTARG, + pvarSrc: *const VARIANTARG, + wFlags: USHORT, + vt: VARTYPE, + ) -> HRESULT; +} +extern "C" { + pub fn VariantChangeTypeEx( + pvargDest: *mut VARIANTARG, + pvarSrc: *const VARIANTARG, + lcid: LCID, + wFlags: USHORT, + vt: VARTYPE, + ) -> HRESULT; +} +extern "C" { + pub fn VectorFromBstr(bstr: BSTR, ppsa: *mut *mut SAFEARRAY) -> HRESULT; +} +extern "C" { + pub fn BstrFromVector(psa: *mut SAFEARRAY, pbstr: *mut BSTR) -> HRESULT; +} +extern "C" { + pub fn VarUI1FromI2(sIn: SHORT, pbOut: *mut BYTE) -> HRESULT; +} +extern "C" { + pub fn VarUI1FromI4(lIn: LONG, pbOut: *mut BYTE) -> HRESULT; +} +extern "C" { + pub fn VarUI1FromI8(i64In: LONG64, pbOut: *mut BYTE) -> HRESULT; +} +extern "C" { + pub fn VarUI1FromR4(fltIn: FLOAT, pbOut: *mut BYTE) -> HRESULT; +} +extern "C" { + pub fn VarUI1FromR8(dblIn: DOUBLE, pbOut: *mut BYTE) -> HRESULT; +} +extern "C" { + pub fn VarUI1FromCy(cyIn: CY, pbOut: *mut BYTE) -> HRESULT; +} +extern "C" { + pub fn VarUI1FromDate(dateIn: DATE, pbOut: *mut BYTE) -> HRESULT; +} +extern "C" { + pub fn VarUI1FromStr(strIn: LPCOLESTR, lcid: LCID, dwFlags: ULONG, pbOut: *mut BYTE) + -> HRESULT; +} +extern "C" { + pub fn VarUI1FromDisp(pdispIn: *mut IDispatch, lcid: LCID, pbOut: *mut BYTE) -> HRESULT; +} +extern "C" { + pub fn VarUI1FromBool(boolIn: VARIANT_BOOL, pbOut: *mut BYTE) -> HRESULT; +} +extern "C" { + pub fn VarUI1FromI1(cIn: CHAR, pbOut: *mut BYTE) -> HRESULT; +} +extern "C" { + pub fn VarUI1FromUI2(uiIn: USHORT, pbOut: *mut BYTE) -> HRESULT; +} +extern "C" { + pub fn VarUI1FromUI4(ulIn: ULONG, pbOut: *mut BYTE) -> HRESULT; +} +extern "C" { + pub fn VarUI1FromUI8(ui64In: ULONG64, pbOut: *mut BYTE) -> HRESULT; +} +extern "C" { + pub fn VarUI1FromDec(pdecIn: *const DECIMAL, pbOut: *mut BYTE) -> HRESULT; +} +extern "C" { + pub fn VarI2FromUI1(bIn: BYTE, psOut: *mut SHORT) -> HRESULT; +} +extern "C" { + pub fn VarI2FromI4(lIn: LONG, psOut: *mut SHORT) -> HRESULT; +} +extern "C" { + pub fn VarI2FromI8(i64In: LONG64, psOut: *mut SHORT) -> HRESULT; +} +extern "C" { + pub fn VarI2FromR4(fltIn: FLOAT, psOut: *mut SHORT) -> HRESULT; +} +extern "C" { + pub fn VarI2FromR8(dblIn: DOUBLE, psOut: *mut SHORT) -> HRESULT; +} +extern "C" { + pub fn VarI2FromCy(cyIn: CY, psOut: *mut SHORT) -> HRESULT; +} +extern "C" { + pub fn VarI2FromDate(dateIn: DATE, psOut: *mut SHORT) -> HRESULT; +} +extern "C" { + pub fn VarI2FromStr(strIn: LPCOLESTR, lcid: LCID, dwFlags: ULONG, psOut: *mut SHORT) + -> HRESULT; +} +extern "C" { + pub fn VarI2FromDisp(pdispIn: *mut IDispatch, lcid: LCID, psOut: *mut SHORT) -> HRESULT; +} +extern "C" { + pub fn VarI2FromBool(boolIn: VARIANT_BOOL, psOut: *mut SHORT) -> HRESULT; +} +extern "C" { + pub fn VarI2FromI1(cIn: CHAR, psOut: *mut SHORT) -> HRESULT; +} +extern "C" { + pub fn VarI2FromUI2(uiIn: USHORT, psOut: *mut SHORT) -> HRESULT; +} +extern "C" { + pub fn VarI2FromUI4(ulIn: ULONG, psOut: *mut SHORT) -> HRESULT; +} +extern "C" { + pub fn VarI2FromUI8(ui64In: ULONG64, psOut: *mut SHORT) -> HRESULT; +} +extern "C" { + pub fn VarI2FromDec(pdecIn: *const DECIMAL, psOut: *mut SHORT) -> HRESULT; +} +extern "C" { + pub fn VarI4FromUI1(bIn: BYTE, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI4FromI2(sIn: SHORT, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI4FromI8(i64In: LONG64, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI4FromR4(fltIn: FLOAT, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI4FromR8(dblIn: DOUBLE, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI4FromCy(cyIn: CY, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI4FromDate(dateIn: DATE, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI4FromStr(strIn: LPCOLESTR, lcid: LCID, dwFlags: ULONG, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI4FromDisp(pdispIn: *mut IDispatch, lcid: LCID, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI4FromBool(boolIn: VARIANT_BOOL, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI4FromI1(cIn: CHAR, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI4FromUI2(uiIn: USHORT, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI4FromUI4(ulIn: ULONG, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI4FromUI8(ui64In: ULONG64, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI4FromDec(pdecIn: *const DECIMAL, plOut: *mut LONG) -> HRESULT; +} +extern "C" { + pub fn VarI8FromUI1(bIn: BYTE, pi64Out: *mut LONG64) -> HRESULT; +} +extern "C" { + pub fn VarI8FromI2(sIn: SHORT, pi64Out: *mut LONG64) -> HRESULT; +} +extern "C" { + pub fn VarI8FromR4(fltIn: FLOAT, pi64Out: *mut LONG64) -> HRESULT; +} +extern "C" { + pub fn VarI8FromR8(dblIn: DOUBLE, pi64Out: *mut LONG64) -> HRESULT; +} +extern "C" { + pub fn VarI8FromCy(cyIn: CY, pi64Out: *mut LONG64) -> HRESULT; +} +extern "C" { + pub fn VarI8FromDate(dateIn: DATE, pi64Out: *mut LONG64) -> HRESULT; +} +extern "C" { + pub fn VarI8FromStr( + strIn: LPCOLESTR, + lcid: LCID, + dwFlags: ULONG, + pi64Out: *mut LONG64, + ) -> HRESULT; +} +extern "C" { + pub fn VarI8FromDisp(pdispIn: *mut IDispatch, lcid: LCID, pi64Out: *mut LONG64) -> HRESULT; +} +extern "C" { + pub fn VarI8FromBool(boolIn: VARIANT_BOOL, pi64Out: *mut LONG64) -> HRESULT; +} +extern "C" { + pub fn VarI8FromI1(cIn: CHAR, pi64Out: *mut LONG64) -> HRESULT; +} +extern "C" { + pub fn VarI8FromUI2(uiIn: USHORT, pi64Out: *mut LONG64) -> HRESULT; +} +extern "C" { + pub fn VarI8FromUI4(ulIn: ULONG, pi64Out: *mut LONG64) -> HRESULT; +} +extern "C" { + pub fn VarI8FromUI8(ui64In: ULONG64, pi64Out: *mut LONG64) -> HRESULT; +} +extern "C" { + pub fn VarI8FromDec(pdecIn: *const DECIMAL, pi64Out: *mut LONG64) -> HRESULT; +} +extern "C" { + pub fn VarR4FromUI1(bIn: BYTE, pfltOut: *mut FLOAT) -> HRESULT; +} +extern "C" { + pub fn VarR4FromI2(sIn: SHORT, pfltOut: *mut FLOAT) -> HRESULT; +} +extern "C" { + pub fn VarR4FromI4(lIn: LONG, pfltOut: *mut FLOAT) -> HRESULT; +} +extern "C" { + pub fn VarR4FromI8(i64In: LONG64, pfltOut: *mut FLOAT) -> HRESULT; +} +extern "C" { + pub fn VarR4FromR8(dblIn: DOUBLE, pfltOut: *mut FLOAT) -> HRESULT; +} +extern "C" { + pub fn VarR4FromCy(cyIn: CY, pfltOut: *mut FLOAT) -> HRESULT; +} +extern "C" { + pub fn VarR4FromDate(dateIn: DATE, pfltOut: *mut FLOAT) -> HRESULT; +} +extern "C" { + pub fn VarR4FromStr( + strIn: LPCOLESTR, + lcid: LCID, + dwFlags: ULONG, + pfltOut: *mut FLOAT, + ) -> HRESULT; +} +extern "C" { + pub fn VarR4FromDisp(pdispIn: *mut IDispatch, lcid: LCID, pfltOut: *mut FLOAT) -> HRESULT; +} +extern "C" { + pub fn VarR4FromBool(boolIn: VARIANT_BOOL, pfltOut: *mut FLOAT) -> HRESULT; +} +extern "C" { + pub fn VarR4FromI1(cIn: CHAR, pfltOut: *mut FLOAT) -> HRESULT; +} +extern "C" { + pub fn VarR4FromUI2(uiIn: USHORT, pfltOut: *mut FLOAT) -> HRESULT; +} +extern "C" { + pub fn VarR4FromUI4(ulIn: ULONG, pfltOut: *mut FLOAT) -> HRESULT; +} +extern "C" { + pub fn VarR4FromUI8(ui64In: ULONG64, pfltOut: *mut FLOAT) -> HRESULT; +} +extern "C" { + pub fn VarR4FromDec(pdecIn: *const DECIMAL, pfltOut: *mut FLOAT) -> HRESULT; +} +extern "C" { + pub fn VarR8FromUI1(bIn: BYTE, pdblOut: *mut DOUBLE) -> HRESULT; +} +extern "C" { + pub fn VarR8FromI2(sIn: SHORT, pdblOut: *mut DOUBLE) -> HRESULT; +} +extern "C" { + pub fn VarR8FromI4(lIn: LONG, pdblOut: *mut DOUBLE) -> HRESULT; +} +extern "C" { + pub fn VarR8FromI8(i64In: LONG64, pdblOut: *mut DOUBLE) -> HRESULT; +} +extern "C" { + pub fn VarR8FromR4(fltIn: FLOAT, pdblOut: *mut DOUBLE) -> HRESULT; +} +extern "C" { + pub fn VarR8FromCy(cyIn: CY, pdblOut: *mut DOUBLE) -> HRESULT; +} +extern "C" { + pub fn VarR8FromDate(dateIn: DATE, pdblOut: *mut DOUBLE) -> HRESULT; +} +extern "C" { + pub fn VarR8FromStr( + strIn: LPCOLESTR, + lcid: LCID, + dwFlags: ULONG, + pdblOut: *mut DOUBLE, + ) -> HRESULT; +} +extern "C" { + pub fn VarR8FromDisp(pdispIn: *mut IDispatch, lcid: LCID, pdblOut: *mut DOUBLE) -> HRESULT; +} +extern "C" { + pub fn VarR8FromBool(boolIn: VARIANT_BOOL, pdblOut: *mut DOUBLE) -> HRESULT; +} +extern "C" { + pub fn VarR8FromI1(cIn: CHAR, pdblOut: *mut DOUBLE) -> HRESULT; +} +extern "C" { + pub fn VarR8FromUI2(uiIn: USHORT, pdblOut: *mut DOUBLE) -> HRESULT; +} +extern "C" { + pub fn VarR8FromUI4(ulIn: ULONG, pdblOut: *mut DOUBLE) -> HRESULT; +} +extern "C" { + pub fn VarR8FromUI8(ui64In: ULONG64, pdblOut: *mut DOUBLE) -> HRESULT; +} +extern "C" { + pub fn VarR8FromDec(pdecIn: *const DECIMAL, pdblOut: *mut DOUBLE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromUI1(bIn: BYTE, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromI2(sIn: SHORT, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromI4(lIn: LONG, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromI8(i64In: LONG64, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromR4(fltIn: FLOAT, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromR8(dblIn: DOUBLE, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromCy(cyIn: CY, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromStr( + strIn: LPCOLESTR, + lcid: LCID, + dwFlags: ULONG, + pdateOut: *mut DATE, + ) -> HRESULT; +} +extern "C" { + pub fn VarDateFromDisp(pdispIn: *mut IDispatch, lcid: LCID, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromBool(boolIn: VARIANT_BOOL, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromI1(cIn: CHAR, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromUI2(uiIn: USHORT, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromUI4(ulIn: ULONG, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromUI8(ui64In: ULONG64, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromDec(pdecIn: *const DECIMAL, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarCyFromUI1(bIn: BYTE, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarCyFromI2(sIn: SHORT, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarCyFromI4(lIn: LONG, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarCyFromI8(i64In: LONG64, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarCyFromR4(fltIn: FLOAT, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarCyFromR8(dblIn: DOUBLE, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarCyFromDate(dateIn: DATE, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarCyFromStr(strIn: LPCOLESTR, lcid: LCID, dwFlags: ULONG, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarCyFromDisp(pdispIn: *mut IDispatch, lcid: LCID, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarCyFromBool(boolIn: VARIANT_BOOL, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarCyFromI1(cIn: CHAR, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarCyFromUI2(uiIn: USHORT, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarCyFromUI4(ulIn: ULONG, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarCyFromUI8(ui64In: ULONG64, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarCyFromDec(pdecIn: *const DECIMAL, pcyOut: *mut CY) -> HRESULT; +} +extern "C" { + pub fn VarBstrFromUI1(bVal: BYTE, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) -> HRESULT; +} +extern "C" { + pub fn VarBstrFromI2(iVal: SHORT, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) -> HRESULT; +} +extern "C" { + pub fn VarBstrFromI4(lIn: LONG, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) -> HRESULT; +} +extern "C" { + pub fn VarBstrFromI8(i64In: LONG64, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) + -> HRESULT; +} +extern "C" { + pub fn VarBstrFromR4(fltIn: FLOAT, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) -> HRESULT; +} +extern "C" { + pub fn VarBstrFromR8(dblIn: DOUBLE, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) + -> HRESULT; +} +extern "C" { + pub fn VarBstrFromCy(cyIn: CY, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) -> HRESULT; +} +extern "C" { + pub fn VarBstrFromDate( + dateIn: DATE, + lcid: LCID, + dwFlags: ULONG, + pbstrOut: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn VarBstrFromDisp( + pdispIn: *mut IDispatch, + lcid: LCID, + dwFlags: ULONG, + pbstrOut: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn VarBstrFromBool( + boolIn: VARIANT_BOOL, + lcid: LCID, + dwFlags: ULONG, + pbstrOut: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn VarBstrFromI1(cIn: CHAR, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) -> HRESULT; +} +extern "C" { + pub fn VarBstrFromUI2(uiIn: USHORT, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) + -> HRESULT; +} +extern "C" { + pub fn VarBstrFromUI4(ulIn: ULONG, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) -> HRESULT; +} +extern "C" { + pub fn VarBstrFromUI8( + ui64In: ULONG64, + lcid: LCID, + dwFlags: ULONG, + pbstrOut: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn VarBstrFromDec( + pdecIn: *const DECIMAL, + lcid: LCID, + dwFlags: ULONG, + pbstrOut: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromUI1(bIn: BYTE, pboolOut: *mut VARIANT_BOOL) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromI2(sIn: SHORT, pboolOut: *mut VARIANT_BOOL) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromI4(lIn: LONG, pboolOut: *mut VARIANT_BOOL) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromI8(i64In: LONG64, pboolOut: *mut VARIANT_BOOL) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromR4(fltIn: FLOAT, pboolOut: *mut VARIANT_BOOL) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromR8(dblIn: DOUBLE, pboolOut: *mut VARIANT_BOOL) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromDate(dateIn: DATE, pboolOut: *mut VARIANT_BOOL) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromCy(cyIn: CY, pboolOut: *mut VARIANT_BOOL) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromStr( + strIn: LPCOLESTR, + lcid: LCID, + dwFlags: ULONG, + pboolOut: *mut VARIANT_BOOL, + ) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromDisp( + pdispIn: *mut IDispatch, + lcid: LCID, + pboolOut: *mut VARIANT_BOOL, + ) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromI1(cIn: CHAR, pboolOut: *mut VARIANT_BOOL) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromUI2(uiIn: USHORT, pboolOut: *mut VARIANT_BOOL) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromUI4(ulIn: ULONG, pboolOut: *mut VARIANT_BOOL) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromUI8(i64In: ULONG64, pboolOut: *mut VARIANT_BOOL) -> HRESULT; +} +extern "C" { + pub fn VarBoolFromDec(pdecIn: *const DECIMAL, pboolOut: *mut VARIANT_BOOL) -> HRESULT; +} +extern "C" { + pub fn VarI1FromUI1(bIn: BYTE, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarI1FromI2(uiIn: SHORT, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarI1FromI4(lIn: LONG, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarI1FromI8(i64In: LONG64, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarI1FromR4(fltIn: FLOAT, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarI1FromR8(dblIn: DOUBLE, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarI1FromDate(dateIn: DATE, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarI1FromCy(cyIn: CY, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarI1FromStr(strIn: LPCOLESTR, lcid: LCID, dwFlags: ULONG, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarI1FromDisp(pdispIn: *mut IDispatch, lcid: LCID, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarI1FromBool(boolIn: VARIANT_BOOL, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarI1FromUI2(uiIn: USHORT, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarI1FromUI4(ulIn: ULONG, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarI1FromUI8(i64In: ULONG64, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarI1FromDec(pdecIn: *const DECIMAL, pcOut: *mut CHAR) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromUI1(bIn: BYTE, puiOut: *mut USHORT) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromI2(uiIn: SHORT, puiOut: *mut USHORT) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromI4(lIn: LONG, puiOut: *mut USHORT) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromI8(i64In: LONG64, puiOut: *mut USHORT) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromR4(fltIn: FLOAT, puiOut: *mut USHORT) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromR8(dblIn: DOUBLE, puiOut: *mut USHORT) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromDate(dateIn: DATE, puiOut: *mut USHORT) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromCy(cyIn: CY, puiOut: *mut USHORT) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromStr( + strIn: LPCOLESTR, + lcid: LCID, + dwFlags: ULONG, + puiOut: *mut USHORT, + ) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromDisp(pdispIn: *mut IDispatch, lcid: LCID, puiOut: *mut USHORT) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromBool(boolIn: VARIANT_BOOL, puiOut: *mut USHORT) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromI1(cIn: CHAR, puiOut: *mut USHORT) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromUI4(ulIn: ULONG, puiOut: *mut USHORT) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromUI8(i64In: ULONG64, puiOut: *mut USHORT) -> HRESULT; +} +extern "C" { + pub fn VarUI2FromDec(pdecIn: *const DECIMAL, puiOut: *mut USHORT) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromUI1(bIn: BYTE, pulOut: *mut ULONG) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromI2(uiIn: SHORT, pulOut: *mut ULONG) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromI4(lIn: LONG, pulOut: *mut ULONG) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromI8(i64In: LONG64, plOut: *mut ULONG) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromR4(fltIn: FLOAT, pulOut: *mut ULONG) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromR8(dblIn: DOUBLE, pulOut: *mut ULONG) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromDate(dateIn: DATE, pulOut: *mut ULONG) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromCy(cyIn: CY, pulOut: *mut ULONG) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromStr( + strIn: LPCOLESTR, + lcid: LCID, + dwFlags: ULONG, + pulOut: *mut ULONG, + ) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromDisp(pdispIn: *mut IDispatch, lcid: LCID, pulOut: *mut ULONG) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromBool(boolIn: VARIANT_BOOL, pulOut: *mut ULONG) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromI1(cIn: CHAR, pulOut: *mut ULONG) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromUI2(uiIn: USHORT, pulOut: *mut ULONG) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromUI8(ui64In: ULONG64, plOut: *mut ULONG) -> HRESULT; +} +extern "C" { + pub fn VarUI4FromDec(pdecIn: *const DECIMAL, pulOut: *mut ULONG) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromUI1(bIn: BYTE, pi64Out: *mut ULONG64) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromI2(sIn: SHORT, pi64Out: *mut ULONG64) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromI4(lIn: LONG, pi64Out: *mut ULONG64) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromI8(ui64In: LONG64, pi64Out: *mut ULONG64) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromR4(fltIn: FLOAT, pi64Out: *mut ULONG64) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromR8(dblIn: DOUBLE, pi64Out: *mut ULONG64) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromCy(cyIn: CY, pi64Out: *mut ULONG64) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromDate(dateIn: DATE, pi64Out: *mut ULONG64) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromStr( + strIn: LPCOLESTR, + lcid: LCID, + dwFlags: ULONG, + pi64Out: *mut ULONG64, + ) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromDisp(pdispIn: *mut IDispatch, lcid: LCID, pi64Out: *mut ULONG64) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromBool(boolIn: VARIANT_BOOL, pi64Out: *mut ULONG64) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromI1(cIn: CHAR, pi64Out: *mut ULONG64) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromUI2(uiIn: USHORT, pi64Out: *mut ULONG64) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromUI4(ulIn: ULONG, pi64Out: *mut ULONG64) -> HRESULT; +} +extern "C" { + pub fn VarUI8FromDec(pdecIn: *const DECIMAL, pi64Out: *mut ULONG64) -> HRESULT; +} +extern "C" { + pub fn VarDecFromUI1(bIn: BYTE, pdecOut: *mut DECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecFromI2(uiIn: SHORT, pdecOut: *mut DECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecFromI4(lIn: LONG, pdecOut: *mut DECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecFromI8(i64In: LONG64, pdecOut: *mut DECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecFromR4(fltIn: FLOAT, pdecOut: *mut DECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecFromR8(dblIn: DOUBLE, pdecOut: *mut DECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecFromDate(dateIn: DATE, pdecOut: *mut DECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecFromCy(cyIn: CY, pdecOut: *mut DECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecFromStr( + strIn: LPCOLESTR, + lcid: LCID, + dwFlags: ULONG, + pdecOut: *mut DECIMAL, + ) -> HRESULT; +} +extern "C" { + pub fn VarDecFromDisp(pdispIn: *mut IDispatch, lcid: LCID, pdecOut: *mut DECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecFromBool(boolIn: VARIANT_BOOL, pdecOut: *mut DECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecFromI1(cIn: CHAR, pdecOut: *mut DECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecFromUI2(uiIn: USHORT, pdecOut: *mut DECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecFromUI4(ulIn: ULONG, pdecOut: *mut DECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecFromUI8(ui64In: ULONG64, pdecOut: *mut DECIMAL) -> HRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NUMPARSE { + pub cDig: INT, + pub dwInFlags: ULONG, + pub dwOutFlags: ULONG, + pub cchUsed: INT, + pub nBaseShift: INT, + pub nPwr10: INT, +} +extern "C" { + pub fn VarParseNumFromStr( + strIn: LPCOLESTR, + lcid: LCID, + dwFlags: ULONG, + pnumprs: *mut NUMPARSE, + rgbDig: *mut BYTE, + ) -> HRESULT; +} +extern "C" { + pub fn VarNumFromParseNum( + pnumprs: *mut NUMPARSE, + rgbDig: *mut BYTE, + dwVtBits: ULONG, + pvar: *mut VARIANT, + ) -> HRESULT; +} +extern "C" { + pub fn VarAdd(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarAnd(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarCat(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarDiv(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarEqv(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarIdiv(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarImp(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarMod(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarMul(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarOr(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarPow(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarSub(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarXor(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarAbs(pvarIn: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarFix(pvarIn: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarInt(pvarIn: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarNeg(pvarIn: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarNot(pvarIn: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; +} +extern "C" { + pub fn VarRound( + pvarIn: LPVARIANT, + cDecimals: ::std::os::raw::c_int, + pvarResult: LPVARIANT, + ) -> HRESULT; +} +extern "C" { + pub fn VarCmp(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, lcid: LCID, dwFlags: ULONG) + -> HRESULT; +} +extern "C" { + pub fn VarDecAdd(pdecLeft: LPDECIMAL, pdecRight: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecDiv(pdecLeft: LPDECIMAL, pdecRight: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecMul(pdecLeft: LPDECIMAL, pdecRight: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecSub(pdecLeft: LPDECIMAL, pdecRight: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecAbs(pdecIn: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecFix(pdecIn: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecInt(pdecIn: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecNeg(pdecIn: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecRound( + pdecIn: LPDECIMAL, + cDecimals: ::std::os::raw::c_int, + pdecResult: LPDECIMAL, + ) -> HRESULT; +} +extern "C" { + pub fn VarDecCmp(pdecLeft: LPDECIMAL, pdecRight: LPDECIMAL) -> HRESULT; +} +extern "C" { + pub fn VarDecCmpR8(pdecLeft: LPDECIMAL, dblRight: f64) -> HRESULT; +} +extern "C" { + pub fn VarCyAdd(cyLeft: CY, cyRight: CY, pcyResult: LPCY) -> HRESULT; +} +extern "C" { + pub fn VarCyMul(cyLeft: CY, cyRight: CY, pcyResult: LPCY) -> HRESULT; +} +extern "C" { + pub fn VarCyMulI4(cyLeft: CY, lRight: LONG, pcyResult: LPCY) -> HRESULT; +} +extern "C" { + pub fn VarCyMulI8(cyLeft: CY, lRight: LONG64, pcyResult: LPCY) -> HRESULT; +} +extern "C" { + pub fn VarCySub(cyLeft: CY, cyRight: CY, pcyResult: LPCY) -> HRESULT; +} +extern "C" { + pub fn VarCyAbs(cyIn: CY, pcyResult: LPCY) -> HRESULT; +} +extern "C" { + pub fn VarCyFix(cyIn: CY, pcyResult: LPCY) -> HRESULT; +} +extern "C" { + pub fn VarCyInt(cyIn: CY, pcyResult: LPCY) -> HRESULT; +} +extern "C" { + pub fn VarCyNeg(cyIn: CY, pcyResult: LPCY) -> HRESULT; +} +extern "C" { + pub fn VarCyRound(cyIn: CY, cDecimals: ::std::os::raw::c_int, pcyResult: LPCY) -> HRESULT; +} +extern "C" { + pub fn VarCyCmp(cyLeft: CY, cyRight: CY) -> HRESULT; +} +extern "C" { + pub fn VarCyCmpR8(cyLeft: CY, dblRight: f64) -> HRESULT; +} +extern "C" { + pub fn VarBstrCat(bstrLeft: BSTR, bstrRight: BSTR, pbstrResult: LPBSTR) -> HRESULT; +} +extern "C" { + pub fn VarBstrCmp(bstrLeft: BSTR, bstrRight: BSTR, lcid: LCID, dwFlags: ULONG) -> HRESULT; +} +extern "C" { + pub fn VarR8Pow(dblLeft: f64, dblRight: f64, pdblResult: *mut f64) -> HRESULT; +} +extern "C" { + pub fn VarR4CmpR8(fltLeft: f32, dblRight: f64) -> HRESULT; +} +extern "C" { + pub fn VarR8Round( + dblIn: f64, + cDecimals: ::std::os::raw::c_int, + pdblResult: *mut f64, + ) -> HRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct UDATE { + pub st: SYSTEMTIME, + pub wDayOfYear: USHORT, +} +extern "C" { + pub fn VarDateFromUdate(pudateIn: *mut UDATE, dwFlags: ULONG, pdateOut: *mut DATE) -> HRESULT; +} +extern "C" { + pub fn VarDateFromUdateEx( + pudateIn: *mut UDATE, + lcid: LCID, + dwFlags: ULONG, + pdateOut: *mut DATE, + ) -> HRESULT; +} +extern "C" { + pub fn VarUdateFromDate(dateIn: DATE, dwFlags: ULONG, pudateOut: *mut UDATE) -> HRESULT; +} +extern "C" { + pub fn GetAltMonthNames(lcid: LCID, prgp: *mut *mut LPOLESTR) -> HRESULT; +} +extern "C" { + pub fn VarFormat( + pvarIn: LPVARIANT, + pstrFormat: LPOLESTR, + iFirstDay: ::std::os::raw::c_int, + iFirstWeek: ::std::os::raw::c_int, + dwFlags: ULONG, + pbstrOut: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn VarFormatDateTime( + pvarIn: LPVARIANT, + iNamedFormat: ::std::os::raw::c_int, + dwFlags: ULONG, + pbstrOut: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn VarFormatNumber( + pvarIn: LPVARIANT, + iNumDig: ::std::os::raw::c_int, + iIncLead: ::std::os::raw::c_int, + iUseParens: ::std::os::raw::c_int, + iGroup: ::std::os::raw::c_int, + dwFlags: ULONG, + pbstrOut: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn VarFormatPercent( + pvarIn: LPVARIANT, + iNumDig: ::std::os::raw::c_int, + iIncLead: ::std::os::raw::c_int, + iUseParens: ::std::os::raw::c_int, + iGroup: ::std::os::raw::c_int, + dwFlags: ULONG, + pbstrOut: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn VarFormatCurrency( + pvarIn: LPVARIANT, + iNumDig: ::std::os::raw::c_int, + iIncLead: ::std::os::raw::c_int, + iUseParens: ::std::os::raw::c_int, + iGroup: ::std::os::raw::c_int, + dwFlags: ULONG, + pbstrOut: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn VarWeekdayName( + iWeekday: ::std::os::raw::c_int, + fAbbrev: ::std::os::raw::c_int, + iFirstDay: ::std::os::raw::c_int, + dwFlags: ULONG, + pbstrOut: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn VarMonthName( + iMonth: ::std::os::raw::c_int, + fAbbrev: ::std::os::raw::c_int, + dwFlags: ULONG, + pbstrOut: *mut BSTR, + ) -> HRESULT; +} +extern "C" { + pub fn VarFormatFromTokens( + pvarIn: LPVARIANT, + pstrFormat: LPOLESTR, + pbTokCur: LPBYTE, + dwFlags: ULONG, + pbstrOut: *mut BSTR, + lcid: LCID, + ) -> HRESULT; +} +extern "C" { + pub fn VarTokenizeFormatString( + pstrFormat: LPOLESTR, + rgbTok: LPBYTE, + cbTok: ::std::os::raw::c_int, + iFirstDay: ::std::os::raw::c_int, + iFirstWeek: ::std::os::raw::c_int, + lcid: LCID, + pcbActual: *mut ::std::os::raw::c_int, + ) -> HRESULT; +} +extern "C" { + pub fn LHashValOfNameSysA(syskind: SYSKIND, lcid: LCID, szName: LPCSTR) -> ULONG; +} +extern "C" { + pub fn LHashValOfNameSys(syskind: SYSKIND, lcid: LCID, szName: *const OLECHAR) -> ULONG; +} +extern "C" { + pub fn LoadTypeLib(szFile: LPCOLESTR, pptlib: *mut *mut ITypeLib) -> HRESULT; +} +pub const tagREGKIND_REGKIND_DEFAULT: tagREGKIND = 0; +pub const tagREGKIND_REGKIND_REGISTER: tagREGKIND = 1; +pub const tagREGKIND_REGKIND_NONE: tagREGKIND = 2; +pub type tagREGKIND = ::std::os::raw::c_int; +pub use self::tagREGKIND as REGKIND; +extern "C" { + pub fn LoadTypeLibEx( + szFile: LPCOLESTR, + regkind: REGKIND, + pptlib: *mut *mut ITypeLib, + ) -> HRESULT; +} +extern "C" { + pub fn LoadRegTypeLib( + rguid: *const GUID, + wVerMajor: WORD, + wVerMinor: WORD, + lcid: LCID, + pptlib: *mut *mut ITypeLib, + ) -> HRESULT; +} +extern "C" { + pub fn QueryPathOfRegTypeLib( + guid: *const GUID, + wMaj: USHORT, + wMin: USHORT, + lcid: LCID, + lpbstrPathName: LPBSTR, + ) -> HRESULT; +} +extern "C" { + pub fn RegisterTypeLib( + ptlib: *mut ITypeLib, + szFullPath: LPCOLESTR, + szHelpDir: LPCOLESTR, + ) -> HRESULT; +} +extern "C" { + pub fn UnRegisterTypeLib( + libID: *const GUID, + wVerMajor: WORD, + wVerMinor: WORD, + lcid: LCID, + syskind: SYSKIND, + ) -> HRESULT; +} +extern "C" { + pub fn RegisterTypeLibForUser( + ptlib: *mut ITypeLib, + szFullPath: *mut OLECHAR, + szHelpDir: *mut OLECHAR, + ) -> HRESULT; +} +extern "C" { + pub fn UnRegisterTypeLibForUser( + libID: *const GUID, + wMajorVerNum: WORD, + wMinorVerNum: WORD, + lcid: LCID, + syskind: SYSKIND, + ) -> HRESULT; +} +extern "C" { + pub fn CreateTypeLib( + syskind: SYSKIND, + szFile: LPCOLESTR, + ppctlib: *mut *mut ICreateTypeLib, + ) -> HRESULT; +} +extern "C" { + pub fn CreateTypeLib2( + syskind: SYSKIND, + szFile: LPCOLESTR, + ppctlib: *mut *mut ICreateTypeLib2, + ) -> HRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPARAMDATA { + pub szName: *mut OLECHAR, + pub vt: VARTYPE, +} +pub type PARAMDATA = tagPARAMDATA; +pub type LPPARAMDATA = *mut tagPARAMDATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMETHODDATA { + pub szName: *mut OLECHAR, + pub ppdata: *mut PARAMDATA, + pub dispid: DISPID, + pub iMeth: UINT, + pub cc: CALLCONV, + pub cArgs: UINT, + pub wFlags: WORD, + pub vtReturn: VARTYPE, +} +pub type METHODDATA = tagMETHODDATA; +pub type LPMETHODDATA = *mut tagMETHODDATA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagINTERFACEDATA { + pub pmethdata: *mut METHODDATA, + pub cMembers: UINT, +} +pub type INTERFACEDATA = tagINTERFACEDATA; +pub type LPINTERFACEDATA = *mut tagINTERFACEDATA; +extern "C" { + pub fn DispGetParam( + pdispparams: *mut DISPPARAMS, + position: UINT, + vtTarg: VARTYPE, + pvarResult: *mut VARIANT, + puArgErr: *mut UINT, + ) -> HRESULT; +} +extern "C" { + pub fn DispGetIDsOfNames( + ptinfo: *mut ITypeInfo, + rgszNames: *mut LPOLESTR, + cNames: UINT, + rgdispid: *mut DISPID, + ) -> HRESULT; +} +extern "C" { + pub fn DispInvoke( + _this: *mut ::std::os::raw::c_void, + ptinfo: *mut ITypeInfo, + dispidMember: DISPID, + wFlags: WORD, + pparams: *mut DISPPARAMS, + pvarResult: *mut VARIANT, + pexcepinfo: *mut EXCEPINFO, + puArgErr: *mut UINT, + ) -> HRESULT; +} +extern "C" { + pub fn CreateDispTypeInfo( + pidata: *mut INTERFACEDATA, + lcid: LCID, + pptinfo: *mut *mut ITypeInfo, + ) -> HRESULT; +} +extern "C" { + pub fn CreateStdDispatch( + punkOuter: *mut IUnknown, + pvThis: *mut ::std::os::raw::c_void, + ptinfo: *mut ITypeInfo, + ppunkStdDisp: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn DispCallFunc( + pvInstance: *mut ::std::os::raw::c_void, + oVft: ULONG_PTR, + cc: CALLCONV, + vtReturn: VARTYPE, + cActuals: UINT, + prgvt: *mut VARTYPE, + prgpvarg: *mut *mut VARIANTARG, + pvargResult: *mut VARIANT, + ) -> HRESULT; +} +extern "C" { + pub fn RegisterActiveObject( + punk: *mut IUnknown, + rclsid: *const IID, + dwFlags: DWORD, + pdwRegister: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn RevokeActiveObject( + dwRegister: DWORD, + pvReserved: *mut ::std::os::raw::c_void, + ) -> HRESULT; +} +extern "C" { + pub fn GetActiveObject( + rclsid: *const IID, + pvReserved: *mut ::std::os::raw::c_void, + ppunk: *mut *mut IUnknown, + ) -> HRESULT; +} +extern "C" { + pub fn SetErrorInfo(dwReserved: ULONG, perrinfo: *mut IErrorInfo) -> HRESULT; +} +extern "C" { + pub fn GetErrorInfo(dwReserved: ULONG, pperrinfo: *mut *mut IErrorInfo) -> HRESULT; +} +extern "C" { + pub fn CreateErrorInfo(pperrinfo: *mut *mut ICreateErrorInfo) -> HRESULT; +} +extern "C" { + pub fn GetRecordInfoFromTypeInfo( + pTypeInfo: *mut ITypeInfo, + ppRecInfo: *mut *mut IRecordInfo, + ) -> HRESULT; +} +extern "C" { + pub fn GetRecordInfoFromGuids( + rGuidTypeLib: *const GUID, + uVerMajor: ULONG, + uVerMinor: ULONG, + lcid: LCID, + rGuidTypeInfo: *const GUID, + ppRecInfo: *mut *mut IRecordInfo, + ) -> HRESULT; +} +extern "C" { + pub fn OaBuildVersion() -> ULONG; +} +extern "C" { + pub fn ClearCustData(pCustData: LPCUSTDATA); +} +extern "C" { + pub fn OaEnablePerUserTLibRegistration(); +} +extern "C" { + pub fn OleBuildVersion() -> DWORD; +} +extern "C" { + pub fn WriteFmtUserTypeStg(pstg: LPSTORAGE, cf: CLIPFORMAT, lpszUserType: LPOLESTR) -> HRESULT; +} +extern "C" { + pub fn ReadFmtUserTypeStg( + pstg: LPSTORAGE, + pcf: *mut CLIPFORMAT, + lplpszUserType: *mut LPOLESTR, + ) -> HRESULT; +} +extern "C" { + pub fn OleInitialize(pvReserved: LPVOID) -> HRESULT; +} +extern "C" { + pub fn OleUninitialize(); +} +extern "C" { + pub fn OleQueryLinkFromData(pSrcDataObject: LPDATAOBJECT) -> HRESULT; +} +extern "C" { + pub fn OleQueryCreateFromData(pSrcDataObject: LPDATAOBJECT) -> HRESULT; +} +extern "C" { + pub fn OleCreate( + rclsid: *const IID, + riid: *const IID, + renderopt: DWORD, + pFormatEtc: LPFORMATETC, + pClientSite: LPOLECLIENTSITE, + pStg: LPSTORAGE, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleCreateEx( + rclsid: *const IID, + riid: *const IID, + dwFlags: DWORD, + renderopt: DWORD, + cFormats: ULONG, + rgAdvf: *mut DWORD, + rgFormatEtc: LPFORMATETC, + lpAdviseSink: *mut IAdviseSink, + rgdwConnection: *mut DWORD, + pClientSite: LPOLECLIENTSITE, + pStg: LPSTORAGE, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleCreateFromData( + pSrcDataObj: LPDATAOBJECT, + riid: *const IID, + renderopt: DWORD, + pFormatEtc: LPFORMATETC, + pClientSite: LPOLECLIENTSITE, + pStg: LPSTORAGE, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleCreateFromDataEx( + pSrcDataObj: LPDATAOBJECT, + riid: *const IID, + dwFlags: DWORD, + renderopt: DWORD, + cFormats: ULONG, + rgAdvf: *mut DWORD, + rgFormatEtc: LPFORMATETC, + lpAdviseSink: *mut IAdviseSink, + rgdwConnection: *mut DWORD, + pClientSite: LPOLECLIENTSITE, + pStg: LPSTORAGE, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleCreateLinkFromData( + pSrcDataObj: LPDATAOBJECT, + riid: *const IID, + renderopt: DWORD, + pFormatEtc: LPFORMATETC, + pClientSite: LPOLECLIENTSITE, + pStg: LPSTORAGE, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleCreateLinkFromDataEx( + pSrcDataObj: LPDATAOBJECT, + riid: *const IID, + dwFlags: DWORD, + renderopt: DWORD, + cFormats: ULONG, + rgAdvf: *mut DWORD, + rgFormatEtc: LPFORMATETC, + lpAdviseSink: *mut IAdviseSink, + rgdwConnection: *mut DWORD, + pClientSite: LPOLECLIENTSITE, + pStg: LPSTORAGE, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleCreateStaticFromData( + pSrcDataObj: LPDATAOBJECT, + iid: *const IID, + renderopt: DWORD, + pFormatEtc: LPFORMATETC, + pClientSite: LPOLECLIENTSITE, + pStg: LPSTORAGE, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleCreateLink( + pmkLinkSrc: LPMONIKER, + riid: *const IID, + renderopt: DWORD, + lpFormatEtc: LPFORMATETC, + pClientSite: LPOLECLIENTSITE, + pStg: LPSTORAGE, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleCreateLinkEx( + pmkLinkSrc: LPMONIKER, + riid: *const IID, + dwFlags: DWORD, + renderopt: DWORD, + cFormats: ULONG, + rgAdvf: *mut DWORD, + rgFormatEtc: LPFORMATETC, + lpAdviseSink: *mut IAdviseSink, + rgdwConnection: *mut DWORD, + pClientSite: LPOLECLIENTSITE, + pStg: LPSTORAGE, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleCreateLinkToFile( + lpszFileName: LPCOLESTR, + riid: *const IID, + renderopt: DWORD, + lpFormatEtc: LPFORMATETC, + pClientSite: LPOLECLIENTSITE, + pStg: LPSTORAGE, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleCreateLinkToFileEx( + lpszFileName: LPCOLESTR, + riid: *const IID, + dwFlags: DWORD, + renderopt: DWORD, + cFormats: ULONG, + rgAdvf: *mut DWORD, + rgFormatEtc: LPFORMATETC, + lpAdviseSink: *mut IAdviseSink, + rgdwConnection: *mut DWORD, + pClientSite: LPOLECLIENTSITE, + pStg: LPSTORAGE, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleCreateFromFile( + rclsid: *const IID, + lpszFileName: LPCOLESTR, + riid: *const IID, + renderopt: DWORD, + lpFormatEtc: LPFORMATETC, + pClientSite: LPOLECLIENTSITE, + pStg: LPSTORAGE, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleCreateFromFileEx( + rclsid: *const IID, + lpszFileName: LPCOLESTR, + riid: *const IID, + dwFlags: DWORD, + renderopt: DWORD, + cFormats: ULONG, + rgAdvf: *mut DWORD, + rgFormatEtc: LPFORMATETC, + lpAdviseSink: *mut IAdviseSink, + rgdwConnection: *mut DWORD, + pClientSite: LPOLECLIENTSITE, + pStg: LPSTORAGE, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleLoad( + pStg: LPSTORAGE, + riid: *const IID, + pClientSite: LPOLECLIENTSITE, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleSave(pPS: LPPERSISTSTORAGE, pStg: LPSTORAGE, fSameAsLoad: BOOL) -> HRESULT; +} +extern "C" { + pub fn OleLoadFromStream( + pStm: LPSTREAM, + iidInterface: *const IID, + ppvObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleSaveToStream(pPStm: LPPERSISTSTREAM, pStm: LPSTREAM) -> HRESULT; +} +extern "C" { + pub fn OleSetContainedObject(pUnknown: LPUNKNOWN, fContained: BOOL) -> HRESULT; +} +extern "C" { + pub fn OleNoteObjectVisible(pUnknown: LPUNKNOWN, fVisible: BOOL) -> HRESULT; +} +extern "C" { + pub fn RegisterDragDrop(hwnd: HWND, pDropTarget: LPDROPTARGET) -> HRESULT; +} +extern "C" { + pub fn RevokeDragDrop(hwnd: HWND) -> HRESULT; +} +extern "C" { + pub fn DoDragDrop( + pDataObj: LPDATAOBJECT, + pDropSource: LPDROPSOURCE, + dwOKEffects: DWORD, + pdwEffect: LPDWORD, + ) -> HRESULT; +} +extern "C" { + pub fn OleSetClipboard(pDataObj: LPDATAOBJECT) -> HRESULT; +} +extern "C" { + pub fn OleGetClipboard(ppDataObj: *mut LPDATAOBJECT) -> HRESULT; +} +extern "C" { + pub fn OleGetClipboardWithEnterpriseInfo( + dataObject: *mut *mut IDataObject, + dataEnterpriseId: *mut PWSTR, + sourceDescription: *mut PWSTR, + targetDescription: *mut PWSTR, + dataDescription: *mut PWSTR, + ) -> HRESULT; +} +extern "C" { + pub fn OleFlushClipboard() -> HRESULT; +} +extern "C" { + pub fn OleIsCurrentClipboard(pDataObj: LPDATAOBJECT) -> HRESULT; +} +extern "C" { + pub fn OleCreateMenuDescriptor( + hmenuCombined: HMENU, + lpMenuWidths: LPOLEMENUGROUPWIDTHS, + ) -> HOLEMENU; +} +extern "C" { + pub fn OleSetMenuDescriptor( + holemenu: HOLEMENU, + hwndFrame: HWND, + hwndActiveObject: HWND, + lpFrame: LPOLEINPLACEFRAME, + lpActiveObj: LPOLEINPLACEACTIVEOBJECT, + ) -> HRESULT; +} +extern "C" { + pub fn OleDestroyMenuDescriptor(holemenu: HOLEMENU) -> HRESULT; +} +extern "C" { + pub fn OleTranslateAccelerator( + lpFrame: LPOLEINPLACEFRAME, + lpFrameInfo: LPOLEINPLACEFRAMEINFO, + lpmsg: LPMSG, + ) -> HRESULT; +} +extern "C" { + pub fn OleDuplicateData(hSrc: HANDLE, cfFormat: CLIPFORMAT, uiFlags: UINT) -> HANDLE; +} +extern "C" { + pub fn OleDraw( + pUnknown: LPUNKNOWN, + dwAspect: DWORD, + hdcDraw: HDC, + lprcBounds: LPCRECT, + ) -> HRESULT; +} +extern "C" { + pub fn OleRun(pUnknown: LPUNKNOWN) -> HRESULT; +} +extern "C" { + pub fn OleIsRunning(pObject: LPOLEOBJECT) -> BOOL; +} +extern "C" { + pub fn OleLockRunning(pUnknown: LPUNKNOWN, fLock: BOOL, fLastUnlockCloses: BOOL) -> HRESULT; +} +extern "C" { + pub fn ReleaseStgMedium(arg1: LPSTGMEDIUM); +} +extern "C" { + pub fn CreateOleAdviseHolder(ppOAHolder: *mut LPOLEADVISEHOLDER) -> HRESULT; +} +extern "C" { + pub fn OleCreateDefaultHandler( + clsid: *const IID, + pUnkOuter: LPUNKNOWN, + riid: *const IID, + lplpObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn OleCreateEmbeddingHelper( + clsid: *const IID, + pUnkOuter: LPUNKNOWN, + flags: DWORD, + pCF: LPCLASSFACTORY, + riid: *const IID, + lplpObj: *mut LPVOID, + ) -> HRESULT; +} +extern "C" { + pub fn IsAccelerator( + hAccel: HACCEL, + cAccelEntries: ::std::os::raw::c_int, + lpMsg: LPMSG, + lpwCmd: *mut WORD, + ) -> BOOL; +} +extern "C" { + pub fn OleGetIconOfFile(lpszPath: LPOLESTR, fUseFileAsLabel: BOOL) -> HGLOBAL; +} +extern "C" { + pub fn OleGetIconOfClass( + rclsid: *const IID, + lpszLabel: LPOLESTR, + fUseTypeAsLabel: BOOL, + ) -> HGLOBAL; +} +extern "C" { + pub fn OleMetafilePictFromIconAndLabel( + hIcon: HICON, + lpszLabel: LPOLESTR, + lpszSourceFile: LPOLESTR, + iIconIndex: UINT, + ) -> HGLOBAL; +} +extern "C" { + pub fn OleRegGetUserType( + clsid: *const IID, + dwFormOfType: DWORD, + pszUserType: *mut LPOLESTR, + ) -> HRESULT; +} +extern "C" { + pub fn OleRegGetMiscStatus( + clsid: *const IID, + dwAspect: DWORD, + pdwStatus: *mut DWORD, + ) -> HRESULT; +} +extern "C" { + pub fn OleRegEnumFormatEtc( + clsid: *const IID, + dwDirection: DWORD, + ppenum: *mut LPENUMFORMATETC, + ) -> HRESULT; +} +extern "C" { + pub fn OleRegEnumVerbs(clsid: *const IID, ppenum: *mut LPENUMOLEVERB) -> HRESULT; +} +pub type LPOLESTREAM = *mut _OLESTREAM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OLESTREAMVTBL { + pub Get: ::std::option::Option< + unsafe extern "C" fn( + arg1: LPOLESTREAM, + arg2: *mut ::std::os::raw::c_void, + arg3: DWORD, + ) -> DWORD, + >, + pub Put: ::std::option::Option< + unsafe extern "C" fn( + arg1: LPOLESTREAM, + arg2: *const ::std::os::raw::c_void, + arg3: DWORD, + ) -> DWORD, + >, +} +pub type OLESTREAMVTBL = _OLESTREAMVTBL; +pub type LPOLESTREAMVTBL = *mut OLESTREAMVTBL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OLESTREAM { + pub lpstbl: LPOLESTREAMVTBL, +} +pub type OLESTREAM = _OLESTREAM; +extern "C" { + pub fn OleConvertOLESTREAMToIStorage( + lpolestream: LPOLESTREAM, + pstg: LPSTORAGE, + ptd: *const DVTARGETDEVICE, + ) -> HRESULT; +} +extern "C" { + pub fn OleConvertIStorageToOLESTREAM(pstg: LPSTORAGE, lpolestream: LPOLESTREAM) -> HRESULT; +} +extern "C" { + pub fn OleDoAutoConvert(pStg: LPSTORAGE, pClsidNew: LPCLSID) -> HRESULT; +} +extern "C" { + pub fn OleGetAutoConvert(clsidOld: *const IID, pClsidNew: LPCLSID) -> HRESULT; +} +extern "C" { + pub fn OleSetAutoConvert(clsidOld: *const IID, clsidNew: *const IID) -> HRESULT; +} +extern "C" { + pub fn SetConvertStg(pStg: LPSTORAGE, fConvert: BOOL) -> HRESULT; +} +extern "C" { + pub fn OleConvertIStorageToOLESTREAMEx( + pstg: LPSTORAGE, + cfFormat: CLIPFORMAT, + lWidth: LONG, + lHeight: LONG, + dwSize: DWORD, + pmedium: LPSTGMEDIUM, + polestm: LPOLESTREAM, + ) -> HRESULT; +} +extern "C" { + pub fn OleConvertOLESTREAMToIStorageEx( + polestm: LPOLESTREAM, + pstg: LPSTORAGE, + pcfFormat: *mut CLIPFORMAT, + plwWidth: *mut LONG, + plHeight: *mut LONG, + pdwSize: *mut DWORD, + pmedium: LPSTGMEDIUM, + ) -> HRESULT; +} +extern "C" { + pub static IID_IPrintDialogCallback: GUID; +} +extern "C" { + pub static IID_IPrintDialogServices: GUID; +} +pub type LPOFNHOOKPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagOFN_NT4A { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hInstance: HINSTANCE, + pub lpstrFilter: LPCSTR, + pub lpstrCustomFilter: LPSTR, + pub nMaxCustFilter: DWORD, + pub nFilterIndex: DWORD, + pub lpstrFile: LPSTR, + pub nMaxFile: DWORD, + pub lpstrFileTitle: LPSTR, + pub nMaxFileTitle: DWORD, + pub lpstrInitialDir: LPCSTR, + pub lpstrTitle: LPCSTR, + pub Flags: DWORD, + pub nFileOffset: WORD, + pub nFileExtension: WORD, + pub lpstrDefExt: LPCSTR, + pub lCustData: LPARAM, + pub lpfnHook: LPOFNHOOKPROC, + pub lpTemplateName: LPCSTR, +} +pub type OPENFILENAME_NT4A = tagOFN_NT4A; +pub type LPOPENFILENAME_NT4A = *mut tagOFN_NT4A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagOFN_NT4W { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hInstance: HINSTANCE, + pub lpstrFilter: LPCWSTR, + pub lpstrCustomFilter: LPWSTR, + pub nMaxCustFilter: DWORD, + pub nFilterIndex: DWORD, + pub lpstrFile: LPWSTR, + pub nMaxFile: DWORD, + pub lpstrFileTitle: LPWSTR, + pub nMaxFileTitle: DWORD, + pub lpstrInitialDir: LPCWSTR, + pub lpstrTitle: LPCWSTR, + pub Flags: DWORD, + pub nFileOffset: WORD, + pub nFileExtension: WORD, + pub lpstrDefExt: LPCWSTR, + pub lCustData: LPARAM, + pub lpfnHook: LPOFNHOOKPROC, + pub lpTemplateName: LPCWSTR, +} +pub type OPENFILENAME_NT4W = tagOFN_NT4W; +pub type LPOPENFILENAME_NT4W = *mut tagOFN_NT4W; +pub type OPENFILENAME_NT4 = OPENFILENAME_NT4A; +pub type LPOPENFILENAME_NT4 = LPOPENFILENAME_NT4A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagOFNA { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hInstance: HINSTANCE, + pub lpstrFilter: LPCSTR, + pub lpstrCustomFilter: LPSTR, + pub nMaxCustFilter: DWORD, + pub nFilterIndex: DWORD, + pub lpstrFile: LPSTR, + pub nMaxFile: DWORD, + pub lpstrFileTitle: LPSTR, + pub nMaxFileTitle: DWORD, + pub lpstrInitialDir: LPCSTR, + pub lpstrTitle: LPCSTR, + pub Flags: DWORD, + pub nFileOffset: WORD, + pub nFileExtension: WORD, + pub lpstrDefExt: LPCSTR, + pub lCustData: LPARAM, + pub lpfnHook: LPOFNHOOKPROC, + pub lpTemplateName: LPCSTR, + pub pvReserved: *mut ::std::os::raw::c_void, + pub dwReserved: DWORD, + pub FlagsEx: DWORD, +} +pub type OPENFILENAMEA = tagOFNA; +pub type LPOPENFILENAMEA = *mut tagOFNA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagOFNW { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hInstance: HINSTANCE, + pub lpstrFilter: LPCWSTR, + pub lpstrCustomFilter: LPWSTR, + pub nMaxCustFilter: DWORD, + pub nFilterIndex: DWORD, + pub lpstrFile: LPWSTR, + pub nMaxFile: DWORD, + pub lpstrFileTitle: LPWSTR, + pub nMaxFileTitle: DWORD, + pub lpstrInitialDir: LPCWSTR, + pub lpstrTitle: LPCWSTR, + pub Flags: DWORD, + pub nFileOffset: WORD, + pub nFileExtension: WORD, + pub lpstrDefExt: LPCWSTR, + pub lCustData: LPARAM, + pub lpfnHook: LPOFNHOOKPROC, + pub lpTemplateName: LPCWSTR, + pub pvReserved: *mut ::std::os::raw::c_void, + pub dwReserved: DWORD, + pub FlagsEx: DWORD, +} +pub type OPENFILENAMEW = tagOFNW; +pub type LPOPENFILENAMEW = *mut tagOFNW; +pub type OPENFILENAME = OPENFILENAMEA; +pub type LPOPENFILENAME = LPOPENFILENAMEA; +extern "C" { + pub fn GetOpenFileNameA(arg1: LPOPENFILENAMEA) -> BOOL; +} +extern "C" { + pub fn GetOpenFileNameW(arg1: LPOPENFILENAMEW) -> BOOL; +} +extern "C" { + pub fn GetSaveFileNameA(arg1: LPOPENFILENAMEA) -> BOOL; +} +extern "C" { + pub fn GetSaveFileNameW(arg1: LPOPENFILENAMEW) -> BOOL; +} +extern "C" { + pub fn GetFileTitleA(arg1: LPCSTR, Buf: LPSTR, cchSize: WORD) -> ::std::os::raw::c_short; +} +extern "C" { + pub fn GetFileTitleW(arg1: LPCWSTR, Buf: LPWSTR, cchSize: WORD) -> ::std::os::raw::c_short; +} +pub type LPCCHOOKPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OFNOTIFYA { + pub hdr: NMHDR, + pub lpOFN: LPOPENFILENAMEA, + pub pszFile: LPSTR, +} +pub type OFNOTIFYA = _OFNOTIFYA; +pub type LPOFNOTIFYA = *mut _OFNOTIFYA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OFNOTIFYW { + pub hdr: NMHDR, + pub lpOFN: LPOPENFILENAMEW, + pub pszFile: LPWSTR, +} +pub type OFNOTIFYW = _OFNOTIFYW; +pub type LPOFNOTIFYW = *mut _OFNOTIFYW; +pub type OFNOTIFY = OFNOTIFYA; +pub type LPOFNOTIFY = LPOFNOTIFYA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OFNOTIFYEXA { + pub hdr: NMHDR, + pub lpOFN: LPOPENFILENAMEA, + pub psf: LPVOID, + pub pidl: LPVOID, +} +pub type OFNOTIFYEXA = _OFNOTIFYEXA; +pub type LPOFNOTIFYEXA = *mut _OFNOTIFYEXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _OFNOTIFYEXW { + pub hdr: NMHDR, + pub lpOFN: LPOPENFILENAMEW, + pub psf: LPVOID, + pub pidl: LPVOID, +} +pub type OFNOTIFYEXW = _OFNOTIFYEXW; +pub type LPOFNOTIFYEXW = *mut _OFNOTIFYEXW; +pub type OFNOTIFYEX = OFNOTIFYEXA; +pub type LPOFNOTIFYEX = LPOFNOTIFYEXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCHOOSECOLORA { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hInstance: HWND, + pub rgbResult: COLORREF, + pub lpCustColors: *mut COLORREF, + pub Flags: DWORD, + pub lCustData: LPARAM, + pub lpfnHook: LPCCHOOKPROC, + pub lpTemplateName: LPCSTR, +} +pub type CHOOSECOLORA = tagCHOOSECOLORA; +pub type LPCHOOSECOLORA = *mut tagCHOOSECOLORA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCHOOSECOLORW { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hInstance: HWND, + pub rgbResult: COLORREF, + pub lpCustColors: *mut COLORREF, + pub Flags: DWORD, + pub lCustData: LPARAM, + pub lpfnHook: LPCCHOOKPROC, + pub lpTemplateName: LPCWSTR, +} +pub type CHOOSECOLORW = tagCHOOSECOLORW; +pub type LPCHOOSECOLORW = *mut tagCHOOSECOLORW; +pub type CHOOSECOLOR = CHOOSECOLORA; +pub type LPCHOOSECOLOR = LPCHOOSECOLORA; +extern "C" { + pub fn ChooseColorA(arg1: LPCHOOSECOLORA) -> BOOL; +} +extern "C" { + pub fn ChooseColorW(arg1: LPCHOOSECOLORW) -> BOOL; +} +pub type LPFRHOOKPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagFINDREPLACEA { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hInstance: HINSTANCE, + pub Flags: DWORD, + pub lpstrFindWhat: LPSTR, + pub lpstrReplaceWith: LPSTR, + pub wFindWhatLen: WORD, + pub wReplaceWithLen: WORD, + pub lCustData: LPARAM, + pub lpfnHook: LPFRHOOKPROC, + pub lpTemplateName: LPCSTR, +} +pub type FINDREPLACEA = tagFINDREPLACEA; +pub type LPFINDREPLACEA = *mut tagFINDREPLACEA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagFINDREPLACEW { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hInstance: HINSTANCE, + pub Flags: DWORD, + pub lpstrFindWhat: LPWSTR, + pub lpstrReplaceWith: LPWSTR, + pub wFindWhatLen: WORD, + pub wReplaceWithLen: WORD, + pub lCustData: LPARAM, + pub lpfnHook: LPFRHOOKPROC, + pub lpTemplateName: LPCWSTR, +} +pub type FINDREPLACEW = tagFINDREPLACEW; +pub type LPFINDREPLACEW = *mut tagFINDREPLACEW; +pub type FINDREPLACE = FINDREPLACEA; +pub type LPFINDREPLACE = LPFINDREPLACEA; +extern "C" { + pub fn FindTextA(arg1: LPFINDREPLACEA) -> HWND; +} +extern "C" { + pub fn FindTextW(arg1: LPFINDREPLACEW) -> HWND; +} +extern "C" { + pub fn ReplaceTextA(arg1: LPFINDREPLACEA) -> HWND; +} +extern "C" { + pub fn ReplaceTextW(arg1: LPFINDREPLACEW) -> HWND; +} +pub type LPCFHOOKPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCHOOSEFONTA { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hDC: HDC, + pub lpLogFont: LPLOGFONTA, + pub iPointSize: INT, + pub Flags: DWORD, + pub rgbColors: COLORREF, + pub lCustData: LPARAM, + pub lpfnHook: LPCFHOOKPROC, + pub lpTemplateName: LPCSTR, + pub hInstance: HINSTANCE, + pub lpszStyle: LPSTR, + pub nFontType: WORD, + pub ___MISSING_ALIGNMENT__: WORD, + pub nSizeMin: INT, + pub nSizeMax: INT, +} +pub type CHOOSEFONTA = tagCHOOSEFONTA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCHOOSEFONTW { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hDC: HDC, + pub lpLogFont: LPLOGFONTW, + pub iPointSize: INT, + pub Flags: DWORD, + pub rgbColors: COLORREF, + pub lCustData: LPARAM, + pub lpfnHook: LPCFHOOKPROC, + pub lpTemplateName: LPCWSTR, + pub hInstance: HINSTANCE, + pub lpszStyle: LPWSTR, + pub nFontType: WORD, + pub ___MISSING_ALIGNMENT__: WORD, + pub nSizeMin: INT, + pub nSizeMax: INT, +} +pub type CHOOSEFONTW = tagCHOOSEFONTW; +pub type CHOOSEFONT = CHOOSEFONTA; +pub type LPCHOOSEFONTA = *mut CHOOSEFONTA; +pub type LPCHOOSEFONTW = *mut CHOOSEFONTW; +pub type LPCHOOSEFONT = LPCHOOSEFONTA; +pub type PCCHOOSEFONTA = *const CHOOSEFONTA; +pub type PCCHOOSEFONTW = *const CHOOSEFONTW; +pub type PCCHOOSEFONT = PCCHOOSEFONTA; +extern "C" { + pub fn ChooseFontA(arg1: LPCHOOSEFONTA) -> BOOL; +} +extern "C" { + pub fn ChooseFontW(arg1: LPCHOOSEFONTW) -> BOOL; +} +pub type LPPRINTHOOKPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, +>; +pub type LPSETUPHOOKPROC = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPDA { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hDevMode: HGLOBAL, + pub hDevNames: HGLOBAL, + pub hDC: HDC, + pub Flags: DWORD, + pub nFromPage: WORD, + pub nToPage: WORD, + pub nMinPage: WORD, + pub nMaxPage: WORD, + pub nCopies: WORD, + pub hInstance: HINSTANCE, + pub lCustData: LPARAM, + pub lpfnPrintHook: LPPRINTHOOKPROC, + pub lpfnSetupHook: LPSETUPHOOKPROC, + pub lpPrintTemplateName: LPCSTR, + pub lpSetupTemplateName: LPCSTR, + pub hPrintTemplate: HGLOBAL, + pub hSetupTemplate: HGLOBAL, +} +pub type PRINTDLGA = tagPDA; +pub type LPPRINTDLGA = *mut tagPDA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPDW { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hDevMode: HGLOBAL, + pub hDevNames: HGLOBAL, + pub hDC: HDC, + pub Flags: DWORD, + pub nFromPage: WORD, + pub nToPage: WORD, + pub nMinPage: WORD, + pub nMaxPage: WORD, + pub nCopies: WORD, + pub hInstance: HINSTANCE, + pub lCustData: LPARAM, + pub lpfnPrintHook: LPPRINTHOOKPROC, + pub lpfnSetupHook: LPSETUPHOOKPROC, + pub lpPrintTemplateName: LPCWSTR, + pub lpSetupTemplateName: LPCWSTR, + pub hPrintTemplate: HGLOBAL, + pub hSetupTemplate: HGLOBAL, +} +pub type PRINTDLGW = tagPDW; +pub type LPPRINTDLGW = *mut tagPDW; +pub type PRINTDLG = PRINTDLGA; +pub type LPPRINTDLG = LPPRINTDLGA; +extern "C" { + pub fn PrintDlgA(pPD: LPPRINTDLGA) -> BOOL; +} +extern "C" { + pub fn PrintDlgW(pPD: LPPRINTDLGW) -> BOOL; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPrintDialogCallback { + pub lpVtbl: *mut IPrintDialogCallbackVtbl, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPrintDialogCallbackVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPrintDialogCallback, + riid: *const IID, + ppvObj: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub InitDone: + ::std::option::Option HRESULT>, + pub SelectionChange: + ::std::option::Option HRESULT>, + pub HandleMessage: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPrintDialogCallback, + hDlg: HWND, + uMsg: UINT, + wParam: WPARAM, + lParam: LPARAM, + pResult: *mut LRESULT, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPrintDialogServices { + pub lpVtbl: *mut IPrintDialogServicesVtbl, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IPrintDialogServicesVtbl { + pub QueryInterface: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPrintDialogServices, + riid: *const IID, + ppvObj: *mut *mut ::std::os::raw::c_void, + ) -> HRESULT, + >, + pub AddRef: + ::std::option::Option ULONG>, + pub Release: + ::std::option::Option ULONG>, + pub GetCurrentDevMode: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPrintDialogServices, + pDevMode: LPDEVMODE, + pcbSize: *mut UINT, + ) -> HRESULT, + >, + pub GetCurrentPrinterName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPrintDialogServices, + pPrinterName: LPWSTR, + pcchSize: *mut UINT, + ) -> HRESULT, + >, + pub GetCurrentPortName: ::std::option::Option< + unsafe extern "C" fn( + This: *mut IPrintDialogServices, + pPortName: LPWSTR, + pcchSize: *mut UINT, + ) -> HRESULT, + >, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPRINTPAGERANGE { + pub nFromPage: DWORD, + pub nToPage: DWORD, +} +pub type PRINTPAGERANGE = tagPRINTPAGERANGE; +pub type LPPRINTPAGERANGE = *mut PRINTPAGERANGE; +pub type PCPRINTPAGERANGE = *const PRINTPAGERANGE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPDEXA { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hDevMode: HGLOBAL, + pub hDevNames: HGLOBAL, + pub hDC: HDC, + pub Flags: DWORD, + pub Flags2: DWORD, + pub ExclusionFlags: DWORD, + pub nPageRanges: DWORD, + pub nMaxPageRanges: DWORD, + pub lpPageRanges: LPPRINTPAGERANGE, + pub nMinPage: DWORD, + pub nMaxPage: DWORD, + pub nCopies: DWORD, + pub hInstance: HINSTANCE, + pub lpPrintTemplateName: LPCSTR, + pub lpCallback: LPUNKNOWN, + pub nPropertyPages: DWORD, + pub lphPropertyPages: *mut HPROPSHEETPAGE, + pub nStartPage: DWORD, + pub dwResultAction: DWORD, +} +pub type PRINTDLGEXA = tagPDEXA; +pub type LPPRINTDLGEXA = *mut tagPDEXA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPDEXW { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hDevMode: HGLOBAL, + pub hDevNames: HGLOBAL, + pub hDC: HDC, + pub Flags: DWORD, + pub Flags2: DWORD, + pub ExclusionFlags: DWORD, + pub nPageRanges: DWORD, + pub nMaxPageRanges: DWORD, + pub lpPageRanges: LPPRINTPAGERANGE, + pub nMinPage: DWORD, + pub nMaxPage: DWORD, + pub nCopies: DWORD, + pub hInstance: HINSTANCE, + pub lpPrintTemplateName: LPCWSTR, + pub lpCallback: LPUNKNOWN, + pub nPropertyPages: DWORD, + pub lphPropertyPages: *mut HPROPSHEETPAGE, + pub nStartPage: DWORD, + pub dwResultAction: DWORD, +} +pub type PRINTDLGEXW = tagPDEXW; +pub type LPPRINTDLGEXW = *mut tagPDEXW; +pub type PRINTDLGEX = PRINTDLGEXA; +pub type LPPRINTDLGEX = LPPRINTDLGEXA; +extern "C" { + pub fn PrintDlgExA(pPD: LPPRINTDLGEXA) -> HRESULT; +} +extern "C" { + pub fn PrintDlgExW(pPD: LPPRINTDLGEXW) -> HRESULT; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagDEVNAMES { + pub wDriverOffset: WORD, + pub wDeviceOffset: WORD, + pub wOutputOffset: WORD, + pub wDefault: WORD, +} +pub type DEVNAMES = tagDEVNAMES; +pub type LPDEVNAMES = *mut DEVNAMES; +pub type PCDEVNAMES = *const DEVNAMES; +extern "C" { + pub fn CommDlgExtendedError() -> DWORD; +} +pub type LPPAGEPAINTHOOK = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, +>; +pub type LPPAGESETUPHOOK = ::std::option::Option< + unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPSDA { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hDevMode: HGLOBAL, + pub hDevNames: HGLOBAL, + pub Flags: DWORD, + pub ptPaperSize: POINT, + pub rtMinMargin: RECT, + pub rtMargin: RECT, + pub hInstance: HINSTANCE, + pub lCustData: LPARAM, + pub lpfnPageSetupHook: LPPAGESETUPHOOK, + pub lpfnPagePaintHook: LPPAGEPAINTHOOK, + pub lpPageSetupTemplateName: LPCSTR, + pub hPageSetupTemplate: HGLOBAL, +} +pub type PAGESETUPDLGA = tagPSDA; +pub type LPPAGESETUPDLGA = *mut tagPSDA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPSDW { + pub lStructSize: DWORD, + pub hwndOwner: HWND, + pub hDevMode: HGLOBAL, + pub hDevNames: HGLOBAL, + pub Flags: DWORD, + pub ptPaperSize: POINT, + pub rtMinMargin: RECT, + pub rtMargin: RECT, + pub hInstance: HINSTANCE, + pub lCustData: LPARAM, + pub lpfnPageSetupHook: LPPAGESETUPHOOK, + pub lpfnPagePaintHook: LPPAGEPAINTHOOK, + pub lpPageSetupTemplateName: LPCWSTR, + pub hPageSetupTemplate: HGLOBAL, +} +pub type PAGESETUPDLGW = tagPSDW; +pub type LPPAGESETUPDLGW = *mut tagPSDW; +pub type PAGESETUPDLG = PAGESETUPDLGA; +pub type LPPAGESETUPDLG = LPPAGESETUPDLGA; +extern "C" { + pub fn PageSetupDlgA(arg1: LPPAGESETUPDLGA) -> BOOL; +} +extern "C" { + pub fn PageSetupDlgW(arg1: LPPAGESETUPDLGW) -> BOOL; +} +extern "C" { + pub fn uaw_CharUpperW(String: LPUWSTR) -> LPUWSTR; +} +extern "C" { + pub fn uaw_lstrcmpW(String1: PCUWSTR, String2: PCUWSTR) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn uaw_lstrcmpiW(String1: PCUWSTR, String2: PCUWSTR) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn uaw_lstrlenW(String: LPCUWSTR) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn uaw_wcschr(String: PCUWSTR, Character: WCHAR) -> PUWSTR; +} +extern "C" { + pub fn uaw_wcscpy(Destination: PUWSTR, Source: PCUWSTR) -> PUWSTR; +} +extern "C" { + pub fn uaw_wcsicmp(String1: PCUWSTR, String2: PCUWSTR) -> ::std::os::raw::c_int; +} +extern "C" { + pub fn uaw_wcslen(String: PCUWSTR) -> usize; +} +extern "C" { + pub fn uaw_wcsrchr(String: PCUWSTR, Character: WCHAR) -> PUWSTR; +} +pub type PUWSTR_C = *mut WCHAR; +extern "C" { + pub static NETWORK_MANAGER_FIRST_IP_ADDRESS_ARRIVAL_GUID: GUID; +} +extern "C" { + pub static NETWORK_MANAGER_LAST_IP_ADDRESS_REMOVAL_GUID: GUID; +} +extern "C" { + pub static DOMAIN_JOIN_GUID: GUID; +} +extern "C" { + pub static DOMAIN_LEAVE_GUID: GUID; +} +extern "C" { + pub static FIREWALL_PORT_OPEN_GUID: GUID; +} +extern "C" { + pub static FIREWALL_PORT_CLOSE_GUID: GUID; +} +extern "C" { + pub static MACHINE_POLICY_PRESENT_GUID: GUID; +} +extern "C" { + pub static USER_POLICY_PRESENT_GUID: GUID; +} +extern "C" { + pub static RPC_INTERFACE_EVENT_GUID: GUID; +} +extern "C" { + pub static NAMED_PIPE_EVENT_GUID: GUID; +} +extern "C" { + pub static CUSTOM_SYSTEM_STATE_CHANGE_EVENT_GUID: GUID; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SERVICE_TRIGGER_CUSTOM_STATE_ID { + pub Data: [DWORD; 2usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM { + pub u: _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM__bindgen_ty_1 { + pub CustomStateId: SERVICE_TRIGGER_CUSTOM_STATE_ID, + pub s: _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM__bindgen_ty_1__bindgen_ty_1 { + pub DataOffset: DWORD, + pub Data: [BYTE; 1usize], +} +pub type SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM = + _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM; +pub type LPSERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM = + *mut _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_DESCRIPTIONA { + pub lpDescription: LPSTR, +} +pub type SERVICE_DESCRIPTIONA = _SERVICE_DESCRIPTIONA; +pub type LPSERVICE_DESCRIPTIONA = *mut _SERVICE_DESCRIPTIONA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_DESCRIPTIONW { + pub lpDescription: LPWSTR, +} +pub type SERVICE_DESCRIPTIONW = _SERVICE_DESCRIPTIONW; +pub type LPSERVICE_DESCRIPTIONW = *mut _SERVICE_DESCRIPTIONW; +pub type SERVICE_DESCRIPTION = SERVICE_DESCRIPTIONA; +pub type LPSERVICE_DESCRIPTION = LPSERVICE_DESCRIPTIONA; +pub const _SC_ACTION_TYPE_SC_ACTION_NONE: _SC_ACTION_TYPE = 0; +pub const _SC_ACTION_TYPE_SC_ACTION_RESTART: _SC_ACTION_TYPE = 1; +pub const _SC_ACTION_TYPE_SC_ACTION_REBOOT: _SC_ACTION_TYPE = 2; +pub const _SC_ACTION_TYPE_SC_ACTION_RUN_COMMAND: _SC_ACTION_TYPE = 3; +pub const _SC_ACTION_TYPE_SC_ACTION_OWN_RESTART: _SC_ACTION_TYPE = 4; +pub type _SC_ACTION_TYPE = ::std::os::raw::c_int; +pub use self::_SC_ACTION_TYPE as SC_ACTION_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SC_ACTION { + pub Type: SC_ACTION_TYPE, + pub Delay: DWORD, +} +pub type SC_ACTION = _SC_ACTION; +pub type LPSC_ACTION = *mut _SC_ACTION; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_FAILURE_ACTIONSA { + pub dwResetPeriod: DWORD, + pub lpRebootMsg: LPSTR, + pub lpCommand: LPSTR, + pub cActions: DWORD, + pub lpsaActions: *mut SC_ACTION, +} +pub type SERVICE_FAILURE_ACTIONSA = _SERVICE_FAILURE_ACTIONSA; +pub type LPSERVICE_FAILURE_ACTIONSA = *mut _SERVICE_FAILURE_ACTIONSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_FAILURE_ACTIONSW { + pub dwResetPeriod: DWORD, + pub lpRebootMsg: LPWSTR, + pub lpCommand: LPWSTR, + pub cActions: DWORD, + pub lpsaActions: *mut SC_ACTION, +} +pub type SERVICE_FAILURE_ACTIONSW = _SERVICE_FAILURE_ACTIONSW; +pub type LPSERVICE_FAILURE_ACTIONSW = *mut _SERVICE_FAILURE_ACTIONSW; +pub type SERVICE_FAILURE_ACTIONS = SERVICE_FAILURE_ACTIONSA; +pub type LPSERVICE_FAILURE_ACTIONS = LPSERVICE_FAILURE_ACTIONSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_DELAYED_AUTO_START_INFO { + pub fDelayedAutostart: BOOL, +} +pub type SERVICE_DELAYED_AUTO_START_INFO = _SERVICE_DELAYED_AUTO_START_INFO; +pub type LPSERVICE_DELAYED_AUTO_START_INFO = *mut _SERVICE_DELAYED_AUTO_START_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_FAILURE_ACTIONS_FLAG { + pub fFailureActionsOnNonCrashFailures: BOOL, +} +pub type SERVICE_FAILURE_ACTIONS_FLAG = _SERVICE_FAILURE_ACTIONS_FLAG; +pub type LPSERVICE_FAILURE_ACTIONS_FLAG = *mut _SERVICE_FAILURE_ACTIONS_FLAG; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_SID_INFO { + pub dwServiceSidType: DWORD, +} +pub type SERVICE_SID_INFO = _SERVICE_SID_INFO; +pub type LPSERVICE_SID_INFO = *mut _SERVICE_SID_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_REQUIRED_PRIVILEGES_INFOA { + pub pmszRequiredPrivileges: LPSTR, +} +pub type SERVICE_REQUIRED_PRIVILEGES_INFOA = _SERVICE_REQUIRED_PRIVILEGES_INFOA; +pub type LPSERVICE_REQUIRED_PRIVILEGES_INFOA = *mut _SERVICE_REQUIRED_PRIVILEGES_INFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_REQUIRED_PRIVILEGES_INFOW { + pub pmszRequiredPrivileges: LPWSTR, +} +pub type SERVICE_REQUIRED_PRIVILEGES_INFOW = _SERVICE_REQUIRED_PRIVILEGES_INFOW; +pub type LPSERVICE_REQUIRED_PRIVILEGES_INFOW = *mut _SERVICE_REQUIRED_PRIVILEGES_INFOW; +pub type SERVICE_REQUIRED_PRIVILEGES_INFO = SERVICE_REQUIRED_PRIVILEGES_INFOA; +pub type LPSERVICE_REQUIRED_PRIVILEGES_INFO = LPSERVICE_REQUIRED_PRIVILEGES_INFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_PRESHUTDOWN_INFO { + pub dwPreshutdownTimeout: DWORD, +} +pub type SERVICE_PRESHUTDOWN_INFO = _SERVICE_PRESHUTDOWN_INFO; +pub type LPSERVICE_PRESHUTDOWN_INFO = *mut _SERVICE_PRESHUTDOWN_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_TRIGGER_SPECIFIC_DATA_ITEM { + pub dwDataType: DWORD, + pub cbData: DWORD, + pub pData: PBYTE, +} +pub type SERVICE_TRIGGER_SPECIFIC_DATA_ITEM = _SERVICE_TRIGGER_SPECIFIC_DATA_ITEM; +pub type PSERVICE_TRIGGER_SPECIFIC_DATA_ITEM = *mut _SERVICE_TRIGGER_SPECIFIC_DATA_ITEM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_TRIGGER { + pub dwTriggerType: DWORD, + pub dwAction: DWORD, + pub pTriggerSubtype: *mut GUID, + pub cDataItems: DWORD, + pub pDataItems: PSERVICE_TRIGGER_SPECIFIC_DATA_ITEM, +} +pub type SERVICE_TRIGGER = _SERVICE_TRIGGER; +pub type PSERVICE_TRIGGER = *mut _SERVICE_TRIGGER; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_TRIGGER_INFO { + pub cTriggers: DWORD, + pub pTriggers: PSERVICE_TRIGGER, + pub pReserved: PBYTE, +} +pub type SERVICE_TRIGGER_INFO = _SERVICE_TRIGGER_INFO; +pub type PSERVICE_TRIGGER_INFO = *mut _SERVICE_TRIGGER_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_PREFERRED_NODE_INFO { + pub usPreferredNode: USHORT, + pub fDelete: BOOLEAN, +} +pub type SERVICE_PREFERRED_NODE_INFO = _SERVICE_PREFERRED_NODE_INFO; +pub type LPSERVICE_PREFERRED_NODE_INFO = *mut _SERVICE_PREFERRED_NODE_INFO; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _SERVICE_TIMECHANGE_INFO { + pub liNewTime: LARGE_INTEGER, + pub liOldTime: LARGE_INTEGER, +} +pub type SERVICE_TIMECHANGE_INFO = _SERVICE_TIMECHANGE_INFO; +pub type PSERVICE_TIMECHANGE_INFO = *mut _SERVICE_TIMECHANGE_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_LAUNCH_PROTECTED_INFO { + pub dwLaunchProtected: DWORD, +} +pub type SERVICE_LAUNCH_PROTECTED_INFO = _SERVICE_LAUNCH_PROTECTED_INFO; +pub type PSERVICE_LAUNCH_PROTECTED_INFO = *mut _SERVICE_LAUNCH_PROTECTED_INFO; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SC_HANDLE__ { + pub unused: ::std::os::raw::c_int, +} +pub type SC_HANDLE = *mut SC_HANDLE__; +pub type LPSC_HANDLE = *mut SC_HANDLE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SERVICE_STATUS_HANDLE__ { + pub unused: ::std::os::raw::c_int, +} +pub type SERVICE_STATUS_HANDLE = *mut SERVICE_STATUS_HANDLE__; +pub const _SC_STATUS_TYPE_SC_STATUS_PROCESS_INFO: _SC_STATUS_TYPE = 0; +pub type _SC_STATUS_TYPE = ::std::os::raw::c_int; +pub use self::_SC_STATUS_TYPE as SC_STATUS_TYPE; +pub const _SC_ENUM_TYPE_SC_ENUM_PROCESS_INFO: _SC_ENUM_TYPE = 0; +pub type _SC_ENUM_TYPE = ::std::os::raw::c_int; +pub use self::_SC_ENUM_TYPE as SC_ENUM_TYPE; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_STATUS { + pub dwServiceType: DWORD, + pub dwCurrentState: DWORD, + pub dwControlsAccepted: DWORD, + pub dwWin32ExitCode: DWORD, + pub dwServiceSpecificExitCode: DWORD, + pub dwCheckPoint: DWORD, + pub dwWaitHint: DWORD, +} +pub type SERVICE_STATUS = _SERVICE_STATUS; +pub type LPSERVICE_STATUS = *mut _SERVICE_STATUS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_STATUS_PROCESS { + pub dwServiceType: DWORD, + pub dwCurrentState: DWORD, + pub dwControlsAccepted: DWORD, + pub dwWin32ExitCode: DWORD, + pub dwServiceSpecificExitCode: DWORD, + pub dwCheckPoint: DWORD, + pub dwWaitHint: DWORD, + pub dwProcessId: DWORD, + pub dwServiceFlags: DWORD, +} +pub type SERVICE_STATUS_PROCESS = _SERVICE_STATUS_PROCESS; +pub type LPSERVICE_STATUS_PROCESS = *mut _SERVICE_STATUS_PROCESS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENUM_SERVICE_STATUSA { + pub lpServiceName: LPSTR, + pub lpDisplayName: LPSTR, + pub ServiceStatus: SERVICE_STATUS, +} +pub type ENUM_SERVICE_STATUSA = _ENUM_SERVICE_STATUSA; +pub type LPENUM_SERVICE_STATUSA = *mut _ENUM_SERVICE_STATUSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENUM_SERVICE_STATUSW { + pub lpServiceName: LPWSTR, + pub lpDisplayName: LPWSTR, + pub ServiceStatus: SERVICE_STATUS, +} +pub type ENUM_SERVICE_STATUSW = _ENUM_SERVICE_STATUSW; +pub type LPENUM_SERVICE_STATUSW = *mut _ENUM_SERVICE_STATUSW; +pub type ENUM_SERVICE_STATUS = ENUM_SERVICE_STATUSA; +pub type LPENUM_SERVICE_STATUS = LPENUM_SERVICE_STATUSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENUM_SERVICE_STATUS_PROCESSA { + pub lpServiceName: LPSTR, + pub lpDisplayName: LPSTR, + pub ServiceStatusProcess: SERVICE_STATUS_PROCESS, +} +pub type ENUM_SERVICE_STATUS_PROCESSA = _ENUM_SERVICE_STATUS_PROCESSA; +pub type LPENUM_SERVICE_STATUS_PROCESSA = *mut _ENUM_SERVICE_STATUS_PROCESSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ENUM_SERVICE_STATUS_PROCESSW { + pub lpServiceName: LPWSTR, + pub lpDisplayName: LPWSTR, + pub ServiceStatusProcess: SERVICE_STATUS_PROCESS, +} +pub type ENUM_SERVICE_STATUS_PROCESSW = _ENUM_SERVICE_STATUS_PROCESSW; +pub type LPENUM_SERVICE_STATUS_PROCESSW = *mut _ENUM_SERVICE_STATUS_PROCESSW; +pub type ENUM_SERVICE_STATUS_PROCESS = ENUM_SERVICE_STATUS_PROCESSA; +pub type LPENUM_SERVICE_STATUS_PROCESS = LPENUM_SERVICE_STATUS_PROCESSA; +pub type SC_LOCK = LPVOID; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _QUERY_SERVICE_LOCK_STATUSA { + pub fIsLocked: DWORD, + pub lpLockOwner: LPSTR, + pub dwLockDuration: DWORD, +} +pub type QUERY_SERVICE_LOCK_STATUSA = _QUERY_SERVICE_LOCK_STATUSA; +pub type LPQUERY_SERVICE_LOCK_STATUSA = *mut _QUERY_SERVICE_LOCK_STATUSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _QUERY_SERVICE_LOCK_STATUSW { + pub fIsLocked: DWORD, + pub lpLockOwner: LPWSTR, + pub dwLockDuration: DWORD, +} +pub type QUERY_SERVICE_LOCK_STATUSW = _QUERY_SERVICE_LOCK_STATUSW; +pub type LPQUERY_SERVICE_LOCK_STATUSW = *mut _QUERY_SERVICE_LOCK_STATUSW; +pub type QUERY_SERVICE_LOCK_STATUS = QUERY_SERVICE_LOCK_STATUSA; +pub type LPQUERY_SERVICE_LOCK_STATUS = LPQUERY_SERVICE_LOCK_STATUSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _QUERY_SERVICE_CONFIGA { + pub dwServiceType: DWORD, + pub dwStartType: DWORD, + pub dwErrorControl: DWORD, + pub lpBinaryPathName: LPSTR, + pub lpLoadOrderGroup: LPSTR, + pub dwTagId: DWORD, + pub lpDependencies: LPSTR, + pub lpServiceStartName: LPSTR, + pub lpDisplayName: LPSTR, +} +pub type QUERY_SERVICE_CONFIGA = _QUERY_SERVICE_CONFIGA; +pub type LPQUERY_SERVICE_CONFIGA = *mut _QUERY_SERVICE_CONFIGA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _QUERY_SERVICE_CONFIGW { + pub dwServiceType: DWORD, + pub dwStartType: DWORD, + pub dwErrorControl: DWORD, + pub lpBinaryPathName: LPWSTR, + pub lpLoadOrderGroup: LPWSTR, + pub dwTagId: DWORD, + pub lpDependencies: LPWSTR, + pub lpServiceStartName: LPWSTR, + pub lpDisplayName: LPWSTR, +} +pub type QUERY_SERVICE_CONFIGW = _QUERY_SERVICE_CONFIGW; +pub type LPQUERY_SERVICE_CONFIGW = *mut _QUERY_SERVICE_CONFIGW; +pub type QUERY_SERVICE_CONFIG = QUERY_SERVICE_CONFIGA; +pub type LPQUERY_SERVICE_CONFIG = LPQUERY_SERVICE_CONFIGA; +pub type LPSERVICE_MAIN_FUNCTIONW = ::std::option::Option< + unsafe extern "C" fn(dwNumServicesArgs: DWORD, lpServiceArgVectors: *mut LPWSTR), +>; +pub type LPSERVICE_MAIN_FUNCTIONA = ::std::option::Option< + unsafe extern "C" fn(dwNumServicesArgs: DWORD, lpServiceArgVectors: *mut LPSTR), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_TABLE_ENTRYA { + pub lpServiceName: LPSTR, + pub lpServiceProc: LPSERVICE_MAIN_FUNCTIONA, +} +pub type SERVICE_TABLE_ENTRYA = _SERVICE_TABLE_ENTRYA; +pub type LPSERVICE_TABLE_ENTRYA = *mut _SERVICE_TABLE_ENTRYA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_TABLE_ENTRYW { + pub lpServiceName: LPWSTR, + pub lpServiceProc: LPSERVICE_MAIN_FUNCTIONW, +} +pub type SERVICE_TABLE_ENTRYW = _SERVICE_TABLE_ENTRYW; +pub type LPSERVICE_TABLE_ENTRYW = *mut _SERVICE_TABLE_ENTRYW; +pub type SERVICE_TABLE_ENTRY = SERVICE_TABLE_ENTRYA; +pub type LPSERVICE_TABLE_ENTRY = LPSERVICE_TABLE_ENTRYA; +pub type LPHANDLER_FUNCTION = ::std::option::Option; +pub type LPHANDLER_FUNCTION_EX = ::std::option::Option< + unsafe extern "C" fn( + dwControl: DWORD, + dwEventType: DWORD, + lpEventData: LPVOID, + lpContext: LPVOID, + ) -> DWORD, +>; +pub type PFN_SC_NOTIFY_CALLBACK = ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_NOTIFY_1 { + pub dwVersion: DWORD, + pub pfnNotifyCallback: PFN_SC_NOTIFY_CALLBACK, + pub pContext: PVOID, + pub dwNotificationStatus: DWORD, + pub ServiceStatus: SERVICE_STATUS_PROCESS, +} +pub type SERVICE_NOTIFY_1 = _SERVICE_NOTIFY_1; +pub type PSERVICE_NOTIFY_1 = *mut _SERVICE_NOTIFY_1; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_NOTIFY_2A { + pub dwVersion: DWORD, + pub pfnNotifyCallback: PFN_SC_NOTIFY_CALLBACK, + pub pContext: PVOID, + pub dwNotificationStatus: DWORD, + pub ServiceStatus: SERVICE_STATUS_PROCESS, + pub dwNotificationTriggered: DWORD, + pub pszServiceNames: LPSTR, +} +pub type SERVICE_NOTIFY_2A = _SERVICE_NOTIFY_2A; +pub type PSERVICE_NOTIFY_2A = *mut _SERVICE_NOTIFY_2A; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_NOTIFY_2W { + pub dwVersion: DWORD, + pub pfnNotifyCallback: PFN_SC_NOTIFY_CALLBACK, + pub pContext: PVOID, + pub dwNotificationStatus: DWORD, + pub ServiceStatus: SERVICE_STATUS_PROCESS, + pub dwNotificationTriggered: DWORD, + pub pszServiceNames: LPWSTR, +} +pub type SERVICE_NOTIFY_2W = _SERVICE_NOTIFY_2W; +pub type PSERVICE_NOTIFY_2W = *mut _SERVICE_NOTIFY_2W; +pub type SERVICE_NOTIFY_2 = SERVICE_NOTIFY_2A; +pub type PSERVICE_NOTIFY_2 = PSERVICE_NOTIFY_2A; +pub type SERVICE_NOTIFYA = SERVICE_NOTIFY_2A; +pub type PSERVICE_NOTIFYA = *mut SERVICE_NOTIFY_2A; +pub type SERVICE_NOTIFYW = SERVICE_NOTIFY_2W; +pub type PSERVICE_NOTIFYW = *mut SERVICE_NOTIFY_2W; +pub type SERVICE_NOTIFY = SERVICE_NOTIFYA; +pub type PSERVICE_NOTIFY = PSERVICE_NOTIFYA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_CONTROL_STATUS_REASON_PARAMSA { + pub dwReason: DWORD, + pub pszComment: LPSTR, + pub ServiceStatus: SERVICE_STATUS_PROCESS, +} +pub type SERVICE_CONTROL_STATUS_REASON_PARAMSA = _SERVICE_CONTROL_STATUS_REASON_PARAMSA; +pub type PSERVICE_CONTROL_STATUS_REASON_PARAMSA = *mut _SERVICE_CONTROL_STATUS_REASON_PARAMSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_CONTROL_STATUS_REASON_PARAMSW { + pub dwReason: DWORD, + pub pszComment: LPWSTR, + pub ServiceStatus: SERVICE_STATUS_PROCESS, +} +pub type SERVICE_CONTROL_STATUS_REASON_PARAMSW = _SERVICE_CONTROL_STATUS_REASON_PARAMSW; +pub type PSERVICE_CONTROL_STATUS_REASON_PARAMSW = *mut _SERVICE_CONTROL_STATUS_REASON_PARAMSW; +pub type SERVICE_CONTROL_STATUS_REASON_PARAMS = SERVICE_CONTROL_STATUS_REASON_PARAMSA; +pub type PSERVICE_CONTROL_STATUS_REASON_PARAMS = PSERVICE_CONTROL_STATUS_REASON_PARAMSA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SERVICE_START_REASON { + pub dwReason: DWORD, +} +pub type SERVICE_START_REASON = _SERVICE_START_REASON; +pub type PSERVICE_START_REASON = *mut _SERVICE_START_REASON; +extern "C" { + pub fn ChangeServiceConfigA( + hService: SC_HANDLE, + dwServiceType: DWORD, + dwStartType: DWORD, + dwErrorControl: DWORD, + lpBinaryPathName: LPCSTR, + lpLoadOrderGroup: LPCSTR, + lpdwTagId: LPDWORD, + lpDependencies: LPCSTR, + lpServiceStartName: LPCSTR, + lpPassword: LPCSTR, + lpDisplayName: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn ChangeServiceConfigW( + hService: SC_HANDLE, + dwServiceType: DWORD, + dwStartType: DWORD, + dwErrorControl: DWORD, + lpBinaryPathName: LPCWSTR, + lpLoadOrderGroup: LPCWSTR, + lpdwTagId: LPDWORD, + lpDependencies: LPCWSTR, + lpServiceStartName: LPCWSTR, + lpPassword: LPCWSTR, + lpDisplayName: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn ChangeServiceConfig2A(hService: SC_HANDLE, dwInfoLevel: DWORD, lpInfo: LPVOID) -> BOOL; +} +extern "C" { + pub fn ChangeServiceConfig2W(hService: SC_HANDLE, dwInfoLevel: DWORD, lpInfo: LPVOID) -> BOOL; +} +extern "C" { + pub fn CloseServiceHandle(hSCObject: SC_HANDLE) -> BOOL; +} +extern "C" { + pub fn ControlService( + hService: SC_HANDLE, + dwControl: DWORD, + lpServiceStatus: LPSERVICE_STATUS, + ) -> BOOL; +} +extern "C" { + pub fn CreateServiceA( + hSCManager: SC_HANDLE, + lpServiceName: LPCSTR, + lpDisplayName: LPCSTR, + dwDesiredAccess: DWORD, + dwServiceType: DWORD, + dwStartType: DWORD, + dwErrorControl: DWORD, + lpBinaryPathName: LPCSTR, + lpLoadOrderGroup: LPCSTR, + lpdwTagId: LPDWORD, + lpDependencies: LPCSTR, + lpServiceStartName: LPCSTR, + lpPassword: LPCSTR, + ) -> SC_HANDLE; +} +extern "C" { + pub fn CreateServiceW( + hSCManager: SC_HANDLE, + lpServiceName: LPCWSTR, + lpDisplayName: LPCWSTR, + dwDesiredAccess: DWORD, + dwServiceType: DWORD, + dwStartType: DWORD, + dwErrorControl: DWORD, + lpBinaryPathName: LPCWSTR, + lpLoadOrderGroup: LPCWSTR, + lpdwTagId: LPDWORD, + lpDependencies: LPCWSTR, + lpServiceStartName: LPCWSTR, + lpPassword: LPCWSTR, + ) -> SC_HANDLE; +} +extern "C" { + pub fn DeleteService(hService: SC_HANDLE) -> BOOL; +} +extern "C" { + pub fn EnumDependentServicesA( + hService: SC_HANDLE, + dwServiceState: DWORD, + lpServices: LPENUM_SERVICE_STATUSA, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + lpServicesReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumDependentServicesW( + hService: SC_HANDLE, + dwServiceState: DWORD, + lpServices: LPENUM_SERVICE_STATUSW, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + lpServicesReturned: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumServicesStatusA( + hSCManager: SC_HANDLE, + dwServiceType: DWORD, + dwServiceState: DWORD, + lpServices: LPENUM_SERVICE_STATUSA, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + lpServicesReturned: LPDWORD, + lpResumeHandle: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumServicesStatusW( + hSCManager: SC_HANDLE, + dwServiceType: DWORD, + dwServiceState: DWORD, + lpServices: LPENUM_SERVICE_STATUSW, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + lpServicesReturned: LPDWORD, + lpResumeHandle: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn EnumServicesStatusExA( + hSCManager: SC_HANDLE, + InfoLevel: SC_ENUM_TYPE, + dwServiceType: DWORD, + dwServiceState: DWORD, + lpServices: LPBYTE, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + lpServicesReturned: LPDWORD, + lpResumeHandle: LPDWORD, + pszGroupName: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn EnumServicesStatusExW( + hSCManager: SC_HANDLE, + InfoLevel: SC_ENUM_TYPE, + dwServiceType: DWORD, + dwServiceState: DWORD, + lpServices: LPBYTE, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + lpServicesReturned: LPDWORD, + lpResumeHandle: LPDWORD, + pszGroupName: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn GetServiceKeyNameA( + hSCManager: SC_HANDLE, + lpDisplayName: LPCSTR, + lpServiceName: LPSTR, + lpcchBuffer: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetServiceKeyNameW( + hSCManager: SC_HANDLE, + lpDisplayName: LPCWSTR, + lpServiceName: LPWSTR, + lpcchBuffer: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetServiceDisplayNameA( + hSCManager: SC_HANDLE, + lpServiceName: LPCSTR, + lpDisplayName: LPSTR, + lpcchBuffer: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn GetServiceDisplayNameW( + hSCManager: SC_HANDLE, + lpServiceName: LPCWSTR, + lpDisplayName: LPWSTR, + lpcchBuffer: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn LockServiceDatabase(hSCManager: SC_HANDLE) -> SC_LOCK; +} +extern "C" { + pub fn NotifyBootConfigStatus(BootAcceptable: BOOL) -> BOOL; +} +extern "C" { + pub fn OpenSCManagerA( + lpMachineName: LPCSTR, + lpDatabaseName: LPCSTR, + dwDesiredAccess: DWORD, + ) -> SC_HANDLE; +} +extern "C" { + pub fn OpenSCManagerW( + lpMachineName: LPCWSTR, + lpDatabaseName: LPCWSTR, + dwDesiredAccess: DWORD, + ) -> SC_HANDLE; +} +extern "C" { + pub fn OpenServiceA( + hSCManager: SC_HANDLE, + lpServiceName: LPCSTR, + dwDesiredAccess: DWORD, + ) -> SC_HANDLE; +} +extern "C" { + pub fn OpenServiceW( + hSCManager: SC_HANDLE, + lpServiceName: LPCWSTR, + dwDesiredAccess: DWORD, + ) -> SC_HANDLE; +} +extern "C" { + pub fn QueryServiceConfigA( + hService: SC_HANDLE, + lpServiceConfig: LPQUERY_SERVICE_CONFIGA, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn QueryServiceConfigW( + hService: SC_HANDLE, + lpServiceConfig: LPQUERY_SERVICE_CONFIGW, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn QueryServiceConfig2A( + hService: SC_HANDLE, + dwInfoLevel: DWORD, + lpBuffer: LPBYTE, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn QueryServiceConfig2W( + hService: SC_HANDLE, + dwInfoLevel: DWORD, + lpBuffer: LPBYTE, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn QueryServiceLockStatusA( + hSCManager: SC_HANDLE, + lpLockStatus: LPQUERY_SERVICE_LOCK_STATUSA, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn QueryServiceLockStatusW( + hSCManager: SC_HANDLE, + lpLockStatus: LPQUERY_SERVICE_LOCK_STATUSW, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn QueryServiceObjectSecurity( + hService: SC_HANDLE, + dwSecurityInformation: SECURITY_INFORMATION, + lpSecurityDescriptor: PSECURITY_DESCRIPTOR, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn QueryServiceStatus(hService: SC_HANDLE, lpServiceStatus: LPSERVICE_STATUS) -> BOOL; +} +extern "C" { + pub fn QueryServiceStatusEx( + hService: SC_HANDLE, + InfoLevel: SC_STATUS_TYPE, + lpBuffer: LPBYTE, + cbBufSize: DWORD, + pcbBytesNeeded: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn RegisterServiceCtrlHandlerA( + lpServiceName: LPCSTR, + lpHandlerProc: LPHANDLER_FUNCTION, + ) -> SERVICE_STATUS_HANDLE; +} +extern "C" { + pub fn RegisterServiceCtrlHandlerW( + lpServiceName: LPCWSTR, + lpHandlerProc: LPHANDLER_FUNCTION, + ) -> SERVICE_STATUS_HANDLE; +} +extern "C" { + pub fn RegisterServiceCtrlHandlerExA( + lpServiceName: LPCSTR, + lpHandlerProc: LPHANDLER_FUNCTION_EX, + lpContext: LPVOID, + ) -> SERVICE_STATUS_HANDLE; +} +extern "C" { + pub fn RegisterServiceCtrlHandlerExW( + lpServiceName: LPCWSTR, + lpHandlerProc: LPHANDLER_FUNCTION_EX, + lpContext: LPVOID, + ) -> SERVICE_STATUS_HANDLE; +} +extern "C" { + pub fn SetServiceObjectSecurity( + hService: SC_HANDLE, + dwSecurityInformation: SECURITY_INFORMATION, + lpSecurityDescriptor: PSECURITY_DESCRIPTOR, + ) -> BOOL; +} +extern "C" { + pub fn SetServiceStatus( + hServiceStatus: SERVICE_STATUS_HANDLE, + lpServiceStatus: LPSERVICE_STATUS, + ) -> BOOL; +} +extern "C" { + pub fn StartServiceCtrlDispatcherA(lpServiceStartTable: *const SERVICE_TABLE_ENTRYA) -> BOOL; +} +extern "C" { + pub fn StartServiceCtrlDispatcherW(lpServiceStartTable: *const SERVICE_TABLE_ENTRYW) -> BOOL; +} +extern "C" { + pub fn StartServiceA( + hService: SC_HANDLE, + dwNumServiceArgs: DWORD, + lpServiceArgVectors: *mut LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn StartServiceW( + hService: SC_HANDLE, + dwNumServiceArgs: DWORD, + lpServiceArgVectors: *mut LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn UnlockServiceDatabase(ScLock: SC_LOCK) -> BOOL; +} +extern "C" { + pub fn NotifyServiceStatusChangeA( + hService: SC_HANDLE, + dwNotifyMask: DWORD, + pNotifyBuffer: PSERVICE_NOTIFYA, + ) -> DWORD; +} +extern "C" { + pub fn NotifyServiceStatusChangeW( + hService: SC_HANDLE, + dwNotifyMask: DWORD, + pNotifyBuffer: PSERVICE_NOTIFYW, + ) -> DWORD; +} +extern "C" { + pub fn ControlServiceExA( + hService: SC_HANDLE, + dwControl: DWORD, + dwInfoLevel: DWORD, + pControlParams: PVOID, + ) -> BOOL; +} +extern "C" { + pub fn ControlServiceExW( + hService: SC_HANDLE, + dwControl: DWORD, + dwInfoLevel: DWORD, + pControlParams: PVOID, + ) -> BOOL; +} +extern "C" { + pub fn QueryServiceDynamicInformation( + hServiceStatus: SERVICE_STATUS_HANDLE, + dwInfoLevel: DWORD, + ppDynamicInfo: *mut PVOID, + ) -> BOOL; +} +pub const _SC_EVENT_TYPE_SC_EVENT_DATABASE_CHANGE: _SC_EVENT_TYPE = 0; +pub const _SC_EVENT_TYPE_SC_EVENT_PROPERTY_CHANGE: _SC_EVENT_TYPE = 1; +pub const _SC_EVENT_TYPE_SC_EVENT_STATUS_CHANGE: _SC_EVENT_TYPE = 2; +pub type _SC_EVENT_TYPE = ::std::os::raw::c_int; +pub use self::_SC_EVENT_TYPE as SC_EVENT_TYPE; +pub type PSC_EVENT_TYPE = *mut _SC_EVENT_TYPE; +pub type PSC_NOTIFICATION_CALLBACK = + ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SC_NOTIFICATION_REGISTRATION { + _unused: [u8; 0], +} +pub type PSC_NOTIFICATION_REGISTRATION = *mut _SC_NOTIFICATION_REGISTRATION; +extern "C" { + pub fn SubscribeServiceChangeNotifications( + hService: SC_HANDLE, + eEventType: SC_EVENT_TYPE, + pCallback: PSC_NOTIFICATION_CALLBACK, + pCallbackContext: PVOID, + pSubscription: *mut PSC_NOTIFICATION_REGISTRATION, + ) -> DWORD; +} +extern "C" { + pub fn UnsubscribeServiceChangeNotifications(pSubscription: PSC_NOTIFICATION_REGISTRATION); +} +extern "C" { + pub fn WaitServiceState( + hService: SC_HANDLE, + dwNotify: DWORD, + dwTimeout: DWORD, + hCancelEvent: HANDLE, + ) -> DWORD; +} +pub const SERVICE_REGISTRY_STATE_TYPE_ServiceRegistryStateParameters: SERVICE_REGISTRY_STATE_TYPE = + 0; +pub const SERVICE_REGISTRY_STATE_TYPE_ServiceRegistryStatePersistent: SERVICE_REGISTRY_STATE_TYPE = + 1; +pub const SERVICE_REGISTRY_STATE_TYPE_MaxServiceRegistryStateType: SERVICE_REGISTRY_STATE_TYPE = 2; +pub type SERVICE_REGISTRY_STATE_TYPE = ::std::os::raw::c_int; +extern "C" { + pub fn GetServiceRegistryStateKey( + ServiceStatusHandle: SERVICE_STATUS_HANDLE, + StateType: SERVICE_REGISTRY_STATE_TYPE, + AccessMask: DWORD, + ServiceStateKey: *mut HKEY, + ) -> DWORD; +} +pub const SERVICE_DIRECTORY_TYPE_ServiceDirectoryPersistentState: SERVICE_DIRECTORY_TYPE = 0; +pub const SERVICE_DIRECTORY_TYPE_ServiceDirectoryTypeMax: SERVICE_DIRECTORY_TYPE = 1; +pub type SERVICE_DIRECTORY_TYPE = ::std::os::raw::c_int; +extern "C" { + pub fn GetServiceDirectory( + hServiceStatus: SERVICE_STATUS_HANDLE, + eDirectoryType: SERVICE_DIRECTORY_TYPE, + lpPathBuffer: PWCHAR, + cchPathBufferLength: DWORD, + lpcchRequiredBufferLength: *mut DWORD, + ) -> DWORD; +} +pub const SERVICE_SHARED_REGISTRY_STATE_TYPE_ServiceSharedRegistryPersistentState: + SERVICE_SHARED_REGISTRY_STATE_TYPE = 0; +pub type SERVICE_SHARED_REGISTRY_STATE_TYPE = ::std::os::raw::c_int; +extern "C" { + pub fn GetSharedServiceRegistryStateKey( + ServiceHandle: SC_HANDLE, + StateType: SERVICE_SHARED_REGISTRY_STATE_TYPE, + AccessMask: DWORD, + ServiceStateKey: *mut HKEY, + ) -> DWORD; +} +pub const SERVICE_SHARED_DIRECTORY_TYPE_ServiceSharedDirectoryPersistentState: + SERVICE_SHARED_DIRECTORY_TYPE = 0; +pub type SERVICE_SHARED_DIRECTORY_TYPE = ::std::os::raw::c_int; +extern "C" { + pub fn GetSharedServiceDirectory( + ServiceHandle: SC_HANDLE, + DirectoryType: SERVICE_SHARED_DIRECTORY_TYPE, + PathBuffer: PWCHAR, + PathBufferLength: DWORD, + RequiredBufferLength: *mut DWORD, + ) -> DWORD; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MODEMDEVCAPS { + pub dwActualSize: DWORD, + pub dwRequiredSize: DWORD, + pub dwDevSpecificOffset: DWORD, + pub dwDevSpecificSize: DWORD, + pub dwModemProviderVersion: DWORD, + pub dwModemManufacturerOffset: DWORD, + pub dwModemManufacturerSize: DWORD, + pub dwModemModelOffset: DWORD, + pub dwModemModelSize: DWORD, + pub dwModemVersionOffset: DWORD, + pub dwModemVersionSize: DWORD, + pub dwDialOptions: DWORD, + pub dwCallSetupFailTimer: DWORD, + pub dwInactivityTimeout: DWORD, + pub dwSpeakerVolume: DWORD, + pub dwSpeakerMode: DWORD, + pub dwModemOptions: DWORD, + pub dwMaxDTERate: DWORD, + pub dwMaxDCERate: DWORD, + pub abVariablePortion: [BYTE; 1usize], +} +pub type MODEMDEVCAPS = _MODEMDEVCAPS; +pub type PMODEMDEVCAPS = *mut _MODEMDEVCAPS; +pub type LPMODEMDEVCAPS = *mut _MODEMDEVCAPS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _MODEMSETTINGS { + pub dwActualSize: DWORD, + pub dwRequiredSize: DWORD, + pub dwDevSpecificOffset: DWORD, + pub dwDevSpecificSize: DWORD, + pub dwCallSetupFailTimer: DWORD, + pub dwInactivityTimeout: DWORD, + pub dwSpeakerVolume: DWORD, + pub dwSpeakerMode: DWORD, + pub dwPreferredModemOptions: DWORD, + pub dwNegotiatedModemOptions: DWORD, + pub dwNegotiatedDCERate: DWORD, + pub abVariablePortion: [BYTE; 1usize], +} +pub type MODEMSETTINGS = _MODEMSETTINGS; +pub type PMODEMSETTINGS = *mut _MODEMSETTINGS; +pub type LPMODEMSETTINGS = *mut _MODEMSETTINGS; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HIMC__ { + pub unused: ::std::os::raw::c_int, +} +pub type HIMC = *mut HIMC__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HIMCC__ { + pub unused: ::std::os::raw::c_int, +} +pub type HIMCC = *mut HIMCC__; +pub type LPHKL = *mut HKL; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCOMPOSITIONFORM { + pub dwStyle: DWORD, + pub ptCurrentPos: POINT, + pub rcArea: RECT, +} +pub type COMPOSITIONFORM = tagCOMPOSITIONFORM; +pub type PCOMPOSITIONFORM = *mut tagCOMPOSITIONFORM; +pub type NPCOMPOSITIONFORM = *mut tagCOMPOSITIONFORM; +pub type LPCOMPOSITIONFORM = *mut tagCOMPOSITIONFORM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCANDIDATEFORM { + pub dwIndex: DWORD, + pub dwStyle: DWORD, + pub ptCurrentPos: POINT, + pub rcArea: RECT, +} +pub type CANDIDATEFORM = tagCANDIDATEFORM; +pub type PCANDIDATEFORM = *mut tagCANDIDATEFORM; +pub type NPCANDIDATEFORM = *mut tagCANDIDATEFORM; +pub type LPCANDIDATEFORM = *mut tagCANDIDATEFORM; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagCANDIDATELIST { + pub dwSize: DWORD, + pub dwStyle: DWORD, + pub dwCount: DWORD, + pub dwSelection: DWORD, + pub dwPageStart: DWORD, + pub dwPageSize: DWORD, + pub dwOffset: [DWORD; 1usize], +} +pub type CANDIDATELIST = tagCANDIDATELIST; +pub type PCANDIDATELIST = *mut tagCANDIDATELIST; +pub type NPCANDIDATELIST = *mut tagCANDIDATELIST; +pub type LPCANDIDATELIST = *mut tagCANDIDATELIST; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagREGISTERWORDA { + pub lpReading: LPSTR, + pub lpWord: LPSTR, +} +pub type REGISTERWORDA = tagREGISTERWORDA; +pub type PREGISTERWORDA = *mut tagREGISTERWORDA; +pub type NPREGISTERWORDA = *mut tagREGISTERWORDA; +pub type LPREGISTERWORDA = *mut tagREGISTERWORDA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagREGISTERWORDW { + pub lpReading: LPWSTR, + pub lpWord: LPWSTR, +} +pub type REGISTERWORDW = tagREGISTERWORDW; +pub type PREGISTERWORDW = *mut tagREGISTERWORDW; +pub type NPREGISTERWORDW = *mut tagREGISTERWORDW; +pub type LPREGISTERWORDW = *mut tagREGISTERWORDW; +pub type REGISTERWORD = REGISTERWORDA; +pub type PREGISTERWORD = PREGISTERWORDA; +pub type NPREGISTERWORD = NPREGISTERWORDA; +pub type LPREGISTERWORD = LPREGISTERWORDA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagRECONVERTSTRING { + pub dwSize: DWORD, + pub dwVersion: DWORD, + pub dwStrLen: DWORD, + pub dwStrOffset: DWORD, + pub dwCompStrLen: DWORD, + pub dwCompStrOffset: DWORD, + pub dwTargetStrLen: DWORD, + pub dwTargetStrOffset: DWORD, +} +pub type RECONVERTSTRING = tagRECONVERTSTRING; +pub type PRECONVERTSTRING = *mut tagRECONVERTSTRING; +pub type NPRECONVERTSTRING = *mut tagRECONVERTSTRING; +pub type LPRECONVERTSTRING = *mut tagRECONVERTSTRING; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSTYLEBUFA { + pub dwStyle: DWORD, + pub szDescription: [CHAR; 32usize], +} +pub type STYLEBUFA = tagSTYLEBUFA; +pub type PSTYLEBUFA = *mut tagSTYLEBUFA; +pub type NPSTYLEBUFA = *mut tagSTYLEBUFA; +pub type LPSTYLEBUFA = *mut tagSTYLEBUFA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagSTYLEBUFW { + pub dwStyle: DWORD, + pub szDescription: [WCHAR; 32usize], +} +pub type STYLEBUFW = tagSTYLEBUFW; +pub type PSTYLEBUFW = *mut tagSTYLEBUFW; +pub type NPSTYLEBUFW = *mut tagSTYLEBUFW; +pub type LPSTYLEBUFW = *mut tagSTYLEBUFW; +pub type STYLEBUF = STYLEBUFA; +pub type PSTYLEBUF = PSTYLEBUFA; +pub type NPSTYLEBUF = NPSTYLEBUFA; +pub type LPSTYLEBUF = LPSTYLEBUFA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagIMEMENUITEMINFOA { + pub cbSize: UINT, + pub fType: UINT, + pub fState: UINT, + pub wID: UINT, + pub hbmpChecked: HBITMAP, + pub hbmpUnchecked: HBITMAP, + pub dwItemData: DWORD, + pub szString: [CHAR; 80usize], + pub hbmpItem: HBITMAP, +} +pub type IMEMENUITEMINFOA = tagIMEMENUITEMINFOA; +pub type PIMEMENUITEMINFOA = *mut tagIMEMENUITEMINFOA; +pub type NPIMEMENUITEMINFOA = *mut tagIMEMENUITEMINFOA; +pub type LPIMEMENUITEMINFOA = *mut tagIMEMENUITEMINFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagIMEMENUITEMINFOW { + pub cbSize: UINT, + pub fType: UINT, + pub fState: UINT, + pub wID: UINT, + pub hbmpChecked: HBITMAP, + pub hbmpUnchecked: HBITMAP, + pub dwItemData: DWORD, + pub szString: [WCHAR; 80usize], + pub hbmpItem: HBITMAP, +} +pub type IMEMENUITEMINFOW = tagIMEMENUITEMINFOW; +pub type PIMEMENUITEMINFOW = *mut tagIMEMENUITEMINFOW; +pub type NPIMEMENUITEMINFOW = *mut tagIMEMENUITEMINFOW; +pub type LPIMEMENUITEMINFOW = *mut tagIMEMENUITEMINFOW; +pub type IMEMENUITEMINFO = IMEMENUITEMINFOA; +pub type PIMEMENUITEMINFO = PIMEMENUITEMINFOA; +pub type NPIMEMENUITEMINFO = NPIMEMENUITEMINFOA; +pub type LPIMEMENUITEMINFO = LPIMEMENUITEMINFOA; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagIMECHARPOSITION { + pub dwSize: DWORD, + pub dwCharPos: DWORD, + pub pt: POINT, + pub cLineHeight: UINT, + pub rcDocument: RECT, +} +pub type IMECHARPOSITION = tagIMECHARPOSITION; +pub type PIMECHARPOSITION = *mut tagIMECHARPOSITION; +pub type NPIMECHARPOSITION = *mut tagIMECHARPOSITION; +pub type LPIMECHARPOSITION = *mut tagIMECHARPOSITION; +pub type IMCENUMPROC = + ::std::option::Option BOOL>; +extern "C" { + pub fn ImmInstallIMEA(lpszIMEFileName: LPCSTR, lpszLayoutText: LPCSTR) -> HKL; +} +extern "C" { + pub fn ImmInstallIMEW(lpszIMEFileName: LPCWSTR, lpszLayoutText: LPCWSTR) -> HKL; +} +extern "C" { + pub fn ImmGetDefaultIMEWnd(arg1: HWND) -> HWND; +} +extern "C" { + pub fn ImmGetDescriptionA(arg1: HKL, lpszDescription: LPSTR, uBufLen: UINT) -> UINT; +} +extern "C" { + pub fn ImmGetDescriptionW(arg1: HKL, lpszDescription: LPWSTR, uBufLen: UINT) -> UINT; +} +extern "C" { + pub fn ImmGetIMEFileNameA(arg1: HKL, lpszFileName: LPSTR, uBufLen: UINT) -> UINT; +} +extern "C" { + pub fn ImmGetIMEFileNameW(arg1: HKL, lpszFileName: LPWSTR, uBufLen: UINT) -> UINT; +} +extern "C" { + pub fn ImmGetProperty(arg1: HKL, arg2: DWORD) -> DWORD; +} +extern "C" { + pub fn ImmIsIME(arg1: HKL) -> BOOL; +} +extern "C" { + pub fn ImmSimulateHotKey(arg1: HWND, arg2: DWORD) -> BOOL; +} +extern "C" { + pub fn ImmCreateContext() -> HIMC; +} +extern "C" { + pub fn ImmDestroyContext(arg1: HIMC) -> BOOL; +} +extern "C" { + pub fn ImmGetContext(arg1: HWND) -> HIMC; +} +extern "C" { + pub fn ImmReleaseContext(arg1: HWND, arg2: HIMC) -> BOOL; +} +extern "C" { + pub fn ImmAssociateContext(arg1: HWND, arg2: HIMC) -> HIMC; +} +extern "C" { + pub fn ImmAssociateContextEx(arg1: HWND, arg2: HIMC, arg3: DWORD) -> BOOL; +} +extern "C" { + pub fn ImmGetCompositionStringA( + arg1: HIMC, + arg2: DWORD, + lpBuf: LPVOID, + dwBufLen: DWORD, + ) -> LONG; +} +extern "C" { + pub fn ImmGetCompositionStringW( + arg1: HIMC, + arg2: DWORD, + lpBuf: LPVOID, + dwBufLen: DWORD, + ) -> LONG; +} +extern "C" { + pub fn ImmSetCompositionStringA( + arg1: HIMC, + dwIndex: DWORD, + lpComp: LPVOID, + dwCompLen: DWORD, + lpRead: LPVOID, + dwReadLen: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn ImmSetCompositionStringW( + arg1: HIMC, + dwIndex: DWORD, + lpComp: LPVOID, + dwCompLen: DWORD, + lpRead: LPVOID, + dwReadLen: DWORD, + ) -> BOOL; +} +extern "C" { + pub fn ImmGetCandidateListCountA(arg1: HIMC, lpdwListCount: LPDWORD) -> DWORD; +} +extern "C" { + pub fn ImmGetCandidateListCountW(arg1: HIMC, lpdwListCount: LPDWORD) -> DWORD; +} +extern "C" { + pub fn ImmGetCandidateListA( + arg1: HIMC, + deIndex: DWORD, + lpCandList: LPCANDIDATELIST, + dwBufLen: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn ImmGetCandidateListW( + arg1: HIMC, + deIndex: DWORD, + lpCandList: LPCANDIDATELIST, + dwBufLen: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn ImmGetGuideLineA(arg1: HIMC, dwIndex: DWORD, lpBuf: LPSTR, dwBufLen: DWORD) -> DWORD; +} +extern "C" { + pub fn ImmGetGuideLineW(arg1: HIMC, dwIndex: DWORD, lpBuf: LPWSTR, dwBufLen: DWORD) -> DWORD; +} +extern "C" { + pub fn ImmGetConversionStatus( + arg1: HIMC, + lpfdwConversion: LPDWORD, + lpfdwSentence: LPDWORD, + ) -> BOOL; +} +extern "C" { + pub fn ImmSetConversionStatus(arg1: HIMC, arg2: DWORD, arg3: DWORD) -> BOOL; +} +extern "C" { + pub fn ImmGetOpenStatus(arg1: HIMC) -> BOOL; +} +extern "C" { + pub fn ImmSetOpenStatus(arg1: HIMC, arg2: BOOL) -> BOOL; +} +extern "C" { + pub fn ImmGetCompositionFontA(arg1: HIMC, lplf: LPLOGFONTA) -> BOOL; +} +extern "C" { + pub fn ImmGetCompositionFontW(arg1: HIMC, lplf: LPLOGFONTW) -> BOOL; +} +extern "C" { + pub fn ImmSetCompositionFontA(arg1: HIMC, lplf: LPLOGFONTA) -> BOOL; +} +extern "C" { + pub fn ImmSetCompositionFontW(arg1: HIMC, lplf: LPLOGFONTW) -> BOOL; +} +extern "C" { + pub fn ImmConfigureIMEA(arg1: HKL, arg2: HWND, arg3: DWORD, arg4: LPVOID) -> BOOL; +} +extern "C" { + pub fn ImmConfigureIMEW(arg1: HKL, arg2: HWND, arg3: DWORD, arg4: LPVOID) -> BOOL; +} +extern "C" { + pub fn ImmEscapeA(arg1: HKL, arg2: HIMC, arg3: UINT, arg4: LPVOID) -> LRESULT; +} +extern "C" { + pub fn ImmEscapeW(arg1: HKL, arg2: HIMC, arg3: UINT, arg4: LPVOID) -> LRESULT; +} +extern "C" { + pub fn ImmGetConversionListA( + arg1: HKL, + arg2: HIMC, + lpSrc: LPCSTR, + lpDst: LPCANDIDATELIST, + dwBufLen: DWORD, + uFlag: UINT, + ) -> DWORD; +} +extern "C" { + pub fn ImmGetConversionListW( + arg1: HKL, + arg2: HIMC, + lpSrc: LPCWSTR, + lpDst: LPCANDIDATELIST, + dwBufLen: DWORD, + uFlag: UINT, + ) -> DWORD; +} +extern "C" { + pub fn ImmNotifyIME(arg1: HIMC, dwAction: DWORD, dwIndex: DWORD, dwValue: DWORD) -> BOOL; +} +extern "C" { + pub fn ImmGetStatusWindowPos(arg1: HIMC, lpptPos: LPPOINT) -> BOOL; +} +extern "C" { + pub fn ImmSetStatusWindowPos(arg1: HIMC, lpptPos: LPPOINT) -> BOOL; +} +extern "C" { + pub fn ImmGetCompositionWindow(arg1: HIMC, lpCompForm: LPCOMPOSITIONFORM) -> BOOL; +} +extern "C" { + pub fn ImmSetCompositionWindow(arg1: HIMC, lpCompForm: LPCOMPOSITIONFORM) -> BOOL; +} +extern "C" { + pub fn ImmGetCandidateWindow(arg1: HIMC, arg2: DWORD, lpCandidate: LPCANDIDATEFORM) -> BOOL; +} +extern "C" { + pub fn ImmSetCandidateWindow(arg1: HIMC, lpCandidate: LPCANDIDATEFORM) -> BOOL; +} +extern "C" { + pub fn ImmIsUIMessageA(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> BOOL; +} +extern "C" { + pub fn ImmIsUIMessageW(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> BOOL; +} +extern "C" { + pub fn ImmGetVirtualKey(arg1: HWND) -> UINT; +} +pub type REGISTERWORDENUMPROCA = ::std::option::Option< + unsafe extern "C" fn( + lpszReading: LPCSTR, + arg1: DWORD, + lpszString: LPCSTR, + arg2: LPVOID, + ) -> ::std::os::raw::c_int, +>; +pub type REGISTERWORDENUMPROCW = ::std::option::Option< + unsafe extern "C" fn( + lpszReading: LPCWSTR, + arg1: DWORD, + lpszString: LPCWSTR, + arg2: LPVOID, + ) -> ::std::os::raw::c_int, +>; +extern "C" { + pub fn ImmRegisterWordA( + arg1: HKL, + lpszReading: LPCSTR, + arg2: DWORD, + lpszRegister: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn ImmRegisterWordW( + arg1: HKL, + lpszReading: LPCWSTR, + arg2: DWORD, + lpszRegister: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn ImmUnregisterWordA( + arg1: HKL, + lpszReading: LPCSTR, + arg2: DWORD, + lpszUnregister: LPCSTR, + ) -> BOOL; +} +extern "C" { + pub fn ImmUnregisterWordW( + arg1: HKL, + lpszReading: LPCWSTR, + arg2: DWORD, + lpszUnregister: LPCWSTR, + ) -> BOOL; +} +extern "C" { + pub fn ImmGetRegisterWordStyleA(arg1: HKL, nItem: UINT, lpStyleBuf: LPSTYLEBUFA) -> UINT; +} +extern "C" { + pub fn ImmGetRegisterWordStyleW(arg1: HKL, nItem: UINT, lpStyleBuf: LPSTYLEBUFW) -> UINT; +} +extern "C" { + pub fn ImmEnumRegisterWordA( + arg1: HKL, + arg2: REGISTERWORDENUMPROCA, + lpszReading: LPCSTR, + arg3: DWORD, + lpszRegister: LPCSTR, + arg4: LPVOID, + ) -> UINT; +} +extern "C" { + pub fn ImmEnumRegisterWordW( + arg1: HKL, + arg2: REGISTERWORDENUMPROCW, + lpszReading: LPCWSTR, + arg3: DWORD, + lpszRegister: LPCWSTR, + arg4: LPVOID, + ) -> UINT; +} +extern "C" { + pub fn ImmDisableIME(arg1: DWORD) -> BOOL; +} +extern "C" { + pub fn ImmEnumInputContext(idThread: DWORD, lpfn: IMCENUMPROC, lParam: LPARAM) -> BOOL; +} +extern "C" { + pub fn ImmGetImeMenuItemsA( + arg1: HIMC, + arg2: DWORD, + arg3: DWORD, + lpImeParentMenu: LPIMEMENUITEMINFOA, + lpImeMenu: LPIMEMENUITEMINFOA, + dwSize: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn ImmGetImeMenuItemsW( + arg1: HIMC, + arg2: DWORD, + arg3: DWORD, + lpImeParentMenu: LPIMEMENUITEMINFOW, + lpImeMenu: LPIMEMENUITEMINFOW, + dwSize: DWORD, + ) -> DWORD; +} +extern "C" { + pub fn ImmDisableTextFrameService(idThread: DWORD) -> BOOL; +} +extern "C" { + pub fn ImmDisableLegacyIME() -> BOOL; +} +pub type int_least8_t = ::std::os::raw::c_schar; +pub type int_least16_t = ::std::os::raw::c_short; +pub type int_least32_t = ::std::os::raw::c_int; +pub type int_least64_t = ::std::os::raw::c_longlong; +pub type uint_least8_t = ::std::os::raw::c_uchar; +pub type uint_least16_t = ::std::os::raw::c_ushort; +pub type uint_least32_t = ::std::os::raw::c_uint; +pub type uint_least64_t = ::std::os::raw::c_ulonglong; +pub type int_fast8_t = ::std::os::raw::c_schar; +pub type int_fast16_t = ::std::os::raw::c_int; +pub type int_fast32_t = ::std::os::raw::c_int; +pub type int_fast64_t = ::std::os::raw::c_longlong; +pub type uint_fast8_t = ::std::os::raw::c_uchar; +pub type uint_fast16_t = ::std::os::raw::c_uint; +pub type uint_fast32_t = ::std::os::raw::c_uint; +pub type uint_fast64_t = ::std::os::raw::c_ulonglong; +pub type intmax_t = ::std::os::raw::c_longlong; +pub type uintmax_t = ::std::os::raw::c_ulonglong; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _Lldiv_t { + pub quot: intmax_t, + pub rem: intmax_t, +} +pub type imaxdiv_t = _Lldiv_t; +extern "C" { + pub fn imaxabs(_Number: intmax_t) -> intmax_t; +} +extern "C" { + pub fn imaxdiv(_Numerator: intmax_t, _Denominator: intmax_t) -> imaxdiv_t; +} +extern "C" { + pub fn strtoimax( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> intmax_t; +} +extern "C" { + pub fn _strtoimax_l( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> intmax_t; +} +extern "C" { + pub fn strtoumax( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + ) -> uintmax_t; +} +extern "C" { + pub fn _strtoumax_l( + _String: *const ::std::os::raw::c_char, + _EndPtr: *mut *mut ::std::os::raw::c_char, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> uintmax_t; +} +extern "C" { + pub fn wcstoimax( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + ) -> intmax_t; +} +extern "C" { + pub fn _wcstoimax_l( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> intmax_t; +} +extern "C" { + pub fn wcstoumax( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + ) -> uintmax_t; +} +extern "C" { + pub fn _wcstoumax_l( + _String: *const wchar_t, + _EndPtr: *mut *mut wchar_t, + _Radix: ::std::os::raw::c_int, + _Locale: _locale_t, + ) -> uintmax_t; +} +pub const evt_call_t_EVT_OP_LOAD: evt_call_t = 1; +pub const evt_call_t_EVT_OP_UNLOAD: evt_call_t = 2; +pub const evt_call_t_EVT_OP_OPEN: evt_call_t = 3; +pub const evt_call_t_EVT_OP_CLOSE: evt_call_t = 4; +pub const evt_call_t_EVT_OP_CONFIG: evt_call_t = 5; +pub const evt_call_t_EVT_OP_LOG: evt_call_t = 6; +pub const evt_call_t_EVT_OP_PAUSE: evt_call_t = 7; +pub const evt_call_t_EVT_OP_RESUME: evt_call_t = 8; +pub const evt_call_t_EVT_OP_UPLOAD: evt_call_t = 9; +pub const evt_call_t_EVT_OP_FLUSH: evt_call_t = 10; +pub const evt_call_t_EVT_OP_VERSION: evt_call_t = 11; +pub const evt_call_t_EVT_OP_OPEN_WITH_PARAMS: evt_call_t = 12; +pub const evt_call_t_EVT_OP_FLUSHANDTEARDOWN: evt_call_t = 13; +pub const evt_call_t_EVT_OP_MAX: evt_call_t = 14; +pub type evt_call_t = ::std::os::raw::c_int; +pub const evt_prop_t_TYPE_STRING: evt_prop_t = 0; +pub const evt_prop_t_TYPE_INT64: evt_prop_t = 1; +pub const evt_prop_t_TYPE_DOUBLE: evt_prop_t = 2; +pub const evt_prop_t_TYPE_TIME: evt_prop_t = 3; +pub const evt_prop_t_TYPE_BOOLEAN: evt_prop_t = 4; +pub const evt_prop_t_TYPE_GUID: evt_prop_t = 5; +pub const evt_prop_t_TYPE_STRING_ARRAY: evt_prop_t = 6; +pub const evt_prop_t_TYPE_INT64_ARRAY: evt_prop_t = 7; +pub const evt_prop_t_TYPE_DOUBLE_ARRAY: evt_prop_t = 8; +pub const evt_prop_t_TYPE_TIME_ARRAY: evt_prop_t = 9; +pub const evt_prop_t_TYPE_BOOL_ARRAY: evt_prop_t = 10; +pub const evt_prop_t_TYPE_GUID_ARRAY: evt_prop_t = 11; +pub const evt_prop_t_TYPE_NULL: evt_prop_t = 12; +pub type evt_prop_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct evt_guid_t { + #[doc = " \n Specifies the first eight hexadecimal digits of the GUID.\n "] + pub Data1: u32, + pub Data2: u16, + #[doc = " \n Specifies the second group of four hexadecimal digits.\n "] + pub Data3: u16, + #[doc = " \n An array of eight bytes.\n The first two bytes contain the third group of four hexadecimal digits.\n The remaining six bytes contain the final 12 hexadecimal digits.\n "] + pub Data4: [u8; 8usize], +} +pub type evt_handle_t = i64; +pub type evt_status_t = i32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct evt_event { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct evt_context_t { + pub call: evt_call_t, + pub handle: evt_handle_t, + pub data: *mut ::std::os::raw::c_void, + pub result: evt_status_t, + pub size: u32, +} +pub const evt_open_param_type_t_OPEN_PARAM_TYPE_HTTP_HANDLER_SEND: evt_open_param_type_t = 0; +pub const evt_open_param_type_t_OPEN_PARAM_TYPE_HTTP_HANDLER_CANCEL: evt_open_param_type_t = 1; +pub const evt_open_param_type_t_OPEN_PARAM_TYPE_TASK_DISPATCHER_QUEUE: evt_open_param_type_t = 2; +pub const evt_open_param_type_t_OPEN_PARAM_TYPE_TASK_DISPATCHER_CANCEL: evt_open_param_type_t = 3; +pub const evt_open_param_type_t_OPEN_PARAM_TYPE_TASK_DISPATCHER_JOIN: evt_open_param_type_t = 4; +#[doc = " \n Identifies the type of input parameter to 'evt_open_with_params'. New parameter types can be added without\n breaking backwards compatibility.\n "] +pub type evt_open_param_type_t = ::std::os::raw::c_int; +#[doc = " \n Represents a single input parameter to 'evt_open_with_params'\n "] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct evt_open_param_t { + pub type_: evt_open_param_type_t, + pub data: *mut ::std::os::raw::c_void, +} +#[doc = " \n Wraps logger configuration string and all input parameters to 'evt_open_with_params'\n "] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct evt_open_with_params_data_t { + pub config: *const ::std::os::raw::c_char, + pub params: *const evt_open_param_t, + pub paramsCount: i32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union evt_prop_v { + pub as_uint64: u64, + pub as_string: *const ::std::os::raw::c_char, + pub as_int64: i64, + pub as_double: f64, + pub as_bool: bool, + pub as_guid: *mut evt_guid_t, + pub as_time: u64, + pub as_arr_string: *mut *mut ::std::os::raw::c_char, + pub as_arr_int64: *mut *mut i64, + pub as_arr_bool: *mut *mut bool, + pub as_arr_double: *mut *mut f64, + pub as_arr_guid: *mut *mut evt_guid_t, + pub as_arr_time: *mut *mut u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct evt_prop { + pub name: *const ::std::os::raw::c_char, + pub type_: evt_prop_t, + pub value: evt_prop_v, + pub piiKind: u32, +} +pub const http_request_type_t_HTTP_REQUEST_TYPE_GET: http_request_type_t = 0; +pub const http_request_type_t_HTTP_REQUEST_TYPE_POST: http_request_type_t = 1; +#[doc = " \n Identifies HTTP request method type\n "] +pub type http_request_type_t = ::std::os::raw::c_int; +pub const http_result_t_HTTP_RESULT_OK: http_result_t = 0; +pub const http_result_t_HTTP_RESULT_CANCELLED: http_result_t = 1; +pub const http_result_t_HTTP_RESULT_LOCAL_FAILURE: http_result_t = 2; +pub const http_result_t_HTTP_RESULT_NETWORK_FAILURE: http_result_t = 3; +#[doc = " \n Identifies whether an HTTP operation has succeeded or failed, including general failure type\n "] +pub type http_result_t = ::std::os::raw::c_int; +#[doc = " \n Represents a single HTTP request or response header (key/value pair)\n "] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct http_header_t { + pub name: *const ::std::os::raw::c_char, + pub value: *const ::std::os::raw::c_char, +} +#[doc = " \n Represents a single HTTP request. Used by optional app-provided HTTP handler callback functions.\n "] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct http_request_t { + pub id: *const ::std::os::raw::c_char, + pub type_: http_request_type_t, + pub url: *const ::std::os::raw::c_char, + pub body: *const u8, + pub bodySize: i32, + pub headers: *const http_header_t, + pub headersCount: i32, +} +#[doc = " \n Represents a single HTTP response. Used by optional app-provided HTTP handler callback functions.\n "] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct http_response_t { + pub statusCode: i32, + pub body: *const u8, + pub bodySize: i32, + pub headers: *const http_header_t, + pub headersCount: i32, +} +pub type http_complete_fn_t = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_char, + arg2: http_result_t, + arg3: *mut http_response_t, + ), +>; +pub type http_send_fn_t = ::std::option::Option< + unsafe extern "C" fn(arg1: *mut http_request_t, arg2: http_complete_fn_t), +>; +pub type http_cancel_fn_t = + ::std::option::Option; +#[doc = " \n Represents a single asynchronous worker thread item. Used by optional app-provided worker thread callback functions.\n "] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct evt_task_t { + pub id: *const ::std::os::raw::c_char, + pub delayMs: i64, + pub typeName: *const ::std::os::raw::c_char, +} +pub type task_callback_fn_t = + ::std::option::Option; +pub type task_dispatcher_queue_fn_t = + ::std::option::Option; +pub type task_dispatcher_cancel_fn_t = + ::std::option::Option bool>; +pub type task_dispatcher_join_fn_t = ::std::option::Option; +pub type evt_app_call_t = + ::std::option::Option evt_status_t>; +extern "C" { + pub fn evt_api_call_default(ctx: *mut evt_context_t) -> evt_status_t; +} +extern "C" { + pub static mut evt_api_call: evt_app_call_t; +} +pub type __builtin_va_list = *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __crt_locale_data { + pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __crt_multibyte_data { + pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _ACTIVATION_CONTEXT { + pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NET_ADDRESS_INFO_ { + pub _address: u8, +} diff --git a/wrappers/rust/src/lib.rs b/wrappers/rust/src/lib.rs deleted file mode 100644 index e69de29bb..000000000 diff --git a/wrappers/rust/telemetry-sample/Cargo.toml b/wrappers/rust/telemetry-sample/Cargo.toml new file mode 100644 index 000000000..5895b71e4 --- /dev/null +++ b/wrappers/rust/telemetry-sample/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "telemetry-sample" +version = "0.1.0" +edition = "2021" +publish = false +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +telemetry = { path = "../telemetry" } + +[dev-dependencies] \ No newline at end of file diff --git a/wrappers/rust/telemetry-sample/build.rs b/wrappers/rust/telemetry-sample/build.rs new file mode 100644 index 000000000..ccdc9d320 --- /dev/null +++ b/wrappers/rust/telemetry-sample/build.rs @@ -0,0 +1,13 @@ +use std::env; +use std::fs; +use std::path::Path; + +fn main() { + println!("cargo:rustc-link-search=../lib"); + // println!("cargo:rustc-link-search=native={}", libdir.display()); + + let out_dir = env::var("OUT_DIR").unwrap(); + let src = Path::join(&env::current_dir().unwrap(), "..\\lib\\ClientTelemetry.dll"); + let dest = Path::join(Path::new(&out_dir), Path::new("ClientTelemetry.dll")); + fs::copy(src, dest).unwrap(); +} \ No newline at end of file diff --git a/wrappers/rust/telemetry-sample/src/main.rs b/wrappers/rust/telemetry-sample/src/main.rs new file mode 100644 index 000000000..3c04f9fd9 --- /dev/null +++ b/wrappers/rust/telemetry-sample/src/main.rs @@ -0,0 +1,119 @@ +// This is a comment, and is ignored by the compiler. +// You can test this code by clicking the "Run" button over there -> +// or if you prefer to use your keyboard, you can use the "Ctrl + Enter" +// shortcut. + +// This code is editable, feel free to hack it! +// You can always return to the original code by clicking the "Reset" button -> + +// This is the main function. + +use std::{ + ffi::{CStr, CString}, + mem, thread, + time::Duration, +}; +use telemetry::LogManager; + +fn string_prop(name: &str, value: &str, is_pii: bool) -> telemetry::evt_prop { + let mut pii_kind = 0; + + if is_pii { + pii_kind = 1; + } + + telemetry::evt_prop { + name: to_c_str2(name), + type_: telemetry::evt_prop_t_TYPE_STRING, + value: telemetry::evt_prop_v { + as_string: to_c_str2(value), + }, + piiKind: pii_kind, + } +} + +fn to_c_str(value: &str) -> *const i8 { + let c_str = CString::new(value.clone().as_bytes()).unwrap(); + let c_str_bytes = c_str.as_bytes_with_nul().to_owned(); + let ptr = c_str_bytes.as_ptr() as *const i8; + + return ptr; +} + +fn to_c_str2(value: &str) -> *const i8 { + let c_str = Box::new(CString::new(value.clone()).unwrap()); + let ptr = c_str.as_ptr() as *const i8; + mem::forget(c_str); + return ptr; +} + +fn int_prop(name: &str, value: i64) -> telemetry::evt_prop { + telemetry::evt_prop { + name: to_c_str2(name), + type_: telemetry::evt_prop_t_TYPE_INT64, + value: telemetry::evt_prop_v { + as_int64: value.clone(), + }, + piiKind: 0, + } +} + +pub const API_KEY: &str = + "99999999999999999999999999999999-99999999-9999-9999-9999-999999999999-9999"; + +fn main() { + let mut log_manager = LogManager::LogManager::new(); + + if log_manager.start() == false { + println!("Failed to Start Log Manager."); + } + + log_manager.stop(); + + let config = r#"{ + "eventCollectorUri": "http://localhost:64099/OneCollector/track", + "cacheFilePath":"offline_storage.db", + "config":{"host": "*"}, + "name":"Rust-API-Client-0", + "version":"1.0.0", + "primaryToken":"99999999999999999999999999999999-99999999-9999-9999-9999-999999999999-9999", + "maxTeardownUploadTimeInSec":5, + "hostMode":false, + "traceLevelMask": 4294967295, + "minimumTraceLevel":0, + "sdkmode":3 + }"#; + + let mut event: Vec = Vec::new(); + event.push(string_prop("name", "Event.Name.RustFFI", false)); + event.push(string_prop("ver", "4.0", false)); + event.push(string_prop("time", "1979-08-12", false)); + event.push(int_prop("popSample", 100)); + event.push(string_prop("iKey", API_KEY, false)); + event.push(int_prop("flags", 0xffffffff)); + event.push(string_prop("cV", "12345", false)); + + println!("Testing C -> RUST FFI ..."); + let handle = telemetry::evt_open(config); + println!("EVT_HANDLE: {}", handle); + + loop { + let mut event_data: [telemetry::evt_prop; 7] = [ + string_prop("name", "Event.Name.RustFFI", false), + string_prop("ver", "4.0", false), + string_prop("time", "1979-08-12", false), + int_prop("popSample", 100), + string_prop("iKey", API_KEY, false), + int_prop("flags", 0xffffffff), + string_prop("cV", "12345", false), + ]; + + println!("EVT_LOG: {}", telemetry::evt_log(&handle, &mut event_data)); + println!("EVT_FLUSH: {}", telemetry::evt_flush(&handle)); + println!("EVT_UPLOAD: {}", telemetry::evt_upload(&handle)); + thread::sleep(Duration::from_secs(3)); + } + + // println!("EVT_UPLOAD: {}", telemetry::evt_upload(&handle)); + println!("EVT_CLOSE: {}", telemetry::evt_close(&handle)); +} diff --git a/wrappers/rust/telemetry/Cargo.toml b/wrappers/rust/telemetry/Cargo.toml new file mode 100644 index 000000000..bd2df5f96 --- /dev/null +++ b/wrappers/rust/telemetry/Cargo.toml @@ -0,0 +1,13 @@ +[package] +name = "telemetry" +version = "0.1.0" +edition = "2021" +publish = false +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] + +[dev-dependencies] + +[build-dependencies] +bindgen = { version = "0.65.1", features = ["experimental"] } \ No newline at end of file diff --git a/wrappers/rust/telemetry/build.rs b/wrappers/rust/telemetry/build.rs new file mode 100644 index 000000000..c09a1e858 --- /dev/null +++ b/wrappers/rust/telemetry/build.rs @@ -0,0 +1,62 @@ +use std::env; +use std::path::PathBuf; + +fn main() { + // Tell cargo to look for shared libraries in the specified directory + println!("cargo:rustc-link-search=../lib"); + + // Tell cargo to tell rustc to link the system bzip2 + // shared library. + // println!("cargo:rustc-link-static-lib=mat"); + + // Tell cargo to invalidate the built crate whenever the wrapper changes + // println!("cargo:rerun-if-changed=../include"); + + // #![allow(non_upper_case_globals)] + // #![allow(non_camel_case_types)] + // #![allow(non_snake_case)] + + // The bindgen::Builder is the main entry point + // to bindgen, and lets you build up options for + // the resulting bindings. + let bindings = bindgen::Builder::default() + // The input header we would like to generate + // bindings for. + .parse_callbacks(Box::new(bindgen::CargoCallbacks)) + .rust_target(bindgen::RustTarget::Stable_1_68) + // .raw_line("#![allow(non_upper_case_globals)]") + // .raw_line("#![allow(non_camel_case_types)]") + // .raw_line("#![allow(non_snake_case)]") + .header("../include/mat.out.h") + .allowlist_file("../include/mat.out.h") + .c_naming(false) + .blocklist_type("struct_IMAGE_TLS_DIRECTORY") + .blocklist_type("struct_PIMAGE_TLS_DIRECTORY") + .blocklist_type("struct_IMAGE_TLS_DIRECTORY64") + .blocklist_type("struct_PIMAGE_TLS_DIRECTORY64") + .blocklist_type("struct__IMAGE_TLS_DIRECTORY64") + .blocklist_type("IMAGE_TLS_DIRECTORY") + .blocklist_type("PIMAGE_TLS_DIRECTORY") + .blocklist_type("IMAGE_TLS_DIRECTORY64") + .blocklist_type("PIMAGE_TLS_DIRECTORY64") + .blocklist_type("_IMAGE_TLS_DIRECTORY64") + .allowlist_type("evt_.*") + .allowlist_function("evt_.*") + .allowlist_var("evt_.*") + .allowlist_recursively(false) + .layout_tests(false) + .merge_extern_blocks(true) + // Tell cargo to invalidate the built crate whenever any of the + // included header files changed. + // .wrap_static_fns(true) + // Finish the builder and generate the bindings. + .generate() + // Unwrap the Result and panic on failure. + .expect("Unable to generate bindings"); + + // // Write the bindings to the $OUT_DIR/bindings.rs file. + let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()); + bindings + .write_to_file(out_path.join("bindings.rs")) + .expect("Couldn't write bindings!"); +} \ No newline at end of file diff --git a/wrappers/rust/telemetry/src/LoadLibrary.rs b/wrappers/rust/telemetry/src/LoadLibrary.rs new file mode 100644 index 000000000..41c406e4a --- /dev/null +++ b/wrappers/rust/telemetry/src/LoadLibrary.rs @@ -0,0 +1,38 @@ +// https://fasterthanli.me/series/making-our-own-ping/part-4 +use std::{ + ffi::{c_void, CString}, + mem::transmute_copy, + os::raw::c_char, + ptr::NonNull, + env, +}; + +type HModule = NonNull; +type FarProc = NonNull; + +extern "stdcall" { + fn LoadLibraryA(name: *const c_char) -> Option; + fn GetProcAddress(module: HModule, name: *const c_char) -> Option; +} + +pub struct Library { + module: HModule, +} + +impl Library { + pub fn new(name: &str) -> Option { + let name = CString::new(name).expect("invalid library name"); + let res = unsafe { LoadLibraryA(name.as_ptr()) }; + res.map(|module| Library { module }) + } + + // pub fn new(path: &Path) -> Option { + // let src = Path::join(&env::current_dir().unwrap(), "..\\lib\\ClientTelemetry.dll"); + // } + + pub unsafe fn get_proc(&self, name: &str) -> Option { + let name = CString::new(name).expect("invalid proc name"); + let res = GetProcAddress(self.module, name.as_ptr()); + res.map(|proc| transmute_copy(&proc)) + } +} \ No newline at end of file diff --git a/wrappers/rust/telemetry/src/LogManager.rs b/wrappers/rust/telemetry/src/LogManager.rs new file mode 100644 index 000000000..53dacb8e3 --- /dev/null +++ b/wrappers/rust/telemetry/src/LogManager.rs @@ -0,0 +1,84 @@ +use std::os::raw::c_void; + +use crate::*; + +pub struct LogManager { + call_api: evt_api_call_t, + is_started: bool, + configuration: Option, + log_handle: Option> +} + +impl LogManager { + pub fn new() -> Self { + let ct_lib = LoadLibrary::Library::new("ClientTelemetry.dll").unwrap(); + let call_api: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; + + LogManager { + call_api: call_api, + is_started: false, + configuration: Option::None, + log_handle: Option::None + } + } + + pub fn start(&mut self) -> bool { + if self.configuration.is_none() { + return false; + } + + if self.is_started { + return true; + } + + let config_bytes = self.configuration.clone().unwrap().into_bytes(); + let mut c_chars: Vec = config_bytes.iter().map(| c | *c as i8).collect::>(); + c_chars.push(0); // null terminator + + let config_data = c_chars.as_mut_ptr() as *mut c_void; + let mut context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_OPEN, + handle: 0, + data: config_data, + result: 0, + size: 0 + }); + + let raw_pointer = Box::into_raw(context); + + let result = (self.call_api)(raw_pointer); + + if result == -1 { + return false; + } + + context = unsafe { Box::from_raw(raw_pointer) }; + self.log_handle = Some(Box::new(context.handle)); + self.is_started = true; + + return true; + } + + pub fn stop(&mut self) { + if self.is_started == false { + return; + } + + let mut c_chars: Vec = Vec::new(); + c_chars.push(0); // null + let null_config_data = c_chars.as_mut_ptr() as *mut c_void; + let handle = self.log_handle.as_ref().unwrap(); + + let context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_FLUSHANDTEARDOWN, + handle: *handle.as_ref(), + data: null_config_data, + result: 0, + size: 0 + }); + + let raw_pointer = Box::into_raw(context); + + let _ = (self.call_api)(raw_pointer); + } +} \ No newline at end of file diff --git a/wrappers/rust/telemetry/src/lib.rs b/wrappers/rust/telemetry/src/lib.rs new file mode 100644 index 000000000..d9e9c531d --- /dev/null +++ b/wrappers/rust/telemetry/src/lib.rs @@ -0,0 +1,150 @@ +#![allow(non_upper_case_globals)] +#![allow(non_camel_case_types)] +#![allow(non_snake_case)] + +pub mod LogManager; +mod LoadLibrary; +use std::{mem, os::raw::c_void}; + +include!(concat!(env!("OUT_DIR"), "/bindings.rs")); + +type evt_api_call_t = extern "stdcall" fn( + context: *mut evt_context_t +) -> evt_status_t; + +pub fn evt_open(config: &str) -> evt_handle_t { + let config_string = String::from(config); + let config_bytes = config_string.into_bytes(); + let mut c_chars: Vec = config_bytes.iter().map(| c | *c as i8).collect::>(); + c_chars.push(0); // null terminator + + let config_data = c_chars.as_mut_ptr() as *mut c_void; + let mut context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_OPEN, + handle: 0, + data: config_data, + result: 0, + size: 0 + }); + + let raw_pointer = Box::into_raw(context); + + let ct_lib = LoadLibrary::Library::new("ClientTelemetry.dll").unwrap(); + let evt_api_call_default: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; + + evt_api_call_default(raw_pointer); + context = unsafe { Box::from_raw(raw_pointer) }; + + return context.handle.clone(); +} + +pub fn evt_close(handle: &evt_handle_t) -> evt_status_t { + let mut c_chars: Vec = Vec::new(); + c_chars.push(0); // null + let null_config_data = c_chars.as_mut_ptr() as *mut c_void; + + let mut context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_FLUSHANDTEARDOWN, + handle: *handle, + data: null_config_data, + result: 0, + size: 0 + }); + + let raw_pointer = Box::into_raw(context); + + let ct_lib = LoadLibrary::Library::new("ClientTelemetry.dll").unwrap(); + let evt_api_call_default: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; + + return evt_api_call_default(raw_pointer); +} + +pub fn evt_upload(handle: &evt_handle_t) -> evt_status_t { + let mut c_chars: Vec = Vec::new(); + c_chars.push(0); // null + let null_config_data = c_chars.as_mut_ptr() as *mut c_void; + + let mut context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_UPLOAD, + handle: *handle, + data: null_config_data, + result: 0, + size: 0 + }); + + let raw_pointer = Box::into_raw(context); + + let ct_lib = LoadLibrary::Library::new("ClientTelemetry.dll").unwrap(); + let evt_api_call_default: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; + + return evt_api_call_default(raw_pointer); +} + +pub fn evt_flush(handle: &evt_handle_t) -> evt_status_t { + let mut c_chars: Vec = Vec::new(); + c_chars.push(0); // null + let null_config_data = c_chars.as_mut_ptr() as *mut c_void; + + let mut context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_FLUSH, + handle: *handle, + data: null_config_data, + result: 0, + size: 0 + }); + + let raw_pointer = Box::into_raw(context); + + let ct_lib = LoadLibrary::Library::new("ClientTelemetry.dll").unwrap(); + let evt_api_call_default: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; + + return evt_api_call_default(raw_pointer); +} + +pub fn evt_log_vec(handle: &evt_handle_t, data: &mut Vec) -> evt_status_t { + data.shrink_to_fit(); + assert!(data.len() == data.capacity()); + let data_pointer = data.as_mut_ptr() as *mut c_void; + let data_len = data.len() as u32; + mem::forget(data); // prevent deallocation in Rust + // The array is still there but no Rust object + // feels responsible. We only have ptr/len now + // to reach it. + + println!("LOG LEN: {}", data_len); + + let mut context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_LOG, + handle: *handle, + data: data_pointer, + result: 0, + size: data_len + }); + + let raw_pointer = Box::into_raw(context); + + let ct_lib = LoadLibrary::Library::new("ClientTelemetry.dll").unwrap(); + let evt_api_call_default: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; + + return evt_api_call_default(raw_pointer); +} + +pub fn evt_log(handle: &evt_handle_t, data: &mut [evt_prop]) -> evt_status_t { + let data_len = data.len() as u32; + let data_pointer = data.as_mut_ptr() as *mut c_void; + + let mut context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_LOG, + handle: *handle, + data: data_pointer, + result: 0, + size: data_len + }); + + let raw_pointer = Box::into_raw(context); + + let ct_lib = LoadLibrary::Library::new("ClientTelemetry.dll").unwrap(); + let evt_api_call_default: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; + + return evt_api_call_default(raw_pointer); +} \ No newline at end of file From eb22a4b2bb283a67dda593feaa2c6c47113ea998 Mon Sep 17 00:00:00 2001 From: Travis Sharp <94011425+msft-tsharp@users.noreply.github.com> Date: Thu, 14 Sep 2023 14:57:53 -0700 Subject: [PATCH 03/14] proof of concept using the log crate --- wrappers/rust/.gitignore | 13 +- wrappers/rust/Cargo.toml | 5 +- wrappers/rust/old/no_build.rs | 67 - wrappers/rust/old/telemetry.rs | 116381 --------------- .../{telemetry => oneds-telemetry}/Cargo.toml | 7 +- .../{telemetry => oneds-telemetry}/build.rs | 0 wrappers/rust/oneds-telemetry/src/appender.rs | 56 + .../src/client_library.rs} | 3 +- wrappers/rust/oneds-telemetry/src/helpers.rs | 46 + .../rust/oneds-telemetry/src/internals.rs | 26 + wrappers/rust/oneds-telemetry/src/lib.rs | 219 + wrappers/rust/telemetry-sample/Cargo.toml | 6 +- wrappers/rust/telemetry-sample/src/main.rs | 94 +- wrappers/rust/telemetry/src/LogManager.rs | 84 - wrappers/rust/telemetry/src/lib.rs | 150 - 15 files changed, 381 insertions(+), 116776 deletions(-) delete mode 100644 wrappers/rust/old/no_build.rs delete mode 100644 wrappers/rust/old/telemetry.rs rename wrappers/rust/{telemetry => oneds-telemetry}/Cargo.toml (56%) rename wrappers/rust/{telemetry => oneds-telemetry}/build.rs (100%) create mode 100644 wrappers/rust/oneds-telemetry/src/appender.rs rename wrappers/rust/{telemetry/src/LoadLibrary.rs => oneds-telemetry/src/client_library.rs} (99%) create mode 100644 wrappers/rust/oneds-telemetry/src/helpers.rs create mode 100644 wrappers/rust/oneds-telemetry/src/internals.rs create mode 100644 wrappers/rust/oneds-telemetry/src/lib.rs delete mode 100644 wrappers/rust/telemetry/src/LogManager.rs delete mode 100644 wrappers/rust/telemetry/src/lib.rs diff --git a/wrappers/rust/.gitignore b/wrappers/rust/.gitignore index ada8be928..4b89d686a 100644 --- a/wrappers/rust/.gitignore +++ b/wrappers/rust/.gitignore @@ -2,6 +2,7 @@ # will have compiled files and executables debug/ target/ +out/ # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html @@ -11,4 +12,14 @@ Cargo.lock **/*.rs.bk # MSVC Windows builds of rustc generate these, which store debugging information -*.pdb \ No newline at end of file +*.pdb +*.exe +*.exe +*.o +*.lib +*.so +*.dll + +# Need to rename this to something better ... +lib/ +include/ \ No newline at end of file diff --git a/wrappers/rust/Cargo.toml b/wrappers/rust/Cargo.toml index 922deb265..c9b465d56 100644 --- a/wrappers/rust/Cargo.toml +++ b/wrappers/rust/Cargo.toml @@ -1,7 +1,4 @@ [workspace] resolver = "2" -members = [ - "telemetry", - "telemetry-sample" -] \ No newline at end of file +members = ["oneds-telemetry", "telemetry-sample"] diff --git a/wrappers/rust/old/no_build.rs b/wrappers/rust/old/no_build.rs deleted file mode 100644 index c33dfee6d..000000000 --- a/wrappers/rust/old/no_build.rs +++ /dev/null @@ -1,67 +0,0 @@ -extern crate bindgen; - -use std::fmt::format; -use std::fs; -use std::env; -use std::path::PathBuf; - -use bindgen::CargoCallbacks; - -fn main() { - let rust_wrapper_path = env::current_dir().unwrap(); - let libdir_path = rust_wrapper_path - .join("..\\..\\lib") - .canonicalize() - .expect("cannot canonicalize lib path"); - - // This is the path to the `c` headers file. - let headers_path = libdir_path.join("include\\public"); - let headers_path_str = headers_path.to_str().expect("Path is not a valid string"); - let c_header_path = libdir_path.join("include\\public\\mat.h"); - let c_header_path_str = c_header_path.to_str().expect("Path is not a valid string"); - - // This is the path to the intermediate object file for our library. - let obj_path = libdir_path.join("mat.o"); - // This is the path to the static library file. - let lib_path = libdir_path.join("mat.a"); - - // Tell cargo to look for shared libraries in the specified directory - // println!("cargo:rustc-link-search={}", libdir_path.to_str().unwrap()); - - // Tell cargo to tell rustc to link our `hello` library. Cargo will - // automatically know it must look for a `libmat.a` file. - // println!("cargo:rustc-link-lib=mat"); - - // Tell cargo to invalidate the built crate whenever the header changes. - // println!("cargo:rerun-if-changed={}", headers_path_str); - - // The bindgen::Builder is the main entry point - // to bindgen, and lets you build up options for - // the resulting bindings. - let bindings = bindgen::Builder::default() - // The input header we would like to generate - // bindings for. - .header(c_header_path_str) - .clang_arg(format!("-I{}", headers_path_str)) - // https://github.com/Rust-SDL2/rust-sdl2/issues/1288 - .blocklist_type("IMAGE_TLS_DIRECTORY") - .blocklist_type("PIMAGE_TLS_DIRECTORY") - .blocklist_type("IMAGE_TLS_DIRECTORY64") - .blocklist_type("PIMAGE_TLS_DIRECTORY64") - .blocklist_type("_IMAGE_TLS_DIRECTORY64") - // Tell cargo to invalidate the built crate whenever any of the - // included header files changed. - .parse_callbacks(Box::new(CargoCallbacks)) - // Finish the builder and generate the bindings. - .generate() - // Unwrap the Result and panic on failure. - .expect("Unable to generate bindings"); - - // Write the bindings to the $OUT_DIR/bindings.rs file. - // Write the bindings to the $CARGO_MANIFEST_DIR/bindings.rs file. - // https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts - let out_path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()).join("src/bindings.rs"); - bindings - .write_to_file(out_path) - .expect("Couldn't write bindings!"); -} diff --git a/wrappers/rust/old/telemetry.rs b/wrappers/rust/old/telemetry.rs deleted file mode 100644 index e84ec9db9..000000000 --- a/wrappers/rust/old/telemetry.rs +++ /dev/null @@ -1,116381 +0,0 @@ -/* automatically generated by rust-bindgen 0.68.1 */ - -#[repr(C)] -#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct __BindgenBitfieldUnit { - storage: Storage, -} -impl __BindgenBitfieldUnit { - #[inline] - pub const fn new(storage: Storage) -> Self { - Self { storage } - } -} -impl __BindgenBitfieldUnit -where - Storage: AsRef<[u8]> + AsMut<[u8]>, -{ - #[inline] - pub fn get_bit(&self, index: usize) -> bool { - debug_assert!(index / 8 < self.storage.as_ref().len()); - let byte_index = index / 8; - let byte = self.storage.as_ref()[byte_index]; - let bit_index = if cfg!(target_endian = "big") { - 7 - (index % 8) - } else { - index % 8 - }; - let mask = 1 << bit_index; - byte & mask == mask - } - #[inline] - pub fn set_bit(&mut self, index: usize, val: bool) { - debug_assert!(index / 8 < self.storage.as_ref().len()); - let byte_index = index / 8; - let byte = &mut self.storage.as_mut()[byte_index]; - let bit_index = if cfg!(target_endian = "big") { - 7 - (index % 8) - } else { - index % 8 - }; - let mask = 1 << bit_index; - if val { - *byte |= mask; - } else { - *byte &= !mask; - } - } - #[inline] - pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { - debug_assert!(bit_width <= 64); - debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); - debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); - let mut val = 0; - for i in 0..(bit_width as usize) { - if self.get_bit(i + bit_offset) { - let index = if cfg!(target_endian = "big") { - bit_width as usize - 1 - i - } else { - i - }; - val |= 1 << index; - } - } - val - } - #[inline] - pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { - debug_assert!(bit_width <= 64); - debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); - debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); - for i in 0..(bit_width as usize) { - let mask = 1 << i; - let val_bit_is_set = val & mask == mask; - let index = if cfg!(target_endian = "big") { - bit_width as usize - 1 - i - } else { - i - }; - self.set_bit(index + bit_offset, val_bit_is_set); - } - } -} -#[repr(C)] -#[derive(Default)] -pub struct __IncompleteArrayField(::std::marker::PhantomData, [T; 0]); -impl __IncompleteArrayField { - #[inline] - pub const fn new() -> Self { - __IncompleteArrayField(::std::marker::PhantomData, []) - } - #[inline] - pub fn as_ptr(&self) -> *const T { - self as *const _ as *const T - } - #[inline] - pub fn as_mut_ptr(&mut self) -> *mut T { - self as *mut _ as *mut T - } - #[inline] - pub unsafe fn as_slice(&self, len: usize) -> &[T] { - ::std::slice::from_raw_parts(self.as_ptr(), len) - } - #[inline] - pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { - ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) - } -} -impl ::std::fmt::Debug for __IncompleteArrayField { - fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - fmt.write_str("__IncompleteArrayField") - } -} -#[repr(C)] -pub struct __BindgenUnionField(::std::marker::PhantomData); -impl __BindgenUnionField { - #[inline] - pub const fn new() -> Self { - __BindgenUnionField(::std::marker::PhantomData) - } - #[inline] - pub unsafe fn as_ref(&self) -> &T { - ::std::mem::transmute(self) - } - #[inline] - pub unsafe fn as_mut(&mut self) -> &mut T { - ::std::mem::transmute(self) - } -} -impl ::std::default::Default for __BindgenUnionField { - #[inline] - fn default() -> Self { - Self::new() - } -} -impl ::std::clone::Clone for __BindgenUnionField { - #[inline] - fn clone(&self) -> Self { - *self - } -} -impl ::std::marker::Copy for __BindgenUnionField {} -impl ::std::fmt::Debug for __BindgenUnionField { - fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - fmt.write_str("__BindgenUnionField") - } -} -impl ::std::hash::Hash for __BindgenUnionField { - fn hash(&self, _state: &mut H) {} -} -impl ::std::cmp::PartialEq for __BindgenUnionField { - fn eq(&self, _other: &__BindgenUnionField) -> bool { - true - } -} -impl ::std::cmp::Eq for __BindgenUnionField {} -pub const TELEMETRY_EVENTS_VERSION: &[u8; 6] = b"3.1.0\0"; -pub const HAVE_EXCEPTIONS: u32 = 0; -pub const WINAPI_FAMILY_PC_APP: u32 = 2; -pub const WINAPI_FAMILY_PHONE_APP: u32 = 3; -pub const WINAPI_FAMILY_SYSTEM: u32 = 4; -pub const WINAPI_FAMILY_SERVER: u32 = 5; -pub const WINAPI_FAMILY_GAMES: u32 = 6; -pub const WINAPI_FAMILY_DESKTOP_APP: u32 = 100; -pub const WINAPI_FAMILY_APP: u32 = 2; -pub const WINAPI_FAMILY: u32 = 100; -pub const _WIN32_WINNT_NT4: u32 = 1024; -pub const _WIN32_WINNT_WIN2K: u32 = 1280; -pub const _WIN32_WINNT_WINXP: u32 = 1281; -pub const _WIN32_WINNT_WS03: u32 = 1282; -pub const _WIN32_WINNT_WIN6: u32 = 1536; -pub const _WIN32_WINNT_VISTA: u32 = 1536; -pub const _WIN32_WINNT_WS08: u32 = 1536; -pub const _WIN32_WINNT_LONGHORN: u32 = 1536; -pub const _WIN32_WINNT_WIN7: u32 = 1537; -pub const _WIN32_WINNT_WIN8: u32 = 1538; -pub const _WIN32_WINNT_WINBLUE: u32 = 1539; -pub const _WIN32_WINNT_WINTHRESHOLD: u32 = 2560; -pub const _WIN32_WINNT_WIN10: u32 = 2560; -pub const _WIN32_IE_IE20: u32 = 512; -pub const _WIN32_IE_IE30: u32 = 768; -pub const _WIN32_IE_IE302: u32 = 770; -pub const _WIN32_IE_IE40: u32 = 1024; -pub const _WIN32_IE_IE401: u32 = 1025; -pub const _WIN32_IE_IE50: u32 = 1280; -pub const _WIN32_IE_IE501: u32 = 1281; -pub const _WIN32_IE_IE55: u32 = 1360; -pub const _WIN32_IE_IE60: u32 = 1536; -pub const _WIN32_IE_IE60SP1: u32 = 1537; -pub const _WIN32_IE_IE60SP2: u32 = 1539; -pub const _WIN32_IE_IE70: u32 = 1792; -pub const _WIN32_IE_IE80: u32 = 2048; -pub const _WIN32_IE_IE90: u32 = 2304; -pub const _WIN32_IE_IE100: u32 = 2560; -pub const _WIN32_IE_IE110: u32 = 2560; -pub const _WIN32_IE_NT4: u32 = 512; -pub const _WIN32_IE_NT4SP1: u32 = 512; -pub const _WIN32_IE_NT4SP2: u32 = 512; -pub const _WIN32_IE_NT4SP3: u32 = 770; -pub const _WIN32_IE_NT4SP4: u32 = 1025; -pub const _WIN32_IE_NT4SP5: u32 = 1025; -pub const _WIN32_IE_NT4SP6: u32 = 1280; -pub const _WIN32_IE_WIN98: u32 = 1025; -pub const _WIN32_IE_WIN98SE: u32 = 1280; -pub const _WIN32_IE_WINME: u32 = 1360; -pub const _WIN32_IE_WIN2K: u32 = 1281; -pub const _WIN32_IE_WIN2KSP1: u32 = 1281; -pub const _WIN32_IE_WIN2KSP2: u32 = 1281; -pub const _WIN32_IE_WIN2KSP3: u32 = 1281; -pub const _WIN32_IE_WIN2KSP4: u32 = 1281; -pub const _WIN32_IE_XP: u32 = 1536; -pub const _WIN32_IE_XPSP1: u32 = 1537; -pub const _WIN32_IE_XPSP2: u32 = 1539; -pub const _WIN32_IE_WS03: u32 = 1538; -pub const _WIN32_IE_WS03SP1: u32 = 1539; -pub const _WIN32_IE_WIN6: u32 = 1792; -pub const _WIN32_IE_LONGHORN: u32 = 1792; -pub const _WIN32_IE_WIN7: u32 = 2048; -pub const _WIN32_IE_WIN8: u32 = 2560; -pub const _WIN32_IE_WINBLUE: u32 = 2560; -pub const _WIN32_IE_WINTHRESHOLD: u32 = 2560; -pub const _WIN32_IE_WIN10: u32 = 2560; -pub const NTDDI_WIN4: u32 = 67108864; -pub const NTDDI_WIN2K: u32 = 83886080; -pub const NTDDI_WIN2KSP1: u32 = 83886336; -pub const NTDDI_WIN2KSP2: u32 = 83886592; -pub const NTDDI_WIN2KSP3: u32 = 83886848; -pub const NTDDI_WIN2KSP4: u32 = 83887104; -pub const NTDDI_WINXP: u32 = 83951616; -pub const NTDDI_WINXPSP1: u32 = 83951872; -pub const NTDDI_WINXPSP2: u32 = 83952128; -pub const NTDDI_WINXPSP3: u32 = 83952384; -pub const NTDDI_WINXPSP4: u32 = 83952640; -pub const NTDDI_WS03: u32 = 84017152; -pub const NTDDI_WS03SP1: u32 = 84017408; -pub const NTDDI_WS03SP2: u32 = 84017664; -pub const NTDDI_WS03SP3: u32 = 84017920; -pub const NTDDI_WS03SP4: u32 = 84018176; -pub const NTDDI_WIN6: u32 = 100663296; -pub const NTDDI_WIN6SP1: u32 = 100663552; -pub const NTDDI_WIN6SP2: u32 = 100663808; -pub const NTDDI_WIN6SP3: u32 = 100664064; -pub const NTDDI_WIN6SP4: u32 = 100664320; -pub const NTDDI_VISTA: u32 = 100663296; -pub const NTDDI_VISTASP1: u32 = 100663552; -pub const NTDDI_VISTASP2: u32 = 100663808; -pub const NTDDI_VISTASP3: u32 = 100664064; -pub const NTDDI_VISTASP4: u32 = 100664320; -pub const NTDDI_LONGHORN: u32 = 100663296; -pub const NTDDI_WS08: u32 = 100663552; -pub const NTDDI_WS08SP2: u32 = 100663808; -pub const NTDDI_WS08SP3: u32 = 100664064; -pub const NTDDI_WS08SP4: u32 = 100664320; -pub const NTDDI_WIN7: u32 = 100728832; -pub const NTDDI_WIN8: u32 = 100794368; -pub const NTDDI_WINBLUE: u32 = 100859904; -pub const NTDDI_WINTHRESHOLD: u32 = 167772160; -pub const NTDDI_WIN10: u32 = 167772160; -pub const NTDDI_WIN10_TH2: u32 = 167772161; -pub const NTDDI_WIN10_RS1: u32 = 167772162; -pub const NTDDI_WIN10_RS2: u32 = 167772163; -pub const NTDDI_WIN10_RS3: u32 = 167772164; -pub const NTDDI_WIN10_RS4: u32 = 167772165; -pub const NTDDI_WIN10_RS5: u32 = 167772166; -pub const NTDDI_WIN10_19H1: u32 = 167772167; -pub const NTDDI_WIN10_VB: u32 = 167772168; -pub const NTDDI_WIN10_MN: u32 = 167772169; -pub const NTDDI_WIN10_FE: u32 = 167772170; -pub const NTDDI_WIN10_CO: u32 = 167772171; -pub const NTDDI_WIN10_NI: u32 = 167772172; -pub const WDK_NTDDI_VERSION: u32 = 167772172; -pub const OSVERSION_MASK: u32 = 4294901760; -pub const SPVERSION_MASK: u32 = 65280; -pub const SUBVERSION_MASK: u32 = 255; -pub const _WIN32_WINNT: u32 = 2560; -pub const NTDDI_VERSION: u32 = 167772172; -pub const WINVER: u32 = 2560; -pub const _WIN32_IE: u32 = 2560; -pub const _VCRT_COMPILER_PREPROCESSOR: u32 = 1; -pub const _SAL_VERSION: u32 = 20; -pub const __SAL_H_VERSION: u32 = 180000000; -pub const _USE_DECLSPECS_FOR_SAL: u32 = 0; -pub const _USE_ATTRIBUTES_FOR_SAL: u32 = 0; -pub const _CRT_PACKING: u32 = 8; -pub const _HAS_EXCEPTIONS: u32 = 1; -pub const _STL_LANG: u32 = 0; -pub const _HAS_CXX17: u32 = 0; -pub const _HAS_CXX20: u32 = 0; -pub const _HAS_CXX23: u32 = 0; -pub const _HAS_NODISCARD: u32 = 0; -pub const EXCEPTION_EXECUTE_HANDLER: u32 = 1; -pub const EXCEPTION_CONTINUE_SEARCH: u32 = 0; -pub const EXCEPTION_CONTINUE_EXECUTION: i32 = -1; -pub const __SAL_H_FULL_VER: u32 = 140050727; -pub const __SPECSTRINGS_STRICT_LEVEL: u32 = 1; -pub const __drv_typeConst: u32 = 0; -pub const __drv_typeCond: u32 = 1; -pub const __drv_typeBitset: u32 = 2; -pub const __drv_typeExpr: u32 = 3; -pub const STRICT: u32 = 1; -pub const MAX_PATH: u32 = 260; -pub const FALSE: u32 = 0; -pub const TRUE: u32 = 1; -pub const _ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE: u32 = 1; -pub const _CRT_BUILD_DESKTOP_APP: u32 = 1; -pub const _ARGMAX: u32 = 100; -pub const _CRT_INT_MAX: u32 = 2147483647; -pub const _CRT_FUNCTIONS_REQUIRED: u32 = 1; -pub const _CRT_HAS_CXX17: u32 = 0; -pub const _CRT_HAS_C11: u32 = 1; -pub const _CRT_INTERNAL_NONSTDC_NAMES: u32 = 1; -pub const __STDC_SECURE_LIB__: u32 = 200411; -pub const __GOT_SECURE_LIB__: u32 = 200411; -pub const __STDC_WANT_SECURE_LIB__: u32 = 1; -pub const _SECURECRT_FILL_BUFFER_PATTERN: u32 = 254; -pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES: u32 = 0; -pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT: u32 = 0; -pub const _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES: u32 = 1; -pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY: u32 = 0; -pub const _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY: u32 = 0; -pub const _UPPER: u32 = 1; -pub const _LOWER: u32 = 2; -pub const _DIGIT: u32 = 4; -pub const _SPACE: u32 = 8; -pub const _PUNCT: u32 = 16; -pub const _CONTROL: u32 = 32; -pub const _BLANK: u32 = 64; -pub const _HEX: u32 = 128; -pub const _LEADBYTE: u32 = 32768; -pub const _ALPHA: u32 = 259; -pub const ANYSIZE_ARRAY: u32 = 1; -pub const DISPATCH_LEVEL: u32 = 2; -pub const APC_LEVEL: u32 = 1; -pub const PASSIVE_LEVEL: u32 = 0; -pub const HIGH_LEVEL: u32 = 15; -pub const MEMORY_ALLOCATION_ALIGNMENT: u32 = 16; -pub const X86_CACHE_ALIGNMENT_SIZE: u32 = 64; -pub const ARM_CACHE_ALIGNMENT_SIZE: u32 = 128; -pub const SYSTEM_CACHE_ALIGNMENT_SIZE: u32 = 64; -pub const PRAGMA_DEPRECATED_DDK: u32 = 0; -pub const UCSCHAR_INVALID_CHARACTER: u32 = 4294967295; -pub const MIN_UCSCHAR: u32 = 0; -pub const MAX_UCSCHAR: u32 = 1114111; -pub const ALL_PROCESSOR_GROUPS: u32 = 65535; -pub const MAXIMUM_PROC_PER_GROUP: u32 = 64; -pub const MAXIMUM_PROCESSORS: u32 = 64; -pub const APPLICATION_ERROR_MASK: u32 = 536870912; -pub const ERROR_SEVERITY_SUCCESS: u32 = 0; -pub const ERROR_SEVERITY_INFORMATIONAL: u32 = 1073741824; -pub const ERROR_SEVERITY_WARNING: u32 = 2147483648; -pub const ERROR_SEVERITY_ERROR: u32 = 3221225472; -pub const MAXLONGLONG: u64 = 9223372036854775807; -pub const UNICODE_STRING_MAX_CHARS: u32 = 32767; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const EDEADLK: u32 = 36; -pub const ENAMETOOLONG: u32 = 38; -pub const ENOLCK: u32 = 39; -pub const ENOSYS: u32 = 40; -pub const ENOTEMPTY: u32 = 41; -pub const EINVAL: u32 = 22; -pub const ERANGE: u32 = 34; -pub const EILSEQ: u32 = 42; -pub const STRUNCATE: u32 = 80; -pub const EDEADLOCK: u32 = 36; -pub const EADDRINUSE: u32 = 100; -pub const EADDRNOTAVAIL: u32 = 101; -pub const EAFNOSUPPORT: u32 = 102; -pub const EALREADY: u32 = 103; -pub const EBADMSG: u32 = 104; -pub const ECANCELED: u32 = 105; -pub const ECONNABORTED: u32 = 106; -pub const ECONNREFUSED: u32 = 107; -pub const ECONNRESET: u32 = 108; -pub const EDESTADDRREQ: u32 = 109; -pub const EHOSTUNREACH: u32 = 110; -pub const EIDRM: u32 = 111; -pub const EINPROGRESS: u32 = 112; -pub const EISCONN: u32 = 113; -pub const ELOOP: u32 = 114; -pub const EMSGSIZE: u32 = 115; -pub const ENETDOWN: u32 = 116; -pub const ENETRESET: u32 = 117; -pub const ENETUNREACH: u32 = 118; -pub const ENOBUFS: u32 = 119; -pub const ENODATA: u32 = 120; -pub const ENOLINK: u32 = 121; -pub const ENOMSG: u32 = 122; -pub const ENOPROTOOPT: u32 = 123; -pub const ENOSR: u32 = 124; -pub const ENOSTR: u32 = 125; -pub const ENOTCONN: u32 = 126; -pub const ENOTRECOVERABLE: u32 = 127; -pub const ENOTSOCK: u32 = 128; -pub const ENOTSUP: u32 = 129; -pub const EOPNOTSUPP: u32 = 130; -pub const EOTHER: u32 = 131; -pub const EOVERFLOW: u32 = 132; -pub const EOWNERDEAD: u32 = 133; -pub const EPROTO: u32 = 134; -pub const EPROTONOSUPPORT: u32 = 135; -pub const EPROTOTYPE: u32 = 136; -pub const ETIME: u32 = 137; -pub const ETIMEDOUT: u32 = 138; -pub const ETXTBSY: u32 = 139; -pub const EWOULDBLOCK: u32 = 140; -pub const _NLSCMPERROR: u32 = 2147483647; -pub const MINCHAR: u32 = 128; -pub const MAXCHAR: u32 = 127; -pub const MINSHORT: u32 = 32768; -pub const MAXSHORT: u32 = 32767; -pub const MINLONG: u32 = 2147483648; -pub const MAXLONG: u32 = 2147483647; -pub const MAXBYTE: u32 = 255; -pub const MAXWORD: u32 = 65535; -pub const MAXDWORD: u32 = 4294967295; -pub const ENCLAVE_SHORT_ID_LENGTH: u32 = 16; -pub const ENCLAVE_LONG_ID_LENGTH: u32 = 32; -pub const VER_SERVER_NT: u32 = 2147483648; -pub const VER_WORKSTATION_NT: u32 = 1073741824; -pub const VER_SUITE_SMALLBUSINESS: u32 = 1; -pub const VER_SUITE_ENTERPRISE: u32 = 2; -pub const VER_SUITE_BACKOFFICE: u32 = 4; -pub const VER_SUITE_COMMUNICATIONS: u32 = 8; -pub const VER_SUITE_TERMINAL: u32 = 16; -pub const VER_SUITE_SMALLBUSINESS_RESTRICTED: u32 = 32; -pub const VER_SUITE_EMBEDDEDNT: u32 = 64; -pub const VER_SUITE_DATACENTER: u32 = 128; -pub const VER_SUITE_SINGLEUSERTS: u32 = 256; -pub const VER_SUITE_PERSONAL: u32 = 512; -pub const VER_SUITE_BLADE: u32 = 1024; -pub const VER_SUITE_EMBEDDED_RESTRICTED: u32 = 2048; -pub const VER_SUITE_SECURITY_APPLIANCE: u32 = 4096; -pub const VER_SUITE_STORAGE_SERVER: u32 = 8192; -pub const VER_SUITE_COMPUTE_SERVER: u32 = 16384; -pub const VER_SUITE_WH_SERVER: u32 = 32768; -pub const VER_SUITE_MULTIUSERTS: u32 = 131072; -pub const PRODUCT_UNDEFINED: u32 = 0; -pub const PRODUCT_ULTIMATE: u32 = 1; -pub const PRODUCT_HOME_BASIC: u32 = 2; -pub const PRODUCT_HOME_PREMIUM: u32 = 3; -pub const PRODUCT_ENTERPRISE: u32 = 4; -pub const PRODUCT_HOME_BASIC_N: u32 = 5; -pub const PRODUCT_BUSINESS: u32 = 6; -pub const PRODUCT_STANDARD_SERVER: u32 = 7; -pub const PRODUCT_DATACENTER_SERVER: u32 = 8; -pub const PRODUCT_SMALLBUSINESS_SERVER: u32 = 9; -pub const PRODUCT_ENTERPRISE_SERVER: u32 = 10; -pub const PRODUCT_STARTER: u32 = 11; -pub const PRODUCT_DATACENTER_SERVER_CORE: u32 = 12; -pub const PRODUCT_STANDARD_SERVER_CORE: u32 = 13; -pub const PRODUCT_ENTERPRISE_SERVER_CORE: u32 = 14; -pub const PRODUCT_ENTERPRISE_SERVER_IA64: u32 = 15; -pub const PRODUCT_BUSINESS_N: u32 = 16; -pub const PRODUCT_WEB_SERVER: u32 = 17; -pub const PRODUCT_CLUSTER_SERVER: u32 = 18; -pub const PRODUCT_HOME_SERVER: u32 = 19; -pub const PRODUCT_STORAGE_EXPRESS_SERVER: u32 = 20; -pub const PRODUCT_STORAGE_STANDARD_SERVER: u32 = 21; -pub const PRODUCT_STORAGE_WORKGROUP_SERVER: u32 = 22; -pub const PRODUCT_STORAGE_ENTERPRISE_SERVER: u32 = 23; -pub const PRODUCT_SERVER_FOR_SMALLBUSINESS: u32 = 24; -pub const PRODUCT_SMALLBUSINESS_SERVER_PREMIUM: u32 = 25; -pub const PRODUCT_HOME_PREMIUM_N: u32 = 26; -pub const PRODUCT_ENTERPRISE_N: u32 = 27; -pub const PRODUCT_ULTIMATE_N: u32 = 28; -pub const PRODUCT_WEB_SERVER_CORE: u32 = 29; -pub const PRODUCT_MEDIUMBUSINESS_SERVER_MANAGEMENT: u32 = 30; -pub const PRODUCT_MEDIUMBUSINESS_SERVER_SECURITY: u32 = 31; -pub const PRODUCT_MEDIUMBUSINESS_SERVER_MESSAGING: u32 = 32; -pub const PRODUCT_SERVER_FOUNDATION: u32 = 33; -pub const PRODUCT_HOME_PREMIUM_SERVER: u32 = 34; -pub const PRODUCT_SERVER_FOR_SMALLBUSINESS_V: u32 = 35; -pub const PRODUCT_STANDARD_SERVER_V: u32 = 36; -pub const PRODUCT_DATACENTER_SERVER_V: u32 = 37; -pub const PRODUCT_ENTERPRISE_SERVER_V: u32 = 38; -pub const PRODUCT_DATACENTER_SERVER_CORE_V: u32 = 39; -pub const PRODUCT_STANDARD_SERVER_CORE_V: u32 = 40; -pub const PRODUCT_ENTERPRISE_SERVER_CORE_V: u32 = 41; -pub const PRODUCT_HYPERV: u32 = 42; -pub const PRODUCT_STORAGE_EXPRESS_SERVER_CORE: u32 = 43; -pub const PRODUCT_STORAGE_STANDARD_SERVER_CORE: u32 = 44; -pub const PRODUCT_STORAGE_WORKGROUP_SERVER_CORE: u32 = 45; -pub const PRODUCT_STORAGE_ENTERPRISE_SERVER_CORE: u32 = 46; -pub const PRODUCT_STARTER_N: u32 = 47; -pub const PRODUCT_PROFESSIONAL: u32 = 48; -pub const PRODUCT_PROFESSIONAL_N: u32 = 49; -pub const PRODUCT_SB_SOLUTION_SERVER: u32 = 50; -pub const PRODUCT_SERVER_FOR_SB_SOLUTIONS: u32 = 51; -pub const PRODUCT_STANDARD_SERVER_SOLUTIONS: u32 = 52; -pub const PRODUCT_STANDARD_SERVER_SOLUTIONS_CORE: u32 = 53; -pub const PRODUCT_SB_SOLUTION_SERVER_EM: u32 = 54; -pub const PRODUCT_SERVER_FOR_SB_SOLUTIONS_EM: u32 = 55; -pub const PRODUCT_SOLUTION_EMBEDDEDSERVER: u32 = 56; -pub const PRODUCT_SOLUTION_EMBEDDEDSERVER_CORE: u32 = 57; -pub const PRODUCT_PROFESSIONAL_EMBEDDED: u32 = 58; -pub const PRODUCT_ESSENTIALBUSINESS_SERVER_MGMT: u32 = 59; -pub const PRODUCT_ESSENTIALBUSINESS_SERVER_ADDL: u32 = 60; -pub const PRODUCT_ESSENTIALBUSINESS_SERVER_MGMTSVC: u32 = 61; -pub const PRODUCT_ESSENTIALBUSINESS_SERVER_ADDLSVC: u32 = 62; -pub const PRODUCT_SMALLBUSINESS_SERVER_PREMIUM_CORE: u32 = 63; -pub const PRODUCT_CLUSTER_SERVER_V: u32 = 64; -pub const PRODUCT_EMBEDDED: u32 = 65; -pub const PRODUCT_STARTER_E: u32 = 66; -pub const PRODUCT_HOME_BASIC_E: u32 = 67; -pub const PRODUCT_HOME_PREMIUM_E: u32 = 68; -pub const PRODUCT_PROFESSIONAL_E: u32 = 69; -pub const PRODUCT_ENTERPRISE_E: u32 = 70; -pub const PRODUCT_ULTIMATE_E: u32 = 71; -pub const PRODUCT_ENTERPRISE_EVALUATION: u32 = 72; -pub const PRODUCT_MULTIPOINT_STANDARD_SERVER: u32 = 76; -pub const PRODUCT_MULTIPOINT_PREMIUM_SERVER: u32 = 77; -pub const PRODUCT_STANDARD_EVALUATION_SERVER: u32 = 79; -pub const PRODUCT_DATACENTER_EVALUATION_SERVER: u32 = 80; -pub const PRODUCT_ENTERPRISE_N_EVALUATION: u32 = 84; -pub const PRODUCT_EMBEDDED_AUTOMOTIVE: u32 = 85; -pub const PRODUCT_EMBEDDED_INDUSTRY_A: u32 = 86; -pub const PRODUCT_THINPC: u32 = 87; -pub const PRODUCT_EMBEDDED_A: u32 = 88; -pub const PRODUCT_EMBEDDED_INDUSTRY: u32 = 89; -pub const PRODUCT_EMBEDDED_E: u32 = 90; -pub const PRODUCT_EMBEDDED_INDUSTRY_E: u32 = 91; -pub const PRODUCT_EMBEDDED_INDUSTRY_A_E: u32 = 92; -pub const PRODUCT_STORAGE_WORKGROUP_EVALUATION_SERVER: u32 = 95; -pub const PRODUCT_STORAGE_STANDARD_EVALUATION_SERVER: u32 = 96; -pub const PRODUCT_CORE_ARM: u32 = 97; -pub const PRODUCT_CORE_N: u32 = 98; -pub const PRODUCT_CORE_COUNTRYSPECIFIC: u32 = 99; -pub const PRODUCT_CORE_SINGLELANGUAGE: u32 = 100; -pub const PRODUCT_CORE: u32 = 101; -pub const PRODUCT_PROFESSIONAL_WMC: u32 = 103; -pub const PRODUCT_EMBEDDED_INDUSTRY_EVAL: u32 = 105; -pub const PRODUCT_EMBEDDED_INDUSTRY_E_EVAL: u32 = 106; -pub const PRODUCT_EMBEDDED_EVAL: u32 = 107; -pub const PRODUCT_EMBEDDED_E_EVAL: u32 = 108; -pub const PRODUCT_NANO_SERVER: u32 = 109; -pub const PRODUCT_CLOUD_STORAGE_SERVER: u32 = 110; -pub const PRODUCT_CORE_CONNECTED: u32 = 111; -pub const PRODUCT_PROFESSIONAL_STUDENT: u32 = 112; -pub const PRODUCT_CORE_CONNECTED_N: u32 = 113; -pub const PRODUCT_PROFESSIONAL_STUDENT_N: u32 = 114; -pub const PRODUCT_CORE_CONNECTED_SINGLELANGUAGE: u32 = 115; -pub const PRODUCT_CORE_CONNECTED_COUNTRYSPECIFIC: u32 = 116; -pub const PRODUCT_CONNECTED_CAR: u32 = 117; -pub const PRODUCT_INDUSTRY_HANDHELD: u32 = 118; -pub const PRODUCT_PPI_PRO: u32 = 119; -pub const PRODUCT_ARM64_SERVER: u32 = 120; -pub const PRODUCT_EDUCATION: u32 = 121; -pub const PRODUCT_EDUCATION_N: u32 = 122; -pub const PRODUCT_IOTUAP: u32 = 123; -pub const PRODUCT_CLOUD_HOST_INFRASTRUCTURE_SERVER: u32 = 124; -pub const PRODUCT_ENTERPRISE_S: u32 = 125; -pub const PRODUCT_ENTERPRISE_S_N: u32 = 126; -pub const PRODUCT_PROFESSIONAL_S: u32 = 127; -pub const PRODUCT_PROFESSIONAL_S_N: u32 = 128; -pub const PRODUCT_ENTERPRISE_S_EVALUATION: u32 = 129; -pub const PRODUCT_ENTERPRISE_S_N_EVALUATION: u32 = 130; -pub const PRODUCT_HOLOGRAPHIC: u32 = 135; -pub const PRODUCT_HOLOGRAPHIC_BUSINESS: u32 = 136; -pub const PRODUCT_PRO_SINGLE_LANGUAGE: u32 = 138; -pub const PRODUCT_PRO_CHINA: u32 = 139; -pub const PRODUCT_ENTERPRISE_SUBSCRIPTION: u32 = 140; -pub const PRODUCT_ENTERPRISE_SUBSCRIPTION_N: u32 = 141; -pub const PRODUCT_DATACENTER_NANO_SERVER: u32 = 143; -pub const PRODUCT_STANDARD_NANO_SERVER: u32 = 144; -pub const PRODUCT_DATACENTER_A_SERVER_CORE: u32 = 145; -pub const PRODUCT_STANDARD_A_SERVER_CORE: u32 = 146; -pub const PRODUCT_DATACENTER_WS_SERVER_CORE: u32 = 147; -pub const PRODUCT_STANDARD_WS_SERVER_CORE: u32 = 148; -pub const PRODUCT_UTILITY_VM: u32 = 149; -pub const PRODUCT_DATACENTER_EVALUATION_SERVER_CORE: u32 = 159; -pub const PRODUCT_STANDARD_EVALUATION_SERVER_CORE: u32 = 160; -pub const PRODUCT_PRO_WORKSTATION: u32 = 161; -pub const PRODUCT_PRO_WORKSTATION_N: u32 = 162; -pub const PRODUCT_PRO_FOR_EDUCATION: u32 = 164; -pub const PRODUCT_PRO_FOR_EDUCATION_N: u32 = 165; -pub const PRODUCT_AZURE_SERVER_CORE: u32 = 168; -pub const PRODUCT_AZURE_NANO_SERVER: u32 = 169; -pub const PRODUCT_ENTERPRISEG: u32 = 171; -pub const PRODUCT_ENTERPRISEGN: u32 = 172; -pub const PRODUCT_SERVERRDSH: u32 = 175; -pub const PRODUCT_CLOUD: u32 = 178; -pub const PRODUCT_CLOUDN: u32 = 179; -pub const PRODUCT_HUBOS: u32 = 180; -pub const PRODUCT_ONECOREUPDATEOS: u32 = 182; -pub const PRODUCT_CLOUDE: u32 = 183; -pub const PRODUCT_IOTOS: u32 = 185; -pub const PRODUCT_CLOUDEN: u32 = 186; -pub const PRODUCT_IOTEDGEOS: u32 = 187; -pub const PRODUCT_IOTENTERPRISE: u32 = 188; -pub const PRODUCT_LITE: u32 = 189; -pub const PRODUCT_IOTENTERPRISES: u32 = 191; -pub const PRODUCT_XBOX_SYSTEMOS: u32 = 192; -pub const PRODUCT_XBOX_GAMEOS: u32 = 194; -pub const PRODUCT_XBOX_ERAOS: u32 = 195; -pub const PRODUCT_XBOX_DURANGOHOSTOS: u32 = 196; -pub const PRODUCT_XBOX_SCARLETTHOSTOS: u32 = 197; -pub const PRODUCT_XBOX_KEYSTONE: u32 = 198; -pub const PRODUCT_AZURE_SERVER_CLOUDHOST: u32 = 199; -pub const PRODUCT_AZURE_SERVER_CLOUDMOS: u32 = 200; -pub const PRODUCT_CLOUDEDITIONN: u32 = 202; -pub const PRODUCT_CLOUDEDITION: u32 = 203; -pub const PRODUCT_AZURESTACKHCI_SERVER_CORE: u32 = 406; -pub const PRODUCT_DATACENTER_SERVER_AZURE_EDITION: u32 = 407; -pub const PRODUCT_DATACENTER_SERVER_CORE_AZURE_EDITION: u32 = 408; -pub const PRODUCT_UNLICENSED: u32 = 2882382797; -pub const LANG_NEUTRAL: u32 = 0; -pub const LANG_INVARIANT: u32 = 127; -pub const LANG_AFRIKAANS: u32 = 54; -pub const LANG_ALBANIAN: u32 = 28; -pub const LANG_ALSATIAN: u32 = 132; -pub const LANG_AMHARIC: u32 = 94; -pub const LANG_ARABIC: u32 = 1; -pub const LANG_ARMENIAN: u32 = 43; -pub const LANG_ASSAMESE: u32 = 77; -pub const LANG_AZERI: u32 = 44; -pub const LANG_AZERBAIJANI: u32 = 44; -pub const LANG_BANGLA: u32 = 69; -pub const LANG_BASHKIR: u32 = 109; -pub const LANG_BASQUE: u32 = 45; -pub const LANG_BELARUSIAN: u32 = 35; -pub const LANG_BENGALI: u32 = 69; -pub const LANG_BRETON: u32 = 126; -pub const LANG_BOSNIAN: u32 = 26; -pub const LANG_BOSNIAN_NEUTRAL: u32 = 30746; -pub const LANG_BULGARIAN: u32 = 2; -pub const LANG_CATALAN: u32 = 3; -pub const LANG_CENTRAL_KURDISH: u32 = 146; -pub const LANG_CHEROKEE: u32 = 92; -pub const LANG_CHINESE: u32 = 4; -pub const LANG_CHINESE_SIMPLIFIED: u32 = 4; -pub const LANG_CHINESE_TRADITIONAL: u32 = 31748; -pub const LANG_CORSICAN: u32 = 131; -pub const LANG_CROATIAN: u32 = 26; -pub const LANG_CZECH: u32 = 5; -pub const LANG_DANISH: u32 = 6; -pub const LANG_DARI: u32 = 140; -pub const LANG_DIVEHI: u32 = 101; -pub const LANG_DUTCH: u32 = 19; -pub const LANG_ENGLISH: u32 = 9; -pub const LANG_ESTONIAN: u32 = 37; -pub const LANG_FAEROESE: u32 = 56; -pub const LANG_FARSI: u32 = 41; -pub const LANG_FILIPINO: u32 = 100; -pub const LANG_FINNISH: u32 = 11; -pub const LANG_FRENCH: u32 = 12; -pub const LANG_FRISIAN: u32 = 98; -pub const LANG_FULAH: u32 = 103; -pub const LANG_GALICIAN: u32 = 86; -pub const LANG_GEORGIAN: u32 = 55; -pub const LANG_GERMAN: u32 = 7; -pub const LANG_GREEK: u32 = 8; -pub const LANG_GREENLANDIC: u32 = 111; -pub const LANG_GUJARATI: u32 = 71; -pub const LANG_HAUSA: u32 = 104; -pub const LANG_HAWAIIAN: u32 = 117; -pub const LANG_HEBREW: u32 = 13; -pub const LANG_HINDI: u32 = 57; -pub const LANG_HUNGARIAN: u32 = 14; -pub const LANG_ICELANDIC: u32 = 15; -pub const LANG_IGBO: u32 = 112; -pub const LANG_INDONESIAN: u32 = 33; -pub const LANG_INUKTITUT: u32 = 93; -pub const LANG_IRISH: u32 = 60; -pub const LANG_ITALIAN: u32 = 16; -pub const LANG_JAPANESE: u32 = 17; -pub const LANG_KANNADA: u32 = 75; -pub const LANG_KASHMIRI: u32 = 96; -pub const LANG_KAZAK: u32 = 63; -pub const LANG_KHMER: u32 = 83; -pub const LANG_KICHE: u32 = 134; -pub const LANG_KINYARWANDA: u32 = 135; -pub const LANG_KONKANI: u32 = 87; -pub const LANG_KOREAN: u32 = 18; -pub const LANG_KYRGYZ: u32 = 64; -pub const LANG_LAO: u32 = 84; -pub const LANG_LATVIAN: u32 = 38; -pub const LANG_LITHUANIAN: u32 = 39; -pub const LANG_LOWER_SORBIAN: u32 = 46; -pub const LANG_LUXEMBOURGISH: u32 = 110; -pub const LANG_MACEDONIAN: u32 = 47; -pub const LANG_MALAY: u32 = 62; -pub const LANG_MALAYALAM: u32 = 76; -pub const LANG_MALTESE: u32 = 58; -pub const LANG_MANIPURI: u32 = 88; -pub const LANG_MAORI: u32 = 129; -pub const LANG_MAPUDUNGUN: u32 = 122; -pub const LANG_MARATHI: u32 = 78; -pub const LANG_MOHAWK: u32 = 124; -pub const LANG_MONGOLIAN: u32 = 80; -pub const LANG_NEPALI: u32 = 97; -pub const LANG_NORWEGIAN: u32 = 20; -pub const LANG_OCCITAN: u32 = 130; -pub const LANG_ODIA: u32 = 72; -pub const LANG_ORIYA: u32 = 72; -pub const LANG_PASHTO: u32 = 99; -pub const LANG_PERSIAN: u32 = 41; -pub const LANG_POLISH: u32 = 21; -pub const LANG_PORTUGUESE: u32 = 22; -pub const LANG_PULAR: u32 = 103; -pub const LANG_PUNJABI: u32 = 70; -pub const LANG_QUECHUA: u32 = 107; -pub const LANG_ROMANIAN: u32 = 24; -pub const LANG_ROMANSH: u32 = 23; -pub const LANG_RUSSIAN: u32 = 25; -pub const LANG_SAKHA: u32 = 133; -pub const LANG_SAMI: u32 = 59; -pub const LANG_SANSKRIT: u32 = 79; -pub const LANG_SCOTTISH_GAELIC: u32 = 145; -pub const LANG_SERBIAN: u32 = 26; -pub const LANG_SERBIAN_NEUTRAL: u32 = 31770; -pub const LANG_SINDHI: u32 = 89; -pub const LANG_SINHALESE: u32 = 91; -pub const LANG_SLOVAK: u32 = 27; -pub const LANG_SLOVENIAN: u32 = 36; -pub const LANG_SOTHO: u32 = 108; -pub const LANG_SPANISH: u32 = 10; -pub const LANG_SWAHILI: u32 = 65; -pub const LANG_SWEDISH: u32 = 29; -pub const LANG_SYRIAC: u32 = 90; -pub const LANG_TAJIK: u32 = 40; -pub const LANG_TAMAZIGHT: u32 = 95; -pub const LANG_TAMIL: u32 = 73; -pub const LANG_TATAR: u32 = 68; -pub const LANG_TELUGU: u32 = 74; -pub const LANG_THAI: u32 = 30; -pub const LANG_TIBETAN: u32 = 81; -pub const LANG_TIGRIGNA: u32 = 115; -pub const LANG_TIGRINYA: u32 = 115; -pub const LANG_TSWANA: u32 = 50; -pub const LANG_TURKISH: u32 = 31; -pub const LANG_TURKMEN: u32 = 66; -pub const LANG_UIGHUR: u32 = 128; -pub const LANG_UKRAINIAN: u32 = 34; -pub const LANG_UPPER_SORBIAN: u32 = 46; -pub const LANG_URDU: u32 = 32; -pub const LANG_UZBEK: u32 = 67; -pub const LANG_VALENCIAN: u32 = 3; -pub const LANG_VIETNAMESE: u32 = 42; -pub const LANG_WELSH: u32 = 82; -pub const LANG_WOLOF: u32 = 136; -pub const LANG_XHOSA: u32 = 52; -pub const LANG_YAKUT: u32 = 133; -pub const LANG_YI: u32 = 120; -pub const LANG_YORUBA: u32 = 106; -pub const LANG_ZULU: u32 = 53; -pub const SUBLANG_NEUTRAL: u32 = 0; -pub const SUBLANG_DEFAULT: u32 = 1; -pub const SUBLANG_SYS_DEFAULT: u32 = 2; -pub const SUBLANG_CUSTOM_DEFAULT: u32 = 3; -pub const SUBLANG_CUSTOM_UNSPECIFIED: u32 = 4; -pub const SUBLANG_UI_CUSTOM_DEFAULT: u32 = 5; -pub const SUBLANG_AFRIKAANS_SOUTH_AFRICA: u32 = 1; -pub const SUBLANG_ALBANIAN_ALBANIA: u32 = 1; -pub const SUBLANG_ALSATIAN_FRANCE: u32 = 1; -pub const SUBLANG_AMHARIC_ETHIOPIA: u32 = 1; -pub const SUBLANG_ARABIC_SAUDI_ARABIA: u32 = 1; -pub const SUBLANG_ARABIC_IRAQ: u32 = 2; -pub const SUBLANG_ARABIC_EGYPT: u32 = 3; -pub const SUBLANG_ARABIC_LIBYA: u32 = 4; -pub const SUBLANG_ARABIC_ALGERIA: u32 = 5; -pub const SUBLANG_ARABIC_MOROCCO: u32 = 6; -pub const SUBLANG_ARABIC_TUNISIA: u32 = 7; -pub const SUBLANG_ARABIC_OMAN: u32 = 8; -pub const SUBLANG_ARABIC_YEMEN: u32 = 9; -pub const SUBLANG_ARABIC_SYRIA: u32 = 10; -pub const SUBLANG_ARABIC_JORDAN: u32 = 11; -pub const SUBLANG_ARABIC_LEBANON: u32 = 12; -pub const SUBLANG_ARABIC_KUWAIT: u32 = 13; -pub const SUBLANG_ARABIC_UAE: u32 = 14; -pub const SUBLANG_ARABIC_BAHRAIN: u32 = 15; -pub const SUBLANG_ARABIC_QATAR: u32 = 16; -pub const SUBLANG_ARMENIAN_ARMENIA: u32 = 1; -pub const SUBLANG_ASSAMESE_INDIA: u32 = 1; -pub const SUBLANG_AZERI_LATIN: u32 = 1; -pub const SUBLANG_AZERI_CYRILLIC: u32 = 2; -pub const SUBLANG_AZERBAIJANI_AZERBAIJAN_LATIN: u32 = 1; -pub const SUBLANG_AZERBAIJANI_AZERBAIJAN_CYRILLIC: u32 = 2; -pub const SUBLANG_BANGLA_INDIA: u32 = 1; -pub const SUBLANG_BANGLA_BANGLADESH: u32 = 2; -pub const SUBLANG_BASHKIR_RUSSIA: u32 = 1; -pub const SUBLANG_BASQUE_BASQUE: u32 = 1; -pub const SUBLANG_BELARUSIAN_BELARUS: u32 = 1; -pub const SUBLANG_BENGALI_INDIA: u32 = 1; -pub const SUBLANG_BENGALI_BANGLADESH: u32 = 2; -pub const SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN: u32 = 5; -pub const SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC: u32 = 8; -pub const SUBLANG_BRETON_FRANCE: u32 = 1; -pub const SUBLANG_BULGARIAN_BULGARIA: u32 = 1; -pub const SUBLANG_CATALAN_CATALAN: u32 = 1; -pub const SUBLANG_CENTRAL_KURDISH_IRAQ: u32 = 1; -pub const SUBLANG_CHEROKEE_CHEROKEE: u32 = 1; -pub const SUBLANG_CHINESE_TRADITIONAL: u32 = 1; -pub const SUBLANG_CHINESE_SIMPLIFIED: u32 = 2; -pub const SUBLANG_CHINESE_HONGKONG: u32 = 3; -pub const SUBLANG_CHINESE_SINGAPORE: u32 = 4; -pub const SUBLANG_CHINESE_MACAU: u32 = 5; -pub const SUBLANG_CORSICAN_FRANCE: u32 = 1; -pub const SUBLANG_CZECH_CZECH_REPUBLIC: u32 = 1; -pub const SUBLANG_CROATIAN_CROATIA: u32 = 1; -pub const SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN: u32 = 4; -pub const SUBLANG_DANISH_DENMARK: u32 = 1; -pub const SUBLANG_DARI_AFGHANISTAN: u32 = 1; -pub const SUBLANG_DIVEHI_MALDIVES: u32 = 1; -pub const SUBLANG_DUTCH: u32 = 1; -pub const SUBLANG_DUTCH_BELGIAN: u32 = 2; -pub const SUBLANG_ENGLISH_US: u32 = 1; -pub const SUBLANG_ENGLISH_UK: u32 = 2; -pub const SUBLANG_ENGLISH_AUS: u32 = 3; -pub const SUBLANG_ENGLISH_CAN: u32 = 4; -pub const SUBLANG_ENGLISH_NZ: u32 = 5; -pub const SUBLANG_ENGLISH_EIRE: u32 = 6; -pub const SUBLANG_ENGLISH_SOUTH_AFRICA: u32 = 7; -pub const SUBLANG_ENGLISH_JAMAICA: u32 = 8; -pub const SUBLANG_ENGLISH_CARIBBEAN: u32 = 9; -pub const SUBLANG_ENGLISH_BELIZE: u32 = 10; -pub const SUBLANG_ENGLISH_TRINIDAD: u32 = 11; -pub const SUBLANG_ENGLISH_ZIMBABWE: u32 = 12; -pub const SUBLANG_ENGLISH_PHILIPPINES: u32 = 13; -pub const SUBLANG_ENGLISH_INDIA: u32 = 16; -pub const SUBLANG_ENGLISH_MALAYSIA: u32 = 17; -pub const SUBLANG_ENGLISH_SINGAPORE: u32 = 18; -pub const SUBLANG_ESTONIAN_ESTONIA: u32 = 1; -pub const SUBLANG_FAEROESE_FAROE_ISLANDS: u32 = 1; -pub const SUBLANG_FILIPINO_PHILIPPINES: u32 = 1; -pub const SUBLANG_FINNISH_FINLAND: u32 = 1; -pub const SUBLANG_FRENCH: u32 = 1; -pub const SUBLANG_FRENCH_BELGIAN: u32 = 2; -pub const SUBLANG_FRENCH_CANADIAN: u32 = 3; -pub const SUBLANG_FRENCH_SWISS: u32 = 4; -pub const SUBLANG_FRENCH_LUXEMBOURG: u32 = 5; -pub const SUBLANG_FRENCH_MONACO: u32 = 6; -pub const SUBLANG_FRISIAN_NETHERLANDS: u32 = 1; -pub const SUBLANG_FULAH_SENEGAL: u32 = 2; -pub const SUBLANG_GALICIAN_GALICIAN: u32 = 1; -pub const SUBLANG_GEORGIAN_GEORGIA: u32 = 1; -pub const SUBLANG_GERMAN: u32 = 1; -pub const SUBLANG_GERMAN_SWISS: u32 = 2; -pub const SUBLANG_GERMAN_AUSTRIAN: u32 = 3; -pub const SUBLANG_GERMAN_LUXEMBOURG: u32 = 4; -pub const SUBLANG_GERMAN_LIECHTENSTEIN: u32 = 5; -pub const SUBLANG_GREEK_GREECE: u32 = 1; -pub const SUBLANG_GREENLANDIC_GREENLAND: u32 = 1; -pub const SUBLANG_GUJARATI_INDIA: u32 = 1; -pub const SUBLANG_HAUSA_NIGERIA_LATIN: u32 = 1; -pub const SUBLANG_HAWAIIAN_US: u32 = 1; -pub const SUBLANG_HEBREW_ISRAEL: u32 = 1; -pub const SUBLANG_HINDI_INDIA: u32 = 1; -pub const SUBLANG_HUNGARIAN_HUNGARY: u32 = 1; -pub const SUBLANG_ICELANDIC_ICELAND: u32 = 1; -pub const SUBLANG_IGBO_NIGERIA: u32 = 1; -pub const SUBLANG_INDONESIAN_INDONESIA: u32 = 1; -pub const SUBLANG_INUKTITUT_CANADA: u32 = 1; -pub const SUBLANG_INUKTITUT_CANADA_LATIN: u32 = 2; -pub const SUBLANG_IRISH_IRELAND: u32 = 2; -pub const SUBLANG_ITALIAN: u32 = 1; -pub const SUBLANG_ITALIAN_SWISS: u32 = 2; -pub const SUBLANG_JAPANESE_JAPAN: u32 = 1; -pub const SUBLANG_KANNADA_INDIA: u32 = 1; -pub const SUBLANG_KASHMIRI_SASIA: u32 = 2; -pub const SUBLANG_KASHMIRI_INDIA: u32 = 2; -pub const SUBLANG_KAZAK_KAZAKHSTAN: u32 = 1; -pub const SUBLANG_KHMER_CAMBODIA: u32 = 1; -pub const SUBLANG_KICHE_GUATEMALA: u32 = 1; -pub const SUBLANG_KINYARWANDA_RWANDA: u32 = 1; -pub const SUBLANG_KONKANI_INDIA: u32 = 1; -pub const SUBLANG_KOREAN: u32 = 1; -pub const SUBLANG_KYRGYZ_KYRGYZSTAN: u32 = 1; -pub const SUBLANG_LAO_LAO: u32 = 1; -pub const SUBLANG_LATVIAN_LATVIA: u32 = 1; -pub const SUBLANG_LITHUANIAN: u32 = 1; -pub const SUBLANG_LOWER_SORBIAN_GERMANY: u32 = 2; -pub const SUBLANG_LUXEMBOURGISH_LUXEMBOURG: u32 = 1; -pub const SUBLANG_MACEDONIAN_MACEDONIA: u32 = 1; -pub const SUBLANG_MALAY_MALAYSIA: u32 = 1; -pub const SUBLANG_MALAY_BRUNEI_DARUSSALAM: u32 = 2; -pub const SUBLANG_MALAYALAM_INDIA: u32 = 1; -pub const SUBLANG_MALTESE_MALTA: u32 = 1; -pub const SUBLANG_MAORI_NEW_ZEALAND: u32 = 1; -pub const SUBLANG_MAPUDUNGUN_CHILE: u32 = 1; -pub const SUBLANG_MARATHI_INDIA: u32 = 1; -pub const SUBLANG_MOHAWK_MOHAWK: u32 = 1; -pub const SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA: u32 = 1; -pub const SUBLANG_MONGOLIAN_PRC: u32 = 2; -pub const SUBLANG_NEPALI_INDIA: u32 = 2; -pub const SUBLANG_NEPALI_NEPAL: u32 = 1; -pub const SUBLANG_NORWEGIAN_BOKMAL: u32 = 1; -pub const SUBLANG_NORWEGIAN_NYNORSK: u32 = 2; -pub const SUBLANG_OCCITAN_FRANCE: u32 = 1; -pub const SUBLANG_ODIA_INDIA: u32 = 1; -pub const SUBLANG_ORIYA_INDIA: u32 = 1; -pub const SUBLANG_PASHTO_AFGHANISTAN: u32 = 1; -pub const SUBLANG_PERSIAN_IRAN: u32 = 1; -pub const SUBLANG_POLISH_POLAND: u32 = 1; -pub const SUBLANG_PORTUGUESE: u32 = 2; -pub const SUBLANG_PORTUGUESE_BRAZILIAN: u32 = 1; -pub const SUBLANG_PULAR_SENEGAL: u32 = 2; -pub const SUBLANG_PUNJABI_INDIA: u32 = 1; -pub const SUBLANG_PUNJABI_PAKISTAN: u32 = 2; -pub const SUBLANG_QUECHUA_BOLIVIA: u32 = 1; -pub const SUBLANG_QUECHUA_ECUADOR: u32 = 2; -pub const SUBLANG_QUECHUA_PERU: u32 = 3; -pub const SUBLANG_ROMANIAN_ROMANIA: u32 = 1; -pub const SUBLANG_ROMANSH_SWITZERLAND: u32 = 1; -pub const SUBLANG_RUSSIAN_RUSSIA: u32 = 1; -pub const SUBLANG_SAKHA_RUSSIA: u32 = 1; -pub const SUBLANG_SAMI_NORTHERN_NORWAY: u32 = 1; -pub const SUBLANG_SAMI_NORTHERN_SWEDEN: u32 = 2; -pub const SUBLANG_SAMI_NORTHERN_FINLAND: u32 = 3; -pub const SUBLANG_SAMI_LULE_NORWAY: u32 = 4; -pub const SUBLANG_SAMI_LULE_SWEDEN: u32 = 5; -pub const SUBLANG_SAMI_SOUTHERN_NORWAY: u32 = 6; -pub const SUBLANG_SAMI_SOUTHERN_SWEDEN: u32 = 7; -pub const SUBLANG_SAMI_SKOLT_FINLAND: u32 = 8; -pub const SUBLANG_SAMI_INARI_FINLAND: u32 = 9; -pub const SUBLANG_SANSKRIT_INDIA: u32 = 1; -pub const SUBLANG_SCOTTISH_GAELIC: u32 = 1; -pub const SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_LATIN: u32 = 6; -pub const SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_CYRILLIC: u32 = 7; -pub const SUBLANG_SERBIAN_MONTENEGRO_LATIN: u32 = 11; -pub const SUBLANG_SERBIAN_MONTENEGRO_CYRILLIC: u32 = 12; -pub const SUBLANG_SERBIAN_SERBIA_LATIN: u32 = 9; -pub const SUBLANG_SERBIAN_SERBIA_CYRILLIC: u32 = 10; -pub const SUBLANG_SERBIAN_CROATIA: u32 = 1; -pub const SUBLANG_SERBIAN_LATIN: u32 = 2; -pub const SUBLANG_SERBIAN_CYRILLIC: u32 = 3; -pub const SUBLANG_SINDHI_INDIA: u32 = 1; -pub const SUBLANG_SINDHI_PAKISTAN: u32 = 2; -pub const SUBLANG_SINDHI_AFGHANISTAN: u32 = 2; -pub const SUBLANG_SINHALESE_SRI_LANKA: u32 = 1; -pub const SUBLANG_SOTHO_NORTHERN_SOUTH_AFRICA: u32 = 1; -pub const SUBLANG_SLOVAK_SLOVAKIA: u32 = 1; -pub const SUBLANG_SLOVENIAN_SLOVENIA: u32 = 1; -pub const SUBLANG_SPANISH: u32 = 1; -pub const SUBLANG_SPANISH_MEXICAN: u32 = 2; -pub const SUBLANG_SPANISH_MODERN: u32 = 3; -pub const SUBLANG_SPANISH_GUATEMALA: u32 = 4; -pub const SUBLANG_SPANISH_COSTA_RICA: u32 = 5; -pub const SUBLANG_SPANISH_PANAMA: u32 = 6; -pub const SUBLANG_SPANISH_DOMINICAN_REPUBLIC: u32 = 7; -pub const SUBLANG_SPANISH_VENEZUELA: u32 = 8; -pub const SUBLANG_SPANISH_COLOMBIA: u32 = 9; -pub const SUBLANG_SPANISH_PERU: u32 = 10; -pub const SUBLANG_SPANISH_ARGENTINA: u32 = 11; -pub const SUBLANG_SPANISH_ECUADOR: u32 = 12; -pub const SUBLANG_SPANISH_CHILE: u32 = 13; -pub const SUBLANG_SPANISH_URUGUAY: u32 = 14; -pub const SUBLANG_SPANISH_PARAGUAY: u32 = 15; -pub const SUBLANG_SPANISH_BOLIVIA: u32 = 16; -pub const SUBLANG_SPANISH_EL_SALVADOR: u32 = 17; -pub const SUBLANG_SPANISH_HONDURAS: u32 = 18; -pub const SUBLANG_SPANISH_NICARAGUA: u32 = 19; -pub const SUBLANG_SPANISH_PUERTO_RICO: u32 = 20; -pub const SUBLANG_SPANISH_US: u32 = 21; -pub const SUBLANG_SWAHILI_KENYA: u32 = 1; -pub const SUBLANG_SWEDISH: u32 = 1; -pub const SUBLANG_SWEDISH_FINLAND: u32 = 2; -pub const SUBLANG_SYRIAC_SYRIA: u32 = 1; -pub const SUBLANG_TAJIK_TAJIKISTAN: u32 = 1; -pub const SUBLANG_TAMAZIGHT_ALGERIA_LATIN: u32 = 2; -pub const SUBLANG_TAMAZIGHT_MOROCCO_TIFINAGH: u32 = 4; -pub const SUBLANG_TAMIL_INDIA: u32 = 1; -pub const SUBLANG_TAMIL_SRI_LANKA: u32 = 2; -pub const SUBLANG_TATAR_RUSSIA: u32 = 1; -pub const SUBLANG_TELUGU_INDIA: u32 = 1; -pub const SUBLANG_THAI_THAILAND: u32 = 1; -pub const SUBLANG_TIBETAN_PRC: u32 = 1; -pub const SUBLANG_TIGRIGNA_ERITREA: u32 = 2; -pub const SUBLANG_TIGRINYA_ERITREA: u32 = 2; -pub const SUBLANG_TIGRINYA_ETHIOPIA: u32 = 1; -pub const SUBLANG_TSWANA_BOTSWANA: u32 = 2; -pub const SUBLANG_TSWANA_SOUTH_AFRICA: u32 = 1; -pub const SUBLANG_TURKISH_TURKEY: u32 = 1; -pub const SUBLANG_TURKMEN_TURKMENISTAN: u32 = 1; -pub const SUBLANG_UIGHUR_PRC: u32 = 1; -pub const SUBLANG_UKRAINIAN_UKRAINE: u32 = 1; -pub const SUBLANG_UPPER_SORBIAN_GERMANY: u32 = 1; -pub const SUBLANG_URDU_PAKISTAN: u32 = 1; -pub const SUBLANG_URDU_INDIA: u32 = 2; -pub const SUBLANG_UZBEK_LATIN: u32 = 1; -pub const SUBLANG_UZBEK_CYRILLIC: u32 = 2; -pub const SUBLANG_VALENCIAN_VALENCIA: u32 = 2; -pub const SUBLANG_VIETNAMESE_VIETNAM: u32 = 1; -pub const SUBLANG_WELSH_UNITED_KINGDOM: u32 = 1; -pub const SUBLANG_WOLOF_SENEGAL: u32 = 1; -pub const SUBLANG_XHOSA_SOUTH_AFRICA: u32 = 1; -pub const SUBLANG_YAKUT_RUSSIA: u32 = 1; -pub const SUBLANG_YI_PRC: u32 = 1; -pub const SUBLANG_YORUBA_NIGERIA: u32 = 1; -pub const SUBLANG_ZULU_SOUTH_AFRICA: u32 = 1; -pub const SORT_DEFAULT: u32 = 0; -pub const SORT_INVARIANT_MATH: u32 = 1; -pub const SORT_JAPANESE_XJIS: u32 = 0; -pub const SORT_JAPANESE_UNICODE: u32 = 1; -pub const SORT_JAPANESE_RADICALSTROKE: u32 = 4; -pub const SORT_CHINESE_BIG5: u32 = 0; -pub const SORT_CHINESE_PRCP: u32 = 0; -pub const SORT_CHINESE_UNICODE: u32 = 1; -pub const SORT_CHINESE_PRC: u32 = 2; -pub const SORT_CHINESE_BOPOMOFO: u32 = 3; -pub const SORT_CHINESE_RADICALSTROKE: u32 = 4; -pub const SORT_KOREAN_KSC: u32 = 0; -pub const SORT_KOREAN_UNICODE: u32 = 1; -pub const SORT_GERMAN_PHONE_BOOK: u32 = 1; -pub const SORT_HUNGARIAN_DEFAULT: u32 = 0; -pub const SORT_HUNGARIAN_TECHNICAL: u32 = 1; -pub const SORT_GEORGIAN_TRADITIONAL: u32 = 0; -pub const SORT_GEORGIAN_MODERN: u32 = 1; -pub const NLS_VALID_LOCALE_MASK: u32 = 1048575; -pub const LOCALE_NAME_MAX_LENGTH: u32 = 85; -pub const LOCALE_TRANSIENT_KEYBOARD1: u32 = 8192; -pub const LOCALE_TRANSIENT_KEYBOARD2: u32 = 9216; -pub const LOCALE_TRANSIENT_KEYBOARD3: u32 = 10240; -pub const LOCALE_TRANSIENT_KEYBOARD4: u32 = 11264; -pub const MAXIMUM_WAIT_OBJECTS: u32 = 64; -pub const MAXIMUM_SUSPEND_COUNT: u32 = 127; -pub const _MM_HINT_T0: u32 = 1; -pub const _MM_HINT_T1: u32 = 2; -pub const _MM_HINT_T2: u32 = 3; -pub const _MM_HINT_NTA: u32 = 0; -pub const PF_TEMPORAL_LEVEL_1: u32 = 1; -pub const PF_TEMPORAL_LEVEL_2: u32 = 2; -pub const PF_TEMPORAL_LEVEL_3: u32 = 3; -pub const PF_NON_TEMPORAL_LEVEL_ALL: u32 = 0; -pub const EXCEPTION_READ_FAULT: u32 = 0; -pub const EXCEPTION_WRITE_FAULT: u32 = 1; -pub const EXCEPTION_EXECUTE_FAULT: u32 = 8; -pub const CONTEXT_AMD64: u32 = 1048576; -pub const CONTEXT_CONTROL: u32 = 1048577; -pub const CONTEXT_INTEGER: u32 = 1048578; -pub const CONTEXT_SEGMENTS: u32 = 1048580; -pub const CONTEXT_FLOATING_POINT: u32 = 1048584; -pub const CONTEXT_DEBUG_REGISTERS: u32 = 1048592; -pub const CONTEXT_FULL: u32 = 1048587; -pub const CONTEXT_ALL: u32 = 1048607; -pub const CONTEXT_XSTATE: u32 = 1048640; -pub const CONTEXT_KERNEL_CET: u32 = 1048704; -pub const CONTEXT_EXCEPTION_ACTIVE: u32 = 134217728; -pub const CONTEXT_SERVICE_ACTIVE: u32 = 268435456; -pub const CONTEXT_EXCEPTION_REQUEST: u32 = 1073741824; -pub const CONTEXT_EXCEPTION_REPORTING: u32 = 2147483648; -pub const CONTEXT_UNWOUND_TO_CALL: u32 = 536870912; -pub const INITIAL_MXCSR: u32 = 8064; -pub const INITIAL_FPCSR: u32 = 639; -pub const RUNTIME_FUNCTION_INDIRECT: u32 = 1; -pub const UNW_FLAG_NHANDLER: u32 = 0; -pub const UNW_FLAG_EHANDLER: u32 = 1; -pub const UNW_FLAG_UHANDLER: u32 = 2; -pub const UNW_FLAG_CHAININFO: u32 = 4; -pub const UNW_FLAG_NO_EPILOGUE: u32 = 2147483648; -pub const UNWIND_CHAIN_LIMIT: u32 = 32; -pub const OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK_EXPORT_NAME: &[u8; 34] = - b"OutOfProcessFunctionTableCallback\0"; -pub const CONTEXT_ARM64: u32 = 4194304; -pub const CONTEXT_ARM64_CONTROL: u32 = 4194305; -pub const CONTEXT_ARM64_INTEGER: u32 = 4194306; -pub const CONTEXT_ARM64_FLOATING_POINT: u32 = 4194308; -pub const CONTEXT_ARM64_DEBUG_REGISTERS: u32 = 4194312; -pub const CONTEXT_ARM64_X18: u32 = 4194320; -pub const CONTEXT_ARM64_FULL: u32 = 4194311; -pub const CONTEXT_ARM64_ALL: u32 = 4194335; -pub const CONTEXT_ARM64_UNWOUND_TO_CALL: u32 = 536870912; -pub const CONTEXT_ARM64_RET_TO_GUEST: u32 = 67108864; -pub const ARM64_MAX_BREAKPOINTS: u32 = 8; -pub const ARM64_MAX_WATCHPOINTS: u32 = 2; -pub const NONVOL_INT_NUMREG_ARM64: u32 = 11; -pub const NONVOL_FP_NUMREG_ARM64: u32 = 8; -pub const WOW64_CONTEXT_i386: u32 = 65536; -pub const WOW64_CONTEXT_i486: u32 = 65536; -pub const WOW64_CONTEXT_CONTROL: u32 = 65537; -pub const WOW64_CONTEXT_INTEGER: u32 = 65538; -pub const WOW64_CONTEXT_SEGMENTS: u32 = 65540; -pub const WOW64_CONTEXT_FLOATING_POINT: u32 = 65544; -pub const WOW64_CONTEXT_DEBUG_REGISTERS: u32 = 65552; -pub const WOW64_CONTEXT_EXTENDED_REGISTERS: u32 = 65568; -pub const WOW64_CONTEXT_FULL: u32 = 65543; -pub const WOW64_CONTEXT_ALL: u32 = 65599; -pub const WOW64_CONTEXT_XSTATE: u32 = 65600; -pub const WOW64_CONTEXT_EXCEPTION_ACTIVE: u32 = 134217728; -pub const WOW64_CONTEXT_SERVICE_ACTIVE: u32 = 268435456; -pub const WOW64_CONTEXT_EXCEPTION_REQUEST: u32 = 1073741824; -pub const WOW64_CONTEXT_EXCEPTION_REPORTING: u32 = 2147483648; -pub const WOW64_SIZE_OF_80387_REGISTERS: u32 = 80; -pub const WOW64_MAXIMUM_SUPPORTED_EXTENSION: u32 = 512; -pub const EXCEPTION_NONCONTINUABLE: u32 = 1; -pub const EXCEPTION_UNWINDING: u32 = 2; -pub const EXCEPTION_EXIT_UNWIND: u32 = 4; -pub const EXCEPTION_STACK_INVALID: u32 = 8; -pub const EXCEPTION_NESTED_CALL: u32 = 16; -pub const EXCEPTION_TARGET_UNWIND: u32 = 32; -pub const EXCEPTION_COLLIDED_UNWIND: u32 = 64; -pub const EXCEPTION_SOFTWARE_ORIGINATE: u32 = 128; -pub const EXCEPTION_UNWIND: u32 = 102; -pub const EXCEPTION_MAXIMUM_PARAMETERS: u32 = 15; -pub const DELETE: u32 = 65536; -pub const READ_CONTROL: u32 = 131072; -pub const WRITE_DAC: u32 = 262144; -pub const WRITE_OWNER: u32 = 524288; -pub const SYNCHRONIZE: u32 = 1048576; -pub const STANDARD_RIGHTS_REQUIRED: u32 = 983040; -pub const STANDARD_RIGHTS_READ: u32 = 131072; -pub const STANDARD_RIGHTS_WRITE: u32 = 131072; -pub const STANDARD_RIGHTS_EXECUTE: u32 = 131072; -pub const STANDARD_RIGHTS_ALL: u32 = 2031616; -pub const SPECIFIC_RIGHTS_ALL: u32 = 65535; -pub const ACCESS_SYSTEM_SECURITY: u32 = 16777216; -pub const MAXIMUM_ALLOWED: u32 = 33554432; -pub const GENERIC_READ: u32 = 2147483648; -pub const GENERIC_WRITE: u32 = 1073741824; -pub const GENERIC_EXECUTE: u32 = 536870912; -pub const GENERIC_ALL: u32 = 268435456; -pub const SID_REVISION: u32 = 1; -pub const SID_MAX_SUB_AUTHORITIES: u32 = 15; -pub const SID_RECOMMENDED_SUB_AUTHORITIES: u32 = 1; -pub const SECURITY_MAX_SID_STRING_CHARACTERS: u32 = 187; -pub const SID_HASH_SIZE: u32 = 32; -pub const SECURITY_NULL_RID: u32 = 0; -pub const SECURITY_WORLD_RID: u32 = 0; -pub const SECURITY_LOCAL_RID: u32 = 0; -pub const SECURITY_LOCAL_LOGON_RID: u32 = 1; -pub const SECURITY_CREATOR_OWNER_RID: u32 = 0; -pub const SECURITY_CREATOR_GROUP_RID: u32 = 1; -pub const SECURITY_CREATOR_OWNER_SERVER_RID: u32 = 2; -pub const SECURITY_CREATOR_GROUP_SERVER_RID: u32 = 3; -pub const SECURITY_CREATOR_OWNER_RIGHTS_RID: u32 = 4; -pub const SECURITY_DIALUP_RID: u32 = 1; -pub const SECURITY_NETWORK_RID: u32 = 2; -pub const SECURITY_BATCH_RID: u32 = 3; -pub const SECURITY_INTERACTIVE_RID: u32 = 4; -pub const SECURITY_LOGON_IDS_RID: u32 = 5; -pub const SECURITY_LOGON_IDS_RID_COUNT: u32 = 3; -pub const SECURITY_SERVICE_RID: u32 = 6; -pub const SECURITY_ANONYMOUS_LOGON_RID: u32 = 7; -pub const SECURITY_PROXY_RID: u32 = 8; -pub const SECURITY_ENTERPRISE_CONTROLLERS_RID: u32 = 9; -pub const SECURITY_SERVER_LOGON_RID: u32 = 9; -pub const SECURITY_PRINCIPAL_SELF_RID: u32 = 10; -pub const SECURITY_AUTHENTICATED_USER_RID: u32 = 11; -pub const SECURITY_RESTRICTED_CODE_RID: u32 = 12; -pub const SECURITY_TERMINAL_SERVER_RID: u32 = 13; -pub const SECURITY_REMOTE_LOGON_RID: u32 = 14; -pub const SECURITY_THIS_ORGANIZATION_RID: u32 = 15; -pub const SECURITY_IUSER_RID: u32 = 17; -pub const SECURITY_LOCAL_SYSTEM_RID: u32 = 18; -pub const SECURITY_LOCAL_SERVICE_RID: u32 = 19; -pub const SECURITY_NETWORK_SERVICE_RID: u32 = 20; -pub const SECURITY_NT_NON_UNIQUE: u32 = 21; -pub const SECURITY_NT_NON_UNIQUE_SUB_AUTH_COUNT: u32 = 3; -pub const SECURITY_ENTERPRISE_READONLY_CONTROLLERS_RID: u32 = 22; -pub const SECURITY_BUILTIN_DOMAIN_RID: u32 = 32; -pub const SECURITY_WRITE_RESTRICTED_CODE_RID: u32 = 33; -pub const SECURITY_PACKAGE_BASE_RID: u32 = 64; -pub const SECURITY_PACKAGE_RID_COUNT: u32 = 2; -pub const SECURITY_PACKAGE_NTLM_RID: u32 = 10; -pub const SECURITY_PACKAGE_SCHANNEL_RID: u32 = 14; -pub const SECURITY_PACKAGE_DIGEST_RID: u32 = 21; -pub const SECURITY_CRED_TYPE_BASE_RID: u32 = 65; -pub const SECURITY_CRED_TYPE_RID_COUNT: u32 = 2; -pub const SECURITY_CRED_TYPE_THIS_ORG_CERT_RID: u32 = 1; -pub const SECURITY_MIN_BASE_RID: u32 = 80; -pub const SECURITY_SERVICE_ID_BASE_RID: u32 = 80; -pub const SECURITY_SERVICE_ID_RID_COUNT: u32 = 6; -pub const SECURITY_RESERVED_ID_BASE_RID: u32 = 81; -pub const SECURITY_APPPOOL_ID_BASE_RID: u32 = 82; -pub const SECURITY_APPPOOL_ID_RID_COUNT: u32 = 6; -pub const SECURITY_VIRTUALSERVER_ID_BASE_RID: u32 = 83; -pub const SECURITY_VIRTUALSERVER_ID_RID_COUNT: u32 = 6; -pub const SECURITY_USERMODEDRIVERHOST_ID_BASE_RID: u32 = 84; -pub const SECURITY_USERMODEDRIVERHOST_ID_RID_COUNT: u32 = 6; -pub const SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_BASE_RID: u32 = 85; -pub const SECURITY_CLOUD_INFRASTRUCTURE_SERVICES_ID_RID_COUNT: u32 = 6; -pub const SECURITY_WMIHOST_ID_BASE_RID: u32 = 86; -pub const SECURITY_WMIHOST_ID_RID_COUNT: u32 = 6; -pub const SECURITY_TASK_ID_BASE_RID: u32 = 87; -pub const SECURITY_NFS_ID_BASE_RID: u32 = 88; -pub const SECURITY_COM_ID_BASE_RID: u32 = 89; -pub const SECURITY_WINDOW_MANAGER_BASE_RID: u32 = 90; -pub const SECURITY_RDV_GFX_BASE_RID: u32 = 91; -pub const SECURITY_DASHOST_ID_BASE_RID: u32 = 92; -pub const SECURITY_DASHOST_ID_RID_COUNT: u32 = 6; -pub const SECURITY_USERMANAGER_ID_BASE_RID: u32 = 93; -pub const SECURITY_USERMANAGER_ID_RID_COUNT: u32 = 6; -pub const SECURITY_WINRM_ID_BASE_RID: u32 = 94; -pub const SECURITY_WINRM_ID_RID_COUNT: u32 = 6; -pub const SECURITY_CCG_ID_BASE_RID: u32 = 95; -pub const SECURITY_UMFD_BASE_RID: u32 = 96; -pub const SECURITY_VIRTUALACCOUNT_ID_RID_COUNT: u32 = 6; -pub const SECURITY_MAX_BASE_RID: u32 = 111; -pub const SECURITY_MAX_ALWAYS_FILTERED: u32 = 999; -pub const SECURITY_MIN_NEVER_FILTERED: u32 = 1000; -pub const SECURITY_OTHER_ORGANIZATION_RID: u32 = 1000; -pub const SECURITY_WINDOWSMOBILE_ID_BASE_RID: u32 = 112; -pub const SECURITY_INSTALLER_GROUP_CAPABILITY_BASE: u32 = 32; -pub const SECURITY_INSTALLER_GROUP_CAPABILITY_RID_COUNT: u32 = 9; -pub const SECURITY_INSTALLER_CAPABILITY_RID_COUNT: u32 = 10; -pub const SECURITY_LOCAL_ACCOUNT_RID: u32 = 113; -pub const SECURITY_LOCAL_ACCOUNT_AND_ADMIN_RID: u32 = 114; -pub const DOMAIN_GROUP_RID_AUTHORIZATION_DATA_IS_COMPOUNDED: u32 = 496; -pub const DOMAIN_GROUP_RID_AUTHORIZATION_DATA_CONTAINS_CLAIMS: u32 = 497; -pub const DOMAIN_GROUP_RID_ENTERPRISE_READONLY_DOMAIN_CONTROLLERS: u32 = 498; -pub const FOREST_USER_RID_MAX: u32 = 499; -pub const DOMAIN_USER_RID_ADMIN: u32 = 500; -pub const DOMAIN_USER_RID_GUEST: u32 = 501; -pub const DOMAIN_USER_RID_KRBTGT: u32 = 502; -pub const DOMAIN_USER_RID_DEFAULT_ACCOUNT: u32 = 503; -pub const DOMAIN_USER_RID_WDAG_ACCOUNT: u32 = 504; -pub const DOMAIN_USER_RID_MAX: u32 = 999; -pub const DOMAIN_GROUP_RID_ADMINS: u32 = 512; -pub const DOMAIN_GROUP_RID_USERS: u32 = 513; -pub const DOMAIN_GROUP_RID_GUESTS: u32 = 514; -pub const DOMAIN_GROUP_RID_COMPUTERS: u32 = 515; -pub const DOMAIN_GROUP_RID_CONTROLLERS: u32 = 516; -pub const DOMAIN_GROUP_RID_CERT_ADMINS: u32 = 517; -pub const DOMAIN_GROUP_RID_SCHEMA_ADMINS: u32 = 518; -pub const DOMAIN_GROUP_RID_ENTERPRISE_ADMINS: u32 = 519; -pub const DOMAIN_GROUP_RID_POLICY_ADMINS: u32 = 520; -pub const DOMAIN_GROUP_RID_READONLY_CONTROLLERS: u32 = 521; -pub const DOMAIN_GROUP_RID_CLONEABLE_CONTROLLERS: u32 = 522; -pub const DOMAIN_GROUP_RID_CDC_RESERVED: u32 = 524; -pub const DOMAIN_GROUP_RID_PROTECTED_USERS: u32 = 525; -pub const DOMAIN_GROUP_RID_KEY_ADMINS: u32 = 526; -pub const DOMAIN_GROUP_RID_ENTERPRISE_KEY_ADMINS: u32 = 527; -pub const DOMAIN_ALIAS_RID_ADMINS: u32 = 544; -pub const DOMAIN_ALIAS_RID_USERS: u32 = 545; -pub const DOMAIN_ALIAS_RID_GUESTS: u32 = 546; -pub const DOMAIN_ALIAS_RID_POWER_USERS: u32 = 547; -pub const DOMAIN_ALIAS_RID_ACCOUNT_OPS: u32 = 548; -pub const DOMAIN_ALIAS_RID_SYSTEM_OPS: u32 = 549; -pub const DOMAIN_ALIAS_RID_PRINT_OPS: u32 = 550; -pub const DOMAIN_ALIAS_RID_BACKUP_OPS: u32 = 551; -pub const DOMAIN_ALIAS_RID_REPLICATOR: u32 = 552; -pub const DOMAIN_ALIAS_RID_RAS_SERVERS: u32 = 553; -pub const DOMAIN_ALIAS_RID_PREW2KCOMPACCESS: u32 = 554; -pub const DOMAIN_ALIAS_RID_REMOTE_DESKTOP_USERS: u32 = 555; -pub const DOMAIN_ALIAS_RID_NETWORK_CONFIGURATION_OPS: u32 = 556; -pub const DOMAIN_ALIAS_RID_INCOMING_FOREST_TRUST_BUILDERS: u32 = 557; -pub const DOMAIN_ALIAS_RID_MONITORING_USERS: u32 = 558; -pub const DOMAIN_ALIAS_RID_LOGGING_USERS: u32 = 559; -pub const DOMAIN_ALIAS_RID_AUTHORIZATIONACCESS: u32 = 560; -pub const DOMAIN_ALIAS_RID_TS_LICENSE_SERVERS: u32 = 561; -pub const DOMAIN_ALIAS_RID_DCOM_USERS: u32 = 562; -pub const DOMAIN_ALIAS_RID_IUSERS: u32 = 568; -pub const DOMAIN_ALIAS_RID_CRYPTO_OPERATORS: u32 = 569; -pub const DOMAIN_ALIAS_RID_CACHEABLE_PRINCIPALS_GROUP: u32 = 571; -pub const DOMAIN_ALIAS_RID_NON_CACHEABLE_PRINCIPALS_GROUP: u32 = 572; -pub const DOMAIN_ALIAS_RID_EVENT_LOG_READERS_GROUP: u32 = 573; -pub const DOMAIN_ALIAS_RID_CERTSVC_DCOM_ACCESS_GROUP: u32 = 574; -pub const DOMAIN_ALIAS_RID_RDS_REMOTE_ACCESS_SERVERS: u32 = 575; -pub const DOMAIN_ALIAS_RID_RDS_ENDPOINT_SERVERS: u32 = 576; -pub const DOMAIN_ALIAS_RID_RDS_MANAGEMENT_SERVERS: u32 = 577; -pub const DOMAIN_ALIAS_RID_HYPER_V_ADMINS: u32 = 578; -pub const DOMAIN_ALIAS_RID_ACCESS_CONTROL_ASSISTANCE_OPS: u32 = 579; -pub const DOMAIN_ALIAS_RID_REMOTE_MANAGEMENT_USERS: u32 = 580; -pub const DOMAIN_ALIAS_RID_DEFAULT_ACCOUNT: u32 = 581; -pub const DOMAIN_ALIAS_RID_STORAGE_REPLICA_ADMINS: u32 = 582; -pub const DOMAIN_ALIAS_RID_DEVICE_OWNERS: u32 = 583; -pub const SECURITY_APP_PACKAGE_BASE_RID: u32 = 2; -pub const SECURITY_BUILTIN_APP_PACKAGE_RID_COUNT: u32 = 2; -pub const SECURITY_APP_PACKAGE_RID_COUNT: u32 = 8; -pub const SECURITY_CAPABILITY_BASE_RID: u32 = 3; -pub const SECURITY_CAPABILITY_APP_RID: u32 = 1024; -pub const SECURITY_CAPABILITY_APP_SILO_RID: u32 = 65536; -pub const SECURITY_BUILTIN_CAPABILITY_RID_COUNT: u32 = 2; -pub const SECURITY_CAPABILITY_RID_COUNT: u32 = 5; -pub const SECURITY_PARENT_PACKAGE_RID_COUNT: u32 = 8; -pub const SECURITY_CHILD_PACKAGE_RID_COUNT: u32 = 12; -pub const SECURITY_BUILTIN_PACKAGE_ANY_PACKAGE: u32 = 1; -pub const SECURITY_BUILTIN_PACKAGE_ANY_RESTRICTED_PACKAGE: u32 = 2; -pub const SECURITY_CAPABILITY_INTERNET_CLIENT: u32 = 1; -pub const SECURITY_CAPABILITY_INTERNET_CLIENT_SERVER: u32 = 2; -pub const SECURITY_CAPABILITY_PRIVATE_NETWORK_CLIENT_SERVER: u32 = 3; -pub const SECURITY_CAPABILITY_PICTURES_LIBRARY: u32 = 4; -pub const SECURITY_CAPABILITY_VIDEOS_LIBRARY: u32 = 5; -pub const SECURITY_CAPABILITY_MUSIC_LIBRARY: u32 = 6; -pub const SECURITY_CAPABILITY_DOCUMENTS_LIBRARY: u32 = 7; -pub const SECURITY_CAPABILITY_ENTERPRISE_AUTHENTICATION: u32 = 8; -pub const SECURITY_CAPABILITY_SHARED_USER_CERTIFICATES: u32 = 9; -pub const SECURITY_CAPABILITY_REMOVABLE_STORAGE: u32 = 10; -pub const SECURITY_CAPABILITY_APPOINTMENTS: u32 = 11; -pub const SECURITY_CAPABILITY_CONTACTS: u32 = 12; -pub const SECURITY_CAPABILITY_INTERNET_EXPLORER: u32 = 4096; -pub const SECURITY_MANDATORY_UNTRUSTED_RID: u32 = 0; -pub const SECURITY_MANDATORY_LOW_RID: u32 = 4096; -pub const SECURITY_MANDATORY_MEDIUM_RID: u32 = 8192; -pub const SECURITY_MANDATORY_MEDIUM_PLUS_RID: u32 = 8448; -pub const SECURITY_MANDATORY_HIGH_RID: u32 = 12288; -pub const SECURITY_MANDATORY_SYSTEM_RID: u32 = 16384; -pub const SECURITY_MANDATORY_PROTECTED_PROCESS_RID: u32 = 20480; -pub const SECURITY_MANDATORY_MAXIMUM_USER_RID: u32 = 16384; -pub const SECURITY_AUTHENTICATION_AUTHORITY_RID_COUNT: u32 = 1; -pub const SECURITY_AUTHENTICATION_AUTHORITY_ASSERTED_RID: u32 = 1; -pub const SECURITY_AUTHENTICATION_SERVICE_ASSERTED_RID: u32 = 2; -pub const SECURITY_AUTHENTICATION_FRESH_KEY_AUTH_RID: u32 = 3; -pub const SECURITY_AUTHENTICATION_KEY_TRUST_RID: u32 = 4; -pub const SECURITY_AUTHENTICATION_KEY_PROPERTY_MFA_RID: u32 = 5; -pub const SECURITY_AUTHENTICATION_KEY_PROPERTY_ATTESTATION_RID: u32 = 6; -pub const SECURITY_PROCESS_TRUST_AUTHORITY_RID_COUNT: u32 = 2; -pub const SECURITY_PROCESS_PROTECTION_TYPE_FULL_RID: u32 = 1024; -pub const SECURITY_PROCESS_PROTECTION_TYPE_LITE_RID: u32 = 512; -pub const SECURITY_PROCESS_PROTECTION_TYPE_NONE_RID: u32 = 0; -pub const SECURITY_PROCESS_PROTECTION_LEVEL_WINTCB_RID: u32 = 8192; -pub const SECURITY_PROCESS_PROTECTION_LEVEL_WINDOWS_RID: u32 = 4096; -pub const SECURITY_PROCESS_PROTECTION_LEVEL_APP_RID: u32 = 2048; -pub const SECURITY_PROCESS_PROTECTION_LEVEL_ANTIMALWARE_RID: u32 = 1536; -pub const SECURITY_PROCESS_PROTECTION_LEVEL_AUTHENTICODE_RID: u32 = 1024; -pub const SECURITY_PROCESS_PROTECTION_LEVEL_NONE_RID: u32 = 0; -pub const SECURITY_TRUSTED_INSTALLER_RID1: u32 = 956008885; -pub const SECURITY_TRUSTED_INSTALLER_RID2: u32 = 3418522649; -pub const SECURITY_TRUSTED_INSTALLER_RID3: u32 = 1831038044; -pub const SECURITY_TRUSTED_INSTALLER_RID4: u32 = 1853292631; -pub const SECURITY_TRUSTED_INSTALLER_RID5: u32 = 2271478464; -pub const SE_GROUP_MANDATORY: u32 = 1; -pub const SE_GROUP_ENABLED_BY_DEFAULT: u32 = 2; -pub const SE_GROUP_ENABLED: u32 = 4; -pub const SE_GROUP_OWNER: u32 = 8; -pub const SE_GROUP_USE_FOR_DENY_ONLY: u32 = 16; -pub const SE_GROUP_INTEGRITY: u32 = 32; -pub const SE_GROUP_INTEGRITY_ENABLED: u32 = 64; -pub const SE_GROUP_LOGON_ID: u32 = 3221225472; -pub const SE_GROUP_RESOURCE: u32 = 536870912; -pub const SE_GROUP_VALID_ATTRIBUTES: u32 = 3758096511; -pub const ACL_REVISION: u32 = 2; -pub const ACL_REVISION_DS: u32 = 4; -pub const ACL_REVISION1: u32 = 1; -pub const ACL_REVISION2: u32 = 2; -pub const ACL_REVISION3: u32 = 3; -pub const ACL_REVISION4: u32 = 4; -pub const MAX_ACL_REVISION: u32 = 4; -pub const ACCESS_MIN_MS_ACE_TYPE: u32 = 0; -pub const ACCESS_ALLOWED_ACE_TYPE: u32 = 0; -pub const ACCESS_DENIED_ACE_TYPE: u32 = 1; -pub const SYSTEM_AUDIT_ACE_TYPE: u32 = 2; -pub const SYSTEM_ALARM_ACE_TYPE: u32 = 3; -pub const ACCESS_MAX_MS_V2_ACE_TYPE: u32 = 3; -pub const ACCESS_ALLOWED_COMPOUND_ACE_TYPE: u32 = 4; -pub const ACCESS_MAX_MS_V3_ACE_TYPE: u32 = 4; -pub const ACCESS_MIN_MS_OBJECT_ACE_TYPE: u32 = 5; -pub const ACCESS_ALLOWED_OBJECT_ACE_TYPE: u32 = 5; -pub const ACCESS_DENIED_OBJECT_ACE_TYPE: u32 = 6; -pub const SYSTEM_AUDIT_OBJECT_ACE_TYPE: u32 = 7; -pub const SYSTEM_ALARM_OBJECT_ACE_TYPE: u32 = 8; -pub const ACCESS_MAX_MS_OBJECT_ACE_TYPE: u32 = 8; -pub const ACCESS_MAX_MS_V4_ACE_TYPE: u32 = 8; -pub const ACCESS_MAX_MS_ACE_TYPE: u32 = 8; -pub const ACCESS_ALLOWED_CALLBACK_ACE_TYPE: u32 = 9; -pub const ACCESS_DENIED_CALLBACK_ACE_TYPE: u32 = 10; -pub const ACCESS_ALLOWED_CALLBACK_OBJECT_ACE_TYPE: u32 = 11; -pub const ACCESS_DENIED_CALLBACK_OBJECT_ACE_TYPE: u32 = 12; -pub const SYSTEM_AUDIT_CALLBACK_ACE_TYPE: u32 = 13; -pub const SYSTEM_ALARM_CALLBACK_ACE_TYPE: u32 = 14; -pub const SYSTEM_AUDIT_CALLBACK_OBJECT_ACE_TYPE: u32 = 15; -pub const SYSTEM_ALARM_CALLBACK_OBJECT_ACE_TYPE: u32 = 16; -pub const SYSTEM_MANDATORY_LABEL_ACE_TYPE: u32 = 17; -pub const SYSTEM_RESOURCE_ATTRIBUTE_ACE_TYPE: u32 = 18; -pub const SYSTEM_SCOPED_POLICY_ID_ACE_TYPE: u32 = 19; -pub const SYSTEM_PROCESS_TRUST_LABEL_ACE_TYPE: u32 = 20; -pub const SYSTEM_ACCESS_FILTER_ACE_TYPE: u32 = 21; -pub const ACCESS_MAX_MS_V5_ACE_TYPE: u32 = 21; -pub const OBJECT_INHERIT_ACE: u32 = 1; -pub const CONTAINER_INHERIT_ACE: u32 = 2; -pub const NO_PROPAGATE_INHERIT_ACE: u32 = 4; -pub const INHERIT_ONLY_ACE: u32 = 8; -pub const INHERITED_ACE: u32 = 16; -pub const VALID_INHERIT_FLAGS: u32 = 31; -pub const CRITICAL_ACE_FLAG: u32 = 32; -pub const SUCCESSFUL_ACCESS_ACE_FLAG: u32 = 64; -pub const FAILED_ACCESS_ACE_FLAG: u32 = 128; -pub const TRUST_PROTECTED_FILTER_ACE_FLAG: u32 = 64; -pub const SYSTEM_MANDATORY_LABEL_NO_WRITE_UP: u32 = 1; -pub const SYSTEM_MANDATORY_LABEL_NO_READ_UP: u32 = 2; -pub const SYSTEM_MANDATORY_LABEL_NO_EXECUTE_UP: u32 = 4; -pub const SYSTEM_MANDATORY_LABEL_VALID_MASK: u32 = 7; -pub const SYSTEM_PROCESS_TRUST_LABEL_VALID_MASK: u32 = 16777215; -pub const SYSTEM_PROCESS_TRUST_NOCONSTRAINT_MASK: u32 = 4294967295; -pub const SYSTEM_ACCESS_FILTER_VALID_MASK: u32 = 16777215; -pub const SYSTEM_ACCESS_FILTER_NOCONSTRAINT_MASK: u32 = 4294967295; -pub const ACE_OBJECT_TYPE_PRESENT: u32 = 1; -pub const ACE_INHERITED_OBJECT_TYPE_PRESENT: u32 = 2; -pub const SECURITY_DESCRIPTOR_REVISION: u32 = 1; -pub const SECURITY_DESCRIPTOR_REVISION1: u32 = 1; -pub const SE_OWNER_DEFAULTED: u32 = 1; -pub const SE_GROUP_DEFAULTED: u32 = 2; -pub const SE_DACL_PRESENT: u32 = 4; -pub const SE_DACL_DEFAULTED: u32 = 8; -pub const SE_SACL_PRESENT: u32 = 16; -pub const SE_SACL_DEFAULTED: u32 = 32; -pub const SE_DACL_AUTO_INHERIT_REQ: u32 = 256; -pub const SE_SACL_AUTO_INHERIT_REQ: u32 = 512; -pub const SE_DACL_AUTO_INHERITED: u32 = 1024; -pub const SE_SACL_AUTO_INHERITED: u32 = 2048; -pub const SE_DACL_PROTECTED: u32 = 4096; -pub const SE_SACL_PROTECTED: u32 = 8192; -pub const SE_RM_CONTROL_VALID: u32 = 16384; -pub const SE_SELF_RELATIVE: u32 = 32768; -pub const ACCESS_OBJECT_GUID: u32 = 0; -pub const ACCESS_PROPERTY_SET_GUID: u32 = 1; -pub const ACCESS_PROPERTY_GUID: u32 = 2; -pub const ACCESS_MAX_LEVEL: u32 = 4; -pub const AUDIT_ALLOW_NO_PRIVILEGE: u32 = 1; -pub const ACCESS_DS_SOURCE_A: &[u8; 3] = b"DS\0"; -pub const ACCESS_DS_SOURCE_W: &[u8; 3] = b"DS\0"; -pub const ACCESS_DS_OBJECT_TYPE_NAME_A: &[u8; 25] = b"Directory Service Object\0"; -pub const ACCESS_DS_OBJECT_TYPE_NAME_W: &[u8; 25] = b"Directory Service Object\0"; -pub const SE_PRIVILEGE_ENABLED_BY_DEFAULT: u32 = 1; -pub const SE_PRIVILEGE_ENABLED: u32 = 2; -pub const SE_PRIVILEGE_REMOVED: u32 = 4; -pub const SE_PRIVILEGE_USED_FOR_ACCESS: u32 = 2147483648; -pub const SE_PRIVILEGE_VALID_ATTRIBUTES: u32 = 2147483655; -pub const PRIVILEGE_SET_ALL_NECESSARY: u32 = 1; -pub const ACCESS_REASON_TYPE_MASK: u32 = 16711680; -pub const ACCESS_REASON_DATA_MASK: u32 = 65535; -pub const ACCESS_REASON_STAGING_MASK: u32 = 2147483648; -pub const ACCESS_REASON_EXDATA_MASK: u32 = 2130706432; -pub const SE_SECURITY_DESCRIPTOR_FLAG_NO_OWNER_ACE: u32 = 1; -pub const SE_SECURITY_DESCRIPTOR_FLAG_NO_LABEL_ACE: u32 = 2; -pub const SE_SECURITY_DESCRIPTOR_FLAG_NO_ACCESS_FILTER_ACE: u32 = 4; -pub const SE_SECURITY_DESCRIPTOR_VALID_FLAGS: u32 = 7; -pub const SE_ACCESS_CHECK_FLAG_NO_LEARNING_MODE_LOGGING: u32 = 8; -pub const SE_ACCESS_CHECK_VALID_FLAGS: u32 = 8; -pub const SE_ACTIVATE_AS_USER_CAPABILITY: &[u8; 15] = b"activateAsUser\0"; -pub const SE_CONSTRAINED_IMPERSONATION_CAPABILITY: &[u8; 25] = b"constrainedImpersonation\0"; -pub const SE_SESSION_IMPERSONATION_CAPABILITY: &[u8; 21] = b"sessionImpersonation\0"; -pub const SE_MUMA_CAPABILITY: &[u8; 5] = b"muma\0"; -pub const SE_DEVELOPMENT_MODE_NETWORK_CAPABILITY: &[u8; 23] = b"developmentModeNetwork\0"; -pub const SE_LEARNING_MODE_LOGGING_CAPABILITY: &[u8; 20] = b"learningModeLogging\0"; -pub const SE_PERMISSIVE_LEARNING_MODE_CAPABILITY: &[u8; 23] = b"permissiveLearningMode\0"; -pub const SE_APP_SILO_VOLUME_ROOT_MINIMAL_CAPABILITY: &[u8; 32] = - b"isolatedWin32-volumeRootMinimal\0"; -pub const SE_APP_SILO_PROFILES_ROOT_MINIMAL_CAPABILITY: &[u8; 34] = - b"isolatedWin32-profilesRootMinimal\0"; -pub const SE_APP_SILO_USER_PROFILE_MINIMAL_CAPABILITY: &[u8; 33] = - b"isolatedWin32-userProfileMinimal\0"; -pub const SE_APP_SILO_PRINT_CAPABILITY: &[u8; 20] = b"isolatedWin32-print\0"; -pub const TOKEN_ASSIGN_PRIMARY: u32 = 1; -pub const TOKEN_DUPLICATE: u32 = 2; -pub const TOKEN_IMPERSONATE: u32 = 4; -pub const TOKEN_QUERY: u32 = 8; -pub const TOKEN_QUERY_SOURCE: u32 = 16; -pub const TOKEN_ADJUST_PRIVILEGES: u32 = 32; -pub const TOKEN_ADJUST_GROUPS: u32 = 64; -pub const TOKEN_ADJUST_DEFAULT: u32 = 128; -pub const TOKEN_ADJUST_SESSIONID: u32 = 256; -pub const TOKEN_ALL_ACCESS_P: u32 = 983295; -pub const TOKEN_ALL_ACCESS: u32 = 983551; -pub const TOKEN_READ: u32 = 131080; -pub const TOKEN_WRITE: u32 = 131296; -pub const TOKEN_EXECUTE: u32 = 131072; -pub const TOKEN_TRUST_CONSTRAINT_MASK: u32 = 131096; -pub const TOKEN_TRUST_ALLOWED_MASK: u32 = 131102; -pub const TOKEN_ACCESS_PSEUDO_HANDLE_WIN8: u32 = 24; -pub const TOKEN_ACCESS_PSEUDO_HANDLE: u32 = 24; -pub const TOKEN_MANDATORY_POLICY_OFF: u32 = 0; -pub const TOKEN_MANDATORY_POLICY_NO_WRITE_UP: u32 = 1; -pub const TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN: u32 = 2; -pub const TOKEN_MANDATORY_POLICY_VALID_MASK: u32 = 3; -pub const POLICY_AUDIT_SUBCATEGORY_COUNT: u32 = 59; -pub const TOKEN_SOURCE_LENGTH: u32 = 8; -pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_INVALID: u32 = 0; -pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_INT64: u32 = 1; -pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_UINT64: u32 = 2; -pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_STRING: u32 = 3; -pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_FQBN: u32 = 4; -pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_SID: u32 = 5; -pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_BOOLEAN: u32 = 6; -pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_OCTET_STRING: u32 = 16; -pub const CLAIM_SECURITY_ATTRIBUTE_NON_INHERITABLE: u32 = 1; -pub const CLAIM_SECURITY_ATTRIBUTE_VALUE_CASE_SENSITIVE: u32 = 2; -pub const CLAIM_SECURITY_ATTRIBUTE_USE_FOR_DENY_ONLY: u32 = 4; -pub const CLAIM_SECURITY_ATTRIBUTE_DISABLED_BY_DEFAULT: u32 = 8; -pub const CLAIM_SECURITY_ATTRIBUTE_DISABLED: u32 = 16; -pub const CLAIM_SECURITY_ATTRIBUTE_MANDATORY: u32 = 32; -pub const CLAIM_SECURITY_ATTRIBUTE_VALID_FLAGS: u32 = 63; -pub const CLAIM_SECURITY_ATTRIBUTE_CUSTOM_FLAGS: u32 = 4294901760; -pub const CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION_V1: u32 = 1; -pub const CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION: u32 = 1; -pub const SECURITY_DYNAMIC_TRACKING: u32 = 1; -pub const SECURITY_STATIC_TRACKING: u32 = 0; -pub const DISABLE_MAX_PRIVILEGE: u32 = 1; -pub const SANDBOX_INERT: u32 = 2; -pub const LUA_TOKEN: u32 = 4; -pub const WRITE_RESTRICTED: u32 = 8; -pub const OWNER_SECURITY_INFORMATION: u32 = 1; -pub const GROUP_SECURITY_INFORMATION: u32 = 2; -pub const DACL_SECURITY_INFORMATION: u32 = 4; -pub const SACL_SECURITY_INFORMATION: u32 = 8; -pub const LABEL_SECURITY_INFORMATION: u32 = 16; -pub const ATTRIBUTE_SECURITY_INFORMATION: u32 = 32; -pub const SCOPE_SECURITY_INFORMATION: u32 = 64; -pub const PROCESS_TRUST_LABEL_SECURITY_INFORMATION: u32 = 128; -pub const ACCESS_FILTER_SECURITY_INFORMATION: u32 = 256; -pub const BACKUP_SECURITY_INFORMATION: u32 = 65536; -pub const PROTECTED_DACL_SECURITY_INFORMATION: u32 = 2147483648; -pub const PROTECTED_SACL_SECURITY_INFORMATION: u32 = 1073741824; -pub const UNPROTECTED_DACL_SECURITY_INFORMATION: u32 = 536870912; -pub const UNPROTECTED_SACL_SECURITY_INFORMATION: u32 = 268435456; -pub const SE_SIGNING_LEVEL_UNCHECKED: u32 = 0; -pub const SE_SIGNING_LEVEL_UNSIGNED: u32 = 1; -pub const SE_SIGNING_LEVEL_ENTERPRISE: u32 = 2; -pub const SE_SIGNING_LEVEL_CUSTOM_1: u32 = 3; -pub const SE_SIGNING_LEVEL_DEVELOPER: u32 = 3; -pub const SE_SIGNING_LEVEL_AUTHENTICODE: u32 = 4; -pub const SE_SIGNING_LEVEL_CUSTOM_2: u32 = 5; -pub const SE_SIGNING_LEVEL_STORE: u32 = 6; -pub const SE_SIGNING_LEVEL_CUSTOM_3: u32 = 7; -pub const SE_SIGNING_LEVEL_ANTIMALWARE: u32 = 7; -pub const SE_SIGNING_LEVEL_MICROSOFT: u32 = 8; -pub const SE_SIGNING_LEVEL_CUSTOM_4: u32 = 9; -pub const SE_SIGNING_LEVEL_CUSTOM_5: u32 = 10; -pub const SE_SIGNING_LEVEL_DYNAMIC_CODEGEN: u32 = 11; -pub const SE_SIGNING_LEVEL_WINDOWS: u32 = 12; -pub const SE_SIGNING_LEVEL_CUSTOM_7: u32 = 13; -pub const SE_SIGNING_LEVEL_WINDOWS_TCB: u32 = 14; -pub const SE_SIGNING_LEVEL_CUSTOM_6: u32 = 15; -pub const PROCESS_TERMINATE: u32 = 1; -pub const PROCESS_CREATE_THREAD: u32 = 2; -pub const PROCESS_SET_SESSIONID: u32 = 4; -pub const PROCESS_VM_OPERATION: u32 = 8; -pub const PROCESS_VM_READ: u32 = 16; -pub const PROCESS_VM_WRITE: u32 = 32; -pub const PROCESS_DUP_HANDLE: u32 = 64; -pub const PROCESS_CREATE_PROCESS: u32 = 128; -pub const PROCESS_SET_QUOTA: u32 = 256; -pub const PROCESS_SET_INFORMATION: u32 = 512; -pub const PROCESS_QUERY_INFORMATION: u32 = 1024; -pub const PROCESS_SUSPEND_RESUME: u32 = 2048; -pub const PROCESS_QUERY_LIMITED_INFORMATION: u32 = 4096; -pub const PROCESS_SET_LIMITED_INFORMATION: u32 = 8192; -pub const PROCESS_ALL_ACCESS: u32 = 2097151; -pub const THREAD_TERMINATE: u32 = 1; -pub const THREAD_SUSPEND_RESUME: u32 = 2; -pub const THREAD_GET_CONTEXT: u32 = 8; -pub const THREAD_SET_CONTEXT: u32 = 16; -pub const THREAD_QUERY_INFORMATION: u32 = 64; -pub const THREAD_SET_INFORMATION: u32 = 32; -pub const THREAD_SET_THREAD_TOKEN: u32 = 128; -pub const THREAD_IMPERSONATE: u32 = 256; -pub const THREAD_DIRECT_IMPERSONATION: u32 = 512; -pub const THREAD_SET_LIMITED_INFORMATION: u32 = 1024; -pub const THREAD_QUERY_LIMITED_INFORMATION: u32 = 2048; -pub const THREAD_RESUME: u32 = 4096; -pub const THREAD_ALL_ACCESS: u32 = 2097151; -pub const JOB_OBJECT_ASSIGN_PROCESS: u32 = 1; -pub const JOB_OBJECT_SET_ATTRIBUTES: u32 = 2; -pub const JOB_OBJECT_QUERY: u32 = 4; -pub const JOB_OBJECT_TERMINATE: u32 = 8; -pub const JOB_OBJECT_SET_SECURITY_ATTRIBUTES: u32 = 16; -pub const JOB_OBJECT_IMPERSONATE: u32 = 32; -pub const JOB_OBJECT_ALL_ACCESS: u32 = 2031679; -pub const FLS_MAXIMUM_AVAILABLE: u32 = 4080; -pub const TLS_MINIMUM_AVAILABLE: u32 = 64; -pub const THREAD_DYNAMIC_CODE_ALLOW: u32 = 1; -pub const THREAD_BASE_PRIORITY_LOWRT: u32 = 15; -pub const THREAD_BASE_PRIORITY_MAX: u32 = 2; -pub const THREAD_BASE_PRIORITY_MIN: i32 = -2; -pub const THREAD_BASE_PRIORITY_IDLE: i32 = -15; -pub const COMPONENT_KTM: u32 = 1; -pub const COMPONENT_VALID_FLAGS: u32 = 1; -pub const MEMORY_PRIORITY_LOWEST: u32 = 0; -pub const MEMORY_PRIORITY_VERY_LOW: u32 = 1; -pub const MEMORY_PRIORITY_LOW: u32 = 2; -pub const MEMORY_PRIORITY_MEDIUM: u32 = 3; -pub const MEMORY_PRIORITY_BELOW_NORMAL: u32 = 4; -pub const MEMORY_PRIORITY_NORMAL: u32 = 5; -pub const DYNAMIC_EH_CONTINUATION_TARGET_ADD: u32 = 1; -pub const DYNAMIC_EH_CONTINUATION_TARGET_PROCESSED: u32 = 2; -pub const DYNAMIC_ENFORCED_ADDRESS_RANGE_ADD: u32 = 1; -pub const DYNAMIC_ENFORCED_ADDRESS_RANGE_PROCESSED: u32 = 2; -pub const QUOTA_LIMITS_HARDWS_MIN_ENABLE: u32 = 1; -pub const QUOTA_LIMITS_HARDWS_MIN_DISABLE: u32 = 2; -pub const QUOTA_LIMITS_HARDWS_MAX_ENABLE: u32 = 4; -pub const QUOTA_LIMITS_HARDWS_MAX_DISABLE: u32 = 8; -pub const QUOTA_LIMITS_USE_DEFAULT_LIMITS: u32 = 16; -pub const MAX_HW_COUNTERS: u32 = 16; -pub const THREAD_PROFILING_FLAG_DISPATCH: u32 = 1; -pub const JOB_OBJECT_NET_RATE_CONTROL_MAX_DSCP_TAG: u32 = 64; -pub const JOB_OBJECT_TERMINATE_AT_END_OF_JOB: u32 = 0; -pub const JOB_OBJECT_POST_AT_END_OF_JOB: u32 = 1; -pub const JOB_OBJECT_MSG_END_OF_JOB_TIME: u32 = 1; -pub const JOB_OBJECT_MSG_END_OF_PROCESS_TIME: u32 = 2; -pub const JOB_OBJECT_MSG_ACTIVE_PROCESS_LIMIT: u32 = 3; -pub const JOB_OBJECT_MSG_ACTIVE_PROCESS_ZERO: u32 = 4; -pub const JOB_OBJECT_MSG_NEW_PROCESS: u32 = 6; -pub const JOB_OBJECT_MSG_EXIT_PROCESS: u32 = 7; -pub const JOB_OBJECT_MSG_ABNORMAL_EXIT_PROCESS: u32 = 8; -pub const JOB_OBJECT_MSG_PROCESS_MEMORY_LIMIT: u32 = 9; -pub const JOB_OBJECT_MSG_JOB_MEMORY_LIMIT: u32 = 10; -pub const JOB_OBJECT_MSG_NOTIFICATION_LIMIT: u32 = 11; -pub const JOB_OBJECT_MSG_JOB_CYCLE_TIME_LIMIT: u32 = 12; -pub const JOB_OBJECT_MSG_SILO_TERMINATED: u32 = 13; -pub const JOB_OBJECT_MSG_MINIMUM: u32 = 1; -pub const JOB_OBJECT_MSG_MAXIMUM: u32 = 13; -pub const JOB_OBJECT_VALID_COMPLETION_FILTER: u32 = 16382; -pub const JOB_OBJECT_LIMIT_WORKINGSET: u32 = 1; -pub const JOB_OBJECT_LIMIT_PROCESS_TIME: u32 = 2; -pub const JOB_OBJECT_LIMIT_JOB_TIME: u32 = 4; -pub const JOB_OBJECT_LIMIT_ACTIVE_PROCESS: u32 = 8; -pub const JOB_OBJECT_LIMIT_AFFINITY: u32 = 16; -pub const JOB_OBJECT_LIMIT_PRIORITY_CLASS: u32 = 32; -pub const JOB_OBJECT_LIMIT_PRESERVE_JOB_TIME: u32 = 64; -pub const JOB_OBJECT_LIMIT_SCHEDULING_CLASS: u32 = 128; -pub const JOB_OBJECT_LIMIT_PROCESS_MEMORY: u32 = 256; -pub const JOB_OBJECT_LIMIT_JOB_MEMORY: u32 = 512; -pub const JOB_OBJECT_LIMIT_JOB_MEMORY_HIGH: u32 = 512; -pub const JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION: u32 = 1024; -pub const JOB_OBJECT_LIMIT_BREAKAWAY_OK: u32 = 2048; -pub const JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK: u32 = 4096; -pub const JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE: u32 = 8192; -pub const JOB_OBJECT_LIMIT_SUBSET_AFFINITY: u32 = 16384; -pub const JOB_OBJECT_LIMIT_JOB_MEMORY_LOW: u32 = 32768; -pub const JOB_OBJECT_LIMIT_JOB_READ_BYTES: u32 = 65536; -pub const JOB_OBJECT_LIMIT_JOB_WRITE_BYTES: u32 = 131072; -pub const JOB_OBJECT_LIMIT_RATE_CONTROL: u32 = 262144; -pub const JOB_OBJECT_LIMIT_CPU_RATE_CONTROL: u32 = 262144; -pub const JOB_OBJECT_LIMIT_IO_RATE_CONTROL: u32 = 524288; -pub const JOB_OBJECT_LIMIT_NET_RATE_CONTROL: u32 = 1048576; -pub const JOB_OBJECT_LIMIT_VALID_FLAGS: u32 = 524287; -pub const JOB_OBJECT_BASIC_LIMIT_VALID_FLAGS: u32 = 255; -pub const JOB_OBJECT_EXTENDED_LIMIT_VALID_FLAGS: u32 = 32767; -pub const JOB_OBJECT_NOTIFICATION_LIMIT_VALID_FLAGS: u32 = 2064900; -pub const JOB_OBJECT_UILIMIT_NONE: u32 = 0; -pub const JOB_OBJECT_UILIMIT_HANDLES: u32 = 1; -pub const JOB_OBJECT_UILIMIT_READCLIPBOARD: u32 = 2; -pub const JOB_OBJECT_UILIMIT_WRITECLIPBOARD: u32 = 4; -pub const JOB_OBJECT_UILIMIT_SYSTEMPARAMETERS: u32 = 8; -pub const JOB_OBJECT_UILIMIT_DISPLAYSETTINGS: u32 = 16; -pub const JOB_OBJECT_UILIMIT_GLOBALATOMS: u32 = 32; -pub const JOB_OBJECT_UILIMIT_DESKTOP: u32 = 64; -pub const JOB_OBJECT_UILIMIT_EXITWINDOWS: u32 = 128; -pub const JOB_OBJECT_UILIMIT_IME: u32 = 256; -pub const JOB_OBJECT_UILIMIT_ALL: u32 = 511; -pub const JOB_OBJECT_UI_VALID_FLAGS: u32 = 511; -pub const JOB_OBJECT_SECURITY_NO_ADMIN: u32 = 1; -pub const JOB_OBJECT_SECURITY_RESTRICTED_TOKEN: u32 = 2; -pub const JOB_OBJECT_SECURITY_ONLY_TOKEN: u32 = 4; -pub const JOB_OBJECT_SECURITY_FILTER_TOKENS: u32 = 8; -pub const JOB_OBJECT_SECURITY_VALID_FLAGS: u32 = 15; -pub const JOB_OBJECT_CPU_RATE_CONTROL_ENABLE: u32 = 1; -pub const JOB_OBJECT_CPU_RATE_CONTROL_WEIGHT_BASED: u32 = 2; -pub const JOB_OBJECT_CPU_RATE_CONTROL_HARD_CAP: u32 = 4; -pub const JOB_OBJECT_CPU_RATE_CONTROL_NOTIFY: u32 = 8; -pub const JOB_OBJECT_CPU_RATE_CONTROL_MIN_MAX_RATE: u32 = 16; -pub const JOB_OBJECT_CPU_RATE_CONTROL_VALID_FLAGS: u32 = 31; -pub const MEMORY_PARTITION_QUERY_ACCESS: u32 = 1; -pub const MEMORY_PARTITION_MODIFY_ACCESS: u32 = 2; -pub const MEMORY_PARTITION_ALL_ACCESS: u32 = 2031619; -pub const EVENT_MODIFY_STATE: u32 = 2; -pub const EVENT_ALL_ACCESS: u32 = 2031619; -pub const MUTANT_QUERY_STATE: u32 = 1; -pub const MUTANT_ALL_ACCESS: u32 = 2031617; -pub const SEMAPHORE_MODIFY_STATE: u32 = 2; -pub const SEMAPHORE_ALL_ACCESS: u32 = 2031619; -pub const TIMER_QUERY_STATE: u32 = 1; -pub const TIMER_MODIFY_STATE: u32 = 2; -pub const TIMER_ALL_ACCESS: u32 = 2031619; -pub const TIME_ZONE_ID_UNKNOWN: u32 = 0; -pub const TIME_ZONE_ID_STANDARD: u32 = 1; -pub const TIME_ZONE_ID_DAYLIGHT: u32 = 2; -pub const LTP_PC_SMT: u32 = 1; -pub const CACHE_FULLY_ASSOCIATIVE: u32 = 255; -pub const SYSTEM_CPU_SET_INFORMATION_PARKED: u32 = 1; -pub const SYSTEM_CPU_SET_INFORMATION_ALLOCATED: u32 = 2; -pub const SYSTEM_CPU_SET_INFORMATION_ALLOCATED_TO_TARGET_PROCESS: u32 = 4; -pub const SYSTEM_CPU_SET_INFORMATION_REALTIME: u32 = 8; -pub const PROCESSOR_INTEL_386: u32 = 386; -pub const PROCESSOR_INTEL_486: u32 = 486; -pub const PROCESSOR_INTEL_PENTIUM: u32 = 586; -pub const PROCESSOR_INTEL_IA64: u32 = 2200; -pub const PROCESSOR_AMD_X8664: u32 = 8664; -pub const PROCESSOR_MIPS_R4000: u32 = 4000; -pub const PROCESSOR_ALPHA_21064: u32 = 21064; -pub const PROCESSOR_PPC_601: u32 = 601; -pub const PROCESSOR_PPC_603: u32 = 603; -pub const PROCESSOR_PPC_604: u32 = 604; -pub const PROCESSOR_PPC_620: u32 = 620; -pub const PROCESSOR_HITACHI_SH3: u32 = 10003; -pub const PROCESSOR_HITACHI_SH3E: u32 = 10004; -pub const PROCESSOR_HITACHI_SH4: u32 = 10005; -pub const PROCESSOR_MOTOROLA_821: u32 = 821; -pub const PROCESSOR_SHx_SH3: u32 = 103; -pub const PROCESSOR_SHx_SH4: u32 = 104; -pub const PROCESSOR_STRONGARM: u32 = 2577; -pub const PROCESSOR_ARM720: u32 = 1824; -pub const PROCESSOR_ARM820: u32 = 2080; -pub const PROCESSOR_ARM920: u32 = 2336; -pub const PROCESSOR_ARM_7TDMI: u32 = 70001; -pub const PROCESSOR_OPTIL: u32 = 18767; -pub const PROCESSOR_ARCHITECTURE_INTEL: u32 = 0; -pub const PROCESSOR_ARCHITECTURE_MIPS: u32 = 1; -pub const PROCESSOR_ARCHITECTURE_ALPHA: u32 = 2; -pub const PROCESSOR_ARCHITECTURE_PPC: u32 = 3; -pub const PROCESSOR_ARCHITECTURE_SHX: u32 = 4; -pub const PROCESSOR_ARCHITECTURE_ARM: u32 = 5; -pub const PROCESSOR_ARCHITECTURE_IA64: u32 = 6; -pub const PROCESSOR_ARCHITECTURE_ALPHA64: u32 = 7; -pub const PROCESSOR_ARCHITECTURE_MSIL: u32 = 8; -pub const PROCESSOR_ARCHITECTURE_AMD64: u32 = 9; -pub const PROCESSOR_ARCHITECTURE_IA32_ON_WIN64: u32 = 10; -pub const PROCESSOR_ARCHITECTURE_NEUTRAL: u32 = 11; -pub const PROCESSOR_ARCHITECTURE_ARM64: u32 = 12; -pub const PROCESSOR_ARCHITECTURE_ARM32_ON_WIN64: u32 = 13; -pub const PROCESSOR_ARCHITECTURE_IA32_ON_ARM64: u32 = 14; -pub const PROCESSOR_ARCHITECTURE_UNKNOWN: u32 = 65535; -pub const PF_FLOATING_POINT_PRECISION_ERRATA: u32 = 0; -pub const PF_FLOATING_POINT_EMULATED: u32 = 1; -pub const PF_COMPARE_EXCHANGE_DOUBLE: u32 = 2; -pub const PF_MMX_INSTRUCTIONS_AVAILABLE: u32 = 3; -pub const PF_PPC_MOVEMEM_64BIT_OK: u32 = 4; -pub const PF_ALPHA_BYTE_INSTRUCTIONS: u32 = 5; -pub const PF_XMMI_INSTRUCTIONS_AVAILABLE: u32 = 6; -pub const PF_3DNOW_INSTRUCTIONS_AVAILABLE: u32 = 7; -pub const PF_RDTSC_INSTRUCTION_AVAILABLE: u32 = 8; -pub const PF_PAE_ENABLED: u32 = 9; -pub const PF_XMMI64_INSTRUCTIONS_AVAILABLE: u32 = 10; -pub const PF_SSE_DAZ_MODE_AVAILABLE: u32 = 11; -pub const PF_NX_ENABLED: u32 = 12; -pub const PF_SSE3_INSTRUCTIONS_AVAILABLE: u32 = 13; -pub const PF_COMPARE_EXCHANGE128: u32 = 14; -pub const PF_COMPARE64_EXCHANGE128: u32 = 15; -pub const PF_CHANNELS_ENABLED: u32 = 16; -pub const PF_XSAVE_ENABLED: u32 = 17; -pub const PF_ARM_VFP_32_REGISTERS_AVAILABLE: u32 = 18; -pub const PF_ARM_NEON_INSTRUCTIONS_AVAILABLE: u32 = 19; -pub const PF_SECOND_LEVEL_ADDRESS_TRANSLATION: u32 = 20; -pub const PF_VIRT_FIRMWARE_ENABLED: u32 = 21; -pub const PF_RDWRFSGSBASE_AVAILABLE: u32 = 22; -pub const PF_FASTFAIL_AVAILABLE: u32 = 23; -pub const PF_ARM_DIVIDE_INSTRUCTION_AVAILABLE: u32 = 24; -pub const PF_ARM_64BIT_LOADSTORE_ATOMIC: u32 = 25; -pub const PF_ARM_EXTERNAL_CACHE_AVAILABLE: u32 = 26; -pub const PF_ARM_FMAC_INSTRUCTIONS_AVAILABLE: u32 = 27; -pub const PF_RDRAND_INSTRUCTION_AVAILABLE: u32 = 28; -pub const PF_ARM_V8_INSTRUCTIONS_AVAILABLE: u32 = 29; -pub const PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE: u32 = 30; -pub const PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE: u32 = 31; -pub const PF_RDTSCP_INSTRUCTION_AVAILABLE: u32 = 32; -pub const PF_RDPID_INSTRUCTION_AVAILABLE: u32 = 33; -pub const PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE: u32 = 34; -pub const PF_MONITORX_INSTRUCTION_AVAILABLE: u32 = 35; -pub const PF_SSSE3_INSTRUCTIONS_AVAILABLE: u32 = 36; -pub const PF_SSE4_1_INSTRUCTIONS_AVAILABLE: u32 = 37; -pub const PF_SSE4_2_INSTRUCTIONS_AVAILABLE: u32 = 38; -pub const PF_AVX_INSTRUCTIONS_AVAILABLE: u32 = 39; -pub const PF_AVX2_INSTRUCTIONS_AVAILABLE: u32 = 40; -pub const PF_AVX512F_INSTRUCTIONS_AVAILABLE: u32 = 41; -pub const PF_ERMS_AVAILABLE: u32 = 42; -pub const PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE: u32 = 43; -pub const PF_ARM_V83_JSCVT_INSTRUCTIONS_AVAILABLE: u32 = 44; -pub const PF_ARM_V83_LRCPC_INSTRUCTIONS_AVAILABLE: u32 = 45; -pub const XSTATE_LEGACY_FLOATING_POINT: u32 = 0; -pub const XSTATE_LEGACY_SSE: u32 = 1; -pub const XSTATE_GSSE: u32 = 2; -pub const XSTATE_AVX: u32 = 2; -pub const XSTATE_MPX_BNDREGS: u32 = 3; -pub const XSTATE_MPX_BNDCSR: u32 = 4; -pub const XSTATE_AVX512_KMASK: u32 = 5; -pub const XSTATE_AVX512_ZMM_H: u32 = 6; -pub const XSTATE_AVX512_ZMM: u32 = 7; -pub const XSTATE_IPT: u32 = 8; -pub const XSTATE_PASID: u32 = 10; -pub const XSTATE_CET_U: u32 = 11; -pub const XSTATE_CET_S: u32 = 12; -pub const XSTATE_AMX_TILE_CONFIG: u32 = 17; -pub const XSTATE_AMX_TILE_DATA: u32 = 18; -pub const XSTATE_LWP: u32 = 62; -pub const MAXIMUM_XSTATE_FEATURES: u32 = 64; -pub const XSTATE_COMPACTION_ENABLE: u32 = 63; -pub const XSTATE_ALIGN_BIT: u32 = 1; -pub const XSTATE_XFD_BIT: u32 = 2; -pub const XSTATE_CONTROLFLAG_XSAVEOPT_MASK: u32 = 1; -pub const XSTATE_CONTROLFLAG_XSAVEC_MASK: u32 = 2; -pub const XSTATE_CONTROLFLAG_XFD_MASK: u32 = 4; -pub const XSTATE_CONTROLFLAG_VALID_MASK: u32 = 7; -pub const CFG_CALL_TARGET_VALID: u32 = 1; -pub const CFG_CALL_TARGET_PROCESSED: u32 = 2; -pub const CFG_CALL_TARGET_CONVERT_EXPORT_SUPPRESSED_TO_VALID: u32 = 4; -pub const CFG_CALL_TARGET_VALID_XFG: u32 = 8; -pub const CFG_CALL_TARGET_CONVERT_XFG_TO_CFG: u32 = 16; -pub const SECTION_QUERY: u32 = 1; -pub const SECTION_MAP_WRITE: u32 = 2; -pub const SECTION_MAP_READ: u32 = 4; -pub const SECTION_MAP_EXECUTE: u32 = 8; -pub const SECTION_EXTEND_SIZE: u32 = 16; -pub const SECTION_MAP_EXECUTE_EXPLICIT: u32 = 32; -pub const SECTION_ALL_ACCESS: u32 = 983071; -pub const SESSION_QUERY_ACCESS: u32 = 1; -pub const SESSION_MODIFY_ACCESS: u32 = 2; -pub const SESSION_ALL_ACCESS: u32 = 983043; -pub const PAGE_NOACCESS: u32 = 1; -pub const PAGE_READONLY: u32 = 2; -pub const PAGE_READWRITE: u32 = 4; -pub const PAGE_WRITECOPY: u32 = 8; -pub const PAGE_EXECUTE: u32 = 16; -pub const PAGE_EXECUTE_READ: u32 = 32; -pub const PAGE_EXECUTE_READWRITE: u32 = 64; -pub const PAGE_EXECUTE_WRITECOPY: u32 = 128; -pub const PAGE_GUARD: u32 = 256; -pub const PAGE_NOCACHE: u32 = 512; -pub const PAGE_WRITECOMBINE: u32 = 1024; -pub const PAGE_GRAPHICS_NOACCESS: u32 = 2048; -pub const PAGE_GRAPHICS_READONLY: u32 = 4096; -pub const PAGE_GRAPHICS_READWRITE: u32 = 8192; -pub const PAGE_GRAPHICS_EXECUTE: u32 = 16384; -pub const PAGE_GRAPHICS_EXECUTE_READ: u32 = 32768; -pub const PAGE_GRAPHICS_EXECUTE_READWRITE: u32 = 65536; -pub const PAGE_GRAPHICS_COHERENT: u32 = 131072; -pub const PAGE_GRAPHICS_NOCACHE: u32 = 262144; -pub const PAGE_ENCLAVE_THREAD_CONTROL: u32 = 2147483648; -pub const PAGE_REVERT_TO_FILE_MAP: u32 = 2147483648; -pub const PAGE_TARGETS_NO_UPDATE: u32 = 1073741824; -pub const PAGE_TARGETS_INVALID: u32 = 1073741824; -pub const PAGE_ENCLAVE_UNVALIDATED: u32 = 536870912; -pub const PAGE_ENCLAVE_MASK: u32 = 268435456; -pub const PAGE_ENCLAVE_DECOMMIT: u32 = 268435456; -pub const PAGE_ENCLAVE_SS_FIRST: u32 = 268435457; -pub const PAGE_ENCLAVE_SS_REST: u32 = 268435458; -pub const MEM_COMMIT: u32 = 4096; -pub const MEM_RESERVE: u32 = 8192; -pub const MEM_REPLACE_PLACEHOLDER: u32 = 16384; -pub const MEM_RESERVE_PLACEHOLDER: u32 = 262144; -pub const MEM_RESET: u32 = 524288; -pub const MEM_TOP_DOWN: u32 = 1048576; -pub const MEM_WRITE_WATCH: u32 = 2097152; -pub const MEM_PHYSICAL: u32 = 4194304; -pub const MEM_ROTATE: u32 = 8388608; -pub const MEM_DIFFERENT_IMAGE_BASE_OK: u32 = 8388608; -pub const MEM_RESET_UNDO: u32 = 16777216; -pub const MEM_LARGE_PAGES: u32 = 536870912; -pub const MEM_4MB_PAGES: u32 = 2147483648; -pub const MEM_64K_PAGES: u32 = 541065216; -pub const MEM_UNMAP_WITH_TRANSIENT_BOOST: u32 = 1; -pub const MEM_COALESCE_PLACEHOLDERS: u32 = 1; -pub const MEM_PRESERVE_PLACEHOLDER: u32 = 2; -pub const MEM_DECOMMIT: u32 = 16384; -pub const MEM_RELEASE: u32 = 32768; -pub const MEM_FREE: u32 = 65536; -pub const MEM_EXTENDED_PARAMETER_GRAPHICS: u32 = 1; -pub const MEM_EXTENDED_PARAMETER_NONPAGED: u32 = 2; -pub const MEM_EXTENDED_PARAMETER_ZERO_PAGES_OPTIONAL: u32 = 4; -pub const MEM_EXTENDED_PARAMETER_NONPAGED_LARGE: u32 = 8; -pub const MEM_EXTENDED_PARAMETER_NONPAGED_HUGE: u32 = 16; -pub const MEM_EXTENDED_PARAMETER_SOFT_FAULT_PAGES: u32 = 32; -pub const MEM_EXTENDED_PARAMETER_EC_CODE: u32 = 64; -pub const MEM_EXTENDED_PARAMETER_IMAGE_NO_HPAT: u32 = 128; -pub const MEM_EXTENDED_PARAMETER_TYPE_BITS: u32 = 8; -pub const SEC_HUGE_PAGES: u32 = 131072; -pub const SEC_PARTITION_OWNER_HANDLE: u32 = 262144; -pub const SEC_64K_PAGES: u32 = 524288; -pub const SEC_FILE: u32 = 8388608; -pub const SEC_IMAGE: u32 = 16777216; -pub const SEC_PROTECTED_IMAGE: u32 = 33554432; -pub const SEC_RESERVE: u32 = 67108864; -pub const SEC_COMMIT: u32 = 134217728; -pub const SEC_NOCACHE: u32 = 268435456; -pub const SEC_WRITECOMBINE: u32 = 1073741824; -pub const SEC_LARGE_PAGES: u32 = 2147483648; -pub const SEC_IMAGE_NO_EXECUTE: u32 = 285212672; -pub const MEM_PRIVATE: u32 = 131072; -pub const MEM_MAPPED: u32 = 262144; -pub const MEM_IMAGE: u32 = 16777216; -pub const WRITE_WATCH_FLAG_RESET: u32 = 1; -pub const ENCLAVE_TYPE_SGX: u32 = 1; -pub const ENCLAVE_TYPE_SGX2: u32 = 2; -pub const ENCLAVE_TYPE_VBS: u32 = 16; -pub const ENCLAVE_VBS_FLAG_DEBUG: u32 = 1; -pub const ENCLAVE_TYPE_VBS_BASIC: u32 = 17; -pub const VBS_BASIC_PAGE_MEASURED_DATA: u32 = 1; -pub const VBS_BASIC_PAGE_UNMEASURED_DATA: u32 = 2; -pub const VBS_BASIC_PAGE_ZERO_FILL: u32 = 3; -pub const VBS_BASIC_PAGE_THREAD_DESCRIPTOR: u32 = 4; -pub const VBS_BASIC_PAGE_SYSTEM_CALL: u32 = 5; -pub const DEDICATED_MEMORY_CACHE_ELIGIBLE: u32 = 1; -pub const FILE_READ_DATA: u32 = 1; -pub const FILE_LIST_DIRECTORY: u32 = 1; -pub const FILE_WRITE_DATA: u32 = 2; -pub const FILE_ADD_FILE: u32 = 2; -pub const FILE_APPEND_DATA: u32 = 4; -pub const FILE_ADD_SUBDIRECTORY: u32 = 4; -pub const FILE_CREATE_PIPE_INSTANCE: u32 = 4; -pub const FILE_READ_EA: u32 = 8; -pub const FILE_WRITE_EA: u32 = 16; -pub const FILE_EXECUTE: u32 = 32; -pub const FILE_TRAVERSE: u32 = 32; -pub const FILE_DELETE_CHILD: u32 = 64; -pub const FILE_READ_ATTRIBUTES: u32 = 128; -pub const FILE_WRITE_ATTRIBUTES: u32 = 256; -pub const FILE_ALL_ACCESS: u32 = 2032127; -pub const FILE_GENERIC_READ: u32 = 1179785; -pub const FILE_GENERIC_WRITE: u32 = 1179926; -pub const FILE_GENERIC_EXECUTE: u32 = 1179808; -pub const FILE_SHARE_READ: u32 = 1; -pub const FILE_SHARE_WRITE: u32 = 2; -pub const FILE_SHARE_DELETE: u32 = 4; -pub const FILE_ATTRIBUTE_READONLY: u32 = 1; -pub const FILE_ATTRIBUTE_HIDDEN: u32 = 2; -pub const FILE_ATTRIBUTE_SYSTEM: u32 = 4; -pub const FILE_ATTRIBUTE_DIRECTORY: u32 = 16; -pub const FILE_ATTRIBUTE_ARCHIVE: u32 = 32; -pub const FILE_ATTRIBUTE_DEVICE: u32 = 64; -pub const FILE_ATTRIBUTE_NORMAL: u32 = 128; -pub const FILE_ATTRIBUTE_TEMPORARY: u32 = 256; -pub const FILE_ATTRIBUTE_SPARSE_FILE: u32 = 512; -pub const FILE_ATTRIBUTE_REPARSE_POINT: u32 = 1024; -pub const FILE_ATTRIBUTE_COMPRESSED: u32 = 2048; -pub const FILE_ATTRIBUTE_OFFLINE: u32 = 4096; -pub const FILE_ATTRIBUTE_NOT_CONTENT_INDEXED: u32 = 8192; -pub const FILE_ATTRIBUTE_ENCRYPTED: u32 = 16384; -pub const FILE_ATTRIBUTE_INTEGRITY_STREAM: u32 = 32768; -pub const FILE_ATTRIBUTE_VIRTUAL: u32 = 65536; -pub const FILE_ATTRIBUTE_NO_SCRUB_DATA: u32 = 131072; -pub const FILE_ATTRIBUTE_EA: u32 = 262144; -pub const FILE_ATTRIBUTE_PINNED: u32 = 524288; -pub const FILE_ATTRIBUTE_UNPINNED: u32 = 1048576; -pub const FILE_ATTRIBUTE_RECALL_ON_OPEN: u32 = 262144; -pub const FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS: u32 = 4194304; -pub const TREE_CONNECT_ATTRIBUTE_PRIVACY: u32 = 16384; -pub const TREE_CONNECT_ATTRIBUTE_INTEGRITY: u32 = 32768; -pub const TREE_CONNECT_ATTRIBUTE_GLOBAL: u32 = 4; -pub const TREE_CONNECT_ATTRIBUTE_PINNED: u32 = 2; -pub const FILE_ATTRIBUTE_STRICTLY_SEQUENTIAL: u32 = 536870912; -pub const FILE_NOTIFY_CHANGE_FILE_NAME: u32 = 1; -pub const FILE_NOTIFY_CHANGE_DIR_NAME: u32 = 2; -pub const FILE_NOTIFY_CHANGE_ATTRIBUTES: u32 = 4; -pub const FILE_NOTIFY_CHANGE_SIZE: u32 = 8; -pub const FILE_NOTIFY_CHANGE_LAST_WRITE: u32 = 16; -pub const FILE_NOTIFY_CHANGE_LAST_ACCESS: u32 = 32; -pub const FILE_NOTIFY_CHANGE_CREATION: u32 = 64; -pub const FILE_NOTIFY_CHANGE_SECURITY: u32 = 256; -pub const FILE_ACTION_ADDED: u32 = 1; -pub const FILE_ACTION_REMOVED: u32 = 2; -pub const FILE_ACTION_MODIFIED: u32 = 3; -pub const FILE_ACTION_RENAMED_OLD_NAME: u32 = 4; -pub const FILE_ACTION_RENAMED_NEW_NAME: u32 = 5; -pub const FILE_CASE_SENSITIVE_SEARCH: u32 = 1; -pub const FILE_CASE_PRESERVED_NAMES: u32 = 2; -pub const FILE_UNICODE_ON_DISK: u32 = 4; -pub const FILE_PERSISTENT_ACLS: u32 = 8; -pub const FILE_FILE_COMPRESSION: u32 = 16; -pub const FILE_VOLUME_QUOTAS: u32 = 32; -pub const FILE_SUPPORTS_SPARSE_FILES: u32 = 64; -pub const FILE_SUPPORTS_REPARSE_POINTS: u32 = 128; -pub const FILE_SUPPORTS_REMOTE_STORAGE: u32 = 256; -pub const FILE_RETURNS_CLEANUP_RESULT_INFO: u32 = 512; -pub const FILE_SUPPORTS_POSIX_UNLINK_RENAME: u32 = 1024; -pub const FILE_SUPPORTS_BYPASS_IO: u32 = 2048; -pub const FILE_SUPPORTS_STREAM_SNAPSHOTS: u32 = 4096; -pub const FILE_SUPPORTS_CASE_SENSITIVE_DIRS: u32 = 8192; -pub const FILE_VOLUME_IS_COMPRESSED: u32 = 32768; -pub const FILE_SUPPORTS_OBJECT_IDS: u32 = 65536; -pub const FILE_SUPPORTS_ENCRYPTION: u32 = 131072; -pub const FILE_NAMED_STREAMS: u32 = 262144; -pub const FILE_READ_ONLY_VOLUME: u32 = 524288; -pub const FILE_SEQUENTIAL_WRITE_ONCE: u32 = 1048576; -pub const FILE_SUPPORTS_TRANSACTIONS: u32 = 2097152; -pub const FILE_SUPPORTS_HARD_LINKS: u32 = 4194304; -pub const FILE_SUPPORTS_EXTENDED_ATTRIBUTES: u32 = 8388608; -pub const FILE_SUPPORTS_OPEN_BY_FILE_ID: u32 = 16777216; -pub const FILE_SUPPORTS_USN_JOURNAL: u32 = 33554432; -pub const FILE_SUPPORTS_INTEGRITY_STREAMS: u32 = 67108864; -pub const FILE_SUPPORTS_BLOCK_REFCOUNTING: u32 = 134217728; -pub const FILE_SUPPORTS_SPARSE_VDL: u32 = 268435456; -pub const FILE_DAX_VOLUME: u32 = 536870912; -pub const FILE_SUPPORTS_GHOSTING: u32 = 1073741824; -pub const FILE_NAME_FLAG_HARDLINK: u32 = 0; -pub const FILE_NAME_FLAG_NTFS: u32 = 1; -pub const FILE_NAME_FLAG_DOS: u32 = 2; -pub const FILE_NAME_FLAG_BOTH: u32 = 3; -pub const FILE_NAME_FLAGS_UNSPECIFIED: u32 = 128; -pub const FILE_CS_FLAG_CASE_SENSITIVE_DIR: u32 = 1; -pub const FLUSH_FLAGS_FILE_DATA_ONLY: u32 = 1; -pub const FLUSH_FLAGS_NO_SYNC: u32 = 2; -pub const FLUSH_FLAGS_FILE_DATA_SYNC_ONLY: u32 = 4; -pub const MAXIMUM_REPARSE_DATA_BUFFER_SIZE: u32 = 16384; -pub const IO_REPARSE_TAG_RESERVED_ZERO: u32 = 0; -pub const IO_REPARSE_TAG_RESERVED_ONE: u32 = 1; -pub const IO_REPARSE_TAG_RESERVED_TWO: u32 = 2; -pub const IO_REPARSE_TAG_RESERVED_RANGE: u32 = 2; -pub const IO_REPARSE_TAG_MOUNT_POINT: u32 = 2684354563; -pub const IO_REPARSE_TAG_HSM: u32 = 3221225476; -pub const IO_REPARSE_TAG_HSM2: u32 = 2147483654; -pub const IO_REPARSE_TAG_SIS: u32 = 2147483655; -pub const IO_REPARSE_TAG_WIM: u32 = 2147483656; -pub const IO_REPARSE_TAG_CSV: u32 = 2147483657; -pub const IO_REPARSE_TAG_DFS: u32 = 2147483658; -pub const IO_REPARSE_TAG_SYMLINK: u32 = 2684354572; -pub const IO_REPARSE_TAG_DFSR: u32 = 2147483666; -pub const IO_REPARSE_TAG_DEDUP: u32 = 2147483667; -pub const IO_REPARSE_TAG_NFS: u32 = 2147483668; -pub const IO_REPARSE_TAG_FILE_PLACEHOLDER: u32 = 2147483669; -pub const IO_REPARSE_TAG_WOF: u32 = 2147483671; -pub const IO_REPARSE_TAG_WCI: u32 = 2147483672; -pub const IO_REPARSE_TAG_WCI_1: u32 = 2415923224; -pub const IO_REPARSE_TAG_GLOBAL_REPARSE: u32 = 2684354585; -pub const IO_REPARSE_TAG_CLOUD: u32 = 2415919130; -pub const IO_REPARSE_TAG_CLOUD_1: u32 = 2415923226; -pub const IO_REPARSE_TAG_CLOUD_2: u32 = 2415927322; -pub const IO_REPARSE_TAG_CLOUD_3: u32 = 2415931418; -pub const IO_REPARSE_TAG_CLOUD_4: u32 = 2415935514; -pub const IO_REPARSE_TAG_CLOUD_5: u32 = 2415939610; -pub const IO_REPARSE_TAG_CLOUD_6: u32 = 2415943706; -pub const IO_REPARSE_TAG_CLOUD_7: u32 = 2415947802; -pub const IO_REPARSE_TAG_CLOUD_8: u32 = 2415951898; -pub const IO_REPARSE_TAG_CLOUD_9: u32 = 2415955994; -pub const IO_REPARSE_TAG_CLOUD_A: u32 = 2415960090; -pub const IO_REPARSE_TAG_CLOUD_B: u32 = 2415964186; -pub const IO_REPARSE_TAG_CLOUD_C: u32 = 2415968282; -pub const IO_REPARSE_TAG_CLOUD_D: u32 = 2415972378; -pub const IO_REPARSE_TAG_CLOUD_E: u32 = 2415976474; -pub const IO_REPARSE_TAG_CLOUD_F: u32 = 2415980570; -pub const IO_REPARSE_TAG_CLOUD_MASK: u32 = 61440; -pub const IO_REPARSE_TAG_APPEXECLINK: u32 = 2147483675; -pub const IO_REPARSE_TAG_PROJFS: u32 = 2415919132; -pub const IO_REPARSE_TAG_STORAGE_SYNC: u32 = 2147483678; -pub const IO_REPARSE_TAG_WCI_TOMBSTONE: u32 = 2684354591; -pub const IO_REPARSE_TAG_UNHANDLED: u32 = 2147483680; -pub const IO_REPARSE_TAG_ONEDRIVE: u32 = 2147483681; -pub const IO_REPARSE_TAG_PROJFS_TOMBSTONE: u32 = 2684354594; -pub const IO_REPARSE_TAG_AF_UNIX: u32 = 2147483683; -pub const IO_REPARSE_TAG_WCI_LINK: u32 = 2684354599; -pub const IO_REPARSE_TAG_WCI_LINK_1: u32 = 2684358695; -pub const IO_REPARSE_TAG_DATALESS_CIM: u32 = 2684354600; -pub const SCRUB_DATA_INPUT_FLAG_RESUME: u32 = 1; -pub const SCRUB_DATA_INPUT_FLAG_SKIP_IN_SYNC: u32 = 2; -pub const SCRUB_DATA_INPUT_FLAG_SKIP_NON_INTEGRITY_DATA: u32 = 4; -pub const SCRUB_DATA_INPUT_FLAG_IGNORE_REDUNDANCY: u32 = 8; -pub const SCRUB_DATA_INPUT_FLAG_SKIP_DATA: u32 = 16; -pub const SCRUB_DATA_INPUT_FLAG_SCRUB_BY_OBJECT_ID: u32 = 32; -pub const SCRUB_DATA_INPUT_FLAG_OPLOCK_NOT_ACQUIRED: u32 = 64; -pub const SCRUB_DATA_OUTPUT_FLAG_INCOMPLETE: u32 = 1; -pub const SCRUB_DATA_OUTPUT_FLAG_NON_USER_DATA_RANGE: u32 = 65536; -pub const SCRUB_DATA_OUTPUT_FLAG_PARITY_EXTENT_DATA_RETURNED: u32 = 131072; -pub const SCRUB_DATA_OUTPUT_FLAG_RESUME_CONTEXT_LENGTH_SPECIFIED: u32 = 262144; -pub const SHUFFLE_FILE_FLAG_SKIP_INITIALIZING_NEW_CLUSTERS: u32 = 1; -pub const IO_COMPLETION_MODIFY_STATE: u32 = 2; -pub const IO_COMPLETION_ALL_ACCESS: u32 = 2031619; -pub const IO_QOS_MAX_RESERVATION: u32 = 1000000000; -pub const SMB_CCF_APP_INSTANCE_EA_NAME: &[u8; 29] = b"ClusteredApplicationInstance\0"; -pub const NETWORK_APP_INSTANCE_CSV_FLAGS_VALID_ONLY_IF_CSV_COORDINATOR: u32 = 1; -pub const DUPLICATE_CLOSE_SOURCE: u32 = 1; -pub const DUPLICATE_SAME_ACCESS: u32 = 2; -pub const POWERBUTTON_ACTION_INDEX_NOTHING: u32 = 0; -pub const POWERBUTTON_ACTION_INDEX_SLEEP: u32 = 1; -pub const POWERBUTTON_ACTION_INDEX_HIBERNATE: u32 = 2; -pub const POWERBUTTON_ACTION_INDEX_SHUTDOWN: u32 = 3; -pub const POWERBUTTON_ACTION_INDEX_TURN_OFF_THE_DISPLAY: u32 = 4; -pub const POWERBUTTON_ACTION_VALUE_NOTHING: u32 = 0; -pub const POWERBUTTON_ACTION_VALUE_SLEEP: u32 = 2; -pub const POWERBUTTON_ACTION_VALUE_HIBERNATE: u32 = 3; -pub const POWERBUTTON_ACTION_VALUE_SHUTDOWN: u32 = 6; -pub const POWERBUTTON_ACTION_VALUE_TURN_OFF_THE_DISPLAY: u32 = 8; -pub const PERFSTATE_POLICY_CHANGE_IDEAL: u32 = 0; -pub const PERFSTATE_POLICY_CHANGE_SINGLE: u32 = 1; -pub const PERFSTATE_POLICY_CHANGE_ROCKET: u32 = 2; -pub const PERFSTATE_POLICY_CHANGE_IDEAL_AGGRESSIVE: u32 = 3; -pub const PERFSTATE_POLICY_CHANGE_DECREASE_MAX: u32 = 2; -pub const PERFSTATE_POLICY_CHANGE_INCREASE_MAX: u32 = 3; -pub const PROCESSOR_THROTTLE_DISABLED: u32 = 0; -pub const PROCESSOR_THROTTLE_ENABLED: u32 = 1; -pub const PROCESSOR_THROTTLE_AUTOMATIC: u32 = 2; -pub const PROCESSOR_PERF_BOOST_POLICY_DISABLED: u32 = 0; -pub const PROCESSOR_PERF_BOOST_POLICY_MAX: u32 = 100; -pub const PROCESSOR_PERF_BOOST_MODE_DISABLED: u32 = 0; -pub const PROCESSOR_PERF_BOOST_MODE_ENABLED: u32 = 1; -pub const PROCESSOR_PERF_BOOST_MODE_AGGRESSIVE: u32 = 2; -pub const PROCESSOR_PERF_BOOST_MODE_EFFICIENT_ENABLED: u32 = 3; -pub const PROCESSOR_PERF_BOOST_MODE_EFFICIENT_AGGRESSIVE: u32 = 4; -pub const PROCESSOR_PERF_BOOST_MODE_AGGRESSIVE_AT_GUARANTEED: u32 = 5; -pub const PROCESSOR_PERF_BOOST_MODE_EFFICIENT_AGGRESSIVE_AT_GUARANTEED: u32 = 6; -pub const PROCESSOR_PERF_BOOST_MODE_MAX: u32 = 6; -pub const PROCESSOR_PERF_AUTONOMOUS_MODE_DISABLED: u32 = 0; -pub const PROCESSOR_PERF_AUTONOMOUS_MODE_ENABLED: u32 = 1; -pub const PROCESSOR_PERF_PERFORMANCE_PREFERENCE: u32 = 255; -pub const PROCESSOR_PERF_ENERGY_PREFERENCE: u32 = 0; -pub const PROCESSOR_PERF_MINIMUM_ACTIVITY_WINDOW: u32 = 0; -pub const PROCESSOR_PERF_MAXIMUM_ACTIVITY_WINDOW: u32 = 1270000000; -pub const PROCESSOR_DUTY_CYCLING_DISABLED: u32 = 0; -pub const PROCESSOR_DUTY_CYCLING_ENABLED: u32 = 1; -pub const CORE_PARKING_POLICY_CHANGE_IDEAL: u32 = 0; -pub const CORE_PARKING_POLICY_CHANGE_SINGLE: u32 = 1; -pub const CORE_PARKING_POLICY_CHANGE_ROCKET: u32 = 2; -pub const CORE_PARKING_POLICY_CHANGE_MULTISTEP: u32 = 3; -pub const CORE_PARKING_POLICY_CHANGE_MAX: u32 = 3; -pub const PARKING_TOPOLOGY_POLICY_DISABLED: u32 = 0; -pub const PARKING_TOPOLOGY_POLICY_ROUNDROBIN: u32 = 1; -pub const PARKING_TOPOLOGY_POLICY_SEQUENTIAL: u32 = 2; -pub const SMT_UNPARKING_POLICY_CORE: u32 = 0; -pub const SMT_UNPARKING_POLICY_CORE_PER_THREAD: u32 = 1; -pub const SMT_UNPARKING_POLICY_LP_ROUNDROBIN: u32 = 2; -pub const SMT_UNPARKING_POLICY_LP_SEQUENTIAL: u32 = 3; -pub const POWER_DEVICE_IDLE_POLICY_PERFORMANCE: u32 = 0; -pub const POWER_DEVICE_IDLE_POLICY_CONSERVATIVE: u32 = 1; -pub const POWER_CONNECTIVITY_IN_STANDBY_DISABLED: u32 = 0; -pub const POWER_CONNECTIVITY_IN_STANDBY_ENABLED: u32 = 1; -pub const POWER_CONNECTIVITY_IN_STANDBY_SYSTEM_MANAGED: u32 = 2; -pub const POWER_DISCONNECTED_STANDBY_MODE_NORMAL: u32 = 0; -pub const POWER_DISCONNECTED_STANDBY_MODE_AGGRESSIVE: u32 = 1; -pub const POWER_SYSTEM_MAXIMUM: u32 = 7; -pub const DIAGNOSTIC_REASON_VERSION: u32 = 0; -pub const DIAGNOSTIC_REASON_SIMPLE_STRING: u32 = 1; -pub const DIAGNOSTIC_REASON_DETAILED_STRING: u32 = 2; -pub const DIAGNOSTIC_REASON_NOT_SPECIFIED: u32 = 2147483648; -pub const DIAGNOSTIC_REASON_INVALID_FLAGS: i64 = -2147483656; -pub const POWER_REQUEST_CONTEXT_VERSION: u32 = 0; -pub const POWER_REQUEST_CONTEXT_SIMPLE_STRING: u32 = 1; -pub const POWER_REQUEST_CONTEXT_DETAILED_STRING: u32 = 2; -pub const PDCAP_D0_SUPPORTED: u32 = 1; -pub const PDCAP_D1_SUPPORTED: u32 = 2; -pub const PDCAP_D2_SUPPORTED: u32 = 4; -pub const PDCAP_D3_SUPPORTED: u32 = 8; -pub const PDCAP_WAKE_FROM_D0_SUPPORTED: u32 = 16; -pub const PDCAP_WAKE_FROM_D1_SUPPORTED: u32 = 32; -pub const PDCAP_WAKE_FROM_D2_SUPPORTED: u32 = 64; -pub const PDCAP_WAKE_FROM_D3_SUPPORTED: u32 = 128; -pub const PDCAP_WARM_EJECT_SUPPORTED: u32 = 256; -pub const POWER_SETTING_VALUE_VERSION: u32 = 1; -pub const POWER_PLATFORM_ROLE_V1: u32 = 1; -pub const POWER_PLATFORM_ROLE_V2: u32 = 2; -pub const POWER_PLATFORM_ROLE_VERSION: u32 = 2; -pub const PROC_IDLE_BUCKET_COUNT: u32 = 6; -pub const PROC_IDLE_BUCKET_COUNT_EX: u32 = 16; -pub const ACPI_PPM_SOFTWARE_ALL: u32 = 252; -pub const ACPI_PPM_SOFTWARE_ANY: u32 = 253; -pub const ACPI_PPM_HARDWARE_ALL: u32 = 254; -pub const MS_PPM_SOFTWARE_ALL: u32 = 1; -pub const PPM_FIRMWARE_ACPI1C2: u32 = 1; -pub const PPM_FIRMWARE_ACPI1C3: u32 = 2; -pub const PPM_FIRMWARE_ACPI1TSTATES: u32 = 4; -pub const PPM_FIRMWARE_CST: u32 = 8; -pub const PPM_FIRMWARE_CSD: u32 = 16; -pub const PPM_FIRMWARE_PCT: u32 = 32; -pub const PPM_FIRMWARE_PSS: u32 = 64; -pub const PPM_FIRMWARE_XPSS: u32 = 128; -pub const PPM_FIRMWARE_PPC: u32 = 256; -pub const PPM_FIRMWARE_PSD: u32 = 512; -pub const PPM_FIRMWARE_PTC: u32 = 1024; -pub const PPM_FIRMWARE_TSS: u32 = 2048; -pub const PPM_FIRMWARE_TPC: u32 = 4096; -pub const PPM_FIRMWARE_TSD: u32 = 8192; -pub const PPM_FIRMWARE_PCCH: u32 = 16384; -pub const PPM_FIRMWARE_PCCP: u32 = 32768; -pub const PPM_FIRMWARE_OSC: u32 = 65536; -pub const PPM_FIRMWARE_PDC: u32 = 131072; -pub const PPM_FIRMWARE_CPC: u32 = 262144; -pub const PPM_FIRMWARE_LPI: u32 = 524288; -pub const PPM_PERFORMANCE_IMPLEMENTATION_NONE: u32 = 0; -pub const PPM_PERFORMANCE_IMPLEMENTATION_PSTATES: u32 = 1; -pub const PPM_PERFORMANCE_IMPLEMENTATION_PCCV1: u32 = 2; -pub const PPM_PERFORMANCE_IMPLEMENTATION_CPPC: u32 = 3; -pub const PPM_PERFORMANCE_IMPLEMENTATION_PEP: u32 = 4; -pub const PPM_IDLE_IMPLEMENTATION_NONE: u32 = 0; -pub const PPM_IDLE_IMPLEMENTATION_CSTATES: u32 = 1; -pub const PPM_IDLE_IMPLEMENTATION_PEP: u32 = 2; -pub const PPM_IDLE_IMPLEMENTATION_MICROPEP: u32 = 3; -pub const PPM_IDLE_IMPLEMENTATION_LPISTATES: u32 = 4; -pub const POWER_ACTION_QUERY_ALLOWED: u32 = 1; -pub const POWER_ACTION_UI_ALLOWED: u32 = 2; -pub const POWER_ACTION_OVERRIDE_APPS: u32 = 4; -pub const POWER_ACTION_HIBERBOOT: u32 = 8; -pub const POWER_ACTION_USER_NOTIFY: u32 = 16; -pub const POWER_ACTION_DOZE_TO_HIBERNATE: u32 = 32; -pub const POWER_ACTION_ACPI_CRITICAL: u32 = 16777216; -pub const POWER_ACTION_ACPI_USER_NOTIFY: u32 = 33554432; -pub const POWER_ACTION_DIRECTED_DRIPS: u32 = 67108864; -pub const POWER_ACTION_PSEUDO_TRANSITION: u32 = 134217728; -pub const POWER_ACTION_LIGHTEST_FIRST: u32 = 268435456; -pub const POWER_ACTION_LOCK_CONSOLE: u32 = 536870912; -pub const POWER_ACTION_DISABLE_WAKES: u32 = 1073741824; -pub const POWER_ACTION_CRITICAL: u32 = 2147483648; -pub const POWER_LEVEL_USER_NOTIFY_TEXT: u32 = 1; -pub const POWER_LEVEL_USER_NOTIFY_SOUND: u32 = 2; -pub const POWER_LEVEL_USER_NOTIFY_EXEC: u32 = 4; -pub const POWER_USER_NOTIFY_BUTTON: u32 = 8; -pub const POWER_USER_NOTIFY_SHUTDOWN: u32 = 16; -pub const POWER_USER_NOTIFY_FORCED_SHUTDOWN: u32 = 32; -pub const POWER_FORCE_TRIGGER_RESET: u32 = 2147483648; -pub const BATTERY_DISCHARGE_FLAGS_EVENTCODE_MASK: u32 = 7; -pub const BATTERY_DISCHARGE_FLAGS_ENABLE: u32 = 2147483648; -pub const NUM_DISCHARGE_POLICIES: u32 = 4; -pub const DISCHARGE_POLICY_CRITICAL: u32 = 0; -pub const DISCHARGE_POLICY_LOW: u32 = 1; -pub const PROCESSOR_IDLESTATE_POLICY_COUNT: u32 = 3; -pub const PO_THROTTLE_NONE: u32 = 0; -pub const PO_THROTTLE_CONSTANT: u32 = 1; -pub const PO_THROTTLE_DEGRADE: u32 = 2; -pub const PO_THROTTLE_ADAPTIVE: u32 = 3; -pub const PO_THROTTLE_MAXIMUM: u32 = 4; -pub const HIBERFILE_TYPE_NONE: u32 = 0; -pub const HIBERFILE_TYPE_REDUCED: u32 = 1; -pub const HIBERFILE_TYPE_FULL: u32 = 2; -pub const HIBERFILE_TYPE_MAX: u32 = 3; -pub const IMAGE_DOS_SIGNATURE: u32 = 23117; -pub const IMAGE_OS2_SIGNATURE: u32 = 17742; -pub const IMAGE_OS2_SIGNATURE_LE: u32 = 17740; -pub const IMAGE_VXD_SIGNATURE: u32 = 17740; -pub const IMAGE_NT_SIGNATURE: u32 = 17744; -pub const IMAGE_SIZEOF_FILE_HEADER: u32 = 20; -pub const IMAGE_FILE_RELOCS_STRIPPED: u32 = 1; -pub const IMAGE_FILE_EXECUTABLE_IMAGE: u32 = 2; -pub const IMAGE_FILE_LINE_NUMS_STRIPPED: u32 = 4; -pub const IMAGE_FILE_LOCAL_SYMS_STRIPPED: u32 = 8; -pub const IMAGE_FILE_AGGRESIVE_WS_TRIM: u32 = 16; -pub const IMAGE_FILE_LARGE_ADDRESS_AWARE: u32 = 32; -pub const IMAGE_FILE_BYTES_REVERSED_LO: u32 = 128; -pub const IMAGE_FILE_32BIT_MACHINE: u32 = 256; -pub const IMAGE_FILE_DEBUG_STRIPPED: u32 = 512; -pub const IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP: u32 = 1024; -pub const IMAGE_FILE_NET_RUN_FROM_SWAP: u32 = 2048; -pub const IMAGE_FILE_SYSTEM: u32 = 4096; -pub const IMAGE_FILE_DLL: u32 = 8192; -pub const IMAGE_FILE_UP_SYSTEM_ONLY: u32 = 16384; -pub const IMAGE_FILE_BYTES_REVERSED_HI: u32 = 32768; -pub const IMAGE_FILE_MACHINE_UNKNOWN: u32 = 0; -pub const IMAGE_FILE_MACHINE_TARGET_HOST: u32 = 1; -pub const IMAGE_FILE_MACHINE_I386: u32 = 332; -pub const IMAGE_FILE_MACHINE_R3000: u32 = 354; -pub const IMAGE_FILE_MACHINE_R4000: u32 = 358; -pub const IMAGE_FILE_MACHINE_R10000: u32 = 360; -pub const IMAGE_FILE_MACHINE_WCEMIPSV2: u32 = 361; -pub const IMAGE_FILE_MACHINE_ALPHA: u32 = 388; -pub const IMAGE_FILE_MACHINE_SH3: u32 = 418; -pub const IMAGE_FILE_MACHINE_SH3DSP: u32 = 419; -pub const IMAGE_FILE_MACHINE_SH3E: u32 = 420; -pub const IMAGE_FILE_MACHINE_SH4: u32 = 422; -pub const IMAGE_FILE_MACHINE_SH5: u32 = 424; -pub const IMAGE_FILE_MACHINE_ARM: u32 = 448; -pub const IMAGE_FILE_MACHINE_THUMB: u32 = 450; -pub const IMAGE_FILE_MACHINE_ARMNT: u32 = 452; -pub const IMAGE_FILE_MACHINE_AM33: u32 = 467; -pub const IMAGE_FILE_MACHINE_POWERPC: u32 = 496; -pub const IMAGE_FILE_MACHINE_POWERPCFP: u32 = 497; -pub const IMAGE_FILE_MACHINE_IA64: u32 = 512; -pub const IMAGE_FILE_MACHINE_MIPS16: u32 = 614; -pub const IMAGE_FILE_MACHINE_ALPHA64: u32 = 644; -pub const IMAGE_FILE_MACHINE_MIPSFPU: u32 = 870; -pub const IMAGE_FILE_MACHINE_MIPSFPU16: u32 = 1126; -pub const IMAGE_FILE_MACHINE_AXP64: u32 = 644; -pub const IMAGE_FILE_MACHINE_TRICORE: u32 = 1312; -pub const IMAGE_FILE_MACHINE_CEF: u32 = 3311; -pub const IMAGE_FILE_MACHINE_EBC: u32 = 3772; -pub const IMAGE_FILE_MACHINE_AMD64: u32 = 34404; -pub const IMAGE_FILE_MACHINE_M32R: u32 = 36929; -pub const IMAGE_FILE_MACHINE_ARM64: u32 = 43620; -pub const IMAGE_FILE_MACHINE_CEE: u32 = 49390; -pub const IMAGE_NUMBEROF_DIRECTORY_ENTRIES: u32 = 16; -pub const IMAGE_NT_OPTIONAL_HDR32_MAGIC: u32 = 267; -pub const IMAGE_NT_OPTIONAL_HDR64_MAGIC: u32 = 523; -pub const IMAGE_ROM_OPTIONAL_HDR_MAGIC: u32 = 263; -pub const IMAGE_NT_OPTIONAL_HDR_MAGIC: u32 = 523; -pub const IMAGE_SUBSYSTEM_UNKNOWN: u32 = 0; -pub const IMAGE_SUBSYSTEM_NATIVE: u32 = 1; -pub const IMAGE_SUBSYSTEM_WINDOWS_GUI: u32 = 2; -pub const IMAGE_SUBSYSTEM_WINDOWS_CUI: u32 = 3; -pub const IMAGE_SUBSYSTEM_OS2_CUI: u32 = 5; -pub const IMAGE_SUBSYSTEM_POSIX_CUI: u32 = 7; -pub const IMAGE_SUBSYSTEM_NATIVE_WINDOWS: u32 = 8; -pub const IMAGE_SUBSYSTEM_WINDOWS_CE_GUI: u32 = 9; -pub const IMAGE_SUBSYSTEM_EFI_APPLICATION: u32 = 10; -pub const IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER: u32 = 11; -pub const IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER: u32 = 12; -pub const IMAGE_SUBSYSTEM_EFI_ROM: u32 = 13; -pub const IMAGE_SUBSYSTEM_XBOX: u32 = 14; -pub const IMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION: u32 = 16; -pub const IMAGE_SUBSYSTEM_XBOX_CODE_CATALOG: u32 = 17; -pub const IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA: u32 = 32; -pub const IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE: u32 = 64; -pub const IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY: u32 = 128; -pub const IMAGE_DLLCHARACTERISTICS_NX_COMPAT: u32 = 256; -pub const IMAGE_DLLCHARACTERISTICS_NO_ISOLATION: u32 = 512; -pub const IMAGE_DLLCHARACTERISTICS_NO_SEH: u32 = 1024; -pub const IMAGE_DLLCHARACTERISTICS_NO_BIND: u32 = 2048; -pub const IMAGE_DLLCHARACTERISTICS_APPCONTAINER: u32 = 4096; -pub const IMAGE_DLLCHARACTERISTICS_WDM_DRIVER: u32 = 8192; -pub const IMAGE_DLLCHARACTERISTICS_GUARD_CF: u32 = 16384; -pub const IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE: u32 = 32768; -pub const IMAGE_DIRECTORY_ENTRY_EXPORT: u32 = 0; -pub const IMAGE_DIRECTORY_ENTRY_IMPORT: u32 = 1; -pub const IMAGE_DIRECTORY_ENTRY_RESOURCE: u32 = 2; -pub const IMAGE_DIRECTORY_ENTRY_EXCEPTION: u32 = 3; -pub const IMAGE_DIRECTORY_ENTRY_SECURITY: u32 = 4; -pub const IMAGE_DIRECTORY_ENTRY_BASERELOC: u32 = 5; -pub const IMAGE_DIRECTORY_ENTRY_DEBUG: u32 = 6; -pub const IMAGE_DIRECTORY_ENTRY_ARCHITECTURE: u32 = 7; -pub const IMAGE_DIRECTORY_ENTRY_GLOBALPTR: u32 = 8; -pub const IMAGE_DIRECTORY_ENTRY_TLS: u32 = 9; -pub const IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG: u32 = 10; -pub const IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT: u32 = 11; -pub const IMAGE_DIRECTORY_ENTRY_IAT: u32 = 12; -pub const IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT: u32 = 13; -pub const IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR: u32 = 14; -pub const IMAGE_SIZEOF_SHORT_NAME: u32 = 8; -pub const IMAGE_SIZEOF_SECTION_HEADER: u32 = 40; -pub const IMAGE_SCN_TYPE_NO_PAD: u32 = 8; -pub const IMAGE_SCN_CNT_CODE: u32 = 32; -pub const IMAGE_SCN_CNT_INITIALIZED_DATA: u32 = 64; -pub const IMAGE_SCN_CNT_UNINITIALIZED_DATA: u32 = 128; -pub const IMAGE_SCN_LNK_OTHER: u32 = 256; -pub const IMAGE_SCN_LNK_INFO: u32 = 512; -pub const IMAGE_SCN_LNK_REMOVE: u32 = 2048; -pub const IMAGE_SCN_LNK_COMDAT: u32 = 4096; -pub const IMAGE_SCN_NO_DEFER_SPEC_EXC: u32 = 16384; -pub const IMAGE_SCN_GPREL: u32 = 32768; -pub const IMAGE_SCN_MEM_FARDATA: u32 = 32768; -pub const IMAGE_SCN_MEM_PURGEABLE: u32 = 131072; -pub const IMAGE_SCN_MEM_16BIT: u32 = 131072; -pub const IMAGE_SCN_MEM_LOCKED: u32 = 262144; -pub const IMAGE_SCN_MEM_PRELOAD: u32 = 524288; -pub const IMAGE_SCN_ALIGN_1BYTES: u32 = 1048576; -pub const IMAGE_SCN_ALIGN_2BYTES: u32 = 2097152; -pub const IMAGE_SCN_ALIGN_4BYTES: u32 = 3145728; -pub const IMAGE_SCN_ALIGN_8BYTES: u32 = 4194304; -pub const IMAGE_SCN_ALIGN_16BYTES: u32 = 5242880; -pub const IMAGE_SCN_ALIGN_32BYTES: u32 = 6291456; -pub const IMAGE_SCN_ALIGN_64BYTES: u32 = 7340032; -pub const IMAGE_SCN_ALIGN_128BYTES: u32 = 8388608; -pub const IMAGE_SCN_ALIGN_256BYTES: u32 = 9437184; -pub const IMAGE_SCN_ALIGN_512BYTES: u32 = 10485760; -pub const IMAGE_SCN_ALIGN_1024BYTES: u32 = 11534336; -pub const IMAGE_SCN_ALIGN_2048BYTES: u32 = 12582912; -pub const IMAGE_SCN_ALIGN_4096BYTES: u32 = 13631488; -pub const IMAGE_SCN_ALIGN_8192BYTES: u32 = 14680064; -pub const IMAGE_SCN_ALIGN_MASK: u32 = 15728640; -pub const IMAGE_SCN_LNK_NRELOC_OVFL: u32 = 16777216; -pub const IMAGE_SCN_MEM_DISCARDABLE: u32 = 33554432; -pub const IMAGE_SCN_MEM_NOT_CACHED: u32 = 67108864; -pub const IMAGE_SCN_MEM_NOT_PAGED: u32 = 134217728; -pub const IMAGE_SCN_MEM_SHARED: u32 = 268435456; -pub const IMAGE_SCN_MEM_EXECUTE: u32 = 536870912; -pub const IMAGE_SCN_MEM_READ: u32 = 1073741824; -pub const IMAGE_SCN_MEM_WRITE: u32 = 2147483648; -pub const IMAGE_SCN_SCALE_INDEX: u32 = 1; -pub const IMAGE_SIZEOF_SYMBOL: u32 = 18; -pub const IMAGE_SYM_SECTION_MAX: u32 = 65279; -pub const IMAGE_SYM_SECTION_MAX_EX: u32 = 2147483647; -pub const IMAGE_SYM_TYPE_NULL: u32 = 0; -pub const IMAGE_SYM_TYPE_VOID: u32 = 1; -pub const IMAGE_SYM_TYPE_CHAR: u32 = 2; -pub const IMAGE_SYM_TYPE_SHORT: u32 = 3; -pub const IMAGE_SYM_TYPE_INT: u32 = 4; -pub const IMAGE_SYM_TYPE_LONG: u32 = 5; -pub const IMAGE_SYM_TYPE_FLOAT: u32 = 6; -pub const IMAGE_SYM_TYPE_DOUBLE: u32 = 7; -pub const IMAGE_SYM_TYPE_STRUCT: u32 = 8; -pub const IMAGE_SYM_TYPE_UNION: u32 = 9; -pub const IMAGE_SYM_TYPE_ENUM: u32 = 10; -pub const IMAGE_SYM_TYPE_MOE: u32 = 11; -pub const IMAGE_SYM_TYPE_BYTE: u32 = 12; -pub const IMAGE_SYM_TYPE_WORD: u32 = 13; -pub const IMAGE_SYM_TYPE_UINT: u32 = 14; -pub const IMAGE_SYM_TYPE_DWORD: u32 = 15; -pub const IMAGE_SYM_TYPE_PCODE: u32 = 32768; -pub const IMAGE_SYM_DTYPE_NULL: u32 = 0; -pub const IMAGE_SYM_DTYPE_POINTER: u32 = 1; -pub const IMAGE_SYM_DTYPE_FUNCTION: u32 = 2; -pub const IMAGE_SYM_DTYPE_ARRAY: u32 = 3; -pub const IMAGE_SYM_CLASS_NULL: u32 = 0; -pub const IMAGE_SYM_CLASS_AUTOMATIC: u32 = 1; -pub const IMAGE_SYM_CLASS_EXTERNAL: u32 = 2; -pub const IMAGE_SYM_CLASS_STATIC: u32 = 3; -pub const IMAGE_SYM_CLASS_REGISTER: u32 = 4; -pub const IMAGE_SYM_CLASS_EXTERNAL_DEF: u32 = 5; -pub const IMAGE_SYM_CLASS_LABEL: u32 = 6; -pub const IMAGE_SYM_CLASS_UNDEFINED_LABEL: u32 = 7; -pub const IMAGE_SYM_CLASS_MEMBER_OF_STRUCT: u32 = 8; -pub const IMAGE_SYM_CLASS_ARGUMENT: u32 = 9; -pub const IMAGE_SYM_CLASS_STRUCT_TAG: u32 = 10; -pub const IMAGE_SYM_CLASS_MEMBER_OF_UNION: u32 = 11; -pub const IMAGE_SYM_CLASS_UNION_TAG: u32 = 12; -pub const IMAGE_SYM_CLASS_TYPE_DEFINITION: u32 = 13; -pub const IMAGE_SYM_CLASS_UNDEFINED_STATIC: u32 = 14; -pub const IMAGE_SYM_CLASS_ENUM_TAG: u32 = 15; -pub const IMAGE_SYM_CLASS_MEMBER_OF_ENUM: u32 = 16; -pub const IMAGE_SYM_CLASS_REGISTER_PARAM: u32 = 17; -pub const IMAGE_SYM_CLASS_BIT_FIELD: u32 = 18; -pub const IMAGE_SYM_CLASS_FAR_EXTERNAL: u32 = 68; -pub const IMAGE_SYM_CLASS_BLOCK: u32 = 100; -pub const IMAGE_SYM_CLASS_FUNCTION: u32 = 101; -pub const IMAGE_SYM_CLASS_END_OF_STRUCT: u32 = 102; -pub const IMAGE_SYM_CLASS_FILE: u32 = 103; -pub const IMAGE_SYM_CLASS_SECTION: u32 = 104; -pub const IMAGE_SYM_CLASS_WEAK_EXTERNAL: u32 = 105; -pub const IMAGE_SYM_CLASS_CLR_TOKEN: u32 = 107; -pub const N_BTMASK: u32 = 15; -pub const N_TMASK: u32 = 48; -pub const N_TMASK1: u32 = 192; -pub const N_TMASK2: u32 = 240; -pub const N_BTSHFT: u32 = 4; -pub const N_TSHIFT: u32 = 2; -pub const IMAGE_COMDAT_SELECT_NODUPLICATES: u32 = 1; -pub const IMAGE_COMDAT_SELECT_ANY: u32 = 2; -pub const IMAGE_COMDAT_SELECT_SAME_SIZE: u32 = 3; -pub const IMAGE_COMDAT_SELECT_EXACT_MATCH: u32 = 4; -pub const IMAGE_COMDAT_SELECT_ASSOCIATIVE: u32 = 5; -pub const IMAGE_COMDAT_SELECT_LARGEST: u32 = 6; -pub const IMAGE_COMDAT_SELECT_NEWEST: u32 = 7; -pub const IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY: u32 = 1; -pub const IMAGE_WEAK_EXTERN_SEARCH_LIBRARY: u32 = 2; -pub const IMAGE_WEAK_EXTERN_SEARCH_ALIAS: u32 = 3; -pub const IMAGE_WEAK_EXTERN_ANTI_DEPENDENCY: u32 = 4; -pub const IMAGE_REL_I386_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_I386_DIR16: u32 = 1; -pub const IMAGE_REL_I386_REL16: u32 = 2; -pub const IMAGE_REL_I386_DIR32: u32 = 6; -pub const IMAGE_REL_I386_DIR32NB: u32 = 7; -pub const IMAGE_REL_I386_SEG12: u32 = 9; -pub const IMAGE_REL_I386_SECTION: u32 = 10; -pub const IMAGE_REL_I386_SECREL: u32 = 11; -pub const IMAGE_REL_I386_TOKEN: u32 = 12; -pub const IMAGE_REL_I386_SECREL7: u32 = 13; -pub const IMAGE_REL_I386_REL32: u32 = 20; -pub const IMAGE_REL_MIPS_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_MIPS_REFHALF: u32 = 1; -pub const IMAGE_REL_MIPS_REFWORD: u32 = 2; -pub const IMAGE_REL_MIPS_JMPADDR: u32 = 3; -pub const IMAGE_REL_MIPS_REFHI: u32 = 4; -pub const IMAGE_REL_MIPS_REFLO: u32 = 5; -pub const IMAGE_REL_MIPS_GPREL: u32 = 6; -pub const IMAGE_REL_MIPS_LITERAL: u32 = 7; -pub const IMAGE_REL_MIPS_SECTION: u32 = 10; -pub const IMAGE_REL_MIPS_SECREL: u32 = 11; -pub const IMAGE_REL_MIPS_SECRELLO: u32 = 12; -pub const IMAGE_REL_MIPS_SECRELHI: u32 = 13; -pub const IMAGE_REL_MIPS_TOKEN: u32 = 14; -pub const IMAGE_REL_MIPS_JMPADDR16: u32 = 16; -pub const IMAGE_REL_MIPS_REFWORDNB: u32 = 34; -pub const IMAGE_REL_MIPS_PAIR: u32 = 37; -pub const IMAGE_REL_ALPHA_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_ALPHA_REFLONG: u32 = 1; -pub const IMAGE_REL_ALPHA_REFQUAD: u32 = 2; -pub const IMAGE_REL_ALPHA_GPREL32: u32 = 3; -pub const IMAGE_REL_ALPHA_LITERAL: u32 = 4; -pub const IMAGE_REL_ALPHA_LITUSE: u32 = 5; -pub const IMAGE_REL_ALPHA_GPDISP: u32 = 6; -pub const IMAGE_REL_ALPHA_BRADDR: u32 = 7; -pub const IMAGE_REL_ALPHA_HINT: u32 = 8; -pub const IMAGE_REL_ALPHA_INLINE_REFLONG: u32 = 9; -pub const IMAGE_REL_ALPHA_REFHI: u32 = 10; -pub const IMAGE_REL_ALPHA_REFLO: u32 = 11; -pub const IMAGE_REL_ALPHA_PAIR: u32 = 12; -pub const IMAGE_REL_ALPHA_MATCH: u32 = 13; -pub const IMAGE_REL_ALPHA_SECTION: u32 = 14; -pub const IMAGE_REL_ALPHA_SECREL: u32 = 15; -pub const IMAGE_REL_ALPHA_REFLONGNB: u32 = 16; -pub const IMAGE_REL_ALPHA_SECRELLO: u32 = 17; -pub const IMAGE_REL_ALPHA_SECRELHI: u32 = 18; -pub const IMAGE_REL_ALPHA_REFQ3: u32 = 19; -pub const IMAGE_REL_ALPHA_REFQ2: u32 = 20; -pub const IMAGE_REL_ALPHA_REFQ1: u32 = 21; -pub const IMAGE_REL_ALPHA_GPRELLO: u32 = 22; -pub const IMAGE_REL_ALPHA_GPRELHI: u32 = 23; -pub const IMAGE_REL_PPC_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_PPC_ADDR64: u32 = 1; -pub const IMAGE_REL_PPC_ADDR32: u32 = 2; -pub const IMAGE_REL_PPC_ADDR24: u32 = 3; -pub const IMAGE_REL_PPC_ADDR16: u32 = 4; -pub const IMAGE_REL_PPC_ADDR14: u32 = 5; -pub const IMAGE_REL_PPC_REL24: u32 = 6; -pub const IMAGE_REL_PPC_REL14: u32 = 7; -pub const IMAGE_REL_PPC_TOCREL16: u32 = 8; -pub const IMAGE_REL_PPC_TOCREL14: u32 = 9; -pub const IMAGE_REL_PPC_ADDR32NB: u32 = 10; -pub const IMAGE_REL_PPC_SECREL: u32 = 11; -pub const IMAGE_REL_PPC_SECTION: u32 = 12; -pub const IMAGE_REL_PPC_IFGLUE: u32 = 13; -pub const IMAGE_REL_PPC_IMGLUE: u32 = 14; -pub const IMAGE_REL_PPC_SECREL16: u32 = 15; -pub const IMAGE_REL_PPC_REFHI: u32 = 16; -pub const IMAGE_REL_PPC_REFLO: u32 = 17; -pub const IMAGE_REL_PPC_PAIR: u32 = 18; -pub const IMAGE_REL_PPC_SECRELLO: u32 = 19; -pub const IMAGE_REL_PPC_SECRELHI: u32 = 20; -pub const IMAGE_REL_PPC_GPREL: u32 = 21; -pub const IMAGE_REL_PPC_TOKEN: u32 = 22; -pub const IMAGE_REL_PPC_TYPEMASK: u32 = 255; -pub const IMAGE_REL_PPC_NEG: u32 = 256; -pub const IMAGE_REL_PPC_BRTAKEN: u32 = 512; -pub const IMAGE_REL_PPC_BRNTAKEN: u32 = 1024; -pub const IMAGE_REL_PPC_TOCDEFN: u32 = 2048; -pub const IMAGE_REL_SH3_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_SH3_DIRECT16: u32 = 1; -pub const IMAGE_REL_SH3_DIRECT32: u32 = 2; -pub const IMAGE_REL_SH3_DIRECT8: u32 = 3; -pub const IMAGE_REL_SH3_DIRECT8_WORD: u32 = 4; -pub const IMAGE_REL_SH3_DIRECT8_LONG: u32 = 5; -pub const IMAGE_REL_SH3_DIRECT4: u32 = 6; -pub const IMAGE_REL_SH3_DIRECT4_WORD: u32 = 7; -pub const IMAGE_REL_SH3_DIRECT4_LONG: u32 = 8; -pub const IMAGE_REL_SH3_PCREL8_WORD: u32 = 9; -pub const IMAGE_REL_SH3_PCREL8_LONG: u32 = 10; -pub const IMAGE_REL_SH3_PCREL12_WORD: u32 = 11; -pub const IMAGE_REL_SH3_STARTOF_SECTION: u32 = 12; -pub const IMAGE_REL_SH3_SIZEOF_SECTION: u32 = 13; -pub const IMAGE_REL_SH3_SECTION: u32 = 14; -pub const IMAGE_REL_SH3_SECREL: u32 = 15; -pub const IMAGE_REL_SH3_DIRECT32_NB: u32 = 16; -pub const IMAGE_REL_SH3_GPREL4_LONG: u32 = 17; -pub const IMAGE_REL_SH3_TOKEN: u32 = 18; -pub const IMAGE_REL_SHM_PCRELPT: u32 = 19; -pub const IMAGE_REL_SHM_REFLO: u32 = 20; -pub const IMAGE_REL_SHM_REFHALF: u32 = 21; -pub const IMAGE_REL_SHM_RELLO: u32 = 22; -pub const IMAGE_REL_SHM_RELHALF: u32 = 23; -pub const IMAGE_REL_SHM_PAIR: u32 = 24; -pub const IMAGE_REL_SH_NOMODE: u32 = 32768; -pub const IMAGE_REL_ARM_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_ARM_ADDR32: u32 = 1; -pub const IMAGE_REL_ARM_ADDR32NB: u32 = 2; -pub const IMAGE_REL_ARM_BRANCH24: u32 = 3; -pub const IMAGE_REL_ARM_BRANCH11: u32 = 4; -pub const IMAGE_REL_ARM_TOKEN: u32 = 5; -pub const IMAGE_REL_ARM_GPREL12: u32 = 6; -pub const IMAGE_REL_ARM_GPREL7: u32 = 7; -pub const IMAGE_REL_ARM_BLX24: u32 = 8; -pub const IMAGE_REL_ARM_BLX11: u32 = 9; -pub const IMAGE_REL_ARM_SECTION: u32 = 14; -pub const IMAGE_REL_ARM_SECREL: u32 = 15; -pub const IMAGE_REL_ARM_MOV32A: u32 = 16; -pub const IMAGE_REL_ARM_MOV32: u32 = 16; -pub const IMAGE_REL_ARM_MOV32T: u32 = 17; -pub const IMAGE_REL_THUMB_MOV32: u32 = 17; -pub const IMAGE_REL_ARM_BRANCH20T: u32 = 18; -pub const IMAGE_REL_THUMB_BRANCH20: u32 = 18; -pub const IMAGE_REL_ARM_BRANCH24T: u32 = 20; -pub const IMAGE_REL_THUMB_BRANCH24: u32 = 20; -pub const IMAGE_REL_ARM_BLX23T: u32 = 21; -pub const IMAGE_REL_THUMB_BLX23: u32 = 21; -pub const IMAGE_REL_AM_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_AM_ADDR32: u32 = 1; -pub const IMAGE_REL_AM_ADDR32NB: u32 = 2; -pub const IMAGE_REL_AM_CALL32: u32 = 3; -pub const IMAGE_REL_AM_FUNCINFO: u32 = 4; -pub const IMAGE_REL_AM_REL32_1: u32 = 5; -pub const IMAGE_REL_AM_REL32_2: u32 = 6; -pub const IMAGE_REL_AM_SECREL: u32 = 7; -pub const IMAGE_REL_AM_SECTION: u32 = 8; -pub const IMAGE_REL_AM_TOKEN: u32 = 9; -pub const IMAGE_REL_ARM64_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_ARM64_ADDR32: u32 = 1; -pub const IMAGE_REL_ARM64_ADDR32NB: u32 = 2; -pub const IMAGE_REL_ARM64_BRANCH26: u32 = 3; -pub const IMAGE_REL_ARM64_PAGEBASE_REL21: u32 = 4; -pub const IMAGE_REL_ARM64_REL21: u32 = 5; -pub const IMAGE_REL_ARM64_PAGEOFFSET_12A: u32 = 6; -pub const IMAGE_REL_ARM64_PAGEOFFSET_12L: u32 = 7; -pub const IMAGE_REL_ARM64_SECREL: u32 = 8; -pub const IMAGE_REL_ARM64_SECREL_LOW12A: u32 = 9; -pub const IMAGE_REL_ARM64_SECREL_HIGH12A: u32 = 10; -pub const IMAGE_REL_ARM64_SECREL_LOW12L: u32 = 11; -pub const IMAGE_REL_ARM64_TOKEN: u32 = 12; -pub const IMAGE_REL_ARM64_SECTION: u32 = 13; -pub const IMAGE_REL_ARM64_ADDR64: u32 = 14; -pub const IMAGE_REL_ARM64_BRANCH19: u32 = 15; -pub const IMAGE_REL_AMD64_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_AMD64_ADDR64: u32 = 1; -pub const IMAGE_REL_AMD64_ADDR32: u32 = 2; -pub const IMAGE_REL_AMD64_ADDR32NB: u32 = 3; -pub const IMAGE_REL_AMD64_REL32: u32 = 4; -pub const IMAGE_REL_AMD64_REL32_1: u32 = 5; -pub const IMAGE_REL_AMD64_REL32_2: u32 = 6; -pub const IMAGE_REL_AMD64_REL32_3: u32 = 7; -pub const IMAGE_REL_AMD64_REL32_4: u32 = 8; -pub const IMAGE_REL_AMD64_REL32_5: u32 = 9; -pub const IMAGE_REL_AMD64_SECTION: u32 = 10; -pub const IMAGE_REL_AMD64_SECREL: u32 = 11; -pub const IMAGE_REL_AMD64_SECREL7: u32 = 12; -pub const IMAGE_REL_AMD64_TOKEN: u32 = 13; -pub const IMAGE_REL_AMD64_SREL32: u32 = 14; -pub const IMAGE_REL_AMD64_PAIR: u32 = 15; -pub const IMAGE_REL_AMD64_SSPAN32: u32 = 16; -pub const IMAGE_REL_AMD64_EHANDLER: u32 = 17; -pub const IMAGE_REL_AMD64_IMPORT_BR: u32 = 18; -pub const IMAGE_REL_AMD64_IMPORT_CALL: u32 = 19; -pub const IMAGE_REL_AMD64_CFG_BR: u32 = 20; -pub const IMAGE_REL_AMD64_CFG_BR_REX: u32 = 21; -pub const IMAGE_REL_AMD64_CFG_CALL: u32 = 22; -pub const IMAGE_REL_AMD64_INDIR_BR: u32 = 23; -pub const IMAGE_REL_AMD64_INDIR_BR_REX: u32 = 24; -pub const IMAGE_REL_AMD64_INDIR_CALL: u32 = 25; -pub const IMAGE_REL_AMD64_INDIR_BR_SWITCHTABLE_FIRST: u32 = 32; -pub const IMAGE_REL_AMD64_INDIR_BR_SWITCHTABLE_LAST: u32 = 47; -pub const IMAGE_REL_IA64_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_IA64_IMM14: u32 = 1; -pub const IMAGE_REL_IA64_IMM22: u32 = 2; -pub const IMAGE_REL_IA64_IMM64: u32 = 3; -pub const IMAGE_REL_IA64_DIR32: u32 = 4; -pub const IMAGE_REL_IA64_DIR64: u32 = 5; -pub const IMAGE_REL_IA64_PCREL21B: u32 = 6; -pub const IMAGE_REL_IA64_PCREL21M: u32 = 7; -pub const IMAGE_REL_IA64_PCREL21F: u32 = 8; -pub const IMAGE_REL_IA64_GPREL22: u32 = 9; -pub const IMAGE_REL_IA64_LTOFF22: u32 = 10; -pub const IMAGE_REL_IA64_SECTION: u32 = 11; -pub const IMAGE_REL_IA64_SECREL22: u32 = 12; -pub const IMAGE_REL_IA64_SECREL64I: u32 = 13; -pub const IMAGE_REL_IA64_SECREL32: u32 = 14; -pub const IMAGE_REL_IA64_DIR32NB: u32 = 16; -pub const IMAGE_REL_IA64_SREL14: u32 = 17; -pub const IMAGE_REL_IA64_SREL22: u32 = 18; -pub const IMAGE_REL_IA64_SREL32: u32 = 19; -pub const IMAGE_REL_IA64_UREL32: u32 = 20; -pub const IMAGE_REL_IA64_PCREL60X: u32 = 21; -pub const IMAGE_REL_IA64_PCREL60B: u32 = 22; -pub const IMAGE_REL_IA64_PCREL60F: u32 = 23; -pub const IMAGE_REL_IA64_PCREL60I: u32 = 24; -pub const IMAGE_REL_IA64_PCREL60M: u32 = 25; -pub const IMAGE_REL_IA64_IMMGPREL64: u32 = 26; -pub const IMAGE_REL_IA64_TOKEN: u32 = 27; -pub const IMAGE_REL_IA64_GPREL32: u32 = 28; -pub const IMAGE_REL_IA64_ADDEND: u32 = 31; -pub const IMAGE_REL_CEF_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_CEF_ADDR32: u32 = 1; -pub const IMAGE_REL_CEF_ADDR64: u32 = 2; -pub const IMAGE_REL_CEF_ADDR32NB: u32 = 3; -pub const IMAGE_REL_CEF_SECTION: u32 = 4; -pub const IMAGE_REL_CEF_SECREL: u32 = 5; -pub const IMAGE_REL_CEF_TOKEN: u32 = 6; -pub const IMAGE_REL_CEE_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_CEE_ADDR32: u32 = 1; -pub const IMAGE_REL_CEE_ADDR64: u32 = 2; -pub const IMAGE_REL_CEE_ADDR32NB: u32 = 3; -pub const IMAGE_REL_CEE_SECTION: u32 = 4; -pub const IMAGE_REL_CEE_SECREL: u32 = 5; -pub const IMAGE_REL_CEE_TOKEN: u32 = 6; -pub const IMAGE_REL_M32R_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_M32R_ADDR32: u32 = 1; -pub const IMAGE_REL_M32R_ADDR32NB: u32 = 2; -pub const IMAGE_REL_M32R_ADDR24: u32 = 3; -pub const IMAGE_REL_M32R_GPREL16: u32 = 4; -pub const IMAGE_REL_M32R_PCREL24: u32 = 5; -pub const IMAGE_REL_M32R_PCREL16: u32 = 6; -pub const IMAGE_REL_M32R_PCREL8: u32 = 7; -pub const IMAGE_REL_M32R_REFHALF: u32 = 8; -pub const IMAGE_REL_M32R_REFHI: u32 = 9; -pub const IMAGE_REL_M32R_REFLO: u32 = 10; -pub const IMAGE_REL_M32R_PAIR: u32 = 11; -pub const IMAGE_REL_M32R_SECTION: u32 = 12; -pub const IMAGE_REL_M32R_SECREL32: u32 = 13; -pub const IMAGE_REL_M32R_TOKEN: u32 = 14; -pub const IMAGE_REL_EBC_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_EBC_ADDR32NB: u32 = 1; -pub const IMAGE_REL_EBC_REL32: u32 = 2; -pub const IMAGE_REL_EBC_SECTION: u32 = 3; -pub const IMAGE_REL_EBC_SECREL: u32 = 4; -pub const EMARCH_ENC_I17_IMM7B_INST_WORD_X: u32 = 3; -pub const EMARCH_ENC_I17_IMM7B_SIZE_X: u32 = 7; -pub const EMARCH_ENC_I17_IMM7B_INST_WORD_POS_X: u32 = 4; -pub const EMARCH_ENC_I17_IMM7B_VAL_POS_X: u32 = 0; -pub const EMARCH_ENC_I17_IMM9D_INST_WORD_X: u32 = 3; -pub const EMARCH_ENC_I17_IMM9D_SIZE_X: u32 = 9; -pub const EMARCH_ENC_I17_IMM9D_INST_WORD_POS_X: u32 = 18; -pub const EMARCH_ENC_I17_IMM9D_VAL_POS_X: u32 = 7; -pub const EMARCH_ENC_I17_IMM5C_INST_WORD_X: u32 = 3; -pub const EMARCH_ENC_I17_IMM5C_SIZE_X: u32 = 5; -pub const EMARCH_ENC_I17_IMM5C_INST_WORD_POS_X: u32 = 13; -pub const EMARCH_ENC_I17_IMM5C_VAL_POS_X: u32 = 16; -pub const EMARCH_ENC_I17_IC_INST_WORD_X: u32 = 3; -pub const EMARCH_ENC_I17_IC_SIZE_X: u32 = 1; -pub const EMARCH_ENC_I17_IC_INST_WORD_POS_X: u32 = 12; -pub const EMARCH_ENC_I17_IC_VAL_POS_X: u32 = 21; -pub const EMARCH_ENC_I17_IMM41a_INST_WORD_X: u32 = 1; -pub const EMARCH_ENC_I17_IMM41a_SIZE_X: u32 = 10; -pub const EMARCH_ENC_I17_IMM41a_INST_WORD_POS_X: u32 = 14; -pub const EMARCH_ENC_I17_IMM41a_VAL_POS_X: u32 = 22; -pub const EMARCH_ENC_I17_IMM41b_INST_WORD_X: u32 = 1; -pub const EMARCH_ENC_I17_IMM41b_SIZE_X: u32 = 8; -pub const EMARCH_ENC_I17_IMM41b_INST_WORD_POS_X: u32 = 24; -pub const EMARCH_ENC_I17_IMM41b_VAL_POS_X: u32 = 32; -pub const EMARCH_ENC_I17_IMM41c_INST_WORD_X: u32 = 2; -pub const EMARCH_ENC_I17_IMM41c_SIZE_X: u32 = 23; -pub const EMARCH_ENC_I17_IMM41c_INST_WORD_POS_X: u32 = 0; -pub const EMARCH_ENC_I17_IMM41c_VAL_POS_X: u32 = 40; -pub const EMARCH_ENC_I17_SIGN_INST_WORD_X: u32 = 3; -pub const EMARCH_ENC_I17_SIGN_SIZE_X: u32 = 1; -pub const EMARCH_ENC_I17_SIGN_INST_WORD_POS_X: u32 = 27; -pub const EMARCH_ENC_I17_SIGN_VAL_POS_X: u32 = 63; -pub const X3_OPCODE_INST_WORD_X: u32 = 3; -pub const X3_OPCODE_SIZE_X: u32 = 4; -pub const X3_OPCODE_INST_WORD_POS_X: u32 = 28; -pub const X3_OPCODE_SIGN_VAL_POS_X: u32 = 0; -pub const X3_I_INST_WORD_X: u32 = 3; -pub const X3_I_SIZE_X: u32 = 1; -pub const X3_I_INST_WORD_POS_X: u32 = 27; -pub const X3_I_SIGN_VAL_POS_X: u32 = 59; -pub const X3_D_WH_INST_WORD_X: u32 = 3; -pub const X3_D_WH_SIZE_X: u32 = 3; -pub const X3_D_WH_INST_WORD_POS_X: u32 = 24; -pub const X3_D_WH_SIGN_VAL_POS_X: u32 = 0; -pub const X3_IMM20_INST_WORD_X: u32 = 3; -pub const X3_IMM20_SIZE_X: u32 = 20; -pub const X3_IMM20_INST_WORD_POS_X: u32 = 4; -pub const X3_IMM20_SIGN_VAL_POS_X: u32 = 0; -pub const X3_IMM39_1_INST_WORD_X: u32 = 2; -pub const X3_IMM39_1_SIZE_X: u32 = 23; -pub const X3_IMM39_1_INST_WORD_POS_X: u32 = 0; -pub const X3_IMM39_1_SIGN_VAL_POS_X: u32 = 36; -pub const X3_IMM39_2_INST_WORD_X: u32 = 1; -pub const X3_IMM39_2_SIZE_X: u32 = 16; -pub const X3_IMM39_2_INST_WORD_POS_X: u32 = 16; -pub const X3_IMM39_2_SIGN_VAL_POS_X: u32 = 20; -pub const X3_P_INST_WORD_X: u32 = 3; -pub const X3_P_SIZE_X: u32 = 4; -pub const X3_P_INST_WORD_POS_X: u32 = 0; -pub const X3_P_SIGN_VAL_POS_X: u32 = 0; -pub const X3_TMPLT_INST_WORD_X: u32 = 0; -pub const X3_TMPLT_SIZE_X: u32 = 4; -pub const X3_TMPLT_INST_WORD_POS_X: u32 = 0; -pub const X3_TMPLT_SIGN_VAL_POS_X: u32 = 0; -pub const X3_BTYPE_QP_INST_WORD_X: u32 = 2; -pub const X3_BTYPE_QP_SIZE_X: u32 = 9; -pub const X3_BTYPE_QP_INST_WORD_POS_X: u32 = 23; -pub const X3_BTYPE_QP_INST_VAL_POS_X: u32 = 0; -pub const X3_EMPTY_INST_WORD_X: u32 = 1; -pub const X3_EMPTY_SIZE_X: u32 = 2; -pub const X3_EMPTY_INST_WORD_POS_X: u32 = 14; -pub const X3_EMPTY_INST_VAL_POS_X: u32 = 0; -pub const IMAGE_REL_BASED_ABSOLUTE: u32 = 0; -pub const IMAGE_REL_BASED_HIGH: u32 = 1; -pub const IMAGE_REL_BASED_LOW: u32 = 2; -pub const IMAGE_REL_BASED_HIGHLOW: u32 = 3; -pub const IMAGE_REL_BASED_HIGHADJ: u32 = 4; -pub const IMAGE_REL_BASED_MACHINE_SPECIFIC_5: u32 = 5; -pub const IMAGE_REL_BASED_RESERVED: u32 = 6; -pub const IMAGE_REL_BASED_MACHINE_SPECIFIC_7: u32 = 7; -pub const IMAGE_REL_BASED_MACHINE_SPECIFIC_8: u32 = 8; -pub const IMAGE_REL_BASED_MACHINE_SPECIFIC_9: u32 = 9; -pub const IMAGE_REL_BASED_DIR64: u32 = 10; -pub const IMAGE_REL_BASED_IA64_IMM64: u32 = 9; -pub const IMAGE_REL_BASED_MIPS_JMPADDR: u32 = 5; -pub const IMAGE_REL_BASED_MIPS_JMPADDR16: u32 = 9; -pub const IMAGE_REL_BASED_ARM_MOV32: u32 = 5; -pub const IMAGE_REL_BASED_THUMB_MOV32: u32 = 7; -pub const IMAGE_ARCHIVE_START_SIZE: u32 = 8; -pub const IMAGE_ARCHIVE_START: &[u8; 9] = b"!\n\0"; -pub const IMAGE_ARCHIVE_END: &[u8; 3] = b"`\n\0"; -pub const IMAGE_ARCHIVE_PAD: &[u8; 2] = b"\n\0"; -pub const IMAGE_ARCHIVE_LINKER_MEMBER: &[u8; 17] = b"/ \0"; -pub const IMAGE_ARCHIVE_LONGNAMES_MEMBER: &[u8; 17] = b"// \0"; -pub const IMAGE_ARCHIVE_HYBRIDMAP_MEMBER: &[u8; 17] = b"// \0"; -pub const IMAGE_SIZEOF_ARCHIVE_MEMBER_HDR: u32 = 60; -pub const IMAGE_ORDINAL_FLAG64: i64 = -9223372036854775808; -pub const IMAGE_ORDINAL_FLAG32: u32 = 2147483648; -pub const IMAGE_ORDINAL_FLAG: i64 = -9223372036854775808; -pub const IMAGE_RESOURCE_NAME_IS_STRING: u32 = 2147483648; -pub const IMAGE_RESOURCE_DATA_IS_DIRECTORY: u32 = 2147483648; -pub const IMAGE_DYNAMIC_RELOCATION_GUARD_RF_PROLOGUE: u32 = 1; -pub const IMAGE_DYNAMIC_RELOCATION_GUARD_RF_EPILOGUE: u32 = 2; -pub const IMAGE_DYNAMIC_RELOCATION_GUARD_IMPORT_CONTROL_TRANSFER: u32 = 3; -pub const IMAGE_DYNAMIC_RELOCATION_GUARD_INDIR_CONTROL_TRANSFER: u32 = 4; -pub const IMAGE_DYNAMIC_RELOCATION_GUARD_SWITCHTABLE_BRANCH: u32 = 5; -pub const IMAGE_DYNAMIC_RELOCATION_FUNCTION_OVERRIDE: u32 = 7; -pub const IMAGE_FUNCTION_OVERRIDE_INVALID: u32 = 0; -pub const IMAGE_FUNCTION_OVERRIDE_X64_REL32: u32 = 1; -pub const IMAGE_FUNCTION_OVERRIDE_ARM64_BRANCH26: u32 = 2; -pub const IMAGE_FUNCTION_OVERRIDE_ARM64_THUNK: u32 = 3; -pub const IMAGE_HOT_PATCH_BASE_OBLIGATORY: u32 = 1; -pub const IMAGE_HOT_PATCH_BASE_CAN_ROLL_BACK: u32 = 2; -pub const IMAGE_HOT_PATCH_CHUNK_INVERSE: u32 = 2147483648; -pub const IMAGE_HOT_PATCH_CHUNK_OBLIGATORY: u32 = 1073741824; -pub const IMAGE_HOT_PATCH_CHUNK_RESERVED: u32 = 1072705536; -pub const IMAGE_HOT_PATCH_CHUNK_TYPE: u32 = 1032192; -pub const IMAGE_HOT_PATCH_CHUNK_SOURCE_RVA: u32 = 32768; -pub const IMAGE_HOT_PATCH_CHUNK_TARGET_RVA: u32 = 16384; -pub const IMAGE_HOT_PATCH_CHUNK_SIZE: u32 = 4095; -pub const IMAGE_HOT_PATCH_NONE: u32 = 0; -pub const IMAGE_HOT_PATCH_FUNCTION: u32 = 114688; -pub const IMAGE_HOT_PATCH_ABSOLUTE: u32 = 180224; -pub const IMAGE_HOT_PATCH_REL32: u32 = 245760; -pub const IMAGE_HOT_PATCH_CALL_TARGET: u32 = 278528; -pub const IMAGE_HOT_PATCH_INDIRECT: u32 = 376832; -pub const IMAGE_HOT_PATCH_NO_CALL_TARGET: u32 = 409600; -pub const IMAGE_HOT_PATCH_DYNAMIC_VALUE: u32 = 491520; -pub const IMAGE_GUARD_CF_INSTRUMENTED: u32 = 256; -pub const IMAGE_GUARD_CFW_INSTRUMENTED: u32 = 512; -pub const IMAGE_GUARD_CF_FUNCTION_TABLE_PRESENT: u32 = 1024; -pub const IMAGE_GUARD_SECURITY_COOKIE_UNUSED: u32 = 2048; -pub const IMAGE_GUARD_PROTECT_DELAYLOAD_IAT: u32 = 4096; -pub const IMAGE_GUARD_DELAYLOAD_IAT_IN_ITS_OWN_SECTION: u32 = 8192; -pub const IMAGE_GUARD_CF_EXPORT_SUPPRESSION_INFO_PRESENT: u32 = 16384; -pub const IMAGE_GUARD_CF_ENABLE_EXPORT_SUPPRESSION: u32 = 32768; -pub const IMAGE_GUARD_CF_LONGJUMP_TABLE_PRESENT: u32 = 65536; -pub const IMAGE_GUARD_RF_INSTRUMENTED: u32 = 131072; -pub const IMAGE_GUARD_RF_ENABLE: u32 = 262144; -pub const IMAGE_GUARD_RF_STRICT: u32 = 524288; -pub const IMAGE_GUARD_RETPOLINE_PRESENT: u32 = 1048576; -pub const IMAGE_GUARD_EH_CONTINUATION_TABLE_PRESENT: u32 = 4194304; -pub const IMAGE_GUARD_XFG_ENABLED: u32 = 8388608; -pub const IMAGE_GUARD_CASTGUARD_PRESENT: u32 = 16777216; -pub const IMAGE_GUARD_MEMCPY_PRESENT: u32 = 33554432; -pub const IMAGE_GUARD_CF_FUNCTION_TABLE_SIZE_MASK: u32 = 4026531840; -pub const IMAGE_GUARD_CF_FUNCTION_TABLE_SIZE_SHIFT: u32 = 28; -pub const IMAGE_GUARD_FLAG_FID_SUPPRESSED: u32 = 1; -pub const IMAGE_GUARD_FLAG_EXPORT_SUPPRESSED: u32 = 2; -pub const IMAGE_GUARD_FLAG_FID_LANGEXCPTHANDLER: u32 = 4; -pub const IMAGE_GUARD_FLAG_FID_XFG: u32 = 8; -pub const IMAGE_ENCLAVE_LONG_ID_LENGTH: u32 = 32; -pub const IMAGE_ENCLAVE_SHORT_ID_LENGTH: u32 = 16; -pub const IMAGE_ENCLAVE_POLICY_DEBUGGABLE: u32 = 1; -pub const IMAGE_ENCLAVE_FLAG_PRIMARY_IMAGE: u32 = 1; -pub const IMAGE_ENCLAVE_IMPORT_MATCH_NONE: u32 = 0; -pub const IMAGE_ENCLAVE_IMPORT_MATCH_UNIQUE_ID: u32 = 1; -pub const IMAGE_ENCLAVE_IMPORT_MATCH_AUTHOR_ID: u32 = 2; -pub const IMAGE_ENCLAVE_IMPORT_MATCH_FAMILY_ID: u32 = 3; -pub const IMAGE_ENCLAVE_IMPORT_MATCH_IMAGE_ID: u32 = 4; -pub const IMAGE_DEBUG_TYPE_UNKNOWN: u32 = 0; -pub const IMAGE_DEBUG_TYPE_COFF: u32 = 1; -pub const IMAGE_DEBUG_TYPE_CODEVIEW: u32 = 2; -pub const IMAGE_DEBUG_TYPE_FPO: u32 = 3; -pub const IMAGE_DEBUG_TYPE_MISC: u32 = 4; -pub const IMAGE_DEBUG_TYPE_EXCEPTION: u32 = 5; -pub const IMAGE_DEBUG_TYPE_FIXUP: u32 = 6; -pub const IMAGE_DEBUG_TYPE_OMAP_TO_SRC: u32 = 7; -pub const IMAGE_DEBUG_TYPE_OMAP_FROM_SRC: u32 = 8; -pub const IMAGE_DEBUG_TYPE_BORLAND: u32 = 9; -pub const IMAGE_DEBUG_TYPE_RESERVED10: u32 = 10; -pub const IMAGE_DEBUG_TYPE_BBT: u32 = 10; -pub const IMAGE_DEBUG_TYPE_CLSID: u32 = 11; -pub const IMAGE_DEBUG_TYPE_VC_FEATURE: u32 = 12; -pub const IMAGE_DEBUG_TYPE_POGO: u32 = 13; -pub const IMAGE_DEBUG_TYPE_ILTCG: u32 = 14; -pub const IMAGE_DEBUG_TYPE_MPX: u32 = 15; -pub const IMAGE_DEBUG_TYPE_REPRO: u32 = 16; -pub const IMAGE_DEBUG_TYPE_SPGO: u32 = 18; -pub const IMAGE_DEBUG_TYPE_EX_DLLCHARACTERISTICS: u32 = 20; -pub const IMAGE_DLLCHARACTERISTICS_EX_CET_COMPAT: u32 = 1; -pub const IMAGE_DLLCHARACTERISTICS_EX_CET_COMPAT_STRICT_MODE: u32 = 2; -pub const IMAGE_DLLCHARACTERISTICS_EX_CET_SET_CONTEXT_IP_VALIDATION_RELAXED_MODE: u32 = 4; -pub const IMAGE_DLLCHARACTERISTICS_EX_CET_DYNAMIC_APIS_ALLOW_IN_PROC: u32 = 8; -pub const IMAGE_DLLCHARACTERISTICS_EX_CET_RESERVED_1: u32 = 16; -pub const IMAGE_DLLCHARACTERISTICS_EX_CET_RESERVED_2: u32 = 32; -pub const FRAME_FPO: u32 = 0; -pub const FRAME_TRAP: u32 = 1; -pub const FRAME_TSS: u32 = 2; -pub const FRAME_NONFPO: u32 = 3; -pub const SIZEOF_RFPO_DATA: u32 = 16; -pub const IMAGE_DEBUG_MISC_EXENAME: u32 = 1; -pub const IMAGE_SEPARATE_DEBUG_SIGNATURE: u32 = 18756; -pub const NON_PAGED_DEBUG_SIGNATURE: u32 = 18766; -pub const IMAGE_SEPARATE_DEBUG_FLAGS_MASK: u32 = 32768; -pub const IMAGE_SEPARATE_DEBUG_MISMATCH: u32 = 32768; -pub const IMPORT_OBJECT_HDR_SIG2: u32 = 65535; -pub const UNWIND_HISTORY_TABLE_SIZE: u32 = 12; -pub const RTL_RUN_ONCE_CHECK_ONLY: u32 = 1; -pub const RTL_RUN_ONCE_ASYNC: u32 = 2; -pub const RTL_RUN_ONCE_INIT_FAILED: u32 = 4; -pub const RTL_RUN_ONCE_CTX_RESERVED_BITS: u32 = 2; -pub const FAST_FAIL_LEGACY_GS_VIOLATION: u32 = 0; -pub const FAST_FAIL_VTGUARD_CHECK_FAILURE: u32 = 1; -pub const FAST_FAIL_STACK_COOKIE_CHECK_FAILURE: u32 = 2; -pub const FAST_FAIL_CORRUPT_LIST_ENTRY: u32 = 3; -pub const FAST_FAIL_INCORRECT_STACK: u32 = 4; -pub const FAST_FAIL_INVALID_ARG: u32 = 5; -pub const FAST_FAIL_GS_COOKIE_INIT: u32 = 6; -pub const FAST_FAIL_FATAL_APP_EXIT: u32 = 7; -pub const FAST_FAIL_RANGE_CHECK_FAILURE: u32 = 8; -pub const FAST_FAIL_UNSAFE_REGISTRY_ACCESS: u32 = 9; -pub const FAST_FAIL_GUARD_ICALL_CHECK_FAILURE: u32 = 10; -pub const FAST_FAIL_GUARD_WRITE_CHECK_FAILURE: u32 = 11; -pub const FAST_FAIL_INVALID_FIBER_SWITCH: u32 = 12; -pub const FAST_FAIL_INVALID_SET_OF_CONTEXT: u32 = 13; -pub const FAST_FAIL_INVALID_REFERENCE_COUNT: u32 = 14; -pub const FAST_FAIL_INVALID_JUMP_BUFFER: u32 = 18; -pub const FAST_FAIL_MRDATA_MODIFIED: u32 = 19; -pub const FAST_FAIL_CERTIFICATION_FAILURE: u32 = 20; -pub const FAST_FAIL_INVALID_EXCEPTION_CHAIN: u32 = 21; -pub const FAST_FAIL_CRYPTO_LIBRARY: u32 = 22; -pub const FAST_FAIL_INVALID_CALL_IN_DLL_CALLOUT: u32 = 23; -pub const FAST_FAIL_INVALID_IMAGE_BASE: u32 = 24; -pub const FAST_FAIL_DLOAD_PROTECTION_FAILURE: u32 = 25; -pub const FAST_FAIL_UNSAFE_EXTENSION_CALL: u32 = 26; -pub const FAST_FAIL_DEPRECATED_SERVICE_INVOKED: u32 = 27; -pub const FAST_FAIL_INVALID_BUFFER_ACCESS: u32 = 28; -pub const FAST_FAIL_INVALID_BALANCED_TREE: u32 = 29; -pub const FAST_FAIL_INVALID_NEXT_THREAD: u32 = 30; -pub const FAST_FAIL_GUARD_ICALL_CHECK_SUPPRESSED: u32 = 31; -pub const FAST_FAIL_APCS_DISABLED: u32 = 32; -pub const FAST_FAIL_INVALID_IDLE_STATE: u32 = 33; -pub const FAST_FAIL_MRDATA_PROTECTION_FAILURE: u32 = 34; -pub const FAST_FAIL_UNEXPECTED_HEAP_EXCEPTION: u32 = 35; -pub const FAST_FAIL_INVALID_LOCK_STATE: u32 = 36; -pub const FAST_FAIL_GUARD_JUMPTABLE: u32 = 37; -pub const FAST_FAIL_INVALID_LONGJUMP_TARGET: u32 = 38; -pub const FAST_FAIL_INVALID_DISPATCH_CONTEXT: u32 = 39; -pub const FAST_FAIL_INVALID_THREAD: u32 = 40; -pub const FAST_FAIL_INVALID_SYSCALL_NUMBER: u32 = 41; -pub const FAST_FAIL_INVALID_FILE_OPERATION: u32 = 42; -pub const FAST_FAIL_LPAC_ACCESS_DENIED: u32 = 43; -pub const FAST_FAIL_GUARD_SS_FAILURE: u32 = 44; -pub const FAST_FAIL_LOADER_CONTINUITY_FAILURE: u32 = 45; -pub const FAST_FAIL_GUARD_EXPORT_SUPPRESSION_FAILURE: u32 = 46; -pub const FAST_FAIL_INVALID_CONTROL_STACK: u32 = 47; -pub const FAST_FAIL_SET_CONTEXT_DENIED: u32 = 48; -pub const FAST_FAIL_INVALID_IAT: u32 = 49; -pub const FAST_FAIL_HEAP_METADATA_CORRUPTION: u32 = 50; -pub const FAST_FAIL_PAYLOAD_RESTRICTION_VIOLATION: u32 = 51; -pub const FAST_FAIL_LOW_LABEL_ACCESS_DENIED: u32 = 52; -pub const FAST_FAIL_ENCLAVE_CALL_FAILURE: u32 = 53; -pub const FAST_FAIL_UNHANDLED_LSS_EXCEPTON: u32 = 54; -pub const FAST_FAIL_ADMINLESS_ACCESS_DENIED: u32 = 55; -pub const FAST_FAIL_UNEXPECTED_CALL: u32 = 56; -pub const FAST_FAIL_CONTROL_INVALID_RETURN_ADDRESS: u32 = 57; -pub const FAST_FAIL_UNEXPECTED_HOST_BEHAVIOR: u32 = 58; -pub const FAST_FAIL_FLAGS_CORRUPTION: u32 = 59; -pub const FAST_FAIL_VEH_CORRUPTION: u32 = 60; -pub const FAST_FAIL_ETW_CORRUPTION: u32 = 61; -pub const FAST_FAIL_RIO_ABORT: u32 = 62; -pub const FAST_FAIL_INVALID_PFN: u32 = 63; -pub const FAST_FAIL_GUARD_ICALL_CHECK_FAILURE_XFG: u32 = 64; -pub const FAST_FAIL_CAST_GUARD: u32 = 65; -pub const FAST_FAIL_HOST_VISIBILITY_CHANGE: u32 = 66; -pub const FAST_FAIL_KERNEL_CET_SHADOW_STACK_ASSIST: u32 = 67; -pub const FAST_FAIL_PATCH_CALLBACK_FAILED: u32 = 68; -pub const FAST_FAIL_NTDLL_PATCH_FAILED: u32 = 69; -pub const FAST_FAIL_INVALID_FLS_DATA: u32 = 70; -pub const FAST_FAIL_INVALID_FAST_FAIL_CODE: u32 = 4294967295; -pub const HEAP_NO_SERIALIZE: u32 = 1; -pub const HEAP_GROWABLE: u32 = 2; -pub const HEAP_GENERATE_EXCEPTIONS: u32 = 4; -pub const HEAP_ZERO_MEMORY: u32 = 8; -pub const HEAP_REALLOC_IN_PLACE_ONLY: u32 = 16; -pub const HEAP_TAIL_CHECKING_ENABLED: u32 = 32; -pub const HEAP_FREE_CHECKING_ENABLED: u32 = 64; -pub const HEAP_DISABLE_COALESCE_ON_FREE: u32 = 128; -pub const HEAP_CREATE_ALIGN_16: u32 = 65536; -pub const HEAP_CREATE_ENABLE_TRACING: u32 = 131072; -pub const HEAP_CREATE_ENABLE_EXECUTE: u32 = 262144; -pub const HEAP_MAXIMUM_TAG: u32 = 4095; -pub const HEAP_PSEUDO_TAG_FLAG: u32 = 32768; -pub const HEAP_TAG_SHIFT: u32 = 18; -pub const HEAP_CREATE_SEGMENT_HEAP: u32 = 256; -pub const HEAP_CREATE_HARDENED: u32 = 512; -pub const IS_TEXT_UNICODE_ASCII16: u32 = 1; -pub const IS_TEXT_UNICODE_REVERSE_ASCII16: u32 = 16; -pub const IS_TEXT_UNICODE_STATISTICS: u32 = 2; -pub const IS_TEXT_UNICODE_REVERSE_STATISTICS: u32 = 32; -pub const IS_TEXT_UNICODE_CONTROLS: u32 = 4; -pub const IS_TEXT_UNICODE_REVERSE_CONTROLS: u32 = 64; -pub const IS_TEXT_UNICODE_SIGNATURE: u32 = 8; -pub const IS_TEXT_UNICODE_REVERSE_SIGNATURE: u32 = 128; -pub const IS_TEXT_UNICODE_ILLEGAL_CHARS: u32 = 256; -pub const IS_TEXT_UNICODE_ODD_LENGTH: u32 = 512; -pub const IS_TEXT_UNICODE_DBCS_LEADBYTE: u32 = 1024; -pub const IS_TEXT_UNICODE_UTF8: u32 = 2048; -pub const IS_TEXT_UNICODE_NULL_BYTES: u32 = 4096; -pub const IS_TEXT_UNICODE_UNICODE_MASK: u32 = 15; -pub const IS_TEXT_UNICODE_REVERSE_MASK: u32 = 240; -pub const IS_TEXT_UNICODE_NOT_UNICODE_MASK: u32 = 3840; -pub const IS_TEXT_UNICODE_NOT_ASCII_MASK: u32 = 61440; -pub const COMPRESSION_FORMAT_NONE: u32 = 0; -pub const COMPRESSION_FORMAT_DEFAULT: u32 = 1; -pub const COMPRESSION_FORMAT_LZNT1: u32 = 2; -pub const COMPRESSION_FORMAT_XPRESS: u32 = 3; -pub const COMPRESSION_FORMAT_XPRESS_HUFF: u32 = 4; -pub const COMPRESSION_FORMAT_XP10: u32 = 5; -pub const COMPRESSION_ENGINE_STANDARD: u32 = 0; -pub const COMPRESSION_ENGINE_MAXIMUM: u32 = 256; -pub const COMPRESSION_ENGINE_HIBER: u32 = 512; -pub const SEF_DACL_AUTO_INHERIT: u32 = 1; -pub const SEF_SACL_AUTO_INHERIT: u32 = 2; -pub const SEF_DEFAULT_DESCRIPTOR_FOR_OBJECT: u32 = 4; -pub const SEF_AVOID_PRIVILEGE_CHECK: u32 = 8; -pub const SEF_AVOID_OWNER_CHECK: u32 = 16; -pub const SEF_DEFAULT_OWNER_FROM_PARENT: u32 = 32; -pub const SEF_DEFAULT_GROUP_FROM_PARENT: u32 = 64; -pub const SEF_MACL_NO_WRITE_UP: u32 = 256; -pub const SEF_MACL_NO_READ_UP: u32 = 512; -pub const SEF_MACL_NO_EXECUTE_UP: u32 = 1024; -pub const SEF_AI_USE_EXTRA_PARAMS: u32 = 2048; -pub const SEF_AVOID_OWNER_RESTRICTION: u32 = 4096; -pub const SEF_FORCE_USER_MODE: u32 = 8192; -pub const SEF_NORMALIZE_OUTPUT_DESCRIPTOR: u32 = 16384; -pub const SEF_MACL_VALID_FLAGS: u32 = 1792; -pub const MESSAGE_RESOURCE_UNICODE: u32 = 1; -pub const MESSAGE_RESOURCE_UTF8: u32 = 2; -pub const VER_EQUAL: u32 = 1; -pub const VER_GREATER: u32 = 2; -pub const VER_GREATER_EQUAL: u32 = 3; -pub const VER_LESS: u32 = 4; -pub const VER_LESS_EQUAL: u32 = 5; -pub const VER_AND: u32 = 6; -pub const VER_OR: u32 = 7; -pub const VER_CONDITION_MASK: u32 = 7; -pub const VER_NUM_BITS_PER_CONDITION_MASK: u32 = 3; -pub const VER_MINORVERSION: u32 = 1; -pub const VER_MAJORVERSION: u32 = 2; -pub const VER_BUILDNUMBER: u32 = 4; -pub const VER_PLATFORMID: u32 = 8; -pub const VER_SERVICEPACKMINOR: u32 = 16; -pub const VER_SERVICEPACKMAJOR: u32 = 32; -pub const VER_SUITENAME: u32 = 64; -pub const VER_PRODUCT_TYPE: u32 = 128; -pub const VER_NT_WORKSTATION: u32 = 1; -pub const VER_NT_DOMAIN_CONTROLLER: u32 = 2; -pub const VER_NT_SERVER: u32 = 3; -pub const VER_PLATFORM_WIN32s: u32 = 0; -pub const VER_PLATFORM_WIN32_WINDOWS: u32 = 1; -pub const VER_PLATFORM_WIN32_NT: u32 = 2; -pub const RTL_UMS_VERSION: u32 = 256; -pub const VRL_PREDEFINED_CLASS_BEGIN: u32 = 1; -pub const VRL_CUSTOM_CLASS_BEGIN: u32 = 256; -pub const VRL_CLASS_CONSISTENCY: u32 = 1; -pub const VRL_ENABLE_KERNEL_BREAKS: u32 = 2147483648; -pub const CTMF_INCLUDE_APPCONTAINER: u32 = 1; -pub const CTMF_INCLUDE_LPAC: u32 = 2; -pub const CTMF_VALID_FLAGS: u32 = 3; -pub const FLUSH_NV_MEMORY_IN_FLAG_NO_DRAIN: u32 = 1; -pub const WRITE_NV_MEMORY_FLAG_FLUSH: u32 = 1; -pub const WRITE_NV_MEMORY_FLAG_NON_TEMPORAL: u32 = 2; -pub const WRITE_NV_MEMORY_FLAG_PERSIST: u32 = 3; -pub const WRITE_NV_MEMORY_FLAG_NO_DRAIN: u32 = 256; -pub const FILL_NV_MEMORY_FLAG_FLUSH: u32 = 1; -pub const FILL_NV_MEMORY_FLAG_NON_TEMPORAL: u32 = 2; -pub const FILL_NV_MEMORY_FLAG_PERSIST: u32 = 3; -pub const FILL_NV_MEMORY_FLAG_NO_DRAIN: u32 = 256; -pub const RTL_CORRELATION_VECTOR_STRING_LENGTH: u32 = 129; -pub const RTL_CORRELATION_VECTOR_V1_PREFIX_LENGTH: u32 = 16; -pub const RTL_CORRELATION_VECTOR_V1_LENGTH: u32 = 64; -pub const RTL_CORRELATION_VECTOR_V2_PREFIX_LENGTH: u32 = 22; -pub const RTL_CORRELATION_VECTOR_V2_LENGTH: u32 = 128; -pub const IMAGE_POLICY_METADATA_VERSION: u32 = 1; -pub const IMAGE_POLICY_SECTION_NAME: &[u8; 9] = b".tPolicy\0"; -pub const RTL_VIRTUAL_UNWIND2_VALIDATE_PAC: u32 = 1; -pub const RTL_CRITICAL_SECTION_FLAG_NO_DEBUG_INFO: u32 = 16777216; -pub const RTL_CRITICAL_SECTION_FLAG_DYNAMIC_SPIN: u32 = 33554432; -pub const RTL_CRITICAL_SECTION_FLAG_STATIC_INIT: u32 = 67108864; -pub const RTL_CRITICAL_SECTION_FLAG_RESOURCE_TYPE: u32 = 134217728; -pub const RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO: u32 = 268435456; -pub const RTL_CRITICAL_SECTION_ALL_FLAG_BITS: u32 = 4278190080; -pub const RTL_CRITICAL_SECTION_FLAG_RESERVED: u32 = 3758096384; -pub const RTL_CRITICAL_SECTION_DEBUG_FLAG_STATIC_INIT: u32 = 1; -pub const RTL_CONDITION_VARIABLE_LOCKMODE_SHARED: u32 = 1; -pub const HEAP_OPTIMIZE_RESOURCES_CURRENT_VERSION: u32 = 1; -pub const WT_EXECUTEDEFAULT: u32 = 0; -pub const WT_EXECUTEINIOTHREAD: u32 = 1; -pub const WT_EXECUTEINUITHREAD: u32 = 2; -pub const WT_EXECUTEINWAITTHREAD: u32 = 4; -pub const WT_EXECUTEONLYONCE: u32 = 8; -pub const WT_EXECUTEINTIMERTHREAD: u32 = 32; -pub const WT_EXECUTELONGFUNCTION: u32 = 16; -pub const WT_EXECUTEINPERSISTENTIOTHREAD: u32 = 64; -pub const WT_EXECUTEINPERSISTENTTHREAD: u32 = 128; -pub const WT_TRANSFER_IMPERSONATION: u32 = 256; -pub const WT_EXECUTEINLONGTHREAD: u32 = 16; -pub const WT_EXECUTEDELETEWAIT: u32 = 8; -pub const ACTIVATION_CONTEXT_PATH_TYPE_NONE: u32 = 1; -pub const ACTIVATION_CONTEXT_PATH_TYPE_WIN32_FILE: u32 = 2; -pub const ACTIVATION_CONTEXT_PATH_TYPE_URL: u32 = 3; -pub const ACTIVATION_CONTEXT_PATH_TYPE_ASSEMBLYREF: u32 = 4; -pub const CREATE_BOUNDARY_DESCRIPTOR_ADD_APPCONTAINER_SID: u32 = 1; -pub const PERFORMANCE_DATA_VERSION: u32 = 1; -pub const READ_THREAD_PROFILING_FLAG_DISPATCHING: u32 = 1; -pub const READ_THREAD_PROFILING_FLAG_HARDWARE_COUNTERS: u32 = 2; -pub const UNIFIEDBUILDREVISION_KEY: &[u8; 63] = - b"\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\0"; -pub const UNIFIEDBUILDREVISION_VALUE: &[u8; 4] = b"UBR\0"; -pub const UNIFIEDBUILDREVISION_MIN: u32 = 0; -pub const DEVICEFAMILYDEVICEFORM_KEY: &[u8; 67] = - b"\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\OEM\0"; -pub const DEVICEFAMILYDEVICEFORM_VALUE: &[u8; 11] = b"DeviceForm\0"; -pub const DEVICEFAMILYINFOENUM_UAP: u32 = 0; -pub const DEVICEFAMILYINFOENUM_WINDOWS_8X: u32 = 1; -pub const DEVICEFAMILYINFOENUM_WINDOWS_PHONE_8X: u32 = 2; -pub const DEVICEFAMILYINFOENUM_DESKTOP: u32 = 3; -pub const DEVICEFAMILYINFOENUM_MOBILE: u32 = 4; -pub const DEVICEFAMILYINFOENUM_XBOX: u32 = 5; -pub const DEVICEFAMILYINFOENUM_TEAM: u32 = 6; -pub const DEVICEFAMILYINFOENUM_IOT: u32 = 7; -pub const DEVICEFAMILYINFOENUM_IOT_HEADLESS: u32 = 8; -pub const DEVICEFAMILYINFOENUM_SERVER: u32 = 9; -pub const DEVICEFAMILYINFOENUM_HOLOGRAPHIC: u32 = 10; -pub const DEVICEFAMILYINFOENUM_XBOXSRA: u32 = 11; -pub const DEVICEFAMILYINFOENUM_XBOXERA: u32 = 12; -pub const DEVICEFAMILYINFOENUM_SERVER_NANO: u32 = 13; -pub const DEVICEFAMILYINFOENUM_8828080: u32 = 14; -pub const DEVICEFAMILYINFOENUM_7067329: u32 = 15; -pub const DEVICEFAMILYINFOENUM_WINDOWS_CORE: u32 = 16; -pub const DEVICEFAMILYINFOENUM_WINDOWS_CORE_HEADLESS: u32 = 17; -pub const DEVICEFAMILYINFOENUM_MAX: u32 = 17; -pub const DEVICEFAMILYDEVICEFORM_UNKNOWN: u32 = 0; -pub const DEVICEFAMILYDEVICEFORM_PHONE: u32 = 1; -pub const DEVICEFAMILYDEVICEFORM_TABLET: u32 = 2; -pub const DEVICEFAMILYDEVICEFORM_DESKTOP: u32 = 3; -pub const DEVICEFAMILYDEVICEFORM_NOTEBOOK: u32 = 4; -pub const DEVICEFAMILYDEVICEFORM_CONVERTIBLE: u32 = 5; -pub const DEVICEFAMILYDEVICEFORM_DETACHABLE: u32 = 6; -pub const DEVICEFAMILYDEVICEFORM_ALLINONE: u32 = 7; -pub const DEVICEFAMILYDEVICEFORM_STICKPC: u32 = 8; -pub const DEVICEFAMILYDEVICEFORM_PUCK: u32 = 9; -pub const DEVICEFAMILYDEVICEFORM_LARGESCREEN: u32 = 10; -pub const DEVICEFAMILYDEVICEFORM_HMD: u32 = 11; -pub const DEVICEFAMILYDEVICEFORM_INDUSTRY_HANDHELD: u32 = 12; -pub const DEVICEFAMILYDEVICEFORM_INDUSTRY_TABLET: u32 = 13; -pub const DEVICEFAMILYDEVICEFORM_BANKING: u32 = 14; -pub const DEVICEFAMILYDEVICEFORM_BUILDING_AUTOMATION: u32 = 15; -pub const DEVICEFAMILYDEVICEFORM_DIGITAL_SIGNAGE: u32 = 16; -pub const DEVICEFAMILYDEVICEFORM_GAMING: u32 = 17; -pub const DEVICEFAMILYDEVICEFORM_HOME_AUTOMATION: u32 = 18; -pub const DEVICEFAMILYDEVICEFORM_INDUSTRIAL_AUTOMATION: u32 = 19; -pub const DEVICEFAMILYDEVICEFORM_KIOSK: u32 = 20; -pub const DEVICEFAMILYDEVICEFORM_MAKER_BOARD: u32 = 21; -pub const DEVICEFAMILYDEVICEFORM_MEDICAL: u32 = 22; -pub const DEVICEFAMILYDEVICEFORM_NETWORKING: u32 = 23; -pub const DEVICEFAMILYDEVICEFORM_POINT_OF_SERVICE: u32 = 24; -pub const DEVICEFAMILYDEVICEFORM_PRINTING: u32 = 25; -pub const DEVICEFAMILYDEVICEFORM_THIN_CLIENT: u32 = 26; -pub const DEVICEFAMILYDEVICEFORM_TOY: u32 = 27; -pub const DEVICEFAMILYDEVICEFORM_VENDING: u32 = 28; -pub const DEVICEFAMILYDEVICEFORM_INDUSTRY_OTHER: u32 = 29; -pub const DEVICEFAMILYDEVICEFORM_XBOX_ONE: u32 = 30; -pub const DEVICEFAMILYDEVICEFORM_XBOX_ONE_S: u32 = 31; -pub const DEVICEFAMILYDEVICEFORM_XBOX_ONE_X: u32 = 32; -pub const DEVICEFAMILYDEVICEFORM_XBOX_ONE_X_DEVKIT: u32 = 33; -pub const DEVICEFAMILYDEVICEFORM_XBOX_SERIES_X: u32 = 34; -pub const DEVICEFAMILYDEVICEFORM_XBOX_SERIES_X_DEVKIT: u32 = 35; -pub const DEVICEFAMILYDEVICEFORM_XBOX_SERIES_S: u32 = 36; -pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_01: u32 = 37; -pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_02: u32 = 38; -pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_03: u32 = 39; -pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_04: u32 = 40; -pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_05: u32 = 41; -pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_06: u32 = 42; -pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_07: u32 = 43; -pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_08: u32 = 44; -pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_09: u32 = 45; -pub const DEVICEFAMILYDEVICEFORM_MAX: u32 = 45; -pub const DLL_PROCESS_ATTACH: u32 = 1; -pub const DLL_THREAD_ATTACH: u32 = 2; -pub const DLL_THREAD_DETACH: u32 = 3; -pub const DLL_PROCESS_DETACH: u32 = 0; -pub const EVENTLOG_SEQUENTIAL_READ: u32 = 1; -pub const EVENTLOG_SEEK_READ: u32 = 2; -pub const EVENTLOG_FORWARDS_READ: u32 = 4; -pub const EVENTLOG_BACKWARDS_READ: u32 = 8; -pub const EVENTLOG_SUCCESS: u32 = 0; -pub const EVENTLOG_ERROR_TYPE: u32 = 1; -pub const EVENTLOG_WARNING_TYPE: u32 = 2; -pub const EVENTLOG_INFORMATION_TYPE: u32 = 4; -pub const EVENTLOG_AUDIT_SUCCESS: u32 = 8; -pub const EVENTLOG_AUDIT_FAILURE: u32 = 16; -pub const EVENTLOG_START_PAIRED_EVENT: u32 = 1; -pub const EVENTLOG_END_PAIRED_EVENT: u32 = 2; -pub const EVENTLOG_END_ALL_PAIRED_EVENTS: u32 = 4; -pub const EVENTLOG_PAIRED_EVENT_ACTIVE: u32 = 8; -pub const EVENTLOG_PAIRED_EVENT_INACTIVE: u32 = 16; -pub const MAXLOGICALLOGNAMESIZE: u32 = 256; -pub const KEY_QUERY_VALUE: u32 = 1; -pub const KEY_SET_VALUE: u32 = 2; -pub const KEY_CREATE_SUB_KEY: u32 = 4; -pub const KEY_ENUMERATE_SUB_KEYS: u32 = 8; -pub const KEY_NOTIFY: u32 = 16; -pub const KEY_CREATE_LINK: u32 = 32; -pub const KEY_WOW64_32KEY: u32 = 512; -pub const KEY_WOW64_64KEY: u32 = 256; -pub const KEY_WOW64_RES: u32 = 768; -pub const KEY_READ: u32 = 131097; -pub const KEY_WRITE: u32 = 131078; -pub const KEY_EXECUTE: u32 = 131097; -pub const KEY_ALL_ACCESS: u32 = 983103; -pub const REG_OPTION_RESERVED: u32 = 0; -pub const REG_OPTION_NON_VOLATILE: u32 = 0; -pub const REG_OPTION_VOLATILE: u32 = 1; -pub const REG_OPTION_CREATE_LINK: u32 = 2; -pub const REG_OPTION_BACKUP_RESTORE: u32 = 4; -pub const REG_OPTION_OPEN_LINK: u32 = 8; -pub const REG_OPTION_DONT_VIRTUALIZE: u32 = 16; -pub const REG_LEGAL_OPTION: u32 = 31; -pub const REG_OPEN_LEGAL_OPTION: u32 = 28; -pub const REG_CREATED_NEW_KEY: u32 = 1; -pub const REG_OPENED_EXISTING_KEY: u32 = 2; -pub const REG_STANDARD_FORMAT: u32 = 1; -pub const REG_LATEST_FORMAT: u32 = 2; -pub const REG_NO_COMPRESSION: u32 = 4; -pub const REG_WHOLE_HIVE_VOLATILE: u32 = 1; -pub const REG_REFRESH_HIVE: u32 = 2; -pub const REG_NO_LAZY_FLUSH: u32 = 4; -pub const REG_FORCE_RESTORE: u32 = 8; -pub const REG_APP_HIVE: u32 = 16; -pub const REG_PROCESS_PRIVATE: u32 = 32; -pub const REG_START_JOURNAL: u32 = 64; -pub const REG_HIVE_EXACT_FILE_GROWTH: u32 = 128; -pub const REG_HIVE_NO_RM: u32 = 256; -pub const REG_HIVE_SINGLE_LOG: u32 = 512; -pub const REG_BOOT_HIVE: u32 = 1024; -pub const REG_LOAD_HIVE_OPEN_HANDLE: u32 = 2048; -pub const REG_FLUSH_HIVE_FILE_GROWTH: u32 = 4096; -pub const REG_OPEN_READ_ONLY: u32 = 8192; -pub const REG_IMMUTABLE: u32 = 16384; -pub const REG_NO_IMPERSONATION_FALLBACK: u32 = 32768; -pub const REG_APP_HIVE_OPEN_READ_ONLY: u32 = 8192; -pub const REG_FORCE_UNLOAD: u32 = 1; -pub const REG_UNLOAD_LEGAL_FLAGS: u32 = 1; -pub const REG_NOTIFY_CHANGE_NAME: u32 = 1; -pub const REG_NOTIFY_CHANGE_ATTRIBUTES: u32 = 2; -pub const REG_NOTIFY_CHANGE_LAST_SET: u32 = 4; -pub const REG_NOTIFY_CHANGE_SECURITY: u32 = 8; -pub const REG_NOTIFY_THREAD_AGNOSTIC: u32 = 268435456; -pub const REG_LEGAL_CHANGE_FILTER: u32 = 268435471; -pub const REG_NONE: u32 = 0; -pub const REG_SZ: u32 = 1; -pub const REG_EXPAND_SZ: u32 = 2; -pub const REG_BINARY: u32 = 3; -pub const REG_DWORD: u32 = 4; -pub const REG_DWORD_LITTLE_ENDIAN: u32 = 4; -pub const REG_DWORD_BIG_ENDIAN: u32 = 5; -pub const REG_LINK: u32 = 6; -pub const REG_MULTI_SZ: u32 = 7; -pub const REG_RESOURCE_LIST: u32 = 8; -pub const REG_FULL_RESOURCE_DESCRIPTOR: u32 = 9; -pub const REG_RESOURCE_REQUIREMENTS_LIST: u32 = 10; -pub const REG_QWORD: u32 = 11; -pub const REG_QWORD_LITTLE_ENDIAN: u32 = 11; -pub const SERVICE_KERNEL_DRIVER: u32 = 1; -pub const SERVICE_FILE_SYSTEM_DRIVER: u32 = 2; -pub const SERVICE_ADAPTER: u32 = 4; -pub const SERVICE_RECOGNIZER_DRIVER: u32 = 8; -pub const SERVICE_DRIVER: u32 = 11; -pub const SERVICE_WIN32_OWN_PROCESS: u32 = 16; -pub const SERVICE_WIN32_SHARE_PROCESS: u32 = 32; -pub const SERVICE_WIN32: u32 = 48; -pub const SERVICE_USER_SERVICE: u32 = 64; -pub const SERVICE_USERSERVICE_INSTANCE: u32 = 128; -pub const SERVICE_USER_SHARE_PROCESS: u32 = 96; -pub const SERVICE_USER_OWN_PROCESS: u32 = 80; -pub const SERVICE_INTERACTIVE_PROCESS: u32 = 256; -pub const SERVICE_PKG_SERVICE: u32 = 512; -pub const SERVICE_TYPE_ALL: u32 = 1023; -pub const SERVICE_BOOT_START: u32 = 0; -pub const SERVICE_SYSTEM_START: u32 = 1; -pub const SERVICE_AUTO_START: u32 = 2; -pub const SERVICE_DEMAND_START: u32 = 3; -pub const SERVICE_DISABLED: u32 = 4; -pub const SERVICE_ERROR_IGNORE: u32 = 0; -pub const SERVICE_ERROR_NORMAL: u32 = 1; -pub const SERVICE_ERROR_SEVERE: u32 = 2; -pub const SERVICE_ERROR_CRITICAL: u32 = 3; -pub const CM_SERVICE_NETWORK_BOOT_LOAD: u32 = 1; -pub const CM_SERVICE_VIRTUAL_DISK_BOOT_LOAD: u32 = 2; -pub const CM_SERVICE_USB_DISK_BOOT_LOAD: u32 = 4; -pub const CM_SERVICE_SD_DISK_BOOT_LOAD: u32 = 8; -pub const CM_SERVICE_USB3_DISK_BOOT_LOAD: u32 = 16; -pub const CM_SERVICE_MEASURED_BOOT_LOAD: u32 = 32; -pub const CM_SERVICE_VERIFIER_BOOT_LOAD: u32 = 64; -pub const CM_SERVICE_WINPE_BOOT_LOAD: u32 = 128; -pub const CM_SERVICE_RAM_DISK_BOOT_LOAD: u32 = 256; -pub const CM_SERVICE_VALID_PROMOTION_MASK: u32 = 511; -pub const TAPE_ERASE_SHORT: u32 = 0; -pub const TAPE_ERASE_LONG: u32 = 1; -pub const TAPE_LOAD: u32 = 0; -pub const TAPE_UNLOAD: u32 = 1; -pub const TAPE_TENSION: u32 = 2; -pub const TAPE_LOCK: u32 = 3; -pub const TAPE_UNLOCK: u32 = 4; -pub const TAPE_FORMAT: u32 = 5; -pub const TAPE_SETMARKS: u32 = 0; -pub const TAPE_FILEMARKS: u32 = 1; -pub const TAPE_SHORT_FILEMARKS: u32 = 2; -pub const TAPE_LONG_FILEMARKS: u32 = 3; -pub const TAPE_ABSOLUTE_POSITION: u32 = 0; -pub const TAPE_LOGICAL_POSITION: u32 = 1; -pub const TAPE_PSEUDO_LOGICAL_POSITION: u32 = 2; -pub const TAPE_REWIND: u32 = 0; -pub const TAPE_ABSOLUTE_BLOCK: u32 = 1; -pub const TAPE_LOGICAL_BLOCK: u32 = 2; -pub const TAPE_PSEUDO_LOGICAL_BLOCK: u32 = 3; -pub const TAPE_SPACE_END_OF_DATA: u32 = 4; -pub const TAPE_SPACE_RELATIVE_BLOCKS: u32 = 5; -pub const TAPE_SPACE_FILEMARKS: u32 = 6; -pub const TAPE_SPACE_SEQUENTIAL_FMKS: u32 = 7; -pub const TAPE_SPACE_SETMARKS: u32 = 8; -pub const TAPE_SPACE_SEQUENTIAL_SMKS: u32 = 9; -pub const TAPE_DRIVE_FIXED: u32 = 1; -pub const TAPE_DRIVE_SELECT: u32 = 2; -pub const TAPE_DRIVE_INITIATOR: u32 = 4; -pub const TAPE_DRIVE_ERASE_SHORT: u32 = 16; -pub const TAPE_DRIVE_ERASE_LONG: u32 = 32; -pub const TAPE_DRIVE_ERASE_BOP_ONLY: u32 = 64; -pub const TAPE_DRIVE_ERASE_IMMEDIATE: u32 = 128; -pub const TAPE_DRIVE_TAPE_CAPACITY: u32 = 256; -pub const TAPE_DRIVE_TAPE_REMAINING: u32 = 512; -pub const TAPE_DRIVE_FIXED_BLOCK: u32 = 1024; -pub const TAPE_DRIVE_VARIABLE_BLOCK: u32 = 2048; -pub const TAPE_DRIVE_WRITE_PROTECT: u32 = 4096; -pub const TAPE_DRIVE_EOT_WZ_SIZE: u32 = 8192; -pub const TAPE_DRIVE_ECC: u32 = 65536; -pub const TAPE_DRIVE_COMPRESSION: u32 = 131072; -pub const TAPE_DRIVE_PADDING: u32 = 262144; -pub const TAPE_DRIVE_REPORT_SMKS: u32 = 524288; -pub const TAPE_DRIVE_GET_ABSOLUTE_BLK: u32 = 1048576; -pub const TAPE_DRIVE_GET_LOGICAL_BLK: u32 = 2097152; -pub const TAPE_DRIVE_SET_EOT_WZ_SIZE: u32 = 4194304; -pub const TAPE_DRIVE_EJECT_MEDIA: u32 = 16777216; -pub const TAPE_DRIVE_CLEAN_REQUESTS: u32 = 33554432; -pub const TAPE_DRIVE_SET_CMP_BOP_ONLY: u32 = 67108864; -pub const TAPE_DRIVE_RESERVED_BIT: u32 = 2147483648; -pub const TAPE_DRIVE_LOAD_UNLOAD: u32 = 2147483649; -pub const TAPE_DRIVE_TENSION: u32 = 2147483650; -pub const TAPE_DRIVE_LOCK_UNLOCK: u32 = 2147483652; -pub const TAPE_DRIVE_REWIND_IMMEDIATE: u32 = 2147483656; -pub const TAPE_DRIVE_SET_BLOCK_SIZE: u32 = 2147483664; -pub const TAPE_DRIVE_LOAD_UNLD_IMMED: u32 = 2147483680; -pub const TAPE_DRIVE_TENSION_IMMED: u32 = 2147483712; -pub const TAPE_DRIVE_LOCK_UNLK_IMMED: u32 = 2147483776; -pub const TAPE_DRIVE_SET_ECC: u32 = 2147483904; -pub const TAPE_DRIVE_SET_COMPRESSION: u32 = 2147484160; -pub const TAPE_DRIVE_SET_PADDING: u32 = 2147484672; -pub const TAPE_DRIVE_SET_REPORT_SMKS: u32 = 2147485696; -pub const TAPE_DRIVE_ABSOLUTE_BLK: u32 = 2147487744; -pub const TAPE_DRIVE_ABS_BLK_IMMED: u32 = 2147491840; -pub const TAPE_DRIVE_LOGICAL_BLK: u32 = 2147500032; -pub const TAPE_DRIVE_LOG_BLK_IMMED: u32 = 2147516416; -pub const TAPE_DRIVE_END_OF_DATA: u32 = 2147549184; -pub const TAPE_DRIVE_RELATIVE_BLKS: u32 = 2147614720; -pub const TAPE_DRIVE_FILEMARKS: u32 = 2147745792; -pub const TAPE_DRIVE_SEQUENTIAL_FMKS: u32 = 2148007936; -pub const TAPE_DRIVE_SETMARKS: u32 = 2148532224; -pub const TAPE_DRIVE_SEQUENTIAL_SMKS: u32 = 2149580800; -pub const TAPE_DRIVE_REVERSE_POSITION: u32 = 2151677952; -pub const TAPE_DRIVE_SPACE_IMMEDIATE: u32 = 2155872256; -pub const TAPE_DRIVE_WRITE_SETMARKS: u32 = 2164260864; -pub const TAPE_DRIVE_WRITE_FILEMARKS: u32 = 2181038080; -pub const TAPE_DRIVE_WRITE_SHORT_FMKS: u32 = 2214592512; -pub const TAPE_DRIVE_WRITE_LONG_FMKS: u32 = 2281701376; -pub const TAPE_DRIVE_WRITE_MARK_IMMED: u32 = 2415919104; -pub const TAPE_DRIVE_FORMAT: u32 = 2684354560; -pub const TAPE_DRIVE_FORMAT_IMMEDIATE: u32 = 3221225472; -pub const TAPE_DRIVE_HIGH_FEATURES: u32 = 2147483648; -pub const TAPE_FIXED_PARTITIONS: u32 = 0; -pub const TAPE_SELECT_PARTITIONS: u32 = 1; -pub const TAPE_INITIATOR_PARTITIONS: u32 = 2; -pub const TAPE_QUERY_DRIVE_PARAMETERS: u32 = 0; -pub const TAPE_QUERY_MEDIA_CAPACITY: u32 = 1; -pub const TAPE_CHECK_FOR_DRIVE_PROBLEM: u32 = 2; -pub const TAPE_QUERY_IO_ERROR_DATA: u32 = 3; -pub const TAPE_QUERY_DEVICE_ERROR_DATA: u32 = 4; -pub const TRANSACTION_MANAGER_VOLATILE: u32 = 1; -pub const TRANSACTION_MANAGER_COMMIT_DEFAULT: u32 = 0; -pub const TRANSACTION_MANAGER_COMMIT_SYSTEM_VOLUME: u32 = 2; -pub const TRANSACTION_MANAGER_COMMIT_SYSTEM_HIVES: u32 = 4; -pub const TRANSACTION_MANAGER_COMMIT_LOWEST: u32 = 8; -pub const TRANSACTION_MANAGER_CORRUPT_FOR_RECOVERY: u32 = 16; -pub const TRANSACTION_MANAGER_CORRUPT_FOR_PROGRESS: u32 = 32; -pub const TRANSACTION_MANAGER_MAXIMUM_OPTION: u32 = 63; -pub const TRANSACTION_DO_NOT_PROMOTE: u32 = 1; -pub const TRANSACTION_MAXIMUM_OPTION: u32 = 1; -pub const RESOURCE_MANAGER_VOLATILE: u32 = 1; -pub const RESOURCE_MANAGER_COMMUNICATION: u32 = 2; -pub const RESOURCE_MANAGER_MAXIMUM_OPTION: u32 = 3; -pub const CRM_PROTOCOL_EXPLICIT_MARSHAL_ONLY: u32 = 1; -pub const CRM_PROTOCOL_DYNAMIC_MARSHAL_INFO: u32 = 2; -pub const CRM_PROTOCOL_MAXIMUM_OPTION: u32 = 3; -pub const ENLISTMENT_SUPERIOR: u32 = 1; -pub const ENLISTMENT_MAXIMUM_OPTION: u32 = 1; -pub const TRANSACTION_NOTIFY_MASK: u32 = 1073741823; -pub const TRANSACTION_NOTIFY_PREPREPARE: u32 = 1; -pub const TRANSACTION_NOTIFY_PREPARE: u32 = 2; -pub const TRANSACTION_NOTIFY_COMMIT: u32 = 4; -pub const TRANSACTION_NOTIFY_ROLLBACK: u32 = 8; -pub const TRANSACTION_NOTIFY_PREPREPARE_COMPLETE: u32 = 16; -pub const TRANSACTION_NOTIFY_PREPARE_COMPLETE: u32 = 32; -pub const TRANSACTION_NOTIFY_COMMIT_COMPLETE: u32 = 64; -pub const TRANSACTION_NOTIFY_ROLLBACK_COMPLETE: u32 = 128; -pub const TRANSACTION_NOTIFY_RECOVER: u32 = 256; -pub const TRANSACTION_NOTIFY_SINGLE_PHASE_COMMIT: u32 = 512; -pub const TRANSACTION_NOTIFY_DELEGATE_COMMIT: u32 = 1024; -pub const TRANSACTION_NOTIFY_RECOVER_QUERY: u32 = 2048; -pub const TRANSACTION_NOTIFY_ENLIST_PREPREPARE: u32 = 4096; -pub const TRANSACTION_NOTIFY_LAST_RECOVER: u32 = 8192; -pub const TRANSACTION_NOTIFY_INDOUBT: u32 = 16384; -pub const TRANSACTION_NOTIFY_PROPAGATE_PULL: u32 = 32768; -pub const TRANSACTION_NOTIFY_PROPAGATE_PUSH: u32 = 65536; -pub const TRANSACTION_NOTIFY_MARSHAL: u32 = 131072; -pub const TRANSACTION_NOTIFY_ENLIST_MASK: u32 = 262144; -pub const TRANSACTION_NOTIFY_RM_DISCONNECTED: u32 = 16777216; -pub const TRANSACTION_NOTIFY_TM_ONLINE: u32 = 33554432; -pub const TRANSACTION_NOTIFY_COMMIT_REQUEST: u32 = 67108864; -pub const TRANSACTION_NOTIFY_PROMOTE: u32 = 134217728; -pub const TRANSACTION_NOTIFY_PROMOTE_NEW: u32 = 268435456; -pub const TRANSACTION_NOTIFY_REQUEST_OUTCOME: u32 = 536870912; -pub const TRANSACTION_NOTIFY_COMMIT_FINALIZE: u32 = 1073741824; -pub const TRANSACTIONMANAGER_OBJECT_PATH: &[u8; 21] = b"\\TransactionManager\\\0"; -pub const TRANSACTION_OBJECT_PATH: &[u8; 14] = b"\\Transaction\\\0"; -pub const ENLISTMENT_OBJECT_PATH: &[u8; 13] = b"\\Enlistment\\\0"; -pub const RESOURCE_MANAGER_OBJECT_PATH: &[u8; 18] = b"\\ResourceManager\\\0"; -pub const TRANSACTION_NOTIFICATION_TM_ONLINE_FLAG_IS_CLUSTERED: u32 = 1; -pub const KTM_MARSHAL_BLOB_VERSION_MAJOR: u32 = 1; -pub const KTM_MARSHAL_BLOB_VERSION_MINOR: u32 = 1; -pub const MAX_TRANSACTION_DESCRIPTION_LENGTH: u32 = 64; -pub const MAX_RESOURCEMANAGER_DESCRIPTION_LENGTH: u32 = 64; -pub const TRANSACTIONMANAGER_QUERY_INFORMATION: u32 = 1; -pub const TRANSACTIONMANAGER_SET_INFORMATION: u32 = 2; -pub const TRANSACTIONMANAGER_RECOVER: u32 = 4; -pub const TRANSACTIONMANAGER_RENAME: u32 = 8; -pub const TRANSACTIONMANAGER_CREATE_RM: u32 = 16; -pub const TRANSACTIONMANAGER_BIND_TRANSACTION: u32 = 32; -pub const TRANSACTIONMANAGER_GENERIC_READ: u32 = 131073; -pub const TRANSACTIONMANAGER_GENERIC_WRITE: u32 = 131102; -pub const TRANSACTIONMANAGER_GENERIC_EXECUTE: u32 = 131072; -pub const TRANSACTIONMANAGER_ALL_ACCESS: u32 = 983103; -pub const TRANSACTION_QUERY_INFORMATION: u32 = 1; -pub const TRANSACTION_SET_INFORMATION: u32 = 2; -pub const TRANSACTION_ENLIST: u32 = 4; -pub const TRANSACTION_COMMIT: u32 = 8; -pub const TRANSACTION_ROLLBACK: u32 = 16; -pub const TRANSACTION_PROPAGATE: u32 = 32; -pub const TRANSACTION_RIGHT_RESERVED1: u32 = 64; -pub const TRANSACTION_GENERIC_READ: u32 = 1179649; -pub const TRANSACTION_GENERIC_WRITE: u32 = 1179710; -pub const TRANSACTION_GENERIC_EXECUTE: u32 = 1179672; -pub const TRANSACTION_ALL_ACCESS: u32 = 2031679; -pub const TRANSACTION_RESOURCE_MANAGER_RIGHTS: u32 = 1179703; -pub const RESOURCEMANAGER_QUERY_INFORMATION: u32 = 1; -pub const RESOURCEMANAGER_SET_INFORMATION: u32 = 2; -pub const RESOURCEMANAGER_RECOVER: u32 = 4; -pub const RESOURCEMANAGER_ENLIST: u32 = 8; -pub const RESOURCEMANAGER_GET_NOTIFICATION: u32 = 16; -pub const RESOURCEMANAGER_REGISTER_PROTOCOL: u32 = 32; -pub const RESOURCEMANAGER_COMPLETE_PROPAGATION: u32 = 64; -pub const RESOURCEMANAGER_GENERIC_READ: u32 = 1179649; -pub const RESOURCEMANAGER_GENERIC_WRITE: u32 = 1179774; -pub const RESOURCEMANAGER_GENERIC_EXECUTE: u32 = 1179740; -pub const RESOURCEMANAGER_ALL_ACCESS: u32 = 2031743; -pub const ENLISTMENT_QUERY_INFORMATION: u32 = 1; -pub const ENLISTMENT_SET_INFORMATION: u32 = 2; -pub const ENLISTMENT_RECOVER: u32 = 4; -pub const ENLISTMENT_SUBORDINATE_RIGHTS: u32 = 8; -pub const ENLISTMENT_SUPERIOR_RIGHTS: u32 = 16; -pub const ENLISTMENT_GENERIC_READ: u32 = 131073; -pub const ENLISTMENT_GENERIC_WRITE: u32 = 131102; -pub const ENLISTMENT_GENERIC_EXECUTE: u32 = 131100; -pub const ENLISTMENT_ALL_ACCESS: u32 = 983071; -pub const ACTIVATION_CONTEXT_SECTION_ASSEMBLY_INFORMATION: u32 = 1; -pub const ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION: u32 = 2; -pub const ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION: u32 = 3; -pub const ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION: u32 = 4; -pub const ACTIVATION_CONTEXT_SECTION_COM_INTERFACE_REDIRECTION: u32 = 5; -pub const ACTIVATION_CONTEXT_SECTION_COM_TYPE_LIBRARY_REDIRECTION: u32 = 6; -pub const ACTIVATION_CONTEXT_SECTION_COM_PROGID_REDIRECTION: u32 = 7; -pub const ACTIVATION_CONTEXT_SECTION_GLOBAL_OBJECT_RENAME_TABLE: u32 = 8; -pub const ACTIVATION_CONTEXT_SECTION_CLR_SURROGATES: u32 = 9; -pub const ACTIVATION_CONTEXT_SECTION_APPLICATION_SETTINGS: u32 = 10; -pub const ACTIVATION_CONTEXT_SECTION_COMPATIBILITY_INFO: u32 = 11; -pub const ACTIVATION_CONTEXT_SECTION_WINRT_ACTIVATABLE_CLASSES: u32 = 12; -pub const APP_LOCAL_DEVICE_ID_SIZE: u32 = 32; -pub const DM_UPDATE: u32 = 1; -pub const DM_COPY: u32 = 2; -pub const DM_PROMPT: u32 = 4; -pub const DM_MODIFY: u32 = 8; -pub const DM_IN_BUFFER: u32 = 8; -pub const DM_IN_PROMPT: u32 = 4; -pub const DM_OUT_BUFFER: u32 = 2; -pub const DM_OUT_DEFAULT: u32 = 1; -pub const DC_FIELDS: u32 = 1; -pub const DC_PAPERS: u32 = 2; -pub const DC_PAPERSIZE: u32 = 3; -pub const DC_MINEXTENT: u32 = 4; -pub const DC_MAXEXTENT: u32 = 5; -pub const DC_BINS: u32 = 6; -pub const DC_DUPLEX: u32 = 7; -pub const DC_SIZE: u32 = 8; -pub const DC_EXTRA: u32 = 9; -pub const DC_VERSION: u32 = 10; -pub const DC_DRIVER: u32 = 11; -pub const DC_BINNAMES: u32 = 12; -pub const DC_ENUMRESOLUTIONS: u32 = 13; -pub const DC_FILEDEPENDENCIES: u32 = 14; -pub const DC_TRUETYPE: u32 = 15; -pub const DC_PAPERNAMES: u32 = 16; -pub const DC_ORIENTATION: u32 = 17; -pub const DC_COPIES: u32 = 18; -pub const FIND_FIRST_EX_CASE_SENSITIVE: u32 = 1; -pub const FIND_FIRST_EX_LARGE_FETCH: u32 = 2; -pub const FIND_FIRST_EX_ON_DISK_ENTRIES_ONLY: u32 = 4; -pub const LOCKFILE_FAIL_IMMEDIATELY: u32 = 1; -pub const LOCKFILE_EXCLUSIVE_LOCK: u32 = 2; -pub const PROCESS_HEAP_REGION: u32 = 1; -pub const PROCESS_HEAP_UNCOMMITTED_RANGE: u32 = 2; -pub const PROCESS_HEAP_ENTRY_BUSY: u32 = 4; -pub const PROCESS_HEAP_SEG_ALLOC: u32 = 8; -pub const PROCESS_HEAP_ENTRY_MOVEABLE: u32 = 16; -pub const PROCESS_HEAP_ENTRY_DDESHARE: u32 = 32; -pub const EXCEPTION_DEBUG_EVENT: u32 = 1; -pub const CREATE_THREAD_DEBUG_EVENT: u32 = 2; -pub const CREATE_PROCESS_DEBUG_EVENT: u32 = 3; -pub const EXIT_THREAD_DEBUG_EVENT: u32 = 4; -pub const EXIT_PROCESS_DEBUG_EVENT: u32 = 5; -pub const LOAD_DLL_DEBUG_EVENT: u32 = 6; -pub const UNLOAD_DLL_DEBUG_EVENT: u32 = 7; -pub const OUTPUT_DEBUG_STRING_EVENT: u32 = 8; -pub const RIP_EVENT: u32 = 9; -pub const LMEM_FIXED: u32 = 0; -pub const LMEM_MOVEABLE: u32 = 2; -pub const LMEM_NOCOMPACT: u32 = 16; -pub const LMEM_NODISCARD: u32 = 32; -pub const LMEM_ZEROINIT: u32 = 64; -pub const LMEM_MODIFY: u32 = 128; -pub const LMEM_DISCARDABLE: u32 = 3840; -pub const LMEM_VALID_FLAGS: u32 = 3954; -pub const LMEM_INVALID_HANDLE: u32 = 32768; -pub const LHND: u32 = 66; -pub const LPTR: u32 = 64; -pub const NONZEROLHND: u32 = 2; -pub const NONZEROLPTR: u32 = 0; -pub const LMEM_DISCARDED: u32 = 16384; -pub const LMEM_LOCKCOUNT: u32 = 255; -pub const CREATE_NEW: u32 = 1; -pub const CREATE_ALWAYS: u32 = 2; -pub const OPEN_EXISTING: u32 = 3; -pub const OPEN_ALWAYS: u32 = 4; -pub const TRUNCATE_EXISTING: u32 = 5; -pub const INIT_ONCE_CHECK_ONLY: u32 = 1; -pub const INIT_ONCE_ASYNC: u32 = 2; -pub const INIT_ONCE_INIT_FAILED: u32 = 4; -pub const INIT_ONCE_CTX_RESERVED_BITS: u32 = 2; -pub const CONDITION_VARIABLE_LOCKMODE_SHARED: u32 = 1; -pub const MUTEX_MODIFY_STATE: u32 = 1; -pub const MUTEX_ALL_ACCESS: u32 = 2031617; -pub const CREATE_MUTEX_INITIAL_OWNER: u32 = 1; -pub const CREATE_EVENT_MANUAL_RESET: u32 = 1; -pub const CREATE_EVENT_INITIAL_SET: u32 = 2; -pub const CREATE_WAITABLE_TIMER_MANUAL_RESET: u32 = 1; -pub const CREATE_WAITABLE_TIMER_HIGH_RESOLUTION: u32 = 2; -pub const SYNCHRONIZATION_BARRIER_FLAGS_SPIN_ONLY: u32 = 1; -pub const SYNCHRONIZATION_BARRIER_FLAGS_BLOCK_ONLY: u32 = 2; -pub const SYNCHRONIZATION_BARRIER_FLAGS_NO_DELETE: u32 = 4; -pub const PROC_THREAD_ATTRIBUTE_REPLACE_VALUE: u32 = 1; -pub const PROCESS_AFFINITY_ENABLE_AUTO_UPDATE: u32 = 1; -pub const THREAD_POWER_THROTTLING_CURRENT_VERSION: u32 = 1; -pub const THREAD_POWER_THROTTLING_EXECUTION_SPEED: u32 = 1; -pub const THREAD_POWER_THROTTLING_VALID_FLAGS: u32 = 1; -pub const PME_CURRENT_VERSION: u32 = 1; -pub const PME_FAILFAST_ON_COMMIT_FAIL_DISABLE: u32 = 0; -pub const PME_FAILFAST_ON_COMMIT_FAIL_ENABLE: u32 = 1; -pub const PROCESS_POWER_THROTTLING_CURRENT_VERSION: u32 = 1; -pub const PROCESS_POWER_THROTTLING_EXECUTION_SPEED: u32 = 1; -pub const PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION: u32 = 4; -pub const PROCESS_POWER_THROTTLING_VALID_FLAGS: u32 = 5; -pub const PROCESS_LEAP_SECOND_INFO_FLAG_ENABLE_SIXTY_SECOND: u32 = 1; -pub const PROCESS_LEAP_SECOND_INFO_VALID_FLAGS: u32 = 1; -pub const USER_CET_ENVIRONMENT_WIN32_PROCESS: u32 = 0; -pub const USER_CET_ENVIRONMENT_SGX2_ENCLAVE: u32 = 2; -pub const USER_CET_ENVIRONMENT_VBS_ENCLAVE: u32 = 16; -pub const USER_CET_ENVIRONMENT_VBS_BASIC_ENCLAVE: u32 = 17; -pub const SCEX2_ALT_NETBIOS_NAME: u32 = 1; -pub const FILE_MAP_WRITE: u32 = 2; -pub const FILE_MAP_READ: u32 = 4; -pub const FILE_MAP_ALL_ACCESS: u32 = 983071; -pub const FILE_MAP_EXECUTE: u32 = 32; -pub const FILE_MAP_COPY: u32 = 1; -pub const FILE_MAP_RESERVE: u32 = 2147483648; -pub const FILE_MAP_TARGETS_INVALID: u32 = 1073741824; -pub const FILE_MAP_LARGE_PAGES: u32 = 536870912; -pub const FILE_CACHE_MAX_HARD_ENABLE: u32 = 1; -pub const FILE_CACHE_MAX_HARD_DISABLE: u32 = 2; -pub const FILE_CACHE_MIN_HARD_ENABLE: u32 = 4; -pub const FILE_CACHE_MIN_HARD_DISABLE: u32 = 8; -pub const MEHC_PATROL_SCRUBBER_PRESENT: u32 = 1; -pub const FIND_RESOURCE_DIRECTORY_TYPES: u32 = 256; -pub const FIND_RESOURCE_DIRECTORY_NAMES: u32 = 512; -pub const FIND_RESOURCE_DIRECTORY_LANGUAGES: u32 = 1024; -pub const RESOURCE_ENUM_LN: u32 = 1; -pub const RESOURCE_ENUM_MUI: u32 = 2; -pub const RESOURCE_ENUM_MUI_SYSTEM: u32 = 4; -pub const RESOURCE_ENUM_VALIDATE: u32 = 8; -pub const RESOURCE_ENUM_MODULE_EXACT: u32 = 16; -pub const SUPPORT_LANG_NUMBER: u32 = 32; -pub const GET_MODULE_HANDLE_EX_FLAG_PIN: u32 = 1; -pub const GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT: u32 = 2; -pub const GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS: u32 = 4; -pub const CURRENT_IMPORT_REDIRECTION_VERSION: u32 = 1; -pub const DONT_RESOLVE_DLL_REFERENCES: u32 = 1; -pub const LOAD_LIBRARY_AS_DATAFILE: u32 = 2; -pub const LOAD_WITH_ALTERED_SEARCH_PATH: u32 = 8; -pub const LOAD_IGNORE_CODE_AUTHZ_LEVEL: u32 = 16; -pub const LOAD_LIBRARY_AS_IMAGE_RESOURCE: u32 = 32; -pub const LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE: u32 = 64; -pub const LOAD_LIBRARY_REQUIRE_SIGNED_TARGET: u32 = 128; -pub const LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR: u32 = 256; -pub const LOAD_LIBRARY_SEARCH_APPLICATION_DIR: u32 = 512; -pub const LOAD_LIBRARY_SEARCH_USER_DIRS: u32 = 1024; -pub const LOAD_LIBRARY_SEARCH_SYSTEM32: u32 = 2048; -pub const LOAD_LIBRARY_SEARCH_DEFAULT_DIRS: u32 = 4096; -pub const LOAD_LIBRARY_SAFE_CURRENT_DIRS: u32 = 8192; -pub const LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER: u32 = 16384; -pub const LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY: u32 = 32768; -pub const PRIVATE_NAMESPACE_FLAG_DESTROY: u32 = 1; -pub const FILE_BEGIN: u32 = 0; -pub const FILE_CURRENT: u32 = 1; -pub const FILE_END: u32 = 2; -pub const FILE_FLAG_WRITE_THROUGH: u32 = 2147483648; -pub const FILE_FLAG_OVERLAPPED: u32 = 1073741824; -pub const FILE_FLAG_NO_BUFFERING: u32 = 536870912; -pub const FILE_FLAG_RANDOM_ACCESS: u32 = 268435456; -pub const FILE_FLAG_SEQUENTIAL_SCAN: u32 = 134217728; -pub const FILE_FLAG_DELETE_ON_CLOSE: u32 = 67108864; -pub const FILE_FLAG_BACKUP_SEMANTICS: u32 = 33554432; -pub const FILE_FLAG_POSIX_SEMANTICS: u32 = 16777216; -pub const FILE_FLAG_SESSION_AWARE: u32 = 8388608; -pub const FILE_FLAG_OPEN_REPARSE_POINT: u32 = 2097152; -pub const FILE_FLAG_OPEN_NO_RECALL: u32 = 1048576; -pub const FILE_FLAG_FIRST_PIPE_INSTANCE: u32 = 524288; -pub const FILE_FLAG_OPEN_REQUIRING_OPLOCK: u32 = 262144; -pub const FILE_FLAG_IGNORE_IMPERSONATED_DEVICEMAP: u32 = 131072; -pub const PROGRESS_CONTINUE: u32 = 0; -pub const PROGRESS_CANCEL: u32 = 1; -pub const PROGRESS_STOP: u32 = 2; -pub const PROGRESS_QUIET: u32 = 3; -pub const CALLBACK_CHUNK_FINISHED: u32 = 0; -pub const CALLBACK_STREAM_SWITCH: u32 = 1; -pub const COPY_FILE_FAIL_IF_EXISTS: u32 = 1; -pub const COPY_FILE_RESTARTABLE: u32 = 2; -pub const COPY_FILE_OPEN_SOURCE_FOR_WRITE: u32 = 4; -pub const COPY_FILE_ALLOW_DECRYPTED_DESTINATION: u32 = 8; -pub const COPY_FILE_COPY_SYMLINK: u32 = 2048; -pub const COPY_FILE_NO_BUFFERING: u32 = 4096; -pub const COPY_FILE_REQUEST_SECURITY_PRIVILEGES: u32 = 8192; -pub const COPY_FILE_RESUME_FROM_PAUSE: u32 = 16384; -pub const COPY_FILE_NO_OFFLOAD: u32 = 262144; -pub const COPY_FILE_IGNORE_EDP_BLOCK: u32 = 4194304; -pub const COPY_FILE_IGNORE_SOURCE_ENCRYPTION: u32 = 8388608; -pub const COPY_FILE_DONT_REQUEST_DEST_WRITE_DAC: u32 = 33554432; -pub const COPY_FILE_REQUEST_COMPRESSED_TRAFFIC: u32 = 268435456; -pub const COPY_FILE_OPEN_AND_COPY_REPARSE_POINT: u32 = 2097152; -pub const COPY_FILE_DIRECTORY: u32 = 128; -pub const COPY_FILE_SKIP_ALTERNATE_STREAMS: u32 = 32768; -pub const COPY_FILE_DISABLE_PRE_ALLOCATION: u32 = 67108864; -pub const COPY_FILE_ENABLE_LOW_FREE_SPACE_MODE: u32 = 134217728; -pub const COPY_FILE_ENABLE_SPARSE_COPY: u32 = 536870912; -pub const REPLACEFILE_WRITE_THROUGH: u32 = 1; -pub const REPLACEFILE_IGNORE_MERGE_ERRORS: u32 = 2; -pub const REPLACEFILE_IGNORE_ACL_ERRORS: u32 = 4; -pub const PIPE_ACCESS_INBOUND: u32 = 1; -pub const PIPE_ACCESS_OUTBOUND: u32 = 2; -pub const PIPE_ACCESS_DUPLEX: u32 = 3; -pub const PIPE_CLIENT_END: u32 = 0; -pub const PIPE_SERVER_END: u32 = 1; -pub const PIPE_WAIT: u32 = 0; -pub const PIPE_NOWAIT: u32 = 1; -pub const PIPE_READMODE_BYTE: u32 = 0; -pub const PIPE_READMODE_MESSAGE: u32 = 2; -pub const PIPE_TYPE_BYTE: u32 = 0; -pub const PIPE_TYPE_MESSAGE: u32 = 4; -pub const PIPE_ACCEPT_REMOTE_CLIENTS: u32 = 0; -pub const PIPE_REJECT_REMOTE_CLIENTS: u32 = 8; -pub const PIPE_UNLIMITED_INSTANCES: u32 = 255; -pub const SECURITY_CONTEXT_TRACKING: u32 = 262144; -pub const SECURITY_EFFECTIVE_ONLY: u32 = 524288; -pub const SECURITY_SQOS_PRESENT: u32 = 1048576; -pub const SECURITY_VALID_SQOS_FLAGS: u32 = 2031616; -pub const FAIL_FAST_GENERATE_EXCEPTION_ADDRESS: u32 = 1; -pub const FAIL_FAST_NO_HARD_ERROR_DLG: u32 = 2; -pub const DTR_CONTROL_DISABLE: u32 = 0; -pub const DTR_CONTROL_ENABLE: u32 = 1; -pub const DTR_CONTROL_HANDSHAKE: u32 = 2; -pub const RTS_CONTROL_DISABLE: u32 = 0; -pub const RTS_CONTROL_ENABLE: u32 = 1; -pub const RTS_CONTROL_HANDSHAKE: u32 = 2; -pub const RTS_CONTROL_TOGGLE: u32 = 3; -pub const GMEM_FIXED: u32 = 0; -pub const GMEM_MOVEABLE: u32 = 2; -pub const GMEM_NOCOMPACT: u32 = 16; -pub const GMEM_NODISCARD: u32 = 32; -pub const GMEM_ZEROINIT: u32 = 64; -pub const GMEM_MODIFY: u32 = 128; -pub const GMEM_DISCARDABLE: u32 = 256; -pub const GMEM_NOT_BANKED: u32 = 4096; -pub const GMEM_SHARE: u32 = 8192; -pub const GMEM_DDESHARE: u32 = 8192; -pub const GMEM_NOTIFY: u32 = 16384; -pub const GMEM_LOWER: u32 = 4096; -pub const GMEM_VALID_FLAGS: u32 = 32626; -pub const GMEM_INVALID_HANDLE: u32 = 32768; -pub const GHND: u32 = 66; -pub const GPTR: u32 = 64; -pub const GMEM_DISCARDED: u32 = 16384; -pub const GMEM_LOCKCOUNT: u32 = 255; -pub const DEBUG_PROCESS: u32 = 1; -pub const DEBUG_ONLY_THIS_PROCESS: u32 = 2; -pub const CREATE_SUSPENDED: u32 = 4; -pub const DETACHED_PROCESS: u32 = 8; -pub const CREATE_NEW_CONSOLE: u32 = 16; -pub const NORMAL_PRIORITY_CLASS: u32 = 32; -pub const IDLE_PRIORITY_CLASS: u32 = 64; -pub const HIGH_PRIORITY_CLASS: u32 = 128; -pub const REALTIME_PRIORITY_CLASS: u32 = 256; -pub const CREATE_NEW_PROCESS_GROUP: u32 = 512; -pub const CREATE_UNICODE_ENVIRONMENT: u32 = 1024; -pub const CREATE_SEPARATE_WOW_VDM: u32 = 2048; -pub const CREATE_SHARED_WOW_VDM: u32 = 4096; -pub const CREATE_FORCEDOS: u32 = 8192; -pub const BELOW_NORMAL_PRIORITY_CLASS: u32 = 16384; -pub const ABOVE_NORMAL_PRIORITY_CLASS: u32 = 32768; -pub const INHERIT_PARENT_AFFINITY: u32 = 65536; -pub const INHERIT_CALLER_PRIORITY: u32 = 131072; -pub const CREATE_PROTECTED_PROCESS: u32 = 262144; -pub const EXTENDED_STARTUPINFO_PRESENT: u32 = 524288; -pub const PROCESS_MODE_BACKGROUND_BEGIN: u32 = 1048576; -pub const PROCESS_MODE_BACKGROUND_END: u32 = 2097152; -pub const CREATE_SECURE_PROCESS: u32 = 4194304; -pub const CREATE_BREAKAWAY_FROM_JOB: u32 = 16777216; -pub const CREATE_PRESERVE_CODE_AUTHZ_LEVEL: u32 = 33554432; -pub const CREATE_DEFAULT_ERROR_MODE: u32 = 67108864; -pub const CREATE_NO_WINDOW: u32 = 134217728; -pub const PROFILE_USER: u32 = 268435456; -pub const PROFILE_KERNEL: u32 = 536870912; -pub const PROFILE_SERVER: u32 = 1073741824; -pub const CREATE_IGNORE_SYSTEM_DEFAULT: u32 = 2147483648; -pub const STACK_SIZE_PARAM_IS_A_RESERVATION: u32 = 65536; -pub const THREAD_PRIORITY_LOWEST: i32 = -2; -pub const THREAD_PRIORITY_BELOW_NORMAL: i32 = -1; -pub const THREAD_PRIORITY_NORMAL: u32 = 0; -pub const THREAD_PRIORITY_HIGHEST: u32 = 2; -pub const THREAD_PRIORITY_ABOVE_NORMAL: u32 = 1; -pub const THREAD_PRIORITY_ERROR_RETURN: u32 = 2147483647; -pub const THREAD_PRIORITY_TIME_CRITICAL: u32 = 15; -pub const THREAD_PRIORITY_IDLE: i32 = -15; -pub const THREAD_MODE_BACKGROUND_BEGIN: u32 = 65536; -pub const THREAD_MODE_BACKGROUND_END: u32 = 131072; -pub const VOLUME_NAME_DOS: u32 = 0; -pub const VOLUME_NAME_GUID: u32 = 1; -pub const VOLUME_NAME_NT: u32 = 2; -pub const VOLUME_NAME_NONE: u32 = 4; -pub const FILE_NAME_NORMALIZED: u32 = 0; -pub const FILE_NAME_OPENED: u32 = 8; -pub const DRIVE_UNKNOWN: u32 = 0; -pub const DRIVE_NO_ROOT_DIR: u32 = 1; -pub const DRIVE_REMOVABLE: u32 = 2; -pub const DRIVE_FIXED: u32 = 3; -pub const DRIVE_REMOTE: u32 = 4; -pub const DRIVE_CDROM: u32 = 5; -pub const DRIVE_RAMDISK: u32 = 6; -pub const FILE_TYPE_UNKNOWN: u32 = 0; -pub const FILE_TYPE_DISK: u32 = 1; -pub const FILE_TYPE_CHAR: u32 = 2; -pub const FILE_TYPE_PIPE: u32 = 3; -pub const FILE_TYPE_REMOTE: u32 = 32768; -pub const NOPARITY: u32 = 0; -pub const ODDPARITY: u32 = 1; -pub const EVENPARITY: u32 = 2; -pub const MARKPARITY: u32 = 3; -pub const SPACEPARITY: u32 = 4; -pub const ONESTOPBIT: u32 = 0; -pub const ONE5STOPBITS: u32 = 1; -pub const TWOSTOPBITS: u32 = 2; -pub const IGNORE: u32 = 0; -pub const INFINITE: u32 = 4294967295; -pub const CBR_110: u32 = 110; -pub const CBR_300: u32 = 300; -pub const CBR_600: u32 = 600; -pub const CBR_1200: u32 = 1200; -pub const CBR_2400: u32 = 2400; -pub const CBR_4800: u32 = 4800; -pub const CBR_9600: u32 = 9600; -pub const CBR_14400: u32 = 14400; -pub const CBR_19200: u32 = 19200; -pub const CBR_38400: u32 = 38400; -pub const CBR_56000: u32 = 56000; -pub const CBR_57600: u32 = 57600; -pub const CBR_115200: u32 = 115200; -pub const CBR_128000: u32 = 128000; -pub const CBR_256000: u32 = 256000; -pub const CE_RXOVER: u32 = 1; -pub const CE_OVERRUN: u32 = 2; -pub const CE_RXPARITY: u32 = 4; -pub const CE_FRAME: u32 = 8; -pub const CE_BREAK: u32 = 16; -pub const CE_TXFULL: u32 = 256; -pub const CE_PTO: u32 = 512; -pub const CE_IOE: u32 = 1024; -pub const CE_DNS: u32 = 2048; -pub const CE_OOP: u32 = 4096; -pub const CE_MODE: u32 = 32768; -pub const IE_BADID: i32 = -1; -pub const IE_OPEN: i32 = -2; -pub const IE_NOPEN: i32 = -3; -pub const IE_MEMORY: i32 = -4; -pub const IE_DEFAULT: i32 = -5; -pub const IE_HARDWARE: i32 = -10; -pub const IE_BYTESIZE: i32 = -11; -pub const IE_BAUDRATE: i32 = -12; -pub const EV_RXCHAR: u32 = 1; -pub const EV_RXFLAG: u32 = 2; -pub const EV_TXEMPTY: u32 = 4; -pub const EV_CTS: u32 = 8; -pub const EV_DSR: u32 = 16; -pub const EV_RLSD: u32 = 32; -pub const EV_BREAK: u32 = 64; -pub const EV_ERR: u32 = 128; -pub const EV_RING: u32 = 256; -pub const EV_PERR: u32 = 512; -pub const EV_RX80FULL: u32 = 1024; -pub const EV_EVENT1: u32 = 2048; -pub const EV_EVENT2: u32 = 4096; -pub const SETXOFF: u32 = 1; -pub const SETXON: u32 = 2; -pub const SETRTS: u32 = 3; -pub const CLRRTS: u32 = 4; -pub const SETDTR: u32 = 5; -pub const CLRDTR: u32 = 6; -pub const RESETDEV: u32 = 7; -pub const SETBREAK: u32 = 8; -pub const CLRBREAK: u32 = 9; -pub const PURGE_TXABORT: u32 = 1; -pub const PURGE_RXABORT: u32 = 2; -pub const PURGE_TXCLEAR: u32 = 4; -pub const PURGE_RXCLEAR: u32 = 8; -pub const LPTx: u32 = 128; -pub const S_QUEUEEMPTY: u32 = 0; -pub const S_THRESHOLD: u32 = 1; -pub const S_ALLTHRESHOLD: u32 = 2; -pub const S_NORMAL: u32 = 0; -pub const S_LEGATO: u32 = 1; -pub const S_STACCATO: u32 = 2; -pub const S_PERIOD512: u32 = 0; -pub const S_PERIOD1024: u32 = 1; -pub const S_PERIOD2048: u32 = 2; -pub const S_PERIODVOICE: u32 = 3; -pub const S_WHITE512: u32 = 4; -pub const S_WHITE1024: u32 = 5; -pub const S_WHITE2048: u32 = 6; -pub const S_WHITEVOICE: u32 = 7; -pub const S_SERDVNA: i32 = -1; -pub const S_SEROFM: i32 = -2; -pub const S_SERMACT: i32 = -3; -pub const S_SERQFUL: i32 = -4; -pub const S_SERBDNT: i32 = -5; -pub const S_SERDLN: i32 = -6; -pub const S_SERDCC: i32 = -7; -pub const S_SERDTP: i32 = -8; -pub const S_SERDVL: i32 = -9; -pub const S_SERDMD: i32 = -10; -pub const S_SERDSH: i32 = -11; -pub const S_SERDPT: i32 = -12; -pub const S_SERDFQ: i32 = -13; -pub const S_SERDDR: i32 = -14; -pub const S_SERDSR: i32 = -15; -pub const S_SERDST: i32 = -16; -pub const NMPWAIT_WAIT_FOREVER: u32 = 4294967295; -pub const NMPWAIT_NOWAIT: u32 = 1; -pub const NMPWAIT_USE_DEFAULT_WAIT: u32 = 0; -pub const FS_CASE_IS_PRESERVED: u32 = 2; -pub const FS_CASE_SENSITIVE: u32 = 1; -pub const FS_UNICODE_STORED_ON_DISK: u32 = 4; -pub const FS_PERSISTENT_ACLS: u32 = 8; -pub const FS_VOL_IS_COMPRESSED: u32 = 32768; -pub const FS_FILE_COMPRESSION: u32 = 16; -pub const FS_FILE_ENCRYPTION: u32 = 131072; -pub const OF_READ: u32 = 0; -pub const OF_WRITE: u32 = 1; -pub const OF_READWRITE: u32 = 2; -pub const OF_SHARE_COMPAT: u32 = 0; -pub const OF_SHARE_EXCLUSIVE: u32 = 16; -pub const OF_SHARE_DENY_WRITE: u32 = 32; -pub const OF_SHARE_DENY_READ: u32 = 48; -pub const OF_SHARE_DENY_NONE: u32 = 64; -pub const OF_PARSE: u32 = 256; -pub const OF_DELETE: u32 = 512; -pub const OF_VERIFY: u32 = 1024; -pub const OF_CANCEL: u32 = 2048; -pub const OF_CREATE: u32 = 4096; -pub const OF_PROMPT: u32 = 8192; -pub const OF_EXIST: u32 = 16384; -pub const OF_REOPEN: u32 = 32768; -pub const OFS_MAXPATHNAME: u32 = 128; -pub const MAXINTATOM: u32 = 49152; -pub const SCS_32BIT_BINARY: u32 = 0; -pub const SCS_DOS_BINARY: u32 = 1; -pub const SCS_WOW_BINARY: u32 = 2; -pub const SCS_PIF_BINARY: u32 = 3; -pub const SCS_POSIX_BINARY: u32 = 4; -pub const SCS_OS216_BINARY: u32 = 5; -pub const SCS_64BIT_BINARY: u32 = 6; -pub const SCS_THIS_PLATFORM_BINARY: u32 = 6; -pub const FIBER_FLAG_FLOAT_SWITCH: u32 = 1; -pub const UMS_VERSION: u32 = 256; -pub const PROCESS_DEP_ENABLE: u32 = 1; -pub const PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION: u32 = 2; -pub const FILE_SKIP_COMPLETION_PORT_ON_SUCCESS: u32 = 1; -pub const FILE_SKIP_SET_EVENT_ON_HANDLE: u32 = 2; -pub const SEM_FAILCRITICALERRORS: u32 = 1; -pub const SEM_NOGPFAULTERRORBOX: u32 = 2; -pub const SEM_NOALIGNMENTFAULTEXCEPT: u32 = 4; -pub const SEM_NOOPENFILEERRORBOX: u32 = 32768; -pub const CRITICAL_SECTION_NO_DEBUG_INFO: u32 = 16777216; -pub const HANDLE_FLAG_INHERIT: u32 = 1; -pub const HANDLE_FLAG_PROTECT_FROM_CLOSE: u32 = 2; -pub const HINSTANCE_ERROR: u32 = 32; -pub const GET_TAPE_MEDIA_INFORMATION: u32 = 0; -pub const GET_TAPE_DRIVE_INFORMATION: u32 = 1; -pub const SET_TAPE_MEDIA_INFORMATION: u32 = 0; -pub const SET_TAPE_DRIVE_INFORMATION: u32 = 1; -pub const FORMAT_MESSAGE_ALLOCATE_BUFFER: u32 = 256; -pub const FORMAT_MESSAGE_IGNORE_INSERTS: u32 = 512; -pub const FORMAT_MESSAGE_FROM_STRING: u32 = 1024; -pub const FORMAT_MESSAGE_FROM_HMODULE: u32 = 2048; -pub const FORMAT_MESSAGE_FROM_SYSTEM: u32 = 4096; -pub const FORMAT_MESSAGE_ARGUMENT_ARRAY: u32 = 8192; -pub const FORMAT_MESSAGE_MAX_WIDTH_MASK: u32 = 255; -pub const FILE_ENCRYPTABLE: u32 = 0; -pub const FILE_IS_ENCRYPTED: u32 = 1; -pub const FILE_SYSTEM_ATTR: u32 = 2; -pub const FILE_ROOT_DIR: u32 = 3; -pub const FILE_SYSTEM_DIR: u32 = 4; -pub const FILE_UNKNOWN: u32 = 5; -pub const FILE_SYSTEM_NOT_SUPPORT: u32 = 6; -pub const FILE_USER_DISALLOWED: u32 = 7; -pub const FILE_READ_ONLY: u32 = 8; -pub const FILE_DIR_DISALLOWED: u32 = 9; -pub const EFS_USE_RECOVERY_KEYS: u32 = 1; -pub const CREATE_FOR_IMPORT: u32 = 1; -pub const CREATE_FOR_DIR: u32 = 2; -pub const OVERWRITE_HIDDEN: u32 = 4; -pub const EFSRPC_SECURE_ONLY: u32 = 8; -pub const EFS_DROP_ALTERNATE_STREAMS: u32 = 16; -pub const BACKUP_INVALID: u32 = 0; -pub const BACKUP_DATA: u32 = 1; -pub const BACKUP_EA_DATA: u32 = 2; -pub const BACKUP_SECURITY_DATA: u32 = 3; -pub const BACKUP_ALTERNATE_DATA: u32 = 4; -pub const BACKUP_LINK: u32 = 5; -pub const BACKUP_PROPERTY_DATA: u32 = 6; -pub const BACKUP_OBJECT_ID: u32 = 7; -pub const BACKUP_REPARSE_DATA: u32 = 8; -pub const BACKUP_SPARSE_BLOCK: u32 = 9; -pub const BACKUP_TXFS_DATA: u32 = 10; -pub const BACKUP_GHOSTED_FILE_EXTENTS: u32 = 11; -pub const STREAM_NORMAL_ATTRIBUTE: u32 = 0; -pub const STREAM_MODIFIED_WHEN_READ: u32 = 1; -pub const STREAM_CONTAINS_SECURITY: u32 = 2; -pub const STREAM_CONTAINS_PROPERTIES: u32 = 4; -pub const STREAM_SPARSE_ATTRIBUTE: u32 = 8; -pub const STREAM_CONTAINS_GHOSTED_FILE_EXTENTS: u32 = 16; -pub const STARTF_USESHOWWINDOW: u32 = 1; -pub const STARTF_USESIZE: u32 = 2; -pub const STARTF_USEPOSITION: u32 = 4; -pub const STARTF_USECOUNTCHARS: u32 = 8; -pub const STARTF_USEFILLATTRIBUTE: u32 = 16; -pub const STARTF_RUNFULLSCREEN: u32 = 32; -pub const STARTF_FORCEONFEEDBACK: u32 = 64; -pub const STARTF_FORCEOFFFEEDBACK: u32 = 128; -pub const STARTF_USESTDHANDLES: u32 = 256; -pub const STARTF_USEHOTKEY: u32 = 512; -pub const STARTF_TITLEISLINKNAME: u32 = 2048; -pub const STARTF_TITLEISAPPID: u32 = 4096; -pub const STARTF_PREVENTPINNING: u32 = 8192; -pub const STARTF_UNTRUSTEDSOURCE: u32 = 32768; -pub const STARTF_HOLOGRAPHIC: u32 = 262144; -pub const SHUTDOWN_NORETRY: u32 = 1; -pub const PROTECTION_LEVEL_WINTCB_LIGHT: u32 = 0; -pub const PROTECTION_LEVEL_WINDOWS: u32 = 1; -pub const PROTECTION_LEVEL_WINDOWS_LIGHT: u32 = 2; -pub const PROTECTION_LEVEL_ANTIMALWARE_LIGHT: u32 = 3; -pub const PROTECTION_LEVEL_LSA_LIGHT: u32 = 4; -pub const PROTECTION_LEVEL_WINTCB: u32 = 5; -pub const PROTECTION_LEVEL_CODEGEN_LIGHT: u32 = 6; -pub const PROTECTION_LEVEL_AUTHENTICODE: u32 = 7; -pub const PROTECTION_LEVEL_PPL_APP: u32 = 8; -pub const PROTECTION_LEVEL_SAME: u32 = 4294967295; -pub const PROTECTION_LEVEL_NONE: u32 = 4294967294; -pub const PROCESS_NAME_NATIVE: u32 = 1; -pub const PROC_THREAD_ATTRIBUTE_NUMBER: u32 = 65535; -pub const PROC_THREAD_ATTRIBUTE_THREAD: u32 = 65536; -pub const PROC_THREAD_ATTRIBUTE_INPUT: u32 = 131072; -pub const PROC_THREAD_ATTRIBUTE_ADDITIVE: u32 = 262144; -pub const PROCESS_CREATION_MITIGATION_POLICY_DEP_ENABLE: u32 = 1; -pub const PROCESS_CREATION_MITIGATION_POLICY_DEP_ATL_THUNK_ENABLE: u32 = 2; -pub const PROCESS_CREATION_MITIGATION_POLICY_SEHOP_ENABLE: u32 = 4; -pub const PROCESS_CREATION_MITIGATION_POLICY_FORCE_RELOCATE_IMAGES_MASK: u32 = 768; -pub const PROCESS_CREATION_MITIGATION_POLICY_FORCE_RELOCATE_IMAGES_DEFER: u32 = 0; -pub const PROCESS_CREATION_MITIGATION_POLICY_FORCE_RELOCATE_IMAGES_ALWAYS_ON: u32 = 256; -pub const PROCESS_CREATION_MITIGATION_POLICY_FORCE_RELOCATE_IMAGES_ALWAYS_OFF: u32 = 512; -pub const PROCESS_CREATION_MITIGATION_POLICY_FORCE_RELOCATE_IMAGES_ALWAYS_ON_REQ_RELOCS: u32 = 768; -pub const PROCESS_CREATION_MITIGATION_POLICY_HEAP_TERMINATE_MASK: u32 = 12288; -pub const PROCESS_CREATION_MITIGATION_POLICY_HEAP_TERMINATE_DEFER: u32 = 0; -pub const PROCESS_CREATION_MITIGATION_POLICY_HEAP_TERMINATE_ALWAYS_ON: u32 = 4096; -pub const PROCESS_CREATION_MITIGATION_POLICY_HEAP_TERMINATE_ALWAYS_OFF: u32 = 8192; -pub const PROCESS_CREATION_MITIGATION_POLICY_HEAP_TERMINATE_RESERVED: u32 = 12288; -pub const PROCESS_CREATION_MITIGATION_POLICY_BOTTOM_UP_ASLR_MASK: u32 = 196608; -pub const PROCESS_CREATION_MITIGATION_POLICY_BOTTOM_UP_ASLR_DEFER: u32 = 0; -pub const PROCESS_CREATION_MITIGATION_POLICY_BOTTOM_UP_ASLR_ALWAYS_ON: u32 = 65536; -pub const PROCESS_CREATION_MITIGATION_POLICY_BOTTOM_UP_ASLR_ALWAYS_OFF: u32 = 131072; -pub const PROCESS_CREATION_MITIGATION_POLICY_BOTTOM_UP_ASLR_RESERVED: u32 = 196608; -pub const PROCESS_CREATION_MITIGATION_POLICY_HIGH_ENTROPY_ASLR_MASK: u32 = 3145728; -pub const PROCESS_CREATION_MITIGATION_POLICY_HIGH_ENTROPY_ASLR_DEFER: u32 = 0; -pub const PROCESS_CREATION_MITIGATION_POLICY_HIGH_ENTROPY_ASLR_ALWAYS_ON: u32 = 1048576; -pub const PROCESS_CREATION_MITIGATION_POLICY_HIGH_ENTROPY_ASLR_ALWAYS_OFF: u32 = 2097152; -pub const PROCESS_CREATION_MITIGATION_POLICY_HIGH_ENTROPY_ASLR_RESERVED: u32 = 3145728; -pub const PROCESS_CREATION_MITIGATION_POLICY_STRICT_HANDLE_CHECKS_MASK: u32 = 50331648; -pub const PROCESS_CREATION_MITIGATION_POLICY_STRICT_HANDLE_CHECKS_DEFER: u32 = 0; -pub const PROCESS_CREATION_MITIGATION_POLICY_STRICT_HANDLE_CHECKS_ALWAYS_ON: u32 = 16777216; -pub const PROCESS_CREATION_MITIGATION_POLICY_STRICT_HANDLE_CHECKS_ALWAYS_OFF: u32 = 33554432; -pub const PROCESS_CREATION_MITIGATION_POLICY_STRICT_HANDLE_CHECKS_RESERVED: u32 = 50331648; -pub const PROCESS_CREATION_MITIGATION_POLICY_WIN32K_SYSTEM_CALL_DISABLE_MASK: u32 = 805306368; -pub const PROCESS_CREATION_MITIGATION_POLICY_WIN32K_SYSTEM_CALL_DISABLE_DEFER: u32 = 0; -pub const PROCESS_CREATION_MITIGATION_POLICY_WIN32K_SYSTEM_CALL_DISABLE_ALWAYS_ON: u32 = 268435456; -pub const PROCESS_CREATION_MITIGATION_POLICY_WIN32K_SYSTEM_CALL_DISABLE_ALWAYS_OFF: u32 = 536870912; -pub const PROCESS_CREATION_MITIGATION_POLICY_WIN32K_SYSTEM_CALL_DISABLE_RESERVED: u32 = 805306368; -pub const PROCESS_CREATION_CHILD_PROCESS_RESTRICTED: u32 = 1; -pub const PROCESS_CREATION_CHILD_PROCESS_OVERRIDE: u32 = 2; -pub const PROCESS_CREATION_CHILD_PROCESS_RESTRICTED_UNLESS_SECURE: u32 = 4; -pub const PROCESS_CREATION_ALL_APPLICATION_PACKAGES_OPT_OUT: u32 = 1; -pub const PROCESS_CREATION_DESKTOP_APP_BREAKAWAY_ENABLE_PROCESS_TREE: u32 = 1; -pub const PROCESS_CREATION_DESKTOP_APP_BREAKAWAY_DISABLE_PROCESS_TREE: u32 = 2; -pub const PROCESS_CREATION_DESKTOP_APP_BREAKAWAY_OVERRIDE: u32 = 4; -pub const ATOM_FLAG_GLOBAL: u32 = 2; -pub const GET_SYSTEM_WOW64_DIRECTORY_NAME_A_A: &[u8; 25] = b"GetSystemWow64DirectoryA\0"; -pub const GET_SYSTEM_WOW64_DIRECTORY_NAME_A_W: &[u8; 25] = b"GetSystemWow64DirectoryA\0"; -pub const GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A: &[u8; 25] = b"GetSystemWow64DirectoryW\0"; -pub const GET_SYSTEM_WOW64_DIRECTORY_NAME_W_W: &[u8; 25] = b"GetSystemWow64DirectoryW\0"; -pub const GET_SYSTEM_WOW64_DIRECTORY_NAME_T_A: &[u8; 25] = b"GetSystemWow64DirectoryA\0"; -pub const GET_SYSTEM_WOW64_DIRECTORY_NAME_T_W: &[u8; 25] = b"GetSystemWow64DirectoryA\0"; -pub const BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE: u32 = 1; -pub const BASE_SEARCH_PATH_DISABLE_SAFE_SEARCHMODE: u32 = 65536; -pub const BASE_SEARCH_PATH_PERMANENT: u32 = 32768; -pub const BASE_SEARCH_PATH_INVALID_FLAGS: i32 = -98306; -pub const DDD_RAW_TARGET_PATH: u32 = 1; -pub const DDD_REMOVE_DEFINITION: u32 = 2; -pub const DDD_EXACT_MATCH_ON_REMOVE: u32 = 4; -pub const DDD_NO_BROADCAST_SYSTEM: u32 = 8; -pub const DDD_LUID_BROADCAST_DRIVE: u32 = 16; -pub const COPYFILE2_MESSAGE_COPY_OFFLOAD: u32 = 1; -pub const COPYFILE2_IO_CYCLE_SIZE_MIN: u32 = 4096; -pub const COPYFILE2_IO_CYCLE_SIZE_MAX: u32 = 1073741824; -pub const COPYFILE2_IO_RATE_MIN: u32 = 512; -pub const COPY_FILE2_V2_DONT_COPY_JUNCTIONS: u32 = 1; -pub const COPY_FILE2_V2_VALID_FLAGS: u32 = 1; -pub const MOVEFILE_REPLACE_EXISTING: u32 = 1; -pub const MOVEFILE_COPY_ALLOWED: u32 = 2; -pub const MOVEFILE_DELAY_UNTIL_REBOOT: u32 = 4; -pub const MOVEFILE_WRITE_THROUGH: u32 = 8; -pub const MOVEFILE_CREATE_HARDLINK: u32 = 16; -pub const MOVEFILE_FAIL_IF_NOT_TRACKABLE: u32 = 32; -pub const EVENTLOG_FULL_INFO: u32 = 0; -pub const OPERATION_API_VERSION: u32 = 1; -pub const OPERATION_START_TRACE_CURRENT_THREAD: u32 = 1; -pub const OPERATION_END_DISCARD: u32 = 1; -pub const MAX_COMPUTERNAME_LENGTH: u32 = 15; -pub const LOGON32_LOGON_INTERACTIVE: u32 = 2; -pub const LOGON32_LOGON_NETWORK: u32 = 3; -pub const LOGON32_LOGON_BATCH: u32 = 4; -pub const LOGON32_LOGON_SERVICE: u32 = 5; -pub const LOGON32_LOGON_UNLOCK: u32 = 7; -pub const LOGON32_LOGON_NETWORK_CLEARTEXT: u32 = 8; -pub const LOGON32_LOGON_NEW_CREDENTIALS: u32 = 9; -pub const LOGON32_PROVIDER_DEFAULT: u32 = 0; -pub const LOGON32_PROVIDER_WINNT35: u32 = 1; -pub const LOGON32_PROVIDER_WINNT40: u32 = 2; -pub const LOGON32_PROVIDER_WINNT50: u32 = 3; -pub const LOGON32_PROVIDER_VIRTUAL: u32 = 4; -pub const LOGON_WITH_PROFILE: u32 = 1; -pub const LOGON_NETCREDENTIALS_ONLY: u32 = 2; -pub const LOGON_ZERO_PASSWORD_BUFFER: u32 = 2147483648; -pub const HW_PROFILE_GUIDLEN: u32 = 39; -pub const MAX_PROFILE_LEN: u32 = 80; -pub const DOCKINFO_UNDOCKED: u32 = 1; -pub const DOCKINFO_DOCKED: u32 = 2; -pub const DOCKINFO_USER_SUPPLIED: u32 = 4; -pub const DOCKINFO_USER_UNDOCKED: u32 = 5; -pub const DOCKINFO_USER_DOCKED: u32 = 6; -pub const FACILITY_NULL: u32 = 0; -pub const FACILITY_RPC: u32 = 1; -pub const FACILITY_DISPATCH: u32 = 2; -pub const FACILITY_STORAGE: u32 = 3; -pub const FACILITY_ITF: u32 = 4; -pub const FACILITY_WIN32: u32 = 7; -pub const FACILITY_WINDOWS: u32 = 8; -pub const FACILITY_SSPI: u32 = 9; -pub const FACILITY_SECURITY: u32 = 9; -pub const FACILITY_CONTROL: u32 = 10; -pub const FACILITY_CERT: u32 = 11; -pub const FACILITY_INTERNET: u32 = 12; -pub const FACILITY_MEDIASERVER: u32 = 13; -pub const FACILITY_MSMQ: u32 = 14; -pub const FACILITY_SETUPAPI: u32 = 15; -pub const FACILITY_SCARD: u32 = 16; -pub const FACILITY_COMPLUS: u32 = 17; -pub const FACILITY_AAF: u32 = 18; -pub const FACILITY_URT: u32 = 19; -pub const FACILITY_ACS: u32 = 20; -pub const FACILITY_DPLAY: u32 = 21; -pub const FACILITY_UMI: u32 = 22; -pub const FACILITY_SXS: u32 = 23; -pub const FACILITY_WINDOWS_CE: u32 = 24; -pub const FACILITY_HTTP: u32 = 25; -pub const FACILITY_USERMODE_COMMONLOG: u32 = 26; -pub const FACILITY_WER: u32 = 27; -pub const FACILITY_USERMODE_FILTER_MANAGER: u32 = 31; -pub const FACILITY_BACKGROUNDCOPY: u32 = 32; -pub const FACILITY_CONFIGURATION: u32 = 33; -pub const FACILITY_WIA: u32 = 33; -pub const FACILITY_STATE_MANAGEMENT: u32 = 34; -pub const FACILITY_METADIRECTORY: u32 = 35; -pub const FACILITY_WINDOWSUPDATE: u32 = 36; -pub const FACILITY_DIRECTORYSERVICE: u32 = 37; -pub const FACILITY_GRAPHICS: u32 = 38; -pub const FACILITY_SHELL: u32 = 39; -pub const FACILITY_NAP: u32 = 39; -pub const FACILITY_TPM_SERVICES: u32 = 40; -pub const FACILITY_TPM_SOFTWARE: u32 = 41; -pub const FACILITY_UI: u32 = 42; -pub const FACILITY_XAML: u32 = 43; -pub const FACILITY_ACTION_QUEUE: u32 = 44; -pub const FACILITY_PLA: u32 = 48; -pub const FACILITY_WINDOWS_SETUP: u32 = 48; -pub const FACILITY_FVE: u32 = 49; -pub const FACILITY_FWP: u32 = 50; -pub const FACILITY_WINRM: u32 = 51; -pub const FACILITY_NDIS: u32 = 52; -pub const FACILITY_USERMODE_HYPERVISOR: u32 = 53; -pub const FACILITY_CMI: u32 = 54; -pub const FACILITY_USERMODE_VIRTUALIZATION: u32 = 55; -pub const FACILITY_USERMODE_VOLMGR: u32 = 56; -pub const FACILITY_BCD: u32 = 57; -pub const FACILITY_USERMODE_VHD: u32 = 58; -pub const FACILITY_USERMODE_HNS: u32 = 59; -pub const FACILITY_SDIAG: u32 = 60; -pub const FACILITY_WEBSERVICES: u32 = 61; -pub const FACILITY_WINPE: u32 = 61; -pub const FACILITY_WPN: u32 = 62; -pub const FACILITY_WINDOWS_STORE: u32 = 63; -pub const FACILITY_INPUT: u32 = 64; -pub const FACILITY_QUIC: u32 = 65; -pub const FACILITY_EAP: u32 = 66; -pub const FACILITY_IORING: u32 = 70; -pub const FACILITY_WINDOWS_DEFENDER: u32 = 80; -pub const FACILITY_OPC: u32 = 81; -pub const FACILITY_XPS: u32 = 82; -pub const FACILITY_MBN: u32 = 84; -pub const FACILITY_POWERSHELL: u32 = 84; -pub const FACILITY_RAS: u32 = 83; -pub const FACILITY_P2P_INT: u32 = 98; -pub const FACILITY_P2P: u32 = 99; -pub const FACILITY_DAF: u32 = 100; -pub const FACILITY_BLUETOOTH_ATT: u32 = 101; -pub const FACILITY_AUDIO: u32 = 102; -pub const FACILITY_STATEREPOSITORY: u32 = 103; -pub const FACILITY_VISUALCPP: u32 = 109; -pub const FACILITY_SCRIPT: u32 = 112; -pub const FACILITY_PARSE: u32 = 113; -pub const FACILITY_BLB: u32 = 120; -pub const FACILITY_BLB_CLI: u32 = 121; -pub const FACILITY_WSBAPP: u32 = 122; -pub const FACILITY_BLBUI: u32 = 128; -pub const FACILITY_USN: u32 = 129; -pub const FACILITY_USERMODE_VOLSNAP: u32 = 130; -pub const FACILITY_TIERING: u32 = 131; -pub const FACILITY_WSB_ONLINE: u32 = 133; -pub const FACILITY_ONLINE_ID: u32 = 134; -pub const FACILITY_DEVICE_UPDATE_AGENT: u32 = 135; -pub const FACILITY_DRVSERVICING: u32 = 136; -pub const FACILITY_DLS: u32 = 153; -pub const FACILITY_DELIVERY_OPTIMIZATION: u32 = 208; -pub const FACILITY_USERMODE_SPACES: u32 = 231; -pub const FACILITY_USER_MODE_SECURITY_CORE: u32 = 232; -pub const FACILITY_USERMODE_LICENSING: u32 = 234; -pub const FACILITY_SOS: u32 = 160; -pub const FACILITY_OCP_UPDATE_AGENT: u32 = 173; -pub const FACILITY_DEBUGGERS: u32 = 176; -pub const FACILITY_SPP: u32 = 256; -pub const FACILITY_RESTORE: u32 = 256; -pub const FACILITY_DMSERVER: u32 = 256; -pub const FACILITY_DEPLOYMENT_SERVICES_SERVER: u32 = 257; -pub const FACILITY_DEPLOYMENT_SERVICES_IMAGING: u32 = 258; -pub const FACILITY_DEPLOYMENT_SERVICES_MANAGEMENT: u32 = 259; -pub const FACILITY_DEPLOYMENT_SERVICES_UTIL: u32 = 260; -pub const FACILITY_DEPLOYMENT_SERVICES_BINLSVC: u32 = 261; -pub const FACILITY_DEPLOYMENT_SERVICES_PXE: u32 = 263; -pub const FACILITY_DEPLOYMENT_SERVICES_TFTP: u32 = 264; -pub const FACILITY_DEPLOYMENT_SERVICES_TRANSPORT_MANAGEMENT: u32 = 272; -pub const FACILITY_DEPLOYMENT_SERVICES_DRIVER_PROVISIONING: u32 = 278; -pub const FACILITY_DEPLOYMENT_SERVICES_MULTICAST_SERVER: u32 = 289; -pub const FACILITY_DEPLOYMENT_SERVICES_MULTICAST_CLIENT: u32 = 290; -pub const FACILITY_DEPLOYMENT_SERVICES_CONTENT_PROVIDER: u32 = 293; -pub const FACILITY_HSP_SERVICES: u32 = 296; -pub const FACILITY_HSP_SOFTWARE: u32 = 297; -pub const FACILITY_LINGUISTIC_SERVICES: u32 = 305; -pub const FACILITY_AUDIOSTREAMING: u32 = 1094; -pub const FACILITY_TTD: u32 = 1490; -pub const FACILITY_ACCELERATOR: u32 = 1536; -pub const FACILITY_WMAAECMA: u32 = 1996; -pub const FACILITY_DIRECTMUSIC: u32 = 2168; -pub const FACILITY_DIRECT3D10: u32 = 2169; -pub const FACILITY_DXGI: u32 = 2170; -pub const FACILITY_DXGI_DDI: u32 = 2171; -pub const FACILITY_DIRECT3D11: u32 = 2172; -pub const FACILITY_DIRECT3D11_DEBUG: u32 = 2173; -pub const FACILITY_DIRECT3D12: u32 = 2174; -pub const FACILITY_DIRECT3D12_DEBUG: u32 = 2175; -pub const FACILITY_DXCORE: u32 = 2176; -pub const FACILITY_PRESENTATION: u32 = 2177; -pub const FACILITY_LEAP: u32 = 2184; -pub const FACILITY_AUDCLNT: u32 = 2185; -pub const FACILITY_WINCODEC_DWRITE_DWM: u32 = 2200; -pub const FACILITY_WINML: u32 = 2192; -pub const FACILITY_DIRECT2D: u32 = 2201; -pub const FACILITY_DEFRAG: u32 = 2304; -pub const FACILITY_USERMODE_SDBUS: u32 = 2305; -pub const FACILITY_JSCRIPT: u32 = 2306; -pub const FACILITY_PIDGENX: u32 = 2561; -pub const FACILITY_EAS: u32 = 85; -pub const FACILITY_WEB: u32 = 885; -pub const FACILITY_WEB_SOCKET: u32 = 886; -pub const FACILITY_MOBILE: u32 = 1793; -pub const FACILITY_SQLITE: u32 = 1967; -pub const FACILITY_SERVICE_FABRIC: u32 = 1968; -pub const FACILITY_UTC: u32 = 1989; -pub const FACILITY_WEP: u32 = 2049; -pub const FACILITY_SYNCENGINE: u32 = 2050; -pub const FACILITY_XBOX: u32 = 2339; -pub const FACILITY_GAME: u32 = 2340; -pub const FACILITY_PIX: u32 = 2748; -pub const ERROR_SUCCESS: u32 = 0; -pub const NO_ERROR: u32 = 0; -pub const ERROR_INVALID_FUNCTION: u32 = 1; -pub const ERROR_FILE_NOT_FOUND: u32 = 2; -pub const ERROR_PATH_NOT_FOUND: u32 = 3; -pub const ERROR_TOO_MANY_OPEN_FILES: u32 = 4; -pub const ERROR_ACCESS_DENIED: u32 = 5; -pub const ERROR_INVALID_HANDLE: u32 = 6; -pub const ERROR_ARENA_TRASHED: u32 = 7; -pub const ERROR_NOT_ENOUGH_MEMORY: u32 = 8; -pub const ERROR_INVALID_BLOCK: u32 = 9; -pub const ERROR_BAD_ENVIRONMENT: u32 = 10; -pub const ERROR_BAD_FORMAT: u32 = 11; -pub const ERROR_INVALID_ACCESS: u32 = 12; -pub const ERROR_INVALID_DATA: u32 = 13; -pub const ERROR_OUTOFMEMORY: u32 = 14; -pub const ERROR_INVALID_DRIVE: u32 = 15; -pub const ERROR_CURRENT_DIRECTORY: u32 = 16; -pub const ERROR_NOT_SAME_DEVICE: u32 = 17; -pub const ERROR_NO_MORE_FILES: u32 = 18; -pub const ERROR_WRITE_PROTECT: u32 = 19; -pub const ERROR_BAD_UNIT: u32 = 20; -pub const ERROR_NOT_READY: u32 = 21; -pub const ERROR_BAD_COMMAND: u32 = 22; -pub const ERROR_CRC: u32 = 23; -pub const ERROR_BAD_LENGTH: u32 = 24; -pub const ERROR_SEEK: u32 = 25; -pub const ERROR_NOT_DOS_DISK: u32 = 26; -pub const ERROR_SECTOR_NOT_FOUND: u32 = 27; -pub const ERROR_OUT_OF_PAPER: u32 = 28; -pub const ERROR_WRITE_FAULT: u32 = 29; -pub const ERROR_READ_FAULT: u32 = 30; -pub const ERROR_GEN_FAILURE: u32 = 31; -pub const ERROR_SHARING_VIOLATION: u32 = 32; -pub const ERROR_LOCK_VIOLATION: u32 = 33; -pub const ERROR_WRONG_DISK: u32 = 34; -pub const ERROR_SHARING_BUFFER_EXCEEDED: u32 = 36; -pub const ERROR_HANDLE_EOF: u32 = 38; -pub const ERROR_HANDLE_DISK_FULL: u32 = 39; -pub const ERROR_NOT_SUPPORTED: u32 = 50; -pub const ERROR_REM_NOT_LIST: u32 = 51; -pub const ERROR_DUP_NAME: u32 = 52; -pub const ERROR_BAD_NETPATH: u32 = 53; -pub const ERROR_NETWORK_BUSY: u32 = 54; -pub const ERROR_DEV_NOT_EXIST: u32 = 55; -pub const ERROR_TOO_MANY_CMDS: u32 = 56; -pub const ERROR_ADAP_HDW_ERR: u32 = 57; -pub const ERROR_BAD_NET_RESP: u32 = 58; -pub const ERROR_UNEXP_NET_ERR: u32 = 59; -pub const ERROR_BAD_REM_ADAP: u32 = 60; -pub const ERROR_PRINTQ_FULL: u32 = 61; -pub const ERROR_NO_SPOOL_SPACE: u32 = 62; -pub const ERROR_PRINT_CANCELLED: u32 = 63; -pub const ERROR_NETNAME_DELETED: u32 = 64; -pub const ERROR_NETWORK_ACCESS_DENIED: u32 = 65; -pub const ERROR_BAD_DEV_TYPE: u32 = 66; -pub const ERROR_BAD_NET_NAME: u32 = 67; -pub const ERROR_TOO_MANY_NAMES: u32 = 68; -pub const ERROR_TOO_MANY_SESS: u32 = 69; -pub const ERROR_SHARING_PAUSED: u32 = 70; -pub const ERROR_REQ_NOT_ACCEP: u32 = 71; -pub const ERROR_REDIR_PAUSED: u32 = 72; -pub const ERROR_FILE_EXISTS: u32 = 80; -pub const ERROR_CANNOT_MAKE: u32 = 82; -pub const ERROR_FAIL_I24: u32 = 83; -pub const ERROR_OUT_OF_STRUCTURES: u32 = 84; -pub const ERROR_ALREADY_ASSIGNED: u32 = 85; -pub const ERROR_INVALID_PASSWORD: u32 = 86; -pub const ERROR_INVALID_PARAMETER: u32 = 87; -pub const ERROR_NET_WRITE_FAULT: u32 = 88; -pub const ERROR_NO_PROC_SLOTS: u32 = 89; -pub const ERROR_TOO_MANY_SEMAPHORES: u32 = 100; -pub const ERROR_EXCL_SEM_ALREADY_OWNED: u32 = 101; -pub const ERROR_SEM_IS_SET: u32 = 102; -pub const ERROR_TOO_MANY_SEM_REQUESTS: u32 = 103; -pub const ERROR_INVALID_AT_INTERRUPT_TIME: u32 = 104; -pub const ERROR_SEM_OWNER_DIED: u32 = 105; -pub const ERROR_SEM_USER_LIMIT: u32 = 106; -pub const ERROR_DISK_CHANGE: u32 = 107; -pub const ERROR_DRIVE_LOCKED: u32 = 108; -pub const ERROR_BROKEN_PIPE: u32 = 109; -pub const ERROR_OPEN_FAILED: u32 = 110; -pub const ERROR_BUFFER_OVERFLOW: u32 = 111; -pub const ERROR_DISK_FULL: u32 = 112; -pub const ERROR_NO_MORE_SEARCH_HANDLES: u32 = 113; -pub const ERROR_INVALID_TARGET_HANDLE: u32 = 114; -pub const ERROR_INVALID_CATEGORY: u32 = 117; -pub const ERROR_INVALID_VERIFY_SWITCH: u32 = 118; -pub const ERROR_BAD_DRIVER_LEVEL: u32 = 119; -pub const ERROR_CALL_NOT_IMPLEMENTED: u32 = 120; -pub const ERROR_SEM_TIMEOUT: u32 = 121; -pub const ERROR_INSUFFICIENT_BUFFER: u32 = 122; -pub const ERROR_INVALID_NAME: u32 = 123; -pub const ERROR_INVALID_LEVEL: u32 = 124; -pub const ERROR_NO_VOLUME_LABEL: u32 = 125; -pub const ERROR_MOD_NOT_FOUND: u32 = 126; -pub const ERROR_PROC_NOT_FOUND: u32 = 127; -pub const ERROR_WAIT_NO_CHILDREN: u32 = 128; -pub const ERROR_CHILD_NOT_COMPLETE: u32 = 129; -pub const ERROR_DIRECT_ACCESS_HANDLE: u32 = 130; -pub const ERROR_NEGATIVE_SEEK: u32 = 131; -pub const ERROR_SEEK_ON_DEVICE: u32 = 132; -pub const ERROR_IS_JOIN_TARGET: u32 = 133; -pub const ERROR_IS_JOINED: u32 = 134; -pub const ERROR_IS_SUBSTED: u32 = 135; -pub const ERROR_NOT_JOINED: u32 = 136; -pub const ERROR_NOT_SUBSTED: u32 = 137; -pub const ERROR_JOIN_TO_JOIN: u32 = 138; -pub const ERROR_SUBST_TO_SUBST: u32 = 139; -pub const ERROR_JOIN_TO_SUBST: u32 = 140; -pub const ERROR_SUBST_TO_JOIN: u32 = 141; -pub const ERROR_BUSY_DRIVE: u32 = 142; -pub const ERROR_SAME_DRIVE: u32 = 143; -pub const ERROR_DIR_NOT_ROOT: u32 = 144; -pub const ERROR_DIR_NOT_EMPTY: u32 = 145; -pub const ERROR_IS_SUBST_PATH: u32 = 146; -pub const ERROR_IS_JOIN_PATH: u32 = 147; -pub const ERROR_PATH_BUSY: u32 = 148; -pub const ERROR_IS_SUBST_TARGET: u32 = 149; -pub const ERROR_SYSTEM_TRACE: u32 = 150; -pub const ERROR_INVALID_EVENT_COUNT: u32 = 151; -pub const ERROR_TOO_MANY_MUXWAITERS: u32 = 152; -pub const ERROR_INVALID_LIST_FORMAT: u32 = 153; -pub const ERROR_LABEL_TOO_LONG: u32 = 154; -pub const ERROR_TOO_MANY_TCBS: u32 = 155; -pub const ERROR_SIGNAL_REFUSED: u32 = 156; -pub const ERROR_DISCARDED: u32 = 157; -pub const ERROR_NOT_LOCKED: u32 = 158; -pub const ERROR_BAD_THREADID_ADDR: u32 = 159; -pub const ERROR_BAD_ARGUMENTS: u32 = 160; -pub const ERROR_BAD_PATHNAME: u32 = 161; -pub const ERROR_SIGNAL_PENDING: u32 = 162; -pub const ERROR_MAX_THRDS_REACHED: u32 = 164; -pub const ERROR_LOCK_FAILED: u32 = 167; -pub const ERROR_BUSY: u32 = 170; -pub const ERROR_DEVICE_SUPPORT_IN_PROGRESS: u32 = 171; -pub const ERROR_CANCEL_VIOLATION: u32 = 173; -pub const ERROR_ATOMIC_LOCKS_NOT_SUPPORTED: u32 = 174; -pub const ERROR_INVALID_SEGMENT_NUMBER: u32 = 180; -pub const ERROR_INVALID_ORDINAL: u32 = 182; -pub const ERROR_ALREADY_EXISTS: u32 = 183; -pub const ERROR_INVALID_FLAG_NUMBER: u32 = 186; -pub const ERROR_SEM_NOT_FOUND: u32 = 187; -pub const ERROR_INVALID_STARTING_CODESEG: u32 = 188; -pub const ERROR_INVALID_STACKSEG: u32 = 189; -pub const ERROR_INVALID_MODULETYPE: u32 = 190; -pub const ERROR_INVALID_EXE_SIGNATURE: u32 = 191; -pub const ERROR_EXE_MARKED_INVALID: u32 = 192; -pub const ERROR_BAD_EXE_FORMAT: u32 = 193; -pub const ERROR_ITERATED_DATA_EXCEEDS_64k: u32 = 194; -pub const ERROR_INVALID_MINALLOCSIZE: u32 = 195; -pub const ERROR_DYNLINK_FROM_INVALID_RING: u32 = 196; -pub const ERROR_IOPL_NOT_ENABLED: u32 = 197; -pub const ERROR_INVALID_SEGDPL: u32 = 198; -pub const ERROR_AUTODATASEG_EXCEEDS_64k: u32 = 199; -pub const ERROR_RING2SEG_MUST_BE_MOVABLE: u32 = 200; -pub const ERROR_RELOC_CHAIN_XEEDS_SEGLIM: u32 = 201; -pub const ERROR_INFLOOP_IN_RELOC_CHAIN: u32 = 202; -pub const ERROR_ENVVAR_NOT_FOUND: u32 = 203; -pub const ERROR_NO_SIGNAL_SENT: u32 = 205; -pub const ERROR_FILENAME_EXCED_RANGE: u32 = 206; -pub const ERROR_RING2_STACK_IN_USE: u32 = 207; -pub const ERROR_META_EXPANSION_TOO_LONG: u32 = 208; -pub const ERROR_INVALID_SIGNAL_NUMBER: u32 = 209; -pub const ERROR_THREAD_1_INACTIVE: u32 = 210; -pub const ERROR_LOCKED: u32 = 212; -pub const ERROR_TOO_MANY_MODULES: u32 = 214; -pub const ERROR_NESTING_NOT_ALLOWED: u32 = 215; -pub const ERROR_EXE_MACHINE_TYPE_MISMATCH: u32 = 216; -pub const ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY: u32 = 217; -pub const ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY: u32 = 218; -pub const ERROR_FILE_CHECKED_OUT: u32 = 220; -pub const ERROR_CHECKOUT_REQUIRED: u32 = 221; -pub const ERROR_BAD_FILE_TYPE: u32 = 222; -pub const ERROR_FILE_TOO_LARGE: u32 = 223; -pub const ERROR_FORMS_AUTH_REQUIRED: u32 = 224; -pub const ERROR_VIRUS_INFECTED: u32 = 225; -pub const ERROR_VIRUS_DELETED: u32 = 226; -pub const ERROR_PIPE_LOCAL: u32 = 229; -pub const ERROR_BAD_PIPE: u32 = 230; -pub const ERROR_PIPE_BUSY: u32 = 231; -pub const ERROR_NO_DATA: u32 = 232; -pub const ERROR_PIPE_NOT_CONNECTED: u32 = 233; -pub const ERROR_MORE_DATA: u32 = 234; -pub const ERROR_NO_WORK_DONE: u32 = 235; -pub const ERROR_VC_DISCONNECTED: u32 = 240; -pub const ERROR_INVALID_EA_NAME: u32 = 254; -pub const ERROR_EA_LIST_INCONSISTENT: u32 = 255; -pub const WAIT_TIMEOUT: u32 = 258; -pub const ERROR_NO_MORE_ITEMS: u32 = 259; -pub const ERROR_CANNOT_COPY: u32 = 266; -pub const ERROR_DIRECTORY: u32 = 267; -pub const ERROR_EAS_DIDNT_FIT: u32 = 275; -pub const ERROR_EA_FILE_CORRUPT: u32 = 276; -pub const ERROR_EA_TABLE_FULL: u32 = 277; -pub const ERROR_INVALID_EA_HANDLE: u32 = 278; -pub const ERROR_EAS_NOT_SUPPORTED: u32 = 282; -pub const ERROR_NOT_OWNER: u32 = 288; -pub const ERROR_TOO_MANY_POSTS: u32 = 298; -pub const ERROR_PARTIAL_COPY: u32 = 299; -pub const ERROR_OPLOCK_NOT_GRANTED: u32 = 300; -pub const ERROR_INVALID_OPLOCK_PROTOCOL: u32 = 301; -pub const ERROR_DISK_TOO_FRAGMENTED: u32 = 302; -pub const ERROR_DELETE_PENDING: u32 = 303; -pub const ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING: u32 = 304; -pub const ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME: u32 = 305; -pub const ERROR_SECURITY_STREAM_IS_INCONSISTENT: u32 = 306; -pub const ERROR_INVALID_LOCK_RANGE: u32 = 307; -pub const ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT: u32 = 308; -pub const ERROR_NOTIFICATION_GUID_ALREADY_DEFINED: u32 = 309; -pub const ERROR_INVALID_EXCEPTION_HANDLER: u32 = 310; -pub const ERROR_DUPLICATE_PRIVILEGES: u32 = 311; -pub const ERROR_NO_RANGES_PROCESSED: u32 = 312; -pub const ERROR_NOT_ALLOWED_ON_SYSTEM_FILE: u32 = 313; -pub const ERROR_DISK_RESOURCES_EXHAUSTED: u32 = 314; -pub const ERROR_INVALID_TOKEN: u32 = 315; -pub const ERROR_DEVICE_FEATURE_NOT_SUPPORTED: u32 = 316; -pub const ERROR_MR_MID_NOT_FOUND: u32 = 317; -pub const ERROR_SCOPE_NOT_FOUND: u32 = 318; -pub const ERROR_UNDEFINED_SCOPE: u32 = 319; -pub const ERROR_INVALID_CAP: u32 = 320; -pub const ERROR_DEVICE_UNREACHABLE: u32 = 321; -pub const ERROR_DEVICE_NO_RESOURCES: u32 = 322; -pub const ERROR_DATA_CHECKSUM_ERROR: u32 = 323; -pub const ERROR_INTERMIXED_KERNEL_EA_OPERATION: u32 = 324; -pub const ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED: u32 = 326; -pub const ERROR_OFFSET_ALIGNMENT_VIOLATION: u32 = 327; -pub const ERROR_INVALID_FIELD_IN_PARAMETER_LIST: u32 = 328; -pub const ERROR_OPERATION_IN_PROGRESS: u32 = 329; -pub const ERROR_BAD_DEVICE_PATH: u32 = 330; -pub const ERROR_TOO_MANY_DESCRIPTORS: u32 = 331; -pub const ERROR_SCRUB_DATA_DISABLED: u32 = 332; -pub const ERROR_NOT_REDUNDANT_STORAGE: u32 = 333; -pub const ERROR_RESIDENT_FILE_NOT_SUPPORTED: u32 = 334; -pub const ERROR_COMPRESSED_FILE_NOT_SUPPORTED: u32 = 335; -pub const ERROR_DIRECTORY_NOT_SUPPORTED: u32 = 336; -pub const ERROR_NOT_READ_FROM_COPY: u32 = 337; -pub const ERROR_FT_WRITE_FAILURE: u32 = 338; -pub const ERROR_FT_DI_SCAN_REQUIRED: u32 = 339; -pub const ERROR_INVALID_KERNEL_INFO_VERSION: u32 = 340; -pub const ERROR_INVALID_PEP_INFO_VERSION: u32 = 341; -pub const ERROR_OBJECT_NOT_EXTERNALLY_BACKED: u32 = 342; -pub const ERROR_EXTERNAL_BACKING_PROVIDER_UNKNOWN: u32 = 343; -pub const ERROR_COMPRESSION_NOT_BENEFICIAL: u32 = 344; -pub const ERROR_STORAGE_TOPOLOGY_ID_MISMATCH: u32 = 345; -pub const ERROR_BLOCKED_BY_PARENTAL_CONTROLS: u32 = 346; -pub const ERROR_BLOCK_TOO_MANY_REFERENCES: u32 = 347; -pub const ERROR_MARKED_TO_DISALLOW_WRITES: u32 = 348; -pub const ERROR_ENCLAVE_FAILURE: u32 = 349; -pub const ERROR_FAIL_NOACTION_REBOOT: u32 = 350; -pub const ERROR_FAIL_SHUTDOWN: u32 = 351; -pub const ERROR_FAIL_RESTART: u32 = 352; -pub const ERROR_MAX_SESSIONS_REACHED: u32 = 353; -pub const ERROR_NETWORK_ACCESS_DENIED_EDP: u32 = 354; -pub const ERROR_DEVICE_HINT_NAME_BUFFER_TOO_SMALL: u32 = 355; -pub const ERROR_EDP_POLICY_DENIES_OPERATION: u32 = 356; -pub const ERROR_EDP_DPL_POLICY_CANT_BE_SATISFIED: u32 = 357; -pub const ERROR_CLOUD_FILE_SYNC_ROOT_METADATA_CORRUPT: u32 = 358; -pub const ERROR_DEVICE_IN_MAINTENANCE: u32 = 359; -pub const ERROR_NOT_SUPPORTED_ON_DAX: u32 = 360; -pub const ERROR_DAX_MAPPING_EXISTS: u32 = 361; -pub const ERROR_CLOUD_FILE_PROVIDER_NOT_RUNNING: u32 = 362; -pub const ERROR_CLOUD_FILE_METADATA_CORRUPT: u32 = 363; -pub const ERROR_CLOUD_FILE_METADATA_TOO_LARGE: u32 = 364; -pub const ERROR_CLOUD_FILE_PROPERTY_BLOB_TOO_LARGE: u32 = 365; -pub const ERROR_CLOUD_FILE_PROPERTY_BLOB_CHECKSUM_MISMATCH: u32 = 366; -pub const ERROR_CHILD_PROCESS_BLOCKED: u32 = 367; -pub const ERROR_STORAGE_LOST_DATA_PERSISTENCE: u32 = 368; -pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_UNAVAILABLE: u32 = 369; -pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_METADATA_CORRUPT: u32 = 370; -pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_BUSY: u32 = 371; -pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_PROVIDER_UNKNOWN: u32 = 372; -pub const ERROR_GDI_HANDLE_LEAK: u32 = 373; -pub const ERROR_CLOUD_FILE_TOO_MANY_PROPERTY_BLOBS: u32 = 374; -pub const ERROR_CLOUD_FILE_PROPERTY_VERSION_NOT_SUPPORTED: u32 = 375; -pub const ERROR_NOT_A_CLOUD_FILE: u32 = 376; -pub const ERROR_CLOUD_FILE_NOT_IN_SYNC: u32 = 377; -pub const ERROR_CLOUD_FILE_ALREADY_CONNECTED: u32 = 378; -pub const ERROR_CLOUD_FILE_NOT_SUPPORTED: u32 = 379; -pub const ERROR_CLOUD_FILE_INVALID_REQUEST: u32 = 380; -pub const ERROR_CLOUD_FILE_READ_ONLY_VOLUME: u32 = 381; -pub const ERROR_CLOUD_FILE_CONNECTED_PROVIDER_ONLY: u32 = 382; -pub const ERROR_CLOUD_FILE_VALIDATION_FAILED: u32 = 383; -pub const ERROR_SMB1_NOT_AVAILABLE: u32 = 384; -pub const ERROR_FILE_SYSTEM_VIRTUALIZATION_INVALID_OPERATION: u32 = 385; -pub const ERROR_CLOUD_FILE_AUTHENTICATION_FAILED: u32 = 386; -pub const ERROR_CLOUD_FILE_INSUFFICIENT_RESOURCES: u32 = 387; -pub const ERROR_CLOUD_FILE_NETWORK_UNAVAILABLE: u32 = 388; -pub const ERROR_CLOUD_FILE_UNSUCCESSFUL: u32 = 389; -pub const ERROR_CLOUD_FILE_NOT_UNDER_SYNC_ROOT: u32 = 390; -pub const ERROR_CLOUD_FILE_IN_USE: u32 = 391; -pub const ERROR_CLOUD_FILE_PINNED: u32 = 392; -pub const ERROR_CLOUD_FILE_REQUEST_ABORTED: u32 = 393; -pub const ERROR_CLOUD_FILE_PROPERTY_CORRUPT: u32 = 394; -pub const ERROR_CLOUD_FILE_ACCESS_DENIED: u32 = 395; -pub const ERROR_CLOUD_FILE_INCOMPATIBLE_HARDLINKS: u32 = 396; -pub const ERROR_CLOUD_FILE_PROPERTY_LOCK_CONFLICT: u32 = 397; -pub const ERROR_CLOUD_FILE_REQUEST_CANCELED: u32 = 398; -pub const ERROR_EXTERNAL_SYSKEY_NOT_SUPPORTED: u32 = 399; -pub const ERROR_THREAD_MODE_ALREADY_BACKGROUND: u32 = 400; -pub const ERROR_THREAD_MODE_NOT_BACKGROUND: u32 = 401; -pub const ERROR_PROCESS_MODE_ALREADY_BACKGROUND: u32 = 402; -pub const ERROR_PROCESS_MODE_NOT_BACKGROUND: u32 = 403; -pub const ERROR_CLOUD_FILE_PROVIDER_TERMINATED: u32 = 404; -pub const ERROR_NOT_A_CLOUD_SYNC_ROOT: u32 = 405; -pub const ERROR_FILE_PROTECTED_UNDER_DPL: u32 = 406; -pub const ERROR_VOLUME_NOT_CLUSTER_ALIGNED: u32 = 407; -pub const ERROR_NO_PHYSICALLY_ALIGNED_FREE_SPACE_FOUND: u32 = 408; -pub const ERROR_APPX_FILE_NOT_ENCRYPTED: u32 = 409; -pub const ERROR_RWRAW_ENCRYPTED_FILE_NOT_ENCRYPTED: u32 = 410; -pub const ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILEOFFSET: u32 = 411; -pub const ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILERANGE: u32 = 412; -pub const ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_PARAMETER: u32 = 413; -pub const ERROR_LINUX_SUBSYSTEM_NOT_PRESENT: u32 = 414; -pub const ERROR_FT_READ_FAILURE: u32 = 415; -pub const ERROR_STORAGE_RESERVE_ID_INVALID: u32 = 416; -pub const ERROR_STORAGE_RESERVE_DOES_NOT_EXIST: u32 = 417; -pub const ERROR_STORAGE_RESERVE_ALREADY_EXISTS: u32 = 418; -pub const ERROR_STORAGE_RESERVE_NOT_EMPTY: u32 = 419; -pub const ERROR_NOT_A_DAX_VOLUME: u32 = 420; -pub const ERROR_NOT_DAX_MAPPABLE: u32 = 421; -pub const ERROR_TIME_SENSITIVE_THREAD: u32 = 422; -pub const ERROR_DPL_NOT_SUPPORTED_FOR_USER: u32 = 423; -pub const ERROR_CASE_DIFFERING_NAMES_IN_DIR: u32 = 424; -pub const ERROR_FILE_NOT_SUPPORTED: u32 = 425; -pub const ERROR_CLOUD_FILE_REQUEST_TIMEOUT: u32 = 426; -pub const ERROR_NO_TASK_QUEUE: u32 = 427; -pub const ERROR_SRC_SRV_DLL_LOAD_FAILED: u32 = 428; -pub const ERROR_NOT_SUPPORTED_WITH_BTT: u32 = 429; -pub const ERROR_ENCRYPTION_DISABLED: u32 = 430; -pub const ERROR_ENCRYPTING_METADATA_DISALLOWED: u32 = 431; -pub const ERROR_CANT_CLEAR_ENCRYPTION_FLAG: u32 = 432; -pub const ERROR_NO_SUCH_DEVICE: u32 = 433; -pub const ERROR_CLOUD_FILE_DEHYDRATION_DISALLOWED: u32 = 434; -pub const ERROR_FILE_SNAP_IN_PROGRESS: u32 = 435; -pub const ERROR_FILE_SNAP_USER_SECTION_NOT_SUPPORTED: u32 = 436; -pub const ERROR_FILE_SNAP_MODIFY_NOT_SUPPORTED: u32 = 437; -pub const ERROR_FILE_SNAP_IO_NOT_COORDINATED: u32 = 438; -pub const ERROR_FILE_SNAP_UNEXPECTED_ERROR: u32 = 439; -pub const ERROR_FILE_SNAP_INVALID_PARAMETER: u32 = 440; -pub const ERROR_UNSATISFIED_DEPENDENCIES: u32 = 441; -pub const ERROR_CASE_SENSITIVE_PATH: u32 = 442; -pub const ERROR_UNEXPECTED_NTCACHEMANAGER_ERROR: u32 = 443; -pub const ERROR_LINUX_SUBSYSTEM_UPDATE_REQUIRED: u32 = 444; -pub const ERROR_DLP_POLICY_WARNS_AGAINST_OPERATION: u32 = 445; -pub const ERROR_DLP_POLICY_DENIES_OPERATION: u32 = 446; -pub const ERROR_SECURITY_DENIES_OPERATION: u32 = 447; -pub const ERROR_UNTRUSTED_MOUNT_POINT: u32 = 448; -pub const ERROR_DLP_POLICY_SILENTLY_FAIL: u32 = 449; -pub const ERROR_CAPAUTHZ_NOT_DEVUNLOCKED: u32 = 450; -pub const ERROR_CAPAUTHZ_CHANGE_TYPE: u32 = 451; -pub const ERROR_CAPAUTHZ_NOT_PROVISIONED: u32 = 452; -pub const ERROR_CAPAUTHZ_NOT_AUTHORIZED: u32 = 453; -pub const ERROR_CAPAUTHZ_NO_POLICY: u32 = 454; -pub const ERROR_CAPAUTHZ_DB_CORRUPTED: u32 = 455; -pub const ERROR_CAPAUTHZ_SCCD_INVALID_CATALOG: u32 = 456; -pub const ERROR_CAPAUTHZ_SCCD_NO_AUTH_ENTITY: u32 = 457; -pub const ERROR_CAPAUTHZ_SCCD_PARSE_ERROR: u32 = 458; -pub const ERROR_CAPAUTHZ_SCCD_DEV_MODE_REQUIRED: u32 = 459; -pub const ERROR_CAPAUTHZ_SCCD_NO_CAPABILITY_MATCH: u32 = 460; -pub const ERROR_CIMFS_IMAGE_CORRUPT: u32 = 470; -pub const ERROR_CIMFS_IMAGE_VERSION_NOT_SUPPORTED: u32 = 471; -pub const ERROR_STORAGE_STACK_ACCESS_DENIED: u32 = 472; -pub const ERROR_INSUFFICIENT_VIRTUAL_ADDR_RESOURCES: u32 = 473; -pub const ERROR_INDEX_OUT_OF_BOUNDS: u32 = 474; -pub const ERROR_CLOUD_FILE_US_MESSAGE_TIMEOUT: u32 = 475; -pub const ERROR_PNP_QUERY_REMOVE_DEVICE_TIMEOUT: u32 = 480; -pub const ERROR_PNP_QUERY_REMOVE_RELATED_DEVICE_TIMEOUT: u32 = 481; -pub const ERROR_PNP_QUERY_REMOVE_UNRELATED_DEVICE_TIMEOUT: u32 = 482; -pub const ERROR_DEVICE_HARDWARE_ERROR: u32 = 483; -pub const ERROR_INVALID_ADDRESS: u32 = 487; -pub const ERROR_HAS_SYSTEM_CRITICAL_FILES: u32 = 488; -pub const ERROR_ENCRYPTED_FILE_NOT_SUPPORTED: u32 = 489; -pub const ERROR_SPARSE_FILE_NOT_SUPPORTED: u32 = 490; -pub const ERROR_PAGEFILE_NOT_SUPPORTED: u32 = 491; -pub const ERROR_VOLUME_NOT_SUPPORTED: u32 = 492; -pub const ERROR_NOT_SUPPORTED_WITH_BYPASSIO: u32 = 493; -pub const ERROR_NO_BYPASSIO_DRIVER_SUPPORT: u32 = 494; -pub const ERROR_NOT_SUPPORTED_WITH_ENCRYPTION: u32 = 495; -pub const ERROR_NOT_SUPPORTED_WITH_COMPRESSION: u32 = 496; -pub const ERROR_NOT_SUPPORTED_WITH_REPLICATION: u32 = 497; -pub const ERROR_NOT_SUPPORTED_WITH_DEDUPLICATION: u32 = 498; -pub const ERROR_NOT_SUPPORTED_WITH_AUDITING: u32 = 499; -pub const ERROR_USER_PROFILE_LOAD: u32 = 500; -pub const ERROR_SESSION_KEY_TOO_SHORT: u32 = 501; -pub const ERROR_ACCESS_DENIED_APPDATA: u32 = 502; -pub const ERROR_NOT_SUPPORTED_WITH_MONITORING: u32 = 503; -pub const ERROR_NOT_SUPPORTED_WITH_SNAPSHOT: u32 = 504; -pub const ERROR_NOT_SUPPORTED_WITH_VIRTUALIZATION: u32 = 505; -pub const ERROR_BYPASSIO_FLT_NOT_SUPPORTED: u32 = 506; -pub const ERROR_DEVICE_RESET_REQUIRED: u32 = 507; -pub const ERROR_VOLUME_WRITE_ACCESS_DENIED: u32 = 508; -pub const ERROR_NOT_SUPPORTED_WITH_CACHED_HANDLE: u32 = 509; -pub const ERROR_FS_METADATA_INCONSISTENT: u32 = 510; -pub const ERROR_BLOCK_WEAK_REFERENCE_INVALID: u32 = 511; -pub const ERROR_BLOCK_SOURCE_WEAK_REFERENCE_INVALID: u32 = 512; -pub const ERROR_BLOCK_TARGET_WEAK_REFERENCE_INVALID: u32 = 513; -pub const ERROR_BLOCK_SHARED: u32 = 514; -pub const ERROR_ARITHMETIC_OVERFLOW: u32 = 534; -pub const ERROR_PIPE_CONNECTED: u32 = 535; -pub const ERROR_PIPE_LISTENING: u32 = 536; -pub const ERROR_VERIFIER_STOP: u32 = 537; -pub const ERROR_ABIOS_ERROR: u32 = 538; -pub const ERROR_WX86_WARNING: u32 = 539; -pub const ERROR_WX86_ERROR: u32 = 540; -pub const ERROR_TIMER_NOT_CANCELED: u32 = 541; -pub const ERROR_UNWIND: u32 = 542; -pub const ERROR_BAD_STACK: u32 = 543; -pub const ERROR_INVALID_UNWIND_TARGET: u32 = 544; -pub const ERROR_INVALID_PORT_ATTRIBUTES: u32 = 545; -pub const ERROR_PORT_MESSAGE_TOO_LONG: u32 = 546; -pub const ERROR_INVALID_QUOTA_LOWER: u32 = 547; -pub const ERROR_DEVICE_ALREADY_ATTACHED: u32 = 548; -pub const ERROR_INSTRUCTION_MISALIGNMENT: u32 = 549; -pub const ERROR_PROFILING_NOT_STARTED: u32 = 550; -pub const ERROR_PROFILING_NOT_STOPPED: u32 = 551; -pub const ERROR_COULD_NOT_INTERPRET: u32 = 552; -pub const ERROR_PROFILING_AT_LIMIT: u32 = 553; -pub const ERROR_CANT_WAIT: u32 = 554; -pub const ERROR_CANT_TERMINATE_SELF: u32 = 555; -pub const ERROR_UNEXPECTED_MM_CREATE_ERR: u32 = 556; -pub const ERROR_UNEXPECTED_MM_MAP_ERROR: u32 = 557; -pub const ERROR_UNEXPECTED_MM_EXTEND_ERR: u32 = 558; -pub const ERROR_BAD_FUNCTION_TABLE: u32 = 559; -pub const ERROR_NO_GUID_TRANSLATION: u32 = 560; -pub const ERROR_INVALID_LDT_SIZE: u32 = 561; -pub const ERROR_INVALID_LDT_OFFSET: u32 = 563; -pub const ERROR_INVALID_LDT_DESCRIPTOR: u32 = 564; -pub const ERROR_TOO_MANY_THREADS: u32 = 565; -pub const ERROR_THREAD_NOT_IN_PROCESS: u32 = 566; -pub const ERROR_PAGEFILE_QUOTA_EXCEEDED: u32 = 567; -pub const ERROR_LOGON_SERVER_CONFLICT: u32 = 568; -pub const ERROR_SYNCHRONIZATION_REQUIRED: u32 = 569; -pub const ERROR_NET_OPEN_FAILED: u32 = 570; -pub const ERROR_IO_PRIVILEGE_FAILED: u32 = 571; -pub const ERROR_CONTROL_C_EXIT: u32 = 572; -pub const ERROR_MISSING_SYSTEMFILE: u32 = 573; -pub const ERROR_UNHANDLED_EXCEPTION: u32 = 574; -pub const ERROR_APP_INIT_FAILURE: u32 = 575; -pub const ERROR_PAGEFILE_CREATE_FAILED: u32 = 576; -pub const ERROR_INVALID_IMAGE_HASH: u32 = 577; -pub const ERROR_NO_PAGEFILE: u32 = 578; -pub const ERROR_ILLEGAL_FLOAT_CONTEXT: u32 = 579; -pub const ERROR_NO_EVENT_PAIR: u32 = 580; -pub const ERROR_DOMAIN_CTRLR_CONFIG_ERROR: u32 = 581; -pub const ERROR_ILLEGAL_CHARACTER: u32 = 582; -pub const ERROR_UNDEFINED_CHARACTER: u32 = 583; -pub const ERROR_FLOPPY_VOLUME: u32 = 584; -pub const ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT: u32 = 585; -pub const ERROR_BACKUP_CONTROLLER: u32 = 586; -pub const ERROR_MUTANT_LIMIT_EXCEEDED: u32 = 587; -pub const ERROR_FS_DRIVER_REQUIRED: u32 = 588; -pub const ERROR_CANNOT_LOAD_REGISTRY_FILE: u32 = 589; -pub const ERROR_DEBUG_ATTACH_FAILED: u32 = 590; -pub const ERROR_SYSTEM_PROCESS_TERMINATED: u32 = 591; -pub const ERROR_DATA_NOT_ACCEPTED: u32 = 592; -pub const ERROR_VDM_HARD_ERROR: u32 = 593; -pub const ERROR_DRIVER_CANCEL_TIMEOUT: u32 = 594; -pub const ERROR_REPLY_MESSAGE_MISMATCH: u32 = 595; -pub const ERROR_LOST_WRITEBEHIND_DATA: u32 = 596; -pub const ERROR_CLIENT_SERVER_PARAMETERS_INVALID: u32 = 597; -pub const ERROR_NOT_TINY_STREAM: u32 = 598; -pub const ERROR_STACK_OVERFLOW_READ: u32 = 599; -pub const ERROR_CONVERT_TO_LARGE: u32 = 600; -pub const ERROR_FOUND_OUT_OF_SCOPE: u32 = 601; -pub const ERROR_ALLOCATE_BUCKET: u32 = 602; -pub const ERROR_MARSHALL_OVERFLOW: u32 = 603; -pub const ERROR_INVALID_VARIANT: u32 = 604; -pub const ERROR_BAD_COMPRESSION_BUFFER: u32 = 605; -pub const ERROR_AUDIT_FAILED: u32 = 606; -pub const ERROR_TIMER_RESOLUTION_NOT_SET: u32 = 607; -pub const ERROR_INSUFFICIENT_LOGON_INFO: u32 = 608; -pub const ERROR_BAD_DLL_ENTRYPOINT: u32 = 609; -pub const ERROR_BAD_SERVICE_ENTRYPOINT: u32 = 610; -pub const ERROR_IP_ADDRESS_CONFLICT1: u32 = 611; -pub const ERROR_IP_ADDRESS_CONFLICT2: u32 = 612; -pub const ERROR_REGISTRY_QUOTA_LIMIT: u32 = 613; -pub const ERROR_NO_CALLBACK_ACTIVE: u32 = 614; -pub const ERROR_PWD_TOO_SHORT: u32 = 615; -pub const ERROR_PWD_TOO_RECENT: u32 = 616; -pub const ERROR_PWD_HISTORY_CONFLICT: u32 = 617; -pub const ERROR_UNSUPPORTED_COMPRESSION: u32 = 618; -pub const ERROR_INVALID_HW_PROFILE: u32 = 619; -pub const ERROR_INVALID_PLUGPLAY_DEVICE_PATH: u32 = 620; -pub const ERROR_QUOTA_LIST_INCONSISTENT: u32 = 621; -pub const ERROR_EVALUATION_EXPIRATION: u32 = 622; -pub const ERROR_ILLEGAL_DLL_RELOCATION: u32 = 623; -pub const ERROR_DLL_INIT_FAILED_LOGOFF: u32 = 624; -pub const ERROR_VALIDATE_CONTINUE: u32 = 625; -pub const ERROR_NO_MORE_MATCHES: u32 = 626; -pub const ERROR_RANGE_LIST_CONFLICT: u32 = 627; -pub const ERROR_SERVER_SID_MISMATCH: u32 = 628; -pub const ERROR_CANT_ENABLE_DENY_ONLY: u32 = 629; -pub const ERROR_FLOAT_MULTIPLE_FAULTS: u32 = 630; -pub const ERROR_FLOAT_MULTIPLE_TRAPS: u32 = 631; -pub const ERROR_NOINTERFACE: u32 = 632; -pub const ERROR_DRIVER_FAILED_SLEEP: u32 = 633; -pub const ERROR_CORRUPT_SYSTEM_FILE: u32 = 634; -pub const ERROR_COMMITMENT_MINIMUM: u32 = 635; -pub const ERROR_PNP_RESTART_ENUMERATION: u32 = 636; -pub const ERROR_SYSTEM_IMAGE_BAD_SIGNATURE: u32 = 637; -pub const ERROR_PNP_REBOOT_REQUIRED: u32 = 638; -pub const ERROR_INSUFFICIENT_POWER: u32 = 639; -pub const ERROR_MULTIPLE_FAULT_VIOLATION: u32 = 640; -pub const ERROR_SYSTEM_SHUTDOWN: u32 = 641; -pub const ERROR_PORT_NOT_SET: u32 = 642; -pub const ERROR_DS_VERSION_CHECK_FAILURE: u32 = 643; -pub const ERROR_RANGE_NOT_FOUND: u32 = 644; -pub const ERROR_NOT_SAFE_MODE_DRIVER: u32 = 646; -pub const ERROR_FAILED_DRIVER_ENTRY: u32 = 647; -pub const ERROR_DEVICE_ENUMERATION_ERROR: u32 = 648; -pub const ERROR_MOUNT_POINT_NOT_RESOLVED: u32 = 649; -pub const ERROR_INVALID_DEVICE_OBJECT_PARAMETER: u32 = 650; -pub const ERROR_MCA_OCCURED: u32 = 651; -pub const ERROR_DRIVER_DATABASE_ERROR: u32 = 652; -pub const ERROR_SYSTEM_HIVE_TOO_LARGE: u32 = 653; -pub const ERROR_DRIVER_FAILED_PRIOR_UNLOAD: u32 = 654; -pub const ERROR_VOLSNAP_PREPARE_HIBERNATE: u32 = 655; -pub const ERROR_HIBERNATION_FAILURE: u32 = 656; -pub const ERROR_PWD_TOO_LONG: u32 = 657; -pub const ERROR_FILE_SYSTEM_LIMITATION: u32 = 665; -pub const ERROR_ASSERTION_FAILURE: u32 = 668; -pub const ERROR_ACPI_ERROR: u32 = 669; -pub const ERROR_WOW_ASSERTION: u32 = 670; -pub const ERROR_PNP_BAD_MPS_TABLE: u32 = 671; -pub const ERROR_PNP_TRANSLATION_FAILED: u32 = 672; -pub const ERROR_PNP_IRQ_TRANSLATION_FAILED: u32 = 673; -pub const ERROR_PNP_INVALID_ID: u32 = 674; -pub const ERROR_WAKE_SYSTEM_DEBUGGER: u32 = 675; -pub const ERROR_HANDLES_CLOSED: u32 = 676; -pub const ERROR_EXTRANEOUS_INFORMATION: u32 = 677; -pub const ERROR_RXACT_COMMIT_NECESSARY: u32 = 678; -pub const ERROR_MEDIA_CHECK: u32 = 679; -pub const ERROR_GUID_SUBSTITUTION_MADE: u32 = 680; -pub const ERROR_STOPPED_ON_SYMLINK: u32 = 681; -pub const ERROR_LONGJUMP: u32 = 682; -pub const ERROR_PLUGPLAY_QUERY_VETOED: u32 = 683; -pub const ERROR_UNWIND_CONSOLIDATE: u32 = 684; -pub const ERROR_REGISTRY_HIVE_RECOVERED: u32 = 685; -pub const ERROR_DLL_MIGHT_BE_INSECURE: u32 = 686; -pub const ERROR_DLL_MIGHT_BE_INCOMPATIBLE: u32 = 687; -pub const ERROR_DBG_EXCEPTION_NOT_HANDLED: u32 = 688; -pub const ERROR_DBG_REPLY_LATER: u32 = 689; -pub const ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE: u32 = 690; -pub const ERROR_DBG_TERMINATE_THREAD: u32 = 691; -pub const ERROR_DBG_TERMINATE_PROCESS: u32 = 692; -pub const ERROR_DBG_CONTROL_C: u32 = 693; -pub const ERROR_DBG_PRINTEXCEPTION_C: u32 = 694; -pub const ERROR_DBG_RIPEXCEPTION: u32 = 695; -pub const ERROR_DBG_CONTROL_BREAK: u32 = 696; -pub const ERROR_DBG_COMMAND_EXCEPTION: u32 = 697; -pub const ERROR_OBJECT_NAME_EXISTS: u32 = 698; -pub const ERROR_THREAD_WAS_SUSPENDED: u32 = 699; -pub const ERROR_IMAGE_NOT_AT_BASE: u32 = 700; -pub const ERROR_RXACT_STATE_CREATED: u32 = 701; -pub const ERROR_SEGMENT_NOTIFICATION: u32 = 702; -pub const ERROR_BAD_CURRENT_DIRECTORY: u32 = 703; -pub const ERROR_FT_READ_RECOVERY_FROM_BACKUP: u32 = 704; -pub const ERROR_FT_WRITE_RECOVERY: u32 = 705; -pub const ERROR_IMAGE_MACHINE_TYPE_MISMATCH: u32 = 706; -pub const ERROR_RECEIVE_PARTIAL: u32 = 707; -pub const ERROR_RECEIVE_EXPEDITED: u32 = 708; -pub const ERROR_RECEIVE_PARTIAL_EXPEDITED: u32 = 709; -pub const ERROR_EVENT_DONE: u32 = 710; -pub const ERROR_EVENT_PENDING: u32 = 711; -pub const ERROR_CHECKING_FILE_SYSTEM: u32 = 712; -pub const ERROR_FATAL_APP_EXIT: u32 = 713; -pub const ERROR_PREDEFINED_HANDLE: u32 = 714; -pub const ERROR_WAS_UNLOCKED: u32 = 715; -pub const ERROR_SERVICE_NOTIFICATION: u32 = 716; -pub const ERROR_WAS_LOCKED: u32 = 717; -pub const ERROR_LOG_HARD_ERROR: u32 = 718; -pub const ERROR_ALREADY_WIN32: u32 = 719; -pub const ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE: u32 = 720; -pub const ERROR_NO_YIELD_PERFORMED: u32 = 721; -pub const ERROR_TIMER_RESUME_IGNORED: u32 = 722; -pub const ERROR_ARBITRATION_UNHANDLED: u32 = 723; -pub const ERROR_CARDBUS_NOT_SUPPORTED: u32 = 724; -pub const ERROR_MP_PROCESSOR_MISMATCH: u32 = 725; -pub const ERROR_HIBERNATED: u32 = 726; -pub const ERROR_RESUME_HIBERNATION: u32 = 727; -pub const ERROR_FIRMWARE_UPDATED: u32 = 728; -pub const ERROR_DRIVERS_LEAKING_LOCKED_PAGES: u32 = 729; -pub const ERROR_WAKE_SYSTEM: u32 = 730; -pub const ERROR_WAIT_1: u32 = 731; -pub const ERROR_WAIT_2: u32 = 732; -pub const ERROR_WAIT_3: u32 = 733; -pub const ERROR_WAIT_63: u32 = 734; -pub const ERROR_ABANDONED_WAIT_0: u32 = 735; -pub const ERROR_ABANDONED_WAIT_63: u32 = 736; -pub const ERROR_USER_APC: u32 = 737; -pub const ERROR_KERNEL_APC: u32 = 738; -pub const ERROR_ALERTED: u32 = 739; -pub const ERROR_ELEVATION_REQUIRED: u32 = 740; -pub const ERROR_REPARSE: u32 = 741; -pub const ERROR_OPLOCK_BREAK_IN_PROGRESS: u32 = 742; -pub const ERROR_VOLUME_MOUNTED: u32 = 743; -pub const ERROR_RXACT_COMMITTED: u32 = 744; -pub const ERROR_NOTIFY_CLEANUP: u32 = 745; -pub const ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED: u32 = 746; -pub const ERROR_PAGE_FAULT_TRANSITION: u32 = 747; -pub const ERROR_PAGE_FAULT_DEMAND_ZERO: u32 = 748; -pub const ERROR_PAGE_FAULT_COPY_ON_WRITE: u32 = 749; -pub const ERROR_PAGE_FAULT_GUARD_PAGE: u32 = 750; -pub const ERROR_PAGE_FAULT_PAGING_FILE: u32 = 751; -pub const ERROR_CACHE_PAGE_LOCKED: u32 = 752; -pub const ERROR_CRASH_DUMP: u32 = 753; -pub const ERROR_BUFFER_ALL_ZEROS: u32 = 754; -pub const ERROR_REPARSE_OBJECT: u32 = 755; -pub const ERROR_RESOURCE_REQUIREMENTS_CHANGED: u32 = 756; -pub const ERROR_TRANSLATION_COMPLETE: u32 = 757; -pub const ERROR_NOTHING_TO_TERMINATE: u32 = 758; -pub const ERROR_PROCESS_NOT_IN_JOB: u32 = 759; -pub const ERROR_PROCESS_IN_JOB: u32 = 760; -pub const ERROR_VOLSNAP_HIBERNATE_READY: u32 = 761; -pub const ERROR_FSFILTER_OP_COMPLETED_SUCCESSFULLY: u32 = 762; -pub const ERROR_INTERRUPT_VECTOR_ALREADY_CONNECTED: u32 = 763; -pub const ERROR_INTERRUPT_STILL_CONNECTED: u32 = 764; -pub const ERROR_WAIT_FOR_OPLOCK: u32 = 765; -pub const ERROR_DBG_EXCEPTION_HANDLED: u32 = 766; -pub const ERROR_DBG_CONTINUE: u32 = 767; -pub const ERROR_CALLBACK_POP_STACK: u32 = 768; -pub const ERROR_COMPRESSION_DISABLED: u32 = 769; -pub const ERROR_CANTFETCHBACKWARDS: u32 = 770; -pub const ERROR_CANTSCROLLBACKWARDS: u32 = 771; -pub const ERROR_ROWSNOTRELEASED: u32 = 772; -pub const ERROR_BAD_ACCESSOR_FLAGS: u32 = 773; -pub const ERROR_ERRORS_ENCOUNTERED: u32 = 774; -pub const ERROR_NOT_CAPABLE: u32 = 775; -pub const ERROR_REQUEST_OUT_OF_SEQUENCE: u32 = 776; -pub const ERROR_VERSION_PARSE_ERROR: u32 = 777; -pub const ERROR_BADSTARTPOSITION: u32 = 778; -pub const ERROR_MEMORY_HARDWARE: u32 = 779; -pub const ERROR_DISK_REPAIR_DISABLED: u32 = 780; -pub const ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE: u32 = 781; -pub const ERROR_SYSTEM_POWERSTATE_TRANSITION: u32 = 782; -pub const ERROR_SYSTEM_POWERSTATE_COMPLEX_TRANSITION: u32 = 783; -pub const ERROR_MCA_EXCEPTION: u32 = 784; -pub const ERROR_ACCESS_AUDIT_BY_POLICY: u32 = 785; -pub const ERROR_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY: u32 = 786; -pub const ERROR_ABANDON_HIBERFILE: u32 = 787; -pub const ERROR_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED: u32 = 788; -pub const ERROR_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR: u32 = 789; -pub const ERROR_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR: u32 = 790; -pub const ERROR_BAD_MCFG_TABLE: u32 = 791; -pub const ERROR_DISK_REPAIR_REDIRECTED: u32 = 792; -pub const ERROR_DISK_REPAIR_UNSUCCESSFUL: u32 = 793; -pub const ERROR_CORRUPT_LOG_OVERFULL: u32 = 794; -pub const ERROR_CORRUPT_LOG_CORRUPTED: u32 = 795; -pub const ERROR_CORRUPT_LOG_UNAVAILABLE: u32 = 796; -pub const ERROR_CORRUPT_LOG_DELETED_FULL: u32 = 797; -pub const ERROR_CORRUPT_LOG_CLEARED: u32 = 798; -pub const ERROR_ORPHAN_NAME_EXHAUSTED: u32 = 799; -pub const ERROR_OPLOCK_SWITCHED_TO_NEW_HANDLE: u32 = 800; -pub const ERROR_CANNOT_GRANT_REQUESTED_OPLOCK: u32 = 801; -pub const ERROR_CANNOT_BREAK_OPLOCK: u32 = 802; -pub const ERROR_OPLOCK_HANDLE_CLOSED: u32 = 803; -pub const ERROR_NO_ACE_CONDITION: u32 = 804; -pub const ERROR_INVALID_ACE_CONDITION: u32 = 805; -pub const ERROR_FILE_HANDLE_REVOKED: u32 = 806; -pub const ERROR_IMAGE_AT_DIFFERENT_BASE: u32 = 807; -pub const ERROR_ENCRYPTED_IO_NOT_POSSIBLE: u32 = 808; -pub const ERROR_FILE_METADATA_OPTIMIZATION_IN_PROGRESS: u32 = 809; -pub const ERROR_QUOTA_ACTIVITY: u32 = 810; -pub const ERROR_HANDLE_REVOKED: u32 = 811; -pub const ERROR_CALLBACK_INVOKE_INLINE: u32 = 812; -pub const ERROR_CPU_SET_INVALID: u32 = 813; -pub const ERROR_ENCLAVE_NOT_TERMINATED: u32 = 814; -pub const ERROR_ENCLAVE_VIOLATION: u32 = 815; -pub const ERROR_SERVER_TRANSPORT_CONFLICT: u32 = 816; -pub const ERROR_CERTIFICATE_VALIDATION_PREFERENCE_CONFLICT: u32 = 817; -pub const ERROR_FT_READ_FROM_COPY_FAILURE: u32 = 818; -pub const ERROR_SECTION_DIRECT_MAP_ONLY: u32 = 819; -pub const ERROR_EA_ACCESS_DENIED: u32 = 994; -pub const ERROR_OPERATION_ABORTED: u32 = 995; -pub const ERROR_IO_INCOMPLETE: u32 = 996; -pub const ERROR_IO_PENDING: u32 = 997; -pub const ERROR_NOACCESS: u32 = 998; -pub const ERROR_SWAPERROR: u32 = 999; -pub const ERROR_STACK_OVERFLOW: u32 = 1001; -pub const ERROR_INVALID_MESSAGE: u32 = 1002; -pub const ERROR_CAN_NOT_COMPLETE: u32 = 1003; -pub const ERROR_INVALID_FLAGS: u32 = 1004; -pub const ERROR_UNRECOGNIZED_VOLUME: u32 = 1005; -pub const ERROR_FILE_INVALID: u32 = 1006; -pub const ERROR_FULLSCREEN_MODE: u32 = 1007; -pub const ERROR_NO_TOKEN: u32 = 1008; -pub const ERROR_BADDB: u32 = 1009; -pub const ERROR_BADKEY: u32 = 1010; -pub const ERROR_CANTOPEN: u32 = 1011; -pub const ERROR_CANTREAD: u32 = 1012; -pub const ERROR_CANTWRITE: u32 = 1013; -pub const ERROR_REGISTRY_RECOVERED: u32 = 1014; -pub const ERROR_REGISTRY_CORRUPT: u32 = 1015; -pub const ERROR_REGISTRY_IO_FAILED: u32 = 1016; -pub const ERROR_NOT_REGISTRY_FILE: u32 = 1017; -pub const ERROR_KEY_DELETED: u32 = 1018; -pub const ERROR_NO_LOG_SPACE: u32 = 1019; -pub const ERROR_KEY_HAS_CHILDREN: u32 = 1020; -pub const ERROR_CHILD_MUST_BE_VOLATILE: u32 = 1021; -pub const ERROR_NOTIFY_ENUM_DIR: u32 = 1022; -pub const ERROR_DEPENDENT_SERVICES_RUNNING: u32 = 1051; -pub const ERROR_INVALID_SERVICE_CONTROL: u32 = 1052; -pub const ERROR_SERVICE_REQUEST_TIMEOUT: u32 = 1053; -pub const ERROR_SERVICE_NO_THREAD: u32 = 1054; -pub const ERROR_SERVICE_DATABASE_LOCKED: u32 = 1055; -pub const ERROR_SERVICE_ALREADY_RUNNING: u32 = 1056; -pub const ERROR_INVALID_SERVICE_ACCOUNT: u32 = 1057; -pub const ERROR_SERVICE_DISABLED: u32 = 1058; -pub const ERROR_CIRCULAR_DEPENDENCY: u32 = 1059; -pub const ERROR_SERVICE_DOES_NOT_EXIST: u32 = 1060; -pub const ERROR_SERVICE_CANNOT_ACCEPT_CTRL: u32 = 1061; -pub const ERROR_SERVICE_NOT_ACTIVE: u32 = 1062; -pub const ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: u32 = 1063; -pub const ERROR_EXCEPTION_IN_SERVICE: u32 = 1064; -pub const ERROR_DATABASE_DOES_NOT_EXIST: u32 = 1065; -pub const ERROR_SERVICE_SPECIFIC_ERROR: u32 = 1066; -pub const ERROR_PROCESS_ABORTED: u32 = 1067; -pub const ERROR_SERVICE_DEPENDENCY_FAIL: u32 = 1068; -pub const ERROR_SERVICE_LOGON_FAILED: u32 = 1069; -pub const ERROR_SERVICE_START_HANG: u32 = 1070; -pub const ERROR_INVALID_SERVICE_LOCK: u32 = 1071; -pub const ERROR_SERVICE_MARKED_FOR_DELETE: u32 = 1072; -pub const ERROR_SERVICE_EXISTS: u32 = 1073; -pub const ERROR_ALREADY_RUNNING_LKG: u32 = 1074; -pub const ERROR_SERVICE_DEPENDENCY_DELETED: u32 = 1075; -pub const ERROR_BOOT_ALREADY_ACCEPTED: u32 = 1076; -pub const ERROR_SERVICE_NEVER_STARTED: u32 = 1077; -pub const ERROR_DUPLICATE_SERVICE_NAME: u32 = 1078; -pub const ERROR_DIFFERENT_SERVICE_ACCOUNT: u32 = 1079; -pub const ERROR_CANNOT_DETECT_DRIVER_FAILURE: u32 = 1080; -pub const ERROR_CANNOT_DETECT_PROCESS_ABORT: u32 = 1081; -pub const ERROR_NO_RECOVERY_PROGRAM: u32 = 1082; -pub const ERROR_SERVICE_NOT_IN_EXE: u32 = 1083; -pub const ERROR_NOT_SAFEBOOT_SERVICE: u32 = 1084; -pub const ERROR_END_OF_MEDIA: u32 = 1100; -pub const ERROR_FILEMARK_DETECTED: u32 = 1101; -pub const ERROR_BEGINNING_OF_MEDIA: u32 = 1102; -pub const ERROR_SETMARK_DETECTED: u32 = 1103; -pub const ERROR_NO_DATA_DETECTED: u32 = 1104; -pub const ERROR_PARTITION_FAILURE: u32 = 1105; -pub const ERROR_INVALID_BLOCK_LENGTH: u32 = 1106; -pub const ERROR_DEVICE_NOT_PARTITIONED: u32 = 1107; -pub const ERROR_UNABLE_TO_LOCK_MEDIA: u32 = 1108; -pub const ERROR_UNABLE_TO_UNLOAD_MEDIA: u32 = 1109; -pub const ERROR_MEDIA_CHANGED: u32 = 1110; -pub const ERROR_BUS_RESET: u32 = 1111; -pub const ERROR_NO_MEDIA_IN_DRIVE: u32 = 1112; -pub const ERROR_NO_UNICODE_TRANSLATION: u32 = 1113; -pub const ERROR_DLL_INIT_FAILED: u32 = 1114; -pub const ERROR_SHUTDOWN_IN_PROGRESS: u32 = 1115; -pub const ERROR_NO_SHUTDOWN_IN_PROGRESS: u32 = 1116; -pub const ERROR_IO_DEVICE: u32 = 1117; -pub const ERROR_SERIAL_NO_DEVICE: u32 = 1118; -pub const ERROR_IRQ_BUSY: u32 = 1119; -pub const ERROR_MORE_WRITES: u32 = 1120; -pub const ERROR_COUNTER_TIMEOUT: u32 = 1121; -pub const ERROR_FLOPPY_ID_MARK_NOT_FOUND: u32 = 1122; -pub const ERROR_FLOPPY_WRONG_CYLINDER: u32 = 1123; -pub const ERROR_FLOPPY_UNKNOWN_ERROR: u32 = 1124; -pub const ERROR_FLOPPY_BAD_REGISTERS: u32 = 1125; -pub const ERROR_DISK_RECALIBRATE_FAILED: u32 = 1126; -pub const ERROR_DISK_OPERATION_FAILED: u32 = 1127; -pub const ERROR_DISK_RESET_FAILED: u32 = 1128; -pub const ERROR_EOM_OVERFLOW: u32 = 1129; -pub const ERROR_NOT_ENOUGH_SERVER_MEMORY: u32 = 1130; -pub const ERROR_POSSIBLE_DEADLOCK: u32 = 1131; -pub const ERROR_MAPPED_ALIGNMENT: u32 = 1132; -pub const ERROR_SET_POWER_STATE_VETOED: u32 = 1140; -pub const ERROR_SET_POWER_STATE_FAILED: u32 = 1141; -pub const ERROR_TOO_MANY_LINKS: u32 = 1142; -pub const ERROR_OLD_WIN_VERSION: u32 = 1150; -pub const ERROR_APP_WRONG_OS: u32 = 1151; -pub const ERROR_SINGLE_INSTANCE_APP: u32 = 1152; -pub const ERROR_RMODE_APP: u32 = 1153; -pub const ERROR_INVALID_DLL: u32 = 1154; -pub const ERROR_NO_ASSOCIATION: u32 = 1155; -pub const ERROR_DDE_FAIL: u32 = 1156; -pub const ERROR_DLL_NOT_FOUND: u32 = 1157; -pub const ERROR_NO_MORE_USER_HANDLES: u32 = 1158; -pub const ERROR_MESSAGE_SYNC_ONLY: u32 = 1159; -pub const ERROR_SOURCE_ELEMENT_EMPTY: u32 = 1160; -pub const ERROR_DESTINATION_ELEMENT_FULL: u32 = 1161; -pub const ERROR_ILLEGAL_ELEMENT_ADDRESS: u32 = 1162; -pub const ERROR_MAGAZINE_NOT_PRESENT: u32 = 1163; -pub const ERROR_DEVICE_REINITIALIZATION_NEEDED: u32 = 1164; -pub const ERROR_DEVICE_REQUIRES_CLEANING: u32 = 1165; -pub const ERROR_DEVICE_DOOR_OPEN: u32 = 1166; -pub const ERROR_DEVICE_NOT_CONNECTED: u32 = 1167; -pub const ERROR_NOT_FOUND: u32 = 1168; -pub const ERROR_NO_MATCH: u32 = 1169; -pub const ERROR_SET_NOT_FOUND: u32 = 1170; -pub const ERROR_POINT_NOT_FOUND: u32 = 1171; -pub const ERROR_NO_TRACKING_SERVICE: u32 = 1172; -pub const ERROR_NO_VOLUME_ID: u32 = 1173; -pub const ERROR_UNABLE_TO_REMOVE_REPLACED: u32 = 1175; -pub const ERROR_UNABLE_TO_MOVE_REPLACEMENT: u32 = 1176; -pub const ERROR_UNABLE_TO_MOVE_REPLACEMENT_2: u32 = 1177; -pub const ERROR_JOURNAL_DELETE_IN_PROGRESS: u32 = 1178; -pub const ERROR_JOURNAL_NOT_ACTIVE: u32 = 1179; -pub const ERROR_POTENTIAL_FILE_FOUND: u32 = 1180; -pub const ERROR_JOURNAL_ENTRY_DELETED: u32 = 1181; -pub const ERROR_PARTITION_TERMINATING: u32 = 1184; -pub const ERROR_SHUTDOWN_IS_SCHEDULED: u32 = 1190; -pub const ERROR_SHUTDOWN_USERS_LOGGED_ON: u32 = 1191; -pub const ERROR_SHUTDOWN_DISKS_NOT_IN_MAINTENANCE_MODE: u32 = 1192; -pub const ERROR_BAD_DEVICE: u32 = 1200; -pub const ERROR_CONNECTION_UNAVAIL: u32 = 1201; -pub const ERROR_DEVICE_ALREADY_REMEMBERED: u32 = 1202; -pub const ERROR_NO_NET_OR_BAD_PATH: u32 = 1203; -pub const ERROR_BAD_PROVIDER: u32 = 1204; -pub const ERROR_CANNOT_OPEN_PROFILE: u32 = 1205; -pub const ERROR_BAD_PROFILE: u32 = 1206; -pub const ERROR_NOT_CONTAINER: u32 = 1207; -pub const ERROR_EXTENDED_ERROR: u32 = 1208; -pub const ERROR_INVALID_GROUPNAME: u32 = 1209; -pub const ERROR_INVALID_COMPUTERNAME: u32 = 1210; -pub const ERROR_INVALID_EVENTNAME: u32 = 1211; -pub const ERROR_INVALID_DOMAINNAME: u32 = 1212; -pub const ERROR_INVALID_SERVICENAME: u32 = 1213; -pub const ERROR_INVALID_NETNAME: u32 = 1214; -pub const ERROR_INVALID_SHARENAME: u32 = 1215; -pub const ERROR_INVALID_PASSWORDNAME: u32 = 1216; -pub const ERROR_INVALID_MESSAGENAME: u32 = 1217; -pub const ERROR_INVALID_MESSAGEDEST: u32 = 1218; -pub const ERROR_SESSION_CREDENTIAL_CONFLICT: u32 = 1219; -pub const ERROR_REMOTE_SESSION_LIMIT_EXCEEDED: u32 = 1220; -pub const ERROR_DUP_DOMAINNAME: u32 = 1221; -pub const ERROR_NO_NETWORK: u32 = 1222; -pub const ERROR_CANCELLED: u32 = 1223; -pub const ERROR_USER_MAPPED_FILE: u32 = 1224; -pub const ERROR_CONNECTION_REFUSED: u32 = 1225; -pub const ERROR_GRACEFUL_DISCONNECT: u32 = 1226; -pub const ERROR_ADDRESS_ALREADY_ASSOCIATED: u32 = 1227; -pub const ERROR_ADDRESS_NOT_ASSOCIATED: u32 = 1228; -pub const ERROR_CONNECTION_INVALID: u32 = 1229; -pub const ERROR_CONNECTION_ACTIVE: u32 = 1230; -pub const ERROR_NETWORK_UNREACHABLE: u32 = 1231; -pub const ERROR_HOST_UNREACHABLE: u32 = 1232; -pub const ERROR_PROTOCOL_UNREACHABLE: u32 = 1233; -pub const ERROR_PORT_UNREACHABLE: u32 = 1234; -pub const ERROR_REQUEST_ABORTED: u32 = 1235; -pub const ERROR_CONNECTION_ABORTED: u32 = 1236; -pub const ERROR_RETRY: u32 = 1237; -pub const ERROR_CONNECTION_COUNT_LIMIT: u32 = 1238; -pub const ERROR_LOGIN_TIME_RESTRICTION: u32 = 1239; -pub const ERROR_LOGIN_WKSTA_RESTRICTION: u32 = 1240; -pub const ERROR_INCORRECT_ADDRESS: u32 = 1241; -pub const ERROR_ALREADY_REGISTERED: u32 = 1242; -pub const ERROR_SERVICE_NOT_FOUND: u32 = 1243; -pub const ERROR_NOT_AUTHENTICATED: u32 = 1244; -pub const ERROR_NOT_LOGGED_ON: u32 = 1245; -pub const ERROR_CONTINUE: u32 = 1246; -pub const ERROR_ALREADY_INITIALIZED: u32 = 1247; -pub const ERROR_NO_MORE_DEVICES: u32 = 1248; -pub const ERROR_NO_SUCH_SITE: u32 = 1249; -pub const ERROR_DOMAIN_CONTROLLER_EXISTS: u32 = 1250; -pub const ERROR_ONLY_IF_CONNECTED: u32 = 1251; -pub const ERROR_OVERRIDE_NOCHANGES: u32 = 1252; -pub const ERROR_BAD_USER_PROFILE: u32 = 1253; -pub const ERROR_NOT_SUPPORTED_ON_SBS: u32 = 1254; -pub const ERROR_SERVER_SHUTDOWN_IN_PROGRESS: u32 = 1255; -pub const ERROR_HOST_DOWN: u32 = 1256; -pub const ERROR_NON_ACCOUNT_SID: u32 = 1257; -pub const ERROR_NON_DOMAIN_SID: u32 = 1258; -pub const ERROR_APPHELP_BLOCK: u32 = 1259; -pub const ERROR_ACCESS_DISABLED_BY_POLICY: u32 = 1260; -pub const ERROR_REG_NAT_CONSUMPTION: u32 = 1261; -pub const ERROR_CSCSHARE_OFFLINE: u32 = 1262; -pub const ERROR_PKINIT_FAILURE: u32 = 1263; -pub const ERROR_SMARTCARD_SUBSYSTEM_FAILURE: u32 = 1264; -pub const ERROR_DOWNGRADE_DETECTED: u32 = 1265; -pub const ERROR_MACHINE_LOCKED: u32 = 1271; -pub const ERROR_SMB_GUEST_LOGON_BLOCKED: u32 = 1272; -pub const ERROR_CALLBACK_SUPPLIED_INVALID_DATA: u32 = 1273; -pub const ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED: u32 = 1274; -pub const ERROR_DRIVER_BLOCKED: u32 = 1275; -pub const ERROR_INVALID_IMPORT_OF_NON_DLL: u32 = 1276; -pub const ERROR_ACCESS_DISABLED_WEBBLADE: u32 = 1277; -pub const ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER: u32 = 1278; -pub const ERROR_RECOVERY_FAILURE: u32 = 1279; -pub const ERROR_ALREADY_FIBER: u32 = 1280; -pub const ERROR_ALREADY_THREAD: u32 = 1281; -pub const ERROR_STACK_BUFFER_OVERRUN: u32 = 1282; -pub const ERROR_PARAMETER_QUOTA_EXCEEDED: u32 = 1283; -pub const ERROR_DEBUGGER_INACTIVE: u32 = 1284; -pub const ERROR_DELAY_LOAD_FAILED: u32 = 1285; -pub const ERROR_VDM_DISALLOWED: u32 = 1286; -pub const ERROR_UNIDENTIFIED_ERROR: u32 = 1287; -pub const ERROR_INVALID_CRUNTIME_PARAMETER: u32 = 1288; -pub const ERROR_BEYOND_VDL: u32 = 1289; -pub const ERROR_INCOMPATIBLE_SERVICE_SID_TYPE: u32 = 1290; -pub const ERROR_DRIVER_PROCESS_TERMINATED: u32 = 1291; -pub const ERROR_IMPLEMENTATION_LIMIT: u32 = 1292; -pub const ERROR_PROCESS_IS_PROTECTED: u32 = 1293; -pub const ERROR_SERVICE_NOTIFY_CLIENT_LAGGING: u32 = 1294; -pub const ERROR_DISK_QUOTA_EXCEEDED: u32 = 1295; -pub const ERROR_CONTENT_BLOCKED: u32 = 1296; -pub const ERROR_INCOMPATIBLE_SERVICE_PRIVILEGE: u32 = 1297; -pub const ERROR_APP_HANG: u32 = 1298; -pub const ERROR_INVALID_LABEL: u32 = 1299; -pub const ERROR_NOT_ALL_ASSIGNED: u32 = 1300; -pub const ERROR_SOME_NOT_MAPPED: u32 = 1301; -pub const ERROR_NO_QUOTAS_FOR_ACCOUNT: u32 = 1302; -pub const ERROR_LOCAL_USER_SESSION_KEY: u32 = 1303; -pub const ERROR_NULL_LM_PASSWORD: u32 = 1304; -pub const ERROR_UNKNOWN_REVISION: u32 = 1305; -pub const ERROR_REVISION_MISMATCH: u32 = 1306; -pub const ERROR_INVALID_OWNER: u32 = 1307; -pub const ERROR_INVALID_PRIMARY_GROUP: u32 = 1308; -pub const ERROR_NO_IMPERSONATION_TOKEN: u32 = 1309; -pub const ERROR_CANT_DISABLE_MANDATORY: u32 = 1310; -pub const ERROR_NO_LOGON_SERVERS: u32 = 1311; -pub const ERROR_NO_SUCH_LOGON_SESSION: u32 = 1312; -pub const ERROR_NO_SUCH_PRIVILEGE: u32 = 1313; -pub const ERROR_PRIVILEGE_NOT_HELD: u32 = 1314; -pub const ERROR_INVALID_ACCOUNT_NAME: u32 = 1315; -pub const ERROR_USER_EXISTS: u32 = 1316; -pub const ERROR_NO_SUCH_USER: u32 = 1317; -pub const ERROR_GROUP_EXISTS: u32 = 1318; -pub const ERROR_NO_SUCH_GROUP: u32 = 1319; -pub const ERROR_MEMBER_IN_GROUP: u32 = 1320; -pub const ERROR_MEMBER_NOT_IN_GROUP: u32 = 1321; -pub const ERROR_LAST_ADMIN: u32 = 1322; -pub const ERROR_WRONG_PASSWORD: u32 = 1323; -pub const ERROR_ILL_FORMED_PASSWORD: u32 = 1324; -pub const ERROR_PASSWORD_RESTRICTION: u32 = 1325; -pub const ERROR_LOGON_FAILURE: u32 = 1326; -pub const ERROR_ACCOUNT_RESTRICTION: u32 = 1327; -pub const ERROR_INVALID_LOGON_HOURS: u32 = 1328; -pub const ERROR_INVALID_WORKSTATION: u32 = 1329; -pub const ERROR_PASSWORD_EXPIRED: u32 = 1330; -pub const ERROR_ACCOUNT_DISABLED: u32 = 1331; -pub const ERROR_NONE_MAPPED: u32 = 1332; -pub const ERROR_TOO_MANY_LUIDS_REQUESTED: u32 = 1333; -pub const ERROR_LUIDS_EXHAUSTED: u32 = 1334; -pub const ERROR_INVALID_SUB_AUTHORITY: u32 = 1335; -pub const ERROR_INVALID_ACL: u32 = 1336; -pub const ERROR_INVALID_SID: u32 = 1337; -pub const ERROR_INVALID_SECURITY_DESCR: u32 = 1338; -pub const ERROR_BAD_INHERITANCE_ACL: u32 = 1340; -pub const ERROR_SERVER_DISABLED: u32 = 1341; -pub const ERROR_SERVER_NOT_DISABLED: u32 = 1342; -pub const ERROR_INVALID_ID_AUTHORITY: u32 = 1343; -pub const ERROR_ALLOTTED_SPACE_EXCEEDED: u32 = 1344; -pub const ERROR_INVALID_GROUP_ATTRIBUTES: u32 = 1345; -pub const ERROR_BAD_IMPERSONATION_LEVEL: u32 = 1346; -pub const ERROR_CANT_OPEN_ANONYMOUS: u32 = 1347; -pub const ERROR_BAD_VALIDATION_CLASS: u32 = 1348; -pub const ERROR_BAD_TOKEN_TYPE: u32 = 1349; -pub const ERROR_NO_SECURITY_ON_OBJECT: u32 = 1350; -pub const ERROR_CANT_ACCESS_DOMAIN_INFO: u32 = 1351; -pub const ERROR_INVALID_SERVER_STATE: u32 = 1352; -pub const ERROR_INVALID_DOMAIN_STATE: u32 = 1353; -pub const ERROR_INVALID_DOMAIN_ROLE: u32 = 1354; -pub const ERROR_NO_SUCH_DOMAIN: u32 = 1355; -pub const ERROR_DOMAIN_EXISTS: u32 = 1356; -pub const ERROR_DOMAIN_LIMIT_EXCEEDED: u32 = 1357; -pub const ERROR_INTERNAL_DB_CORRUPTION: u32 = 1358; -pub const ERROR_INTERNAL_ERROR: u32 = 1359; -pub const ERROR_GENERIC_NOT_MAPPED: u32 = 1360; -pub const ERROR_BAD_DESCRIPTOR_FORMAT: u32 = 1361; -pub const ERROR_NOT_LOGON_PROCESS: u32 = 1362; -pub const ERROR_LOGON_SESSION_EXISTS: u32 = 1363; -pub const ERROR_NO_SUCH_PACKAGE: u32 = 1364; -pub const ERROR_BAD_LOGON_SESSION_STATE: u32 = 1365; -pub const ERROR_LOGON_SESSION_COLLISION: u32 = 1366; -pub const ERROR_INVALID_LOGON_TYPE: u32 = 1367; -pub const ERROR_CANNOT_IMPERSONATE: u32 = 1368; -pub const ERROR_RXACT_INVALID_STATE: u32 = 1369; -pub const ERROR_RXACT_COMMIT_FAILURE: u32 = 1370; -pub const ERROR_SPECIAL_ACCOUNT: u32 = 1371; -pub const ERROR_SPECIAL_GROUP: u32 = 1372; -pub const ERROR_SPECIAL_USER: u32 = 1373; -pub const ERROR_MEMBERS_PRIMARY_GROUP: u32 = 1374; -pub const ERROR_TOKEN_ALREADY_IN_USE: u32 = 1375; -pub const ERROR_NO_SUCH_ALIAS: u32 = 1376; -pub const ERROR_MEMBER_NOT_IN_ALIAS: u32 = 1377; -pub const ERROR_MEMBER_IN_ALIAS: u32 = 1378; -pub const ERROR_ALIAS_EXISTS: u32 = 1379; -pub const ERROR_LOGON_NOT_GRANTED: u32 = 1380; -pub const ERROR_TOO_MANY_SECRETS: u32 = 1381; -pub const ERROR_SECRET_TOO_LONG: u32 = 1382; -pub const ERROR_INTERNAL_DB_ERROR: u32 = 1383; -pub const ERROR_TOO_MANY_CONTEXT_IDS: u32 = 1384; -pub const ERROR_LOGON_TYPE_NOT_GRANTED: u32 = 1385; -pub const ERROR_NT_CROSS_ENCRYPTION_REQUIRED: u32 = 1386; -pub const ERROR_NO_SUCH_MEMBER: u32 = 1387; -pub const ERROR_INVALID_MEMBER: u32 = 1388; -pub const ERROR_TOO_MANY_SIDS: u32 = 1389; -pub const ERROR_LM_CROSS_ENCRYPTION_REQUIRED: u32 = 1390; -pub const ERROR_NO_INHERITANCE: u32 = 1391; -pub const ERROR_FILE_CORRUPT: u32 = 1392; -pub const ERROR_DISK_CORRUPT: u32 = 1393; -pub const ERROR_NO_USER_SESSION_KEY: u32 = 1394; -pub const ERROR_LICENSE_QUOTA_EXCEEDED: u32 = 1395; -pub const ERROR_WRONG_TARGET_NAME: u32 = 1396; -pub const ERROR_MUTUAL_AUTH_FAILED: u32 = 1397; -pub const ERROR_TIME_SKEW: u32 = 1398; -pub const ERROR_CURRENT_DOMAIN_NOT_ALLOWED: u32 = 1399; -pub const ERROR_INVALID_WINDOW_HANDLE: u32 = 1400; -pub const ERROR_INVALID_MENU_HANDLE: u32 = 1401; -pub const ERROR_INVALID_CURSOR_HANDLE: u32 = 1402; -pub const ERROR_INVALID_ACCEL_HANDLE: u32 = 1403; -pub const ERROR_INVALID_HOOK_HANDLE: u32 = 1404; -pub const ERROR_INVALID_DWP_HANDLE: u32 = 1405; -pub const ERROR_TLW_WITH_WSCHILD: u32 = 1406; -pub const ERROR_CANNOT_FIND_WND_CLASS: u32 = 1407; -pub const ERROR_WINDOW_OF_OTHER_THREAD: u32 = 1408; -pub const ERROR_HOTKEY_ALREADY_REGISTERED: u32 = 1409; -pub const ERROR_CLASS_ALREADY_EXISTS: u32 = 1410; -pub const ERROR_CLASS_DOES_NOT_EXIST: u32 = 1411; -pub const ERROR_CLASS_HAS_WINDOWS: u32 = 1412; -pub const ERROR_INVALID_INDEX: u32 = 1413; -pub const ERROR_INVALID_ICON_HANDLE: u32 = 1414; -pub const ERROR_PRIVATE_DIALOG_INDEX: u32 = 1415; -pub const ERROR_LISTBOX_ID_NOT_FOUND: u32 = 1416; -pub const ERROR_NO_WILDCARD_CHARACTERS: u32 = 1417; -pub const ERROR_CLIPBOARD_NOT_OPEN: u32 = 1418; -pub const ERROR_HOTKEY_NOT_REGISTERED: u32 = 1419; -pub const ERROR_WINDOW_NOT_DIALOG: u32 = 1420; -pub const ERROR_CONTROL_ID_NOT_FOUND: u32 = 1421; -pub const ERROR_INVALID_COMBOBOX_MESSAGE: u32 = 1422; -pub const ERROR_WINDOW_NOT_COMBOBOX: u32 = 1423; -pub const ERROR_INVALID_EDIT_HEIGHT: u32 = 1424; -pub const ERROR_DC_NOT_FOUND: u32 = 1425; -pub const ERROR_INVALID_HOOK_FILTER: u32 = 1426; -pub const ERROR_INVALID_FILTER_PROC: u32 = 1427; -pub const ERROR_HOOK_NEEDS_HMOD: u32 = 1428; -pub const ERROR_GLOBAL_ONLY_HOOK: u32 = 1429; -pub const ERROR_JOURNAL_HOOK_SET: u32 = 1430; -pub const ERROR_HOOK_NOT_INSTALLED: u32 = 1431; -pub const ERROR_INVALID_LB_MESSAGE: u32 = 1432; -pub const ERROR_SETCOUNT_ON_BAD_LB: u32 = 1433; -pub const ERROR_LB_WITHOUT_TABSTOPS: u32 = 1434; -pub const ERROR_DESTROY_OBJECT_OF_OTHER_THREAD: u32 = 1435; -pub const ERROR_CHILD_WINDOW_MENU: u32 = 1436; -pub const ERROR_NO_SYSTEM_MENU: u32 = 1437; -pub const ERROR_INVALID_MSGBOX_STYLE: u32 = 1438; -pub const ERROR_INVALID_SPI_VALUE: u32 = 1439; -pub const ERROR_SCREEN_ALREADY_LOCKED: u32 = 1440; -pub const ERROR_HWNDS_HAVE_DIFF_PARENT: u32 = 1441; -pub const ERROR_NOT_CHILD_WINDOW: u32 = 1442; -pub const ERROR_INVALID_GW_COMMAND: u32 = 1443; -pub const ERROR_INVALID_THREAD_ID: u32 = 1444; -pub const ERROR_NON_MDICHILD_WINDOW: u32 = 1445; -pub const ERROR_POPUP_ALREADY_ACTIVE: u32 = 1446; -pub const ERROR_NO_SCROLLBARS: u32 = 1447; -pub const ERROR_INVALID_SCROLLBAR_RANGE: u32 = 1448; -pub const ERROR_INVALID_SHOWWIN_COMMAND: u32 = 1449; -pub const ERROR_NO_SYSTEM_RESOURCES: u32 = 1450; -pub const ERROR_NONPAGED_SYSTEM_RESOURCES: u32 = 1451; -pub const ERROR_PAGED_SYSTEM_RESOURCES: u32 = 1452; -pub const ERROR_WORKING_SET_QUOTA: u32 = 1453; -pub const ERROR_PAGEFILE_QUOTA: u32 = 1454; -pub const ERROR_COMMITMENT_LIMIT: u32 = 1455; -pub const ERROR_MENU_ITEM_NOT_FOUND: u32 = 1456; -pub const ERROR_INVALID_KEYBOARD_HANDLE: u32 = 1457; -pub const ERROR_HOOK_TYPE_NOT_ALLOWED: u32 = 1458; -pub const ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION: u32 = 1459; -pub const ERROR_TIMEOUT: u32 = 1460; -pub const ERROR_INVALID_MONITOR_HANDLE: u32 = 1461; -pub const ERROR_INCORRECT_SIZE: u32 = 1462; -pub const ERROR_SYMLINK_CLASS_DISABLED: u32 = 1463; -pub const ERROR_SYMLINK_NOT_SUPPORTED: u32 = 1464; -pub const ERROR_XML_PARSE_ERROR: u32 = 1465; -pub const ERROR_XMLDSIG_ERROR: u32 = 1466; -pub const ERROR_RESTART_APPLICATION: u32 = 1467; -pub const ERROR_WRONG_COMPARTMENT: u32 = 1468; -pub const ERROR_AUTHIP_FAILURE: u32 = 1469; -pub const ERROR_NO_NVRAM_RESOURCES: u32 = 1470; -pub const ERROR_NOT_GUI_PROCESS: u32 = 1471; -pub const ERROR_EVENTLOG_FILE_CORRUPT: u32 = 1500; -pub const ERROR_EVENTLOG_CANT_START: u32 = 1501; -pub const ERROR_LOG_FILE_FULL: u32 = 1502; -pub const ERROR_EVENTLOG_FILE_CHANGED: u32 = 1503; -pub const ERROR_CONTAINER_ASSIGNED: u32 = 1504; -pub const ERROR_JOB_NO_CONTAINER: u32 = 1505; -pub const ERROR_INVALID_TASK_NAME: u32 = 1550; -pub const ERROR_INVALID_TASK_INDEX: u32 = 1551; -pub const ERROR_THREAD_ALREADY_IN_TASK: u32 = 1552; -pub const ERROR_INSTALL_SERVICE_FAILURE: u32 = 1601; -pub const ERROR_INSTALL_USEREXIT: u32 = 1602; -pub const ERROR_INSTALL_FAILURE: u32 = 1603; -pub const ERROR_INSTALL_SUSPEND: u32 = 1604; -pub const ERROR_UNKNOWN_PRODUCT: u32 = 1605; -pub const ERROR_UNKNOWN_FEATURE: u32 = 1606; -pub const ERROR_UNKNOWN_COMPONENT: u32 = 1607; -pub const ERROR_UNKNOWN_PROPERTY: u32 = 1608; -pub const ERROR_INVALID_HANDLE_STATE: u32 = 1609; -pub const ERROR_BAD_CONFIGURATION: u32 = 1610; -pub const ERROR_INDEX_ABSENT: u32 = 1611; -pub const ERROR_INSTALL_SOURCE_ABSENT: u32 = 1612; -pub const ERROR_INSTALL_PACKAGE_VERSION: u32 = 1613; -pub const ERROR_PRODUCT_UNINSTALLED: u32 = 1614; -pub const ERROR_BAD_QUERY_SYNTAX: u32 = 1615; -pub const ERROR_INVALID_FIELD: u32 = 1616; -pub const ERROR_DEVICE_REMOVED: u32 = 1617; -pub const ERROR_INSTALL_ALREADY_RUNNING: u32 = 1618; -pub const ERROR_INSTALL_PACKAGE_OPEN_FAILED: u32 = 1619; -pub const ERROR_INSTALL_PACKAGE_INVALID: u32 = 1620; -pub const ERROR_INSTALL_UI_FAILURE: u32 = 1621; -pub const ERROR_INSTALL_LOG_FAILURE: u32 = 1622; -pub const ERROR_INSTALL_LANGUAGE_UNSUPPORTED: u32 = 1623; -pub const ERROR_INSTALL_TRANSFORM_FAILURE: u32 = 1624; -pub const ERROR_INSTALL_PACKAGE_REJECTED: u32 = 1625; -pub const ERROR_FUNCTION_NOT_CALLED: u32 = 1626; -pub const ERROR_FUNCTION_FAILED: u32 = 1627; -pub const ERROR_INVALID_TABLE: u32 = 1628; -pub const ERROR_DATATYPE_MISMATCH: u32 = 1629; -pub const ERROR_UNSUPPORTED_TYPE: u32 = 1630; -pub const ERROR_CREATE_FAILED: u32 = 1631; -pub const ERROR_INSTALL_TEMP_UNWRITABLE: u32 = 1632; -pub const ERROR_INSTALL_PLATFORM_UNSUPPORTED: u32 = 1633; -pub const ERROR_INSTALL_NOTUSED: u32 = 1634; -pub const ERROR_PATCH_PACKAGE_OPEN_FAILED: u32 = 1635; -pub const ERROR_PATCH_PACKAGE_INVALID: u32 = 1636; -pub const ERROR_PATCH_PACKAGE_UNSUPPORTED: u32 = 1637; -pub const ERROR_PRODUCT_VERSION: u32 = 1638; -pub const ERROR_INVALID_COMMAND_LINE: u32 = 1639; -pub const ERROR_INSTALL_REMOTE_DISALLOWED: u32 = 1640; -pub const ERROR_SUCCESS_REBOOT_INITIATED: u32 = 1641; -pub const ERROR_PATCH_TARGET_NOT_FOUND: u32 = 1642; -pub const ERROR_PATCH_PACKAGE_REJECTED: u32 = 1643; -pub const ERROR_INSTALL_TRANSFORM_REJECTED: u32 = 1644; -pub const ERROR_INSTALL_REMOTE_PROHIBITED: u32 = 1645; -pub const ERROR_PATCH_REMOVAL_UNSUPPORTED: u32 = 1646; -pub const ERROR_UNKNOWN_PATCH: u32 = 1647; -pub const ERROR_PATCH_NO_SEQUENCE: u32 = 1648; -pub const ERROR_PATCH_REMOVAL_DISALLOWED: u32 = 1649; -pub const ERROR_INVALID_PATCH_XML: u32 = 1650; -pub const ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT: u32 = 1651; -pub const ERROR_INSTALL_SERVICE_SAFEBOOT: u32 = 1652; -pub const ERROR_FAIL_FAST_EXCEPTION: u32 = 1653; -pub const ERROR_INSTALL_REJECTED: u32 = 1654; -pub const ERROR_DYNAMIC_CODE_BLOCKED: u32 = 1655; -pub const ERROR_NOT_SAME_OBJECT: u32 = 1656; -pub const ERROR_STRICT_CFG_VIOLATION: u32 = 1657; -pub const ERROR_SET_CONTEXT_DENIED: u32 = 1660; -pub const ERROR_CROSS_PARTITION_VIOLATION: u32 = 1661; -pub const ERROR_RETURN_ADDRESS_HIJACK_ATTEMPT: u32 = 1662; -pub const RPC_S_INVALID_STRING_BINDING: u32 = 1700; -pub const RPC_S_WRONG_KIND_OF_BINDING: u32 = 1701; -pub const RPC_S_INVALID_BINDING: u32 = 1702; -pub const RPC_S_PROTSEQ_NOT_SUPPORTED: u32 = 1703; -pub const RPC_S_INVALID_RPC_PROTSEQ: u32 = 1704; -pub const RPC_S_INVALID_STRING_UUID: u32 = 1705; -pub const RPC_S_INVALID_ENDPOINT_FORMAT: u32 = 1706; -pub const RPC_S_INVALID_NET_ADDR: u32 = 1707; -pub const RPC_S_NO_ENDPOINT_FOUND: u32 = 1708; -pub const RPC_S_INVALID_TIMEOUT: u32 = 1709; -pub const RPC_S_OBJECT_NOT_FOUND: u32 = 1710; -pub const RPC_S_ALREADY_REGISTERED: u32 = 1711; -pub const RPC_S_TYPE_ALREADY_REGISTERED: u32 = 1712; -pub const RPC_S_ALREADY_LISTENING: u32 = 1713; -pub const RPC_S_NO_PROTSEQS_REGISTERED: u32 = 1714; -pub const RPC_S_NOT_LISTENING: u32 = 1715; -pub const RPC_S_UNKNOWN_MGR_TYPE: u32 = 1716; -pub const RPC_S_UNKNOWN_IF: u32 = 1717; -pub const RPC_S_NO_BINDINGS: u32 = 1718; -pub const RPC_S_NO_PROTSEQS: u32 = 1719; -pub const RPC_S_CANT_CREATE_ENDPOINT: u32 = 1720; -pub const RPC_S_OUT_OF_RESOURCES: u32 = 1721; -pub const RPC_S_SERVER_UNAVAILABLE: u32 = 1722; -pub const RPC_S_SERVER_TOO_BUSY: u32 = 1723; -pub const RPC_S_INVALID_NETWORK_OPTIONS: u32 = 1724; -pub const RPC_S_NO_CALL_ACTIVE: u32 = 1725; -pub const RPC_S_CALL_FAILED: u32 = 1726; -pub const RPC_S_CALL_FAILED_DNE: u32 = 1727; -pub const RPC_S_PROTOCOL_ERROR: u32 = 1728; -pub const RPC_S_PROXY_ACCESS_DENIED: u32 = 1729; -pub const RPC_S_UNSUPPORTED_TRANS_SYN: u32 = 1730; -pub const RPC_S_UNSUPPORTED_TYPE: u32 = 1732; -pub const RPC_S_INVALID_TAG: u32 = 1733; -pub const RPC_S_INVALID_BOUND: u32 = 1734; -pub const RPC_S_NO_ENTRY_NAME: u32 = 1735; -pub const RPC_S_INVALID_NAME_SYNTAX: u32 = 1736; -pub const RPC_S_UNSUPPORTED_NAME_SYNTAX: u32 = 1737; -pub const RPC_S_UUID_NO_ADDRESS: u32 = 1739; -pub const RPC_S_DUPLICATE_ENDPOINT: u32 = 1740; -pub const RPC_S_UNKNOWN_AUTHN_TYPE: u32 = 1741; -pub const RPC_S_MAX_CALLS_TOO_SMALL: u32 = 1742; -pub const RPC_S_STRING_TOO_LONG: u32 = 1743; -pub const RPC_S_PROTSEQ_NOT_FOUND: u32 = 1744; -pub const RPC_S_PROCNUM_OUT_OF_RANGE: u32 = 1745; -pub const RPC_S_BINDING_HAS_NO_AUTH: u32 = 1746; -pub const RPC_S_UNKNOWN_AUTHN_SERVICE: u32 = 1747; -pub const RPC_S_UNKNOWN_AUTHN_LEVEL: u32 = 1748; -pub const RPC_S_INVALID_AUTH_IDENTITY: u32 = 1749; -pub const RPC_S_UNKNOWN_AUTHZ_SERVICE: u32 = 1750; -pub const EPT_S_INVALID_ENTRY: u32 = 1751; -pub const EPT_S_CANT_PERFORM_OP: u32 = 1752; -pub const EPT_S_NOT_REGISTERED: u32 = 1753; -pub const RPC_S_NOTHING_TO_EXPORT: u32 = 1754; -pub const RPC_S_INCOMPLETE_NAME: u32 = 1755; -pub const RPC_S_INVALID_VERS_OPTION: u32 = 1756; -pub const RPC_S_NO_MORE_MEMBERS: u32 = 1757; -pub const RPC_S_NOT_ALL_OBJS_UNEXPORTED: u32 = 1758; -pub const RPC_S_INTERFACE_NOT_FOUND: u32 = 1759; -pub const RPC_S_ENTRY_ALREADY_EXISTS: u32 = 1760; -pub const RPC_S_ENTRY_NOT_FOUND: u32 = 1761; -pub const RPC_S_NAME_SERVICE_UNAVAILABLE: u32 = 1762; -pub const RPC_S_INVALID_NAF_ID: u32 = 1763; -pub const RPC_S_CANNOT_SUPPORT: u32 = 1764; -pub const RPC_S_NO_CONTEXT_AVAILABLE: u32 = 1765; -pub const RPC_S_INTERNAL_ERROR: u32 = 1766; -pub const RPC_S_ZERO_DIVIDE: u32 = 1767; -pub const RPC_S_ADDRESS_ERROR: u32 = 1768; -pub const RPC_S_FP_DIV_ZERO: u32 = 1769; -pub const RPC_S_FP_UNDERFLOW: u32 = 1770; -pub const RPC_S_FP_OVERFLOW: u32 = 1771; -pub const RPC_X_NO_MORE_ENTRIES: u32 = 1772; -pub const RPC_X_SS_CHAR_TRANS_OPEN_FAIL: u32 = 1773; -pub const RPC_X_SS_CHAR_TRANS_SHORT_FILE: u32 = 1774; -pub const RPC_X_SS_IN_NULL_CONTEXT: u32 = 1775; -pub const RPC_X_SS_CONTEXT_DAMAGED: u32 = 1777; -pub const RPC_X_SS_HANDLES_MISMATCH: u32 = 1778; -pub const RPC_X_SS_CANNOT_GET_CALL_HANDLE: u32 = 1779; -pub const RPC_X_NULL_REF_POINTER: u32 = 1780; -pub const RPC_X_ENUM_VALUE_OUT_OF_RANGE: u32 = 1781; -pub const RPC_X_BYTE_COUNT_TOO_SMALL: u32 = 1782; -pub const RPC_X_BAD_STUB_DATA: u32 = 1783; -pub const ERROR_INVALID_USER_BUFFER: u32 = 1784; -pub const ERROR_UNRECOGNIZED_MEDIA: u32 = 1785; -pub const ERROR_NO_TRUST_LSA_SECRET: u32 = 1786; -pub const ERROR_NO_TRUST_SAM_ACCOUNT: u32 = 1787; -pub const ERROR_TRUSTED_DOMAIN_FAILURE: u32 = 1788; -pub const ERROR_TRUSTED_RELATIONSHIP_FAILURE: u32 = 1789; -pub const ERROR_TRUST_FAILURE: u32 = 1790; -pub const RPC_S_CALL_IN_PROGRESS: u32 = 1791; -pub const ERROR_NETLOGON_NOT_STARTED: u32 = 1792; -pub const ERROR_ACCOUNT_EXPIRED: u32 = 1793; -pub const ERROR_REDIRECTOR_HAS_OPEN_HANDLES: u32 = 1794; -pub const ERROR_PRINTER_DRIVER_ALREADY_INSTALLED: u32 = 1795; -pub const ERROR_UNKNOWN_PORT: u32 = 1796; -pub const ERROR_UNKNOWN_PRINTER_DRIVER: u32 = 1797; -pub const ERROR_UNKNOWN_PRINTPROCESSOR: u32 = 1798; -pub const ERROR_INVALID_SEPARATOR_FILE: u32 = 1799; -pub const ERROR_INVALID_PRIORITY: u32 = 1800; -pub const ERROR_INVALID_PRINTER_NAME: u32 = 1801; -pub const ERROR_PRINTER_ALREADY_EXISTS: u32 = 1802; -pub const ERROR_INVALID_PRINTER_COMMAND: u32 = 1803; -pub const ERROR_INVALID_DATATYPE: u32 = 1804; -pub const ERROR_INVALID_ENVIRONMENT: u32 = 1805; -pub const RPC_S_NO_MORE_BINDINGS: u32 = 1806; -pub const ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT: u32 = 1807; -pub const ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT: u32 = 1808; -pub const ERROR_NOLOGON_SERVER_TRUST_ACCOUNT: u32 = 1809; -pub const ERROR_DOMAIN_TRUST_INCONSISTENT: u32 = 1810; -pub const ERROR_SERVER_HAS_OPEN_HANDLES: u32 = 1811; -pub const ERROR_RESOURCE_DATA_NOT_FOUND: u32 = 1812; -pub const ERROR_RESOURCE_TYPE_NOT_FOUND: u32 = 1813; -pub const ERROR_RESOURCE_NAME_NOT_FOUND: u32 = 1814; -pub const ERROR_RESOURCE_LANG_NOT_FOUND: u32 = 1815; -pub const ERROR_NOT_ENOUGH_QUOTA: u32 = 1816; -pub const RPC_S_NO_INTERFACES: u32 = 1817; -pub const RPC_S_CALL_CANCELLED: u32 = 1818; -pub const RPC_S_BINDING_INCOMPLETE: u32 = 1819; -pub const RPC_S_COMM_FAILURE: u32 = 1820; -pub const RPC_S_UNSUPPORTED_AUTHN_LEVEL: u32 = 1821; -pub const RPC_S_NO_PRINC_NAME: u32 = 1822; -pub const RPC_S_NOT_RPC_ERROR: u32 = 1823; -pub const RPC_S_UUID_LOCAL_ONLY: u32 = 1824; -pub const RPC_S_SEC_PKG_ERROR: u32 = 1825; -pub const RPC_S_NOT_CANCELLED: u32 = 1826; -pub const RPC_X_INVALID_ES_ACTION: u32 = 1827; -pub const RPC_X_WRONG_ES_VERSION: u32 = 1828; -pub const RPC_X_WRONG_STUB_VERSION: u32 = 1829; -pub const RPC_X_INVALID_PIPE_OBJECT: u32 = 1830; -pub const RPC_X_WRONG_PIPE_ORDER: u32 = 1831; -pub const RPC_X_WRONG_PIPE_VERSION: u32 = 1832; -pub const RPC_S_COOKIE_AUTH_FAILED: u32 = 1833; -pub const RPC_S_DO_NOT_DISTURB: u32 = 1834; -pub const RPC_S_SYSTEM_HANDLE_COUNT_EXCEEDED: u32 = 1835; -pub const RPC_S_SYSTEM_HANDLE_TYPE_MISMATCH: u32 = 1836; -pub const RPC_S_GROUP_MEMBER_NOT_FOUND: u32 = 1898; -pub const EPT_S_CANT_CREATE: u32 = 1899; -pub const RPC_S_INVALID_OBJECT: u32 = 1900; -pub const ERROR_INVALID_TIME: u32 = 1901; -pub const ERROR_INVALID_FORM_NAME: u32 = 1902; -pub const ERROR_INVALID_FORM_SIZE: u32 = 1903; -pub const ERROR_ALREADY_WAITING: u32 = 1904; -pub const ERROR_PRINTER_DELETED: u32 = 1905; -pub const ERROR_INVALID_PRINTER_STATE: u32 = 1906; -pub const ERROR_PASSWORD_MUST_CHANGE: u32 = 1907; -pub const ERROR_DOMAIN_CONTROLLER_NOT_FOUND: u32 = 1908; -pub const ERROR_ACCOUNT_LOCKED_OUT: u32 = 1909; -pub const OR_INVALID_OXID: u32 = 1910; -pub const OR_INVALID_OID: u32 = 1911; -pub const OR_INVALID_SET: u32 = 1912; -pub const RPC_S_SEND_INCOMPLETE: u32 = 1913; -pub const RPC_S_INVALID_ASYNC_HANDLE: u32 = 1914; -pub const RPC_S_INVALID_ASYNC_CALL: u32 = 1915; -pub const RPC_X_PIPE_CLOSED: u32 = 1916; -pub const RPC_X_PIPE_DISCIPLINE_ERROR: u32 = 1917; -pub const RPC_X_PIPE_EMPTY: u32 = 1918; -pub const ERROR_NO_SITENAME: u32 = 1919; -pub const ERROR_CANT_ACCESS_FILE: u32 = 1920; -pub const ERROR_CANT_RESOLVE_FILENAME: u32 = 1921; -pub const RPC_S_ENTRY_TYPE_MISMATCH: u32 = 1922; -pub const RPC_S_NOT_ALL_OBJS_EXPORTED: u32 = 1923; -pub const RPC_S_INTERFACE_NOT_EXPORTED: u32 = 1924; -pub const RPC_S_PROFILE_NOT_ADDED: u32 = 1925; -pub const RPC_S_PRF_ELT_NOT_ADDED: u32 = 1926; -pub const RPC_S_PRF_ELT_NOT_REMOVED: u32 = 1927; -pub const RPC_S_GRP_ELT_NOT_ADDED: u32 = 1928; -pub const RPC_S_GRP_ELT_NOT_REMOVED: u32 = 1929; -pub const ERROR_KM_DRIVER_BLOCKED: u32 = 1930; -pub const ERROR_CONTEXT_EXPIRED: u32 = 1931; -pub const ERROR_PER_USER_TRUST_QUOTA_EXCEEDED: u32 = 1932; -pub const ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED: u32 = 1933; -pub const ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED: u32 = 1934; -pub const ERROR_AUTHENTICATION_FIREWALL_FAILED: u32 = 1935; -pub const ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED: u32 = 1936; -pub const ERROR_NTLM_BLOCKED: u32 = 1937; -pub const ERROR_PASSWORD_CHANGE_REQUIRED: u32 = 1938; -pub const ERROR_LOST_MODE_LOGON_RESTRICTION: u32 = 1939; -pub const ERROR_INVALID_PIXEL_FORMAT: u32 = 2000; -pub const ERROR_BAD_DRIVER: u32 = 2001; -pub const ERROR_INVALID_WINDOW_STYLE: u32 = 2002; -pub const ERROR_METAFILE_NOT_SUPPORTED: u32 = 2003; -pub const ERROR_TRANSFORM_NOT_SUPPORTED: u32 = 2004; -pub const ERROR_CLIPPING_NOT_SUPPORTED: u32 = 2005; -pub const ERROR_INVALID_CMM: u32 = 2010; -pub const ERROR_INVALID_PROFILE: u32 = 2011; -pub const ERROR_TAG_NOT_FOUND: u32 = 2012; -pub const ERROR_TAG_NOT_PRESENT: u32 = 2013; -pub const ERROR_DUPLICATE_TAG: u32 = 2014; -pub const ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE: u32 = 2015; -pub const ERROR_PROFILE_NOT_FOUND: u32 = 2016; -pub const ERROR_INVALID_COLORSPACE: u32 = 2017; -pub const ERROR_ICM_NOT_ENABLED: u32 = 2018; -pub const ERROR_DELETING_ICM_XFORM: u32 = 2019; -pub const ERROR_INVALID_TRANSFORM: u32 = 2020; -pub const ERROR_COLORSPACE_MISMATCH: u32 = 2021; -pub const ERROR_INVALID_COLORINDEX: u32 = 2022; -pub const ERROR_PROFILE_DOES_NOT_MATCH_DEVICE: u32 = 2023; -pub const ERROR_CONNECTED_OTHER_PASSWORD: u32 = 2108; -pub const ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT: u32 = 2109; -pub const ERROR_BAD_USERNAME: u32 = 2202; -pub const ERROR_NOT_CONNECTED: u32 = 2250; -pub const ERROR_OPEN_FILES: u32 = 2401; -pub const ERROR_ACTIVE_CONNECTIONS: u32 = 2402; -pub const ERROR_DEVICE_IN_USE: u32 = 2404; -pub const ERROR_UNKNOWN_PRINT_MONITOR: u32 = 3000; -pub const ERROR_PRINTER_DRIVER_IN_USE: u32 = 3001; -pub const ERROR_SPOOL_FILE_NOT_FOUND: u32 = 3002; -pub const ERROR_SPL_NO_STARTDOC: u32 = 3003; -pub const ERROR_SPL_NO_ADDJOB: u32 = 3004; -pub const ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED: u32 = 3005; -pub const ERROR_PRINT_MONITOR_ALREADY_INSTALLED: u32 = 3006; -pub const ERROR_INVALID_PRINT_MONITOR: u32 = 3007; -pub const ERROR_PRINT_MONITOR_IN_USE: u32 = 3008; -pub const ERROR_PRINTER_HAS_JOBS_QUEUED: u32 = 3009; -pub const ERROR_SUCCESS_REBOOT_REQUIRED: u32 = 3010; -pub const ERROR_SUCCESS_RESTART_REQUIRED: u32 = 3011; -pub const ERROR_PRINTER_NOT_FOUND: u32 = 3012; -pub const ERROR_PRINTER_DRIVER_WARNED: u32 = 3013; -pub const ERROR_PRINTER_DRIVER_BLOCKED: u32 = 3014; -pub const ERROR_PRINTER_DRIVER_PACKAGE_IN_USE: u32 = 3015; -pub const ERROR_CORE_DRIVER_PACKAGE_NOT_FOUND: u32 = 3016; -pub const ERROR_FAIL_REBOOT_REQUIRED: u32 = 3017; -pub const ERROR_FAIL_REBOOT_INITIATED: u32 = 3018; -pub const ERROR_PRINTER_DRIVER_DOWNLOAD_NEEDED: u32 = 3019; -pub const ERROR_PRINT_JOB_RESTART_REQUIRED: u32 = 3020; -pub const ERROR_INVALID_PRINTER_DRIVER_MANIFEST: u32 = 3021; -pub const ERROR_PRINTER_NOT_SHAREABLE: u32 = 3022; -pub const ERROR_SERVER_SERVICE_CALL_REQUIRES_SMB1: u32 = 3023; -pub const ERROR_NETWORK_AUTHENTICATION_PROMPT_CANCELED: u32 = 3024; -pub const ERROR_REQUEST_PAUSED: u32 = 3050; -pub const ERROR_APPEXEC_CONDITION_NOT_SATISFIED: u32 = 3060; -pub const ERROR_APPEXEC_HANDLE_INVALIDATED: u32 = 3061; -pub const ERROR_APPEXEC_INVALID_HOST_GENERATION: u32 = 3062; -pub const ERROR_APPEXEC_UNEXPECTED_PROCESS_REGISTRATION: u32 = 3063; -pub const ERROR_APPEXEC_INVALID_HOST_STATE: u32 = 3064; -pub const ERROR_APPEXEC_NO_DONOR: u32 = 3065; -pub const ERROR_APPEXEC_HOST_ID_MISMATCH: u32 = 3066; -pub const ERROR_APPEXEC_UNKNOWN_USER: u32 = 3067; -pub const ERROR_APPEXEC_APP_COMPAT_BLOCK: u32 = 3068; -pub const ERROR_APPEXEC_CALLER_WAIT_TIMEOUT: u32 = 3069; -pub const ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_TERMINATION: u32 = 3070; -pub const ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_LICENSING: u32 = 3071; -pub const ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_RESOURCES: u32 = 3072; -pub const ERROR_VRF_VOLATILE_CFG_AND_IO_ENABLED: u32 = 3080; -pub const ERROR_VRF_VOLATILE_NOT_STOPPABLE: u32 = 3081; -pub const ERROR_VRF_VOLATILE_SAFE_MODE: u32 = 3082; -pub const ERROR_VRF_VOLATILE_NOT_RUNNABLE_SYSTEM: u32 = 3083; -pub const ERROR_VRF_VOLATILE_NOT_SUPPORTED_RULECLASS: u32 = 3084; -pub const ERROR_VRF_VOLATILE_PROTECTED_DRIVER: u32 = 3085; -pub const ERROR_VRF_VOLATILE_NMI_REGISTERED: u32 = 3086; -pub const ERROR_VRF_VOLATILE_SETTINGS_CONFLICT: u32 = 3087; -pub const ERROR_DIF_IOCALLBACK_NOT_REPLACED: u32 = 3190; -pub const ERROR_DIF_LIVEDUMP_LIMIT_EXCEEDED: u32 = 3191; -pub const ERROR_DIF_VOLATILE_SECTION_NOT_LOCKED: u32 = 3192; -pub const ERROR_DIF_VOLATILE_DRIVER_HOTPATCHED: u32 = 3193; -pub const ERROR_DIF_VOLATILE_INVALID_INFO: u32 = 3194; -pub const ERROR_DIF_VOLATILE_DRIVER_IS_NOT_RUNNING: u32 = 3195; -pub const ERROR_DIF_VOLATILE_PLUGIN_IS_NOT_RUNNING: u32 = 3196; -pub const ERROR_DIF_VOLATILE_PLUGIN_CHANGE_NOT_ALLOWED: u32 = 3197; -pub const ERROR_DIF_VOLATILE_NOT_ALLOWED: u32 = 3198; -pub const ERROR_DIF_BINDING_API_NOT_FOUND: u32 = 3199; -pub const ERROR_IO_REISSUE_AS_CACHED: u32 = 3950; -pub const ERROR_WINS_INTERNAL: u32 = 4000; -pub const ERROR_CAN_NOT_DEL_LOCAL_WINS: u32 = 4001; -pub const ERROR_STATIC_INIT: u32 = 4002; -pub const ERROR_INC_BACKUP: u32 = 4003; -pub const ERROR_FULL_BACKUP: u32 = 4004; -pub const ERROR_REC_NON_EXISTENT: u32 = 4005; -pub const ERROR_RPL_NOT_ALLOWED: u32 = 4006; -pub const PEERDIST_ERROR_CONTENTINFO_VERSION_UNSUPPORTED: u32 = 4050; -pub const PEERDIST_ERROR_CANNOT_PARSE_CONTENTINFO: u32 = 4051; -pub const PEERDIST_ERROR_MISSING_DATA: u32 = 4052; -pub const PEERDIST_ERROR_NO_MORE: u32 = 4053; -pub const PEERDIST_ERROR_NOT_INITIALIZED: u32 = 4054; -pub const PEERDIST_ERROR_ALREADY_INITIALIZED: u32 = 4055; -pub const PEERDIST_ERROR_SHUTDOWN_IN_PROGRESS: u32 = 4056; -pub const PEERDIST_ERROR_INVALIDATED: u32 = 4057; -pub const PEERDIST_ERROR_ALREADY_EXISTS: u32 = 4058; -pub const PEERDIST_ERROR_OPERATION_NOTFOUND: u32 = 4059; -pub const PEERDIST_ERROR_ALREADY_COMPLETED: u32 = 4060; -pub const PEERDIST_ERROR_OUT_OF_BOUNDS: u32 = 4061; -pub const PEERDIST_ERROR_VERSION_UNSUPPORTED: u32 = 4062; -pub const PEERDIST_ERROR_INVALID_CONFIGURATION: u32 = 4063; -pub const PEERDIST_ERROR_NOT_LICENSED: u32 = 4064; -pub const PEERDIST_ERROR_SERVICE_UNAVAILABLE: u32 = 4065; -pub const PEERDIST_ERROR_TRUST_FAILURE: u32 = 4066; -pub const ERROR_DHCP_ADDRESS_CONFLICT: u32 = 4100; -pub const ERROR_WMI_GUID_NOT_FOUND: u32 = 4200; -pub const ERROR_WMI_INSTANCE_NOT_FOUND: u32 = 4201; -pub const ERROR_WMI_ITEMID_NOT_FOUND: u32 = 4202; -pub const ERROR_WMI_TRY_AGAIN: u32 = 4203; -pub const ERROR_WMI_DP_NOT_FOUND: u32 = 4204; -pub const ERROR_WMI_UNRESOLVED_INSTANCE_REF: u32 = 4205; -pub const ERROR_WMI_ALREADY_ENABLED: u32 = 4206; -pub const ERROR_WMI_GUID_DISCONNECTED: u32 = 4207; -pub const ERROR_WMI_SERVER_UNAVAILABLE: u32 = 4208; -pub const ERROR_WMI_DP_FAILED: u32 = 4209; -pub const ERROR_WMI_INVALID_MOF: u32 = 4210; -pub const ERROR_WMI_INVALID_REGINFO: u32 = 4211; -pub const ERROR_WMI_ALREADY_DISABLED: u32 = 4212; -pub const ERROR_WMI_READ_ONLY: u32 = 4213; -pub const ERROR_WMI_SET_FAILURE: u32 = 4214; -pub const ERROR_NOT_APPCONTAINER: u32 = 4250; -pub const ERROR_APPCONTAINER_REQUIRED: u32 = 4251; -pub const ERROR_NOT_SUPPORTED_IN_APPCONTAINER: u32 = 4252; -pub const ERROR_INVALID_PACKAGE_SID_LENGTH: u32 = 4253; -pub const ERROR_INVALID_MEDIA: u32 = 4300; -pub const ERROR_INVALID_LIBRARY: u32 = 4301; -pub const ERROR_INVALID_MEDIA_POOL: u32 = 4302; -pub const ERROR_DRIVE_MEDIA_MISMATCH: u32 = 4303; -pub const ERROR_MEDIA_OFFLINE: u32 = 4304; -pub const ERROR_LIBRARY_OFFLINE: u32 = 4305; -pub const ERROR_EMPTY: u32 = 4306; -pub const ERROR_NOT_EMPTY: u32 = 4307; -pub const ERROR_MEDIA_UNAVAILABLE: u32 = 4308; -pub const ERROR_RESOURCE_DISABLED: u32 = 4309; -pub const ERROR_INVALID_CLEANER: u32 = 4310; -pub const ERROR_UNABLE_TO_CLEAN: u32 = 4311; -pub const ERROR_OBJECT_NOT_FOUND: u32 = 4312; -pub const ERROR_DATABASE_FAILURE: u32 = 4313; -pub const ERROR_DATABASE_FULL: u32 = 4314; -pub const ERROR_MEDIA_INCOMPATIBLE: u32 = 4315; -pub const ERROR_RESOURCE_NOT_PRESENT: u32 = 4316; -pub const ERROR_INVALID_OPERATION: u32 = 4317; -pub const ERROR_MEDIA_NOT_AVAILABLE: u32 = 4318; -pub const ERROR_DEVICE_NOT_AVAILABLE: u32 = 4319; -pub const ERROR_REQUEST_REFUSED: u32 = 4320; -pub const ERROR_INVALID_DRIVE_OBJECT: u32 = 4321; -pub const ERROR_LIBRARY_FULL: u32 = 4322; -pub const ERROR_MEDIUM_NOT_ACCESSIBLE: u32 = 4323; -pub const ERROR_UNABLE_TO_LOAD_MEDIUM: u32 = 4324; -pub const ERROR_UNABLE_TO_INVENTORY_DRIVE: u32 = 4325; -pub const ERROR_UNABLE_TO_INVENTORY_SLOT: u32 = 4326; -pub const ERROR_UNABLE_TO_INVENTORY_TRANSPORT: u32 = 4327; -pub const ERROR_TRANSPORT_FULL: u32 = 4328; -pub const ERROR_CONTROLLING_IEPORT: u32 = 4329; -pub const ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA: u32 = 4330; -pub const ERROR_CLEANER_SLOT_SET: u32 = 4331; -pub const ERROR_CLEANER_SLOT_NOT_SET: u32 = 4332; -pub const ERROR_CLEANER_CARTRIDGE_SPENT: u32 = 4333; -pub const ERROR_UNEXPECTED_OMID: u32 = 4334; -pub const ERROR_CANT_DELETE_LAST_ITEM: u32 = 4335; -pub const ERROR_MESSAGE_EXCEEDS_MAX_SIZE: u32 = 4336; -pub const ERROR_VOLUME_CONTAINS_SYS_FILES: u32 = 4337; -pub const ERROR_INDIGENOUS_TYPE: u32 = 4338; -pub const ERROR_NO_SUPPORTING_DRIVES: u32 = 4339; -pub const ERROR_CLEANER_CARTRIDGE_INSTALLED: u32 = 4340; -pub const ERROR_IEPORT_FULL: u32 = 4341; -pub const ERROR_FILE_OFFLINE: u32 = 4350; -pub const ERROR_REMOTE_STORAGE_NOT_ACTIVE: u32 = 4351; -pub const ERROR_REMOTE_STORAGE_MEDIA_ERROR: u32 = 4352; -pub const ERROR_NOT_A_REPARSE_POINT: u32 = 4390; -pub const ERROR_REPARSE_ATTRIBUTE_CONFLICT: u32 = 4391; -pub const ERROR_INVALID_REPARSE_DATA: u32 = 4392; -pub const ERROR_REPARSE_TAG_INVALID: u32 = 4393; -pub const ERROR_REPARSE_TAG_MISMATCH: u32 = 4394; -pub const ERROR_REPARSE_POINT_ENCOUNTERED: u32 = 4395; -pub const ERROR_APP_DATA_NOT_FOUND: u32 = 4400; -pub const ERROR_APP_DATA_EXPIRED: u32 = 4401; -pub const ERROR_APP_DATA_CORRUPT: u32 = 4402; -pub const ERROR_APP_DATA_LIMIT_EXCEEDED: u32 = 4403; -pub const ERROR_APP_DATA_REBOOT_REQUIRED: u32 = 4404; -pub const ERROR_SECUREBOOT_ROLLBACK_DETECTED: u32 = 4420; -pub const ERROR_SECUREBOOT_POLICY_VIOLATION: u32 = 4421; -pub const ERROR_SECUREBOOT_INVALID_POLICY: u32 = 4422; -pub const ERROR_SECUREBOOT_POLICY_PUBLISHER_NOT_FOUND: u32 = 4423; -pub const ERROR_SECUREBOOT_POLICY_NOT_SIGNED: u32 = 4424; -pub const ERROR_SECUREBOOT_NOT_ENABLED: u32 = 4425; -pub const ERROR_SECUREBOOT_FILE_REPLACED: u32 = 4426; -pub const ERROR_SECUREBOOT_POLICY_NOT_AUTHORIZED: u32 = 4427; -pub const ERROR_SECUREBOOT_POLICY_UNKNOWN: u32 = 4428; -pub const ERROR_SECUREBOOT_POLICY_MISSING_ANTIROLLBACKVERSION: u32 = 4429; -pub const ERROR_SECUREBOOT_PLATFORM_ID_MISMATCH: u32 = 4430; -pub const ERROR_SECUREBOOT_POLICY_ROLLBACK_DETECTED: u32 = 4431; -pub const ERROR_SECUREBOOT_POLICY_UPGRADE_MISMATCH: u32 = 4432; -pub const ERROR_SECUREBOOT_REQUIRED_POLICY_FILE_MISSING: u32 = 4433; -pub const ERROR_SECUREBOOT_NOT_BASE_POLICY: u32 = 4434; -pub const ERROR_SECUREBOOT_NOT_SUPPLEMENTAL_POLICY: u32 = 4435; -pub const ERROR_OFFLOAD_READ_FLT_NOT_SUPPORTED: u32 = 4440; -pub const ERROR_OFFLOAD_WRITE_FLT_NOT_SUPPORTED: u32 = 4441; -pub const ERROR_OFFLOAD_READ_FILE_NOT_SUPPORTED: u32 = 4442; -pub const ERROR_OFFLOAD_WRITE_FILE_NOT_SUPPORTED: u32 = 4443; -pub const ERROR_ALREADY_HAS_STREAM_ID: u32 = 4444; -pub const ERROR_SMR_GARBAGE_COLLECTION_REQUIRED: u32 = 4445; -pub const ERROR_WOF_WIM_HEADER_CORRUPT: u32 = 4446; -pub const ERROR_WOF_WIM_RESOURCE_TABLE_CORRUPT: u32 = 4447; -pub const ERROR_WOF_FILE_RESOURCE_TABLE_CORRUPT: u32 = 4448; -pub const ERROR_OBJECT_IS_IMMUTABLE: u32 = 4449; -pub const ERROR_VOLUME_NOT_SIS_ENABLED: u32 = 4500; -pub const ERROR_SYSTEM_INTEGRITY_ROLLBACK_DETECTED: u32 = 4550; -pub const ERROR_SYSTEM_INTEGRITY_POLICY_VIOLATION: u32 = 4551; -pub const ERROR_SYSTEM_INTEGRITY_INVALID_POLICY: u32 = 4552; -pub const ERROR_SYSTEM_INTEGRITY_POLICY_NOT_SIGNED: u32 = 4553; -pub const ERROR_SYSTEM_INTEGRITY_TOO_MANY_POLICIES: u32 = 4554; -pub const ERROR_SYSTEM_INTEGRITY_SUPPLEMENTAL_POLICY_NOT_AUTHORIZED: u32 = 4555; -pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_MALICIOUS: u32 = 4556; -pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_PUA: u32 = 4557; -pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_DANGEROUS_EXT: u32 = 4558; -pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_OFFLINE: u32 = 4559; -pub const ERROR_VSM_NOT_INITIALIZED: u32 = 4560; -pub const ERROR_VSM_DMA_PROTECTION_NOT_IN_USE: u32 = 4561; -pub const ERROR_PLATFORM_MANIFEST_NOT_AUTHORIZED: u32 = 4570; -pub const ERROR_PLATFORM_MANIFEST_INVALID: u32 = 4571; -pub const ERROR_PLATFORM_MANIFEST_FILE_NOT_AUTHORIZED: u32 = 4572; -pub const ERROR_PLATFORM_MANIFEST_CATALOG_NOT_AUTHORIZED: u32 = 4573; -pub const ERROR_PLATFORM_MANIFEST_BINARY_ID_NOT_FOUND: u32 = 4574; -pub const ERROR_PLATFORM_MANIFEST_NOT_ACTIVE: u32 = 4575; -pub const ERROR_PLATFORM_MANIFEST_NOT_SIGNED: u32 = 4576; -pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_UNFRIENDLY_FILE: u32 = 4580; -pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_UNATTAINABLE: u32 = 4581; -pub const ERROR_SYSTEM_INTEGRITY_REPUTATION_EXPLICIT_DENY_FILE: u32 = 4582; -pub const ERROR_DEPENDENT_RESOURCE_EXISTS: u32 = 5001; -pub const ERROR_DEPENDENCY_NOT_FOUND: u32 = 5002; -pub const ERROR_DEPENDENCY_ALREADY_EXISTS: u32 = 5003; -pub const ERROR_RESOURCE_NOT_ONLINE: u32 = 5004; -pub const ERROR_HOST_NODE_NOT_AVAILABLE: u32 = 5005; -pub const ERROR_RESOURCE_NOT_AVAILABLE: u32 = 5006; -pub const ERROR_RESOURCE_NOT_FOUND: u32 = 5007; -pub const ERROR_SHUTDOWN_CLUSTER: u32 = 5008; -pub const ERROR_CANT_EVICT_ACTIVE_NODE: u32 = 5009; -pub const ERROR_OBJECT_ALREADY_EXISTS: u32 = 5010; -pub const ERROR_OBJECT_IN_LIST: u32 = 5011; -pub const ERROR_GROUP_NOT_AVAILABLE: u32 = 5012; -pub const ERROR_GROUP_NOT_FOUND: u32 = 5013; -pub const ERROR_GROUP_NOT_ONLINE: u32 = 5014; -pub const ERROR_HOST_NODE_NOT_RESOURCE_OWNER: u32 = 5015; -pub const ERROR_HOST_NODE_NOT_GROUP_OWNER: u32 = 5016; -pub const ERROR_RESMON_CREATE_FAILED: u32 = 5017; -pub const ERROR_RESMON_ONLINE_FAILED: u32 = 5018; -pub const ERROR_RESOURCE_ONLINE: u32 = 5019; -pub const ERROR_QUORUM_RESOURCE: u32 = 5020; -pub const ERROR_NOT_QUORUM_CAPABLE: u32 = 5021; -pub const ERROR_CLUSTER_SHUTTING_DOWN: u32 = 5022; -pub const ERROR_INVALID_STATE: u32 = 5023; -pub const ERROR_RESOURCE_PROPERTIES_STORED: u32 = 5024; -pub const ERROR_NOT_QUORUM_CLASS: u32 = 5025; -pub const ERROR_CORE_RESOURCE: u32 = 5026; -pub const ERROR_QUORUM_RESOURCE_ONLINE_FAILED: u32 = 5027; -pub const ERROR_QUORUMLOG_OPEN_FAILED: u32 = 5028; -pub const ERROR_CLUSTERLOG_CORRUPT: u32 = 5029; -pub const ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE: u32 = 5030; -pub const ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE: u32 = 5031; -pub const ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND: u32 = 5032; -pub const ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE: u32 = 5033; -pub const ERROR_QUORUM_OWNER_ALIVE: u32 = 5034; -pub const ERROR_NETWORK_NOT_AVAILABLE: u32 = 5035; -pub const ERROR_NODE_NOT_AVAILABLE: u32 = 5036; -pub const ERROR_ALL_NODES_NOT_AVAILABLE: u32 = 5037; -pub const ERROR_RESOURCE_FAILED: u32 = 5038; -pub const ERROR_CLUSTER_INVALID_NODE: u32 = 5039; -pub const ERROR_CLUSTER_NODE_EXISTS: u32 = 5040; -pub const ERROR_CLUSTER_JOIN_IN_PROGRESS: u32 = 5041; -pub const ERROR_CLUSTER_NODE_NOT_FOUND: u32 = 5042; -pub const ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND: u32 = 5043; -pub const ERROR_CLUSTER_NETWORK_EXISTS: u32 = 5044; -pub const ERROR_CLUSTER_NETWORK_NOT_FOUND: u32 = 5045; -pub const ERROR_CLUSTER_NETINTERFACE_EXISTS: u32 = 5046; -pub const ERROR_CLUSTER_NETINTERFACE_NOT_FOUND: u32 = 5047; -pub const ERROR_CLUSTER_INVALID_REQUEST: u32 = 5048; -pub const ERROR_CLUSTER_INVALID_NETWORK_PROVIDER: u32 = 5049; -pub const ERROR_CLUSTER_NODE_DOWN: u32 = 5050; -pub const ERROR_CLUSTER_NODE_UNREACHABLE: u32 = 5051; -pub const ERROR_CLUSTER_NODE_NOT_MEMBER: u32 = 5052; -pub const ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS: u32 = 5053; -pub const ERROR_CLUSTER_INVALID_NETWORK: u32 = 5054; -pub const ERROR_CLUSTER_NODE_UP: u32 = 5056; -pub const ERROR_CLUSTER_IPADDR_IN_USE: u32 = 5057; -pub const ERROR_CLUSTER_NODE_NOT_PAUSED: u32 = 5058; -pub const ERROR_CLUSTER_NO_SECURITY_CONTEXT: u32 = 5059; -pub const ERROR_CLUSTER_NETWORK_NOT_INTERNAL: u32 = 5060; -pub const ERROR_CLUSTER_NODE_ALREADY_UP: u32 = 5061; -pub const ERROR_CLUSTER_NODE_ALREADY_DOWN: u32 = 5062; -pub const ERROR_CLUSTER_NETWORK_ALREADY_ONLINE: u32 = 5063; -pub const ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE: u32 = 5064; -pub const ERROR_CLUSTER_NODE_ALREADY_MEMBER: u32 = 5065; -pub const ERROR_CLUSTER_LAST_INTERNAL_NETWORK: u32 = 5066; -pub const ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS: u32 = 5067; -pub const ERROR_INVALID_OPERATION_ON_QUORUM: u32 = 5068; -pub const ERROR_DEPENDENCY_NOT_ALLOWED: u32 = 5069; -pub const ERROR_CLUSTER_NODE_PAUSED: u32 = 5070; -pub const ERROR_NODE_CANT_HOST_RESOURCE: u32 = 5071; -pub const ERROR_CLUSTER_NODE_NOT_READY: u32 = 5072; -pub const ERROR_CLUSTER_NODE_SHUTTING_DOWN: u32 = 5073; -pub const ERROR_CLUSTER_JOIN_ABORTED: u32 = 5074; -pub const ERROR_CLUSTER_INCOMPATIBLE_VERSIONS: u32 = 5075; -pub const ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED: u32 = 5076; -pub const ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED: u32 = 5077; -pub const ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND: u32 = 5078; -pub const ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED: u32 = 5079; -pub const ERROR_CLUSTER_RESNAME_NOT_FOUND: u32 = 5080; -pub const ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED: u32 = 5081; -pub const ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST: u32 = 5082; -pub const ERROR_CLUSTER_DATABASE_SEQMISMATCH: u32 = 5083; -pub const ERROR_RESMON_INVALID_STATE: u32 = 5084; -pub const ERROR_CLUSTER_GUM_NOT_LOCKER: u32 = 5085; -pub const ERROR_QUORUM_DISK_NOT_FOUND: u32 = 5086; -pub const ERROR_DATABASE_BACKUP_CORRUPT: u32 = 5087; -pub const ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT: u32 = 5088; -pub const ERROR_RESOURCE_PROPERTY_UNCHANGEABLE: u32 = 5089; -pub const ERROR_NO_ADMIN_ACCESS_POINT: u32 = 5090; -pub const ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE: u32 = 5890; -pub const ERROR_CLUSTER_QUORUMLOG_NOT_FOUND: u32 = 5891; -pub const ERROR_CLUSTER_MEMBERSHIP_HALT: u32 = 5892; -pub const ERROR_CLUSTER_INSTANCE_ID_MISMATCH: u32 = 5893; -pub const ERROR_CLUSTER_NETWORK_NOT_FOUND_FOR_IP: u32 = 5894; -pub const ERROR_CLUSTER_PROPERTY_DATA_TYPE_MISMATCH: u32 = 5895; -pub const ERROR_CLUSTER_EVICT_WITHOUT_CLEANUP: u32 = 5896; -pub const ERROR_CLUSTER_PARAMETER_MISMATCH: u32 = 5897; -pub const ERROR_NODE_CANNOT_BE_CLUSTERED: u32 = 5898; -pub const ERROR_CLUSTER_WRONG_OS_VERSION: u32 = 5899; -pub const ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME: u32 = 5900; -pub const ERROR_CLUSCFG_ALREADY_COMMITTED: u32 = 5901; -pub const ERROR_CLUSCFG_ROLLBACK_FAILED: u32 = 5902; -pub const ERROR_CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT: u32 = 5903; -pub const ERROR_CLUSTER_OLD_VERSION: u32 = 5904; -pub const ERROR_CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME: u32 = 5905; -pub const ERROR_CLUSTER_NO_NET_ADAPTERS: u32 = 5906; -pub const ERROR_CLUSTER_POISONED: u32 = 5907; -pub const ERROR_CLUSTER_GROUP_MOVING: u32 = 5908; -pub const ERROR_CLUSTER_RESOURCE_TYPE_BUSY: u32 = 5909; -pub const ERROR_RESOURCE_CALL_TIMED_OUT: u32 = 5910; -pub const ERROR_INVALID_CLUSTER_IPV6_ADDRESS: u32 = 5911; -pub const ERROR_CLUSTER_INTERNAL_INVALID_FUNCTION: u32 = 5912; -pub const ERROR_CLUSTER_PARAMETER_OUT_OF_BOUNDS: u32 = 5913; -pub const ERROR_CLUSTER_PARTIAL_SEND: u32 = 5914; -pub const ERROR_CLUSTER_REGISTRY_INVALID_FUNCTION: u32 = 5915; -pub const ERROR_CLUSTER_INVALID_STRING_TERMINATION: u32 = 5916; -pub const ERROR_CLUSTER_INVALID_STRING_FORMAT: u32 = 5917; -pub const ERROR_CLUSTER_DATABASE_TRANSACTION_IN_PROGRESS: u32 = 5918; -pub const ERROR_CLUSTER_DATABASE_TRANSACTION_NOT_IN_PROGRESS: u32 = 5919; -pub const ERROR_CLUSTER_NULL_DATA: u32 = 5920; -pub const ERROR_CLUSTER_PARTIAL_READ: u32 = 5921; -pub const ERROR_CLUSTER_PARTIAL_WRITE: u32 = 5922; -pub const ERROR_CLUSTER_CANT_DESERIALIZE_DATA: u32 = 5923; -pub const ERROR_DEPENDENT_RESOURCE_PROPERTY_CONFLICT: u32 = 5924; -pub const ERROR_CLUSTER_NO_QUORUM: u32 = 5925; -pub const ERROR_CLUSTER_INVALID_IPV6_NETWORK: u32 = 5926; -pub const ERROR_CLUSTER_INVALID_IPV6_TUNNEL_NETWORK: u32 = 5927; -pub const ERROR_QUORUM_NOT_ALLOWED_IN_THIS_GROUP: u32 = 5928; -pub const ERROR_DEPENDENCY_TREE_TOO_COMPLEX: u32 = 5929; -pub const ERROR_EXCEPTION_IN_RESOURCE_CALL: u32 = 5930; -pub const ERROR_CLUSTER_RHS_FAILED_INITIALIZATION: u32 = 5931; -pub const ERROR_CLUSTER_NOT_INSTALLED: u32 = 5932; -pub const ERROR_CLUSTER_RESOURCES_MUST_BE_ONLINE_ON_THE_SAME_NODE: u32 = 5933; -pub const ERROR_CLUSTER_MAX_NODES_IN_CLUSTER: u32 = 5934; -pub const ERROR_CLUSTER_TOO_MANY_NODES: u32 = 5935; -pub const ERROR_CLUSTER_OBJECT_ALREADY_USED: u32 = 5936; -pub const ERROR_NONCORE_GROUPS_FOUND: u32 = 5937; -pub const ERROR_FILE_SHARE_RESOURCE_CONFLICT: u32 = 5938; -pub const ERROR_CLUSTER_EVICT_INVALID_REQUEST: u32 = 5939; -pub const ERROR_CLUSTER_SINGLETON_RESOURCE: u32 = 5940; -pub const ERROR_CLUSTER_GROUP_SINGLETON_RESOURCE: u32 = 5941; -pub const ERROR_CLUSTER_RESOURCE_PROVIDER_FAILED: u32 = 5942; -pub const ERROR_CLUSTER_RESOURCE_CONFIGURATION_ERROR: u32 = 5943; -pub const ERROR_CLUSTER_GROUP_BUSY: u32 = 5944; -pub const ERROR_CLUSTER_NOT_SHARED_VOLUME: u32 = 5945; -pub const ERROR_CLUSTER_INVALID_SECURITY_DESCRIPTOR: u32 = 5946; -pub const ERROR_CLUSTER_SHARED_VOLUMES_IN_USE: u32 = 5947; -pub const ERROR_CLUSTER_USE_SHARED_VOLUMES_API: u32 = 5948; -pub const ERROR_CLUSTER_BACKUP_IN_PROGRESS: u32 = 5949; -pub const ERROR_NON_CSV_PATH: u32 = 5950; -pub const ERROR_CSV_VOLUME_NOT_LOCAL: u32 = 5951; -pub const ERROR_CLUSTER_WATCHDOG_TERMINATING: u32 = 5952; -pub const ERROR_CLUSTER_RESOURCE_VETOED_MOVE_INCOMPATIBLE_NODES: u32 = 5953; -pub const ERROR_CLUSTER_INVALID_NODE_WEIGHT: u32 = 5954; -pub const ERROR_CLUSTER_RESOURCE_VETOED_CALL: u32 = 5955; -pub const ERROR_RESMON_SYSTEM_RESOURCES_LACKING: u32 = 5956; -pub const ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_DESTINATION: u32 = 5957; -pub const ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_SOURCE: u32 = 5958; -pub const ERROR_CLUSTER_GROUP_QUEUED: u32 = 5959; -pub const ERROR_CLUSTER_RESOURCE_LOCKED_STATUS: u32 = 5960; -pub const ERROR_CLUSTER_SHARED_VOLUME_FAILOVER_NOT_ALLOWED: u32 = 5961; -pub const ERROR_CLUSTER_NODE_DRAIN_IN_PROGRESS: u32 = 5962; -pub const ERROR_CLUSTER_DISK_NOT_CONNECTED: u32 = 5963; -pub const ERROR_DISK_NOT_CSV_CAPABLE: u32 = 5964; -pub const ERROR_RESOURCE_NOT_IN_AVAILABLE_STORAGE: u32 = 5965; -pub const ERROR_CLUSTER_SHARED_VOLUME_REDIRECTED: u32 = 5966; -pub const ERROR_CLUSTER_SHARED_VOLUME_NOT_REDIRECTED: u32 = 5967; -pub const ERROR_CLUSTER_CANNOT_RETURN_PROPERTIES: u32 = 5968; -pub const ERROR_CLUSTER_RESOURCE_CONTAINS_UNSUPPORTED_DIFF_AREA_FOR_SHARED_VOLUMES: u32 = 5969; -pub const ERROR_CLUSTER_RESOURCE_IS_IN_MAINTENANCE_MODE: u32 = 5970; -pub const ERROR_CLUSTER_AFFINITY_CONFLICT: u32 = 5971; -pub const ERROR_CLUSTER_RESOURCE_IS_REPLICA_VIRTUAL_MACHINE: u32 = 5972; -pub const ERROR_CLUSTER_UPGRADE_INCOMPATIBLE_VERSIONS: u32 = 5973; -pub const ERROR_CLUSTER_UPGRADE_FIX_QUORUM_NOT_SUPPORTED: u32 = 5974; -pub const ERROR_CLUSTER_UPGRADE_RESTART_REQUIRED: u32 = 5975; -pub const ERROR_CLUSTER_UPGRADE_IN_PROGRESS: u32 = 5976; -pub const ERROR_CLUSTER_UPGRADE_INCOMPLETE: u32 = 5977; -pub const ERROR_CLUSTER_NODE_IN_GRACE_PERIOD: u32 = 5978; -pub const ERROR_CLUSTER_CSV_IO_PAUSE_TIMEOUT: u32 = 5979; -pub const ERROR_NODE_NOT_ACTIVE_CLUSTER_MEMBER: u32 = 5980; -pub const ERROR_CLUSTER_RESOURCE_NOT_MONITORED: u32 = 5981; -pub const ERROR_CLUSTER_RESOURCE_DOES_NOT_SUPPORT_UNMONITORED: u32 = 5982; -pub const ERROR_CLUSTER_RESOURCE_IS_REPLICATED: u32 = 5983; -pub const ERROR_CLUSTER_NODE_ISOLATED: u32 = 5984; -pub const ERROR_CLUSTER_NODE_QUARANTINED: u32 = 5985; -pub const ERROR_CLUSTER_DATABASE_UPDATE_CONDITION_FAILED: u32 = 5986; -pub const ERROR_CLUSTER_SPACE_DEGRADED: u32 = 5987; -pub const ERROR_CLUSTER_TOKEN_DELEGATION_NOT_SUPPORTED: u32 = 5988; -pub const ERROR_CLUSTER_CSV_INVALID_HANDLE: u32 = 5989; -pub const ERROR_CLUSTER_CSV_SUPPORTED_ONLY_ON_COORDINATOR: u32 = 5990; -pub const ERROR_GROUPSET_NOT_AVAILABLE: u32 = 5991; -pub const ERROR_GROUPSET_NOT_FOUND: u32 = 5992; -pub const ERROR_GROUPSET_CANT_PROVIDE: u32 = 5993; -pub const ERROR_CLUSTER_FAULT_DOMAIN_PARENT_NOT_FOUND: u32 = 5994; -pub const ERROR_CLUSTER_FAULT_DOMAIN_INVALID_HIERARCHY: u32 = 5995; -pub const ERROR_CLUSTER_FAULT_DOMAIN_FAILED_S2D_VALIDATION: u32 = 5996; -pub const ERROR_CLUSTER_FAULT_DOMAIN_S2D_CONNECTIVITY_LOSS: u32 = 5997; -pub const ERROR_CLUSTER_INVALID_INFRASTRUCTURE_FILESERVER_NAME: u32 = 5998; -pub const ERROR_CLUSTERSET_MANAGEMENT_CLUSTER_UNREACHABLE: u32 = 5999; -pub const ERROR_ENCRYPTION_FAILED: u32 = 6000; -pub const ERROR_DECRYPTION_FAILED: u32 = 6001; -pub const ERROR_FILE_ENCRYPTED: u32 = 6002; -pub const ERROR_NO_RECOVERY_POLICY: u32 = 6003; -pub const ERROR_NO_EFS: u32 = 6004; -pub const ERROR_WRONG_EFS: u32 = 6005; -pub const ERROR_NO_USER_KEYS: u32 = 6006; -pub const ERROR_FILE_NOT_ENCRYPTED: u32 = 6007; -pub const ERROR_NOT_EXPORT_FORMAT: u32 = 6008; -pub const ERROR_FILE_READ_ONLY: u32 = 6009; -pub const ERROR_DIR_EFS_DISALLOWED: u32 = 6010; -pub const ERROR_EFS_SERVER_NOT_TRUSTED: u32 = 6011; -pub const ERROR_BAD_RECOVERY_POLICY: u32 = 6012; -pub const ERROR_EFS_ALG_BLOB_TOO_BIG: u32 = 6013; -pub const ERROR_VOLUME_NOT_SUPPORT_EFS: u32 = 6014; -pub const ERROR_EFS_DISABLED: u32 = 6015; -pub const ERROR_EFS_VERSION_NOT_SUPPORT: u32 = 6016; -pub const ERROR_CS_ENCRYPTION_INVALID_SERVER_RESPONSE: u32 = 6017; -pub const ERROR_CS_ENCRYPTION_UNSUPPORTED_SERVER: u32 = 6018; -pub const ERROR_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE: u32 = 6019; -pub const ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE: u32 = 6020; -pub const ERROR_CS_ENCRYPTION_FILE_NOT_CSE: u32 = 6021; -pub const ERROR_ENCRYPTION_POLICY_DENIES_OPERATION: u32 = 6022; -pub const ERROR_WIP_ENCRYPTION_FAILED: u32 = 6023; -pub const ERROR_NO_BROWSER_SERVERS_FOUND: u32 = 6118; -pub const SCHED_E_SERVICE_NOT_LOCALSYSTEM: u32 = 6200; -pub const ERROR_CLUSTER_OBJECT_IS_CLUSTER_SET_VM: u32 = 6250; -pub const ERROR_LOG_SECTOR_INVALID: u32 = 6600; -pub const ERROR_LOG_SECTOR_PARITY_INVALID: u32 = 6601; -pub const ERROR_LOG_SECTOR_REMAPPED: u32 = 6602; -pub const ERROR_LOG_BLOCK_INCOMPLETE: u32 = 6603; -pub const ERROR_LOG_INVALID_RANGE: u32 = 6604; -pub const ERROR_LOG_BLOCKS_EXHAUSTED: u32 = 6605; -pub const ERROR_LOG_READ_CONTEXT_INVALID: u32 = 6606; -pub const ERROR_LOG_RESTART_INVALID: u32 = 6607; -pub const ERROR_LOG_BLOCK_VERSION: u32 = 6608; -pub const ERROR_LOG_BLOCK_INVALID: u32 = 6609; -pub const ERROR_LOG_READ_MODE_INVALID: u32 = 6610; -pub const ERROR_LOG_NO_RESTART: u32 = 6611; -pub const ERROR_LOG_METADATA_CORRUPT: u32 = 6612; -pub const ERROR_LOG_METADATA_INVALID: u32 = 6613; -pub const ERROR_LOG_METADATA_INCONSISTENT: u32 = 6614; -pub const ERROR_LOG_RESERVATION_INVALID: u32 = 6615; -pub const ERROR_LOG_CANT_DELETE: u32 = 6616; -pub const ERROR_LOG_CONTAINER_LIMIT_EXCEEDED: u32 = 6617; -pub const ERROR_LOG_START_OF_LOG: u32 = 6618; -pub const ERROR_LOG_POLICY_ALREADY_INSTALLED: u32 = 6619; -pub const ERROR_LOG_POLICY_NOT_INSTALLED: u32 = 6620; -pub const ERROR_LOG_POLICY_INVALID: u32 = 6621; -pub const ERROR_LOG_POLICY_CONFLICT: u32 = 6622; -pub const ERROR_LOG_PINNED_ARCHIVE_TAIL: u32 = 6623; -pub const ERROR_LOG_RECORD_NONEXISTENT: u32 = 6624; -pub const ERROR_LOG_RECORDS_RESERVED_INVALID: u32 = 6625; -pub const ERROR_LOG_SPACE_RESERVED_INVALID: u32 = 6626; -pub const ERROR_LOG_TAIL_INVALID: u32 = 6627; -pub const ERROR_LOG_FULL: u32 = 6628; -pub const ERROR_COULD_NOT_RESIZE_LOG: u32 = 6629; -pub const ERROR_LOG_MULTIPLEXED: u32 = 6630; -pub const ERROR_LOG_DEDICATED: u32 = 6631; -pub const ERROR_LOG_ARCHIVE_NOT_IN_PROGRESS: u32 = 6632; -pub const ERROR_LOG_ARCHIVE_IN_PROGRESS: u32 = 6633; -pub const ERROR_LOG_EPHEMERAL: u32 = 6634; -pub const ERROR_LOG_NOT_ENOUGH_CONTAINERS: u32 = 6635; -pub const ERROR_LOG_CLIENT_ALREADY_REGISTERED: u32 = 6636; -pub const ERROR_LOG_CLIENT_NOT_REGISTERED: u32 = 6637; -pub const ERROR_LOG_FULL_HANDLER_IN_PROGRESS: u32 = 6638; -pub const ERROR_LOG_CONTAINER_READ_FAILED: u32 = 6639; -pub const ERROR_LOG_CONTAINER_WRITE_FAILED: u32 = 6640; -pub const ERROR_LOG_CONTAINER_OPEN_FAILED: u32 = 6641; -pub const ERROR_LOG_CONTAINER_STATE_INVALID: u32 = 6642; -pub const ERROR_LOG_STATE_INVALID: u32 = 6643; -pub const ERROR_LOG_PINNED: u32 = 6644; -pub const ERROR_LOG_METADATA_FLUSH_FAILED: u32 = 6645; -pub const ERROR_LOG_INCONSISTENT_SECURITY: u32 = 6646; -pub const ERROR_LOG_APPENDED_FLUSH_FAILED: u32 = 6647; -pub const ERROR_LOG_PINNED_RESERVATION: u32 = 6648; -pub const ERROR_INVALID_TRANSACTION: u32 = 6700; -pub const ERROR_TRANSACTION_NOT_ACTIVE: u32 = 6701; -pub const ERROR_TRANSACTION_REQUEST_NOT_VALID: u32 = 6702; -pub const ERROR_TRANSACTION_NOT_REQUESTED: u32 = 6703; -pub const ERROR_TRANSACTION_ALREADY_ABORTED: u32 = 6704; -pub const ERROR_TRANSACTION_ALREADY_COMMITTED: u32 = 6705; -pub const ERROR_TM_INITIALIZATION_FAILED: u32 = 6706; -pub const ERROR_RESOURCEMANAGER_READ_ONLY: u32 = 6707; -pub const ERROR_TRANSACTION_NOT_JOINED: u32 = 6708; -pub const ERROR_TRANSACTION_SUPERIOR_EXISTS: u32 = 6709; -pub const ERROR_CRM_PROTOCOL_ALREADY_EXISTS: u32 = 6710; -pub const ERROR_TRANSACTION_PROPAGATION_FAILED: u32 = 6711; -pub const ERROR_CRM_PROTOCOL_NOT_FOUND: u32 = 6712; -pub const ERROR_TRANSACTION_INVALID_MARSHALL_BUFFER: u32 = 6713; -pub const ERROR_CURRENT_TRANSACTION_NOT_VALID: u32 = 6714; -pub const ERROR_TRANSACTION_NOT_FOUND: u32 = 6715; -pub const ERROR_RESOURCEMANAGER_NOT_FOUND: u32 = 6716; -pub const ERROR_ENLISTMENT_NOT_FOUND: u32 = 6717; -pub const ERROR_TRANSACTIONMANAGER_NOT_FOUND: u32 = 6718; -pub const ERROR_TRANSACTIONMANAGER_NOT_ONLINE: u32 = 6719; -pub const ERROR_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION: u32 = 6720; -pub const ERROR_TRANSACTION_NOT_ROOT: u32 = 6721; -pub const ERROR_TRANSACTION_OBJECT_EXPIRED: u32 = 6722; -pub const ERROR_TRANSACTION_RESPONSE_NOT_ENLISTED: u32 = 6723; -pub const ERROR_TRANSACTION_RECORD_TOO_LONG: u32 = 6724; -pub const ERROR_IMPLICIT_TRANSACTION_NOT_SUPPORTED: u32 = 6725; -pub const ERROR_TRANSACTION_INTEGRITY_VIOLATED: u32 = 6726; -pub const ERROR_TRANSACTIONMANAGER_IDENTITY_MISMATCH: u32 = 6727; -pub const ERROR_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT: u32 = 6728; -pub const ERROR_TRANSACTION_MUST_WRITETHROUGH: u32 = 6729; -pub const ERROR_TRANSACTION_NO_SUPERIOR: u32 = 6730; -pub const ERROR_HEURISTIC_DAMAGE_POSSIBLE: u32 = 6731; -pub const ERROR_TRANSACTIONAL_CONFLICT: u32 = 6800; -pub const ERROR_RM_NOT_ACTIVE: u32 = 6801; -pub const ERROR_RM_METADATA_CORRUPT: u32 = 6802; -pub const ERROR_DIRECTORY_NOT_RM: u32 = 6803; -pub const ERROR_TRANSACTIONS_UNSUPPORTED_REMOTE: u32 = 6805; -pub const ERROR_LOG_RESIZE_INVALID_SIZE: u32 = 6806; -pub const ERROR_OBJECT_NO_LONGER_EXISTS: u32 = 6807; -pub const ERROR_STREAM_MINIVERSION_NOT_FOUND: u32 = 6808; -pub const ERROR_STREAM_MINIVERSION_NOT_VALID: u32 = 6809; -pub const ERROR_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION: u32 = 6810; -pub const ERROR_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT: u32 = 6811; -pub const ERROR_CANT_CREATE_MORE_STREAM_MINIVERSIONS: u32 = 6812; -pub const ERROR_REMOTE_FILE_VERSION_MISMATCH: u32 = 6814; -pub const ERROR_HANDLE_NO_LONGER_VALID: u32 = 6815; -pub const ERROR_NO_TXF_METADATA: u32 = 6816; -pub const ERROR_LOG_CORRUPTION_DETECTED: u32 = 6817; -pub const ERROR_CANT_RECOVER_WITH_HANDLE_OPEN: u32 = 6818; -pub const ERROR_RM_DISCONNECTED: u32 = 6819; -pub const ERROR_ENLISTMENT_NOT_SUPERIOR: u32 = 6820; -pub const ERROR_RECOVERY_NOT_NEEDED: u32 = 6821; -pub const ERROR_RM_ALREADY_STARTED: u32 = 6822; -pub const ERROR_FILE_IDENTITY_NOT_PERSISTENT: u32 = 6823; -pub const ERROR_CANT_BREAK_TRANSACTIONAL_DEPENDENCY: u32 = 6824; -pub const ERROR_CANT_CROSS_RM_BOUNDARY: u32 = 6825; -pub const ERROR_TXF_DIR_NOT_EMPTY: u32 = 6826; -pub const ERROR_INDOUBT_TRANSACTIONS_EXIST: u32 = 6827; -pub const ERROR_TM_VOLATILE: u32 = 6828; -pub const ERROR_ROLLBACK_TIMER_EXPIRED: u32 = 6829; -pub const ERROR_TXF_ATTRIBUTE_CORRUPT: u32 = 6830; -pub const ERROR_EFS_NOT_ALLOWED_IN_TRANSACTION: u32 = 6831; -pub const ERROR_TRANSACTIONAL_OPEN_NOT_ALLOWED: u32 = 6832; -pub const ERROR_LOG_GROWTH_FAILED: u32 = 6833; -pub const ERROR_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE: u32 = 6834; -pub const ERROR_TXF_METADATA_ALREADY_PRESENT: u32 = 6835; -pub const ERROR_TRANSACTION_SCOPE_CALLBACKS_NOT_SET: u32 = 6836; -pub const ERROR_TRANSACTION_REQUIRED_PROMOTION: u32 = 6837; -pub const ERROR_CANNOT_EXECUTE_FILE_IN_TRANSACTION: u32 = 6838; -pub const ERROR_TRANSACTIONS_NOT_FROZEN: u32 = 6839; -pub const ERROR_TRANSACTION_FREEZE_IN_PROGRESS: u32 = 6840; -pub const ERROR_NOT_SNAPSHOT_VOLUME: u32 = 6841; -pub const ERROR_NO_SAVEPOINT_WITH_OPEN_FILES: u32 = 6842; -pub const ERROR_DATA_LOST_REPAIR: u32 = 6843; -pub const ERROR_SPARSE_NOT_ALLOWED_IN_TRANSACTION: u32 = 6844; -pub const ERROR_TM_IDENTITY_MISMATCH: u32 = 6845; -pub const ERROR_FLOATED_SECTION: u32 = 6846; -pub const ERROR_CANNOT_ACCEPT_TRANSACTED_WORK: u32 = 6847; -pub const ERROR_CANNOT_ABORT_TRANSACTIONS: u32 = 6848; -pub const ERROR_BAD_CLUSTERS: u32 = 6849; -pub const ERROR_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION: u32 = 6850; -pub const ERROR_VOLUME_DIRTY: u32 = 6851; -pub const ERROR_NO_LINK_TRACKING_IN_TRANSACTION: u32 = 6852; -pub const ERROR_OPERATION_NOT_SUPPORTED_IN_TRANSACTION: u32 = 6853; -pub const ERROR_EXPIRED_HANDLE: u32 = 6854; -pub const ERROR_TRANSACTION_NOT_ENLISTED: u32 = 6855; -pub const ERROR_CTX_WINSTATION_NAME_INVALID: u32 = 7001; -pub const ERROR_CTX_INVALID_PD: u32 = 7002; -pub const ERROR_CTX_PD_NOT_FOUND: u32 = 7003; -pub const ERROR_CTX_WD_NOT_FOUND: u32 = 7004; -pub const ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY: u32 = 7005; -pub const ERROR_CTX_SERVICE_NAME_COLLISION: u32 = 7006; -pub const ERROR_CTX_CLOSE_PENDING: u32 = 7007; -pub const ERROR_CTX_NO_OUTBUF: u32 = 7008; -pub const ERROR_CTX_MODEM_INF_NOT_FOUND: u32 = 7009; -pub const ERROR_CTX_INVALID_MODEMNAME: u32 = 7010; -pub const ERROR_CTX_MODEM_RESPONSE_ERROR: u32 = 7011; -pub const ERROR_CTX_MODEM_RESPONSE_TIMEOUT: u32 = 7012; -pub const ERROR_CTX_MODEM_RESPONSE_NO_CARRIER: u32 = 7013; -pub const ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE: u32 = 7014; -pub const ERROR_CTX_MODEM_RESPONSE_BUSY: u32 = 7015; -pub const ERROR_CTX_MODEM_RESPONSE_VOICE: u32 = 7016; -pub const ERROR_CTX_TD_ERROR: u32 = 7017; -pub const ERROR_CTX_WINSTATION_NOT_FOUND: u32 = 7022; -pub const ERROR_CTX_WINSTATION_ALREADY_EXISTS: u32 = 7023; -pub const ERROR_CTX_WINSTATION_BUSY: u32 = 7024; -pub const ERROR_CTX_BAD_VIDEO_MODE: u32 = 7025; -pub const ERROR_CTX_GRAPHICS_INVALID: u32 = 7035; -pub const ERROR_CTX_LOGON_DISABLED: u32 = 7037; -pub const ERROR_CTX_NOT_CONSOLE: u32 = 7038; -pub const ERROR_CTX_CLIENT_QUERY_TIMEOUT: u32 = 7040; -pub const ERROR_CTX_CONSOLE_DISCONNECT: u32 = 7041; -pub const ERROR_CTX_CONSOLE_CONNECT: u32 = 7042; -pub const ERROR_CTX_SHADOW_DENIED: u32 = 7044; -pub const ERROR_CTX_WINSTATION_ACCESS_DENIED: u32 = 7045; -pub const ERROR_CTX_INVALID_WD: u32 = 7049; -pub const ERROR_CTX_SHADOW_INVALID: u32 = 7050; -pub const ERROR_CTX_SHADOW_DISABLED: u32 = 7051; -pub const ERROR_CTX_CLIENT_LICENSE_IN_USE: u32 = 7052; -pub const ERROR_CTX_CLIENT_LICENSE_NOT_SET: u32 = 7053; -pub const ERROR_CTX_LICENSE_NOT_AVAILABLE: u32 = 7054; -pub const ERROR_CTX_LICENSE_CLIENT_INVALID: u32 = 7055; -pub const ERROR_CTX_LICENSE_EXPIRED: u32 = 7056; -pub const ERROR_CTX_SHADOW_NOT_RUNNING: u32 = 7057; -pub const ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE: u32 = 7058; -pub const ERROR_ACTIVATION_COUNT_EXCEEDED: u32 = 7059; -pub const ERROR_CTX_WINSTATIONS_DISABLED: u32 = 7060; -pub const ERROR_CTX_ENCRYPTION_LEVEL_REQUIRED: u32 = 7061; -pub const ERROR_CTX_SESSION_IN_USE: u32 = 7062; -pub const ERROR_CTX_NO_FORCE_LOGOFF: u32 = 7063; -pub const ERROR_CTX_ACCOUNT_RESTRICTION: u32 = 7064; -pub const ERROR_RDP_PROTOCOL_ERROR: u32 = 7065; -pub const ERROR_CTX_CDM_CONNECT: u32 = 7066; -pub const ERROR_CTX_CDM_DISCONNECT: u32 = 7067; -pub const ERROR_CTX_SECURITY_LAYER_ERROR: u32 = 7068; -pub const ERROR_TS_INCOMPATIBLE_SESSIONS: u32 = 7069; -pub const ERROR_TS_VIDEO_SUBSYSTEM_ERROR: u32 = 7070; -pub const FRS_ERR_INVALID_API_SEQUENCE: u32 = 8001; -pub const FRS_ERR_STARTING_SERVICE: u32 = 8002; -pub const FRS_ERR_STOPPING_SERVICE: u32 = 8003; -pub const FRS_ERR_INTERNAL_API: u32 = 8004; -pub const FRS_ERR_INTERNAL: u32 = 8005; -pub const FRS_ERR_SERVICE_COMM: u32 = 8006; -pub const FRS_ERR_INSUFFICIENT_PRIV: u32 = 8007; -pub const FRS_ERR_AUTHENTICATION: u32 = 8008; -pub const FRS_ERR_PARENT_INSUFFICIENT_PRIV: u32 = 8009; -pub const FRS_ERR_PARENT_AUTHENTICATION: u32 = 8010; -pub const FRS_ERR_CHILD_TO_PARENT_COMM: u32 = 8011; -pub const FRS_ERR_PARENT_TO_CHILD_COMM: u32 = 8012; -pub const FRS_ERR_SYSVOL_POPULATE: u32 = 8013; -pub const FRS_ERR_SYSVOL_POPULATE_TIMEOUT: u32 = 8014; -pub const FRS_ERR_SYSVOL_IS_BUSY: u32 = 8015; -pub const FRS_ERR_SYSVOL_DEMOTE: u32 = 8016; -pub const FRS_ERR_INVALID_SERVICE_PARAMETER: u32 = 8017; -pub const DS_S_SUCCESS: u32 = 0; -pub const ERROR_DS_NOT_INSTALLED: u32 = 8200; -pub const ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY: u32 = 8201; -pub const ERROR_DS_NO_ATTRIBUTE_OR_VALUE: u32 = 8202; -pub const ERROR_DS_INVALID_ATTRIBUTE_SYNTAX: u32 = 8203; -pub const ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED: u32 = 8204; -pub const ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS: u32 = 8205; -pub const ERROR_DS_BUSY: u32 = 8206; -pub const ERROR_DS_UNAVAILABLE: u32 = 8207; -pub const ERROR_DS_NO_RIDS_ALLOCATED: u32 = 8208; -pub const ERROR_DS_NO_MORE_RIDS: u32 = 8209; -pub const ERROR_DS_INCORRECT_ROLE_OWNER: u32 = 8210; -pub const ERROR_DS_RIDMGR_INIT_ERROR: u32 = 8211; -pub const ERROR_DS_OBJ_CLASS_VIOLATION: u32 = 8212; -pub const ERROR_DS_CANT_ON_NON_LEAF: u32 = 8213; -pub const ERROR_DS_CANT_ON_RDN: u32 = 8214; -pub const ERROR_DS_CANT_MOD_OBJ_CLASS: u32 = 8215; -pub const ERROR_DS_CROSS_DOM_MOVE_ERROR: u32 = 8216; -pub const ERROR_DS_GC_NOT_AVAILABLE: u32 = 8217; -pub const ERROR_SHARED_POLICY: u32 = 8218; -pub const ERROR_POLICY_OBJECT_NOT_FOUND: u32 = 8219; -pub const ERROR_POLICY_ONLY_IN_DS: u32 = 8220; -pub const ERROR_PROMOTION_ACTIVE: u32 = 8221; -pub const ERROR_NO_PROMOTION_ACTIVE: u32 = 8222; -pub const ERROR_DS_OPERATIONS_ERROR: u32 = 8224; -pub const ERROR_DS_PROTOCOL_ERROR: u32 = 8225; -pub const ERROR_DS_TIMELIMIT_EXCEEDED: u32 = 8226; -pub const ERROR_DS_SIZELIMIT_EXCEEDED: u32 = 8227; -pub const ERROR_DS_ADMIN_LIMIT_EXCEEDED: u32 = 8228; -pub const ERROR_DS_COMPARE_FALSE: u32 = 8229; -pub const ERROR_DS_COMPARE_TRUE: u32 = 8230; -pub const ERROR_DS_AUTH_METHOD_NOT_SUPPORTED: u32 = 8231; -pub const ERROR_DS_STRONG_AUTH_REQUIRED: u32 = 8232; -pub const ERROR_DS_INAPPROPRIATE_AUTH: u32 = 8233; -pub const ERROR_DS_AUTH_UNKNOWN: u32 = 8234; -pub const ERROR_DS_REFERRAL: u32 = 8235; -pub const ERROR_DS_UNAVAILABLE_CRIT_EXTENSION: u32 = 8236; -pub const ERROR_DS_CONFIDENTIALITY_REQUIRED: u32 = 8237; -pub const ERROR_DS_INAPPROPRIATE_MATCHING: u32 = 8238; -pub const ERROR_DS_CONSTRAINT_VIOLATION: u32 = 8239; -pub const ERROR_DS_NO_SUCH_OBJECT: u32 = 8240; -pub const ERROR_DS_ALIAS_PROBLEM: u32 = 8241; -pub const ERROR_DS_INVALID_DN_SYNTAX: u32 = 8242; -pub const ERROR_DS_IS_LEAF: u32 = 8243; -pub const ERROR_DS_ALIAS_DEREF_PROBLEM: u32 = 8244; -pub const ERROR_DS_UNWILLING_TO_PERFORM: u32 = 8245; -pub const ERROR_DS_LOOP_DETECT: u32 = 8246; -pub const ERROR_DS_NAMING_VIOLATION: u32 = 8247; -pub const ERROR_DS_OBJECT_RESULTS_TOO_LARGE: u32 = 8248; -pub const ERROR_DS_AFFECTS_MULTIPLE_DSAS: u32 = 8249; -pub const ERROR_DS_SERVER_DOWN: u32 = 8250; -pub const ERROR_DS_LOCAL_ERROR: u32 = 8251; -pub const ERROR_DS_ENCODING_ERROR: u32 = 8252; -pub const ERROR_DS_DECODING_ERROR: u32 = 8253; -pub const ERROR_DS_FILTER_UNKNOWN: u32 = 8254; -pub const ERROR_DS_PARAM_ERROR: u32 = 8255; -pub const ERROR_DS_NOT_SUPPORTED: u32 = 8256; -pub const ERROR_DS_NO_RESULTS_RETURNED: u32 = 8257; -pub const ERROR_DS_CONTROL_NOT_FOUND: u32 = 8258; -pub const ERROR_DS_CLIENT_LOOP: u32 = 8259; -pub const ERROR_DS_REFERRAL_LIMIT_EXCEEDED: u32 = 8260; -pub const ERROR_DS_SORT_CONTROL_MISSING: u32 = 8261; -pub const ERROR_DS_OFFSET_RANGE_ERROR: u32 = 8262; -pub const ERROR_DS_RIDMGR_DISABLED: u32 = 8263; -pub const ERROR_DS_ROOT_MUST_BE_NC: u32 = 8301; -pub const ERROR_DS_ADD_REPLICA_INHIBITED: u32 = 8302; -pub const ERROR_DS_ATT_NOT_DEF_IN_SCHEMA: u32 = 8303; -pub const ERROR_DS_MAX_OBJ_SIZE_EXCEEDED: u32 = 8304; -pub const ERROR_DS_OBJ_STRING_NAME_EXISTS: u32 = 8305; -pub const ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA: u32 = 8306; -pub const ERROR_DS_RDN_DOESNT_MATCH_SCHEMA: u32 = 8307; -pub const ERROR_DS_NO_REQUESTED_ATTS_FOUND: u32 = 8308; -pub const ERROR_DS_USER_BUFFER_TO_SMALL: u32 = 8309; -pub const ERROR_DS_ATT_IS_NOT_ON_OBJ: u32 = 8310; -pub const ERROR_DS_ILLEGAL_MOD_OPERATION: u32 = 8311; -pub const ERROR_DS_OBJ_TOO_LARGE: u32 = 8312; -pub const ERROR_DS_BAD_INSTANCE_TYPE: u32 = 8313; -pub const ERROR_DS_MASTERDSA_REQUIRED: u32 = 8314; -pub const ERROR_DS_OBJECT_CLASS_REQUIRED: u32 = 8315; -pub const ERROR_DS_MISSING_REQUIRED_ATT: u32 = 8316; -pub const ERROR_DS_ATT_NOT_DEF_FOR_CLASS: u32 = 8317; -pub const ERROR_DS_ATT_ALREADY_EXISTS: u32 = 8318; -pub const ERROR_DS_CANT_ADD_ATT_VALUES: u32 = 8320; -pub const ERROR_DS_SINGLE_VALUE_CONSTRAINT: u32 = 8321; -pub const ERROR_DS_RANGE_CONSTRAINT: u32 = 8322; -pub const ERROR_DS_ATT_VAL_ALREADY_EXISTS: u32 = 8323; -pub const ERROR_DS_CANT_REM_MISSING_ATT: u32 = 8324; -pub const ERROR_DS_CANT_REM_MISSING_ATT_VAL: u32 = 8325; -pub const ERROR_DS_ROOT_CANT_BE_SUBREF: u32 = 8326; -pub const ERROR_DS_NO_CHAINING: u32 = 8327; -pub const ERROR_DS_NO_CHAINED_EVAL: u32 = 8328; -pub const ERROR_DS_NO_PARENT_OBJECT: u32 = 8329; -pub const ERROR_DS_PARENT_IS_AN_ALIAS: u32 = 8330; -pub const ERROR_DS_CANT_MIX_MASTER_AND_REPS: u32 = 8331; -pub const ERROR_DS_CHILDREN_EXIST: u32 = 8332; -pub const ERROR_DS_OBJ_NOT_FOUND: u32 = 8333; -pub const ERROR_DS_ALIASED_OBJ_MISSING: u32 = 8334; -pub const ERROR_DS_BAD_NAME_SYNTAX: u32 = 8335; -pub const ERROR_DS_ALIAS_POINTS_TO_ALIAS: u32 = 8336; -pub const ERROR_DS_CANT_DEREF_ALIAS: u32 = 8337; -pub const ERROR_DS_OUT_OF_SCOPE: u32 = 8338; -pub const ERROR_DS_OBJECT_BEING_REMOVED: u32 = 8339; -pub const ERROR_DS_CANT_DELETE_DSA_OBJ: u32 = 8340; -pub const ERROR_DS_GENERIC_ERROR: u32 = 8341; -pub const ERROR_DS_DSA_MUST_BE_INT_MASTER: u32 = 8342; -pub const ERROR_DS_CLASS_NOT_DSA: u32 = 8343; -pub const ERROR_DS_INSUFF_ACCESS_RIGHTS: u32 = 8344; -pub const ERROR_DS_ILLEGAL_SUPERIOR: u32 = 8345; -pub const ERROR_DS_ATTRIBUTE_OWNED_BY_SAM: u32 = 8346; -pub const ERROR_DS_NAME_TOO_MANY_PARTS: u32 = 8347; -pub const ERROR_DS_NAME_TOO_LONG: u32 = 8348; -pub const ERROR_DS_NAME_VALUE_TOO_LONG: u32 = 8349; -pub const ERROR_DS_NAME_UNPARSEABLE: u32 = 8350; -pub const ERROR_DS_NAME_TYPE_UNKNOWN: u32 = 8351; -pub const ERROR_DS_NOT_AN_OBJECT: u32 = 8352; -pub const ERROR_DS_SEC_DESC_TOO_SHORT: u32 = 8353; -pub const ERROR_DS_SEC_DESC_INVALID: u32 = 8354; -pub const ERROR_DS_NO_DELETED_NAME: u32 = 8355; -pub const ERROR_DS_SUBREF_MUST_HAVE_PARENT: u32 = 8356; -pub const ERROR_DS_NCNAME_MUST_BE_NC: u32 = 8357; -pub const ERROR_DS_CANT_ADD_SYSTEM_ONLY: u32 = 8358; -pub const ERROR_DS_CLASS_MUST_BE_CONCRETE: u32 = 8359; -pub const ERROR_DS_INVALID_DMD: u32 = 8360; -pub const ERROR_DS_OBJ_GUID_EXISTS: u32 = 8361; -pub const ERROR_DS_NOT_ON_BACKLINK: u32 = 8362; -pub const ERROR_DS_NO_CROSSREF_FOR_NC: u32 = 8363; -pub const ERROR_DS_SHUTTING_DOWN: u32 = 8364; -pub const ERROR_DS_UNKNOWN_OPERATION: u32 = 8365; -pub const ERROR_DS_INVALID_ROLE_OWNER: u32 = 8366; -pub const ERROR_DS_COULDNT_CONTACT_FSMO: u32 = 8367; -pub const ERROR_DS_CROSS_NC_DN_RENAME: u32 = 8368; -pub const ERROR_DS_CANT_MOD_SYSTEM_ONLY: u32 = 8369; -pub const ERROR_DS_REPLICATOR_ONLY: u32 = 8370; -pub const ERROR_DS_OBJ_CLASS_NOT_DEFINED: u32 = 8371; -pub const ERROR_DS_OBJ_CLASS_NOT_SUBCLASS: u32 = 8372; -pub const ERROR_DS_NAME_REFERENCE_INVALID: u32 = 8373; -pub const ERROR_DS_CROSS_REF_EXISTS: u32 = 8374; -pub const ERROR_DS_CANT_DEL_MASTER_CROSSREF: u32 = 8375; -pub const ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD: u32 = 8376; -pub const ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX: u32 = 8377; -pub const ERROR_DS_DUP_RDN: u32 = 8378; -pub const ERROR_DS_DUP_OID: u32 = 8379; -pub const ERROR_DS_DUP_MAPI_ID: u32 = 8380; -pub const ERROR_DS_DUP_SCHEMA_ID_GUID: u32 = 8381; -pub const ERROR_DS_DUP_LDAP_DISPLAY_NAME: u32 = 8382; -pub const ERROR_DS_SEMANTIC_ATT_TEST: u32 = 8383; -pub const ERROR_DS_SYNTAX_MISMATCH: u32 = 8384; -pub const ERROR_DS_EXISTS_IN_MUST_HAVE: u32 = 8385; -pub const ERROR_DS_EXISTS_IN_MAY_HAVE: u32 = 8386; -pub const ERROR_DS_NONEXISTENT_MAY_HAVE: u32 = 8387; -pub const ERROR_DS_NONEXISTENT_MUST_HAVE: u32 = 8388; -pub const ERROR_DS_AUX_CLS_TEST_FAIL: u32 = 8389; -pub const ERROR_DS_NONEXISTENT_POSS_SUP: u32 = 8390; -pub const ERROR_DS_SUB_CLS_TEST_FAIL: u32 = 8391; -pub const ERROR_DS_BAD_RDN_ATT_ID_SYNTAX: u32 = 8392; -pub const ERROR_DS_EXISTS_IN_AUX_CLS: u32 = 8393; -pub const ERROR_DS_EXISTS_IN_SUB_CLS: u32 = 8394; -pub const ERROR_DS_EXISTS_IN_POSS_SUP: u32 = 8395; -pub const ERROR_DS_RECALCSCHEMA_FAILED: u32 = 8396; -pub const ERROR_DS_TREE_DELETE_NOT_FINISHED: u32 = 8397; -pub const ERROR_DS_CANT_DELETE: u32 = 8398; -pub const ERROR_DS_ATT_SCHEMA_REQ_ID: u32 = 8399; -pub const ERROR_DS_BAD_ATT_SCHEMA_SYNTAX: u32 = 8400; -pub const ERROR_DS_CANT_CACHE_ATT: u32 = 8401; -pub const ERROR_DS_CANT_CACHE_CLASS: u32 = 8402; -pub const ERROR_DS_CANT_REMOVE_ATT_CACHE: u32 = 8403; -pub const ERROR_DS_CANT_REMOVE_CLASS_CACHE: u32 = 8404; -pub const ERROR_DS_CANT_RETRIEVE_DN: u32 = 8405; -pub const ERROR_DS_MISSING_SUPREF: u32 = 8406; -pub const ERROR_DS_CANT_RETRIEVE_INSTANCE: u32 = 8407; -pub const ERROR_DS_CODE_INCONSISTENCY: u32 = 8408; -pub const ERROR_DS_DATABASE_ERROR: u32 = 8409; -pub const ERROR_DS_GOVERNSID_MISSING: u32 = 8410; -pub const ERROR_DS_MISSING_EXPECTED_ATT: u32 = 8411; -pub const ERROR_DS_NCNAME_MISSING_CR_REF: u32 = 8412; -pub const ERROR_DS_SECURITY_CHECKING_ERROR: u32 = 8413; -pub const ERROR_DS_SCHEMA_NOT_LOADED: u32 = 8414; -pub const ERROR_DS_SCHEMA_ALLOC_FAILED: u32 = 8415; -pub const ERROR_DS_ATT_SCHEMA_REQ_SYNTAX: u32 = 8416; -pub const ERROR_DS_GCVERIFY_ERROR: u32 = 8417; -pub const ERROR_DS_DRA_SCHEMA_MISMATCH: u32 = 8418; -pub const ERROR_DS_CANT_FIND_DSA_OBJ: u32 = 8419; -pub const ERROR_DS_CANT_FIND_EXPECTED_NC: u32 = 8420; -pub const ERROR_DS_CANT_FIND_NC_IN_CACHE: u32 = 8421; -pub const ERROR_DS_CANT_RETRIEVE_CHILD: u32 = 8422; -pub const ERROR_DS_SECURITY_ILLEGAL_MODIFY: u32 = 8423; -pub const ERROR_DS_CANT_REPLACE_HIDDEN_REC: u32 = 8424; -pub const ERROR_DS_BAD_HIERARCHY_FILE: u32 = 8425; -pub const ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED: u32 = 8426; -pub const ERROR_DS_CONFIG_PARAM_MISSING: u32 = 8427; -pub const ERROR_DS_COUNTING_AB_INDICES_FAILED: u32 = 8428; -pub const ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED: u32 = 8429; -pub const ERROR_DS_INTERNAL_FAILURE: u32 = 8430; -pub const ERROR_DS_UNKNOWN_ERROR: u32 = 8431; -pub const ERROR_DS_ROOT_REQUIRES_CLASS_TOP: u32 = 8432; -pub const ERROR_DS_REFUSING_FSMO_ROLES: u32 = 8433; -pub const ERROR_DS_MISSING_FSMO_SETTINGS: u32 = 8434; -pub const ERROR_DS_UNABLE_TO_SURRENDER_ROLES: u32 = 8435; -pub const ERROR_DS_DRA_GENERIC: u32 = 8436; -pub const ERROR_DS_DRA_INVALID_PARAMETER: u32 = 8437; -pub const ERROR_DS_DRA_BUSY: u32 = 8438; -pub const ERROR_DS_DRA_BAD_DN: u32 = 8439; -pub const ERROR_DS_DRA_BAD_NC: u32 = 8440; -pub const ERROR_DS_DRA_DN_EXISTS: u32 = 8441; -pub const ERROR_DS_DRA_INTERNAL_ERROR: u32 = 8442; -pub const ERROR_DS_DRA_INCONSISTENT_DIT: u32 = 8443; -pub const ERROR_DS_DRA_CONNECTION_FAILED: u32 = 8444; -pub const ERROR_DS_DRA_BAD_INSTANCE_TYPE: u32 = 8445; -pub const ERROR_DS_DRA_OUT_OF_MEM: u32 = 8446; -pub const ERROR_DS_DRA_MAIL_PROBLEM: u32 = 8447; -pub const ERROR_DS_DRA_REF_ALREADY_EXISTS: u32 = 8448; -pub const ERROR_DS_DRA_REF_NOT_FOUND: u32 = 8449; -pub const ERROR_DS_DRA_OBJ_IS_REP_SOURCE: u32 = 8450; -pub const ERROR_DS_DRA_DB_ERROR: u32 = 8451; -pub const ERROR_DS_DRA_NO_REPLICA: u32 = 8452; -pub const ERROR_DS_DRA_ACCESS_DENIED: u32 = 8453; -pub const ERROR_DS_DRA_NOT_SUPPORTED: u32 = 8454; -pub const ERROR_DS_DRA_RPC_CANCELLED: u32 = 8455; -pub const ERROR_DS_DRA_SOURCE_DISABLED: u32 = 8456; -pub const ERROR_DS_DRA_SINK_DISABLED: u32 = 8457; -pub const ERROR_DS_DRA_NAME_COLLISION: u32 = 8458; -pub const ERROR_DS_DRA_SOURCE_REINSTALLED: u32 = 8459; -pub const ERROR_DS_DRA_MISSING_PARENT: u32 = 8460; -pub const ERROR_DS_DRA_PREEMPTED: u32 = 8461; -pub const ERROR_DS_DRA_ABANDON_SYNC: u32 = 8462; -pub const ERROR_DS_DRA_SHUTDOWN: u32 = 8463; -pub const ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET: u32 = 8464; -pub const ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA: u32 = 8465; -pub const ERROR_DS_DRA_EXTN_CONNECTION_FAILED: u32 = 8466; -pub const ERROR_DS_INSTALL_SCHEMA_MISMATCH: u32 = 8467; -pub const ERROR_DS_DUP_LINK_ID: u32 = 8468; -pub const ERROR_DS_NAME_ERROR_RESOLVING: u32 = 8469; -pub const ERROR_DS_NAME_ERROR_NOT_FOUND: u32 = 8470; -pub const ERROR_DS_NAME_ERROR_NOT_UNIQUE: u32 = 8471; -pub const ERROR_DS_NAME_ERROR_NO_MAPPING: u32 = 8472; -pub const ERROR_DS_NAME_ERROR_DOMAIN_ONLY: u32 = 8473; -pub const ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING: u32 = 8474; -pub const ERROR_DS_CONSTRUCTED_ATT_MOD: u32 = 8475; -pub const ERROR_DS_WRONG_OM_OBJ_CLASS: u32 = 8476; -pub const ERROR_DS_DRA_REPL_PENDING: u32 = 8477; -pub const ERROR_DS_DS_REQUIRED: u32 = 8478; -pub const ERROR_DS_INVALID_LDAP_DISPLAY_NAME: u32 = 8479; -pub const ERROR_DS_NON_BASE_SEARCH: u32 = 8480; -pub const ERROR_DS_CANT_RETRIEVE_ATTS: u32 = 8481; -pub const ERROR_DS_BACKLINK_WITHOUT_LINK: u32 = 8482; -pub const ERROR_DS_EPOCH_MISMATCH: u32 = 8483; -pub const ERROR_DS_SRC_NAME_MISMATCH: u32 = 8484; -pub const ERROR_DS_SRC_AND_DST_NC_IDENTICAL: u32 = 8485; -pub const ERROR_DS_DST_NC_MISMATCH: u32 = 8486; -pub const ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC: u32 = 8487; -pub const ERROR_DS_SRC_GUID_MISMATCH: u32 = 8488; -pub const ERROR_DS_CANT_MOVE_DELETED_OBJECT: u32 = 8489; -pub const ERROR_DS_PDC_OPERATION_IN_PROGRESS: u32 = 8490; -pub const ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD: u32 = 8491; -pub const ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION: u32 = 8492; -pub const ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS: u32 = 8493; -pub const ERROR_DS_NC_MUST_HAVE_NC_PARENT: u32 = 8494; -pub const ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE: u32 = 8495; -pub const ERROR_DS_DST_DOMAIN_NOT_NATIVE: u32 = 8496; -pub const ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER: u32 = 8497; -pub const ERROR_DS_CANT_MOVE_ACCOUNT_GROUP: u32 = 8498; -pub const ERROR_DS_CANT_MOVE_RESOURCE_GROUP: u32 = 8499; -pub const ERROR_DS_INVALID_SEARCH_FLAG: u32 = 8500; -pub const ERROR_DS_NO_TREE_DELETE_ABOVE_NC: u32 = 8501; -pub const ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE: u32 = 8502; -pub const ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE: u32 = 8503; -pub const ERROR_DS_SAM_INIT_FAILURE: u32 = 8504; -pub const ERROR_DS_SENSITIVE_GROUP_VIOLATION: u32 = 8505; -pub const ERROR_DS_CANT_MOD_PRIMARYGROUPID: u32 = 8506; -pub const ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD: u32 = 8507; -pub const ERROR_DS_NONSAFE_SCHEMA_CHANGE: u32 = 8508; -pub const ERROR_DS_SCHEMA_UPDATE_DISALLOWED: u32 = 8509; -pub const ERROR_DS_CANT_CREATE_UNDER_SCHEMA: u32 = 8510; -pub const ERROR_DS_INSTALL_NO_SRC_SCH_VERSION: u32 = 8511; -pub const ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE: u32 = 8512; -pub const ERROR_DS_INVALID_GROUP_TYPE: u32 = 8513; -pub const ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN: u32 = 8514; -pub const ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN: u32 = 8515; -pub const ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER: u32 = 8516; -pub const ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER: u32 = 8517; -pub const ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER: u32 = 8518; -pub const ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER: u32 = 8519; -pub const ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER: u32 = 8520; -pub const ERROR_DS_HAVE_PRIMARY_MEMBERS: u32 = 8521; -pub const ERROR_DS_STRING_SD_CONVERSION_FAILED: u32 = 8522; -pub const ERROR_DS_NAMING_MASTER_GC: u32 = 8523; -pub const ERROR_DS_DNS_LOOKUP_FAILURE: u32 = 8524; -pub const ERROR_DS_COULDNT_UPDATE_SPNS: u32 = 8525; -pub const ERROR_DS_CANT_RETRIEVE_SD: u32 = 8526; -pub const ERROR_DS_KEY_NOT_UNIQUE: u32 = 8527; -pub const ERROR_DS_WRONG_LINKED_ATT_SYNTAX: u32 = 8528; -pub const ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD: u32 = 8529; -pub const ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY: u32 = 8530; -pub const ERROR_DS_CANT_START: u32 = 8531; -pub const ERROR_DS_INIT_FAILURE: u32 = 8532; -pub const ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION: u32 = 8533; -pub const ERROR_DS_SOURCE_DOMAIN_IN_FOREST: u32 = 8534; -pub const ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST: u32 = 8535; -pub const ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED: u32 = 8536; -pub const ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN: u32 = 8537; -pub const ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER: u32 = 8538; -pub const ERROR_DS_SRC_SID_EXISTS_IN_FOREST: u32 = 8539; -pub const ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH: u32 = 8540; -pub const ERROR_SAM_INIT_FAILURE: u32 = 8541; -pub const ERROR_DS_DRA_SCHEMA_INFO_SHIP: u32 = 8542; -pub const ERROR_DS_DRA_SCHEMA_CONFLICT: u32 = 8543; -pub const ERROR_DS_DRA_EARLIER_SCHEMA_CONFLICT: u32 = 8544; -pub const ERROR_DS_DRA_OBJ_NC_MISMATCH: u32 = 8545; -pub const ERROR_DS_NC_STILL_HAS_DSAS: u32 = 8546; -pub const ERROR_DS_GC_REQUIRED: u32 = 8547; -pub const ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY: u32 = 8548; -pub const ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS: u32 = 8549; -pub const ERROR_DS_CANT_ADD_TO_GC: u32 = 8550; -pub const ERROR_DS_NO_CHECKPOINT_WITH_PDC: u32 = 8551; -pub const ERROR_DS_SOURCE_AUDITING_NOT_ENABLED: u32 = 8552; -pub const ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC: u32 = 8553; -pub const ERROR_DS_INVALID_NAME_FOR_SPN: u32 = 8554; -pub const ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS: u32 = 8555; -pub const ERROR_DS_UNICODEPWD_NOT_IN_QUOTES: u32 = 8556; -pub const ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED: u32 = 8557; -pub const ERROR_DS_MUST_BE_RUN_ON_DST_DC: u32 = 8558; -pub const ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER: u32 = 8559; -pub const ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ: u32 = 8560; -pub const ERROR_DS_INIT_FAILURE_CONSOLE: u32 = 8561; -pub const ERROR_DS_SAM_INIT_FAILURE_CONSOLE: u32 = 8562; -pub const ERROR_DS_FOREST_VERSION_TOO_HIGH: u32 = 8563; -pub const ERROR_DS_DOMAIN_VERSION_TOO_HIGH: u32 = 8564; -pub const ERROR_DS_FOREST_VERSION_TOO_LOW: u32 = 8565; -pub const ERROR_DS_DOMAIN_VERSION_TOO_LOW: u32 = 8566; -pub const ERROR_DS_INCOMPATIBLE_VERSION: u32 = 8567; -pub const ERROR_DS_LOW_DSA_VERSION: u32 = 8568; -pub const ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN: u32 = 8569; -pub const ERROR_DS_NOT_SUPPORTED_SORT_ORDER: u32 = 8570; -pub const ERROR_DS_NAME_NOT_UNIQUE: u32 = 8571; -pub const ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4: u32 = 8572; -pub const ERROR_DS_OUT_OF_VERSION_STORE: u32 = 8573; -pub const ERROR_DS_INCOMPATIBLE_CONTROLS_USED: u32 = 8574; -pub const ERROR_DS_NO_REF_DOMAIN: u32 = 8575; -pub const ERROR_DS_RESERVED_LINK_ID: u32 = 8576; -pub const ERROR_DS_LINK_ID_NOT_AVAILABLE: u32 = 8577; -pub const ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER: u32 = 8578; -pub const ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE: u32 = 8579; -pub const ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC: u32 = 8580; -pub const ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG: u32 = 8581; -pub const ERROR_DS_MODIFYDN_WRONG_GRANDPARENT: u32 = 8582; -pub const ERROR_DS_NAME_ERROR_TRUST_REFERRAL: u32 = 8583; -pub const ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER: u32 = 8584; -pub const ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD: u32 = 8585; -pub const ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2: u32 = 8586; -pub const ERROR_DS_THREAD_LIMIT_EXCEEDED: u32 = 8587; -pub const ERROR_DS_NOT_CLOSEST: u32 = 8588; -pub const ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF: u32 = 8589; -pub const ERROR_DS_SINGLE_USER_MODE_FAILED: u32 = 8590; -pub const ERROR_DS_NTDSCRIPT_SYNTAX_ERROR: u32 = 8591; -pub const ERROR_DS_NTDSCRIPT_PROCESS_ERROR: u32 = 8592; -pub const ERROR_DS_DIFFERENT_REPL_EPOCHS: u32 = 8593; -pub const ERROR_DS_DRS_EXTENSIONS_CHANGED: u32 = 8594; -pub const ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR: u32 = 8595; -pub const ERROR_DS_NO_MSDS_INTID: u32 = 8596; -pub const ERROR_DS_DUP_MSDS_INTID: u32 = 8597; -pub const ERROR_DS_EXISTS_IN_RDNATTID: u32 = 8598; -pub const ERROR_DS_AUTHORIZATION_FAILED: u32 = 8599; -pub const ERROR_DS_INVALID_SCRIPT: u32 = 8600; -pub const ERROR_DS_REMOTE_CROSSREF_OP_FAILED: u32 = 8601; -pub const ERROR_DS_CROSS_REF_BUSY: u32 = 8602; -pub const ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN: u32 = 8603; -pub const ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC: u32 = 8604; -pub const ERROR_DS_DUPLICATE_ID_FOUND: u32 = 8605; -pub const ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT: u32 = 8606; -pub const ERROR_DS_GROUP_CONVERSION_ERROR: u32 = 8607; -pub const ERROR_DS_CANT_MOVE_APP_BASIC_GROUP: u32 = 8608; -pub const ERROR_DS_CANT_MOVE_APP_QUERY_GROUP: u32 = 8609; -pub const ERROR_DS_ROLE_NOT_VERIFIED: u32 = 8610; -pub const ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL: u32 = 8611; -pub const ERROR_DS_DOMAIN_RENAME_IN_PROGRESS: u32 = 8612; -pub const ERROR_DS_EXISTING_AD_CHILD_NC: u32 = 8613; -pub const ERROR_DS_REPL_LIFETIME_EXCEEDED: u32 = 8614; -pub const ERROR_DS_DISALLOWED_IN_SYSTEM_CONTAINER: u32 = 8615; -pub const ERROR_DS_LDAP_SEND_QUEUE_FULL: u32 = 8616; -pub const ERROR_DS_DRA_OUT_SCHEDULE_WINDOW: u32 = 8617; -pub const ERROR_DS_POLICY_NOT_KNOWN: u32 = 8618; -pub const ERROR_NO_SITE_SETTINGS_OBJECT: u32 = 8619; -pub const ERROR_NO_SECRETS: u32 = 8620; -pub const ERROR_NO_WRITABLE_DC_FOUND: u32 = 8621; -pub const ERROR_DS_NO_SERVER_OBJECT: u32 = 8622; -pub const ERROR_DS_NO_NTDSA_OBJECT: u32 = 8623; -pub const ERROR_DS_NON_ASQ_SEARCH: u32 = 8624; -pub const ERROR_DS_AUDIT_FAILURE: u32 = 8625; -pub const ERROR_DS_INVALID_SEARCH_FLAG_SUBTREE: u32 = 8626; -pub const ERROR_DS_INVALID_SEARCH_FLAG_TUPLE: u32 = 8627; -pub const ERROR_DS_HIERARCHY_TABLE_TOO_DEEP: u32 = 8628; -pub const ERROR_DS_DRA_CORRUPT_UTD_VECTOR: u32 = 8629; -pub const ERROR_DS_DRA_SECRETS_DENIED: u32 = 8630; -pub const ERROR_DS_RESERVED_MAPI_ID: u32 = 8631; -pub const ERROR_DS_MAPI_ID_NOT_AVAILABLE: u32 = 8632; -pub const ERROR_DS_DRA_MISSING_KRBTGT_SECRET: u32 = 8633; -pub const ERROR_DS_DOMAIN_NAME_EXISTS_IN_FOREST: u32 = 8634; -pub const ERROR_DS_FLAT_NAME_EXISTS_IN_FOREST: u32 = 8635; -pub const ERROR_INVALID_USER_PRINCIPAL_NAME: u32 = 8636; -pub const ERROR_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS: u32 = 8637; -pub const ERROR_DS_OID_NOT_FOUND: u32 = 8638; -pub const ERROR_DS_DRA_RECYCLED_TARGET: u32 = 8639; -pub const ERROR_DS_DISALLOWED_NC_REDIRECT: u32 = 8640; -pub const ERROR_DS_HIGH_ADLDS_FFL: u32 = 8641; -pub const ERROR_DS_HIGH_DSA_VERSION: u32 = 8642; -pub const ERROR_DS_LOW_ADLDS_FFL: u32 = 8643; -pub const ERROR_DOMAIN_SID_SAME_AS_LOCAL_WORKSTATION: u32 = 8644; -pub const ERROR_DS_UNDELETE_SAM_VALIDATION_FAILED: u32 = 8645; -pub const ERROR_INCORRECT_ACCOUNT_TYPE: u32 = 8646; -pub const ERROR_DS_SPN_VALUE_NOT_UNIQUE_IN_FOREST: u32 = 8647; -pub const ERROR_DS_UPN_VALUE_NOT_UNIQUE_IN_FOREST: u32 = 8648; -pub const ERROR_DS_MISSING_FOREST_TRUST: u32 = 8649; -pub const ERROR_DS_VALUE_KEY_NOT_UNIQUE: u32 = 8650; -pub const ERROR_WEAK_WHFBKEY_BLOCKED: u32 = 8651; -pub const ERROR_DS_PER_ATTRIBUTE_AUTHZ_FAILED_DURING_ADD: u32 = 8652; -pub const ERROR_LOCAL_POLICY_MODIFICATION_NOT_SUPPORTED: u32 = 8653; -pub const ERROR_POLICY_CONTROLLED_ACCOUNT: u32 = 8654; -pub const ERROR_LAPS_LEGACY_SCHEMA_MISSING: u32 = 8655; -pub const ERROR_LAPS_SCHEMA_MISSING: u32 = 8656; -pub const ERROR_LAPS_ENCRYPTION_REQUIRES_2016_DFL: u32 = 8657; -pub const DNS_ERROR_RESPONSE_CODES_BASE: u32 = 9000; -pub const DNS_ERROR_RCODE_NO_ERROR: u32 = 0; -pub const DNS_ERROR_MASK: u32 = 9000; -pub const DNS_ERROR_RCODE_FORMAT_ERROR: u32 = 9001; -pub const DNS_ERROR_RCODE_SERVER_FAILURE: u32 = 9002; -pub const DNS_ERROR_RCODE_NAME_ERROR: u32 = 9003; -pub const DNS_ERROR_RCODE_NOT_IMPLEMENTED: u32 = 9004; -pub const DNS_ERROR_RCODE_REFUSED: u32 = 9005; -pub const DNS_ERROR_RCODE_YXDOMAIN: u32 = 9006; -pub const DNS_ERROR_RCODE_YXRRSET: u32 = 9007; -pub const DNS_ERROR_RCODE_NXRRSET: u32 = 9008; -pub const DNS_ERROR_RCODE_NOTAUTH: u32 = 9009; -pub const DNS_ERROR_RCODE_NOTZONE: u32 = 9010; -pub const DNS_ERROR_RCODE_BADSIG: u32 = 9016; -pub const DNS_ERROR_RCODE_BADKEY: u32 = 9017; -pub const DNS_ERROR_RCODE_BADTIME: u32 = 9018; -pub const DNS_ERROR_RCODE_LAST: u32 = 9018; -pub const DNS_ERROR_DNSSEC_BASE: u32 = 9100; -pub const DNS_ERROR_KEYMASTER_REQUIRED: u32 = 9101; -pub const DNS_ERROR_NOT_ALLOWED_ON_SIGNED_ZONE: u32 = 9102; -pub const DNS_ERROR_NSEC3_INCOMPATIBLE_WITH_RSA_SHA1: u32 = 9103; -pub const DNS_ERROR_NOT_ENOUGH_SIGNING_KEY_DESCRIPTORS: u32 = 9104; -pub const DNS_ERROR_UNSUPPORTED_ALGORITHM: u32 = 9105; -pub const DNS_ERROR_INVALID_KEY_SIZE: u32 = 9106; -pub const DNS_ERROR_SIGNING_KEY_NOT_ACCESSIBLE: u32 = 9107; -pub const DNS_ERROR_KSP_DOES_NOT_SUPPORT_PROTECTION: u32 = 9108; -pub const DNS_ERROR_UNEXPECTED_DATA_PROTECTION_ERROR: u32 = 9109; -pub const DNS_ERROR_UNEXPECTED_CNG_ERROR: u32 = 9110; -pub const DNS_ERROR_UNKNOWN_SIGNING_PARAMETER_VERSION: u32 = 9111; -pub const DNS_ERROR_KSP_NOT_ACCESSIBLE: u32 = 9112; -pub const DNS_ERROR_TOO_MANY_SKDS: u32 = 9113; -pub const DNS_ERROR_INVALID_ROLLOVER_PERIOD: u32 = 9114; -pub const DNS_ERROR_INVALID_INITIAL_ROLLOVER_OFFSET: u32 = 9115; -pub const DNS_ERROR_ROLLOVER_IN_PROGRESS: u32 = 9116; -pub const DNS_ERROR_STANDBY_KEY_NOT_PRESENT: u32 = 9117; -pub const DNS_ERROR_NOT_ALLOWED_ON_ZSK: u32 = 9118; -pub const DNS_ERROR_NOT_ALLOWED_ON_ACTIVE_SKD: u32 = 9119; -pub const DNS_ERROR_ROLLOVER_ALREADY_QUEUED: u32 = 9120; -pub const DNS_ERROR_NOT_ALLOWED_ON_UNSIGNED_ZONE: u32 = 9121; -pub const DNS_ERROR_BAD_KEYMASTER: u32 = 9122; -pub const DNS_ERROR_INVALID_SIGNATURE_VALIDITY_PERIOD: u32 = 9123; -pub const DNS_ERROR_INVALID_NSEC3_ITERATION_COUNT: u32 = 9124; -pub const DNS_ERROR_DNSSEC_IS_DISABLED: u32 = 9125; -pub const DNS_ERROR_INVALID_XML: u32 = 9126; -pub const DNS_ERROR_NO_VALID_TRUST_ANCHORS: u32 = 9127; -pub const DNS_ERROR_ROLLOVER_NOT_POKEABLE: u32 = 9128; -pub const DNS_ERROR_NSEC3_NAME_COLLISION: u32 = 9129; -pub const DNS_ERROR_NSEC_INCOMPATIBLE_WITH_NSEC3_RSA_SHA1: u32 = 9130; -pub const DNS_ERROR_PACKET_FMT_BASE: u32 = 9500; -pub const DNS_INFO_NO_RECORDS: u32 = 9501; -pub const DNS_ERROR_BAD_PACKET: u32 = 9502; -pub const DNS_ERROR_NO_PACKET: u32 = 9503; -pub const DNS_ERROR_RCODE: u32 = 9504; -pub const DNS_ERROR_UNSECURE_PACKET: u32 = 9505; -pub const DNS_STATUS_PACKET_UNSECURE: u32 = 9505; -pub const DNS_REQUEST_PENDING: u32 = 9506; -pub const DNS_ERROR_NO_MEMORY: u32 = 14; -pub const DNS_ERROR_INVALID_NAME: u32 = 123; -pub const DNS_ERROR_INVALID_DATA: u32 = 13; -pub const DNS_ERROR_GENERAL_API_BASE: u32 = 9550; -pub const DNS_ERROR_INVALID_TYPE: u32 = 9551; -pub const DNS_ERROR_INVALID_IP_ADDRESS: u32 = 9552; -pub const DNS_ERROR_INVALID_PROPERTY: u32 = 9553; -pub const DNS_ERROR_TRY_AGAIN_LATER: u32 = 9554; -pub const DNS_ERROR_NOT_UNIQUE: u32 = 9555; -pub const DNS_ERROR_NON_RFC_NAME: u32 = 9556; -pub const DNS_STATUS_FQDN: u32 = 9557; -pub const DNS_STATUS_DOTTED_NAME: u32 = 9558; -pub const DNS_STATUS_SINGLE_PART_NAME: u32 = 9559; -pub const DNS_ERROR_INVALID_NAME_CHAR: u32 = 9560; -pub const DNS_ERROR_NUMERIC_NAME: u32 = 9561; -pub const DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER: u32 = 9562; -pub const DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION: u32 = 9563; -pub const DNS_ERROR_CANNOT_FIND_ROOT_HINTS: u32 = 9564; -pub const DNS_ERROR_INCONSISTENT_ROOT_HINTS: u32 = 9565; -pub const DNS_ERROR_DWORD_VALUE_TOO_SMALL: u32 = 9566; -pub const DNS_ERROR_DWORD_VALUE_TOO_LARGE: u32 = 9567; -pub const DNS_ERROR_BACKGROUND_LOADING: u32 = 9568; -pub const DNS_ERROR_NOT_ALLOWED_ON_RODC: u32 = 9569; -pub const DNS_ERROR_NOT_ALLOWED_UNDER_DNAME: u32 = 9570; -pub const DNS_ERROR_DELEGATION_REQUIRED: u32 = 9571; -pub const DNS_ERROR_INVALID_POLICY_TABLE: u32 = 9572; -pub const DNS_ERROR_ADDRESS_REQUIRED: u32 = 9573; -pub const DNS_ERROR_ZONE_BASE: u32 = 9600; -pub const DNS_ERROR_ZONE_DOES_NOT_EXIST: u32 = 9601; -pub const DNS_ERROR_NO_ZONE_INFO: u32 = 9602; -pub const DNS_ERROR_INVALID_ZONE_OPERATION: u32 = 9603; -pub const DNS_ERROR_ZONE_CONFIGURATION_ERROR: u32 = 9604; -pub const DNS_ERROR_ZONE_HAS_NO_SOA_RECORD: u32 = 9605; -pub const DNS_ERROR_ZONE_HAS_NO_NS_RECORDS: u32 = 9606; -pub const DNS_ERROR_ZONE_LOCKED: u32 = 9607; -pub const DNS_ERROR_ZONE_CREATION_FAILED: u32 = 9608; -pub const DNS_ERROR_ZONE_ALREADY_EXISTS: u32 = 9609; -pub const DNS_ERROR_AUTOZONE_ALREADY_EXISTS: u32 = 9610; -pub const DNS_ERROR_INVALID_ZONE_TYPE: u32 = 9611; -pub const DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP: u32 = 9612; -pub const DNS_ERROR_ZONE_NOT_SECONDARY: u32 = 9613; -pub const DNS_ERROR_NEED_SECONDARY_ADDRESSES: u32 = 9614; -pub const DNS_ERROR_WINS_INIT_FAILED: u32 = 9615; -pub const DNS_ERROR_NEED_WINS_SERVERS: u32 = 9616; -pub const DNS_ERROR_NBSTAT_INIT_FAILED: u32 = 9617; -pub const DNS_ERROR_SOA_DELETE_INVALID: u32 = 9618; -pub const DNS_ERROR_FORWARDER_ALREADY_EXISTS: u32 = 9619; -pub const DNS_ERROR_ZONE_REQUIRES_MASTER_IP: u32 = 9620; -pub const DNS_ERROR_ZONE_IS_SHUTDOWN: u32 = 9621; -pub const DNS_ERROR_ZONE_LOCKED_FOR_SIGNING: u32 = 9622; -pub const DNS_ERROR_DATAFILE_BASE: u32 = 9650; -pub const DNS_ERROR_PRIMARY_REQUIRES_DATAFILE: u32 = 9651; -pub const DNS_ERROR_INVALID_DATAFILE_NAME: u32 = 9652; -pub const DNS_ERROR_DATAFILE_OPEN_FAILURE: u32 = 9653; -pub const DNS_ERROR_FILE_WRITEBACK_FAILED: u32 = 9654; -pub const DNS_ERROR_DATAFILE_PARSING: u32 = 9655; -pub const DNS_ERROR_DATABASE_BASE: u32 = 9700; -pub const DNS_ERROR_RECORD_DOES_NOT_EXIST: u32 = 9701; -pub const DNS_ERROR_RECORD_FORMAT: u32 = 9702; -pub const DNS_ERROR_NODE_CREATION_FAILED: u32 = 9703; -pub const DNS_ERROR_UNKNOWN_RECORD_TYPE: u32 = 9704; -pub const DNS_ERROR_RECORD_TIMED_OUT: u32 = 9705; -pub const DNS_ERROR_NAME_NOT_IN_ZONE: u32 = 9706; -pub const DNS_ERROR_CNAME_LOOP: u32 = 9707; -pub const DNS_ERROR_NODE_IS_CNAME: u32 = 9708; -pub const DNS_ERROR_CNAME_COLLISION: u32 = 9709; -pub const DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT: u32 = 9710; -pub const DNS_ERROR_RECORD_ALREADY_EXISTS: u32 = 9711; -pub const DNS_ERROR_SECONDARY_DATA: u32 = 9712; -pub const DNS_ERROR_NO_CREATE_CACHE_DATA: u32 = 9713; -pub const DNS_ERROR_NAME_DOES_NOT_EXIST: u32 = 9714; -pub const DNS_WARNING_PTR_CREATE_FAILED: u32 = 9715; -pub const DNS_WARNING_DOMAIN_UNDELETED: u32 = 9716; -pub const DNS_ERROR_DS_UNAVAILABLE: u32 = 9717; -pub const DNS_ERROR_DS_ZONE_ALREADY_EXISTS: u32 = 9718; -pub const DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE: u32 = 9719; -pub const DNS_ERROR_NODE_IS_DNAME: u32 = 9720; -pub const DNS_ERROR_DNAME_COLLISION: u32 = 9721; -pub const DNS_ERROR_ALIAS_LOOP: u32 = 9722; -pub const DNS_ERROR_OPERATION_BASE: u32 = 9750; -pub const DNS_INFO_AXFR_COMPLETE: u32 = 9751; -pub const DNS_ERROR_AXFR: u32 = 9752; -pub const DNS_INFO_ADDED_LOCAL_WINS: u32 = 9753; -pub const DNS_ERROR_SECURE_BASE: u32 = 9800; -pub const DNS_STATUS_CONTINUE_NEEDED: u32 = 9801; -pub const DNS_ERROR_SETUP_BASE: u32 = 9850; -pub const DNS_ERROR_NO_TCPIP: u32 = 9851; -pub const DNS_ERROR_NO_DNS_SERVERS: u32 = 9852; -pub const DNS_ERROR_DP_BASE: u32 = 9900; -pub const DNS_ERROR_DP_DOES_NOT_EXIST: u32 = 9901; -pub const DNS_ERROR_DP_ALREADY_EXISTS: u32 = 9902; -pub const DNS_ERROR_DP_NOT_ENLISTED: u32 = 9903; -pub const DNS_ERROR_DP_ALREADY_ENLISTED: u32 = 9904; -pub const DNS_ERROR_DP_NOT_AVAILABLE: u32 = 9905; -pub const DNS_ERROR_DP_FSMO_ERROR: u32 = 9906; -pub const DNS_ERROR_RRL_NOT_ENABLED: u32 = 9911; -pub const DNS_ERROR_RRL_INVALID_WINDOW_SIZE: u32 = 9912; -pub const DNS_ERROR_RRL_INVALID_IPV4_PREFIX: u32 = 9913; -pub const DNS_ERROR_RRL_INVALID_IPV6_PREFIX: u32 = 9914; -pub const DNS_ERROR_RRL_INVALID_TC_RATE: u32 = 9915; -pub const DNS_ERROR_RRL_INVALID_LEAK_RATE: u32 = 9916; -pub const DNS_ERROR_RRL_LEAK_RATE_LESSTHAN_TC_RATE: u32 = 9917; -pub const DNS_ERROR_VIRTUALIZATION_INSTANCE_ALREADY_EXISTS: u32 = 9921; -pub const DNS_ERROR_VIRTUALIZATION_INSTANCE_DOES_NOT_EXIST: u32 = 9922; -pub const DNS_ERROR_VIRTUALIZATION_TREE_LOCKED: u32 = 9923; -pub const DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME: u32 = 9924; -pub const DNS_ERROR_DEFAULT_VIRTUALIZATION_INSTANCE: u32 = 9925; -pub const DNS_ERROR_ZONESCOPE_ALREADY_EXISTS: u32 = 9951; -pub const DNS_ERROR_ZONESCOPE_DOES_NOT_EXIST: u32 = 9952; -pub const DNS_ERROR_DEFAULT_ZONESCOPE: u32 = 9953; -pub const DNS_ERROR_INVALID_ZONESCOPE_NAME: u32 = 9954; -pub const DNS_ERROR_NOT_ALLOWED_WITH_ZONESCOPES: u32 = 9955; -pub const DNS_ERROR_LOAD_ZONESCOPE_FAILED: u32 = 9956; -pub const DNS_ERROR_ZONESCOPE_FILE_WRITEBACK_FAILED: u32 = 9957; -pub const DNS_ERROR_INVALID_SCOPE_NAME: u32 = 9958; -pub const DNS_ERROR_SCOPE_DOES_NOT_EXIST: u32 = 9959; -pub const DNS_ERROR_DEFAULT_SCOPE: u32 = 9960; -pub const DNS_ERROR_INVALID_SCOPE_OPERATION: u32 = 9961; -pub const DNS_ERROR_SCOPE_LOCKED: u32 = 9962; -pub const DNS_ERROR_SCOPE_ALREADY_EXISTS: u32 = 9963; -pub const DNS_ERROR_POLICY_ALREADY_EXISTS: u32 = 9971; -pub const DNS_ERROR_POLICY_DOES_NOT_EXIST: u32 = 9972; -pub const DNS_ERROR_POLICY_INVALID_CRITERIA: u32 = 9973; -pub const DNS_ERROR_POLICY_INVALID_SETTINGS: u32 = 9974; -pub const DNS_ERROR_CLIENT_SUBNET_IS_ACCESSED: u32 = 9975; -pub const DNS_ERROR_CLIENT_SUBNET_DOES_NOT_EXIST: u32 = 9976; -pub const DNS_ERROR_CLIENT_SUBNET_ALREADY_EXISTS: u32 = 9977; -pub const DNS_ERROR_SUBNET_DOES_NOT_EXIST: u32 = 9978; -pub const DNS_ERROR_SUBNET_ALREADY_EXISTS: u32 = 9979; -pub const DNS_ERROR_POLICY_LOCKED: u32 = 9980; -pub const DNS_ERROR_POLICY_INVALID_WEIGHT: u32 = 9981; -pub const DNS_ERROR_POLICY_INVALID_NAME: u32 = 9982; -pub const DNS_ERROR_POLICY_MISSING_CRITERIA: u32 = 9983; -pub const DNS_ERROR_INVALID_CLIENT_SUBNET_NAME: u32 = 9984; -pub const DNS_ERROR_POLICY_PROCESSING_ORDER_INVALID: u32 = 9985; -pub const DNS_ERROR_POLICY_SCOPE_MISSING: u32 = 9986; -pub const DNS_ERROR_POLICY_SCOPE_NOT_ALLOWED: u32 = 9987; -pub const DNS_ERROR_SERVERSCOPE_IS_REFERENCED: u32 = 9988; -pub const DNS_ERROR_ZONESCOPE_IS_REFERENCED: u32 = 9989; -pub const DNS_ERROR_POLICY_INVALID_CRITERIA_CLIENT_SUBNET: u32 = 9990; -pub const DNS_ERROR_POLICY_INVALID_CRITERIA_TRANSPORT_PROTOCOL: u32 = 9991; -pub const DNS_ERROR_POLICY_INVALID_CRITERIA_NETWORK_PROTOCOL: u32 = 9992; -pub const DNS_ERROR_POLICY_INVALID_CRITERIA_INTERFACE: u32 = 9993; -pub const DNS_ERROR_POLICY_INVALID_CRITERIA_FQDN: u32 = 9994; -pub const DNS_ERROR_POLICY_INVALID_CRITERIA_QUERY_TYPE: u32 = 9995; -pub const DNS_ERROR_POLICY_INVALID_CRITERIA_TIME_OF_DAY: u32 = 9996; -pub const WSABASEERR: u32 = 10000; -pub const WSAEINTR: u32 = 10004; -pub const WSAEBADF: u32 = 10009; -pub const WSAEACCES: u32 = 10013; -pub const WSAEFAULT: u32 = 10014; -pub const WSAEINVAL: u32 = 10022; -pub const WSAEMFILE: u32 = 10024; -pub const WSAEWOULDBLOCK: u32 = 10035; -pub const WSAEINPROGRESS: u32 = 10036; -pub const WSAEALREADY: u32 = 10037; -pub const WSAENOTSOCK: u32 = 10038; -pub const WSAEDESTADDRREQ: u32 = 10039; -pub const WSAEMSGSIZE: u32 = 10040; -pub const WSAEPROTOTYPE: u32 = 10041; -pub const WSAENOPROTOOPT: u32 = 10042; -pub const WSAEPROTONOSUPPORT: u32 = 10043; -pub const WSAESOCKTNOSUPPORT: u32 = 10044; -pub const WSAEOPNOTSUPP: u32 = 10045; -pub const WSAEPFNOSUPPORT: u32 = 10046; -pub const WSAEAFNOSUPPORT: u32 = 10047; -pub const WSAEADDRINUSE: u32 = 10048; -pub const WSAEADDRNOTAVAIL: u32 = 10049; -pub const WSAENETDOWN: u32 = 10050; -pub const WSAENETUNREACH: u32 = 10051; -pub const WSAENETRESET: u32 = 10052; -pub const WSAECONNABORTED: u32 = 10053; -pub const WSAECONNRESET: u32 = 10054; -pub const WSAENOBUFS: u32 = 10055; -pub const WSAEISCONN: u32 = 10056; -pub const WSAENOTCONN: u32 = 10057; -pub const WSAESHUTDOWN: u32 = 10058; -pub const WSAETOOMANYREFS: u32 = 10059; -pub const WSAETIMEDOUT: u32 = 10060; -pub const WSAECONNREFUSED: u32 = 10061; -pub const WSAELOOP: u32 = 10062; -pub const WSAENAMETOOLONG: u32 = 10063; -pub const WSAEHOSTDOWN: u32 = 10064; -pub const WSAEHOSTUNREACH: u32 = 10065; -pub const WSAENOTEMPTY: u32 = 10066; -pub const WSAEPROCLIM: u32 = 10067; -pub const WSAEUSERS: u32 = 10068; -pub const WSAEDQUOT: u32 = 10069; -pub const WSAESTALE: u32 = 10070; -pub const WSAEREMOTE: u32 = 10071; -pub const WSASYSNOTREADY: u32 = 10091; -pub const WSAVERNOTSUPPORTED: u32 = 10092; -pub const WSANOTINITIALISED: u32 = 10093; -pub const WSAEDISCON: u32 = 10101; -pub const WSAENOMORE: u32 = 10102; -pub const WSAECANCELLED: u32 = 10103; -pub const WSAEINVALIDPROCTABLE: u32 = 10104; -pub const WSAEINVALIDPROVIDER: u32 = 10105; -pub const WSAEPROVIDERFAILEDINIT: u32 = 10106; -pub const WSASYSCALLFAILURE: u32 = 10107; -pub const WSASERVICE_NOT_FOUND: u32 = 10108; -pub const WSATYPE_NOT_FOUND: u32 = 10109; -pub const WSA_E_NO_MORE: u32 = 10110; -pub const WSA_E_CANCELLED: u32 = 10111; -pub const WSAEREFUSED: u32 = 10112; -pub const WSAHOST_NOT_FOUND: u32 = 11001; -pub const WSATRY_AGAIN: u32 = 11002; -pub const WSANO_RECOVERY: u32 = 11003; -pub const WSANO_DATA: u32 = 11004; -pub const WSA_QOS_RECEIVERS: u32 = 11005; -pub const WSA_QOS_SENDERS: u32 = 11006; -pub const WSA_QOS_NO_SENDERS: u32 = 11007; -pub const WSA_QOS_NO_RECEIVERS: u32 = 11008; -pub const WSA_QOS_REQUEST_CONFIRMED: u32 = 11009; -pub const WSA_QOS_ADMISSION_FAILURE: u32 = 11010; -pub const WSA_QOS_POLICY_FAILURE: u32 = 11011; -pub const WSA_QOS_BAD_STYLE: u32 = 11012; -pub const WSA_QOS_BAD_OBJECT: u32 = 11013; -pub const WSA_QOS_TRAFFIC_CTRL_ERROR: u32 = 11014; -pub const WSA_QOS_GENERIC_ERROR: u32 = 11015; -pub const WSA_QOS_ESERVICETYPE: u32 = 11016; -pub const WSA_QOS_EFLOWSPEC: u32 = 11017; -pub const WSA_QOS_EPROVSPECBUF: u32 = 11018; -pub const WSA_QOS_EFILTERSTYLE: u32 = 11019; -pub const WSA_QOS_EFILTERTYPE: u32 = 11020; -pub const WSA_QOS_EFILTERCOUNT: u32 = 11021; -pub const WSA_QOS_EOBJLENGTH: u32 = 11022; -pub const WSA_QOS_EFLOWCOUNT: u32 = 11023; -pub const WSA_QOS_EUNKOWNPSOBJ: u32 = 11024; -pub const WSA_QOS_EPOLICYOBJ: u32 = 11025; -pub const WSA_QOS_EFLOWDESC: u32 = 11026; -pub const WSA_QOS_EPSFLOWSPEC: u32 = 11027; -pub const WSA_QOS_EPSFILTERSPEC: u32 = 11028; -pub const WSA_QOS_ESDMODEOBJ: u32 = 11029; -pub const WSA_QOS_ESHAPERATEOBJ: u32 = 11030; -pub const WSA_QOS_RESERVED_PETYPE: u32 = 11031; -pub const WSA_SECURE_HOST_NOT_FOUND: u32 = 11032; -pub const WSA_IPSEC_NAME_POLICY_ERROR: u32 = 11033; -pub const ERROR_IPSEC_QM_POLICY_EXISTS: u32 = 13000; -pub const ERROR_IPSEC_QM_POLICY_NOT_FOUND: u32 = 13001; -pub const ERROR_IPSEC_QM_POLICY_IN_USE: u32 = 13002; -pub const ERROR_IPSEC_MM_POLICY_EXISTS: u32 = 13003; -pub const ERROR_IPSEC_MM_POLICY_NOT_FOUND: u32 = 13004; -pub const ERROR_IPSEC_MM_POLICY_IN_USE: u32 = 13005; -pub const ERROR_IPSEC_MM_FILTER_EXISTS: u32 = 13006; -pub const ERROR_IPSEC_MM_FILTER_NOT_FOUND: u32 = 13007; -pub const ERROR_IPSEC_TRANSPORT_FILTER_EXISTS: u32 = 13008; -pub const ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND: u32 = 13009; -pub const ERROR_IPSEC_MM_AUTH_EXISTS: u32 = 13010; -pub const ERROR_IPSEC_MM_AUTH_NOT_FOUND: u32 = 13011; -pub const ERROR_IPSEC_MM_AUTH_IN_USE: u32 = 13012; -pub const ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND: u32 = 13013; -pub const ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND: u32 = 13014; -pub const ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND: u32 = 13015; -pub const ERROR_IPSEC_TUNNEL_FILTER_EXISTS: u32 = 13016; -pub const ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND: u32 = 13017; -pub const ERROR_IPSEC_MM_FILTER_PENDING_DELETION: u32 = 13018; -pub const ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION: u32 = 13019; -pub const ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION: u32 = 13020; -pub const ERROR_IPSEC_MM_POLICY_PENDING_DELETION: u32 = 13021; -pub const ERROR_IPSEC_MM_AUTH_PENDING_DELETION: u32 = 13022; -pub const ERROR_IPSEC_QM_POLICY_PENDING_DELETION: u32 = 13023; -pub const WARNING_IPSEC_MM_POLICY_PRUNED: u32 = 13024; -pub const WARNING_IPSEC_QM_POLICY_PRUNED: u32 = 13025; -pub const ERROR_IPSEC_IKE_NEG_STATUS_BEGIN: u32 = 13800; -pub const ERROR_IPSEC_IKE_AUTH_FAIL: u32 = 13801; -pub const ERROR_IPSEC_IKE_ATTRIB_FAIL: u32 = 13802; -pub const ERROR_IPSEC_IKE_NEGOTIATION_PENDING: u32 = 13803; -pub const ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR: u32 = 13804; -pub const ERROR_IPSEC_IKE_TIMED_OUT: u32 = 13805; -pub const ERROR_IPSEC_IKE_NO_CERT: u32 = 13806; -pub const ERROR_IPSEC_IKE_SA_DELETED: u32 = 13807; -pub const ERROR_IPSEC_IKE_SA_REAPED: u32 = 13808; -pub const ERROR_IPSEC_IKE_MM_ACQUIRE_DROP: u32 = 13809; -pub const ERROR_IPSEC_IKE_QM_ACQUIRE_DROP: u32 = 13810; -pub const ERROR_IPSEC_IKE_QUEUE_DROP_MM: u32 = 13811; -pub const ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM: u32 = 13812; -pub const ERROR_IPSEC_IKE_DROP_NO_RESPONSE: u32 = 13813; -pub const ERROR_IPSEC_IKE_MM_DELAY_DROP: u32 = 13814; -pub const ERROR_IPSEC_IKE_QM_DELAY_DROP: u32 = 13815; -pub const ERROR_IPSEC_IKE_ERROR: u32 = 13816; -pub const ERROR_IPSEC_IKE_CRL_FAILED: u32 = 13817; -pub const ERROR_IPSEC_IKE_INVALID_KEY_USAGE: u32 = 13818; -pub const ERROR_IPSEC_IKE_INVALID_CERT_TYPE: u32 = 13819; -pub const ERROR_IPSEC_IKE_NO_PRIVATE_KEY: u32 = 13820; -pub const ERROR_IPSEC_IKE_SIMULTANEOUS_REKEY: u32 = 13821; -pub const ERROR_IPSEC_IKE_DH_FAIL: u32 = 13822; -pub const ERROR_IPSEC_IKE_CRITICAL_PAYLOAD_NOT_RECOGNIZED: u32 = 13823; -pub const ERROR_IPSEC_IKE_INVALID_HEADER: u32 = 13824; -pub const ERROR_IPSEC_IKE_NO_POLICY: u32 = 13825; -pub const ERROR_IPSEC_IKE_INVALID_SIGNATURE: u32 = 13826; -pub const ERROR_IPSEC_IKE_KERBEROS_ERROR: u32 = 13827; -pub const ERROR_IPSEC_IKE_NO_PUBLIC_KEY: u32 = 13828; -pub const ERROR_IPSEC_IKE_PROCESS_ERR: u32 = 13829; -pub const ERROR_IPSEC_IKE_PROCESS_ERR_SA: u32 = 13830; -pub const ERROR_IPSEC_IKE_PROCESS_ERR_PROP: u32 = 13831; -pub const ERROR_IPSEC_IKE_PROCESS_ERR_TRANS: u32 = 13832; -pub const ERROR_IPSEC_IKE_PROCESS_ERR_KE: u32 = 13833; -pub const ERROR_IPSEC_IKE_PROCESS_ERR_ID: u32 = 13834; -pub const ERROR_IPSEC_IKE_PROCESS_ERR_CERT: u32 = 13835; -pub const ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ: u32 = 13836; -pub const ERROR_IPSEC_IKE_PROCESS_ERR_HASH: u32 = 13837; -pub const ERROR_IPSEC_IKE_PROCESS_ERR_SIG: u32 = 13838; -pub const ERROR_IPSEC_IKE_PROCESS_ERR_NONCE: u32 = 13839; -pub const ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY: u32 = 13840; -pub const ERROR_IPSEC_IKE_PROCESS_ERR_DELETE: u32 = 13841; -pub const ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR: u32 = 13842; -pub const ERROR_IPSEC_IKE_INVALID_PAYLOAD: u32 = 13843; -pub const ERROR_IPSEC_IKE_LOAD_SOFT_SA: u32 = 13844; -pub const ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN: u32 = 13845; -pub const ERROR_IPSEC_IKE_INVALID_COOKIE: u32 = 13846; -pub const ERROR_IPSEC_IKE_NO_PEER_CERT: u32 = 13847; -pub const ERROR_IPSEC_IKE_PEER_CRL_FAILED: u32 = 13848; -pub const ERROR_IPSEC_IKE_POLICY_CHANGE: u32 = 13849; -pub const ERROR_IPSEC_IKE_NO_MM_POLICY: u32 = 13850; -pub const ERROR_IPSEC_IKE_NOTCBPRIV: u32 = 13851; -pub const ERROR_IPSEC_IKE_SECLOADFAIL: u32 = 13852; -pub const ERROR_IPSEC_IKE_FAILSSPINIT: u32 = 13853; -pub const ERROR_IPSEC_IKE_FAILQUERYSSP: u32 = 13854; -pub const ERROR_IPSEC_IKE_SRVACQFAIL: u32 = 13855; -pub const ERROR_IPSEC_IKE_SRVQUERYCRED: u32 = 13856; -pub const ERROR_IPSEC_IKE_GETSPIFAIL: u32 = 13857; -pub const ERROR_IPSEC_IKE_INVALID_FILTER: u32 = 13858; -pub const ERROR_IPSEC_IKE_OUT_OF_MEMORY: u32 = 13859; -pub const ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED: u32 = 13860; -pub const ERROR_IPSEC_IKE_INVALID_POLICY: u32 = 13861; -pub const ERROR_IPSEC_IKE_UNKNOWN_DOI: u32 = 13862; -pub const ERROR_IPSEC_IKE_INVALID_SITUATION: u32 = 13863; -pub const ERROR_IPSEC_IKE_DH_FAILURE: u32 = 13864; -pub const ERROR_IPSEC_IKE_INVALID_GROUP: u32 = 13865; -pub const ERROR_IPSEC_IKE_ENCRYPT: u32 = 13866; -pub const ERROR_IPSEC_IKE_DECRYPT: u32 = 13867; -pub const ERROR_IPSEC_IKE_POLICY_MATCH: u32 = 13868; -pub const ERROR_IPSEC_IKE_UNSUPPORTED_ID: u32 = 13869; -pub const ERROR_IPSEC_IKE_INVALID_HASH: u32 = 13870; -pub const ERROR_IPSEC_IKE_INVALID_HASH_ALG: u32 = 13871; -pub const ERROR_IPSEC_IKE_INVALID_HASH_SIZE: u32 = 13872; -pub const ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG: u32 = 13873; -pub const ERROR_IPSEC_IKE_INVALID_AUTH_ALG: u32 = 13874; -pub const ERROR_IPSEC_IKE_INVALID_SIG: u32 = 13875; -pub const ERROR_IPSEC_IKE_LOAD_FAILED: u32 = 13876; -pub const ERROR_IPSEC_IKE_RPC_DELETE: u32 = 13877; -pub const ERROR_IPSEC_IKE_BENIGN_REINIT: u32 = 13878; -pub const ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY: u32 = 13879; -pub const ERROR_IPSEC_IKE_INVALID_MAJOR_VERSION: u32 = 13880; -pub const ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN: u32 = 13881; -pub const ERROR_IPSEC_IKE_MM_LIMIT: u32 = 13882; -pub const ERROR_IPSEC_IKE_NEGOTIATION_DISABLED: u32 = 13883; -pub const ERROR_IPSEC_IKE_QM_LIMIT: u32 = 13884; -pub const ERROR_IPSEC_IKE_MM_EXPIRED: u32 = 13885; -pub const ERROR_IPSEC_IKE_PEER_MM_ASSUMED_INVALID: u32 = 13886; -pub const ERROR_IPSEC_IKE_CERT_CHAIN_POLICY_MISMATCH: u32 = 13887; -pub const ERROR_IPSEC_IKE_UNEXPECTED_MESSAGE_ID: u32 = 13888; -pub const ERROR_IPSEC_IKE_INVALID_AUTH_PAYLOAD: u32 = 13889; -pub const ERROR_IPSEC_IKE_DOS_COOKIE_SENT: u32 = 13890; -pub const ERROR_IPSEC_IKE_SHUTTING_DOWN: u32 = 13891; -pub const ERROR_IPSEC_IKE_CGA_AUTH_FAILED: u32 = 13892; -pub const ERROR_IPSEC_IKE_PROCESS_ERR_NATOA: u32 = 13893; -pub const ERROR_IPSEC_IKE_INVALID_MM_FOR_QM: u32 = 13894; -pub const ERROR_IPSEC_IKE_QM_EXPIRED: u32 = 13895; -pub const ERROR_IPSEC_IKE_TOO_MANY_FILTERS: u32 = 13896; -pub const ERROR_IPSEC_IKE_NEG_STATUS_END: u32 = 13897; -pub const ERROR_IPSEC_IKE_KILL_DUMMY_NAP_TUNNEL: u32 = 13898; -pub const ERROR_IPSEC_IKE_INNER_IP_ASSIGNMENT_FAILURE: u32 = 13899; -pub const ERROR_IPSEC_IKE_REQUIRE_CP_PAYLOAD_MISSING: u32 = 13900; -pub const ERROR_IPSEC_KEY_MODULE_IMPERSONATION_NEGOTIATION_PENDING: u32 = 13901; -pub const ERROR_IPSEC_IKE_COEXISTENCE_SUPPRESS: u32 = 13902; -pub const ERROR_IPSEC_IKE_RATELIMIT_DROP: u32 = 13903; -pub const ERROR_IPSEC_IKE_PEER_DOESNT_SUPPORT_MOBIKE: u32 = 13904; -pub const ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE: u32 = 13905; -pub const ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_FAILURE: u32 = 13906; -pub const ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE_WITH_OPTIONAL_RETRY: u32 = 13907; -pub const ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_AND_CERTMAP_FAILURE: u32 = 13908; -pub const ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END: u32 = 13909; -pub const ERROR_IPSEC_BAD_SPI: u32 = 13910; -pub const ERROR_IPSEC_SA_LIFETIME_EXPIRED: u32 = 13911; -pub const ERROR_IPSEC_WRONG_SA: u32 = 13912; -pub const ERROR_IPSEC_REPLAY_CHECK_FAILED: u32 = 13913; -pub const ERROR_IPSEC_INVALID_PACKET: u32 = 13914; -pub const ERROR_IPSEC_INTEGRITY_CHECK_FAILED: u32 = 13915; -pub const ERROR_IPSEC_CLEAR_TEXT_DROP: u32 = 13916; -pub const ERROR_IPSEC_AUTH_FIREWALL_DROP: u32 = 13917; -pub const ERROR_IPSEC_THROTTLE_DROP: u32 = 13918; -pub const ERROR_IPSEC_DOSP_BLOCK: u32 = 13925; -pub const ERROR_IPSEC_DOSP_RECEIVED_MULTICAST: u32 = 13926; -pub const ERROR_IPSEC_DOSP_INVALID_PACKET: u32 = 13927; -pub const ERROR_IPSEC_DOSP_STATE_LOOKUP_FAILED: u32 = 13928; -pub const ERROR_IPSEC_DOSP_MAX_ENTRIES: u32 = 13929; -pub const ERROR_IPSEC_DOSP_KEYMOD_NOT_ALLOWED: u32 = 13930; -pub const ERROR_IPSEC_DOSP_NOT_INSTALLED: u32 = 13931; -pub const ERROR_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES: u32 = 13932; -pub const ERROR_SXS_SECTION_NOT_FOUND: u32 = 14000; -pub const ERROR_SXS_CANT_GEN_ACTCTX: u32 = 14001; -pub const ERROR_SXS_INVALID_ACTCTXDATA_FORMAT: u32 = 14002; -pub const ERROR_SXS_ASSEMBLY_NOT_FOUND: u32 = 14003; -pub const ERROR_SXS_MANIFEST_FORMAT_ERROR: u32 = 14004; -pub const ERROR_SXS_MANIFEST_PARSE_ERROR: u32 = 14005; -pub const ERROR_SXS_ACTIVATION_CONTEXT_DISABLED: u32 = 14006; -pub const ERROR_SXS_KEY_NOT_FOUND: u32 = 14007; -pub const ERROR_SXS_VERSION_CONFLICT: u32 = 14008; -pub const ERROR_SXS_WRONG_SECTION_TYPE: u32 = 14009; -pub const ERROR_SXS_THREAD_QUERIES_DISABLED: u32 = 14010; -pub const ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET: u32 = 14011; -pub const ERROR_SXS_UNKNOWN_ENCODING_GROUP: u32 = 14012; -pub const ERROR_SXS_UNKNOWN_ENCODING: u32 = 14013; -pub const ERROR_SXS_INVALID_XML_NAMESPACE_URI: u32 = 14014; -pub const ERROR_SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED: u32 = 14015; -pub const ERROR_SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED: u32 = 14016; -pub const ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE: u32 = 14017; -pub const ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE: u32 = 14018; -pub const ERROR_SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE: u32 = 14019; -pub const ERROR_SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT: u32 = 14020; -pub const ERROR_SXS_DUPLICATE_DLL_NAME: u32 = 14021; -pub const ERROR_SXS_DUPLICATE_WINDOWCLASS_NAME: u32 = 14022; -pub const ERROR_SXS_DUPLICATE_CLSID: u32 = 14023; -pub const ERROR_SXS_DUPLICATE_IID: u32 = 14024; -pub const ERROR_SXS_DUPLICATE_TLBID: u32 = 14025; -pub const ERROR_SXS_DUPLICATE_PROGID: u32 = 14026; -pub const ERROR_SXS_DUPLICATE_ASSEMBLY_NAME: u32 = 14027; -pub const ERROR_SXS_FILE_HASH_MISMATCH: u32 = 14028; -pub const ERROR_SXS_POLICY_PARSE_ERROR: u32 = 14029; -pub const ERROR_SXS_XML_E_MISSINGQUOTE: u32 = 14030; -pub const ERROR_SXS_XML_E_COMMENTSYNTAX: u32 = 14031; -pub const ERROR_SXS_XML_E_BADSTARTNAMECHAR: u32 = 14032; -pub const ERROR_SXS_XML_E_BADNAMECHAR: u32 = 14033; -pub const ERROR_SXS_XML_E_BADCHARINSTRING: u32 = 14034; -pub const ERROR_SXS_XML_E_XMLDECLSYNTAX: u32 = 14035; -pub const ERROR_SXS_XML_E_BADCHARDATA: u32 = 14036; -pub const ERROR_SXS_XML_E_MISSINGWHITESPACE: u32 = 14037; -pub const ERROR_SXS_XML_E_EXPECTINGTAGEND: u32 = 14038; -pub const ERROR_SXS_XML_E_MISSINGSEMICOLON: u32 = 14039; -pub const ERROR_SXS_XML_E_UNBALANCEDPAREN: u32 = 14040; -pub const ERROR_SXS_XML_E_INTERNALERROR: u32 = 14041; -pub const ERROR_SXS_XML_E_UNEXPECTED_WHITESPACE: u32 = 14042; -pub const ERROR_SXS_XML_E_INCOMPLETE_ENCODING: u32 = 14043; -pub const ERROR_SXS_XML_E_MISSING_PAREN: u32 = 14044; -pub const ERROR_SXS_XML_E_EXPECTINGCLOSEQUOTE: u32 = 14045; -pub const ERROR_SXS_XML_E_MULTIPLE_COLONS: u32 = 14046; -pub const ERROR_SXS_XML_E_INVALID_DECIMAL: u32 = 14047; -pub const ERROR_SXS_XML_E_INVALID_HEXIDECIMAL: u32 = 14048; -pub const ERROR_SXS_XML_E_INVALID_UNICODE: u32 = 14049; -pub const ERROR_SXS_XML_E_WHITESPACEORQUESTIONMARK: u32 = 14050; -pub const ERROR_SXS_XML_E_UNEXPECTEDENDTAG: u32 = 14051; -pub const ERROR_SXS_XML_E_UNCLOSEDTAG: u32 = 14052; -pub const ERROR_SXS_XML_E_DUPLICATEATTRIBUTE: u32 = 14053; -pub const ERROR_SXS_XML_E_MULTIPLEROOTS: u32 = 14054; -pub const ERROR_SXS_XML_E_INVALIDATROOTLEVEL: u32 = 14055; -pub const ERROR_SXS_XML_E_BADXMLDECL: u32 = 14056; -pub const ERROR_SXS_XML_E_MISSINGROOT: u32 = 14057; -pub const ERROR_SXS_XML_E_UNEXPECTEDEOF: u32 = 14058; -pub const ERROR_SXS_XML_E_BADPEREFINSUBSET: u32 = 14059; -pub const ERROR_SXS_XML_E_UNCLOSEDSTARTTAG: u32 = 14060; -pub const ERROR_SXS_XML_E_UNCLOSEDENDTAG: u32 = 14061; -pub const ERROR_SXS_XML_E_UNCLOSEDSTRING: u32 = 14062; -pub const ERROR_SXS_XML_E_UNCLOSEDCOMMENT: u32 = 14063; -pub const ERROR_SXS_XML_E_UNCLOSEDDECL: u32 = 14064; -pub const ERROR_SXS_XML_E_UNCLOSEDCDATA: u32 = 14065; -pub const ERROR_SXS_XML_E_RESERVEDNAMESPACE: u32 = 14066; -pub const ERROR_SXS_XML_E_INVALIDENCODING: u32 = 14067; -pub const ERROR_SXS_XML_E_INVALIDSWITCH: u32 = 14068; -pub const ERROR_SXS_XML_E_BADXMLCASE: u32 = 14069; -pub const ERROR_SXS_XML_E_INVALID_STANDALONE: u32 = 14070; -pub const ERROR_SXS_XML_E_UNEXPECTED_STANDALONE: u32 = 14071; -pub const ERROR_SXS_XML_E_INVALID_VERSION: u32 = 14072; -pub const ERROR_SXS_XML_E_MISSINGEQUALS: u32 = 14073; -pub const ERROR_SXS_PROTECTION_RECOVERY_FAILED: u32 = 14074; -pub const ERROR_SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT: u32 = 14075; -pub const ERROR_SXS_PROTECTION_CATALOG_NOT_VALID: u32 = 14076; -pub const ERROR_SXS_UNTRANSLATABLE_HRESULT: u32 = 14077; -pub const ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING: u32 = 14078; -pub const ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE: u32 = 14079; -pub const ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME: u32 = 14080; -pub const ERROR_SXS_ASSEMBLY_MISSING: u32 = 14081; -pub const ERROR_SXS_CORRUPT_ACTIVATION_STACK: u32 = 14082; -pub const ERROR_SXS_CORRUPTION: u32 = 14083; -pub const ERROR_SXS_EARLY_DEACTIVATION: u32 = 14084; -pub const ERROR_SXS_INVALID_DEACTIVATION: u32 = 14085; -pub const ERROR_SXS_MULTIPLE_DEACTIVATION: u32 = 14086; -pub const ERROR_SXS_PROCESS_TERMINATION_REQUESTED: u32 = 14087; -pub const ERROR_SXS_RELEASE_ACTIVATION_CONTEXT: u32 = 14088; -pub const ERROR_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY: u32 = 14089; -pub const ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE: u32 = 14090; -pub const ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME: u32 = 14091; -pub const ERROR_SXS_IDENTITY_DUPLICATE_ATTRIBUTE: u32 = 14092; -pub const ERROR_SXS_IDENTITY_PARSE_ERROR: u32 = 14093; -pub const ERROR_MALFORMED_SUBSTITUTION_STRING: u32 = 14094; -pub const ERROR_SXS_INCORRECT_PUBLIC_KEY_TOKEN: u32 = 14095; -pub const ERROR_UNMAPPED_SUBSTITUTION_STRING: u32 = 14096; -pub const ERROR_SXS_ASSEMBLY_NOT_LOCKED: u32 = 14097; -pub const ERROR_SXS_COMPONENT_STORE_CORRUPT: u32 = 14098; -pub const ERROR_ADVANCED_INSTALLER_FAILED: u32 = 14099; -pub const ERROR_XML_ENCODING_MISMATCH: u32 = 14100; -pub const ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT: u32 = 14101; -pub const ERROR_SXS_IDENTITIES_DIFFERENT: u32 = 14102; -pub const ERROR_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT: u32 = 14103; -pub const ERROR_SXS_FILE_NOT_PART_OF_ASSEMBLY: u32 = 14104; -pub const ERROR_SXS_MANIFEST_TOO_BIG: u32 = 14105; -pub const ERROR_SXS_SETTING_NOT_REGISTERED: u32 = 14106; -pub const ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE: u32 = 14107; -pub const ERROR_SMI_PRIMITIVE_INSTALLER_FAILED: u32 = 14108; -pub const ERROR_GENERIC_COMMAND_FAILED: u32 = 14109; -pub const ERROR_SXS_FILE_HASH_MISSING: u32 = 14110; -pub const ERROR_SXS_DUPLICATE_ACTIVATABLE_CLASS: u32 = 14111; -pub const ERROR_EVT_INVALID_CHANNEL_PATH: u32 = 15000; -pub const ERROR_EVT_INVALID_QUERY: u32 = 15001; -pub const ERROR_EVT_PUBLISHER_METADATA_NOT_FOUND: u32 = 15002; -pub const ERROR_EVT_EVENT_TEMPLATE_NOT_FOUND: u32 = 15003; -pub const ERROR_EVT_INVALID_PUBLISHER_NAME: u32 = 15004; -pub const ERROR_EVT_INVALID_EVENT_DATA: u32 = 15005; -pub const ERROR_EVT_CHANNEL_NOT_FOUND: u32 = 15007; -pub const ERROR_EVT_MALFORMED_XML_TEXT: u32 = 15008; -pub const ERROR_EVT_SUBSCRIPTION_TO_DIRECT_CHANNEL: u32 = 15009; -pub const ERROR_EVT_CONFIGURATION_ERROR: u32 = 15010; -pub const ERROR_EVT_QUERY_RESULT_STALE: u32 = 15011; -pub const ERROR_EVT_QUERY_RESULT_INVALID_POSITION: u32 = 15012; -pub const ERROR_EVT_NON_VALIDATING_MSXML: u32 = 15013; -pub const ERROR_EVT_FILTER_ALREADYSCOPED: u32 = 15014; -pub const ERROR_EVT_FILTER_NOTELTSET: u32 = 15015; -pub const ERROR_EVT_FILTER_INVARG: u32 = 15016; -pub const ERROR_EVT_FILTER_INVTEST: u32 = 15017; -pub const ERROR_EVT_FILTER_INVTYPE: u32 = 15018; -pub const ERROR_EVT_FILTER_PARSEERR: u32 = 15019; -pub const ERROR_EVT_FILTER_UNSUPPORTEDOP: u32 = 15020; -pub const ERROR_EVT_FILTER_UNEXPECTEDTOKEN: u32 = 15021; -pub const ERROR_EVT_INVALID_OPERATION_OVER_ENABLED_DIRECT_CHANNEL: u32 = 15022; -pub const ERROR_EVT_INVALID_CHANNEL_PROPERTY_VALUE: u32 = 15023; -pub const ERROR_EVT_INVALID_PUBLISHER_PROPERTY_VALUE: u32 = 15024; -pub const ERROR_EVT_CHANNEL_CANNOT_ACTIVATE: u32 = 15025; -pub const ERROR_EVT_FILTER_TOO_COMPLEX: u32 = 15026; -pub const ERROR_EVT_MESSAGE_NOT_FOUND: u32 = 15027; -pub const ERROR_EVT_MESSAGE_ID_NOT_FOUND: u32 = 15028; -pub const ERROR_EVT_UNRESOLVED_VALUE_INSERT: u32 = 15029; -pub const ERROR_EVT_UNRESOLVED_PARAMETER_INSERT: u32 = 15030; -pub const ERROR_EVT_MAX_INSERTS_REACHED: u32 = 15031; -pub const ERROR_EVT_EVENT_DEFINITION_NOT_FOUND: u32 = 15032; -pub const ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND: u32 = 15033; -pub const ERROR_EVT_VERSION_TOO_OLD: u32 = 15034; -pub const ERROR_EVT_VERSION_TOO_NEW: u32 = 15035; -pub const ERROR_EVT_CANNOT_OPEN_CHANNEL_OF_QUERY: u32 = 15036; -pub const ERROR_EVT_PUBLISHER_DISABLED: u32 = 15037; -pub const ERROR_EVT_FILTER_OUT_OF_RANGE: u32 = 15038; -pub const ERROR_EC_SUBSCRIPTION_CANNOT_ACTIVATE: u32 = 15080; -pub const ERROR_EC_LOG_DISABLED: u32 = 15081; -pub const ERROR_EC_CIRCULAR_FORWARDING: u32 = 15082; -pub const ERROR_EC_CREDSTORE_FULL: u32 = 15083; -pub const ERROR_EC_CRED_NOT_FOUND: u32 = 15084; -pub const ERROR_EC_NO_ACTIVE_CHANNEL: u32 = 15085; -pub const ERROR_MUI_FILE_NOT_FOUND: u32 = 15100; -pub const ERROR_MUI_INVALID_FILE: u32 = 15101; -pub const ERROR_MUI_INVALID_RC_CONFIG: u32 = 15102; -pub const ERROR_MUI_INVALID_LOCALE_NAME: u32 = 15103; -pub const ERROR_MUI_INVALID_ULTIMATEFALLBACK_NAME: u32 = 15104; -pub const ERROR_MUI_FILE_NOT_LOADED: u32 = 15105; -pub const ERROR_RESOURCE_ENUM_USER_STOP: u32 = 15106; -pub const ERROR_MUI_INTLSETTINGS_UILANG_NOT_INSTALLED: u32 = 15107; -pub const ERROR_MUI_INTLSETTINGS_INVALID_LOCALE_NAME: u32 = 15108; -pub const ERROR_MRM_RUNTIME_NO_DEFAULT_OR_NEUTRAL_RESOURCE: u32 = 15110; -pub const ERROR_MRM_INVALID_PRICONFIG: u32 = 15111; -pub const ERROR_MRM_INVALID_FILE_TYPE: u32 = 15112; -pub const ERROR_MRM_UNKNOWN_QUALIFIER: u32 = 15113; -pub const ERROR_MRM_INVALID_QUALIFIER_VALUE: u32 = 15114; -pub const ERROR_MRM_NO_CANDIDATE: u32 = 15115; -pub const ERROR_MRM_NO_MATCH_OR_DEFAULT_CANDIDATE: u32 = 15116; -pub const ERROR_MRM_RESOURCE_TYPE_MISMATCH: u32 = 15117; -pub const ERROR_MRM_DUPLICATE_MAP_NAME: u32 = 15118; -pub const ERROR_MRM_DUPLICATE_ENTRY: u32 = 15119; -pub const ERROR_MRM_INVALID_RESOURCE_IDENTIFIER: u32 = 15120; -pub const ERROR_MRM_FILEPATH_TOO_LONG: u32 = 15121; -pub const ERROR_MRM_UNSUPPORTED_DIRECTORY_TYPE: u32 = 15122; -pub const ERROR_MRM_INVALID_PRI_FILE: u32 = 15126; -pub const ERROR_MRM_NAMED_RESOURCE_NOT_FOUND: u32 = 15127; -pub const ERROR_MRM_MAP_NOT_FOUND: u32 = 15135; -pub const ERROR_MRM_UNSUPPORTED_PROFILE_TYPE: u32 = 15136; -pub const ERROR_MRM_INVALID_QUALIFIER_OPERATOR: u32 = 15137; -pub const ERROR_MRM_INDETERMINATE_QUALIFIER_VALUE: u32 = 15138; -pub const ERROR_MRM_AUTOMERGE_ENABLED: u32 = 15139; -pub const ERROR_MRM_TOO_MANY_RESOURCES: u32 = 15140; -pub const ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_MERGE: u32 = 15141; -pub const ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_LOAD_UNLOAD_PRI_FILE: u32 = 15142; -pub const ERROR_MRM_NO_CURRENT_VIEW_ON_THREAD: u32 = 15143; -pub const ERROR_DIFFERENT_PROFILE_RESOURCE_MANAGER_EXIST: u32 = 15144; -pub const ERROR_OPERATION_NOT_ALLOWED_FROM_SYSTEM_COMPONENT: u32 = 15145; -pub const ERROR_MRM_DIRECT_REF_TO_NON_DEFAULT_RESOURCE: u32 = 15146; -pub const ERROR_MRM_GENERATION_COUNT_MISMATCH: u32 = 15147; -pub const ERROR_PRI_MERGE_VERSION_MISMATCH: u32 = 15148; -pub const ERROR_PRI_MERGE_MISSING_SCHEMA: u32 = 15149; -pub const ERROR_PRI_MERGE_LOAD_FILE_FAILED: u32 = 15150; -pub const ERROR_PRI_MERGE_ADD_FILE_FAILED: u32 = 15151; -pub const ERROR_PRI_MERGE_WRITE_FILE_FAILED: u32 = 15152; -pub const ERROR_PRI_MERGE_MULTIPLE_PACKAGE_FAMILIES_NOT_ALLOWED: u32 = 15153; -pub const ERROR_PRI_MERGE_MULTIPLE_MAIN_PACKAGES_NOT_ALLOWED: u32 = 15154; -pub const ERROR_PRI_MERGE_BUNDLE_PACKAGES_NOT_ALLOWED: u32 = 15155; -pub const ERROR_PRI_MERGE_MAIN_PACKAGE_REQUIRED: u32 = 15156; -pub const ERROR_PRI_MERGE_RESOURCE_PACKAGE_REQUIRED: u32 = 15157; -pub const ERROR_PRI_MERGE_INVALID_FILE_NAME: u32 = 15158; -pub const ERROR_MRM_PACKAGE_NOT_FOUND: u32 = 15159; -pub const ERROR_MRM_MISSING_DEFAULT_LANGUAGE: u32 = 15160; -pub const ERROR_MRM_SCOPE_ITEM_CONFLICT: u32 = 15161; -pub const ERROR_MCA_INVALID_CAPABILITIES_STRING: u32 = 15200; -pub const ERROR_MCA_INVALID_VCP_VERSION: u32 = 15201; -pub const ERROR_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION: u32 = 15202; -pub const ERROR_MCA_MCCS_VERSION_MISMATCH: u32 = 15203; -pub const ERROR_MCA_UNSUPPORTED_MCCS_VERSION: u32 = 15204; -pub const ERROR_MCA_INTERNAL_ERROR: u32 = 15205; -pub const ERROR_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED: u32 = 15206; -pub const ERROR_MCA_UNSUPPORTED_COLOR_TEMPERATURE: u32 = 15207; -pub const ERROR_AMBIGUOUS_SYSTEM_DEVICE: u32 = 15250; -pub const ERROR_SYSTEM_DEVICE_NOT_FOUND: u32 = 15299; -pub const ERROR_HASH_NOT_SUPPORTED: u32 = 15300; -pub const ERROR_HASH_NOT_PRESENT: u32 = 15301; -pub const ERROR_SECONDARY_IC_PROVIDER_NOT_REGISTERED: u32 = 15321; -pub const ERROR_GPIO_CLIENT_INFORMATION_INVALID: u32 = 15322; -pub const ERROR_GPIO_VERSION_NOT_SUPPORTED: u32 = 15323; -pub const ERROR_GPIO_INVALID_REGISTRATION_PACKET: u32 = 15324; -pub const ERROR_GPIO_OPERATION_DENIED: u32 = 15325; -pub const ERROR_GPIO_INCOMPATIBLE_CONNECT_MODE: u32 = 15326; -pub const ERROR_GPIO_INTERRUPT_ALREADY_UNMASKED: u32 = 15327; -pub const ERROR_CANNOT_SWITCH_RUNLEVEL: u32 = 15400; -pub const ERROR_INVALID_RUNLEVEL_SETTING: u32 = 15401; -pub const ERROR_RUNLEVEL_SWITCH_TIMEOUT: u32 = 15402; -pub const ERROR_RUNLEVEL_SWITCH_AGENT_TIMEOUT: u32 = 15403; -pub const ERROR_RUNLEVEL_SWITCH_IN_PROGRESS: u32 = 15404; -pub const ERROR_SERVICES_FAILED_AUTOSTART: u32 = 15405; -pub const ERROR_COM_TASK_STOP_PENDING: u32 = 15501; -pub const ERROR_INSTALL_OPEN_PACKAGE_FAILED: u32 = 15600; -pub const ERROR_INSTALL_PACKAGE_NOT_FOUND: u32 = 15601; -pub const ERROR_INSTALL_INVALID_PACKAGE: u32 = 15602; -pub const ERROR_INSTALL_RESOLVE_DEPENDENCY_FAILED: u32 = 15603; -pub const ERROR_INSTALL_OUT_OF_DISK_SPACE: u32 = 15604; -pub const ERROR_INSTALL_NETWORK_FAILURE: u32 = 15605; -pub const ERROR_INSTALL_REGISTRATION_FAILURE: u32 = 15606; -pub const ERROR_INSTALL_DEREGISTRATION_FAILURE: u32 = 15607; -pub const ERROR_INSTALL_CANCEL: u32 = 15608; -pub const ERROR_INSTALL_FAILED: u32 = 15609; -pub const ERROR_REMOVE_FAILED: u32 = 15610; -pub const ERROR_PACKAGE_ALREADY_EXISTS: u32 = 15611; -pub const ERROR_NEEDS_REMEDIATION: u32 = 15612; -pub const ERROR_INSTALL_PREREQUISITE_FAILED: u32 = 15613; -pub const ERROR_PACKAGE_REPOSITORY_CORRUPTED: u32 = 15614; -pub const ERROR_INSTALL_POLICY_FAILURE: u32 = 15615; -pub const ERROR_PACKAGE_UPDATING: u32 = 15616; -pub const ERROR_DEPLOYMENT_BLOCKED_BY_POLICY: u32 = 15617; -pub const ERROR_PACKAGES_IN_USE: u32 = 15618; -pub const ERROR_RECOVERY_FILE_CORRUPT: u32 = 15619; -pub const ERROR_INVALID_STAGED_SIGNATURE: u32 = 15620; -pub const ERROR_DELETING_EXISTING_APPLICATIONDATA_STORE_FAILED: u32 = 15621; -pub const ERROR_INSTALL_PACKAGE_DOWNGRADE: u32 = 15622; -pub const ERROR_SYSTEM_NEEDS_REMEDIATION: u32 = 15623; -pub const ERROR_APPX_INTEGRITY_FAILURE_CLR_NGEN: u32 = 15624; -pub const ERROR_RESILIENCY_FILE_CORRUPT: u32 = 15625; -pub const ERROR_INSTALL_FIREWALL_SERVICE_NOT_RUNNING: u32 = 15626; -pub const ERROR_PACKAGE_MOVE_FAILED: u32 = 15627; -pub const ERROR_INSTALL_VOLUME_NOT_EMPTY: u32 = 15628; -pub const ERROR_INSTALL_VOLUME_OFFLINE: u32 = 15629; -pub const ERROR_INSTALL_VOLUME_CORRUPT: u32 = 15630; -pub const ERROR_NEEDS_REGISTRATION: u32 = 15631; -pub const ERROR_INSTALL_WRONG_PROCESSOR_ARCHITECTURE: u32 = 15632; -pub const ERROR_DEV_SIDELOAD_LIMIT_EXCEEDED: u32 = 15633; -pub const ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE: u32 = 15634; -pub const ERROR_PACKAGE_NOT_SUPPORTED_ON_FILESYSTEM: u32 = 15635; -pub const ERROR_PACKAGE_MOVE_BLOCKED_BY_STREAMING: u32 = 15636; -pub const ERROR_INSTALL_OPTIONAL_PACKAGE_APPLICATIONID_NOT_UNIQUE: u32 = 15637; -pub const ERROR_PACKAGE_STAGING_ONHOLD: u32 = 15638; -pub const ERROR_INSTALL_INVALID_RELATED_SET_UPDATE: u32 = 15639; -pub const ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY: u32 = 15640; -pub const ERROR_DEPLOYMENT_BLOCKED_BY_USER_LOG_OFF: u32 = 15641; -pub const ERROR_PROVISION_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_PROVISIONED: u32 = 15642; -pub const ERROR_PACKAGES_REPUTATION_CHECK_FAILED: u32 = 15643; -pub const ERROR_PACKAGES_REPUTATION_CHECK_TIMEDOUT: u32 = 15644; -pub const ERROR_DEPLOYMENT_OPTION_NOT_SUPPORTED: u32 = 15645; -pub const ERROR_APPINSTALLER_ACTIVATION_BLOCKED: u32 = 15646; -pub const ERROR_REGISTRATION_FROM_REMOTE_DRIVE_NOT_SUPPORTED: u32 = 15647; -pub const ERROR_APPX_RAW_DATA_WRITE_FAILED: u32 = 15648; -pub const ERROR_DEPLOYMENT_BLOCKED_BY_VOLUME_POLICY_PACKAGE: u32 = 15649; -pub const ERROR_DEPLOYMENT_BLOCKED_BY_VOLUME_POLICY_MACHINE: u32 = 15650; -pub const ERROR_DEPLOYMENT_BLOCKED_BY_PROFILE_POLICY: u32 = 15651; -pub const ERROR_DEPLOYMENT_FAILED_CONFLICTING_MUTABLE_PACKAGE_DIRECTORY: u32 = 15652; -pub const ERROR_SINGLETON_RESOURCE_INSTALLED_IN_ACTIVE_USER: u32 = 15653; -pub const ERROR_DIFFERENT_VERSION_OF_PACKAGED_SERVICE_INSTALLED: u32 = 15654; -pub const ERROR_SERVICE_EXISTS_AS_NON_PACKAGED_SERVICE: u32 = 15655; -pub const ERROR_PACKAGED_SERVICE_REQUIRES_ADMIN_PRIVILEGES: u32 = 15656; -pub const ERROR_REDIRECTION_TO_DEFAULT_ACCOUNT_NOT_ALLOWED: u32 = 15657; -pub const ERROR_PACKAGE_LACKS_CAPABILITY_TO_DEPLOY_ON_HOST: u32 = 15658; -pub const ERROR_UNSIGNED_PACKAGE_INVALID_CONTENT: u32 = 15659; -pub const ERROR_UNSIGNED_PACKAGE_INVALID_PUBLISHER_NAMESPACE: u32 = 15660; -pub const ERROR_SIGNED_PACKAGE_INVALID_PUBLISHER_NAMESPACE: u32 = 15661; -pub const ERROR_PACKAGE_EXTERNAL_LOCATION_NOT_ALLOWED: u32 = 15662; -pub const ERROR_INSTALL_FULLTRUST_HOSTRUNTIME_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY: u32 = - 15663; -pub const ERROR_PACKAGE_LACKS_CAPABILITY_FOR_MANDATORY_STARTUPTASKS: u32 = 15664; -pub const ERROR_INSTALL_RESOLVE_HOSTRUNTIME_DEPENDENCY_FAILED: u32 = 15665; -pub const ERROR_MACHINE_SCOPE_NOT_ALLOWED: u32 = 15666; -pub const ERROR_CLASSIC_COMPAT_MODE_NOT_ALLOWED: u32 = 15667; -pub const ERROR_STAGEFROMUPDATEAGENT_PACKAGE_NOT_APPLICABLE: u32 = 15668; -pub const ERROR_PACKAGE_NOT_REGISTERED_FOR_USER: u32 = 15669; -pub const ERROR_PACKAGE_NAME_MISMATCH: u32 = 15670; -pub const ERROR_APPINSTALLER_URI_IN_USE: u32 = 15671; -pub const ERROR_APPINSTALLER_IS_MANAGED_BY_SYSTEM: u32 = 15672; -pub const APPMODEL_ERROR_NO_PACKAGE: u32 = 15700; -pub const APPMODEL_ERROR_PACKAGE_RUNTIME_CORRUPT: u32 = 15701; -pub const APPMODEL_ERROR_PACKAGE_IDENTITY_CORRUPT: u32 = 15702; -pub const APPMODEL_ERROR_NO_APPLICATION: u32 = 15703; -pub const APPMODEL_ERROR_DYNAMIC_PROPERTY_READ_FAILED: u32 = 15704; -pub const APPMODEL_ERROR_DYNAMIC_PROPERTY_INVALID: u32 = 15705; -pub const APPMODEL_ERROR_PACKAGE_NOT_AVAILABLE: u32 = 15706; -pub const APPMODEL_ERROR_NO_MUTABLE_DIRECTORY: u32 = 15707; -pub const ERROR_STATE_LOAD_STORE_FAILED: u32 = 15800; -pub const ERROR_STATE_GET_VERSION_FAILED: u32 = 15801; -pub const ERROR_STATE_SET_VERSION_FAILED: u32 = 15802; -pub const ERROR_STATE_STRUCTURED_RESET_FAILED: u32 = 15803; -pub const ERROR_STATE_OPEN_CONTAINER_FAILED: u32 = 15804; -pub const ERROR_STATE_CREATE_CONTAINER_FAILED: u32 = 15805; -pub const ERROR_STATE_DELETE_CONTAINER_FAILED: u32 = 15806; -pub const ERROR_STATE_READ_SETTING_FAILED: u32 = 15807; -pub const ERROR_STATE_WRITE_SETTING_FAILED: u32 = 15808; -pub const ERROR_STATE_DELETE_SETTING_FAILED: u32 = 15809; -pub const ERROR_STATE_QUERY_SETTING_FAILED: u32 = 15810; -pub const ERROR_STATE_READ_COMPOSITE_SETTING_FAILED: u32 = 15811; -pub const ERROR_STATE_WRITE_COMPOSITE_SETTING_FAILED: u32 = 15812; -pub const ERROR_STATE_ENUMERATE_CONTAINER_FAILED: u32 = 15813; -pub const ERROR_STATE_ENUMERATE_SETTINGS_FAILED: u32 = 15814; -pub const ERROR_STATE_COMPOSITE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED: u32 = 15815; -pub const ERROR_STATE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED: u32 = 15816; -pub const ERROR_STATE_SETTING_NAME_SIZE_LIMIT_EXCEEDED: u32 = 15817; -pub const ERROR_STATE_CONTAINER_NAME_SIZE_LIMIT_EXCEEDED: u32 = 15818; -pub const ERROR_API_UNAVAILABLE: u32 = 15841; -pub const STORE_ERROR_UNLICENSED: u32 = 15861; -pub const STORE_ERROR_UNLICENSED_USER: u32 = 15862; -pub const STORE_ERROR_PENDING_COM_TRANSACTION: u32 = 15863; -pub const STORE_ERROR_LICENSE_REVOKED: u32 = 15864; -pub const SEVERITY_SUCCESS: u32 = 0; -pub const SEVERITY_ERROR: u32 = 1; -pub const FACILITY_NT_BIT: u32 = 268435456; -pub const NOERROR: u32 = 0; -pub const DRAGDROP_E_FIRST: u32 = 2147746048; -pub const DRAGDROP_E_LAST: u32 = 2147746063; -pub const DRAGDROP_S_FIRST: u32 = 262400; -pub const DRAGDROP_S_LAST: u32 = 262415; -pub const CLASSFACTORY_E_FIRST: u32 = 2147746064; -pub const CLASSFACTORY_E_LAST: u32 = 2147746079; -pub const CLASSFACTORY_S_FIRST: u32 = 262416; -pub const CLASSFACTORY_S_LAST: u32 = 262431; -pub const MARSHAL_E_FIRST: u32 = 2147746080; -pub const MARSHAL_E_LAST: u32 = 2147746095; -pub const MARSHAL_S_FIRST: u32 = 262432; -pub const MARSHAL_S_LAST: u32 = 262447; -pub const DATA_E_FIRST: u32 = 2147746096; -pub const DATA_E_LAST: u32 = 2147746111; -pub const DATA_S_FIRST: u32 = 262448; -pub const DATA_S_LAST: u32 = 262463; -pub const VIEW_E_FIRST: u32 = 2147746112; -pub const VIEW_E_LAST: u32 = 2147746127; -pub const VIEW_S_FIRST: u32 = 262464; -pub const VIEW_S_LAST: u32 = 262479; -pub const REGDB_E_FIRST: u32 = 2147746128; -pub const REGDB_E_LAST: u32 = 2147746143; -pub const REGDB_S_FIRST: u32 = 262480; -pub const REGDB_S_LAST: u32 = 262495; -pub const CAT_E_FIRST: u32 = 2147746144; -pub const CAT_E_LAST: u32 = 2147746145; -pub const CS_E_FIRST: u32 = 2147746148; -pub const CS_E_LAST: u32 = 2147746159; -pub const CACHE_E_FIRST: u32 = 2147746160; -pub const CACHE_E_LAST: u32 = 2147746175; -pub const CACHE_S_FIRST: u32 = 262512; -pub const CACHE_S_LAST: u32 = 262527; -pub const OLEOBJ_E_FIRST: u32 = 2147746176; -pub const OLEOBJ_E_LAST: u32 = 2147746191; -pub const OLEOBJ_S_FIRST: u32 = 262528; -pub const OLEOBJ_S_LAST: u32 = 262543; -pub const CLIENTSITE_E_FIRST: u32 = 2147746192; -pub const CLIENTSITE_E_LAST: u32 = 2147746207; -pub const CLIENTSITE_S_FIRST: u32 = 262544; -pub const CLIENTSITE_S_LAST: u32 = 262559; -pub const INPLACE_E_FIRST: u32 = 2147746208; -pub const INPLACE_E_LAST: u32 = 2147746223; -pub const INPLACE_S_FIRST: u32 = 262560; -pub const INPLACE_S_LAST: u32 = 262575; -pub const ENUM_E_FIRST: u32 = 2147746224; -pub const ENUM_E_LAST: u32 = 2147746239; -pub const ENUM_S_FIRST: u32 = 262576; -pub const ENUM_S_LAST: u32 = 262591; -pub const CONVERT10_E_FIRST: u32 = 2147746240; -pub const CONVERT10_E_LAST: u32 = 2147746255; -pub const CONVERT10_S_FIRST: u32 = 262592; -pub const CONVERT10_S_LAST: u32 = 262607; -pub const CLIPBRD_E_FIRST: u32 = 2147746256; -pub const CLIPBRD_E_LAST: u32 = 2147746271; -pub const CLIPBRD_S_FIRST: u32 = 262608; -pub const CLIPBRD_S_LAST: u32 = 262623; -pub const MK_E_FIRST: u32 = 2147746272; -pub const MK_E_LAST: u32 = 2147746287; -pub const MK_S_FIRST: u32 = 262624; -pub const MK_S_LAST: u32 = 262639; -pub const CO_E_FIRST: u32 = 2147746288; -pub const CO_E_LAST: u32 = 2147746303; -pub const CO_S_FIRST: u32 = 262640; -pub const CO_S_LAST: u32 = 262655; -pub const EVENT_E_FIRST: u32 = 2147746304; -pub const EVENT_E_LAST: u32 = 2147746335; -pub const EVENT_S_FIRST: u32 = 262656; -pub const EVENT_S_LAST: u32 = 262687; -pub const XACT_E_FIRST: u32 = 2147799040; -pub const XACT_E_LAST: u32 = 2147799083; -pub const XACT_S_FIRST: u32 = 315392; -pub const XACT_S_LAST: u32 = 315408; -pub const CONTEXT_E_FIRST: u32 = 2147803136; -pub const CONTEXT_E_LAST: u32 = 2147803183; -pub const CONTEXT_S_FIRST: u32 = 319488; -pub const CONTEXT_S_LAST: u32 = 319535; -pub const NTE_OP_OK: u32 = 0; -pub const SCARD_S_SUCCESS: u32 = 0; -pub const TC_NORMAL: u32 = 0; -pub const TC_HARDERR: u32 = 1; -pub const TC_GP_TRAP: u32 = 2; -pub const TC_SIGNAL: u32 = 3; -pub const AC_LINE_OFFLINE: u32 = 0; -pub const AC_LINE_ONLINE: u32 = 1; -pub const AC_LINE_BACKUP_POWER: u32 = 2; -pub const AC_LINE_UNKNOWN: u32 = 255; -pub const BATTERY_FLAG_HIGH: u32 = 1; -pub const BATTERY_FLAG_LOW: u32 = 2; -pub const BATTERY_FLAG_CRITICAL: u32 = 4; -pub const BATTERY_FLAG_CHARGING: u32 = 8; -pub const BATTERY_FLAG_NO_BATTERY: u32 = 128; -pub const BATTERY_FLAG_UNKNOWN: u32 = 255; -pub const BATTERY_PERCENTAGE_UNKNOWN: u32 = 255; -pub const SYSTEM_STATUS_FLAG_POWER_SAVING_ON: u32 = 1; -pub const BATTERY_LIFE_UNKNOWN: u32 = 4294967295; -pub const ACTCTX_FLAG_PROCESSOR_ARCHITECTURE_VALID: u32 = 1; -pub const ACTCTX_FLAG_LANGID_VALID: u32 = 2; -pub const ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID: u32 = 4; -pub const ACTCTX_FLAG_RESOURCE_NAME_VALID: u32 = 8; -pub const ACTCTX_FLAG_SET_PROCESS_DEFAULT: u32 = 16; -pub const ACTCTX_FLAG_APPLICATION_NAME_VALID: u32 = 32; -pub const ACTCTX_FLAG_SOURCE_IS_ASSEMBLYREF: u32 = 64; -pub const ACTCTX_FLAG_HMODULE_VALID: u32 = 128; -pub const DEACTIVATE_ACTCTX_FLAG_FORCE_EARLY_DEACTIVATION: u32 = 1; -pub const FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX: u32 = 1; -pub const FIND_ACTCTX_SECTION_KEY_RETURN_FLAGS: u32 = 2; -pub const FIND_ACTCTX_SECTION_KEY_RETURN_ASSEMBLY_METADATA: u32 = 4; -pub const ACTIVATION_CONTEXT_BASIC_INFORMATION_DEFINED: u32 = 1; -pub const QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX: u32 = 4; -pub const QUERY_ACTCTX_FLAG_ACTCTX_IS_HMODULE: u32 = 8; -pub const QUERY_ACTCTX_FLAG_ACTCTX_IS_ADDRESS: u32 = 16; -pub const QUERY_ACTCTX_FLAG_NO_ADDREF: u32 = 2147483648; -pub const RESTART_MAX_CMD_LINE: u32 = 1024; -pub const RESTART_NO_CRASH: u32 = 1; -pub const RESTART_NO_HANG: u32 = 2; -pub const RESTART_NO_PATCH: u32 = 4; -pub const RESTART_NO_REBOOT: u32 = 8; -pub const RECOVERY_DEFAULT_PING_INTERVAL: u32 = 5000; -pub const RECOVERY_MAX_PING_INTERVAL: u32 = 300000; -pub const FILE_RENAME_FLAG_REPLACE_IF_EXISTS: u32 = 1; -pub const FILE_RENAME_FLAG_POSIX_SEMANTICS: u32 = 2; -pub const FILE_RENAME_FLAG_SUPPRESS_PIN_STATE_INHERITANCE: u32 = 4; -pub const FILE_DISPOSITION_FLAG_DO_NOT_DELETE: u32 = 0; -pub const FILE_DISPOSITION_FLAG_DELETE: u32 = 1; -pub const FILE_DISPOSITION_FLAG_POSIX_SEMANTICS: u32 = 2; -pub const FILE_DISPOSITION_FLAG_FORCE_IMAGE_SECTION_CHECK: u32 = 4; -pub const FILE_DISPOSITION_FLAG_ON_CLOSE: u32 = 8; -pub const FILE_DISPOSITION_FLAG_IGNORE_READONLY_ATTRIBUTE: u32 = 16; -pub const STORAGE_INFO_FLAGS_ALIGNED_DEVICE: u32 = 1; -pub const STORAGE_INFO_FLAGS_PARTITION_ALIGNED_ON_DEVICE: u32 = 2; -pub const STORAGE_INFO_OFFSET_UNKNOWN: u32 = 4294967295; -pub const REMOTE_PROTOCOL_INFO_FLAG_LOOPBACK: u32 = 1; -pub const REMOTE_PROTOCOL_INFO_FLAG_OFFLINE: u32 = 2; -pub const REMOTE_PROTOCOL_INFO_FLAG_PERSISTENT_HANDLE: u32 = 4; -pub const RPI_FLAG_SMB2_SHARECAP_TIMEWARP: u32 = 2; -pub const RPI_FLAG_SMB2_SHARECAP_DFS: u32 = 8; -pub const RPI_FLAG_SMB2_SHARECAP_CONTINUOUS_AVAILABILITY: u32 = 16; -pub const RPI_FLAG_SMB2_SHARECAP_SCALEOUT: u32 = 32; -pub const RPI_FLAG_SMB2_SHARECAP_CLUSTER: u32 = 64; -pub const RPI_SMB2_SHAREFLAG_ENCRYPT_DATA: u32 = 1; -pub const RPI_SMB2_SHAREFLAG_COMPRESS_DATA: u32 = 2; -pub const RPI_SMB2_FLAG_SERVERCAP_DFS: u32 = 1; -pub const RPI_SMB2_FLAG_SERVERCAP_LEASING: u32 = 2; -pub const RPI_SMB2_FLAG_SERVERCAP_LARGEMTU: u32 = 4; -pub const RPI_SMB2_FLAG_SERVERCAP_MULTICHANNEL: u32 = 8; -pub const RPI_SMB2_FLAG_SERVERCAP_PERSISTENT_HANDLES: u32 = 16; -pub const RPI_SMB2_FLAG_SERVERCAP_DIRECTORY_LEASING: u32 = 32; -pub const SYMBOLIC_LINK_FLAG_DIRECTORY: u32 = 1; -pub const SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE: u32 = 2; -pub const MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS: u32 = 1; -pub const MICROSOFT_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS: u32 = 0; -pub const R2_BLACK: u32 = 1; -pub const R2_NOTMERGEPEN: u32 = 2; -pub const R2_MASKNOTPEN: u32 = 3; -pub const R2_NOTCOPYPEN: u32 = 4; -pub const R2_MASKPENNOT: u32 = 5; -pub const R2_NOT: u32 = 6; -pub const R2_XORPEN: u32 = 7; -pub const R2_NOTMASKPEN: u32 = 8; -pub const R2_MASKPEN: u32 = 9; -pub const R2_NOTXORPEN: u32 = 10; -pub const R2_NOP: u32 = 11; -pub const R2_MERGENOTPEN: u32 = 12; -pub const R2_COPYPEN: u32 = 13; -pub const R2_MERGEPENNOT: u32 = 14; -pub const R2_MERGEPEN: u32 = 15; -pub const R2_WHITE: u32 = 16; -pub const R2_LAST: u32 = 16; -pub const GDI_ERROR: u32 = 4294967295; -pub const ERROR: u32 = 0; -pub const NULLREGION: u32 = 1; -pub const SIMPLEREGION: u32 = 2; -pub const COMPLEXREGION: u32 = 3; -pub const RGN_ERROR: u32 = 0; -pub const RGN_AND: u32 = 1; -pub const RGN_OR: u32 = 2; -pub const RGN_XOR: u32 = 3; -pub const RGN_DIFF: u32 = 4; -pub const RGN_COPY: u32 = 5; -pub const RGN_MIN: u32 = 1; -pub const RGN_MAX: u32 = 5; -pub const BLACKONWHITE: u32 = 1; -pub const WHITEONBLACK: u32 = 2; -pub const COLORONCOLOR: u32 = 3; -pub const HALFTONE: u32 = 4; -pub const MAXSTRETCHBLTMODE: u32 = 4; -pub const STRETCH_ANDSCANS: u32 = 1; -pub const STRETCH_ORSCANS: u32 = 2; -pub const STRETCH_DELETESCANS: u32 = 3; -pub const STRETCH_HALFTONE: u32 = 4; -pub const ALTERNATE: u32 = 1; -pub const WINDING: u32 = 2; -pub const POLYFILL_LAST: u32 = 2; -pub const LAYOUT_RTL: u32 = 1; -pub const LAYOUT_BTT: u32 = 2; -pub const LAYOUT_VBH: u32 = 4; -pub const LAYOUT_ORIENTATIONMASK: u32 = 7; -pub const LAYOUT_BITMAPORIENTATIONPRESERVED: u32 = 8; -pub const TA_NOUPDATECP: u32 = 0; -pub const TA_UPDATECP: u32 = 1; -pub const TA_LEFT: u32 = 0; -pub const TA_RIGHT: u32 = 2; -pub const TA_CENTER: u32 = 6; -pub const TA_TOP: u32 = 0; -pub const TA_BOTTOM: u32 = 8; -pub const TA_BASELINE: u32 = 24; -pub const TA_RTLREADING: u32 = 256; -pub const TA_MASK: u32 = 287; -pub const VTA_BASELINE: u32 = 24; -pub const VTA_LEFT: u32 = 8; -pub const VTA_RIGHT: u32 = 0; -pub const VTA_CENTER: u32 = 6; -pub const VTA_BOTTOM: u32 = 2; -pub const VTA_TOP: u32 = 0; -pub const ETO_OPAQUE: u32 = 2; -pub const ETO_CLIPPED: u32 = 4; -pub const ETO_GLYPH_INDEX: u32 = 16; -pub const ETO_RTLREADING: u32 = 128; -pub const ETO_NUMERICSLOCAL: u32 = 1024; -pub const ETO_NUMERICSLATIN: u32 = 2048; -pub const ETO_IGNORELANGUAGE: u32 = 4096; -pub const ETO_PDY: u32 = 8192; -pub const ETO_REVERSE_INDEX_MAP: u32 = 65536; -pub const ASPECT_FILTERING: u32 = 1; -pub const DCB_RESET: u32 = 1; -pub const DCB_ACCUMULATE: u32 = 2; -pub const DCB_DIRTY: u32 = 2; -pub const DCB_SET: u32 = 3; -pub const DCB_ENABLE: u32 = 4; -pub const DCB_DISABLE: u32 = 8; -pub const META_SETBKCOLOR: u32 = 513; -pub const META_SETBKMODE: u32 = 258; -pub const META_SETMAPMODE: u32 = 259; -pub const META_SETROP2: u32 = 260; -pub const META_SETRELABS: u32 = 261; -pub const META_SETPOLYFILLMODE: u32 = 262; -pub const META_SETSTRETCHBLTMODE: u32 = 263; -pub const META_SETTEXTCHAREXTRA: u32 = 264; -pub const META_SETTEXTCOLOR: u32 = 521; -pub const META_SETTEXTJUSTIFICATION: u32 = 522; -pub const META_SETWINDOWORG: u32 = 523; -pub const META_SETWINDOWEXT: u32 = 524; -pub const META_SETVIEWPORTORG: u32 = 525; -pub const META_SETVIEWPORTEXT: u32 = 526; -pub const META_OFFSETWINDOWORG: u32 = 527; -pub const META_SCALEWINDOWEXT: u32 = 1040; -pub const META_OFFSETVIEWPORTORG: u32 = 529; -pub const META_SCALEVIEWPORTEXT: u32 = 1042; -pub const META_LINETO: u32 = 531; -pub const META_MOVETO: u32 = 532; -pub const META_EXCLUDECLIPRECT: u32 = 1045; -pub const META_INTERSECTCLIPRECT: u32 = 1046; -pub const META_ARC: u32 = 2071; -pub const META_ELLIPSE: u32 = 1048; -pub const META_FLOODFILL: u32 = 1049; -pub const META_PIE: u32 = 2074; -pub const META_RECTANGLE: u32 = 1051; -pub const META_ROUNDRECT: u32 = 1564; -pub const META_PATBLT: u32 = 1565; -pub const META_SAVEDC: u32 = 30; -pub const META_SETPIXEL: u32 = 1055; -pub const META_OFFSETCLIPRGN: u32 = 544; -pub const META_TEXTOUT: u32 = 1313; -pub const META_BITBLT: u32 = 2338; -pub const META_STRETCHBLT: u32 = 2851; -pub const META_POLYGON: u32 = 804; -pub const META_POLYLINE: u32 = 805; -pub const META_ESCAPE: u32 = 1574; -pub const META_RESTOREDC: u32 = 295; -pub const META_FILLREGION: u32 = 552; -pub const META_FRAMEREGION: u32 = 1065; -pub const META_INVERTREGION: u32 = 298; -pub const META_PAINTREGION: u32 = 299; -pub const META_SELECTCLIPREGION: u32 = 300; -pub const META_SELECTOBJECT: u32 = 301; -pub const META_SETTEXTALIGN: u32 = 302; -pub const META_CHORD: u32 = 2096; -pub const META_SETMAPPERFLAGS: u32 = 561; -pub const META_EXTTEXTOUT: u32 = 2610; -pub const META_SETDIBTODEV: u32 = 3379; -pub const META_SELECTPALETTE: u32 = 564; -pub const META_REALIZEPALETTE: u32 = 53; -pub const META_ANIMATEPALETTE: u32 = 1078; -pub const META_SETPALENTRIES: u32 = 55; -pub const META_POLYPOLYGON: u32 = 1336; -pub const META_RESIZEPALETTE: u32 = 313; -pub const META_DIBBITBLT: u32 = 2368; -pub const META_DIBSTRETCHBLT: u32 = 2881; -pub const META_DIBCREATEPATTERNBRUSH: u32 = 322; -pub const META_STRETCHDIB: u32 = 3907; -pub const META_EXTFLOODFILL: u32 = 1352; -pub const META_SETLAYOUT: u32 = 329; -pub const META_DELETEOBJECT: u32 = 496; -pub const META_CREATEPALETTE: u32 = 247; -pub const META_CREATEPATTERNBRUSH: u32 = 505; -pub const META_CREATEPENINDIRECT: u32 = 762; -pub const META_CREATEFONTINDIRECT: u32 = 763; -pub const META_CREATEBRUSHINDIRECT: u32 = 764; -pub const META_CREATEREGION: u32 = 1791; -pub const NEWFRAME: u32 = 1; -pub const ABORTDOC: u32 = 2; -pub const NEXTBAND: u32 = 3; -pub const SETCOLORTABLE: u32 = 4; -pub const GETCOLORTABLE: u32 = 5; -pub const FLUSHOUTPUT: u32 = 6; -pub const DRAFTMODE: u32 = 7; -pub const QUERYESCSUPPORT: u32 = 8; -pub const SETABORTPROC: u32 = 9; -pub const STARTDOC: u32 = 10; -pub const ENDDOC: u32 = 11; -pub const GETPHYSPAGESIZE: u32 = 12; -pub const GETPRINTINGOFFSET: u32 = 13; -pub const GETSCALINGFACTOR: u32 = 14; -pub const MFCOMMENT: u32 = 15; -pub const GETPENWIDTH: u32 = 16; -pub const SETCOPYCOUNT: u32 = 17; -pub const SELECTPAPERSOURCE: u32 = 18; -pub const DEVICEDATA: u32 = 19; -pub const PASSTHROUGH: u32 = 19; -pub const GETTECHNOLGY: u32 = 20; -pub const GETTECHNOLOGY: u32 = 20; -pub const SETLINECAP: u32 = 21; -pub const SETLINEJOIN: u32 = 22; -pub const SETMITERLIMIT: u32 = 23; -pub const BANDINFO: u32 = 24; -pub const DRAWPATTERNRECT: u32 = 25; -pub const GETVECTORPENSIZE: u32 = 26; -pub const GETVECTORBRUSHSIZE: u32 = 27; -pub const ENABLEDUPLEX: u32 = 28; -pub const GETSETPAPERBINS: u32 = 29; -pub const GETSETPRINTORIENT: u32 = 30; -pub const ENUMPAPERBINS: u32 = 31; -pub const SETDIBSCALING: u32 = 32; -pub const EPSPRINTING: u32 = 33; -pub const ENUMPAPERMETRICS: u32 = 34; -pub const GETSETPAPERMETRICS: u32 = 35; -pub const POSTSCRIPT_DATA: u32 = 37; -pub const POSTSCRIPT_IGNORE: u32 = 38; -pub const MOUSETRAILS: u32 = 39; -pub const GETDEVICEUNITS: u32 = 42; -pub const GETEXTENDEDTEXTMETRICS: u32 = 256; -pub const GETEXTENTTABLE: u32 = 257; -pub const GETPAIRKERNTABLE: u32 = 258; -pub const GETTRACKKERNTABLE: u32 = 259; -pub const EXTTEXTOUT: u32 = 512; -pub const GETFACENAME: u32 = 513; -pub const DOWNLOADFACE: u32 = 514; -pub const ENABLERELATIVEWIDTHS: u32 = 768; -pub const ENABLEPAIRKERNING: u32 = 769; -pub const SETKERNTRACK: u32 = 770; -pub const SETALLJUSTVALUES: u32 = 771; -pub const SETCHARSET: u32 = 772; -pub const STRETCHBLT: u32 = 2048; -pub const METAFILE_DRIVER: u32 = 2049; -pub const GETSETSCREENPARAMS: u32 = 3072; -pub const QUERYDIBSUPPORT: u32 = 3073; -pub const BEGIN_PATH: u32 = 4096; -pub const CLIP_TO_PATH: u32 = 4097; -pub const END_PATH: u32 = 4098; -pub const EXT_DEVICE_CAPS: u32 = 4099; -pub const RESTORE_CTM: u32 = 4100; -pub const SAVE_CTM: u32 = 4101; -pub const SET_ARC_DIRECTION: u32 = 4102; -pub const SET_BACKGROUND_COLOR: u32 = 4103; -pub const SET_POLY_MODE: u32 = 4104; -pub const SET_SCREEN_ANGLE: u32 = 4105; -pub const SET_SPREAD: u32 = 4106; -pub const TRANSFORM_CTM: u32 = 4107; -pub const SET_CLIP_BOX: u32 = 4108; -pub const SET_BOUNDS: u32 = 4109; -pub const SET_MIRROR_MODE: u32 = 4110; -pub const OPENCHANNEL: u32 = 4110; -pub const DOWNLOADHEADER: u32 = 4111; -pub const CLOSECHANNEL: u32 = 4112; -pub const POSTSCRIPT_PASSTHROUGH: u32 = 4115; -pub const ENCAPSULATED_POSTSCRIPT: u32 = 4116; -pub const POSTSCRIPT_IDENTIFY: u32 = 4117; -pub const POSTSCRIPT_INJECTION: u32 = 4118; -pub const CHECKJPEGFORMAT: u32 = 4119; -pub const CHECKPNGFORMAT: u32 = 4120; -pub const GET_PS_FEATURESETTING: u32 = 4121; -pub const GDIPLUS_TS_QUERYVER: u32 = 4122; -pub const GDIPLUS_TS_RECORD: u32 = 4123; -pub const MILCORE_TS_QUERYVER_RESULT_FALSE: u32 = 0; -pub const MILCORE_TS_QUERYVER_RESULT_TRUE: u32 = 2147483647; -pub const SPCLPASSTHROUGH2: u32 = 4568; -pub const PSIDENT_GDICENTRIC: u32 = 0; -pub const PSIDENT_PSCENTRIC: u32 = 1; -pub const PSINJECT_BEGINSTREAM: u32 = 1; -pub const PSINJECT_PSADOBE: u32 = 2; -pub const PSINJECT_PAGESATEND: u32 = 3; -pub const PSINJECT_PAGES: u32 = 4; -pub const PSINJECT_DOCNEEDEDRES: u32 = 5; -pub const PSINJECT_DOCSUPPLIEDRES: u32 = 6; -pub const PSINJECT_PAGEORDER: u32 = 7; -pub const PSINJECT_ORIENTATION: u32 = 8; -pub const PSINJECT_BOUNDINGBOX: u32 = 9; -pub const PSINJECT_DOCUMENTPROCESSCOLORS: u32 = 10; -pub const PSINJECT_COMMENTS: u32 = 11; -pub const PSINJECT_BEGINDEFAULTS: u32 = 12; -pub const PSINJECT_ENDDEFAULTS: u32 = 13; -pub const PSINJECT_BEGINPROLOG: u32 = 14; -pub const PSINJECT_ENDPROLOG: u32 = 15; -pub const PSINJECT_BEGINSETUP: u32 = 16; -pub const PSINJECT_ENDSETUP: u32 = 17; -pub const PSINJECT_TRAILER: u32 = 18; -pub const PSINJECT_EOF: u32 = 19; -pub const PSINJECT_ENDSTREAM: u32 = 20; -pub const PSINJECT_DOCUMENTPROCESSCOLORSATEND: u32 = 21; -pub const PSINJECT_PAGENUMBER: u32 = 100; -pub const PSINJECT_BEGINPAGESETUP: u32 = 101; -pub const PSINJECT_ENDPAGESETUP: u32 = 102; -pub const PSINJECT_PAGETRAILER: u32 = 103; -pub const PSINJECT_PLATECOLOR: u32 = 104; -pub const PSINJECT_SHOWPAGE: u32 = 105; -pub const PSINJECT_PAGEBBOX: u32 = 106; -pub const PSINJECT_ENDPAGECOMMENTS: u32 = 107; -pub const PSINJECT_VMSAVE: u32 = 200; -pub const PSINJECT_VMRESTORE: u32 = 201; -pub const PSINJECT_DLFONT: u32 = 3722304989; -pub const FEATURESETTING_NUP: u32 = 0; -pub const FEATURESETTING_OUTPUT: u32 = 1; -pub const FEATURESETTING_PSLEVEL: u32 = 2; -pub const FEATURESETTING_CUSTPAPER: u32 = 3; -pub const FEATURESETTING_MIRROR: u32 = 4; -pub const FEATURESETTING_NEGATIVE: u32 = 5; -pub const FEATURESETTING_PROTOCOL: u32 = 6; -pub const FEATURESETTING_PRIVATE_BEGIN: u32 = 4096; -pub const FEATURESETTING_PRIVATE_END: u32 = 8191; -pub const PSPROTOCOL_ASCII: u32 = 0; -pub const PSPROTOCOL_BCP: u32 = 1; -pub const PSPROTOCOL_TBCP: u32 = 2; -pub const PSPROTOCOL_BINARY: u32 = 3; -pub const QDI_SETDIBITS: u32 = 1; -pub const QDI_GETDIBITS: u32 = 2; -pub const QDI_DIBTOSCREEN: u32 = 4; -pub const QDI_STRETCHDIB: u32 = 8; -pub const SP_NOTREPORTED: u32 = 16384; -pub const SP_ERROR: i32 = -1; -pub const SP_APPABORT: i32 = -2; -pub const SP_USERABORT: i32 = -3; -pub const SP_OUTOFDISK: i32 = -4; -pub const SP_OUTOFMEMORY: i32 = -5; -pub const PR_JOBSTATUS: u32 = 0; -pub const OBJ_PEN: u32 = 1; -pub const OBJ_BRUSH: u32 = 2; -pub const OBJ_DC: u32 = 3; -pub const OBJ_METADC: u32 = 4; -pub const OBJ_PAL: u32 = 5; -pub const OBJ_FONT: u32 = 6; -pub const OBJ_BITMAP: u32 = 7; -pub const OBJ_REGION: u32 = 8; -pub const OBJ_METAFILE: u32 = 9; -pub const OBJ_MEMDC: u32 = 10; -pub const OBJ_EXTPEN: u32 = 11; -pub const OBJ_ENHMETADC: u32 = 12; -pub const OBJ_ENHMETAFILE: u32 = 13; -pub const OBJ_COLORSPACE: u32 = 14; -pub const GDI_OBJ_LAST: u32 = 14; -pub const GDI_MIN_OBJ_TYPE: u32 = 1; -pub const GDI_MAX_OBJ_TYPE: u32 = 14; -pub const MWT_IDENTITY: u32 = 1; -pub const MWT_LEFTMULTIPLY: u32 = 2; -pub const MWT_RIGHTMULTIPLY: u32 = 3; -pub const MWT_MIN: u32 = 1; -pub const MWT_MAX: u32 = 3; -pub const CS_ENABLE: u32 = 1; -pub const CS_DISABLE: u32 = 2; -pub const CS_DELETE_TRANSFORM: u32 = 3; -pub const LCS_CALIBRATED_RGB: u32 = 0; -pub const LCS_GM_BUSINESS: u32 = 1; -pub const LCS_GM_GRAPHICS: u32 = 2; -pub const LCS_GM_IMAGES: u32 = 4; -pub const LCS_GM_ABS_COLORIMETRIC: u32 = 8; -pub const CM_OUT_OF_GAMUT: u32 = 255; -pub const CM_IN_GAMUT: u32 = 0; -pub const ICM_ADDPROFILE: u32 = 1; -pub const ICM_DELETEPROFILE: u32 = 2; -pub const ICM_QUERYPROFILE: u32 = 3; -pub const ICM_SETDEFAULTPROFILE: u32 = 4; -pub const ICM_REGISTERICMATCHER: u32 = 5; -pub const ICM_UNREGISTERICMATCHER: u32 = 6; -pub const ICM_QUERYMATCH: u32 = 7; -pub const BI_RGB: u32 = 0; -pub const BI_RLE8: u32 = 1; -pub const BI_RLE4: u32 = 2; -pub const BI_BITFIELDS: u32 = 3; -pub const BI_JPEG: u32 = 4; -pub const BI_PNG: u32 = 5; -pub const TCI_SRCCHARSET: u32 = 1; -pub const TCI_SRCCODEPAGE: u32 = 2; -pub const TCI_SRCFONTSIG: u32 = 3; -pub const TCI_SRCLOCALE: u32 = 4096; -pub const TMPF_FIXED_PITCH: u32 = 1; -pub const TMPF_VECTOR: u32 = 2; -pub const TMPF_DEVICE: u32 = 8; -pub const TMPF_TRUETYPE: u32 = 4; -pub const NTM_REGULAR: u32 = 64; -pub const NTM_BOLD: u32 = 32; -pub const NTM_ITALIC: u32 = 1; -pub const NTM_NONNEGATIVE_AC: u32 = 65536; -pub const NTM_PS_OPENTYPE: u32 = 131072; -pub const NTM_TT_OPENTYPE: u32 = 262144; -pub const NTM_MULTIPLEMASTER: u32 = 524288; -pub const NTM_TYPE1: u32 = 1048576; -pub const NTM_DSIG: u32 = 2097152; -pub const LF_FACESIZE: u32 = 32; -pub const LF_FULLFACESIZE: u32 = 64; -pub const OUT_DEFAULT_PRECIS: u32 = 0; -pub const OUT_STRING_PRECIS: u32 = 1; -pub const OUT_CHARACTER_PRECIS: u32 = 2; -pub const OUT_STROKE_PRECIS: u32 = 3; -pub const OUT_TT_PRECIS: u32 = 4; -pub const OUT_DEVICE_PRECIS: u32 = 5; -pub const OUT_RASTER_PRECIS: u32 = 6; -pub const OUT_TT_ONLY_PRECIS: u32 = 7; -pub const OUT_OUTLINE_PRECIS: u32 = 8; -pub const OUT_SCREEN_OUTLINE_PRECIS: u32 = 9; -pub const OUT_PS_ONLY_PRECIS: u32 = 10; -pub const CLIP_DEFAULT_PRECIS: u32 = 0; -pub const CLIP_CHARACTER_PRECIS: u32 = 1; -pub const CLIP_STROKE_PRECIS: u32 = 2; -pub const CLIP_MASK: u32 = 15; -pub const CLIP_LH_ANGLES: u32 = 16; -pub const CLIP_TT_ALWAYS: u32 = 32; -pub const CLIP_DFA_DISABLE: u32 = 64; -pub const CLIP_EMBEDDED: u32 = 128; -pub const DEFAULT_QUALITY: u32 = 0; -pub const DRAFT_QUALITY: u32 = 1; -pub const PROOF_QUALITY: u32 = 2; -pub const NONANTIALIASED_QUALITY: u32 = 3; -pub const ANTIALIASED_QUALITY: u32 = 4; -pub const CLEARTYPE_QUALITY: u32 = 5; -pub const CLEARTYPE_NATURAL_QUALITY: u32 = 6; -pub const DEFAULT_PITCH: u32 = 0; -pub const FIXED_PITCH: u32 = 1; -pub const VARIABLE_PITCH: u32 = 2; -pub const MONO_FONT: u32 = 8; -pub const ANSI_CHARSET: u32 = 0; -pub const DEFAULT_CHARSET: u32 = 1; -pub const SYMBOL_CHARSET: u32 = 2; -pub const SHIFTJIS_CHARSET: u32 = 128; -pub const HANGEUL_CHARSET: u32 = 129; -pub const HANGUL_CHARSET: u32 = 129; -pub const GB2312_CHARSET: u32 = 134; -pub const CHINESEBIG5_CHARSET: u32 = 136; -pub const OEM_CHARSET: u32 = 255; -pub const JOHAB_CHARSET: u32 = 130; -pub const HEBREW_CHARSET: u32 = 177; -pub const ARABIC_CHARSET: u32 = 178; -pub const GREEK_CHARSET: u32 = 161; -pub const TURKISH_CHARSET: u32 = 162; -pub const VIETNAMESE_CHARSET: u32 = 163; -pub const THAI_CHARSET: u32 = 222; -pub const EASTEUROPE_CHARSET: u32 = 238; -pub const RUSSIAN_CHARSET: u32 = 204; -pub const MAC_CHARSET: u32 = 77; -pub const BALTIC_CHARSET: u32 = 186; -pub const FS_LATIN1: u32 = 1; -pub const FS_LATIN2: u32 = 2; -pub const FS_CYRILLIC: u32 = 4; -pub const FS_GREEK: u32 = 8; -pub const FS_TURKISH: u32 = 16; -pub const FS_HEBREW: u32 = 32; -pub const FS_ARABIC: u32 = 64; -pub const FS_BALTIC: u32 = 128; -pub const FS_VIETNAMESE: u32 = 256; -pub const FS_THAI: u32 = 65536; -pub const FS_JISJAPAN: u32 = 131072; -pub const FS_CHINESESIMP: u32 = 262144; -pub const FS_WANSUNG: u32 = 524288; -pub const FS_CHINESETRAD: u32 = 1048576; -pub const FS_JOHAB: u32 = 2097152; -pub const FS_SYMBOL: u32 = 2147483648; -pub const FF_DONTCARE: u32 = 0; -pub const FF_ROMAN: u32 = 16; -pub const FF_SWISS: u32 = 32; -pub const FF_MODERN: u32 = 48; -pub const FF_SCRIPT: u32 = 64; -pub const FF_DECORATIVE: u32 = 80; -pub const FW_DONTCARE: u32 = 0; -pub const FW_THIN: u32 = 100; -pub const FW_EXTRALIGHT: u32 = 200; -pub const FW_LIGHT: u32 = 300; -pub const FW_NORMAL: u32 = 400; -pub const FW_MEDIUM: u32 = 500; -pub const FW_SEMIBOLD: u32 = 600; -pub const FW_BOLD: u32 = 700; -pub const FW_EXTRABOLD: u32 = 800; -pub const FW_HEAVY: u32 = 900; -pub const FW_ULTRALIGHT: u32 = 200; -pub const FW_REGULAR: u32 = 400; -pub const FW_DEMIBOLD: u32 = 600; -pub const FW_ULTRABOLD: u32 = 800; -pub const FW_BLACK: u32 = 900; -pub const PANOSE_COUNT: u32 = 10; -pub const PAN_FAMILYTYPE_INDEX: u32 = 0; -pub const PAN_SERIFSTYLE_INDEX: u32 = 1; -pub const PAN_WEIGHT_INDEX: u32 = 2; -pub const PAN_PROPORTION_INDEX: u32 = 3; -pub const PAN_CONTRAST_INDEX: u32 = 4; -pub const PAN_STROKEVARIATION_INDEX: u32 = 5; -pub const PAN_ARMSTYLE_INDEX: u32 = 6; -pub const PAN_LETTERFORM_INDEX: u32 = 7; -pub const PAN_MIDLINE_INDEX: u32 = 8; -pub const PAN_XHEIGHT_INDEX: u32 = 9; -pub const PAN_CULTURE_LATIN: u32 = 0; -pub const PAN_ANY: u32 = 0; -pub const PAN_NO_FIT: u32 = 1; -pub const PAN_FAMILY_TEXT_DISPLAY: u32 = 2; -pub const PAN_FAMILY_SCRIPT: u32 = 3; -pub const PAN_FAMILY_DECORATIVE: u32 = 4; -pub const PAN_FAMILY_PICTORIAL: u32 = 5; -pub const PAN_SERIF_COVE: u32 = 2; -pub const PAN_SERIF_OBTUSE_COVE: u32 = 3; -pub const PAN_SERIF_SQUARE_COVE: u32 = 4; -pub const PAN_SERIF_OBTUSE_SQUARE_COVE: u32 = 5; -pub const PAN_SERIF_SQUARE: u32 = 6; -pub const PAN_SERIF_THIN: u32 = 7; -pub const PAN_SERIF_BONE: u32 = 8; -pub const PAN_SERIF_EXAGGERATED: u32 = 9; -pub const PAN_SERIF_TRIANGLE: u32 = 10; -pub const PAN_SERIF_NORMAL_SANS: u32 = 11; -pub const PAN_SERIF_OBTUSE_SANS: u32 = 12; -pub const PAN_SERIF_PERP_SANS: u32 = 13; -pub const PAN_SERIF_FLARED: u32 = 14; -pub const PAN_SERIF_ROUNDED: u32 = 15; -pub const PAN_WEIGHT_VERY_LIGHT: u32 = 2; -pub const PAN_WEIGHT_LIGHT: u32 = 3; -pub const PAN_WEIGHT_THIN: u32 = 4; -pub const PAN_WEIGHT_BOOK: u32 = 5; -pub const PAN_WEIGHT_MEDIUM: u32 = 6; -pub const PAN_WEIGHT_DEMI: u32 = 7; -pub const PAN_WEIGHT_BOLD: u32 = 8; -pub const PAN_WEIGHT_HEAVY: u32 = 9; -pub const PAN_WEIGHT_BLACK: u32 = 10; -pub const PAN_WEIGHT_NORD: u32 = 11; -pub const PAN_PROP_OLD_STYLE: u32 = 2; -pub const PAN_PROP_MODERN: u32 = 3; -pub const PAN_PROP_EVEN_WIDTH: u32 = 4; -pub const PAN_PROP_EXPANDED: u32 = 5; -pub const PAN_PROP_CONDENSED: u32 = 6; -pub const PAN_PROP_VERY_EXPANDED: u32 = 7; -pub const PAN_PROP_VERY_CONDENSED: u32 = 8; -pub const PAN_PROP_MONOSPACED: u32 = 9; -pub const PAN_CONTRAST_NONE: u32 = 2; -pub const PAN_CONTRAST_VERY_LOW: u32 = 3; -pub const PAN_CONTRAST_LOW: u32 = 4; -pub const PAN_CONTRAST_MEDIUM_LOW: u32 = 5; -pub const PAN_CONTRAST_MEDIUM: u32 = 6; -pub const PAN_CONTRAST_MEDIUM_HIGH: u32 = 7; -pub const PAN_CONTRAST_HIGH: u32 = 8; -pub const PAN_CONTRAST_VERY_HIGH: u32 = 9; -pub const PAN_STROKE_GRADUAL_DIAG: u32 = 2; -pub const PAN_STROKE_GRADUAL_TRAN: u32 = 3; -pub const PAN_STROKE_GRADUAL_VERT: u32 = 4; -pub const PAN_STROKE_GRADUAL_HORZ: u32 = 5; -pub const PAN_STROKE_RAPID_VERT: u32 = 6; -pub const PAN_STROKE_RAPID_HORZ: u32 = 7; -pub const PAN_STROKE_INSTANT_VERT: u32 = 8; -pub const PAN_STRAIGHT_ARMS_HORZ: u32 = 2; -pub const PAN_STRAIGHT_ARMS_WEDGE: u32 = 3; -pub const PAN_STRAIGHT_ARMS_VERT: u32 = 4; -pub const PAN_STRAIGHT_ARMS_SINGLE_SERIF: u32 = 5; -pub const PAN_STRAIGHT_ARMS_DOUBLE_SERIF: u32 = 6; -pub const PAN_BENT_ARMS_HORZ: u32 = 7; -pub const PAN_BENT_ARMS_WEDGE: u32 = 8; -pub const PAN_BENT_ARMS_VERT: u32 = 9; -pub const PAN_BENT_ARMS_SINGLE_SERIF: u32 = 10; -pub const PAN_BENT_ARMS_DOUBLE_SERIF: u32 = 11; -pub const PAN_LETT_NORMAL_CONTACT: u32 = 2; -pub const PAN_LETT_NORMAL_WEIGHTED: u32 = 3; -pub const PAN_LETT_NORMAL_BOXED: u32 = 4; -pub const PAN_LETT_NORMAL_FLATTENED: u32 = 5; -pub const PAN_LETT_NORMAL_ROUNDED: u32 = 6; -pub const PAN_LETT_NORMAL_OFF_CENTER: u32 = 7; -pub const PAN_LETT_NORMAL_SQUARE: u32 = 8; -pub const PAN_LETT_OBLIQUE_CONTACT: u32 = 9; -pub const PAN_LETT_OBLIQUE_WEIGHTED: u32 = 10; -pub const PAN_LETT_OBLIQUE_BOXED: u32 = 11; -pub const PAN_LETT_OBLIQUE_FLATTENED: u32 = 12; -pub const PAN_LETT_OBLIQUE_ROUNDED: u32 = 13; -pub const PAN_LETT_OBLIQUE_OFF_CENTER: u32 = 14; -pub const PAN_LETT_OBLIQUE_SQUARE: u32 = 15; -pub const PAN_MIDLINE_STANDARD_TRIMMED: u32 = 2; -pub const PAN_MIDLINE_STANDARD_POINTED: u32 = 3; -pub const PAN_MIDLINE_STANDARD_SERIFED: u32 = 4; -pub const PAN_MIDLINE_HIGH_TRIMMED: u32 = 5; -pub const PAN_MIDLINE_HIGH_POINTED: u32 = 6; -pub const PAN_MIDLINE_HIGH_SERIFED: u32 = 7; -pub const PAN_MIDLINE_CONSTANT_TRIMMED: u32 = 8; -pub const PAN_MIDLINE_CONSTANT_POINTED: u32 = 9; -pub const PAN_MIDLINE_CONSTANT_SERIFED: u32 = 10; -pub const PAN_MIDLINE_LOW_TRIMMED: u32 = 11; -pub const PAN_MIDLINE_LOW_POINTED: u32 = 12; -pub const PAN_MIDLINE_LOW_SERIFED: u32 = 13; -pub const PAN_XHEIGHT_CONSTANT_SMALL: u32 = 2; -pub const PAN_XHEIGHT_CONSTANT_STD: u32 = 3; -pub const PAN_XHEIGHT_CONSTANT_LARGE: u32 = 4; -pub const PAN_XHEIGHT_DUCKING_SMALL: u32 = 5; -pub const PAN_XHEIGHT_DUCKING_STD: u32 = 6; -pub const PAN_XHEIGHT_DUCKING_LARGE: u32 = 7; -pub const ELF_VENDOR_SIZE: u32 = 4; -pub const ELF_VERSION: u32 = 0; -pub const ELF_CULTURE_LATIN: u32 = 0; -pub const RASTER_FONTTYPE: u32 = 1; -pub const DEVICE_FONTTYPE: u32 = 2; -pub const TRUETYPE_FONTTYPE: u32 = 4; -pub const PC_RESERVED: u32 = 1; -pub const PC_EXPLICIT: u32 = 2; -pub const PC_NOCOLLAPSE: u32 = 4; -pub const TRANSPARENT: u32 = 1; -pub const OPAQUE: u32 = 2; -pub const BKMODE_LAST: u32 = 2; -pub const GM_COMPATIBLE: u32 = 1; -pub const GM_ADVANCED: u32 = 2; -pub const GM_LAST: u32 = 2; -pub const PT_CLOSEFIGURE: u32 = 1; -pub const PT_LINETO: u32 = 2; -pub const PT_BEZIERTO: u32 = 4; -pub const PT_MOVETO: u32 = 6; -pub const MM_TEXT: u32 = 1; -pub const MM_LOMETRIC: u32 = 2; -pub const MM_HIMETRIC: u32 = 3; -pub const MM_LOENGLISH: u32 = 4; -pub const MM_HIENGLISH: u32 = 5; -pub const MM_TWIPS: u32 = 6; -pub const MM_ISOTROPIC: u32 = 7; -pub const MM_ANISOTROPIC: u32 = 8; -pub const MM_MIN: u32 = 1; -pub const MM_MAX: u32 = 8; -pub const MM_MAX_FIXEDSCALE: u32 = 6; -pub const ABSOLUTE: u32 = 1; -pub const RELATIVE: u32 = 2; -pub const WHITE_BRUSH: u32 = 0; -pub const LTGRAY_BRUSH: u32 = 1; -pub const GRAY_BRUSH: u32 = 2; -pub const DKGRAY_BRUSH: u32 = 3; -pub const BLACK_BRUSH: u32 = 4; -pub const NULL_BRUSH: u32 = 5; -pub const HOLLOW_BRUSH: u32 = 5; -pub const WHITE_PEN: u32 = 6; -pub const BLACK_PEN: u32 = 7; -pub const NULL_PEN: u32 = 8; -pub const OEM_FIXED_FONT: u32 = 10; -pub const ANSI_FIXED_FONT: u32 = 11; -pub const ANSI_VAR_FONT: u32 = 12; -pub const SYSTEM_FONT: u32 = 13; -pub const DEVICE_DEFAULT_FONT: u32 = 14; -pub const DEFAULT_PALETTE: u32 = 15; -pub const SYSTEM_FIXED_FONT: u32 = 16; -pub const DEFAULT_GUI_FONT: u32 = 17; -pub const DC_BRUSH: u32 = 18; -pub const DC_PEN: u32 = 19; -pub const STOCK_LAST: u32 = 19; -pub const CLR_INVALID: u32 = 4294967295; -pub const BS_SOLID: u32 = 0; -pub const BS_NULL: u32 = 1; -pub const BS_HOLLOW: u32 = 1; -pub const BS_HATCHED: u32 = 2; -pub const BS_PATTERN: u32 = 3; -pub const BS_INDEXED: u32 = 4; -pub const BS_DIBPATTERN: u32 = 5; -pub const BS_DIBPATTERNPT: u32 = 6; -pub const BS_PATTERN8X8: u32 = 7; -pub const BS_DIBPATTERN8X8: u32 = 8; -pub const BS_MONOPATTERN: u32 = 9; -pub const HS_HORIZONTAL: u32 = 0; -pub const HS_VERTICAL: u32 = 1; -pub const HS_FDIAGONAL: u32 = 2; -pub const HS_BDIAGONAL: u32 = 3; -pub const HS_CROSS: u32 = 4; -pub const HS_DIAGCROSS: u32 = 5; -pub const HS_API_MAX: u32 = 12; -pub const PS_SOLID: u32 = 0; -pub const PS_DASH: u32 = 1; -pub const PS_DOT: u32 = 2; -pub const PS_DASHDOT: u32 = 3; -pub const PS_DASHDOTDOT: u32 = 4; -pub const PS_NULL: u32 = 5; -pub const PS_INSIDEFRAME: u32 = 6; -pub const PS_USERSTYLE: u32 = 7; -pub const PS_ALTERNATE: u32 = 8; -pub const PS_STYLE_MASK: u32 = 15; -pub const PS_ENDCAP_ROUND: u32 = 0; -pub const PS_ENDCAP_SQUARE: u32 = 256; -pub const PS_ENDCAP_FLAT: u32 = 512; -pub const PS_ENDCAP_MASK: u32 = 3840; -pub const PS_JOIN_ROUND: u32 = 0; -pub const PS_JOIN_BEVEL: u32 = 4096; -pub const PS_JOIN_MITER: u32 = 8192; -pub const PS_JOIN_MASK: u32 = 61440; -pub const PS_COSMETIC: u32 = 0; -pub const PS_GEOMETRIC: u32 = 65536; -pub const PS_TYPE_MASK: u32 = 983040; -pub const AD_COUNTERCLOCKWISE: u32 = 1; -pub const AD_CLOCKWISE: u32 = 2; -pub const DRIVERVERSION: u32 = 0; -pub const TECHNOLOGY: u32 = 2; -pub const HORZSIZE: u32 = 4; -pub const VERTSIZE: u32 = 6; -pub const HORZRES: u32 = 8; -pub const VERTRES: u32 = 10; -pub const BITSPIXEL: u32 = 12; -pub const PLANES: u32 = 14; -pub const NUMBRUSHES: u32 = 16; -pub const NUMPENS: u32 = 18; -pub const NUMMARKERS: u32 = 20; -pub const NUMFONTS: u32 = 22; -pub const NUMCOLORS: u32 = 24; -pub const PDEVICESIZE: u32 = 26; -pub const CURVECAPS: u32 = 28; -pub const LINECAPS: u32 = 30; -pub const POLYGONALCAPS: u32 = 32; -pub const TEXTCAPS: u32 = 34; -pub const CLIPCAPS: u32 = 36; -pub const RASTERCAPS: u32 = 38; -pub const ASPECTX: u32 = 40; -pub const ASPECTY: u32 = 42; -pub const ASPECTXY: u32 = 44; -pub const LOGPIXELSX: u32 = 88; -pub const LOGPIXELSY: u32 = 90; -pub const SIZEPALETTE: u32 = 104; -pub const NUMRESERVED: u32 = 106; -pub const COLORRES: u32 = 108; -pub const PHYSICALWIDTH: u32 = 110; -pub const PHYSICALHEIGHT: u32 = 111; -pub const PHYSICALOFFSETX: u32 = 112; -pub const PHYSICALOFFSETY: u32 = 113; -pub const SCALINGFACTORX: u32 = 114; -pub const SCALINGFACTORY: u32 = 115; -pub const VREFRESH: u32 = 116; -pub const DESKTOPVERTRES: u32 = 117; -pub const DESKTOPHORZRES: u32 = 118; -pub const BLTALIGNMENT: u32 = 119; -pub const SHADEBLENDCAPS: u32 = 120; -pub const COLORMGMTCAPS: u32 = 121; -pub const DT_PLOTTER: u32 = 0; -pub const DT_RASDISPLAY: u32 = 1; -pub const DT_RASPRINTER: u32 = 2; -pub const DT_RASCAMERA: u32 = 3; -pub const DT_CHARSTREAM: u32 = 4; -pub const DT_METAFILE: u32 = 5; -pub const DT_DISPFILE: u32 = 6; -pub const CC_NONE: u32 = 0; -pub const CC_CIRCLES: u32 = 1; -pub const CC_PIE: u32 = 2; -pub const CC_CHORD: u32 = 4; -pub const CC_ELLIPSES: u32 = 8; -pub const CC_WIDE: u32 = 16; -pub const CC_STYLED: u32 = 32; -pub const CC_WIDESTYLED: u32 = 64; -pub const CC_INTERIORS: u32 = 128; -pub const CC_ROUNDRECT: u32 = 256; -pub const LC_NONE: u32 = 0; -pub const LC_POLYLINE: u32 = 2; -pub const LC_MARKER: u32 = 4; -pub const LC_POLYMARKER: u32 = 8; -pub const LC_WIDE: u32 = 16; -pub const LC_STYLED: u32 = 32; -pub const LC_WIDESTYLED: u32 = 64; -pub const LC_INTERIORS: u32 = 128; -pub const PC_NONE: u32 = 0; -pub const PC_POLYGON: u32 = 1; -pub const PC_RECTANGLE: u32 = 2; -pub const PC_WINDPOLYGON: u32 = 4; -pub const PC_TRAPEZOID: u32 = 4; -pub const PC_SCANLINE: u32 = 8; -pub const PC_WIDE: u32 = 16; -pub const PC_STYLED: u32 = 32; -pub const PC_WIDESTYLED: u32 = 64; -pub const PC_INTERIORS: u32 = 128; -pub const PC_POLYPOLYGON: u32 = 256; -pub const PC_PATHS: u32 = 512; -pub const CP_NONE: u32 = 0; -pub const CP_RECTANGLE: u32 = 1; -pub const CP_REGION: u32 = 2; -pub const TC_OP_CHARACTER: u32 = 1; -pub const TC_OP_STROKE: u32 = 2; -pub const TC_CP_STROKE: u32 = 4; -pub const TC_CR_90: u32 = 8; -pub const TC_CR_ANY: u32 = 16; -pub const TC_SF_X_YINDEP: u32 = 32; -pub const TC_SA_DOUBLE: u32 = 64; -pub const TC_SA_INTEGER: u32 = 128; -pub const TC_SA_CONTIN: u32 = 256; -pub const TC_EA_DOUBLE: u32 = 512; -pub const TC_IA_ABLE: u32 = 1024; -pub const TC_UA_ABLE: u32 = 2048; -pub const TC_SO_ABLE: u32 = 4096; -pub const TC_RA_ABLE: u32 = 8192; -pub const TC_VA_ABLE: u32 = 16384; -pub const TC_RESERVED: u32 = 32768; -pub const TC_SCROLLBLT: u32 = 65536; -pub const RC_BITBLT: u32 = 1; -pub const RC_BANDING: u32 = 2; -pub const RC_SCALING: u32 = 4; -pub const RC_BITMAP64: u32 = 8; -pub const RC_GDI20_OUTPUT: u32 = 16; -pub const RC_GDI20_STATE: u32 = 32; -pub const RC_SAVEBITMAP: u32 = 64; -pub const RC_DI_BITMAP: u32 = 128; -pub const RC_PALETTE: u32 = 256; -pub const RC_DIBTODEV: u32 = 512; -pub const RC_BIGFONT: u32 = 1024; -pub const RC_STRETCHBLT: u32 = 2048; -pub const RC_FLOODFILL: u32 = 4096; -pub const RC_STRETCHDIB: u32 = 8192; -pub const RC_OP_DX_OUTPUT: u32 = 16384; -pub const RC_DEVBITS: u32 = 32768; -pub const SB_NONE: u32 = 0; -pub const SB_CONST_ALPHA: u32 = 1; -pub const SB_PIXEL_ALPHA: u32 = 2; -pub const SB_PREMULT_ALPHA: u32 = 4; -pub const SB_GRAD_RECT: u32 = 16; -pub const SB_GRAD_TRI: u32 = 32; -pub const CM_NONE: u32 = 0; -pub const CM_DEVICE_ICM: u32 = 1; -pub const CM_GAMMA_RAMP: u32 = 2; -pub const CM_CMYK_COLOR: u32 = 4; -pub const DIB_RGB_COLORS: u32 = 0; -pub const DIB_PAL_COLORS: u32 = 1; -pub const SYSPAL_ERROR: u32 = 0; -pub const SYSPAL_STATIC: u32 = 1; -pub const SYSPAL_NOSTATIC: u32 = 2; -pub const SYSPAL_NOSTATIC256: u32 = 3; -pub const CBM_INIT: u32 = 4; -pub const FLOODFILLBORDER: u32 = 0; -pub const FLOODFILLSURFACE: u32 = 1; -pub const CCHDEVICENAME: u32 = 32; -pub const CCHFORMNAME: u32 = 32; -pub const DM_SPECVERSION: u32 = 1025; -pub const DM_ORIENTATION: u32 = 1; -pub const DM_PAPERSIZE: u32 = 2; -pub const DM_PAPERLENGTH: u32 = 4; -pub const DM_PAPERWIDTH: u32 = 8; -pub const DM_SCALE: u32 = 16; -pub const DM_POSITION: u32 = 32; -pub const DM_NUP: u32 = 64; -pub const DM_DISPLAYORIENTATION: u32 = 128; -pub const DM_COPIES: u32 = 256; -pub const DM_DEFAULTSOURCE: u32 = 512; -pub const DM_PRINTQUALITY: u32 = 1024; -pub const DM_COLOR: u32 = 2048; -pub const DM_DUPLEX: u32 = 4096; -pub const DM_YRESOLUTION: u32 = 8192; -pub const DM_TTOPTION: u32 = 16384; -pub const DM_COLLATE: u32 = 32768; -pub const DM_FORMNAME: u32 = 65536; -pub const DM_LOGPIXELS: u32 = 131072; -pub const DM_BITSPERPEL: u32 = 262144; -pub const DM_PELSWIDTH: u32 = 524288; -pub const DM_PELSHEIGHT: u32 = 1048576; -pub const DM_DISPLAYFLAGS: u32 = 2097152; -pub const DM_DISPLAYFREQUENCY: u32 = 4194304; -pub const DM_ICMMETHOD: u32 = 8388608; -pub const DM_ICMINTENT: u32 = 16777216; -pub const DM_MEDIATYPE: u32 = 33554432; -pub const DM_DITHERTYPE: u32 = 67108864; -pub const DM_PANNINGWIDTH: u32 = 134217728; -pub const DM_PANNINGHEIGHT: u32 = 268435456; -pub const DM_DISPLAYFIXEDOUTPUT: u32 = 536870912; -pub const DMORIENT_PORTRAIT: u32 = 1; -pub const DMORIENT_LANDSCAPE: u32 = 2; -pub const DMPAPER_LETTER: u32 = 1; -pub const DMPAPER_LETTERSMALL: u32 = 2; -pub const DMPAPER_TABLOID: u32 = 3; -pub const DMPAPER_LEDGER: u32 = 4; -pub const DMPAPER_LEGAL: u32 = 5; -pub const DMPAPER_STATEMENT: u32 = 6; -pub const DMPAPER_EXECUTIVE: u32 = 7; -pub const DMPAPER_A3: u32 = 8; -pub const DMPAPER_A4: u32 = 9; -pub const DMPAPER_A4SMALL: u32 = 10; -pub const DMPAPER_A5: u32 = 11; -pub const DMPAPER_B4: u32 = 12; -pub const DMPAPER_B5: u32 = 13; -pub const DMPAPER_FOLIO: u32 = 14; -pub const DMPAPER_QUARTO: u32 = 15; -pub const DMPAPER_10X14: u32 = 16; -pub const DMPAPER_11X17: u32 = 17; -pub const DMPAPER_NOTE: u32 = 18; -pub const DMPAPER_ENV_9: u32 = 19; -pub const DMPAPER_ENV_10: u32 = 20; -pub const DMPAPER_ENV_11: u32 = 21; -pub const DMPAPER_ENV_12: u32 = 22; -pub const DMPAPER_ENV_14: u32 = 23; -pub const DMPAPER_CSHEET: u32 = 24; -pub const DMPAPER_DSHEET: u32 = 25; -pub const DMPAPER_ESHEET: u32 = 26; -pub const DMPAPER_ENV_DL: u32 = 27; -pub const DMPAPER_ENV_C5: u32 = 28; -pub const DMPAPER_ENV_C3: u32 = 29; -pub const DMPAPER_ENV_C4: u32 = 30; -pub const DMPAPER_ENV_C6: u32 = 31; -pub const DMPAPER_ENV_C65: u32 = 32; -pub const DMPAPER_ENV_B4: u32 = 33; -pub const DMPAPER_ENV_B5: u32 = 34; -pub const DMPAPER_ENV_B6: u32 = 35; -pub const DMPAPER_ENV_ITALY: u32 = 36; -pub const DMPAPER_ENV_MONARCH: u32 = 37; -pub const DMPAPER_ENV_PERSONAL: u32 = 38; -pub const DMPAPER_FANFOLD_US: u32 = 39; -pub const DMPAPER_FANFOLD_STD_GERMAN: u32 = 40; -pub const DMPAPER_FANFOLD_LGL_GERMAN: u32 = 41; -pub const DMPAPER_ISO_B4: u32 = 42; -pub const DMPAPER_JAPANESE_POSTCARD: u32 = 43; -pub const DMPAPER_9X11: u32 = 44; -pub const DMPAPER_10X11: u32 = 45; -pub const DMPAPER_15X11: u32 = 46; -pub const DMPAPER_ENV_INVITE: u32 = 47; -pub const DMPAPER_RESERVED_48: u32 = 48; -pub const DMPAPER_RESERVED_49: u32 = 49; -pub const DMPAPER_LETTER_EXTRA: u32 = 50; -pub const DMPAPER_LEGAL_EXTRA: u32 = 51; -pub const DMPAPER_TABLOID_EXTRA: u32 = 52; -pub const DMPAPER_A4_EXTRA: u32 = 53; -pub const DMPAPER_LETTER_TRANSVERSE: u32 = 54; -pub const DMPAPER_A4_TRANSVERSE: u32 = 55; -pub const DMPAPER_LETTER_EXTRA_TRANSVERSE: u32 = 56; -pub const DMPAPER_A_PLUS: u32 = 57; -pub const DMPAPER_B_PLUS: u32 = 58; -pub const DMPAPER_LETTER_PLUS: u32 = 59; -pub const DMPAPER_A4_PLUS: u32 = 60; -pub const DMPAPER_A5_TRANSVERSE: u32 = 61; -pub const DMPAPER_B5_TRANSVERSE: u32 = 62; -pub const DMPAPER_A3_EXTRA: u32 = 63; -pub const DMPAPER_A5_EXTRA: u32 = 64; -pub const DMPAPER_B5_EXTRA: u32 = 65; -pub const DMPAPER_A2: u32 = 66; -pub const DMPAPER_A3_TRANSVERSE: u32 = 67; -pub const DMPAPER_A3_EXTRA_TRANSVERSE: u32 = 68; -pub const DMPAPER_DBL_JAPANESE_POSTCARD: u32 = 69; -pub const DMPAPER_A6: u32 = 70; -pub const DMPAPER_JENV_KAKU2: u32 = 71; -pub const DMPAPER_JENV_KAKU3: u32 = 72; -pub const DMPAPER_JENV_CHOU3: u32 = 73; -pub const DMPAPER_JENV_CHOU4: u32 = 74; -pub const DMPAPER_LETTER_ROTATED: u32 = 75; -pub const DMPAPER_A3_ROTATED: u32 = 76; -pub const DMPAPER_A4_ROTATED: u32 = 77; -pub const DMPAPER_A5_ROTATED: u32 = 78; -pub const DMPAPER_B4_JIS_ROTATED: u32 = 79; -pub const DMPAPER_B5_JIS_ROTATED: u32 = 80; -pub const DMPAPER_JAPANESE_POSTCARD_ROTATED: u32 = 81; -pub const DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED: u32 = 82; -pub const DMPAPER_A6_ROTATED: u32 = 83; -pub const DMPAPER_JENV_KAKU2_ROTATED: u32 = 84; -pub const DMPAPER_JENV_KAKU3_ROTATED: u32 = 85; -pub const DMPAPER_JENV_CHOU3_ROTATED: u32 = 86; -pub const DMPAPER_JENV_CHOU4_ROTATED: u32 = 87; -pub const DMPAPER_B6_JIS: u32 = 88; -pub const DMPAPER_B6_JIS_ROTATED: u32 = 89; -pub const DMPAPER_12X11: u32 = 90; -pub const DMPAPER_JENV_YOU4: u32 = 91; -pub const DMPAPER_JENV_YOU4_ROTATED: u32 = 92; -pub const DMPAPER_P16K: u32 = 93; -pub const DMPAPER_P32K: u32 = 94; -pub const DMPAPER_P32KBIG: u32 = 95; -pub const DMPAPER_PENV_1: u32 = 96; -pub const DMPAPER_PENV_2: u32 = 97; -pub const DMPAPER_PENV_3: u32 = 98; -pub const DMPAPER_PENV_4: u32 = 99; -pub const DMPAPER_PENV_5: u32 = 100; -pub const DMPAPER_PENV_6: u32 = 101; -pub const DMPAPER_PENV_7: u32 = 102; -pub const DMPAPER_PENV_8: u32 = 103; -pub const DMPAPER_PENV_9: u32 = 104; -pub const DMPAPER_PENV_10: u32 = 105; -pub const DMPAPER_P16K_ROTATED: u32 = 106; -pub const DMPAPER_P32K_ROTATED: u32 = 107; -pub const DMPAPER_P32KBIG_ROTATED: u32 = 108; -pub const DMPAPER_PENV_1_ROTATED: u32 = 109; -pub const DMPAPER_PENV_2_ROTATED: u32 = 110; -pub const DMPAPER_PENV_3_ROTATED: u32 = 111; -pub const DMPAPER_PENV_4_ROTATED: u32 = 112; -pub const DMPAPER_PENV_5_ROTATED: u32 = 113; -pub const DMPAPER_PENV_6_ROTATED: u32 = 114; -pub const DMPAPER_PENV_7_ROTATED: u32 = 115; -pub const DMPAPER_PENV_8_ROTATED: u32 = 116; -pub const DMPAPER_PENV_9_ROTATED: u32 = 117; -pub const DMPAPER_PENV_10_ROTATED: u32 = 118; -pub const DMPAPER_LAST: u32 = 118; -pub const DMPAPER_USER: u32 = 256; -pub const DMBIN_UPPER: u32 = 1; -pub const DMBIN_ONLYONE: u32 = 1; -pub const DMBIN_LOWER: u32 = 2; -pub const DMBIN_MIDDLE: u32 = 3; -pub const DMBIN_MANUAL: u32 = 4; -pub const DMBIN_ENVELOPE: u32 = 5; -pub const DMBIN_ENVMANUAL: u32 = 6; -pub const DMBIN_AUTO: u32 = 7; -pub const DMBIN_TRACTOR: u32 = 8; -pub const DMBIN_SMALLFMT: u32 = 9; -pub const DMBIN_LARGEFMT: u32 = 10; -pub const DMBIN_LARGECAPACITY: u32 = 11; -pub const DMBIN_CASSETTE: u32 = 14; -pub const DMBIN_FORMSOURCE: u32 = 15; -pub const DMBIN_LAST: u32 = 15; -pub const DMBIN_USER: u32 = 256; -pub const DMRES_DRAFT: i32 = -1; -pub const DMRES_LOW: i32 = -2; -pub const DMRES_MEDIUM: i32 = -3; -pub const DMRES_HIGH: i32 = -4; -pub const DMCOLOR_MONOCHROME: u32 = 1; -pub const DMCOLOR_COLOR: u32 = 2; -pub const DMDUP_SIMPLEX: u32 = 1; -pub const DMDUP_VERTICAL: u32 = 2; -pub const DMDUP_HORIZONTAL: u32 = 3; -pub const DMTT_BITMAP: u32 = 1; -pub const DMTT_DOWNLOAD: u32 = 2; -pub const DMTT_SUBDEV: u32 = 3; -pub const DMTT_DOWNLOAD_OUTLINE: u32 = 4; -pub const DMCOLLATE_FALSE: u32 = 0; -pub const DMCOLLATE_TRUE: u32 = 1; -pub const DMDO_DEFAULT: u32 = 0; -pub const DMDO_90: u32 = 1; -pub const DMDO_180: u32 = 2; -pub const DMDO_270: u32 = 3; -pub const DMDFO_DEFAULT: u32 = 0; -pub const DMDFO_STRETCH: u32 = 1; -pub const DMDFO_CENTER: u32 = 2; -pub const DM_INTERLACED: u32 = 2; -pub const DMDISPLAYFLAGS_TEXTMODE: u32 = 4; -pub const DMNUP_SYSTEM: u32 = 1; -pub const DMNUP_ONEUP: u32 = 2; -pub const DMICMMETHOD_NONE: u32 = 1; -pub const DMICMMETHOD_SYSTEM: u32 = 2; -pub const DMICMMETHOD_DRIVER: u32 = 3; -pub const DMICMMETHOD_DEVICE: u32 = 4; -pub const DMICMMETHOD_USER: u32 = 256; -pub const DMICM_SATURATE: u32 = 1; -pub const DMICM_CONTRAST: u32 = 2; -pub const DMICM_COLORIMETRIC: u32 = 3; -pub const DMICM_ABS_COLORIMETRIC: u32 = 4; -pub const DMICM_USER: u32 = 256; -pub const DMMEDIA_STANDARD: u32 = 1; -pub const DMMEDIA_TRANSPARENCY: u32 = 2; -pub const DMMEDIA_GLOSSY: u32 = 3; -pub const DMMEDIA_USER: u32 = 256; -pub const DMDITHER_NONE: u32 = 1; -pub const DMDITHER_COARSE: u32 = 2; -pub const DMDITHER_FINE: u32 = 3; -pub const DMDITHER_LINEART: u32 = 4; -pub const DMDITHER_ERRORDIFFUSION: u32 = 5; -pub const DMDITHER_RESERVED6: u32 = 6; -pub const DMDITHER_RESERVED7: u32 = 7; -pub const DMDITHER_RESERVED8: u32 = 8; -pub const DMDITHER_RESERVED9: u32 = 9; -pub const DMDITHER_GRAYSCALE: u32 = 10; -pub const DMDITHER_USER: u32 = 256; -pub const DISPLAY_DEVICE_ATTACHED_TO_DESKTOP: u32 = 1; -pub const DISPLAY_DEVICE_MULTI_DRIVER: u32 = 2; -pub const DISPLAY_DEVICE_PRIMARY_DEVICE: u32 = 4; -pub const DISPLAY_DEVICE_MIRRORING_DRIVER: u32 = 8; -pub const DISPLAY_DEVICE_VGA_COMPATIBLE: u32 = 16; -pub const DISPLAY_DEVICE_REMOVABLE: u32 = 32; -pub const DISPLAY_DEVICE_ACC_DRIVER: u32 = 64; -pub const DISPLAY_DEVICE_MODESPRUNED: u32 = 134217728; -pub const DISPLAY_DEVICE_RDPUDD: u32 = 16777216; -pub const DISPLAY_DEVICE_REMOTE: u32 = 67108864; -pub const DISPLAY_DEVICE_DISCONNECT: u32 = 33554432; -pub const DISPLAY_DEVICE_TS_COMPATIBLE: u32 = 2097152; -pub const DISPLAY_DEVICE_UNSAFE_MODES_ON: u32 = 524288; -pub const DISPLAY_DEVICE_ACTIVE: u32 = 1; -pub const DISPLAY_DEVICE_ATTACHED: u32 = 2; -pub const DISPLAYCONFIG_MAXPATH: u32 = 1024; -pub const DISPLAYCONFIG_PATH_MODE_IDX_INVALID: u32 = 4294967295; -pub const DISPLAYCONFIG_PATH_TARGET_MODE_IDX_INVALID: u32 = 65535; -pub const DISPLAYCONFIG_PATH_DESKTOP_IMAGE_IDX_INVALID: u32 = 65535; -pub const DISPLAYCONFIG_PATH_SOURCE_MODE_IDX_INVALID: u32 = 65535; -pub const DISPLAYCONFIG_PATH_CLONE_GROUP_INVALID: u32 = 65535; -pub const DISPLAYCONFIG_SOURCE_IN_USE: u32 = 1; -pub const DISPLAYCONFIG_TARGET_IN_USE: u32 = 1; -pub const DISPLAYCONFIG_TARGET_FORCIBLE: u32 = 2; -pub const DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_BOOT: u32 = 4; -pub const DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_PATH: u32 = 8; -pub const DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_SYSTEM: u32 = 16; -pub const DISPLAYCONFIG_TARGET_IS_HMD: u32 = 32; -pub const DISPLAYCONFIG_PATH_ACTIVE: u32 = 1; -pub const DISPLAYCONFIG_PATH_PREFERRED_UNSCALED: u32 = 4; -pub const DISPLAYCONFIG_PATH_SUPPORT_VIRTUAL_MODE: u32 = 8; -pub const DISPLAYCONFIG_PATH_VALID_FLAGS: u32 = 29; -pub const QDC_ALL_PATHS: u32 = 1; -pub const QDC_ONLY_ACTIVE_PATHS: u32 = 2; -pub const QDC_DATABASE_CURRENT: u32 = 4; -pub const QDC_VIRTUAL_MODE_AWARE: u32 = 16; -pub const QDC_INCLUDE_HMD: u32 = 32; -pub const QDC_VIRTUAL_REFRESH_RATE_AWARE: u32 = 64; -pub const SDC_TOPOLOGY_INTERNAL: u32 = 1; -pub const SDC_TOPOLOGY_CLONE: u32 = 2; -pub const SDC_TOPOLOGY_EXTEND: u32 = 4; -pub const SDC_TOPOLOGY_EXTERNAL: u32 = 8; -pub const SDC_TOPOLOGY_SUPPLIED: u32 = 16; -pub const SDC_USE_DATABASE_CURRENT: u32 = 15; -pub const SDC_USE_SUPPLIED_DISPLAY_CONFIG: u32 = 32; -pub const SDC_VALIDATE: u32 = 64; -pub const SDC_APPLY: u32 = 128; -pub const SDC_NO_OPTIMIZATION: u32 = 256; -pub const SDC_SAVE_TO_DATABASE: u32 = 512; -pub const SDC_ALLOW_CHANGES: u32 = 1024; -pub const SDC_PATH_PERSIST_IF_REQUIRED: u32 = 2048; -pub const SDC_FORCE_MODE_ENUMERATION: u32 = 4096; -pub const SDC_ALLOW_PATH_ORDER_CHANGES: u32 = 8192; -pub const SDC_VIRTUAL_MODE_AWARE: u32 = 32768; -pub const SDC_VIRTUAL_REFRESH_RATE_AWARE: u32 = 131072; -pub const RDH_RECTANGLES: u32 = 1; -pub const SYSRGN: u32 = 4; -pub const GGO_METRICS: u32 = 0; -pub const GGO_BITMAP: u32 = 1; -pub const GGO_NATIVE: u32 = 2; -pub const GGO_BEZIER: u32 = 3; -pub const GGO_GRAY2_BITMAP: u32 = 4; -pub const GGO_GRAY4_BITMAP: u32 = 5; -pub const GGO_GRAY8_BITMAP: u32 = 6; -pub const GGO_GLYPH_INDEX: u32 = 128; -pub const GGO_UNHINTED: u32 = 256; -pub const TT_POLYGON_TYPE: u32 = 24; -pub const TT_PRIM_LINE: u32 = 1; -pub const TT_PRIM_QSPLINE: u32 = 2; -pub const TT_PRIM_CSPLINE: u32 = 3; -pub const GCP_DBCS: u32 = 1; -pub const GCP_REORDER: u32 = 2; -pub const GCP_USEKERNING: u32 = 8; -pub const GCP_GLYPHSHAPE: u32 = 16; -pub const GCP_LIGATE: u32 = 32; -pub const GCP_DIACRITIC: u32 = 256; -pub const GCP_KASHIDA: u32 = 1024; -pub const GCP_ERROR: u32 = 32768; -pub const FLI_MASK: u32 = 4155; -pub const GCP_JUSTIFY: u32 = 65536; -pub const FLI_GLYPHS: u32 = 262144; -pub const GCP_CLASSIN: u32 = 524288; -pub const GCP_MAXEXTENT: u32 = 1048576; -pub const GCP_JUSTIFYIN: u32 = 2097152; -pub const GCP_DISPLAYZWG: u32 = 4194304; -pub const GCP_SYMSWAPOFF: u32 = 8388608; -pub const GCP_NUMERICOVERRIDE: u32 = 16777216; -pub const GCP_NEUTRALOVERRIDE: u32 = 33554432; -pub const GCP_NUMERICSLATIN: u32 = 67108864; -pub const GCP_NUMERICSLOCAL: u32 = 134217728; -pub const GCPCLASS_LATIN: u32 = 1; -pub const GCPCLASS_HEBREW: u32 = 2; -pub const GCPCLASS_ARABIC: u32 = 2; -pub const GCPCLASS_NEUTRAL: u32 = 3; -pub const GCPCLASS_LOCALNUMBER: u32 = 4; -pub const GCPCLASS_LATINNUMBER: u32 = 5; -pub const GCPCLASS_LATINNUMERICTERMINATOR: u32 = 6; -pub const GCPCLASS_LATINNUMERICSEPARATOR: u32 = 7; -pub const GCPCLASS_NUMERICSEPARATOR: u32 = 8; -pub const GCPCLASS_PREBOUNDLTR: u32 = 128; -pub const GCPCLASS_PREBOUNDRTL: u32 = 64; -pub const GCPCLASS_POSTBOUNDLTR: u32 = 32; -pub const GCPCLASS_POSTBOUNDRTL: u32 = 16; -pub const GCPGLYPH_LINKBEFORE: u32 = 32768; -pub const GCPGLYPH_LINKAFTER: u32 = 16384; -pub const TT_AVAILABLE: u32 = 1; -pub const TT_ENABLED: u32 = 2; -pub const PFD_TYPE_RGBA: u32 = 0; -pub const PFD_TYPE_COLORINDEX: u32 = 1; -pub const PFD_MAIN_PLANE: u32 = 0; -pub const PFD_OVERLAY_PLANE: u32 = 1; -pub const PFD_UNDERLAY_PLANE: i32 = -1; -pub const PFD_DOUBLEBUFFER: u32 = 1; -pub const PFD_STEREO: u32 = 2; -pub const PFD_DRAW_TO_WINDOW: u32 = 4; -pub const PFD_DRAW_TO_BITMAP: u32 = 8; -pub const PFD_SUPPORT_GDI: u32 = 16; -pub const PFD_SUPPORT_OPENGL: u32 = 32; -pub const PFD_GENERIC_FORMAT: u32 = 64; -pub const PFD_NEED_PALETTE: u32 = 128; -pub const PFD_NEED_SYSTEM_PALETTE: u32 = 256; -pub const PFD_SWAP_EXCHANGE: u32 = 512; -pub const PFD_SWAP_COPY: u32 = 1024; -pub const PFD_SWAP_LAYER_BUFFERS: u32 = 2048; -pub const PFD_GENERIC_ACCELERATED: u32 = 4096; -pub const PFD_SUPPORT_DIRECTDRAW: u32 = 8192; -pub const PFD_DIRECT3D_ACCELERATED: u32 = 16384; -pub const PFD_SUPPORT_COMPOSITION: u32 = 32768; -pub const PFD_DEPTH_DONTCARE: u32 = 536870912; -pub const PFD_DOUBLEBUFFER_DONTCARE: u32 = 1073741824; -pub const PFD_STEREO_DONTCARE: u32 = 2147483648; -pub const DC_BINADJUST: u32 = 19; -pub const DC_EMF_COMPLIANT: u32 = 20; -pub const DC_DATATYPE_PRODUCED: u32 = 21; -pub const DC_COLLATE: u32 = 22; -pub const DC_MANUFACTURER: u32 = 23; -pub const DC_MODEL: u32 = 24; -pub const DC_PERSONALITY: u32 = 25; -pub const DC_PRINTRATE: u32 = 26; -pub const DC_PRINTRATEUNIT: u32 = 27; -pub const PRINTRATEUNIT_PPM: u32 = 1; -pub const PRINTRATEUNIT_CPS: u32 = 2; -pub const PRINTRATEUNIT_LPM: u32 = 3; -pub const PRINTRATEUNIT_IPM: u32 = 4; -pub const DC_PRINTERMEM: u32 = 28; -pub const DC_MEDIAREADY: u32 = 29; -pub const DC_STAPLE: u32 = 30; -pub const DC_PRINTRATEPPM: u32 = 31; -pub const DC_COLORDEVICE: u32 = 32; -pub const DC_NUP: u32 = 33; -pub const DC_MEDIATYPENAMES: u32 = 34; -pub const DC_MEDIATYPES: u32 = 35; -pub const DCTT_BITMAP: u32 = 1; -pub const DCTT_DOWNLOAD: u32 = 2; -pub const DCTT_SUBDEV: u32 = 4; -pub const DCTT_DOWNLOAD_OUTLINE: u32 = 8; -pub const DCBA_FACEUPNONE: u32 = 0; -pub const DCBA_FACEUPCENTER: u32 = 1; -pub const DCBA_FACEUPLEFT: u32 = 2; -pub const DCBA_FACEUPRIGHT: u32 = 3; -pub const DCBA_FACEDOWNNONE: u32 = 256; -pub const DCBA_FACEDOWNCENTER: u32 = 257; -pub const DCBA_FACEDOWNLEFT: u32 = 258; -pub const DCBA_FACEDOWNRIGHT: u32 = 259; -pub const GS_8BIT_INDICES: u32 = 1; -pub const GGI_MARK_NONEXISTING_GLYPHS: u32 = 1; -pub const MM_MAX_NUMAXES: u32 = 16; -pub const FR_PRIVATE: u32 = 16; -pub const FR_NOT_ENUM: u32 = 32; -pub const MM_MAX_AXES_NAMELEN: u32 = 16; -pub const AC_SRC_OVER: u32 = 0; -pub const AC_SRC_ALPHA: u32 = 1; -pub const GRADIENT_FILL_RECT_H: u32 = 0; -pub const GRADIENT_FILL_RECT_V: u32 = 1; -pub const GRADIENT_FILL_TRIANGLE: u32 = 2; -pub const GRADIENT_FILL_OP_FLAG: u32 = 255; -pub const CA_NEGATIVE: u32 = 1; -pub const CA_LOG_FILTER: u32 = 2; -pub const ILLUMINANT_DEVICE_DEFAULT: u32 = 0; -pub const ILLUMINANT_A: u32 = 1; -pub const ILLUMINANT_B: u32 = 2; -pub const ILLUMINANT_C: u32 = 3; -pub const ILLUMINANT_D50: u32 = 4; -pub const ILLUMINANT_D55: u32 = 5; -pub const ILLUMINANT_D65: u32 = 6; -pub const ILLUMINANT_D75: u32 = 7; -pub const ILLUMINANT_F2: u32 = 8; -pub const ILLUMINANT_MAX_INDEX: u32 = 8; -pub const ILLUMINANT_TUNGSTEN: u32 = 1; -pub const ILLUMINANT_DAYLIGHT: u32 = 3; -pub const ILLUMINANT_FLUORESCENT: u32 = 8; -pub const ILLUMINANT_NTSC: u32 = 3; -pub const DI_APPBANDING: u32 = 1; -pub const DI_ROPS_READ_DESTINATION: u32 = 2; -pub const FONTMAPPER_MAX: u32 = 10; -pub const ICM_OFF: u32 = 1; -pub const ICM_ON: u32 = 2; -pub const ICM_QUERY: u32 = 3; -pub const ICM_DONE_OUTSIDEDC: u32 = 4; -pub const ENHMETA_SIGNATURE: u32 = 1179469088; -pub const ENHMETA_STOCK_OBJECT: u32 = 2147483648; -pub const EMR_HEADER: u32 = 1; -pub const EMR_POLYBEZIER: u32 = 2; -pub const EMR_POLYGON: u32 = 3; -pub const EMR_POLYLINE: u32 = 4; -pub const EMR_POLYBEZIERTO: u32 = 5; -pub const EMR_POLYLINETO: u32 = 6; -pub const EMR_POLYPOLYLINE: u32 = 7; -pub const EMR_POLYPOLYGON: u32 = 8; -pub const EMR_SETWINDOWEXTEX: u32 = 9; -pub const EMR_SETWINDOWORGEX: u32 = 10; -pub const EMR_SETVIEWPORTEXTEX: u32 = 11; -pub const EMR_SETVIEWPORTORGEX: u32 = 12; -pub const EMR_SETBRUSHORGEX: u32 = 13; -pub const EMR_EOF: u32 = 14; -pub const EMR_SETPIXELV: u32 = 15; -pub const EMR_SETMAPPERFLAGS: u32 = 16; -pub const EMR_SETMAPMODE: u32 = 17; -pub const EMR_SETBKMODE: u32 = 18; -pub const EMR_SETPOLYFILLMODE: u32 = 19; -pub const EMR_SETROP2: u32 = 20; -pub const EMR_SETSTRETCHBLTMODE: u32 = 21; -pub const EMR_SETTEXTALIGN: u32 = 22; -pub const EMR_SETCOLORADJUSTMENT: u32 = 23; -pub const EMR_SETTEXTCOLOR: u32 = 24; -pub const EMR_SETBKCOLOR: u32 = 25; -pub const EMR_OFFSETCLIPRGN: u32 = 26; -pub const EMR_MOVETOEX: u32 = 27; -pub const EMR_SETMETARGN: u32 = 28; -pub const EMR_EXCLUDECLIPRECT: u32 = 29; -pub const EMR_INTERSECTCLIPRECT: u32 = 30; -pub const EMR_SCALEVIEWPORTEXTEX: u32 = 31; -pub const EMR_SCALEWINDOWEXTEX: u32 = 32; -pub const EMR_SAVEDC: u32 = 33; -pub const EMR_RESTOREDC: u32 = 34; -pub const EMR_SETWORLDTRANSFORM: u32 = 35; -pub const EMR_MODIFYWORLDTRANSFORM: u32 = 36; -pub const EMR_SELECTOBJECT: u32 = 37; -pub const EMR_CREATEPEN: u32 = 38; -pub const EMR_CREATEBRUSHINDIRECT: u32 = 39; -pub const EMR_DELETEOBJECT: u32 = 40; -pub const EMR_ANGLEARC: u32 = 41; -pub const EMR_ELLIPSE: u32 = 42; -pub const EMR_RECTANGLE: u32 = 43; -pub const EMR_ROUNDRECT: u32 = 44; -pub const EMR_ARC: u32 = 45; -pub const EMR_CHORD: u32 = 46; -pub const EMR_PIE: u32 = 47; -pub const EMR_SELECTPALETTE: u32 = 48; -pub const EMR_CREATEPALETTE: u32 = 49; -pub const EMR_SETPALETTEENTRIES: u32 = 50; -pub const EMR_RESIZEPALETTE: u32 = 51; -pub const EMR_REALIZEPALETTE: u32 = 52; -pub const EMR_EXTFLOODFILL: u32 = 53; -pub const EMR_LINETO: u32 = 54; -pub const EMR_ARCTO: u32 = 55; -pub const EMR_POLYDRAW: u32 = 56; -pub const EMR_SETARCDIRECTION: u32 = 57; -pub const EMR_SETMITERLIMIT: u32 = 58; -pub const EMR_BEGINPATH: u32 = 59; -pub const EMR_ENDPATH: u32 = 60; -pub const EMR_CLOSEFIGURE: u32 = 61; -pub const EMR_FILLPATH: u32 = 62; -pub const EMR_STROKEANDFILLPATH: u32 = 63; -pub const EMR_STROKEPATH: u32 = 64; -pub const EMR_FLATTENPATH: u32 = 65; -pub const EMR_WIDENPATH: u32 = 66; -pub const EMR_SELECTCLIPPATH: u32 = 67; -pub const EMR_ABORTPATH: u32 = 68; -pub const EMR_GDICOMMENT: u32 = 70; -pub const EMR_FILLRGN: u32 = 71; -pub const EMR_FRAMERGN: u32 = 72; -pub const EMR_INVERTRGN: u32 = 73; -pub const EMR_PAINTRGN: u32 = 74; -pub const EMR_EXTSELECTCLIPRGN: u32 = 75; -pub const EMR_BITBLT: u32 = 76; -pub const EMR_STRETCHBLT: u32 = 77; -pub const EMR_MASKBLT: u32 = 78; -pub const EMR_PLGBLT: u32 = 79; -pub const EMR_SETDIBITSTODEVICE: u32 = 80; -pub const EMR_STRETCHDIBITS: u32 = 81; -pub const EMR_EXTCREATEFONTINDIRECTW: u32 = 82; -pub const EMR_EXTTEXTOUTA: u32 = 83; -pub const EMR_EXTTEXTOUTW: u32 = 84; -pub const EMR_POLYBEZIER16: u32 = 85; -pub const EMR_POLYGON16: u32 = 86; -pub const EMR_POLYLINE16: u32 = 87; -pub const EMR_POLYBEZIERTO16: u32 = 88; -pub const EMR_POLYLINETO16: u32 = 89; -pub const EMR_POLYPOLYLINE16: u32 = 90; -pub const EMR_POLYPOLYGON16: u32 = 91; -pub const EMR_POLYDRAW16: u32 = 92; -pub const EMR_CREATEMONOBRUSH: u32 = 93; -pub const EMR_CREATEDIBPATTERNBRUSHPT: u32 = 94; -pub const EMR_EXTCREATEPEN: u32 = 95; -pub const EMR_POLYTEXTOUTA: u32 = 96; -pub const EMR_POLYTEXTOUTW: u32 = 97; -pub const EMR_SETICMMODE: u32 = 98; -pub const EMR_CREATECOLORSPACE: u32 = 99; -pub const EMR_SETCOLORSPACE: u32 = 100; -pub const EMR_DELETECOLORSPACE: u32 = 101; -pub const EMR_GLSRECORD: u32 = 102; -pub const EMR_GLSBOUNDEDRECORD: u32 = 103; -pub const EMR_PIXELFORMAT: u32 = 104; -pub const EMR_RESERVED_105: u32 = 105; -pub const EMR_RESERVED_106: u32 = 106; -pub const EMR_RESERVED_107: u32 = 107; -pub const EMR_RESERVED_108: u32 = 108; -pub const EMR_RESERVED_109: u32 = 109; -pub const EMR_RESERVED_110: u32 = 110; -pub const EMR_COLORCORRECTPALETTE: u32 = 111; -pub const EMR_SETICMPROFILEA: u32 = 112; -pub const EMR_SETICMPROFILEW: u32 = 113; -pub const EMR_ALPHABLEND: u32 = 114; -pub const EMR_SETLAYOUT: u32 = 115; -pub const EMR_TRANSPARENTBLT: u32 = 116; -pub const EMR_RESERVED_117: u32 = 117; -pub const EMR_GRADIENTFILL: u32 = 118; -pub const EMR_RESERVED_119: u32 = 119; -pub const EMR_RESERVED_120: u32 = 120; -pub const EMR_COLORMATCHTOTARGETW: u32 = 121; -pub const EMR_CREATECOLORSPACEW: u32 = 122; -pub const EMR_MIN: u32 = 1; -pub const EMR_MAX: u32 = 122; -pub const SETICMPROFILE_EMBEDED: u32 = 1; -pub const CREATECOLORSPACE_EMBEDED: u32 = 1; -pub const COLORMATCHTOTARGET_EMBEDED: u32 = 1; -pub const GDICOMMENT_IDENTIFIER: u32 = 1128875079; -pub const GDICOMMENT_WINDOWS_METAFILE: u32 = 2147483649; -pub const GDICOMMENT_BEGINGROUP: u32 = 2; -pub const GDICOMMENT_ENDGROUP: u32 = 3; -pub const GDICOMMENT_MULTIFORMATS: u32 = 1073741828; -pub const EPS_SIGNATURE: u32 = 1179865157; -pub const GDICOMMENT_UNICODE_STRING: u32 = 64; -pub const GDICOMMENT_UNICODE_END: u32 = 128; -pub const WGL_FONT_LINES: u32 = 0; -pub const WGL_FONT_POLYGONS: u32 = 1; -pub const LPD_DOUBLEBUFFER: u32 = 1; -pub const LPD_STEREO: u32 = 2; -pub const LPD_SUPPORT_GDI: u32 = 16; -pub const LPD_SUPPORT_OPENGL: u32 = 32; -pub const LPD_SHARE_DEPTH: u32 = 64; -pub const LPD_SHARE_STENCIL: u32 = 128; -pub const LPD_SHARE_ACCUM: u32 = 256; -pub const LPD_SWAP_EXCHANGE: u32 = 512; -pub const LPD_SWAP_COPY: u32 = 1024; -pub const LPD_TRANSPARENT: u32 = 4096; -pub const LPD_TYPE_RGBA: u32 = 0; -pub const LPD_TYPE_COLORINDEX: u32 = 1; -pub const WGL_SWAP_MAIN_PLANE: u32 = 1; -pub const WGL_SWAP_OVERLAY1: u32 = 2; -pub const WGL_SWAP_OVERLAY2: u32 = 4; -pub const WGL_SWAP_OVERLAY3: u32 = 8; -pub const WGL_SWAP_OVERLAY4: u32 = 16; -pub const WGL_SWAP_OVERLAY5: u32 = 32; -pub const WGL_SWAP_OVERLAY6: u32 = 64; -pub const WGL_SWAP_OVERLAY7: u32 = 128; -pub const WGL_SWAP_OVERLAY8: u32 = 256; -pub const WGL_SWAP_OVERLAY9: u32 = 512; -pub const WGL_SWAP_OVERLAY10: u32 = 1024; -pub const WGL_SWAP_OVERLAY11: u32 = 2048; -pub const WGL_SWAP_OVERLAY12: u32 = 4096; -pub const WGL_SWAP_OVERLAY13: u32 = 8192; -pub const WGL_SWAP_OVERLAY14: u32 = 16384; -pub const WGL_SWAP_OVERLAY15: u32 = 32768; -pub const WGL_SWAP_UNDERLAY1: u32 = 65536; -pub const WGL_SWAP_UNDERLAY2: u32 = 131072; -pub const WGL_SWAP_UNDERLAY3: u32 = 262144; -pub const WGL_SWAP_UNDERLAY4: u32 = 524288; -pub const WGL_SWAP_UNDERLAY5: u32 = 1048576; -pub const WGL_SWAP_UNDERLAY6: u32 = 2097152; -pub const WGL_SWAP_UNDERLAY7: u32 = 4194304; -pub const WGL_SWAP_UNDERLAY8: u32 = 8388608; -pub const WGL_SWAP_UNDERLAY9: u32 = 16777216; -pub const WGL_SWAP_UNDERLAY10: u32 = 33554432; -pub const WGL_SWAP_UNDERLAY11: u32 = 67108864; -pub const WGL_SWAP_UNDERLAY12: u32 = 134217728; -pub const WGL_SWAP_UNDERLAY13: u32 = 268435456; -pub const WGL_SWAP_UNDERLAY14: u32 = 536870912; -pub const WGL_SWAP_UNDERLAY15: u32 = 1073741824; -pub const WGL_SWAPMULTIPLE_MAX: u32 = 16; -pub const DIFFERENCE: u32 = 11; -pub const SB_HORZ: u32 = 0; -pub const SB_VERT: u32 = 1; -pub const SB_CTL: u32 = 2; -pub const SB_BOTH: u32 = 3; -pub const SB_LINEUP: u32 = 0; -pub const SB_LINELEFT: u32 = 0; -pub const SB_LINEDOWN: u32 = 1; -pub const SB_LINERIGHT: u32 = 1; -pub const SB_PAGEUP: u32 = 2; -pub const SB_PAGELEFT: u32 = 2; -pub const SB_PAGEDOWN: u32 = 3; -pub const SB_PAGERIGHT: u32 = 3; -pub const SB_THUMBPOSITION: u32 = 4; -pub const SB_THUMBTRACK: u32 = 5; -pub const SB_TOP: u32 = 6; -pub const SB_LEFT: u32 = 6; -pub const SB_BOTTOM: u32 = 7; -pub const SB_RIGHT: u32 = 7; -pub const SB_ENDSCROLL: u32 = 8; -pub const SW_HIDE: u32 = 0; -pub const SW_SHOWNORMAL: u32 = 1; -pub const SW_NORMAL: u32 = 1; -pub const SW_SHOWMINIMIZED: u32 = 2; -pub const SW_SHOWMAXIMIZED: u32 = 3; -pub const SW_MAXIMIZE: u32 = 3; -pub const SW_SHOWNOACTIVATE: u32 = 4; -pub const SW_SHOW: u32 = 5; -pub const SW_MINIMIZE: u32 = 6; -pub const SW_SHOWMINNOACTIVE: u32 = 7; -pub const SW_SHOWNA: u32 = 8; -pub const SW_RESTORE: u32 = 9; -pub const SW_SHOWDEFAULT: u32 = 10; -pub const SW_FORCEMINIMIZE: u32 = 11; -pub const SW_MAX: u32 = 11; -pub const HIDE_WINDOW: u32 = 0; -pub const SHOW_OPENWINDOW: u32 = 1; -pub const SHOW_ICONWINDOW: u32 = 2; -pub const SHOW_FULLSCREEN: u32 = 3; -pub const SHOW_OPENNOACTIVATE: u32 = 4; -pub const SW_PARENTCLOSING: u32 = 1; -pub const SW_OTHERZOOM: u32 = 2; -pub const SW_PARENTOPENING: u32 = 3; -pub const SW_OTHERUNZOOM: u32 = 4; -pub const AW_HOR_POSITIVE: u32 = 1; -pub const AW_HOR_NEGATIVE: u32 = 2; -pub const AW_VER_POSITIVE: u32 = 4; -pub const AW_VER_NEGATIVE: u32 = 8; -pub const AW_CENTER: u32 = 16; -pub const AW_HIDE: u32 = 65536; -pub const AW_ACTIVATE: u32 = 131072; -pub const AW_SLIDE: u32 = 262144; -pub const AW_BLEND: u32 = 524288; -pub const KF_EXTENDED: u32 = 256; -pub const KF_DLGMODE: u32 = 2048; -pub const KF_MENUMODE: u32 = 4096; -pub const KF_ALTDOWN: u32 = 8192; -pub const KF_REPEAT: u32 = 16384; -pub const KF_UP: u32 = 32768; -pub const VK_LBUTTON: u32 = 1; -pub const VK_RBUTTON: u32 = 2; -pub const VK_CANCEL: u32 = 3; -pub const VK_MBUTTON: u32 = 4; -pub const VK_XBUTTON1: u32 = 5; -pub const VK_XBUTTON2: u32 = 6; -pub const VK_BACK: u32 = 8; -pub const VK_TAB: u32 = 9; -pub const VK_CLEAR: u32 = 12; -pub const VK_RETURN: u32 = 13; -pub const VK_SHIFT: u32 = 16; -pub const VK_CONTROL: u32 = 17; -pub const VK_MENU: u32 = 18; -pub const VK_PAUSE: u32 = 19; -pub const VK_CAPITAL: u32 = 20; -pub const VK_KANA: u32 = 21; -pub const VK_HANGEUL: u32 = 21; -pub const VK_HANGUL: u32 = 21; -pub const VK_IME_ON: u32 = 22; -pub const VK_JUNJA: u32 = 23; -pub const VK_FINAL: u32 = 24; -pub const VK_HANJA: u32 = 25; -pub const VK_KANJI: u32 = 25; -pub const VK_IME_OFF: u32 = 26; -pub const VK_ESCAPE: u32 = 27; -pub const VK_CONVERT: u32 = 28; -pub const VK_NONCONVERT: u32 = 29; -pub const VK_ACCEPT: u32 = 30; -pub const VK_MODECHANGE: u32 = 31; -pub const VK_SPACE: u32 = 32; -pub const VK_PRIOR: u32 = 33; -pub const VK_NEXT: u32 = 34; -pub const VK_END: u32 = 35; -pub const VK_HOME: u32 = 36; -pub const VK_LEFT: u32 = 37; -pub const VK_UP: u32 = 38; -pub const VK_RIGHT: u32 = 39; -pub const VK_DOWN: u32 = 40; -pub const VK_SELECT: u32 = 41; -pub const VK_PRINT: u32 = 42; -pub const VK_EXECUTE: u32 = 43; -pub const VK_SNAPSHOT: u32 = 44; -pub const VK_INSERT: u32 = 45; -pub const VK_DELETE: u32 = 46; -pub const VK_HELP: u32 = 47; -pub const VK_LWIN: u32 = 91; -pub const VK_RWIN: u32 = 92; -pub const VK_APPS: u32 = 93; -pub const VK_SLEEP: u32 = 95; -pub const VK_NUMPAD0: u32 = 96; -pub const VK_NUMPAD1: u32 = 97; -pub const VK_NUMPAD2: u32 = 98; -pub const VK_NUMPAD3: u32 = 99; -pub const VK_NUMPAD4: u32 = 100; -pub const VK_NUMPAD5: u32 = 101; -pub const VK_NUMPAD6: u32 = 102; -pub const VK_NUMPAD7: u32 = 103; -pub const VK_NUMPAD8: u32 = 104; -pub const VK_NUMPAD9: u32 = 105; -pub const VK_MULTIPLY: u32 = 106; -pub const VK_ADD: u32 = 107; -pub const VK_SEPARATOR: u32 = 108; -pub const VK_SUBTRACT: u32 = 109; -pub const VK_DECIMAL: u32 = 110; -pub const VK_DIVIDE: u32 = 111; -pub const VK_F1: u32 = 112; -pub const VK_F2: u32 = 113; -pub const VK_F3: u32 = 114; -pub const VK_F4: u32 = 115; -pub const VK_F5: u32 = 116; -pub const VK_F6: u32 = 117; -pub const VK_F7: u32 = 118; -pub const VK_F8: u32 = 119; -pub const VK_F9: u32 = 120; -pub const VK_F10: u32 = 121; -pub const VK_F11: u32 = 122; -pub const VK_F12: u32 = 123; -pub const VK_F13: u32 = 124; -pub const VK_F14: u32 = 125; -pub const VK_F15: u32 = 126; -pub const VK_F16: u32 = 127; -pub const VK_F17: u32 = 128; -pub const VK_F18: u32 = 129; -pub const VK_F19: u32 = 130; -pub const VK_F20: u32 = 131; -pub const VK_F21: u32 = 132; -pub const VK_F22: u32 = 133; -pub const VK_F23: u32 = 134; -pub const VK_F24: u32 = 135; -pub const VK_NAVIGATION_VIEW: u32 = 136; -pub const VK_NAVIGATION_MENU: u32 = 137; -pub const VK_NAVIGATION_UP: u32 = 138; -pub const VK_NAVIGATION_DOWN: u32 = 139; -pub const VK_NAVIGATION_LEFT: u32 = 140; -pub const VK_NAVIGATION_RIGHT: u32 = 141; -pub const VK_NAVIGATION_ACCEPT: u32 = 142; -pub const VK_NAVIGATION_CANCEL: u32 = 143; -pub const VK_NUMLOCK: u32 = 144; -pub const VK_SCROLL: u32 = 145; -pub const VK_OEM_NEC_EQUAL: u32 = 146; -pub const VK_OEM_FJ_JISHO: u32 = 146; -pub const VK_OEM_FJ_MASSHOU: u32 = 147; -pub const VK_OEM_FJ_TOUROKU: u32 = 148; -pub const VK_OEM_FJ_LOYA: u32 = 149; -pub const VK_OEM_FJ_ROYA: u32 = 150; -pub const VK_LSHIFT: u32 = 160; -pub const VK_RSHIFT: u32 = 161; -pub const VK_LCONTROL: u32 = 162; -pub const VK_RCONTROL: u32 = 163; -pub const VK_LMENU: u32 = 164; -pub const VK_RMENU: u32 = 165; -pub const VK_BROWSER_BACK: u32 = 166; -pub const VK_BROWSER_FORWARD: u32 = 167; -pub const VK_BROWSER_REFRESH: u32 = 168; -pub const VK_BROWSER_STOP: u32 = 169; -pub const VK_BROWSER_SEARCH: u32 = 170; -pub const VK_BROWSER_FAVORITES: u32 = 171; -pub const VK_BROWSER_HOME: u32 = 172; -pub const VK_VOLUME_MUTE: u32 = 173; -pub const VK_VOLUME_DOWN: u32 = 174; -pub const VK_VOLUME_UP: u32 = 175; -pub const VK_MEDIA_NEXT_TRACK: u32 = 176; -pub const VK_MEDIA_PREV_TRACK: u32 = 177; -pub const VK_MEDIA_STOP: u32 = 178; -pub const VK_MEDIA_PLAY_PAUSE: u32 = 179; -pub const VK_LAUNCH_MAIL: u32 = 180; -pub const VK_LAUNCH_MEDIA_SELECT: u32 = 181; -pub const VK_LAUNCH_APP1: u32 = 182; -pub const VK_LAUNCH_APP2: u32 = 183; -pub const VK_OEM_1: u32 = 186; -pub const VK_OEM_PLUS: u32 = 187; -pub const VK_OEM_COMMA: u32 = 188; -pub const VK_OEM_MINUS: u32 = 189; -pub const VK_OEM_PERIOD: u32 = 190; -pub const VK_OEM_2: u32 = 191; -pub const VK_OEM_3: u32 = 192; -pub const VK_GAMEPAD_A: u32 = 195; -pub const VK_GAMEPAD_B: u32 = 196; -pub const VK_GAMEPAD_X: u32 = 197; -pub const VK_GAMEPAD_Y: u32 = 198; -pub const VK_GAMEPAD_RIGHT_SHOULDER: u32 = 199; -pub const VK_GAMEPAD_LEFT_SHOULDER: u32 = 200; -pub const VK_GAMEPAD_LEFT_TRIGGER: u32 = 201; -pub const VK_GAMEPAD_RIGHT_TRIGGER: u32 = 202; -pub const VK_GAMEPAD_DPAD_UP: u32 = 203; -pub const VK_GAMEPAD_DPAD_DOWN: u32 = 204; -pub const VK_GAMEPAD_DPAD_LEFT: u32 = 205; -pub const VK_GAMEPAD_DPAD_RIGHT: u32 = 206; -pub const VK_GAMEPAD_MENU: u32 = 207; -pub const VK_GAMEPAD_VIEW: u32 = 208; -pub const VK_GAMEPAD_LEFT_THUMBSTICK_BUTTON: u32 = 209; -pub const VK_GAMEPAD_RIGHT_THUMBSTICK_BUTTON: u32 = 210; -pub const VK_GAMEPAD_LEFT_THUMBSTICK_UP: u32 = 211; -pub const VK_GAMEPAD_LEFT_THUMBSTICK_DOWN: u32 = 212; -pub const VK_GAMEPAD_LEFT_THUMBSTICK_RIGHT: u32 = 213; -pub const VK_GAMEPAD_LEFT_THUMBSTICK_LEFT: u32 = 214; -pub const VK_GAMEPAD_RIGHT_THUMBSTICK_UP: u32 = 215; -pub const VK_GAMEPAD_RIGHT_THUMBSTICK_DOWN: u32 = 216; -pub const VK_GAMEPAD_RIGHT_THUMBSTICK_RIGHT: u32 = 217; -pub const VK_GAMEPAD_RIGHT_THUMBSTICK_LEFT: u32 = 218; -pub const VK_OEM_4: u32 = 219; -pub const VK_OEM_5: u32 = 220; -pub const VK_OEM_6: u32 = 221; -pub const VK_OEM_7: u32 = 222; -pub const VK_OEM_8: u32 = 223; -pub const VK_OEM_AX: u32 = 225; -pub const VK_OEM_102: u32 = 226; -pub const VK_ICO_HELP: u32 = 227; -pub const VK_ICO_00: u32 = 228; -pub const VK_PROCESSKEY: u32 = 229; -pub const VK_ICO_CLEAR: u32 = 230; -pub const VK_PACKET: u32 = 231; -pub const VK_OEM_RESET: u32 = 233; -pub const VK_OEM_JUMP: u32 = 234; -pub const VK_OEM_PA1: u32 = 235; -pub const VK_OEM_PA2: u32 = 236; -pub const VK_OEM_PA3: u32 = 237; -pub const VK_OEM_WSCTRL: u32 = 238; -pub const VK_OEM_CUSEL: u32 = 239; -pub const VK_OEM_ATTN: u32 = 240; -pub const VK_OEM_FINISH: u32 = 241; -pub const VK_OEM_COPY: u32 = 242; -pub const VK_OEM_AUTO: u32 = 243; -pub const VK_OEM_ENLW: u32 = 244; -pub const VK_OEM_BACKTAB: u32 = 245; -pub const VK_ATTN: u32 = 246; -pub const VK_CRSEL: u32 = 247; -pub const VK_EXSEL: u32 = 248; -pub const VK_EREOF: u32 = 249; -pub const VK_PLAY: u32 = 250; -pub const VK_ZOOM: u32 = 251; -pub const VK_NONAME: u32 = 252; -pub const VK_PA1: u32 = 253; -pub const VK_OEM_CLEAR: u32 = 254; -pub const WH_MIN: i32 = -1; -pub const WH_MSGFILTER: i32 = -1; -pub const WH_JOURNALRECORD: u32 = 0; -pub const WH_JOURNALPLAYBACK: u32 = 1; -pub const WH_KEYBOARD: u32 = 2; -pub const WH_GETMESSAGE: u32 = 3; -pub const WH_CALLWNDPROC: u32 = 4; -pub const WH_CBT: u32 = 5; -pub const WH_SYSMSGFILTER: u32 = 6; -pub const WH_MOUSE: u32 = 7; -pub const WH_DEBUG: u32 = 9; -pub const WH_SHELL: u32 = 10; -pub const WH_FOREGROUNDIDLE: u32 = 11; -pub const WH_CALLWNDPROCRET: u32 = 12; -pub const WH_KEYBOARD_LL: u32 = 13; -pub const WH_MOUSE_LL: u32 = 14; -pub const WH_MAX: u32 = 14; -pub const WH_MINHOOK: i32 = -1; -pub const WH_MAXHOOK: u32 = 14; -pub const HC_ACTION: u32 = 0; -pub const HC_GETNEXT: u32 = 1; -pub const HC_SKIP: u32 = 2; -pub const HC_NOREMOVE: u32 = 3; -pub const HC_NOREM: u32 = 3; -pub const HC_SYSMODALON: u32 = 4; -pub const HC_SYSMODALOFF: u32 = 5; -pub const HCBT_MOVESIZE: u32 = 0; -pub const HCBT_MINMAX: u32 = 1; -pub const HCBT_QS: u32 = 2; -pub const HCBT_CREATEWND: u32 = 3; -pub const HCBT_DESTROYWND: u32 = 4; -pub const HCBT_ACTIVATE: u32 = 5; -pub const HCBT_CLICKSKIPPED: u32 = 6; -pub const HCBT_KEYSKIPPED: u32 = 7; -pub const HCBT_SYSCOMMAND: u32 = 8; -pub const HCBT_SETFOCUS: u32 = 9; -pub const WTS_CONSOLE_CONNECT: u32 = 1; -pub const WTS_CONSOLE_DISCONNECT: u32 = 2; -pub const WTS_REMOTE_CONNECT: u32 = 3; -pub const WTS_REMOTE_DISCONNECT: u32 = 4; -pub const WTS_SESSION_LOGON: u32 = 5; -pub const WTS_SESSION_LOGOFF: u32 = 6; -pub const WTS_SESSION_LOCK: u32 = 7; -pub const WTS_SESSION_UNLOCK: u32 = 8; -pub const WTS_SESSION_REMOTE_CONTROL: u32 = 9; -pub const WTS_SESSION_CREATE: u32 = 10; -pub const WTS_SESSION_TERMINATE: u32 = 11; -pub const MSGF_DIALOGBOX: u32 = 0; -pub const MSGF_MESSAGEBOX: u32 = 1; -pub const MSGF_MENU: u32 = 2; -pub const MSGF_SCROLLBAR: u32 = 5; -pub const MSGF_NEXTWINDOW: u32 = 6; -pub const MSGF_MAX: u32 = 8; -pub const MSGF_USER: u32 = 4096; -pub const HSHELL_WINDOWCREATED: u32 = 1; -pub const HSHELL_WINDOWDESTROYED: u32 = 2; -pub const HSHELL_ACTIVATESHELLWINDOW: u32 = 3; -pub const HSHELL_WINDOWACTIVATED: u32 = 4; -pub const HSHELL_GETMINRECT: u32 = 5; -pub const HSHELL_REDRAW: u32 = 6; -pub const HSHELL_TASKMAN: u32 = 7; -pub const HSHELL_LANGUAGE: u32 = 8; -pub const HSHELL_SYSMENU: u32 = 9; -pub const HSHELL_ENDTASK: u32 = 10; -pub const HSHELL_ACCESSIBILITYSTATE: u32 = 11; -pub const HSHELL_APPCOMMAND: u32 = 12; -pub const HSHELL_WINDOWREPLACED: u32 = 13; -pub const HSHELL_WINDOWREPLACING: u32 = 14; -pub const HSHELL_MONITORCHANGED: u32 = 16; -pub const HSHELL_HIGHBIT: u32 = 32768; -pub const HSHELL_FLASH: u32 = 32774; -pub const HSHELL_RUDEAPPACTIVATED: u32 = 32772; -pub const APPCOMMAND_BROWSER_BACKWARD: u32 = 1; -pub const APPCOMMAND_BROWSER_FORWARD: u32 = 2; -pub const APPCOMMAND_BROWSER_REFRESH: u32 = 3; -pub const APPCOMMAND_BROWSER_STOP: u32 = 4; -pub const APPCOMMAND_BROWSER_SEARCH: u32 = 5; -pub const APPCOMMAND_BROWSER_FAVORITES: u32 = 6; -pub const APPCOMMAND_BROWSER_HOME: u32 = 7; -pub const APPCOMMAND_VOLUME_MUTE: u32 = 8; -pub const APPCOMMAND_VOLUME_DOWN: u32 = 9; -pub const APPCOMMAND_VOLUME_UP: u32 = 10; -pub const APPCOMMAND_MEDIA_NEXTTRACK: u32 = 11; -pub const APPCOMMAND_MEDIA_PREVIOUSTRACK: u32 = 12; -pub const APPCOMMAND_MEDIA_STOP: u32 = 13; -pub const APPCOMMAND_MEDIA_PLAY_PAUSE: u32 = 14; -pub const APPCOMMAND_LAUNCH_MAIL: u32 = 15; -pub const APPCOMMAND_LAUNCH_MEDIA_SELECT: u32 = 16; -pub const APPCOMMAND_LAUNCH_APP1: u32 = 17; -pub const APPCOMMAND_LAUNCH_APP2: u32 = 18; -pub const APPCOMMAND_BASS_DOWN: u32 = 19; -pub const APPCOMMAND_BASS_BOOST: u32 = 20; -pub const APPCOMMAND_BASS_UP: u32 = 21; -pub const APPCOMMAND_TREBLE_DOWN: u32 = 22; -pub const APPCOMMAND_TREBLE_UP: u32 = 23; -pub const APPCOMMAND_MICROPHONE_VOLUME_MUTE: u32 = 24; -pub const APPCOMMAND_MICROPHONE_VOLUME_DOWN: u32 = 25; -pub const APPCOMMAND_MICROPHONE_VOLUME_UP: u32 = 26; -pub const APPCOMMAND_HELP: u32 = 27; -pub const APPCOMMAND_FIND: u32 = 28; -pub const APPCOMMAND_NEW: u32 = 29; -pub const APPCOMMAND_OPEN: u32 = 30; -pub const APPCOMMAND_CLOSE: u32 = 31; -pub const APPCOMMAND_SAVE: u32 = 32; -pub const APPCOMMAND_PRINT: u32 = 33; -pub const APPCOMMAND_UNDO: u32 = 34; -pub const APPCOMMAND_REDO: u32 = 35; -pub const APPCOMMAND_COPY: u32 = 36; -pub const APPCOMMAND_CUT: u32 = 37; -pub const APPCOMMAND_PASTE: u32 = 38; -pub const APPCOMMAND_REPLY_TO_MAIL: u32 = 39; -pub const APPCOMMAND_FORWARD_MAIL: u32 = 40; -pub const APPCOMMAND_SEND_MAIL: u32 = 41; -pub const APPCOMMAND_SPELL_CHECK: u32 = 42; -pub const APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE: u32 = 43; -pub const APPCOMMAND_MIC_ON_OFF_TOGGLE: u32 = 44; -pub const APPCOMMAND_CORRECTION_LIST: u32 = 45; -pub const APPCOMMAND_MEDIA_PLAY: u32 = 46; -pub const APPCOMMAND_MEDIA_PAUSE: u32 = 47; -pub const APPCOMMAND_MEDIA_RECORD: u32 = 48; -pub const APPCOMMAND_MEDIA_FAST_FORWARD: u32 = 49; -pub const APPCOMMAND_MEDIA_REWIND: u32 = 50; -pub const APPCOMMAND_MEDIA_CHANNEL_UP: u32 = 51; -pub const APPCOMMAND_MEDIA_CHANNEL_DOWN: u32 = 52; -pub const APPCOMMAND_DELETE: u32 = 53; -pub const APPCOMMAND_DWM_FLIP3D: u32 = 54; -pub const FAPPCOMMAND_MOUSE: u32 = 32768; -pub const FAPPCOMMAND_KEY: u32 = 0; -pub const FAPPCOMMAND_OEM: u32 = 4096; -pub const FAPPCOMMAND_MASK: u32 = 61440; -pub const LLKHF_EXTENDED: u32 = 1; -pub const LLKHF_INJECTED: u32 = 16; -pub const LLKHF_ALTDOWN: u32 = 32; -pub const LLKHF_UP: u32 = 128; -pub const LLKHF_LOWER_IL_INJECTED: u32 = 2; -pub const LLMHF_INJECTED: u32 = 1; -pub const LLMHF_LOWER_IL_INJECTED: u32 = 2; -pub const HKL_PREV: u32 = 0; -pub const HKL_NEXT: u32 = 1; -pub const KLF_ACTIVATE: u32 = 1; -pub const KLF_SUBSTITUTE_OK: u32 = 2; -pub const KLF_REORDER: u32 = 8; -pub const KLF_REPLACELANG: u32 = 16; -pub const KLF_NOTELLSHELL: u32 = 128; -pub const KLF_SETFORPROCESS: u32 = 256; -pub const KLF_SHIFTLOCK: u32 = 65536; -pub const KLF_RESET: u32 = 1073741824; -pub const INPUTLANGCHANGE_SYSCHARSET: u32 = 1; -pub const INPUTLANGCHANGE_FORWARD: u32 = 2; -pub const INPUTLANGCHANGE_BACKWARD: u32 = 4; -pub const KL_NAMELENGTH: u32 = 9; -pub const GMMP_USE_DISPLAY_POINTS: u32 = 1; -pub const GMMP_USE_HIGH_RESOLUTION_POINTS: u32 = 2; -pub const DESKTOP_READOBJECTS: u32 = 1; -pub const DESKTOP_CREATEWINDOW: u32 = 2; -pub const DESKTOP_CREATEMENU: u32 = 4; -pub const DESKTOP_HOOKCONTROL: u32 = 8; -pub const DESKTOP_JOURNALRECORD: u32 = 16; -pub const DESKTOP_JOURNALPLAYBACK: u32 = 32; -pub const DESKTOP_ENUMERATE: u32 = 64; -pub const DESKTOP_WRITEOBJECTS: u32 = 128; -pub const DESKTOP_SWITCHDESKTOP: u32 = 256; -pub const DF_ALLOWOTHERACCOUNTHOOK: u32 = 1; -pub const WINSTA_ENUMDESKTOPS: u32 = 1; -pub const WINSTA_READATTRIBUTES: u32 = 2; -pub const WINSTA_ACCESSCLIPBOARD: u32 = 4; -pub const WINSTA_CREATEDESKTOP: u32 = 8; -pub const WINSTA_WRITEATTRIBUTES: u32 = 16; -pub const WINSTA_ACCESSGLOBALATOMS: u32 = 32; -pub const WINSTA_EXITWINDOWS: u32 = 64; -pub const WINSTA_ENUMERATE: u32 = 256; -pub const WINSTA_READSCREEN: u32 = 512; -pub const WINSTA_ALL_ACCESS: u32 = 895; -pub const CWF_CREATE_ONLY: u32 = 1; -pub const WSF_VISIBLE: u32 = 1; -pub const UOI_FLAGS: u32 = 1; -pub const UOI_NAME: u32 = 2; -pub const UOI_TYPE: u32 = 3; -pub const UOI_USER_SID: u32 = 4; -pub const UOI_HEAPSIZE: u32 = 5; -pub const UOI_IO: u32 = 6; -pub const UOI_TIMERPROC_EXCEPTION_SUPPRESSION: u32 = 7; -pub const GWL_WNDPROC: i32 = -4; -pub const GWL_HINSTANCE: i32 = -6; -pub const GWL_HWNDPARENT: i32 = -8; -pub const GWL_STYLE: i32 = -16; -pub const GWL_EXSTYLE: i32 = -20; -pub const GWL_USERDATA: i32 = -21; -pub const GWL_ID: i32 = -12; -pub const GWLP_WNDPROC: i32 = -4; -pub const GWLP_HINSTANCE: i32 = -6; -pub const GWLP_HWNDPARENT: i32 = -8; -pub const GWLP_USERDATA: i32 = -21; -pub const GWLP_ID: i32 = -12; -pub const GCL_MENUNAME: i32 = -8; -pub const GCL_HBRBACKGROUND: i32 = -10; -pub const GCL_HCURSOR: i32 = -12; -pub const GCL_HICON: i32 = -14; -pub const GCL_HMODULE: i32 = -16; -pub const GCL_CBWNDEXTRA: i32 = -18; -pub const GCL_CBCLSEXTRA: i32 = -20; -pub const GCL_WNDPROC: i32 = -24; -pub const GCL_STYLE: i32 = -26; -pub const GCW_ATOM: i32 = -32; -pub const GCL_HICONSM: i32 = -34; -pub const GCLP_MENUNAME: i32 = -8; -pub const GCLP_HBRBACKGROUND: i32 = -10; -pub const GCLP_HCURSOR: i32 = -12; -pub const GCLP_HICON: i32 = -14; -pub const GCLP_HMODULE: i32 = -16; -pub const GCLP_WNDPROC: i32 = -24; -pub const GCLP_HICONSM: i32 = -34; -pub const WM_NULL: u32 = 0; -pub const WM_CREATE: u32 = 1; -pub const WM_DESTROY: u32 = 2; -pub const WM_MOVE: u32 = 3; -pub const WM_SIZE: u32 = 5; -pub const WM_ACTIVATE: u32 = 6; -pub const WA_INACTIVE: u32 = 0; -pub const WA_ACTIVE: u32 = 1; -pub const WA_CLICKACTIVE: u32 = 2; -pub const WM_SETFOCUS: u32 = 7; -pub const WM_KILLFOCUS: u32 = 8; -pub const WM_ENABLE: u32 = 10; -pub const WM_SETREDRAW: u32 = 11; -pub const WM_SETTEXT: u32 = 12; -pub const WM_GETTEXT: u32 = 13; -pub const WM_GETTEXTLENGTH: u32 = 14; -pub const WM_PAINT: u32 = 15; -pub const WM_CLOSE: u32 = 16; -pub const WM_QUERYENDSESSION: u32 = 17; -pub const WM_QUERYOPEN: u32 = 19; -pub const WM_ENDSESSION: u32 = 22; -pub const WM_QUIT: u32 = 18; -pub const WM_ERASEBKGND: u32 = 20; -pub const WM_SYSCOLORCHANGE: u32 = 21; -pub const WM_SHOWWINDOW: u32 = 24; -pub const WM_WININICHANGE: u32 = 26; -pub const WM_SETTINGCHANGE: u32 = 26; -pub const WM_DEVMODECHANGE: u32 = 27; -pub const WM_ACTIVATEAPP: u32 = 28; -pub const WM_FONTCHANGE: u32 = 29; -pub const WM_TIMECHANGE: u32 = 30; -pub const WM_CANCELMODE: u32 = 31; -pub const WM_SETCURSOR: u32 = 32; -pub const WM_MOUSEACTIVATE: u32 = 33; -pub const WM_CHILDACTIVATE: u32 = 34; -pub const WM_QUEUESYNC: u32 = 35; -pub const WM_GETMINMAXINFO: u32 = 36; -pub const WM_PAINTICON: u32 = 38; -pub const WM_ICONERASEBKGND: u32 = 39; -pub const WM_NEXTDLGCTL: u32 = 40; -pub const WM_SPOOLERSTATUS: u32 = 42; -pub const WM_DRAWITEM: u32 = 43; -pub const WM_MEASUREITEM: u32 = 44; -pub const WM_DELETEITEM: u32 = 45; -pub const WM_VKEYTOITEM: u32 = 46; -pub const WM_CHARTOITEM: u32 = 47; -pub const WM_SETFONT: u32 = 48; -pub const WM_GETFONT: u32 = 49; -pub const WM_SETHOTKEY: u32 = 50; -pub const WM_GETHOTKEY: u32 = 51; -pub const WM_QUERYDRAGICON: u32 = 55; -pub const WM_COMPAREITEM: u32 = 57; -pub const WM_GETOBJECT: u32 = 61; -pub const WM_COMPACTING: u32 = 65; -pub const WM_COMMNOTIFY: u32 = 68; -pub const WM_WINDOWPOSCHANGING: u32 = 70; -pub const WM_WINDOWPOSCHANGED: u32 = 71; -pub const WM_POWER: u32 = 72; -pub const PWR_OK: u32 = 1; -pub const PWR_FAIL: i32 = -1; -pub const PWR_SUSPENDREQUEST: u32 = 1; -pub const PWR_SUSPENDRESUME: u32 = 2; -pub const PWR_CRITICALRESUME: u32 = 3; -pub const WM_COPYDATA: u32 = 74; -pub const WM_CANCELJOURNAL: u32 = 75; -pub const WM_NOTIFY: u32 = 78; -pub const WM_INPUTLANGCHANGEREQUEST: u32 = 80; -pub const WM_INPUTLANGCHANGE: u32 = 81; -pub const WM_TCARD: u32 = 82; -pub const WM_HELP: u32 = 83; -pub const WM_USERCHANGED: u32 = 84; -pub const WM_NOTIFYFORMAT: u32 = 85; -pub const NFR_ANSI: u32 = 1; -pub const NFR_UNICODE: u32 = 2; -pub const NF_QUERY: u32 = 3; -pub const NF_REQUERY: u32 = 4; -pub const WM_CONTEXTMENU: u32 = 123; -pub const WM_STYLECHANGING: u32 = 124; -pub const WM_STYLECHANGED: u32 = 125; -pub const WM_DISPLAYCHANGE: u32 = 126; -pub const WM_GETICON: u32 = 127; -pub const WM_SETICON: u32 = 128; -pub const WM_NCCREATE: u32 = 129; -pub const WM_NCDESTROY: u32 = 130; -pub const WM_NCCALCSIZE: u32 = 131; -pub const WM_NCHITTEST: u32 = 132; -pub const WM_NCPAINT: u32 = 133; -pub const WM_NCACTIVATE: u32 = 134; -pub const WM_GETDLGCODE: u32 = 135; -pub const WM_SYNCPAINT: u32 = 136; -pub const WM_NCMOUSEMOVE: u32 = 160; -pub const WM_NCLBUTTONDOWN: u32 = 161; -pub const WM_NCLBUTTONUP: u32 = 162; -pub const WM_NCLBUTTONDBLCLK: u32 = 163; -pub const WM_NCRBUTTONDOWN: u32 = 164; -pub const WM_NCRBUTTONUP: u32 = 165; -pub const WM_NCRBUTTONDBLCLK: u32 = 166; -pub const WM_NCMBUTTONDOWN: u32 = 167; -pub const WM_NCMBUTTONUP: u32 = 168; -pub const WM_NCMBUTTONDBLCLK: u32 = 169; -pub const WM_NCXBUTTONDOWN: u32 = 171; -pub const WM_NCXBUTTONUP: u32 = 172; -pub const WM_NCXBUTTONDBLCLK: u32 = 173; -pub const WM_INPUT_DEVICE_CHANGE: u32 = 254; -pub const WM_INPUT: u32 = 255; -pub const WM_KEYFIRST: u32 = 256; -pub const WM_KEYDOWN: u32 = 256; -pub const WM_KEYUP: u32 = 257; -pub const WM_CHAR: u32 = 258; -pub const WM_DEADCHAR: u32 = 259; -pub const WM_SYSKEYDOWN: u32 = 260; -pub const WM_SYSKEYUP: u32 = 261; -pub const WM_SYSCHAR: u32 = 262; -pub const WM_SYSDEADCHAR: u32 = 263; -pub const WM_UNICHAR: u32 = 265; -pub const WM_KEYLAST: u32 = 265; -pub const UNICODE_NOCHAR: u32 = 65535; -pub const WM_IME_STARTCOMPOSITION: u32 = 269; -pub const WM_IME_ENDCOMPOSITION: u32 = 270; -pub const WM_IME_COMPOSITION: u32 = 271; -pub const WM_IME_KEYLAST: u32 = 271; -pub const WM_INITDIALOG: u32 = 272; -pub const WM_COMMAND: u32 = 273; -pub const WM_SYSCOMMAND: u32 = 274; -pub const WM_TIMER: u32 = 275; -pub const WM_HSCROLL: u32 = 276; -pub const WM_VSCROLL: u32 = 277; -pub const WM_INITMENU: u32 = 278; -pub const WM_INITMENUPOPUP: u32 = 279; -pub const WM_GESTURE: u32 = 281; -pub const WM_GESTURENOTIFY: u32 = 282; -pub const WM_MENUSELECT: u32 = 287; -pub const WM_MENUCHAR: u32 = 288; -pub const WM_ENTERIDLE: u32 = 289; -pub const WM_MENURBUTTONUP: u32 = 290; -pub const WM_MENUDRAG: u32 = 291; -pub const WM_MENUGETOBJECT: u32 = 292; -pub const WM_UNINITMENUPOPUP: u32 = 293; -pub const WM_MENUCOMMAND: u32 = 294; -pub const WM_CHANGEUISTATE: u32 = 295; -pub const WM_UPDATEUISTATE: u32 = 296; -pub const WM_QUERYUISTATE: u32 = 297; -pub const UIS_SET: u32 = 1; -pub const UIS_CLEAR: u32 = 2; -pub const UIS_INITIALIZE: u32 = 3; -pub const UISF_HIDEFOCUS: u32 = 1; -pub const UISF_HIDEACCEL: u32 = 2; -pub const UISF_ACTIVE: u32 = 4; -pub const WM_CTLCOLORMSGBOX: u32 = 306; -pub const WM_CTLCOLOREDIT: u32 = 307; -pub const WM_CTLCOLORLISTBOX: u32 = 308; -pub const WM_CTLCOLORBTN: u32 = 309; -pub const WM_CTLCOLORDLG: u32 = 310; -pub const WM_CTLCOLORSCROLLBAR: u32 = 311; -pub const WM_CTLCOLORSTATIC: u32 = 312; -pub const MN_GETHMENU: u32 = 481; -pub const WM_MOUSEFIRST: u32 = 512; -pub const WM_MOUSEMOVE: u32 = 512; -pub const WM_LBUTTONDOWN: u32 = 513; -pub const WM_LBUTTONUP: u32 = 514; -pub const WM_LBUTTONDBLCLK: u32 = 515; -pub const WM_RBUTTONDOWN: u32 = 516; -pub const WM_RBUTTONUP: u32 = 517; -pub const WM_RBUTTONDBLCLK: u32 = 518; -pub const WM_MBUTTONDOWN: u32 = 519; -pub const WM_MBUTTONUP: u32 = 520; -pub const WM_MBUTTONDBLCLK: u32 = 521; -pub const WM_MOUSEWHEEL: u32 = 522; -pub const WM_XBUTTONDOWN: u32 = 523; -pub const WM_XBUTTONUP: u32 = 524; -pub const WM_XBUTTONDBLCLK: u32 = 525; -pub const WM_MOUSEHWHEEL: u32 = 526; -pub const WM_MOUSELAST: u32 = 526; -pub const WHEEL_DELTA: u32 = 120; -pub const XBUTTON1: u32 = 1; -pub const XBUTTON2: u32 = 2; -pub const WM_PARENTNOTIFY: u32 = 528; -pub const WM_ENTERMENULOOP: u32 = 529; -pub const WM_EXITMENULOOP: u32 = 530; -pub const WM_NEXTMENU: u32 = 531; -pub const WM_SIZING: u32 = 532; -pub const WM_CAPTURECHANGED: u32 = 533; -pub const WM_MOVING: u32 = 534; -pub const WM_POWERBROADCAST: u32 = 536; -pub const PBT_APMQUERYSUSPEND: u32 = 0; -pub const PBT_APMQUERYSTANDBY: u32 = 1; -pub const PBT_APMQUERYSUSPENDFAILED: u32 = 2; -pub const PBT_APMQUERYSTANDBYFAILED: u32 = 3; -pub const PBT_APMSUSPEND: u32 = 4; -pub const PBT_APMSTANDBY: u32 = 5; -pub const PBT_APMRESUMECRITICAL: u32 = 6; -pub const PBT_APMRESUMESUSPEND: u32 = 7; -pub const PBT_APMRESUMESTANDBY: u32 = 8; -pub const PBTF_APMRESUMEFROMFAILURE: u32 = 1; -pub const PBT_APMBATTERYLOW: u32 = 9; -pub const PBT_APMPOWERSTATUSCHANGE: u32 = 10; -pub const PBT_APMOEMEVENT: u32 = 11; -pub const PBT_APMRESUMEAUTOMATIC: u32 = 18; -pub const PBT_POWERSETTINGCHANGE: u32 = 32787; -pub const WM_DEVICECHANGE: u32 = 537; -pub const WM_MDICREATE: u32 = 544; -pub const WM_MDIDESTROY: u32 = 545; -pub const WM_MDIACTIVATE: u32 = 546; -pub const WM_MDIRESTORE: u32 = 547; -pub const WM_MDINEXT: u32 = 548; -pub const WM_MDIMAXIMIZE: u32 = 549; -pub const WM_MDITILE: u32 = 550; -pub const WM_MDICASCADE: u32 = 551; -pub const WM_MDIICONARRANGE: u32 = 552; -pub const WM_MDIGETACTIVE: u32 = 553; -pub const WM_MDISETMENU: u32 = 560; -pub const WM_ENTERSIZEMOVE: u32 = 561; -pub const WM_EXITSIZEMOVE: u32 = 562; -pub const WM_DROPFILES: u32 = 563; -pub const WM_MDIREFRESHMENU: u32 = 564; -pub const WM_POINTERDEVICECHANGE: u32 = 568; -pub const WM_POINTERDEVICEINRANGE: u32 = 569; -pub const WM_POINTERDEVICEOUTOFRANGE: u32 = 570; -pub const WM_TOUCH: u32 = 576; -pub const WM_NCPOINTERUPDATE: u32 = 577; -pub const WM_NCPOINTERDOWN: u32 = 578; -pub const WM_NCPOINTERUP: u32 = 579; -pub const WM_POINTERUPDATE: u32 = 581; -pub const WM_POINTERDOWN: u32 = 582; -pub const WM_POINTERUP: u32 = 583; -pub const WM_POINTERENTER: u32 = 585; -pub const WM_POINTERLEAVE: u32 = 586; -pub const WM_POINTERACTIVATE: u32 = 587; -pub const WM_POINTERCAPTURECHANGED: u32 = 588; -pub const WM_TOUCHHITTESTING: u32 = 589; -pub const WM_POINTERWHEEL: u32 = 590; -pub const WM_POINTERHWHEEL: u32 = 591; -pub const DM_POINTERHITTEST: u32 = 592; -pub const WM_POINTERROUTEDTO: u32 = 593; -pub const WM_POINTERROUTEDAWAY: u32 = 594; -pub const WM_POINTERROUTEDRELEASED: u32 = 595; -pub const WM_IME_SETCONTEXT: u32 = 641; -pub const WM_IME_NOTIFY: u32 = 642; -pub const WM_IME_CONTROL: u32 = 643; -pub const WM_IME_COMPOSITIONFULL: u32 = 644; -pub const WM_IME_SELECT: u32 = 645; -pub const WM_IME_CHAR: u32 = 646; -pub const WM_IME_REQUEST: u32 = 648; -pub const WM_IME_KEYDOWN: u32 = 656; -pub const WM_IME_KEYUP: u32 = 657; -pub const WM_MOUSEHOVER: u32 = 673; -pub const WM_MOUSELEAVE: u32 = 675; -pub const WM_NCMOUSEHOVER: u32 = 672; -pub const WM_NCMOUSELEAVE: u32 = 674; -pub const WM_WTSSESSION_CHANGE: u32 = 689; -pub const WM_TABLET_FIRST: u32 = 704; -pub const WM_TABLET_LAST: u32 = 735; -pub const WM_DPICHANGED: u32 = 736; -pub const WM_DPICHANGED_BEFOREPARENT: u32 = 738; -pub const WM_DPICHANGED_AFTERPARENT: u32 = 739; -pub const WM_GETDPISCALEDSIZE: u32 = 740; -pub const WM_CUT: u32 = 768; -pub const WM_COPY: u32 = 769; -pub const WM_PASTE: u32 = 770; -pub const WM_CLEAR: u32 = 771; -pub const WM_UNDO: u32 = 772; -pub const WM_RENDERFORMAT: u32 = 773; -pub const WM_RENDERALLFORMATS: u32 = 774; -pub const WM_DESTROYCLIPBOARD: u32 = 775; -pub const WM_DRAWCLIPBOARD: u32 = 776; -pub const WM_PAINTCLIPBOARD: u32 = 777; -pub const WM_VSCROLLCLIPBOARD: u32 = 778; -pub const WM_SIZECLIPBOARD: u32 = 779; -pub const WM_ASKCBFORMATNAME: u32 = 780; -pub const WM_CHANGECBCHAIN: u32 = 781; -pub const WM_HSCROLLCLIPBOARD: u32 = 782; -pub const WM_QUERYNEWPALETTE: u32 = 783; -pub const WM_PALETTEISCHANGING: u32 = 784; -pub const WM_PALETTECHANGED: u32 = 785; -pub const WM_HOTKEY: u32 = 786; -pub const WM_PRINT: u32 = 791; -pub const WM_PRINTCLIENT: u32 = 792; -pub const WM_APPCOMMAND: u32 = 793; -pub const WM_THEMECHANGED: u32 = 794; -pub const WM_CLIPBOARDUPDATE: u32 = 797; -pub const WM_DWMCOMPOSITIONCHANGED: u32 = 798; -pub const WM_DWMNCRENDERINGCHANGED: u32 = 799; -pub const WM_DWMCOLORIZATIONCOLORCHANGED: u32 = 800; -pub const WM_DWMWINDOWMAXIMIZEDCHANGE: u32 = 801; -pub const WM_DWMSENDICONICTHUMBNAIL: u32 = 803; -pub const WM_DWMSENDICONICLIVEPREVIEWBITMAP: u32 = 806; -pub const WM_GETTITLEBARINFOEX: u32 = 831; -pub const WM_HANDHELDFIRST: u32 = 856; -pub const WM_HANDHELDLAST: u32 = 863; -pub const WM_AFXFIRST: u32 = 864; -pub const WM_AFXLAST: u32 = 895; -pub const WM_PENWINFIRST: u32 = 896; -pub const WM_PENWINLAST: u32 = 911; -pub const WM_APP: u32 = 32768; -pub const WM_USER: u32 = 1024; -pub const WMSZ_LEFT: u32 = 1; -pub const WMSZ_RIGHT: u32 = 2; -pub const WMSZ_TOP: u32 = 3; -pub const WMSZ_TOPLEFT: u32 = 4; -pub const WMSZ_TOPRIGHT: u32 = 5; -pub const WMSZ_BOTTOM: u32 = 6; -pub const WMSZ_BOTTOMLEFT: u32 = 7; -pub const WMSZ_BOTTOMRIGHT: u32 = 8; -pub const HTERROR: i32 = -2; -pub const HTTRANSPARENT: i32 = -1; -pub const HTNOWHERE: u32 = 0; -pub const HTCLIENT: u32 = 1; -pub const HTCAPTION: u32 = 2; -pub const HTSYSMENU: u32 = 3; -pub const HTGROWBOX: u32 = 4; -pub const HTSIZE: u32 = 4; -pub const HTMENU: u32 = 5; -pub const HTHSCROLL: u32 = 6; -pub const HTVSCROLL: u32 = 7; -pub const HTMINBUTTON: u32 = 8; -pub const HTMAXBUTTON: u32 = 9; -pub const HTLEFT: u32 = 10; -pub const HTRIGHT: u32 = 11; -pub const HTTOP: u32 = 12; -pub const HTTOPLEFT: u32 = 13; -pub const HTTOPRIGHT: u32 = 14; -pub const HTBOTTOM: u32 = 15; -pub const HTBOTTOMLEFT: u32 = 16; -pub const HTBOTTOMRIGHT: u32 = 17; -pub const HTBORDER: u32 = 18; -pub const HTREDUCE: u32 = 8; -pub const HTZOOM: u32 = 9; -pub const HTSIZEFIRST: u32 = 10; -pub const HTSIZELAST: u32 = 17; -pub const HTOBJECT: u32 = 19; -pub const HTCLOSE: u32 = 20; -pub const HTHELP: u32 = 21; -pub const SMTO_NORMAL: u32 = 0; -pub const SMTO_BLOCK: u32 = 1; -pub const SMTO_ABORTIFHUNG: u32 = 2; -pub const SMTO_NOTIMEOUTIFNOTHUNG: u32 = 8; -pub const SMTO_ERRORONEXIT: u32 = 32; -pub const MA_ACTIVATE: u32 = 1; -pub const MA_ACTIVATEANDEAT: u32 = 2; -pub const MA_NOACTIVATE: u32 = 3; -pub const MA_NOACTIVATEANDEAT: u32 = 4; -pub const ICON_SMALL: u32 = 0; -pub const ICON_BIG: u32 = 1; -pub const ICON_SMALL2: u32 = 2; -pub const SIZE_RESTORED: u32 = 0; -pub const SIZE_MINIMIZED: u32 = 1; -pub const SIZE_MAXIMIZED: u32 = 2; -pub const SIZE_MAXSHOW: u32 = 3; -pub const SIZE_MAXHIDE: u32 = 4; -pub const SIZENORMAL: u32 = 0; -pub const SIZEICONIC: u32 = 1; -pub const SIZEFULLSCREEN: u32 = 2; -pub const SIZEZOOMSHOW: u32 = 3; -pub const SIZEZOOMHIDE: u32 = 4; -pub const WVR_ALIGNTOP: u32 = 16; -pub const WVR_ALIGNLEFT: u32 = 32; -pub const WVR_ALIGNBOTTOM: u32 = 64; -pub const WVR_ALIGNRIGHT: u32 = 128; -pub const WVR_HREDRAW: u32 = 256; -pub const WVR_VREDRAW: u32 = 512; -pub const WVR_REDRAW: u32 = 768; -pub const WVR_VALIDRECTS: u32 = 1024; -pub const MK_LBUTTON: u32 = 1; -pub const MK_RBUTTON: u32 = 2; -pub const MK_SHIFT: u32 = 4; -pub const MK_CONTROL: u32 = 8; -pub const MK_MBUTTON: u32 = 16; -pub const MK_XBUTTON1: u32 = 32; -pub const MK_XBUTTON2: u32 = 64; -pub const TME_HOVER: u32 = 1; -pub const TME_LEAVE: u32 = 2; -pub const TME_NONCLIENT: u32 = 16; -pub const TME_QUERY: u32 = 1073741824; -pub const TME_CANCEL: u32 = 2147483648; -pub const HOVER_DEFAULT: u32 = 4294967295; -pub const WS_OVERLAPPED: u32 = 0; -pub const WS_POPUP: u32 = 2147483648; -pub const WS_CHILD: u32 = 1073741824; -pub const WS_MINIMIZE: u32 = 536870912; -pub const WS_VISIBLE: u32 = 268435456; -pub const WS_DISABLED: u32 = 134217728; -pub const WS_CLIPSIBLINGS: u32 = 67108864; -pub const WS_CLIPCHILDREN: u32 = 33554432; -pub const WS_MAXIMIZE: u32 = 16777216; -pub const WS_CAPTION: u32 = 12582912; -pub const WS_BORDER: u32 = 8388608; -pub const WS_DLGFRAME: u32 = 4194304; -pub const WS_VSCROLL: u32 = 2097152; -pub const WS_HSCROLL: u32 = 1048576; -pub const WS_SYSMENU: u32 = 524288; -pub const WS_THICKFRAME: u32 = 262144; -pub const WS_GROUP: u32 = 131072; -pub const WS_TABSTOP: u32 = 65536; -pub const WS_MINIMIZEBOX: u32 = 131072; -pub const WS_MAXIMIZEBOX: u32 = 65536; -pub const WS_TILED: u32 = 0; -pub const WS_ICONIC: u32 = 536870912; -pub const WS_SIZEBOX: u32 = 262144; -pub const WS_OVERLAPPEDWINDOW: u32 = 13565952; -pub const WS_POPUPWINDOW: u32 = 2156396544; -pub const WS_CHILDWINDOW: u32 = 1073741824; -pub const WS_EX_DLGMODALFRAME: u32 = 1; -pub const WS_EX_NOPARENTNOTIFY: u32 = 4; -pub const WS_EX_TOPMOST: u32 = 8; -pub const WS_EX_ACCEPTFILES: u32 = 16; -pub const WS_EX_TRANSPARENT: u32 = 32; -pub const WS_EX_MDICHILD: u32 = 64; -pub const WS_EX_TOOLWINDOW: u32 = 128; -pub const WS_EX_WINDOWEDGE: u32 = 256; -pub const WS_EX_CLIENTEDGE: u32 = 512; -pub const WS_EX_CONTEXTHELP: u32 = 1024; -pub const WS_EX_RIGHT: u32 = 4096; -pub const WS_EX_LEFT: u32 = 0; -pub const WS_EX_RTLREADING: u32 = 8192; -pub const WS_EX_LTRREADING: u32 = 0; -pub const WS_EX_LEFTSCROLLBAR: u32 = 16384; -pub const WS_EX_RIGHTSCROLLBAR: u32 = 0; -pub const WS_EX_CONTROLPARENT: u32 = 65536; -pub const WS_EX_STATICEDGE: u32 = 131072; -pub const WS_EX_APPWINDOW: u32 = 262144; -pub const WS_EX_OVERLAPPEDWINDOW: u32 = 768; -pub const WS_EX_PALETTEWINDOW: u32 = 392; -pub const WS_EX_LAYERED: u32 = 524288; -pub const WS_EX_NOINHERITLAYOUT: u32 = 1048576; -pub const WS_EX_NOREDIRECTIONBITMAP: u32 = 2097152; -pub const WS_EX_LAYOUTRTL: u32 = 4194304; -pub const WS_EX_COMPOSITED: u32 = 33554432; -pub const WS_EX_NOACTIVATE: u32 = 134217728; -pub const CS_VREDRAW: u32 = 1; -pub const CS_HREDRAW: u32 = 2; -pub const CS_DBLCLKS: u32 = 8; -pub const CS_OWNDC: u32 = 32; -pub const CS_CLASSDC: u32 = 64; -pub const CS_PARENTDC: u32 = 128; -pub const CS_NOCLOSE: u32 = 512; -pub const CS_SAVEBITS: u32 = 2048; -pub const CS_BYTEALIGNCLIENT: u32 = 4096; -pub const CS_BYTEALIGNWINDOW: u32 = 8192; -pub const CS_GLOBALCLASS: u32 = 16384; -pub const CS_IME: u32 = 65536; -pub const CS_DROPSHADOW: u32 = 131072; -pub const PRF_CHECKVISIBLE: u32 = 1; -pub const PRF_NONCLIENT: u32 = 2; -pub const PRF_CLIENT: u32 = 4; -pub const PRF_ERASEBKGND: u32 = 8; -pub const PRF_CHILDREN: u32 = 16; -pub const PRF_OWNED: u32 = 32; -pub const BDR_RAISEDOUTER: u32 = 1; -pub const BDR_SUNKENOUTER: u32 = 2; -pub const BDR_RAISEDINNER: u32 = 4; -pub const BDR_SUNKENINNER: u32 = 8; -pub const BDR_OUTER: u32 = 3; -pub const BDR_INNER: u32 = 12; -pub const BDR_RAISED: u32 = 5; -pub const BDR_SUNKEN: u32 = 10; -pub const EDGE_RAISED: u32 = 5; -pub const EDGE_SUNKEN: u32 = 10; -pub const EDGE_ETCHED: u32 = 6; -pub const EDGE_BUMP: u32 = 9; -pub const BF_LEFT: u32 = 1; -pub const BF_TOP: u32 = 2; -pub const BF_RIGHT: u32 = 4; -pub const BF_BOTTOM: u32 = 8; -pub const BF_TOPLEFT: u32 = 3; -pub const BF_TOPRIGHT: u32 = 6; -pub const BF_BOTTOMLEFT: u32 = 9; -pub const BF_BOTTOMRIGHT: u32 = 12; -pub const BF_RECT: u32 = 15; -pub const BF_DIAGONAL: u32 = 16; -pub const BF_DIAGONAL_ENDTOPRIGHT: u32 = 22; -pub const BF_DIAGONAL_ENDTOPLEFT: u32 = 19; -pub const BF_DIAGONAL_ENDBOTTOMLEFT: u32 = 25; -pub const BF_DIAGONAL_ENDBOTTOMRIGHT: u32 = 28; -pub const BF_MIDDLE: u32 = 2048; -pub const BF_SOFT: u32 = 4096; -pub const BF_ADJUST: u32 = 8192; -pub const BF_FLAT: u32 = 16384; -pub const BF_MONO: u32 = 32768; -pub const DFC_CAPTION: u32 = 1; -pub const DFC_MENU: u32 = 2; -pub const DFC_SCROLL: u32 = 3; -pub const DFC_BUTTON: u32 = 4; -pub const DFC_POPUPMENU: u32 = 5; -pub const DFCS_CAPTIONCLOSE: u32 = 0; -pub const DFCS_CAPTIONMIN: u32 = 1; -pub const DFCS_CAPTIONMAX: u32 = 2; -pub const DFCS_CAPTIONRESTORE: u32 = 3; -pub const DFCS_CAPTIONHELP: u32 = 4; -pub const DFCS_MENUARROW: u32 = 0; -pub const DFCS_MENUCHECK: u32 = 1; -pub const DFCS_MENUBULLET: u32 = 2; -pub const DFCS_MENUARROWRIGHT: u32 = 4; -pub const DFCS_SCROLLUP: u32 = 0; -pub const DFCS_SCROLLDOWN: u32 = 1; -pub const DFCS_SCROLLLEFT: u32 = 2; -pub const DFCS_SCROLLRIGHT: u32 = 3; -pub const DFCS_SCROLLCOMBOBOX: u32 = 5; -pub const DFCS_SCROLLSIZEGRIP: u32 = 8; -pub const DFCS_SCROLLSIZEGRIPRIGHT: u32 = 16; -pub const DFCS_BUTTONCHECK: u32 = 0; -pub const DFCS_BUTTONRADIOIMAGE: u32 = 1; -pub const DFCS_BUTTONRADIOMASK: u32 = 2; -pub const DFCS_BUTTONRADIO: u32 = 4; -pub const DFCS_BUTTON3STATE: u32 = 8; -pub const DFCS_BUTTONPUSH: u32 = 16; -pub const DFCS_INACTIVE: u32 = 256; -pub const DFCS_PUSHED: u32 = 512; -pub const DFCS_CHECKED: u32 = 1024; -pub const DFCS_TRANSPARENT: u32 = 2048; -pub const DFCS_HOT: u32 = 4096; -pub const DFCS_ADJUSTRECT: u32 = 8192; -pub const DFCS_FLAT: u32 = 16384; -pub const DFCS_MONO: u32 = 32768; -pub const DC_ACTIVE: u32 = 1; -pub const DC_SMALLCAP: u32 = 2; -pub const DC_ICON: u32 = 4; -pub const DC_TEXT: u32 = 8; -pub const DC_INBUTTON: u32 = 16; -pub const DC_GRADIENT: u32 = 32; -pub const DC_BUTTONS: u32 = 4096; -pub const IDANI_OPEN: u32 = 1; -pub const IDANI_CAPTION: u32 = 3; -pub const CF_TEXT: u32 = 1; -pub const CF_BITMAP: u32 = 2; -pub const CF_METAFILEPICT: u32 = 3; -pub const CF_SYLK: u32 = 4; -pub const CF_DIF: u32 = 5; -pub const CF_TIFF: u32 = 6; -pub const CF_OEMTEXT: u32 = 7; -pub const CF_DIB: u32 = 8; -pub const CF_PALETTE: u32 = 9; -pub const CF_PENDATA: u32 = 10; -pub const CF_RIFF: u32 = 11; -pub const CF_WAVE: u32 = 12; -pub const CF_UNICODETEXT: u32 = 13; -pub const CF_ENHMETAFILE: u32 = 14; -pub const CF_HDROP: u32 = 15; -pub const CF_LOCALE: u32 = 16; -pub const CF_DIBV5: u32 = 17; -pub const CF_MAX: u32 = 18; -pub const CF_OWNERDISPLAY: u32 = 128; -pub const CF_DSPTEXT: u32 = 129; -pub const CF_DSPBITMAP: u32 = 130; -pub const CF_DSPMETAFILEPICT: u32 = 131; -pub const CF_DSPENHMETAFILE: u32 = 142; -pub const CF_PRIVATEFIRST: u32 = 512; -pub const CF_PRIVATELAST: u32 = 767; -pub const CF_GDIOBJFIRST: u32 = 768; -pub const CF_GDIOBJLAST: u32 = 1023; -pub const FVIRTKEY: u32 = 1; -pub const FNOINVERT: u32 = 2; -pub const FSHIFT: u32 = 4; -pub const FCONTROL: u32 = 8; -pub const FALT: u32 = 16; -pub const WPF_SETMINPOSITION: u32 = 1; -pub const WPF_RESTORETOMAXIMIZED: u32 = 2; -pub const WPF_ASYNCWINDOWPLACEMENT: u32 = 4; -pub const ODT_MENU: u32 = 1; -pub const ODT_LISTBOX: u32 = 2; -pub const ODT_COMBOBOX: u32 = 3; -pub const ODT_BUTTON: u32 = 4; -pub const ODT_STATIC: u32 = 5; -pub const ODA_DRAWENTIRE: u32 = 1; -pub const ODA_SELECT: u32 = 2; -pub const ODA_FOCUS: u32 = 4; -pub const ODS_SELECTED: u32 = 1; -pub const ODS_GRAYED: u32 = 2; -pub const ODS_DISABLED: u32 = 4; -pub const ODS_CHECKED: u32 = 8; -pub const ODS_FOCUS: u32 = 16; -pub const ODS_DEFAULT: u32 = 32; -pub const ODS_COMBOBOXEDIT: u32 = 4096; -pub const ODS_HOTLIGHT: u32 = 64; -pub const ODS_INACTIVE: u32 = 128; -pub const ODS_NOACCEL: u32 = 256; -pub const ODS_NOFOCUSRECT: u32 = 512; -pub const PM_NOREMOVE: u32 = 0; -pub const PM_REMOVE: u32 = 1; -pub const PM_NOYIELD: u32 = 2; -pub const MOD_ALT: u32 = 1; -pub const MOD_CONTROL: u32 = 2; -pub const MOD_SHIFT: u32 = 4; -pub const MOD_WIN: u32 = 8; -pub const MOD_NOREPEAT: u32 = 16384; -pub const IDHOT_SNAPWINDOW: i32 = -1; -pub const IDHOT_SNAPDESKTOP: i32 = -2; -pub const ENDSESSION_CLOSEAPP: u32 = 1; -pub const ENDSESSION_CRITICAL: u32 = 1073741824; -pub const ENDSESSION_LOGOFF: u32 = 2147483648; -pub const EWX_LOGOFF: u32 = 0; -pub const EWX_SHUTDOWN: u32 = 1; -pub const EWX_REBOOT: u32 = 2; -pub const EWX_FORCE: u32 = 4; -pub const EWX_POWEROFF: u32 = 8; -pub const EWX_FORCEIFHUNG: u32 = 16; -pub const EWX_QUICKRESOLVE: u32 = 32; -pub const EWX_RESTARTAPPS: u32 = 64; -pub const EWX_HYBRID_SHUTDOWN: u32 = 4194304; -pub const EWX_BOOTOPTIONS: u32 = 16777216; -pub const EWX_ARSO: u32 = 67108864; -pub const EWX_CHECK_SAFE_FOR_SERVER: u32 = 134217728; -pub const EWX_SYSTEM_INITIATED: u32 = 268435456; -pub const BSM_ALLCOMPONENTS: u32 = 0; -pub const BSM_VXDS: u32 = 1; -pub const BSM_NETDRIVER: u32 = 2; -pub const BSM_INSTALLABLEDRIVERS: u32 = 4; -pub const BSM_APPLICATIONS: u32 = 8; -pub const BSM_ALLDESKTOPS: u32 = 16; -pub const BSF_QUERY: u32 = 1; -pub const BSF_IGNORECURRENTTASK: u32 = 2; -pub const BSF_FLUSHDISK: u32 = 4; -pub const BSF_NOHANG: u32 = 8; -pub const BSF_POSTMESSAGE: u32 = 16; -pub const BSF_FORCEIFHUNG: u32 = 32; -pub const BSF_NOTIMEOUTIFNOTHUNG: u32 = 64; -pub const BSF_ALLOWSFW: u32 = 128; -pub const BSF_SENDNOTIFYMESSAGE: u32 = 256; -pub const BSF_RETURNHDESK: u32 = 512; -pub const BSF_LUID: u32 = 1024; -pub const BROADCAST_QUERY_DENY: u32 = 1112363332; -pub const DEVICE_NOTIFY_WINDOW_HANDLE: u32 = 0; -pub const DEVICE_NOTIFY_SERVICE_HANDLE: u32 = 1; -pub const DEVICE_NOTIFY_ALL_INTERFACE_CLASSES: u32 = 4; -pub const ISMEX_NOSEND: u32 = 0; -pub const ISMEX_SEND: u32 = 1; -pub const ISMEX_NOTIFY: u32 = 2; -pub const ISMEX_CALLBACK: u32 = 4; -pub const ISMEX_REPLIED: u32 = 8; -pub const PW_CLIENTONLY: u32 = 1; -pub const PW_RENDERFULLCONTENT: u32 = 2; -pub const LWA_COLORKEY: u32 = 1; -pub const LWA_ALPHA: u32 = 2; -pub const ULW_COLORKEY: u32 = 1; -pub const ULW_ALPHA: u32 = 2; -pub const ULW_OPAQUE: u32 = 4; -pub const ULW_EX_NORESIZE: u32 = 8; -pub const FLASHW_STOP: u32 = 0; -pub const FLASHW_CAPTION: u32 = 1; -pub const FLASHW_TRAY: u32 = 2; -pub const FLASHW_ALL: u32 = 3; -pub const FLASHW_TIMER: u32 = 4; -pub const FLASHW_TIMERNOFG: u32 = 12; -pub const WDA_NONE: u32 = 0; -pub const WDA_MONITOR: u32 = 1; -pub const WDA_EXCLUDEFROMCAPTURE: u32 = 17; -pub const SWP_NOSIZE: u32 = 1; -pub const SWP_NOMOVE: u32 = 2; -pub const SWP_NOZORDER: u32 = 4; -pub const SWP_NOREDRAW: u32 = 8; -pub const SWP_NOACTIVATE: u32 = 16; -pub const SWP_FRAMECHANGED: u32 = 32; -pub const SWP_SHOWWINDOW: u32 = 64; -pub const SWP_HIDEWINDOW: u32 = 128; -pub const SWP_NOCOPYBITS: u32 = 256; -pub const SWP_NOOWNERZORDER: u32 = 512; -pub const SWP_NOSENDCHANGING: u32 = 1024; -pub const SWP_DRAWFRAME: u32 = 32; -pub const SWP_NOREPOSITION: u32 = 512; -pub const SWP_DEFERERASE: u32 = 8192; -pub const SWP_ASYNCWINDOWPOS: u32 = 16384; -pub const DLGWINDOWEXTRA: u32 = 30; -pub const KEYEVENTF_EXTENDEDKEY: u32 = 1; -pub const KEYEVENTF_KEYUP: u32 = 2; -pub const KEYEVENTF_UNICODE: u32 = 4; -pub const KEYEVENTF_SCANCODE: u32 = 8; -pub const MOUSEEVENTF_MOVE: u32 = 1; -pub const MOUSEEVENTF_LEFTDOWN: u32 = 2; -pub const MOUSEEVENTF_LEFTUP: u32 = 4; -pub const MOUSEEVENTF_RIGHTDOWN: u32 = 8; -pub const MOUSEEVENTF_RIGHTUP: u32 = 16; -pub const MOUSEEVENTF_MIDDLEDOWN: u32 = 32; -pub const MOUSEEVENTF_MIDDLEUP: u32 = 64; -pub const MOUSEEVENTF_XDOWN: u32 = 128; -pub const MOUSEEVENTF_XUP: u32 = 256; -pub const MOUSEEVENTF_WHEEL: u32 = 2048; -pub const MOUSEEVENTF_HWHEEL: u32 = 4096; -pub const MOUSEEVENTF_MOVE_NOCOALESCE: u32 = 8192; -pub const MOUSEEVENTF_VIRTUALDESK: u32 = 16384; -pub const MOUSEEVENTF_ABSOLUTE: u32 = 32768; -pub const INPUT_MOUSE: u32 = 0; -pub const INPUT_KEYBOARD: u32 = 1; -pub const INPUT_HARDWARE: u32 = 2; -pub const TOUCHEVENTF_MOVE: u32 = 1; -pub const TOUCHEVENTF_DOWN: u32 = 2; -pub const TOUCHEVENTF_UP: u32 = 4; -pub const TOUCHEVENTF_INRANGE: u32 = 8; -pub const TOUCHEVENTF_PRIMARY: u32 = 16; -pub const TOUCHEVENTF_NOCOALESCE: u32 = 32; -pub const TOUCHEVENTF_PEN: u32 = 64; -pub const TOUCHEVENTF_PALM: u32 = 128; -pub const TOUCHINPUTMASKF_TIMEFROMSYSTEM: u32 = 1; -pub const TOUCHINPUTMASKF_EXTRAINFO: u32 = 2; -pub const TOUCHINPUTMASKF_CONTACTAREA: u32 = 4; -pub const TWF_FINETOUCH: u32 = 1; -pub const TWF_WANTPALM: u32 = 2; -pub const POINTER_FLAG_NONE: u32 = 0; -pub const POINTER_FLAG_NEW: u32 = 1; -pub const POINTER_FLAG_INRANGE: u32 = 2; -pub const POINTER_FLAG_INCONTACT: u32 = 4; -pub const POINTER_FLAG_FIRSTBUTTON: u32 = 16; -pub const POINTER_FLAG_SECONDBUTTON: u32 = 32; -pub const POINTER_FLAG_THIRDBUTTON: u32 = 64; -pub const POINTER_FLAG_FOURTHBUTTON: u32 = 128; -pub const POINTER_FLAG_FIFTHBUTTON: u32 = 256; -pub const POINTER_FLAG_PRIMARY: u32 = 8192; -pub const POINTER_FLAG_CONFIDENCE: u32 = 16384; -pub const POINTER_FLAG_CANCELED: u32 = 32768; -pub const POINTER_FLAG_DOWN: u32 = 65536; -pub const POINTER_FLAG_UPDATE: u32 = 131072; -pub const POINTER_FLAG_UP: u32 = 262144; -pub const POINTER_FLAG_WHEEL: u32 = 524288; -pub const POINTER_FLAG_HWHEEL: u32 = 1048576; -pub const POINTER_FLAG_CAPTURECHANGED: u32 = 2097152; -pub const POINTER_FLAG_HASTRANSFORM: u32 = 4194304; -pub const POINTER_MOD_SHIFT: u32 = 4; -pub const POINTER_MOD_CTRL: u32 = 8; -pub const TOUCH_FLAG_NONE: u32 = 0; -pub const TOUCH_MASK_NONE: u32 = 0; -pub const TOUCH_MASK_CONTACTAREA: u32 = 1; -pub const TOUCH_MASK_ORIENTATION: u32 = 2; -pub const TOUCH_MASK_PRESSURE: u32 = 4; -pub const PEN_FLAG_NONE: u32 = 0; -pub const PEN_FLAG_BARREL: u32 = 1; -pub const PEN_FLAG_INVERTED: u32 = 2; -pub const PEN_FLAG_ERASER: u32 = 4; -pub const PEN_MASK_NONE: u32 = 0; -pub const PEN_MASK_PRESSURE: u32 = 1; -pub const PEN_MASK_ROTATION: u32 = 2; -pub const PEN_MASK_TILT_X: u32 = 4; -pub const PEN_MASK_TILT_Y: u32 = 8; -pub const POINTER_MESSAGE_FLAG_NEW: u32 = 1; -pub const POINTER_MESSAGE_FLAG_INRANGE: u32 = 2; -pub const POINTER_MESSAGE_FLAG_INCONTACT: u32 = 4; -pub const POINTER_MESSAGE_FLAG_FIRSTBUTTON: u32 = 16; -pub const POINTER_MESSAGE_FLAG_SECONDBUTTON: u32 = 32; -pub const POINTER_MESSAGE_FLAG_THIRDBUTTON: u32 = 64; -pub const POINTER_MESSAGE_FLAG_FOURTHBUTTON: u32 = 128; -pub const POINTER_MESSAGE_FLAG_FIFTHBUTTON: u32 = 256; -pub const POINTER_MESSAGE_FLAG_PRIMARY: u32 = 8192; -pub const POINTER_MESSAGE_FLAG_CONFIDENCE: u32 = 16384; -pub const POINTER_MESSAGE_FLAG_CANCELED: u32 = 32768; -pub const PA_ACTIVATE: u32 = 1; -pub const PA_NOACTIVATE: u32 = 3; -pub const MAX_TOUCH_COUNT: u32 = 256; -pub const TOUCH_FEEDBACK_DEFAULT: u32 = 1; -pub const TOUCH_FEEDBACK_INDIRECT: u32 = 2; -pub const TOUCH_FEEDBACK_NONE: u32 = 3; -pub const TOUCH_HIT_TESTING_DEFAULT: u32 = 0; -pub const TOUCH_HIT_TESTING_CLIENT: u32 = 1; -pub const TOUCH_HIT_TESTING_NONE: u32 = 2; -pub const TOUCH_HIT_TESTING_PROXIMITY_CLOSEST: u32 = 0; -pub const TOUCH_HIT_TESTING_PROXIMITY_FARTHEST: u32 = 4095; -pub const GWFS_INCLUDE_ANCESTORS: u32 = 1; -pub const MAPVK_VK_TO_VSC: u32 = 0; -pub const MAPVK_VSC_TO_VK: u32 = 1; -pub const MAPVK_VK_TO_CHAR: u32 = 2; -pub const MAPVK_VSC_TO_VK_EX: u32 = 3; -pub const MAPVK_VK_TO_VSC_EX: u32 = 4; -pub const MWMO_WAITALL: u32 = 1; -pub const MWMO_ALERTABLE: u32 = 2; -pub const MWMO_INPUTAVAILABLE: u32 = 4; -pub const QS_KEY: u32 = 1; -pub const QS_MOUSEMOVE: u32 = 2; -pub const QS_MOUSEBUTTON: u32 = 4; -pub const QS_POSTMESSAGE: u32 = 8; -pub const QS_TIMER: u32 = 16; -pub const QS_PAINT: u32 = 32; -pub const QS_SENDMESSAGE: u32 = 64; -pub const QS_HOTKEY: u32 = 128; -pub const QS_ALLPOSTMESSAGE: u32 = 256; -pub const QS_RAWINPUT: u32 = 1024; -pub const QS_TOUCH: u32 = 2048; -pub const QS_POINTER: u32 = 4096; -pub const QS_MOUSE: u32 = 6; -pub const QS_INPUT: u32 = 7175; -pub const QS_ALLEVENTS: u32 = 7359; -pub const QS_ALLINPUT: u32 = 7423; -pub const USER_TIMER_MAXIMUM: u32 = 2147483647; -pub const USER_TIMER_MINIMUM: u32 = 10; -pub const TIMERV_DEFAULT_COALESCING: u32 = 0; -pub const TIMERV_NO_COALESCING: u32 = 4294967295; -pub const TIMERV_COALESCING_MIN: u32 = 1; -pub const TIMERV_COALESCING_MAX: u32 = 2147483637; -pub const SM_CXSCREEN: u32 = 0; -pub const SM_CYSCREEN: u32 = 1; -pub const SM_CXVSCROLL: u32 = 2; -pub const SM_CYHSCROLL: u32 = 3; -pub const SM_CYCAPTION: u32 = 4; -pub const SM_CXBORDER: u32 = 5; -pub const SM_CYBORDER: u32 = 6; -pub const SM_CXDLGFRAME: u32 = 7; -pub const SM_CYDLGFRAME: u32 = 8; -pub const SM_CYVTHUMB: u32 = 9; -pub const SM_CXHTHUMB: u32 = 10; -pub const SM_CXICON: u32 = 11; -pub const SM_CYICON: u32 = 12; -pub const SM_CXCURSOR: u32 = 13; -pub const SM_CYCURSOR: u32 = 14; -pub const SM_CYMENU: u32 = 15; -pub const SM_CXFULLSCREEN: u32 = 16; -pub const SM_CYFULLSCREEN: u32 = 17; -pub const SM_CYKANJIWINDOW: u32 = 18; -pub const SM_MOUSEPRESENT: u32 = 19; -pub const SM_CYVSCROLL: u32 = 20; -pub const SM_CXHSCROLL: u32 = 21; -pub const SM_DEBUG: u32 = 22; -pub const SM_SWAPBUTTON: u32 = 23; -pub const SM_RESERVED1: u32 = 24; -pub const SM_RESERVED2: u32 = 25; -pub const SM_RESERVED3: u32 = 26; -pub const SM_RESERVED4: u32 = 27; -pub const SM_CXMIN: u32 = 28; -pub const SM_CYMIN: u32 = 29; -pub const SM_CXSIZE: u32 = 30; -pub const SM_CYSIZE: u32 = 31; -pub const SM_CXFRAME: u32 = 32; -pub const SM_CYFRAME: u32 = 33; -pub const SM_CXMINTRACK: u32 = 34; -pub const SM_CYMINTRACK: u32 = 35; -pub const SM_CXDOUBLECLK: u32 = 36; -pub const SM_CYDOUBLECLK: u32 = 37; -pub const SM_CXICONSPACING: u32 = 38; -pub const SM_CYICONSPACING: u32 = 39; -pub const SM_MENUDROPALIGNMENT: u32 = 40; -pub const SM_PENWINDOWS: u32 = 41; -pub const SM_DBCSENABLED: u32 = 42; -pub const SM_CMOUSEBUTTONS: u32 = 43; -pub const SM_CXFIXEDFRAME: u32 = 7; -pub const SM_CYFIXEDFRAME: u32 = 8; -pub const SM_CXSIZEFRAME: u32 = 32; -pub const SM_CYSIZEFRAME: u32 = 33; -pub const SM_SECURE: u32 = 44; -pub const SM_CXEDGE: u32 = 45; -pub const SM_CYEDGE: u32 = 46; -pub const SM_CXMINSPACING: u32 = 47; -pub const SM_CYMINSPACING: u32 = 48; -pub const SM_CXSMICON: u32 = 49; -pub const SM_CYSMICON: u32 = 50; -pub const SM_CYSMCAPTION: u32 = 51; -pub const SM_CXSMSIZE: u32 = 52; -pub const SM_CYSMSIZE: u32 = 53; -pub const SM_CXMENUSIZE: u32 = 54; -pub const SM_CYMENUSIZE: u32 = 55; -pub const SM_ARRANGE: u32 = 56; -pub const SM_CXMINIMIZED: u32 = 57; -pub const SM_CYMINIMIZED: u32 = 58; -pub const SM_CXMAXTRACK: u32 = 59; -pub const SM_CYMAXTRACK: u32 = 60; -pub const SM_CXMAXIMIZED: u32 = 61; -pub const SM_CYMAXIMIZED: u32 = 62; -pub const SM_NETWORK: u32 = 63; -pub const SM_CLEANBOOT: u32 = 67; -pub const SM_CXDRAG: u32 = 68; -pub const SM_CYDRAG: u32 = 69; -pub const SM_SHOWSOUNDS: u32 = 70; -pub const SM_CXMENUCHECK: u32 = 71; -pub const SM_CYMENUCHECK: u32 = 72; -pub const SM_SLOWMACHINE: u32 = 73; -pub const SM_MIDEASTENABLED: u32 = 74; -pub const SM_MOUSEWHEELPRESENT: u32 = 75; -pub const SM_XVIRTUALSCREEN: u32 = 76; -pub const SM_YVIRTUALSCREEN: u32 = 77; -pub const SM_CXVIRTUALSCREEN: u32 = 78; -pub const SM_CYVIRTUALSCREEN: u32 = 79; -pub const SM_CMONITORS: u32 = 80; -pub const SM_SAMEDISPLAYFORMAT: u32 = 81; -pub const SM_IMMENABLED: u32 = 82; -pub const SM_CXFOCUSBORDER: u32 = 83; -pub const SM_CYFOCUSBORDER: u32 = 84; -pub const SM_TABLETPC: u32 = 86; -pub const SM_MEDIACENTER: u32 = 87; -pub const SM_STARTER: u32 = 88; -pub const SM_SERVERR2: u32 = 89; -pub const SM_MOUSEHORIZONTALWHEELPRESENT: u32 = 91; -pub const SM_CXPADDEDBORDER: u32 = 92; -pub const SM_DIGITIZER: u32 = 94; -pub const SM_MAXIMUMTOUCHES: u32 = 95; -pub const SM_CMETRICS: u32 = 97; -pub const SM_REMOTESESSION: u32 = 4096; -pub const SM_SHUTTINGDOWN: u32 = 8192; -pub const SM_REMOTECONTROL: u32 = 8193; -pub const SM_CARETBLINKINGENABLED: u32 = 8194; -pub const SM_CONVERTIBLESLATEMODE: u32 = 8195; -pub const SM_SYSTEMDOCKED: u32 = 8196; -pub const PMB_ACTIVE: u32 = 1; -pub const MNC_IGNORE: u32 = 0; -pub const MNC_CLOSE: u32 = 1; -pub const MNC_EXECUTE: u32 = 2; -pub const MNC_SELECT: u32 = 3; -pub const MNS_NOCHECK: u32 = 2147483648; -pub const MNS_MODELESS: u32 = 1073741824; -pub const MNS_DRAGDROP: u32 = 536870912; -pub const MNS_AUTODISMISS: u32 = 268435456; -pub const MNS_NOTIFYBYPOS: u32 = 134217728; -pub const MNS_CHECKORBMP: u32 = 67108864; -pub const MIM_MAXHEIGHT: u32 = 1; -pub const MIM_BACKGROUND: u32 = 2; -pub const MIM_HELPID: u32 = 4; -pub const MIM_MENUDATA: u32 = 8; -pub const MIM_STYLE: u32 = 16; -pub const MIM_APPLYTOSUBMENUS: u32 = 2147483648; -pub const MND_CONTINUE: u32 = 0; -pub const MND_ENDMENU: u32 = 1; -pub const MNGOF_TOPGAP: u32 = 1; -pub const MNGOF_BOTTOMGAP: u32 = 2; -pub const MNGO_NOINTERFACE: u32 = 0; -pub const MNGO_NOERROR: u32 = 1; -pub const MIIM_STATE: u32 = 1; -pub const MIIM_ID: u32 = 2; -pub const MIIM_SUBMENU: u32 = 4; -pub const MIIM_CHECKMARKS: u32 = 8; -pub const MIIM_TYPE: u32 = 16; -pub const MIIM_DATA: u32 = 32; -pub const MIIM_STRING: u32 = 64; -pub const MIIM_BITMAP: u32 = 128; -pub const MIIM_FTYPE: u32 = 256; -pub const GMDI_USEDISABLED: u32 = 1; -pub const GMDI_GOINTOPOPUPS: u32 = 2; -pub const TPM_LEFTBUTTON: u32 = 0; -pub const TPM_RIGHTBUTTON: u32 = 2; -pub const TPM_LEFTALIGN: u32 = 0; -pub const TPM_CENTERALIGN: u32 = 4; -pub const TPM_RIGHTALIGN: u32 = 8; -pub const TPM_TOPALIGN: u32 = 0; -pub const TPM_VCENTERALIGN: u32 = 16; -pub const TPM_BOTTOMALIGN: u32 = 32; -pub const TPM_HORIZONTAL: u32 = 0; -pub const TPM_VERTICAL: u32 = 64; -pub const TPM_NONOTIFY: u32 = 128; -pub const TPM_RETURNCMD: u32 = 256; -pub const TPM_RECURSE: u32 = 1; -pub const TPM_HORPOSANIMATION: u32 = 1024; -pub const TPM_HORNEGANIMATION: u32 = 2048; -pub const TPM_VERPOSANIMATION: u32 = 4096; -pub const TPM_VERNEGANIMATION: u32 = 8192; -pub const TPM_NOANIMATION: u32 = 16384; -pub const TPM_LAYOUTRTL: u32 = 32768; -pub const TPM_WORKAREA: u32 = 65536; -pub const DOF_EXECUTABLE: u32 = 32769; -pub const DOF_DOCUMENT: u32 = 32770; -pub const DOF_DIRECTORY: u32 = 32771; -pub const DOF_MULTIPLE: u32 = 32772; -pub const DOF_PROGMAN: u32 = 1; -pub const DOF_SHELLDATA: u32 = 2; -pub const DO_DROPFILE: u32 = 1162627398; -pub const DO_PRINTFILE: u32 = 1414419024; -pub const DT_TOP: u32 = 0; -pub const DT_LEFT: u32 = 0; -pub const DT_CENTER: u32 = 1; -pub const DT_RIGHT: u32 = 2; -pub const DT_VCENTER: u32 = 4; -pub const DT_BOTTOM: u32 = 8; -pub const DT_WORDBREAK: u32 = 16; -pub const DT_SINGLELINE: u32 = 32; -pub const DT_EXPANDTABS: u32 = 64; -pub const DT_TABSTOP: u32 = 128; -pub const DT_NOCLIP: u32 = 256; -pub const DT_EXTERNALLEADING: u32 = 512; -pub const DT_CALCRECT: u32 = 1024; -pub const DT_NOPREFIX: u32 = 2048; -pub const DT_INTERNAL: u32 = 4096; -pub const DT_EDITCONTROL: u32 = 8192; -pub const DT_PATH_ELLIPSIS: u32 = 16384; -pub const DT_END_ELLIPSIS: u32 = 32768; -pub const DT_MODIFYSTRING: u32 = 65536; -pub const DT_RTLREADING: u32 = 131072; -pub const DT_WORD_ELLIPSIS: u32 = 262144; -pub const DT_NOFULLWIDTHCHARBREAK: u32 = 524288; -pub const DT_HIDEPREFIX: u32 = 1048576; -pub const DT_PREFIXONLY: u32 = 2097152; -pub const DST_COMPLEX: u32 = 0; -pub const DST_TEXT: u32 = 1; -pub const DST_PREFIXTEXT: u32 = 2; -pub const DST_ICON: u32 = 3; -pub const DST_BITMAP: u32 = 4; -pub const DSS_NORMAL: u32 = 0; -pub const DSS_UNION: u32 = 16; -pub const DSS_DISABLED: u32 = 32; -pub const DSS_MONO: u32 = 128; -pub const DSS_HIDEPREFIX: u32 = 512; -pub const DSS_PREFIXONLY: u32 = 1024; -pub const DSS_RIGHT: u32 = 32768; -pub const LSFW_LOCK: u32 = 1; -pub const LSFW_UNLOCK: u32 = 2; -pub const DCX_WINDOW: u32 = 1; -pub const DCX_CACHE: u32 = 2; -pub const DCX_NORESETATTRS: u32 = 4; -pub const DCX_CLIPCHILDREN: u32 = 8; -pub const DCX_CLIPSIBLINGS: u32 = 16; -pub const DCX_PARENTCLIP: u32 = 32; -pub const DCX_EXCLUDERGN: u32 = 64; -pub const DCX_INTERSECTRGN: u32 = 128; -pub const DCX_EXCLUDEUPDATE: u32 = 256; -pub const DCX_INTERSECTUPDATE: u32 = 512; -pub const DCX_LOCKWINDOWUPDATE: u32 = 1024; -pub const DCX_VALIDATE: u32 = 2097152; -pub const RDW_INVALIDATE: u32 = 1; -pub const RDW_INTERNALPAINT: u32 = 2; -pub const RDW_ERASE: u32 = 4; -pub const RDW_VALIDATE: u32 = 8; -pub const RDW_NOINTERNALPAINT: u32 = 16; -pub const RDW_NOERASE: u32 = 32; -pub const RDW_NOCHILDREN: u32 = 64; -pub const RDW_ALLCHILDREN: u32 = 128; -pub const RDW_UPDATENOW: u32 = 256; -pub const RDW_ERASENOW: u32 = 512; -pub const RDW_FRAME: u32 = 1024; -pub const RDW_NOFRAME: u32 = 2048; -pub const SW_SCROLLCHILDREN: u32 = 1; -pub const SW_INVALIDATE: u32 = 2; -pub const SW_ERASE: u32 = 4; -pub const SW_SMOOTHSCROLL: u32 = 16; -pub const ESB_ENABLE_BOTH: u32 = 0; -pub const ESB_DISABLE_BOTH: u32 = 3; -pub const ESB_DISABLE_LEFT: u32 = 1; -pub const ESB_DISABLE_RIGHT: u32 = 2; -pub const ESB_DISABLE_UP: u32 = 1; -pub const ESB_DISABLE_DOWN: u32 = 2; -pub const ESB_DISABLE_LTUP: u32 = 1; -pub const ESB_DISABLE_RTDN: u32 = 2; -pub const HELPINFO_WINDOW: u32 = 1; -pub const HELPINFO_MENUITEM: u32 = 2; -pub const MB_OK: u32 = 0; -pub const MB_OKCANCEL: u32 = 1; -pub const MB_ABORTRETRYIGNORE: u32 = 2; -pub const MB_YESNOCANCEL: u32 = 3; -pub const MB_YESNO: u32 = 4; -pub const MB_RETRYCANCEL: u32 = 5; -pub const MB_CANCELTRYCONTINUE: u32 = 6; -pub const MB_ICONHAND: u32 = 16; -pub const MB_ICONQUESTION: u32 = 32; -pub const MB_ICONEXCLAMATION: u32 = 48; -pub const MB_ICONASTERISK: u32 = 64; -pub const MB_USERICON: u32 = 128; -pub const MB_ICONWARNING: u32 = 48; -pub const MB_ICONERROR: u32 = 16; -pub const MB_ICONINFORMATION: u32 = 64; -pub const MB_ICONSTOP: u32 = 16; -pub const MB_DEFBUTTON1: u32 = 0; -pub const MB_DEFBUTTON2: u32 = 256; -pub const MB_DEFBUTTON3: u32 = 512; -pub const MB_DEFBUTTON4: u32 = 768; -pub const MB_APPLMODAL: u32 = 0; -pub const MB_SYSTEMMODAL: u32 = 4096; -pub const MB_TASKMODAL: u32 = 8192; -pub const MB_HELP: u32 = 16384; -pub const MB_NOFOCUS: u32 = 32768; -pub const MB_SETFOREGROUND: u32 = 65536; -pub const MB_DEFAULT_DESKTOP_ONLY: u32 = 131072; -pub const MB_TOPMOST: u32 = 262144; -pub const MB_RIGHT: u32 = 524288; -pub const MB_RTLREADING: u32 = 1048576; -pub const MB_SERVICE_NOTIFICATION: u32 = 2097152; -pub const MB_SERVICE_NOTIFICATION_NT3X: u32 = 262144; -pub const MB_TYPEMASK: u32 = 15; -pub const MB_ICONMASK: u32 = 240; -pub const MB_DEFMASK: u32 = 3840; -pub const MB_MODEMASK: u32 = 12288; -pub const MB_MISCMASK: u32 = 49152; -pub const CWP_ALL: u32 = 0; -pub const CWP_SKIPINVISIBLE: u32 = 1; -pub const CWP_SKIPDISABLED: u32 = 2; -pub const CWP_SKIPTRANSPARENT: u32 = 4; -pub const CTLCOLOR_MSGBOX: u32 = 0; -pub const CTLCOLOR_EDIT: u32 = 1; -pub const CTLCOLOR_LISTBOX: u32 = 2; -pub const CTLCOLOR_BTN: u32 = 3; -pub const CTLCOLOR_DLG: u32 = 4; -pub const CTLCOLOR_SCROLLBAR: u32 = 5; -pub const CTLCOLOR_STATIC: u32 = 6; -pub const CTLCOLOR_MAX: u32 = 7; -pub const COLOR_SCROLLBAR: u32 = 0; -pub const COLOR_BACKGROUND: u32 = 1; -pub const COLOR_ACTIVECAPTION: u32 = 2; -pub const COLOR_INACTIVECAPTION: u32 = 3; -pub const COLOR_MENU: u32 = 4; -pub const COLOR_WINDOW: u32 = 5; -pub const COLOR_WINDOWFRAME: u32 = 6; -pub const COLOR_MENUTEXT: u32 = 7; -pub const COLOR_WINDOWTEXT: u32 = 8; -pub const COLOR_CAPTIONTEXT: u32 = 9; -pub const COLOR_ACTIVEBORDER: u32 = 10; -pub const COLOR_INACTIVEBORDER: u32 = 11; -pub const COLOR_APPWORKSPACE: u32 = 12; -pub const COLOR_HIGHLIGHT: u32 = 13; -pub const COLOR_HIGHLIGHTTEXT: u32 = 14; -pub const COLOR_BTNFACE: u32 = 15; -pub const COLOR_BTNSHADOW: u32 = 16; -pub const COLOR_GRAYTEXT: u32 = 17; -pub const COLOR_BTNTEXT: u32 = 18; -pub const COLOR_INACTIVECAPTIONTEXT: u32 = 19; -pub const COLOR_BTNHIGHLIGHT: u32 = 20; -pub const COLOR_3DDKSHADOW: u32 = 21; -pub const COLOR_3DLIGHT: u32 = 22; -pub const COLOR_INFOTEXT: u32 = 23; -pub const COLOR_INFOBK: u32 = 24; -pub const COLOR_HOTLIGHT: u32 = 26; -pub const COLOR_GRADIENTACTIVECAPTION: u32 = 27; -pub const COLOR_GRADIENTINACTIVECAPTION: u32 = 28; -pub const COLOR_MENUHILIGHT: u32 = 29; -pub const COLOR_MENUBAR: u32 = 30; -pub const COLOR_DESKTOP: u32 = 1; -pub const COLOR_3DFACE: u32 = 15; -pub const COLOR_3DSHADOW: u32 = 16; -pub const COLOR_3DHIGHLIGHT: u32 = 20; -pub const COLOR_3DHILIGHT: u32 = 20; -pub const COLOR_BTNHILIGHT: u32 = 20; -pub const GW_HWNDFIRST: u32 = 0; -pub const GW_HWNDLAST: u32 = 1; -pub const GW_HWNDNEXT: u32 = 2; -pub const GW_HWNDPREV: u32 = 3; -pub const GW_OWNER: u32 = 4; -pub const GW_CHILD: u32 = 5; -pub const GW_ENABLEDPOPUP: u32 = 6; -pub const GW_MAX: u32 = 6; -pub const MF_INSERT: u32 = 0; -pub const MF_CHANGE: u32 = 128; -pub const MF_APPEND: u32 = 256; -pub const MF_DELETE: u32 = 512; -pub const MF_REMOVE: u32 = 4096; -pub const MF_BYCOMMAND: u32 = 0; -pub const MF_BYPOSITION: u32 = 1024; -pub const MF_SEPARATOR: u32 = 2048; -pub const MF_ENABLED: u32 = 0; -pub const MF_GRAYED: u32 = 1; -pub const MF_DISABLED: u32 = 2; -pub const MF_UNCHECKED: u32 = 0; -pub const MF_CHECKED: u32 = 8; -pub const MF_USECHECKBITMAPS: u32 = 512; -pub const MF_STRING: u32 = 0; -pub const MF_BITMAP: u32 = 4; -pub const MF_OWNERDRAW: u32 = 256; -pub const MF_POPUP: u32 = 16; -pub const MF_MENUBARBREAK: u32 = 32; -pub const MF_MENUBREAK: u32 = 64; -pub const MF_UNHILITE: u32 = 0; -pub const MF_HILITE: u32 = 128; -pub const MF_DEFAULT: u32 = 4096; -pub const MF_SYSMENU: u32 = 8192; -pub const MF_HELP: u32 = 16384; -pub const MF_RIGHTJUSTIFY: u32 = 16384; -pub const MF_MOUSESELECT: u32 = 32768; -pub const MF_END: u32 = 128; -pub const MFT_STRING: u32 = 0; -pub const MFT_BITMAP: u32 = 4; -pub const MFT_MENUBARBREAK: u32 = 32; -pub const MFT_MENUBREAK: u32 = 64; -pub const MFT_OWNERDRAW: u32 = 256; -pub const MFT_RADIOCHECK: u32 = 512; -pub const MFT_SEPARATOR: u32 = 2048; -pub const MFT_RIGHTORDER: u32 = 8192; -pub const MFT_RIGHTJUSTIFY: u32 = 16384; -pub const MFS_GRAYED: u32 = 3; -pub const MFS_DISABLED: u32 = 3; -pub const MFS_CHECKED: u32 = 8; -pub const MFS_HILITE: u32 = 128; -pub const MFS_ENABLED: u32 = 0; -pub const MFS_UNCHECKED: u32 = 0; -pub const MFS_UNHILITE: u32 = 0; -pub const MFS_DEFAULT: u32 = 4096; -pub const SC_SIZE: u32 = 61440; -pub const SC_MOVE: u32 = 61456; -pub const SC_MINIMIZE: u32 = 61472; -pub const SC_MAXIMIZE: u32 = 61488; -pub const SC_NEXTWINDOW: u32 = 61504; -pub const SC_PREVWINDOW: u32 = 61520; -pub const SC_CLOSE: u32 = 61536; -pub const SC_VSCROLL: u32 = 61552; -pub const SC_HSCROLL: u32 = 61568; -pub const SC_MOUSEMENU: u32 = 61584; -pub const SC_KEYMENU: u32 = 61696; -pub const SC_ARRANGE: u32 = 61712; -pub const SC_RESTORE: u32 = 61728; -pub const SC_TASKLIST: u32 = 61744; -pub const SC_SCREENSAVE: u32 = 61760; -pub const SC_HOTKEY: u32 = 61776; -pub const SC_DEFAULT: u32 = 61792; -pub const SC_MONITORPOWER: u32 = 61808; -pub const SC_CONTEXTHELP: u32 = 61824; -pub const SC_SEPARATOR: u32 = 61455; -pub const SCF_ISSECURE: u32 = 1; -pub const SC_ICON: u32 = 61472; -pub const SC_ZOOM: u32 = 61488; -pub const CURSOR_CREATION_SCALING_NONE: u32 = 1; -pub const CURSOR_CREATION_SCALING_DEFAULT: u32 = 2; -pub const IMAGE_BITMAP: u32 = 0; -pub const IMAGE_ICON: u32 = 1; -pub const IMAGE_CURSOR: u32 = 2; -pub const IMAGE_ENHMETAFILE: u32 = 3; -pub const LR_DEFAULTCOLOR: u32 = 0; -pub const LR_MONOCHROME: u32 = 1; -pub const LR_COLOR: u32 = 2; -pub const LR_COPYRETURNORG: u32 = 4; -pub const LR_COPYDELETEORG: u32 = 8; -pub const LR_LOADFROMFILE: u32 = 16; -pub const LR_LOADTRANSPARENT: u32 = 32; -pub const LR_DEFAULTSIZE: u32 = 64; -pub const LR_VGACOLOR: u32 = 128; -pub const LR_LOADMAP3DCOLORS: u32 = 4096; -pub const LR_CREATEDIBSECTION: u32 = 8192; -pub const LR_COPYFROMRESOURCE: u32 = 16384; -pub const LR_SHARED: u32 = 32768; -pub const DI_MASK: u32 = 1; -pub const DI_IMAGE: u32 = 2; -pub const DI_NORMAL: u32 = 3; -pub const DI_COMPAT: u32 = 4; -pub const DI_DEFAULTSIZE: u32 = 8; -pub const DI_NOMIRROR: u32 = 16; -pub const RES_ICON: u32 = 1; -pub const RES_CURSOR: u32 = 2; -pub const ORD_LANGDRIVER: u32 = 1; -pub const IDOK: u32 = 1; -pub const IDCANCEL: u32 = 2; -pub const IDABORT: u32 = 3; -pub const IDRETRY: u32 = 4; -pub const IDIGNORE: u32 = 5; -pub const IDYES: u32 = 6; -pub const IDNO: u32 = 7; -pub const IDCLOSE: u32 = 8; -pub const IDHELP: u32 = 9; -pub const IDTRYAGAIN: u32 = 10; -pub const IDCONTINUE: u32 = 11; -pub const IDTIMEOUT: u32 = 32000; -pub const ES_LEFT: u32 = 0; -pub const ES_CENTER: u32 = 1; -pub const ES_RIGHT: u32 = 2; -pub const ES_MULTILINE: u32 = 4; -pub const ES_UPPERCASE: u32 = 8; -pub const ES_LOWERCASE: u32 = 16; -pub const ES_PASSWORD: u32 = 32; -pub const ES_AUTOVSCROLL: u32 = 64; -pub const ES_AUTOHSCROLL: u32 = 128; -pub const ES_NOHIDESEL: u32 = 256; -pub const ES_OEMCONVERT: u32 = 1024; -pub const ES_READONLY: u32 = 2048; -pub const ES_WANTRETURN: u32 = 4096; -pub const ES_NUMBER: u32 = 8192; -pub const EN_SETFOCUS: u32 = 256; -pub const EN_KILLFOCUS: u32 = 512; -pub const EN_CHANGE: u32 = 768; -pub const EN_UPDATE: u32 = 1024; -pub const EN_ERRSPACE: u32 = 1280; -pub const EN_MAXTEXT: u32 = 1281; -pub const EN_HSCROLL: u32 = 1537; -pub const EN_VSCROLL: u32 = 1538; -pub const EN_ALIGN_LTR_EC: u32 = 1792; -pub const EN_ALIGN_RTL_EC: u32 = 1793; -pub const EN_BEFORE_PASTE: u32 = 2048; -pub const EN_AFTER_PASTE: u32 = 2049; -pub const EC_LEFTMARGIN: u32 = 1; -pub const EC_RIGHTMARGIN: u32 = 2; -pub const EC_USEFONTINFO: u32 = 65535; -pub const EMSIS_COMPOSITIONSTRING: u32 = 1; -pub const EIMES_GETCOMPSTRATONCE: u32 = 1; -pub const EIMES_CANCELCOMPSTRINFOCUS: u32 = 2; -pub const EIMES_COMPLETECOMPSTRKILLFOCUS: u32 = 4; -pub const EM_GETSEL: u32 = 176; -pub const EM_SETSEL: u32 = 177; -pub const EM_GETRECT: u32 = 178; -pub const EM_SETRECT: u32 = 179; -pub const EM_SETRECTNP: u32 = 180; -pub const EM_SCROLL: u32 = 181; -pub const EM_LINESCROLL: u32 = 182; -pub const EM_SCROLLCARET: u32 = 183; -pub const EM_GETMODIFY: u32 = 184; -pub const EM_SETMODIFY: u32 = 185; -pub const EM_GETLINECOUNT: u32 = 186; -pub const EM_LINEINDEX: u32 = 187; -pub const EM_SETHANDLE: u32 = 188; -pub const EM_GETHANDLE: u32 = 189; -pub const EM_GETTHUMB: u32 = 190; -pub const EM_LINELENGTH: u32 = 193; -pub const EM_REPLACESEL: u32 = 194; -pub const EM_GETLINE: u32 = 196; -pub const EM_LIMITTEXT: u32 = 197; -pub const EM_CANUNDO: u32 = 198; -pub const EM_UNDO: u32 = 199; -pub const EM_FMTLINES: u32 = 200; -pub const EM_LINEFROMCHAR: u32 = 201; -pub const EM_SETTABSTOPS: u32 = 203; -pub const EM_SETPASSWORDCHAR: u32 = 204; -pub const EM_EMPTYUNDOBUFFER: u32 = 205; -pub const EM_GETFIRSTVISIBLELINE: u32 = 206; -pub const EM_SETREADONLY: u32 = 207; -pub const EM_SETWORDBREAKPROC: u32 = 208; -pub const EM_GETWORDBREAKPROC: u32 = 209; -pub const EM_GETPASSWORDCHAR: u32 = 210; -pub const EM_SETMARGINS: u32 = 211; -pub const EM_GETMARGINS: u32 = 212; -pub const EM_SETLIMITTEXT: u32 = 197; -pub const EM_GETLIMITTEXT: u32 = 213; -pub const EM_POSFROMCHAR: u32 = 214; -pub const EM_CHARFROMPOS: u32 = 215; -pub const EM_SETIMESTATUS: u32 = 216; -pub const EM_GETIMESTATUS: u32 = 217; -pub const EM_ENABLEFEATURE: u32 = 218; -pub const WB_LEFT: u32 = 0; -pub const WB_RIGHT: u32 = 1; -pub const WB_ISDELIMITER: u32 = 2; -pub const BS_PUSHBUTTON: u32 = 0; -pub const BS_DEFPUSHBUTTON: u32 = 1; -pub const BS_CHECKBOX: u32 = 2; -pub const BS_AUTOCHECKBOX: u32 = 3; -pub const BS_RADIOBUTTON: u32 = 4; -pub const BS_3STATE: u32 = 5; -pub const BS_AUTO3STATE: u32 = 6; -pub const BS_GROUPBOX: u32 = 7; -pub const BS_USERBUTTON: u32 = 8; -pub const BS_AUTORADIOBUTTON: u32 = 9; -pub const BS_PUSHBOX: u32 = 10; -pub const BS_OWNERDRAW: u32 = 11; -pub const BS_TYPEMASK: u32 = 15; -pub const BS_LEFTTEXT: u32 = 32; -pub const BS_TEXT: u32 = 0; -pub const BS_ICON: u32 = 64; -pub const BS_BITMAP: u32 = 128; -pub const BS_LEFT: u32 = 256; -pub const BS_RIGHT: u32 = 512; -pub const BS_CENTER: u32 = 768; -pub const BS_TOP: u32 = 1024; -pub const BS_BOTTOM: u32 = 2048; -pub const BS_VCENTER: u32 = 3072; -pub const BS_PUSHLIKE: u32 = 4096; -pub const BS_MULTILINE: u32 = 8192; -pub const BS_NOTIFY: u32 = 16384; -pub const BS_FLAT: u32 = 32768; -pub const BS_RIGHTBUTTON: u32 = 32; -pub const BN_CLICKED: u32 = 0; -pub const BN_PAINT: u32 = 1; -pub const BN_HILITE: u32 = 2; -pub const BN_UNHILITE: u32 = 3; -pub const BN_DISABLE: u32 = 4; -pub const BN_DOUBLECLICKED: u32 = 5; -pub const BN_PUSHED: u32 = 2; -pub const BN_UNPUSHED: u32 = 3; -pub const BN_DBLCLK: u32 = 5; -pub const BN_SETFOCUS: u32 = 6; -pub const BN_KILLFOCUS: u32 = 7; -pub const BM_GETCHECK: u32 = 240; -pub const BM_SETCHECK: u32 = 241; -pub const BM_GETSTATE: u32 = 242; -pub const BM_SETSTATE: u32 = 243; -pub const BM_SETSTYLE: u32 = 244; -pub const BM_CLICK: u32 = 245; -pub const BM_GETIMAGE: u32 = 246; -pub const BM_SETIMAGE: u32 = 247; -pub const BM_SETDONTCLICK: u32 = 248; -pub const BST_UNCHECKED: u32 = 0; -pub const BST_CHECKED: u32 = 1; -pub const BST_INDETERMINATE: u32 = 2; -pub const BST_PUSHED: u32 = 4; -pub const BST_FOCUS: u32 = 8; -pub const SS_LEFT: u32 = 0; -pub const SS_CENTER: u32 = 1; -pub const SS_RIGHT: u32 = 2; -pub const SS_ICON: u32 = 3; -pub const SS_BLACKRECT: u32 = 4; -pub const SS_GRAYRECT: u32 = 5; -pub const SS_WHITERECT: u32 = 6; -pub const SS_BLACKFRAME: u32 = 7; -pub const SS_GRAYFRAME: u32 = 8; -pub const SS_WHITEFRAME: u32 = 9; -pub const SS_USERITEM: u32 = 10; -pub const SS_SIMPLE: u32 = 11; -pub const SS_LEFTNOWORDWRAP: u32 = 12; -pub const SS_OWNERDRAW: u32 = 13; -pub const SS_BITMAP: u32 = 14; -pub const SS_ENHMETAFILE: u32 = 15; -pub const SS_ETCHEDHORZ: u32 = 16; -pub const SS_ETCHEDVERT: u32 = 17; -pub const SS_ETCHEDFRAME: u32 = 18; -pub const SS_TYPEMASK: u32 = 31; -pub const SS_REALSIZECONTROL: u32 = 64; -pub const SS_NOPREFIX: u32 = 128; -pub const SS_NOTIFY: u32 = 256; -pub const SS_CENTERIMAGE: u32 = 512; -pub const SS_RIGHTJUST: u32 = 1024; -pub const SS_REALSIZEIMAGE: u32 = 2048; -pub const SS_SUNKEN: u32 = 4096; -pub const SS_EDITCONTROL: u32 = 8192; -pub const SS_ENDELLIPSIS: u32 = 16384; -pub const SS_PATHELLIPSIS: u32 = 32768; -pub const SS_WORDELLIPSIS: u32 = 49152; -pub const SS_ELLIPSISMASK: u32 = 49152; -pub const STM_SETICON: u32 = 368; -pub const STM_GETICON: u32 = 369; -pub const STM_SETIMAGE: u32 = 370; -pub const STM_GETIMAGE: u32 = 371; -pub const STN_CLICKED: u32 = 0; -pub const STN_DBLCLK: u32 = 1; -pub const STN_ENABLE: u32 = 2; -pub const STN_DISABLE: u32 = 3; -pub const STM_MSGMAX: u32 = 372; -pub const DWL_MSGRESULT: u32 = 0; -pub const DWL_DLGPROC: u32 = 4; -pub const DWL_USER: u32 = 8; -pub const DWLP_MSGRESULT: u32 = 0; -pub const DDL_READWRITE: u32 = 0; -pub const DDL_READONLY: u32 = 1; -pub const DDL_HIDDEN: u32 = 2; -pub const DDL_SYSTEM: u32 = 4; -pub const DDL_DIRECTORY: u32 = 16; -pub const DDL_ARCHIVE: u32 = 32; -pub const DDL_POSTMSGS: u32 = 8192; -pub const DDL_DRIVES: u32 = 16384; -pub const DDL_EXCLUSIVE: u32 = 32768; -pub const DS_ABSALIGN: u32 = 1; -pub const DS_SYSMODAL: u32 = 2; -pub const DS_LOCALEDIT: u32 = 32; -pub const DS_SETFONT: u32 = 64; -pub const DS_MODALFRAME: u32 = 128; -pub const DS_NOIDLEMSG: u32 = 256; -pub const DS_SETFOREGROUND: u32 = 512; -pub const DS_3DLOOK: u32 = 4; -pub const DS_FIXEDSYS: u32 = 8; -pub const DS_NOFAILCREATE: u32 = 16; -pub const DS_CONTROL: u32 = 1024; -pub const DS_CENTER: u32 = 2048; -pub const DS_CENTERMOUSE: u32 = 4096; -pub const DS_CONTEXTHELP: u32 = 8192; -pub const DS_SHELLFONT: u32 = 72; -pub const DM_GETDEFID: u32 = 1024; -pub const DM_SETDEFID: u32 = 1025; -pub const DM_REPOSITION: u32 = 1026; -pub const DC_HASDEFID: u32 = 21323; -pub const DLGC_WANTARROWS: u32 = 1; -pub const DLGC_WANTTAB: u32 = 2; -pub const DLGC_WANTALLKEYS: u32 = 4; -pub const DLGC_WANTMESSAGE: u32 = 4; -pub const DLGC_HASSETSEL: u32 = 8; -pub const DLGC_DEFPUSHBUTTON: u32 = 16; -pub const DLGC_UNDEFPUSHBUTTON: u32 = 32; -pub const DLGC_RADIOBUTTON: u32 = 64; -pub const DLGC_WANTCHARS: u32 = 128; -pub const DLGC_STATIC: u32 = 256; -pub const DLGC_BUTTON: u32 = 8192; -pub const LB_CTLCODE: u32 = 0; -pub const LB_OKAY: u32 = 0; -pub const LB_ERR: i32 = -1; -pub const LB_ERRSPACE: i32 = -2; -pub const LBN_ERRSPACE: i32 = -2; -pub const LBN_SELCHANGE: u32 = 1; -pub const LBN_DBLCLK: u32 = 2; -pub const LBN_SELCANCEL: u32 = 3; -pub const LBN_SETFOCUS: u32 = 4; -pub const LBN_KILLFOCUS: u32 = 5; -pub const LB_ADDSTRING: u32 = 384; -pub const LB_INSERTSTRING: u32 = 385; -pub const LB_DELETESTRING: u32 = 386; -pub const LB_SELITEMRANGEEX: u32 = 387; -pub const LB_RESETCONTENT: u32 = 388; -pub const LB_SETSEL: u32 = 389; -pub const LB_SETCURSEL: u32 = 390; -pub const LB_GETSEL: u32 = 391; -pub const LB_GETCURSEL: u32 = 392; -pub const LB_GETTEXT: u32 = 393; -pub const LB_GETTEXTLEN: u32 = 394; -pub const LB_GETCOUNT: u32 = 395; -pub const LB_SELECTSTRING: u32 = 396; -pub const LB_DIR: u32 = 397; -pub const LB_GETTOPINDEX: u32 = 398; -pub const LB_FINDSTRING: u32 = 399; -pub const LB_GETSELCOUNT: u32 = 400; -pub const LB_GETSELITEMS: u32 = 401; -pub const LB_SETTABSTOPS: u32 = 402; -pub const LB_GETHORIZONTALEXTENT: u32 = 403; -pub const LB_SETHORIZONTALEXTENT: u32 = 404; -pub const LB_SETCOLUMNWIDTH: u32 = 405; -pub const LB_ADDFILE: u32 = 406; -pub const LB_SETTOPINDEX: u32 = 407; -pub const LB_GETITEMRECT: u32 = 408; -pub const LB_GETITEMDATA: u32 = 409; -pub const LB_SETITEMDATA: u32 = 410; -pub const LB_SELITEMRANGE: u32 = 411; -pub const LB_SETANCHORINDEX: u32 = 412; -pub const LB_GETANCHORINDEX: u32 = 413; -pub const LB_SETCARETINDEX: u32 = 414; -pub const LB_GETCARETINDEX: u32 = 415; -pub const LB_SETITEMHEIGHT: u32 = 416; -pub const LB_GETITEMHEIGHT: u32 = 417; -pub const LB_FINDSTRINGEXACT: u32 = 418; -pub const LB_SETLOCALE: u32 = 421; -pub const LB_GETLOCALE: u32 = 422; -pub const LB_SETCOUNT: u32 = 423; -pub const LB_INITSTORAGE: u32 = 424; -pub const LB_ITEMFROMPOINT: u32 = 425; -pub const LB_GETLISTBOXINFO: u32 = 434; -pub const LB_MSGMAX: u32 = 435; -pub const LBS_NOTIFY: u32 = 1; -pub const LBS_SORT: u32 = 2; -pub const LBS_NOREDRAW: u32 = 4; -pub const LBS_MULTIPLESEL: u32 = 8; -pub const LBS_OWNERDRAWFIXED: u32 = 16; -pub const LBS_OWNERDRAWVARIABLE: u32 = 32; -pub const LBS_HASSTRINGS: u32 = 64; -pub const LBS_USETABSTOPS: u32 = 128; -pub const LBS_NOINTEGRALHEIGHT: u32 = 256; -pub const LBS_MULTICOLUMN: u32 = 512; -pub const LBS_WANTKEYBOARDINPUT: u32 = 1024; -pub const LBS_EXTENDEDSEL: u32 = 2048; -pub const LBS_DISABLENOSCROLL: u32 = 4096; -pub const LBS_NODATA: u32 = 8192; -pub const LBS_NOSEL: u32 = 16384; -pub const LBS_COMBOBOX: u32 = 32768; -pub const LBS_STANDARD: u32 = 10485763; -pub const CB_OKAY: u32 = 0; -pub const CB_ERR: i32 = -1; -pub const CB_ERRSPACE: i32 = -2; -pub const CBN_ERRSPACE: i32 = -1; -pub const CBN_SELCHANGE: u32 = 1; -pub const CBN_DBLCLK: u32 = 2; -pub const CBN_SETFOCUS: u32 = 3; -pub const CBN_KILLFOCUS: u32 = 4; -pub const CBN_EDITCHANGE: u32 = 5; -pub const CBN_EDITUPDATE: u32 = 6; -pub const CBN_DROPDOWN: u32 = 7; -pub const CBN_CLOSEUP: u32 = 8; -pub const CBN_SELENDOK: u32 = 9; -pub const CBN_SELENDCANCEL: u32 = 10; -pub const CBS_SIMPLE: u32 = 1; -pub const CBS_DROPDOWN: u32 = 2; -pub const CBS_DROPDOWNLIST: u32 = 3; -pub const CBS_OWNERDRAWFIXED: u32 = 16; -pub const CBS_OWNERDRAWVARIABLE: u32 = 32; -pub const CBS_AUTOHSCROLL: u32 = 64; -pub const CBS_OEMCONVERT: u32 = 128; -pub const CBS_SORT: u32 = 256; -pub const CBS_HASSTRINGS: u32 = 512; -pub const CBS_NOINTEGRALHEIGHT: u32 = 1024; -pub const CBS_DISABLENOSCROLL: u32 = 2048; -pub const CBS_UPPERCASE: u32 = 8192; -pub const CBS_LOWERCASE: u32 = 16384; -pub const CB_GETEDITSEL: u32 = 320; -pub const CB_LIMITTEXT: u32 = 321; -pub const CB_SETEDITSEL: u32 = 322; -pub const CB_ADDSTRING: u32 = 323; -pub const CB_DELETESTRING: u32 = 324; -pub const CB_DIR: u32 = 325; -pub const CB_GETCOUNT: u32 = 326; -pub const CB_GETCURSEL: u32 = 327; -pub const CB_GETLBTEXT: u32 = 328; -pub const CB_GETLBTEXTLEN: u32 = 329; -pub const CB_INSERTSTRING: u32 = 330; -pub const CB_RESETCONTENT: u32 = 331; -pub const CB_FINDSTRING: u32 = 332; -pub const CB_SELECTSTRING: u32 = 333; -pub const CB_SETCURSEL: u32 = 334; -pub const CB_SHOWDROPDOWN: u32 = 335; -pub const CB_GETITEMDATA: u32 = 336; -pub const CB_SETITEMDATA: u32 = 337; -pub const CB_GETDROPPEDCONTROLRECT: u32 = 338; -pub const CB_SETITEMHEIGHT: u32 = 339; -pub const CB_GETITEMHEIGHT: u32 = 340; -pub const CB_SETEXTENDEDUI: u32 = 341; -pub const CB_GETEXTENDEDUI: u32 = 342; -pub const CB_GETDROPPEDSTATE: u32 = 343; -pub const CB_FINDSTRINGEXACT: u32 = 344; -pub const CB_SETLOCALE: u32 = 345; -pub const CB_GETLOCALE: u32 = 346; -pub const CB_GETTOPINDEX: u32 = 347; -pub const CB_SETTOPINDEX: u32 = 348; -pub const CB_GETHORIZONTALEXTENT: u32 = 349; -pub const CB_SETHORIZONTALEXTENT: u32 = 350; -pub const CB_GETDROPPEDWIDTH: u32 = 351; -pub const CB_SETDROPPEDWIDTH: u32 = 352; -pub const CB_INITSTORAGE: u32 = 353; -pub const CB_GETCOMBOBOXINFO: u32 = 356; -pub const CB_MSGMAX: u32 = 357; -pub const SBS_HORZ: u32 = 0; -pub const SBS_VERT: u32 = 1; -pub const SBS_TOPALIGN: u32 = 2; -pub const SBS_LEFTALIGN: u32 = 2; -pub const SBS_BOTTOMALIGN: u32 = 4; -pub const SBS_RIGHTALIGN: u32 = 4; -pub const SBS_SIZEBOXTOPLEFTALIGN: u32 = 2; -pub const SBS_SIZEBOXBOTTOMRIGHTALIGN: u32 = 4; -pub const SBS_SIZEBOX: u32 = 8; -pub const SBS_SIZEGRIP: u32 = 16; -pub const SBM_SETPOS: u32 = 224; -pub const SBM_GETPOS: u32 = 225; -pub const SBM_SETRANGE: u32 = 226; -pub const SBM_SETRANGEREDRAW: u32 = 230; -pub const SBM_GETRANGE: u32 = 227; -pub const SBM_ENABLE_ARROWS: u32 = 228; -pub const SBM_SETSCROLLINFO: u32 = 233; -pub const SBM_GETSCROLLINFO: u32 = 234; -pub const SBM_GETSCROLLBARINFO: u32 = 235; -pub const SIF_RANGE: u32 = 1; -pub const SIF_PAGE: u32 = 2; -pub const SIF_POS: u32 = 4; -pub const SIF_DISABLENOSCROLL: u32 = 8; -pub const SIF_TRACKPOS: u32 = 16; -pub const SIF_ALL: u32 = 23; -pub const MDIS_ALLCHILDSTYLES: u32 = 1; -pub const MDITILE_VERTICAL: u32 = 0; -pub const MDITILE_HORIZONTAL: u32 = 1; -pub const MDITILE_SKIPDISABLED: u32 = 2; -pub const MDITILE_ZORDER: u32 = 4; -pub const HELP_CONTEXT: u32 = 1; -pub const HELP_QUIT: u32 = 2; -pub const HELP_INDEX: u32 = 3; -pub const HELP_CONTENTS: u32 = 3; -pub const HELP_HELPONHELP: u32 = 4; -pub const HELP_SETINDEX: u32 = 5; -pub const HELP_SETCONTENTS: u32 = 5; -pub const HELP_CONTEXTPOPUP: u32 = 8; -pub const HELP_FORCEFILE: u32 = 9; -pub const HELP_KEY: u32 = 257; -pub const HELP_COMMAND: u32 = 258; -pub const HELP_PARTIALKEY: u32 = 261; -pub const HELP_MULTIKEY: u32 = 513; -pub const HELP_SETWINPOS: u32 = 515; -pub const HELP_CONTEXTMENU: u32 = 10; -pub const HELP_FINDER: u32 = 11; -pub const HELP_WM_HELP: u32 = 12; -pub const HELP_SETPOPUP_POS: u32 = 13; -pub const HELP_TCARD: u32 = 32768; -pub const HELP_TCARD_DATA: u32 = 16; -pub const HELP_TCARD_OTHER_CALLER: u32 = 17; -pub const IDH_NO_HELP: u32 = 28440; -pub const IDH_MISSING_CONTEXT: u32 = 28441; -pub const IDH_GENERIC_HELP_BUTTON: u32 = 28442; -pub const IDH_OK: u32 = 28443; -pub const IDH_CANCEL: u32 = 28444; -pub const IDH_HELP: u32 = 28445; -pub const GR_GDIOBJECTS: u32 = 0; -pub const GR_USEROBJECTS: u32 = 1; -pub const GR_GDIOBJECTS_PEAK: u32 = 2; -pub const GR_USEROBJECTS_PEAK: u32 = 4; -pub const SPI_GETBEEP: u32 = 1; -pub const SPI_SETBEEP: u32 = 2; -pub const SPI_GETMOUSE: u32 = 3; -pub const SPI_SETMOUSE: u32 = 4; -pub const SPI_GETBORDER: u32 = 5; -pub const SPI_SETBORDER: u32 = 6; -pub const SPI_GETKEYBOARDSPEED: u32 = 10; -pub const SPI_SETKEYBOARDSPEED: u32 = 11; -pub const SPI_LANGDRIVER: u32 = 12; -pub const SPI_ICONHORIZONTALSPACING: u32 = 13; -pub const SPI_GETSCREENSAVETIMEOUT: u32 = 14; -pub const SPI_SETSCREENSAVETIMEOUT: u32 = 15; -pub const SPI_GETSCREENSAVEACTIVE: u32 = 16; -pub const SPI_SETSCREENSAVEACTIVE: u32 = 17; -pub const SPI_GETGRIDGRANULARITY: u32 = 18; -pub const SPI_SETGRIDGRANULARITY: u32 = 19; -pub const SPI_SETDESKWALLPAPER: u32 = 20; -pub const SPI_SETDESKPATTERN: u32 = 21; -pub const SPI_GETKEYBOARDDELAY: u32 = 22; -pub const SPI_SETKEYBOARDDELAY: u32 = 23; -pub const SPI_ICONVERTICALSPACING: u32 = 24; -pub const SPI_GETICONTITLEWRAP: u32 = 25; -pub const SPI_SETICONTITLEWRAP: u32 = 26; -pub const SPI_GETMENUDROPALIGNMENT: u32 = 27; -pub const SPI_SETMENUDROPALIGNMENT: u32 = 28; -pub const SPI_SETDOUBLECLKWIDTH: u32 = 29; -pub const SPI_SETDOUBLECLKHEIGHT: u32 = 30; -pub const SPI_GETICONTITLELOGFONT: u32 = 31; -pub const SPI_SETDOUBLECLICKTIME: u32 = 32; -pub const SPI_SETMOUSEBUTTONSWAP: u32 = 33; -pub const SPI_SETICONTITLELOGFONT: u32 = 34; -pub const SPI_GETFASTTASKSWITCH: u32 = 35; -pub const SPI_SETFASTTASKSWITCH: u32 = 36; -pub const SPI_SETDRAGFULLWINDOWS: u32 = 37; -pub const SPI_GETDRAGFULLWINDOWS: u32 = 38; -pub const SPI_GETNONCLIENTMETRICS: u32 = 41; -pub const SPI_SETNONCLIENTMETRICS: u32 = 42; -pub const SPI_GETMINIMIZEDMETRICS: u32 = 43; -pub const SPI_SETMINIMIZEDMETRICS: u32 = 44; -pub const SPI_GETICONMETRICS: u32 = 45; -pub const SPI_SETICONMETRICS: u32 = 46; -pub const SPI_SETWORKAREA: u32 = 47; -pub const SPI_GETWORKAREA: u32 = 48; -pub const SPI_SETPENWINDOWS: u32 = 49; -pub const SPI_GETHIGHCONTRAST: u32 = 66; -pub const SPI_SETHIGHCONTRAST: u32 = 67; -pub const SPI_GETKEYBOARDPREF: u32 = 68; -pub const SPI_SETKEYBOARDPREF: u32 = 69; -pub const SPI_GETSCREENREADER: u32 = 70; -pub const SPI_SETSCREENREADER: u32 = 71; -pub const SPI_GETANIMATION: u32 = 72; -pub const SPI_SETANIMATION: u32 = 73; -pub const SPI_GETFONTSMOOTHING: u32 = 74; -pub const SPI_SETFONTSMOOTHING: u32 = 75; -pub const SPI_SETDRAGWIDTH: u32 = 76; -pub const SPI_SETDRAGHEIGHT: u32 = 77; -pub const SPI_SETHANDHELD: u32 = 78; -pub const SPI_GETLOWPOWERTIMEOUT: u32 = 79; -pub const SPI_GETPOWEROFFTIMEOUT: u32 = 80; -pub const SPI_SETLOWPOWERTIMEOUT: u32 = 81; -pub const SPI_SETPOWEROFFTIMEOUT: u32 = 82; -pub const SPI_GETLOWPOWERACTIVE: u32 = 83; -pub const SPI_GETPOWEROFFACTIVE: u32 = 84; -pub const SPI_SETLOWPOWERACTIVE: u32 = 85; -pub const SPI_SETPOWEROFFACTIVE: u32 = 86; -pub const SPI_SETCURSORS: u32 = 87; -pub const SPI_SETICONS: u32 = 88; -pub const SPI_GETDEFAULTINPUTLANG: u32 = 89; -pub const SPI_SETDEFAULTINPUTLANG: u32 = 90; -pub const SPI_SETLANGTOGGLE: u32 = 91; -pub const SPI_GETWINDOWSEXTENSION: u32 = 92; -pub const SPI_SETMOUSETRAILS: u32 = 93; -pub const SPI_GETMOUSETRAILS: u32 = 94; -pub const SPI_SETSCREENSAVERRUNNING: u32 = 97; -pub const SPI_SCREENSAVERRUNNING: u32 = 97; -pub const SPI_GETFILTERKEYS: u32 = 50; -pub const SPI_SETFILTERKEYS: u32 = 51; -pub const SPI_GETTOGGLEKEYS: u32 = 52; -pub const SPI_SETTOGGLEKEYS: u32 = 53; -pub const SPI_GETMOUSEKEYS: u32 = 54; -pub const SPI_SETMOUSEKEYS: u32 = 55; -pub const SPI_GETSHOWSOUNDS: u32 = 56; -pub const SPI_SETSHOWSOUNDS: u32 = 57; -pub const SPI_GETSTICKYKEYS: u32 = 58; -pub const SPI_SETSTICKYKEYS: u32 = 59; -pub const SPI_GETACCESSTIMEOUT: u32 = 60; -pub const SPI_SETACCESSTIMEOUT: u32 = 61; -pub const SPI_GETSERIALKEYS: u32 = 62; -pub const SPI_SETSERIALKEYS: u32 = 63; -pub const SPI_GETSOUNDSENTRY: u32 = 64; -pub const SPI_SETSOUNDSENTRY: u32 = 65; -pub const SPI_GETSNAPTODEFBUTTON: u32 = 95; -pub const SPI_SETSNAPTODEFBUTTON: u32 = 96; -pub const SPI_GETMOUSEHOVERWIDTH: u32 = 98; -pub const SPI_SETMOUSEHOVERWIDTH: u32 = 99; -pub const SPI_GETMOUSEHOVERHEIGHT: u32 = 100; -pub const SPI_SETMOUSEHOVERHEIGHT: u32 = 101; -pub const SPI_GETMOUSEHOVERTIME: u32 = 102; -pub const SPI_SETMOUSEHOVERTIME: u32 = 103; -pub const SPI_GETWHEELSCROLLLINES: u32 = 104; -pub const SPI_SETWHEELSCROLLLINES: u32 = 105; -pub const SPI_GETMENUSHOWDELAY: u32 = 106; -pub const SPI_SETMENUSHOWDELAY: u32 = 107; -pub const SPI_GETWHEELSCROLLCHARS: u32 = 108; -pub const SPI_SETWHEELSCROLLCHARS: u32 = 109; -pub const SPI_GETSHOWIMEUI: u32 = 110; -pub const SPI_SETSHOWIMEUI: u32 = 111; -pub const SPI_GETMOUSESPEED: u32 = 112; -pub const SPI_SETMOUSESPEED: u32 = 113; -pub const SPI_GETSCREENSAVERRUNNING: u32 = 114; -pub const SPI_GETDESKWALLPAPER: u32 = 115; -pub const SPI_GETAUDIODESCRIPTION: u32 = 116; -pub const SPI_SETAUDIODESCRIPTION: u32 = 117; -pub const SPI_GETSCREENSAVESECURE: u32 = 118; -pub const SPI_SETSCREENSAVESECURE: u32 = 119; -pub const SPI_GETHUNGAPPTIMEOUT: u32 = 120; -pub const SPI_SETHUNGAPPTIMEOUT: u32 = 121; -pub const SPI_GETWAITTOKILLTIMEOUT: u32 = 122; -pub const SPI_SETWAITTOKILLTIMEOUT: u32 = 123; -pub const SPI_GETWAITTOKILLSERVICETIMEOUT: u32 = 124; -pub const SPI_SETWAITTOKILLSERVICETIMEOUT: u32 = 125; -pub const SPI_GETMOUSEDOCKTHRESHOLD: u32 = 126; -pub const SPI_SETMOUSEDOCKTHRESHOLD: u32 = 127; -pub const SPI_GETPENDOCKTHRESHOLD: u32 = 128; -pub const SPI_SETPENDOCKTHRESHOLD: u32 = 129; -pub const SPI_GETWINARRANGING: u32 = 130; -pub const SPI_SETWINARRANGING: u32 = 131; -pub const SPI_GETMOUSEDRAGOUTTHRESHOLD: u32 = 132; -pub const SPI_SETMOUSEDRAGOUTTHRESHOLD: u32 = 133; -pub const SPI_GETPENDRAGOUTTHRESHOLD: u32 = 134; -pub const SPI_SETPENDRAGOUTTHRESHOLD: u32 = 135; -pub const SPI_GETMOUSESIDEMOVETHRESHOLD: u32 = 136; -pub const SPI_SETMOUSESIDEMOVETHRESHOLD: u32 = 137; -pub const SPI_GETPENSIDEMOVETHRESHOLD: u32 = 138; -pub const SPI_SETPENSIDEMOVETHRESHOLD: u32 = 139; -pub const SPI_GETDRAGFROMMAXIMIZE: u32 = 140; -pub const SPI_SETDRAGFROMMAXIMIZE: u32 = 141; -pub const SPI_GETSNAPSIZING: u32 = 142; -pub const SPI_SETSNAPSIZING: u32 = 143; -pub const SPI_GETDOCKMOVING: u32 = 144; -pub const SPI_SETDOCKMOVING: u32 = 145; -pub const MAX_TOUCH_PREDICTION_FILTER_TAPS: u32 = 3; -pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_LATENCY: u32 = 8; -pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_SAMPLETIME: u32 = 8; -pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_USE_HW_TIMESTAMP: u32 = 1; -pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_DELTA: f64 = 0.001; -pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_MIN: f64 = 0.9; -pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_MAX: f64 = 0.999; -pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_LEARNING_RATE: f64 = 0.001; -pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_EXPO_SMOOTH_ALPHA: f64 = 0.99; -pub const SPI_GETTOUCHPREDICTIONPARAMETERS: u32 = 156; -pub const SPI_SETTOUCHPREDICTIONPARAMETERS: u32 = 157; -pub const MAX_LOGICALDPIOVERRIDE: u32 = 2; -pub const MIN_LOGICALDPIOVERRIDE: i32 = -2; -pub const SPI_GETLOGICALDPIOVERRIDE: u32 = 158; -pub const SPI_SETLOGICALDPIOVERRIDE: u32 = 159; -pub const SPI_GETMENURECT: u32 = 162; -pub const SPI_SETMENURECT: u32 = 163; -pub const SPI_GETACTIVEWINDOWTRACKING: u32 = 4096; -pub const SPI_SETACTIVEWINDOWTRACKING: u32 = 4097; -pub const SPI_GETMENUANIMATION: u32 = 4098; -pub const SPI_SETMENUANIMATION: u32 = 4099; -pub const SPI_GETCOMBOBOXANIMATION: u32 = 4100; -pub const SPI_SETCOMBOBOXANIMATION: u32 = 4101; -pub const SPI_GETLISTBOXSMOOTHSCROLLING: u32 = 4102; -pub const SPI_SETLISTBOXSMOOTHSCROLLING: u32 = 4103; -pub const SPI_GETGRADIENTCAPTIONS: u32 = 4104; -pub const SPI_SETGRADIENTCAPTIONS: u32 = 4105; -pub const SPI_GETKEYBOARDCUES: u32 = 4106; -pub const SPI_SETKEYBOARDCUES: u32 = 4107; -pub const SPI_GETMENUUNDERLINES: u32 = 4106; -pub const SPI_SETMENUUNDERLINES: u32 = 4107; -pub const SPI_GETACTIVEWNDTRKZORDER: u32 = 4108; -pub const SPI_SETACTIVEWNDTRKZORDER: u32 = 4109; -pub const SPI_GETHOTTRACKING: u32 = 4110; -pub const SPI_SETHOTTRACKING: u32 = 4111; -pub const SPI_GETMENUFADE: u32 = 4114; -pub const SPI_SETMENUFADE: u32 = 4115; -pub const SPI_GETSELECTIONFADE: u32 = 4116; -pub const SPI_SETSELECTIONFADE: u32 = 4117; -pub const SPI_GETTOOLTIPANIMATION: u32 = 4118; -pub const SPI_SETTOOLTIPANIMATION: u32 = 4119; -pub const SPI_GETTOOLTIPFADE: u32 = 4120; -pub const SPI_SETTOOLTIPFADE: u32 = 4121; -pub const SPI_GETCURSORSHADOW: u32 = 4122; -pub const SPI_SETCURSORSHADOW: u32 = 4123; -pub const SPI_GETMOUSESONAR: u32 = 4124; -pub const SPI_SETMOUSESONAR: u32 = 4125; -pub const SPI_GETMOUSECLICKLOCK: u32 = 4126; -pub const SPI_SETMOUSECLICKLOCK: u32 = 4127; -pub const SPI_GETMOUSEVANISH: u32 = 4128; -pub const SPI_SETMOUSEVANISH: u32 = 4129; -pub const SPI_GETFLATMENU: u32 = 4130; -pub const SPI_SETFLATMENU: u32 = 4131; -pub const SPI_GETDROPSHADOW: u32 = 4132; -pub const SPI_SETDROPSHADOW: u32 = 4133; -pub const SPI_GETBLOCKSENDINPUTRESETS: u32 = 4134; -pub const SPI_SETBLOCKSENDINPUTRESETS: u32 = 4135; -pub const SPI_GETUIEFFECTS: u32 = 4158; -pub const SPI_SETUIEFFECTS: u32 = 4159; -pub const SPI_GETDISABLEOVERLAPPEDCONTENT: u32 = 4160; -pub const SPI_SETDISABLEOVERLAPPEDCONTENT: u32 = 4161; -pub const SPI_GETCLIENTAREAANIMATION: u32 = 4162; -pub const SPI_SETCLIENTAREAANIMATION: u32 = 4163; -pub const SPI_GETCLEARTYPE: u32 = 4168; -pub const SPI_SETCLEARTYPE: u32 = 4169; -pub const SPI_GETSPEECHRECOGNITION: u32 = 4170; -pub const SPI_SETSPEECHRECOGNITION: u32 = 4171; -pub const SPI_GETCARETBROWSING: u32 = 4172; -pub const SPI_SETCARETBROWSING: u32 = 4173; -pub const SPI_GETTHREADLOCALINPUTSETTINGS: u32 = 4174; -pub const SPI_SETTHREADLOCALINPUTSETTINGS: u32 = 4175; -pub const SPI_GETSYSTEMLANGUAGEBAR: u32 = 4176; -pub const SPI_SETSYSTEMLANGUAGEBAR: u32 = 4177; -pub const SPI_GETFOREGROUNDLOCKTIMEOUT: u32 = 8192; -pub const SPI_SETFOREGROUNDLOCKTIMEOUT: u32 = 8193; -pub const SPI_GETACTIVEWNDTRKTIMEOUT: u32 = 8194; -pub const SPI_SETACTIVEWNDTRKTIMEOUT: u32 = 8195; -pub const SPI_GETFOREGROUNDFLASHCOUNT: u32 = 8196; -pub const SPI_SETFOREGROUNDFLASHCOUNT: u32 = 8197; -pub const SPI_GETCARETWIDTH: u32 = 8198; -pub const SPI_SETCARETWIDTH: u32 = 8199; -pub const SPI_GETMOUSECLICKLOCKTIME: u32 = 8200; -pub const SPI_SETMOUSECLICKLOCKTIME: u32 = 8201; -pub const SPI_GETFONTSMOOTHINGTYPE: u32 = 8202; -pub const SPI_SETFONTSMOOTHINGTYPE: u32 = 8203; -pub const FE_FONTSMOOTHINGSTANDARD: u32 = 1; -pub const FE_FONTSMOOTHINGCLEARTYPE: u32 = 2; -pub const SPI_GETFONTSMOOTHINGCONTRAST: u32 = 8204; -pub const SPI_SETFONTSMOOTHINGCONTRAST: u32 = 8205; -pub const SPI_GETFOCUSBORDERWIDTH: u32 = 8206; -pub const SPI_SETFOCUSBORDERWIDTH: u32 = 8207; -pub const SPI_GETFOCUSBORDERHEIGHT: u32 = 8208; -pub const SPI_SETFOCUSBORDERHEIGHT: u32 = 8209; -pub const SPI_GETFONTSMOOTHINGORIENTATION: u32 = 8210; -pub const SPI_SETFONTSMOOTHINGORIENTATION: u32 = 8211; -pub const FE_FONTSMOOTHINGORIENTATIONBGR: u32 = 0; -pub const FE_FONTSMOOTHINGORIENTATIONRGB: u32 = 1; -pub const SPI_GETMINIMUMHITRADIUS: u32 = 8212; -pub const SPI_SETMINIMUMHITRADIUS: u32 = 8213; -pub const SPI_GETMESSAGEDURATION: u32 = 8214; -pub const SPI_SETMESSAGEDURATION: u32 = 8215; -pub const SPI_GETCONTACTVISUALIZATION: u32 = 8216; -pub const SPI_SETCONTACTVISUALIZATION: u32 = 8217; -pub const CONTACTVISUALIZATION_OFF: u32 = 0; -pub const CONTACTVISUALIZATION_ON: u32 = 1; -pub const CONTACTVISUALIZATION_PRESENTATIONMODE: u32 = 2; -pub const SPI_GETGESTUREVISUALIZATION: u32 = 8218; -pub const SPI_SETGESTUREVISUALIZATION: u32 = 8219; -pub const GESTUREVISUALIZATION_OFF: u32 = 0; -pub const GESTUREVISUALIZATION_ON: u32 = 31; -pub const GESTUREVISUALIZATION_TAP: u32 = 1; -pub const GESTUREVISUALIZATION_DOUBLETAP: u32 = 2; -pub const GESTUREVISUALIZATION_PRESSANDTAP: u32 = 4; -pub const GESTUREVISUALIZATION_PRESSANDHOLD: u32 = 8; -pub const GESTUREVISUALIZATION_RIGHTTAP: u32 = 16; -pub const SPI_GETMOUSEWHEELROUTING: u32 = 8220; -pub const SPI_SETMOUSEWHEELROUTING: u32 = 8221; -pub const MOUSEWHEEL_ROUTING_FOCUS: u32 = 0; -pub const MOUSEWHEEL_ROUTING_HYBRID: u32 = 1; -pub const MOUSEWHEEL_ROUTING_MOUSE_POS: u32 = 2; -pub const SPI_GETPENVISUALIZATION: u32 = 8222; -pub const SPI_SETPENVISUALIZATION: u32 = 8223; -pub const PENVISUALIZATION_ON: u32 = 35; -pub const PENVISUALIZATION_OFF: u32 = 0; -pub const PENVISUALIZATION_TAP: u32 = 1; -pub const PENVISUALIZATION_DOUBLETAP: u32 = 2; -pub const PENVISUALIZATION_CURSOR: u32 = 32; -pub const SPI_GETPENARBITRATIONTYPE: u32 = 8224; -pub const SPI_SETPENARBITRATIONTYPE: u32 = 8225; -pub const PENARBITRATIONTYPE_NONE: u32 = 0; -pub const PENARBITRATIONTYPE_WIN8: u32 = 1; -pub const PENARBITRATIONTYPE_FIS: u32 = 2; -pub const PENARBITRATIONTYPE_SPT: u32 = 3; -pub const PENARBITRATIONTYPE_MAX: u32 = 4; -pub const SPI_GETCARETTIMEOUT: u32 = 8226; -pub const SPI_SETCARETTIMEOUT: u32 = 8227; -pub const SPI_GETHANDEDNESS: u32 = 8228; -pub const SPI_SETHANDEDNESS: u32 = 8229; -pub const SPIF_UPDATEINIFILE: u32 = 1; -pub const SPIF_SENDWININICHANGE: u32 = 2; -pub const SPIF_SENDCHANGE: u32 = 2; -pub const METRICS_USEDEFAULT: i32 = -1; -pub const ARW_BOTTOMLEFT: u32 = 0; -pub const ARW_BOTTOMRIGHT: u32 = 1; -pub const ARW_TOPLEFT: u32 = 2; -pub const ARW_TOPRIGHT: u32 = 3; -pub const ARW_STARTMASK: u32 = 3; -pub const ARW_STARTRIGHT: u32 = 1; -pub const ARW_STARTTOP: u32 = 2; -pub const ARW_LEFT: u32 = 0; -pub const ARW_RIGHT: u32 = 0; -pub const ARW_UP: u32 = 4; -pub const ARW_DOWN: u32 = 4; -pub const ARW_HIDE: u32 = 8; -pub const SERKF_SERIALKEYSON: u32 = 1; -pub const SERKF_AVAILABLE: u32 = 2; -pub const SERKF_INDICATOR: u32 = 4; -pub const HCF_HIGHCONTRASTON: u32 = 1; -pub const HCF_AVAILABLE: u32 = 2; -pub const HCF_HOTKEYACTIVE: u32 = 4; -pub const HCF_CONFIRMHOTKEY: u32 = 8; -pub const HCF_HOTKEYSOUND: u32 = 16; -pub const HCF_INDICATOR: u32 = 32; -pub const HCF_HOTKEYAVAILABLE: u32 = 64; -pub const HCF_LOGONDESKTOP: u32 = 256; -pub const HCF_DEFAULTDESKTOP: u32 = 512; -pub const HCF_OPTION_NOTHEMECHANGE: u32 = 4096; -pub const CDS_UPDATEREGISTRY: u32 = 1; -pub const CDS_TEST: u32 = 2; -pub const CDS_FULLSCREEN: u32 = 4; -pub const CDS_GLOBAL: u32 = 8; -pub const CDS_SET_PRIMARY: u32 = 16; -pub const CDS_VIDEOPARAMETERS: u32 = 32; -pub const CDS_ENABLE_UNSAFE_MODES: u32 = 256; -pub const CDS_DISABLE_UNSAFE_MODES: u32 = 512; -pub const CDS_RESET: u32 = 1073741824; -pub const CDS_RESET_EX: u32 = 536870912; -pub const CDS_NORESET: u32 = 268435456; -pub const VP_COMMAND_GET: u32 = 1; -pub const VP_COMMAND_SET: u32 = 2; -pub const VP_FLAGS_TV_MODE: u32 = 1; -pub const VP_FLAGS_TV_STANDARD: u32 = 2; -pub const VP_FLAGS_FLICKER: u32 = 4; -pub const VP_FLAGS_OVERSCAN: u32 = 8; -pub const VP_FLAGS_MAX_UNSCALED: u32 = 16; -pub const VP_FLAGS_POSITION: u32 = 32; -pub const VP_FLAGS_BRIGHTNESS: u32 = 64; -pub const VP_FLAGS_CONTRAST: u32 = 128; -pub const VP_FLAGS_COPYPROTECT: u32 = 256; -pub const VP_MODE_WIN_GRAPHICS: u32 = 1; -pub const VP_MODE_TV_PLAYBACK: u32 = 2; -pub const VP_TV_STANDARD_NTSC_M: u32 = 1; -pub const VP_TV_STANDARD_NTSC_M_J: u32 = 2; -pub const VP_TV_STANDARD_PAL_B: u32 = 4; -pub const VP_TV_STANDARD_PAL_D: u32 = 8; -pub const VP_TV_STANDARD_PAL_H: u32 = 16; -pub const VP_TV_STANDARD_PAL_I: u32 = 32; -pub const VP_TV_STANDARD_PAL_M: u32 = 64; -pub const VP_TV_STANDARD_PAL_N: u32 = 128; -pub const VP_TV_STANDARD_SECAM_B: u32 = 256; -pub const VP_TV_STANDARD_SECAM_D: u32 = 512; -pub const VP_TV_STANDARD_SECAM_G: u32 = 1024; -pub const VP_TV_STANDARD_SECAM_H: u32 = 2048; -pub const VP_TV_STANDARD_SECAM_K: u32 = 4096; -pub const VP_TV_STANDARD_SECAM_K1: u32 = 8192; -pub const VP_TV_STANDARD_SECAM_L: u32 = 16384; -pub const VP_TV_STANDARD_WIN_VGA: u32 = 32768; -pub const VP_TV_STANDARD_NTSC_433: u32 = 65536; -pub const VP_TV_STANDARD_PAL_G: u32 = 131072; -pub const VP_TV_STANDARD_PAL_60: u32 = 262144; -pub const VP_TV_STANDARD_SECAM_L1: u32 = 524288; -pub const VP_CP_TYPE_APS_TRIGGER: u32 = 1; -pub const VP_CP_TYPE_MACROVISION: u32 = 2; -pub const VP_CP_CMD_ACTIVATE: u32 = 1; -pub const VP_CP_CMD_DEACTIVATE: u32 = 2; -pub const VP_CP_CMD_CHANGE: u32 = 4; -pub const DISP_CHANGE_SUCCESSFUL: u32 = 0; -pub const DISP_CHANGE_RESTART: u32 = 1; -pub const DISP_CHANGE_FAILED: i32 = -1; -pub const DISP_CHANGE_BADMODE: i32 = -2; -pub const DISP_CHANGE_NOTUPDATED: i32 = -3; -pub const DISP_CHANGE_BADFLAGS: i32 = -4; -pub const DISP_CHANGE_BADPARAM: i32 = -5; -pub const DISP_CHANGE_BADDUALVIEW: i32 = -6; -pub const EDS_RAWMODE: u32 = 2; -pub const EDS_ROTATEDMODE: u32 = 4; -pub const EDD_GET_DEVICE_INTERFACE_NAME: u32 = 1; -pub const FKF_FILTERKEYSON: u32 = 1; -pub const FKF_AVAILABLE: u32 = 2; -pub const FKF_HOTKEYACTIVE: u32 = 4; -pub const FKF_CONFIRMHOTKEY: u32 = 8; -pub const FKF_HOTKEYSOUND: u32 = 16; -pub const FKF_INDICATOR: u32 = 32; -pub const FKF_CLICKON: u32 = 64; -pub const SKF_STICKYKEYSON: u32 = 1; -pub const SKF_AVAILABLE: u32 = 2; -pub const SKF_HOTKEYACTIVE: u32 = 4; -pub const SKF_CONFIRMHOTKEY: u32 = 8; -pub const SKF_HOTKEYSOUND: u32 = 16; -pub const SKF_INDICATOR: u32 = 32; -pub const SKF_AUDIBLEFEEDBACK: u32 = 64; -pub const SKF_TRISTATE: u32 = 128; -pub const SKF_TWOKEYSOFF: u32 = 256; -pub const SKF_LALTLATCHED: u32 = 268435456; -pub const SKF_LCTLLATCHED: u32 = 67108864; -pub const SKF_LSHIFTLATCHED: u32 = 16777216; -pub const SKF_RALTLATCHED: u32 = 536870912; -pub const SKF_RCTLLATCHED: u32 = 134217728; -pub const SKF_RSHIFTLATCHED: u32 = 33554432; -pub const SKF_LWINLATCHED: u32 = 1073741824; -pub const SKF_RWINLATCHED: u32 = 2147483648; -pub const SKF_LALTLOCKED: u32 = 1048576; -pub const SKF_LCTLLOCKED: u32 = 262144; -pub const SKF_LSHIFTLOCKED: u32 = 65536; -pub const SKF_RALTLOCKED: u32 = 2097152; -pub const SKF_RCTLLOCKED: u32 = 524288; -pub const SKF_RSHIFTLOCKED: u32 = 131072; -pub const SKF_LWINLOCKED: u32 = 4194304; -pub const SKF_RWINLOCKED: u32 = 8388608; -pub const MKF_MOUSEKEYSON: u32 = 1; -pub const MKF_AVAILABLE: u32 = 2; -pub const MKF_HOTKEYACTIVE: u32 = 4; -pub const MKF_CONFIRMHOTKEY: u32 = 8; -pub const MKF_HOTKEYSOUND: u32 = 16; -pub const MKF_INDICATOR: u32 = 32; -pub const MKF_MODIFIERS: u32 = 64; -pub const MKF_REPLACENUMBERS: u32 = 128; -pub const MKF_LEFTBUTTONSEL: u32 = 268435456; -pub const MKF_RIGHTBUTTONSEL: u32 = 536870912; -pub const MKF_LEFTBUTTONDOWN: u32 = 16777216; -pub const MKF_RIGHTBUTTONDOWN: u32 = 33554432; -pub const MKF_MOUSEMODE: u32 = 2147483648; -pub const ATF_TIMEOUTON: u32 = 1; -pub const ATF_ONOFFFEEDBACK: u32 = 2; -pub const SSGF_NONE: u32 = 0; -pub const SSGF_DISPLAY: u32 = 3; -pub const SSTF_NONE: u32 = 0; -pub const SSTF_CHARS: u32 = 1; -pub const SSTF_BORDER: u32 = 2; -pub const SSTF_DISPLAY: u32 = 3; -pub const SSWF_NONE: u32 = 0; -pub const SSWF_TITLE: u32 = 1; -pub const SSWF_WINDOW: u32 = 2; -pub const SSWF_DISPLAY: u32 = 3; -pub const SSWF_CUSTOM: u32 = 4; -pub const SSF_SOUNDSENTRYON: u32 = 1; -pub const SSF_AVAILABLE: u32 = 2; -pub const SSF_INDICATOR: u32 = 4; -pub const TKF_TOGGLEKEYSON: u32 = 1; -pub const TKF_AVAILABLE: u32 = 2; -pub const TKF_HOTKEYACTIVE: u32 = 4; -pub const TKF_CONFIRMHOTKEY: u32 = 8; -pub const TKF_HOTKEYSOUND: u32 = 16; -pub const TKF_INDICATOR: u32 = 32; -pub const SLE_ERROR: u32 = 1; -pub const SLE_MINORERROR: u32 = 2; -pub const SLE_WARNING: u32 = 3; -pub const MONITOR_DEFAULTTONULL: u32 = 0; -pub const MONITOR_DEFAULTTOPRIMARY: u32 = 1; -pub const MONITOR_DEFAULTTONEAREST: u32 = 2; -pub const MONITORINFOF_PRIMARY: u32 = 1; -pub const WINEVENT_OUTOFCONTEXT: u32 = 0; -pub const WINEVENT_SKIPOWNTHREAD: u32 = 1; -pub const WINEVENT_SKIPOWNPROCESS: u32 = 2; -pub const WINEVENT_INCONTEXT: u32 = 4; -pub const CHILDID_SELF: u32 = 0; -pub const INDEXID_OBJECT: u32 = 0; -pub const INDEXID_CONTAINER: u32 = 0; -pub const EVENT_MIN: u32 = 1; -pub const EVENT_MAX: u32 = 2147483647; -pub const EVENT_SYSTEM_SOUND: u32 = 1; -pub const EVENT_SYSTEM_ALERT: u32 = 2; -pub const EVENT_SYSTEM_FOREGROUND: u32 = 3; -pub const EVENT_SYSTEM_MENUSTART: u32 = 4; -pub const EVENT_SYSTEM_MENUEND: u32 = 5; -pub const EVENT_SYSTEM_MENUPOPUPSTART: u32 = 6; -pub const EVENT_SYSTEM_MENUPOPUPEND: u32 = 7; -pub const EVENT_SYSTEM_CAPTURESTART: u32 = 8; -pub const EVENT_SYSTEM_CAPTUREEND: u32 = 9; -pub const EVENT_SYSTEM_MOVESIZESTART: u32 = 10; -pub const EVENT_SYSTEM_MOVESIZEEND: u32 = 11; -pub const EVENT_SYSTEM_CONTEXTHELPSTART: u32 = 12; -pub const EVENT_SYSTEM_CONTEXTHELPEND: u32 = 13; -pub const EVENT_SYSTEM_DRAGDROPSTART: u32 = 14; -pub const EVENT_SYSTEM_DRAGDROPEND: u32 = 15; -pub const EVENT_SYSTEM_DIALOGSTART: u32 = 16; -pub const EVENT_SYSTEM_DIALOGEND: u32 = 17; -pub const EVENT_SYSTEM_SCROLLINGSTART: u32 = 18; -pub const EVENT_SYSTEM_SCROLLINGEND: u32 = 19; -pub const EVENT_SYSTEM_SWITCHSTART: u32 = 20; -pub const EVENT_SYSTEM_SWITCHEND: u32 = 21; -pub const EVENT_SYSTEM_MINIMIZESTART: u32 = 22; -pub const EVENT_SYSTEM_MINIMIZEEND: u32 = 23; -pub const EVENT_SYSTEM_DESKTOPSWITCH: u32 = 32; -pub const EVENT_SYSTEM_SWITCHER_APPGRABBED: u32 = 36; -pub const EVENT_SYSTEM_SWITCHER_APPOVERTARGET: u32 = 37; -pub const EVENT_SYSTEM_SWITCHER_APPDROPPED: u32 = 38; -pub const EVENT_SYSTEM_SWITCHER_CANCELLED: u32 = 39; -pub const EVENT_SYSTEM_IME_KEY_NOTIFICATION: u32 = 41; -pub const EVENT_SYSTEM_END: u32 = 255; -pub const EVENT_OEM_DEFINED_START: u32 = 257; -pub const EVENT_OEM_DEFINED_END: u32 = 511; -pub const EVENT_UIA_EVENTID_START: u32 = 19968; -pub const EVENT_UIA_EVENTID_END: u32 = 20223; -pub const EVENT_UIA_PROPID_START: u32 = 29952; -pub const EVENT_UIA_PROPID_END: u32 = 30207; -pub const EVENT_CONSOLE_CARET: u32 = 16385; -pub const EVENT_CONSOLE_UPDATE_REGION: u32 = 16386; -pub const EVENT_CONSOLE_UPDATE_SIMPLE: u32 = 16387; -pub const EVENT_CONSOLE_UPDATE_SCROLL: u32 = 16388; -pub const EVENT_CONSOLE_LAYOUT: u32 = 16389; -pub const EVENT_CONSOLE_START_APPLICATION: u32 = 16390; -pub const EVENT_CONSOLE_END_APPLICATION: u32 = 16391; -pub const CONSOLE_APPLICATION_16BIT: u32 = 0; -pub const CONSOLE_CARET_SELECTION: u32 = 1; -pub const CONSOLE_CARET_VISIBLE: u32 = 2; -pub const EVENT_CONSOLE_END: u32 = 16639; -pub const EVENT_OBJECT_CREATE: u32 = 32768; -pub const EVENT_OBJECT_DESTROY: u32 = 32769; -pub const EVENT_OBJECT_SHOW: u32 = 32770; -pub const EVENT_OBJECT_HIDE: u32 = 32771; -pub const EVENT_OBJECT_REORDER: u32 = 32772; -pub const EVENT_OBJECT_FOCUS: u32 = 32773; -pub const EVENT_OBJECT_SELECTION: u32 = 32774; -pub const EVENT_OBJECT_SELECTIONADD: u32 = 32775; -pub const EVENT_OBJECT_SELECTIONREMOVE: u32 = 32776; -pub const EVENT_OBJECT_SELECTIONWITHIN: u32 = 32777; -pub const EVENT_OBJECT_STATECHANGE: u32 = 32778; -pub const EVENT_OBJECT_LOCATIONCHANGE: u32 = 32779; -pub const EVENT_OBJECT_NAMECHANGE: u32 = 32780; -pub const EVENT_OBJECT_DESCRIPTIONCHANGE: u32 = 32781; -pub const EVENT_OBJECT_VALUECHANGE: u32 = 32782; -pub const EVENT_OBJECT_PARENTCHANGE: u32 = 32783; -pub const EVENT_OBJECT_HELPCHANGE: u32 = 32784; -pub const EVENT_OBJECT_DEFACTIONCHANGE: u32 = 32785; -pub const EVENT_OBJECT_ACCELERATORCHANGE: u32 = 32786; -pub const EVENT_OBJECT_INVOKED: u32 = 32787; -pub const EVENT_OBJECT_TEXTSELECTIONCHANGED: u32 = 32788; -pub const EVENT_OBJECT_CONTENTSCROLLED: u32 = 32789; -pub const EVENT_SYSTEM_ARRANGMENTPREVIEW: u32 = 32790; -pub const EVENT_OBJECT_CLOAKED: u32 = 32791; -pub const EVENT_OBJECT_UNCLOAKED: u32 = 32792; -pub const EVENT_OBJECT_LIVEREGIONCHANGED: u32 = 32793; -pub const EVENT_OBJECT_HOSTEDOBJECTSINVALIDATED: u32 = 32800; -pub const EVENT_OBJECT_DRAGSTART: u32 = 32801; -pub const EVENT_OBJECT_DRAGCANCEL: u32 = 32802; -pub const EVENT_OBJECT_DRAGCOMPLETE: u32 = 32803; -pub const EVENT_OBJECT_DRAGENTER: u32 = 32804; -pub const EVENT_OBJECT_DRAGLEAVE: u32 = 32805; -pub const EVENT_OBJECT_DRAGDROPPED: u32 = 32806; -pub const EVENT_OBJECT_IME_SHOW: u32 = 32807; -pub const EVENT_OBJECT_IME_HIDE: u32 = 32808; -pub const EVENT_OBJECT_IME_CHANGE: u32 = 32809; -pub const EVENT_OBJECT_TEXTEDIT_CONVERSIONTARGETCHANGED: u32 = 32816; -pub const EVENT_OBJECT_END: u32 = 33023; -pub const EVENT_AIA_START: u32 = 40960; -pub const EVENT_AIA_END: u32 = 45055; -pub const SOUND_SYSTEM_STARTUP: u32 = 1; -pub const SOUND_SYSTEM_SHUTDOWN: u32 = 2; -pub const SOUND_SYSTEM_BEEP: u32 = 3; -pub const SOUND_SYSTEM_ERROR: u32 = 4; -pub const SOUND_SYSTEM_QUESTION: u32 = 5; -pub const SOUND_SYSTEM_WARNING: u32 = 6; -pub const SOUND_SYSTEM_INFORMATION: u32 = 7; -pub const SOUND_SYSTEM_MAXIMIZE: u32 = 8; -pub const SOUND_SYSTEM_MINIMIZE: u32 = 9; -pub const SOUND_SYSTEM_RESTOREUP: u32 = 10; -pub const SOUND_SYSTEM_RESTOREDOWN: u32 = 11; -pub const SOUND_SYSTEM_APPSTART: u32 = 12; -pub const SOUND_SYSTEM_FAULT: u32 = 13; -pub const SOUND_SYSTEM_APPEND: u32 = 14; -pub const SOUND_SYSTEM_MENUCOMMAND: u32 = 15; -pub const SOUND_SYSTEM_MENUPOPUP: u32 = 16; -pub const CSOUND_SYSTEM: u32 = 16; -pub const ALERT_SYSTEM_INFORMATIONAL: u32 = 1; -pub const ALERT_SYSTEM_WARNING: u32 = 2; -pub const ALERT_SYSTEM_ERROR: u32 = 3; -pub const ALERT_SYSTEM_QUERY: u32 = 4; -pub const ALERT_SYSTEM_CRITICAL: u32 = 5; -pub const CALERT_SYSTEM: u32 = 6; -pub const GUI_CARETBLINKING: u32 = 1; -pub const GUI_INMOVESIZE: u32 = 2; -pub const GUI_INMENUMODE: u32 = 4; -pub const GUI_SYSTEMMENUMODE: u32 = 8; -pub const GUI_POPUPMENUMODE: u32 = 16; -pub const GUI_16BITTASK: u32 = 0; -pub const USER_DEFAULT_SCREEN_DPI: u32 = 96; -pub const STATE_SYSTEM_UNAVAILABLE: u32 = 1; -pub const STATE_SYSTEM_SELECTED: u32 = 2; -pub const STATE_SYSTEM_FOCUSED: u32 = 4; -pub const STATE_SYSTEM_PRESSED: u32 = 8; -pub const STATE_SYSTEM_CHECKED: u32 = 16; -pub const STATE_SYSTEM_MIXED: u32 = 32; -pub const STATE_SYSTEM_INDETERMINATE: u32 = 32; -pub const STATE_SYSTEM_READONLY: u32 = 64; -pub const STATE_SYSTEM_HOTTRACKED: u32 = 128; -pub const STATE_SYSTEM_DEFAULT: u32 = 256; -pub const STATE_SYSTEM_EXPANDED: u32 = 512; -pub const STATE_SYSTEM_COLLAPSED: u32 = 1024; -pub const STATE_SYSTEM_BUSY: u32 = 2048; -pub const STATE_SYSTEM_FLOATING: u32 = 4096; -pub const STATE_SYSTEM_MARQUEED: u32 = 8192; -pub const STATE_SYSTEM_ANIMATED: u32 = 16384; -pub const STATE_SYSTEM_INVISIBLE: u32 = 32768; -pub const STATE_SYSTEM_OFFSCREEN: u32 = 65536; -pub const STATE_SYSTEM_SIZEABLE: u32 = 131072; -pub const STATE_SYSTEM_MOVEABLE: u32 = 262144; -pub const STATE_SYSTEM_SELFVOICING: u32 = 524288; -pub const STATE_SYSTEM_FOCUSABLE: u32 = 1048576; -pub const STATE_SYSTEM_SELECTABLE: u32 = 2097152; -pub const STATE_SYSTEM_LINKED: u32 = 4194304; -pub const STATE_SYSTEM_TRAVERSED: u32 = 8388608; -pub const STATE_SYSTEM_MULTISELECTABLE: u32 = 16777216; -pub const STATE_SYSTEM_EXTSELECTABLE: u32 = 33554432; -pub const STATE_SYSTEM_ALERT_LOW: u32 = 67108864; -pub const STATE_SYSTEM_ALERT_MEDIUM: u32 = 134217728; -pub const STATE_SYSTEM_ALERT_HIGH: u32 = 268435456; -pub const STATE_SYSTEM_PROTECTED: u32 = 536870912; -pub const STATE_SYSTEM_VALID: u32 = 1073741823; -pub const CCHILDREN_TITLEBAR: u32 = 5; -pub const CCHILDREN_SCROLLBAR: u32 = 5; -pub const CURSOR_SHOWING: u32 = 1; -pub const CURSOR_SUPPRESSED: u32 = 2; -pub const WS_ACTIVECAPTION: u32 = 1; -pub const GA_PARENT: u32 = 1; -pub const GA_ROOT: u32 = 2; -pub const GA_ROOTOWNER: u32 = 3; -pub const RIM_INPUT: u32 = 0; -pub const RIM_INPUTSINK: u32 = 1; -pub const RIM_TYPEMOUSE: u32 = 0; -pub const RIM_TYPEKEYBOARD: u32 = 1; -pub const RIM_TYPEHID: u32 = 2; -pub const RIM_TYPEMAX: u32 = 2; -pub const RI_MOUSE_LEFT_BUTTON_DOWN: u32 = 1; -pub const RI_MOUSE_LEFT_BUTTON_UP: u32 = 2; -pub const RI_MOUSE_RIGHT_BUTTON_DOWN: u32 = 4; -pub const RI_MOUSE_RIGHT_BUTTON_UP: u32 = 8; -pub const RI_MOUSE_MIDDLE_BUTTON_DOWN: u32 = 16; -pub const RI_MOUSE_MIDDLE_BUTTON_UP: u32 = 32; -pub const RI_MOUSE_BUTTON_1_DOWN: u32 = 1; -pub const RI_MOUSE_BUTTON_1_UP: u32 = 2; -pub const RI_MOUSE_BUTTON_2_DOWN: u32 = 4; -pub const RI_MOUSE_BUTTON_2_UP: u32 = 8; -pub const RI_MOUSE_BUTTON_3_DOWN: u32 = 16; -pub const RI_MOUSE_BUTTON_3_UP: u32 = 32; -pub const RI_MOUSE_BUTTON_4_DOWN: u32 = 64; -pub const RI_MOUSE_BUTTON_4_UP: u32 = 128; -pub const RI_MOUSE_BUTTON_5_DOWN: u32 = 256; -pub const RI_MOUSE_BUTTON_5_UP: u32 = 512; -pub const RI_MOUSE_WHEEL: u32 = 1024; -pub const RI_MOUSE_HWHEEL: u32 = 2048; -pub const MOUSE_MOVE_RELATIVE: u32 = 0; -pub const MOUSE_MOVE_ABSOLUTE: u32 = 1; -pub const MOUSE_VIRTUAL_DESKTOP: u32 = 2; -pub const MOUSE_ATTRIBUTES_CHANGED: u32 = 4; -pub const MOUSE_MOVE_NOCOALESCE: u32 = 8; -pub const KEYBOARD_OVERRUN_MAKE_CODE: u32 = 255; -pub const RI_KEY_MAKE: u32 = 0; -pub const RI_KEY_BREAK: u32 = 1; -pub const RI_KEY_E0: u32 = 2; -pub const RI_KEY_E1: u32 = 4; -pub const RI_KEY_TERMSRV_SET_LED: u32 = 8; -pub const RI_KEY_TERMSRV_SHADOW: u32 = 16; -pub const RID_INPUT: u32 = 268435459; -pub const RID_HEADER: u32 = 268435461; -pub const RIDI_PREPARSEDDATA: u32 = 536870917; -pub const RIDI_DEVICENAME: u32 = 536870919; -pub const RIDI_DEVICEINFO: u32 = 536870923; -pub const RIDEV_REMOVE: u32 = 1; -pub const RIDEV_EXCLUDE: u32 = 16; -pub const RIDEV_PAGEONLY: u32 = 32; -pub const RIDEV_NOLEGACY: u32 = 48; -pub const RIDEV_INPUTSINK: u32 = 256; -pub const RIDEV_CAPTUREMOUSE: u32 = 512; -pub const RIDEV_NOHOTKEYS: u32 = 512; -pub const RIDEV_APPKEYS: u32 = 1024; -pub const RIDEV_EXINPUTSINK: u32 = 4096; -pub const RIDEV_DEVNOTIFY: u32 = 8192; -pub const RIDEV_EXMODEMASK: u32 = 240; -pub const GIDC_ARRIVAL: u32 = 1; -pub const GIDC_REMOVAL: u32 = 2; -pub const POINTER_DEVICE_PRODUCT_STRING_MAX: u32 = 520; -pub const PDC_ARRIVAL: u32 = 1; -pub const PDC_REMOVAL: u32 = 2; -pub const PDC_ORIENTATION_0: u32 = 4; -pub const PDC_ORIENTATION_90: u32 = 8; -pub const PDC_ORIENTATION_180: u32 = 16; -pub const PDC_ORIENTATION_270: u32 = 32; -pub const PDC_MODE_DEFAULT: u32 = 64; -pub const PDC_MODE_CENTERED: u32 = 128; -pub const PDC_MAPPING_CHANGE: u32 = 256; -pub const PDC_RESOLUTION: u32 = 512; -pub const PDC_ORIGIN: u32 = 1024; -pub const PDC_MODE_ASPECTRATIOPRESERVED: u32 = 2048; -pub const MSGFLT_ADD: u32 = 1; -pub const MSGFLT_REMOVE: u32 = 2; -pub const MSGFLTINFO_NONE: u32 = 0; -pub const MSGFLTINFO_ALREADYALLOWED_FORWND: u32 = 1; -pub const MSGFLTINFO_ALREADYDISALLOWED_FORWND: u32 = 2; -pub const MSGFLTINFO_ALLOWED_HIGHER: u32 = 3; -pub const MSGFLT_RESET: u32 = 0; -pub const MSGFLT_ALLOW: u32 = 1; -pub const MSGFLT_DISALLOW: u32 = 2; -pub const GF_BEGIN: u32 = 1; -pub const GF_INERTIA: u32 = 2; -pub const GF_END: u32 = 4; -pub const GID_BEGIN: u32 = 1; -pub const GID_END: u32 = 2; -pub const GID_ZOOM: u32 = 3; -pub const GID_PAN: u32 = 4; -pub const GID_ROTATE: u32 = 5; -pub const GID_TWOFINGERTAP: u32 = 6; -pub const GID_PRESSANDTAP: u32 = 7; -pub const GID_ROLLOVER: u32 = 7; -pub const GC_ALLGESTURES: u32 = 1; -pub const GC_ZOOM: u32 = 1; -pub const GC_PAN: u32 = 1; -pub const GC_PAN_WITH_SINGLE_FINGER_VERTICALLY: u32 = 2; -pub const GC_PAN_WITH_SINGLE_FINGER_HORIZONTALLY: u32 = 4; -pub const GC_PAN_WITH_GUTTER: u32 = 8; -pub const GC_PAN_WITH_INERTIA: u32 = 16; -pub const GC_ROTATE: u32 = 1; -pub const GC_TWOFINGERTAP: u32 = 1; -pub const GC_PRESSANDTAP: u32 = 1; -pub const GC_ROLLOVER: u32 = 1; -pub const GESTURECONFIGMAXCOUNT: u32 = 256; -pub const GCF_INCLUDE_ANCESTORS: u32 = 1; -pub const NID_INTEGRATED_TOUCH: u32 = 1; -pub const NID_EXTERNAL_TOUCH: u32 = 2; -pub const NID_INTEGRATED_PEN: u32 = 4; -pub const NID_EXTERNAL_PEN: u32 = 8; -pub const NID_MULTI_INPUT: u32 = 64; -pub const NID_READY: u32 = 128; -pub const MAX_STR_BLOCKREASON: u32 = 256; -pub const WM_TOOLTIPDISMISS: u32 = 837; -pub const MAX_LEADBYTES: u32 = 12; -pub const MAX_DEFAULTCHAR: u32 = 2; -pub const HIGH_SURROGATE_START: u32 = 55296; -pub const HIGH_SURROGATE_END: u32 = 56319; -pub const LOW_SURROGATE_START: u32 = 56320; -pub const LOW_SURROGATE_END: u32 = 57343; -pub const MB_PRECOMPOSED: u32 = 1; -pub const MB_COMPOSITE: u32 = 2; -pub const MB_USEGLYPHCHARS: u32 = 4; -pub const MB_ERR_INVALID_CHARS: u32 = 8; -pub const WC_COMPOSITECHECK: u32 = 512; -pub const WC_DISCARDNS: u32 = 16; -pub const WC_SEPCHARS: u32 = 32; -pub const WC_DEFAULTCHAR: u32 = 64; -pub const WC_ERR_INVALID_CHARS: u32 = 128; -pub const WC_NO_BEST_FIT_CHARS: u32 = 1024; -pub const CT_CTYPE1: u32 = 1; -pub const CT_CTYPE2: u32 = 2; -pub const CT_CTYPE3: u32 = 4; -pub const C1_UPPER: u32 = 1; -pub const C1_LOWER: u32 = 2; -pub const C1_DIGIT: u32 = 4; -pub const C1_SPACE: u32 = 8; -pub const C1_PUNCT: u32 = 16; -pub const C1_CNTRL: u32 = 32; -pub const C1_BLANK: u32 = 64; -pub const C1_XDIGIT: u32 = 128; -pub const C1_ALPHA: u32 = 256; -pub const C1_DEFINED: u32 = 512; -pub const C2_LEFTTORIGHT: u32 = 1; -pub const C2_RIGHTTOLEFT: u32 = 2; -pub const C2_EUROPENUMBER: u32 = 3; -pub const C2_EUROPESEPARATOR: u32 = 4; -pub const C2_EUROPETERMINATOR: u32 = 5; -pub const C2_ARABICNUMBER: u32 = 6; -pub const C2_COMMONSEPARATOR: u32 = 7; -pub const C2_BLOCKSEPARATOR: u32 = 8; -pub const C2_SEGMENTSEPARATOR: u32 = 9; -pub const C2_WHITESPACE: u32 = 10; -pub const C2_OTHERNEUTRAL: u32 = 11; -pub const C2_NOTAPPLICABLE: u32 = 0; -pub const C3_NONSPACING: u32 = 1; -pub const C3_DIACRITIC: u32 = 2; -pub const C3_VOWELMARK: u32 = 4; -pub const C3_SYMBOL: u32 = 8; -pub const C3_KATAKANA: u32 = 16; -pub const C3_HIRAGANA: u32 = 32; -pub const C3_HALFWIDTH: u32 = 64; -pub const C3_FULLWIDTH: u32 = 128; -pub const C3_IDEOGRAPH: u32 = 256; -pub const C3_KASHIDA: u32 = 512; -pub const C3_LEXICAL: u32 = 1024; -pub const C3_HIGHSURROGATE: u32 = 2048; -pub const C3_LOWSURROGATE: u32 = 4096; -pub const C3_ALPHA: u32 = 32768; -pub const C3_NOTAPPLICABLE: u32 = 0; -pub const NORM_IGNORECASE: u32 = 1; -pub const NORM_IGNORENONSPACE: u32 = 2; -pub const NORM_IGNORESYMBOLS: u32 = 4; -pub const LINGUISTIC_IGNORECASE: u32 = 16; -pub const LINGUISTIC_IGNOREDIACRITIC: u32 = 32; -pub const NORM_IGNOREKANATYPE: u32 = 65536; -pub const NORM_IGNOREWIDTH: u32 = 131072; -pub const NORM_LINGUISTIC_CASING: u32 = 134217728; -pub const MAP_FOLDCZONE: u32 = 16; -pub const MAP_PRECOMPOSED: u32 = 32; -pub const MAP_COMPOSITE: u32 = 64; -pub const MAP_FOLDDIGITS: u32 = 128; -pub const MAP_EXPAND_LIGATURES: u32 = 8192; -pub const LCMAP_LOWERCASE: u32 = 256; -pub const LCMAP_UPPERCASE: u32 = 512; -pub const LCMAP_TITLECASE: u32 = 768; -pub const LCMAP_SORTKEY: u32 = 1024; -pub const LCMAP_BYTEREV: u32 = 2048; -pub const LCMAP_HIRAGANA: u32 = 1048576; -pub const LCMAP_KATAKANA: u32 = 2097152; -pub const LCMAP_HALFWIDTH: u32 = 4194304; -pub const LCMAP_FULLWIDTH: u32 = 8388608; -pub const LCMAP_LINGUISTIC_CASING: u32 = 16777216; -pub const LCMAP_SIMPLIFIED_CHINESE: u32 = 33554432; -pub const LCMAP_TRADITIONAL_CHINESE: u32 = 67108864; -pub const LCMAP_SORTHANDLE: u32 = 536870912; -pub const LCMAP_HASH: u32 = 262144; -pub const FIND_STARTSWITH: u32 = 1048576; -pub const FIND_ENDSWITH: u32 = 2097152; -pub const FIND_FROMSTART: u32 = 4194304; -pub const FIND_FROMEND: u32 = 8388608; -pub const LGRPID_INSTALLED: u32 = 1; -pub const LGRPID_SUPPORTED: u32 = 2; -pub const LCID_INSTALLED: u32 = 1; -pub const LCID_SUPPORTED: u32 = 2; -pub const LCID_ALTERNATE_SORTS: u32 = 4; -pub const LOCALE_ALL: u32 = 0; -pub const LOCALE_WINDOWS: u32 = 1; -pub const LOCALE_SUPPLEMENTAL: u32 = 2; -pub const LOCALE_ALTERNATE_SORTS: u32 = 4; -pub const LOCALE_REPLACEMENT: u32 = 8; -pub const LOCALE_NEUTRALDATA: u32 = 16; -pub const LOCALE_SPECIFICDATA: u32 = 32; -pub const CP_INSTALLED: u32 = 1; -pub const CP_SUPPORTED: u32 = 2; -pub const SORT_STRINGSORT: u32 = 4096; -pub const SORT_DIGITSASNUMBERS: u32 = 8; -pub const CSTR_LESS_THAN: u32 = 1; -pub const CSTR_EQUAL: u32 = 2; -pub const CSTR_GREATER_THAN: u32 = 3; -pub const CP_ACP: u32 = 0; -pub const CP_OEMCP: u32 = 1; -pub const CP_MACCP: u32 = 2; -pub const CP_THREAD_ACP: u32 = 3; -pub const CP_SYMBOL: u32 = 42; -pub const CP_UTF7: u32 = 65000; -pub const CP_UTF8: u32 = 65001; -pub const CTRY_DEFAULT: u32 = 0; -pub const CTRY_ALBANIA: u32 = 355; -pub const CTRY_ALGERIA: u32 = 213; -pub const CTRY_ARGENTINA: u32 = 54; -pub const CTRY_ARMENIA: u32 = 374; -pub const CTRY_AUSTRALIA: u32 = 61; -pub const CTRY_AUSTRIA: u32 = 43; -pub const CTRY_AZERBAIJAN: u32 = 994; -pub const CTRY_BAHRAIN: u32 = 973; -pub const CTRY_BELARUS: u32 = 375; -pub const CTRY_BELGIUM: u32 = 32; -pub const CTRY_BELIZE: u32 = 501; -pub const CTRY_BOLIVIA: u32 = 591; -pub const CTRY_BRAZIL: u32 = 55; -pub const CTRY_BRUNEI_DARUSSALAM: u32 = 673; -pub const CTRY_BULGARIA: u32 = 359; -pub const CTRY_CANADA: u32 = 2; -pub const CTRY_CARIBBEAN: u32 = 1; -pub const CTRY_CHILE: u32 = 56; -pub const CTRY_COLOMBIA: u32 = 57; -pub const CTRY_COSTA_RICA: u32 = 506; -pub const CTRY_CROATIA: u32 = 385; -pub const CTRY_CZECH: u32 = 420; -pub const CTRY_DENMARK: u32 = 45; -pub const CTRY_DOMINICAN_REPUBLIC: u32 = 1; -pub const CTRY_ECUADOR: u32 = 593; -pub const CTRY_EGYPT: u32 = 20; -pub const CTRY_EL_SALVADOR: u32 = 503; -pub const CTRY_ESTONIA: u32 = 372; -pub const CTRY_FAEROE_ISLANDS: u32 = 298; -pub const CTRY_FINLAND: u32 = 358; -pub const CTRY_FRANCE: u32 = 33; -pub const CTRY_GEORGIA: u32 = 995; -pub const CTRY_GERMANY: u32 = 49; -pub const CTRY_GREECE: u32 = 30; -pub const CTRY_GUATEMALA: u32 = 502; -pub const CTRY_HONDURAS: u32 = 504; -pub const CTRY_HONG_KONG: u32 = 852; -pub const CTRY_HUNGARY: u32 = 36; -pub const CTRY_ICELAND: u32 = 354; -pub const CTRY_INDIA: u32 = 91; -pub const CTRY_INDONESIA: u32 = 62; -pub const CTRY_IRAN: u32 = 981; -pub const CTRY_IRAQ: u32 = 964; -pub const CTRY_IRELAND: u32 = 353; -pub const CTRY_ISRAEL: u32 = 972; -pub const CTRY_ITALY: u32 = 39; -pub const CTRY_JAMAICA: u32 = 1; -pub const CTRY_JAPAN: u32 = 81; -pub const CTRY_JORDAN: u32 = 962; -pub const CTRY_KAZAKSTAN: u32 = 7; -pub const CTRY_KENYA: u32 = 254; -pub const CTRY_KUWAIT: u32 = 965; -pub const CTRY_KYRGYZSTAN: u32 = 996; -pub const CTRY_LATVIA: u32 = 371; -pub const CTRY_LEBANON: u32 = 961; -pub const CTRY_LIBYA: u32 = 218; -pub const CTRY_LIECHTENSTEIN: u32 = 41; -pub const CTRY_LITHUANIA: u32 = 370; -pub const CTRY_LUXEMBOURG: u32 = 352; -pub const CTRY_MACAU: u32 = 853; -pub const CTRY_MACEDONIA: u32 = 389; -pub const CTRY_MALAYSIA: u32 = 60; -pub const CTRY_MALDIVES: u32 = 960; -pub const CTRY_MEXICO: u32 = 52; -pub const CTRY_MONACO: u32 = 33; -pub const CTRY_MONGOLIA: u32 = 976; -pub const CTRY_MOROCCO: u32 = 212; -pub const CTRY_NETHERLANDS: u32 = 31; -pub const CTRY_NEW_ZEALAND: u32 = 64; -pub const CTRY_NICARAGUA: u32 = 505; -pub const CTRY_NORWAY: u32 = 47; -pub const CTRY_OMAN: u32 = 968; -pub const CTRY_PAKISTAN: u32 = 92; -pub const CTRY_PANAMA: u32 = 507; -pub const CTRY_PARAGUAY: u32 = 595; -pub const CTRY_PERU: u32 = 51; -pub const CTRY_PHILIPPINES: u32 = 63; -pub const CTRY_POLAND: u32 = 48; -pub const CTRY_PORTUGAL: u32 = 351; -pub const CTRY_PRCHINA: u32 = 86; -pub const CTRY_PUERTO_RICO: u32 = 1; -pub const CTRY_QATAR: u32 = 974; -pub const CTRY_ROMANIA: u32 = 40; -pub const CTRY_RUSSIA: u32 = 7; -pub const CTRY_SAUDI_ARABIA: u32 = 966; -pub const CTRY_SERBIA: u32 = 381; -pub const CTRY_SINGAPORE: u32 = 65; -pub const CTRY_SLOVAK: u32 = 421; -pub const CTRY_SLOVENIA: u32 = 386; -pub const CTRY_SOUTH_AFRICA: u32 = 27; -pub const CTRY_SOUTH_KOREA: u32 = 82; -pub const CTRY_SPAIN: u32 = 34; -pub const CTRY_SWEDEN: u32 = 46; -pub const CTRY_SWITZERLAND: u32 = 41; -pub const CTRY_SYRIA: u32 = 963; -pub const CTRY_TAIWAN: u32 = 886; -pub const CTRY_TATARSTAN: u32 = 7; -pub const CTRY_THAILAND: u32 = 66; -pub const CTRY_TRINIDAD_Y_TOBAGO: u32 = 1; -pub const CTRY_TUNISIA: u32 = 216; -pub const CTRY_TURKEY: u32 = 90; -pub const CTRY_UAE: u32 = 971; -pub const CTRY_UKRAINE: u32 = 380; -pub const CTRY_UNITED_KINGDOM: u32 = 44; -pub const CTRY_UNITED_STATES: u32 = 1; -pub const CTRY_URUGUAY: u32 = 598; -pub const CTRY_UZBEKISTAN: u32 = 7; -pub const CTRY_VENEZUELA: u32 = 58; -pub const CTRY_VIET_NAM: u32 = 84; -pub const CTRY_YEMEN: u32 = 967; -pub const CTRY_ZIMBABWE: u32 = 263; -pub const LOCALE_NOUSEROVERRIDE: u32 = 2147483648; -pub const LOCALE_USE_CP_ACP: u32 = 1073741824; -pub const LOCALE_RETURN_NUMBER: u32 = 536870912; -pub const LOCALE_RETURN_GENITIVE_NAMES: u32 = 268435456; -pub const LOCALE_ALLOW_NEUTRAL_NAMES: u32 = 134217728; -pub const LOCALE_SLOCALIZEDDISPLAYNAME: u32 = 2; -pub const LOCALE_SENGLISHDISPLAYNAME: u32 = 114; -pub const LOCALE_SNATIVEDISPLAYNAME: u32 = 115; -pub const LOCALE_SLOCALIZEDLANGUAGENAME: u32 = 111; -pub const LOCALE_SENGLISHLANGUAGENAME: u32 = 4097; -pub const LOCALE_SNATIVELANGUAGENAME: u32 = 4; -pub const LOCALE_SLOCALIZEDCOUNTRYNAME: u32 = 6; -pub const LOCALE_SENGLISHCOUNTRYNAME: u32 = 4098; -pub const LOCALE_SNATIVECOUNTRYNAME: u32 = 8; -pub const LOCALE_IDIALINGCODE: u32 = 5; -pub const LOCALE_SLIST: u32 = 12; -pub const LOCALE_IMEASURE: u32 = 13; -pub const LOCALE_SDECIMAL: u32 = 14; -pub const LOCALE_STHOUSAND: u32 = 15; -pub const LOCALE_SGROUPING: u32 = 16; -pub const LOCALE_IDIGITS: u32 = 17; -pub const LOCALE_ILZERO: u32 = 18; -pub const LOCALE_INEGNUMBER: u32 = 4112; -pub const LOCALE_SNATIVEDIGITS: u32 = 19; -pub const LOCALE_SCURRENCY: u32 = 20; -pub const LOCALE_SINTLSYMBOL: u32 = 21; -pub const LOCALE_SMONDECIMALSEP: u32 = 22; -pub const LOCALE_SMONTHOUSANDSEP: u32 = 23; -pub const LOCALE_SMONGROUPING: u32 = 24; -pub const LOCALE_ICURRDIGITS: u32 = 25; -pub const LOCALE_ICURRENCY: u32 = 27; -pub const LOCALE_INEGCURR: u32 = 28; -pub const LOCALE_SSHORTDATE: u32 = 31; -pub const LOCALE_SLONGDATE: u32 = 32; -pub const LOCALE_STIMEFORMAT: u32 = 4099; -pub const LOCALE_SAM: u32 = 40; -pub const LOCALE_SPM: u32 = 41; -pub const LOCALE_ICALENDARTYPE: u32 = 4105; -pub const LOCALE_IOPTIONALCALENDAR: u32 = 4107; -pub const LOCALE_IFIRSTDAYOFWEEK: u32 = 4108; -pub const LOCALE_IFIRSTWEEKOFYEAR: u32 = 4109; -pub const LOCALE_SDAYNAME1: u32 = 42; -pub const LOCALE_SDAYNAME2: u32 = 43; -pub const LOCALE_SDAYNAME3: u32 = 44; -pub const LOCALE_SDAYNAME4: u32 = 45; -pub const LOCALE_SDAYNAME5: u32 = 46; -pub const LOCALE_SDAYNAME6: u32 = 47; -pub const LOCALE_SDAYNAME7: u32 = 48; -pub const LOCALE_SABBREVDAYNAME1: u32 = 49; -pub const LOCALE_SABBREVDAYNAME2: u32 = 50; -pub const LOCALE_SABBREVDAYNAME3: u32 = 51; -pub const LOCALE_SABBREVDAYNAME4: u32 = 52; -pub const LOCALE_SABBREVDAYNAME5: u32 = 53; -pub const LOCALE_SABBREVDAYNAME6: u32 = 54; -pub const LOCALE_SABBREVDAYNAME7: u32 = 55; -pub const LOCALE_SMONTHNAME1: u32 = 56; -pub const LOCALE_SMONTHNAME2: u32 = 57; -pub const LOCALE_SMONTHNAME3: u32 = 58; -pub const LOCALE_SMONTHNAME4: u32 = 59; -pub const LOCALE_SMONTHNAME5: u32 = 60; -pub const LOCALE_SMONTHNAME6: u32 = 61; -pub const LOCALE_SMONTHNAME7: u32 = 62; -pub const LOCALE_SMONTHNAME8: u32 = 63; -pub const LOCALE_SMONTHNAME9: u32 = 64; -pub const LOCALE_SMONTHNAME10: u32 = 65; -pub const LOCALE_SMONTHNAME11: u32 = 66; -pub const LOCALE_SMONTHNAME12: u32 = 67; -pub const LOCALE_SMONTHNAME13: u32 = 4110; -pub const LOCALE_SABBREVMONTHNAME1: u32 = 68; -pub const LOCALE_SABBREVMONTHNAME2: u32 = 69; -pub const LOCALE_SABBREVMONTHNAME3: u32 = 70; -pub const LOCALE_SABBREVMONTHNAME4: u32 = 71; -pub const LOCALE_SABBREVMONTHNAME5: u32 = 72; -pub const LOCALE_SABBREVMONTHNAME6: u32 = 73; -pub const LOCALE_SABBREVMONTHNAME7: u32 = 74; -pub const LOCALE_SABBREVMONTHNAME8: u32 = 75; -pub const LOCALE_SABBREVMONTHNAME9: u32 = 76; -pub const LOCALE_SABBREVMONTHNAME10: u32 = 77; -pub const LOCALE_SABBREVMONTHNAME11: u32 = 78; -pub const LOCALE_SABBREVMONTHNAME12: u32 = 79; -pub const LOCALE_SABBREVMONTHNAME13: u32 = 4111; -pub const LOCALE_SPOSITIVESIGN: u32 = 80; -pub const LOCALE_SNEGATIVESIGN: u32 = 81; -pub const LOCALE_IPOSSIGNPOSN: u32 = 82; -pub const LOCALE_INEGSIGNPOSN: u32 = 83; -pub const LOCALE_IPOSSYMPRECEDES: u32 = 84; -pub const LOCALE_IPOSSEPBYSPACE: u32 = 85; -pub const LOCALE_INEGSYMPRECEDES: u32 = 86; -pub const LOCALE_INEGSEPBYSPACE: u32 = 87; -pub const LOCALE_FONTSIGNATURE: u32 = 88; -pub const LOCALE_SISO639LANGNAME: u32 = 89; -pub const LOCALE_SISO3166CTRYNAME: u32 = 90; -pub const LOCALE_IPAPERSIZE: u32 = 4106; -pub const LOCALE_SENGCURRNAME: u32 = 4103; -pub const LOCALE_SNATIVECURRNAME: u32 = 4104; -pub const LOCALE_SYEARMONTH: u32 = 4102; -pub const LOCALE_SSORTNAME: u32 = 4115; -pub const LOCALE_IDIGITSUBSTITUTION: u32 = 4116; -pub const LOCALE_SNAME: u32 = 92; -pub const LOCALE_SDURATION: u32 = 93; -pub const LOCALE_SSHORTESTDAYNAME1: u32 = 96; -pub const LOCALE_SSHORTESTDAYNAME2: u32 = 97; -pub const LOCALE_SSHORTESTDAYNAME3: u32 = 98; -pub const LOCALE_SSHORTESTDAYNAME4: u32 = 99; -pub const LOCALE_SSHORTESTDAYNAME5: u32 = 100; -pub const LOCALE_SSHORTESTDAYNAME6: u32 = 101; -pub const LOCALE_SSHORTESTDAYNAME7: u32 = 102; -pub const LOCALE_SISO639LANGNAME2: u32 = 103; -pub const LOCALE_SISO3166CTRYNAME2: u32 = 104; -pub const LOCALE_SNAN: u32 = 105; -pub const LOCALE_SPOSINFINITY: u32 = 106; -pub const LOCALE_SNEGINFINITY: u32 = 107; -pub const LOCALE_SSCRIPTS: u32 = 108; -pub const LOCALE_SPARENT: u32 = 109; -pub const LOCALE_SCONSOLEFALLBACKNAME: u32 = 110; -pub const LOCALE_IREADINGLAYOUT: u32 = 112; -pub const LOCALE_INEUTRAL: u32 = 113; -pub const LOCALE_INEGATIVEPERCENT: u32 = 116; -pub const LOCALE_IPOSITIVEPERCENT: u32 = 117; -pub const LOCALE_SPERCENT: u32 = 118; -pub const LOCALE_SPERMILLE: u32 = 119; -pub const LOCALE_SMONTHDAY: u32 = 120; -pub const LOCALE_SSHORTTIME: u32 = 121; -pub const LOCALE_SOPENTYPELANGUAGETAG: u32 = 122; -pub const LOCALE_SSORTLOCALE: u32 = 123; -pub const LOCALE_SRELATIVELONGDATE: u32 = 124; -pub const LOCALE_ICONSTRUCTEDLOCALE: u32 = 125; -pub const LOCALE_SSHORTESTAM: u32 = 126; -pub const LOCALE_SSHORTESTPM: u32 = 127; -pub const LOCALE_IUSEUTF8LEGACYACP: u32 = 1638; -pub const LOCALE_IUSEUTF8LEGACYOEMCP: u32 = 2457; -pub const LOCALE_IDEFAULTCODEPAGE: u32 = 11; -pub const LOCALE_IDEFAULTANSICODEPAGE: u32 = 4100; -pub const LOCALE_IDEFAULTMACCODEPAGE: u32 = 4113; -pub const LOCALE_IDEFAULTEBCDICCODEPAGE: u32 = 4114; -pub const LOCALE_ILANGUAGE: u32 = 1; -pub const LOCALE_SABBREVLANGNAME: u32 = 3; -pub const LOCALE_SABBREVCTRYNAME: u32 = 7; -pub const LOCALE_IGEOID: u32 = 91; -pub const LOCALE_IDEFAULTLANGUAGE: u32 = 9; -pub const LOCALE_IDEFAULTCOUNTRY: u32 = 10; -pub const LOCALE_IINTLCURRDIGITS: u32 = 26; -pub const LOCALE_SDATE: u32 = 29; -pub const LOCALE_STIME: u32 = 30; -pub const LOCALE_IDATE: u32 = 33; -pub const LOCALE_ILDATE: u32 = 34; -pub const LOCALE_ITIME: u32 = 35; -pub const LOCALE_ITIMEMARKPOSN: u32 = 4101; -pub const LOCALE_ICENTURY: u32 = 36; -pub const LOCALE_ITLZERO: u32 = 37; -pub const LOCALE_IDAYLZERO: u32 = 38; -pub const LOCALE_IMONLZERO: u32 = 39; -pub const LOCALE_SKEYBOARDSTOINSTALL: u32 = 94; -pub const LOCALE_SLANGUAGE: u32 = 2; -pub const LOCALE_SLANGDISPLAYNAME: u32 = 111; -pub const LOCALE_SENGLANGUAGE: u32 = 4097; -pub const LOCALE_SNATIVELANGNAME: u32 = 4; -pub const LOCALE_SCOUNTRY: u32 = 6; -pub const LOCALE_SENGCOUNTRY: u32 = 4098; -pub const LOCALE_SNATIVECTRYNAME: u32 = 8; -pub const LOCALE_ICOUNTRY: u32 = 5; -pub const LOCALE_S1159: u32 = 40; -pub const LOCALE_S2359: u32 = 41; -pub const TIME_NOMINUTESORSECONDS: u32 = 1; -pub const TIME_NOSECONDS: u32 = 2; -pub const TIME_NOTIMEMARKER: u32 = 4; -pub const TIME_FORCE24HOURFORMAT: u32 = 8; -pub const DATE_SHORTDATE: u32 = 1; -pub const DATE_LONGDATE: u32 = 2; -pub const DATE_USE_ALT_CALENDAR: u32 = 4; -pub const DATE_YEARMONTH: u32 = 8; -pub const DATE_LTRREADING: u32 = 16; -pub const DATE_RTLREADING: u32 = 32; -pub const DATE_AUTOLAYOUT: u32 = 64; -pub const DATE_MONTHDAY: u32 = 128; -pub const CAL_NOUSEROVERRIDE: u32 = 2147483648; -pub const CAL_USE_CP_ACP: u32 = 1073741824; -pub const CAL_RETURN_NUMBER: u32 = 536870912; -pub const CAL_RETURN_GENITIVE_NAMES: u32 = 268435456; -pub const CAL_ICALINTVALUE: u32 = 1; -pub const CAL_SCALNAME: u32 = 2; -pub const CAL_IYEAROFFSETRANGE: u32 = 3; -pub const CAL_SERASTRING: u32 = 4; -pub const CAL_SSHORTDATE: u32 = 5; -pub const CAL_SLONGDATE: u32 = 6; -pub const CAL_SDAYNAME1: u32 = 7; -pub const CAL_SDAYNAME2: u32 = 8; -pub const CAL_SDAYNAME3: u32 = 9; -pub const CAL_SDAYNAME4: u32 = 10; -pub const CAL_SDAYNAME5: u32 = 11; -pub const CAL_SDAYNAME6: u32 = 12; -pub const CAL_SDAYNAME7: u32 = 13; -pub const CAL_SABBREVDAYNAME1: u32 = 14; -pub const CAL_SABBREVDAYNAME2: u32 = 15; -pub const CAL_SABBREVDAYNAME3: u32 = 16; -pub const CAL_SABBREVDAYNAME4: u32 = 17; -pub const CAL_SABBREVDAYNAME5: u32 = 18; -pub const CAL_SABBREVDAYNAME6: u32 = 19; -pub const CAL_SABBREVDAYNAME7: u32 = 20; -pub const CAL_SMONTHNAME1: u32 = 21; -pub const CAL_SMONTHNAME2: u32 = 22; -pub const CAL_SMONTHNAME3: u32 = 23; -pub const CAL_SMONTHNAME4: u32 = 24; -pub const CAL_SMONTHNAME5: u32 = 25; -pub const CAL_SMONTHNAME6: u32 = 26; -pub const CAL_SMONTHNAME7: u32 = 27; -pub const CAL_SMONTHNAME8: u32 = 28; -pub const CAL_SMONTHNAME9: u32 = 29; -pub const CAL_SMONTHNAME10: u32 = 30; -pub const CAL_SMONTHNAME11: u32 = 31; -pub const CAL_SMONTHNAME12: u32 = 32; -pub const CAL_SMONTHNAME13: u32 = 33; -pub const CAL_SABBREVMONTHNAME1: u32 = 34; -pub const CAL_SABBREVMONTHNAME2: u32 = 35; -pub const CAL_SABBREVMONTHNAME3: u32 = 36; -pub const CAL_SABBREVMONTHNAME4: u32 = 37; -pub const CAL_SABBREVMONTHNAME5: u32 = 38; -pub const CAL_SABBREVMONTHNAME6: u32 = 39; -pub const CAL_SABBREVMONTHNAME7: u32 = 40; -pub const CAL_SABBREVMONTHNAME8: u32 = 41; -pub const CAL_SABBREVMONTHNAME9: u32 = 42; -pub const CAL_SABBREVMONTHNAME10: u32 = 43; -pub const CAL_SABBREVMONTHNAME11: u32 = 44; -pub const CAL_SABBREVMONTHNAME12: u32 = 45; -pub const CAL_SABBREVMONTHNAME13: u32 = 46; -pub const CAL_SYEARMONTH: u32 = 47; -pub const CAL_ITWODIGITYEARMAX: u32 = 48; -pub const CAL_SSHORTESTDAYNAME1: u32 = 49; -pub const CAL_SSHORTESTDAYNAME2: u32 = 50; -pub const CAL_SSHORTESTDAYNAME3: u32 = 51; -pub const CAL_SSHORTESTDAYNAME4: u32 = 52; -pub const CAL_SSHORTESTDAYNAME5: u32 = 53; -pub const CAL_SSHORTESTDAYNAME6: u32 = 54; -pub const CAL_SSHORTESTDAYNAME7: u32 = 55; -pub const CAL_SMONTHDAY: u32 = 56; -pub const CAL_SABBREVERASTRING: u32 = 57; -pub const CAL_SRELATIVELONGDATE: u32 = 58; -pub const CAL_SENGLISHERANAME: u32 = 59; -pub const CAL_SENGLISHABBREVERANAME: u32 = 60; -pub const CAL_SJAPANESEERAFIRSTYEAR: u32 = 61; -pub const ENUM_ALL_CALENDARS: u32 = 4294967295; -pub const CAL_GREGORIAN: u32 = 1; -pub const CAL_GREGORIAN_US: u32 = 2; -pub const CAL_JAPAN: u32 = 3; -pub const CAL_TAIWAN: u32 = 4; -pub const CAL_KOREA: u32 = 5; -pub const CAL_HIJRI: u32 = 6; -pub const CAL_THAI: u32 = 7; -pub const CAL_HEBREW: u32 = 8; -pub const CAL_GREGORIAN_ME_FRENCH: u32 = 9; -pub const CAL_GREGORIAN_ARABIC: u32 = 10; -pub const CAL_GREGORIAN_XLIT_ENGLISH: u32 = 11; -pub const CAL_GREGORIAN_XLIT_FRENCH: u32 = 12; -pub const CAL_PERSIAN: u32 = 22; -pub const CAL_UMALQURA: u32 = 23; -pub const LGRPID_WESTERN_EUROPE: u32 = 1; -pub const LGRPID_CENTRAL_EUROPE: u32 = 2; -pub const LGRPID_BALTIC: u32 = 3; -pub const LGRPID_GREEK: u32 = 4; -pub const LGRPID_CYRILLIC: u32 = 5; -pub const LGRPID_TURKIC: u32 = 6; -pub const LGRPID_TURKISH: u32 = 6; -pub const LGRPID_JAPANESE: u32 = 7; -pub const LGRPID_KOREAN: u32 = 8; -pub const LGRPID_TRADITIONAL_CHINESE: u32 = 9; -pub const LGRPID_SIMPLIFIED_CHINESE: u32 = 10; -pub const LGRPID_THAI: u32 = 11; -pub const LGRPID_HEBREW: u32 = 12; -pub const LGRPID_ARABIC: u32 = 13; -pub const LGRPID_VIETNAMESE: u32 = 14; -pub const LGRPID_INDIC: u32 = 15; -pub const LGRPID_GEORGIAN: u32 = 16; -pub const LGRPID_ARMENIAN: u32 = 17; -pub const MUI_LANGUAGE_ID: u32 = 4; -pub const MUI_LANGUAGE_NAME: u32 = 8; -pub const MUI_MERGE_SYSTEM_FALLBACK: u32 = 16; -pub const MUI_MERGE_USER_FALLBACK: u32 = 32; -pub const MUI_UI_FALLBACK: u32 = 48; -pub const MUI_THREAD_LANGUAGES: u32 = 64; -pub const MUI_CONSOLE_FILTER: u32 = 256; -pub const MUI_COMPLEX_SCRIPT_FILTER: u32 = 512; -pub const MUI_RESET_FILTERS: u32 = 1; -pub const MUI_USER_PREFERRED_UI_LANGUAGES: u32 = 16; -pub const MUI_USE_INSTALLED_LANGUAGES: u32 = 32; -pub const MUI_USE_SEARCH_ALL_LANGUAGES: u32 = 64; -pub const MUI_LANG_NEUTRAL_PE_FILE: u32 = 256; -pub const MUI_NON_LANG_NEUTRAL_FILE: u32 = 512; -pub const MUI_MACHINE_LANGUAGE_SETTINGS: u32 = 1024; -pub const MUI_FILETYPE_NOT_LANGUAGE_NEUTRAL: u32 = 1; -pub const MUI_FILETYPE_LANGUAGE_NEUTRAL_MAIN: u32 = 2; -pub const MUI_FILETYPE_LANGUAGE_NEUTRAL_MUI: u32 = 4; -pub const MUI_QUERY_TYPE: u32 = 1; -pub const MUI_QUERY_CHECKSUM: u32 = 2; -pub const MUI_QUERY_LANGUAGE_NAME: u32 = 4; -pub const MUI_QUERY_RESOURCE_TYPES: u32 = 8; -pub const MUI_FILEINFO_VERSION: u32 = 1; -pub const MUI_FULL_LANGUAGE: u32 = 1; -pub const MUI_PARTIAL_LANGUAGE: u32 = 2; -pub const MUI_LIP_LANGUAGE: u32 = 4; -pub const MUI_LANGUAGE_INSTALLED: u32 = 32; -pub const MUI_LANGUAGE_LICENSED: u32 = 64; -pub const GEOID_NOT_AVAILABLE: i32 = -1; -pub const SORTING_PARADIGM_NLS: u32 = 0; -pub const SORTING_PARADIGM_ICU: u32 = 16777216; -pub const IDN_ALLOW_UNASSIGNED: u32 = 1; -pub const IDN_USE_STD3_ASCII_RULES: u32 = 2; -pub const IDN_EMAIL_ADDRESS: u32 = 4; -pub const IDN_RAW_PUNYCODE: u32 = 8; -pub const VS_ALLOW_LATIN: u32 = 1; -pub const GSS_ALLOW_INHERITED_COMMON: u32 = 1; -pub const MUI_FORMAT_REG_COMPAT: u32 = 1; -pub const MUI_FORMAT_INF_COMPAT: u32 = 2; -pub const MUI_VERIFY_FILE_EXISTS: u32 = 4; -pub const MUI_SKIP_STRING_CACHE: u32 = 8; -pub const MUI_IMMUTABLE_LOOKUP: u32 = 16; -pub const LOCALE_NAME_INVARIANT: &[u8; 1] = b"\0"; -pub const LOCALE_NAME_SYSTEM_DEFAULT: &[u8; 22] = b"!x-sys-default-locale\0"; -pub const RIGHT_ALT_PRESSED: u32 = 1; -pub const LEFT_ALT_PRESSED: u32 = 2; -pub const RIGHT_CTRL_PRESSED: u32 = 4; -pub const LEFT_CTRL_PRESSED: u32 = 8; -pub const SHIFT_PRESSED: u32 = 16; -pub const NUMLOCK_ON: u32 = 32; -pub const SCROLLLOCK_ON: u32 = 64; -pub const CAPSLOCK_ON: u32 = 128; -pub const ENHANCED_KEY: u32 = 256; -pub const NLS_DBCSCHAR: u32 = 65536; -pub const NLS_ALPHANUMERIC: u32 = 0; -pub const NLS_KATAKANA: u32 = 131072; -pub const NLS_HIRAGANA: u32 = 262144; -pub const NLS_ROMAN: u32 = 4194304; -pub const NLS_IME_CONVERSION: u32 = 8388608; -pub const ALTNUMPAD_BIT: u32 = 67108864; -pub const NLS_IME_DISABLE: u32 = 536870912; -pub const FROM_LEFT_1ST_BUTTON_PRESSED: u32 = 1; -pub const RIGHTMOST_BUTTON_PRESSED: u32 = 2; -pub const FROM_LEFT_2ND_BUTTON_PRESSED: u32 = 4; -pub const FROM_LEFT_3RD_BUTTON_PRESSED: u32 = 8; -pub const FROM_LEFT_4TH_BUTTON_PRESSED: u32 = 16; -pub const MOUSE_MOVED: u32 = 1; -pub const DOUBLE_CLICK: u32 = 2; -pub const MOUSE_WHEELED: u32 = 4; -pub const MOUSE_HWHEELED: u32 = 8; -pub const KEY_EVENT: u32 = 1; -pub const MOUSE_EVENT: u32 = 2; -pub const WINDOW_BUFFER_SIZE_EVENT: u32 = 4; -pub const MENU_EVENT: u32 = 8; -pub const FOCUS_EVENT: u32 = 16; -pub const ENABLE_PROCESSED_INPUT: u32 = 1; -pub const ENABLE_LINE_INPUT: u32 = 2; -pub const ENABLE_ECHO_INPUT: u32 = 4; -pub const ENABLE_WINDOW_INPUT: u32 = 8; -pub const ENABLE_MOUSE_INPUT: u32 = 16; -pub const ENABLE_INSERT_MODE: u32 = 32; -pub const ENABLE_QUICK_EDIT_MODE: u32 = 64; -pub const ENABLE_EXTENDED_FLAGS: u32 = 128; -pub const ENABLE_AUTO_POSITION: u32 = 256; -pub const ENABLE_VIRTUAL_TERMINAL_INPUT: u32 = 512; -pub const ENABLE_PROCESSED_OUTPUT: u32 = 1; -pub const ENABLE_WRAP_AT_EOL_OUTPUT: u32 = 2; -pub const ENABLE_VIRTUAL_TERMINAL_PROCESSING: u32 = 4; -pub const DISABLE_NEWLINE_AUTO_RETURN: u32 = 8; -pub const ENABLE_LVB_GRID_WORLDWIDE: u32 = 16; -pub const CTRL_C_EVENT: u32 = 0; -pub const CTRL_BREAK_EVENT: u32 = 1; -pub const CTRL_CLOSE_EVENT: u32 = 2; -pub const CTRL_LOGOFF_EVENT: u32 = 5; -pub const CTRL_SHUTDOWN_EVENT: u32 = 6; -pub const PSEUDOCONSOLE_INHERIT_CURSOR: u32 = 1; -pub const FOREGROUND_BLUE: u32 = 1; -pub const FOREGROUND_GREEN: u32 = 2; -pub const FOREGROUND_RED: u32 = 4; -pub const FOREGROUND_INTENSITY: u32 = 8; -pub const BACKGROUND_BLUE: u32 = 16; -pub const BACKGROUND_GREEN: u32 = 32; -pub const BACKGROUND_RED: u32 = 64; -pub const BACKGROUND_INTENSITY: u32 = 128; -pub const COMMON_LVB_LEADING_BYTE: u32 = 256; -pub const COMMON_LVB_TRAILING_BYTE: u32 = 512; -pub const COMMON_LVB_GRID_HORIZONTAL: u32 = 1024; -pub const COMMON_LVB_GRID_LVERTICAL: u32 = 2048; -pub const COMMON_LVB_GRID_RVERTICAL: u32 = 4096; -pub const COMMON_LVB_REVERSE_VIDEO: u32 = 16384; -pub const COMMON_LVB_UNDERSCORE: u32 = 32768; -pub const COMMON_LVB_SBCSDBCS: u32 = 768; -pub const CONSOLE_NO_SELECTION: u32 = 0; -pub const CONSOLE_SELECTION_IN_PROGRESS: u32 = 1; -pub const CONSOLE_SELECTION_NOT_EMPTY: u32 = 2; -pub const CONSOLE_MOUSE_SELECTION: u32 = 4; -pub const CONSOLE_MOUSE_DOWN: u32 = 8; -pub const HISTORY_NO_DUP_FLAG: u32 = 1; -pub const CONSOLE_FULLSCREEN: u32 = 1; -pub const CONSOLE_FULLSCREEN_HARDWARE: u32 = 2; -pub const CONSOLE_FULLSCREEN_MODE: u32 = 1; -pub const CONSOLE_WINDOWED_MODE: u32 = 2; -pub const CONSOLE_TEXTMODE_BUFFER: u32 = 1; -pub const VS_VERSION_INFO: u32 = 1; -pub const VS_USER_DEFINED: u32 = 100; -pub const VS_FFI_SIGNATURE: u32 = 4277077181; -pub const VS_FFI_STRUCVERSION: u32 = 65536; -pub const VS_FFI_FILEFLAGSMASK: u32 = 63; -pub const VS_FF_DEBUG: u32 = 1; -pub const VS_FF_PRERELEASE: u32 = 2; -pub const VS_FF_PATCHED: u32 = 4; -pub const VS_FF_PRIVATEBUILD: u32 = 8; -pub const VS_FF_INFOINFERRED: u32 = 16; -pub const VS_FF_SPECIALBUILD: u32 = 32; -pub const VOS_UNKNOWN: u32 = 0; -pub const VOS_DOS: u32 = 65536; -pub const VOS_OS216: u32 = 131072; -pub const VOS_OS232: u32 = 196608; -pub const VOS_NT: u32 = 262144; -pub const VOS_WINCE: u32 = 327680; -pub const VOS__BASE: u32 = 0; -pub const VOS__WINDOWS16: u32 = 1; -pub const VOS__PM16: u32 = 2; -pub const VOS__PM32: u32 = 3; -pub const VOS__WINDOWS32: u32 = 4; -pub const VOS_DOS_WINDOWS16: u32 = 65537; -pub const VOS_DOS_WINDOWS32: u32 = 65540; -pub const VOS_OS216_PM16: u32 = 131074; -pub const VOS_OS232_PM32: u32 = 196611; -pub const VOS_NT_WINDOWS32: u32 = 262148; -pub const VFT_UNKNOWN: u32 = 0; -pub const VFT_APP: u32 = 1; -pub const VFT_DLL: u32 = 2; -pub const VFT_DRV: u32 = 3; -pub const VFT_FONT: u32 = 4; -pub const VFT_VXD: u32 = 5; -pub const VFT_STATIC_LIB: u32 = 7; -pub const VFT2_UNKNOWN: u32 = 0; -pub const VFT2_DRV_PRINTER: u32 = 1; -pub const VFT2_DRV_KEYBOARD: u32 = 2; -pub const VFT2_DRV_LANGUAGE: u32 = 3; -pub const VFT2_DRV_DISPLAY: u32 = 4; -pub const VFT2_DRV_MOUSE: u32 = 5; -pub const VFT2_DRV_NETWORK: u32 = 6; -pub const VFT2_DRV_SYSTEM: u32 = 7; -pub const VFT2_DRV_INSTALLABLE: u32 = 8; -pub const VFT2_DRV_SOUND: u32 = 9; -pub const VFT2_DRV_COMM: u32 = 10; -pub const VFT2_DRV_INPUTMETHOD: u32 = 11; -pub const VFT2_DRV_VERSIONED_PRINTER: u32 = 12; -pub const VFT2_FONT_RASTER: u32 = 1; -pub const VFT2_FONT_VECTOR: u32 = 2; -pub const VFT2_FONT_TRUETYPE: u32 = 3; -pub const VFFF_ISSHAREDFILE: u32 = 1; -pub const VFF_CURNEDEST: u32 = 1; -pub const VFF_FILEINUSE: u32 = 2; -pub const VFF_BUFFTOOSMALL: u32 = 4; -pub const VIFF_FORCEINSTALL: u32 = 1; -pub const VIFF_DONTDELETEOLD: u32 = 2; -pub const VIF_TEMPFILE: u32 = 1; -pub const VIF_MISMATCH: u32 = 2; -pub const VIF_SRCOLD: u32 = 4; -pub const VIF_DIFFLANG: u32 = 8; -pub const VIF_DIFFCODEPG: u32 = 16; -pub const VIF_DIFFTYPE: u32 = 32; -pub const VIF_WRITEPROT: u32 = 64; -pub const VIF_FILEINUSE: u32 = 128; -pub const VIF_OUTOFSPACE: u32 = 256; -pub const VIF_ACCESSVIOLATION: u32 = 512; -pub const VIF_SHARINGVIOLATION: u32 = 1024; -pub const VIF_CANNOTCREATE: u32 = 2048; -pub const VIF_CANNOTDELETE: u32 = 4096; -pub const VIF_CANNOTRENAME: u32 = 8192; -pub const VIF_CANNOTDELETECUR: u32 = 16384; -pub const VIF_OUTOFMEMORY: u32 = 32768; -pub const VIF_CANNOTREADSRC: u32 = 65536; -pub const VIF_CANNOTREADDST: u32 = 131072; -pub const VIF_BUFFTOOSMALL: u32 = 262144; -pub const VIF_CANNOTLOADLZ32: u32 = 524288; -pub const VIF_CANNOTLOADCABINET: u32 = 1048576; -pub const FILE_VER_GET_LOCALISED: u32 = 1; -pub const FILE_VER_GET_NEUTRAL: u32 = 2; -pub const FILE_VER_GET_PREFETCHED: u32 = 4; -pub const RRF_RT_REG_NONE: u32 = 1; -pub const RRF_RT_REG_SZ: u32 = 2; -pub const RRF_RT_REG_EXPAND_SZ: u32 = 4; -pub const RRF_RT_REG_BINARY: u32 = 8; -pub const RRF_RT_REG_DWORD: u32 = 16; -pub const RRF_RT_REG_MULTI_SZ: u32 = 32; -pub const RRF_RT_REG_QWORD: u32 = 64; -pub const RRF_RT_DWORD: u32 = 24; -pub const RRF_RT_QWORD: u32 = 72; -pub const RRF_RT_ANY: u32 = 65535; -pub const RRF_SUBKEY_WOW6464KEY: u32 = 65536; -pub const RRF_SUBKEY_WOW6432KEY: u32 = 131072; -pub const RRF_WOW64_MASK: u32 = 196608; -pub const RRF_NOEXPAND: u32 = 268435456; -pub const RRF_ZEROONFAILURE: u32 = 536870912; -pub const REG_PROCESS_APPKEY: u32 = 1; -pub const REG_USE_CURRENT_SECURITY_CONTEXT: u32 = 2; -pub const PROVIDER_KEEPS_VALUE_LENGTH: u32 = 1; -pub const REG_MUI_STRING_TRUNCATE: u32 = 1; -pub const REG_SECURE_CONNECTION: u32 = 1; -pub const SHTDN_REASON_FLAG_COMMENT_REQUIRED: u32 = 16777216; -pub const SHTDN_REASON_FLAG_DIRTY_PROBLEM_ID_REQUIRED: u32 = 33554432; -pub const SHTDN_REASON_FLAG_CLEAN_UI: u32 = 67108864; -pub const SHTDN_REASON_FLAG_DIRTY_UI: u32 = 134217728; -pub const SHTDN_REASON_FLAG_MOBILE_UI_RESERVED: u32 = 268435456; -pub const SHTDN_REASON_FLAG_USER_DEFINED: u32 = 1073741824; -pub const SHTDN_REASON_FLAG_PLANNED: u32 = 2147483648; -pub const SHTDN_REASON_MAJOR_OTHER: u32 = 0; -pub const SHTDN_REASON_MAJOR_NONE: u32 = 0; -pub const SHTDN_REASON_MAJOR_HARDWARE: u32 = 65536; -pub const SHTDN_REASON_MAJOR_OPERATINGSYSTEM: u32 = 131072; -pub const SHTDN_REASON_MAJOR_SOFTWARE: u32 = 196608; -pub const SHTDN_REASON_MAJOR_APPLICATION: u32 = 262144; -pub const SHTDN_REASON_MAJOR_SYSTEM: u32 = 327680; -pub const SHTDN_REASON_MAJOR_POWER: u32 = 393216; -pub const SHTDN_REASON_MAJOR_LEGACY_API: u32 = 458752; -pub const SHTDN_REASON_MINOR_OTHER: u32 = 0; -pub const SHTDN_REASON_MINOR_NONE: u32 = 255; -pub const SHTDN_REASON_MINOR_MAINTENANCE: u32 = 1; -pub const SHTDN_REASON_MINOR_INSTALLATION: u32 = 2; -pub const SHTDN_REASON_MINOR_UPGRADE: u32 = 3; -pub const SHTDN_REASON_MINOR_RECONFIG: u32 = 4; -pub const SHTDN_REASON_MINOR_HUNG: u32 = 5; -pub const SHTDN_REASON_MINOR_UNSTABLE: u32 = 6; -pub const SHTDN_REASON_MINOR_DISK: u32 = 7; -pub const SHTDN_REASON_MINOR_PROCESSOR: u32 = 8; -pub const SHTDN_REASON_MINOR_NETWORKCARD: u32 = 9; -pub const SHTDN_REASON_MINOR_POWER_SUPPLY: u32 = 10; -pub const SHTDN_REASON_MINOR_CORDUNPLUGGED: u32 = 11; -pub const SHTDN_REASON_MINOR_ENVIRONMENT: u32 = 12; -pub const SHTDN_REASON_MINOR_HARDWARE_DRIVER: u32 = 13; -pub const SHTDN_REASON_MINOR_OTHERDRIVER: u32 = 14; -pub const SHTDN_REASON_MINOR_BLUESCREEN: u32 = 15; -pub const SHTDN_REASON_MINOR_SERVICEPACK: u32 = 16; -pub const SHTDN_REASON_MINOR_HOTFIX: u32 = 17; -pub const SHTDN_REASON_MINOR_SECURITYFIX: u32 = 18; -pub const SHTDN_REASON_MINOR_SECURITY: u32 = 19; -pub const SHTDN_REASON_MINOR_NETWORK_CONNECTIVITY: u32 = 20; -pub const SHTDN_REASON_MINOR_WMI: u32 = 21; -pub const SHTDN_REASON_MINOR_SERVICEPACK_UNINSTALL: u32 = 22; -pub const SHTDN_REASON_MINOR_HOTFIX_UNINSTALL: u32 = 23; -pub const SHTDN_REASON_MINOR_SECURITYFIX_UNINSTALL: u32 = 24; -pub const SHTDN_REASON_MINOR_MMC: u32 = 25; -pub const SHTDN_REASON_MINOR_SYSTEMRESTORE: u32 = 26; -pub const SHTDN_REASON_MINOR_TERMSRV: u32 = 32; -pub const SHTDN_REASON_MINOR_DC_PROMOTION: u32 = 33; -pub const SHTDN_REASON_MINOR_DC_DEMOTION: u32 = 34; -pub const SHTDN_REASON_UNKNOWN: u32 = 255; -pub const SHTDN_REASON_LEGACY_API: u32 = 2147942400; -pub const SHTDN_REASON_VALID_BIT_MASK: u32 = 3238002687; -pub const PCLEANUI: u32 = 2214592512; -pub const UCLEANUI: u32 = 67108864; -pub const PDIRTYUI: u32 = 2281701376; -pub const UDIRTYUI: u32 = 134217728; -pub const MAX_REASON_NAME_LEN: u32 = 64; -pub const MAX_REASON_DESC_LEN: u32 = 256; -pub const MAX_REASON_BUGID_LEN: u32 = 32; -pub const MAX_REASON_COMMENT_LEN: u32 = 512; -pub const SHUTDOWN_TYPE_LEN: u32 = 32; -pub const POLICY_SHOWREASONUI_NEVER: u32 = 0; -pub const POLICY_SHOWREASONUI_ALWAYS: u32 = 1; -pub const POLICY_SHOWREASONUI_WORKSTATIONONLY: u32 = 2; -pub const POLICY_SHOWREASONUI_SERVERONLY: u32 = 3; -pub const SNAPSHOT_POLICY_NEVER: u32 = 0; -pub const SNAPSHOT_POLICY_ALWAYS: u32 = 1; -pub const SNAPSHOT_POLICY_UNPLANNED: u32 = 2; -pub const MAX_NUM_REASONS: u32 = 256; -pub const REASON_SWINSTALL: u32 = 196610; -pub const REASON_HWINSTALL: u32 = 65538; -pub const REASON_SERVICEHANG: u32 = 196613; -pub const REASON_UNSTABLE: u32 = 327686; -pub const REASON_SWHWRECONF: u32 = 196612; -pub const REASON_OTHER: u32 = 0; -pub const REASON_UNKNOWN: u32 = 255; -pub const REASON_LEGACY_API: u32 = 2147942400; -pub const REASON_PLANNED_FLAG: u32 = 2147483648; -pub const MAX_SHUTDOWN_TIMEOUT: u32 = 315360000; -pub const SHUTDOWN_FORCE_OTHERS: u32 = 1; -pub const SHUTDOWN_FORCE_SELF: u32 = 2; -pub const SHUTDOWN_RESTART: u32 = 4; -pub const SHUTDOWN_POWEROFF: u32 = 8; -pub const SHUTDOWN_NOREBOOT: u32 = 16; -pub const SHUTDOWN_GRACE_OVERRIDE: u32 = 32; -pub const SHUTDOWN_INSTALL_UPDATES: u32 = 64; -pub const SHUTDOWN_RESTARTAPPS: u32 = 128; -pub const SHUTDOWN_SKIP_SVC_PRESHUTDOWN: u32 = 256; -pub const SHUTDOWN_HYBRID: u32 = 512; -pub const SHUTDOWN_RESTART_BOOTOPTIONS: u32 = 1024; -pub const SHUTDOWN_SOFT_REBOOT: u32 = 2048; -pub const SHUTDOWN_MOBILE_UI: u32 = 4096; -pub const SHUTDOWN_ARSO: u32 = 8192; -pub const SHUTDOWN_CHECK_SAFE_FOR_SERVER: u32 = 16384; -pub const SHUTDOWN_VAIL_CONTAINER: u32 = 32768; -pub const SHUTDOWN_SYSTEM_INITIATED: u32 = 65536; -pub const WNNC_NET_MSNET: u32 = 65536; -pub const WNNC_NET_SMB: u32 = 131072; -pub const WNNC_NET_NETWARE: u32 = 196608; -pub const WNNC_NET_VINES: u32 = 262144; -pub const WNNC_NET_10NET: u32 = 327680; -pub const WNNC_NET_LOCUS: u32 = 393216; -pub const WNNC_NET_SUN_PC_NFS: u32 = 458752; -pub const WNNC_NET_LANSTEP: u32 = 524288; -pub const WNNC_NET_9TILES: u32 = 589824; -pub const WNNC_NET_LANTASTIC: u32 = 655360; -pub const WNNC_NET_AS400: u32 = 720896; -pub const WNNC_NET_FTP_NFS: u32 = 786432; -pub const WNNC_NET_PATHWORKS: u32 = 851968; -pub const WNNC_NET_LIFENET: u32 = 917504; -pub const WNNC_NET_POWERLAN: u32 = 983040; -pub const WNNC_NET_BWNFS: u32 = 1048576; -pub const WNNC_NET_COGENT: u32 = 1114112; -pub const WNNC_NET_FARALLON: u32 = 1179648; -pub const WNNC_NET_APPLETALK: u32 = 1245184; -pub const WNNC_NET_INTERGRAPH: u32 = 1310720; -pub const WNNC_NET_SYMFONET: u32 = 1376256; -pub const WNNC_NET_CLEARCASE: u32 = 1441792; -pub const WNNC_NET_FRONTIER: u32 = 1507328; -pub const WNNC_NET_BMC: u32 = 1572864; -pub const WNNC_NET_DCE: u32 = 1638400; -pub const WNNC_NET_AVID: u32 = 1703936; -pub const WNNC_NET_DOCUSPACE: u32 = 1769472; -pub const WNNC_NET_MANGOSOFT: u32 = 1835008; -pub const WNNC_NET_SERNET: u32 = 1900544; -pub const WNNC_NET_RIVERFRONT1: u32 = 1966080; -pub const WNNC_NET_RIVERFRONT2: u32 = 2031616; -pub const WNNC_NET_DECORB: u32 = 2097152; -pub const WNNC_NET_PROTSTOR: u32 = 2162688; -pub const WNNC_NET_FJ_REDIR: u32 = 2228224; -pub const WNNC_NET_DISTINCT: u32 = 2293760; -pub const WNNC_NET_TWINS: u32 = 2359296; -pub const WNNC_NET_RDR2SAMPLE: u32 = 2424832; -pub const WNNC_NET_CSC: u32 = 2490368; -pub const WNNC_NET_3IN1: u32 = 2555904; -pub const WNNC_NET_EXTENDNET: u32 = 2686976; -pub const WNNC_NET_STAC: u32 = 2752512; -pub const WNNC_NET_FOXBAT: u32 = 2818048; -pub const WNNC_NET_YAHOO: u32 = 2883584; -pub const WNNC_NET_EXIFS: u32 = 2949120; -pub const WNNC_NET_DAV: u32 = 3014656; -pub const WNNC_NET_KNOWARE: u32 = 3080192; -pub const WNNC_NET_OBJECT_DIRE: u32 = 3145728; -pub const WNNC_NET_MASFAX: u32 = 3211264; -pub const WNNC_NET_HOB_NFS: u32 = 3276800; -pub const WNNC_NET_SHIVA: u32 = 3342336; -pub const WNNC_NET_IBMAL: u32 = 3407872; -pub const WNNC_NET_LOCK: u32 = 3473408; -pub const WNNC_NET_TERMSRV: u32 = 3538944; -pub const WNNC_NET_SRT: u32 = 3604480; -pub const WNNC_NET_QUINCY: u32 = 3670016; -pub const WNNC_NET_OPENAFS: u32 = 3735552; -pub const WNNC_NET_AVID1: u32 = 3801088; -pub const WNNC_NET_DFS: u32 = 3866624; -pub const WNNC_NET_KWNP: u32 = 3932160; -pub const WNNC_NET_ZENWORKS: u32 = 3997696; -pub const WNNC_NET_DRIVEONWEB: u32 = 4063232; -pub const WNNC_NET_VMWARE: u32 = 4128768; -pub const WNNC_NET_RSFX: u32 = 4194304; -pub const WNNC_NET_MFILES: u32 = 4259840; -pub const WNNC_NET_MS_NFS: u32 = 4325376; -pub const WNNC_NET_GOOGLE: u32 = 4390912; -pub const WNNC_NET_NDFS: u32 = 4456448; -pub const WNNC_NET_DOCUSHARE: u32 = 4521984; -pub const WNNC_NET_AURISTOR_FS: u32 = 4587520; -pub const WNNC_NET_SECUREAGENT: u32 = 4653056; -pub const WNNC_NET_9P: u32 = 4718592; -pub const WNNC_CRED_MANAGER: u32 = 4294901760; -pub const WNNC_NET_LANMAN: u32 = 131072; -pub const RESOURCE_CONNECTED: u32 = 1; -pub const RESOURCE_GLOBALNET: u32 = 2; -pub const RESOURCE_REMEMBERED: u32 = 3; -pub const RESOURCE_RECENT: u32 = 4; -pub const RESOURCE_CONTEXT: u32 = 5; -pub const RESOURCETYPE_ANY: u32 = 0; -pub const RESOURCETYPE_DISK: u32 = 1; -pub const RESOURCETYPE_PRINT: u32 = 2; -pub const RESOURCETYPE_RESERVED: u32 = 8; -pub const RESOURCETYPE_UNKNOWN: u32 = 4294967295; -pub const RESOURCEUSAGE_CONNECTABLE: u32 = 1; -pub const RESOURCEUSAGE_CONTAINER: u32 = 2; -pub const RESOURCEUSAGE_NOLOCALDEVICE: u32 = 4; -pub const RESOURCEUSAGE_SIBLING: u32 = 8; -pub const RESOURCEUSAGE_ATTACHED: u32 = 16; -pub const RESOURCEUSAGE_ALL: u32 = 19; -pub const RESOURCEUSAGE_RESERVED: u32 = 2147483648; -pub const RESOURCEDISPLAYTYPE_GENERIC: u32 = 0; -pub const RESOURCEDISPLAYTYPE_DOMAIN: u32 = 1; -pub const RESOURCEDISPLAYTYPE_SERVER: u32 = 2; -pub const RESOURCEDISPLAYTYPE_SHARE: u32 = 3; -pub const RESOURCEDISPLAYTYPE_FILE: u32 = 4; -pub const RESOURCEDISPLAYTYPE_GROUP: u32 = 5; -pub const RESOURCEDISPLAYTYPE_NETWORK: u32 = 6; -pub const RESOURCEDISPLAYTYPE_ROOT: u32 = 7; -pub const RESOURCEDISPLAYTYPE_SHAREADMIN: u32 = 8; -pub const RESOURCEDISPLAYTYPE_DIRECTORY: u32 = 9; -pub const RESOURCEDISPLAYTYPE_TREE: u32 = 10; -pub const RESOURCEDISPLAYTYPE_NDSCONTAINER: u32 = 11; -pub const NETPROPERTY_PERSISTENT: u32 = 1; -pub const CONNECT_UPDATE_PROFILE: u32 = 1; -pub const CONNECT_UPDATE_RECENT: u32 = 2; -pub const CONNECT_TEMPORARY: u32 = 4; -pub const CONNECT_INTERACTIVE: u32 = 8; -pub const CONNECT_PROMPT: u32 = 16; -pub const CONNECT_NEED_DRIVE: u32 = 32; -pub const CONNECT_REFCOUNT: u32 = 64; -pub const CONNECT_REDIRECT: u32 = 128; -pub const CONNECT_LOCALDRIVE: u32 = 256; -pub const CONNECT_CURRENT_MEDIA: u32 = 512; -pub const CONNECT_DEFERRED: u32 = 1024; -pub const CONNECT_RESERVED: u32 = 4278190080; -pub const CONNECT_COMMANDLINE: u32 = 2048; -pub const CONNECT_CMD_SAVECRED: u32 = 4096; -pub const CONNECT_CRED_RESET: u32 = 8192; -pub const CONNECT_REQUIRE_INTEGRITY: u32 = 16384; -pub const CONNECT_REQUIRE_PRIVACY: u32 = 32768; -pub const CONNECT_WRITE_THROUGH_SEMANTICS: u32 = 65536; -pub const CONNECT_GLOBAL_MAPPING: u32 = 262144; -pub const CONNDLG_RO_PATH: u32 = 1; -pub const CONNDLG_CONN_POINT: u32 = 2; -pub const CONNDLG_USE_MRU: u32 = 4; -pub const CONNDLG_HIDE_BOX: u32 = 8; -pub const CONNDLG_PERSIST: u32 = 16; -pub const CONNDLG_NOT_PERSIST: u32 = 32; -pub const DISC_UPDATE_PROFILE: u32 = 1; -pub const DISC_NO_FORCE: u32 = 64; -pub const UNIVERSAL_NAME_INFO_LEVEL: u32 = 1; -pub const REMOTE_NAME_INFO_LEVEL: u32 = 2; -pub const WNFMT_MULTILINE: u32 = 1; -pub const WNFMT_ABBREVIATED: u32 = 2; -pub const WNFMT_INENUM: u32 = 16; -pub const WNFMT_CONNECTION: u32 = 32; -pub const NETINFO_DLL16: u32 = 1; -pub const NETINFO_DISKRED: u32 = 4; -pub const NETINFO_PRINTERRED: u32 = 8; -pub const WN_SUCCESS: u32 = 0; -pub const WN_NO_ERROR: u32 = 0; -pub const WN_NOT_SUPPORTED: u32 = 50; -pub const WN_CANCEL: u32 = 1223; -pub const WN_RETRY: u32 = 1237; -pub const WN_NET_ERROR: u32 = 59; -pub const WN_MORE_DATA: u32 = 234; -pub const WN_BAD_POINTER: u32 = 487; -pub const WN_BAD_VALUE: u32 = 87; -pub const WN_BAD_USER: u32 = 2202; -pub const WN_BAD_PASSWORD: u32 = 86; -pub const WN_ACCESS_DENIED: u32 = 5; -pub const WN_FUNCTION_BUSY: u32 = 170; -pub const WN_WINDOWS_ERROR: u32 = 59; -pub const WN_OUT_OF_MEMORY: u32 = 8; -pub const WN_NO_NETWORK: u32 = 1222; -pub const WN_EXTENDED_ERROR: u32 = 1208; -pub const WN_BAD_LEVEL: u32 = 124; -pub const WN_BAD_HANDLE: u32 = 6; -pub const WN_NOT_INITIALIZING: u32 = 1247; -pub const WN_NO_MORE_DEVICES: u32 = 1248; -pub const WN_NOT_CONNECTED: u32 = 2250; -pub const WN_OPEN_FILES: u32 = 2401; -pub const WN_DEVICE_IN_USE: u32 = 2404; -pub const WN_BAD_NETNAME: u32 = 67; -pub const WN_BAD_LOCALNAME: u32 = 1200; -pub const WN_ALREADY_CONNECTED: u32 = 85; -pub const WN_DEVICE_ERROR: u32 = 31; -pub const WN_CONNECTION_CLOSED: u32 = 1201; -pub const WN_NO_NET_OR_BAD_PATH: u32 = 1203; -pub const WN_BAD_PROVIDER: u32 = 1204; -pub const WN_CANNOT_OPEN_PROFILE: u32 = 1205; -pub const WN_BAD_PROFILE: u32 = 1206; -pub const WN_BAD_DEV_TYPE: u32 = 66; -pub const WN_DEVICE_ALREADY_REMEMBERED: u32 = 1202; -pub const WN_CONNECTED_OTHER_PASSWORD: u32 = 2108; -pub const WN_CONNECTED_OTHER_PASSWORD_DEFAULT: u32 = 2109; -pub const WN_NO_MORE_ENTRIES: u32 = 259; -pub const WN_NOT_CONTAINER: u32 = 1207; -pub const WN_NOT_AUTHENTICATED: u32 = 1244; -pub const WN_NOT_LOGGED_ON: u32 = 1245; -pub const WN_NOT_VALIDATED: u32 = 1311; -pub const WNCON_FORNETCARD: u32 = 1; -pub const WNCON_NOTROUTED: u32 = 2; -pub const WNCON_SLOWLINK: u32 = 4; -pub const WNCON_DYNAMIC: u32 = 8; -pub const CDERR_DIALOGFAILURE: u32 = 65535; -pub const CDERR_GENERALCODES: u32 = 0; -pub const CDERR_STRUCTSIZE: u32 = 1; -pub const CDERR_INITIALIZATION: u32 = 2; -pub const CDERR_NOTEMPLATE: u32 = 3; -pub const CDERR_NOHINSTANCE: u32 = 4; -pub const CDERR_LOADSTRFAILURE: u32 = 5; -pub const CDERR_FINDRESFAILURE: u32 = 6; -pub const CDERR_LOADRESFAILURE: u32 = 7; -pub const CDERR_LOCKRESFAILURE: u32 = 8; -pub const CDERR_MEMALLOCFAILURE: u32 = 9; -pub const CDERR_MEMLOCKFAILURE: u32 = 10; -pub const CDERR_NOHOOK: u32 = 11; -pub const CDERR_REGISTERMSGFAIL: u32 = 12; -pub const PDERR_PRINTERCODES: u32 = 4096; -pub const PDERR_SETUPFAILURE: u32 = 4097; -pub const PDERR_PARSEFAILURE: u32 = 4098; -pub const PDERR_RETDEFFAILURE: u32 = 4099; -pub const PDERR_LOADDRVFAILURE: u32 = 4100; -pub const PDERR_GETDEVMODEFAIL: u32 = 4101; -pub const PDERR_INITFAILURE: u32 = 4102; -pub const PDERR_NODEVICES: u32 = 4103; -pub const PDERR_NODEFAULTPRN: u32 = 4104; -pub const PDERR_DNDMMISMATCH: u32 = 4105; -pub const PDERR_CREATEICFAILURE: u32 = 4106; -pub const PDERR_PRINTERNOTFOUND: u32 = 4107; -pub const PDERR_DEFAULTDIFFERENT: u32 = 4108; -pub const CFERR_CHOOSEFONTCODES: u32 = 8192; -pub const CFERR_NOFONTS: u32 = 8193; -pub const CFERR_MAXLESSTHANMIN: u32 = 8194; -pub const FNERR_FILENAMECODES: u32 = 12288; -pub const FNERR_SUBCLASSFAILURE: u32 = 12289; -pub const FNERR_INVALIDFILENAME: u32 = 12290; -pub const FNERR_BUFFERTOOSMALL: u32 = 12291; -pub const FRERR_FINDREPLACECODES: u32 = 16384; -pub const FRERR_BUFFERLENGTHZERO: u32 = 16385; -pub const CCERR_CHOOSECOLORCODES: u32 = 20480; -pub const WM_DDE_FIRST: u32 = 992; -pub const WM_DDE_INITIATE: u32 = 992; -pub const WM_DDE_TERMINATE: u32 = 993; -pub const WM_DDE_ADVISE: u32 = 994; -pub const WM_DDE_UNADVISE: u32 = 995; -pub const WM_DDE_ACK: u32 = 996; -pub const WM_DDE_DATA: u32 = 997; -pub const WM_DDE_REQUEST: u32 = 998; -pub const WM_DDE_POKE: u32 = 999; -pub const WM_DDE_EXECUTE: u32 = 1000; -pub const WM_DDE_LAST: u32 = 1000; -pub const XST_NULL: u32 = 0; -pub const XST_INCOMPLETE: u32 = 1; -pub const XST_CONNECTED: u32 = 2; -pub const XST_INIT1: u32 = 3; -pub const XST_INIT2: u32 = 4; -pub const XST_REQSENT: u32 = 5; -pub const XST_DATARCVD: u32 = 6; -pub const XST_POKESENT: u32 = 7; -pub const XST_POKEACKRCVD: u32 = 8; -pub const XST_EXECSENT: u32 = 9; -pub const XST_EXECACKRCVD: u32 = 10; -pub const XST_ADVSENT: u32 = 11; -pub const XST_UNADVSENT: u32 = 12; -pub const XST_ADVACKRCVD: u32 = 13; -pub const XST_UNADVACKRCVD: u32 = 14; -pub const XST_ADVDATASENT: u32 = 15; -pub const XST_ADVDATAACKRCVD: u32 = 16; -pub const CADV_LATEACK: u32 = 65535; -pub const ST_CONNECTED: u32 = 1; -pub const ST_ADVISE: u32 = 2; -pub const ST_ISLOCAL: u32 = 4; -pub const ST_BLOCKED: u32 = 8; -pub const ST_CLIENT: u32 = 16; -pub const ST_TERMINATED: u32 = 32; -pub const ST_INLIST: u32 = 64; -pub const ST_BLOCKNEXT: u32 = 128; -pub const ST_ISSELF: u32 = 256; -pub const DDE_FACK: u32 = 32768; -pub const DDE_FBUSY: u32 = 16384; -pub const DDE_FDEFERUPD: u32 = 16384; -pub const DDE_FACKREQ: u32 = 32768; -pub const DDE_FRELEASE: u32 = 8192; -pub const DDE_FREQUESTED: u32 = 4096; -pub const DDE_FAPPSTATUS: u32 = 255; -pub const DDE_FNOTPROCESSED: u32 = 0; -pub const DDE_FACKRESERVED: i32 = -49408; -pub const DDE_FADVRESERVED: i32 = -49153; -pub const DDE_FDATRESERVED: i32 = -45057; -pub const DDE_FPOKRESERVED: i32 = -8193; -pub const MSGF_DDEMGR: u32 = 32769; -pub const CP_WINANSI: u32 = 1004; -pub const CP_WINUNICODE: u32 = 1200; -pub const CP_WINNEUTRAL: u32 = 1004; -pub const XTYPF_NOBLOCK: u32 = 2; -pub const XTYPF_NODATA: u32 = 4; -pub const XTYPF_ACKREQ: u32 = 8; -pub const XCLASS_MASK: u32 = 64512; -pub const XCLASS_BOOL: u32 = 4096; -pub const XCLASS_DATA: u32 = 8192; -pub const XCLASS_FLAGS: u32 = 16384; -pub const XCLASS_NOTIFICATION: u32 = 32768; -pub const XTYP_ERROR: u32 = 32770; -pub const XTYP_ADVDATA: u32 = 16400; -pub const XTYP_ADVREQ: u32 = 8226; -pub const XTYP_ADVSTART: u32 = 4144; -pub const XTYP_ADVSTOP: u32 = 32832; -pub const XTYP_EXECUTE: u32 = 16464; -pub const XTYP_CONNECT: u32 = 4194; -pub const XTYP_CONNECT_CONFIRM: u32 = 32882; -pub const XTYP_XACT_COMPLETE: u32 = 32896; -pub const XTYP_POKE: u32 = 16528; -pub const XTYP_REGISTER: u32 = 32930; -pub const XTYP_REQUEST: u32 = 8368; -pub const XTYP_DISCONNECT: u32 = 32962; -pub const XTYP_UNREGISTER: u32 = 32978; -pub const XTYP_WILDCONNECT: u32 = 8418; -pub const XTYP_MASK: u32 = 240; -pub const XTYP_SHIFT: u32 = 4; -pub const TIMEOUT_ASYNC: u32 = 4294967295; -pub const QID_SYNC: u32 = 4294967295; -pub const SZDDESYS_TOPIC: &[u8; 7] = b"System\0"; -pub const SZDDESYS_ITEM_TOPICS: &[u8; 7] = b"Topics\0"; -pub const SZDDESYS_ITEM_SYSITEMS: &[u8; 9] = b"SysItems\0"; -pub const SZDDESYS_ITEM_RTNMSG: &[u8; 14] = b"ReturnMessage\0"; -pub const SZDDESYS_ITEM_STATUS: &[u8; 7] = b"Status\0"; -pub const SZDDESYS_ITEM_FORMATS: &[u8; 8] = b"Formats\0"; -pub const SZDDESYS_ITEM_HELP: &[u8; 5] = b"Help\0"; -pub const SZDDE_ITEM_ITEMLIST: &[u8; 14] = b"TopicItemList\0"; -pub const CBF_FAIL_SELFCONNECTIONS: u32 = 4096; -pub const CBF_FAIL_CONNECTIONS: u32 = 8192; -pub const CBF_FAIL_ADVISES: u32 = 16384; -pub const CBF_FAIL_EXECUTES: u32 = 32768; -pub const CBF_FAIL_POKES: u32 = 65536; -pub const CBF_FAIL_REQUESTS: u32 = 131072; -pub const CBF_FAIL_ALLSVRXACTIONS: u32 = 258048; -pub const CBF_SKIP_CONNECT_CONFIRMS: u32 = 262144; -pub const CBF_SKIP_REGISTRATIONS: u32 = 524288; -pub const CBF_SKIP_UNREGISTRATIONS: u32 = 1048576; -pub const CBF_SKIP_DISCONNECTS: u32 = 2097152; -pub const CBF_SKIP_ALLNOTIFICATIONS: u32 = 3932160; -pub const APPCMD_CLIENTONLY: u32 = 16; -pub const APPCMD_FILTERINITS: u32 = 32; -pub const APPCMD_MASK: u32 = 4080; -pub const APPCLASS_STANDARD: u32 = 0; -pub const APPCLASS_MASK: u32 = 15; -pub const EC_ENABLEALL: u32 = 0; -pub const EC_ENABLEONE: u32 = 128; -pub const EC_DISABLE: u32 = 8; -pub const EC_QUERYWAITING: u32 = 2; -pub const DNS_REGISTER: u32 = 1; -pub const DNS_UNREGISTER: u32 = 2; -pub const DNS_FILTERON: u32 = 4; -pub const DNS_FILTEROFF: u32 = 8; -pub const HDATA_APPOWNED: u32 = 1; -pub const DMLERR_NO_ERROR: u32 = 0; -pub const DMLERR_FIRST: u32 = 16384; -pub const DMLERR_ADVACKTIMEOUT: u32 = 16384; -pub const DMLERR_BUSY: u32 = 16385; -pub const DMLERR_DATAACKTIMEOUT: u32 = 16386; -pub const DMLERR_DLL_NOT_INITIALIZED: u32 = 16387; -pub const DMLERR_DLL_USAGE: u32 = 16388; -pub const DMLERR_EXECACKTIMEOUT: u32 = 16389; -pub const DMLERR_INVALIDPARAMETER: u32 = 16390; -pub const DMLERR_LOW_MEMORY: u32 = 16391; -pub const DMLERR_MEMORY_ERROR: u32 = 16392; -pub const DMLERR_NOTPROCESSED: u32 = 16393; -pub const DMLERR_NO_CONV_ESTABLISHED: u32 = 16394; -pub const DMLERR_POKEACKTIMEOUT: u32 = 16395; -pub const DMLERR_POSTMSG_FAILED: u32 = 16396; -pub const DMLERR_REENTRANCY: u32 = 16397; -pub const DMLERR_SERVER_DIED: u32 = 16398; -pub const DMLERR_SYS_ERROR: u32 = 16399; -pub const DMLERR_UNADVACKTIMEOUT: u32 = 16400; -pub const DMLERR_UNFOUND_QUEUE_ID: u32 = 16401; -pub const DMLERR_LAST: u32 = 16401; -pub const MH_CREATE: u32 = 1; -pub const MH_KEEP: u32 = 2; -pub const MH_DELETE: u32 = 3; -pub const MH_CLEANUP: u32 = 4; -pub const MAX_MONITORS: u32 = 4; -pub const APPCLASS_MONITOR: u32 = 1; -pub const XTYP_MONITOR: u32 = 33010; -pub const MF_HSZ_INFO: u32 = 16777216; -pub const MF_SENDMSGS: u32 = 33554432; -pub const MF_POSTMSGS: u32 = 67108864; -pub const MF_CALLBACKS: u32 = 134217728; -pub const MF_ERRORS: u32 = 268435456; -pub const MF_LINKS: u32 = 536870912; -pub const MF_CONV: u32 = 1073741824; -pub const MF_MASK: u32 = 4278190080; -pub const ctlFirst: u32 = 1024; -pub const ctlLast: u32 = 1279; -pub const psh1: u32 = 1024; -pub const psh2: u32 = 1025; -pub const psh3: u32 = 1026; -pub const psh4: u32 = 1027; -pub const psh5: u32 = 1028; -pub const psh6: u32 = 1029; -pub const psh7: u32 = 1030; -pub const psh8: u32 = 1031; -pub const psh9: u32 = 1032; -pub const psh10: u32 = 1033; -pub const psh11: u32 = 1034; -pub const psh12: u32 = 1035; -pub const psh13: u32 = 1036; -pub const psh14: u32 = 1037; -pub const psh15: u32 = 1038; -pub const pshHelp: u32 = 1038; -pub const psh16: u32 = 1039; -pub const chx1: u32 = 1040; -pub const chx2: u32 = 1041; -pub const chx3: u32 = 1042; -pub const chx4: u32 = 1043; -pub const chx5: u32 = 1044; -pub const chx6: u32 = 1045; -pub const chx7: u32 = 1046; -pub const chx8: u32 = 1047; -pub const chx9: u32 = 1048; -pub const chx10: u32 = 1049; -pub const chx11: u32 = 1050; -pub const chx12: u32 = 1051; -pub const chx13: u32 = 1052; -pub const chx14: u32 = 1053; -pub const chx15: u32 = 1054; -pub const chx16: u32 = 1055; -pub const rad1: u32 = 1056; -pub const rad2: u32 = 1057; -pub const rad3: u32 = 1058; -pub const rad4: u32 = 1059; -pub const rad5: u32 = 1060; -pub const rad6: u32 = 1061; -pub const rad7: u32 = 1062; -pub const rad8: u32 = 1063; -pub const rad9: u32 = 1064; -pub const rad10: u32 = 1065; -pub const rad11: u32 = 1066; -pub const rad12: u32 = 1067; -pub const rad13: u32 = 1068; -pub const rad14: u32 = 1069; -pub const rad15: u32 = 1070; -pub const rad16: u32 = 1071; -pub const grp1: u32 = 1072; -pub const grp2: u32 = 1073; -pub const grp3: u32 = 1074; -pub const grp4: u32 = 1075; -pub const frm1: u32 = 1076; -pub const frm2: u32 = 1077; -pub const frm3: u32 = 1078; -pub const frm4: u32 = 1079; -pub const rct1: u32 = 1080; -pub const rct2: u32 = 1081; -pub const rct3: u32 = 1082; -pub const rct4: u32 = 1083; -pub const ico1: u32 = 1084; -pub const ico2: u32 = 1085; -pub const ico3: u32 = 1086; -pub const ico4: u32 = 1087; -pub const stc1: u32 = 1088; -pub const stc2: u32 = 1089; -pub const stc3: u32 = 1090; -pub const stc4: u32 = 1091; -pub const stc5: u32 = 1092; -pub const stc6: u32 = 1093; -pub const stc7: u32 = 1094; -pub const stc8: u32 = 1095; -pub const stc9: u32 = 1096; -pub const stc10: u32 = 1097; -pub const stc11: u32 = 1098; -pub const stc12: u32 = 1099; -pub const stc13: u32 = 1100; -pub const stc14: u32 = 1101; -pub const stc15: u32 = 1102; -pub const stc16: u32 = 1103; -pub const stc17: u32 = 1104; -pub const stc18: u32 = 1105; -pub const stc19: u32 = 1106; -pub const stc20: u32 = 1107; -pub const stc21: u32 = 1108; -pub const stc22: u32 = 1109; -pub const stc23: u32 = 1110; -pub const stc24: u32 = 1111; -pub const stc25: u32 = 1112; -pub const stc26: u32 = 1113; -pub const stc27: u32 = 1114; -pub const stc28: u32 = 1115; -pub const stc29: u32 = 1116; -pub const stc30: u32 = 1117; -pub const stc31: u32 = 1118; -pub const stc32: u32 = 1119; -pub const lst1: u32 = 1120; -pub const lst2: u32 = 1121; -pub const lst3: u32 = 1122; -pub const lst4: u32 = 1123; -pub const lst5: u32 = 1124; -pub const lst6: u32 = 1125; -pub const lst7: u32 = 1126; -pub const lst8: u32 = 1127; -pub const lst9: u32 = 1128; -pub const lst10: u32 = 1129; -pub const lst11: u32 = 1130; -pub const lst12: u32 = 1131; -pub const lst13: u32 = 1132; -pub const lst14: u32 = 1133; -pub const lst15: u32 = 1134; -pub const lst16: u32 = 1135; -pub const cmb1: u32 = 1136; -pub const cmb2: u32 = 1137; -pub const cmb3: u32 = 1138; -pub const cmb4: u32 = 1139; -pub const cmb5: u32 = 1140; -pub const cmb6: u32 = 1141; -pub const cmb7: u32 = 1142; -pub const cmb8: u32 = 1143; -pub const cmb9: u32 = 1144; -pub const cmb10: u32 = 1145; -pub const cmb11: u32 = 1146; -pub const cmb12: u32 = 1147; -pub const cmb13: u32 = 1148; -pub const cmb14: u32 = 1149; -pub const cmb15: u32 = 1150; -pub const cmb16: u32 = 1151; -pub const edt1: u32 = 1152; -pub const edt2: u32 = 1153; -pub const edt3: u32 = 1154; -pub const edt4: u32 = 1155; -pub const edt5: u32 = 1156; -pub const edt6: u32 = 1157; -pub const edt7: u32 = 1158; -pub const edt8: u32 = 1159; -pub const edt9: u32 = 1160; -pub const edt10: u32 = 1161; -pub const edt11: u32 = 1162; -pub const edt12: u32 = 1163; -pub const edt13: u32 = 1164; -pub const edt14: u32 = 1165; -pub const edt15: u32 = 1166; -pub const edt16: u32 = 1167; -pub const scr1: u32 = 1168; -pub const scr2: u32 = 1169; -pub const scr3: u32 = 1170; -pub const scr4: u32 = 1171; -pub const scr5: u32 = 1172; -pub const scr6: u32 = 1173; -pub const scr7: u32 = 1174; -pub const scr8: u32 = 1175; -pub const ctl1: u32 = 1184; -pub const FILEOPENORD: u32 = 1536; -pub const MULTIFILEOPENORD: u32 = 1537; -pub const PRINTDLGORD: u32 = 1538; -pub const PRNSETUPDLGORD: u32 = 1539; -pub const FINDDLGORD: u32 = 1540; -pub const REPLACEDLGORD: u32 = 1541; -pub const FONTDLGORD: u32 = 1542; -pub const FORMATDLGORD31: u32 = 1543; -pub const FORMATDLGORD30: u32 = 1544; -pub const RUNDLGORD: u32 = 1545; -pub const PAGESETUPDLGORD: u32 = 1546; -pub const NEWFILEOPENORD: u32 = 1547; -pub const PRINTDLGEXORD: u32 = 1549; -pub const PAGESETUPDLGORDMOTIF: u32 = 1550; -pub const COLORMGMTDLGORD: u32 = 1551; -pub const NEWFILEOPENV2ORD: u32 = 1552; -pub const NEWFILEOPENV3ORD: u32 = 1553; -pub const NEWFORMATDLGWITHLINK: u32 = 1591; -pub const IDC_MANAGE_LINK: u32 = 1592; -pub const LZERROR_BADINHANDLE: i32 = -1; -pub const LZERROR_BADOUTHANDLE: i32 = -2; -pub const LZERROR_READ: i32 = -3; -pub const LZERROR_WRITE: i32 = -4; -pub const LZERROR_GLOBALLOC: i32 = -5; -pub const LZERROR_GLOBLOCK: i32 = -6; -pub const LZERROR_BADVALUE: i32 = -7; -pub const LZERROR_UNKNOWNALG: i32 = -8; -pub const MAXPNAMELEN: u32 = 32; -pub const MAXERRORLENGTH: u32 = 256; -pub const MAX_JOYSTICKOEMVXDNAME: u32 = 260; -pub const TIME_MS: u32 = 1; -pub const TIME_SAMPLES: u32 = 2; -pub const TIME_BYTES: u32 = 4; -pub const TIME_SMPTE: u32 = 8; -pub const TIME_MIDI: u32 = 16; -pub const TIME_TICKS: u32 = 32; -pub const MM_JOY1MOVE: u32 = 928; -pub const MM_JOY2MOVE: u32 = 929; -pub const MM_JOY1ZMOVE: u32 = 930; -pub const MM_JOY2ZMOVE: u32 = 931; -pub const MM_JOY1BUTTONDOWN: u32 = 949; -pub const MM_JOY2BUTTONDOWN: u32 = 950; -pub const MM_JOY1BUTTONUP: u32 = 951; -pub const MM_JOY2BUTTONUP: u32 = 952; -pub const MM_MCINOTIFY: u32 = 953; -pub const MM_WOM_OPEN: u32 = 955; -pub const MM_WOM_CLOSE: u32 = 956; -pub const MM_WOM_DONE: u32 = 957; -pub const MM_WIM_OPEN: u32 = 958; -pub const MM_WIM_CLOSE: u32 = 959; -pub const MM_WIM_DATA: u32 = 960; -pub const MM_MIM_OPEN: u32 = 961; -pub const MM_MIM_CLOSE: u32 = 962; -pub const MM_MIM_DATA: u32 = 963; -pub const MM_MIM_LONGDATA: u32 = 964; -pub const MM_MIM_ERROR: u32 = 965; -pub const MM_MIM_LONGERROR: u32 = 966; -pub const MM_MOM_OPEN: u32 = 967; -pub const MM_MOM_CLOSE: u32 = 968; -pub const MM_MOM_DONE: u32 = 969; -pub const MM_DRVM_OPEN: u32 = 976; -pub const MM_DRVM_CLOSE: u32 = 977; -pub const MM_DRVM_DATA: u32 = 978; -pub const MM_DRVM_ERROR: u32 = 979; -pub const MM_STREAM_OPEN: u32 = 980; -pub const MM_STREAM_CLOSE: u32 = 981; -pub const MM_STREAM_DONE: u32 = 982; -pub const MM_STREAM_ERROR: u32 = 983; -pub const MM_MOM_POSITIONCB: u32 = 970; -pub const MM_MCISIGNAL: u32 = 971; -pub const MM_MIM_MOREDATA: u32 = 972; -pub const MM_MIXM_LINE_CHANGE: u32 = 976; -pub const MM_MIXM_CONTROL_CHANGE: u32 = 977; -pub const MMSYSERR_BASE: u32 = 0; -pub const WAVERR_BASE: u32 = 32; -pub const MIDIERR_BASE: u32 = 64; -pub const TIMERR_BASE: u32 = 96; -pub const JOYERR_BASE: u32 = 160; -pub const MCIERR_BASE: u32 = 256; -pub const MIXERR_BASE: u32 = 1024; -pub const MCI_STRING_OFFSET: u32 = 512; -pub const MCI_VD_OFFSET: u32 = 1024; -pub const MCI_CD_OFFSET: u32 = 1088; -pub const MCI_WAVE_OFFSET: u32 = 1152; -pub const MCI_SEQ_OFFSET: u32 = 1216; -pub const MMSYSERR_NOERROR: u32 = 0; -pub const MMSYSERR_ERROR: u32 = 1; -pub const MMSYSERR_BADDEVICEID: u32 = 2; -pub const MMSYSERR_NOTENABLED: u32 = 3; -pub const MMSYSERR_ALLOCATED: u32 = 4; -pub const MMSYSERR_INVALHANDLE: u32 = 5; -pub const MMSYSERR_NODRIVER: u32 = 6; -pub const MMSYSERR_NOMEM: u32 = 7; -pub const MMSYSERR_NOTSUPPORTED: u32 = 8; -pub const MMSYSERR_BADERRNUM: u32 = 9; -pub const MMSYSERR_INVALFLAG: u32 = 10; -pub const MMSYSERR_INVALPARAM: u32 = 11; -pub const MMSYSERR_HANDLEBUSY: u32 = 12; -pub const MMSYSERR_INVALIDALIAS: u32 = 13; -pub const MMSYSERR_BADDB: u32 = 14; -pub const MMSYSERR_KEYNOTFOUND: u32 = 15; -pub const MMSYSERR_READERROR: u32 = 16; -pub const MMSYSERR_WRITEERROR: u32 = 17; -pub const MMSYSERR_DELETEERROR: u32 = 18; -pub const MMSYSERR_VALNOTFOUND: u32 = 19; -pub const MMSYSERR_NODRIVERCB: u32 = 20; -pub const MMSYSERR_MOREDATA: u32 = 21; -pub const MMSYSERR_LASTERROR: u32 = 21; -pub const CALLBACK_TYPEMASK: u32 = 458752; -pub const CALLBACK_NULL: u32 = 0; -pub const CALLBACK_WINDOW: u32 = 65536; -pub const CALLBACK_TASK: u32 = 131072; -pub const CALLBACK_FUNCTION: u32 = 196608; -pub const CALLBACK_THREAD: u32 = 131072; -pub const CALLBACK_EVENT: u32 = 327680; -pub const MCIERR_INVALID_DEVICE_ID: u32 = 257; -pub const MCIERR_UNRECOGNIZED_KEYWORD: u32 = 259; -pub const MCIERR_UNRECOGNIZED_COMMAND: u32 = 261; -pub const MCIERR_HARDWARE: u32 = 262; -pub const MCIERR_INVALID_DEVICE_NAME: u32 = 263; -pub const MCIERR_OUT_OF_MEMORY: u32 = 264; -pub const MCIERR_DEVICE_OPEN: u32 = 265; -pub const MCIERR_CANNOT_LOAD_DRIVER: u32 = 266; -pub const MCIERR_MISSING_COMMAND_STRING: u32 = 267; -pub const MCIERR_PARAM_OVERFLOW: u32 = 268; -pub const MCIERR_MISSING_STRING_ARGUMENT: u32 = 269; -pub const MCIERR_BAD_INTEGER: u32 = 270; -pub const MCIERR_PARSER_INTERNAL: u32 = 271; -pub const MCIERR_DRIVER_INTERNAL: u32 = 272; -pub const MCIERR_MISSING_PARAMETER: u32 = 273; -pub const MCIERR_UNSUPPORTED_FUNCTION: u32 = 274; -pub const MCIERR_FILE_NOT_FOUND: u32 = 275; -pub const MCIERR_DEVICE_NOT_READY: u32 = 276; -pub const MCIERR_INTERNAL: u32 = 277; -pub const MCIERR_DRIVER: u32 = 278; -pub const MCIERR_CANNOT_USE_ALL: u32 = 279; -pub const MCIERR_MULTIPLE: u32 = 280; -pub const MCIERR_EXTENSION_NOT_FOUND: u32 = 281; -pub const MCIERR_OUTOFRANGE: u32 = 282; -pub const MCIERR_FLAGS_NOT_COMPATIBLE: u32 = 284; -pub const MCIERR_FILE_NOT_SAVED: u32 = 286; -pub const MCIERR_DEVICE_TYPE_REQUIRED: u32 = 287; -pub const MCIERR_DEVICE_LOCKED: u32 = 288; -pub const MCIERR_DUPLICATE_ALIAS: u32 = 289; -pub const MCIERR_BAD_CONSTANT: u32 = 290; -pub const MCIERR_MUST_USE_SHAREABLE: u32 = 291; -pub const MCIERR_MISSING_DEVICE_NAME: u32 = 292; -pub const MCIERR_BAD_TIME_FORMAT: u32 = 293; -pub const MCIERR_NO_CLOSING_QUOTE: u32 = 294; -pub const MCIERR_DUPLICATE_FLAGS: u32 = 295; -pub const MCIERR_INVALID_FILE: u32 = 296; -pub const MCIERR_NULL_PARAMETER_BLOCK: u32 = 297; -pub const MCIERR_UNNAMED_RESOURCE: u32 = 298; -pub const MCIERR_NEW_REQUIRES_ALIAS: u32 = 299; -pub const MCIERR_NOTIFY_ON_AUTO_OPEN: u32 = 300; -pub const MCIERR_NO_ELEMENT_ALLOWED: u32 = 301; -pub const MCIERR_NONAPPLICABLE_FUNCTION: u32 = 302; -pub const MCIERR_ILLEGAL_FOR_AUTO_OPEN: u32 = 303; -pub const MCIERR_FILENAME_REQUIRED: u32 = 304; -pub const MCIERR_EXTRA_CHARACTERS: u32 = 305; -pub const MCIERR_DEVICE_NOT_INSTALLED: u32 = 306; -pub const MCIERR_GET_CD: u32 = 307; -pub const MCIERR_SET_CD: u32 = 308; -pub const MCIERR_SET_DRIVE: u32 = 309; -pub const MCIERR_DEVICE_LENGTH: u32 = 310; -pub const MCIERR_DEVICE_ORD_LENGTH: u32 = 311; -pub const MCIERR_NO_INTEGER: u32 = 312; -pub const MCIERR_WAVE_OUTPUTSINUSE: u32 = 320; -pub const MCIERR_WAVE_SETOUTPUTINUSE: u32 = 321; -pub const MCIERR_WAVE_INPUTSINUSE: u32 = 322; -pub const MCIERR_WAVE_SETINPUTINUSE: u32 = 323; -pub const MCIERR_WAVE_OUTPUTUNSPECIFIED: u32 = 324; -pub const MCIERR_WAVE_INPUTUNSPECIFIED: u32 = 325; -pub const MCIERR_WAVE_OUTPUTSUNSUITABLE: u32 = 326; -pub const MCIERR_WAVE_SETOUTPUTUNSUITABLE: u32 = 327; -pub const MCIERR_WAVE_INPUTSUNSUITABLE: u32 = 328; -pub const MCIERR_WAVE_SETINPUTUNSUITABLE: u32 = 329; -pub const MCIERR_SEQ_DIV_INCOMPATIBLE: u32 = 336; -pub const MCIERR_SEQ_PORT_INUSE: u32 = 337; -pub const MCIERR_SEQ_PORT_NONEXISTENT: u32 = 338; -pub const MCIERR_SEQ_PORT_MAPNODEVICE: u32 = 339; -pub const MCIERR_SEQ_PORT_MISCERROR: u32 = 340; -pub const MCIERR_SEQ_TIMER: u32 = 341; -pub const MCIERR_SEQ_PORTUNSPECIFIED: u32 = 342; -pub const MCIERR_SEQ_NOMIDIPRESENT: u32 = 343; -pub const MCIERR_NO_WINDOW: u32 = 346; -pub const MCIERR_CREATEWINDOW: u32 = 347; -pub const MCIERR_FILE_READ: u32 = 348; -pub const MCIERR_FILE_WRITE: u32 = 349; -pub const MCIERR_NO_IDENTITY: u32 = 350; -pub const MCIERR_CUSTOM_DRIVER_BASE: u32 = 512; -pub const MCI_OPEN: u32 = 2051; -pub const MCI_CLOSE: u32 = 2052; -pub const MCI_ESCAPE: u32 = 2053; -pub const MCI_PLAY: u32 = 2054; -pub const MCI_SEEK: u32 = 2055; -pub const MCI_STOP: u32 = 2056; -pub const MCI_PAUSE: u32 = 2057; -pub const MCI_INFO: u32 = 2058; -pub const MCI_GETDEVCAPS: u32 = 2059; -pub const MCI_SPIN: u32 = 2060; -pub const MCI_SET: u32 = 2061; -pub const MCI_STEP: u32 = 2062; -pub const MCI_RECORD: u32 = 2063; -pub const MCI_SYSINFO: u32 = 2064; -pub const MCI_BREAK: u32 = 2065; -pub const MCI_SAVE: u32 = 2067; -pub const MCI_STATUS: u32 = 2068; -pub const MCI_CUE: u32 = 2096; -pub const MCI_REALIZE: u32 = 2112; -pub const MCI_WINDOW: u32 = 2113; -pub const MCI_PUT: u32 = 2114; -pub const MCI_WHERE: u32 = 2115; -pub const MCI_FREEZE: u32 = 2116; -pub const MCI_UNFREEZE: u32 = 2117; -pub const MCI_LOAD: u32 = 2128; -pub const MCI_CUT: u32 = 2129; -pub const MCI_COPY: u32 = 2130; -pub const MCI_PASTE: u32 = 2131; -pub const MCI_UPDATE: u32 = 2132; -pub const MCI_RESUME: u32 = 2133; -pub const MCI_DELETE: u32 = 2134; -pub const MCI_LAST: u32 = 4095; -pub const MCI_DEVTYPE_VCR: u32 = 513; -pub const MCI_DEVTYPE_VIDEODISC: u32 = 514; -pub const MCI_DEVTYPE_OVERLAY: u32 = 515; -pub const MCI_DEVTYPE_CD_AUDIO: u32 = 516; -pub const MCI_DEVTYPE_DAT: u32 = 517; -pub const MCI_DEVTYPE_SCANNER: u32 = 518; -pub const MCI_DEVTYPE_ANIMATION: u32 = 519; -pub const MCI_DEVTYPE_DIGITAL_VIDEO: u32 = 520; -pub const MCI_DEVTYPE_OTHER: u32 = 521; -pub const MCI_DEVTYPE_WAVEFORM_AUDIO: u32 = 522; -pub const MCI_DEVTYPE_SEQUENCER: u32 = 523; -pub const MCI_DEVTYPE_FIRST: u32 = 513; -pub const MCI_DEVTYPE_LAST: u32 = 523; -pub const MCI_DEVTYPE_FIRST_USER: u32 = 4096; -pub const MCI_MODE_NOT_READY: u32 = 524; -pub const MCI_MODE_STOP: u32 = 525; -pub const MCI_MODE_PLAY: u32 = 526; -pub const MCI_MODE_RECORD: u32 = 527; -pub const MCI_MODE_SEEK: u32 = 528; -pub const MCI_MODE_PAUSE: u32 = 529; -pub const MCI_MODE_OPEN: u32 = 530; -pub const MCI_FORMAT_MILLISECONDS: u32 = 0; -pub const MCI_FORMAT_HMS: u32 = 1; -pub const MCI_FORMAT_MSF: u32 = 2; -pub const MCI_FORMAT_FRAMES: u32 = 3; -pub const MCI_FORMAT_SMPTE_24: u32 = 4; -pub const MCI_FORMAT_SMPTE_25: u32 = 5; -pub const MCI_FORMAT_SMPTE_30: u32 = 6; -pub const MCI_FORMAT_SMPTE_30DROP: u32 = 7; -pub const MCI_FORMAT_BYTES: u32 = 8; -pub const MCI_FORMAT_SAMPLES: u32 = 9; -pub const MCI_FORMAT_TMSF: u32 = 10; -pub const MCI_NOTIFY_SUCCESSFUL: u32 = 1; -pub const MCI_NOTIFY_SUPERSEDED: u32 = 2; -pub const MCI_NOTIFY_ABORTED: u32 = 4; -pub const MCI_NOTIFY_FAILURE: u32 = 8; -pub const MCI_NOTIFY: u32 = 1; -pub const MCI_WAIT: u32 = 2; -pub const MCI_FROM: u32 = 4; -pub const MCI_TO: u32 = 8; -pub const MCI_TRACK: u32 = 16; -pub const MCI_OPEN_SHAREABLE: u32 = 256; -pub const MCI_OPEN_ELEMENT: u32 = 512; -pub const MCI_OPEN_ALIAS: u32 = 1024; -pub const MCI_OPEN_ELEMENT_ID: u32 = 2048; -pub const MCI_OPEN_TYPE_ID: u32 = 4096; -pub const MCI_OPEN_TYPE: u32 = 8192; -pub const MCI_SEEK_TO_START: u32 = 256; -pub const MCI_SEEK_TO_END: u32 = 512; -pub const MCI_STATUS_ITEM: u32 = 256; -pub const MCI_STATUS_START: u32 = 512; -pub const MCI_STATUS_LENGTH: u32 = 1; -pub const MCI_STATUS_POSITION: u32 = 2; -pub const MCI_STATUS_NUMBER_OF_TRACKS: u32 = 3; -pub const MCI_STATUS_MODE: u32 = 4; -pub const MCI_STATUS_MEDIA_PRESENT: u32 = 5; -pub const MCI_STATUS_TIME_FORMAT: u32 = 6; -pub const MCI_STATUS_READY: u32 = 7; -pub const MCI_STATUS_CURRENT_TRACK: u32 = 8; -pub const MCI_INFO_PRODUCT: u32 = 256; -pub const MCI_INFO_FILE: u32 = 512; -pub const MCI_INFO_MEDIA_UPC: u32 = 1024; -pub const MCI_INFO_MEDIA_IDENTITY: u32 = 2048; -pub const MCI_INFO_NAME: u32 = 4096; -pub const MCI_INFO_COPYRIGHT: u32 = 8192; -pub const MCI_GETDEVCAPS_ITEM: u32 = 256; -pub const MCI_GETDEVCAPS_CAN_RECORD: u32 = 1; -pub const MCI_GETDEVCAPS_HAS_AUDIO: u32 = 2; -pub const MCI_GETDEVCAPS_HAS_VIDEO: u32 = 3; -pub const MCI_GETDEVCAPS_DEVICE_TYPE: u32 = 4; -pub const MCI_GETDEVCAPS_USES_FILES: u32 = 5; -pub const MCI_GETDEVCAPS_COMPOUND_DEVICE: u32 = 6; -pub const MCI_GETDEVCAPS_CAN_EJECT: u32 = 7; -pub const MCI_GETDEVCAPS_CAN_PLAY: u32 = 8; -pub const MCI_GETDEVCAPS_CAN_SAVE: u32 = 9; -pub const MCI_SYSINFO_QUANTITY: u32 = 256; -pub const MCI_SYSINFO_OPEN: u32 = 512; -pub const MCI_SYSINFO_NAME: u32 = 1024; -pub const MCI_SYSINFO_INSTALLNAME: u32 = 2048; -pub const MCI_SET_DOOR_OPEN: u32 = 256; -pub const MCI_SET_DOOR_CLOSED: u32 = 512; -pub const MCI_SET_TIME_FORMAT: u32 = 1024; -pub const MCI_SET_AUDIO: u32 = 2048; -pub const MCI_SET_VIDEO: u32 = 4096; -pub const MCI_SET_ON: u32 = 8192; -pub const MCI_SET_OFF: u32 = 16384; -pub const MCI_SET_AUDIO_ALL: u32 = 0; -pub const MCI_SET_AUDIO_LEFT: u32 = 1; -pub const MCI_SET_AUDIO_RIGHT: u32 = 2; -pub const MCI_BREAK_KEY: u32 = 256; -pub const MCI_BREAK_HWND: u32 = 512; -pub const MCI_BREAK_OFF: u32 = 1024; -pub const MCI_RECORD_INSERT: u32 = 256; -pub const MCI_RECORD_OVERWRITE: u32 = 512; -pub const MCI_SAVE_FILE: u32 = 256; -pub const MCI_LOAD_FILE: u32 = 256; -pub const MCI_VD_MODE_PARK: u32 = 1025; -pub const MCI_VD_MEDIA_CLV: u32 = 1026; -pub const MCI_VD_MEDIA_CAV: u32 = 1027; -pub const MCI_VD_MEDIA_OTHER: u32 = 1028; -pub const MCI_VD_FORMAT_TRACK: u32 = 16385; -pub const MCI_VD_PLAY_REVERSE: u32 = 65536; -pub const MCI_VD_PLAY_FAST: u32 = 131072; -pub const MCI_VD_PLAY_SPEED: u32 = 262144; -pub const MCI_VD_PLAY_SCAN: u32 = 524288; -pub const MCI_VD_PLAY_SLOW: u32 = 1048576; -pub const MCI_VD_SEEK_REVERSE: u32 = 65536; -pub const MCI_VD_STATUS_SPEED: u32 = 16386; -pub const MCI_VD_STATUS_FORWARD: u32 = 16387; -pub const MCI_VD_STATUS_MEDIA_TYPE: u32 = 16388; -pub const MCI_VD_STATUS_SIDE: u32 = 16389; -pub const MCI_VD_STATUS_DISC_SIZE: u32 = 16390; -pub const MCI_VD_GETDEVCAPS_CLV: u32 = 65536; -pub const MCI_VD_GETDEVCAPS_CAV: u32 = 131072; -pub const MCI_VD_SPIN_UP: u32 = 65536; -pub const MCI_VD_SPIN_DOWN: u32 = 131072; -pub const MCI_VD_GETDEVCAPS_CAN_REVERSE: u32 = 16386; -pub const MCI_VD_GETDEVCAPS_FAST_RATE: u32 = 16387; -pub const MCI_VD_GETDEVCAPS_SLOW_RATE: u32 = 16388; -pub const MCI_VD_GETDEVCAPS_NORMAL_RATE: u32 = 16389; -pub const MCI_VD_STEP_FRAMES: u32 = 65536; -pub const MCI_VD_STEP_REVERSE: u32 = 131072; -pub const MCI_VD_ESCAPE_STRING: u32 = 256; -pub const MCI_CDA_STATUS_TYPE_TRACK: u32 = 16385; -pub const MCI_CDA_TRACK_AUDIO: u32 = 1088; -pub const MCI_CDA_TRACK_OTHER: u32 = 1089; -pub const MCI_WAVE_PCM: u32 = 1152; -pub const MCI_WAVE_MAPPER: u32 = 1153; -pub const MCI_WAVE_OPEN_BUFFER: u32 = 65536; -pub const MCI_WAVE_SET_FORMATTAG: u32 = 65536; -pub const MCI_WAVE_SET_CHANNELS: u32 = 131072; -pub const MCI_WAVE_SET_SAMPLESPERSEC: u32 = 262144; -pub const MCI_WAVE_SET_AVGBYTESPERSEC: u32 = 524288; -pub const MCI_WAVE_SET_BLOCKALIGN: u32 = 1048576; -pub const MCI_WAVE_SET_BITSPERSAMPLE: u32 = 2097152; -pub const MCI_WAVE_INPUT: u32 = 4194304; -pub const MCI_WAVE_OUTPUT: u32 = 8388608; -pub const MCI_WAVE_STATUS_FORMATTAG: u32 = 16385; -pub const MCI_WAVE_STATUS_CHANNELS: u32 = 16386; -pub const MCI_WAVE_STATUS_SAMPLESPERSEC: u32 = 16387; -pub const MCI_WAVE_STATUS_AVGBYTESPERSEC: u32 = 16388; -pub const MCI_WAVE_STATUS_BLOCKALIGN: u32 = 16389; -pub const MCI_WAVE_STATUS_BITSPERSAMPLE: u32 = 16390; -pub const MCI_WAVE_STATUS_LEVEL: u32 = 16391; -pub const MCI_WAVE_SET_ANYINPUT: u32 = 67108864; -pub const MCI_WAVE_SET_ANYOUTPUT: u32 = 134217728; -pub const MCI_WAVE_GETDEVCAPS_INPUTS: u32 = 16385; -pub const MCI_WAVE_GETDEVCAPS_OUTPUTS: u32 = 16386; -pub const MCI_SEQ_DIV_PPQN: u32 = 1216; -pub const MCI_SEQ_DIV_SMPTE_24: u32 = 1217; -pub const MCI_SEQ_DIV_SMPTE_25: u32 = 1218; -pub const MCI_SEQ_DIV_SMPTE_30DROP: u32 = 1219; -pub const MCI_SEQ_DIV_SMPTE_30: u32 = 1220; -pub const MCI_SEQ_FORMAT_SONGPTR: u32 = 16385; -pub const MCI_SEQ_FILE: u32 = 16386; -pub const MCI_SEQ_MIDI: u32 = 16387; -pub const MCI_SEQ_SMPTE: u32 = 16388; -pub const MCI_SEQ_NONE: u32 = 65533; -pub const MCI_SEQ_MAPPER: u32 = 65535; -pub const MCI_SEQ_STATUS_TEMPO: u32 = 16386; -pub const MCI_SEQ_STATUS_PORT: u32 = 16387; -pub const MCI_SEQ_STATUS_SLAVE: u32 = 16391; -pub const MCI_SEQ_STATUS_MASTER: u32 = 16392; -pub const MCI_SEQ_STATUS_OFFSET: u32 = 16393; -pub const MCI_SEQ_STATUS_DIVTYPE: u32 = 16394; -pub const MCI_SEQ_STATUS_NAME: u32 = 16395; -pub const MCI_SEQ_STATUS_COPYRIGHT: u32 = 16396; -pub const MCI_SEQ_SET_TEMPO: u32 = 65536; -pub const MCI_SEQ_SET_PORT: u32 = 131072; -pub const MCI_SEQ_SET_SLAVE: u32 = 262144; -pub const MCI_SEQ_SET_MASTER: u32 = 524288; -pub const MCI_SEQ_SET_OFFSET: u32 = 16777216; -pub const MCI_ANIM_OPEN_WS: u32 = 65536; -pub const MCI_ANIM_OPEN_PARENT: u32 = 131072; -pub const MCI_ANIM_OPEN_NOSTATIC: u32 = 262144; -pub const MCI_ANIM_PLAY_SPEED: u32 = 65536; -pub const MCI_ANIM_PLAY_REVERSE: u32 = 131072; -pub const MCI_ANIM_PLAY_FAST: u32 = 262144; -pub const MCI_ANIM_PLAY_SLOW: u32 = 524288; -pub const MCI_ANIM_PLAY_SCAN: u32 = 1048576; -pub const MCI_ANIM_STEP_REVERSE: u32 = 65536; -pub const MCI_ANIM_STEP_FRAMES: u32 = 131072; -pub const MCI_ANIM_STATUS_SPEED: u32 = 16385; -pub const MCI_ANIM_STATUS_FORWARD: u32 = 16386; -pub const MCI_ANIM_STATUS_HWND: u32 = 16387; -pub const MCI_ANIM_STATUS_HPAL: u32 = 16388; -pub const MCI_ANIM_STATUS_STRETCH: u32 = 16389; -pub const MCI_ANIM_INFO_TEXT: u32 = 65536; -pub const MCI_ANIM_GETDEVCAPS_CAN_REVERSE: u32 = 16385; -pub const MCI_ANIM_GETDEVCAPS_FAST_RATE: u32 = 16386; -pub const MCI_ANIM_GETDEVCAPS_SLOW_RATE: u32 = 16387; -pub const MCI_ANIM_GETDEVCAPS_NORMAL_RATE: u32 = 16388; -pub const MCI_ANIM_GETDEVCAPS_PALETTES: u32 = 16390; -pub const MCI_ANIM_GETDEVCAPS_CAN_STRETCH: u32 = 16391; -pub const MCI_ANIM_GETDEVCAPS_MAX_WINDOWS: u32 = 16392; -pub const MCI_ANIM_REALIZE_NORM: u32 = 65536; -pub const MCI_ANIM_REALIZE_BKGD: u32 = 131072; -pub const MCI_ANIM_WINDOW_HWND: u32 = 65536; -pub const MCI_ANIM_WINDOW_STATE: u32 = 262144; -pub const MCI_ANIM_WINDOW_TEXT: u32 = 524288; -pub const MCI_ANIM_WINDOW_ENABLE_STRETCH: u32 = 1048576; -pub const MCI_ANIM_WINDOW_DISABLE_STRETCH: u32 = 2097152; -pub const MCI_ANIM_WINDOW_DEFAULT: u32 = 0; -pub const MCI_ANIM_RECT: u32 = 65536; -pub const MCI_ANIM_PUT_SOURCE: u32 = 131072; -pub const MCI_ANIM_PUT_DESTINATION: u32 = 262144; -pub const MCI_ANIM_WHERE_SOURCE: u32 = 131072; -pub const MCI_ANIM_WHERE_DESTINATION: u32 = 262144; -pub const MCI_ANIM_UPDATE_HDC: u32 = 131072; -pub const MCI_OVLY_OPEN_WS: u32 = 65536; -pub const MCI_OVLY_OPEN_PARENT: u32 = 131072; -pub const MCI_OVLY_STATUS_HWND: u32 = 16385; -pub const MCI_OVLY_STATUS_STRETCH: u32 = 16386; -pub const MCI_OVLY_INFO_TEXT: u32 = 65536; -pub const MCI_OVLY_GETDEVCAPS_CAN_STRETCH: u32 = 16385; -pub const MCI_OVLY_GETDEVCAPS_CAN_FREEZE: u32 = 16386; -pub const MCI_OVLY_GETDEVCAPS_MAX_WINDOWS: u32 = 16387; -pub const MCI_OVLY_WINDOW_HWND: u32 = 65536; -pub const MCI_OVLY_WINDOW_STATE: u32 = 262144; -pub const MCI_OVLY_WINDOW_TEXT: u32 = 524288; -pub const MCI_OVLY_WINDOW_ENABLE_STRETCH: u32 = 1048576; -pub const MCI_OVLY_WINDOW_DISABLE_STRETCH: u32 = 2097152; -pub const MCI_OVLY_WINDOW_DEFAULT: u32 = 0; -pub const MCI_OVLY_RECT: u32 = 65536; -pub const MCI_OVLY_PUT_SOURCE: u32 = 131072; -pub const MCI_OVLY_PUT_DESTINATION: u32 = 262144; -pub const MCI_OVLY_PUT_FRAME: u32 = 524288; -pub const MCI_OVLY_PUT_VIDEO: u32 = 1048576; -pub const MCI_OVLY_WHERE_SOURCE: u32 = 131072; -pub const MCI_OVLY_WHERE_DESTINATION: u32 = 262144; -pub const MCI_OVLY_WHERE_FRAME: u32 = 524288; -pub const MCI_OVLY_WHERE_VIDEO: u32 = 1048576; -pub const DRV_LOAD: u32 = 1; -pub const DRV_ENABLE: u32 = 2; -pub const DRV_OPEN: u32 = 3; -pub const DRV_CLOSE: u32 = 4; -pub const DRV_DISABLE: u32 = 5; -pub const DRV_FREE: u32 = 6; -pub const DRV_CONFIGURE: u32 = 7; -pub const DRV_QUERYCONFIGURE: u32 = 8; -pub const DRV_INSTALL: u32 = 9; -pub const DRV_REMOVE: u32 = 10; -pub const DRV_EXITSESSION: u32 = 11; -pub const DRV_POWER: u32 = 15; -pub const DRV_RESERVED: u32 = 2048; -pub const DRV_USER: u32 = 16384; -pub const DRVCNF_CANCEL: u32 = 0; -pub const DRVCNF_OK: u32 = 1; -pub const DRVCNF_RESTART: u32 = 2; -pub const DRV_CANCEL: u32 = 0; -pub const DRV_OK: u32 = 1; -pub const DRV_RESTART: u32 = 2; -pub const DRV_MCI_FIRST: u32 = 2048; -pub const DRV_MCI_LAST: u32 = 6143; -pub const MMIOERR_BASE: u32 = 256; -pub const MMIOERR_FILENOTFOUND: u32 = 257; -pub const MMIOERR_OUTOFMEMORY: u32 = 258; -pub const MMIOERR_CANNOTOPEN: u32 = 259; -pub const MMIOERR_CANNOTCLOSE: u32 = 260; -pub const MMIOERR_CANNOTREAD: u32 = 261; -pub const MMIOERR_CANNOTWRITE: u32 = 262; -pub const MMIOERR_CANNOTSEEK: u32 = 263; -pub const MMIOERR_CANNOTEXPAND: u32 = 264; -pub const MMIOERR_CHUNKNOTFOUND: u32 = 265; -pub const MMIOERR_UNBUFFERED: u32 = 266; -pub const MMIOERR_PATHNOTFOUND: u32 = 267; -pub const MMIOERR_ACCESSDENIED: u32 = 268; -pub const MMIOERR_SHARINGVIOLATION: u32 = 269; -pub const MMIOERR_NETWORKERROR: u32 = 270; -pub const MMIOERR_TOOMANYOPENFILES: u32 = 271; -pub const MMIOERR_INVALIDFILE: u32 = 272; -pub const CFSEPCHAR: u8 = 43u8; -pub const MMIO_RWMODE: u32 = 3; -pub const MMIO_SHAREMODE: u32 = 112; -pub const MMIO_CREATE: u32 = 4096; -pub const MMIO_PARSE: u32 = 256; -pub const MMIO_DELETE: u32 = 512; -pub const MMIO_EXIST: u32 = 16384; -pub const MMIO_ALLOCBUF: u32 = 65536; -pub const MMIO_GETTEMP: u32 = 131072; -pub const MMIO_DIRTY: u32 = 268435456; -pub const MMIO_READ: u32 = 0; -pub const MMIO_WRITE: u32 = 1; -pub const MMIO_READWRITE: u32 = 2; -pub const MMIO_COMPAT: u32 = 0; -pub const MMIO_EXCLUSIVE: u32 = 16; -pub const MMIO_DENYWRITE: u32 = 32; -pub const MMIO_DENYREAD: u32 = 48; -pub const MMIO_DENYNONE: u32 = 64; -pub const MMIO_FHOPEN: u32 = 16; -pub const MMIO_EMPTYBUF: u32 = 16; -pub const MMIO_TOUPPER: u32 = 16; -pub const MMIO_INSTALLPROC: u32 = 65536; -pub const MMIO_GLOBALPROC: u32 = 268435456; -pub const MMIO_REMOVEPROC: u32 = 131072; -pub const MMIO_UNICODEPROC: u32 = 16777216; -pub const MMIO_FINDPROC: u32 = 262144; -pub const MMIO_FINDCHUNK: u32 = 16; -pub const MMIO_FINDRIFF: u32 = 32; -pub const MMIO_FINDLIST: u32 = 64; -pub const MMIO_CREATERIFF: u32 = 32; -pub const MMIO_CREATELIST: u32 = 64; -pub const MMIOM_READ: u32 = 0; -pub const MMIOM_WRITE: u32 = 1; -pub const MMIOM_SEEK: u32 = 2; -pub const MMIOM_OPEN: u32 = 3; -pub const MMIOM_CLOSE: u32 = 4; -pub const MMIOM_WRITEFLUSH: u32 = 5; -pub const MMIOM_RENAME: u32 = 6; -pub const MMIOM_USER: u32 = 32768; -pub const SEEK_SET: u32 = 0; -pub const SEEK_CUR: u32 = 1; -pub const SEEK_END: u32 = 2; -pub const MMIO_DEFAULTBUFFER: u32 = 8192; -pub const TIME_ONESHOT: u32 = 0; -pub const TIME_PERIODIC: u32 = 1; -pub const TIME_CALLBACK_FUNCTION: u32 = 0; -pub const TIME_CALLBACK_EVENT_SET: u32 = 16; -pub const TIME_CALLBACK_EVENT_PULSE: u32 = 32; -pub const TIME_KILL_SYNCHRONOUS: u32 = 256; -pub const SND_SYNC: u32 = 0; -pub const SND_ASYNC: u32 = 1; -pub const SND_NODEFAULT: u32 = 2; -pub const SND_MEMORY: u32 = 4; -pub const SND_LOOP: u32 = 8; -pub const SND_NOSTOP: u32 = 16; -pub const SND_NOWAIT: u32 = 8192; -pub const SND_ALIAS: u32 = 65536; -pub const SND_ALIAS_ID: u32 = 1114112; -pub const SND_FILENAME: u32 = 131072; -pub const SND_RESOURCE: u32 = 262148; -pub const SND_PURGE: u32 = 64; -pub const SND_APPLICATION: u32 = 128; -pub const SND_SENTRY: u32 = 524288; -pub const SND_RING: u32 = 1048576; -pub const SND_SYSTEM: u32 = 2097152; -pub const SND_ALIAS_START: u32 = 0; -pub const WAVERR_BADFORMAT: u32 = 32; -pub const WAVERR_STILLPLAYING: u32 = 33; -pub const WAVERR_UNPREPARED: u32 = 34; -pub const WAVERR_SYNC: u32 = 35; -pub const WAVERR_LASTERROR: u32 = 35; -pub const WOM_OPEN: u32 = 955; -pub const WOM_CLOSE: u32 = 956; -pub const WOM_DONE: u32 = 957; -pub const WIM_OPEN: u32 = 958; -pub const WIM_CLOSE: u32 = 959; -pub const WIM_DATA: u32 = 960; -pub const WAVE_FORMAT_QUERY: u32 = 1; -pub const WAVE_ALLOWSYNC: u32 = 2; -pub const WAVE_MAPPED: u32 = 4; -pub const WAVE_FORMAT_DIRECT: u32 = 8; -pub const WAVE_FORMAT_DIRECT_QUERY: u32 = 9; -pub const WAVE_MAPPED_DEFAULT_COMMUNICATION_DEVICE: u32 = 16; -pub const WHDR_DONE: u32 = 1; -pub const WHDR_PREPARED: u32 = 2; -pub const WHDR_BEGINLOOP: u32 = 4; -pub const WHDR_ENDLOOP: u32 = 8; -pub const WHDR_INQUEUE: u32 = 16; -pub const WAVECAPS_PITCH: u32 = 1; -pub const WAVECAPS_PLAYBACKRATE: u32 = 2; -pub const WAVECAPS_VOLUME: u32 = 4; -pub const WAVECAPS_LRVOLUME: u32 = 8; -pub const WAVECAPS_SYNC: u32 = 16; -pub const WAVECAPS_SAMPLEACCURATE: u32 = 32; -pub const WAVE_INVALIDFORMAT: u32 = 0; -pub const WAVE_FORMAT_1M08: u32 = 1; -pub const WAVE_FORMAT_1S08: u32 = 2; -pub const WAVE_FORMAT_1M16: u32 = 4; -pub const WAVE_FORMAT_1S16: u32 = 8; -pub const WAVE_FORMAT_2M08: u32 = 16; -pub const WAVE_FORMAT_2S08: u32 = 32; -pub const WAVE_FORMAT_2M16: u32 = 64; -pub const WAVE_FORMAT_2S16: u32 = 128; -pub const WAVE_FORMAT_4M08: u32 = 256; -pub const WAVE_FORMAT_4S08: u32 = 512; -pub const WAVE_FORMAT_4M16: u32 = 1024; -pub const WAVE_FORMAT_4S16: u32 = 2048; -pub const WAVE_FORMAT_44M08: u32 = 256; -pub const WAVE_FORMAT_44S08: u32 = 512; -pub const WAVE_FORMAT_44M16: u32 = 1024; -pub const WAVE_FORMAT_44S16: u32 = 2048; -pub const WAVE_FORMAT_48M08: u32 = 4096; -pub const WAVE_FORMAT_48S08: u32 = 8192; -pub const WAVE_FORMAT_48M16: u32 = 16384; -pub const WAVE_FORMAT_48S16: u32 = 32768; -pub const WAVE_FORMAT_96M08: u32 = 65536; -pub const WAVE_FORMAT_96S08: u32 = 131072; -pub const WAVE_FORMAT_96M16: u32 = 262144; -pub const WAVE_FORMAT_96S16: u32 = 524288; -pub const WAVE_FORMAT_PCM: u32 = 1; -pub const MIDIERR_UNPREPARED: u32 = 64; -pub const MIDIERR_STILLPLAYING: u32 = 65; -pub const MIDIERR_NOMAP: u32 = 66; -pub const MIDIERR_NOTREADY: u32 = 67; -pub const MIDIERR_NODEVICE: u32 = 68; -pub const MIDIERR_INVALIDSETUP: u32 = 69; -pub const MIDIERR_BADOPENMODE: u32 = 70; -pub const MIDIERR_DONT_CONTINUE: u32 = 71; -pub const MIDIERR_LASTERROR: u32 = 71; -pub const MIDIPATCHSIZE: u32 = 128; -pub const MIM_OPEN: u32 = 961; -pub const MIM_CLOSE: u32 = 962; -pub const MIM_DATA: u32 = 963; -pub const MIM_LONGDATA: u32 = 964; -pub const MIM_ERROR: u32 = 965; -pub const MIM_LONGERROR: u32 = 966; -pub const MOM_OPEN: u32 = 967; -pub const MOM_CLOSE: u32 = 968; -pub const MOM_DONE: u32 = 969; -pub const MIM_MOREDATA: u32 = 972; -pub const MOM_POSITIONCB: u32 = 970; -pub const MIDI_IO_STATUS: u32 = 32; -pub const MIDI_CACHE_ALL: u32 = 1; -pub const MIDI_CACHE_BESTFIT: u32 = 2; -pub const MIDI_CACHE_QUERY: u32 = 3; -pub const MIDI_UNCACHE: u32 = 4; -pub const MOD_MIDIPORT: u32 = 1; -pub const MOD_SYNTH: u32 = 2; -pub const MOD_SQSYNTH: u32 = 3; -pub const MOD_FMSYNTH: u32 = 4; -pub const MOD_MAPPER: u32 = 5; -pub const MOD_WAVETABLE: u32 = 6; -pub const MOD_SWSYNTH: u32 = 7; -pub const MIDICAPS_VOLUME: u32 = 1; -pub const MIDICAPS_LRVOLUME: u32 = 2; -pub const MIDICAPS_CACHE: u32 = 4; -pub const MIDICAPS_STREAM: u32 = 8; -pub const MHDR_DONE: u32 = 1; -pub const MHDR_PREPARED: u32 = 2; -pub const MHDR_INQUEUE: u32 = 4; -pub const MHDR_ISSTRM: u32 = 8; -pub const MEVT_F_SHORT: u32 = 0; -pub const MEVT_F_LONG: u32 = 2147483648; -pub const MEVT_F_CALLBACK: u32 = 1073741824; -pub const MIDISTRM_ERROR: i32 = -2; -pub const MIDIPROP_SET: u32 = 2147483648; -pub const MIDIPROP_GET: u32 = 1073741824; -pub const MIDIPROP_TIMEDIV: u32 = 1; -pub const MIDIPROP_TEMPO: u32 = 2; -pub const AUXCAPS_CDAUDIO: u32 = 1; -pub const AUXCAPS_AUXIN: u32 = 2; -pub const AUXCAPS_VOLUME: u32 = 1; -pub const AUXCAPS_LRVOLUME: u32 = 2; -pub const MIXER_SHORT_NAME_CHARS: u32 = 16; -pub const MIXER_LONG_NAME_CHARS: u32 = 64; -pub const MIXERR_INVALLINE: u32 = 1024; -pub const MIXERR_INVALCONTROL: u32 = 1025; -pub const MIXERR_INVALVALUE: u32 = 1026; -pub const MIXERR_LASTERROR: u32 = 1026; -pub const MIXER_OBJECTF_HANDLE: u32 = 2147483648; -pub const MIXER_OBJECTF_MIXER: u32 = 0; -pub const MIXER_OBJECTF_HMIXER: u32 = 2147483648; -pub const MIXER_OBJECTF_WAVEOUT: u32 = 268435456; -pub const MIXER_OBJECTF_HWAVEOUT: u32 = 2415919104; -pub const MIXER_OBJECTF_WAVEIN: u32 = 536870912; -pub const MIXER_OBJECTF_HWAVEIN: u32 = 2684354560; -pub const MIXER_OBJECTF_MIDIOUT: u32 = 805306368; -pub const MIXER_OBJECTF_HMIDIOUT: u32 = 2952790016; -pub const MIXER_OBJECTF_MIDIIN: u32 = 1073741824; -pub const MIXER_OBJECTF_HMIDIIN: u32 = 3221225472; -pub const MIXER_OBJECTF_AUX: u32 = 1342177280; -pub const MIXERLINE_LINEF_ACTIVE: u32 = 1; -pub const MIXERLINE_LINEF_DISCONNECTED: u32 = 32768; -pub const MIXERLINE_LINEF_SOURCE: u32 = 2147483648; -pub const MIXERLINE_COMPONENTTYPE_DST_FIRST: u32 = 0; -pub const MIXERLINE_COMPONENTTYPE_DST_UNDEFINED: u32 = 0; -pub const MIXERLINE_COMPONENTTYPE_DST_DIGITAL: u32 = 1; -pub const MIXERLINE_COMPONENTTYPE_DST_LINE: u32 = 2; -pub const MIXERLINE_COMPONENTTYPE_DST_MONITOR: u32 = 3; -pub const MIXERLINE_COMPONENTTYPE_DST_SPEAKERS: u32 = 4; -pub const MIXERLINE_COMPONENTTYPE_DST_HEADPHONES: u32 = 5; -pub const MIXERLINE_COMPONENTTYPE_DST_TELEPHONE: u32 = 6; -pub const MIXERLINE_COMPONENTTYPE_DST_WAVEIN: u32 = 7; -pub const MIXERLINE_COMPONENTTYPE_DST_VOICEIN: u32 = 8; -pub const MIXERLINE_COMPONENTTYPE_DST_LAST: u32 = 8; -pub const MIXERLINE_COMPONENTTYPE_SRC_FIRST: u32 = 4096; -pub const MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED: u32 = 4096; -pub const MIXERLINE_COMPONENTTYPE_SRC_DIGITAL: u32 = 4097; -pub const MIXERLINE_COMPONENTTYPE_SRC_LINE: u32 = 4098; -pub const MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE: u32 = 4099; -pub const MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER: u32 = 4100; -pub const MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC: u32 = 4101; -pub const MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE: u32 = 4102; -pub const MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER: u32 = 4103; -pub const MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT: u32 = 4104; -pub const MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY: u32 = 4105; -pub const MIXERLINE_COMPONENTTYPE_SRC_ANALOG: u32 = 4106; -pub const MIXERLINE_COMPONENTTYPE_SRC_LAST: u32 = 4106; -pub const MIXERLINE_TARGETTYPE_UNDEFINED: u32 = 0; -pub const MIXERLINE_TARGETTYPE_WAVEOUT: u32 = 1; -pub const MIXERLINE_TARGETTYPE_WAVEIN: u32 = 2; -pub const MIXERLINE_TARGETTYPE_MIDIOUT: u32 = 3; -pub const MIXERLINE_TARGETTYPE_MIDIIN: u32 = 4; -pub const MIXERLINE_TARGETTYPE_AUX: u32 = 5; -pub const MIXER_GETLINEINFOF_DESTINATION: u32 = 0; -pub const MIXER_GETLINEINFOF_SOURCE: u32 = 1; -pub const MIXER_GETLINEINFOF_LINEID: u32 = 2; -pub const MIXER_GETLINEINFOF_COMPONENTTYPE: u32 = 3; -pub const MIXER_GETLINEINFOF_TARGETTYPE: u32 = 4; -pub const MIXER_GETLINEINFOF_QUERYMASK: u32 = 15; -pub const MIXERCONTROL_CONTROLF_UNIFORM: u32 = 1; -pub const MIXERCONTROL_CONTROLF_MULTIPLE: u32 = 2; -pub const MIXERCONTROL_CONTROLF_DISABLED: u32 = 2147483648; -pub const MIXERCONTROL_CT_CLASS_MASK: u32 = 4026531840; -pub const MIXERCONTROL_CT_CLASS_CUSTOM: u32 = 0; -pub const MIXERCONTROL_CT_CLASS_METER: u32 = 268435456; -pub const MIXERCONTROL_CT_CLASS_SWITCH: u32 = 536870912; -pub const MIXERCONTROL_CT_CLASS_NUMBER: u32 = 805306368; -pub const MIXERCONTROL_CT_CLASS_SLIDER: u32 = 1073741824; -pub const MIXERCONTROL_CT_CLASS_FADER: u32 = 1342177280; -pub const MIXERCONTROL_CT_CLASS_TIME: u32 = 1610612736; -pub const MIXERCONTROL_CT_CLASS_LIST: u32 = 1879048192; -pub const MIXERCONTROL_CT_SUBCLASS_MASK: u32 = 251658240; -pub const MIXERCONTROL_CT_SC_SWITCH_BOOLEAN: u32 = 0; -pub const MIXERCONTROL_CT_SC_SWITCH_BUTTON: u32 = 16777216; -pub const MIXERCONTROL_CT_SC_METER_POLLED: u32 = 0; -pub const MIXERCONTROL_CT_SC_TIME_MICROSECS: u32 = 0; -pub const MIXERCONTROL_CT_SC_TIME_MILLISECS: u32 = 16777216; -pub const MIXERCONTROL_CT_SC_LIST_SINGLE: u32 = 0; -pub const MIXERCONTROL_CT_SC_LIST_MULTIPLE: u32 = 16777216; -pub const MIXERCONTROL_CT_UNITS_MASK: u32 = 16711680; -pub const MIXERCONTROL_CT_UNITS_CUSTOM: u32 = 0; -pub const MIXERCONTROL_CT_UNITS_BOOLEAN: u32 = 65536; -pub const MIXERCONTROL_CT_UNITS_SIGNED: u32 = 131072; -pub const MIXERCONTROL_CT_UNITS_UNSIGNED: u32 = 196608; -pub const MIXERCONTROL_CT_UNITS_DECIBELS: u32 = 262144; -pub const MIXERCONTROL_CT_UNITS_PERCENT: u32 = 327680; -pub const MIXERCONTROL_CONTROLTYPE_CUSTOM: u32 = 0; -pub const MIXERCONTROL_CONTROLTYPE_BOOLEANMETER: u32 = 268500992; -pub const MIXERCONTROL_CONTROLTYPE_SIGNEDMETER: u32 = 268566528; -pub const MIXERCONTROL_CONTROLTYPE_PEAKMETER: u32 = 268566529; -pub const MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER: u32 = 268632064; -pub const MIXERCONTROL_CONTROLTYPE_BOOLEAN: u32 = 536936448; -pub const MIXERCONTROL_CONTROLTYPE_ONOFF: u32 = 536936449; -pub const MIXERCONTROL_CONTROLTYPE_MUTE: u32 = 536936450; -pub const MIXERCONTROL_CONTROLTYPE_MONO: u32 = 536936451; -pub const MIXERCONTROL_CONTROLTYPE_LOUDNESS: u32 = 536936452; -pub const MIXERCONTROL_CONTROLTYPE_STEREOENH: u32 = 536936453; -pub const MIXERCONTROL_CONTROLTYPE_BASS_BOOST: u32 = 536945271; -pub const MIXERCONTROL_CONTROLTYPE_BUTTON: u32 = 553713664; -pub const MIXERCONTROL_CONTROLTYPE_DECIBELS: u32 = 805568512; -pub const MIXERCONTROL_CONTROLTYPE_SIGNED: u32 = 805437440; -pub const MIXERCONTROL_CONTROLTYPE_UNSIGNED: u32 = 805502976; -pub const MIXERCONTROL_CONTROLTYPE_PERCENT: u32 = 805634048; -pub const MIXERCONTROL_CONTROLTYPE_SLIDER: u32 = 1073872896; -pub const MIXERCONTROL_CONTROLTYPE_PAN: u32 = 1073872897; -pub const MIXERCONTROL_CONTROLTYPE_QSOUNDPAN: u32 = 1073872898; -pub const MIXERCONTROL_CONTROLTYPE_FADER: u32 = 1342373888; -pub const MIXERCONTROL_CONTROLTYPE_VOLUME: u32 = 1342373889; -pub const MIXERCONTROL_CONTROLTYPE_BASS: u32 = 1342373890; -pub const MIXERCONTROL_CONTROLTYPE_TREBLE: u32 = 1342373891; -pub const MIXERCONTROL_CONTROLTYPE_EQUALIZER: u32 = 1342373892; -pub const MIXERCONTROL_CONTROLTYPE_SINGLESELECT: u32 = 1879113728; -pub const MIXERCONTROL_CONTROLTYPE_MUX: u32 = 1879113729; -pub const MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT: u32 = 1895890944; -pub const MIXERCONTROL_CONTROLTYPE_MIXER: u32 = 1895890945; -pub const MIXERCONTROL_CONTROLTYPE_MICROTIME: u32 = 1610809344; -pub const MIXERCONTROL_CONTROLTYPE_MILLITIME: u32 = 1627586560; -pub const MIXER_GETLINECONTROLSF_ALL: u32 = 0; -pub const MIXER_GETLINECONTROLSF_ONEBYID: u32 = 1; -pub const MIXER_GETLINECONTROLSF_ONEBYTYPE: u32 = 2; -pub const MIXER_GETLINECONTROLSF_QUERYMASK: u32 = 15; -pub const MIXER_GETCONTROLDETAILSF_VALUE: u32 = 0; -pub const MIXER_GETCONTROLDETAILSF_LISTTEXT: u32 = 1; -pub const MIXER_GETCONTROLDETAILSF_QUERYMASK: u32 = 15; -pub const MIXER_SETCONTROLDETAILSF_VALUE: u32 = 0; -pub const MIXER_SETCONTROLDETAILSF_CUSTOM: u32 = 1; -pub const MIXER_SETCONTROLDETAILSF_QUERYMASK: u32 = 15; -pub const TIMERR_NOERROR: u32 = 0; -pub const TIMERR_NOCANDO: u32 = 97; -pub const TIMERR_STRUCT: u32 = 129; -pub const JOYERR_NOERROR: u32 = 0; -pub const JOYERR_PARMS: u32 = 165; -pub const JOYERR_NOCANDO: u32 = 166; -pub const JOYERR_UNPLUGGED: u32 = 167; -pub const JOY_BUTTON1: u32 = 1; -pub const JOY_BUTTON2: u32 = 2; -pub const JOY_BUTTON3: u32 = 4; -pub const JOY_BUTTON4: u32 = 8; -pub const JOY_BUTTON1CHG: u32 = 256; -pub const JOY_BUTTON2CHG: u32 = 512; -pub const JOY_BUTTON3CHG: u32 = 1024; -pub const JOY_BUTTON4CHG: u32 = 2048; -pub const JOY_BUTTON5: u32 = 16; -pub const JOY_BUTTON6: u32 = 32; -pub const JOY_BUTTON7: u32 = 64; -pub const JOY_BUTTON8: u32 = 128; -pub const JOY_BUTTON9: u32 = 256; -pub const JOY_BUTTON10: u32 = 512; -pub const JOY_BUTTON11: u32 = 1024; -pub const JOY_BUTTON12: u32 = 2048; -pub const JOY_BUTTON13: u32 = 4096; -pub const JOY_BUTTON14: u32 = 8192; -pub const JOY_BUTTON15: u32 = 16384; -pub const JOY_BUTTON16: u32 = 32768; -pub const JOY_BUTTON17: u32 = 65536; -pub const JOY_BUTTON18: u32 = 131072; -pub const JOY_BUTTON19: u32 = 262144; -pub const JOY_BUTTON20: u32 = 524288; -pub const JOY_BUTTON21: u32 = 1048576; -pub const JOY_BUTTON22: u32 = 2097152; -pub const JOY_BUTTON23: u32 = 4194304; -pub const JOY_BUTTON24: u32 = 8388608; -pub const JOY_BUTTON25: u32 = 16777216; -pub const JOY_BUTTON26: u32 = 33554432; -pub const JOY_BUTTON27: u32 = 67108864; -pub const JOY_BUTTON28: u32 = 134217728; -pub const JOY_BUTTON29: u32 = 268435456; -pub const JOY_BUTTON30: u32 = 536870912; -pub const JOY_BUTTON31: u32 = 1073741824; -pub const JOY_BUTTON32: u32 = 2147483648; -pub const JOY_POVFORWARD: u32 = 0; -pub const JOY_POVRIGHT: u32 = 9000; -pub const JOY_POVBACKWARD: u32 = 18000; -pub const JOY_POVLEFT: u32 = 27000; -pub const JOY_RETURNX: u32 = 1; -pub const JOY_RETURNY: u32 = 2; -pub const JOY_RETURNZ: u32 = 4; -pub const JOY_RETURNR: u32 = 8; -pub const JOY_RETURNU: u32 = 16; -pub const JOY_RETURNV: u32 = 32; -pub const JOY_RETURNPOV: u32 = 64; -pub const JOY_RETURNBUTTONS: u32 = 128; -pub const JOY_RETURNRAWDATA: u32 = 256; -pub const JOY_RETURNPOVCTS: u32 = 512; -pub const JOY_RETURNCENTERED: u32 = 1024; -pub const JOY_USEDEADZONE: u32 = 2048; -pub const JOY_RETURNALL: u32 = 255; -pub const JOY_CAL_READALWAYS: u32 = 65536; -pub const JOY_CAL_READXYONLY: u32 = 131072; -pub const JOY_CAL_READ3: u32 = 262144; -pub const JOY_CAL_READ4: u32 = 524288; -pub const JOY_CAL_READXONLY: u32 = 1048576; -pub const JOY_CAL_READYONLY: u32 = 2097152; -pub const JOY_CAL_READ5: u32 = 4194304; -pub const JOY_CAL_READ6: u32 = 8388608; -pub const JOY_CAL_READZONLY: u32 = 16777216; -pub const JOY_CAL_READRONLY: u32 = 33554432; -pub const JOY_CAL_READUONLY: u32 = 67108864; -pub const JOY_CAL_READVONLY: u32 = 134217728; -pub const JOYSTICKID1: u32 = 0; -pub const JOYSTICKID2: u32 = 1; -pub const JOYCAPS_HASZ: u32 = 1; -pub const JOYCAPS_HASR: u32 = 2; -pub const JOYCAPS_HASU: u32 = 4; -pub const JOYCAPS_HASV: u32 = 8; -pub const JOYCAPS_HASPOV: u32 = 16; -pub const JOYCAPS_POV4DIR: u32 = 32; -pub const JOYCAPS_POVCTS: u32 = 64; -pub const NEWTRANSPARENT: u32 = 3; -pub const QUERYROPSUPPORT: u32 = 40; -pub const SELECTDIB: u32 = 41; -pub const NCBNAMSZ: u32 = 16; -pub const MAX_LANA: u32 = 254; -pub const NAME_FLAGS_MASK: u32 = 135; -pub const GROUP_NAME: u32 = 128; -pub const UNIQUE_NAME: u32 = 0; -pub const REGISTERING: u32 = 0; -pub const REGISTERED: u32 = 4; -pub const DEREGISTERED: u32 = 5; -pub const DUPLICATE: u32 = 6; -pub const DUPLICATE_DEREG: u32 = 7; -pub const LISTEN_OUTSTANDING: u32 = 1; -pub const CALL_PENDING: u32 = 2; -pub const SESSION_ESTABLISHED: u32 = 3; -pub const HANGUP_PENDING: u32 = 4; -pub const HANGUP_COMPLETE: u32 = 5; -pub const SESSION_ABORTED: u32 = 6; -pub const ALL_TRANSPORTS: &[u8; 5] = b"M\0\0\0\0"; -pub const MS_NBF: &[u8; 5] = b"MNBF\0"; -pub const NCBCALL: u32 = 16; -pub const NCBLISTEN: u32 = 17; -pub const NCBHANGUP: u32 = 18; -pub const NCBSEND: u32 = 20; -pub const NCBRECV: u32 = 21; -pub const NCBRECVANY: u32 = 22; -pub const NCBCHAINSEND: u32 = 23; -pub const NCBDGSEND: u32 = 32; -pub const NCBDGRECV: u32 = 33; -pub const NCBDGSENDBC: u32 = 34; -pub const NCBDGRECVBC: u32 = 35; -pub const NCBADDNAME: u32 = 48; -pub const NCBDELNAME: u32 = 49; -pub const NCBRESET: u32 = 50; -pub const NCBASTAT: u32 = 51; -pub const NCBSSTAT: u32 = 52; -pub const NCBCANCEL: u32 = 53; -pub const NCBADDGRNAME: u32 = 54; -pub const NCBENUM: u32 = 55; -pub const NCBUNLINK: u32 = 112; -pub const NCBSENDNA: u32 = 113; -pub const NCBCHAINSENDNA: u32 = 114; -pub const NCBLANSTALERT: u32 = 115; -pub const NCBACTION: u32 = 119; -pub const NCBFINDNAME: u32 = 120; -pub const NCBTRACE: u32 = 121; -pub const ASYNCH: u32 = 128; -pub const NRC_GOODRET: u32 = 0; -pub const NRC_BUFLEN: u32 = 1; -pub const NRC_ILLCMD: u32 = 3; -pub const NRC_CMDTMO: u32 = 5; -pub const NRC_INCOMP: u32 = 6; -pub const NRC_BADDR: u32 = 7; -pub const NRC_SNUMOUT: u32 = 8; -pub const NRC_NORES: u32 = 9; -pub const NRC_SCLOSED: u32 = 10; -pub const NRC_CMDCAN: u32 = 11; -pub const NRC_DUPNAME: u32 = 13; -pub const NRC_NAMTFUL: u32 = 14; -pub const NRC_ACTSES: u32 = 15; -pub const NRC_LOCTFUL: u32 = 17; -pub const NRC_REMTFUL: u32 = 18; -pub const NRC_ILLNN: u32 = 19; -pub const NRC_NOCALL: u32 = 20; -pub const NRC_NOWILD: u32 = 21; -pub const NRC_INUSE: u32 = 22; -pub const NRC_NAMERR: u32 = 23; -pub const NRC_SABORT: u32 = 24; -pub const NRC_NAMCONF: u32 = 25; -pub const NRC_IFBUSY: u32 = 33; -pub const NRC_TOOMANY: u32 = 34; -pub const NRC_BRIDGE: u32 = 35; -pub const NRC_CANOCCR: u32 = 36; -pub const NRC_CANCEL: u32 = 38; -pub const NRC_DUPENV: u32 = 48; -pub const NRC_ENVNOTDEF: u32 = 52; -pub const NRC_OSRESNOTAV: u32 = 53; -pub const NRC_MAXAPPS: u32 = 54; -pub const NRC_NOSAPS: u32 = 55; -pub const NRC_NORESOURCES: u32 = 56; -pub const NRC_INVADDRESS: u32 = 57; -pub const NRC_INVDDID: u32 = 59; -pub const NRC_LOCKFAIL: u32 = 60; -pub const NRC_OPENERR: u32 = 63; -pub const NRC_SYSTEM: u32 = 64; -pub const NRC_PENDING: u32 = 255; -pub const RPC_C_BINDING_INFINITE_TIMEOUT: u32 = 10; -pub const RPC_C_BINDING_MIN_TIMEOUT: u32 = 0; -pub const RPC_C_BINDING_DEFAULT_TIMEOUT: u32 = 5; -pub const RPC_C_BINDING_MAX_TIMEOUT: u32 = 9; -pub const RPC_C_CANCEL_INFINITE_TIMEOUT: i32 = -1; -pub const RPC_C_LISTEN_MAX_CALLS_DEFAULT: u32 = 1234; -pub const RPC_C_PROTSEQ_MAX_REQS_DEFAULT: u32 = 10; -pub const RPC_C_BIND_TO_ALL_NICS: u32 = 1; -pub const RPC_C_USE_INTERNET_PORT: u32 = 1; -pub const RPC_C_USE_INTRANET_PORT: u32 = 2; -pub const RPC_C_DONT_FAIL: u32 = 4; -pub const RPC_C_RPCHTTP_USE_LOAD_BALANCE: u32 = 8; -pub const RPC_C_TRY_ENFORCE_MAX_CALLS: u32 = 16; -pub const RPC_C_OPT_BINDING_NONCAUSAL: u32 = 9; -pub const RPC_C_OPT_SECURITY_CALLBACK: u32 = 10; -pub const RPC_C_OPT_UNIQUE_BINDING: u32 = 11; -pub const RPC_C_OPT_TRANS_SEND_BUFFER_SIZE: u32 = 5; -pub const RPC_C_OPT_CALL_TIMEOUT: u32 = 12; -pub const RPC_C_OPT_DONT_LINGER: u32 = 13; -pub const RPC_C_OPT_TRUST_PEER: u32 = 14; -pub const RPC_C_OPT_ASYNC_BLOCK: u32 = 15; -pub const RPC_C_OPT_OPTIMIZE_TIME: u32 = 16; -pub const RPC_C_OPT_MAX_OPTIONS: u32 = 17; -pub const RPC_C_FULL_CERT_CHAIN: u32 = 1; -pub const RPC_C_STATS_CALLS_IN: u32 = 0; -pub const RPC_C_STATS_CALLS_OUT: u32 = 1; -pub const RPC_C_STATS_PKTS_IN: u32 = 2; -pub const RPC_C_STATS_PKTS_OUT: u32 = 3; -pub const RPC_C_AUTHN_LEVEL_DEFAULT: u32 = 0; -pub const RPC_C_AUTHN_LEVEL_NONE: u32 = 1; -pub const RPC_C_AUTHN_LEVEL_CONNECT: u32 = 2; -pub const RPC_C_AUTHN_LEVEL_CALL: u32 = 3; -pub const RPC_C_AUTHN_LEVEL_PKT: u32 = 4; -pub const RPC_C_AUTHN_LEVEL_PKT_INTEGRITY: u32 = 5; -pub const RPC_C_AUTHN_LEVEL_PKT_PRIVACY: u32 = 6; -pub const RPC_C_IMP_LEVEL_DEFAULT: u32 = 0; -pub const RPC_C_IMP_LEVEL_ANONYMOUS: u32 = 1; -pub const RPC_C_IMP_LEVEL_IDENTIFY: u32 = 2; -pub const RPC_C_IMP_LEVEL_IMPERSONATE: u32 = 3; -pub const RPC_C_IMP_LEVEL_DELEGATE: u32 = 4; -pub const RPC_C_QOS_IDENTITY_STATIC: u32 = 0; -pub const RPC_C_QOS_IDENTITY_DYNAMIC: u32 = 1; -pub const RPC_C_QOS_CAPABILITIES_DEFAULT: u32 = 0; -pub const RPC_C_QOS_CAPABILITIES_MUTUAL_AUTH: u32 = 1; -pub const RPC_C_QOS_CAPABILITIES_MAKE_FULLSIC: u32 = 2; -pub const RPC_C_QOS_CAPABILITIES_ANY_AUTHORITY: u32 = 4; -pub const RPC_C_QOS_CAPABILITIES_IGNORE_DELEGATE_FAILURE: u32 = 8; -pub const RPC_C_QOS_CAPABILITIES_LOCAL_MA_HINT: u32 = 16; -pub const RPC_C_QOS_CAPABILITIES_SCHANNEL_FULL_AUTH_IDENTITY: u32 = 32; -pub const RPC_C_PROTECT_LEVEL_DEFAULT: u32 = 0; -pub const RPC_C_PROTECT_LEVEL_NONE: u32 = 1; -pub const RPC_C_PROTECT_LEVEL_CONNECT: u32 = 2; -pub const RPC_C_PROTECT_LEVEL_CALL: u32 = 3; -pub const RPC_C_PROTECT_LEVEL_PKT: u32 = 4; -pub const RPC_C_PROTECT_LEVEL_PKT_INTEGRITY: u32 = 5; -pub const RPC_C_PROTECT_LEVEL_PKT_PRIVACY: u32 = 6; -pub const RPC_C_AUTHN_NONE: u32 = 0; -pub const RPC_C_AUTHN_DCE_PRIVATE: u32 = 1; -pub const RPC_C_AUTHN_DCE_PUBLIC: u32 = 2; -pub const RPC_C_AUTHN_DEC_PUBLIC: u32 = 4; -pub const RPC_C_AUTHN_GSS_NEGOTIATE: u32 = 9; -pub const RPC_C_AUTHN_WINNT: u32 = 10; -pub const RPC_C_AUTHN_GSS_SCHANNEL: u32 = 14; -pub const RPC_C_AUTHN_GSS_KERBEROS: u32 = 16; -pub const RPC_C_AUTHN_DPA: u32 = 17; -pub const RPC_C_AUTHN_MSN: u32 = 18; -pub const RPC_C_AUTHN_DIGEST: u32 = 21; -pub const RPC_C_AUTHN_KERNEL: u32 = 20; -pub const RPC_C_AUTHN_NEGO_EXTENDER: u32 = 30; -pub const RPC_C_AUTHN_PKU2U: u32 = 31; -pub const RPC_C_AUTHN_LIVE_SSP: u32 = 32; -pub const RPC_C_AUTHN_LIVEXP_SSP: u32 = 35; -pub const RPC_C_AUTHN_CLOUD_AP: u32 = 36; -pub const RPC_C_AUTHN_MSONLINE: u32 = 82; -pub const RPC_C_AUTHN_MQ: u32 = 100; -pub const RPC_C_AUTHN_DEFAULT: u32 = 4294967295; -pub const RPC_C_SECURITY_QOS_VERSION: u32 = 1; -pub const RPC_C_SECURITY_QOS_VERSION_1: u32 = 1; -pub const SEC_WINNT_AUTH_IDENTITY_ANSI: u32 = 1; -pub const SEC_WINNT_AUTH_IDENTITY_UNICODE: u32 = 2; -pub const RPC_C_SECURITY_QOS_VERSION_2: u32 = 2; -pub const RPC_C_AUTHN_INFO_TYPE_HTTP: u32 = 1; -pub const RPC_C_HTTP_AUTHN_TARGET_SERVER: u32 = 1; -pub const RPC_C_HTTP_AUTHN_TARGET_PROXY: u32 = 2; -pub const RPC_C_HTTP_AUTHN_SCHEME_BASIC: u32 = 1; -pub const RPC_C_HTTP_AUTHN_SCHEME_NTLM: u32 = 2; -pub const RPC_C_HTTP_AUTHN_SCHEME_PASSPORT: u32 = 4; -pub const RPC_C_HTTP_AUTHN_SCHEME_DIGEST: u32 = 8; -pub const RPC_C_HTTP_AUTHN_SCHEME_NEGOTIATE: u32 = 16; -pub const RPC_C_HTTP_AUTHN_SCHEME_CERT: u32 = 65536; -pub const RPC_C_HTTP_FLAG_USE_SSL: u32 = 1; -pub const RPC_C_HTTP_FLAG_USE_FIRST_AUTH_SCHEME: u32 = 2; -pub const RPC_C_HTTP_FLAG_IGNORE_CERT_CN_INVALID: u32 = 8; -pub const RPC_C_HTTP_FLAG_ENABLE_CERT_REVOCATION_CHECK: u32 = 16; -pub const RPC_C_SECURITY_QOS_VERSION_3: u32 = 3; -pub const RPC_C_SECURITY_QOS_VERSION_4: u32 = 4; -pub const RPC_C_SECURITY_QOS_VERSION_5: u32 = 5; -pub const RPC_PROTSEQ_TCP: u32 = 1; -pub const RPC_PROTSEQ_NMP: u32 = 2; -pub const RPC_PROTSEQ_LRPC: u32 = 3; -pub const RPC_PROTSEQ_HTTP: u32 = 4; -pub const RPC_BHT_OBJECT_UUID_VALID: u32 = 1; -pub const RPC_BHO_NONCAUSAL: u32 = 1; -pub const RPC_BHO_DONTLINGER: u32 = 2; -pub const RPC_BHO_EXCLUSIVE_AND_GUARANTEED: u32 = 4; -pub const RPC_C_AUTHZ_NONE: u32 = 0; -pub const RPC_C_AUTHZ_NAME: u32 = 1; -pub const RPC_C_AUTHZ_DCE: u32 = 2; -pub const RPC_C_AUTHZ_DEFAULT: u32 = 4294967295; -pub const DCE_C_ERROR_STRING_LEN: u32 = 256; -pub const RPC_C_EP_ALL_ELTS: u32 = 0; -pub const RPC_C_EP_MATCH_BY_IF: u32 = 1; -pub const RPC_C_EP_MATCH_BY_OBJ: u32 = 2; -pub const RPC_C_EP_MATCH_BY_BOTH: u32 = 3; -pub const RPC_C_VERS_ALL: u32 = 1; -pub const RPC_C_VERS_COMPATIBLE: u32 = 2; -pub const RPC_C_VERS_EXACT: u32 = 3; -pub const RPC_C_VERS_MAJOR_ONLY: u32 = 4; -pub const RPC_C_VERS_UPTO: u32 = 5; -pub const RPC_C_MGMT_INQ_IF_IDS: u32 = 0; -pub const RPC_C_MGMT_INQ_PRINC_NAME: u32 = 1; -pub const RPC_C_MGMT_INQ_STATS: u32 = 2; -pub const RPC_C_MGMT_IS_SERVER_LISTEN: u32 = 3; -pub const RPC_C_MGMT_STOP_SERVER_LISTEN: u32 = 4; -pub const RPC_C_PARM_MAX_PACKET_LENGTH: u32 = 1; -pub const RPC_C_PARM_BUFFER_LENGTH: u32 = 2; -pub const RPC_IF_AUTOLISTEN: u32 = 1; -pub const RPC_IF_OLE: u32 = 2; -pub const RPC_IF_ALLOW_UNKNOWN_AUTHORITY: u32 = 4; -pub const RPC_IF_ALLOW_SECURE_ONLY: u32 = 8; -pub const RPC_IF_ALLOW_CALLBACKS_WITH_NO_AUTH: u32 = 16; -pub const RPC_IF_ALLOW_LOCAL_ONLY: u32 = 32; -pub const RPC_IF_SEC_NO_CACHE: u32 = 64; -pub const RPC_IF_SEC_CACHE_PER_PROC: u32 = 128; -pub const RPC_IF_ASYNC_CALLBACK: u32 = 256; -pub const RPC_FW_IF_FLAG_DCOM: u32 = 1; -pub const RPC_CONTEXT_HANDLE_DEFAULT_FLAGS: u32 = 0; -pub const RPC_CONTEXT_HANDLE_FLAGS: u32 = 805306368; -pub const RPC_CONTEXT_HANDLE_SERIALIZE: u32 = 268435456; -pub const RPC_CONTEXT_HANDLE_DONT_SERIALIZE: u32 = 536870912; -pub const RPC_TYPE_STRICT_CONTEXT_HANDLE: u32 = 1073741824; -pub const RPC_TYPE_DISCONNECT_EVENT_CONTEXT_HANDLE: u32 = 2147483648; -pub const RPC_NCA_FLAGS_DEFAULT: u32 = 0; -pub const RPC_NCA_FLAGS_IDEMPOTENT: u32 = 1; -pub const RPC_NCA_FLAGS_BROADCAST: u32 = 2; -pub const RPC_NCA_FLAGS_MAYBE: u32 = 4; -pub const RPCFLG_HAS_GUARANTEE: u32 = 16; -pub const RPCFLG_WINRT_REMOTE_ASYNC: u32 = 32; -pub const RPC_BUFFER_COMPLETE: u32 = 4096; -pub const RPC_BUFFER_PARTIAL: u32 = 8192; -pub const RPC_BUFFER_EXTRA: u32 = 16384; -pub const RPC_BUFFER_ASYNC: u32 = 32768; -pub const RPC_BUFFER_NONOTIFY: u32 = 65536; -pub const RPCFLG_MESSAGE: u32 = 16777216; -pub const RPCFLG_AUTO_COMPLETE: u32 = 134217728; -pub const RPCFLG_LOCAL_CALL: u32 = 268435456; -pub const RPCFLG_INPUT_SYNCHRONOUS: u32 = 536870912; -pub const RPCFLG_ASYNCHRONOUS: u32 = 1073741824; -pub const RPCFLG_NON_NDR: u32 = 2147483648; -pub const RPCFLG_HAS_MULTI_SYNTAXES: u32 = 33554432; -pub const RPCFLG_HAS_CALLBACK: u32 = 67108864; -pub const RPCFLG_ACCESSIBILITY_BIT1: u32 = 1048576; -pub const RPCFLG_ACCESSIBILITY_BIT2: u32 = 2097152; -pub const RPCFLG_ACCESS_LOCAL: u32 = 4194304; -pub const NDR_CUSTOM_OR_DEFAULT_ALLOCATOR: u32 = 268435456; -pub const NDR_DEFAULT_ALLOCATOR: u32 = 536870912; -pub const RPCFLG_NDR64_CONTAINS_ARM_LAYOUT: u32 = 67108864; -pub const RPCFLG_SENDER_WAITING_FOR_REPLY: u32 = 8388608; -pub const RPC_FLAGS_VALID_BIT: u32 = 32768; -pub const NT351_INTERFACE_SIZE: u32 = 64; -pub const RPC_INTERFACE_HAS_PIPES: u32 = 1; -pub const RPC_SYSTEM_HANDLE_FREE_UNRETRIEVED: u32 = 1; -pub const RPC_SYSTEM_HANDLE_FREE_RETRIEVED: u32 = 2; -pub const RPC_SYSTEM_HANDLE_FREE_ALL: u32 = 3; -pub const RPC_SYSTEM_HANDLE_FREE_ERROR_ON_CLOSE: u32 = 4; -pub const TRANSPORT_TYPE_CN: u32 = 1; -pub const TRANSPORT_TYPE_DG: u32 = 2; -pub const TRANSPORT_TYPE_LPC: u32 = 4; -pub const TRANSPORT_TYPE_WMSG: u32 = 8; -pub const RPC_P_ADDR_FORMAT_TCP_IPV4: u32 = 1; -pub const RPC_P_ADDR_FORMAT_TCP_IPV6: u32 = 2; -pub const RPC_C_OPT_SESSION_ID: u32 = 6; -pub const RPC_C_OPT_COOKIE_AUTH: u32 = 7; -pub const RPC_C_OPT_RESOURCE_TYPE_UUID: u32 = 8; -pub const RPC_PROXY_CONNECTION_TYPE_IN_PROXY: u32 = 0; -pub const RPC_PROXY_CONNECTION_TYPE_OUT_PROXY: u32 = 1; -pub const RPC_C_OPT_PRIVATE_SUPPRESS_WAKE: u32 = 1; -pub const RPC_C_OPT_PRIVATE_DO_NOT_DISTURB: u32 = 2; -pub const RPC_C_OPT_PRIVATE_BREAK_ON_SUSPEND: u32 = 3; -pub const RPC_C_NS_SYNTAX_DEFAULT: u32 = 0; -pub const RPC_C_NS_SYNTAX_DCE: u32 = 3; -pub const RPC_C_PROFILE_DEFAULT_ELT: u32 = 0; -pub const RPC_C_PROFILE_ALL_ELT: u32 = 1; -pub const RPC_C_PROFILE_ALL_ELTS: u32 = 1; -pub const RPC_C_PROFILE_MATCH_BY_IF: u32 = 2; -pub const RPC_C_PROFILE_MATCH_BY_MBR: u32 = 3; -pub const RPC_C_PROFILE_MATCH_BY_BOTH: u32 = 4; -pub const RPC_C_NS_DEFAULT_EXP_AGE: i32 = -1; -pub const RPC_S_OK: u32 = 0; -pub const RPC_S_INVALID_ARG: u32 = 87; -pub const RPC_S_OUT_OF_MEMORY: u32 = 14; -pub const RPC_S_OUT_OF_THREADS: u32 = 164; -pub const RPC_S_INVALID_LEVEL: u32 = 87; -pub const RPC_S_BUFFER_TOO_SMALL: u32 = 122; -pub const RPC_S_INVALID_SECURITY_DESC: u32 = 1338; -pub const RPC_S_ACCESS_DENIED: u32 = 5; -pub const RPC_S_SERVER_OUT_OF_MEMORY: u32 = 1130; -pub const RPC_S_ASYNC_CALL_PENDING: u32 = 997; -pub const RPC_S_UNKNOWN_PRINCIPAL: u32 = 1332; -pub const RPC_S_TIMEOUT: u32 = 1460; -pub const RPC_S_RUNTIME_UNINITIALIZED: u32 = 1; -pub const RPC_S_NOT_ENOUGH_QUOTA: u32 = 1816; -pub const RPC_X_NO_MEMORY: u32 = 14; -pub const RPC_X_INVALID_BOUND: u32 = 1734; -pub const RPC_X_INVALID_TAG: u32 = 1733; -pub const RPC_X_ENUM_VALUE_TOO_LARGE: u32 = 1781; -pub const RPC_X_SS_CONTEXT_MISMATCH: u32 = 6; -pub const RPC_X_INVALID_BUFFER: u32 = 1784; -pub const RPC_X_PIPE_APP_MEMORY: u32 = 14; -pub const RPC_X_INVALID_PIPE_OPERATION: u32 = 1831; -pub const RPC_C_NOTIFY_ON_SEND_COMPLETE: u32 = 1; -pub const RPC_C_INFINITE_TIMEOUT: u32 = 4294967295; -pub const MaxNumberOfEEInfoParams: u32 = 4; -pub const RPC_EEINFO_VERSION: u32 = 1; -pub const EEInfoPreviousRecordsMissing: u32 = 1; -pub const EEInfoNextRecordsMissing: u32 = 2; -pub const EEInfoUseFileTime: u32 = 4; -pub const EEInfoGCCOM: u32 = 11; -pub const EEInfoGCFRS: u32 = 12; -pub const RPC_QUERY_SERVER_PRINCIPAL_NAME: u32 = 2; -pub const RPC_QUERY_CLIENT_PRINCIPAL_NAME: u32 = 4; -pub const RPC_QUERY_CALL_LOCAL_ADDRESS: u32 = 8; -pub const RPC_QUERY_CLIENT_PID: u32 = 16; -pub const RPC_QUERY_IS_CLIENT_LOCAL: u32 = 32; -pub const RPC_QUERY_NO_AUTH_REQUIRED: u32 = 64; -pub const RPC_CALL_ATTRIBUTES_VERSION: u32 = 3; -pub const RPC_QUERY_CLIENT_ID: u32 = 128; -pub const RPC_CALL_STATUS_CANCELLED: u32 = 1; -pub const RPC_CALL_STATUS_DISCONNECTED: u32 = 2; -pub const ABM_NEW: u32 = 0; -pub const ABM_REMOVE: u32 = 1; -pub const ABM_QUERYPOS: u32 = 2; -pub const ABM_SETPOS: u32 = 3; -pub const ABM_GETSTATE: u32 = 4; -pub const ABM_GETTASKBARPOS: u32 = 5; -pub const ABM_ACTIVATE: u32 = 6; -pub const ABM_GETAUTOHIDEBAR: u32 = 7; -pub const ABM_SETAUTOHIDEBAR: u32 = 8; -pub const ABM_WINDOWPOSCHANGED: u32 = 9; -pub const ABM_SETSTATE: u32 = 10; -pub const ABM_GETAUTOHIDEBAREX: u32 = 11; -pub const ABM_SETAUTOHIDEBAREX: u32 = 12; -pub const ABN_STATECHANGE: u32 = 0; -pub const ABN_POSCHANGED: u32 = 1; -pub const ABN_FULLSCREENAPP: u32 = 2; -pub const ABN_WINDOWARRANGE: u32 = 3; -pub const ABS_AUTOHIDE: u32 = 1; -pub const ABS_ALWAYSONTOP: u32 = 2; -pub const ABE_LEFT: u32 = 0; -pub const ABE_TOP: u32 = 1; -pub const ABE_RIGHT: u32 = 2; -pub const ABE_BOTTOM: u32 = 3; -pub const FO_MOVE: u32 = 1; -pub const FO_COPY: u32 = 2; -pub const FO_DELETE: u32 = 3; -pub const FO_RENAME: u32 = 4; -pub const FOF_MULTIDESTFILES: u32 = 1; -pub const FOF_CONFIRMMOUSE: u32 = 2; -pub const FOF_SILENT: u32 = 4; -pub const FOF_RENAMEONCOLLISION: u32 = 8; -pub const FOF_NOCONFIRMATION: u32 = 16; -pub const FOF_WANTMAPPINGHANDLE: u32 = 32; -pub const FOF_ALLOWUNDO: u32 = 64; -pub const FOF_FILESONLY: u32 = 128; -pub const FOF_SIMPLEPROGRESS: u32 = 256; -pub const FOF_NOCONFIRMMKDIR: u32 = 512; -pub const FOF_NOERRORUI: u32 = 1024; -pub const FOF_NOCOPYSECURITYATTRIBS: u32 = 2048; -pub const FOF_NORECURSION: u32 = 4096; -pub const FOF_NO_CONNECTED_ELEMENTS: u32 = 8192; -pub const FOF_WANTNUKEWARNING: u32 = 16384; -pub const FOF_NORECURSEREPARSE: u32 = 32768; -pub const FOF_NO_UI: u32 = 1556; -pub const PO_DELETE: u32 = 19; -pub const PO_RENAME: u32 = 20; -pub const PO_PORTCHANGE: u32 = 32; -pub const PO_REN_PORT: u32 = 52; -pub const SE_ERR_FNF: u32 = 2; -pub const SE_ERR_PNF: u32 = 3; -pub const SE_ERR_ACCESSDENIED: u32 = 5; -pub const SE_ERR_OOM: u32 = 8; -pub const SE_ERR_DLLNOTFOUND: u32 = 32; -pub const SE_ERR_SHARE: u32 = 26; -pub const SE_ERR_ASSOCINCOMPLETE: u32 = 27; -pub const SE_ERR_DDETIMEOUT: u32 = 28; -pub const SE_ERR_DDEFAIL: u32 = 29; -pub const SE_ERR_DDEBUSY: u32 = 30; -pub const SE_ERR_NOASSOC: u32 = 31; -pub const SEE_MASK_DEFAULT: u32 = 0; -pub const SEE_MASK_CLASSNAME: u32 = 1; -pub const SEE_MASK_CLASSKEY: u32 = 3; -pub const SEE_MASK_IDLIST: u32 = 4; -pub const SEE_MASK_INVOKEIDLIST: u32 = 12; -pub const SEE_MASK_HOTKEY: u32 = 32; -pub const SEE_MASK_NOCLOSEPROCESS: u32 = 64; -pub const SEE_MASK_CONNECTNETDRV: u32 = 128; -pub const SEE_MASK_NOASYNC: u32 = 256; -pub const SEE_MASK_FLAG_DDEWAIT: u32 = 256; -pub const SEE_MASK_DOENVSUBST: u32 = 512; -pub const SEE_MASK_FLAG_NO_UI: u32 = 1024; -pub const SEE_MASK_UNICODE: u32 = 16384; -pub const SEE_MASK_NO_CONSOLE: u32 = 32768; -pub const SEE_MASK_ASYNCOK: u32 = 1048576; -pub const SEE_MASK_HMONITOR: u32 = 2097152; -pub const SEE_MASK_NOZONECHECKS: u32 = 8388608; -pub const SEE_MASK_NOQUERYCLASSSTORE: u32 = 16777216; -pub const SEE_MASK_WAITFORINPUTIDLE: u32 = 33554432; -pub const SEE_MASK_FLAG_LOG_USAGE: u32 = 67108864; -pub const SEE_MASK_FLAG_HINST_IS_SITE: u32 = 134217728; -pub const SHERB_NOCONFIRMATION: u32 = 1; -pub const SHERB_NOPROGRESSUI: u32 = 2; -pub const SHERB_NOSOUND: u32 = 4; -pub const NIN_SELECT: u32 = 1024; -pub const NINF_KEY: u32 = 1; -pub const NIN_KEYSELECT: u32 = 1025; -pub const NIN_BALLOONSHOW: u32 = 1026; -pub const NIN_BALLOONHIDE: u32 = 1027; -pub const NIN_BALLOONTIMEOUT: u32 = 1028; -pub const NIN_BALLOONUSERCLICK: u32 = 1029; -pub const NIN_POPUPOPEN: u32 = 1030; -pub const NIN_POPUPCLOSE: u32 = 1031; -pub const NIM_ADD: u32 = 0; -pub const NIM_MODIFY: u32 = 1; -pub const NIM_DELETE: u32 = 2; -pub const NIM_SETFOCUS: u32 = 3; -pub const NIM_SETVERSION: u32 = 4; -pub const NOTIFYICON_VERSION: u32 = 3; -pub const NOTIFYICON_VERSION_4: u32 = 4; -pub const NIF_MESSAGE: u32 = 1; -pub const NIF_ICON: u32 = 2; -pub const NIF_TIP: u32 = 4; -pub const NIF_STATE: u32 = 8; -pub const NIF_INFO: u32 = 16; -pub const NIF_GUID: u32 = 32; -pub const NIF_REALTIME: u32 = 64; -pub const NIF_SHOWTIP: u32 = 128; -pub const NIS_HIDDEN: u32 = 1; -pub const NIS_SHAREDICON: u32 = 2; -pub const NIIF_NONE: u32 = 0; -pub const NIIF_INFO: u32 = 1; -pub const NIIF_WARNING: u32 = 2; -pub const NIIF_ERROR: u32 = 3; -pub const NIIF_USER: u32 = 4; -pub const NIIF_ICON_MASK: u32 = 15; -pub const NIIF_NOSOUND: u32 = 16; -pub const NIIF_LARGE_ICON: u32 = 32; -pub const NIIF_RESPECT_QUIET_TIME: u32 = 128; -pub const SHGFI_ICON: u32 = 256; -pub const SHGFI_DISPLAYNAME: u32 = 512; -pub const SHGFI_TYPENAME: u32 = 1024; -pub const SHGFI_ATTRIBUTES: u32 = 2048; -pub const SHGFI_ICONLOCATION: u32 = 4096; -pub const SHGFI_EXETYPE: u32 = 8192; -pub const SHGFI_SYSICONINDEX: u32 = 16384; -pub const SHGFI_LINKOVERLAY: u32 = 32768; -pub const SHGFI_SELECTED: u32 = 65536; -pub const SHGFI_ATTR_SPECIFIED: u32 = 131072; -pub const SHGFI_LARGEICON: u32 = 0; -pub const SHGFI_SMALLICON: u32 = 1; -pub const SHGFI_OPENICON: u32 = 2; -pub const SHGFI_SHELLICONSIZE: u32 = 4; -pub const SHGFI_PIDL: u32 = 8; -pub const SHGFI_USEFILEATTRIBUTES: u32 = 16; -pub const SHGFI_ADDOVERLAYS: u32 = 32; -pub const SHGFI_OVERLAYINDEX: u32 = 64; -pub const SHGSI_ICONLOCATION: u32 = 0; -pub const SHGSI_ICON: u32 = 256; -pub const SHGSI_SYSICONINDEX: u32 = 16384; -pub const SHGSI_LINKOVERLAY: u32 = 32768; -pub const SHGSI_SELECTED: u32 = 65536; -pub const SHGSI_LARGEICON: u32 = 0; -pub const SHGSI_SMALLICON: u32 = 1; -pub const SHGSI_SHELLICONSIZE: u32 = 4; -pub const SHGNLI_PIDL: u32 = 1; -pub const SHGNLI_PREFIXNAME: u32 = 2; -pub const SHGNLI_NOUNIQUE: u32 = 4; -pub const SHGNLI_NOLNK: u32 = 8; -pub const SHGNLI_NOLOCNAME: u32 = 16; -pub const SHGNLI_USEURLEXT: u32 = 32; -pub const PRINTACTION_OPEN: u32 = 0; -pub const PRINTACTION_PROPERTIES: u32 = 1; -pub const PRINTACTION_NETINSTALL: u32 = 2; -pub const PRINTACTION_NETINSTALLLINK: u32 = 3; -pub const PRINTACTION_TESTPAGE: u32 = 4; -pub const PRINTACTION_OPENNETPRN: u32 = 5; -pub const PRINTACTION_DOCUMENTDEFAULTS: u32 = 6; -pub const PRINTACTION_SERVERPROPERTIES: u32 = 7; -pub const PRINT_PROP_FORCE_NAME: u32 = 1; -pub const OFFLINE_STATUS_LOCAL: u32 = 1; -pub const OFFLINE_STATUS_REMOTE: u32 = 2; -pub const OFFLINE_STATUS_INCOMPLETE: u32 = 4; -pub const SHIL_LARGE: u32 = 0; -pub const SHIL_SMALL: u32 = 1; -pub const SHIL_EXTRALARGE: u32 = 2; -pub const SHIL_SYSSMALL: u32 = 3; -pub const SHIL_JUMBO: u32 = 4; -pub const SHIL_LAST: u32 = 4; -pub const WC_NETADDRESS: &[u8; 18] = b"msctls_netaddress\0"; -pub const NCM_GETADDRESS: u32 = 1025; -pub const NCM_SETALLOWTYPE: u32 = 1026; -pub const NCM_GETALLOWTYPE: u32 = 1027; -pub const NCM_DISPLAYERRORTIP: u32 = 1028; -pub const PERF_DATA_VERSION: u32 = 1; -pub const PERF_DATA_REVISION: u32 = 1; -pub const PERF_NO_INSTANCES: i32 = -1; -pub const PERF_METADATA_MULTIPLE_INSTANCES: i32 = -2; -pub const PERF_METADATA_NO_INSTANCES: i32 = -3; -pub const PERF_SIZE_DWORD: u32 = 0; -pub const PERF_SIZE_LARGE: u32 = 256; -pub const PERF_SIZE_ZERO: u32 = 512; -pub const PERF_SIZE_VARIABLE_LEN: u32 = 768; -pub const PERF_TYPE_NUMBER: u32 = 0; -pub const PERF_TYPE_COUNTER: u32 = 1024; -pub const PERF_TYPE_TEXT: u32 = 2048; -pub const PERF_TYPE_ZERO: u32 = 3072; -pub const PERF_NUMBER_HEX: u32 = 0; -pub const PERF_NUMBER_DECIMAL: u32 = 65536; -pub const PERF_NUMBER_DEC_1000: u32 = 131072; -pub const PERF_COUNTER_VALUE: u32 = 0; -pub const PERF_COUNTER_RATE: u32 = 65536; -pub const PERF_COUNTER_FRACTION: u32 = 131072; -pub const PERF_COUNTER_BASE: u32 = 196608; -pub const PERF_COUNTER_ELAPSED: u32 = 262144; -pub const PERF_COUNTER_QUEUELEN: u32 = 327680; -pub const PERF_COUNTER_HISTOGRAM: u32 = 393216; -pub const PERF_COUNTER_PRECISION: u32 = 458752; -pub const PERF_TEXT_UNICODE: u32 = 0; -pub const PERF_TEXT_ASCII: u32 = 65536; -pub const PERF_TIMER_TICK: u32 = 0; -pub const PERF_TIMER_100NS: u32 = 1048576; -pub const PERF_OBJECT_TIMER: u32 = 2097152; -pub const PERF_DELTA_COUNTER: u32 = 4194304; -pub const PERF_DELTA_BASE: u32 = 8388608; -pub const PERF_INVERSE_COUNTER: u32 = 16777216; -pub const PERF_MULTI_COUNTER: u32 = 33554432; -pub const PERF_DISPLAY_NO_SUFFIX: u32 = 0; -pub const PERF_DISPLAY_PER_SEC: u32 = 268435456; -pub const PERF_DISPLAY_PERCENT: u32 = 536870912; -pub const PERF_DISPLAY_SECONDS: u32 = 805306368; -pub const PERF_DISPLAY_NOSHOW: u32 = 1073741824; -pub const PERF_COUNTER_COUNTER: u32 = 272696320; -pub const PERF_COUNTER_TIMER: u32 = 541132032; -pub const PERF_COUNTER_QUEUELEN_TYPE: u32 = 4523008; -pub const PERF_COUNTER_LARGE_QUEUELEN_TYPE: u32 = 4523264; -pub const PERF_COUNTER_100NS_QUEUELEN_TYPE: u32 = 5571840; -pub const PERF_COUNTER_OBJ_TIME_QUEUELEN_TYPE: u32 = 6620416; -pub const PERF_COUNTER_BULK_COUNT: u32 = 272696576; -pub const PERF_COUNTER_TEXT: u32 = 2816; -pub const PERF_COUNTER_RAWCOUNT: u32 = 65536; -pub const PERF_COUNTER_LARGE_RAWCOUNT: u32 = 65792; -pub const PERF_COUNTER_RAWCOUNT_HEX: u32 = 0; -pub const PERF_COUNTER_LARGE_RAWCOUNT_HEX: u32 = 256; -pub const PERF_SAMPLE_FRACTION: u32 = 549585920; -pub const PERF_SAMPLE_COUNTER: u32 = 4260864; -pub const PERF_COUNTER_NODATA: u32 = 1073742336; -pub const PERF_COUNTER_TIMER_INV: u32 = 557909248; -pub const PERF_SAMPLE_BASE: u32 = 1073939457; -pub const PERF_AVERAGE_TIMER: u32 = 805438464; -pub const PERF_AVERAGE_BASE: u32 = 1073939458; -pub const PERF_AVERAGE_BULK: u32 = 1073874176; -pub const PERF_OBJ_TIME_TIMER: u32 = 543229184; -pub const PERF_100NSEC_TIMER: u32 = 542180608; -pub const PERF_100NSEC_TIMER_INV: u32 = 558957824; -pub const PERF_COUNTER_MULTI_TIMER: u32 = 574686464; -pub const PERF_COUNTER_MULTI_TIMER_INV: u32 = 591463680; -pub const PERF_COUNTER_MULTI_BASE: u32 = 1107494144; -pub const PERF_100NSEC_MULTI_TIMER: u32 = 575735040; -pub const PERF_100NSEC_MULTI_TIMER_INV: u32 = 592512256; -pub const PERF_RAW_FRACTION: u32 = 537003008; -pub const PERF_LARGE_RAW_FRACTION: u32 = 537003264; -pub const PERF_RAW_BASE: u32 = 1073939459; -pub const PERF_LARGE_RAW_BASE: u32 = 1073939712; -pub const PERF_ELAPSED_TIME: u32 = 807666944; -pub const PERF_COUNTER_HISTOGRAM_TYPE: u32 = 2147483648; -pub const PERF_COUNTER_DELTA: u32 = 4195328; -pub const PERF_COUNTER_LARGE_DELTA: u32 = 4195584; -pub const PERF_PRECISION_SYSTEM_TIMER: u32 = 541525248; -pub const PERF_PRECISION_100NS_TIMER: u32 = 542573824; -pub const PERF_PRECISION_OBJECT_TIMER: u32 = 543622400; -pub const PERF_PRECISION_TIMESTAMP: u32 = 1073939712; -pub const PERF_DETAIL_NOVICE: u32 = 100; -pub const PERF_DETAIL_ADVANCED: u32 = 200; -pub const PERF_DETAIL_EXPERT: u32 = 300; -pub const PERF_DETAIL_WIZARD: u32 = 400; -pub const PERF_NO_UNIQUE_ID: i32 = -1; -pub const MAX_PERF_OBJECTS_IN_QUERY_FUNCTION: u32 = 64; -pub const WINPERF_LOG_NONE: u32 = 0; -pub const WINPERF_LOG_USER: u32 = 1; -pub const WINPERF_LOG_DEBUG: u32 = 2; -pub const WINPERF_LOG_VERBOSE: u32 = 3; -pub const FD_SETSIZE: u32 = 64; -pub const IOCPARM_MASK: u32 = 127; -pub const IOC_VOID: u32 = 536870912; -pub const IOC_OUT: u32 = 1073741824; -pub const IOC_IN: u32 = 2147483648; -pub const IOC_INOUT: u32 = 3221225472; -pub const IPPROTO_IP: u32 = 0; -pub const IPPROTO_ICMP: u32 = 1; -pub const IPPROTO_IGMP: u32 = 2; -pub const IPPROTO_GGP: u32 = 3; -pub const IPPROTO_TCP: u32 = 6; -pub const IPPROTO_PUP: u32 = 12; -pub const IPPROTO_UDP: u32 = 17; -pub const IPPROTO_IDP: u32 = 22; -pub const IPPROTO_ND: u32 = 77; -pub const IPPROTO_RAW: u32 = 255; -pub const IPPROTO_MAX: u32 = 256; -pub const IPPORT_ECHO: u32 = 7; -pub const IPPORT_DISCARD: u32 = 9; -pub const IPPORT_SYSTAT: u32 = 11; -pub const IPPORT_DAYTIME: u32 = 13; -pub const IPPORT_NETSTAT: u32 = 15; -pub const IPPORT_FTP: u32 = 21; -pub const IPPORT_TELNET: u32 = 23; -pub const IPPORT_SMTP: u32 = 25; -pub const IPPORT_TIMESERVER: u32 = 37; -pub const IPPORT_NAMESERVER: u32 = 42; -pub const IPPORT_WHOIS: u32 = 43; -pub const IPPORT_MTP: u32 = 57; -pub const IPPORT_TFTP: u32 = 69; -pub const IPPORT_RJE: u32 = 77; -pub const IPPORT_FINGER: u32 = 79; -pub const IPPORT_TTYLINK: u32 = 87; -pub const IPPORT_SUPDUP: u32 = 95; -pub const IPPORT_EXECSERVER: u32 = 512; -pub const IPPORT_LOGINSERVER: u32 = 513; -pub const IPPORT_CMDSERVER: u32 = 514; -pub const IPPORT_EFSSERVER: u32 = 520; -pub const IPPORT_BIFFUDP: u32 = 512; -pub const IPPORT_WHOSERVER: u32 = 513; -pub const IPPORT_ROUTESERVER: u32 = 520; -pub const IPPORT_RESERVED: u32 = 1024; -pub const IMPLINK_IP: u32 = 155; -pub const IMPLINK_LOWEXPER: u32 = 156; -pub const IMPLINK_HIGHEXPER: u32 = 158; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const INADDR_LOOPBACK: u32 = 2130706433; -pub const INADDR_NONE: u32 = 4294967295; -pub const WSADESCRIPTION_LEN: u32 = 256; -pub const WSASYS_STATUS_LEN: u32 = 128; -pub const IP_OPTIONS: u32 = 1; -pub const IP_MULTICAST_IF: u32 = 2; -pub const IP_MULTICAST_TTL: u32 = 3; -pub const IP_MULTICAST_LOOP: u32 = 4; -pub const IP_ADD_MEMBERSHIP: u32 = 5; -pub const IP_DROP_MEMBERSHIP: u32 = 6; -pub const IP_TTL: u32 = 7; -pub const IP_TOS: u32 = 8; -pub const IP_DONTFRAGMENT: u32 = 9; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const IP_MAX_MEMBERSHIPS: u32 = 20; -pub const SOCKET_ERROR: i32 = -1; -pub const SOCK_STREAM: u32 = 1; -pub const SOCK_DGRAM: u32 = 2; -pub const SOCK_RAW: u32 = 3; -pub const SOCK_RDM: u32 = 4; -pub const SOCK_SEQPACKET: u32 = 5; -pub const SO_DEBUG: u32 = 1; -pub const SO_ACCEPTCONN: u32 = 2; -pub const SO_REUSEADDR: u32 = 4; -pub const SO_KEEPALIVE: u32 = 8; -pub const SO_DONTROUTE: u32 = 16; -pub const SO_BROADCAST: u32 = 32; -pub const SO_USELOOPBACK: u32 = 64; -pub const SO_LINGER: u32 = 128; -pub const SO_OOBINLINE: u32 = 256; -pub const SO_SNDBUF: u32 = 4097; -pub const SO_RCVBUF: u32 = 4098; -pub const SO_SNDLOWAT: u32 = 4099; -pub const SO_RCVLOWAT: u32 = 4100; -pub const SO_SNDTIMEO: u32 = 4101; -pub const SO_RCVTIMEO: u32 = 4102; -pub const SO_ERROR: u32 = 4103; -pub const SO_TYPE: u32 = 4104; -pub const SO_CONNDATA: u32 = 28672; -pub const SO_CONNOPT: u32 = 28673; -pub const SO_DISCDATA: u32 = 28674; -pub const SO_DISCOPT: u32 = 28675; -pub const SO_CONNDATALEN: u32 = 28676; -pub const SO_CONNOPTLEN: u32 = 28677; -pub const SO_DISCDATALEN: u32 = 28678; -pub const SO_DISCOPTLEN: u32 = 28679; -pub const SO_OPENTYPE: u32 = 28680; -pub const SO_SYNCHRONOUS_ALERT: u32 = 16; -pub const SO_SYNCHRONOUS_NONALERT: u32 = 32; -pub const SO_MAXDG: u32 = 28681; -pub const SO_MAXPATHDG: u32 = 28682; -pub const SO_UPDATE_ACCEPT_CONTEXT: u32 = 28683; -pub const SO_CONNECT_TIME: u32 = 28684; -pub const TCP_NODELAY: u32 = 1; -pub const TCP_BSDURGENT: u32 = 28672; -pub const AF_UNSPEC: u32 = 0; -pub const AF_UNIX: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_IMPLINK: u32 = 3; -pub const AF_PUP: u32 = 4; -pub const AF_CHAOS: u32 = 5; -pub const AF_IPX: u32 = 6; -pub const AF_NS: u32 = 6; -pub const AF_ISO: u32 = 7; -pub const AF_OSI: u32 = 7; -pub const AF_ECMA: u32 = 8; -pub const AF_DATAKIT: u32 = 9; -pub const AF_CCITT: u32 = 10; -pub const AF_SNA: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_DLI: u32 = 13; -pub const AF_LAT: u32 = 14; -pub const AF_HYLINK: u32 = 15; -pub const AF_APPLETALK: u32 = 16; -pub const AF_NETBIOS: u32 = 17; -pub const AF_VOICEVIEW: u32 = 18; -pub const AF_FIREFOX: u32 = 19; -pub const AF_UNKNOWN1: u32 = 20; -pub const AF_BAN: u32 = 21; -pub const AF_MAX: u32 = 22; -pub const PF_UNSPEC: u32 = 0; -pub const PF_UNIX: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_IMPLINK: u32 = 3; -pub const PF_PUP: u32 = 4; -pub const PF_CHAOS: u32 = 5; -pub const PF_NS: u32 = 6; -pub const PF_IPX: u32 = 6; -pub const PF_ISO: u32 = 7; -pub const PF_OSI: u32 = 7; -pub const PF_ECMA: u32 = 8; -pub const PF_DATAKIT: u32 = 9; -pub const PF_CCITT: u32 = 10; -pub const PF_SNA: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_DLI: u32 = 13; -pub const PF_LAT: u32 = 14; -pub const PF_HYLINK: u32 = 15; -pub const PF_APPLETALK: u32 = 16; -pub const PF_VOICEVIEW: u32 = 18; -pub const PF_FIREFOX: u32 = 19; -pub const PF_UNKNOWN1: u32 = 20; -pub const PF_BAN: u32 = 21; -pub const PF_MAX: u32 = 22; -pub const SOL_SOCKET: u32 = 65535; -pub const SOMAXCONN: u32 = 5; -pub const MSG_OOB: u32 = 1; -pub const MSG_PEEK: u32 = 2; -pub const MSG_DONTROUTE: u32 = 4; -pub const MSG_MAXIOVLEN: u32 = 16; -pub const MSG_PARTIAL: u32 = 32768; -pub const MAXGETHOSTSTRUCT: u32 = 1024; -pub const FD_READ: u32 = 1; -pub const FD_WRITE: u32 = 2; -pub const FD_OOB: u32 = 4; -pub const FD_ACCEPT: u32 = 8; -pub const FD_CONNECT: u32 = 16; -pub const FD_CLOSE: u32 = 32; -pub const HOST_NOT_FOUND: u32 = 11001; -pub const TRY_AGAIN: u32 = 11002; -pub const NO_RECOVERY: u32 = 11003; -pub const NO_DATA: u32 = 11004; -pub const WSANO_ADDRESS: u32 = 11004; -pub const NO_ADDRESS: u32 = 11004; -pub const TF_DISCONNECT: u32 = 1; -pub const TF_REUSE_SOCKET: u32 = 2; -pub const TF_WRITE_BEHIND: u32 = 4; -pub const ALG_CLASS_ANY: u32 = 0; -pub const ALG_CLASS_SIGNATURE: u32 = 8192; -pub const ALG_CLASS_MSG_ENCRYPT: u32 = 16384; -pub const ALG_CLASS_DATA_ENCRYPT: u32 = 24576; -pub const ALG_CLASS_HASH: u32 = 32768; -pub const ALG_CLASS_KEY_EXCHANGE: u32 = 40960; -pub const ALG_CLASS_ALL: u32 = 57344; -pub const ALG_TYPE_ANY: u32 = 0; -pub const ALG_TYPE_DSS: u32 = 512; -pub const ALG_TYPE_RSA: u32 = 1024; -pub const ALG_TYPE_BLOCK: u32 = 1536; -pub const ALG_TYPE_STREAM: u32 = 2048; -pub const ALG_TYPE_DH: u32 = 2560; -pub const ALG_TYPE_SECURECHANNEL: u32 = 3072; -pub const ALG_TYPE_ECDH: u32 = 3584; -pub const ALG_TYPE_THIRDPARTY: u32 = 4096; -pub const ALG_SID_ANY: u32 = 0; -pub const ALG_SID_THIRDPARTY_ANY: u32 = 0; -pub const ALG_SID_RSA_ANY: u32 = 0; -pub const ALG_SID_RSA_PKCS: u32 = 1; -pub const ALG_SID_RSA_MSATWORK: u32 = 2; -pub const ALG_SID_RSA_ENTRUST: u32 = 3; -pub const ALG_SID_RSA_PGP: u32 = 4; -pub const ALG_SID_DSS_ANY: u32 = 0; -pub const ALG_SID_DSS_PKCS: u32 = 1; -pub const ALG_SID_DSS_DMS: u32 = 2; -pub const ALG_SID_ECDSA: u32 = 3; -pub const ALG_SID_DES: u32 = 1; -pub const ALG_SID_3DES: u32 = 3; -pub const ALG_SID_DESX: u32 = 4; -pub const ALG_SID_IDEA: u32 = 5; -pub const ALG_SID_CAST: u32 = 6; -pub const ALG_SID_SAFERSK64: u32 = 7; -pub const ALG_SID_SAFERSK128: u32 = 8; -pub const ALG_SID_3DES_112: u32 = 9; -pub const ALG_SID_CYLINK_MEK: u32 = 12; -pub const ALG_SID_RC5: u32 = 13; -pub const ALG_SID_AES_128: u32 = 14; -pub const ALG_SID_AES_192: u32 = 15; -pub const ALG_SID_AES_256: u32 = 16; -pub const ALG_SID_AES: u32 = 17; -pub const ALG_SID_SKIPJACK: u32 = 10; -pub const ALG_SID_TEK: u32 = 11; -pub const CRYPT_MODE_CBCI: u32 = 6; -pub const CRYPT_MODE_CFBP: u32 = 7; -pub const CRYPT_MODE_OFBP: u32 = 8; -pub const CRYPT_MODE_CBCOFM: u32 = 9; -pub const CRYPT_MODE_CBCOFMI: u32 = 10; -pub const ALG_SID_RC2: u32 = 2; -pub const ALG_SID_RC4: u32 = 1; -pub const ALG_SID_SEAL: u32 = 2; -pub const ALG_SID_DH_SANDF: u32 = 1; -pub const ALG_SID_DH_EPHEM: u32 = 2; -pub const ALG_SID_AGREED_KEY_ANY: u32 = 3; -pub const ALG_SID_KEA: u32 = 4; -pub const ALG_SID_ECDH: u32 = 5; -pub const ALG_SID_ECDH_EPHEM: u32 = 6; -pub const ALG_SID_MD2: u32 = 1; -pub const ALG_SID_MD4: u32 = 2; -pub const ALG_SID_MD5: u32 = 3; -pub const ALG_SID_SHA: u32 = 4; -pub const ALG_SID_SHA1: u32 = 4; -pub const ALG_SID_MAC: u32 = 5; -pub const ALG_SID_RIPEMD: u32 = 6; -pub const ALG_SID_RIPEMD160: u32 = 7; -pub const ALG_SID_SSL3SHAMD5: u32 = 8; -pub const ALG_SID_HMAC: u32 = 9; -pub const ALG_SID_TLS1PRF: u32 = 10; -pub const ALG_SID_HASH_REPLACE_OWF: u32 = 11; -pub const ALG_SID_SHA_256: u32 = 12; -pub const ALG_SID_SHA_384: u32 = 13; -pub const ALG_SID_SHA_512: u32 = 14; -pub const ALG_SID_SSL3_MASTER: u32 = 1; -pub const ALG_SID_SCHANNEL_MASTER_HASH: u32 = 2; -pub const ALG_SID_SCHANNEL_MAC_KEY: u32 = 3; -pub const ALG_SID_PCT1_MASTER: u32 = 4; -pub const ALG_SID_SSL2_MASTER: u32 = 5; -pub const ALG_SID_TLS1_MASTER: u32 = 6; -pub const ALG_SID_SCHANNEL_ENC_KEY: u32 = 7; -pub const ALG_SID_ECMQV: u32 = 1; -pub const ALG_SID_EXAMPLE: u32 = 80; -pub const CALG_MD2: u32 = 32769; -pub const CALG_MD4: u32 = 32770; -pub const CALG_MD5: u32 = 32771; -pub const CALG_SHA: u32 = 32772; -pub const CALG_SHA1: u32 = 32772; -pub const CALG_MAC: u32 = 32773; -pub const CALG_RSA_SIGN: u32 = 9216; -pub const CALG_DSS_SIGN: u32 = 8704; -pub const CALG_NO_SIGN: u32 = 8192; -pub const CALG_RSA_KEYX: u32 = 41984; -pub const CALG_DES: u32 = 26113; -pub const CALG_3DES_112: u32 = 26121; -pub const CALG_3DES: u32 = 26115; -pub const CALG_DESX: u32 = 26116; -pub const CALG_RC2: u32 = 26114; -pub const CALG_RC4: u32 = 26625; -pub const CALG_SEAL: u32 = 26626; -pub const CALG_DH_SF: u32 = 43521; -pub const CALG_DH_EPHEM: u32 = 43522; -pub const CALG_AGREEDKEY_ANY: u32 = 43523; -pub const CALG_KEA_KEYX: u32 = 43524; -pub const CALG_HUGHES_MD5: u32 = 40963; -pub const CALG_SKIPJACK: u32 = 26122; -pub const CALG_TEK: u32 = 26123; -pub const CALG_CYLINK_MEK: u32 = 26124; -pub const CALG_SSL3_SHAMD5: u32 = 32776; -pub const CALG_SSL3_MASTER: u32 = 19457; -pub const CALG_SCHANNEL_MASTER_HASH: u32 = 19458; -pub const CALG_SCHANNEL_MAC_KEY: u32 = 19459; -pub const CALG_SCHANNEL_ENC_KEY: u32 = 19463; -pub const CALG_PCT1_MASTER: u32 = 19460; -pub const CALG_SSL2_MASTER: u32 = 19461; -pub const CALG_TLS1_MASTER: u32 = 19462; -pub const CALG_RC5: u32 = 26125; -pub const CALG_HMAC: u32 = 32777; -pub const CALG_TLS1PRF: u32 = 32778; -pub const CALG_HASH_REPLACE_OWF: u32 = 32779; -pub const CALG_AES_128: u32 = 26126; -pub const CALG_AES_192: u32 = 26127; -pub const CALG_AES_256: u32 = 26128; -pub const CALG_AES: u32 = 26129; -pub const CALG_SHA_256: u32 = 32780; -pub const CALG_SHA_384: u32 = 32781; -pub const CALG_SHA_512: u32 = 32782; -pub const CALG_ECDH: u32 = 43525; -pub const CALG_ECDH_EPHEM: u32 = 44550; -pub const CALG_ECMQV: u32 = 40961; -pub const CALG_ECDSA: u32 = 8707; -pub const CALG_NULLCIPHER: u32 = 24576; -pub const CALG_THIRDPARTY_KEY_EXCHANGE: u32 = 45056; -pub const CALG_THIRDPARTY_SIGNATURE: u32 = 12288; -pub const CALG_THIRDPARTY_CIPHER: u32 = 28672; -pub const CALG_THIRDPARTY_HASH: u32 = 36864; -pub const CRYPT_VERIFYCONTEXT: u32 = 4026531840; -pub const CRYPT_NEWKEYSET: u32 = 8; -pub const CRYPT_DELETEKEYSET: u32 = 16; -pub const CRYPT_MACHINE_KEYSET: u32 = 32; -pub const CRYPT_SILENT: u32 = 64; -pub const CRYPT_DEFAULT_CONTAINER_OPTIONAL: u32 = 128; -pub const CRYPT_EXPORTABLE: u32 = 1; -pub const CRYPT_USER_PROTECTED: u32 = 2; -pub const CRYPT_CREATE_SALT: u32 = 4; -pub const CRYPT_UPDATE_KEY: u32 = 8; -pub const CRYPT_NO_SALT: u32 = 16; -pub const CRYPT_PREGEN: u32 = 64; -pub const CRYPT_RECIPIENT: u32 = 16; -pub const CRYPT_INITIATOR: u32 = 64; -pub const CRYPT_ONLINE: u32 = 128; -pub const CRYPT_SF: u32 = 256; -pub const CRYPT_CREATE_IV: u32 = 512; -pub const CRYPT_KEK: u32 = 1024; -pub const CRYPT_DATA_KEY: u32 = 2048; -pub const CRYPT_VOLATILE: u32 = 4096; -pub const CRYPT_SGCKEY: u32 = 8192; -pub const CRYPT_USER_PROTECTED_STRONG: u32 = 1048576; -pub const CRYPT_ARCHIVABLE: u32 = 16384; -pub const CRYPT_FORCE_KEY_PROTECTION_HIGH: u32 = 32768; -pub const RSA1024BIT_KEY: u32 = 67108864; -pub const CRYPT_SERVER: u32 = 1024; -pub const KEY_LENGTH_MASK: u32 = 4294901760; -pub const CRYPT_Y_ONLY: u32 = 1; -pub const CRYPT_SSL2_FALLBACK: u32 = 2; -pub const CRYPT_DESTROYKEY: u32 = 4; -pub const CRYPT_OAEP: u32 = 64; -pub const CRYPT_BLOB_VER3: u32 = 128; -pub const CRYPT_IPSEC_HMAC_KEY: u32 = 256; -pub const CRYPT_DECRYPT_RSA_NO_PADDING_CHECK: u32 = 32; -pub const CRYPT_SECRETDIGEST: u32 = 1; -pub const CRYPT_OWF_REPL_LM_HASH: u32 = 1; -pub const CRYPT_LITTLE_ENDIAN: u32 = 1; -pub const CRYPT_NOHASHOID: u32 = 1; -pub const CRYPT_TYPE2_FORMAT: u32 = 2; -pub const CRYPT_X931_FORMAT: u32 = 4; -pub const CRYPT_MACHINE_DEFAULT: u32 = 1; -pub const CRYPT_USER_DEFAULT: u32 = 2; -pub const CRYPT_DELETE_DEFAULT: u32 = 4; -pub const SIMPLEBLOB: u32 = 1; -pub const PUBLICKEYBLOB: u32 = 6; -pub const PRIVATEKEYBLOB: u32 = 7; -pub const PLAINTEXTKEYBLOB: u32 = 8; -pub const OPAQUEKEYBLOB: u32 = 9; -pub const PUBLICKEYBLOBEX: u32 = 10; -pub const SYMMETRICWRAPKEYBLOB: u32 = 11; -pub const KEYSTATEBLOB: u32 = 12; -pub const AT_KEYEXCHANGE: u32 = 1; -pub const AT_SIGNATURE: u32 = 2; -pub const CRYPT_USERDATA: u32 = 1; -pub const KP_IV: u32 = 1; -pub const KP_SALT: u32 = 2; -pub const KP_PADDING: u32 = 3; -pub const KP_MODE: u32 = 4; -pub const KP_MODE_BITS: u32 = 5; -pub const KP_PERMISSIONS: u32 = 6; -pub const KP_ALGID: u32 = 7; -pub const KP_BLOCKLEN: u32 = 8; -pub const KP_KEYLEN: u32 = 9; -pub const KP_SALT_EX: u32 = 10; -pub const KP_P: u32 = 11; -pub const KP_G: u32 = 12; -pub const KP_Q: u32 = 13; -pub const KP_X: u32 = 14; -pub const KP_Y: u32 = 15; -pub const KP_RA: u32 = 16; -pub const KP_RB: u32 = 17; -pub const KP_INFO: u32 = 18; -pub const KP_EFFECTIVE_KEYLEN: u32 = 19; -pub const KP_SCHANNEL_ALG: u32 = 20; -pub const KP_CLIENT_RANDOM: u32 = 21; -pub const KP_SERVER_RANDOM: u32 = 22; -pub const KP_RP: u32 = 23; -pub const KP_PRECOMP_MD5: u32 = 24; -pub const KP_PRECOMP_SHA: u32 = 25; -pub const KP_CERTIFICATE: u32 = 26; -pub const KP_CLEAR_KEY: u32 = 27; -pub const KP_PUB_EX_LEN: u32 = 28; -pub const KP_PUB_EX_VAL: u32 = 29; -pub const KP_KEYVAL: u32 = 30; -pub const KP_ADMIN_PIN: u32 = 31; -pub const KP_KEYEXCHANGE_PIN: u32 = 32; -pub const KP_SIGNATURE_PIN: u32 = 33; -pub const KP_PREHASH: u32 = 34; -pub const KP_ROUNDS: u32 = 35; -pub const KP_OAEP_PARAMS: u32 = 36; -pub const KP_CMS_KEY_INFO: u32 = 37; -pub const KP_CMS_DH_KEY_INFO: u32 = 38; -pub const KP_PUB_PARAMS: u32 = 39; -pub const KP_VERIFY_PARAMS: u32 = 40; -pub const KP_HIGHEST_VERSION: u32 = 41; -pub const KP_GET_USE_COUNT: u32 = 42; -pub const KP_PIN_ID: u32 = 43; -pub const KP_PIN_INFO: u32 = 44; -pub const PKCS5_PADDING: u32 = 1; -pub const RANDOM_PADDING: u32 = 2; -pub const ZERO_PADDING: u32 = 3; -pub const CRYPT_MODE_CBC: u32 = 1; -pub const CRYPT_MODE_ECB: u32 = 2; -pub const CRYPT_MODE_OFB: u32 = 3; -pub const CRYPT_MODE_CFB: u32 = 4; -pub const CRYPT_MODE_CTS: u32 = 5; -pub const CRYPT_ENCRYPT: u32 = 1; -pub const CRYPT_DECRYPT: u32 = 2; -pub const CRYPT_EXPORT: u32 = 4; -pub const CRYPT_READ: u32 = 8; -pub const CRYPT_WRITE: u32 = 16; -pub const CRYPT_MAC: u32 = 32; -pub const CRYPT_EXPORT_KEY: u32 = 64; -pub const CRYPT_IMPORT_KEY: u32 = 128; -pub const CRYPT_ARCHIVE: u32 = 256; -pub const HP_ALGID: u32 = 1; -pub const HP_HASHVAL: u32 = 2; -pub const HP_HASHSIZE: u32 = 4; -pub const HP_HMAC_INFO: u32 = 5; -pub const HP_TLS1PRF_LABEL: u32 = 6; -pub const HP_TLS1PRF_SEED: u32 = 7; -pub const CRYPT_FAILED: u32 = 0; -pub const CRYPT_SUCCEED: u32 = 1; -pub const PP_ENUMALGS: u32 = 1; -pub const PP_ENUMCONTAINERS: u32 = 2; -pub const PP_IMPTYPE: u32 = 3; -pub const PP_NAME: u32 = 4; -pub const PP_VERSION: u32 = 5; -pub const PP_CONTAINER: u32 = 6; -pub const PP_CHANGE_PASSWORD: u32 = 7; -pub const PP_KEYSET_SEC_DESCR: u32 = 8; -pub const PP_CERTCHAIN: u32 = 9; -pub const PP_KEY_TYPE_SUBTYPE: u32 = 10; -pub const PP_PROVTYPE: u32 = 16; -pub const PP_KEYSTORAGE: u32 = 17; -pub const PP_APPLI_CERT: u32 = 18; -pub const PP_SYM_KEYSIZE: u32 = 19; -pub const PP_SESSION_KEYSIZE: u32 = 20; -pub const PP_UI_PROMPT: u32 = 21; -pub const PP_ENUMALGS_EX: u32 = 22; -pub const PP_ENUMMANDROOTS: u32 = 25; -pub const PP_ENUMELECTROOTS: u32 = 26; -pub const PP_KEYSET_TYPE: u32 = 27; -pub const PP_ADMIN_PIN: u32 = 31; -pub const PP_KEYEXCHANGE_PIN: u32 = 32; -pub const PP_SIGNATURE_PIN: u32 = 33; -pub const PP_SIG_KEYSIZE_INC: u32 = 34; -pub const PP_KEYX_KEYSIZE_INC: u32 = 35; -pub const PP_UNIQUE_CONTAINER: u32 = 36; -pub const PP_SGC_INFO: u32 = 37; -pub const PP_USE_HARDWARE_RNG: u32 = 38; -pub const PP_KEYSPEC: u32 = 39; -pub const PP_ENUMEX_SIGNING_PROT: u32 = 40; -pub const PP_CRYPT_COUNT_KEY_USE: u32 = 41; -pub const PP_USER_CERTSTORE: u32 = 42; -pub const PP_SMARTCARD_READER: u32 = 43; -pub const PP_SMARTCARD_GUID: u32 = 45; -pub const PP_ROOT_CERTSTORE: u32 = 46; -pub const PP_SMARTCARD_READER_ICON: u32 = 47; -pub const CRYPT_FIRST: u32 = 1; -pub const CRYPT_NEXT: u32 = 2; -pub const CRYPT_SGC_ENUM: u32 = 4; -pub const CRYPT_IMPL_HARDWARE: u32 = 1; -pub const CRYPT_IMPL_SOFTWARE: u32 = 2; -pub const CRYPT_IMPL_MIXED: u32 = 3; -pub const CRYPT_IMPL_UNKNOWN: u32 = 4; -pub const CRYPT_IMPL_REMOVABLE: u32 = 8; -pub const CRYPT_SEC_DESCR: u32 = 1; -pub const CRYPT_PSTORE: u32 = 2; -pub const CRYPT_UI_PROMPT: u32 = 4; -pub const CRYPT_FLAG_PCT1: u32 = 1; -pub const CRYPT_FLAG_SSL2: u32 = 2; -pub const CRYPT_FLAG_SSL3: u32 = 4; -pub const CRYPT_FLAG_TLS1: u32 = 8; -pub const CRYPT_FLAG_IPSEC: u32 = 16; -pub const CRYPT_FLAG_SIGNING: u32 = 32; -pub const CRYPT_SGC: u32 = 1; -pub const CRYPT_FASTSGC: u32 = 2; -pub const PP_CLIENT_HWND: u32 = 1; -pub const PP_CONTEXT_INFO: u32 = 11; -pub const PP_KEYEXCHANGE_KEYSIZE: u32 = 12; -pub const PP_SIGNATURE_KEYSIZE: u32 = 13; -pub const PP_KEYEXCHANGE_ALG: u32 = 14; -pub const PP_SIGNATURE_ALG: u32 = 15; -pub const PP_DELETEKEY: u32 = 24; -pub const PP_PIN_PROMPT_STRING: u32 = 44; -pub const PP_SECURE_KEYEXCHANGE_PIN: u32 = 47; -pub const PP_SECURE_SIGNATURE_PIN: u32 = 48; -pub const PP_DISMISS_PIN_UI_SEC: u32 = 49; -pub const PP_IS_PFX_EPHEMERAL: u32 = 50; -pub const PROV_RSA_FULL: u32 = 1; -pub const PROV_RSA_SIG: u32 = 2; -pub const PROV_DSS: u32 = 3; -pub const PROV_FORTEZZA: u32 = 4; -pub const PROV_MS_EXCHANGE: u32 = 5; -pub const PROV_SSL: u32 = 6; -pub const PROV_RSA_SCHANNEL: u32 = 12; -pub const PROV_DSS_DH: u32 = 13; -pub const PROV_EC_ECDSA_SIG: u32 = 14; -pub const PROV_EC_ECNRA_SIG: u32 = 15; -pub const PROV_EC_ECDSA_FULL: u32 = 16; -pub const PROV_EC_ECNRA_FULL: u32 = 17; -pub const PROV_DH_SCHANNEL: u32 = 18; -pub const PROV_SPYRUS_LYNKS: u32 = 20; -pub const PROV_RNG: u32 = 21; -pub const PROV_INTEL_SEC: u32 = 22; -pub const PROV_REPLACE_OWF: u32 = 23; -pub const PROV_RSA_AES: u32 = 24; -pub const MS_DEF_PROV_A: &[u8; 43] = b"Microsoft Base Cryptographic Provider v1.0\0"; -pub const MS_DEF_PROV_W: &[u8; 43] = b"Microsoft Base Cryptographic Provider v1.0\0"; -pub const MS_DEF_PROV: &[u8; 43] = b"Microsoft Base Cryptographic Provider v1.0\0"; -pub const MS_ENHANCED_PROV_A: &[u8; 47] = b"Microsoft Enhanced Cryptographic Provider v1.0\0"; -pub const MS_ENHANCED_PROV_W: &[u8; 47] = b"Microsoft Enhanced Cryptographic Provider v1.0\0"; -pub const MS_ENHANCED_PROV: &[u8; 47] = b"Microsoft Enhanced Cryptographic Provider v1.0\0"; -pub const MS_STRONG_PROV_A: &[u8; 40] = b"Microsoft Strong Cryptographic Provider\0"; -pub const MS_STRONG_PROV_W: &[u8; 40] = b"Microsoft Strong Cryptographic Provider\0"; -pub const MS_STRONG_PROV: &[u8; 40] = b"Microsoft Strong Cryptographic Provider\0"; -pub const MS_DEF_RSA_SIG_PROV_A: &[u8; 47] = b"Microsoft RSA Signature Cryptographic Provider\0"; -pub const MS_DEF_RSA_SIG_PROV_W: &[u8; 47] = b"Microsoft RSA Signature Cryptographic Provider\0"; -pub const MS_DEF_RSA_SIG_PROV: &[u8; 47] = b"Microsoft RSA Signature Cryptographic Provider\0"; -pub const MS_DEF_RSA_SCHANNEL_PROV_A: &[u8; 46] = - b"Microsoft RSA SChannel Cryptographic Provider\0"; -pub const MS_DEF_RSA_SCHANNEL_PROV_W: &[u8; 46] = - b"Microsoft RSA SChannel Cryptographic Provider\0"; -pub const MS_DEF_RSA_SCHANNEL_PROV: &[u8; 46] = b"Microsoft RSA SChannel Cryptographic Provider\0"; -pub const MS_DEF_DSS_PROV_A: &[u8; 42] = b"Microsoft Base DSS Cryptographic Provider\0"; -pub const MS_DEF_DSS_PROV_W: &[u8; 42] = b"Microsoft Base DSS Cryptographic Provider\0"; -pub const MS_DEF_DSS_PROV: &[u8; 42] = b"Microsoft Base DSS Cryptographic Provider\0"; -pub const MS_DEF_DSS_DH_PROV_A: &[u8; 61] = - b"Microsoft Base DSS and Diffie-Hellman Cryptographic Provider\0"; -pub const MS_DEF_DSS_DH_PROV_W: &[u8; 61] = - b"Microsoft Base DSS and Diffie-Hellman Cryptographic Provider\0"; -pub const MS_DEF_DSS_DH_PROV: &[u8; 61] = - b"Microsoft Base DSS and Diffie-Hellman Cryptographic Provider\0"; -pub const MS_ENH_DSS_DH_PROV_A: &[u8; 65] = - b"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider\0"; -pub const MS_ENH_DSS_DH_PROV_W: &[u8; 65] = - b"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider\0"; -pub const MS_ENH_DSS_DH_PROV: &[u8; 65] = - b"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider\0"; -pub const MS_DEF_DH_SCHANNEL_PROV_A: &[u8; 45] = b"Microsoft DH SChannel Cryptographic Provider\0"; -pub const MS_DEF_DH_SCHANNEL_PROV_W: &[u8; 45] = b"Microsoft DH SChannel Cryptographic Provider\0"; -pub const MS_DEF_DH_SCHANNEL_PROV: &[u8; 45] = b"Microsoft DH SChannel Cryptographic Provider\0"; -pub const MS_SCARD_PROV_A: &[u8; 42] = b"Microsoft Base Smart Card Crypto Provider\0"; -pub const MS_SCARD_PROV_W: &[u8; 42] = b"Microsoft Base Smart Card Crypto Provider\0"; -pub const MS_SCARD_PROV: &[u8; 42] = b"Microsoft Base Smart Card Crypto Provider\0"; -pub const MS_ENH_RSA_AES_PROV_A: &[u8; 54] = - b"Microsoft Enhanced RSA and AES Cryptographic Provider\0"; -pub const MS_ENH_RSA_AES_PROV_W: &[u8; 54] = - b"Microsoft Enhanced RSA and AES Cryptographic Provider\0"; -pub const MS_ENH_RSA_AES_PROV_XP_A: &[u8; 66] = - b"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)\0"; -pub const MS_ENH_RSA_AES_PROV_XP_W: &[u8; 66] = - b"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)\0"; -pub const MS_ENH_RSA_AES_PROV_XP: &[u8; 66] = - b"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)\0"; -pub const MS_ENH_RSA_AES_PROV: &[u8; 54] = - b"Microsoft Enhanced RSA and AES Cryptographic Provider\0"; -pub const MAXUIDLEN: u32 = 64; -pub const EXPO_OFFLOAD_REG_VALUE: &[u8; 12] = b"ExpoOffload\0"; -pub const EXPO_OFFLOAD_FUNC_NAME: &[u8; 15] = b"OffloadModExpo\0"; -pub const szKEY_CRYPTOAPI_PRIVATE_KEY_OPTIONS: &[u8; 41] = - b"Software\\Policies\\Microsoft\\Cryptography\0"; -pub const szKEY_CACHE_ENABLED: &[u8; 17] = b"CachePrivateKeys\0"; -pub const szKEY_CACHE_SECONDS: &[u8; 26] = b"PrivateKeyLifetimeSeconds\0"; -pub const szPRIV_KEY_CACHE_MAX_ITEMS: &[u8; 21] = b"PrivKeyCacheMaxItems\0"; -pub const cPRIV_KEY_CACHE_MAX_ITEMS_DEFAULT: u32 = 20; -pub const szPRIV_KEY_CACHE_PURGE_INTERVAL_SECONDS: &[u8; 33] = - b"PrivKeyCachePurgeIntervalSeconds\0"; -pub const cPRIV_KEY_CACHE_PURGE_INTERVAL_SECONDS_DEFAULT: u32 = 86400; -pub const CUR_BLOB_VERSION: u32 = 2; -pub const SCHANNEL_MAC_KEY: u32 = 0; -pub const SCHANNEL_ENC_KEY: u32 = 1; -pub const INTERNATIONAL_USAGE: u32 = 1; -pub const BCRYPT_OBJECT_ALIGNMENT: u32 = 16; -pub const BCRYPT_KDF_HASH: &[u8; 5] = b"HASH\0"; -pub const BCRYPT_KDF_HMAC: &[u8; 5] = b"HMAC\0"; -pub const BCRYPT_KDF_TLS_PRF: &[u8; 8] = b"TLS_PRF\0"; -pub const BCRYPT_KDF_SP80056A_CONCAT: &[u8; 17] = b"SP800_56A_CONCAT\0"; -pub const BCRYPT_KDF_RAW_SECRET: &[u8; 9] = b"TRUNCATE\0"; -pub const BCRYPT_KDF_HKDF: &[u8; 5] = b"HKDF\0"; -pub const KDF_HASH_ALGORITHM: u32 = 0; -pub const KDF_SECRET_PREPEND: u32 = 1; -pub const KDF_SECRET_APPEND: u32 = 2; -pub const KDF_HMAC_KEY: u32 = 3; -pub const KDF_TLS_PRF_LABEL: u32 = 4; -pub const KDF_TLS_PRF_SEED: u32 = 5; -pub const KDF_SECRET_HANDLE: u32 = 6; -pub const KDF_TLS_PRF_PROTOCOL: u32 = 7; -pub const KDF_ALGORITHMID: u32 = 8; -pub const KDF_PARTYUINFO: u32 = 9; -pub const KDF_PARTYVINFO: u32 = 10; -pub const KDF_SUPPPUBINFO: u32 = 11; -pub const KDF_SUPPPRIVINFO: u32 = 12; -pub const KDF_LABEL: u32 = 13; -pub const KDF_CONTEXT: u32 = 14; -pub const KDF_SALT: u32 = 15; -pub const KDF_ITERATION_COUNT: u32 = 16; -pub const KDF_GENERIC_PARAMETER: u32 = 17; -pub const KDF_KEYBITLENGTH: u32 = 18; -pub const KDF_HKDF_SALT: u32 = 19; -pub const KDF_HKDF_INFO: u32 = 20; -pub const KDF_USE_SECRET_AS_HMAC_KEY_FLAG: u32 = 1; -pub const BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO_VERSION: u32 = 1; -pub const BCRYPT_AUTH_MODE_CHAIN_CALLS_FLAG: u32 = 1; -pub const BCRYPT_AUTH_MODE_IN_PROGRESS_FLAG: u32 = 2; -pub const BCRYPT_OPAQUE_KEY_BLOB: &[u8; 14] = b"OpaqueKeyBlob\0"; -pub const BCRYPT_KEY_DATA_BLOB: &[u8; 12] = b"KeyDataBlob\0"; -pub const BCRYPT_AES_WRAP_KEY_BLOB: &[u8; 19] = b"Rfc3565KeyWrapBlob\0"; -pub const BCRYPT_OBJECT_LENGTH: &[u8; 13] = b"ObjectLength\0"; -pub const BCRYPT_ALGORITHM_NAME: &[u8; 14] = b"AlgorithmName\0"; -pub const BCRYPT_PROVIDER_HANDLE: &[u8; 15] = b"ProviderHandle\0"; -pub const BCRYPT_CHAINING_MODE: &[u8; 13] = b"ChainingMode\0"; -pub const BCRYPT_BLOCK_LENGTH: &[u8; 12] = b"BlockLength\0"; -pub const BCRYPT_KEY_LENGTH: &[u8; 10] = b"KeyLength\0"; -pub const BCRYPT_KEY_OBJECT_LENGTH: &[u8; 16] = b"KeyObjectLength\0"; -pub const BCRYPT_KEY_STRENGTH: &[u8; 12] = b"KeyStrength\0"; -pub const BCRYPT_KEY_LENGTHS: &[u8; 11] = b"KeyLengths\0"; -pub const BCRYPT_BLOCK_SIZE_LIST: &[u8; 14] = b"BlockSizeList\0"; -pub const BCRYPT_EFFECTIVE_KEY_LENGTH: &[u8; 19] = b"EffectiveKeyLength\0"; -pub const BCRYPT_HASH_LENGTH: &[u8; 17] = b"HashDigestLength\0"; -pub const BCRYPT_HASH_OID_LIST: &[u8; 12] = b"HashOIDList\0"; -pub const BCRYPT_PADDING_SCHEMES: &[u8; 15] = b"PaddingSchemes\0"; -pub const BCRYPT_SIGNATURE_LENGTH: &[u8; 16] = b"SignatureLength\0"; -pub const BCRYPT_HASH_BLOCK_LENGTH: &[u8; 16] = b"HashBlockLength\0"; -pub const BCRYPT_AUTH_TAG_LENGTH: &[u8; 14] = b"AuthTagLength\0"; -pub const BCRYPT_PRIMITIVE_TYPE: &[u8; 14] = b"PrimitiveType\0"; -pub const BCRYPT_IS_KEYED_HASH: &[u8; 12] = b"IsKeyedHash\0"; -pub const BCRYPT_IS_REUSABLE_HASH: &[u8; 15] = b"IsReusableHash\0"; -pub const BCRYPT_MESSAGE_BLOCK_LENGTH: &[u8; 19] = b"MessageBlockLength\0"; -pub const BCRYPT_PUBLIC_KEY_LENGTH: &[u8; 16] = b"PublicKeyLength\0"; -pub const BCRYPT_PCP_PLATFORM_TYPE_PROPERTY: &[u8; 18] = b"PCP_PLATFORM_TYPE\0"; -pub const BCRYPT_PCP_PROVIDER_VERSION_PROPERTY: &[u8; 21] = b"PCP_PROVIDER_VERSION\0"; -pub const BCRYPT_MULTI_OBJECT_LENGTH: &[u8; 18] = b"MultiObjectLength\0"; -pub const BCRYPT_IS_IFX_TPM_WEAK_KEY: &[u8; 16] = b"IsIfxTpmWeakKey\0"; -pub const BCRYPT_HKDF_HASH_ALGORITHM: &[u8; 18] = b"HkdfHashAlgorithm\0"; -pub const BCRYPT_HKDF_SALT_AND_FINALIZE: &[u8; 20] = b"HkdfSaltAndFinalize\0"; -pub const BCRYPT_HKDF_PRK_AND_FINALIZE: &[u8; 19] = b"HkdfPrkAndFinalize\0"; -pub const BCRYPT_INITIALIZATION_VECTOR: &[u8; 3] = b"IV\0"; -pub const BCRYPT_CHAIN_MODE_NA: &[u8; 16] = b"ChainingModeN/A\0"; -pub const BCRYPT_CHAIN_MODE_CBC: &[u8; 16] = b"ChainingModeCBC\0"; -pub const BCRYPT_CHAIN_MODE_ECB: &[u8; 16] = b"ChainingModeECB\0"; -pub const BCRYPT_CHAIN_MODE_CFB: &[u8; 16] = b"ChainingModeCFB\0"; -pub const BCRYPT_CHAIN_MODE_CCM: &[u8; 16] = b"ChainingModeCCM\0"; -pub const BCRYPT_CHAIN_MODE_GCM: &[u8; 16] = b"ChainingModeGCM\0"; -pub const BCRYPT_SUPPORTED_PAD_ROUTER: u32 = 1; -pub const BCRYPT_SUPPORTED_PAD_PKCS1_ENC: u32 = 2; -pub const BCRYPT_SUPPORTED_PAD_PKCS1_SIG: u32 = 4; -pub const BCRYPT_SUPPORTED_PAD_OAEP: u32 = 8; -pub const BCRYPT_SUPPORTED_PAD_PSS: u32 = 16; -pub const BCRYPT_PROV_DISPATCH: u32 = 1; -pub const BCRYPT_BLOCK_PADDING: u32 = 1; -pub const BCRYPT_GENERATE_IV: u32 = 32; -pub const BCRYPT_PAD_NONE: u32 = 1; -pub const BCRYPT_PAD_PKCS1: u32 = 2; -pub const BCRYPT_PAD_OAEP: u32 = 4; -pub const BCRYPT_PAD_PSS: u32 = 8; -pub const BCRYPT_PAD_PKCS1_OPTIONAL_HASH_OID: u32 = 16; -pub const BCRYPTBUFFER_VERSION: u32 = 0; -pub const BCRYPT_PUBLIC_KEY_BLOB: &[u8; 11] = b"PUBLICBLOB\0"; -pub const BCRYPT_PRIVATE_KEY_BLOB: &[u8; 12] = b"PRIVATEBLOB\0"; -pub const BCRYPT_RSAPUBLIC_BLOB: &[u8; 14] = b"RSAPUBLICBLOB\0"; -pub const BCRYPT_RSAPRIVATE_BLOB: &[u8; 15] = b"RSAPRIVATEBLOB\0"; -pub const LEGACY_RSAPUBLIC_BLOB: &[u8; 15] = b"CAPIPUBLICBLOB\0"; -pub const LEGACY_RSAPRIVATE_BLOB: &[u8; 16] = b"CAPIPRIVATEBLOB\0"; -pub const BCRYPT_RSAPUBLIC_MAGIC: u32 = 826364754; -pub const BCRYPT_RSAPRIVATE_MAGIC: u32 = 843141970; -pub const BCRYPT_RSAFULLPRIVATE_BLOB: &[u8; 19] = b"RSAFULLPRIVATEBLOB\0"; -pub const BCRYPT_RSAFULLPRIVATE_MAGIC: u32 = 859919186; -pub const BCRYPT_GLOBAL_PARAMETERS: &[u8; 21] = b"SecretAgreementParam\0"; -pub const BCRYPT_PRIVATE_KEY: &[u8; 11] = b"PrivKeyVal\0"; -pub const BCRYPT_ECCPUBLIC_BLOB: &[u8; 14] = b"ECCPUBLICBLOB\0"; -pub const BCRYPT_ECCPRIVATE_BLOB: &[u8; 15] = b"ECCPRIVATEBLOB\0"; -pub const BCRYPT_ECCFULLPUBLIC_BLOB: &[u8; 18] = b"ECCFULLPUBLICBLOB\0"; -pub const BCRYPT_ECCFULLPRIVATE_BLOB: &[u8; 19] = b"ECCFULLPRIVATEBLOB\0"; -pub const SSL_ECCPUBLIC_BLOB: &[u8; 17] = b"SSLECCPUBLICBLOB\0"; -pub const BCRYPT_ECDH_PUBLIC_P256_MAGIC: u32 = 827016005; -pub const BCRYPT_ECDH_PRIVATE_P256_MAGIC: u32 = 843793221; -pub const BCRYPT_ECDH_PUBLIC_P384_MAGIC: u32 = 860570437; -pub const BCRYPT_ECDH_PRIVATE_P384_MAGIC: u32 = 877347653; -pub const BCRYPT_ECDH_PUBLIC_P521_MAGIC: u32 = 894124869; -pub const BCRYPT_ECDH_PRIVATE_P521_MAGIC: u32 = 910902085; -pub const BCRYPT_ECDH_PUBLIC_GENERIC_MAGIC: u32 = 1347109701; -pub const BCRYPT_ECDH_PRIVATE_GENERIC_MAGIC: u32 = 1447772997; -pub const BCRYPT_ECDSA_PUBLIC_P256_MAGIC: u32 = 827540293; -pub const BCRYPT_ECDSA_PRIVATE_P256_MAGIC: u32 = 844317509; -pub const BCRYPT_ECDSA_PUBLIC_P384_MAGIC: u32 = 861094725; -pub const BCRYPT_ECDSA_PRIVATE_P384_MAGIC: u32 = 877871941; -pub const BCRYPT_ECDSA_PUBLIC_P521_MAGIC: u32 = 894649157; -pub const BCRYPT_ECDSA_PRIVATE_P521_MAGIC: u32 = 911426373; -pub const BCRYPT_ECDSA_PUBLIC_GENERIC_MAGIC: u32 = 1346650949; -pub const BCRYPT_ECDSA_PRIVATE_GENERIC_MAGIC: u32 = 1447314245; -pub const BCRYPT_ECC_FULLKEY_BLOB_V1: u32 = 1; -pub const BCRYPT_DH_PUBLIC_BLOB: &[u8; 13] = b"DHPUBLICBLOB\0"; -pub const BCRYPT_DH_PRIVATE_BLOB: &[u8; 14] = b"DHPRIVATEBLOB\0"; -pub const LEGACY_DH_PUBLIC_BLOB: &[u8; 17] = b"CAPIDHPUBLICBLOB\0"; -pub const LEGACY_DH_PRIVATE_BLOB: &[u8; 18] = b"CAPIDHPRIVATEBLOB\0"; -pub const BCRYPT_DH_PUBLIC_MAGIC: u32 = 1112557636; -pub const BCRYPT_DH_PRIVATE_MAGIC: u32 = 1448101956; -pub const BCRYPT_DH_PARAMETERS: &[u8; 13] = b"DHParameters\0"; -pub const BCRYPT_DH_PARAMETERS_MAGIC: u32 = 1297107012; -pub const BCRYPT_DSA_PUBLIC_BLOB: &[u8; 14] = b"DSAPUBLICBLOB\0"; -pub const BCRYPT_DSA_PRIVATE_BLOB: &[u8; 15] = b"DSAPRIVATEBLOB\0"; -pub const LEGACY_DSA_PUBLIC_BLOB: &[u8; 18] = b"CAPIDSAPUBLICBLOB\0"; -pub const LEGACY_DSA_PRIVATE_BLOB: &[u8; 19] = b"CAPIDSAPRIVATEBLOB\0"; -pub const LEGACY_DSA_V2_PUBLIC_BLOB: &[u8; 20] = b"V2CAPIDSAPUBLICBLOB\0"; -pub const LEGACY_DSA_V2_PRIVATE_BLOB: &[u8; 21] = b"V2CAPIDSAPRIVATEBLOB\0"; -pub const BCRYPT_DSA_PUBLIC_MAGIC: u32 = 1112560452; -pub const BCRYPT_DSA_PRIVATE_MAGIC: u32 = 1448104772; -pub const BCRYPT_DSA_PUBLIC_MAGIC_V2: u32 = 843206724; -pub const BCRYPT_DSA_PRIVATE_MAGIC_V2: u32 = 844517444; -pub const BCRYPT_KEY_DATA_BLOB_MAGIC: u32 = 1296188491; -pub const BCRYPT_KEY_DATA_BLOB_VERSION1: u32 = 1; -pub const BCRYPT_DSA_PARAMETERS: &[u8; 14] = b"DSAParameters\0"; -pub const BCRYPT_DSA_PARAMETERS_MAGIC: u32 = 1297109828; -pub const BCRYPT_DSA_PARAMETERS_MAGIC_V2: u32 = 843927620; -pub const BCRYPT_ECC_PARAMETERS: &[u8; 14] = b"ECCParameters\0"; -pub const BCRYPT_ECC_CURVE_NAME: &[u8; 13] = b"ECCCurveName\0"; -pub const BCRYPT_ECC_CURVE_NAME_LIST: &[u8; 17] = b"ECCCurveNameList\0"; -pub const BCRYPT_ECC_PARAMETERS_MAGIC: u32 = 1346585413; -pub const BCRYPT_ECC_CURVE_BRAINPOOLP160R1: &[u8; 16] = b"brainpoolP160r1\0"; -pub const BCRYPT_ECC_CURVE_BRAINPOOLP160T1: &[u8; 16] = b"brainpoolP160t1\0"; -pub const BCRYPT_ECC_CURVE_BRAINPOOLP192R1: &[u8; 16] = b"brainpoolP192r1\0"; -pub const BCRYPT_ECC_CURVE_BRAINPOOLP192T1: &[u8; 16] = b"brainpoolP192t1\0"; -pub const BCRYPT_ECC_CURVE_BRAINPOOLP224R1: &[u8; 16] = b"brainpoolP224r1\0"; -pub const BCRYPT_ECC_CURVE_BRAINPOOLP224T1: &[u8; 16] = b"brainpoolP224t1\0"; -pub const BCRYPT_ECC_CURVE_BRAINPOOLP256R1: &[u8; 16] = b"brainpoolP256r1\0"; -pub const BCRYPT_ECC_CURVE_BRAINPOOLP256T1: &[u8; 16] = b"brainpoolP256t1\0"; -pub const BCRYPT_ECC_CURVE_BRAINPOOLP320R1: &[u8; 16] = b"brainpoolP320r1\0"; -pub const BCRYPT_ECC_CURVE_BRAINPOOLP320T1: &[u8; 16] = b"brainpoolP320t1\0"; -pub const BCRYPT_ECC_CURVE_BRAINPOOLP384R1: &[u8; 16] = b"brainpoolP384r1\0"; -pub const BCRYPT_ECC_CURVE_BRAINPOOLP384T1: &[u8; 16] = b"brainpoolP384t1\0"; -pub const BCRYPT_ECC_CURVE_BRAINPOOLP512R1: &[u8; 16] = b"brainpoolP512r1\0"; -pub const BCRYPT_ECC_CURVE_BRAINPOOLP512T1: &[u8; 16] = b"brainpoolP512t1\0"; -pub const BCRYPT_ECC_CURVE_25519: &[u8; 11] = b"curve25519\0"; -pub const BCRYPT_ECC_CURVE_EC192WAPI: &[u8; 10] = b"ec192wapi\0"; -pub const BCRYPT_ECC_CURVE_NISTP192: &[u8; 9] = b"nistP192\0"; -pub const BCRYPT_ECC_CURVE_NISTP224: &[u8; 9] = b"nistP224\0"; -pub const BCRYPT_ECC_CURVE_NISTP256: &[u8; 9] = b"nistP256\0"; -pub const BCRYPT_ECC_CURVE_NISTP384: &[u8; 9] = b"nistP384\0"; -pub const BCRYPT_ECC_CURVE_NISTP521: &[u8; 9] = b"nistP521\0"; -pub const BCRYPT_ECC_CURVE_NUMSP256T1: &[u8; 11] = b"numsP256t1\0"; -pub const BCRYPT_ECC_CURVE_NUMSP384T1: &[u8; 11] = b"numsP384t1\0"; -pub const BCRYPT_ECC_CURVE_NUMSP512T1: &[u8; 11] = b"numsP512t1\0"; -pub const BCRYPT_ECC_CURVE_SECP160K1: &[u8; 10] = b"secP160k1\0"; -pub const BCRYPT_ECC_CURVE_SECP160R1: &[u8; 10] = b"secP160r1\0"; -pub const BCRYPT_ECC_CURVE_SECP160R2: &[u8; 10] = b"secP160r2\0"; -pub const BCRYPT_ECC_CURVE_SECP192K1: &[u8; 10] = b"secP192k1\0"; -pub const BCRYPT_ECC_CURVE_SECP192R1: &[u8; 10] = b"secP192r1\0"; -pub const BCRYPT_ECC_CURVE_SECP224K1: &[u8; 10] = b"secP224k1\0"; -pub const BCRYPT_ECC_CURVE_SECP224R1: &[u8; 10] = b"secP224r1\0"; -pub const BCRYPT_ECC_CURVE_SECP256K1: &[u8; 10] = b"secP256k1\0"; -pub const BCRYPT_ECC_CURVE_SECP256R1: &[u8; 10] = b"secP256r1\0"; -pub const BCRYPT_ECC_CURVE_SECP384R1: &[u8; 10] = b"secP384r1\0"; -pub const BCRYPT_ECC_CURVE_SECP521R1: &[u8; 10] = b"secP521r1\0"; -pub const BCRYPT_ECC_CURVE_WTLS7: &[u8; 6] = b"wtls7\0"; -pub const BCRYPT_ECC_CURVE_WTLS9: &[u8; 6] = b"wtls9\0"; -pub const BCRYPT_ECC_CURVE_WTLS12: &[u8; 7] = b"wtls12\0"; -pub const BCRYPT_ECC_CURVE_X962P192V1: &[u8; 11] = b"x962P192v1\0"; -pub const BCRYPT_ECC_CURVE_X962P192V2: &[u8; 11] = b"x962P192v2\0"; -pub const BCRYPT_ECC_CURVE_X962P192V3: &[u8; 11] = b"x962P192v3\0"; -pub const BCRYPT_ECC_CURVE_X962P239V1: &[u8; 11] = b"x962P239v1\0"; -pub const BCRYPT_ECC_CURVE_X962P239V2: &[u8; 11] = b"x962P239v2\0"; -pub const BCRYPT_ECC_CURVE_X962P239V3: &[u8; 11] = b"x962P239v3\0"; -pub const BCRYPT_ECC_CURVE_X962P256V1: &[u8; 11] = b"x962P256v1\0"; -pub const MS_PRIMITIVE_PROVIDER: &[u8; 29] = b"Microsoft Primitive Provider\0"; -pub const MS_PLATFORM_CRYPTO_PROVIDER: &[u8; 35] = b"Microsoft Platform Crypto Provider\0"; -pub const BCRYPT_RSA_ALGORITHM: &[u8; 4] = b"RSA\0"; -pub const BCRYPT_RSA_SIGN_ALGORITHM: &[u8; 9] = b"RSA_SIGN\0"; -pub const BCRYPT_DH_ALGORITHM: &[u8; 3] = b"DH\0"; -pub const BCRYPT_DSA_ALGORITHM: &[u8; 4] = b"DSA\0"; -pub const BCRYPT_RC2_ALGORITHM: &[u8; 4] = b"RC2\0"; -pub const BCRYPT_RC4_ALGORITHM: &[u8; 4] = b"RC4\0"; -pub const BCRYPT_AES_ALGORITHM: &[u8; 4] = b"AES\0"; -pub const BCRYPT_DES_ALGORITHM: &[u8; 4] = b"DES\0"; -pub const BCRYPT_DESX_ALGORITHM: &[u8; 5] = b"DESX\0"; -pub const BCRYPT_3DES_ALGORITHM: &[u8; 5] = b"3DES\0"; -pub const BCRYPT_3DES_112_ALGORITHM: &[u8; 9] = b"3DES_112\0"; -pub const BCRYPT_MD2_ALGORITHM: &[u8; 4] = b"MD2\0"; -pub const BCRYPT_MD4_ALGORITHM: &[u8; 4] = b"MD4\0"; -pub const BCRYPT_MD5_ALGORITHM: &[u8; 4] = b"MD5\0"; -pub const BCRYPT_SHA1_ALGORITHM: &[u8; 5] = b"SHA1\0"; -pub const BCRYPT_SHA256_ALGORITHM: &[u8; 7] = b"SHA256\0"; -pub const BCRYPT_SHA384_ALGORITHM: &[u8; 7] = b"SHA384\0"; -pub const BCRYPT_SHA512_ALGORITHM: &[u8; 7] = b"SHA512\0"; -pub const BCRYPT_AES_GMAC_ALGORITHM: &[u8; 9] = b"AES-GMAC\0"; -pub const BCRYPT_AES_CMAC_ALGORITHM: &[u8; 9] = b"AES-CMAC\0"; -pub const BCRYPT_ECDSA_P256_ALGORITHM: &[u8; 11] = b"ECDSA_P256\0"; -pub const BCRYPT_ECDSA_P384_ALGORITHM: &[u8; 11] = b"ECDSA_P384\0"; -pub const BCRYPT_ECDSA_P521_ALGORITHM: &[u8; 11] = b"ECDSA_P521\0"; -pub const BCRYPT_ECDH_P256_ALGORITHM: &[u8; 10] = b"ECDH_P256\0"; -pub const BCRYPT_ECDH_P384_ALGORITHM: &[u8; 10] = b"ECDH_P384\0"; -pub const BCRYPT_ECDH_P521_ALGORITHM: &[u8; 10] = b"ECDH_P521\0"; -pub const BCRYPT_RNG_ALGORITHM: &[u8; 4] = b"RNG\0"; -pub const BCRYPT_RNG_FIPS186_DSA_ALGORITHM: &[u8; 14] = b"FIPS186DSARNG\0"; -pub const BCRYPT_RNG_DUAL_EC_ALGORITHM: &[u8; 10] = b"DUALECRNG\0"; -pub const BCRYPT_SP800108_CTR_HMAC_ALGORITHM: &[u8; 19] = b"SP800_108_CTR_HMAC\0"; -pub const BCRYPT_SP80056A_CONCAT_ALGORITHM: &[u8; 17] = b"SP800_56A_CONCAT\0"; -pub const BCRYPT_PBKDF2_ALGORITHM: &[u8; 7] = b"PBKDF2\0"; -pub const BCRYPT_CAPI_KDF_ALGORITHM: &[u8; 9] = b"CAPI_KDF\0"; -pub const BCRYPT_TLS1_1_KDF_ALGORITHM: &[u8; 11] = b"TLS1_1_KDF\0"; -pub const BCRYPT_TLS1_2_KDF_ALGORITHM: &[u8; 11] = b"TLS1_2_KDF\0"; -pub const BCRYPT_ECDSA_ALGORITHM: &[u8; 6] = b"ECDSA\0"; -pub const BCRYPT_ECDH_ALGORITHM: &[u8; 5] = b"ECDH\0"; -pub const BCRYPT_XTS_AES_ALGORITHM: &[u8; 8] = b"XTS-AES\0"; -pub const BCRYPT_HKDF_ALGORITHM: &[u8; 5] = b"HKDF\0"; -pub const BCRYPT_CHACHA20_POLY1305_ALGORITHM: &[u8; 18] = b"CHACHA20_POLY1305\0"; -pub const BCRYPT_CIPHER_INTERFACE: u32 = 1; -pub const BCRYPT_HASH_INTERFACE: u32 = 2; -pub const BCRYPT_ASYMMETRIC_ENCRYPTION_INTERFACE: u32 = 3; -pub const BCRYPT_SECRET_AGREEMENT_INTERFACE: u32 = 4; -pub const BCRYPT_SIGNATURE_INTERFACE: u32 = 5; -pub const BCRYPT_RNG_INTERFACE: u32 = 6; -pub const BCRYPT_KEY_DERIVATION_INTERFACE: u32 = 7; -pub const BCRYPT_ALG_HANDLE_HMAC_FLAG: u32 = 8; -pub const BCRYPT_HASH_REUSABLE_FLAG: u32 = 32; -pub const BCRYPT_CAPI_AES_FLAG: u32 = 16; -pub const BCRYPT_MULTI_FLAG: u32 = 64; -pub const BCRYPT_TLS_CBC_HMAC_VERIFY_FLAG: u32 = 4; -pub const BCRYPT_BUFFERS_LOCKED_FLAG: u32 = 64; -pub const BCRYPT_EXTENDED_KEYSIZE: u32 = 128; -pub const BCRYPT_ENABLE_INCOMPATIBLE_FIPS_CHECKS: u32 = 256; -pub const BCRYPT_CIPHER_OPERATION: u32 = 1; -pub const BCRYPT_HASH_OPERATION: u32 = 2; -pub const BCRYPT_ASYMMETRIC_ENCRYPTION_OPERATION: u32 = 4; -pub const BCRYPT_SECRET_AGREEMENT_OPERATION: u32 = 8; -pub const BCRYPT_SIGNATURE_OPERATION: u32 = 16; -pub const BCRYPT_RNG_OPERATION: u32 = 32; -pub const BCRYPT_KEY_DERIVATION_OPERATION: u32 = 64; -pub const BCRYPT_PUBLIC_KEY_FLAG: u32 = 1; -pub const BCRYPT_PRIVATE_KEY_FLAG: u32 = 2; -pub const BCRYPT_NO_KEY_VALIDATION: u32 = 8; -pub const BCRYPT_KEY_VALIDATION_RANGE: u32 = 16; -pub const BCRYPT_KEY_VALIDATION_RANGE_AND_ORDER: u32 = 24; -pub const BCRYPT_KEY_VALIDATION_REGENERATE: u32 = 32; -pub const BCRYPT_RNG_USE_ENTROPY_IN_BUFFER: u32 = 1; -pub const BCRYPT_USE_SYSTEM_PREFERRED_RNG: u32 = 2; -pub const BCRYPT_HASH_INTERFACE_MAJORVERSION_2: u32 = 2; -pub const CRYPT_MIN_DEPENDENCIES: u32 = 1; -pub const CRYPT_PROCESS_ISOLATE: u32 = 65536; -pub const CRYPT_UM: u32 = 1; -pub const CRYPT_KM: u32 = 2; -pub const CRYPT_MM: u32 = 3; -pub const CRYPT_ANY: u32 = 4; -pub const CRYPT_OVERWRITE: u32 = 1; -pub const CRYPT_LOCAL: u32 = 1; -pub const CRYPT_DOMAIN: u32 = 2; -pub const CRYPT_EXCLUSIVE: u32 = 1; -pub const CRYPT_OVERRIDE: u32 = 65536; -pub const CRYPT_ALL_FUNCTIONS: u32 = 1; -pub const CRYPT_ALL_PROVIDERS: u32 = 2; -pub const CRYPT_PRIORITY_TOP: u32 = 0; -pub const CRYPT_PRIORITY_BOTTOM: u32 = 4294967295; -pub const CRYPT_DEFAULT_CONTEXT: &[u8; 8] = b"Default\0"; -pub const NCRYPT_MAX_KEY_NAME_LENGTH: u32 = 512; -pub const NCRYPT_MAX_ALG_ID_LENGTH: u32 = 512; -pub const MS_KEY_STORAGE_PROVIDER: &[u8; 40] = b"Microsoft Software Key Storage Provider\0"; -pub const MS_SMART_CARD_KEY_STORAGE_PROVIDER: &[u8; 42] = - b"Microsoft Smart Card Key Storage Provider\0"; -pub const MS_PLATFORM_KEY_STORAGE_PROVIDER: &[u8; 35] = b"Microsoft Platform Crypto Provider\0"; -pub const MS_NGC_KEY_STORAGE_PROVIDER: &[u8; 40] = b"Microsoft Passport Key Storage Provider\0"; -pub const TPM_RSA_SRK_SEAL_KEY: &[u8; 68] = - b"MICROSOFT_PCP_KSP_RSA_SEAL_KEY_3BD1C4BF-004E-4E2F-8A4D-0BF633DCB074\0"; -pub const NCRYPT_RSA_ALGORITHM: &[u8; 4] = b"RSA\0"; -pub const NCRYPT_RSA_SIGN_ALGORITHM: &[u8; 9] = b"RSA_SIGN\0"; -pub const NCRYPT_DH_ALGORITHM: &[u8; 3] = b"DH\0"; -pub const NCRYPT_DSA_ALGORITHM: &[u8; 4] = b"DSA\0"; -pub const NCRYPT_MD2_ALGORITHM: &[u8; 4] = b"MD2\0"; -pub const NCRYPT_MD4_ALGORITHM: &[u8; 4] = b"MD4\0"; -pub const NCRYPT_MD5_ALGORITHM: &[u8; 4] = b"MD5\0"; -pub const NCRYPT_SHA1_ALGORITHM: &[u8; 5] = b"SHA1\0"; -pub const NCRYPT_SHA256_ALGORITHM: &[u8; 7] = b"SHA256\0"; -pub const NCRYPT_SHA384_ALGORITHM: &[u8; 7] = b"SHA384\0"; -pub const NCRYPT_SHA512_ALGORITHM: &[u8; 7] = b"SHA512\0"; -pub const NCRYPT_ECDSA_P256_ALGORITHM: &[u8; 11] = b"ECDSA_P256\0"; -pub const NCRYPT_ECDSA_P384_ALGORITHM: &[u8; 11] = b"ECDSA_P384\0"; -pub const NCRYPT_ECDSA_P521_ALGORITHM: &[u8; 11] = b"ECDSA_P521\0"; -pub const NCRYPT_ECDH_P256_ALGORITHM: &[u8; 10] = b"ECDH_P256\0"; -pub const NCRYPT_ECDH_P384_ALGORITHM: &[u8; 10] = b"ECDH_P384\0"; -pub const NCRYPT_ECDH_P521_ALGORITHM: &[u8; 10] = b"ECDH_P521\0"; -pub const NCRYPT_AES_ALGORITHM: &[u8; 4] = b"AES\0"; -pub const NCRYPT_RC2_ALGORITHM: &[u8; 4] = b"RC2\0"; -pub const NCRYPT_3DES_ALGORITHM: &[u8; 5] = b"3DES\0"; -pub const NCRYPT_DES_ALGORITHM: &[u8; 4] = b"DES\0"; -pub const NCRYPT_DESX_ALGORITHM: &[u8; 5] = b"DESX\0"; -pub const NCRYPT_3DES_112_ALGORITHM: &[u8; 9] = b"3DES_112\0"; -pub const NCRYPT_SP800108_CTR_HMAC_ALGORITHM: &[u8; 19] = b"SP800_108_CTR_HMAC\0"; -pub const NCRYPT_SP80056A_CONCAT_ALGORITHM: &[u8; 17] = b"SP800_56A_CONCAT\0"; -pub const NCRYPT_PBKDF2_ALGORITHM: &[u8; 7] = b"PBKDF2\0"; -pub const NCRYPT_CAPI_KDF_ALGORITHM: &[u8; 9] = b"CAPI_KDF\0"; -pub const NCRYPT_ECDSA_ALGORITHM: &[u8; 6] = b"ECDSA\0"; -pub const NCRYPT_ECDH_ALGORITHM: &[u8; 5] = b"ECDH\0"; -pub const NCRYPT_KEY_STORAGE_ALGORITHM: &[u8; 12] = b"KEY_STORAGE\0"; -pub const NCRYPT_HMAC_SHA256_ALGORITHM: &[u8; 12] = b"HMAC-SHA256\0"; -pub const NCRYPT_CIPHER_INTERFACE: u32 = 1; -pub const NCRYPT_HASH_INTERFACE: u32 = 2; -pub const NCRYPT_ASYMMETRIC_ENCRYPTION_INTERFACE: u32 = 3; -pub const NCRYPT_SECRET_AGREEMENT_INTERFACE: u32 = 4; -pub const NCRYPT_SIGNATURE_INTERFACE: u32 = 5; -pub const NCRYPT_KEY_DERIVATION_INTERFACE: u32 = 7; -pub const NCRYPT_KEY_STORAGE_INTERFACE: u32 = 65537; -pub const NCRYPT_SCHANNEL_INTERFACE: u32 = 65538; -pub const NCRYPT_SCHANNEL_SIGNATURE_INTERFACE: u32 = 65539; -pub const NCRYPT_KEY_PROTECTION_INTERFACE: u32 = 65540; -pub const NCRYPT_RSA_ALGORITHM_GROUP: &[u8; 4] = b"RSA\0"; -pub const NCRYPT_DH_ALGORITHM_GROUP: &[u8; 3] = b"DH\0"; -pub const NCRYPT_DSA_ALGORITHM_GROUP: &[u8; 4] = b"DSA\0"; -pub const NCRYPT_ECDSA_ALGORITHM_GROUP: &[u8; 6] = b"ECDSA\0"; -pub const NCRYPT_ECDH_ALGORITHM_GROUP: &[u8; 5] = b"ECDH\0"; -pub const NCRYPT_AES_ALGORITHM_GROUP: &[u8; 4] = b"AES\0"; -pub const NCRYPT_RC2_ALGORITHM_GROUP: &[u8; 4] = b"RC2\0"; -pub const NCRYPT_DES_ALGORITHM_GROUP: &[u8; 4] = b"DES\0"; -pub const NCRYPT_KEY_DERIVATION_GROUP: &[u8; 15] = b"KEY_DERIVATION\0"; -pub const NCRYPTBUFFER_VERSION: u32 = 0; -pub const NCRYPTBUFFER_EMPTY: u32 = 0; -pub const NCRYPTBUFFER_DATA: u32 = 1; -pub const NCRYPTBUFFER_PROTECTION_DESCRIPTOR_STRING: u32 = 3; -pub const NCRYPTBUFFER_PROTECTION_FLAGS: u32 = 4; -pub const NCRYPTBUFFER_SSL_CLIENT_RANDOM: u32 = 20; -pub const NCRYPTBUFFER_SSL_SERVER_RANDOM: u32 = 21; -pub const NCRYPTBUFFER_SSL_HIGHEST_VERSION: u32 = 22; -pub const NCRYPTBUFFER_SSL_CLEAR_KEY: u32 = 23; -pub const NCRYPTBUFFER_SSL_KEY_ARG_DATA: u32 = 24; -pub const NCRYPTBUFFER_SSL_SESSION_HASH: u32 = 25; -pub const NCRYPTBUFFER_PKCS_OID: u32 = 40; -pub const NCRYPTBUFFER_PKCS_ALG_OID: u32 = 41; -pub const NCRYPTBUFFER_PKCS_ALG_PARAM: u32 = 42; -pub const NCRYPTBUFFER_PKCS_ALG_ID: u32 = 43; -pub const NCRYPTBUFFER_PKCS_ATTRS: u32 = 44; -pub const NCRYPTBUFFER_PKCS_KEY_NAME: u32 = 45; -pub const NCRYPTBUFFER_PKCS_SECRET: u32 = 46; -pub const NCRYPTBUFFER_CERT_BLOB: u32 = 47; -pub const NCRYPTBUFFER_CLAIM_IDBINDING_NONCE: u32 = 48; -pub const NCRYPTBUFFER_CLAIM_KEYATTESTATION_NONCE: u32 = 49; -pub const NCRYPTBUFFER_KEY_PROPERTY_FLAGS: u32 = 50; -pub const NCRYPTBUFFER_ATTESTATIONSTATEMENT_BLOB: u32 = 51; -pub const NCRYPTBUFFER_ATTESTATION_CLAIM_TYPE: u32 = 52; -pub const NCRYPTBUFFER_ATTESTATION_CLAIM_CHALLENGE_REQUIRED: u32 = 53; -pub const NCRYPTBUFFER_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS: u32 = 54; -pub const NCRYPTBUFFER_ECC_CURVE_NAME: u32 = 60; -pub const NCRYPTBUFFER_ECC_PARAMETERS: u32 = 61; -pub const NCRYPTBUFFER_TPM_SEAL_PASSWORD: u32 = 70; -pub const NCRYPTBUFFER_TPM_SEAL_POLICYINFO: u32 = 71; -pub const NCRYPTBUFFER_TPM_SEAL_TICKET: u32 = 72; -pub const NCRYPTBUFFER_TPM_SEAL_NO_DA_PROTECTION: u32 = 73; -pub const NCRYPTBUFFER_TPM_PLATFORM_CLAIM_PCR_MASK: u32 = 80; -pub const NCRYPTBUFFER_TPM_PLATFORM_CLAIM_NONCE: u32 = 81; -pub const NCRYPTBUFFER_TPM_PLATFORM_CLAIM_STATIC_CREATE: u32 = 82; -pub const NCRYPT_CIPHER_NO_PADDING_FLAG: u32 = 0; -pub const NCRYPT_CIPHER_BLOCK_PADDING_FLAG: u32 = 1; -pub const NCRYPT_CIPHER_OTHER_PADDING_FLAG: u32 = 2; -pub const NCRYPT_PLATFORM_ATTEST_MAGIC: u32 = 1146110288; -pub const NCRYPT_KEY_ATTEST_MAGIC: u32 = 1146110283; -pub const NCRYPT_CLAIM_AUTHORITY_ONLY: u32 = 1; -pub const NCRYPT_CLAIM_SUBJECT_ONLY: u32 = 2; -pub const NCRYPT_CLAIM_WEB_AUTH_SUBJECT_ONLY: u32 = 258; -pub const NCRYPT_CLAIM_AUTHORITY_AND_SUBJECT: u32 = 3; -pub const NCRYPT_CLAIM_VSM_KEY_ATTESTATION_STATEMENT: u32 = 4; -pub const NCRYPT_CLAIM_UNKNOWN: u32 = 4096; -pub const NCRYPT_CLAIM_PLATFORM: u32 = 65536; -pub const NCRYPT_ISOLATED_KEY_FLAG_CREATED_IN_ISOLATION: u32 = 1; -pub const NCRYPT_ISOLATED_KEY_FLAG_IMPORT_ONLY: u32 = 2; -pub const NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES_V0: u32 = 0; -pub const NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES_CURRENT_VERSION: u32 = 0; -pub const NCRYPT_VSM_KEY_ATTESTATION_STATEMENT_V0: u32 = 0; -pub const NCRYPT_VSM_KEY_ATTESTATION_STATEMENT_CURRENT_VERSION: u32 = 0; -pub const NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS_V0: u32 = 0; -pub const NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS_CURRENT_VERSION: u32 = 0; -pub const NCRYPT_EXPORTED_ISOLATED_KEY_HEADER_V0: u32 = 0; -pub const NCRYPT_EXPORTED_ISOLATED_KEY_HEADER_CURRENT_VERSION: u32 = 0; -pub const NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT_V0: u32 = 0; -pub const NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT_CURRENT_VERSION: u32 = 0; -pub const NCRYPT_NO_PADDING_FLAG: u32 = 1; -pub const NCRYPT_PAD_PKCS1_FLAG: u32 = 2; -pub const NCRYPT_PAD_OAEP_FLAG: u32 = 4; -pub const NCRYPT_PAD_PSS_FLAG: u32 = 8; -pub const NCRYPT_PAD_CIPHER_FLAG: u32 = 16; -pub const NCRYPT_ATTESTATION_FLAG: u32 = 32; -pub const NCRYPT_SEALING_FLAG: u32 = 256; -pub const NCRYPT_REGISTER_NOTIFY_FLAG: u32 = 1; -pub const NCRYPT_UNREGISTER_NOTIFY_FLAG: u32 = 2; -pub const NCRYPT_NO_KEY_VALIDATION: u32 = 8; -pub const NCRYPT_MACHINE_KEY_FLAG: u32 = 32; -pub const NCRYPT_SILENT_FLAG: u32 = 64; -pub const NCRYPT_OVERWRITE_KEY_FLAG: u32 = 128; -pub const NCRYPT_WRITE_KEY_TO_LEGACY_STORE_FLAG: u32 = 512; -pub const NCRYPT_DO_NOT_FINALIZE_FLAG: u32 = 1024; -pub const NCRYPT_EXPORT_LEGACY_FLAG: u32 = 2048; -pub const NCRYPT_IGNORE_DEVICE_STATE_FLAG: u32 = 4096; -pub const NCRYPT_TREAT_NIST_AS_GENERIC_ECC_FLAG: u32 = 8192; -pub const NCRYPT_NO_CACHED_PASSWORD: u32 = 16384; -pub const NCRYPT_PROTECT_TO_LOCAL_SYSTEM: u32 = 32768; -pub const NCRYPT_REQUIRE_KDS_LRPC_BIND_FLAG: u32 = 536870912; -pub const NCRYPT_PERSIST_ONLY_FLAG: u32 = 1073741824; -pub const NCRYPT_PERSIST_FLAG: u32 = 2147483648; -pub const NCRYPT_PREFER_VIRTUAL_ISOLATION_FLAG: u32 = 65536; -pub const NCRYPT_USE_VIRTUAL_ISOLATION_FLAG: u32 = 131072; -pub const NCRYPT_USE_PER_BOOT_KEY_FLAG: u32 = 262144; -pub const NCRYPT_CIPHER_OPERATION: u32 = 1; -pub const NCRYPT_HASH_OPERATION: u32 = 2; -pub const NCRYPT_ASYMMETRIC_ENCRYPTION_OPERATION: u32 = 4; -pub const NCRYPT_SECRET_AGREEMENT_OPERATION: u32 = 8; -pub const NCRYPT_SIGNATURE_OPERATION: u32 = 16; -pub const NCRYPT_RNG_OPERATION: u32 = 32; -pub const NCRYPT_KEY_DERIVATION_OPERATION: u32 = 64; -pub const NCRYPT_AUTHORITY_KEY_FLAG: u32 = 256; -pub const NCRYPT_EXTENDED_ERRORS_FLAG: u32 = 268435456; -pub const NCRYPT_NAME_PROPERTY: &[u8; 5] = b"Name\0"; -pub const NCRYPT_UNIQUE_NAME_PROPERTY: &[u8; 12] = b"Unique Name\0"; -pub const NCRYPT_ALGORITHM_PROPERTY: &[u8; 15] = b"Algorithm Name\0"; -pub const NCRYPT_LENGTH_PROPERTY: &[u8; 7] = b"Length\0"; -pub const NCRYPT_LENGTHS_PROPERTY: &[u8; 8] = b"Lengths\0"; -pub const NCRYPT_BLOCK_LENGTH_PROPERTY: &[u8; 13] = b"Block Length\0"; -pub const NCRYPT_PUBLIC_LENGTH_PROPERTY: &[u8; 16] = b"PublicKeyLength\0"; -pub const NCRYPT_SIGNATURE_LENGTH_PROPERTY: &[u8; 16] = b"SignatureLength\0"; -pub const NCRYPT_CHAINING_MODE_PROPERTY: &[u8; 14] = b"Chaining Mode\0"; -pub const NCRYPT_AUTH_TAG_LENGTH: &[u8; 14] = b"AuthTagLength\0"; -pub const NCRYPT_UI_POLICY_PROPERTY: &[u8; 10] = b"UI Policy\0"; -pub const NCRYPT_EXPORT_POLICY_PROPERTY: &[u8; 14] = b"Export Policy\0"; -pub const NCRYPT_WINDOW_HANDLE_PROPERTY: &[u8; 12] = b"HWND Handle\0"; -pub const NCRYPT_USE_CONTEXT_PROPERTY: &[u8; 12] = b"Use Context\0"; -pub const NCRYPT_IMPL_TYPE_PROPERTY: &[u8; 10] = b"Impl Type\0"; -pub const NCRYPT_KEY_USAGE_PROPERTY: &[u8; 10] = b"Key Usage\0"; -pub const NCRYPT_KEY_TYPE_PROPERTY: &[u8; 9] = b"Key Type\0"; -pub const NCRYPT_VERSION_PROPERTY: &[u8; 8] = b"Version\0"; -pub const NCRYPT_SECURITY_DESCR_SUPPORT_PROPERTY: &[u8; 23] = b"Security Descr Support\0"; -pub const NCRYPT_SECURITY_DESCR_PROPERTY: &[u8; 15] = b"Security Descr\0"; -pub const NCRYPT_USE_COUNT_ENABLED_PROPERTY: &[u8; 18] = b"Enabled Use Count\0"; -pub const NCRYPT_USE_COUNT_PROPERTY: &[u8; 10] = b"Use Count\0"; -pub const NCRYPT_LAST_MODIFIED_PROPERTY: &[u8; 9] = b"Modified\0"; -pub const NCRYPT_MAX_NAME_LENGTH_PROPERTY: &[u8; 16] = b"Max Name Length\0"; -pub const NCRYPT_ALGORITHM_GROUP_PROPERTY: &[u8; 16] = b"Algorithm Group\0"; -pub const NCRYPT_DH_PARAMETERS_PROPERTY: &[u8; 13] = b"DHParameters\0"; -pub const NCRYPT_ECC_PARAMETERS_PROPERTY: &[u8; 14] = b"ECCParameters\0"; -pub const NCRYPT_ECC_CURVE_NAME_PROPERTY: &[u8; 13] = b"ECCCurveName\0"; -pub const NCRYPT_ECC_CURVE_NAME_LIST_PROPERTY: &[u8; 17] = b"ECCCurveNameList\0"; -pub const NCRYPT_USE_VIRTUAL_ISOLATION_PROPERTY: &[u8; 12] = b"Virtual Iso\0"; -pub const NCRYPT_USE_PER_BOOT_KEY_PROPERTY: &[u8; 13] = b"Per Boot Key\0"; -pub const NCRYPT_PROVIDER_HANDLE_PROPERTY: &[u8; 16] = b"Provider Handle\0"; -pub const NCRYPT_PIN_PROPERTY: &[u8; 13] = b"SmartCardPin\0"; -pub const NCRYPT_READER_PROPERTY: &[u8; 16] = b"SmartCardReader\0"; -pub const NCRYPT_SMARTCARD_GUID_PROPERTY: &[u8; 14] = b"SmartCardGuid\0"; -pub const NCRYPT_CERTIFICATE_PROPERTY: &[u8; 24] = b"SmartCardKeyCertificate\0"; -pub const NCRYPT_PIN_PROMPT_PROPERTY: &[u8; 19] = b"SmartCardPinPrompt\0"; -pub const NCRYPT_USER_CERTSTORE_PROPERTY: &[u8; 23] = b"SmartCardUserCertStore\0"; -pub const NCRYPT_ROOT_CERTSTORE_PROPERTY: &[u8; 23] = b"SmartcardRootCertStore\0"; -pub const NCRYPT_SECURE_PIN_PROPERTY: &[u8; 19] = b"SmartCardSecurePin\0"; -pub const NCRYPT_ASSOCIATED_ECDH_KEY: &[u8; 27] = b"SmartCardAssociatedECDHKey\0"; -pub const NCRYPT_SCARD_PIN_ID: &[u8; 15] = b"SmartCardPinId\0"; -pub const NCRYPT_SCARD_PIN_INFO: &[u8; 17] = b"SmartCardPinInfo\0"; -pub const NCRYPT_READER_ICON_PROPERTY: &[u8; 20] = b"SmartCardReaderIcon\0"; -pub const NCRYPT_KDF_SECRET_VALUE: &[u8; 13] = b"KDFKeySecret\0"; -pub const NCRYPT_DISMISS_UI_TIMEOUT_SEC_PROPERTY: &[u8; 33] = b"SmartCardDismissUITimeoutSeconds\0"; -pub const NCRYPT_PCP_PLATFORM_TYPE_PROPERTY: &[u8; 18] = b"PCP_PLATFORM_TYPE\0"; -pub const NCRYPT_PCP_PROVIDER_VERSION_PROPERTY: &[u8; 21] = b"PCP_PROVIDER_VERSION\0"; -pub const NCRYPT_PCP_EKPUB_PROPERTY: &[u8; 10] = b"PCP_EKPUB\0"; -pub const NCRYPT_PCP_EKCERT_PROPERTY: &[u8; 11] = b"PCP_EKCERT\0"; -pub const NCRYPT_PCP_EKNVCERT_PROPERTY: &[u8; 13] = b"PCP_EKNVCERT\0"; -pub const NCRYPT_PCP_RSA_EKPUB_PROPERTY: &[u8; 14] = b"PCP_RSA_EKPUB\0"; -pub const NCRYPT_PCP_RSA_EKCERT_PROPERTY: &[u8; 15] = b"PCP_RSA_EKCERT\0"; -pub const NCRYPT_PCP_RSA_EKNVCERT_PROPERTY: &[u8; 17] = b"PCP_RSA_EKNVCERT\0"; -pub const NCRYPT_PCP_ECC_EKPUB_PROPERTY: &[u8; 14] = b"PCP_ECC_EKPUB\0"; -pub const NCRYPT_PCP_ECC_EKCERT_PROPERTY: &[u8; 15] = b"PCP_ECC_EKCERT\0"; -pub const NCRYPT_PCP_ECC_EKNVCERT_PROPERTY: &[u8; 17] = b"PCP_ECC_EKNVCERT\0"; -pub const NCRYPT_PCP_SRKPUB_PROPERTY: &[u8; 11] = b"PCP_SRKPUB\0"; -pub const NCRYPT_PCP_PCRTABLE_PROPERTY: &[u8; 13] = b"PCP_PCRTABLE\0"; -pub const NCRYPT_PCP_CHANGEPASSWORD_PROPERTY: &[u8; 19] = b"PCP_CHANGEPASSWORD\0"; -pub const NCRYPT_PCP_PASSWORD_REQUIRED_PROPERTY: &[u8; 22] = b"PCP_PASSWORD_REQUIRED\0"; -pub const NCRYPT_PCP_USAGEAUTH_PROPERTY: &[u8; 14] = b"PCP_USAGEAUTH\0"; -pub const NCRYPT_PCP_MIGRATIONPASSWORD_PROPERTY: &[u8; 22] = b"PCP_MIGRATIONPASSWORD\0"; -pub const NCRYPT_PCP_EXPORT_ALLOWED_PROPERTY: &[u8; 19] = b"PCP_EXPORT_ALLOWED\0"; -pub const NCRYPT_PCP_STORAGEPARENT_PROPERTY: &[u8; 18] = b"PCP_STORAGEPARENT\0"; -pub const NCRYPT_PCP_PROVIDERHANDLE_PROPERTY: &[u8; 20] = b"PCP_PROVIDERMHANDLE\0"; -pub const NCRYPT_PCP_PLATFORMHANDLE_PROPERTY: &[u8; 19] = b"PCP_PLATFORMHANDLE\0"; -pub const NCRYPT_PCP_PLATFORM_BINDING_PCRMASK_PROPERTY: &[u8; 29] = - b"PCP_PLATFORM_BINDING_PCRMASK\0"; -pub const NCRYPT_PCP_PLATFORM_BINDING_PCRDIGESTLIST_PROPERTY: &[u8; 35] = - b"PCP_PLATFORM_BINDING_PCRDIGESTLIST\0"; -pub const NCRYPT_PCP_PLATFORM_BINDING_PCRDIGEST_PROPERTY: &[u8; 31] = - b"PCP_PLATFORM_BINDING_PCRDIGEST\0"; -pub const NCRYPT_PCP_KEY_USAGE_POLICY_PROPERTY: &[u8; 21] = b"PCP_KEY_USAGE_POLICY\0"; -pub const NCRYPT_PCP_RSA_SCHEME_PROPERTY: &[u8; 15] = b"PCP_RSA_SCHEME\0"; -pub const NCRYPT_PCP_TPM12_IDBINDING_PROPERTY: &[u8; 20] = b"PCP_TPM12_IDBINDING\0"; -pub const NCRYPT_PCP_TPM12_IDBINDING_DYNAMIC_PROPERTY: &[u8; 28] = b"PCP_TPM12_IDBINDING_DYNAMIC\0"; -pub const NCRYPT_PCP_TPM12_IDACTIVATION_PROPERTY: &[u8; 23] = b"PCP_TPM12_IDACTIVATION\0"; -pub const NCRYPT_PCP_KEYATTESTATION_PROPERTY: &[u8; 25] = b"PCP_TPM12_KEYATTESTATION\0"; -pub const NCRYPT_PCP_ALTERNATE_KEY_STORAGE_LOCATION_PROPERTY: &[u8; 35] = - b"PCP_ALTERNATE_KEY_STORAGE_LOCATION\0"; -pub const NCRYPT_PCP_PLATFORM_BINDING_PCRALGID_PROPERTY: &[u8; 30] = - b"PCP_PLATFORM_BINDING_PCRALGID\0"; -pub const NCRYPT_PCP_HMAC_AUTH_POLICYREF: &[u8; 24] = b"PCP_HMAC_AUTH_POLICYREF\0"; -pub const NCRYPT_PCP_HMAC_AUTH_POLICYINFO: &[u8; 25] = b"PCP_HMAC_AUTH_POLICYINFO\0"; -pub const NCRYPT_PCP_HMAC_AUTH_NONCE: &[u8; 20] = b"PCP_HMAC_AUTH_NONCE\0"; -pub const NCRYPT_PCP_HMAC_AUTH_SIGNATURE: &[u8; 24] = b"PCP_HMAC_AUTH_SIGNATURE\0"; -pub const NCRYPT_PCP_HMAC_AUTH_TICKET: &[u8; 21] = b"PCP_HMAC_AUTH_TICKET\0"; -pub const NCRYPT_PCP_NO_DA_PROTECTION_PROPERTY: &[u8; 21] = b"PCP_NO_DA_PROTECTION\0"; -pub const NCRYPT_PCP_TPM_MANUFACTURER_ID_PROPERTY: &[u8; 24] = b"PCP_TPM_MANUFACTURER_ID\0"; -pub const NCRYPT_PCP_TPM_FW_VERSION_PROPERTY: &[u8; 19] = b"PCP_TPM_FW_VERSION\0"; -pub const NCRYPT_PCP_TPM2BNAME_PROPERTY: &[u8; 14] = b"PCP_TPM2BNAME\0"; -pub const NCRYPT_PCP_TPM_VERSION_PROPERTY: &[u8; 16] = b"PCP_TPM_VERSION\0"; -pub const NCRYPT_PCP_RAW_POLICYDIGEST_PROPERTY: &[u8; 21] = b"PCP_RAW_POLICYDIGEST\0"; -pub const NCRYPT_PCP_KEY_CREATIONHASH_PROPERTY: &[u8; 21] = b"PCP_KEY_CREATIONHASH\0"; -pub const NCRYPT_PCP_KEY_CREATIONTICKET_PROPERTY: &[u8; 23] = b"PCP_KEY_CREATIONTICKET\0"; -pub const NCRYPT_PCP_RSA_SCHEME_HASH_ALG_PROPERTY: &[u8; 24] = b"PCP_RSA_SCHEME_HASH_ALG\0"; -pub const NCRYPT_PCP_TPM_IFX_RSA_KEYGEN_PROHIBITED_PROPERTY: &[u8; 34] = - b"PCP_TPM_IFX_RSA_KEYGEN_PROHIBITED\0"; -pub const NCRYPT_PCP_TPM_IFX_RSA_KEYGEN_VULNERABILITY_PROPERTY: &[u8; 37] = - b"PCP_TPM_IFX_RSA_KEYGEN_VULNERABILITY\0"; -pub const IFX_RSA_KEYGEN_VUL_NOT_AFFECTED: u32 = 0; -pub const IFX_RSA_KEYGEN_VUL_AFFECTED_LEVEL_1: u32 = 1; -pub const IFX_RSA_KEYGEN_VUL_AFFECTED_LEVEL_2: u32 = 2; -pub const NCRYPT_PCP_SESSIONID_PROPERTY: &[u8; 14] = b"PCP_SESSIONID\0"; -pub const NCRYPT_PCP_PSS_SALT_SIZE_PROPERTY: &[u8; 14] = b"PSS Salt Size\0"; -pub const NCRYPT_TPM_PSS_SALT_SIZE_UNKNOWN: u32 = 0; -pub const NCRYPT_TPM_PSS_SALT_SIZE_MAXIMUM: u32 = 1; -pub const NCRYPT_TPM_PSS_SALT_SIZE_HASHSIZE: u32 = 2; -pub const NCRYPT_PCP_INTERMEDIATE_CA_EKCERT_PROPERTY: &[u8; 27] = b"PCP_INTERMEDIATE_CA_EKCERT\0"; -pub const NCRYPT_PCP_PCRTABLE_ALGORITHM_PROPERTY: &[u8; 23] = b"PCP_PCRTABLE_ALGORITHM\0"; -pub const NCRYPT_PCP_SYMMETRIC_KEYBITS_PROPERTY: &[u8; 22] = b"PCP_SYMMETRIC_KEYBITS\0"; -pub const NCRYPT_TPM_PAD_PSS_IGNORE_SALT: u32 = 32; -pub const NCRYPT_TPM12_PROVIDER: u32 = 65536; -pub const NCRYPT_PCP_SIGNATURE_KEY: u32 = 1; -pub const NCRYPT_PCP_ENCRYPTION_KEY: u32 = 2; -pub const NCRYPT_PCP_GENERIC_KEY: u32 = 3; -pub const NCRYPT_PCP_STORAGE_KEY: u32 = 4; -pub const NCRYPT_PCP_IDENTITY_KEY: u32 = 8; -pub const NCRYPT_PCP_HMACVERIFICATION_KEY: u32 = 16; -pub const NCRYPT_SCARD_NGC_KEY_NAME: &[u8; 20] = b"SmartCardNgcKeyName\0"; -pub const NCRYPT_INITIALIZATION_VECTOR: &[u8; 3] = b"IV\0"; -pub const NCRYPT_CHANGEPASSWORD_PROPERTY: &[u8; 19] = b"PCP_CHANGEPASSWORD\0"; -pub const NCRYPT_ALTERNATE_KEY_STORAGE_LOCATION_PROPERTY: &[u8; 35] = - b"PCP_ALTERNATE_KEY_STORAGE_LOCATION\0"; -pub const NCRYPT_KEY_ACCESS_POLICY_PROPERTY: &[u8; 18] = b"Key Access Policy\0"; -pub const NCRYPT_MAX_PROPERTY_NAME: u32 = 64; -pub const NCRYPT_MAX_PROPERTY_DATA: u32 = 1048576; -pub const NCRYPT_ALLOW_EXPORT_FLAG: u32 = 1; -pub const NCRYPT_ALLOW_PLAINTEXT_EXPORT_FLAG: u32 = 2; -pub const NCRYPT_ALLOW_ARCHIVING_FLAG: u32 = 4; -pub const NCRYPT_ALLOW_PLAINTEXT_ARCHIVING_FLAG: u32 = 8; -pub const NCRYPT_IMPL_HARDWARE_FLAG: u32 = 1; -pub const NCRYPT_IMPL_SOFTWARE_FLAG: u32 = 2; -pub const NCRYPT_IMPL_REMOVABLE_FLAG: u32 = 8; -pub const NCRYPT_IMPL_HARDWARE_RNG_FLAG: u32 = 16; -pub const NCRYPT_IMPL_VIRTUAL_ISOLATION_FLAG: u32 = 32; -pub const NCRYPT_ALLOW_DECRYPT_FLAG: u32 = 1; -pub const NCRYPT_ALLOW_SIGNING_FLAG: u32 = 2; -pub const NCRYPT_ALLOW_KEY_AGREEMENT_FLAG: u32 = 4; -pub const NCRYPT_ALLOW_KEY_IMPORT_FLAG: u32 = 8; -pub const NCRYPT_ALLOW_ALL_USAGES: u32 = 16777215; -pub const NCRYPT_UI_PROTECT_KEY_FLAG: u32 = 1; -pub const NCRYPT_UI_FORCE_HIGH_PROTECTION_FLAG: u32 = 2; -pub const NCRYPT_UI_FINGERPRINT_PROTECTION_FLAG: u32 = 4; -pub const NCRYPT_UI_APPCONTAINER_ACCESS_MEDIUM_FLAG: u32 = 8; -pub const NCRYPT_PIN_CACHE_FREE_APPLICATION_TICKET_PROPERTY: &[u8; 30] = - b"PinCacheFreeApplicationTicket\0"; -pub const NCRYPT_PIN_CACHE_FLAGS_PROPERTY: &[u8; 14] = b"PinCacheFlags\0"; -pub const NCRYPT_PIN_CACHE_DISABLE_DPL_FLAG: u32 = 1; -pub const NCRYPT_PIN_CACHE_APPLICATION_TICKET_PROPERTY: &[u8; 26] = b"PinCacheApplicationTicket\0"; -pub const NCRYPT_PIN_CACHE_APPLICATION_IMAGE_PROPERTY: &[u8; 25] = b"PinCacheApplicationImage\0"; -pub const NCRYPT_PIN_CACHE_APPLICATION_STATUS_PROPERTY: &[u8; 26] = b"PinCacheApplicationStatus\0"; -pub const NCRYPT_PIN_CACHE_PIN_PROPERTY: &[u8; 12] = b"PinCachePin\0"; -pub const NCRYPT_PIN_CACHE_IS_GESTURE_REQUIRED_PROPERTY: &[u8; 26] = b"PinCacheIsGestureRequired\0"; -pub const NCRYPT_PIN_CACHE_REQUIRE_GESTURE_FLAG: u32 = 1; -pub const NCRYPT_PIN_CACHE_PIN_BYTE_LENGTH: u32 = 90; -pub const NCRYPT_PIN_CACHE_APPLICATION_TICKET_BYTE_LENGTH: u32 = 90; -pub const NCRYPT_PIN_CACHE_CLEAR_PROPERTY: &[u8; 14] = b"PinCacheClear\0"; -pub const NCRYPT_PIN_CACHE_CLEAR_FOR_CALLING_PROCESS_OPTION: u32 = 1; -pub const NCRYPT_KEY_ACCESS_POLICY_VERSION: u32 = 1; -pub const NCRYPT_ALLOW_SILENT_KEY_ACCESS: u32 = 1; -pub const NCRYPT_CIPHER_KEY_BLOB_MAGIC: u32 = 1380470851; -pub const NCRYPT_KDF_KEY_BLOB_MAGIC: u32 = 826688587; -pub const NCRYPT_PROTECTED_KEY_BLOB_MAGIC: u32 = 1263817296; -pub const NCRYPT_CIPHER_KEY_BLOB: &[u8; 14] = b"CipherKeyBlob\0"; -pub const NCRYPT_KDF_KEY_BLOB: &[u8; 11] = b"KDFKeyBlob\0"; -pub const NCRYPT_PROTECTED_KEY_BLOB: &[u8; 17] = b"ProtectedKeyBlob\0"; -pub const NCRYPT_TPM_LOADABLE_KEY_BLOB: &[u8; 23] = b"PcpTpmProtectedKeyBlob\0"; -pub const NCRYPT_TPM_LOADABLE_KEY_BLOB_MAGIC: u32 = 1297371211; -pub const NCRYPT_PKCS7_ENVELOPE_BLOB: &[u8; 15] = b"PKCS7_ENVELOPE\0"; -pub const NCRYPT_PKCS8_PRIVATE_KEY_BLOB: &[u8; 17] = b"PKCS8_PRIVATEKEY\0"; -pub const NCRYPT_OPAQUETRANSPORT_BLOB: &[u8; 16] = b"OpaqueTransport\0"; -pub const NCRYPT_ISOLATED_KEY_ENVELOPE_BLOB: &[u8; 22] = b"ISOLATED_KEY_ENVELOPE\0"; -pub const szOID_RSA: &[u8; 15] = b"1.2.840.113549\0"; -pub const szOID_PKCS: &[u8; 17] = b"1.2.840.113549.1\0"; -pub const szOID_RSA_HASH: &[u8; 17] = b"1.2.840.113549.2\0"; -pub const szOID_RSA_ENCRYPT: &[u8; 17] = b"1.2.840.113549.3\0"; -pub const szOID_PKCS_1: &[u8; 19] = b"1.2.840.113549.1.1\0"; -pub const szOID_PKCS_2: &[u8; 19] = b"1.2.840.113549.1.2\0"; -pub const szOID_PKCS_3: &[u8; 19] = b"1.2.840.113549.1.3\0"; -pub const szOID_PKCS_4: &[u8; 19] = b"1.2.840.113549.1.4\0"; -pub const szOID_PKCS_5: &[u8; 19] = b"1.2.840.113549.1.5\0"; -pub const szOID_PKCS_6: &[u8; 19] = b"1.2.840.113549.1.6\0"; -pub const szOID_PKCS_7: &[u8; 19] = b"1.2.840.113549.1.7\0"; -pub const szOID_PKCS_8: &[u8; 19] = b"1.2.840.113549.1.8\0"; -pub const szOID_PKCS_9: &[u8; 19] = b"1.2.840.113549.1.9\0"; -pub const szOID_PKCS_10: &[u8; 20] = b"1.2.840.113549.1.10\0"; -pub const szOID_PKCS_12: &[u8; 20] = b"1.2.840.113549.1.12\0"; -pub const szOID_RSA_RSA: &[u8; 21] = b"1.2.840.113549.1.1.1\0"; -pub const szOID_RSA_MD2RSA: &[u8; 21] = b"1.2.840.113549.1.1.2\0"; -pub const szOID_RSA_MD4RSA: &[u8; 21] = b"1.2.840.113549.1.1.3\0"; -pub const szOID_RSA_MD5RSA: &[u8; 21] = b"1.2.840.113549.1.1.4\0"; -pub const szOID_RSA_SHA1RSA: &[u8; 21] = b"1.2.840.113549.1.1.5\0"; -pub const szOID_RSA_SETOAEP_RSA: &[u8; 21] = b"1.2.840.113549.1.1.6\0"; -pub const szOID_RSAES_OAEP: &[u8; 21] = b"1.2.840.113549.1.1.7\0"; -pub const szOID_RSA_MGF1: &[u8; 21] = b"1.2.840.113549.1.1.8\0"; -pub const szOID_RSA_PSPECIFIED: &[u8; 21] = b"1.2.840.113549.1.1.9\0"; -pub const szOID_RSA_SSA_PSS: &[u8; 22] = b"1.2.840.113549.1.1.10\0"; -pub const szOID_RSA_SHA256RSA: &[u8; 22] = b"1.2.840.113549.1.1.11\0"; -pub const szOID_RSA_SHA384RSA: &[u8; 22] = b"1.2.840.113549.1.1.12\0"; -pub const szOID_RSA_SHA512RSA: &[u8; 22] = b"1.2.840.113549.1.1.13\0"; -pub const szOID_RSA_DH: &[u8; 21] = b"1.2.840.113549.1.3.1\0"; -pub const szOID_RSA_data: &[u8; 21] = b"1.2.840.113549.1.7.1\0"; -pub const szOID_RSA_signedData: &[u8; 21] = b"1.2.840.113549.1.7.2\0"; -pub const szOID_RSA_envelopedData: &[u8; 21] = b"1.2.840.113549.1.7.3\0"; -pub const szOID_RSA_signEnvData: &[u8; 21] = b"1.2.840.113549.1.7.4\0"; -pub const szOID_RSA_digestedData: &[u8; 21] = b"1.2.840.113549.1.7.5\0"; -pub const szOID_RSA_hashedData: &[u8; 21] = b"1.2.840.113549.1.7.5\0"; -pub const szOID_RSA_encryptedData: &[u8; 21] = b"1.2.840.113549.1.7.6\0"; -pub const szOID_RSA_emailAddr: &[u8; 21] = b"1.2.840.113549.1.9.1\0"; -pub const szOID_RSA_unstructName: &[u8; 21] = b"1.2.840.113549.1.9.2\0"; -pub const szOID_RSA_contentType: &[u8; 21] = b"1.2.840.113549.1.9.3\0"; -pub const szOID_RSA_messageDigest: &[u8; 21] = b"1.2.840.113549.1.9.4\0"; -pub const szOID_RSA_signingTime: &[u8; 21] = b"1.2.840.113549.1.9.5\0"; -pub const szOID_RSA_counterSign: &[u8; 21] = b"1.2.840.113549.1.9.6\0"; -pub const szOID_RSA_challengePwd: &[u8; 21] = b"1.2.840.113549.1.9.7\0"; -pub const szOID_RSA_unstructAddr: &[u8; 21] = b"1.2.840.113549.1.9.8\0"; -pub const szOID_RSA_extCertAttrs: &[u8; 21] = b"1.2.840.113549.1.9.9\0"; -pub const szOID_RSA_certExtensions: &[u8; 22] = b"1.2.840.113549.1.9.14\0"; -pub const szOID_RSA_SMIMECapabilities: &[u8; 22] = b"1.2.840.113549.1.9.15\0"; -pub const szOID_RSA_preferSignedData: &[u8; 24] = b"1.2.840.113549.1.9.15.1\0"; -pub const szOID_TIMESTAMP_TOKEN: &[u8; 26] = b"1.2.840.113549.1.9.16.1.4\0"; -pub const szOID_RFC3161_counterSign: &[u8; 22] = b"1.3.6.1.4.1.311.3.3.1\0"; -pub const szOID_RFC3161v21_counterSign: &[u8; 22] = b"1.3.6.1.4.1.311.3.3.2\0"; -pub const szOID_RFC3161v21_thumbprints: &[u8; 22] = b"1.3.6.1.4.1.311.3.3.3\0"; -pub const szOID_RSA_SMIMEalg: &[u8; 24] = b"1.2.840.113549.1.9.16.3\0"; -pub const szOID_RSA_SMIMEalgESDH: &[u8; 26] = b"1.2.840.113549.1.9.16.3.5\0"; -pub const szOID_RSA_SMIMEalgCMS3DESwrap: &[u8; 26] = b"1.2.840.113549.1.9.16.3.6\0"; -pub const szOID_RSA_SMIMEalgCMSRC2wrap: &[u8; 26] = b"1.2.840.113549.1.9.16.3.7\0"; -pub const szOID_RSA_MD2: &[u8; 19] = b"1.2.840.113549.2.2\0"; -pub const szOID_RSA_MD4: &[u8; 19] = b"1.2.840.113549.2.4\0"; -pub const szOID_RSA_MD5: &[u8; 19] = b"1.2.840.113549.2.5\0"; -pub const szOID_RSA_RC2CBC: &[u8; 19] = b"1.2.840.113549.3.2\0"; -pub const szOID_RSA_RC4: &[u8; 19] = b"1.2.840.113549.3.4\0"; -pub const szOID_RSA_DES_EDE3_CBC: &[u8; 19] = b"1.2.840.113549.3.7\0"; -pub const szOID_RSA_RC5_CBCPad: &[u8; 19] = b"1.2.840.113549.3.9\0"; -pub const szOID_ANSI_X942: &[u8; 14] = b"1.2.840.10046\0"; -pub const szOID_ANSI_X942_DH: &[u8; 18] = b"1.2.840.10046.2.1\0"; -pub const szOID_X957: &[u8; 14] = b"1.2.840.10040\0"; -pub const szOID_X957_DSA: &[u8; 18] = b"1.2.840.10040.4.1\0"; -pub const szOID_X957_SHA1DSA: &[u8; 18] = b"1.2.840.10040.4.3\0"; -pub const szOID_ECC_PUBLIC_KEY: &[u8; 18] = b"1.2.840.10045.2.1\0"; -pub const szOID_ECC_CURVE_P256: &[u8; 20] = b"1.2.840.10045.3.1.7\0"; -pub const szOID_ECC_CURVE_P384: &[u8; 13] = b"1.3.132.0.34\0"; -pub const szOID_ECC_CURVE_P521: &[u8; 13] = b"1.3.132.0.35\0"; -pub const szOID_ECC_CURVE_BRAINPOOLP160R1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.1\0"; -pub const szOID_ECC_CURVE_BRAINPOOLP160T1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.2\0"; -pub const szOID_ECC_CURVE_BRAINPOOLP192R1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.3\0"; -pub const szOID_ECC_CURVE_BRAINPOOLP192T1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.4\0"; -pub const szOID_ECC_CURVE_BRAINPOOLP224R1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.5\0"; -pub const szOID_ECC_CURVE_BRAINPOOLP224T1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.6\0"; -pub const szOID_ECC_CURVE_BRAINPOOLP256R1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.7\0"; -pub const szOID_ECC_CURVE_BRAINPOOLP256T1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.8\0"; -pub const szOID_ECC_CURVE_BRAINPOOLP320R1: &[u8; 21] = b"1.3.36.3.3.2.8.1.1.9\0"; -pub const szOID_ECC_CURVE_BRAINPOOLP320T1: &[u8; 22] = b"1.3.36.3.3.2.8.1.1.10\0"; -pub const szOID_ECC_CURVE_BRAINPOOLP384R1: &[u8; 22] = b"1.3.36.3.3.2.8.1.1.11\0"; -pub const szOID_ECC_CURVE_BRAINPOOLP384T1: &[u8; 22] = b"1.3.36.3.3.2.8.1.1.12\0"; -pub const szOID_ECC_CURVE_BRAINPOOLP512R1: &[u8; 22] = b"1.3.36.3.3.2.8.1.1.13\0"; -pub const szOID_ECC_CURVE_BRAINPOOLP512T1: &[u8; 22] = b"1.3.36.3.3.2.8.1.1.14\0"; -pub const szOID_ECC_CURVE_EC192WAPI: &[u8; 22] = b"1.2.156.11235.1.1.2.1\0"; -pub const szOID_CN_ECDSA_SHA256: &[u8; 20] = b"1.2.156.11235.1.1.1\0"; -pub const szOID_ECC_CURVE_NISTP192: &[u8; 20] = b"1.2.840.10045.3.1.1\0"; -pub const szOID_ECC_CURVE_NISTP224: &[u8; 13] = b"1.3.132.0.33\0"; -pub const szOID_ECC_CURVE_NISTP256: &[u8; 20] = b"1.2.840.10045.3.1.7\0"; -pub const szOID_ECC_CURVE_NISTP384: &[u8; 13] = b"1.3.132.0.34\0"; -pub const szOID_ECC_CURVE_NISTP521: &[u8; 13] = b"1.3.132.0.35\0"; -pub const szOID_ECC_CURVE_SECP160K1: &[u8; 12] = b"1.3.132.0.9\0"; -pub const szOID_ECC_CURVE_SECP160R1: &[u8; 12] = b"1.3.132.0.8\0"; -pub const szOID_ECC_CURVE_SECP160R2: &[u8; 13] = b"1.3.132.0.30\0"; -pub const szOID_ECC_CURVE_SECP192K1: &[u8; 13] = b"1.3.132.0.31\0"; -pub const szOID_ECC_CURVE_SECP192R1: &[u8; 20] = b"1.2.840.10045.3.1.1\0"; -pub const szOID_ECC_CURVE_SECP224K1: &[u8; 13] = b"1.3.132.0.32\0"; -pub const szOID_ECC_CURVE_SECP224R1: &[u8; 13] = b"1.3.132.0.33\0"; -pub const szOID_ECC_CURVE_SECP256K1: &[u8; 13] = b"1.3.132.0.10\0"; -pub const szOID_ECC_CURVE_SECP256R1: &[u8; 20] = b"1.2.840.10045.3.1.7\0"; -pub const szOID_ECC_CURVE_SECP384R1: &[u8; 13] = b"1.3.132.0.34\0"; -pub const szOID_ECC_CURVE_SECP521R1: &[u8; 13] = b"1.3.132.0.35\0"; -pub const szOID_ECC_CURVE_WTLS7: &[u8; 13] = b"1.3.132.0.30\0"; -pub const szOID_ECC_CURVE_WTLS9: &[u8; 14] = b"2.23.43.1.4.9\0"; -pub const szOID_ECC_CURVE_WTLS12: &[u8; 13] = b"1.3.132.0.33\0"; -pub const szOID_ECC_CURVE_X962P192V1: &[u8; 20] = b"1.2.840.10045.3.1.1\0"; -pub const szOID_ECC_CURVE_X962P192V2: &[u8; 20] = b"1.2.840.10045.3.1.2\0"; -pub const szOID_ECC_CURVE_X962P192V3: &[u8; 20] = b"1.2.840.10045.3.1.3\0"; -pub const szOID_ECC_CURVE_X962P239V1: &[u8; 20] = b"1.2.840.10045.3.1.4\0"; -pub const szOID_ECC_CURVE_X962P239V2: &[u8; 20] = b"1.2.840.10045.3.1.5\0"; -pub const szOID_ECC_CURVE_X962P239V3: &[u8; 20] = b"1.2.840.10045.3.1.6\0"; -pub const szOID_ECC_CURVE_X962P256V1: &[u8; 20] = b"1.2.840.10045.3.1.7\0"; -pub const szOID_ECDSA_SHA1: &[u8; 18] = b"1.2.840.10045.4.1\0"; -pub const szOID_ECDSA_SPECIFIED: &[u8; 18] = b"1.2.840.10045.4.3\0"; -pub const szOID_ECDSA_SHA256: &[u8; 20] = b"1.2.840.10045.4.3.2\0"; -pub const szOID_ECDSA_SHA384: &[u8; 20] = b"1.2.840.10045.4.3.3\0"; -pub const szOID_ECDSA_SHA512: &[u8; 20] = b"1.2.840.10045.4.3.4\0"; -pub const szOID_NIST_AES128_CBC: &[u8; 23] = b"2.16.840.1.101.3.4.1.2\0"; -pub const szOID_NIST_AES192_CBC: &[u8; 24] = b"2.16.840.1.101.3.4.1.22\0"; -pub const szOID_NIST_AES256_CBC: &[u8; 24] = b"2.16.840.1.101.3.4.1.42\0"; -pub const szOID_NIST_AES128_WRAP: &[u8; 23] = b"2.16.840.1.101.3.4.1.5\0"; -pub const szOID_NIST_AES192_WRAP: &[u8; 24] = b"2.16.840.1.101.3.4.1.25\0"; -pub const szOID_NIST_AES256_WRAP: &[u8; 24] = b"2.16.840.1.101.3.4.1.45\0"; -pub const szOID_DH_SINGLE_PASS_STDDH_SHA1_KDF: &[u8; 22] = b"1.3.133.16.840.63.0.2\0"; -pub const szOID_DH_SINGLE_PASS_STDDH_SHA256_KDF: &[u8; 15] = b"1.3.132.1.11.1\0"; -pub const szOID_DH_SINGLE_PASS_STDDH_SHA384_KDF: &[u8; 15] = b"1.3.132.1.11.2\0"; -pub const szOID_DS: &[u8; 4] = b"2.5\0"; -pub const szOID_DSALG: &[u8; 6] = b"2.5.8\0"; -pub const szOID_DSALG_CRPT: &[u8; 8] = b"2.5.8.1\0"; -pub const szOID_DSALG_HASH: &[u8; 8] = b"2.5.8.2\0"; -pub const szOID_DSALG_SIGN: &[u8; 8] = b"2.5.8.3\0"; -pub const szOID_DSALG_RSA: &[u8; 10] = b"2.5.8.1.1\0"; -pub const szOID_OIW: &[u8; 7] = b"1.3.14\0"; -pub const szOID_OIWSEC: &[u8; 11] = b"1.3.14.3.2\0"; -pub const szOID_OIWSEC_md4RSA: &[u8; 13] = b"1.3.14.3.2.2\0"; -pub const szOID_OIWSEC_md5RSA: &[u8; 13] = b"1.3.14.3.2.3\0"; -pub const szOID_OIWSEC_md4RSA2: &[u8; 13] = b"1.3.14.3.2.4\0"; -pub const szOID_OIWSEC_desECB: &[u8; 13] = b"1.3.14.3.2.6\0"; -pub const szOID_OIWSEC_desCBC: &[u8; 13] = b"1.3.14.3.2.7\0"; -pub const szOID_OIWSEC_desOFB: &[u8; 13] = b"1.3.14.3.2.8\0"; -pub const szOID_OIWSEC_desCFB: &[u8; 13] = b"1.3.14.3.2.9\0"; -pub const szOID_OIWSEC_desMAC: &[u8; 14] = b"1.3.14.3.2.10\0"; -pub const szOID_OIWSEC_rsaSign: &[u8; 14] = b"1.3.14.3.2.11\0"; -pub const szOID_OIWSEC_dsa: &[u8; 14] = b"1.3.14.3.2.12\0"; -pub const szOID_OIWSEC_shaDSA: &[u8; 14] = b"1.3.14.3.2.13\0"; -pub const szOID_OIWSEC_mdc2RSA: &[u8; 14] = b"1.3.14.3.2.14\0"; -pub const szOID_OIWSEC_shaRSA: &[u8; 14] = b"1.3.14.3.2.15\0"; -pub const szOID_OIWSEC_dhCommMod: &[u8; 14] = b"1.3.14.3.2.16\0"; -pub const szOID_OIWSEC_desEDE: &[u8; 14] = b"1.3.14.3.2.17\0"; -pub const szOID_OIWSEC_sha: &[u8; 14] = b"1.3.14.3.2.18\0"; -pub const szOID_OIWSEC_mdc2: &[u8; 14] = b"1.3.14.3.2.19\0"; -pub const szOID_OIWSEC_dsaComm: &[u8; 14] = b"1.3.14.3.2.20\0"; -pub const szOID_OIWSEC_dsaCommSHA: &[u8; 14] = b"1.3.14.3.2.21\0"; -pub const szOID_OIWSEC_rsaXchg: &[u8; 14] = b"1.3.14.3.2.22\0"; -pub const szOID_OIWSEC_keyHashSeal: &[u8; 14] = b"1.3.14.3.2.23\0"; -pub const szOID_OIWSEC_md2RSASign: &[u8; 14] = b"1.3.14.3.2.24\0"; -pub const szOID_OIWSEC_md5RSASign: &[u8; 14] = b"1.3.14.3.2.25\0"; -pub const szOID_OIWSEC_sha1: &[u8; 14] = b"1.3.14.3.2.26\0"; -pub const szOID_OIWSEC_dsaSHA1: &[u8; 14] = b"1.3.14.3.2.27\0"; -pub const szOID_OIWSEC_dsaCommSHA1: &[u8; 14] = b"1.3.14.3.2.28\0"; -pub const szOID_OIWSEC_sha1RSASign: &[u8; 14] = b"1.3.14.3.2.29\0"; -pub const szOID_OIWDIR: &[u8; 11] = b"1.3.14.7.2\0"; -pub const szOID_OIWDIR_CRPT: &[u8; 13] = b"1.3.14.7.2.1\0"; -pub const szOID_OIWDIR_HASH: &[u8; 13] = b"1.3.14.7.2.2\0"; -pub const szOID_OIWDIR_SIGN: &[u8; 13] = b"1.3.14.7.2.3\0"; -pub const szOID_OIWDIR_md2: &[u8; 15] = b"1.3.14.7.2.2.1\0"; -pub const szOID_OIWDIR_md2RSA: &[u8; 15] = b"1.3.14.7.2.3.1\0"; -pub const szOID_INFOSEC: &[u8; 19] = b"2.16.840.1.101.2.1\0"; -pub const szOID_INFOSEC_sdnsSignature: &[u8; 23] = b"2.16.840.1.101.2.1.1.1\0"; -pub const szOID_INFOSEC_mosaicSignature: &[u8; 23] = b"2.16.840.1.101.2.1.1.2\0"; -pub const szOID_INFOSEC_sdnsConfidentiality: &[u8; 23] = b"2.16.840.1.101.2.1.1.3\0"; -pub const szOID_INFOSEC_mosaicConfidentiality: &[u8; 23] = b"2.16.840.1.101.2.1.1.4\0"; -pub const szOID_INFOSEC_sdnsIntegrity: &[u8; 23] = b"2.16.840.1.101.2.1.1.5\0"; -pub const szOID_INFOSEC_mosaicIntegrity: &[u8; 23] = b"2.16.840.1.101.2.1.1.6\0"; -pub const szOID_INFOSEC_sdnsTokenProtection: &[u8; 23] = b"2.16.840.1.101.2.1.1.7\0"; -pub const szOID_INFOSEC_mosaicTokenProtection: &[u8; 23] = b"2.16.840.1.101.2.1.1.8\0"; -pub const szOID_INFOSEC_sdnsKeyManagement: &[u8; 23] = b"2.16.840.1.101.2.1.1.9\0"; -pub const szOID_INFOSEC_mosaicKeyManagement: &[u8; 24] = b"2.16.840.1.101.2.1.1.10\0"; -pub const szOID_INFOSEC_sdnsKMandSig: &[u8; 24] = b"2.16.840.1.101.2.1.1.11\0"; -pub const szOID_INFOSEC_mosaicKMandSig: &[u8; 24] = b"2.16.840.1.101.2.1.1.12\0"; -pub const szOID_INFOSEC_SuiteASignature: &[u8; 24] = b"2.16.840.1.101.2.1.1.13\0"; -pub const szOID_INFOSEC_SuiteAConfidentiality: &[u8; 24] = b"2.16.840.1.101.2.1.1.14\0"; -pub const szOID_INFOSEC_SuiteAIntegrity: &[u8; 24] = b"2.16.840.1.101.2.1.1.15\0"; -pub const szOID_INFOSEC_SuiteATokenProtection: &[u8; 24] = b"2.16.840.1.101.2.1.1.16\0"; -pub const szOID_INFOSEC_SuiteAKeyManagement: &[u8; 24] = b"2.16.840.1.101.2.1.1.17\0"; -pub const szOID_INFOSEC_SuiteAKMandSig: &[u8; 24] = b"2.16.840.1.101.2.1.1.18\0"; -pub const szOID_INFOSEC_mosaicUpdatedSig: &[u8; 24] = b"2.16.840.1.101.2.1.1.19\0"; -pub const szOID_INFOSEC_mosaicKMandUpdSig: &[u8; 24] = b"2.16.840.1.101.2.1.1.20\0"; -pub const szOID_INFOSEC_mosaicUpdatedInteg: &[u8; 24] = b"2.16.840.1.101.2.1.1.21\0"; -pub const szOID_NIST_sha256: &[u8; 23] = b"2.16.840.1.101.3.4.2.1\0"; -pub const szOID_NIST_sha384: &[u8; 23] = b"2.16.840.1.101.3.4.2.2\0"; -pub const szOID_NIST_sha512: &[u8; 23] = b"2.16.840.1.101.3.4.2.3\0"; -pub const szOID_COMMON_NAME: &[u8; 8] = b"2.5.4.3\0"; -pub const szOID_SUR_NAME: &[u8; 8] = b"2.5.4.4\0"; -pub const szOID_DEVICE_SERIAL_NUMBER: &[u8; 8] = b"2.5.4.5\0"; -pub const szOID_COUNTRY_NAME: &[u8; 8] = b"2.5.4.6\0"; -pub const szOID_LOCALITY_NAME: &[u8; 8] = b"2.5.4.7\0"; -pub const szOID_STATE_OR_PROVINCE_NAME: &[u8; 8] = b"2.5.4.8\0"; -pub const szOID_STREET_ADDRESS: &[u8; 8] = b"2.5.4.9\0"; -pub const szOID_ORGANIZATION_NAME: &[u8; 9] = b"2.5.4.10\0"; -pub const szOID_ORGANIZATIONAL_UNIT_NAME: &[u8; 9] = b"2.5.4.11\0"; -pub const szOID_TITLE: &[u8; 9] = b"2.5.4.12\0"; -pub const szOID_DESCRIPTION: &[u8; 9] = b"2.5.4.13\0"; -pub const szOID_SEARCH_GUIDE: &[u8; 9] = b"2.5.4.14\0"; -pub const szOID_BUSINESS_CATEGORY: &[u8; 9] = b"2.5.4.15\0"; -pub const szOID_POSTAL_ADDRESS: &[u8; 9] = b"2.5.4.16\0"; -pub const szOID_POSTAL_CODE: &[u8; 9] = b"2.5.4.17\0"; -pub const szOID_POST_OFFICE_BOX: &[u8; 9] = b"2.5.4.18\0"; -pub const szOID_PHYSICAL_DELIVERY_OFFICE_NAME: &[u8; 9] = b"2.5.4.19\0"; -pub const szOID_TELEPHONE_NUMBER: &[u8; 9] = b"2.5.4.20\0"; -pub const szOID_TELEX_NUMBER: &[u8; 9] = b"2.5.4.21\0"; -pub const szOID_TELETEXT_TERMINAL_IDENTIFIER: &[u8; 9] = b"2.5.4.22\0"; -pub const szOID_FACSIMILE_TELEPHONE_NUMBER: &[u8; 9] = b"2.5.4.23\0"; -pub const szOID_X21_ADDRESS: &[u8; 9] = b"2.5.4.24\0"; -pub const szOID_INTERNATIONAL_ISDN_NUMBER: &[u8; 9] = b"2.5.4.25\0"; -pub const szOID_REGISTERED_ADDRESS: &[u8; 9] = b"2.5.4.26\0"; -pub const szOID_DESTINATION_INDICATOR: &[u8; 9] = b"2.5.4.27\0"; -pub const szOID_PREFERRED_DELIVERY_METHOD: &[u8; 9] = b"2.5.4.28\0"; -pub const szOID_PRESENTATION_ADDRESS: &[u8; 9] = b"2.5.4.29\0"; -pub const szOID_SUPPORTED_APPLICATION_CONTEXT: &[u8; 9] = b"2.5.4.30\0"; -pub const szOID_MEMBER: &[u8; 9] = b"2.5.4.31\0"; -pub const szOID_OWNER: &[u8; 9] = b"2.5.4.32\0"; -pub const szOID_ROLE_OCCUPANT: &[u8; 9] = b"2.5.4.33\0"; -pub const szOID_SEE_ALSO: &[u8; 9] = b"2.5.4.34\0"; -pub const szOID_USER_PASSWORD: &[u8; 9] = b"2.5.4.35\0"; -pub const szOID_USER_CERTIFICATE: &[u8; 9] = b"2.5.4.36\0"; -pub const szOID_CA_CERTIFICATE: &[u8; 9] = b"2.5.4.37\0"; -pub const szOID_AUTHORITY_REVOCATION_LIST: &[u8; 9] = b"2.5.4.38\0"; -pub const szOID_CERTIFICATE_REVOCATION_LIST: &[u8; 9] = b"2.5.4.39\0"; -pub const szOID_CROSS_CERTIFICATE_PAIR: &[u8; 9] = b"2.5.4.40\0"; -pub const szOID_GIVEN_NAME: &[u8; 9] = b"2.5.4.42\0"; -pub const szOID_INITIALS: &[u8; 9] = b"2.5.4.43\0"; -pub const szOID_DN_QUALIFIER: &[u8; 9] = b"2.5.4.46\0"; -pub const szOID_DOMAIN_COMPONENT: &[u8; 27] = b"0.9.2342.19200300.100.1.25\0"; -pub const szOID_PKCS_12_FRIENDLY_NAME_ATTR: &[u8; 22] = b"1.2.840.113549.1.9.20\0"; -pub const szOID_PKCS_12_LOCAL_KEY_ID: &[u8; 22] = b"1.2.840.113549.1.9.21\0"; -pub const szOID_PKCS_12_KEY_PROVIDER_NAME_ATTR: &[u8; 21] = b"1.3.6.1.4.1.311.17.1\0"; -pub const szOID_LOCAL_MACHINE_KEYSET: &[u8; 21] = b"1.3.6.1.4.1.311.17.2\0"; -pub const szOID_PKCS_12_EXTENDED_ATTRIBUTES: &[u8; 21] = b"1.3.6.1.4.1.311.17.3\0"; -pub const szOID_PKCS_12_PROTECTED_PASSWORD_SECRET_BAG_TYPE_ID: &[u8; 21] = - b"1.3.6.1.4.1.311.17.4\0"; -pub const szOID_KEYID_RDN: &[u8; 23] = b"1.3.6.1.4.1.311.10.7.1\0"; -pub const szOID_EV_RDN_LOCALE: &[u8; 25] = b"1.3.6.1.4.1.311.60.2.1.1\0"; -pub const szOID_EV_RDN_STATE_OR_PROVINCE: &[u8; 25] = b"1.3.6.1.4.1.311.60.2.1.2\0"; -pub const szOID_EV_RDN_COUNTRY: &[u8; 25] = b"1.3.6.1.4.1.311.60.2.1.3\0"; -pub const CERT_RDN_ANY_TYPE: u32 = 0; -pub const CERT_RDN_ENCODED_BLOB: u32 = 1; -pub const CERT_RDN_OCTET_STRING: u32 = 2; -pub const CERT_RDN_NUMERIC_STRING: u32 = 3; -pub const CERT_RDN_PRINTABLE_STRING: u32 = 4; -pub const CERT_RDN_TELETEX_STRING: u32 = 5; -pub const CERT_RDN_T61_STRING: u32 = 5; -pub const CERT_RDN_VIDEOTEX_STRING: u32 = 6; -pub const CERT_RDN_IA5_STRING: u32 = 7; -pub const CERT_RDN_GRAPHIC_STRING: u32 = 8; -pub const CERT_RDN_VISIBLE_STRING: u32 = 9; -pub const CERT_RDN_ISO646_STRING: u32 = 9; -pub const CERT_RDN_GENERAL_STRING: u32 = 10; -pub const CERT_RDN_UNIVERSAL_STRING: u32 = 11; -pub const CERT_RDN_INT4_STRING: u32 = 11; -pub const CERT_RDN_BMP_STRING: u32 = 12; -pub const CERT_RDN_UNICODE_STRING: u32 = 12; -pub const CERT_RDN_UTF8_STRING: u32 = 13; -pub const CERT_RDN_TYPE_MASK: u32 = 255; -pub const CERT_RDN_FLAGS_MASK: u32 = 4278190080; -pub const CERT_RDN_ENABLE_T61_UNICODE_FLAG: u32 = 2147483648; -pub const CERT_RDN_ENABLE_UTF8_UNICODE_FLAG: u32 = 536870912; -pub const CERT_RDN_FORCE_UTF8_UNICODE_FLAG: u32 = 268435456; -pub const CERT_RDN_DISABLE_CHECK_TYPE_FLAG: u32 = 1073741824; -pub const CERT_RDN_DISABLE_IE4_UTF8_FLAG: u32 = 16777216; -pub const CERT_RDN_ENABLE_PUNYCODE_FLAG: u32 = 33554432; -pub const CERT_RSA_PUBLIC_KEY_OBJID: &[u8; 21] = b"1.2.840.113549.1.1.1\0"; -pub const CERT_DEFAULT_OID_PUBLIC_KEY_SIGN: &[u8; 21] = b"1.2.840.113549.1.1.1\0"; -pub const CERT_DEFAULT_OID_PUBLIC_KEY_XCHG: &[u8; 21] = b"1.2.840.113549.1.1.1\0"; -pub const CRYPT_ECC_PRIVATE_KEY_INFO_v1: u32 = 1; -pub const CERT_V1: u32 = 0; -pub const CERT_V2: u32 = 1; -pub const CERT_V3: u32 = 2; -pub const CERT_INFO_VERSION_FLAG: u32 = 1; -pub const CERT_INFO_SERIAL_NUMBER_FLAG: u32 = 2; -pub const CERT_INFO_SIGNATURE_ALGORITHM_FLAG: u32 = 3; -pub const CERT_INFO_ISSUER_FLAG: u32 = 4; -pub const CERT_INFO_NOT_BEFORE_FLAG: u32 = 5; -pub const CERT_INFO_NOT_AFTER_FLAG: u32 = 6; -pub const CERT_INFO_SUBJECT_FLAG: u32 = 7; -pub const CERT_INFO_SUBJECT_PUBLIC_KEY_INFO_FLAG: u32 = 8; -pub const CERT_INFO_ISSUER_UNIQUE_ID_FLAG: u32 = 9; -pub const CERT_INFO_SUBJECT_UNIQUE_ID_FLAG: u32 = 10; -pub const CERT_INFO_EXTENSION_FLAG: u32 = 11; -pub const CRL_V1: u32 = 0; -pub const CRL_V2: u32 = 1; -pub const CERT_BUNDLE_CERTIFICATE: u32 = 0; -pub const CERT_BUNDLE_CRL: u32 = 1; -pub const CERT_REQUEST_V1: u32 = 0; -pub const CERT_KEYGEN_REQUEST_V1: u32 = 0; -pub const CTL_V1: u32 = 0; -pub const CERT_ENCODING_TYPE_MASK: u32 = 65535; -pub const CMSG_ENCODING_TYPE_MASK: u32 = 4294901760; -pub const CRYPT_ASN_ENCODING: u32 = 1; -pub const CRYPT_NDR_ENCODING: u32 = 2; -pub const X509_ASN_ENCODING: u32 = 1; -pub const X509_NDR_ENCODING: u32 = 2; -pub const PKCS_7_ASN_ENCODING: u32 = 65536; -pub const PKCS_7_NDR_ENCODING: u32 = 131072; -pub const CRYPT_FORMAT_STR_MULTI_LINE: u32 = 1; -pub const CRYPT_FORMAT_STR_NO_HEX: u32 = 16; -pub const CRYPT_FORMAT_SIMPLE: u32 = 1; -pub const CRYPT_FORMAT_X509: u32 = 2; -pub const CRYPT_FORMAT_OID: u32 = 4; -pub const CRYPT_FORMAT_RDN_SEMICOLON: u32 = 256; -pub const CRYPT_FORMAT_RDN_CRLF: u32 = 512; -pub const CRYPT_FORMAT_RDN_UNQUOTE: u32 = 1024; -pub const CRYPT_FORMAT_RDN_REVERSE: u32 = 2048; -pub const CRYPT_FORMAT_COMMA: u32 = 4096; -pub const CRYPT_FORMAT_SEMICOLON: u32 = 256; -pub const CRYPT_FORMAT_CRLF: u32 = 512; -pub const CRYPT_ENCODE_NO_SIGNATURE_BYTE_REVERSAL_FLAG: u32 = 8; -pub const CRYPT_ENCODE_ALLOC_FLAG: u32 = 32768; -pub const CRYPT_UNICODE_NAME_ENCODE_ENABLE_T61_UNICODE_FLAG: u32 = 2147483648; -pub const CRYPT_UNICODE_NAME_ENCODE_ENABLE_UTF8_UNICODE_FLAG: u32 = 536870912; -pub const CRYPT_UNICODE_NAME_ENCODE_FORCE_UTF8_UNICODE_FLAG: u32 = 268435456; -pub const CRYPT_UNICODE_NAME_ENCODE_DISABLE_CHECK_TYPE_FLAG: u32 = 1073741824; -pub const CRYPT_SORTED_CTL_ENCODE_HASHED_SUBJECT_IDENTIFIER_FLAG: u32 = 65536; -pub const CRYPT_ENCODE_ENABLE_PUNYCODE_FLAG: u32 = 131072; -pub const CRYPT_ENCODE_ENABLE_UTF8PERCENT_FLAG: u32 = 262144; -pub const CRYPT_ENCODE_ENABLE_IA5CONVERSION_FLAG: u32 = 393216; -pub const CRYPT_DECODE_NOCOPY_FLAG: u32 = 1; -pub const CRYPT_DECODE_TO_BE_SIGNED_FLAG: u32 = 2; -pub const CRYPT_DECODE_SHARE_OID_STRING_FLAG: u32 = 4; -pub const CRYPT_DECODE_NO_SIGNATURE_BYTE_REVERSAL_FLAG: u32 = 8; -pub const CRYPT_DECODE_ALLOC_FLAG: u32 = 32768; -pub const CRYPT_UNICODE_NAME_DECODE_DISABLE_IE4_UTF8_FLAG: u32 = 16777216; -pub const CRYPT_DECODE_ENABLE_PUNYCODE_FLAG: u32 = 33554432; -pub const CRYPT_DECODE_ENABLE_UTF8PERCENT_FLAG: u32 = 67108864; -pub const CRYPT_DECODE_ENABLE_IA5CONVERSION_FLAG: u32 = 100663296; -pub const CRYPT_ENCODE_DECODE_NONE: u32 = 0; -pub const szOID_AUTHORITY_KEY_IDENTIFIER: &[u8; 9] = b"2.5.29.1\0"; -pub const szOID_KEY_ATTRIBUTES: &[u8; 9] = b"2.5.29.2\0"; -pub const szOID_CERT_POLICIES_95: &[u8; 9] = b"2.5.29.3\0"; -pub const szOID_KEY_USAGE_RESTRICTION: &[u8; 9] = b"2.5.29.4\0"; -pub const szOID_SUBJECT_ALT_NAME: &[u8; 9] = b"2.5.29.7\0"; -pub const szOID_ISSUER_ALT_NAME: &[u8; 9] = b"2.5.29.8\0"; -pub const szOID_BASIC_CONSTRAINTS: &[u8; 10] = b"2.5.29.10\0"; -pub const szOID_KEY_USAGE: &[u8; 10] = b"2.5.29.15\0"; -pub const szOID_PRIVATEKEY_USAGE_PERIOD: &[u8; 10] = b"2.5.29.16\0"; -pub const szOID_BASIC_CONSTRAINTS2: &[u8; 10] = b"2.5.29.19\0"; -pub const szOID_CERT_POLICIES: &[u8; 10] = b"2.5.29.32\0"; -pub const szOID_ANY_CERT_POLICY: &[u8; 12] = b"2.5.29.32.0\0"; -pub const szOID_INHIBIT_ANY_POLICY: &[u8; 10] = b"2.5.29.54\0"; -pub const szOID_AUTHORITY_KEY_IDENTIFIER2: &[u8; 10] = b"2.5.29.35\0"; -pub const szOID_SUBJECT_KEY_IDENTIFIER: &[u8; 10] = b"2.5.29.14\0"; -pub const szOID_SUBJECT_ALT_NAME2: &[u8; 10] = b"2.5.29.17\0"; -pub const szOID_ISSUER_ALT_NAME2: &[u8; 10] = b"2.5.29.18\0"; -pub const szOID_CRL_REASON_CODE: &[u8; 10] = b"2.5.29.21\0"; -pub const szOID_REASON_CODE_HOLD: &[u8; 10] = b"2.5.29.23\0"; -pub const szOID_CRL_DIST_POINTS: &[u8; 10] = b"2.5.29.31\0"; -pub const szOID_ENHANCED_KEY_USAGE: &[u8; 10] = b"2.5.29.37\0"; -pub const szOID_ANY_ENHANCED_KEY_USAGE: &[u8; 12] = b"2.5.29.37.0\0"; -pub const szOID_CRL_NUMBER: &[u8; 10] = b"2.5.29.20\0"; -pub const szOID_DELTA_CRL_INDICATOR: &[u8; 10] = b"2.5.29.27\0"; -pub const szOID_ISSUING_DIST_POINT: &[u8; 10] = b"2.5.29.28\0"; -pub const szOID_FRESHEST_CRL: &[u8; 10] = b"2.5.29.46\0"; -pub const szOID_NAME_CONSTRAINTS: &[u8; 10] = b"2.5.29.30\0"; -pub const szOID_POLICY_MAPPINGS: &[u8; 10] = b"2.5.29.33\0"; -pub const szOID_LEGACY_POLICY_MAPPINGS: &[u8; 9] = b"2.5.29.5\0"; -pub const szOID_POLICY_CONSTRAINTS: &[u8; 10] = b"2.5.29.36\0"; -pub const szOID_RENEWAL_CERTIFICATE: &[u8; 21] = b"1.3.6.1.4.1.311.13.1\0"; -pub const szOID_ENROLLMENT_NAME_VALUE_PAIR: &[u8; 23] = b"1.3.6.1.4.1.311.13.2.1\0"; -pub const szOID_ENROLLMENT_CSP_PROVIDER: &[u8; 23] = b"1.3.6.1.4.1.311.13.2.2\0"; -pub const szOID_OS_VERSION: &[u8; 23] = b"1.3.6.1.4.1.311.13.2.3\0"; -pub const szOID_ENROLLMENT_AGENT: &[u8; 23] = b"1.3.6.1.4.1.311.20.2.1\0"; -pub const szOID_PKIX: &[u8; 14] = b"1.3.6.1.5.5.7\0"; -pub const szOID_PKIX_PE: &[u8; 16] = b"1.3.6.1.5.5.7.1\0"; -pub const szOID_AUTHORITY_INFO_ACCESS: &[u8; 18] = b"1.3.6.1.5.5.7.1.1\0"; -pub const szOID_SUBJECT_INFO_ACCESS: &[u8; 19] = b"1.3.6.1.5.5.7.1.11\0"; -pub const szOID_BIOMETRIC_EXT: &[u8; 18] = b"1.3.6.1.5.5.7.1.2\0"; -pub const szOID_QC_STATEMENTS_EXT: &[u8; 18] = b"1.3.6.1.5.5.7.1.3\0"; -pub const szOID_LOGOTYPE_EXT: &[u8; 19] = b"1.3.6.1.5.5.7.1.12\0"; -pub const szOID_TLS_FEATURES_EXT: &[u8; 19] = b"1.3.6.1.5.5.7.1.24\0"; -pub const szOID_CERT_EXTENSIONS: &[u8; 23] = b"1.3.6.1.4.1.311.2.1.14\0"; -pub const szOID_NEXT_UPDATE_LOCATION: &[u8; 21] = b"1.3.6.1.4.1.311.10.2\0"; -pub const szOID_REMOVE_CERTIFICATE: &[u8; 23] = b"1.3.6.1.4.1.311.10.8.1\0"; -pub const szOID_CROSS_CERT_DIST_POINTS: &[u8; 23] = b"1.3.6.1.4.1.311.10.9.1\0"; -pub const szOID_CTL: &[u8; 21] = b"1.3.6.1.4.1.311.10.1\0"; -pub const szOID_SORTED_CTL: &[u8; 23] = b"1.3.6.1.4.1.311.10.1.1\0"; -pub const szOID_SERIALIZED: &[u8; 25] = b"1.3.6.1.4.1.311.10.3.3.1\0"; -pub const szOID_NT_PRINCIPAL_NAME: &[u8; 23] = b"1.3.6.1.4.1.311.20.2.3\0"; -pub const szOID_INTERNATIONALIZED_EMAIL_ADDRESS: &[u8; 23] = b"1.3.6.1.4.1.311.20.2.4\0"; -pub const szOID_PRODUCT_UPDATE: &[u8; 21] = b"1.3.6.1.4.1.311.31.1\0"; -pub const szOID_ANY_APPLICATION_POLICY: &[u8; 24] = b"1.3.6.1.4.1.311.10.12.1\0"; -pub const szOID_AUTO_ENROLL_CTL_USAGE: &[u8; 21] = b"1.3.6.1.4.1.311.20.1\0"; -pub const szOID_ENROLL_CERTTYPE_EXTENSION: &[u8; 21] = b"1.3.6.1.4.1.311.20.2\0"; -pub const szOID_CERT_MANIFOLD: &[u8; 21] = b"1.3.6.1.4.1.311.20.3\0"; -pub const szOID_CERTSRV_CA_VERSION: &[u8; 21] = b"1.3.6.1.4.1.311.21.1\0"; -pub const szOID_CERTSRV_PREVIOUS_CERT_HASH: &[u8; 21] = b"1.3.6.1.4.1.311.21.2\0"; -pub const szOID_CRL_VIRTUAL_BASE: &[u8; 21] = b"1.3.6.1.4.1.311.21.3\0"; -pub const szOID_CRL_NEXT_PUBLISH: &[u8; 21] = b"1.3.6.1.4.1.311.21.4\0"; -pub const szOID_KP_CA_EXCHANGE: &[u8; 21] = b"1.3.6.1.4.1.311.21.5\0"; -pub const szOID_KP_PRIVACY_CA: &[u8; 22] = b"1.3.6.1.4.1.311.21.36\0"; -pub const szOID_KP_KEY_RECOVERY_AGENT: &[u8; 21] = b"1.3.6.1.4.1.311.21.6\0"; -pub const szOID_CERTIFICATE_TEMPLATE: &[u8; 21] = b"1.3.6.1.4.1.311.21.7\0"; -pub const szOID_ENTERPRISE_OID_ROOT: &[u8; 21] = b"1.3.6.1.4.1.311.21.8\0"; -pub const szOID_RDN_DUMMY_SIGNER: &[u8; 21] = b"1.3.6.1.4.1.311.21.9\0"; -pub const szOID_APPLICATION_CERT_POLICIES: &[u8; 22] = b"1.3.6.1.4.1.311.21.10\0"; -pub const szOID_APPLICATION_POLICY_MAPPINGS: &[u8; 22] = b"1.3.6.1.4.1.311.21.11\0"; -pub const szOID_APPLICATION_POLICY_CONSTRAINTS: &[u8; 22] = b"1.3.6.1.4.1.311.21.12\0"; -pub const szOID_ARCHIVED_KEY_ATTR: &[u8; 22] = b"1.3.6.1.4.1.311.21.13\0"; -pub const szOID_CRL_SELF_CDP: &[u8; 22] = b"1.3.6.1.4.1.311.21.14\0"; -pub const szOID_REQUIRE_CERT_CHAIN_POLICY: &[u8; 22] = b"1.3.6.1.4.1.311.21.15\0"; -pub const szOID_ARCHIVED_KEY_CERT_HASH: &[u8; 22] = b"1.3.6.1.4.1.311.21.16\0"; -pub const szOID_ISSUED_CERT_HASH: &[u8; 22] = b"1.3.6.1.4.1.311.21.17\0"; -pub const szOID_DS_EMAIL_REPLICATION: &[u8; 22] = b"1.3.6.1.4.1.311.21.19\0"; -pub const szOID_REQUEST_CLIENT_INFO: &[u8; 22] = b"1.3.6.1.4.1.311.21.20\0"; -pub const szOID_ENCRYPTED_KEY_HASH: &[u8; 22] = b"1.3.6.1.4.1.311.21.21\0"; -pub const szOID_CERTSRV_CROSSCA_VERSION: &[u8; 22] = b"1.3.6.1.4.1.311.21.22\0"; -pub const szOID_NTDS_REPLICATION: &[u8; 21] = b"1.3.6.1.4.1.311.25.1\0"; -pub const szOID_NTDS_CA_SECURITY_EXT: &[u8; 21] = b"1.3.6.1.4.1.311.25.2\0"; -pub const szOID_NTDS_OBJECTSID: &[u8; 23] = b"1.3.6.1.4.1.311.25.2.1\0"; -pub const szOID_SUBJECT_DIR_ATTRS: &[u8; 9] = b"2.5.29.9\0"; -pub const szOID_PKIX_KP: &[u8; 16] = b"1.3.6.1.5.5.7.3\0"; -pub const szOID_PKIX_KP_SERVER_AUTH: &[u8; 18] = b"1.3.6.1.5.5.7.3.1\0"; -pub const szOID_PKIX_KP_CLIENT_AUTH: &[u8; 18] = b"1.3.6.1.5.5.7.3.2\0"; -pub const szOID_PKIX_KP_CODE_SIGNING: &[u8; 18] = b"1.3.6.1.5.5.7.3.3\0"; -pub const szOID_PKIX_KP_EMAIL_PROTECTION: &[u8; 18] = b"1.3.6.1.5.5.7.3.4\0"; -pub const szOID_PKIX_KP_IPSEC_END_SYSTEM: &[u8; 18] = b"1.3.6.1.5.5.7.3.5\0"; -pub const szOID_PKIX_KP_IPSEC_TUNNEL: &[u8; 18] = b"1.3.6.1.5.5.7.3.6\0"; -pub const szOID_PKIX_KP_IPSEC_USER: &[u8; 18] = b"1.3.6.1.5.5.7.3.7\0"; -pub const szOID_PKIX_KP_TIMESTAMP_SIGNING: &[u8; 18] = b"1.3.6.1.5.5.7.3.8\0"; -pub const szOID_PKIX_KP_OCSP_SIGNING: &[u8; 18] = b"1.3.6.1.5.5.7.3.9\0"; -pub const szOID_PKIX_OCSP_NOCHECK: &[u8; 21] = b"1.3.6.1.5.5.7.48.1.5\0"; -pub const szOID_PKIX_OCSP_NONCE: &[u8; 21] = b"1.3.6.1.5.5.7.48.1.2\0"; -pub const szOID_IPSEC_KP_IKE_INTERMEDIATE: &[u8; 18] = b"1.3.6.1.5.5.8.2.2\0"; -pub const szOID_PKINIT_KP_KDC: &[u8; 16] = b"1.3.6.1.5.2.3.5\0"; -pub const szOID_KP_CTL_USAGE_SIGNING: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.1\0"; -pub const szOID_KP_TIME_STAMP_SIGNING: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.2\0"; -pub const szOID_SERVER_GATED_CRYPTO: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.3\0"; -pub const szOID_SGC_NETSCAPE: &[u8; 22] = b"2.16.840.1.113730.4.1\0"; -pub const szOID_KP_EFS: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.4\0"; -pub const szOID_EFS_RECOVERY: &[u8; 25] = b"1.3.6.1.4.1.311.10.3.4.1\0"; -pub const szOID_WHQL_CRYPTO: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.5\0"; -pub const szOID_ATTEST_WHQL_CRYPTO: &[u8; 25] = b"1.3.6.1.4.1.311.10.3.5.1\0"; -pub const szOID_NT5_CRYPTO: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.6\0"; -pub const szOID_OEM_WHQL_CRYPTO: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.7\0"; -pub const szOID_EMBEDDED_NT_CRYPTO: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.8\0"; -pub const szOID_ROOT_LIST_SIGNER: &[u8; 23] = b"1.3.6.1.4.1.311.10.3.9\0"; -pub const szOID_KP_QUALIFIED_SUBORDINATION: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.10\0"; -pub const szOID_KP_KEY_RECOVERY: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.11\0"; -pub const szOID_KP_DOCUMENT_SIGNING: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.12\0"; -pub const szOID_KP_LIFETIME_SIGNING: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.13\0"; -pub const szOID_KP_MOBILE_DEVICE_SOFTWARE: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.14\0"; -pub const szOID_KP_SMART_DISPLAY: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.15\0"; -pub const szOID_KP_CSP_SIGNATURE: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.16\0"; -pub const szOID_KP_FLIGHT_SIGNING: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.27\0"; -pub const szOID_PLATFORM_MANIFEST_BINARY_ID: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.28\0"; -pub const szOID_DRM: &[u8; 23] = b"1.3.6.1.4.1.311.10.5.1\0"; -pub const szOID_DRM_INDIVIDUALIZATION: &[u8; 23] = b"1.3.6.1.4.1.311.10.5.2\0"; -pub const szOID_LICENSES: &[u8; 23] = b"1.3.6.1.4.1.311.10.6.1\0"; -pub const szOID_LICENSE_SERVER: &[u8; 23] = b"1.3.6.1.4.1.311.10.6.2\0"; -pub const szOID_KP_SMARTCARD_LOGON: &[u8; 23] = b"1.3.6.1.4.1.311.20.2.2\0"; -pub const szOID_KP_KERNEL_MODE_CODE_SIGNING: &[u8; 23] = b"1.3.6.1.4.1.311.61.1.1\0"; -pub const szOID_KP_KERNEL_MODE_TRUSTED_BOOT_SIGNING: &[u8; 23] = b"1.3.6.1.4.1.311.61.4.1\0"; -pub const szOID_REVOKED_LIST_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.19\0"; -pub const szOID_WINDOWS_KITS_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.20\0"; -pub const szOID_WINDOWS_RT_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.21\0"; -pub const szOID_PROTECTED_PROCESS_LIGHT_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.22\0"; -pub const szOID_WINDOWS_TCB_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.23\0"; -pub const szOID_PROTECTED_PROCESS_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.24\0"; -pub const szOID_WINDOWS_THIRD_PARTY_COMPONENT_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.25\0"; -pub const szOID_WINDOWS_SOFTWARE_EXTENSION_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.26\0"; -pub const szOID_DISALLOWED_LIST: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.30\0"; -pub const szOID_PIN_RULES_SIGNER: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.31\0"; -pub const szOID_PIN_RULES_CTL: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.32\0"; -pub const szOID_PIN_RULES_EXT: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.33\0"; -pub const szOID_PIN_RULES_DOMAIN_NAME: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.34\0"; -pub const szOID_PIN_RULES_LOG_END_DATE_EXT: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.35\0"; -pub const szOID_IUM_SIGNING: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.37\0"; -pub const szOID_EV_WHQL_CRYPTO: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.39\0"; -pub const szOID_BIOMETRIC_SIGNING: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.41\0"; -pub const szOID_ENCLAVE_SIGNING: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.42\0"; -pub const szOID_SYNC_ROOT_CTL_EXT: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.50\0"; -pub const szOID_HPKP_DOMAIN_NAME_CTL: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.60\0"; -pub const szOID_HPKP_HEADER_VALUE_CTL: &[u8; 24] = b"1.3.6.1.4.1.311.10.3.61\0"; -pub const szOID_KP_KERNEL_MODE_HAL_EXTENSION_SIGNING: &[u8; 23] = b"1.3.6.1.4.1.311.61.5.1\0"; -pub const szOID_WINDOWS_STORE_SIGNER: &[u8; 23] = b"1.3.6.1.4.1.311.76.3.1\0"; -pub const szOID_DYNAMIC_CODE_GEN_SIGNER: &[u8; 23] = b"1.3.6.1.4.1.311.76.5.1\0"; -pub const szOID_MICROSOFT_PUBLISHER_SIGNER: &[u8; 23] = b"1.3.6.1.4.1.311.76.8.1\0"; -pub const szOID_YESNO_TRUST_ATTR: &[u8; 23] = b"1.3.6.1.4.1.311.10.4.1\0"; -pub const szOID_SITE_PIN_RULES_INDEX_ATTR: &[u8; 23] = b"1.3.6.1.4.1.311.10.4.2\0"; -pub const szOID_SITE_PIN_RULES_FLAGS_ATTR: &[u8; 23] = b"1.3.6.1.4.1.311.10.4.3\0"; -pub const SITE_PIN_RULES_ALL_SUBDOMAINS_FLAG: u32 = 1; -pub const szOID_PKIX_POLICY_QUALIFIER_CPS: &[u8; 18] = b"1.3.6.1.5.5.7.2.1\0"; -pub const szOID_PKIX_POLICY_QUALIFIER_USERNOTICE: &[u8; 18] = b"1.3.6.1.5.5.7.2.2\0"; -pub const szOID_ROOT_PROGRAM_FLAGS: &[u8; 23] = b"1.3.6.1.4.1.311.60.1.1\0"; -pub const CERT_ROOT_PROGRAM_FLAG_ORG: u32 = 128; -pub const CERT_ROOT_PROGRAM_FLAG_LSC: u32 = 64; -pub const CERT_ROOT_PROGRAM_FLAG_SUBJECT_LOGO: u32 = 32; -pub const CERT_ROOT_PROGRAM_FLAG_OU: u32 = 16; -pub const CERT_ROOT_PROGRAM_FLAG_ADDRESS: u32 = 8; -pub const szOID_CERT_POLICIES_95_QUALIFIER1: &[u8; 26] = b"2.16.840.1.113733.1.7.1.1\0"; -pub const szOID_RDN_TPM_MANUFACTURER: &[u8; 13] = b"2.23.133.2.1\0"; -pub const szOID_RDN_TPM_MODEL: &[u8; 13] = b"2.23.133.2.2\0"; -pub const szOID_RDN_TPM_VERSION: &[u8; 13] = b"2.23.133.2.3\0"; -pub const szOID_RDN_TCG_PLATFORM_MANUFACTURER: &[u8; 13] = b"2.23.133.2.4\0"; -pub const szOID_RDN_TCG_PLATFORM_MODEL: &[u8; 13] = b"2.23.133.2.5\0"; -pub const szOID_RDN_TCG_PLATFORM_VERSION: &[u8; 13] = b"2.23.133.2.6\0"; -pub const szOID_CT_CERT_SCTLIST: &[u8; 24] = b"1.3.6.1.4.1.11129.2.4.2\0"; -pub const szOID_ENROLL_EK_INFO: &[u8; 22] = b"1.3.6.1.4.1.311.21.23\0"; -pub const szOID_ENROLL_AIK_INFO: &[u8; 22] = b"1.3.6.1.4.1.311.21.39\0"; -pub const szOID_ENROLL_ATTESTATION_STATEMENT: &[u8; 22] = b"1.3.6.1.4.1.311.21.24\0"; -pub const szOID_ENROLL_KSP_NAME: &[u8; 22] = b"1.3.6.1.4.1.311.21.25\0"; -pub const szOID_ENROLL_EKPUB_CHALLENGE: &[u8; 22] = b"1.3.6.1.4.1.311.21.26\0"; -pub const szOID_ENROLL_CAXCHGCERT_HASH: &[u8; 22] = b"1.3.6.1.4.1.311.21.27\0"; -pub const szOID_ENROLL_ATTESTATION_CHALLENGE: &[u8; 22] = b"1.3.6.1.4.1.311.21.28\0"; -pub const szOID_ENROLL_ENCRYPTION_ALGORITHM: &[u8; 22] = b"1.3.6.1.4.1.311.21.29\0"; -pub const szOID_KP_TPM_EK_CERTIFICATE: &[u8; 13] = b"2.23.133.8.1\0"; -pub const szOID_KP_TPM_PLATFORM_CERTIFICATE: &[u8; 13] = b"2.23.133.8.2\0"; -pub const szOID_KP_TPM_AIK_CERTIFICATE: &[u8; 13] = b"2.23.133.8.3\0"; -pub const szOID_ENROLL_EKVERIFYKEY: &[u8; 22] = b"1.3.6.1.4.1.311.21.30\0"; -pub const szOID_ENROLL_EKVERIFYCERT: &[u8; 22] = b"1.3.6.1.4.1.311.21.31\0"; -pub const szOID_ENROLL_EKVERIFYCREDS: &[u8; 22] = b"1.3.6.1.4.1.311.21.32\0"; -pub const szOID_ENROLL_SCEP_ERROR: &[u8; 22] = b"1.3.6.1.4.1.311.21.33\0"; -pub const szOID_ENROLL_SCEP_SERVER_STATE: &[u8; 22] = b"1.3.6.1.4.1.311.21.34\0"; -pub const szOID_ENROLL_SCEP_CHALLENGE_ANSWER: &[u8; 22] = b"1.3.6.1.4.1.311.21.35\0"; -pub const szOID_ENROLL_SCEP_CLIENT_REQUEST: &[u8; 22] = b"1.3.6.1.4.1.311.21.37\0"; -pub const szOID_ENROLL_SCEP_SERVER_MESSAGE: &[u8; 22] = b"1.3.6.1.4.1.311.21.38\0"; -pub const szOID_ENROLL_SCEP_SERVER_SECRET: &[u8; 22] = b"1.3.6.1.4.1.311.21.40\0"; -pub const szOID_ENROLL_KEY_AFFINITY: &[u8; 22] = b"1.3.6.1.4.1.311.21.41\0"; -pub const szOID_ENROLL_SCEP_SIGNER_HASH: &[u8; 22] = b"1.3.6.1.4.1.311.21.42\0"; -pub const szOID_ENROLL_EK_CA_KEYID: &[u8; 22] = b"1.3.6.1.4.1.311.21.43\0"; -pub const szOID_ATTR_SUPPORTED_ALGORITHMS: &[u8; 9] = b"2.5.4.52\0"; -pub const szOID_ATTR_TPM_SPECIFICATION: &[u8; 14] = b"2.23.133.2.16\0"; -pub const szOID_ATTR_PLATFORM_SPECIFICATION: &[u8; 14] = b"2.23.133.2.17\0"; -pub const szOID_ATTR_TPM_SECURITY_ASSERTIONS: &[u8; 14] = b"2.23.133.2.18\0"; -pub const CERT_UNICODE_RDN_ERR_INDEX_MASK: u32 = 1023; -pub const CERT_UNICODE_RDN_ERR_INDEX_SHIFT: u32 = 22; -pub const CERT_UNICODE_ATTR_ERR_INDEX_MASK: u32 = 63; -pub const CERT_UNICODE_ATTR_ERR_INDEX_SHIFT: u32 = 16; -pub const CERT_UNICODE_VALUE_ERR_INDEX_MASK: u32 = 65535; -pub const CERT_UNICODE_VALUE_ERR_INDEX_SHIFT: u32 = 0; -pub const CERT_DIGITAL_SIGNATURE_KEY_USAGE: u32 = 128; -pub const CERT_NON_REPUDIATION_KEY_USAGE: u32 = 64; -pub const CERT_KEY_ENCIPHERMENT_KEY_USAGE: u32 = 32; -pub const CERT_DATA_ENCIPHERMENT_KEY_USAGE: u32 = 16; -pub const CERT_KEY_AGREEMENT_KEY_USAGE: u32 = 8; -pub const CERT_KEY_CERT_SIGN_KEY_USAGE: u32 = 4; -pub const CERT_OFFLINE_CRL_SIGN_KEY_USAGE: u32 = 2; -pub const CERT_CRL_SIGN_KEY_USAGE: u32 = 2; -pub const CERT_ENCIPHER_ONLY_KEY_USAGE: u32 = 1; -pub const CERT_DECIPHER_ONLY_KEY_USAGE: u32 = 128; -pub const CERT_ALT_NAME_OTHER_NAME: u32 = 1; -pub const CERT_ALT_NAME_RFC822_NAME: u32 = 2; -pub const CERT_ALT_NAME_DNS_NAME: u32 = 3; -pub const CERT_ALT_NAME_X400_ADDRESS: u32 = 4; -pub const CERT_ALT_NAME_DIRECTORY_NAME: u32 = 5; -pub const CERT_ALT_NAME_EDI_PARTY_NAME: u32 = 6; -pub const CERT_ALT_NAME_URL: u32 = 7; -pub const CERT_ALT_NAME_IP_ADDRESS: u32 = 8; -pub const CERT_ALT_NAME_REGISTERED_ID: u32 = 9; -pub const CERT_ALT_NAME_ENTRY_ERR_INDEX_MASK: u32 = 255; -pub const CERT_ALT_NAME_ENTRY_ERR_INDEX_SHIFT: u32 = 16; -pub const CERT_ALT_NAME_VALUE_ERR_INDEX_MASK: u32 = 65535; -pub const CERT_ALT_NAME_VALUE_ERR_INDEX_SHIFT: u32 = 0; -pub const CERT_CA_SUBJECT_FLAG: u32 = 128; -pub const CERT_END_ENTITY_SUBJECT_FLAG: u32 = 64; -pub const szOID_PKIX_ACC_DESCR: &[u8; 17] = b"1.3.6.1.5.5.7.48\0"; -pub const szOID_PKIX_OCSP: &[u8; 19] = b"1.3.6.1.5.5.7.48.1\0"; -pub const szOID_PKIX_CA_ISSUERS: &[u8; 19] = b"1.3.6.1.5.5.7.48.2\0"; -pub const szOID_PKIX_TIME_STAMPING: &[u8; 19] = b"1.3.6.1.5.5.7.48.3\0"; -pub const szOID_PKIX_CA_REPOSITORY: &[u8; 19] = b"1.3.6.1.5.5.7.48.5\0"; -pub const CRL_REASON_UNSPECIFIED: u32 = 0; -pub const CRL_REASON_KEY_COMPROMISE: u32 = 1; -pub const CRL_REASON_CA_COMPROMISE: u32 = 2; -pub const CRL_REASON_AFFILIATION_CHANGED: u32 = 3; -pub const CRL_REASON_SUPERSEDED: u32 = 4; -pub const CRL_REASON_CESSATION_OF_OPERATION: u32 = 5; -pub const CRL_REASON_CERTIFICATE_HOLD: u32 = 6; -pub const CRL_REASON_REMOVE_FROM_CRL: u32 = 8; -pub const CRL_REASON_PRIVILEGE_WITHDRAWN: u32 = 9; -pub const CRL_REASON_AA_COMPROMISE: u32 = 10; -pub const CRL_DIST_POINT_NO_NAME: u32 = 0; -pub const CRL_DIST_POINT_FULL_NAME: u32 = 1; -pub const CRL_DIST_POINT_ISSUER_RDN_NAME: u32 = 2; -pub const CRL_REASON_UNUSED_FLAG: u32 = 128; -pub const CRL_REASON_KEY_COMPROMISE_FLAG: u32 = 64; -pub const CRL_REASON_CA_COMPROMISE_FLAG: u32 = 32; -pub const CRL_REASON_AFFILIATION_CHANGED_FLAG: u32 = 16; -pub const CRL_REASON_SUPERSEDED_FLAG: u32 = 8; -pub const CRL_REASON_CESSATION_OF_OPERATION_FLAG: u32 = 4; -pub const CRL_REASON_CERTIFICATE_HOLD_FLAG: u32 = 2; -pub const CRL_REASON_PRIVILEGE_WITHDRAWN_FLAG: u32 = 1; -pub const CRL_REASON_AA_COMPROMISE_FLAG: u32 = 128; -pub const CRL_DIST_POINT_ERR_INDEX_MASK: u32 = 127; -pub const CRL_DIST_POINT_ERR_INDEX_SHIFT: u32 = 24; -pub const CRL_DIST_POINT_ERR_CRL_ISSUER_BIT: u32 = 2147483648; -pub const CROSS_CERT_DIST_POINT_ERR_INDEX_MASK: u32 = 255; -pub const CROSS_CERT_DIST_POINT_ERR_INDEX_SHIFT: u32 = 24; -pub const CERT_EXCLUDED_SUBTREE_BIT: u32 = 2147483648; -pub const SORTED_CTL_EXT_FLAGS_OFFSET: u32 = 0; -pub const SORTED_CTL_EXT_COUNT_OFFSET: u32 = 4; -pub const SORTED_CTL_EXT_MAX_COLLISION_OFFSET: u32 = 8; -pub const SORTED_CTL_EXT_HASH_BUCKET_OFFSET: u32 = 12; -pub const SORTED_CTL_EXT_HASHED_SUBJECT_IDENTIFIER_FLAG: u32 = 1; -pub const CERT_DSS_R_LEN: u32 = 20; -pub const CERT_DSS_S_LEN: u32 = 20; -pub const CERT_DSS_SIGNATURE_LEN: u32 = 40; -pub const CERT_MAX_ASN_ENCODED_DSS_SIGNATURE_LEN: u32 = 48; -pub const CRYPT_X942_COUNTER_BYTE_LENGTH: u32 = 4; -pub const CRYPT_X942_KEY_LENGTH_BYTE_LENGTH: u32 = 4; -pub const CRYPT_X942_PUB_INFO_BYTE_LENGTH: u32 = 64; -pub const CRYPT_ECC_CMS_SHARED_INFO_SUPPPUBINFO_BYTE_LENGTH: u32 = 4; -pub const CRYPT_RC2_40BIT_VERSION: u32 = 160; -pub const CRYPT_RC2_56BIT_VERSION: u32 = 52; -pub const CRYPT_RC2_64BIT_VERSION: u32 = 120; -pub const CRYPT_RC2_128BIT_VERSION: u32 = 58; -pub const szOID_QC_EU_COMPLIANCE: &[u8; 15] = b"0.4.0.1862.1.1\0"; -pub const szOID_QC_SSCD: &[u8; 15] = b"0.4.0.1862.1.4\0"; -pub const PKCS_RSA_SSA_PSS_TRAILER_FIELD_BC: u32 = 1; -pub const szOID_VERISIGN_PRIVATE_6_9: &[u8; 24] = b"2.16.840.1.113733.1.6.9\0"; -pub const szOID_VERISIGN_ONSITE_JURISDICTION_HASH: &[u8; 25] = b"2.16.840.1.113733.1.6.11\0"; -pub const szOID_VERISIGN_BITSTRING_6_13: &[u8; 25] = b"2.16.840.1.113733.1.6.13\0"; -pub const szOID_VERISIGN_ISS_STRONG_CRYPTO: &[u8; 24] = b"2.16.840.1.113733.1.8.1\0"; -pub const szOIDVerisign_MessageType: &[u8; 24] = b"2.16.840.1.113733.1.9.2\0"; -pub const szOIDVerisign_PkiStatus: &[u8; 24] = b"2.16.840.1.113733.1.9.3\0"; -pub const szOIDVerisign_FailInfo: &[u8; 24] = b"2.16.840.1.113733.1.9.4\0"; -pub const szOIDVerisign_SenderNonce: &[u8; 24] = b"2.16.840.1.113733.1.9.5\0"; -pub const szOIDVerisign_RecipientNonce: &[u8; 24] = b"2.16.840.1.113733.1.9.6\0"; -pub const szOIDVerisign_TransactionID: &[u8; 24] = b"2.16.840.1.113733.1.9.7\0"; -pub const szOID_NETSCAPE: &[u8; 18] = b"2.16.840.1.113730\0"; -pub const szOID_NETSCAPE_CERT_EXTENSION: &[u8; 20] = b"2.16.840.1.113730.1\0"; -pub const szOID_NETSCAPE_CERT_TYPE: &[u8; 22] = b"2.16.840.1.113730.1.1\0"; -pub const szOID_NETSCAPE_BASE_URL: &[u8; 22] = b"2.16.840.1.113730.1.2\0"; -pub const szOID_NETSCAPE_REVOCATION_URL: &[u8; 22] = b"2.16.840.1.113730.1.3\0"; -pub const szOID_NETSCAPE_CA_REVOCATION_URL: &[u8; 22] = b"2.16.840.1.113730.1.4\0"; -pub const szOID_NETSCAPE_CERT_RENEWAL_URL: &[u8; 22] = b"2.16.840.1.113730.1.7\0"; -pub const szOID_NETSCAPE_CA_POLICY_URL: &[u8; 22] = b"2.16.840.1.113730.1.8\0"; -pub const szOID_NETSCAPE_SSL_SERVER_NAME: &[u8; 23] = b"2.16.840.1.113730.1.12\0"; -pub const szOID_NETSCAPE_COMMENT: &[u8; 23] = b"2.16.840.1.113730.1.13\0"; -pub const szOID_NETSCAPE_DATA_TYPE: &[u8; 20] = b"2.16.840.1.113730.2\0"; -pub const szOID_NETSCAPE_CERT_SEQUENCE: &[u8; 22] = b"2.16.840.1.113730.2.5\0"; -pub const NETSCAPE_SSL_CLIENT_AUTH_CERT_TYPE: u32 = 128; -pub const NETSCAPE_SSL_SERVER_AUTH_CERT_TYPE: u32 = 64; -pub const NETSCAPE_SMIME_CERT_TYPE: u32 = 32; -pub const NETSCAPE_SIGN_CERT_TYPE: u32 = 16; -pub const NETSCAPE_SSL_CA_CERT_TYPE: u32 = 4; -pub const NETSCAPE_SMIME_CA_CERT_TYPE: u32 = 2; -pub const NETSCAPE_SIGN_CA_CERT_TYPE: u32 = 1; -pub const szOID_CT_PKI_DATA: &[u8; 19] = b"1.3.6.1.5.5.7.12.2\0"; -pub const szOID_CT_PKI_RESPONSE: &[u8; 19] = b"1.3.6.1.5.5.7.12.3\0"; -pub const szOID_PKIX_NO_SIGNATURE: &[u8; 18] = b"1.3.6.1.5.5.7.6.2\0"; -pub const szOID_CMC: &[u8; 16] = b"1.3.6.1.5.5.7.7\0"; -pub const szOID_CMC_STATUS_INFO: &[u8; 18] = b"1.3.6.1.5.5.7.7.1\0"; -pub const szOID_CMC_IDENTIFICATION: &[u8; 18] = b"1.3.6.1.5.5.7.7.2\0"; -pub const szOID_CMC_IDENTITY_PROOF: &[u8; 18] = b"1.3.6.1.5.5.7.7.3\0"; -pub const szOID_CMC_DATA_RETURN: &[u8; 18] = b"1.3.6.1.5.5.7.7.4\0"; -pub const szOID_CMC_TRANSACTION_ID: &[u8; 18] = b"1.3.6.1.5.5.7.7.5\0"; -pub const szOID_CMC_SENDER_NONCE: &[u8; 18] = b"1.3.6.1.5.5.7.7.6\0"; -pub const szOID_CMC_RECIPIENT_NONCE: &[u8; 18] = b"1.3.6.1.5.5.7.7.7\0"; -pub const szOID_CMC_ADD_EXTENSIONS: &[u8; 18] = b"1.3.6.1.5.5.7.7.8\0"; -pub const szOID_CMC_ENCRYPTED_POP: &[u8; 18] = b"1.3.6.1.5.5.7.7.9\0"; -pub const szOID_CMC_DECRYPTED_POP: &[u8; 19] = b"1.3.6.1.5.5.7.7.10\0"; -pub const szOID_CMC_LRA_POP_WITNESS: &[u8; 19] = b"1.3.6.1.5.5.7.7.11\0"; -pub const szOID_CMC_GET_CERT: &[u8; 19] = b"1.3.6.1.5.5.7.7.15\0"; -pub const szOID_CMC_GET_CRL: &[u8; 19] = b"1.3.6.1.5.5.7.7.16\0"; -pub const szOID_CMC_REVOKE_REQUEST: &[u8; 19] = b"1.3.6.1.5.5.7.7.17\0"; -pub const szOID_CMC_REG_INFO: &[u8; 19] = b"1.3.6.1.5.5.7.7.18\0"; -pub const szOID_CMC_RESPONSE_INFO: &[u8; 19] = b"1.3.6.1.5.5.7.7.19\0"; -pub const szOID_CMC_QUERY_PENDING: &[u8; 19] = b"1.3.6.1.5.5.7.7.21\0"; -pub const szOID_CMC_ID_POP_LINK_RANDOM: &[u8; 19] = b"1.3.6.1.5.5.7.7.22\0"; -pub const szOID_CMC_ID_POP_LINK_WITNESS: &[u8; 19] = b"1.3.6.1.5.5.7.7.23\0"; -pub const szOID_CMC_ID_CONFIRM_CERT_ACCEPTANCE: &[u8; 19] = b"1.3.6.1.5.5.7.7.24\0"; -pub const szOID_CMC_ADD_ATTRIBUTES: &[u8; 24] = b"1.3.6.1.4.1.311.10.10.1\0"; -pub const CMC_TAGGED_CERT_REQUEST_CHOICE: u32 = 1; -pub const CMC_OTHER_INFO_NO_CHOICE: u32 = 0; -pub const CMC_OTHER_INFO_FAIL_CHOICE: u32 = 1; -pub const CMC_OTHER_INFO_PEND_CHOICE: u32 = 2; -pub const CMC_STATUS_SUCCESS: u32 = 0; -pub const CMC_STATUS_FAILED: u32 = 2; -pub const CMC_STATUS_PENDING: u32 = 3; -pub const CMC_STATUS_NO_SUPPORT: u32 = 4; -pub const CMC_STATUS_CONFIRM_REQUIRED: u32 = 5; -pub const CMC_FAIL_BAD_ALG: u32 = 0; -pub const CMC_FAIL_BAD_MESSAGE_CHECK: u32 = 1; -pub const CMC_FAIL_BAD_REQUEST: u32 = 2; -pub const CMC_FAIL_BAD_TIME: u32 = 3; -pub const CMC_FAIL_BAD_CERT_ID: u32 = 4; -pub const CMC_FAIL_UNSUPORTED_EXT: u32 = 5; -pub const CMC_FAIL_MUST_ARCHIVE_KEYS: u32 = 6; -pub const CMC_FAIL_BAD_IDENTITY: u32 = 7; -pub const CMC_FAIL_POP_REQUIRED: u32 = 8; -pub const CMC_FAIL_POP_FAILED: u32 = 9; -pub const CMC_FAIL_NO_KEY_REUSE: u32 = 10; -pub const CMC_FAIL_INTERNAL_CA_ERROR: u32 = 11; -pub const CMC_FAIL_TRY_LATER: u32 = 12; -pub const CERT_LOGOTYPE_GRAY_SCALE_IMAGE_INFO_CHOICE: u32 = 1; -pub const CERT_LOGOTYPE_COLOR_IMAGE_INFO_CHOICE: u32 = 2; -pub const CERT_LOGOTYPE_NO_IMAGE_RESOLUTION_CHOICE: u32 = 0; -pub const CERT_LOGOTYPE_BITS_IMAGE_RESOLUTION_CHOICE: u32 = 1; -pub const CERT_LOGOTYPE_TABLE_SIZE_IMAGE_RESOLUTION_CHOICE: u32 = 2; -pub const CERT_LOGOTYPE_DIRECT_INFO_CHOICE: u32 = 1; -pub const CERT_LOGOTYPE_INDIRECT_INFO_CHOICE: u32 = 2; -pub const szOID_LOYALTY_OTHER_LOGOTYPE: &[u8; 19] = b"1.3.6.1.5.5.7.20.1\0"; -pub const szOID_BACKGROUND_OTHER_LOGOTYPE: &[u8; 19] = b"1.3.6.1.5.5.7.20.2\0"; -pub const CERT_BIOMETRIC_PREDEFINED_DATA_CHOICE: u32 = 1; -pub const CERT_BIOMETRIC_OID_DATA_CHOICE: u32 = 2; -pub const CERT_BIOMETRIC_PICTURE_TYPE: u32 = 0; -pub const CERT_BIOMETRIC_SIGNATURE_TYPE: u32 = 1; -pub const OCSP_REQUEST_V1: u32 = 0; -pub const OCSP_SUCCESSFUL_RESPONSE: u32 = 0; -pub const OCSP_MALFORMED_REQUEST_RESPONSE: u32 = 1; -pub const OCSP_INTERNAL_ERROR_RESPONSE: u32 = 2; -pub const OCSP_TRY_LATER_RESPONSE: u32 = 3; -pub const OCSP_SIG_REQUIRED_RESPONSE: u32 = 5; -pub const OCSP_UNAUTHORIZED_RESPONSE: u32 = 6; -pub const szOID_PKIX_OCSP_BASIC_SIGNED_RESPONSE: &[u8; 21] = b"1.3.6.1.5.5.7.48.1.1\0"; -pub const OCSP_BASIC_GOOD_CERT_STATUS: u32 = 0; -pub const OCSP_BASIC_REVOKED_CERT_STATUS: u32 = 1; -pub const OCSP_BASIC_UNKNOWN_CERT_STATUS: u32 = 2; -pub const OCSP_BASIC_RESPONSE_V1: u32 = 0; -pub const OCSP_BASIC_BY_NAME_RESPONDER_ID: u32 = 1; -pub const OCSP_BASIC_BY_KEY_RESPONDER_ID: u32 = 2; -pub const CRYPT_OID_ENCODE_OBJECT_FUNC: &[u8; 21] = b"CryptDllEncodeObject\0"; -pub const CRYPT_OID_DECODE_OBJECT_FUNC: &[u8; 21] = b"CryptDllDecodeObject\0"; -pub const CRYPT_OID_ENCODE_OBJECT_EX_FUNC: &[u8; 23] = b"CryptDllEncodeObjectEx\0"; -pub const CRYPT_OID_DECODE_OBJECT_EX_FUNC: &[u8; 23] = b"CryptDllDecodeObjectEx\0"; -pub const CRYPT_OID_CREATE_COM_OBJECT_FUNC: &[u8; 24] = b"CryptDllCreateCOMObject\0"; -pub const CRYPT_OID_VERIFY_REVOCATION_FUNC: &[u8; 24] = b"CertDllVerifyRevocation\0"; -pub const CRYPT_OID_VERIFY_CTL_USAGE_FUNC: &[u8; 22] = b"CertDllVerifyCTLUsage\0"; -pub const CRYPT_OID_FORMAT_OBJECT_FUNC: &[u8; 21] = b"CryptDllFormatObject\0"; -pub const CRYPT_OID_FIND_OID_INFO_FUNC: &[u8; 20] = b"CryptDllFindOIDInfo\0"; -pub const CRYPT_OID_FIND_LOCALIZED_NAME_FUNC: &[u8; 26] = b"CryptDllFindLocalizedName\0"; -pub const CRYPT_OID_REGPATH: &[u8; 36] = b"Software\\Microsoft\\Cryptography\\OID\0"; -pub const CRYPT_OID_REG_ENCODING_TYPE_PREFIX: &[u8; 14] = b"EncodingType \0"; -pub const CRYPT_OID_REG_DLL_VALUE_NAME: &[u8; 4] = b"Dll\0"; -pub const CRYPT_OID_REG_FUNC_NAME_VALUE_NAME: &[u8; 9] = b"FuncName\0"; -pub const CRYPT_OID_REG_FUNC_NAME_VALUE_NAME_A: &[u8; 9] = b"FuncName\0"; -pub const CRYPT_OID_REG_FLAGS_VALUE_NAME: &[u8; 11] = b"CryptFlags\0"; -pub const CRYPT_DEFAULT_OID: &[u8; 8] = b"DEFAULT\0"; -pub const CRYPT_INSTALL_OID_FUNC_BEFORE_FLAG: u32 = 1; -pub const CRYPT_GET_INSTALLED_OID_FUNC_FLAG: u32 = 1; -pub const CRYPT_REGISTER_FIRST_INDEX: u32 = 0; -pub const CRYPT_REGISTER_LAST_INDEX: u32 = 4294967295; -pub const CRYPT_MATCH_ANY_ENCODING_TYPE: u32 = 4294967295; -pub const CALG_OID_INFO_CNG_ONLY: u32 = 4294967295; -pub const CALG_OID_INFO_PARAMETERS: u32 = 4294967294; -pub const CRYPT_OID_INFO_HASH_PARAMETERS_ALGORITHM: &[u8; 27] = b"CryptOIDInfoHashParameters\0"; -pub const CRYPT_OID_INFO_ECC_PARAMETERS_ALGORITHM: &[u8; 26] = b"CryptOIDInfoECCParameters\0"; -pub const CRYPT_OID_INFO_MGF1_PARAMETERS_ALGORITHM: &[u8; 27] = b"CryptOIDInfoMgf1Parameters\0"; -pub const CRYPT_OID_INFO_NO_SIGN_ALGORITHM: &[u8; 19] = b"CryptOIDInfoNoSign\0"; -pub const CRYPT_OID_INFO_OAEP_PARAMETERS_ALGORITHM: &[u8; 27] = b"CryptOIDInfoOAEPParameters\0"; -pub const CRYPT_OID_INFO_ECC_WRAP_PARAMETERS_ALGORITHM: &[u8; 30] = - b"CryptOIDInfoECCWrapParameters\0"; -pub const CRYPT_OID_INFO_NO_PARAMETERS_ALGORITHM: &[u8; 25] = b"CryptOIDInfoNoParameters\0"; -pub const CRYPT_HASH_ALG_OID_GROUP_ID: u32 = 1; -pub const CRYPT_ENCRYPT_ALG_OID_GROUP_ID: u32 = 2; -pub const CRYPT_PUBKEY_ALG_OID_GROUP_ID: u32 = 3; -pub const CRYPT_SIGN_ALG_OID_GROUP_ID: u32 = 4; -pub const CRYPT_RDN_ATTR_OID_GROUP_ID: u32 = 5; -pub const CRYPT_EXT_OR_ATTR_OID_GROUP_ID: u32 = 6; -pub const CRYPT_ENHKEY_USAGE_OID_GROUP_ID: u32 = 7; -pub const CRYPT_POLICY_OID_GROUP_ID: u32 = 8; -pub const CRYPT_TEMPLATE_OID_GROUP_ID: u32 = 9; -pub const CRYPT_KDF_OID_GROUP_ID: u32 = 10; -pub const CRYPT_LAST_OID_GROUP_ID: u32 = 10; -pub const CRYPT_FIRST_ALG_OID_GROUP_ID: u32 = 1; -pub const CRYPT_LAST_ALG_OID_GROUP_ID: u32 = 4; -pub const CRYPT_OID_INHIBIT_SIGNATURE_FORMAT_FLAG: u32 = 1; -pub const CRYPT_OID_USE_PUBKEY_PARA_FOR_PKCS7_FLAG: u32 = 2; -pub const CRYPT_OID_NO_NULL_ALGORITHM_PARA_FLAG: u32 = 4; -pub const CRYPT_OID_PUBKEY_SIGN_ONLY_FLAG: u32 = 2147483648; -pub const CRYPT_OID_PUBKEY_ENCRYPT_ONLY_FLAG: u32 = 1073741824; -pub const CRYPT_OID_USE_CURVE_NAME_FOR_ENCODE_FLAG: u32 = 536870912; -pub const CRYPT_OID_USE_CURVE_PARAMETERS_FOR_ENCODE_FLAG: u32 = 268435456; -pub const CRYPT_OID_INFO_OID_KEY: u32 = 1; -pub const CRYPT_OID_INFO_NAME_KEY: u32 = 2; -pub const CRYPT_OID_INFO_ALGID_KEY: u32 = 3; -pub const CRYPT_OID_INFO_SIGN_KEY: u32 = 4; -pub const CRYPT_OID_INFO_CNG_ALGID_KEY: u32 = 5; -pub const CRYPT_OID_INFO_CNG_SIGN_KEY: u32 = 6; -pub const CRYPT_OID_INFO_OID_KEY_FLAGS_MASK: u32 = 4294901760; -pub const CRYPT_OID_INFO_PUBKEY_SIGN_KEY_FLAG: u32 = 2147483648; -pub const CRYPT_OID_INFO_PUBKEY_ENCRYPT_KEY_FLAG: u32 = 1073741824; -pub const CRYPT_OID_DISABLE_SEARCH_DS_FLAG: u32 = 2147483648; -pub const CRYPT_OID_INFO_OID_GROUP_BIT_LEN_MASK: u32 = 268369920; -pub const CRYPT_OID_INFO_OID_GROUP_BIT_LEN_SHIFT: u32 = 16; -pub const CRYPT_INSTALL_OID_INFO_BEFORE_FLAG: u32 = 1; -pub const CRYPT_LOCALIZED_NAME_ENCODING_TYPE: u32 = 0; -pub const CRYPT_LOCALIZED_NAME_OID: &[u8; 15] = b"LocalizedNames\0"; -pub const CERT_STRONG_SIGN_ECDSA_ALGORITHM: &[u8; 6] = b"ECDSA\0"; -pub const CERT_STRONG_SIGN_SERIALIZED_INFO_CHOICE: u32 = 1; -pub const CERT_STRONG_SIGN_OID_INFO_CHOICE: u32 = 2; -pub const CERT_STRONG_SIGN_ENABLE_CRL_CHECK: u32 = 1; -pub const CERT_STRONG_SIGN_ENABLE_OCSP_CHECK: u32 = 2; -pub const szOID_CERT_STRONG_SIGN_OS_PREFIX: &[u8; 22] = b"1.3.6.1.4.1.311.72.1.\0"; -pub const szOID_CERT_STRONG_SIGN_OS_1: &[u8; 23] = b"1.3.6.1.4.1.311.72.1.1\0"; -pub const szOID_CERT_STRONG_SIGN_OS_CURRENT: &[u8; 23] = b"1.3.6.1.4.1.311.72.1.1\0"; -pub const szOID_CERT_STRONG_KEY_OS_PREFIX: &[u8; 22] = b"1.3.6.1.4.1.311.72.2.\0"; -pub const szOID_CERT_STRONG_KEY_OS_1: &[u8; 23] = b"1.3.6.1.4.1.311.72.2.1\0"; -pub const szOID_CERT_STRONG_KEY_OS_CURRENT: &[u8; 23] = b"1.3.6.1.4.1.311.72.2.1\0"; -pub const szOID_PKCS_7_DATA: &[u8; 21] = b"1.2.840.113549.1.7.1\0"; -pub const szOID_PKCS_7_SIGNED: &[u8; 21] = b"1.2.840.113549.1.7.2\0"; -pub const szOID_PKCS_7_ENVELOPED: &[u8; 21] = b"1.2.840.113549.1.7.3\0"; -pub const szOID_PKCS_7_SIGNEDANDENVELOPED: &[u8; 21] = b"1.2.840.113549.1.7.4\0"; -pub const szOID_PKCS_7_DIGESTED: &[u8; 21] = b"1.2.840.113549.1.7.5\0"; -pub const szOID_PKCS_7_ENCRYPTED: &[u8; 21] = b"1.2.840.113549.1.7.6\0"; -pub const szOID_PKCS_9_CONTENT_TYPE: &[u8; 21] = b"1.2.840.113549.1.9.3\0"; -pub const szOID_PKCS_9_MESSAGE_DIGEST: &[u8; 21] = b"1.2.840.113549.1.9.4\0"; -pub const CMSG_DATA: u32 = 1; -pub const CMSG_SIGNED: u32 = 2; -pub const CMSG_ENVELOPED: u32 = 3; -pub const CMSG_SIGNED_AND_ENVELOPED: u32 = 4; -pub const CMSG_HASHED: u32 = 5; -pub const CMSG_ENCRYPTED: u32 = 6; -pub const CMSG_ALL_FLAGS: i32 = -1; -pub const CMSG_DATA_FLAG: u32 = 2; -pub const CMSG_SIGNED_FLAG: u32 = 4; -pub const CMSG_ENVELOPED_FLAG: u32 = 8; -pub const CMSG_SIGNED_AND_ENVELOPED_FLAG: u32 = 16; -pub const CMSG_HASHED_FLAG: u32 = 32; -pub const CMSG_ENCRYPTED_FLAG: u32 = 64; -pub const CERT_ID_ISSUER_SERIAL_NUMBER: u32 = 1; -pub const CERT_ID_KEY_IDENTIFIER: u32 = 2; -pub const CERT_ID_SHA1_HASH: u32 = 3; -pub const CMSG_KEY_AGREE_EPHEMERAL_KEY_CHOICE: u32 = 1; -pub const CMSG_KEY_AGREE_STATIC_KEY_CHOICE: u32 = 2; -pub const CMSG_MAIL_LIST_HANDLE_KEY_CHOICE: u32 = 1; -pub const CMSG_KEY_TRANS_RECIPIENT: u32 = 1; -pub const CMSG_KEY_AGREE_RECIPIENT: u32 = 2; -pub const CMSG_MAIL_LIST_RECIPIENT: u32 = 3; -pub const CMSG_SP3_COMPATIBLE_ENCRYPT_FLAG: u32 = 2147483648; -pub const CMSG_RC4_NO_SALT_FLAG: u32 = 1073741824; -pub const CMSG_INDEFINITE_LENGTH: u32 = 4294967295; -pub const CMSG_BARE_CONTENT_FLAG: u32 = 1; -pub const CMSG_LENGTH_ONLY_FLAG: u32 = 2; -pub const CMSG_DETACHED_FLAG: u32 = 4; -pub const CMSG_AUTHENTICATED_ATTRIBUTES_FLAG: u32 = 8; -pub const CMSG_CONTENTS_OCTETS_FLAG: u32 = 16; -pub const CMSG_MAX_LENGTH_FLAG: u32 = 32; -pub const CMSG_CMS_ENCAPSULATED_CONTENT_FLAG: u32 = 64; -pub const CMSG_SIGNED_DATA_NO_SIGN_FLAG: u32 = 128; -pub const CMSG_CRYPT_RELEASE_CONTEXT_FLAG: u32 = 32768; -pub const CMSG_TYPE_PARAM: u32 = 1; -pub const CMSG_CONTENT_PARAM: u32 = 2; -pub const CMSG_BARE_CONTENT_PARAM: u32 = 3; -pub const CMSG_INNER_CONTENT_TYPE_PARAM: u32 = 4; -pub const CMSG_SIGNER_COUNT_PARAM: u32 = 5; -pub const CMSG_SIGNER_INFO_PARAM: u32 = 6; -pub const CMSG_SIGNER_CERT_INFO_PARAM: u32 = 7; -pub const CMSG_SIGNER_HASH_ALGORITHM_PARAM: u32 = 8; -pub const CMSG_SIGNER_AUTH_ATTR_PARAM: u32 = 9; -pub const CMSG_SIGNER_UNAUTH_ATTR_PARAM: u32 = 10; -pub const CMSG_CERT_COUNT_PARAM: u32 = 11; -pub const CMSG_CERT_PARAM: u32 = 12; -pub const CMSG_CRL_COUNT_PARAM: u32 = 13; -pub const CMSG_CRL_PARAM: u32 = 14; -pub const CMSG_ENVELOPE_ALGORITHM_PARAM: u32 = 15; -pub const CMSG_RECIPIENT_COUNT_PARAM: u32 = 17; -pub const CMSG_RECIPIENT_INDEX_PARAM: u32 = 18; -pub const CMSG_RECIPIENT_INFO_PARAM: u32 = 19; -pub const CMSG_HASH_ALGORITHM_PARAM: u32 = 20; -pub const CMSG_HASH_DATA_PARAM: u32 = 21; -pub const CMSG_COMPUTED_HASH_PARAM: u32 = 22; -pub const CMSG_ENCRYPT_PARAM: u32 = 26; -pub const CMSG_ENCRYPTED_DIGEST: u32 = 27; -pub const CMSG_ENCODED_SIGNER: u32 = 28; -pub const CMSG_ENCODED_MESSAGE: u32 = 29; -pub const CMSG_VERSION_PARAM: u32 = 30; -pub const CMSG_ATTR_CERT_COUNT_PARAM: u32 = 31; -pub const CMSG_ATTR_CERT_PARAM: u32 = 32; -pub const CMSG_CMS_RECIPIENT_COUNT_PARAM: u32 = 33; -pub const CMSG_CMS_RECIPIENT_INDEX_PARAM: u32 = 34; -pub const CMSG_CMS_RECIPIENT_ENCRYPTED_KEY_INDEX_PARAM: u32 = 35; -pub const CMSG_CMS_RECIPIENT_INFO_PARAM: u32 = 36; -pub const CMSG_UNPROTECTED_ATTR_PARAM: u32 = 37; -pub const CMSG_SIGNER_CERT_ID_PARAM: u32 = 38; -pub const CMSG_CMS_SIGNER_INFO_PARAM: u32 = 39; -pub const CMSG_SIGNED_DATA_V1: u32 = 1; -pub const CMSG_SIGNED_DATA_V3: u32 = 3; -pub const CMSG_SIGNED_DATA_PKCS_1_5_VERSION: u32 = 1; -pub const CMSG_SIGNED_DATA_CMS_VERSION: u32 = 3; -pub const CMSG_SIGNER_INFO_V1: u32 = 1; -pub const CMSG_SIGNER_INFO_V3: u32 = 3; -pub const CMSG_SIGNER_INFO_PKCS_1_5_VERSION: u32 = 1; -pub const CMSG_SIGNER_INFO_CMS_VERSION: u32 = 3; -pub const CMSG_HASHED_DATA_V0: u32 = 0; -pub const CMSG_HASHED_DATA_V2: u32 = 2; -pub const CMSG_HASHED_DATA_PKCS_1_5_VERSION: u32 = 0; -pub const CMSG_HASHED_DATA_CMS_VERSION: u32 = 2; -pub const CMSG_ENVELOPED_DATA_V0: u32 = 0; -pub const CMSG_ENVELOPED_DATA_V2: u32 = 2; -pub const CMSG_ENVELOPED_DATA_PKCS_1_5_VERSION: u32 = 0; -pub const CMSG_ENVELOPED_DATA_CMS_VERSION: u32 = 2; -pub const CMSG_KEY_AGREE_ORIGINATOR_CERT: u32 = 1; -pub const CMSG_KEY_AGREE_ORIGINATOR_PUBLIC_KEY: u32 = 2; -pub const CMSG_ENVELOPED_RECIPIENT_V0: u32 = 0; -pub const CMSG_ENVELOPED_RECIPIENT_V2: u32 = 2; -pub const CMSG_ENVELOPED_RECIPIENT_V3: u32 = 3; -pub const CMSG_ENVELOPED_RECIPIENT_V4: u32 = 4; -pub const CMSG_KEY_TRANS_PKCS_1_5_VERSION: u32 = 0; -pub const CMSG_KEY_TRANS_CMS_VERSION: u32 = 2; -pub const CMSG_KEY_AGREE_VERSION: u32 = 3; -pub const CMSG_MAIL_LIST_VERSION: u32 = 4; -pub const CMSG_CTRL_VERIFY_SIGNATURE: u32 = 1; -pub const CMSG_CTRL_DECRYPT: u32 = 2; -pub const CMSG_CTRL_VERIFY_HASH: u32 = 5; -pub const CMSG_CTRL_ADD_SIGNER: u32 = 6; -pub const CMSG_CTRL_DEL_SIGNER: u32 = 7; -pub const CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR: u32 = 8; -pub const CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR: u32 = 9; -pub const CMSG_CTRL_ADD_CERT: u32 = 10; -pub const CMSG_CTRL_DEL_CERT: u32 = 11; -pub const CMSG_CTRL_ADD_CRL: u32 = 12; -pub const CMSG_CTRL_DEL_CRL: u32 = 13; -pub const CMSG_CTRL_ADD_ATTR_CERT: u32 = 14; -pub const CMSG_CTRL_DEL_ATTR_CERT: u32 = 15; -pub const CMSG_CTRL_KEY_TRANS_DECRYPT: u32 = 16; -pub const CMSG_CTRL_KEY_AGREE_DECRYPT: u32 = 17; -pub const CMSG_CTRL_MAIL_LIST_DECRYPT: u32 = 18; -pub const CMSG_CTRL_VERIFY_SIGNATURE_EX: u32 = 19; -pub const CMSG_CTRL_ADD_CMS_SIGNER_INFO: u32 = 20; -pub const CMSG_CTRL_ENABLE_STRONG_SIGNATURE: u32 = 21; -pub const CMSG_VERIFY_SIGNER_PUBKEY: u32 = 1; -pub const CMSG_VERIFY_SIGNER_CERT: u32 = 2; -pub const CMSG_VERIFY_SIGNER_CHAIN: u32 = 3; -pub const CMSG_VERIFY_SIGNER_NULL: u32 = 4; -pub const CMSG_VERIFY_COUNTER_SIGN_ENABLE_STRONG_FLAG: u32 = 1; -pub const CMSG_OID_GEN_ENCRYPT_KEY_FUNC: &[u8; 25] = b"CryptMsgDllGenEncryptKey\0"; -pub const CMSG_OID_EXPORT_ENCRYPT_KEY_FUNC: &[u8; 28] = b"CryptMsgDllExportEncryptKey\0"; -pub const CMSG_OID_IMPORT_ENCRYPT_KEY_FUNC: &[u8; 28] = b"CryptMsgDllImportEncryptKey\0"; -pub const CMSG_CONTENT_ENCRYPT_PAD_ENCODED_LEN_FLAG: u32 = 1; -pub const CMSG_CONTENT_ENCRYPT_FREE_PARA_FLAG: u32 = 1; -pub const CMSG_CONTENT_ENCRYPT_FREE_OBJID_FLAG: u32 = 2; -pub const CMSG_CONTENT_ENCRYPT_RELEASE_CONTEXT_FLAG: u32 = 32768; -pub const CMSG_OID_GEN_CONTENT_ENCRYPT_KEY_FUNC: &[u8; 32] = b"CryptMsgDllGenContentEncryptKey\0"; -pub const CMSG_OID_CAPI1_GEN_CONTENT_ENCRYPT_KEY_FUNC: &[u8; 32] = - b"CryptMsgDllGenContentEncryptKey\0"; -pub const CMSG_OID_CNG_GEN_CONTENT_ENCRYPT_KEY_FUNC: &[u8; 35] = - b"CryptMsgDllCNGGenContentEncryptKey\0"; -pub const CMSG_KEY_TRANS_ENCRYPT_FREE_PARA_FLAG: u32 = 1; -pub const CMSG_KEY_TRANS_ENCRYPT_FREE_OBJID_FLAG: u32 = 2; -pub const CMSG_OID_EXPORT_KEY_TRANS_FUNC: &[u8; 26] = b"CryptMsgDllExportKeyTrans\0"; -pub const CMSG_OID_CAPI1_EXPORT_KEY_TRANS_FUNC: &[u8; 26] = b"CryptMsgDllExportKeyTrans\0"; -pub const CMSG_OID_CNG_EXPORT_KEY_TRANS_FUNC: &[u8; 29] = b"CryptMsgDllCNGExportKeyTrans\0"; -pub const CMSG_KEY_AGREE_ENCRYPT_FREE_PARA_FLAG: u32 = 1; -pub const CMSG_KEY_AGREE_ENCRYPT_FREE_MATERIAL_FLAG: u32 = 2; -pub const CMSG_KEY_AGREE_ENCRYPT_FREE_PUBKEY_ALG_FLAG: u32 = 4; -pub const CMSG_KEY_AGREE_ENCRYPT_FREE_PUBKEY_PARA_FLAG: u32 = 8; -pub const CMSG_KEY_AGREE_ENCRYPT_FREE_PUBKEY_BITS_FLAG: u32 = 16; -pub const CMSG_KEY_AGREE_ENCRYPT_FREE_OBJID_FLAG: u32 = 32; -pub const CMSG_OID_EXPORT_KEY_AGREE_FUNC: &[u8; 26] = b"CryptMsgDllExportKeyAgree\0"; -pub const CMSG_OID_CAPI1_EXPORT_KEY_AGREE_FUNC: &[u8; 26] = b"CryptMsgDllExportKeyAgree\0"; -pub const CMSG_OID_CNG_EXPORT_KEY_AGREE_FUNC: &[u8; 29] = b"CryptMsgDllCNGExportKeyAgree\0"; -pub const CMSG_MAIL_LIST_ENCRYPT_FREE_PARA_FLAG: u32 = 1; -pub const CMSG_MAIL_LIST_ENCRYPT_FREE_OBJID_FLAG: u32 = 2; -pub const CMSG_OID_EXPORT_MAIL_LIST_FUNC: &[u8; 26] = b"CryptMsgDllExportMailList\0"; -pub const CMSG_OID_CAPI1_EXPORT_MAIL_LIST_FUNC: &[u8; 26] = b"CryptMsgDllExportMailList\0"; -pub const CMSG_OID_IMPORT_KEY_TRANS_FUNC: &[u8; 26] = b"CryptMsgDllImportKeyTrans\0"; -pub const CMSG_OID_CAPI1_IMPORT_KEY_TRANS_FUNC: &[u8; 26] = b"CryptMsgDllImportKeyTrans\0"; -pub const CMSG_OID_IMPORT_KEY_AGREE_FUNC: &[u8; 26] = b"CryptMsgDllImportKeyAgree\0"; -pub const CMSG_OID_CAPI1_IMPORT_KEY_AGREE_FUNC: &[u8; 26] = b"CryptMsgDllImportKeyAgree\0"; -pub const CMSG_OID_IMPORT_MAIL_LIST_FUNC: &[u8; 26] = b"CryptMsgDllImportMailList\0"; -pub const CMSG_OID_CAPI1_IMPORT_MAIL_LIST_FUNC: &[u8; 26] = b"CryptMsgDllImportMailList\0"; -pub const CMSG_OID_CNG_IMPORT_KEY_TRANS_FUNC: &[u8; 29] = b"CryptMsgDllCNGImportKeyTrans\0"; -pub const CMSG_OID_CNG_IMPORT_KEY_AGREE_FUNC: &[u8; 29] = b"CryptMsgDllCNGImportKeyAgree\0"; -pub const CMSG_OID_CNG_IMPORT_CONTENT_ENCRYPT_KEY_FUNC: &[u8; 38] = - b"CryptMsgDllCNGImportContentEncryptKey\0"; -pub const CERT_KEY_PROV_HANDLE_PROP_ID: u32 = 1; -pub const CERT_KEY_PROV_INFO_PROP_ID: u32 = 2; -pub const CERT_SHA1_HASH_PROP_ID: u32 = 3; -pub const CERT_MD5_HASH_PROP_ID: u32 = 4; -pub const CERT_HASH_PROP_ID: u32 = 3; -pub const CERT_KEY_CONTEXT_PROP_ID: u32 = 5; -pub const CERT_KEY_SPEC_PROP_ID: u32 = 6; -pub const CERT_IE30_RESERVED_PROP_ID: u32 = 7; -pub const CERT_PUBKEY_HASH_RESERVED_PROP_ID: u32 = 8; -pub const CERT_ENHKEY_USAGE_PROP_ID: u32 = 9; -pub const CERT_CTL_USAGE_PROP_ID: u32 = 9; -pub const CERT_NEXT_UPDATE_LOCATION_PROP_ID: u32 = 10; -pub const CERT_FRIENDLY_NAME_PROP_ID: u32 = 11; -pub const CERT_PVK_FILE_PROP_ID: u32 = 12; -pub const CERT_DESCRIPTION_PROP_ID: u32 = 13; -pub const CERT_ACCESS_STATE_PROP_ID: u32 = 14; -pub const CERT_SIGNATURE_HASH_PROP_ID: u32 = 15; -pub const CERT_SMART_CARD_DATA_PROP_ID: u32 = 16; -pub const CERT_EFS_PROP_ID: u32 = 17; -pub const CERT_FORTEZZA_DATA_PROP_ID: u32 = 18; -pub const CERT_ARCHIVED_PROP_ID: u32 = 19; -pub const CERT_KEY_IDENTIFIER_PROP_ID: u32 = 20; -pub const CERT_AUTO_ENROLL_PROP_ID: u32 = 21; -pub const CERT_PUBKEY_ALG_PARA_PROP_ID: u32 = 22; -pub const CERT_CROSS_CERT_DIST_POINTS_PROP_ID: u32 = 23; -pub const CERT_ISSUER_PUBLIC_KEY_MD5_HASH_PROP_ID: u32 = 24; -pub const CERT_SUBJECT_PUBLIC_KEY_MD5_HASH_PROP_ID: u32 = 25; -pub const CERT_ENROLLMENT_PROP_ID: u32 = 26; -pub const CERT_DATE_STAMP_PROP_ID: u32 = 27; -pub const CERT_ISSUER_SERIAL_NUMBER_MD5_HASH_PROP_ID: u32 = 28; -pub const CERT_SUBJECT_NAME_MD5_HASH_PROP_ID: u32 = 29; -pub const CERT_EXTENDED_ERROR_INFO_PROP_ID: u32 = 30; -pub const CERT_RENEWAL_PROP_ID: u32 = 64; -pub const CERT_ARCHIVED_KEY_HASH_PROP_ID: u32 = 65; -pub const CERT_AUTO_ENROLL_RETRY_PROP_ID: u32 = 66; -pub const CERT_AIA_URL_RETRIEVED_PROP_ID: u32 = 67; -pub const CERT_AUTHORITY_INFO_ACCESS_PROP_ID: u32 = 68; -pub const CERT_BACKED_UP_PROP_ID: u32 = 69; -pub const CERT_OCSP_RESPONSE_PROP_ID: u32 = 70; -pub const CERT_REQUEST_ORIGINATOR_PROP_ID: u32 = 71; -pub const CERT_SOURCE_LOCATION_PROP_ID: u32 = 72; -pub const CERT_SOURCE_URL_PROP_ID: u32 = 73; -pub const CERT_NEW_KEY_PROP_ID: u32 = 74; -pub const CERT_OCSP_CACHE_PREFIX_PROP_ID: u32 = 75; -pub const CERT_SMART_CARD_ROOT_INFO_PROP_ID: u32 = 76; -pub const CERT_NO_AUTO_EXPIRE_CHECK_PROP_ID: u32 = 77; -pub const CERT_NCRYPT_KEY_HANDLE_PROP_ID: u32 = 78; -pub const CERT_HCRYPTPROV_OR_NCRYPT_KEY_HANDLE_PROP_ID: u32 = 79; -pub const CERT_SUBJECT_INFO_ACCESS_PROP_ID: u32 = 80; -pub const CERT_CA_OCSP_AUTHORITY_INFO_ACCESS_PROP_ID: u32 = 81; -pub const CERT_CA_DISABLE_CRL_PROP_ID: u32 = 82; -pub const CERT_ROOT_PROGRAM_CERT_POLICIES_PROP_ID: u32 = 83; -pub const CERT_ROOT_PROGRAM_NAME_CONSTRAINTS_PROP_ID: u32 = 84; -pub const CERT_SUBJECT_OCSP_AUTHORITY_INFO_ACCESS_PROP_ID: u32 = 85; -pub const CERT_SUBJECT_DISABLE_CRL_PROP_ID: u32 = 86; -pub const CERT_CEP_PROP_ID: u32 = 87; -pub const CERT_SIGN_HASH_CNG_ALG_PROP_ID: u32 = 89; -pub const CERT_SCARD_PIN_ID_PROP_ID: u32 = 90; -pub const CERT_SCARD_PIN_INFO_PROP_ID: u32 = 91; -pub const CERT_SUBJECT_PUB_KEY_BIT_LENGTH_PROP_ID: u32 = 92; -pub const CERT_PUB_KEY_CNG_ALG_BIT_LENGTH_PROP_ID: u32 = 93; -pub const CERT_ISSUER_PUB_KEY_BIT_LENGTH_PROP_ID: u32 = 94; -pub const CERT_ISSUER_CHAIN_SIGN_HASH_CNG_ALG_PROP_ID: u32 = 95; -pub const CERT_ISSUER_CHAIN_PUB_KEY_CNG_ALG_BIT_LENGTH_PROP_ID: u32 = 96; -pub const CERT_NO_EXPIRE_NOTIFICATION_PROP_ID: u32 = 97; -pub const CERT_AUTH_ROOT_SHA256_HASH_PROP_ID: u32 = 98; -pub const CERT_NCRYPT_KEY_HANDLE_TRANSFER_PROP_ID: u32 = 99; -pub const CERT_HCRYPTPROV_TRANSFER_PROP_ID: u32 = 100; -pub const CERT_SMART_CARD_READER_PROP_ID: u32 = 101; -pub const CERT_SEND_AS_TRUSTED_ISSUER_PROP_ID: u32 = 102; -pub const CERT_KEY_REPAIR_ATTEMPTED_PROP_ID: u32 = 103; -pub const CERT_DISALLOWED_FILETIME_PROP_ID: u32 = 104; -pub const CERT_ROOT_PROGRAM_CHAIN_POLICIES_PROP_ID: u32 = 105; -pub const CERT_SMART_CARD_READER_NON_REMOVABLE_PROP_ID: u32 = 106; -pub const CERT_SHA256_HASH_PROP_ID: u32 = 107; -pub const CERT_SCEP_SERVER_CERTS_PROP_ID: u32 = 108; -pub const CERT_SCEP_RA_SIGNATURE_CERT_PROP_ID: u32 = 109; -pub const CERT_SCEP_RA_ENCRYPTION_CERT_PROP_ID: u32 = 110; -pub const CERT_SCEP_CA_CERT_PROP_ID: u32 = 111; -pub const CERT_SCEP_SIGNER_CERT_PROP_ID: u32 = 112; -pub const CERT_SCEP_NONCE_PROP_ID: u32 = 113; -pub const CERT_SCEP_ENCRYPT_HASH_CNG_ALG_PROP_ID: u32 = 114; -pub const CERT_SCEP_FLAGS_PROP_ID: u32 = 115; -pub const CERT_SCEP_GUID_PROP_ID: u32 = 116; -pub const CERT_SERIALIZABLE_KEY_CONTEXT_PROP_ID: u32 = 117; -pub const CERT_ISOLATED_KEY_PROP_ID: u32 = 118; -pub const CERT_SERIAL_CHAIN_PROP_ID: u32 = 119; -pub const CERT_KEY_CLASSIFICATION_PROP_ID: u32 = 120; -pub const CERT_OCSP_MUST_STAPLE_PROP_ID: u32 = 121; -pub const CERT_DISALLOWED_ENHKEY_USAGE_PROP_ID: u32 = 122; -pub const CERT_NONCOMPLIANT_ROOT_URL_PROP_ID: u32 = 123; -pub const CERT_PIN_SHA256_HASH_PROP_ID: u32 = 124; -pub const CERT_CLR_DELETE_KEY_PROP_ID: u32 = 125; -pub const CERT_NOT_BEFORE_FILETIME_PROP_ID: u32 = 126; -pub const CERT_NOT_BEFORE_ENHKEY_USAGE_PROP_ID: u32 = 127; -pub const CERT_DISALLOWED_CA_FILETIME_PROP_ID: u32 = 128; -pub const CERT_FIRST_RESERVED_PROP_ID: u32 = 129; -pub const CERT_LAST_RESERVED_PROP_ID: u32 = 32767; -pub const CERT_FIRST_USER_PROP_ID: u32 = 32768; -pub const CERT_LAST_USER_PROP_ID: u32 = 65535; -pub const szOID_CERT_PROP_ID_PREFIX: &[u8; 23] = b"1.3.6.1.4.1.311.10.11.\0"; -pub const szOID_CERT_KEY_IDENTIFIER_PROP_ID: &[u8; 25] = b"1.3.6.1.4.1.311.10.11.20\0"; -pub const szOID_CERT_ISSUER_SERIAL_NUMBER_MD5_HASH_PROP_ID: &[u8; 25] = - b"1.3.6.1.4.1.311.10.11.28\0"; -pub const szOID_CERT_SUBJECT_NAME_MD5_HASH_PROP_ID: &[u8; 25] = b"1.3.6.1.4.1.311.10.11.29\0"; -pub const szOID_CERT_MD5_HASH_PROP_ID: &[u8; 24] = b"1.3.6.1.4.1.311.10.11.4\0"; -pub const szOID_CERT_SIGNATURE_HASH_PROP_ID: &[u8; 25] = b"1.3.6.1.4.1.311.10.11.15\0"; -pub const szOID_DISALLOWED_HASH: &[u8; 25] = b"1.3.6.1.4.1.311.10.11.15\0"; -pub const szOID_CERT_DISALLOWED_FILETIME_PROP_ID: &[u8; 26] = b"1.3.6.1.4.1.311.10.11.104\0"; -pub const szOID_CERT_DISALLOWED_CA_FILETIME_PROP_ID: &[u8; 26] = b"1.3.6.1.4.1.311.10.11.128\0"; -pub const CERT_ACCESS_STATE_WRITE_PERSIST_FLAG: u32 = 1; -pub const CERT_ACCESS_STATE_SYSTEM_STORE_FLAG: u32 = 2; -pub const CERT_ACCESS_STATE_LM_SYSTEM_STORE_FLAG: u32 = 4; -pub const CERT_ACCESS_STATE_GP_SYSTEM_STORE_FLAG: u32 = 8; -pub const CERT_ACCESS_STATE_SHARED_USER_FLAG: u32 = 16; -pub const szOID_ROOT_PROGRAM_AUTO_UPDATE_CA_REVOCATION: &[u8; 23] = b"1.3.6.1.4.1.311.60.3.1\0"; -pub const szOID_ROOT_PROGRAM_AUTO_UPDATE_END_REVOCATION: &[u8; 23] = b"1.3.6.1.4.1.311.60.3.2\0"; -pub const szOID_ROOT_PROGRAM_NO_OCSP_FAILOVER_TO_CRL: &[u8; 23] = b"1.3.6.1.4.1.311.60.3.3\0"; -pub const CERT_SET_KEY_PROV_HANDLE_PROP_ID: u32 = 1; -pub const CERT_SET_KEY_CONTEXT_PROP_ID: u32 = 1; -pub const CERT_NCRYPT_KEY_SPEC: u32 = 4294967295; -pub const sz_CERT_STORE_PROV_MEMORY: &[u8; 7] = b"Memory\0"; -pub const sz_CERT_STORE_PROV_FILENAME_W: &[u8; 5] = b"File\0"; -pub const sz_CERT_STORE_PROV_FILENAME: &[u8; 5] = b"File\0"; -pub const sz_CERT_STORE_PROV_SYSTEM_W: &[u8; 7] = b"System\0"; -pub const sz_CERT_STORE_PROV_SYSTEM: &[u8; 7] = b"System\0"; -pub const sz_CERT_STORE_PROV_PKCS7: &[u8; 6] = b"PKCS7\0"; -pub const sz_CERT_STORE_PROV_PKCS12: &[u8; 7] = b"PKCS12\0"; -pub const sz_CERT_STORE_PROV_SERIALIZED: &[u8; 11] = b"Serialized\0"; -pub const sz_CERT_STORE_PROV_COLLECTION: &[u8; 11] = b"Collection\0"; -pub const sz_CERT_STORE_PROV_SYSTEM_REGISTRY_W: &[u8; 15] = b"SystemRegistry\0"; -pub const sz_CERT_STORE_PROV_SYSTEM_REGISTRY: &[u8; 15] = b"SystemRegistry\0"; -pub const sz_CERT_STORE_PROV_PHYSICAL_W: &[u8; 9] = b"Physical\0"; -pub const sz_CERT_STORE_PROV_PHYSICAL: &[u8; 9] = b"Physical\0"; -pub const sz_CERT_STORE_PROV_SMART_CARD_W: &[u8; 10] = b"SmartCard\0"; -pub const sz_CERT_STORE_PROV_SMART_CARD: &[u8; 10] = b"SmartCard\0"; -pub const sz_CERT_STORE_PROV_LDAP_W: &[u8; 5] = b"Ldap\0"; -pub const sz_CERT_STORE_PROV_LDAP: &[u8; 5] = b"Ldap\0"; -pub const CERT_STORE_SIGNATURE_FLAG: u32 = 1; -pub const CERT_STORE_TIME_VALIDITY_FLAG: u32 = 2; -pub const CERT_STORE_REVOCATION_FLAG: u32 = 4; -pub const CERT_STORE_NO_CRL_FLAG: u32 = 65536; -pub const CERT_STORE_NO_ISSUER_FLAG: u32 = 131072; -pub const CERT_STORE_BASE_CRL_FLAG: u32 = 256; -pub const CERT_STORE_DELTA_CRL_FLAG: u32 = 512; -pub const CERT_STORE_NO_CRYPT_RELEASE_FLAG: u32 = 1; -pub const CERT_STORE_SET_LOCALIZED_NAME_FLAG: u32 = 2; -pub const CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG: u32 = 4; -pub const CERT_STORE_DELETE_FLAG: u32 = 16; -pub const CERT_STORE_UNSAFE_PHYSICAL_FLAG: u32 = 32; -pub const CERT_STORE_SHARE_STORE_FLAG: u32 = 64; -pub const CERT_STORE_SHARE_CONTEXT_FLAG: u32 = 128; -pub const CERT_STORE_MANIFOLD_FLAG: u32 = 256; -pub const CERT_STORE_ENUM_ARCHIVED_FLAG: u32 = 512; -pub const CERT_STORE_UPDATE_KEYID_FLAG: u32 = 1024; -pub const CERT_STORE_BACKUP_RESTORE_FLAG: u32 = 2048; -pub const CERT_STORE_READONLY_FLAG: u32 = 32768; -pub const CERT_STORE_OPEN_EXISTING_FLAG: u32 = 16384; -pub const CERT_STORE_CREATE_NEW_FLAG: u32 = 8192; -pub const CERT_STORE_MAXIMUM_ALLOWED_FLAG: u32 = 4096; -pub const CERT_SYSTEM_STORE_MASK: u32 = 4294901760; -pub const CERT_SYSTEM_STORE_RELOCATE_FLAG: u32 = 2147483648; -pub const CERT_SYSTEM_STORE_UNPROTECTED_FLAG: u32 = 1073741824; -pub const CERT_SYSTEM_STORE_DEFER_READ_FLAG: u32 = 536870912; -pub const CERT_SYSTEM_STORE_LOCATION_MASK: u32 = 16711680; -pub const CERT_SYSTEM_STORE_LOCATION_SHIFT: u32 = 16; -pub const CERT_SYSTEM_STORE_CURRENT_USER_ID: u32 = 1; -pub const CERT_SYSTEM_STORE_LOCAL_MACHINE_ID: u32 = 2; -pub const CERT_SYSTEM_STORE_CURRENT_SERVICE_ID: u32 = 4; -pub const CERT_SYSTEM_STORE_SERVICES_ID: u32 = 5; -pub const CERT_SYSTEM_STORE_USERS_ID: u32 = 6; -pub const CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY_ID: u32 = 7; -pub const CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY_ID: u32 = 8; -pub const CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE_ID: u32 = 9; -pub const CERT_SYSTEM_STORE_LOCAL_MACHINE_WCOS_ID: u32 = 10; -pub const CERT_SYSTEM_STORE_CURRENT_USER: u32 = 65536; -pub const CERT_SYSTEM_STORE_LOCAL_MACHINE: u32 = 131072; -pub const CERT_SYSTEM_STORE_CURRENT_SERVICE: u32 = 262144; -pub const CERT_SYSTEM_STORE_SERVICES: u32 = 327680; -pub const CERT_SYSTEM_STORE_USERS: u32 = 393216; -pub const CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY: u32 = 458752; -pub const CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY: u32 = 524288; -pub const CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE: u32 = 589824; -pub const CERT_SYSTEM_STORE_LOCAL_MACHINE_WCOS: u32 = 655360; -pub const CERT_GROUP_POLICY_SYSTEM_STORE_REGPATH: &[u8; 47] = - b"Software\\Policies\\Microsoft\\SystemCertificates\0"; -pub const CERT_EFSBLOB_REGPATH: &[u8; 51] = - b"Software\\Policies\\Microsoft\\SystemCertificates\\EFS\0"; -pub const CERT_EFSBLOB_VALUE_NAME: &[u8; 8] = b"EFSBlob\0"; -pub const CERT_PROT_ROOT_FLAGS_REGPATH: &[u8; 67] = - b"Software\\Policies\\Microsoft\\SystemCertificates\\Root\\ProtectedRoots\0"; -pub const CERT_PROT_ROOT_FLAGS_VALUE_NAME: &[u8; 6] = b"Flags\0"; -pub const CERT_PROT_ROOT_DISABLE_CURRENT_USER_FLAG: u32 = 1; -pub const CERT_PROT_ROOT_INHIBIT_ADD_AT_INIT_FLAG: u32 = 2; -pub const CERT_PROT_ROOT_INHIBIT_PURGE_LM_FLAG: u32 = 4; -pub const CERT_PROT_ROOT_DISABLE_LM_AUTH_FLAG: u32 = 8; -pub const CERT_PROT_ROOT_ONLY_LM_GPT_FLAG: u32 = 8; -pub const CERT_PROT_ROOT_DISABLE_NT_AUTH_REQUIRED_FLAG: u32 = 16; -pub const CERT_PROT_ROOT_DISABLE_NOT_DEFINED_NAME_CONSTRAINT_FLAG: u32 = 32; -pub const CERT_PROT_ROOT_DISABLE_PEER_TRUST: u32 = 65536; -pub const CERT_PROT_ROOT_PEER_USAGES_VALUE_NAME: &[u8; 11] = b"PeerUsages\0"; -pub const CERT_PROT_ROOT_PEER_USAGES_VALUE_NAME_A: &[u8; 11] = b"PeerUsages\0"; -pub const CERT_PROT_ROOT_PEER_USAGES_DEFAULT_A: &[u8; 60] = - b"1.3.6.1.5.5.7.3.2\x001.3.6.1.5.5.7.3.4\x001.3.6.1.4.1.311.10.3.4\0\0"; -pub const CERT_TRUST_PUB_SAFER_GROUP_POLICY_REGPATH: &[u8; 70] = - b"Software\\Policies\\Microsoft\\SystemCertificates\\TrustedPublisher\\Safer\0"; -pub const CERT_LOCAL_MACHINE_SYSTEM_STORE_REGPATH: &[u8; 38] = - b"Software\\Microsoft\\SystemCertificates\0"; -pub const CERT_TRUST_PUB_SAFER_LOCAL_MACHINE_REGPATH: &[u8; 61] = - b"Software\\Microsoft\\SystemCertificates\\TrustedPublisher\\Safer\0"; -pub const CERT_TRUST_PUB_AUTHENTICODE_FLAGS_VALUE_NAME: &[u8; 18] = b"AuthenticodeFlags\0"; -pub const CERT_TRUST_PUB_ALLOW_TRUST_MASK: u32 = 3; -pub const CERT_TRUST_PUB_ALLOW_END_USER_TRUST: u32 = 0; -pub const CERT_TRUST_PUB_ALLOW_MACHINE_ADMIN_TRUST: u32 = 1; -pub const CERT_TRUST_PUB_ALLOW_ENTERPRISE_ADMIN_TRUST: u32 = 2; -pub const CERT_TRUST_PUB_CHECK_PUBLISHER_REV_FLAG: u32 = 256; -pub const CERT_TRUST_PUB_CHECK_TIMESTAMP_REV_FLAG: u32 = 512; -pub const CERT_OCM_SUBCOMPONENTS_LOCAL_MACHINE_REGPATH: &[u8; 73] = - b"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\OC Manager\\Subcomponents\0"; -pub const CERT_OCM_SUBCOMPONENTS_ROOT_AUTO_UPDATE_VALUE_NAME: &[u8; 15] = b"RootAutoUpdate\0"; -pub const CERT_DISABLE_ROOT_AUTO_UPDATE_REGPATH: &[u8; 56] = - b"Software\\Policies\\Microsoft\\SystemCertificates\\AuthRoot\0"; -pub const CERT_DISABLE_ROOT_AUTO_UPDATE_VALUE_NAME: &[u8; 22] = b"DisableRootAutoUpdate\0"; -pub const CERT_ENABLE_DISALLOWED_CERT_AUTO_UPDATE_VALUE_NAME: &[u8; 31] = - b"EnableDisallowedCertAutoUpdate\0"; -pub const CERT_DISABLE_PIN_RULES_AUTO_UPDATE_VALUE_NAME: &[u8; 26] = b"DisablePinRulesAutoUpdate\0"; -pub const CERT_AUTO_UPDATE_LOCAL_MACHINE_REGPATH: &[u8; 58] = - b"Software\\Microsoft\\SystemCertificates\\AuthRoot\\AutoUpdate\0"; -pub const CERT_AUTO_UPDATE_ROOT_DIR_URL_VALUE_NAME: &[u8; 11] = b"RootDirUrl\0"; -pub const CERT_AUTO_UPDATE_SYNC_FROM_DIR_URL_VALUE_NAME: &[u8; 15] = b"SyncFromDirUrl\0"; -pub const CERT_AUTH_ROOT_AUTO_UPDATE_LOCAL_MACHINE_REGPATH: &[u8; 58] = - b"Software\\Microsoft\\SystemCertificates\\AuthRoot\\AutoUpdate\0"; -pub const CERT_AUTH_ROOT_AUTO_UPDATE_ROOT_DIR_URL_VALUE_NAME: &[u8; 11] = b"RootDirUrl\0"; -pub const CERT_AUTH_ROOT_AUTO_UPDATE_SYNC_DELTA_TIME_VALUE_NAME: &[u8; 14] = b"SyncDeltaTime\0"; -pub const CERT_AUTH_ROOT_AUTO_UPDATE_FLAGS_VALUE_NAME: &[u8; 6] = b"Flags\0"; -pub const CERT_AUTH_ROOT_AUTO_UPDATE_DISABLE_UNTRUSTED_ROOT_LOGGING_FLAG: u32 = 1; -pub const CERT_AUTH_ROOT_AUTO_UPDATE_DISABLE_PARTIAL_CHAIN_LOGGING_FLAG: u32 = 2; -pub const CERT_AUTO_UPDATE_DISABLE_RANDOM_QUERY_STRING_FLAG: u32 = 4; -pub const CERT_AUTH_ROOT_AUTO_UPDATE_LAST_SYNC_TIME_VALUE_NAME: &[u8; 13] = b"LastSyncTime\0"; -pub const CERT_AUTH_ROOT_AUTO_UPDATE_ENCODED_CTL_VALUE_NAME: &[u8; 11] = b"EncodedCtl\0"; -pub const CERT_AUTH_ROOT_CTL_FILENAME: &[u8; 13] = b"authroot.stl\0"; -pub const CERT_AUTH_ROOT_CTL_FILENAME_A: &[u8; 13] = b"authroot.stl\0"; -pub const CERT_AUTH_ROOT_CAB_FILENAME: &[u8; 16] = b"authrootstl.cab\0"; -pub const CERT_AUTH_ROOT_SEQ_FILENAME: &[u8; 16] = b"authrootseq.txt\0"; -pub const CERT_AUTH_ROOT_CERT_EXT: &[u8; 5] = b".crt\0"; -pub const CERT_DISALLOWED_CERT_AUTO_UPDATE_SYNC_DELTA_TIME_VALUE_NAME: &[u8; 28] = - b"DisallowedCertSyncDeltaTime\0"; -pub const CERT_DISALLOWED_CERT_AUTO_UPDATE_LAST_SYNC_TIME_VALUE_NAME: &[u8; 27] = - b"DisallowedCertLastSyncTime\0"; -pub const CERT_DISALLOWED_CERT_AUTO_UPDATE_ENCODED_CTL_VALUE_NAME: &[u8; 25] = - b"DisallowedCertEncodedCtl\0"; -pub const CERT_DISALLOWED_CERT_CTL_FILENAME: &[u8; 19] = b"disallowedcert.stl\0"; -pub const CERT_DISALLOWED_CERT_CTL_FILENAME_A: &[u8; 19] = b"disallowedcert.stl\0"; -pub const CERT_DISALLOWED_CERT_CAB_FILENAME: &[u8; 22] = b"disallowedcertstl.cab\0"; -pub const CERT_DISALLOWED_CERT_AUTO_UPDATE_LIST_IDENTIFIER: &[u8; 28] = - b"DisallowedCert_AutoUpdate_1\0"; -pub const CERT_PIN_RULES_AUTO_UPDATE_SYNC_DELTA_TIME_VALUE_NAME: &[u8; 22] = - b"PinRulesSyncDeltaTime\0"; -pub const CERT_PIN_RULES_AUTO_UPDATE_LAST_SYNC_TIME_VALUE_NAME: &[u8; 21] = - b"PinRulesLastSyncTime\0"; -pub const CERT_PIN_RULES_AUTO_UPDATE_ENCODED_CTL_VALUE_NAME: &[u8; 19] = b"PinRulesEncodedCtl\0"; -pub const CERT_PIN_RULES_CTL_FILENAME: &[u8; 13] = b"pinrules.stl\0"; -pub const CERT_PIN_RULES_CTL_FILENAME_A: &[u8; 13] = b"pinrules.stl\0"; -pub const CERT_PIN_RULES_CAB_FILENAME: &[u8; 16] = b"pinrulesstl.cab\0"; -pub const CERT_PIN_RULES_AUTO_UPDATE_LIST_IDENTIFIER: &[u8; 22] = b"PinRules_AutoUpdate_1\0"; -pub const CERT_REGISTRY_STORE_REMOTE_FLAG: u32 = 65536; -pub const CERT_REGISTRY_STORE_SERIALIZED_FLAG: u32 = 131072; -pub const CERT_REGISTRY_STORE_CLIENT_GPT_FLAG: u32 = 2147483648; -pub const CERT_REGISTRY_STORE_LM_GPT_FLAG: u32 = 16777216; -pub const CERT_REGISTRY_STORE_ROAMING_FLAG: u32 = 262144; -pub const CERT_REGISTRY_STORE_MY_IE_DIRTY_FLAG: u32 = 524288; -pub const CERT_REGISTRY_STORE_EXTERNAL_FLAG: u32 = 1048576; -pub const CERT_IE_DIRTY_FLAGS_REGPATH: &[u8; 45] = - b"Software\\Microsoft\\Cryptography\\IEDirtyFlags\0"; -pub const CERT_FILE_STORE_COMMIT_ENABLE_FLAG: u32 = 65536; -pub const CERT_LDAP_STORE_SIGN_FLAG: u32 = 65536; -pub const CERT_LDAP_STORE_AREC_EXCLUSIVE_FLAG: u32 = 131072; -pub const CERT_LDAP_STORE_OPENED_FLAG: u32 = 262144; -pub const CERT_LDAP_STORE_UNBIND_FLAG: u32 = 524288; -pub const CRYPT_OID_OPEN_STORE_PROV_FUNC: &[u8; 21] = b"CertDllOpenStoreProv\0"; -pub const CERT_STORE_PROV_EXTERNAL_FLAG: u32 = 1; -pub const CERT_STORE_PROV_DELETED_FLAG: u32 = 2; -pub const CERT_STORE_PROV_NO_PERSIST_FLAG: u32 = 4; -pub const CERT_STORE_PROV_SYSTEM_STORE_FLAG: u32 = 8; -pub const CERT_STORE_PROV_LM_SYSTEM_STORE_FLAG: u32 = 16; -pub const CERT_STORE_PROV_GP_SYSTEM_STORE_FLAG: u32 = 32; -pub const CERT_STORE_PROV_SHARED_USER_FLAG: u32 = 64; -pub const CERT_STORE_PROV_CLOSE_FUNC: u32 = 0; -pub const CERT_STORE_PROV_READ_CERT_FUNC: u32 = 1; -pub const CERT_STORE_PROV_WRITE_CERT_FUNC: u32 = 2; -pub const CERT_STORE_PROV_DELETE_CERT_FUNC: u32 = 3; -pub const CERT_STORE_PROV_SET_CERT_PROPERTY_FUNC: u32 = 4; -pub const CERT_STORE_PROV_READ_CRL_FUNC: u32 = 5; -pub const CERT_STORE_PROV_WRITE_CRL_FUNC: u32 = 6; -pub const CERT_STORE_PROV_DELETE_CRL_FUNC: u32 = 7; -pub const CERT_STORE_PROV_SET_CRL_PROPERTY_FUNC: u32 = 8; -pub const CERT_STORE_PROV_READ_CTL_FUNC: u32 = 9; -pub const CERT_STORE_PROV_WRITE_CTL_FUNC: u32 = 10; -pub const CERT_STORE_PROV_DELETE_CTL_FUNC: u32 = 11; -pub const CERT_STORE_PROV_SET_CTL_PROPERTY_FUNC: u32 = 12; -pub const CERT_STORE_PROV_CONTROL_FUNC: u32 = 13; -pub const CERT_STORE_PROV_FIND_CERT_FUNC: u32 = 14; -pub const CERT_STORE_PROV_FREE_FIND_CERT_FUNC: u32 = 15; -pub const CERT_STORE_PROV_GET_CERT_PROPERTY_FUNC: u32 = 16; -pub const CERT_STORE_PROV_FIND_CRL_FUNC: u32 = 17; -pub const CERT_STORE_PROV_FREE_FIND_CRL_FUNC: u32 = 18; -pub const CERT_STORE_PROV_GET_CRL_PROPERTY_FUNC: u32 = 19; -pub const CERT_STORE_PROV_FIND_CTL_FUNC: u32 = 20; -pub const CERT_STORE_PROV_FREE_FIND_CTL_FUNC: u32 = 21; -pub const CERT_STORE_PROV_GET_CTL_PROPERTY_FUNC: u32 = 22; -pub const CERT_STORE_PROV_WRITE_ADD_FLAG: u32 = 1; -pub const CERT_STORE_SAVE_AS_STORE: u32 = 1; -pub const CERT_STORE_SAVE_AS_PKCS7: u32 = 2; -pub const CERT_STORE_SAVE_AS_PKCS12: u32 = 3; -pub const CERT_STORE_SAVE_TO_FILE: u32 = 1; -pub const CERT_STORE_SAVE_TO_MEMORY: u32 = 2; -pub const CERT_STORE_SAVE_TO_FILENAME_A: u32 = 3; -pub const CERT_STORE_SAVE_TO_FILENAME_W: u32 = 4; -pub const CERT_STORE_SAVE_TO_FILENAME: u32 = 4; -pub const CERT_CLOSE_STORE_FORCE_FLAG: u32 = 1; -pub const CERT_CLOSE_STORE_CHECK_FLAG: u32 = 2; -pub const CERT_COMPARE_MASK: u32 = 65535; -pub const CERT_COMPARE_SHIFT: u32 = 16; -pub const CERT_COMPARE_ANY: u32 = 0; -pub const CERT_COMPARE_SHA1_HASH: u32 = 1; -pub const CERT_COMPARE_NAME: u32 = 2; -pub const CERT_COMPARE_ATTR: u32 = 3; -pub const CERT_COMPARE_MD5_HASH: u32 = 4; -pub const CERT_COMPARE_PROPERTY: u32 = 5; -pub const CERT_COMPARE_PUBLIC_KEY: u32 = 6; -pub const CERT_COMPARE_HASH: u32 = 1; -pub const CERT_COMPARE_NAME_STR_A: u32 = 7; -pub const CERT_COMPARE_NAME_STR_W: u32 = 8; -pub const CERT_COMPARE_KEY_SPEC: u32 = 9; -pub const CERT_COMPARE_ENHKEY_USAGE: u32 = 10; -pub const CERT_COMPARE_CTL_USAGE: u32 = 10; -pub const CERT_COMPARE_SUBJECT_CERT: u32 = 11; -pub const CERT_COMPARE_ISSUER_OF: u32 = 12; -pub const CERT_COMPARE_EXISTING: u32 = 13; -pub const CERT_COMPARE_SIGNATURE_HASH: u32 = 14; -pub const CERT_COMPARE_KEY_IDENTIFIER: u32 = 15; -pub const CERT_COMPARE_CERT_ID: u32 = 16; -pub const CERT_COMPARE_CROSS_CERT_DIST_POINTS: u32 = 17; -pub const CERT_COMPARE_PUBKEY_MD5_HASH: u32 = 18; -pub const CERT_COMPARE_SUBJECT_INFO_ACCESS: u32 = 19; -pub const CERT_COMPARE_HASH_STR: u32 = 20; -pub const CERT_COMPARE_HAS_PRIVATE_KEY: u32 = 21; -pub const CERT_FIND_ANY: u32 = 0; -pub const CERT_FIND_SHA1_HASH: u32 = 65536; -pub const CERT_FIND_MD5_HASH: u32 = 262144; -pub const CERT_FIND_SIGNATURE_HASH: u32 = 917504; -pub const CERT_FIND_KEY_IDENTIFIER: u32 = 983040; -pub const CERT_FIND_HASH: u32 = 65536; -pub const CERT_FIND_PROPERTY: u32 = 327680; -pub const CERT_FIND_PUBLIC_KEY: u32 = 393216; -pub const CERT_FIND_SUBJECT_NAME: u32 = 131079; -pub const CERT_FIND_SUBJECT_ATTR: u32 = 196615; -pub const CERT_FIND_ISSUER_NAME: u32 = 131076; -pub const CERT_FIND_ISSUER_ATTR: u32 = 196612; -pub const CERT_FIND_SUBJECT_STR_A: u32 = 458759; -pub const CERT_FIND_SUBJECT_STR_W: u32 = 524295; -pub const CERT_FIND_SUBJECT_STR: u32 = 524295; -pub const CERT_FIND_ISSUER_STR_A: u32 = 458756; -pub const CERT_FIND_ISSUER_STR_W: u32 = 524292; -pub const CERT_FIND_ISSUER_STR: u32 = 524292; -pub const CERT_FIND_KEY_SPEC: u32 = 589824; -pub const CERT_FIND_ENHKEY_USAGE: u32 = 655360; -pub const CERT_FIND_CTL_USAGE: u32 = 655360; -pub const CERT_FIND_SUBJECT_CERT: u32 = 720896; -pub const CERT_FIND_ISSUER_OF: u32 = 786432; -pub const CERT_FIND_EXISTING: u32 = 851968; -pub const CERT_FIND_CERT_ID: u32 = 1048576; -pub const CERT_FIND_CROSS_CERT_DIST_POINTS: u32 = 1114112; -pub const CERT_FIND_PUBKEY_MD5_HASH: u32 = 1179648; -pub const CERT_FIND_SUBJECT_INFO_ACCESS: u32 = 1245184; -pub const CERT_FIND_HASH_STR: u32 = 1310720; -pub const CERT_FIND_HAS_PRIVATE_KEY: u32 = 1376256; -pub const CERT_FIND_OPTIONAL_ENHKEY_USAGE_FLAG: u32 = 1; -pub const CERT_FIND_EXT_ONLY_ENHKEY_USAGE_FLAG: u32 = 2; -pub const CERT_FIND_PROP_ONLY_ENHKEY_USAGE_FLAG: u32 = 4; -pub const CERT_FIND_NO_ENHKEY_USAGE_FLAG: u32 = 8; -pub const CERT_FIND_OR_ENHKEY_USAGE_FLAG: u32 = 16; -pub const CERT_FIND_VALID_ENHKEY_USAGE_FLAG: u32 = 32; -pub const CERT_FIND_OPTIONAL_CTL_USAGE_FLAG: u32 = 1; -pub const CERT_FIND_EXT_ONLY_CTL_USAGE_FLAG: u32 = 2; -pub const CERT_FIND_PROP_ONLY_CTL_USAGE_FLAG: u32 = 4; -pub const CERT_FIND_NO_CTL_USAGE_FLAG: u32 = 8; -pub const CERT_FIND_OR_CTL_USAGE_FLAG: u32 = 16; -pub const CERT_FIND_VALID_CTL_USAGE_FLAG: u32 = 32; -pub const CERT_SET_PROPERTY_IGNORE_PERSIST_ERROR_FLAG: u32 = 2147483648; -pub const CERT_SET_PROPERTY_INHIBIT_PERSIST_FLAG: u32 = 1073741824; -pub const CTL_ENTRY_FROM_PROP_CHAIN_FLAG: u32 = 1; -pub const CRL_FIND_ANY: u32 = 0; -pub const CRL_FIND_ISSUED_BY: u32 = 1; -pub const CRL_FIND_EXISTING: u32 = 2; -pub const CRL_FIND_ISSUED_FOR: u32 = 3; -pub const CRL_FIND_ISSUED_BY_AKI_FLAG: u32 = 1; -pub const CRL_FIND_ISSUED_BY_SIGNATURE_FLAG: u32 = 2; -pub const CRL_FIND_ISSUED_BY_DELTA_FLAG: u32 = 4; -pub const CRL_FIND_ISSUED_BY_BASE_FLAG: u32 = 8; -pub const CRL_FIND_ISSUED_FOR_SET_STRONG_PROPERTIES_FLAG: u32 = 16; -pub const CERT_STORE_ADD_NEW: u32 = 1; -pub const CERT_STORE_ADD_USE_EXISTING: u32 = 2; -pub const CERT_STORE_ADD_REPLACE_EXISTING: u32 = 3; -pub const CERT_STORE_ADD_ALWAYS: u32 = 4; -pub const CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES: u32 = 5; -pub const CERT_STORE_ADD_NEWER: u32 = 6; -pub const CERT_STORE_ADD_NEWER_INHERIT_PROPERTIES: u32 = 7; -pub const CERT_STORE_CERTIFICATE_CONTEXT: u32 = 1; -pub const CERT_STORE_CRL_CONTEXT: u32 = 2; -pub const CERT_STORE_CTL_CONTEXT: u32 = 3; -pub const CERT_STORE_ALL_CONTEXT_FLAG: i32 = -1; -pub const CERT_STORE_CERTIFICATE_CONTEXT_FLAG: u32 = 2; -pub const CERT_STORE_CRL_CONTEXT_FLAG: u32 = 4; -pub const CERT_STORE_CTL_CONTEXT_FLAG: u32 = 8; -pub const CTL_ANY_SUBJECT_TYPE: u32 = 1; -pub const CTL_CERT_SUBJECT_TYPE: u32 = 2; -pub const CTL_FIND_ANY: u32 = 0; -pub const CTL_FIND_SHA1_HASH: u32 = 1; -pub const CTL_FIND_MD5_HASH: u32 = 2; -pub const CTL_FIND_USAGE: u32 = 3; -pub const CTL_FIND_SUBJECT: u32 = 4; -pub const CTL_FIND_EXISTING: u32 = 5; -pub const CTL_FIND_NO_LIST_ID_CBDATA: u32 = 4294967295; -pub const CTL_FIND_SAME_USAGE_FLAG: u32 = 1; -pub const CERT_STORE_CTRL_RESYNC: u32 = 1; -pub const CERT_STORE_CTRL_NOTIFY_CHANGE: u32 = 2; -pub const CERT_STORE_CTRL_COMMIT: u32 = 3; -pub const CERT_STORE_CTRL_AUTO_RESYNC: u32 = 4; -pub const CERT_STORE_CTRL_CANCEL_NOTIFY: u32 = 5; -pub const CERT_STORE_CTRL_INHIBIT_DUPLICATE_HANDLE_FLAG: u32 = 1; -pub const CERT_STORE_CTRL_COMMIT_FORCE_FLAG: u32 = 1; -pub const CERT_STORE_CTRL_COMMIT_CLEAR_FLAG: u32 = 2; -pub const CERT_STORE_LOCALIZED_NAME_PROP_ID: u32 = 4096; -pub const CERT_CREATE_CONTEXT_NOCOPY_FLAG: u32 = 1; -pub const CERT_CREATE_CONTEXT_SORTED_FLAG: u32 = 2; -pub const CERT_CREATE_CONTEXT_NO_HCRYPTMSG_FLAG: u32 = 4; -pub const CERT_CREATE_CONTEXT_NO_ENTRY_FLAG: u32 = 8; -pub const CERT_PHYSICAL_STORE_ADD_ENABLE_FLAG: u32 = 1; -pub const CERT_PHYSICAL_STORE_OPEN_DISABLE_FLAG: u32 = 2; -pub const CERT_PHYSICAL_STORE_REMOTE_OPEN_DISABLE_FLAG: u32 = 4; -pub const CERT_PHYSICAL_STORE_INSERT_COMPUTER_NAME_ENABLE_FLAG: u32 = 8; -pub const CERT_PHYSICAL_STORE_PREDEFINED_ENUM_FLAG: u32 = 1; -pub const CERT_PHYSICAL_STORE_DEFAULT_NAME: &[u8; 9] = b".Default\0"; -pub const CERT_PHYSICAL_STORE_GROUP_POLICY_NAME: &[u8; 13] = b".GroupPolicy\0"; -pub const CERT_PHYSICAL_STORE_LOCAL_MACHINE_NAME: &[u8; 14] = b".LocalMachine\0"; -pub const CERT_PHYSICAL_STORE_DS_USER_CERTIFICATE_NAME: &[u8; 17] = b".UserCertificate\0"; -pub const CERT_PHYSICAL_STORE_LOCAL_MACHINE_GROUP_POLICY_NAME: &[u8; 25] = - b".LocalMachineGroupPolicy\0"; -pub const CERT_PHYSICAL_STORE_ENTERPRISE_NAME: &[u8; 12] = b".Enterprise\0"; -pub const CERT_PHYSICAL_STORE_AUTH_ROOT_NAME: &[u8; 10] = b".AuthRoot\0"; -pub const CERT_PHYSICAL_STORE_SMART_CARD_NAME: &[u8; 11] = b".SmartCard\0"; -pub const CRYPT_OID_OPEN_SYSTEM_STORE_PROV_FUNC: &[u8; 27] = b"CertDllOpenSystemStoreProv\0"; -pub const CRYPT_OID_REGISTER_SYSTEM_STORE_FUNC: &[u8; 27] = b"CertDllRegisterSystemStore\0"; -pub const CRYPT_OID_UNREGISTER_SYSTEM_STORE_FUNC: &[u8; 29] = b"CertDllUnregisterSystemStore\0"; -pub const CRYPT_OID_ENUM_SYSTEM_STORE_FUNC: &[u8; 23] = b"CertDllEnumSystemStore\0"; -pub const CRYPT_OID_REGISTER_PHYSICAL_STORE_FUNC: &[u8; 29] = b"CertDllRegisterPhysicalStore\0"; -pub const CRYPT_OID_UNREGISTER_PHYSICAL_STORE_FUNC: &[u8; 31] = b"CertDllUnregisterPhysicalStore\0"; -pub const CRYPT_OID_ENUM_PHYSICAL_STORE_FUNC: &[u8; 25] = b"CertDllEnumPhysicalStore\0"; -pub const CRYPT_OID_SYSTEM_STORE_LOCATION_VALUE_NAME: &[u8; 20] = b"SystemStoreLocation\0"; -pub const CMSG_TRUSTED_SIGNER_FLAG: u32 = 1; -pub const CMSG_SIGNER_ONLY_FLAG: u32 = 2; -pub const CMSG_USE_SIGNER_INDEX_FLAG: u32 = 4; -pub const CMSG_CMS_ENCAPSULATED_CTL_FLAG: u32 = 32768; -pub const CMSG_ENCODE_SORTED_CTL_FLAG: u32 = 1; -pub const CMSG_ENCODE_HASHED_SUBJECT_IDENTIFIER_FLAG: u32 = 2; -pub const CERT_VERIFY_INHIBIT_CTL_UPDATE_FLAG: u32 = 1; -pub const CERT_VERIFY_TRUSTED_SIGNERS_FLAG: u32 = 2; -pub const CERT_VERIFY_NO_TIME_CHECK_FLAG: u32 = 4; -pub const CERT_VERIFY_ALLOW_MORE_USAGE_FLAG: u32 = 8; -pub const CERT_VERIFY_UPDATED_CTL_FLAG: u32 = 1; -pub const CERT_CONTEXT_REVOCATION_TYPE: u32 = 1; -pub const CERT_VERIFY_REV_CHAIN_FLAG: u32 = 1; -pub const CERT_VERIFY_CACHE_ONLY_BASED_REVOCATION: u32 = 2; -pub const CERT_VERIFY_REV_ACCUMULATIVE_TIMEOUT_FLAG: u32 = 4; -pub const CERT_VERIFY_REV_SERVER_OCSP_FLAG: u32 = 8; -pub const CERT_VERIFY_REV_NO_OCSP_FAILOVER_TO_CRL_FLAG: u32 = 16; -pub const CERT_VERIFY_REV_SERVER_OCSP_WIRE_ONLY_FLAG: u32 = 32; -pub const CERT_UNICODE_IS_RDN_ATTRS_FLAG: u32 = 1; -pub const CERT_CASE_INSENSITIVE_IS_RDN_ATTRS_FLAG: u32 = 2; -pub const CRYPT_VERIFY_CERT_SIGN_SUBJECT_BLOB: u32 = 1; -pub const CRYPT_VERIFY_CERT_SIGN_SUBJECT_CERT: u32 = 2; -pub const CRYPT_VERIFY_CERT_SIGN_SUBJECT_CRL: u32 = 3; -pub const CRYPT_VERIFY_CERT_SIGN_SUBJECT_OCSP_BASIC_SIGNED_RESPONSE: u32 = 4; -pub const CRYPT_VERIFY_CERT_SIGN_ISSUER_PUBKEY: u32 = 1; -pub const CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT: u32 = 2; -pub const CRYPT_VERIFY_CERT_SIGN_ISSUER_CHAIN: u32 = 3; -pub const CRYPT_VERIFY_CERT_SIGN_ISSUER_NULL: u32 = 4; -pub const CRYPT_VERIFY_CERT_SIGN_DISABLE_MD2_MD4_FLAG: u32 = 1; -pub const CRYPT_VERIFY_CERT_SIGN_SET_STRONG_PROPERTIES_FLAG: u32 = 2; -pub const CRYPT_VERIFY_CERT_SIGN_RETURN_STRONG_PROPERTIES_FLAG: u32 = 4; -pub const CRYPT_VERIFY_CERT_SIGN_CHECK_WEAK_HASH_FLAG: u32 = 8; -pub const CRYPT_OID_EXTRACT_ENCODED_SIGNATURE_PARAMETERS_FUNC: &[u8; 42] = - b"CryptDllExtractEncodedSignatureParameters\0"; -pub const CRYPT_OID_SIGN_AND_ENCODE_HASH_FUNC: &[u8; 26] = b"CryptDllSignAndEncodeHash\0"; -pub const CRYPT_OID_VERIFY_ENCODED_SIGNATURE_FUNC: &[u8; 31] = b"CryptDllVerifyEncodedSignature\0"; -pub const CRYPT_DEFAULT_CONTEXT_AUTO_RELEASE_FLAG: u32 = 1; -pub const CRYPT_DEFAULT_CONTEXT_PROCESS_FLAG: u32 = 2; -pub const CRYPT_DEFAULT_CONTEXT_CERT_SIGN_OID: u32 = 1; -pub const CRYPT_DEFAULT_CONTEXT_MULTI_CERT_SIGN_OID: u32 = 2; -pub const CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_FUNC: &[u8; 30] = b"CryptDllExportPublicKeyInfoEx\0"; -pub const CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_EX2_FUNC: &[u8; 31] = - b"CryptDllExportPublicKeyInfoEx2\0"; -pub const CRYPT_OID_EXPORT_PUBLIC_KEY_INFO_FROM_BCRYPT_HANDLE_FUNC: &[u8; 47] = - b"CryptDllExportPublicKeyInfoFromBCryptKeyHandle\0"; -pub const CRYPT_OID_IMPORT_PUBLIC_KEY_INFO_FUNC: &[u8; 30] = b"CryptDllImportPublicKeyInfoEx\0"; -pub const CRYPT_OID_IMPORT_PUBLIC_KEY_INFO_EX2_FUNC: &[u8; 31] = - b"CryptDllImportPublicKeyInfoEx2\0"; -pub const CRYPT_ACQUIRE_CACHE_FLAG: u32 = 1; -pub const CRYPT_ACQUIRE_USE_PROV_INFO_FLAG: u32 = 2; -pub const CRYPT_ACQUIRE_COMPARE_KEY_FLAG: u32 = 4; -pub const CRYPT_ACQUIRE_NO_HEALING: u32 = 8; -pub const CRYPT_ACQUIRE_SILENT_FLAG: u32 = 64; -pub const CRYPT_ACQUIRE_WINDOW_HANDLE_FLAG: u32 = 128; -pub const CRYPT_ACQUIRE_NCRYPT_KEY_FLAGS_MASK: u32 = 458752; -pub const CRYPT_ACQUIRE_ALLOW_NCRYPT_KEY_FLAG: u32 = 65536; -pub const CRYPT_ACQUIRE_PREFER_NCRYPT_KEY_FLAG: u32 = 131072; -pub const CRYPT_ACQUIRE_ONLY_NCRYPT_KEY_FLAG: u32 = 262144; -pub const CRYPT_FIND_USER_KEYSET_FLAG: u32 = 1; -pub const CRYPT_FIND_MACHINE_KEYSET_FLAG: u32 = 2; -pub const CRYPT_FIND_SILENT_KEYSET_FLAG: u32 = 64; -pub const CRYPT_OID_IMPORT_PRIVATE_KEY_INFO_FUNC: &[u8; 31] = b"CryptDllImportPrivateKeyInfoEx\0"; -pub const CRYPT_OID_EXPORT_PRIVATE_KEY_INFO_FUNC: &[u8; 31] = b"CryptDllExportPrivateKeyInfoEx\0"; -pub const CRYPT_DELETE_KEYSET: u32 = 16; -pub const CERT_SIMPLE_NAME_STR: u32 = 1; -pub const CERT_OID_NAME_STR: u32 = 2; -pub const CERT_X500_NAME_STR: u32 = 3; -pub const CERT_XML_NAME_STR: u32 = 4; -pub const CERT_NAME_STR_SEMICOLON_FLAG: u32 = 1073741824; -pub const CERT_NAME_STR_NO_PLUS_FLAG: u32 = 536870912; -pub const CERT_NAME_STR_NO_QUOTING_FLAG: u32 = 268435456; -pub const CERT_NAME_STR_CRLF_FLAG: u32 = 134217728; -pub const CERT_NAME_STR_COMMA_FLAG: u32 = 67108864; -pub const CERT_NAME_STR_REVERSE_FLAG: u32 = 33554432; -pub const CERT_NAME_STR_FORWARD_FLAG: u32 = 16777216; -pub const CERT_NAME_STR_DISABLE_IE4_UTF8_FLAG: u32 = 65536; -pub const CERT_NAME_STR_ENABLE_T61_UNICODE_FLAG: u32 = 131072; -pub const CERT_NAME_STR_ENABLE_UTF8_UNICODE_FLAG: u32 = 262144; -pub const CERT_NAME_STR_FORCE_UTF8_DIR_STR_FLAG: u32 = 524288; -pub const CERT_NAME_STR_DISABLE_UTF8_DIR_STR_FLAG: u32 = 1048576; -pub const CERT_NAME_STR_ENABLE_PUNYCODE_FLAG: u32 = 2097152; -pub const CERT_NAME_EMAIL_TYPE: u32 = 1; -pub const CERT_NAME_RDN_TYPE: u32 = 2; -pub const CERT_NAME_ATTR_TYPE: u32 = 3; -pub const CERT_NAME_SIMPLE_DISPLAY_TYPE: u32 = 4; -pub const CERT_NAME_FRIENDLY_DISPLAY_TYPE: u32 = 5; -pub const CERT_NAME_DNS_TYPE: u32 = 6; -pub const CERT_NAME_URL_TYPE: u32 = 7; -pub const CERT_NAME_UPN_TYPE: u32 = 8; -pub const CERT_NAME_ISSUER_FLAG: u32 = 1; -pub const CERT_NAME_DISABLE_IE4_UTF8_FLAG: u32 = 65536; -pub const CERT_NAME_SEARCH_ALL_NAMES_FLAG: u32 = 2; -pub const CRYPT_MESSAGE_BARE_CONTENT_OUT_FLAG: u32 = 1; -pub const CRYPT_MESSAGE_ENCAPSULATED_CONTENT_OUT_FLAG: u32 = 2; -pub const CRYPT_MESSAGE_KEYID_SIGNER_FLAG: u32 = 4; -pub const CRYPT_MESSAGE_SILENT_KEYSET_FLAG: u32 = 64; -pub const CRYPT_MESSAGE_KEYID_RECIPIENT_FLAG: u32 = 4; -pub const CERT_QUERY_OBJECT_FILE: u32 = 1; -pub const CERT_QUERY_OBJECT_BLOB: u32 = 2; -pub const CERT_QUERY_CONTENT_CERT: u32 = 1; -pub const CERT_QUERY_CONTENT_CTL: u32 = 2; -pub const CERT_QUERY_CONTENT_CRL: u32 = 3; -pub const CERT_QUERY_CONTENT_SERIALIZED_STORE: u32 = 4; -pub const CERT_QUERY_CONTENT_SERIALIZED_CERT: u32 = 5; -pub const CERT_QUERY_CONTENT_SERIALIZED_CTL: u32 = 6; -pub const CERT_QUERY_CONTENT_SERIALIZED_CRL: u32 = 7; -pub const CERT_QUERY_CONTENT_PKCS7_SIGNED: u32 = 8; -pub const CERT_QUERY_CONTENT_PKCS7_UNSIGNED: u32 = 9; -pub const CERT_QUERY_CONTENT_PKCS7_SIGNED_EMBED: u32 = 10; -pub const CERT_QUERY_CONTENT_PKCS10: u32 = 11; -pub const CERT_QUERY_CONTENT_PFX: u32 = 12; -pub const CERT_QUERY_CONTENT_CERT_PAIR: u32 = 13; -pub const CERT_QUERY_CONTENT_PFX_AND_LOAD: u32 = 14; -pub const CERT_QUERY_CONTENT_FLAG_CERT: u32 = 2; -pub const CERT_QUERY_CONTENT_FLAG_CTL: u32 = 4; -pub const CERT_QUERY_CONTENT_FLAG_CRL: u32 = 8; -pub const CERT_QUERY_CONTENT_FLAG_SERIALIZED_STORE: u32 = 16; -pub const CERT_QUERY_CONTENT_FLAG_SERIALIZED_CERT: u32 = 32; -pub const CERT_QUERY_CONTENT_FLAG_SERIALIZED_CTL: u32 = 64; -pub const CERT_QUERY_CONTENT_FLAG_SERIALIZED_CRL: u32 = 128; -pub const CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED: u32 = 256; -pub const CERT_QUERY_CONTENT_FLAG_PKCS7_UNSIGNED: u32 = 512; -pub const CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED_EMBED: u32 = 1024; -pub const CERT_QUERY_CONTENT_FLAG_PKCS10: u32 = 2048; -pub const CERT_QUERY_CONTENT_FLAG_PFX: u32 = 4096; -pub const CERT_QUERY_CONTENT_FLAG_CERT_PAIR: u32 = 8192; -pub const CERT_QUERY_CONTENT_FLAG_PFX_AND_LOAD: u32 = 16384; -pub const CERT_QUERY_CONTENT_FLAG_ALL: u32 = 16382; -pub const CERT_QUERY_CONTENT_FLAG_ALL_ISSUER_CERT: u32 = 818; -pub const CERT_QUERY_FORMAT_BINARY: u32 = 1; -pub const CERT_QUERY_FORMAT_BASE64_ENCODED: u32 = 2; -pub const CERT_QUERY_FORMAT_ASN_ASCII_HEX_ENCODED: u32 = 3; -pub const CERT_QUERY_FORMAT_FLAG_BINARY: u32 = 2; -pub const CERT_QUERY_FORMAT_FLAG_BASE64_ENCODED: u32 = 4; -pub const CERT_QUERY_FORMAT_FLAG_ASN_ASCII_HEX_ENCODED: u32 = 8; -pub const CERT_QUERY_FORMAT_FLAG_ALL: u32 = 14; -pub const SCHEME_OID_RETRIEVE_ENCODED_OBJECT_FUNC: &[u8; 31] = b"SchemeDllRetrieveEncodedObject\0"; -pub const SCHEME_OID_RETRIEVE_ENCODED_OBJECTW_FUNC: &[u8; 32] = - b"SchemeDllRetrieveEncodedObjectW\0"; -pub const CONTEXT_OID_CREATE_OBJECT_CONTEXT_FUNC: &[u8; 30] = b"ContextDllCreateObjectContext\0"; -pub const CRYPT_RETRIEVE_MULTIPLE_OBJECTS: u32 = 1; -pub const CRYPT_CACHE_ONLY_RETRIEVAL: u32 = 2; -pub const CRYPT_WIRE_ONLY_RETRIEVAL: u32 = 4; -pub const CRYPT_DONT_CACHE_RESULT: u32 = 8; -pub const CRYPT_ASYNC_RETRIEVAL: u32 = 16; -pub const CRYPT_STICKY_CACHE_RETRIEVAL: u32 = 4096; -pub const CRYPT_LDAP_SCOPE_BASE_ONLY_RETRIEVAL: u32 = 8192; -pub const CRYPT_OFFLINE_CHECK_RETRIEVAL: u32 = 16384; -pub const CRYPT_LDAP_INSERT_ENTRY_ATTRIBUTE: u32 = 32768; -pub const CRYPT_LDAP_SIGN_RETRIEVAL: u32 = 65536; -pub const CRYPT_NO_AUTH_RETRIEVAL: u32 = 131072; -pub const CRYPT_LDAP_AREC_EXCLUSIVE_RETRIEVAL: u32 = 262144; -pub const CRYPT_AIA_RETRIEVAL: u32 = 524288; -pub const CRYPT_HTTP_POST_RETRIEVAL: u32 = 1048576; -pub const CRYPT_PROXY_CACHE_RETRIEVAL: u32 = 2097152; -pub const CRYPT_NOT_MODIFIED_RETRIEVAL: u32 = 4194304; -pub const CRYPT_ENABLE_SSL_REVOCATION_RETRIEVAL: u32 = 8388608; -pub const CRYPT_RANDOM_QUERY_STRING_RETRIEVAL: u32 = 67108864; -pub const CRYPT_ENABLE_FILE_RETRIEVAL: u32 = 134217728; -pub const CRYPT_CREATE_NEW_FLUSH_ENTRY: u32 = 268435456; -pub const CRYPT_VERIFY_CONTEXT_SIGNATURE: u32 = 32; -pub const CRYPT_VERIFY_DATA_HASH: u32 = 64; -pub const CRYPT_KEEP_TIME_VALID: u32 = 128; -pub const CRYPT_DONT_VERIFY_SIGNATURE: u32 = 256; -pub const CRYPT_DONT_CHECK_TIME_VALIDITY: u32 = 512; -pub const CRYPT_CHECK_FRESHNESS_TIME_VALIDITY: u32 = 1024; -pub const CRYPT_ACCUMULATIVE_TIMEOUT: u32 = 2048; -pub const CRYPT_OCSP_ONLY_RETRIEVAL: u32 = 16777216; -pub const CRYPT_NO_OCSP_FAILOVER_TO_CRL_RETRIEVAL: u32 = 33554432; -pub const CRYPTNET_URL_CACHE_PRE_FETCH_NONE: u32 = 0; -pub const CRYPTNET_URL_CACHE_PRE_FETCH_BLOB: u32 = 1; -pub const CRYPTNET_URL_CACHE_PRE_FETCH_CRL: u32 = 2; -pub const CRYPTNET_URL_CACHE_PRE_FETCH_OCSP: u32 = 3; -pub const CRYPTNET_URL_CACHE_PRE_FETCH_AUTOROOT_CAB: u32 = 5; -pub const CRYPTNET_URL_CACHE_PRE_FETCH_DISALLOWED_CERT_CAB: u32 = 6; -pub const CRYPTNET_URL_CACHE_PRE_FETCH_PIN_RULES_CAB: u32 = 7; -pub const CRYPTNET_URL_CACHE_DEFAULT_FLUSH: u32 = 0; -pub const CRYPTNET_URL_CACHE_DISABLE_FLUSH: u32 = 4294967295; -pub const CRYPTNET_URL_CACHE_RESPONSE_NONE: u32 = 0; -pub const CRYPTNET_URL_CACHE_RESPONSE_HTTP: u32 = 1; -pub const CRYPTNET_URL_CACHE_RESPONSE_VALIDATED: u32 = 32768; -pub const CRYPT_RETRIEVE_MAX_ERROR_CONTENT_LENGTH: u32 = 4096; -pub const CRYPT_GET_URL_FROM_PROPERTY: u32 = 1; -pub const CRYPT_GET_URL_FROM_EXTENSION: u32 = 2; -pub const CRYPT_GET_URL_FROM_UNAUTH_ATTRIBUTE: u32 = 4; -pub const CRYPT_GET_URL_FROM_AUTH_ATTRIBUTE: u32 = 8; -pub const URL_OID_GET_OBJECT_URL_FUNC: &[u8; 19] = b"UrlDllGetObjectUrl\0"; -pub const TIME_VALID_OID_GET_OBJECT_FUNC: &[u8; 22] = b"TimeValidDllGetObject\0"; -pub const TIME_VALID_OID_FLUSH_OBJECT_FUNC: &[u8; 24] = b"TimeValidDllFlushObject\0"; -pub const CERT_CREATE_SELFSIGN_NO_SIGN: u32 = 1; -pub const CERT_CREATE_SELFSIGN_NO_KEY_INFO: u32 = 2; -pub const CRYPT_KEYID_MACHINE_FLAG: u32 = 32; -pub const CRYPT_KEYID_ALLOC_FLAG: u32 = 32768; -pub const CRYPT_KEYID_DELETE_FLAG: u32 = 16; -pub const CRYPT_KEYID_SET_NEW_FLAG: u32 = 8192; -pub const CERT_CHAIN_CONFIG_REGPATH : & [u8 ; 94] = b"Software\\Microsoft\\Cryptography\\OID\\EncodingType 0\\CertDllCreateCertificateChainEngine\\Config\0" ; -pub const CERT_CHAIN_MAX_URL_RETRIEVAL_BYTE_COUNT_VALUE_NAME: &[u8; 25] = - b"MaxUrlRetrievalByteCount\0"; -pub const CERT_CHAIN_MAX_URL_RETRIEVAL_BYTE_COUNT_DEFAULT: u32 = 104857600; -pub const CERT_CHAIN_CACHE_RESYNC_FILETIME_VALUE_NAME: &[u8; 25] = b"ChainCacheResyncFiletime\0"; -pub const CERT_CHAIN_DISABLE_MANDATORY_BASIC_CONSTRAINTS_VALUE_NAME: &[u8; 33] = - b"DisableMandatoryBasicConstraints\0"; -pub const CERT_CHAIN_DISABLE_CA_NAME_CONSTRAINTS_VALUE_NAME: &[u8; 25] = - b"DisableCANameConstraints\0"; -pub const CERT_CHAIN_DISABLE_UNSUPPORTED_CRITICAL_EXTENSIONS_VALUE_NAME: &[u8; 37] = - b"DisableUnsupportedCriticalExtensions\0"; -pub const CERT_CHAIN_MAX_AIA_URL_COUNT_IN_CERT_VALUE_NAME: &[u8; 21] = b"MaxAIAUrlCountInCert\0"; -pub const CERT_CHAIN_MAX_AIA_URL_COUNT_IN_CERT_DEFAULT: u32 = 5; -pub const CERT_CHAIN_MAX_AIA_URL_RETRIEVAL_COUNT_PER_CHAIN_VALUE_NAME: &[u8; 32] = - b"MaxAIAUrlRetrievalCountPerChain\0"; -pub const CERT_CHAIN_MAX_AIA_URL_RETRIEVAL_COUNT_PER_CHAIN_DEFAULT: u32 = 3; -pub const CERT_CHAIN_MAX_AIA_URL_RETRIEVAL_BYTE_COUNT_VALUE_NAME: &[u8; 28] = - b"MaxAIAUrlRetrievalByteCount\0"; -pub const CERT_CHAIN_MAX_AIA_URL_RETRIEVAL_BYTE_COUNT_DEFAULT: u32 = 100000; -pub const CERT_CHAIN_MAX_AIA_URL_RETRIEVAL_CERT_COUNT_VALUE_NAME: &[u8; 28] = - b"MaxAIAUrlRetrievalCertCount\0"; -pub const CERT_CHAIN_MAX_AIA_URL_RETRIEVAL_CERT_COUNT_DEFAULT: u32 = 10; -pub const CERT_CHAIN_OCSP_VALIDITY_SECONDS_VALUE_NAME: &[u8; 20] = b"OcspValiditySeconds\0"; -pub const CERT_CHAIN_OCSP_VALIDITY_SECONDS_DEFAULT: u32 = 43200; -pub const CERT_CHAIN_DISABLE_SERIAL_CHAIN_VALUE_NAME: &[u8; 19] = b"DisableSerialChain\0"; -pub const CERT_CHAIN_SERIAL_CHAIN_LOG_FILE_NAME_VALUE_NAME: &[u8; 23] = b"SerialChainLogFileName\0"; -pub const CERT_CHAIN_DISABLE_SYNC_WITH_SSL_TIME_VALUE_NAME: &[u8; 23] = b"DisableSyncWithSslTime\0"; -pub const CERT_CHAIN_MAX_SSL_TIME_UPDATED_EVENT_COUNT_VALUE_NAME: &[u8; 28] = - b"MaxSslTimeUpdatedEventCount\0"; -pub const CERT_CHAIN_MAX_SSL_TIME_UPDATED_EVENT_COUNT_DEFAULT: u32 = 5; -pub const CERT_CHAIN_MAX_SSL_TIME_UPDATED_EVENT_COUNT_DISABLE: u32 = 4294967295; -pub const CERT_CHAIN_SSL_HANDSHAKE_LOG_FILE_NAME_VALUE_NAME: &[u8; 24] = - b"SslHandshakeLogFileName\0"; -pub const CERT_CHAIN_ENABLE_WEAK_SIGNATURE_FLAGS_VALUE_NAME: &[u8; 25] = - b"EnableWeakSignatureFlags\0"; -pub const CERT_CHAIN_ENABLE_MD2_MD4_FLAG: u32 = 1; -pub const CERT_CHAIN_ENABLE_WEAK_RSA_ROOT_FLAG: u32 = 2; -pub const CERT_CHAIN_ENABLE_WEAK_LOGGING_FLAG: u32 = 4; -pub const CERT_CHAIN_ENABLE_ONLY_WEAK_LOGGING_FLAG: u32 = 8; -pub const CERT_CHAIN_MIN_RSA_PUB_KEY_BIT_LENGTH_VALUE_NAME: &[u8; 22] = b"MinRsaPubKeyBitLength\0"; -pub const CERT_CHAIN_MIN_RSA_PUB_KEY_BIT_LENGTH_DEFAULT: u32 = 1023; -pub const CERT_CHAIN_MIN_RSA_PUB_KEY_BIT_LENGTH_DISABLE: u32 = 4294967295; -pub const CERT_CHAIN_WEAK_RSA_PUB_KEY_TIME_VALUE_NAME: &[u8; 18] = b"WeakRsaPubKeyTime\0"; -pub const CERT_CHAIN_WEAK_SIGNATURE_LOG_DIR_VALUE_NAME: &[u8; 20] = b"WeakSignatureLogDir\0"; -pub const CERT_CHAIN_DEFAULT_CONFIG_SUBDIR: &[u8; 8] = b"Default\0"; -pub const CERT_CHAIN_WEAK_PREFIX_NAME: &[u8; 5] = b"Weak\0"; -pub const CERT_CHAIN_WEAK_THIRD_PARTY_CONFIG_NAME: &[u8; 11] = b"ThirdParty\0"; -pub const CERT_CHAIN_WEAK_ALL_CONFIG_NAME: &[u8; 4] = b"All\0"; -pub const CERT_CHAIN_WEAK_FLAGS_NAME: &[u8; 6] = b"Flags\0"; -pub const CERT_CHAIN_WEAK_HYGIENE_NAME: &[u8; 8] = b"Hygiene\0"; -pub const CERT_CHAIN_WEAK_AFTER_TIME_NAME: &[u8; 10] = b"AfterTime\0"; -pub const CERT_CHAIN_WEAK_FILE_HASH_AFTER_TIME_NAME: &[u8; 18] = b"FileHashAfterTime\0"; -pub const CERT_CHAIN_WEAK_TIMESTAMP_HASH_AFTER_TIME_NAME: &[u8; 23] = b"TimestampHashAfterTime\0"; -pub const CERT_CHAIN_WEAK_MIN_BIT_LENGTH_NAME: &[u8; 13] = b"MinBitLength\0"; -pub const CERT_CHAIN_WEAK_SHA256_ALLOW_NAME: &[u8; 12] = b"Sha256Allow\0"; -pub const CERT_CHAIN_MIN_PUB_KEY_BIT_LENGTH_DISABLE: u32 = 4294967295; -pub const CERT_CHAIN_ENABLE_WEAK_SETTINGS_FLAG: u32 = 2147483648; -pub const CERT_CHAIN_DISABLE_ECC_PARA_FLAG: u32 = 16; -pub const CERT_CHAIN_DISABLE_ALL_EKU_WEAK_FLAG: u32 = 65536; -pub const CERT_CHAIN_ENABLE_ALL_EKU_HYGIENE_FLAG: u32 = 131072; -pub const CERT_CHAIN_DISABLE_OPT_IN_SERVER_AUTH_WEAK_FLAG: u32 = 262144; -pub const CERT_CHAIN_DISABLE_SERVER_AUTH_WEAK_FLAG: u32 = 1048576; -pub const CERT_CHAIN_ENABLE_SERVER_AUTH_HYGIENE_FLAG: u32 = 2097152; -pub const CERT_CHAIN_DISABLE_CODE_SIGNING_WEAK_FLAG: u32 = 4194304; -pub const CERT_CHAIN_DISABLE_MOTW_CODE_SIGNING_WEAK_FLAG: u32 = 8388608; -pub const CERT_CHAIN_ENABLE_CODE_SIGNING_HYGIENE_FLAG: u32 = 16777216; -pub const CERT_CHAIN_ENABLE_MOTW_CODE_SIGNING_HYGIENE_FLAG: u32 = 33554432; -pub const CERT_CHAIN_DISABLE_TIMESTAMP_WEAK_FLAG: u32 = 67108864; -pub const CERT_CHAIN_DISABLE_MOTW_TIMESTAMP_WEAK_FLAG: u32 = 134217728; -pub const CERT_CHAIN_ENABLE_TIMESTAMP_HYGIENE_FLAG: u32 = 268435456; -pub const CERT_CHAIN_ENABLE_MOTW_TIMESTAMP_HYGIENE_FLAG: u32 = 536870912; -pub const CERT_CHAIN_MOTW_IGNORE_AFTER_TIME_WEAK_FLAG: u32 = 1073741824; -pub const CERT_CHAIN_DISABLE_FILE_HASH_WEAK_FLAG: u32 = 4096; -pub const CERT_CHAIN_DISABLE_MOTW_FILE_HASH_WEAK_FLAG: u32 = 8192; -pub const CERT_CHAIN_DISABLE_TIMESTAMP_HASH_WEAK_FLAG: u32 = 16384; -pub const CERT_CHAIN_DISABLE_MOTW_TIMESTAMP_HASH_WEAK_FLAG: u32 = 32768; -pub const CERT_CHAIN_DISABLE_WEAK_FLAGS: u32 = 215285776; -pub const CERT_CHAIN_DISABLE_FILE_HASH_WEAK_FLAGS: u32 = 12288; -pub const CERT_CHAIN_DISABLE_TIMESTAMP_HASH_WEAK_FLAGS: u32 = 49152; -pub const CERT_CHAIN_ENABLE_HYGIENE_FLAGS: u32 = 857866240; -pub const CERT_CHAIN_MOTW_WEAK_FLAGS: u32 = 1786773504; -pub const CERT_CHAIN_OPT_IN_WEAK_FLAGS: u32 = 262144; -pub const CERT_CHAIN_AUTO_CURRENT_USER: u32 = 1; -pub const CERT_CHAIN_AUTO_LOCAL_MACHINE: u32 = 2; -pub const CERT_CHAIN_AUTO_IMPERSONATED: u32 = 3; -pub const CERT_CHAIN_AUTO_PROCESS_INFO: u32 = 4; -pub const CERT_CHAIN_AUTO_PINRULE_INFO: u32 = 5; -pub const CERT_CHAIN_AUTO_NETWORK_INFO: u32 = 6; -pub const CERT_CHAIN_AUTO_SERIAL_LOCAL_MACHINE: u32 = 7; -pub const CERT_CHAIN_AUTO_HPKP_RULE_INFO: u32 = 8; -pub const CERT_CHAIN_AUTO_FLAGS_VALUE_NAME: &[u8; 10] = b"AutoFlags\0"; -pub const CERT_CHAIN_AUTO_FLUSH_DISABLE_FLAG: u32 = 1; -pub const CERT_CHAIN_AUTO_LOG_CREATE_FLAG: u32 = 2; -pub const CERT_CHAIN_AUTO_LOG_FREE_FLAG: u32 = 4; -pub const CERT_CHAIN_AUTO_LOG_FLUSH_FLAG: u32 = 8; -pub const CERT_CHAIN_AUTO_LOG_FLAGS: u32 = 14; -pub const CERT_CHAIN_AUTO_FLUSH_FIRST_DELTA_SECONDS_VALUE_NAME: &[u8; 27] = - b"AutoFlushFirstDeltaSeconds\0"; -pub const CERT_CHAIN_AUTO_FLUSH_FIRST_DELTA_SECONDS_DEFAULT: u32 = 300; -pub const CERT_CHAIN_AUTO_FLUSH_NEXT_DELTA_SECONDS_VALUE_NAME: &[u8; 26] = - b"AutoFlushNextDeltaSeconds\0"; -pub const CERT_CHAIN_AUTO_FLUSH_NEXT_DELTA_SECONDS_DEFAULT: u32 = 1800; -pub const CERT_CHAIN_AUTO_LOG_FILE_NAME_VALUE_NAME: &[u8; 16] = b"AutoLogFileName\0"; -pub const CERT_CHAIN_DISABLE_AUTO_FLUSH_PROCESS_NAME_LIST_VALUE_NAME: &[u8; 32] = - b"DisableAutoFlushProcessNameList\0"; -pub const CERT_SRV_OCSP_RESP_MIN_VALIDITY_SECONDS_VALUE_NAME: &[u8; 30] = - b"SrvOcspRespMinValiditySeconds\0"; -pub const CERT_SRV_OCSP_RESP_MIN_VALIDITY_SECONDS_DEFAULT: u32 = 600; -pub const CERT_SRV_OCSP_RESP_URL_RETRIEVAL_TIMEOUT_MILLISECONDS_VALUE_NAME: &[u8; 43] = - b"SrvOcspRespUrlRetrievalTimeoutMilliseconds\0"; -pub const CERT_SRV_OCSP_RESP_URL_RETRIEVAL_TIMEOUT_MILLISECONDS_DEFAULT: u32 = 15000; -pub const CERT_SRV_OCSP_RESP_MAX_BEFORE_NEXT_UPDATE_SECONDS_VALUE_NAME: &[u8; 38] = - b"SrvOcspRespMaxBeforeNextUpdateSeconds\0"; -pub const CERT_SRV_OCSP_RESP_MAX_BEFORE_NEXT_UPDATE_SECONDS_DEFAULT: u32 = 14400; -pub const CERT_SRV_OCSP_RESP_MIN_BEFORE_NEXT_UPDATE_SECONDS_VALUE_NAME: &[u8; 38] = - b"SrvOcspRespMinBeforeNextUpdateSeconds\0"; -pub const CERT_SRV_OCSP_RESP_MIN_BEFORE_NEXT_UPDATE_SECONDS_DEFAULT: u32 = 120; -pub const CERT_SRV_OCSP_RESP_MIN_AFTER_NEXT_UPDATE_SECONDS_VALUE_NAME: &[u8; 37] = - b"SrvOcspRespMinAfterNextUpdateSeconds\0"; -pub const CERT_SRV_OCSP_RESP_MIN_AFTER_NEXT_UPDATE_SECONDS_DEFAULT: u32 = 60; -pub const CERT_SRV_OCSP_RESP_MIN_SYNC_CERT_FILE_SECONDS_VALUE_NAME: &[u8; 34] = - b"SrvOcspRespMinSyncCertFileSeconds\0"; -pub const CERT_SRV_OCSP_RESP_MIN_SYNC_CERT_FILE_SECONDS_DEFAULT: u32 = 5; -pub const CERT_SRV_OCSP_RESP_MAX_SYNC_CERT_FILE_SECONDS_VALUE_NAME: &[u8; 34] = - b"SrvOcspRespMaxSyncCertFileSeconds\0"; -pub const CERT_SRV_OCSP_RESP_MAX_SYNC_CERT_FILE_SECONDS_DEFAULT: u32 = 3600; -pub const CRYPTNET_MAX_CACHED_OCSP_PER_CRL_COUNT_VALUE_NAME: &[u8; 33] = - b"CryptnetMaxCachedOcspPerCrlCount\0"; -pub const CRYPTNET_MAX_CACHED_OCSP_PER_CRL_COUNT_DEFAULT: u32 = 500; -pub const CRYPTNET_OCSP_AFTER_CRL_DISABLE: u32 = 4294967295; -pub const CRYPTNET_URL_CACHE_DEFAULT_FLUSH_EXEMPT_SECONDS_VALUE_NAME: &[u8; 34] = - b"CryptnetDefaultFlushExemptSeconds\0"; -pub const CRYPTNET_URL_CACHE_DEFAULT_FLUSH_EXEMPT_SECONDS_DEFAULT: u32 = 2419200; -pub const CRYPTNET_PRE_FETCH_MIN_MAX_AGE_SECONDS_VALUE_NAME: &[u8; 33] = - b"CryptnetPreFetchMinMaxAgeSeconds\0"; -pub const CRYPTNET_PRE_FETCH_MIN_MAX_AGE_SECONDS_DEFAULT: u32 = 3600; -pub const CRYPTNET_PRE_FETCH_MAX_MAX_AGE_SECONDS_VALUE_NAME: &[u8; 33] = - b"CryptnetPreFetchMaxMaxAgeSeconds\0"; -pub const CRYPTNET_PRE_FETCH_MAX_MAX_AGE_SECONDS_DEFAULT: u32 = 1209600; -pub const CRYPTNET_PRE_FETCH_MIN_OCSP_VALIDITY_PERIOD_SECONDS_VALUE_NAME: &[u8; 45] = - b"CryptnetPreFetchMinOcspValidityPeriodSeconds\0"; -pub const CRYPTNET_PRE_FETCH_MIN_OCSP_VALIDITY_PERIOD_SECONDS_DEFAULT: u32 = 1209600; -pub const CRYPTNET_PRE_FETCH_AFTER_PUBLISH_PRE_FETCH_DIVISOR_VALUE_NAME: &[u8; 44] = - b"CryptnetPreFetchAfterPublishPreFetchDivisor\0"; -pub const CRYPTNET_PRE_FETCH_AFTER_PUBLISH_PRE_FETCH_DIVISOR_DEFAULT: u32 = 10; -pub const CRYPTNET_PRE_FETCH_BEFORE_NEXT_UPDATE_PRE_FETCH_DIVISOR_VALUE_NAME: &[u8; 48] = - b"CryptnetPreFetchBeforeNextUpdatePreFetchDivisor\0"; -pub const CRYPTNET_PRE_FETCH_BEFORE_NEXT_UPDATE_PRE_FETCH_DIVISOR_DEFAULT: u32 = 20; -pub const CRYPTNET_PRE_FETCH_MIN_BEFORE_NEXT_UPDATE_PRE_FETCH_PERIOD_SECONDS_VALUE_NAME: &[u8; 51] = - b"CryptnetPreFetchMinBeforeNextUpdatePreFetchSeconds\0"; -pub const CRYPTNET_PRE_FETCH_MIN_BEFORE_NEXT_UPDATE_PRE_FETCH_PERIOD_SECONDS_DEFAULT: u32 = 3600; -pub const CRYPTNET_PRE_FETCH_VALIDITY_PERIOD_AFTER_NEXT_UPDATE_PRE_FETCH_DIVISOR_VALUE_NAME: - &[u8; 61] = b"CryptnetPreFetchValidityPeriodAfterNextUpdatePreFetchDivisor\0"; -pub const CRYPTNET_PRE_FETCH_VALIDITY_PERIOD_AFTER_NEXT_UPDATE_PRE_FETCH_DIVISOR_DEFAULT: u32 = 10; -pub const CRYPTNET_PRE_FETCH_MAX_AFTER_NEXT_UPDATE_PRE_FETCH_PERIOD_SECONDS_VALUE_NAME: &[u8; 56] = - b"CryptnetPreFetchMaxAfterNextUpdatePreFetchPeriodSeconds\0"; -pub const CRYPTNET_PRE_FETCH_MAX_AFTER_NEXT_UPDATE_PRE_FETCH_PERIOD_SECONDS_DEFAULT: u32 = 14400; -pub const CRYPTNET_PRE_FETCH_MIN_AFTER_NEXT_UPDATE_PRE_FETCH_PERIOD_SECONDS_VALUE_NAME: &[u8; 56] = - b"CryptnetPreFetchMinAfterNextUpdatePreFetchPeriodSeconds\0"; -pub const CRYPTNET_PRE_FETCH_MIN_AFTER_NEXT_UPDATE_PRE_FETCH_PERIOD_SECONDS_DEFAULT: u32 = 1800; -pub const CRYPTNET_PRE_FETCH_AFTER_CURRENT_TIME_PRE_FETCH_PERIOD_SECONDS_VALUE_NAME: &[u8; 54] = - b"CryptnetPreFetchAfterCurrentTimePreFetchPeriodSeconds\0"; -pub const CRYPTNET_PRE_FETCH_AFTER_CURRENT_TIME_PRE_FETCH_PERIOD_SECONDS_DEFAULT: u32 = 1800; -pub const CRYPTNET_PRE_FETCH_TRIGGER_PERIOD_SECONDS_VALUE_NAME: &[u8; 37] = - b"CryptnetPreFetchTriggerPeriodSeconds\0"; -pub const CRYPTNET_PRE_FETCH_TRIGGER_PERIOD_SECONDS_DEFAULT: u32 = 600; -pub const CRYPTNET_PRE_FETCH_TRIGGER_DISABLE: u32 = 4294967295; -pub const CRYPTNET_PRE_FETCH_SCAN_AFTER_TRIGGER_DELAY_SECONDS_VALUE_NAME: &[u8; 45] = - b"CryptnetPreFetchScanAfterTriggerDelaySeconds\0"; -pub const CRYPTNET_PRE_FETCH_SCAN_AFTER_TRIGGER_DELAY_SECONDS_DEFAULT: u32 = 60; -pub const CRYPTNET_PRE_FETCH_RETRIEVAL_TIMEOUT_SECONDS_VALUE_NAME: &[u8; 40] = - b"CryptnetPreFetchRetrievalTimeoutSeconds\0"; -pub const CRYPTNET_PRE_FETCH_RETRIEVAL_TIMEOUT_SECONDS_DEFAULT: u32 = 300; -pub const CRYPTNET_CRL_PRE_FETCH_CONFIG_REGPATH : & [u8 ; 106] = b"Software\\Microsoft\\Cryptography\\OID\\EncodingType 0\\CertDllCreateCertificateChainEngine\\Config\\CrlPreFetch\0" ; -pub const CRYPTNET_CRL_PRE_FETCH_PROCESS_NAME_LIST_VALUE_NAME: &[u8; 16] = b"ProcessNameList\0"; -pub const CRYPTNET_CRL_PRE_FETCH_URL_LIST_VALUE_NAME: &[u8; 16] = b"PreFetchUrlList\0"; -pub const CRYPTNET_CRL_PRE_FETCH_DISABLE_INFORMATION_EVENTS_VALUE_NAME: &[u8; 25] = - b"DisableInformationEvents\0"; -pub const CRYPTNET_CRL_PRE_FETCH_LOG_FILE_NAME_VALUE_NAME: &[u8; 12] = b"LogFileName\0"; -pub const CRYPTNET_CRL_PRE_FETCH_TIMEOUT_SECONDS_VALUE_NAME: &[u8; 15] = b"TimeoutSeconds\0"; -pub const CRYPTNET_CRL_PRE_FETCH_TIMEOUT_SECONDS_DEFAULT: u32 = 300; -pub const CRYPTNET_CRL_PRE_FETCH_MAX_AGE_SECONDS_VALUE_NAME: &[u8; 14] = b"MaxAgeSeconds\0"; -pub const CRYPTNET_CRL_PRE_FETCH_MAX_AGE_SECONDS_DEFAULT: u32 = 7200; -pub const CRYPTNET_CRL_PRE_FETCH_MAX_AGE_SECONDS_MIN: u32 = 300; -pub const CRYPTNET_CRL_PRE_FETCH_PUBLISH_BEFORE_NEXT_UPDATE_SECONDS_VALUE_NAME: &[u8; 31] = - b"PublishBeforeNextUpdateSeconds\0"; -pub const CRYPTNET_CRL_PRE_FETCH_PUBLISH_BEFORE_NEXT_UPDATE_SECONDS_DEFAULT: u32 = 3600; -pub const CRYPTNET_CRL_PRE_FETCH_PUBLISH_RANDOM_INTERVAL_SECONDS_VALUE_NAME: &[u8; 29] = - b"PublishRandomIntervalSeconds\0"; -pub const CRYPTNET_CRL_PRE_FETCH_PUBLISH_RANDOM_INTERVAL_SECONDS_DEFAULT: u32 = 300; -pub const CRYPTNET_CRL_PRE_FETCH_MIN_BEFORE_NEXT_UPDATE_SECONDS_VALUE_NAME: &[u8; 27] = - b"MinBeforeNextUpdateSeconds\0"; -pub const CRYPTNET_CRL_PRE_FETCH_MIN_BEFORE_NEXT_UPDATE_SECONDS_DEFAULT: u32 = 300; -pub const CRYPTNET_CRL_PRE_FETCH_MIN_AFTER_NEXT_UPDATE_SECONDS_VALUE_NAME: &[u8; 26] = - b"MinAfterNextUpdateSeconds\0"; -pub const CRYPTNET_CRL_PRE_FETCH_MIN_AFTER_NEXT_UPDATE_SECONDS_DEFAULT: u32 = 300; -pub const CERT_GROUP_POLICY_CHAIN_CONFIG_REGPATH: &[u8; 66] = - b"Software\\Policies\\Microsoft\\SystemCertificates\\ChainEngine\\Config\0"; -pub const CERT_CHAIN_URL_RETRIEVAL_TIMEOUT_MILLISECONDS_VALUE_NAME: &[u8; 37] = - b"ChainUrlRetrievalTimeoutMilliseconds\0"; -pub const CERT_CHAIN_URL_RETRIEVAL_TIMEOUT_MILLISECONDS_DEFAULT: u32 = 15000; -pub const CERT_CHAIN_REV_ACCUMULATIVE_URL_RETRIEVAL_TIMEOUT_MILLISECONDS_VALUE_NAME: &[u8; 52] = - b"ChainRevAccumulativeUrlRetrievalTimeoutMilliseconds\0"; -pub const CERT_CHAIN_REV_ACCUMULATIVE_URL_RETRIEVAL_TIMEOUT_MILLISECONDS_DEFAULT: u32 = 20000; -pub const CERT_RETR_BEHAVIOR_INET_AUTH_VALUE_NAME: &[u8; 22] = b"EnableInetUnknownAuth\0"; -pub const CERT_RETR_BEHAVIOR_INET_STATUS_VALUE_NAME: &[u8; 16] = b"EnableInetLocal\0"; -pub const CERT_RETR_BEHAVIOR_FILE_VALUE_NAME: &[u8; 19] = b"AllowFileUrlScheme\0"; -pub const CERT_RETR_BEHAVIOR_LDAP_VALUE_NAME: &[u8; 26] = b"DisableLDAPSignAndEncrypt\0"; -pub const CRYPTNET_CACHED_OCSP_SWITCH_TO_CRL_COUNT_VALUE_NAME: &[u8; 35] = - b"CryptnetCachedOcspSwitchToCrlCount\0"; -pub const CRYPTNET_CACHED_OCSP_SWITCH_TO_CRL_COUNT_DEFAULT: u32 = 50; -pub const CRYPTNET_CRL_BEFORE_OCSP_ENABLE: u32 = 4294967295; -pub const CERT_CHAIN_DISABLE_AIA_URL_RETRIEVAL_VALUE_NAME: &[u8; 23] = b"DisableAIAUrlRetrieval\0"; -pub const CERT_CHAIN_OPTIONS_VALUE_NAME: &[u8; 8] = b"Options\0"; -pub const CERT_CHAIN_OPTION_DISABLE_AIA_URL_RETRIEVAL: u32 = 2; -pub const CERT_CHAIN_OPTION_ENABLE_SIA_URL_RETRIEVAL: u32 = 4; -pub const CERT_CHAIN_CROSS_CERT_DOWNLOAD_INTERVAL_HOURS_VALUE_NAME: &[u8; 31] = - b"CrossCertDownloadIntervalHours\0"; -pub const CERT_CHAIN_CROSS_CERT_DOWNLOAD_INTERVAL_HOURS_DEFAULT: u32 = 168; -pub const CERT_CHAIN_CRL_VALIDITY_EXT_PERIOD_HOURS_VALUE_NAME: &[u8; 27] = - b"CRLValidityExtensionPeriod\0"; -pub const CERT_CHAIN_CRL_VALIDITY_EXT_PERIOD_HOURS_DEFAULT: u32 = 12; -pub const CERT_CHAIN_CACHE_END_CERT: u32 = 1; -pub const CERT_CHAIN_THREAD_STORE_SYNC: u32 = 2; -pub const CERT_CHAIN_CACHE_ONLY_URL_RETRIEVAL: u32 = 4; -pub const CERT_CHAIN_USE_LOCAL_MACHINE_STORE: u32 = 8; -pub const CERT_CHAIN_ENABLE_CACHE_AUTO_UPDATE: u32 = 16; -pub const CERT_CHAIN_ENABLE_SHARE_STORE: u32 = 32; -pub const CERT_CHAIN_EXCLUSIVE_ENABLE_CA_FLAG: u32 = 1; -pub const CERT_TRUST_NO_ERROR: u32 = 0; -pub const CERT_TRUST_IS_NOT_TIME_VALID: u32 = 1; -pub const CERT_TRUST_IS_NOT_TIME_NESTED: u32 = 2; -pub const CERT_TRUST_IS_REVOKED: u32 = 4; -pub const CERT_TRUST_IS_NOT_SIGNATURE_VALID: u32 = 8; -pub const CERT_TRUST_IS_NOT_VALID_FOR_USAGE: u32 = 16; -pub const CERT_TRUST_IS_UNTRUSTED_ROOT: u32 = 32; -pub const CERT_TRUST_REVOCATION_STATUS_UNKNOWN: u32 = 64; -pub const CERT_TRUST_IS_CYCLIC: u32 = 128; -pub const CERT_TRUST_INVALID_EXTENSION: u32 = 256; -pub const CERT_TRUST_INVALID_POLICY_CONSTRAINTS: u32 = 512; -pub const CERT_TRUST_INVALID_BASIC_CONSTRAINTS: u32 = 1024; -pub const CERT_TRUST_INVALID_NAME_CONSTRAINTS: u32 = 2048; -pub const CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT: u32 = 4096; -pub const CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT: u32 = 8192; -pub const CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT: u32 = 16384; -pub const CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT: u32 = 32768; -pub const CERT_TRUST_IS_OFFLINE_REVOCATION: u32 = 16777216; -pub const CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY: u32 = 33554432; -pub const CERT_TRUST_IS_EXPLICIT_DISTRUST: u32 = 67108864; -pub const CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT: u32 = 134217728; -pub const CERT_TRUST_HAS_WEAK_SIGNATURE: u32 = 1048576; -pub const CERT_TRUST_HAS_WEAK_HYGIENE: u32 = 2097152; -pub const CERT_TRUST_IS_PARTIAL_CHAIN: u32 = 65536; -pub const CERT_TRUST_CTL_IS_NOT_TIME_VALID: u32 = 131072; -pub const CERT_TRUST_CTL_IS_NOT_SIGNATURE_VALID: u32 = 262144; -pub const CERT_TRUST_CTL_IS_NOT_VALID_FOR_USAGE: u32 = 524288; -pub const CERT_TRUST_HAS_EXACT_MATCH_ISSUER: u32 = 1; -pub const CERT_TRUST_HAS_KEY_MATCH_ISSUER: u32 = 2; -pub const CERT_TRUST_HAS_NAME_MATCH_ISSUER: u32 = 4; -pub const CERT_TRUST_IS_SELF_SIGNED: u32 = 8; -pub const CERT_TRUST_AUTO_UPDATE_CA_REVOCATION: u32 = 16; -pub const CERT_TRUST_AUTO_UPDATE_END_REVOCATION: u32 = 32; -pub const CERT_TRUST_NO_OCSP_FAILOVER_TO_CRL: u32 = 64; -pub const CERT_TRUST_IS_KEY_ROLLOVER: u32 = 128; -pub const CERT_TRUST_SSL_HANDSHAKE_OCSP: u32 = 262144; -pub const CERT_TRUST_SSL_TIME_VALID_OCSP: u32 = 524288; -pub const CERT_TRUST_SSL_RECONNECT_OCSP: u32 = 1048576; -pub const CERT_TRUST_HAS_PREFERRED_ISSUER: u32 = 256; -pub const CERT_TRUST_HAS_ISSUANCE_CHAIN_POLICY: u32 = 512; -pub const CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS: u32 = 1024; -pub const CERT_TRUST_IS_PEER_TRUSTED: u32 = 2048; -pub const CERT_TRUST_HAS_CRL_VALIDITY_EXTENDED: u32 = 4096; -pub const CERT_TRUST_IS_FROM_EXCLUSIVE_TRUST_STORE: u32 = 8192; -pub const CERT_TRUST_IS_CA_TRUSTED: u32 = 16384; -pub const CERT_TRUST_HAS_AUTO_UPDATE_WEAK_SIGNATURE: u32 = 32768; -pub const CERT_TRUST_HAS_ALLOW_WEAK_SIGNATURE: u32 = 131072; -pub const CERT_TRUST_BEFORE_DISALLOWED_CA_FILETIME: u32 = 2097152; -pub const CERT_TRUST_IS_COMPLEX_CHAIN: u32 = 65536; -pub const CERT_TRUST_SSL_TIME_VALID: u32 = 16777216; -pub const CERT_TRUST_NO_TIME_CHECK: u32 = 33554432; -pub const USAGE_MATCH_TYPE_AND: u32 = 0; -pub const USAGE_MATCH_TYPE_OR: u32 = 1; -pub const CERT_CHAIN_STRONG_SIGN_DISABLE_END_CHECK_FLAG: u32 = 1; -pub const CERT_CHAIN_REVOCATION_CHECK_END_CERT: u32 = 268435456; -pub const CERT_CHAIN_REVOCATION_CHECK_CHAIN: u32 = 536870912; -pub const CERT_CHAIN_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT: u32 = 1073741824; -pub const CERT_CHAIN_REVOCATION_CHECK_CACHE_ONLY: u32 = 2147483648; -pub const CERT_CHAIN_REVOCATION_ACCUMULATIVE_TIMEOUT: u32 = 134217728; -pub const CERT_CHAIN_REVOCATION_CHECK_OCSP_CERT: u32 = 67108864; -pub const CERT_CHAIN_DISABLE_PASS1_QUALITY_FILTERING: u32 = 64; -pub const CERT_CHAIN_RETURN_LOWER_QUALITY_CONTEXTS: u32 = 128; -pub const CERT_CHAIN_DISABLE_AUTH_ROOT_AUTO_UPDATE: u32 = 256; -pub const CERT_CHAIN_TIMESTAMP_TIME: u32 = 512; -pub const CERT_CHAIN_ENABLE_PEER_TRUST: u32 = 1024; -pub const CERT_CHAIN_DISABLE_MY_PEER_TRUST: u32 = 2048; -pub const CERT_CHAIN_DISABLE_MD2_MD4: u32 = 4096; -pub const CERT_CHAIN_DISABLE_AIA: u32 = 8192; -pub const CERT_CHAIN_HAS_MOTW: u32 = 16384; -pub const CERT_CHAIN_ONLY_ADDITIONAL_AND_AUTH_ROOT: u32 = 32768; -pub const CERT_CHAIN_OPT_IN_WEAK_SIGNATURE: u32 = 65536; -pub const CERT_CHAIN_ENABLE_DISALLOWED_CA: u32 = 131072; -pub const CERT_CHAIN_FIND_BY_ISSUER: u32 = 1; -pub const CERT_CHAIN_FIND_BY_ISSUER_COMPARE_KEY_FLAG: u32 = 1; -pub const CERT_CHAIN_FIND_BY_ISSUER_COMPLEX_CHAIN_FLAG: u32 = 2; -pub const CERT_CHAIN_FIND_BY_ISSUER_CACHE_ONLY_URL_FLAG: u32 = 4; -pub const CERT_CHAIN_FIND_BY_ISSUER_LOCAL_MACHINE_FLAG: u32 = 8; -pub const CERT_CHAIN_FIND_BY_ISSUER_NO_KEY_FLAG: u32 = 16384; -pub const CERT_CHAIN_FIND_BY_ISSUER_CACHE_ONLY_FLAG: u32 = 32768; -pub const CERT_CHAIN_POLICY_IGNORE_NOT_TIME_VALID_FLAG: u32 = 1; -pub const CERT_CHAIN_POLICY_IGNORE_CTL_NOT_TIME_VALID_FLAG: u32 = 2; -pub const CERT_CHAIN_POLICY_IGNORE_NOT_TIME_NESTED_FLAG: u32 = 4; -pub const CERT_CHAIN_POLICY_IGNORE_INVALID_BASIC_CONSTRAINTS_FLAG: u32 = 8; -pub const CERT_CHAIN_POLICY_IGNORE_ALL_NOT_TIME_VALID_FLAGS: u32 = 7; -pub const CERT_CHAIN_POLICY_ALLOW_UNKNOWN_CA_FLAG: u32 = 16; -pub const CERT_CHAIN_POLICY_IGNORE_WRONG_USAGE_FLAG: u32 = 32; -pub const CERT_CHAIN_POLICY_IGNORE_INVALID_NAME_FLAG: u32 = 64; -pub const CERT_CHAIN_POLICY_IGNORE_INVALID_POLICY_FLAG: u32 = 128; -pub const CERT_CHAIN_POLICY_IGNORE_END_REV_UNKNOWN_FLAG: u32 = 256; -pub const CERT_CHAIN_POLICY_IGNORE_CTL_SIGNER_REV_UNKNOWN_FLAG: u32 = 512; -pub const CERT_CHAIN_POLICY_IGNORE_CA_REV_UNKNOWN_FLAG: u32 = 1024; -pub const CERT_CHAIN_POLICY_IGNORE_ROOT_REV_UNKNOWN_FLAG: u32 = 2048; -pub const CERT_CHAIN_POLICY_IGNORE_ALL_REV_UNKNOWN_FLAGS: u32 = 3840; -pub const CERT_CHAIN_POLICY_ALLOW_TESTROOT_FLAG: u32 = 32768; -pub const CERT_CHAIN_POLICY_TRUST_TESTROOT_FLAG: u32 = 16384; -pub const CERT_CHAIN_POLICY_IGNORE_NOT_SUPPORTED_CRITICAL_EXT_FLAG: u32 = 8192; -pub const CERT_CHAIN_POLICY_IGNORE_PEER_TRUST_FLAG: u32 = 4096; -pub const CERT_CHAIN_POLICY_IGNORE_WEAK_SIGNATURE_FLAG: u32 = 134217728; -pub const CRYPT_OID_VERIFY_CERTIFICATE_CHAIN_POLICY_FUNC: &[u8; 36] = - b"CertDllVerifyCertificateChainPolicy\0"; -pub const AUTHTYPE_CLIENT: u32 = 1; -pub const AUTHTYPE_SERVER: u32 = 2; -pub const BASIC_CONSTRAINTS_CERT_CHAIN_POLICY_CA_FLAG: u32 = 2147483648; -pub const BASIC_CONSTRAINTS_CERT_CHAIN_POLICY_END_ENTITY_FLAG: u32 = 1073741824; -pub const MICROSOFT_ROOT_CERT_CHAIN_POLICY_ENABLE_TEST_ROOT_FLAG: u32 = 65536; -pub const MICROSOFT_ROOT_CERT_CHAIN_POLICY_CHECK_APPLICATION_ROOT_FLAG: u32 = 131072; -pub const MICROSOFT_ROOT_CERT_CHAIN_POLICY_DISABLE_FLIGHT_ROOT_FLAG: u32 = 262144; -pub const SSL_F12_ERROR_TEXT_LENGTH: u32 = 256; -pub const CERT_CHAIN_POLICY_SSL_F12_SUCCESS_LEVEL: u32 = 0; -pub const CERT_CHAIN_POLICY_SSL_F12_WARNING_LEVEL: u32 = 1; -pub const CERT_CHAIN_POLICY_SSL_F12_ERROR_LEVEL: u32 = 2; -pub const CERT_CHAIN_POLICY_SSL_F12_NONE_CATEGORY: u32 = 0; -pub const CERT_CHAIN_POLICY_SSL_F12_WEAK_CRYPTO_CATEGORY: u32 = 1; -pub const CERT_CHAIN_POLICY_SSL_F12_ROOT_PROGRAM_CATEGORY: u32 = 2; -pub const SSL_HPKP_PKP_HEADER_INDEX: u32 = 0; -pub const SSL_HPKP_PKP_RO_HEADER_INDEX: u32 = 1; -pub const SSL_HPKP_HEADER_COUNT: u32 = 2; -pub const SSL_KEY_PIN_ERROR_TEXT_LENGTH: u32 = 512; -pub const CERT_CHAIN_POLICY_SSL_KEY_PIN_MISMATCH_ERROR: i32 = -2; -pub const CERT_CHAIN_POLICY_SSL_KEY_PIN_MITM_ERROR: i32 = -1; -pub const CERT_CHAIN_POLICY_SSL_KEY_PIN_SUCCESS: u32 = 0; -pub const CERT_CHAIN_POLICY_SSL_KEY_PIN_MITM_WARNING: u32 = 1; -pub const CERT_CHAIN_POLICY_SSL_KEY_PIN_MISMATCH_WARNING: u32 = 2; -pub const CRYPT_STRING_BASE64HEADER: u32 = 0; -pub const CRYPT_STRING_BASE64: u32 = 1; -pub const CRYPT_STRING_BINARY: u32 = 2; -pub const CRYPT_STRING_BASE64REQUESTHEADER: u32 = 3; -pub const CRYPT_STRING_HEX: u32 = 4; -pub const CRYPT_STRING_HEXASCII: u32 = 5; -pub const CRYPT_STRING_BASE64_ANY: u32 = 6; -pub const CRYPT_STRING_ANY: u32 = 7; -pub const CRYPT_STRING_HEX_ANY: u32 = 8; -pub const CRYPT_STRING_BASE64X509CRLHEADER: u32 = 9; -pub const CRYPT_STRING_HEXADDR: u32 = 10; -pub const CRYPT_STRING_HEXASCIIADDR: u32 = 11; -pub const CRYPT_STRING_HEXRAW: u32 = 12; -pub const CRYPT_STRING_BASE64URI: u32 = 13; -pub const CRYPT_STRING_ENCODEMASK: u32 = 255; -pub const CRYPT_STRING_RESERVED100: u32 = 256; -pub const CRYPT_STRING_RESERVED200: u32 = 512; -pub const CRYPT_STRING_PERCENTESCAPE: u32 = 134217728; -pub const CRYPT_STRING_HASHDATA: u32 = 268435456; -pub const CRYPT_STRING_STRICT: u32 = 536870912; -pub const CRYPT_STRING_NOCRLF: u32 = 1073741824; -pub const CRYPT_STRING_NOCR: u32 = 2147483648; -pub const szOID_PKCS_12_PbeIds: &[u8; 22] = b"1.2.840.113549.1.12.1\0"; -pub const szOID_PKCS_12_pbeWithSHA1And128BitRC4: &[u8; 24] = b"1.2.840.113549.1.12.1.1\0"; -pub const szOID_PKCS_12_pbeWithSHA1And40BitRC4: &[u8; 24] = b"1.2.840.113549.1.12.1.2\0"; -pub const szOID_PKCS_12_pbeWithSHA1And3KeyTripleDES: &[u8; 24] = b"1.2.840.113549.1.12.1.3\0"; -pub const szOID_PKCS_12_pbeWithSHA1And2KeyTripleDES: &[u8; 24] = b"1.2.840.113549.1.12.1.4\0"; -pub const szOID_PKCS_12_pbeWithSHA1And128BitRC2: &[u8; 24] = b"1.2.840.113549.1.12.1.5\0"; -pub const szOID_PKCS_12_pbeWithSHA1And40BitRC2: &[u8; 24] = b"1.2.840.113549.1.12.1.6\0"; -pub const szOID_PKCS_5_PBKDF2: &[u8; 22] = b"1.2.840.113549.1.5.12\0"; -pub const szOID_PKCS_5_PBES2: &[u8; 22] = b"1.2.840.113549.1.5.13\0"; -pub const PKCS12_IMPORT_SILENT: u32 = 64; -pub const CRYPT_USER_KEYSET: u32 = 4096; -pub const PKCS12_PREFER_CNG_KSP: u32 = 256; -pub const PKCS12_ALWAYS_CNG_KSP: u32 = 512; -pub const PKCS12_ONLY_CERTIFICATES: u32 = 1024; -pub const PKCS12_ONLY_NOT_ENCRYPTED_CERTIFICATES: u32 = 2048; -pub const PKCS12_ALLOW_OVERWRITE_KEY: u32 = 16384; -pub const PKCS12_NO_PERSIST_KEY: u32 = 32768; -pub const PKCS12_VIRTUAL_ISOLATION_KEY: u32 = 65536; -pub const PKCS12_IMPORT_RESERVED_MASK: u32 = 4294901760; -pub const PKCS12_ONLY_CERTIFICATES_PROVIDER_TYPE: u32 = 0; -pub const PKCS12_ONLY_CERTIFICATES_PROVIDER_NAME: &[u8; 12] = b"PfxProvider\0"; -pub const PKCS12_ONLY_CERTIFICATES_CONTAINER_NAME: &[u8; 13] = b"PfxContainer\0"; -pub const REPORT_NO_PRIVATE_KEY: u32 = 1; -pub const REPORT_NOT_ABLE_TO_EXPORT_PRIVATE_KEY: u32 = 2; -pub const EXPORT_PRIVATE_KEYS: u32 = 4; -pub const PKCS12_INCLUDE_EXTENDED_PROPERTIES: u32 = 16; -pub const PKCS12_PROTECT_TO_DOMAIN_SIDS: u32 = 32; -pub const PKCS12_EXPORT_SILENT: u32 = 64; -pub const PKCS12_EXPORT_PBES2_PARAMS: u32 = 128; -pub const PKCS12_DISABLE_ENCRYPT_CERTIFICATES: u32 = 256; -pub const PKCS12_ENCRYPT_CERTIFICATES: u32 = 512; -pub const PKCS12_EXPORT_ECC_CURVE_PARAMETERS: u32 = 4096; -pub const PKCS12_EXPORT_ECC_CURVE_OID: u32 = 8192; -pub const PKCS12_EXPORT_RESERVED_MASK: u32 = 4294901760; -pub const PKCS12_PBKDF2_ID_HMAC_SHA1: &[u8; 19] = b"1.2.840.113549.2.7\0"; -pub const PKCS12_PBKDF2_ID_HMAC_SHA256: &[u8; 19] = b"1.2.840.113549.2.9\0"; -pub const PKCS12_PBKDF2_ID_HMAC_SHA384: &[u8; 20] = b"1.2.840.113549.2.10\0"; -pub const PKCS12_PBKDF2_ID_HMAC_SHA512: &[u8; 20] = b"1.2.840.113549.2.11\0"; -pub const PKCS12_PBES2_ALG_AES256_SHA256: &[u8; 14] = b"AES256-SHA256\0"; -pub const PKCS12_CONFIG_REGPATH: &[u8; 46] = b"Software\\Microsoft\\Windows\\CurrentVersion\\PFX\0"; -pub const PKCS12_ENCRYPT_CERTIFICATES_VALUE_NAME: &[u8; 20] = b"EncryptCertificates\0"; -pub const CERT_SERVER_OCSP_RESPONSE_OPEN_PARA_READ_FLAG: u32 = 1; -pub const CERT_SERVER_OCSP_RESPONSE_OPEN_PARA_WRITE_FLAG: u32 = 2; -pub const CERT_SERVER_OCSP_RESPONSE_ASYNC_FLAG: u32 = 1; -pub const CERT_SELECT_MAX_PARA: u32 = 500; -pub const CERT_SELECT_BY_ENHKEY_USAGE: u32 = 1; -pub const CERT_SELECT_BY_KEY_USAGE: u32 = 2; -pub const CERT_SELECT_BY_POLICY_OID: u32 = 3; -pub const CERT_SELECT_BY_PROV_NAME: u32 = 4; -pub const CERT_SELECT_BY_EXTENSION: u32 = 5; -pub const CERT_SELECT_BY_SUBJECT_HOST_NAME: u32 = 6; -pub const CERT_SELECT_BY_ISSUER_ATTR: u32 = 7; -pub const CERT_SELECT_BY_SUBJECT_ATTR: u32 = 8; -pub const CERT_SELECT_BY_ISSUER_NAME: u32 = 9; -pub const CERT_SELECT_BY_PUBLIC_KEY: u32 = 10; -pub const CERT_SELECT_BY_TLS_SIGNATURES: u32 = 11; -pub const CERT_SELECT_BY_ISSUER_DISPLAYNAME: u32 = 12; -pub const CERT_SELECT_BY_FRIENDLYNAME: u32 = 13; -pub const CERT_SELECT_BY_THUMBPRINT: u32 = 14; -pub const CERT_SELECT_LAST: u32 = 11; -pub const CERT_SELECT_MAX: u32 = 33; -pub const CERT_SELECT_ALLOW_EXPIRED: u32 = 1; -pub const CERT_SELECT_TRUSTED_ROOT: u32 = 2; -pub const CERT_SELECT_DISALLOW_SELFSIGNED: u32 = 4; -pub const CERT_SELECT_HAS_PRIVATE_KEY: u32 = 8; -pub const CERT_SELECT_HAS_KEY_FOR_SIGNATURE: u32 = 16; -pub const CERT_SELECT_HAS_KEY_FOR_KEY_EXCHANGE: u32 = 32; -pub const CERT_SELECT_HARDWARE_ONLY: u32 = 64; -pub const CERT_SELECT_ALLOW_DUPLICATES: u32 = 128; -pub const CERT_SELECT_IGNORE_AUTOSELECT: u32 = 256; -pub const TIMESTAMP_VERSION: u32 = 1; -pub const TIMESTAMP_STATUS_GRANTED: u32 = 0; -pub const TIMESTAMP_STATUS_GRANTED_WITH_MODS: u32 = 1; -pub const TIMESTAMP_STATUS_REJECTED: u32 = 2; -pub const TIMESTAMP_STATUS_WAITING: u32 = 3; -pub const TIMESTAMP_STATUS_REVOCATION_WARNING: u32 = 4; -pub const TIMESTAMP_STATUS_REVOKED: u32 = 5; -pub const TIMESTAMP_FAILURE_BAD_ALG: u32 = 0; -pub const TIMESTAMP_FAILURE_BAD_REQUEST: u32 = 2; -pub const TIMESTAMP_FAILURE_BAD_FORMAT: u32 = 5; -pub const TIMESTAMP_FAILURE_TIME_NOT_AVAILABLE: u32 = 14; -pub const TIMESTAMP_FAILURE_POLICY_NOT_SUPPORTED: u32 = 15; -pub const TIMESTAMP_FAILURE_EXTENSION_NOT_SUPPORTED: u32 = 16; -pub const TIMESTAMP_FAILURE_INFO_NOT_AVAILABLE: u32 = 17; -pub const TIMESTAMP_FAILURE_SYSTEM_FAILURE: u32 = 25; -pub const TIMESTAMP_DONT_HASH_DATA: u32 = 1; -pub const TIMESTAMP_VERIFY_CONTEXT_SIGNATURE: u32 = 32; -pub const TIMESTAMP_NO_AUTH_RETRIEVAL: u32 = 131072; -pub const CRYPT_OBJECT_LOCATOR_SPN_NAME_TYPE: u32 = 1; -pub const CRYPT_OBJECT_LOCATOR_LAST_RESERVED_NAME_TYPE: u32 = 32; -pub const CRYPT_OBJECT_LOCATOR_FIRST_RESERVED_USER_NAME_TYPE: u32 = 33; -pub const CRYPT_OBJECT_LOCATOR_LAST_RESERVED_USER_NAME_TYPE: u32 = 65535; -pub const SSL_OBJECT_LOCATOR_PFX_FUNC: &[u8; 30] = b"SslObjectLocatorInitializePfx\0"; -pub const SSL_OBJECT_LOCATOR_ISSUER_LIST_FUNC: &[u8; 37] = - b"SslObjectLocatorInitializeIssuerList\0"; -pub const SSL_OBJECT_LOCATOR_CERT_VALIDATION_CONFIG_FUNC: &[u8; 47] = - b"SslObjectLocatorInitializeCertValidationConfig\0"; -pub const CRYPT_OBJECT_LOCATOR_RELEASE_SYSTEM_SHUTDOWN: u32 = 1; -pub const CRYPT_OBJECT_LOCATOR_RELEASE_SERVICE_STOP: u32 = 2; -pub const CRYPT_OBJECT_LOCATOR_RELEASE_PROCESS_EXIT: u32 = 3; -pub const CRYPT_OBJECT_LOCATOR_RELEASE_DLL_UNLOAD: u32 = 4; -pub const CERT_FILE_HASH_USE_TYPE: u32 = 1; -pub const CERT_TIMESTAMP_HASH_USE_TYPE: u32 = 2; -pub const szFORCE_KEY_PROTECTION: &[u8; 19] = b"ForceKeyProtection\0"; -pub const dwFORCE_KEY_PROTECTION_DISABLED: u32 = 0; -pub const dwFORCE_KEY_PROTECTION_USER_SELECT: u32 = 1; -pub const dwFORCE_KEY_PROTECTION_HIGH: u32 = 2; -pub const CRYPTPROTECT_PROMPT_ON_UNPROTECT: u32 = 1; -pub const CRYPTPROTECT_PROMPT_ON_PROTECT: u32 = 2; -pub const CRYPTPROTECT_PROMPT_RESERVED: u32 = 4; -pub const CRYPTPROTECT_PROMPT_STRONG: u32 = 8; -pub const CRYPTPROTECT_PROMPT_REQUIRE_STRONG: u32 = 16; -pub const CRYPTPROTECT_UI_FORBIDDEN: u32 = 1; -pub const CRYPTPROTECT_LOCAL_MACHINE: u32 = 4; -pub const CRYPTPROTECT_CRED_SYNC: u32 = 8; -pub const CRYPTPROTECT_AUDIT: u32 = 16; -pub const CRYPTPROTECT_NO_RECOVERY: u32 = 32; -pub const CRYPTPROTECT_VERIFY_PROTECTION: u32 = 64; -pub const CRYPTPROTECT_CRED_REGENERATE: u32 = 128; -pub const CRYPTPROTECT_FIRST_RESERVED_FLAGVAL: u32 = 268435455; -pub const CRYPTPROTECT_LAST_RESERVED_FLAGVAL: u32 = 4294967295; -pub const CRYPTPROTECTMEMORY_BLOCK_SIZE: u32 = 16; -pub const CRYPTPROTECTMEMORY_SAME_PROCESS: u32 = 0; -pub const CRYPTPROTECTMEMORY_CROSS_PROCESS: u32 = 1; -pub const CRYPTPROTECTMEMORY_SAME_LOGON: u32 = 2; -pub const WINEFS_SETUSERKEY_SET_CAPABILITIES: u32 = 1; -pub const EFS_COMPATIBILITY_VERSION_NCRYPT_PROTECTOR: u32 = 5; -pub const EFS_COMPATIBILITY_VERSION_PFILE_PROTECTOR: u32 = 6; -pub const EFS_SUBVER_UNKNOWN: u32 = 0; -pub const EFS_EFS_SUBVER_EFS_CERT: u32 = 1; -pub const EFS_PFILE_SUBVER_RMS: u32 = 2; -pub const EFS_PFILE_SUBVER_APPX: u32 = 3; -pub const MAX_SID_SIZE: u32 = 256; -pub const EFS_METADATA_ADD_USER: u32 = 1; -pub const EFS_METADATA_REMOVE_USER: u32 = 2; -pub const EFS_METADATA_REPLACE_USER: u32 = 4; -pub const EFS_METADATA_GENERAL_OP: u32 = 8; -pub const __REQUIRED_RPCNDR_H_VERSION__: u32 = 501; -pub const __REQUIRED_RPCSAL_H_VERSION__: u32 = 100; -pub const __RPCNDR_H_VERSION__: u32 = 501; -pub const __RPCSAL_H_VERSION__: u32 = 100; -pub const TARGET_IS_NT1012_OR_LATER: u32 = 1; -pub const TARGET_IS_NT102_OR_LATER: u32 = 1; -pub const TARGET_IS_NT100_OR_LATER: u32 = 1; -pub const TARGET_IS_NT63_OR_LATER: u32 = 1; -pub const TARGET_IS_NT62_OR_LATER: u32 = 1; -pub const TARGET_IS_NT61_OR_LATER: u32 = 1; -pub const TARGET_IS_NT60_OR_LATER: u32 = 1; -pub const TARGET_IS_NT51_OR_LATER: u32 = 1; -pub const TARGET_IS_NT50_OR_LATER: u32 = 1; -pub const TARGET_IS_NT40_OR_LATER: u32 = 1; -pub const TARGET_IS_NT351_OR_WIN95_OR_LATER: u32 = 1; -pub const cbNDRContext: u32 = 20; -pub const USER_CALL_IS_ASYNC: u32 = 256; -pub const USER_CALL_NEW_CORRELATION_DESC: u32 = 512; -pub const USER_MARSHAL_FC_BYTE: u32 = 1; -pub const USER_MARSHAL_FC_CHAR: u32 = 2; -pub const USER_MARSHAL_FC_SMALL: u32 = 3; -pub const USER_MARSHAL_FC_USMALL: u32 = 4; -pub const USER_MARSHAL_FC_WCHAR: u32 = 5; -pub const USER_MARSHAL_FC_SHORT: u32 = 6; -pub const USER_MARSHAL_FC_USHORT: u32 = 7; -pub const USER_MARSHAL_FC_LONG: u32 = 8; -pub const USER_MARSHAL_FC_ULONG: u32 = 9; -pub const USER_MARSHAL_FC_FLOAT: u32 = 10; -pub const USER_MARSHAL_FC_HYPER: u32 = 11; -pub const USER_MARSHAL_FC_DOUBLE: u32 = 12; -pub const ROTREGFLAGS_ALLOWANYCLIENT: u32 = 1; -pub const APPIDREGFLAGS_ACTIVATE_IUSERVER_INDESKTOP: u32 = 1; -pub const APPIDREGFLAGS_SECURE_SERVER_PROCESS_SD_AND_BIND: u32 = 2; -pub const APPIDREGFLAGS_ISSUE_ACTIVATION_RPC_AT_IDENTIFY: u32 = 4; -pub const APPIDREGFLAGS_IUSERVER_UNMODIFIED_LOGON_TOKEN: u32 = 8; -pub const APPIDREGFLAGS_IUSERVER_SELF_SID_IN_LAUNCH_PERMISSION: u32 = 16; -pub const APPIDREGFLAGS_IUSERVER_ACTIVATE_IN_CLIENT_SESSION_ONLY: u32 = 32; -pub const APPIDREGFLAGS_RESERVED1: u32 = 64; -pub const APPIDREGFLAGS_RESERVED2: u32 = 128; -pub const APPIDREGFLAGS_RESERVED3: u32 = 256; -pub const APPIDREGFLAGS_RESERVED4: u32 = 512; -pub const APPIDREGFLAGS_RESERVED5: u32 = 1024; -pub const APPIDREGFLAGS_AAA_NO_IMPLICIT_ACTIVATE_AS_IU: u32 = 2048; -pub const APPIDREGFLAGS_RESERVED7: u32 = 4096; -pub const APPIDREGFLAGS_RESERVED8: u32 = 8192; -pub const APPIDREGFLAGS_RESERVED9: u32 = 16384; -pub const DCOMSCM_ACTIVATION_USE_ALL_AUTHNSERVICES: u32 = 1; -pub const DCOMSCM_ACTIVATION_DISALLOW_UNSECURE_CALL: u32 = 2; -pub const DCOMSCM_RESOLVE_USE_ALL_AUTHNSERVICES: u32 = 4; -pub const DCOMSCM_RESOLVE_DISALLOW_UNSECURE_CALL: u32 = 8; -pub const DCOMSCM_PING_USE_MID_AUTHNSERVICE: u32 = 16; -pub const DCOMSCM_PING_DISALLOW_UNSECURE_CALL: u32 = 32; -pub const ROTFLAGS_REGISTRATIONKEEPSALIVE: u32 = 1; -pub const ROTFLAGS_ALLOWANYCLIENT: u32 = 2; -pub const ROT_COMPARE_MAX: u32 = 2048; -pub const WDT_INPROC_CALL: u32 = 1215587415; -pub const WDT_REMOTE_CALL: u32 = 1383359575; -pub const WDT_INPROC64_CALL: u32 = 1349805143; -pub const FILE_DEVICE_BEEP: u32 = 1; -pub const FILE_DEVICE_CD_ROM: u32 = 2; -pub const FILE_DEVICE_CD_ROM_FILE_SYSTEM: u32 = 3; -pub const FILE_DEVICE_CONTROLLER: u32 = 4; -pub const FILE_DEVICE_DATALINK: u32 = 5; -pub const FILE_DEVICE_DFS: u32 = 6; -pub const FILE_DEVICE_DISK: u32 = 7; -pub const FILE_DEVICE_DISK_FILE_SYSTEM: u32 = 8; -pub const FILE_DEVICE_FILE_SYSTEM: u32 = 9; -pub const FILE_DEVICE_INPORT_PORT: u32 = 10; -pub const FILE_DEVICE_KEYBOARD: u32 = 11; -pub const FILE_DEVICE_MAILSLOT: u32 = 12; -pub const FILE_DEVICE_MIDI_IN: u32 = 13; -pub const FILE_DEVICE_MIDI_OUT: u32 = 14; -pub const FILE_DEVICE_MOUSE: u32 = 15; -pub const FILE_DEVICE_MULTI_UNC_PROVIDER: u32 = 16; -pub const FILE_DEVICE_NAMED_PIPE: u32 = 17; -pub const FILE_DEVICE_NETWORK: u32 = 18; -pub const FILE_DEVICE_NETWORK_BROWSER: u32 = 19; -pub const FILE_DEVICE_NETWORK_FILE_SYSTEM: u32 = 20; -pub const FILE_DEVICE_NULL: u32 = 21; -pub const FILE_DEVICE_PARALLEL_PORT: u32 = 22; -pub const FILE_DEVICE_PHYSICAL_NETCARD: u32 = 23; -pub const FILE_DEVICE_PRINTER: u32 = 24; -pub const FILE_DEVICE_SCANNER: u32 = 25; -pub const FILE_DEVICE_SERIAL_MOUSE_PORT: u32 = 26; -pub const FILE_DEVICE_SERIAL_PORT: u32 = 27; -pub const FILE_DEVICE_SCREEN: u32 = 28; -pub const FILE_DEVICE_SOUND: u32 = 29; -pub const FILE_DEVICE_STREAMS: u32 = 30; -pub const FILE_DEVICE_TAPE: u32 = 31; -pub const FILE_DEVICE_TAPE_FILE_SYSTEM: u32 = 32; -pub const FILE_DEVICE_TRANSPORT: u32 = 33; -pub const FILE_DEVICE_UNKNOWN: u32 = 34; -pub const FILE_DEVICE_VIDEO: u32 = 35; -pub const FILE_DEVICE_VIRTUAL_DISK: u32 = 36; -pub const FILE_DEVICE_WAVE_IN: u32 = 37; -pub const FILE_DEVICE_WAVE_OUT: u32 = 38; -pub const FILE_DEVICE_8042_PORT: u32 = 39; -pub const FILE_DEVICE_NETWORK_REDIRECTOR: u32 = 40; -pub const FILE_DEVICE_BATTERY: u32 = 41; -pub const FILE_DEVICE_BUS_EXTENDER: u32 = 42; -pub const FILE_DEVICE_MODEM: u32 = 43; -pub const FILE_DEVICE_VDM: u32 = 44; -pub const FILE_DEVICE_MASS_STORAGE: u32 = 45; -pub const FILE_DEVICE_SMB: u32 = 46; -pub const FILE_DEVICE_KS: u32 = 47; -pub const FILE_DEVICE_CHANGER: u32 = 48; -pub const FILE_DEVICE_SMARTCARD: u32 = 49; -pub const FILE_DEVICE_ACPI: u32 = 50; -pub const FILE_DEVICE_DVD: u32 = 51; -pub const FILE_DEVICE_FULLSCREEN_VIDEO: u32 = 52; -pub const FILE_DEVICE_DFS_FILE_SYSTEM: u32 = 53; -pub const FILE_DEVICE_DFS_VOLUME: u32 = 54; -pub const FILE_DEVICE_SERENUM: u32 = 55; -pub const FILE_DEVICE_TERMSRV: u32 = 56; -pub const FILE_DEVICE_KSEC: u32 = 57; -pub const FILE_DEVICE_FIPS: u32 = 58; -pub const FILE_DEVICE_INFINIBAND: u32 = 59; -pub const FILE_DEVICE_VMBUS: u32 = 62; -pub const FILE_DEVICE_CRYPT_PROVIDER: u32 = 63; -pub const FILE_DEVICE_WPD: u32 = 64; -pub const FILE_DEVICE_BLUETOOTH: u32 = 65; -pub const FILE_DEVICE_MT_COMPOSITE: u32 = 66; -pub const FILE_DEVICE_MT_TRANSPORT: u32 = 67; -pub const FILE_DEVICE_BIOMETRIC: u32 = 68; -pub const FILE_DEVICE_PMI: u32 = 69; -pub const FILE_DEVICE_EHSTOR: u32 = 70; -pub const FILE_DEVICE_DEVAPI: u32 = 71; -pub const FILE_DEVICE_GPIO: u32 = 72; -pub const FILE_DEVICE_USBEX: u32 = 73; -pub const FILE_DEVICE_CONSOLE: u32 = 80; -pub const FILE_DEVICE_NFP: u32 = 81; -pub const FILE_DEVICE_SYSENV: u32 = 82; -pub const FILE_DEVICE_VIRTUAL_BLOCK: u32 = 83; -pub const FILE_DEVICE_POINT_OF_SERVICE: u32 = 84; -pub const FILE_DEVICE_STORAGE_REPLICATION: u32 = 85; -pub const FILE_DEVICE_TRUST_ENV: u32 = 86; -pub const FILE_DEVICE_UCM: u32 = 87; -pub const FILE_DEVICE_UCMTCPCI: u32 = 88; -pub const FILE_DEVICE_PERSISTENT_MEMORY: u32 = 89; -pub const FILE_DEVICE_NVDIMM: u32 = 90; -pub const FILE_DEVICE_HOLOGRAPHIC: u32 = 91; -pub const FILE_DEVICE_SDFXHCI: u32 = 92; -pub const FILE_DEVICE_UCMUCSI: u32 = 93; -pub const FILE_DEVICE_PRM: u32 = 94; -pub const FILE_DEVICE_EVENT_COLLECTOR: u32 = 95; -pub const FILE_DEVICE_USB4: u32 = 96; -pub const FILE_DEVICE_SOUNDWIRE: u32 = 97; -pub const METHOD_BUFFERED: u32 = 0; -pub const METHOD_IN_DIRECT: u32 = 1; -pub const METHOD_OUT_DIRECT: u32 = 2; -pub const METHOD_NEITHER: u32 = 3; -pub const METHOD_DIRECT_TO_HARDWARE: u32 = 1; -pub const METHOD_DIRECT_FROM_HARDWARE: u32 = 2; -pub const FILE_ANY_ACCESS: u32 = 0; -pub const FILE_SPECIAL_ACCESS: u32 = 0; -pub const FILE_READ_ACCESS: u32 = 1; -pub const FILE_WRITE_ACCESS: u32 = 2; -pub const IOCTL_STORAGE_BASE: u32 = 45; -pub const STORAGE_DEVICE_FLAGS_RANDOM_DEVICEGUID_REASON_CONFLICT: u32 = 1; -pub const STORAGE_DEVICE_FLAGS_RANDOM_DEVICEGUID_REASON_NOHWID: u32 = 2; -pub const STORAGE_DEVICE_FLAGS_PAGE_83_DEVICEGUID: u32 = 4; -pub const RECOVERED_WRITES_VALID: u32 = 1; -pub const UNRECOVERED_WRITES_VALID: u32 = 2; -pub const RECOVERED_READS_VALID: u32 = 4; -pub const UNRECOVERED_READS_VALID: u32 = 8; -pub const WRITE_COMPRESSION_INFO_VALID: u32 = 16; -pub const READ_COMPRESSION_INFO_VALID: u32 = 32; -pub const TAPE_RETURN_STATISTICS: u32 = 0; -pub const TAPE_RETURN_ENV_INFO: u32 = 1; -pub const TAPE_RESET_STATISTICS: u32 = 2; -pub const MEDIA_ERASEABLE: u32 = 1; -pub const MEDIA_WRITE_ONCE: u32 = 2; -pub const MEDIA_READ_ONLY: u32 = 4; -pub const MEDIA_READ_WRITE: u32 = 8; -pub const MEDIA_WRITE_PROTECTED: u32 = 256; -pub const MEDIA_CURRENTLY_MOUNTED: u32 = 2147483648; -pub const STORAGE_FAILURE_PREDICTION_CONFIG_V1: u32 = 1; -pub const SRB_TYPE_SCSI_REQUEST_BLOCK: u32 = 0; -pub const SRB_TYPE_STORAGE_REQUEST_BLOCK: u32 = 1; -pub const STORAGE_ADDRESS_TYPE_BTL8: u32 = 0; -pub const STORAGE_RPMB_DESCRIPTOR_VERSION_1: u32 = 1; -pub const STORAGE_RPMB_MINIMUM_RELIABLE_WRITE_SIZE: u32 = 512; -pub const STORAGE_CRYPTO_CAPABILITY_VERSION_1: u32 = 1; -pub const STORAGE_CRYPTO_DESCRIPTOR_VERSION_1: u32 = 1; -pub const STORAGE_TIER_NAME_LENGTH: u32 = 256; -pub const STORAGE_TIER_DESCRIPTION_LENGTH: u32 = 512; -pub const STORAGE_TIER_FLAG_NO_SEEK_PENALTY: u32 = 131072; -pub const STORAGE_TIER_FLAG_WRITE_BACK_CACHE: u32 = 2097152; -pub const STORAGE_TIER_FLAG_READ_CACHE: u32 = 4194304; -pub const STORAGE_TIER_FLAG_PARITY: u32 = 8388608; -pub const STORAGE_TIER_FLAG_SMR: u32 = 16777216; -pub const STORAGE_TEMPERATURE_VALUE_NOT_REPORTED: u32 = 32768; -pub const STORAGE_TEMPERATURE_THRESHOLD_FLAG_ADAPTER_REQUEST: u32 = 1; -pub const STORAGE_COMPONENT_ROLE_CACHE: u32 = 1; -pub const STORAGE_COMPONENT_ROLE_TIERING: u32 = 2; -pub const STORAGE_COMPONENT_ROLE_DATA: u32 = 4; -pub const STORAGE_ATTRIBUTE_BYTE_ADDRESSABLE_IO: u32 = 1; -pub const STORAGE_ATTRIBUTE_BLOCK_IO: u32 = 2; -pub const STORAGE_ATTRIBUTE_DYNAMIC_PERSISTENCE: u32 = 4; -pub const STORAGE_ATTRIBUTE_VOLATILE: u32 = 8; -pub const STORAGE_ATTRIBUTE_ASYNC_EVENT_NOTIFICATION: u32 = 16; -pub const STORAGE_ATTRIBUTE_PERF_SIZE_INDEPENDENT: u32 = 32; -pub const STORAGE_DEVICE_MAX_OPERATIONAL_STATUS: u32 = 16; -pub const STORAGE_ADAPTER_SERIAL_NUMBER_V1_MAX_LENGTH: u32 = 128; -pub const STORAGE_DEVICE_NUMA_NODE_UNKNOWN: u32 = 4294967295; -pub const DeviceDsmActionFlag_NonDestructive: u32 = 2147483648; -pub const DeviceDsmAction_None: u32 = 0; -pub const DeviceDsmAction_Trim: u32 = 1; -pub const DeviceDsmAction_Notification: u32 = 2147483650; -pub const DeviceDsmAction_OffloadRead: u32 = 2147483651; -pub const DeviceDsmAction_OffloadWrite: u32 = 4; -pub const DeviceDsmAction_Allocation: u32 = 2147483653; -pub const DeviceDsmAction_Repair: u32 = 2147483654; -pub const DeviceDsmAction_Scrub: u32 = 2147483655; -pub const DeviceDsmAction_DrtQuery: u32 = 2147483656; -pub const DeviceDsmAction_DrtClear: u32 = 2147483657; -pub const DeviceDsmAction_DrtDisable: u32 = 2147483658; -pub const DeviceDsmAction_TieringQuery: u32 = 2147483659; -pub const DeviceDsmAction_Map: u32 = 2147483660; -pub const DeviceDsmAction_RegenerateParity: u32 = 2147483661; -pub const DeviceDsmAction_NvCache_Change_Priority: u32 = 2147483662; -pub const DeviceDsmAction_NvCache_Evict: u32 = 2147483663; -pub const DeviceDsmAction_TopologyIdQuery: u32 = 2147483664; -pub const DeviceDsmAction_GetPhysicalAddresses: u32 = 2147483665; -pub const DeviceDsmAction_ScopeRegen: u32 = 2147483666; -pub const DeviceDsmAction_ReportZones: u32 = 2147483667; -pub const DeviceDsmAction_OpenZone: u32 = 2147483668; -pub const DeviceDsmAction_FinishZone: u32 = 2147483669; -pub const DeviceDsmAction_CloseZone: u32 = 2147483670; -pub const DeviceDsmAction_ResetWritePointer: u32 = 23; -pub const DeviceDsmAction_GetRangeErrorInfo: u32 = 2147483672; -pub const DeviceDsmAction_WriteZeroes: u32 = 25; -pub const DeviceDsmAction_LostQuery: u32 = 2147483674; -pub const DeviceDsmAction_GetFreeSpace: u32 = 2147483675; -pub const DeviceDsmAction_ConversionQuery: u32 = 2147483676; -pub const DeviceDsmAction_VdtSet: u32 = 29; -pub const DEVICE_DSM_FLAG_ENTIRE_DATA_SET_RANGE: u32 = 1; -pub const DEVICE_DSM_FLAG_TRIM_NOT_FS_ALLOCATED: u32 = 2147483648; -pub const DEVICE_DSM_FLAG_TRIM_BYPASS_RZAT: u32 = 1073741824; -pub const DEVICE_DSM_NOTIFY_FLAG_BEGIN: u32 = 1; -pub const DEVICE_DSM_NOTIFY_FLAG_END: u32 = 2; -pub const STORAGE_OFFLOAD_MAX_TOKEN_LENGTH: u32 = 512; -pub const STORAGE_OFFLOAD_TOKEN_ID_LENGTH: u32 = 504; -pub const STORAGE_OFFLOAD_TOKEN_TYPE_ZERO_DATA: u32 = 4294901761; -pub const STORAGE_OFFLOAD_READ_RANGE_TRUNCATED: u32 = 1; -pub const STORAGE_OFFLOAD_WRITE_RANGE_TRUNCATED: u32 = 1; -pub const STORAGE_OFFLOAD_TOKEN_INVALID: u32 = 2; -pub const DEVICE_DSM_FLAG_ALLOCATION_CONSOLIDATEABLE_ONLY: u32 = 1073741824; -pub const DEVICE_DSM_PARAMETERS_V1: u32 = 1; -pub const DEVICE_DATA_SET_LBP_STATE_PARAMETERS_VERSION_V1: u32 = 1; -pub const DEVICE_DSM_FLAG_REPAIR_INPUT_TOPOLOGY_ID_PRESENT: u32 = 1073741824; -pub const DEVICE_DSM_FLAG_REPAIR_OUTPUT_PARITY_EXTENT: u32 = 536870912; -pub const DEVICE_DSM_FLAG_SCRUB_SKIP_IN_SYNC: u32 = 268435456; -pub const DEVICE_DSM_FLAG_SCRUB_OUTPUT_PARITY_EXTENT: u32 = 536870912; -pub const DEVICE_DSM_FLAG_PHYSICAL_ADDRESSES_OMIT_TOTAL_RANGES: u32 = 268435456; -pub const DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_V1: u32 = 1; -pub const DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_VERSION_V1: u32 = 1; -pub const DEVICE_STORAGE_NO_ERRORS: u32 = 1; -pub const DEVICE_DSM_RANGE_ERROR_OUTPUT_V1: u32 = 1; -pub const DEVICE_DSM_RANGE_ERROR_INFO_VERSION_V1: u32 = 1; -pub const IOCTL_STORAGE_BC_VERSION: u32 = 1; -pub const STORAGE_PRIORITY_HINT_SUPPORTED: u32 = 1; -pub const STORAGE_DIAGNOSTIC_FLAG_ADAPTER_REQUEST: u32 = 1; -pub const ERROR_HISTORY_DIRECTORY_ENTRY_DEFAULT_COUNT: u32 = 8; -pub const DEVICEDUMP_STRUCTURE_VERSION_V1: u32 = 1; -pub const DEVICEDUMP_MAX_IDSTRING: u32 = 32; -pub const MAX_FW_BUCKET_ID_LENGTH: u32 = 132; -pub const STORAGE_CRASH_TELEMETRY_REGKEY: &[u8; 81] = - b"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\CrashControl\\StorageTelemetry\0"; -pub const STORAGE_DEVICE_TELEMETRY_REGKEY: &[u8; 76] = - b"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Storage\\StorageTelemetry\0"; -pub const DDUMP_FLAG_DATA_READ_FROM_DEVICE: u32 = 1; -pub const FW_ISSUEID_NO_ISSUE: u32 = 0; -pub const FW_ISSUEID_UNKNOWN: u32 = 4294967295; -pub const TC_PUBLIC_DEVICEDUMP_CONTENT_SMART: u32 = 1; -pub const TC_PUBLIC_DEVICEDUMP_CONTENT_GPLOG: u32 = 2; -pub const TC_PUBLIC_DEVICEDUMP_CONTENT_GPLOG_MAX: u32 = 16; -pub const TC_DEVICEDUMP_SUBSECTION_DESC_LENGTH: u32 = 16; -pub const TC_PUBLIC_DATA_TYPE_ATAGP: &[u8; 14] = b"ATAGPLogPages\0"; -pub const TC_PUBLIC_DATA_TYPE_ATASMART: &[u8; 14] = b"ATASMARTPages\0"; -pub const CDB_SIZE: u32 = 16; -pub const TELEMETRY_COMMAND_SIZE: u32 = 16; -pub const DEVICEDUMP_CAP_PRIVATE_SECTION: u32 = 1; -pub const DEVICEDUMP_CAP_RESTRICTED_SECTION: u32 = 2; -pub const STORAGE_IDLE_POWERUP_REASON_VERSION_V1: u32 = 1; -pub const STORAGE_DEVICE_POWER_CAP_VERSION_V1: u32 = 1; -pub const STORAGE_EVENT_NOTIFICATION_VERSION_V1: u32 = 1; -pub const STORAGE_EVENT_MEDIA_STATUS: u32 = 1; -pub const STORAGE_EVENT_DEVICE_STATUS: u32 = 2; -pub const STORAGE_EVENT_DEVICE_OPERATION: u32 = 4; -pub const STORAGE_EVENT_ALL: u32 = 7; -pub const READ_COPY_NUMBER_KEY: u32 = 1380142592; -pub const READ_COPY_NUMBER_BYPASS_CACHE_FLAG: u32 = 256; -pub const STORAGE_HW_FIRMWARE_REQUEST_FLAG_CONTROLLER: u32 = 1; -pub const STORAGE_HW_FIRMWARE_REQUEST_FLAG_LAST_SEGMENT: u32 = 2; -pub const STORAGE_HW_FIRMWARE_REQUEST_FLAG_FIRST_SEGMENT: u32 = 4; -pub const STORAGE_HW_FIRMWARE_REQUEST_FLAG_REPLACE_EXISTING_IMAGE: u32 = 1073741824; -pub const STORAGE_HW_FIRMWARE_REQUEST_FLAG_SWITCH_TO_EXISTING_FIRMWARE: u32 = 2147483648; -pub const STORAGE_HW_FIRMWARE_INVALID_SLOT: u32 = 255; -pub const STORAGE_HW_FIRMWARE_REVISION_LENGTH: u32 = 16; -pub const STORAGE_PROTOCOL_STRUCTURE_VERSION: u32 = 1; -pub const STORAGE_PROTOCOL_COMMAND_FLAG_ADAPTER_REQUEST: u32 = 2147483648; -pub const STORAGE_PROTOCOL_STATUS_PENDING: u32 = 0; -pub const STORAGE_PROTOCOL_STATUS_SUCCESS: u32 = 1; -pub const STORAGE_PROTOCOL_STATUS_ERROR: u32 = 2; -pub const STORAGE_PROTOCOL_STATUS_INVALID_REQUEST: u32 = 3; -pub const STORAGE_PROTOCOL_STATUS_NO_DEVICE: u32 = 4; -pub const STORAGE_PROTOCOL_STATUS_BUSY: u32 = 5; -pub const STORAGE_PROTOCOL_STATUS_DATA_OVERRUN: u32 = 6; -pub const STORAGE_PROTOCOL_STATUS_INSUFFICIENT_RESOURCES: u32 = 7; -pub const STORAGE_PROTOCOL_STATUS_THROTTLED_REQUEST: u32 = 8; -pub const STORAGE_PROTOCOL_STATUS_NOT_SUPPORTED: u32 = 255; -pub const STORAGE_PROTOCOL_COMMAND_LENGTH_NVME: u32 = 64; -pub const STORAGE_PROTOCOL_SPECIFIC_NVME_ADMIN_COMMAND: u32 = 1; -pub const STORAGE_PROTOCOL_SPECIFIC_NVME_NVM_COMMAND: u32 = 2; -pub const STORATTRIBUTE_NONE: u32 = 0; -pub const STORATTRIBUTE_MANAGEMENT_STATE: u32 = 1; -pub const IOCTL_SCMBUS_BASE: u32 = 89; -pub const IOCTL_SCMBUS_DEVICE_FUNCTION_BASE: u32 = 0; -pub const IOCTL_SCM_LOGICAL_DEVICE_FUNCTION_BASE: u32 = 768; -pub const IOCTL_SCM_PHYSICAL_DEVICE_FUNCTION_BASE: u32 = 1536; -pub const SCM_MAX_SYMLINK_LEN_IN_CHARS: u32 = 256; -pub const MAX_INTERFACE_CODES: u32 = 8; -pub const SCM_PD_FIRMWARE_REVISION_LENGTH_BYTES: u32 = 32; -pub const SCM_PD_PROPERTY_NAME_LENGTH_IN_CHARS: u32 = 128; -pub const SCM_PD_MAX_OPERATIONAL_STATUS: u32 = 16; -pub const SCM_PD_FIRMWARE_LAST_DOWNLOAD: u32 = 1; -pub const IOCTL_DISK_BASE: u32 = 7; -pub const PARTITION_ENTRY_UNUSED: u32 = 0; -pub const PARTITION_FAT_12: u32 = 1; -pub const PARTITION_XENIX_1: u32 = 2; -pub const PARTITION_XENIX_2: u32 = 3; -pub const PARTITION_FAT_16: u32 = 4; -pub const PARTITION_EXTENDED: u32 = 5; -pub const PARTITION_HUGE: u32 = 6; -pub const PARTITION_IFS: u32 = 7; -pub const PARTITION_OS2BOOTMGR: u32 = 10; -pub const PARTITION_FAT32: u32 = 11; -pub const PARTITION_FAT32_XINT13: u32 = 12; -pub const PARTITION_XINT13: u32 = 14; -pub const PARTITION_XINT13_EXTENDED: u32 = 15; -pub const PARTITION_MSFT_RECOVERY: u32 = 39; -pub const PARTITION_MAIN_OS: u32 = 40; -pub const PARTIITON_OS_DATA: u32 = 41; -pub const PARTITION_PRE_INSTALLED: u32 = 42; -pub const PARTITION_BSP: u32 = 43; -pub const PARTITION_DPP: u32 = 44; -pub const PARTITION_WINDOWS_SYSTEM: u32 = 45; -pub const PARTITION_PREP: u32 = 65; -pub const PARTITION_LDM: u32 = 66; -pub const PARTITION_DM: u32 = 84; -pub const PARTITION_EZDRIVE: u32 = 85; -pub const PARTITION_UNIX: u32 = 99; -pub const PARTITION_SPACES_DATA: u32 = 215; -pub const PARTITION_SPACES: u32 = 231; -pub const PARTITION_GPT: u32 = 238; -pub const PARTITION_SYSTEM: u32 = 239; -pub const VALID_NTFT: u32 = 192; -pub const PARTITION_NTFT: u32 = 128; -pub const GPT_ATTRIBUTE_PLATFORM_REQUIRED: u32 = 1; -pub const GPT_ATTRIBUTE_NO_BLOCK_IO_PROTOCOL: u32 = 2; -pub const GPT_ATTRIBUTE_LEGACY_BIOS_BOOTABLE: u32 = 4; -pub const GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER: i64 = -9223372036854775808; -pub const GPT_BASIC_DATA_ATTRIBUTE_HIDDEN: u64 = 4611686018427387904; -pub const GPT_BASIC_DATA_ATTRIBUTE_SHADOW_COPY: u64 = 2305843009213693952; -pub const GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY: u64 = 1152921504606846976; -pub const GPT_BASIC_DATA_ATTRIBUTE_OFFLINE: u64 = 576460752303423488; -pub const GPT_BASIC_DATA_ATTRIBUTE_DAX: u64 = 288230376151711744; -pub const GPT_BASIC_DATA_ATTRIBUTE_SERVICE: u64 = 144115188075855872; -pub const GPT_SPACES_ATTRIBUTE_NO_METADATA: i64 = -9223372036854775808; -pub const HIST_NO_OF_BUCKETS: u32 = 24; -pub const DISK_LOGGING_START: u32 = 0; -pub const DISK_LOGGING_STOP: u32 = 1; -pub const DISK_LOGGING_DUMP: u32 = 2; -pub const DISK_BINNING: u32 = 3; -pub const CAP_ATA_ID_CMD: u32 = 1; -pub const CAP_ATAPI_ID_CMD: u32 = 2; -pub const CAP_SMART_CMD: u32 = 4; -pub const ATAPI_ID_CMD: u32 = 161; -pub const ID_CMD: u32 = 236; -pub const SMART_CMD: u32 = 176; -pub const SMART_CYL_LOW: u32 = 79; -pub const SMART_CYL_HI: u32 = 194; -pub const SMART_NO_ERROR: u32 = 0; -pub const SMART_IDE_ERROR: u32 = 1; -pub const SMART_INVALID_FLAG: u32 = 2; -pub const SMART_INVALID_COMMAND: u32 = 3; -pub const SMART_INVALID_BUFFER: u32 = 4; -pub const SMART_INVALID_DRIVE: u32 = 5; -pub const SMART_INVALID_IOCTL: u32 = 6; -pub const SMART_ERROR_NO_MEM: u32 = 7; -pub const SMART_INVALID_REGISTER: u32 = 8; -pub const SMART_NOT_SUPPORTED: u32 = 9; -pub const SMART_NO_IDE_DEVICE: u32 = 10; -pub const SMART_OFFLINE_ROUTINE_OFFLINE: u32 = 0; -pub const SMART_SHORT_SELFTEST_OFFLINE: u32 = 1; -pub const SMART_EXTENDED_SELFTEST_OFFLINE: u32 = 2; -pub const SMART_ABORT_OFFLINE_SELFTEST: u32 = 127; -pub const SMART_SHORT_SELFTEST_CAPTIVE: u32 = 129; -pub const SMART_EXTENDED_SELFTEST_CAPTIVE: u32 = 130; -pub const READ_ATTRIBUTE_BUFFER_SIZE: u32 = 512; -pub const IDENTIFY_BUFFER_SIZE: u32 = 512; -pub const READ_THRESHOLD_BUFFER_SIZE: u32 = 512; -pub const SMART_LOG_SECTOR_SIZE: u32 = 512; -pub const READ_ATTRIBUTES: u32 = 208; -pub const READ_THRESHOLDS: u32 = 209; -pub const ENABLE_DISABLE_AUTOSAVE: u32 = 210; -pub const SAVE_ATTRIBUTE_VALUES: u32 = 211; -pub const EXECUTE_OFFLINE_DIAGS: u32 = 212; -pub const SMART_READ_LOG: u32 = 213; -pub const SMART_WRITE_LOG: u32 = 214; -pub const ENABLE_SMART: u32 = 216; -pub const DISABLE_SMART: u32 = 217; -pub const RETURN_SMART_STATUS: u32 = 218; -pub const ENABLE_DISABLE_AUTO_OFFLINE: u32 = 219; -pub const DISK_ATTRIBUTE_OFFLINE: u32 = 1; -pub const DISK_ATTRIBUTE_READ_ONLY: u32 = 2; -pub const IOCTL_CHANGER_BASE: u32 = 48; -pub const MAX_VOLUME_ID_SIZE: u32 = 36; -pub const MAX_VOLUME_TEMPLATE_SIZE: u32 = 40; -pub const VENDOR_ID_LENGTH: u32 = 8; -pub const PRODUCT_ID_LENGTH: u32 = 16; -pub const REVISION_LENGTH: u32 = 4; -pub const SERIAL_NUMBER_LENGTH: u32 = 32; -pub const CHANGER_BAR_CODE_SCANNER_INSTALLED: u32 = 1; -pub const CHANGER_INIT_ELEM_STAT_WITH_RANGE: u32 = 2; -pub const CHANGER_CLOSE_IEPORT: u32 = 4; -pub const CHANGER_OPEN_IEPORT: u32 = 8; -pub const CHANGER_STATUS_NON_VOLATILE: u32 = 16; -pub const CHANGER_EXCHANGE_MEDIA: u32 = 32; -pub const CHANGER_CLEANER_SLOT: u32 = 64; -pub const CHANGER_LOCK_UNLOCK: u32 = 128; -pub const CHANGER_CARTRIDGE_MAGAZINE: u32 = 256; -pub const CHANGER_MEDIUM_FLIP: u32 = 512; -pub const CHANGER_POSITION_TO_ELEMENT: u32 = 1024; -pub const CHANGER_REPORT_IEPORT_STATE: u32 = 2048; -pub const CHANGER_STORAGE_DRIVE: u32 = 4096; -pub const CHANGER_STORAGE_IEPORT: u32 = 8192; -pub const CHANGER_STORAGE_SLOT: u32 = 16384; -pub const CHANGER_STORAGE_TRANSPORT: u32 = 32768; -pub const CHANGER_DRIVE_CLEANING_REQUIRED: u32 = 65536; -pub const CHANGER_PREDISMOUNT_EJECT_REQUIRED: u32 = 131072; -pub const CHANGER_CLEANER_ACCESS_NOT_VALID: u32 = 262144; -pub const CHANGER_PREMOUNT_EJECT_REQUIRED: u32 = 524288; -pub const CHANGER_VOLUME_IDENTIFICATION: u32 = 1048576; -pub const CHANGER_VOLUME_SEARCH: u32 = 2097152; -pub const CHANGER_VOLUME_ASSERT: u32 = 4194304; -pub const CHANGER_VOLUME_REPLACE: u32 = 8388608; -pub const CHANGER_VOLUME_UNDEFINE: u32 = 16777216; -pub const CHANGER_SERIAL_NUMBER_VALID: u32 = 67108864; -pub const CHANGER_DEVICE_REINITIALIZE_CAPABLE: u32 = 134217728; -pub const CHANGER_KEYPAD_ENABLE_DISABLE: u32 = 268435456; -pub const CHANGER_DRIVE_EMPTY_ON_DOOR_ACCESS: u32 = 536870912; -pub const CHANGER_RESERVED_BIT: u32 = 2147483648; -pub const CHANGER_PREDISMOUNT_ALIGN_TO_SLOT: u32 = 2147483649; -pub const CHANGER_PREDISMOUNT_ALIGN_TO_DRIVE: u32 = 2147483650; -pub const CHANGER_CLEANER_AUTODISMOUNT: u32 = 2147483652; -pub const CHANGER_TRUE_EXCHANGE_CAPABLE: u32 = 2147483656; -pub const CHANGER_SLOTS_USE_TRAYS: u32 = 2147483664; -pub const CHANGER_RTN_MEDIA_TO_ORIGINAL_ADDR: u32 = 2147483680; -pub const CHANGER_CLEANER_OPS_NOT_SUPPORTED: u32 = 2147483712; -pub const CHANGER_IEPORT_USER_CONTROL_OPEN: u32 = 2147483776; -pub const CHANGER_IEPORT_USER_CONTROL_CLOSE: u32 = 2147483904; -pub const CHANGER_MOVE_EXTENDS_IEPORT: u32 = 2147484160; -pub const CHANGER_MOVE_RETRACTS_IEPORT: u32 = 2147484672; -pub const CHANGER_TO_TRANSPORT: u32 = 1; -pub const CHANGER_TO_SLOT: u32 = 2; -pub const CHANGER_TO_IEPORT: u32 = 4; -pub const CHANGER_TO_DRIVE: u32 = 8; -pub const LOCK_UNLOCK_IEPORT: u32 = 1; -pub const LOCK_UNLOCK_DOOR: u32 = 2; -pub const LOCK_UNLOCK_KEYPAD: u32 = 4; -pub const LOCK_ELEMENT: u32 = 0; -pub const UNLOCK_ELEMENT: u32 = 1; -pub const EXTEND_IEPORT: u32 = 2; -pub const RETRACT_IEPORT: u32 = 3; -pub const ELEMENT_STATUS_FULL: u32 = 1; -pub const ELEMENT_STATUS_IMPEXP: u32 = 2; -pub const ELEMENT_STATUS_EXCEPT: u32 = 4; -pub const ELEMENT_STATUS_ACCESS: u32 = 8; -pub const ELEMENT_STATUS_EXENAB: u32 = 16; -pub const ELEMENT_STATUS_INENAB: u32 = 32; -pub const ELEMENT_STATUS_PRODUCT_DATA: u32 = 64; -pub const ELEMENT_STATUS_LUN_VALID: u32 = 4096; -pub const ELEMENT_STATUS_ID_VALID: u32 = 8192; -pub const ELEMENT_STATUS_NOT_BUS: u32 = 32768; -pub const ELEMENT_STATUS_INVERT: u32 = 4194304; -pub const ELEMENT_STATUS_SVALID: u32 = 8388608; -pub const ELEMENT_STATUS_PVOLTAG: u32 = 268435456; -pub const ELEMENT_STATUS_AVOLTAG: u32 = 536870912; -pub const ERROR_LABEL_UNREADABLE: u32 = 1; -pub const ERROR_LABEL_QUESTIONABLE: u32 = 2; -pub const ERROR_SLOT_NOT_PRESENT: u32 = 4; -pub const ERROR_DRIVE_NOT_INSTALLED: u32 = 8; -pub const ERROR_TRAY_MALFUNCTION: u32 = 16; -pub const ERROR_INIT_STATUS_NEEDED: u32 = 17; -pub const ERROR_UNHANDLED_ERROR: u32 = 4294967295; -pub const SEARCH_ALL: u32 = 0; -pub const SEARCH_PRIMARY: u32 = 1; -pub const SEARCH_ALTERNATE: u32 = 2; -pub const SEARCH_ALL_NO_SEQ: u32 = 4; -pub const SEARCH_PRI_NO_SEQ: u32 = 5; -pub const SEARCH_ALT_NO_SEQ: u32 = 6; -pub const ASSERT_PRIMARY: u32 = 8; -pub const ASSERT_ALTERNATE: u32 = 9; -pub const REPLACE_PRIMARY: u32 = 10; -pub const REPLACE_ALTERNATE: u32 = 11; -pub const UNDEFINE_PRIMARY: u32 = 12; -pub const UNDEFINE_ALTERNATE: u32 = 13; -pub const GET_VOLUME_BITMAP_FLAG_MASK_METADATA: u32 = 1; -pub const FLAG_USN_TRACK_MODIFIED_RANGES_ENABLE: u32 = 1; -pub const USN_PAGE_SIZE: u32 = 4096; -pub const USN_REASON_DATA_OVERWRITE: u32 = 1; -pub const USN_REASON_DATA_EXTEND: u32 = 2; -pub const USN_REASON_DATA_TRUNCATION: u32 = 4; -pub const USN_REASON_NAMED_DATA_OVERWRITE: u32 = 16; -pub const USN_REASON_NAMED_DATA_EXTEND: u32 = 32; -pub const USN_REASON_NAMED_DATA_TRUNCATION: u32 = 64; -pub const USN_REASON_FILE_CREATE: u32 = 256; -pub const USN_REASON_FILE_DELETE: u32 = 512; -pub const USN_REASON_EA_CHANGE: u32 = 1024; -pub const USN_REASON_SECURITY_CHANGE: u32 = 2048; -pub const USN_REASON_RENAME_OLD_NAME: u32 = 4096; -pub const USN_REASON_RENAME_NEW_NAME: u32 = 8192; -pub const USN_REASON_INDEXABLE_CHANGE: u32 = 16384; -pub const USN_REASON_BASIC_INFO_CHANGE: u32 = 32768; -pub const USN_REASON_HARD_LINK_CHANGE: u32 = 65536; -pub const USN_REASON_COMPRESSION_CHANGE: u32 = 131072; -pub const USN_REASON_ENCRYPTION_CHANGE: u32 = 262144; -pub const USN_REASON_OBJECT_ID_CHANGE: u32 = 524288; -pub const USN_REASON_REPARSE_POINT_CHANGE: u32 = 1048576; -pub const USN_REASON_STREAM_CHANGE: u32 = 2097152; -pub const USN_REASON_TRANSACTED_CHANGE: u32 = 4194304; -pub const USN_REASON_INTEGRITY_CHANGE: u32 = 8388608; -pub const USN_REASON_DESIRED_STORAGE_CLASS_CHANGE: u32 = 16777216; -pub const USN_REASON_CLOSE: u32 = 2147483648; -pub const USN_DELETE_FLAG_DELETE: u32 = 1; -pub const USN_DELETE_FLAG_NOTIFY: u32 = 2; -pub const USN_DELETE_VALID_FLAGS: u32 = 3; -pub const USN_SOURCE_DATA_MANAGEMENT: u32 = 1; -pub const USN_SOURCE_AUXILIARY_DATA: u32 = 2; -pub const USN_SOURCE_REPLICATION_MANAGEMENT: u32 = 4; -pub const USN_SOURCE_CLIENT_REPLICATION_MANAGEMENT: u32 = 8; -pub const USN_SOURCE_VALID_FLAGS: u32 = 15; -pub const MARK_HANDLE_PROTECT_CLUSTERS: u32 = 1; -pub const MARK_HANDLE_TXF_SYSTEM_LOG: u32 = 4; -pub const MARK_HANDLE_NOT_TXF_SYSTEM_LOG: u32 = 8; -pub const MARK_HANDLE_REALTIME: u32 = 32; -pub const MARK_HANDLE_NOT_REALTIME: u32 = 64; -pub const MARK_HANDLE_CLOUD_SYNC: u32 = 2048; -pub const MARK_HANDLE_READ_COPY: u32 = 128; -pub const MARK_HANDLE_NOT_READ_COPY: u32 = 256; -pub const MARK_HANDLE_FILTER_METADATA: u32 = 512; -pub const MARK_HANDLE_RETURN_PURGE_FAILURE: u32 = 1024; -pub const MARK_HANDLE_DISABLE_FILE_METADATA_OPTIMIZATION: u32 = 4096; -pub const MARK_HANDLE_ENABLE_USN_SOURCE_ON_PAGING_IO: u32 = 8192; -pub const MARK_HANDLE_SKIP_COHERENCY_SYNC_DISALLOW_WRITES: u32 = 16384; -pub const MARK_HANDLE_SUPPRESS_VOLUME_OPEN_FLUSH: u32 = 32768; -pub const MARK_HANDLE_ENABLE_CPU_CACHE: u32 = 268435456; -pub const VOLUME_IS_DIRTY: u32 = 1; -pub const VOLUME_UPGRADE_SCHEDULED: u32 = 2; -pub const VOLUME_SESSION_OPEN: u32 = 4; -pub const FILE_PREFETCH_TYPE_FOR_CREATE: u32 = 1; -pub const FILE_PREFETCH_TYPE_FOR_DIRENUM: u32 = 2; -pub const FILE_PREFETCH_TYPE_FOR_CREATE_EX: u32 = 3; -pub const FILE_PREFETCH_TYPE_FOR_DIRENUM_EX: u32 = 4; -pub const FILE_PREFETCH_TYPE_MAX: u32 = 4; -pub const FILESYSTEM_STATISTICS_TYPE_NTFS: u32 = 1; -pub const FILESYSTEM_STATISTICS_TYPE_FAT: u32 = 2; -pub const FILESYSTEM_STATISTICS_TYPE_EXFAT: u32 = 3; -pub const FILESYSTEM_STATISTICS_TYPE_REFS: u32 = 4; -pub const FILE_ZERO_DATA_INFORMATION_FLAG_PRESERVE_CACHED_DATA: u32 = 1; -pub const FILE_SET_ENCRYPTION: u32 = 1; -pub const FILE_CLEAR_ENCRYPTION: u32 = 2; -pub const STREAM_SET_ENCRYPTION: u32 = 3; -pub const STREAM_CLEAR_ENCRYPTION: u32 = 4; -pub const MAXIMUM_ENCRYPTION_VALUE: u32 = 4; -pub const ENCRYPTION_FORMAT_DEFAULT: u32 = 1; -pub const ENCRYPTED_DATA_INFO_SPARSE_FILE: u32 = 1; -pub const COPYFILE_SIS_LINK: u32 = 1; -pub const COPYFILE_SIS_REPLACE: u32 = 2; -pub const COPYFILE_SIS_FLAGS: u32 = 3; -pub const SET_REPAIR_ENABLED: u32 = 1; -pub const SET_REPAIR_WARN_ABOUT_DATA_LOSS: u32 = 8; -pub const SET_REPAIR_DISABLED_AND_BUGCHECK_ON_CORRUPT: u32 = 16; -pub const SET_REPAIR_VALID_MASK: u32 = 25; -pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_NOT_IN_USE: u32 = 1; -pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_REUSED: u32 = 2; -pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_NOT_EXIST: u32 = 4; -pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_NOT_BASE_RECORD: u32 = 8; -pub const FILE_INITIATE_REPAIR_HINT1_SYSTEM_FILE: u32 = 16; -pub const FILE_INITIATE_REPAIR_HINT1_NOT_IMPLEMENTED: u32 = 32; -pub const FILE_INITIATE_REPAIR_HINT1_UNABLE_TO_REPAIR: u32 = 64; -pub const FILE_INITIATE_REPAIR_HINT1_REPAIR_DISABLED: u32 = 128; -pub const FILE_INITIATE_REPAIR_HINT1_RECURSIVELY_CORRUPTED: u32 = 256; -pub const FILE_INITIATE_REPAIR_HINT1_ORPHAN_GENERATED: u32 = 512; -pub const FILE_INITIATE_REPAIR_HINT1_REPAIRED: u32 = 1024; -pub const FILE_INITIATE_REPAIR_HINT1_NOTHING_WRONG: u32 = 2048; -pub const FILE_INITIATE_REPAIR_HINT1_ATTRIBUTE_NOT_FOUND: u32 = 4096; -pub const FILE_INITIATE_REPAIR_HINT1_POTENTIAL_CROSSLINK: u32 = 8192; -pub const FILE_INITIATE_REPAIR_HINT1_STALE_INFORMATION: u32 = 16384; -pub const FILE_INITIATE_REPAIR_HINT1_CLUSTERS_ALREADY_IN_USE: u32 = 32768; -pub const FILE_INITIATE_REPAIR_HINT1_LCN_NOT_EXIST: u32 = 65536; -pub const FILE_INITIATE_REPAIR_HINT1_INVALID_RUN_LENGTH: u32 = 131072; -pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_NOT_ORPHAN: u32 = 262144; -pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_IS_BASE_RECORD: u32 = 524288; -pub const FILE_INITIATE_REPAIR_HINT1_INVALID_ARRAY_LENGTH_COUNT: u32 = 1048576; -pub const FILE_INITIATE_REPAIR_HINT1_SID_VALID: u32 = 2097152; -pub const FILE_INITIATE_REPAIR_HINT1_SID_MISMATCH: u32 = 4194304; -pub const FILE_INITIATE_REPAIR_HINT1_INVALID_PARENT: u32 = 8388608; -pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_NOT_IN_USE: u32 = 16777216; -pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_REUSED: u32 = 33554432; -pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_NOT_EXIST: u32 = 67108864; -pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_NOT_BASE_RECORD: u32 = 134217728; -pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_NOT_INDEX: u32 = 268435456; -pub const FILE_INITIATE_REPAIR_HINT1_VALID_INDEX_ENTRY: u32 = 536870912; -pub const FILE_INITIATE_REPAIR_HINT1_OUT_OF_GENERIC_NAMES: u32 = 1073741824; -pub const FILE_INITIATE_REPAIR_HINT1_OUT_OF_RESOURCE: u32 = 2147483648; -pub const FILE_INITIATE_REPAIR_HINT1_INVALID_LCN: u64 = 4294967296; -pub const FILE_INITIATE_REPAIR_HINT1_INVALID_VCN: u64 = 8589934592; -pub const FILE_INITIATE_REPAIR_HINT1_NAME_CONFLICT: u64 = 17179869184; -pub const FILE_INITIATE_REPAIR_HINT1_ORPHAN: u64 = 34359738368; -pub const FILE_INITIATE_REPAIR_HINT1_ATTRIBUTE_TOO_SMALL: u64 = 68719476736; -pub const FILE_INITIATE_REPAIR_HINT1_ATTRIBUTE_NON_RESIDENT: u64 = 137438953472; -pub const FILE_INITIATE_REPAIR_HINT1_DENY_DEFRAG: u64 = 274877906944; -pub const FILE_INITIATE_REPAIR_HINT1_PREVIOUS_PARENT_STILL_VALID: u64 = 549755813888; -pub const FILE_INITIATE_REPAIR_HINT1_INDEX_ENTRY_MISMATCH: u64 = 1099511627776; -pub const FILE_INITIATE_REPAIR_HINT1_INVALID_ORPHAN_RECOVERY_NAME: u64 = 2199023255552; -pub const FILE_INITIATE_REPAIR_HINT1_MULTIPLE_FILE_NAME_ATTRIBUTES: u64 = 4398046511104; -pub const TXFS_RM_FLAG_LOGGING_MODE: u32 = 1; -pub const TXFS_RM_FLAG_RENAME_RM: u32 = 2; -pub const TXFS_RM_FLAG_LOG_CONTAINER_COUNT_MAX: u32 = 4; -pub const TXFS_RM_FLAG_LOG_CONTAINER_COUNT_MIN: u32 = 8; -pub const TXFS_RM_FLAG_LOG_GROWTH_INCREMENT_NUM_CONTAINERS: u32 = 16; -pub const TXFS_RM_FLAG_LOG_GROWTH_INCREMENT_PERCENT: u32 = 32; -pub const TXFS_RM_FLAG_LOG_AUTO_SHRINK_PERCENTAGE: u32 = 64; -pub const TXFS_RM_FLAG_LOG_NO_CONTAINER_COUNT_MAX: u32 = 128; -pub const TXFS_RM_FLAG_LOG_NO_CONTAINER_COUNT_MIN: u32 = 256; -pub const TXFS_RM_FLAG_GROW_LOG: u32 = 1024; -pub const TXFS_RM_FLAG_SHRINK_LOG: u32 = 2048; -pub const TXFS_RM_FLAG_ENFORCE_MINIMUM_SIZE: u32 = 4096; -pub const TXFS_RM_FLAG_PRESERVE_CHANGES: u32 = 8192; -pub const TXFS_RM_FLAG_RESET_RM_AT_NEXT_START: u32 = 16384; -pub const TXFS_RM_FLAG_DO_NOT_RESET_RM_AT_NEXT_START: u32 = 32768; -pub const TXFS_RM_FLAG_PREFER_CONSISTENCY: u32 = 65536; -pub const TXFS_RM_FLAG_PREFER_AVAILABILITY: u32 = 131072; -pub const TXFS_LOGGING_MODE_SIMPLE: u32 = 1; -pub const TXFS_LOGGING_MODE_FULL: u32 = 2; -pub const TXFS_TRANSACTION_STATE_NONE: u32 = 0; -pub const TXFS_TRANSACTION_STATE_ACTIVE: u32 = 1; -pub const TXFS_TRANSACTION_STATE_PREPARED: u32 = 2; -pub const TXFS_TRANSACTION_STATE_NOTACTIVE: u32 = 3; -pub const TXFS_MODIFY_RM_VALID_FLAGS: u32 = 261631; -pub const TXFS_RM_STATE_NOT_STARTED: u32 = 0; -pub const TXFS_RM_STATE_STARTING: u32 = 1; -pub const TXFS_RM_STATE_ACTIVE: u32 = 2; -pub const TXFS_RM_STATE_SHUTTING_DOWN: u32 = 3; -pub const TXFS_QUERY_RM_INFORMATION_VALID_FLAGS: u32 = 246192; -pub const TXFS_ROLLFORWARD_REDO_FLAG_USE_LAST_REDO_LSN: u32 = 1; -pub const TXFS_ROLLFORWARD_REDO_FLAG_USE_LAST_VIRTUAL_CLOCK: u32 = 2; -pub const TXFS_ROLLFORWARD_REDO_VALID_FLAGS: u32 = 3; -pub const TXFS_START_RM_FLAG_LOG_CONTAINER_COUNT_MAX: u32 = 1; -pub const TXFS_START_RM_FLAG_LOG_CONTAINER_COUNT_MIN: u32 = 2; -pub const TXFS_START_RM_FLAG_LOG_CONTAINER_SIZE: u32 = 4; -pub const TXFS_START_RM_FLAG_LOG_GROWTH_INCREMENT_NUM_CONTAINERS: u32 = 8; -pub const TXFS_START_RM_FLAG_LOG_GROWTH_INCREMENT_PERCENT: u32 = 16; -pub const TXFS_START_RM_FLAG_LOG_AUTO_SHRINK_PERCENTAGE: u32 = 32; -pub const TXFS_START_RM_FLAG_LOG_NO_CONTAINER_COUNT_MAX: u32 = 64; -pub const TXFS_START_RM_FLAG_LOG_NO_CONTAINER_COUNT_MIN: u32 = 128; -pub const TXFS_START_RM_FLAG_RECOVER_BEST_EFFORT: u32 = 512; -pub const TXFS_START_RM_FLAG_LOGGING_MODE: u32 = 1024; -pub const TXFS_START_RM_FLAG_PRESERVE_CHANGES: u32 = 2048; -pub const TXFS_START_RM_FLAG_PREFER_CONSISTENCY: u32 = 4096; -pub const TXFS_START_RM_FLAG_PREFER_AVAILABILITY: u32 = 8192; -pub const TXFS_START_RM_VALID_FLAGS: u32 = 15999; -pub const TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY_FLAG_CREATED: u32 = 1; -pub const TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY_FLAG_DELETED: u32 = 2; -pub const TXFS_TRANSACTED_VERSION_NONTRANSACTED: u32 = 4294967294; -pub const TXFS_TRANSACTED_VERSION_UNCOMMITTED: u32 = 4294967295; -pub const TXFS_SAVEPOINT_SET: u32 = 1; -pub const TXFS_SAVEPOINT_ROLLBACK: u32 = 2; -pub const TXFS_SAVEPOINT_CLEAR: u32 = 4; -pub const TXFS_SAVEPOINT_CLEAR_ALL: u32 = 16; -pub const PERSISTENT_VOLUME_STATE_SHORT_NAME_CREATION_DISABLED: u32 = 1; -pub const PERSISTENT_VOLUME_STATE_VOLUME_SCRUB_DISABLED: u32 = 2; -pub const PERSISTENT_VOLUME_STATE_GLOBAL_METADATA_NO_SEEK_PENALTY: u32 = 4; -pub const PERSISTENT_VOLUME_STATE_LOCAL_METADATA_NO_SEEK_PENALTY: u32 = 8; -pub const PERSISTENT_VOLUME_STATE_NO_HEAT_GATHERING: u32 = 16; -pub const PERSISTENT_VOLUME_STATE_CONTAINS_BACKING_WIM: u32 = 32; -pub const PERSISTENT_VOLUME_STATE_BACKED_BY_WIM: u32 = 64; -pub const PERSISTENT_VOLUME_STATE_NO_WRITE_AUTO_TIERING: u32 = 128; -pub const PERSISTENT_VOLUME_STATE_TXF_DISABLED: u32 = 256; -pub const PERSISTENT_VOLUME_STATE_REALLOCATE_ALL_DATA_WRITES: u32 = 512; -pub const PERSISTENT_VOLUME_STATE_CHKDSK_RAN_ONCE: u32 = 1024; -pub const PERSISTENT_VOLUME_STATE_MODIFIED_BY_CHKDSK: u32 = 2048; -pub const PERSISTENT_VOLUME_STATE_DAX_FORMATTED: u32 = 4096; -pub const OPLOCK_LEVEL_CACHE_READ: u32 = 1; -pub const OPLOCK_LEVEL_CACHE_HANDLE: u32 = 2; -pub const OPLOCK_LEVEL_CACHE_WRITE: u32 = 4; -pub const REQUEST_OPLOCK_INPUT_FLAG_REQUEST: u32 = 1; -pub const REQUEST_OPLOCK_INPUT_FLAG_ACK: u32 = 2; -pub const REQUEST_OPLOCK_INPUT_FLAG_COMPLETE_ACK_ON_CLOSE: u32 = 4; -pub const REQUEST_OPLOCK_CURRENT_VERSION: u32 = 1; -pub const REQUEST_OPLOCK_OUTPUT_FLAG_ACK_REQUIRED: u32 = 1; -pub const REQUEST_OPLOCK_OUTPUT_FLAG_MODES_PROVIDED: u32 = 2; -pub const QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_HOST_VOLUMES: u32 = 1; -pub const QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_GUEST_VOLUMES: u32 = 2; -pub const SD_GLOBAL_CHANGE_TYPE_MACHINE_SID: u32 = 1; -pub const SD_GLOBAL_CHANGE_TYPE_QUERY_STATS: u32 = 65536; -pub const SD_GLOBAL_CHANGE_TYPE_ENUM_SDS: u32 = 131072; -pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_FLAG_PAGE_FILE: u32 = 1; -pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_FLAG_DENY_DEFRAG_SET: u32 = 2; -pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_FLAG_FS_SYSTEM_FILE: u32 = 4; -pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_FLAG_TXF_SYSTEM_FILE: u32 = 8; -pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_ATTRIBUTE_MASK: u32 = 4278190080; -pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_ATTRIBUTE_DATA: u32 = 16777216; -pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_ATTRIBUTE_INDEX: u32 = 33554432; -pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_ATTRIBUTE_SYSTEM: u32 = 50331648; -pub const FILE_TYPE_NOTIFICATION_FLAG_USAGE_BEGIN: u32 = 1; -pub const FILE_TYPE_NOTIFICATION_FLAG_USAGE_END: u32 = 2; -pub const CSV_MGMTLOCK_CHECK_VOLUME_REDIRECTED: u32 = 1; -pub const CSV_INVALID_DEVICE_NUMBER: u32 = 4294967295; -pub const CSV_QUERY_MDS_PATH_V2_VERSION_1: u32 = 1; -pub const CSV_QUERY_MDS_PATH_FLAG_STORAGE_ON_THIS_NODE_IS_CONNECTED: u32 = 1; -pub const CSV_QUERY_MDS_PATH_FLAG_CSV_DIRECT_IO_ENABLED: u32 = 2; -pub const CSV_QUERY_MDS_PATH_FLAG_SMB_BYPASS_CSV_ENABLED: u32 = 4; -pub const QUERY_FILE_LAYOUT_RESTART: u32 = 1; -pub const QUERY_FILE_LAYOUT_INCLUDE_NAMES: u32 = 2; -pub const QUERY_FILE_LAYOUT_INCLUDE_STREAMS: u32 = 4; -pub const QUERY_FILE_LAYOUT_INCLUDE_EXTENTS: u32 = 8; -pub const QUERY_FILE_LAYOUT_INCLUDE_EXTRA_INFO: u32 = 16; -pub const QUERY_FILE_LAYOUT_INCLUDE_STREAMS_WITH_NO_CLUSTERS_ALLOCATED: u32 = 32; -pub const QUERY_FILE_LAYOUT_INCLUDE_FULL_PATH_IN_NAMES: u32 = 64; -pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION: u32 = 128; -pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_DSC_ATTRIBUTE: u32 = 256; -pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_TXF_ATTRIBUTE: u32 = 512; -pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_EFS_ATTRIBUTE: u32 = 1024; -pub const QUERY_FILE_LAYOUT_INCLUDE_ONLY_FILES_WITH_SPECIFIC_ATTRIBUTES: u32 = 2048; -pub const QUERY_FILE_LAYOUT_INCLUDE_FILES_WITH_DSC_ATTRIBUTE: u32 = 4096; -pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_DATA_ATTRIBUTE: u32 = 8192; -pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_REPARSE_ATTRIBUTE: u32 = 16384; -pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_EA_ATTRIBUTE: u32 = 32768; -pub const QUERY_FILE_LAYOUT_SINGLE_INSTANCED: u32 = 1; -pub const FILE_LAYOUT_NAME_ENTRY_PRIMARY: u32 = 1; -pub const FILE_LAYOUT_NAME_ENTRY_DOS: u32 = 2; -pub const STREAM_LAYOUT_ENTRY_IMMOVABLE: u32 = 1; -pub const STREAM_LAYOUT_ENTRY_PINNED: u32 = 2; -pub const STREAM_LAYOUT_ENTRY_RESIDENT: u32 = 4; -pub const STREAM_LAYOUT_ENTRY_NO_CLUSTERS_ALLOCATED: u32 = 8; -pub const STREAM_LAYOUT_ENTRY_HAS_INFORMATION: u32 = 16; -pub const STREAM_EXTENT_ENTRY_AS_RETRIEVAL_POINTERS: u32 = 1; -pub const STREAM_EXTENT_ENTRY_ALL_EXTENTS: u32 = 2; -pub const CHECKSUM_TYPE_UNCHANGED: i32 = -1; -pub const CHECKSUM_TYPE_NONE: u32 = 0; -pub const CHECKSUM_TYPE_CRC32: u32 = 1; -pub const CHECKSUM_TYPE_CRC64: u32 = 2; -pub const CHECKSUM_TYPE_ECC: u32 = 3; -pub const CHECKSUM_TYPE_FIRST_UNUSED_TYPE: u32 = 4; -pub const FSCTL_INTEGRITY_FLAG_CHECKSUM_ENFORCEMENT_OFF: u32 = 1; -pub const OFFLOAD_READ_FLAG_ALL_ZERO_BEYOND_CURRENT_RANGE: u32 = 1; -pub const SET_PURGE_FAILURE_MODE_ENABLED: u32 = 1; -pub const SET_PURGE_FAILURE_MODE_DISABLED: u32 = 2; -pub const FILE_REGION_USAGE_VALID_CACHED_DATA: u32 = 1; -pub const FILE_REGION_USAGE_VALID_NONCACHED_DATA: u32 = 2; -pub const FILE_REGION_USAGE_OTHER_PAGE_ALIGNMENT: u32 = 4; -pub const FILE_REGION_USAGE_LARGE_PAGE_ALIGNMENT: u32 = 8; -pub const FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT: u32 = 16; -pub const FILE_REGION_USAGE_QUERY_ALIGNMENT: u32 = 24; -pub const VALID_WRITE_USN_REASON_MASK: u32 = 2147483649; -pub const FILE_STORAGE_TIER_NAME_LENGTH: u32 = 256; -pub const FILE_STORAGE_TIER_DESCRIPTION_LENGTH: u32 = 512; -pub const FILE_STORAGE_TIER_FLAG_NO_SEEK_PENALTY: u32 = 131072; -pub const FILE_STORAGE_TIER_FLAG_WRITE_BACK_CACHE: u32 = 2097152; -pub const FILE_STORAGE_TIER_FLAG_READ_CACHE: u32 = 4194304; -pub const FILE_STORAGE_TIER_FLAG_PARITY: u32 = 8388608; -pub const FILE_STORAGE_TIER_FLAG_SMR: u32 = 16777216; -pub const QUERY_STORAGE_CLASSES_FLAGS_MEASURE_WRITE: u32 = 2147483648; -pub const QUERY_STORAGE_CLASSES_FLAGS_MEASURE_READ: u32 = 1073741824; -pub const QUERY_STORAGE_CLASSES_FLAGS_NO_DEFRAG_VOLUME: u32 = 536870912; -pub const QUERY_FILE_LAYOUT_REPARSE_DATA_INVALID: u32 = 1; -pub const QUERY_FILE_LAYOUT_REPARSE_TAG_INVALID: u32 = 2; -pub const DUPLICATE_EXTENTS_DATA_EX_SOURCE_ATOMIC: u32 = 1; -pub const DUPLICATE_EXTENTS_DATA_EX_ASYNC: u32 = 2; -pub const REFS_SMR_VOLUME_INFO_OUTPUT_VERSION_V0: u32 = 0; -pub const REFS_SMR_VOLUME_INFO_OUTPUT_VERSION_V1: u32 = 1; -pub const REFS_SMR_VOLUME_GC_PARAMETERS_VERSION_V1: u32 = 1; -pub const STREAMS_INVALID_ID: u32 = 0; -pub const STREAMS_MAX_ID: u32 = 65535; -pub const STREAMS_ASSOCIATE_ID_CLEAR: u32 = 1; -pub const STREAMS_ASSOCIATE_ID_SET: u32 = 2; -pub const DAX_ALLOC_ALIGNMENT_FLAG_MANDATORY: u32 = 1; -pub const DAX_ALLOC_ALIGNMENT_FLAG_FALLBACK_SPECIFIED: u32 = 2; -pub const WOF_CURRENT_VERSION: u32 = 1; -pub const WOF_PROVIDER_WIM: u32 = 1; -pub const WOF_PROVIDER_FILE: u32 = 2; -pub const WOF_PROVIDER_CLOUD: u32 = 3; -pub const WIM_PROVIDER_HASH_SIZE: u32 = 20; -pub const WIM_PROVIDER_CURRENT_VERSION: u32 = 1; -pub const WIM_PROVIDER_EXTERNAL_FLAG_NOT_ACTIVE: u32 = 1; -pub const WIM_PROVIDER_EXTERNAL_FLAG_SUSPENDED: u32 = 2; -pub const WIM_BOOT_OS_WIM: u32 = 1; -pub const WIM_BOOT_NOT_OS_WIM: u32 = 0; -pub const FILE_PROVIDER_CURRENT_VERSION: u32 = 1; -pub const FILE_PROVIDER_SINGLE_FILE: u32 = 1; -pub const FILE_PROVIDER_COMPRESSION_XPRESS4K: u32 = 0; -pub const FILE_PROVIDER_COMPRESSION_LZX: u32 = 1; -pub const FILE_PROVIDER_COMPRESSION_XPRESS8K: u32 = 2; -pub const FILE_PROVIDER_COMPRESSION_XPRESS16K: u32 = 3; -pub const FILE_PROVIDER_COMPRESSION_MAXIMUM: u32 = 4; -pub const FILE_PROVIDER_FLAG_COMPRESS_ON_WRITE: u32 = 1; -pub const CONTAINER_VOLUME_STATE_HOSTING_CONTAINER: u32 = 1; -pub const CONTAINER_ROOT_INFO_FLAG_SCRATCH_ROOT: u32 = 1; -pub const CONTAINER_ROOT_INFO_FLAG_LAYER_ROOT: u32 = 2; -pub const CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_ROOT: u32 = 4; -pub const CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_TARGET_ROOT: u32 = 8; -pub const CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_EXCEPTION_ROOT: u32 = 16; -pub const CONTAINER_ROOT_INFO_FLAG_BIND_ROOT: u32 = 32; -pub const CONTAINER_ROOT_INFO_FLAG_BIND_TARGET_ROOT: u32 = 64; -pub const CONTAINER_ROOT_INFO_FLAG_BIND_EXCEPTION_ROOT: u32 = 128; -pub const CONTAINER_ROOT_INFO_FLAG_BIND_DO_NOT_MAP_NAME: u32 = 256; -pub const CONTAINER_ROOT_INFO_FLAG_UNION_LAYER_ROOT: u32 = 512; -pub const CONTAINER_ROOT_INFO_VALID_FLAGS: u32 = 1023; -pub const PROJFS_PROTOCOL_VERSION: u32 = 3; -pub const IOCTL_VOLUME_BASE: u32 = 86; -pub const EFS_TRACKED_OFFSET_HEADER_FLAG: u32 = 1; -pub const SPACES_TRACKED_OFFSET_HEADER_FLAG: u32 = 2; -pub const SCARD_ATR_LENGTH: u32 = 33; -pub const SCARD_PROTOCOL_UNDEFINED: u32 = 0; -pub const SCARD_PROTOCOL_T0: u32 = 1; -pub const SCARD_PROTOCOL_T1: u32 = 2; -pub const SCARD_PROTOCOL_RAW: u32 = 65536; -pub const SCARD_PROTOCOL_Tx: u32 = 3; -pub const SCARD_PROTOCOL_DEFAULT: u32 = 2147483648; -pub const SCARD_PROTOCOL_OPTIMAL: u32 = 0; -pub const SCARD_POWER_DOWN: u32 = 0; -pub const SCARD_COLD_RESET: u32 = 1; -pub const SCARD_WARM_RESET: u32 = 2; -pub const MAXIMUM_ATTR_STRING_LENGTH: u32 = 32; -pub const MAXIMUM_SMARTCARD_READERS: u32 = 10; -pub const SCARD_CLASS_VENDOR_INFO: u32 = 1; -pub const SCARD_CLASS_COMMUNICATIONS: u32 = 2; -pub const SCARD_CLASS_PROTOCOL: u32 = 3; -pub const SCARD_CLASS_POWER_MGMT: u32 = 4; -pub const SCARD_CLASS_SECURITY: u32 = 5; -pub const SCARD_CLASS_MECHANICAL: u32 = 6; -pub const SCARD_CLASS_VENDOR_DEFINED: u32 = 7; -pub const SCARD_CLASS_IFD_PROTOCOL: u32 = 8; -pub const SCARD_CLASS_ICC_STATE: u32 = 9; -pub const SCARD_CLASS_PERF: u32 = 32766; -pub const SCARD_CLASS_SYSTEM: u32 = 32767; -pub const SCARD_T0_HEADER_LENGTH: u32 = 7; -pub const SCARD_T0_CMD_LENGTH: u32 = 5; -pub const SCARD_T1_PROLOGUE_LENGTH: u32 = 3; -pub const SCARD_T1_EPILOGUE_LENGTH: u32 = 2; -pub const SCARD_T1_EPILOGUE_LENGTH_LRC: u32 = 1; -pub const SCARD_T1_MAX_IFS: u32 = 254; -pub const SCARD_UNKNOWN: u32 = 0; -pub const SCARD_ABSENT: u32 = 1; -pub const SCARD_PRESENT: u32 = 2; -pub const SCARD_SWALLOWED: u32 = 3; -pub const SCARD_POWERED: u32 = 4; -pub const SCARD_NEGOTIABLE: u32 = 5; -pub const SCARD_SPECIFIC: u32 = 6; -pub const SCARD_READER_SWALLOWS: u32 = 1; -pub const SCARD_READER_EJECTS: u32 = 2; -pub const SCARD_READER_CONFISCATES: u32 = 4; -pub const SCARD_READER_CONTACTLESS: u32 = 8; -pub const SCARD_READER_TYPE_SERIAL: u32 = 1; -pub const SCARD_READER_TYPE_PARALELL: u32 = 2; -pub const SCARD_READER_TYPE_KEYBOARD: u32 = 4; -pub const SCARD_READER_TYPE_SCSI: u32 = 8; -pub const SCARD_READER_TYPE_IDE: u32 = 16; -pub const SCARD_READER_TYPE_USB: u32 = 32; -pub const SCARD_READER_TYPE_PCMCIA: u32 = 64; -pub const SCARD_READER_TYPE_TPM: u32 = 128; -pub const SCARD_READER_TYPE_NFC: u32 = 256; -pub const SCARD_READER_TYPE_UICC: u32 = 512; -pub const SCARD_READER_TYPE_NGC: u32 = 1024; -pub const SCARD_READER_TYPE_EMBEDDEDSE: u32 = 2048; -pub const SCARD_READER_TYPE_VENDOR: u32 = 240; -pub const SCARD_SCOPE_USER: u32 = 0; -pub const SCARD_SCOPE_TERMINAL: u32 = 1; -pub const SCARD_SCOPE_SYSTEM: u32 = 2; -pub const SCARD_PROVIDER_PRIMARY: u32 = 1; -pub const SCARD_PROVIDER_CSP: u32 = 2; -pub const SCARD_PROVIDER_KSP: u32 = 3; -pub const SCARD_STATE_UNAWARE: u32 = 0; -pub const SCARD_STATE_IGNORE: u32 = 1; -pub const SCARD_STATE_CHANGED: u32 = 2; -pub const SCARD_STATE_UNKNOWN: u32 = 4; -pub const SCARD_STATE_UNAVAILABLE: u32 = 8; -pub const SCARD_STATE_EMPTY: u32 = 16; -pub const SCARD_STATE_PRESENT: u32 = 32; -pub const SCARD_STATE_ATRMATCH: u32 = 64; -pub const SCARD_STATE_EXCLUSIVE: u32 = 128; -pub const SCARD_STATE_INUSE: u32 = 256; -pub const SCARD_STATE_MUTE: u32 = 512; -pub const SCARD_STATE_UNPOWERED: u32 = 1024; -pub const SCARD_SHARE_EXCLUSIVE: u32 = 1; -pub const SCARD_SHARE_SHARED: u32 = 2; -pub const SCARD_SHARE_DIRECT: u32 = 3; -pub const SCARD_LEAVE_CARD: u32 = 0; -pub const SCARD_RESET_CARD: u32 = 1; -pub const SCARD_UNPOWER_CARD: u32 = 2; -pub const SCARD_EJECT_CARD: u32 = 3; -pub const SC_DLG_MINIMAL_UI: u32 = 1; -pub const SC_DLG_NO_UI: u32 = 2; -pub const SC_DLG_FORCE_UI: u32 = 4; -pub const SCERR_NOCARDNAME: u32 = 16384; -pub const SCERR_NOGUIDS: u32 = 32768; -pub const SCARD_AUDIT_CHV_FAILURE: u32 = 0; -pub const SCARD_AUDIT_CHV_SUCCESS: u32 = 1; -pub const MAXPROPPAGES: u32 = 100; -pub const PSP_DEFAULT: u32 = 0; -pub const PSP_DLGINDIRECT: u32 = 1; -pub const PSP_USEHICON: u32 = 2; -pub const PSP_USEICONID: u32 = 4; -pub const PSP_USETITLE: u32 = 8; -pub const PSP_RTLREADING: u32 = 16; -pub const PSP_HASHELP: u32 = 32; -pub const PSP_USEREFPARENT: u32 = 64; -pub const PSP_USECALLBACK: u32 = 128; -pub const PSP_PREMATURE: u32 = 1024; -pub const PSP_HIDEHEADER: u32 = 2048; -pub const PSP_USEHEADERTITLE: u32 = 4096; -pub const PSP_USEHEADERSUBTITLE: u32 = 8192; -pub const PSP_USEFUSIONCONTEXT: u32 = 16384; -pub const PSPCB_ADDREF: u32 = 0; -pub const PSPCB_RELEASE: u32 = 1; -pub const PSPCB_CREATE: u32 = 2; -pub const PSH_DEFAULT: u32 = 0; -pub const PSH_PROPTITLE: u32 = 1; -pub const PSH_USEHICON: u32 = 2; -pub const PSH_USEICONID: u32 = 4; -pub const PSH_PROPSHEETPAGE: u32 = 8; -pub const PSH_WIZARDHASFINISH: u32 = 16; -pub const PSH_WIZARD: u32 = 32; -pub const PSH_USEPSTARTPAGE: u32 = 64; -pub const PSH_NOAPPLYNOW: u32 = 128; -pub const PSH_USECALLBACK: u32 = 256; -pub const PSH_HASHELP: u32 = 512; -pub const PSH_MODELESS: u32 = 1024; -pub const PSH_RTLREADING: u32 = 2048; -pub const PSH_WIZARDCONTEXTHELP: u32 = 4096; -pub const PSH_WIZARD97: u32 = 16777216; -pub const PSH_WATERMARK: u32 = 32768; -pub const PSH_USEHBMWATERMARK: u32 = 65536; -pub const PSH_USEHPLWATERMARK: u32 = 131072; -pub const PSH_STRETCHWATERMARK: u32 = 262144; -pub const PSH_HEADER: u32 = 524288; -pub const PSH_USEHBMHEADER: u32 = 1048576; -pub const PSH_USEPAGELANG: u32 = 2097152; -pub const PSH_WIZARD_LITE: u32 = 4194304; -pub const PSH_NOCONTEXTHELP: u32 = 33554432; -pub const PSH_AEROWIZARD: u32 = 16384; -pub const PSH_RESIZABLE: u32 = 67108864; -pub const PSH_HEADERBITMAP: u32 = 134217728; -pub const PSH_NOMARGIN: u32 = 268435456; -pub const PSCB_INITIALIZED: u32 = 1; -pub const PSCB_PRECREATE: u32 = 2; -pub const PSCB_BUTTONPRESSED: u32 = 3; -pub const PSN_FIRST: i32 = -200; -pub const PSN_LAST: i32 = -299; -pub const PSN_SETACTIVE: i32 = -200; -pub const PSN_KILLACTIVE: i32 = -201; -pub const PSN_APPLY: i32 = -202; -pub const PSN_RESET: i32 = -203; -pub const PSN_HELP: i32 = -205; -pub const PSN_WIZBACK: i32 = -206; -pub const PSN_WIZNEXT: i32 = -207; -pub const PSN_WIZFINISH: i32 = -208; -pub const PSN_QUERYCANCEL: i32 = -209; -pub const PSN_GETOBJECT: i32 = -210; -pub const PSN_TRANSLATEACCELERATOR: i32 = -212; -pub const PSN_QUERYINITIALFOCUS: i32 = -213; -pub const PSNRET_NOERROR: u32 = 0; -pub const PSNRET_INVALID: u32 = 1; -pub const PSNRET_INVALID_NOCHANGEPAGE: u32 = 2; -pub const PSNRET_MESSAGEHANDLED: u32 = 3; -pub const PSM_SETCURSEL: u32 = 1125; -pub const PSM_REMOVEPAGE: u32 = 1126; -pub const PSM_ADDPAGE: u32 = 1127; -pub const PSM_CHANGED: u32 = 1128; -pub const PSM_RESTARTWINDOWS: u32 = 1129; -pub const PSM_REBOOTSYSTEM: u32 = 1130; -pub const PSM_CANCELTOCLOSE: u32 = 1131; -pub const PSM_QUERYSIBLINGS: u32 = 1132; -pub const PSM_UNCHANGED: u32 = 1133; -pub const PSM_APPLY: u32 = 1134; -pub const PSM_SETTITLEA: u32 = 1135; -pub const PSM_SETTITLEW: u32 = 1144; -pub const PSM_SETTITLE: u32 = 1135; -pub const PSM_SETWIZBUTTONS: u32 = 1136; -pub const PSWIZB_BACK: u32 = 1; -pub const PSWIZB_NEXT: u32 = 2; -pub const PSWIZB_FINISH: u32 = 4; -pub const PSWIZB_DISABLEDFINISH: u32 = 8; -pub const PSWIZBF_ELEVATIONREQUIRED: u32 = 1; -pub const PSWIZB_CANCEL: u32 = 16; -pub const PSM_PRESSBUTTON: u32 = 1137; -pub const PSBTN_BACK: u32 = 0; -pub const PSBTN_NEXT: u32 = 1; -pub const PSBTN_FINISH: u32 = 2; -pub const PSBTN_OK: u32 = 3; -pub const PSBTN_APPLYNOW: u32 = 4; -pub const PSBTN_CANCEL: u32 = 5; -pub const PSBTN_HELP: u32 = 6; -pub const PSBTN_MAX: u32 = 6; -pub const PSM_SETCURSELID: u32 = 1138; -pub const PSM_SETFINISHTEXTA: u32 = 1139; -pub const PSM_SETFINISHTEXTW: u32 = 1145; -pub const PSM_SETFINISHTEXT: u32 = 1139; -pub const PSM_GETTABCONTROL: u32 = 1140; -pub const PSM_ISDIALOGMESSAGE: u32 = 1141; -pub const PSM_GETCURRENTPAGEHWND: u32 = 1142; -pub const PSM_INSERTPAGE: u32 = 1143; -pub const PSM_SETHEADERTITLEA: u32 = 1149; -pub const PSM_SETHEADERTITLEW: u32 = 1150; -pub const PSM_SETHEADERTITLE: u32 = 1149; -pub const PSM_SETHEADERSUBTITLEA: u32 = 1151; -pub const PSM_SETHEADERSUBTITLEW: u32 = 1152; -pub const PSM_SETHEADERSUBTITLE: u32 = 1151; -pub const PSM_HWNDTOINDEX: u32 = 1153; -pub const PSM_INDEXTOHWND: u32 = 1154; -pub const PSM_PAGETOINDEX: u32 = 1155; -pub const PSM_INDEXTOPAGE: u32 = 1156; -pub const PSM_IDTOINDEX: u32 = 1157; -pub const PSM_INDEXTOID: u32 = 1158; -pub const PSM_GETRESULT: u32 = 1159; -pub const PSM_RECALCPAGESIZES: u32 = 1160; -pub const PSM_SETNEXTTEXTW: u32 = 1161; -pub const PSM_SETNEXTTEXT: u32 = 1161; -pub const PSWIZB_SHOW: u32 = 0; -pub const PSWIZB_RESTORE: u32 = 1; -pub const PSM_SHOWWIZBUTTONS: u32 = 1162; -pub const PSM_ENABLEWIZBUTTONS: u32 = 1163; -pub const PSM_SETBUTTONTEXTW: u32 = 1164; -pub const PSM_SETBUTTONTEXT: u32 = 1164; -pub const ID_PSRESTARTWINDOWS: u32 = 2; -pub const ID_PSREBOOTSYSTEM: u32 = 3; -pub const WIZ_CXDLG: u32 = 276; -pub const WIZ_CYDLG: u32 = 140; -pub const WIZ_CXBMP: u32 = 80; -pub const WIZ_BODYX: u32 = 92; -pub const WIZ_BODYCX: u32 = 184; -pub const PROP_SM_CXDLG: u32 = 212; -pub const PROP_SM_CYDLG: u32 = 188; -pub const PROP_MED_CXDLG: u32 = 227; -pub const PROP_MED_CYDLG: u32 = 215; -pub const PROP_LG_CXDLG: u32 = 252; -pub const PROP_LG_CYDLG: u32 = 218; -pub const DSPRINT_PUBLISH: u32 = 1; -pub const DSPRINT_UPDATE: u32 = 2; -pub const DSPRINT_UNPUBLISH: u32 = 4; -pub const DSPRINT_REPUBLISH: u32 = 8; -pub const DSPRINT_PENDING: u32 = 2147483648; -pub const PRINTER_CONTROL_PAUSE: u32 = 1; -pub const PRINTER_CONTROL_RESUME: u32 = 2; -pub const PRINTER_CONTROL_PURGE: u32 = 3; -pub const PRINTER_CONTROL_SET_STATUS: u32 = 4; -pub const PRINTER_STATUS_PAUSED: u32 = 1; -pub const PRINTER_STATUS_ERROR: u32 = 2; -pub const PRINTER_STATUS_PENDING_DELETION: u32 = 4; -pub const PRINTER_STATUS_PAPER_JAM: u32 = 8; -pub const PRINTER_STATUS_PAPER_OUT: u32 = 16; -pub const PRINTER_STATUS_MANUAL_FEED: u32 = 32; -pub const PRINTER_STATUS_PAPER_PROBLEM: u32 = 64; -pub const PRINTER_STATUS_OFFLINE: u32 = 128; -pub const PRINTER_STATUS_IO_ACTIVE: u32 = 256; -pub const PRINTER_STATUS_BUSY: u32 = 512; -pub const PRINTER_STATUS_PRINTING: u32 = 1024; -pub const PRINTER_STATUS_OUTPUT_BIN_FULL: u32 = 2048; -pub const PRINTER_STATUS_NOT_AVAILABLE: u32 = 4096; -pub const PRINTER_STATUS_WAITING: u32 = 8192; -pub const PRINTER_STATUS_PROCESSING: u32 = 16384; -pub const PRINTER_STATUS_INITIALIZING: u32 = 32768; -pub const PRINTER_STATUS_WARMING_UP: u32 = 65536; -pub const PRINTER_STATUS_TONER_LOW: u32 = 131072; -pub const PRINTER_STATUS_NO_TONER: u32 = 262144; -pub const PRINTER_STATUS_PAGE_PUNT: u32 = 524288; -pub const PRINTER_STATUS_USER_INTERVENTION: u32 = 1048576; -pub const PRINTER_STATUS_OUT_OF_MEMORY: u32 = 2097152; -pub const PRINTER_STATUS_DOOR_OPEN: u32 = 4194304; -pub const PRINTER_STATUS_SERVER_UNKNOWN: u32 = 8388608; -pub const PRINTER_STATUS_POWER_SAVE: u32 = 16777216; -pub const PRINTER_STATUS_SERVER_OFFLINE: u32 = 33554432; -pub const PRINTER_STATUS_DRIVER_UPDATE_NEEDED: u32 = 67108864; -pub const PRINTER_ATTRIBUTE_QUEUED: u32 = 1; -pub const PRINTER_ATTRIBUTE_DIRECT: u32 = 2; -pub const PRINTER_ATTRIBUTE_DEFAULT: u32 = 4; -pub const PRINTER_ATTRIBUTE_SHARED: u32 = 8; -pub const PRINTER_ATTRIBUTE_NETWORK: u32 = 16; -pub const PRINTER_ATTRIBUTE_HIDDEN: u32 = 32; -pub const PRINTER_ATTRIBUTE_LOCAL: u32 = 64; -pub const PRINTER_ATTRIBUTE_ENABLE_DEVQ: u32 = 128; -pub const PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS: u32 = 256; -pub const PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST: u32 = 512; -pub const PRINTER_ATTRIBUTE_WORK_OFFLINE: u32 = 1024; -pub const PRINTER_ATTRIBUTE_ENABLE_BIDI: u32 = 2048; -pub const PRINTER_ATTRIBUTE_RAW_ONLY: u32 = 4096; -pub const PRINTER_ATTRIBUTE_PUBLISHED: u32 = 8192; -pub const PRINTER_ATTRIBUTE_FAX: u32 = 16384; -pub const PRINTER_ATTRIBUTE_TS: u32 = 32768; -pub const PRINTER_ATTRIBUTE_PUSHED_USER: u32 = 131072; -pub const PRINTER_ATTRIBUTE_PUSHED_MACHINE: u32 = 262144; -pub const PRINTER_ATTRIBUTE_MACHINE: u32 = 524288; -pub const PRINTER_ATTRIBUTE_FRIENDLY_NAME: u32 = 1048576; -pub const PRINTER_ATTRIBUTE_TS_GENERIC_DRIVER: u32 = 2097152; -pub const PRINTER_ATTRIBUTE_PER_USER: u32 = 4194304; -pub const PRINTER_ATTRIBUTE_ENTERPRISE_CLOUD: u32 = 8388608; -pub const NO_PRIORITY: u32 = 0; -pub const MAX_PRIORITY: u32 = 99; -pub const MIN_PRIORITY: u32 = 1; -pub const DEF_PRIORITY: u32 = 1; -pub const JOB_CONTROL_PAUSE: u32 = 1; -pub const JOB_CONTROL_RESUME: u32 = 2; -pub const JOB_CONTROL_CANCEL: u32 = 3; -pub const JOB_CONTROL_RESTART: u32 = 4; -pub const JOB_CONTROL_DELETE: u32 = 5; -pub const JOB_CONTROL_SENT_TO_PRINTER: u32 = 6; -pub const JOB_CONTROL_LAST_PAGE_EJECTED: u32 = 7; -pub const JOB_CONTROL_RETAIN: u32 = 8; -pub const JOB_CONTROL_RELEASE: u32 = 9; -pub const JOB_CONTROL_SEND_TOAST: u32 = 10; -pub const JOB_STATUS_PAUSED: u32 = 1; -pub const JOB_STATUS_ERROR: u32 = 2; -pub const JOB_STATUS_DELETING: u32 = 4; -pub const JOB_STATUS_SPOOLING: u32 = 8; -pub const JOB_STATUS_PRINTING: u32 = 16; -pub const JOB_STATUS_OFFLINE: u32 = 32; -pub const JOB_STATUS_PAPEROUT: u32 = 64; -pub const JOB_STATUS_PRINTED: u32 = 128; -pub const JOB_STATUS_DELETED: u32 = 256; -pub const JOB_STATUS_BLOCKED_DEVQ: u32 = 512; -pub const JOB_STATUS_USER_INTERVENTION: u32 = 1024; -pub const JOB_STATUS_RESTART: u32 = 2048; -pub const JOB_STATUS_COMPLETE: u32 = 4096; -pub const JOB_STATUS_RETAINED: u32 = 8192; -pub const JOB_STATUS_RENDERING_LOCALLY: u32 = 16384; -pub const JOB_POSITION_UNSPECIFIED: u32 = 0; -pub const PRINTER_DRIVER_PACKAGE_AWARE: u32 = 1; -pub const PRINTER_DRIVER_XPS: u32 = 2; -pub const PRINTER_DRIVER_SANDBOX_ENABLED: u32 = 4; -pub const PRINTER_DRIVER_CLASS: u32 = 8; -pub const PRINTER_DRIVER_DERIVED: u32 = 16; -pub const PRINTER_DRIVER_NOT_SHAREABLE: u32 = 32; -pub const PRINTER_DRIVER_CATEGORY_FAX: u32 = 64; -pub const PRINTER_DRIVER_CATEGORY_FILE: u32 = 128; -pub const PRINTER_DRIVER_CATEGORY_VIRTUAL: u32 = 256; -pub const PRINTER_DRIVER_CATEGORY_SERVICE: u32 = 512; -pub const PRINTER_DRIVER_SOFT_RESET_REQUIRED: u32 = 1024; -pub const PRINTER_DRIVER_SANDBOX_DISABLED: u32 = 2048; -pub const PRINTER_DRIVER_CATEGORY_3D: u32 = 4096; -pub const PRINTER_DRIVER_CATEGORY_CLOUD: u32 = 8192; -pub const DRIVER_KERNELMODE: u32 = 1; -pub const DRIVER_USERMODE: u32 = 2; -pub const DPD_DELETE_UNUSED_FILES: u32 = 1; -pub const DPD_DELETE_SPECIFIC_VERSION: u32 = 2; -pub const DPD_DELETE_ALL_FILES: u32 = 4; -pub const APD_STRICT_UPGRADE: u32 = 1; -pub const APD_STRICT_DOWNGRADE: u32 = 2; -pub const APD_COPY_ALL_FILES: u32 = 4; -pub const APD_COPY_NEW_FILES: u32 = 8; -pub const APD_COPY_FROM_DIRECTORY: u32 = 16; -pub const STRING_NONE: u32 = 1; -pub const STRING_MUIDLL: u32 = 2; -pub const STRING_LANGPAIR: u32 = 4; -pub const MAX_FORM_KEYWORD_LENGTH: u32 = 64; -pub const DI_CHANNEL: u32 = 1; -pub const DI_READ_SPOOL_JOB: u32 = 3; -pub const DI_MEMORYMAP_WRITE: u32 = 1; -pub const FORM_USER: u32 = 0; -pub const FORM_BUILTIN: u32 = 1; -pub const FORM_PRINTER: u32 = 2; -pub const NORMAL_PRINT: u32 = 0; -pub const REVERSE_PRINT: u32 = 1; -pub const PPCAPS_RIGHT_THEN_DOWN: u32 = 1; -pub const PPCAPS_DOWN_THEN_RIGHT: u32 = 2; -pub const PPCAPS_LEFT_THEN_DOWN: u32 = 4; -pub const PPCAPS_DOWN_THEN_LEFT: u32 = 8; -pub const PPCAPS_BORDER_PRINT: u32 = 1; -pub const PPCAPS_BOOKLET_EDGE: u32 = 1; -pub const PPCAPS_REVERSE_PAGES_FOR_REVERSE_DUPLEX: u32 = 1; -pub const PPCAPS_DONT_SEND_EXTRA_PAGES_FOR_DUPLEX: u32 = 2; -pub const PPCAPS_SQUARE_SCALING: u32 = 1; -pub const PORT_TYPE_WRITE: u32 = 1; -pub const PORT_TYPE_READ: u32 = 2; -pub const PORT_TYPE_REDIRECTED: u32 = 4; -pub const PORT_TYPE_NET_ATTACHED: u32 = 8; -pub const PORT_STATUS_TYPE_ERROR: u32 = 1; -pub const PORT_STATUS_TYPE_WARNING: u32 = 2; -pub const PORT_STATUS_TYPE_INFO: u32 = 3; -pub const PORT_STATUS_OFFLINE: u32 = 1; -pub const PORT_STATUS_PAPER_JAM: u32 = 2; -pub const PORT_STATUS_PAPER_OUT: u32 = 3; -pub const PORT_STATUS_OUTPUT_BIN_FULL: u32 = 4; -pub const PORT_STATUS_PAPER_PROBLEM: u32 = 5; -pub const PORT_STATUS_NO_TONER: u32 = 6; -pub const PORT_STATUS_DOOR_OPEN: u32 = 7; -pub const PORT_STATUS_USER_INTERVENTION: u32 = 8; -pub const PORT_STATUS_OUT_OF_MEMORY: u32 = 9; -pub const PORT_STATUS_TONER_LOW: u32 = 10; -pub const PORT_STATUS_WARMING_UP: u32 = 11; -pub const PORT_STATUS_POWER_SAVE: u32 = 12; -pub const PRINTER_ENUM_DEFAULT: u32 = 1; -pub const PRINTER_ENUM_LOCAL: u32 = 2; -pub const PRINTER_ENUM_CONNECTIONS: u32 = 4; -pub const PRINTER_ENUM_FAVORITE: u32 = 4; -pub const PRINTER_ENUM_NAME: u32 = 8; -pub const PRINTER_ENUM_REMOTE: u32 = 16; -pub const PRINTER_ENUM_SHARED: u32 = 32; -pub const PRINTER_ENUM_NETWORK: u32 = 64; -pub const PRINTER_ENUM_EXPAND: u32 = 16384; -pub const PRINTER_ENUM_CONTAINER: u32 = 32768; -pub const PRINTER_ENUM_ICONMASK: u32 = 16711680; -pub const PRINTER_ENUM_ICON1: u32 = 65536; -pub const PRINTER_ENUM_ICON2: u32 = 131072; -pub const PRINTER_ENUM_ICON3: u32 = 262144; -pub const PRINTER_ENUM_ICON4: u32 = 524288; -pub const PRINTER_ENUM_ICON5: u32 = 1048576; -pub const PRINTER_ENUM_ICON6: u32 = 2097152; -pub const PRINTER_ENUM_ICON7: u32 = 4194304; -pub const PRINTER_ENUM_ICON8: u32 = 8388608; -pub const PRINTER_ENUM_HIDE: u32 = 16777216; -pub const PRINTER_ENUM_CATEGORY_ALL: u32 = 33554432; -pub const PRINTER_ENUM_CATEGORY_3D: u32 = 67108864; -pub const SPOOL_FILE_PERSISTENT: u32 = 1; -pub const SPOOL_FILE_TEMPORARY: u32 = 2; -pub const PRINTER_NOTIFY_TYPE: u32 = 0; -pub const JOB_NOTIFY_TYPE: u32 = 1; -pub const SERVER_NOTIFY_TYPE: u32 = 2; -pub const PRINTER_NOTIFY_FIELD_SERVER_NAME: u32 = 0; -pub const PRINTER_NOTIFY_FIELD_PRINTER_NAME: u32 = 1; -pub const PRINTER_NOTIFY_FIELD_SHARE_NAME: u32 = 2; -pub const PRINTER_NOTIFY_FIELD_PORT_NAME: u32 = 3; -pub const PRINTER_NOTIFY_FIELD_DRIVER_NAME: u32 = 4; -pub const PRINTER_NOTIFY_FIELD_COMMENT: u32 = 5; -pub const PRINTER_NOTIFY_FIELD_LOCATION: u32 = 6; -pub const PRINTER_NOTIFY_FIELD_DEVMODE: u32 = 7; -pub const PRINTER_NOTIFY_FIELD_SEPFILE: u32 = 8; -pub const PRINTER_NOTIFY_FIELD_PRINT_PROCESSOR: u32 = 9; -pub const PRINTER_NOTIFY_FIELD_PARAMETERS: u32 = 10; -pub const PRINTER_NOTIFY_FIELD_DATATYPE: u32 = 11; -pub const PRINTER_NOTIFY_FIELD_SECURITY_DESCRIPTOR: u32 = 12; -pub const PRINTER_NOTIFY_FIELD_ATTRIBUTES: u32 = 13; -pub const PRINTER_NOTIFY_FIELD_PRIORITY: u32 = 14; -pub const PRINTER_NOTIFY_FIELD_DEFAULT_PRIORITY: u32 = 15; -pub const PRINTER_NOTIFY_FIELD_START_TIME: u32 = 16; -pub const PRINTER_NOTIFY_FIELD_UNTIL_TIME: u32 = 17; -pub const PRINTER_NOTIFY_FIELD_STATUS: u32 = 18; -pub const PRINTER_NOTIFY_FIELD_STATUS_STRING: u32 = 19; -pub const PRINTER_NOTIFY_FIELD_CJOBS: u32 = 20; -pub const PRINTER_NOTIFY_FIELD_AVERAGE_PPM: u32 = 21; -pub const PRINTER_NOTIFY_FIELD_TOTAL_PAGES: u32 = 22; -pub const PRINTER_NOTIFY_FIELD_PAGES_PRINTED: u32 = 23; -pub const PRINTER_NOTIFY_FIELD_TOTAL_BYTES: u32 = 24; -pub const PRINTER_NOTIFY_FIELD_BYTES_PRINTED: u32 = 25; -pub const PRINTER_NOTIFY_FIELD_OBJECT_GUID: u32 = 26; -pub const PRINTER_NOTIFY_FIELD_FRIENDLY_NAME: u32 = 27; -pub const PRINTER_NOTIFY_FIELD_BRANCH_OFFICE_PRINTING: u32 = 28; -pub const JOB_NOTIFY_FIELD_PRINTER_NAME: u32 = 0; -pub const JOB_NOTIFY_FIELD_MACHINE_NAME: u32 = 1; -pub const JOB_NOTIFY_FIELD_PORT_NAME: u32 = 2; -pub const JOB_NOTIFY_FIELD_USER_NAME: u32 = 3; -pub const JOB_NOTIFY_FIELD_NOTIFY_NAME: u32 = 4; -pub const JOB_NOTIFY_FIELD_DATATYPE: u32 = 5; -pub const JOB_NOTIFY_FIELD_PRINT_PROCESSOR: u32 = 6; -pub const JOB_NOTIFY_FIELD_PARAMETERS: u32 = 7; -pub const JOB_NOTIFY_FIELD_DRIVER_NAME: u32 = 8; -pub const JOB_NOTIFY_FIELD_DEVMODE: u32 = 9; -pub const JOB_NOTIFY_FIELD_STATUS: u32 = 10; -pub const JOB_NOTIFY_FIELD_STATUS_STRING: u32 = 11; -pub const JOB_NOTIFY_FIELD_SECURITY_DESCRIPTOR: u32 = 12; -pub const JOB_NOTIFY_FIELD_DOCUMENT: u32 = 13; -pub const JOB_NOTIFY_FIELD_PRIORITY: u32 = 14; -pub const JOB_NOTIFY_FIELD_POSITION: u32 = 15; -pub const JOB_NOTIFY_FIELD_SUBMITTED: u32 = 16; -pub const JOB_NOTIFY_FIELD_START_TIME: u32 = 17; -pub const JOB_NOTIFY_FIELD_UNTIL_TIME: u32 = 18; -pub const JOB_NOTIFY_FIELD_TIME: u32 = 19; -pub const JOB_NOTIFY_FIELD_TOTAL_PAGES: u32 = 20; -pub const JOB_NOTIFY_FIELD_PAGES_PRINTED: u32 = 21; -pub const JOB_NOTIFY_FIELD_TOTAL_BYTES: u32 = 22; -pub const JOB_NOTIFY_FIELD_BYTES_PRINTED: u32 = 23; -pub const JOB_NOTIFY_FIELD_REMOTE_JOB_ID: u32 = 24; -pub const SERVER_NOTIFY_FIELD_PRINT_DRIVER_ISOLATION_GROUP: u32 = 0; -pub const PRINTER_NOTIFY_CATEGORY_ALL: u32 = 4096; -pub const PRINTER_NOTIFY_CATEGORY_3D: u32 = 8192; -pub const PRINTER_NOTIFY_OPTIONS_REFRESH: u32 = 1; -pub const PRINTER_NOTIFY_INFO_DISCARDED: u32 = 1; -pub const BIDI_ACTION_ENUM_SCHEMA: &[u8; 11] = b"EnumSchema\0"; -pub const BIDI_ACTION_GET: &[u8; 4] = b"Get\0"; -pub const BIDI_ACTION_SET: &[u8; 4] = b"Set\0"; -pub const BIDI_ACTION_GET_ALL: &[u8; 7] = b"GetAll\0"; -pub const BIDI_ACTION_GET_WITH_ARGUMENT: &[u8; 16] = b"GetWithArgument\0"; -pub const BIDI_ACCESS_ADMINISTRATOR: u32 = 1; -pub const BIDI_ACCESS_USER: u32 = 2; -pub const ERROR_BIDI_STATUS_OK: u32 = 0; -pub const ERROR_BIDI_NOT_SUPPORTED: u32 = 50; -pub const ERROR_BIDI_ERROR_BASE: u32 = 13000; -pub const ERROR_BIDI_STATUS_WARNING: u32 = 13001; -pub const ERROR_BIDI_SCHEMA_READ_ONLY: u32 = 13002; -pub const ERROR_BIDI_SERVER_OFFLINE: u32 = 13003; -pub const ERROR_BIDI_DEVICE_OFFLINE: u32 = 13004; -pub const ERROR_BIDI_SCHEMA_NOT_SUPPORTED: u32 = 13005; -pub const ERROR_BIDI_SET_DIFFERENT_TYPE: u32 = 13006; -pub const ERROR_BIDI_SET_MULTIPLE_SCHEMAPATH: u32 = 13007; -pub const ERROR_BIDI_SET_INVALID_SCHEMAPATH: u32 = 13008; -pub const ERROR_BIDI_SET_UNKNOWN_FAILURE: u32 = 13009; -pub const ERROR_BIDI_SCHEMA_WRITE_ONLY: u32 = 13010; -pub const ERROR_BIDI_GET_REQUIRES_ARGUMENT: u32 = 13011; -pub const ERROR_BIDI_GET_ARGUMENT_NOT_SUPPORTED: u32 = 13012; -pub const ERROR_BIDI_GET_MISSING_ARGUMENT: u32 = 13013; -pub const ERROR_BIDI_DEVICE_CONFIG_UNCHANGED: u32 = 13014; -pub const ERROR_BIDI_NO_LOCALIZED_RESOURCES: u32 = 13015; -pub const ERROR_BIDI_NO_BIDI_SCHEMA_EXTENSIONS: u32 = 13016; -pub const ERROR_BIDI_UNSUPPORTED_CLIENT_LANGUAGE: u32 = 13017; -pub const ERROR_BIDI_UNSUPPORTED_RESOURCE_FORMAT: u32 = 13018; -pub const PRINTER_CHANGE_ADD_PRINTER: u32 = 1; -pub const PRINTER_CHANGE_SET_PRINTER: u32 = 2; -pub const PRINTER_CHANGE_DELETE_PRINTER: u32 = 4; -pub const PRINTER_CHANGE_FAILED_CONNECTION_PRINTER: u32 = 8; -pub const PRINTER_CHANGE_PRINTER: u32 = 255; -pub const PRINTER_CHANGE_ADD_JOB: u32 = 256; -pub const PRINTER_CHANGE_SET_JOB: u32 = 512; -pub const PRINTER_CHANGE_DELETE_JOB: u32 = 1024; -pub const PRINTER_CHANGE_WRITE_JOB: u32 = 2048; -pub const PRINTER_CHANGE_JOB: u32 = 65280; -pub const PRINTER_CHANGE_ADD_FORM: u32 = 65536; -pub const PRINTER_CHANGE_SET_FORM: u32 = 131072; -pub const PRINTER_CHANGE_DELETE_FORM: u32 = 262144; -pub const PRINTER_CHANGE_FORM: u32 = 458752; -pub const PRINTER_CHANGE_ADD_PORT: u32 = 1048576; -pub const PRINTER_CHANGE_CONFIGURE_PORT: u32 = 2097152; -pub const PRINTER_CHANGE_DELETE_PORT: u32 = 4194304; -pub const PRINTER_CHANGE_PORT: u32 = 7340032; -pub const PRINTER_CHANGE_ADD_PRINT_PROCESSOR: u32 = 16777216; -pub const PRINTER_CHANGE_DELETE_PRINT_PROCESSOR: u32 = 67108864; -pub const PRINTER_CHANGE_PRINT_PROCESSOR: u32 = 117440512; -pub const PRINTER_CHANGE_SERVER: u32 = 134217728; -pub const PRINTER_CHANGE_ADD_PRINTER_DRIVER: u32 = 268435456; -pub const PRINTER_CHANGE_SET_PRINTER_DRIVER: u32 = 536870912; -pub const PRINTER_CHANGE_DELETE_PRINTER_DRIVER: u32 = 1073741824; -pub const PRINTER_CHANGE_PRINTER_DRIVER: u32 = 1879048192; -pub const PRINTER_CHANGE_TIMEOUT: u32 = 2147483648; -pub const PRINTER_CHANGE_ALL: u32 = 2138570751; -pub const PRINTER_ERROR_INFORMATION: u32 = 2147483648; -pub const PRINTER_ERROR_WARNING: u32 = 1073741824; -pub const PRINTER_ERROR_SEVERE: u32 = 536870912; -pub const PRINTER_ERROR_OUTOFPAPER: u32 = 1; -pub const PRINTER_ERROR_JAM: u32 = 2; -pub const PRINTER_ERROR_OUTOFTONER: u32 = 4; -pub const SPLREG_PRINT_DRIVER_ISOLATION_GROUPS_SEPARATOR: u8 = 92u8; -pub const SERVER_ACCESS_ADMINISTER: u32 = 1; -pub const SERVER_ACCESS_ENUMERATE: u32 = 2; -pub const PRINTER_ACCESS_ADMINISTER: u32 = 4; -pub const PRINTER_ACCESS_USE: u32 = 8; -pub const JOB_ACCESS_ADMINISTER: u32 = 16; -pub const JOB_ACCESS_READ: u32 = 32; -pub const PRINTER_ACCESS_MANAGE_LIMITED: u32 = 64; -pub const SERVER_ALL_ACCESS: u32 = 983043; -pub const SERVER_READ: u32 = 131074; -pub const SERVER_WRITE: u32 = 131075; -pub const SERVER_EXECUTE: u32 = 131074; -pub const PRINTER_ALL_ACCESS: u32 = 983052; -pub const PRINTER_READ: u32 = 131080; -pub const PRINTER_WRITE: u32 = 131080; -pub const PRINTER_EXECUTE: u32 = 131080; -pub const JOB_ALL_ACCESS: u32 = 983088; -pub const JOB_READ: u32 = 131104; -pub const JOB_WRITE: u32 = 131088; -pub const JOB_EXECUTE: u32 = 131088; -pub const PRINTER_CONNECTION_MISMATCH: u32 = 32; -pub const PRINTER_CONNECTION_NO_UI: u32 = 64; -pub const IPDFP_COPY_ALL_FILES: u32 = 1; -pub const UPDP_SILENT_UPLOAD: u32 = 1; -pub const UPDP_UPLOAD_ALWAYS: u32 = 2; -pub const UPDP_CHECK_DRIVERSTORE: u32 = 4; -pub const MS_PRINT_JOB_OUTPUT_FILE: &[u8; 21] = b"MsPrintJobOutputFile\0"; -pub const _MAX_ITOSTR_BASE16_COUNT: u32 = 9; -pub const _MAX_ITOSTR_BASE10_COUNT: u32 = 12; -pub const _MAX_ITOSTR_BASE8_COUNT: u32 = 12; -pub const _MAX_ITOSTR_BASE2_COUNT: u32 = 33; -pub const _MAX_LTOSTR_BASE16_COUNT: u32 = 9; -pub const _MAX_LTOSTR_BASE10_COUNT: u32 = 12; -pub const _MAX_LTOSTR_BASE8_COUNT: u32 = 12; -pub const _MAX_LTOSTR_BASE2_COUNT: u32 = 33; -pub const _MAX_ULTOSTR_BASE16_COUNT: u32 = 9; -pub const _MAX_ULTOSTR_BASE10_COUNT: u32 = 11; -pub const _MAX_ULTOSTR_BASE8_COUNT: u32 = 12; -pub const _MAX_ULTOSTR_BASE2_COUNT: u32 = 33; -pub const _MAX_I64TOSTR_BASE16_COUNT: u32 = 17; -pub const _MAX_I64TOSTR_BASE10_COUNT: u32 = 21; -pub const _MAX_I64TOSTR_BASE8_COUNT: u32 = 23; -pub const _MAX_I64TOSTR_BASE2_COUNT: u32 = 65; -pub const _MAX_U64TOSTR_BASE16_COUNT: u32 = 17; -pub const _MAX_U64TOSTR_BASE10_COUNT: u32 = 21; -pub const _MAX_U64TOSTR_BASE8_COUNT: u32 = 23; -pub const _MAX_U64TOSTR_BASE2_COUNT: u32 = 65; -pub const CHAR_BIT: u32 = 8; -pub const SCHAR_MIN: i32 = -128; -pub const SCHAR_MAX: u32 = 127; -pub const UCHAR_MAX: u32 = 255; -pub const CHAR_MIN: i32 = -128; -pub const CHAR_MAX: u32 = 127; -pub const MB_LEN_MAX: u32 = 5; -pub const SHRT_MIN: i32 = -32768; -pub const SHRT_MAX: u32 = 32767; -pub const USHRT_MAX: u32 = 65535; -pub const INT_MIN: i32 = -2147483648; -pub const INT_MAX: u32 = 2147483647; -pub const UINT_MAX: u32 = 4294967295; -pub const LONG_MIN: i32 = -2147483648; -pub const LONG_MAX: u32 = 2147483647; -pub const ULONG_MAX: u32 = 4294967295; -pub const EXIT_SUCCESS: u32 = 0; -pub const EXIT_FAILURE: u32 = 1; -pub const _WRITE_ABORT_MSG: u32 = 1; -pub const _CALL_REPORTFAULT: u32 = 2; -pub const _OUT_TO_DEFAULT: u32 = 0; -pub const _OUT_TO_STDERR: u32 = 1; -pub const _OUT_TO_MSGBOX: u32 = 2; -pub const _REPORT_ERRMODE: u32 = 3; -pub const RAND_MAX: u32 = 32767; -pub const _CVTBUFSIZE: u32 = 349; -pub const _MAX_PATH: u32 = 260; -pub const _MAX_DRIVE: u32 = 3; -pub const _MAX_DIR: u32 = 256; -pub const _MAX_FNAME: u32 = 256; -pub const _MAX_EXT: u32 = 256; -pub const _MAX_ENV: u32 = 32767; -pub const _CRT_INTERNAL_COMBASE_SYMBOL_PREFIX: &[u8; 1] = b"\0"; -pub const COM_RIGHTS_EXECUTE: u32 = 1; -pub const COM_RIGHTS_EXECUTE_LOCAL: u32 = 2; -pub const COM_RIGHTS_EXECUTE_REMOTE: u32 = 4; -pub const COM_RIGHTS_ACTIVATE_LOCAL: u32 = 8; -pub const COM_RIGHTS_ACTIVATE_REMOTE: u32 = 16; -pub const COM_RIGHTS_RESERVED1: u32 = 32; -pub const COM_RIGHTS_RESERVED2: u32 = 64; -pub const CWMO_MAX_HANDLES: u32 = 56; -pub const FADF_AUTO: u32 = 1; -pub const FADF_STATIC: u32 = 2; -pub const FADF_EMBEDDED: u32 = 4; -pub const FADF_FIXEDSIZE: u32 = 16; -pub const FADF_RECORD: u32 = 32; -pub const FADF_HAVEIID: u32 = 64; -pub const FADF_HAVEVARTYPE: u32 = 128; -pub const FADF_BSTR: u32 = 256; -pub const FADF_UNKNOWN: u32 = 512; -pub const FADF_DISPATCH: u32 = 1024; -pub const FADF_VARIANT: u32 = 2048; -pub const FADF_RESERVED: u32 = 61448; -pub const PARAMFLAG_NONE: u32 = 0; -pub const PARAMFLAG_FIN: u32 = 1; -pub const PARAMFLAG_FOUT: u32 = 2; -pub const PARAMFLAG_FLCID: u32 = 4; -pub const PARAMFLAG_FRETVAL: u32 = 8; -pub const PARAMFLAG_FOPT: u32 = 16; -pub const PARAMFLAG_FHASDEFAULT: u32 = 32; -pub const PARAMFLAG_FHASCUSTDATA: u32 = 64; -pub const IDLFLAG_NONE: u32 = 0; -pub const IDLFLAG_FIN: u32 = 1; -pub const IDLFLAG_FOUT: u32 = 2; -pub const IDLFLAG_FLCID: u32 = 4; -pub const IDLFLAG_FRETVAL: u32 = 8; -pub const IMPLTYPEFLAG_FDEFAULT: u32 = 1; -pub const IMPLTYPEFLAG_FSOURCE: u32 = 2; -pub const IMPLTYPEFLAG_FRESTRICTED: u32 = 4; -pub const IMPLTYPEFLAG_FDEFAULTVTABLE: u32 = 8; -pub const DISPID_UNKNOWN: i32 = -1; -pub const DISPID_VALUE: u32 = 0; -pub const DISPID_PROPERTYPUT: i32 = -3; -pub const DISPID_NEWENUM: i32 = -4; -pub const DISPID_EVALUATE: i32 = -5; -pub const DISPID_CONSTRUCTOR: i32 = -6; -pub const DISPID_DESTRUCTOR: i32 = -7; -pub const DISPID_COLLECT: i32 = -8; -pub const PROPSETFLAG_DEFAULT: u32 = 0; -pub const PROPSETFLAG_NONSIMPLE: u32 = 1; -pub const PROPSETFLAG_ANSI: u32 = 2; -pub const PROPSETFLAG_UNBUFFERED: u32 = 4; -pub const PROPSETFLAG_CASE_SENSITIVE: u32 = 8; -pub const PROPSET_BEHAVIOR_CASE_SENSITIVE: u32 = 1; -pub const PID_DICTIONARY: u32 = 0; -pub const PID_CODEPAGE: u32 = 1; -pub const PID_FIRST_USABLE: u32 = 2; -pub const PID_FIRST_NAME_DEFAULT: u32 = 4095; -pub const PID_LOCALE: u32 = 2147483648; -pub const PID_MODIFY_TIME: u32 = 2147483649; -pub const PID_SECURITY: u32 = 2147483650; -pub const PID_BEHAVIOR: u32 = 2147483651; -pub const PID_ILLEGAL: u32 = 4294967295; -pub const PID_MIN_READONLY: u32 = 2147483648; -pub const PID_MAX_READONLY: u32 = 3221225471; -pub const PRSPEC_INVALID: u32 = 4294967295; -pub const PRSPEC_LPWSTR: u32 = 0; -pub const PRSPEC_PROPID: u32 = 1; -pub const PROPSETHDR_OSVERSION_UNKNOWN: u32 = 4294967295; -pub const CWCSTORAGENAME: u32 = 32; -pub const STGM_DIRECT: u32 = 0; -pub const STGM_TRANSACTED: u32 = 65536; -pub const STGM_SIMPLE: u32 = 134217728; -pub const STGM_READ: u32 = 0; -pub const STGM_WRITE: u32 = 1; -pub const STGM_READWRITE: u32 = 2; -pub const STGM_SHARE_DENY_NONE: u32 = 64; -pub const STGM_SHARE_DENY_READ: u32 = 48; -pub const STGM_SHARE_DENY_WRITE: u32 = 32; -pub const STGM_SHARE_EXCLUSIVE: u32 = 16; -pub const STGM_PRIORITY: u32 = 262144; -pub const STGM_DELETEONRELEASE: u32 = 67108864; -pub const STGM_NOSCRATCH: u32 = 1048576; -pub const STGM_CREATE: u32 = 4096; -pub const STGM_CONVERT: u32 = 131072; -pub const STGM_FAILIFTHERE: u32 = 0; -pub const STGM_NOSNAPSHOT: u32 = 2097152; -pub const STGM_DIRECT_SWMR: u32 = 4194304; -pub const STGFMT_STORAGE: u32 = 0; -pub const STGFMT_NATIVE: u32 = 1; -pub const STGFMT_FILE: u32 = 3; -pub const STGFMT_ANY: u32 = 4; -pub const STGFMT_DOCFILE: u32 = 5; -pub const STGFMT_DOCUMENT: u32 = 0; -pub const STGOPTIONS_VERSION: u32 = 2; -pub const CCH_MAX_PROPSTG_NAME: u32 = 31; -pub const MARSHALINTERFACE_MIN: u32 = 500; -pub const ASYNC_MODE_COMPATIBILITY: u32 = 1; -pub const ASYNC_MODE_DEFAULT: u32 = 0; -pub const STGTY_REPEAT: u32 = 256; -pub const STG_TOEND: u32 = 4294967295; -pub const STG_LAYOUT_SEQUENTIAL: u32 = 0; -pub const STG_LAYOUT_INTERLEAVED: u32 = 1; -pub const UPDFCACHE_NODATACACHE: u32 = 1; -pub const UPDFCACHE_ONSAVECACHE: u32 = 2; -pub const UPDFCACHE_ONSTOPCACHE: u32 = 4; -pub const UPDFCACHE_NORMALCACHE: u32 = 8; -pub const UPDFCACHE_IFBLANK: u32 = 16; -pub const UPDFCACHE_ONLYIFBLANK: u32 = 2147483648; -pub const UPDFCACHE_IFBLANKORONSAVECACHE: u32 = 18; -pub const MK_ALT: u32 = 32; -pub const DROPEFFECT_NONE: u32 = 0; -pub const DROPEFFECT_COPY: u32 = 1; -pub const DROPEFFECT_MOVE: u32 = 2; -pub const DROPEFFECT_LINK: u32 = 4; -pub const DROPEFFECT_SCROLL: u32 = 2147483648; -pub const DD_DEFSCROLLINSET: u32 = 11; -pub const DD_DEFSCROLLDELAY: u32 = 50; -pub const DD_DEFSCROLLINTERVAL: u32 = 50; -pub const DD_DEFDRAGDELAY: u32 = 200; -pub const DD_DEFDRAGMINDIST: u32 = 2; -pub const MKSYS_URLMONIKER: u32 = 6; -pub const URL_MK_LEGACY: u32 = 0; -pub const URL_MK_UNIFORM: u32 = 1; -pub const URL_MK_NO_CANONICALIZE: u32 = 2; -pub const FIEF_FLAG_FORCE_JITUI: u32 = 1; -pub const FIEF_FLAG_PEEK: u32 = 2; -pub const FIEF_FLAG_SKIP_INSTALLED_VERSION_CHECK: u32 = 4; -pub const FIEF_FLAG_RESERVED_0: u32 = 8; -pub const FMFD_DEFAULT: u32 = 0; -pub const FMFD_URLASFILENAME: u32 = 1; -pub const FMFD_ENABLEMIMESNIFFING: u32 = 2; -pub const FMFD_IGNOREMIMETEXTPLAIN: u32 = 4; -pub const FMFD_SERVERMIME: u32 = 8; -pub const FMFD_RESPECTTEXTPLAIN: u32 = 16; -pub const FMFD_RETURNUPDATEDIMGMIMES: u32 = 32; -pub const FMFD_RESERVED_1: u32 = 64; -pub const FMFD_RESERVED_2: u32 = 128; -pub const UAS_EXACTLEGACY: u32 = 4096; -pub const URLMON_OPTION_USERAGENT: u32 = 268435457; -pub const URLMON_OPTION_USERAGENT_REFRESH: u32 = 268435458; -pub const URLMON_OPTION_URL_ENCODING: u32 = 268435460; -pub const URLMON_OPTION_USE_BINDSTRINGCREDS: u32 = 268435464; -pub const URLMON_OPTION_USE_BROWSERAPPSDOCUMENTS: u32 = 268435472; -pub const CF_NULL: u32 = 0; -pub const Uri_CREATE_ALLOW_RELATIVE: u32 = 1; -pub const Uri_CREATE_ALLOW_IMPLICIT_WILDCARD_SCHEME: u32 = 2; -pub const Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME: u32 = 4; -pub const Uri_CREATE_NOFRAG: u32 = 8; -pub const Uri_CREATE_NO_CANONICALIZE: u32 = 16; -pub const Uri_CREATE_CANONICALIZE: u32 = 256; -pub const Uri_CREATE_FILE_USE_DOS_PATH: u32 = 32; -pub const Uri_CREATE_DECODE_EXTRA_INFO: u32 = 64; -pub const Uri_CREATE_NO_DECODE_EXTRA_INFO: u32 = 128; -pub const Uri_CREATE_CRACK_UNKNOWN_SCHEMES: u32 = 512; -pub const Uri_CREATE_NO_CRACK_UNKNOWN_SCHEMES: u32 = 1024; -pub const Uri_CREATE_PRE_PROCESS_HTML_URI: u32 = 2048; -pub const Uri_CREATE_NO_PRE_PROCESS_HTML_URI: u32 = 4096; -pub const Uri_CREATE_IE_SETTINGS: u32 = 8192; -pub const Uri_CREATE_NO_IE_SETTINGS: u32 = 16384; -pub const Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS: u32 = 32768; -pub const Uri_CREATE_NORMALIZE_INTL_CHARACTERS: u32 = 65536; -pub const Uri_CREATE_CANONICALIZE_ABSOLUTE: u32 = 131072; -pub const Uri_DISPLAY_NO_FRAGMENT: u32 = 1; -pub const Uri_PUNYCODE_IDN_HOST: u32 = 2; -pub const Uri_DISPLAY_IDN_HOST: u32 = 4; -pub const Uri_DISPLAY_NO_PUNYCODE: u32 = 8; -pub const Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8: u32 = 1; -pub const Uri_ENCODING_USER_INFO_AND_PATH_IS_CP: u32 = 2; -pub const Uri_ENCODING_HOST_IS_IDN: u32 = 4; -pub const Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8: u32 = 8; -pub const Uri_ENCODING_HOST_IS_PERCENT_ENCODED_CP: u32 = 16; -pub const Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8: u32 = 32; -pub const Uri_ENCODING_QUERY_AND_FRAGMENT_IS_CP: u32 = 64; -pub const Uri_ENCODING_RFC: u32 = 41; -pub const UriBuilder_USE_ORIGINAL_FLAGS: u32 = 1; -pub const WININETINFO_OPTION_LOCK_HANDLE: u32 = 65534; -pub const URLOSTRM_USECACHEDCOPY_ONLY: u32 = 1; -pub const URLOSTRM_USECACHEDCOPY: u32 = 2; -pub const URLOSTRM_GETNEWESTVERSION: u32 = 3; -pub const SET_FEATURE_ON_THREAD: u32 = 1; -pub const SET_FEATURE_ON_PROCESS: u32 = 2; -pub const SET_FEATURE_IN_REGISTRY: u32 = 4; -pub const SET_FEATURE_ON_THREAD_LOCALMACHINE: u32 = 8; -pub const SET_FEATURE_ON_THREAD_INTRANET: u32 = 16; -pub const SET_FEATURE_ON_THREAD_TRUSTED: u32 = 32; -pub const SET_FEATURE_ON_THREAD_INTERNET: u32 = 64; -pub const SET_FEATURE_ON_THREAD_RESTRICTED: u32 = 128; -pub const GET_FEATURE_FROM_THREAD: u32 = 1; -pub const GET_FEATURE_FROM_PROCESS: u32 = 2; -pub const GET_FEATURE_FROM_REGISTRY: u32 = 4; -pub const GET_FEATURE_FROM_THREAD_LOCALMACHINE: u32 = 8; -pub const GET_FEATURE_FROM_THREAD_INTRANET: u32 = 16; -pub const GET_FEATURE_FROM_THREAD_TRUSTED: u32 = 32; -pub const GET_FEATURE_FROM_THREAD_INTERNET: u32 = 64; -pub const GET_FEATURE_FROM_THREAD_RESTRICTED: u32 = 128; -pub const PROTOCOLFLAG_NO_PICS_CHECK: u32 = 1; -pub const MUTZ_NOSAVEDFILECHECK: u32 = 1; -pub const MUTZ_ISFILE: u32 = 2; -pub const MUTZ_ACCEPT_WILDCARD_SCHEME: u32 = 128; -pub const MUTZ_ENFORCERESTRICTED: u32 = 256; -pub const MUTZ_RESERVED: u32 = 512; -pub const MUTZ_REQUIRESAVEDFILECHECK: u32 = 1024; -pub const MUTZ_DONT_UNESCAPE: u32 = 2048; -pub const MUTZ_DONT_USE_CACHE: u32 = 4096; -pub const MUTZ_FORCE_INTRANET_FLAGS: u32 = 8192; -pub const MUTZ_IGNORE_ZONE_MAPPINGS: u32 = 16384; -pub const MAX_SIZE_SECURITY_ID: u32 = 512; -pub const URLACTION_MIN: u32 = 4096; -pub const URLACTION_DOWNLOAD_MIN: u32 = 4096; -pub const URLACTION_DOWNLOAD_SIGNED_ACTIVEX: u32 = 4097; -pub const URLACTION_DOWNLOAD_UNSIGNED_ACTIVEX: u32 = 4100; -pub const URLACTION_DOWNLOAD_CURR_MAX: u32 = 4100; -pub const URLACTION_DOWNLOAD_MAX: u32 = 4607; -pub const URLACTION_ACTIVEX_MIN: u32 = 4608; -pub const URLACTION_ACTIVEX_RUN: u32 = 4608; -pub const URLPOLICY_ACTIVEX_CHECK_LIST: u32 = 65536; -pub const URLACTION_ACTIVEX_OVERRIDE_OBJECT_SAFETY: u32 = 4609; -pub const URLACTION_ACTIVEX_OVERRIDE_DATA_SAFETY: u32 = 4610; -pub const URLACTION_ACTIVEX_OVERRIDE_SCRIPT_SAFETY: u32 = 4611; -pub const URLACTION_SCRIPT_OVERRIDE_SAFETY: u32 = 5121; -pub const URLACTION_ACTIVEX_CONFIRM_NOOBJECTSAFETY: u32 = 4612; -pub const URLACTION_ACTIVEX_TREATASUNTRUSTED: u32 = 4613; -pub const URLACTION_ACTIVEX_NO_WEBOC_SCRIPT: u32 = 4614; -pub const URLACTION_ACTIVEX_OVERRIDE_REPURPOSEDETECTION: u32 = 4615; -pub const URLACTION_ACTIVEX_OVERRIDE_OPTIN: u32 = 4616; -pub const URLACTION_ACTIVEX_SCRIPTLET_RUN: u32 = 4617; -pub const URLACTION_ACTIVEX_DYNSRC_VIDEO_AND_ANIMATION: u32 = 4618; -pub const URLACTION_ACTIVEX_OVERRIDE_DOMAINLIST: u32 = 4619; -pub const URLACTION_ACTIVEX_ALLOW_TDC: u32 = 4620; -pub const URLACTION_ACTIVEX_CURR_MAX: u32 = 4620; -pub const URLACTION_ACTIVEX_MAX: u32 = 5119; -pub const URLACTION_SCRIPT_MIN: u32 = 5120; -pub const URLACTION_SCRIPT_RUN: u32 = 5120; -pub const URLACTION_SCRIPT_JAVA_USE: u32 = 5122; -pub const URLACTION_SCRIPT_SAFE_ACTIVEX: u32 = 5125; -pub const URLACTION_CROSS_DOMAIN_DATA: u32 = 5126; -pub const URLACTION_SCRIPT_PASTE: u32 = 5127; -pub const URLACTION_ALLOW_XDOMAIN_SUBFRAME_RESIZE: u32 = 5128; -pub const URLACTION_SCRIPT_XSSFILTER: u32 = 5129; -pub const URLACTION_SCRIPT_NAVIGATE: u32 = 5130; -pub const URLACTION_PLUGGABLE_PROTOCOL_XHR: u32 = 5131; -pub const URLACTION_ALLOW_VBSCRIPT_IE: u32 = 5132; -pub const URLACTION_ALLOW_JSCRIPT_IE: u32 = 5133; -pub const URLACTION_SCRIPT_CURR_MAX: u32 = 5133; -pub const URLACTION_SCRIPT_MAX: u32 = 5631; -pub const URLACTION_HTML_MIN: u32 = 5632; -pub const URLACTION_HTML_SUBMIT_FORMS: u32 = 5633; -pub const URLACTION_HTML_SUBMIT_FORMS_FROM: u32 = 5634; -pub const URLACTION_HTML_SUBMIT_FORMS_TO: u32 = 5635; -pub const URLACTION_HTML_FONT_DOWNLOAD: u32 = 5636; -pub const URLACTION_HTML_JAVA_RUN: u32 = 5637; -pub const URLACTION_HTML_USERDATA_SAVE: u32 = 5638; -pub const URLACTION_HTML_SUBFRAME_NAVIGATE: u32 = 5639; -pub const URLACTION_HTML_META_REFRESH: u32 = 5640; -pub const URLACTION_HTML_MIXED_CONTENT: u32 = 5641; -pub const URLACTION_HTML_INCLUDE_FILE_PATH: u32 = 5642; -pub const URLACTION_HTML_ALLOW_INJECTED_DYNAMIC_HTML: u32 = 5643; -pub const URLACTION_HTML_REQUIRE_UTF8_DOCUMENT_CODEPAGE: u32 = 5644; -pub const URLACTION_HTML_ALLOW_CROSS_DOMAIN_CANVAS: u32 = 5645; -pub const URLACTION_HTML_ALLOW_WINDOW_CLOSE: u32 = 5646; -pub const URLACTION_HTML_ALLOW_CROSS_DOMAIN_WEBWORKER: u32 = 5647; -pub const URLACTION_HTML_ALLOW_CROSS_DOMAIN_TEXTTRACK: u32 = 5648; -pub const URLACTION_HTML_ALLOW_INDEXEDDB: u32 = 5649; -pub const URLACTION_HTML_MAX: u32 = 6143; -pub const URLACTION_SHELL_MIN: u32 = 6144; -pub const URLACTION_SHELL_INSTALL_DTITEMS: u32 = 6144; -pub const URLACTION_SHELL_MOVE_OR_COPY: u32 = 6146; -pub const URLACTION_SHELL_FILE_DOWNLOAD: u32 = 6147; -pub const URLACTION_SHELL_VERB: u32 = 6148; -pub const URLACTION_SHELL_WEBVIEW_VERB: u32 = 6149; -pub const URLACTION_SHELL_SHELLEXECUTE: u32 = 6150; -pub const URLACTION_SHELL_EXECUTE_HIGHRISK: u32 = 6150; -pub const URLACTION_SHELL_EXECUTE_MODRISK: u32 = 6151; -pub const URLACTION_SHELL_EXECUTE_LOWRISK: u32 = 6152; -pub const URLACTION_SHELL_POPUPMGR: u32 = 6153; -pub const URLACTION_SHELL_RTF_OBJECTS_LOAD: u32 = 6154; -pub const URLACTION_SHELL_ENHANCED_DRAGDROP_SECURITY: u32 = 6155; -pub const URLACTION_SHELL_EXTENSIONSECURITY: u32 = 6156; -pub const URLACTION_SHELL_SECURE_DRAGSOURCE: u32 = 6157; -pub const URLACTION_SHELL_REMOTEQUERY: u32 = 6158; -pub const URLACTION_SHELL_PREVIEW: u32 = 6159; -pub const URLACTION_SHELL_SHARE: u32 = 6160; -pub const URLACTION_SHELL_ALLOW_CROSS_SITE_SHARE: u32 = 6161; -pub const URLACTION_SHELL_TOCTOU_RISK: u32 = 6162; -pub const URLACTION_SHELL_CURR_MAX: u32 = 6162; -pub const URLACTION_SHELL_MAX: u32 = 6655; -pub const URLACTION_NETWORK_MIN: u32 = 6656; -pub const URLACTION_CREDENTIALS_USE: u32 = 6656; -pub const URLPOLICY_CREDENTIALS_SILENT_LOGON_OK: u32 = 0; -pub const URLPOLICY_CREDENTIALS_MUST_PROMPT_USER: u32 = 65536; -pub const URLPOLICY_CREDENTIALS_CONDITIONAL_PROMPT: u32 = 131072; -pub const URLPOLICY_CREDENTIALS_ANONYMOUS_ONLY: u32 = 196608; -pub const URLACTION_AUTHENTICATE_CLIENT: u32 = 6657; -pub const URLPOLICY_AUTHENTICATE_CLEARTEXT_OK: u32 = 0; -pub const URLPOLICY_AUTHENTICATE_CHALLENGE_RESPONSE: u32 = 65536; -pub const URLPOLICY_AUTHENTICATE_MUTUAL_ONLY: u32 = 196608; -pub const URLACTION_COOKIES: u32 = 6658; -pub const URLACTION_COOKIES_SESSION: u32 = 6659; -pub const URLACTION_CLIENT_CERT_PROMPT: u32 = 6660; -pub const URLACTION_COOKIES_THIRD_PARTY: u32 = 6661; -pub const URLACTION_COOKIES_SESSION_THIRD_PARTY: u32 = 6662; -pub const URLACTION_COOKIES_ENABLED: u32 = 6672; -pub const URLACTION_NETWORK_CURR_MAX: u32 = 6672; -pub const URLACTION_NETWORK_MAX: u32 = 7167; -pub const URLACTION_JAVA_MIN: u32 = 7168; -pub const URLACTION_JAVA_PERMISSIONS: u32 = 7168; -pub const URLPOLICY_JAVA_PROHIBIT: u32 = 0; -pub const URLPOLICY_JAVA_HIGH: u32 = 65536; -pub const URLPOLICY_JAVA_MEDIUM: u32 = 131072; -pub const URLPOLICY_JAVA_LOW: u32 = 196608; -pub const URLPOLICY_JAVA_CUSTOM: u32 = 8388608; -pub const URLACTION_JAVA_CURR_MAX: u32 = 7168; -pub const URLACTION_JAVA_MAX: u32 = 7423; -pub const URLACTION_INFODELIVERY_MIN: u32 = 7424; -pub const URLACTION_INFODELIVERY_NO_ADDING_CHANNELS: u32 = 7424; -pub const URLACTION_INFODELIVERY_NO_EDITING_CHANNELS: u32 = 7425; -pub const URLACTION_INFODELIVERY_NO_REMOVING_CHANNELS: u32 = 7426; -pub const URLACTION_INFODELIVERY_NO_ADDING_SUBSCRIPTIONS: u32 = 7427; -pub const URLACTION_INFODELIVERY_NO_EDITING_SUBSCRIPTIONS: u32 = 7428; -pub const URLACTION_INFODELIVERY_NO_REMOVING_SUBSCRIPTIONS: u32 = 7429; -pub const URLACTION_INFODELIVERY_NO_CHANNEL_LOGGING: u32 = 7430; -pub const URLACTION_INFODELIVERY_CURR_MAX: u32 = 7430; -pub const URLACTION_INFODELIVERY_MAX: u32 = 7679; -pub const URLACTION_CHANNEL_SOFTDIST_MIN: u32 = 7680; -pub const URLACTION_CHANNEL_SOFTDIST_PERMISSIONS: u32 = 7685; -pub const URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT: u32 = 65536; -pub const URLPOLICY_CHANNEL_SOFTDIST_PRECACHE: u32 = 131072; -pub const URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL: u32 = 196608; -pub const URLACTION_CHANNEL_SOFTDIST_MAX: u32 = 7935; -pub const URLACTION_DOTNET_USERCONTROLS: u32 = 8197; -pub const URLACTION_BEHAVIOR_MIN: u32 = 8192; -pub const URLACTION_BEHAVIOR_RUN: u32 = 8192; -pub const URLPOLICY_BEHAVIOR_CHECK_LIST: u32 = 65536; -pub const URLACTION_FEATURE_MIN: u32 = 8448; -pub const URLACTION_FEATURE_MIME_SNIFFING: u32 = 8448; -pub const URLACTION_FEATURE_ZONE_ELEVATION: u32 = 8449; -pub const URLACTION_FEATURE_WINDOW_RESTRICTIONS: u32 = 8450; -pub const URLACTION_FEATURE_SCRIPT_STATUS_BAR: u32 = 8451; -pub const URLACTION_FEATURE_FORCE_ADDR_AND_STATUS: u32 = 8452; -pub const URLACTION_FEATURE_BLOCK_INPUT_PROMPTS: u32 = 8453; -pub const URLACTION_FEATURE_DATA_BINDING: u32 = 8454; -pub const URLACTION_FEATURE_CROSSDOMAIN_FOCUS_CHANGE: u32 = 8455; -pub const URLACTION_AUTOMATIC_DOWNLOAD_UI_MIN: u32 = 8704; -pub const URLACTION_AUTOMATIC_DOWNLOAD_UI: u32 = 8704; -pub const URLACTION_AUTOMATIC_ACTIVEX_UI: u32 = 8705; -pub const URLACTION_ALLOW_RESTRICTEDPROTOCOLS: u32 = 8960; -pub const URLACTION_ALLOW_APEVALUATION: u32 = 8961; -pub const URLACTION_ALLOW_XHR_EVALUATION: u32 = 8962; -pub const URLACTION_WINDOWS_BROWSER_APPLICATIONS: u32 = 9216; -pub const URLACTION_XPS_DOCUMENTS: u32 = 9217; -pub const URLACTION_LOOSE_XAML: u32 = 9218; -pub const URLACTION_LOWRIGHTS: u32 = 9472; -pub const URLACTION_WINFX_SETUP: u32 = 9728; -pub const URLACTION_INPRIVATE_BLOCKING: u32 = 9984; -pub const URLACTION_ALLOW_AUDIO_VIDEO: u32 = 9985; -pub const URLACTION_ALLOW_ACTIVEX_FILTERING: u32 = 9986; -pub const URLACTION_ALLOW_STRUCTURED_STORAGE_SNIFFING: u32 = 9987; -pub const URLACTION_ALLOW_AUDIO_VIDEO_PLUGINS: u32 = 9988; -pub const URLACTION_ALLOW_ZONE_ELEVATION_VIA_OPT_OUT: u32 = 9989; -pub const URLACTION_ALLOW_ZONE_ELEVATION_OPT_OUT_ADDITION: u32 = 9990; -pub const URLACTION_ALLOW_CROSSDOMAIN_DROP_WITHIN_WINDOW: u32 = 9992; -pub const URLACTION_ALLOW_CROSSDOMAIN_DROP_ACROSS_WINDOWS: u32 = 9993; -pub const URLACTION_ALLOW_CROSSDOMAIN_APPCACHE_MANIFEST: u32 = 9994; -pub const URLACTION_ALLOW_RENDER_LEGACY_DXTFILTERS: u32 = 9995; -pub const URLACTION_ALLOW_ANTIMALWARE_SCANNING_OF_ACTIVEX: u32 = 9996; -pub const URLACTION_ALLOW_CSS_EXPRESSIONS: u32 = 9997; -pub const URLPOLICY_ALLOW: u32 = 0; -pub const URLPOLICY_QUERY: u32 = 1; -pub const URLPOLICY_DISALLOW: u32 = 3; -pub const URLPOLICY_NOTIFY_ON_ALLOW: u32 = 16; -pub const URLPOLICY_NOTIFY_ON_DISALLOW: u32 = 32; -pub const URLPOLICY_LOG_ON_ALLOW: u32 = 64; -pub const URLPOLICY_LOG_ON_DISALLOW: u32 = 128; -pub const URLPOLICY_MASK_PERMISSIONS: u32 = 15; -pub const URLPOLICY_DONTCHECKDLGBOX: u32 = 256; -pub const URLZONE_ESC_FLAG: u32 = 256; -pub const SECURITY_IE_STATE_GREEN: u32 = 0; -pub const SECURITY_IE_STATE_RED: u32 = 1; -pub const SOFTDIST_FLAG_USAGE_EMAIL: u32 = 1; -pub const SOFTDIST_FLAG_USAGE_PRECACHE: u32 = 2; -pub const SOFTDIST_FLAG_USAGE_AUTOINSTALL: u32 = 4; -pub const SOFTDIST_FLAG_DELETE_SUBSCRIPTION: u32 = 8; -pub const SOFTDIST_ADSTATE_NONE: u32 = 0; -pub const SOFTDIST_ADSTATE_AVAILABLE: u32 = 1; -pub const SOFTDIST_ADSTATE_DOWNLOADED: u32 = 2; -pub const SOFTDIST_ADSTATE_INSTALLED: u32 = 3; -pub const CONFIRMSAFETYACTION_LOADOBJECT: u32 = 1; -pub const PIDDI_THUMBNAIL: u32 = 2; -pub const PIDSI_TITLE: u32 = 2; -pub const PIDSI_SUBJECT: u32 = 3; -pub const PIDSI_AUTHOR: u32 = 4; -pub const PIDSI_KEYWORDS: u32 = 5; -pub const PIDSI_COMMENTS: u32 = 6; -pub const PIDSI_TEMPLATE: u32 = 7; -pub const PIDSI_LASTAUTHOR: u32 = 8; -pub const PIDSI_REVNUMBER: u32 = 9; -pub const PIDSI_EDITTIME: u32 = 10; -pub const PIDSI_LASTPRINTED: u32 = 11; -pub const PIDSI_CREATE_DTM: u32 = 12; -pub const PIDSI_LASTSAVE_DTM: u32 = 13; -pub const PIDSI_PAGECOUNT: u32 = 14; -pub const PIDSI_WORDCOUNT: u32 = 15; -pub const PIDSI_CHARCOUNT: u32 = 16; -pub const PIDSI_THUMBNAIL: u32 = 17; -pub const PIDSI_APPNAME: u32 = 18; -pub const PIDSI_DOC_SECURITY: u32 = 19; -pub const PIDDSI_CATEGORY: u32 = 2; -pub const PIDDSI_PRESFORMAT: u32 = 3; -pub const PIDDSI_BYTECOUNT: u32 = 4; -pub const PIDDSI_LINECOUNT: u32 = 5; -pub const PIDDSI_PARCOUNT: u32 = 6; -pub const PIDDSI_SLIDECOUNT: u32 = 7; -pub const PIDDSI_NOTECOUNT: u32 = 8; -pub const PIDDSI_HIDDENCOUNT: u32 = 9; -pub const PIDDSI_MMCLIPCOUNT: u32 = 10; -pub const PIDDSI_SCALE: u32 = 11; -pub const PIDDSI_HEADINGPAIR: u32 = 12; -pub const PIDDSI_DOCPARTS: u32 = 13; -pub const PIDDSI_MANAGER: u32 = 14; -pub const PIDDSI_COMPANY: u32 = 15; -pub const PIDDSI_LINKSDIRTY: u32 = 16; -pub const PIDMSI_EDITOR: u32 = 2; -pub const PIDMSI_SUPPLIER: u32 = 3; -pub const PIDMSI_SOURCE: u32 = 4; -pub const PIDMSI_SEQUENCE_NO: u32 = 5; -pub const PIDMSI_PROJECT: u32 = 6; -pub const PIDMSI_STATUS: u32 = 7; -pub const PIDMSI_OWNER: u32 = 8; -pub const PIDMSI_RATING: u32 = 9; -pub const PIDMSI_PRODUCTION: u32 = 10; -pub const PIDMSI_COPYRIGHT: u32 = 11; -pub const STDOLE_MAJORVERNUM: u32 = 1; -pub const STDOLE_MINORVERNUM: u32 = 0; -pub const STDOLE_LCID: u32 = 0; -pub const STDOLE2_MAJORVERNUM: u32 = 2; -pub const STDOLE2_MINORVERNUM: u32 = 0; -pub const STDOLE2_LCID: u32 = 0; -pub const VARIANT_NOVALUEPROP: u32 = 1; -pub const VARIANT_ALPHABOOL: u32 = 2; -pub const VARIANT_NOUSEROVERRIDE: u32 = 4; -pub const VARIANT_CALENDAR_HIJRI: u32 = 8; -pub const VARIANT_LOCALBOOL: u32 = 16; -pub const VARIANT_CALENDAR_THAI: u32 = 32; -pub const VARIANT_CALENDAR_GREGORIAN: u32 = 64; -pub const VARIANT_USE_NLS: u32 = 128; -pub const LOCALE_USE_NLS: u32 = 268435456; -pub const VTDATEGRE_MAX: u32 = 2958465; -pub const VTDATEGRE_MIN: i32 = -657434; -pub const NUMPRS_LEADING_WHITE: u32 = 1; -pub const NUMPRS_TRAILING_WHITE: u32 = 2; -pub const NUMPRS_LEADING_PLUS: u32 = 4; -pub const NUMPRS_TRAILING_PLUS: u32 = 8; -pub const NUMPRS_LEADING_MINUS: u32 = 16; -pub const NUMPRS_TRAILING_MINUS: u32 = 32; -pub const NUMPRS_HEX_OCT: u32 = 64; -pub const NUMPRS_PARENS: u32 = 128; -pub const NUMPRS_DECIMAL: u32 = 256; -pub const NUMPRS_THOUSANDS: u32 = 512; -pub const NUMPRS_CURRENCY: u32 = 1024; -pub const NUMPRS_EXPONENT: u32 = 2048; -pub const NUMPRS_USE_ALL: u32 = 4096; -pub const NUMPRS_STD: u32 = 8191; -pub const NUMPRS_NEG: u32 = 65536; -pub const NUMPRS_INEXACT: u32 = 131072; -pub const VARCMP_LT: u32 = 0; -pub const VARCMP_EQ: u32 = 1; -pub const VARCMP_GT: u32 = 2; -pub const VARCMP_NULL: u32 = 3; -pub const MEMBERID_NIL: i32 = -1; -pub const ID_DEFAULTINST: i32 = -2; -pub const DISPATCH_METHOD: u32 = 1; -pub const DISPATCH_PROPERTYGET: u32 = 2; -pub const DISPATCH_PROPERTYPUT: u32 = 4; -pub const DISPATCH_PROPERTYPUTREF: u32 = 8; -pub const LOAD_TLB_AS_32BIT: u32 = 32; -pub const LOAD_TLB_AS_64BIT: u32 = 64; -pub const MASK_TO_RESET_TLB_BITS: i32 = -97; -pub const ACTIVEOBJECT_STRONG: u32 = 0; -pub const ACTIVEOBJECT_WEAK: u32 = 1; -pub const OLEIVERB_PRIMARY: u32 = 0; -pub const OLEIVERB_SHOW: i32 = -1; -pub const OLEIVERB_OPEN: i32 = -2; -pub const OLEIVERB_HIDE: i32 = -3; -pub const OLEIVERB_UIACTIVATE: i32 = -4; -pub const OLEIVERB_INPLACEACTIVATE: i32 = -5; -pub const OLEIVERB_DISCARDUNDOSTATE: i32 = -6; -pub const EMBDHLP_INPROC_HANDLER: u32 = 0; -pub const EMBDHLP_INPROC_SERVER: u32 = 1; -pub const EMBDHLP_CREATENOW: u32 = 0; -pub const EMBDHLP_DELAYCREATE: u32 = 65536; -pub const OLECREATE_LEAVERUNNING: u32 = 1; -pub const OFN_READONLY: u32 = 1; -pub const OFN_OVERWRITEPROMPT: u32 = 2; -pub const OFN_HIDEREADONLY: u32 = 4; -pub const OFN_NOCHANGEDIR: u32 = 8; -pub const OFN_SHOWHELP: u32 = 16; -pub const OFN_ENABLEHOOK: u32 = 32; -pub const OFN_ENABLETEMPLATE: u32 = 64; -pub const OFN_ENABLETEMPLATEHANDLE: u32 = 128; -pub const OFN_NOVALIDATE: u32 = 256; -pub const OFN_ALLOWMULTISELECT: u32 = 512; -pub const OFN_EXTENSIONDIFFERENT: u32 = 1024; -pub const OFN_PATHMUSTEXIST: u32 = 2048; -pub const OFN_FILEMUSTEXIST: u32 = 4096; -pub const OFN_CREATEPROMPT: u32 = 8192; -pub const OFN_SHAREAWARE: u32 = 16384; -pub const OFN_NOREADONLYRETURN: u32 = 32768; -pub const OFN_NOTESTFILECREATE: u32 = 65536; -pub const OFN_NONETWORKBUTTON: u32 = 131072; -pub const OFN_NOLONGNAMES: u32 = 262144; -pub const OFN_EXPLORER: u32 = 524288; -pub const OFN_NODEREFERENCELINKS: u32 = 1048576; -pub const OFN_LONGNAMES: u32 = 2097152; -pub const OFN_ENABLEINCLUDENOTIFY: u32 = 4194304; -pub const OFN_ENABLESIZING: u32 = 8388608; -pub const OFN_DONTADDTORECENT: u32 = 33554432; -pub const OFN_FORCESHOWHIDDEN: u32 = 268435456; -pub const OFN_EX_NOPLACESBAR: u32 = 1; -pub const OFN_SHAREFALLTHROUGH: u32 = 2; -pub const OFN_SHARENOWARN: u32 = 1; -pub const OFN_SHAREWARN: u32 = 0; -pub const CDN_FIRST: i32 = -601; -pub const CDN_LAST: i32 = -699; -pub const CDN_INITDONE: i32 = -601; -pub const CDN_SELCHANGE: i32 = -602; -pub const CDN_FOLDERCHANGE: i32 = -603; -pub const CDN_SHAREVIOLATION: i32 = -604; -pub const CDN_HELP: i32 = -605; -pub const CDN_FILEOK: i32 = -606; -pub const CDN_TYPECHANGE: i32 = -607; -pub const CDN_INCLUDEITEM: i32 = -608; -pub const CDM_FIRST: u32 = 1124; -pub const CDM_LAST: u32 = 1224; -pub const CDM_GETSPEC: u32 = 1124; -pub const CDM_GETFILEPATH: u32 = 1125; -pub const CDM_GETFOLDERPATH: u32 = 1126; -pub const CDM_GETFOLDERIDLIST: u32 = 1127; -pub const CDM_SETCONTROLTEXT: u32 = 1128; -pub const CDM_HIDECONTROL: u32 = 1129; -pub const CDM_SETDEFEXT: u32 = 1130; -pub const CC_RGBINIT: u32 = 1; -pub const CC_FULLOPEN: u32 = 2; -pub const CC_PREVENTFULLOPEN: u32 = 4; -pub const CC_SHOWHELP: u32 = 8; -pub const CC_ENABLEHOOK: u32 = 16; -pub const CC_ENABLETEMPLATE: u32 = 32; -pub const CC_ENABLETEMPLATEHANDLE: u32 = 64; -pub const CC_SOLIDCOLOR: u32 = 128; -pub const CC_ANYCOLOR: u32 = 256; -pub const FR_DOWN: u32 = 1; -pub const FR_WHOLEWORD: u32 = 2; -pub const FR_MATCHCASE: u32 = 4; -pub const FR_FINDNEXT: u32 = 8; -pub const FR_REPLACE: u32 = 16; -pub const FR_REPLACEALL: u32 = 32; -pub const FR_DIALOGTERM: u32 = 64; -pub const FR_SHOWHELP: u32 = 128; -pub const FR_ENABLEHOOK: u32 = 256; -pub const FR_ENABLETEMPLATE: u32 = 512; -pub const FR_NOUPDOWN: u32 = 1024; -pub const FR_NOMATCHCASE: u32 = 2048; -pub const FR_NOWHOLEWORD: u32 = 4096; -pub const FR_ENABLETEMPLATEHANDLE: u32 = 8192; -pub const FR_HIDEUPDOWN: u32 = 16384; -pub const FR_HIDEMATCHCASE: u32 = 32768; -pub const FR_HIDEWHOLEWORD: u32 = 65536; -pub const FR_RAW: u32 = 131072; -pub const FR_SHOWWRAPAROUND: u32 = 262144; -pub const FR_NOWRAPAROUND: u32 = 524288; -pub const FR_WRAPAROUND: u32 = 1048576; -pub const FR_MATCHDIAC: u32 = 536870912; -pub const FR_MATCHKASHIDA: u32 = 1073741824; -pub const FR_MATCHALEFHAMZA: u32 = 2147483648; -pub const FRM_FIRST: u32 = 1124; -pub const FRM_LAST: u32 = 1224; -pub const FRM_SETOPERATIONRESULT: u32 = 1124; -pub const FRM_SETOPERATIONRESULTTEXT: u32 = 1125; -pub const CF_SCREENFONTS: u32 = 1; -pub const CF_PRINTERFONTS: u32 = 2; -pub const CF_BOTH: u32 = 3; -pub const CF_SHOWHELP: u32 = 4; -pub const CF_ENABLEHOOK: u32 = 8; -pub const CF_ENABLETEMPLATE: u32 = 16; -pub const CF_ENABLETEMPLATEHANDLE: u32 = 32; -pub const CF_INITTOLOGFONTSTRUCT: u32 = 64; -pub const CF_USESTYLE: u32 = 128; -pub const CF_EFFECTS: u32 = 256; -pub const CF_APPLY: u32 = 512; -pub const CF_ANSIONLY: u32 = 1024; -pub const CF_SCRIPTSONLY: u32 = 1024; -pub const CF_NOVECTORFONTS: u32 = 2048; -pub const CF_NOOEMFONTS: u32 = 2048; -pub const CF_NOSIMULATIONS: u32 = 4096; -pub const CF_LIMITSIZE: u32 = 8192; -pub const CF_FIXEDPITCHONLY: u32 = 16384; -pub const CF_WYSIWYG: u32 = 32768; -pub const CF_FORCEFONTEXIST: u32 = 65536; -pub const CF_SCALABLEONLY: u32 = 131072; -pub const CF_TTONLY: u32 = 262144; -pub const CF_NOFACESEL: u32 = 524288; -pub const CF_NOSTYLESEL: u32 = 1048576; -pub const CF_NOSIZESEL: u32 = 2097152; -pub const CF_SELECTSCRIPT: u32 = 4194304; -pub const CF_NOSCRIPTSEL: u32 = 8388608; -pub const CF_NOVERTFONTS: u32 = 16777216; -pub const CF_INACTIVEFONTS: u32 = 33554432; -pub const SIMULATED_FONTTYPE: u32 = 32768; -pub const PRINTER_FONTTYPE: u32 = 16384; -pub const SCREEN_FONTTYPE: u32 = 8192; -pub const BOLD_FONTTYPE: u32 = 256; -pub const ITALIC_FONTTYPE: u32 = 512; -pub const REGULAR_FONTTYPE: u32 = 1024; -pub const PS_OPENTYPE_FONTTYPE: u32 = 65536; -pub const TT_OPENTYPE_FONTTYPE: u32 = 131072; -pub const TYPE1_FONTTYPE: u32 = 262144; -pub const SYMBOL_FONTTYPE: u32 = 524288; -pub const WM_CHOOSEFONT_GETLOGFONT: u32 = 1025; -pub const WM_CHOOSEFONT_SETLOGFONT: u32 = 1125; -pub const WM_CHOOSEFONT_SETFLAGS: u32 = 1126; -pub const LBSELCHSTRINGA: &[u8; 27] = b"commdlg_LBSelChangedNotify\0"; -pub const SHAREVISTRINGA: &[u8; 23] = b"commdlg_ShareViolation\0"; -pub const FILEOKSTRINGA: &[u8; 19] = b"commdlg_FileNameOK\0"; -pub const COLOROKSTRINGA: &[u8; 16] = b"commdlg_ColorOK\0"; -pub const SETRGBSTRINGA: &[u8; 20] = b"commdlg_SetRGBColor\0"; -pub const HELPMSGSTRINGA: &[u8; 13] = b"commdlg_help\0"; -pub const FINDMSGSTRINGA: &[u8; 20] = b"commdlg_FindReplace\0"; -pub const LBSELCHSTRINGW: &[u8; 27] = b"commdlg_LBSelChangedNotify\0"; -pub const SHAREVISTRINGW: &[u8; 23] = b"commdlg_ShareViolation\0"; -pub const FILEOKSTRINGW: &[u8; 19] = b"commdlg_FileNameOK\0"; -pub const COLOROKSTRINGW: &[u8; 16] = b"commdlg_ColorOK\0"; -pub const SETRGBSTRINGW: &[u8; 20] = b"commdlg_SetRGBColor\0"; -pub const HELPMSGSTRINGW: &[u8; 13] = b"commdlg_help\0"; -pub const FINDMSGSTRINGW: &[u8; 20] = b"commdlg_FindReplace\0"; -pub const LBSELCHSTRING: &[u8; 27] = b"commdlg_LBSelChangedNotify\0"; -pub const SHAREVISTRING: &[u8; 23] = b"commdlg_ShareViolation\0"; -pub const FILEOKSTRING: &[u8; 19] = b"commdlg_FileNameOK\0"; -pub const COLOROKSTRING: &[u8; 16] = b"commdlg_ColorOK\0"; -pub const SETRGBSTRING: &[u8; 20] = b"commdlg_SetRGBColor\0"; -pub const HELPMSGSTRING: &[u8; 13] = b"commdlg_help\0"; -pub const FINDMSGSTRING: &[u8; 20] = b"commdlg_FindReplace\0"; -pub const CD_LBSELNOITEMS: i32 = -1; -pub const CD_LBSELCHANGE: u32 = 0; -pub const CD_LBSELSUB: u32 = 1; -pub const CD_LBSELADD: u32 = 2; -pub const PD_ALLPAGES: u32 = 0; -pub const PD_SELECTION: u32 = 1; -pub const PD_PAGENUMS: u32 = 2; -pub const PD_NOSELECTION: u32 = 4; -pub const PD_NOPAGENUMS: u32 = 8; -pub const PD_COLLATE: u32 = 16; -pub const PD_PRINTTOFILE: u32 = 32; -pub const PD_PRINTSETUP: u32 = 64; -pub const PD_NOWARNING: u32 = 128; -pub const PD_RETURNDC: u32 = 256; -pub const PD_RETURNIC: u32 = 512; -pub const PD_RETURNDEFAULT: u32 = 1024; -pub const PD_SHOWHELP: u32 = 2048; -pub const PD_ENABLEPRINTHOOK: u32 = 4096; -pub const PD_ENABLESETUPHOOK: u32 = 8192; -pub const PD_ENABLEPRINTTEMPLATE: u32 = 16384; -pub const PD_ENABLESETUPTEMPLATE: u32 = 32768; -pub const PD_ENABLEPRINTTEMPLATEHANDLE: u32 = 65536; -pub const PD_ENABLESETUPTEMPLATEHANDLE: u32 = 131072; -pub const PD_USEDEVMODECOPIES: u32 = 262144; -pub const PD_USEDEVMODECOPIESANDCOLLATE: u32 = 262144; -pub const PD_DISABLEPRINTTOFILE: u32 = 524288; -pub const PD_HIDEPRINTTOFILE: u32 = 1048576; -pub const PD_NONETWORKBUTTON: u32 = 2097152; -pub const PD_CURRENTPAGE: u32 = 4194304; -pub const PD_NOCURRENTPAGE: u32 = 8388608; -pub const PD_EXCLUSIONFLAGS: u32 = 16777216; -pub const PD_USELARGETEMPLATE: u32 = 268435456; -pub const PD_EXCL_COPIESANDCOLLATE: u32 = 33024; -pub const START_PAGE_GENERAL: u32 = 4294967295; -pub const PD_RESULT_CANCEL: u32 = 0; -pub const PD_RESULT_PRINT: u32 = 1; -pub const PD_RESULT_APPLY: u32 = 2; -pub const DN_DEFAULTPRN: u32 = 1; -pub const WM_PSD_PAGESETUPDLG: u32 = 1024; -pub const WM_PSD_FULLPAGERECT: u32 = 1025; -pub const WM_PSD_MINMARGINRECT: u32 = 1026; -pub const WM_PSD_MARGINRECT: u32 = 1027; -pub const WM_PSD_GREEKTEXTRECT: u32 = 1028; -pub const WM_PSD_ENVSTAMPRECT: u32 = 1029; -pub const WM_PSD_YAFULLPAGERECT: u32 = 1030; -pub const PSD_DEFAULTMINMARGINS: u32 = 0; -pub const PSD_INWININIINTLMEASURE: u32 = 0; -pub const PSD_MINMARGINS: u32 = 1; -pub const PSD_MARGINS: u32 = 2; -pub const PSD_INTHOUSANDTHSOFINCHES: u32 = 4; -pub const PSD_INHUNDREDTHSOFMILLIMETERS: u32 = 8; -pub const PSD_DISABLEMARGINS: u32 = 16; -pub const PSD_DISABLEPRINTER: u32 = 32; -pub const PSD_NOWARNING: u32 = 128; -pub const PSD_DISABLEORIENTATION: u32 = 256; -pub const PSD_RETURNDEFAULT: u32 = 1024; -pub const PSD_DISABLEPAPER: u32 = 512; -pub const PSD_SHOWHELP: u32 = 2048; -pub const PSD_ENABLEPAGESETUPHOOK: u32 = 8192; -pub const PSD_ENABLEPAGESETUPTEMPLATE: u32 = 32768; -pub const PSD_ENABLEPAGESETUPTEMPLATEHANDLE: u32 = 131072; -pub const PSD_ENABLEPAGEPAINTHOOK: u32 = 262144; -pub const PSD_DISABLEPAGEPAINTING: u32 = 524288; -pub const PSD_NONETWORKBUTTON: u32 = 2097152; -pub const _STRALIGN_USE_SECURE_CRT: u32 = 1; -pub const SERVICES_ACTIVE_DATABASEW: &[u8; 15] = b"ServicesActive\0"; -pub const SERVICES_FAILED_DATABASEW: &[u8; 15] = b"ServicesFailed\0"; -pub const SERVICES_ACTIVE_DATABASEA: &[u8; 15] = b"ServicesActive\0"; -pub const SERVICES_FAILED_DATABASEA: &[u8; 15] = b"ServicesFailed\0"; -pub const SC_GROUP_IDENTIFIERW: u8 = 43u8; -pub const SC_GROUP_IDENTIFIERA: u8 = 43u8; -pub const SERVICES_ACTIVE_DATABASE: &[u8; 15] = b"ServicesActive\0"; -pub const SERVICES_FAILED_DATABASE: &[u8; 15] = b"ServicesFailed\0"; -pub const SC_GROUP_IDENTIFIER: u8 = 43u8; -pub const SERVICE_NO_CHANGE: u32 = 4294967295; -pub const SERVICE_ACTIVE: u32 = 1; -pub const SERVICE_INACTIVE: u32 = 2; -pub const SERVICE_STATE_ALL: u32 = 3; -pub const SERVICE_CONTROL_STOP: u32 = 1; -pub const SERVICE_CONTROL_PAUSE: u32 = 2; -pub const SERVICE_CONTROL_CONTINUE: u32 = 3; -pub const SERVICE_CONTROL_INTERROGATE: u32 = 4; -pub const SERVICE_CONTROL_SHUTDOWN: u32 = 5; -pub const SERVICE_CONTROL_PARAMCHANGE: u32 = 6; -pub const SERVICE_CONTROL_NETBINDADD: u32 = 7; -pub const SERVICE_CONTROL_NETBINDREMOVE: u32 = 8; -pub const SERVICE_CONTROL_NETBINDENABLE: u32 = 9; -pub const SERVICE_CONTROL_NETBINDDISABLE: u32 = 10; -pub const SERVICE_CONTROL_DEVICEEVENT: u32 = 11; -pub const SERVICE_CONTROL_HARDWAREPROFILECHANGE: u32 = 12; -pub const SERVICE_CONTROL_POWEREVENT: u32 = 13; -pub const SERVICE_CONTROL_SESSIONCHANGE: u32 = 14; -pub const SERVICE_CONTROL_PRESHUTDOWN: u32 = 15; -pub const SERVICE_CONTROL_TIMECHANGE: u32 = 16; -pub const SERVICE_CONTROL_TRIGGEREVENT: u32 = 32; -pub const SERVICE_CONTROL_LOWRESOURCES: u32 = 96; -pub const SERVICE_CONTROL_SYSTEMLOWRESOURCES: u32 = 97; -pub const SERVICE_STOPPED: u32 = 1; -pub const SERVICE_START_PENDING: u32 = 2; -pub const SERVICE_STOP_PENDING: u32 = 3; -pub const SERVICE_RUNNING: u32 = 4; -pub const SERVICE_CONTINUE_PENDING: u32 = 5; -pub const SERVICE_PAUSE_PENDING: u32 = 6; -pub const SERVICE_PAUSED: u32 = 7; -pub const SERVICE_ACCEPT_STOP: u32 = 1; -pub const SERVICE_ACCEPT_PAUSE_CONTINUE: u32 = 2; -pub const SERVICE_ACCEPT_SHUTDOWN: u32 = 4; -pub const SERVICE_ACCEPT_PARAMCHANGE: u32 = 8; -pub const SERVICE_ACCEPT_NETBINDCHANGE: u32 = 16; -pub const SERVICE_ACCEPT_HARDWAREPROFILECHANGE: u32 = 32; -pub const SERVICE_ACCEPT_POWEREVENT: u32 = 64; -pub const SERVICE_ACCEPT_SESSIONCHANGE: u32 = 128; -pub const SERVICE_ACCEPT_PRESHUTDOWN: u32 = 256; -pub const SERVICE_ACCEPT_TIMECHANGE: u32 = 512; -pub const SERVICE_ACCEPT_TRIGGEREVENT: u32 = 1024; -pub const SERVICE_ACCEPT_USER_LOGOFF: u32 = 2048; -pub const SERVICE_ACCEPT_LOWRESOURCES: u32 = 8192; -pub const SERVICE_ACCEPT_SYSTEMLOWRESOURCES: u32 = 16384; -pub const SC_MANAGER_CONNECT: u32 = 1; -pub const SC_MANAGER_CREATE_SERVICE: u32 = 2; -pub const SC_MANAGER_ENUMERATE_SERVICE: u32 = 4; -pub const SC_MANAGER_LOCK: u32 = 8; -pub const SC_MANAGER_QUERY_LOCK_STATUS: u32 = 16; -pub const SC_MANAGER_MODIFY_BOOT_CONFIG: u32 = 32; -pub const SC_MANAGER_ALL_ACCESS: u32 = 983103; -pub const SERVICE_QUERY_CONFIG: u32 = 1; -pub const SERVICE_CHANGE_CONFIG: u32 = 2; -pub const SERVICE_QUERY_STATUS: u32 = 4; -pub const SERVICE_ENUMERATE_DEPENDENTS: u32 = 8; -pub const SERVICE_START: u32 = 16; -pub const SERVICE_STOP: u32 = 32; -pub const SERVICE_PAUSE_CONTINUE: u32 = 64; -pub const SERVICE_INTERROGATE: u32 = 128; -pub const SERVICE_USER_DEFINED_CONTROL: u32 = 256; -pub const SERVICE_ALL_ACCESS: u32 = 983551; -pub const SERVICE_RUNS_IN_SYSTEM_PROCESS: u32 = 1; -pub const SERVICE_CONFIG_DESCRIPTION: u32 = 1; -pub const SERVICE_CONFIG_FAILURE_ACTIONS: u32 = 2; -pub const SERVICE_CONFIG_DELAYED_AUTO_START_INFO: u32 = 3; -pub const SERVICE_CONFIG_FAILURE_ACTIONS_FLAG: u32 = 4; -pub const SERVICE_CONFIG_SERVICE_SID_INFO: u32 = 5; -pub const SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO: u32 = 6; -pub const SERVICE_CONFIG_PRESHUTDOWN_INFO: u32 = 7; -pub const SERVICE_CONFIG_TRIGGER_INFO: u32 = 8; -pub const SERVICE_CONFIG_PREFERRED_NODE: u32 = 9; -pub const SERVICE_CONFIG_LAUNCH_PROTECTED: u32 = 12; -pub const SERVICE_NOTIFY_STATUS_CHANGE_1: u32 = 1; -pub const SERVICE_NOTIFY_STATUS_CHANGE_2: u32 = 2; -pub const SERVICE_NOTIFY_STATUS_CHANGE: u32 = 2; -pub const SERVICE_NOTIFY_STOPPED: u32 = 1; -pub const SERVICE_NOTIFY_START_PENDING: u32 = 2; -pub const SERVICE_NOTIFY_STOP_PENDING: u32 = 4; -pub const SERVICE_NOTIFY_RUNNING: u32 = 8; -pub const SERVICE_NOTIFY_CONTINUE_PENDING: u32 = 16; -pub const SERVICE_NOTIFY_PAUSE_PENDING: u32 = 32; -pub const SERVICE_NOTIFY_PAUSED: u32 = 64; -pub const SERVICE_NOTIFY_CREATED: u32 = 128; -pub const SERVICE_NOTIFY_DELETED: u32 = 256; -pub const SERVICE_NOTIFY_DELETE_PENDING: u32 = 512; -pub const SERVICE_STOP_REASON_FLAG_MIN: u32 = 0; -pub const SERVICE_STOP_REASON_FLAG_UNPLANNED: u32 = 268435456; -pub const SERVICE_STOP_REASON_FLAG_CUSTOM: u32 = 536870912; -pub const SERVICE_STOP_REASON_FLAG_PLANNED: u32 = 1073741824; -pub const SERVICE_STOP_REASON_FLAG_MAX: u32 = 2147483648; -pub const SERVICE_STOP_REASON_MAJOR_MIN: u32 = 0; -pub const SERVICE_STOP_REASON_MAJOR_OTHER: u32 = 65536; -pub const SERVICE_STOP_REASON_MAJOR_HARDWARE: u32 = 131072; -pub const SERVICE_STOP_REASON_MAJOR_OPERATINGSYSTEM: u32 = 196608; -pub const SERVICE_STOP_REASON_MAJOR_SOFTWARE: u32 = 262144; -pub const SERVICE_STOP_REASON_MAJOR_APPLICATION: u32 = 327680; -pub const SERVICE_STOP_REASON_MAJOR_NONE: u32 = 393216; -pub const SERVICE_STOP_REASON_MAJOR_MAX: u32 = 458752; -pub const SERVICE_STOP_REASON_MAJOR_MIN_CUSTOM: u32 = 4194304; -pub const SERVICE_STOP_REASON_MAJOR_MAX_CUSTOM: u32 = 16711680; -pub const SERVICE_STOP_REASON_MINOR_MIN: u32 = 0; -pub const SERVICE_STOP_REASON_MINOR_OTHER: u32 = 1; -pub const SERVICE_STOP_REASON_MINOR_MAINTENANCE: u32 = 2; -pub const SERVICE_STOP_REASON_MINOR_INSTALLATION: u32 = 3; -pub const SERVICE_STOP_REASON_MINOR_UPGRADE: u32 = 4; -pub const SERVICE_STOP_REASON_MINOR_RECONFIG: u32 = 5; -pub const SERVICE_STOP_REASON_MINOR_HUNG: u32 = 6; -pub const SERVICE_STOP_REASON_MINOR_UNSTABLE: u32 = 7; -pub const SERVICE_STOP_REASON_MINOR_DISK: u32 = 8; -pub const SERVICE_STOP_REASON_MINOR_NETWORKCARD: u32 = 9; -pub const SERVICE_STOP_REASON_MINOR_ENVIRONMENT: u32 = 10; -pub const SERVICE_STOP_REASON_MINOR_HARDWARE_DRIVER: u32 = 11; -pub const SERVICE_STOP_REASON_MINOR_OTHERDRIVER: u32 = 12; -pub const SERVICE_STOP_REASON_MINOR_SERVICEPACK: u32 = 13; -pub const SERVICE_STOP_REASON_MINOR_SOFTWARE_UPDATE: u32 = 14; -pub const SERVICE_STOP_REASON_MINOR_SECURITYFIX: u32 = 15; -pub const SERVICE_STOP_REASON_MINOR_SECURITY: u32 = 16; -pub const SERVICE_STOP_REASON_MINOR_NETWORK_CONNECTIVITY: u32 = 17; -pub const SERVICE_STOP_REASON_MINOR_WMI: u32 = 18; -pub const SERVICE_STOP_REASON_MINOR_SERVICEPACK_UNINSTALL: u32 = 19; -pub const SERVICE_STOP_REASON_MINOR_SOFTWARE_UPDATE_UNINSTALL: u32 = 20; -pub const SERVICE_STOP_REASON_MINOR_SECURITYFIX_UNINSTALL: u32 = 21; -pub const SERVICE_STOP_REASON_MINOR_MMC: u32 = 22; -pub const SERVICE_STOP_REASON_MINOR_NONE: u32 = 23; -pub const SERVICE_STOP_REASON_MINOR_MEMOTYLIMIT: u32 = 24; -pub const SERVICE_STOP_REASON_MINOR_MAX: u32 = 25; -pub const SERVICE_STOP_REASON_MINOR_MIN_CUSTOM: u32 = 256; -pub const SERVICE_STOP_REASON_MINOR_MAX_CUSTOM: u32 = 65535; -pub const SERVICE_CONTROL_STATUS_REASON_INFO: u32 = 1; -pub const SERVICE_SID_TYPE_NONE: u32 = 0; -pub const SERVICE_SID_TYPE_UNRESTRICTED: u32 = 1; -pub const SERVICE_SID_TYPE_RESTRICTED: u32 = 3; -pub const SERVICE_TRIGGER_TYPE_DEVICE_INTERFACE_ARRIVAL: u32 = 1; -pub const SERVICE_TRIGGER_TYPE_IP_ADDRESS_AVAILABILITY: u32 = 2; -pub const SERVICE_TRIGGER_TYPE_DOMAIN_JOIN: u32 = 3; -pub const SERVICE_TRIGGER_TYPE_FIREWALL_PORT_EVENT: u32 = 4; -pub const SERVICE_TRIGGER_TYPE_GROUP_POLICY: u32 = 5; -pub const SERVICE_TRIGGER_TYPE_NETWORK_ENDPOINT: u32 = 6; -pub const SERVICE_TRIGGER_TYPE_CUSTOM_SYSTEM_STATE_CHANGE: u32 = 7; -pub const SERVICE_TRIGGER_TYPE_CUSTOM: u32 = 20; -pub const SERVICE_TRIGGER_TYPE_AGGREGATE: u32 = 30; -pub const SERVICE_TRIGGER_DATA_TYPE_BINARY: u32 = 1; -pub const SERVICE_TRIGGER_DATA_TYPE_STRING: u32 = 2; -pub const SERVICE_TRIGGER_DATA_TYPE_LEVEL: u32 = 3; -pub const SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ANY: u32 = 4; -pub const SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ALL: u32 = 5; -pub const SERVICE_START_REASON_DEMAND: u32 = 1; -pub const SERVICE_START_REASON_AUTO: u32 = 2; -pub const SERVICE_START_REASON_TRIGGER: u32 = 4; -pub const SERVICE_START_REASON_RESTART_ON_FAILURE: u32 = 8; -pub const SERVICE_START_REASON_DELAYEDAUTO: u32 = 16; -pub const SERVICE_DYNAMIC_INFORMATION_LEVEL_START_REASON: u32 = 1; -pub const SERVICE_LAUNCH_PROTECTED_NONE: u32 = 0; -pub const SERVICE_LAUNCH_PROTECTED_WINDOWS: u32 = 1; -pub const SERVICE_LAUNCH_PROTECTED_WINDOWS_LIGHT: u32 = 2; -pub const SERVICE_LAUNCH_PROTECTED_ANTIMALWARE_LIGHT: u32 = 3; -pub const SERVICE_TRIGGER_ACTION_SERVICE_START: u32 = 1; -pub const SERVICE_TRIGGER_ACTION_SERVICE_STOP: u32 = 2; -pub const SERVICE_TRIGGER_STARTED_ARGUMENT: &[u8; 15] = b"TriggerStarted\0"; -pub const SC_AGGREGATE_STORAGE_KEY: &[u8; 57] = - b"System\\CurrentControlSet\\Control\\ServiceAggregatedEvents\0"; -pub const DIALOPTION_BILLING: u32 = 64; -pub const DIALOPTION_QUIET: u32 = 128; -pub const DIALOPTION_DIALTONE: u32 = 256; -pub const MDMVOLFLAG_LOW: u32 = 1; -pub const MDMVOLFLAG_MEDIUM: u32 = 2; -pub const MDMVOLFLAG_HIGH: u32 = 4; -pub const MDMVOL_LOW: u32 = 0; -pub const MDMVOL_MEDIUM: u32 = 1; -pub const MDMVOL_HIGH: u32 = 2; -pub const MDMSPKRFLAG_OFF: u32 = 1; -pub const MDMSPKRFLAG_DIAL: u32 = 2; -pub const MDMSPKRFLAG_ON: u32 = 4; -pub const MDMSPKRFLAG_CALLSETUP: u32 = 8; -pub const MDMSPKR_OFF: u32 = 0; -pub const MDMSPKR_DIAL: u32 = 1; -pub const MDMSPKR_ON: u32 = 2; -pub const MDMSPKR_CALLSETUP: u32 = 3; -pub const MDM_COMPRESSION: u32 = 1; -pub const MDM_ERROR_CONTROL: u32 = 2; -pub const MDM_FORCED_EC: u32 = 4; -pub const MDM_CELLULAR: u32 = 8; -pub const MDM_FLOWCONTROL_HARD: u32 = 16; -pub const MDM_FLOWCONTROL_SOFT: u32 = 32; -pub const MDM_CCITT_OVERRIDE: u32 = 64; -pub const MDM_SPEED_ADJUST: u32 = 128; -pub const MDM_TONE_DIAL: u32 = 256; -pub const MDM_BLIND_DIAL: u32 = 512; -pub const MDM_V23_OVERRIDE: u32 = 1024; -pub const MDM_DIAGNOSTICS: u32 = 2048; -pub const MDM_MASK_BEARERMODE: u32 = 61440; -pub const MDM_SHIFT_BEARERMODE: u32 = 12; -pub const MDM_MASK_PROTOCOLID: u32 = 983040; -pub const MDM_SHIFT_PROTOCOLID: u32 = 16; -pub const MDM_MASK_PROTOCOLDATA: u32 = 267386880; -pub const MDM_SHIFT_PROTOCOLDATA: u32 = 20; -pub const MDM_MASK_PROTOCOLINFO: u32 = 268369920; -pub const MDM_SHIFT_PROTOCOLINFO: u32 = 16; -pub const MDM_MASK_EXTENDEDINFO: u32 = 268431360; -pub const MDM_SHIFT_EXTENDEDINFO: u32 = 12; -pub const MDM_BEARERMODE_ANALOG: u32 = 0; -pub const MDM_BEARERMODE_ISDN: u32 = 1; -pub const MDM_BEARERMODE_GSM: u32 = 2; -pub const MDM_PROTOCOLID_DEFAULT: u32 = 0; -pub const MDM_PROTOCOLID_HDLCPPP: u32 = 1; -pub const MDM_PROTOCOLID_V128: u32 = 2; -pub const MDM_PROTOCOLID_X75: u32 = 3; -pub const MDM_PROTOCOLID_V110: u32 = 4; -pub const MDM_PROTOCOLID_V120: u32 = 5; -pub const MDM_PROTOCOLID_AUTO: u32 = 6; -pub const MDM_PROTOCOLID_ANALOG: u32 = 7; -pub const MDM_PROTOCOLID_GPRS: u32 = 8; -pub const MDM_PROTOCOLID_PIAFS: u32 = 9; -pub const MDM_SHIFT_HDLCPPP_SPEED: u32 = 0; -pub const MDM_MASK_HDLCPPP_SPEED: u32 = 7; -pub const MDM_HDLCPPP_SPEED_DEFAULT: u32 = 0; -pub const MDM_HDLCPPP_SPEED_64K: u32 = 1; -pub const MDM_HDLCPPP_SPEED_56K: u32 = 2; -pub const MDM_SHIFT_HDLCPPP_AUTH: u32 = 3; -pub const MDM_MASK_HDLCPPP_AUTH: u32 = 56; -pub const MDM_HDLCPPP_AUTH_DEFAULT: u32 = 0; -pub const MDM_HDLCPPP_AUTH_NONE: u32 = 1; -pub const MDM_HDLCPPP_AUTH_PAP: u32 = 2; -pub const MDM_HDLCPPP_AUTH_CHAP: u32 = 3; -pub const MDM_HDLCPPP_AUTH_MSCHAP: u32 = 4; -pub const MDM_SHIFT_HDLCPPP_ML: u32 = 6; -pub const MDM_MASK_HDLCPPP_ML: u32 = 192; -pub const MDM_HDLCPPP_ML_DEFAULT: u32 = 0; -pub const MDM_HDLCPPP_ML_NONE: u32 = 1; -pub const MDM_HDLCPPP_ML_2: u32 = 2; -pub const MDM_SHIFT_V120_SPEED: u32 = 0; -pub const MDM_MASK_V120_SPEED: u32 = 7; -pub const MDM_V120_SPEED_DEFAULT: u32 = 0; -pub const MDM_V120_SPEED_64K: u32 = 1; -pub const MDM_V120_SPEED_56K: u32 = 2; -pub const MDM_SHIFT_V120_ML: u32 = 6; -pub const MDM_MASK_V120_ML: u32 = 192; -pub const MDM_V120_ML_DEFAULT: u32 = 0; -pub const MDM_V120_ML_NONE: u32 = 1; -pub const MDM_V120_ML_2: u32 = 2; -pub const MDM_SHIFT_X75_DATA: u32 = 0; -pub const MDM_MASK_X75_DATA: u32 = 7; -pub const MDM_X75_DATA_DEFAULT: u32 = 0; -pub const MDM_X75_DATA_64K: u32 = 1; -pub const MDM_X75_DATA_128K: u32 = 2; -pub const MDM_X75_DATA_T_70: u32 = 3; -pub const MDM_X75_DATA_BTX: u32 = 4; -pub const MDM_SHIFT_V110_SPEED: u32 = 0; -pub const MDM_MASK_V110_SPEED: u32 = 15; -pub const MDM_V110_SPEED_DEFAULT: u32 = 0; -pub const MDM_V110_SPEED_1DOT2K: u32 = 1; -pub const MDM_V110_SPEED_2DOT4K: u32 = 2; -pub const MDM_V110_SPEED_4DOT8K: u32 = 3; -pub const MDM_V110_SPEED_9DOT6K: u32 = 4; -pub const MDM_V110_SPEED_12DOT0K: u32 = 5; -pub const MDM_V110_SPEED_14DOT4K: u32 = 6; -pub const MDM_V110_SPEED_19DOT2K: u32 = 7; -pub const MDM_V110_SPEED_28DOT8K: u32 = 8; -pub const MDM_V110_SPEED_38DOT4K: u32 = 9; -pub const MDM_V110_SPEED_57DOT6K: u32 = 10; -pub const MDM_SHIFT_AUTO_SPEED: u32 = 0; -pub const MDM_MASK_AUTO_SPEED: u32 = 7; -pub const MDM_AUTO_SPEED_DEFAULT: u32 = 0; -pub const MDM_SHIFT_AUTO_ML: u32 = 6; -pub const MDM_MASK_AUTO_ML: u32 = 192; -pub const MDM_AUTO_ML_DEFAULT: u32 = 0; -pub const MDM_AUTO_ML_NONE: u32 = 1; -pub const MDM_AUTO_ML_2: u32 = 2; -pub const MDM_ANALOG_RLP_ON: u32 = 0; -pub const MDM_ANALOG_RLP_OFF: u32 = 1; -pub const MDM_ANALOG_V34: u32 = 2; -pub const MDM_PIAFS_INCOMING: u32 = 0; -pub const MDM_PIAFS_OUTGOING: u32 = 1; -pub const STYLE_DESCRIPTION_SIZE: u32 = 32; -pub const IMEMENUITEM_STRING_SIZE: u32 = 80; -pub const IMC_GETCANDIDATEPOS: u32 = 7; -pub const IMC_SETCANDIDATEPOS: u32 = 8; -pub const IMC_GETCOMPOSITIONFONT: u32 = 9; -pub const IMC_SETCOMPOSITIONFONT: u32 = 10; -pub const IMC_GETCOMPOSITIONWINDOW: u32 = 11; -pub const IMC_SETCOMPOSITIONWINDOW: u32 = 12; -pub const IMC_GETSTATUSWINDOWPOS: u32 = 15; -pub const IMC_SETSTATUSWINDOWPOS: u32 = 16; -pub const IMC_CLOSESTATUSWINDOW: u32 = 33; -pub const IMC_OPENSTATUSWINDOW: u32 = 34; -pub const NI_OPENCANDIDATE: u32 = 16; -pub const NI_CLOSECANDIDATE: u32 = 17; -pub const NI_SELECTCANDIDATESTR: u32 = 18; -pub const NI_CHANGECANDIDATELIST: u32 = 19; -pub const NI_FINALIZECONVERSIONRESULT: u32 = 20; -pub const NI_COMPOSITIONSTR: u32 = 21; -pub const NI_SETCANDIDATE_PAGESTART: u32 = 22; -pub const NI_SETCANDIDATE_PAGESIZE: u32 = 23; -pub const NI_IMEMENUSELECTED: u32 = 24; -pub const ISC_SHOWUICANDIDATEWINDOW: u32 = 1; -pub const ISC_SHOWUICOMPOSITIONWINDOW: u32 = 2147483648; -pub const ISC_SHOWUIGUIDELINE: u32 = 1073741824; -pub const ISC_SHOWUIALLCANDIDATEWINDOW: u32 = 15; -pub const ISC_SHOWUIALL: u32 = 3221225487; -pub const CPS_COMPLETE: u32 = 1; -pub const CPS_CONVERT: u32 = 2; -pub const CPS_REVERT: u32 = 3; -pub const CPS_CANCEL: u32 = 4; -pub const MOD_LEFT: u32 = 32768; -pub const MOD_RIGHT: u32 = 16384; -pub const MOD_ON_KEYUP: u32 = 2048; -pub const MOD_IGNORE_ALL_MODIFIER: u32 = 1024; -pub const IME_CHOTKEY_IME_NONIME_TOGGLE: u32 = 16; -pub const IME_CHOTKEY_SHAPE_TOGGLE: u32 = 17; -pub const IME_CHOTKEY_SYMBOL_TOGGLE: u32 = 18; -pub const IME_JHOTKEY_CLOSE_OPEN: u32 = 48; -pub const IME_KHOTKEY_SHAPE_TOGGLE: u32 = 80; -pub const IME_KHOTKEY_HANJACONVERT: u32 = 81; -pub const IME_KHOTKEY_ENGLISH: u32 = 82; -pub const IME_THOTKEY_IME_NONIME_TOGGLE: u32 = 112; -pub const IME_THOTKEY_SHAPE_TOGGLE: u32 = 113; -pub const IME_THOTKEY_SYMBOL_TOGGLE: u32 = 114; -pub const IME_HOTKEY_DSWITCH_FIRST: u32 = 256; -pub const IME_HOTKEY_DSWITCH_LAST: u32 = 287; -pub const IME_HOTKEY_PRIVATE_FIRST: u32 = 512; -pub const IME_ITHOTKEY_RESEND_RESULTSTR: u32 = 512; -pub const IME_ITHOTKEY_PREVIOUS_COMPOSITION: u32 = 513; -pub const IME_ITHOTKEY_UISTYLE_TOGGLE: u32 = 514; -pub const IME_ITHOTKEY_RECONVERTSTRING: u32 = 515; -pub const IME_HOTKEY_PRIVATE_LAST: u32 = 543; -pub const GCS_COMPREADSTR: u32 = 1; -pub const GCS_COMPREADATTR: u32 = 2; -pub const GCS_COMPREADCLAUSE: u32 = 4; -pub const GCS_COMPSTR: u32 = 8; -pub const GCS_COMPATTR: u32 = 16; -pub const GCS_COMPCLAUSE: u32 = 32; -pub const GCS_CURSORPOS: u32 = 128; -pub const GCS_DELTASTART: u32 = 256; -pub const GCS_RESULTREADSTR: u32 = 512; -pub const GCS_RESULTREADCLAUSE: u32 = 1024; -pub const GCS_RESULTSTR: u32 = 2048; -pub const GCS_RESULTCLAUSE: u32 = 4096; -pub const CS_INSERTCHAR: u32 = 8192; -pub const CS_NOMOVECARET: u32 = 16384; -pub const IMEVER_0310: u32 = 196618; -pub const IMEVER_0400: u32 = 262144; -pub const IME_PROP_AT_CARET: u32 = 65536; -pub const IME_PROP_SPECIAL_UI: u32 = 131072; -pub const IME_PROP_CANDLIST_START_FROM_1: u32 = 262144; -pub const IME_PROP_UNICODE: u32 = 524288; -pub const IME_PROP_COMPLETE_ON_UNSELECT: u32 = 1048576; -pub const UI_CAP_2700: u32 = 1; -pub const UI_CAP_ROT90: u32 = 2; -pub const UI_CAP_ROTANY: u32 = 4; -pub const SCS_CAP_COMPSTR: u32 = 1; -pub const SCS_CAP_MAKEREAD: u32 = 2; -pub const SCS_CAP_SETRECONVERTSTRING: u32 = 4; -pub const SELECT_CAP_CONVERSION: u32 = 1; -pub const SELECT_CAP_SENTENCE: u32 = 2; -pub const GGL_LEVEL: u32 = 1; -pub const GGL_INDEX: u32 = 2; -pub const GGL_STRING: u32 = 3; -pub const GGL_PRIVATE: u32 = 4; -pub const GL_LEVEL_NOGUIDELINE: u32 = 0; -pub const GL_LEVEL_FATAL: u32 = 1; -pub const GL_LEVEL_ERROR: u32 = 2; -pub const GL_LEVEL_WARNING: u32 = 3; -pub const GL_LEVEL_INFORMATION: u32 = 4; -pub const GL_ID_UNKNOWN: u32 = 0; -pub const GL_ID_NOMODULE: u32 = 1; -pub const GL_ID_NODICTIONARY: u32 = 16; -pub const GL_ID_CANNOTSAVE: u32 = 17; -pub const GL_ID_NOCONVERT: u32 = 32; -pub const GL_ID_TYPINGERROR: u32 = 33; -pub const GL_ID_TOOMANYSTROKE: u32 = 34; -pub const GL_ID_READINGCONFLICT: u32 = 35; -pub const GL_ID_INPUTREADING: u32 = 36; -pub const GL_ID_INPUTRADICAL: u32 = 37; -pub const GL_ID_INPUTCODE: u32 = 38; -pub const GL_ID_INPUTSYMBOL: u32 = 39; -pub const GL_ID_CHOOSECANDIDATE: u32 = 40; -pub const GL_ID_REVERSECONVERSION: u32 = 41; -pub const GL_ID_PRIVATE_FIRST: u32 = 32768; -pub const GL_ID_PRIVATE_LAST: u32 = 65535; -pub const IGP_PROPERTY: u32 = 4; -pub const IGP_CONVERSION: u32 = 8; -pub const IGP_SENTENCE: u32 = 12; -pub const IGP_UI: u32 = 16; -pub const IGP_SETCOMPSTR: u32 = 20; -pub const IGP_SELECT: u32 = 24; -pub const SCS_SETSTR: u32 = 9; -pub const SCS_CHANGEATTR: u32 = 18; -pub const SCS_CHANGECLAUSE: u32 = 36; -pub const SCS_SETRECONVERTSTRING: u32 = 65536; -pub const SCS_QUERYRECONVERTSTRING: u32 = 131072; -pub const ATTR_INPUT: u32 = 0; -pub const ATTR_TARGET_CONVERTED: u32 = 1; -pub const ATTR_CONVERTED: u32 = 2; -pub const ATTR_TARGET_NOTCONVERTED: u32 = 3; -pub const ATTR_INPUT_ERROR: u32 = 4; -pub const ATTR_FIXEDCONVERTED: u32 = 5; -pub const CFS_DEFAULT: u32 = 0; -pub const CFS_RECT: u32 = 1; -pub const CFS_POINT: u32 = 2; -pub const CFS_FORCE_POSITION: u32 = 32; -pub const CFS_CANDIDATEPOS: u32 = 64; -pub const CFS_EXCLUDE: u32 = 128; -pub const GCL_CONVERSION: u32 = 1; -pub const GCL_REVERSECONVERSION: u32 = 2; -pub const GCL_REVERSE_LENGTH: u32 = 3; -pub const IME_CMODE_ALPHANUMERIC: u32 = 0; -pub const IME_CMODE_NATIVE: u32 = 1; -pub const IME_CMODE_CHINESE: u32 = 1; -pub const IME_CMODE_HANGUL: u32 = 1; -pub const IME_CMODE_JAPANESE: u32 = 1; -pub const IME_CMODE_KATAKANA: u32 = 2; -pub const IME_CMODE_LANGUAGE: u32 = 3; -pub const IME_CMODE_FULLSHAPE: u32 = 8; -pub const IME_CMODE_ROMAN: u32 = 16; -pub const IME_CMODE_CHARCODE: u32 = 32; -pub const IME_CMODE_HANJACONVERT: u32 = 64; -pub const IME_CMODE_NATIVESYMBOL: u32 = 128; -pub const IME_CMODE_HANGEUL: u32 = 1; -pub const IME_CMODE_SOFTKBD: u32 = 128; -pub const IME_CMODE_NOCONVERSION: u32 = 256; -pub const IME_CMODE_EUDC: u32 = 512; -pub const IME_CMODE_SYMBOL: u32 = 1024; -pub const IME_CMODE_FIXED: u32 = 2048; -pub const IME_CMODE_RESERVED: u32 = 4026531840; -pub const IME_SMODE_NONE: u32 = 0; -pub const IME_SMODE_PLAURALCLAUSE: u32 = 1; -pub const IME_SMODE_SINGLECONVERT: u32 = 2; -pub const IME_SMODE_AUTOMATIC: u32 = 4; -pub const IME_SMODE_PHRASEPREDICT: u32 = 8; -pub const IME_SMODE_CONVERSATION: u32 = 16; -pub const IME_SMODE_RESERVED: u32 = 61440; -pub const IME_CAND_UNKNOWN: u32 = 0; -pub const IME_CAND_READ: u32 = 1; -pub const IME_CAND_CODE: u32 = 2; -pub const IME_CAND_MEANING: u32 = 3; -pub const IME_CAND_RADICAL: u32 = 4; -pub const IME_CAND_STROKE: u32 = 5; -pub const IMN_CLOSESTATUSWINDOW: u32 = 1; -pub const IMN_OPENSTATUSWINDOW: u32 = 2; -pub const IMN_CHANGECANDIDATE: u32 = 3; -pub const IMN_CLOSECANDIDATE: u32 = 4; -pub const IMN_OPENCANDIDATE: u32 = 5; -pub const IMN_SETCONVERSIONMODE: u32 = 6; -pub const IMN_SETSENTENCEMODE: u32 = 7; -pub const IMN_SETOPENSTATUS: u32 = 8; -pub const IMN_SETCANDIDATEPOS: u32 = 9; -pub const IMN_SETCOMPOSITIONFONT: u32 = 10; -pub const IMN_SETCOMPOSITIONWINDOW: u32 = 11; -pub const IMN_SETSTATUSWINDOWPOS: u32 = 12; -pub const IMN_GUIDELINE: u32 = 13; -pub const IMN_PRIVATE: u32 = 14; -pub const IMR_COMPOSITIONWINDOW: u32 = 1; -pub const IMR_CANDIDATEWINDOW: u32 = 2; -pub const IMR_COMPOSITIONFONT: u32 = 3; -pub const IMR_RECONVERTSTRING: u32 = 4; -pub const IMR_CONFIRMRECONVERTSTRING: u32 = 5; -pub const IMR_QUERYCHARPOSITION: u32 = 6; -pub const IMR_DOCUMENTFEED: u32 = 7; -pub const IMM_ERROR_NODATA: i32 = -1; -pub const IMM_ERROR_GENERAL: i32 = -2; -pub const IME_CONFIG_GENERAL: u32 = 1; -pub const IME_CONFIG_REGISTERWORD: u32 = 2; -pub const IME_CONFIG_SELECTDICTIONARY: u32 = 3; -pub const IME_ESC_QUERY_SUPPORT: u32 = 3; -pub const IME_ESC_RESERVED_FIRST: u32 = 4; -pub const IME_ESC_RESERVED_LAST: u32 = 2047; -pub const IME_ESC_PRIVATE_FIRST: u32 = 2048; -pub const IME_ESC_PRIVATE_LAST: u32 = 4095; -pub const IME_ESC_SEQUENCE_TO_INTERNAL: u32 = 4097; -pub const IME_ESC_GET_EUDC_DICTIONARY: u32 = 4099; -pub const IME_ESC_SET_EUDC_DICTIONARY: u32 = 4100; -pub const IME_ESC_MAX_KEY: u32 = 4101; -pub const IME_ESC_IME_NAME: u32 = 4102; -pub const IME_ESC_SYNC_HOTKEY: u32 = 4103; -pub const IME_ESC_HANJA_MODE: u32 = 4104; -pub const IME_ESC_AUTOMATA: u32 = 4105; -pub const IME_ESC_PRIVATE_HOTKEY: u32 = 4106; -pub const IME_ESC_GETHELPFILENAME: u32 = 4107; -pub const IME_REGWORD_STYLE_EUDC: u32 = 1; -pub const IME_REGWORD_STYLE_USER_FIRST: u32 = 2147483648; -pub const IME_REGWORD_STYLE_USER_LAST: u32 = 4294967295; -pub const IACE_CHILDREN: u32 = 1; -pub const IACE_DEFAULT: u32 = 16; -pub const IACE_IGNORENOCONTEXT: u32 = 32; -pub const IGIMIF_RIGHTMENU: u32 = 1; -pub const IGIMII_CMODE: u32 = 1; -pub const IGIMII_SMODE: u32 = 2; -pub const IGIMII_CONFIGURE: u32 = 4; -pub const IGIMII_TOOLS: u32 = 8; -pub const IGIMII_HELP: u32 = 16; -pub const IGIMII_OTHER: u32 = 32; -pub const IGIMII_INPUTTOOLS: u32 = 64; -pub const IMFT_RADIOCHECK: u32 = 1; -pub const IMFT_SEPARATOR: u32 = 2; -pub const IMFT_SUBMENU: u32 = 4; -pub const IMFS_GRAYED: u32 = 3; -pub const IMFS_DISABLED: u32 = 3; -pub const IMFS_CHECKED: u32 = 8; -pub const IMFS_HILITE: u32 = 128; -pub const IMFS_ENABLED: u32 = 0; -pub const IMFS_UNCHECKED: u32 = 0; -pub const IMFS_UNHILITE: u32 = 0; -pub const IMFS_DEFAULT: u32 = 4096; -pub const SOFTKEYBOARD_TYPE_T1: u32 = 1; -pub const SOFTKEYBOARD_TYPE_C1: u32 = 2; -pub const WCHAR_MIN: u32 = 0; -pub const WCHAR_MAX: u32 = 65535; -pub const WINT_MIN: u32 = 0; -pub const WINT_MAX: u32 = 65535; -pub const PRId8: &[u8; 4] = b"hhd\0"; -pub const PRId16: &[u8; 3] = b"hd\0"; -pub const PRId32: &[u8; 2] = b"d\0"; -pub const PRId64: &[u8; 4] = b"lld\0"; -pub const PRIdLEAST8: &[u8; 4] = b"hhd\0"; -pub const PRIdLEAST16: &[u8; 3] = b"hd\0"; -pub const PRIdLEAST32: &[u8; 2] = b"d\0"; -pub const PRIdLEAST64: &[u8; 4] = b"lld\0"; -pub const PRIdFAST8: &[u8; 4] = b"hhd\0"; -pub const PRIdFAST16: &[u8; 2] = b"d\0"; -pub const PRIdFAST32: &[u8; 2] = b"d\0"; -pub const PRIdFAST64: &[u8; 4] = b"lld\0"; -pub const PRIdMAX: &[u8; 4] = b"lld\0"; -pub const PRIdPTR: &[u8; 4] = b"lld\0"; -pub const PRIi8: &[u8; 4] = b"hhi\0"; -pub const PRIi16: &[u8; 3] = b"hi\0"; -pub const PRIi32: &[u8; 2] = b"i\0"; -pub const PRIi64: &[u8; 4] = b"lli\0"; -pub const PRIiLEAST8: &[u8; 4] = b"hhi\0"; -pub const PRIiLEAST16: &[u8; 3] = b"hi\0"; -pub const PRIiLEAST32: &[u8; 2] = b"i\0"; -pub const PRIiLEAST64: &[u8; 4] = b"lli\0"; -pub const PRIiFAST8: &[u8; 4] = b"hhi\0"; -pub const PRIiFAST16: &[u8; 2] = b"i\0"; -pub const PRIiFAST32: &[u8; 2] = b"i\0"; -pub const PRIiFAST64: &[u8; 4] = b"lli\0"; -pub const PRIiMAX: &[u8; 4] = b"lli\0"; -pub const PRIiPTR: &[u8; 4] = b"lli\0"; -pub const PRIo8: &[u8; 4] = b"hho\0"; -pub const PRIo16: &[u8; 3] = b"ho\0"; -pub const PRIo32: &[u8; 2] = b"o\0"; -pub const PRIo64: &[u8; 4] = b"llo\0"; -pub const PRIoLEAST8: &[u8; 4] = b"hho\0"; -pub const PRIoLEAST16: &[u8; 3] = b"ho\0"; -pub const PRIoLEAST32: &[u8; 2] = b"o\0"; -pub const PRIoLEAST64: &[u8; 4] = b"llo\0"; -pub const PRIoFAST8: &[u8; 4] = b"hho\0"; -pub const PRIoFAST16: &[u8; 2] = b"o\0"; -pub const PRIoFAST32: &[u8; 2] = b"o\0"; -pub const PRIoFAST64: &[u8; 4] = b"llo\0"; -pub const PRIoMAX: &[u8; 4] = b"llo\0"; -pub const PRIoPTR: &[u8; 4] = b"llo\0"; -pub const PRIu8: &[u8; 4] = b"hhu\0"; -pub const PRIu16: &[u8; 3] = b"hu\0"; -pub const PRIu32: &[u8; 2] = b"u\0"; -pub const PRIu64: &[u8; 4] = b"llu\0"; -pub const PRIuLEAST8: &[u8; 4] = b"hhu\0"; -pub const PRIuLEAST16: &[u8; 3] = b"hu\0"; -pub const PRIuLEAST32: &[u8; 2] = b"u\0"; -pub const PRIuLEAST64: &[u8; 4] = b"llu\0"; -pub const PRIuFAST8: &[u8; 4] = b"hhu\0"; -pub const PRIuFAST16: &[u8; 2] = b"u\0"; -pub const PRIuFAST32: &[u8; 2] = b"u\0"; -pub const PRIuFAST64: &[u8; 4] = b"llu\0"; -pub const PRIuMAX: &[u8; 4] = b"llu\0"; -pub const PRIuPTR: &[u8; 4] = b"llu\0"; -pub const PRIx8: &[u8; 4] = b"hhx\0"; -pub const PRIx16: &[u8; 3] = b"hx\0"; -pub const PRIx32: &[u8; 2] = b"x\0"; -pub const PRIx64: &[u8; 4] = b"llx\0"; -pub const PRIxLEAST8: &[u8; 4] = b"hhx\0"; -pub const PRIxLEAST16: &[u8; 3] = b"hx\0"; -pub const PRIxLEAST32: &[u8; 2] = b"x\0"; -pub const PRIxLEAST64: &[u8; 4] = b"llx\0"; -pub const PRIxFAST8: &[u8; 4] = b"hhx\0"; -pub const PRIxFAST16: &[u8; 2] = b"x\0"; -pub const PRIxFAST32: &[u8; 2] = b"x\0"; -pub const PRIxFAST64: &[u8; 4] = b"llx\0"; -pub const PRIxMAX: &[u8; 4] = b"llx\0"; -pub const PRIxPTR: &[u8; 4] = b"llx\0"; -pub const PRIX8: &[u8; 4] = b"hhX\0"; -pub const PRIX16: &[u8; 3] = b"hX\0"; -pub const PRIX32: &[u8; 2] = b"X\0"; -pub const PRIX64: &[u8; 4] = b"llX\0"; -pub const PRIXLEAST8: &[u8; 4] = b"hhX\0"; -pub const PRIXLEAST16: &[u8; 3] = b"hX\0"; -pub const PRIXLEAST32: &[u8; 2] = b"X\0"; -pub const PRIXLEAST64: &[u8; 4] = b"llX\0"; -pub const PRIXFAST8: &[u8; 4] = b"hhX\0"; -pub const PRIXFAST16: &[u8; 2] = b"X\0"; -pub const PRIXFAST32: &[u8; 2] = b"X\0"; -pub const PRIXFAST64: &[u8; 4] = b"llX\0"; -pub const PRIXMAX: &[u8; 4] = b"llX\0"; -pub const PRIXPTR: &[u8; 4] = b"llX\0"; -pub const SCNd8: &[u8; 4] = b"hhd\0"; -pub const SCNd16: &[u8; 3] = b"hd\0"; -pub const SCNd32: &[u8; 2] = b"d\0"; -pub const SCNd64: &[u8; 4] = b"lld\0"; -pub const SCNdLEAST8: &[u8; 4] = b"hhd\0"; -pub const SCNdLEAST16: &[u8; 3] = b"hd\0"; -pub const SCNdLEAST32: &[u8; 2] = b"d\0"; -pub const SCNdLEAST64: &[u8; 4] = b"lld\0"; -pub const SCNdFAST8: &[u8; 4] = b"hhd\0"; -pub const SCNdFAST16: &[u8; 2] = b"d\0"; -pub const SCNdFAST32: &[u8; 2] = b"d\0"; -pub const SCNdFAST64: &[u8; 4] = b"lld\0"; -pub const SCNdMAX: &[u8; 4] = b"lld\0"; -pub const SCNdPTR: &[u8; 4] = b"lld\0"; -pub const SCNi8: &[u8; 4] = b"hhi\0"; -pub const SCNi16: &[u8; 3] = b"hi\0"; -pub const SCNi32: &[u8; 2] = b"i\0"; -pub const SCNi64: &[u8; 4] = b"lli\0"; -pub const SCNiLEAST8: &[u8; 4] = b"hhi\0"; -pub const SCNiLEAST16: &[u8; 3] = b"hi\0"; -pub const SCNiLEAST32: &[u8; 2] = b"i\0"; -pub const SCNiLEAST64: &[u8; 4] = b"lli\0"; -pub const SCNiFAST8: &[u8; 4] = b"hhi\0"; -pub const SCNiFAST16: &[u8; 2] = b"i\0"; -pub const SCNiFAST32: &[u8; 2] = b"i\0"; -pub const SCNiFAST64: &[u8; 4] = b"lli\0"; -pub const SCNiMAX: &[u8; 4] = b"lli\0"; -pub const SCNiPTR: &[u8; 4] = b"lli\0"; -pub const SCNo8: &[u8; 4] = b"hho\0"; -pub const SCNo16: &[u8; 3] = b"ho\0"; -pub const SCNo32: &[u8; 2] = b"o\0"; -pub const SCNo64: &[u8; 4] = b"llo\0"; -pub const SCNoLEAST8: &[u8; 4] = b"hho\0"; -pub const SCNoLEAST16: &[u8; 3] = b"ho\0"; -pub const SCNoLEAST32: &[u8; 2] = b"o\0"; -pub const SCNoLEAST64: &[u8; 4] = b"llo\0"; -pub const SCNoFAST8: &[u8; 4] = b"hho\0"; -pub const SCNoFAST16: &[u8; 2] = b"o\0"; -pub const SCNoFAST32: &[u8; 2] = b"o\0"; -pub const SCNoFAST64: &[u8; 4] = b"llo\0"; -pub const SCNoMAX: &[u8; 4] = b"llo\0"; -pub const SCNoPTR: &[u8; 4] = b"llo\0"; -pub const SCNu8: &[u8; 4] = b"hhu\0"; -pub const SCNu16: &[u8; 3] = b"hu\0"; -pub const SCNu32: &[u8; 2] = b"u\0"; -pub const SCNu64: &[u8; 4] = b"llu\0"; -pub const SCNuLEAST8: &[u8; 4] = b"hhu\0"; -pub const SCNuLEAST16: &[u8; 3] = b"hu\0"; -pub const SCNuLEAST32: &[u8; 2] = b"u\0"; -pub const SCNuLEAST64: &[u8; 4] = b"llu\0"; -pub const SCNuFAST8: &[u8; 4] = b"hhu\0"; -pub const SCNuFAST16: &[u8; 2] = b"u\0"; -pub const SCNuFAST32: &[u8; 2] = b"u\0"; -pub const SCNuFAST64: &[u8; 4] = b"llu\0"; -pub const SCNuMAX: &[u8; 4] = b"llu\0"; -pub const SCNuPTR: &[u8; 4] = b"llu\0"; -pub const SCNx8: &[u8; 4] = b"hhx\0"; -pub const SCNx16: &[u8; 3] = b"hx\0"; -pub const SCNx32: &[u8; 2] = b"x\0"; -pub const SCNx64: &[u8; 4] = b"llx\0"; -pub const SCNxLEAST8: &[u8; 4] = b"hhx\0"; -pub const SCNxLEAST16: &[u8; 3] = b"hx\0"; -pub const SCNxLEAST32: &[u8; 2] = b"x\0"; -pub const SCNxLEAST64: &[u8; 4] = b"llx\0"; -pub const SCNxFAST8: &[u8; 4] = b"hhx\0"; -pub const SCNxFAST16: &[u8; 2] = b"x\0"; -pub const SCNxFAST32: &[u8; 2] = b"x\0"; -pub const SCNxFAST64: &[u8; 4] = b"llx\0"; -pub const SCNxMAX: &[u8; 4] = b"llx\0"; -pub const SCNxPTR: &[u8; 4] = b"llx\0"; -pub const __bool_true_false_are_defined: u32 = 1; -pub const true_: u32 = 1; -pub const false_: u32 = 0; -pub type va_list = *mut ::std::os::raw::c_char; -extern "C" { - pub fn __va_start(arg1: *mut *mut ::std::os::raw::c_char, ...); -} -pub type __vcrt_bool = bool; -pub type wchar_t = ::std::os::raw::c_ushort; -extern "C" { - pub fn __security_init_cookie(); -} -extern "C" { - pub fn __security_check_cookie(_StackCookie: usize); -} -extern "C" { - pub fn __report_gsfailure(_StackCookie: usize) -> !; -} -extern "C" { - pub static mut __security_cookie: usize; -} -pub const _EXCEPTION_DISPOSITION_ExceptionContinueExecution: _EXCEPTION_DISPOSITION = 0; -pub const _EXCEPTION_DISPOSITION_ExceptionContinueSearch: _EXCEPTION_DISPOSITION = 1; -pub const _EXCEPTION_DISPOSITION_ExceptionNestedException: _EXCEPTION_DISPOSITION = 2; -pub const _EXCEPTION_DISPOSITION_ExceptionCollidedUnwind: _EXCEPTION_DISPOSITION = 3; -pub type _EXCEPTION_DISPOSITION = ::std::os::raw::c_int; -pub use self::_EXCEPTION_DISPOSITION as EXCEPTION_DISPOSITION; -extern "C" { - pub fn __C_specific_handler( - ExceptionRecord: *mut _EXCEPTION_RECORD, - EstablisherFrame: *mut ::std::os::raw::c_void, - ContextRecord: *mut _CONTEXT, - DispatcherContext: *mut _DISPATCHER_CONTEXT, - ) -> EXCEPTION_DISPOSITION; -} -extern "C" { - pub fn _exception_code() -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn _exception_info() -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _abnormal_termination() -> ::std::os::raw::c_int; -} -pub type __gnuc_va_list = __builtin_va_list; -pub type ULONG = ::std::os::raw::c_ulong; -pub type PULONG = *mut ULONG; -pub type USHORT = ::std::os::raw::c_ushort; -pub type PUSHORT = *mut USHORT; -pub type UCHAR = ::std::os::raw::c_uchar; -pub type PUCHAR = *mut UCHAR; -pub type PSZ = *mut ::std::os::raw::c_char; -pub type DWORD = ::std::os::raw::c_ulong; -pub type BOOL = ::std::os::raw::c_int; -pub type BYTE = ::std::os::raw::c_uchar; -pub type WORD = ::std::os::raw::c_ushort; -pub type FLOAT = f32; -pub type PFLOAT = *mut FLOAT; -pub type PBOOL = *mut BOOL; -pub type LPBOOL = *mut BOOL; -pub type PBYTE = *mut BYTE; -pub type LPBYTE = *mut BYTE; -pub type PINT = *mut ::std::os::raw::c_int; -pub type LPINT = *mut ::std::os::raw::c_int; -pub type PWORD = *mut WORD; -pub type LPWORD = *mut WORD; -pub type LPLONG = *mut ::std::os::raw::c_long; -pub type PDWORD = *mut DWORD; -pub type LPDWORD = *mut DWORD; -pub type LPVOID = *mut ::std::os::raw::c_void; -pub type LPCVOID = *const ::std::os::raw::c_void; -pub type INT = ::std::os::raw::c_int; -pub type UINT = ::std::os::raw::c_uint; -pub type PUINT = *mut ::std::os::raw::c_uint; -pub type __crt_bool = bool; -extern "C" { - pub fn _invalid_parameter_noinfo(); -} -extern "C" { - pub fn _invalid_parameter_noinfo_noreturn() -> !; -} -extern "C" { - pub fn _invoke_watson( - _Expression: *const wchar_t, - _FunctionName: *const wchar_t, - _FileName: *const wchar_t, - _LineNo: ::std::os::raw::c_uint, - _Reserved: usize, - ) -> !; -} -pub type errno_t = ::std::os::raw::c_int; -pub type wint_t = ::std::os::raw::c_ushort; -pub type wctype_t = ::std::os::raw::c_ushort; -pub type __time32_t = ::std::os::raw::c_long; -pub type __time64_t = ::std::os::raw::c_longlong; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __crt_locale_data_public { - pub _locale_pctype: *const ::std::os::raw::c_ushort, - pub _locale_mb_cur_max: ::std::os::raw::c_int, - pub _locale_lc_codepage: ::std::os::raw::c_uint, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __crt_locale_pointers { - pub locinfo: *mut __crt_locale_data, - pub mbcinfo: *mut __crt_multibyte_data, -} -pub type _locale_t = *mut __crt_locale_pointers; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _Mbstatet { - pub _Wchar: ::std::os::raw::c_ulong, - pub _Byte: ::std::os::raw::c_ushort, - pub _State: ::std::os::raw::c_ushort, -} -pub type mbstate_t = _Mbstatet; -pub type time_t = __time64_t; -pub type rsize_t = usize; -extern "C" { - pub fn __pctype_func() -> *const ::std::os::raw::c_ushort; -} -extern "C" { - pub fn __pwctype_func() -> *const wctype_t; -} -extern "C" { - pub fn iswalnum(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn iswalpha(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn iswascii(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn iswblank(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn iswcntrl(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn iswdigit(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn iswgraph(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn iswlower(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn iswprint(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn iswpunct(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn iswspace(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn iswupper(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn iswxdigit(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn __iswcsymf(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn __iswcsym(_C: wint_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iswalnum_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iswalpha_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iswblank_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iswcntrl_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iswdigit_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iswgraph_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iswlower_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iswprint_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iswpunct_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iswspace_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iswupper_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iswxdigit_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iswcsymf_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iswcsym_l(_C: wint_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn towupper(_C: wint_t) -> wint_t; -} -extern "C" { - pub fn towlower(_C: wint_t) -> wint_t; -} -extern "C" { - pub fn iswctype(_C: wint_t, _Type: wctype_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _towupper_l(_C: wint_t, _Locale: _locale_t) -> wint_t; -} -extern "C" { - pub fn _towlower_l(_C: wint_t, _Locale: _locale_t) -> wint_t; -} -extern "C" { - pub fn _iswctype_l(_C: wint_t, _Type: wctype_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn isleadbyte(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _isleadbyte_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn is_wctype(_C: wint_t, _Type: wctype_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _isctype( - _C: ::std::os::raw::c_int, - _Type: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _isctype_l( - _C: ::std::os::raw::c_int, - _Type: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn isalpha(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _isalpha_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn isupper(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _isupper_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn islower(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _islower_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn isdigit(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _isdigit_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn isxdigit(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _isxdigit_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn isspace(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _isspace_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ispunct(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _ispunct_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn isblank(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _isblank_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn isalnum(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _isalnum_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn isprint(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _isprint_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn isgraph(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _isgraph_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn iscntrl(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _iscntrl_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn toupper(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn tolower(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _tolower(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _tolower_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _toupper(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _toupper_l(_C: ::std::os::raw::c_int, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn __isascii(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn __toascii(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn __iscsymf(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn __iscsym(_C: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ___mb_cur_max_func() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ___mb_cur_max_l_func(_Locale: _locale_t) -> ::std::os::raw::c_int; -} -pub type POINTER_64_INT = ::std::os::raw::c_ulonglong; -pub type INT8 = ::std::os::raw::c_schar; -pub type PINT8 = *mut ::std::os::raw::c_schar; -pub type INT16 = ::std::os::raw::c_short; -pub type PINT16 = *mut ::std::os::raw::c_short; -pub type INT32 = ::std::os::raw::c_int; -pub type PINT32 = *mut ::std::os::raw::c_int; -pub type INT64 = ::std::os::raw::c_longlong; -pub type PINT64 = *mut ::std::os::raw::c_longlong; -pub type UINT8 = ::std::os::raw::c_uchar; -pub type PUINT8 = *mut ::std::os::raw::c_uchar; -pub type UINT16 = ::std::os::raw::c_ushort; -pub type PUINT16 = *mut ::std::os::raw::c_ushort; -pub type UINT32 = ::std::os::raw::c_uint; -pub type PUINT32 = *mut ::std::os::raw::c_uint; -pub type UINT64 = ::std::os::raw::c_ulonglong; -pub type PUINT64 = *mut ::std::os::raw::c_ulonglong; -pub type LONG32 = ::std::os::raw::c_int; -pub type PLONG32 = *mut ::std::os::raw::c_int; -pub type ULONG32 = ::std::os::raw::c_uint; -pub type PULONG32 = *mut ::std::os::raw::c_uint; -pub type DWORD32 = ::std::os::raw::c_uint; -pub type PDWORD32 = *mut ::std::os::raw::c_uint; -pub type INT_PTR = ::std::os::raw::c_longlong; -pub type PINT_PTR = *mut ::std::os::raw::c_longlong; -pub type UINT_PTR = ::std::os::raw::c_ulonglong; -pub type PUINT_PTR = *mut ::std::os::raw::c_ulonglong; -pub type LONG_PTR = ::std::os::raw::c_longlong; -pub type PLONG_PTR = *mut ::std::os::raw::c_longlong; -pub type ULONG_PTR = ::std::os::raw::c_ulonglong; -pub type PULONG_PTR = *mut ::std::os::raw::c_ulonglong; -pub type PHANDLE64 = *mut *mut ::std::os::raw::c_void; -pub type SHANDLE_PTR = ::std::os::raw::c_longlong; -pub type HANDLE_PTR = ::std::os::raw::c_ulonglong; -pub type UHALF_PTR = ::std::os::raw::c_uint; -pub type PUHALF_PTR = *mut ::std::os::raw::c_uint; -pub type HALF_PTR = ::std::os::raw::c_int; -pub type PHALF_PTR = *mut ::std::os::raw::c_int; -pub type SIZE_T = ULONG_PTR; -pub type PSIZE_T = *mut ULONG_PTR; -pub type SSIZE_T = LONG_PTR; -pub type PSSIZE_T = *mut LONG_PTR; -pub type DWORD_PTR = ULONG_PTR; -pub type PDWORD_PTR = *mut ULONG_PTR; -pub type LONG64 = ::std::os::raw::c_longlong; -pub type PLONG64 = *mut ::std::os::raw::c_longlong; -pub type ULONG64 = ::std::os::raw::c_ulonglong; -pub type PULONG64 = *mut ::std::os::raw::c_ulonglong; -pub type DWORD64 = ::std::os::raw::c_ulonglong; -pub type PDWORD64 = *mut ::std::os::raw::c_ulonglong; -pub type KAFFINITY = ULONG_PTR; -pub type PKAFFINITY = *mut KAFFINITY; -pub type PVOID = *mut ::std::os::raw::c_void; -pub type CHAR = ::std::os::raw::c_char; -pub type SHORT = ::std::os::raw::c_short; -pub type LONG = ::std::os::raw::c_long; -pub type WCHAR = wchar_t; -pub type PWCHAR = *mut WCHAR; -pub type LPWCH = *mut WCHAR; -pub type PWCH = *mut WCHAR; -pub type LPCWCH = *const WCHAR; -pub type PCWCH = *const WCHAR; -pub type NWPSTR = *mut WCHAR; -pub type LPWSTR = *mut WCHAR; -pub type PWSTR = *mut WCHAR; -pub type PZPWSTR = *mut PWSTR; -pub type PCZPWSTR = *const PWSTR; -pub type LPUWSTR = *mut WCHAR; -pub type PUWSTR = *mut WCHAR; -pub type LPCWSTR = *const WCHAR; -pub type PCWSTR = *const WCHAR; -pub type PZPCWSTR = *mut PCWSTR; -pub type PCZPCWSTR = *const PCWSTR; -pub type LPCUWSTR = *const WCHAR; -pub type PCUWSTR = *const WCHAR; -pub type PZZWSTR = *mut WCHAR; -pub type PCZZWSTR = *const WCHAR; -pub type PUZZWSTR = *mut WCHAR; -pub type PCUZZWSTR = *const WCHAR; -pub type PNZWCH = *mut WCHAR; -pub type PCNZWCH = *const WCHAR; -pub type PUNZWCH = *mut WCHAR; -pub type PCUNZWCH = *const WCHAR; -pub type LPCWCHAR = *const WCHAR; -pub type PCWCHAR = *const WCHAR; -pub type LPCUWCHAR = *const WCHAR; -pub type PCUWCHAR = *const WCHAR; -pub type UCSCHAR = ::std::os::raw::c_ulong; -pub type PUCSCHAR = *mut UCSCHAR; -pub type PCUCSCHAR = *const UCSCHAR; -pub type PUCSSTR = *mut UCSCHAR; -pub type PUUCSSTR = *mut UCSCHAR; -pub type PCUCSSTR = *const UCSCHAR; -pub type PCUUCSSTR = *const UCSCHAR; -pub type PUUCSCHAR = *mut UCSCHAR; -pub type PCUUCSCHAR = *const UCSCHAR; -pub type PCHAR = *mut CHAR; -pub type LPCH = *mut CHAR; -pub type PCH = *mut CHAR; -pub type LPCCH = *const CHAR; -pub type PCCH = *const CHAR; -pub type NPSTR = *mut CHAR; -pub type LPSTR = *mut CHAR; -pub type PSTR = *mut CHAR; -pub type PZPSTR = *mut PSTR; -pub type PCZPSTR = *const PSTR; -pub type LPCSTR = *const CHAR; -pub type PCSTR = *const CHAR; -pub type PZPCSTR = *mut PCSTR; -pub type PCZPCSTR = *const PCSTR; -pub type PZZSTR = *mut CHAR; -pub type PCZZSTR = *const CHAR; -pub type PNZCH = *mut CHAR; -pub type PCNZCH = *const CHAR; -pub type TCHAR = ::std::os::raw::c_char; -pub type PTCHAR = *mut ::std::os::raw::c_char; -pub type TBYTE = ::std::os::raw::c_uchar; -pub type PTBYTE = *mut ::std::os::raw::c_uchar; -pub type LPTCH = LPCH; -pub type PTCH = LPCH; -pub type LPCTCH = LPCCH; -pub type PCTCH = LPCCH; -pub type PTSTR = LPSTR; -pub type LPTSTR = LPSTR; -pub type PUTSTR = LPSTR; -pub type LPUTSTR = LPSTR; -pub type PCTSTR = LPCSTR; -pub type LPCTSTR = LPCSTR; -pub type PCUTSTR = LPCSTR; -pub type LPCUTSTR = LPCSTR; -pub type PZZTSTR = PZZSTR; -pub type PUZZTSTR = PZZSTR; -pub type PCZZTSTR = PCZZSTR; -pub type PCUZZTSTR = PCZZSTR; -pub type PZPTSTR = PZPSTR; -pub type PNZTCH = PNZCH; -pub type PUNZTCH = PNZCH; -pub type PCNZTCH = PCNZCH; -pub type PCUNZTCH = PCNZCH; -pub type PSHORT = *mut SHORT; -pub type PLONG = *mut LONG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESSOR_NUMBER { - pub Group: WORD, - pub Number: BYTE, - pub Reserved: BYTE, -} -pub type PROCESSOR_NUMBER = _PROCESSOR_NUMBER; -pub type PPROCESSOR_NUMBER = *mut _PROCESSOR_NUMBER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _GROUP_AFFINITY { - pub Mask: KAFFINITY, - pub Group: WORD, - pub Reserved: [WORD; 3usize], -} -pub type GROUP_AFFINITY = _GROUP_AFFINITY; -pub type PGROUP_AFFINITY = *mut _GROUP_AFFINITY; -pub type HANDLE = *mut ::std::os::raw::c_void; -pub type PHANDLE = *mut HANDLE; -pub type FCHAR = BYTE; -pub type FSHORT = WORD; -pub type FLONG = DWORD; -pub type HRESULT = ::std::os::raw::c_long; -pub type CCHAR = ::std::os::raw::c_char; -pub type LCID = DWORD; -pub type PLCID = PDWORD; -pub type LANGID = WORD; -pub const COMPARTMENT_ID_UNSPECIFIED_COMPARTMENT_ID: COMPARTMENT_ID = 0; -pub const COMPARTMENT_ID_DEFAULT_COMPARTMENT_ID: COMPARTMENT_ID = 1; -pub type COMPARTMENT_ID = ::std::os::raw::c_int; -pub type PCOMPARTMENT_ID = *mut COMPARTMENT_ID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FLOAT128 { - pub LowPart: ::std::os::raw::c_longlong, - pub HighPart: ::std::os::raw::c_longlong, -} -pub type FLOAT128 = _FLOAT128; -pub type PFLOAT128 = *mut FLOAT128; -pub type LONGLONG = ::std::os::raw::c_longlong; -pub type ULONGLONG = ::std::os::raw::c_ulonglong; -pub type PLONGLONG = *mut LONGLONG; -pub type PULONGLONG = *mut ULONGLONG; -pub type USN = LONGLONG; -#[repr(C)] -#[derive(Copy, Clone)] -pub union _LARGE_INTEGER { - pub __bindgen_anon_1: _LARGE_INTEGER__bindgen_ty_1, - pub u: _LARGE_INTEGER__bindgen_ty_2, - pub QuadPart: LONGLONG, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LARGE_INTEGER__bindgen_ty_1 { - pub LowPart: DWORD, - pub HighPart: LONG, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LARGE_INTEGER__bindgen_ty_2 { - pub LowPart: DWORD, - pub HighPart: LONG, -} -pub type LARGE_INTEGER = _LARGE_INTEGER; -pub type PLARGE_INTEGER = *mut LARGE_INTEGER; -#[repr(C)] -#[derive(Copy, Clone)] -pub union _ULARGE_INTEGER { - pub __bindgen_anon_1: _ULARGE_INTEGER__bindgen_ty_1, - pub u: _ULARGE_INTEGER__bindgen_ty_2, - pub QuadPart: ULONGLONG, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ULARGE_INTEGER__bindgen_ty_1 { - pub LowPart: DWORD, - pub HighPart: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ULARGE_INTEGER__bindgen_ty_2 { - pub LowPart: DWORD, - pub HighPart: DWORD, -} -pub type ULARGE_INTEGER = _ULARGE_INTEGER; -pub type PULARGE_INTEGER = *mut ULARGE_INTEGER; -pub type RTL_REFERENCE_COUNT = LONG_PTR; -pub type PRTL_REFERENCE_COUNT = *mut LONG_PTR; -pub type RTL_REFERENCE_COUNT32 = LONG; -pub type PRTL_REFERENCE_COUNT32 = *mut LONG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LUID { - pub LowPart: DWORD, - pub HighPart: LONG, -} -pub type LUID = _LUID; -pub type PLUID = *mut _LUID; -pub type DWORDLONG = ULONGLONG; -pub type PDWORDLONG = *mut DWORDLONG; -extern "C" { - pub fn _rotl8( - Value: ::std::os::raw::c_uchar, - Shift: ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _rotl16( - Value: ::std::os::raw::c_ushort, - Shift: ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_ushort; -} -extern "C" { - pub fn _rotr8( - Value: ::std::os::raw::c_uchar, - Shift: ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _rotr16( - Value: ::std::os::raw::c_ushort, - Shift: ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_ushort; -} -extern "C" { - pub fn _rotl( - Value: ::std::os::raw::c_uint, - Shift: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_uint; -} -extern "C" { - pub fn _rotl64( - Value: ::std::os::raw::c_ulonglong, - Shift: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn _rotr( - Value: ::std::os::raw::c_uint, - Shift: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_uint; -} -extern "C" { - pub fn _rotr64( - Value: ::std::os::raw::c_ulonglong, - Shift: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; -} -pub type BOOLEAN = BYTE; -pub type PBOOLEAN = *mut BOOLEAN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LIST_ENTRY { - pub Flink: *mut _LIST_ENTRY, - pub Blink: *mut _LIST_ENTRY, -} -pub type LIST_ENTRY = _LIST_ENTRY; -pub type PLIST_ENTRY = *mut _LIST_ENTRY; -pub type PRLIST_ENTRY = *mut _LIST_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SINGLE_LIST_ENTRY { - pub Next: *mut _SINGLE_LIST_ENTRY, -} -pub type SINGLE_LIST_ENTRY = _SINGLE_LIST_ENTRY; -pub type PSINGLE_LIST_ENTRY = *mut _SINGLE_LIST_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LIST_ENTRY32 { - pub Flink: DWORD, - pub Blink: DWORD, -} -pub type PLIST_ENTRY32 = *mut LIST_ENTRY32; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LIST_ENTRY64 { - pub Flink: ULONGLONG, - pub Blink: ULONGLONG, -} -pub type PLIST_ENTRY64 = *mut LIST_ENTRY64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _GUID { - pub Data1: ::std::os::raw::c_ulong, - pub Data2: ::std::os::raw::c_ushort, - pub Data3: ::std::os::raw::c_ushort, - pub Data4: [::std::os::raw::c_uchar; 8usize], -} -pub type GUID = _GUID; -pub type LPGUID = *mut GUID; -pub type LPCGUID = *const GUID; -pub type IID = GUID; -pub type LPIID = *mut IID; -pub type CLSID = GUID; -pub type LPCLSID = *mut CLSID; -pub type FMTID = GUID; -pub type LPFMTID = *mut FMTID; -extern "C" { - pub fn _errno() -> *mut ::std::os::raw::c_int; -} -extern "C" { - pub fn _set_errno(_Value: ::std::os::raw::c_int) -> errno_t; -} -extern "C" { - pub fn _get_errno(_Value: *mut ::std::os::raw::c_int) -> errno_t; -} -extern "C" { - pub fn __doserrno() -> *mut ::std::os::raw::c_ulong; -} -extern "C" { - pub fn _set_doserrno(_Value: ::std::os::raw::c_ulong) -> errno_t; -} -extern "C" { - pub fn _get_doserrno(_Value: *mut ::std::os::raw::c_ulong) -> errno_t; -} -extern "C" { - pub fn memchr( - _Buf: *const ::std::os::raw::c_void, - _Val: ::std::os::raw::c_int, - _MaxCount: ::std::os::raw::c_ulonglong, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn memcmp( - _Buf1: *const ::std::os::raw::c_void, - _Buf2: *const ::std::os::raw::c_void, - _Size: ::std::os::raw::c_ulonglong, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn memcpy( - _Dst: *mut ::std::os::raw::c_void, - _Src: *const ::std::os::raw::c_void, - _Size: ::std::os::raw::c_ulonglong, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn memmove( - _Dst: *mut ::std::os::raw::c_void, - _Src: *const ::std::os::raw::c_void, - _Size: ::std::os::raw::c_ulonglong, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn memset( - _Dst: *mut ::std::os::raw::c_void, - _Val: ::std::os::raw::c_int, - _Size: ::std::os::raw::c_ulonglong, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn strchr( - _Str: *const ::std::os::raw::c_char, - _Val: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strrchr( - _Str: *const ::std::os::raw::c_char, - _Ch: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strstr( - _Str: *const ::std::os::raw::c_char, - _SubStr: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn wcschr( - _Str: *const ::std::os::raw::c_ushort, - _Ch: ::std::os::raw::c_ushort, - ) -> *mut ::std::os::raw::c_ushort; -} -extern "C" { - pub fn wcsrchr(_Str: *const wchar_t, _Ch: wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn wcsstr(_Str: *const wchar_t, _SubStr: *const wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn _memicmp( - _Buf1: *const ::std::os::raw::c_void, - _Buf2: *const ::std::os::raw::c_void, - _Size: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _memicmp_l( - _Buf1: *const ::std::os::raw::c_void, - _Buf2: *const ::std::os::raw::c_void, - _Size: usize, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn memccpy( - _Dst: *mut ::std::os::raw::c_void, - _Src: *const ::std::os::raw::c_void, - _Val: ::std::os::raw::c_int, - _Size: ::std::os::raw::c_ulonglong, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn memicmp( - _Buf1: *const ::std::os::raw::c_void, - _Buf2: *const ::std::os::raw::c_void, - _Size: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn wcscat_s( - _Destination: *mut wchar_t, - _SizeInWords: rsize_t, - _Source: *const wchar_t, - ) -> errno_t; -} -extern "C" { - pub fn wcscpy_s( - _Destination: *mut wchar_t, - _SizeInWords: rsize_t, - _Source: *const wchar_t, - ) -> errno_t; -} -extern "C" { - pub fn wcsncat_s( - _Destination: *mut wchar_t, - _SizeInWords: rsize_t, - _Source: *const wchar_t, - _MaxCount: rsize_t, - ) -> errno_t; -} -extern "C" { - pub fn wcsncpy_s( - _Destination: *mut wchar_t, - _SizeInWords: rsize_t, - _Source: *const wchar_t, - _MaxCount: rsize_t, - ) -> errno_t; -} -extern "C" { - pub fn wcstok_s( - _String: *mut wchar_t, - _Delimiter: *const wchar_t, - _Context: *mut *mut wchar_t, - ) -> *mut wchar_t; -} -extern "C" { - pub fn _wcsdup(_String: *const wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn wcscat(_Destination: *mut wchar_t, _Source: *const wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn wcscmp( - _String1: *const ::std::os::raw::c_ushort, - _String2: *const ::std::os::raw::c_ushort, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn wcscpy(_Destination: *mut wchar_t, _Source: *const wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn wcscspn(_String: *const wchar_t, _Control: *const wchar_t) -> usize; -} -extern "C" { - pub fn wcslen(_String: *const ::std::os::raw::c_ushort) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn wcsnlen(_Source: *const wchar_t, _MaxCount: usize) -> usize; -} -extern "C" { - pub fn wcsncat( - _Destination: *mut wchar_t, - _Source: *const wchar_t, - _Count: usize, - ) -> *mut wchar_t; -} -extern "C" { - pub fn wcsncmp( - _String1: *const ::std::os::raw::c_ushort, - _String2: *const ::std::os::raw::c_ushort, - _MaxCount: ::std::os::raw::c_ulonglong, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn wcsncpy( - _Destination: *mut wchar_t, - _Source: *const wchar_t, - _Count: usize, - ) -> *mut wchar_t; -} -extern "C" { - pub fn wcspbrk(_String: *const wchar_t, _Control: *const wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn wcsspn(_String: *const wchar_t, _Control: *const wchar_t) -> usize; -} -extern "C" { - pub fn wcstok( - _String: *mut wchar_t, - _Delimiter: *const wchar_t, - _Context: *mut *mut wchar_t, - ) -> *mut wchar_t; -} -extern "C" { - pub fn _wcserror(_ErrorNumber: ::std::os::raw::c_int) -> *mut wchar_t; -} -extern "C" { - pub fn _wcserror_s( - _Buffer: *mut wchar_t, - _SizeInWords: usize, - _ErrorNumber: ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn __wcserror(_String: *const wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn __wcserror_s( - _Buffer: *mut wchar_t, - _SizeInWords: usize, - _ErrorMessage: *const wchar_t, - ) -> errno_t; -} -extern "C" { - pub fn _wcsicmp(_String1: *const wchar_t, _String2: *const wchar_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wcsicmp_l( - _String1: *const wchar_t, - _String2: *const wchar_t, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wcsnicmp( - _String1: *const wchar_t, - _String2: *const wchar_t, - _MaxCount: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wcsnicmp_l( - _String1: *const wchar_t, - _String2: *const wchar_t, - _MaxCount: usize, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wcsnset_s( - _Destination: *mut wchar_t, - _SizeInWords: usize, - _Value: wchar_t, - _MaxCount: usize, - ) -> errno_t; -} -extern "C" { - pub fn _wcsnset(_String: *mut wchar_t, _Value: wchar_t, _MaxCount: usize) -> *mut wchar_t; -} -extern "C" { - pub fn _wcsrev(_String: *mut wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn _wcsset_s(_Destination: *mut wchar_t, _SizeInWords: usize, _Value: wchar_t) -> errno_t; -} -extern "C" { - pub fn _wcsset(_String: *mut wchar_t, _Value: wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn _wcslwr_s(_String: *mut wchar_t, _SizeInWords: usize) -> errno_t; -} -extern "C" { - pub fn _wcslwr(_String: *mut wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn _wcslwr_s_l(_String: *mut wchar_t, _SizeInWords: usize, _Locale: _locale_t) -> errno_t; -} -extern "C" { - pub fn _wcslwr_l(_String: *mut wchar_t, _Locale: _locale_t) -> *mut wchar_t; -} -extern "C" { - pub fn _wcsupr_s(_String: *mut wchar_t, _Size: usize) -> errno_t; -} -extern "C" { - pub fn _wcsupr(_String: *mut wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn _wcsupr_s_l(_String: *mut wchar_t, _Size: usize, _Locale: _locale_t) -> errno_t; -} -extern "C" { - pub fn _wcsupr_l(_String: *mut wchar_t, _Locale: _locale_t) -> *mut wchar_t; -} -extern "C" { - pub fn wcsxfrm(_Destination: *mut wchar_t, _Source: *const wchar_t, _MaxCount: usize) -> usize; -} -extern "C" { - pub fn _wcsxfrm_l( - _Destination: *mut wchar_t, - _Source: *const wchar_t, - _MaxCount: usize, - _Locale: _locale_t, - ) -> usize; -} -extern "C" { - pub fn wcscoll(_String1: *const wchar_t, _String2: *const wchar_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wcscoll_l( - _String1: *const wchar_t, - _String2: *const wchar_t, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wcsicoll(_String1: *const wchar_t, _String2: *const wchar_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wcsicoll_l( - _String1: *const wchar_t, - _String2: *const wchar_t, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wcsncoll( - _String1: *const wchar_t, - _String2: *const wchar_t, - _MaxCount: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wcsncoll_l( - _String1: *const wchar_t, - _String2: *const wchar_t, - _MaxCount: usize, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wcsnicoll( - _String1: *const wchar_t, - _String2: *const wchar_t, - _MaxCount: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wcsnicoll_l( - _String1: *const wchar_t, - _String2: *const wchar_t, - _MaxCount: usize, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn wcsdup(_String: *const wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn wcsicmp(_String1: *const wchar_t, _String2: *const wchar_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn wcsnicmp( - _String1: *const wchar_t, - _String2: *const wchar_t, - _MaxCount: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn wcsnset(_String: *mut wchar_t, _Value: wchar_t, _MaxCount: usize) -> *mut wchar_t; -} -extern "C" { - pub fn wcsrev(_String: *mut wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn wcsset(_String: *mut wchar_t, _Value: wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn wcslwr(_String: *mut wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn wcsupr(_String: *mut wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn wcsicoll(_String1: *const wchar_t, _String2: *const wchar_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn strcpy_s( - _Destination: *mut ::std::os::raw::c_char, - _SizeInBytes: rsize_t, - _Source: *const ::std::os::raw::c_char, - ) -> errno_t; -} -extern "C" { - pub fn strcat_s( - _Destination: *mut ::std::os::raw::c_char, - _SizeInBytes: rsize_t, - _Source: *const ::std::os::raw::c_char, - ) -> errno_t; -} -extern "C" { - pub fn strerror_s( - _Buffer: *mut ::std::os::raw::c_char, - _SizeInBytes: usize, - _ErrorNumber: ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn strncat_s( - _Destination: *mut ::std::os::raw::c_char, - _SizeInBytes: rsize_t, - _Source: *const ::std::os::raw::c_char, - _MaxCount: rsize_t, - ) -> errno_t; -} -extern "C" { - pub fn strncpy_s( - _Destination: *mut ::std::os::raw::c_char, - _SizeInBytes: rsize_t, - _Source: *const ::std::os::raw::c_char, - _MaxCount: rsize_t, - ) -> errno_t; -} -extern "C" { - pub fn strtok_s( - _String: *mut ::std::os::raw::c_char, - _Delimiter: *const ::std::os::raw::c_char, - _Context: *mut *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _memccpy( - _Dst: *mut ::std::os::raw::c_void, - _Src: *const ::std::os::raw::c_void, - _Val: ::std::os::raw::c_int, - _MaxCount: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn strcat( - _Destination: *mut ::std::os::raw::c_char, - _Source: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strcmp( - _Str1: *const ::std::os::raw::c_char, - _Str2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _strcmpi( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn strcoll( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _strcoll_l( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn strcpy( - _Destination: *mut ::std::os::raw::c_char, - _Source: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strcspn( - _Str: *const ::std::os::raw::c_char, - _Control: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn _strdup(_Source: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _strerror(_ErrorMessage: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _strerror_s( - _Buffer: *mut ::std::os::raw::c_char, - _SizeInBytes: usize, - _ErrorMessage: *const ::std::os::raw::c_char, - ) -> errno_t; -} -extern "C" { - pub fn strerror(_ErrorMessage: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _stricmp( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _stricoll( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _stricoll_l( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _stricmp_l( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn strlen(_Str: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn _strlwr_s(_String: *mut ::std::os::raw::c_char, _Size: usize) -> errno_t; -} -extern "C" { - pub fn _strlwr(_String: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _strlwr_s_l( - _String: *mut ::std::os::raw::c_char, - _Size: usize, - _Locale: _locale_t, - ) -> errno_t; -} -extern "C" { - pub fn _strlwr_l( - _String: *mut ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strncat( - _Destination: *mut ::std::os::raw::c_char, - _Source: *const ::std::os::raw::c_char, - _Count: ::std::os::raw::c_ulonglong, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strncmp( - _Str1: *const ::std::os::raw::c_char, - _Str2: *const ::std::os::raw::c_char, - _MaxCount: ::std::os::raw::c_ulonglong, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _strnicmp( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - _MaxCount: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _strnicmp_l( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - _MaxCount: usize, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _strnicoll( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - _MaxCount: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _strnicoll_l( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - _MaxCount: usize, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _strncoll( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - _MaxCount: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _strncoll_l( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - _MaxCount: usize, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn __strncnt(_String: *const ::std::os::raw::c_char, _Count: usize) -> usize; -} -extern "C" { - pub fn strncpy( - _Destination: *mut ::std::os::raw::c_char, - _Source: *const ::std::os::raw::c_char, - _Count: ::std::os::raw::c_ulonglong, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strnlen(_String: *const ::std::os::raw::c_char, _MaxCount: usize) -> usize; -} -extern "C" { - pub fn _strnset_s( - _String: *mut ::std::os::raw::c_char, - _SizeInBytes: usize, - _Value: ::std::os::raw::c_int, - _MaxCount: usize, - ) -> errno_t; -} -extern "C" { - pub fn _strnset( - _Destination: *mut ::std::os::raw::c_char, - _Value: ::std::os::raw::c_int, - _Count: usize, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strpbrk( - _Str: *const ::std::os::raw::c_char, - _Control: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _strrev(_Str: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _strset_s( - _Destination: *mut ::std::os::raw::c_char, - _DestinationSize: usize, - _Value: ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn _strset( - _Destination: *mut ::std::os::raw::c_char, - _Value: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strspn( - _Str: *const ::std::os::raw::c_char, - _Control: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn strtok( - _String: *mut ::std::os::raw::c_char, - _Delimiter: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _strupr_s(_String: *mut ::std::os::raw::c_char, _Size: usize) -> errno_t; -} -extern "C" { - pub fn _strupr(_String: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _strupr_s_l( - _String: *mut ::std::os::raw::c_char, - _Size: usize, - _Locale: _locale_t, - ) -> errno_t; -} -extern "C" { - pub fn _strupr_l( - _String: *mut ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strxfrm( - _Destination: *mut ::std::os::raw::c_char, - _Source: *const ::std::os::raw::c_char, - _MaxCount: ::std::os::raw::c_ulonglong, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn _strxfrm_l( - _Destination: *mut ::std::os::raw::c_char, - _Source: *const ::std::os::raw::c_char, - _MaxCount: usize, - _Locale: _locale_t, - ) -> usize; -} -extern "C" { - pub fn strdup(_String: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strcmpi( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn stricmp( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn strlwr(_String: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strnicmp( - _String1: *const ::std::os::raw::c_char, - _String2: *const ::std::os::raw::c_char, - _MaxCount: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn strnset( - _String: *mut ::std::os::raw::c_char, - _Value: ::std::os::raw::c_int, - _MaxCount: usize, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strrev(_String: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strset( - _String: *mut ::std::os::raw::c_char, - _Value: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn strupr(_String: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OBJECTID { - pub Lineage: GUID, - pub Uniquifier: DWORD, -} -pub type OBJECTID = _OBJECTID; -pub type PEXCEPTION_ROUTINE = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut _EXCEPTION_RECORD, - arg2: PVOID, - arg3: *mut _CONTEXT, - arg4: PVOID, - ) -> EXCEPTION_DISPOSITION, ->; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _bindgen_ty_1 { - pub x: ::std::os::raw::c_char, - pub test: LARGE_INTEGER, -} -pub type __C_ASSERT__ = [::std::os::raw::c_char; 1usize]; -pub type KSPIN_LOCK = ULONG_PTR; -pub type PKSPIN_LOCK = *mut KSPIN_LOCK; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct _M128A { - pub Low: ULONGLONG, - pub High: LONGLONG, -} -pub type M128A = _M128A; -pub type PM128A = *mut _M128A; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct _XSAVE_FORMAT { - pub ControlWord: WORD, - pub StatusWord: WORD, - pub TagWord: BYTE, - pub Reserved1: BYTE, - pub ErrorOpcode: WORD, - pub ErrorOffset: DWORD, - pub ErrorSelector: WORD, - pub Reserved2: WORD, - pub DataOffset: DWORD, - pub DataSelector: WORD, - pub Reserved3: WORD, - pub MxCsr: DWORD, - pub MxCsr_Mask: DWORD, - pub FloatRegisters: [M128A; 8usize], - pub XmmRegisters: [M128A; 16usize], - pub Reserved4: [BYTE; 96usize], -} -pub type XSAVE_FORMAT = _XSAVE_FORMAT; -pub type PXSAVE_FORMAT = *mut _XSAVE_FORMAT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _XSAVE_CET_U_FORMAT { - pub Ia32CetUMsr: DWORD64, - pub Ia32Pl3SspMsr: DWORD64, -} -pub type XSAVE_CET_U_FORMAT = _XSAVE_CET_U_FORMAT; -pub type PXSAVE_CET_U_FORMAT = *mut _XSAVE_CET_U_FORMAT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _XSAVE_AREA_HEADER { - pub Mask: DWORD64, - pub CompactionMask: DWORD64, - pub Reserved2: [DWORD64; 6usize], -} -pub type XSAVE_AREA_HEADER = _XSAVE_AREA_HEADER; -pub type PXSAVE_AREA_HEADER = *mut _XSAVE_AREA_HEADER; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct _XSAVE_AREA { - pub LegacyState: XSAVE_FORMAT, - pub Header: XSAVE_AREA_HEADER, -} -pub type XSAVE_AREA = _XSAVE_AREA; -pub type PXSAVE_AREA = *mut _XSAVE_AREA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _XSTATE_CONTEXT { - pub Mask: DWORD64, - pub Length: DWORD, - pub Reserved1: DWORD, - pub Area: PXSAVE_AREA, - pub Buffer: PVOID, -} -pub type XSTATE_CONTEXT = _XSTATE_CONTEXT; -pub type PXSTATE_CONTEXT = *mut _XSTATE_CONTEXT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _KERNEL_CET_CONTEXT { - pub Ssp: DWORD64, - pub Rip: DWORD64, - pub SegCs: WORD, - pub __bindgen_anon_1: _KERNEL_CET_CONTEXT__bindgen_ty_1, - pub Fill: [WORD; 2usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _KERNEL_CET_CONTEXT__bindgen_ty_1 { - pub AllFlags: WORD, - pub __bindgen_anon_1: _KERNEL_CET_CONTEXT__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(2))] -#[derive(Debug, Copy, Clone)] -pub struct _KERNEL_CET_CONTEXT__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -} -impl _KERNEL_CET_CONTEXT__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn UseWrss(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } - } - #[inline] - pub fn set_UseWrss(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn PopShadowStackOne(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } - } - #[inline] - pub fn set_PopShadowStackOne(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn Unused(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 14u8) as u16) } - } - #[inline] - pub fn set_Unused(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 14u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - UseWrss: WORD, - PopShadowStackOne: WORD, - Unused: WORD, - ) -> __BindgenBitfieldUnit<[u8; 2usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let UseWrss: u16 = unsafe { ::std::mem::transmute(UseWrss) }; - UseWrss as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let PopShadowStackOne: u16 = unsafe { ::std::mem::transmute(PopShadowStackOne) }; - PopShadowStackOne as u64 - }); - __bindgen_bitfield_unit.set(2usize, 14u8, { - let Unused: u16 = unsafe { ::std::mem::transmute(Unused) }; - Unused as u64 - }); - __bindgen_bitfield_unit - } -} -pub type KERNEL_CET_CONTEXT = _KERNEL_CET_CONTEXT; -pub type PKERNEL_CET_CONTEXT = *mut _KERNEL_CET_CONTEXT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCOPE_TABLE_AMD64 { - pub Count: DWORD, - pub ScopeRecord: [_SCOPE_TABLE_AMD64__bindgen_ty_1; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCOPE_TABLE_AMD64__bindgen_ty_1 { - pub BeginAddress: DWORD, - pub EndAddress: DWORD, - pub HandlerAddress: DWORD, - pub JumpTarget: DWORD, -} -pub type SCOPE_TABLE_AMD64 = _SCOPE_TABLE_AMD64; -pub type PSCOPE_TABLE_AMD64 = *mut _SCOPE_TABLE_AMD64; -extern "C" { - pub fn _bittest( - Base: *const ::std::os::raw::c_long, - Offset: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _bittestandcomplement( - Base: *mut ::std::os::raw::c_long, - Offset: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _bittestandset( - Base: *mut ::std::os::raw::c_long, - Offset: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _bittestandreset( - Base: *mut ::std::os::raw::c_long, - Offset: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _interlockedbittestandset( - Base: *mut ::std::os::raw::c_long, - Offset: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _interlockedbittestandreset( - Base: *mut ::std::os::raw::c_long, - Offset: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _bittest64( - Base: *const ::std::os::raw::c_longlong, - Offset: ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _bittestandcomplement64( - Base: *mut ::std::os::raw::c_longlong, - Offset: ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _bittestandset64( - Base: *mut ::std::os::raw::c_longlong, - Offset: ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _bittestandreset64( - Base: *mut ::std::os::raw::c_longlong, - Offset: ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _interlockedbittestandset64( - Base: *mut ::std::os::raw::c_longlong, - Offset: ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _interlockedbittestandreset64( - Base: *mut ::std::os::raw::c_longlong, - Offset: ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _BitScanForward( - Index: *mut ::std::os::raw::c_ulong, - Mask: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _BitScanReverse( - Index: *mut ::std::os::raw::c_ulong, - Mask: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _BitScanForward64( - Index: *mut ::std::os::raw::c_ulong, - Mask: ::std::os::raw::c_ulonglong, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _BitScanReverse64( - Index: *mut ::std::os::raw::c_ulong, - Mask: ::std::os::raw::c_ulonglong, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _InterlockedIncrement16(Addend: *mut ::std::os::raw::c_short) - -> ::std::os::raw::c_short; -} -extern "C" { - pub fn _InterlockedDecrement16(Addend: *mut ::std::os::raw::c_short) - -> ::std::os::raw::c_short; -} -extern "C" { - pub fn _InterlockedCompareExchange16( - Destination: *mut ::std::os::raw::c_short, - ExChange: ::std::os::raw::c_short, - Comperand: ::std::os::raw::c_short, - ) -> ::std::os::raw::c_short; -} -extern "C" { - pub fn _InterlockedAnd( - Destination: *mut ::std::os::raw::c_long, - Value: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _InterlockedOr( - Destination: *mut ::std::os::raw::c_long, - Value: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _InterlockedXor( - Destination: *mut ::std::os::raw::c_long, - Value: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _InterlockedAnd64( - Destination: *mut ::std::os::raw::c_longlong, - Value: ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _InterlockedOr64( - Destination: *mut ::std::os::raw::c_longlong, - Value: ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _InterlockedXor64( - Destination: *mut ::std::os::raw::c_longlong, - Value: ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _InterlockedIncrement(Addend: *mut ::std::os::raw::c_long) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _InterlockedDecrement(Addend: *mut ::std::os::raw::c_long) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _InterlockedExchange( - Target: *mut ::std::os::raw::c_long, - Value: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _InterlockedExchangeAdd( - Addend: *mut ::std::os::raw::c_long, - Value: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _InterlockedCompareExchange( - Destination: *mut ::std::os::raw::c_long, - ExChange: ::std::os::raw::c_long, - Comperand: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _InterlockedIncrement64( - Addend: *mut ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _InterlockedDecrement64( - Addend: *mut ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _InterlockedExchange64( - Target: *mut ::std::os::raw::c_longlong, - Value: ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _InterlockedExchangeAdd64( - Addend: *mut ::std::os::raw::c_longlong, - Value: ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _InterlockedCompareExchange64( - Destination: *mut ::std::os::raw::c_longlong, - ExChange: ::std::os::raw::c_longlong, - Comperand: ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _InterlockedCompareExchange128( - Destination: *mut ::std::os::raw::c_longlong, - ExchangeHigh: ::std::os::raw::c_longlong, - ExchangeLow: ::std::os::raw::c_longlong, - ComparandResult: *mut ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn _InterlockedCompareExchangePointer( - Destination: *mut *mut ::std::os::raw::c_void, - Exchange: *mut ::std::os::raw::c_void, - Comperand: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _InterlockedExchangePointer( - Target: *mut *mut ::std::os::raw::c_void, - Value: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _InterlockedExchange8( - Target: *mut ::std::os::raw::c_char, - Value: ::std::os::raw::c_char, - ) -> ::std::os::raw::c_char; -} -extern "C" { - pub fn _InterlockedExchange16( - Destination: *mut ::std::os::raw::c_short, - ExChange: ::std::os::raw::c_short, - ) -> ::std::os::raw::c_short; -} -extern "C" { - pub fn _InterlockedExchangeAdd8( - _Addend: *mut ::std::os::raw::c_char, - _Value: ::std::os::raw::c_char, - ) -> ::std::os::raw::c_char; -} -extern "C" { - pub fn _InterlockedAnd8( - Destination: *mut ::std::os::raw::c_char, - Value: ::std::os::raw::c_char, - ) -> ::std::os::raw::c_char; -} -extern "C" { - pub fn _InterlockedOr8( - Destination: *mut ::std::os::raw::c_char, - Value: ::std::os::raw::c_char, - ) -> ::std::os::raw::c_char; -} -extern "C" { - pub fn _InterlockedXor8( - Destination: *mut ::std::os::raw::c_char, - Value: ::std::os::raw::c_char, - ) -> ::std::os::raw::c_char; -} -extern "C" { - pub fn _InterlockedAnd16( - Destination: *mut ::std::os::raw::c_short, - Value: ::std::os::raw::c_short, - ) -> ::std::os::raw::c_short; -} -extern "C" { - pub fn _InterlockedOr16( - Destination: *mut ::std::os::raw::c_short, - Value: ::std::os::raw::c_short, - ) -> ::std::os::raw::c_short; -} -extern "C" { - pub fn _InterlockedXor16( - Destination: *mut ::std::os::raw::c_short, - Value: ::std::os::raw::c_short, - ) -> ::std::os::raw::c_short; -} -extern "C" { - pub fn __cpuidex( - CPUInfo: *mut ::std::os::raw::c_int, - Function: ::std::os::raw::c_int, - SubLeaf: ::std::os::raw::c_int, - ); -} -extern "C" { - pub fn _mm_clflush(Address: *const ::std::os::raw::c_void); -} -extern "C" { - pub fn _ReadWriteBarrier(); -} -extern "C" { - pub fn __faststorefence(); -} -extern "C" { - pub fn _mm_lfence(); -} -extern "C" { - pub fn _mm_mfence(); -} -extern "C" { - pub fn _mm_sfence(); -} -extern "C" { - pub fn _mm_pause(); -} -extern "C" { - pub fn _mm_prefetch(a: *const ::std::os::raw::c_char, sel: ::std::os::raw::c_int); -} -extern "C" { - pub fn _m_prefetchw(Source: *const ::std::os::raw::c_void); -} -extern "C" { - pub fn _mm_getcsr() -> ::std::os::raw::c_uint; -} -extern "C" { - pub fn _mm_setcsr(MxCsr: ::std::os::raw::c_uint); -} -extern "C" { - pub fn __getcallerseflags() -> ::std::os::raw::c_uint; -} -extern "C" { - pub fn __segmentlimit(Selector: DWORD) -> DWORD; -} -extern "C" { - pub fn __readpmc(Counter: DWORD) -> DWORD64; -} -extern "C" { - pub fn __rdtsc() -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn __movsb(Destination: PBYTE, Source: *const BYTE, Count: SIZE_T); -} -extern "C" { - pub fn __movsw(Destination: PWORD, Source: *const WORD, Count: SIZE_T); -} -extern "C" { - pub fn __movsd(Destination: PDWORD, Source: *const DWORD, Count: SIZE_T); -} -extern "C" { - pub fn __movsq(Destination: PDWORD64, Source: *const DWORD64, Count: SIZE_T); -} -extern "C" { - pub fn __stosb( - Destination: *mut ::std::os::raw::c_uchar, - Value: ::std::os::raw::c_uchar, - Count: ::std::os::raw::c_ulonglong, - ); -} -extern "C" { - pub fn __stosw(Destination: PWORD, Value: WORD, Count: SIZE_T); -} -extern "C" { - pub fn __stosd(Destination: PDWORD, Value: DWORD, Count: SIZE_T); -} -extern "C" { - pub fn __stosq(Destination: PDWORD64, Value: DWORD64, Count: SIZE_T); -} -extern "C" { - pub fn __mulh( - Multiplier: ::std::os::raw::c_longlong, - Multiplicand: ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn __umulh( - Multiplier: ::std::os::raw::c_ulonglong, - Multiplicand: ::std::os::raw::c_ulonglong, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn __popcnt64(operand: ::std::os::raw::c_ulonglong) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn __shiftleft128( - LowPart: ::std::os::raw::c_ulonglong, - HighPart: ::std::os::raw::c_ulonglong, - Shift: ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn __shiftright128( - LowPart: ::std::os::raw::c_ulonglong, - HighPart: ::std::os::raw::c_ulonglong, - Shift: ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn _mul128( - Multiplier: ::std::os::raw::c_longlong, - Multiplicand: ::std::os::raw::c_longlong, - HighProduct: *mut ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn UnsignedMultiply128( - Multiplier: DWORD64, - Multiplicand: DWORD64, - HighProduct: *mut DWORD64, - ) -> DWORD64; -} -extern "C" { - pub fn _umul128( - Multiplier: ::std::os::raw::c_ulonglong, - Multiplicand: ::std::os::raw::c_ulonglong, - HighProduct: *mut ::std::os::raw::c_ulonglong, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn __readgsbyte(Offset: ::std::os::raw::c_ulong) -> ::std::os::raw::c_uchar; -} -extern "C" { - pub fn __readgsword(Offset: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ushort; -} -extern "C" { - pub fn __readgsdword(Offset: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn __readgsqword(Offset: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn __writegsbyte(Offset: DWORD, Data: BYTE); -} -extern "C" { - pub fn __writegsword(Offset: DWORD, Data: WORD); -} -extern "C" { - pub fn __writegsdword(Offset: DWORD, Data: DWORD); -} -extern "C" { - pub fn __writegsqword(Offset: DWORD, Data: DWORD64); -} -extern "C" { - pub fn __incgsbyte(Offset: DWORD); -} -extern "C" { - pub fn __addgsbyte(Offset: DWORD, Value: BYTE); -} -extern "C" { - pub fn __incgsword(Offset: DWORD); -} -extern "C" { - pub fn __addgsword(Offset: DWORD, Value: WORD); -} -extern "C" { - pub fn __incgsdword(Offset: DWORD); -} -extern "C" { - pub fn __addgsdword(Offset: DWORD, Value: DWORD); -} -extern "C" { - pub fn __incgsqword(Offset: DWORD); -} -extern "C" { - pub fn __addgsqword(Offset: DWORD, Value: DWORD64); -} -pub type XMM_SAVE_AREA32 = XSAVE_FORMAT; -pub type PXMM_SAVE_AREA32 = *mut XSAVE_FORMAT; -#[repr(C)] -#[repr(align(16))] -#[derive(Copy, Clone)] -pub struct _CONTEXT { - pub P1Home: DWORD64, - pub P2Home: DWORD64, - pub P3Home: DWORD64, - pub P4Home: DWORD64, - pub P5Home: DWORD64, - pub P6Home: DWORD64, - pub ContextFlags: DWORD, - pub MxCsr: DWORD, - pub SegCs: WORD, - pub SegDs: WORD, - pub SegEs: WORD, - pub SegFs: WORD, - pub SegGs: WORD, - pub SegSs: WORD, - pub EFlags: DWORD, - pub Dr0: DWORD64, - pub Dr1: DWORD64, - pub Dr2: DWORD64, - pub Dr3: DWORD64, - pub Dr6: DWORD64, - pub Dr7: DWORD64, - pub Rax: DWORD64, - pub Rcx: DWORD64, - pub Rdx: DWORD64, - pub Rbx: DWORD64, - pub Rsp: DWORD64, - pub Rbp: DWORD64, - pub Rsi: DWORD64, - pub Rdi: DWORD64, - pub R8: DWORD64, - pub R9: DWORD64, - pub R10: DWORD64, - pub R11: DWORD64, - pub R12: DWORD64, - pub R13: DWORD64, - pub R14: DWORD64, - pub R15: DWORD64, - pub Rip: DWORD64, - pub __bindgen_anon_1: _CONTEXT__bindgen_ty_1, - pub VectorRegister: [M128A; 26usize], - pub VectorControl: DWORD64, - pub DebugControl: DWORD64, - pub LastBranchToRip: DWORD64, - pub LastBranchFromRip: DWORD64, - pub LastExceptionToRip: DWORD64, - pub LastExceptionFromRip: DWORD64, -} -#[repr(C)] -#[repr(align(16))] -#[derive(Copy, Clone)] -pub union _CONTEXT__bindgen_ty_1 { - pub FltSave: XMM_SAVE_AREA32, - pub __bindgen_anon_1: _CONTEXT__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct _CONTEXT__bindgen_ty_1__bindgen_ty_1 { - pub Header: [M128A; 2usize], - pub Legacy: [M128A; 8usize], - pub Xmm0: M128A, - pub Xmm1: M128A, - pub Xmm2: M128A, - pub Xmm3: M128A, - pub Xmm4: M128A, - pub Xmm5: M128A, - pub Xmm6: M128A, - pub Xmm7: M128A, - pub Xmm8: M128A, - pub Xmm9: M128A, - pub Xmm10: M128A, - pub Xmm11: M128A, - pub Xmm12: M128A, - pub Xmm13: M128A, - pub Xmm14: M128A, - pub Xmm15: M128A, -} -pub type CONTEXT = _CONTEXT; -pub type PCONTEXT = *mut _CONTEXT; -pub type RUNTIME_FUNCTION = _IMAGE_RUNTIME_FUNCTION_ENTRY; -pub type PRUNTIME_FUNCTION = *mut _IMAGE_RUNTIME_FUNCTION_ENTRY; -pub type SCOPE_TABLE = SCOPE_TABLE_AMD64; -pub type PSCOPE_TABLE = *mut SCOPE_TABLE_AMD64; -pub type GET_RUNTIME_FUNCTION_CALLBACK = ::std::option::Option< - unsafe extern "C" fn(ControlPc: DWORD64, Context: PVOID) -> PRUNTIME_FUNCTION, ->; -pub type PGET_RUNTIME_FUNCTION_CALLBACK = GET_RUNTIME_FUNCTION_CALLBACK; -pub type OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK = ::std::option::Option< - unsafe extern "C" fn( - Process: HANDLE, - TableAddress: PVOID, - Entries: PDWORD, - Functions: *mut PRUNTIME_FUNCTION, - ) -> DWORD, ->; -pub type POUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK = OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISPATCHER_CONTEXT { - pub ControlPc: DWORD64, - pub ImageBase: DWORD64, - pub FunctionEntry: PRUNTIME_FUNCTION, - pub EstablisherFrame: DWORD64, - pub TargetIp: DWORD64, - pub ContextRecord: PCONTEXT, - pub LanguageHandler: PEXCEPTION_ROUTINE, - pub HandlerData: PVOID, - pub HistoryTable: *mut _UNWIND_HISTORY_TABLE, - pub ScopeIndex: DWORD, - pub Fill0: DWORD, -} -pub type DISPATCHER_CONTEXT = _DISPATCHER_CONTEXT; -pub type PDISPATCHER_CONTEXT = *mut _DISPATCHER_CONTEXT; -pub type PEXCEPTION_FILTER = ::std::option::Option< - unsafe extern "C" fn( - ExceptionPointers: *mut _EXCEPTION_POINTERS, - EstablisherFrame: PVOID, - ) -> LONG, ->; -pub type PTERMINATION_HANDLER = ::std::option::Option< - unsafe extern "C" fn(_abnormal_termination: BOOLEAN, EstablisherFrame: PVOID), ->; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _KNONVOLATILE_CONTEXT_POINTERS { - pub __bindgen_anon_1: _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_1, - pub __bindgen_anon_2: _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_1 { - pub FloatingContext: [PM128A; 16usize], - pub __bindgen_anon_1: _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_1__bindgen_ty_1 { - pub Xmm0: PM128A, - pub Xmm1: PM128A, - pub Xmm2: PM128A, - pub Xmm3: PM128A, - pub Xmm4: PM128A, - pub Xmm5: PM128A, - pub Xmm6: PM128A, - pub Xmm7: PM128A, - pub Xmm8: PM128A, - pub Xmm9: PM128A, - pub Xmm10: PM128A, - pub Xmm11: PM128A, - pub Xmm12: PM128A, - pub Xmm13: PM128A, - pub Xmm14: PM128A, - pub Xmm15: PM128A, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_2 { - pub IntegerContext: [PDWORD64; 16usize], - pub __bindgen_anon_1: _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_2__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _KNONVOLATILE_CONTEXT_POINTERS__bindgen_ty_2__bindgen_ty_1 { - pub Rax: PDWORD64, - pub Rcx: PDWORD64, - pub Rdx: PDWORD64, - pub Rbx: PDWORD64, - pub Rsp: PDWORD64, - pub Rbp: PDWORD64, - pub Rsi: PDWORD64, - pub Rdi: PDWORD64, - pub R8: PDWORD64, - pub R9: PDWORD64, - pub R10: PDWORD64, - pub R11: PDWORD64, - pub R12: PDWORD64, - pub R13: PDWORD64, - pub R14: PDWORD64, - pub R15: PDWORD64, -} -pub type KNONVOLATILE_CONTEXT_POINTERS = _KNONVOLATILE_CONTEXT_POINTERS; -pub type PKNONVOLATILE_CONTEXT_POINTERS = *mut _KNONVOLATILE_CONTEXT_POINTERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCOPE_TABLE_ARM { - pub Count: DWORD, - pub ScopeRecord: [_SCOPE_TABLE_ARM__bindgen_ty_1; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCOPE_TABLE_ARM__bindgen_ty_1 { - pub BeginAddress: DWORD, - pub EndAddress: DWORD, - pub HandlerAddress: DWORD, - pub JumpTarget: DWORD, -} -pub type SCOPE_TABLE_ARM = _SCOPE_TABLE_ARM; -pub type PSCOPE_TABLE_ARM = *mut _SCOPE_TABLE_ARM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCOPE_TABLE_ARM64 { - pub Count: DWORD, - pub ScopeRecord: [_SCOPE_TABLE_ARM64__bindgen_ty_1; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCOPE_TABLE_ARM64__bindgen_ty_1 { - pub BeginAddress: DWORD, - pub EndAddress: DWORD, - pub HandlerAddress: DWORD, - pub JumpTarget: DWORD, -} -pub type SCOPE_TABLE_ARM64 = _SCOPE_TABLE_ARM64; -pub type PSCOPE_TABLE_ARM64 = *mut _SCOPE_TABLE_ARM64; -#[repr(C)] -#[derive(Copy, Clone)] -pub union _ARM64_NT_NEON128 { - pub __bindgen_anon_1: _ARM64_NT_NEON128__bindgen_ty_1, - pub D: [f64; 2usize], - pub S: [f32; 4usize], - pub H: [WORD; 8usize], - pub B: [BYTE; 16usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ARM64_NT_NEON128__bindgen_ty_1 { - pub Low: ULONGLONG, - pub High: LONGLONG, -} -pub type ARM64_NT_NEON128 = _ARM64_NT_NEON128; -pub type PARM64_NT_NEON128 = *mut _ARM64_NT_NEON128; -#[repr(C)] -#[repr(align(16))] -#[derive(Copy, Clone)] -pub struct _ARM64_NT_CONTEXT { - pub ContextFlags: DWORD, - pub Cpsr: DWORD, - pub __bindgen_anon_1: _ARM64_NT_CONTEXT__bindgen_ty_1, - pub Sp: DWORD64, - pub Pc: DWORD64, - pub V: [ARM64_NT_NEON128; 32usize], - pub Fpcr: DWORD, - pub Fpsr: DWORD, - pub Bcr: [DWORD; 8usize], - pub Bvr: [DWORD64; 8usize], - pub Wcr: [DWORD; 2usize], - pub Wvr: [DWORD64; 2usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _ARM64_NT_CONTEXT__bindgen_ty_1 { - pub __bindgen_anon_1: _ARM64_NT_CONTEXT__bindgen_ty_1__bindgen_ty_1, - pub X: [DWORD64; 31usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ARM64_NT_CONTEXT__bindgen_ty_1__bindgen_ty_1 { - pub X0: DWORD64, - pub X1: DWORD64, - pub X2: DWORD64, - pub X3: DWORD64, - pub X4: DWORD64, - pub X5: DWORD64, - pub X6: DWORD64, - pub X7: DWORD64, - pub X8: DWORD64, - pub X9: DWORD64, - pub X10: DWORD64, - pub X11: DWORD64, - pub X12: DWORD64, - pub X13: DWORD64, - pub X14: DWORD64, - pub X15: DWORD64, - pub X16: DWORD64, - pub X17: DWORD64, - pub X18: DWORD64, - pub X19: DWORD64, - pub X20: DWORD64, - pub X21: DWORD64, - pub X22: DWORD64, - pub X23: DWORD64, - pub X24: DWORD64, - pub X25: DWORD64, - pub X26: DWORD64, - pub X27: DWORD64, - pub X28: DWORD64, - pub Fp: DWORD64, - pub Lr: DWORD64, -} -pub type ARM64_NT_CONTEXT = _ARM64_NT_CONTEXT; -pub type PARM64_NT_CONTEXT = *mut _ARM64_NT_CONTEXT; -#[repr(C)] -#[repr(align(16))] -#[derive(Copy, Clone)] -pub struct _ARM64EC_NT_CONTEXT { - pub __bindgen_anon_1: _ARM64EC_NT_CONTEXT__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _ARM64EC_NT_CONTEXT__bindgen_ty_1 { - pub __bindgen_anon_1: _ARM64EC_NT_CONTEXT__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _ARM64EC_NT_CONTEXT__bindgen_ty_1__bindgen_ty_1 { - pub AMD64_P1Home: DWORD64, - pub AMD64_P2Home: DWORD64, - pub AMD64_P3Home: DWORD64, - pub AMD64_P4Home: DWORD64, - pub AMD64_P5Home: DWORD64, - pub AMD64_P6Home: DWORD64, - pub ContextFlags: DWORD, - pub AMD64_MxCsr_copy: DWORD, - pub AMD64_SegCs: WORD, - pub AMD64_SegDs: WORD, - pub AMD64_SegEs: WORD, - pub AMD64_SegFs: WORD, - pub AMD64_SegGs: WORD, - pub AMD64_SegSs: WORD, - pub AMD64_EFlags: DWORD, - pub AMD64_Dr0: DWORD64, - pub AMD64_Dr1: DWORD64, - pub AMD64_Dr2: DWORD64, - pub AMD64_Dr3: DWORD64, - pub AMD64_Dr6: DWORD64, - pub AMD64_Dr7: DWORD64, - pub X8: DWORD64, - pub X0: DWORD64, - pub X1: DWORD64, - pub X27: DWORD64, - pub Sp: DWORD64, - pub Fp: DWORD64, - pub X25: DWORD64, - pub X26: DWORD64, - pub X2: DWORD64, - pub X3: DWORD64, - pub X4: DWORD64, - pub X5: DWORD64, - pub X19: DWORD64, - pub X20: DWORD64, - pub X21: DWORD64, - pub X22: DWORD64, - pub Pc: DWORD64, - pub __bindgen_anon_1: _ARM64EC_NT_CONTEXT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, - pub AMD64_VectorRegister: [ARM64_NT_NEON128; 26usize], - pub AMD64_VectorControl: DWORD64, - pub AMD64_DebugControl: DWORD64, - pub AMD64_LastBranchToRip: DWORD64, - pub AMD64_LastBranchFromRip: DWORD64, - pub AMD64_LastExceptionToRip: DWORD64, - pub AMD64_LastExceptionFromRip: DWORD64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _ARM64EC_NT_CONTEXT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { - pub AMD64_ControlWord: WORD, - pub AMD64_StatusWord: WORD, - pub AMD64_TagWord: BYTE, - pub AMD64_Reserved1: BYTE, - pub AMD64_ErrorOpcode: WORD, - pub AMD64_ErrorOffset: DWORD, - pub AMD64_ErrorSelector: WORD, - pub AMD64_Reserved2: WORD, - pub AMD64_DataOffset: DWORD, - pub AMD64_DataSelector: WORD, - pub AMD64_Reserved3: WORD, - pub AMD64_MxCsr: DWORD, - pub AMD64_MxCsr_Mask: DWORD, - pub Lr: DWORD64, - pub X16_0: WORD, - pub AMD64_St0_Reserved1: WORD, - pub AMD64_St0_Reserved2: DWORD, - pub X6: DWORD64, - pub X16_1: WORD, - pub AMD64_St1_Reserved1: WORD, - pub AMD64_St1_Reserved2: DWORD, - pub X7: DWORD64, - pub X16_2: WORD, - pub AMD64_St2_Reserved1: WORD, - pub AMD64_St2_Reserved2: DWORD, - pub X9: DWORD64, - pub X16_3: WORD, - pub AMD64_St3_Reserved1: WORD, - pub AMD64_St3_Reserved2: DWORD, - pub X10: DWORD64, - pub X17_0: WORD, - pub AMD64_St4_Reserved1: WORD, - pub AMD64_St4_Reserved2: DWORD, - pub X11: DWORD64, - pub X17_1: WORD, - pub AMD64_St5_Reserved1: WORD, - pub AMD64_St5_Reserved2: DWORD, - pub X12: DWORD64, - pub X17_2: WORD, - pub AMD64_St6_Reserved1: WORD, - pub AMD64_St6_Reserved2: DWORD, - pub X15: DWORD64, - pub X17_3: WORD, - pub AMD64_St7_Reserved1: WORD, - pub AMD64_St7_Reserved2: DWORD, - pub V: [ARM64_NT_NEON128; 16usize], - pub AMD64_XSAVE_FORMAT_Reserved4: [BYTE; 96usize], -} -pub type ARM64EC_NT_CONTEXT = _ARM64EC_NT_CONTEXT; -pub type PARM64EC_NT_CONTEXT = *mut _ARM64EC_NT_CONTEXT; -pub type ARM64_RUNTIME_FUNCTION = _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY; -pub type PARM64_RUNTIME_FUNCTION = *mut _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY; -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DISPATCHER_CONTEXT_NONVOLREG_ARM64 { - pub Buffer: [BYTE; 152usize], - pub __bindgen_anon_1: _DISPATCHER_CONTEXT_NONVOLREG_ARM64__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISPATCHER_CONTEXT_NONVOLREG_ARM64__bindgen_ty_1 { - pub GpNvRegs: [DWORD64; 11usize], - pub FpNvRegs: [f64; 8usize], -} -pub type DISPATCHER_CONTEXT_NONVOLREG_ARM64 = _DISPATCHER_CONTEXT_NONVOLREG_ARM64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISPATCHER_CONTEXT_ARM64 { - pub ControlPc: ULONG_PTR, - pub ImageBase: ULONG_PTR, - pub FunctionEntry: PARM64_RUNTIME_FUNCTION, - pub EstablisherFrame: ULONG_PTR, - pub TargetPc: ULONG_PTR, - pub ContextRecord: PARM64_NT_CONTEXT, - pub LanguageHandler: PEXCEPTION_ROUTINE, - pub HandlerData: PVOID, - pub HistoryTable: *mut _UNWIND_HISTORY_TABLE, - pub ScopeIndex: DWORD, - pub ControlPcIsUnwound: BOOLEAN, - pub NonVolatileRegisters: PBYTE, -} -pub type DISPATCHER_CONTEXT_ARM64 = _DISPATCHER_CONTEXT_ARM64; -pub type PDISPATCHER_CONTEXT_ARM64 = *mut _DISPATCHER_CONTEXT_ARM64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _KNONVOLATILE_CONTEXT_POINTERS_ARM64 { - pub X19: PDWORD64, - pub X20: PDWORD64, - pub X21: PDWORD64, - pub X22: PDWORD64, - pub X23: PDWORD64, - pub X24: PDWORD64, - pub X25: PDWORD64, - pub X26: PDWORD64, - pub X27: PDWORD64, - pub X28: PDWORD64, - pub Fp: PDWORD64, - pub Lr: PDWORD64, - pub D8: PDWORD64, - pub D9: PDWORD64, - pub D10: PDWORD64, - pub D11: PDWORD64, - pub D12: PDWORD64, - pub D13: PDWORD64, - pub D14: PDWORD64, - pub D15: PDWORD64, -} -pub type KNONVOLATILE_CONTEXT_POINTERS_ARM64 = _KNONVOLATILE_CONTEXT_POINTERS_ARM64; -pub type PKNONVOLATILE_CONTEXT_POINTERS_ARM64 = *mut _KNONVOLATILE_CONTEXT_POINTERS_ARM64; -extern "C" { - pub fn __int2c() -> !; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _LDT_ENTRY { - pub LimitLow: WORD, - pub BaseLow: WORD, - pub HighWord: _LDT_ENTRY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _LDT_ENTRY__bindgen_ty_1 { - pub Bytes: _LDT_ENTRY__bindgen_ty_1__bindgen_ty_1, - pub Bits: _LDT_ENTRY__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LDT_ENTRY__bindgen_ty_1__bindgen_ty_1 { - pub BaseMid: BYTE, - pub Flags1: BYTE, - pub Flags2: BYTE, - pub BaseHi: BYTE, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _LDT_ENTRY__bindgen_ty_1__bindgen_ty_2 { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _LDT_ENTRY__bindgen_ty_1__bindgen_ty_2 { - #[inline] - pub fn BaseMid(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } - } - #[inline] - pub fn set_BaseMid(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 8u8, val as u64) - } - } - #[inline] - pub fn Type(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 5u8) as u32) } - } - #[inline] - pub fn set_Type(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 5u8, val as u64) - } - } - #[inline] - pub fn Dpl(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 2u8) as u32) } - } - #[inline] - pub fn set_Dpl(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(13usize, 2u8, val as u64) - } - } - #[inline] - pub fn Pres(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) } - } - #[inline] - pub fn set_Pres(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(15usize, 1u8, val as u64) - } - } - #[inline] - pub fn LimitHi(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 4u8) as u32) } - } - #[inline] - pub fn set_LimitHi(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(16usize, 4u8, val as u64) - } - } - #[inline] - pub fn Sys(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) } - } - #[inline] - pub fn set_Sys(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(20usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved_0(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u32) } - } - #[inline] - pub fn set_Reserved_0(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(21usize, 1u8, val as u64) - } - } - #[inline] - pub fn Default_Big(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 1u8) as u32) } - } - #[inline] - pub fn set_Default_Big(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(22usize, 1u8, val as u64) - } - } - #[inline] - pub fn Granularity(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 1u8) as u32) } - } - #[inline] - pub fn set_Granularity(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(23usize, 1u8, val as u64) - } - } - #[inline] - pub fn BaseHi(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } - } - #[inline] - pub fn set_BaseHi(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(24usize, 8u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - BaseMid: DWORD, - Type: DWORD, - Dpl: DWORD, - Pres: DWORD, - LimitHi: DWORD, - Sys: DWORD, - Reserved_0: DWORD, - Default_Big: DWORD, - Granularity: DWORD, - BaseHi: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 8u8, { - let BaseMid: u32 = unsafe { ::std::mem::transmute(BaseMid) }; - BaseMid as u64 - }); - __bindgen_bitfield_unit.set(8usize, 5u8, { - let Type: u32 = unsafe { ::std::mem::transmute(Type) }; - Type as u64 - }); - __bindgen_bitfield_unit.set(13usize, 2u8, { - let Dpl: u32 = unsafe { ::std::mem::transmute(Dpl) }; - Dpl as u64 - }); - __bindgen_bitfield_unit.set(15usize, 1u8, { - let Pres: u32 = unsafe { ::std::mem::transmute(Pres) }; - Pres as u64 - }); - __bindgen_bitfield_unit.set(16usize, 4u8, { - let LimitHi: u32 = unsafe { ::std::mem::transmute(LimitHi) }; - LimitHi as u64 - }); - __bindgen_bitfield_unit.set(20usize, 1u8, { - let Sys: u32 = unsafe { ::std::mem::transmute(Sys) }; - Sys as u64 - }); - __bindgen_bitfield_unit.set(21usize, 1u8, { - let Reserved_0: u32 = unsafe { ::std::mem::transmute(Reserved_0) }; - Reserved_0 as u64 - }); - __bindgen_bitfield_unit.set(22usize, 1u8, { - let Default_Big: u32 = unsafe { ::std::mem::transmute(Default_Big) }; - Default_Big as u64 - }); - __bindgen_bitfield_unit.set(23usize, 1u8, { - let Granularity: u32 = unsafe { ::std::mem::transmute(Granularity) }; - Granularity as u64 - }); - __bindgen_bitfield_unit.set(24usize, 8u8, { - let BaseHi: u32 = unsafe { ::std::mem::transmute(BaseHi) }; - BaseHi as u64 - }); - __bindgen_bitfield_unit - } -} -pub type LDT_ENTRY = _LDT_ENTRY; -pub type PLDT_ENTRY = *mut _LDT_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WOW64_FLOATING_SAVE_AREA { - pub ControlWord: DWORD, - pub StatusWord: DWORD, - pub TagWord: DWORD, - pub ErrorOffset: DWORD, - pub ErrorSelector: DWORD, - pub DataOffset: DWORD, - pub DataSelector: DWORD, - pub RegisterArea: [BYTE; 80usize], - pub Cr0NpxState: DWORD, -} -pub type WOW64_FLOATING_SAVE_AREA = _WOW64_FLOATING_SAVE_AREA; -pub type PWOW64_FLOATING_SAVE_AREA = *mut WOW64_FLOATING_SAVE_AREA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WOW64_CONTEXT { - pub ContextFlags: DWORD, - pub Dr0: DWORD, - pub Dr1: DWORD, - pub Dr2: DWORD, - pub Dr3: DWORD, - pub Dr6: DWORD, - pub Dr7: DWORD, - pub FloatSave: WOW64_FLOATING_SAVE_AREA, - pub SegGs: DWORD, - pub SegFs: DWORD, - pub SegEs: DWORD, - pub SegDs: DWORD, - pub Edi: DWORD, - pub Esi: DWORD, - pub Ebx: DWORD, - pub Edx: DWORD, - pub Ecx: DWORD, - pub Eax: DWORD, - pub Ebp: DWORD, - pub Eip: DWORD, - pub SegCs: DWORD, - pub EFlags: DWORD, - pub Esp: DWORD, - pub SegSs: DWORD, - pub ExtendedRegisters: [BYTE; 512usize], -} -pub type WOW64_CONTEXT = _WOW64_CONTEXT; -pub type PWOW64_CONTEXT = *mut WOW64_CONTEXT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _WOW64_LDT_ENTRY { - pub LimitLow: WORD, - pub BaseLow: WORD, - pub HighWord: _WOW64_LDT_ENTRY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _WOW64_LDT_ENTRY__bindgen_ty_1 { - pub Bytes: _WOW64_LDT_ENTRY__bindgen_ty_1__bindgen_ty_1, - pub Bits: _WOW64_LDT_ENTRY__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WOW64_LDT_ENTRY__bindgen_ty_1__bindgen_ty_1 { - pub BaseMid: BYTE, - pub Flags1: BYTE, - pub Flags2: BYTE, - pub BaseHi: BYTE, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _WOW64_LDT_ENTRY__bindgen_ty_1__bindgen_ty_2 { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _WOW64_LDT_ENTRY__bindgen_ty_1__bindgen_ty_2 { - #[inline] - pub fn BaseMid(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } - } - #[inline] - pub fn set_BaseMid(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 8u8, val as u64) - } - } - #[inline] - pub fn Type(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 5u8) as u32) } - } - #[inline] - pub fn set_Type(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 5u8, val as u64) - } - } - #[inline] - pub fn Dpl(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 2u8) as u32) } - } - #[inline] - pub fn set_Dpl(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(13usize, 2u8, val as u64) - } - } - #[inline] - pub fn Pres(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) } - } - #[inline] - pub fn set_Pres(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(15usize, 1u8, val as u64) - } - } - #[inline] - pub fn LimitHi(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 4u8) as u32) } - } - #[inline] - pub fn set_LimitHi(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(16usize, 4u8, val as u64) - } - } - #[inline] - pub fn Sys(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) } - } - #[inline] - pub fn set_Sys(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(20usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved_0(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u32) } - } - #[inline] - pub fn set_Reserved_0(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(21usize, 1u8, val as u64) - } - } - #[inline] - pub fn Default_Big(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 1u8) as u32) } - } - #[inline] - pub fn set_Default_Big(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(22usize, 1u8, val as u64) - } - } - #[inline] - pub fn Granularity(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 1u8) as u32) } - } - #[inline] - pub fn set_Granularity(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(23usize, 1u8, val as u64) - } - } - #[inline] - pub fn BaseHi(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } - } - #[inline] - pub fn set_BaseHi(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(24usize, 8u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - BaseMid: DWORD, - Type: DWORD, - Dpl: DWORD, - Pres: DWORD, - LimitHi: DWORD, - Sys: DWORD, - Reserved_0: DWORD, - Default_Big: DWORD, - Granularity: DWORD, - BaseHi: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 8u8, { - let BaseMid: u32 = unsafe { ::std::mem::transmute(BaseMid) }; - BaseMid as u64 - }); - __bindgen_bitfield_unit.set(8usize, 5u8, { - let Type: u32 = unsafe { ::std::mem::transmute(Type) }; - Type as u64 - }); - __bindgen_bitfield_unit.set(13usize, 2u8, { - let Dpl: u32 = unsafe { ::std::mem::transmute(Dpl) }; - Dpl as u64 - }); - __bindgen_bitfield_unit.set(15usize, 1u8, { - let Pres: u32 = unsafe { ::std::mem::transmute(Pres) }; - Pres as u64 - }); - __bindgen_bitfield_unit.set(16usize, 4u8, { - let LimitHi: u32 = unsafe { ::std::mem::transmute(LimitHi) }; - LimitHi as u64 - }); - __bindgen_bitfield_unit.set(20usize, 1u8, { - let Sys: u32 = unsafe { ::std::mem::transmute(Sys) }; - Sys as u64 - }); - __bindgen_bitfield_unit.set(21usize, 1u8, { - let Reserved_0: u32 = unsafe { ::std::mem::transmute(Reserved_0) }; - Reserved_0 as u64 - }); - __bindgen_bitfield_unit.set(22usize, 1u8, { - let Default_Big: u32 = unsafe { ::std::mem::transmute(Default_Big) }; - Default_Big as u64 - }); - __bindgen_bitfield_unit.set(23usize, 1u8, { - let Granularity: u32 = unsafe { ::std::mem::transmute(Granularity) }; - Granularity as u64 - }); - __bindgen_bitfield_unit.set(24usize, 8u8, { - let BaseHi: u32 = unsafe { ::std::mem::transmute(BaseHi) }; - BaseHi as u64 - }); - __bindgen_bitfield_unit - } -} -pub type WOW64_LDT_ENTRY = _WOW64_LDT_ENTRY; -pub type PWOW64_LDT_ENTRY = *mut _WOW64_LDT_ENTRY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _WOW64_DESCRIPTOR_TABLE_ENTRY { - pub Selector: DWORD, - pub Descriptor: WOW64_LDT_ENTRY, -} -pub type WOW64_DESCRIPTOR_TABLE_ENTRY = _WOW64_DESCRIPTOR_TABLE_ENTRY; -pub type PWOW64_DESCRIPTOR_TABLE_ENTRY = *mut _WOW64_DESCRIPTOR_TABLE_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EXCEPTION_RECORD { - pub ExceptionCode: DWORD, - pub ExceptionFlags: DWORD, - pub ExceptionRecord: *mut _EXCEPTION_RECORD, - pub ExceptionAddress: PVOID, - pub NumberParameters: DWORD, - pub ExceptionInformation: [ULONG_PTR; 15usize], -} -pub type EXCEPTION_RECORD = _EXCEPTION_RECORD; -pub type PEXCEPTION_RECORD = *mut EXCEPTION_RECORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EXCEPTION_RECORD32 { - pub ExceptionCode: DWORD, - pub ExceptionFlags: DWORD, - pub ExceptionRecord: DWORD, - pub ExceptionAddress: DWORD, - pub NumberParameters: DWORD, - pub ExceptionInformation: [DWORD; 15usize], -} -pub type EXCEPTION_RECORD32 = _EXCEPTION_RECORD32; -pub type PEXCEPTION_RECORD32 = *mut _EXCEPTION_RECORD32; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EXCEPTION_RECORD64 { - pub ExceptionCode: DWORD, - pub ExceptionFlags: DWORD, - pub ExceptionRecord: DWORD64, - pub ExceptionAddress: DWORD64, - pub NumberParameters: DWORD, - pub __unusedAlignment: DWORD, - pub ExceptionInformation: [DWORD64; 15usize], -} -pub type EXCEPTION_RECORD64 = _EXCEPTION_RECORD64; -pub type PEXCEPTION_RECORD64 = *mut _EXCEPTION_RECORD64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EXCEPTION_POINTERS { - pub ExceptionRecord: PEXCEPTION_RECORD, - pub ContextRecord: PCONTEXT, -} -pub type EXCEPTION_POINTERS = _EXCEPTION_POINTERS; -pub type PEXCEPTION_POINTERS = *mut _EXCEPTION_POINTERS; -pub type PACCESS_TOKEN = PVOID; -pub type PSECURITY_DESCRIPTOR = PVOID; -pub type PSID = PVOID; -pub type PCLAIMS_BLOB = PVOID; -pub type ACCESS_MASK = DWORD; -pub type PACCESS_MASK = *mut ACCESS_MASK; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _GENERIC_MAPPING { - pub GenericRead: ACCESS_MASK, - pub GenericWrite: ACCESS_MASK, - pub GenericExecute: ACCESS_MASK, - pub GenericAll: ACCESS_MASK, -} -pub type GENERIC_MAPPING = _GENERIC_MAPPING; -pub type PGENERIC_MAPPING = *mut GENERIC_MAPPING; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LUID_AND_ATTRIBUTES { - pub Luid: LUID, - pub Attributes: DWORD, -} -pub type LUID_AND_ATTRIBUTES = _LUID_AND_ATTRIBUTES; -pub type PLUID_AND_ATTRIBUTES = *mut _LUID_AND_ATTRIBUTES; -pub type LUID_AND_ATTRIBUTES_ARRAY = [LUID_AND_ATTRIBUTES; 1usize]; -pub type PLUID_AND_ATTRIBUTES_ARRAY = *mut LUID_AND_ATTRIBUTES_ARRAY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SID_IDENTIFIER_AUTHORITY { - pub Value: [BYTE; 6usize], -} -pub type SID_IDENTIFIER_AUTHORITY = _SID_IDENTIFIER_AUTHORITY; -pub type PSID_IDENTIFIER_AUTHORITY = *mut _SID_IDENTIFIER_AUTHORITY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SID { - pub Revision: BYTE, - pub SubAuthorityCount: BYTE, - pub IdentifierAuthority: SID_IDENTIFIER_AUTHORITY, - pub SubAuthority: [DWORD; 1usize], -} -pub type SID = _SID; -pub type PISID = *mut _SID; -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SE_SID { - pub Sid: SID, - pub Buffer: [BYTE; 68usize], -} -pub type SE_SID = _SE_SID; -pub type PSE_SID = *mut _SE_SID; -pub const _SID_NAME_USE_SidTypeUser: _SID_NAME_USE = 1; -pub const _SID_NAME_USE_SidTypeGroup: _SID_NAME_USE = 2; -pub const _SID_NAME_USE_SidTypeDomain: _SID_NAME_USE = 3; -pub const _SID_NAME_USE_SidTypeAlias: _SID_NAME_USE = 4; -pub const _SID_NAME_USE_SidTypeWellKnownGroup: _SID_NAME_USE = 5; -pub const _SID_NAME_USE_SidTypeDeletedAccount: _SID_NAME_USE = 6; -pub const _SID_NAME_USE_SidTypeInvalid: _SID_NAME_USE = 7; -pub const _SID_NAME_USE_SidTypeUnknown: _SID_NAME_USE = 8; -pub const _SID_NAME_USE_SidTypeComputer: _SID_NAME_USE = 9; -pub const _SID_NAME_USE_SidTypeLabel: _SID_NAME_USE = 10; -pub const _SID_NAME_USE_SidTypeLogonSession: _SID_NAME_USE = 11; -pub type _SID_NAME_USE = ::std::os::raw::c_int; -pub use self::_SID_NAME_USE as SID_NAME_USE; -pub type PSID_NAME_USE = *mut _SID_NAME_USE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SID_AND_ATTRIBUTES { - pub Sid: PSID, - pub Attributes: DWORD, -} -pub type SID_AND_ATTRIBUTES = _SID_AND_ATTRIBUTES; -pub type PSID_AND_ATTRIBUTES = *mut _SID_AND_ATTRIBUTES; -pub type SID_AND_ATTRIBUTES_ARRAY = [SID_AND_ATTRIBUTES; 1usize]; -pub type PSID_AND_ATTRIBUTES_ARRAY = *mut SID_AND_ATTRIBUTES_ARRAY; -pub type SID_HASH_ENTRY = ULONG_PTR; -pub type PSID_HASH_ENTRY = *mut ULONG_PTR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SID_AND_ATTRIBUTES_HASH { - pub SidCount: DWORD, - pub SidAttr: PSID_AND_ATTRIBUTES, - pub Hash: [SID_HASH_ENTRY; 32usize], -} -pub type SID_AND_ATTRIBUTES_HASH = _SID_AND_ATTRIBUTES_HASH; -pub type PSID_AND_ATTRIBUTES_HASH = *mut _SID_AND_ATTRIBUTES_HASH; -pub const WELL_KNOWN_SID_TYPE_WinNullSid: WELL_KNOWN_SID_TYPE = 0; -pub const WELL_KNOWN_SID_TYPE_WinWorldSid: WELL_KNOWN_SID_TYPE = 1; -pub const WELL_KNOWN_SID_TYPE_WinLocalSid: WELL_KNOWN_SID_TYPE = 2; -pub const WELL_KNOWN_SID_TYPE_WinCreatorOwnerSid: WELL_KNOWN_SID_TYPE = 3; -pub const WELL_KNOWN_SID_TYPE_WinCreatorGroupSid: WELL_KNOWN_SID_TYPE = 4; -pub const WELL_KNOWN_SID_TYPE_WinCreatorOwnerServerSid: WELL_KNOWN_SID_TYPE = 5; -pub const WELL_KNOWN_SID_TYPE_WinCreatorGroupServerSid: WELL_KNOWN_SID_TYPE = 6; -pub const WELL_KNOWN_SID_TYPE_WinNtAuthoritySid: WELL_KNOWN_SID_TYPE = 7; -pub const WELL_KNOWN_SID_TYPE_WinDialupSid: WELL_KNOWN_SID_TYPE = 8; -pub const WELL_KNOWN_SID_TYPE_WinNetworkSid: WELL_KNOWN_SID_TYPE = 9; -pub const WELL_KNOWN_SID_TYPE_WinBatchSid: WELL_KNOWN_SID_TYPE = 10; -pub const WELL_KNOWN_SID_TYPE_WinInteractiveSid: WELL_KNOWN_SID_TYPE = 11; -pub const WELL_KNOWN_SID_TYPE_WinServiceSid: WELL_KNOWN_SID_TYPE = 12; -pub const WELL_KNOWN_SID_TYPE_WinAnonymousSid: WELL_KNOWN_SID_TYPE = 13; -pub const WELL_KNOWN_SID_TYPE_WinProxySid: WELL_KNOWN_SID_TYPE = 14; -pub const WELL_KNOWN_SID_TYPE_WinEnterpriseControllersSid: WELL_KNOWN_SID_TYPE = 15; -pub const WELL_KNOWN_SID_TYPE_WinSelfSid: WELL_KNOWN_SID_TYPE = 16; -pub const WELL_KNOWN_SID_TYPE_WinAuthenticatedUserSid: WELL_KNOWN_SID_TYPE = 17; -pub const WELL_KNOWN_SID_TYPE_WinRestrictedCodeSid: WELL_KNOWN_SID_TYPE = 18; -pub const WELL_KNOWN_SID_TYPE_WinTerminalServerSid: WELL_KNOWN_SID_TYPE = 19; -pub const WELL_KNOWN_SID_TYPE_WinRemoteLogonIdSid: WELL_KNOWN_SID_TYPE = 20; -pub const WELL_KNOWN_SID_TYPE_WinLogonIdsSid: WELL_KNOWN_SID_TYPE = 21; -pub const WELL_KNOWN_SID_TYPE_WinLocalSystemSid: WELL_KNOWN_SID_TYPE = 22; -pub const WELL_KNOWN_SID_TYPE_WinLocalServiceSid: WELL_KNOWN_SID_TYPE = 23; -pub const WELL_KNOWN_SID_TYPE_WinNetworkServiceSid: WELL_KNOWN_SID_TYPE = 24; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinDomainSid: WELL_KNOWN_SID_TYPE = 25; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinAdministratorsSid: WELL_KNOWN_SID_TYPE = 26; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinUsersSid: WELL_KNOWN_SID_TYPE = 27; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinGuestsSid: WELL_KNOWN_SID_TYPE = 28; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinPowerUsersSid: WELL_KNOWN_SID_TYPE = 29; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinAccountOperatorsSid: WELL_KNOWN_SID_TYPE = 30; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinSystemOperatorsSid: WELL_KNOWN_SID_TYPE = 31; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinPrintOperatorsSid: WELL_KNOWN_SID_TYPE = 32; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinBackupOperatorsSid: WELL_KNOWN_SID_TYPE = 33; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinReplicatorSid: WELL_KNOWN_SID_TYPE = 34; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinPreWindows2000CompatibleAccessSid: WELL_KNOWN_SID_TYPE = 35; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinRemoteDesktopUsersSid: WELL_KNOWN_SID_TYPE = 36; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinNetworkConfigurationOperatorsSid: WELL_KNOWN_SID_TYPE = 37; -pub const WELL_KNOWN_SID_TYPE_WinAccountAdministratorSid: WELL_KNOWN_SID_TYPE = 38; -pub const WELL_KNOWN_SID_TYPE_WinAccountGuestSid: WELL_KNOWN_SID_TYPE = 39; -pub const WELL_KNOWN_SID_TYPE_WinAccountKrbtgtSid: WELL_KNOWN_SID_TYPE = 40; -pub const WELL_KNOWN_SID_TYPE_WinAccountDomainAdminsSid: WELL_KNOWN_SID_TYPE = 41; -pub const WELL_KNOWN_SID_TYPE_WinAccountDomainUsersSid: WELL_KNOWN_SID_TYPE = 42; -pub const WELL_KNOWN_SID_TYPE_WinAccountDomainGuestsSid: WELL_KNOWN_SID_TYPE = 43; -pub const WELL_KNOWN_SID_TYPE_WinAccountComputersSid: WELL_KNOWN_SID_TYPE = 44; -pub const WELL_KNOWN_SID_TYPE_WinAccountControllersSid: WELL_KNOWN_SID_TYPE = 45; -pub const WELL_KNOWN_SID_TYPE_WinAccountCertAdminsSid: WELL_KNOWN_SID_TYPE = 46; -pub const WELL_KNOWN_SID_TYPE_WinAccountSchemaAdminsSid: WELL_KNOWN_SID_TYPE = 47; -pub const WELL_KNOWN_SID_TYPE_WinAccountEnterpriseAdminsSid: WELL_KNOWN_SID_TYPE = 48; -pub const WELL_KNOWN_SID_TYPE_WinAccountPolicyAdminsSid: WELL_KNOWN_SID_TYPE = 49; -pub const WELL_KNOWN_SID_TYPE_WinAccountRasAndIasServersSid: WELL_KNOWN_SID_TYPE = 50; -pub const WELL_KNOWN_SID_TYPE_WinNTLMAuthenticationSid: WELL_KNOWN_SID_TYPE = 51; -pub const WELL_KNOWN_SID_TYPE_WinDigestAuthenticationSid: WELL_KNOWN_SID_TYPE = 52; -pub const WELL_KNOWN_SID_TYPE_WinSChannelAuthenticationSid: WELL_KNOWN_SID_TYPE = 53; -pub const WELL_KNOWN_SID_TYPE_WinThisOrganizationSid: WELL_KNOWN_SID_TYPE = 54; -pub const WELL_KNOWN_SID_TYPE_WinOtherOrganizationSid: WELL_KNOWN_SID_TYPE = 55; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinIncomingForestTrustBuildersSid: WELL_KNOWN_SID_TYPE = 56; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinPerfMonitoringUsersSid: WELL_KNOWN_SID_TYPE = 57; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinPerfLoggingUsersSid: WELL_KNOWN_SID_TYPE = 58; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinAuthorizationAccessSid: WELL_KNOWN_SID_TYPE = 59; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinTerminalServerLicenseServersSid: WELL_KNOWN_SID_TYPE = 60; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinDCOMUsersSid: WELL_KNOWN_SID_TYPE = 61; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinIUsersSid: WELL_KNOWN_SID_TYPE = 62; -pub const WELL_KNOWN_SID_TYPE_WinIUserSid: WELL_KNOWN_SID_TYPE = 63; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinCryptoOperatorsSid: WELL_KNOWN_SID_TYPE = 64; -pub const WELL_KNOWN_SID_TYPE_WinUntrustedLabelSid: WELL_KNOWN_SID_TYPE = 65; -pub const WELL_KNOWN_SID_TYPE_WinLowLabelSid: WELL_KNOWN_SID_TYPE = 66; -pub const WELL_KNOWN_SID_TYPE_WinMediumLabelSid: WELL_KNOWN_SID_TYPE = 67; -pub const WELL_KNOWN_SID_TYPE_WinHighLabelSid: WELL_KNOWN_SID_TYPE = 68; -pub const WELL_KNOWN_SID_TYPE_WinSystemLabelSid: WELL_KNOWN_SID_TYPE = 69; -pub const WELL_KNOWN_SID_TYPE_WinWriteRestrictedCodeSid: WELL_KNOWN_SID_TYPE = 70; -pub const WELL_KNOWN_SID_TYPE_WinCreatorOwnerRightsSid: WELL_KNOWN_SID_TYPE = 71; -pub const WELL_KNOWN_SID_TYPE_WinCacheablePrincipalsGroupSid: WELL_KNOWN_SID_TYPE = 72; -pub const WELL_KNOWN_SID_TYPE_WinNonCacheablePrincipalsGroupSid: WELL_KNOWN_SID_TYPE = 73; -pub const WELL_KNOWN_SID_TYPE_WinEnterpriseReadonlyControllersSid: WELL_KNOWN_SID_TYPE = 74; -pub const WELL_KNOWN_SID_TYPE_WinAccountReadonlyControllersSid: WELL_KNOWN_SID_TYPE = 75; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinEventLogReadersGroup: WELL_KNOWN_SID_TYPE = 76; -pub const WELL_KNOWN_SID_TYPE_WinNewEnterpriseReadonlyControllersSid: WELL_KNOWN_SID_TYPE = 77; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinCertSvcDComAccessGroup: WELL_KNOWN_SID_TYPE = 78; -pub const WELL_KNOWN_SID_TYPE_WinMediumPlusLabelSid: WELL_KNOWN_SID_TYPE = 79; -pub const WELL_KNOWN_SID_TYPE_WinLocalLogonSid: WELL_KNOWN_SID_TYPE = 80; -pub const WELL_KNOWN_SID_TYPE_WinConsoleLogonSid: WELL_KNOWN_SID_TYPE = 81; -pub const WELL_KNOWN_SID_TYPE_WinThisOrganizationCertificateSid: WELL_KNOWN_SID_TYPE = 82; -pub const WELL_KNOWN_SID_TYPE_WinApplicationPackageAuthoritySid: WELL_KNOWN_SID_TYPE = 83; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinAnyPackageSid: WELL_KNOWN_SID_TYPE = 84; -pub const WELL_KNOWN_SID_TYPE_WinCapabilityInternetClientSid: WELL_KNOWN_SID_TYPE = 85; -pub const WELL_KNOWN_SID_TYPE_WinCapabilityInternetClientServerSid: WELL_KNOWN_SID_TYPE = 86; -pub const WELL_KNOWN_SID_TYPE_WinCapabilityPrivateNetworkClientServerSid: WELL_KNOWN_SID_TYPE = 87; -pub const WELL_KNOWN_SID_TYPE_WinCapabilityPicturesLibrarySid: WELL_KNOWN_SID_TYPE = 88; -pub const WELL_KNOWN_SID_TYPE_WinCapabilityVideosLibrarySid: WELL_KNOWN_SID_TYPE = 89; -pub const WELL_KNOWN_SID_TYPE_WinCapabilityMusicLibrarySid: WELL_KNOWN_SID_TYPE = 90; -pub const WELL_KNOWN_SID_TYPE_WinCapabilityDocumentsLibrarySid: WELL_KNOWN_SID_TYPE = 91; -pub const WELL_KNOWN_SID_TYPE_WinCapabilitySharedUserCertificatesSid: WELL_KNOWN_SID_TYPE = 92; -pub const WELL_KNOWN_SID_TYPE_WinCapabilityEnterpriseAuthenticationSid: WELL_KNOWN_SID_TYPE = 93; -pub const WELL_KNOWN_SID_TYPE_WinCapabilityRemovableStorageSid: WELL_KNOWN_SID_TYPE = 94; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinRDSRemoteAccessServersSid: WELL_KNOWN_SID_TYPE = 95; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinRDSEndpointServersSid: WELL_KNOWN_SID_TYPE = 96; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinRDSManagementServersSid: WELL_KNOWN_SID_TYPE = 97; -pub const WELL_KNOWN_SID_TYPE_WinUserModeDriversSid: WELL_KNOWN_SID_TYPE = 98; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinHyperVAdminsSid: WELL_KNOWN_SID_TYPE = 99; -pub const WELL_KNOWN_SID_TYPE_WinAccountCloneableControllersSid: WELL_KNOWN_SID_TYPE = 100; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinAccessControlAssistanceOperatorsSid: WELL_KNOWN_SID_TYPE = - 101; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinRemoteManagementUsersSid: WELL_KNOWN_SID_TYPE = 102; -pub const WELL_KNOWN_SID_TYPE_WinAuthenticationAuthorityAssertedSid: WELL_KNOWN_SID_TYPE = 103; -pub const WELL_KNOWN_SID_TYPE_WinAuthenticationServiceAssertedSid: WELL_KNOWN_SID_TYPE = 104; -pub const WELL_KNOWN_SID_TYPE_WinLocalAccountSid: WELL_KNOWN_SID_TYPE = 105; -pub const WELL_KNOWN_SID_TYPE_WinLocalAccountAndAdministratorSid: WELL_KNOWN_SID_TYPE = 106; -pub const WELL_KNOWN_SID_TYPE_WinAccountProtectedUsersSid: WELL_KNOWN_SID_TYPE = 107; -pub const WELL_KNOWN_SID_TYPE_WinCapabilityAppointmentsSid: WELL_KNOWN_SID_TYPE = 108; -pub const WELL_KNOWN_SID_TYPE_WinCapabilityContactsSid: WELL_KNOWN_SID_TYPE = 109; -pub const WELL_KNOWN_SID_TYPE_WinAccountDefaultSystemManagedSid: WELL_KNOWN_SID_TYPE = 110; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinDefaultSystemManagedGroupSid: WELL_KNOWN_SID_TYPE = 111; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinStorageReplicaAdminsSid: WELL_KNOWN_SID_TYPE = 112; -pub const WELL_KNOWN_SID_TYPE_WinAccountKeyAdminsSid: WELL_KNOWN_SID_TYPE = 113; -pub const WELL_KNOWN_SID_TYPE_WinAccountEnterpriseKeyAdminsSid: WELL_KNOWN_SID_TYPE = 114; -pub const WELL_KNOWN_SID_TYPE_WinAuthenticationKeyTrustSid: WELL_KNOWN_SID_TYPE = 115; -pub const WELL_KNOWN_SID_TYPE_WinAuthenticationKeyPropertyMFASid: WELL_KNOWN_SID_TYPE = 116; -pub const WELL_KNOWN_SID_TYPE_WinAuthenticationKeyPropertyAttestationSid: WELL_KNOWN_SID_TYPE = 117; -pub const WELL_KNOWN_SID_TYPE_WinAuthenticationFreshKeyAuthSid: WELL_KNOWN_SID_TYPE = 118; -pub const WELL_KNOWN_SID_TYPE_WinBuiltinDeviceOwnersSid: WELL_KNOWN_SID_TYPE = 119; -pub type WELL_KNOWN_SID_TYPE = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACL { - pub AclRevision: BYTE, - pub Sbz1: BYTE, - pub AclSize: WORD, - pub AceCount: WORD, - pub Sbz2: WORD, -} -pub type ACL = _ACL; -pub type PACL = *mut ACL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACE_HEADER { - pub AceType: BYTE, - pub AceFlags: BYTE, - pub AceSize: WORD, -} -pub type ACE_HEADER = _ACE_HEADER; -pub type PACE_HEADER = *mut ACE_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACCESS_ALLOWED_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub SidStart: DWORD, -} -pub type ACCESS_ALLOWED_ACE = _ACCESS_ALLOWED_ACE; -pub type PACCESS_ALLOWED_ACE = *mut ACCESS_ALLOWED_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACCESS_DENIED_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub SidStart: DWORD, -} -pub type ACCESS_DENIED_ACE = _ACCESS_DENIED_ACE; -pub type PACCESS_DENIED_ACE = *mut ACCESS_DENIED_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_AUDIT_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub SidStart: DWORD, -} -pub type SYSTEM_AUDIT_ACE = _SYSTEM_AUDIT_ACE; -pub type PSYSTEM_AUDIT_ACE = *mut SYSTEM_AUDIT_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_ALARM_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub SidStart: DWORD, -} -pub type SYSTEM_ALARM_ACE = _SYSTEM_ALARM_ACE; -pub type PSYSTEM_ALARM_ACE = *mut SYSTEM_ALARM_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_RESOURCE_ATTRIBUTE_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub SidStart: DWORD, -} -pub type SYSTEM_RESOURCE_ATTRIBUTE_ACE = _SYSTEM_RESOURCE_ATTRIBUTE_ACE; -pub type PSYSTEM_RESOURCE_ATTRIBUTE_ACE = *mut _SYSTEM_RESOURCE_ATTRIBUTE_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_SCOPED_POLICY_ID_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub SidStart: DWORD, -} -pub type SYSTEM_SCOPED_POLICY_ID_ACE = _SYSTEM_SCOPED_POLICY_ID_ACE; -pub type PSYSTEM_SCOPED_POLICY_ID_ACE = *mut _SYSTEM_SCOPED_POLICY_ID_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_MANDATORY_LABEL_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub SidStart: DWORD, -} -pub type SYSTEM_MANDATORY_LABEL_ACE = _SYSTEM_MANDATORY_LABEL_ACE; -pub type PSYSTEM_MANDATORY_LABEL_ACE = *mut _SYSTEM_MANDATORY_LABEL_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_PROCESS_TRUST_LABEL_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub SidStart: DWORD, -} -pub type SYSTEM_PROCESS_TRUST_LABEL_ACE = _SYSTEM_PROCESS_TRUST_LABEL_ACE; -pub type PSYSTEM_PROCESS_TRUST_LABEL_ACE = *mut _SYSTEM_PROCESS_TRUST_LABEL_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_ACCESS_FILTER_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub SidStart: DWORD, -} -pub type SYSTEM_ACCESS_FILTER_ACE = _SYSTEM_ACCESS_FILTER_ACE; -pub type PSYSTEM_ACCESS_FILTER_ACE = *mut _SYSTEM_ACCESS_FILTER_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACCESS_ALLOWED_OBJECT_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub Flags: DWORD, - pub ObjectType: GUID, - pub InheritedObjectType: GUID, - pub SidStart: DWORD, -} -pub type ACCESS_ALLOWED_OBJECT_ACE = _ACCESS_ALLOWED_OBJECT_ACE; -pub type PACCESS_ALLOWED_OBJECT_ACE = *mut _ACCESS_ALLOWED_OBJECT_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACCESS_DENIED_OBJECT_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub Flags: DWORD, - pub ObjectType: GUID, - pub InheritedObjectType: GUID, - pub SidStart: DWORD, -} -pub type ACCESS_DENIED_OBJECT_ACE = _ACCESS_DENIED_OBJECT_ACE; -pub type PACCESS_DENIED_OBJECT_ACE = *mut _ACCESS_DENIED_OBJECT_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_AUDIT_OBJECT_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub Flags: DWORD, - pub ObjectType: GUID, - pub InheritedObjectType: GUID, - pub SidStart: DWORD, -} -pub type SYSTEM_AUDIT_OBJECT_ACE = _SYSTEM_AUDIT_OBJECT_ACE; -pub type PSYSTEM_AUDIT_OBJECT_ACE = *mut _SYSTEM_AUDIT_OBJECT_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_ALARM_OBJECT_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub Flags: DWORD, - pub ObjectType: GUID, - pub InheritedObjectType: GUID, - pub SidStart: DWORD, -} -pub type SYSTEM_ALARM_OBJECT_ACE = _SYSTEM_ALARM_OBJECT_ACE; -pub type PSYSTEM_ALARM_OBJECT_ACE = *mut _SYSTEM_ALARM_OBJECT_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACCESS_ALLOWED_CALLBACK_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub SidStart: DWORD, -} -pub type ACCESS_ALLOWED_CALLBACK_ACE = _ACCESS_ALLOWED_CALLBACK_ACE; -pub type PACCESS_ALLOWED_CALLBACK_ACE = *mut _ACCESS_ALLOWED_CALLBACK_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACCESS_DENIED_CALLBACK_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub SidStart: DWORD, -} -pub type ACCESS_DENIED_CALLBACK_ACE = _ACCESS_DENIED_CALLBACK_ACE; -pub type PACCESS_DENIED_CALLBACK_ACE = *mut _ACCESS_DENIED_CALLBACK_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_AUDIT_CALLBACK_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub SidStart: DWORD, -} -pub type SYSTEM_AUDIT_CALLBACK_ACE = _SYSTEM_AUDIT_CALLBACK_ACE; -pub type PSYSTEM_AUDIT_CALLBACK_ACE = *mut _SYSTEM_AUDIT_CALLBACK_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_ALARM_CALLBACK_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub SidStart: DWORD, -} -pub type SYSTEM_ALARM_CALLBACK_ACE = _SYSTEM_ALARM_CALLBACK_ACE; -pub type PSYSTEM_ALARM_CALLBACK_ACE = *mut _SYSTEM_ALARM_CALLBACK_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACCESS_ALLOWED_CALLBACK_OBJECT_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub Flags: DWORD, - pub ObjectType: GUID, - pub InheritedObjectType: GUID, - pub SidStart: DWORD, -} -pub type ACCESS_ALLOWED_CALLBACK_OBJECT_ACE = _ACCESS_ALLOWED_CALLBACK_OBJECT_ACE; -pub type PACCESS_ALLOWED_CALLBACK_OBJECT_ACE = *mut _ACCESS_ALLOWED_CALLBACK_OBJECT_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACCESS_DENIED_CALLBACK_OBJECT_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub Flags: DWORD, - pub ObjectType: GUID, - pub InheritedObjectType: GUID, - pub SidStart: DWORD, -} -pub type ACCESS_DENIED_CALLBACK_OBJECT_ACE = _ACCESS_DENIED_CALLBACK_OBJECT_ACE; -pub type PACCESS_DENIED_CALLBACK_OBJECT_ACE = *mut _ACCESS_DENIED_CALLBACK_OBJECT_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_AUDIT_CALLBACK_OBJECT_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub Flags: DWORD, - pub ObjectType: GUID, - pub InheritedObjectType: GUID, - pub SidStart: DWORD, -} -pub type SYSTEM_AUDIT_CALLBACK_OBJECT_ACE = _SYSTEM_AUDIT_CALLBACK_OBJECT_ACE; -pub type PSYSTEM_AUDIT_CALLBACK_OBJECT_ACE = *mut _SYSTEM_AUDIT_CALLBACK_OBJECT_ACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_ALARM_CALLBACK_OBJECT_ACE { - pub Header: ACE_HEADER, - pub Mask: ACCESS_MASK, - pub Flags: DWORD, - pub ObjectType: GUID, - pub InheritedObjectType: GUID, - pub SidStart: DWORD, -} -pub type SYSTEM_ALARM_CALLBACK_OBJECT_ACE = _SYSTEM_ALARM_CALLBACK_OBJECT_ACE; -pub type PSYSTEM_ALARM_CALLBACK_OBJECT_ACE = *mut _SYSTEM_ALARM_CALLBACK_OBJECT_ACE; -pub const _ACL_INFORMATION_CLASS_AclRevisionInformation: _ACL_INFORMATION_CLASS = 1; -pub const _ACL_INFORMATION_CLASS_AclSizeInformation: _ACL_INFORMATION_CLASS = 2; -pub type _ACL_INFORMATION_CLASS = ::std::os::raw::c_int; -pub use self::_ACL_INFORMATION_CLASS as ACL_INFORMATION_CLASS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACL_REVISION_INFORMATION { - pub AclRevision: DWORD, -} -pub type ACL_REVISION_INFORMATION = _ACL_REVISION_INFORMATION; -pub type PACL_REVISION_INFORMATION = *mut ACL_REVISION_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACL_SIZE_INFORMATION { - pub AceCount: DWORD, - pub AclBytesInUse: DWORD, - pub AclBytesFree: DWORD, -} -pub type ACL_SIZE_INFORMATION = _ACL_SIZE_INFORMATION; -pub type PACL_SIZE_INFORMATION = *mut ACL_SIZE_INFORMATION; -pub type SECURITY_DESCRIPTOR_CONTROL = WORD; -pub type PSECURITY_DESCRIPTOR_CONTROL = *mut WORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SECURITY_DESCRIPTOR_RELATIVE { - pub Revision: BYTE, - pub Sbz1: BYTE, - pub Control: SECURITY_DESCRIPTOR_CONTROL, - pub Owner: DWORD, - pub Group: DWORD, - pub Sacl: DWORD, - pub Dacl: DWORD, -} -pub type SECURITY_DESCRIPTOR_RELATIVE = _SECURITY_DESCRIPTOR_RELATIVE; -pub type PISECURITY_DESCRIPTOR_RELATIVE = *mut _SECURITY_DESCRIPTOR_RELATIVE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SECURITY_DESCRIPTOR { - pub Revision: BYTE, - pub Sbz1: BYTE, - pub Control: SECURITY_DESCRIPTOR_CONTROL, - pub Owner: PSID, - pub Group: PSID, - pub Sacl: PACL, - pub Dacl: PACL, -} -pub type SECURITY_DESCRIPTOR = _SECURITY_DESCRIPTOR; -pub type PISECURITY_DESCRIPTOR = *mut _SECURITY_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SECURITY_OBJECT_AI_PARAMS { - pub Size: DWORD, - pub ConstraintMask: DWORD, -} -pub type SECURITY_OBJECT_AI_PARAMS = _SECURITY_OBJECT_AI_PARAMS; -pub type PSECURITY_OBJECT_AI_PARAMS = *mut _SECURITY_OBJECT_AI_PARAMS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OBJECT_TYPE_LIST { - pub Level: WORD, - pub Sbz: WORD, - pub ObjectType: *mut GUID, -} -pub type OBJECT_TYPE_LIST = _OBJECT_TYPE_LIST; -pub type POBJECT_TYPE_LIST = *mut _OBJECT_TYPE_LIST; -pub const _AUDIT_EVENT_TYPE_AuditEventObjectAccess: _AUDIT_EVENT_TYPE = 0; -pub const _AUDIT_EVENT_TYPE_AuditEventDirectoryServiceAccess: _AUDIT_EVENT_TYPE = 1; -pub type _AUDIT_EVENT_TYPE = ::std::os::raw::c_int; -pub use self::_AUDIT_EVENT_TYPE as AUDIT_EVENT_TYPE; -pub type PAUDIT_EVENT_TYPE = *mut _AUDIT_EVENT_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRIVILEGE_SET { - pub PrivilegeCount: DWORD, - pub Control: DWORD, - pub Privilege: [LUID_AND_ATTRIBUTES; 1usize], -} -pub type PRIVILEGE_SET = _PRIVILEGE_SET; -pub type PPRIVILEGE_SET = *mut _PRIVILEGE_SET; -pub const _ACCESS_REASON_TYPE_AccessReasonNone: _ACCESS_REASON_TYPE = 0; -pub const _ACCESS_REASON_TYPE_AccessReasonAllowedAce: _ACCESS_REASON_TYPE = 65536; -pub const _ACCESS_REASON_TYPE_AccessReasonDeniedAce: _ACCESS_REASON_TYPE = 131072; -pub const _ACCESS_REASON_TYPE_AccessReasonAllowedParentAce: _ACCESS_REASON_TYPE = 196608; -pub const _ACCESS_REASON_TYPE_AccessReasonDeniedParentAce: _ACCESS_REASON_TYPE = 262144; -pub const _ACCESS_REASON_TYPE_AccessReasonNotGrantedByCape: _ACCESS_REASON_TYPE = 327680; -pub const _ACCESS_REASON_TYPE_AccessReasonNotGrantedByParentCape: _ACCESS_REASON_TYPE = 393216; -pub const _ACCESS_REASON_TYPE_AccessReasonNotGrantedToAppContainer: _ACCESS_REASON_TYPE = 458752; -pub const _ACCESS_REASON_TYPE_AccessReasonMissingPrivilege: _ACCESS_REASON_TYPE = 1048576; -pub const _ACCESS_REASON_TYPE_AccessReasonFromPrivilege: _ACCESS_REASON_TYPE = 2097152; -pub const _ACCESS_REASON_TYPE_AccessReasonIntegrityLevel: _ACCESS_REASON_TYPE = 3145728; -pub const _ACCESS_REASON_TYPE_AccessReasonOwnership: _ACCESS_REASON_TYPE = 4194304; -pub const _ACCESS_REASON_TYPE_AccessReasonNullDacl: _ACCESS_REASON_TYPE = 5242880; -pub const _ACCESS_REASON_TYPE_AccessReasonEmptyDacl: _ACCESS_REASON_TYPE = 6291456; -pub const _ACCESS_REASON_TYPE_AccessReasonNoSD: _ACCESS_REASON_TYPE = 7340032; -pub const _ACCESS_REASON_TYPE_AccessReasonNoGrant: _ACCESS_REASON_TYPE = 8388608; -pub const _ACCESS_REASON_TYPE_AccessReasonTrustLabel: _ACCESS_REASON_TYPE = 9437184; -pub const _ACCESS_REASON_TYPE_AccessReasonFilterAce: _ACCESS_REASON_TYPE = 10485760; -pub type _ACCESS_REASON_TYPE = ::std::os::raw::c_int; -pub use self::_ACCESS_REASON_TYPE as ACCESS_REASON_TYPE; -pub type ACCESS_REASON = DWORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACCESS_REASONS { - pub Data: [ACCESS_REASON; 32usize], -} -pub type ACCESS_REASONS = _ACCESS_REASONS; -pub type PACCESS_REASONS = *mut _ACCESS_REASONS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SE_SECURITY_DESCRIPTOR { - pub Size: DWORD, - pub Flags: DWORD, - pub SecurityDescriptor: PSECURITY_DESCRIPTOR, -} -pub type SE_SECURITY_DESCRIPTOR = _SE_SECURITY_DESCRIPTOR; -pub type PSE_SECURITY_DESCRIPTOR = *mut _SE_SECURITY_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SE_ACCESS_REQUEST { - pub Size: DWORD, - pub SeSecurityDescriptor: PSE_SECURITY_DESCRIPTOR, - pub DesiredAccess: ACCESS_MASK, - pub PreviouslyGrantedAccess: ACCESS_MASK, - pub PrincipalSelfSid: PSID, - pub GenericMapping: PGENERIC_MAPPING, - pub ObjectTypeListCount: DWORD, - pub ObjectTypeList: POBJECT_TYPE_LIST, -} -pub type SE_ACCESS_REQUEST = _SE_ACCESS_REQUEST; -pub type PSE_ACCESS_REQUEST = *mut _SE_ACCESS_REQUEST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SE_ACCESS_REPLY { - pub Size: DWORD, - pub ResultListCount: DWORD, - pub GrantedAccess: PACCESS_MASK, - pub AccessStatus: PDWORD, - pub AccessReason: PACCESS_REASONS, - pub Privileges: *mut PPRIVILEGE_SET, -} -pub type SE_ACCESS_REPLY = _SE_ACCESS_REPLY; -pub type PSE_ACCESS_REPLY = *mut _SE_ACCESS_REPLY; -pub const _SECURITY_IMPERSONATION_LEVEL_SecurityAnonymous: _SECURITY_IMPERSONATION_LEVEL = 0; -pub const _SECURITY_IMPERSONATION_LEVEL_SecurityIdentification: _SECURITY_IMPERSONATION_LEVEL = 1; -pub const _SECURITY_IMPERSONATION_LEVEL_SecurityImpersonation: _SECURITY_IMPERSONATION_LEVEL = 2; -pub const _SECURITY_IMPERSONATION_LEVEL_SecurityDelegation: _SECURITY_IMPERSONATION_LEVEL = 3; -pub type _SECURITY_IMPERSONATION_LEVEL = ::std::os::raw::c_int; -pub use self::_SECURITY_IMPERSONATION_LEVEL as SECURITY_IMPERSONATION_LEVEL; -pub type PSECURITY_IMPERSONATION_LEVEL = *mut _SECURITY_IMPERSONATION_LEVEL; -pub const _TOKEN_TYPE_TokenPrimary: _TOKEN_TYPE = 1; -pub const _TOKEN_TYPE_TokenImpersonation: _TOKEN_TYPE = 2; -pub type _TOKEN_TYPE = ::std::os::raw::c_int; -pub use self::_TOKEN_TYPE as TOKEN_TYPE; -pub type PTOKEN_TYPE = *mut TOKEN_TYPE; -pub const _TOKEN_ELEVATION_TYPE_TokenElevationTypeDefault: _TOKEN_ELEVATION_TYPE = 1; -pub const _TOKEN_ELEVATION_TYPE_TokenElevationTypeFull: _TOKEN_ELEVATION_TYPE = 2; -pub const _TOKEN_ELEVATION_TYPE_TokenElevationTypeLimited: _TOKEN_ELEVATION_TYPE = 3; -pub type _TOKEN_ELEVATION_TYPE = ::std::os::raw::c_int; -pub use self::_TOKEN_ELEVATION_TYPE as TOKEN_ELEVATION_TYPE; -pub type PTOKEN_ELEVATION_TYPE = *mut _TOKEN_ELEVATION_TYPE; -pub const _TOKEN_INFORMATION_CLASS_TokenUser: _TOKEN_INFORMATION_CLASS = 1; -pub const _TOKEN_INFORMATION_CLASS_TokenGroups: _TOKEN_INFORMATION_CLASS = 2; -pub const _TOKEN_INFORMATION_CLASS_TokenPrivileges: _TOKEN_INFORMATION_CLASS = 3; -pub const _TOKEN_INFORMATION_CLASS_TokenOwner: _TOKEN_INFORMATION_CLASS = 4; -pub const _TOKEN_INFORMATION_CLASS_TokenPrimaryGroup: _TOKEN_INFORMATION_CLASS = 5; -pub const _TOKEN_INFORMATION_CLASS_TokenDefaultDacl: _TOKEN_INFORMATION_CLASS = 6; -pub const _TOKEN_INFORMATION_CLASS_TokenSource: _TOKEN_INFORMATION_CLASS = 7; -pub const _TOKEN_INFORMATION_CLASS_TokenType: _TOKEN_INFORMATION_CLASS = 8; -pub const _TOKEN_INFORMATION_CLASS_TokenImpersonationLevel: _TOKEN_INFORMATION_CLASS = 9; -pub const _TOKEN_INFORMATION_CLASS_TokenStatistics: _TOKEN_INFORMATION_CLASS = 10; -pub const _TOKEN_INFORMATION_CLASS_TokenRestrictedSids: _TOKEN_INFORMATION_CLASS = 11; -pub const _TOKEN_INFORMATION_CLASS_TokenSessionId: _TOKEN_INFORMATION_CLASS = 12; -pub const _TOKEN_INFORMATION_CLASS_TokenGroupsAndPrivileges: _TOKEN_INFORMATION_CLASS = 13; -pub const _TOKEN_INFORMATION_CLASS_TokenSessionReference: _TOKEN_INFORMATION_CLASS = 14; -pub const _TOKEN_INFORMATION_CLASS_TokenSandBoxInert: _TOKEN_INFORMATION_CLASS = 15; -pub const _TOKEN_INFORMATION_CLASS_TokenAuditPolicy: _TOKEN_INFORMATION_CLASS = 16; -pub const _TOKEN_INFORMATION_CLASS_TokenOrigin: _TOKEN_INFORMATION_CLASS = 17; -pub const _TOKEN_INFORMATION_CLASS_TokenElevationType: _TOKEN_INFORMATION_CLASS = 18; -pub const _TOKEN_INFORMATION_CLASS_TokenLinkedToken: _TOKEN_INFORMATION_CLASS = 19; -pub const _TOKEN_INFORMATION_CLASS_TokenElevation: _TOKEN_INFORMATION_CLASS = 20; -pub const _TOKEN_INFORMATION_CLASS_TokenHasRestrictions: _TOKEN_INFORMATION_CLASS = 21; -pub const _TOKEN_INFORMATION_CLASS_TokenAccessInformation: _TOKEN_INFORMATION_CLASS = 22; -pub const _TOKEN_INFORMATION_CLASS_TokenVirtualizationAllowed: _TOKEN_INFORMATION_CLASS = 23; -pub const _TOKEN_INFORMATION_CLASS_TokenVirtualizationEnabled: _TOKEN_INFORMATION_CLASS = 24; -pub const _TOKEN_INFORMATION_CLASS_TokenIntegrityLevel: _TOKEN_INFORMATION_CLASS = 25; -pub const _TOKEN_INFORMATION_CLASS_TokenUIAccess: _TOKEN_INFORMATION_CLASS = 26; -pub const _TOKEN_INFORMATION_CLASS_TokenMandatoryPolicy: _TOKEN_INFORMATION_CLASS = 27; -pub const _TOKEN_INFORMATION_CLASS_TokenLogonSid: _TOKEN_INFORMATION_CLASS = 28; -pub const _TOKEN_INFORMATION_CLASS_TokenIsAppContainer: _TOKEN_INFORMATION_CLASS = 29; -pub const _TOKEN_INFORMATION_CLASS_TokenCapabilities: _TOKEN_INFORMATION_CLASS = 30; -pub const _TOKEN_INFORMATION_CLASS_TokenAppContainerSid: _TOKEN_INFORMATION_CLASS = 31; -pub const _TOKEN_INFORMATION_CLASS_TokenAppContainerNumber: _TOKEN_INFORMATION_CLASS = 32; -pub const _TOKEN_INFORMATION_CLASS_TokenUserClaimAttributes: _TOKEN_INFORMATION_CLASS = 33; -pub const _TOKEN_INFORMATION_CLASS_TokenDeviceClaimAttributes: _TOKEN_INFORMATION_CLASS = 34; -pub const _TOKEN_INFORMATION_CLASS_TokenRestrictedUserClaimAttributes: _TOKEN_INFORMATION_CLASS = - 35; -pub const _TOKEN_INFORMATION_CLASS_TokenRestrictedDeviceClaimAttributes: _TOKEN_INFORMATION_CLASS = - 36; -pub const _TOKEN_INFORMATION_CLASS_TokenDeviceGroups: _TOKEN_INFORMATION_CLASS = 37; -pub const _TOKEN_INFORMATION_CLASS_TokenRestrictedDeviceGroups: _TOKEN_INFORMATION_CLASS = 38; -pub const _TOKEN_INFORMATION_CLASS_TokenSecurityAttributes: _TOKEN_INFORMATION_CLASS = 39; -pub const _TOKEN_INFORMATION_CLASS_TokenIsRestricted: _TOKEN_INFORMATION_CLASS = 40; -pub const _TOKEN_INFORMATION_CLASS_TokenProcessTrustLevel: _TOKEN_INFORMATION_CLASS = 41; -pub const _TOKEN_INFORMATION_CLASS_TokenPrivateNameSpace: _TOKEN_INFORMATION_CLASS = 42; -pub const _TOKEN_INFORMATION_CLASS_TokenSingletonAttributes: _TOKEN_INFORMATION_CLASS = 43; -pub const _TOKEN_INFORMATION_CLASS_TokenBnoIsolation: _TOKEN_INFORMATION_CLASS = 44; -pub const _TOKEN_INFORMATION_CLASS_TokenChildProcessFlags: _TOKEN_INFORMATION_CLASS = 45; -pub const _TOKEN_INFORMATION_CLASS_TokenIsLessPrivilegedAppContainer: _TOKEN_INFORMATION_CLASS = 46; -pub const _TOKEN_INFORMATION_CLASS_TokenIsSandboxed: _TOKEN_INFORMATION_CLASS = 47; -pub const _TOKEN_INFORMATION_CLASS_TokenIsAppSilo: _TOKEN_INFORMATION_CLASS = 48; -pub const _TOKEN_INFORMATION_CLASS_MaxTokenInfoClass: _TOKEN_INFORMATION_CLASS = 49; -pub type _TOKEN_INFORMATION_CLASS = ::std::os::raw::c_int; -pub use self::_TOKEN_INFORMATION_CLASS as TOKEN_INFORMATION_CLASS; -pub type PTOKEN_INFORMATION_CLASS = *mut _TOKEN_INFORMATION_CLASS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_USER { - pub User: SID_AND_ATTRIBUTES, -} -pub type TOKEN_USER = _TOKEN_USER; -pub type PTOKEN_USER = *mut _TOKEN_USER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _SE_TOKEN_USER { - pub __bindgen_anon_1: _SE_TOKEN_USER__bindgen_ty_1, - pub __bindgen_anon_2: _SE_TOKEN_USER__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SE_TOKEN_USER__bindgen_ty_1 { - pub TokenUser: TOKEN_USER, - pub User: SID_AND_ATTRIBUTES, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SE_TOKEN_USER__bindgen_ty_2 { - pub Sid: SID, - pub Buffer: [BYTE; 68usize], -} -pub type SE_TOKEN_USER = _SE_TOKEN_USER; -pub type PSE_TOKEN_USER = _SE_TOKEN_USER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_GROUPS { - pub GroupCount: DWORD, - pub Groups: [SID_AND_ATTRIBUTES; 1usize], -} -pub type TOKEN_GROUPS = _TOKEN_GROUPS; -pub type PTOKEN_GROUPS = *mut _TOKEN_GROUPS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_PRIVILEGES { - pub PrivilegeCount: DWORD, - pub Privileges: [LUID_AND_ATTRIBUTES; 1usize], -} -pub type TOKEN_PRIVILEGES = _TOKEN_PRIVILEGES; -pub type PTOKEN_PRIVILEGES = *mut _TOKEN_PRIVILEGES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_OWNER { - pub Owner: PSID, -} -pub type TOKEN_OWNER = _TOKEN_OWNER; -pub type PTOKEN_OWNER = *mut _TOKEN_OWNER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_PRIMARY_GROUP { - pub PrimaryGroup: PSID, -} -pub type TOKEN_PRIMARY_GROUP = _TOKEN_PRIMARY_GROUP; -pub type PTOKEN_PRIMARY_GROUP = *mut _TOKEN_PRIMARY_GROUP; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_DEFAULT_DACL { - pub DefaultDacl: PACL, -} -pub type TOKEN_DEFAULT_DACL = _TOKEN_DEFAULT_DACL; -pub type PTOKEN_DEFAULT_DACL = *mut _TOKEN_DEFAULT_DACL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_USER_CLAIMS { - pub UserClaims: PCLAIMS_BLOB, -} -pub type TOKEN_USER_CLAIMS = _TOKEN_USER_CLAIMS; -pub type PTOKEN_USER_CLAIMS = *mut _TOKEN_USER_CLAIMS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_DEVICE_CLAIMS { - pub DeviceClaims: PCLAIMS_BLOB, -} -pub type TOKEN_DEVICE_CLAIMS = _TOKEN_DEVICE_CLAIMS; -pub type PTOKEN_DEVICE_CLAIMS = *mut _TOKEN_DEVICE_CLAIMS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_GROUPS_AND_PRIVILEGES { - pub SidCount: DWORD, - pub SidLength: DWORD, - pub Sids: PSID_AND_ATTRIBUTES, - pub RestrictedSidCount: DWORD, - pub RestrictedSidLength: DWORD, - pub RestrictedSids: PSID_AND_ATTRIBUTES, - pub PrivilegeCount: DWORD, - pub PrivilegeLength: DWORD, - pub Privileges: PLUID_AND_ATTRIBUTES, - pub AuthenticationId: LUID, -} -pub type TOKEN_GROUPS_AND_PRIVILEGES = _TOKEN_GROUPS_AND_PRIVILEGES; -pub type PTOKEN_GROUPS_AND_PRIVILEGES = *mut _TOKEN_GROUPS_AND_PRIVILEGES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_LINKED_TOKEN { - pub LinkedToken: HANDLE, -} -pub type TOKEN_LINKED_TOKEN = _TOKEN_LINKED_TOKEN; -pub type PTOKEN_LINKED_TOKEN = *mut _TOKEN_LINKED_TOKEN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_ELEVATION { - pub TokenIsElevated: DWORD, -} -pub type TOKEN_ELEVATION = _TOKEN_ELEVATION; -pub type PTOKEN_ELEVATION = *mut _TOKEN_ELEVATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_MANDATORY_LABEL { - pub Label: SID_AND_ATTRIBUTES, -} -pub type TOKEN_MANDATORY_LABEL = _TOKEN_MANDATORY_LABEL; -pub type PTOKEN_MANDATORY_LABEL = *mut _TOKEN_MANDATORY_LABEL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_MANDATORY_POLICY { - pub Policy: DWORD, -} -pub type TOKEN_MANDATORY_POLICY = _TOKEN_MANDATORY_POLICY; -pub type PTOKEN_MANDATORY_POLICY = *mut _TOKEN_MANDATORY_POLICY; -pub type PSECURITY_ATTRIBUTES_OPAQUE = PVOID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_ACCESS_INFORMATION { - pub SidHash: PSID_AND_ATTRIBUTES_HASH, - pub RestrictedSidHash: PSID_AND_ATTRIBUTES_HASH, - pub Privileges: PTOKEN_PRIVILEGES, - pub AuthenticationId: LUID, - pub TokenType: TOKEN_TYPE, - pub ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, - pub MandatoryPolicy: TOKEN_MANDATORY_POLICY, - pub Flags: DWORD, - pub AppContainerNumber: DWORD, - pub PackageSid: PSID, - pub CapabilitiesHash: PSID_AND_ATTRIBUTES_HASH, - pub TrustLevelSid: PSID, - pub SecurityAttributes: PSECURITY_ATTRIBUTES_OPAQUE, -} -pub type TOKEN_ACCESS_INFORMATION = _TOKEN_ACCESS_INFORMATION; -pub type PTOKEN_ACCESS_INFORMATION = *mut _TOKEN_ACCESS_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_AUDIT_POLICY { - pub PerUserPolicy: [BYTE; 30usize], -} -pub type TOKEN_AUDIT_POLICY = _TOKEN_AUDIT_POLICY; -pub type PTOKEN_AUDIT_POLICY = *mut _TOKEN_AUDIT_POLICY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_SOURCE { - pub SourceName: [CHAR; 8usize], - pub SourceIdentifier: LUID, -} -pub type TOKEN_SOURCE = _TOKEN_SOURCE; -pub type PTOKEN_SOURCE = *mut _TOKEN_SOURCE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _TOKEN_STATISTICS { - pub TokenId: LUID, - pub AuthenticationId: LUID, - pub ExpirationTime: LARGE_INTEGER, - pub TokenType: TOKEN_TYPE, - pub ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, - pub DynamicCharged: DWORD, - pub DynamicAvailable: DWORD, - pub GroupCount: DWORD, - pub PrivilegeCount: DWORD, - pub ModifiedId: LUID, -} -pub type TOKEN_STATISTICS = _TOKEN_STATISTICS; -pub type PTOKEN_STATISTICS = *mut _TOKEN_STATISTICS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_CONTROL { - pub TokenId: LUID, - pub AuthenticationId: LUID, - pub ModifiedId: LUID, - pub TokenSource: TOKEN_SOURCE, -} -pub type TOKEN_CONTROL = _TOKEN_CONTROL; -pub type PTOKEN_CONTROL = *mut _TOKEN_CONTROL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_ORIGIN { - pub OriginatingLogonSession: LUID, -} -pub type TOKEN_ORIGIN = _TOKEN_ORIGIN; -pub type PTOKEN_ORIGIN = *mut _TOKEN_ORIGIN; -pub const _MANDATORY_LEVEL_MandatoryLevelUntrusted: _MANDATORY_LEVEL = 0; -pub const _MANDATORY_LEVEL_MandatoryLevelLow: _MANDATORY_LEVEL = 1; -pub const _MANDATORY_LEVEL_MandatoryLevelMedium: _MANDATORY_LEVEL = 2; -pub const _MANDATORY_LEVEL_MandatoryLevelHigh: _MANDATORY_LEVEL = 3; -pub const _MANDATORY_LEVEL_MandatoryLevelSystem: _MANDATORY_LEVEL = 4; -pub const _MANDATORY_LEVEL_MandatoryLevelSecureProcess: _MANDATORY_LEVEL = 5; -pub const _MANDATORY_LEVEL_MandatoryLevelCount: _MANDATORY_LEVEL = 6; -pub type _MANDATORY_LEVEL = ::std::os::raw::c_int; -pub use self::_MANDATORY_LEVEL as MANDATORY_LEVEL; -pub type PMANDATORY_LEVEL = *mut _MANDATORY_LEVEL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_APPCONTAINER_INFORMATION { - pub TokenAppContainer: PSID, -} -pub type TOKEN_APPCONTAINER_INFORMATION = _TOKEN_APPCONTAINER_INFORMATION; -pub type PTOKEN_APPCONTAINER_INFORMATION = *mut _TOKEN_APPCONTAINER_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_SID_INFORMATION { - pub Sid: PSID, -} -pub type TOKEN_SID_INFORMATION = _TOKEN_SID_INFORMATION; -pub type PTOKEN_SID_INFORMATION = *mut _TOKEN_SID_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TOKEN_BNO_ISOLATION_INFORMATION { - pub IsolationPrefix: PWSTR, - pub IsolationEnabled: BOOLEAN, -} -pub type TOKEN_BNO_ISOLATION_INFORMATION = _TOKEN_BNO_ISOLATION_INFORMATION; -pub type PTOKEN_BNO_ISOLATION_INFORMATION = *mut _TOKEN_BNO_ISOLATION_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE { - pub Version: DWORD64, - pub Name: PWSTR, -} -pub type CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE = _CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE; -pub type PCLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE = *mut _CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE { - pub pValue: PVOID, - pub ValueLength: DWORD, -} -pub type CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE = _CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE; -pub type PCLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE = - *mut _CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CLAIM_SECURITY_ATTRIBUTE_V1 { - pub Name: PWSTR, - pub ValueType: WORD, - pub Reserved: WORD, - pub Flags: DWORD, - pub ValueCount: DWORD, - pub Values: _CLAIM_SECURITY_ATTRIBUTE_V1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CLAIM_SECURITY_ATTRIBUTE_V1__bindgen_ty_1 { - pub pInt64: PLONG64, - pub pUint64: PDWORD64, - pub ppString: *mut PWSTR, - pub pFqbn: PCLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE, - pub pOctetString: PCLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE, -} -pub type CLAIM_SECURITY_ATTRIBUTE_V1 = _CLAIM_SECURITY_ATTRIBUTE_V1; -pub type PCLAIM_SECURITY_ATTRIBUTE_V1 = *mut _CLAIM_SECURITY_ATTRIBUTE_V1; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 { - pub Name: DWORD, - pub ValueType: WORD, - pub Reserved: WORD, - pub Flags: DWORD, - pub ValueCount: DWORD, - pub Values: _CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1__bindgen_ty_1 { - pub pInt64: [DWORD; 1usize], - pub pUint64: [DWORD; 1usize], - pub ppString: [DWORD; 1usize], - pub pFqbn: [DWORD; 1usize], - pub pOctetString: [DWORD; 1usize], -} -pub type CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 = _CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1; -pub type PCLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 = *mut _CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CLAIM_SECURITY_ATTRIBUTES_INFORMATION { - pub Version: WORD, - pub Reserved: WORD, - pub AttributeCount: DWORD, - pub Attribute: _CLAIM_SECURITY_ATTRIBUTES_INFORMATION__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CLAIM_SECURITY_ATTRIBUTES_INFORMATION__bindgen_ty_1 { - pub pAttributeV1: PCLAIM_SECURITY_ATTRIBUTE_V1, -} -pub type CLAIM_SECURITY_ATTRIBUTES_INFORMATION = _CLAIM_SECURITY_ATTRIBUTES_INFORMATION; -pub type PCLAIM_SECURITY_ATTRIBUTES_INFORMATION = *mut _CLAIM_SECURITY_ATTRIBUTES_INFORMATION; -pub type SECURITY_CONTEXT_TRACKING_MODE = BOOLEAN; -pub type PSECURITY_CONTEXT_TRACKING_MODE = *mut BOOLEAN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SECURITY_QUALITY_OF_SERVICE { - pub Length: DWORD, - pub ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, - pub ContextTrackingMode: SECURITY_CONTEXT_TRACKING_MODE, - pub EffectiveOnly: BOOLEAN, -} -pub type SECURITY_QUALITY_OF_SERVICE = _SECURITY_QUALITY_OF_SERVICE; -pub type PSECURITY_QUALITY_OF_SERVICE = *mut _SECURITY_QUALITY_OF_SERVICE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SE_IMPERSONATION_STATE { - pub Token: PACCESS_TOKEN, - pub CopyOnOpen: BOOLEAN, - pub EffectiveOnly: BOOLEAN, - pub Level: SECURITY_IMPERSONATION_LEVEL, -} -pub type SE_IMPERSONATION_STATE = _SE_IMPERSONATION_STATE; -pub type PSE_IMPERSONATION_STATE = *mut _SE_IMPERSONATION_STATE; -pub type SECURITY_INFORMATION = DWORD; -pub type PSECURITY_INFORMATION = *mut DWORD; -pub type SE_SIGNING_LEVEL = BYTE; -pub type PSE_SIGNING_LEVEL = *mut BYTE; -pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignatureNone: _SE_IMAGE_SIGNATURE_TYPE = 0; -pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignatureEmbedded: _SE_IMAGE_SIGNATURE_TYPE = 1; -pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignatureCache: _SE_IMAGE_SIGNATURE_TYPE = 2; -pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignatureCatalogCached: _SE_IMAGE_SIGNATURE_TYPE = 3; -pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignatureCatalogNotCached: _SE_IMAGE_SIGNATURE_TYPE = 4; -pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignatureCatalogHint: _SE_IMAGE_SIGNATURE_TYPE = 5; -pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignaturePackageCatalog: _SE_IMAGE_SIGNATURE_TYPE = 6; -pub const _SE_IMAGE_SIGNATURE_TYPE_SeImageSignaturePplMitigated: _SE_IMAGE_SIGNATURE_TYPE = 7; -pub type _SE_IMAGE_SIGNATURE_TYPE = ::std::os::raw::c_int; -pub use self::_SE_IMAGE_SIGNATURE_TYPE as SE_IMAGE_SIGNATURE_TYPE; -pub type PSE_IMAGE_SIGNATURE_TYPE = *mut _SE_IMAGE_SIGNATURE_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SECURITY_CAPABILITIES { - pub AppContainerSid: PSID, - pub Capabilities: PSID_AND_ATTRIBUTES, - pub CapabilityCount: DWORD, - pub Reserved: DWORD, -} -pub type SECURITY_CAPABILITIES = _SECURITY_CAPABILITIES; -pub type PSECURITY_CAPABILITIES = *mut _SECURITY_CAPABILITIES; -pub type LPSECURITY_CAPABILITIES = *mut _SECURITY_CAPABILITIES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOB_SET_ARRAY { - pub JobHandle: HANDLE, - pub MemberLevel: DWORD, - pub Flags: DWORD, -} -pub type JOB_SET_ARRAY = _JOB_SET_ARRAY; -pub type PJOB_SET_ARRAY = *mut _JOB_SET_ARRAY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EXCEPTION_REGISTRATION_RECORD { - pub Next: *mut _EXCEPTION_REGISTRATION_RECORD, - pub Handler: PEXCEPTION_ROUTINE, -} -pub type EXCEPTION_REGISTRATION_RECORD = _EXCEPTION_REGISTRATION_RECORD; -pub type PEXCEPTION_REGISTRATION_RECORD = *mut EXCEPTION_REGISTRATION_RECORD; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _NT_TIB { - pub ExceptionList: *mut _EXCEPTION_REGISTRATION_RECORD, - pub StackBase: PVOID, - pub StackLimit: PVOID, - pub SubSystemTib: PVOID, - pub __bindgen_anon_1: _NT_TIB__bindgen_ty_1, - pub ArbitraryUserPointer: PVOID, - pub Self_: *mut _NT_TIB, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _NT_TIB__bindgen_ty_1 { - pub FiberData: PVOID, - pub Version: DWORD, -} -pub type NT_TIB = _NT_TIB; -pub type PNT_TIB = *mut NT_TIB; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _NT_TIB32 { - pub ExceptionList: DWORD, - pub StackBase: DWORD, - pub StackLimit: DWORD, - pub SubSystemTib: DWORD, - pub __bindgen_anon_1: _NT_TIB32__bindgen_ty_1, - pub ArbitraryUserPointer: DWORD, - pub Self_: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _NT_TIB32__bindgen_ty_1 { - pub FiberData: DWORD, - pub Version: DWORD, -} -pub type NT_TIB32 = _NT_TIB32; -pub type PNT_TIB32 = *mut _NT_TIB32; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _NT_TIB64 { - pub ExceptionList: DWORD64, - pub StackBase: DWORD64, - pub StackLimit: DWORD64, - pub SubSystemTib: DWORD64, - pub __bindgen_anon_1: _NT_TIB64__bindgen_ty_1, - pub ArbitraryUserPointer: DWORD64, - pub Self_: DWORD64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _NT_TIB64__bindgen_ty_1 { - pub FiberData: DWORD64, - pub Version: DWORD, -} -pub type NT_TIB64 = _NT_TIB64; -pub type PNT_TIB64 = *mut _NT_TIB64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _UMS_CREATE_THREAD_ATTRIBUTES { - pub UmsVersion: DWORD, - pub UmsContext: PVOID, - pub UmsCompletionList: PVOID, -} -pub type UMS_CREATE_THREAD_ATTRIBUTES = _UMS_CREATE_THREAD_ATTRIBUTES; -pub type PUMS_CREATE_THREAD_ATTRIBUTES = *mut _UMS_CREATE_THREAD_ATTRIBUTES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _COMPONENT_FILTER { - pub ComponentFlags: DWORD, -} -pub type COMPONENT_FILTER = _COMPONENT_FILTER; -pub type PCOMPONENT_FILTER = *mut _COMPONENT_FILTER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_DYNAMIC_EH_CONTINUATION_TARGET { - pub TargetAddress: ULONG_PTR, - pub Flags: ULONG_PTR, -} -pub type PROCESS_DYNAMIC_EH_CONTINUATION_TARGET = _PROCESS_DYNAMIC_EH_CONTINUATION_TARGET; -pub type PPROCESS_DYNAMIC_EH_CONTINUATION_TARGET = *mut _PROCESS_DYNAMIC_EH_CONTINUATION_TARGET; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION { - pub NumberOfTargets: WORD, - pub Reserved: WORD, - pub Reserved2: DWORD, - pub Targets: PPROCESS_DYNAMIC_EH_CONTINUATION_TARGET, -} -pub type PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION = - _PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION; -pub type PPROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION = - *mut _PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE { - pub BaseAddress: ULONG_PTR, - pub Size: SIZE_T, - pub Flags: DWORD, -} -pub type PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE = _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE; -pub type PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE = *mut _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION { - pub NumberOfRanges: WORD, - pub Reserved: WORD, - pub Reserved2: DWORD, - pub Ranges: PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE, -} -pub type PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION = - _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION; -pub type PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION = - *mut _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _QUOTA_LIMITS { - pub PagedPoolLimit: SIZE_T, - pub NonPagedPoolLimit: SIZE_T, - pub MinimumWorkingSetSize: SIZE_T, - pub MaximumWorkingSetSize: SIZE_T, - pub PagefileLimit: SIZE_T, - pub TimeLimit: LARGE_INTEGER, -} -pub type QUOTA_LIMITS = _QUOTA_LIMITS; -pub type PQUOTA_LIMITS = *mut _QUOTA_LIMITS; -#[repr(C)] -#[derive(Copy, Clone)] -pub union _RATE_QUOTA_LIMIT { - pub RateData: DWORD, - pub __bindgen_anon_1: _RATE_QUOTA_LIMIT__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _RATE_QUOTA_LIMIT__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _RATE_QUOTA_LIMIT__bindgen_ty_1 { - #[inline] - pub fn RatePercent(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 7u8) as u32) } - } - #[inline] - pub fn set_RatePercent(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 7u8, val as u64) - } - } - #[inline] - pub fn Reserved0(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 25u8) as u32) } - } - #[inline] - pub fn set_Reserved0(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(7usize, 25u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - RatePercent: DWORD, - Reserved0: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 7u8, { - let RatePercent: u32 = unsafe { ::std::mem::transmute(RatePercent) }; - RatePercent as u64 - }); - __bindgen_bitfield_unit.set(7usize, 25u8, { - let Reserved0: u32 = unsafe { ::std::mem::transmute(Reserved0) }; - Reserved0 as u64 - }); - __bindgen_bitfield_unit - } -} -pub type RATE_QUOTA_LIMIT = _RATE_QUOTA_LIMIT; -pub type PRATE_QUOTA_LIMIT = *mut _RATE_QUOTA_LIMIT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _QUOTA_LIMITS_EX { - pub PagedPoolLimit: SIZE_T, - pub NonPagedPoolLimit: SIZE_T, - pub MinimumWorkingSetSize: SIZE_T, - pub MaximumWorkingSetSize: SIZE_T, - pub PagefileLimit: SIZE_T, - pub TimeLimit: LARGE_INTEGER, - pub WorkingSetLimit: SIZE_T, - pub Reserved2: SIZE_T, - pub Reserved3: SIZE_T, - pub Reserved4: SIZE_T, - pub Flags: DWORD, - pub CpuRateLimit: RATE_QUOTA_LIMIT, -} -pub type QUOTA_LIMITS_EX = _QUOTA_LIMITS_EX; -pub type PQUOTA_LIMITS_EX = *mut _QUOTA_LIMITS_EX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IO_COUNTERS { - pub ReadOperationCount: ULONGLONG, - pub WriteOperationCount: ULONGLONG, - pub OtherOperationCount: ULONGLONG, - pub ReadTransferCount: ULONGLONG, - pub WriteTransferCount: ULONGLONG, - pub OtherTransferCount: ULONGLONG, -} -pub type IO_COUNTERS = _IO_COUNTERS; -pub type PIO_COUNTERS = *mut IO_COUNTERS; -pub const _HARDWARE_COUNTER_TYPE_PMCCounter: _HARDWARE_COUNTER_TYPE = 0; -pub const _HARDWARE_COUNTER_TYPE_MaxHardwareCounterType: _HARDWARE_COUNTER_TYPE = 1; -pub type _HARDWARE_COUNTER_TYPE = ::std::os::raw::c_int; -pub use self::_HARDWARE_COUNTER_TYPE as HARDWARE_COUNTER_TYPE; -pub type PHARDWARE_COUNTER_TYPE = *mut _HARDWARE_COUNTER_TYPE; -pub const _PROCESS_MITIGATION_POLICY_ProcessDEPPolicy: _PROCESS_MITIGATION_POLICY = 0; -pub const _PROCESS_MITIGATION_POLICY_ProcessASLRPolicy: _PROCESS_MITIGATION_POLICY = 1; -pub const _PROCESS_MITIGATION_POLICY_ProcessDynamicCodePolicy: _PROCESS_MITIGATION_POLICY = 2; -pub const _PROCESS_MITIGATION_POLICY_ProcessStrictHandleCheckPolicy: _PROCESS_MITIGATION_POLICY = 3; -pub const _PROCESS_MITIGATION_POLICY_ProcessSystemCallDisablePolicy: _PROCESS_MITIGATION_POLICY = 4; -pub const _PROCESS_MITIGATION_POLICY_ProcessMitigationOptionsMask: _PROCESS_MITIGATION_POLICY = 5; -pub const _PROCESS_MITIGATION_POLICY_ProcessExtensionPointDisablePolicy: - _PROCESS_MITIGATION_POLICY = 6; -pub const _PROCESS_MITIGATION_POLICY_ProcessControlFlowGuardPolicy: _PROCESS_MITIGATION_POLICY = 7; -pub const _PROCESS_MITIGATION_POLICY_ProcessSignaturePolicy: _PROCESS_MITIGATION_POLICY = 8; -pub const _PROCESS_MITIGATION_POLICY_ProcessFontDisablePolicy: _PROCESS_MITIGATION_POLICY = 9; -pub const _PROCESS_MITIGATION_POLICY_ProcessImageLoadPolicy: _PROCESS_MITIGATION_POLICY = 10; -pub const _PROCESS_MITIGATION_POLICY_ProcessSystemCallFilterPolicy: _PROCESS_MITIGATION_POLICY = 11; -pub const _PROCESS_MITIGATION_POLICY_ProcessPayloadRestrictionPolicy: _PROCESS_MITIGATION_POLICY = - 12; -pub const _PROCESS_MITIGATION_POLICY_ProcessChildProcessPolicy: _PROCESS_MITIGATION_POLICY = 13; -pub const _PROCESS_MITIGATION_POLICY_ProcessSideChannelIsolationPolicy: _PROCESS_MITIGATION_POLICY = - 14; -pub const _PROCESS_MITIGATION_POLICY_ProcessUserShadowStackPolicy: _PROCESS_MITIGATION_POLICY = 15; -pub const _PROCESS_MITIGATION_POLICY_ProcessRedirectionTrustPolicy: _PROCESS_MITIGATION_POLICY = 16; -pub const _PROCESS_MITIGATION_POLICY_ProcessUserPointerAuthPolicy: _PROCESS_MITIGATION_POLICY = 17; -pub const _PROCESS_MITIGATION_POLICY_ProcessSEHOPPolicy: _PROCESS_MITIGATION_POLICY = 18; -pub const _PROCESS_MITIGATION_POLICY_ProcessActivationContextTrustPolicy: - _PROCESS_MITIGATION_POLICY = 19; -pub const _PROCESS_MITIGATION_POLICY_MaxProcessMitigationPolicy: _PROCESS_MITIGATION_POLICY = 20; -pub type _PROCESS_MITIGATION_POLICY = ::std::os::raw::c_int; -pub use self::_PROCESS_MITIGATION_POLICY as PROCESS_MITIGATION_POLICY; -pub type PPROCESS_MITIGATION_POLICY = *mut _PROCESS_MITIGATION_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_ASLR_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_ASLR_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_ASLR_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: _PROCESS_MITIGATION_ASLR_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_ASLR_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_ASLR_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn EnableBottomUpRandomization(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableBottomUpRandomization(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn EnableForceRelocateImages(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableForceRelocateImages(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn EnableHighEntropy(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableHighEntropy(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn DisallowStrippedImages(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_DisallowStrippedImages(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 28u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - EnableBottomUpRandomization: DWORD, - EnableForceRelocateImages: DWORD, - EnableHighEntropy: DWORD, - DisallowStrippedImages: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let EnableBottomUpRandomization: u32 = - unsafe { ::std::mem::transmute(EnableBottomUpRandomization) }; - EnableBottomUpRandomization as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let EnableForceRelocateImages: u32 = - unsafe { ::std::mem::transmute(EnableForceRelocateImages) }; - EnableForceRelocateImages as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let EnableHighEntropy: u32 = unsafe { ::std::mem::transmute(EnableHighEntropy) }; - EnableHighEntropy as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let DisallowStrippedImages: u32 = - unsafe { ::std::mem::transmute(DisallowStrippedImages) }; - DisallowStrippedImages as u64 - }); - __bindgen_bitfield_unit.set(4usize, 28u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_ASLR_POLICY = _PROCESS_MITIGATION_ASLR_POLICY; -pub type PPROCESS_MITIGATION_ASLR_POLICY = *mut _PROCESS_MITIGATION_ASLR_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_DEP_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_DEP_POLICY__bindgen_ty_1, - pub Permanent: BOOLEAN, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_DEP_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: _PROCESS_MITIGATION_DEP_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_DEP_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_DEP_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn Enable(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_Enable(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn DisableAtlThunkEmulation(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_DisableAtlThunkEmulation(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 30u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - Enable: DWORD, - DisableAtlThunkEmulation: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let Enable: u32 = unsafe { ::std::mem::transmute(Enable) }; - Enable as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let DisableAtlThunkEmulation: u32 = - unsafe { ::std::mem::transmute(DisableAtlThunkEmulation) }; - DisableAtlThunkEmulation as u64 - }); - __bindgen_bitfield_unit.set(2usize, 30u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_DEP_POLICY = _PROCESS_MITIGATION_DEP_POLICY; -pub type PPROCESS_MITIGATION_DEP_POLICY = *mut _PROCESS_MITIGATION_DEP_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_SEHOP_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_SEHOP_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_SEHOP_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: _PROCESS_MITIGATION_SEHOP_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_SEHOP_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_SEHOP_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn EnableSehop(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableSehop(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 31u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - EnableSehop: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let EnableSehop: u32 = unsafe { ::std::mem::transmute(EnableSehop) }; - EnableSehop as u64 - }); - __bindgen_bitfield_unit.set(1usize, 31u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_SEHOP_POLICY = _PROCESS_MITIGATION_SEHOP_POLICY; -pub type PPROCESS_MITIGATION_SEHOP_POLICY = *mut _PROCESS_MITIGATION_SEHOP_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: - _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn RaiseExceptionOnInvalidHandleReference(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_RaiseExceptionOnInvalidHandleReference(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn HandleExceptionsPermanentlyEnabled(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_HandleExceptionsPermanentlyEnabled(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 30u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - RaiseExceptionOnInvalidHandleReference: DWORD, - HandleExceptionsPermanentlyEnabled: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let RaiseExceptionOnInvalidHandleReference: u32 = - unsafe { ::std::mem::transmute(RaiseExceptionOnInvalidHandleReference) }; - RaiseExceptionOnInvalidHandleReference as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let HandleExceptionsPermanentlyEnabled: u32 = - unsafe { ::std::mem::transmute(HandleExceptionsPermanentlyEnabled) }; - HandleExceptionsPermanentlyEnabled as u64 - }); - __bindgen_bitfield_unit.set(2usize, 30u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY = - _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY; -pub type PPROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY = - *mut _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: - _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn DisallowWin32kSystemCalls(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_DisallowWin32kSystemCalls(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditDisallowWin32kSystemCalls(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditDisallowWin32kSystemCalls(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 30u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - DisallowWin32kSystemCalls: DWORD, - AuditDisallowWin32kSystemCalls: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let DisallowWin32kSystemCalls: u32 = - unsafe { ::std::mem::transmute(DisallowWin32kSystemCalls) }; - DisallowWin32kSystemCalls as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let AuditDisallowWin32kSystemCalls: u32 = - unsafe { ::std::mem::transmute(AuditDisallowWin32kSystemCalls) }; - AuditDisallowWin32kSystemCalls as u64 - }); - __bindgen_bitfield_unit.set(2usize, 30u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY = - _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY; -pub type PPROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY = - *mut _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: - _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn DisableExtensionPoints(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_DisableExtensionPoints(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 31u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - DisableExtensionPoints: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let DisableExtensionPoints: u32 = - unsafe { ::std::mem::transmute(DisableExtensionPoints) }; - DisableExtensionPoints as u64 - }); - __bindgen_bitfield_unit.set(1usize, 31u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY = - _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY; -pub type PPROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY = - *mut _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn ProhibitDynamicCode(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_ProhibitDynamicCode(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn AllowThreadOptOut(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_AllowThreadOptOut(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn AllowRemoteDowngrade(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_AllowRemoteDowngrade(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditProhibitDynamicCode(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditProhibitDynamicCode(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 28u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - ProhibitDynamicCode: DWORD, - AllowThreadOptOut: DWORD, - AllowRemoteDowngrade: DWORD, - AuditProhibitDynamicCode: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let ProhibitDynamicCode: u32 = unsafe { ::std::mem::transmute(ProhibitDynamicCode) }; - ProhibitDynamicCode as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let AllowThreadOptOut: u32 = unsafe { ::std::mem::transmute(AllowThreadOptOut) }; - AllowThreadOptOut as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let AllowRemoteDowngrade: u32 = unsafe { ::std::mem::transmute(AllowRemoteDowngrade) }; - AllowRemoteDowngrade as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let AuditProhibitDynamicCode: u32 = - unsafe { ::std::mem::transmute(AuditProhibitDynamicCode) }; - AuditProhibitDynamicCode as u64 - }); - __bindgen_bitfield_unit.set(4usize, 28u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_DYNAMIC_CODE_POLICY = _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY; -pub type PPROCESS_MITIGATION_DYNAMIC_CODE_POLICY = *mut _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn EnableControlFlowGuard(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableControlFlowGuard(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn EnableExportSuppression(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableExportSuppression(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn StrictMode(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_StrictMode(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn EnableXfg(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableXfg(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn EnableXfgAuditMode(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableXfgAuditMode(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 27u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - EnableControlFlowGuard: DWORD, - EnableExportSuppression: DWORD, - StrictMode: DWORD, - EnableXfg: DWORD, - EnableXfgAuditMode: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let EnableControlFlowGuard: u32 = - unsafe { ::std::mem::transmute(EnableControlFlowGuard) }; - EnableControlFlowGuard as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let EnableExportSuppression: u32 = - unsafe { ::std::mem::transmute(EnableExportSuppression) }; - EnableExportSuppression as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let StrictMode: u32 = unsafe { ::std::mem::transmute(StrictMode) }; - StrictMode as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let EnableXfg: u32 = unsafe { ::std::mem::transmute(EnableXfg) }; - EnableXfg as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let EnableXfgAuditMode: u32 = unsafe { ::std::mem::transmute(EnableXfgAuditMode) }; - EnableXfgAuditMode as u64 - }); - __bindgen_bitfield_unit.set(5usize, 27u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY = - _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY; -pub type PPROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY = - *mut _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn MicrosoftSignedOnly(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_MicrosoftSignedOnly(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn StoreSignedOnly(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_StoreSignedOnly(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn MitigationOptIn(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_MitigationOptIn(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditMicrosoftSignedOnly(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditMicrosoftSignedOnly(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditStoreSignedOnly(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditStoreSignedOnly(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 27u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - MicrosoftSignedOnly: DWORD, - StoreSignedOnly: DWORD, - MitigationOptIn: DWORD, - AuditMicrosoftSignedOnly: DWORD, - AuditStoreSignedOnly: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let MicrosoftSignedOnly: u32 = unsafe { ::std::mem::transmute(MicrosoftSignedOnly) }; - MicrosoftSignedOnly as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let StoreSignedOnly: u32 = unsafe { ::std::mem::transmute(StoreSignedOnly) }; - StoreSignedOnly as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let MitigationOptIn: u32 = unsafe { ::std::mem::transmute(MitigationOptIn) }; - MitigationOptIn as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let AuditMicrosoftSignedOnly: u32 = - unsafe { ::std::mem::transmute(AuditMicrosoftSignedOnly) }; - AuditMicrosoftSignedOnly as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let AuditStoreSignedOnly: u32 = unsafe { ::std::mem::transmute(AuditStoreSignedOnly) }; - AuditStoreSignedOnly as u64 - }); - __bindgen_bitfield_unit.set(5usize, 27u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY = _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY; -pub type PPROCESS_MITIGATION_BINARY_SIGNATURE_POLICY = - *mut _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_FONT_DISABLE_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_FONT_DISABLE_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_FONT_DISABLE_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: _PROCESS_MITIGATION_FONT_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_FONT_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_FONT_DISABLE_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn DisableNonSystemFonts(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_DisableNonSystemFonts(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditNonSystemFontLoading(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditNonSystemFontLoading(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 30u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - DisableNonSystemFonts: DWORD, - AuditNonSystemFontLoading: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let DisableNonSystemFonts: u32 = - unsafe { ::std::mem::transmute(DisableNonSystemFonts) }; - DisableNonSystemFonts as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let AuditNonSystemFontLoading: u32 = - unsafe { ::std::mem::transmute(AuditNonSystemFontLoading) }; - AuditNonSystemFontLoading as u64 - }); - __bindgen_bitfield_unit.set(2usize, 30u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_FONT_DISABLE_POLICY = _PROCESS_MITIGATION_FONT_DISABLE_POLICY; -pub type PPROCESS_MITIGATION_FONT_DISABLE_POLICY = *mut _PROCESS_MITIGATION_FONT_DISABLE_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_IMAGE_LOAD_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_IMAGE_LOAD_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_IMAGE_LOAD_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: _PROCESS_MITIGATION_IMAGE_LOAD_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_IMAGE_LOAD_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_IMAGE_LOAD_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn NoRemoteImages(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_NoRemoteImages(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn NoLowMandatoryLabelImages(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_NoLowMandatoryLabelImages(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn PreferSystem32Images(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_PreferSystem32Images(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditNoRemoteImages(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditNoRemoteImages(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditNoLowMandatoryLabelImages(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditNoLowMandatoryLabelImages(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 27u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - NoRemoteImages: DWORD, - NoLowMandatoryLabelImages: DWORD, - PreferSystem32Images: DWORD, - AuditNoRemoteImages: DWORD, - AuditNoLowMandatoryLabelImages: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let NoRemoteImages: u32 = unsafe { ::std::mem::transmute(NoRemoteImages) }; - NoRemoteImages as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let NoLowMandatoryLabelImages: u32 = - unsafe { ::std::mem::transmute(NoLowMandatoryLabelImages) }; - NoLowMandatoryLabelImages as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let PreferSystem32Images: u32 = unsafe { ::std::mem::transmute(PreferSystem32Images) }; - PreferSystem32Images as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let AuditNoRemoteImages: u32 = unsafe { ::std::mem::transmute(AuditNoRemoteImages) }; - AuditNoRemoteImages as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let AuditNoLowMandatoryLabelImages: u32 = - unsafe { ::std::mem::transmute(AuditNoLowMandatoryLabelImages) }; - AuditNoLowMandatoryLabelImages as u64 - }); - __bindgen_bitfield_unit.set(5usize, 27u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_IMAGE_LOAD_POLICY = _PROCESS_MITIGATION_IMAGE_LOAD_POLICY; -pub type PPROCESS_MITIGATION_IMAGE_LOAD_POLICY = *mut _PROCESS_MITIGATION_IMAGE_LOAD_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn FilterId(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) } - } - #[inline] - pub fn set_FilterId(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 4u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 28u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - FilterId: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 4u8, { - let FilterId: u32 = unsafe { ::std::mem::transmute(FilterId) }; - FilterId as u64 - }); - __bindgen_bitfield_unit.set(4usize, 28u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY = - _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY; -pub type PPROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY = - *mut _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: - _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn EnableExportAddressFilter(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableExportAddressFilter(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditExportAddressFilter(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditExportAddressFilter(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn EnableExportAddressFilterPlus(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableExportAddressFilterPlus(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditExportAddressFilterPlus(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditExportAddressFilterPlus(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn EnableImportAddressFilter(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableImportAddressFilter(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditImportAddressFilter(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditImportAddressFilter(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 1u8, val as u64) - } - } - #[inline] - pub fn EnableRopStackPivot(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableRopStackPivot(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(6usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditRopStackPivot(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditRopStackPivot(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(7usize, 1u8, val as u64) - } - } - #[inline] - pub fn EnableRopCallerCheck(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableRopCallerCheck(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditRopCallerCheck(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditRopCallerCheck(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(9usize, 1u8, val as u64) - } - } - #[inline] - pub fn EnableRopSimExec(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableRopSimExec(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(10usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditRopSimExec(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditRopSimExec(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(11usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(12usize, 20u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - EnableExportAddressFilter: DWORD, - AuditExportAddressFilter: DWORD, - EnableExportAddressFilterPlus: DWORD, - AuditExportAddressFilterPlus: DWORD, - EnableImportAddressFilter: DWORD, - AuditImportAddressFilter: DWORD, - EnableRopStackPivot: DWORD, - AuditRopStackPivot: DWORD, - EnableRopCallerCheck: DWORD, - AuditRopCallerCheck: DWORD, - EnableRopSimExec: DWORD, - AuditRopSimExec: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let EnableExportAddressFilter: u32 = - unsafe { ::std::mem::transmute(EnableExportAddressFilter) }; - EnableExportAddressFilter as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let AuditExportAddressFilter: u32 = - unsafe { ::std::mem::transmute(AuditExportAddressFilter) }; - AuditExportAddressFilter as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let EnableExportAddressFilterPlus: u32 = - unsafe { ::std::mem::transmute(EnableExportAddressFilterPlus) }; - EnableExportAddressFilterPlus as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let AuditExportAddressFilterPlus: u32 = - unsafe { ::std::mem::transmute(AuditExportAddressFilterPlus) }; - AuditExportAddressFilterPlus as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let EnableImportAddressFilter: u32 = - unsafe { ::std::mem::transmute(EnableImportAddressFilter) }; - EnableImportAddressFilter as u64 - }); - __bindgen_bitfield_unit.set(5usize, 1u8, { - let AuditImportAddressFilter: u32 = - unsafe { ::std::mem::transmute(AuditImportAddressFilter) }; - AuditImportAddressFilter as u64 - }); - __bindgen_bitfield_unit.set(6usize, 1u8, { - let EnableRopStackPivot: u32 = unsafe { ::std::mem::transmute(EnableRopStackPivot) }; - EnableRopStackPivot as u64 - }); - __bindgen_bitfield_unit.set(7usize, 1u8, { - let AuditRopStackPivot: u32 = unsafe { ::std::mem::transmute(AuditRopStackPivot) }; - AuditRopStackPivot as u64 - }); - __bindgen_bitfield_unit.set(8usize, 1u8, { - let EnableRopCallerCheck: u32 = unsafe { ::std::mem::transmute(EnableRopCallerCheck) }; - EnableRopCallerCheck as u64 - }); - __bindgen_bitfield_unit.set(9usize, 1u8, { - let AuditRopCallerCheck: u32 = unsafe { ::std::mem::transmute(AuditRopCallerCheck) }; - AuditRopCallerCheck as u64 - }); - __bindgen_bitfield_unit.set(10usize, 1u8, { - let EnableRopSimExec: u32 = unsafe { ::std::mem::transmute(EnableRopSimExec) }; - EnableRopSimExec as u64 - }); - __bindgen_bitfield_unit.set(11usize, 1u8, { - let AuditRopSimExec: u32 = unsafe { ::std::mem::transmute(AuditRopSimExec) }; - AuditRopSimExec as u64 - }); - __bindgen_bitfield_unit.set(12usize, 20u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY = - _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY; -pub type PPROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY = - *mut _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_CHILD_PROCESS_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_CHILD_PROCESS_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_CHILD_PROCESS_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: _PROCESS_MITIGATION_CHILD_PROCESS_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_CHILD_PROCESS_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_CHILD_PROCESS_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn NoChildProcessCreation(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_NoChildProcessCreation(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditNoChildProcessCreation(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditNoChildProcessCreation(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn AllowSecureProcessCreation(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_AllowSecureProcessCreation(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 29u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - NoChildProcessCreation: DWORD, - AuditNoChildProcessCreation: DWORD, - AllowSecureProcessCreation: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let NoChildProcessCreation: u32 = - unsafe { ::std::mem::transmute(NoChildProcessCreation) }; - NoChildProcessCreation as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let AuditNoChildProcessCreation: u32 = - unsafe { ::std::mem::transmute(AuditNoChildProcessCreation) }; - AuditNoChildProcessCreation as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let AllowSecureProcessCreation: u32 = - unsafe { ::std::mem::transmute(AllowSecureProcessCreation) }; - AllowSecureProcessCreation as u64 - }); - __bindgen_bitfield_unit.set(3usize, 29u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_CHILD_PROCESS_POLICY = _PROCESS_MITIGATION_CHILD_PROCESS_POLICY; -pub type PPROCESS_MITIGATION_CHILD_PROCESS_POLICY = *mut _PROCESS_MITIGATION_CHILD_PROCESS_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: - _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn SmtBranchTargetIsolation(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_SmtBranchTargetIsolation(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn IsolateSecurityDomain(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_IsolateSecurityDomain(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn DisablePageCombine(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_DisablePageCombine(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn SpeculativeStoreBypassDisable(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_SpeculativeStoreBypassDisable(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn RestrictCoreSharing(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } - } - #[inline] - pub fn set_RestrictCoreSharing(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 27u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - SmtBranchTargetIsolation: DWORD, - IsolateSecurityDomain: DWORD, - DisablePageCombine: DWORD, - SpeculativeStoreBypassDisable: DWORD, - RestrictCoreSharing: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let SmtBranchTargetIsolation: u32 = - unsafe { ::std::mem::transmute(SmtBranchTargetIsolation) }; - SmtBranchTargetIsolation as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let IsolateSecurityDomain: u32 = - unsafe { ::std::mem::transmute(IsolateSecurityDomain) }; - IsolateSecurityDomain as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let DisablePageCombine: u32 = unsafe { ::std::mem::transmute(DisablePageCombine) }; - DisablePageCombine as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let SpeculativeStoreBypassDisable: u32 = - unsafe { ::std::mem::transmute(SpeculativeStoreBypassDisable) }; - SpeculativeStoreBypassDisable as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let RestrictCoreSharing: u32 = unsafe { ::std::mem::transmute(RestrictCoreSharing) }; - RestrictCoreSharing as u64 - }); - __bindgen_bitfield_unit.set(5usize, 27u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY = - _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY; -pub type PPROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY = - *mut _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn EnableUserShadowStack(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableUserShadowStack(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditUserShadowStack(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditUserShadowStack(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn SetContextIpValidation(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_SetContextIpValidation(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditSetContextIpValidation(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditSetContextIpValidation(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn EnableUserShadowStackStrictMode(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnableUserShadowStackStrictMode(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn BlockNonCetBinaries(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } - } - #[inline] - pub fn set_BlockNonCetBinaries(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 1u8, val as u64) - } - } - #[inline] - pub fn BlockNonCetBinariesNonEhcont(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } - } - #[inline] - pub fn set_BlockNonCetBinariesNonEhcont(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(6usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditBlockNonCetBinaries(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditBlockNonCetBinaries(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(7usize, 1u8, val as u64) - } - } - #[inline] - pub fn CetDynamicApisOutOfProcOnly(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) } - } - #[inline] - pub fn set_CetDynamicApisOutOfProcOnly(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 1u8, val as u64) - } - } - #[inline] - pub fn SetContextIpValidationRelaxedMode(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) } - } - #[inline] - pub fn set_SetContextIpValidationRelaxedMode(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(9usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 22u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(10usize, 22u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - EnableUserShadowStack: DWORD, - AuditUserShadowStack: DWORD, - SetContextIpValidation: DWORD, - AuditSetContextIpValidation: DWORD, - EnableUserShadowStackStrictMode: DWORD, - BlockNonCetBinaries: DWORD, - BlockNonCetBinariesNonEhcont: DWORD, - AuditBlockNonCetBinaries: DWORD, - CetDynamicApisOutOfProcOnly: DWORD, - SetContextIpValidationRelaxedMode: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let EnableUserShadowStack: u32 = - unsafe { ::std::mem::transmute(EnableUserShadowStack) }; - EnableUserShadowStack as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let AuditUserShadowStack: u32 = unsafe { ::std::mem::transmute(AuditUserShadowStack) }; - AuditUserShadowStack as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let SetContextIpValidation: u32 = - unsafe { ::std::mem::transmute(SetContextIpValidation) }; - SetContextIpValidation as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let AuditSetContextIpValidation: u32 = - unsafe { ::std::mem::transmute(AuditSetContextIpValidation) }; - AuditSetContextIpValidation as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let EnableUserShadowStackStrictMode: u32 = - unsafe { ::std::mem::transmute(EnableUserShadowStackStrictMode) }; - EnableUserShadowStackStrictMode as u64 - }); - __bindgen_bitfield_unit.set(5usize, 1u8, { - let BlockNonCetBinaries: u32 = unsafe { ::std::mem::transmute(BlockNonCetBinaries) }; - BlockNonCetBinaries as u64 - }); - __bindgen_bitfield_unit.set(6usize, 1u8, { - let BlockNonCetBinariesNonEhcont: u32 = - unsafe { ::std::mem::transmute(BlockNonCetBinariesNonEhcont) }; - BlockNonCetBinariesNonEhcont as u64 - }); - __bindgen_bitfield_unit.set(7usize, 1u8, { - let AuditBlockNonCetBinaries: u32 = - unsafe { ::std::mem::transmute(AuditBlockNonCetBinaries) }; - AuditBlockNonCetBinaries as u64 - }); - __bindgen_bitfield_unit.set(8usize, 1u8, { - let CetDynamicApisOutOfProcOnly: u32 = - unsafe { ::std::mem::transmute(CetDynamicApisOutOfProcOnly) }; - CetDynamicApisOutOfProcOnly as u64 - }); - __bindgen_bitfield_unit.set(9usize, 1u8, { - let SetContextIpValidationRelaxedMode: u32 = - unsafe { ::std::mem::transmute(SetContextIpValidationRelaxedMode) }; - SetContextIpValidationRelaxedMode as u64 - }); - __bindgen_bitfield_unit.set(10usize, 22u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY = _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY; -pub type PPROCESS_MITIGATION_USER_SHADOW_STACK_POLICY = - *mut _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn EnablePointerAuthUserIp(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnablePointerAuthUserIp(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 31u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - EnablePointerAuthUserIp: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let EnablePointerAuthUserIp: u32 = - unsafe { ::std::mem::transmute(EnablePointerAuthUserIp) }; - EnablePointerAuthUserIp as u64 - }); - __bindgen_bitfield_unit.set(1usize, 31u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY = _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY; -pub type PPROCESS_MITIGATION_USER_POINTER_AUTH_POLICY = - *mut _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn EnforceRedirectionTrust(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_EnforceRedirectionTrust(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn AuditRedirectionTrust(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_AuditRedirectionTrust(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 30u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - EnforceRedirectionTrust: DWORD, - AuditRedirectionTrust: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let EnforceRedirectionTrust: u32 = - unsafe { ::std::mem::transmute(EnforceRedirectionTrust) }; - EnforceRedirectionTrust as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let AuditRedirectionTrust: u32 = - unsafe { ::std::mem::transmute(AuditRedirectionTrust) }; - AuditRedirectionTrust as u64 - }); - __bindgen_bitfield_unit.set(2usize, 30u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY = _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY; -pub type PPROCESS_MITIGATION_REDIRECTION_TRUST_POLICY = - *mut _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY { - pub __bindgen_anon_1: _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY__bindgen_ty_1 { - pub Flags: DWORD, - pub __bindgen_anon_1: - _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn AssemblyManifestRedirectionTrust(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_AssemblyManifestRedirectionTrust(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 31u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - AssemblyManifestRedirectionTrust: DWORD, - ReservedFlags: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let AssemblyManifestRedirectionTrust: u32 = - unsafe { ::std::mem::transmute(AssemblyManifestRedirectionTrust) }; - AssemblyManifestRedirectionTrust as u64 - }); - __bindgen_bitfield_unit.set(1usize, 31u8, { - let ReservedFlags: u32 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY = - _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY; -pub type PPROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY = - *mut _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _JOBOBJECT_BASIC_ACCOUNTING_INFORMATION { - pub TotalUserTime: LARGE_INTEGER, - pub TotalKernelTime: LARGE_INTEGER, - pub ThisPeriodTotalUserTime: LARGE_INTEGER, - pub ThisPeriodTotalKernelTime: LARGE_INTEGER, - pub TotalPageFaultCount: DWORD, - pub TotalProcesses: DWORD, - pub ActiveProcesses: DWORD, - pub TotalTerminatedProcesses: DWORD, -} -pub type JOBOBJECT_BASIC_ACCOUNTING_INFORMATION = _JOBOBJECT_BASIC_ACCOUNTING_INFORMATION; -pub type PJOBOBJECT_BASIC_ACCOUNTING_INFORMATION = *mut _JOBOBJECT_BASIC_ACCOUNTING_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _JOBOBJECT_BASIC_LIMIT_INFORMATION { - pub PerProcessUserTimeLimit: LARGE_INTEGER, - pub PerJobUserTimeLimit: LARGE_INTEGER, - pub LimitFlags: DWORD, - pub MinimumWorkingSetSize: SIZE_T, - pub MaximumWorkingSetSize: SIZE_T, - pub ActiveProcessLimit: DWORD, - pub Affinity: ULONG_PTR, - pub PriorityClass: DWORD, - pub SchedulingClass: DWORD, -} -pub type JOBOBJECT_BASIC_LIMIT_INFORMATION = _JOBOBJECT_BASIC_LIMIT_INFORMATION; -pub type PJOBOBJECT_BASIC_LIMIT_INFORMATION = *mut _JOBOBJECT_BASIC_LIMIT_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _JOBOBJECT_EXTENDED_LIMIT_INFORMATION { - pub BasicLimitInformation: JOBOBJECT_BASIC_LIMIT_INFORMATION, - pub IoInfo: IO_COUNTERS, - pub ProcessMemoryLimit: SIZE_T, - pub JobMemoryLimit: SIZE_T, - pub PeakProcessMemoryUsed: SIZE_T, - pub PeakJobMemoryUsed: SIZE_T, -} -pub type JOBOBJECT_EXTENDED_LIMIT_INFORMATION = _JOBOBJECT_EXTENDED_LIMIT_INFORMATION; -pub type PJOBOBJECT_EXTENDED_LIMIT_INFORMATION = *mut _JOBOBJECT_EXTENDED_LIMIT_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOBOBJECT_BASIC_PROCESS_ID_LIST { - pub NumberOfAssignedProcesses: DWORD, - pub NumberOfProcessIdsInList: DWORD, - pub ProcessIdList: [ULONG_PTR; 1usize], -} -pub type JOBOBJECT_BASIC_PROCESS_ID_LIST = _JOBOBJECT_BASIC_PROCESS_ID_LIST; -pub type PJOBOBJECT_BASIC_PROCESS_ID_LIST = *mut _JOBOBJECT_BASIC_PROCESS_ID_LIST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOBOBJECT_BASIC_UI_RESTRICTIONS { - pub UIRestrictionsClass: DWORD, -} -pub type JOBOBJECT_BASIC_UI_RESTRICTIONS = _JOBOBJECT_BASIC_UI_RESTRICTIONS; -pub type PJOBOBJECT_BASIC_UI_RESTRICTIONS = *mut _JOBOBJECT_BASIC_UI_RESTRICTIONS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOBOBJECT_SECURITY_LIMIT_INFORMATION { - pub SecurityLimitFlags: DWORD, - pub JobToken: HANDLE, - pub SidsToDisable: PTOKEN_GROUPS, - pub PrivilegesToDelete: PTOKEN_PRIVILEGES, - pub RestrictedSids: PTOKEN_GROUPS, -} -pub type JOBOBJECT_SECURITY_LIMIT_INFORMATION = _JOBOBJECT_SECURITY_LIMIT_INFORMATION; -pub type PJOBOBJECT_SECURITY_LIMIT_INFORMATION = *mut _JOBOBJECT_SECURITY_LIMIT_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOBOBJECT_END_OF_JOB_TIME_INFORMATION { - pub EndOfJobTimeAction: DWORD, -} -pub type JOBOBJECT_END_OF_JOB_TIME_INFORMATION = _JOBOBJECT_END_OF_JOB_TIME_INFORMATION; -pub type PJOBOBJECT_END_OF_JOB_TIME_INFORMATION = *mut _JOBOBJECT_END_OF_JOB_TIME_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOBOBJECT_ASSOCIATE_COMPLETION_PORT { - pub CompletionKey: PVOID, - pub CompletionPort: HANDLE, -} -pub type JOBOBJECT_ASSOCIATE_COMPLETION_PORT = _JOBOBJECT_ASSOCIATE_COMPLETION_PORT; -pub type PJOBOBJECT_ASSOCIATE_COMPLETION_PORT = *mut _JOBOBJECT_ASSOCIATE_COMPLETION_PORT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION { - pub BasicInfo: JOBOBJECT_BASIC_ACCOUNTING_INFORMATION, - pub IoInfo: IO_COUNTERS, -} -pub type JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION = - _JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION; -pub type PJOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION = - *mut _JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOBOBJECT_JOBSET_INFORMATION { - pub MemberLevel: DWORD, -} -pub type JOBOBJECT_JOBSET_INFORMATION = _JOBOBJECT_JOBSET_INFORMATION; -pub type PJOBOBJECT_JOBSET_INFORMATION = *mut _JOBOBJECT_JOBSET_INFORMATION; -pub const _JOBOBJECT_RATE_CONTROL_TOLERANCE_ToleranceLow: _JOBOBJECT_RATE_CONTROL_TOLERANCE = 1; -pub const _JOBOBJECT_RATE_CONTROL_TOLERANCE_ToleranceMedium: _JOBOBJECT_RATE_CONTROL_TOLERANCE = 2; -pub const _JOBOBJECT_RATE_CONTROL_TOLERANCE_ToleranceHigh: _JOBOBJECT_RATE_CONTROL_TOLERANCE = 3; -pub type _JOBOBJECT_RATE_CONTROL_TOLERANCE = ::std::os::raw::c_int; -pub use self::_JOBOBJECT_RATE_CONTROL_TOLERANCE as JOBOBJECT_RATE_CONTROL_TOLERANCE; -pub type PJOBOBJECT_RATE_CONTROL_TOLERANCE = *mut _JOBOBJECT_RATE_CONTROL_TOLERANCE; -pub const _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL_ToleranceIntervalShort: - _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL = 1; -pub const _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL_ToleranceIntervalMedium: - _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL = 2; -pub const _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL_ToleranceIntervalLong: - _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL = 3; -pub type _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL = ::std::os::raw::c_int; -pub use self::_JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL as JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL; -pub type PJOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL = - *mut _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION { - pub IoReadBytesLimit: DWORD64, - pub IoWriteBytesLimit: DWORD64, - pub PerJobUserTimeLimit: LARGE_INTEGER, - pub JobMemoryLimit: DWORD64, - pub RateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, - pub RateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, - pub LimitFlags: DWORD, -} -pub type JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION = _JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION; -pub type PJOBOBJECT_NOTIFICATION_LIMIT_INFORMATION = *mut _JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2 { - pub IoReadBytesLimit: DWORD64, - pub IoWriteBytesLimit: DWORD64, - pub PerJobUserTimeLimit: LARGE_INTEGER, - pub __bindgen_anon_1: JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2__bindgen_ty_1, - pub __bindgen_anon_2: JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2__bindgen_ty_2, - pub __bindgen_anon_3: JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2__bindgen_ty_3, - pub LimitFlags: DWORD, - pub IoRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, - pub JobLowMemoryLimit: DWORD64, - pub IoRateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, - pub NetRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, - pub NetRateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2__bindgen_ty_1 { - pub JobHighMemoryLimit: DWORD64, - pub JobMemoryLimit: DWORD64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2__bindgen_ty_2 { - pub RateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, - pub CpuRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2__bindgen_ty_3 { - pub RateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, - pub CpuRateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _JOBOBJECT_LIMIT_VIOLATION_INFORMATION { - pub LimitFlags: DWORD, - pub ViolationLimitFlags: DWORD, - pub IoReadBytes: DWORD64, - pub IoReadBytesLimit: DWORD64, - pub IoWriteBytes: DWORD64, - pub IoWriteBytesLimit: DWORD64, - pub PerJobUserTime: LARGE_INTEGER, - pub PerJobUserTimeLimit: LARGE_INTEGER, - pub JobMemory: DWORD64, - pub JobMemoryLimit: DWORD64, - pub RateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, - pub RateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, -} -pub type JOBOBJECT_LIMIT_VIOLATION_INFORMATION = _JOBOBJECT_LIMIT_VIOLATION_INFORMATION; -pub type PJOBOBJECT_LIMIT_VIOLATION_INFORMATION = *mut _JOBOBJECT_LIMIT_VIOLATION_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2 { - pub LimitFlags: DWORD, - pub ViolationLimitFlags: DWORD, - pub IoReadBytes: DWORD64, - pub IoReadBytesLimit: DWORD64, - pub IoWriteBytes: DWORD64, - pub IoWriteBytesLimit: DWORD64, - pub PerJobUserTime: LARGE_INTEGER, - pub PerJobUserTimeLimit: LARGE_INTEGER, - pub JobMemory: DWORD64, - pub __bindgen_anon_1: JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2__bindgen_ty_1, - pub __bindgen_anon_2: JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2__bindgen_ty_2, - pub __bindgen_anon_3: JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2__bindgen_ty_3, - pub JobLowMemoryLimit: DWORD64, - pub IoRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, - pub IoRateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, - pub NetRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, - pub NetRateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2__bindgen_ty_1 { - pub JobHighMemoryLimit: DWORD64, - pub JobMemoryLimit: DWORD64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2__bindgen_ty_2 { - pub RateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, - pub CpuRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2__bindgen_ty_3 { - pub RateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, - pub CpuRateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION { - pub ControlFlags: DWORD, - pub __bindgen_anon_1: _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION__bindgen_ty_1 { - pub CpuRate: DWORD, - pub Weight: DWORD, - pub __bindgen_anon_1: _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION__bindgen_ty_1__bindgen_ty_1 { - pub MinRate: WORD, - pub MaxRate: WORD, -} -pub type JOBOBJECT_CPU_RATE_CONTROL_INFORMATION = _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION; -pub type PJOBOBJECT_CPU_RATE_CONTROL_INFORMATION = *mut _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION; -pub const JOB_OBJECT_NET_RATE_CONTROL_FLAGS_JOB_OBJECT_NET_RATE_CONTROL_ENABLE: - JOB_OBJECT_NET_RATE_CONTROL_FLAGS = 1; -pub const JOB_OBJECT_NET_RATE_CONTROL_FLAGS_JOB_OBJECT_NET_RATE_CONTROL_MAX_BANDWIDTH: - JOB_OBJECT_NET_RATE_CONTROL_FLAGS = 2; -pub const JOB_OBJECT_NET_RATE_CONTROL_FLAGS_JOB_OBJECT_NET_RATE_CONTROL_DSCP_TAG: - JOB_OBJECT_NET_RATE_CONTROL_FLAGS = 4; -pub const JOB_OBJECT_NET_RATE_CONTROL_FLAGS_JOB_OBJECT_NET_RATE_CONTROL_VALID_FLAGS: - JOB_OBJECT_NET_RATE_CONTROL_FLAGS = 7; -pub type JOB_OBJECT_NET_RATE_CONTROL_FLAGS = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct JOBOBJECT_NET_RATE_CONTROL_INFORMATION { - pub MaxBandwidth: DWORD64, - pub ControlFlags: JOB_OBJECT_NET_RATE_CONTROL_FLAGS, - pub DscpTag: BYTE, -} -pub const JOB_OBJECT_IO_RATE_CONTROL_FLAGS_JOB_OBJECT_IO_RATE_CONTROL_ENABLE: - JOB_OBJECT_IO_RATE_CONTROL_FLAGS = 1; -pub const JOB_OBJECT_IO_RATE_CONTROL_FLAGS_JOB_OBJECT_IO_RATE_CONTROL_STANDALONE_VOLUME: - JOB_OBJECT_IO_RATE_CONTROL_FLAGS = 2; -pub const JOB_OBJECT_IO_RATE_CONTROL_FLAGS_JOB_OBJECT_IO_RATE_CONTROL_FORCE_UNIT_ACCESS_ALL: - JOB_OBJECT_IO_RATE_CONTROL_FLAGS = 4; -pub const JOB_OBJECT_IO_RATE_CONTROL_FLAGS_JOB_OBJECT_IO_RATE_CONTROL_FORCE_UNIT_ACCESS_ON_SOFT_CAP : JOB_OBJECT_IO_RATE_CONTROL_FLAGS = 8 ; -pub const JOB_OBJECT_IO_RATE_CONTROL_FLAGS_JOB_OBJECT_IO_RATE_CONTROL_VALID_FLAGS: - JOB_OBJECT_IO_RATE_CONTROL_FLAGS = 15; -pub type JOB_OBJECT_IO_RATE_CONTROL_FLAGS = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE { - pub MaxIops: LONG64, - pub MaxBandwidth: LONG64, - pub ReservationIops: LONG64, - pub VolumeName: PWSTR, - pub BaseIoSize: DWORD, - pub ControlFlags: JOB_OBJECT_IO_RATE_CONTROL_FLAGS, - pub VolumeNameLength: WORD, -} -pub type JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1 = - JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V2 { - pub MaxIops: LONG64, - pub MaxBandwidth: LONG64, - pub ReservationIops: LONG64, - pub VolumeName: PWSTR, - pub BaseIoSize: DWORD, - pub ControlFlags: JOB_OBJECT_IO_RATE_CONTROL_FLAGS, - pub VolumeNameLength: WORD, - pub CriticalReservationIops: LONG64, - pub ReservationBandwidth: LONG64, - pub CriticalReservationBandwidth: LONG64, - pub MaxTimePercent: LONG64, - pub ReservationTimePercent: LONG64, - pub CriticalReservationTimePercent: LONG64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V3 { - pub MaxIops: LONG64, - pub MaxBandwidth: LONG64, - pub ReservationIops: LONG64, - pub VolumeName: PWSTR, - pub BaseIoSize: DWORD, - pub ControlFlags: JOB_OBJECT_IO_RATE_CONTROL_FLAGS, - pub VolumeNameLength: WORD, - pub CriticalReservationIops: LONG64, - pub ReservationBandwidth: LONG64, - pub CriticalReservationBandwidth: LONG64, - pub MaxTimePercent: LONG64, - pub ReservationTimePercent: LONG64, - pub CriticalReservationTimePercent: LONG64, - pub SoftMaxIops: LONG64, - pub SoftMaxBandwidth: LONG64, - pub SoftMaxTimePercent: LONG64, - pub LimitExcessNotifyIops: LONG64, - pub LimitExcessNotifyBandwidth: LONG64, - pub LimitExcessNotifyTimePercent: LONG64, -} -pub const JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS_JOBOBJECT_IO_ATTRIBUTION_CONTROL_ENABLE: - JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS = 1; -pub const JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS_JOBOBJECT_IO_ATTRIBUTION_CONTROL_DISABLE: - JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS = 2; -pub const JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS_JOBOBJECT_IO_ATTRIBUTION_CONTROL_VALID_FLAGS: - JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS = 3; -pub type JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOBOBJECT_IO_ATTRIBUTION_STATS { - pub IoCount: ULONG_PTR, - pub TotalNonOverlappedQueueTime: ULONGLONG, - pub TotalNonOverlappedServiceTime: ULONGLONG, - pub TotalSize: ULONGLONG, -} -pub type JOBOBJECT_IO_ATTRIBUTION_STATS = _JOBOBJECT_IO_ATTRIBUTION_STATS; -pub type PJOBOBJECT_IO_ATTRIBUTION_STATS = *mut _JOBOBJECT_IO_ATTRIBUTION_STATS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOBOBJECT_IO_ATTRIBUTION_INFORMATION { - pub ControlFlags: DWORD, - pub ReadStats: JOBOBJECT_IO_ATTRIBUTION_STATS, - pub WriteStats: JOBOBJECT_IO_ATTRIBUTION_STATS, -} -pub type JOBOBJECT_IO_ATTRIBUTION_INFORMATION = _JOBOBJECT_IO_ATTRIBUTION_INFORMATION; -pub type PJOBOBJECT_IO_ATTRIBUTION_INFORMATION = *mut _JOBOBJECT_IO_ATTRIBUTION_INFORMATION; -pub const _JOBOBJECTINFOCLASS_JobObjectBasicAccountingInformation: _JOBOBJECTINFOCLASS = 1; -pub const _JOBOBJECTINFOCLASS_JobObjectBasicLimitInformation: _JOBOBJECTINFOCLASS = 2; -pub const _JOBOBJECTINFOCLASS_JobObjectBasicProcessIdList: _JOBOBJECTINFOCLASS = 3; -pub const _JOBOBJECTINFOCLASS_JobObjectBasicUIRestrictions: _JOBOBJECTINFOCLASS = 4; -pub const _JOBOBJECTINFOCLASS_JobObjectSecurityLimitInformation: _JOBOBJECTINFOCLASS = 5; -pub const _JOBOBJECTINFOCLASS_JobObjectEndOfJobTimeInformation: _JOBOBJECTINFOCLASS = 6; -pub const _JOBOBJECTINFOCLASS_JobObjectAssociateCompletionPortInformation: _JOBOBJECTINFOCLASS = 7; -pub const _JOBOBJECTINFOCLASS_JobObjectBasicAndIoAccountingInformation: _JOBOBJECTINFOCLASS = 8; -pub const _JOBOBJECTINFOCLASS_JobObjectExtendedLimitInformation: _JOBOBJECTINFOCLASS = 9; -pub const _JOBOBJECTINFOCLASS_JobObjectJobSetInformation: _JOBOBJECTINFOCLASS = 10; -pub const _JOBOBJECTINFOCLASS_JobObjectGroupInformation: _JOBOBJECTINFOCLASS = 11; -pub const _JOBOBJECTINFOCLASS_JobObjectNotificationLimitInformation: _JOBOBJECTINFOCLASS = 12; -pub const _JOBOBJECTINFOCLASS_JobObjectLimitViolationInformation: _JOBOBJECTINFOCLASS = 13; -pub const _JOBOBJECTINFOCLASS_JobObjectGroupInformationEx: _JOBOBJECTINFOCLASS = 14; -pub const _JOBOBJECTINFOCLASS_JobObjectCpuRateControlInformation: _JOBOBJECTINFOCLASS = 15; -pub const _JOBOBJECTINFOCLASS_JobObjectCompletionFilter: _JOBOBJECTINFOCLASS = 16; -pub const _JOBOBJECTINFOCLASS_JobObjectCompletionCounter: _JOBOBJECTINFOCLASS = 17; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved1Information: _JOBOBJECTINFOCLASS = 18; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved2Information: _JOBOBJECTINFOCLASS = 19; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved3Information: _JOBOBJECTINFOCLASS = 20; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved4Information: _JOBOBJECTINFOCLASS = 21; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved5Information: _JOBOBJECTINFOCLASS = 22; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved6Information: _JOBOBJECTINFOCLASS = 23; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved7Information: _JOBOBJECTINFOCLASS = 24; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved8Information: _JOBOBJECTINFOCLASS = 25; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved9Information: _JOBOBJECTINFOCLASS = 26; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved10Information: _JOBOBJECTINFOCLASS = 27; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved11Information: _JOBOBJECTINFOCLASS = 28; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved12Information: _JOBOBJECTINFOCLASS = 29; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved13Information: _JOBOBJECTINFOCLASS = 30; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved14Information: _JOBOBJECTINFOCLASS = 31; -pub const _JOBOBJECTINFOCLASS_JobObjectNetRateControlInformation: _JOBOBJECTINFOCLASS = 32; -pub const _JOBOBJECTINFOCLASS_JobObjectNotificationLimitInformation2: _JOBOBJECTINFOCLASS = 33; -pub const _JOBOBJECTINFOCLASS_JobObjectLimitViolationInformation2: _JOBOBJECTINFOCLASS = 34; -pub const _JOBOBJECTINFOCLASS_JobObjectCreateSilo: _JOBOBJECTINFOCLASS = 35; -pub const _JOBOBJECTINFOCLASS_JobObjectSiloBasicInformation: _JOBOBJECTINFOCLASS = 36; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved15Information: _JOBOBJECTINFOCLASS = 37; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved16Information: _JOBOBJECTINFOCLASS = 38; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved17Information: _JOBOBJECTINFOCLASS = 39; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved18Information: _JOBOBJECTINFOCLASS = 40; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved19Information: _JOBOBJECTINFOCLASS = 41; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved20Information: _JOBOBJECTINFOCLASS = 42; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved21Information: _JOBOBJECTINFOCLASS = 43; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved22Information: _JOBOBJECTINFOCLASS = 44; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved23Information: _JOBOBJECTINFOCLASS = 45; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved24Information: _JOBOBJECTINFOCLASS = 46; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved25Information: _JOBOBJECTINFOCLASS = 47; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved26Information: _JOBOBJECTINFOCLASS = 48; -pub const _JOBOBJECTINFOCLASS_JobObjectReserved27Information: _JOBOBJECTINFOCLASS = 49; -pub const _JOBOBJECTINFOCLASS_MaxJobObjectInfoClass: _JOBOBJECTINFOCLASS = 50; -pub type _JOBOBJECTINFOCLASS = ::std::os::raw::c_int; -pub use self::_JOBOBJECTINFOCLASS as JOBOBJECTINFOCLASS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SILOOBJECT_BASIC_INFORMATION { - pub SiloId: DWORD, - pub SiloParentId: DWORD, - pub NumberOfProcesses: DWORD, - pub IsInServerSilo: BOOLEAN, - pub Reserved: [BYTE; 3usize], -} -pub type SILOOBJECT_BASIC_INFORMATION = _SILOOBJECT_BASIC_INFORMATION; -pub type PSILOOBJECT_BASIC_INFORMATION = *mut _SILOOBJECT_BASIC_INFORMATION; -pub const _SERVERSILO_STATE_SERVERSILO_INITING: _SERVERSILO_STATE = 0; -pub const _SERVERSILO_STATE_SERVERSILO_STARTED: _SERVERSILO_STATE = 1; -pub const _SERVERSILO_STATE_SERVERSILO_SHUTTING_DOWN: _SERVERSILO_STATE = 2; -pub const _SERVERSILO_STATE_SERVERSILO_TERMINATING: _SERVERSILO_STATE = 3; -pub const _SERVERSILO_STATE_SERVERSILO_TERMINATED: _SERVERSILO_STATE = 4; -pub type _SERVERSILO_STATE = ::std::os::raw::c_int; -pub use self::_SERVERSILO_STATE as SERVERSILO_STATE; -pub type PSERVERSILO_STATE = *mut _SERVERSILO_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVERSILO_BASIC_INFORMATION { - pub ServiceSessionId: DWORD, - pub State: SERVERSILO_STATE, - pub ExitStatus: DWORD, - pub IsDownlevelContainer: BOOLEAN, - pub ApiSetSchema: PVOID, - pub HostApiSetSchema: PVOID, -} -pub type SERVERSILO_BASIC_INFORMATION = _SERVERSILO_BASIC_INFORMATION; -pub type PSERVERSILO_BASIC_INFORMATION = *mut _SERVERSILO_BASIC_INFORMATION; -pub const _FIRMWARE_TYPE_FirmwareTypeUnknown: _FIRMWARE_TYPE = 0; -pub const _FIRMWARE_TYPE_FirmwareTypeBios: _FIRMWARE_TYPE = 1; -pub const _FIRMWARE_TYPE_FirmwareTypeUefi: _FIRMWARE_TYPE = 2; -pub const _FIRMWARE_TYPE_FirmwareTypeMax: _FIRMWARE_TYPE = 3; -pub type _FIRMWARE_TYPE = ::std::os::raw::c_int; -pub use self::_FIRMWARE_TYPE as FIRMWARE_TYPE; -pub type PFIRMWARE_TYPE = *mut _FIRMWARE_TYPE; -pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationProcessorCore: _LOGICAL_PROCESSOR_RELATIONSHIP = - 0; -pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationNumaNode: _LOGICAL_PROCESSOR_RELATIONSHIP = 1; -pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationCache: _LOGICAL_PROCESSOR_RELATIONSHIP = 2; -pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationProcessorPackage: - _LOGICAL_PROCESSOR_RELATIONSHIP = 3; -pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationGroup: _LOGICAL_PROCESSOR_RELATIONSHIP = 4; -pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationProcessorDie: _LOGICAL_PROCESSOR_RELATIONSHIP = 5; -pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationNumaNodeEx: _LOGICAL_PROCESSOR_RELATIONSHIP = 6; -pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationProcessorModule: _LOGICAL_PROCESSOR_RELATIONSHIP = - 7; -pub const _LOGICAL_PROCESSOR_RELATIONSHIP_RelationAll: _LOGICAL_PROCESSOR_RELATIONSHIP = 65535; -pub type _LOGICAL_PROCESSOR_RELATIONSHIP = ::std::os::raw::c_int; -pub use self::_LOGICAL_PROCESSOR_RELATIONSHIP as LOGICAL_PROCESSOR_RELATIONSHIP; -pub const _PROCESSOR_CACHE_TYPE_CacheUnified: _PROCESSOR_CACHE_TYPE = 0; -pub const _PROCESSOR_CACHE_TYPE_CacheInstruction: _PROCESSOR_CACHE_TYPE = 1; -pub const _PROCESSOR_CACHE_TYPE_CacheData: _PROCESSOR_CACHE_TYPE = 2; -pub const _PROCESSOR_CACHE_TYPE_CacheTrace: _PROCESSOR_CACHE_TYPE = 3; -pub type _PROCESSOR_CACHE_TYPE = ::std::os::raw::c_int; -pub use self::_PROCESSOR_CACHE_TYPE as PROCESSOR_CACHE_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CACHE_DESCRIPTOR { - pub Level: BYTE, - pub Associativity: BYTE, - pub LineSize: WORD, - pub Size: DWORD, - pub Type: PROCESSOR_CACHE_TYPE, -} -pub type CACHE_DESCRIPTOR = _CACHE_DESCRIPTOR; -pub type PCACHE_DESCRIPTOR = *mut _CACHE_DESCRIPTOR; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION { - pub ProcessorMask: ULONG_PTR, - pub Relationship: LOGICAL_PROCESSOR_RELATIONSHIP, - pub __bindgen_anon_1: _SYSTEM_LOGICAL_PROCESSOR_INFORMATION__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SYSTEM_LOGICAL_PROCESSOR_INFORMATION__bindgen_ty_1 { - pub ProcessorCore: _SYSTEM_LOGICAL_PROCESSOR_INFORMATION__bindgen_ty_1__bindgen_ty_1, - pub NumaNode: _SYSTEM_LOGICAL_PROCESSOR_INFORMATION__bindgen_ty_1__bindgen_ty_2, - pub Cache: CACHE_DESCRIPTOR, - pub Reserved: [ULONGLONG; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION__bindgen_ty_1__bindgen_ty_1 { - pub Flags: BYTE, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION__bindgen_ty_1__bindgen_ty_2 { - pub NodeNumber: DWORD, -} -pub type SYSTEM_LOGICAL_PROCESSOR_INFORMATION = _SYSTEM_LOGICAL_PROCESSOR_INFORMATION; -pub type PSYSTEM_LOGICAL_PROCESSOR_INFORMATION = *mut _SYSTEM_LOGICAL_PROCESSOR_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESSOR_RELATIONSHIP { - pub Flags: BYTE, - pub EfficiencyClass: BYTE, - pub Reserved: [BYTE; 20usize], - pub GroupCount: WORD, - pub GroupMask: [GROUP_AFFINITY; 1usize], -} -pub type PROCESSOR_RELATIONSHIP = _PROCESSOR_RELATIONSHIP; -pub type PPROCESSOR_RELATIONSHIP = *mut _PROCESSOR_RELATIONSHIP; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _NUMA_NODE_RELATIONSHIP { - pub NodeNumber: DWORD, - pub Reserved: [BYTE; 18usize], - pub GroupCount: WORD, - pub __bindgen_anon_1: _NUMA_NODE_RELATIONSHIP__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _NUMA_NODE_RELATIONSHIP__bindgen_ty_1 { - pub GroupMask: GROUP_AFFINITY, - pub GroupMasks: [GROUP_AFFINITY; 1usize], -} -pub type NUMA_NODE_RELATIONSHIP = _NUMA_NODE_RELATIONSHIP; -pub type PNUMA_NODE_RELATIONSHIP = *mut _NUMA_NODE_RELATIONSHIP; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CACHE_RELATIONSHIP { - pub Level: BYTE, - pub Associativity: BYTE, - pub LineSize: WORD, - pub CacheSize: DWORD, - pub Type: PROCESSOR_CACHE_TYPE, - pub Reserved: [BYTE; 18usize], - pub GroupCount: WORD, - pub __bindgen_anon_1: _CACHE_RELATIONSHIP__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CACHE_RELATIONSHIP__bindgen_ty_1 { - pub GroupMask: GROUP_AFFINITY, - pub GroupMasks: [GROUP_AFFINITY; 1usize], -} -pub type CACHE_RELATIONSHIP = _CACHE_RELATIONSHIP; -pub type PCACHE_RELATIONSHIP = *mut _CACHE_RELATIONSHIP; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESSOR_GROUP_INFO { - pub MaximumProcessorCount: BYTE, - pub ActiveProcessorCount: BYTE, - pub Reserved: [BYTE; 38usize], - pub ActiveProcessorMask: KAFFINITY, -} -pub type PROCESSOR_GROUP_INFO = _PROCESSOR_GROUP_INFO; -pub type PPROCESSOR_GROUP_INFO = *mut _PROCESSOR_GROUP_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _GROUP_RELATIONSHIP { - pub MaximumGroupCount: WORD, - pub ActiveGroupCount: WORD, - pub Reserved: [BYTE; 20usize], - pub GroupInfo: [PROCESSOR_GROUP_INFO; 1usize], -} -pub type GROUP_RELATIONSHIP = _GROUP_RELATIONSHIP; -pub type PGROUP_RELATIONSHIP = *mut _GROUP_RELATIONSHIP; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX { - pub Relationship: LOGICAL_PROCESSOR_RELATIONSHIP, - pub Size: DWORD, - pub __bindgen_anon_1: _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX__bindgen_ty_1 { - pub Processor: PROCESSOR_RELATIONSHIP, - pub NumaNode: NUMA_NODE_RELATIONSHIP, - pub Cache: CACHE_RELATIONSHIP, - pub Group: GROUP_RELATIONSHIP, -} -pub type SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX = _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX; -pub type PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX = *mut _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX; -pub const _CPU_SET_INFORMATION_TYPE_CpuSetInformation: _CPU_SET_INFORMATION_TYPE = 0; -pub type _CPU_SET_INFORMATION_TYPE = ::std::os::raw::c_int; -pub use self::_CPU_SET_INFORMATION_TYPE as CPU_SET_INFORMATION_TYPE; -pub type PCPU_SET_INFORMATION_TYPE = *mut _CPU_SET_INFORMATION_TYPE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _SYSTEM_CPU_SET_INFORMATION { - pub Size: DWORD, - pub Type: CPU_SET_INFORMATION_TYPE, - pub __bindgen_anon_1: _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1 { - pub CpuSet: _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1 { - pub Id: DWORD, - pub Group: WORD, - pub LogicalProcessorIndex: BYTE, - pub CoreIndex: BYTE, - pub LastLevelCacheIndex: BYTE, - pub NumaNodeIndex: BYTE, - pub EfficiencyClass: BYTE, - pub __bindgen_anon_1: _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, - pub __bindgen_anon_2: _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2, - pub AllocationTag: DWORD64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { - pub AllFlags: BYTE, - pub __bindgen_anon_1: - _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -} -impl _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn Parked(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } - } - #[inline] - pub fn set_Parked(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn Allocated(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) } - } - #[inline] - pub fn set_Allocated(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn AllocatedToTargetProcess(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u8) } - } - #[inline] - pub fn set_AllocatedToTargetProcess(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn RealTime(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) } - } - #[inline] - pub fn set_RealTime(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedFlags(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } - } - #[inline] - pub fn set_ReservedFlags(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 4u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - Parked: BYTE, - Allocated: BYTE, - AllocatedToTargetProcess: BYTE, - RealTime: BYTE, - ReservedFlags: BYTE, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let Parked: u8 = unsafe { ::std::mem::transmute(Parked) }; - Parked as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let Allocated: u8 = unsafe { ::std::mem::transmute(Allocated) }; - Allocated as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let AllocatedToTargetProcess: u8 = - unsafe { ::std::mem::transmute(AllocatedToTargetProcess) }; - AllocatedToTargetProcess as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let RealTime: u8 = unsafe { ::std::mem::transmute(RealTime) }; - RealTime as u64 - }); - __bindgen_bitfield_unit.set(4usize, 4u8, { - let ReservedFlags: u8 = unsafe { ::std::mem::transmute(ReservedFlags) }; - ReservedFlags as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SYSTEM_CPU_SET_INFORMATION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_2 { - pub Reserved: DWORD, - pub SchedulingClass: BYTE, -} -pub type SYSTEM_CPU_SET_INFORMATION = _SYSTEM_CPU_SET_INFORMATION; -pub type PSYSTEM_CPU_SET_INFORMATION = *mut _SYSTEM_CPU_SET_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_POOL_ZEROING_INFORMATION { - pub PoolZeroingSupportPresent: BOOLEAN, -} -pub type SYSTEM_POOL_ZEROING_INFORMATION = _SYSTEM_POOL_ZEROING_INFORMATION; -pub type PSYSTEM_POOL_ZEROING_INFORMATION = *mut _SYSTEM_POOL_ZEROING_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION { - pub CycleTime: DWORD64, -} -pub type SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION = _SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION; -pub type PSYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION = *mut _SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION; -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION { - #[inline] - pub fn Machine(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } - } - #[inline] - pub fn set_Machine(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 16u8, val as u64) - } - } - #[inline] - pub fn KernelMode(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) } - } - #[inline] - pub fn set_KernelMode(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(16usize, 1u8, val as u64) - } - } - #[inline] - pub fn UserMode(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) } - } - #[inline] - pub fn set_UserMode(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(17usize, 1u8, val as u64) - } - } - #[inline] - pub fn Native(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u32) } - } - #[inline] - pub fn set_Native(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(18usize, 1u8, val as u64) - } - } - #[inline] - pub fn Process(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u32) } - } - #[inline] - pub fn set_Process(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(19usize, 1u8, val as u64) - } - } - #[inline] - pub fn WoW64Container(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) } - } - #[inline] - pub fn set_WoW64Container(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(20usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedZero0(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 11u8) as u32) } - } - #[inline] - pub fn set_ReservedZero0(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(21usize, 11u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - Machine: DWORD, - KernelMode: DWORD, - UserMode: DWORD, - Native: DWORD, - Process: DWORD, - WoW64Container: DWORD, - ReservedZero0: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 16u8, { - let Machine: u32 = unsafe { ::std::mem::transmute(Machine) }; - Machine as u64 - }); - __bindgen_bitfield_unit.set(16usize, 1u8, { - let KernelMode: u32 = unsafe { ::std::mem::transmute(KernelMode) }; - KernelMode as u64 - }); - __bindgen_bitfield_unit.set(17usize, 1u8, { - let UserMode: u32 = unsafe { ::std::mem::transmute(UserMode) }; - UserMode as u64 - }); - __bindgen_bitfield_unit.set(18usize, 1u8, { - let Native: u32 = unsafe { ::std::mem::transmute(Native) }; - Native as u64 - }); - __bindgen_bitfield_unit.set(19usize, 1u8, { - let Process: u32 = unsafe { ::std::mem::transmute(Process) }; - Process as u64 - }); - __bindgen_bitfield_unit.set(20usize, 1u8, { - let WoW64Container: u32 = unsafe { ::std::mem::transmute(WoW64Container) }; - WoW64Container as u64 - }); - __bindgen_bitfield_unit.set(21usize, 11u8, { - let ReservedZero0: u32 = unsafe { ::std::mem::transmute(ReservedZero0) }; - ReservedZero0 as u64 - }); - __bindgen_bitfield_unit - } -} -pub type SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION = - _SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _XSTATE_FEATURE { - pub Offset: DWORD, - pub Size: DWORD, -} -pub type XSTATE_FEATURE = _XSTATE_FEATURE; -pub type PXSTATE_FEATURE = *mut _XSTATE_FEATURE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _XSTATE_CONFIGURATION { - pub EnabledFeatures: DWORD64, - pub EnabledVolatileFeatures: DWORD64, - pub Size: DWORD, - pub __bindgen_anon_1: _XSTATE_CONFIGURATION__bindgen_ty_1, - pub Features: [XSTATE_FEATURE; 64usize], - pub EnabledSupervisorFeatures: DWORD64, - pub AlignedFeatures: DWORD64, - pub AllFeatureSize: DWORD, - pub AllFeatures: [DWORD; 64usize], - pub EnabledUserVisibleSupervisorFeatures: DWORD64, - pub ExtendedFeatureDisableFeatures: DWORD64, - pub AllNonLargeFeatureSize: DWORD, - pub Spare: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _XSTATE_CONFIGURATION__bindgen_ty_1 { - pub ControlFlags: DWORD, - pub __bindgen_anon_1: _XSTATE_CONFIGURATION__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _XSTATE_CONFIGURATION__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 3usize], -} -impl _XSTATE_CONFIGURATION__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn OptimizedSave(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_OptimizedSave(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn CompactionEnabled(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_CompactionEnabled(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn ExtendedFeatureDisable(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_ExtendedFeatureDisable(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - OptimizedSave: DWORD, - CompactionEnabled: DWORD, - ExtendedFeatureDisable: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let OptimizedSave: u32 = unsafe { ::std::mem::transmute(OptimizedSave) }; - OptimizedSave as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let CompactionEnabled: u32 = unsafe { ::std::mem::transmute(CompactionEnabled) }; - CompactionEnabled as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let ExtendedFeatureDisable: u32 = - unsafe { ::std::mem::transmute(ExtendedFeatureDisable) }; - ExtendedFeatureDisable as u64 - }); - __bindgen_bitfield_unit - } -} -pub type XSTATE_CONFIGURATION = _XSTATE_CONFIGURATION; -pub type PXSTATE_CONFIGURATION = *mut _XSTATE_CONFIGURATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MEMORY_BASIC_INFORMATION { - pub BaseAddress: PVOID, - pub AllocationBase: PVOID, - pub AllocationProtect: DWORD, - pub PartitionId: WORD, - pub RegionSize: SIZE_T, - pub State: DWORD, - pub Protect: DWORD, - pub Type: DWORD, -} -pub type MEMORY_BASIC_INFORMATION = _MEMORY_BASIC_INFORMATION; -pub type PMEMORY_BASIC_INFORMATION = *mut _MEMORY_BASIC_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MEMORY_BASIC_INFORMATION32 { - pub BaseAddress: DWORD, - pub AllocationBase: DWORD, - pub AllocationProtect: DWORD, - pub RegionSize: DWORD, - pub State: DWORD, - pub Protect: DWORD, - pub Type: DWORD, -} -pub type MEMORY_BASIC_INFORMATION32 = _MEMORY_BASIC_INFORMATION32; -pub type PMEMORY_BASIC_INFORMATION32 = *mut _MEMORY_BASIC_INFORMATION32; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct _MEMORY_BASIC_INFORMATION64 { - pub BaseAddress: ULONGLONG, - pub AllocationBase: ULONGLONG, - pub AllocationProtect: DWORD, - pub __alignment1: DWORD, - pub RegionSize: ULONGLONG, - pub State: DWORD, - pub Protect: DWORD, - pub Type: DWORD, - pub __alignment2: DWORD, -} -pub type MEMORY_BASIC_INFORMATION64 = _MEMORY_BASIC_INFORMATION64; -pub type PMEMORY_BASIC_INFORMATION64 = *mut _MEMORY_BASIC_INFORMATION64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CFG_CALL_TARGET_INFO { - pub Offset: ULONG_PTR, - pub Flags: ULONG_PTR, -} -pub type CFG_CALL_TARGET_INFO = _CFG_CALL_TARGET_INFO; -pub type PCFG_CALL_TARGET_INFO = *mut _CFG_CALL_TARGET_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MEM_ADDRESS_REQUIREMENTS { - pub LowestStartingAddress: PVOID, - pub HighestEndingAddress: PVOID, - pub Alignment: SIZE_T, -} -pub type MEM_ADDRESS_REQUIREMENTS = _MEM_ADDRESS_REQUIREMENTS; -pub type PMEM_ADDRESS_REQUIREMENTS = *mut _MEM_ADDRESS_REQUIREMENTS; -pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterInvalidType: MEM_EXTENDED_PARAMETER_TYPE = - 0; -pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterAddressRequirements: - MEM_EXTENDED_PARAMETER_TYPE = 1; -pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterNumaNode: MEM_EXTENDED_PARAMETER_TYPE = 2; -pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterPartitionHandle: - MEM_EXTENDED_PARAMETER_TYPE = 3; -pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterUserPhysicalHandle: - MEM_EXTENDED_PARAMETER_TYPE = 4; -pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterAttributeFlags: - MEM_EXTENDED_PARAMETER_TYPE = 5; -pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterImageMachine: - MEM_EXTENDED_PARAMETER_TYPE = 6; -pub const MEM_EXTENDED_PARAMETER_TYPE_MemExtendedParameterMax: MEM_EXTENDED_PARAMETER_TYPE = 7; -pub type MEM_EXTENDED_PARAMETER_TYPE = ::std::os::raw::c_int; -pub type PMEM_EXTENDED_PARAMETER_TYPE = *mut MEM_EXTENDED_PARAMETER_TYPE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct MEM_EXTENDED_PARAMETER { - pub __bindgen_anon_1: MEM_EXTENDED_PARAMETER__bindgen_ty_1, - pub __bindgen_anon_2: MEM_EXTENDED_PARAMETER__bindgen_ty_2, -} -#[repr(C)] -#[repr(align(8))] -#[derive(Debug, Copy, Clone)] -pub struct MEM_EXTENDED_PARAMETER__bindgen_ty_1 { - pub _bitfield_align_1: [u64; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>, -} -impl MEM_EXTENDED_PARAMETER__bindgen_ty_1 { - #[inline] - pub fn Type(&self) -> DWORD64 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u64) } - } - #[inline] - pub fn set_Type(&mut self, val: DWORD64) { - unsafe { - let val: u64 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 8u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> DWORD64 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 56u8) as u64) } - } - #[inline] - pub fn set_Reserved(&mut self, val: DWORD64) { - unsafe { - let val: u64 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 56u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1(Type: DWORD64, Reserved: DWORD64) -> __BindgenBitfieldUnit<[u8; 8usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 8u8, { - let Type: u64 = unsafe { ::std::mem::transmute(Type) }; - Type as u64 - }); - __bindgen_bitfield_unit.set(8usize, 56u8, { - let Reserved: u64 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union MEM_EXTENDED_PARAMETER__bindgen_ty_2 { - pub ULong64: DWORD64, - pub Pointer: PVOID, - pub Size: SIZE_T, - pub Handle: HANDLE, - pub ULong: DWORD, -} -pub type PMEM_EXTENDED_PARAMETER = *mut MEM_EXTENDED_PARAMETER; -pub const _MEM_DEDICATED_ATTRIBUTE_TYPE_MemDedicatedAttributeReadBandwidth: - _MEM_DEDICATED_ATTRIBUTE_TYPE = 0; -pub const _MEM_DEDICATED_ATTRIBUTE_TYPE_MemDedicatedAttributeReadLatency: - _MEM_DEDICATED_ATTRIBUTE_TYPE = 1; -pub const _MEM_DEDICATED_ATTRIBUTE_TYPE_MemDedicatedAttributeWriteBandwidth: - _MEM_DEDICATED_ATTRIBUTE_TYPE = 2; -pub const _MEM_DEDICATED_ATTRIBUTE_TYPE_MemDedicatedAttributeWriteLatency: - _MEM_DEDICATED_ATTRIBUTE_TYPE = 3; -pub const _MEM_DEDICATED_ATTRIBUTE_TYPE_MemDedicatedAttributeMax: _MEM_DEDICATED_ATTRIBUTE_TYPE = 4; -pub type _MEM_DEDICATED_ATTRIBUTE_TYPE = ::std::os::raw::c_int; -pub use self::_MEM_DEDICATED_ATTRIBUTE_TYPE as MEM_DEDICATED_ATTRIBUTE_TYPE; -pub type PMEM_DEDICATED_ATTRIBUTE_TYPE = *mut _MEM_DEDICATED_ATTRIBUTE_TYPE; -pub const MEM_SECTION_EXTENDED_PARAMETER_TYPE_MemSectionExtendedParameterInvalidType: - MEM_SECTION_EXTENDED_PARAMETER_TYPE = 0; -pub const MEM_SECTION_EXTENDED_PARAMETER_TYPE_MemSectionExtendedParameterUserPhysicalFlags: - MEM_SECTION_EXTENDED_PARAMETER_TYPE = 1; -pub const MEM_SECTION_EXTENDED_PARAMETER_TYPE_MemSectionExtendedParameterNumaNode: - MEM_SECTION_EXTENDED_PARAMETER_TYPE = 2; -pub const MEM_SECTION_EXTENDED_PARAMETER_TYPE_MemSectionExtendedParameterSigningLevel: - MEM_SECTION_EXTENDED_PARAMETER_TYPE = 3; -pub const MEM_SECTION_EXTENDED_PARAMETER_TYPE_MemSectionExtendedParameterMax: - MEM_SECTION_EXTENDED_PARAMETER_TYPE = 4; -pub type MEM_SECTION_EXTENDED_PARAMETER_TYPE = ::std::os::raw::c_int; -pub type PMEM_SECTION_EXTENDED_PARAMETER_TYPE = *mut MEM_SECTION_EXTENDED_PARAMETER_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCLAVE_CREATE_INFO_SGX { - pub Secs: [BYTE; 4096usize], -} -pub type ENCLAVE_CREATE_INFO_SGX = _ENCLAVE_CREATE_INFO_SGX; -pub type PENCLAVE_CREATE_INFO_SGX = *mut _ENCLAVE_CREATE_INFO_SGX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCLAVE_INIT_INFO_SGX { - pub SigStruct: [BYTE; 1808usize], - pub Reserved1: [BYTE; 240usize], - pub EInitToken: [BYTE; 304usize], - pub Reserved2: [BYTE; 1744usize], -} -pub type ENCLAVE_INIT_INFO_SGX = _ENCLAVE_INIT_INFO_SGX; -pub type PENCLAVE_INIT_INFO_SGX = *mut _ENCLAVE_INIT_INFO_SGX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCLAVE_CREATE_INFO_VBS { - pub Flags: DWORD, - pub OwnerID: [BYTE; 32usize], -} -pub type ENCLAVE_CREATE_INFO_VBS = _ENCLAVE_CREATE_INFO_VBS; -pub type PENCLAVE_CREATE_INFO_VBS = *mut _ENCLAVE_CREATE_INFO_VBS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCLAVE_CREATE_INFO_VBS_BASIC { - pub Flags: DWORD, - pub OwnerID: [BYTE; 32usize], -} -pub type ENCLAVE_CREATE_INFO_VBS_BASIC = _ENCLAVE_CREATE_INFO_VBS_BASIC; -pub type PENCLAVE_CREATE_INFO_VBS_BASIC = *mut _ENCLAVE_CREATE_INFO_VBS_BASIC; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCLAVE_LOAD_DATA_VBS_BASIC { - pub PageType: DWORD, -} -pub type ENCLAVE_LOAD_DATA_VBS_BASIC = _ENCLAVE_LOAD_DATA_VBS_BASIC; -pub type PENCLAVE_LOAD_DATA_VBS_BASIC = *mut _ENCLAVE_LOAD_DATA_VBS_BASIC; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _ENCLAVE_INIT_INFO_VBS_BASIC { - pub FamilyId: [BYTE; 16usize], - pub ImageId: [BYTE; 16usize], - pub EnclaveSize: ULONGLONG, - pub EnclaveSvn: DWORD, - pub Reserved: DWORD, - pub __bindgen_anon_1: _ENCLAVE_INIT_INFO_VBS_BASIC__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _ENCLAVE_INIT_INFO_VBS_BASIC__bindgen_ty_1 { - pub SignatureInfoHandle: HANDLE, - pub Unused: ULONGLONG, -} -pub type ENCLAVE_INIT_INFO_VBS_BASIC = _ENCLAVE_INIT_INFO_VBS_BASIC; -pub type PENCLAVE_INIT_INFO_VBS_BASIC = *mut _ENCLAVE_INIT_INFO_VBS_BASIC; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCLAVE_INIT_INFO_VBS { - pub Length: DWORD, - pub ThreadCount: DWORD, -} -pub type ENCLAVE_INIT_INFO_VBS = _ENCLAVE_INIT_INFO_VBS; -pub type PENCLAVE_INIT_INFO_VBS = *mut _ENCLAVE_INIT_INFO_VBS; -pub type ENCLAVE_TARGET_FUNCTION = - ::std::option::Option PVOID>; -pub type PENCLAVE_TARGET_FUNCTION = ENCLAVE_TARGET_FUNCTION; -pub type LPENCLAVE_TARGET_FUNCTION = PENCLAVE_TARGET_FUNCTION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE { - pub Type: MEM_DEDICATED_ATTRIBUTE_TYPE, - pub Reserved: DWORD, - pub Value: DWORD64, -} -pub type MEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE = _MEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE; -pub type PMEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE = - *mut _MEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION { - pub NextEntryOffset: DWORD, - pub SizeOfInformation: DWORD, - pub Flags: DWORD, - pub AttributesOffset: DWORD, - pub AttributeCount: DWORD, - pub Reserved: DWORD, - pub TypeId: DWORD64, -} -pub type MEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION = - _MEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION; -pub type PMEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION = - *mut _MEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_ID_128 { - pub Identifier: [BYTE; 16usize], -} -pub type FILE_ID_128 = _FILE_ID_128; -pub type PFILE_ID_128 = *mut _FILE_ID_128; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_NOTIFY_INFORMATION { - pub NextEntryOffset: DWORD, - pub Action: DWORD, - pub FileNameLength: DWORD, - pub FileName: [WCHAR; 1usize], -} -pub type FILE_NOTIFY_INFORMATION = _FILE_NOTIFY_INFORMATION; -pub type PFILE_NOTIFY_INFORMATION = *mut _FILE_NOTIFY_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_NOTIFY_EXTENDED_INFORMATION { - pub NextEntryOffset: DWORD, - pub Action: DWORD, - pub CreationTime: LARGE_INTEGER, - pub LastModificationTime: LARGE_INTEGER, - pub LastChangeTime: LARGE_INTEGER, - pub LastAccessTime: LARGE_INTEGER, - pub AllocatedLength: LARGE_INTEGER, - pub FileSize: LARGE_INTEGER, - pub FileAttributes: DWORD, - pub __bindgen_anon_1: _FILE_NOTIFY_EXTENDED_INFORMATION__bindgen_ty_1, - pub FileId: LARGE_INTEGER, - pub ParentFileId: LARGE_INTEGER, - pub FileNameLength: DWORD, - pub FileName: [WCHAR; 1usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _FILE_NOTIFY_EXTENDED_INFORMATION__bindgen_ty_1 { - pub ReparsePointTag: DWORD, - pub EaSize: DWORD, -} -pub type FILE_NOTIFY_EXTENDED_INFORMATION = _FILE_NOTIFY_EXTENDED_INFORMATION; -pub type PFILE_NOTIFY_EXTENDED_INFORMATION = *mut _FILE_NOTIFY_EXTENDED_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_NOTIFY_FULL_INFORMATION { - pub NextEntryOffset: DWORD, - pub Action: DWORD, - pub CreationTime: LARGE_INTEGER, - pub LastModificationTime: LARGE_INTEGER, - pub LastChangeTime: LARGE_INTEGER, - pub LastAccessTime: LARGE_INTEGER, - pub AllocatedLength: LARGE_INTEGER, - pub FileSize: LARGE_INTEGER, - pub FileAttributes: DWORD, - pub __bindgen_anon_1: _FILE_NOTIFY_FULL_INFORMATION__bindgen_ty_1, - pub FileId: LARGE_INTEGER, - pub ParentFileId: LARGE_INTEGER, - pub FileNameLength: WORD, - pub FileNameFlags: BYTE, - pub Reserved: BYTE, - pub FileName: [WCHAR; 1usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _FILE_NOTIFY_FULL_INFORMATION__bindgen_ty_1 { - pub ReparsePointTag: DWORD, - pub EaSize: DWORD, -} -pub type FILE_NOTIFY_FULL_INFORMATION = _FILE_NOTIFY_FULL_INFORMATION; -pub type PFILE_NOTIFY_FULL_INFORMATION = *mut _FILE_NOTIFY_FULL_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub union _FILE_SEGMENT_ELEMENT { - pub Buffer: *mut ::std::os::raw::c_void, - pub Alignment: ULONGLONG, -} -pub type FILE_SEGMENT_ELEMENT = _FILE_SEGMENT_ELEMENT; -pub type PFILE_SEGMENT_ELEMENT = *mut _FILE_SEGMENT_ELEMENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REPARSE_GUID_DATA_BUFFER { - pub ReparseTag: DWORD, - pub ReparseDataLength: WORD, - pub Reserved: WORD, - pub ReparseGuid: GUID, - pub GenericReparseBuffer: _REPARSE_GUID_DATA_BUFFER__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REPARSE_GUID_DATA_BUFFER__bindgen_ty_1 { - pub DataBuffer: [BYTE; 1usize], -} -pub type REPARSE_GUID_DATA_BUFFER = _REPARSE_GUID_DATA_BUFFER; -pub type PREPARSE_GUID_DATA_BUFFER = *mut _REPARSE_GUID_DATA_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCRUB_DATA_INPUT { - pub Size: DWORD, - pub Flags: DWORD, - pub MaximumIos: DWORD, - pub ObjectId: [DWORD; 4usize], - pub Reserved: [DWORD; 41usize], - pub ResumeContext: [BYTE; 1040usize], -} -pub type SCRUB_DATA_INPUT = _SCRUB_DATA_INPUT; -pub type PSCRUB_DATA_INPUT = *mut _SCRUB_DATA_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCRUB_PARITY_EXTENT { - pub Offset: LONGLONG, - pub Length: ULONGLONG, -} -pub type SCRUB_PARITY_EXTENT = _SCRUB_PARITY_EXTENT; -pub type PSCRUB_PARITY_EXTENT = *mut _SCRUB_PARITY_EXTENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCRUB_PARITY_EXTENT_DATA { - pub Size: WORD, - pub Flags: WORD, - pub NumberOfParityExtents: WORD, - pub MaximumNumberOfParityExtents: WORD, - pub ParityExtents: [SCRUB_PARITY_EXTENT; 1usize], -} -pub type SCRUB_PARITY_EXTENT_DATA = _SCRUB_PARITY_EXTENT_DATA; -pub type PSCRUB_PARITY_EXTENT_DATA = *mut _SCRUB_PARITY_EXTENT_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCRUB_DATA_OUTPUT { - pub Size: DWORD, - pub Flags: DWORD, - pub Status: DWORD, - pub ErrorFileOffset: ULONGLONG, - pub ErrorLength: ULONGLONG, - pub NumberOfBytesRepaired: ULONGLONG, - pub NumberOfBytesFailed: ULONGLONG, - pub InternalFileReference: ULONGLONG, - pub ResumeContextLength: WORD, - pub ParityExtentDataOffset: WORD, - pub Reserved: [DWORD; 9usize], - pub NumberOfMetadataBytesProcessed: ULONGLONG, - pub NumberOfDataBytesProcessed: ULONGLONG, - pub TotalNumberOfMetadataBytesInUse: ULONGLONG, - pub TotalNumberOfDataBytesInUse: ULONGLONG, - pub DataBytesSkippedDueToNoAllocation: ULONGLONG, - pub DataBytesSkippedDueToInvalidRun: ULONGLONG, - pub DataBytesSkippedDueToIntegrityStream: ULONGLONG, - pub DataBytesSkippedDueToRegionBeingClean: ULONGLONG, - pub DataBytesSkippedDueToLockConflict: ULONGLONG, - pub DataBytesSkippedDueToNoScrubDataFlag: ULONGLONG, - pub DataBytesSkippedDueToNoScrubNonIntegrityStreamFlag: ULONGLONG, - pub DataBytesScrubbed: ULONGLONG, - pub ResumeContext: [BYTE; 1040usize], -} -pub type SCRUB_DATA_OUTPUT = _SCRUB_DATA_OUTPUT; -pub type PSCRUB_DATA_OUTPUT = *mut _SCRUB_DATA_OUTPUT; -pub const _SharedVirtualDiskSupportType_SharedVirtualDisksUnsupported: - _SharedVirtualDiskSupportType = 0; -pub const _SharedVirtualDiskSupportType_SharedVirtualDisksSupported: _SharedVirtualDiskSupportType = - 1; -pub const _SharedVirtualDiskSupportType_SharedVirtualDiskSnapshotsSupported: - _SharedVirtualDiskSupportType = 3; -pub const _SharedVirtualDiskSupportType_SharedVirtualDiskCDPSnapshotsSupported: - _SharedVirtualDiskSupportType = 7; -pub type _SharedVirtualDiskSupportType = ::std::os::raw::c_int; -pub use self::_SharedVirtualDiskSupportType as SharedVirtualDiskSupportType; -pub const _SharedVirtualDiskHandleState_SharedVirtualDiskHandleStateNone: - _SharedVirtualDiskHandleState = 0; -pub const _SharedVirtualDiskHandleState_SharedVirtualDiskHandleStateFileShared: - _SharedVirtualDiskHandleState = 1; -pub const _SharedVirtualDiskHandleState_SharedVirtualDiskHandleStateHandleShared: - _SharedVirtualDiskHandleState = 3; -pub type _SharedVirtualDiskHandleState = ::std::os::raw::c_int; -pub use self::_SharedVirtualDiskHandleState as SharedVirtualDiskHandleState; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SHARED_VIRTUAL_DISK_SUPPORT { - pub SharedVirtualDiskSupport: SharedVirtualDiskSupportType, - pub HandleState: SharedVirtualDiskHandleState, -} -pub type SHARED_VIRTUAL_DISK_SUPPORT = _SHARED_VIRTUAL_DISK_SUPPORT; -pub type PSHARED_VIRTUAL_DISK_SUPPORT = *mut _SHARED_VIRTUAL_DISK_SUPPORT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REARRANGE_FILE_DATA { - pub SourceStartingOffset: ULONGLONG, - pub TargetOffset: ULONGLONG, - pub SourceFileHandle: HANDLE, - pub Length: DWORD, - pub Flags: DWORD, -} -pub type REARRANGE_FILE_DATA = _REARRANGE_FILE_DATA; -pub type PREARRANGE_FILE_DATA = *mut _REARRANGE_FILE_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REARRANGE_FILE_DATA32 { - pub SourceStartingOffset: ULONGLONG, - pub TargetOffset: ULONGLONG, - pub SourceFileHandle: UINT32, - pub Length: DWORD, - pub Flags: DWORD, -} -pub type REARRANGE_FILE_DATA32 = _REARRANGE_FILE_DATA32; -pub type PREARRANGE_FILE_DATA32 = *mut _REARRANGE_FILE_DATA32; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SHUFFLE_FILE_DATA { - pub StartingOffset: LONGLONG, - pub Length: LONGLONG, - pub Flags: DWORD, -} -pub type SHUFFLE_FILE_DATA = _SHUFFLE_FILE_DATA; -pub type PSHUFFLE_FILE_DATA = *mut _SHUFFLE_FILE_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NETWORK_APP_INSTANCE_EA { - pub AppInstanceID: GUID, - pub CsvFlags: DWORD, -} -pub type NETWORK_APP_INSTANCE_EA = _NETWORK_APP_INSTANCE_EA; -pub type PNETWORK_APP_INSTANCE_EA = *mut _NETWORK_APP_INSTANCE_EA; -extern "C" { - pub static GUID_MAX_POWER_SAVINGS: GUID; -} -extern "C" { - pub static GUID_MIN_POWER_SAVINGS: GUID; -} -extern "C" { - pub static GUID_TYPICAL_POWER_SAVINGS: GUID; -} -extern "C" { - pub static NO_SUBGROUP_GUID: GUID; -} -extern "C" { - pub static ALL_POWERSCHEMES_GUID: GUID; -} -extern "C" { - pub static GUID_POWERSCHEME_PERSONALITY: GUID; -} -extern "C" { - pub static GUID_ACTIVE_POWERSCHEME: GUID; -} -extern "C" { - pub static GUID_IDLE_RESILIENCY_SUBGROUP: GUID; -} -extern "C" { - pub static GUID_IDLE_RESILIENCY_PERIOD: GUID; -} -extern "C" { - pub static GUID_DEEP_SLEEP_ENABLED: GUID; -} -extern "C" { - pub static GUID_DEEP_SLEEP_PLATFORM_STATE: GUID; -} -extern "C" { - pub static GUID_DISK_COALESCING_POWERDOWN_TIMEOUT: GUID; -} -extern "C" { - pub static GUID_EXECUTION_REQUIRED_REQUEST_TIMEOUT: GUID; -} -extern "C" { - pub static GUID_VIDEO_SUBGROUP: GUID; -} -extern "C" { - pub static GUID_VIDEO_POWERDOWN_TIMEOUT: GUID; -} -extern "C" { - pub static GUID_VIDEO_ANNOYANCE_TIMEOUT: GUID; -} -extern "C" { - pub static GUID_VIDEO_ADAPTIVE_PERCENT_INCREASE: GUID; -} -extern "C" { - pub static GUID_VIDEO_DIM_TIMEOUT: GUID; -} -extern "C" { - pub static GUID_VIDEO_ADAPTIVE_POWERDOWN: GUID; -} -extern "C" { - pub static GUID_MONITOR_POWER_ON: GUID; -} -extern "C" { - pub static GUID_DEVICE_POWER_POLICY_VIDEO_BRIGHTNESS: GUID; -} -extern "C" { - pub static GUID_DEVICE_POWER_POLICY_VIDEO_DIM_BRIGHTNESS: GUID; -} -extern "C" { - pub static GUID_VIDEO_CURRENT_MONITOR_BRIGHTNESS: GUID; -} -extern "C" { - pub static GUID_VIDEO_ADAPTIVE_DISPLAY_BRIGHTNESS: GUID; -} -extern "C" { - pub static GUID_CONSOLE_DISPLAY_STATE: GUID; -} -extern "C" { - pub static GUID_ALLOW_DISPLAY_REQUIRED: GUID; -} -extern "C" { - pub static GUID_VIDEO_CONSOLE_LOCK_TIMEOUT: GUID; -} -extern "C" { - pub static GUID_ADVANCED_COLOR_QUALITY_BIAS: GUID; -} -extern "C" { - pub static GUID_ADAPTIVE_POWER_BEHAVIOR_SUBGROUP: GUID; -} -extern "C" { - pub static GUID_NON_ADAPTIVE_INPUT_TIMEOUT: GUID; -} -extern "C" { - pub static GUID_ADAPTIVE_INPUT_CONTROLLER_STATE: GUID; -} -extern "C" { - pub static GUID_DISK_SUBGROUP: GUID; -} -extern "C" { - pub static GUID_DISK_MAX_POWER: GUID; -} -extern "C" { - pub static GUID_DISK_POWERDOWN_TIMEOUT: GUID; -} -extern "C" { - pub static GUID_DISK_IDLE_TIMEOUT: GUID; -} -extern "C" { - pub static GUID_DISK_BURST_IGNORE_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_DISK_ADAPTIVE_POWERDOWN: GUID; -} -extern "C" { - pub static GUID_DISK_NVME_NOPPME: GUID; -} -extern "C" { - pub static GUID_SLEEP_SUBGROUP: GUID; -} -extern "C" { - pub static GUID_SLEEP_IDLE_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_STANDBY_TIMEOUT: GUID; -} -extern "C" { - pub static GUID_UNATTEND_SLEEP_TIMEOUT: GUID; -} -extern "C" { - pub static GUID_HIBERNATE_TIMEOUT: GUID; -} -extern "C" { - pub static GUID_HIBERNATE_FASTS4_POLICY: GUID; -} -extern "C" { - pub static GUID_CRITICAL_POWER_TRANSITION: GUID; -} -extern "C" { - pub static GUID_SYSTEM_AWAYMODE: GUID; -} -extern "C" { - pub static GUID_ALLOW_AWAYMODE: GUID; -} -extern "C" { - pub static GUID_USER_PRESENCE_PREDICTION: GUID; -} -extern "C" { - pub static GUID_STANDBY_BUDGET_GRACE_PERIOD: GUID; -} -extern "C" { - pub static GUID_STANDBY_BUDGET_PERCENT: GUID; -} -extern "C" { - pub static GUID_STANDBY_RESERVE_GRACE_PERIOD: GUID; -} -extern "C" { - pub static GUID_STANDBY_RESERVE_TIME: GUID; -} -extern "C" { - pub static GUID_STANDBY_RESET_PERCENT: GUID; -} -extern "C" { - pub static GUID_HUPR_ADAPTIVE_DISPLAY_TIMEOUT: GUID; -} -extern "C" { - pub static GUID_HUPR_ADAPTIVE_DIM_TIMEOUT: GUID; -} -extern "C" { - pub static GUID_ALLOW_STANDBY_STATES: GUID; -} -extern "C" { - pub static GUID_ALLOW_RTC_WAKE: GUID; -} -extern "C" { - pub static GUID_LEGACY_RTC_MITIGATION: GUID; -} -extern "C" { - pub static GUID_ALLOW_SYSTEM_REQUIRED: GUID; -} -extern "C" { - pub static GUID_POWER_SAVING_STATUS: GUID; -} -extern "C" { - pub static GUID_ENERGY_SAVER_SUBGROUP: GUID; -} -extern "C" { - pub static GUID_ENERGY_SAVER_BATTERY_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_ENERGY_SAVER_BRIGHTNESS: GUID; -} -extern "C" { - pub static GUID_ENERGY_SAVER_POLICY: GUID; -} -extern "C" { - pub static GUID_SYSTEM_BUTTON_SUBGROUP: GUID; -} -extern "C" { - pub static GUID_POWERBUTTON_ACTION: GUID; -} -extern "C" { - pub static GUID_SLEEPBUTTON_ACTION: GUID; -} -extern "C" { - pub static GUID_USERINTERFACEBUTTON_ACTION: GUID; -} -extern "C" { - pub static GUID_LIDCLOSE_ACTION: GUID; -} -extern "C" { - pub static GUID_LIDOPEN_POWERSTATE: GUID; -} -extern "C" { - pub static GUID_BATTERY_SUBGROUP: GUID; -} -extern "C" { - pub static GUID_BATTERY_DISCHARGE_ACTION_0: GUID; -} -extern "C" { - pub static GUID_BATTERY_DISCHARGE_LEVEL_0: GUID; -} -extern "C" { - pub static GUID_BATTERY_DISCHARGE_FLAGS_0: GUID; -} -extern "C" { - pub static GUID_BATTERY_DISCHARGE_ACTION_1: GUID; -} -extern "C" { - pub static GUID_BATTERY_DISCHARGE_LEVEL_1: GUID; -} -extern "C" { - pub static GUID_BATTERY_DISCHARGE_FLAGS_1: GUID; -} -extern "C" { - pub static GUID_BATTERY_DISCHARGE_ACTION_2: GUID; -} -extern "C" { - pub static GUID_BATTERY_DISCHARGE_LEVEL_2: GUID; -} -extern "C" { - pub static GUID_BATTERY_DISCHARGE_FLAGS_2: GUID; -} -extern "C" { - pub static GUID_BATTERY_DISCHARGE_ACTION_3: GUID; -} -extern "C" { - pub static GUID_BATTERY_DISCHARGE_LEVEL_3: GUID; -} -extern "C" { - pub static GUID_BATTERY_DISCHARGE_FLAGS_3: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_SETTINGS_SUBGROUP: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_THROTTLE_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_THROTTLE_MAXIMUM: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_THROTTLE_MAXIMUM_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_THROTTLE_MINIMUM: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_THROTTLE_MINIMUM_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_FREQUENCY_LIMIT: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_FREQUENCY_LIMIT_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_ALLOW_THROTTLING: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_IDLESTATE_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERFSTATE_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_INCREASE_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_INCREASE_THRESHOLD_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_DECREASE_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_DECREASE_THRESHOLD_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_INCREASE_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_INCREASE_POLICY_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_DECREASE_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_DECREASE_POLICY_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_INCREASE_TIME: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_INCREASE_TIME_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_DECREASE_TIME: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_DECREASE_TIME_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_TIME_CHECK: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_BOOST_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_BOOST_MODE: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_AUTONOMOUS_MODE: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_AUTONOMOUS_ACTIVITY_WINDOW: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_DUTY_CYCLING: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_IDLE_ALLOW_SCALING: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_IDLE_DISABLE: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_IDLE_STATE_MAXIMUM: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_IDLE_TIME_CHECK: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_IDLE_DEMOTE_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_IDLE_PROMOTE_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_INCREASE_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_DECREASE_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_INCREASE_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_DECREASE_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_MAX_CORES: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_MAX_CORES_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_MIN_CORES: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_MIN_CORES_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_INCREASE_TIME: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_DECREASE_TIME: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_DECREASE_FACTOR: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_AFFINITY_WEIGHTING: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_DECREASE_FACTOR: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_WEIGHTING: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PARKING_CORE_OVERRIDE: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PARKING_PERF_STATE: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PARKING_PERF_STATE_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PARKING_CONCURRENCY_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PARKING_HEADROOM_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PARKING_DISTRIBUTION_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_SOFT_PARKING_LATENCY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_HISTORY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_HISTORY_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_INCREASE_HISTORY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_DECREASE_HISTORY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_CORE_PARKING_HISTORY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_LATENCY_HINT: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_LATENCY_HINT_PERF: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_PERF_LATENCY_HINT_PERF_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_MODULE_PARKING_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_COMPLEX_PARKING_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_SMT_UNPARKING_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_DISTRIBUTE_UTILITY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_HETEROGENEOUS_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_HETERO_DECREASE_TIME: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_HETERO_INCREASE_TIME: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_HETERO_DECREASE_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_HETERO_DECREASE_THRESHOLD_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_HETERO_INCREASE_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_HETERO_INCREASE_THRESHOLD_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CLASS0_FLOOR_PERF: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_CLASS1_INITIAL_PERF: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_THREAD_SCHEDULING_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_SHORT_THREAD_SCHEDULING_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_SHORT_THREAD_RUNTIME_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_SHORT_THREAD_ARCH_CLASS_UPPER_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_SHORT_THREAD_ARCH_CLASS_LOWER_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_LONG_THREAD_ARCH_CLASS_UPPER_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_LONG_THREAD_ARCH_CLASS_LOWER_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_SYSTEM_COOLING_POLICY: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING_1: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR: GUID; -} -extern "C" { - pub static GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR_1: GUID; -} -extern "C" { - pub static GUID_LOCK_CONSOLE_ON_WAKE: GUID; -} -extern "C" { - pub static GUID_DEVICE_IDLE_POLICY: GUID; -} -extern "C" { - pub static GUID_CONNECTIVITY_IN_STANDBY: GUID; -} -extern "C" { - pub static GUID_DISCONNECTED_STANDBY_MODE: GUID; -} -extern "C" { - pub static GUID_ACDC_POWER_SOURCE: GUID; -} -extern "C" { - pub static GUID_LIDSWITCH_STATE_CHANGE: GUID; -} -extern "C" { - pub static GUID_LIDSWITCH_STATE_RELIABILITY: GUID; -} -extern "C" { - pub static GUID_BATTERY_PERCENTAGE_REMAINING: GUID; -} -extern "C" { - pub static GUID_BATTERY_COUNT: GUID; -} -extern "C" { - pub static GUID_GLOBAL_USER_PRESENCE: GUID; -} -extern "C" { - pub static GUID_SESSION_DISPLAY_STATUS: GUID; -} -extern "C" { - pub static GUID_SESSION_USER_PRESENCE: GUID; -} -extern "C" { - pub static GUID_IDLE_BACKGROUND_TASK: GUID; -} -extern "C" { - pub static GUID_BACKGROUND_TASK_NOTIFICATION: GUID; -} -extern "C" { - pub static GUID_APPLAUNCH_BUTTON: GUID; -} -extern "C" { - pub static GUID_PCIEXPRESS_SETTINGS_SUBGROUP: GUID; -} -extern "C" { - pub static GUID_PCIEXPRESS_ASPM_POLICY: GUID; -} -extern "C" { - pub static GUID_ENABLE_SWITCH_FORCED_SHUTDOWN: GUID; -} -extern "C" { - pub static GUID_INTSTEER_SUBGROUP: GUID; -} -extern "C" { - pub static GUID_INTSTEER_MODE: GUID; -} -extern "C" { - pub static GUID_INTSTEER_LOAD_PER_PROC_TRIGGER: GUID; -} -extern "C" { - pub static GUID_INTSTEER_TIME_UNPARK_TRIGGER: GUID; -} -extern "C" { - pub static GUID_GRAPHICS_SUBGROUP: GUID; -} -extern "C" { - pub static GUID_GPU_PREFERENCE_POLICY: GUID; -} -extern "C" { - pub static GUID_MIXED_REALITY_MODE: GUID; -} -extern "C" { - pub static GUID_SPR_ACTIVE_SESSION_CHANGE: GUID; -} -pub const _SYSTEM_POWER_STATE_PowerSystemUnspecified: _SYSTEM_POWER_STATE = 0; -pub const _SYSTEM_POWER_STATE_PowerSystemWorking: _SYSTEM_POWER_STATE = 1; -pub const _SYSTEM_POWER_STATE_PowerSystemSleeping1: _SYSTEM_POWER_STATE = 2; -pub const _SYSTEM_POWER_STATE_PowerSystemSleeping2: _SYSTEM_POWER_STATE = 3; -pub const _SYSTEM_POWER_STATE_PowerSystemSleeping3: _SYSTEM_POWER_STATE = 4; -pub const _SYSTEM_POWER_STATE_PowerSystemHibernate: _SYSTEM_POWER_STATE = 5; -pub const _SYSTEM_POWER_STATE_PowerSystemShutdown: _SYSTEM_POWER_STATE = 6; -pub const _SYSTEM_POWER_STATE_PowerSystemMaximum: _SYSTEM_POWER_STATE = 7; -pub type _SYSTEM_POWER_STATE = ::std::os::raw::c_int; -pub use self::_SYSTEM_POWER_STATE as SYSTEM_POWER_STATE; -pub type PSYSTEM_POWER_STATE = *mut _SYSTEM_POWER_STATE; -pub const POWER_ACTION_PowerActionNone: POWER_ACTION = 0; -pub const POWER_ACTION_PowerActionReserved: POWER_ACTION = 1; -pub const POWER_ACTION_PowerActionSleep: POWER_ACTION = 2; -pub const POWER_ACTION_PowerActionHibernate: POWER_ACTION = 3; -pub const POWER_ACTION_PowerActionShutdown: POWER_ACTION = 4; -pub const POWER_ACTION_PowerActionShutdownReset: POWER_ACTION = 5; -pub const POWER_ACTION_PowerActionShutdownOff: POWER_ACTION = 6; -pub const POWER_ACTION_PowerActionWarmEject: POWER_ACTION = 7; -pub const POWER_ACTION_PowerActionDisplayOff: POWER_ACTION = 8; -pub type POWER_ACTION = ::std::os::raw::c_int; -pub type PPOWER_ACTION = *mut POWER_ACTION; -pub const _DEVICE_POWER_STATE_PowerDeviceUnspecified: _DEVICE_POWER_STATE = 0; -pub const _DEVICE_POWER_STATE_PowerDeviceD0: _DEVICE_POWER_STATE = 1; -pub const _DEVICE_POWER_STATE_PowerDeviceD1: _DEVICE_POWER_STATE = 2; -pub const _DEVICE_POWER_STATE_PowerDeviceD2: _DEVICE_POWER_STATE = 3; -pub const _DEVICE_POWER_STATE_PowerDeviceD3: _DEVICE_POWER_STATE = 4; -pub const _DEVICE_POWER_STATE_PowerDeviceMaximum: _DEVICE_POWER_STATE = 5; -pub type _DEVICE_POWER_STATE = ::std::os::raw::c_int; -pub use self::_DEVICE_POWER_STATE as DEVICE_POWER_STATE; -pub type PDEVICE_POWER_STATE = *mut _DEVICE_POWER_STATE; -pub const _MONITOR_DISPLAY_STATE_PowerMonitorOff: _MONITOR_DISPLAY_STATE = 0; -pub const _MONITOR_DISPLAY_STATE_PowerMonitorOn: _MONITOR_DISPLAY_STATE = 1; -pub const _MONITOR_DISPLAY_STATE_PowerMonitorDim: _MONITOR_DISPLAY_STATE = 2; -pub type _MONITOR_DISPLAY_STATE = ::std::os::raw::c_int; -pub use self::_MONITOR_DISPLAY_STATE as MONITOR_DISPLAY_STATE; -pub type PMONITOR_DISPLAY_STATE = *mut _MONITOR_DISPLAY_STATE; -pub const _USER_ACTIVITY_PRESENCE_PowerUserPresent: _USER_ACTIVITY_PRESENCE = 0; -pub const _USER_ACTIVITY_PRESENCE_PowerUserNotPresent: _USER_ACTIVITY_PRESENCE = 1; -pub const _USER_ACTIVITY_PRESENCE_PowerUserInactive: _USER_ACTIVITY_PRESENCE = 2; -pub const _USER_ACTIVITY_PRESENCE_PowerUserMaximum: _USER_ACTIVITY_PRESENCE = 3; -pub const _USER_ACTIVITY_PRESENCE_PowerUserInvalid: _USER_ACTIVITY_PRESENCE = 3; -pub type _USER_ACTIVITY_PRESENCE = ::std::os::raw::c_int; -pub use self::_USER_ACTIVITY_PRESENCE as USER_ACTIVITY_PRESENCE; -pub type PUSER_ACTIVITY_PRESENCE = *mut _USER_ACTIVITY_PRESENCE; -pub type EXECUTION_STATE = DWORD; -pub type PEXECUTION_STATE = *mut DWORD; -pub const LATENCY_TIME_LT_DONT_CARE: LATENCY_TIME = 0; -pub const LATENCY_TIME_LT_LOWEST_LATENCY: LATENCY_TIME = 1; -pub type LATENCY_TIME = ::std::os::raw::c_int; -pub const _POWER_REQUEST_TYPE_PowerRequestDisplayRequired: _POWER_REQUEST_TYPE = 0; -pub const _POWER_REQUEST_TYPE_PowerRequestSystemRequired: _POWER_REQUEST_TYPE = 1; -pub const _POWER_REQUEST_TYPE_PowerRequestAwayModeRequired: _POWER_REQUEST_TYPE = 2; -pub const _POWER_REQUEST_TYPE_PowerRequestExecutionRequired: _POWER_REQUEST_TYPE = 3; -pub type _POWER_REQUEST_TYPE = ::std::os::raw::c_int; -pub use self::_POWER_REQUEST_TYPE as POWER_REQUEST_TYPE; -pub type PPOWER_REQUEST_TYPE = *mut _POWER_REQUEST_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CM_Power_Data_s { - pub PD_Size: DWORD, - pub PD_MostRecentPowerState: DEVICE_POWER_STATE, - pub PD_Capabilities: DWORD, - pub PD_D1Latency: DWORD, - pub PD_D2Latency: DWORD, - pub PD_D3Latency: DWORD, - pub PD_PowerStateMapping: [DEVICE_POWER_STATE; 7usize], - pub PD_DeepestSystemWake: SYSTEM_POWER_STATE, -} -pub type CM_POWER_DATA = CM_Power_Data_s; -pub type PCM_POWER_DATA = *mut CM_Power_Data_s; -pub const POWER_INFORMATION_LEVEL_SystemPowerPolicyAc: POWER_INFORMATION_LEVEL = 0; -pub const POWER_INFORMATION_LEVEL_SystemPowerPolicyDc: POWER_INFORMATION_LEVEL = 1; -pub const POWER_INFORMATION_LEVEL_VerifySystemPolicyAc: POWER_INFORMATION_LEVEL = 2; -pub const POWER_INFORMATION_LEVEL_VerifySystemPolicyDc: POWER_INFORMATION_LEVEL = 3; -pub const POWER_INFORMATION_LEVEL_SystemPowerCapabilities: POWER_INFORMATION_LEVEL = 4; -pub const POWER_INFORMATION_LEVEL_SystemBatteryState: POWER_INFORMATION_LEVEL = 5; -pub const POWER_INFORMATION_LEVEL_SystemPowerStateHandler: POWER_INFORMATION_LEVEL = 6; -pub const POWER_INFORMATION_LEVEL_ProcessorStateHandler: POWER_INFORMATION_LEVEL = 7; -pub const POWER_INFORMATION_LEVEL_SystemPowerPolicyCurrent: POWER_INFORMATION_LEVEL = 8; -pub const POWER_INFORMATION_LEVEL_AdministratorPowerPolicy: POWER_INFORMATION_LEVEL = 9; -pub const POWER_INFORMATION_LEVEL_SystemReserveHiberFile: POWER_INFORMATION_LEVEL = 10; -pub const POWER_INFORMATION_LEVEL_ProcessorInformation: POWER_INFORMATION_LEVEL = 11; -pub const POWER_INFORMATION_LEVEL_SystemPowerInformation: POWER_INFORMATION_LEVEL = 12; -pub const POWER_INFORMATION_LEVEL_ProcessorStateHandler2: POWER_INFORMATION_LEVEL = 13; -pub const POWER_INFORMATION_LEVEL_LastWakeTime: POWER_INFORMATION_LEVEL = 14; -pub const POWER_INFORMATION_LEVEL_LastSleepTime: POWER_INFORMATION_LEVEL = 15; -pub const POWER_INFORMATION_LEVEL_SystemExecutionState: POWER_INFORMATION_LEVEL = 16; -pub const POWER_INFORMATION_LEVEL_SystemPowerStateNotifyHandler: POWER_INFORMATION_LEVEL = 17; -pub const POWER_INFORMATION_LEVEL_ProcessorPowerPolicyAc: POWER_INFORMATION_LEVEL = 18; -pub const POWER_INFORMATION_LEVEL_ProcessorPowerPolicyDc: POWER_INFORMATION_LEVEL = 19; -pub const POWER_INFORMATION_LEVEL_VerifyProcessorPowerPolicyAc: POWER_INFORMATION_LEVEL = 20; -pub const POWER_INFORMATION_LEVEL_VerifyProcessorPowerPolicyDc: POWER_INFORMATION_LEVEL = 21; -pub const POWER_INFORMATION_LEVEL_ProcessorPowerPolicyCurrent: POWER_INFORMATION_LEVEL = 22; -pub const POWER_INFORMATION_LEVEL_SystemPowerStateLogging: POWER_INFORMATION_LEVEL = 23; -pub const POWER_INFORMATION_LEVEL_SystemPowerLoggingEntry: POWER_INFORMATION_LEVEL = 24; -pub const POWER_INFORMATION_LEVEL_SetPowerSettingValue: POWER_INFORMATION_LEVEL = 25; -pub const POWER_INFORMATION_LEVEL_NotifyUserPowerSetting: POWER_INFORMATION_LEVEL = 26; -pub const POWER_INFORMATION_LEVEL_PowerInformationLevelUnused0: POWER_INFORMATION_LEVEL = 27; -pub const POWER_INFORMATION_LEVEL_SystemMonitorHiberBootPowerOff: POWER_INFORMATION_LEVEL = 28; -pub const POWER_INFORMATION_LEVEL_SystemVideoState: POWER_INFORMATION_LEVEL = 29; -pub const POWER_INFORMATION_LEVEL_TraceApplicationPowerMessage: POWER_INFORMATION_LEVEL = 30; -pub const POWER_INFORMATION_LEVEL_TraceApplicationPowerMessageEnd: POWER_INFORMATION_LEVEL = 31; -pub const POWER_INFORMATION_LEVEL_ProcessorPerfStates: POWER_INFORMATION_LEVEL = 32; -pub const POWER_INFORMATION_LEVEL_ProcessorIdleStates: POWER_INFORMATION_LEVEL = 33; -pub const POWER_INFORMATION_LEVEL_ProcessorCap: POWER_INFORMATION_LEVEL = 34; -pub const POWER_INFORMATION_LEVEL_SystemWakeSource: POWER_INFORMATION_LEVEL = 35; -pub const POWER_INFORMATION_LEVEL_SystemHiberFileInformation: POWER_INFORMATION_LEVEL = 36; -pub const POWER_INFORMATION_LEVEL_TraceServicePowerMessage: POWER_INFORMATION_LEVEL = 37; -pub const POWER_INFORMATION_LEVEL_ProcessorLoad: POWER_INFORMATION_LEVEL = 38; -pub const POWER_INFORMATION_LEVEL_PowerShutdownNotification: POWER_INFORMATION_LEVEL = 39; -pub const POWER_INFORMATION_LEVEL_MonitorCapabilities: POWER_INFORMATION_LEVEL = 40; -pub const POWER_INFORMATION_LEVEL_SessionPowerInit: POWER_INFORMATION_LEVEL = 41; -pub const POWER_INFORMATION_LEVEL_SessionDisplayState: POWER_INFORMATION_LEVEL = 42; -pub const POWER_INFORMATION_LEVEL_PowerRequestCreate: POWER_INFORMATION_LEVEL = 43; -pub const POWER_INFORMATION_LEVEL_PowerRequestAction: POWER_INFORMATION_LEVEL = 44; -pub const POWER_INFORMATION_LEVEL_GetPowerRequestList: POWER_INFORMATION_LEVEL = 45; -pub const POWER_INFORMATION_LEVEL_ProcessorInformationEx: POWER_INFORMATION_LEVEL = 46; -pub const POWER_INFORMATION_LEVEL_NotifyUserModeLegacyPowerEvent: POWER_INFORMATION_LEVEL = 47; -pub const POWER_INFORMATION_LEVEL_GroupPark: POWER_INFORMATION_LEVEL = 48; -pub const POWER_INFORMATION_LEVEL_ProcessorIdleDomains: POWER_INFORMATION_LEVEL = 49; -pub const POWER_INFORMATION_LEVEL_WakeTimerList: POWER_INFORMATION_LEVEL = 50; -pub const POWER_INFORMATION_LEVEL_SystemHiberFileSize: POWER_INFORMATION_LEVEL = 51; -pub const POWER_INFORMATION_LEVEL_ProcessorIdleStatesHv: POWER_INFORMATION_LEVEL = 52; -pub const POWER_INFORMATION_LEVEL_ProcessorPerfStatesHv: POWER_INFORMATION_LEVEL = 53; -pub const POWER_INFORMATION_LEVEL_ProcessorPerfCapHv: POWER_INFORMATION_LEVEL = 54; -pub const POWER_INFORMATION_LEVEL_ProcessorSetIdle: POWER_INFORMATION_LEVEL = 55; -pub const POWER_INFORMATION_LEVEL_LogicalProcessorIdling: POWER_INFORMATION_LEVEL = 56; -pub const POWER_INFORMATION_LEVEL_UserPresence: POWER_INFORMATION_LEVEL = 57; -pub const POWER_INFORMATION_LEVEL_PowerSettingNotificationName: POWER_INFORMATION_LEVEL = 58; -pub const POWER_INFORMATION_LEVEL_GetPowerSettingValue: POWER_INFORMATION_LEVEL = 59; -pub const POWER_INFORMATION_LEVEL_IdleResiliency: POWER_INFORMATION_LEVEL = 60; -pub const POWER_INFORMATION_LEVEL_SessionRITState: POWER_INFORMATION_LEVEL = 61; -pub const POWER_INFORMATION_LEVEL_SessionConnectNotification: POWER_INFORMATION_LEVEL = 62; -pub const POWER_INFORMATION_LEVEL_SessionPowerCleanup: POWER_INFORMATION_LEVEL = 63; -pub const POWER_INFORMATION_LEVEL_SessionLockState: POWER_INFORMATION_LEVEL = 64; -pub const POWER_INFORMATION_LEVEL_SystemHiberbootState: POWER_INFORMATION_LEVEL = 65; -pub const POWER_INFORMATION_LEVEL_PlatformInformation: POWER_INFORMATION_LEVEL = 66; -pub const POWER_INFORMATION_LEVEL_PdcInvocation: POWER_INFORMATION_LEVEL = 67; -pub const POWER_INFORMATION_LEVEL_MonitorInvocation: POWER_INFORMATION_LEVEL = 68; -pub const POWER_INFORMATION_LEVEL_FirmwareTableInformationRegistered: POWER_INFORMATION_LEVEL = 69; -pub const POWER_INFORMATION_LEVEL_SetShutdownSelectedTime: POWER_INFORMATION_LEVEL = 70; -pub const POWER_INFORMATION_LEVEL_SuspendResumeInvocation: POWER_INFORMATION_LEVEL = 71; -pub const POWER_INFORMATION_LEVEL_PlmPowerRequestCreate: POWER_INFORMATION_LEVEL = 72; -pub const POWER_INFORMATION_LEVEL_ScreenOff: POWER_INFORMATION_LEVEL = 73; -pub const POWER_INFORMATION_LEVEL_CsDeviceNotification: POWER_INFORMATION_LEVEL = 74; -pub const POWER_INFORMATION_LEVEL_PlatformRole: POWER_INFORMATION_LEVEL = 75; -pub const POWER_INFORMATION_LEVEL_LastResumePerformance: POWER_INFORMATION_LEVEL = 76; -pub const POWER_INFORMATION_LEVEL_DisplayBurst: POWER_INFORMATION_LEVEL = 77; -pub const POWER_INFORMATION_LEVEL_ExitLatencySamplingPercentage: POWER_INFORMATION_LEVEL = 78; -pub const POWER_INFORMATION_LEVEL_RegisterSpmPowerSettings: POWER_INFORMATION_LEVEL = 79; -pub const POWER_INFORMATION_LEVEL_PlatformIdleStates: POWER_INFORMATION_LEVEL = 80; -pub const POWER_INFORMATION_LEVEL_ProcessorIdleVeto: POWER_INFORMATION_LEVEL = 81; -pub const POWER_INFORMATION_LEVEL_PlatformIdleVeto: POWER_INFORMATION_LEVEL = 82; -pub const POWER_INFORMATION_LEVEL_SystemBatteryStatePrecise: POWER_INFORMATION_LEVEL = 83; -pub const POWER_INFORMATION_LEVEL_ThermalEvent: POWER_INFORMATION_LEVEL = 84; -pub const POWER_INFORMATION_LEVEL_PowerRequestActionInternal: POWER_INFORMATION_LEVEL = 85; -pub const POWER_INFORMATION_LEVEL_BatteryDeviceState: POWER_INFORMATION_LEVEL = 86; -pub const POWER_INFORMATION_LEVEL_PowerInformationInternal: POWER_INFORMATION_LEVEL = 87; -pub const POWER_INFORMATION_LEVEL_ThermalStandby: POWER_INFORMATION_LEVEL = 88; -pub const POWER_INFORMATION_LEVEL_SystemHiberFileType: POWER_INFORMATION_LEVEL = 89; -pub const POWER_INFORMATION_LEVEL_PhysicalPowerButtonPress: POWER_INFORMATION_LEVEL = 90; -pub const POWER_INFORMATION_LEVEL_QueryPotentialDripsConstraint: POWER_INFORMATION_LEVEL = 91; -pub const POWER_INFORMATION_LEVEL_EnergyTrackerCreate: POWER_INFORMATION_LEVEL = 92; -pub const POWER_INFORMATION_LEVEL_EnergyTrackerQuery: POWER_INFORMATION_LEVEL = 93; -pub const POWER_INFORMATION_LEVEL_UpdateBlackBoxRecorder: POWER_INFORMATION_LEVEL = 94; -pub const POWER_INFORMATION_LEVEL_SessionAllowExternalDmaDevices: POWER_INFORMATION_LEVEL = 95; -pub const POWER_INFORMATION_LEVEL_SendSuspendResumeNotification: POWER_INFORMATION_LEVEL = 96; -pub const POWER_INFORMATION_LEVEL_BlackBoxRecorderDirectAccessBuffer: POWER_INFORMATION_LEVEL = 97; -pub const POWER_INFORMATION_LEVEL_PowerInformationLevelMaximum: POWER_INFORMATION_LEVEL = 98; -pub type POWER_INFORMATION_LEVEL = ::std::os::raw::c_int; -pub const POWER_USER_PRESENCE_TYPE_UserNotPresent: POWER_USER_PRESENCE_TYPE = 0; -pub const POWER_USER_PRESENCE_TYPE_UserPresent: POWER_USER_PRESENCE_TYPE = 1; -pub const POWER_USER_PRESENCE_TYPE_UserUnknown: POWER_USER_PRESENCE_TYPE = 255; -pub type POWER_USER_PRESENCE_TYPE = ::std::os::raw::c_int; -pub type PPOWER_USER_PRESENCE_TYPE = *mut POWER_USER_PRESENCE_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _POWER_USER_PRESENCE { - pub UserPresence: POWER_USER_PRESENCE_TYPE, -} -pub type POWER_USER_PRESENCE = _POWER_USER_PRESENCE; -pub type PPOWER_USER_PRESENCE = *mut _POWER_USER_PRESENCE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _POWER_SESSION_CONNECT { - pub Connected: BOOLEAN, - pub Console: BOOLEAN, -} -pub type POWER_SESSION_CONNECT = _POWER_SESSION_CONNECT; -pub type PPOWER_SESSION_CONNECT = *mut _POWER_SESSION_CONNECT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _POWER_SESSION_TIMEOUTS { - pub InputTimeout: DWORD, - pub DisplayTimeout: DWORD, -} -pub type POWER_SESSION_TIMEOUTS = _POWER_SESSION_TIMEOUTS; -pub type PPOWER_SESSION_TIMEOUTS = *mut _POWER_SESSION_TIMEOUTS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _POWER_SESSION_RIT_STATE { - pub Active: BOOLEAN, - pub LastInputTime: DWORD64, -} -pub type POWER_SESSION_RIT_STATE = _POWER_SESSION_RIT_STATE; -pub type PPOWER_SESSION_RIT_STATE = *mut _POWER_SESSION_RIT_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _POWER_SESSION_WINLOGON { - pub SessionId: DWORD, - pub Console: BOOLEAN, - pub Locked: BOOLEAN, -} -pub type POWER_SESSION_WINLOGON = _POWER_SESSION_WINLOGON; -pub type PPOWER_SESSION_WINLOGON = *mut _POWER_SESSION_WINLOGON; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES { - pub IsAllowed: BOOLEAN, -} -pub type POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES = _POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES; -pub type PPOWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES = *mut _POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _POWER_IDLE_RESILIENCY { - pub CoalescingTimeout: DWORD, - pub IdleResiliencyPeriod: DWORD, -} -pub type POWER_IDLE_RESILIENCY = _POWER_IDLE_RESILIENCY; -pub type PPOWER_IDLE_RESILIENCY = *mut _POWER_IDLE_RESILIENCY; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUnknown: POWER_MONITOR_REQUEST_REASON = - 0; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPowerButton: - POWER_MONITOR_REQUEST_REASON = 1; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonRemoteConnection: - POWER_MONITOR_REQUEST_REASON = 2; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonScMonitorpower: - POWER_MONITOR_REQUEST_REASON = 3; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInput: POWER_MONITOR_REQUEST_REASON = - 4; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonAcDcDisplayBurst: - POWER_MONITOR_REQUEST_REASON = 5; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserDisplayBurst: - POWER_MONITOR_REQUEST_REASON = 6; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPoSetSystemState: - POWER_MONITOR_REQUEST_REASON = 7; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonSetThreadExecutionState: - POWER_MONITOR_REQUEST_REASON = 8; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonFullWake: POWER_MONITOR_REQUEST_REASON = - 9; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonSessionUnlock: - POWER_MONITOR_REQUEST_REASON = 10; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonScreenOffRequest: - POWER_MONITOR_REQUEST_REASON = 11; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonIdleTimeout: - POWER_MONITOR_REQUEST_REASON = 12; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPolicyChange: - POWER_MONITOR_REQUEST_REASON = 13; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonSleepButton: - POWER_MONITOR_REQUEST_REASON = 14; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonLid: POWER_MONITOR_REQUEST_REASON = 15; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonBatteryCountChange: - POWER_MONITOR_REQUEST_REASON = 16; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonGracePeriod: - POWER_MONITOR_REQUEST_REASON = 17; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPnP: POWER_MONITOR_REQUEST_REASON = 18; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonDP: POWER_MONITOR_REQUEST_REASON = 19; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonSxTransition: - POWER_MONITOR_REQUEST_REASON = 20; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonSystemIdle: - POWER_MONITOR_REQUEST_REASON = 21; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonNearProximity: - POWER_MONITOR_REQUEST_REASON = 22; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonThermalStandby: - POWER_MONITOR_REQUEST_REASON = 23; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonResumePdc: POWER_MONITOR_REQUEST_REASON = - 24; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonResumeS4: POWER_MONITOR_REQUEST_REASON = - 25; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonTerminal: POWER_MONITOR_REQUEST_REASON = - 26; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPdcSignal: POWER_MONITOR_REQUEST_REASON = - 27; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonAcDcDisplayBurstSuppressed: - POWER_MONITOR_REQUEST_REASON = 28; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonSystemStateEntered: - POWER_MONITOR_REQUEST_REASON = 29; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonWinrt: POWER_MONITOR_REQUEST_REASON = 30; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputKeyboard: - POWER_MONITOR_REQUEST_REASON = 31; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputMouse: - POWER_MONITOR_REQUEST_REASON = 32; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputTouchpad: - POWER_MONITOR_REQUEST_REASON = 33; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputPen: - POWER_MONITOR_REQUEST_REASON = 34; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputAccelerometer: - POWER_MONITOR_REQUEST_REASON = 35; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputHid: - POWER_MONITOR_REQUEST_REASON = 36; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputPoUserPresent: - POWER_MONITOR_REQUEST_REASON = 37; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputSessionSwitch: - POWER_MONITOR_REQUEST_REASON = 38; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputInitialization: - POWER_MONITOR_REQUEST_REASON = 39; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPdcSignalWindowsMobilePwrNotif: - POWER_MONITOR_REQUEST_REASON = 40; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPdcSignalWindowsMobileShell: - POWER_MONITOR_REQUEST_REASON = 41; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPdcSignalHeyCortana: - POWER_MONITOR_REQUEST_REASON = 42; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPdcSignalHolographicShell: - POWER_MONITOR_REQUEST_REASON = 43; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPdcSignalFingerprint: - POWER_MONITOR_REQUEST_REASON = 44; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonDirectedDrips: - POWER_MONITOR_REQUEST_REASON = 45; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonDim: POWER_MONITOR_REQUEST_REASON = 46; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonBuiltinPanel: - POWER_MONITOR_REQUEST_REASON = 47; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonDisplayRequiredUnDim: - POWER_MONITOR_REQUEST_REASON = 48; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonBatteryCountChangeSuppressed: - POWER_MONITOR_REQUEST_REASON = 49; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonResumeModernStandby: - POWER_MONITOR_REQUEST_REASON = 50; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonTerminalInit: - POWER_MONITOR_REQUEST_REASON = 51; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonPdcSignalSensorsHumanPresence: - POWER_MONITOR_REQUEST_REASON = 52; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonBatteryPreCritical: - POWER_MONITOR_REQUEST_REASON = 53; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonUserInputTouch: - POWER_MONITOR_REQUEST_REASON = 54; -pub const POWER_MONITOR_REQUEST_REASON_MonitorRequestReasonMax: POWER_MONITOR_REQUEST_REASON = 55; -pub type POWER_MONITOR_REQUEST_REASON = ::std::os::raw::c_int; -pub const _POWER_MONITOR_REQUEST_TYPE_MonitorRequestTypeOff: _POWER_MONITOR_REQUEST_TYPE = 0; -pub const _POWER_MONITOR_REQUEST_TYPE_MonitorRequestTypeOnAndPresent: _POWER_MONITOR_REQUEST_TYPE = - 1; -pub const _POWER_MONITOR_REQUEST_TYPE_MonitorRequestTypeToggleOn: _POWER_MONITOR_REQUEST_TYPE = 2; -pub type _POWER_MONITOR_REQUEST_TYPE = ::std::os::raw::c_int; -pub use self::_POWER_MONITOR_REQUEST_TYPE as POWER_MONITOR_REQUEST_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _POWER_MONITOR_INVOCATION { - pub Console: BOOLEAN, - pub RequestReason: POWER_MONITOR_REQUEST_REASON, -} -pub type POWER_MONITOR_INVOCATION = _POWER_MONITOR_INVOCATION; -pub type PPOWER_MONITOR_INVOCATION = *mut _POWER_MONITOR_INVOCATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RESUME_PERFORMANCE { - pub PostTimeMs: DWORD, - pub TotalResumeTimeMs: ULONGLONG, - pub ResumeCompleteTimestamp: ULONGLONG, -} -pub type RESUME_PERFORMANCE = _RESUME_PERFORMANCE; -pub type PRESUME_PERFORMANCE = *mut _RESUME_PERFORMANCE; -pub const SYSTEM_POWER_CONDITION_PoAc: SYSTEM_POWER_CONDITION = 0; -pub const SYSTEM_POWER_CONDITION_PoDc: SYSTEM_POWER_CONDITION = 1; -pub const SYSTEM_POWER_CONDITION_PoHot: SYSTEM_POWER_CONDITION = 2; -pub const SYSTEM_POWER_CONDITION_PoConditionMaximum: SYSTEM_POWER_CONDITION = 3; -pub type SYSTEM_POWER_CONDITION = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SET_POWER_SETTING_VALUE { - pub Version: DWORD, - pub Guid: GUID, - pub PowerCondition: SYSTEM_POWER_CONDITION, - pub DataLength: DWORD, - pub Data: [BYTE; 1usize], -} -pub type PSET_POWER_SETTING_VALUE = *mut SET_POWER_SETTING_VALUE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NOTIFY_USER_POWER_SETTING { - pub Guid: GUID, -} -pub type PNOTIFY_USER_POWER_SETTING = *mut NOTIFY_USER_POWER_SETTING; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _APPLICATIONLAUNCH_SETTING_VALUE { - pub ActivationTime: LARGE_INTEGER, - pub Flags: DWORD, - pub ButtonInstanceID: DWORD, -} -pub type APPLICATIONLAUNCH_SETTING_VALUE = _APPLICATIONLAUNCH_SETTING_VALUE; -pub type PAPPLICATIONLAUNCH_SETTING_VALUE = *mut _APPLICATIONLAUNCH_SETTING_VALUE; -pub const _POWER_PLATFORM_ROLE_PlatformRoleUnspecified: _POWER_PLATFORM_ROLE = 0; -pub const _POWER_PLATFORM_ROLE_PlatformRoleDesktop: _POWER_PLATFORM_ROLE = 1; -pub const _POWER_PLATFORM_ROLE_PlatformRoleMobile: _POWER_PLATFORM_ROLE = 2; -pub const _POWER_PLATFORM_ROLE_PlatformRoleWorkstation: _POWER_PLATFORM_ROLE = 3; -pub const _POWER_PLATFORM_ROLE_PlatformRoleEnterpriseServer: _POWER_PLATFORM_ROLE = 4; -pub const _POWER_PLATFORM_ROLE_PlatformRoleSOHOServer: _POWER_PLATFORM_ROLE = 5; -pub const _POWER_PLATFORM_ROLE_PlatformRoleAppliancePC: _POWER_PLATFORM_ROLE = 6; -pub const _POWER_PLATFORM_ROLE_PlatformRolePerformanceServer: _POWER_PLATFORM_ROLE = 7; -pub const _POWER_PLATFORM_ROLE_PlatformRoleSlate: _POWER_PLATFORM_ROLE = 8; -pub const _POWER_PLATFORM_ROLE_PlatformRoleMaximum: _POWER_PLATFORM_ROLE = 9; -pub type _POWER_PLATFORM_ROLE = ::std::os::raw::c_int; -pub use self::_POWER_PLATFORM_ROLE as POWER_PLATFORM_ROLE; -pub type PPOWER_PLATFORM_ROLE = *mut _POWER_PLATFORM_ROLE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _POWER_PLATFORM_INFORMATION { - pub AoAc: BOOLEAN, -} -pub type POWER_PLATFORM_INFORMATION = _POWER_PLATFORM_INFORMATION; -pub type PPOWER_PLATFORM_INFORMATION = *mut _POWER_PLATFORM_INFORMATION; -pub const POWER_SETTING_ALTITUDE_ALTITUDE_GROUP_POLICY: POWER_SETTING_ALTITUDE = 0; -pub const POWER_SETTING_ALTITUDE_ALTITUDE_USER: POWER_SETTING_ALTITUDE = 1; -pub const POWER_SETTING_ALTITUDE_ALTITUDE_RUNTIME_OVERRIDE: POWER_SETTING_ALTITUDE = 2; -pub const POWER_SETTING_ALTITUDE_ALTITUDE_PROVISIONING: POWER_SETTING_ALTITUDE = 3; -pub const POWER_SETTING_ALTITUDE_ALTITUDE_OEM_CUSTOMIZATION: POWER_SETTING_ALTITUDE = 4; -pub const POWER_SETTING_ALTITUDE_ALTITUDE_INTERNAL_OVERRIDE: POWER_SETTING_ALTITUDE = 5; -pub const POWER_SETTING_ALTITUDE_ALTITUDE_OS_DEFAULT: POWER_SETTING_ALTITUDE = 6; -pub type POWER_SETTING_ALTITUDE = ::std::os::raw::c_int; -pub type PPOWER_SETTING_ALTITUDE = *mut POWER_SETTING_ALTITUDE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BATTERY_REPORTING_SCALE { - pub Granularity: DWORD, - pub Capacity: DWORD, -} -pub type PBATTERY_REPORTING_SCALE = *mut BATTERY_REPORTING_SCALE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_WMI_LEGACY_PERFSTATE { - pub Frequency: DWORD, - pub Flags: DWORD, - pub PercentFrequency: DWORD, -} -pub type PPPM_WMI_LEGACY_PERFSTATE = *mut PPM_WMI_LEGACY_PERFSTATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_WMI_IDLE_STATE { - pub Latency: DWORD, - pub Power: DWORD, - pub TimeCheck: DWORD, - pub PromotePercent: BYTE, - pub DemotePercent: BYTE, - pub StateType: BYTE, - pub Reserved: BYTE, - pub StateFlags: DWORD, - pub Context: DWORD, - pub IdleHandler: DWORD, - pub Reserved1: DWORD, -} -pub type PPPM_WMI_IDLE_STATE = *mut PPM_WMI_IDLE_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_WMI_IDLE_STATES { - pub Type: DWORD, - pub Count: DWORD, - pub TargetState: DWORD, - pub OldState: DWORD, - pub TargetProcessors: DWORD64, - pub State: [PPM_WMI_IDLE_STATE; 1usize], -} -pub type PPPM_WMI_IDLE_STATES = *mut PPM_WMI_IDLE_STATES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_WMI_IDLE_STATES_EX { - pub Type: DWORD, - pub Count: DWORD, - pub TargetState: DWORD, - pub OldState: DWORD, - pub TargetProcessors: PVOID, - pub State: [PPM_WMI_IDLE_STATE; 1usize], -} -pub type PPPM_WMI_IDLE_STATES_EX = *mut PPM_WMI_IDLE_STATES_EX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_WMI_PERF_STATE { - pub Frequency: DWORD, - pub Power: DWORD, - pub PercentFrequency: BYTE, - pub IncreaseLevel: BYTE, - pub DecreaseLevel: BYTE, - pub Type: BYTE, - pub IncreaseTime: DWORD, - pub DecreaseTime: DWORD, - pub Control: DWORD64, - pub Status: DWORD64, - pub HitCount: DWORD, - pub Reserved1: DWORD, - pub Reserved2: DWORD64, - pub Reserved3: DWORD64, -} -pub type PPPM_WMI_PERF_STATE = *mut PPM_WMI_PERF_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_WMI_PERF_STATES { - pub Count: DWORD, - pub MaxFrequency: DWORD, - pub CurrentState: DWORD, - pub MaxPerfState: DWORD, - pub MinPerfState: DWORD, - pub LowestPerfState: DWORD, - pub ThermalConstraint: DWORD, - pub BusyAdjThreshold: BYTE, - pub PolicyType: BYTE, - pub Type: BYTE, - pub Reserved: BYTE, - pub TimerInterval: DWORD, - pub TargetProcessors: DWORD64, - pub PStateHandler: DWORD, - pub PStateContext: DWORD, - pub TStateHandler: DWORD, - pub TStateContext: DWORD, - pub FeedbackHandler: DWORD, - pub Reserved1: DWORD, - pub Reserved2: DWORD64, - pub State: [PPM_WMI_PERF_STATE; 1usize], -} -pub type PPPM_WMI_PERF_STATES = *mut PPM_WMI_PERF_STATES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_WMI_PERF_STATES_EX { - pub Count: DWORD, - pub MaxFrequency: DWORD, - pub CurrentState: DWORD, - pub MaxPerfState: DWORD, - pub MinPerfState: DWORD, - pub LowestPerfState: DWORD, - pub ThermalConstraint: DWORD, - pub BusyAdjThreshold: BYTE, - pub PolicyType: BYTE, - pub Type: BYTE, - pub Reserved: BYTE, - pub TimerInterval: DWORD, - pub TargetProcessors: PVOID, - pub PStateHandler: DWORD, - pub PStateContext: DWORD, - pub TStateHandler: DWORD, - pub TStateContext: DWORD, - pub FeedbackHandler: DWORD, - pub Reserved1: DWORD, - pub Reserved2: DWORD64, - pub State: [PPM_WMI_PERF_STATE; 1usize], -} -pub type PPPM_WMI_PERF_STATES_EX = *mut PPM_WMI_PERF_STATES_EX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_IDLE_STATE_ACCOUNTING { - pub IdleTransitions: DWORD, - pub FailedTransitions: DWORD, - pub InvalidBucketIndex: DWORD, - pub TotalTime: DWORD64, - pub IdleTimeBuckets: [DWORD; 6usize], -} -pub type PPPM_IDLE_STATE_ACCOUNTING = *mut PPM_IDLE_STATE_ACCOUNTING; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_IDLE_ACCOUNTING { - pub StateCount: DWORD, - pub TotalTransitions: DWORD, - pub ResetCount: DWORD, - pub StartTime: DWORD64, - pub State: [PPM_IDLE_STATE_ACCOUNTING; 1usize], -} -pub type PPPM_IDLE_ACCOUNTING = *mut PPM_IDLE_ACCOUNTING; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_IDLE_STATE_BUCKET_EX { - pub TotalTimeUs: DWORD64, - pub MinTimeUs: DWORD, - pub MaxTimeUs: DWORD, - pub Count: DWORD, -} -pub type PPPM_IDLE_STATE_BUCKET_EX = *mut PPM_IDLE_STATE_BUCKET_EX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_IDLE_STATE_ACCOUNTING_EX { - pub TotalTime: DWORD64, - pub IdleTransitions: DWORD, - pub FailedTransitions: DWORD, - pub InvalidBucketIndex: DWORD, - pub MinTimeUs: DWORD, - pub MaxTimeUs: DWORD, - pub CancelledTransitions: DWORD, - pub IdleTimeBuckets: [PPM_IDLE_STATE_BUCKET_EX; 16usize], -} -pub type PPPM_IDLE_STATE_ACCOUNTING_EX = *mut PPM_IDLE_STATE_ACCOUNTING_EX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_IDLE_ACCOUNTING_EX { - pub StateCount: DWORD, - pub TotalTransitions: DWORD, - pub ResetCount: DWORD, - pub AbortCount: DWORD, - pub StartTime: DWORD64, - pub State: [PPM_IDLE_STATE_ACCOUNTING_EX; 1usize], -} -pub type PPPM_IDLE_ACCOUNTING_EX = *mut PPM_IDLE_ACCOUNTING_EX; -extern "C" { - pub static PPM_PERFSTATE_CHANGE_GUID: GUID; -} -extern "C" { - pub static PPM_PERFSTATE_DOMAIN_CHANGE_GUID: GUID; -} -extern "C" { - pub static PPM_IDLESTATE_CHANGE_GUID: GUID; -} -extern "C" { - pub static PPM_PERFSTATES_DATA_GUID: GUID; -} -extern "C" { - pub static PPM_IDLESTATES_DATA_GUID: GUID; -} -extern "C" { - pub static PPM_IDLE_ACCOUNTING_GUID: GUID; -} -extern "C" { - pub static PPM_IDLE_ACCOUNTING_EX_GUID: GUID; -} -extern "C" { - pub static PPM_THERMALCONSTRAINT_GUID: GUID; -} -extern "C" { - pub static PPM_PERFMON_PERFSTATE_GUID: GUID; -} -extern "C" { - pub static PPM_THERMAL_POLICY_CHANGE_GUID: GUID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_PERFSTATE_EVENT { - pub State: DWORD, - pub Status: DWORD, - pub Latency: DWORD, - pub Speed: DWORD, - pub Processor: DWORD, -} -pub type PPPM_PERFSTATE_EVENT = *mut PPM_PERFSTATE_EVENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_PERFSTATE_DOMAIN_EVENT { - pub State: DWORD, - pub Latency: DWORD, - pub Speed: DWORD, - pub Processors: DWORD64, -} -pub type PPPM_PERFSTATE_DOMAIN_EVENT = *mut PPM_PERFSTATE_DOMAIN_EVENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_IDLESTATE_EVENT { - pub NewState: DWORD, - pub OldState: DWORD, - pub Processors: DWORD64, -} -pub type PPPM_IDLESTATE_EVENT = *mut PPM_IDLESTATE_EVENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_THERMALCHANGE_EVENT { - pub ThermalConstraint: DWORD, - pub Processors: DWORD64, -} -pub type PPPM_THERMALCHANGE_EVENT = *mut PPM_THERMALCHANGE_EVENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PPM_THERMAL_POLICY_EVENT { - pub Mode: BYTE, - pub Processors: DWORD64, -} -pub type PPPM_THERMAL_POLICY_EVENT = *mut PPM_THERMAL_POLICY_EVENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct POWER_ACTION_POLICY { - pub Action: POWER_ACTION, - pub Flags: DWORD, - pub EventCode: DWORD, -} -pub type PPOWER_ACTION_POLICY = *mut POWER_ACTION_POLICY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SYSTEM_POWER_LEVEL { - pub Enable: BOOLEAN, - pub Spare: [BYTE; 3usize], - pub BatteryLevel: DWORD, - pub PowerPolicy: POWER_ACTION_POLICY, - pub MinSystemState: SYSTEM_POWER_STATE, -} -pub type PSYSTEM_POWER_LEVEL = *mut SYSTEM_POWER_LEVEL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_POWER_POLICY { - pub Revision: DWORD, - pub PowerButton: POWER_ACTION_POLICY, - pub SleepButton: POWER_ACTION_POLICY, - pub LidClose: POWER_ACTION_POLICY, - pub LidOpenWake: SYSTEM_POWER_STATE, - pub Reserved: DWORD, - pub Idle: POWER_ACTION_POLICY, - pub IdleTimeout: DWORD, - pub IdleSensitivity: BYTE, - pub DynamicThrottle: BYTE, - pub Spare2: [BYTE; 2usize], - pub MinSleep: SYSTEM_POWER_STATE, - pub MaxSleep: SYSTEM_POWER_STATE, - pub ReducedLatencySleep: SYSTEM_POWER_STATE, - pub WinLogonFlags: DWORD, - pub Spare3: DWORD, - pub DozeS4Timeout: DWORD, - pub BroadcastCapacityResolution: DWORD, - pub DischargePolicy: [SYSTEM_POWER_LEVEL; 4usize], - pub VideoTimeout: DWORD, - pub VideoDimDisplay: BOOLEAN, - pub VideoReserved: [DWORD; 3usize], - pub SpindownTimeout: DWORD, - pub OptimizeForPower: BOOLEAN, - pub FanThrottleTolerance: BYTE, - pub ForcedThrottle: BYTE, - pub MinThrottle: BYTE, - pub OverThrottled: POWER_ACTION_POLICY, -} -pub type SYSTEM_POWER_POLICY = _SYSTEM_POWER_POLICY; -pub type PSYSTEM_POWER_POLICY = *mut _SYSTEM_POWER_POLICY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PROCESSOR_IDLESTATE_INFO { - pub TimeCheck: DWORD, - pub DemotePercent: BYTE, - pub PromotePercent: BYTE, - pub Spare: [BYTE; 2usize], -} -pub type PPROCESSOR_IDLESTATE_INFO = *mut PROCESSOR_IDLESTATE_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct PROCESSOR_IDLESTATE_POLICY { - pub Revision: WORD, - pub Flags: PROCESSOR_IDLESTATE_POLICY__bindgen_ty_1, - pub PolicyCount: DWORD, - pub Policy: [PROCESSOR_IDLESTATE_INFO; 3usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union PROCESSOR_IDLESTATE_POLICY__bindgen_ty_1 { - pub AsWORD: WORD, - pub __bindgen_anon_1: PROCESSOR_IDLESTATE_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(2))] -#[derive(Debug, Copy, Clone)] -pub struct PROCESSOR_IDLESTATE_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -} -impl PROCESSOR_IDLESTATE_POLICY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn AllowScaling(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } - } - #[inline] - pub fn set_AllowScaling(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn Disabled(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } - } - #[inline] - pub fn set_Disabled(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 14u8) as u16) } - } - #[inline] - pub fn set_Reserved(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 14u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - AllowScaling: WORD, - Disabled: WORD, - Reserved: WORD, - ) -> __BindgenBitfieldUnit<[u8; 2usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let AllowScaling: u16 = unsafe { ::std::mem::transmute(AllowScaling) }; - AllowScaling as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let Disabled: u16 = unsafe { ::std::mem::transmute(Disabled) }; - Disabled as u64 - }); - __bindgen_bitfield_unit.set(2usize, 14u8, { - let Reserved: u16 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PPROCESSOR_IDLESTATE_POLICY = *mut PROCESSOR_IDLESTATE_POLICY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESSOR_POWER_POLICY_INFO { - pub TimeCheck: DWORD, - pub DemoteLimit: DWORD, - pub PromoteLimit: DWORD, - pub DemotePercent: BYTE, - pub PromotePercent: BYTE, - pub Spare: [BYTE; 2usize], - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _PROCESSOR_POWER_POLICY_INFO { - #[inline] - pub fn AllowDemotion(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_AllowDemotion(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn AllowPromotion(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_AllowPromotion(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } - } - #[inline] - pub fn set_Reserved(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 30u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - AllowDemotion: DWORD, - AllowPromotion: DWORD, - Reserved: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let AllowDemotion: u32 = unsafe { ::std::mem::transmute(AllowDemotion) }; - AllowDemotion as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let AllowPromotion: u32 = unsafe { ::std::mem::transmute(AllowPromotion) }; - AllowPromotion as u64 - }); - __bindgen_bitfield_unit.set(2usize, 30u8, { - let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESSOR_POWER_POLICY_INFO = _PROCESSOR_POWER_POLICY_INFO; -pub type PPROCESSOR_POWER_POLICY_INFO = *mut _PROCESSOR_POWER_POLICY_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESSOR_POWER_POLICY { - pub Revision: DWORD, - pub DynamicThrottle: BYTE, - pub Spare: [BYTE; 3usize], - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, - pub PolicyCount: DWORD, - pub Policy: [PROCESSOR_POWER_POLICY_INFO; 3usize], -} -impl _PROCESSOR_POWER_POLICY { - #[inline] - pub fn DisableCStates(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_DisableCStates(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } - } - #[inline] - pub fn set_Reserved(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 31u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - DisableCStates: DWORD, - Reserved: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let DisableCStates: u32 = unsafe { ::std::mem::transmute(DisableCStates) }; - DisableCStates as u64 - }); - __bindgen_bitfield_unit.set(1usize, 31u8, { - let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PROCESSOR_POWER_POLICY = _PROCESSOR_POWER_POLICY; -pub type PPROCESSOR_POWER_POLICY = *mut _PROCESSOR_POWER_POLICY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct PROCESSOR_PERFSTATE_POLICY { - pub Revision: DWORD, - pub MaxThrottle: BYTE, - pub MinThrottle: BYTE, - pub BusyAdjThreshold: BYTE, - pub __bindgen_anon_1: PROCESSOR_PERFSTATE_POLICY__bindgen_ty_1, - pub TimeCheck: DWORD, - pub IncreaseTime: DWORD, - pub DecreaseTime: DWORD, - pub IncreasePercent: DWORD, - pub DecreasePercent: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union PROCESSOR_PERFSTATE_POLICY__bindgen_ty_1 { - pub Spare: BYTE, - pub Flags: PROCESSOR_PERFSTATE_POLICY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union PROCESSOR_PERFSTATE_POLICY__bindgen_ty_1__bindgen_ty_1 { - pub AsBYTE: BYTE, - pub __bindgen_anon_1: PROCESSOR_PERFSTATE_POLICY__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct PROCESSOR_PERFSTATE_POLICY__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -} -impl PROCESSOR_PERFSTATE_POLICY__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn NoDomainAccounting(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } - } - #[inline] - pub fn set_NoDomainAccounting(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn IncreasePolicy(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u8) } - } - #[inline] - pub fn set_IncreasePolicy(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 2u8, val as u64) - } - } - #[inline] - pub fn DecreasePolicy(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 2u8) as u8) } - } - #[inline] - pub fn set_DecreasePolicy(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 2u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u8) } - } - #[inline] - pub fn set_Reserved(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 3u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - NoDomainAccounting: BYTE, - IncreasePolicy: BYTE, - DecreasePolicy: BYTE, - Reserved: BYTE, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let NoDomainAccounting: u8 = unsafe { ::std::mem::transmute(NoDomainAccounting) }; - NoDomainAccounting as u64 - }); - __bindgen_bitfield_unit.set(1usize, 2u8, { - let IncreasePolicy: u8 = unsafe { ::std::mem::transmute(IncreasePolicy) }; - IncreasePolicy as u64 - }); - __bindgen_bitfield_unit.set(3usize, 2u8, { - let DecreasePolicy: u8 = unsafe { ::std::mem::transmute(DecreasePolicy) }; - DecreasePolicy as u64 - }); - __bindgen_bitfield_unit.set(5usize, 3u8, { - let Reserved: u8 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PPROCESSOR_PERFSTATE_POLICY = *mut PROCESSOR_PERFSTATE_POLICY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ADMINISTRATOR_POWER_POLICY { - pub MinSleep: SYSTEM_POWER_STATE, - pub MaxSleep: SYSTEM_POWER_STATE, - pub MinVideoTimeout: DWORD, - pub MaxVideoTimeout: DWORD, - pub MinSpindownTimeout: DWORD, - pub MaxSpindownTimeout: DWORD, -} -pub type ADMINISTRATOR_POWER_POLICY = _ADMINISTRATOR_POWER_POLICY; -pub type PADMINISTRATOR_POWER_POLICY = *mut _ADMINISTRATOR_POWER_POLICY; -pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucket1GB: _HIBERFILE_BUCKET_SIZE = 0; -pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucket2GB: _HIBERFILE_BUCKET_SIZE = 1; -pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucket4GB: _HIBERFILE_BUCKET_SIZE = 2; -pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucket8GB: _HIBERFILE_BUCKET_SIZE = 3; -pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucket16GB: _HIBERFILE_BUCKET_SIZE = 4; -pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucket32GB: _HIBERFILE_BUCKET_SIZE = 5; -pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucketUnlimited: _HIBERFILE_BUCKET_SIZE = 6; -pub const _HIBERFILE_BUCKET_SIZE_HiberFileBucketMax: _HIBERFILE_BUCKET_SIZE = 7; -pub type _HIBERFILE_BUCKET_SIZE = ::std::os::raw::c_int; -pub use self::_HIBERFILE_BUCKET_SIZE as HIBERFILE_BUCKET_SIZE; -pub type PHIBERFILE_BUCKET_SIZE = *mut _HIBERFILE_BUCKET_SIZE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _HIBERFILE_BUCKET { - pub MaxPhysicalMemory: DWORD64, - pub PhysicalMemoryPercent: [DWORD; 3usize], -} -pub type HIBERFILE_BUCKET = _HIBERFILE_BUCKET; -pub type PHIBERFILE_BUCKET = *mut _HIBERFILE_BUCKET; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SYSTEM_POWER_CAPABILITIES { - pub PowerButtonPresent: BOOLEAN, - pub SleepButtonPresent: BOOLEAN, - pub LidPresent: BOOLEAN, - pub SystemS1: BOOLEAN, - pub SystemS2: BOOLEAN, - pub SystemS3: BOOLEAN, - pub SystemS4: BOOLEAN, - pub SystemS5: BOOLEAN, - pub HiberFilePresent: BOOLEAN, - pub FullWake: BOOLEAN, - pub VideoDimPresent: BOOLEAN, - pub ApmPresent: BOOLEAN, - pub UpsPresent: BOOLEAN, - pub ThermalControl: BOOLEAN, - pub ProcessorThrottle: BOOLEAN, - pub ProcessorMinThrottle: BYTE, - pub ProcessorMaxThrottle: BYTE, - pub FastSystemS4: BOOLEAN, - pub Hiberboot: BOOLEAN, - pub WakeAlarmPresent: BOOLEAN, - pub AoAc: BOOLEAN, - pub DiskSpinDown: BOOLEAN, - pub HiberFileType: BYTE, - pub AoAcConnectivitySupported: BOOLEAN, - pub spare3: [BYTE; 6usize], - pub SystemBatteriesPresent: BOOLEAN, - pub BatteriesAreShortTerm: BOOLEAN, - pub BatteryScale: [BATTERY_REPORTING_SCALE; 3usize], - pub AcOnLineWake: SYSTEM_POWER_STATE, - pub SoftLidWake: SYSTEM_POWER_STATE, - pub RtcWake: SYSTEM_POWER_STATE, - pub MinDeviceWakeState: SYSTEM_POWER_STATE, - pub DefaultLowLatencyWake: SYSTEM_POWER_STATE, -} -pub type PSYSTEM_POWER_CAPABILITIES = *mut SYSTEM_POWER_CAPABILITIES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SYSTEM_BATTERY_STATE { - pub AcOnLine: BOOLEAN, - pub BatteryPresent: BOOLEAN, - pub Charging: BOOLEAN, - pub Discharging: BOOLEAN, - pub Spare1: [BOOLEAN; 3usize], - pub Tag: BYTE, - pub MaxCapacity: DWORD, - pub RemainingCapacity: DWORD, - pub Rate: DWORD, - pub EstimatedTime: DWORD, - pub DefaultAlert1: DWORD, - pub DefaultAlert2: DWORD, -} -pub type PSYSTEM_BATTERY_STATE = *mut SYSTEM_BATTERY_STATE; -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_DOS_HEADER { - pub e_magic: WORD, - pub e_cblp: WORD, - pub e_cp: WORD, - pub e_crlc: WORD, - pub e_cparhdr: WORD, - pub e_minalloc: WORD, - pub e_maxalloc: WORD, - pub e_ss: WORD, - pub e_sp: WORD, - pub e_csum: WORD, - pub e_ip: WORD, - pub e_cs: WORD, - pub e_lfarlc: WORD, - pub e_ovno: WORD, - pub e_res: [WORD; 4usize], - pub e_oemid: WORD, - pub e_oeminfo: WORD, - pub e_res2: [WORD; 10usize], - pub e_lfanew: LONG, -} -pub type IMAGE_DOS_HEADER = _IMAGE_DOS_HEADER; -pub type PIMAGE_DOS_HEADER = *mut _IMAGE_DOS_HEADER; -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_OS2_HEADER { - pub ne_magic: WORD, - pub ne_ver: CHAR, - pub ne_rev: CHAR, - pub ne_enttab: WORD, - pub ne_cbenttab: WORD, - pub ne_crc: LONG, - pub ne_flags: WORD, - pub ne_autodata: WORD, - pub ne_heap: WORD, - pub ne_stack: WORD, - pub ne_csip: LONG, - pub ne_sssp: LONG, - pub ne_cseg: WORD, - pub ne_cmod: WORD, - pub ne_cbnrestab: WORD, - pub ne_segtab: WORD, - pub ne_rsrctab: WORD, - pub ne_restab: WORD, - pub ne_modtab: WORD, - pub ne_imptab: WORD, - pub ne_nrestab: LONG, - pub ne_cmovent: WORD, - pub ne_align: WORD, - pub ne_cres: WORD, - pub ne_exetyp: BYTE, - pub ne_flagsothers: BYTE, - pub ne_pretthunks: WORD, - pub ne_psegrefbytes: WORD, - pub ne_swaparea: WORD, - pub ne_expver: WORD, -} -pub type IMAGE_OS2_HEADER = _IMAGE_OS2_HEADER; -pub type PIMAGE_OS2_HEADER = *mut _IMAGE_OS2_HEADER; -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_VXD_HEADER { - pub e32_magic: WORD, - pub e32_border: BYTE, - pub e32_worder: BYTE, - pub e32_level: DWORD, - pub e32_cpu: WORD, - pub e32_os: WORD, - pub e32_ver: DWORD, - pub e32_mflags: DWORD, - pub e32_mpages: DWORD, - pub e32_startobj: DWORD, - pub e32_eip: DWORD, - pub e32_stackobj: DWORD, - pub e32_esp: DWORD, - pub e32_pagesize: DWORD, - pub e32_lastpagesize: DWORD, - pub e32_fixupsize: DWORD, - pub e32_fixupsum: DWORD, - pub e32_ldrsize: DWORD, - pub e32_ldrsum: DWORD, - pub e32_objtab: DWORD, - pub e32_objcnt: DWORD, - pub e32_objmap: DWORD, - pub e32_itermap: DWORD, - pub e32_rsrctab: DWORD, - pub e32_rsrccnt: DWORD, - pub e32_restab: DWORD, - pub e32_enttab: DWORD, - pub e32_dirtab: DWORD, - pub e32_dircnt: DWORD, - pub e32_fpagetab: DWORD, - pub e32_frectab: DWORD, - pub e32_impmod: DWORD, - pub e32_impmodcnt: DWORD, - pub e32_impproc: DWORD, - pub e32_pagesum: DWORD, - pub e32_datapage: DWORD, - pub e32_preload: DWORD, - pub e32_nrestab: DWORD, - pub e32_cbnrestab: DWORD, - pub e32_nressum: DWORD, - pub e32_autodata: DWORD, - pub e32_debuginfo: DWORD, - pub e32_debuglen: DWORD, - pub e32_instpreload: DWORD, - pub e32_instdemand: DWORD, - pub e32_heapsize: DWORD, - pub e32_res3: [BYTE; 12usize], - pub e32_winresoff: DWORD, - pub e32_winreslen: DWORD, - pub e32_devid: WORD, - pub e32_ddkver: WORD, -} -pub type IMAGE_VXD_HEADER = _IMAGE_VXD_HEADER; -pub type PIMAGE_VXD_HEADER = *mut _IMAGE_VXD_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_FILE_HEADER { - pub Machine: WORD, - pub NumberOfSections: WORD, - pub TimeDateStamp: DWORD, - pub PointerToSymbolTable: DWORD, - pub NumberOfSymbols: DWORD, - pub SizeOfOptionalHeader: WORD, - pub Characteristics: WORD, -} -pub type IMAGE_FILE_HEADER = _IMAGE_FILE_HEADER; -pub type PIMAGE_FILE_HEADER = *mut _IMAGE_FILE_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_DATA_DIRECTORY { - pub VirtualAddress: DWORD, - pub Size: DWORD, -} -pub type IMAGE_DATA_DIRECTORY = _IMAGE_DATA_DIRECTORY; -pub type PIMAGE_DATA_DIRECTORY = *mut _IMAGE_DATA_DIRECTORY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_OPTIONAL_HEADER { - pub Magic: WORD, - pub MajorLinkerVersion: BYTE, - pub MinorLinkerVersion: BYTE, - pub SizeOfCode: DWORD, - pub SizeOfInitializedData: DWORD, - pub SizeOfUninitializedData: DWORD, - pub AddressOfEntryPoint: DWORD, - pub BaseOfCode: DWORD, - pub BaseOfData: DWORD, - pub ImageBase: DWORD, - pub SectionAlignment: DWORD, - pub FileAlignment: DWORD, - pub MajorOperatingSystemVersion: WORD, - pub MinorOperatingSystemVersion: WORD, - pub MajorImageVersion: WORD, - pub MinorImageVersion: WORD, - pub MajorSubsystemVersion: WORD, - pub MinorSubsystemVersion: WORD, - pub Win32VersionValue: DWORD, - pub SizeOfImage: DWORD, - pub SizeOfHeaders: DWORD, - pub CheckSum: DWORD, - pub Subsystem: WORD, - pub DllCharacteristics: WORD, - pub SizeOfStackReserve: DWORD, - pub SizeOfStackCommit: DWORD, - pub SizeOfHeapReserve: DWORD, - pub SizeOfHeapCommit: DWORD, - pub LoaderFlags: DWORD, - pub NumberOfRvaAndSizes: DWORD, - pub DataDirectory: [IMAGE_DATA_DIRECTORY; 16usize], -} -pub type IMAGE_OPTIONAL_HEADER32 = _IMAGE_OPTIONAL_HEADER; -pub type PIMAGE_OPTIONAL_HEADER32 = *mut _IMAGE_OPTIONAL_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_ROM_OPTIONAL_HEADER { - pub Magic: WORD, - pub MajorLinkerVersion: BYTE, - pub MinorLinkerVersion: BYTE, - pub SizeOfCode: DWORD, - pub SizeOfInitializedData: DWORD, - pub SizeOfUninitializedData: DWORD, - pub AddressOfEntryPoint: DWORD, - pub BaseOfCode: DWORD, - pub BaseOfData: DWORD, - pub BaseOfBss: DWORD, - pub GprMask: DWORD, - pub CprMask: [DWORD; 4usize], - pub GpValue: DWORD, -} -pub type IMAGE_ROM_OPTIONAL_HEADER = _IMAGE_ROM_OPTIONAL_HEADER; -pub type PIMAGE_ROM_OPTIONAL_HEADER = *mut _IMAGE_ROM_OPTIONAL_HEADER; -#[repr(C, packed(4))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_OPTIONAL_HEADER64 { - pub Magic: WORD, - pub MajorLinkerVersion: BYTE, - pub MinorLinkerVersion: BYTE, - pub SizeOfCode: DWORD, - pub SizeOfInitializedData: DWORD, - pub SizeOfUninitializedData: DWORD, - pub AddressOfEntryPoint: DWORD, - pub BaseOfCode: DWORD, - pub ImageBase: ULONGLONG, - pub SectionAlignment: DWORD, - pub FileAlignment: DWORD, - pub MajorOperatingSystemVersion: WORD, - pub MinorOperatingSystemVersion: WORD, - pub MajorImageVersion: WORD, - pub MinorImageVersion: WORD, - pub MajorSubsystemVersion: WORD, - pub MinorSubsystemVersion: WORD, - pub Win32VersionValue: DWORD, - pub SizeOfImage: DWORD, - pub SizeOfHeaders: DWORD, - pub CheckSum: DWORD, - pub Subsystem: WORD, - pub DllCharacteristics: WORD, - pub SizeOfStackReserve: ULONGLONG, - pub SizeOfStackCommit: ULONGLONG, - pub SizeOfHeapReserve: ULONGLONG, - pub SizeOfHeapCommit: ULONGLONG, - pub LoaderFlags: DWORD, - pub NumberOfRvaAndSizes: DWORD, - pub DataDirectory: [IMAGE_DATA_DIRECTORY; 16usize], -} -pub type IMAGE_OPTIONAL_HEADER64 = _IMAGE_OPTIONAL_HEADER64; -pub type PIMAGE_OPTIONAL_HEADER64 = *mut _IMAGE_OPTIONAL_HEADER64; -pub type IMAGE_OPTIONAL_HEADER = IMAGE_OPTIONAL_HEADER64; -pub type PIMAGE_OPTIONAL_HEADER = PIMAGE_OPTIONAL_HEADER64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_NT_HEADERS64 { - pub Signature: DWORD, - pub FileHeader: IMAGE_FILE_HEADER, - pub OptionalHeader: IMAGE_OPTIONAL_HEADER64, -} -pub type IMAGE_NT_HEADERS64 = _IMAGE_NT_HEADERS64; -pub type PIMAGE_NT_HEADERS64 = *mut _IMAGE_NT_HEADERS64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_NT_HEADERS { - pub Signature: DWORD, - pub FileHeader: IMAGE_FILE_HEADER, - pub OptionalHeader: IMAGE_OPTIONAL_HEADER32, -} -pub type IMAGE_NT_HEADERS32 = _IMAGE_NT_HEADERS; -pub type PIMAGE_NT_HEADERS32 = *mut _IMAGE_NT_HEADERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_ROM_HEADERS { - pub FileHeader: IMAGE_FILE_HEADER, - pub OptionalHeader: IMAGE_ROM_OPTIONAL_HEADER, -} -pub type IMAGE_ROM_HEADERS = _IMAGE_ROM_HEADERS; -pub type PIMAGE_ROM_HEADERS = *mut _IMAGE_ROM_HEADERS; -pub type IMAGE_NT_HEADERS = IMAGE_NT_HEADERS64; -pub type PIMAGE_NT_HEADERS = PIMAGE_NT_HEADERS64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ANON_OBJECT_HEADER { - pub Sig1: WORD, - pub Sig2: WORD, - pub Version: WORD, - pub Machine: WORD, - pub TimeDateStamp: DWORD, - pub ClassID: CLSID, - pub SizeOfData: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ANON_OBJECT_HEADER_V2 { - pub Sig1: WORD, - pub Sig2: WORD, - pub Version: WORD, - pub Machine: WORD, - pub TimeDateStamp: DWORD, - pub ClassID: CLSID, - pub SizeOfData: DWORD, - pub Flags: DWORD, - pub MetaDataSize: DWORD, - pub MetaDataOffset: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ANON_OBJECT_HEADER_BIGOBJ { - pub Sig1: WORD, - pub Sig2: WORD, - pub Version: WORD, - pub Machine: WORD, - pub TimeDateStamp: DWORD, - pub ClassID: CLSID, - pub SizeOfData: DWORD, - pub Flags: DWORD, - pub MetaDataSize: DWORD, - pub MetaDataOffset: DWORD, - pub NumberOfSections: DWORD, - pub PointerToSymbolTable: DWORD, - pub NumberOfSymbols: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _IMAGE_SECTION_HEADER { - pub Name: [BYTE; 8usize], - pub Misc: _IMAGE_SECTION_HEADER__bindgen_ty_1, - pub VirtualAddress: DWORD, - pub SizeOfRawData: DWORD, - pub PointerToRawData: DWORD, - pub PointerToRelocations: DWORD, - pub PointerToLinenumbers: DWORD, - pub NumberOfRelocations: WORD, - pub NumberOfLinenumbers: WORD, - pub Characteristics: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_SECTION_HEADER__bindgen_ty_1 { - pub PhysicalAddress: DWORD, - pub VirtualSize: DWORD, -} -pub type IMAGE_SECTION_HEADER = _IMAGE_SECTION_HEADER; -pub type PIMAGE_SECTION_HEADER = *mut _IMAGE_SECTION_HEADER; -#[repr(C, packed(2))] -#[derive(Copy, Clone)] -pub struct _IMAGE_SYMBOL { - pub N: _IMAGE_SYMBOL__bindgen_ty_1, - pub Value: DWORD, - pub SectionNumber: SHORT, - pub Type: WORD, - pub StorageClass: BYTE, - pub NumberOfAuxSymbols: BYTE, -} -#[repr(C, packed(2))] -#[derive(Copy, Clone)] -pub union _IMAGE_SYMBOL__bindgen_ty_1 { - pub ShortName: [BYTE; 8usize], - pub Name: _IMAGE_SYMBOL__bindgen_ty_1__bindgen_ty_1, - pub LongName: [DWORD; 2usize], -} -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_SYMBOL__bindgen_ty_1__bindgen_ty_1 { - pub Short: DWORD, - pub Long: DWORD, -} -pub type IMAGE_SYMBOL = _IMAGE_SYMBOL; -pub type PIMAGE_SYMBOL = *mut IMAGE_SYMBOL; -#[repr(C, packed(2))] -#[derive(Copy, Clone)] -pub struct _IMAGE_SYMBOL_EX { - pub N: _IMAGE_SYMBOL_EX__bindgen_ty_1, - pub Value: DWORD, - pub SectionNumber: LONG, - pub Type: WORD, - pub StorageClass: BYTE, - pub NumberOfAuxSymbols: BYTE, -} -#[repr(C, packed(2))] -#[derive(Copy, Clone)] -pub union _IMAGE_SYMBOL_EX__bindgen_ty_1 { - pub ShortName: [BYTE; 8usize], - pub Name: _IMAGE_SYMBOL_EX__bindgen_ty_1__bindgen_ty_1, - pub LongName: [DWORD; 2usize], -} -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_SYMBOL_EX__bindgen_ty_1__bindgen_ty_1 { - pub Short: DWORD, - pub Long: DWORD, -} -pub type IMAGE_SYMBOL_EX = _IMAGE_SYMBOL_EX; -pub type PIMAGE_SYMBOL_EX = *mut IMAGE_SYMBOL_EX; -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct IMAGE_AUX_SYMBOL_TOKEN_DEF { - pub bAuxType: BYTE, - pub bReserved: BYTE, - pub SymbolTableIndex: DWORD, - pub rgbReserved: [BYTE; 12usize], -} -pub type PIMAGE_AUX_SYMBOL_TOKEN_DEF = *mut IMAGE_AUX_SYMBOL_TOKEN_DEF; -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_AUX_SYMBOL { - pub Sym: _IMAGE_AUX_SYMBOL__bindgen_ty_1, - pub File: _IMAGE_AUX_SYMBOL__bindgen_ty_2, - pub Section: _IMAGE_AUX_SYMBOL__bindgen_ty_3, - pub TokenDef: IMAGE_AUX_SYMBOL_TOKEN_DEF, - pub CRC: _IMAGE_AUX_SYMBOL__bindgen_ty_4, -} -#[repr(C, packed(2))] -#[derive(Copy, Clone)] -pub struct _IMAGE_AUX_SYMBOL__bindgen_ty_1 { - pub TagIndex: DWORD, - pub Misc: _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_1, - pub FcnAry: _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_2, - pub TvIndex: WORD, -} -#[repr(C, packed(2))] -#[derive(Copy, Clone)] -pub union _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_1 { - pub LnSz: _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, - pub TotalSize: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { - pub Linenumber: WORD, - pub Size: WORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_2 { - pub Function: _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, - pub Array: _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_2__bindgen_ty_2, -} -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 { - pub PointerToLinenumber: DWORD, - pub PointerToNextFunction: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_AUX_SYMBOL__bindgen_ty_1__bindgen_ty_2__bindgen_ty_2 { - pub Dimension: [WORD; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_AUX_SYMBOL__bindgen_ty_2 { - pub Name: [BYTE; 18usize], -} -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_AUX_SYMBOL__bindgen_ty_3 { - pub Length: DWORD, - pub NumberOfRelocations: WORD, - pub NumberOfLinenumbers: WORD, - pub CheckSum: DWORD, - pub Number: SHORT, - pub Selection: BYTE, - pub bReserved: BYTE, - pub HighNumber: SHORT, -} -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_AUX_SYMBOL__bindgen_ty_4 { - pub crc: DWORD, - pub rgbReserved: [BYTE; 14usize], -} -pub type IMAGE_AUX_SYMBOL = _IMAGE_AUX_SYMBOL; -pub type PIMAGE_AUX_SYMBOL = *mut IMAGE_AUX_SYMBOL; -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_AUX_SYMBOL_EX { - pub Sym: _IMAGE_AUX_SYMBOL_EX__bindgen_ty_1, - pub File: _IMAGE_AUX_SYMBOL_EX__bindgen_ty_2, - pub Section: _IMAGE_AUX_SYMBOL_EX__bindgen_ty_3, - pub __bindgen_anon_1: _IMAGE_AUX_SYMBOL_EX__bindgen_ty_4, - pub CRC: _IMAGE_AUX_SYMBOL_EX__bindgen_ty_5, -} -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_AUX_SYMBOL_EX__bindgen_ty_1 { - pub WeakDefaultSymIndex: DWORD, - pub WeakSearchType: DWORD, - pub rgbReserved: [BYTE; 12usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_AUX_SYMBOL_EX__bindgen_ty_2 { - pub Name: [BYTE; 20usize], -} -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_AUX_SYMBOL_EX__bindgen_ty_3 { - pub Length: DWORD, - pub NumberOfRelocations: WORD, - pub NumberOfLinenumbers: WORD, - pub CheckSum: DWORD, - pub Number: SHORT, - pub Selection: BYTE, - pub bReserved: BYTE, - pub HighNumber: SHORT, - pub rgbReserved: [BYTE; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_AUX_SYMBOL_EX__bindgen_ty_4 { - pub TokenDef: IMAGE_AUX_SYMBOL_TOKEN_DEF, - pub rgbReserved: [BYTE; 2usize], -} -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_AUX_SYMBOL_EX__bindgen_ty_5 { - pub crc: DWORD, - pub rgbReserved: [BYTE; 16usize], -} -pub type IMAGE_AUX_SYMBOL_EX = _IMAGE_AUX_SYMBOL_EX; -pub type PIMAGE_AUX_SYMBOL_EX = *mut IMAGE_AUX_SYMBOL_EX; -pub const IMAGE_AUX_SYMBOL_TYPE_IMAGE_AUX_SYMBOL_TYPE_TOKEN_DEF: IMAGE_AUX_SYMBOL_TYPE = 1; -pub type IMAGE_AUX_SYMBOL_TYPE = ::std::os::raw::c_int; -#[repr(C, packed(2))] -#[derive(Copy, Clone)] -pub struct _IMAGE_RELOCATION { - pub __bindgen_anon_1: _IMAGE_RELOCATION__bindgen_ty_1, - pub SymbolTableIndex: DWORD, - pub Type: WORD, -} -#[repr(C, packed(2))] -#[derive(Copy, Clone)] -pub union _IMAGE_RELOCATION__bindgen_ty_1 { - pub VirtualAddress: DWORD, - pub RelocCount: DWORD, -} -pub type IMAGE_RELOCATION = _IMAGE_RELOCATION; -pub type PIMAGE_RELOCATION = *mut IMAGE_RELOCATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _IMAGE_LINENUMBER { - pub Type: _IMAGE_LINENUMBER__bindgen_ty_1, - pub Linenumber: WORD, -} -#[repr(C, packed(2))] -#[derive(Copy, Clone)] -pub union _IMAGE_LINENUMBER__bindgen_ty_1 { - pub SymbolTableIndex: DWORD, - pub VirtualAddress: DWORD, -} -pub type IMAGE_LINENUMBER = _IMAGE_LINENUMBER; -pub type PIMAGE_LINENUMBER = *mut IMAGE_LINENUMBER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_BASE_RELOCATION { - pub VirtualAddress: DWORD, - pub SizeOfBlock: DWORD, -} -pub type IMAGE_BASE_RELOCATION = _IMAGE_BASE_RELOCATION; -pub type PIMAGE_BASE_RELOCATION = *mut IMAGE_BASE_RELOCATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_ARCHIVE_MEMBER_HEADER { - pub Name: [BYTE; 16usize], - pub Date: [BYTE; 12usize], - pub UserID: [BYTE; 6usize], - pub GroupID: [BYTE; 6usize], - pub Mode: [BYTE; 8usize], - pub Size: [BYTE; 10usize], - pub EndHeader: [BYTE; 2usize], -} -pub type IMAGE_ARCHIVE_MEMBER_HEADER = _IMAGE_ARCHIVE_MEMBER_HEADER; -pub type PIMAGE_ARCHIVE_MEMBER_HEADER = *mut _IMAGE_ARCHIVE_MEMBER_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_EXPORT_DIRECTORY { - pub Characteristics: DWORD, - pub TimeDateStamp: DWORD, - pub MajorVersion: WORD, - pub MinorVersion: WORD, - pub Name: DWORD, - pub Base: DWORD, - pub NumberOfFunctions: DWORD, - pub NumberOfNames: DWORD, - pub AddressOfFunctions: DWORD, - pub AddressOfNames: DWORD, - pub AddressOfNameOrdinals: DWORD, -} -pub type IMAGE_EXPORT_DIRECTORY = _IMAGE_EXPORT_DIRECTORY; -pub type PIMAGE_EXPORT_DIRECTORY = *mut _IMAGE_EXPORT_DIRECTORY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_IMPORT_BY_NAME { - pub Hint: WORD, - pub Name: [CHAR; 1usize], -} -pub type IMAGE_IMPORT_BY_NAME = _IMAGE_IMPORT_BY_NAME; -pub type PIMAGE_IMPORT_BY_NAME = *mut _IMAGE_IMPORT_BY_NAME; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _IMAGE_THUNK_DATA64 { - pub u1: _IMAGE_THUNK_DATA64__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_THUNK_DATA64__bindgen_ty_1 { - pub ForwarderString: ULONGLONG, - pub Function: ULONGLONG, - pub Ordinal: ULONGLONG, - pub AddressOfData: ULONGLONG, -} -pub type IMAGE_THUNK_DATA64 = _IMAGE_THUNK_DATA64; -pub type PIMAGE_THUNK_DATA64 = *mut IMAGE_THUNK_DATA64; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _IMAGE_THUNK_DATA32 { - pub u1: _IMAGE_THUNK_DATA32__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_THUNK_DATA32__bindgen_ty_1 { - pub ForwarderString: DWORD, - pub Function: DWORD, - pub Ordinal: DWORD, - pub AddressOfData: DWORD, -} -pub type IMAGE_THUNK_DATA32 = _IMAGE_THUNK_DATA32; -pub type PIMAGE_THUNK_DATA32 = *mut IMAGE_THUNK_DATA32; -pub type PIMAGE_TLS_CALLBACK = - ::std::option::Option; -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_TLS_DIRECTORY64__bindgen_ty_1 { - pub Characteristics: DWORD, - pub __bindgen_anon_1: _IMAGE_TLS_DIRECTORY64__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_TLS_DIRECTORY64__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _IMAGE_TLS_DIRECTORY64__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn Reserved0(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 20u8) as u32) } - } - #[inline] - pub fn set_Reserved0(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 20u8, val as u64) - } - } - #[inline] - pub fn Alignment(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 4u8) as u32) } - } - #[inline] - pub fn set_Alignment(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(20usize, 4u8, val as u64) - } - } - #[inline] - pub fn Reserved1(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } - } - #[inline] - pub fn set_Reserved1(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(24usize, 8u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - Reserved0: DWORD, - Alignment: DWORD, - Reserved1: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 20u8, { - let Reserved0: u32 = unsafe { ::std::mem::transmute(Reserved0) }; - Reserved0 as u64 - }); - __bindgen_bitfield_unit.set(20usize, 4u8, { - let Alignment: u32 = unsafe { ::std::mem::transmute(Alignment) }; - Alignment as u64 - }); - __bindgen_bitfield_unit.set(24usize, 8u8, { - let Reserved1: u32 = unsafe { ::std::mem::transmute(Reserved1) }; - Reserved1 as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _IMAGE_TLS_DIRECTORY32 { - pub StartAddressOfRawData: DWORD, - pub EndAddressOfRawData: DWORD, - pub AddressOfIndex: DWORD, - pub AddressOfCallBacks: DWORD, - pub SizeOfZeroFill: DWORD, - pub __bindgen_anon_1: _IMAGE_TLS_DIRECTORY32__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_TLS_DIRECTORY32__bindgen_ty_1 { - pub Characteristics: DWORD, - pub __bindgen_anon_1: _IMAGE_TLS_DIRECTORY32__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_TLS_DIRECTORY32__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _IMAGE_TLS_DIRECTORY32__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn Reserved0(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 20u8) as u32) } - } - #[inline] - pub fn set_Reserved0(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 20u8, val as u64) - } - } - #[inline] - pub fn Alignment(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 4u8) as u32) } - } - #[inline] - pub fn set_Alignment(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(20usize, 4u8, val as u64) - } - } - #[inline] - pub fn Reserved1(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) } - } - #[inline] - pub fn set_Reserved1(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(24usize, 8u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - Reserved0: DWORD, - Alignment: DWORD, - Reserved1: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 20u8, { - let Reserved0: u32 = unsafe { ::std::mem::transmute(Reserved0) }; - Reserved0 as u64 - }); - __bindgen_bitfield_unit.set(20usize, 4u8, { - let Alignment: u32 = unsafe { ::std::mem::transmute(Alignment) }; - Alignment as u64 - }); - __bindgen_bitfield_unit.set(24usize, 8u8, { - let Reserved1: u32 = unsafe { ::std::mem::transmute(Reserved1) }; - Reserved1 as u64 - }); - __bindgen_bitfield_unit - } -} -pub type IMAGE_TLS_DIRECTORY32 = _IMAGE_TLS_DIRECTORY32; -pub type PIMAGE_TLS_DIRECTORY32 = *mut IMAGE_TLS_DIRECTORY32; -pub type IMAGE_THUNK_DATA = IMAGE_THUNK_DATA64; -pub type PIMAGE_THUNK_DATA = PIMAGE_THUNK_DATA64; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _IMAGE_IMPORT_DESCRIPTOR { - pub __bindgen_anon_1: _IMAGE_IMPORT_DESCRIPTOR__bindgen_ty_1, - pub TimeDateStamp: DWORD, - pub ForwarderChain: DWORD, - pub Name: DWORD, - pub FirstThunk: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_IMPORT_DESCRIPTOR__bindgen_ty_1 { - pub Characteristics: DWORD, - pub OriginalFirstThunk: DWORD, -} -pub type IMAGE_IMPORT_DESCRIPTOR = _IMAGE_IMPORT_DESCRIPTOR; -pub type PIMAGE_IMPORT_DESCRIPTOR = *mut IMAGE_IMPORT_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_BOUND_IMPORT_DESCRIPTOR { - pub TimeDateStamp: DWORD, - pub OffsetModuleName: WORD, - pub NumberOfModuleForwarderRefs: WORD, -} -pub type IMAGE_BOUND_IMPORT_DESCRIPTOR = _IMAGE_BOUND_IMPORT_DESCRIPTOR; -pub type PIMAGE_BOUND_IMPORT_DESCRIPTOR = *mut _IMAGE_BOUND_IMPORT_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_BOUND_FORWARDER_REF { - pub TimeDateStamp: DWORD, - pub OffsetModuleName: WORD, - pub Reserved: WORD, -} -pub type IMAGE_BOUND_FORWARDER_REF = _IMAGE_BOUND_FORWARDER_REF; -pub type PIMAGE_BOUND_FORWARDER_REF = *mut _IMAGE_BOUND_FORWARDER_REF; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _IMAGE_DELAYLOAD_DESCRIPTOR { - pub Attributes: _IMAGE_DELAYLOAD_DESCRIPTOR__bindgen_ty_1, - pub DllNameRVA: DWORD, - pub ModuleHandleRVA: DWORD, - pub ImportAddressTableRVA: DWORD, - pub ImportNameTableRVA: DWORD, - pub BoundImportAddressTableRVA: DWORD, - pub UnloadInformationTableRVA: DWORD, - pub TimeDateStamp: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_DELAYLOAD_DESCRIPTOR__bindgen_ty_1 { - pub AllAttributes: DWORD, - pub __bindgen_anon_1: _IMAGE_DELAYLOAD_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_DELAYLOAD_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _IMAGE_DELAYLOAD_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn RvaBased(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_RvaBased(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn ReservedAttributes(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } - } - #[inline] - pub fn set_ReservedAttributes(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 31u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - RvaBased: DWORD, - ReservedAttributes: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let RvaBased: u32 = unsafe { ::std::mem::transmute(RvaBased) }; - RvaBased as u64 - }); - __bindgen_bitfield_unit.set(1usize, 31u8, { - let ReservedAttributes: u32 = unsafe { ::std::mem::transmute(ReservedAttributes) }; - ReservedAttributes as u64 - }); - __bindgen_bitfield_unit - } -} -pub type IMAGE_DELAYLOAD_DESCRIPTOR = _IMAGE_DELAYLOAD_DESCRIPTOR; -pub type PIMAGE_DELAYLOAD_DESCRIPTOR = *mut _IMAGE_DELAYLOAD_DESCRIPTOR; -pub type PCIMAGE_DELAYLOAD_DESCRIPTOR = *const IMAGE_DELAYLOAD_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_RESOURCE_DIRECTORY { - pub Characteristics: DWORD, - pub TimeDateStamp: DWORD, - pub MajorVersion: WORD, - pub MinorVersion: WORD, - pub NumberOfNamedEntries: WORD, - pub NumberOfIdEntries: WORD, -} -pub type IMAGE_RESOURCE_DIRECTORY = _IMAGE_RESOURCE_DIRECTORY; -pub type PIMAGE_RESOURCE_DIRECTORY = *mut _IMAGE_RESOURCE_DIRECTORY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _IMAGE_RESOURCE_DIRECTORY_ENTRY { - pub __bindgen_anon_1: _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_1, - pub __bindgen_anon_2: _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_1 { - pub __bindgen_anon_1: _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_1__bindgen_ty_1, - pub Name: DWORD, - pub Id: WORD, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn NameOffset(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 31u8) as u32) } - } - #[inline] - pub fn set_NameOffset(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 31u8, val as u64) - } - } - #[inline] - pub fn NameIsString(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) } - } - #[inline] - pub fn set_NameIsString(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(31usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - NameOffset: DWORD, - NameIsString: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 31u8, { - let NameOffset: u32 = unsafe { ::std::mem::transmute(NameOffset) }; - NameOffset as u64 - }); - __bindgen_bitfield_unit.set(31usize, 1u8, { - let NameIsString: u32 = unsafe { ::std::mem::transmute(NameIsString) }; - NameIsString as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_2 { - pub OffsetToData: DWORD, - pub __bindgen_anon_1: _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_2__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_2__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _IMAGE_RESOURCE_DIRECTORY_ENTRY__bindgen_ty_2__bindgen_ty_1 { - #[inline] - pub fn OffsetToDirectory(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 31u8) as u32) } - } - #[inline] - pub fn set_OffsetToDirectory(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 31u8, val as u64) - } - } - #[inline] - pub fn DataIsDirectory(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) } - } - #[inline] - pub fn set_DataIsDirectory(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(31usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - OffsetToDirectory: DWORD, - DataIsDirectory: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 31u8, { - let OffsetToDirectory: u32 = unsafe { ::std::mem::transmute(OffsetToDirectory) }; - OffsetToDirectory as u64 - }); - __bindgen_bitfield_unit.set(31usize, 1u8, { - let DataIsDirectory: u32 = unsafe { ::std::mem::transmute(DataIsDirectory) }; - DataIsDirectory as u64 - }); - __bindgen_bitfield_unit - } -} -pub type IMAGE_RESOURCE_DIRECTORY_ENTRY = _IMAGE_RESOURCE_DIRECTORY_ENTRY; -pub type PIMAGE_RESOURCE_DIRECTORY_ENTRY = *mut _IMAGE_RESOURCE_DIRECTORY_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_RESOURCE_DIRECTORY_STRING { - pub Length: WORD, - pub NameString: [CHAR; 1usize], -} -pub type IMAGE_RESOURCE_DIRECTORY_STRING = _IMAGE_RESOURCE_DIRECTORY_STRING; -pub type PIMAGE_RESOURCE_DIRECTORY_STRING = *mut _IMAGE_RESOURCE_DIRECTORY_STRING; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_RESOURCE_DIR_STRING_U { - pub Length: WORD, - pub NameString: [WCHAR; 1usize], -} -pub type IMAGE_RESOURCE_DIR_STRING_U = _IMAGE_RESOURCE_DIR_STRING_U; -pub type PIMAGE_RESOURCE_DIR_STRING_U = *mut _IMAGE_RESOURCE_DIR_STRING_U; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_RESOURCE_DATA_ENTRY { - pub OffsetToData: DWORD, - pub Size: DWORD, - pub CodePage: DWORD, - pub Reserved: DWORD, -} -pub type IMAGE_RESOURCE_DATA_ENTRY = _IMAGE_RESOURCE_DATA_ENTRY; -pub type PIMAGE_RESOURCE_DATA_ENTRY = *mut _IMAGE_RESOURCE_DATA_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_LOAD_CONFIG_CODE_INTEGRITY { - pub Flags: WORD, - pub Catalog: WORD, - pub CatalogOffset: DWORD, - pub Reserved: DWORD, -} -pub type IMAGE_LOAD_CONFIG_CODE_INTEGRITY = _IMAGE_LOAD_CONFIG_CODE_INTEGRITY; -pub type PIMAGE_LOAD_CONFIG_CODE_INTEGRITY = *mut _IMAGE_LOAD_CONFIG_CODE_INTEGRITY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_DYNAMIC_RELOCATION_TABLE { - pub Version: DWORD, - pub Size: DWORD, -} -pub type IMAGE_DYNAMIC_RELOCATION_TABLE = _IMAGE_DYNAMIC_RELOCATION_TABLE; -pub type PIMAGE_DYNAMIC_RELOCATION_TABLE = *mut _IMAGE_DYNAMIC_RELOCATION_TABLE; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_DYNAMIC_RELOCATION32 { - pub Symbol: DWORD, - pub BaseRelocSize: DWORD, -} -pub type IMAGE_DYNAMIC_RELOCATION32 = _IMAGE_DYNAMIC_RELOCATION32; -pub type PIMAGE_DYNAMIC_RELOCATION32 = *mut _IMAGE_DYNAMIC_RELOCATION32; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_DYNAMIC_RELOCATION64 { - pub Symbol: ULONGLONG, - pub BaseRelocSize: DWORD, -} -pub type IMAGE_DYNAMIC_RELOCATION64 = _IMAGE_DYNAMIC_RELOCATION64; -pub type PIMAGE_DYNAMIC_RELOCATION64 = *mut _IMAGE_DYNAMIC_RELOCATION64; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_DYNAMIC_RELOCATION32_V2 { - pub HeaderSize: DWORD, - pub FixupInfoSize: DWORD, - pub Symbol: DWORD, - pub SymbolGroup: DWORD, - pub Flags: DWORD, -} -pub type IMAGE_DYNAMIC_RELOCATION32_V2 = _IMAGE_DYNAMIC_RELOCATION32_V2; -pub type PIMAGE_DYNAMIC_RELOCATION32_V2 = *mut _IMAGE_DYNAMIC_RELOCATION32_V2; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_DYNAMIC_RELOCATION64_V2 { - pub HeaderSize: DWORD, - pub FixupInfoSize: DWORD, - pub Symbol: ULONGLONG, - pub SymbolGroup: DWORD, - pub Flags: DWORD, -} -pub type IMAGE_DYNAMIC_RELOCATION64_V2 = _IMAGE_DYNAMIC_RELOCATION64_V2; -pub type PIMAGE_DYNAMIC_RELOCATION64_V2 = *mut _IMAGE_DYNAMIC_RELOCATION64_V2; -pub type IMAGE_DYNAMIC_RELOCATION = IMAGE_DYNAMIC_RELOCATION64; -pub type PIMAGE_DYNAMIC_RELOCATION = PIMAGE_DYNAMIC_RELOCATION64; -pub type IMAGE_DYNAMIC_RELOCATION_V2 = IMAGE_DYNAMIC_RELOCATION64_V2; -pub type PIMAGE_DYNAMIC_RELOCATION_V2 = PIMAGE_DYNAMIC_RELOCATION64_V2; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER { - pub PrologueByteCount: BYTE, -} -pub type IMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER = _IMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER; -pub type PIMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER = *mut IMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER { - pub EpilogueCount: DWORD, - pub EpilogueByteCount: BYTE, - pub BranchDescriptorElementSize: BYTE, - pub BranchDescriptorCount: WORD, -} -pub type IMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER = _IMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER; -pub type PIMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER = *mut IMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION { - #[inline] - pub fn PageRelativeOffset(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 12u8) as u32) } - } - #[inline] - pub fn set_PageRelativeOffset(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 12u8, val as u64) - } - } - #[inline] - pub fn IndirectCall(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) } - } - #[inline] - pub fn set_IndirectCall(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(12usize, 1u8, val as u64) - } - } - #[inline] - pub fn IATIndex(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 19u8) as u32) } - } - #[inline] - pub fn set_IATIndex(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(13usize, 19u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - PageRelativeOffset: DWORD, - IndirectCall: DWORD, - IATIndex: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 12u8, { - let PageRelativeOffset: u32 = unsafe { ::std::mem::transmute(PageRelativeOffset) }; - PageRelativeOffset as u64 - }); - __bindgen_bitfield_unit.set(12usize, 1u8, { - let IndirectCall: u32 = unsafe { ::std::mem::transmute(IndirectCall) }; - IndirectCall as u64 - }); - __bindgen_bitfield_unit.set(13usize, 19u8, { - let IATIndex: u32 = unsafe { ::std::mem::transmute(IATIndex) }; - IATIndex as u64 - }); - __bindgen_bitfield_unit - } -} -pub type IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION = - _IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION; -pub type PIMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION = - *mut IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -} -impl _IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION { - #[inline] - pub fn PageRelativeOffset(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 12u8) as u16) } - } - #[inline] - pub fn set_PageRelativeOffset(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 12u8, val as u64) - } - } - #[inline] - pub fn IndirectCall(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } - } - #[inline] - pub fn set_IndirectCall(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(12usize, 1u8, val as u64) - } - } - #[inline] - pub fn RexWPrefix(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } - } - #[inline] - pub fn set_RexWPrefix(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(13usize, 1u8, val as u64) - } - } - #[inline] - pub fn CfgCheck(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } - } - #[inline] - pub fn set_CfgCheck(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(14usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } - } - #[inline] - pub fn set_Reserved(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(15usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - PageRelativeOffset: WORD, - IndirectCall: WORD, - RexWPrefix: WORD, - CfgCheck: WORD, - Reserved: WORD, - ) -> __BindgenBitfieldUnit<[u8; 2usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 12u8, { - let PageRelativeOffset: u16 = unsafe { ::std::mem::transmute(PageRelativeOffset) }; - PageRelativeOffset as u64 - }); - __bindgen_bitfield_unit.set(12usize, 1u8, { - let IndirectCall: u16 = unsafe { ::std::mem::transmute(IndirectCall) }; - IndirectCall as u64 - }); - __bindgen_bitfield_unit.set(13usize, 1u8, { - let RexWPrefix: u16 = unsafe { ::std::mem::transmute(RexWPrefix) }; - RexWPrefix as u64 - }); - __bindgen_bitfield_unit.set(14usize, 1u8, { - let CfgCheck: u16 = unsafe { ::std::mem::transmute(CfgCheck) }; - CfgCheck as u64 - }); - __bindgen_bitfield_unit.set(15usize, 1u8, { - let Reserved: u16 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION = - _IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION; -pub type PIMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION = - *mut IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -} -impl _IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION { - #[inline] - pub fn PageRelativeOffset(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 12u8) as u16) } - } - #[inline] - pub fn set_PageRelativeOffset(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 12u8, val as u64) - } - } - #[inline] - pub fn RegisterNumber(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 4u8) as u16) } - } - #[inline] - pub fn set_RegisterNumber(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(12usize, 4u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - PageRelativeOffset: WORD, - RegisterNumber: WORD, - ) -> __BindgenBitfieldUnit<[u8; 2usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 12u8, { - let PageRelativeOffset: u16 = unsafe { ::std::mem::transmute(PageRelativeOffset) }; - PageRelativeOffset as u64 - }); - __bindgen_bitfield_unit.set(12usize, 4u8, { - let RegisterNumber: u16 = unsafe { ::std::mem::transmute(RegisterNumber) }; - RegisterNumber as u64 - }); - __bindgen_bitfield_unit - } -} -pub type IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION = _IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION; -pub type PIMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION = - *mut IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_FUNCTION_OVERRIDE_HEADER { - pub FuncOverrideSize: DWORD, -} -pub type IMAGE_FUNCTION_OVERRIDE_HEADER = _IMAGE_FUNCTION_OVERRIDE_HEADER; -pub type PIMAGE_FUNCTION_OVERRIDE_HEADER = *mut IMAGE_FUNCTION_OVERRIDE_HEADER; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION { - pub OriginalRva: DWORD, - pub BDDOffset: DWORD, - pub RvaSize: DWORD, - pub BaseRelocSize: DWORD, -} -pub type IMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION = _IMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION; -pub type PIMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION = - *mut IMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_BDD_INFO { - pub Version: DWORD, - pub BDDSize: DWORD, -} -pub type IMAGE_BDD_INFO = _IMAGE_BDD_INFO; -pub type PIMAGE_BDD_INFO = *mut IMAGE_BDD_INFO; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_BDD_DYNAMIC_RELOCATION { - pub Left: WORD, - pub Right: WORD, - pub Value: DWORD, -} -pub type IMAGE_BDD_DYNAMIC_RELOCATION = _IMAGE_BDD_DYNAMIC_RELOCATION; -pub type PIMAGE_BDD_DYNAMIC_RELOCATION = *mut IMAGE_BDD_DYNAMIC_RELOCATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_LOAD_CONFIG_DIRECTORY32 { - pub Size: DWORD, - pub TimeDateStamp: DWORD, - pub MajorVersion: WORD, - pub MinorVersion: WORD, - pub GlobalFlagsClear: DWORD, - pub GlobalFlagsSet: DWORD, - pub CriticalSectionDefaultTimeout: DWORD, - pub DeCommitFreeBlockThreshold: DWORD, - pub DeCommitTotalFreeThreshold: DWORD, - pub LockPrefixTable: DWORD, - pub MaximumAllocationSize: DWORD, - pub VirtualMemoryThreshold: DWORD, - pub ProcessHeapFlags: DWORD, - pub ProcessAffinityMask: DWORD, - pub CSDVersion: WORD, - pub DependentLoadFlags: WORD, - pub EditList: DWORD, - pub SecurityCookie: DWORD, - pub SEHandlerTable: DWORD, - pub SEHandlerCount: DWORD, - pub GuardCFCheckFunctionPointer: DWORD, - pub GuardCFDispatchFunctionPointer: DWORD, - pub GuardCFFunctionTable: DWORD, - pub GuardCFFunctionCount: DWORD, - pub GuardFlags: DWORD, - pub CodeIntegrity: IMAGE_LOAD_CONFIG_CODE_INTEGRITY, - pub GuardAddressTakenIatEntryTable: DWORD, - pub GuardAddressTakenIatEntryCount: DWORD, - pub GuardLongJumpTargetTable: DWORD, - pub GuardLongJumpTargetCount: DWORD, - pub DynamicValueRelocTable: DWORD, - pub CHPEMetadataPointer: DWORD, - pub GuardRFFailureRoutine: DWORD, - pub GuardRFFailureRoutineFunctionPointer: DWORD, - pub DynamicValueRelocTableOffset: DWORD, - pub DynamicValueRelocTableSection: WORD, - pub Reserved2: WORD, - pub GuardRFVerifyStackPointerFunctionPointer: DWORD, - pub HotPatchTableOffset: DWORD, - pub Reserved3: DWORD, - pub EnclaveConfigurationPointer: DWORD, - pub VolatileMetadataPointer: DWORD, - pub GuardEHContinuationTable: DWORD, - pub GuardEHContinuationCount: DWORD, - pub GuardXFGCheckFunctionPointer: DWORD, - pub GuardXFGDispatchFunctionPointer: DWORD, - pub GuardXFGTableDispatchFunctionPointer: DWORD, - pub CastGuardOsDeterminedFailureMode: DWORD, - pub GuardMemcpyFunctionPointer: DWORD, -} -pub type IMAGE_LOAD_CONFIG_DIRECTORY32 = _IMAGE_LOAD_CONFIG_DIRECTORY32; -pub type PIMAGE_LOAD_CONFIG_DIRECTORY32 = *mut _IMAGE_LOAD_CONFIG_DIRECTORY32; -#[repr(C, packed(4))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_LOAD_CONFIG_DIRECTORY64 { - pub Size: DWORD, - pub TimeDateStamp: DWORD, - pub MajorVersion: WORD, - pub MinorVersion: WORD, - pub GlobalFlagsClear: DWORD, - pub GlobalFlagsSet: DWORD, - pub CriticalSectionDefaultTimeout: DWORD, - pub DeCommitFreeBlockThreshold: ULONGLONG, - pub DeCommitTotalFreeThreshold: ULONGLONG, - pub LockPrefixTable: ULONGLONG, - pub MaximumAllocationSize: ULONGLONG, - pub VirtualMemoryThreshold: ULONGLONG, - pub ProcessAffinityMask: ULONGLONG, - pub ProcessHeapFlags: DWORD, - pub CSDVersion: WORD, - pub DependentLoadFlags: WORD, - pub EditList: ULONGLONG, - pub SecurityCookie: ULONGLONG, - pub SEHandlerTable: ULONGLONG, - pub SEHandlerCount: ULONGLONG, - pub GuardCFCheckFunctionPointer: ULONGLONG, - pub GuardCFDispatchFunctionPointer: ULONGLONG, - pub GuardCFFunctionTable: ULONGLONG, - pub GuardCFFunctionCount: ULONGLONG, - pub GuardFlags: DWORD, - pub CodeIntegrity: IMAGE_LOAD_CONFIG_CODE_INTEGRITY, - pub GuardAddressTakenIatEntryTable: ULONGLONG, - pub GuardAddressTakenIatEntryCount: ULONGLONG, - pub GuardLongJumpTargetTable: ULONGLONG, - pub GuardLongJumpTargetCount: ULONGLONG, - pub DynamicValueRelocTable: ULONGLONG, - pub CHPEMetadataPointer: ULONGLONG, - pub GuardRFFailureRoutine: ULONGLONG, - pub GuardRFFailureRoutineFunctionPointer: ULONGLONG, - pub DynamicValueRelocTableOffset: DWORD, - pub DynamicValueRelocTableSection: WORD, - pub Reserved2: WORD, - pub GuardRFVerifyStackPointerFunctionPointer: ULONGLONG, - pub HotPatchTableOffset: DWORD, - pub Reserved3: DWORD, - pub EnclaveConfigurationPointer: ULONGLONG, - pub VolatileMetadataPointer: ULONGLONG, - pub GuardEHContinuationTable: ULONGLONG, - pub GuardEHContinuationCount: ULONGLONG, - pub GuardXFGCheckFunctionPointer: ULONGLONG, - pub GuardXFGDispatchFunctionPointer: ULONGLONG, - pub GuardXFGTableDispatchFunctionPointer: ULONGLONG, - pub CastGuardOsDeterminedFailureMode: ULONGLONG, - pub GuardMemcpyFunctionPointer: ULONGLONG, -} -pub type IMAGE_LOAD_CONFIG_DIRECTORY64 = _IMAGE_LOAD_CONFIG_DIRECTORY64; -pub type PIMAGE_LOAD_CONFIG_DIRECTORY64 = *mut _IMAGE_LOAD_CONFIG_DIRECTORY64; -pub type IMAGE_LOAD_CONFIG_DIRECTORY = IMAGE_LOAD_CONFIG_DIRECTORY64; -pub type PIMAGE_LOAD_CONFIG_DIRECTORY = PIMAGE_LOAD_CONFIG_DIRECTORY64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_HOT_PATCH_INFO { - pub Version: DWORD, - pub Size: DWORD, - pub SequenceNumber: DWORD, - pub BaseImageList: DWORD, - pub BaseImageCount: DWORD, - pub BufferOffset: DWORD, - pub ExtraPatchSize: DWORD, -} -pub type IMAGE_HOT_PATCH_INFO = _IMAGE_HOT_PATCH_INFO; -pub type PIMAGE_HOT_PATCH_INFO = *mut _IMAGE_HOT_PATCH_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_HOT_PATCH_BASE { - pub SequenceNumber: DWORD, - pub Flags: DWORD, - pub OriginalTimeDateStamp: DWORD, - pub OriginalCheckSum: DWORD, - pub CodeIntegrityInfo: DWORD, - pub CodeIntegritySize: DWORD, - pub PatchTable: DWORD, - pub BufferOffset: DWORD, -} -pub type IMAGE_HOT_PATCH_BASE = _IMAGE_HOT_PATCH_BASE; -pub type PIMAGE_HOT_PATCH_BASE = *mut _IMAGE_HOT_PATCH_BASE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_HOT_PATCH_HASHES { - pub SHA256: [BYTE; 32usize], - pub SHA1: [BYTE; 20usize], -} -pub type IMAGE_HOT_PATCH_HASHES = _IMAGE_HOT_PATCH_HASHES; -pub type PIMAGE_HOT_PATCH_HASHES = *mut _IMAGE_HOT_PATCH_HASHES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_CE_RUNTIME_FUNCTION_ENTRY { - pub FuncStart: DWORD, - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _IMAGE_CE_RUNTIME_FUNCTION_ENTRY { - #[inline] - pub fn PrologLen(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) } - } - #[inline] - pub fn set_PrologLen(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 8u8, val as u64) - } - } - #[inline] - pub fn FuncLen(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 22u8) as u32) } - } - #[inline] - pub fn set_FuncLen(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 22u8, val as u64) - } - } - #[inline] - pub fn ThirtyTwoBit(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(30usize, 1u8) as u32) } - } - #[inline] - pub fn set_ThirtyTwoBit(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(30usize, 1u8, val as u64) - } - } - #[inline] - pub fn ExceptionFlag(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) } - } - #[inline] - pub fn set_ExceptionFlag(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(31usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - PrologLen: DWORD, - FuncLen: DWORD, - ThirtyTwoBit: DWORD, - ExceptionFlag: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 8u8, { - let PrologLen: u32 = unsafe { ::std::mem::transmute(PrologLen) }; - PrologLen as u64 - }); - __bindgen_bitfield_unit.set(8usize, 22u8, { - let FuncLen: u32 = unsafe { ::std::mem::transmute(FuncLen) }; - FuncLen as u64 - }); - __bindgen_bitfield_unit.set(30usize, 1u8, { - let ThirtyTwoBit: u32 = unsafe { ::std::mem::transmute(ThirtyTwoBit) }; - ThirtyTwoBit as u64 - }); - __bindgen_bitfield_unit.set(31usize, 1u8, { - let ExceptionFlag: u32 = unsafe { ::std::mem::transmute(ExceptionFlag) }; - ExceptionFlag as u64 - }); - __bindgen_bitfield_unit - } -} -pub type IMAGE_CE_RUNTIME_FUNCTION_ENTRY = _IMAGE_CE_RUNTIME_FUNCTION_ENTRY; -pub type PIMAGE_CE_RUNTIME_FUNCTION_ENTRY = *mut _IMAGE_CE_RUNTIME_FUNCTION_ENTRY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY { - pub BeginAddress: DWORD, - pub __bindgen_anon_1: _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1 { - pub UnwindData: DWORD, - pub __bindgen_anon_1: _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn Flag(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) } - } - #[inline] - pub fn set_Flag(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 2u8, val as u64) - } - } - #[inline] - pub fn FunctionLength(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 11u8) as u32) } - } - #[inline] - pub fn set_FunctionLength(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 11u8, val as u64) - } - } - #[inline] - pub fn Ret(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 2u8) as u32) } - } - #[inline] - pub fn set_Ret(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(13usize, 2u8, val as u64) - } - } - #[inline] - pub fn H(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) } - } - #[inline] - pub fn set_H(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(15usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reg(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 3u8) as u32) } - } - #[inline] - pub fn set_Reg(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(16usize, 3u8, val as u64) - } - } - #[inline] - pub fn R(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u32) } - } - #[inline] - pub fn set_R(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(19usize, 1u8, val as u64) - } - } - #[inline] - pub fn L(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) } - } - #[inline] - pub fn set_L(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(20usize, 1u8, val as u64) - } - } - #[inline] - pub fn C(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u32) } - } - #[inline] - pub fn set_C(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(21usize, 1u8, val as u64) - } - } - #[inline] - pub fn StackAdjust(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 10u8) as u32) } - } - #[inline] - pub fn set_StackAdjust(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(22usize, 10u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - Flag: DWORD, - FunctionLength: DWORD, - Ret: DWORD, - H: DWORD, - Reg: DWORD, - R: DWORD, - L: DWORD, - C: DWORD, - StackAdjust: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 2u8, { - let Flag: u32 = unsafe { ::std::mem::transmute(Flag) }; - Flag as u64 - }); - __bindgen_bitfield_unit.set(2usize, 11u8, { - let FunctionLength: u32 = unsafe { ::std::mem::transmute(FunctionLength) }; - FunctionLength as u64 - }); - __bindgen_bitfield_unit.set(13usize, 2u8, { - let Ret: u32 = unsafe { ::std::mem::transmute(Ret) }; - Ret as u64 - }); - __bindgen_bitfield_unit.set(15usize, 1u8, { - let H: u32 = unsafe { ::std::mem::transmute(H) }; - H as u64 - }); - __bindgen_bitfield_unit.set(16usize, 3u8, { - let Reg: u32 = unsafe { ::std::mem::transmute(Reg) }; - Reg as u64 - }); - __bindgen_bitfield_unit.set(19usize, 1u8, { - let R: u32 = unsafe { ::std::mem::transmute(R) }; - R as u64 - }); - __bindgen_bitfield_unit.set(20usize, 1u8, { - let L: u32 = unsafe { ::std::mem::transmute(L) }; - L as u64 - }); - __bindgen_bitfield_unit.set(21usize, 1u8, { - let C: u32 = unsafe { ::std::mem::transmute(C) }; - C as u64 - }); - __bindgen_bitfield_unit.set(22usize, 10u8, { - let StackAdjust: u32 = unsafe { ::std::mem::transmute(StackAdjust) }; - StackAdjust as u64 - }); - __bindgen_bitfield_unit - } -} -pub type IMAGE_ARM_RUNTIME_FUNCTION_ENTRY = _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY; -pub type PIMAGE_ARM_RUNTIME_FUNCTION_ENTRY = *mut _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY; -pub const ARM64_FNPDATA_FLAGS_PdataRefToFullXdata: ARM64_FNPDATA_FLAGS = 0; -pub const ARM64_FNPDATA_FLAGS_PdataPackedUnwindFunction: ARM64_FNPDATA_FLAGS = 1; -pub const ARM64_FNPDATA_FLAGS_PdataPackedUnwindFragment: ARM64_FNPDATA_FLAGS = 2; -pub type ARM64_FNPDATA_FLAGS = ::std::os::raw::c_int; -pub const ARM64_FNPDATA_CR_PdataCrUnchained: ARM64_FNPDATA_CR = 0; -pub const ARM64_FNPDATA_CR_PdataCrUnchainedSavedLr: ARM64_FNPDATA_CR = 1; -pub const ARM64_FNPDATA_CR_PdataCrChainedWithPac: ARM64_FNPDATA_CR = 2; -pub const ARM64_FNPDATA_CR_PdataCrChained: ARM64_FNPDATA_CR = 3; -pub type ARM64_FNPDATA_CR = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY { - pub BeginAddress: DWORD, - pub __bindgen_anon_1: _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1 { - pub UnwindData: DWORD, - pub __bindgen_anon_1: _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn Flag(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) } - } - #[inline] - pub fn set_Flag(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 2u8, val as u64) - } - } - #[inline] - pub fn FunctionLength(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 11u8) as u32) } - } - #[inline] - pub fn set_FunctionLength(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 11u8, val as u64) - } - } - #[inline] - pub fn RegF(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 3u8) as u32) } - } - #[inline] - pub fn set_RegF(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(13usize, 3u8, val as u64) - } - } - #[inline] - pub fn RegI(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 4u8) as u32) } - } - #[inline] - pub fn set_RegI(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(16usize, 4u8, val as u64) - } - } - #[inline] - pub fn H(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) } - } - #[inline] - pub fn set_H(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(20usize, 1u8, val as u64) - } - } - #[inline] - pub fn CR(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 2u8) as u32) } - } - #[inline] - pub fn set_CR(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(21usize, 2u8, val as u64) - } - } - #[inline] - pub fn FrameSize(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(23usize, 9u8) as u32) } - } - #[inline] - pub fn set_FrameSize(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(23usize, 9u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - Flag: DWORD, - FunctionLength: DWORD, - RegF: DWORD, - RegI: DWORD, - H: DWORD, - CR: DWORD, - FrameSize: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 2u8, { - let Flag: u32 = unsafe { ::std::mem::transmute(Flag) }; - Flag as u64 - }); - __bindgen_bitfield_unit.set(2usize, 11u8, { - let FunctionLength: u32 = unsafe { ::std::mem::transmute(FunctionLength) }; - FunctionLength as u64 - }); - __bindgen_bitfield_unit.set(13usize, 3u8, { - let RegF: u32 = unsafe { ::std::mem::transmute(RegF) }; - RegF as u64 - }); - __bindgen_bitfield_unit.set(16usize, 4u8, { - let RegI: u32 = unsafe { ::std::mem::transmute(RegI) }; - RegI as u64 - }); - __bindgen_bitfield_unit.set(20usize, 1u8, { - let H: u32 = unsafe { ::std::mem::transmute(H) }; - H as u64 - }); - __bindgen_bitfield_unit.set(21usize, 2u8, { - let CR: u32 = unsafe { ::std::mem::transmute(CR) }; - CR as u64 - }); - __bindgen_bitfield_unit.set(23usize, 9u8, { - let FrameSize: u32 = unsafe { ::std::mem::transmute(FrameSize) }; - FrameSize as u64 - }); - __bindgen_bitfield_unit - } -} -pub type IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY = _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY; -pub type PIMAGE_ARM64_RUNTIME_FUNCTION_ENTRY = *mut _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY; -#[repr(C)] -#[derive(Copy, Clone)] -pub union IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY_XDATA { - pub HeaderData: DWORD, - pub __bindgen_anon_1: IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY_XDATA__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY_XDATA__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY_XDATA__bindgen_ty_1 { - #[inline] - pub fn FunctionLength(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 18u8) as u32) } - } - #[inline] - pub fn set_FunctionLength(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 18u8, val as u64) - } - } - #[inline] - pub fn Version(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 2u8) as u32) } - } - #[inline] - pub fn set_Version(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(18usize, 2u8, val as u64) - } - } - #[inline] - pub fn ExceptionDataPresent(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) } - } - #[inline] - pub fn set_ExceptionDataPresent(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(20usize, 1u8, val as u64) - } - } - #[inline] - pub fn EpilogInHeader(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 1u8) as u32) } - } - #[inline] - pub fn set_EpilogInHeader(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(21usize, 1u8, val as u64) - } - } - #[inline] - pub fn EpilogCount(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 5u8) as u32) } - } - #[inline] - pub fn set_EpilogCount(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(22usize, 5u8, val as u64) - } - } - #[inline] - pub fn CodeWords(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(27usize, 5u8) as u32) } - } - #[inline] - pub fn set_CodeWords(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(27usize, 5u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - FunctionLength: DWORD, - Version: DWORD, - ExceptionDataPresent: DWORD, - EpilogInHeader: DWORD, - EpilogCount: DWORD, - CodeWords: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 18u8, { - let FunctionLength: u32 = unsafe { ::std::mem::transmute(FunctionLength) }; - FunctionLength as u64 - }); - __bindgen_bitfield_unit.set(18usize, 2u8, { - let Version: u32 = unsafe { ::std::mem::transmute(Version) }; - Version as u64 - }); - __bindgen_bitfield_unit.set(20usize, 1u8, { - let ExceptionDataPresent: u32 = unsafe { ::std::mem::transmute(ExceptionDataPresent) }; - ExceptionDataPresent as u64 - }); - __bindgen_bitfield_unit.set(21usize, 1u8, { - let EpilogInHeader: u32 = unsafe { ::std::mem::transmute(EpilogInHeader) }; - EpilogInHeader as u64 - }); - __bindgen_bitfield_unit.set(22usize, 5u8, { - let EpilogCount: u32 = unsafe { ::std::mem::transmute(EpilogCount) }; - EpilogCount as u64 - }); - __bindgen_bitfield_unit.set(27usize, 5u8, { - let CodeWords: u32 = unsafe { ::std::mem::transmute(CodeWords) }; - CodeWords as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C, packed(4))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY { - pub BeginAddress: ULONGLONG, - pub EndAddress: ULONGLONG, - pub ExceptionHandler: ULONGLONG, - pub HandlerData: ULONGLONG, - pub PrologEndAddress: ULONGLONG, -} -pub type IMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY = _IMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY; -pub type PIMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY = *mut _IMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY { - pub BeginAddress: DWORD, - pub EndAddress: DWORD, - pub ExceptionHandler: DWORD, - pub HandlerData: DWORD, - pub PrologEndAddress: DWORD, -} -pub type IMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY = _IMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY; -pub type PIMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY = *mut _IMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _IMAGE_RUNTIME_FUNCTION_ENTRY { - pub BeginAddress: DWORD, - pub EndAddress: DWORD, - pub __bindgen_anon_1: _IMAGE_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_RUNTIME_FUNCTION_ENTRY__bindgen_ty_1 { - pub UnwindInfoAddress: DWORD, - pub UnwindData: DWORD, -} -pub type _PIMAGE_RUNTIME_FUNCTION_ENTRY = *mut _IMAGE_RUNTIME_FUNCTION_ENTRY; -pub type IMAGE_IA64_RUNTIME_FUNCTION_ENTRY = _IMAGE_RUNTIME_FUNCTION_ENTRY; -pub type PIMAGE_IA64_RUNTIME_FUNCTION_ENTRY = _PIMAGE_RUNTIME_FUNCTION_ENTRY; -pub type IMAGE_AMD64_RUNTIME_FUNCTION_ENTRY = _IMAGE_RUNTIME_FUNCTION_ENTRY; -pub type PIMAGE_AMD64_RUNTIME_FUNCTION_ENTRY = _PIMAGE_RUNTIME_FUNCTION_ENTRY; -pub type IMAGE_RUNTIME_FUNCTION_ENTRY = _IMAGE_RUNTIME_FUNCTION_ENTRY; -pub type PIMAGE_RUNTIME_FUNCTION_ENTRY = _PIMAGE_RUNTIME_FUNCTION_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_ENCLAVE_CONFIG32 { - pub Size: DWORD, - pub MinimumRequiredConfigSize: DWORD, - pub PolicyFlags: DWORD, - pub NumberOfImports: DWORD, - pub ImportList: DWORD, - pub ImportEntrySize: DWORD, - pub FamilyID: [BYTE; 16usize], - pub ImageID: [BYTE; 16usize], - pub ImageVersion: DWORD, - pub SecurityVersion: DWORD, - pub EnclaveSize: DWORD, - pub NumberOfThreads: DWORD, - pub EnclaveFlags: DWORD, -} -pub type IMAGE_ENCLAVE_CONFIG32 = _IMAGE_ENCLAVE_CONFIG32; -pub type PIMAGE_ENCLAVE_CONFIG32 = *mut _IMAGE_ENCLAVE_CONFIG32; -#[repr(C, packed(4))] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_ENCLAVE_CONFIG64 { - pub Size: DWORD, - pub MinimumRequiredConfigSize: DWORD, - pub PolicyFlags: DWORD, - pub NumberOfImports: DWORD, - pub ImportList: DWORD, - pub ImportEntrySize: DWORD, - pub FamilyID: [BYTE; 16usize], - pub ImageID: [BYTE; 16usize], - pub ImageVersion: DWORD, - pub SecurityVersion: DWORD, - pub EnclaveSize: ULONGLONG, - pub NumberOfThreads: DWORD, - pub EnclaveFlags: DWORD, -} -pub type IMAGE_ENCLAVE_CONFIG64 = _IMAGE_ENCLAVE_CONFIG64; -pub type PIMAGE_ENCLAVE_CONFIG64 = *mut _IMAGE_ENCLAVE_CONFIG64; -pub type IMAGE_ENCLAVE_CONFIG = IMAGE_ENCLAVE_CONFIG64; -pub type PIMAGE_ENCLAVE_CONFIG = PIMAGE_ENCLAVE_CONFIG64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_ENCLAVE_IMPORT { - pub MatchType: DWORD, - pub MinimumSecurityVersion: DWORD, - pub UniqueOrAuthorID: [BYTE; 32usize], - pub FamilyID: [BYTE; 16usize], - pub ImageID: [BYTE; 16usize], - pub ImportName: DWORD, - pub Reserved: DWORD, -} -pub type IMAGE_ENCLAVE_IMPORT = _IMAGE_ENCLAVE_IMPORT; -pub type PIMAGE_ENCLAVE_IMPORT = *mut _IMAGE_ENCLAVE_IMPORT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_DEBUG_DIRECTORY { - pub Characteristics: DWORD, - pub TimeDateStamp: DWORD, - pub MajorVersion: WORD, - pub MinorVersion: WORD, - pub Type: DWORD, - pub SizeOfData: DWORD, - pub AddressOfRawData: DWORD, - pub PointerToRawData: DWORD, -} -pub type IMAGE_DEBUG_DIRECTORY = _IMAGE_DEBUG_DIRECTORY; -pub type PIMAGE_DEBUG_DIRECTORY = *mut _IMAGE_DEBUG_DIRECTORY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_COFF_SYMBOLS_HEADER { - pub NumberOfSymbols: DWORD, - pub LvaToFirstSymbol: DWORD, - pub NumberOfLinenumbers: DWORD, - pub LvaToFirstLinenumber: DWORD, - pub RvaToFirstByteOfCode: DWORD, - pub RvaToLastByteOfCode: DWORD, - pub RvaToFirstByteOfData: DWORD, - pub RvaToLastByteOfData: DWORD, -} -pub type IMAGE_COFF_SYMBOLS_HEADER = _IMAGE_COFF_SYMBOLS_HEADER; -pub type PIMAGE_COFF_SYMBOLS_HEADER = *mut _IMAGE_COFF_SYMBOLS_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FPO_DATA { - pub ulOffStart: DWORD, - pub cbProcSize: DWORD, - pub cdwLocals: DWORD, - pub cdwParams: WORD, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -} -impl _FPO_DATA { - #[inline] - pub fn cbProlog(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u16) } - } - #[inline] - pub fn set_cbProlog(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 8u8, val as u64) - } - } - #[inline] - pub fn cbRegs(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 3u8) as u16) } - } - #[inline] - pub fn set_cbRegs(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 3u8, val as u64) - } - } - #[inline] - pub fn fHasSEH(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } - } - #[inline] - pub fn set_fHasSEH(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(11usize, 1u8, val as u64) - } - } - #[inline] - pub fn fUseBP(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } - } - #[inline] - pub fn set_fUseBP(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(12usize, 1u8, val as u64) - } - } - #[inline] - pub fn reserved(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } - } - #[inline] - pub fn set_reserved(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(13usize, 1u8, val as u64) - } - } - #[inline] - pub fn cbFrame(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 2u8) as u16) } - } - #[inline] - pub fn set_cbFrame(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(14usize, 2u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - cbProlog: WORD, - cbRegs: WORD, - fHasSEH: WORD, - fUseBP: WORD, - reserved: WORD, - cbFrame: WORD, - ) -> __BindgenBitfieldUnit<[u8; 2usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 8u8, { - let cbProlog: u16 = unsafe { ::std::mem::transmute(cbProlog) }; - cbProlog as u64 - }); - __bindgen_bitfield_unit.set(8usize, 3u8, { - let cbRegs: u16 = unsafe { ::std::mem::transmute(cbRegs) }; - cbRegs as u64 - }); - __bindgen_bitfield_unit.set(11usize, 1u8, { - let fHasSEH: u16 = unsafe { ::std::mem::transmute(fHasSEH) }; - fHasSEH as u64 - }); - __bindgen_bitfield_unit.set(12usize, 1u8, { - let fUseBP: u16 = unsafe { ::std::mem::transmute(fUseBP) }; - fUseBP as u64 - }); - __bindgen_bitfield_unit.set(13usize, 1u8, { - let reserved: u16 = unsafe { ::std::mem::transmute(reserved) }; - reserved as u64 - }); - __bindgen_bitfield_unit.set(14usize, 2u8, { - let cbFrame: u16 = unsafe { ::std::mem::transmute(cbFrame) }; - cbFrame as u64 - }); - __bindgen_bitfield_unit - } -} -pub type FPO_DATA = _FPO_DATA; -pub type PFPO_DATA = *mut _FPO_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_DEBUG_MISC { - pub DataType: DWORD, - pub Length: DWORD, - pub Unicode: BOOLEAN, - pub Reserved: [BYTE; 3usize], - pub Data: [BYTE; 1usize], -} -pub type IMAGE_DEBUG_MISC = _IMAGE_DEBUG_MISC; -pub type PIMAGE_DEBUG_MISC = *mut _IMAGE_DEBUG_MISC; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_FUNCTION_ENTRY { - pub StartingAddress: DWORD, - pub EndingAddress: DWORD, - pub EndOfPrologue: DWORD, -} -pub type IMAGE_FUNCTION_ENTRY = _IMAGE_FUNCTION_ENTRY; -pub type PIMAGE_FUNCTION_ENTRY = *mut _IMAGE_FUNCTION_ENTRY; -#[repr(C, packed(4))] -#[derive(Copy, Clone)] -pub struct _IMAGE_FUNCTION_ENTRY64 { - pub StartingAddress: ULONGLONG, - pub EndingAddress: ULONGLONG, - pub __bindgen_anon_1: _IMAGE_FUNCTION_ENTRY64__bindgen_ty_1, -} -#[repr(C, packed(4))] -#[derive(Copy, Clone)] -pub union _IMAGE_FUNCTION_ENTRY64__bindgen_ty_1 { - pub EndOfPrologue: ULONGLONG, - pub UnwindInfoAddress: ULONGLONG, -} -pub type IMAGE_FUNCTION_ENTRY64 = _IMAGE_FUNCTION_ENTRY64; -pub type PIMAGE_FUNCTION_ENTRY64 = *mut _IMAGE_FUNCTION_ENTRY64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IMAGE_SEPARATE_DEBUG_HEADER { - pub Signature: WORD, - pub Flags: WORD, - pub Machine: WORD, - pub Characteristics: WORD, - pub TimeDateStamp: DWORD, - pub CheckSum: DWORD, - pub ImageBase: DWORD, - pub SizeOfImage: DWORD, - pub NumberOfSections: DWORD, - pub ExportedNamesSize: DWORD, - pub DebugDirectorySize: DWORD, - pub SectionAlignment: DWORD, - pub Reserved: [DWORD; 2usize], -} -pub type IMAGE_SEPARATE_DEBUG_HEADER = _IMAGE_SEPARATE_DEBUG_HEADER; -pub type PIMAGE_SEPARATE_DEBUG_HEADER = *mut _IMAGE_SEPARATE_DEBUG_HEADER; -#[repr(C, packed(4))] -#[derive(Debug, Copy, Clone)] -pub struct _NON_PAGED_DEBUG_INFO { - pub Signature: WORD, - pub Flags: WORD, - pub Size: DWORD, - pub Machine: WORD, - pub Characteristics: WORD, - pub TimeDateStamp: DWORD, - pub CheckSum: DWORD, - pub SizeOfImage: DWORD, - pub ImageBase: ULONGLONG, -} -pub type NON_PAGED_DEBUG_INFO = _NON_PAGED_DEBUG_INFO; -pub type PNON_PAGED_DEBUG_INFO = *mut _NON_PAGED_DEBUG_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ImageArchitectureHeader { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, - pub FirstEntryRVA: DWORD, -} -impl _ImageArchitectureHeader { - #[inline] - pub fn AmaskValue(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_AmaskValue(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn AmaskShift(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } - } - #[inline] - pub fn set_AmaskShift(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 8u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - AmaskValue: ::std::os::raw::c_uint, - AmaskShift: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let AmaskValue: u32 = unsafe { ::std::mem::transmute(AmaskValue) }; - AmaskValue as u64 - }); - __bindgen_bitfield_unit.set(8usize, 8u8, { - let AmaskShift: u32 = unsafe { ::std::mem::transmute(AmaskShift) }; - AmaskShift as u64 - }); - __bindgen_bitfield_unit - } -} -pub type IMAGE_ARCHITECTURE_HEADER = _ImageArchitectureHeader; -pub type PIMAGE_ARCHITECTURE_HEADER = *mut _ImageArchitectureHeader; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ImageArchitectureEntry { - pub FixupInstRVA: DWORD, - pub NewInst: DWORD, -} -pub type IMAGE_ARCHITECTURE_ENTRY = _ImageArchitectureEntry; -pub type PIMAGE_ARCHITECTURE_ENTRY = *mut _ImageArchitectureEntry; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct IMPORT_OBJECT_HEADER { - pub Sig1: WORD, - pub Sig2: WORD, - pub Version: WORD, - pub Machine: WORD, - pub TimeDateStamp: DWORD, - pub SizeOfData: DWORD, - pub __bindgen_anon_1: IMPORT_OBJECT_HEADER__bindgen_ty_1, - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union IMPORT_OBJECT_HEADER__bindgen_ty_1 { - pub Ordinal: WORD, - pub Hint: WORD, -} -impl IMPORT_OBJECT_HEADER { - #[inline] - pub fn Type(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u16) } - } - #[inline] - pub fn set_Type(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 2u8, val as u64) - } - } - #[inline] - pub fn NameType(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 3u8) as u16) } - } - #[inline] - pub fn set_NameType(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 3u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> WORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 11u8) as u16) } - } - #[inline] - pub fn set_Reserved(&mut self, val: WORD) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 11u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - Type: WORD, - NameType: WORD, - Reserved: WORD, - ) -> __BindgenBitfieldUnit<[u8; 2usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 2u8, { - let Type: u16 = unsafe { ::std::mem::transmute(Type) }; - Type as u64 - }); - __bindgen_bitfield_unit.set(2usize, 3u8, { - let NameType: u16 = unsafe { ::std::mem::transmute(NameType) }; - NameType as u64 - }); - __bindgen_bitfield_unit.set(5usize, 11u8, { - let Reserved: u16 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub const IMPORT_OBJECT_TYPE_IMPORT_OBJECT_CODE: IMPORT_OBJECT_TYPE = 0; -pub const IMPORT_OBJECT_TYPE_IMPORT_OBJECT_DATA: IMPORT_OBJECT_TYPE = 1; -pub const IMPORT_OBJECT_TYPE_IMPORT_OBJECT_CONST: IMPORT_OBJECT_TYPE = 2; -pub type IMPORT_OBJECT_TYPE = ::std::os::raw::c_int; -pub const IMPORT_OBJECT_NAME_TYPE_IMPORT_OBJECT_ORDINAL: IMPORT_OBJECT_NAME_TYPE = 0; -pub const IMPORT_OBJECT_NAME_TYPE_IMPORT_OBJECT_NAME: IMPORT_OBJECT_NAME_TYPE = 1; -pub const IMPORT_OBJECT_NAME_TYPE_IMPORT_OBJECT_NAME_NO_PREFIX: IMPORT_OBJECT_NAME_TYPE = 2; -pub const IMPORT_OBJECT_NAME_TYPE_IMPORT_OBJECT_NAME_UNDECORATE: IMPORT_OBJECT_NAME_TYPE = 3; -pub const IMPORT_OBJECT_NAME_TYPE_IMPORT_OBJECT_NAME_EXPORTAS: IMPORT_OBJECT_NAME_TYPE = 4; -pub type IMPORT_OBJECT_NAME_TYPE = ::std::os::raw::c_int; -pub const ReplacesCorHdrNumericDefines_COMIMAGE_FLAGS_ILONLY: ReplacesCorHdrNumericDefines = 1; -pub const ReplacesCorHdrNumericDefines_COMIMAGE_FLAGS_32BITREQUIRED: ReplacesCorHdrNumericDefines = - 2; -pub const ReplacesCorHdrNumericDefines_COMIMAGE_FLAGS_IL_LIBRARY: ReplacesCorHdrNumericDefines = 4; -pub const ReplacesCorHdrNumericDefines_COMIMAGE_FLAGS_STRONGNAMESIGNED: - ReplacesCorHdrNumericDefines = 8; -pub const ReplacesCorHdrNumericDefines_COMIMAGE_FLAGS_NATIVE_ENTRYPOINT: - ReplacesCorHdrNumericDefines = 16; -pub const ReplacesCorHdrNumericDefines_COMIMAGE_FLAGS_TRACKDEBUGDATA: ReplacesCorHdrNumericDefines = - 65536; -pub const ReplacesCorHdrNumericDefines_COMIMAGE_FLAGS_32BITPREFERRED: ReplacesCorHdrNumericDefines = - 131072; -pub const ReplacesCorHdrNumericDefines_COR_VERSION_MAJOR_V2: ReplacesCorHdrNumericDefines = 2; -pub const ReplacesCorHdrNumericDefines_COR_VERSION_MAJOR: ReplacesCorHdrNumericDefines = 2; -pub const ReplacesCorHdrNumericDefines_COR_VERSION_MINOR: ReplacesCorHdrNumericDefines = 5; -pub const ReplacesCorHdrNumericDefines_COR_DELETED_NAME_LENGTH: ReplacesCorHdrNumericDefines = 8; -pub const ReplacesCorHdrNumericDefines_COR_VTABLEGAP_NAME_LENGTH: ReplacesCorHdrNumericDefines = 8; -pub const ReplacesCorHdrNumericDefines_NATIVE_TYPE_MAX_CB: ReplacesCorHdrNumericDefines = 1; -pub const ReplacesCorHdrNumericDefines_COR_ILMETHOD_SECT_SMALL_MAX_DATASIZE: - ReplacesCorHdrNumericDefines = 255; -pub const ReplacesCorHdrNumericDefines_IMAGE_COR_MIH_METHODRVA: ReplacesCorHdrNumericDefines = 1; -pub const ReplacesCorHdrNumericDefines_IMAGE_COR_MIH_EHRVA: ReplacesCorHdrNumericDefines = 2; -pub const ReplacesCorHdrNumericDefines_IMAGE_COR_MIH_BASICBLOCK: ReplacesCorHdrNumericDefines = 8; -pub const ReplacesCorHdrNumericDefines_COR_VTABLE_32BIT: ReplacesCorHdrNumericDefines = 1; -pub const ReplacesCorHdrNumericDefines_COR_VTABLE_64BIT: ReplacesCorHdrNumericDefines = 2; -pub const ReplacesCorHdrNumericDefines_COR_VTABLE_FROM_UNMANAGED: ReplacesCorHdrNumericDefines = 4; -pub const ReplacesCorHdrNumericDefines_COR_VTABLE_FROM_UNMANAGED_RETAIN_APPDOMAIN: - ReplacesCorHdrNumericDefines = 8; -pub const ReplacesCorHdrNumericDefines_COR_VTABLE_CALL_MOST_DERIVED: ReplacesCorHdrNumericDefines = - 16; -pub const ReplacesCorHdrNumericDefines_IMAGE_COR_EATJ_THUNK_SIZE: ReplacesCorHdrNumericDefines = 32; -pub const ReplacesCorHdrNumericDefines_MAX_CLASS_NAME: ReplacesCorHdrNumericDefines = 1024; -pub const ReplacesCorHdrNumericDefines_MAX_PACKAGE_NAME: ReplacesCorHdrNumericDefines = 1024; -pub type ReplacesCorHdrNumericDefines = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct IMAGE_COR20_HEADER { - pub cb: DWORD, - pub MajorRuntimeVersion: WORD, - pub MinorRuntimeVersion: WORD, - pub MetaData: IMAGE_DATA_DIRECTORY, - pub Flags: DWORD, - pub __bindgen_anon_1: IMAGE_COR20_HEADER__bindgen_ty_1, - pub Resources: IMAGE_DATA_DIRECTORY, - pub StrongNameSignature: IMAGE_DATA_DIRECTORY, - pub CodeManagerTable: IMAGE_DATA_DIRECTORY, - pub VTableFixups: IMAGE_DATA_DIRECTORY, - pub ExportAddressTableJumps: IMAGE_DATA_DIRECTORY, - pub ManagedNativeHeader: IMAGE_DATA_DIRECTORY, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union IMAGE_COR20_HEADER__bindgen_ty_1 { - pub EntryPointToken: DWORD, - pub EntryPointRVA: DWORD, -} -pub type PIMAGE_COR20_HEADER = *mut IMAGE_COR20_HEADER; -extern "C" { - pub fn RtlCaptureStackBackTrace( - FramesToSkip: DWORD, - FramesToCapture: DWORD, - BackTrace: *mut PVOID, - BackTraceHash: PDWORD, - ) -> WORD; -} -extern "C" { - pub fn RtlCaptureContext(ContextRecord: PCONTEXT); -} -extern "C" { - pub fn RtlCaptureContext2(ContextRecord: PCONTEXT); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _UNWIND_HISTORY_TABLE_ENTRY { - pub ImageBase: ULONG_PTR, - pub FunctionEntry: PRUNTIME_FUNCTION, -} -pub type UNWIND_HISTORY_TABLE_ENTRY = _UNWIND_HISTORY_TABLE_ENTRY; -pub type PUNWIND_HISTORY_TABLE_ENTRY = *mut _UNWIND_HISTORY_TABLE_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _UNWIND_HISTORY_TABLE { - pub Count: DWORD, - pub LocalHint: BYTE, - pub GlobalHint: BYTE, - pub Search: BYTE, - pub Once: BYTE, - pub LowAddress: ULONG_PTR, - pub HighAddress: ULONG_PTR, - pub Entry: [UNWIND_HISTORY_TABLE_ENTRY; 12usize], -} -pub type UNWIND_HISTORY_TABLE = _UNWIND_HISTORY_TABLE; -pub type PUNWIND_HISTORY_TABLE = *mut _UNWIND_HISTORY_TABLE; -extern "C" { - pub fn RtlUnwind( - TargetFrame: PVOID, - TargetIp: PVOID, - ExceptionRecord: PEXCEPTION_RECORD, - ReturnValue: PVOID, - ); -} -extern "C" { - pub fn RtlAddFunctionTable( - FunctionTable: PRUNTIME_FUNCTION, - EntryCount: DWORD, - BaseAddress: DWORD64, - ) -> BOOLEAN; -} -extern "C" { - pub fn RtlDeleteFunctionTable(FunctionTable: PRUNTIME_FUNCTION) -> BOOLEAN; -} -extern "C" { - pub fn RtlInstallFunctionTableCallback( - TableIdentifier: DWORD64, - BaseAddress: DWORD64, - Length: DWORD, - Callback: PGET_RUNTIME_FUNCTION_CALLBACK, - Context: PVOID, - OutOfProcessCallbackDll: PCWSTR, - ) -> BOOLEAN; -} -extern "C" { - pub fn RtlAddGrowableFunctionTable( - DynamicTable: *mut PVOID, - FunctionTable: PRUNTIME_FUNCTION, - EntryCount: DWORD, - MaximumEntryCount: DWORD, - RangeBase: ULONG_PTR, - RangeEnd: ULONG_PTR, - ) -> DWORD; -} -extern "C" { - pub fn RtlGrowFunctionTable(DynamicTable: PVOID, NewEntryCount: DWORD); -} -extern "C" { - pub fn RtlDeleteGrowableFunctionTable(DynamicTable: PVOID); -} -extern "C" { - pub fn RtlLookupFunctionEntry( - ControlPc: DWORD64, - ImageBase: PDWORD64, - HistoryTable: PUNWIND_HISTORY_TABLE, - ) -> PRUNTIME_FUNCTION; -} -extern "C" { - pub fn RtlRestoreContext(ContextRecord: PCONTEXT, ExceptionRecord: *mut _EXCEPTION_RECORD); -} -extern "C" { - pub fn RtlUnwindEx( - TargetFrame: PVOID, - TargetIp: PVOID, - ExceptionRecord: PEXCEPTION_RECORD, - ReturnValue: PVOID, - ContextRecord: PCONTEXT, - HistoryTable: PUNWIND_HISTORY_TABLE, - ); -} -extern "C" { - pub fn RtlVirtualUnwind( - HandlerType: DWORD, - ImageBase: DWORD64, - ControlPc: DWORD64, - FunctionEntry: PRUNTIME_FUNCTION, - ContextRecord: PCONTEXT, - HandlerData: *mut PVOID, - EstablisherFrame: PDWORD64, - ContextPointers: PKNONVOLATILE_CONTEXT_POINTERS, - ) -> PEXCEPTION_ROUTINE; -} -extern "C" { - pub fn RtlRaiseException(ExceptionRecord: PEXCEPTION_RECORD); -} -extern "C" { - pub fn RtlPcToFileHeader(PcValue: PVOID, BaseOfImage: *mut PVOID) -> PVOID; -} -extern "C" { - pub fn RtlCompareMemory( - Source1: *const ::std::os::raw::c_void, - Source2: *const ::std::os::raw::c_void, - Length: SIZE_T, - ) -> SIZE_T; -} -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Copy, Clone)] -pub struct _SLIST_ENTRY { - pub Next: *mut _SLIST_ENTRY, -} -pub type SLIST_ENTRY = _SLIST_ENTRY; -pub type PSLIST_ENTRY = *mut _SLIST_ENTRY; -#[repr(C)] -#[repr(align(16))] -#[derive(Copy, Clone)] -pub union _SLIST_HEADER { - pub __bindgen_anon_1: _SLIST_HEADER__bindgen_ty_1, - pub HeaderX64: _SLIST_HEADER__bindgen_ty_2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SLIST_HEADER__bindgen_ty_1 { - pub Alignment: ULONGLONG, - pub Region: ULONGLONG, -} -#[repr(C)] -#[repr(align(8))] -#[derive(Debug, Copy, Clone)] -pub struct _SLIST_HEADER__bindgen_ty_2 { - pub _bitfield_align_1: [u64; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 16usize]>, -} -impl _SLIST_HEADER__bindgen_ty_2 { - #[inline] - pub fn Depth(&self) -> ULONGLONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u64) } - } - #[inline] - pub fn set_Depth(&mut self, val: ULONGLONG) { - unsafe { - let val: u64 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 16u8, val as u64) - } - } - #[inline] - pub fn Sequence(&self) -> ULONGLONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 48u8) as u64) } - } - #[inline] - pub fn set_Sequence(&mut self, val: ULONGLONG) { - unsafe { - let val: u64 = ::std::mem::transmute(val); - self._bitfield_1.set(16usize, 48u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> ULONGLONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(64usize, 4u8) as u64) } - } - #[inline] - pub fn set_Reserved(&mut self, val: ULONGLONG) { - unsafe { - let val: u64 = ::std::mem::transmute(val); - self._bitfield_1.set(64usize, 4u8, val as u64) - } - } - #[inline] - pub fn NextEntry(&self) -> ULONGLONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(68usize, 60u8) as u64) } - } - #[inline] - pub fn set_NextEntry(&mut self, val: ULONGLONG) { - unsafe { - let val: u64 = ::std::mem::transmute(val); - self._bitfield_1.set(68usize, 60u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - Depth: ULONGLONG, - Sequence: ULONGLONG, - Reserved: ULONGLONG, - NextEntry: ULONGLONG, - ) -> __BindgenBitfieldUnit<[u8; 16usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 16usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 16u8, { - let Depth: u64 = unsafe { ::std::mem::transmute(Depth) }; - Depth as u64 - }); - __bindgen_bitfield_unit.set(16usize, 48u8, { - let Sequence: u64 = unsafe { ::std::mem::transmute(Sequence) }; - Sequence as u64 - }); - __bindgen_bitfield_unit.set(64usize, 4u8, { - let Reserved: u64 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit.set(68usize, 60u8, { - let NextEntry: u64 = unsafe { ::std::mem::transmute(NextEntry) }; - NextEntry as u64 - }); - __bindgen_bitfield_unit - } -} -pub type SLIST_HEADER = _SLIST_HEADER; -pub type PSLIST_HEADER = *mut _SLIST_HEADER; -extern "C" { - pub fn RtlInitializeSListHead(ListHead: PSLIST_HEADER); -} -extern "C" { - pub fn RtlFirstEntrySList(ListHead: *const SLIST_HEADER) -> PSLIST_ENTRY; -} -extern "C" { - pub fn RtlInterlockedPopEntrySList(ListHead: PSLIST_HEADER) -> PSLIST_ENTRY; -} -extern "C" { - pub fn RtlInterlockedPushEntrySList( - ListHead: PSLIST_HEADER, - ListEntry: PSLIST_ENTRY, - ) -> PSLIST_ENTRY; -} -extern "C" { - pub fn RtlInterlockedPushListSListEx( - ListHead: PSLIST_HEADER, - List: PSLIST_ENTRY, - ListEnd: PSLIST_ENTRY, - Count: DWORD, - ) -> PSLIST_ENTRY; -} -extern "C" { - pub fn RtlInterlockedFlushSList(ListHead: PSLIST_HEADER) -> PSLIST_ENTRY; -} -extern "C" { - pub fn RtlQueryDepthSList(ListHead: PSLIST_HEADER) -> WORD; -} -extern "C" { - pub fn RtlGetReturnAddressHijackTarget() -> ULONG_PTR; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _RTL_RUN_ONCE { - pub Ptr: PVOID, -} -pub type RTL_RUN_ONCE = _RTL_RUN_ONCE; -pub type PRTL_RUN_ONCE = *mut _RTL_RUN_ONCE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RTL_BARRIER { - pub Reserved1: DWORD, - pub Reserved2: DWORD, - pub Reserved3: [ULONG_PTR; 2usize], - pub Reserved4: DWORD, - pub Reserved5: DWORD, -} -pub type RTL_BARRIER = _RTL_BARRIER; -pub type PRTL_BARRIER = *mut _RTL_BARRIER; -extern "C" { - pub fn __fastfail(Code: ::std::os::raw::c_uint) -> !; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MESSAGE_RESOURCE_ENTRY { - pub Length: WORD, - pub Flags: WORD, - pub Text: [BYTE; 1usize], -} -pub type MESSAGE_RESOURCE_ENTRY = _MESSAGE_RESOURCE_ENTRY; -pub type PMESSAGE_RESOURCE_ENTRY = *mut _MESSAGE_RESOURCE_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MESSAGE_RESOURCE_BLOCK { - pub LowId: DWORD, - pub HighId: DWORD, - pub OffsetToEntries: DWORD, -} -pub type MESSAGE_RESOURCE_BLOCK = _MESSAGE_RESOURCE_BLOCK; -pub type PMESSAGE_RESOURCE_BLOCK = *mut _MESSAGE_RESOURCE_BLOCK; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MESSAGE_RESOURCE_DATA { - pub NumberOfBlocks: DWORD, - pub Blocks: [MESSAGE_RESOURCE_BLOCK; 1usize], -} -pub type MESSAGE_RESOURCE_DATA = _MESSAGE_RESOURCE_DATA; -pub type PMESSAGE_RESOURCE_DATA = *mut _MESSAGE_RESOURCE_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OSVERSIONINFOA { - pub dwOSVersionInfoSize: DWORD, - pub dwMajorVersion: DWORD, - pub dwMinorVersion: DWORD, - pub dwBuildNumber: DWORD, - pub dwPlatformId: DWORD, - pub szCSDVersion: [CHAR; 128usize], -} -pub type OSVERSIONINFOA = _OSVERSIONINFOA; -pub type POSVERSIONINFOA = *mut _OSVERSIONINFOA; -pub type LPOSVERSIONINFOA = *mut _OSVERSIONINFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OSVERSIONINFOW { - pub dwOSVersionInfoSize: DWORD, - pub dwMajorVersion: DWORD, - pub dwMinorVersion: DWORD, - pub dwBuildNumber: DWORD, - pub dwPlatformId: DWORD, - pub szCSDVersion: [WCHAR; 128usize], -} -pub type OSVERSIONINFOW = _OSVERSIONINFOW; -pub type POSVERSIONINFOW = *mut _OSVERSIONINFOW; -pub type LPOSVERSIONINFOW = *mut _OSVERSIONINFOW; -pub type RTL_OSVERSIONINFOW = _OSVERSIONINFOW; -pub type PRTL_OSVERSIONINFOW = *mut _OSVERSIONINFOW; -pub type OSVERSIONINFO = OSVERSIONINFOA; -pub type POSVERSIONINFO = POSVERSIONINFOA; -pub type LPOSVERSIONINFO = LPOSVERSIONINFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OSVERSIONINFOEXA { - pub dwOSVersionInfoSize: DWORD, - pub dwMajorVersion: DWORD, - pub dwMinorVersion: DWORD, - pub dwBuildNumber: DWORD, - pub dwPlatformId: DWORD, - pub szCSDVersion: [CHAR; 128usize], - pub wServicePackMajor: WORD, - pub wServicePackMinor: WORD, - pub wSuiteMask: WORD, - pub wProductType: BYTE, - pub wReserved: BYTE, -} -pub type OSVERSIONINFOEXA = _OSVERSIONINFOEXA; -pub type POSVERSIONINFOEXA = *mut _OSVERSIONINFOEXA; -pub type LPOSVERSIONINFOEXA = *mut _OSVERSIONINFOEXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OSVERSIONINFOEXW { - pub dwOSVersionInfoSize: DWORD, - pub dwMajorVersion: DWORD, - pub dwMinorVersion: DWORD, - pub dwBuildNumber: DWORD, - pub dwPlatformId: DWORD, - pub szCSDVersion: [WCHAR; 128usize], - pub wServicePackMajor: WORD, - pub wServicePackMinor: WORD, - pub wSuiteMask: WORD, - pub wProductType: BYTE, - pub wReserved: BYTE, -} -pub type OSVERSIONINFOEXW = _OSVERSIONINFOEXW; -pub type POSVERSIONINFOEXW = *mut _OSVERSIONINFOEXW; -pub type LPOSVERSIONINFOEXW = *mut _OSVERSIONINFOEXW; -pub type RTL_OSVERSIONINFOEXW = _OSVERSIONINFOEXW; -pub type PRTL_OSVERSIONINFOEXW = *mut _OSVERSIONINFOEXW; -pub type OSVERSIONINFOEX = OSVERSIONINFOEXA; -pub type POSVERSIONINFOEX = POSVERSIONINFOEXA; -pub type LPOSVERSIONINFOEX = LPOSVERSIONINFOEXA; -extern "C" { - pub fn VerSetConditionMask( - ConditionMask: ULONGLONG, - TypeMask: DWORD, - Condition: BYTE, - ) -> ULONGLONG; -} -extern "C" { - pub fn RtlGetProductInfo( - OSMajorVersion: DWORD, - OSMinorVersion: DWORD, - SpMajorVersion: DWORD, - SpMinorVersion: DWORD, - ReturnedProductType: PDWORD, - ) -> BOOLEAN; -} -pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadInvalidInfoClass: _RTL_UMS_THREAD_INFO_CLASS = 0; -pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadUserContext: _RTL_UMS_THREAD_INFO_CLASS = 1; -pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadPriority: _RTL_UMS_THREAD_INFO_CLASS = 2; -pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadAffinity: _RTL_UMS_THREAD_INFO_CLASS = 3; -pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadTeb: _RTL_UMS_THREAD_INFO_CLASS = 4; -pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadIsSuspended: _RTL_UMS_THREAD_INFO_CLASS = 5; -pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadIsTerminated: _RTL_UMS_THREAD_INFO_CLASS = 6; -pub const _RTL_UMS_THREAD_INFO_CLASS_UmsThreadMaxInfoClass: _RTL_UMS_THREAD_INFO_CLASS = 7; -pub type _RTL_UMS_THREAD_INFO_CLASS = ::std::os::raw::c_int; -pub use self::_RTL_UMS_THREAD_INFO_CLASS as RTL_UMS_THREAD_INFO_CLASS; -pub type PRTL_UMS_THREAD_INFO_CLASS = *mut _RTL_UMS_THREAD_INFO_CLASS; -pub const _RTL_UMS_SCHEDULER_REASON_UmsSchedulerStartup: _RTL_UMS_SCHEDULER_REASON = 0; -pub const _RTL_UMS_SCHEDULER_REASON_UmsSchedulerThreadBlocked: _RTL_UMS_SCHEDULER_REASON = 1; -pub const _RTL_UMS_SCHEDULER_REASON_UmsSchedulerThreadYield: _RTL_UMS_SCHEDULER_REASON = 2; -pub type _RTL_UMS_SCHEDULER_REASON = ::std::os::raw::c_int; -pub use self::_RTL_UMS_SCHEDULER_REASON as RTL_UMS_SCHEDULER_REASON; -pub type PRTL_UMS_SCHEDULER_REASON = *mut _RTL_UMS_SCHEDULER_REASON; -pub type PRTL_UMS_SCHEDULER_ENTRY_POINT = ::std::option::Option< - unsafe extern "C" fn(arg1: RTL_UMS_SCHEDULER_REASON, arg2: ULONG_PTR, arg3: PVOID), ->; -extern "C" { - pub fn RtlCrc32(Buffer: *const ::std::os::raw::c_void, Size: usize, InitialCrc: DWORD) - -> DWORD; -} -extern "C" { - pub fn RtlCrc64( - Buffer: *const ::std::os::raw::c_void, - Size: usize, - InitialCrc: ULONGLONG, - ) -> ULONGLONG; -} -pub const _OS_DEPLOYEMENT_STATE_VALUES_OS_DEPLOYMENT_STANDARD: _OS_DEPLOYEMENT_STATE_VALUES = 1; -pub const _OS_DEPLOYEMENT_STATE_VALUES_OS_DEPLOYMENT_COMPACT: _OS_DEPLOYEMENT_STATE_VALUES = 2; -pub type _OS_DEPLOYEMENT_STATE_VALUES = ::std::os::raw::c_int; -pub use self::_OS_DEPLOYEMENT_STATE_VALUES as OS_DEPLOYEMENT_STATE_VALUES; -extern "C" { - pub fn RtlOsDeploymentState(Flags: DWORD) -> OS_DEPLOYEMENT_STATE_VALUES; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NV_MEMORY_RANGE { - pub BaseAddress: *mut ::std::os::raw::c_void, - pub Length: SIZE_T, -} -pub type NV_MEMORY_RANGE = _NV_MEMORY_RANGE; -pub type PNV_MEMORY_RANGE = *mut _NV_MEMORY_RANGE; -extern "C" { - pub fn RtlGetNonVolatileToken(NvBuffer: PVOID, Size: SIZE_T, NvToken: *mut PVOID) -> DWORD; -} -extern "C" { - pub fn RtlFreeNonVolatileToken(NvToken: PVOID) -> DWORD; -} -extern "C" { - pub fn RtlFlushNonVolatileMemory( - NvToken: PVOID, - NvBuffer: PVOID, - Size: SIZE_T, - Flags: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn RtlDrainNonVolatileFlush(NvToken: PVOID) -> DWORD; -} -extern "C" { - pub fn RtlWriteNonVolatileMemory( - NvToken: PVOID, - NvDestination: *mut ::std::os::raw::c_void, - Source: *const ::std::os::raw::c_void, - Size: SIZE_T, - Flags: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn RtlFillNonVolatileMemory( - NvToken: PVOID, - NvDestination: *mut ::std::os::raw::c_void, - Size: SIZE_T, - Value: BYTE, - Flags: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn RtlFlushNonVolatileMemoryRanges( - NvToken: PVOID, - NvRanges: PNV_MEMORY_RANGE, - NumRanges: SIZE_T, - Flags: DWORD, - ) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CORRELATION_VECTOR { - pub Version: CHAR, - pub Vector: [CHAR; 129usize], -} -pub type PCORRELATION_VECTOR = *mut CORRELATION_VECTOR; -extern "C" { - pub fn RtlInitializeCorrelationVector( - CorrelationVector: PCORRELATION_VECTOR, - Version: ::std::os::raw::c_int, - Guid: *const GUID, - ) -> DWORD; -} -extern "C" { - pub fn RtlIncrementCorrelationVector(CorrelationVector: PCORRELATION_VECTOR) -> DWORD; -} -extern "C" { - pub fn RtlExtendCorrelationVector(CorrelationVector: PCORRELATION_VECTOR) -> DWORD; -} -extern "C" { - pub fn RtlValidateCorrelationVector(Vector: PCORRELATION_VECTOR) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG { - pub Size: DWORD, - pub TriggerId: PCWSTR, -} -pub type CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG = _CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG; -pub type PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG = *mut _CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG; -extern "C" { - pub fn RtlRaiseCustomSystemEventTrigger( - TriggerConfig: PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG, - ) -> DWORD; -} -pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeNone: _IMAGE_POLICY_ENTRY_TYPE = 0; -pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeBool: _IMAGE_POLICY_ENTRY_TYPE = 1; -pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeInt8: _IMAGE_POLICY_ENTRY_TYPE = 2; -pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeUInt8: _IMAGE_POLICY_ENTRY_TYPE = 3; -pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeInt16: _IMAGE_POLICY_ENTRY_TYPE = 4; -pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeUInt16: _IMAGE_POLICY_ENTRY_TYPE = 5; -pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeInt32: _IMAGE_POLICY_ENTRY_TYPE = 6; -pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeUInt32: _IMAGE_POLICY_ENTRY_TYPE = 7; -pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeInt64: _IMAGE_POLICY_ENTRY_TYPE = 8; -pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeUInt64: _IMAGE_POLICY_ENTRY_TYPE = 9; -pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeAnsiString: _IMAGE_POLICY_ENTRY_TYPE = 10; -pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeUnicodeString: _IMAGE_POLICY_ENTRY_TYPE = 11; -pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeOverride: _IMAGE_POLICY_ENTRY_TYPE = 12; -pub const _IMAGE_POLICY_ENTRY_TYPE_ImagePolicyEntryTypeMaximum: _IMAGE_POLICY_ENTRY_TYPE = 13; -pub type _IMAGE_POLICY_ENTRY_TYPE = ::std::os::raw::c_int; -pub use self::_IMAGE_POLICY_ENTRY_TYPE as IMAGE_POLICY_ENTRY_TYPE; -pub const _IMAGE_POLICY_ID_ImagePolicyIdNone: _IMAGE_POLICY_ID = 0; -pub const _IMAGE_POLICY_ID_ImagePolicyIdEtw: _IMAGE_POLICY_ID = 1; -pub const _IMAGE_POLICY_ID_ImagePolicyIdDebug: _IMAGE_POLICY_ID = 2; -pub const _IMAGE_POLICY_ID_ImagePolicyIdCrashDump: _IMAGE_POLICY_ID = 3; -pub const _IMAGE_POLICY_ID_ImagePolicyIdCrashDumpKey: _IMAGE_POLICY_ID = 4; -pub const _IMAGE_POLICY_ID_ImagePolicyIdCrashDumpKeyGuid: _IMAGE_POLICY_ID = 5; -pub const _IMAGE_POLICY_ID_ImagePolicyIdParentSd: _IMAGE_POLICY_ID = 6; -pub const _IMAGE_POLICY_ID_ImagePolicyIdParentSdRev: _IMAGE_POLICY_ID = 7; -pub const _IMAGE_POLICY_ID_ImagePolicyIdSvn: _IMAGE_POLICY_ID = 8; -pub const _IMAGE_POLICY_ID_ImagePolicyIdDeviceId: _IMAGE_POLICY_ID = 9; -pub const _IMAGE_POLICY_ID_ImagePolicyIdCapability: _IMAGE_POLICY_ID = 10; -pub const _IMAGE_POLICY_ID_ImagePolicyIdScenarioId: _IMAGE_POLICY_ID = 11; -pub const _IMAGE_POLICY_ID_ImagePolicyIdMaximum: _IMAGE_POLICY_ID = 12; -pub type _IMAGE_POLICY_ID = ::std::os::raw::c_int; -pub use self::_IMAGE_POLICY_ID as IMAGE_POLICY_ID; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _IMAGE_POLICY_ENTRY { - pub Type: IMAGE_POLICY_ENTRY_TYPE, - pub PolicyId: IMAGE_POLICY_ID, - pub u: _IMAGE_POLICY_ENTRY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _IMAGE_POLICY_ENTRY__bindgen_ty_1 { - pub None: *const ::std::os::raw::c_void, - pub BoolValue: BOOLEAN, - pub Int8Value: INT8, - pub UInt8Value: UINT8, - pub Int16Value: INT16, - pub UInt16Value: UINT16, - pub Int32Value: INT32, - pub UInt32Value: UINT32, - pub Int64Value: INT64, - pub UInt64Value: UINT64, - pub AnsiStringValue: PCSTR, - pub UnicodeStringValue: PCWSTR, -} -pub type IMAGE_POLICY_ENTRY = _IMAGE_POLICY_ENTRY; -pub type PCIMAGE_POLICY_ENTRY = *const IMAGE_POLICY_ENTRY; -#[repr(C)] -pub struct _IMAGE_POLICY_METADATA { - pub Version: BYTE, - pub Reserved0: [BYTE; 7usize], - pub ApplicationId: ULONGLONG, - pub Policies: __IncompleteArrayField, -} -pub type IMAGE_POLICY_METADATA = _IMAGE_POLICY_METADATA; -pub type PCIMAGE_POLICY_METADATA = *const IMAGE_POLICY_METADATA; -extern "C" { - pub fn RtlIsZeroMemory(Buffer: PVOID, Length: SIZE_T) -> BOOLEAN; -} -extern "C" { - pub fn RtlNormalizeSecurityDescriptor( - SecurityDescriptor: *mut PSECURITY_DESCRIPTOR, - SecurityDescriptorLength: DWORD, - NewSecurityDescriptor: *mut PSECURITY_DESCRIPTOR, - NewSecurityDescriptorLength: PDWORD, - CheckOnly: BOOLEAN, - ) -> BOOLEAN; -} -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdUnknown: _RTL_SYSTEM_GLOBAL_DATA_ID = 0; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdRngSeedVersion: _RTL_SYSTEM_GLOBAL_DATA_ID = 1; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdInterruptTime: _RTL_SYSTEM_GLOBAL_DATA_ID = 2; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdTimeZoneBias: _RTL_SYSTEM_GLOBAL_DATA_ID = 3; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdImageNumberLow: _RTL_SYSTEM_GLOBAL_DATA_ID = 4; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdImageNumberHigh: _RTL_SYSTEM_GLOBAL_DATA_ID = 5; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdTimeZoneId: _RTL_SYSTEM_GLOBAL_DATA_ID = 6; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdNtMajorVersion: _RTL_SYSTEM_GLOBAL_DATA_ID = 7; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdNtMinorVersion: _RTL_SYSTEM_GLOBAL_DATA_ID = 8; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdSystemExpirationDate: _RTL_SYSTEM_GLOBAL_DATA_ID = - 9; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdKdDebuggerEnabled: _RTL_SYSTEM_GLOBAL_DATA_ID = 10; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdCyclesPerYield: _RTL_SYSTEM_GLOBAL_DATA_ID = 11; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdSafeBootMode: _RTL_SYSTEM_GLOBAL_DATA_ID = 12; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdLastSystemRITEventTickCount: - _RTL_SYSTEM_GLOBAL_DATA_ID = 13; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdConsoleSharedDataFlags: - _RTL_SYSTEM_GLOBAL_DATA_ID = 14; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdNtSystemRootDrive: _RTL_SYSTEM_GLOBAL_DATA_ID = 15; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdQpcShift: _RTL_SYSTEM_GLOBAL_DATA_ID = 16; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdQpcBypassEnabled: _RTL_SYSTEM_GLOBAL_DATA_ID = 17; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdQpcData: _RTL_SYSTEM_GLOBAL_DATA_ID = 18; -pub const _RTL_SYSTEM_GLOBAL_DATA_ID_GlobalDataIdQpcBias: _RTL_SYSTEM_GLOBAL_DATA_ID = 19; -pub type _RTL_SYSTEM_GLOBAL_DATA_ID = ::std::os::raw::c_int; -pub use self::_RTL_SYSTEM_GLOBAL_DATA_ID as RTL_SYSTEM_GLOBAL_DATA_ID; -pub type PRTL_SYSTEM_GLOBAL_DATA_ID = *mut _RTL_SYSTEM_GLOBAL_DATA_ID; -extern "C" { - pub fn RtlGetSystemGlobalData( - DataId: RTL_SYSTEM_GLOBAL_DATA_ID, - Buffer: PVOID, - Size: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn RtlSetSystemGlobalData( - DataId: RTL_SYSTEM_GLOBAL_DATA_ID, - Buffer: PVOID, - Size: DWORD, - ) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RTL_CRITICAL_SECTION_DEBUG { - pub Type: WORD, - pub CreatorBackTraceIndex: WORD, - pub CriticalSection: *mut _RTL_CRITICAL_SECTION, - pub ProcessLocksList: LIST_ENTRY, - pub EntryCount: DWORD, - pub ContentionCount: DWORD, - pub Flags: DWORD, - pub CreatorBackTraceIndexHigh: WORD, - pub Identifier: WORD, -} -pub type RTL_CRITICAL_SECTION_DEBUG = _RTL_CRITICAL_SECTION_DEBUG; -pub type PRTL_CRITICAL_SECTION_DEBUG = *mut _RTL_CRITICAL_SECTION_DEBUG; -pub type RTL_RESOURCE_DEBUG = _RTL_CRITICAL_SECTION_DEBUG; -pub type PRTL_RESOURCE_DEBUG = *mut _RTL_CRITICAL_SECTION_DEBUG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RTL_CRITICAL_SECTION { - pub DebugInfo: PRTL_CRITICAL_SECTION_DEBUG, - pub LockCount: LONG, - pub RecursionCount: LONG, - pub OwningThread: HANDLE, - pub LockSemaphore: HANDLE, - pub SpinCount: ULONG_PTR, -} -pub type RTL_CRITICAL_SECTION = _RTL_CRITICAL_SECTION; -pub type PRTL_CRITICAL_SECTION = *mut _RTL_CRITICAL_SECTION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RTL_SRWLOCK { - pub Ptr: PVOID, -} -pub type RTL_SRWLOCK = _RTL_SRWLOCK; -pub type PRTL_SRWLOCK = *mut _RTL_SRWLOCK; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RTL_CONDITION_VARIABLE { - pub Ptr: PVOID, -} -pub type RTL_CONDITION_VARIABLE = _RTL_CONDITION_VARIABLE; -pub type PRTL_CONDITION_VARIABLE = *mut _RTL_CONDITION_VARIABLE; -pub type PAPCFUNC = ::std::option::Option; -pub type PVECTORED_EXCEPTION_HANDLER = - ::std::option::Option LONG>; -pub const _HEAP_INFORMATION_CLASS_HeapCompatibilityInformation: _HEAP_INFORMATION_CLASS = 0; -pub const _HEAP_INFORMATION_CLASS_HeapEnableTerminationOnCorruption: _HEAP_INFORMATION_CLASS = 1; -pub const _HEAP_INFORMATION_CLASS_HeapOptimizeResources: _HEAP_INFORMATION_CLASS = 3; -pub const _HEAP_INFORMATION_CLASS_HeapTag: _HEAP_INFORMATION_CLASS = 7; -pub type _HEAP_INFORMATION_CLASS = ::std::os::raw::c_int; -pub use self::_HEAP_INFORMATION_CLASS as HEAP_INFORMATION_CLASS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _HEAP_OPTIMIZE_RESOURCES_INFORMATION { - pub Version: DWORD, - pub Flags: DWORD, -} -pub type HEAP_OPTIMIZE_RESOURCES_INFORMATION = _HEAP_OPTIMIZE_RESOURCES_INFORMATION; -pub type PHEAP_OPTIMIZE_RESOURCES_INFORMATION = *mut _HEAP_OPTIMIZE_RESOURCES_INFORMATION; -pub type WAITORTIMERCALLBACKFUNC = - ::std::option::Option; -pub type WORKERCALLBACKFUNC = ::std::option::Option; -pub type APC_CALLBACK_FUNCTION = - ::std::option::Option; -pub type WAITORTIMERCALLBACK = WAITORTIMERCALLBACKFUNC; -pub type PFLS_CALLBACK_FUNCTION = ::std::option::Option; -pub type PSECURE_MEMORY_CACHE_CALLBACK = - ::std::option::Option BOOLEAN>; -pub const _ACTIVATION_CONTEXT_INFO_CLASS_ActivationContextBasicInformation: - _ACTIVATION_CONTEXT_INFO_CLASS = 1; -pub const _ACTIVATION_CONTEXT_INFO_CLASS_ActivationContextDetailedInformation: - _ACTIVATION_CONTEXT_INFO_CLASS = 2; -pub const _ACTIVATION_CONTEXT_INFO_CLASS_AssemblyDetailedInformationInActivationContext: - _ACTIVATION_CONTEXT_INFO_CLASS = 3; -pub const _ACTIVATION_CONTEXT_INFO_CLASS_FileInformationInAssemblyOfAssemblyInActivationContext: - _ACTIVATION_CONTEXT_INFO_CLASS = 4; -pub const _ACTIVATION_CONTEXT_INFO_CLASS_RunlevelInformationInActivationContext: - _ACTIVATION_CONTEXT_INFO_CLASS = 5; -pub const _ACTIVATION_CONTEXT_INFO_CLASS_CompatibilityInformationInActivationContext: - _ACTIVATION_CONTEXT_INFO_CLASS = 6; -pub const _ACTIVATION_CONTEXT_INFO_CLASS_ActivationContextManifestResourceName: - _ACTIVATION_CONTEXT_INFO_CLASS = 7; -pub const _ACTIVATION_CONTEXT_INFO_CLASS_MaxActivationContextInfoClass: - _ACTIVATION_CONTEXT_INFO_CLASS = 8; -pub const _ACTIVATION_CONTEXT_INFO_CLASS_AssemblyDetailedInformationInActivationContxt: - _ACTIVATION_CONTEXT_INFO_CLASS = 3; -pub const _ACTIVATION_CONTEXT_INFO_CLASS_FileInformationInAssemblyOfAssemblyInActivationContxt: - _ACTIVATION_CONTEXT_INFO_CLASS = 4; -pub type _ACTIVATION_CONTEXT_INFO_CLASS = ::std::os::raw::c_int; -pub use self::_ACTIVATION_CONTEXT_INFO_CLASS as ACTIVATION_CONTEXT_INFO_CLASS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACTIVATION_CONTEXT_QUERY_INDEX { - pub ulAssemblyIndex: DWORD, - pub ulFileIndexInAssembly: DWORD, -} -pub type ACTIVATION_CONTEXT_QUERY_INDEX = _ACTIVATION_CONTEXT_QUERY_INDEX; -pub type PACTIVATION_CONTEXT_QUERY_INDEX = *mut _ACTIVATION_CONTEXT_QUERY_INDEX; -pub type PCACTIVATION_CONTEXT_QUERY_INDEX = *const _ACTIVATION_CONTEXT_QUERY_INDEX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ASSEMBLY_FILE_DETAILED_INFORMATION { - pub ulFlags: DWORD, - pub ulFilenameLength: DWORD, - pub ulPathLength: DWORD, - pub lpFileName: PCWSTR, - pub lpFilePath: PCWSTR, -} -pub type ASSEMBLY_FILE_DETAILED_INFORMATION = _ASSEMBLY_FILE_DETAILED_INFORMATION; -pub type PASSEMBLY_FILE_DETAILED_INFORMATION = *mut _ASSEMBLY_FILE_DETAILED_INFORMATION; -pub type PCASSEMBLY_FILE_DETAILED_INFORMATION = *const ASSEMBLY_FILE_DETAILED_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION { - pub ulFlags: DWORD, - pub ulEncodedAssemblyIdentityLength: DWORD, - pub ulManifestPathType: DWORD, - pub ulManifestPathLength: DWORD, - pub liManifestLastWriteTime: LARGE_INTEGER, - pub ulPolicyPathType: DWORD, - pub ulPolicyPathLength: DWORD, - pub liPolicyLastWriteTime: LARGE_INTEGER, - pub ulMetadataSatelliteRosterIndex: DWORD, - pub ulManifestVersionMajor: DWORD, - pub ulManifestVersionMinor: DWORD, - pub ulPolicyVersionMajor: DWORD, - pub ulPolicyVersionMinor: DWORD, - pub ulAssemblyDirectoryNameLength: DWORD, - pub lpAssemblyEncodedAssemblyIdentity: PCWSTR, - pub lpAssemblyManifestPath: PCWSTR, - pub lpAssemblyPolicyPath: PCWSTR, - pub lpAssemblyDirectoryName: PCWSTR, - pub ulFileCount: DWORD, -} -pub type ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION = - _ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION; -pub type PACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION = - *mut _ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION; -pub type PCACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION = - *const _ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION; -pub const ACTCTX_REQUESTED_RUN_LEVEL_ACTCTX_RUN_LEVEL_UNSPECIFIED: ACTCTX_REQUESTED_RUN_LEVEL = 0; -pub const ACTCTX_REQUESTED_RUN_LEVEL_ACTCTX_RUN_LEVEL_AS_INVOKER: ACTCTX_REQUESTED_RUN_LEVEL = 1; -pub const ACTCTX_REQUESTED_RUN_LEVEL_ACTCTX_RUN_LEVEL_HIGHEST_AVAILABLE: - ACTCTX_REQUESTED_RUN_LEVEL = 2; -pub const ACTCTX_REQUESTED_RUN_LEVEL_ACTCTX_RUN_LEVEL_REQUIRE_ADMIN: ACTCTX_REQUESTED_RUN_LEVEL = 3; -pub const ACTCTX_REQUESTED_RUN_LEVEL_ACTCTX_RUN_LEVEL_NUMBERS: ACTCTX_REQUESTED_RUN_LEVEL = 4; -pub type ACTCTX_REQUESTED_RUN_LEVEL = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION { - pub ulFlags: DWORD, - pub RunLevel: ACTCTX_REQUESTED_RUN_LEVEL, - pub UiAccess: DWORD, -} -pub type ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION = _ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION; -pub type PACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION = *mut _ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION; -pub type PCACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION = - *const _ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION; -pub const ACTCTX_COMPATIBILITY_ELEMENT_TYPE_ACTCTX_COMPATIBILITY_ELEMENT_TYPE_UNKNOWN: - ACTCTX_COMPATIBILITY_ELEMENT_TYPE = 0; -pub const ACTCTX_COMPATIBILITY_ELEMENT_TYPE_ACTCTX_COMPATIBILITY_ELEMENT_TYPE_OS: - ACTCTX_COMPATIBILITY_ELEMENT_TYPE = 1; -pub const ACTCTX_COMPATIBILITY_ELEMENT_TYPE_ACTCTX_COMPATIBILITY_ELEMENT_TYPE_MITIGATION: - ACTCTX_COMPATIBILITY_ELEMENT_TYPE = 2; -pub const ACTCTX_COMPATIBILITY_ELEMENT_TYPE_ACTCTX_COMPATIBILITY_ELEMENT_TYPE_MAXVERSIONTESTED: - ACTCTX_COMPATIBILITY_ELEMENT_TYPE = 3; -pub type ACTCTX_COMPATIBILITY_ELEMENT_TYPE = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _COMPATIBILITY_CONTEXT_ELEMENT { - pub Id: GUID, - pub Type: ACTCTX_COMPATIBILITY_ELEMENT_TYPE, - pub MaxVersionTested: ULONGLONG, -} -pub type COMPATIBILITY_CONTEXT_ELEMENT = _COMPATIBILITY_CONTEXT_ELEMENT; -pub type PCOMPATIBILITY_CONTEXT_ELEMENT = *mut _COMPATIBILITY_CONTEXT_ELEMENT; -pub type PCCOMPATIBILITY_CONTEXT_ELEMENT = *const _COMPATIBILITY_CONTEXT_ELEMENT; -#[repr(C)] -#[derive(Debug)] -pub struct _ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION { - pub ElementCount: DWORD, - pub Elements: __IncompleteArrayField, -} -pub type ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION = - _ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION; -pub type PACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION = - *mut _ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION; -pub type PCACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION = - *const _ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SUPPORTED_OS_INFO { - pub MajorVersion: WORD, - pub MinorVersion: WORD, -} -pub type SUPPORTED_OS_INFO = _SUPPORTED_OS_INFO; -pub type PSUPPORTED_OS_INFO = *mut _SUPPORTED_OS_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MAXVERSIONTESTED_INFO { - pub MaxVersionTested: ULONGLONG, -} -pub type MAXVERSIONTESTED_INFO = _MAXVERSIONTESTED_INFO; -pub type PMAXVERSIONTESTED_INFO = *mut _MAXVERSIONTESTED_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACTIVATION_CONTEXT_DETAILED_INFORMATION { - pub dwFlags: DWORD, - pub ulFormatVersion: DWORD, - pub ulAssemblyCount: DWORD, - pub ulRootManifestPathType: DWORD, - pub ulRootManifestPathChars: DWORD, - pub ulRootConfigurationPathType: DWORD, - pub ulRootConfigurationPathChars: DWORD, - pub ulAppDirPathType: DWORD, - pub ulAppDirPathChars: DWORD, - pub lpRootManifestPath: PCWSTR, - pub lpRootConfigurationPath: PCWSTR, - pub lpAppDirPath: PCWSTR, -} -pub type ACTIVATION_CONTEXT_DETAILED_INFORMATION = _ACTIVATION_CONTEXT_DETAILED_INFORMATION; -pub type PACTIVATION_CONTEXT_DETAILED_INFORMATION = *mut _ACTIVATION_CONTEXT_DETAILED_INFORMATION; -pub type PCACTIVATION_CONTEXT_DETAILED_INFORMATION = - *const _ACTIVATION_CONTEXT_DETAILED_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _HARDWARE_COUNTER_DATA { - pub Type: HARDWARE_COUNTER_TYPE, - pub Reserved: DWORD, - pub Value: DWORD64, -} -pub type HARDWARE_COUNTER_DATA = _HARDWARE_COUNTER_DATA; -pub type PHARDWARE_COUNTER_DATA = *mut _HARDWARE_COUNTER_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PERFORMANCE_DATA { - pub Size: WORD, - pub Version: BYTE, - pub HwCountersCount: BYTE, - pub ContextSwitchCount: DWORD, - pub WaitReasonBitMap: DWORD64, - pub CycleTime: DWORD64, - pub RetryCount: DWORD, - pub Reserved: DWORD, - pub HwCounters: [HARDWARE_COUNTER_DATA; 16usize], -} -pub type PERFORMANCE_DATA = _PERFORMANCE_DATA; -pub type PPERFORMANCE_DATA = *mut _PERFORMANCE_DATA; -extern "C" { - pub fn RtlGetDeviceFamilyInfoEnum( - pullUAPInfo: *mut ULONGLONG, - pulDeviceFamily: *mut DWORD, - pulDeviceForm: *mut DWORD, - ); -} -extern "C" { - pub fn RtlConvertDeviceFamilyInfoToString( - pulDeviceFamilyBufferSize: PDWORD, - pulDeviceFormBufferSize: PDWORD, - DeviceFamily: PWSTR, - DeviceForm: PWSTR, - ) -> DWORD; -} -extern "C" { - pub fn RtlSwitchedVVI( - VersionInfo: PRTL_OSVERSIONINFOEXW, - TypeMask: DWORD, - ConditionMask: ULONGLONG, - ) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EVENTLOGRECORD { - pub Length: DWORD, - pub Reserved: DWORD, - pub RecordNumber: DWORD, - pub TimeGenerated: DWORD, - pub TimeWritten: DWORD, - pub EventID: DWORD, - pub EventType: WORD, - pub NumStrings: WORD, - pub EventCategory: WORD, - pub ReservedFlags: WORD, - pub ClosingRecordNumber: DWORD, - pub StringOffset: DWORD, - pub UserSidLength: DWORD, - pub UserSidOffset: DWORD, - pub DataLength: DWORD, - pub DataOffset: DWORD, -} -pub type EVENTLOGRECORD = _EVENTLOGRECORD; -pub type PEVENTLOGRECORD = *mut _EVENTLOGRECORD; -pub type EVENTSFORLOGFILE = _EVENTSFORLOGFILE; -pub type PEVENTSFORLOGFILE = *mut _EVENTSFORLOGFILE; -pub type PACKEDEVENTINFO = _PACKEDEVENTINFO; -pub type PPACKEDEVENTINFO = *mut _PACKEDEVENTINFO; -#[repr(C)] -#[derive(Debug)] -pub struct _EVENTSFORLOGFILE { - pub ulSize: DWORD, - pub szLogicalLogFile: [WCHAR; 256usize], - pub ulNumRecords: DWORD, - pub pEventLogRecords: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug)] -pub struct _PACKEDEVENTINFO { - pub ulSize: DWORD, - pub ulNumEventsForLogFile: DWORD, - pub ulOffsets: __IncompleteArrayField, -} -pub const _CM_SERVICE_NODE_TYPE_DriverType: _CM_SERVICE_NODE_TYPE = 1; -pub const _CM_SERVICE_NODE_TYPE_FileSystemType: _CM_SERVICE_NODE_TYPE = 2; -pub const _CM_SERVICE_NODE_TYPE_Win32ServiceOwnProcess: _CM_SERVICE_NODE_TYPE = 16; -pub const _CM_SERVICE_NODE_TYPE_Win32ServiceShareProcess: _CM_SERVICE_NODE_TYPE = 32; -pub const _CM_SERVICE_NODE_TYPE_AdapterType: _CM_SERVICE_NODE_TYPE = 4; -pub const _CM_SERVICE_NODE_TYPE_RecognizerType: _CM_SERVICE_NODE_TYPE = 8; -pub type _CM_SERVICE_NODE_TYPE = ::std::os::raw::c_int; -pub use self::_CM_SERVICE_NODE_TYPE as SERVICE_NODE_TYPE; -pub const _CM_SERVICE_LOAD_TYPE_BootLoad: _CM_SERVICE_LOAD_TYPE = 0; -pub const _CM_SERVICE_LOAD_TYPE_SystemLoad: _CM_SERVICE_LOAD_TYPE = 1; -pub const _CM_SERVICE_LOAD_TYPE_AutoLoad: _CM_SERVICE_LOAD_TYPE = 2; -pub const _CM_SERVICE_LOAD_TYPE_DemandLoad: _CM_SERVICE_LOAD_TYPE = 3; -pub const _CM_SERVICE_LOAD_TYPE_DisableLoad: _CM_SERVICE_LOAD_TYPE = 4; -pub type _CM_SERVICE_LOAD_TYPE = ::std::os::raw::c_int; -pub use self::_CM_SERVICE_LOAD_TYPE as SERVICE_LOAD_TYPE; -pub const _CM_ERROR_CONTROL_TYPE_IgnoreError: _CM_ERROR_CONTROL_TYPE = 0; -pub const _CM_ERROR_CONTROL_TYPE_NormalError: _CM_ERROR_CONTROL_TYPE = 1; -pub const _CM_ERROR_CONTROL_TYPE_SevereError: _CM_ERROR_CONTROL_TYPE = 2; -pub const _CM_ERROR_CONTROL_TYPE_CriticalError: _CM_ERROR_CONTROL_TYPE = 3; -pub type _CM_ERROR_CONTROL_TYPE = ::std::os::raw::c_int; -pub use self::_CM_ERROR_CONTROL_TYPE as SERVICE_ERROR_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TAPE_ERASE { - pub Type: DWORD, - pub Immediate: BOOLEAN, -} -pub type TAPE_ERASE = _TAPE_ERASE; -pub type PTAPE_ERASE = *mut _TAPE_ERASE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TAPE_PREPARE { - pub Operation: DWORD, - pub Immediate: BOOLEAN, -} -pub type TAPE_PREPARE = _TAPE_PREPARE; -pub type PTAPE_PREPARE = *mut _TAPE_PREPARE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TAPE_WRITE_MARKS { - pub Type: DWORD, - pub Count: DWORD, - pub Immediate: BOOLEAN, -} -pub type TAPE_WRITE_MARKS = _TAPE_WRITE_MARKS; -pub type PTAPE_WRITE_MARKS = *mut _TAPE_WRITE_MARKS; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _TAPE_GET_POSITION { - pub Type: DWORD, - pub Partition: DWORD, - pub Offset: LARGE_INTEGER, -} -pub type TAPE_GET_POSITION = _TAPE_GET_POSITION; -pub type PTAPE_GET_POSITION = *mut _TAPE_GET_POSITION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _TAPE_SET_POSITION { - pub Method: DWORD, - pub Partition: DWORD, - pub Offset: LARGE_INTEGER, - pub Immediate: BOOLEAN, -} -pub type TAPE_SET_POSITION = _TAPE_SET_POSITION; -pub type PTAPE_SET_POSITION = *mut _TAPE_SET_POSITION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TAPE_GET_DRIVE_PARAMETERS { - pub ECC: BOOLEAN, - pub Compression: BOOLEAN, - pub DataPadding: BOOLEAN, - pub ReportSetmarks: BOOLEAN, - pub DefaultBlockSize: DWORD, - pub MaximumBlockSize: DWORD, - pub MinimumBlockSize: DWORD, - pub MaximumPartitionCount: DWORD, - pub FeaturesLow: DWORD, - pub FeaturesHigh: DWORD, - pub EOTWarningZoneSize: DWORD, -} -pub type TAPE_GET_DRIVE_PARAMETERS = _TAPE_GET_DRIVE_PARAMETERS; -pub type PTAPE_GET_DRIVE_PARAMETERS = *mut _TAPE_GET_DRIVE_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TAPE_SET_DRIVE_PARAMETERS { - pub ECC: BOOLEAN, - pub Compression: BOOLEAN, - pub DataPadding: BOOLEAN, - pub ReportSetmarks: BOOLEAN, - pub EOTWarningZoneSize: DWORD, -} -pub type TAPE_SET_DRIVE_PARAMETERS = _TAPE_SET_DRIVE_PARAMETERS; -pub type PTAPE_SET_DRIVE_PARAMETERS = *mut _TAPE_SET_DRIVE_PARAMETERS; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _TAPE_GET_MEDIA_PARAMETERS { - pub Capacity: LARGE_INTEGER, - pub Remaining: LARGE_INTEGER, - pub BlockSize: DWORD, - pub PartitionCount: DWORD, - pub WriteProtected: BOOLEAN, -} -pub type TAPE_GET_MEDIA_PARAMETERS = _TAPE_GET_MEDIA_PARAMETERS; -pub type PTAPE_GET_MEDIA_PARAMETERS = *mut _TAPE_GET_MEDIA_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TAPE_SET_MEDIA_PARAMETERS { - pub BlockSize: DWORD, -} -pub type TAPE_SET_MEDIA_PARAMETERS = _TAPE_SET_MEDIA_PARAMETERS; -pub type PTAPE_SET_MEDIA_PARAMETERS = *mut _TAPE_SET_MEDIA_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TAPE_CREATE_PARTITION { - pub Method: DWORD, - pub Count: DWORD, - pub Size: DWORD, -} -pub type TAPE_CREATE_PARTITION = _TAPE_CREATE_PARTITION; -pub type PTAPE_CREATE_PARTITION = *mut _TAPE_CREATE_PARTITION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TAPE_WMI_OPERATIONS { - pub Method: DWORD, - pub DataBufferSize: DWORD, - pub DataBuffer: PVOID, -} -pub type TAPE_WMI_OPERATIONS = _TAPE_WMI_OPERATIONS; -pub type PTAPE_WMI_OPERATIONS = *mut _TAPE_WMI_OPERATIONS; -pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveProblemNone: _TAPE_DRIVE_PROBLEM_TYPE = 0; -pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveReadWriteWarning: _TAPE_DRIVE_PROBLEM_TYPE = 1; -pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveReadWriteError: _TAPE_DRIVE_PROBLEM_TYPE = 2; -pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveReadWarning: _TAPE_DRIVE_PROBLEM_TYPE = 3; -pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveWriteWarning: _TAPE_DRIVE_PROBLEM_TYPE = 4; -pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveReadError: _TAPE_DRIVE_PROBLEM_TYPE = 5; -pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveWriteError: _TAPE_DRIVE_PROBLEM_TYPE = 6; -pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveHardwareError: _TAPE_DRIVE_PROBLEM_TYPE = 7; -pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveUnsupportedMedia: _TAPE_DRIVE_PROBLEM_TYPE = 8; -pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveScsiConnectionError: _TAPE_DRIVE_PROBLEM_TYPE = 9; -pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveTimetoClean: _TAPE_DRIVE_PROBLEM_TYPE = 10; -pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveCleanDriveNow: _TAPE_DRIVE_PROBLEM_TYPE = 11; -pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveMediaLifeExpired: _TAPE_DRIVE_PROBLEM_TYPE = 12; -pub const _TAPE_DRIVE_PROBLEM_TYPE_TapeDriveSnappedTape: _TAPE_DRIVE_PROBLEM_TYPE = 13; -pub type _TAPE_DRIVE_PROBLEM_TYPE = ::std::os::raw::c_int; -pub use self::_TAPE_DRIVE_PROBLEM_TYPE as TAPE_DRIVE_PROBLEM_TYPE; -pub type UOW = GUID; -pub type PUOW = *mut GUID; -pub type CRM_PROTOCOL_ID = GUID; -pub type PCRM_PROTOCOL_ID = *mut GUID; -pub type NOTIFICATION_MASK = ULONG; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _TRANSACTION_NOTIFICATION { - pub TransactionKey: PVOID, - pub TransactionNotification: ULONG, - pub TmVirtualClock: LARGE_INTEGER, - pub ArgumentLength: ULONG, -} -pub type TRANSACTION_NOTIFICATION = _TRANSACTION_NOTIFICATION; -pub type PTRANSACTION_NOTIFICATION = *mut _TRANSACTION_NOTIFICATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT { - pub EnlistmentId: GUID, - pub UOW: UOW, -} -pub type TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT = _TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT; -pub type PTRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT = - *mut _TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT { - pub TmIdentity: GUID, - pub Flags: ULONG, -} -pub type TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT = _TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT; -pub type PTRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT = - *mut _TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT; -pub type SAVEPOINT_ID = ULONG; -pub type PSAVEPOINT_ID = *mut ULONG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT { - pub SavepointId: SAVEPOINT_ID, -} -pub type TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT = _TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT; -pub type PTRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT = - *mut _TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT { - pub PropagationCookie: ULONG, - pub UOW: GUID, - pub TmIdentity: GUID, - pub BufferLength: ULONG, -} -pub type TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT = _TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT; -pub type PTRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT = - *mut _TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT { - pub MarshalCookie: ULONG, - pub UOW: GUID, -} -pub type TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT = _TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT; -pub type PTRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT = - *mut _TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT; -pub type TRANSACTION_NOTIFICATION_PROMOTE_ARGUMENT = TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT; -pub type PTRANSACTION_NOTIFICATION_PROMOTE_ARGUMENT = - *mut TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _KCRM_MARSHAL_HEADER { - pub VersionMajor: ULONG, - pub VersionMinor: ULONG, - pub NumProtocols: ULONG, - pub Unused: ULONG, -} -pub type KCRM_MARSHAL_HEADER = _KCRM_MARSHAL_HEADER; -pub type PKCRM_MARSHAL_HEADER = *mut _KCRM_MARSHAL_HEADER; -pub type PRKCRM_MARSHAL_HEADER = *mut _KCRM_MARSHAL_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _KCRM_TRANSACTION_BLOB { - pub UOW: UOW, - pub TmIdentity: GUID, - pub IsolationLevel: ULONG, - pub IsolationFlags: ULONG, - pub Timeout: ULONG, - pub Description: [WCHAR; 64usize], -} -pub type KCRM_TRANSACTION_BLOB = _KCRM_TRANSACTION_BLOB; -pub type PKCRM_TRANSACTION_BLOB = *mut _KCRM_TRANSACTION_BLOB; -pub type PRKCRM_TRANSACTION_BLOB = *mut _KCRM_TRANSACTION_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _KCRM_PROTOCOL_BLOB { - pub ProtocolId: CRM_PROTOCOL_ID, - pub StaticInfoLength: ULONG, - pub TransactionIdInfoLength: ULONG, - pub Unused1: ULONG, - pub Unused2: ULONG, -} -pub type KCRM_PROTOCOL_BLOB = _KCRM_PROTOCOL_BLOB; -pub type PKCRM_PROTOCOL_BLOB = *mut _KCRM_PROTOCOL_BLOB; -pub type PRKCRM_PROTOCOL_BLOB = *mut _KCRM_PROTOCOL_BLOB; -pub const _TRANSACTION_OUTCOME_TransactionOutcomeUndetermined: _TRANSACTION_OUTCOME = 1; -pub const _TRANSACTION_OUTCOME_TransactionOutcomeCommitted: _TRANSACTION_OUTCOME = 2; -pub const _TRANSACTION_OUTCOME_TransactionOutcomeAborted: _TRANSACTION_OUTCOME = 3; -pub type _TRANSACTION_OUTCOME = ::std::os::raw::c_int; -pub use self::_TRANSACTION_OUTCOME as TRANSACTION_OUTCOME; -pub const _TRANSACTION_STATE_TransactionStateNormal: _TRANSACTION_STATE = 1; -pub const _TRANSACTION_STATE_TransactionStateIndoubt: _TRANSACTION_STATE = 2; -pub const _TRANSACTION_STATE_TransactionStateCommittedNotify: _TRANSACTION_STATE = 3; -pub type _TRANSACTION_STATE = ::std::os::raw::c_int; -pub use self::_TRANSACTION_STATE as TRANSACTION_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTION_BASIC_INFORMATION { - pub TransactionId: GUID, - pub State: DWORD, - pub Outcome: DWORD, -} -pub type TRANSACTION_BASIC_INFORMATION = _TRANSACTION_BASIC_INFORMATION; -pub type PTRANSACTION_BASIC_INFORMATION = *mut _TRANSACTION_BASIC_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _TRANSACTIONMANAGER_BASIC_INFORMATION { - pub TmIdentity: GUID, - pub VirtualClock: LARGE_INTEGER, -} -pub type TRANSACTIONMANAGER_BASIC_INFORMATION = _TRANSACTIONMANAGER_BASIC_INFORMATION; -pub type PTRANSACTIONMANAGER_BASIC_INFORMATION = *mut _TRANSACTIONMANAGER_BASIC_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTIONMANAGER_LOG_INFORMATION { - pub LogIdentity: GUID, -} -pub type TRANSACTIONMANAGER_LOG_INFORMATION = _TRANSACTIONMANAGER_LOG_INFORMATION; -pub type PTRANSACTIONMANAGER_LOG_INFORMATION = *mut _TRANSACTIONMANAGER_LOG_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTIONMANAGER_LOGPATH_INFORMATION { - pub LogPathLength: DWORD, - pub LogPath: [WCHAR; 1usize], -} -pub type TRANSACTIONMANAGER_LOGPATH_INFORMATION = _TRANSACTIONMANAGER_LOGPATH_INFORMATION; -pub type PTRANSACTIONMANAGER_LOGPATH_INFORMATION = *mut _TRANSACTIONMANAGER_LOGPATH_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTIONMANAGER_RECOVERY_INFORMATION { - pub LastRecoveredLsn: ULONGLONG, -} -pub type TRANSACTIONMANAGER_RECOVERY_INFORMATION = _TRANSACTIONMANAGER_RECOVERY_INFORMATION; -pub type PTRANSACTIONMANAGER_RECOVERY_INFORMATION = *mut _TRANSACTIONMANAGER_RECOVERY_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTIONMANAGER_OLDEST_INFORMATION { - pub OldestTransactionGuid: GUID, -} -pub type TRANSACTIONMANAGER_OLDEST_INFORMATION = _TRANSACTIONMANAGER_OLDEST_INFORMATION; -pub type PTRANSACTIONMANAGER_OLDEST_INFORMATION = *mut _TRANSACTIONMANAGER_OLDEST_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _TRANSACTION_PROPERTIES_INFORMATION { - pub IsolationLevel: DWORD, - pub IsolationFlags: DWORD, - pub Timeout: LARGE_INTEGER, - pub Outcome: DWORD, - pub DescriptionLength: DWORD, - pub Description: [WCHAR; 1usize], -} -pub type TRANSACTION_PROPERTIES_INFORMATION = _TRANSACTION_PROPERTIES_INFORMATION; -pub type PTRANSACTION_PROPERTIES_INFORMATION = *mut _TRANSACTION_PROPERTIES_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTION_BIND_INFORMATION { - pub TmHandle: HANDLE, -} -pub type TRANSACTION_BIND_INFORMATION = _TRANSACTION_BIND_INFORMATION; -pub type PTRANSACTION_BIND_INFORMATION = *mut _TRANSACTION_BIND_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTION_ENLISTMENT_PAIR { - pub EnlistmentId: GUID, - pub ResourceManagerId: GUID, -} -pub type TRANSACTION_ENLISTMENT_PAIR = _TRANSACTION_ENLISTMENT_PAIR; -pub type PTRANSACTION_ENLISTMENT_PAIR = *mut _TRANSACTION_ENLISTMENT_PAIR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTION_ENLISTMENTS_INFORMATION { - pub NumberOfEnlistments: DWORD, - pub EnlistmentPair: [TRANSACTION_ENLISTMENT_PAIR; 1usize], -} -pub type TRANSACTION_ENLISTMENTS_INFORMATION = _TRANSACTION_ENLISTMENTS_INFORMATION; -pub type PTRANSACTION_ENLISTMENTS_INFORMATION = *mut _TRANSACTION_ENLISTMENTS_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION { - pub SuperiorEnlistmentPair: TRANSACTION_ENLISTMENT_PAIR, -} -pub type TRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION = _TRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION; -pub type PTRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION = - *mut _TRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RESOURCEMANAGER_BASIC_INFORMATION { - pub ResourceManagerId: GUID, - pub DescriptionLength: DWORD, - pub Description: [WCHAR; 1usize], -} -pub type RESOURCEMANAGER_BASIC_INFORMATION = _RESOURCEMANAGER_BASIC_INFORMATION; -pub type PRESOURCEMANAGER_BASIC_INFORMATION = *mut _RESOURCEMANAGER_BASIC_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RESOURCEMANAGER_COMPLETION_INFORMATION { - pub IoCompletionPortHandle: HANDLE, - pub CompletionKey: ULONG_PTR, -} -pub type RESOURCEMANAGER_COMPLETION_INFORMATION = _RESOURCEMANAGER_COMPLETION_INFORMATION; -pub type PRESOURCEMANAGER_COMPLETION_INFORMATION = *mut _RESOURCEMANAGER_COMPLETION_INFORMATION; -pub const _TRANSACTION_INFORMATION_CLASS_TransactionBasicInformation: - _TRANSACTION_INFORMATION_CLASS = 0; -pub const _TRANSACTION_INFORMATION_CLASS_TransactionPropertiesInformation: - _TRANSACTION_INFORMATION_CLASS = 1; -pub const _TRANSACTION_INFORMATION_CLASS_TransactionEnlistmentInformation: - _TRANSACTION_INFORMATION_CLASS = 2; -pub const _TRANSACTION_INFORMATION_CLASS_TransactionSuperiorEnlistmentInformation: - _TRANSACTION_INFORMATION_CLASS = 3; -pub const _TRANSACTION_INFORMATION_CLASS_TransactionBindInformation: - _TRANSACTION_INFORMATION_CLASS = 4; -pub const _TRANSACTION_INFORMATION_CLASS_TransactionDTCPrivateInformation: - _TRANSACTION_INFORMATION_CLASS = 5; -pub type _TRANSACTION_INFORMATION_CLASS = ::std::os::raw::c_int; -pub use self::_TRANSACTION_INFORMATION_CLASS as TRANSACTION_INFORMATION_CLASS; -pub const _TRANSACTIONMANAGER_INFORMATION_CLASS_TransactionManagerBasicInformation: - _TRANSACTIONMANAGER_INFORMATION_CLASS = 0; -pub const _TRANSACTIONMANAGER_INFORMATION_CLASS_TransactionManagerLogInformation: - _TRANSACTIONMANAGER_INFORMATION_CLASS = 1; -pub const _TRANSACTIONMANAGER_INFORMATION_CLASS_TransactionManagerLogPathInformation: - _TRANSACTIONMANAGER_INFORMATION_CLASS = 2; -pub const _TRANSACTIONMANAGER_INFORMATION_CLASS_TransactionManagerRecoveryInformation: - _TRANSACTIONMANAGER_INFORMATION_CLASS = 4; -pub const _TRANSACTIONMANAGER_INFORMATION_CLASS_TransactionManagerOnlineProbeInformation: - _TRANSACTIONMANAGER_INFORMATION_CLASS = 3; -pub const _TRANSACTIONMANAGER_INFORMATION_CLASS_TransactionManagerOldestTransactionInformation: - _TRANSACTIONMANAGER_INFORMATION_CLASS = 5; -pub type _TRANSACTIONMANAGER_INFORMATION_CLASS = ::std::os::raw::c_int; -pub use self::_TRANSACTIONMANAGER_INFORMATION_CLASS as TRANSACTIONMANAGER_INFORMATION_CLASS; -pub const _RESOURCEMANAGER_INFORMATION_CLASS_ResourceManagerBasicInformation: - _RESOURCEMANAGER_INFORMATION_CLASS = 0; -pub const _RESOURCEMANAGER_INFORMATION_CLASS_ResourceManagerCompletionInformation: - _RESOURCEMANAGER_INFORMATION_CLASS = 1; -pub type _RESOURCEMANAGER_INFORMATION_CLASS = ::std::os::raw::c_int; -pub use self::_RESOURCEMANAGER_INFORMATION_CLASS as RESOURCEMANAGER_INFORMATION_CLASS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENLISTMENT_BASIC_INFORMATION { - pub EnlistmentId: GUID, - pub TransactionId: GUID, - pub ResourceManagerId: GUID, -} -pub type ENLISTMENT_BASIC_INFORMATION = _ENLISTMENT_BASIC_INFORMATION; -pub type PENLISTMENT_BASIC_INFORMATION = *mut _ENLISTMENT_BASIC_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENLISTMENT_CRM_INFORMATION { - pub CrmTransactionManagerId: GUID, - pub CrmResourceManagerId: GUID, - pub CrmEnlistmentId: GUID, -} -pub type ENLISTMENT_CRM_INFORMATION = _ENLISTMENT_CRM_INFORMATION; -pub type PENLISTMENT_CRM_INFORMATION = *mut _ENLISTMENT_CRM_INFORMATION; -pub const _ENLISTMENT_INFORMATION_CLASS_EnlistmentBasicInformation: _ENLISTMENT_INFORMATION_CLASS = - 0; -pub const _ENLISTMENT_INFORMATION_CLASS_EnlistmentRecoveryInformation: - _ENLISTMENT_INFORMATION_CLASS = 1; -pub const _ENLISTMENT_INFORMATION_CLASS_EnlistmentCrmInformation: _ENLISTMENT_INFORMATION_CLASS = 2; -pub type _ENLISTMENT_INFORMATION_CLASS = ::std::os::raw::c_int; -pub use self::_ENLISTMENT_INFORMATION_CLASS as ENLISTMENT_INFORMATION_CLASS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTION_LIST_ENTRY { - pub UOW: UOW, -} -pub type TRANSACTION_LIST_ENTRY = _TRANSACTION_LIST_ENTRY; -pub type PTRANSACTION_LIST_ENTRY = *mut _TRANSACTION_LIST_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSACTION_LIST_INFORMATION { - pub NumberOfTransactions: DWORD, - pub TransactionInformation: [TRANSACTION_LIST_ENTRY; 1usize], -} -pub type TRANSACTION_LIST_INFORMATION = _TRANSACTION_LIST_INFORMATION; -pub type PTRANSACTION_LIST_INFORMATION = *mut _TRANSACTION_LIST_INFORMATION; -pub const _KTMOBJECT_TYPE_KTMOBJECT_TRANSACTION: _KTMOBJECT_TYPE = 0; -pub const _KTMOBJECT_TYPE_KTMOBJECT_TRANSACTION_MANAGER: _KTMOBJECT_TYPE = 1; -pub const _KTMOBJECT_TYPE_KTMOBJECT_RESOURCE_MANAGER: _KTMOBJECT_TYPE = 2; -pub const _KTMOBJECT_TYPE_KTMOBJECT_ENLISTMENT: _KTMOBJECT_TYPE = 3; -pub const _KTMOBJECT_TYPE_KTMOBJECT_INVALID: _KTMOBJECT_TYPE = 4; -pub type _KTMOBJECT_TYPE = ::std::os::raw::c_int; -pub use self::_KTMOBJECT_TYPE as KTMOBJECT_TYPE; -pub type PKTMOBJECT_TYPE = *mut _KTMOBJECT_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _KTMOBJECT_CURSOR { - pub LastQuery: GUID, - pub ObjectIdCount: DWORD, - pub ObjectIds: [GUID; 1usize], -} -pub type KTMOBJECT_CURSOR = _KTMOBJECT_CURSOR; -pub type PKTMOBJECT_CURSOR = *mut _KTMOBJECT_CURSOR; -pub type TP_VERSION = DWORD; -pub type PTP_VERSION = *mut DWORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TP_CALLBACK_INSTANCE { - _unused: [u8; 0], -} -pub type TP_CALLBACK_INSTANCE = _TP_CALLBACK_INSTANCE; -pub type PTP_CALLBACK_INSTANCE = *mut _TP_CALLBACK_INSTANCE; -pub type PTP_SIMPLE_CALLBACK = - ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TP_POOL { - _unused: [u8; 0], -} -pub type TP_POOL = _TP_POOL; -pub type PTP_POOL = *mut _TP_POOL; -pub const _TP_CALLBACK_PRIORITY_TP_CALLBACK_PRIORITY_HIGH: _TP_CALLBACK_PRIORITY = 0; -pub const _TP_CALLBACK_PRIORITY_TP_CALLBACK_PRIORITY_NORMAL: _TP_CALLBACK_PRIORITY = 1; -pub const _TP_CALLBACK_PRIORITY_TP_CALLBACK_PRIORITY_LOW: _TP_CALLBACK_PRIORITY = 2; -pub const _TP_CALLBACK_PRIORITY_TP_CALLBACK_PRIORITY_INVALID: _TP_CALLBACK_PRIORITY = 3; -pub const _TP_CALLBACK_PRIORITY_TP_CALLBACK_PRIORITY_COUNT: _TP_CALLBACK_PRIORITY = 3; -pub type _TP_CALLBACK_PRIORITY = ::std::os::raw::c_int; -pub use self::_TP_CALLBACK_PRIORITY as TP_CALLBACK_PRIORITY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TP_POOL_STACK_INFORMATION { - pub StackReserve: SIZE_T, - pub StackCommit: SIZE_T, -} -pub type TP_POOL_STACK_INFORMATION = _TP_POOL_STACK_INFORMATION; -pub type PTP_POOL_STACK_INFORMATION = *mut _TP_POOL_STACK_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TP_CLEANUP_GROUP { - _unused: [u8; 0], -} -pub type TP_CLEANUP_GROUP = _TP_CLEANUP_GROUP; -pub type PTP_CLEANUP_GROUP = *mut _TP_CLEANUP_GROUP; -pub type PTP_CLEANUP_GROUP_CANCEL_CALLBACK = - ::std::option::Option; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _TP_CALLBACK_ENVIRON_V3 { - pub Version: TP_VERSION, - pub Pool: PTP_POOL, - pub CleanupGroup: PTP_CLEANUP_GROUP, - pub CleanupGroupCancelCallback: PTP_CLEANUP_GROUP_CANCEL_CALLBACK, - pub RaceDll: PVOID, - pub ActivationContext: *mut _ACTIVATION_CONTEXT, - pub FinalizationCallback: PTP_SIMPLE_CALLBACK, - pub u: _TP_CALLBACK_ENVIRON_V3__bindgen_ty_1, - pub CallbackPriority: TP_CALLBACK_PRIORITY, - pub Size: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _TP_CALLBACK_ENVIRON_V3__bindgen_ty_1 { - pub Flags: DWORD, - pub s: _TP_CALLBACK_ENVIRON_V3__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _TP_CALLBACK_ENVIRON_V3__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _TP_CALLBACK_ENVIRON_V3__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn LongFunction(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_LongFunction(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn Persistent(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_Persistent(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn Private(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } - } - #[inline] - pub fn set_Private(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 30u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - LongFunction: DWORD, - Persistent: DWORD, - Private: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let LongFunction: u32 = unsafe { ::std::mem::transmute(LongFunction) }; - LongFunction as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let Persistent: u32 = unsafe { ::std::mem::transmute(Persistent) }; - Persistent as u64 - }); - __bindgen_bitfield_unit.set(2usize, 30u8, { - let Private: u32 = unsafe { ::std::mem::transmute(Private) }; - Private as u64 - }); - __bindgen_bitfield_unit - } -} -pub type TP_CALLBACK_ENVIRON_V3 = _TP_CALLBACK_ENVIRON_V3; -pub type TP_CALLBACK_ENVIRON = TP_CALLBACK_ENVIRON_V3; -pub type PTP_CALLBACK_ENVIRON = *mut TP_CALLBACK_ENVIRON_V3; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TP_WORK { - _unused: [u8; 0], -} -pub type TP_WORK = _TP_WORK; -pub type PTP_WORK = *mut _TP_WORK; -pub type PTP_WORK_CALLBACK = ::std::option::Option< - unsafe extern "C" fn(Instance: PTP_CALLBACK_INSTANCE, Context: PVOID, Work: PTP_WORK), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TP_TIMER { - _unused: [u8; 0], -} -pub type TP_TIMER = _TP_TIMER; -pub type PTP_TIMER = *mut _TP_TIMER; -pub type PTP_TIMER_CALLBACK = ::std::option::Option< - unsafe extern "C" fn(Instance: PTP_CALLBACK_INSTANCE, Context: PVOID, Timer: PTP_TIMER), ->; -pub type TP_WAIT_RESULT = DWORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TP_WAIT { - _unused: [u8; 0], -} -pub type TP_WAIT = _TP_WAIT; -pub type PTP_WAIT = *mut _TP_WAIT; -pub type PTP_WAIT_CALLBACK = ::std::option::Option< - unsafe extern "C" fn( - Instance: PTP_CALLBACK_INSTANCE, - Context: PVOID, - Wait: PTP_WAIT, - WaitResult: TP_WAIT_RESULT, - ), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TP_IO { - _unused: [u8; 0], -} -pub type TP_IO = _TP_IO; -pub type PTP_IO = *mut _TP_IO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TEB { - _unused: [u8; 0], -} -pub type WPARAM = UINT_PTR; -pub type LPARAM = LONG_PTR; -pub type LRESULT = LONG_PTR; -pub type SPHANDLE = *mut HANDLE; -pub type LPHANDLE = *mut HANDLE; -pub type HGLOBAL = HANDLE; -pub type HLOCAL = HANDLE; -pub type GLOBALHANDLE = HANDLE; -pub type LOCALHANDLE = HANDLE; -pub type FARPROC = ::std::option::Option INT_PTR>; -pub type NEARPROC = ::std::option::Option INT_PTR>; -pub type PROC = ::std::option::Option INT_PTR>; -pub type ATOM = WORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HKEY__ { - pub unused: ::std::os::raw::c_int, -} -pub type HKEY = *mut HKEY__; -pub type PHKEY = *mut HKEY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HMETAFILE__ { - pub unused: ::std::os::raw::c_int, -} -pub type HMETAFILE = *mut HMETAFILE__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HINSTANCE__ { - pub unused: ::std::os::raw::c_int, -} -pub type HINSTANCE = *mut HINSTANCE__; -pub type HMODULE = HINSTANCE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HRGN__ { - pub unused: ::std::os::raw::c_int, -} -pub type HRGN = *mut HRGN__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HRSRC__ { - pub unused: ::std::os::raw::c_int, -} -pub type HRSRC = *mut HRSRC__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HSPRITE__ { - pub unused: ::std::os::raw::c_int, -} -pub type HSPRITE = *mut HSPRITE__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HLSURF__ { - pub unused: ::std::os::raw::c_int, -} -pub type HLSURF = *mut HLSURF__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HSTR__ { - pub unused: ::std::os::raw::c_int, -} -pub type HSTR = *mut HSTR__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HTASK__ { - pub unused: ::std::os::raw::c_int, -} -pub type HTASK = *mut HTASK__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HWINSTA__ { - pub unused: ::std::os::raw::c_int, -} -pub type HWINSTA = *mut HWINSTA__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HKL__ { - pub unused: ::std::os::raw::c_int, -} -pub type HKL = *mut HKL__; -pub type HFILE = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILETIME { - pub dwLowDateTime: DWORD, - pub dwHighDateTime: DWORD, -} -pub type FILETIME = _FILETIME; -pub type PFILETIME = *mut _FILETIME; -pub type LPFILETIME = *mut _FILETIME; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HWND__ { - pub unused: ::std::os::raw::c_int, -} -pub type HWND = *mut HWND__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HHOOK__ { - pub unused: ::std::os::raw::c_int, -} -pub type HHOOK = *mut HHOOK__; -pub type HGDIOBJ = *mut ::std::os::raw::c_void; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HACCEL__ { - pub unused: ::std::os::raw::c_int, -} -pub type HACCEL = *mut HACCEL__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HBITMAP__ { - pub unused: ::std::os::raw::c_int, -} -pub type HBITMAP = *mut HBITMAP__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HBRUSH__ { - pub unused: ::std::os::raw::c_int, -} -pub type HBRUSH = *mut HBRUSH__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HCOLORSPACE__ { - pub unused: ::std::os::raw::c_int, -} -pub type HCOLORSPACE = *mut HCOLORSPACE__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HDC__ { - pub unused: ::std::os::raw::c_int, -} -pub type HDC = *mut HDC__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HGLRC__ { - pub unused: ::std::os::raw::c_int, -} -pub type HGLRC = *mut HGLRC__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HDESK__ { - pub unused: ::std::os::raw::c_int, -} -pub type HDESK = *mut HDESK__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HENHMETAFILE__ { - pub unused: ::std::os::raw::c_int, -} -pub type HENHMETAFILE = *mut HENHMETAFILE__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HFONT__ { - pub unused: ::std::os::raw::c_int, -} -pub type HFONT = *mut HFONT__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HICON__ { - pub unused: ::std::os::raw::c_int, -} -pub type HICON = *mut HICON__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HMENU__ { - pub unused: ::std::os::raw::c_int, -} -pub type HMENU = *mut HMENU__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HPALETTE__ { - pub unused: ::std::os::raw::c_int, -} -pub type HPALETTE = *mut HPALETTE__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HPEN__ { - pub unused: ::std::os::raw::c_int, -} -pub type HPEN = *mut HPEN__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HWINEVENTHOOK__ { - pub unused: ::std::os::raw::c_int, -} -pub type HWINEVENTHOOK = *mut HWINEVENTHOOK__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HMONITOR__ { - pub unused: ::std::os::raw::c_int, -} -pub type HMONITOR = *mut HMONITOR__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HUMPD__ { - pub unused: ::std::os::raw::c_int, -} -pub type HUMPD = *mut HUMPD__; -pub type HCURSOR = HICON; -pub type COLORREF = DWORD; -pub type LPCOLORREF = *mut DWORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRECT { - pub left: LONG, - pub top: LONG, - pub right: LONG, - pub bottom: LONG, -} -pub type RECT = tagRECT; -pub type PRECT = *mut tagRECT; -pub type NPRECT = *mut tagRECT; -pub type LPRECT = *mut tagRECT; -pub type LPCRECT = *const RECT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RECTL { - pub left: LONG, - pub top: LONG, - pub right: LONG, - pub bottom: LONG, -} -pub type RECTL = _RECTL; -pub type PRECTL = *mut _RECTL; -pub type LPRECTL = *mut _RECTL; -pub type LPCRECTL = *const RECTL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPOINT { - pub x: LONG, - pub y: LONG, -} -pub type POINT = tagPOINT; -pub type PPOINT = *mut tagPOINT; -pub type NPPOINT = *mut tagPOINT; -pub type LPPOINT = *mut tagPOINT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _POINTL { - pub x: LONG, - pub y: LONG, -} -pub type POINTL = _POINTL; -pub type PPOINTL = *mut _POINTL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSIZE { - pub cx: LONG, - pub cy: LONG, -} -pub type SIZE = tagSIZE; -pub type PSIZE = *mut tagSIZE; -pub type LPSIZE = *mut tagSIZE; -pub type SIZEL = SIZE; -pub type PSIZEL = *mut SIZE; -pub type LPSIZEL = *mut SIZE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPOINTS { - pub x: SHORT, - pub y: SHORT, -} -pub type POINTS = tagPOINTS; -pub type PPOINTS = *mut tagPOINTS; -pub type LPPOINTS = *mut tagPOINTS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct APP_LOCAL_DEVICE_ID { - pub value: [BYTE; 32usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DPI_AWARENESS_CONTEXT__ { - pub unused: ::std::os::raw::c_int, -} -pub type DPI_AWARENESS_CONTEXT = *mut DPI_AWARENESS_CONTEXT__; -pub const DPI_AWARENESS_DPI_AWARENESS_INVALID: DPI_AWARENESS = -1; -pub const DPI_AWARENESS_DPI_AWARENESS_UNAWARE: DPI_AWARENESS = 0; -pub const DPI_AWARENESS_DPI_AWARENESS_SYSTEM_AWARE: DPI_AWARENESS = 1; -pub const DPI_AWARENESS_DPI_AWARENESS_PER_MONITOR_AWARE: DPI_AWARENESS = 2; -pub type DPI_AWARENESS = ::std::os::raw::c_int; -pub const DPI_HOSTING_BEHAVIOR_DPI_HOSTING_BEHAVIOR_INVALID: DPI_HOSTING_BEHAVIOR = -1; -pub const DPI_HOSTING_BEHAVIOR_DPI_HOSTING_BEHAVIOR_DEFAULT: DPI_HOSTING_BEHAVIOR = 0; -pub const DPI_HOSTING_BEHAVIOR_DPI_HOSTING_BEHAVIOR_MIXED: DPI_HOSTING_BEHAVIOR = 1; -pub type DPI_HOSTING_BEHAVIOR = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SECURITY_ATTRIBUTES { - pub nLength: DWORD, - pub lpSecurityDescriptor: LPVOID, - pub bInheritHandle: BOOL, -} -pub type SECURITY_ATTRIBUTES = _SECURITY_ATTRIBUTES; -pub type PSECURITY_ATTRIBUTES = *mut _SECURITY_ATTRIBUTES; -pub type LPSECURITY_ATTRIBUTES = *mut _SECURITY_ATTRIBUTES; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _OVERLAPPED { - pub Internal: ULONG_PTR, - pub InternalHigh: ULONG_PTR, - pub __bindgen_anon_1: _OVERLAPPED__bindgen_ty_1, - pub hEvent: HANDLE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _OVERLAPPED__bindgen_ty_1 { - pub __bindgen_anon_1: _OVERLAPPED__bindgen_ty_1__bindgen_ty_1, - pub Pointer: PVOID, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OVERLAPPED__bindgen_ty_1__bindgen_ty_1 { - pub Offset: DWORD, - pub OffsetHigh: DWORD, -} -pub type OVERLAPPED = _OVERLAPPED; -pub type LPOVERLAPPED = *mut _OVERLAPPED; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OVERLAPPED_ENTRY { - pub lpCompletionKey: ULONG_PTR, - pub lpOverlapped: LPOVERLAPPED, - pub Internal: ULONG_PTR, - pub dwNumberOfBytesTransferred: DWORD, -} -pub type OVERLAPPED_ENTRY = _OVERLAPPED_ENTRY; -pub type LPOVERLAPPED_ENTRY = *mut _OVERLAPPED_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEMTIME { - pub wYear: WORD, - pub wMonth: WORD, - pub wDayOfWeek: WORD, - pub wDay: WORD, - pub wHour: WORD, - pub wMinute: WORD, - pub wSecond: WORD, - pub wMilliseconds: WORD, -} -pub type SYSTEMTIME = _SYSTEMTIME; -pub type PSYSTEMTIME = *mut _SYSTEMTIME; -pub type LPSYSTEMTIME = *mut _SYSTEMTIME; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WIN32_FIND_DATAA { - pub dwFileAttributes: DWORD, - pub ftCreationTime: FILETIME, - pub ftLastAccessTime: FILETIME, - pub ftLastWriteTime: FILETIME, - pub nFileSizeHigh: DWORD, - pub nFileSizeLow: DWORD, - pub dwReserved0: DWORD, - pub dwReserved1: DWORD, - pub cFileName: [CHAR; 260usize], - pub cAlternateFileName: [CHAR; 14usize], -} -pub type WIN32_FIND_DATAA = _WIN32_FIND_DATAA; -pub type PWIN32_FIND_DATAA = *mut _WIN32_FIND_DATAA; -pub type LPWIN32_FIND_DATAA = *mut _WIN32_FIND_DATAA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WIN32_FIND_DATAW { - pub dwFileAttributes: DWORD, - pub ftCreationTime: FILETIME, - pub ftLastAccessTime: FILETIME, - pub ftLastWriteTime: FILETIME, - pub nFileSizeHigh: DWORD, - pub nFileSizeLow: DWORD, - pub dwReserved0: DWORD, - pub dwReserved1: DWORD, - pub cFileName: [WCHAR; 260usize], - pub cAlternateFileName: [WCHAR; 14usize], -} -pub type WIN32_FIND_DATAW = _WIN32_FIND_DATAW; -pub type PWIN32_FIND_DATAW = *mut _WIN32_FIND_DATAW; -pub type LPWIN32_FIND_DATAW = *mut _WIN32_FIND_DATAW; -pub type WIN32_FIND_DATA = WIN32_FIND_DATAA; -pub type PWIN32_FIND_DATA = PWIN32_FIND_DATAA; -pub type LPWIN32_FIND_DATA = LPWIN32_FIND_DATAA; -pub const _FINDEX_INFO_LEVELS_FindExInfoStandard: _FINDEX_INFO_LEVELS = 0; -pub const _FINDEX_INFO_LEVELS_FindExInfoBasic: _FINDEX_INFO_LEVELS = 1; -pub const _FINDEX_INFO_LEVELS_FindExInfoMaxInfoLevel: _FINDEX_INFO_LEVELS = 2; -pub type _FINDEX_INFO_LEVELS = ::std::os::raw::c_int; -pub use self::_FINDEX_INFO_LEVELS as FINDEX_INFO_LEVELS; -pub const _FINDEX_SEARCH_OPS_FindExSearchNameMatch: _FINDEX_SEARCH_OPS = 0; -pub const _FINDEX_SEARCH_OPS_FindExSearchLimitToDirectories: _FINDEX_SEARCH_OPS = 1; -pub const _FINDEX_SEARCH_OPS_FindExSearchLimitToDevices: _FINDEX_SEARCH_OPS = 2; -pub const _FINDEX_SEARCH_OPS_FindExSearchMaxSearchOp: _FINDEX_SEARCH_OPS = 3; -pub type _FINDEX_SEARCH_OPS = ::std::os::raw::c_int; -pub use self::_FINDEX_SEARCH_OPS as FINDEX_SEARCH_OPS; -pub const _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS_ReadDirectoryNotifyInformation: - _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS = 1; -pub const _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS_ReadDirectoryNotifyExtendedInformation: - _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS = 2; -pub const _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS_ReadDirectoryNotifyFullInformation: - _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS = 3; -pub const _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS_ReadDirectoryNotifyMaximumInformation: - _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS = 4; -pub type _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS = ::std::os::raw::c_int; -pub use self::_READ_DIRECTORY_NOTIFY_INFORMATION_CLASS as READ_DIRECTORY_NOTIFY_INFORMATION_CLASS; -pub type PREAD_DIRECTORY_NOTIFY_INFORMATION_CLASS = *mut _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS; -pub const _GET_FILEEX_INFO_LEVELS_GetFileExInfoStandard: _GET_FILEEX_INFO_LEVELS = 0; -pub const _GET_FILEEX_INFO_LEVELS_GetFileExMaxInfoLevel: _GET_FILEEX_INFO_LEVELS = 1; -pub type _GET_FILEEX_INFO_LEVELS = ::std::os::raw::c_int; -pub use self::_GET_FILEEX_INFO_LEVELS as GET_FILEEX_INFO_LEVELS; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileBasicInfo: _FILE_INFO_BY_HANDLE_CLASS = 0; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileStandardInfo: _FILE_INFO_BY_HANDLE_CLASS = 1; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileNameInfo: _FILE_INFO_BY_HANDLE_CLASS = 2; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileRenameInfo: _FILE_INFO_BY_HANDLE_CLASS = 3; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileDispositionInfo: _FILE_INFO_BY_HANDLE_CLASS = 4; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileAllocationInfo: _FILE_INFO_BY_HANDLE_CLASS = 5; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileEndOfFileInfo: _FILE_INFO_BY_HANDLE_CLASS = 6; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileStreamInfo: _FILE_INFO_BY_HANDLE_CLASS = 7; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileCompressionInfo: _FILE_INFO_BY_HANDLE_CLASS = 8; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileAttributeTagInfo: _FILE_INFO_BY_HANDLE_CLASS = 9; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileIdBothDirectoryInfo: _FILE_INFO_BY_HANDLE_CLASS = 10; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileIdBothDirectoryRestartInfo: _FILE_INFO_BY_HANDLE_CLASS = - 11; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileIoPriorityHintInfo: _FILE_INFO_BY_HANDLE_CLASS = 12; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileRemoteProtocolInfo: _FILE_INFO_BY_HANDLE_CLASS = 13; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileFullDirectoryInfo: _FILE_INFO_BY_HANDLE_CLASS = 14; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileFullDirectoryRestartInfo: _FILE_INFO_BY_HANDLE_CLASS = 15; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileStorageInfo: _FILE_INFO_BY_HANDLE_CLASS = 16; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileAlignmentInfo: _FILE_INFO_BY_HANDLE_CLASS = 17; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileIdInfo: _FILE_INFO_BY_HANDLE_CLASS = 18; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileIdExtdDirectoryInfo: _FILE_INFO_BY_HANDLE_CLASS = 19; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileIdExtdDirectoryRestartInfo: _FILE_INFO_BY_HANDLE_CLASS = - 20; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileDispositionInfoEx: _FILE_INFO_BY_HANDLE_CLASS = 21; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileRenameInfoEx: _FILE_INFO_BY_HANDLE_CLASS = 22; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileCaseSensitiveInfo: _FILE_INFO_BY_HANDLE_CLASS = 23; -pub const _FILE_INFO_BY_HANDLE_CLASS_FileNormalizedNameInfo: _FILE_INFO_BY_HANDLE_CLASS = 24; -pub const _FILE_INFO_BY_HANDLE_CLASS_MaximumFileInfoByHandleClass: _FILE_INFO_BY_HANDLE_CLASS = 25; -pub type _FILE_INFO_BY_HANDLE_CLASS = ::std::os::raw::c_int; -pub use self::_FILE_INFO_BY_HANDLE_CLASS as FILE_INFO_BY_HANDLE_CLASS; -pub type PFILE_INFO_BY_HANDLE_CLASS = *mut _FILE_INFO_BY_HANDLE_CLASS; -pub type CRITICAL_SECTION = RTL_CRITICAL_SECTION; -pub type PCRITICAL_SECTION = PRTL_CRITICAL_SECTION; -pub type LPCRITICAL_SECTION = PRTL_CRITICAL_SECTION; -pub type CRITICAL_SECTION_DEBUG = RTL_CRITICAL_SECTION_DEBUG; -pub type PCRITICAL_SECTION_DEBUG = PRTL_CRITICAL_SECTION_DEBUG; -pub type LPCRITICAL_SECTION_DEBUG = PRTL_CRITICAL_SECTION_DEBUG; -pub type LPOVERLAPPED_COMPLETION_ROUTINE = ::std::option::Option< - unsafe extern "C" fn( - dwErrorCode: DWORD, - dwNumberOfBytesTransfered: DWORD, - lpOverlapped: LPOVERLAPPED, - ), ->; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROCESS_HEAP_ENTRY { - pub lpData: PVOID, - pub cbData: DWORD, - pub cbOverhead: BYTE, - pub iRegionIndex: BYTE, - pub wFlags: WORD, - pub __bindgen_anon_1: _PROCESS_HEAP_ENTRY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROCESS_HEAP_ENTRY__bindgen_ty_1 { - pub Block: _PROCESS_HEAP_ENTRY__bindgen_ty_1__bindgen_ty_1, - pub Region: _PROCESS_HEAP_ENTRY__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_HEAP_ENTRY__bindgen_ty_1__bindgen_ty_1 { - pub hMem: HANDLE, - pub dwReserved: [DWORD; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_HEAP_ENTRY__bindgen_ty_1__bindgen_ty_2 { - pub dwCommittedSize: DWORD, - pub dwUnCommittedSize: DWORD, - pub lpFirstBlock: LPVOID, - pub lpLastBlock: LPVOID, -} -pub type PROCESS_HEAP_ENTRY = _PROCESS_HEAP_ENTRY; -pub type LPPROCESS_HEAP_ENTRY = *mut _PROCESS_HEAP_ENTRY; -pub type PPROCESS_HEAP_ENTRY = *mut _PROCESS_HEAP_ENTRY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _REASON_CONTEXT { - pub Version: ULONG, - pub Flags: DWORD, - pub Reason: _REASON_CONTEXT__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _REASON_CONTEXT__bindgen_ty_1 { - pub Detailed: _REASON_CONTEXT__bindgen_ty_1__bindgen_ty_1, - pub SimpleReasonString: LPWSTR, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REASON_CONTEXT__bindgen_ty_1__bindgen_ty_1 { - pub LocalizedReasonModule: HMODULE, - pub LocalizedReasonId: ULONG, - pub ReasonStringCount: ULONG, - pub ReasonStrings: *mut LPWSTR, -} -pub type REASON_CONTEXT = _REASON_CONTEXT; -pub type PREASON_CONTEXT = *mut _REASON_CONTEXT; -pub type PTHREAD_START_ROUTINE = - ::std::option::Option DWORD>; -pub type LPTHREAD_START_ROUTINE = PTHREAD_START_ROUTINE; -pub type PENCLAVE_ROUTINE = - ::std::option::Option LPVOID>; -pub type LPENCLAVE_ROUTINE = PENCLAVE_ROUTINE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EXCEPTION_DEBUG_INFO { - pub ExceptionRecord: EXCEPTION_RECORD, - pub dwFirstChance: DWORD, -} -pub type EXCEPTION_DEBUG_INFO = _EXCEPTION_DEBUG_INFO; -pub type LPEXCEPTION_DEBUG_INFO = *mut _EXCEPTION_DEBUG_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CREATE_THREAD_DEBUG_INFO { - pub hThread: HANDLE, - pub lpThreadLocalBase: LPVOID, - pub lpStartAddress: LPTHREAD_START_ROUTINE, -} -pub type CREATE_THREAD_DEBUG_INFO = _CREATE_THREAD_DEBUG_INFO; -pub type LPCREATE_THREAD_DEBUG_INFO = *mut _CREATE_THREAD_DEBUG_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CREATE_PROCESS_DEBUG_INFO { - pub hFile: HANDLE, - pub hProcess: HANDLE, - pub hThread: HANDLE, - pub lpBaseOfImage: LPVOID, - pub dwDebugInfoFileOffset: DWORD, - pub nDebugInfoSize: DWORD, - pub lpThreadLocalBase: LPVOID, - pub lpStartAddress: LPTHREAD_START_ROUTINE, - pub lpImageName: LPVOID, - pub fUnicode: WORD, -} -pub type CREATE_PROCESS_DEBUG_INFO = _CREATE_PROCESS_DEBUG_INFO; -pub type LPCREATE_PROCESS_DEBUG_INFO = *mut _CREATE_PROCESS_DEBUG_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EXIT_THREAD_DEBUG_INFO { - pub dwExitCode: DWORD, -} -pub type EXIT_THREAD_DEBUG_INFO = _EXIT_THREAD_DEBUG_INFO; -pub type LPEXIT_THREAD_DEBUG_INFO = *mut _EXIT_THREAD_DEBUG_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EXIT_PROCESS_DEBUG_INFO { - pub dwExitCode: DWORD, -} -pub type EXIT_PROCESS_DEBUG_INFO = _EXIT_PROCESS_DEBUG_INFO; -pub type LPEXIT_PROCESS_DEBUG_INFO = *mut _EXIT_PROCESS_DEBUG_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LOAD_DLL_DEBUG_INFO { - pub hFile: HANDLE, - pub lpBaseOfDll: LPVOID, - pub dwDebugInfoFileOffset: DWORD, - pub nDebugInfoSize: DWORD, - pub lpImageName: LPVOID, - pub fUnicode: WORD, -} -pub type LOAD_DLL_DEBUG_INFO = _LOAD_DLL_DEBUG_INFO; -pub type LPLOAD_DLL_DEBUG_INFO = *mut _LOAD_DLL_DEBUG_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _UNLOAD_DLL_DEBUG_INFO { - pub lpBaseOfDll: LPVOID, -} -pub type UNLOAD_DLL_DEBUG_INFO = _UNLOAD_DLL_DEBUG_INFO; -pub type LPUNLOAD_DLL_DEBUG_INFO = *mut _UNLOAD_DLL_DEBUG_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OUTPUT_DEBUG_STRING_INFO { - pub lpDebugStringData: LPSTR, - pub fUnicode: WORD, - pub nDebugStringLength: WORD, -} -pub type OUTPUT_DEBUG_STRING_INFO = _OUTPUT_DEBUG_STRING_INFO; -pub type LPOUTPUT_DEBUG_STRING_INFO = *mut _OUTPUT_DEBUG_STRING_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RIP_INFO { - pub dwError: DWORD, - pub dwType: DWORD, -} -pub type RIP_INFO = _RIP_INFO; -pub type LPRIP_INFO = *mut _RIP_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DEBUG_EVENT { - pub dwDebugEventCode: DWORD, - pub dwProcessId: DWORD, - pub dwThreadId: DWORD, - pub u: _DEBUG_EVENT__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DEBUG_EVENT__bindgen_ty_1 { - pub Exception: EXCEPTION_DEBUG_INFO, - pub CreateThread: CREATE_THREAD_DEBUG_INFO, - pub CreateProcessInfo: CREATE_PROCESS_DEBUG_INFO, - pub ExitThread: EXIT_THREAD_DEBUG_INFO, - pub ExitProcess: EXIT_PROCESS_DEBUG_INFO, - pub LoadDll: LOAD_DLL_DEBUG_INFO, - pub UnloadDll: UNLOAD_DLL_DEBUG_INFO, - pub DebugString: OUTPUT_DEBUG_STRING_INFO, - pub RipInfo: RIP_INFO, -} -pub type DEBUG_EVENT = _DEBUG_EVENT; -pub type LPDEBUG_EVENT = *mut _DEBUG_EVENT; -pub type LPCONTEXT = PCONTEXT; -extern "C" { - pub fn IsApiSetImplemented(Contract: PCSTR) -> BOOL; -} -extern "C" { - pub fn SetEnvironmentStringsW(NewEnvironment: LPWCH) -> BOOL; -} -extern "C" { - pub fn GetStdHandle(nStdHandle: DWORD) -> HANDLE; -} -extern "C" { - pub fn SetStdHandle(nStdHandle: DWORD, hHandle: HANDLE) -> BOOL; -} -extern "C" { - pub fn SetStdHandleEx(nStdHandle: DWORD, hHandle: HANDLE, phPrevValue: PHANDLE) -> BOOL; -} -extern "C" { - pub fn GetCommandLineA() -> LPSTR; -} -extern "C" { - pub fn GetCommandLineW() -> LPWSTR; -} -extern "C" { - pub fn GetEnvironmentStrings() -> LPCH; -} -extern "C" { - pub fn GetEnvironmentStringsW() -> LPWCH; -} -extern "C" { - pub fn FreeEnvironmentStringsA(penv: LPCH) -> BOOL; -} -extern "C" { - pub fn FreeEnvironmentStringsW(penv: LPWCH) -> BOOL; -} -extern "C" { - pub fn GetEnvironmentVariableA(lpName: LPCSTR, lpBuffer: LPSTR, nSize: DWORD) -> DWORD; -} -extern "C" { - pub fn GetEnvironmentVariableW(lpName: LPCWSTR, lpBuffer: LPWSTR, nSize: DWORD) -> DWORD; -} -extern "C" { - pub fn SetEnvironmentVariableA(lpName: LPCSTR, lpValue: LPCSTR) -> BOOL; -} -extern "C" { - pub fn SetEnvironmentVariableW(lpName: LPCWSTR, lpValue: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn ExpandEnvironmentStringsA(lpSrc: LPCSTR, lpDst: LPSTR, nSize: DWORD) -> DWORD; -} -extern "C" { - pub fn ExpandEnvironmentStringsW(lpSrc: LPCWSTR, lpDst: LPWSTR, nSize: DWORD) -> DWORD; -} -extern "C" { - pub fn SetCurrentDirectoryA(lpPathName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn SetCurrentDirectoryW(lpPathName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn GetCurrentDirectoryA(nBufferLength: DWORD, lpBuffer: LPSTR) -> DWORD; -} -extern "C" { - pub fn GetCurrentDirectoryW(nBufferLength: DWORD, lpBuffer: LPWSTR) -> DWORD; -} -extern "C" { - pub fn SearchPathW( - lpPath: LPCWSTR, - lpFileName: LPCWSTR, - lpExtension: LPCWSTR, - nBufferLength: DWORD, - lpBuffer: LPWSTR, - lpFilePart: *mut LPWSTR, - ) -> DWORD; -} -extern "C" { - pub fn SearchPathA( - lpPath: LPCSTR, - lpFileName: LPCSTR, - lpExtension: LPCSTR, - nBufferLength: DWORD, - lpBuffer: LPSTR, - lpFilePart: *mut LPSTR, - ) -> DWORD; -} -extern "C" { - pub fn NeedCurrentDirectoryForExePathA(ExeName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn NeedCurrentDirectoryForExePathW(ExeName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn CompareFileTime(lpFileTime1: *const FILETIME, lpFileTime2: *const FILETIME) -> LONG; -} -extern "C" { - pub fn CreateDirectoryA( - lpPathName: LPCSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - ) -> BOOL; -} -extern "C" { - pub fn CreateDirectoryW( - lpPathName: LPCWSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - ) -> BOOL; -} -extern "C" { - pub fn CreateFileA( - lpFileName: LPCSTR, - dwDesiredAccess: DWORD, - dwShareMode: DWORD, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - dwCreationDisposition: DWORD, - dwFlagsAndAttributes: DWORD, - hTemplateFile: HANDLE, - ) -> HANDLE; -} -extern "C" { - pub fn CreateFileW( - lpFileName: LPCWSTR, - dwDesiredAccess: DWORD, - dwShareMode: DWORD, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - dwCreationDisposition: DWORD, - dwFlagsAndAttributes: DWORD, - hTemplateFile: HANDLE, - ) -> HANDLE; -} -extern "C" { - pub fn DefineDosDeviceW(dwFlags: DWORD, lpDeviceName: LPCWSTR, lpTargetPath: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn DeleteFileA(lpFileName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn DeleteFileW(lpFileName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn DeleteVolumeMountPointW(lpszVolumeMountPoint: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn FileTimeToLocalFileTime( - lpFileTime: *const FILETIME, - lpLocalFileTime: LPFILETIME, - ) -> BOOL; -} -extern "C" { - pub fn FindClose(hFindFile: HANDLE) -> BOOL; -} -extern "C" { - pub fn FindCloseChangeNotification(hChangeHandle: HANDLE) -> BOOL; -} -extern "C" { - pub fn FindFirstChangeNotificationA( - lpPathName: LPCSTR, - bWatchSubtree: BOOL, - dwNotifyFilter: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn FindFirstChangeNotificationW( - lpPathName: LPCWSTR, - bWatchSubtree: BOOL, - dwNotifyFilter: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn FindFirstFileA(lpFileName: LPCSTR, lpFindFileData: LPWIN32_FIND_DATAA) -> HANDLE; -} -extern "C" { - pub fn FindFirstFileW(lpFileName: LPCWSTR, lpFindFileData: LPWIN32_FIND_DATAW) -> HANDLE; -} -extern "C" { - pub fn FindFirstFileExA( - lpFileName: LPCSTR, - fInfoLevelId: FINDEX_INFO_LEVELS, - lpFindFileData: LPVOID, - fSearchOp: FINDEX_SEARCH_OPS, - lpSearchFilter: LPVOID, - dwAdditionalFlags: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn FindFirstFileExW( - lpFileName: LPCWSTR, - fInfoLevelId: FINDEX_INFO_LEVELS, - lpFindFileData: LPVOID, - fSearchOp: FINDEX_SEARCH_OPS, - lpSearchFilter: LPVOID, - dwAdditionalFlags: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn FindFirstVolumeW(lpszVolumeName: LPWSTR, cchBufferLength: DWORD) -> HANDLE; -} -extern "C" { - pub fn FindNextChangeNotification(hChangeHandle: HANDLE) -> BOOL; -} -extern "C" { - pub fn FindNextFileA(hFindFile: HANDLE, lpFindFileData: LPWIN32_FIND_DATAA) -> BOOL; -} -extern "C" { - pub fn FindNextFileW(hFindFile: HANDLE, lpFindFileData: LPWIN32_FIND_DATAW) -> BOOL; -} -extern "C" { - pub fn FindNextVolumeW( - hFindVolume: HANDLE, - lpszVolumeName: LPWSTR, - cchBufferLength: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn FindVolumeClose(hFindVolume: HANDLE) -> BOOL; -} -extern "C" { - pub fn FlushFileBuffers(hFile: HANDLE) -> BOOL; -} -extern "C" { - pub fn GetDiskFreeSpaceA( - lpRootPathName: LPCSTR, - lpSectorsPerCluster: LPDWORD, - lpBytesPerSector: LPDWORD, - lpNumberOfFreeClusters: LPDWORD, - lpTotalNumberOfClusters: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetDiskFreeSpaceW( - lpRootPathName: LPCWSTR, - lpSectorsPerCluster: LPDWORD, - lpBytesPerSector: LPDWORD, - lpNumberOfFreeClusters: LPDWORD, - lpTotalNumberOfClusters: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetDiskFreeSpaceExA( - lpDirectoryName: LPCSTR, - lpFreeBytesAvailableToCaller: PULARGE_INTEGER, - lpTotalNumberOfBytes: PULARGE_INTEGER, - lpTotalNumberOfFreeBytes: PULARGE_INTEGER, - ) -> BOOL; -} -extern "C" { - pub fn GetDiskFreeSpaceExW( - lpDirectoryName: LPCWSTR, - lpFreeBytesAvailableToCaller: PULARGE_INTEGER, - lpTotalNumberOfBytes: PULARGE_INTEGER, - lpTotalNumberOfFreeBytes: PULARGE_INTEGER, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DISK_SPACE_INFORMATION { - pub ActualTotalAllocationUnits: ULONGLONG, - pub ActualAvailableAllocationUnits: ULONGLONG, - pub ActualPoolUnavailableAllocationUnits: ULONGLONG, - pub CallerTotalAllocationUnits: ULONGLONG, - pub CallerAvailableAllocationUnits: ULONGLONG, - pub CallerPoolUnavailableAllocationUnits: ULONGLONG, - pub UsedAllocationUnits: ULONGLONG, - pub TotalReservedAllocationUnits: ULONGLONG, - pub VolumeStorageReserveAllocationUnits: ULONGLONG, - pub AvailableCommittedAllocationUnits: ULONGLONG, - pub PoolAvailableAllocationUnits: ULONGLONG, - pub SectorsPerAllocationUnit: DWORD, - pub BytesPerSector: DWORD, -} -extern "C" { - pub fn GetDiskSpaceInformationA( - rootPath: LPCSTR, - diskSpaceInfo: *mut DISK_SPACE_INFORMATION, - ) -> HRESULT; -} -extern "C" { - pub fn GetDiskSpaceInformationW( - rootPath: LPCWSTR, - diskSpaceInfo: *mut DISK_SPACE_INFORMATION, - ) -> HRESULT; -} -extern "C" { - pub fn GetDriveTypeA(lpRootPathName: LPCSTR) -> UINT; -} -extern "C" { - pub fn GetDriveTypeW(lpRootPathName: LPCWSTR) -> UINT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WIN32_FILE_ATTRIBUTE_DATA { - pub dwFileAttributes: DWORD, - pub ftCreationTime: FILETIME, - pub ftLastAccessTime: FILETIME, - pub ftLastWriteTime: FILETIME, - pub nFileSizeHigh: DWORD, - pub nFileSizeLow: DWORD, -} -pub type WIN32_FILE_ATTRIBUTE_DATA = _WIN32_FILE_ATTRIBUTE_DATA; -pub type LPWIN32_FILE_ATTRIBUTE_DATA = *mut _WIN32_FILE_ATTRIBUTE_DATA; -extern "C" { - pub fn GetFileAttributesA(lpFileName: LPCSTR) -> DWORD; -} -extern "C" { - pub fn GetFileAttributesW(lpFileName: LPCWSTR) -> DWORD; -} -extern "C" { - pub fn GetFileAttributesExA( - lpFileName: LPCSTR, - fInfoLevelId: GET_FILEEX_INFO_LEVELS, - lpFileInformation: LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn GetFileAttributesExW( - lpFileName: LPCWSTR, - fInfoLevelId: GET_FILEEX_INFO_LEVELS, - lpFileInformation: LPVOID, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BY_HANDLE_FILE_INFORMATION { - pub dwFileAttributes: DWORD, - pub ftCreationTime: FILETIME, - pub ftLastAccessTime: FILETIME, - pub ftLastWriteTime: FILETIME, - pub dwVolumeSerialNumber: DWORD, - pub nFileSizeHigh: DWORD, - pub nFileSizeLow: DWORD, - pub nNumberOfLinks: DWORD, - pub nFileIndexHigh: DWORD, - pub nFileIndexLow: DWORD, -} -pub type BY_HANDLE_FILE_INFORMATION = _BY_HANDLE_FILE_INFORMATION; -pub type PBY_HANDLE_FILE_INFORMATION = *mut _BY_HANDLE_FILE_INFORMATION; -pub type LPBY_HANDLE_FILE_INFORMATION = *mut _BY_HANDLE_FILE_INFORMATION; -extern "C" { - pub fn GetFileInformationByHandle( - hFile: HANDLE, - lpFileInformation: LPBY_HANDLE_FILE_INFORMATION, - ) -> BOOL; -} -extern "C" { - pub fn GetFileSize(hFile: HANDLE, lpFileSizeHigh: LPDWORD) -> DWORD; -} -extern "C" { - pub fn GetFileSizeEx(hFile: HANDLE, lpFileSize: PLARGE_INTEGER) -> BOOL; -} -extern "C" { - pub fn GetFileType(hFile: HANDLE) -> DWORD; -} -extern "C" { - pub fn GetFinalPathNameByHandleA( - hFile: HANDLE, - lpszFilePath: LPSTR, - cchFilePath: DWORD, - dwFlags: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetFinalPathNameByHandleW( - hFile: HANDLE, - lpszFilePath: LPWSTR, - cchFilePath: DWORD, - dwFlags: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetFileTime( - hFile: HANDLE, - lpCreationTime: LPFILETIME, - lpLastAccessTime: LPFILETIME, - lpLastWriteTime: LPFILETIME, - ) -> BOOL; -} -extern "C" { - pub fn GetFullPathNameW( - lpFileName: LPCWSTR, - nBufferLength: DWORD, - lpBuffer: LPWSTR, - lpFilePart: *mut LPWSTR, - ) -> DWORD; -} -extern "C" { - pub fn GetFullPathNameA( - lpFileName: LPCSTR, - nBufferLength: DWORD, - lpBuffer: LPSTR, - lpFilePart: *mut LPSTR, - ) -> DWORD; -} -extern "C" { - pub fn GetLogicalDrives() -> DWORD; -} -extern "C" { - pub fn GetLogicalDriveStringsW(nBufferLength: DWORD, lpBuffer: LPWSTR) -> DWORD; -} -extern "C" { - pub fn GetLongPathNameA(lpszShortPath: LPCSTR, lpszLongPath: LPSTR, cchBuffer: DWORD) -> DWORD; -} -extern "C" { - pub fn GetLongPathNameW( - lpszShortPath: LPCWSTR, - lpszLongPath: LPWSTR, - cchBuffer: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn AreShortNamesEnabled(Handle: HANDLE, Enabled: *mut BOOL) -> BOOL; -} -extern "C" { - pub fn GetShortPathNameW( - lpszLongPath: LPCWSTR, - lpszShortPath: LPWSTR, - cchBuffer: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetTempFileNameW( - lpPathName: LPCWSTR, - lpPrefixString: LPCWSTR, - uUnique: UINT, - lpTempFileName: LPWSTR, - ) -> UINT; -} -extern "C" { - pub fn GetVolumeInformationByHandleW( - hFile: HANDLE, - lpVolumeNameBuffer: LPWSTR, - nVolumeNameSize: DWORD, - lpVolumeSerialNumber: LPDWORD, - lpMaximumComponentLength: LPDWORD, - lpFileSystemFlags: LPDWORD, - lpFileSystemNameBuffer: LPWSTR, - nFileSystemNameSize: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetVolumeInformationW( - lpRootPathName: LPCWSTR, - lpVolumeNameBuffer: LPWSTR, - nVolumeNameSize: DWORD, - lpVolumeSerialNumber: LPDWORD, - lpMaximumComponentLength: LPDWORD, - lpFileSystemFlags: LPDWORD, - lpFileSystemNameBuffer: LPWSTR, - nFileSystemNameSize: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetVolumePathNameW( - lpszFileName: LPCWSTR, - lpszVolumePathName: LPWSTR, - cchBufferLength: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn LocalFileTimeToFileTime( - lpLocalFileTime: *const FILETIME, - lpFileTime: LPFILETIME, - ) -> BOOL; -} -extern "C" { - pub fn LockFile( - hFile: HANDLE, - dwFileOffsetLow: DWORD, - dwFileOffsetHigh: DWORD, - nNumberOfBytesToLockLow: DWORD, - nNumberOfBytesToLockHigh: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn LockFileEx( - hFile: HANDLE, - dwFlags: DWORD, - dwReserved: DWORD, - nNumberOfBytesToLockLow: DWORD, - nNumberOfBytesToLockHigh: DWORD, - lpOverlapped: LPOVERLAPPED, - ) -> BOOL; -} -extern "C" { - pub fn QueryDosDeviceW(lpDeviceName: LPCWSTR, lpTargetPath: LPWSTR, ucchMax: DWORD) -> DWORD; -} -extern "C" { - pub fn ReadFile( - hFile: HANDLE, - lpBuffer: LPVOID, - nNumberOfBytesToRead: DWORD, - lpNumberOfBytesRead: LPDWORD, - lpOverlapped: LPOVERLAPPED, - ) -> BOOL; -} -extern "C" { - pub fn ReadFileEx( - hFile: HANDLE, - lpBuffer: LPVOID, - nNumberOfBytesToRead: DWORD, - lpOverlapped: LPOVERLAPPED, - lpCompletionRoutine: LPOVERLAPPED_COMPLETION_ROUTINE, - ) -> BOOL; -} -extern "C" { - pub fn ReadFileScatter( - hFile: HANDLE, - aSegmentArray: *mut FILE_SEGMENT_ELEMENT, - nNumberOfBytesToRead: DWORD, - lpReserved: LPDWORD, - lpOverlapped: LPOVERLAPPED, - ) -> BOOL; -} -extern "C" { - pub fn RemoveDirectoryA(lpPathName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn RemoveDirectoryW(lpPathName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn SetEndOfFile(hFile: HANDLE) -> BOOL; -} -extern "C" { - pub fn SetFileAttributesA(lpFileName: LPCSTR, dwFileAttributes: DWORD) -> BOOL; -} -extern "C" { - pub fn SetFileAttributesW(lpFileName: LPCWSTR, dwFileAttributes: DWORD) -> BOOL; -} -extern "C" { - pub fn SetFileInformationByHandle( - hFile: HANDLE, - FileInformationClass: FILE_INFO_BY_HANDLE_CLASS, - lpFileInformation: LPVOID, - dwBufferSize: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetFilePointer( - hFile: HANDLE, - lDistanceToMove: LONG, - lpDistanceToMoveHigh: PLONG, - dwMoveMethod: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn SetFilePointerEx( - hFile: HANDLE, - liDistanceToMove: LARGE_INTEGER, - lpNewFilePointer: PLARGE_INTEGER, - dwMoveMethod: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetFileTime( - hFile: HANDLE, - lpCreationTime: *const FILETIME, - lpLastAccessTime: *const FILETIME, - lpLastWriteTime: *const FILETIME, - ) -> BOOL; -} -extern "C" { - pub fn SetFileValidData(hFile: HANDLE, ValidDataLength: LONGLONG) -> BOOL; -} -extern "C" { - pub fn UnlockFile( - hFile: HANDLE, - dwFileOffsetLow: DWORD, - dwFileOffsetHigh: DWORD, - nNumberOfBytesToUnlockLow: DWORD, - nNumberOfBytesToUnlockHigh: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn UnlockFileEx( - hFile: HANDLE, - dwReserved: DWORD, - nNumberOfBytesToUnlockLow: DWORD, - nNumberOfBytesToUnlockHigh: DWORD, - lpOverlapped: LPOVERLAPPED, - ) -> BOOL; -} -extern "C" { - pub fn WriteFile( - hFile: HANDLE, - lpBuffer: LPCVOID, - nNumberOfBytesToWrite: DWORD, - lpNumberOfBytesWritten: LPDWORD, - lpOverlapped: LPOVERLAPPED, - ) -> BOOL; -} -extern "C" { - pub fn WriteFileEx( - hFile: HANDLE, - lpBuffer: LPCVOID, - nNumberOfBytesToWrite: DWORD, - lpOverlapped: LPOVERLAPPED, - lpCompletionRoutine: LPOVERLAPPED_COMPLETION_ROUTINE, - ) -> BOOL; -} -extern "C" { - pub fn WriteFileGather( - hFile: HANDLE, - aSegmentArray: *mut FILE_SEGMENT_ELEMENT, - nNumberOfBytesToWrite: DWORD, - lpReserved: LPDWORD, - lpOverlapped: LPOVERLAPPED, - ) -> BOOL; -} -extern "C" { - pub fn GetTempPathW(nBufferLength: DWORD, lpBuffer: LPWSTR) -> DWORD; -} -extern "C" { - pub fn GetVolumeNameForVolumeMountPointW( - lpszVolumeMountPoint: LPCWSTR, - lpszVolumeName: LPWSTR, - cchBufferLength: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetVolumePathNamesForVolumeNameW( - lpszVolumeName: LPCWSTR, - lpszVolumePathNames: LPWCH, - cchBufferLength: DWORD, - lpcchReturnLength: PDWORD, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CREATEFILE2_EXTENDED_PARAMETERS { - pub dwSize: DWORD, - pub dwFileAttributes: DWORD, - pub dwFileFlags: DWORD, - pub dwSecurityQosFlags: DWORD, - pub lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - pub hTemplateFile: HANDLE, -} -pub type CREATEFILE2_EXTENDED_PARAMETERS = _CREATEFILE2_EXTENDED_PARAMETERS; -pub type PCREATEFILE2_EXTENDED_PARAMETERS = *mut _CREATEFILE2_EXTENDED_PARAMETERS; -pub type LPCREATEFILE2_EXTENDED_PARAMETERS = *mut _CREATEFILE2_EXTENDED_PARAMETERS; -extern "C" { - pub fn CreateFile2( - lpFileName: LPCWSTR, - dwDesiredAccess: DWORD, - dwShareMode: DWORD, - dwCreationDisposition: DWORD, - pCreateExParams: LPCREATEFILE2_EXTENDED_PARAMETERS, - ) -> HANDLE; -} -extern "C" { - pub fn SetFileIoOverlappedRange( - FileHandle: HANDLE, - OverlappedRangeStart: PUCHAR, - Length: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn GetCompressedFileSizeA(lpFileName: LPCSTR, lpFileSizeHigh: LPDWORD) -> DWORD; -} -extern "C" { - pub fn GetCompressedFileSizeW(lpFileName: LPCWSTR, lpFileSizeHigh: LPDWORD) -> DWORD; -} -pub const _STREAM_INFO_LEVELS_FindStreamInfoStandard: _STREAM_INFO_LEVELS = 0; -pub const _STREAM_INFO_LEVELS_FindStreamInfoMaxInfoLevel: _STREAM_INFO_LEVELS = 1; -pub type _STREAM_INFO_LEVELS = ::std::os::raw::c_int; -pub use self::_STREAM_INFO_LEVELS as STREAM_INFO_LEVELS; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _WIN32_FIND_STREAM_DATA { - pub StreamSize: LARGE_INTEGER, - pub cStreamName: [WCHAR; 296usize], -} -pub type WIN32_FIND_STREAM_DATA = _WIN32_FIND_STREAM_DATA; -pub type PWIN32_FIND_STREAM_DATA = *mut _WIN32_FIND_STREAM_DATA; -extern "C" { - pub fn FindFirstStreamW( - lpFileName: LPCWSTR, - InfoLevel: STREAM_INFO_LEVELS, - lpFindStreamData: LPVOID, - dwFlags: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn FindNextStreamW(hFindStream: HANDLE, lpFindStreamData: LPVOID) -> BOOL; -} -extern "C" { - pub fn AreFileApisANSI() -> BOOL; -} -extern "C" { - pub fn GetTempPathA(nBufferLength: DWORD, lpBuffer: LPSTR) -> DWORD; -} -extern "C" { - pub fn FindFirstFileNameW( - lpFileName: LPCWSTR, - dwFlags: DWORD, - StringLength: LPDWORD, - LinkName: PWSTR, - ) -> HANDLE; -} -extern "C" { - pub fn FindNextFileNameW(hFindStream: HANDLE, StringLength: LPDWORD, LinkName: PWSTR) -> BOOL; -} -extern "C" { - pub fn GetVolumeInformationA( - lpRootPathName: LPCSTR, - lpVolumeNameBuffer: LPSTR, - nVolumeNameSize: DWORD, - lpVolumeSerialNumber: LPDWORD, - lpMaximumComponentLength: LPDWORD, - lpFileSystemFlags: LPDWORD, - lpFileSystemNameBuffer: LPSTR, - nFileSystemNameSize: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetTempFileNameA( - lpPathName: LPCSTR, - lpPrefixString: LPCSTR, - uUnique: UINT, - lpTempFileName: LPSTR, - ) -> UINT; -} -extern "C" { - pub fn SetFileApisToOEM(); -} -extern "C" { - pub fn SetFileApisToANSI(); -} -extern "C" { - pub fn GetTempPath2W(BufferLength: DWORD, Buffer: LPWSTR) -> DWORD; -} -extern "C" { - pub fn GetTempPath2A(BufferLength: DWORD, Buffer: LPSTR) -> DWORD; -} -extern "C" { - pub fn CopyFileFromAppW( - lpExistingFileName: LPCWSTR, - lpNewFileName: LPCWSTR, - bFailIfExists: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn CreateDirectoryFromAppW( - lpPathName: LPCWSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - ) -> BOOL; -} -extern "C" { - pub fn CreateFileFromAppW( - lpFileName: LPCWSTR, - dwDesiredAccess: DWORD, - dwShareMode: DWORD, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - dwCreationDisposition: DWORD, - dwFlagsAndAttributes: DWORD, - hTemplateFile: HANDLE, - ) -> HANDLE; -} -extern "C" { - pub fn CreateFile2FromAppW( - lpFileName: LPCWSTR, - dwDesiredAccess: DWORD, - dwShareMode: DWORD, - dwCreationDisposition: DWORD, - pCreateExParams: LPCREATEFILE2_EXTENDED_PARAMETERS, - ) -> HANDLE; -} -extern "C" { - pub fn DeleteFileFromAppW(lpFileName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn FindFirstFileExFromAppW( - lpFileName: LPCWSTR, - fInfoLevelId: FINDEX_INFO_LEVELS, - lpFindFileData: LPVOID, - fSearchOp: FINDEX_SEARCH_OPS, - lpSearchFilter: LPVOID, - dwAdditionalFlags: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn GetFileAttributesExFromAppW( - lpFileName: LPCWSTR, - fInfoLevelId: GET_FILEEX_INFO_LEVELS, - lpFileInformation: LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn MoveFileFromAppW(lpExistingFileName: LPCWSTR, lpNewFileName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn RemoveDirectoryFromAppW(lpPathName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn ReplaceFileFromAppW( - lpReplacedFileName: LPCWSTR, - lpReplacementFileName: LPCWSTR, - lpBackupFileName: LPCWSTR, - dwReplaceFlags: DWORD, - lpExclude: LPVOID, - lpReserved: LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn SetFileAttributesFromAppW(lpFileName: LPCWSTR, dwFileAttributes: DWORD) -> BOOL; -} -extern "C" { - pub fn IsDebuggerPresent() -> BOOL; -} -extern "C" { - pub fn DebugBreak(); -} -extern "C" { - pub fn OutputDebugStringA(lpOutputString: LPCSTR); -} -extern "C" { - pub fn OutputDebugStringW(lpOutputString: LPCWSTR); -} -extern "C" { - pub fn ContinueDebugEvent( - dwProcessId: DWORD, - dwThreadId: DWORD, - dwContinueStatus: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn WaitForDebugEvent(lpDebugEvent: LPDEBUG_EVENT, dwMilliseconds: DWORD) -> BOOL; -} -extern "C" { - pub fn DebugActiveProcess(dwProcessId: DWORD) -> BOOL; -} -extern "C" { - pub fn DebugActiveProcessStop(dwProcessId: DWORD) -> BOOL; -} -extern "C" { - pub fn CheckRemoteDebuggerPresent(hProcess: HANDLE, pbDebuggerPresent: PBOOL) -> BOOL; -} -extern "C" { - pub fn WaitForDebugEventEx(lpDebugEvent: LPDEBUG_EVENT, dwMilliseconds: DWORD) -> BOOL; -} -extern "C" { - pub fn EncodePointer(Ptr: PVOID) -> PVOID; -} -extern "C" { - pub fn DecodePointer(Ptr: PVOID) -> PVOID; -} -extern "C" { - pub fn EncodeSystemPointer(Ptr: PVOID) -> PVOID; -} -extern "C" { - pub fn DecodeSystemPointer(Ptr: PVOID) -> PVOID; -} -extern "C" { - pub fn EncodeRemotePointer( - ProcessHandle: HANDLE, - Ptr: PVOID, - EncodedPtr: *mut PVOID, - ) -> HRESULT; -} -extern "C" { - pub fn DecodeRemotePointer( - ProcessHandle: HANDLE, - Ptr: PVOID, - DecodedPtr: *mut PVOID, - ) -> HRESULT; -} -extern "C" { - pub fn Beep(dwFreq: DWORD, dwDuration: DWORD) -> BOOL; -} -extern "C" { - pub fn CloseHandle(hObject: HANDLE) -> BOOL; -} -extern "C" { - pub fn DuplicateHandle( - hSourceProcessHandle: HANDLE, - hSourceHandle: HANDLE, - hTargetProcessHandle: HANDLE, - lpTargetHandle: LPHANDLE, - dwDesiredAccess: DWORD, - bInheritHandle: BOOL, - dwOptions: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CompareObjectHandles(hFirstObjectHandle: HANDLE, hSecondObjectHandle: HANDLE) -> BOOL; -} -extern "C" { - pub fn GetHandleInformation(hObject: HANDLE, lpdwFlags: LPDWORD) -> BOOL; -} -extern "C" { - pub fn SetHandleInformation(hObject: HANDLE, dwMask: DWORD, dwFlags: DWORD) -> BOOL; -} -pub type PTOP_LEVEL_EXCEPTION_FILTER = - ::std::option::Option LONG>; -pub type LPTOP_LEVEL_EXCEPTION_FILTER = PTOP_LEVEL_EXCEPTION_FILTER; -extern "C" { - pub fn RaiseException( - dwExceptionCode: DWORD, - dwExceptionFlags: DWORD, - nNumberOfArguments: DWORD, - lpArguments: *const ULONG_PTR, - ); -} -extern "C" { - pub fn UnhandledExceptionFilter(ExceptionInfo: *mut _EXCEPTION_POINTERS) -> LONG; -} -extern "C" { - pub fn SetUnhandledExceptionFilter( - lpTopLevelExceptionFilter: LPTOP_LEVEL_EXCEPTION_FILTER, - ) -> LPTOP_LEVEL_EXCEPTION_FILTER; -} -extern "C" { - pub fn GetLastError() -> DWORD; -} -extern "C" { - pub fn SetLastError(dwErrCode: DWORD); -} -extern "C" { - pub fn GetErrorMode() -> UINT; -} -extern "C" { - pub fn SetErrorMode(uMode: UINT) -> UINT; -} -extern "C" { - pub fn AddVectoredExceptionHandler(First: ULONG, Handler: PVECTORED_EXCEPTION_HANDLER) - -> PVOID; -} -extern "C" { - pub fn RemoveVectoredExceptionHandler(Handle: PVOID) -> ULONG; -} -extern "C" { - pub fn AddVectoredContinueHandler(First: ULONG, Handler: PVECTORED_EXCEPTION_HANDLER) -> PVOID; -} -extern "C" { - pub fn RemoveVectoredContinueHandler(Handle: PVOID) -> ULONG; -} -extern "C" { - pub fn RaiseFailFastException( - pExceptionRecord: PEXCEPTION_RECORD, - pContextRecord: PCONTEXT, - dwFlags: DWORD, - ); -} -extern "C" { - pub fn FatalAppExitA(uAction: UINT, lpMessageText: LPCSTR); -} -extern "C" { - pub fn FatalAppExitW(uAction: UINT, lpMessageText: LPCWSTR); -} -extern "C" { - pub fn GetThreadErrorMode() -> DWORD; -} -extern "C" { - pub fn SetThreadErrorMode(dwNewMode: DWORD, lpOldMode: LPDWORD) -> BOOL; -} -extern "C" { - pub fn TerminateProcessOnMemoryExhaustion(FailedAllocationSize: SIZE_T); -} -extern "C" { - pub fn FlsAlloc(lpCallback: PFLS_CALLBACK_FUNCTION) -> DWORD; -} -extern "C" { - pub fn FlsGetValue(dwFlsIndex: DWORD) -> PVOID; -} -extern "C" { - pub fn FlsSetValue(dwFlsIndex: DWORD, lpFlsData: PVOID) -> BOOL; -} -extern "C" { - pub fn FlsFree(dwFlsIndex: DWORD) -> BOOL; -} -extern "C" { - pub fn IsThreadAFiber() -> BOOL; -} -extern "C" { - pub fn CreatePipe( - hReadPipe: PHANDLE, - hWritePipe: PHANDLE, - lpPipeAttributes: LPSECURITY_ATTRIBUTES, - nSize: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn ConnectNamedPipe(hNamedPipe: HANDLE, lpOverlapped: LPOVERLAPPED) -> BOOL; -} -extern "C" { - pub fn DisconnectNamedPipe(hNamedPipe: HANDLE) -> BOOL; -} -extern "C" { - pub fn SetNamedPipeHandleState( - hNamedPipe: HANDLE, - lpMode: LPDWORD, - lpMaxCollectionCount: LPDWORD, - lpCollectDataTimeout: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn PeekNamedPipe( - hNamedPipe: HANDLE, - lpBuffer: LPVOID, - nBufferSize: DWORD, - lpBytesRead: LPDWORD, - lpTotalBytesAvail: LPDWORD, - lpBytesLeftThisMessage: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn TransactNamedPipe( - hNamedPipe: HANDLE, - lpInBuffer: LPVOID, - nInBufferSize: DWORD, - lpOutBuffer: LPVOID, - nOutBufferSize: DWORD, - lpBytesRead: LPDWORD, - lpOverlapped: LPOVERLAPPED, - ) -> BOOL; -} -extern "C" { - pub fn CreateNamedPipeW( - lpName: LPCWSTR, - dwOpenMode: DWORD, - dwPipeMode: DWORD, - nMaxInstances: DWORD, - nOutBufferSize: DWORD, - nInBufferSize: DWORD, - nDefaultTimeOut: DWORD, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - ) -> HANDLE; -} -extern "C" { - pub fn WaitNamedPipeW(lpNamedPipeName: LPCWSTR, nTimeOut: DWORD) -> BOOL; -} -extern "C" { - pub fn GetNamedPipeClientComputerNameW( - Pipe: HANDLE, - ClientComputerName: LPWSTR, - ClientComputerNameLength: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn ImpersonateNamedPipeClient(hNamedPipe: HANDLE) -> BOOL; -} -extern "C" { - pub fn GetNamedPipeInfo( - hNamedPipe: HANDLE, - lpFlags: LPDWORD, - lpOutBufferSize: LPDWORD, - lpInBufferSize: LPDWORD, - lpMaxInstances: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetNamedPipeHandleStateW( - hNamedPipe: HANDLE, - lpState: LPDWORD, - lpCurInstances: LPDWORD, - lpMaxCollectionCount: LPDWORD, - lpCollectDataTimeout: LPDWORD, - lpUserName: LPWSTR, - nMaxUserNameSize: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CallNamedPipeW( - lpNamedPipeName: LPCWSTR, - lpInBuffer: LPVOID, - nInBufferSize: DWORD, - lpOutBuffer: LPVOID, - nOutBufferSize: DWORD, - lpBytesRead: LPDWORD, - nTimeOut: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn QueryPerformanceCounter(lpPerformanceCount: *mut LARGE_INTEGER) -> BOOL; -} -extern "C" { - pub fn QueryPerformanceFrequency(lpFrequency: *mut LARGE_INTEGER) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _HEAP_SUMMARY { - pub cb: DWORD, - pub cbAllocated: SIZE_T, - pub cbCommitted: SIZE_T, - pub cbReserved: SIZE_T, - pub cbMaxReserve: SIZE_T, -} -pub type HEAP_SUMMARY = _HEAP_SUMMARY; -pub type PHEAP_SUMMARY = *mut _HEAP_SUMMARY; -pub type LPHEAP_SUMMARY = PHEAP_SUMMARY; -extern "C" { - pub fn HeapCreate(flOptions: DWORD, dwInitialSize: SIZE_T, dwMaximumSize: SIZE_T) -> HANDLE; -} -extern "C" { - pub fn HeapDestroy(hHeap: HANDLE) -> BOOL; -} -extern "C" { - pub fn HeapAlloc(hHeap: HANDLE, dwFlags: DWORD, dwBytes: SIZE_T) -> LPVOID; -} -extern "C" { - pub fn HeapReAlloc(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPVOID, dwBytes: SIZE_T) -> LPVOID; -} -extern "C" { - pub fn HeapFree(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPVOID) -> BOOL; -} -extern "C" { - pub fn HeapSize(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPCVOID) -> SIZE_T; -} -extern "C" { - pub fn GetProcessHeap() -> HANDLE; -} -extern "C" { - pub fn HeapCompact(hHeap: HANDLE, dwFlags: DWORD) -> SIZE_T; -} -extern "C" { - pub fn HeapSetInformation( - HeapHandle: HANDLE, - HeapInformationClass: HEAP_INFORMATION_CLASS, - HeapInformation: PVOID, - HeapInformationLength: SIZE_T, - ) -> BOOL; -} -extern "C" { - pub fn HeapValidate(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPCVOID) -> BOOL; -} -extern "C" { - pub fn HeapSummary(hHeap: HANDLE, dwFlags: DWORD, lpSummary: LPHEAP_SUMMARY) -> BOOL; -} -extern "C" { - pub fn GetProcessHeaps(NumberOfHeaps: DWORD, ProcessHeaps: PHANDLE) -> DWORD; -} -extern "C" { - pub fn HeapLock(hHeap: HANDLE) -> BOOL; -} -extern "C" { - pub fn HeapUnlock(hHeap: HANDLE) -> BOOL; -} -extern "C" { - pub fn HeapWalk(hHeap: HANDLE, lpEntry: LPPROCESS_HEAP_ENTRY) -> BOOL; -} -extern "C" { - pub fn HeapQueryInformation( - HeapHandle: HANDLE, - HeapInformationClass: HEAP_INFORMATION_CLASS, - HeapInformation: PVOID, - HeapInformationLength: SIZE_T, - ReturnLength: PSIZE_T, - ) -> BOOL; -} -extern "C" { - pub fn CreateIoCompletionPort( - FileHandle: HANDLE, - ExistingCompletionPort: HANDLE, - CompletionKey: ULONG_PTR, - NumberOfConcurrentThreads: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn GetQueuedCompletionStatus( - CompletionPort: HANDLE, - lpNumberOfBytesTransferred: LPDWORD, - lpCompletionKey: PULONG_PTR, - lpOverlapped: *mut LPOVERLAPPED, - dwMilliseconds: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetQueuedCompletionStatusEx( - CompletionPort: HANDLE, - lpCompletionPortEntries: LPOVERLAPPED_ENTRY, - ulCount: ULONG, - ulNumEntriesRemoved: PULONG, - dwMilliseconds: DWORD, - fAlertable: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn PostQueuedCompletionStatus( - CompletionPort: HANDLE, - dwNumberOfBytesTransferred: DWORD, - dwCompletionKey: ULONG_PTR, - lpOverlapped: LPOVERLAPPED, - ) -> BOOL; -} -extern "C" { - pub fn DeviceIoControl( - hDevice: HANDLE, - dwIoControlCode: DWORD, - lpInBuffer: LPVOID, - nInBufferSize: DWORD, - lpOutBuffer: LPVOID, - nOutBufferSize: DWORD, - lpBytesReturned: LPDWORD, - lpOverlapped: LPOVERLAPPED, - ) -> BOOL; -} -extern "C" { - pub fn GetOverlappedResult( - hFile: HANDLE, - lpOverlapped: LPOVERLAPPED, - lpNumberOfBytesTransferred: LPDWORD, - bWait: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn CancelIoEx(hFile: HANDLE, lpOverlapped: LPOVERLAPPED) -> BOOL; -} -extern "C" { - pub fn CancelIo(hFile: HANDLE) -> BOOL; -} -extern "C" { - pub fn GetOverlappedResultEx( - hFile: HANDLE, - lpOverlapped: LPOVERLAPPED, - lpNumberOfBytesTransferred: LPDWORD, - dwMilliseconds: DWORD, - bAlertable: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn CancelSynchronousIo(hThread: HANDLE) -> BOOL; -} -pub type SRWLOCK = RTL_SRWLOCK; -pub type PSRWLOCK = *mut RTL_SRWLOCK; -extern "C" { - pub fn InitializeSRWLock(SRWLock: PSRWLOCK); -} -extern "C" { - pub fn ReleaseSRWLockExclusive(SRWLock: PSRWLOCK); -} -extern "C" { - pub fn ReleaseSRWLockShared(SRWLock: PSRWLOCK); -} -extern "C" { - pub fn AcquireSRWLockExclusive(SRWLock: PSRWLOCK); -} -extern "C" { - pub fn AcquireSRWLockShared(SRWLock: PSRWLOCK); -} -extern "C" { - pub fn TryAcquireSRWLockExclusive(SRWLock: PSRWLOCK) -> BOOLEAN; -} -extern "C" { - pub fn TryAcquireSRWLockShared(SRWLock: PSRWLOCK) -> BOOLEAN; -} -extern "C" { - pub fn InitializeCriticalSection(lpCriticalSection: LPCRITICAL_SECTION); -} -extern "C" { - pub fn EnterCriticalSection(lpCriticalSection: LPCRITICAL_SECTION); -} -extern "C" { - pub fn LeaveCriticalSection(lpCriticalSection: LPCRITICAL_SECTION); -} -extern "C" { - pub fn InitializeCriticalSectionAndSpinCount( - lpCriticalSection: LPCRITICAL_SECTION, - dwSpinCount: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn InitializeCriticalSectionEx( - lpCriticalSection: LPCRITICAL_SECTION, - dwSpinCount: DWORD, - Flags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetCriticalSectionSpinCount( - lpCriticalSection: LPCRITICAL_SECTION, - dwSpinCount: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn TryEnterCriticalSection(lpCriticalSection: LPCRITICAL_SECTION) -> BOOL; -} -extern "C" { - pub fn DeleteCriticalSection(lpCriticalSection: LPCRITICAL_SECTION); -} -pub type INIT_ONCE = RTL_RUN_ONCE; -pub type PINIT_ONCE = PRTL_RUN_ONCE; -pub type LPINIT_ONCE = PRTL_RUN_ONCE; -pub type PINIT_ONCE_FN = ::std::option::Option< - unsafe extern "C" fn(InitOnce: PINIT_ONCE, Parameter: PVOID, Context: *mut PVOID) -> BOOL, ->; -extern "C" { - pub fn InitOnceInitialize(InitOnce: PINIT_ONCE); -} -extern "C" { - pub fn InitOnceExecuteOnce( - InitOnce: PINIT_ONCE, - InitFn: PINIT_ONCE_FN, - Parameter: PVOID, - Context: *mut LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn InitOnceBeginInitialize( - lpInitOnce: LPINIT_ONCE, - dwFlags: DWORD, - fPending: PBOOL, - lpContext: *mut LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn InitOnceComplete(lpInitOnce: LPINIT_ONCE, dwFlags: DWORD, lpContext: LPVOID) -> BOOL; -} -pub type CONDITION_VARIABLE = RTL_CONDITION_VARIABLE; -pub type PCONDITION_VARIABLE = *mut RTL_CONDITION_VARIABLE; -extern "C" { - pub fn InitializeConditionVariable(ConditionVariable: PCONDITION_VARIABLE); -} -extern "C" { - pub fn WakeConditionVariable(ConditionVariable: PCONDITION_VARIABLE); -} -extern "C" { - pub fn WakeAllConditionVariable(ConditionVariable: PCONDITION_VARIABLE); -} -extern "C" { - pub fn SleepConditionVariableCS( - ConditionVariable: PCONDITION_VARIABLE, - CriticalSection: PCRITICAL_SECTION, - dwMilliseconds: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SleepConditionVariableSRW( - ConditionVariable: PCONDITION_VARIABLE, - SRWLock: PSRWLOCK, - dwMilliseconds: DWORD, - Flags: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn SetEvent(hEvent: HANDLE) -> BOOL; -} -extern "C" { - pub fn ResetEvent(hEvent: HANDLE) -> BOOL; -} -extern "C" { - pub fn ReleaseSemaphore( - hSemaphore: HANDLE, - lReleaseCount: LONG, - lpPreviousCount: LPLONG, - ) -> BOOL; -} -extern "C" { - pub fn ReleaseMutex(hMutex: HANDLE) -> BOOL; -} -extern "C" { - pub fn WaitForSingleObject(hHandle: HANDLE, dwMilliseconds: DWORD) -> DWORD; -} -extern "C" { - pub fn SleepEx(dwMilliseconds: DWORD, bAlertable: BOOL) -> DWORD; -} -extern "C" { - pub fn WaitForSingleObjectEx(hHandle: HANDLE, dwMilliseconds: DWORD, bAlertable: BOOL) - -> DWORD; -} -extern "C" { - pub fn WaitForMultipleObjectsEx( - nCount: DWORD, - lpHandles: *const HANDLE, - bWaitAll: BOOL, - dwMilliseconds: DWORD, - bAlertable: BOOL, - ) -> DWORD; -} -extern "C" { - pub fn CreateMutexA( - lpMutexAttributes: LPSECURITY_ATTRIBUTES, - bInitialOwner: BOOL, - lpName: LPCSTR, - ) -> HANDLE; -} -extern "C" { - pub fn CreateMutexW( - lpMutexAttributes: LPSECURITY_ATTRIBUTES, - bInitialOwner: BOOL, - lpName: LPCWSTR, - ) -> HANDLE; -} -extern "C" { - pub fn OpenMutexW(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCWSTR) -> HANDLE; -} -extern "C" { - pub fn CreateEventA( - lpEventAttributes: LPSECURITY_ATTRIBUTES, - bManualReset: BOOL, - bInitialState: BOOL, - lpName: LPCSTR, - ) -> HANDLE; -} -extern "C" { - pub fn CreateEventW( - lpEventAttributes: LPSECURITY_ATTRIBUTES, - bManualReset: BOOL, - bInitialState: BOOL, - lpName: LPCWSTR, - ) -> HANDLE; -} -extern "C" { - pub fn OpenEventA(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCSTR) -> HANDLE; -} -extern "C" { - pub fn OpenEventW(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCWSTR) -> HANDLE; -} -extern "C" { - pub fn OpenSemaphoreW(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCWSTR) -> HANDLE; -} -pub type PTIMERAPCROUTINE = ::std::option::Option< - unsafe extern "C" fn( - lpArgToCompletionRoutine: LPVOID, - dwTimerLowValue: DWORD, - dwTimerHighValue: DWORD, - ), ->; -extern "C" { - pub fn OpenWaitableTimerW( - dwDesiredAccess: DWORD, - bInheritHandle: BOOL, - lpTimerName: LPCWSTR, - ) -> HANDLE; -} -extern "C" { - pub fn SetWaitableTimerEx( - hTimer: HANDLE, - lpDueTime: *const LARGE_INTEGER, - lPeriod: LONG, - pfnCompletionRoutine: PTIMERAPCROUTINE, - lpArgToCompletionRoutine: LPVOID, - WakeContext: PREASON_CONTEXT, - TolerableDelay: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn SetWaitableTimer( - hTimer: HANDLE, - lpDueTime: *const LARGE_INTEGER, - lPeriod: LONG, - pfnCompletionRoutine: PTIMERAPCROUTINE, - lpArgToCompletionRoutine: LPVOID, - fResume: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn CancelWaitableTimer(hTimer: HANDLE) -> BOOL; -} -extern "C" { - pub fn CreateMutexExA( - lpMutexAttributes: LPSECURITY_ATTRIBUTES, - lpName: LPCSTR, - dwFlags: DWORD, - dwDesiredAccess: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn CreateMutexExW( - lpMutexAttributes: LPSECURITY_ATTRIBUTES, - lpName: LPCWSTR, - dwFlags: DWORD, - dwDesiredAccess: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn CreateEventExA( - lpEventAttributes: LPSECURITY_ATTRIBUTES, - lpName: LPCSTR, - dwFlags: DWORD, - dwDesiredAccess: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn CreateEventExW( - lpEventAttributes: LPSECURITY_ATTRIBUTES, - lpName: LPCWSTR, - dwFlags: DWORD, - dwDesiredAccess: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn CreateSemaphoreExW( - lpSemaphoreAttributes: LPSECURITY_ATTRIBUTES, - lInitialCount: LONG, - lMaximumCount: LONG, - lpName: LPCWSTR, - dwFlags: DWORD, - dwDesiredAccess: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn CreateWaitableTimerExW( - lpTimerAttributes: LPSECURITY_ATTRIBUTES, - lpTimerName: LPCWSTR, - dwFlags: DWORD, - dwDesiredAccess: DWORD, - ) -> HANDLE; -} -pub type SYNCHRONIZATION_BARRIER = RTL_BARRIER; -pub type PSYNCHRONIZATION_BARRIER = PRTL_BARRIER; -pub type LPSYNCHRONIZATION_BARRIER = PRTL_BARRIER; -extern "C" { - pub fn EnterSynchronizationBarrier( - lpBarrier: LPSYNCHRONIZATION_BARRIER, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn InitializeSynchronizationBarrier( - lpBarrier: LPSYNCHRONIZATION_BARRIER, - lTotalThreads: LONG, - lSpinCount: LONG, - ) -> BOOL; -} -extern "C" { - pub fn DeleteSynchronizationBarrier(lpBarrier: LPSYNCHRONIZATION_BARRIER) -> BOOL; -} -extern "C" { - pub fn Sleep(dwMilliseconds: DWORD); -} -extern "C" { - pub fn WaitOnAddress( - Address: *mut ::std::os::raw::c_void, - CompareAddress: PVOID, - AddressSize: SIZE_T, - dwMilliseconds: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn WakeByAddressSingle(Address: PVOID); -} -extern "C" { - pub fn WakeByAddressAll(Address: PVOID); -} -extern "C" { - pub fn SignalObjectAndWait( - hObjectToSignal: HANDLE, - hObjectToWaitOn: HANDLE, - dwMilliseconds: DWORD, - bAlertable: BOOL, - ) -> DWORD; -} -extern "C" { - pub fn WaitForMultipleObjects( - nCount: DWORD, - lpHandles: *const HANDLE, - bWaitAll: BOOL, - dwMilliseconds: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn CreateSemaphoreW( - lpSemaphoreAttributes: LPSECURITY_ATTRIBUTES, - lInitialCount: LONG, - lMaximumCount: LONG, - lpName: LPCWSTR, - ) -> HANDLE; -} -extern "C" { - pub fn CreateWaitableTimerW( - lpTimerAttributes: LPSECURITY_ATTRIBUTES, - bManualReset: BOOL, - lpTimerName: LPCWSTR, - ) -> HANDLE; -} -extern "C" { - pub fn InitializeSListHead(ListHead: PSLIST_HEADER); -} -extern "C" { - pub fn InterlockedPopEntrySList(ListHead: PSLIST_HEADER) -> PSLIST_ENTRY; -} -extern "C" { - pub fn InterlockedPushEntrySList( - ListHead: PSLIST_HEADER, - ListEntry: PSLIST_ENTRY, - ) -> PSLIST_ENTRY; -} -extern "C" { - pub fn InterlockedPushListSListEx( - ListHead: PSLIST_HEADER, - List: PSLIST_ENTRY, - ListEnd: PSLIST_ENTRY, - Count: ULONG, - ) -> PSLIST_ENTRY; -} -extern "C" { - pub fn InterlockedFlushSList(ListHead: PSLIST_HEADER) -> PSLIST_ENTRY; -} -extern "C" { - pub fn QueryDepthSList(ListHead: PSLIST_HEADER) -> USHORT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_INFORMATION { - pub hProcess: HANDLE, - pub hThread: HANDLE, - pub dwProcessId: DWORD, - pub dwThreadId: DWORD, -} -pub type PROCESS_INFORMATION = _PROCESS_INFORMATION; -pub type PPROCESS_INFORMATION = *mut _PROCESS_INFORMATION; -pub type LPPROCESS_INFORMATION = *mut _PROCESS_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STARTUPINFOA { - pub cb: DWORD, - pub lpReserved: LPSTR, - pub lpDesktop: LPSTR, - pub lpTitle: LPSTR, - pub dwX: DWORD, - pub dwY: DWORD, - pub dwXSize: DWORD, - pub dwYSize: DWORD, - pub dwXCountChars: DWORD, - pub dwYCountChars: DWORD, - pub dwFillAttribute: DWORD, - pub dwFlags: DWORD, - pub wShowWindow: WORD, - pub cbReserved2: WORD, - pub lpReserved2: LPBYTE, - pub hStdInput: HANDLE, - pub hStdOutput: HANDLE, - pub hStdError: HANDLE, -} -pub type STARTUPINFOA = _STARTUPINFOA; -pub type LPSTARTUPINFOA = *mut _STARTUPINFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STARTUPINFOW { - pub cb: DWORD, - pub lpReserved: LPWSTR, - pub lpDesktop: LPWSTR, - pub lpTitle: LPWSTR, - pub dwX: DWORD, - pub dwY: DWORD, - pub dwXSize: DWORD, - pub dwYSize: DWORD, - pub dwXCountChars: DWORD, - pub dwYCountChars: DWORD, - pub dwFillAttribute: DWORD, - pub dwFlags: DWORD, - pub wShowWindow: WORD, - pub cbReserved2: WORD, - pub lpReserved2: LPBYTE, - pub hStdInput: HANDLE, - pub hStdOutput: HANDLE, - pub hStdError: HANDLE, -} -pub type STARTUPINFOW = _STARTUPINFOW; -pub type LPSTARTUPINFOW = *mut _STARTUPINFOW; -pub type STARTUPINFO = STARTUPINFOA; -pub type LPSTARTUPINFO = LPSTARTUPINFOA; -extern "C" { - pub fn QueueUserAPC(pfnAPC: PAPCFUNC, hThread: HANDLE, dwData: ULONG_PTR) -> DWORD; -} -pub const _QUEUE_USER_APC_FLAGS_QUEUE_USER_APC_FLAGS_NONE: _QUEUE_USER_APC_FLAGS = 0; -pub const _QUEUE_USER_APC_FLAGS_QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC: _QUEUE_USER_APC_FLAGS = 1; -pub const _QUEUE_USER_APC_FLAGS_QUEUE_USER_APC_CALLBACK_DATA_CONTEXT: _QUEUE_USER_APC_FLAGS = 65536; -pub type _QUEUE_USER_APC_FLAGS = ::std::os::raw::c_int; -pub use self::_QUEUE_USER_APC_FLAGS as QUEUE_USER_APC_FLAGS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _APC_CALLBACK_DATA { - pub Parameter: ULONG_PTR, - pub ContextRecord: PCONTEXT, - pub Reserved0: ULONG_PTR, - pub Reserved1: ULONG_PTR, -} -pub type APC_CALLBACK_DATA = _APC_CALLBACK_DATA; -pub type PAPC_CALLBACK_DATA = *mut _APC_CALLBACK_DATA; -extern "C" { - pub fn QueueUserAPC2( - ApcRoutine: PAPCFUNC, - Thread: HANDLE, - Data: ULONG_PTR, - Flags: QUEUE_USER_APC_FLAGS, - ) -> BOOL; -} -extern "C" { - pub fn GetProcessTimes( - hProcess: HANDLE, - lpCreationTime: LPFILETIME, - lpExitTime: LPFILETIME, - lpKernelTime: LPFILETIME, - lpUserTime: LPFILETIME, - ) -> BOOL; -} -extern "C" { - pub fn GetCurrentProcess() -> HANDLE; -} -extern "C" { - pub fn GetCurrentProcessId() -> DWORD; -} -extern "C" { - pub fn ExitProcess(uExitCode: UINT) -> !; -} -extern "C" { - pub fn TerminateProcess(hProcess: HANDLE, uExitCode: UINT) -> BOOL; -} -extern "C" { - pub fn GetExitCodeProcess(hProcess: HANDLE, lpExitCode: LPDWORD) -> BOOL; -} -extern "C" { - pub fn SwitchToThread() -> BOOL; -} -extern "C" { - pub fn CreateThread( - lpThreadAttributes: LPSECURITY_ATTRIBUTES, - dwStackSize: SIZE_T, - lpStartAddress: LPTHREAD_START_ROUTINE, - lpParameter: LPVOID, - dwCreationFlags: DWORD, - lpThreadId: LPDWORD, - ) -> HANDLE; -} -extern "C" { - pub fn CreateRemoteThread( - hProcess: HANDLE, - lpThreadAttributes: LPSECURITY_ATTRIBUTES, - dwStackSize: SIZE_T, - lpStartAddress: LPTHREAD_START_ROUTINE, - lpParameter: LPVOID, - dwCreationFlags: DWORD, - lpThreadId: LPDWORD, - ) -> HANDLE; -} -extern "C" { - pub fn GetCurrentThread() -> HANDLE; -} -extern "C" { - pub fn GetCurrentThreadId() -> DWORD; -} -extern "C" { - pub fn OpenThread(dwDesiredAccess: DWORD, bInheritHandle: BOOL, dwThreadId: DWORD) -> HANDLE; -} -extern "C" { - pub fn SetThreadPriority(hThread: HANDLE, nPriority: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn SetThreadPriorityBoost(hThread: HANDLE, bDisablePriorityBoost: BOOL) -> BOOL; -} -extern "C" { - pub fn GetThreadPriorityBoost(hThread: HANDLE, pDisablePriorityBoost: PBOOL) -> BOOL; -} -extern "C" { - pub fn GetThreadPriority(hThread: HANDLE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ExitThread(dwExitCode: DWORD) -> !; -} -extern "C" { - pub fn TerminateThread(hThread: HANDLE, dwExitCode: DWORD) -> BOOL; -} -extern "C" { - pub fn GetExitCodeThread(hThread: HANDLE, lpExitCode: LPDWORD) -> BOOL; -} -extern "C" { - pub fn SuspendThread(hThread: HANDLE) -> DWORD; -} -extern "C" { - pub fn ResumeThread(hThread: HANDLE) -> DWORD; -} -extern "C" { - pub fn TlsAlloc() -> DWORD; -} -extern "C" { - pub fn TlsGetValue(dwTlsIndex: DWORD) -> LPVOID; -} -extern "C" { - pub fn TlsSetValue(dwTlsIndex: DWORD, lpTlsValue: LPVOID) -> BOOL; -} -extern "C" { - pub fn TlsFree(dwTlsIndex: DWORD) -> BOOL; -} -extern "C" { - pub fn CreateProcessA( - lpApplicationName: LPCSTR, - lpCommandLine: LPSTR, - lpProcessAttributes: LPSECURITY_ATTRIBUTES, - lpThreadAttributes: LPSECURITY_ATTRIBUTES, - bInheritHandles: BOOL, - dwCreationFlags: DWORD, - lpEnvironment: LPVOID, - lpCurrentDirectory: LPCSTR, - lpStartupInfo: LPSTARTUPINFOA, - lpProcessInformation: LPPROCESS_INFORMATION, - ) -> BOOL; -} -extern "C" { - pub fn CreateProcessW( - lpApplicationName: LPCWSTR, - lpCommandLine: LPWSTR, - lpProcessAttributes: LPSECURITY_ATTRIBUTES, - lpThreadAttributes: LPSECURITY_ATTRIBUTES, - bInheritHandles: BOOL, - dwCreationFlags: DWORD, - lpEnvironment: LPVOID, - lpCurrentDirectory: LPCWSTR, - lpStartupInfo: LPSTARTUPINFOW, - lpProcessInformation: LPPROCESS_INFORMATION, - ) -> BOOL; -} -extern "C" { - pub fn SetProcessShutdownParameters(dwLevel: DWORD, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn GetProcessVersion(ProcessId: DWORD) -> DWORD; -} -extern "C" { - pub fn GetStartupInfoW(lpStartupInfo: LPSTARTUPINFOW); -} -extern "C" { - pub fn CreateProcessAsUserW( - hToken: HANDLE, - lpApplicationName: LPCWSTR, - lpCommandLine: LPWSTR, - lpProcessAttributes: LPSECURITY_ATTRIBUTES, - lpThreadAttributes: LPSECURITY_ATTRIBUTES, - bInheritHandles: BOOL, - dwCreationFlags: DWORD, - lpEnvironment: LPVOID, - lpCurrentDirectory: LPCWSTR, - lpStartupInfo: LPSTARTUPINFOW, - lpProcessInformation: LPPROCESS_INFORMATION, - ) -> BOOL; -} -extern "C" { - pub fn SetThreadToken(Thread: PHANDLE, Token: HANDLE) -> BOOL; -} -extern "C" { - pub fn OpenProcessToken( - ProcessHandle: HANDLE, - DesiredAccess: DWORD, - TokenHandle: PHANDLE, - ) -> BOOL; -} -extern "C" { - pub fn OpenThreadToken( - ThreadHandle: HANDLE, - DesiredAccess: DWORD, - OpenAsSelf: BOOL, - TokenHandle: PHANDLE, - ) -> BOOL; -} -extern "C" { - pub fn SetPriorityClass(hProcess: HANDLE, dwPriorityClass: DWORD) -> BOOL; -} -extern "C" { - pub fn GetPriorityClass(hProcess: HANDLE) -> DWORD; -} -extern "C" { - pub fn SetThreadStackGuarantee(StackSizeInBytes: PULONG) -> BOOL; -} -extern "C" { - pub fn ProcessIdToSessionId(dwProcessId: DWORD, pSessionId: *mut DWORD) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROC_THREAD_ATTRIBUTE_LIST { - _unused: [u8; 0], -} -pub type PPROC_THREAD_ATTRIBUTE_LIST = *mut _PROC_THREAD_ATTRIBUTE_LIST; -pub type LPPROC_THREAD_ATTRIBUTE_LIST = *mut _PROC_THREAD_ATTRIBUTE_LIST; -extern "C" { - pub fn GetProcessId(Process: HANDLE) -> DWORD; -} -extern "C" { - pub fn GetThreadId(Thread: HANDLE) -> DWORD; -} -extern "C" { - pub fn FlushProcessWriteBuffers(); -} -extern "C" { - pub fn GetProcessIdOfThread(Thread: HANDLE) -> DWORD; -} -extern "C" { - pub fn InitializeProcThreadAttributeList( - lpAttributeList: LPPROC_THREAD_ATTRIBUTE_LIST, - dwAttributeCount: DWORD, - dwFlags: DWORD, - lpSize: PSIZE_T, - ) -> BOOL; -} -extern "C" { - pub fn DeleteProcThreadAttributeList(lpAttributeList: LPPROC_THREAD_ATTRIBUTE_LIST); -} -extern "C" { - pub fn UpdateProcThreadAttribute( - lpAttributeList: LPPROC_THREAD_ATTRIBUTE_LIST, - dwFlags: DWORD, - Attribute: DWORD_PTR, - lpValue: PVOID, - cbSize: SIZE_T, - lpPreviousValue: PVOID, - lpReturnSize: PSIZE_T, - ) -> BOOL; -} -extern "C" { - pub fn SetProcessDynamicEHContinuationTargets( - Process: HANDLE, - NumberOfTargets: USHORT, - Targets: PPROCESS_DYNAMIC_EH_CONTINUATION_TARGET, - ) -> BOOL; -} -extern "C" { - pub fn SetProcessDynamicEnforcedCetCompatibleRanges( - Process: HANDLE, - NumberOfRanges: USHORT, - Ranges: PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE, - ) -> BOOL; -} -extern "C" { - pub fn SetProcessAffinityUpdateMode(hProcess: HANDLE, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn QueryProcessAffinityUpdateMode(hProcess: HANDLE, lpdwFlags: LPDWORD) -> BOOL; -} -extern "C" { - pub fn CreateRemoteThreadEx( - hProcess: HANDLE, - lpThreadAttributes: LPSECURITY_ATTRIBUTES, - dwStackSize: SIZE_T, - lpStartAddress: LPTHREAD_START_ROUTINE, - lpParameter: LPVOID, - dwCreationFlags: DWORD, - lpAttributeList: LPPROC_THREAD_ATTRIBUTE_LIST, - lpThreadId: LPDWORD, - ) -> HANDLE; -} -extern "C" { - pub fn GetCurrentThreadStackLimits(LowLimit: PULONG_PTR, HighLimit: PULONG_PTR); -} -extern "C" { - pub fn GetThreadContext(hThread: HANDLE, lpContext: LPCONTEXT) -> BOOL; -} -extern "C" { - pub fn GetProcessMitigationPolicy( - hProcess: HANDLE, - MitigationPolicy: PROCESS_MITIGATION_POLICY, - lpBuffer: PVOID, - dwLength: SIZE_T, - ) -> BOOL; -} -extern "C" { - pub fn SetThreadContext(hThread: HANDLE, lpContext: *const CONTEXT) -> BOOL; -} -extern "C" { - pub fn SetProcessMitigationPolicy( - MitigationPolicy: PROCESS_MITIGATION_POLICY, - lpBuffer: PVOID, - dwLength: SIZE_T, - ) -> BOOL; -} -extern "C" { - pub fn FlushInstructionCache(hProcess: HANDLE, lpBaseAddress: LPCVOID, dwSize: SIZE_T) -> BOOL; -} -extern "C" { - pub fn GetThreadTimes( - hThread: HANDLE, - lpCreationTime: LPFILETIME, - lpExitTime: LPFILETIME, - lpKernelTime: LPFILETIME, - lpUserTime: LPFILETIME, - ) -> BOOL; -} -extern "C" { - pub fn OpenProcess(dwDesiredAccess: DWORD, bInheritHandle: BOOL, dwProcessId: DWORD) -> HANDLE; -} -extern "C" { - pub fn IsProcessorFeaturePresent(ProcessorFeature: DWORD) -> BOOL; -} -extern "C" { - pub fn GetProcessHandleCount(hProcess: HANDLE, pdwHandleCount: PDWORD) -> BOOL; -} -extern "C" { - pub fn GetCurrentProcessorNumber() -> DWORD; -} -extern "C" { - pub fn SetThreadIdealProcessorEx( - hThread: HANDLE, - lpIdealProcessor: PPROCESSOR_NUMBER, - lpPreviousIdealProcessor: PPROCESSOR_NUMBER, - ) -> BOOL; -} -extern "C" { - pub fn GetThreadIdealProcessorEx(hThread: HANDLE, lpIdealProcessor: PPROCESSOR_NUMBER) -> BOOL; -} -extern "C" { - pub fn GetCurrentProcessorNumberEx(ProcNumber: PPROCESSOR_NUMBER); -} -extern "C" { - pub fn GetProcessPriorityBoost(hProcess: HANDLE, pDisablePriorityBoost: PBOOL) -> BOOL; -} -extern "C" { - pub fn SetProcessPriorityBoost(hProcess: HANDLE, bDisablePriorityBoost: BOOL) -> BOOL; -} -extern "C" { - pub fn GetThreadIOPendingFlag(hThread: HANDLE, lpIOIsPending: PBOOL) -> BOOL; -} -extern "C" { - pub fn GetSystemTimes( - lpIdleTime: PFILETIME, - lpKernelTime: PFILETIME, - lpUserTime: PFILETIME, - ) -> BOOL; -} -pub const _THREAD_INFORMATION_CLASS_ThreadMemoryPriority: _THREAD_INFORMATION_CLASS = 0; -pub const _THREAD_INFORMATION_CLASS_ThreadAbsoluteCpuPriority: _THREAD_INFORMATION_CLASS = 1; -pub const _THREAD_INFORMATION_CLASS_ThreadDynamicCodePolicy: _THREAD_INFORMATION_CLASS = 2; -pub const _THREAD_INFORMATION_CLASS_ThreadPowerThrottling: _THREAD_INFORMATION_CLASS = 3; -pub const _THREAD_INFORMATION_CLASS_ThreadInformationClassMax: _THREAD_INFORMATION_CLASS = 4; -pub type _THREAD_INFORMATION_CLASS = ::std::os::raw::c_int; -pub use self::_THREAD_INFORMATION_CLASS as THREAD_INFORMATION_CLASS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MEMORY_PRIORITY_INFORMATION { - pub MemoryPriority: ULONG, -} -pub type MEMORY_PRIORITY_INFORMATION = _MEMORY_PRIORITY_INFORMATION; -pub type PMEMORY_PRIORITY_INFORMATION = *mut _MEMORY_PRIORITY_INFORMATION; -extern "C" { - pub fn GetThreadInformation( - hThread: HANDLE, - ThreadInformationClass: THREAD_INFORMATION_CLASS, - ThreadInformation: LPVOID, - ThreadInformationSize: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetThreadInformation( - hThread: HANDLE, - ThreadInformationClass: THREAD_INFORMATION_CLASS, - ThreadInformation: LPVOID, - ThreadInformationSize: DWORD, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _THREAD_POWER_THROTTLING_STATE { - pub Version: ULONG, - pub ControlMask: ULONG, - pub StateMask: ULONG, -} -pub type THREAD_POWER_THROTTLING_STATE = _THREAD_POWER_THROTTLING_STATE; -extern "C" { - pub fn IsProcessCritical(hProcess: HANDLE, Critical: PBOOL) -> BOOL; -} -extern "C" { - pub fn SetProtectedPolicy( - PolicyGuid: LPCGUID, - PolicyValue: ULONG_PTR, - OldPolicyValue: PULONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn QueryProtectedPolicy(PolicyGuid: LPCGUID, PolicyValue: PULONG_PTR) -> BOOL; -} -extern "C" { - pub fn SetThreadIdealProcessor(hThread: HANDLE, dwIdealProcessor: DWORD) -> DWORD; -} -pub const _PROCESS_INFORMATION_CLASS_ProcessMemoryPriority: _PROCESS_INFORMATION_CLASS = 0; -pub const _PROCESS_INFORMATION_CLASS_ProcessMemoryExhaustionInfo: _PROCESS_INFORMATION_CLASS = 1; -pub const _PROCESS_INFORMATION_CLASS_ProcessAppMemoryInfo: _PROCESS_INFORMATION_CLASS = 2; -pub const _PROCESS_INFORMATION_CLASS_ProcessInPrivateInfo: _PROCESS_INFORMATION_CLASS = 3; -pub const _PROCESS_INFORMATION_CLASS_ProcessPowerThrottling: _PROCESS_INFORMATION_CLASS = 4; -pub const _PROCESS_INFORMATION_CLASS_ProcessReservedValue1: _PROCESS_INFORMATION_CLASS = 5; -pub const _PROCESS_INFORMATION_CLASS_ProcessTelemetryCoverageInfo: _PROCESS_INFORMATION_CLASS = 6; -pub const _PROCESS_INFORMATION_CLASS_ProcessProtectionLevelInfo: _PROCESS_INFORMATION_CLASS = 7; -pub const _PROCESS_INFORMATION_CLASS_ProcessLeapSecondInfo: _PROCESS_INFORMATION_CLASS = 8; -pub const _PROCESS_INFORMATION_CLASS_ProcessMachineTypeInfo: _PROCESS_INFORMATION_CLASS = 9; -pub const _PROCESS_INFORMATION_CLASS_ProcessInformationClassMax: _PROCESS_INFORMATION_CLASS = 10; -pub type _PROCESS_INFORMATION_CLASS = ::std::os::raw::c_int; -pub use self::_PROCESS_INFORMATION_CLASS as PROCESS_INFORMATION_CLASS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _APP_MEMORY_INFORMATION { - pub AvailableCommit: ULONG64, - pub PrivateCommitUsage: ULONG64, - pub PeakPrivateCommitUsage: ULONG64, - pub TotalCommitUsage: ULONG64, -} -pub type APP_MEMORY_INFORMATION = _APP_MEMORY_INFORMATION; -pub type PAPP_MEMORY_INFORMATION = *mut _APP_MEMORY_INFORMATION; -pub const _MACHINE_ATTRIBUTES_UserEnabled: _MACHINE_ATTRIBUTES = 1; -pub const _MACHINE_ATTRIBUTES_KernelEnabled: _MACHINE_ATTRIBUTES = 2; -pub const _MACHINE_ATTRIBUTES_Wow64Container: _MACHINE_ATTRIBUTES = 4; -pub type _MACHINE_ATTRIBUTES = ::std::os::raw::c_int; -pub use self::_MACHINE_ATTRIBUTES as MACHINE_ATTRIBUTES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MACHINE_INFORMATION { - pub ProcessMachine: USHORT, - pub Res0: USHORT, - pub MachineAttributes: MACHINE_ATTRIBUTES, -} -pub type PROCESS_MACHINE_INFORMATION = _PROCESS_MACHINE_INFORMATION; -pub const _PROCESS_MEMORY_EXHAUSTION_TYPE_PMETypeFailFastOnCommitFailure: - _PROCESS_MEMORY_EXHAUSTION_TYPE = 0; -pub const _PROCESS_MEMORY_EXHAUSTION_TYPE_PMETypeMax: _PROCESS_MEMORY_EXHAUSTION_TYPE = 1; -pub type _PROCESS_MEMORY_EXHAUSTION_TYPE = ::std::os::raw::c_int; -pub use self::_PROCESS_MEMORY_EXHAUSTION_TYPE as PROCESS_MEMORY_EXHAUSTION_TYPE; -pub type PPROCESS_MEMORY_EXHAUSTION_TYPE = *mut _PROCESS_MEMORY_EXHAUSTION_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_MEMORY_EXHAUSTION_INFO { - pub Version: USHORT, - pub Reserved: USHORT, - pub Type: PROCESS_MEMORY_EXHAUSTION_TYPE, - pub Value: ULONG_PTR, -} -pub type PROCESS_MEMORY_EXHAUSTION_INFO = _PROCESS_MEMORY_EXHAUSTION_INFO; -pub type PPROCESS_MEMORY_EXHAUSTION_INFO = *mut _PROCESS_MEMORY_EXHAUSTION_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_POWER_THROTTLING_STATE { - pub Version: ULONG, - pub ControlMask: ULONG, - pub StateMask: ULONG, -} -pub type PROCESS_POWER_THROTTLING_STATE = _PROCESS_POWER_THROTTLING_STATE; -pub type PPROCESS_POWER_THROTTLING_STATE = *mut _PROCESS_POWER_THROTTLING_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PROCESS_PROTECTION_LEVEL_INFORMATION { - pub ProtectionLevel: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROCESS_LEAP_SECOND_INFO { - pub Flags: ULONG, - pub Reserved: ULONG, -} -pub type PROCESS_LEAP_SECOND_INFO = _PROCESS_LEAP_SECOND_INFO; -pub type PPROCESS_LEAP_SECOND_INFO = *mut _PROCESS_LEAP_SECOND_INFO; -extern "C" { - pub fn SetProcessInformation( - hProcess: HANDLE, - ProcessInformationClass: PROCESS_INFORMATION_CLASS, - ProcessInformation: LPVOID, - ProcessInformationSize: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetProcessInformation( - hProcess: HANDLE, - ProcessInformationClass: PROCESS_INFORMATION_CLASS, - ProcessInformation: LPVOID, - ProcessInformationSize: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetSystemCpuSetInformation( - Information: PSYSTEM_CPU_SET_INFORMATION, - BufferLength: ULONG, - ReturnedLength: PULONG, - Process: HANDLE, - Flags: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn GetProcessDefaultCpuSets( - Process: HANDLE, - CpuSetIds: PULONG, - CpuSetIdCount: ULONG, - RequiredIdCount: PULONG, - ) -> BOOL; -} -extern "C" { - pub fn SetProcessDefaultCpuSets( - Process: HANDLE, - CpuSetIds: *const ULONG, - CpuSetIdCount: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn GetThreadSelectedCpuSets( - Thread: HANDLE, - CpuSetIds: PULONG, - CpuSetIdCount: ULONG, - RequiredIdCount: PULONG, - ) -> BOOL; -} -extern "C" { - pub fn SetThreadSelectedCpuSets( - Thread: HANDLE, - CpuSetIds: *const ULONG, - CpuSetIdCount: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn CreateProcessAsUserA( - hToken: HANDLE, - lpApplicationName: LPCSTR, - lpCommandLine: LPSTR, - lpProcessAttributes: LPSECURITY_ATTRIBUTES, - lpThreadAttributes: LPSECURITY_ATTRIBUTES, - bInheritHandles: BOOL, - dwCreationFlags: DWORD, - lpEnvironment: LPVOID, - lpCurrentDirectory: LPCSTR, - lpStartupInfo: LPSTARTUPINFOA, - lpProcessInformation: LPPROCESS_INFORMATION, - ) -> BOOL; -} -extern "C" { - pub fn GetProcessShutdownParameters(lpdwLevel: LPDWORD, lpdwFlags: LPDWORD) -> BOOL; -} -extern "C" { - pub fn GetProcessDefaultCpuSetMasks( - Process: HANDLE, - CpuSetMasks: PGROUP_AFFINITY, - CpuSetMaskCount: USHORT, - RequiredMaskCount: PUSHORT, - ) -> BOOL; -} -extern "C" { - pub fn SetProcessDefaultCpuSetMasks( - Process: HANDLE, - CpuSetMasks: PGROUP_AFFINITY, - CpuSetMaskCount: USHORT, - ) -> BOOL; -} -extern "C" { - pub fn GetThreadSelectedCpuSetMasks( - Thread: HANDLE, - CpuSetMasks: PGROUP_AFFINITY, - CpuSetMaskCount: USHORT, - RequiredMaskCount: PUSHORT, - ) -> BOOL; -} -extern "C" { - pub fn SetThreadSelectedCpuSetMasks( - Thread: HANDLE, - CpuSetMasks: PGROUP_AFFINITY, - CpuSetMaskCount: USHORT, - ) -> BOOL; -} -extern "C" { - pub fn GetMachineTypeAttributes( - Machine: USHORT, - MachineTypeAttributes: *mut MACHINE_ATTRIBUTES, - ) -> HRESULT; -} -extern "C" { - pub fn SetThreadDescription(hThread: HANDLE, lpThreadDescription: PCWSTR) -> HRESULT; -} -extern "C" { - pub fn GetThreadDescription(hThread: HANDLE, ppszThreadDescription: *mut PWSTR) -> HRESULT; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _SYSTEM_INFO { - pub __bindgen_anon_1: _SYSTEM_INFO__bindgen_ty_1, - pub dwPageSize: DWORD, - pub lpMinimumApplicationAddress: LPVOID, - pub lpMaximumApplicationAddress: LPVOID, - pub dwActiveProcessorMask: DWORD_PTR, - pub dwNumberOfProcessors: DWORD, - pub dwProcessorType: DWORD, - pub dwAllocationGranularity: DWORD, - pub wProcessorLevel: WORD, - pub wProcessorRevision: WORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SYSTEM_INFO__bindgen_ty_1 { - pub dwOemId: DWORD, - pub __bindgen_anon_1: _SYSTEM_INFO__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_INFO__bindgen_ty_1__bindgen_ty_1 { - pub wProcessorArchitecture: WORD, - pub wReserved: WORD, -} -pub type SYSTEM_INFO = _SYSTEM_INFO; -pub type LPSYSTEM_INFO = *mut _SYSTEM_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MEMORYSTATUSEX { - pub dwLength: DWORD, - pub dwMemoryLoad: DWORD, - pub ullTotalPhys: DWORDLONG, - pub ullAvailPhys: DWORDLONG, - pub ullTotalPageFile: DWORDLONG, - pub ullAvailPageFile: DWORDLONG, - pub ullTotalVirtual: DWORDLONG, - pub ullAvailVirtual: DWORDLONG, - pub ullAvailExtendedVirtual: DWORDLONG, -} -pub type MEMORYSTATUSEX = _MEMORYSTATUSEX; -pub type LPMEMORYSTATUSEX = *mut _MEMORYSTATUSEX; -extern "C" { - pub fn GlobalMemoryStatusEx(lpBuffer: LPMEMORYSTATUSEX) -> BOOL; -} -extern "C" { - pub fn GetSystemInfo(lpSystemInfo: LPSYSTEM_INFO); -} -extern "C" { - pub fn GetSystemTime(lpSystemTime: LPSYSTEMTIME); -} -extern "C" { - pub fn GetSystemTimeAsFileTime(lpSystemTimeAsFileTime: LPFILETIME); -} -extern "C" { - pub fn GetLocalTime(lpSystemTime: LPSYSTEMTIME); -} -extern "C" { - pub fn IsUserCetAvailableInEnvironment(UserCetEnvironment: DWORD) -> BOOL; -} -extern "C" { - pub fn GetSystemLeapSecondInformation(Enabled: PBOOL, Flags: PDWORD) -> BOOL; -} -extern "C" { - pub fn GetVersion() -> DWORD; -} -extern "C" { - pub fn SetLocalTime(lpSystemTime: *const SYSTEMTIME) -> BOOL; -} -extern "C" { - pub fn GetTickCount() -> DWORD; -} -extern "C" { - pub fn GetTickCount64() -> ULONGLONG; -} -extern "C" { - pub fn GetSystemTimeAdjustment( - lpTimeAdjustment: PDWORD, - lpTimeIncrement: PDWORD, - lpTimeAdjustmentDisabled: PBOOL, - ) -> BOOL; -} -extern "C" { - pub fn GetSystemTimeAdjustmentPrecise( - lpTimeAdjustment: PDWORD64, - lpTimeIncrement: PDWORD64, - lpTimeAdjustmentDisabled: PBOOL, - ) -> BOOL; -} -extern "C" { - pub fn GetSystemDirectoryA(lpBuffer: LPSTR, uSize: UINT) -> UINT; -} -extern "C" { - pub fn GetSystemDirectoryW(lpBuffer: LPWSTR, uSize: UINT) -> UINT; -} -extern "C" { - pub fn GetWindowsDirectoryA(lpBuffer: LPSTR, uSize: UINT) -> UINT; -} -extern "C" { - pub fn GetWindowsDirectoryW(lpBuffer: LPWSTR, uSize: UINT) -> UINT; -} -extern "C" { - pub fn GetSystemWindowsDirectoryA(lpBuffer: LPSTR, uSize: UINT) -> UINT; -} -extern "C" { - pub fn GetSystemWindowsDirectoryW(lpBuffer: LPWSTR, uSize: UINT) -> UINT; -} -pub const _COMPUTER_NAME_FORMAT_ComputerNameNetBIOS: _COMPUTER_NAME_FORMAT = 0; -pub const _COMPUTER_NAME_FORMAT_ComputerNameDnsHostname: _COMPUTER_NAME_FORMAT = 1; -pub const _COMPUTER_NAME_FORMAT_ComputerNameDnsDomain: _COMPUTER_NAME_FORMAT = 2; -pub const _COMPUTER_NAME_FORMAT_ComputerNameDnsFullyQualified: _COMPUTER_NAME_FORMAT = 3; -pub const _COMPUTER_NAME_FORMAT_ComputerNamePhysicalNetBIOS: _COMPUTER_NAME_FORMAT = 4; -pub const _COMPUTER_NAME_FORMAT_ComputerNamePhysicalDnsHostname: _COMPUTER_NAME_FORMAT = 5; -pub const _COMPUTER_NAME_FORMAT_ComputerNamePhysicalDnsDomain: _COMPUTER_NAME_FORMAT = 6; -pub const _COMPUTER_NAME_FORMAT_ComputerNamePhysicalDnsFullyQualified: _COMPUTER_NAME_FORMAT = 7; -pub const _COMPUTER_NAME_FORMAT_ComputerNameMax: _COMPUTER_NAME_FORMAT = 8; -pub type _COMPUTER_NAME_FORMAT = ::std::os::raw::c_int; -pub use self::_COMPUTER_NAME_FORMAT as COMPUTER_NAME_FORMAT; -extern "C" { - pub fn GetComputerNameExA( - NameType: COMPUTER_NAME_FORMAT, - lpBuffer: LPSTR, - nSize: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetComputerNameExW( - NameType: COMPUTER_NAME_FORMAT, - lpBuffer: LPWSTR, - nSize: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetComputerNameExW(NameType: COMPUTER_NAME_FORMAT, lpBuffer: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn SetSystemTime(lpSystemTime: *const SYSTEMTIME) -> BOOL; -} -extern "C" { - pub fn GetVersionExA(lpVersionInformation: LPOSVERSIONINFOA) -> BOOL; -} -extern "C" { - pub fn GetVersionExW(lpVersionInformation: LPOSVERSIONINFOW) -> BOOL; -} -extern "C" { - pub fn GetLogicalProcessorInformation( - Buffer: PSYSTEM_LOGICAL_PROCESSOR_INFORMATION, - ReturnedLength: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetLogicalProcessorInformationEx( - RelationshipType: LOGICAL_PROCESSOR_RELATIONSHIP, - Buffer: PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, - ReturnedLength: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetNativeSystemInfo(lpSystemInfo: LPSYSTEM_INFO); -} -extern "C" { - pub fn GetSystemTimePreciseAsFileTime(lpSystemTimeAsFileTime: LPFILETIME); -} -extern "C" { - pub fn GetProductInfo( - dwOSMajorVersion: DWORD, - dwOSMinorVersion: DWORD, - dwSpMajorVersion: DWORD, - dwSpMinorVersion: DWORD, - pdwReturnedProductType: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetOsSafeBootMode(Flags: PDWORD) -> BOOL; -} -extern "C" { - pub fn EnumSystemFirmwareTables( - FirmwareTableProviderSignature: DWORD, - pFirmwareTableEnumBuffer: PVOID, - BufferSize: DWORD, - ) -> UINT; -} -extern "C" { - pub fn GetSystemFirmwareTable( - FirmwareTableProviderSignature: DWORD, - FirmwareTableID: DWORD, - pFirmwareTableBuffer: PVOID, - BufferSize: DWORD, - ) -> UINT; -} -extern "C" { - pub fn DnsHostnameToComputerNameExW( - Hostname: LPCWSTR, - ComputerName: LPWSTR, - nSize: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetPhysicallyInstalledSystemMemory(TotalMemoryInKilobytes: PULONGLONG) -> BOOL; -} -extern "C" { - pub fn SetComputerNameEx2W( - NameType: COMPUTER_NAME_FORMAT, - Flags: DWORD, - lpBuffer: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn SetSystemTimeAdjustment(dwTimeAdjustment: DWORD, bTimeAdjustmentDisabled: BOOL) -> BOOL; -} -extern "C" { - pub fn SetSystemTimeAdjustmentPrecise( - dwTimeAdjustment: DWORD64, - bTimeAdjustmentDisabled: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn InstallELAMCertificateInfo(ELAMFile: HANDLE) -> BOOL; -} -extern "C" { - pub fn GetProcessorSystemCycleTime( - Group: USHORT, - Buffer: PSYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION, - ReturnedLength: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetOsManufacturingMode(pbEnabled: PBOOL) -> BOOL; -} -extern "C" { - pub fn GetIntegratedDisplaySize(sizeInInches: *mut f64) -> HRESULT; -} -extern "C" { - pub fn SetComputerNameA(lpComputerName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn SetComputerNameW(lpComputerName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn SetComputerNameExA(NameType: COMPUTER_NAME_FORMAT, lpBuffer: LPCSTR) -> BOOL; -} -extern "C" { - pub fn VirtualAlloc( - lpAddress: LPVOID, - dwSize: SIZE_T, - flAllocationType: DWORD, - flProtect: DWORD, - ) -> LPVOID; -} -extern "C" { - pub fn VirtualProtect( - lpAddress: LPVOID, - dwSize: SIZE_T, - flNewProtect: DWORD, - lpflOldProtect: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn VirtualFree(lpAddress: LPVOID, dwSize: SIZE_T, dwFreeType: DWORD) -> BOOL; -} -extern "C" { - pub fn VirtualQuery( - lpAddress: LPCVOID, - lpBuffer: PMEMORY_BASIC_INFORMATION, - dwLength: SIZE_T, - ) -> SIZE_T; -} -extern "C" { - pub fn VirtualAllocEx( - hProcess: HANDLE, - lpAddress: LPVOID, - dwSize: SIZE_T, - flAllocationType: DWORD, - flProtect: DWORD, - ) -> LPVOID; -} -extern "C" { - pub fn VirtualProtectEx( - hProcess: HANDLE, - lpAddress: LPVOID, - dwSize: SIZE_T, - flNewProtect: DWORD, - lpflOldProtect: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn VirtualQueryEx( - hProcess: HANDLE, - lpAddress: LPCVOID, - lpBuffer: PMEMORY_BASIC_INFORMATION, - dwLength: SIZE_T, - ) -> SIZE_T; -} -extern "C" { - pub fn ReadProcessMemory( - hProcess: HANDLE, - lpBaseAddress: LPCVOID, - lpBuffer: LPVOID, - nSize: SIZE_T, - lpNumberOfBytesRead: *mut SIZE_T, - ) -> BOOL; -} -extern "C" { - pub fn WriteProcessMemory( - hProcess: HANDLE, - lpBaseAddress: LPVOID, - lpBuffer: LPCVOID, - nSize: SIZE_T, - lpNumberOfBytesWritten: *mut SIZE_T, - ) -> BOOL; -} -extern "C" { - pub fn CreateFileMappingW( - hFile: HANDLE, - lpFileMappingAttributes: LPSECURITY_ATTRIBUTES, - flProtect: DWORD, - dwMaximumSizeHigh: DWORD, - dwMaximumSizeLow: DWORD, - lpName: LPCWSTR, - ) -> HANDLE; -} -extern "C" { - pub fn OpenFileMappingW( - dwDesiredAccess: DWORD, - bInheritHandle: BOOL, - lpName: LPCWSTR, - ) -> HANDLE; -} -extern "C" { - pub fn MapViewOfFile( - hFileMappingObject: HANDLE, - dwDesiredAccess: DWORD, - dwFileOffsetHigh: DWORD, - dwFileOffsetLow: DWORD, - dwNumberOfBytesToMap: SIZE_T, - ) -> LPVOID; -} -extern "C" { - pub fn MapViewOfFileEx( - hFileMappingObject: HANDLE, - dwDesiredAccess: DWORD, - dwFileOffsetHigh: DWORD, - dwFileOffsetLow: DWORD, - dwNumberOfBytesToMap: SIZE_T, - lpBaseAddress: LPVOID, - ) -> LPVOID; -} -extern "C" { - pub fn VirtualFreeEx( - hProcess: HANDLE, - lpAddress: LPVOID, - dwSize: SIZE_T, - dwFreeType: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn FlushViewOfFile(lpBaseAddress: LPCVOID, dwNumberOfBytesToFlush: SIZE_T) -> BOOL; -} -extern "C" { - pub fn UnmapViewOfFile(lpBaseAddress: LPCVOID) -> BOOL; -} -extern "C" { - pub fn GetLargePageMinimum() -> SIZE_T; -} -extern "C" { - pub fn GetProcessWorkingSetSize( - hProcess: HANDLE, - lpMinimumWorkingSetSize: PSIZE_T, - lpMaximumWorkingSetSize: PSIZE_T, - ) -> BOOL; -} -extern "C" { - pub fn GetProcessWorkingSetSizeEx( - hProcess: HANDLE, - lpMinimumWorkingSetSize: PSIZE_T, - lpMaximumWorkingSetSize: PSIZE_T, - Flags: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetProcessWorkingSetSize( - hProcess: HANDLE, - dwMinimumWorkingSetSize: SIZE_T, - dwMaximumWorkingSetSize: SIZE_T, - ) -> BOOL; -} -extern "C" { - pub fn SetProcessWorkingSetSizeEx( - hProcess: HANDLE, - dwMinimumWorkingSetSize: SIZE_T, - dwMaximumWorkingSetSize: SIZE_T, - Flags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn VirtualLock(lpAddress: LPVOID, dwSize: SIZE_T) -> BOOL; -} -extern "C" { - pub fn VirtualUnlock(lpAddress: LPVOID, dwSize: SIZE_T) -> BOOL; -} -extern "C" { - pub fn GetWriteWatch( - dwFlags: DWORD, - lpBaseAddress: PVOID, - dwRegionSize: SIZE_T, - lpAddresses: *mut PVOID, - lpdwCount: *mut ULONG_PTR, - lpdwGranularity: LPDWORD, - ) -> UINT; -} -extern "C" { - pub fn ResetWriteWatch(lpBaseAddress: LPVOID, dwRegionSize: SIZE_T) -> UINT; -} -pub const _MEMORY_RESOURCE_NOTIFICATION_TYPE_LowMemoryResourceNotification: - _MEMORY_RESOURCE_NOTIFICATION_TYPE = 0; -pub const _MEMORY_RESOURCE_NOTIFICATION_TYPE_HighMemoryResourceNotification: - _MEMORY_RESOURCE_NOTIFICATION_TYPE = 1; -pub type _MEMORY_RESOURCE_NOTIFICATION_TYPE = ::std::os::raw::c_int; -pub use self::_MEMORY_RESOURCE_NOTIFICATION_TYPE as MEMORY_RESOURCE_NOTIFICATION_TYPE; -extern "C" { - pub fn CreateMemoryResourceNotification( - NotificationType: MEMORY_RESOURCE_NOTIFICATION_TYPE, - ) -> HANDLE; -} -extern "C" { - pub fn QueryMemoryResourceNotification( - ResourceNotificationHandle: HANDLE, - ResourceState: PBOOL, - ) -> BOOL; -} -extern "C" { - pub fn GetSystemFileCacheSize( - lpMinimumFileCacheSize: PSIZE_T, - lpMaximumFileCacheSize: PSIZE_T, - lpFlags: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetSystemFileCacheSize( - MinimumFileCacheSize: SIZE_T, - MaximumFileCacheSize: SIZE_T, - Flags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CreateFileMappingNumaW( - hFile: HANDLE, - lpFileMappingAttributes: LPSECURITY_ATTRIBUTES, - flProtect: DWORD, - dwMaximumSizeHigh: DWORD, - dwMaximumSizeLow: DWORD, - lpName: LPCWSTR, - nndPreferred: DWORD, - ) -> HANDLE; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WIN32_MEMORY_RANGE_ENTRY { - pub VirtualAddress: PVOID, - pub NumberOfBytes: SIZE_T, -} -pub type WIN32_MEMORY_RANGE_ENTRY = _WIN32_MEMORY_RANGE_ENTRY; -pub type PWIN32_MEMORY_RANGE_ENTRY = *mut _WIN32_MEMORY_RANGE_ENTRY; -extern "C" { - pub fn PrefetchVirtualMemory( - hProcess: HANDLE, - NumberOfEntries: ULONG_PTR, - VirtualAddresses: PWIN32_MEMORY_RANGE_ENTRY, - Flags: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn CreateFileMappingFromApp( - hFile: HANDLE, - SecurityAttributes: PSECURITY_ATTRIBUTES, - PageProtection: ULONG, - MaximumSize: ULONG64, - Name: PCWSTR, - ) -> HANDLE; -} -extern "C" { - pub fn MapViewOfFileFromApp( - hFileMappingObject: HANDLE, - DesiredAccess: ULONG, - FileOffset: ULONG64, - NumberOfBytesToMap: SIZE_T, - ) -> PVOID; -} -extern "C" { - pub fn UnmapViewOfFileEx(BaseAddress: PVOID, UnmapFlags: ULONG) -> BOOL; -} -extern "C" { - pub fn AllocateUserPhysicalPages( - hProcess: HANDLE, - NumberOfPages: PULONG_PTR, - PageArray: PULONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn FreeUserPhysicalPages( - hProcess: HANDLE, - NumberOfPages: PULONG_PTR, - PageArray: PULONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn MapUserPhysicalPages( - VirtualAddress: PVOID, - NumberOfPages: ULONG_PTR, - PageArray: PULONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn AllocateUserPhysicalPagesNuma( - hProcess: HANDLE, - NumberOfPages: PULONG_PTR, - PageArray: PULONG_PTR, - nndPreferred: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn VirtualAllocExNuma( - hProcess: HANDLE, - lpAddress: LPVOID, - dwSize: SIZE_T, - flAllocationType: DWORD, - flProtect: DWORD, - nndPreferred: DWORD, - ) -> LPVOID; -} -extern "C" { - pub fn GetMemoryErrorHandlingCapabilities(Capabilities: PULONG) -> BOOL; -} -pub type PBAD_MEMORY_CALLBACK_ROUTINE = ::std::option::Option; -extern "C" { - pub fn RegisterBadMemoryNotification(Callback: PBAD_MEMORY_CALLBACK_ROUTINE) -> PVOID; -} -extern "C" { - pub fn UnregisterBadMemoryNotification(RegistrationHandle: PVOID) -> BOOL; -} -pub const OFFER_PRIORITY_VmOfferPriorityVeryLow: OFFER_PRIORITY = 1; -pub const OFFER_PRIORITY_VmOfferPriorityLow: OFFER_PRIORITY = 2; -pub const OFFER_PRIORITY_VmOfferPriorityBelowNormal: OFFER_PRIORITY = 3; -pub const OFFER_PRIORITY_VmOfferPriorityNormal: OFFER_PRIORITY = 4; -pub type OFFER_PRIORITY = ::std::os::raw::c_int; -extern "C" { - pub fn OfferVirtualMemory( - VirtualAddress: PVOID, - Size: SIZE_T, - Priority: OFFER_PRIORITY, - ) -> DWORD; -} -extern "C" { - pub fn ReclaimVirtualMemory( - VirtualAddress: *const ::std::os::raw::c_void, - Size: SIZE_T, - ) -> DWORD; -} -extern "C" { - pub fn DiscardVirtualMemory(VirtualAddress: PVOID, Size: SIZE_T) -> DWORD; -} -extern "C" { - pub fn SetProcessValidCallTargets( - hProcess: HANDLE, - VirtualAddress: PVOID, - RegionSize: SIZE_T, - NumberOfOffsets: ULONG, - OffsetInformation: PCFG_CALL_TARGET_INFO, - ) -> BOOL; -} -extern "C" { - pub fn SetProcessValidCallTargetsForMappedView( - Process: HANDLE, - VirtualAddress: PVOID, - RegionSize: SIZE_T, - NumberOfOffsets: ULONG, - OffsetInformation: PCFG_CALL_TARGET_INFO, - Section: HANDLE, - ExpectedFileOffset: ULONG64, - ) -> BOOL; -} -extern "C" { - pub fn VirtualAllocFromApp( - BaseAddress: PVOID, - Size: SIZE_T, - AllocationType: ULONG, - Protection: ULONG, - ) -> PVOID; -} -extern "C" { - pub fn VirtualProtectFromApp( - Address: PVOID, - Size: SIZE_T, - NewProtection: ULONG, - OldProtection: PULONG, - ) -> BOOL; -} -extern "C" { - pub fn OpenFileMappingFromApp( - DesiredAccess: ULONG, - InheritHandle: BOOL, - Name: PCWSTR, - ) -> HANDLE; -} -pub const WIN32_MEMORY_INFORMATION_CLASS_MemoryRegionInfo: WIN32_MEMORY_INFORMATION_CLASS = 0; -pub type WIN32_MEMORY_INFORMATION_CLASS = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct WIN32_MEMORY_REGION_INFORMATION { - pub AllocationBase: PVOID, - pub AllocationProtect: ULONG, - pub __bindgen_anon_1: WIN32_MEMORY_REGION_INFORMATION__bindgen_ty_1, - pub RegionSize: SIZE_T, - pub CommitSize: SIZE_T, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union WIN32_MEMORY_REGION_INFORMATION__bindgen_ty_1 { - pub Flags: ULONG, - pub __bindgen_anon_1: WIN32_MEMORY_REGION_INFORMATION__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct WIN32_MEMORY_REGION_INFORMATION__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl WIN32_MEMORY_REGION_INFORMATION__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn Private(&self) -> ULONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_Private(&mut self, val: ULONG) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn MappedDataFile(&self) -> ULONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_MappedDataFile(&mut self, val: ULONG) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn MappedImage(&self) -> ULONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_MappedImage(&mut self, val: ULONG) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn MappedPageFile(&self) -> ULONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_MappedPageFile(&mut self, val: ULONG) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn MappedPhysical(&self) -> ULONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } - } - #[inline] - pub fn set_MappedPhysical(&mut self, val: ULONG) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn DirectMapped(&self) -> ULONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } - } - #[inline] - pub fn set_DirectMapped(&mut self, val: ULONG) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> ULONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 26u8) as u32) } - } - #[inline] - pub fn set_Reserved(&mut self, val: ULONG) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(6usize, 26u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - Private: ULONG, - MappedDataFile: ULONG, - MappedImage: ULONG, - MappedPageFile: ULONG, - MappedPhysical: ULONG, - DirectMapped: ULONG, - Reserved: ULONG, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let Private: u32 = unsafe { ::std::mem::transmute(Private) }; - Private as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let MappedDataFile: u32 = unsafe { ::std::mem::transmute(MappedDataFile) }; - MappedDataFile as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let MappedImage: u32 = unsafe { ::std::mem::transmute(MappedImage) }; - MappedImage as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let MappedPageFile: u32 = unsafe { ::std::mem::transmute(MappedPageFile) }; - MappedPageFile as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let MappedPhysical: u32 = unsafe { ::std::mem::transmute(MappedPhysical) }; - MappedPhysical as u64 - }); - __bindgen_bitfield_unit.set(5usize, 1u8, { - let DirectMapped: u32 = unsafe { ::std::mem::transmute(DirectMapped) }; - DirectMapped as u64 - }); - __bindgen_bitfield_unit.set(6usize, 26u8, { - let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -extern "C" { - pub fn QueryVirtualMemoryInformation( - Process: HANDLE, - VirtualAddress: *const ::std::os::raw::c_void, - MemoryInformationClass: WIN32_MEMORY_INFORMATION_CLASS, - MemoryInformation: PVOID, - MemoryInformationSize: SIZE_T, - ReturnSize: PSIZE_T, - ) -> BOOL; -} -extern "C" { - pub fn MapViewOfFileNuma2( - FileMappingHandle: HANDLE, - ProcessHandle: HANDLE, - Offset: ULONG64, - BaseAddress: PVOID, - ViewSize: SIZE_T, - AllocationType: ULONG, - PageProtection: ULONG, - PreferredNode: ULONG, - ) -> PVOID; -} -extern "C" { - pub fn UnmapViewOfFile2(Process: HANDLE, BaseAddress: PVOID, UnmapFlags: ULONG) -> BOOL; -} -extern "C" { - pub fn VirtualUnlockEx(Process: HANDLE, Address: LPVOID, Size: SIZE_T) -> BOOL; -} -extern "C" { - pub fn VirtualAlloc2( - Process: HANDLE, - BaseAddress: PVOID, - Size: SIZE_T, - AllocationType: ULONG, - PageProtection: ULONG, - ExtendedParameters: *mut MEM_EXTENDED_PARAMETER, - ParameterCount: ULONG, - ) -> PVOID; -} -extern "C" { - pub fn MapViewOfFile3( - FileMapping: HANDLE, - Process: HANDLE, - BaseAddress: PVOID, - Offset: ULONG64, - ViewSize: SIZE_T, - AllocationType: ULONG, - PageProtection: ULONG, - ExtendedParameters: *mut MEM_EXTENDED_PARAMETER, - ParameterCount: ULONG, - ) -> PVOID; -} -extern "C" { - pub fn VirtualAlloc2FromApp( - Process: HANDLE, - BaseAddress: PVOID, - Size: SIZE_T, - AllocationType: ULONG, - PageProtection: ULONG, - ExtendedParameters: *mut MEM_EXTENDED_PARAMETER, - ParameterCount: ULONG, - ) -> PVOID; -} -extern "C" { - pub fn MapViewOfFile3FromApp( - FileMapping: HANDLE, - Process: HANDLE, - BaseAddress: PVOID, - Offset: ULONG64, - ViewSize: SIZE_T, - AllocationType: ULONG, - PageProtection: ULONG, - ExtendedParameters: *mut MEM_EXTENDED_PARAMETER, - ParameterCount: ULONG, - ) -> PVOID; -} -extern "C" { - pub fn CreateFileMapping2( - File: HANDLE, - SecurityAttributes: *mut SECURITY_ATTRIBUTES, - DesiredAccess: ULONG, - PageProtection: ULONG, - AllocationAttributes: ULONG, - MaximumSize: ULONG64, - Name: PCWSTR, - ExtendedParameters: *mut MEM_EXTENDED_PARAMETER, - ParameterCount: ULONG, - ) -> HANDLE; -} -extern "C" { - pub fn AllocateUserPhysicalPages2( - ObjectHandle: HANDLE, - NumberOfPages: PULONG_PTR, - PageArray: PULONG_PTR, - ExtendedParameters: PMEM_EXTENDED_PARAMETER, - ExtendedParameterCount: ULONG, - ) -> BOOL; -} -pub const WIN32_MEMORY_PARTITION_INFORMATION_CLASS_MemoryPartitionInfo: - WIN32_MEMORY_PARTITION_INFORMATION_CLASS = 0; -pub const WIN32_MEMORY_PARTITION_INFORMATION_CLASS_MemoryPartitionDedicatedMemoryInfo: - WIN32_MEMORY_PARTITION_INFORMATION_CLASS = 1; -pub type WIN32_MEMORY_PARTITION_INFORMATION_CLASS = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WIN32_MEMORY_PARTITION_INFORMATION { - pub Flags: ULONG, - pub NumaNode: ULONG, - pub Channel: ULONG, - pub NumberOfNumaNodes: ULONG, - pub ResidentAvailablePages: ULONG64, - pub CommittedPages: ULONG64, - pub CommitLimit: ULONG64, - pub PeakCommitment: ULONG64, - pub TotalNumberOfPages: ULONG64, - pub AvailablePages: ULONG64, - pub ZeroPages: ULONG64, - pub FreePages: ULONG64, - pub StandbyPages: ULONG64, - pub Reserved: [ULONG64; 16usize], - pub MaximumCommitLimit: ULONG64, - pub Reserved2: ULONG64, - pub PartitionId: ULONG, -} -extern "C" { - pub fn OpenDedicatedMemoryPartition( - Partition: HANDLE, - DedicatedMemoryTypeId: ULONG64, - DesiredAccess: ACCESS_MASK, - InheritHandle: BOOL, - ) -> HANDLE; -} -extern "C" { - pub fn QueryPartitionInformation( - Partition: HANDLE, - PartitionInformationClass: WIN32_MEMORY_PARTITION_INFORMATION_CLASS, - PartitionInformation: PVOID, - PartitionInformationLength: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn IsEnclaveTypeSupported(flEnclaveType: DWORD) -> BOOL; -} -extern "C" { - pub fn CreateEnclave( - hProcess: HANDLE, - lpAddress: LPVOID, - dwSize: SIZE_T, - dwInitialCommitment: SIZE_T, - flEnclaveType: DWORD, - lpEnclaveInformation: LPCVOID, - dwInfoLength: DWORD, - lpEnclaveError: LPDWORD, - ) -> LPVOID; -} -extern "C" { - pub fn LoadEnclaveData( - hProcess: HANDLE, - lpAddress: LPVOID, - lpBuffer: LPCVOID, - nSize: SIZE_T, - flProtect: DWORD, - lpPageInformation: LPCVOID, - dwInfoLength: DWORD, - lpNumberOfBytesWritten: PSIZE_T, - lpEnclaveError: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn InitializeEnclave( - hProcess: HANDLE, - lpAddress: LPVOID, - lpEnclaveInformation: LPCVOID, - dwInfoLength: DWORD, - lpEnclaveError: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn LoadEnclaveImageA(lpEnclaveAddress: LPVOID, lpImageName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn LoadEnclaveImageW(lpEnclaveAddress: LPVOID, lpImageName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn CallEnclave( - lpRoutine: LPENCLAVE_ROUTINE, - lpParameter: LPVOID, - fWaitForThread: BOOL, - lpReturnValue: *mut LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn TerminateEnclave(lpAddress: LPVOID, fWait: BOOL) -> BOOL; -} -extern "C" { - pub fn DeleteEnclave(lpAddress: LPVOID) -> BOOL; -} -extern "C" { - pub fn QueueUserWorkItem( - Function: LPTHREAD_START_ROUTINE, - Context: PVOID, - Flags: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn UnregisterWaitEx(WaitHandle: HANDLE, CompletionEvent: HANDLE) -> BOOL; -} -extern "C" { - pub fn CreateTimerQueue() -> HANDLE; -} -extern "C" { - pub fn CreateTimerQueueTimer( - phNewTimer: PHANDLE, - TimerQueue: HANDLE, - Callback: WAITORTIMERCALLBACK, - Parameter: PVOID, - DueTime: DWORD, - Period: DWORD, - Flags: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn ChangeTimerQueueTimer( - TimerQueue: HANDLE, - Timer: HANDLE, - DueTime: ULONG, - Period: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn DeleteTimerQueueTimer( - TimerQueue: HANDLE, - Timer: HANDLE, - CompletionEvent: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn DeleteTimerQueue(TimerQueue: HANDLE) -> BOOL; -} -extern "C" { - pub fn DeleteTimerQueueEx(TimerQueue: HANDLE, CompletionEvent: HANDLE) -> BOOL; -} -pub type PTP_WIN32_IO_CALLBACK = ::std::option::Option< - unsafe extern "C" fn( - Instance: PTP_CALLBACK_INSTANCE, - Context: PVOID, - Overlapped: PVOID, - IoResult: ULONG, - NumberOfBytesTransferred: ULONG_PTR, - Io: PTP_IO, - ), ->; -extern "C" { - pub fn CreateThreadpool(reserved: PVOID) -> PTP_POOL; -} -extern "C" { - pub fn SetThreadpoolThreadMaximum(ptpp: PTP_POOL, cthrdMost: DWORD); -} -extern "C" { - pub fn SetThreadpoolThreadMinimum(ptpp: PTP_POOL, cthrdMic: DWORD) -> BOOL; -} -extern "C" { - pub fn SetThreadpoolStackInformation(ptpp: PTP_POOL, ptpsi: PTP_POOL_STACK_INFORMATION) - -> BOOL; -} -extern "C" { - pub fn QueryThreadpoolStackInformation( - ptpp: PTP_POOL, - ptpsi: PTP_POOL_STACK_INFORMATION, - ) -> BOOL; -} -extern "C" { - pub fn CloseThreadpool(ptpp: PTP_POOL); -} -extern "C" { - pub fn CreateThreadpoolCleanupGroup() -> PTP_CLEANUP_GROUP; -} -extern "C" { - pub fn CloseThreadpoolCleanupGroupMembers( - ptpcg: PTP_CLEANUP_GROUP, - fCancelPendingCallbacks: BOOL, - pvCleanupContext: PVOID, - ); -} -extern "C" { - pub fn CloseThreadpoolCleanupGroup(ptpcg: PTP_CLEANUP_GROUP); -} -extern "C" { - pub fn SetEventWhenCallbackReturns(pci: PTP_CALLBACK_INSTANCE, evt: HANDLE); -} -extern "C" { - pub fn ReleaseSemaphoreWhenCallbackReturns( - pci: PTP_CALLBACK_INSTANCE, - sem: HANDLE, - crel: DWORD, - ); -} -extern "C" { - pub fn ReleaseMutexWhenCallbackReturns(pci: PTP_CALLBACK_INSTANCE, mut_: HANDLE); -} -extern "C" { - pub fn LeaveCriticalSectionWhenCallbackReturns( - pci: PTP_CALLBACK_INSTANCE, - pcs: PCRITICAL_SECTION, - ); -} -extern "C" { - pub fn FreeLibraryWhenCallbackReturns(pci: PTP_CALLBACK_INSTANCE, mod_: HMODULE); -} -extern "C" { - pub fn CallbackMayRunLong(pci: PTP_CALLBACK_INSTANCE) -> BOOL; -} -extern "C" { - pub fn DisassociateCurrentThreadFromCallback(pci: PTP_CALLBACK_INSTANCE); -} -extern "C" { - pub fn TrySubmitThreadpoolCallback( - pfns: PTP_SIMPLE_CALLBACK, - pv: PVOID, - pcbe: PTP_CALLBACK_ENVIRON, - ) -> BOOL; -} -extern "C" { - pub fn CreateThreadpoolWork( - pfnwk: PTP_WORK_CALLBACK, - pv: PVOID, - pcbe: PTP_CALLBACK_ENVIRON, - ) -> PTP_WORK; -} -extern "C" { - pub fn SubmitThreadpoolWork(pwk: PTP_WORK); -} -extern "C" { - pub fn WaitForThreadpoolWorkCallbacks(pwk: PTP_WORK, fCancelPendingCallbacks: BOOL); -} -extern "C" { - pub fn CloseThreadpoolWork(pwk: PTP_WORK); -} -extern "C" { - pub fn CreateThreadpoolTimer( - pfnti: PTP_TIMER_CALLBACK, - pv: PVOID, - pcbe: PTP_CALLBACK_ENVIRON, - ) -> PTP_TIMER; -} -extern "C" { - pub fn SetThreadpoolTimer( - pti: PTP_TIMER, - pftDueTime: PFILETIME, - msPeriod: DWORD, - msWindowLength: DWORD, - ); -} -extern "C" { - pub fn IsThreadpoolTimerSet(pti: PTP_TIMER) -> BOOL; -} -extern "C" { - pub fn WaitForThreadpoolTimerCallbacks(pti: PTP_TIMER, fCancelPendingCallbacks: BOOL); -} -extern "C" { - pub fn CloseThreadpoolTimer(pti: PTP_TIMER); -} -extern "C" { - pub fn CreateThreadpoolWait( - pfnwa: PTP_WAIT_CALLBACK, - pv: PVOID, - pcbe: PTP_CALLBACK_ENVIRON, - ) -> PTP_WAIT; -} -extern "C" { - pub fn SetThreadpoolWait(pwa: PTP_WAIT, h: HANDLE, pftTimeout: PFILETIME); -} -extern "C" { - pub fn WaitForThreadpoolWaitCallbacks(pwa: PTP_WAIT, fCancelPendingCallbacks: BOOL); -} -extern "C" { - pub fn CloseThreadpoolWait(pwa: PTP_WAIT); -} -extern "C" { - pub fn CreateThreadpoolIo( - fl: HANDLE, - pfnio: PTP_WIN32_IO_CALLBACK, - pv: PVOID, - pcbe: PTP_CALLBACK_ENVIRON, - ) -> PTP_IO; -} -extern "C" { - pub fn StartThreadpoolIo(pio: PTP_IO); -} -extern "C" { - pub fn CancelThreadpoolIo(pio: PTP_IO); -} -extern "C" { - pub fn WaitForThreadpoolIoCallbacks(pio: PTP_IO, fCancelPendingCallbacks: BOOL); -} -extern "C" { - pub fn CloseThreadpoolIo(pio: PTP_IO); -} -extern "C" { - pub fn SetThreadpoolTimerEx( - pti: PTP_TIMER, - pftDueTime: PFILETIME, - msPeriod: DWORD, - msWindowLength: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetThreadpoolWaitEx( - pwa: PTP_WAIT, - h: HANDLE, - pftTimeout: PFILETIME, - Reserved: PVOID, - ) -> BOOL; -} -extern "C" { - pub fn IsProcessInJob(ProcessHandle: HANDLE, JobHandle: HANDLE, Result: PBOOL) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION { - pub MaxIops: LONG64, - pub MaxBandwidth: LONG64, - pub ReservationIops: LONG64, - pub VolumeName: PCWSTR, - pub BaseIoSize: ULONG, - pub ControlFlags: ULONG, -} -extern "C" { - pub fn CreateJobObjectW(lpJobAttributes: LPSECURITY_ATTRIBUTES, lpName: LPCWSTR) -> HANDLE; -} -extern "C" { - pub fn FreeMemoryJobObject(Buffer: *mut ::std::os::raw::c_void); -} -extern "C" { - pub fn OpenJobObjectW(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCWSTR) -> HANDLE; -} -extern "C" { - pub fn AssignProcessToJobObject(hJob: HANDLE, hProcess: HANDLE) -> BOOL; -} -extern "C" { - pub fn TerminateJobObject(hJob: HANDLE, uExitCode: UINT) -> BOOL; -} -extern "C" { - pub fn SetInformationJobObject( - hJob: HANDLE, - JobObjectInformationClass: JOBOBJECTINFOCLASS, - lpJobObjectInformation: LPVOID, - cbJobObjectInformationLength: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetIoRateControlInformationJobObject( - hJob: HANDLE, - IoRateControlInfo: *mut JOBOBJECT_IO_RATE_CONTROL_INFORMATION, - ) -> DWORD; -} -extern "C" { - pub fn QueryInformationJobObject( - hJob: HANDLE, - JobObjectInformationClass: JOBOBJECTINFOCLASS, - lpJobObjectInformation: LPVOID, - cbJobObjectInformationLength: DWORD, - lpReturnLength: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn QueryIoRateControlInformationJobObject( - hJob: HANDLE, - VolumeName: PCWSTR, - InfoBlocks: *mut *mut JOBOBJECT_IO_RATE_CONTROL_INFORMATION, - InfoBlockCount: *mut ULONG, - ) -> DWORD; -} -extern "C" { - pub fn Wow64EnableWow64FsRedirection(Wow64FsEnableRedirection: BOOLEAN) -> BOOLEAN; -} -extern "C" { - pub fn Wow64DisableWow64FsRedirection(OldValue: *mut PVOID) -> BOOL; -} -extern "C" { - pub fn Wow64RevertWow64FsRedirection(OlValue: PVOID) -> BOOL; -} -extern "C" { - pub fn IsWow64Process(hProcess: HANDLE, Wow64Process: PBOOL) -> BOOL; -} -extern "C" { - pub fn GetSystemWow64DirectoryA(lpBuffer: LPSTR, uSize: UINT) -> UINT; -} -extern "C" { - pub fn GetSystemWow64DirectoryW(lpBuffer: LPWSTR, uSize: UINT) -> UINT; -} -extern "C" { - pub fn Wow64SetThreadDefaultGuestMachine(Machine: USHORT) -> USHORT; -} -extern "C" { - pub fn IsWow64Process2( - hProcess: HANDLE, - pProcessMachine: *mut USHORT, - pNativeMachine: *mut USHORT, - ) -> BOOL; -} -extern "C" { - pub fn GetSystemWow64Directory2A( - lpBuffer: LPSTR, - uSize: UINT, - ImageFileMachineType: WORD, - ) -> UINT; -} -extern "C" { - pub fn GetSystemWow64Directory2W( - lpBuffer: LPWSTR, - uSize: UINT, - ImageFileMachineType: WORD, - ) -> UINT; -} -extern "C" { - pub fn IsWow64GuestMachineSupported( - WowGuestMachine: USHORT, - MachineIsSupported: *mut BOOL, - ) -> HRESULT; -} -extern "C" { - pub fn Wow64GetThreadContext(hThread: HANDLE, lpContext: PWOW64_CONTEXT) -> BOOL; -} -extern "C" { - pub fn Wow64SetThreadContext(hThread: HANDLE, lpContext: *const WOW64_CONTEXT) -> BOOL; -} -extern "C" { - pub fn Wow64SuspendThread(hThread: HANDLE) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagENUMUILANG { - pub NumOfEnumUILang: ULONG, - pub SizeOfEnumUIBuffer: ULONG, - pub pEnumUIBuffer: *mut LANGID, -} -pub type ENUMUILANG = tagENUMUILANG; -pub type PENUMUILANG = *mut tagENUMUILANG; -pub type ENUMRESLANGPROCA = ::std::option::Option< - unsafe extern "C" fn( - hModule: HMODULE, - lpType: LPCSTR, - lpName: LPCSTR, - wLanguage: WORD, - lParam: LONG_PTR, - ) -> BOOL, ->; -pub type ENUMRESLANGPROCW = ::std::option::Option< - unsafe extern "C" fn( - hModule: HMODULE, - lpType: LPCWSTR, - lpName: LPCWSTR, - wLanguage: WORD, - lParam: LONG_PTR, - ) -> BOOL, ->; -pub type ENUMRESNAMEPROCA = ::std::option::Option< - unsafe extern "C" fn(hModule: HMODULE, lpType: LPCSTR, lpName: LPSTR, lParam: LONG_PTR) -> BOOL, ->; -pub type ENUMRESNAMEPROCW = ::std::option::Option< - unsafe extern "C" fn( - hModule: HMODULE, - lpType: LPCWSTR, - lpName: LPWSTR, - lParam: LONG_PTR, - ) -> BOOL, ->; -pub type ENUMRESTYPEPROCA = ::std::option::Option< - unsafe extern "C" fn(hModule: HMODULE, lpType: LPSTR, lParam: LONG_PTR) -> BOOL, ->; -pub type ENUMRESTYPEPROCW = ::std::option::Option< - unsafe extern "C" fn(hModule: HMODULE, lpType: LPWSTR, lParam: LONG_PTR) -> BOOL, ->; -extern "C" { - pub fn DisableThreadLibraryCalls(hLibModule: HMODULE) -> BOOL; -} -extern "C" { - pub fn FindResourceExW( - hModule: HMODULE, - lpType: LPCWSTR, - lpName: LPCWSTR, - wLanguage: WORD, - ) -> HRSRC; -} -extern "C" { - pub fn FindStringOrdinal( - dwFindStringOrdinalFlags: DWORD, - lpStringSource: LPCWSTR, - cchSource: ::std::os::raw::c_int, - lpStringValue: LPCWSTR, - cchValue: ::std::os::raw::c_int, - bIgnoreCase: BOOL, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn FreeLibrary(hLibModule: HMODULE) -> BOOL; -} -extern "C" { - pub fn FreeLibraryAndExitThread(hLibModule: HMODULE, dwExitCode: DWORD) -> !; -} -extern "C" { - pub fn FreeResource(hResData: HGLOBAL) -> BOOL; -} -extern "C" { - pub fn GetModuleFileNameA(hModule: HMODULE, lpFilename: LPSTR, nSize: DWORD) -> DWORD; -} -extern "C" { - pub fn GetModuleFileNameW(hModule: HMODULE, lpFilename: LPWSTR, nSize: DWORD) -> DWORD; -} -extern "C" { - pub fn GetModuleHandleA(lpModuleName: LPCSTR) -> HMODULE; -} -extern "C" { - pub fn GetModuleHandleW(lpModuleName: LPCWSTR) -> HMODULE; -} -pub type PGET_MODULE_HANDLE_EXA = ::std::option::Option< - unsafe extern "C" fn(dwFlags: DWORD, lpModuleName: LPCSTR, phModule: *mut HMODULE) -> BOOL, ->; -pub type PGET_MODULE_HANDLE_EXW = ::std::option::Option< - unsafe extern "C" fn(dwFlags: DWORD, lpModuleName: LPCWSTR, phModule: *mut HMODULE) -> BOOL, ->; -extern "C" { - pub fn GetModuleHandleExA(dwFlags: DWORD, lpModuleName: LPCSTR, phModule: *mut HMODULE) - -> BOOL; -} -extern "C" { - pub fn GetModuleHandleExW( - dwFlags: DWORD, - lpModuleName: LPCWSTR, - phModule: *mut HMODULE, - ) -> BOOL; -} -extern "C" { - pub fn GetProcAddress(hModule: HMODULE, lpProcName: LPCSTR) -> FARPROC; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REDIRECTION_FUNCTION_DESCRIPTOR { - pub DllName: PCSTR, - pub FunctionName: PCSTR, - pub RedirectionTarget: PVOID, -} -pub type REDIRECTION_FUNCTION_DESCRIPTOR = _REDIRECTION_FUNCTION_DESCRIPTOR; -pub type PREDIRECTION_FUNCTION_DESCRIPTOR = *mut _REDIRECTION_FUNCTION_DESCRIPTOR; -pub type PCREDIRECTION_FUNCTION_DESCRIPTOR = *const REDIRECTION_FUNCTION_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REDIRECTION_DESCRIPTOR { - pub Version: ULONG, - pub FunctionCount: ULONG, - pub Redirections: PCREDIRECTION_FUNCTION_DESCRIPTOR, -} -pub type REDIRECTION_DESCRIPTOR = _REDIRECTION_DESCRIPTOR; -pub type PREDIRECTION_DESCRIPTOR = *mut _REDIRECTION_DESCRIPTOR; -pub type PCREDIRECTION_DESCRIPTOR = *const REDIRECTION_DESCRIPTOR; -extern "C" { - pub fn LoadLibraryExA(lpLibFileName: LPCSTR, hFile: HANDLE, dwFlags: DWORD) -> HMODULE; -} -extern "C" { - pub fn LoadLibraryExW(lpLibFileName: LPCWSTR, hFile: HANDLE, dwFlags: DWORD) -> HMODULE; -} -extern "C" { - pub fn LoadResource(hModule: HMODULE, hResInfo: HRSRC) -> HGLOBAL; -} -extern "C" { - pub fn LoadStringA( - hInstance: HINSTANCE, - uID: UINT, - lpBuffer: LPSTR, - cchBufferMax: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn LoadStringW( - hInstance: HINSTANCE, - uID: UINT, - lpBuffer: LPWSTR, - cchBufferMax: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn LockResource(hResData: HGLOBAL) -> LPVOID; -} -extern "C" { - pub fn SizeofResource(hModule: HMODULE, hResInfo: HRSRC) -> DWORD; -} -pub type DLL_DIRECTORY_COOKIE = PVOID; -pub type PDLL_DIRECTORY_COOKIE = *mut PVOID; -extern "C" { - pub fn AddDllDirectory(NewDirectory: PCWSTR) -> DLL_DIRECTORY_COOKIE; -} -extern "C" { - pub fn RemoveDllDirectory(Cookie: DLL_DIRECTORY_COOKIE) -> BOOL; -} -extern "C" { - pub fn SetDefaultDllDirectories(DirectoryFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn EnumResourceLanguagesExA( - hModule: HMODULE, - lpType: LPCSTR, - lpName: LPCSTR, - lpEnumFunc: ENUMRESLANGPROCA, - lParam: LONG_PTR, - dwFlags: DWORD, - LangId: LANGID, - ) -> BOOL; -} -extern "C" { - pub fn EnumResourceLanguagesExW( - hModule: HMODULE, - lpType: LPCWSTR, - lpName: LPCWSTR, - lpEnumFunc: ENUMRESLANGPROCW, - lParam: LONG_PTR, - dwFlags: DWORD, - LangId: LANGID, - ) -> BOOL; -} -extern "C" { - pub fn EnumResourceNamesExA( - hModule: HMODULE, - lpType: LPCSTR, - lpEnumFunc: ENUMRESNAMEPROCA, - lParam: LONG_PTR, - dwFlags: DWORD, - LangId: LANGID, - ) -> BOOL; -} -extern "C" { - pub fn EnumResourceNamesExW( - hModule: HMODULE, - lpType: LPCWSTR, - lpEnumFunc: ENUMRESNAMEPROCW, - lParam: LONG_PTR, - dwFlags: DWORD, - LangId: LANGID, - ) -> BOOL; -} -extern "C" { - pub fn EnumResourceTypesExA( - hModule: HMODULE, - lpEnumFunc: ENUMRESTYPEPROCA, - lParam: LONG_PTR, - dwFlags: DWORD, - LangId: LANGID, - ) -> BOOL; -} -extern "C" { - pub fn EnumResourceTypesExW( - hModule: HMODULE, - lpEnumFunc: ENUMRESTYPEPROCW, - lParam: LONG_PTR, - dwFlags: DWORD, - LangId: LANGID, - ) -> BOOL; -} -extern "C" { - pub fn FindResourceW(hModule: HMODULE, lpName: LPCWSTR, lpType: LPCWSTR) -> HRSRC; -} -extern "C" { - pub fn LoadLibraryA(lpLibFileName: LPCSTR) -> HMODULE; -} -extern "C" { - pub fn LoadLibraryW(lpLibFileName: LPCWSTR) -> HMODULE; -} -extern "C" { - pub fn EnumResourceNamesW( - hModule: HMODULE, - lpType: LPCWSTR, - lpEnumFunc: ENUMRESNAMEPROCW, - lParam: LONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn EnumResourceNamesA( - hModule: HMODULE, - lpType: LPCSTR, - lpEnumFunc: ENUMRESNAMEPROCA, - lParam: LONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn AccessCheck( - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - ClientToken: HANDLE, - DesiredAccess: DWORD, - GenericMapping: PGENERIC_MAPPING, - PrivilegeSet: PPRIVILEGE_SET, - PrivilegeSetLength: LPDWORD, - GrantedAccess: LPDWORD, - AccessStatus: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn AccessCheckAndAuditAlarmW( - SubsystemName: LPCWSTR, - HandleId: LPVOID, - ObjectTypeName: LPWSTR, - ObjectName: LPWSTR, - SecurityDescriptor: PSECURITY_DESCRIPTOR, - DesiredAccess: DWORD, - GenericMapping: PGENERIC_MAPPING, - ObjectCreation: BOOL, - GrantedAccess: LPDWORD, - AccessStatus: LPBOOL, - pfGenerateOnClose: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn AccessCheckByType( - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - PrincipalSelfSid: PSID, - ClientToken: HANDLE, - DesiredAccess: DWORD, - ObjectTypeList: POBJECT_TYPE_LIST, - ObjectTypeListLength: DWORD, - GenericMapping: PGENERIC_MAPPING, - PrivilegeSet: PPRIVILEGE_SET, - PrivilegeSetLength: LPDWORD, - GrantedAccess: LPDWORD, - AccessStatus: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn AccessCheckByTypeResultList( - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - PrincipalSelfSid: PSID, - ClientToken: HANDLE, - DesiredAccess: DWORD, - ObjectTypeList: POBJECT_TYPE_LIST, - ObjectTypeListLength: DWORD, - GenericMapping: PGENERIC_MAPPING, - PrivilegeSet: PPRIVILEGE_SET, - PrivilegeSetLength: LPDWORD, - GrantedAccessList: LPDWORD, - AccessStatusList: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn AccessCheckByTypeAndAuditAlarmW( - SubsystemName: LPCWSTR, - HandleId: LPVOID, - ObjectTypeName: LPCWSTR, - ObjectName: LPCWSTR, - SecurityDescriptor: PSECURITY_DESCRIPTOR, - PrincipalSelfSid: PSID, - DesiredAccess: DWORD, - AuditType: AUDIT_EVENT_TYPE, - Flags: DWORD, - ObjectTypeList: POBJECT_TYPE_LIST, - ObjectTypeListLength: DWORD, - GenericMapping: PGENERIC_MAPPING, - ObjectCreation: BOOL, - GrantedAccess: LPDWORD, - AccessStatus: LPBOOL, - pfGenerateOnClose: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn AccessCheckByTypeResultListAndAuditAlarmW( - SubsystemName: LPCWSTR, - HandleId: LPVOID, - ObjectTypeName: LPCWSTR, - ObjectName: LPCWSTR, - SecurityDescriptor: PSECURITY_DESCRIPTOR, - PrincipalSelfSid: PSID, - DesiredAccess: DWORD, - AuditType: AUDIT_EVENT_TYPE, - Flags: DWORD, - ObjectTypeList: POBJECT_TYPE_LIST, - ObjectTypeListLength: DWORD, - GenericMapping: PGENERIC_MAPPING, - ObjectCreation: BOOL, - GrantedAccessList: LPDWORD, - AccessStatusList: LPDWORD, - pfGenerateOnClose: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn AccessCheckByTypeResultListAndAuditAlarmByHandleW( - SubsystemName: LPCWSTR, - HandleId: LPVOID, - ClientToken: HANDLE, - ObjectTypeName: LPCWSTR, - ObjectName: LPCWSTR, - SecurityDescriptor: PSECURITY_DESCRIPTOR, - PrincipalSelfSid: PSID, - DesiredAccess: DWORD, - AuditType: AUDIT_EVENT_TYPE, - Flags: DWORD, - ObjectTypeList: POBJECT_TYPE_LIST, - ObjectTypeListLength: DWORD, - GenericMapping: PGENERIC_MAPPING, - ObjectCreation: BOOL, - GrantedAccessList: LPDWORD, - AccessStatusList: LPDWORD, - pfGenerateOnClose: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn AddAccessAllowedAce( - pAcl: PACL, - dwAceRevision: DWORD, - AccessMask: DWORD, - pSid: PSID, - ) -> BOOL; -} -extern "C" { - pub fn AddAccessAllowedAceEx( - pAcl: PACL, - dwAceRevision: DWORD, - AceFlags: DWORD, - AccessMask: DWORD, - pSid: PSID, - ) -> BOOL; -} -extern "C" { - pub fn AddAccessAllowedObjectAce( - pAcl: PACL, - dwAceRevision: DWORD, - AceFlags: DWORD, - AccessMask: DWORD, - ObjectTypeGuid: *mut GUID, - InheritedObjectTypeGuid: *mut GUID, - pSid: PSID, - ) -> BOOL; -} -extern "C" { - pub fn AddAccessDeniedAce( - pAcl: PACL, - dwAceRevision: DWORD, - AccessMask: DWORD, - pSid: PSID, - ) -> BOOL; -} -extern "C" { - pub fn AddAccessDeniedAceEx( - pAcl: PACL, - dwAceRevision: DWORD, - AceFlags: DWORD, - AccessMask: DWORD, - pSid: PSID, - ) -> BOOL; -} -extern "C" { - pub fn AddAccessDeniedObjectAce( - pAcl: PACL, - dwAceRevision: DWORD, - AceFlags: DWORD, - AccessMask: DWORD, - ObjectTypeGuid: *mut GUID, - InheritedObjectTypeGuid: *mut GUID, - pSid: PSID, - ) -> BOOL; -} -extern "C" { - pub fn AddAce( - pAcl: PACL, - dwAceRevision: DWORD, - dwStartingAceIndex: DWORD, - pAceList: LPVOID, - nAceListLength: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn AddAuditAccessAce( - pAcl: PACL, - dwAceRevision: DWORD, - dwAccessMask: DWORD, - pSid: PSID, - bAuditSuccess: BOOL, - bAuditFailure: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn AddAuditAccessAceEx( - pAcl: PACL, - dwAceRevision: DWORD, - AceFlags: DWORD, - dwAccessMask: DWORD, - pSid: PSID, - bAuditSuccess: BOOL, - bAuditFailure: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn AddAuditAccessObjectAce( - pAcl: PACL, - dwAceRevision: DWORD, - AceFlags: DWORD, - AccessMask: DWORD, - ObjectTypeGuid: *mut GUID, - InheritedObjectTypeGuid: *mut GUID, - pSid: PSID, - bAuditSuccess: BOOL, - bAuditFailure: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn AddMandatoryAce( - pAcl: PACL, - dwAceRevision: DWORD, - AceFlags: DWORD, - MandatoryPolicy: DWORD, - pLabelSid: PSID, - ) -> BOOL; -} -extern "C" { - pub fn AddResourceAttributeAce( - pAcl: PACL, - dwAceRevision: DWORD, - AceFlags: DWORD, - AccessMask: DWORD, - pSid: PSID, - pAttributeInfo: PCLAIM_SECURITY_ATTRIBUTES_INFORMATION, - pReturnLength: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn AddScopedPolicyIDAce( - pAcl: PACL, - dwAceRevision: DWORD, - AceFlags: DWORD, - AccessMask: DWORD, - pSid: PSID, - ) -> BOOL; -} -extern "C" { - pub fn AdjustTokenGroups( - TokenHandle: HANDLE, - ResetToDefault: BOOL, - NewState: PTOKEN_GROUPS, - BufferLength: DWORD, - PreviousState: PTOKEN_GROUPS, - ReturnLength: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn AdjustTokenPrivileges( - TokenHandle: HANDLE, - DisableAllPrivileges: BOOL, - NewState: PTOKEN_PRIVILEGES, - BufferLength: DWORD, - PreviousState: PTOKEN_PRIVILEGES, - ReturnLength: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn AllocateAndInitializeSid( - pIdentifierAuthority: PSID_IDENTIFIER_AUTHORITY, - nSubAuthorityCount: BYTE, - nSubAuthority0: DWORD, - nSubAuthority1: DWORD, - nSubAuthority2: DWORD, - nSubAuthority3: DWORD, - nSubAuthority4: DWORD, - nSubAuthority5: DWORD, - nSubAuthority6: DWORD, - nSubAuthority7: DWORD, - pSid: *mut PSID, - ) -> BOOL; -} -extern "C" { - pub fn AllocateLocallyUniqueId(Luid: PLUID) -> BOOL; -} -extern "C" { - pub fn AreAllAccessesGranted(GrantedAccess: DWORD, DesiredAccess: DWORD) -> BOOL; -} -extern "C" { - pub fn AreAnyAccessesGranted(GrantedAccess: DWORD, DesiredAccess: DWORD) -> BOOL; -} -extern "C" { - pub fn CheckTokenMembership(TokenHandle: HANDLE, SidToCheck: PSID, IsMember: PBOOL) -> BOOL; -} -extern "C" { - pub fn CheckTokenCapability( - TokenHandle: HANDLE, - CapabilitySidToCheck: PSID, - HasCapability: PBOOL, - ) -> BOOL; -} -extern "C" { - pub fn GetAppContainerAce( - Acl: PACL, - StartingAceIndex: DWORD, - AppContainerAce: *mut PVOID, - AppContainerAceIndex: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CheckTokenMembershipEx( - TokenHandle: HANDLE, - SidToCheck: PSID, - Flags: DWORD, - IsMember: PBOOL, - ) -> BOOL; -} -extern "C" { - pub fn ConvertToAutoInheritPrivateObjectSecurity( - ParentDescriptor: PSECURITY_DESCRIPTOR, - CurrentSecurityDescriptor: PSECURITY_DESCRIPTOR, - NewSecurityDescriptor: *mut PSECURITY_DESCRIPTOR, - ObjectType: *mut GUID, - IsDirectoryObject: BOOLEAN, - GenericMapping: PGENERIC_MAPPING, - ) -> BOOL; -} -extern "C" { - pub fn CopySid(nDestinationSidLength: DWORD, pDestinationSid: PSID, pSourceSid: PSID) -> BOOL; -} -extern "C" { - pub fn CreatePrivateObjectSecurity( - ParentDescriptor: PSECURITY_DESCRIPTOR, - CreatorDescriptor: PSECURITY_DESCRIPTOR, - NewDescriptor: *mut PSECURITY_DESCRIPTOR, - IsDirectoryObject: BOOL, - Token: HANDLE, - GenericMapping: PGENERIC_MAPPING, - ) -> BOOL; -} -extern "C" { - pub fn CreatePrivateObjectSecurityEx( - ParentDescriptor: PSECURITY_DESCRIPTOR, - CreatorDescriptor: PSECURITY_DESCRIPTOR, - NewDescriptor: *mut PSECURITY_DESCRIPTOR, - ObjectType: *mut GUID, - IsContainerObject: BOOL, - AutoInheritFlags: ULONG, - Token: HANDLE, - GenericMapping: PGENERIC_MAPPING, - ) -> BOOL; -} -extern "C" { - pub fn CreatePrivateObjectSecurityWithMultipleInheritance( - ParentDescriptor: PSECURITY_DESCRIPTOR, - CreatorDescriptor: PSECURITY_DESCRIPTOR, - NewDescriptor: *mut PSECURITY_DESCRIPTOR, - ObjectTypes: *mut *mut GUID, - GuidCount: ULONG, - IsContainerObject: BOOL, - AutoInheritFlags: ULONG, - Token: HANDLE, - GenericMapping: PGENERIC_MAPPING, - ) -> BOOL; -} -extern "C" { - pub fn CreateRestrictedToken( - ExistingTokenHandle: HANDLE, - Flags: DWORD, - DisableSidCount: DWORD, - SidsToDisable: PSID_AND_ATTRIBUTES, - DeletePrivilegeCount: DWORD, - PrivilegesToDelete: PLUID_AND_ATTRIBUTES, - RestrictedSidCount: DWORD, - SidsToRestrict: PSID_AND_ATTRIBUTES, - NewTokenHandle: PHANDLE, - ) -> BOOL; -} -extern "C" { - pub fn CreateWellKnownSid( - WellKnownSidType: WELL_KNOWN_SID_TYPE, - DomainSid: PSID, - pSid: PSID, - cbSid: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn EqualDomainSid(pSid1: PSID, pSid2: PSID, pfEqual: *mut BOOL) -> BOOL; -} -extern "C" { - pub fn DeleteAce(pAcl: PACL, dwAceIndex: DWORD) -> BOOL; -} -extern "C" { - pub fn DestroyPrivateObjectSecurity(ObjectDescriptor: *mut PSECURITY_DESCRIPTOR) -> BOOL; -} -extern "C" { - pub fn DuplicateToken( - ExistingTokenHandle: HANDLE, - ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, - DuplicateTokenHandle: PHANDLE, - ) -> BOOL; -} -extern "C" { - pub fn DuplicateTokenEx( - hExistingToken: HANDLE, - dwDesiredAccess: DWORD, - lpTokenAttributes: LPSECURITY_ATTRIBUTES, - ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, - TokenType: TOKEN_TYPE, - phNewToken: PHANDLE, - ) -> BOOL; -} -extern "C" { - pub fn EqualPrefixSid(pSid1: PSID, pSid2: PSID) -> BOOL; -} -extern "C" { - pub fn EqualSid(pSid1: PSID, pSid2: PSID) -> BOOL; -} -extern "C" { - pub fn FindFirstFreeAce(pAcl: PACL, pAce: *mut LPVOID) -> BOOL; -} -extern "C" { - pub fn FreeSid(pSid: PSID) -> PVOID; -} -extern "C" { - pub fn GetAce(pAcl: PACL, dwAceIndex: DWORD, pAce: *mut LPVOID) -> BOOL; -} -extern "C" { - pub fn GetAclInformation( - pAcl: PACL, - pAclInformation: LPVOID, - nAclInformationLength: DWORD, - dwAclInformationClass: ACL_INFORMATION_CLASS, - ) -> BOOL; -} -extern "C" { - pub fn GetFileSecurityW( - lpFileName: LPCWSTR, - RequestedInformation: SECURITY_INFORMATION, - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - nLength: DWORD, - lpnLengthNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetKernelObjectSecurity( - Handle: HANDLE, - RequestedInformation: SECURITY_INFORMATION, - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - nLength: DWORD, - lpnLengthNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetLengthSid(pSid: PSID) -> DWORD; -} -extern "C" { - pub fn GetPrivateObjectSecurity( - ObjectDescriptor: PSECURITY_DESCRIPTOR, - SecurityInformation: SECURITY_INFORMATION, - ResultantDescriptor: PSECURITY_DESCRIPTOR, - DescriptorLength: DWORD, - ReturnLength: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetSecurityDescriptorControl( - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - pControl: PSECURITY_DESCRIPTOR_CONTROL, - lpdwRevision: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetSecurityDescriptorDacl( - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - lpbDaclPresent: LPBOOL, - pDacl: *mut PACL, - lpbDaclDefaulted: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn GetSecurityDescriptorGroup( - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - pGroup: *mut PSID, - lpbGroupDefaulted: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn GetSecurityDescriptorLength(pSecurityDescriptor: PSECURITY_DESCRIPTOR) -> DWORD; -} -extern "C" { - pub fn GetSecurityDescriptorOwner( - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - pOwner: *mut PSID, - lpbOwnerDefaulted: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn GetSecurityDescriptorRMControl( - SecurityDescriptor: PSECURITY_DESCRIPTOR, - RMControl: PUCHAR, - ) -> DWORD; -} -extern "C" { - pub fn GetSecurityDescriptorSacl( - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - lpbSaclPresent: LPBOOL, - pSacl: *mut PACL, - lpbSaclDefaulted: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn GetSidIdentifierAuthority(pSid: PSID) -> PSID_IDENTIFIER_AUTHORITY; -} -extern "C" { - pub fn GetSidLengthRequired(nSubAuthorityCount: UCHAR) -> DWORD; -} -extern "C" { - pub fn GetSidSubAuthority(pSid: PSID, nSubAuthority: DWORD) -> PDWORD; -} -extern "C" { - pub fn GetSidSubAuthorityCount(pSid: PSID) -> PUCHAR; -} -extern "C" { - pub fn GetTokenInformation( - TokenHandle: HANDLE, - TokenInformationClass: TOKEN_INFORMATION_CLASS, - TokenInformation: LPVOID, - TokenInformationLength: DWORD, - ReturnLength: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetWindowsAccountDomainSid( - pSid: PSID, - pDomainSid: PSID, - cbDomainSid: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn ImpersonateAnonymousToken(ThreadHandle: HANDLE) -> BOOL; -} -extern "C" { - pub fn ImpersonateLoggedOnUser(hToken: HANDLE) -> BOOL; -} -extern "C" { - pub fn ImpersonateSelf(ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL) -> BOOL; -} -extern "C" { - pub fn InitializeAcl(pAcl: PACL, nAclLength: DWORD, dwAclRevision: DWORD) -> BOOL; -} -extern "C" { - pub fn InitializeSecurityDescriptor( - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - dwRevision: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn InitializeSid( - Sid: PSID, - pIdentifierAuthority: PSID_IDENTIFIER_AUTHORITY, - nSubAuthorityCount: BYTE, - ) -> BOOL; -} -extern "C" { - pub fn IsTokenRestricted(TokenHandle: HANDLE) -> BOOL; -} -extern "C" { - pub fn IsValidAcl(pAcl: PACL) -> BOOL; -} -extern "C" { - pub fn IsValidSecurityDescriptor(pSecurityDescriptor: PSECURITY_DESCRIPTOR) -> BOOL; -} -extern "C" { - pub fn IsValidSid(pSid: PSID) -> BOOL; -} -extern "C" { - pub fn IsWellKnownSid(pSid: PSID, WellKnownSidType: WELL_KNOWN_SID_TYPE) -> BOOL; -} -extern "C" { - pub fn MakeAbsoluteSD( - pSelfRelativeSecurityDescriptor: PSECURITY_DESCRIPTOR, - pAbsoluteSecurityDescriptor: PSECURITY_DESCRIPTOR, - lpdwAbsoluteSecurityDescriptorSize: LPDWORD, - pDacl: PACL, - lpdwDaclSize: LPDWORD, - pSacl: PACL, - lpdwSaclSize: LPDWORD, - pOwner: PSID, - lpdwOwnerSize: LPDWORD, - pPrimaryGroup: PSID, - lpdwPrimaryGroupSize: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn MakeSelfRelativeSD( - pAbsoluteSecurityDescriptor: PSECURITY_DESCRIPTOR, - pSelfRelativeSecurityDescriptor: PSECURITY_DESCRIPTOR, - lpdwBufferLength: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn MapGenericMask(AccessMask: PDWORD, GenericMapping: PGENERIC_MAPPING); -} -extern "C" { - pub fn ObjectCloseAuditAlarmW( - SubsystemName: LPCWSTR, - HandleId: LPVOID, - GenerateOnClose: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn ObjectDeleteAuditAlarmW( - SubsystemName: LPCWSTR, - HandleId: LPVOID, - GenerateOnClose: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn ObjectOpenAuditAlarmW( - SubsystemName: LPCWSTR, - HandleId: LPVOID, - ObjectTypeName: LPWSTR, - ObjectName: LPWSTR, - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - ClientToken: HANDLE, - DesiredAccess: DWORD, - GrantedAccess: DWORD, - Privileges: PPRIVILEGE_SET, - ObjectCreation: BOOL, - AccessGranted: BOOL, - GenerateOnClose: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn ObjectPrivilegeAuditAlarmW( - SubsystemName: LPCWSTR, - HandleId: LPVOID, - ClientToken: HANDLE, - DesiredAccess: DWORD, - Privileges: PPRIVILEGE_SET, - AccessGranted: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn PrivilegeCheck( - ClientToken: HANDLE, - RequiredPrivileges: PPRIVILEGE_SET, - pfResult: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn PrivilegedServiceAuditAlarmW( - SubsystemName: LPCWSTR, - ServiceName: LPCWSTR, - ClientToken: HANDLE, - Privileges: PPRIVILEGE_SET, - AccessGranted: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn QuerySecurityAccessMask( - SecurityInformation: SECURITY_INFORMATION, - DesiredAccess: LPDWORD, - ); -} -extern "C" { - pub fn RevertToSelf() -> BOOL; -} -extern "C" { - pub fn SetAclInformation( - pAcl: PACL, - pAclInformation: LPVOID, - nAclInformationLength: DWORD, - dwAclInformationClass: ACL_INFORMATION_CLASS, - ) -> BOOL; -} -extern "C" { - pub fn SetFileSecurityW( - lpFileName: LPCWSTR, - SecurityInformation: SECURITY_INFORMATION, - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - ) -> BOOL; -} -extern "C" { - pub fn SetKernelObjectSecurity( - Handle: HANDLE, - SecurityInformation: SECURITY_INFORMATION, - SecurityDescriptor: PSECURITY_DESCRIPTOR, - ) -> BOOL; -} -extern "C" { - pub fn SetPrivateObjectSecurity( - SecurityInformation: SECURITY_INFORMATION, - ModificationDescriptor: PSECURITY_DESCRIPTOR, - ObjectsSecurityDescriptor: *mut PSECURITY_DESCRIPTOR, - GenericMapping: PGENERIC_MAPPING, - Token: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn SetPrivateObjectSecurityEx( - SecurityInformation: SECURITY_INFORMATION, - ModificationDescriptor: PSECURITY_DESCRIPTOR, - ObjectsSecurityDescriptor: *mut PSECURITY_DESCRIPTOR, - AutoInheritFlags: ULONG, - GenericMapping: PGENERIC_MAPPING, - Token: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn SetSecurityAccessMask(SecurityInformation: SECURITY_INFORMATION, DesiredAccess: LPDWORD); -} -extern "C" { - pub fn SetSecurityDescriptorControl( - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - ControlBitsOfInterest: SECURITY_DESCRIPTOR_CONTROL, - ControlBitsToSet: SECURITY_DESCRIPTOR_CONTROL, - ) -> BOOL; -} -extern "C" { - pub fn SetSecurityDescriptorDacl( - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - bDaclPresent: BOOL, - pDacl: PACL, - bDaclDefaulted: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn SetSecurityDescriptorGroup( - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - pGroup: PSID, - bGroupDefaulted: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn SetSecurityDescriptorOwner( - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - pOwner: PSID, - bOwnerDefaulted: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn SetSecurityDescriptorRMControl( - SecurityDescriptor: PSECURITY_DESCRIPTOR, - RMControl: PUCHAR, - ) -> DWORD; -} -extern "C" { - pub fn SetSecurityDescriptorSacl( - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - bSaclPresent: BOOL, - pSacl: PACL, - bSaclDefaulted: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn SetTokenInformation( - TokenHandle: HANDLE, - TokenInformationClass: TOKEN_INFORMATION_CLASS, - TokenInformation: LPVOID, - TokenInformationLength: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetCachedSigningLevel( - SourceFiles: PHANDLE, - SourceFileCount: ULONG, - Flags: ULONG, - TargetFile: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn GetCachedSigningLevel( - File: HANDLE, - Flags: PULONG, - SigningLevel: PULONG, - Thumbprint: PUCHAR, - ThumbprintSize: PULONG, - ThumbprintAlgorithm: PULONG, - ) -> BOOL; -} -extern "C" { - pub fn CveEventWrite(CveId: PCWSTR, AdditionalDetails: PCWSTR) -> LONG; -} -extern "C" { - pub fn DeriveCapabilitySidsFromName( - CapName: LPCWSTR, - CapabilityGroupSids: *mut *mut PSID, - CapabilityGroupSidCount: *mut DWORD, - CapabilitySids: *mut *mut PSID, - CapabilitySidCount: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CreatePrivateNamespaceW( - lpPrivateNamespaceAttributes: LPSECURITY_ATTRIBUTES, - lpBoundaryDescriptor: LPVOID, - lpAliasPrefix: LPCWSTR, - ) -> HANDLE; -} -extern "C" { - pub fn OpenPrivateNamespaceW(lpBoundaryDescriptor: LPVOID, lpAliasPrefix: LPCWSTR) -> HANDLE; -} -extern "C" { - pub fn ClosePrivateNamespace(Handle: HANDLE, Flags: ULONG) -> BOOLEAN; -} -extern "C" { - pub fn CreateBoundaryDescriptorW(Name: LPCWSTR, Flags: ULONG) -> HANDLE; -} -extern "C" { - pub fn AddSIDToBoundaryDescriptor(BoundaryDescriptor: *mut HANDLE, RequiredSid: PSID) -> BOOL; -} -extern "C" { - pub fn DeleteBoundaryDescriptor(BoundaryDescriptor: HANDLE); -} -extern "C" { - pub fn GetNumaHighestNodeNumber(HighestNodeNumber: PULONG) -> BOOL; -} -extern "C" { - pub fn GetNumaNodeProcessorMaskEx(Node: USHORT, ProcessorMask: PGROUP_AFFINITY) -> BOOL; -} -extern "C" { - pub fn GetNumaNodeProcessorMask2( - NodeNumber: USHORT, - ProcessorMasks: PGROUP_AFFINITY, - ProcessorMaskCount: USHORT, - RequiredMaskCount: PUSHORT, - ) -> BOOL; -} -extern "C" { - pub fn GetNumaProximityNodeEx(ProximityId: ULONG, NodeNumber: PUSHORT) -> BOOL; -} -extern "C" { - pub fn GetProcessGroupAffinity( - hProcess: HANDLE, - GroupCount: PUSHORT, - GroupArray: PUSHORT, - ) -> BOOL; -} -extern "C" { - pub fn GetThreadGroupAffinity(hThread: HANDLE, GroupAffinity: PGROUP_AFFINITY) -> BOOL; -} -extern "C" { - pub fn SetThreadGroupAffinity( - hThread: HANDLE, - GroupAffinity: *const GROUP_AFFINITY, - PreviousGroupAffinity: PGROUP_AFFINITY, - ) -> BOOL; -} -extern "C" { - pub fn GetAppContainerNamedObjectPath( - Token: HANDLE, - AppContainerSid: PSID, - ObjectPathLength: ULONG, - ObjectPath: LPWSTR, - ReturnLength: PULONG, - ) -> BOOL; -} -extern "C" { - pub fn QueryThreadCycleTime(ThreadHandle: HANDLE, CycleTime: PULONG64) -> BOOL; -} -extern "C" { - pub fn QueryProcessCycleTime(ProcessHandle: HANDLE, CycleTime: PULONG64) -> BOOL; -} -extern "C" { - pub fn QueryIdleProcessorCycleTime( - BufferLength: PULONG, - ProcessorIdleCycleTime: PULONG64, - ) -> BOOL; -} -extern "C" { - pub fn QueryIdleProcessorCycleTimeEx( - Group: USHORT, - BufferLength: PULONG, - ProcessorIdleCycleTime: PULONG64, - ) -> BOOL; -} -extern "C" { - pub fn QueryInterruptTimePrecise(lpInterruptTimePrecise: PULONGLONG); -} -extern "C" { - pub fn QueryUnbiasedInterruptTimePrecise(lpUnbiasedInterruptTimePrecise: PULONGLONG); -} -extern "C" { - pub fn QueryInterruptTime(lpInterruptTime: PULONGLONG); -} -extern "C" { - pub fn QueryUnbiasedInterruptTime(UnbiasedTime: PULONGLONG) -> BOOL; -} -extern "C" { - pub fn QueryAuxiliaryCounterFrequency(lpAuxiliaryCounterFrequency: PULONGLONG) -> HRESULT; -} -extern "C" { - pub fn ConvertAuxiliaryCounterToPerformanceCounter( - ullAuxiliaryCounterValue: ULONGLONG, - lpPerformanceCounterValue: PULONGLONG, - lpConversionError: PULONGLONG, - ) -> HRESULT; -} -extern "C" { - pub fn ConvertPerformanceCounterToAuxiliaryCounter( - ullPerformanceCounterValue: ULONGLONG, - lpAuxiliaryCounterValue: PULONGLONG, - lpConversionError: PULONGLONG, - ) -> HRESULT; -} -pub const FILE_WRITE_FLAGS_FILE_WRITE_FLAGS_NONE: FILE_WRITE_FLAGS = 0; -pub const FILE_WRITE_FLAGS_FILE_WRITE_FLAGS_WRITE_THROUGH: FILE_WRITE_FLAGS = 1; -pub type FILE_WRITE_FLAGS = ::std::os::raw::c_int; -pub const FILE_FLUSH_MODE_FILE_FLUSH_DEFAULT: FILE_FLUSH_MODE = 0; -pub const FILE_FLUSH_MODE_FILE_FLUSH_DATA: FILE_FLUSH_MODE = 1; -pub const FILE_FLUSH_MODE_FILE_FLUSH_MIN_METADATA: FILE_FLUSH_MODE = 2; -pub const FILE_FLUSH_MODE_FILE_FLUSH_NO_SYNC: FILE_FLUSH_MODE = 3; -pub type FILE_FLUSH_MODE = ::std::os::raw::c_int; -pub type PFIBER_START_ROUTINE = - ::std::option::Option; -pub type LPFIBER_START_ROUTINE = PFIBER_START_ROUTINE; -pub type PFIBER_CALLOUT_ROUTINE = - ::std::option::Option LPVOID>; -pub type LPLDT_ENTRY = LPVOID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _COMMPROP { - pub wPacketLength: WORD, - pub wPacketVersion: WORD, - pub dwServiceMask: DWORD, - pub dwReserved1: DWORD, - pub dwMaxTxQueue: DWORD, - pub dwMaxRxQueue: DWORD, - pub dwMaxBaud: DWORD, - pub dwProvSubType: DWORD, - pub dwProvCapabilities: DWORD, - pub dwSettableParams: DWORD, - pub dwSettableBaud: DWORD, - pub wSettableData: WORD, - pub wSettableStopParity: WORD, - pub dwCurrentTxQueue: DWORD, - pub dwCurrentRxQueue: DWORD, - pub dwProvSpec1: DWORD, - pub dwProvSpec2: DWORD, - pub wcProvChar: [WCHAR; 1usize], -} -pub type COMMPROP = _COMMPROP; -pub type LPCOMMPROP = *mut _COMMPROP; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _COMSTAT { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, - pub cbInQue: DWORD, - pub cbOutQue: DWORD, -} -impl _COMSTAT { - #[inline] - pub fn fCtsHold(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_fCtsHold(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn fDsrHold(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_fDsrHold(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn fRlsdHold(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_fRlsdHold(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn fXoffHold(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_fXoffHold(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn fXoffSent(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } - } - #[inline] - pub fn set_fXoffSent(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn fEof(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } - } - #[inline] - pub fn set_fEof(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 1u8, val as u64) - } - } - #[inline] - pub fn fTxim(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } - } - #[inline] - pub fn set_fTxim(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(6usize, 1u8, val as u64) - } - } - #[inline] - pub fn fReserved(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 25u8) as u32) } - } - #[inline] - pub fn set_fReserved(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(7usize, 25u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - fCtsHold: DWORD, - fDsrHold: DWORD, - fRlsdHold: DWORD, - fXoffHold: DWORD, - fXoffSent: DWORD, - fEof: DWORD, - fTxim: DWORD, - fReserved: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let fCtsHold: u32 = unsafe { ::std::mem::transmute(fCtsHold) }; - fCtsHold as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let fDsrHold: u32 = unsafe { ::std::mem::transmute(fDsrHold) }; - fDsrHold as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let fRlsdHold: u32 = unsafe { ::std::mem::transmute(fRlsdHold) }; - fRlsdHold as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let fXoffHold: u32 = unsafe { ::std::mem::transmute(fXoffHold) }; - fXoffHold as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let fXoffSent: u32 = unsafe { ::std::mem::transmute(fXoffSent) }; - fXoffSent as u64 - }); - __bindgen_bitfield_unit.set(5usize, 1u8, { - let fEof: u32 = unsafe { ::std::mem::transmute(fEof) }; - fEof as u64 - }); - __bindgen_bitfield_unit.set(6usize, 1u8, { - let fTxim: u32 = unsafe { ::std::mem::transmute(fTxim) }; - fTxim as u64 - }); - __bindgen_bitfield_unit.set(7usize, 25u8, { - let fReserved: u32 = unsafe { ::std::mem::transmute(fReserved) }; - fReserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type COMSTAT = _COMSTAT; -pub type LPCOMSTAT = *mut _COMSTAT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DCB { - pub DCBlength: DWORD, - pub BaudRate: DWORD, - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, - pub wReserved: WORD, - pub XonLim: WORD, - pub XoffLim: WORD, - pub ByteSize: BYTE, - pub Parity: BYTE, - pub StopBits: BYTE, - pub XonChar: ::std::os::raw::c_char, - pub XoffChar: ::std::os::raw::c_char, - pub ErrorChar: ::std::os::raw::c_char, - pub EofChar: ::std::os::raw::c_char, - pub EvtChar: ::std::os::raw::c_char, - pub wReserved1: WORD, -} -impl _DCB { - #[inline] - pub fn fBinary(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_fBinary(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn fParity(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_fParity(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn fOutxCtsFlow(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_fOutxCtsFlow(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn fOutxDsrFlow(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_fOutxDsrFlow(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn fDtrControl(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 2u8) as u32) } - } - #[inline] - pub fn set_fDtrControl(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 2u8, val as u64) - } - } - #[inline] - pub fn fDsrSensitivity(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } - } - #[inline] - pub fn set_fDsrSensitivity(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(6usize, 1u8, val as u64) - } - } - #[inline] - pub fn fTXContinueOnXoff(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } - } - #[inline] - pub fn set_fTXContinueOnXoff(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(7usize, 1u8, val as u64) - } - } - #[inline] - pub fn fOutX(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) } - } - #[inline] - pub fn set_fOutX(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 1u8, val as u64) - } - } - #[inline] - pub fn fInX(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) } - } - #[inline] - pub fn set_fInX(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(9usize, 1u8, val as u64) - } - } - #[inline] - pub fn fErrorChar(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) } - } - #[inline] - pub fn set_fErrorChar(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(10usize, 1u8, val as u64) - } - } - #[inline] - pub fn fNull(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) } - } - #[inline] - pub fn set_fNull(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(11usize, 1u8, val as u64) - } - } - #[inline] - pub fn fRtsControl(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 2u8) as u32) } - } - #[inline] - pub fn set_fRtsControl(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(12usize, 2u8, val as u64) - } - } - #[inline] - pub fn fAbortOnError(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) } - } - #[inline] - pub fn set_fAbortOnError(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(14usize, 1u8, val as u64) - } - } - #[inline] - pub fn fDummy2(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 17u8) as u32) } - } - #[inline] - pub fn set_fDummy2(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(15usize, 17u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - fBinary: DWORD, - fParity: DWORD, - fOutxCtsFlow: DWORD, - fOutxDsrFlow: DWORD, - fDtrControl: DWORD, - fDsrSensitivity: DWORD, - fTXContinueOnXoff: DWORD, - fOutX: DWORD, - fInX: DWORD, - fErrorChar: DWORD, - fNull: DWORD, - fRtsControl: DWORD, - fAbortOnError: DWORD, - fDummy2: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let fBinary: u32 = unsafe { ::std::mem::transmute(fBinary) }; - fBinary as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let fParity: u32 = unsafe { ::std::mem::transmute(fParity) }; - fParity as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let fOutxCtsFlow: u32 = unsafe { ::std::mem::transmute(fOutxCtsFlow) }; - fOutxCtsFlow as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let fOutxDsrFlow: u32 = unsafe { ::std::mem::transmute(fOutxDsrFlow) }; - fOutxDsrFlow as u64 - }); - __bindgen_bitfield_unit.set(4usize, 2u8, { - let fDtrControl: u32 = unsafe { ::std::mem::transmute(fDtrControl) }; - fDtrControl as u64 - }); - __bindgen_bitfield_unit.set(6usize, 1u8, { - let fDsrSensitivity: u32 = unsafe { ::std::mem::transmute(fDsrSensitivity) }; - fDsrSensitivity as u64 - }); - __bindgen_bitfield_unit.set(7usize, 1u8, { - let fTXContinueOnXoff: u32 = unsafe { ::std::mem::transmute(fTXContinueOnXoff) }; - fTXContinueOnXoff as u64 - }); - __bindgen_bitfield_unit.set(8usize, 1u8, { - let fOutX: u32 = unsafe { ::std::mem::transmute(fOutX) }; - fOutX as u64 - }); - __bindgen_bitfield_unit.set(9usize, 1u8, { - let fInX: u32 = unsafe { ::std::mem::transmute(fInX) }; - fInX as u64 - }); - __bindgen_bitfield_unit.set(10usize, 1u8, { - let fErrorChar: u32 = unsafe { ::std::mem::transmute(fErrorChar) }; - fErrorChar as u64 - }); - __bindgen_bitfield_unit.set(11usize, 1u8, { - let fNull: u32 = unsafe { ::std::mem::transmute(fNull) }; - fNull as u64 - }); - __bindgen_bitfield_unit.set(12usize, 2u8, { - let fRtsControl: u32 = unsafe { ::std::mem::transmute(fRtsControl) }; - fRtsControl as u64 - }); - __bindgen_bitfield_unit.set(14usize, 1u8, { - let fAbortOnError: u32 = unsafe { ::std::mem::transmute(fAbortOnError) }; - fAbortOnError as u64 - }); - __bindgen_bitfield_unit.set(15usize, 17u8, { - let fDummy2: u32 = unsafe { ::std::mem::transmute(fDummy2) }; - fDummy2 as u64 - }); - __bindgen_bitfield_unit - } -} -pub type DCB = _DCB; -pub type LPDCB = *mut _DCB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _COMMTIMEOUTS { - pub ReadIntervalTimeout: DWORD, - pub ReadTotalTimeoutMultiplier: DWORD, - pub ReadTotalTimeoutConstant: DWORD, - pub WriteTotalTimeoutMultiplier: DWORD, - pub WriteTotalTimeoutConstant: DWORD, -} -pub type COMMTIMEOUTS = _COMMTIMEOUTS; -pub type LPCOMMTIMEOUTS = *mut _COMMTIMEOUTS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _COMMCONFIG { - pub dwSize: DWORD, - pub wVersion: WORD, - pub wReserved: WORD, - pub dcb: DCB, - pub dwProviderSubType: DWORD, - pub dwProviderOffset: DWORD, - pub dwProviderSize: DWORD, - pub wcProviderData: [WCHAR; 1usize], -} -pub type COMMCONFIG = _COMMCONFIG; -pub type LPCOMMCONFIG = *mut _COMMCONFIG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MEMORYSTATUS { - pub dwLength: DWORD, - pub dwMemoryLoad: DWORD, - pub dwTotalPhys: SIZE_T, - pub dwAvailPhys: SIZE_T, - pub dwTotalPageFile: SIZE_T, - pub dwAvailPageFile: SIZE_T, - pub dwTotalVirtual: SIZE_T, - pub dwAvailVirtual: SIZE_T, -} -pub type MEMORYSTATUS = _MEMORYSTATUS; -pub type LPMEMORYSTATUS = *mut _MEMORYSTATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JIT_DEBUG_INFO { - pub dwSize: DWORD, - pub dwProcessorArchitecture: DWORD, - pub dwThreadID: DWORD, - pub dwReserved0: DWORD, - pub lpExceptionAddress: ULONG64, - pub lpExceptionRecord: ULONG64, - pub lpContextRecord: ULONG64, -} -pub type JIT_DEBUG_INFO = _JIT_DEBUG_INFO; -pub type LPJIT_DEBUG_INFO = *mut _JIT_DEBUG_INFO; -pub type JIT_DEBUG_INFO32 = JIT_DEBUG_INFO; -pub type LPJIT_DEBUG_INFO32 = *mut JIT_DEBUG_INFO; -pub type JIT_DEBUG_INFO64 = JIT_DEBUG_INFO; -pub type LPJIT_DEBUG_INFO64 = *mut JIT_DEBUG_INFO; -pub type LPEXCEPTION_RECORD = PEXCEPTION_RECORD; -pub type LPEXCEPTION_POINTERS = PEXCEPTION_POINTERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OFSTRUCT { - pub cBytes: BYTE, - pub fFixedDisk: BYTE, - pub nErrCode: WORD, - pub Reserved1: WORD, - pub Reserved2: WORD, - pub szPathName: [CHAR; 128usize], -} -pub type OFSTRUCT = _OFSTRUCT; -pub type LPOFSTRUCT = *mut _OFSTRUCT; -pub type POFSTRUCT = *mut _OFSTRUCT; -extern "C" { - pub fn WinMain( - hInstance: HINSTANCE, - hPrevInstance: HINSTANCE, - lpCmdLine: LPSTR, - nShowCmd: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn wWinMain( - hInstance: HINSTANCE, - hPrevInstance: HINSTANCE, - lpCmdLine: LPWSTR, - nShowCmd: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GlobalAlloc(uFlags: UINT, dwBytes: SIZE_T) -> HGLOBAL; -} -extern "C" { - pub fn GlobalReAlloc(hMem: HGLOBAL, dwBytes: SIZE_T, uFlags: UINT) -> HGLOBAL; -} -extern "C" { - pub fn GlobalSize(hMem: HGLOBAL) -> SIZE_T; -} -extern "C" { - pub fn GlobalUnlock(hMem: HGLOBAL) -> BOOL; -} -extern "C" { - pub fn GlobalLock(hMem: HGLOBAL) -> LPVOID; -} -extern "C" { - pub fn GlobalFlags(hMem: HGLOBAL) -> UINT; -} -extern "C" { - pub fn GlobalHandle(pMem: LPCVOID) -> HGLOBAL; -} -extern "C" { - pub fn GlobalFree(hMem: HGLOBAL) -> HGLOBAL; -} -extern "C" { - pub fn GlobalCompact(dwMinFree: DWORD) -> SIZE_T; -} -extern "C" { - pub fn GlobalFix(hMem: HGLOBAL); -} -extern "C" { - pub fn GlobalUnfix(hMem: HGLOBAL); -} -extern "C" { - pub fn GlobalWire(hMem: HGLOBAL) -> LPVOID; -} -extern "C" { - pub fn GlobalUnWire(hMem: HGLOBAL) -> BOOL; -} -extern "C" { - pub fn GlobalMemoryStatus(lpBuffer: LPMEMORYSTATUS); -} -extern "C" { - pub fn LocalAlloc(uFlags: UINT, uBytes: SIZE_T) -> HLOCAL; -} -extern "C" { - pub fn LocalReAlloc(hMem: HLOCAL, uBytes: SIZE_T, uFlags: UINT) -> HLOCAL; -} -extern "C" { - pub fn LocalLock(hMem: HLOCAL) -> LPVOID; -} -extern "C" { - pub fn LocalHandle(pMem: LPCVOID) -> HLOCAL; -} -extern "C" { - pub fn LocalUnlock(hMem: HLOCAL) -> BOOL; -} -extern "C" { - pub fn LocalSize(hMem: HLOCAL) -> SIZE_T; -} -extern "C" { - pub fn LocalFlags(hMem: HLOCAL) -> UINT; -} -extern "C" { - pub fn LocalFree(hMem: HLOCAL) -> HLOCAL; -} -extern "C" { - pub fn LocalShrink(hMem: HLOCAL, cbNewSize: UINT) -> SIZE_T; -} -extern "C" { - pub fn LocalCompact(uMinFree: UINT) -> SIZE_T; -} -extern "C" { - pub fn GetBinaryTypeA(lpApplicationName: LPCSTR, lpBinaryType: LPDWORD) -> BOOL; -} -extern "C" { - pub fn GetBinaryTypeW(lpApplicationName: LPCWSTR, lpBinaryType: LPDWORD) -> BOOL; -} -extern "C" { - pub fn GetShortPathNameA(lpszLongPath: LPCSTR, lpszShortPath: LPSTR, cchBuffer: DWORD) - -> DWORD; -} -extern "C" { - pub fn GetLongPathNameTransactedA( - lpszShortPath: LPCSTR, - lpszLongPath: LPSTR, - cchBuffer: DWORD, - hTransaction: HANDLE, - ) -> DWORD; -} -extern "C" { - pub fn GetLongPathNameTransactedW( - lpszShortPath: LPCWSTR, - lpszLongPath: LPWSTR, - cchBuffer: DWORD, - hTransaction: HANDLE, - ) -> DWORD; -} -extern "C" { - pub fn GetProcessAffinityMask( - hProcess: HANDLE, - lpProcessAffinityMask: PDWORD_PTR, - lpSystemAffinityMask: PDWORD_PTR, - ) -> BOOL; -} -extern "C" { - pub fn SetProcessAffinityMask(hProcess: HANDLE, dwProcessAffinityMask: DWORD_PTR) -> BOOL; -} -extern "C" { - pub fn GetProcessIoCounters(hProcess: HANDLE, lpIoCounters: PIO_COUNTERS) -> BOOL; -} -extern "C" { - pub fn FatalExit(ExitCode: ::std::os::raw::c_int); -} -extern "C" { - pub fn SetEnvironmentStringsA(NewEnvironment: LPCH) -> BOOL; -} -extern "C" { - pub fn SwitchToFiber(lpFiber: LPVOID); -} -extern "C" { - pub fn DeleteFiber(lpFiber: LPVOID); -} -extern "C" { - pub fn ConvertFiberToThread() -> BOOL; -} -extern "C" { - pub fn CreateFiberEx( - dwStackCommitSize: SIZE_T, - dwStackReserveSize: SIZE_T, - dwFlags: DWORD, - lpStartAddress: LPFIBER_START_ROUTINE, - lpParameter: LPVOID, - ) -> LPVOID; -} -extern "C" { - pub fn ConvertThreadToFiberEx(lpParameter: LPVOID, dwFlags: DWORD) -> LPVOID; -} -extern "C" { - pub fn CreateFiber( - dwStackSize: SIZE_T, - lpStartAddress: LPFIBER_START_ROUTINE, - lpParameter: LPVOID, - ) -> LPVOID; -} -extern "C" { - pub fn ConvertThreadToFiber(lpParameter: LPVOID) -> LPVOID; -} -pub type PUMS_CONTEXT = *mut ::std::os::raw::c_void; -pub type PUMS_COMPLETION_LIST = *mut ::std::os::raw::c_void; -pub use self::_RTL_UMS_THREAD_INFO_CLASS as UMS_THREAD_INFO_CLASS; -pub type PUMS_THREAD_INFO_CLASS = *mut _RTL_UMS_THREAD_INFO_CLASS; -pub use self::_RTL_UMS_SCHEDULER_REASON as UMS_SCHEDULER_REASON; -pub type PUMS_SCHEDULER_ENTRY_POINT = PRTL_UMS_SCHEDULER_ENTRY_POINT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _UMS_SCHEDULER_STARTUP_INFO { - pub UmsVersion: ULONG, - pub CompletionList: PUMS_COMPLETION_LIST, - pub SchedulerProc: PUMS_SCHEDULER_ENTRY_POINT, - pub SchedulerParam: PVOID, -} -pub type UMS_SCHEDULER_STARTUP_INFO = _UMS_SCHEDULER_STARTUP_INFO; -pub type PUMS_SCHEDULER_STARTUP_INFO = *mut _UMS_SCHEDULER_STARTUP_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _UMS_SYSTEM_THREAD_INFORMATION { - pub UmsVersion: ULONG, - pub __bindgen_anon_1: _UMS_SYSTEM_THREAD_INFORMATION__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _UMS_SYSTEM_THREAD_INFORMATION__bindgen_ty_1 { - pub __bindgen_anon_1: _UMS_SYSTEM_THREAD_INFORMATION__bindgen_ty_1__bindgen_ty_1, - pub ThreadUmsFlags: ULONG, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _UMS_SYSTEM_THREAD_INFORMATION__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 3usize], -} -impl _UMS_SYSTEM_THREAD_INFORMATION__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn IsUmsSchedulerThread(&self) -> ULONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_IsUmsSchedulerThread(&mut self, val: ULONG) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn IsUmsWorkerThread(&self) -> ULONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_IsUmsWorkerThread(&mut self, val: ULONG) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - IsUmsSchedulerThread: ULONG, - IsUmsWorkerThread: ULONG, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let IsUmsSchedulerThread: u32 = unsafe { ::std::mem::transmute(IsUmsSchedulerThread) }; - IsUmsSchedulerThread as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let IsUmsWorkerThread: u32 = unsafe { ::std::mem::transmute(IsUmsWorkerThread) }; - IsUmsWorkerThread as u64 - }); - __bindgen_bitfield_unit - } -} -pub type UMS_SYSTEM_THREAD_INFORMATION = _UMS_SYSTEM_THREAD_INFORMATION; -pub type PUMS_SYSTEM_THREAD_INFORMATION = *mut _UMS_SYSTEM_THREAD_INFORMATION; -extern "C" { - pub fn CreateUmsCompletionList(UmsCompletionList: *mut PUMS_COMPLETION_LIST) -> BOOL; -} -extern "C" { - pub fn DequeueUmsCompletionListItems( - UmsCompletionList: PUMS_COMPLETION_LIST, - WaitTimeOut: DWORD, - UmsThreadList: *mut PUMS_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn GetUmsCompletionListEvent( - UmsCompletionList: PUMS_COMPLETION_LIST, - UmsCompletionEvent: PHANDLE, - ) -> BOOL; -} -extern "C" { - pub fn ExecuteUmsThread(UmsThread: PUMS_CONTEXT) -> BOOL; -} -extern "C" { - pub fn UmsThreadYield(SchedulerParam: PVOID) -> BOOL; -} -extern "C" { - pub fn DeleteUmsCompletionList(UmsCompletionList: PUMS_COMPLETION_LIST) -> BOOL; -} -extern "C" { - pub fn GetCurrentUmsThread() -> PUMS_CONTEXT; -} -extern "C" { - pub fn GetNextUmsListItem(UmsContext: PUMS_CONTEXT) -> PUMS_CONTEXT; -} -extern "C" { - pub fn QueryUmsThreadInformation( - UmsThread: PUMS_CONTEXT, - UmsThreadInfoClass: UMS_THREAD_INFO_CLASS, - UmsThreadInformation: PVOID, - UmsThreadInformationLength: ULONG, - ReturnLength: PULONG, - ) -> BOOL; -} -extern "C" { - pub fn SetUmsThreadInformation( - UmsThread: PUMS_CONTEXT, - UmsThreadInfoClass: UMS_THREAD_INFO_CLASS, - UmsThreadInformation: PVOID, - UmsThreadInformationLength: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn DeleteUmsThreadContext(UmsThread: PUMS_CONTEXT) -> BOOL; -} -extern "C" { - pub fn CreateUmsThreadContext(lpUmsThread: *mut PUMS_CONTEXT) -> BOOL; -} -extern "C" { - pub fn EnterUmsSchedulingMode(SchedulerStartupInfo: PUMS_SCHEDULER_STARTUP_INFO) -> BOOL; -} -extern "C" { - pub fn GetUmsSystemThreadInformation( - ThreadHandle: HANDLE, - SystemThreadInfo: PUMS_SYSTEM_THREAD_INFORMATION, - ) -> BOOL; -} -extern "C" { - pub fn SetThreadAffinityMask(hThread: HANDLE, dwThreadAffinityMask: DWORD_PTR) -> DWORD_PTR; -} -extern "C" { - pub fn SetProcessDEPPolicy(dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn GetProcessDEPPolicy(hProcess: HANDLE, lpFlags: LPDWORD, lpPermanent: PBOOL) -> BOOL; -} -extern "C" { - pub fn RequestWakeupLatency(latency: LATENCY_TIME) -> BOOL; -} -extern "C" { - pub fn IsSystemResumeAutomatic() -> BOOL; -} -extern "C" { - pub fn GetThreadSelectorEntry( - hThread: HANDLE, - dwSelector: DWORD, - lpSelectorEntry: LPLDT_ENTRY, - ) -> BOOL; -} -extern "C" { - pub fn SetThreadExecutionState(esFlags: EXECUTION_STATE) -> EXECUTION_STATE; -} -pub type POWER_REQUEST_CONTEXT = REASON_CONTEXT; -pub type PPOWER_REQUEST_CONTEXT = *mut REASON_CONTEXT; -pub type LPPOWER_REQUEST_CONTEXT = *mut REASON_CONTEXT; -extern "C" { - pub fn PowerCreateRequest(Context: PREASON_CONTEXT) -> HANDLE; -} -extern "C" { - pub fn PowerSetRequest(PowerRequest: HANDLE, RequestType: POWER_REQUEST_TYPE) -> BOOL; -} -extern "C" { - pub fn PowerClearRequest(PowerRequest: HANDLE, RequestType: POWER_REQUEST_TYPE) -> BOOL; -} -extern "C" { - pub fn SetFileCompletionNotificationModes(FileHandle: HANDLE, Flags: UCHAR) -> BOOL; -} -extern "C" { - pub fn Wow64GetThreadSelectorEntry( - hThread: HANDLE, - dwSelector: DWORD, - lpSelectorEntry: PWOW64_LDT_ENTRY, - ) -> BOOL; -} -extern "C" { - pub fn DebugSetProcessKillOnExit(KillOnExit: BOOL) -> BOOL; -} -extern "C" { - pub fn DebugBreakProcess(Process: HANDLE) -> BOOL; -} -extern "C" { - pub fn PulseEvent(hEvent: HANDLE) -> BOOL; -} -extern "C" { - pub fn GlobalDeleteAtom(nAtom: ATOM) -> ATOM; -} -extern "C" { - pub fn InitAtomTable(nSize: DWORD) -> BOOL; -} -extern "C" { - pub fn DeleteAtom(nAtom: ATOM) -> ATOM; -} -extern "C" { - pub fn SetHandleCount(uNumber: UINT) -> UINT; -} -extern "C" { - pub fn RequestDeviceWakeup(hDevice: HANDLE) -> BOOL; -} -extern "C" { - pub fn CancelDeviceWakeupRequest(hDevice: HANDLE) -> BOOL; -} -extern "C" { - pub fn GetDevicePowerState(hDevice: HANDLE, pfOn: *mut BOOL) -> BOOL; -} -extern "C" { - pub fn SetMessageWaitingIndicator(hMsgIndicator: HANDLE, ulMsgCount: ULONG) -> BOOL; -} -extern "C" { - pub fn SetFileShortNameA(hFile: HANDLE, lpShortName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn SetFileShortNameW(hFile: HANDLE, lpShortName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn LoadModule(lpModuleName: LPCSTR, lpParameterBlock: LPVOID) -> DWORD; -} -extern "C" { - pub fn WinExec(lpCmdLine: LPCSTR, uCmdShow: UINT) -> UINT; -} -extern "C" { - pub fn ClearCommBreak(hFile: HANDLE) -> BOOL; -} -extern "C" { - pub fn ClearCommError(hFile: HANDLE, lpErrors: LPDWORD, lpStat: LPCOMSTAT) -> BOOL; -} -extern "C" { - pub fn SetupComm(hFile: HANDLE, dwInQueue: DWORD, dwOutQueue: DWORD) -> BOOL; -} -extern "C" { - pub fn EscapeCommFunction(hFile: HANDLE, dwFunc: DWORD) -> BOOL; -} -extern "C" { - pub fn GetCommConfig(hCommDev: HANDLE, lpCC: LPCOMMCONFIG, lpdwSize: LPDWORD) -> BOOL; -} -extern "C" { - pub fn GetCommMask(hFile: HANDLE, lpEvtMask: LPDWORD) -> BOOL; -} -extern "C" { - pub fn GetCommProperties(hFile: HANDLE, lpCommProp: LPCOMMPROP) -> BOOL; -} -extern "C" { - pub fn GetCommModemStatus(hFile: HANDLE, lpModemStat: LPDWORD) -> BOOL; -} -extern "C" { - pub fn GetCommState(hFile: HANDLE, lpDCB: LPDCB) -> BOOL; -} -extern "C" { - pub fn GetCommTimeouts(hFile: HANDLE, lpCommTimeouts: LPCOMMTIMEOUTS) -> BOOL; -} -extern "C" { - pub fn PurgeComm(hFile: HANDLE, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn SetCommBreak(hFile: HANDLE) -> BOOL; -} -extern "C" { - pub fn SetCommConfig(hCommDev: HANDLE, lpCC: LPCOMMCONFIG, dwSize: DWORD) -> BOOL; -} -extern "C" { - pub fn SetCommMask(hFile: HANDLE, dwEvtMask: DWORD) -> BOOL; -} -extern "C" { - pub fn SetCommState(hFile: HANDLE, lpDCB: LPDCB) -> BOOL; -} -extern "C" { - pub fn SetCommTimeouts(hFile: HANDLE, lpCommTimeouts: LPCOMMTIMEOUTS) -> BOOL; -} -extern "C" { - pub fn TransmitCommChar(hFile: HANDLE, cChar: ::std::os::raw::c_char) -> BOOL; -} -extern "C" { - pub fn WaitCommEvent(hFile: HANDLE, lpEvtMask: LPDWORD, lpOverlapped: LPOVERLAPPED) -> BOOL; -} -extern "C" { - pub fn OpenCommPort( - uPortNumber: ULONG, - dwDesiredAccess: DWORD, - dwFlagsAndAttributes: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn GetCommPorts( - lpPortNumbers: PULONG, - uPortNumbersCount: ULONG, - puPortNumbersFound: PULONG, - ) -> ULONG; -} -extern "C" { - pub fn SetTapePosition( - hDevice: HANDLE, - dwPositionMethod: DWORD, - dwPartition: DWORD, - dwOffsetLow: DWORD, - dwOffsetHigh: DWORD, - bImmediate: BOOL, - ) -> DWORD; -} -extern "C" { - pub fn GetTapePosition( - hDevice: HANDLE, - dwPositionType: DWORD, - lpdwPartition: LPDWORD, - lpdwOffsetLow: LPDWORD, - lpdwOffsetHigh: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn PrepareTape(hDevice: HANDLE, dwOperation: DWORD, bImmediate: BOOL) -> DWORD; -} -extern "C" { - pub fn EraseTape(hDevice: HANDLE, dwEraseType: DWORD, bImmediate: BOOL) -> DWORD; -} -extern "C" { - pub fn CreateTapePartition( - hDevice: HANDLE, - dwPartitionMethod: DWORD, - dwCount: DWORD, - dwSize: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn WriteTapemark( - hDevice: HANDLE, - dwTapemarkType: DWORD, - dwTapemarkCount: DWORD, - bImmediate: BOOL, - ) -> DWORD; -} -extern "C" { - pub fn GetTapeStatus(hDevice: HANDLE) -> DWORD; -} -extern "C" { - pub fn GetTapeParameters( - hDevice: HANDLE, - dwOperation: DWORD, - lpdwSize: LPDWORD, - lpTapeInformation: LPVOID, - ) -> DWORD; -} -extern "C" { - pub fn SetTapeParameters( - hDevice: HANDLE, - dwOperation: DWORD, - lpTapeInformation: LPVOID, - ) -> DWORD; -} -extern "C" { - pub fn MulDiv( - nNumber: ::std::os::raw::c_int, - nNumerator: ::std::os::raw::c_int, - nDenominator: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -pub const _DEP_SYSTEM_POLICY_TYPE_DEPPolicyAlwaysOff: _DEP_SYSTEM_POLICY_TYPE = 0; -pub const _DEP_SYSTEM_POLICY_TYPE_DEPPolicyAlwaysOn: _DEP_SYSTEM_POLICY_TYPE = 1; -pub const _DEP_SYSTEM_POLICY_TYPE_DEPPolicyOptIn: _DEP_SYSTEM_POLICY_TYPE = 2; -pub const _DEP_SYSTEM_POLICY_TYPE_DEPPolicyOptOut: _DEP_SYSTEM_POLICY_TYPE = 3; -pub const _DEP_SYSTEM_POLICY_TYPE_DEPTotalPolicyCount: _DEP_SYSTEM_POLICY_TYPE = 4; -pub type _DEP_SYSTEM_POLICY_TYPE = ::std::os::raw::c_int; -pub use self::_DEP_SYSTEM_POLICY_TYPE as DEP_SYSTEM_POLICY_TYPE; -extern "C" { - pub fn GetSystemDEPPolicy() -> DEP_SYSTEM_POLICY_TYPE; -} -extern "C" { - pub fn GetSystemRegistryQuota(pdwQuotaAllowed: PDWORD, pdwQuotaUsed: PDWORD) -> BOOL; -} -extern "C" { - pub fn FileTimeToDosDateTime( - lpFileTime: *const FILETIME, - lpFatDate: LPWORD, - lpFatTime: LPWORD, - ) -> BOOL; -} -extern "C" { - pub fn DosDateTimeToFileTime(wFatDate: WORD, wFatTime: WORD, lpFileTime: LPFILETIME) -> BOOL; -} -extern "C" { - pub fn FormatMessageA( - dwFlags: DWORD, - lpSource: LPCVOID, - dwMessageId: DWORD, - dwLanguageId: DWORD, - lpBuffer: LPSTR, - nSize: DWORD, - Arguments: *mut va_list, - ) -> DWORD; -} -extern "C" { - pub fn FormatMessageW( - dwFlags: DWORD, - lpSource: LPCVOID, - dwMessageId: DWORD, - dwLanguageId: DWORD, - lpBuffer: LPWSTR, - nSize: DWORD, - Arguments: *mut va_list, - ) -> DWORD; -} -extern "C" { - pub fn CreateMailslotA( - lpName: LPCSTR, - nMaxMessageSize: DWORD, - lReadTimeout: DWORD, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - ) -> HANDLE; -} -extern "C" { - pub fn CreateMailslotW( - lpName: LPCWSTR, - nMaxMessageSize: DWORD, - lReadTimeout: DWORD, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - ) -> HANDLE; -} -extern "C" { - pub fn GetMailslotInfo( - hMailslot: HANDLE, - lpMaxMessageSize: LPDWORD, - lpNextSize: LPDWORD, - lpMessageCount: LPDWORD, - lpReadTimeout: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetMailslotInfo(hMailslot: HANDLE, lReadTimeout: DWORD) -> BOOL; -} -extern "C" { - pub fn EncryptFileA(lpFileName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn EncryptFileW(lpFileName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn DecryptFileA(lpFileName: LPCSTR, dwReserved: DWORD) -> BOOL; -} -extern "C" { - pub fn DecryptFileW(lpFileName: LPCWSTR, dwReserved: DWORD) -> BOOL; -} -extern "C" { - pub fn FileEncryptionStatusA(lpFileName: LPCSTR, lpStatus: LPDWORD) -> BOOL; -} -extern "C" { - pub fn FileEncryptionStatusW(lpFileName: LPCWSTR, lpStatus: LPDWORD) -> BOOL; -} -pub type PFE_EXPORT_FUNC = ::std::option::Option< - unsafe extern "C" fn(pbData: PBYTE, pvCallbackContext: PVOID, ulLength: ULONG) -> DWORD, ->; -pub type PFE_IMPORT_FUNC = ::std::option::Option< - unsafe extern "C" fn(pbData: PBYTE, pvCallbackContext: PVOID, ulLength: PULONG) -> DWORD, ->; -extern "C" { - pub fn OpenEncryptedFileRawA( - lpFileName: LPCSTR, - ulFlags: ULONG, - pvContext: *mut PVOID, - ) -> DWORD; -} -extern "C" { - pub fn OpenEncryptedFileRawW( - lpFileName: LPCWSTR, - ulFlags: ULONG, - pvContext: *mut PVOID, - ) -> DWORD; -} -extern "C" { - pub fn ReadEncryptedFileRaw( - pfExportCallback: PFE_EXPORT_FUNC, - pvCallbackContext: PVOID, - pvContext: PVOID, - ) -> DWORD; -} -extern "C" { - pub fn WriteEncryptedFileRaw( - pfImportCallback: PFE_IMPORT_FUNC, - pvCallbackContext: PVOID, - pvContext: PVOID, - ) -> DWORD; -} -extern "C" { - pub fn CloseEncryptedFileRaw(pvContext: PVOID); -} -extern "C" { - pub fn lstrcmpA(lpString1: LPCSTR, lpString2: LPCSTR) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn lstrcmpW(lpString1: LPCWSTR, lpString2: LPCWSTR) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn lstrcmpiA(lpString1: LPCSTR, lpString2: LPCSTR) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn lstrcmpiW(lpString1: LPCWSTR, lpString2: LPCWSTR) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn lstrcpynA( - lpString1: LPSTR, - lpString2: LPCSTR, - iMaxLength: ::std::os::raw::c_int, - ) -> LPSTR; -} -extern "C" { - pub fn lstrcpynW( - lpString1: LPWSTR, - lpString2: LPCWSTR, - iMaxLength: ::std::os::raw::c_int, - ) -> LPWSTR; -} -extern "C" { - pub fn lstrcpyA(lpString1: LPSTR, lpString2: LPCSTR) -> LPSTR; -} -extern "C" { - pub fn lstrcpyW(lpString1: LPWSTR, lpString2: LPCWSTR) -> LPWSTR; -} -extern "C" { - pub fn lstrcatA(lpString1: LPSTR, lpString2: LPCSTR) -> LPSTR; -} -extern "C" { - pub fn lstrcatW(lpString1: LPWSTR, lpString2: LPCWSTR) -> LPWSTR; -} -extern "C" { - pub fn lstrlenA(lpString: LPCSTR) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn lstrlenW(lpString: LPCWSTR) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn OpenFile(lpFileName: LPCSTR, lpReOpenBuff: LPOFSTRUCT, uStyle: UINT) -> HFILE; -} -extern "C" { - pub fn _lopen(lpPathName: LPCSTR, iReadWrite: ::std::os::raw::c_int) -> HFILE; -} -extern "C" { - pub fn _lcreat(lpPathName: LPCSTR, iAttribute: ::std::os::raw::c_int) -> HFILE; -} -extern "C" { - pub fn _lread(hFile: HFILE, lpBuffer: LPVOID, uBytes: UINT) -> UINT; -} -extern "C" { - pub fn _lwrite(hFile: HFILE, lpBuffer: LPCCH, uBytes: UINT) -> UINT; -} -extern "C" { - pub fn _hread( - hFile: HFILE, - lpBuffer: LPVOID, - lBytes: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _hwrite( - hFile: HFILE, - lpBuffer: LPCCH, - lBytes: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _lclose(hFile: HFILE) -> HFILE; -} -extern "C" { - pub fn _llseek(hFile: HFILE, lOffset: LONG, iOrigin: ::std::os::raw::c_int) -> LONG; -} -extern "C" { - pub fn IsTextUnicode( - lpv: *const ::std::os::raw::c_void, - iSize: ::std::os::raw::c_int, - lpiResult: LPINT, - ) -> BOOL; -} -extern "C" { - pub fn BackupRead( - hFile: HANDLE, - lpBuffer: LPBYTE, - nNumberOfBytesToRead: DWORD, - lpNumberOfBytesRead: LPDWORD, - bAbort: BOOL, - bProcessSecurity: BOOL, - lpContext: *mut LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn BackupSeek( - hFile: HANDLE, - dwLowBytesToSeek: DWORD, - dwHighBytesToSeek: DWORD, - lpdwLowByteSeeked: LPDWORD, - lpdwHighByteSeeked: LPDWORD, - lpContext: *mut LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn BackupWrite( - hFile: HANDLE, - lpBuffer: LPBYTE, - nNumberOfBytesToWrite: DWORD, - lpNumberOfBytesWritten: LPDWORD, - bAbort: BOOL, - bProcessSecurity: BOOL, - lpContext: *mut LPVOID, - ) -> BOOL; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _WIN32_STREAM_ID { - pub dwStreamId: DWORD, - pub dwStreamAttributes: DWORD, - pub Size: LARGE_INTEGER, - pub dwStreamNameSize: DWORD, - pub cStreamName: [WCHAR; 1usize], -} -pub type WIN32_STREAM_ID = _WIN32_STREAM_ID; -pub type LPWIN32_STREAM_ID = *mut _WIN32_STREAM_ID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STARTUPINFOEXA { - pub StartupInfo: STARTUPINFOA, - pub lpAttributeList: LPPROC_THREAD_ATTRIBUTE_LIST, -} -pub type STARTUPINFOEXA = _STARTUPINFOEXA; -pub type LPSTARTUPINFOEXA = *mut _STARTUPINFOEXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STARTUPINFOEXW { - pub StartupInfo: STARTUPINFOW, - pub lpAttributeList: LPPROC_THREAD_ATTRIBUTE_LIST, -} -pub type STARTUPINFOEXW = _STARTUPINFOEXW; -pub type LPSTARTUPINFOEXW = *mut _STARTUPINFOEXW; -pub type STARTUPINFOEX = STARTUPINFOEXA; -pub type LPSTARTUPINFOEX = LPSTARTUPINFOEXA; -extern "C" { - pub fn OpenMutexA(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCSTR) -> HANDLE; -} -extern "C" { - pub fn CreateSemaphoreA( - lpSemaphoreAttributes: LPSECURITY_ATTRIBUTES, - lInitialCount: LONG, - lMaximumCount: LONG, - lpName: LPCSTR, - ) -> HANDLE; -} -extern "C" { - pub fn OpenSemaphoreA(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCSTR) -> HANDLE; -} -extern "C" { - pub fn CreateWaitableTimerA( - lpTimerAttributes: LPSECURITY_ATTRIBUTES, - bManualReset: BOOL, - lpTimerName: LPCSTR, - ) -> HANDLE; -} -extern "C" { - pub fn OpenWaitableTimerA( - dwDesiredAccess: DWORD, - bInheritHandle: BOOL, - lpTimerName: LPCSTR, - ) -> HANDLE; -} -extern "C" { - pub fn CreateSemaphoreExA( - lpSemaphoreAttributes: LPSECURITY_ATTRIBUTES, - lInitialCount: LONG, - lMaximumCount: LONG, - lpName: LPCSTR, - dwFlags: DWORD, - dwDesiredAccess: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn CreateWaitableTimerExA( - lpTimerAttributes: LPSECURITY_ATTRIBUTES, - lpTimerName: LPCSTR, - dwFlags: DWORD, - dwDesiredAccess: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn CreateFileMappingA( - hFile: HANDLE, - lpFileMappingAttributes: LPSECURITY_ATTRIBUTES, - flProtect: DWORD, - dwMaximumSizeHigh: DWORD, - dwMaximumSizeLow: DWORD, - lpName: LPCSTR, - ) -> HANDLE; -} -extern "C" { - pub fn CreateFileMappingNumaA( - hFile: HANDLE, - lpFileMappingAttributes: LPSECURITY_ATTRIBUTES, - flProtect: DWORD, - dwMaximumSizeHigh: DWORD, - dwMaximumSizeLow: DWORD, - lpName: LPCSTR, - nndPreferred: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn OpenFileMappingA(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCSTR) - -> HANDLE; -} -extern "C" { - pub fn GetLogicalDriveStringsA(nBufferLength: DWORD, lpBuffer: LPSTR) -> DWORD; -} -extern "C" { - pub fn LoadPackagedLibrary(lpwLibFileName: LPCWSTR, Reserved: DWORD) -> HMODULE; -} -extern "C" { - pub fn QueryFullProcessImageNameA( - hProcess: HANDLE, - dwFlags: DWORD, - lpExeName: LPSTR, - lpdwSize: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn QueryFullProcessImageNameW( - hProcess: HANDLE, - dwFlags: DWORD, - lpExeName: LPWSTR, - lpdwSize: PDWORD, - ) -> BOOL; -} -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeParentProcess: _PROC_THREAD_ATTRIBUTE_NUM = - 0; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeHandleList: _PROC_THREAD_ATTRIBUTE_NUM = 2; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeGroupAffinity: _PROC_THREAD_ATTRIBUTE_NUM = - 3; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributePreferredNode: _PROC_THREAD_ATTRIBUTE_NUM = - 4; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeIdealProcessor: _PROC_THREAD_ATTRIBUTE_NUM = - 5; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeUmsThread: _PROC_THREAD_ATTRIBUTE_NUM = 6; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeMitigationPolicy: - _PROC_THREAD_ATTRIBUTE_NUM = 7; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeSecurityCapabilities: - _PROC_THREAD_ATTRIBUTE_NUM = 9; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeProtectionLevel: - _PROC_THREAD_ATTRIBUTE_NUM = 11; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeJobList: _PROC_THREAD_ATTRIBUTE_NUM = 13; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeChildProcessPolicy: - _PROC_THREAD_ATTRIBUTE_NUM = 14; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeAllApplicationPackagesPolicy: - _PROC_THREAD_ATTRIBUTE_NUM = 15; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeWin32kFilter: _PROC_THREAD_ATTRIBUTE_NUM = - 16; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeSafeOpenPromptOriginClaim: - _PROC_THREAD_ATTRIBUTE_NUM = 17; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeDesktopAppPolicy: - _PROC_THREAD_ATTRIBUTE_NUM = 18; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributePseudoConsole: _PROC_THREAD_ATTRIBUTE_NUM = - 22; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeMitigationAuditPolicy: - _PROC_THREAD_ATTRIBUTE_NUM = 24; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeMachineType: _PROC_THREAD_ATTRIBUTE_NUM = - 25; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeComponentFilter: - _PROC_THREAD_ATTRIBUTE_NUM = 26; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeEnableOptionalXStateFeatures: - _PROC_THREAD_ATTRIBUTE_NUM = 27; -pub const _PROC_THREAD_ATTRIBUTE_NUM_ProcThreadAttributeTrustedApp: _PROC_THREAD_ATTRIBUTE_NUM = 29; -pub type _PROC_THREAD_ATTRIBUTE_NUM = ::std::os::raw::c_int; -pub use self::_PROC_THREAD_ATTRIBUTE_NUM as PROC_THREAD_ATTRIBUTE_NUM; -extern "C" { - pub fn GetStartupInfoA(lpStartupInfo: LPSTARTUPINFOA); -} -extern "C" { - pub fn GetFirmwareEnvironmentVariableA( - lpName: LPCSTR, - lpGuid: LPCSTR, - pBuffer: PVOID, - nSize: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetFirmwareEnvironmentVariableW( - lpName: LPCWSTR, - lpGuid: LPCWSTR, - pBuffer: PVOID, - nSize: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetFirmwareEnvironmentVariableExA( - lpName: LPCSTR, - lpGuid: LPCSTR, - pBuffer: PVOID, - nSize: DWORD, - pdwAttribubutes: PDWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetFirmwareEnvironmentVariableExW( - lpName: LPCWSTR, - lpGuid: LPCWSTR, - pBuffer: PVOID, - nSize: DWORD, - pdwAttribubutes: PDWORD, - ) -> DWORD; -} -extern "C" { - pub fn SetFirmwareEnvironmentVariableA( - lpName: LPCSTR, - lpGuid: LPCSTR, - pValue: PVOID, - nSize: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetFirmwareEnvironmentVariableW( - lpName: LPCWSTR, - lpGuid: LPCWSTR, - pValue: PVOID, - nSize: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetFirmwareEnvironmentVariableExA( - lpName: LPCSTR, - lpGuid: LPCSTR, - pValue: PVOID, - nSize: DWORD, - dwAttributes: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetFirmwareEnvironmentVariableExW( - lpName: LPCWSTR, - lpGuid: LPCWSTR, - pValue: PVOID, - nSize: DWORD, - dwAttributes: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetFirmwareType(FirmwareType: PFIRMWARE_TYPE) -> BOOL; -} -extern "C" { - pub fn IsNativeVhdBoot(NativeVhdBoot: PBOOL) -> BOOL; -} -extern "C" { - pub fn FindResourceA(hModule: HMODULE, lpName: LPCSTR, lpType: LPCSTR) -> HRSRC; -} -extern "C" { - pub fn FindResourceExA( - hModule: HMODULE, - lpType: LPCSTR, - lpName: LPCSTR, - wLanguage: WORD, - ) -> HRSRC; -} -extern "C" { - pub fn EnumResourceTypesA( - hModule: HMODULE, - lpEnumFunc: ENUMRESTYPEPROCA, - lParam: LONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn EnumResourceTypesW( - hModule: HMODULE, - lpEnumFunc: ENUMRESTYPEPROCW, - lParam: LONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn EnumResourceLanguagesA( - hModule: HMODULE, - lpType: LPCSTR, - lpName: LPCSTR, - lpEnumFunc: ENUMRESLANGPROCA, - lParam: LONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn EnumResourceLanguagesW( - hModule: HMODULE, - lpType: LPCWSTR, - lpName: LPCWSTR, - lpEnumFunc: ENUMRESLANGPROCW, - lParam: LONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn BeginUpdateResourceA(pFileName: LPCSTR, bDeleteExistingResources: BOOL) -> HANDLE; -} -extern "C" { - pub fn BeginUpdateResourceW(pFileName: LPCWSTR, bDeleteExistingResources: BOOL) -> HANDLE; -} -extern "C" { - pub fn UpdateResourceA( - hUpdate: HANDLE, - lpType: LPCSTR, - lpName: LPCSTR, - wLanguage: WORD, - lpData: LPVOID, - cb: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn UpdateResourceW( - hUpdate: HANDLE, - lpType: LPCWSTR, - lpName: LPCWSTR, - wLanguage: WORD, - lpData: LPVOID, - cb: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn EndUpdateResourceA(hUpdate: HANDLE, fDiscard: BOOL) -> BOOL; -} -extern "C" { - pub fn EndUpdateResourceW(hUpdate: HANDLE, fDiscard: BOOL) -> BOOL; -} -extern "C" { - pub fn GlobalAddAtomA(lpString: LPCSTR) -> ATOM; -} -extern "C" { - pub fn GlobalAddAtomW(lpString: LPCWSTR) -> ATOM; -} -extern "C" { - pub fn GlobalAddAtomExA(lpString: LPCSTR, Flags: DWORD) -> ATOM; -} -extern "C" { - pub fn GlobalAddAtomExW(lpString: LPCWSTR, Flags: DWORD) -> ATOM; -} -extern "C" { - pub fn GlobalFindAtomA(lpString: LPCSTR) -> ATOM; -} -extern "C" { - pub fn GlobalFindAtomW(lpString: LPCWSTR) -> ATOM; -} -extern "C" { - pub fn GlobalGetAtomNameA(nAtom: ATOM, lpBuffer: LPSTR, nSize: ::std::os::raw::c_int) -> UINT; -} -extern "C" { - pub fn GlobalGetAtomNameW(nAtom: ATOM, lpBuffer: LPWSTR, nSize: ::std::os::raw::c_int) -> UINT; -} -extern "C" { - pub fn AddAtomA(lpString: LPCSTR) -> ATOM; -} -extern "C" { - pub fn AddAtomW(lpString: LPCWSTR) -> ATOM; -} -extern "C" { - pub fn FindAtomA(lpString: LPCSTR) -> ATOM; -} -extern "C" { - pub fn FindAtomW(lpString: LPCWSTR) -> ATOM; -} -extern "C" { - pub fn GetAtomNameA(nAtom: ATOM, lpBuffer: LPSTR, nSize: ::std::os::raw::c_int) -> UINT; -} -extern "C" { - pub fn GetAtomNameW(nAtom: ATOM, lpBuffer: LPWSTR, nSize: ::std::os::raw::c_int) -> UINT; -} -extern "C" { - pub fn GetProfileIntA(lpAppName: LPCSTR, lpKeyName: LPCSTR, nDefault: INT) -> UINT; -} -extern "C" { - pub fn GetProfileIntW(lpAppName: LPCWSTR, lpKeyName: LPCWSTR, nDefault: INT) -> UINT; -} -extern "C" { - pub fn GetProfileStringA( - lpAppName: LPCSTR, - lpKeyName: LPCSTR, - lpDefault: LPCSTR, - lpReturnedString: LPSTR, - nSize: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetProfileStringW( - lpAppName: LPCWSTR, - lpKeyName: LPCWSTR, - lpDefault: LPCWSTR, - lpReturnedString: LPWSTR, - nSize: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn WriteProfileStringA(lpAppName: LPCSTR, lpKeyName: LPCSTR, lpString: LPCSTR) -> BOOL; -} -extern "C" { - pub fn WriteProfileStringW(lpAppName: LPCWSTR, lpKeyName: LPCWSTR, lpString: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn GetProfileSectionA(lpAppName: LPCSTR, lpReturnedString: LPSTR, nSize: DWORD) -> DWORD; -} -extern "C" { - pub fn GetProfileSectionW(lpAppName: LPCWSTR, lpReturnedString: LPWSTR, nSize: DWORD) -> DWORD; -} -extern "C" { - pub fn WriteProfileSectionA(lpAppName: LPCSTR, lpString: LPCSTR) -> BOOL; -} -extern "C" { - pub fn WriteProfileSectionW(lpAppName: LPCWSTR, lpString: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn GetPrivateProfileIntA( - lpAppName: LPCSTR, - lpKeyName: LPCSTR, - nDefault: INT, - lpFileName: LPCSTR, - ) -> UINT; -} -extern "C" { - pub fn GetPrivateProfileIntW( - lpAppName: LPCWSTR, - lpKeyName: LPCWSTR, - nDefault: INT, - lpFileName: LPCWSTR, - ) -> UINT; -} -extern "C" { - pub fn GetPrivateProfileStringA( - lpAppName: LPCSTR, - lpKeyName: LPCSTR, - lpDefault: LPCSTR, - lpReturnedString: LPSTR, - nSize: DWORD, - lpFileName: LPCSTR, - ) -> DWORD; -} -extern "C" { - pub fn GetPrivateProfileStringW( - lpAppName: LPCWSTR, - lpKeyName: LPCWSTR, - lpDefault: LPCWSTR, - lpReturnedString: LPWSTR, - nSize: DWORD, - lpFileName: LPCWSTR, - ) -> DWORD; -} -extern "C" { - pub fn WritePrivateProfileStringA( - lpAppName: LPCSTR, - lpKeyName: LPCSTR, - lpString: LPCSTR, - lpFileName: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn WritePrivateProfileStringW( - lpAppName: LPCWSTR, - lpKeyName: LPCWSTR, - lpString: LPCWSTR, - lpFileName: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn GetPrivateProfileSectionA( - lpAppName: LPCSTR, - lpReturnedString: LPSTR, - nSize: DWORD, - lpFileName: LPCSTR, - ) -> DWORD; -} -extern "C" { - pub fn GetPrivateProfileSectionW( - lpAppName: LPCWSTR, - lpReturnedString: LPWSTR, - nSize: DWORD, - lpFileName: LPCWSTR, - ) -> DWORD; -} -extern "C" { - pub fn WritePrivateProfileSectionA( - lpAppName: LPCSTR, - lpString: LPCSTR, - lpFileName: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn WritePrivateProfileSectionW( - lpAppName: LPCWSTR, - lpString: LPCWSTR, - lpFileName: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn GetPrivateProfileSectionNamesA( - lpszReturnBuffer: LPSTR, - nSize: DWORD, - lpFileName: LPCSTR, - ) -> DWORD; -} -extern "C" { - pub fn GetPrivateProfileSectionNamesW( - lpszReturnBuffer: LPWSTR, - nSize: DWORD, - lpFileName: LPCWSTR, - ) -> DWORD; -} -extern "C" { - pub fn GetPrivateProfileStructA( - lpszSection: LPCSTR, - lpszKey: LPCSTR, - lpStruct: LPVOID, - uSizeStruct: UINT, - szFile: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn GetPrivateProfileStructW( - lpszSection: LPCWSTR, - lpszKey: LPCWSTR, - lpStruct: LPVOID, - uSizeStruct: UINT, - szFile: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn WritePrivateProfileStructA( - lpszSection: LPCSTR, - lpszKey: LPCSTR, - lpStruct: LPVOID, - uSizeStruct: UINT, - szFile: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn WritePrivateProfileStructW( - lpszSection: LPCWSTR, - lpszKey: LPCWSTR, - lpStruct: LPVOID, - uSizeStruct: UINT, - szFile: LPCWSTR, - ) -> BOOL; -} -pub type PGET_SYSTEM_WOW64_DIRECTORY_A = - ::std::option::Option UINT>; -pub type PGET_SYSTEM_WOW64_DIRECTORY_W = - ::std::option::Option UINT>; -extern "C" { - pub fn SetDllDirectoryA(lpPathName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn SetDllDirectoryW(lpPathName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn GetDllDirectoryA(nBufferLength: DWORD, lpBuffer: LPSTR) -> DWORD; -} -extern "C" { - pub fn GetDllDirectoryW(nBufferLength: DWORD, lpBuffer: LPWSTR) -> DWORD; -} -extern "C" { - pub fn SetSearchPathMode(Flags: DWORD) -> BOOL; -} -extern "C" { - pub fn CreateDirectoryExA( - lpTemplateDirectory: LPCSTR, - lpNewDirectory: LPCSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - ) -> BOOL; -} -extern "C" { - pub fn CreateDirectoryExW( - lpTemplateDirectory: LPCWSTR, - lpNewDirectory: LPCWSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - ) -> BOOL; -} -extern "C" { - pub fn CreateDirectoryTransactedA( - lpTemplateDirectory: LPCSTR, - lpNewDirectory: LPCSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - hTransaction: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn CreateDirectoryTransactedW( - lpTemplateDirectory: LPCWSTR, - lpNewDirectory: LPCWSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - hTransaction: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn RemoveDirectoryTransactedA(lpPathName: LPCSTR, hTransaction: HANDLE) -> BOOL; -} -extern "C" { - pub fn RemoveDirectoryTransactedW(lpPathName: LPCWSTR, hTransaction: HANDLE) -> BOOL; -} -extern "C" { - pub fn GetFullPathNameTransactedA( - lpFileName: LPCSTR, - nBufferLength: DWORD, - lpBuffer: LPSTR, - lpFilePart: *mut LPSTR, - hTransaction: HANDLE, - ) -> DWORD; -} -extern "C" { - pub fn GetFullPathNameTransactedW( - lpFileName: LPCWSTR, - nBufferLength: DWORD, - lpBuffer: LPWSTR, - lpFilePart: *mut LPWSTR, - hTransaction: HANDLE, - ) -> DWORD; -} -extern "C" { - pub fn DefineDosDeviceA(dwFlags: DWORD, lpDeviceName: LPCSTR, lpTargetPath: LPCSTR) -> BOOL; -} -extern "C" { - pub fn QueryDosDeviceA(lpDeviceName: LPCSTR, lpTargetPath: LPSTR, ucchMax: DWORD) -> DWORD; -} -extern "C" { - pub fn CreateFileTransactedA( - lpFileName: LPCSTR, - dwDesiredAccess: DWORD, - dwShareMode: DWORD, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - dwCreationDisposition: DWORD, - dwFlagsAndAttributes: DWORD, - hTemplateFile: HANDLE, - hTransaction: HANDLE, - pusMiniVersion: PUSHORT, - lpExtendedParameter: PVOID, - ) -> HANDLE; -} -extern "C" { - pub fn CreateFileTransactedW( - lpFileName: LPCWSTR, - dwDesiredAccess: DWORD, - dwShareMode: DWORD, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - dwCreationDisposition: DWORD, - dwFlagsAndAttributes: DWORD, - hTemplateFile: HANDLE, - hTransaction: HANDLE, - pusMiniVersion: PUSHORT, - lpExtendedParameter: PVOID, - ) -> HANDLE; -} -extern "C" { - pub fn ReOpenFile( - hOriginalFile: HANDLE, - dwDesiredAccess: DWORD, - dwShareMode: DWORD, - dwFlagsAndAttributes: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn SetFileAttributesTransactedA( - lpFileName: LPCSTR, - dwFileAttributes: DWORD, - hTransaction: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn SetFileAttributesTransactedW( - lpFileName: LPCWSTR, - dwFileAttributes: DWORD, - hTransaction: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn GetFileAttributesTransactedA( - lpFileName: LPCSTR, - fInfoLevelId: GET_FILEEX_INFO_LEVELS, - lpFileInformation: LPVOID, - hTransaction: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn GetFileAttributesTransactedW( - lpFileName: LPCWSTR, - fInfoLevelId: GET_FILEEX_INFO_LEVELS, - lpFileInformation: LPVOID, - hTransaction: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn GetCompressedFileSizeTransactedA( - lpFileName: LPCSTR, - lpFileSizeHigh: LPDWORD, - hTransaction: HANDLE, - ) -> DWORD; -} -extern "C" { - pub fn GetCompressedFileSizeTransactedW( - lpFileName: LPCWSTR, - lpFileSizeHigh: LPDWORD, - hTransaction: HANDLE, - ) -> DWORD; -} -extern "C" { - pub fn DeleteFileTransactedA(lpFileName: LPCSTR, hTransaction: HANDLE) -> BOOL; -} -extern "C" { - pub fn DeleteFileTransactedW(lpFileName: LPCWSTR, hTransaction: HANDLE) -> BOOL; -} -extern "C" { - pub fn CheckNameLegalDOS8Dot3A( - lpName: LPCSTR, - lpOemName: LPSTR, - OemNameSize: DWORD, - pbNameContainsSpaces: PBOOL, - pbNameLegal: PBOOL, - ) -> BOOL; -} -extern "C" { - pub fn CheckNameLegalDOS8Dot3W( - lpName: LPCWSTR, - lpOemName: LPSTR, - OemNameSize: DWORD, - pbNameContainsSpaces: PBOOL, - pbNameLegal: PBOOL, - ) -> BOOL; -} -extern "C" { - pub fn FindFirstFileTransactedA( - lpFileName: LPCSTR, - fInfoLevelId: FINDEX_INFO_LEVELS, - lpFindFileData: LPVOID, - fSearchOp: FINDEX_SEARCH_OPS, - lpSearchFilter: LPVOID, - dwAdditionalFlags: DWORD, - hTransaction: HANDLE, - ) -> HANDLE; -} -extern "C" { - pub fn FindFirstFileTransactedW( - lpFileName: LPCWSTR, - fInfoLevelId: FINDEX_INFO_LEVELS, - lpFindFileData: LPVOID, - fSearchOp: FINDEX_SEARCH_OPS, - lpSearchFilter: LPVOID, - dwAdditionalFlags: DWORD, - hTransaction: HANDLE, - ) -> HANDLE; -} -extern "C" { - pub fn CopyFileA( - lpExistingFileName: LPCSTR, - lpNewFileName: LPCSTR, - bFailIfExists: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn CopyFileW( - lpExistingFileName: LPCWSTR, - lpNewFileName: LPCWSTR, - bFailIfExists: BOOL, - ) -> BOOL; -} -pub type LPPROGRESS_ROUTINE = ::std::option::Option< - unsafe extern "C" fn( - TotalFileSize: LARGE_INTEGER, - TotalBytesTransferred: LARGE_INTEGER, - StreamSize: LARGE_INTEGER, - StreamBytesTransferred: LARGE_INTEGER, - dwStreamNumber: DWORD, - dwCallbackReason: DWORD, - hSourceFile: HANDLE, - hDestinationFile: HANDLE, - lpData: LPVOID, - ) -> DWORD, ->; -extern "C" { - pub fn CopyFileExA( - lpExistingFileName: LPCSTR, - lpNewFileName: LPCSTR, - lpProgressRoutine: LPPROGRESS_ROUTINE, - lpData: LPVOID, - pbCancel: LPBOOL, - dwCopyFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CopyFileExW( - lpExistingFileName: LPCWSTR, - lpNewFileName: LPCWSTR, - lpProgressRoutine: LPPROGRESS_ROUTINE, - lpData: LPVOID, - pbCancel: LPBOOL, - dwCopyFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CopyFileTransactedA( - lpExistingFileName: LPCSTR, - lpNewFileName: LPCSTR, - lpProgressRoutine: LPPROGRESS_ROUTINE, - lpData: LPVOID, - pbCancel: LPBOOL, - dwCopyFlags: DWORD, - hTransaction: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn CopyFileTransactedW( - lpExistingFileName: LPCWSTR, - lpNewFileName: LPCWSTR, - lpProgressRoutine: LPPROGRESS_ROUTINE, - lpData: LPVOID, - pbCancel: LPBOOL, - dwCopyFlags: DWORD, - hTransaction: HANDLE, - ) -> BOOL; -} -pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_NONE: _COPYFILE2_MESSAGE_TYPE = 0; -pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_CHUNK_STARTED: _COPYFILE2_MESSAGE_TYPE = 1; -pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_CHUNK_FINISHED: _COPYFILE2_MESSAGE_TYPE = 2; -pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_STREAM_STARTED: _COPYFILE2_MESSAGE_TYPE = 3; -pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_STREAM_FINISHED: _COPYFILE2_MESSAGE_TYPE = 4; -pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_POLL_CONTINUE: _COPYFILE2_MESSAGE_TYPE = 5; -pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_ERROR: _COPYFILE2_MESSAGE_TYPE = 6; -pub const _COPYFILE2_MESSAGE_TYPE_COPYFILE2_CALLBACK_MAX: _COPYFILE2_MESSAGE_TYPE = 7; -pub type _COPYFILE2_MESSAGE_TYPE = ::std::os::raw::c_int; -pub use self::_COPYFILE2_MESSAGE_TYPE as COPYFILE2_MESSAGE_TYPE; -pub const _COPYFILE2_MESSAGE_ACTION_COPYFILE2_PROGRESS_CONTINUE: _COPYFILE2_MESSAGE_ACTION = 0; -pub const _COPYFILE2_MESSAGE_ACTION_COPYFILE2_PROGRESS_CANCEL: _COPYFILE2_MESSAGE_ACTION = 1; -pub const _COPYFILE2_MESSAGE_ACTION_COPYFILE2_PROGRESS_STOP: _COPYFILE2_MESSAGE_ACTION = 2; -pub const _COPYFILE2_MESSAGE_ACTION_COPYFILE2_PROGRESS_QUIET: _COPYFILE2_MESSAGE_ACTION = 3; -pub const _COPYFILE2_MESSAGE_ACTION_COPYFILE2_PROGRESS_PAUSE: _COPYFILE2_MESSAGE_ACTION = 4; -pub type _COPYFILE2_MESSAGE_ACTION = ::std::os::raw::c_int; -pub use self::_COPYFILE2_MESSAGE_ACTION as COPYFILE2_MESSAGE_ACTION; -pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_NONE: _COPYFILE2_COPY_PHASE = 0; -pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_PREPARE_SOURCE: _COPYFILE2_COPY_PHASE = 1; -pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_PREPARE_DEST: _COPYFILE2_COPY_PHASE = 2; -pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_READ_SOURCE: _COPYFILE2_COPY_PHASE = 3; -pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_WRITE_DESTINATION: _COPYFILE2_COPY_PHASE = 4; -pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_SERVER_COPY: _COPYFILE2_COPY_PHASE = 5; -pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_NAMEGRAFT_COPY: _COPYFILE2_COPY_PHASE = 6; -pub const _COPYFILE2_COPY_PHASE_COPYFILE2_PHASE_MAX: _COPYFILE2_COPY_PHASE = 7; -pub type _COPYFILE2_COPY_PHASE = ::std::os::raw::c_int; -pub use self::_COPYFILE2_COPY_PHASE as COPYFILE2_COPY_PHASE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct COPYFILE2_MESSAGE { - pub Type: COPYFILE2_MESSAGE_TYPE, - pub dwPadding: DWORD, - pub Info: COPYFILE2_MESSAGE__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union COPYFILE2_MESSAGE__bindgen_ty_1 { - pub ChunkStarted: COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_1, - pub ChunkFinished: COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_2, - pub StreamStarted: COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_3, - pub StreamFinished: COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_4, - pub PollContinue: COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_5, - pub Error: COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_6, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_1 { - pub dwStreamNumber: DWORD, - pub dwReserved: DWORD, - pub hSourceFile: HANDLE, - pub hDestinationFile: HANDLE, - pub uliChunkNumber: ULARGE_INTEGER, - pub uliChunkSize: ULARGE_INTEGER, - pub uliStreamSize: ULARGE_INTEGER, - pub uliTotalFileSize: ULARGE_INTEGER, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_2 { - pub dwStreamNumber: DWORD, - pub dwFlags: DWORD, - pub hSourceFile: HANDLE, - pub hDestinationFile: HANDLE, - pub uliChunkNumber: ULARGE_INTEGER, - pub uliChunkSize: ULARGE_INTEGER, - pub uliStreamSize: ULARGE_INTEGER, - pub uliStreamBytesTransferred: ULARGE_INTEGER, - pub uliTotalFileSize: ULARGE_INTEGER, - pub uliTotalBytesTransferred: ULARGE_INTEGER, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_3 { - pub dwStreamNumber: DWORD, - pub dwReserved: DWORD, - pub hSourceFile: HANDLE, - pub hDestinationFile: HANDLE, - pub uliStreamSize: ULARGE_INTEGER, - pub uliTotalFileSize: ULARGE_INTEGER, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_4 { - pub dwStreamNumber: DWORD, - pub dwReserved: DWORD, - pub hSourceFile: HANDLE, - pub hDestinationFile: HANDLE, - pub uliStreamSize: ULARGE_INTEGER, - pub uliStreamBytesTransferred: ULARGE_INTEGER, - pub uliTotalFileSize: ULARGE_INTEGER, - pub uliTotalBytesTransferred: ULARGE_INTEGER, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_5 { - pub dwReserved: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct COPYFILE2_MESSAGE__bindgen_ty_1__bindgen_ty_6 { - pub CopyPhase: COPYFILE2_COPY_PHASE, - pub dwStreamNumber: DWORD, - pub hrFailure: HRESULT, - pub dwReserved: DWORD, - pub uliChunkNumber: ULARGE_INTEGER, - pub uliStreamSize: ULARGE_INTEGER, - pub uliStreamBytesTransferred: ULARGE_INTEGER, - pub uliTotalFileSize: ULARGE_INTEGER, - pub uliTotalBytesTransferred: ULARGE_INTEGER, -} -pub type PCOPYFILE2_PROGRESS_ROUTINE = ::std::option::Option< - unsafe extern "C" fn( - pMessage: *const COPYFILE2_MESSAGE, - pvCallbackContext: PVOID, - ) -> COPYFILE2_MESSAGE_ACTION, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct COPYFILE2_EXTENDED_PARAMETERS { - pub dwSize: DWORD, - pub dwCopyFlags: DWORD, - pub pfCancel: *mut BOOL, - pub pProgressRoutine: PCOPYFILE2_PROGRESS_ROUTINE, - pub pvCallbackContext: PVOID, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct COPYFILE2_EXTENDED_PARAMETERS_V2 { - pub dwSize: DWORD, - pub dwCopyFlags: DWORD, - pub pfCancel: *mut BOOL, - pub pProgressRoutine: PCOPYFILE2_PROGRESS_ROUTINE, - pub pvCallbackContext: PVOID, - pub dwCopyFlagsV2: DWORD, - pub ioDesiredSize: ULONG, - pub ioDesiredRate: ULONG, - pub reserved: [PVOID; 8usize], -} -extern "C" { - pub fn CopyFile2( - pwszExistingFileName: PCWSTR, - pwszNewFileName: PCWSTR, - pExtendedParameters: *mut COPYFILE2_EXTENDED_PARAMETERS, - ) -> HRESULT; -} -extern "C" { - pub fn MoveFileA(lpExistingFileName: LPCSTR, lpNewFileName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn MoveFileW(lpExistingFileName: LPCWSTR, lpNewFileName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn MoveFileExA(lpExistingFileName: LPCSTR, lpNewFileName: LPCSTR, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn MoveFileExW(lpExistingFileName: LPCWSTR, lpNewFileName: LPCWSTR, dwFlags: DWORD) - -> BOOL; -} -extern "C" { - pub fn MoveFileWithProgressA( - lpExistingFileName: LPCSTR, - lpNewFileName: LPCSTR, - lpProgressRoutine: LPPROGRESS_ROUTINE, - lpData: LPVOID, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn MoveFileWithProgressW( - lpExistingFileName: LPCWSTR, - lpNewFileName: LPCWSTR, - lpProgressRoutine: LPPROGRESS_ROUTINE, - lpData: LPVOID, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn MoveFileTransactedA( - lpExistingFileName: LPCSTR, - lpNewFileName: LPCSTR, - lpProgressRoutine: LPPROGRESS_ROUTINE, - lpData: LPVOID, - dwFlags: DWORD, - hTransaction: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn MoveFileTransactedW( - lpExistingFileName: LPCWSTR, - lpNewFileName: LPCWSTR, - lpProgressRoutine: LPPROGRESS_ROUTINE, - lpData: LPVOID, - dwFlags: DWORD, - hTransaction: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn ReplaceFileA( - lpReplacedFileName: LPCSTR, - lpReplacementFileName: LPCSTR, - lpBackupFileName: LPCSTR, - dwReplaceFlags: DWORD, - lpExclude: LPVOID, - lpReserved: LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn ReplaceFileW( - lpReplacedFileName: LPCWSTR, - lpReplacementFileName: LPCWSTR, - lpBackupFileName: LPCWSTR, - dwReplaceFlags: DWORD, - lpExclude: LPVOID, - lpReserved: LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn CreateHardLinkA( - lpFileName: LPCSTR, - lpExistingFileName: LPCSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - ) -> BOOL; -} -extern "C" { - pub fn CreateHardLinkW( - lpFileName: LPCWSTR, - lpExistingFileName: LPCWSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - ) -> BOOL; -} -extern "C" { - pub fn CreateHardLinkTransactedA( - lpFileName: LPCSTR, - lpExistingFileName: LPCSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - hTransaction: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn CreateHardLinkTransactedW( - lpFileName: LPCWSTR, - lpExistingFileName: LPCWSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - hTransaction: HANDLE, - ) -> BOOL; -} -extern "C" { - pub fn FindFirstStreamTransactedW( - lpFileName: LPCWSTR, - InfoLevel: STREAM_INFO_LEVELS, - lpFindStreamData: LPVOID, - dwFlags: DWORD, - hTransaction: HANDLE, - ) -> HANDLE; -} -extern "C" { - pub fn FindFirstFileNameTransactedW( - lpFileName: LPCWSTR, - dwFlags: DWORD, - StringLength: LPDWORD, - LinkName: PWSTR, - hTransaction: HANDLE, - ) -> HANDLE; -} -extern "C" { - pub fn CreateNamedPipeA( - lpName: LPCSTR, - dwOpenMode: DWORD, - dwPipeMode: DWORD, - nMaxInstances: DWORD, - nOutBufferSize: DWORD, - nInBufferSize: DWORD, - nDefaultTimeOut: DWORD, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - ) -> HANDLE; -} -extern "C" { - pub fn GetNamedPipeHandleStateA( - hNamedPipe: HANDLE, - lpState: LPDWORD, - lpCurInstances: LPDWORD, - lpMaxCollectionCount: LPDWORD, - lpCollectDataTimeout: LPDWORD, - lpUserName: LPSTR, - nMaxUserNameSize: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CallNamedPipeA( - lpNamedPipeName: LPCSTR, - lpInBuffer: LPVOID, - nInBufferSize: DWORD, - lpOutBuffer: LPVOID, - nOutBufferSize: DWORD, - lpBytesRead: LPDWORD, - nTimeOut: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn WaitNamedPipeA(lpNamedPipeName: LPCSTR, nTimeOut: DWORD) -> BOOL; -} -extern "C" { - pub fn GetNamedPipeClientComputerNameA( - Pipe: HANDLE, - ClientComputerName: LPSTR, - ClientComputerNameLength: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn GetNamedPipeClientProcessId(Pipe: HANDLE, ClientProcessId: PULONG) -> BOOL; -} -extern "C" { - pub fn GetNamedPipeClientSessionId(Pipe: HANDLE, ClientSessionId: PULONG) -> BOOL; -} -extern "C" { - pub fn GetNamedPipeServerProcessId(Pipe: HANDLE, ServerProcessId: PULONG) -> BOOL; -} -extern "C" { - pub fn GetNamedPipeServerSessionId(Pipe: HANDLE, ServerSessionId: PULONG) -> BOOL; -} -extern "C" { - pub fn SetVolumeLabelA(lpRootPathName: LPCSTR, lpVolumeName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn SetVolumeLabelW(lpRootPathName: LPCWSTR, lpVolumeName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn SetFileBandwidthReservation( - hFile: HANDLE, - nPeriodMilliseconds: DWORD, - nBytesPerPeriod: DWORD, - bDiscardable: BOOL, - lpTransferSize: LPDWORD, - lpNumOutstandingRequests: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetFileBandwidthReservation( - hFile: HANDLE, - lpPeriodMilliseconds: LPDWORD, - lpBytesPerPeriod: LPDWORD, - pDiscardable: LPBOOL, - lpTransferSize: LPDWORD, - lpNumOutstandingRequests: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn ClearEventLogA(hEventLog: HANDLE, lpBackupFileName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn ClearEventLogW(hEventLog: HANDLE, lpBackupFileName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn BackupEventLogA(hEventLog: HANDLE, lpBackupFileName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn BackupEventLogW(hEventLog: HANDLE, lpBackupFileName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn CloseEventLog(hEventLog: HANDLE) -> BOOL; -} -extern "C" { - pub fn DeregisterEventSource(hEventLog: HANDLE) -> BOOL; -} -extern "C" { - pub fn NotifyChangeEventLog(hEventLog: HANDLE, hEvent: HANDLE) -> BOOL; -} -extern "C" { - pub fn GetNumberOfEventLogRecords(hEventLog: HANDLE, NumberOfRecords: PDWORD) -> BOOL; -} -extern "C" { - pub fn GetOldestEventLogRecord(hEventLog: HANDLE, OldestRecord: PDWORD) -> BOOL; -} -extern "C" { - pub fn OpenEventLogA(lpUNCServerName: LPCSTR, lpSourceName: LPCSTR) -> HANDLE; -} -extern "C" { - pub fn OpenEventLogW(lpUNCServerName: LPCWSTR, lpSourceName: LPCWSTR) -> HANDLE; -} -extern "C" { - pub fn RegisterEventSourceA(lpUNCServerName: LPCSTR, lpSourceName: LPCSTR) -> HANDLE; -} -extern "C" { - pub fn RegisterEventSourceW(lpUNCServerName: LPCWSTR, lpSourceName: LPCWSTR) -> HANDLE; -} -extern "C" { - pub fn OpenBackupEventLogA(lpUNCServerName: LPCSTR, lpFileName: LPCSTR) -> HANDLE; -} -extern "C" { - pub fn OpenBackupEventLogW(lpUNCServerName: LPCWSTR, lpFileName: LPCWSTR) -> HANDLE; -} -extern "C" { - pub fn ReadEventLogA( - hEventLog: HANDLE, - dwReadFlags: DWORD, - dwRecordOffset: DWORD, - lpBuffer: LPVOID, - nNumberOfBytesToRead: DWORD, - pnBytesRead: *mut DWORD, - pnMinNumberOfBytesNeeded: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn ReadEventLogW( - hEventLog: HANDLE, - dwReadFlags: DWORD, - dwRecordOffset: DWORD, - lpBuffer: LPVOID, - nNumberOfBytesToRead: DWORD, - pnBytesRead: *mut DWORD, - pnMinNumberOfBytesNeeded: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn ReportEventA( - hEventLog: HANDLE, - wType: WORD, - wCategory: WORD, - dwEventID: DWORD, - lpUserSid: PSID, - wNumStrings: WORD, - dwDataSize: DWORD, - lpStrings: *mut LPCSTR, - lpRawData: LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn ReportEventW( - hEventLog: HANDLE, - wType: WORD, - wCategory: WORD, - dwEventID: DWORD, - lpUserSid: PSID, - wNumStrings: WORD, - dwDataSize: DWORD, - lpStrings: *mut LPCWSTR, - lpRawData: LPVOID, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EVENTLOG_FULL_INFORMATION { - pub dwFull: DWORD, -} -pub type EVENTLOG_FULL_INFORMATION = _EVENTLOG_FULL_INFORMATION; -pub type LPEVENTLOG_FULL_INFORMATION = *mut _EVENTLOG_FULL_INFORMATION; -extern "C" { - pub fn GetEventLogInformation( - hEventLog: HANDLE, - dwInfoLevel: DWORD, - lpBuffer: LPVOID, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - ) -> BOOL; -} -pub type OPERATION_ID = ULONG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OPERATION_START_PARAMETERS { - pub Version: ULONG, - pub OperationId: OPERATION_ID, - pub Flags: ULONG, -} -pub type OPERATION_START_PARAMETERS = _OPERATION_START_PARAMETERS; -pub type POPERATION_START_PARAMETERS = *mut _OPERATION_START_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OPERATION_END_PARAMETERS { - pub Version: ULONG, - pub OperationId: OPERATION_ID, - pub Flags: ULONG, -} -pub type OPERATION_END_PARAMETERS = _OPERATION_END_PARAMETERS; -pub type POPERATION_END_PARAMETERS = *mut _OPERATION_END_PARAMETERS; -extern "C" { - pub fn OperationStart(OperationStartParams: *mut OPERATION_START_PARAMETERS) -> BOOL; -} -extern "C" { - pub fn OperationEnd(OperationEndParams: *mut OPERATION_END_PARAMETERS) -> BOOL; -} -extern "C" { - pub fn AccessCheckAndAuditAlarmA( - SubsystemName: LPCSTR, - HandleId: LPVOID, - ObjectTypeName: LPSTR, - ObjectName: LPSTR, - SecurityDescriptor: PSECURITY_DESCRIPTOR, - DesiredAccess: DWORD, - GenericMapping: PGENERIC_MAPPING, - ObjectCreation: BOOL, - GrantedAccess: LPDWORD, - AccessStatus: LPBOOL, - pfGenerateOnClose: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn AccessCheckByTypeAndAuditAlarmA( - SubsystemName: LPCSTR, - HandleId: LPVOID, - ObjectTypeName: LPCSTR, - ObjectName: LPCSTR, - SecurityDescriptor: PSECURITY_DESCRIPTOR, - PrincipalSelfSid: PSID, - DesiredAccess: DWORD, - AuditType: AUDIT_EVENT_TYPE, - Flags: DWORD, - ObjectTypeList: POBJECT_TYPE_LIST, - ObjectTypeListLength: DWORD, - GenericMapping: PGENERIC_MAPPING, - ObjectCreation: BOOL, - GrantedAccess: LPDWORD, - AccessStatus: LPBOOL, - pfGenerateOnClose: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn AccessCheckByTypeResultListAndAuditAlarmA( - SubsystemName: LPCSTR, - HandleId: LPVOID, - ObjectTypeName: LPCSTR, - ObjectName: LPCSTR, - SecurityDescriptor: PSECURITY_DESCRIPTOR, - PrincipalSelfSid: PSID, - DesiredAccess: DWORD, - AuditType: AUDIT_EVENT_TYPE, - Flags: DWORD, - ObjectTypeList: POBJECT_TYPE_LIST, - ObjectTypeListLength: DWORD, - GenericMapping: PGENERIC_MAPPING, - ObjectCreation: BOOL, - GrantedAccess: LPDWORD, - AccessStatusList: LPDWORD, - pfGenerateOnClose: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn AccessCheckByTypeResultListAndAuditAlarmByHandleA( - SubsystemName: LPCSTR, - HandleId: LPVOID, - ClientToken: HANDLE, - ObjectTypeName: LPCSTR, - ObjectName: LPCSTR, - SecurityDescriptor: PSECURITY_DESCRIPTOR, - PrincipalSelfSid: PSID, - DesiredAccess: DWORD, - AuditType: AUDIT_EVENT_TYPE, - Flags: DWORD, - ObjectTypeList: POBJECT_TYPE_LIST, - ObjectTypeListLength: DWORD, - GenericMapping: PGENERIC_MAPPING, - ObjectCreation: BOOL, - GrantedAccess: LPDWORD, - AccessStatusList: LPDWORD, - pfGenerateOnClose: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn ObjectOpenAuditAlarmA( - SubsystemName: LPCSTR, - HandleId: LPVOID, - ObjectTypeName: LPSTR, - ObjectName: LPSTR, - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - ClientToken: HANDLE, - DesiredAccess: DWORD, - GrantedAccess: DWORD, - Privileges: PPRIVILEGE_SET, - ObjectCreation: BOOL, - AccessGranted: BOOL, - GenerateOnClose: LPBOOL, - ) -> BOOL; -} -extern "C" { - pub fn ObjectPrivilegeAuditAlarmA( - SubsystemName: LPCSTR, - HandleId: LPVOID, - ClientToken: HANDLE, - DesiredAccess: DWORD, - Privileges: PPRIVILEGE_SET, - AccessGranted: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn ObjectCloseAuditAlarmA( - SubsystemName: LPCSTR, - HandleId: LPVOID, - GenerateOnClose: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn ObjectDeleteAuditAlarmA( - SubsystemName: LPCSTR, - HandleId: LPVOID, - GenerateOnClose: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn PrivilegedServiceAuditAlarmA( - SubsystemName: LPCSTR, - ServiceName: LPCSTR, - ClientToken: HANDLE, - Privileges: PPRIVILEGE_SET, - AccessGranted: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn AddConditionalAce( - pAcl: PACL, - dwAceRevision: DWORD, - AceFlags: DWORD, - AceType: UCHAR, - AccessMask: DWORD, - pSid: PSID, - ConditionStr: PWCHAR, - ReturnLength: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetFileSecurityA( - lpFileName: LPCSTR, - SecurityInformation: SECURITY_INFORMATION, - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - ) -> BOOL; -} -extern "C" { - pub fn GetFileSecurityA( - lpFileName: LPCSTR, - RequestedInformation: SECURITY_INFORMATION, - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - nLength: DWORD, - lpnLengthNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn ReadDirectoryChangesW( - hDirectory: HANDLE, - lpBuffer: LPVOID, - nBufferLength: DWORD, - bWatchSubtree: BOOL, - dwNotifyFilter: DWORD, - lpBytesReturned: LPDWORD, - lpOverlapped: LPOVERLAPPED, - lpCompletionRoutine: LPOVERLAPPED_COMPLETION_ROUTINE, - ) -> BOOL; -} -extern "C" { - pub fn ReadDirectoryChangesExW( - hDirectory: HANDLE, - lpBuffer: LPVOID, - nBufferLength: DWORD, - bWatchSubtree: BOOL, - dwNotifyFilter: DWORD, - lpBytesReturned: LPDWORD, - lpOverlapped: LPOVERLAPPED, - lpCompletionRoutine: LPOVERLAPPED_COMPLETION_ROUTINE, - ReadDirectoryNotifyInformationClass: READ_DIRECTORY_NOTIFY_INFORMATION_CLASS, - ) -> BOOL; -} -extern "C" { - pub fn MapViewOfFileExNuma( - hFileMappingObject: HANDLE, - dwDesiredAccess: DWORD, - dwFileOffsetHigh: DWORD, - dwFileOffsetLow: DWORD, - dwNumberOfBytesToMap: SIZE_T, - lpBaseAddress: LPVOID, - nndPreferred: DWORD, - ) -> LPVOID; -} -extern "C" { - pub fn IsBadReadPtr(lp: *const ::std::os::raw::c_void, ucb: UINT_PTR) -> BOOL; -} -extern "C" { - pub fn IsBadWritePtr(lp: LPVOID, ucb: UINT_PTR) -> BOOL; -} -extern "C" { - pub fn IsBadHugeReadPtr(lp: *const ::std::os::raw::c_void, ucb: UINT_PTR) -> BOOL; -} -extern "C" { - pub fn IsBadHugeWritePtr(lp: LPVOID, ucb: UINT_PTR) -> BOOL; -} -extern "C" { - pub fn IsBadCodePtr(lpfn: FARPROC) -> BOOL; -} -extern "C" { - pub fn IsBadStringPtrA(lpsz: LPCSTR, ucchMax: UINT_PTR) -> BOOL; -} -extern "C" { - pub fn IsBadStringPtrW(lpsz: LPCWSTR, ucchMax: UINT_PTR) -> BOOL; -} -extern "C" { - pub fn LookupAccountSidA( - lpSystemName: LPCSTR, - Sid: PSID, - Name: LPSTR, - cchName: LPDWORD, - ReferencedDomainName: LPSTR, - cchReferencedDomainName: LPDWORD, - peUse: PSID_NAME_USE, - ) -> BOOL; -} -extern "C" { - pub fn LookupAccountSidW( - lpSystemName: LPCWSTR, - Sid: PSID, - Name: LPWSTR, - cchName: LPDWORD, - ReferencedDomainName: LPWSTR, - cchReferencedDomainName: LPDWORD, - peUse: PSID_NAME_USE, - ) -> BOOL; -} -extern "C" { - pub fn LookupAccountNameA( - lpSystemName: LPCSTR, - lpAccountName: LPCSTR, - Sid: PSID, - cbSid: LPDWORD, - ReferencedDomainName: LPSTR, - cchReferencedDomainName: LPDWORD, - peUse: PSID_NAME_USE, - ) -> BOOL; -} -extern "C" { - pub fn LookupAccountNameW( - lpSystemName: LPCWSTR, - lpAccountName: LPCWSTR, - Sid: PSID, - cbSid: LPDWORD, - ReferencedDomainName: LPWSTR, - cchReferencedDomainName: LPDWORD, - peUse: PSID_NAME_USE, - ) -> BOOL; -} -extern "C" { - pub fn LookupAccountNameLocalA( - lpAccountName: LPCSTR, - Sid: PSID, - cbSid: LPDWORD, - ReferencedDomainName: LPSTR, - cchReferencedDomainName: LPDWORD, - peUse: PSID_NAME_USE, - ) -> BOOL; -} -extern "C" { - pub fn LookupAccountNameLocalW( - lpAccountName: LPCWSTR, - Sid: PSID, - cbSid: LPDWORD, - ReferencedDomainName: LPWSTR, - cchReferencedDomainName: LPDWORD, - peUse: PSID_NAME_USE, - ) -> BOOL; -} -extern "C" { - pub fn LookupAccountSidLocalA( - Sid: PSID, - Name: LPSTR, - cchName: LPDWORD, - ReferencedDomainName: LPSTR, - cchReferencedDomainName: LPDWORD, - peUse: PSID_NAME_USE, - ) -> BOOL; -} -extern "C" { - pub fn LookupAccountSidLocalW( - Sid: PSID, - Name: LPWSTR, - cchName: LPDWORD, - ReferencedDomainName: LPWSTR, - cchReferencedDomainName: LPDWORD, - peUse: PSID_NAME_USE, - ) -> BOOL; -} -extern "C" { - pub fn LookupPrivilegeValueA(lpSystemName: LPCSTR, lpName: LPCSTR, lpLuid: PLUID) -> BOOL; -} -extern "C" { - pub fn LookupPrivilegeValueW(lpSystemName: LPCWSTR, lpName: LPCWSTR, lpLuid: PLUID) -> BOOL; -} -extern "C" { - pub fn LookupPrivilegeNameA( - lpSystemName: LPCSTR, - lpLuid: PLUID, - lpName: LPSTR, - cchName: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn LookupPrivilegeNameW( - lpSystemName: LPCWSTR, - lpLuid: PLUID, - lpName: LPWSTR, - cchName: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn LookupPrivilegeDisplayNameA( - lpSystemName: LPCSTR, - lpName: LPCSTR, - lpDisplayName: LPSTR, - cchDisplayName: LPDWORD, - lpLanguageId: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn LookupPrivilegeDisplayNameW( - lpSystemName: LPCWSTR, - lpName: LPCWSTR, - lpDisplayName: LPWSTR, - cchDisplayName: LPDWORD, - lpLanguageId: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn BuildCommDCBA(lpDef: LPCSTR, lpDCB: LPDCB) -> BOOL; -} -extern "C" { - pub fn BuildCommDCBW(lpDef: LPCWSTR, lpDCB: LPDCB) -> BOOL; -} -extern "C" { - pub fn BuildCommDCBAndTimeoutsA( - lpDef: LPCSTR, - lpDCB: LPDCB, - lpCommTimeouts: LPCOMMTIMEOUTS, - ) -> BOOL; -} -extern "C" { - pub fn BuildCommDCBAndTimeoutsW( - lpDef: LPCWSTR, - lpDCB: LPDCB, - lpCommTimeouts: LPCOMMTIMEOUTS, - ) -> BOOL; -} -extern "C" { - pub fn CommConfigDialogA(lpszName: LPCSTR, hWnd: HWND, lpCC: LPCOMMCONFIG) -> BOOL; -} -extern "C" { - pub fn CommConfigDialogW(lpszName: LPCWSTR, hWnd: HWND, lpCC: LPCOMMCONFIG) -> BOOL; -} -extern "C" { - pub fn GetDefaultCommConfigA(lpszName: LPCSTR, lpCC: LPCOMMCONFIG, lpdwSize: LPDWORD) -> BOOL; -} -extern "C" { - pub fn GetDefaultCommConfigW(lpszName: LPCWSTR, lpCC: LPCOMMCONFIG, lpdwSize: LPDWORD) -> BOOL; -} -extern "C" { - pub fn SetDefaultCommConfigA(lpszName: LPCSTR, lpCC: LPCOMMCONFIG, dwSize: DWORD) -> BOOL; -} -extern "C" { - pub fn SetDefaultCommConfigW(lpszName: LPCWSTR, lpCC: LPCOMMCONFIG, dwSize: DWORD) -> BOOL; -} -extern "C" { - pub fn GetComputerNameA(lpBuffer: LPSTR, nSize: LPDWORD) -> BOOL; -} -extern "C" { - pub fn GetComputerNameW(lpBuffer: LPWSTR, nSize: LPDWORD) -> BOOL; -} -extern "C" { - pub fn DnsHostnameToComputerNameA( - Hostname: LPCSTR, - ComputerName: LPSTR, - nSize: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn DnsHostnameToComputerNameW( - Hostname: LPCWSTR, - ComputerName: LPWSTR, - nSize: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetUserNameA(lpBuffer: LPSTR, pcbBuffer: LPDWORD) -> BOOL; -} -extern "C" { - pub fn GetUserNameW(lpBuffer: LPWSTR, pcbBuffer: LPDWORD) -> BOOL; -} -extern "C" { - pub fn LogonUserA( - lpszUsername: LPCSTR, - lpszDomain: LPCSTR, - lpszPassword: LPCSTR, - dwLogonType: DWORD, - dwLogonProvider: DWORD, - phToken: PHANDLE, - ) -> BOOL; -} -extern "C" { - pub fn LogonUserW( - lpszUsername: LPCWSTR, - lpszDomain: LPCWSTR, - lpszPassword: LPCWSTR, - dwLogonType: DWORD, - dwLogonProvider: DWORD, - phToken: PHANDLE, - ) -> BOOL; -} -extern "C" { - pub fn LogonUserExA( - lpszUsername: LPCSTR, - lpszDomain: LPCSTR, - lpszPassword: LPCSTR, - dwLogonType: DWORD, - dwLogonProvider: DWORD, - phToken: PHANDLE, - ppLogonSid: *mut PSID, - ppProfileBuffer: *mut PVOID, - pdwProfileLength: LPDWORD, - pQuotaLimits: PQUOTA_LIMITS, - ) -> BOOL; -} -extern "C" { - pub fn LogonUserExW( - lpszUsername: LPCWSTR, - lpszDomain: LPCWSTR, - lpszPassword: LPCWSTR, - dwLogonType: DWORD, - dwLogonProvider: DWORD, - phToken: PHANDLE, - ppLogonSid: *mut PSID, - ppProfileBuffer: *mut PVOID, - pdwProfileLength: LPDWORD, - pQuotaLimits: PQUOTA_LIMITS, - ) -> BOOL; -} -extern "C" { - pub fn CreateProcessWithLogonW( - lpUsername: LPCWSTR, - lpDomain: LPCWSTR, - lpPassword: LPCWSTR, - dwLogonFlags: DWORD, - lpApplicationName: LPCWSTR, - lpCommandLine: LPWSTR, - dwCreationFlags: DWORD, - lpEnvironment: LPVOID, - lpCurrentDirectory: LPCWSTR, - lpStartupInfo: LPSTARTUPINFOW, - lpProcessInformation: LPPROCESS_INFORMATION, - ) -> BOOL; -} -extern "C" { - pub fn CreateProcessWithTokenW( - hToken: HANDLE, - dwLogonFlags: DWORD, - lpApplicationName: LPCWSTR, - lpCommandLine: LPWSTR, - dwCreationFlags: DWORD, - lpEnvironment: LPVOID, - lpCurrentDirectory: LPCWSTR, - lpStartupInfo: LPSTARTUPINFOW, - lpProcessInformation: LPPROCESS_INFORMATION, - ) -> BOOL; -} -extern "C" { - pub fn IsTokenUntrusted(TokenHandle: HANDLE) -> BOOL; -} -extern "C" { - pub fn RegisterWaitForSingleObject( - phNewWaitObject: PHANDLE, - hObject: HANDLE, - Callback: WAITORTIMERCALLBACK, - Context: PVOID, - dwMilliseconds: ULONG, - dwFlags: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn UnregisterWait(WaitHandle: HANDLE) -> BOOL; -} -extern "C" { - pub fn BindIoCompletionCallback( - FileHandle: HANDLE, - Function: LPOVERLAPPED_COMPLETION_ROUTINE, - Flags: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn SetTimerQueueTimer( - TimerQueue: HANDLE, - Callback: WAITORTIMERCALLBACK, - Parameter: PVOID, - DueTime: DWORD, - Period: DWORD, - PreferIo: BOOL, - ) -> HANDLE; -} -extern "C" { - pub fn CancelTimerQueueTimer(TimerQueue: HANDLE, Timer: HANDLE) -> BOOL; -} -extern "C" { - pub fn CreatePrivateNamespaceA( - lpPrivateNamespaceAttributes: LPSECURITY_ATTRIBUTES, - lpBoundaryDescriptor: LPVOID, - lpAliasPrefix: LPCSTR, - ) -> HANDLE; -} -extern "C" { - pub fn OpenPrivateNamespaceA(lpBoundaryDescriptor: LPVOID, lpAliasPrefix: LPCSTR) -> HANDLE; -} -extern "C" { - pub fn CreateBoundaryDescriptorA(Name: LPCSTR, Flags: ULONG) -> HANDLE; -} -extern "C" { - pub fn AddIntegrityLabelToBoundaryDescriptor( - BoundaryDescriptor: *mut HANDLE, - IntegrityLabel: PSID, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagHW_PROFILE_INFOA { - pub dwDockInfo: DWORD, - pub szHwProfileGuid: [CHAR; 39usize], - pub szHwProfileName: [CHAR; 80usize], -} -pub type HW_PROFILE_INFOA = tagHW_PROFILE_INFOA; -pub type LPHW_PROFILE_INFOA = *mut tagHW_PROFILE_INFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagHW_PROFILE_INFOW { - pub dwDockInfo: DWORD, - pub szHwProfileGuid: [WCHAR; 39usize], - pub szHwProfileName: [WCHAR; 80usize], -} -pub type HW_PROFILE_INFOW = tagHW_PROFILE_INFOW; -pub type LPHW_PROFILE_INFOW = *mut tagHW_PROFILE_INFOW; -pub type HW_PROFILE_INFO = HW_PROFILE_INFOA; -pub type LPHW_PROFILE_INFO = LPHW_PROFILE_INFOA; -extern "C" { - pub fn GetCurrentHwProfileA(lpHwProfileInfo: LPHW_PROFILE_INFOA) -> BOOL; -} -extern "C" { - pub fn GetCurrentHwProfileW(lpHwProfileInfo: LPHW_PROFILE_INFOW) -> BOOL; -} -extern "C" { - pub fn VerifyVersionInfoA( - lpVersionInformation: LPOSVERSIONINFOEXA, - dwTypeMask: DWORD, - dwlConditionMask: DWORDLONG, - ) -> BOOL; -} -extern "C" { - pub fn VerifyVersionInfoW( - lpVersionInformation: LPOSVERSIONINFOEXW, - dwTypeMask: DWORD, - dwlConditionMask: DWORDLONG, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TIME_ZONE_INFORMATION { - pub Bias: LONG, - pub StandardName: [WCHAR; 32usize], - pub StandardDate: SYSTEMTIME, - pub StandardBias: LONG, - pub DaylightName: [WCHAR; 32usize], - pub DaylightDate: SYSTEMTIME, - pub DaylightBias: LONG, -} -pub type TIME_ZONE_INFORMATION = _TIME_ZONE_INFORMATION; -pub type PTIME_ZONE_INFORMATION = *mut _TIME_ZONE_INFORMATION; -pub type LPTIME_ZONE_INFORMATION = *mut _TIME_ZONE_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TIME_DYNAMIC_ZONE_INFORMATION { - pub Bias: LONG, - pub StandardName: [WCHAR; 32usize], - pub StandardDate: SYSTEMTIME, - pub StandardBias: LONG, - pub DaylightName: [WCHAR; 32usize], - pub DaylightDate: SYSTEMTIME, - pub DaylightBias: LONG, - pub TimeZoneKeyName: [WCHAR; 128usize], - pub DynamicDaylightTimeDisabled: BOOLEAN, -} -pub type DYNAMIC_TIME_ZONE_INFORMATION = _TIME_DYNAMIC_ZONE_INFORMATION; -pub type PDYNAMIC_TIME_ZONE_INFORMATION = *mut _TIME_DYNAMIC_ZONE_INFORMATION; -extern "C" { - pub fn SystemTimeToTzSpecificLocalTime( - lpTimeZoneInformation: *const TIME_ZONE_INFORMATION, - lpUniversalTime: *const SYSTEMTIME, - lpLocalTime: LPSYSTEMTIME, - ) -> BOOL; -} -extern "C" { - pub fn TzSpecificLocalTimeToSystemTime( - lpTimeZoneInformation: *const TIME_ZONE_INFORMATION, - lpLocalTime: *const SYSTEMTIME, - lpUniversalTime: LPSYSTEMTIME, - ) -> BOOL; -} -extern "C" { - pub fn FileTimeToSystemTime(lpFileTime: *const FILETIME, lpSystemTime: LPSYSTEMTIME) -> BOOL; -} -extern "C" { - pub fn SystemTimeToFileTime(lpSystemTime: *const SYSTEMTIME, lpFileTime: LPFILETIME) -> BOOL; -} -extern "C" { - pub fn GetTimeZoneInformation(lpTimeZoneInformation: LPTIME_ZONE_INFORMATION) -> DWORD; -} -extern "C" { - pub fn SetTimeZoneInformation(lpTimeZoneInformation: *const TIME_ZONE_INFORMATION) -> BOOL; -} -extern "C" { - pub fn SetDynamicTimeZoneInformation( - lpTimeZoneInformation: *const DYNAMIC_TIME_ZONE_INFORMATION, - ) -> BOOL; -} -extern "C" { - pub fn GetDynamicTimeZoneInformation( - pTimeZoneInformation: PDYNAMIC_TIME_ZONE_INFORMATION, - ) -> DWORD; -} -extern "C" { - pub fn GetTimeZoneInformationForYear( - wYear: USHORT, - pdtzi: PDYNAMIC_TIME_ZONE_INFORMATION, - ptzi: LPTIME_ZONE_INFORMATION, - ) -> BOOL; -} -extern "C" { - pub fn EnumDynamicTimeZoneInformation( - dwIndex: DWORD, - lpTimeZoneInformation: PDYNAMIC_TIME_ZONE_INFORMATION, - ) -> DWORD; -} -extern "C" { - pub fn GetDynamicTimeZoneInformationEffectiveYears( - lpTimeZoneInformation: PDYNAMIC_TIME_ZONE_INFORMATION, - FirstYear: LPDWORD, - LastYear: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn SystemTimeToTzSpecificLocalTimeEx( - lpTimeZoneInformation: *const DYNAMIC_TIME_ZONE_INFORMATION, - lpUniversalTime: *const SYSTEMTIME, - lpLocalTime: LPSYSTEMTIME, - ) -> BOOL; -} -extern "C" { - pub fn TzSpecificLocalTimeToSystemTimeEx( - lpTimeZoneInformation: *const DYNAMIC_TIME_ZONE_INFORMATION, - lpLocalTime: *const SYSTEMTIME, - lpUniversalTime: LPSYSTEMTIME, - ) -> BOOL; -} -extern "C" { - pub fn LocalFileTimeToLocalSystemTime( - timeZoneInformation: *const TIME_ZONE_INFORMATION, - localFileTime: *const FILETIME, - localSystemTime: *mut SYSTEMTIME, - ) -> BOOL; -} -extern "C" { - pub fn LocalSystemTimeToLocalFileTime( - timeZoneInformation: *const TIME_ZONE_INFORMATION, - localSystemTime: *const SYSTEMTIME, - localFileTime: *mut FILETIME, - ) -> BOOL; -} -extern "C" { - pub fn SetSystemPowerState(fSuspend: BOOL, fForce: BOOL) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SYSTEM_POWER_STATUS { - pub ACLineStatus: BYTE, - pub BatteryFlag: BYTE, - pub BatteryLifePercent: BYTE, - pub SystemStatusFlag: BYTE, - pub BatteryLifeTime: DWORD, - pub BatteryFullLifeTime: DWORD, -} -pub type SYSTEM_POWER_STATUS = _SYSTEM_POWER_STATUS; -pub type LPSYSTEM_POWER_STATUS = *mut _SYSTEM_POWER_STATUS; -extern "C" { - pub fn GetSystemPowerStatus(lpSystemPowerStatus: LPSYSTEM_POWER_STATUS) -> BOOL; -} -extern "C" { - pub fn MapUserPhysicalPagesScatter( - VirtualAddresses: *mut PVOID, - NumberOfPages: ULONG_PTR, - PageArray: PULONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn CreateJobObjectA(lpJobAttributes: LPSECURITY_ATTRIBUTES, lpName: LPCSTR) -> HANDLE; -} -extern "C" { - pub fn OpenJobObjectA(dwDesiredAccess: DWORD, bInheritHandle: BOOL, lpName: LPCSTR) -> HANDLE; -} -extern "C" { - pub fn CreateJobSet(NumJob: ULONG, UserJobSet: PJOB_SET_ARRAY, Flags: ULONG) -> BOOL; -} -extern "C" { - pub fn FindFirstVolumeA(lpszVolumeName: LPSTR, cchBufferLength: DWORD) -> HANDLE; -} -extern "C" { - pub fn FindNextVolumeA( - hFindVolume: HANDLE, - lpszVolumeName: LPSTR, - cchBufferLength: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn FindFirstVolumeMountPointA( - lpszRootPathName: LPCSTR, - lpszVolumeMountPoint: LPSTR, - cchBufferLength: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn FindFirstVolumeMountPointW( - lpszRootPathName: LPCWSTR, - lpszVolumeMountPoint: LPWSTR, - cchBufferLength: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn FindNextVolumeMountPointA( - hFindVolumeMountPoint: HANDLE, - lpszVolumeMountPoint: LPSTR, - cchBufferLength: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn FindNextVolumeMountPointW( - hFindVolumeMountPoint: HANDLE, - lpszVolumeMountPoint: LPWSTR, - cchBufferLength: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn FindVolumeMountPointClose(hFindVolumeMountPoint: HANDLE) -> BOOL; -} -extern "C" { - pub fn SetVolumeMountPointA(lpszVolumeMountPoint: LPCSTR, lpszVolumeName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn SetVolumeMountPointW(lpszVolumeMountPoint: LPCWSTR, lpszVolumeName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn DeleteVolumeMountPointA(lpszVolumeMountPoint: LPCSTR) -> BOOL; -} -extern "C" { - pub fn GetVolumeNameForVolumeMountPointA( - lpszVolumeMountPoint: LPCSTR, - lpszVolumeName: LPSTR, - cchBufferLength: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetVolumePathNameA( - lpszFileName: LPCSTR, - lpszVolumePathName: LPSTR, - cchBufferLength: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetVolumePathNamesForVolumeNameA( - lpszVolumeName: LPCSTR, - lpszVolumePathNames: LPCH, - cchBufferLength: DWORD, - lpcchReturnLength: PDWORD, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagACTCTXA { - pub cbSize: ULONG, - pub dwFlags: DWORD, - pub lpSource: LPCSTR, - pub wProcessorArchitecture: USHORT, - pub wLangId: LANGID, - pub lpAssemblyDirectory: LPCSTR, - pub lpResourceName: LPCSTR, - pub lpApplicationName: LPCSTR, - pub hModule: HMODULE, -} -pub type ACTCTXA = tagACTCTXA; -pub type PACTCTXA = *mut tagACTCTXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagACTCTXW { - pub cbSize: ULONG, - pub dwFlags: DWORD, - pub lpSource: LPCWSTR, - pub wProcessorArchitecture: USHORT, - pub wLangId: LANGID, - pub lpAssemblyDirectory: LPCWSTR, - pub lpResourceName: LPCWSTR, - pub lpApplicationName: LPCWSTR, - pub hModule: HMODULE, -} -pub type ACTCTXW = tagACTCTXW; -pub type PACTCTXW = *mut tagACTCTXW; -pub type ACTCTX = ACTCTXA; -pub type PACTCTX = PACTCTXA; -pub type PCACTCTXA = *const ACTCTXA; -pub type PCACTCTXW = *const ACTCTXW; -pub type PCACTCTX = PCACTCTXA; -extern "C" { - pub fn CreateActCtxA(pActCtx: PCACTCTXA) -> HANDLE; -} -extern "C" { - pub fn CreateActCtxW(pActCtx: PCACTCTXW) -> HANDLE; -} -extern "C" { - pub fn AddRefActCtx(hActCtx: HANDLE); -} -extern "C" { - pub fn ReleaseActCtx(hActCtx: HANDLE); -} -extern "C" { - pub fn ZombifyActCtx(hActCtx: HANDLE) -> BOOL; -} -extern "C" { - pub fn ActivateActCtx(hActCtx: HANDLE, lpCookie: *mut ULONG_PTR) -> BOOL; -} -extern "C" { - pub fn DeactivateActCtx(dwFlags: DWORD, ulCookie: ULONG_PTR) -> BOOL; -} -extern "C" { - pub fn GetCurrentActCtx(lphActCtx: *mut HANDLE) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagACTCTX_SECTION_KEYED_DATA_2600 { - pub cbSize: ULONG, - pub ulDataFormatVersion: ULONG, - pub lpData: PVOID, - pub ulLength: ULONG, - pub lpSectionGlobalData: PVOID, - pub ulSectionGlobalDataLength: ULONG, - pub lpSectionBase: PVOID, - pub ulSectionTotalLength: ULONG, - pub hActCtx: HANDLE, - pub ulAssemblyRosterIndex: ULONG, -} -pub type ACTCTX_SECTION_KEYED_DATA_2600 = tagACTCTX_SECTION_KEYED_DATA_2600; -pub type PACTCTX_SECTION_KEYED_DATA_2600 = *mut tagACTCTX_SECTION_KEYED_DATA_2600; -pub type PCACTCTX_SECTION_KEYED_DATA_2600 = *const ACTCTX_SECTION_KEYED_DATA_2600; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA { - pub lpInformation: PVOID, - pub lpSectionBase: PVOID, - pub ulSectionLength: ULONG, - pub lpSectionGlobalDataBase: PVOID, - pub ulSectionGlobalDataLength: ULONG, -} -pub type ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA = - tagACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; -pub type PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA = - *mut tagACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; -pub type PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA = - *const ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagACTCTX_SECTION_KEYED_DATA { - pub cbSize: ULONG, - pub ulDataFormatVersion: ULONG, - pub lpData: PVOID, - pub ulLength: ULONG, - pub lpSectionGlobalData: PVOID, - pub ulSectionGlobalDataLength: ULONG, - pub lpSectionBase: PVOID, - pub ulSectionTotalLength: ULONG, - pub hActCtx: HANDLE, - pub ulAssemblyRosterIndex: ULONG, - pub ulFlags: ULONG, - pub AssemblyMetadata: ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, -} -pub type ACTCTX_SECTION_KEYED_DATA = tagACTCTX_SECTION_KEYED_DATA; -pub type PACTCTX_SECTION_KEYED_DATA = *mut tagACTCTX_SECTION_KEYED_DATA; -pub type PCACTCTX_SECTION_KEYED_DATA = *const ACTCTX_SECTION_KEYED_DATA; -extern "C" { - pub fn FindActCtxSectionStringA( - dwFlags: DWORD, - lpExtensionGuid: *const GUID, - ulSectionId: ULONG, - lpStringToFind: LPCSTR, - ReturnedData: PACTCTX_SECTION_KEYED_DATA, - ) -> BOOL; -} -extern "C" { - pub fn FindActCtxSectionStringW( - dwFlags: DWORD, - lpExtensionGuid: *const GUID, - ulSectionId: ULONG, - lpStringToFind: LPCWSTR, - ReturnedData: PACTCTX_SECTION_KEYED_DATA, - ) -> BOOL; -} -extern "C" { - pub fn FindActCtxSectionGuid( - dwFlags: DWORD, - lpExtensionGuid: *const GUID, - ulSectionId: ULONG, - lpGuidToFind: *const GUID, - ReturnedData: PACTCTX_SECTION_KEYED_DATA, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACTIVATION_CONTEXT_BASIC_INFORMATION { - pub hActCtx: HANDLE, - pub dwFlags: DWORD, -} -pub type ACTIVATION_CONTEXT_BASIC_INFORMATION = _ACTIVATION_CONTEXT_BASIC_INFORMATION; -pub type PACTIVATION_CONTEXT_BASIC_INFORMATION = *mut _ACTIVATION_CONTEXT_BASIC_INFORMATION; -pub type PCACTIVATION_CONTEXT_BASIC_INFORMATION = *const _ACTIVATION_CONTEXT_BASIC_INFORMATION; -extern "C" { - pub fn QueryActCtxW( - dwFlags: DWORD, - hActCtx: HANDLE, - pvSubInstance: PVOID, - ulInfoClass: ULONG, - pvBuffer: PVOID, - cbBuffer: SIZE_T, - pcbWrittenOrRequired: *mut SIZE_T, - ) -> BOOL; -} -pub type PQUERYACTCTXW_FUNC = ::std::option::Option< - unsafe extern "C" fn( - dwFlags: DWORD, - hActCtx: HANDLE, - pvSubInstance: PVOID, - ulInfoClass: ULONG, - pvBuffer: PVOID, - cbBuffer: SIZE_T, - pcbWrittenOrRequired: *mut SIZE_T, - ) -> BOOL, ->; -extern "C" { - pub fn WTSGetActiveConsoleSessionId() -> DWORD; -} -extern "C" { - pub fn WTSGetServiceSessionId() -> DWORD; -} -extern "C" { - pub fn WTSIsServerContainer() -> BOOLEAN; -} -extern "C" { - pub fn GetActiveProcessorGroupCount() -> WORD; -} -extern "C" { - pub fn GetMaximumProcessorGroupCount() -> WORD; -} -extern "C" { - pub fn GetActiveProcessorCount(GroupNumber: WORD) -> DWORD; -} -extern "C" { - pub fn GetMaximumProcessorCount(GroupNumber: WORD) -> DWORD; -} -extern "C" { - pub fn GetNumaProcessorNode(Processor: UCHAR, NodeNumber: PUCHAR) -> BOOL; -} -extern "C" { - pub fn GetNumaNodeNumberFromHandle(hFile: HANDLE, NodeNumber: PUSHORT) -> BOOL; -} -extern "C" { - pub fn GetNumaProcessorNodeEx(Processor: PPROCESSOR_NUMBER, NodeNumber: PUSHORT) -> BOOL; -} -extern "C" { - pub fn GetNumaNodeProcessorMask(Node: UCHAR, ProcessorMask: PULONGLONG) -> BOOL; -} -extern "C" { - pub fn GetNumaAvailableMemoryNode(Node: UCHAR, AvailableBytes: PULONGLONG) -> BOOL; -} -extern "C" { - pub fn GetNumaAvailableMemoryNodeEx(Node: USHORT, AvailableBytes: PULONGLONG) -> BOOL; -} -extern "C" { - pub fn GetNumaProximityNode(ProximityId: ULONG, NodeNumber: PUCHAR) -> BOOL; -} -pub type APPLICATION_RECOVERY_CALLBACK = - ::std::option::Option DWORD>; -extern "C" { - pub fn RegisterApplicationRecoveryCallback( - pRecoveyCallback: APPLICATION_RECOVERY_CALLBACK, - pvParameter: PVOID, - dwPingInterval: DWORD, - dwFlags: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn UnregisterApplicationRecoveryCallback() -> HRESULT; -} -extern "C" { - pub fn RegisterApplicationRestart(pwzCommandline: PCWSTR, dwFlags: DWORD) -> HRESULT; -} -extern "C" { - pub fn UnregisterApplicationRestart() -> HRESULT; -} -extern "C" { - pub fn GetApplicationRecoveryCallback( - hProcess: HANDLE, - pRecoveryCallback: *mut APPLICATION_RECOVERY_CALLBACK, - ppvParameter: *mut PVOID, - pdwPingInterval: PDWORD, - pdwFlags: PDWORD, - ) -> HRESULT; -} -extern "C" { - pub fn GetApplicationRestartSettings( - hProcess: HANDLE, - pwzCommandline: PWSTR, - pcchSize: PDWORD, - pdwFlags: PDWORD, - ) -> HRESULT; -} -extern "C" { - pub fn ApplicationRecoveryInProgress(pbCancelled: PBOOL) -> HRESULT; -} -extern "C" { - pub fn ApplicationRecoveryFinished(bSuccess: BOOL); -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_BASIC_INFO { - pub CreationTime: LARGE_INTEGER, - pub LastAccessTime: LARGE_INTEGER, - pub LastWriteTime: LARGE_INTEGER, - pub ChangeTime: LARGE_INTEGER, - pub FileAttributes: DWORD, -} -pub type FILE_BASIC_INFO = _FILE_BASIC_INFO; -pub type PFILE_BASIC_INFO = *mut _FILE_BASIC_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_STANDARD_INFO { - pub AllocationSize: LARGE_INTEGER, - pub EndOfFile: LARGE_INTEGER, - pub NumberOfLinks: DWORD, - pub DeletePending: BOOLEAN, - pub Directory: BOOLEAN, -} -pub type FILE_STANDARD_INFO = _FILE_STANDARD_INFO; -pub type PFILE_STANDARD_INFO = *mut _FILE_STANDARD_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_NAME_INFO { - pub FileNameLength: DWORD, - pub FileName: [WCHAR; 1usize], -} -pub type FILE_NAME_INFO = _FILE_NAME_INFO; -pub type PFILE_NAME_INFO = *mut _FILE_NAME_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_CASE_SENSITIVE_INFO { - pub Flags: ULONG, -} -pub type FILE_CASE_SENSITIVE_INFO = _FILE_CASE_SENSITIVE_INFO; -pub type PFILE_CASE_SENSITIVE_INFO = *mut _FILE_CASE_SENSITIVE_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_RENAME_INFO { - pub __bindgen_anon_1: _FILE_RENAME_INFO__bindgen_ty_1, - pub RootDirectory: HANDLE, - pub FileNameLength: DWORD, - pub FileName: [WCHAR; 1usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _FILE_RENAME_INFO__bindgen_ty_1 { - pub ReplaceIfExists: BOOLEAN, - pub Flags: DWORD, -} -pub type FILE_RENAME_INFO = _FILE_RENAME_INFO; -pub type PFILE_RENAME_INFO = *mut _FILE_RENAME_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_ALLOCATION_INFO { - pub AllocationSize: LARGE_INTEGER, -} -pub type FILE_ALLOCATION_INFO = _FILE_ALLOCATION_INFO; -pub type PFILE_ALLOCATION_INFO = *mut _FILE_ALLOCATION_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_END_OF_FILE_INFO { - pub EndOfFile: LARGE_INTEGER, -} -pub type FILE_END_OF_FILE_INFO = _FILE_END_OF_FILE_INFO; -pub type PFILE_END_OF_FILE_INFO = *mut _FILE_END_OF_FILE_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_STREAM_INFO { - pub NextEntryOffset: DWORD, - pub StreamNameLength: DWORD, - pub StreamSize: LARGE_INTEGER, - pub StreamAllocationSize: LARGE_INTEGER, - pub StreamName: [WCHAR; 1usize], -} -pub type FILE_STREAM_INFO = _FILE_STREAM_INFO; -pub type PFILE_STREAM_INFO = *mut _FILE_STREAM_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_COMPRESSION_INFO { - pub CompressedFileSize: LARGE_INTEGER, - pub CompressionFormat: WORD, - pub CompressionUnitShift: UCHAR, - pub ChunkShift: UCHAR, - pub ClusterShift: UCHAR, - pub Reserved: [UCHAR; 3usize], -} -pub type FILE_COMPRESSION_INFO = _FILE_COMPRESSION_INFO; -pub type PFILE_COMPRESSION_INFO = *mut _FILE_COMPRESSION_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_ATTRIBUTE_TAG_INFO { - pub FileAttributes: DWORD, - pub ReparseTag: DWORD, -} -pub type FILE_ATTRIBUTE_TAG_INFO = _FILE_ATTRIBUTE_TAG_INFO; -pub type PFILE_ATTRIBUTE_TAG_INFO = *mut _FILE_ATTRIBUTE_TAG_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_DISPOSITION_INFO { - pub DeleteFileA: BOOLEAN, -} -pub type FILE_DISPOSITION_INFO = _FILE_DISPOSITION_INFO; -pub type PFILE_DISPOSITION_INFO = *mut _FILE_DISPOSITION_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_DISPOSITION_INFO_EX { - pub Flags: DWORD, -} -pub type FILE_DISPOSITION_INFO_EX = _FILE_DISPOSITION_INFO_EX; -pub type PFILE_DISPOSITION_INFO_EX = *mut _FILE_DISPOSITION_INFO_EX; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_ID_BOTH_DIR_INFO { - pub NextEntryOffset: DWORD, - pub FileIndex: DWORD, - pub CreationTime: LARGE_INTEGER, - pub LastAccessTime: LARGE_INTEGER, - pub LastWriteTime: LARGE_INTEGER, - pub ChangeTime: LARGE_INTEGER, - pub EndOfFile: LARGE_INTEGER, - pub AllocationSize: LARGE_INTEGER, - pub FileAttributes: DWORD, - pub FileNameLength: DWORD, - pub EaSize: DWORD, - pub ShortNameLength: CCHAR, - pub ShortName: [WCHAR; 12usize], - pub FileId: LARGE_INTEGER, - pub FileName: [WCHAR; 1usize], -} -pub type FILE_ID_BOTH_DIR_INFO = _FILE_ID_BOTH_DIR_INFO; -pub type PFILE_ID_BOTH_DIR_INFO = *mut _FILE_ID_BOTH_DIR_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_FULL_DIR_INFO { - pub NextEntryOffset: ULONG, - pub FileIndex: ULONG, - pub CreationTime: LARGE_INTEGER, - pub LastAccessTime: LARGE_INTEGER, - pub LastWriteTime: LARGE_INTEGER, - pub ChangeTime: LARGE_INTEGER, - pub EndOfFile: LARGE_INTEGER, - pub AllocationSize: LARGE_INTEGER, - pub FileAttributes: ULONG, - pub FileNameLength: ULONG, - pub EaSize: ULONG, - pub FileName: [WCHAR; 1usize], -} -pub type FILE_FULL_DIR_INFO = _FILE_FULL_DIR_INFO; -pub type PFILE_FULL_DIR_INFO = *mut _FILE_FULL_DIR_INFO; -pub const _PRIORITY_HINT_IoPriorityHintVeryLow: _PRIORITY_HINT = 0; -pub const _PRIORITY_HINT_IoPriorityHintLow: _PRIORITY_HINT = 1; -pub const _PRIORITY_HINT_IoPriorityHintNormal: _PRIORITY_HINT = 2; -pub const _PRIORITY_HINT_MaximumIoPriorityHintType: _PRIORITY_HINT = 3; -pub type _PRIORITY_HINT = ::std::os::raw::c_int; -pub use self::_PRIORITY_HINT as PRIORITY_HINT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_IO_PRIORITY_HINT_INFO { - pub PriorityHint: PRIORITY_HINT, -} -pub type FILE_IO_PRIORITY_HINT_INFO = _FILE_IO_PRIORITY_HINT_INFO; -pub type PFILE_IO_PRIORITY_HINT_INFO = *mut _FILE_IO_PRIORITY_HINT_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_ALIGNMENT_INFO { - pub AlignmentRequirement: ULONG, -} -pub type FILE_ALIGNMENT_INFO = _FILE_ALIGNMENT_INFO; -pub type PFILE_ALIGNMENT_INFO = *mut _FILE_ALIGNMENT_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_STORAGE_INFO { - pub LogicalBytesPerSector: ULONG, - pub PhysicalBytesPerSectorForAtomicity: ULONG, - pub PhysicalBytesPerSectorForPerformance: ULONG, - pub FileSystemEffectivePhysicalBytesPerSectorForAtomicity: ULONG, - pub Flags: ULONG, - pub ByteOffsetForSectorAlignment: ULONG, - pub ByteOffsetForPartitionAlignment: ULONG, -} -pub type FILE_STORAGE_INFO = _FILE_STORAGE_INFO; -pub type PFILE_STORAGE_INFO = *mut _FILE_STORAGE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_ID_INFO { - pub VolumeSerialNumber: ULONGLONG, - pub FileId: FILE_ID_128, -} -pub type FILE_ID_INFO = _FILE_ID_INFO; -pub type PFILE_ID_INFO = *mut _FILE_ID_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_ID_EXTD_DIR_INFO { - pub NextEntryOffset: ULONG, - pub FileIndex: ULONG, - pub CreationTime: LARGE_INTEGER, - pub LastAccessTime: LARGE_INTEGER, - pub LastWriteTime: LARGE_INTEGER, - pub ChangeTime: LARGE_INTEGER, - pub EndOfFile: LARGE_INTEGER, - pub AllocationSize: LARGE_INTEGER, - pub FileAttributes: ULONG, - pub FileNameLength: ULONG, - pub EaSize: ULONG, - pub ReparsePointTag: ULONG, - pub FileId: FILE_ID_128, - pub FileName: [WCHAR; 1usize], -} -pub type FILE_ID_EXTD_DIR_INFO = _FILE_ID_EXTD_DIR_INFO; -pub type PFILE_ID_EXTD_DIR_INFO = *mut _FILE_ID_EXTD_DIR_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_REMOTE_PROTOCOL_INFO { - pub StructureVersion: USHORT, - pub StructureSize: USHORT, - pub Protocol: ULONG, - pub ProtocolMajorVersion: USHORT, - pub ProtocolMinorVersion: USHORT, - pub ProtocolRevision: USHORT, - pub Reserved: USHORT, - pub Flags: ULONG, - pub GenericReserved: _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_1, - pub ProtocolSpecific: _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_1 { - pub Reserved: [ULONG; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2 { - pub Smb2: _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2__bindgen_ty_1, - pub Reserved: [ULONG; 16usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2__bindgen_ty_1 { - pub Server: _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1, - pub Share: _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2__bindgen_ty_1__bindgen_ty_1 { - pub Capabilities: ULONG, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_REMOTE_PROTOCOL_INFO__bindgen_ty_2__bindgen_ty_1__bindgen_ty_2 { - pub Capabilities: ULONG, - pub ShareFlags: ULONG, -} -pub type FILE_REMOTE_PROTOCOL_INFO = _FILE_REMOTE_PROTOCOL_INFO; -pub type PFILE_REMOTE_PROTOCOL_INFO = *mut _FILE_REMOTE_PROTOCOL_INFO; -extern "C" { - pub fn GetFileInformationByHandleEx( - hFile: HANDLE, - FileInformationClass: FILE_INFO_BY_HANDLE_CLASS, - lpFileInformation: LPVOID, - dwBufferSize: DWORD, - ) -> BOOL; -} -pub const _FILE_ID_TYPE_FileIdType: _FILE_ID_TYPE = 0; -pub const _FILE_ID_TYPE_ObjectIdType: _FILE_ID_TYPE = 1; -pub const _FILE_ID_TYPE_ExtendedFileIdType: _FILE_ID_TYPE = 2; -pub const _FILE_ID_TYPE_MaximumFileIdType: _FILE_ID_TYPE = 3; -pub type _FILE_ID_TYPE = ::std::os::raw::c_int; -pub use self::_FILE_ID_TYPE as FILE_ID_TYPE; -pub type PFILE_ID_TYPE = *mut _FILE_ID_TYPE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct FILE_ID_DESCRIPTOR { - pub dwSize: DWORD, - pub Type: FILE_ID_TYPE, - pub __bindgen_anon_1: FILE_ID_DESCRIPTOR__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union FILE_ID_DESCRIPTOR__bindgen_ty_1 { - pub FileId: LARGE_INTEGER, - pub ObjectId: GUID, - pub ExtendedFileId: FILE_ID_128, -} -pub type LPFILE_ID_DESCRIPTOR = *mut FILE_ID_DESCRIPTOR; -extern "C" { - pub fn OpenFileById( - hVolumeHint: HANDLE, - lpFileId: LPFILE_ID_DESCRIPTOR, - dwDesiredAccess: DWORD, - dwShareMode: DWORD, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - dwFlagsAndAttributes: DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn CreateSymbolicLinkA( - lpSymlinkFileName: LPCSTR, - lpTargetFileName: LPCSTR, - dwFlags: DWORD, - ) -> BOOLEAN; -} -extern "C" { - pub fn CreateSymbolicLinkW( - lpSymlinkFileName: LPCWSTR, - lpTargetFileName: LPCWSTR, - dwFlags: DWORD, - ) -> BOOLEAN; -} -extern "C" { - pub fn QueryActCtxSettingsW( - dwFlags: DWORD, - hActCtx: HANDLE, - settingsNameSpace: PCWSTR, - settingName: PCWSTR, - pvBuffer: PWSTR, - dwBuffer: SIZE_T, - pdwWrittenOrRequired: *mut SIZE_T, - ) -> BOOL; -} -extern "C" { - pub fn CreateSymbolicLinkTransactedA( - lpSymlinkFileName: LPCSTR, - lpTargetFileName: LPCSTR, - dwFlags: DWORD, - hTransaction: HANDLE, - ) -> BOOLEAN; -} -extern "C" { - pub fn CreateSymbolicLinkTransactedW( - lpSymlinkFileName: LPCWSTR, - lpTargetFileName: LPCWSTR, - dwFlags: DWORD, - hTransaction: HANDLE, - ) -> BOOLEAN; -} -extern "C" { - pub fn ReplacePartitionUnit( - TargetPartition: PWSTR, - SparePartition: PWSTR, - Flags: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn AddSecureMemoryCacheCallback(pfnCallBack: PSECURE_MEMORY_CACHE_CALLBACK) -> BOOL; -} -extern "C" { - pub fn RemoveSecureMemoryCacheCallback(pfnCallBack: PSECURE_MEMORY_CACHE_CALLBACK) -> BOOL; -} -extern "C" { - pub fn CopyContext(Destination: PCONTEXT, ContextFlags: DWORD, Source: PCONTEXT) -> BOOL; -} -extern "C" { - pub fn InitializeContext( - Buffer: PVOID, - ContextFlags: DWORD, - Context: *mut PCONTEXT, - ContextLength: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn InitializeContext2( - Buffer: PVOID, - ContextFlags: DWORD, - Context: *mut PCONTEXT, - ContextLength: PDWORD, - XStateCompactionMask: ULONG64, - ) -> BOOL; -} -extern "C" { - pub fn GetEnabledXStateFeatures() -> DWORD64; -} -extern "C" { - pub fn GetXStateFeaturesMask(Context: PCONTEXT, FeatureMask: PDWORD64) -> BOOL; -} -extern "C" { - pub fn LocateXStateFeature(Context: PCONTEXT, FeatureId: DWORD, Length: PDWORD) -> PVOID; -} -extern "C" { - pub fn SetXStateFeaturesMask(Context: PCONTEXT, FeatureMask: DWORD64) -> BOOL; -} -extern "C" { - pub fn GetThreadEnabledXStateFeatures() -> DWORD64; -} -extern "C" { - pub fn EnableProcessOptionalXStateFeatures(Features: DWORD64) -> BOOL; -} -extern "C" { - pub fn EnableThreadProfiling( - ThreadHandle: HANDLE, - Flags: DWORD, - HardwareCounters: DWORD64, - PerformanceDataHandle: *mut HANDLE, - ) -> DWORD; -} -extern "C" { - pub fn DisableThreadProfiling(PerformanceDataHandle: HANDLE) -> DWORD; -} -extern "C" { - pub fn QueryThreadProfiling(ThreadHandle: HANDLE, Enabled: PBOOLEAN) -> DWORD; -} -extern "C" { - pub fn ReadThreadProfilingData( - PerformanceDataHandle: HANDLE, - Flags: DWORD, - PerformanceData: PPERFORMANCE_DATA, - ) -> DWORD; -} -extern "C" { - pub fn RaiseCustomSystemEventTrigger( - CustomSystemEventTriggerConfig: PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG, - ) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRAWPATRECT { - pub ptPosition: POINT, - pub ptSize: POINT, - pub wStyle: WORD, - pub wPattern: WORD, -} -pub type DRAWPATRECT = _DRAWPATRECT; -pub type PDRAWPATRECT = *mut _DRAWPATRECT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PSINJECTDATA { - pub DataBytes: DWORD, - pub InjectionPoint: WORD, - pub PageNumber: WORD, -} -pub type PSINJECTDATA = _PSINJECTDATA; -pub type PPSINJECTDATA = *mut _PSINJECTDATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PSFEATURE_OUTPUT { - pub bPageIndependent: BOOL, - pub bSetPageDevice: BOOL, -} -pub type PSFEATURE_OUTPUT = _PSFEATURE_OUTPUT; -pub type PPSFEATURE_OUTPUT = *mut _PSFEATURE_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PSFEATURE_CUSTPAPER { - pub lOrientation: LONG, - pub lWidth: LONG, - pub lHeight: LONG, - pub lWidthOffset: LONG, - pub lHeightOffset: LONG, -} -pub type PSFEATURE_CUSTPAPER = _PSFEATURE_CUSTPAPER; -pub type PPSFEATURE_CUSTPAPER = *mut _PSFEATURE_CUSTPAPER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagXFORM { - pub eM11: FLOAT, - pub eM12: FLOAT, - pub eM21: FLOAT, - pub eM22: FLOAT, - pub eDx: FLOAT, - pub eDy: FLOAT, -} -pub type XFORM = tagXFORM; -pub type PXFORM = *mut tagXFORM; -pub type LPXFORM = *mut tagXFORM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagBITMAP { - pub bmType: LONG, - pub bmWidth: LONG, - pub bmHeight: LONG, - pub bmWidthBytes: LONG, - pub bmPlanes: WORD, - pub bmBitsPixel: WORD, - pub bmBits: LPVOID, -} -pub type BITMAP = tagBITMAP; -pub type PBITMAP = *mut tagBITMAP; -pub type NPBITMAP = *mut tagBITMAP; -pub type LPBITMAP = *mut tagBITMAP; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRGBTRIPLE { - pub rgbtBlue: BYTE, - pub rgbtGreen: BYTE, - pub rgbtRed: BYTE, -} -pub type RGBTRIPLE = tagRGBTRIPLE; -pub type PRGBTRIPLE = *mut tagRGBTRIPLE; -pub type NPRGBTRIPLE = *mut tagRGBTRIPLE; -pub type LPRGBTRIPLE = *mut tagRGBTRIPLE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRGBQUAD { - pub rgbBlue: BYTE, - pub rgbGreen: BYTE, - pub rgbRed: BYTE, - pub rgbReserved: BYTE, -} -pub type RGBQUAD = tagRGBQUAD; -pub type LPRGBQUAD = *mut RGBQUAD; -pub type LCSCSTYPE = LONG; -pub type LCSGAMUTMATCH = LONG; -pub type FXPT16DOT16 = ::std::os::raw::c_long; -pub type LPFXPT16DOT16 = *mut ::std::os::raw::c_long; -pub type FXPT2DOT30 = ::std::os::raw::c_long; -pub type LPFXPT2DOT30 = *mut ::std::os::raw::c_long; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCIEXYZ { - pub ciexyzX: FXPT2DOT30, - pub ciexyzY: FXPT2DOT30, - pub ciexyzZ: FXPT2DOT30, -} -pub type CIEXYZ = tagCIEXYZ; -pub type LPCIEXYZ = *mut CIEXYZ; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagICEXYZTRIPLE { - pub ciexyzRed: CIEXYZ, - pub ciexyzGreen: CIEXYZ, - pub ciexyzBlue: CIEXYZ, -} -pub type CIEXYZTRIPLE = tagICEXYZTRIPLE; -pub type LPCIEXYZTRIPLE = *mut CIEXYZTRIPLE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagLOGCOLORSPACEA { - pub lcsSignature: DWORD, - pub lcsVersion: DWORD, - pub lcsSize: DWORD, - pub lcsCSType: LCSCSTYPE, - pub lcsIntent: LCSGAMUTMATCH, - pub lcsEndpoints: CIEXYZTRIPLE, - pub lcsGammaRed: DWORD, - pub lcsGammaGreen: DWORD, - pub lcsGammaBlue: DWORD, - pub lcsFilename: [CHAR; 260usize], -} -pub type LOGCOLORSPACEA = tagLOGCOLORSPACEA; -pub type LPLOGCOLORSPACEA = *mut tagLOGCOLORSPACEA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagLOGCOLORSPACEW { - pub lcsSignature: DWORD, - pub lcsVersion: DWORD, - pub lcsSize: DWORD, - pub lcsCSType: LCSCSTYPE, - pub lcsIntent: LCSGAMUTMATCH, - pub lcsEndpoints: CIEXYZTRIPLE, - pub lcsGammaRed: DWORD, - pub lcsGammaGreen: DWORD, - pub lcsGammaBlue: DWORD, - pub lcsFilename: [WCHAR; 260usize], -} -pub type LOGCOLORSPACEW = tagLOGCOLORSPACEW; -pub type LPLOGCOLORSPACEW = *mut tagLOGCOLORSPACEW; -pub type LOGCOLORSPACE = LOGCOLORSPACEA; -pub type LPLOGCOLORSPACE = LPLOGCOLORSPACEA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagBITMAPCOREHEADER { - pub bcSize: DWORD, - pub bcWidth: WORD, - pub bcHeight: WORD, - pub bcPlanes: WORD, - pub bcBitCount: WORD, -} -pub type BITMAPCOREHEADER = tagBITMAPCOREHEADER; -pub type LPBITMAPCOREHEADER = *mut tagBITMAPCOREHEADER; -pub type PBITMAPCOREHEADER = *mut tagBITMAPCOREHEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagBITMAPINFOHEADER { - pub biSize: DWORD, - pub biWidth: LONG, - pub biHeight: LONG, - pub biPlanes: WORD, - pub biBitCount: WORD, - pub biCompression: DWORD, - pub biSizeImage: DWORD, - pub biXPelsPerMeter: LONG, - pub biYPelsPerMeter: LONG, - pub biClrUsed: DWORD, - pub biClrImportant: DWORD, -} -pub type BITMAPINFOHEADER = tagBITMAPINFOHEADER; -pub type LPBITMAPINFOHEADER = *mut tagBITMAPINFOHEADER; -pub type PBITMAPINFOHEADER = *mut tagBITMAPINFOHEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BITMAPV4HEADER { - pub bV4Size: DWORD, - pub bV4Width: LONG, - pub bV4Height: LONG, - pub bV4Planes: WORD, - pub bV4BitCount: WORD, - pub bV4V4Compression: DWORD, - pub bV4SizeImage: DWORD, - pub bV4XPelsPerMeter: LONG, - pub bV4YPelsPerMeter: LONG, - pub bV4ClrUsed: DWORD, - pub bV4ClrImportant: DWORD, - pub bV4RedMask: DWORD, - pub bV4GreenMask: DWORD, - pub bV4BlueMask: DWORD, - pub bV4AlphaMask: DWORD, - pub bV4CSType: DWORD, - pub bV4Endpoints: CIEXYZTRIPLE, - pub bV4GammaRed: DWORD, - pub bV4GammaGreen: DWORD, - pub bV4GammaBlue: DWORD, -} -pub type LPBITMAPV4HEADER = *mut BITMAPV4HEADER; -pub type PBITMAPV4HEADER = *mut BITMAPV4HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BITMAPV5HEADER { - pub bV5Size: DWORD, - pub bV5Width: LONG, - pub bV5Height: LONG, - pub bV5Planes: WORD, - pub bV5BitCount: WORD, - pub bV5Compression: DWORD, - pub bV5SizeImage: DWORD, - pub bV5XPelsPerMeter: LONG, - pub bV5YPelsPerMeter: LONG, - pub bV5ClrUsed: DWORD, - pub bV5ClrImportant: DWORD, - pub bV5RedMask: DWORD, - pub bV5GreenMask: DWORD, - pub bV5BlueMask: DWORD, - pub bV5AlphaMask: DWORD, - pub bV5CSType: DWORD, - pub bV5Endpoints: CIEXYZTRIPLE, - pub bV5GammaRed: DWORD, - pub bV5GammaGreen: DWORD, - pub bV5GammaBlue: DWORD, - pub bV5Intent: DWORD, - pub bV5ProfileData: DWORD, - pub bV5ProfileSize: DWORD, - pub bV5Reserved: DWORD, -} -pub type LPBITMAPV5HEADER = *mut BITMAPV5HEADER; -pub type PBITMAPV5HEADER = *mut BITMAPV5HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagBITMAPINFO { - pub bmiHeader: BITMAPINFOHEADER, - pub bmiColors: [RGBQUAD; 1usize], -} -pub type BITMAPINFO = tagBITMAPINFO; -pub type LPBITMAPINFO = *mut tagBITMAPINFO; -pub type PBITMAPINFO = *mut tagBITMAPINFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagBITMAPCOREINFO { - pub bmciHeader: BITMAPCOREHEADER, - pub bmciColors: [RGBTRIPLE; 1usize], -} -pub type BITMAPCOREINFO = tagBITMAPCOREINFO; -pub type LPBITMAPCOREINFO = *mut tagBITMAPCOREINFO; -pub type PBITMAPCOREINFO = *mut tagBITMAPCOREINFO; -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct tagBITMAPFILEHEADER { - pub bfType: WORD, - pub bfSize: DWORD, - pub bfReserved1: WORD, - pub bfReserved2: WORD, - pub bfOffBits: DWORD, -} -pub type BITMAPFILEHEADER = tagBITMAPFILEHEADER; -pub type LPBITMAPFILEHEADER = *mut tagBITMAPFILEHEADER; -pub type PBITMAPFILEHEADER = *mut tagBITMAPFILEHEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagFONTSIGNATURE { - pub fsUsb: [DWORD; 4usize], - pub fsCsb: [DWORD; 2usize], -} -pub type FONTSIGNATURE = tagFONTSIGNATURE; -pub type PFONTSIGNATURE = *mut tagFONTSIGNATURE; -pub type LPFONTSIGNATURE = *mut tagFONTSIGNATURE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCHARSETINFO { - pub ciCharset: UINT, - pub ciACP: UINT, - pub fs: FONTSIGNATURE, -} -pub type CHARSETINFO = tagCHARSETINFO; -pub type PCHARSETINFO = *mut tagCHARSETINFO; -pub type NPCHARSETINFO = *mut tagCHARSETINFO; -pub type LPCHARSETINFO = *mut tagCHARSETINFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagLOCALESIGNATURE { - pub lsUsb: [DWORD; 4usize], - pub lsCsbDefault: [DWORD; 2usize], - pub lsCsbSupported: [DWORD; 2usize], -} -pub type LOCALESIGNATURE = tagLOCALESIGNATURE; -pub type PLOCALESIGNATURE = *mut tagLOCALESIGNATURE; -pub type LPLOCALESIGNATURE = *mut tagLOCALESIGNATURE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagHANDLETABLE { - pub objectHandle: [HGDIOBJ; 1usize], -} -pub type HANDLETABLE = tagHANDLETABLE; -pub type PHANDLETABLE = *mut tagHANDLETABLE; -pub type LPHANDLETABLE = *mut tagHANDLETABLE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMETARECORD { - pub rdSize: DWORD, - pub rdFunction: WORD, - pub rdParm: [WORD; 1usize], -} -pub type METARECORD = tagMETARECORD; -pub type PMETARECORD = *mut tagMETARECORD; -pub type LPMETARECORD = *mut tagMETARECORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMETAFILEPICT { - pub mm: LONG, - pub xExt: LONG, - pub yExt: LONG, - pub hMF: HMETAFILE, -} -pub type METAFILEPICT = tagMETAFILEPICT; -pub type LPMETAFILEPICT = *mut tagMETAFILEPICT; -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct tagMETAHEADER { - pub mtType: WORD, - pub mtHeaderSize: WORD, - pub mtVersion: WORD, - pub mtSize: DWORD, - pub mtNoObjects: WORD, - pub mtMaxRecord: DWORD, - pub mtNoParameters: WORD, -} -pub type METAHEADER = tagMETAHEADER; -pub type PMETAHEADER = *mut tagMETAHEADER; -pub type LPMETAHEADER = *mut tagMETAHEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagENHMETARECORD { - pub iType: DWORD, - pub nSize: DWORD, - pub dParm: [DWORD; 1usize], -} -pub type ENHMETARECORD = tagENHMETARECORD; -pub type PENHMETARECORD = *mut tagENHMETARECORD; -pub type LPENHMETARECORD = *mut tagENHMETARECORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagENHMETAHEADER { - pub iType: DWORD, - pub nSize: DWORD, - pub rclBounds: RECTL, - pub rclFrame: RECTL, - pub dSignature: DWORD, - pub nVersion: DWORD, - pub nBytes: DWORD, - pub nRecords: DWORD, - pub nHandles: WORD, - pub sReserved: WORD, - pub nDescription: DWORD, - pub offDescription: DWORD, - pub nPalEntries: DWORD, - pub szlDevice: SIZEL, - pub szlMillimeters: SIZEL, - pub cbPixelFormat: DWORD, - pub offPixelFormat: DWORD, - pub bOpenGL: DWORD, - pub szlMicrometers: SIZEL, -} -pub type ENHMETAHEADER = tagENHMETAHEADER; -pub type PENHMETAHEADER = *mut tagENHMETAHEADER; -pub type LPENHMETAHEADER = *mut tagENHMETAHEADER; -pub type BCHAR = BYTE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagTEXTMETRICA { - pub tmHeight: LONG, - pub tmAscent: LONG, - pub tmDescent: LONG, - pub tmInternalLeading: LONG, - pub tmExternalLeading: LONG, - pub tmAveCharWidth: LONG, - pub tmMaxCharWidth: LONG, - pub tmWeight: LONG, - pub tmOverhang: LONG, - pub tmDigitizedAspectX: LONG, - pub tmDigitizedAspectY: LONG, - pub tmFirstChar: BYTE, - pub tmLastChar: BYTE, - pub tmDefaultChar: BYTE, - pub tmBreakChar: BYTE, - pub tmItalic: BYTE, - pub tmUnderlined: BYTE, - pub tmStruckOut: BYTE, - pub tmPitchAndFamily: BYTE, - pub tmCharSet: BYTE, -} -pub type TEXTMETRICA = tagTEXTMETRICA; -pub type PTEXTMETRICA = *mut tagTEXTMETRICA; -pub type NPTEXTMETRICA = *mut tagTEXTMETRICA; -pub type LPTEXTMETRICA = *mut tagTEXTMETRICA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagTEXTMETRICW { - pub tmHeight: LONG, - pub tmAscent: LONG, - pub tmDescent: LONG, - pub tmInternalLeading: LONG, - pub tmExternalLeading: LONG, - pub tmAveCharWidth: LONG, - pub tmMaxCharWidth: LONG, - pub tmWeight: LONG, - pub tmOverhang: LONG, - pub tmDigitizedAspectX: LONG, - pub tmDigitizedAspectY: LONG, - pub tmFirstChar: WCHAR, - pub tmLastChar: WCHAR, - pub tmDefaultChar: WCHAR, - pub tmBreakChar: WCHAR, - pub tmItalic: BYTE, - pub tmUnderlined: BYTE, - pub tmStruckOut: BYTE, - pub tmPitchAndFamily: BYTE, - pub tmCharSet: BYTE, -} -pub type TEXTMETRICW = tagTEXTMETRICW; -pub type PTEXTMETRICW = *mut tagTEXTMETRICW; -pub type NPTEXTMETRICW = *mut tagTEXTMETRICW; -pub type LPTEXTMETRICW = *mut tagTEXTMETRICW; -pub type TEXTMETRIC = TEXTMETRICA; -pub type PTEXTMETRIC = PTEXTMETRICA; -pub type NPTEXTMETRIC = NPTEXTMETRICA; -pub type LPTEXTMETRIC = LPTEXTMETRICA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagNEWTEXTMETRICA { - pub tmHeight: LONG, - pub tmAscent: LONG, - pub tmDescent: LONG, - pub tmInternalLeading: LONG, - pub tmExternalLeading: LONG, - pub tmAveCharWidth: LONG, - pub tmMaxCharWidth: LONG, - pub tmWeight: LONG, - pub tmOverhang: LONG, - pub tmDigitizedAspectX: LONG, - pub tmDigitizedAspectY: LONG, - pub tmFirstChar: BYTE, - pub tmLastChar: BYTE, - pub tmDefaultChar: BYTE, - pub tmBreakChar: BYTE, - pub tmItalic: BYTE, - pub tmUnderlined: BYTE, - pub tmStruckOut: BYTE, - pub tmPitchAndFamily: BYTE, - pub tmCharSet: BYTE, - pub ntmFlags: DWORD, - pub ntmSizeEM: UINT, - pub ntmCellHeight: UINT, - pub ntmAvgWidth: UINT, -} -pub type NEWTEXTMETRICA = tagNEWTEXTMETRICA; -pub type PNEWTEXTMETRICA = *mut tagNEWTEXTMETRICA; -pub type NPNEWTEXTMETRICA = *mut tagNEWTEXTMETRICA; -pub type LPNEWTEXTMETRICA = *mut tagNEWTEXTMETRICA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagNEWTEXTMETRICW { - pub tmHeight: LONG, - pub tmAscent: LONG, - pub tmDescent: LONG, - pub tmInternalLeading: LONG, - pub tmExternalLeading: LONG, - pub tmAveCharWidth: LONG, - pub tmMaxCharWidth: LONG, - pub tmWeight: LONG, - pub tmOverhang: LONG, - pub tmDigitizedAspectX: LONG, - pub tmDigitizedAspectY: LONG, - pub tmFirstChar: WCHAR, - pub tmLastChar: WCHAR, - pub tmDefaultChar: WCHAR, - pub tmBreakChar: WCHAR, - pub tmItalic: BYTE, - pub tmUnderlined: BYTE, - pub tmStruckOut: BYTE, - pub tmPitchAndFamily: BYTE, - pub tmCharSet: BYTE, - pub ntmFlags: DWORD, - pub ntmSizeEM: UINT, - pub ntmCellHeight: UINT, - pub ntmAvgWidth: UINT, -} -pub type NEWTEXTMETRICW = tagNEWTEXTMETRICW; -pub type PNEWTEXTMETRICW = *mut tagNEWTEXTMETRICW; -pub type NPNEWTEXTMETRICW = *mut tagNEWTEXTMETRICW; -pub type LPNEWTEXTMETRICW = *mut tagNEWTEXTMETRICW; -pub type NEWTEXTMETRIC = NEWTEXTMETRICA; -pub type PNEWTEXTMETRIC = PNEWTEXTMETRICA; -pub type NPNEWTEXTMETRIC = NPNEWTEXTMETRICA; -pub type LPNEWTEXTMETRIC = LPNEWTEXTMETRICA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagNEWTEXTMETRICEXA { - pub ntmTm: NEWTEXTMETRICA, - pub ntmFontSig: FONTSIGNATURE, -} -pub type NEWTEXTMETRICEXA = tagNEWTEXTMETRICEXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagNEWTEXTMETRICEXW { - pub ntmTm: NEWTEXTMETRICW, - pub ntmFontSig: FONTSIGNATURE, -} -pub type NEWTEXTMETRICEXW = tagNEWTEXTMETRICEXW; -pub type NEWTEXTMETRICEX = NEWTEXTMETRICEXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPELARRAY { - pub paXCount: LONG, - pub paYCount: LONG, - pub paXExt: LONG, - pub paYExt: LONG, - pub paRGBs: BYTE, -} -pub type PELARRAY = tagPELARRAY; -pub type PPELARRAY = *mut tagPELARRAY; -pub type NPPELARRAY = *mut tagPELARRAY; -pub type LPPELARRAY = *mut tagPELARRAY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagLOGBRUSH { - pub lbStyle: UINT, - pub lbColor: COLORREF, - pub lbHatch: ULONG_PTR, -} -pub type LOGBRUSH = tagLOGBRUSH; -pub type PLOGBRUSH = *mut tagLOGBRUSH; -pub type NPLOGBRUSH = *mut tagLOGBRUSH; -pub type LPLOGBRUSH = *mut tagLOGBRUSH; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagLOGBRUSH32 { - pub lbStyle: UINT, - pub lbColor: COLORREF, - pub lbHatch: ULONG, -} -pub type LOGBRUSH32 = tagLOGBRUSH32; -pub type PLOGBRUSH32 = *mut tagLOGBRUSH32; -pub type NPLOGBRUSH32 = *mut tagLOGBRUSH32; -pub type LPLOGBRUSH32 = *mut tagLOGBRUSH32; -pub type PATTERN = LOGBRUSH; -pub type PPATTERN = *mut PATTERN; -pub type NPPATTERN = *mut PATTERN; -pub type LPPATTERN = *mut PATTERN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagLOGPEN { - pub lopnStyle: UINT, - pub lopnWidth: POINT, - pub lopnColor: COLORREF, -} -pub type LOGPEN = tagLOGPEN; -pub type PLOGPEN = *mut tagLOGPEN; -pub type NPLOGPEN = *mut tagLOGPEN; -pub type LPLOGPEN = *mut tagLOGPEN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEXTLOGPEN { - pub elpPenStyle: DWORD, - pub elpWidth: DWORD, - pub elpBrushStyle: UINT, - pub elpColor: COLORREF, - pub elpHatch: ULONG_PTR, - pub elpNumEntries: DWORD, - pub elpStyleEntry: [DWORD; 1usize], -} -pub type EXTLOGPEN = tagEXTLOGPEN; -pub type PEXTLOGPEN = *mut tagEXTLOGPEN; -pub type NPEXTLOGPEN = *mut tagEXTLOGPEN; -pub type LPEXTLOGPEN = *mut tagEXTLOGPEN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEXTLOGPEN32 { - pub elpPenStyle: DWORD, - pub elpWidth: DWORD, - pub elpBrushStyle: UINT, - pub elpColor: COLORREF, - pub elpHatch: ULONG, - pub elpNumEntries: DWORD, - pub elpStyleEntry: [DWORD; 1usize], -} -pub type EXTLOGPEN32 = tagEXTLOGPEN32; -pub type PEXTLOGPEN32 = *mut tagEXTLOGPEN32; -pub type NPEXTLOGPEN32 = *mut tagEXTLOGPEN32; -pub type LPEXTLOGPEN32 = *mut tagEXTLOGPEN32; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPALETTEENTRY { - pub peRed: BYTE, - pub peGreen: BYTE, - pub peBlue: BYTE, - pub peFlags: BYTE, -} -pub type PALETTEENTRY = tagPALETTEENTRY; -pub type PPALETTEENTRY = *mut tagPALETTEENTRY; -pub type LPPALETTEENTRY = *mut tagPALETTEENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagLOGPALETTE { - pub palVersion: WORD, - pub palNumEntries: WORD, - pub palPalEntry: [PALETTEENTRY; 1usize], -} -pub type LOGPALETTE = tagLOGPALETTE; -pub type PLOGPALETTE = *mut tagLOGPALETTE; -pub type NPLOGPALETTE = *mut tagLOGPALETTE; -pub type LPLOGPALETTE = *mut tagLOGPALETTE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagLOGFONTA { - pub lfHeight: LONG, - pub lfWidth: LONG, - pub lfEscapement: LONG, - pub lfOrientation: LONG, - pub lfWeight: LONG, - pub lfItalic: BYTE, - pub lfUnderline: BYTE, - pub lfStrikeOut: BYTE, - pub lfCharSet: BYTE, - pub lfOutPrecision: BYTE, - pub lfClipPrecision: BYTE, - pub lfQuality: BYTE, - pub lfPitchAndFamily: BYTE, - pub lfFaceName: [CHAR; 32usize], -} -pub type LOGFONTA = tagLOGFONTA; -pub type PLOGFONTA = *mut tagLOGFONTA; -pub type NPLOGFONTA = *mut tagLOGFONTA; -pub type LPLOGFONTA = *mut tagLOGFONTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagLOGFONTW { - pub lfHeight: LONG, - pub lfWidth: LONG, - pub lfEscapement: LONG, - pub lfOrientation: LONG, - pub lfWeight: LONG, - pub lfItalic: BYTE, - pub lfUnderline: BYTE, - pub lfStrikeOut: BYTE, - pub lfCharSet: BYTE, - pub lfOutPrecision: BYTE, - pub lfClipPrecision: BYTE, - pub lfQuality: BYTE, - pub lfPitchAndFamily: BYTE, - pub lfFaceName: [WCHAR; 32usize], -} -pub type LOGFONTW = tagLOGFONTW; -pub type PLOGFONTW = *mut tagLOGFONTW; -pub type NPLOGFONTW = *mut tagLOGFONTW; -pub type LPLOGFONTW = *mut tagLOGFONTW; -pub type LOGFONT = LOGFONTA; -pub type PLOGFONT = PLOGFONTA; -pub type NPLOGFONT = NPLOGFONTA; -pub type LPLOGFONT = LPLOGFONTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagENUMLOGFONTA { - pub elfLogFont: LOGFONTA, - pub elfFullName: [BYTE; 64usize], - pub elfStyle: [BYTE; 32usize], -} -pub type ENUMLOGFONTA = tagENUMLOGFONTA; -pub type LPENUMLOGFONTA = *mut tagENUMLOGFONTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagENUMLOGFONTW { - pub elfLogFont: LOGFONTW, - pub elfFullName: [WCHAR; 64usize], - pub elfStyle: [WCHAR; 32usize], -} -pub type ENUMLOGFONTW = tagENUMLOGFONTW; -pub type LPENUMLOGFONTW = *mut tagENUMLOGFONTW; -pub type ENUMLOGFONT = ENUMLOGFONTA; -pub type LPENUMLOGFONT = LPENUMLOGFONTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagENUMLOGFONTEXA { - pub elfLogFont: LOGFONTA, - pub elfFullName: [BYTE; 64usize], - pub elfStyle: [BYTE; 32usize], - pub elfScript: [BYTE; 32usize], -} -pub type ENUMLOGFONTEXA = tagENUMLOGFONTEXA; -pub type LPENUMLOGFONTEXA = *mut tagENUMLOGFONTEXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagENUMLOGFONTEXW { - pub elfLogFont: LOGFONTW, - pub elfFullName: [WCHAR; 64usize], - pub elfStyle: [WCHAR; 32usize], - pub elfScript: [WCHAR; 32usize], -} -pub type ENUMLOGFONTEXW = tagENUMLOGFONTEXW; -pub type LPENUMLOGFONTEXW = *mut tagENUMLOGFONTEXW; -pub type ENUMLOGFONTEX = ENUMLOGFONTEXA; -pub type LPENUMLOGFONTEX = LPENUMLOGFONTEXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPANOSE { - pub bFamilyType: BYTE, - pub bSerifStyle: BYTE, - pub bWeight: BYTE, - pub bProportion: BYTE, - pub bContrast: BYTE, - pub bStrokeVariation: BYTE, - pub bArmStyle: BYTE, - pub bLetterform: BYTE, - pub bMidline: BYTE, - pub bXHeight: BYTE, -} -pub type PANOSE = tagPANOSE; -pub type LPPANOSE = *mut tagPANOSE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEXTLOGFONTA { - pub elfLogFont: LOGFONTA, - pub elfFullName: [BYTE; 64usize], - pub elfStyle: [BYTE; 32usize], - pub elfVersion: DWORD, - pub elfStyleSize: DWORD, - pub elfMatch: DWORD, - pub elfReserved: DWORD, - pub elfVendorId: [BYTE; 4usize], - pub elfCulture: DWORD, - pub elfPanose: PANOSE, -} -pub type EXTLOGFONTA = tagEXTLOGFONTA; -pub type PEXTLOGFONTA = *mut tagEXTLOGFONTA; -pub type NPEXTLOGFONTA = *mut tagEXTLOGFONTA; -pub type LPEXTLOGFONTA = *mut tagEXTLOGFONTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEXTLOGFONTW { - pub elfLogFont: LOGFONTW, - pub elfFullName: [WCHAR; 64usize], - pub elfStyle: [WCHAR; 32usize], - pub elfVersion: DWORD, - pub elfStyleSize: DWORD, - pub elfMatch: DWORD, - pub elfReserved: DWORD, - pub elfVendorId: [BYTE; 4usize], - pub elfCulture: DWORD, - pub elfPanose: PANOSE, -} -pub type EXTLOGFONTW = tagEXTLOGFONTW; -pub type PEXTLOGFONTW = *mut tagEXTLOGFONTW; -pub type NPEXTLOGFONTW = *mut tagEXTLOGFONTW; -pub type LPEXTLOGFONTW = *mut tagEXTLOGFONTW; -pub type EXTLOGFONT = EXTLOGFONTA; -pub type PEXTLOGFONT = PEXTLOGFONTA; -pub type NPEXTLOGFONT = NPEXTLOGFONTA; -pub type LPEXTLOGFONT = LPEXTLOGFONTA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _devicemodeA { - pub dmDeviceName: [BYTE; 32usize], - pub dmSpecVersion: WORD, - pub dmDriverVersion: WORD, - pub dmSize: WORD, - pub dmDriverExtra: WORD, - pub dmFields: DWORD, - pub __bindgen_anon_1: _devicemodeA__bindgen_ty_1, - pub dmColor: ::std::os::raw::c_short, - pub dmDuplex: ::std::os::raw::c_short, - pub dmYResolution: ::std::os::raw::c_short, - pub dmTTOption: ::std::os::raw::c_short, - pub dmCollate: ::std::os::raw::c_short, - pub dmFormName: [BYTE; 32usize], - pub dmLogPixels: WORD, - pub dmBitsPerPel: DWORD, - pub dmPelsWidth: DWORD, - pub dmPelsHeight: DWORD, - pub __bindgen_anon_2: _devicemodeA__bindgen_ty_2, - pub dmDisplayFrequency: DWORD, - pub dmICMMethod: DWORD, - pub dmICMIntent: DWORD, - pub dmMediaType: DWORD, - pub dmDitherType: DWORD, - pub dmReserved1: DWORD, - pub dmReserved2: DWORD, - pub dmPanningWidth: DWORD, - pub dmPanningHeight: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _devicemodeA__bindgen_ty_1 { - pub __bindgen_anon_1: _devicemodeA__bindgen_ty_1__bindgen_ty_1, - pub __bindgen_anon_2: _devicemodeA__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _devicemodeA__bindgen_ty_1__bindgen_ty_1 { - pub dmOrientation: ::std::os::raw::c_short, - pub dmPaperSize: ::std::os::raw::c_short, - pub dmPaperLength: ::std::os::raw::c_short, - pub dmPaperWidth: ::std::os::raw::c_short, - pub dmScale: ::std::os::raw::c_short, - pub dmCopies: ::std::os::raw::c_short, - pub dmDefaultSource: ::std::os::raw::c_short, - pub dmPrintQuality: ::std::os::raw::c_short, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _devicemodeA__bindgen_ty_1__bindgen_ty_2 { - pub dmPosition: POINTL, - pub dmDisplayOrientation: DWORD, - pub dmDisplayFixedOutput: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _devicemodeA__bindgen_ty_2 { - pub dmDisplayFlags: DWORD, - pub dmNup: DWORD, -} -pub type DEVMODEA = _devicemodeA; -pub type PDEVMODEA = *mut _devicemodeA; -pub type NPDEVMODEA = *mut _devicemodeA; -pub type LPDEVMODEA = *mut _devicemodeA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _devicemodeW { - pub dmDeviceName: [WCHAR; 32usize], - pub dmSpecVersion: WORD, - pub dmDriverVersion: WORD, - pub dmSize: WORD, - pub dmDriverExtra: WORD, - pub dmFields: DWORD, - pub __bindgen_anon_1: _devicemodeW__bindgen_ty_1, - pub dmColor: ::std::os::raw::c_short, - pub dmDuplex: ::std::os::raw::c_short, - pub dmYResolution: ::std::os::raw::c_short, - pub dmTTOption: ::std::os::raw::c_short, - pub dmCollate: ::std::os::raw::c_short, - pub dmFormName: [WCHAR; 32usize], - pub dmLogPixels: WORD, - pub dmBitsPerPel: DWORD, - pub dmPelsWidth: DWORD, - pub dmPelsHeight: DWORD, - pub __bindgen_anon_2: _devicemodeW__bindgen_ty_2, - pub dmDisplayFrequency: DWORD, - pub dmICMMethod: DWORD, - pub dmICMIntent: DWORD, - pub dmMediaType: DWORD, - pub dmDitherType: DWORD, - pub dmReserved1: DWORD, - pub dmReserved2: DWORD, - pub dmPanningWidth: DWORD, - pub dmPanningHeight: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _devicemodeW__bindgen_ty_1 { - pub __bindgen_anon_1: _devicemodeW__bindgen_ty_1__bindgen_ty_1, - pub __bindgen_anon_2: _devicemodeW__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _devicemodeW__bindgen_ty_1__bindgen_ty_1 { - pub dmOrientation: ::std::os::raw::c_short, - pub dmPaperSize: ::std::os::raw::c_short, - pub dmPaperLength: ::std::os::raw::c_short, - pub dmPaperWidth: ::std::os::raw::c_short, - pub dmScale: ::std::os::raw::c_short, - pub dmCopies: ::std::os::raw::c_short, - pub dmDefaultSource: ::std::os::raw::c_short, - pub dmPrintQuality: ::std::os::raw::c_short, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _devicemodeW__bindgen_ty_1__bindgen_ty_2 { - pub dmPosition: POINTL, - pub dmDisplayOrientation: DWORD, - pub dmDisplayFixedOutput: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _devicemodeW__bindgen_ty_2 { - pub dmDisplayFlags: DWORD, - pub dmNup: DWORD, -} -pub type DEVMODEW = _devicemodeW; -pub type PDEVMODEW = *mut _devicemodeW; -pub type NPDEVMODEW = *mut _devicemodeW; -pub type LPDEVMODEW = *mut _devicemodeW; -pub type DEVMODE = DEVMODEA; -pub type PDEVMODE = PDEVMODEA; -pub type NPDEVMODE = NPDEVMODEA; -pub type LPDEVMODE = LPDEVMODEA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISPLAY_DEVICEA { - pub cb: DWORD, - pub DeviceName: [CHAR; 32usize], - pub DeviceString: [CHAR; 128usize], - pub StateFlags: DWORD, - pub DeviceID: [CHAR; 128usize], - pub DeviceKey: [CHAR; 128usize], -} -pub type DISPLAY_DEVICEA = _DISPLAY_DEVICEA; -pub type PDISPLAY_DEVICEA = *mut _DISPLAY_DEVICEA; -pub type LPDISPLAY_DEVICEA = *mut _DISPLAY_DEVICEA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISPLAY_DEVICEW { - pub cb: DWORD, - pub DeviceName: [WCHAR; 32usize], - pub DeviceString: [WCHAR; 128usize], - pub StateFlags: DWORD, - pub DeviceID: [WCHAR; 128usize], - pub DeviceKey: [WCHAR; 128usize], -} -pub type DISPLAY_DEVICEW = _DISPLAY_DEVICEW; -pub type PDISPLAY_DEVICEW = *mut _DISPLAY_DEVICEW; -pub type LPDISPLAY_DEVICEW = *mut _DISPLAY_DEVICEW; -pub type DISPLAY_DEVICE = DISPLAY_DEVICEA; -pub type PDISPLAY_DEVICE = PDISPLAY_DEVICEA; -pub type LPDISPLAY_DEVICE = LPDISPLAY_DEVICEA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DISPLAYCONFIG_RATIONAL { - pub Numerator: UINT32, - pub Denominator: UINT32, -} -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_OTHER: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = -1; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HD15: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 0; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SVIDEO: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 1; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_COMPOSITE_VIDEO: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 2; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_COMPONENT_VIDEO: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 3; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DVI: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 4; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HDMI: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 5; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_LVDS: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 6; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_D_JPN: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 8; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SDI: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 9; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EXTERNAL : DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 10 ; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EMBEDDED : DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 11 ; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_UDI_EXTERNAL: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 12; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_UDI_EMBEDDED: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 13; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SDTVDONGLE: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 14; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_MIRACAST: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 15; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INDIRECT_WIRED: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 16; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INDIRECT_VIRTUAL: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 17; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_USB_TUNNEL : DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = 18 ; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INTERNAL: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = -2147483648; -pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY_DISPLAYCONFIG_OUTPUT_TECHNOLOGY_FORCE_UINT32: - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = -1; -pub type DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = ::std::os::raw::c_int; -pub const DISPLAYCONFIG_SCANLINE_ORDERING_DISPLAYCONFIG_SCANLINE_ORDERING_UNSPECIFIED: - DISPLAYCONFIG_SCANLINE_ORDERING = 0; -pub const DISPLAYCONFIG_SCANLINE_ORDERING_DISPLAYCONFIG_SCANLINE_ORDERING_PROGRESSIVE: - DISPLAYCONFIG_SCANLINE_ORDERING = 1; -pub const DISPLAYCONFIG_SCANLINE_ORDERING_DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED: - DISPLAYCONFIG_SCANLINE_ORDERING = 2; -pub const DISPLAYCONFIG_SCANLINE_ORDERING_DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED_UPPERFIELDFIRST : DISPLAYCONFIG_SCANLINE_ORDERING = 2 ; -pub const DISPLAYCONFIG_SCANLINE_ORDERING_DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED_LOWERFIELDFIRST : DISPLAYCONFIG_SCANLINE_ORDERING = 3 ; -pub const DISPLAYCONFIG_SCANLINE_ORDERING_DISPLAYCONFIG_SCANLINE_ORDERING_FORCE_UINT32: - DISPLAYCONFIG_SCANLINE_ORDERING = -1; -pub type DISPLAYCONFIG_SCANLINE_ORDERING = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DISPLAYCONFIG_2DREGION { - pub cx: UINT32, - pub cy: UINT32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DISPLAYCONFIG_VIDEO_SIGNAL_INFO { - pub pixelRate: UINT64, - pub hSyncFreq: DISPLAYCONFIG_RATIONAL, - pub vSyncFreq: DISPLAYCONFIG_RATIONAL, - pub activeSize: DISPLAYCONFIG_2DREGION, - pub totalSize: DISPLAYCONFIG_2DREGION, - pub __bindgen_anon_1: DISPLAYCONFIG_VIDEO_SIGNAL_INFO__bindgen_ty_1, - pub scanLineOrdering: DISPLAYCONFIG_SCANLINE_ORDERING, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union DISPLAYCONFIG_VIDEO_SIGNAL_INFO__bindgen_ty_1 { - pub AdditionalSignalInfo: DISPLAYCONFIG_VIDEO_SIGNAL_INFO__bindgen_ty_1__bindgen_ty_1, - pub videoStandard: UINT32, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct DISPLAYCONFIG_VIDEO_SIGNAL_INFO__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl DISPLAYCONFIG_VIDEO_SIGNAL_INFO__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn videoStandard(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } - } - #[inline] - pub fn set_videoStandard(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 16u8, val as u64) - } - } - #[inline] - pub fn vSyncFreqDivider(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 6u8) as u32) } - } - #[inline] - pub fn set_vSyncFreqDivider(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(16usize, 6u8, val as u64) - } - } - #[inline] - pub fn reserved(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 10u8) as u32) } - } - #[inline] - pub fn set_reserved(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(22usize, 10u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - videoStandard: UINT32, - vSyncFreqDivider: UINT32, - reserved: UINT32, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 16u8, { - let videoStandard: u32 = unsafe { ::std::mem::transmute(videoStandard) }; - videoStandard as u64 - }); - __bindgen_bitfield_unit.set(16usize, 6u8, { - let vSyncFreqDivider: u32 = unsafe { ::std::mem::transmute(vSyncFreqDivider) }; - vSyncFreqDivider as u64 - }); - __bindgen_bitfield_unit.set(22usize, 10u8, { - let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; - reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub const DISPLAYCONFIG_SCALING_DISPLAYCONFIG_SCALING_IDENTITY: DISPLAYCONFIG_SCALING = 1; -pub const DISPLAYCONFIG_SCALING_DISPLAYCONFIG_SCALING_CENTERED: DISPLAYCONFIG_SCALING = 2; -pub const DISPLAYCONFIG_SCALING_DISPLAYCONFIG_SCALING_STRETCHED: DISPLAYCONFIG_SCALING = 3; -pub const DISPLAYCONFIG_SCALING_DISPLAYCONFIG_SCALING_ASPECTRATIOCENTEREDMAX: - DISPLAYCONFIG_SCALING = 4; -pub const DISPLAYCONFIG_SCALING_DISPLAYCONFIG_SCALING_CUSTOM: DISPLAYCONFIG_SCALING = 5; -pub const DISPLAYCONFIG_SCALING_DISPLAYCONFIG_SCALING_PREFERRED: DISPLAYCONFIG_SCALING = 128; -pub const DISPLAYCONFIG_SCALING_DISPLAYCONFIG_SCALING_FORCE_UINT32: DISPLAYCONFIG_SCALING = -1; -pub type DISPLAYCONFIG_SCALING = ::std::os::raw::c_int; -pub const DISPLAYCONFIG_ROTATION_DISPLAYCONFIG_ROTATION_IDENTITY: DISPLAYCONFIG_ROTATION = 1; -pub const DISPLAYCONFIG_ROTATION_DISPLAYCONFIG_ROTATION_ROTATE90: DISPLAYCONFIG_ROTATION = 2; -pub const DISPLAYCONFIG_ROTATION_DISPLAYCONFIG_ROTATION_ROTATE180: DISPLAYCONFIG_ROTATION = 3; -pub const DISPLAYCONFIG_ROTATION_DISPLAYCONFIG_ROTATION_ROTATE270: DISPLAYCONFIG_ROTATION = 4; -pub const DISPLAYCONFIG_ROTATION_DISPLAYCONFIG_ROTATION_FORCE_UINT32: DISPLAYCONFIG_ROTATION = -1; -pub type DISPLAYCONFIG_ROTATION = ::std::os::raw::c_int; -pub const DISPLAYCONFIG_MODE_INFO_TYPE_DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE: - DISPLAYCONFIG_MODE_INFO_TYPE = 1; -pub const DISPLAYCONFIG_MODE_INFO_TYPE_DISPLAYCONFIG_MODE_INFO_TYPE_TARGET: - DISPLAYCONFIG_MODE_INFO_TYPE = 2; -pub const DISPLAYCONFIG_MODE_INFO_TYPE_DISPLAYCONFIG_MODE_INFO_TYPE_DESKTOP_IMAGE: - DISPLAYCONFIG_MODE_INFO_TYPE = 3; -pub const DISPLAYCONFIG_MODE_INFO_TYPE_DISPLAYCONFIG_MODE_INFO_TYPE_FORCE_UINT32: - DISPLAYCONFIG_MODE_INFO_TYPE = -1; -pub type DISPLAYCONFIG_MODE_INFO_TYPE = ::std::os::raw::c_int; -pub const DISPLAYCONFIG_PIXELFORMAT_DISPLAYCONFIG_PIXELFORMAT_8BPP: DISPLAYCONFIG_PIXELFORMAT = 1; -pub const DISPLAYCONFIG_PIXELFORMAT_DISPLAYCONFIG_PIXELFORMAT_16BPP: DISPLAYCONFIG_PIXELFORMAT = 2; -pub const DISPLAYCONFIG_PIXELFORMAT_DISPLAYCONFIG_PIXELFORMAT_24BPP: DISPLAYCONFIG_PIXELFORMAT = 3; -pub const DISPLAYCONFIG_PIXELFORMAT_DISPLAYCONFIG_PIXELFORMAT_32BPP: DISPLAYCONFIG_PIXELFORMAT = 4; -pub const DISPLAYCONFIG_PIXELFORMAT_DISPLAYCONFIG_PIXELFORMAT_NONGDI: DISPLAYCONFIG_PIXELFORMAT = 5; -pub const DISPLAYCONFIG_PIXELFORMAT_DISPLAYCONFIG_PIXELFORMAT_FORCE_UINT32: - DISPLAYCONFIG_PIXELFORMAT = -1; -pub type DISPLAYCONFIG_PIXELFORMAT = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DISPLAYCONFIG_SOURCE_MODE { - pub width: UINT32, - pub height: UINT32, - pub pixelFormat: DISPLAYCONFIG_PIXELFORMAT, - pub position: POINTL, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DISPLAYCONFIG_TARGET_MODE { - pub targetVideoSignalInfo: DISPLAYCONFIG_VIDEO_SIGNAL_INFO, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DISPLAYCONFIG_DESKTOP_IMAGE_INFO { - pub PathSourceSize: POINTL, - pub DesktopImageRegion: RECTL, - pub DesktopImageClip: RECTL, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DISPLAYCONFIG_MODE_INFO { - pub infoType: DISPLAYCONFIG_MODE_INFO_TYPE, - pub id: UINT32, - pub adapterId: LUID, - pub __bindgen_anon_1: DISPLAYCONFIG_MODE_INFO__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union DISPLAYCONFIG_MODE_INFO__bindgen_ty_1 { - pub targetMode: DISPLAYCONFIG_TARGET_MODE, - pub sourceMode: DISPLAYCONFIG_SOURCE_MODE, - pub desktopImageInfo: DISPLAYCONFIG_DESKTOP_IMAGE_INFO, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DISPLAYCONFIG_PATH_SOURCE_INFO { - pub adapterId: LUID, - pub id: UINT32, - pub __bindgen_anon_1: DISPLAYCONFIG_PATH_SOURCE_INFO__bindgen_ty_1, - pub statusFlags: UINT32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union DISPLAYCONFIG_PATH_SOURCE_INFO__bindgen_ty_1 { - pub modeInfoIdx: UINT32, - pub __bindgen_anon_1: DISPLAYCONFIG_PATH_SOURCE_INFO__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct DISPLAYCONFIG_PATH_SOURCE_INFO__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl DISPLAYCONFIG_PATH_SOURCE_INFO__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn cloneGroupId(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } - } - #[inline] - pub fn set_cloneGroupId(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 16u8, val as u64) - } - } - #[inline] - pub fn sourceModeInfoIdx(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } - } - #[inline] - pub fn set_sourceModeInfoIdx(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(16usize, 16u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - cloneGroupId: UINT32, - sourceModeInfoIdx: UINT32, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 16u8, { - let cloneGroupId: u32 = unsafe { ::std::mem::transmute(cloneGroupId) }; - cloneGroupId as u64 - }); - __bindgen_bitfield_unit.set(16usize, 16u8, { - let sourceModeInfoIdx: u32 = unsafe { ::std::mem::transmute(sourceModeInfoIdx) }; - sourceModeInfoIdx as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DISPLAYCONFIG_PATH_TARGET_INFO { - pub adapterId: LUID, - pub id: UINT32, - pub __bindgen_anon_1: DISPLAYCONFIG_PATH_TARGET_INFO__bindgen_ty_1, - pub outputTechnology: DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY, - pub rotation: DISPLAYCONFIG_ROTATION, - pub scaling: DISPLAYCONFIG_SCALING, - pub refreshRate: DISPLAYCONFIG_RATIONAL, - pub scanLineOrdering: DISPLAYCONFIG_SCANLINE_ORDERING, - pub targetAvailable: BOOL, - pub statusFlags: UINT32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union DISPLAYCONFIG_PATH_TARGET_INFO__bindgen_ty_1 { - pub modeInfoIdx: UINT32, - pub __bindgen_anon_1: DISPLAYCONFIG_PATH_TARGET_INFO__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct DISPLAYCONFIG_PATH_TARGET_INFO__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl DISPLAYCONFIG_PATH_TARGET_INFO__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn desktopModeInfoIdx(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) } - } - #[inline] - pub fn set_desktopModeInfoIdx(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 16u8, val as u64) - } - } - #[inline] - pub fn targetModeInfoIdx(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } - } - #[inline] - pub fn set_targetModeInfoIdx(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(16usize, 16u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - desktopModeInfoIdx: UINT32, - targetModeInfoIdx: UINT32, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 16u8, { - let desktopModeInfoIdx: u32 = unsafe { ::std::mem::transmute(desktopModeInfoIdx) }; - desktopModeInfoIdx as u64 - }); - __bindgen_bitfield_unit.set(16usize, 16u8, { - let targetModeInfoIdx: u32 = unsafe { ::std::mem::transmute(targetModeInfoIdx) }; - targetModeInfoIdx as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DISPLAYCONFIG_PATH_INFO { - pub sourceInfo: DISPLAYCONFIG_PATH_SOURCE_INFO, - pub targetInfo: DISPLAYCONFIG_PATH_TARGET_INFO, - pub flags: UINT32, -} -pub const DISPLAYCONFIG_TOPOLOGY_ID_DISPLAYCONFIG_TOPOLOGY_INTERNAL: DISPLAYCONFIG_TOPOLOGY_ID = 1; -pub const DISPLAYCONFIG_TOPOLOGY_ID_DISPLAYCONFIG_TOPOLOGY_CLONE: DISPLAYCONFIG_TOPOLOGY_ID = 2; -pub const DISPLAYCONFIG_TOPOLOGY_ID_DISPLAYCONFIG_TOPOLOGY_EXTEND: DISPLAYCONFIG_TOPOLOGY_ID = 4; -pub const DISPLAYCONFIG_TOPOLOGY_ID_DISPLAYCONFIG_TOPOLOGY_EXTERNAL: DISPLAYCONFIG_TOPOLOGY_ID = 8; -pub const DISPLAYCONFIG_TOPOLOGY_ID_DISPLAYCONFIG_TOPOLOGY_FORCE_UINT32: DISPLAYCONFIG_TOPOLOGY_ID = - -1; -pub type DISPLAYCONFIG_TOPOLOGY_ID = ::std::os::raw::c_int; -pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_SOURCE_NAME: - DISPLAYCONFIG_DEVICE_INFO_TYPE = 1; -pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_NAME: - DISPLAYCONFIG_DEVICE_INFO_TYPE = 2; -pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_PREFERRED_MODE: - DISPLAYCONFIG_DEVICE_INFO_TYPE = 3; -pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_ADAPTER_NAME: - DISPLAYCONFIG_DEVICE_INFO_TYPE = 4; -pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_SET_TARGET_PERSISTENCE: - DISPLAYCONFIG_DEVICE_INFO_TYPE = 5; -pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_BASE_TYPE: - DISPLAYCONFIG_DEVICE_INFO_TYPE = 6; -pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_SUPPORT_VIRTUAL_RESOLUTION : DISPLAYCONFIG_DEVICE_INFO_TYPE = 7 ; -pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_SET_SUPPORT_VIRTUAL_RESOLUTION : DISPLAYCONFIG_DEVICE_INFO_TYPE = 8 ; -pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_ADVANCED_COLOR_INFO: - DISPLAYCONFIG_DEVICE_INFO_TYPE = 9; -pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_SET_ADVANCED_COLOR_STATE: - DISPLAYCONFIG_DEVICE_INFO_TYPE = 10; -pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_SDR_WHITE_LEVEL: - DISPLAYCONFIG_DEVICE_INFO_TYPE = 11; -pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_GET_MONITOR_SPECIALIZATION: - DISPLAYCONFIG_DEVICE_INFO_TYPE = 12; -pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_SET_MONITOR_SPECIALIZATION: - DISPLAYCONFIG_DEVICE_INFO_TYPE = 13; -pub const DISPLAYCONFIG_DEVICE_INFO_TYPE_DISPLAYCONFIG_DEVICE_INFO_FORCE_UINT32: - DISPLAYCONFIG_DEVICE_INFO_TYPE = -1; -pub type DISPLAYCONFIG_DEVICE_INFO_TYPE = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DISPLAYCONFIG_DEVICE_INFO_HEADER { - pub type_: DISPLAYCONFIG_DEVICE_INFO_TYPE, - pub size: UINT32, - pub adapterId: LUID, - pub id: UINT32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DISPLAYCONFIG_SOURCE_DEVICE_NAME { - pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, - pub viewGdiDeviceName: [WCHAR; 32usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS { - pub __bindgen_anon_1: DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS__bindgen_ty_1 { - pub __bindgen_anon_1: DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS__bindgen_ty_1__bindgen_ty_1, - pub value: UINT32, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn friendlyNameFromEdid(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_friendlyNameFromEdid(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn friendlyNameForced(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_friendlyNameForced(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn edidIdsValid(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_edidIdsValid(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn reserved(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } - } - #[inline] - pub fn set_reserved(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 29u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - friendlyNameFromEdid: UINT32, - friendlyNameForced: UINT32, - edidIdsValid: UINT32, - reserved: UINT32, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let friendlyNameFromEdid: u32 = unsafe { ::std::mem::transmute(friendlyNameFromEdid) }; - friendlyNameFromEdid as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let friendlyNameForced: u32 = unsafe { ::std::mem::transmute(friendlyNameForced) }; - friendlyNameForced as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let edidIdsValid: u32 = unsafe { ::std::mem::transmute(edidIdsValid) }; - edidIdsValid as u64 - }); - __bindgen_bitfield_unit.set(3usize, 29u8, { - let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; - reserved as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DISPLAYCONFIG_TARGET_DEVICE_NAME { - pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, - pub flags: DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS, - pub outputTechnology: DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY, - pub edidManufactureId: UINT16, - pub edidProductCodeId: UINT16, - pub connectorInstance: UINT32, - pub monitorFriendlyDeviceName: [WCHAR; 64usize], - pub monitorDevicePath: [WCHAR; 128usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DISPLAYCONFIG_TARGET_PREFERRED_MODE { - pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, - pub width: UINT32, - pub height: UINT32, - pub targetMode: DISPLAYCONFIG_TARGET_MODE, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DISPLAYCONFIG_ADAPTER_NAME { - pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, - pub adapterDevicePath: [WCHAR; 128usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DISPLAYCONFIG_TARGET_BASE_TYPE { - pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, - pub baseOutputTechnology: DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DISPLAYCONFIG_SET_TARGET_PERSISTENCE { - pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, - pub __bindgen_anon_1: DISPLAYCONFIG_SET_TARGET_PERSISTENCE__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union DISPLAYCONFIG_SET_TARGET_PERSISTENCE__bindgen_ty_1 { - pub __bindgen_anon_1: DISPLAYCONFIG_SET_TARGET_PERSISTENCE__bindgen_ty_1__bindgen_ty_1, - pub value: UINT32, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct DISPLAYCONFIG_SET_TARGET_PERSISTENCE__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl DISPLAYCONFIG_SET_TARGET_PERSISTENCE__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn bootPersistenceOn(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_bootPersistenceOn(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn reserved(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } - } - #[inline] - pub fn set_reserved(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 31u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - bootPersistenceOn: UINT32, - reserved: UINT32, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let bootPersistenceOn: u32 = unsafe { ::std::mem::transmute(bootPersistenceOn) }; - bootPersistenceOn as u64 - }); - __bindgen_bitfield_unit.set(1usize, 31u8, { - let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; - reserved as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION { - pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, - pub __bindgen_anon_1: DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION__bindgen_ty_1 { - pub __bindgen_anon_1: DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION__bindgen_ty_1__bindgen_ty_1, - pub value: UINT32, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn disableMonitorVirtualResolution(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_disableMonitorVirtualResolution(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn reserved(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } - } - #[inline] - pub fn set_reserved(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 31u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - disableMonitorVirtualResolution: UINT32, - reserved: UINT32, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let disableMonitorVirtualResolution: u32 = - unsafe { ::std::mem::transmute(disableMonitorVirtualResolution) }; - disableMonitorVirtualResolution as u64 - }); - __bindgen_bitfield_unit.set(1usize, 31u8, { - let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; - reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub const _DISPLAYCONFIG_COLOR_ENCODING_DISPLAYCONFIG_COLOR_ENCODING_RGB: - _DISPLAYCONFIG_COLOR_ENCODING = 0; -pub const _DISPLAYCONFIG_COLOR_ENCODING_DISPLAYCONFIG_COLOR_ENCODING_YCBCR444: - _DISPLAYCONFIG_COLOR_ENCODING = 1; -pub const _DISPLAYCONFIG_COLOR_ENCODING_DISPLAYCONFIG_COLOR_ENCODING_YCBCR422: - _DISPLAYCONFIG_COLOR_ENCODING = 2; -pub const _DISPLAYCONFIG_COLOR_ENCODING_DISPLAYCONFIG_COLOR_ENCODING_YCBCR420: - _DISPLAYCONFIG_COLOR_ENCODING = 3; -pub const _DISPLAYCONFIG_COLOR_ENCODING_DISPLAYCONFIG_COLOR_ENCODING_INTENSITY: - _DISPLAYCONFIG_COLOR_ENCODING = 4; -pub const _DISPLAYCONFIG_COLOR_ENCODING_DISPLAYCONFIG_COLOR_ENCODING_FORCE_UINT32: - _DISPLAYCONFIG_COLOR_ENCODING = -1; -pub type _DISPLAYCONFIG_COLOR_ENCODING = ::std::os::raw::c_int; -pub use self::_DISPLAYCONFIG_COLOR_ENCODING as DISPLAYCONFIG_COLOR_ENCODING; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO { - pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, - pub __bindgen_anon_1: _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO__bindgen_ty_1, - pub colorEncoding: DISPLAYCONFIG_COLOR_ENCODING, - pub bitsPerColorChannel: UINT32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO__bindgen_ty_1 { - pub __bindgen_anon_1: _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO__bindgen_ty_1__bindgen_ty_1, - pub value: UINT32, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn advancedColorSupported(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_advancedColorSupported(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn advancedColorEnabled(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_advancedColorEnabled(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn wideColorEnforced(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_wideColorEnforced(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn advancedColorForceDisabled(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_advancedColorForceDisabled(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn reserved(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) } - } - #[inline] - pub fn set_reserved(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 28u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - advancedColorSupported: UINT32, - advancedColorEnabled: UINT32, - wideColorEnforced: UINT32, - advancedColorForceDisabled: UINT32, - reserved: UINT32, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let advancedColorSupported: u32 = - unsafe { ::std::mem::transmute(advancedColorSupported) }; - advancedColorSupported as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let advancedColorEnabled: u32 = unsafe { ::std::mem::transmute(advancedColorEnabled) }; - advancedColorEnabled as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let wideColorEnforced: u32 = unsafe { ::std::mem::transmute(wideColorEnforced) }; - wideColorEnforced as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let advancedColorForceDisabled: u32 = - unsafe { ::std::mem::transmute(advancedColorForceDisabled) }; - advancedColorForceDisabled as u64 - }); - __bindgen_bitfield_unit.set(4usize, 28u8, { - let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; - reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO = _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE { - pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, - pub __bindgen_anon_1: _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE__bindgen_ty_1 { - pub __bindgen_anon_1: _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE__bindgen_ty_1__bindgen_ty_1, - pub value: UINT32, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn enableAdvancedColor(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_enableAdvancedColor(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn reserved(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } - } - #[inline] - pub fn set_reserved(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 31u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - enableAdvancedColor: UINT32, - reserved: UINT32, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let enableAdvancedColor: u32 = unsafe { ::std::mem::transmute(enableAdvancedColor) }; - enableAdvancedColor as u64 - }); - __bindgen_bitfield_unit.set(1usize, 31u8, { - let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; - reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE = _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISPLAYCONFIG_SDR_WHITE_LEVEL { - pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, - pub SDRWhiteLevel: ULONG, -} -pub type DISPLAYCONFIG_SDR_WHITE_LEVEL = _DISPLAYCONFIG_SDR_WHITE_LEVEL; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION { - pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, - pub __bindgen_anon_1: _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION__bindgen_ty_1 { - pub __bindgen_anon_1: _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION__bindgen_ty_1__bindgen_ty_1, - pub value: UINT32, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn isSpecializationEnabled(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_isSpecializationEnabled(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn isSpecializationAvailableForMonitor(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_isSpecializationAvailableForMonitor(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn isSpecializationAvailableForSystem(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_isSpecializationAvailableForSystem(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn reserved(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } - } - #[inline] - pub fn set_reserved(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 29u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - isSpecializationEnabled: UINT32, - isSpecializationAvailableForMonitor: UINT32, - isSpecializationAvailableForSystem: UINT32, - reserved: UINT32, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let isSpecializationEnabled: u32 = - unsafe { ::std::mem::transmute(isSpecializationEnabled) }; - isSpecializationEnabled as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let isSpecializationAvailableForMonitor: u32 = - unsafe { ::std::mem::transmute(isSpecializationAvailableForMonitor) }; - isSpecializationAvailableForMonitor as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let isSpecializationAvailableForSystem: u32 = - unsafe { ::std::mem::transmute(isSpecializationAvailableForSystem) }; - isSpecializationAvailableForSystem as u64 - }); - __bindgen_bitfield_unit.set(3usize, 29u8, { - let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; - reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION = _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION { - pub header: DISPLAYCONFIG_DEVICE_INFO_HEADER, - pub __bindgen_anon_1: _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION__bindgen_ty_1, - pub specializationType: GUID, - pub specializationSubType: GUID, - pub specializationApplicationName: [WCHAR; 128usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION__bindgen_ty_1 { - pub __bindgen_anon_1: _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION__bindgen_ty_1__bindgen_ty_1, - pub value: UINT32, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn isSpecializationEnabled(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_isSpecializationEnabled(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn reserved(&self) -> UINT32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } - } - #[inline] - pub fn set_reserved(&mut self, val: UINT32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 31u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - isSpecializationEnabled: UINT32, - reserved: UINT32, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let isSpecializationEnabled: u32 = - unsafe { ::std::mem::transmute(isSpecializationEnabled) }; - isSpecializationEnabled as u64 - }); - __bindgen_bitfield_unit.set(1usize, 31u8, { - let reserved: u32 = unsafe { ::std::mem::transmute(reserved) }; - reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION = _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RGNDATAHEADER { - pub dwSize: DWORD, - pub iType: DWORD, - pub nCount: DWORD, - pub nRgnSize: DWORD, - pub rcBound: RECT, -} -pub type RGNDATAHEADER = _RGNDATAHEADER; -pub type PRGNDATAHEADER = *mut _RGNDATAHEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RGNDATA { - pub rdh: RGNDATAHEADER, - pub Buffer: [::std::os::raw::c_char; 1usize], -} -pub type RGNDATA = _RGNDATA; -pub type PRGNDATA = *mut _RGNDATA; -pub type NPRGNDATA = *mut _RGNDATA; -pub type LPRGNDATA = *mut _RGNDATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ABC { - pub abcA: ::std::os::raw::c_int, - pub abcB: UINT, - pub abcC: ::std::os::raw::c_int, -} -pub type ABC = _ABC; -pub type PABC = *mut _ABC; -pub type NPABC = *mut _ABC; -pub type LPABC = *mut _ABC; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ABCFLOAT { - pub abcfA: FLOAT, - pub abcfB: FLOAT, - pub abcfC: FLOAT, -} -pub type ABCFLOAT = _ABCFLOAT; -pub type PABCFLOAT = *mut _ABCFLOAT; -pub type NPABCFLOAT = *mut _ABCFLOAT; -pub type LPABCFLOAT = *mut _ABCFLOAT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OUTLINETEXTMETRICA { - pub otmSize: UINT, - pub otmTextMetrics: TEXTMETRICA, - pub otmFiller: BYTE, - pub otmPanoseNumber: PANOSE, - pub otmfsSelection: UINT, - pub otmfsType: UINT, - pub otmsCharSlopeRise: ::std::os::raw::c_int, - pub otmsCharSlopeRun: ::std::os::raw::c_int, - pub otmItalicAngle: ::std::os::raw::c_int, - pub otmEMSquare: UINT, - pub otmAscent: ::std::os::raw::c_int, - pub otmDescent: ::std::os::raw::c_int, - pub otmLineGap: UINT, - pub otmsCapEmHeight: UINT, - pub otmsXHeight: UINT, - pub otmrcFontBox: RECT, - pub otmMacAscent: ::std::os::raw::c_int, - pub otmMacDescent: ::std::os::raw::c_int, - pub otmMacLineGap: UINT, - pub otmusMinimumPPEM: UINT, - pub otmptSubscriptSize: POINT, - pub otmptSubscriptOffset: POINT, - pub otmptSuperscriptSize: POINT, - pub otmptSuperscriptOffset: POINT, - pub otmsStrikeoutSize: UINT, - pub otmsStrikeoutPosition: ::std::os::raw::c_int, - pub otmsUnderscoreSize: ::std::os::raw::c_int, - pub otmsUnderscorePosition: ::std::os::raw::c_int, - pub otmpFamilyName: PSTR, - pub otmpFaceName: PSTR, - pub otmpStyleName: PSTR, - pub otmpFullName: PSTR, -} -pub type OUTLINETEXTMETRICA = _OUTLINETEXTMETRICA; -pub type POUTLINETEXTMETRICA = *mut _OUTLINETEXTMETRICA; -pub type NPOUTLINETEXTMETRICA = *mut _OUTLINETEXTMETRICA; -pub type LPOUTLINETEXTMETRICA = *mut _OUTLINETEXTMETRICA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OUTLINETEXTMETRICW { - pub otmSize: UINT, - pub otmTextMetrics: TEXTMETRICW, - pub otmFiller: BYTE, - pub otmPanoseNumber: PANOSE, - pub otmfsSelection: UINT, - pub otmfsType: UINT, - pub otmsCharSlopeRise: ::std::os::raw::c_int, - pub otmsCharSlopeRun: ::std::os::raw::c_int, - pub otmItalicAngle: ::std::os::raw::c_int, - pub otmEMSquare: UINT, - pub otmAscent: ::std::os::raw::c_int, - pub otmDescent: ::std::os::raw::c_int, - pub otmLineGap: UINT, - pub otmsCapEmHeight: UINT, - pub otmsXHeight: UINT, - pub otmrcFontBox: RECT, - pub otmMacAscent: ::std::os::raw::c_int, - pub otmMacDescent: ::std::os::raw::c_int, - pub otmMacLineGap: UINT, - pub otmusMinimumPPEM: UINT, - pub otmptSubscriptSize: POINT, - pub otmptSubscriptOffset: POINT, - pub otmptSuperscriptSize: POINT, - pub otmptSuperscriptOffset: POINT, - pub otmsStrikeoutSize: UINT, - pub otmsStrikeoutPosition: ::std::os::raw::c_int, - pub otmsUnderscoreSize: ::std::os::raw::c_int, - pub otmsUnderscorePosition: ::std::os::raw::c_int, - pub otmpFamilyName: PSTR, - pub otmpFaceName: PSTR, - pub otmpStyleName: PSTR, - pub otmpFullName: PSTR, -} -pub type OUTLINETEXTMETRICW = _OUTLINETEXTMETRICW; -pub type POUTLINETEXTMETRICW = *mut _OUTLINETEXTMETRICW; -pub type NPOUTLINETEXTMETRICW = *mut _OUTLINETEXTMETRICW; -pub type LPOUTLINETEXTMETRICW = *mut _OUTLINETEXTMETRICW; -pub type OUTLINETEXTMETRIC = OUTLINETEXTMETRICA; -pub type POUTLINETEXTMETRIC = POUTLINETEXTMETRICA; -pub type NPOUTLINETEXTMETRIC = NPOUTLINETEXTMETRICA; -pub type LPOUTLINETEXTMETRIC = LPOUTLINETEXTMETRICA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPOLYTEXTA { - pub x: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, - pub n: UINT, - pub lpstr: LPCSTR, - pub uiFlags: UINT, - pub rcl: RECT, - pub pdx: *mut ::std::os::raw::c_int, -} -pub type POLYTEXTA = tagPOLYTEXTA; -pub type PPOLYTEXTA = *mut tagPOLYTEXTA; -pub type NPPOLYTEXTA = *mut tagPOLYTEXTA; -pub type LPPOLYTEXTA = *mut tagPOLYTEXTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPOLYTEXTW { - pub x: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, - pub n: UINT, - pub lpstr: LPCWSTR, - pub uiFlags: UINT, - pub rcl: RECT, - pub pdx: *mut ::std::os::raw::c_int, -} -pub type POLYTEXTW = tagPOLYTEXTW; -pub type PPOLYTEXTW = *mut tagPOLYTEXTW; -pub type NPPOLYTEXTW = *mut tagPOLYTEXTW; -pub type LPPOLYTEXTW = *mut tagPOLYTEXTW; -pub type POLYTEXT = POLYTEXTA; -pub type PPOLYTEXT = PPOLYTEXTA; -pub type NPPOLYTEXT = NPPOLYTEXTA; -pub type LPPOLYTEXT = LPPOLYTEXTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FIXED { - pub fract: WORD, - pub value: ::std::os::raw::c_short, -} -pub type FIXED = _FIXED; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MAT2 { - pub eM11: FIXED, - pub eM12: FIXED, - pub eM21: FIXED, - pub eM22: FIXED, -} -pub type MAT2 = _MAT2; -pub type LPMAT2 = *mut _MAT2; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _GLYPHMETRICS { - pub gmBlackBoxX: UINT, - pub gmBlackBoxY: UINT, - pub gmptGlyphOrigin: POINT, - pub gmCellIncX: ::std::os::raw::c_short, - pub gmCellIncY: ::std::os::raw::c_short, -} -pub type GLYPHMETRICS = _GLYPHMETRICS; -pub type LPGLYPHMETRICS = *mut _GLYPHMETRICS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPOINTFX { - pub x: FIXED, - pub y: FIXED, -} -pub type POINTFX = tagPOINTFX; -pub type LPPOINTFX = *mut tagPOINTFX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagTTPOLYCURVE { - pub wType: WORD, - pub cpfx: WORD, - pub apfx: [POINTFX; 1usize], -} -pub type TTPOLYCURVE = tagTTPOLYCURVE; -pub type LPTTPOLYCURVE = *mut tagTTPOLYCURVE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagTTPOLYGONHEADER { - pub cb: DWORD, - pub dwType: DWORD, - pub pfxStart: POINTFX, -} -pub type TTPOLYGONHEADER = tagTTPOLYGONHEADER; -pub type LPTTPOLYGONHEADER = *mut tagTTPOLYGONHEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagGCP_RESULTSA { - pub lStructSize: DWORD, - pub lpOutString: LPSTR, - pub lpOrder: *mut UINT, - pub lpDx: *mut ::std::os::raw::c_int, - pub lpCaretPos: *mut ::std::os::raw::c_int, - pub lpClass: LPSTR, - pub lpGlyphs: LPWSTR, - pub nGlyphs: UINT, - pub nMaxFit: ::std::os::raw::c_int, -} -pub type GCP_RESULTSA = tagGCP_RESULTSA; -pub type LPGCP_RESULTSA = *mut tagGCP_RESULTSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagGCP_RESULTSW { - pub lStructSize: DWORD, - pub lpOutString: LPWSTR, - pub lpOrder: *mut UINT, - pub lpDx: *mut ::std::os::raw::c_int, - pub lpCaretPos: *mut ::std::os::raw::c_int, - pub lpClass: LPSTR, - pub lpGlyphs: LPWSTR, - pub nGlyphs: UINT, - pub nMaxFit: ::std::os::raw::c_int, -} -pub type GCP_RESULTSW = tagGCP_RESULTSW; -pub type LPGCP_RESULTSW = *mut tagGCP_RESULTSW; -pub type GCP_RESULTS = GCP_RESULTSA; -pub type LPGCP_RESULTS = LPGCP_RESULTSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RASTERIZER_STATUS { - pub nSize: ::std::os::raw::c_short, - pub wFlags: ::std::os::raw::c_short, - pub nLanguageID: ::std::os::raw::c_short, -} -pub type RASTERIZER_STATUS = _RASTERIZER_STATUS; -pub type LPRASTERIZER_STATUS = *mut _RASTERIZER_STATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPIXELFORMATDESCRIPTOR { - pub nSize: WORD, - pub nVersion: WORD, - pub dwFlags: DWORD, - pub iPixelType: BYTE, - pub cColorBits: BYTE, - pub cRedBits: BYTE, - pub cRedShift: BYTE, - pub cGreenBits: BYTE, - pub cGreenShift: BYTE, - pub cBlueBits: BYTE, - pub cBlueShift: BYTE, - pub cAlphaBits: BYTE, - pub cAlphaShift: BYTE, - pub cAccumBits: BYTE, - pub cAccumRedBits: BYTE, - pub cAccumGreenBits: BYTE, - pub cAccumBlueBits: BYTE, - pub cAccumAlphaBits: BYTE, - pub cDepthBits: BYTE, - pub cStencilBits: BYTE, - pub cAuxBuffers: BYTE, - pub iLayerType: BYTE, - pub bReserved: BYTE, - pub dwLayerMask: DWORD, - pub dwVisibleMask: DWORD, - pub dwDamageMask: DWORD, -} -pub type PIXELFORMATDESCRIPTOR = tagPIXELFORMATDESCRIPTOR; -pub type PPIXELFORMATDESCRIPTOR = *mut tagPIXELFORMATDESCRIPTOR; -pub type LPPIXELFORMATDESCRIPTOR = *mut tagPIXELFORMATDESCRIPTOR; -pub type OLDFONTENUMPROCA = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const LOGFONTA, - arg2: *const TEXTMETRICA, - arg3: DWORD, - arg4: LPARAM, - ) -> ::std::os::raw::c_int, ->; -pub type OLDFONTENUMPROCW = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const LOGFONTW, - arg2: *const TEXTMETRICW, - arg3: DWORD, - arg4: LPARAM, - ) -> ::std::os::raw::c_int, ->; -pub type FONTENUMPROCA = OLDFONTENUMPROCA; -pub type FONTENUMPROCW = OLDFONTENUMPROCW; -pub type FONTENUMPROC = FONTENUMPROCA; -pub type GOBJENUMPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: LPVOID, arg2: LPARAM) -> ::std::os::raw::c_int, ->; -pub type LINEDDAPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int, arg3: LPARAM), ->; -extern "C" { - pub fn AddFontResourceA(arg1: LPCSTR) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn AddFontResourceW(arg1: LPCWSTR) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn AnimatePalette( - hPal: HPALETTE, - iStartIndex: UINT, - cEntries: UINT, - ppe: *const PALETTEENTRY, - ) -> BOOL; -} -extern "C" { - pub fn Arc( - hdc: HDC, - x1: ::std::os::raw::c_int, - y1: ::std::os::raw::c_int, - x2: ::std::os::raw::c_int, - y2: ::std::os::raw::c_int, - x3: ::std::os::raw::c_int, - y3: ::std::os::raw::c_int, - x4: ::std::os::raw::c_int, - y4: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn BitBlt( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - cx: ::std::os::raw::c_int, - cy: ::std::os::raw::c_int, - hdcSrc: HDC, - x1: ::std::os::raw::c_int, - y1: ::std::os::raw::c_int, - rop: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CancelDC(hdc: HDC) -> BOOL; -} -extern "C" { - pub fn Chord( - hdc: HDC, - x1: ::std::os::raw::c_int, - y1: ::std::os::raw::c_int, - x2: ::std::os::raw::c_int, - y2: ::std::os::raw::c_int, - x3: ::std::os::raw::c_int, - y3: ::std::os::raw::c_int, - x4: ::std::os::raw::c_int, - y4: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn ChoosePixelFormat(hdc: HDC, ppfd: *const PIXELFORMATDESCRIPTOR) - -> ::std::os::raw::c_int; -} -extern "C" { - pub fn CloseMetaFile(hdc: HDC) -> HMETAFILE; -} -extern "C" { - pub fn CombineRgn( - hrgnDst: HRGN, - hrgnSrc1: HRGN, - hrgnSrc2: HRGN, - iMode: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn CopyMetaFileA(arg1: HMETAFILE, arg2: LPCSTR) -> HMETAFILE; -} -extern "C" { - pub fn CopyMetaFileW(arg1: HMETAFILE, arg2: LPCWSTR) -> HMETAFILE; -} -extern "C" { - pub fn CreateBitmap( - nWidth: ::std::os::raw::c_int, - nHeight: ::std::os::raw::c_int, - nPlanes: UINT, - nBitCount: UINT, - lpBits: *const ::std::os::raw::c_void, - ) -> HBITMAP; -} -extern "C" { - pub fn CreateBitmapIndirect(pbm: *const BITMAP) -> HBITMAP; -} -extern "C" { - pub fn CreateBrushIndirect(plbrush: *const LOGBRUSH) -> HBRUSH; -} -extern "C" { - pub fn CreateCompatibleBitmap( - hdc: HDC, - cx: ::std::os::raw::c_int, - cy: ::std::os::raw::c_int, - ) -> HBITMAP; -} -extern "C" { - pub fn CreateDiscardableBitmap( - hdc: HDC, - cx: ::std::os::raw::c_int, - cy: ::std::os::raw::c_int, - ) -> HBITMAP; -} -extern "C" { - pub fn CreateCompatibleDC(hdc: HDC) -> HDC; -} -extern "C" { - pub fn CreateDCA( - pwszDriver: LPCSTR, - pwszDevice: LPCSTR, - pszPort: LPCSTR, - pdm: *const DEVMODEA, - ) -> HDC; -} -extern "C" { - pub fn CreateDCW( - pwszDriver: LPCWSTR, - pwszDevice: LPCWSTR, - pszPort: LPCWSTR, - pdm: *const DEVMODEW, - ) -> HDC; -} -extern "C" { - pub fn CreateDIBitmap( - hdc: HDC, - pbmih: *const BITMAPINFOHEADER, - flInit: DWORD, - pjBits: *const ::std::os::raw::c_void, - pbmi: *const BITMAPINFO, - iUsage: UINT, - ) -> HBITMAP; -} -extern "C" { - pub fn CreateDIBPatternBrush(h: HGLOBAL, iUsage: UINT) -> HBRUSH; -} -extern "C" { - pub fn CreateDIBPatternBrushPt( - lpPackedDIB: *const ::std::os::raw::c_void, - iUsage: UINT, - ) -> HBRUSH; -} -extern "C" { - pub fn CreateEllipticRgn( - x1: ::std::os::raw::c_int, - y1: ::std::os::raw::c_int, - x2: ::std::os::raw::c_int, - y2: ::std::os::raw::c_int, - ) -> HRGN; -} -extern "C" { - pub fn CreateEllipticRgnIndirect(lprect: *const RECT) -> HRGN; -} -extern "C" { - pub fn CreateFontIndirectA(lplf: *const LOGFONTA) -> HFONT; -} -extern "C" { - pub fn CreateFontIndirectW(lplf: *const LOGFONTW) -> HFONT; -} -extern "C" { - pub fn CreateFontA( - cHeight: ::std::os::raw::c_int, - cWidth: ::std::os::raw::c_int, - cEscapement: ::std::os::raw::c_int, - cOrientation: ::std::os::raw::c_int, - cWeight: ::std::os::raw::c_int, - bItalic: DWORD, - bUnderline: DWORD, - bStrikeOut: DWORD, - iCharSet: DWORD, - iOutPrecision: DWORD, - iClipPrecision: DWORD, - iQuality: DWORD, - iPitchAndFamily: DWORD, - pszFaceName: LPCSTR, - ) -> HFONT; -} -extern "C" { - pub fn CreateFontW( - cHeight: ::std::os::raw::c_int, - cWidth: ::std::os::raw::c_int, - cEscapement: ::std::os::raw::c_int, - cOrientation: ::std::os::raw::c_int, - cWeight: ::std::os::raw::c_int, - bItalic: DWORD, - bUnderline: DWORD, - bStrikeOut: DWORD, - iCharSet: DWORD, - iOutPrecision: DWORD, - iClipPrecision: DWORD, - iQuality: DWORD, - iPitchAndFamily: DWORD, - pszFaceName: LPCWSTR, - ) -> HFONT; -} -extern "C" { - pub fn CreateHatchBrush(iHatch: ::std::os::raw::c_int, color: COLORREF) -> HBRUSH; -} -extern "C" { - pub fn CreateICA( - pszDriver: LPCSTR, - pszDevice: LPCSTR, - pszPort: LPCSTR, - pdm: *const DEVMODEA, - ) -> HDC; -} -extern "C" { - pub fn CreateICW( - pszDriver: LPCWSTR, - pszDevice: LPCWSTR, - pszPort: LPCWSTR, - pdm: *const DEVMODEW, - ) -> HDC; -} -extern "C" { - pub fn CreateMetaFileA(pszFile: LPCSTR) -> HDC; -} -extern "C" { - pub fn CreateMetaFileW(pszFile: LPCWSTR) -> HDC; -} -extern "C" { - pub fn CreatePalette(plpal: *const LOGPALETTE) -> HPALETTE; -} -extern "C" { - pub fn CreatePen( - iStyle: ::std::os::raw::c_int, - cWidth: ::std::os::raw::c_int, - color: COLORREF, - ) -> HPEN; -} -extern "C" { - pub fn CreatePenIndirect(plpen: *const LOGPEN) -> HPEN; -} -extern "C" { - pub fn CreatePolyPolygonRgn( - pptl: *const POINT, - pc: *const INT, - cPoly: ::std::os::raw::c_int, - iMode: ::std::os::raw::c_int, - ) -> HRGN; -} -extern "C" { - pub fn CreatePatternBrush(hbm: HBITMAP) -> HBRUSH; -} -extern "C" { - pub fn CreateRectRgn( - x1: ::std::os::raw::c_int, - y1: ::std::os::raw::c_int, - x2: ::std::os::raw::c_int, - y2: ::std::os::raw::c_int, - ) -> HRGN; -} -extern "C" { - pub fn CreateRectRgnIndirect(lprect: *const RECT) -> HRGN; -} -extern "C" { - pub fn CreateRoundRectRgn( - x1: ::std::os::raw::c_int, - y1: ::std::os::raw::c_int, - x2: ::std::os::raw::c_int, - y2: ::std::os::raw::c_int, - w: ::std::os::raw::c_int, - h: ::std::os::raw::c_int, - ) -> HRGN; -} -extern "C" { - pub fn CreateScalableFontResourceA( - fdwHidden: DWORD, - lpszFont: LPCSTR, - lpszFile: LPCSTR, - lpszPath: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn CreateScalableFontResourceW( - fdwHidden: DWORD, - lpszFont: LPCWSTR, - lpszFile: LPCWSTR, - lpszPath: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn CreateSolidBrush(color: COLORREF) -> HBRUSH; -} -extern "C" { - pub fn DeleteDC(hdc: HDC) -> BOOL; -} -extern "C" { - pub fn DeleteMetaFile(hmf: HMETAFILE) -> BOOL; -} -extern "C" { - pub fn DeleteObject(ho: HGDIOBJ) -> BOOL; -} -extern "C" { - pub fn DescribePixelFormat( - hdc: HDC, - iPixelFormat: ::std::os::raw::c_int, - nBytes: UINT, - ppfd: LPPIXELFORMATDESCRIPTOR, - ) -> ::std::os::raw::c_int; -} -pub type LPFNDEVMODE = ::std::option::Option< - unsafe extern "C" fn( - arg1: HWND, - arg2: HMODULE, - arg3: LPDEVMODE, - arg4: LPSTR, - arg5: LPSTR, - arg6: LPDEVMODE, - arg7: LPSTR, - arg8: UINT, - ) -> UINT, ->; -pub type LPFNDEVCAPS = ::std::option::Option< - unsafe extern "C" fn( - arg1: LPSTR, - arg2: LPSTR, - arg3: UINT, - arg4: LPSTR, - arg5: LPDEVMODE, - ) -> DWORD, ->; -extern "C" { - pub fn DeviceCapabilitiesA( - pDevice: LPCSTR, - pPort: LPCSTR, - fwCapability: WORD, - pOutput: LPSTR, - pDevMode: *const DEVMODEA, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn DeviceCapabilitiesW( - pDevice: LPCWSTR, - pPort: LPCWSTR, - fwCapability: WORD, - pOutput: LPWSTR, - pDevMode: *const DEVMODEW, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn DrawEscape( - hdc: HDC, - iEscape: ::std::os::raw::c_int, - cjIn: ::std::os::raw::c_int, - lpIn: LPCSTR, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn Ellipse( - hdc: HDC, - left: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - right: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn EnumFontFamiliesExA( - hdc: HDC, - lpLogfont: LPLOGFONTA, - lpProc: FONTENUMPROCA, - lParam: LPARAM, - dwFlags: DWORD, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EnumFontFamiliesExW( - hdc: HDC, - lpLogfont: LPLOGFONTW, - lpProc: FONTENUMPROCW, - lParam: LPARAM, - dwFlags: DWORD, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EnumFontFamiliesA( - hdc: HDC, - lpLogfont: LPCSTR, - lpProc: FONTENUMPROCA, - lParam: LPARAM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EnumFontFamiliesW( - hdc: HDC, - lpLogfont: LPCWSTR, - lpProc: FONTENUMPROCW, - lParam: LPARAM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EnumFontsA( - hdc: HDC, - lpLogfont: LPCSTR, - lpProc: FONTENUMPROCA, - lParam: LPARAM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EnumFontsW( - hdc: HDC, - lpLogfont: LPCWSTR, - lpProc: FONTENUMPROCW, - lParam: LPARAM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EnumObjects( - hdc: HDC, - nType: ::std::os::raw::c_int, - lpFunc: GOBJENUMPROC, - lParam: LPARAM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EqualRgn(hrgn1: HRGN, hrgn2: HRGN) -> BOOL; -} -extern "C" { - pub fn Escape( - hdc: HDC, - iEscape: ::std::os::raw::c_int, - cjIn: ::std::os::raw::c_int, - pvIn: LPCSTR, - pvOut: LPVOID, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ExtEscape( - hdc: HDC, - iEscape: ::std::os::raw::c_int, - cjInput: ::std::os::raw::c_int, - lpInData: LPCSTR, - cjOutput: ::std::os::raw::c_int, - lpOutData: LPSTR, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ExcludeClipRect( - hdc: HDC, - left: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - right: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ExtCreateRegion(lpx: *const XFORM, nCount: DWORD, lpData: *const RGNDATA) -> HRGN; -} -extern "C" { - pub fn ExtFloodFill( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - color: COLORREF, - type_: UINT, - ) -> BOOL; -} -extern "C" { - pub fn FillRgn(hdc: HDC, hrgn: HRGN, hbr: HBRUSH) -> BOOL; -} -extern "C" { - pub fn FloodFill( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - color: COLORREF, - ) -> BOOL; -} -extern "C" { - pub fn FrameRgn( - hdc: HDC, - hrgn: HRGN, - hbr: HBRUSH, - w: ::std::os::raw::c_int, - h: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn GetROP2(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetAspectRatioFilterEx(hdc: HDC, lpsize: LPSIZE) -> BOOL; -} -extern "C" { - pub fn GetBkColor(hdc: HDC) -> COLORREF; -} -extern "C" { - pub fn GetDCBrushColor(hdc: HDC) -> COLORREF; -} -extern "C" { - pub fn GetDCPenColor(hdc: HDC) -> COLORREF; -} -extern "C" { - pub fn GetBkMode(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetBitmapBits(hbit: HBITMAP, cb: LONG, lpvBits: LPVOID) -> LONG; -} -extern "C" { - pub fn GetBitmapDimensionEx(hbit: HBITMAP, lpsize: LPSIZE) -> BOOL; -} -extern "C" { - pub fn GetBoundsRect(hdc: HDC, lprect: LPRECT, flags: UINT) -> UINT; -} -extern "C" { - pub fn GetBrushOrgEx(hdc: HDC, lppt: LPPOINT) -> BOOL; -} -extern "C" { - pub fn GetCharWidthA(hdc: HDC, iFirst: UINT, iLast: UINT, lpBuffer: LPINT) -> BOOL; -} -extern "C" { - pub fn GetCharWidthW(hdc: HDC, iFirst: UINT, iLast: UINT, lpBuffer: LPINT) -> BOOL; -} -extern "C" { - pub fn GetCharWidth32A(hdc: HDC, iFirst: UINT, iLast: UINT, lpBuffer: LPINT) -> BOOL; -} -extern "C" { - pub fn GetCharWidth32W(hdc: HDC, iFirst: UINT, iLast: UINT, lpBuffer: LPINT) -> BOOL; -} -extern "C" { - pub fn GetCharWidthFloatA(hdc: HDC, iFirst: UINT, iLast: UINT, lpBuffer: PFLOAT) -> BOOL; -} -extern "C" { - pub fn GetCharWidthFloatW(hdc: HDC, iFirst: UINT, iLast: UINT, lpBuffer: PFLOAT) -> BOOL; -} -extern "C" { - pub fn GetCharABCWidthsA(hdc: HDC, wFirst: UINT, wLast: UINT, lpABC: LPABC) -> BOOL; -} -extern "C" { - pub fn GetCharABCWidthsW(hdc: HDC, wFirst: UINT, wLast: UINT, lpABC: LPABC) -> BOOL; -} -extern "C" { - pub fn GetCharABCWidthsFloatA(hdc: HDC, iFirst: UINT, iLast: UINT, lpABC: LPABCFLOAT) -> BOOL; -} -extern "C" { - pub fn GetCharABCWidthsFloatW(hdc: HDC, iFirst: UINT, iLast: UINT, lpABC: LPABCFLOAT) -> BOOL; -} -extern "C" { - pub fn GetClipBox(hdc: HDC, lprect: LPRECT) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetClipRgn(hdc: HDC, hrgn: HRGN) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetMetaRgn(hdc: HDC, hrgn: HRGN) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetCurrentObject(hdc: HDC, type_: UINT) -> HGDIOBJ; -} -extern "C" { - pub fn GetCurrentPositionEx(hdc: HDC, lppt: LPPOINT) -> BOOL; -} -extern "C" { - pub fn GetDeviceCaps(hdc: HDC, index: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetDIBits( - hdc: HDC, - hbm: HBITMAP, - start: UINT, - cLines: UINT, - lpvBits: LPVOID, - lpbmi: LPBITMAPINFO, - usage: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetFontData( - hdc: HDC, - dwTable: DWORD, - dwOffset: DWORD, - pvBuffer: PVOID, - cjBuffer: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetGlyphOutlineA( - hdc: HDC, - uChar: UINT, - fuFormat: UINT, - lpgm: LPGLYPHMETRICS, - cjBuffer: DWORD, - pvBuffer: LPVOID, - lpmat2: *const MAT2, - ) -> DWORD; -} -extern "C" { - pub fn GetGlyphOutlineW( - hdc: HDC, - uChar: UINT, - fuFormat: UINT, - lpgm: LPGLYPHMETRICS, - cjBuffer: DWORD, - pvBuffer: LPVOID, - lpmat2: *const MAT2, - ) -> DWORD; -} -extern "C" { - pub fn GetGraphicsMode(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetMapMode(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetMetaFileBitsEx(hMF: HMETAFILE, cbBuffer: UINT, lpData: LPVOID) -> UINT; -} -extern "C" { - pub fn GetMetaFileA(lpName: LPCSTR) -> HMETAFILE; -} -extern "C" { - pub fn GetMetaFileW(lpName: LPCWSTR) -> HMETAFILE; -} -extern "C" { - pub fn GetNearestColor(hdc: HDC, color: COLORREF) -> COLORREF; -} -extern "C" { - pub fn GetNearestPaletteIndex(h: HPALETTE, color: COLORREF) -> UINT; -} -extern "C" { - pub fn GetObjectType(h: HGDIOBJ) -> DWORD; -} -extern "C" { - pub fn GetOutlineTextMetricsA(hdc: HDC, cjCopy: UINT, potm: LPOUTLINETEXTMETRICA) -> UINT; -} -extern "C" { - pub fn GetOutlineTextMetricsW(hdc: HDC, cjCopy: UINT, potm: LPOUTLINETEXTMETRICW) -> UINT; -} -extern "C" { - pub fn GetPaletteEntries( - hpal: HPALETTE, - iStart: UINT, - cEntries: UINT, - pPalEntries: LPPALETTEENTRY, - ) -> UINT; -} -extern "C" { - pub fn GetPixel(hdc: HDC, x: ::std::os::raw::c_int, y: ::std::os::raw::c_int) -> COLORREF; -} -extern "C" { - pub fn GetPixelFormat(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetPolyFillMode(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetRasterizerCaps(lpraststat: LPRASTERIZER_STATUS, cjBytes: UINT) -> BOOL; -} -extern "C" { - pub fn GetRandomRgn(hdc: HDC, hrgn: HRGN, i: INT) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetRegionData(hrgn: HRGN, nCount: DWORD, lpRgnData: LPRGNDATA) -> DWORD; -} -extern "C" { - pub fn GetRgnBox(hrgn: HRGN, lprc: LPRECT) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetStockObject(i: ::std::os::raw::c_int) -> HGDIOBJ; -} -extern "C" { - pub fn GetStretchBltMode(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetSystemPaletteEntries( - hdc: HDC, - iStart: UINT, - cEntries: UINT, - pPalEntries: LPPALETTEENTRY, - ) -> UINT; -} -extern "C" { - pub fn GetSystemPaletteUse(hdc: HDC) -> UINT; -} -extern "C" { - pub fn GetTextCharacterExtra(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetTextAlign(hdc: HDC) -> UINT; -} -extern "C" { - pub fn GetTextColor(hdc: HDC) -> COLORREF; -} -extern "C" { - pub fn GetTextExtentPointA( - hdc: HDC, - lpString: LPCSTR, - c: ::std::os::raw::c_int, - lpsz: LPSIZE, - ) -> BOOL; -} -extern "C" { - pub fn GetTextExtentPointW( - hdc: HDC, - lpString: LPCWSTR, - c: ::std::os::raw::c_int, - lpsz: LPSIZE, - ) -> BOOL; -} -extern "C" { - pub fn GetTextExtentPoint32A( - hdc: HDC, - lpString: LPCSTR, - c: ::std::os::raw::c_int, - psizl: LPSIZE, - ) -> BOOL; -} -extern "C" { - pub fn GetTextExtentPoint32W( - hdc: HDC, - lpString: LPCWSTR, - c: ::std::os::raw::c_int, - psizl: LPSIZE, - ) -> BOOL; -} -extern "C" { - pub fn GetTextExtentExPointA( - hdc: HDC, - lpszString: LPCSTR, - cchString: ::std::os::raw::c_int, - nMaxExtent: ::std::os::raw::c_int, - lpnFit: LPINT, - lpnDx: LPINT, - lpSize: LPSIZE, - ) -> BOOL; -} -extern "C" { - pub fn GetTextExtentExPointW( - hdc: HDC, - lpszString: LPCWSTR, - cchString: ::std::os::raw::c_int, - nMaxExtent: ::std::os::raw::c_int, - lpnFit: LPINT, - lpnDx: LPINT, - lpSize: LPSIZE, - ) -> BOOL; -} -extern "C" { - pub fn GetTextCharset(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetTextCharsetInfo( - hdc: HDC, - lpSig: LPFONTSIGNATURE, - dwFlags: DWORD, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn TranslateCharsetInfo(lpSrc: *mut DWORD, lpCs: LPCHARSETINFO, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn GetFontLanguageInfo(hdc: HDC) -> DWORD; -} -extern "C" { - pub fn GetCharacterPlacementA( - hdc: HDC, - lpString: LPCSTR, - nCount: ::std::os::raw::c_int, - nMexExtent: ::std::os::raw::c_int, - lpResults: LPGCP_RESULTSA, - dwFlags: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetCharacterPlacementW( - hdc: HDC, - lpString: LPCWSTR, - nCount: ::std::os::raw::c_int, - nMexExtent: ::std::os::raw::c_int, - lpResults: LPGCP_RESULTSW, - dwFlags: DWORD, - ) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagWCRANGE { - pub wcLow: WCHAR, - pub cGlyphs: USHORT, -} -pub type WCRANGE = tagWCRANGE; -pub type PWCRANGE = *mut tagWCRANGE; -pub type LPWCRANGE = *mut tagWCRANGE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagGLYPHSET { - pub cbThis: DWORD, - pub flAccel: DWORD, - pub cGlyphsSupported: DWORD, - pub cRanges: DWORD, - pub ranges: [WCRANGE; 1usize], -} -pub type GLYPHSET = tagGLYPHSET; -pub type PGLYPHSET = *mut tagGLYPHSET; -pub type LPGLYPHSET = *mut tagGLYPHSET; -extern "C" { - pub fn GetFontUnicodeRanges(hdc: HDC, lpgs: LPGLYPHSET) -> DWORD; -} -extern "C" { - pub fn GetGlyphIndicesA( - hdc: HDC, - lpstr: LPCSTR, - c: ::std::os::raw::c_int, - pgi: LPWORD, - fl: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetGlyphIndicesW( - hdc: HDC, - lpstr: LPCWSTR, - c: ::std::os::raw::c_int, - pgi: LPWORD, - fl: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetTextExtentPointI( - hdc: HDC, - pgiIn: LPWORD, - cgi: ::std::os::raw::c_int, - psize: LPSIZE, - ) -> BOOL; -} -extern "C" { - pub fn GetTextExtentExPointI( - hdc: HDC, - lpwszString: LPWORD, - cwchString: ::std::os::raw::c_int, - nMaxExtent: ::std::os::raw::c_int, - lpnFit: LPINT, - lpnDx: LPINT, - lpSize: LPSIZE, - ) -> BOOL; -} -extern "C" { - pub fn GetCharWidthI(hdc: HDC, giFirst: UINT, cgi: UINT, pgi: LPWORD, piWidths: LPINT) -> BOOL; -} -extern "C" { - pub fn GetCharABCWidthsI(hdc: HDC, giFirst: UINT, cgi: UINT, pgi: LPWORD, pabc: LPABC) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagDESIGNVECTOR { - pub dvReserved: DWORD, - pub dvNumAxes: DWORD, - pub dvValues: [LONG; 16usize], -} -pub type DESIGNVECTOR = tagDESIGNVECTOR; -pub type PDESIGNVECTOR = *mut tagDESIGNVECTOR; -pub type LPDESIGNVECTOR = *mut tagDESIGNVECTOR; -extern "C" { - pub fn AddFontResourceExA(name: LPCSTR, fl: DWORD, res: PVOID) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn AddFontResourceExW(name: LPCWSTR, fl: DWORD, res: PVOID) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn RemoveFontResourceExA(name: LPCSTR, fl: DWORD, pdv: PVOID) -> BOOL; -} -extern "C" { - pub fn RemoveFontResourceExW(name: LPCWSTR, fl: DWORD, pdv: PVOID) -> BOOL; -} -extern "C" { - pub fn AddFontMemResourceEx( - pFileView: PVOID, - cjSize: DWORD, - pvResrved: PVOID, - pNumFonts: *mut DWORD, - ) -> HANDLE; -} -extern "C" { - pub fn RemoveFontMemResourceEx(h: HANDLE) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagAXISINFOA { - pub axMinValue: LONG, - pub axMaxValue: LONG, - pub axAxisName: [BYTE; 16usize], -} -pub type AXISINFOA = tagAXISINFOA; -pub type PAXISINFOA = *mut tagAXISINFOA; -pub type LPAXISINFOA = *mut tagAXISINFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagAXISINFOW { - pub axMinValue: LONG, - pub axMaxValue: LONG, - pub axAxisName: [WCHAR; 16usize], -} -pub type AXISINFOW = tagAXISINFOW; -pub type PAXISINFOW = *mut tagAXISINFOW; -pub type LPAXISINFOW = *mut tagAXISINFOW; -pub type AXISINFO = AXISINFOA; -pub type PAXISINFO = PAXISINFOA; -pub type LPAXISINFO = LPAXISINFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagAXESLISTA { - pub axlReserved: DWORD, - pub axlNumAxes: DWORD, - pub axlAxisInfo: [AXISINFOA; 16usize], -} -pub type AXESLISTA = tagAXESLISTA; -pub type PAXESLISTA = *mut tagAXESLISTA; -pub type LPAXESLISTA = *mut tagAXESLISTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagAXESLISTW { - pub axlReserved: DWORD, - pub axlNumAxes: DWORD, - pub axlAxisInfo: [AXISINFOW; 16usize], -} -pub type AXESLISTW = tagAXESLISTW; -pub type PAXESLISTW = *mut tagAXESLISTW; -pub type LPAXESLISTW = *mut tagAXESLISTW; -pub type AXESLIST = AXESLISTA; -pub type PAXESLIST = PAXESLISTA; -pub type LPAXESLIST = LPAXESLISTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagENUMLOGFONTEXDVA { - pub elfEnumLogfontEx: ENUMLOGFONTEXA, - pub elfDesignVector: DESIGNVECTOR, -} -pub type ENUMLOGFONTEXDVA = tagENUMLOGFONTEXDVA; -pub type PENUMLOGFONTEXDVA = *mut tagENUMLOGFONTEXDVA; -pub type LPENUMLOGFONTEXDVA = *mut tagENUMLOGFONTEXDVA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagENUMLOGFONTEXDVW { - pub elfEnumLogfontEx: ENUMLOGFONTEXW, - pub elfDesignVector: DESIGNVECTOR, -} -pub type ENUMLOGFONTEXDVW = tagENUMLOGFONTEXDVW; -pub type PENUMLOGFONTEXDVW = *mut tagENUMLOGFONTEXDVW; -pub type LPENUMLOGFONTEXDVW = *mut tagENUMLOGFONTEXDVW; -pub type ENUMLOGFONTEXDV = ENUMLOGFONTEXDVA; -pub type PENUMLOGFONTEXDV = PENUMLOGFONTEXDVA; -pub type LPENUMLOGFONTEXDV = LPENUMLOGFONTEXDVA; -extern "C" { - pub fn CreateFontIndirectExA(arg1: *const ENUMLOGFONTEXDVA) -> HFONT; -} -extern "C" { - pub fn CreateFontIndirectExW(arg1: *const ENUMLOGFONTEXDVW) -> HFONT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagENUMTEXTMETRICA { - pub etmNewTextMetricEx: NEWTEXTMETRICEXA, - pub etmAxesList: AXESLISTA, -} -pub type ENUMTEXTMETRICA = tagENUMTEXTMETRICA; -pub type PENUMTEXTMETRICA = *mut tagENUMTEXTMETRICA; -pub type LPENUMTEXTMETRICA = *mut tagENUMTEXTMETRICA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagENUMTEXTMETRICW { - pub etmNewTextMetricEx: NEWTEXTMETRICEXW, - pub etmAxesList: AXESLISTW, -} -pub type ENUMTEXTMETRICW = tagENUMTEXTMETRICW; -pub type PENUMTEXTMETRICW = *mut tagENUMTEXTMETRICW; -pub type LPENUMTEXTMETRICW = *mut tagENUMTEXTMETRICW; -pub type ENUMTEXTMETRIC = ENUMTEXTMETRICA; -pub type PENUMTEXTMETRIC = PENUMTEXTMETRICA; -pub type LPENUMTEXTMETRIC = LPENUMTEXTMETRICA; -extern "C" { - pub fn GetViewportExtEx(hdc: HDC, lpsize: LPSIZE) -> BOOL; -} -extern "C" { - pub fn GetViewportOrgEx(hdc: HDC, lppoint: LPPOINT) -> BOOL; -} -extern "C" { - pub fn GetWindowExtEx(hdc: HDC, lpsize: LPSIZE) -> BOOL; -} -extern "C" { - pub fn GetWindowOrgEx(hdc: HDC, lppoint: LPPOINT) -> BOOL; -} -extern "C" { - pub fn IntersectClipRect( - hdc: HDC, - left: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - right: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn InvertRgn(hdc: HDC, hrgn: HRGN) -> BOOL; -} -extern "C" { - pub fn LineDDA( - xStart: ::std::os::raw::c_int, - yStart: ::std::os::raw::c_int, - xEnd: ::std::os::raw::c_int, - yEnd: ::std::os::raw::c_int, - lpProc: LINEDDAPROC, - data: LPARAM, - ) -> BOOL; -} -extern "C" { - pub fn LineTo(hdc: HDC, x: ::std::os::raw::c_int, y: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn MaskBlt( - hdcDest: HDC, - xDest: ::std::os::raw::c_int, - yDest: ::std::os::raw::c_int, - width: ::std::os::raw::c_int, - height: ::std::os::raw::c_int, - hdcSrc: HDC, - xSrc: ::std::os::raw::c_int, - ySrc: ::std::os::raw::c_int, - hbmMask: HBITMAP, - xMask: ::std::os::raw::c_int, - yMask: ::std::os::raw::c_int, - rop: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn PlgBlt( - hdcDest: HDC, - lpPoint: *const POINT, - hdcSrc: HDC, - xSrc: ::std::os::raw::c_int, - ySrc: ::std::os::raw::c_int, - width: ::std::os::raw::c_int, - height: ::std::os::raw::c_int, - hbmMask: HBITMAP, - xMask: ::std::os::raw::c_int, - yMask: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn OffsetClipRgn( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn OffsetRgn( - hrgn: HRGN, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn PatBlt( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - w: ::std::os::raw::c_int, - h: ::std::os::raw::c_int, - rop: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn Pie( - hdc: HDC, - left: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - right: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - xr1: ::std::os::raw::c_int, - yr1: ::std::os::raw::c_int, - xr2: ::std::os::raw::c_int, - yr2: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn PlayMetaFile(hdc: HDC, hmf: HMETAFILE) -> BOOL; -} -extern "C" { - pub fn PaintRgn(hdc: HDC, hrgn: HRGN) -> BOOL; -} -extern "C" { - pub fn PolyPolygon( - hdc: HDC, - apt: *const POINT, - asz: *const INT, - csz: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn PtInRegion(hrgn: HRGN, x: ::std::os::raw::c_int, y: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn PtVisible(hdc: HDC, x: ::std::os::raw::c_int, y: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn RectInRegion(hrgn: HRGN, lprect: *const RECT) -> BOOL; -} -extern "C" { - pub fn RectVisible(hdc: HDC, lprect: *const RECT) -> BOOL; -} -extern "C" { - pub fn Rectangle( - hdc: HDC, - left: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - right: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn RestoreDC(hdc: HDC, nSavedDC: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn ResetDCA(hdc: HDC, lpdm: *const DEVMODEA) -> HDC; -} -extern "C" { - pub fn ResetDCW(hdc: HDC, lpdm: *const DEVMODEW) -> HDC; -} -extern "C" { - pub fn RealizePalette(hdc: HDC) -> UINT; -} -extern "C" { - pub fn RemoveFontResourceA(lpFileName: LPCSTR) -> BOOL; -} -extern "C" { - pub fn RemoveFontResourceW(lpFileName: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn RoundRect( - hdc: HDC, - left: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - right: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - width: ::std::os::raw::c_int, - height: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn ResizePalette(hpal: HPALETTE, n: UINT) -> BOOL; -} -extern "C" { - pub fn SaveDC(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SelectClipRgn(hdc: HDC, hrgn: HRGN) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ExtSelectClipRgn( - hdc: HDC, - hrgn: HRGN, - mode: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetMetaRgn(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SelectObject(hdc: HDC, h: HGDIOBJ) -> HGDIOBJ; -} -extern "C" { - pub fn SelectPalette(hdc: HDC, hPal: HPALETTE, bForceBkgd: BOOL) -> HPALETTE; -} -extern "C" { - pub fn SetBkColor(hdc: HDC, color: COLORREF) -> COLORREF; -} -extern "C" { - pub fn SetDCBrushColor(hdc: HDC, color: COLORREF) -> COLORREF; -} -extern "C" { - pub fn SetDCPenColor(hdc: HDC, color: COLORREF) -> COLORREF; -} -extern "C" { - pub fn SetBkMode(hdc: HDC, mode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetBitmapBits(hbm: HBITMAP, cb: DWORD, pvBits: *const ::std::os::raw::c_void) -> LONG; -} -extern "C" { - pub fn SetBoundsRect(hdc: HDC, lprect: *const RECT, flags: UINT) -> UINT; -} -extern "C" { - pub fn SetDIBits( - hdc: HDC, - hbm: HBITMAP, - start: UINT, - cLines: UINT, - lpBits: *const ::std::os::raw::c_void, - lpbmi: *const BITMAPINFO, - ColorUse: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetDIBitsToDevice( - hdc: HDC, - xDest: ::std::os::raw::c_int, - yDest: ::std::os::raw::c_int, - w: DWORD, - h: DWORD, - xSrc: ::std::os::raw::c_int, - ySrc: ::std::os::raw::c_int, - StartScan: UINT, - cLines: UINT, - lpvBits: *const ::std::os::raw::c_void, - lpbmi: *const BITMAPINFO, - ColorUse: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetMapperFlags(hdc: HDC, flags: DWORD) -> DWORD; -} -extern "C" { - pub fn SetGraphicsMode(hdc: HDC, iMode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetMapMode(hdc: HDC, iMode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetLayout(hdc: HDC, l: DWORD) -> DWORD; -} -extern "C" { - pub fn GetLayout(hdc: HDC) -> DWORD; -} -extern "C" { - pub fn SetMetaFileBitsEx(cbBuffer: UINT, lpData: *const BYTE) -> HMETAFILE; -} -extern "C" { - pub fn SetPaletteEntries( - hpal: HPALETTE, - iStart: UINT, - cEntries: UINT, - pPalEntries: *const PALETTEENTRY, - ) -> UINT; -} -extern "C" { - pub fn SetPixel( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - color: COLORREF, - ) -> COLORREF; -} -extern "C" { - pub fn SetPixelV( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - color: COLORREF, - ) -> BOOL; -} -extern "C" { - pub fn SetPixelFormat( - hdc: HDC, - format: ::std::os::raw::c_int, - ppfd: *const PIXELFORMATDESCRIPTOR, - ) -> BOOL; -} -extern "C" { - pub fn SetPolyFillMode(hdc: HDC, mode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn StretchBlt( - hdcDest: HDC, - xDest: ::std::os::raw::c_int, - yDest: ::std::os::raw::c_int, - wDest: ::std::os::raw::c_int, - hDest: ::std::os::raw::c_int, - hdcSrc: HDC, - xSrc: ::std::os::raw::c_int, - ySrc: ::std::os::raw::c_int, - wSrc: ::std::os::raw::c_int, - hSrc: ::std::os::raw::c_int, - rop: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetRectRgn( - hrgn: HRGN, - left: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - right: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn StretchDIBits( - hdc: HDC, - xDest: ::std::os::raw::c_int, - yDest: ::std::os::raw::c_int, - DestWidth: ::std::os::raw::c_int, - DestHeight: ::std::os::raw::c_int, - xSrc: ::std::os::raw::c_int, - ySrc: ::std::os::raw::c_int, - SrcWidth: ::std::os::raw::c_int, - SrcHeight: ::std::os::raw::c_int, - lpBits: *const ::std::os::raw::c_void, - lpbmi: *const BITMAPINFO, - iUsage: UINT, - rop: DWORD, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetROP2(hdc: HDC, rop2: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetStretchBltMode(hdc: HDC, mode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetSystemPaletteUse(hdc: HDC, use_: UINT) -> UINT; -} -extern "C" { - pub fn SetTextCharacterExtra(hdc: HDC, extra: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetTextColor(hdc: HDC, color: COLORREF) -> COLORREF; -} -extern "C" { - pub fn SetTextAlign(hdc: HDC, align: UINT) -> UINT; -} -extern "C" { - pub fn SetTextJustification( - hdc: HDC, - extra: ::std::os::raw::c_int, - count: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn UpdateColors(hdc: HDC) -> BOOL; -} -pub type COLOR16 = USHORT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRIVERTEX { - pub x: LONG, - pub y: LONG, - pub Red: COLOR16, - pub Green: COLOR16, - pub Blue: COLOR16, - pub Alpha: COLOR16, -} -pub type TRIVERTEX = _TRIVERTEX; -pub type PTRIVERTEX = *mut _TRIVERTEX; -pub type LPTRIVERTEX = *mut _TRIVERTEX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _GRADIENT_TRIANGLE { - pub Vertex1: ULONG, - pub Vertex2: ULONG, - pub Vertex3: ULONG, -} -pub type GRADIENT_TRIANGLE = _GRADIENT_TRIANGLE; -pub type PGRADIENT_TRIANGLE = *mut _GRADIENT_TRIANGLE; -pub type LPGRADIENT_TRIANGLE = *mut _GRADIENT_TRIANGLE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _GRADIENT_RECT { - pub UpperLeft: ULONG, - pub LowerRight: ULONG, -} -pub type GRADIENT_RECT = _GRADIENT_RECT; -pub type PGRADIENT_RECT = *mut _GRADIENT_RECT; -pub type LPGRADIENT_RECT = *mut _GRADIENT_RECT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BLENDFUNCTION { - pub BlendOp: BYTE, - pub BlendFlags: BYTE, - pub SourceConstantAlpha: BYTE, - pub AlphaFormat: BYTE, -} -pub type BLENDFUNCTION = _BLENDFUNCTION; -pub type PBLENDFUNCTION = *mut _BLENDFUNCTION; -extern "C" { - pub fn AlphaBlend( - hdcDest: HDC, - xoriginDest: ::std::os::raw::c_int, - yoriginDest: ::std::os::raw::c_int, - wDest: ::std::os::raw::c_int, - hDest: ::std::os::raw::c_int, - hdcSrc: HDC, - xoriginSrc: ::std::os::raw::c_int, - yoriginSrc: ::std::os::raw::c_int, - wSrc: ::std::os::raw::c_int, - hSrc: ::std::os::raw::c_int, - ftn: BLENDFUNCTION, - ) -> BOOL; -} -extern "C" { - pub fn TransparentBlt( - hdcDest: HDC, - xoriginDest: ::std::os::raw::c_int, - yoriginDest: ::std::os::raw::c_int, - wDest: ::std::os::raw::c_int, - hDest: ::std::os::raw::c_int, - hdcSrc: HDC, - xoriginSrc: ::std::os::raw::c_int, - yoriginSrc: ::std::os::raw::c_int, - wSrc: ::std::os::raw::c_int, - hSrc: ::std::os::raw::c_int, - crTransparent: UINT, - ) -> BOOL; -} -extern "C" { - pub fn GradientFill( - hdc: HDC, - pVertex: PTRIVERTEX, - nVertex: ULONG, - pMesh: PVOID, - nMesh: ULONG, - ulMode: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn GdiAlphaBlend( - hdcDest: HDC, - xoriginDest: ::std::os::raw::c_int, - yoriginDest: ::std::os::raw::c_int, - wDest: ::std::os::raw::c_int, - hDest: ::std::os::raw::c_int, - hdcSrc: HDC, - xoriginSrc: ::std::os::raw::c_int, - yoriginSrc: ::std::os::raw::c_int, - wSrc: ::std::os::raw::c_int, - hSrc: ::std::os::raw::c_int, - ftn: BLENDFUNCTION, - ) -> BOOL; -} -extern "C" { - pub fn GdiTransparentBlt( - hdcDest: HDC, - xoriginDest: ::std::os::raw::c_int, - yoriginDest: ::std::os::raw::c_int, - wDest: ::std::os::raw::c_int, - hDest: ::std::os::raw::c_int, - hdcSrc: HDC, - xoriginSrc: ::std::os::raw::c_int, - yoriginSrc: ::std::os::raw::c_int, - wSrc: ::std::os::raw::c_int, - hSrc: ::std::os::raw::c_int, - crTransparent: UINT, - ) -> BOOL; -} -extern "C" { - pub fn GdiGradientFill( - hdc: HDC, - pVertex: PTRIVERTEX, - nVertex: ULONG, - pMesh: PVOID, - nCount: ULONG, - ulMode: ULONG, - ) -> BOOL; -} -extern "C" { - pub fn PlayMetaFileRecord( - hdc: HDC, - lpHandleTable: LPHANDLETABLE, - lpMR: LPMETARECORD, - noObjs: UINT, - ) -> BOOL; -} -pub type MFENUMPROC = ::std::option::Option< - unsafe extern "C" fn( - hdc: HDC, - lpht: *mut HANDLETABLE, - lpMR: *mut METARECORD, - nObj: ::std::os::raw::c_int, - param: LPARAM, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - pub fn EnumMetaFile(hdc: HDC, hmf: HMETAFILE, proc_: MFENUMPROC, param: LPARAM) -> BOOL; -} -pub type ENHMFENUMPROC = ::std::option::Option< - unsafe extern "C" fn( - hdc: HDC, - lpht: *mut HANDLETABLE, - lpmr: *const ENHMETARECORD, - nHandles: ::std::os::raw::c_int, - data: LPARAM, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - pub fn CloseEnhMetaFile(hdc: HDC) -> HENHMETAFILE; -} -extern "C" { - pub fn CopyEnhMetaFileA(hEnh: HENHMETAFILE, lpFileName: LPCSTR) -> HENHMETAFILE; -} -extern "C" { - pub fn CopyEnhMetaFileW(hEnh: HENHMETAFILE, lpFileName: LPCWSTR) -> HENHMETAFILE; -} -extern "C" { - pub fn CreateEnhMetaFileA( - hdc: HDC, - lpFilename: LPCSTR, - lprc: *const RECT, - lpDesc: LPCSTR, - ) -> HDC; -} -extern "C" { - pub fn CreateEnhMetaFileW( - hdc: HDC, - lpFilename: LPCWSTR, - lprc: *const RECT, - lpDesc: LPCWSTR, - ) -> HDC; -} -extern "C" { - pub fn DeleteEnhMetaFile(hmf: HENHMETAFILE) -> BOOL; -} -extern "C" { - pub fn EnumEnhMetaFile( - hdc: HDC, - hmf: HENHMETAFILE, - proc_: ENHMFENUMPROC, - param: LPVOID, - lpRect: *const RECT, - ) -> BOOL; -} -extern "C" { - pub fn GetEnhMetaFileA(lpName: LPCSTR) -> HENHMETAFILE; -} -extern "C" { - pub fn GetEnhMetaFileW(lpName: LPCWSTR) -> HENHMETAFILE; -} -extern "C" { - pub fn GetEnhMetaFileBits(hEMF: HENHMETAFILE, nSize: UINT, lpData: LPBYTE) -> UINT; -} -extern "C" { - pub fn GetEnhMetaFileDescriptionA( - hemf: HENHMETAFILE, - cchBuffer: UINT, - lpDescription: LPSTR, - ) -> UINT; -} -extern "C" { - pub fn GetEnhMetaFileDescriptionW( - hemf: HENHMETAFILE, - cchBuffer: UINT, - lpDescription: LPWSTR, - ) -> UINT; -} -extern "C" { - pub fn GetEnhMetaFileHeader( - hemf: HENHMETAFILE, - nSize: UINT, - lpEnhMetaHeader: LPENHMETAHEADER, - ) -> UINT; -} -extern "C" { - pub fn GetEnhMetaFilePaletteEntries( - hemf: HENHMETAFILE, - nNumEntries: UINT, - lpPaletteEntries: LPPALETTEENTRY, - ) -> UINT; -} -extern "C" { - pub fn GetEnhMetaFilePixelFormat( - hemf: HENHMETAFILE, - cbBuffer: UINT, - ppfd: *mut PIXELFORMATDESCRIPTOR, - ) -> UINT; -} -extern "C" { - pub fn GetWinMetaFileBits( - hemf: HENHMETAFILE, - cbData16: UINT, - pData16: LPBYTE, - iMapMode: INT, - hdcRef: HDC, - ) -> UINT; -} -extern "C" { - pub fn PlayEnhMetaFile(hdc: HDC, hmf: HENHMETAFILE, lprect: *const RECT) -> BOOL; -} -extern "C" { - pub fn PlayEnhMetaFileRecord( - hdc: HDC, - pht: LPHANDLETABLE, - pmr: *const ENHMETARECORD, - cht: UINT, - ) -> BOOL; -} -extern "C" { - pub fn SetEnhMetaFileBits(nSize: UINT, pb: *const BYTE) -> HENHMETAFILE; -} -extern "C" { - pub fn SetWinMetaFileBits( - nSize: UINT, - lpMeta16Data: *const BYTE, - hdcRef: HDC, - lpMFP: *const METAFILEPICT, - ) -> HENHMETAFILE; -} -extern "C" { - pub fn GdiComment(hdc: HDC, nSize: UINT, lpData: *const BYTE) -> BOOL; -} -extern "C" { - pub fn GetTextMetricsA(hdc: HDC, lptm: LPTEXTMETRICA) -> BOOL; -} -extern "C" { - pub fn GetTextMetricsW(hdc: HDC, lptm: LPTEXTMETRICW) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagDIBSECTION { - pub dsBm: BITMAP, - pub dsBmih: BITMAPINFOHEADER, - pub dsBitfields: [DWORD; 3usize], - pub dshSection: HANDLE, - pub dsOffset: DWORD, -} -pub type DIBSECTION = tagDIBSECTION; -pub type LPDIBSECTION = *mut tagDIBSECTION; -pub type PDIBSECTION = *mut tagDIBSECTION; -extern "C" { - pub fn AngleArc( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - r: DWORD, - StartAngle: FLOAT, - SweepAngle: FLOAT, - ) -> BOOL; -} -extern "C" { - pub fn PolyPolyline(hdc: HDC, apt: *const POINT, asz: *const DWORD, csz: DWORD) -> BOOL; -} -extern "C" { - pub fn GetWorldTransform(hdc: HDC, lpxf: LPXFORM) -> BOOL; -} -extern "C" { - pub fn SetWorldTransform(hdc: HDC, lpxf: *const XFORM) -> BOOL; -} -extern "C" { - pub fn ModifyWorldTransform(hdc: HDC, lpxf: *const XFORM, mode: DWORD) -> BOOL; -} -extern "C" { - pub fn CombineTransform(lpxfOut: LPXFORM, lpxf1: *const XFORM, lpxf2: *const XFORM) -> BOOL; -} -extern "C" { - pub fn CreateDIBSection( - hdc: HDC, - pbmi: *const BITMAPINFO, - usage: UINT, - ppvBits: *mut *mut ::std::os::raw::c_void, - hSection: HANDLE, - offset: DWORD, - ) -> HBITMAP; -} -extern "C" { - pub fn GetDIBColorTable(hdc: HDC, iStart: UINT, cEntries: UINT, prgbq: *mut RGBQUAD) -> UINT; -} -extern "C" { - pub fn SetDIBColorTable(hdc: HDC, iStart: UINT, cEntries: UINT, prgbq: *const RGBQUAD) -> UINT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCOLORADJUSTMENT { - pub caSize: WORD, - pub caFlags: WORD, - pub caIlluminantIndex: WORD, - pub caRedGamma: WORD, - pub caGreenGamma: WORD, - pub caBlueGamma: WORD, - pub caReferenceBlack: WORD, - pub caReferenceWhite: WORD, - pub caContrast: SHORT, - pub caBrightness: SHORT, - pub caColorfulness: SHORT, - pub caRedGreenTint: SHORT, -} -pub type COLORADJUSTMENT = tagCOLORADJUSTMENT; -pub type PCOLORADJUSTMENT = *mut tagCOLORADJUSTMENT; -pub type LPCOLORADJUSTMENT = *mut tagCOLORADJUSTMENT; -extern "C" { - pub fn SetColorAdjustment(hdc: HDC, lpca: *const COLORADJUSTMENT) -> BOOL; -} -extern "C" { - pub fn GetColorAdjustment(hdc: HDC, lpca: LPCOLORADJUSTMENT) -> BOOL; -} -extern "C" { - pub fn CreateHalftonePalette(hdc: HDC) -> HPALETTE; -} -pub type ABORTPROC = - ::std::option::Option BOOL>; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DOCINFOA { - pub cbSize: ::std::os::raw::c_int, - pub lpszDocName: LPCSTR, - pub lpszOutput: LPCSTR, - pub lpszDatatype: LPCSTR, - pub fwType: DWORD, -} -pub type DOCINFOA = _DOCINFOA; -pub type LPDOCINFOA = *mut _DOCINFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DOCINFOW { - pub cbSize: ::std::os::raw::c_int, - pub lpszDocName: LPCWSTR, - pub lpszOutput: LPCWSTR, - pub lpszDatatype: LPCWSTR, - pub fwType: DWORD, -} -pub type DOCINFOW = _DOCINFOW; -pub type LPDOCINFOW = *mut _DOCINFOW; -pub type DOCINFO = DOCINFOA; -pub type LPDOCINFO = LPDOCINFOA; -extern "C" { - pub fn StartDocA(hdc: HDC, lpdi: *const DOCINFOA) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn StartDocW(hdc: HDC, lpdi: *const DOCINFOW) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EndDoc(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn StartPage(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EndPage(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn AbortDoc(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetAbortProc(hdc: HDC, proc_: ABORTPROC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn AbortPath(hdc: HDC) -> BOOL; -} -extern "C" { - pub fn ArcTo( - hdc: HDC, - left: ::std::os::raw::c_int, - top: ::std::os::raw::c_int, - right: ::std::os::raw::c_int, - bottom: ::std::os::raw::c_int, - xr1: ::std::os::raw::c_int, - yr1: ::std::os::raw::c_int, - xr2: ::std::os::raw::c_int, - yr2: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn BeginPath(hdc: HDC) -> BOOL; -} -extern "C" { - pub fn CloseFigure(hdc: HDC) -> BOOL; -} -extern "C" { - pub fn EndPath(hdc: HDC) -> BOOL; -} -extern "C" { - pub fn FillPath(hdc: HDC) -> BOOL; -} -extern "C" { - pub fn FlattenPath(hdc: HDC) -> BOOL; -} -extern "C" { - pub fn GetPath( - hdc: HDC, - apt: LPPOINT, - aj: LPBYTE, - cpt: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn PathToRegion(hdc: HDC) -> HRGN; -} -extern "C" { - pub fn PolyDraw( - hdc: HDC, - apt: *const POINT, - aj: *const BYTE, - cpt: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn SelectClipPath(hdc: HDC, mode: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn SetArcDirection(hdc: HDC, dir: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetMiterLimit(hdc: HDC, limit: FLOAT, old: PFLOAT) -> BOOL; -} -extern "C" { - pub fn StrokeAndFillPath(hdc: HDC) -> BOOL; -} -extern "C" { - pub fn StrokePath(hdc: HDC) -> BOOL; -} -extern "C" { - pub fn WidenPath(hdc: HDC) -> BOOL; -} -extern "C" { - pub fn ExtCreatePen( - iPenStyle: DWORD, - cWidth: DWORD, - plbrush: *const LOGBRUSH, - cStyle: DWORD, - pstyle: *const DWORD, - ) -> HPEN; -} -extern "C" { - pub fn GetMiterLimit(hdc: HDC, plimit: PFLOAT) -> BOOL; -} -extern "C" { - pub fn GetArcDirection(hdc: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetObjectA(h: HANDLE, c: ::std::os::raw::c_int, pv: LPVOID) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetObjectW(h: HANDLE, c: ::std::os::raw::c_int, pv: LPVOID) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn MoveToEx( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - lppt: LPPOINT, - ) -> BOOL; -} -extern "C" { - pub fn TextOutA( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - lpString: LPCSTR, - c: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn TextOutW( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - lpString: LPCWSTR, - c: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn ExtTextOutA( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - options: UINT, - lprect: *const RECT, - lpString: LPCSTR, - c: UINT, - lpDx: *const INT, - ) -> BOOL; -} -extern "C" { - pub fn ExtTextOutW( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - options: UINT, - lprect: *const RECT, - lpString: LPCWSTR, - c: UINT, - lpDx: *const INT, - ) -> BOOL; -} -extern "C" { - pub fn PolyTextOutA(hdc: HDC, ppt: *const POLYTEXTA, nstrings: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn PolyTextOutW(hdc: HDC, ppt: *const POLYTEXTW, nstrings: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn CreatePolygonRgn( - pptl: *const POINT, - cPoint: ::std::os::raw::c_int, - iMode: ::std::os::raw::c_int, - ) -> HRGN; -} -extern "C" { - pub fn DPtoLP(hdc: HDC, lppt: LPPOINT, c: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn LPtoDP(hdc: HDC, lppt: LPPOINT, c: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn Polygon(hdc: HDC, apt: *const POINT, cpt: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn Polyline(hdc: HDC, apt: *const POINT, cpt: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn PolyBezier(hdc: HDC, apt: *const POINT, cpt: DWORD) -> BOOL; -} -extern "C" { - pub fn PolyBezierTo(hdc: HDC, apt: *const POINT, cpt: DWORD) -> BOOL; -} -extern "C" { - pub fn PolylineTo(hdc: HDC, apt: *const POINT, cpt: DWORD) -> BOOL; -} -extern "C" { - pub fn SetViewportExtEx( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - lpsz: LPSIZE, - ) -> BOOL; -} -extern "C" { - pub fn SetViewportOrgEx( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - lppt: LPPOINT, - ) -> BOOL; -} -extern "C" { - pub fn SetWindowExtEx( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - lpsz: LPSIZE, - ) -> BOOL; -} -extern "C" { - pub fn SetWindowOrgEx( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - lppt: LPPOINT, - ) -> BOOL; -} -extern "C" { - pub fn OffsetViewportOrgEx( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - lppt: LPPOINT, - ) -> BOOL; -} -extern "C" { - pub fn OffsetWindowOrgEx( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - lppt: LPPOINT, - ) -> BOOL; -} -extern "C" { - pub fn ScaleViewportExtEx( - hdc: HDC, - xn: ::std::os::raw::c_int, - dx: ::std::os::raw::c_int, - yn: ::std::os::raw::c_int, - yd: ::std::os::raw::c_int, - lpsz: LPSIZE, - ) -> BOOL; -} -extern "C" { - pub fn ScaleWindowExtEx( - hdc: HDC, - xn: ::std::os::raw::c_int, - xd: ::std::os::raw::c_int, - yn: ::std::os::raw::c_int, - yd: ::std::os::raw::c_int, - lpsz: LPSIZE, - ) -> BOOL; -} -extern "C" { - pub fn SetBitmapDimensionEx( - hbm: HBITMAP, - w: ::std::os::raw::c_int, - h: ::std::os::raw::c_int, - lpsz: LPSIZE, - ) -> BOOL; -} -extern "C" { - pub fn SetBrushOrgEx( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - lppt: LPPOINT, - ) -> BOOL; -} -extern "C" { - pub fn GetTextFaceA(hdc: HDC, c: ::std::os::raw::c_int, lpName: LPSTR) - -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetTextFaceW( - hdc: HDC, - c: ::std::os::raw::c_int, - lpName: LPWSTR, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagKERNINGPAIR { - pub wFirst: WORD, - pub wSecond: WORD, - pub iKernAmount: ::std::os::raw::c_int, -} -pub type KERNINGPAIR = tagKERNINGPAIR; -pub type LPKERNINGPAIR = *mut tagKERNINGPAIR; -extern "C" { - pub fn GetKerningPairsA(hdc: HDC, nPairs: DWORD, lpKernPair: LPKERNINGPAIR) -> DWORD; -} -extern "C" { - pub fn GetKerningPairsW(hdc: HDC, nPairs: DWORD, lpKernPair: LPKERNINGPAIR) -> DWORD; -} -extern "C" { - pub fn GetDCOrgEx(hdc: HDC, lppt: LPPOINT) -> BOOL; -} -extern "C" { - pub fn FixBrushOrgEx( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - ptl: LPPOINT, - ) -> BOOL; -} -extern "C" { - pub fn UnrealizeObject(h: HGDIOBJ) -> BOOL; -} -extern "C" { - pub fn GdiFlush() -> BOOL; -} -extern "C" { - pub fn GdiSetBatchLimit(dw: DWORD) -> DWORD; -} -extern "C" { - pub fn GdiGetBatchLimit() -> DWORD; -} -pub type ICMENUMPROCA = - ::std::option::Option ::std::os::raw::c_int>; -pub type ICMENUMPROCW = ::std::option::Option< - unsafe extern "C" fn(arg1: LPWSTR, arg2: LPARAM) -> ::std::os::raw::c_int, ->; -extern "C" { - pub fn SetICMMode(hdc: HDC, mode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn CheckColorsInGamut( - hdc: HDC, - lpRGBTriple: LPRGBTRIPLE, - dlpBuffer: LPVOID, - nCount: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetColorSpace(hdc: HDC) -> HCOLORSPACE; -} -extern "C" { - pub fn GetLogColorSpaceA( - hColorSpace: HCOLORSPACE, - lpBuffer: LPLOGCOLORSPACEA, - nSize: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetLogColorSpaceW( - hColorSpace: HCOLORSPACE, - lpBuffer: LPLOGCOLORSPACEW, - nSize: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CreateColorSpaceA(lplcs: LPLOGCOLORSPACEA) -> HCOLORSPACE; -} -extern "C" { - pub fn CreateColorSpaceW(lplcs: LPLOGCOLORSPACEW) -> HCOLORSPACE; -} -extern "C" { - pub fn SetColorSpace(hdc: HDC, hcs: HCOLORSPACE) -> HCOLORSPACE; -} -extern "C" { - pub fn DeleteColorSpace(hcs: HCOLORSPACE) -> BOOL; -} -extern "C" { - pub fn GetICMProfileA(hdc: HDC, pBufSize: LPDWORD, pszFilename: LPSTR) -> BOOL; -} -extern "C" { - pub fn GetICMProfileW(hdc: HDC, pBufSize: LPDWORD, pszFilename: LPWSTR) -> BOOL; -} -extern "C" { - pub fn SetICMProfileA(hdc: HDC, lpFileName: LPSTR) -> BOOL; -} -extern "C" { - pub fn SetICMProfileW(hdc: HDC, lpFileName: LPWSTR) -> BOOL; -} -extern "C" { - pub fn GetDeviceGammaRamp(hdc: HDC, lpRamp: LPVOID) -> BOOL; -} -extern "C" { - pub fn SetDeviceGammaRamp(hdc: HDC, lpRamp: LPVOID) -> BOOL; -} -extern "C" { - pub fn ColorMatchToTarget(hdc: HDC, hdcTarget: HDC, action: DWORD) -> BOOL; -} -extern "C" { - pub fn EnumICMProfilesA(hdc: HDC, proc_: ICMENUMPROCA, param: LPARAM) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EnumICMProfilesW(hdc: HDC, proc_: ICMENUMPROCW, param: LPARAM) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn UpdateICMRegKeyA( - reserved: DWORD, - lpszCMID: LPSTR, - lpszFileName: LPSTR, - command: UINT, - ) -> BOOL; -} -extern "C" { - pub fn UpdateICMRegKeyW( - reserved: DWORD, - lpszCMID: LPWSTR, - lpszFileName: LPWSTR, - command: UINT, - ) -> BOOL; -} -extern "C" { - pub fn ColorCorrectPalette(hdc: HDC, hPal: HPALETTE, deFirst: DWORD, num: DWORD) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMR { - pub iType: DWORD, - pub nSize: DWORD, -} -pub type EMR = tagEMR; -pub type PEMR = *mut tagEMR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRTEXT { - pub ptlReference: POINTL, - pub nChars: DWORD, - pub offString: DWORD, - pub fOptions: DWORD, - pub rcl: RECTL, - pub offDx: DWORD, -} -pub type EMRTEXT = tagEMRTEXT; -pub type PEMRTEXT = *mut tagEMRTEXT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagABORTPATH { - pub emr: EMR, -} -pub type EMRABORTPATH = tagABORTPATH; -pub type PEMRABORTPATH = *mut tagABORTPATH; -pub type EMRBEGINPATH = tagABORTPATH; -pub type PEMRBEGINPATH = *mut tagABORTPATH; -pub type EMRENDPATH = tagABORTPATH; -pub type PEMRENDPATH = *mut tagABORTPATH; -pub type EMRCLOSEFIGURE = tagABORTPATH; -pub type PEMRCLOSEFIGURE = *mut tagABORTPATH; -pub type EMRFLATTENPATH = tagABORTPATH; -pub type PEMRFLATTENPATH = *mut tagABORTPATH; -pub type EMRWIDENPATH = tagABORTPATH; -pub type PEMRWIDENPATH = *mut tagABORTPATH; -pub type EMRSETMETARGN = tagABORTPATH; -pub type PEMRSETMETARGN = *mut tagABORTPATH; -pub type EMRSAVEDC = tagABORTPATH; -pub type PEMRSAVEDC = *mut tagABORTPATH; -pub type EMRREALIZEPALETTE = tagABORTPATH; -pub type PEMRREALIZEPALETTE = *mut tagABORTPATH; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSELECTCLIPPATH { - pub emr: EMR, - pub iMode: DWORD, -} -pub type EMRSELECTCLIPPATH = tagEMRSELECTCLIPPATH; -pub type PEMRSELECTCLIPPATH = *mut tagEMRSELECTCLIPPATH; -pub type EMRSETBKMODE = tagEMRSELECTCLIPPATH; -pub type PEMRSETBKMODE = *mut tagEMRSELECTCLIPPATH; -pub type EMRSETMAPMODE = tagEMRSELECTCLIPPATH; -pub type PEMRSETMAPMODE = *mut tagEMRSELECTCLIPPATH; -pub type EMRSETLAYOUT = tagEMRSELECTCLIPPATH; -pub type PEMRSETLAYOUT = *mut tagEMRSELECTCLIPPATH; -pub type EMRSETPOLYFILLMODE = tagEMRSELECTCLIPPATH; -pub type PEMRSETPOLYFILLMODE = *mut tagEMRSELECTCLIPPATH; -pub type EMRSETROP2 = tagEMRSELECTCLIPPATH; -pub type PEMRSETROP2 = *mut tagEMRSELECTCLIPPATH; -pub type EMRSETSTRETCHBLTMODE = tagEMRSELECTCLIPPATH; -pub type PEMRSETSTRETCHBLTMODE = *mut tagEMRSELECTCLIPPATH; -pub type EMRSETICMMODE = tagEMRSELECTCLIPPATH; -pub type PEMRSETICMMODE = *mut tagEMRSELECTCLIPPATH; -pub type EMRSETTEXTALIGN = tagEMRSELECTCLIPPATH; -pub type PEMRSETTEXTALIGN = *mut tagEMRSELECTCLIPPATH; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSETMITERLIMIT { - pub emr: EMR, - pub eMiterLimit: FLOAT, -} -pub type EMRSETMITERLIMIT = tagEMRSETMITERLIMIT; -pub type PEMRSETMITERLIMIT = *mut tagEMRSETMITERLIMIT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRRESTOREDC { - pub emr: EMR, - pub iRelative: LONG, -} -pub type EMRRESTOREDC = tagEMRRESTOREDC; -pub type PEMRRESTOREDC = *mut tagEMRRESTOREDC; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSETARCDIRECTION { - pub emr: EMR, - pub iArcDirection: DWORD, -} -pub type EMRSETARCDIRECTION = tagEMRSETARCDIRECTION; -pub type PEMRSETARCDIRECTION = *mut tagEMRSETARCDIRECTION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSETMAPPERFLAGS { - pub emr: EMR, - pub dwFlags: DWORD, -} -pub type EMRSETMAPPERFLAGS = tagEMRSETMAPPERFLAGS; -pub type PEMRSETMAPPERFLAGS = *mut tagEMRSETMAPPERFLAGS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSETTEXTCOLOR { - pub emr: EMR, - pub crColor: COLORREF, -} -pub type EMRSETBKCOLOR = tagEMRSETTEXTCOLOR; -pub type PEMRSETBKCOLOR = *mut tagEMRSETTEXTCOLOR; -pub type EMRSETTEXTCOLOR = tagEMRSETTEXTCOLOR; -pub type PEMRSETTEXTCOLOR = *mut tagEMRSETTEXTCOLOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSELECTOBJECT { - pub emr: EMR, - pub ihObject: DWORD, -} -pub type EMRSELECTOBJECT = tagEMRSELECTOBJECT; -pub type PEMRSELECTOBJECT = *mut tagEMRSELECTOBJECT; -pub type EMRDELETEOBJECT = tagEMRSELECTOBJECT; -pub type PEMRDELETEOBJECT = *mut tagEMRSELECTOBJECT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSELECTPALETTE { - pub emr: EMR, - pub ihPal: DWORD, -} -pub type EMRSELECTPALETTE = tagEMRSELECTPALETTE; -pub type PEMRSELECTPALETTE = *mut tagEMRSELECTPALETTE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRRESIZEPALETTE { - pub emr: EMR, - pub ihPal: DWORD, - pub cEntries: DWORD, -} -pub type EMRRESIZEPALETTE = tagEMRRESIZEPALETTE; -pub type PEMRRESIZEPALETTE = *mut tagEMRRESIZEPALETTE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSETPALETTEENTRIES { - pub emr: EMR, - pub ihPal: DWORD, - pub iStart: DWORD, - pub cEntries: DWORD, - pub aPalEntries: [PALETTEENTRY; 1usize], -} -pub type EMRSETPALETTEENTRIES = tagEMRSETPALETTEENTRIES; -pub type PEMRSETPALETTEENTRIES = *mut tagEMRSETPALETTEENTRIES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSETCOLORADJUSTMENT { - pub emr: EMR, - pub ColorAdjustment: COLORADJUSTMENT, -} -pub type EMRSETCOLORADJUSTMENT = tagEMRSETCOLORADJUSTMENT; -pub type PEMRSETCOLORADJUSTMENT = *mut tagEMRSETCOLORADJUSTMENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRGDICOMMENT { - pub emr: EMR, - pub cbData: DWORD, - pub Data: [BYTE; 1usize], -} -pub type EMRGDICOMMENT = tagEMRGDICOMMENT; -pub type PEMRGDICOMMENT = *mut tagEMRGDICOMMENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMREOF { - pub emr: EMR, - pub nPalEntries: DWORD, - pub offPalEntries: DWORD, - pub nSizeLast: DWORD, -} -pub type EMREOF = tagEMREOF; -pub type PEMREOF = *mut tagEMREOF; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRLINETO { - pub emr: EMR, - pub ptl: POINTL, -} -pub type EMRLINETO = tagEMRLINETO; -pub type PEMRLINETO = *mut tagEMRLINETO; -pub type EMRMOVETOEX = tagEMRLINETO; -pub type PEMRMOVETOEX = *mut tagEMRLINETO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMROFFSETCLIPRGN { - pub emr: EMR, - pub ptlOffset: POINTL, -} -pub type EMROFFSETCLIPRGN = tagEMROFFSETCLIPRGN; -pub type PEMROFFSETCLIPRGN = *mut tagEMROFFSETCLIPRGN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRFILLPATH { - pub emr: EMR, - pub rclBounds: RECTL, -} -pub type EMRFILLPATH = tagEMRFILLPATH; -pub type PEMRFILLPATH = *mut tagEMRFILLPATH; -pub type EMRSTROKEANDFILLPATH = tagEMRFILLPATH; -pub type PEMRSTROKEANDFILLPATH = *mut tagEMRFILLPATH; -pub type EMRSTROKEPATH = tagEMRFILLPATH; -pub type PEMRSTROKEPATH = *mut tagEMRFILLPATH; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMREXCLUDECLIPRECT { - pub emr: EMR, - pub rclClip: RECTL, -} -pub type EMREXCLUDECLIPRECT = tagEMREXCLUDECLIPRECT; -pub type PEMREXCLUDECLIPRECT = *mut tagEMREXCLUDECLIPRECT; -pub type EMRINTERSECTCLIPRECT = tagEMREXCLUDECLIPRECT; -pub type PEMRINTERSECTCLIPRECT = *mut tagEMREXCLUDECLIPRECT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSETVIEWPORTORGEX { - pub emr: EMR, - pub ptlOrigin: POINTL, -} -pub type EMRSETVIEWPORTORGEX = tagEMRSETVIEWPORTORGEX; -pub type PEMRSETVIEWPORTORGEX = *mut tagEMRSETVIEWPORTORGEX; -pub type EMRSETWINDOWORGEX = tagEMRSETVIEWPORTORGEX; -pub type PEMRSETWINDOWORGEX = *mut tagEMRSETVIEWPORTORGEX; -pub type EMRSETBRUSHORGEX = tagEMRSETVIEWPORTORGEX; -pub type PEMRSETBRUSHORGEX = *mut tagEMRSETVIEWPORTORGEX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSETVIEWPORTEXTEX { - pub emr: EMR, - pub szlExtent: SIZEL, -} -pub type EMRSETVIEWPORTEXTEX = tagEMRSETVIEWPORTEXTEX; -pub type PEMRSETVIEWPORTEXTEX = *mut tagEMRSETVIEWPORTEXTEX; -pub type EMRSETWINDOWEXTEX = tagEMRSETVIEWPORTEXTEX; -pub type PEMRSETWINDOWEXTEX = *mut tagEMRSETVIEWPORTEXTEX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSCALEVIEWPORTEXTEX { - pub emr: EMR, - pub xNum: LONG, - pub xDenom: LONG, - pub yNum: LONG, - pub yDenom: LONG, -} -pub type EMRSCALEVIEWPORTEXTEX = tagEMRSCALEVIEWPORTEXTEX; -pub type PEMRSCALEVIEWPORTEXTEX = *mut tagEMRSCALEVIEWPORTEXTEX; -pub type EMRSCALEWINDOWEXTEX = tagEMRSCALEVIEWPORTEXTEX; -pub type PEMRSCALEWINDOWEXTEX = *mut tagEMRSCALEVIEWPORTEXTEX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSETWORLDTRANSFORM { - pub emr: EMR, - pub xform: XFORM, -} -pub type EMRSETWORLDTRANSFORM = tagEMRSETWORLDTRANSFORM; -pub type PEMRSETWORLDTRANSFORM = *mut tagEMRSETWORLDTRANSFORM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRMODIFYWORLDTRANSFORM { - pub emr: EMR, - pub xform: XFORM, - pub iMode: DWORD, -} -pub type EMRMODIFYWORLDTRANSFORM = tagEMRMODIFYWORLDTRANSFORM; -pub type PEMRMODIFYWORLDTRANSFORM = *mut tagEMRMODIFYWORLDTRANSFORM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSETPIXELV { - pub emr: EMR, - pub ptlPixel: POINTL, - pub crColor: COLORREF, -} -pub type EMRSETPIXELV = tagEMRSETPIXELV; -pub type PEMRSETPIXELV = *mut tagEMRSETPIXELV; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMREXTFLOODFILL { - pub emr: EMR, - pub ptlStart: POINTL, - pub crColor: COLORREF, - pub iMode: DWORD, -} -pub type EMREXTFLOODFILL = tagEMREXTFLOODFILL; -pub type PEMREXTFLOODFILL = *mut tagEMREXTFLOODFILL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRELLIPSE { - pub emr: EMR, - pub rclBox: RECTL, -} -pub type EMRELLIPSE = tagEMRELLIPSE; -pub type PEMRELLIPSE = *mut tagEMRELLIPSE; -pub type EMRRECTANGLE = tagEMRELLIPSE; -pub type PEMRRECTANGLE = *mut tagEMRELLIPSE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRROUNDRECT { - pub emr: EMR, - pub rclBox: RECTL, - pub szlCorner: SIZEL, -} -pub type EMRROUNDRECT = tagEMRROUNDRECT; -pub type PEMRROUNDRECT = *mut tagEMRROUNDRECT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRARC { - pub emr: EMR, - pub rclBox: RECTL, - pub ptlStart: POINTL, - pub ptlEnd: POINTL, -} -pub type EMRARC = tagEMRARC; -pub type PEMRARC = *mut tagEMRARC; -pub type EMRARCTO = tagEMRARC; -pub type PEMRARCTO = *mut tagEMRARC; -pub type EMRCHORD = tagEMRARC; -pub type PEMRCHORD = *mut tagEMRARC; -pub type EMRPIE = tagEMRARC; -pub type PEMRPIE = *mut tagEMRARC; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRANGLEARC { - pub emr: EMR, - pub ptlCenter: POINTL, - pub nRadius: DWORD, - pub eStartAngle: FLOAT, - pub eSweepAngle: FLOAT, -} -pub type EMRANGLEARC = tagEMRANGLEARC; -pub type PEMRANGLEARC = *mut tagEMRANGLEARC; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRPOLYLINE { - pub emr: EMR, - pub rclBounds: RECTL, - pub cptl: DWORD, - pub aptl: [POINTL; 1usize], -} -pub type EMRPOLYLINE = tagEMRPOLYLINE; -pub type PEMRPOLYLINE = *mut tagEMRPOLYLINE; -pub type EMRPOLYBEZIER = tagEMRPOLYLINE; -pub type PEMRPOLYBEZIER = *mut tagEMRPOLYLINE; -pub type EMRPOLYGON = tagEMRPOLYLINE; -pub type PEMRPOLYGON = *mut tagEMRPOLYLINE; -pub type EMRPOLYBEZIERTO = tagEMRPOLYLINE; -pub type PEMRPOLYBEZIERTO = *mut tagEMRPOLYLINE; -pub type EMRPOLYLINETO = tagEMRPOLYLINE; -pub type PEMRPOLYLINETO = *mut tagEMRPOLYLINE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRPOLYLINE16 { - pub emr: EMR, - pub rclBounds: RECTL, - pub cpts: DWORD, - pub apts: [POINTS; 1usize], -} -pub type EMRPOLYLINE16 = tagEMRPOLYLINE16; -pub type PEMRPOLYLINE16 = *mut tagEMRPOLYLINE16; -pub type EMRPOLYBEZIER16 = tagEMRPOLYLINE16; -pub type PEMRPOLYBEZIER16 = *mut tagEMRPOLYLINE16; -pub type EMRPOLYGON16 = tagEMRPOLYLINE16; -pub type PEMRPOLYGON16 = *mut tagEMRPOLYLINE16; -pub type EMRPOLYBEZIERTO16 = tagEMRPOLYLINE16; -pub type PEMRPOLYBEZIERTO16 = *mut tagEMRPOLYLINE16; -pub type EMRPOLYLINETO16 = tagEMRPOLYLINE16; -pub type PEMRPOLYLINETO16 = *mut tagEMRPOLYLINE16; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRPOLYDRAW { - pub emr: EMR, - pub rclBounds: RECTL, - pub cptl: DWORD, - pub aptl: [POINTL; 1usize], - pub abTypes: [BYTE; 1usize], -} -pub type EMRPOLYDRAW = tagEMRPOLYDRAW; -pub type PEMRPOLYDRAW = *mut tagEMRPOLYDRAW; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRPOLYDRAW16 { - pub emr: EMR, - pub rclBounds: RECTL, - pub cpts: DWORD, - pub apts: [POINTS; 1usize], - pub abTypes: [BYTE; 1usize], -} -pub type EMRPOLYDRAW16 = tagEMRPOLYDRAW16; -pub type PEMRPOLYDRAW16 = *mut tagEMRPOLYDRAW16; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRPOLYPOLYLINE { - pub emr: EMR, - pub rclBounds: RECTL, - pub nPolys: DWORD, - pub cptl: DWORD, - pub aPolyCounts: [DWORD; 1usize], - pub aptl: [POINTL; 1usize], -} -pub type EMRPOLYPOLYLINE = tagEMRPOLYPOLYLINE; -pub type PEMRPOLYPOLYLINE = *mut tagEMRPOLYPOLYLINE; -pub type EMRPOLYPOLYGON = tagEMRPOLYPOLYLINE; -pub type PEMRPOLYPOLYGON = *mut tagEMRPOLYPOLYLINE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRPOLYPOLYLINE16 { - pub emr: EMR, - pub rclBounds: RECTL, - pub nPolys: DWORD, - pub cpts: DWORD, - pub aPolyCounts: [DWORD; 1usize], - pub apts: [POINTS; 1usize], -} -pub type EMRPOLYPOLYLINE16 = tagEMRPOLYPOLYLINE16; -pub type PEMRPOLYPOLYLINE16 = *mut tagEMRPOLYPOLYLINE16; -pub type EMRPOLYPOLYGON16 = tagEMRPOLYPOLYLINE16; -pub type PEMRPOLYPOLYGON16 = *mut tagEMRPOLYPOLYLINE16; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRINVERTRGN { - pub emr: EMR, - pub rclBounds: RECTL, - pub cbRgnData: DWORD, - pub RgnData: [BYTE; 1usize], -} -pub type EMRINVERTRGN = tagEMRINVERTRGN; -pub type PEMRINVERTRGN = *mut tagEMRINVERTRGN; -pub type EMRPAINTRGN = tagEMRINVERTRGN; -pub type PEMRPAINTRGN = *mut tagEMRINVERTRGN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRFILLRGN { - pub emr: EMR, - pub rclBounds: RECTL, - pub cbRgnData: DWORD, - pub ihBrush: DWORD, - pub RgnData: [BYTE; 1usize], -} -pub type EMRFILLRGN = tagEMRFILLRGN; -pub type PEMRFILLRGN = *mut tagEMRFILLRGN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRFRAMERGN { - pub emr: EMR, - pub rclBounds: RECTL, - pub cbRgnData: DWORD, - pub ihBrush: DWORD, - pub szlStroke: SIZEL, - pub RgnData: [BYTE; 1usize], -} -pub type EMRFRAMERGN = tagEMRFRAMERGN; -pub type PEMRFRAMERGN = *mut tagEMRFRAMERGN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMREXTSELECTCLIPRGN { - pub emr: EMR, - pub cbRgnData: DWORD, - pub iMode: DWORD, - pub RgnData: [BYTE; 1usize], -} -pub type EMREXTSELECTCLIPRGN = tagEMREXTSELECTCLIPRGN; -pub type PEMREXTSELECTCLIPRGN = *mut tagEMREXTSELECTCLIPRGN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMREXTTEXTOUTA { - pub emr: EMR, - pub rclBounds: RECTL, - pub iGraphicsMode: DWORD, - pub exScale: FLOAT, - pub eyScale: FLOAT, - pub emrtext: EMRTEXT, -} -pub type EMREXTTEXTOUTA = tagEMREXTTEXTOUTA; -pub type PEMREXTTEXTOUTA = *mut tagEMREXTTEXTOUTA; -pub type EMREXTTEXTOUTW = tagEMREXTTEXTOUTA; -pub type PEMREXTTEXTOUTW = *mut tagEMREXTTEXTOUTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRPOLYTEXTOUTA { - pub emr: EMR, - pub rclBounds: RECTL, - pub iGraphicsMode: DWORD, - pub exScale: FLOAT, - pub eyScale: FLOAT, - pub cStrings: LONG, - pub aemrtext: [EMRTEXT; 1usize], -} -pub type EMRPOLYTEXTOUTA = tagEMRPOLYTEXTOUTA; -pub type PEMRPOLYTEXTOUTA = *mut tagEMRPOLYTEXTOUTA; -pub type EMRPOLYTEXTOUTW = tagEMRPOLYTEXTOUTA; -pub type PEMRPOLYTEXTOUTW = *mut tagEMRPOLYTEXTOUTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRBITBLT { - pub emr: EMR, - pub rclBounds: RECTL, - pub xDest: LONG, - pub yDest: LONG, - pub cxDest: LONG, - pub cyDest: LONG, - pub dwRop: DWORD, - pub xSrc: LONG, - pub ySrc: LONG, - pub xformSrc: XFORM, - pub crBkColorSrc: COLORREF, - pub iUsageSrc: DWORD, - pub offBmiSrc: DWORD, - pub cbBmiSrc: DWORD, - pub offBitsSrc: DWORD, - pub cbBitsSrc: DWORD, -} -pub type EMRBITBLT = tagEMRBITBLT; -pub type PEMRBITBLT = *mut tagEMRBITBLT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSTRETCHBLT { - pub emr: EMR, - pub rclBounds: RECTL, - pub xDest: LONG, - pub yDest: LONG, - pub cxDest: LONG, - pub cyDest: LONG, - pub dwRop: DWORD, - pub xSrc: LONG, - pub ySrc: LONG, - pub xformSrc: XFORM, - pub crBkColorSrc: COLORREF, - pub iUsageSrc: DWORD, - pub offBmiSrc: DWORD, - pub cbBmiSrc: DWORD, - pub offBitsSrc: DWORD, - pub cbBitsSrc: DWORD, - pub cxSrc: LONG, - pub cySrc: LONG, -} -pub type EMRSTRETCHBLT = tagEMRSTRETCHBLT; -pub type PEMRSTRETCHBLT = *mut tagEMRSTRETCHBLT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRMASKBLT { - pub emr: EMR, - pub rclBounds: RECTL, - pub xDest: LONG, - pub yDest: LONG, - pub cxDest: LONG, - pub cyDest: LONG, - pub dwRop: DWORD, - pub xSrc: LONG, - pub ySrc: LONG, - pub xformSrc: XFORM, - pub crBkColorSrc: COLORREF, - pub iUsageSrc: DWORD, - pub offBmiSrc: DWORD, - pub cbBmiSrc: DWORD, - pub offBitsSrc: DWORD, - pub cbBitsSrc: DWORD, - pub xMask: LONG, - pub yMask: LONG, - pub iUsageMask: DWORD, - pub offBmiMask: DWORD, - pub cbBmiMask: DWORD, - pub offBitsMask: DWORD, - pub cbBitsMask: DWORD, -} -pub type EMRMASKBLT = tagEMRMASKBLT; -pub type PEMRMASKBLT = *mut tagEMRMASKBLT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRPLGBLT { - pub emr: EMR, - pub rclBounds: RECTL, - pub aptlDest: [POINTL; 3usize], - pub xSrc: LONG, - pub ySrc: LONG, - pub cxSrc: LONG, - pub cySrc: LONG, - pub xformSrc: XFORM, - pub crBkColorSrc: COLORREF, - pub iUsageSrc: DWORD, - pub offBmiSrc: DWORD, - pub cbBmiSrc: DWORD, - pub offBitsSrc: DWORD, - pub cbBitsSrc: DWORD, - pub xMask: LONG, - pub yMask: LONG, - pub iUsageMask: DWORD, - pub offBmiMask: DWORD, - pub cbBmiMask: DWORD, - pub offBitsMask: DWORD, - pub cbBitsMask: DWORD, -} -pub type EMRPLGBLT = tagEMRPLGBLT; -pub type PEMRPLGBLT = *mut tagEMRPLGBLT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSETDIBITSTODEVICE { - pub emr: EMR, - pub rclBounds: RECTL, - pub xDest: LONG, - pub yDest: LONG, - pub xSrc: LONG, - pub ySrc: LONG, - pub cxSrc: LONG, - pub cySrc: LONG, - pub offBmiSrc: DWORD, - pub cbBmiSrc: DWORD, - pub offBitsSrc: DWORD, - pub cbBitsSrc: DWORD, - pub iUsageSrc: DWORD, - pub iStartScan: DWORD, - pub cScans: DWORD, -} -pub type EMRSETDIBITSTODEVICE = tagEMRSETDIBITSTODEVICE; -pub type PEMRSETDIBITSTODEVICE = *mut tagEMRSETDIBITSTODEVICE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSTRETCHDIBITS { - pub emr: EMR, - pub rclBounds: RECTL, - pub xDest: LONG, - pub yDest: LONG, - pub xSrc: LONG, - pub ySrc: LONG, - pub cxSrc: LONG, - pub cySrc: LONG, - pub offBmiSrc: DWORD, - pub cbBmiSrc: DWORD, - pub offBitsSrc: DWORD, - pub cbBitsSrc: DWORD, - pub iUsageSrc: DWORD, - pub dwRop: DWORD, - pub cxDest: LONG, - pub cyDest: LONG, -} -pub type EMRSTRETCHDIBITS = tagEMRSTRETCHDIBITS; -pub type PEMRSTRETCHDIBITS = *mut tagEMRSTRETCHDIBITS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMREXTCREATEFONTINDIRECTW { - pub emr: EMR, - pub ihFont: DWORD, - pub elfw: EXTLOGFONTW, -} -pub type EMREXTCREATEFONTINDIRECTW = tagEMREXTCREATEFONTINDIRECTW; -pub type PEMREXTCREATEFONTINDIRECTW = *mut tagEMREXTCREATEFONTINDIRECTW; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRCREATEPALETTE { - pub emr: EMR, - pub ihPal: DWORD, - pub lgpl: LOGPALETTE, -} -pub type EMRCREATEPALETTE = tagEMRCREATEPALETTE; -pub type PEMRCREATEPALETTE = *mut tagEMRCREATEPALETTE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRCREATEPEN { - pub emr: EMR, - pub ihPen: DWORD, - pub lopn: LOGPEN, -} -pub type EMRCREATEPEN = tagEMRCREATEPEN; -pub type PEMRCREATEPEN = *mut tagEMRCREATEPEN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMREXTCREATEPEN { - pub emr: EMR, - pub ihPen: DWORD, - pub offBmi: DWORD, - pub cbBmi: DWORD, - pub offBits: DWORD, - pub cbBits: DWORD, - pub elp: EXTLOGPEN32, -} -pub type EMREXTCREATEPEN = tagEMREXTCREATEPEN; -pub type PEMREXTCREATEPEN = *mut tagEMREXTCREATEPEN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRCREATEBRUSHINDIRECT { - pub emr: EMR, - pub ihBrush: DWORD, - pub lb: LOGBRUSH32, -} -pub type EMRCREATEBRUSHINDIRECT = tagEMRCREATEBRUSHINDIRECT; -pub type PEMRCREATEBRUSHINDIRECT = *mut tagEMRCREATEBRUSHINDIRECT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRCREATEMONOBRUSH { - pub emr: EMR, - pub ihBrush: DWORD, - pub iUsage: DWORD, - pub offBmi: DWORD, - pub cbBmi: DWORD, - pub offBits: DWORD, - pub cbBits: DWORD, -} -pub type EMRCREATEMONOBRUSH = tagEMRCREATEMONOBRUSH; -pub type PEMRCREATEMONOBRUSH = *mut tagEMRCREATEMONOBRUSH; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRCREATEDIBPATTERNBRUSHPT { - pub emr: EMR, - pub ihBrush: DWORD, - pub iUsage: DWORD, - pub offBmi: DWORD, - pub cbBmi: DWORD, - pub offBits: DWORD, - pub cbBits: DWORD, -} -pub type EMRCREATEDIBPATTERNBRUSHPT = tagEMRCREATEDIBPATTERNBRUSHPT; -pub type PEMRCREATEDIBPATTERNBRUSHPT = *mut tagEMRCREATEDIBPATTERNBRUSHPT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRFORMAT { - pub dSignature: DWORD, - pub nVersion: DWORD, - pub cbData: DWORD, - pub offData: DWORD, -} -pub type EMRFORMAT = tagEMRFORMAT; -pub type PEMRFORMAT = *mut tagEMRFORMAT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRGLSRECORD { - pub emr: EMR, - pub cbData: DWORD, - pub Data: [BYTE; 1usize], -} -pub type EMRGLSRECORD = tagEMRGLSRECORD; -pub type PEMRGLSRECORD = *mut tagEMRGLSRECORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRGLSBOUNDEDRECORD { - pub emr: EMR, - pub rclBounds: RECTL, - pub cbData: DWORD, - pub Data: [BYTE; 1usize], -} -pub type EMRGLSBOUNDEDRECORD = tagEMRGLSBOUNDEDRECORD; -pub type PEMRGLSBOUNDEDRECORD = *mut tagEMRGLSBOUNDEDRECORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRPIXELFORMAT { - pub emr: EMR, - pub pfd: PIXELFORMATDESCRIPTOR, -} -pub type EMRPIXELFORMAT = tagEMRPIXELFORMAT; -pub type PEMRPIXELFORMAT = *mut tagEMRPIXELFORMAT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRCREATECOLORSPACE { - pub emr: EMR, - pub ihCS: DWORD, - pub lcs: LOGCOLORSPACEA, -} -pub type EMRCREATECOLORSPACE = tagEMRCREATECOLORSPACE; -pub type PEMRCREATECOLORSPACE = *mut tagEMRCREATECOLORSPACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSETCOLORSPACE { - pub emr: EMR, - pub ihCS: DWORD, -} -pub type EMRSETCOLORSPACE = tagEMRSETCOLORSPACE; -pub type PEMRSETCOLORSPACE = *mut tagEMRSETCOLORSPACE; -pub type EMRSELECTCOLORSPACE = tagEMRSETCOLORSPACE; -pub type PEMRSELECTCOLORSPACE = *mut tagEMRSETCOLORSPACE; -pub type EMRDELETECOLORSPACE = tagEMRSETCOLORSPACE; -pub type PEMRDELETECOLORSPACE = *mut tagEMRSETCOLORSPACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMREXTESCAPE { - pub emr: EMR, - pub iEscape: INT, - pub cbEscData: INT, - pub EscData: [BYTE; 1usize], -} -pub type EMREXTESCAPE = tagEMREXTESCAPE; -pub type PEMREXTESCAPE = *mut tagEMREXTESCAPE; -pub type EMRDRAWESCAPE = tagEMREXTESCAPE; -pub type PEMRDRAWESCAPE = *mut tagEMREXTESCAPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRNAMEDESCAPE { - pub emr: EMR, - pub iEscape: INT, - pub cbDriver: INT, - pub cbEscData: INT, - pub EscData: [BYTE; 1usize], -} -pub type EMRNAMEDESCAPE = tagEMRNAMEDESCAPE; -pub type PEMRNAMEDESCAPE = *mut tagEMRNAMEDESCAPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRSETICMPROFILE { - pub emr: EMR, - pub dwFlags: DWORD, - pub cbName: DWORD, - pub cbData: DWORD, - pub Data: [BYTE; 1usize], -} -pub type EMRSETICMPROFILE = tagEMRSETICMPROFILE; -pub type PEMRSETICMPROFILE = *mut tagEMRSETICMPROFILE; -pub type EMRSETICMPROFILEA = tagEMRSETICMPROFILE; -pub type PEMRSETICMPROFILEA = *mut tagEMRSETICMPROFILE; -pub type EMRSETICMPROFILEW = tagEMRSETICMPROFILE; -pub type PEMRSETICMPROFILEW = *mut tagEMRSETICMPROFILE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRCREATECOLORSPACEW { - pub emr: EMR, - pub ihCS: DWORD, - pub lcs: LOGCOLORSPACEW, - pub dwFlags: DWORD, - pub cbData: DWORD, - pub Data: [BYTE; 1usize], -} -pub type EMRCREATECOLORSPACEW = tagEMRCREATECOLORSPACEW; -pub type PEMRCREATECOLORSPACEW = *mut tagEMRCREATECOLORSPACEW; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCOLORMATCHTOTARGET { - pub emr: EMR, - pub dwAction: DWORD, - pub dwFlags: DWORD, - pub cbName: DWORD, - pub cbData: DWORD, - pub Data: [BYTE; 1usize], -} -pub type EMRCOLORMATCHTOTARGET = tagCOLORMATCHTOTARGET; -pub type PEMRCOLORMATCHTOTARGET = *mut tagCOLORMATCHTOTARGET; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCOLORCORRECTPALETTE { - pub emr: EMR, - pub ihPalette: DWORD, - pub nFirstEntry: DWORD, - pub nPalEntries: DWORD, - pub nReserved: DWORD, -} -pub type EMRCOLORCORRECTPALETTE = tagCOLORCORRECTPALETTE; -pub type PEMRCOLORCORRECTPALETTE = *mut tagCOLORCORRECTPALETTE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRALPHABLEND { - pub emr: EMR, - pub rclBounds: RECTL, - pub xDest: LONG, - pub yDest: LONG, - pub cxDest: LONG, - pub cyDest: LONG, - pub dwRop: DWORD, - pub xSrc: LONG, - pub ySrc: LONG, - pub xformSrc: XFORM, - pub crBkColorSrc: COLORREF, - pub iUsageSrc: DWORD, - pub offBmiSrc: DWORD, - pub cbBmiSrc: DWORD, - pub offBitsSrc: DWORD, - pub cbBitsSrc: DWORD, - pub cxSrc: LONG, - pub cySrc: LONG, -} -pub type EMRALPHABLEND = tagEMRALPHABLEND; -pub type PEMRALPHABLEND = *mut tagEMRALPHABLEND; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRGRADIENTFILL { - pub emr: EMR, - pub rclBounds: RECTL, - pub nVer: DWORD, - pub nTri: DWORD, - pub ulMode: ULONG, - pub Ver: [TRIVERTEX; 1usize], -} -pub type EMRGRADIENTFILL = tagEMRGRADIENTFILL; -pub type PEMRGRADIENTFILL = *mut tagEMRGRADIENTFILL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEMRTRANSPARENTBLT { - pub emr: EMR, - pub rclBounds: RECTL, - pub xDest: LONG, - pub yDest: LONG, - pub cxDest: LONG, - pub cyDest: LONG, - pub dwRop: DWORD, - pub xSrc: LONG, - pub ySrc: LONG, - pub xformSrc: XFORM, - pub crBkColorSrc: COLORREF, - pub iUsageSrc: DWORD, - pub offBmiSrc: DWORD, - pub cbBmiSrc: DWORD, - pub offBitsSrc: DWORD, - pub cbBitsSrc: DWORD, - pub cxSrc: LONG, - pub cySrc: LONG, -} -pub type EMRTRANSPARENTBLT = tagEMRTRANSPARENTBLT; -pub type PEMRTRANSPARENTBLT = *mut tagEMRTRANSPARENTBLT; -extern "C" { - pub fn wglCopyContext(arg1: HGLRC, arg2: HGLRC, arg3: UINT) -> BOOL; -} -extern "C" { - pub fn wglCreateContext(arg1: HDC) -> HGLRC; -} -extern "C" { - pub fn wglCreateLayerContext(arg1: HDC, arg2: ::std::os::raw::c_int) -> HGLRC; -} -extern "C" { - pub fn wglDeleteContext(arg1: HGLRC) -> BOOL; -} -extern "C" { - pub fn wglGetCurrentContext() -> HGLRC; -} -extern "C" { - pub fn wglGetCurrentDC() -> HDC; -} -extern "C" { - pub fn wglGetProcAddress(arg1: LPCSTR) -> PROC; -} -extern "C" { - pub fn wglMakeCurrent(arg1: HDC, arg2: HGLRC) -> BOOL; -} -extern "C" { - pub fn wglShareLists(arg1: HGLRC, arg2: HGLRC) -> BOOL; -} -extern "C" { - pub fn wglUseFontBitmapsA(arg1: HDC, arg2: DWORD, arg3: DWORD, arg4: DWORD) -> BOOL; -} -extern "C" { - pub fn wglUseFontBitmapsW(arg1: HDC, arg2: DWORD, arg3: DWORD, arg4: DWORD) -> BOOL; -} -extern "C" { - pub fn SwapBuffers(arg1: HDC) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _POINTFLOAT { - pub x: FLOAT, - pub y: FLOAT, -} -pub type POINTFLOAT = _POINTFLOAT; -pub type PPOINTFLOAT = *mut _POINTFLOAT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _GLYPHMETRICSFLOAT { - pub gmfBlackBoxX: FLOAT, - pub gmfBlackBoxY: FLOAT, - pub gmfptGlyphOrigin: POINTFLOAT, - pub gmfCellIncX: FLOAT, - pub gmfCellIncY: FLOAT, -} -pub type GLYPHMETRICSFLOAT = _GLYPHMETRICSFLOAT; -pub type PGLYPHMETRICSFLOAT = *mut _GLYPHMETRICSFLOAT; -pub type LPGLYPHMETRICSFLOAT = *mut _GLYPHMETRICSFLOAT; -extern "C" { - pub fn wglUseFontOutlinesA( - arg1: HDC, - arg2: DWORD, - arg3: DWORD, - arg4: DWORD, - arg5: FLOAT, - arg6: FLOAT, - arg7: ::std::os::raw::c_int, - arg8: LPGLYPHMETRICSFLOAT, - ) -> BOOL; -} -extern "C" { - pub fn wglUseFontOutlinesW( - arg1: HDC, - arg2: DWORD, - arg3: DWORD, - arg4: DWORD, - arg5: FLOAT, - arg6: FLOAT, - arg7: ::std::os::raw::c_int, - arg8: LPGLYPHMETRICSFLOAT, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagLAYERPLANEDESCRIPTOR { - pub nSize: WORD, - pub nVersion: WORD, - pub dwFlags: DWORD, - pub iPixelType: BYTE, - pub cColorBits: BYTE, - pub cRedBits: BYTE, - pub cRedShift: BYTE, - pub cGreenBits: BYTE, - pub cGreenShift: BYTE, - pub cBlueBits: BYTE, - pub cBlueShift: BYTE, - pub cAlphaBits: BYTE, - pub cAlphaShift: BYTE, - pub cAccumBits: BYTE, - pub cAccumRedBits: BYTE, - pub cAccumGreenBits: BYTE, - pub cAccumBlueBits: BYTE, - pub cAccumAlphaBits: BYTE, - pub cDepthBits: BYTE, - pub cStencilBits: BYTE, - pub cAuxBuffers: BYTE, - pub iLayerPlane: BYTE, - pub bReserved: BYTE, - pub crTransparent: COLORREF, -} -pub type LAYERPLANEDESCRIPTOR = tagLAYERPLANEDESCRIPTOR; -pub type PLAYERPLANEDESCRIPTOR = *mut tagLAYERPLANEDESCRIPTOR; -pub type LPLAYERPLANEDESCRIPTOR = *mut tagLAYERPLANEDESCRIPTOR; -extern "C" { - pub fn wglDescribeLayerPlane( - arg1: HDC, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_int, - arg4: UINT, - arg5: LPLAYERPLANEDESCRIPTOR, - ) -> BOOL; -} -extern "C" { - pub fn wglSetLayerPaletteEntries( - arg1: HDC, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_int, - arg4: ::std::os::raw::c_int, - arg5: *const COLORREF, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn wglGetLayerPaletteEntries( - arg1: HDC, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_int, - arg4: ::std::os::raw::c_int, - arg5: *mut COLORREF, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn wglRealizeLayerPalette(arg1: HDC, arg2: ::std::os::raw::c_int, arg3: BOOL) -> BOOL; -} -extern "C" { - pub fn wglSwapLayerBuffers(arg1: HDC, arg2: UINT) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WGLSWAP { - pub hdc: HDC, - pub uiFlags: UINT, -} -pub type WGLSWAP = _WGLSWAP; -pub type PWGLSWAP = *mut _WGLSWAP; -pub type LPWGLSWAP = *mut _WGLSWAP; -extern "C" { - pub fn wglSwapMultipleBuffers(arg1: UINT, arg2: *const WGLSWAP) -> DWORD; -} -pub type HDWP = HANDLE; -pub type MENUTEMPLATEA = ::std::os::raw::c_void; -pub type MENUTEMPLATEW = ::std::os::raw::c_void; -pub type MENUTEMPLATE = MENUTEMPLATEA; -pub type LPMENUTEMPLATEA = PVOID; -pub type LPMENUTEMPLATEW = PVOID; -pub type LPMENUTEMPLATE = LPMENUTEMPLATEA; -pub type WNDPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> LRESULT, ->; -pub type DLGPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> INT_PTR, ->; -pub type TIMERPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: UINT_PTR, arg4: DWORD), ->; -pub type GRAYSTRINGPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: HDC, arg2: LPARAM, arg3: ::std::os::raw::c_int) -> BOOL, ->; -pub type WNDENUMPROC = - ::std::option::Option BOOL>; -pub type HOOKPROC = ::std::option::Option< - unsafe extern "C" fn(code: ::std::os::raw::c_int, wParam: WPARAM, lParam: LPARAM) -> LRESULT, ->; -pub type SENDASYNCPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: ULONG_PTR, arg4: LRESULT), ->; -pub type PROPENUMPROCA = - ::std::option::Option BOOL>; -pub type PROPENUMPROCW = - ::std::option::Option BOOL>; -pub type PROPENUMPROCEXA = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: LPSTR, arg3: HANDLE, arg4: ULONG_PTR) -> BOOL, ->; -pub type PROPENUMPROCEXW = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: LPWSTR, arg3: HANDLE, arg4: ULONG_PTR) -> BOOL, ->; -pub type EDITWORDBREAKPROCA = ::std::option::Option< - unsafe extern "C" fn( - lpch: LPSTR, - ichCurrent: ::std::os::raw::c_int, - cch: ::std::os::raw::c_int, - code: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type EDITWORDBREAKPROCW = ::std::option::Option< - unsafe extern "C" fn( - lpch: LPWSTR, - ichCurrent: ::std::os::raw::c_int, - cch: ::std::os::raw::c_int, - code: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type DRAWSTATEPROC = ::std::option::Option< - unsafe extern "C" fn( - hdc: HDC, - lData: LPARAM, - wData: WPARAM, - cx: ::std::os::raw::c_int, - cy: ::std::os::raw::c_int, - ) -> BOOL, ->; -pub type PROPENUMPROC = PROPENUMPROCA; -pub type PROPENUMPROCEX = PROPENUMPROCEXA; -pub type EDITWORDBREAKPROC = EDITWORDBREAKPROCA; -pub type NAMEENUMPROCA = - ::std::option::Option BOOL>; -pub type NAMEENUMPROCW = - ::std::option::Option BOOL>; -pub type WINSTAENUMPROCA = NAMEENUMPROCA; -pub type DESKTOPENUMPROCA = NAMEENUMPROCA; -pub type WINSTAENUMPROCW = NAMEENUMPROCW; -pub type DESKTOPENUMPROCW = NAMEENUMPROCW; -pub type WINSTAENUMPROC = WINSTAENUMPROCA; -pub type DESKTOPENUMPROC = DESKTOPENUMPROCA; -extern "C" { - pub fn wvsprintfA(arg1: LPSTR, arg2: LPCSTR, arglist: va_list) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn wvsprintfW(arg1: LPWSTR, arg2: LPCWSTR, arglist: va_list) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn wsprintfA(arg1: LPSTR, arg2: LPCSTR, ...) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn wsprintfW(arg1: LPWSTR, arg2: LPCWSTR, ...) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCBT_CREATEWNDA { - pub lpcs: *mut tagCREATESTRUCTA, - pub hwndInsertAfter: HWND, -} -pub type CBT_CREATEWNDA = tagCBT_CREATEWNDA; -pub type LPCBT_CREATEWNDA = *mut tagCBT_CREATEWNDA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCBT_CREATEWNDW { - pub lpcs: *mut tagCREATESTRUCTW, - pub hwndInsertAfter: HWND, -} -pub type CBT_CREATEWNDW = tagCBT_CREATEWNDW; -pub type LPCBT_CREATEWNDW = *mut tagCBT_CREATEWNDW; -pub type CBT_CREATEWND = CBT_CREATEWNDA; -pub type LPCBT_CREATEWND = LPCBT_CREATEWNDA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCBTACTIVATESTRUCT { - pub fMouse: BOOL, - pub hWndActive: HWND, -} -pub type CBTACTIVATESTRUCT = tagCBTACTIVATESTRUCT; -pub type LPCBTACTIVATESTRUCT = *mut tagCBTACTIVATESTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagWTSSESSION_NOTIFICATION { - pub cbSize: DWORD, - pub dwSessionId: DWORD, -} -pub type WTSSESSION_NOTIFICATION = tagWTSSESSION_NOTIFICATION; -pub type PWTSSESSION_NOTIFICATION = *mut tagWTSSESSION_NOTIFICATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SHELLHOOKINFO { - pub hwnd: HWND, - pub rc: RECT, -} -pub type LPSHELLHOOKINFO = *mut SHELLHOOKINFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEVENTMSG { - pub message: UINT, - pub paramL: UINT, - pub paramH: UINT, - pub time: DWORD, - pub hwnd: HWND, -} -pub type EVENTMSG = tagEVENTMSG; -pub type PEVENTMSGMSG = *mut tagEVENTMSG; -pub type NPEVENTMSGMSG = *mut tagEVENTMSG; -pub type LPEVENTMSGMSG = *mut tagEVENTMSG; -pub type PEVENTMSG = *mut tagEVENTMSG; -pub type NPEVENTMSG = *mut tagEVENTMSG; -pub type LPEVENTMSG = *mut tagEVENTMSG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCWPSTRUCT { - pub lParam: LPARAM, - pub wParam: WPARAM, - pub message: UINT, - pub hwnd: HWND, -} -pub type CWPSTRUCT = tagCWPSTRUCT; -pub type PCWPSTRUCT = *mut tagCWPSTRUCT; -pub type NPCWPSTRUCT = *mut tagCWPSTRUCT; -pub type LPCWPSTRUCT = *mut tagCWPSTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCWPRETSTRUCT { - pub lResult: LRESULT, - pub lParam: LPARAM, - pub wParam: WPARAM, - pub message: UINT, - pub hwnd: HWND, -} -pub type CWPRETSTRUCT = tagCWPRETSTRUCT; -pub type PCWPRETSTRUCT = *mut tagCWPRETSTRUCT; -pub type NPCWPRETSTRUCT = *mut tagCWPRETSTRUCT; -pub type LPCWPRETSTRUCT = *mut tagCWPRETSTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagKBDLLHOOKSTRUCT { - pub vkCode: DWORD, - pub scanCode: DWORD, - pub flags: DWORD, - pub time: DWORD, - pub dwExtraInfo: ULONG_PTR, -} -pub type KBDLLHOOKSTRUCT = tagKBDLLHOOKSTRUCT; -pub type LPKBDLLHOOKSTRUCT = *mut tagKBDLLHOOKSTRUCT; -pub type PKBDLLHOOKSTRUCT = *mut tagKBDLLHOOKSTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMSLLHOOKSTRUCT { - pub pt: POINT, - pub mouseData: DWORD, - pub flags: DWORD, - pub time: DWORD, - pub dwExtraInfo: ULONG_PTR, -} -pub type MSLLHOOKSTRUCT = tagMSLLHOOKSTRUCT; -pub type LPMSLLHOOKSTRUCT = *mut tagMSLLHOOKSTRUCT; -pub type PMSLLHOOKSTRUCT = *mut tagMSLLHOOKSTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagDEBUGHOOKINFO { - pub idThread: DWORD, - pub idThreadInstaller: DWORD, - pub lParam: LPARAM, - pub wParam: WPARAM, - pub code: ::std::os::raw::c_int, -} -pub type DEBUGHOOKINFO = tagDEBUGHOOKINFO; -pub type PDEBUGHOOKINFO = *mut tagDEBUGHOOKINFO; -pub type NPDEBUGHOOKINFO = *mut tagDEBUGHOOKINFO; -pub type LPDEBUGHOOKINFO = *mut tagDEBUGHOOKINFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMOUSEHOOKSTRUCT { - pub pt: POINT, - pub hwnd: HWND, - pub wHitTestCode: UINT, - pub dwExtraInfo: ULONG_PTR, -} -pub type MOUSEHOOKSTRUCT = tagMOUSEHOOKSTRUCT; -pub type LPMOUSEHOOKSTRUCT = *mut tagMOUSEHOOKSTRUCT; -pub type PMOUSEHOOKSTRUCT = *mut tagMOUSEHOOKSTRUCT; -#[repr(C)] -#[repr(align(8))] -#[derive(Debug, Copy, Clone)] -pub struct tagMOUSEHOOKSTRUCTEX { - pub __bindgen_padding_0: [u32; 8usize], - pub mouseData: DWORD, -} -pub type MOUSEHOOKSTRUCTEX = tagMOUSEHOOKSTRUCTEX; -pub type LPMOUSEHOOKSTRUCTEX = *mut tagMOUSEHOOKSTRUCTEX; -pub type PMOUSEHOOKSTRUCTEX = *mut tagMOUSEHOOKSTRUCTEX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagHARDWAREHOOKSTRUCT { - pub hwnd: HWND, - pub message: UINT, - pub wParam: WPARAM, - pub lParam: LPARAM, -} -pub type HARDWAREHOOKSTRUCT = tagHARDWAREHOOKSTRUCT; -pub type LPHARDWAREHOOKSTRUCT = *mut tagHARDWAREHOOKSTRUCT; -pub type PHARDWAREHOOKSTRUCT = *mut tagHARDWAREHOOKSTRUCT; -extern "C" { - pub fn LoadKeyboardLayoutA(pwszKLID: LPCSTR, Flags: UINT) -> HKL; -} -extern "C" { - pub fn LoadKeyboardLayoutW(pwszKLID: LPCWSTR, Flags: UINT) -> HKL; -} -extern "C" { - pub fn ActivateKeyboardLayout(hkl: HKL, Flags: UINT) -> HKL; -} -extern "C" { - pub fn ToUnicodeEx( - wVirtKey: UINT, - wScanCode: UINT, - lpKeyState: *const BYTE, - pwszBuff: LPWSTR, - cchBuff: ::std::os::raw::c_int, - wFlags: UINT, - dwhkl: HKL, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn UnloadKeyboardLayout(hkl: HKL) -> BOOL; -} -extern "C" { - pub fn GetKeyboardLayoutNameA(pwszKLID: LPSTR) -> BOOL; -} -extern "C" { - pub fn GetKeyboardLayoutNameW(pwszKLID: LPWSTR) -> BOOL; -} -extern "C" { - pub fn GetKeyboardLayoutList( - nBuff: ::std::os::raw::c_int, - lpList: *mut HKL, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetKeyboardLayout(idThread: DWORD) -> HKL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMOUSEMOVEPOINT { - pub x: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, - pub time: DWORD, - pub dwExtraInfo: ULONG_PTR, -} -pub type MOUSEMOVEPOINT = tagMOUSEMOVEPOINT; -pub type PMOUSEMOVEPOINT = *mut tagMOUSEMOVEPOINT; -pub type LPMOUSEMOVEPOINT = *mut tagMOUSEMOVEPOINT; -extern "C" { - pub fn GetMouseMovePointsEx( - cbSize: UINT, - lppt: LPMOUSEMOVEPOINT, - lpptBuf: LPMOUSEMOVEPOINT, - nBufPoints: ::std::os::raw::c_int, - resolution: DWORD, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn CreateDesktopA( - lpszDesktop: LPCSTR, - lpszDevice: LPCSTR, - pDevmode: *mut DEVMODEA, - dwFlags: DWORD, - dwDesiredAccess: ACCESS_MASK, - lpsa: LPSECURITY_ATTRIBUTES, - ) -> HDESK; -} -extern "C" { - pub fn CreateDesktopW( - lpszDesktop: LPCWSTR, - lpszDevice: LPCWSTR, - pDevmode: *mut DEVMODEW, - dwFlags: DWORD, - dwDesiredAccess: ACCESS_MASK, - lpsa: LPSECURITY_ATTRIBUTES, - ) -> HDESK; -} -extern "C" { - pub fn CreateDesktopExA( - lpszDesktop: LPCSTR, - lpszDevice: LPCSTR, - pDevmode: *mut DEVMODEA, - dwFlags: DWORD, - dwDesiredAccess: ACCESS_MASK, - lpsa: LPSECURITY_ATTRIBUTES, - ulHeapSize: ULONG, - pvoid: PVOID, - ) -> HDESK; -} -extern "C" { - pub fn CreateDesktopExW( - lpszDesktop: LPCWSTR, - lpszDevice: LPCWSTR, - pDevmode: *mut DEVMODEW, - dwFlags: DWORD, - dwDesiredAccess: ACCESS_MASK, - lpsa: LPSECURITY_ATTRIBUTES, - ulHeapSize: ULONG, - pvoid: PVOID, - ) -> HDESK; -} -extern "C" { - pub fn OpenDesktopA( - lpszDesktop: LPCSTR, - dwFlags: DWORD, - fInherit: BOOL, - dwDesiredAccess: ACCESS_MASK, - ) -> HDESK; -} -extern "C" { - pub fn OpenDesktopW( - lpszDesktop: LPCWSTR, - dwFlags: DWORD, - fInherit: BOOL, - dwDesiredAccess: ACCESS_MASK, - ) -> HDESK; -} -extern "C" { - pub fn OpenInputDesktop(dwFlags: DWORD, fInherit: BOOL, dwDesiredAccess: ACCESS_MASK) -> HDESK; -} -extern "C" { - pub fn EnumDesktopsA(hwinsta: HWINSTA, lpEnumFunc: DESKTOPENUMPROCA, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn EnumDesktopsW(hwinsta: HWINSTA, lpEnumFunc: DESKTOPENUMPROCW, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn EnumDesktopWindows(hDesktop: HDESK, lpfn: WNDENUMPROC, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn SwitchDesktop(hDesktop: HDESK) -> BOOL; -} -extern "C" { - pub fn SetThreadDesktop(hDesktop: HDESK) -> BOOL; -} -extern "C" { - pub fn CloseDesktop(hDesktop: HDESK) -> BOOL; -} -extern "C" { - pub fn GetThreadDesktop(dwThreadId: DWORD) -> HDESK; -} -extern "C" { - pub fn CreateWindowStationA( - lpwinsta: LPCSTR, - dwFlags: DWORD, - dwDesiredAccess: ACCESS_MASK, - lpsa: LPSECURITY_ATTRIBUTES, - ) -> HWINSTA; -} -extern "C" { - pub fn CreateWindowStationW( - lpwinsta: LPCWSTR, - dwFlags: DWORD, - dwDesiredAccess: ACCESS_MASK, - lpsa: LPSECURITY_ATTRIBUTES, - ) -> HWINSTA; -} -extern "C" { - pub fn OpenWindowStationA( - lpszWinSta: LPCSTR, - fInherit: BOOL, - dwDesiredAccess: ACCESS_MASK, - ) -> HWINSTA; -} -extern "C" { - pub fn OpenWindowStationW( - lpszWinSta: LPCWSTR, - fInherit: BOOL, - dwDesiredAccess: ACCESS_MASK, - ) -> HWINSTA; -} -extern "C" { - pub fn EnumWindowStationsA(lpEnumFunc: WINSTAENUMPROCA, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn EnumWindowStationsW(lpEnumFunc: WINSTAENUMPROCW, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn CloseWindowStation(hWinSta: HWINSTA) -> BOOL; -} -extern "C" { - pub fn SetProcessWindowStation(hWinSta: HWINSTA) -> BOOL; -} -extern "C" { - pub fn GetProcessWindowStation() -> HWINSTA; -} -extern "C" { - pub fn SetUserObjectSecurity( - hObj: HANDLE, - pSIRequested: PSECURITY_INFORMATION, - pSID: PSECURITY_DESCRIPTOR, - ) -> BOOL; -} -extern "C" { - pub fn GetUserObjectSecurity( - hObj: HANDLE, - pSIRequested: PSECURITY_INFORMATION, - pSID: PSECURITY_DESCRIPTOR, - nLength: DWORD, - lpnLengthNeeded: LPDWORD, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagUSEROBJECTFLAGS { - pub fInherit: BOOL, - pub fReserved: BOOL, - pub dwFlags: DWORD, -} -pub type USEROBJECTFLAGS = tagUSEROBJECTFLAGS; -pub type PUSEROBJECTFLAGS = *mut tagUSEROBJECTFLAGS; -extern "C" { - pub fn GetUserObjectInformationA( - hObj: HANDLE, - nIndex: ::std::os::raw::c_int, - pvInfo: PVOID, - nLength: DWORD, - lpnLengthNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetUserObjectInformationW( - hObj: HANDLE, - nIndex: ::std::os::raw::c_int, - pvInfo: PVOID, - nLength: DWORD, - lpnLengthNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetUserObjectInformationA( - hObj: HANDLE, - nIndex: ::std::os::raw::c_int, - pvInfo: PVOID, - nLength: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetUserObjectInformationW( - hObj: HANDLE, - nIndex: ::std::os::raw::c_int, - pvInfo: PVOID, - nLength: DWORD, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagWNDCLASSEXA { - pub cbSize: UINT, - pub style: UINT, - pub lpfnWndProc: WNDPROC, - pub cbClsExtra: ::std::os::raw::c_int, - pub cbWndExtra: ::std::os::raw::c_int, - pub hInstance: HINSTANCE, - pub hIcon: HICON, - pub hCursor: HCURSOR, - pub hbrBackground: HBRUSH, - pub lpszMenuName: LPCSTR, - pub lpszClassName: LPCSTR, - pub hIconSm: HICON, -} -pub type WNDCLASSEXA = tagWNDCLASSEXA; -pub type PWNDCLASSEXA = *mut tagWNDCLASSEXA; -pub type NPWNDCLASSEXA = *mut tagWNDCLASSEXA; -pub type LPWNDCLASSEXA = *mut tagWNDCLASSEXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagWNDCLASSEXW { - pub cbSize: UINT, - pub style: UINT, - pub lpfnWndProc: WNDPROC, - pub cbClsExtra: ::std::os::raw::c_int, - pub cbWndExtra: ::std::os::raw::c_int, - pub hInstance: HINSTANCE, - pub hIcon: HICON, - pub hCursor: HCURSOR, - pub hbrBackground: HBRUSH, - pub lpszMenuName: LPCWSTR, - pub lpszClassName: LPCWSTR, - pub hIconSm: HICON, -} -pub type WNDCLASSEXW = tagWNDCLASSEXW; -pub type PWNDCLASSEXW = *mut tagWNDCLASSEXW; -pub type NPWNDCLASSEXW = *mut tagWNDCLASSEXW; -pub type LPWNDCLASSEXW = *mut tagWNDCLASSEXW; -pub type WNDCLASSEX = WNDCLASSEXA; -pub type PWNDCLASSEX = PWNDCLASSEXA; -pub type NPWNDCLASSEX = NPWNDCLASSEXA; -pub type LPWNDCLASSEX = LPWNDCLASSEXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagWNDCLASSA { - pub style: UINT, - pub lpfnWndProc: WNDPROC, - pub cbClsExtra: ::std::os::raw::c_int, - pub cbWndExtra: ::std::os::raw::c_int, - pub hInstance: HINSTANCE, - pub hIcon: HICON, - pub hCursor: HCURSOR, - pub hbrBackground: HBRUSH, - pub lpszMenuName: LPCSTR, - pub lpszClassName: LPCSTR, -} -pub type WNDCLASSA = tagWNDCLASSA; -pub type PWNDCLASSA = *mut tagWNDCLASSA; -pub type NPWNDCLASSA = *mut tagWNDCLASSA; -pub type LPWNDCLASSA = *mut tagWNDCLASSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagWNDCLASSW { - pub style: UINT, - pub lpfnWndProc: WNDPROC, - pub cbClsExtra: ::std::os::raw::c_int, - pub cbWndExtra: ::std::os::raw::c_int, - pub hInstance: HINSTANCE, - pub hIcon: HICON, - pub hCursor: HCURSOR, - pub hbrBackground: HBRUSH, - pub lpszMenuName: LPCWSTR, - pub lpszClassName: LPCWSTR, -} -pub type WNDCLASSW = tagWNDCLASSW; -pub type PWNDCLASSW = *mut tagWNDCLASSW; -pub type NPWNDCLASSW = *mut tagWNDCLASSW; -pub type LPWNDCLASSW = *mut tagWNDCLASSW; -pub type WNDCLASS = WNDCLASSA; -pub type PWNDCLASS = PWNDCLASSA; -pub type NPWNDCLASS = NPWNDCLASSA; -pub type LPWNDCLASS = LPWNDCLASSA; -extern "C" { - pub fn IsHungAppWindow(hwnd: HWND) -> BOOL; -} -extern "C" { - pub fn DisableProcessWindowsGhosting(); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMSG { - pub hwnd: HWND, - pub message: UINT, - pub wParam: WPARAM, - pub lParam: LPARAM, - pub time: DWORD, - pub pt: POINT, -} -pub type MSG = tagMSG; -pub type PMSG = *mut tagMSG; -pub type NPMSG = *mut tagMSG; -pub type LPMSG = *mut tagMSG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMINMAXINFO { - pub ptReserved: POINT, - pub ptMaxSize: POINT, - pub ptMaxPosition: POINT, - pub ptMinTrackSize: POINT, - pub ptMaxTrackSize: POINT, -} -pub type MINMAXINFO = tagMINMAXINFO; -pub type PMINMAXINFO = *mut tagMINMAXINFO; -pub type LPMINMAXINFO = *mut tagMINMAXINFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCOPYDATASTRUCT { - pub dwData: ULONG_PTR, - pub cbData: DWORD, - pub lpData: PVOID, -} -pub type COPYDATASTRUCT = tagCOPYDATASTRUCT; -pub type PCOPYDATASTRUCT = *mut tagCOPYDATASTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMDINEXTMENU { - pub hmenuIn: HMENU, - pub hmenuNext: HMENU, - pub hwndNext: HWND, -} -pub type MDINEXTMENU = tagMDINEXTMENU; -pub type PMDINEXTMENU = *mut tagMDINEXTMENU; -pub type LPMDINEXTMENU = *mut tagMDINEXTMENU; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct POWERBROADCAST_SETTING { - pub PowerSetting: GUID, - pub DataLength: DWORD, - pub Data: [UCHAR; 1usize], -} -pub type PPOWERBROADCAST_SETTING = *mut POWERBROADCAST_SETTING; -extern "C" { - pub fn RegisterWindowMessageA(lpString: LPCSTR) -> UINT; -} -extern "C" { - pub fn RegisterWindowMessageW(lpString: LPCWSTR) -> UINT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagWINDOWPOS { - pub hwnd: HWND, - pub hwndInsertAfter: HWND, - pub x: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, - pub cx: ::std::os::raw::c_int, - pub cy: ::std::os::raw::c_int, - pub flags: UINT, -} -pub type WINDOWPOS = tagWINDOWPOS; -pub type LPWINDOWPOS = *mut tagWINDOWPOS; -pub type PWINDOWPOS = *mut tagWINDOWPOS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagNCCALCSIZE_PARAMS { - pub rgrc: [RECT; 3usize], - pub lppos: PWINDOWPOS, -} -pub type NCCALCSIZE_PARAMS = tagNCCALCSIZE_PARAMS; -pub type LPNCCALCSIZE_PARAMS = *mut tagNCCALCSIZE_PARAMS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagTRACKMOUSEEVENT { - pub cbSize: DWORD, - pub dwFlags: DWORD, - pub hwndTrack: HWND, - pub dwHoverTime: DWORD, -} -pub type TRACKMOUSEEVENT = tagTRACKMOUSEEVENT; -pub type LPTRACKMOUSEEVENT = *mut tagTRACKMOUSEEVENT; -extern "C" { - pub fn TrackMouseEvent(lpEventTrack: LPTRACKMOUSEEVENT) -> BOOL; -} -extern "C" { - pub fn DrawEdge(hdc: HDC, qrc: LPRECT, edge: UINT, grfFlags: UINT) -> BOOL; -} -extern "C" { - pub fn DrawFrameControl(arg1: HDC, arg2: LPRECT, arg3: UINT, arg4: UINT) -> BOOL; -} -extern "C" { - pub fn DrawCaption(hwnd: HWND, hdc: HDC, lprect: *const RECT, flags: UINT) -> BOOL; -} -extern "C" { - pub fn DrawAnimatedRects( - hwnd: HWND, - idAni: ::std::os::raw::c_int, - lprcFrom: *const RECT, - lprcTo: *const RECT, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagACCEL { - pub fVirt: BYTE, - pub key: WORD, - pub cmd: WORD, -} -pub type ACCEL = tagACCEL; -pub type LPACCEL = *mut tagACCEL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPAINTSTRUCT { - pub hdc: HDC, - pub fErase: BOOL, - pub rcPaint: RECT, - pub fRestore: BOOL, - pub fIncUpdate: BOOL, - pub rgbReserved: [BYTE; 32usize], -} -pub type PAINTSTRUCT = tagPAINTSTRUCT; -pub type PPAINTSTRUCT = *mut tagPAINTSTRUCT; -pub type NPPAINTSTRUCT = *mut tagPAINTSTRUCT; -pub type LPPAINTSTRUCT = *mut tagPAINTSTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCREATESTRUCTA { - pub lpCreateParams: LPVOID, - pub hInstance: HINSTANCE, - pub hMenu: HMENU, - pub hwndParent: HWND, - pub cy: ::std::os::raw::c_int, - pub cx: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, - pub x: ::std::os::raw::c_int, - pub style: LONG, - pub lpszName: LPCSTR, - pub lpszClass: LPCSTR, - pub dwExStyle: DWORD, -} -pub type CREATESTRUCTA = tagCREATESTRUCTA; -pub type LPCREATESTRUCTA = *mut tagCREATESTRUCTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCREATESTRUCTW { - pub lpCreateParams: LPVOID, - pub hInstance: HINSTANCE, - pub hMenu: HMENU, - pub hwndParent: HWND, - pub cy: ::std::os::raw::c_int, - pub cx: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, - pub x: ::std::os::raw::c_int, - pub style: LONG, - pub lpszName: LPCWSTR, - pub lpszClass: LPCWSTR, - pub dwExStyle: DWORD, -} -pub type CREATESTRUCTW = tagCREATESTRUCTW; -pub type LPCREATESTRUCTW = *mut tagCREATESTRUCTW; -pub type CREATESTRUCT = CREATESTRUCTA; -pub type LPCREATESTRUCT = LPCREATESTRUCTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagWINDOWPLACEMENT { - pub length: UINT, - pub flags: UINT, - pub showCmd: UINT, - pub ptMinPosition: POINT, - pub ptMaxPosition: POINT, - pub rcNormalPosition: RECT, -} -pub type WINDOWPLACEMENT = tagWINDOWPLACEMENT; -pub type PWINDOWPLACEMENT = *mut WINDOWPLACEMENT; -pub type LPWINDOWPLACEMENT = *mut WINDOWPLACEMENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagNMHDR { - pub hwndFrom: HWND, - pub idFrom: UINT_PTR, - pub code: UINT, -} -pub type NMHDR = tagNMHDR; -pub type LPNMHDR = *mut NMHDR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSTYLESTRUCT { - pub styleOld: DWORD, - pub styleNew: DWORD, -} -pub type STYLESTRUCT = tagSTYLESTRUCT; -pub type LPSTYLESTRUCT = *mut tagSTYLESTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMEASUREITEMSTRUCT { - pub CtlType: UINT, - pub CtlID: UINT, - pub itemID: UINT, - pub itemWidth: UINT, - pub itemHeight: UINT, - pub itemData: ULONG_PTR, -} -pub type MEASUREITEMSTRUCT = tagMEASUREITEMSTRUCT; -pub type PMEASUREITEMSTRUCT = *mut tagMEASUREITEMSTRUCT; -pub type LPMEASUREITEMSTRUCT = *mut tagMEASUREITEMSTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagDRAWITEMSTRUCT { - pub CtlType: UINT, - pub CtlID: UINT, - pub itemID: UINT, - pub itemAction: UINT, - pub itemState: UINT, - pub hwndItem: HWND, - pub hDC: HDC, - pub rcItem: RECT, - pub itemData: ULONG_PTR, -} -pub type DRAWITEMSTRUCT = tagDRAWITEMSTRUCT; -pub type PDRAWITEMSTRUCT = *mut tagDRAWITEMSTRUCT; -pub type LPDRAWITEMSTRUCT = *mut tagDRAWITEMSTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagDELETEITEMSTRUCT { - pub CtlType: UINT, - pub CtlID: UINT, - pub itemID: UINT, - pub hwndItem: HWND, - pub itemData: ULONG_PTR, -} -pub type DELETEITEMSTRUCT = tagDELETEITEMSTRUCT; -pub type PDELETEITEMSTRUCT = *mut tagDELETEITEMSTRUCT; -pub type LPDELETEITEMSTRUCT = *mut tagDELETEITEMSTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCOMPAREITEMSTRUCT { - pub CtlType: UINT, - pub CtlID: UINT, - pub hwndItem: HWND, - pub itemID1: UINT, - pub itemData1: ULONG_PTR, - pub itemID2: UINT, - pub itemData2: ULONG_PTR, - pub dwLocaleId: DWORD, -} -pub type COMPAREITEMSTRUCT = tagCOMPAREITEMSTRUCT; -pub type PCOMPAREITEMSTRUCT = *mut tagCOMPAREITEMSTRUCT; -pub type LPCOMPAREITEMSTRUCT = *mut tagCOMPAREITEMSTRUCT; -extern "C" { - pub fn GetMessageA(lpMsg: LPMSG, hWnd: HWND, wMsgFilterMin: UINT, wMsgFilterMax: UINT) -> BOOL; -} -extern "C" { - pub fn GetMessageW(lpMsg: LPMSG, hWnd: HWND, wMsgFilterMin: UINT, wMsgFilterMax: UINT) -> BOOL; -} -extern "C" { - pub fn TranslateMessage(lpMsg: *const MSG) -> BOOL; -} -extern "C" { - pub fn DispatchMessageA(lpMsg: *const MSG) -> LRESULT; -} -extern "C" { - pub fn DispatchMessageW(lpMsg: *const MSG) -> LRESULT; -} -extern "C" { - pub fn SetMessageQueue(cMessagesMax: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn PeekMessageA( - lpMsg: LPMSG, - hWnd: HWND, - wMsgFilterMin: UINT, - wMsgFilterMax: UINT, - wRemoveMsg: UINT, - ) -> BOOL; -} -extern "C" { - pub fn PeekMessageW( - lpMsg: LPMSG, - hWnd: HWND, - wMsgFilterMin: UINT, - wMsgFilterMax: UINT, - wRemoveMsg: UINT, - ) -> BOOL; -} -extern "C" { - pub fn RegisterHotKey( - hWnd: HWND, - id: ::std::os::raw::c_int, - fsModifiers: UINT, - vk: UINT, - ) -> BOOL; -} -extern "C" { - pub fn UnregisterHotKey(hWnd: HWND, id: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn ExitWindowsEx(uFlags: UINT, dwReason: DWORD) -> BOOL; -} -extern "C" { - pub fn SwapMouseButton(fSwap: BOOL) -> BOOL; -} -extern "C" { - pub fn GetMessagePos() -> DWORD; -} -extern "C" { - pub fn GetMessageTime() -> LONG; -} -extern "C" { - pub fn GetMessageExtraInfo() -> LPARAM; -} -extern "C" { - pub fn GetUnpredictedMessagePos() -> DWORD; -} -extern "C" { - pub fn IsWow64Message() -> BOOL; -} -extern "C" { - pub fn SetMessageExtraInfo(lParam: LPARAM) -> LPARAM; -} -extern "C" { - pub fn SendMessageA(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; -} -extern "C" { - pub fn SendMessageW(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; -} -extern "C" { - pub fn SendMessageTimeoutA( - hWnd: HWND, - Msg: UINT, - wParam: WPARAM, - lParam: LPARAM, - fuFlags: UINT, - uTimeout: UINT, - lpdwResult: PDWORD_PTR, - ) -> LRESULT; -} -extern "C" { - pub fn SendMessageTimeoutW( - hWnd: HWND, - Msg: UINT, - wParam: WPARAM, - lParam: LPARAM, - fuFlags: UINT, - uTimeout: UINT, - lpdwResult: PDWORD_PTR, - ) -> LRESULT; -} -extern "C" { - pub fn SendNotifyMessageA(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn SendNotifyMessageW(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn SendMessageCallbackA( - hWnd: HWND, - Msg: UINT, - wParam: WPARAM, - lParam: LPARAM, - lpResultCallBack: SENDASYNCPROC, - dwData: ULONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn SendMessageCallbackW( - hWnd: HWND, - Msg: UINT, - wParam: WPARAM, - lParam: LPARAM, - lpResultCallBack: SENDASYNCPROC, - dwData: ULONG_PTR, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BSMINFO { - pub cbSize: UINT, - pub hdesk: HDESK, - pub hwnd: HWND, - pub luid: LUID, -} -pub type PBSMINFO = *mut BSMINFO; -extern "C" { - pub fn BroadcastSystemMessageExA( - flags: DWORD, - lpInfo: LPDWORD, - Msg: UINT, - wParam: WPARAM, - lParam: LPARAM, - pbsmInfo: PBSMINFO, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn BroadcastSystemMessageExW( - flags: DWORD, - lpInfo: LPDWORD, - Msg: UINT, - wParam: WPARAM, - lParam: LPARAM, - pbsmInfo: PBSMINFO, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn BroadcastSystemMessageA( - flags: DWORD, - lpInfo: LPDWORD, - Msg: UINT, - wParam: WPARAM, - lParam: LPARAM, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn BroadcastSystemMessageW( - flags: DWORD, - lpInfo: LPDWORD, - Msg: UINT, - wParam: WPARAM, - lParam: LPARAM, - ) -> ::std::os::raw::c_long; -} -pub type HDEVNOTIFY = PVOID; -pub type PHDEVNOTIFY = *mut HDEVNOTIFY; -extern "C" { - pub fn RegisterDeviceNotificationA( - hRecipient: HANDLE, - NotificationFilter: LPVOID, - Flags: DWORD, - ) -> HDEVNOTIFY; -} -extern "C" { - pub fn RegisterDeviceNotificationW( - hRecipient: HANDLE, - NotificationFilter: LPVOID, - Flags: DWORD, - ) -> HDEVNOTIFY; -} -extern "C" { - pub fn UnregisterDeviceNotification(Handle: HDEVNOTIFY) -> BOOL; -} -pub type HPOWERNOTIFY = PVOID; -pub type PHPOWERNOTIFY = *mut HPOWERNOTIFY; -extern "C" { - pub fn RegisterPowerSettingNotification( - hRecipient: HANDLE, - PowerSettingGuid: LPCGUID, - Flags: DWORD, - ) -> HPOWERNOTIFY; -} -extern "C" { - pub fn UnregisterPowerSettingNotification(Handle: HPOWERNOTIFY) -> BOOL; -} -extern "C" { - pub fn RegisterSuspendResumeNotification(hRecipient: HANDLE, Flags: DWORD) -> HPOWERNOTIFY; -} -extern "C" { - pub fn UnregisterSuspendResumeNotification(Handle: HPOWERNOTIFY) -> BOOL; -} -extern "C" { - pub fn PostMessageA(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn PostMessageW(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn PostThreadMessageA(idThread: DWORD, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn PostThreadMessageW(idThread: DWORD, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn AttachThreadInput(idAttach: DWORD, idAttachTo: DWORD, fAttach: BOOL) -> BOOL; -} -extern "C" { - pub fn ReplyMessage(lResult: LRESULT) -> BOOL; -} -extern "C" { - pub fn WaitMessage() -> BOOL; -} -extern "C" { - pub fn WaitForInputIdle(hProcess: HANDLE, dwMilliseconds: DWORD) -> DWORD; -} -extern "C" { - pub fn DefWindowProcA(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; -} -extern "C" { - pub fn DefWindowProcW(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; -} -extern "C" { - pub fn PostQuitMessage(nExitCode: ::std::os::raw::c_int); -} -extern "C" { - pub fn CallWindowProcA( - lpPrevWndFunc: WNDPROC, - hWnd: HWND, - Msg: UINT, - wParam: WPARAM, - lParam: LPARAM, - ) -> LRESULT; -} -extern "C" { - pub fn CallWindowProcW( - lpPrevWndFunc: WNDPROC, - hWnd: HWND, - Msg: UINT, - wParam: WPARAM, - lParam: LPARAM, - ) -> LRESULT; -} -extern "C" { - pub fn InSendMessage() -> BOOL; -} -extern "C" { - pub fn InSendMessageEx(lpReserved: LPVOID) -> DWORD; -} -extern "C" { - pub fn GetDoubleClickTime() -> UINT; -} -extern "C" { - pub fn SetDoubleClickTime(arg1: UINT) -> BOOL; -} -extern "C" { - pub fn RegisterClassA(lpWndClass: *const WNDCLASSA) -> ATOM; -} -extern "C" { - pub fn RegisterClassW(lpWndClass: *const WNDCLASSW) -> ATOM; -} -extern "C" { - pub fn UnregisterClassA(lpClassName: LPCSTR, hInstance: HINSTANCE) -> BOOL; -} -extern "C" { - pub fn UnregisterClassW(lpClassName: LPCWSTR, hInstance: HINSTANCE) -> BOOL; -} -extern "C" { - pub fn GetClassInfoA( - hInstance: HINSTANCE, - lpClassName: LPCSTR, - lpWndClass: LPWNDCLASSA, - ) -> BOOL; -} -extern "C" { - pub fn GetClassInfoW( - hInstance: HINSTANCE, - lpClassName: LPCWSTR, - lpWndClass: LPWNDCLASSW, - ) -> BOOL; -} -extern "C" { - pub fn RegisterClassExA(arg1: *const WNDCLASSEXA) -> ATOM; -} -extern "C" { - pub fn RegisterClassExW(arg1: *const WNDCLASSEXW) -> ATOM; -} -extern "C" { - pub fn GetClassInfoExA(hInstance: HINSTANCE, lpszClass: LPCSTR, lpwcx: LPWNDCLASSEXA) -> BOOL; -} -extern "C" { - pub fn GetClassInfoExW(hInstance: HINSTANCE, lpszClass: LPCWSTR, lpwcx: LPWNDCLASSEXW) -> BOOL; -} -pub type PREGISTERCLASSNAMEW = - ::std::option::Option BOOLEAN>; -extern "C" { - pub fn CreateWindowExA( - dwExStyle: DWORD, - lpClassName: LPCSTR, - lpWindowName: LPCSTR, - dwStyle: DWORD, - X: ::std::os::raw::c_int, - Y: ::std::os::raw::c_int, - nWidth: ::std::os::raw::c_int, - nHeight: ::std::os::raw::c_int, - hWndParent: HWND, - hMenu: HMENU, - hInstance: HINSTANCE, - lpParam: LPVOID, - ) -> HWND; -} -extern "C" { - pub fn CreateWindowExW( - dwExStyle: DWORD, - lpClassName: LPCWSTR, - lpWindowName: LPCWSTR, - dwStyle: DWORD, - X: ::std::os::raw::c_int, - Y: ::std::os::raw::c_int, - nWidth: ::std::os::raw::c_int, - nHeight: ::std::os::raw::c_int, - hWndParent: HWND, - hMenu: HMENU, - hInstance: HINSTANCE, - lpParam: LPVOID, - ) -> HWND; -} -extern "C" { - pub fn IsWindow(hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn IsMenu(hMenu: HMENU) -> BOOL; -} -extern "C" { - pub fn IsChild(hWndParent: HWND, hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn DestroyWindow(hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn ShowWindow(hWnd: HWND, nCmdShow: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn AnimateWindow(hWnd: HWND, dwTime: DWORD, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn UpdateLayeredWindow( - hWnd: HWND, - hdcDst: HDC, - pptDst: *mut POINT, - psize: *mut SIZE, - hdcSrc: HDC, - pptSrc: *mut POINT, - crKey: COLORREF, - pblend: *mut BLENDFUNCTION, - dwFlags: DWORD, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagUPDATELAYEREDWINDOWINFO { - pub cbSize: DWORD, - pub hdcDst: HDC, - pub pptDst: *const POINT, - pub psize: *const SIZE, - pub hdcSrc: HDC, - pub pptSrc: *const POINT, - pub crKey: COLORREF, - pub pblend: *const BLENDFUNCTION, - pub dwFlags: DWORD, - pub prcDirty: *const RECT, -} -pub type UPDATELAYEREDWINDOWINFO = tagUPDATELAYEREDWINDOWINFO; -pub type PUPDATELAYEREDWINDOWINFO = *mut tagUPDATELAYEREDWINDOWINFO; -extern "C" { - pub fn UpdateLayeredWindowIndirect( - hWnd: HWND, - pULWInfo: *const UPDATELAYEREDWINDOWINFO, - ) -> BOOL; -} -extern "C" { - pub fn GetLayeredWindowAttributes( - hwnd: HWND, - pcrKey: *mut COLORREF, - pbAlpha: *mut BYTE, - pdwFlags: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn PrintWindow(hwnd: HWND, hdcBlt: HDC, nFlags: UINT) -> BOOL; -} -extern "C" { - pub fn SetLayeredWindowAttributes( - hwnd: HWND, - crKey: COLORREF, - bAlpha: BYTE, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn ShowWindowAsync(hWnd: HWND, nCmdShow: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn FlashWindow(hWnd: HWND, bInvert: BOOL) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FLASHWINFO { - pub cbSize: UINT, - pub hwnd: HWND, - pub dwFlags: DWORD, - pub uCount: UINT, - pub dwTimeout: DWORD, -} -pub type PFLASHWINFO = *mut FLASHWINFO; -extern "C" { - pub fn FlashWindowEx(pfwi: PFLASHWINFO) -> BOOL; -} -extern "C" { - pub fn ShowOwnedPopups(hWnd: HWND, fShow: BOOL) -> BOOL; -} -extern "C" { - pub fn OpenIcon(hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn CloseWindow(hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn MoveWindow( - hWnd: HWND, - X: ::std::os::raw::c_int, - Y: ::std::os::raw::c_int, - nWidth: ::std::os::raw::c_int, - nHeight: ::std::os::raw::c_int, - bRepaint: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn SetWindowPos( - hWnd: HWND, - hWndInsertAfter: HWND, - X: ::std::os::raw::c_int, - Y: ::std::os::raw::c_int, - cx: ::std::os::raw::c_int, - cy: ::std::os::raw::c_int, - uFlags: UINT, - ) -> BOOL; -} -extern "C" { - pub fn GetWindowPlacement(hWnd: HWND, lpwndpl: *mut WINDOWPLACEMENT) -> BOOL; -} -extern "C" { - pub fn SetWindowPlacement(hWnd: HWND, lpwndpl: *const WINDOWPLACEMENT) -> BOOL; -} -extern "C" { - pub fn GetWindowDisplayAffinity(hWnd: HWND, pdwAffinity: *mut DWORD) -> BOOL; -} -extern "C" { - pub fn SetWindowDisplayAffinity(hWnd: HWND, dwAffinity: DWORD) -> BOOL; -} -extern "C" { - pub fn BeginDeferWindowPos(nNumWindows: ::std::os::raw::c_int) -> HDWP; -} -extern "C" { - pub fn DeferWindowPos( - hWinPosInfo: HDWP, - hWnd: HWND, - hWndInsertAfter: HWND, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - cx: ::std::os::raw::c_int, - cy: ::std::os::raw::c_int, - uFlags: UINT, - ) -> HDWP; -} -extern "C" { - pub fn EndDeferWindowPos(hWinPosInfo: HDWP) -> BOOL; -} -extern "C" { - pub fn IsWindowVisible(hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn IsIconic(hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn AnyPopup() -> BOOL; -} -extern "C" { - pub fn BringWindowToTop(hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn IsZoomed(hWnd: HWND) -> BOOL; -} -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct DLGTEMPLATE { - pub style: DWORD, - pub dwExtendedStyle: DWORD, - pub cdit: WORD, - pub x: ::std::os::raw::c_short, - pub y: ::std::os::raw::c_short, - pub cx: ::std::os::raw::c_short, - pub cy: ::std::os::raw::c_short, -} -pub type LPDLGTEMPLATEA = *mut DLGTEMPLATE; -pub type LPDLGTEMPLATEW = *mut DLGTEMPLATE; -pub type LPDLGTEMPLATE = LPDLGTEMPLATEA; -pub type LPCDLGTEMPLATEA = *const DLGTEMPLATE; -pub type LPCDLGTEMPLATEW = *const DLGTEMPLATE; -pub type LPCDLGTEMPLATE = LPCDLGTEMPLATEA; -#[repr(C, packed(2))] -#[derive(Debug, Copy, Clone)] -pub struct DLGITEMTEMPLATE { - pub style: DWORD, - pub dwExtendedStyle: DWORD, - pub x: ::std::os::raw::c_short, - pub y: ::std::os::raw::c_short, - pub cx: ::std::os::raw::c_short, - pub cy: ::std::os::raw::c_short, - pub id: WORD, -} -pub type PDLGITEMTEMPLATEA = *mut DLGITEMTEMPLATE; -pub type PDLGITEMTEMPLATEW = *mut DLGITEMTEMPLATE; -pub type PDLGITEMTEMPLATE = PDLGITEMTEMPLATEA; -pub type LPDLGITEMTEMPLATEA = *mut DLGITEMTEMPLATE; -pub type LPDLGITEMTEMPLATEW = *mut DLGITEMTEMPLATE; -pub type LPDLGITEMTEMPLATE = LPDLGITEMTEMPLATEA; -extern "C" { - pub fn CreateDialogParamA( - hInstance: HINSTANCE, - lpTemplateName: LPCSTR, - hWndParent: HWND, - lpDialogFunc: DLGPROC, - dwInitParam: LPARAM, - ) -> HWND; -} -extern "C" { - pub fn CreateDialogParamW( - hInstance: HINSTANCE, - lpTemplateName: LPCWSTR, - hWndParent: HWND, - lpDialogFunc: DLGPROC, - dwInitParam: LPARAM, - ) -> HWND; -} -extern "C" { - pub fn CreateDialogIndirectParamA( - hInstance: HINSTANCE, - lpTemplate: LPCDLGTEMPLATEA, - hWndParent: HWND, - lpDialogFunc: DLGPROC, - dwInitParam: LPARAM, - ) -> HWND; -} -extern "C" { - pub fn CreateDialogIndirectParamW( - hInstance: HINSTANCE, - lpTemplate: LPCDLGTEMPLATEW, - hWndParent: HWND, - lpDialogFunc: DLGPROC, - dwInitParam: LPARAM, - ) -> HWND; -} -extern "C" { - pub fn DialogBoxParamA( - hInstance: HINSTANCE, - lpTemplateName: LPCSTR, - hWndParent: HWND, - lpDialogFunc: DLGPROC, - dwInitParam: LPARAM, - ) -> INT_PTR; -} -extern "C" { - pub fn DialogBoxParamW( - hInstance: HINSTANCE, - lpTemplateName: LPCWSTR, - hWndParent: HWND, - lpDialogFunc: DLGPROC, - dwInitParam: LPARAM, - ) -> INT_PTR; -} -extern "C" { - pub fn DialogBoxIndirectParamA( - hInstance: HINSTANCE, - hDialogTemplate: LPCDLGTEMPLATEA, - hWndParent: HWND, - lpDialogFunc: DLGPROC, - dwInitParam: LPARAM, - ) -> INT_PTR; -} -extern "C" { - pub fn DialogBoxIndirectParamW( - hInstance: HINSTANCE, - hDialogTemplate: LPCDLGTEMPLATEW, - hWndParent: HWND, - lpDialogFunc: DLGPROC, - dwInitParam: LPARAM, - ) -> INT_PTR; -} -extern "C" { - pub fn EndDialog(hDlg: HWND, nResult: INT_PTR) -> BOOL; -} -extern "C" { - pub fn GetDlgItem(hDlg: HWND, nIDDlgItem: ::std::os::raw::c_int) -> HWND; -} -extern "C" { - pub fn SetDlgItemInt( - hDlg: HWND, - nIDDlgItem: ::std::os::raw::c_int, - uValue: UINT, - bSigned: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn GetDlgItemInt( - hDlg: HWND, - nIDDlgItem: ::std::os::raw::c_int, - lpTranslated: *mut BOOL, - bSigned: BOOL, - ) -> UINT; -} -extern "C" { - pub fn SetDlgItemTextA(hDlg: HWND, nIDDlgItem: ::std::os::raw::c_int, lpString: LPCSTR) - -> BOOL; -} -extern "C" { - pub fn SetDlgItemTextW( - hDlg: HWND, - nIDDlgItem: ::std::os::raw::c_int, - lpString: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn GetDlgItemTextA( - hDlg: HWND, - nIDDlgItem: ::std::os::raw::c_int, - lpString: LPSTR, - cchMax: ::std::os::raw::c_int, - ) -> UINT; -} -extern "C" { - pub fn GetDlgItemTextW( - hDlg: HWND, - nIDDlgItem: ::std::os::raw::c_int, - lpString: LPWSTR, - cchMax: ::std::os::raw::c_int, - ) -> UINT; -} -extern "C" { - pub fn CheckDlgButton(hDlg: HWND, nIDButton: ::std::os::raw::c_int, uCheck: UINT) -> BOOL; -} -extern "C" { - pub fn CheckRadioButton( - hDlg: HWND, - nIDFirstButton: ::std::os::raw::c_int, - nIDLastButton: ::std::os::raw::c_int, - nIDCheckButton: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn IsDlgButtonChecked(hDlg: HWND, nIDButton: ::std::os::raw::c_int) -> UINT; -} -extern "C" { - pub fn SendDlgItemMessageA( - hDlg: HWND, - nIDDlgItem: ::std::os::raw::c_int, - Msg: UINT, - wParam: WPARAM, - lParam: LPARAM, - ) -> LRESULT; -} -extern "C" { - pub fn SendDlgItemMessageW( - hDlg: HWND, - nIDDlgItem: ::std::os::raw::c_int, - Msg: UINT, - wParam: WPARAM, - lParam: LPARAM, - ) -> LRESULT; -} -extern "C" { - pub fn GetNextDlgGroupItem(hDlg: HWND, hCtl: HWND, bPrevious: BOOL) -> HWND; -} -extern "C" { - pub fn GetNextDlgTabItem(hDlg: HWND, hCtl: HWND, bPrevious: BOOL) -> HWND; -} -extern "C" { - pub fn GetDlgCtrlID(hWnd: HWND) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetDialogBaseUnits() -> ::std::os::raw::c_long; -} -extern "C" { - pub fn DefDlgProcA(hDlg: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; -} -extern "C" { - pub fn DefDlgProcW(hDlg: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; -} -pub const DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS_DCDC_DEFAULT: DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS = 0; -pub const DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS_DCDC_DISABLE_FONT_UPDATE: - DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS = 1; -pub const DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS_DCDC_DISABLE_RELAYOUT: - DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS = 2; -pub type DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS = ::std::os::raw::c_int; -extern "C" { - pub fn SetDialogControlDpiChangeBehavior( - hWnd: HWND, - mask: DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS, - values: DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS, - ) -> BOOL; -} -extern "C" { - pub fn GetDialogControlDpiChangeBehavior(hWnd: HWND) -> DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS; -} -pub const DIALOG_DPI_CHANGE_BEHAVIORS_DDC_DEFAULT: DIALOG_DPI_CHANGE_BEHAVIORS = 0; -pub const DIALOG_DPI_CHANGE_BEHAVIORS_DDC_DISABLE_ALL: DIALOG_DPI_CHANGE_BEHAVIORS = 1; -pub const DIALOG_DPI_CHANGE_BEHAVIORS_DDC_DISABLE_RESIZE: DIALOG_DPI_CHANGE_BEHAVIORS = 2; -pub const DIALOG_DPI_CHANGE_BEHAVIORS_DDC_DISABLE_CONTROL_RELAYOUT: DIALOG_DPI_CHANGE_BEHAVIORS = 4; -pub type DIALOG_DPI_CHANGE_BEHAVIORS = ::std::os::raw::c_int; -extern "C" { - pub fn SetDialogDpiChangeBehavior( - hDlg: HWND, - mask: DIALOG_DPI_CHANGE_BEHAVIORS, - values: DIALOG_DPI_CHANGE_BEHAVIORS, - ) -> BOOL; -} -extern "C" { - pub fn GetDialogDpiChangeBehavior(hDlg: HWND) -> DIALOG_DPI_CHANGE_BEHAVIORS; -} -extern "C" { - pub fn CallMsgFilterA(lpMsg: LPMSG, nCode: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn CallMsgFilterW(lpMsg: LPMSG, nCode: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn OpenClipboard(hWndNewOwner: HWND) -> BOOL; -} -extern "C" { - pub fn CloseClipboard() -> BOOL; -} -extern "C" { - pub fn GetClipboardSequenceNumber() -> DWORD; -} -extern "C" { - pub fn GetClipboardOwner() -> HWND; -} -extern "C" { - pub fn SetClipboardViewer(hWndNewViewer: HWND) -> HWND; -} -extern "C" { - pub fn GetClipboardViewer() -> HWND; -} -extern "C" { - pub fn ChangeClipboardChain(hWndRemove: HWND, hWndNewNext: HWND) -> BOOL; -} -extern "C" { - pub fn SetClipboardData(uFormat: UINT, hMem: HANDLE) -> HANDLE; -} -extern "C" { - pub fn GetClipboardData(uFormat: UINT) -> HANDLE; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagGETCLIPBMETADATA { - pub Version: UINT, - pub IsDelayRendered: BOOL, - pub IsSynthetic: BOOL, -} -pub type GETCLIPBMETADATA = tagGETCLIPBMETADATA; -pub type PGETCLIPBMETADATA = *mut tagGETCLIPBMETADATA; -extern "C" { - pub fn GetClipboardMetadata(format: UINT, metadata: PGETCLIPBMETADATA) -> BOOL; -} -extern "C" { - pub fn RegisterClipboardFormatA(lpszFormat: LPCSTR) -> UINT; -} -extern "C" { - pub fn RegisterClipboardFormatW(lpszFormat: LPCWSTR) -> UINT; -} -extern "C" { - pub fn CountClipboardFormats() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EnumClipboardFormats(format: UINT) -> UINT; -} -extern "C" { - pub fn GetClipboardFormatNameA( - format: UINT, - lpszFormatName: LPSTR, - cchMaxCount: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetClipboardFormatNameW( - format: UINT, - lpszFormatName: LPWSTR, - cchMaxCount: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EmptyClipboard() -> BOOL; -} -extern "C" { - pub fn IsClipboardFormatAvailable(format: UINT) -> BOOL; -} -extern "C" { - pub fn GetPriorityClipboardFormat( - paFormatPriorityList: *mut UINT, - cFormats: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetOpenClipboardWindow() -> HWND; -} -extern "C" { - pub fn AddClipboardFormatListener(hwnd: HWND) -> BOOL; -} -extern "C" { - pub fn RemoveClipboardFormatListener(hwnd: HWND) -> BOOL; -} -extern "C" { - pub fn GetUpdatedClipboardFormats( - lpuiFormats: PUINT, - cFormats: UINT, - pcFormatsOut: PUINT, - ) -> BOOL; -} -extern "C" { - pub fn CharToOemA(pSrc: LPCSTR, pDst: LPSTR) -> BOOL; -} -extern "C" { - pub fn CharToOemW(pSrc: LPCWSTR, pDst: LPSTR) -> BOOL; -} -extern "C" { - pub fn OemToCharA(pSrc: LPCSTR, pDst: LPSTR) -> BOOL; -} -extern "C" { - pub fn OemToCharW(pSrc: LPCSTR, pDst: LPWSTR) -> BOOL; -} -extern "C" { - pub fn CharToOemBuffA(lpszSrc: LPCSTR, lpszDst: LPSTR, cchDstLength: DWORD) -> BOOL; -} -extern "C" { - pub fn CharToOemBuffW(lpszSrc: LPCWSTR, lpszDst: LPSTR, cchDstLength: DWORD) -> BOOL; -} -extern "C" { - pub fn OemToCharBuffA(lpszSrc: LPCSTR, lpszDst: LPSTR, cchDstLength: DWORD) -> BOOL; -} -extern "C" { - pub fn OemToCharBuffW(lpszSrc: LPCSTR, lpszDst: LPWSTR, cchDstLength: DWORD) -> BOOL; -} -extern "C" { - pub fn CharUpperA(lpsz: LPSTR) -> LPSTR; -} -extern "C" { - pub fn CharUpperW(lpsz: LPWSTR) -> LPWSTR; -} -extern "C" { - pub fn CharUpperBuffA(lpsz: LPSTR, cchLength: DWORD) -> DWORD; -} -extern "C" { - pub fn CharUpperBuffW(lpsz: LPWSTR, cchLength: DWORD) -> DWORD; -} -extern "C" { - pub fn CharLowerA(lpsz: LPSTR) -> LPSTR; -} -extern "C" { - pub fn CharLowerW(lpsz: LPWSTR) -> LPWSTR; -} -extern "C" { - pub fn CharLowerBuffA(lpsz: LPSTR, cchLength: DWORD) -> DWORD; -} -extern "C" { - pub fn CharLowerBuffW(lpsz: LPWSTR, cchLength: DWORD) -> DWORD; -} -extern "C" { - pub fn CharNextA(lpsz: LPCSTR) -> LPSTR; -} -extern "C" { - pub fn CharNextW(lpsz: LPCWSTR) -> LPWSTR; -} -extern "C" { - pub fn CharPrevA(lpszStart: LPCSTR, lpszCurrent: LPCSTR) -> LPSTR; -} -extern "C" { - pub fn CharPrevW(lpszStart: LPCWSTR, lpszCurrent: LPCWSTR) -> LPWSTR; -} -extern "C" { - pub fn CharNextExA(CodePage: WORD, lpCurrentChar: LPCSTR, dwFlags: DWORD) -> LPSTR; -} -extern "C" { - pub fn CharPrevExA( - CodePage: WORD, - lpStart: LPCSTR, - lpCurrentChar: LPCSTR, - dwFlags: DWORD, - ) -> LPSTR; -} -extern "C" { - pub fn IsCharAlphaA(ch: CHAR) -> BOOL; -} -extern "C" { - pub fn IsCharAlphaW(ch: WCHAR) -> BOOL; -} -extern "C" { - pub fn IsCharAlphaNumericA(ch: CHAR) -> BOOL; -} -extern "C" { - pub fn IsCharAlphaNumericW(ch: WCHAR) -> BOOL; -} -extern "C" { - pub fn IsCharUpperA(ch: CHAR) -> BOOL; -} -extern "C" { - pub fn IsCharUpperW(ch: WCHAR) -> BOOL; -} -extern "C" { - pub fn IsCharLowerA(ch: CHAR) -> BOOL; -} -extern "C" { - pub fn IsCharLowerW(ch: WCHAR) -> BOOL; -} -extern "C" { - pub fn SetFocus(hWnd: HWND) -> HWND; -} -extern "C" { - pub fn GetActiveWindow() -> HWND; -} -extern "C" { - pub fn GetFocus() -> HWND; -} -extern "C" { - pub fn GetKBCodePage() -> UINT; -} -extern "C" { - pub fn GetKeyState(nVirtKey: ::std::os::raw::c_int) -> SHORT; -} -extern "C" { - pub fn GetAsyncKeyState(vKey: ::std::os::raw::c_int) -> SHORT; -} -extern "C" { - pub fn GetKeyboardState(lpKeyState: PBYTE) -> BOOL; -} -extern "C" { - pub fn SetKeyboardState(lpKeyState: LPBYTE) -> BOOL; -} -extern "C" { - pub fn GetKeyNameTextA( - lParam: LONG, - lpString: LPSTR, - cchSize: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetKeyNameTextW( - lParam: LONG, - lpString: LPWSTR, - cchSize: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetKeyboardType(nTypeFlag: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ToAscii( - uVirtKey: UINT, - uScanCode: UINT, - lpKeyState: *const BYTE, - lpChar: LPWORD, - uFlags: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ToAsciiEx( - uVirtKey: UINT, - uScanCode: UINT, - lpKeyState: *const BYTE, - lpChar: LPWORD, - uFlags: UINT, - dwhkl: HKL, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ToUnicode( - wVirtKey: UINT, - wScanCode: UINT, - lpKeyState: *const BYTE, - pwszBuff: LPWSTR, - cchBuff: ::std::os::raw::c_int, - wFlags: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn OemKeyScan(wOemChar: WORD) -> DWORD; -} -extern "C" { - pub fn VkKeyScanA(ch: CHAR) -> SHORT; -} -extern "C" { - pub fn VkKeyScanW(ch: WCHAR) -> SHORT; -} -extern "C" { - pub fn VkKeyScanExA(ch: CHAR, dwhkl: HKL) -> SHORT; -} -extern "C" { - pub fn VkKeyScanExW(ch: WCHAR, dwhkl: HKL) -> SHORT; -} -extern "C" { - pub fn keybd_event(bVk: BYTE, bScan: BYTE, dwFlags: DWORD, dwExtraInfo: ULONG_PTR); -} -extern "C" { - pub fn mouse_event(dwFlags: DWORD, dx: DWORD, dy: DWORD, dwData: DWORD, dwExtraInfo: ULONG_PTR); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMOUSEINPUT { - pub dx: LONG, - pub dy: LONG, - pub mouseData: DWORD, - pub dwFlags: DWORD, - pub time: DWORD, - pub dwExtraInfo: ULONG_PTR, -} -pub type MOUSEINPUT = tagMOUSEINPUT; -pub type PMOUSEINPUT = *mut tagMOUSEINPUT; -pub type LPMOUSEINPUT = *mut tagMOUSEINPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagKEYBDINPUT { - pub wVk: WORD, - pub wScan: WORD, - pub dwFlags: DWORD, - pub time: DWORD, - pub dwExtraInfo: ULONG_PTR, -} -pub type KEYBDINPUT = tagKEYBDINPUT; -pub type PKEYBDINPUT = *mut tagKEYBDINPUT; -pub type LPKEYBDINPUT = *mut tagKEYBDINPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagHARDWAREINPUT { - pub uMsg: DWORD, - pub wParamL: WORD, - pub wParamH: WORD, -} -pub type HARDWAREINPUT = tagHARDWAREINPUT; -pub type PHARDWAREINPUT = *mut tagHARDWAREINPUT; -pub type LPHARDWAREINPUT = *mut tagHARDWAREINPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagINPUT { - pub type_: DWORD, - pub __bindgen_anon_1: tagINPUT__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagINPUT__bindgen_ty_1 { - pub mi: MOUSEINPUT, - pub ki: KEYBDINPUT, - pub hi: HARDWAREINPUT, -} -pub type INPUT = tagINPUT; -pub type PINPUT = *mut tagINPUT; -pub type LPINPUT = *mut tagINPUT; -extern "C" { - pub fn SendInput(cInputs: UINT, pInputs: LPINPUT, cbSize: ::std::os::raw::c_int) -> UINT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HTOUCHINPUT__ { - pub unused: ::std::os::raw::c_int, -} -pub type HTOUCHINPUT = *mut HTOUCHINPUT__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagTOUCHINPUT { - pub x: LONG, - pub y: LONG, - pub hSource: HANDLE, - pub dwID: DWORD, - pub dwFlags: DWORD, - pub dwMask: DWORD, - pub dwTime: DWORD, - pub dwExtraInfo: ULONG_PTR, - pub cxContact: DWORD, - pub cyContact: DWORD, -} -pub type TOUCHINPUT = tagTOUCHINPUT; -pub type PTOUCHINPUT = *mut tagTOUCHINPUT; -pub type PCTOUCHINPUT = *const TOUCHINPUT; -extern "C" { - pub fn GetTouchInputInfo( - hTouchInput: HTOUCHINPUT, - cInputs: UINT, - pInputs: PTOUCHINPUT, - cbSize: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn CloseTouchInputHandle(hTouchInput: HTOUCHINPUT) -> BOOL; -} -extern "C" { - pub fn RegisterTouchWindow(hwnd: HWND, ulFlags: ULONG) -> BOOL; -} -extern "C" { - pub fn UnregisterTouchWindow(hwnd: HWND) -> BOOL; -} -extern "C" { - pub fn IsTouchWindow(hwnd: HWND, pulFlags: PULONG) -> BOOL; -} -pub const tagPOINTER_INPUT_TYPE_PT_POINTER: tagPOINTER_INPUT_TYPE = 1; -pub const tagPOINTER_INPUT_TYPE_PT_TOUCH: tagPOINTER_INPUT_TYPE = 2; -pub const tagPOINTER_INPUT_TYPE_PT_PEN: tagPOINTER_INPUT_TYPE = 3; -pub const tagPOINTER_INPUT_TYPE_PT_MOUSE: tagPOINTER_INPUT_TYPE = 4; -pub const tagPOINTER_INPUT_TYPE_PT_TOUCHPAD: tagPOINTER_INPUT_TYPE = 5; -pub type tagPOINTER_INPUT_TYPE = ::std::os::raw::c_int; -pub type POINTER_INPUT_TYPE = DWORD; -pub type POINTER_FLAGS = UINT32; -pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_NONE: tagPOINTER_BUTTON_CHANGE_TYPE = 0; -pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_FIRSTBUTTON_DOWN: - tagPOINTER_BUTTON_CHANGE_TYPE = 1; -pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_FIRSTBUTTON_UP: - tagPOINTER_BUTTON_CHANGE_TYPE = 2; -pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_SECONDBUTTON_DOWN: - tagPOINTER_BUTTON_CHANGE_TYPE = 3; -pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_SECONDBUTTON_UP: - tagPOINTER_BUTTON_CHANGE_TYPE = 4; -pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_THIRDBUTTON_DOWN: - tagPOINTER_BUTTON_CHANGE_TYPE = 5; -pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_THIRDBUTTON_UP: - tagPOINTER_BUTTON_CHANGE_TYPE = 6; -pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_FOURTHBUTTON_DOWN: - tagPOINTER_BUTTON_CHANGE_TYPE = 7; -pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_FOURTHBUTTON_UP: - tagPOINTER_BUTTON_CHANGE_TYPE = 8; -pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_FIFTHBUTTON_DOWN: - tagPOINTER_BUTTON_CHANGE_TYPE = 9; -pub const tagPOINTER_BUTTON_CHANGE_TYPE_POINTER_CHANGE_FIFTHBUTTON_UP: - tagPOINTER_BUTTON_CHANGE_TYPE = 10; -pub type tagPOINTER_BUTTON_CHANGE_TYPE = ::std::os::raw::c_int; -pub use self::tagPOINTER_BUTTON_CHANGE_TYPE as POINTER_BUTTON_CHANGE_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPOINTER_INFO { - pub pointerType: POINTER_INPUT_TYPE, - pub pointerId: UINT32, - pub frameId: UINT32, - pub pointerFlags: POINTER_FLAGS, - pub sourceDevice: HANDLE, - pub hwndTarget: HWND, - pub ptPixelLocation: POINT, - pub ptHimetricLocation: POINT, - pub ptPixelLocationRaw: POINT, - pub ptHimetricLocationRaw: POINT, - pub dwTime: DWORD, - pub historyCount: UINT32, - pub InputData: INT32, - pub dwKeyStates: DWORD, - pub PerformanceCount: UINT64, - pub ButtonChangeType: POINTER_BUTTON_CHANGE_TYPE, -} -pub type POINTER_INFO = tagPOINTER_INFO; -pub type TOUCH_FLAGS = UINT32; -pub type TOUCH_MASK = UINT32; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPOINTER_TOUCH_INFO { - pub pointerInfo: POINTER_INFO, - pub touchFlags: TOUCH_FLAGS, - pub touchMask: TOUCH_MASK, - pub rcContact: RECT, - pub rcContactRaw: RECT, - pub orientation: UINT32, - pub pressure: UINT32, -} -pub type POINTER_TOUCH_INFO = tagPOINTER_TOUCH_INFO; -pub type PEN_FLAGS = UINT32; -pub type PEN_MASK = UINT32; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPOINTER_PEN_INFO { - pub pointerInfo: POINTER_INFO, - pub penFlags: PEN_FLAGS, - pub penMask: PEN_MASK, - pub pressure: UINT32, - pub rotation: UINT32, - pub tiltX: INT32, - pub tiltY: INT32, -} -pub type POINTER_PEN_INFO = tagPOINTER_PEN_INFO; -pub const POINTER_FEEDBACK_MODE_POINTER_FEEDBACK_DEFAULT: POINTER_FEEDBACK_MODE = 1; -pub const POINTER_FEEDBACK_MODE_POINTER_FEEDBACK_INDIRECT: POINTER_FEEDBACK_MODE = 2; -pub const POINTER_FEEDBACK_MODE_POINTER_FEEDBACK_NONE: POINTER_FEEDBACK_MODE = 3; -pub type POINTER_FEEDBACK_MODE = ::std::os::raw::c_int; -extern "C" { - pub fn InitializeTouchInjection(maxCount: UINT32, dwMode: DWORD) -> BOOL; -} -extern "C" { - pub fn InjectTouchInput(count: UINT32, contacts: *const POINTER_TOUCH_INFO) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagUSAGE_PROPERTIES { - pub level: USHORT, - pub page: USHORT, - pub usage: USHORT, - pub logicalMinimum: INT32, - pub logicalMaximum: INT32, - pub unit: USHORT, - pub exponent: USHORT, - pub count: BYTE, - pub physicalMinimum: INT32, - pub physicalMaximum: INT32, -} -pub type USAGE_PROPERTIES = tagUSAGE_PROPERTIES; -pub type PUSAGE_PROPERTIES = *mut tagUSAGE_PROPERTIES; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagPOINTER_TYPE_INFO { - pub type_: POINTER_INPUT_TYPE, - pub __bindgen_anon_1: tagPOINTER_TYPE_INFO__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagPOINTER_TYPE_INFO__bindgen_ty_1 { - pub touchInfo: POINTER_TOUCH_INFO, - pub penInfo: POINTER_PEN_INFO, -} -pub type POINTER_TYPE_INFO = tagPOINTER_TYPE_INFO; -pub type PPOINTER_TYPE_INFO = *mut tagPOINTER_TYPE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagINPUT_INJECTION_VALUE { - pub page: USHORT, - pub usage: USHORT, - pub value: INT32, - pub index: USHORT, -} -pub type INPUT_INJECTION_VALUE = tagINPUT_INJECTION_VALUE; -pub type PINPUT_INJECTION_VALUE = *mut tagINPUT_INJECTION_VALUE; -extern "C" { - pub fn GetPointerType(pointerId: UINT32, pointerType: *mut POINTER_INPUT_TYPE) -> BOOL; -} -extern "C" { - pub fn GetPointerCursorId(pointerId: UINT32, cursorId: *mut UINT32) -> BOOL; -} -extern "C" { - pub fn GetPointerInfo(pointerId: UINT32, pointerInfo: *mut POINTER_INFO) -> BOOL; -} -extern "C" { - pub fn GetPointerInfoHistory( - pointerId: UINT32, - entriesCount: *mut UINT32, - pointerInfo: *mut POINTER_INFO, - ) -> BOOL; -} -extern "C" { - pub fn GetPointerFrameInfo( - pointerId: UINT32, - pointerCount: *mut UINT32, - pointerInfo: *mut POINTER_INFO, - ) -> BOOL; -} -extern "C" { - pub fn GetPointerFrameInfoHistory( - pointerId: UINT32, - entriesCount: *mut UINT32, - pointerCount: *mut UINT32, - pointerInfo: *mut POINTER_INFO, - ) -> BOOL; -} -extern "C" { - pub fn GetPointerTouchInfo(pointerId: UINT32, touchInfo: *mut POINTER_TOUCH_INFO) -> BOOL; -} -extern "C" { - pub fn GetPointerTouchInfoHistory( - pointerId: UINT32, - entriesCount: *mut UINT32, - touchInfo: *mut POINTER_TOUCH_INFO, - ) -> BOOL; -} -extern "C" { - pub fn GetPointerFrameTouchInfo( - pointerId: UINT32, - pointerCount: *mut UINT32, - touchInfo: *mut POINTER_TOUCH_INFO, - ) -> BOOL; -} -extern "C" { - pub fn GetPointerFrameTouchInfoHistory( - pointerId: UINT32, - entriesCount: *mut UINT32, - pointerCount: *mut UINT32, - touchInfo: *mut POINTER_TOUCH_INFO, - ) -> BOOL; -} -extern "C" { - pub fn GetPointerPenInfo(pointerId: UINT32, penInfo: *mut POINTER_PEN_INFO) -> BOOL; -} -extern "C" { - pub fn GetPointerPenInfoHistory( - pointerId: UINT32, - entriesCount: *mut UINT32, - penInfo: *mut POINTER_PEN_INFO, - ) -> BOOL; -} -extern "C" { - pub fn GetPointerFramePenInfo( - pointerId: UINT32, - pointerCount: *mut UINT32, - penInfo: *mut POINTER_PEN_INFO, - ) -> BOOL; -} -extern "C" { - pub fn GetPointerFramePenInfoHistory( - pointerId: UINT32, - entriesCount: *mut UINT32, - pointerCount: *mut UINT32, - penInfo: *mut POINTER_PEN_INFO, - ) -> BOOL; -} -extern "C" { - pub fn SkipPointerFrameMessages(pointerId: UINT32) -> BOOL; -} -extern "C" { - pub fn RegisterPointerInputTarget(hwnd: HWND, pointerType: POINTER_INPUT_TYPE) -> BOOL; -} -extern "C" { - pub fn UnregisterPointerInputTarget(hwnd: HWND, pointerType: POINTER_INPUT_TYPE) -> BOOL; -} -extern "C" { - pub fn RegisterPointerInputTargetEx( - hwnd: HWND, - pointerType: POINTER_INPUT_TYPE, - fObserve: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn UnregisterPointerInputTargetEx(hwnd: HWND, pointerType: POINTER_INPUT_TYPE) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HSYNTHETICPOINTERDEVICE__ { - pub unused: ::std::os::raw::c_int, -} -pub type HSYNTHETICPOINTERDEVICE = *mut HSYNTHETICPOINTERDEVICE__; -extern "C" { - pub fn CreateSyntheticPointerDevice( - pointerType: POINTER_INPUT_TYPE, - maxCount: ULONG, - mode: POINTER_FEEDBACK_MODE, - ) -> HSYNTHETICPOINTERDEVICE; -} -extern "C" { - pub fn InjectSyntheticPointerInput( - device: HSYNTHETICPOINTERDEVICE, - pointerInfo: *const POINTER_TYPE_INFO, - count: UINT32, - ) -> BOOL; -} -extern "C" { - pub fn DestroySyntheticPointerDevice(device: HSYNTHETICPOINTERDEVICE); -} -extern "C" { - pub fn EnableMouseInPointer(fEnable: BOOL) -> BOOL; -} -extern "C" { - pub fn IsMouseInPointerEnabled() -> BOOL; -} -extern "C" { - pub fn EnableMouseInPointerForThread() -> BOOL; -} -extern "C" { - pub fn RegisterTouchHitTestingWindow(hwnd: HWND, value: ULONG) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagTOUCH_HIT_TESTING_PROXIMITY_EVALUATION { - pub score: UINT16, - pub adjustedPoint: POINT, -} -pub type TOUCH_HIT_TESTING_PROXIMITY_EVALUATION = tagTOUCH_HIT_TESTING_PROXIMITY_EVALUATION; -pub type PTOUCH_HIT_TESTING_PROXIMITY_EVALUATION = *mut tagTOUCH_HIT_TESTING_PROXIMITY_EVALUATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagTOUCH_HIT_TESTING_INPUT { - pub pointerId: UINT32, - pub point: POINT, - pub boundingBox: RECT, - pub nonOccludedBoundingBox: RECT, - pub orientation: UINT32, -} -pub type TOUCH_HIT_TESTING_INPUT = tagTOUCH_HIT_TESTING_INPUT; -pub type PTOUCH_HIT_TESTING_INPUT = *mut tagTOUCH_HIT_TESTING_INPUT; -extern "C" { - pub fn EvaluateProximityToRect( - controlBoundingBox: *const RECT, - pHitTestingInput: *const TOUCH_HIT_TESTING_INPUT, - pProximityEval: *mut TOUCH_HIT_TESTING_PROXIMITY_EVALUATION, - ) -> BOOL; -} -extern "C" { - pub fn EvaluateProximityToPolygon( - numVertices: UINT32, - controlPolygon: *const POINT, - pHitTestingInput: *const TOUCH_HIT_TESTING_INPUT, - pProximityEval: *mut TOUCH_HIT_TESTING_PROXIMITY_EVALUATION, - ) -> BOOL; -} -extern "C" { - pub fn PackTouchHitTestingProximityEvaluation( - pHitTestingInput: *const TOUCH_HIT_TESTING_INPUT, - pProximityEval: *const TOUCH_HIT_TESTING_PROXIMITY_EVALUATION, - ) -> LRESULT; -} -pub const tagFEEDBACK_TYPE_FEEDBACK_TOUCH_CONTACTVISUALIZATION: tagFEEDBACK_TYPE = 1; -pub const tagFEEDBACK_TYPE_FEEDBACK_PEN_BARRELVISUALIZATION: tagFEEDBACK_TYPE = 2; -pub const tagFEEDBACK_TYPE_FEEDBACK_PEN_TAP: tagFEEDBACK_TYPE = 3; -pub const tagFEEDBACK_TYPE_FEEDBACK_PEN_DOUBLETAP: tagFEEDBACK_TYPE = 4; -pub const tagFEEDBACK_TYPE_FEEDBACK_PEN_PRESSANDHOLD: tagFEEDBACK_TYPE = 5; -pub const tagFEEDBACK_TYPE_FEEDBACK_PEN_RIGHTTAP: tagFEEDBACK_TYPE = 6; -pub const tagFEEDBACK_TYPE_FEEDBACK_TOUCH_TAP: tagFEEDBACK_TYPE = 7; -pub const tagFEEDBACK_TYPE_FEEDBACK_TOUCH_DOUBLETAP: tagFEEDBACK_TYPE = 8; -pub const tagFEEDBACK_TYPE_FEEDBACK_TOUCH_PRESSANDHOLD: tagFEEDBACK_TYPE = 9; -pub const tagFEEDBACK_TYPE_FEEDBACK_TOUCH_RIGHTTAP: tagFEEDBACK_TYPE = 10; -pub const tagFEEDBACK_TYPE_FEEDBACK_GESTURE_PRESSANDTAP: tagFEEDBACK_TYPE = 11; -pub const tagFEEDBACK_TYPE_FEEDBACK_MAX: tagFEEDBACK_TYPE = -1; -pub type tagFEEDBACK_TYPE = ::std::os::raw::c_int; -pub use self::tagFEEDBACK_TYPE as FEEDBACK_TYPE; -extern "C" { - pub fn GetWindowFeedbackSetting( - hwnd: HWND, - feedback: FEEDBACK_TYPE, - dwFlags: DWORD, - pSize: *mut UINT32, - config: *mut ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn SetWindowFeedbackSetting( - hwnd: HWND, - feedback: FEEDBACK_TYPE, - dwFlags: DWORD, - size: UINT32, - configuration: *const ::std::os::raw::c_void, - ) -> BOOL; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagINPUT_TRANSFORM { - pub __bindgen_anon_1: tagINPUT_TRANSFORM__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagINPUT_TRANSFORM__bindgen_ty_1 { - pub __bindgen_anon_1: tagINPUT_TRANSFORM__bindgen_ty_1__bindgen_ty_1, - pub m: [[f32; 4usize]; 4usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagINPUT_TRANSFORM__bindgen_ty_1__bindgen_ty_1 { - pub _11: f32, - pub _12: f32, - pub _13: f32, - pub _14: f32, - pub _21: f32, - pub _22: f32, - pub _23: f32, - pub _24: f32, - pub _31: f32, - pub _32: f32, - pub _33: f32, - pub _34: f32, - pub _41: f32, - pub _42: f32, - pub _43: f32, - pub _44: f32, -} -pub type INPUT_TRANSFORM = tagINPUT_TRANSFORM; -extern "C" { - pub fn GetPointerInputTransform( - pointerId: UINT32, - historyCount: UINT32, - inputTransform: *mut INPUT_TRANSFORM, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagLASTINPUTINFO { - pub cbSize: UINT, - pub dwTime: DWORD, -} -pub type LASTINPUTINFO = tagLASTINPUTINFO; -pub type PLASTINPUTINFO = *mut tagLASTINPUTINFO; -extern "C" { - pub fn GetLastInputInfo(plii: PLASTINPUTINFO) -> BOOL; -} -extern "C" { - pub fn MapVirtualKeyA(uCode: UINT, uMapType: UINT) -> UINT; -} -extern "C" { - pub fn MapVirtualKeyW(uCode: UINT, uMapType: UINT) -> UINT; -} -extern "C" { - pub fn MapVirtualKeyExA(uCode: UINT, uMapType: UINT, dwhkl: HKL) -> UINT; -} -extern "C" { - pub fn MapVirtualKeyExW(uCode: UINT, uMapType: UINT, dwhkl: HKL) -> UINT; -} -extern "C" { - pub fn GetInputState() -> BOOL; -} -extern "C" { - pub fn GetQueueStatus(flags: UINT) -> DWORD; -} -extern "C" { - pub fn GetCapture() -> HWND; -} -extern "C" { - pub fn SetCapture(hWnd: HWND) -> HWND; -} -extern "C" { - pub fn ReleaseCapture() -> BOOL; -} -extern "C" { - pub fn MsgWaitForMultipleObjects( - nCount: DWORD, - pHandles: *const HANDLE, - fWaitAll: BOOL, - dwMilliseconds: DWORD, - dwWakeMask: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn MsgWaitForMultipleObjectsEx( - nCount: DWORD, - pHandles: *const HANDLE, - dwMilliseconds: DWORD, - dwWakeMask: DWORD, - dwFlags: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn SetTimer( - hWnd: HWND, - nIDEvent: UINT_PTR, - uElapse: UINT, - lpTimerFunc: TIMERPROC, - ) -> UINT_PTR; -} -extern "C" { - pub fn SetCoalescableTimer( - hWnd: HWND, - nIDEvent: UINT_PTR, - uElapse: UINT, - lpTimerFunc: TIMERPROC, - uToleranceDelay: ULONG, - ) -> UINT_PTR; -} -extern "C" { - pub fn KillTimer(hWnd: HWND, uIDEvent: UINT_PTR) -> BOOL; -} -extern "C" { - pub fn IsWindowUnicode(hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn EnableWindow(hWnd: HWND, bEnable: BOOL) -> BOOL; -} -extern "C" { - pub fn IsWindowEnabled(hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn LoadAcceleratorsA(hInstance: HINSTANCE, lpTableName: LPCSTR) -> HACCEL; -} -extern "C" { - pub fn LoadAcceleratorsW(hInstance: HINSTANCE, lpTableName: LPCWSTR) -> HACCEL; -} -extern "C" { - pub fn CreateAcceleratorTableA(paccel: LPACCEL, cAccel: ::std::os::raw::c_int) -> HACCEL; -} -extern "C" { - pub fn CreateAcceleratorTableW(paccel: LPACCEL, cAccel: ::std::os::raw::c_int) -> HACCEL; -} -extern "C" { - pub fn DestroyAcceleratorTable(hAccel: HACCEL) -> BOOL; -} -extern "C" { - pub fn CopyAcceleratorTableA( - hAccelSrc: HACCEL, - lpAccelDst: LPACCEL, - cAccelEntries: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn CopyAcceleratorTableW( - hAccelSrc: HACCEL, - lpAccelDst: LPACCEL, - cAccelEntries: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn TranslateAcceleratorA( - hWnd: HWND, - hAccTable: HACCEL, - lpMsg: LPMSG, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn TranslateAcceleratorW( - hWnd: HWND, - hAccTable: HACCEL, - lpMsg: LPMSG, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetSystemMetrics(nIndex: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetSystemMetricsForDpi( - nIndex: ::std::os::raw::c_int, - dpi: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn LoadMenuA(hInstance: HINSTANCE, lpMenuName: LPCSTR) -> HMENU; -} -extern "C" { - pub fn LoadMenuW(hInstance: HINSTANCE, lpMenuName: LPCWSTR) -> HMENU; -} -extern "C" { - pub fn LoadMenuIndirectA(lpMenuTemplate: *const MENUTEMPLATEA) -> HMENU; -} -extern "C" { - pub fn LoadMenuIndirectW(lpMenuTemplate: *const MENUTEMPLATEW) -> HMENU; -} -extern "C" { - pub fn GetMenu(hWnd: HWND) -> HMENU; -} -extern "C" { - pub fn SetMenu(hWnd: HWND, hMenu: HMENU) -> BOOL; -} -extern "C" { - pub fn ChangeMenuA( - hMenu: HMENU, - cmd: UINT, - lpszNewItem: LPCSTR, - cmdInsert: UINT, - flags: UINT, - ) -> BOOL; -} -extern "C" { - pub fn ChangeMenuW( - hMenu: HMENU, - cmd: UINT, - lpszNewItem: LPCWSTR, - cmdInsert: UINT, - flags: UINT, - ) -> BOOL; -} -extern "C" { - pub fn HiliteMenuItem(hWnd: HWND, hMenu: HMENU, uIDHiliteItem: UINT, uHilite: UINT) -> BOOL; -} -extern "C" { - pub fn GetMenuStringA( - hMenu: HMENU, - uIDItem: UINT, - lpString: LPSTR, - cchMax: ::std::os::raw::c_int, - flags: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetMenuStringW( - hMenu: HMENU, - uIDItem: UINT, - lpString: LPWSTR, - cchMax: ::std::os::raw::c_int, - flags: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetMenuState(hMenu: HMENU, uId: UINT, uFlags: UINT) -> UINT; -} -extern "C" { - pub fn DrawMenuBar(hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn GetSystemMenu(hWnd: HWND, bRevert: BOOL) -> HMENU; -} -extern "C" { - pub fn CreateMenu() -> HMENU; -} -extern "C" { - pub fn CreatePopupMenu() -> HMENU; -} -extern "C" { - pub fn DestroyMenu(hMenu: HMENU) -> BOOL; -} -extern "C" { - pub fn CheckMenuItem(hMenu: HMENU, uIDCheckItem: UINT, uCheck: UINT) -> DWORD; -} -extern "C" { - pub fn EnableMenuItem(hMenu: HMENU, uIDEnableItem: UINT, uEnable: UINT) -> BOOL; -} -extern "C" { - pub fn GetSubMenu(hMenu: HMENU, nPos: ::std::os::raw::c_int) -> HMENU; -} -extern "C" { - pub fn GetMenuItemID(hMenu: HMENU, nPos: ::std::os::raw::c_int) -> UINT; -} -extern "C" { - pub fn GetMenuItemCount(hMenu: HMENU) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn InsertMenuA( - hMenu: HMENU, - uPosition: UINT, - uFlags: UINT, - uIDNewItem: UINT_PTR, - lpNewItem: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn InsertMenuW( - hMenu: HMENU, - uPosition: UINT, - uFlags: UINT, - uIDNewItem: UINT_PTR, - lpNewItem: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn AppendMenuA(hMenu: HMENU, uFlags: UINT, uIDNewItem: UINT_PTR, lpNewItem: LPCSTR) - -> BOOL; -} -extern "C" { - pub fn AppendMenuW( - hMenu: HMENU, - uFlags: UINT, - uIDNewItem: UINT_PTR, - lpNewItem: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn ModifyMenuA( - hMnu: HMENU, - uPosition: UINT, - uFlags: UINT, - uIDNewItem: UINT_PTR, - lpNewItem: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn ModifyMenuW( - hMnu: HMENU, - uPosition: UINT, - uFlags: UINT, - uIDNewItem: UINT_PTR, - lpNewItem: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn RemoveMenu(hMenu: HMENU, uPosition: UINT, uFlags: UINT) -> BOOL; -} -extern "C" { - pub fn DeleteMenu(hMenu: HMENU, uPosition: UINT, uFlags: UINT) -> BOOL; -} -extern "C" { - pub fn SetMenuItemBitmaps( - hMenu: HMENU, - uPosition: UINT, - uFlags: UINT, - hBitmapUnchecked: HBITMAP, - hBitmapChecked: HBITMAP, - ) -> BOOL; -} -extern "C" { - pub fn GetMenuCheckMarkDimensions() -> LONG; -} -extern "C" { - pub fn TrackPopupMenu( - hMenu: HMENU, - uFlags: UINT, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - nReserved: ::std::os::raw::c_int, - hWnd: HWND, - prcRect: *const RECT, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagTPMPARAMS { - pub cbSize: UINT, - pub rcExclude: RECT, -} -pub type TPMPARAMS = tagTPMPARAMS; -pub type LPTPMPARAMS = *mut TPMPARAMS; -extern "C" { - pub fn TrackPopupMenuEx( - hMenu: HMENU, - uFlags: UINT, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - hwnd: HWND, - lptpm: LPTPMPARAMS, - ) -> BOOL; -} -extern "C" { - pub fn CalculatePopupWindowPosition( - anchorPoint: *const POINT, - windowSize: *const SIZE, - flags: UINT, - excludeRect: *mut RECT, - popupWindowPosition: *mut RECT, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMENUINFO { - pub cbSize: DWORD, - pub fMask: DWORD, - pub dwStyle: DWORD, - pub cyMax: UINT, - pub hbrBack: HBRUSH, - pub dwContextHelpID: DWORD, - pub dwMenuData: ULONG_PTR, -} -pub type MENUINFO = tagMENUINFO; -pub type LPMENUINFO = *mut tagMENUINFO; -pub type LPCMENUINFO = *const MENUINFO; -extern "C" { - pub fn GetMenuInfo(arg1: HMENU, arg2: LPMENUINFO) -> BOOL; -} -extern "C" { - pub fn SetMenuInfo(arg1: HMENU, arg2: LPCMENUINFO) -> BOOL; -} -extern "C" { - pub fn EndMenu() -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMENUGETOBJECTINFO { - pub dwFlags: DWORD, - pub uPos: UINT, - pub hmenu: HMENU, - pub riid: PVOID, - pub pvObj: PVOID, -} -pub type MENUGETOBJECTINFO = tagMENUGETOBJECTINFO; -pub type PMENUGETOBJECTINFO = *mut tagMENUGETOBJECTINFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMENUITEMINFOA { - pub cbSize: UINT, - pub fMask: UINT, - pub fType: UINT, - pub fState: UINT, - pub wID: UINT, - pub hSubMenu: HMENU, - pub hbmpChecked: HBITMAP, - pub hbmpUnchecked: HBITMAP, - pub dwItemData: ULONG_PTR, - pub dwTypeData: LPSTR, - pub cch: UINT, - pub hbmpItem: HBITMAP, -} -pub type MENUITEMINFOA = tagMENUITEMINFOA; -pub type LPMENUITEMINFOA = *mut tagMENUITEMINFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMENUITEMINFOW { - pub cbSize: UINT, - pub fMask: UINT, - pub fType: UINT, - pub fState: UINT, - pub wID: UINT, - pub hSubMenu: HMENU, - pub hbmpChecked: HBITMAP, - pub hbmpUnchecked: HBITMAP, - pub dwItemData: ULONG_PTR, - pub dwTypeData: LPWSTR, - pub cch: UINT, - pub hbmpItem: HBITMAP, -} -pub type MENUITEMINFOW = tagMENUITEMINFOW; -pub type LPMENUITEMINFOW = *mut tagMENUITEMINFOW; -pub type MENUITEMINFO = MENUITEMINFOA; -pub type LPMENUITEMINFO = LPMENUITEMINFOA; -pub type LPCMENUITEMINFOA = *const MENUITEMINFOA; -pub type LPCMENUITEMINFOW = *const MENUITEMINFOW; -pub type LPCMENUITEMINFO = LPCMENUITEMINFOA; -extern "C" { - pub fn InsertMenuItemA( - hmenu: HMENU, - item: UINT, - fByPosition: BOOL, - lpmi: LPCMENUITEMINFOA, - ) -> BOOL; -} -extern "C" { - pub fn InsertMenuItemW( - hmenu: HMENU, - item: UINT, - fByPosition: BOOL, - lpmi: LPCMENUITEMINFOW, - ) -> BOOL; -} -extern "C" { - pub fn GetMenuItemInfoA( - hmenu: HMENU, - item: UINT, - fByPosition: BOOL, - lpmii: LPMENUITEMINFOA, - ) -> BOOL; -} -extern "C" { - pub fn GetMenuItemInfoW( - hmenu: HMENU, - item: UINT, - fByPosition: BOOL, - lpmii: LPMENUITEMINFOW, - ) -> BOOL; -} -extern "C" { - pub fn SetMenuItemInfoA( - hmenu: HMENU, - item: UINT, - fByPositon: BOOL, - lpmii: LPCMENUITEMINFOA, - ) -> BOOL; -} -extern "C" { - pub fn SetMenuItemInfoW( - hmenu: HMENU, - item: UINT, - fByPositon: BOOL, - lpmii: LPCMENUITEMINFOW, - ) -> BOOL; -} -extern "C" { - pub fn GetMenuDefaultItem(hMenu: HMENU, fByPos: UINT, gmdiFlags: UINT) -> UINT; -} -extern "C" { - pub fn SetMenuDefaultItem(hMenu: HMENU, uItem: UINT, fByPos: UINT) -> BOOL; -} -extern "C" { - pub fn GetMenuItemRect(hWnd: HWND, hMenu: HMENU, uItem: UINT, lprcItem: LPRECT) -> BOOL; -} -extern "C" { - pub fn MenuItemFromPoint(hWnd: HWND, hMenu: HMENU, ptScreen: POINT) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagDROPSTRUCT { - pub hwndSource: HWND, - pub hwndSink: HWND, - pub wFmt: DWORD, - pub dwData: ULONG_PTR, - pub ptDrop: POINT, - pub dwControlData: DWORD, -} -pub type DROPSTRUCT = tagDROPSTRUCT; -pub type PDROPSTRUCT = *mut tagDROPSTRUCT; -pub type LPDROPSTRUCT = *mut tagDROPSTRUCT; -extern "C" { - pub fn DragObject( - hwndParent: HWND, - hwndFrom: HWND, - fmt: UINT, - data: ULONG_PTR, - hcur: HCURSOR, - ) -> DWORD; -} -extern "C" { - pub fn DragDetect(hwnd: HWND, pt: POINT) -> BOOL; -} -extern "C" { - pub fn DrawIcon( - hDC: HDC, - X: ::std::os::raw::c_int, - Y: ::std::os::raw::c_int, - hIcon: HICON, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagDRAWTEXTPARAMS { - pub cbSize: UINT, - pub iTabLength: ::std::os::raw::c_int, - pub iLeftMargin: ::std::os::raw::c_int, - pub iRightMargin: ::std::os::raw::c_int, - pub uiLengthDrawn: UINT, -} -pub type DRAWTEXTPARAMS = tagDRAWTEXTPARAMS; -pub type LPDRAWTEXTPARAMS = *mut tagDRAWTEXTPARAMS; -extern "C" { - pub fn DrawTextA( - hdc: HDC, - lpchText: LPCSTR, - cchText: ::std::os::raw::c_int, - lprc: LPRECT, - format: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn DrawTextW( - hdc: HDC, - lpchText: LPCWSTR, - cchText: ::std::os::raw::c_int, - lprc: LPRECT, - format: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn DrawTextExA( - hdc: HDC, - lpchText: LPSTR, - cchText: ::std::os::raw::c_int, - lprc: LPRECT, - format: UINT, - lpdtp: LPDRAWTEXTPARAMS, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn DrawTextExW( - hdc: HDC, - lpchText: LPWSTR, - cchText: ::std::os::raw::c_int, - lprc: LPRECT, - format: UINT, - lpdtp: LPDRAWTEXTPARAMS, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GrayStringA( - hDC: HDC, - hBrush: HBRUSH, - lpOutputFunc: GRAYSTRINGPROC, - lpData: LPARAM, - nCount: ::std::os::raw::c_int, - X: ::std::os::raw::c_int, - Y: ::std::os::raw::c_int, - nWidth: ::std::os::raw::c_int, - nHeight: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn GrayStringW( - hDC: HDC, - hBrush: HBRUSH, - lpOutputFunc: GRAYSTRINGPROC, - lpData: LPARAM, - nCount: ::std::os::raw::c_int, - X: ::std::os::raw::c_int, - Y: ::std::os::raw::c_int, - nWidth: ::std::os::raw::c_int, - nHeight: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn DrawStateA( - hdc: HDC, - hbrFore: HBRUSH, - qfnCallBack: DRAWSTATEPROC, - lData: LPARAM, - wData: WPARAM, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - cx: ::std::os::raw::c_int, - cy: ::std::os::raw::c_int, - uFlags: UINT, - ) -> BOOL; -} -extern "C" { - pub fn DrawStateW( - hdc: HDC, - hbrFore: HBRUSH, - qfnCallBack: DRAWSTATEPROC, - lData: LPARAM, - wData: WPARAM, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - cx: ::std::os::raw::c_int, - cy: ::std::os::raw::c_int, - uFlags: UINT, - ) -> BOOL; -} -extern "C" { - pub fn TabbedTextOutA( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - lpString: LPCSTR, - chCount: ::std::os::raw::c_int, - nTabPositions: ::std::os::raw::c_int, - lpnTabStopPositions: *const INT, - nTabOrigin: ::std::os::raw::c_int, - ) -> LONG; -} -extern "C" { - pub fn TabbedTextOutW( - hdc: HDC, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - lpString: LPCWSTR, - chCount: ::std::os::raw::c_int, - nTabPositions: ::std::os::raw::c_int, - lpnTabStopPositions: *const INT, - nTabOrigin: ::std::os::raw::c_int, - ) -> LONG; -} -extern "C" { - pub fn GetTabbedTextExtentA( - hdc: HDC, - lpString: LPCSTR, - chCount: ::std::os::raw::c_int, - nTabPositions: ::std::os::raw::c_int, - lpnTabStopPositions: *const INT, - ) -> DWORD; -} -extern "C" { - pub fn GetTabbedTextExtentW( - hdc: HDC, - lpString: LPCWSTR, - chCount: ::std::os::raw::c_int, - nTabPositions: ::std::os::raw::c_int, - lpnTabStopPositions: *const INT, - ) -> DWORD; -} -extern "C" { - pub fn UpdateWindow(hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn SetActiveWindow(hWnd: HWND) -> HWND; -} -extern "C" { - pub fn GetForegroundWindow() -> HWND; -} -extern "C" { - pub fn PaintDesktop(hdc: HDC) -> BOOL; -} -extern "C" { - pub fn SwitchToThisWindow(hwnd: HWND, fUnknown: BOOL); -} -extern "C" { - pub fn SetForegroundWindow(hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn AllowSetForegroundWindow(dwProcessId: DWORD) -> BOOL; -} -extern "C" { - pub fn LockSetForegroundWindow(uLockCode: UINT) -> BOOL; -} -extern "C" { - pub fn WindowFromDC(hDC: HDC) -> HWND; -} -extern "C" { - pub fn GetDC(hWnd: HWND) -> HDC; -} -extern "C" { - pub fn GetDCEx(hWnd: HWND, hrgnClip: HRGN, flags: DWORD) -> HDC; -} -extern "C" { - pub fn GetWindowDC(hWnd: HWND) -> HDC; -} -extern "C" { - pub fn ReleaseDC(hWnd: HWND, hDC: HDC) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn BeginPaint(hWnd: HWND, lpPaint: LPPAINTSTRUCT) -> HDC; -} -extern "C" { - pub fn EndPaint(hWnd: HWND, lpPaint: *const PAINTSTRUCT) -> BOOL; -} -extern "C" { - pub fn GetUpdateRect(hWnd: HWND, lpRect: LPRECT, bErase: BOOL) -> BOOL; -} -extern "C" { - pub fn GetUpdateRgn(hWnd: HWND, hRgn: HRGN, bErase: BOOL) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetWindowRgn(hWnd: HWND, hRgn: HRGN, bRedraw: BOOL) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetWindowRgn(hWnd: HWND, hRgn: HRGN) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetWindowRgnBox(hWnd: HWND, lprc: LPRECT) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ExcludeUpdateRgn(hDC: HDC, hWnd: HWND) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn InvalidateRect(hWnd: HWND, lpRect: *const RECT, bErase: BOOL) -> BOOL; -} -extern "C" { - pub fn ValidateRect(hWnd: HWND, lpRect: *const RECT) -> BOOL; -} -extern "C" { - pub fn InvalidateRgn(hWnd: HWND, hRgn: HRGN, bErase: BOOL) -> BOOL; -} -extern "C" { - pub fn ValidateRgn(hWnd: HWND, hRgn: HRGN) -> BOOL; -} -extern "C" { - pub fn RedrawWindow(hWnd: HWND, lprcUpdate: *const RECT, hrgnUpdate: HRGN, flags: UINT) - -> BOOL; -} -extern "C" { - pub fn LockWindowUpdate(hWndLock: HWND) -> BOOL; -} -extern "C" { - pub fn ScrollWindow( - hWnd: HWND, - XAmount: ::std::os::raw::c_int, - YAmount: ::std::os::raw::c_int, - lpRect: *const RECT, - lpClipRect: *const RECT, - ) -> BOOL; -} -extern "C" { - pub fn ScrollDC( - hDC: HDC, - dx: ::std::os::raw::c_int, - dy: ::std::os::raw::c_int, - lprcScroll: *const RECT, - lprcClip: *const RECT, - hrgnUpdate: HRGN, - lprcUpdate: LPRECT, - ) -> BOOL; -} -extern "C" { - pub fn ScrollWindowEx( - hWnd: HWND, - dx: ::std::os::raw::c_int, - dy: ::std::os::raw::c_int, - prcScroll: *const RECT, - prcClip: *const RECT, - hrgnUpdate: HRGN, - prcUpdate: LPRECT, - flags: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetScrollPos( - hWnd: HWND, - nBar: ::std::os::raw::c_int, - nPos: ::std::os::raw::c_int, - bRedraw: BOOL, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetScrollPos(hWnd: HWND, nBar: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetScrollRange( - hWnd: HWND, - nBar: ::std::os::raw::c_int, - nMinPos: ::std::os::raw::c_int, - nMaxPos: ::std::os::raw::c_int, - bRedraw: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn GetScrollRange( - hWnd: HWND, - nBar: ::std::os::raw::c_int, - lpMinPos: LPINT, - lpMaxPos: LPINT, - ) -> BOOL; -} -extern "C" { - pub fn ShowScrollBar(hWnd: HWND, wBar: ::std::os::raw::c_int, bShow: BOOL) -> BOOL; -} -extern "C" { - pub fn EnableScrollBar(hWnd: HWND, wSBflags: UINT, wArrows: UINT) -> BOOL; -} -extern "C" { - pub fn SetPropA(hWnd: HWND, lpString: LPCSTR, hData: HANDLE) -> BOOL; -} -extern "C" { - pub fn SetPropW(hWnd: HWND, lpString: LPCWSTR, hData: HANDLE) -> BOOL; -} -extern "C" { - pub fn GetPropA(hWnd: HWND, lpString: LPCSTR) -> HANDLE; -} -extern "C" { - pub fn GetPropW(hWnd: HWND, lpString: LPCWSTR) -> HANDLE; -} -extern "C" { - pub fn RemovePropA(hWnd: HWND, lpString: LPCSTR) -> HANDLE; -} -extern "C" { - pub fn RemovePropW(hWnd: HWND, lpString: LPCWSTR) -> HANDLE; -} -extern "C" { - pub fn EnumPropsExA( - hWnd: HWND, - lpEnumFunc: PROPENUMPROCEXA, - lParam: LPARAM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EnumPropsExW( - hWnd: HWND, - lpEnumFunc: PROPENUMPROCEXW, - lParam: LPARAM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EnumPropsA(hWnd: HWND, lpEnumFunc: PROPENUMPROCA) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EnumPropsW(hWnd: HWND, lpEnumFunc: PROPENUMPROCW) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetWindowTextA(hWnd: HWND, lpString: LPCSTR) -> BOOL; -} -extern "C" { - pub fn SetWindowTextW(hWnd: HWND, lpString: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn GetWindowTextA( - hWnd: HWND, - lpString: LPSTR, - nMaxCount: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetWindowTextW( - hWnd: HWND, - lpString: LPWSTR, - nMaxCount: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetWindowTextLengthA(hWnd: HWND) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetWindowTextLengthW(hWnd: HWND) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetClientRect(hWnd: HWND, lpRect: LPRECT) -> BOOL; -} -extern "C" { - pub fn GetWindowRect(hWnd: HWND, lpRect: LPRECT) -> BOOL; -} -extern "C" { - pub fn AdjustWindowRect(lpRect: LPRECT, dwStyle: DWORD, bMenu: BOOL) -> BOOL; -} -extern "C" { - pub fn AdjustWindowRectEx( - lpRect: LPRECT, - dwStyle: DWORD, - bMenu: BOOL, - dwExStyle: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn AdjustWindowRectExForDpi( - lpRect: LPRECT, - dwStyle: DWORD, - bMenu: BOOL, - dwExStyle: DWORD, - dpi: UINT, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagHELPINFO { - pub cbSize: UINT, - pub iContextType: ::std::os::raw::c_int, - pub iCtrlId: ::std::os::raw::c_int, - pub hItemHandle: HANDLE, - pub dwContextId: DWORD_PTR, - pub MousePos: POINT, -} -pub type HELPINFO = tagHELPINFO; -pub type LPHELPINFO = *mut tagHELPINFO; -extern "C" { - pub fn SetWindowContextHelpId(arg1: HWND, arg2: DWORD) -> BOOL; -} -extern "C" { - pub fn GetWindowContextHelpId(arg1: HWND) -> DWORD; -} -extern "C" { - pub fn SetMenuContextHelpId(arg1: HMENU, arg2: DWORD) -> BOOL; -} -extern "C" { - pub fn GetMenuContextHelpId(arg1: HMENU) -> DWORD; -} -extern "C" { - pub fn MessageBoxA( - hWnd: HWND, - lpText: LPCSTR, - lpCaption: LPCSTR, - uType: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn MessageBoxW( - hWnd: HWND, - lpText: LPCWSTR, - lpCaption: LPCWSTR, - uType: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn MessageBoxExA( - hWnd: HWND, - lpText: LPCSTR, - lpCaption: LPCSTR, - uType: UINT, - wLanguageId: WORD, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn MessageBoxExW( - hWnd: HWND, - lpText: LPCWSTR, - lpCaption: LPCWSTR, - uType: UINT, - wLanguageId: WORD, - ) -> ::std::os::raw::c_int; -} -pub type MSGBOXCALLBACK = ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMSGBOXPARAMSA { - pub cbSize: UINT, - pub hwndOwner: HWND, - pub hInstance: HINSTANCE, - pub lpszText: LPCSTR, - pub lpszCaption: LPCSTR, - pub dwStyle: DWORD, - pub lpszIcon: LPCSTR, - pub dwContextHelpId: DWORD_PTR, - pub lpfnMsgBoxCallback: MSGBOXCALLBACK, - pub dwLanguageId: DWORD, -} -pub type MSGBOXPARAMSA = tagMSGBOXPARAMSA; -pub type PMSGBOXPARAMSA = *mut tagMSGBOXPARAMSA; -pub type LPMSGBOXPARAMSA = *mut tagMSGBOXPARAMSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMSGBOXPARAMSW { - pub cbSize: UINT, - pub hwndOwner: HWND, - pub hInstance: HINSTANCE, - pub lpszText: LPCWSTR, - pub lpszCaption: LPCWSTR, - pub dwStyle: DWORD, - pub lpszIcon: LPCWSTR, - pub dwContextHelpId: DWORD_PTR, - pub lpfnMsgBoxCallback: MSGBOXCALLBACK, - pub dwLanguageId: DWORD, -} -pub type MSGBOXPARAMSW = tagMSGBOXPARAMSW; -pub type PMSGBOXPARAMSW = *mut tagMSGBOXPARAMSW; -pub type LPMSGBOXPARAMSW = *mut tagMSGBOXPARAMSW; -pub type MSGBOXPARAMS = MSGBOXPARAMSA; -pub type PMSGBOXPARAMS = PMSGBOXPARAMSA; -pub type LPMSGBOXPARAMS = LPMSGBOXPARAMSA; -extern "C" { - pub fn MessageBoxIndirectA(lpmbp: *const MSGBOXPARAMSA) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn MessageBoxIndirectW(lpmbp: *const MSGBOXPARAMSW) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn MessageBeep(uType: UINT) -> BOOL; -} -extern "C" { - pub fn ShowCursor(bShow: BOOL) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetCursorPos(X: ::std::os::raw::c_int, Y: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn SetPhysicalCursorPos(X: ::std::os::raw::c_int, Y: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn SetCursor(hCursor: HCURSOR) -> HCURSOR; -} -extern "C" { - pub fn GetCursorPos(lpPoint: LPPOINT) -> BOOL; -} -extern "C" { - pub fn GetPhysicalCursorPos(lpPoint: LPPOINT) -> BOOL; -} -extern "C" { - pub fn GetClipCursor(lpRect: LPRECT) -> BOOL; -} -extern "C" { - pub fn GetCursor() -> HCURSOR; -} -extern "C" { - pub fn CreateCaret( - hWnd: HWND, - hBitmap: HBITMAP, - nWidth: ::std::os::raw::c_int, - nHeight: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn GetCaretBlinkTime() -> UINT; -} -extern "C" { - pub fn SetCaretBlinkTime(uMSeconds: UINT) -> BOOL; -} -extern "C" { - pub fn DestroyCaret() -> BOOL; -} -extern "C" { - pub fn HideCaret(hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn ShowCaret(hWnd: HWND) -> BOOL; -} -extern "C" { - pub fn SetCaretPos(X: ::std::os::raw::c_int, Y: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn GetCaretPos(lpPoint: LPPOINT) -> BOOL; -} -extern "C" { - pub fn ClientToScreen(hWnd: HWND, lpPoint: LPPOINT) -> BOOL; -} -extern "C" { - pub fn ScreenToClient(hWnd: HWND, lpPoint: LPPOINT) -> BOOL; -} -extern "C" { - pub fn LogicalToPhysicalPoint(hWnd: HWND, lpPoint: LPPOINT) -> BOOL; -} -extern "C" { - pub fn PhysicalToLogicalPoint(hWnd: HWND, lpPoint: LPPOINT) -> BOOL; -} -extern "C" { - pub fn LogicalToPhysicalPointForPerMonitorDPI(hWnd: HWND, lpPoint: LPPOINT) -> BOOL; -} -extern "C" { - pub fn PhysicalToLogicalPointForPerMonitorDPI(hWnd: HWND, lpPoint: LPPOINT) -> BOOL; -} -extern "C" { - pub fn MapWindowPoints( - hWndFrom: HWND, - hWndTo: HWND, - lpPoints: LPPOINT, - cPoints: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn WindowFromPoint(Point: POINT) -> HWND; -} -extern "C" { - pub fn WindowFromPhysicalPoint(Point: POINT) -> HWND; -} -extern "C" { - pub fn ChildWindowFromPoint(hWndParent: HWND, Point: POINT) -> HWND; -} -extern "C" { - pub fn ClipCursor(lpRect: *const RECT) -> BOOL; -} -extern "C" { - pub fn ChildWindowFromPointEx(hwnd: HWND, pt: POINT, flags: UINT) -> HWND; -} -extern "C" { - pub fn GetSysColor(nIndex: ::std::os::raw::c_int) -> DWORD; -} -extern "C" { - pub fn GetSysColorBrush(nIndex: ::std::os::raw::c_int) -> HBRUSH; -} -extern "C" { - pub fn SetSysColors( - cElements: ::std::os::raw::c_int, - lpaElements: *const INT, - lpaRgbValues: *const COLORREF, - ) -> BOOL; -} -extern "C" { - pub fn DrawFocusRect(hDC: HDC, lprc: *const RECT) -> BOOL; -} -extern "C" { - pub fn FillRect(hDC: HDC, lprc: *const RECT, hbr: HBRUSH) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn FrameRect(hDC: HDC, lprc: *const RECT, hbr: HBRUSH) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn InvertRect(hDC: HDC, lprc: *const RECT) -> BOOL; -} -extern "C" { - pub fn SetRect( - lprc: LPRECT, - xLeft: ::std::os::raw::c_int, - yTop: ::std::os::raw::c_int, - xRight: ::std::os::raw::c_int, - yBottom: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn SetRectEmpty(lprc: LPRECT) -> BOOL; -} -extern "C" { - pub fn CopyRect(lprcDst: LPRECT, lprcSrc: *const RECT) -> BOOL; -} -extern "C" { - pub fn InflateRect(lprc: LPRECT, dx: ::std::os::raw::c_int, dy: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn IntersectRect(lprcDst: LPRECT, lprcSrc1: *const RECT, lprcSrc2: *const RECT) -> BOOL; -} -extern "C" { - pub fn UnionRect(lprcDst: LPRECT, lprcSrc1: *const RECT, lprcSrc2: *const RECT) -> BOOL; -} -extern "C" { - pub fn SubtractRect(lprcDst: LPRECT, lprcSrc1: *const RECT, lprcSrc2: *const RECT) -> BOOL; -} -extern "C" { - pub fn OffsetRect(lprc: LPRECT, dx: ::std::os::raw::c_int, dy: ::std::os::raw::c_int) -> BOOL; -} -extern "C" { - pub fn IsRectEmpty(lprc: *const RECT) -> BOOL; -} -extern "C" { - pub fn EqualRect(lprc1: *const RECT, lprc2: *const RECT) -> BOOL; -} -extern "C" { - pub fn PtInRect(lprc: *const RECT, pt: POINT) -> BOOL; -} -extern "C" { - pub fn GetWindowWord(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> WORD; -} -extern "C" { - pub fn SetWindowWord(hWnd: HWND, nIndex: ::std::os::raw::c_int, wNewWord: WORD) -> WORD; -} -extern "C" { - pub fn GetWindowLongA(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> LONG; -} -extern "C" { - pub fn GetWindowLongW(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> LONG; -} -extern "C" { - pub fn SetWindowLongA(hWnd: HWND, nIndex: ::std::os::raw::c_int, dwNewLong: LONG) -> LONG; -} -extern "C" { - pub fn SetWindowLongW(hWnd: HWND, nIndex: ::std::os::raw::c_int, dwNewLong: LONG) -> LONG; -} -extern "C" { - pub fn GetWindowLongPtrA(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> LONG_PTR; -} -extern "C" { - pub fn GetWindowLongPtrW(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> LONG_PTR; -} -extern "C" { - pub fn SetWindowLongPtrA( - hWnd: HWND, - nIndex: ::std::os::raw::c_int, - dwNewLong: LONG_PTR, - ) -> LONG_PTR; -} -extern "C" { - pub fn SetWindowLongPtrW( - hWnd: HWND, - nIndex: ::std::os::raw::c_int, - dwNewLong: LONG_PTR, - ) -> LONG_PTR; -} -extern "C" { - pub fn GetClassWord(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> WORD; -} -extern "C" { - pub fn SetClassWord(hWnd: HWND, nIndex: ::std::os::raw::c_int, wNewWord: WORD) -> WORD; -} -extern "C" { - pub fn GetClassLongA(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> DWORD; -} -extern "C" { - pub fn GetClassLongW(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> DWORD; -} -extern "C" { - pub fn SetClassLongA(hWnd: HWND, nIndex: ::std::os::raw::c_int, dwNewLong: LONG) -> DWORD; -} -extern "C" { - pub fn SetClassLongW(hWnd: HWND, nIndex: ::std::os::raw::c_int, dwNewLong: LONG) -> DWORD; -} -extern "C" { - pub fn GetClassLongPtrA(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> ULONG_PTR; -} -extern "C" { - pub fn GetClassLongPtrW(hWnd: HWND, nIndex: ::std::os::raw::c_int) -> ULONG_PTR; -} -extern "C" { - pub fn SetClassLongPtrA( - hWnd: HWND, - nIndex: ::std::os::raw::c_int, - dwNewLong: LONG_PTR, - ) -> ULONG_PTR; -} -extern "C" { - pub fn SetClassLongPtrW( - hWnd: HWND, - nIndex: ::std::os::raw::c_int, - dwNewLong: LONG_PTR, - ) -> ULONG_PTR; -} -extern "C" { - pub fn GetProcessDefaultLayout(pdwDefaultLayout: *mut DWORD) -> BOOL; -} -extern "C" { - pub fn SetProcessDefaultLayout(dwDefaultLayout: DWORD) -> BOOL; -} -extern "C" { - pub fn GetDesktopWindow() -> HWND; -} -extern "C" { - pub fn GetParent(hWnd: HWND) -> HWND; -} -extern "C" { - pub fn SetParent(hWndChild: HWND, hWndNewParent: HWND) -> HWND; -} -extern "C" { - pub fn EnumChildWindows(hWndParent: HWND, lpEnumFunc: WNDENUMPROC, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn FindWindowA(lpClassName: LPCSTR, lpWindowName: LPCSTR) -> HWND; -} -extern "C" { - pub fn FindWindowW(lpClassName: LPCWSTR, lpWindowName: LPCWSTR) -> HWND; -} -extern "C" { - pub fn FindWindowExA( - hWndParent: HWND, - hWndChildAfter: HWND, - lpszClass: LPCSTR, - lpszWindow: LPCSTR, - ) -> HWND; -} -extern "C" { - pub fn FindWindowExW( - hWndParent: HWND, - hWndChildAfter: HWND, - lpszClass: LPCWSTR, - lpszWindow: LPCWSTR, - ) -> HWND; -} -extern "C" { - pub fn GetShellWindow() -> HWND; -} -extern "C" { - pub fn RegisterShellHookWindow(hwnd: HWND) -> BOOL; -} -extern "C" { - pub fn DeregisterShellHookWindow(hwnd: HWND) -> BOOL; -} -extern "C" { - pub fn EnumWindows(lpEnumFunc: WNDENUMPROC, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn EnumThreadWindows(dwThreadId: DWORD, lpfn: WNDENUMPROC, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn GetClassNameA( - hWnd: HWND, - lpClassName: LPSTR, - nMaxCount: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetClassNameW( - hWnd: HWND, - lpClassName: LPWSTR, - nMaxCount: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetTopWindow(hWnd: HWND) -> HWND; -} -extern "C" { - pub fn GetWindowThreadProcessId(hWnd: HWND, lpdwProcessId: LPDWORD) -> DWORD; -} -extern "C" { - pub fn IsGUIThread(bConvert: BOOL) -> BOOL; -} -extern "C" { - pub fn GetLastActivePopup(hWnd: HWND) -> HWND; -} -extern "C" { - pub fn GetWindow(hWnd: HWND, uCmd: UINT) -> HWND; -} -extern "C" { - pub fn SetWindowsHookA(nFilterType: ::std::os::raw::c_int, pfnFilterProc: HOOKPROC) -> HHOOK; -} -extern "C" { - pub fn SetWindowsHookW(nFilterType: ::std::os::raw::c_int, pfnFilterProc: HOOKPROC) -> HHOOK; -} -extern "C" { - pub fn UnhookWindowsHook(nCode: ::std::os::raw::c_int, pfnFilterProc: HOOKPROC) -> BOOL; -} -extern "C" { - pub fn SetWindowsHookExA( - idHook: ::std::os::raw::c_int, - lpfn: HOOKPROC, - hmod: HINSTANCE, - dwThreadId: DWORD, - ) -> HHOOK; -} -extern "C" { - pub fn SetWindowsHookExW( - idHook: ::std::os::raw::c_int, - lpfn: HOOKPROC, - hmod: HINSTANCE, - dwThreadId: DWORD, - ) -> HHOOK; -} -extern "C" { - pub fn UnhookWindowsHookEx(hhk: HHOOK) -> BOOL; -} -extern "C" { - pub fn CallNextHookEx( - hhk: HHOOK, - nCode: ::std::os::raw::c_int, - wParam: WPARAM, - lParam: LPARAM, - ) -> LRESULT; -} -extern "C" { - pub fn CheckMenuRadioItem( - hmenu: HMENU, - first: UINT, - last: UINT, - check: UINT, - flags: UINT, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MENUITEMTEMPLATEHEADER { - pub versionNumber: WORD, - pub offset: WORD, -} -pub type PMENUITEMTEMPLATEHEADER = *mut MENUITEMTEMPLATEHEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MENUITEMTEMPLATE { - pub mtOption: WORD, - pub mtID: WORD, - pub mtString: [WCHAR; 1usize], -} -pub type PMENUITEMTEMPLATE = *mut MENUITEMTEMPLATE; -extern "C" { - pub fn LoadBitmapA(hInstance: HINSTANCE, lpBitmapName: LPCSTR) -> HBITMAP; -} -extern "C" { - pub fn LoadBitmapW(hInstance: HINSTANCE, lpBitmapName: LPCWSTR) -> HBITMAP; -} -extern "C" { - pub fn LoadCursorA(hInstance: HINSTANCE, lpCursorName: LPCSTR) -> HCURSOR; -} -extern "C" { - pub fn LoadCursorW(hInstance: HINSTANCE, lpCursorName: LPCWSTR) -> HCURSOR; -} -extern "C" { - pub fn LoadCursorFromFileA(lpFileName: LPCSTR) -> HCURSOR; -} -extern "C" { - pub fn LoadCursorFromFileW(lpFileName: LPCWSTR) -> HCURSOR; -} -extern "C" { - pub fn CreateCursor( - hInst: HINSTANCE, - xHotSpot: ::std::os::raw::c_int, - yHotSpot: ::std::os::raw::c_int, - nWidth: ::std::os::raw::c_int, - nHeight: ::std::os::raw::c_int, - pvANDPlane: *const ::std::os::raw::c_void, - pvXORPlane: *const ::std::os::raw::c_void, - ) -> HCURSOR; -} -extern "C" { - pub fn DestroyCursor(hCursor: HCURSOR) -> BOOL; -} -extern "C" { - pub fn SetSystemCursor(hcur: HCURSOR, id: DWORD) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ICONINFO { - pub fIcon: BOOL, - pub xHotspot: DWORD, - pub yHotspot: DWORD, - pub hbmMask: HBITMAP, - pub hbmColor: HBITMAP, -} -pub type ICONINFO = _ICONINFO; -pub type PICONINFO = *mut ICONINFO; -extern "C" { - pub fn LoadIconA(hInstance: HINSTANCE, lpIconName: LPCSTR) -> HICON; -} -extern "C" { - pub fn LoadIconW(hInstance: HINSTANCE, lpIconName: LPCWSTR) -> HICON; -} -extern "C" { - pub fn PrivateExtractIconsA( - szFileName: LPCSTR, - nIconIndex: ::std::os::raw::c_int, - cxIcon: ::std::os::raw::c_int, - cyIcon: ::std::os::raw::c_int, - phicon: *mut HICON, - piconid: *mut UINT, - nIcons: UINT, - flags: UINT, - ) -> UINT; -} -extern "C" { - pub fn PrivateExtractIconsW( - szFileName: LPCWSTR, - nIconIndex: ::std::os::raw::c_int, - cxIcon: ::std::os::raw::c_int, - cyIcon: ::std::os::raw::c_int, - phicon: *mut HICON, - piconid: *mut UINT, - nIcons: UINT, - flags: UINT, - ) -> UINT; -} -extern "C" { - pub fn CreateIcon( - hInstance: HINSTANCE, - nWidth: ::std::os::raw::c_int, - nHeight: ::std::os::raw::c_int, - cPlanes: BYTE, - cBitsPixel: BYTE, - lpbANDbits: *const BYTE, - lpbXORbits: *const BYTE, - ) -> HICON; -} -extern "C" { - pub fn DestroyIcon(hIcon: HICON) -> BOOL; -} -extern "C" { - pub fn LookupIconIdFromDirectory(presbits: PBYTE, fIcon: BOOL) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn LookupIconIdFromDirectoryEx( - presbits: PBYTE, - fIcon: BOOL, - cxDesired: ::std::os::raw::c_int, - cyDesired: ::std::os::raw::c_int, - Flags: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn CreateIconFromResource( - presbits: PBYTE, - dwResSize: DWORD, - fIcon: BOOL, - dwVer: DWORD, - ) -> HICON; -} -extern "C" { - pub fn CreateIconFromResourceEx( - presbits: PBYTE, - dwResSize: DWORD, - fIcon: BOOL, - dwVer: DWORD, - cxDesired: ::std::os::raw::c_int, - cyDesired: ::std::os::raw::c_int, - Flags: UINT, - ) -> HICON; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCURSORSHAPE { - pub xHotSpot: ::std::os::raw::c_int, - pub yHotSpot: ::std::os::raw::c_int, - pub cx: ::std::os::raw::c_int, - pub cy: ::std::os::raw::c_int, - pub cbWidth: ::std::os::raw::c_int, - pub Planes: BYTE, - pub BitsPixel: BYTE, -} -pub type CURSORSHAPE = tagCURSORSHAPE; -pub type LPCURSORSHAPE = *mut tagCURSORSHAPE; -extern "C" { - pub fn SetThreadCursorCreationScaling(cursorDpi: UINT) -> UINT; -} -extern "C" { - pub fn LoadImageA( - hInst: HINSTANCE, - name: LPCSTR, - type_: UINT, - cx: ::std::os::raw::c_int, - cy: ::std::os::raw::c_int, - fuLoad: UINT, - ) -> HANDLE; -} -extern "C" { - pub fn LoadImageW( - hInst: HINSTANCE, - name: LPCWSTR, - type_: UINT, - cx: ::std::os::raw::c_int, - cy: ::std::os::raw::c_int, - fuLoad: UINT, - ) -> HANDLE; -} -extern "C" { - pub fn CopyImage( - h: HANDLE, - type_: UINT, - cx: ::std::os::raw::c_int, - cy: ::std::os::raw::c_int, - flags: UINT, - ) -> HANDLE; -} -extern "C" { - pub fn DrawIconEx( - hdc: HDC, - xLeft: ::std::os::raw::c_int, - yTop: ::std::os::raw::c_int, - hIcon: HICON, - cxWidth: ::std::os::raw::c_int, - cyWidth: ::std::os::raw::c_int, - istepIfAniCur: UINT, - hbrFlickerFreeDraw: HBRUSH, - diFlags: UINT, - ) -> BOOL; -} -extern "C" { - pub fn CreateIconIndirect(piconinfo: PICONINFO) -> HICON; -} -extern "C" { - pub fn CopyIcon(hIcon: HICON) -> HICON; -} -extern "C" { - pub fn GetIconInfo(hIcon: HICON, piconinfo: PICONINFO) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ICONINFOEXA { - pub cbSize: DWORD, - pub fIcon: BOOL, - pub xHotspot: DWORD, - pub yHotspot: DWORD, - pub hbmMask: HBITMAP, - pub hbmColor: HBITMAP, - pub wResID: WORD, - pub szModName: [CHAR; 260usize], - pub szResName: [CHAR; 260usize], -} -pub type ICONINFOEXA = _ICONINFOEXA; -pub type PICONINFOEXA = *mut _ICONINFOEXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ICONINFOEXW { - pub cbSize: DWORD, - pub fIcon: BOOL, - pub xHotspot: DWORD, - pub yHotspot: DWORD, - pub hbmMask: HBITMAP, - pub hbmColor: HBITMAP, - pub wResID: WORD, - pub szModName: [WCHAR; 260usize], - pub szResName: [WCHAR; 260usize], -} -pub type ICONINFOEXW = _ICONINFOEXW; -pub type PICONINFOEXW = *mut _ICONINFOEXW; -pub type ICONINFOEX = ICONINFOEXA; -pub type PICONINFOEX = PICONINFOEXA; -extern "C" { - pub fn GetIconInfoExA(hicon: HICON, piconinfo: PICONINFOEXA) -> BOOL; -} -extern "C" { - pub fn GetIconInfoExW(hicon: HICON, piconinfo: PICONINFOEXW) -> BOOL; -} -pub const EDIT_CONTROL_FEATURE_EDIT_CONTROL_FEATURE_ENTERPRISE_DATA_PROTECTION_PASTE_SUPPORT: - EDIT_CONTROL_FEATURE = 0; -pub const EDIT_CONTROL_FEATURE_EDIT_CONTROL_FEATURE_PASTE_NOTIFICATIONS: EDIT_CONTROL_FEATURE = 1; -pub type EDIT_CONTROL_FEATURE = ::std::os::raw::c_int; -extern "C" { - pub fn IsDialogMessageA(hDlg: HWND, lpMsg: LPMSG) -> BOOL; -} -extern "C" { - pub fn IsDialogMessageW(hDlg: HWND, lpMsg: LPMSG) -> BOOL; -} -extern "C" { - pub fn MapDialogRect(hDlg: HWND, lpRect: LPRECT) -> BOOL; -} -extern "C" { - pub fn DlgDirListA( - hDlg: HWND, - lpPathSpec: LPSTR, - nIDListBox: ::std::os::raw::c_int, - nIDStaticPath: ::std::os::raw::c_int, - uFileType: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn DlgDirListW( - hDlg: HWND, - lpPathSpec: LPWSTR, - nIDListBox: ::std::os::raw::c_int, - nIDStaticPath: ::std::os::raw::c_int, - uFileType: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn DlgDirSelectExA( - hwndDlg: HWND, - lpString: LPSTR, - chCount: ::std::os::raw::c_int, - idListBox: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn DlgDirSelectExW( - hwndDlg: HWND, - lpString: LPWSTR, - chCount: ::std::os::raw::c_int, - idListBox: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn DlgDirListComboBoxA( - hDlg: HWND, - lpPathSpec: LPSTR, - nIDComboBox: ::std::os::raw::c_int, - nIDStaticPath: ::std::os::raw::c_int, - uFiletype: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn DlgDirListComboBoxW( - hDlg: HWND, - lpPathSpec: LPWSTR, - nIDComboBox: ::std::os::raw::c_int, - nIDStaticPath: ::std::os::raw::c_int, - uFiletype: UINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn DlgDirSelectComboBoxExA( - hwndDlg: HWND, - lpString: LPSTR, - cchOut: ::std::os::raw::c_int, - idComboBox: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn DlgDirSelectComboBoxExW( - hwndDlg: HWND, - lpString: LPWSTR, - cchOut: ::std::os::raw::c_int, - idComboBox: ::std::os::raw::c_int, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSCROLLINFO { - pub cbSize: UINT, - pub fMask: UINT, - pub nMin: ::std::os::raw::c_int, - pub nMax: ::std::os::raw::c_int, - pub nPage: UINT, - pub nPos: ::std::os::raw::c_int, - pub nTrackPos: ::std::os::raw::c_int, -} -pub type SCROLLINFO = tagSCROLLINFO; -pub type LPSCROLLINFO = *mut tagSCROLLINFO; -pub type LPCSCROLLINFO = *const SCROLLINFO; -extern "C" { - pub fn SetScrollInfo( - hwnd: HWND, - nBar: ::std::os::raw::c_int, - lpsi: LPCSCROLLINFO, - redraw: BOOL, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetScrollInfo(hwnd: HWND, nBar: ::std::os::raw::c_int, lpsi: LPSCROLLINFO) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMDICREATESTRUCTA { - pub szClass: LPCSTR, - pub szTitle: LPCSTR, - pub hOwner: HANDLE, - pub x: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, - pub cx: ::std::os::raw::c_int, - pub cy: ::std::os::raw::c_int, - pub style: DWORD, - pub lParam: LPARAM, -} -pub type MDICREATESTRUCTA = tagMDICREATESTRUCTA; -pub type LPMDICREATESTRUCTA = *mut tagMDICREATESTRUCTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMDICREATESTRUCTW { - pub szClass: LPCWSTR, - pub szTitle: LPCWSTR, - pub hOwner: HANDLE, - pub x: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, - pub cx: ::std::os::raw::c_int, - pub cy: ::std::os::raw::c_int, - pub style: DWORD, - pub lParam: LPARAM, -} -pub type MDICREATESTRUCTW = tagMDICREATESTRUCTW; -pub type LPMDICREATESTRUCTW = *mut tagMDICREATESTRUCTW; -pub type MDICREATESTRUCT = MDICREATESTRUCTA; -pub type LPMDICREATESTRUCT = LPMDICREATESTRUCTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCLIENTCREATESTRUCT { - pub hWindowMenu: HANDLE, - pub idFirstChild: UINT, -} -pub type CLIENTCREATESTRUCT = tagCLIENTCREATESTRUCT; -pub type LPCLIENTCREATESTRUCT = *mut tagCLIENTCREATESTRUCT; -extern "C" { - pub fn DefFrameProcA( - hWnd: HWND, - hWndMDIClient: HWND, - uMsg: UINT, - wParam: WPARAM, - lParam: LPARAM, - ) -> LRESULT; -} -extern "C" { - pub fn DefFrameProcW( - hWnd: HWND, - hWndMDIClient: HWND, - uMsg: UINT, - wParam: WPARAM, - lParam: LPARAM, - ) -> LRESULT; -} -extern "C" { - pub fn DefMDIChildProcA(hWnd: HWND, uMsg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; -} -extern "C" { - pub fn DefMDIChildProcW(hWnd: HWND, uMsg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; -} -extern "C" { - pub fn TranslateMDISysAccel(hWndClient: HWND, lpMsg: LPMSG) -> BOOL; -} -extern "C" { - pub fn ArrangeIconicWindows(hWnd: HWND) -> UINT; -} -extern "C" { - pub fn CreateMDIWindowA( - lpClassName: LPCSTR, - lpWindowName: LPCSTR, - dwStyle: DWORD, - X: ::std::os::raw::c_int, - Y: ::std::os::raw::c_int, - nWidth: ::std::os::raw::c_int, - nHeight: ::std::os::raw::c_int, - hWndParent: HWND, - hInstance: HINSTANCE, - lParam: LPARAM, - ) -> HWND; -} -extern "C" { - pub fn CreateMDIWindowW( - lpClassName: LPCWSTR, - lpWindowName: LPCWSTR, - dwStyle: DWORD, - X: ::std::os::raw::c_int, - Y: ::std::os::raw::c_int, - nWidth: ::std::os::raw::c_int, - nHeight: ::std::os::raw::c_int, - hWndParent: HWND, - hInstance: HINSTANCE, - lParam: LPARAM, - ) -> HWND; -} -extern "C" { - pub fn TileWindows( - hwndParent: HWND, - wHow: UINT, - lpRect: *const RECT, - cKids: UINT, - lpKids: *const HWND, - ) -> WORD; -} -extern "C" { - pub fn CascadeWindows( - hwndParent: HWND, - wHow: UINT, - lpRect: *const RECT, - cKids: UINT, - lpKids: *const HWND, - ) -> WORD; -} -pub type HELPPOLY = DWORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMULTIKEYHELPA { - pub mkSize: DWORD, - pub mkKeylist: CHAR, - pub szKeyphrase: [CHAR; 1usize], -} -pub type MULTIKEYHELPA = tagMULTIKEYHELPA; -pub type PMULTIKEYHELPA = *mut tagMULTIKEYHELPA; -pub type LPMULTIKEYHELPA = *mut tagMULTIKEYHELPA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMULTIKEYHELPW { - pub mkSize: DWORD, - pub mkKeylist: WCHAR, - pub szKeyphrase: [WCHAR; 1usize], -} -pub type MULTIKEYHELPW = tagMULTIKEYHELPW; -pub type PMULTIKEYHELPW = *mut tagMULTIKEYHELPW; -pub type LPMULTIKEYHELPW = *mut tagMULTIKEYHELPW; -pub type MULTIKEYHELP = MULTIKEYHELPA; -pub type PMULTIKEYHELP = PMULTIKEYHELPA; -pub type LPMULTIKEYHELP = LPMULTIKEYHELPA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagHELPWININFOA { - pub wStructSize: ::std::os::raw::c_int, - pub x: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, - pub dx: ::std::os::raw::c_int, - pub dy: ::std::os::raw::c_int, - pub wMax: ::std::os::raw::c_int, - pub rgchMember: [CHAR; 2usize], -} -pub type HELPWININFOA = tagHELPWININFOA; -pub type PHELPWININFOA = *mut tagHELPWININFOA; -pub type LPHELPWININFOA = *mut tagHELPWININFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagHELPWININFOW { - pub wStructSize: ::std::os::raw::c_int, - pub x: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, - pub dx: ::std::os::raw::c_int, - pub dy: ::std::os::raw::c_int, - pub wMax: ::std::os::raw::c_int, - pub rgchMember: [WCHAR; 2usize], -} -pub type HELPWININFOW = tagHELPWININFOW; -pub type PHELPWININFOW = *mut tagHELPWININFOW; -pub type LPHELPWININFOW = *mut tagHELPWININFOW; -pub type HELPWININFO = HELPWININFOA; -pub type PHELPWININFO = PHELPWININFOA; -pub type LPHELPWININFO = LPHELPWININFOA; -extern "C" { - pub fn WinHelpA(hWndMain: HWND, lpszHelp: LPCSTR, uCommand: UINT, dwData: ULONG_PTR) -> BOOL; -} -extern "C" { - pub fn WinHelpW(hWndMain: HWND, lpszHelp: LPCWSTR, uCommand: UINT, dwData: ULONG_PTR) -> BOOL; -} -extern "C" { - pub fn GetGuiResources(hProcess: HANDLE, uiFlags: DWORD) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagTouchPredictionParameters { - pub cbSize: UINT, - pub dwLatency: UINT, - pub dwSampleTime: UINT, - pub bUseHWTimeStamp: UINT, -} -pub type TOUCHPREDICTIONPARAMETERS = tagTouchPredictionParameters; -pub type PTOUCHPREDICTIONPARAMETERS = *mut tagTouchPredictionParameters; -pub const tagHANDEDNESS_HANDEDNESS_LEFT: tagHANDEDNESS = 0; -pub const tagHANDEDNESS_HANDEDNESS_RIGHT: tagHANDEDNESS = 1; -pub type tagHANDEDNESS = ::std::os::raw::c_int; -pub use self::tagHANDEDNESS as HANDEDNESS; -pub type PHANDEDNESS = *mut tagHANDEDNESS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagNONCLIENTMETRICSA { - pub cbSize: UINT, - pub iBorderWidth: ::std::os::raw::c_int, - pub iScrollWidth: ::std::os::raw::c_int, - pub iScrollHeight: ::std::os::raw::c_int, - pub iCaptionWidth: ::std::os::raw::c_int, - pub iCaptionHeight: ::std::os::raw::c_int, - pub lfCaptionFont: LOGFONTA, - pub iSmCaptionWidth: ::std::os::raw::c_int, - pub iSmCaptionHeight: ::std::os::raw::c_int, - pub lfSmCaptionFont: LOGFONTA, - pub iMenuWidth: ::std::os::raw::c_int, - pub iMenuHeight: ::std::os::raw::c_int, - pub lfMenuFont: LOGFONTA, - pub lfStatusFont: LOGFONTA, - pub lfMessageFont: LOGFONTA, - pub iPaddedBorderWidth: ::std::os::raw::c_int, -} -pub type NONCLIENTMETRICSA = tagNONCLIENTMETRICSA; -pub type PNONCLIENTMETRICSA = *mut tagNONCLIENTMETRICSA; -pub type LPNONCLIENTMETRICSA = *mut tagNONCLIENTMETRICSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagNONCLIENTMETRICSW { - pub cbSize: UINT, - pub iBorderWidth: ::std::os::raw::c_int, - pub iScrollWidth: ::std::os::raw::c_int, - pub iScrollHeight: ::std::os::raw::c_int, - pub iCaptionWidth: ::std::os::raw::c_int, - pub iCaptionHeight: ::std::os::raw::c_int, - pub lfCaptionFont: LOGFONTW, - pub iSmCaptionWidth: ::std::os::raw::c_int, - pub iSmCaptionHeight: ::std::os::raw::c_int, - pub lfSmCaptionFont: LOGFONTW, - pub iMenuWidth: ::std::os::raw::c_int, - pub iMenuHeight: ::std::os::raw::c_int, - pub lfMenuFont: LOGFONTW, - pub lfStatusFont: LOGFONTW, - pub lfMessageFont: LOGFONTW, - pub iPaddedBorderWidth: ::std::os::raw::c_int, -} -pub type NONCLIENTMETRICSW = tagNONCLIENTMETRICSW; -pub type PNONCLIENTMETRICSW = *mut tagNONCLIENTMETRICSW; -pub type LPNONCLIENTMETRICSW = *mut tagNONCLIENTMETRICSW; -pub type NONCLIENTMETRICS = NONCLIENTMETRICSA; -pub type PNONCLIENTMETRICS = PNONCLIENTMETRICSA; -pub type LPNONCLIENTMETRICS = LPNONCLIENTMETRICSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMINIMIZEDMETRICS { - pub cbSize: UINT, - pub iWidth: ::std::os::raw::c_int, - pub iHorzGap: ::std::os::raw::c_int, - pub iVertGap: ::std::os::raw::c_int, - pub iArrange: ::std::os::raw::c_int, -} -pub type MINIMIZEDMETRICS = tagMINIMIZEDMETRICS; -pub type PMINIMIZEDMETRICS = *mut tagMINIMIZEDMETRICS; -pub type LPMINIMIZEDMETRICS = *mut tagMINIMIZEDMETRICS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagICONMETRICSA { - pub cbSize: UINT, - pub iHorzSpacing: ::std::os::raw::c_int, - pub iVertSpacing: ::std::os::raw::c_int, - pub iTitleWrap: ::std::os::raw::c_int, - pub lfFont: LOGFONTA, -} -pub type ICONMETRICSA = tagICONMETRICSA; -pub type PICONMETRICSA = *mut tagICONMETRICSA; -pub type LPICONMETRICSA = *mut tagICONMETRICSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagICONMETRICSW { - pub cbSize: UINT, - pub iHorzSpacing: ::std::os::raw::c_int, - pub iVertSpacing: ::std::os::raw::c_int, - pub iTitleWrap: ::std::os::raw::c_int, - pub lfFont: LOGFONTW, -} -pub type ICONMETRICSW = tagICONMETRICSW; -pub type PICONMETRICSW = *mut tagICONMETRICSW; -pub type LPICONMETRICSW = *mut tagICONMETRICSW; -pub type ICONMETRICS = ICONMETRICSA; -pub type PICONMETRICS = PICONMETRICSA; -pub type LPICONMETRICS = LPICONMETRICSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagANIMATIONINFO { - pub cbSize: UINT, - pub iMinAnimate: ::std::os::raw::c_int, -} -pub type ANIMATIONINFO = tagANIMATIONINFO; -pub type LPANIMATIONINFO = *mut tagANIMATIONINFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSERIALKEYSA { - pub cbSize: UINT, - pub dwFlags: DWORD, - pub lpszActivePort: LPSTR, - pub lpszPort: LPSTR, - pub iBaudRate: UINT, - pub iPortState: UINT, - pub iActive: UINT, -} -pub type SERIALKEYSA = tagSERIALKEYSA; -pub type LPSERIALKEYSA = *mut tagSERIALKEYSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSERIALKEYSW { - pub cbSize: UINT, - pub dwFlags: DWORD, - pub lpszActivePort: LPWSTR, - pub lpszPort: LPWSTR, - pub iBaudRate: UINT, - pub iPortState: UINT, - pub iActive: UINT, -} -pub type SERIALKEYSW = tagSERIALKEYSW; -pub type LPSERIALKEYSW = *mut tagSERIALKEYSW; -pub type SERIALKEYS = SERIALKEYSA; -pub type LPSERIALKEYS = LPSERIALKEYSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagHIGHCONTRASTA { - pub cbSize: UINT, - pub dwFlags: DWORD, - pub lpszDefaultScheme: LPSTR, -} -pub type HIGHCONTRASTA = tagHIGHCONTRASTA; -pub type LPHIGHCONTRASTA = *mut tagHIGHCONTRASTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagHIGHCONTRASTW { - pub cbSize: UINT, - pub dwFlags: DWORD, - pub lpszDefaultScheme: LPWSTR, -} -pub type HIGHCONTRASTW = tagHIGHCONTRASTW; -pub type LPHIGHCONTRASTW = *mut tagHIGHCONTRASTW; -pub type HIGHCONTRAST = HIGHCONTRASTA; -pub type LPHIGHCONTRAST = LPHIGHCONTRASTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _VIDEOPARAMETERS { - pub Guid: GUID, - pub dwOffset: ULONG, - pub dwCommand: ULONG, - pub dwFlags: ULONG, - pub dwMode: ULONG, - pub dwTVStandard: ULONG, - pub dwAvailableModes: ULONG, - pub dwAvailableTVStandard: ULONG, - pub dwFlickerFilter: ULONG, - pub dwOverScanX: ULONG, - pub dwOverScanY: ULONG, - pub dwMaxUnscaledX: ULONG, - pub dwMaxUnscaledY: ULONG, - pub dwPositionX: ULONG, - pub dwPositionY: ULONG, - pub dwBrightness: ULONG, - pub dwContrast: ULONG, - pub dwCPType: ULONG, - pub dwCPCommand: ULONG, - pub dwCPStandard: ULONG, - pub dwCPKey: ULONG, - pub bCP_APSTriggerBits: ULONG, - pub bOEMCopyProtection: [UCHAR; 256usize], -} -pub type VIDEOPARAMETERS = _VIDEOPARAMETERS; -pub type PVIDEOPARAMETERS = *mut _VIDEOPARAMETERS; -pub type LPVIDEOPARAMETERS = *mut _VIDEOPARAMETERS; -extern "C" { - pub fn ChangeDisplaySettingsA(lpDevMode: *mut DEVMODEA, dwFlags: DWORD) -> LONG; -} -extern "C" { - pub fn ChangeDisplaySettingsW(lpDevMode: *mut DEVMODEW, dwFlags: DWORD) -> LONG; -} -extern "C" { - pub fn ChangeDisplaySettingsExA( - lpszDeviceName: LPCSTR, - lpDevMode: *mut DEVMODEA, - hwnd: HWND, - dwflags: DWORD, - lParam: LPVOID, - ) -> LONG; -} -extern "C" { - pub fn ChangeDisplaySettingsExW( - lpszDeviceName: LPCWSTR, - lpDevMode: *mut DEVMODEW, - hwnd: HWND, - dwflags: DWORD, - lParam: LPVOID, - ) -> LONG; -} -extern "C" { - pub fn EnumDisplaySettingsA( - lpszDeviceName: LPCSTR, - iModeNum: DWORD, - lpDevMode: *mut DEVMODEA, - ) -> BOOL; -} -extern "C" { - pub fn EnumDisplaySettingsW( - lpszDeviceName: LPCWSTR, - iModeNum: DWORD, - lpDevMode: *mut DEVMODEW, - ) -> BOOL; -} -extern "C" { - pub fn EnumDisplaySettingsExA( - lpszDeviceName: LPCSTR, - iModeNum: DWORD, - lpDevMode: *mut DEVMODEA, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumDisplaySettingsExW( - lpszDeviceName: LPCWSTR, - iModeNum: DWORD, - lpDevMode: *mut DEVMODEW, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumDisplayDevicesA( - lpDevice: LPCSTR, - iDevNum: DWORD, - lpDisplayDevice: PDISPLAY_DEVICEA, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumDisplayDevicesW( - lpDevice: LPCWSTR, - iDevNum: DWORD, - lpDisplayDevice: PDISPLAY_DEVICEW, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetDisplayConfigBufferSizes( - flags: UINT32, - numPathArrayElements: *mut UINT32, - numModeInfoArrayElements: *mut UINT32, - ) -> LONG; -} -extern "C" { - pub fn SetDisplayConfig( - numPathArrayElements: UINT32, - pathArray: *mut DISPLAYCONFIG_PATH_INFO, - numModeInfoArrayElements: UINT32, - modeInfoArray: *mut DISPLAYCONFIG_MODE_INFO, - flags: UINT32, - ) -> LONG; -} -extern "C" { - pub fn QueryDisplayConfig( - flags: UINT32, - numPathArrayElements: *mut UINT32, - pathArray: *mut DISPLAYCONFIG_PATH_INFO, - numModeInfoArrayElements: *mut UINT32, - modeInfoArray: *mut DISPLAYCONFIG_MODE_INFO, - currentTopologyId: *mut DISPLAYCONFIG_TOPOLOGY_ID, - ) -> LONG; -} -extern "C" { - pub fn DisplayConfigGetDeviceInfo(requestPacket: *mut DISPLAYCONFIG_DEVICE_INFO_HEADER) - -> LONG; -} -extern "C" { - pub fn DisplayConfigSetDeviceInfo(setPacket: *mut DISPLAYCONFIG_DEVICE_INFO_HEADER) -> LONG; -} -extern "C" { - pub fn SystemParametersInfoA( - uiAction: UINT, - uiParam: UINT, - pvParam: PVOID, - fWinIni: UINT, - ) -> BOOL; -} -extern "C" { - pub fn SystemParametersInfoW( - uiAction: UINT, - uiParam: UINT, - pvParam: PVOID, - fWinIni: UINT, - ) -> BOOL; -} -extern "C" { - pub fn SystemParametersInfoForDpi( - uiAction: UINT, - uiParam: UINT, - pvParam: PVOID, - fWinIni: UINT, - dpi: UINT, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagFILTERKEYS { - pub cbSize: UINT, - pub dwFlags: DWORD, - pub iWaitMSec: DWORD, - pub iDelayMSec: DWORD, - pub iRepeatMSec: DWORD, - pub iBounceMSec: DWORD, -} -pub type FILTERKEYS = tagFILTERKEYS; -pub type LPFILTERKEYS = *mut tagFILTERKEYS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSTICKYKEYS { - pub cbSize: UINT, - pub dwFlags: DWORD, -} -pub type STICKYKEYS = tagSTICKYKEYS; -pub type LPSTICKYKEYS = *mut tagSTICKYKEYS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMOUSEKEYS { - pub cbSize: UINT, - pub dwFlags: DWORD, - pub iMaxSpeed: DWORD, - pub iTimeToMaxSpeed: DWORD, - pub iCtrlSpeed: DWORD, - pub dwReserved1: DWORD, - pub dwReserved2: DWORD, -} -pub type MOUSEKEYS = tagMOUSEKEYS; -pub type LPMOUSEKEYS = *mut tagMOUSEKEYS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagACCESSTIMEOUT { - pub cbSize: UINT, - pub dwFlags: DWORD, - pub iTimeOutMSec: DWORD, -} -pub type ACCESSTIMEOUT = tagACCESSTIMEOUT; -pub type LPACCESSTIMEOUT = *mut tagACCESSTIMEOUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSOUNDSENTRYA { - pub cbSize: UINT, - pub dwFlags: DWORD, - pub iFSTextEffect: DWORD, - pub iFSTextEffectMSec: DWORD, - pub iFSTextEffectColorBits: DWORD, - pub iFSGrafEffect: DWORD, - pub iFSGrafEffectMSec: DWORD, - pub iFSGrafEffectColor: DWORD, - pub iWindowsEffect: DWORD, - pub iWindowsEffectMSec: DWORD, - pub lpszWindowsEffectDLL: LPSTR, - pub iWindowsEffectOrdinal: DWORD, -} -pub type SOUNDSENTRYA = tagSOUNDSENTRYA; -pub type LPSOUNDSENTRYA = *mut tagSOUNDSENTRYA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSOUNDSENTRYW { - pub cbSize: UINT, - pub dwFlags: DWORD, - pub iFSTextEffect: DWORD, - pub iFSTextEffectMSec: DWORD, - pub iFSTextEffectColorBits: DWORD, - pub iFSGrafEffect: DWORD, - pub iFSGrafEffectMSec: DWORD, - pub iFSGrafEffectColor: DWORD, - pub iWindowsEffect: DWORD, - pub iWindowsEffectMSec: DWORD, - pub lpszWindowsEffectDLL: LPWSTR, - pub iWindowsEffectOrdinal: DWORD, -} -pub type SOUNDSENTRYW = tagSOUNDSENTRYW; -pub type LPSOUNDSENTRYW = *mut tagSOUNDSENTRYW; -pub type SOUNDSENTRY = SOUNDSENTRYA; -pub type LPSOUNDSENTRY = LPSOUNDSENTRYA; -extern "C" { - pub fn SoundSentry() -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagTOGGLEKEYS { - pub cbSize: UINT, - pub dwFlags: DWORD, -} -pub type TOGGLEKEYS = tagTOGGLEKEYS; -pub type LPTOGGLEKEYS = *mut tagTOGGLEKEYS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagAUDIODESCRIPTION { - pub cbSize: UINT, - pub Enabled: BOOL, - pub Locale: LCID, -} -pub type AUDIODESCRIPTION = tagAUDIODESCRIPTION; -pub type LPAUDIODESCRIPTION = *mut tagAUDIODESCRIPTION; -extern "C" { - pub fn SetDebugErrorLevel(dwLevel: DWORD); -} -extern "C" { - pub fn SetLastErrorEx(dwErrCode: DWORD, dwType: DWORD); -} -extern "C" { - pub fn InternalGetWindowText( - hWnd: HWND, - pString: LPWSTR, - cchMaxCount: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn CancelShutdown() -> BOOL; -} -extern "C" { - pub fn MonitorFromPoint(pt: POINT, dwFlags: DWORD) -> HMONITOR; -} -extern "C" { - pub fn MonitorFromRect(lprc: LPCRECT, dwFlags: DWORD) -> HMONITOR; -} -extern "C" { - pub fn MonitorFromWindow(hwnd: HWND, dwFlags: DWORD) -> HMONITOR; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMONITORINFO { - pub cbSize: DWORD, - pub rcMonitor: RECT, - pub rcWork: RECT, - pub dwFlags: DWORD, -} -pub type MONITORINFO = tagMONITORINFO; -pub type LPMONITORINFO = *mut tagMONITORINFO; -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct tagMONITORINFOEXA { - pub __bindgen_padding_0: [u8; 40usize], - pub szDevice: [CHAR; 32usize], -} -pub type MONITORINFOEXA = tagMONITORINFOEXA; -pub type LPMONITORINFOEXA = *mut tagMONITORINFOEXA; -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct tagMONITORINFOEXW { - pub __bindgen_padding_0: [u16; 20usize], - pub szDevice: [WCHAR; 32usize], -} -pub type MONITORINFOEXW = tagMONITORINFOEXW; -pub type LPMONITORINFOEXW = *mut tagMONITORINFOEXW; -pub type MONITORINFOEX = MONITORINFOEXA; -pub type LPMONITORINFOEX = LPMONITORINFOEXA; -extern "C" { - pub fn GetMonitorInfoA(hMonitor: HMONITOR, lpmi: LPMONITORINFO) -> BOOL; -} -extern "C" { - pub fn GetMonitorInfoW(hMonitor: HMONITOR, lpmi: LPMONITORINFO) -> BOOL; -} -pub type MONITORENUMPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: HMONITOR, arg2: HDC, arg3: LPRECT, arg4: LPARAM) -> BOOL, ->; -extern "C" { - pub fn EnumDisplayMonitors( - hdc: HDC, - lprcClip: LPCRECT, - lpfnEnum: MONITORENUMPROC, - dwData: LPARAM, - ) -> BOOL; -} -extern "C" { - pub fn NotifyWinEvent(event: DWORD, hwnd: HWND, idObject: LONG, idChild: LONG); -} -pub type WINEVENTPROC = ::std::option::Option< - unsafe extern "C" fn( - hWinEventHook: HWINEVENTHOOK, - event: DWORD, - hwnd: HWND, - idObject: LONG, - idChild: LONG, - idEventThread: DWORD, - dwmsEventTime: DWORD, - ), ->; -extern "C" { - pub fn SetWinEventHook( - eventMin: DWORD, - eventMax: DWORD, - hmodWinEventProc: HMODULE, - pfnWinEventProc: WINEVENTPROC, - idProcess: DWORD, - idThread: DWORD, - dwFlags: DWORD, - ) -> HWINEVENTHOOK; -} -extern "C" { - pub fn IsWinEventHookInstalled(event: DWORD) -> BOOL; -} -extern "C" { - pub fn UnhookWinEvent(hWinEventHook: HWINEVENTHOOK) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagGUITHREADINFO { - pub cbSize: DWORD, - pub flags: DWORD, - pub hwndActive: HWND, - pub hwndFocus: HWND, - pub hwndCapture: HWND, - pub hwndMenuOwner: HWND, - pub hwndMoveSize: HWND, - pub hwndCaret: HWND, - pub rcCaret: RECT, -} -pub type GUITHREADINFO = tagGUITHREADINFO; -pub type PGUITHREADINFO = *mut tagGUITHREADINFO; -pub type LPGUITHREADINFO = *mut tagGUITHREADINFO; -extern "C" { - pub fn GetGUIThreadInfo(idThread: DWORD, pgui: PGUITHREADINFO) -> BOOL; -} -extern "C" { - pub fn BlockInput(fBlockIt: BOOL) -> BOOL; -} -extern "C" { - pub fn SetProcessDPIAware() -> BOOL; -} -extern "C" { - pub fn IsProcessDPIAware() -> BOOL; -} -extern "C" { - pub fn SetThreadDpiAwarenessContext(dpiContext: DPI_AWARENESS_CONTEXT) - -> DPI_AWARENESS_CONTEXT; -} -extern "C" { - pub fn GetThreadDpiAwarenessContext() -> DPI_AWARENESS_CONTEXT; -} -extern "C" { - pub fn GetWindowDpiAwarenessContext(hwnd: HWND) -> DPI_AWARENESS_CONTEXT; -} -extern "C" { - pub fn GetAwarenessFromDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> DPI_AWARENESS; -} -extern "C" { - pub fn GetDpiFromDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> UINT; -} -extern "C" { - pub fn AreDpiAwarenessContextsEqual( - dpiContextA: DPI_AWARENESS_CONTEXT, - dpiContextB: DPI_AWARENESS_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn IsValidDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> BOOL; -} -extern "C" { - pub fn GetDpiForWindow(hwnd: HWND) -> UINT; -} -extern "C" { - pub fn GetDpiForSystem() -> UINT; -} -extern "C" { - pub fn GetSystemDpiForProcess(hProcess: HANDLE) -> UINT; -} -extern "C" { - pub fn EnableNonClientDpiScaling(hwnd: HWND) -> BOOL; -} -extern "C" { - pub fn InheritWindowMonitor(hwnd: HWND, hwndInherit: HWND) -> BOOL; -} -extern "C" { - pub fn SetProcessDpiAwarenessContext(value: DPI_AWARENESS_CONTEXT) -> BOOL; -} -extern "C" { - pub fn GetDpiAwarenessContextForProcess(hProcess: HANDLE) -> DPI_AWARENESS_CONTEXT; -} -extern "C" { - pub fn SetThreadDpiHostingBehavior(value: DPI_HOSTING_BEHAVIOR) -> DPI_HOSTING_BEHAVIOR; -} -extern "C" { - pub fn GetThreadDpiHostingBehavior() -> DPI_HOSTING_BEHAVIOR; -} -extern "C" { - pub fn GetWindowDpiHostingBehavior(hwnd: HWND) -> DPI_HOSTING_BEHAVIOR; -} -extern "C" { - pub fn GetWindowModuleFileNameA(hwnd: HWND, pszFileName: LPSTR, cchFileNameMax: UINT) -> UINT; -} -extern "C" { - pub fn GetWindowModuleFileNameW(hwnd: HWND, pszFileName: LPWSTR, cchFileNameMax: UINT) -> UINT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCURSORINFO { - pub cbSize: DWORD, - pub flags: DWORD, - pub hCursor: HCURSOR, - pub ptScreenPos: POINT, -} -pub type CURSORINFO = tagCURSORINFO; -pub type PCURSORINFO = *mut tagCURSORINFO; -pub type LPCURSORINFO = *mut tagCURSORINFO; -extern "C" { - pub fn GetCursorInfo(pci: PCURSORINFO) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagWINDOWINFO { - pub cbSize: DWORD, - pub rcWindow: RECT, - pub rcClient: RECT, - pub dwStyle: DWORD, - pub dwExStyle: DWORD, - pub dwWindowStatus: DWORD, - pub cxWindowBorders: UINT, - pub cyWindowBorders: UINT, - pub atomWindowType: ATOM, - pub wCreatorVersion: WORD, -} -pub type WINDOWINFO = tagWINDOWINFO; -pub type PWINDOWINFO = *mut tagWINDOWINFO; -pub type LPWINDOWINFO = *mut tagWINDOWINFO; -extern "C" { - pub fn GetWindowInfo(hwnd: HWND, pwi: PWINDOWINFO) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagTITLEBARINFO { - pub cbSize: DWORD, - pub rcTitleBar: RECT, - pub rgstate: [DWORD; 6usize], -} -pub type TITLEBARINFO = tagTITLEBARINFO; -pub type PTITLEBARINFO = *mut tagTITLEBARINFO; -pub type LPTITLEBARINFO = *mut tagTITLEBARINFO; -extern "C" { - pub fn GetTitleBarInfo(hwnd: HWND, pti: PTITLEBARINFO) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagTITLEBARINFOEX { - pub cbSize: DWORD, - pub rcTitleBar: RECT, - pub rgstate: [DWORD; 6usize], - pub rgrect: [RECT; 6usize], -} -pub type TITLEBARINFOEX = tagTITLEBARINFOEX; -pub type PTITLEBARINFOEX = *mut tagTITLEBARINFOEX; -pub type LPTITLEBARINFOEX = *mut tagTITLEBARINFOEX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMENUBARINFO { - pub cbSize: DWORD, - pub rcBar: RECT, - pub hMenu: HMENU, - pub hwndMenu: HWND, - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, - pub __bindgen_padding_0: u32, -} -impl tagMENUBARINFO { - #[inline] - pub fn fBarFocused(&self) -> BOOL { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_fBarFocused(&mut self, val: BOOL) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn fFocused(&self) -> BOOL { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_fFocused(&mut self, val: BOOL) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn fUnused(&self) -> BOOL { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } - } - #[inline] - pub fn set_fUnused(&mut self, val: BOOL) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 30u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - fBarFocused: BOOL, - fFocused: BOOL, - fUnused: BOOL, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let fBarFocused: u32 = unsafe { ::std::mem::transmute(fBarFocused) }; - fBarFocused as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let fFocused: u32 = unsafe { ::std::mem::transmute(fFocused) }; - fFocused as u64 - }); - __bindgen_bitfield_unit.set(2usize, 30u8, { - let fUnused: u32 = unsafe { ::std::mem::transmute(fUnused) }; - fUnused as u64 - }); - __bindgen_bitfield_unit - } -} -pub type MENUBARINFO = tagMENUBARINFO; -pub type PMENUBARINFO = *mut tagMENUBARINFO; -pub type LPMENUBARINFO = *mut tagMENUBARINFO; -extern "C" { - pub fn GetMenuBarInfo(hwnd: HWND, idObject: LONG, idItem: LONG, pmbi: PMENUBARINFO) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSCROLLBARINFO { - pub cbSize: DWORD, - pub rcScrollBar: RECT, - pub dxyLineButton: ::std::os::raw::c_int, - pub xyThumbTop: ::std::os::raw::c_int, - pub xyThumbBottom: ::std::os::raw::c_int, - pub reserved: ::std::os::raw::c_int, - pub rgstate: [DWORD; 6usize], -} -pub type SCROLLBARINFO = tagSCROLLBARINFO; -pub type PSCROLLBARINFO = *mut tagSCROLLBARINFO; -pub type LPSCROLLBARINFO = *mut tagSCROLLBARINFO; -extern "C" { - pub fn GetScrollBarInfo(hwnd: HWND, idObject: LONG, psbi: PSCROLLBARINFO) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCOMBOBOXINFO { - pub cbSize: DWORD, - pub rcItem: RECT, - pub rcButton: RECT, - pub stateButton: DWORD, - pub hwndCombo: HWND, - pub hwndItem: HWND, - pub hwndList: HWND, -} -pub type COMBOBOXINFO = tagCOMBOBOXINFO; -pub type PCOMBOBOXINFO = *mut tagCOMBOBOXINFO; -pub type LPCOMBOBOXINFO = *mut tagCOMBOBOXINFO; -extern "C" { - pub fn GetComboBoxInfo(hwndCombo: HWND, pcbi: PCOMBOBOXINFO) -> BOOL; -} -extern "C" { - pub fn GetAncestor(hwnd: HWND, gaFlags: UINT) -> HWND; -} -extern "C" { - pub fn RealChildWindowFromPoint(hwndParent: HWND, ptParentClientCoords: POINT) -> HWND; -} -extern "C" { - pub fn RealGetWindowClassA(hwnd: HWND, ptszClassName: LPSTR, cchClassNameMax: UINT) -> UINT; -} -extern "C" { - pub fn RealGetWindowClassW(hwnd: HWND, ptszClassName: LPWSTR, cchClassNameMax: UINT) -> UINT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagALTTABINFO { - pub cbSize: DWORD, - pub cItems: ::std::os::raw::c_int, - pub cColumns: ::std::os::raw::c_int, - pub cRows: ::std::os::raw::c_int, - pub iColFocus: ::std::os::raw::c_int, - pub iRowFocus: ::std::os::raw::c_int, - pub cxItem: ::std::os::raw::c_int, - pub cyItem: ::std::os::raw::c_int, - pub ptStart: POINT, -} -pub type ALTTABINFO = tagALTTABINFO; -pub type PALTTABINFO = *mut tagALTTABINFO; -pub type LPALTTABINFO = *mut tagALTTABINFO; -extern "C" { - pub fn GetAltTabInfoA( - hwnd: HWND, - iItem: ::std::os::raw::c_int, - pati: PALTTABINFO, - pszItemText: LPSTR, - cchItemText: UINT, - ) -> BOOL; -} -extern "C" { - pub fn GetAltTabInfoW( - hwnd: HWND, - iItem: ::std::os::raw::c_int, - pati: PALTTABINFO, - pszItemText: LPWSTR, - cchItemText: UINT, - ) -> BOOL; -} -extern "C" { - pub fn GetListBoxInfo(hwnd: HWND) -> DWORD; -} -extern "C" { - pub fn LockWorkStation() -> BOOL; -} -extern "C" { - pub fn UserHandleGrantAccess(hUserHandle: HANDLE, hJob: HANDLE, bGrant: BOOL) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HRAWINPUT__ { - pub unused: ::std::os::raw::c_int, -} -pub type HRAWINPUT = *mut HRAWINPUT__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRAWINPUTHEADER { - pub dwType: DWORD, - pub dwSize: DWORD, - pub hDevice: HANDLE, - pub wParam: WPARAM, -} -pub type RAWINPUTHEADER = tagRAWINPUTHEADER; -pub type PRAWINPUTHEADER = *mut tagRAWINPUTHEADER; -pub type LPRAWINPUTHEADER = *mut tagRAWINPUTHEADER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagRAWMOUSE { - pub usFlags: USHORT, - pub __bindgen_anon_1: tagRAWMOUSE__bindgen_ty_1, - pub ulRawButtons: ULONG, - pub lLastX: LONG, - pub lLastY: LONG, - pub ulExtraInformation: ULONG, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagRAWMOUSE__bindgen_ty_1 { - pub ulButtons: ULONG, - pub __bindgen_anon_1: tagRAWMOUSE__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRAWMOUSE__bindgen_ty_1__bindgen_ty_1 { - pub usButtonFlags: USHORT, - pub usButtonData: USHORT, -} -pub type RAWMOUSE = tagRAWMOUSE; -pub type PRAWMOUSE = *mut tagRAWMOUSE; -pub type LPRAWMOUSE = *mut tagRAWMOUSE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRAWKEYBOARD { - pub MakeCode: USHORT, - pub Flags: USHORT, - pub Reserved: USHORT, - pub VKey: USHORT, - pub Message: UINT, - pub ExtraInformation: ULONG, -} -pub type RAWKEYBOARD = tagRAWKEYBOARD; -pub type PRAWKEYBOARD = *mut tagRAWKEYBOARD; -pub type LPRAWKEYBOARD = *mut tagRAWKEYBOARD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRAWHID { - pub dwSizeHid: DWORD, - pub dwCount: DWORD, - pub bRawData: [BYTE; 1usize], -} -pub type RAWHID = tagRAWHID; -pub type PRAWHID = *mut tagRAWHID; -pub type LPRAWHID = *mut tagRAWHID; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagRAWINPUT { - pub header: RAWINPUTHEADER, - pub data: tagRAWINPUT__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagRAWINPUT__bindgen_ty_1 { - pub mouse: RAWMOUSE, - pub keyboard: RAWKEYBOARD, - pub hid: RAWHID, -} -pub type RAWINPUT = tagRAWINPUT; -pub type PRAWINPUT = *mut tagRAWINPUT; -pub type LPRAWINPUT = *mut tagRAWINPUT; -extern "C" { - pub fn GetRawInputData( - hRawInput: HRAWINPUT, - uiCommand: UINT, - pData: LPVOID, - pcbSize: PUINT, - cbSizeHeader: UINT, - ) -> UINT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRID_DEVICE_INFO_MOUSE { - pub dwId: DWORD, - pub dwNumberOfButtons: DWORD, - pub dwSampleRate: DWORD, - pub fHasHorizontalWheel: BOOL, -} -pub type RID_DEVICE_INFO_MOUSE = tagRID_DEVICE_INFO_MOUSE; -pub type PRID_DEVICE_INFO_MOUSE = *mut tagRID_DEVICE_INFO_MOUSE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRID_DEVICE_INFO_KEYBOARD { - pub dwType: DWORD, - pub dwSubType: DWORD, - pub dwKeyboardMode: DWORD, - pub dwNumberOfFunctionKeys: DWORD, - pub dwNumberOfIndicators: DWORD, - pub dwNumberOfKeysTotal: DWORD, -} -pub type RID_DEVICE_INFO_KEYBOARD = tagRID_DEVICE_INFO_KEYBOARD; -pub type PRID_DEVICE_INFO_KEYBOARD = *mut tagRID_DEVICE_INFO_KEYBOARD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRID_DEVICE_INFO_HID { - pub dwVendorId: DWORD, - pub dwProductId: DWORD, - pub dwVersionNumber: DWORD, - pub usUsagePage: USHORT, - pub usUsage: USHORT, -} -pub type RID_DEVICE_INFO_HID = tagRID_DEVICE_INFO_HID; -pub type PRID_DEVICE_INFO_HID = *mut tagRID_DEVICE_INFO_HID; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagRID_DEVICE_INFO { - pub cbSize: DWORD, - pub dwType: DWORD, - pub __bindgen_anon_1: tagRID_DEVICE_INFO__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagRID_DEVICE_INFO__bindgen_ty_1 { - pub mouse: RID_DEVICE_INFO_MOUSE, - pub keyboard: RID_DEVICE_INFO_KEYBOARD, - pub hid: RID_DEVICE_INFO_HID, -} -pub type RID_DEVICE_INFO = tagRID_DEVICE_INFO; -pub type PRID_DEVICE_INFO = *mut tagRID_DEVICE_INFO; -pub type LPRID_DEVICE_INFO = *mut tagRID_DEVICE_INFO; -extern "C" { - pub fn GetRawInputDeviceInfoA( - hDevice: HANDLE, - uiCommand: UINT, - pData: LPVOID, - pcbSize: PUINT, - ) -> UINT; -} -extern "C" { - pub fn GetRawInputDeviceInfoW( - hDevice: HANDLE, - uiCommand: UINT, - pData: LPVOID, - pcbSize: PUINT, - ) -> UINT; -} -extern "C" { - pub fn GetRawInputBuffer(pData: PRAWINPUT, pcbSize: PUINT, cbSizeHeader: UINT) -> UINT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRAWINPUTDEVICE { - pub usUsagePage: USHORT, - pub usUsage: USHORT, - pub dwFlags: DWORD, - pub hwndTarget: HWND, -} -pub type RAWINPUTDEVICE = tagRAWINPUTDEVICE; -pub type PRAWINPUTDEVICE = *mut tagRAWINPUTDEVICE; -pub type LPRAWINPUTDEVICE = *mut tagRAWINPUTDEVICE; -pub type PCRAWINPUTDEVICE = *const RAWINPUTDEVICE; -extern "C" { - pub fn RegisterRawInputDevices( - pRawInputDevices: PCRAWINPUTDEVICE, - uiNumDevices: UINT, - cbSize: UINT, - ) -> BOOL; -} -extern "C" { - pub fn GetRegisteredRawInputDevices( - pRawInputDevices: PRAWINPUTDEVICE, - puiNumDevices: PUINT, - cbSize: UINT, - ) -> UINT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRAWINPUTDEVICELIST { - pub hDevice: HANDLE, - pub dwType: DWORD, -} -pub type RAWINPUTDEVICELIST = tagRAWINPUTDEVICELIST; -pub type PRAWINPUTDEVICELIST = *mut tagRAWINPUTDEVICELIST; -extern "C" { - pub fn GetRawInputDeviceList( - pRawInputDeviceList: PRAWINPUTDEVICELIST, - puiNumDevices: PUINT, - cbSize: UINT, - ) -> UINT; -} -extern "C" { - pub fn DefRawInputProc(paRawInput: *mut PRAWINPUT, nInput: INT, cbSizeHeader: UINT) -> LRESULT; -} -pub const tagPOINTER_DEVICE_TYPE_POINTER_DEVICE_TYPE_INTEGRATED_PEN: tagPOINTER_DEVICE_TYPE = 1; -pub const tagPOINTER_DEVICE_TYPE_POINTER_DEVICE_TYPE_EXTERNAL_PEN: tagPOINTER_DEVICE_TYPE = 2; -pub const tagPOINTER_DEVICE_TYPE_POINTER_DEVICE_TYPE_TOUCH: tagPOINTER_DEVICE_TYPE = 3; -pub const tagPOINTER_DEVICE_TYPE_POINTER_DEVICE_TYPE_TOUCH_PAD: tagPOINTER_DEVICE_TYPE = 4; -pub const tagPOINTER_DEVICE_TYPE_POINTER_DEVICE_TYPE_MAX: tagPOINTER_DEVICE_TYPE = -1; -pub type tagPOINTER_DEVICE_TYPE = ::std::os::raw::c_int; -pub use self::tagPOINTER_DEVICE_TYPE as POINTER_DEVICE_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPOINTER_DEVICE_INFO { - pub displayOrientation: DWORD, - pub device: HANDLE, - pub pointerDeviceType: POINTER_DEVICE_TYPE, - pub monitor: HMONITOR, - pub startingCursorId: ULONG, - pub maxActiveContacts: USHORT, - pub productString: [WCHAR; 520usize], -} -pub type POINTER_DEVICE_INFO = tagPOINTER_DEVICE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPOINTER_DEVICE_PROPERTY { - pub logicalMin: INT32, - pub logicalMax: INT32, - pub physicalMin: INT32, - pub physicalMax: INT32, - pub unit: UINT32, - pub unitExponent: UINT32, - pub usagePageId: USHORT, - pub usageId: USHORT, -} -pub type POINTER_DEVICE_PROPERTY = tagPOINTER_DEVICE_PROPERTY; -pub const tagPOINTER_DEVICE_CURSOR_TYPE_POINTER_DEVICE_CURSOR_TYPE_UNKNOWN: - tagPOINTER_DEVICE_CURSOR_TYPE = 0; -pub const tagPOINTER_DEVICE_CURSOR_TYPE_POINTER_DEVICE_CURSOR_TYPE_TIP: - tagPOINTER_DEVICE_CURSOR_TYPE = 1; -pub const tagPOINTER_DEVICE_CURSOR_TYPE_POINTER_DEVICE_CURSOR_TYPE_ERASER: - tagPOINTER_DEVICE_CURSOR_TYPE = 2; -pub const tagPOINTER_DEVICE_CURSOR_TYPE_POINTER_DEVICE_CURSOR_TYPE_MAX: - tagPOINTER_DEVICE_CURSOR_TYPE = -1; -pub type tagPOINTER_DEVICE_CURSOR_TYPE = ::std::os::raw::c_int; -pub use self::tagPOINTER_DEVICE_CURSOR_TYPE as POINTER_DEVICE_CURSOR_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPOINTER_DEVICE_CURSOR_INFO { - pub cursorId: UINT32, - pub cursor: POINTER_DEVICE_CURSOR_TYPE, -} -pub type POINTER_DEVICE_CURSOR_INFO = tagPOINTER_DEVICE_CURSOR_INFO; -extern "C" { - pub fn GetPointerDevices( - deviceCount: *mut UINT32, - pointerDevices: *mut POINTER_DEVICE_INFO, - ) -> BOOL; -} -extern "C" { - pub fn GetPointerDevice(device: HANDLE, pointerDevice: *mut POINTER_DEVICE_INFO) -> BOOL; -} -extern "C" { - pub fn GetPointerDeviceProperties( - device: HANDLE, - propertyCount: *mut UINT32, - pointerProperties: *mut POINTER_DEVICE_PROPERTY, - ) -> BOOL; -} -extern "C" { - pub fn RegisterPointerDeviceNotifications(window: HWND, notifyRange: BOOL) -> BOOL; -} -extern "C" { - pub fn GetPointerDeviceRects( - device: HANDLE, - pointerDeviceRect: *mut RECT, - displayRect: *mut RECT, - ) -> BOOL; -} -extern "C" { - pub fn GetPointerDeviceCursors( - device: HANDLE, - cursorCount: *mut UINT32, - deviceCursors: *mut POINTER_DEVICE_CURSOR_INFO, - ) -> BOOL; -} -extern "C" { - pub fn GetRawPointerDeviceData( - pointerId: UINT32, - historyCount: UINT32, - propertiesCount: UINT32, - pProperties: *mut POINTER_DEVICE_PROPERTY, - pValues: *mut LONG, - ) -> BOOL; -} -extern "C" { - pub fn ChangeWindowMessageFilter(message: UINT, dwFlag: DWORD) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCHANGEFILTERSTRUCT { - pub cbSize: DWORD, - pub ExtStatus: DWORD, -} -pub type CHANGEFILTERSTRUCT = tagCHANGEFILTERSTRUCT; -pub type PCHANGEFILTERSTRUCT = *mut tagCHANGEFILTERSTRUCT; -extern "C" { - pub fn ChangeWindowMessageFilterEx( - hwnd: HWND, - message: UINT, - action: DWORD, - pChangeFilterStruct: PCHANGEFILTERSTRUCT, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HGESTUREINFO__ { - pub unused: ::std::os::raw::c_int, -} -pub type HGESTUREINFO = *mut HGESTUREINFO__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagGESTUREINFO { - pub cbSize: UINT, - pub dwFlags: DWORD, - pub dwID: DWORD, - pub hwndTarget: HWND, - pub ptsLocation: POINTS, - pub dwInstanceID: DWORD, - pub dwSequenceID: DWORD, - pub ullArguments: ULONGLONG, - pub cbExtraArgs: UINT, -} -pub type GESTUREINFO = tagGESTUREINFO; -pub type PGESTUREINFO = *mut tagGESTUREINFO; -pub type PCGESTUREINFO = *const GESTUREINFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagGESTURENOTIFYSTRUCT { - pub cbSize: UINT, - pub dwFlags: DWORD, - pub hwndTarget: HWND, - pub ptsLocation: POINTS, - pub dwInstanceID: DWORD, -} -pub type GESTURENOTIFYSTRUCT = tagGESTURENOTIFYSTRUCT; -pub type PGESTURENOTIFYSTRUCT = *mut tagGESTURENOTIFYSTRUCT; -extern "C" { - pub fn GetGestureInfo(hGestureInfo: HGESTUREINFO, pGestureInfo: PGESTUREINFO) -> BOOL; -} -extern "C" { - pub fn GetGestureExtraArgs( - hGestureInfo: HGESTUREINFO, - cbExtraArgs: UINT, - pExtraArgs: PBYTE, - ) -> BOOL; -} -extern "C" { - pub fn CloseGestureInfoHandle(hGestureInfo: HGESTUREINFO) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagGESTURECONFIG { - pub dwID: DWORD, - pub dwWant: DWORD, - pub dwBlock: DWORD, -} -pub type GESTURECONFIG = tagGESTURECONFIG; -pub type PGESTURECONFIG = *mut tagGESTURECONFIG; -extern "C" { - pub fn SetGestureConfig( - hwnd: HWND, - dwReserved: DWORD, - cIDs: UINT, - pGestureConfig: PGESTURECONFIG, - cbSize: UINT, - ) -> BOOL; -} -extern "C" { - pub fn GetGestureConfig( - hwnd: HWND, - dwReserved: DWORD, - dwFlags: DWORD, - pcIDs: PUINT, - pGestureConfig: PGESTURECONFIG, - cbSize: UINT, - ) -> BOOL; -} -extern "C" { - pub fn ShutdownBlockReasonCreate(hWnd: HWND, pwszReason: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn ShutdownBlockReasonQuery(hWnd: HWND, pwszBuff: LPWSTR, pcchBuff: *mut DWORD) -> BOOL; -} -extern "C" { - pub fn ShutdownBlockReasonDestroy(hWnd: HWND) -> BOOL; -} -pub const tagINPUT_MESSAGE_DEVICE_TYPE_IMDT_UNAVAILABLE: tagINPUT_MESSAGE_DEVICE_TYPE = 0; -pub const tagINPUT_MESSAGE_DEVICE_TYPE_IMDT_KEYBOARD: tagINPUT_MESSAGE_DEVICE_TYPE = 1; -pub const tagINPUT_MESSAGE_DEVICE_TYPE_IMDT_MOUSE: tagINPUT_MESSAGE_DEVICE_TYPE = 2; -pub const tagINPUT_MESSAGE_DEVICE_TYPE_IMDT_TOUCH: tagINPUT_MESSAGE_DEVICE_TYPE = 4; -pub const tagINPUT_MESSAGE_DEVICE_TYPE_IMDT_PEN: tagINPUT_MESSAGE_DEVICE_TYPE = 8; -pub const tagINPUT_MESSAGE_DEVICE_TYPE_IMDT_TOUCHPAD: tagINPUT_MESSAGE_DEVICE_TYPE = 16; -pub type tagINPUT_MESSAGE_DEVICE_TYPE = ::std::os::raw::c_int; -pub use self::tagINPUT_MESSAGE_DEVICE_TYPE as INPUT_MESSAGE_DEVICE_TYPE; -pub const tagINPUT_MESSAGE_ORIGIN_ID_IMO_UNAVAILABLE: tagINPUT_MESSAGE_ORIGIN_ID = 0; -pub const tagINPUT_MESSAGE_ORIGIN_ID_IMO_HARDWARE: tagINPUT_MESSAGE_ORIGIN_ID = 1; -pub const tagINPUT_MESSAGE_ORIGIN_ID_IMO_INJECTED: tagINPUT_MESSAGE_ORIGIN_ID = 2; -pub const tagINPUT_MESSAGE_ORIGIN_ID_IMO_SYSTEM: tagINPUT_MESSAGE_ORIGIN_ID = 4; -pub type tagINPUT_MESSAGE_ORIGIN_ID = ::std::os::raw::c_int; -pub use self::tagINPUT_MESSAGE_ORIGIN_ID as INPUT_MESSAGE_ORIGIN_ID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagINPUT_MESSAGE_SOURCE { - pub deviceType: INPUT_MESSAGE_DEVICE_TYPE, - pub originId: INPUT_MESSAGE_ORIGIN_ID, -} -pub type INPUT_MESSAGE_SOURCE = tagINPUT_MESSAGE_SOURCE; -extern "C" { - pub fn GetCurrentInputMessageSource(inputMessageSource: *mut INPUT_MESSAGE_SOURCE) -> BOOL; -} -extern "C" { - pub fn GetCIMSSM(inputMessageSource: *mut INPUT_MESSAGE_SOURCE) -> BOOL; -} -pub const tagAR_STATE_AR_ENABLED: tagAR_STATE = 0; -pub const tagAR_STATE_AR_DISABLED: tagAR_STATE = 1; -pub const tagAR_STATE_AR_SUPPRESSED: tagAR_STATE = 2; -pub const tagAR_STATE_AR_REMOTESESSION: tagAR_STATE = 4; -pub const tagAR_STATE_AR_MULTIMON: tagAR_STATE = 8; -pub const tagAR_STATE_AR_NOSENSOR: tagAR_STATE = 16; -pub const tagAR_STATE_AR_NOT_SUPPORTED: tagAR_STATE = 32; -pub const tagAR_STATE_AR_DOCKED: tagAR_STATE = 64; -pub const tagAR_STATE_AR_LAPTOP: tagAR_STATE = 128; -pub type tagAR_STATE = ::std::os::raw::c_int; -pub use self::tagAR_STATE as AR_STATE; -pub type PAR_STATE = *mut tagAR_STATE; -pub const ORIENTATION_PREFERENCE_ORIENTATION_PREFERENCE_NONE: ORIENTATION_PREFERENCE = 0; -pub const ORIENTATION_PREFERENCE_ORIENTATION_PREFERENCE_LANDSCAPE: ORIENTATION_PREFERENCE = 1; -pub const ORIENTATION_PREFERENCE_ORIENTATION_PREFERENCE_PORTRAIT: ORIENTATION_PREFERENCE = 2; -pub const ORIENTATION_PREFERENCE_ORIENTATION_PREFERENCE_LANDSCAPE_FLIPPED: ORIENTATION_PREFERENCE = - 4; -pub const ORIENTATION_PREFERENCE_ORIENTATION_PREFERENCE_PORTRAIT_FLIPPED: ORIENTATION_PREFERENCE = - 8; -pub type ORIENTATION_PREFERENCE = ::std::os::raw::c_int; -extern "C" { - pub fn GetAutoRotationState(pState: PAR_STATE) -> BOOL; -} -extern "C" { - pub fn GetDisplayAutoRotationPreferences(pOrientation: *mut ORIENTATION_PREFERENCE) -> BOOL; -} -extern "C" { - pub fn GetDisplayAutoRotationPreferencesByProcessId( - dwProcessId: DWORD, - pOrientation: *mut ORIENTATION_PREFERENCE, - fRotateScreen: *mut BOOL, - ) -> BOOL; -} -extern "C" { - pub fn SetDisplayAutoRotationPreferences(orientation: ORIENTATION_PREFERENCE) -> BOOL; -} -extern "C" { - pub fn IsImmersiveProcess(hProcess: HANDLE) -> BOOL; -} -extern "C" { - pub fn SetProcessRestrictionExemption(fEnableExemption: BOOL) -> BOOL; -} -extern "C" { - pub fn SetAdditionalForegroundBoostProcesses( - topLevelWindow: HWND, - processHandleCount: DWORD, - processHandleArray: *mut HANDLE, - ) -> BOOL; -} -pub const TOOLTIP_DISMISS_FLAGS_TDF_REGISTER: TOOLTIP_DISMISS_FLAGS = 1; -pub const TOOLTIP_DISMISS_FLAGS_TDF_UNREGISTER: TOOLTIP_DISMISS_FLAGS = 2; -pub type TOOLTIP_DISMISS_FLAGS = ::std::os::raw::c_int; -extern "C" { - pub fn RegisterForTooltipDismissNotification( - hWnd: HWND, - tdFlags: TOOLTIP_DISMISS_FLAGS, - ) -> BOOL; -} -extern "C" { - pub fn GetDateFormatA( - Locale: LCID, - dwFlags: DWORD, - lpDate: *const SYSTEMTIME, - lpFormat: LPCSTR, - lpDateStr: LPSTR, - cchDate: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetDateFormatW( - Locale: LCID, - dwFlags: DWORD, - lpDate: *const SYSTEMTIME, - lpFormat: LPCWSTR, - lpDateStr: LPWSTR, - cchDate: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetTimeFormatA( - Locale: LCID, - dwFlags: DWORD, - lpTime: *const SYSTEMTIME, - lpFormat: LPCSTR, - lpTimeStr: LPSTR, - cchTime: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetTimeFormatW( - Locale: LCID, - dwFlags: DWORD, - lpTime: *const SYSTEMTIME, - lpFormat: LPCWSTR, - lpTimeStr: LPWSTR, - cchTime: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetTimeFormatEx( - lpLocaleName: LPCWSTR, - dwFlags: DWORD, - lpTime: *const SYSTEMTIME, - lpFormat: LPCWSTR, - lpTimeStr: LPWSTR, - cchTime: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetDateFormatEx( - lpLocaleName: LPCWSTR, - dwFlags: DWORD, - lpDate: *const SYSTEMTIME, - lpFormat: LPCWSTR, - lpDateStr: LPWSTR, - cchDate: ::std::os::raw::c_int, - lpCalendar: LPCWSTR, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetDurationFormatEx( - lpLocaleName: LPCWSTR, - dwFlags: DWORD, - lpDuration: *const SYSTEMTIME, - ullDuration: ULONGLONG, - lpFormat: LPCWSTR, - lpDurationStr: LPWSTR, - cchDuration: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -pub type LGRPID = DWORD; -pub type LCTYPE = DWORD; -pub type CALTYPE = DWORD; -pub type CALID = DWORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cpinfo { - pub MaxCharSize: UINT, - pub DefaultChar: [BYTE; 2usize], - pub LeadByte: [BYTE; 12usize], -} -pub type CPINFO = _cpinfo; -pub type LPCPINFO = *mut _cpinfo; -pub type GEOTYPE = DWORD; -pub type GEOCLASS = DWORD; -pub type GEOID = LONG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cpinfoexA { - pub MaxCharSize: UINT, - pub DefaultChar: [BYTE; 2usize], - pub LeadByte: [BYTE; 12usize], - pub UnicodeDefaultChar: WCHAR, - pub CodePage: UINT, - pub CodePageName: [CHAR; 260usize], -} -pub type CPINFOEXA = _cpinfoexA; -pub type LPCPINFOEXA = *mut _cpinfoexA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cpinfoexW { - pub MaxCharSize: UINT, - pub DefaultChar: [BYTE; 2usize], - pub LeadByte: [BYTE; 12usize], - pub UnicodeDefaultChar: WCHAR, - pub CodePage: UINT, - pub CodePageName: [WCHAR; 260usize], -} -pub type CPINFOEXW = _cpinfoexW; -pub type LPCPINFOEXW = *mut _cpinfoexW; -pub type CPINFOEX = CPINFOEXA; -pub type LPCPINFOEX = LPCPINFOEXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _numberfmtA { - pub NumDigits: UINT, - pub LeadingZero: UINT, - pub Grouping: UINT, - pub lpDecimalSep: LPSTR, - pub lpThousandSep: LPSTR, - pub NegativeOrder: UINT, -} -pub type NUMBERFMTA = _numberfmtA; -pub type LPNUMBERFMTA = *mut _numberfmtA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _numberfmtW { - pub NumDigits: UINT, - pub LeadingZero: UINT, - pub Grouping: UINT, - pub lpDecimalSep: LPWSTR, - pub lpThousandSep: LPWSTR, - pub NegativeOrder: UINT, -} -pub type NUMBERFMTW = _numberfmtW; -pub type LPNUMBERFMTW = *mut _numberfmtW; -pub type NUMBERFMT = NUMBERFMTA; -pub type LPNUMBERFMT = LPNUMBERFMTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _currencyfmtA { - pub NumDigits: UINT, - pub LeadingZero: UINT, - pub Grouping: UINT, - pub lpDecimalSep: LPSTR, - pub lpThousandSep: LPSTR, - pub NegativeOrder: UINT, - pub PositiveOrder: UINT, - pub lpCurrencySymbol: LPSTR, -} -pub type CURRENCYFMTA = _currencyfmtA; -pub type LPCURRENCYFMTA = *mut _currencyfmtA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _currencyfmtW { - pub NumDigits: UINT, - pub LeadingZero: UINT, - pub Grouping: UINT, - pub lpDecimalSep: LPWSTR, - pub lpThousandSep: LPWSTR, - pub NegativeOrder: UINT, - pub PositiveOrder: UINT, - pub lpCurrencySymbol: LPWSTR, -} -pub type CURRENCYFMTW = _currencyfmtW; -pub type LPCURRENCYFMTW = *mut _currencyfmtW; -pub type CURRENCYFMT = CURRENCYFMTA; -pub type LPCURRENCYFMT = LPCURRENCYFMTA; -pub const SYSNLS_FUNCTION_COMPARE_STRING: SYSNLS_FUNCTION = 1; -pub type SYSNLS_FUNCTION = ::std::os::raw::c_int; -pub type NLS_FUNCTION = DWORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _nlsversioninfo { - pub dwNLSVersionInfoSize: DWORD, - pub dwNLSVersion: DWORD, - pub dwDefinedVersion: DWORD, - pub dwEffectiveId: DWORD, - pub guidCustomVersion: GUID, -} -pub type NLSVERSIONINFO = _nlsversioninfo; -pub type LPNLSVERSIONINFO = *mut _nlsversioninfo; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _nlsversioninfoex { - pub dwNLSVersionInfoSize: DWORD, - pub dwNLSVersion: DWORD, - pub dwDefinedVersion: DWORD, - pub dwEffectiveId: DWORD, - pub guidCustomVersion: GUID, -} -pub type NLSVERSIONINFOEX = _nlsversioninfoex; -pub type LPNLSVERSIONINFOEX = *mut _nlsversioninfoex; -pub const SYSGEOTYPE_GEO_NATION: SYSGEOTYPE = 1; -pub const SYSGEOTYPE_GEO_LATITUDE: SYSGEOTYPE = 2; -pub const SYSGEOTYPE_GEO_LONGITUDE: SYSGEOTYPE = 3; -pub const SYSGEOTYPE_GEO_ISO2: SYSGEOTYPE = 4; -pub const SYSGEOTYPE_GEO_ISO3: SYSGEOTYPE = 5; -pub const SYSGEOTYPE_GEO_RFC1766: SYSGEOTYPE = 6; -pub const SYSGEOTYPE_GEO_LCID: SYSGEOTYPE = 7; -pub const SYSGEOTYPE_GEO_FRIENDLYNAME: SYSGEOTYPE = 8; -pub const SYSGEOTYPE_GEO_OFFICIALNAME: SYSGEOTYPE = 9; -pub const SYSGEOTYPE_GEO_TIMEZONES: SYSGEOTYPE = 10; -pub const SYSGEOTYPE_GEO_OFFICIALLANGUAGES: SYSGEOTYPE = 11; -pub const SYSGEOTYPE_GEO_ISO_UN_NUMBER: SYSGEOTYPE = 12; -pub const SYSGEOTYPE_GEO_PARENT: SYSGEOTYPE = 13; -pub const SYSGEOTYPE_GEO_DIALINGCODE: SYSGEOTYPE = 14; -pub const SYSGEOTYPE_GEO_CURRENCYCODE: SYSGEOTYPE = 15; -pub const SYSGEOTYPE_GEO_CURRENCYSYMBOL: SYSGEOTYPE = 16; -pub const SYSGEOTYPE_GEO_NAME: SYSGEOTYPE = 17; -pub const SYSGEOTYPE_GEO_ID: SYSGEOTYPE = 18; -pub type SYSGEOTYPE = ::std::os::raw::c_int; -pub const SYSGEOCLASS_GEOCLASS_NATION: SYSGEOCLASS = 16; -pub const SYSGEOCLASS_GEOCLASS_REGION: SYSGEOCLASS = 14; -pub const SYSGEOCLASS_GEOCLASS_ALL: SYSGEOCLASS = 0; -pub type SYSGEOCLASS = ::std::os::raw::c_int; -pub type LOCALE_ENUMPROCA = ::std::option::Option BOOL>; -pub type LOCALE_ENUMPROCW = ::std::option::Option BOOL>; -pub const _NORM_FORM_NormalizationOther: _NORM_FORM = 0; -pub const _NORM_FORM_NormalizationC: _NORM_FORM = 1; -pub const _NORM_FORM_NormalizationD: _NORM_FORM = 2; -pub const _NORM_FORM_NormalizationKC: _NORM_FORM = 5; -pub const _NORM_FORM_NormalizationKD: _NORM_FORM = 6; -pub type _NORM_FORM = ::std::os::raw::c_int; -pub use self::_NORM_FORM as NORM_FORM; -pub type LANGUAGEGROUP_ENUMPROCA = ::std::option::Option< - unsafe extern "C" fn( - arg1: LGRPID, - arg2: LPSTR, - arg3: LPSTR, - arg4: DWORD, - arg5: LONG_PTR, - ) -> BOOL, ->; -pub type LANGGROUPLOCALE_ENUMPROCA = ::std::option::Option< - unsafe extern "C" fn(arg1: LGRPID, arg2: LCID, arg3: LPSTR, arg4: LONG_PTR) -> BOOL, ->; -pub type UILANGUAGE_ENUMPROCA = - ::std::option::Option BOOL>; -pub type CODEPAGE_ENUMPROCA = ::std::option::Option BOOL>; -pub type DATEFMT_ENUMPROCA = ::std::option::Option BOOL>; -pub type DATEFMT_ENUMPROCEXA = - ::std::option::Option BOOL>; -pub type TIMEFMT_ENUMPROCA = ::std::option::Option BOOL>; -pub type CALINFO_ENUMPROCA = ::std::option::Option BOOL>; -pub type CALINFO_ENUMPROCEXA = - ::std::option::Option BOOL>; -pub type LANGUAGEGROUP_ENUMPROCW = ::std::option::Option< - unsafe extern "C" fn( - arg1: LGRPID, - arg2: LPWSTR, - arg3: LPWSTR, - arg4: DWORD, - arg5: LONG_PTR, - ) -> BOOL, ->; -pub type LANGGROUPLOCALE_ENUMPROCW = ::std::option::Option< - unsafe extern "C" fn(arg1: LGRPID, arg2: LCID, arg3: LPWSTR, arg4: LONG_PTR) -> BOOL, ->; -pub type UILANGUAGE_ENUMPROCW = - ::std::option::Option BOOL>; -pub type CODEPAGE_ENUMPROCW = ::std::option::Option BOOL>; -pub type DATEFMT_ENUMPROCW = ::std::option::Option BOOL>; -pub type DATEFMT_ENUMPROCEXW = - ::std::option::Option BOOL>; -pub type TIMEFMT_ENUMPROCW = ::std::option::Option BOOL>; -pub type CALINFO_ENUMPROCW = ::std::option::Option BOOL>; -pub type CALINFO_ENUMPROCEXW = - ::std::option::Option BOOL>; -pub type GEO_ENUMPROC = ::std::option::Option BOOL>; -pub type GEO_ENUMNAMEPROC = - ::std::option::Option BOOL>; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILEMUIINFO { - pub dwSize: DWORD, - pub dwVersion: DWORD, - pub dwFileType: DWORD, - pub pChecksum: [BYTE; 16usize], - pub pServiceChecksum: [BYTE; 16usize], - pub dwLanguageNameOffset: DWORD, - pub dwTypeIDMainSize: DWORD, - pub dwTypeIDMainOffset: DWORD, - pub dwTypeNameMainOffset: DWORD, - pub dwTypeIDMUISize: DWORD, - pub dwTypeIDMUIOffset: DWORD, - pub dwTypeNameMUIOffset: DWORD, - pub abBuffer: [BYTE; 8usize], -} -pub type FILEMUIINFO = _FILEMUIINFO; -pub type PFILEMUIINFO = *mut _FILEMUIINFO; -extern "C" { - pub fn CompareStringEx( - lpLocaleName: LPCWSTR, - dwCmpFlags: DWORD, - lpString1: LPCWCH, - cchCount1: ::std::os::raw::c_int, - lpString2: LPCWCH, - cchCount2: ::std::os::raw::c_int, - lpVersionInformation: LPNLSVERSIONINFO, - lpReserved: LPVOID, - lParam: LPARAM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn CompareStringOrdinal( - lpString1: LPCWCH, - cchCount1: ::std::os::raw::c_int, - lpString2: LPCWCH, - cchCount2: ::std::os::raw::c_int, - bIgnoreCase: BOOL, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn CompareStringW( - Locale: LCID, - dwCmpFlags: DWORD, - lpString1: PCNZWCH, - cchCount1: ::std::os::raw::c_int, - lpString2: PCNZWCH, - cchCount2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn FoldStringW( - dwMapFlags: DWORD, - lpSrcStr: LPCWCH, - cchSrc: ::std::os::raw::c_int, - lpDestStr: LPWSTR, - cchDest: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetStringTypeExW( - Locale: LCID, - dwInfoType: DWORD, - lpSrcStr: LPCWCH, - cchSrc: ::std::os::raw::c_int, - lpCharType: LPWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetStringTypeW( - dwInfoType: DWORD, - lpSrcStr: LPCWCH, - cchSrc: ::std::os::raw::c_int, - lpCharType: LPWORD, - ) -> BOOL; -} -extern "C" { - pub fn MultiByteToWideChar( - CodePage: UINT, - dwFlags: DWORD, - lpMultiByteStr: LPCCH, - cbMultiByte: ::std::os::raw::c_int, - lpWideCharStr: LPWSTR, - cchWideChar: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn WideCharToMultiByte( - CodePage: UINT, - dwFlags: DWORD, - lpWideCharStr: LPCWCH, - cchWideChar: ::std::os::raw::c_int, - lpMultiByteStr: LPSTR, - cbMultiByte: ::std::os::raw::c_int, - lpDefaultChar: LPCCH, - lpUsedDefaultChar: LPBOOL, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn IsValidCodePage(CodePage: UINT) -> BOOL; -} -extern "C" { - pub fn GetACP() -> UINT; -} -extern "C" { - pub fn GetOEMCP() -> UINT; -} -extern "C" { - pub fn GetCPInfo(CodePage: UINT, lpCPInfo: LPCPINFO) -> BOOL; -} -extern "C" { - pub fn GetCPInfoExA(CodePage: UINT, dwFlags: DWORD, lpCPInfoEx: LPCPINFOEXA) -> BOOL; -} -extern "C" { - pub fn GetCPInfoExW(CodePage: UINT, dwFlags: DWORD, lpCPInfoEx: LPCPINFOEXW) -> BOOL; -} -extern "C" { - pub fn CompareStringA( - Locale: LCID, - dwCmpFlags: DWORD, - lpString1: PCNZCH, - cchCount1: ::std::os::raw::c_int, - lpString2: PCNZCH, - cchCount2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn FindNLSString( - Locale: LCID, - dwFindNLSStringFlags: DWORD, - lpStringSource: LPCWSTR, - cchSource: ::std::os::raw::c_int, - lpStringValue: LPCWSTR, - cchValue: ::std::os::raw::c_int, - pcchFound: LPINT, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn LCMapStringW( - Locale: LCID, - dwMapFlags: DWORD, - lpSrcStr: LPCWSTR, - cchSrc: ::std::os::raw::c_int, - lpDestStr: LPWSTR, - cchDest: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn LCMapStringA( - Locale: LCID, - dwMapFlags: DWORD, - lpSrcStr: LPCSTR, - cchSrc: ::std::os::raw::c_int, - lpDestStr: LPSTR, - cchDest: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetLocaleInfoW( - Locale: LCID, - LCType: LCTYPE, - lpLCData: LPWSTR, - cchData: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetLocaleInfoA( - Locale: LCID, - LCType: LCTYPE, - lpLCData: LPSTR, - cchData: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetLocaleInfoA(Locale: LCID, LCType: LCTYPE, lpLCData: LPCSTR) -> BOOL; -} -extern "C" { - pub fn SetLocaleInfoW(Locale: LCID, LCType: LCTYPE, lpLCData: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn GetCalendarInfoA( - Locale: LCID, - Calendar: CALID, - CalType: CALTYPE, - lpCalData: LPSTR, - cchData: ::std::os::raw::c_int, - lpValue: LPDWORD, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetCalendarInfoW( - Locale: LCID, - Calendar: CALID, - CalType: CALTYPE, - lpCalData: LPWSTR, - cchData: ::std::os::raw::c_int, - lpValue: LPDWORD, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetCalendarInfoA( - Locale: LCID, - Calendar: CALID, - CalType: CALTYPE, - lpCalData: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn SetCalendarInfoW( - Locale: LCID, - Calendar: CALID, - CalType: CALTYPE, - lpCalData: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn LoadStringByReference( - Flags: DWORD, - Language: PCWSTR, - SourceString: PCWSTR, - Buffer: PWSTR, - cchBuffer: ULONG, - Directory: PCWSTR, - pcchBufferOut: PULONG, - ) -> BOOL; -} -extern "C" { - pub fn IsDBCSLeadByte(TestChar: BYTE) -> BOOL; -} -extern "C" { - pub fn IsDBCSLeadByteEx(CodePage: UINT, TestChar: BYTE) -> BOOL; -} -extern "C" { - pub fn LocaleNameToLCID(lpName: LPCWSTR, dwFlags: DWORD) -> LCID; -} -extern "C" { - pub fn LCIDToLocaleName( - Locale: LCID, - lpName: LPWSTR, - cchName: ::std::os::raw::c_int, - dwFlags: DWORD, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetDurationFormat( - Locale: LCID, - dwFlags: DWORD, - lpDuration: *const SYSTEMTIME, - ullDuration: ULONGLONG, - lpFormat: LPCWSTR, - lpDurationStr: LPWSTR, - cchDuration: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetNumberFormatA( - Locale: LCID, - dwFlags: DWORD, - lpValue: LPCSTR, - lpFormat: *const NUMBERFMTA, - lpNumberStr: LPSTR, - cchNumber: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetNumberFormatW( - Locale: LCID, - dwFlags: DWORD, - lpValue: LPCWSTR, - lpFormat: *const NUMBERFMTW, - lpNumberStr: LPWSTR, - cchNumber: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetCurrencyFormatA( - Locale: LCID, - dwFlags: DWORD, - lpValue: LPCSTR, - lpFormat: *const CURRENCYFMTA, - lpCurrencyStr: LPSTR, - cchCurrency: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetCurrencyFormatW( - Locale: LCID, - dwFlags: DWORD, - lpValue: LPCWSTR, - lpFormat: *const CURRENCYFMTW, - lpCurrencyStr: LPWSTR, - cchCurrency: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EnumCalendarInfoA( - lpCalInfoEnumProc: CALINFO_ENUMPROCA, - Locale: LCID, - Calendar: CALID, - CalType: CALTYPE, - ) -> BOOL; -} -extern "C" { - pub fn EnumCalendarInfoW( - lpCalInfoEnumProc: CALINFO_ENUMPROCW, - Locale: LCID, - Calendar: CALID, - CalType: CALTYPE, - ) -> BOOL; -} -extern "C" { - pub fn EnumCalendarInfoExA( - lpCalInfoEnumProcEx: CALINFO_ENUMPROCEXA, - Locale: LCID, - Calendar: CALID, - CalType: CALTYPE, - ) -> BOOL; -} -extern "C" { - pub fn EnumCalendarInfoExW( - lpCalInfoEnumProcEx: CALINFO_ENUMPROCEXW, - Locale: LCID, - Calendar: CALID, - CalType: CALTYPE, - ) -> BOOL; -} -extern "C" { - pub fn EnumTimeFormatsA( - lpTimeFmtEnumProc: TIMEFMT_ENUMPROCA, - Locale: LCID, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumTimeFormatsW( - lpTimeFmtEnumProc: TIMEFMT_ENUMPROCW, - Locale: LCID, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumDateFormatsA( - lpDateFmtEnumProc: DATEFMT_ENUMPROCA, - Locale: LCID, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumDateFormatsW( - lpDateFmtEnumProc: DATEFMT_ENUMPROCW, - Locale: LCID, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumDateFormatsExA( - lpDateFmtEnumProcEx: DATEFMT_ENUMPROCEXA, - Locale: LCID, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumDateFormatsExW( - lpDateFmtEnumProcEx: DATEFMT_ENUMPROCEXW, - Locale: LCID, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn IsValidLanguageGroup(LanguageGroup: LGRPID, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn GetNLSVersion( - Function: NLS_FUNCTION, - Locale: LCID, - lpVersionInformation: LPNLSVERSIONINFO, - ) -> BOOL; -} -extern "C" { - pub fn IsValidLocale(Locale: LCID, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn GetGeoInfoA( - Location: GEOID, - GeoType: GEOTYPE, - lpGeoData: LPSTR, - cchData: ::std::os::raw::c_int, - LangId: LANGID, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetGeoInfoW( - Location: GEOID, - GeoType: GEOTYPE, - lpGeoData: LPWSTR, - cchData: ::std::os::raw::c_int, - LangId: LANGID, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetGeoInfoEx( - location: PWSTR, - geoType: GEOTYPE, - geoData: PWSTR, - geoDataCount: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EnumSystemGeoID( - GeoClass: GEOCLASS, - ParentGeoId: GEOID, - lpGeoEnumProc: GEO_ENUMPROC, - ) -> BOOL; -} -extern "C" { - pub fn EnumSystemGeoNames( - geoClass: GEOCLASS, - geoEnumProc: GEO_ENUMNAMEPROC, - data: LPARAM, - ) -> BOOL; -} -extern "C" { - pub fn GetUserGeoID(GeoClass: GEOCLASS) -> GEOID; -} -extern "C" { - pub fn GetUserDefaultGeoName( - geoName: LPWSTR, - geoNameCount: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SetUserGeoID(GeoId: GEOID) -> BOOL; -} -extern "C" { - pub fn SetUserGeoName(geoName: PWSTR) -> BOOL; -} -extern "C" { - pub fn ConvertDefaultLocale(Locale: LCID) -> LCID; -} -extern "C" { - pub fn GetSystemDefaultUILanguage() -> LANGID; -} -extern "C" { - pub fn GetThreadLocale() -> LCID; -} -extern "C" { - pub fn SetThreadLocale(Locale: LCID) -> BOOL; -} -extern "C" { - pub fn GetUserDefaultUILanguage() -> LANGID; -} -extern "C" { - pub fn GetUserDefaultLangID() -> LANGID; -} -extern "C" { - pub fn GetSystemDefaultLangID() -> LANGID; -} -extern "C" { - pub fn GetSystemDefaultLCID() -> LCID; -} -extern "C" { - pub fn GetUserDefaultLCID() -> LCID; -} -extern "C" { - pub fn SetThreadUILanguage(LangId: LANGID) -> LANGID; -} -extern "C" { - pub fn GetThreadUILanguage() -> LANGID; -} -extern "C" { - pub fn GetProcessPreferredUILanguages( - dwFlags: DWORD, - pulNumLanguages: PULONG, - pwszLanguagesBuffer: PZZWSTR, - pcchLanguagesBuffer: PULONG, - ) -> BOOL; -} -extern "C" { - pub fn SetProcessPreferredUILanguages( - dwFlags: DWORD, - pwszLanguagesBuffer: PCZZWSTR, - pulNumLanguages: PULONG, - ) -> BOOL; -} -extern "C" { - pub fn GetUserPreferredUILanguages( - dwFlags: DWORD, - pulNumLanguages: PULONG, - pwszLanguagesBuffer: PZZWSTR, - pcchLanguagesBuffer: PULONG, - ) -> BOOL; -} -extern "C" { - pub fn GetSystemPreferredUILanguages( - dwFlags: DWORD, - pulNumLanguages: PULONG, - pwszLanguagesBuffer: PZZWSTR, - pcchLanguagesBuffer: PULONG, - ) -> BOOL; -} -extern "C" { - pub fn GetThreadPreferredUILanguages( - dwFlags: DWORD, - pulNumLanguages: PULONG, - pwszLanguagesBuffer: PZZWSTR, - pcchLanguagesBuffer: PULONG, - ) -> BOOL; -} -extern "C" { - pub fn SetThreadPreferredUILanguages( - dwFlags: DWORD, - pwszLanguagesBuffer: PCZZWSTR, - pulNumLanguages: PULONG, - ) -> BOOL; -} -extern "C" { - pub fn GetFileMUIInfo( - dwFlags: DWORD, - pcwszFilePath: PCWSTR, - pFileMUIInfo: PFILEMUIINFO, - pcbFileMUIInfo: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetFileMUIPath( - dwFlags: DWORD, - pcwszFilePath: PCWSTR, - pwszLanguage: PWSTR, - pcchLanguage: PULONG, - pwszFileMUIPath: PWSTR, - pcchFileMUIPath: PULONG, - pululEnumerator: PULONGLONG, - ) -> BOOL; -} -extern "C" { - pub fn GetUILanguageInfo( - dwFlags: DWORD, - pwmszLanguage: PCZZWSTR, - pwszFallbackLanguages: PZZWSTR, - pcchFallbackLanguages: PDWORD, - pAttributes: PDWORD, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HSAVEDUILANGUAGES__ { - pub unused: ::std::os::raw::c_int, -} -pub type HSAVEDUILANGUAGES = *mut HSAVEDUILANGUAGES__; -extern "C" { - pub fn SetThreadPreferredUILanguages2( - flags: ULONG, - languages: PCZZWSTR, - numLanguagesSet: PULONG, - snapshot: *mut HSAVEDUILANGUAGES, - ) -> BOOL; -} -extern "C" { - pub fn RestoreThreadPreferredUILanguages(snapshot: HSAVEDUILANGUAGES); -} -extern "C" { - pub fn NotifyUILanguageChange( - dwFlags: DWORD, - pcwstrNewLanguage: PCWSTR, - pcwstrPreviousLanguage: PCWSTR, - dwReserved: DWORD, - pdwStatusRtrn: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetStringTypeExA( - Locale: LCID, - dwInfoType: DWORD, - lpSrcStr: LPCSTR, - cchSrc: ::std::os::raw::c_int, - lpCharType: LPWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetStringTypeA( - Locale: LCID, - dwInfoType: DWORD, - lpSrcStr: LPCSTR, - cchSrc: ::std::os::raw::c_int, - lpCharType: LPWORD, - ) -> BOOL; -} -extern "C" { - pub fn FoldStringA( - dwMapFlags: DWORD, - lpSrcStr: LPCSTR, - cchSrc: ::std::os::raw::c_int, - lpDestStr: LPSTR, - cchDest: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn EnumSystemLocalesA(lpLocaleEnumProc: LOCALE_ENUMPROCA, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn EnumSystemLocalesW(lpLocaleEnumProc: LOCALE_ENUMPROCW, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn EnumSystemLanguageGroupsA( - lpLanguageGroupEnumProc: LANGUAGEGROUP_ENUMPROCA, - dwFlags: DWORD, - lParam: LONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn EnumSystemLanguageGroupsW( - lpLanguageGroupEnumProc: LANGUAGEGROUP_ENUMPROCW, - dwFlags: DWORD, - lParam: LONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn EnumLanguageGroupLocalesA( - lpLangGroupLocaleEnumProc: LANGGROUPLOCALE_ENUMPROCA, - LanguageGroup: LGRPID, - dwFlags: DWORD, - lParam: LONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn EnumLanguageGroupLocalesW( - lpLangGroupLocaleEnumProc: LANGGROUPLOCALE_ENUMPROCW, - LanguageGroup: LGRPID, - dwFlags: DWORD, - lParam: LONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn EnumUILanguagesA( - lpUILanguageEnumProc: UILANGUAGE_ENUMPROCA, - dwFlags: DWORD, - lParam: LONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn EnumUILanguagesW( - lpUILanguageEnumProc: UILANGUAGE_ENUMPROCW, - dwFlags: DWORD, - lParam: LONG_PTR, - ) -> BOOL; -} -extern "C" { - pub fn EnumSystemCodePagesA(lpCodePageEnumProc: CODEPAGE_ENUMPROCA, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn EnumSystemCodePagesW(lpCodePageEnumProc: CODEPAGE_ENUMPROCW, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn IdnToAscii( - dwFlags: DWORD, - lpUnicodeCharStr: LPCWSTR, - cchUnicodeChar: ::std::os::raw::c_int, - lpASCIICharStr: LPWSTR, - cchASCIIChar: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn IdnToUnicode( - dwFlags: DWORD, - lpASCIICharStr: LPCWSTR, - cchASCIIChar: ::std::os::raw::c_int, - lpUnicodeCharStr: LPWSTR, - cchUnicodeChar: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn IdnToNameprepUnicode( - dwFlags: DWORD, - lpUnicodeCharStr: LPCWSTR, - cchUnicodeChar: ::std::os::raw::c_int, - lpNameprepCharStr: LPWSTR, - cchNameprepChar: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn NormalizeString( - NormForm: NORM_FORM, - lpSrcString: LPCWSTR, - cwSrcLength: ::std::os::raw::c_int, - lpDstString: LPWSTR, - cwDstLength: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn IsNormalizedString( - NormForm: NORM_FORM, - lpString: LPCWSTR, - cwLength: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn VerifyScripts( - dwFlags: DWORD, - lpLocaleScripts: LPCWSTR, - cchLocaleScripts: ::std::os::raw::c_int, - lpTestScripts: LPCWSTR, - cchTestScripts: ::std::os::raw::c_int, - ) -> BOOL; -} -extern "C" { - pub fn GetStringScripts( - dwFlags: DWORD, - lpString: LPCWSTR, - cchString: ::std::os::raw::c_int, - lpScripts: LPWSTR, - cchScripts: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetLocaleInfoEx( - lpLocaleName: LPCWSTR, - LCType: LCTYPE, - lpLCData: LPWSTR, - cchData: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetCalendarInfoEx( - lpLocaleName: LPCWSTR, - Calendar: CALID, - lpReserved: LPCWSTR, - CalType: CALTYPE, - lpCalData: LPWSTR, - cchData: ::std::os::raw::c_int, - lpValue: LPDWORD, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetNumberFormatEx( - lpLocaleName: LPCWSTR, - dwFlags: DWORD, - lpValue: LPCWSTR, - lpFormat: *const NUMBERFMTW, - lpNumberStr: LPWSTR, - cchNumber: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetCurrencyFormatEx( - lpLocaleName: LPCWSTR, - dwFlags: DWORD, - lpValue: LPCWSTR, - lpFormat: *const CURRENCYFMTW, - lpCurrencyStr: LPWSTR, - cchCurrency: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetUserDefaultLocaleName( - lpLocaleName: LPWSTR, - cchLocaleName: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn GetSystemDefaultLocaleName( - lpLocaleName: LPWSTR, - cchLocaleName: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn IsNLSDefinedString( - Function: NLS_FUNCTION, - dwFlags: DWORD, - lpVersionInformation: LPNLSVERSIONINFO, - lpString: LPCWSTR, - cchStr: INT, - ) -> BOOL; -} -extern "C" { - pub fn GetNLSVersionEx( - function: NLS_FUNCTION, - lpLocaleName: LPCWSTR, - lpVersionInformation: LPNLSVERSIONINFOEX, - ) -> BOOL; -} -extern "C" { - pub fn IsValidNLSVersion( - function: NLS_FUNCTION, - lpLocaleName: LPCWSTR, - lpVersionInformation: LPNLSVERSIONINFOEX, - ) -> DWORD; -} -extern "C" { - pub fn FindNLSStringEx( - lpLocaleName: LPCWSTR, - dwFindNLSStringFlags: DWORD, - lpStringSource: LPCWSTR, - cchSource: ::std::os::raw::c_int, - lpStringValue: LPCWSTR, - cchValue: ::std::os::raw::c_int, - pcchFound: LPINT, - lpVersionInformation: LPNLSVERSIONINFO, - lpReserved: LPVOID, - sortHandle: LPARAM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn LCMapStringEx( - lpLocaleName: LPCWSTR, - dwMapFlags: DWORD, - lpSrcStr: LPCWSTR, - cchSrc: ::std::os::raw::c_int, - lpDestStr: LPWSTR, - cchDest: ::std::os::raw::c_int, - lpVersionInformation: LPNLSVERSIONINFO, - lpReserved: LPVOID, - sortHandle: LPARAM, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn IsValidLocaleName(lpLocaleName: LPCWSTR) -> BOOL; -} -pub type CALINFO_ENUMPROCEXEX = ::std::option::Option< - unsafe extern "C" fn(arg1: LPWSTR, arg2: CALID, arg3: LPWSTR, arg4: LPARAM) -> BOOL, ->; -extern "C" { - pub fn EnumCalendarInfoExEx( - pCalInfoEnumProcExEx: CALINFO_ENUMPROCEXEX, - lpLocaleName: LPCWSTR, - Calendar: CALID, - lpReserved: LPCWSTR, - CalType: CALTYPE, - lParam: LPARAM, - ) -> BOOL; -} -pub type DATEFMT_ENUMPROCEXEX = - ::std::option::Option BOOL>; -extern "C" { - pub fn EnumDateFormatsExEx( - lpDateFmtEnumProcExEx: DATEFMT_ENUMPROCEXEX, - lpLocaleName: LPCWSTR, - dwFlags: DWORD, - lParam: LPARAM, - ) -> BOOL; -} -pub type TIMEFMT_ENUMPROCEX = - ::std::option::Option BOOL>; -extern "C" { - pub fn EnumTimeFormatsEx( - lpTimeFmtEnumProcEx: TIMEFMT_ENUMPROCEX, - lpLocaleName: LPCWSTR, - dwFlags: DWORD, - lParam: LPARAM, - ) -> BOOL; -} -pub type LOCALE_ENUMPROCEX = - ::std::option::Option BOOL>; -extern "C" { - pub fn EnumSystemLocalesEx( - lpLocaleEnumProcEx: LOCALE_ENUMPROCEX, - dwFlags: DWORD, - lParam: LPARAM, - lpReserved: LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn ResolveLocaleName( - lpNameToResolve: LPCWSTR, - lpLocaleName: LPWSTR, - cchLocaleName: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _COORD { - pub X: SHORT, - pub Y: SHORT, -} -pub type COORD = _COORD; -pub type PCOORD = *mut _COORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SMALL_RECT { - pub Left: SHORT, - pub Top: SHORT, - pub Right: SHORT, - pub Bottom: SHORT, -} -pub type SMALL_RECT = _SMALL_RECT; -pub type PSMALL_RECT = *mut _SMALL_RECT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _KEY_EVENT_RECORD { - pub bKeyDown: BOOL, - pub wRepeatCount: WORD, - pub wVirtualKeyCode: WORD, - pub wVirtualScanCode: WORD, - pub uChar: _KEY_EVENT_RECORD__bindgen_ty_1, - pub dwControlKeyState: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _KEY_EVENT_RECORD__bindgen_ty_1 { - pub UnicodeChar: WCHAR, - pub AsciiChar: CHAR, -} -pub type KEY_EVENT_RECORD = _KEY_EVENT_RECORD; -pub type PKEY_EVENT_RECORD = *mut _KEY_EVENT_RECORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MOUSE_EVENT_RECORD { - pub dwMousePosition: COORD, - pub dwButtonState: DWORD, - pub dwControlKeyState: DWORD, - pub dwEventFlags: DWORD, -} -pub type MOUSE_EVENT_RECORD = _MOUSE_EVENT_RECORD; -pub type PMOUSE_EVENT_RECORD = *mut _MOUSE_EVENT_RECORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WINDOW_BUFFER_SIZE_RECORD { - pub dwSize: COORD, -} -pub type WINDOW_BUFFER_SIZE_RECORD = _WINDOW_BUFFER_SIZE_RECORD; -pub type PWINDOW_BUFFER_SIZE_RECORD = *mut _WINDOW_BUFFER_SIZE_RECORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MENU_EVENT_RECORD { - pub dwCommandId: UINT, -} -pub type MENU_EVENT_RECORD = _MENU_EVENT_RECORD; -pub type PMENU_EVENT_RECORD = *mut _MENU_EVENT_RECORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FOCUS_EVENT_RECORD { - pub bSetFocus: BOOL, -} -pub type FOCUS_EVENT_RECORD = _FOCUS_EVENT_RECORD; -pub type PFOCUS_EVENT_RECORD = *mut _FOCUS_EVENT_RECORD; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _INPUT_RECORD { - pub EventType: WORD, - pub Event: _INPUT_RECORD__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _INPUT_RECORD__bindgen_ty_1 { - pub KeyEvent: KEY_EVENT_RECORD, - pub MouseEvent: MOUSE_EVENT_RECORD, - pub WindowBufferSizeEvent: WINDOW_BUFFER_SIZE_RECORD, - pub MenuEvent: MENU_EVENT_RECORD, - pub FocusEvent: FOCUS_EVENT_RECORD, -} -pub type INPUT_RECORD = _INPUT_RECORD; -pub type PINPUT_RECORD = *mut _INPUT_RECORD; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CHAR_INFO { - pub Char: _CHAR_INFO__bindgen_ty_1, - pub Attributes: WORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CHAR_INFO__bindgen_ty_1 { - pub UnicodeChar: WCHAR, - pub AsciiChar: CHAR, -} -pub type CHAR_INFO = _CHAR_INFO; -pub type PCHAR_INFO = *mut _CHAR_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CONSOLE_FONT_INFO { - pub nFont: DWORD, - pub dwFontSize: COORD, -} -pub type CONSOLE_FONT_INFO = _CONSOLE_FONT_INFO; -pub type PCONSOLE_FONT_INFO = *mut _CONSOLE_FONT_INFO; -pub type HPCON = *mut ::std::os::raw::c_void; -extern "C" { - pub fn AllocConsole() -> BOOL; -} -extern "C" { - pub fn FreeConsole() -> BOOL; -} -extern "C" { - pub fn AttachConsole(dwProcessId: DWORD) -> BOOL; -} -extern "C" { - pub fn GetConsoleCP() -> UINT; -} -extern "C" { - pub fn GetConsoleOutputCP() -> UINT; -} -extern "C" { - pub fn GetConsoleMode(hConsoleHandle: HANDLE, lpMode: LPDWORD) -> BOOL; -} -extern "C" { - pub fn SetConsoleMode(hConsoleHandle: HANDLE, dwMode: DWORD) -> BOOL; -} -extern "C" { - pub fn GetNumberOfConsoleInputEvents(hConsoleInput: HANDLE, lpNumberOfEvents: LPDWORD) -> BOOL; -} -extern "C" { - pub fn ReadConsoleInputA( - hConsoleInput: HANDLE, - lpBuffer: PINPUT_RECORD, - nLength: DWORD, - lpNumberOfEventsRead: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn ReadConsoleInputW( - hConsoleInput: HANDLE, - lpBuffer: PINPUT_RECORD, - nLength: DWORD, - lpNumberOfEventsRead: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn PeekConsoleInputA( - hConsoleInput: HANDLE, - lpBuffer: PINPUT_RECORD, - nLength: DWORD, - lpNumberOfEventsRead: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn PeekConsoleInputW( - hConsoleInput: HANDLE, - lpBuffer: PINPUT_RECORD, - nLength: DWORD, - lpNumberOfEventsRead: LPDWORD, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CONSOLE_READCONSOLE_CONTROL { - pub nLength: ULONG, - pub nInitialChars: ULONG, - pub dwCtrlWakeupMask: ULONG, - pub dwControlKeyState: ULONG, -} -pub type CONSOLE_READCONSOLE_CONTROL = _CONSOLE_READCONSOLE_CONTROL; -pub type PCONSOLE_READCONSOLE_CONTROL = *mut _CONSOLE_READCONSOLE_CONTROL; -extern "C" { - pub fn ReadConsoleA( - hConsoleInput: HANDLE, - lpBuffer: LPVOID, - nNumberOfCharsToRead: DWORD, - lpNumberOfCharsRead: LPDWORD, - pInputControl: PCONSOLE_READCONSOLE_CONTROL, - ) -> BOOL; -} -extern "C" { - pub fn ReadConsoleW( - hConsoleInput: HANDLE, - lpBuffer: LPVOID, - nNumberOfCharsToRead: DWORD, - lpNumberOfCharsRead: LPDWORD, - pInputControl: PCONSOLE_READCONSOLE_CONTROL, - ) -> BOOL; -} -extern "C" { - pub fn WriteConsoleA( - hConsoleOutput: HANDLE, - lpBuffer: *const ::std::os::raw::c_void, - nNumberOfCharsToWrite: DWORD, - lpNumberOfCharsWritten: LPDWORD, - lpReserved: LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn WriteConsoleW( - hConsoleOutput: HANDLE, - lpBuffer: *const ::std::os::raw::c_void, - nNumberOfCharsToWrite: DWORD, - lpNumberOfCharsWritten: LPDWORD, - lpReserved: LPVOID, - ) -> BOOL; -} -pub type PHANDLER_ROUTINE = ::std::option::Option BOOL>; -extern "C" { - pub fn SetConsoleCtrlHandler(HandlerRoutine: PHANDLER_ROUTINE, Add: BOOL) -> BOOL; -} -extern "C" { - pub fn CreatePseudoConsole( - size: COORD, - hInput: HANDLE, - hOutput: HANDLE, - dwFlags: DWORD, - phPC: *mut HPCON, - ) -> HRESULT; -} -extern "C" { - pub fn ResizePseudoConsole(hPC: HPCON, size: COORD) -> HRESULT; -} -extern "C" { - pub fn ClosePseudoConsole(hPC: HPCON); -} -extern "C" { - pub fn FillConsoleOutputCharacterA( - hConsoleOutput: HANDLE, - cCharacter: CHAR, - nLength: DWORD, - dwWriteCoord: COORD, - lpNumberOfCharsWritten: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn FillConsoleOutputCharacterW( - hConsoleOutput: HANDLE, - cCharacter: WCHAR, - nLength: DWORD, - dwWriteCoord: COORD, - lpNumberOfCharsWritten: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn FillConsoleOutputAttribute( - hConsoleOutput: HANDLE, - wAttribute: WORD, - nLength: DWORD, - dwWriteCoord: COORD, - lpNumberOfAttrsWritten: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GenerateConsoleCtrlEvent(dwCtrlEvent: DWORD, dwProcessGroupId: DWORD) -> BOOL; -} -extern "C" { - pub fn CreateConsoleScreenBuffer( - dwDesiredAccess: DWORD, - dwShareMode: DWORD, - lpSecurityAttributes: *const SECURITY_ATTRIBUTES, - dwFlags: DWORD, - lpScreenBufferData: LPVOID, - ) -> HANDLE; -} -extern "C" { - pub fn SetConsoleActiveScreenBuffer(hConsoleOutput: HANDLE) -> BOOL; -} -extern "C" { - pub fn FlushConsoleInputBuffer(hConsoleInput: HANDLE) -> BOOL; -} -extern "C" { - pub fn SetConsoleCP(wCodePageID: UINT) -> BOOL; -} -extern "C" { - pub fn SetConsoleOutputCP(wCodePageID: UINT) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CONSOLE_CURSOR_INFO { - pub dwSize: DWORD, - pub bVisible: BOOL, -} -pub type CONSOLE_CURSOR_INFO = _CONSOLE_CURSOR_INFO; -pub type PCONSOLE_CURSOR_INFO = *mut _CONSOLE_CURSOR_INFO; -extern "C" { - pub fn GetConsoleCursorInfo( - hConsoleOutput: HANDLE, - lpConsoleCursorInfo: PCONSOLE_CURSOR_INFO, - ) -> BOOL; -} -extern "C" { - pub fn SetConsoleCursorInfo( - hConsoleOutput: HANDLE, - lpConsoleCursorInfo: *const CONSOLE_CURSOR_INFO, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CONSOLE_SCREEN_BUFFER_INFO { - pub dwSize: COORD, - pub dwCursorPosition: COORD, - pub wAttributes: WORD, - pub srWindow: SMALL_RECT, - pub dwMaximumWindowSize: COORD, -} -pub type CONSOLE_SCREEN_BUFFER_INFO = _CONSOLE_SCREEN_BUFFER_INFO; -pub type PCONSOLE_SCREEN_BUFFER_INFO = *mut _CONSOLE_SCREEN_BUFFER_INFO; -extern "C" { - pub fn GetConsoleScreenBufferInfo( - hConsoleOutput: HANDLE, - lpConsoleScreenBufferInfo: PCONSOLE_SCREEN_BUFFER_INFO, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CONSOLE_SCREEN_BUFFER_INFOEX { - pub cbSize: ULONG, - pub dwSize: COORD, - pub dwCursorPosition: COORD, - pub wAttributes: WORD, - pub srWindow: SMALL_RECT, - pub dwMaximumWindowSize: COORD, - pub wPopupAttributes: WORD, - pub bFullscreenSupported: BOOL, - pub ColorTable: [COLORREF; 16usize], -} -pub type CONSOLE_SCREEN_BUFFER_INFOEX = _CONSOLE_SCREEN_BUFFER_INFOEX; -pub type PCONSOLE_SCREEN_BUFFER_INFOEX = *mut _CONSOLE_SCREEN_BUFFER_INFOEX; -extern "C" { - pub fn GetConsoleScreenBufferInfoEx( - hConsoleOutput: HANDLE, - lpConsoleScreenBufferInfoEx: PCONSOLE_SCREEN_BUFFER_INFOEX, - ) -> BOOL; -} -extern "C" { - pub fn SetConsoleScreenBufferInfoEx( - hConsoleOutput: HANDLE, - lpConsoleScreenBufferInfoEx: PCONSOLE_SCREEN_BUFFER_INFOEX, - ) -> BOOL; -} -extern "C" { - pub fn SetConsoleScreenBufferSize(hConsoleOutput: HANDLE, dwSize: COORD) -> BOOL; -} -extern "C" { - pub fn SetConsoleCursorPosition(hConsoleOutput: HANDLE, dwCursorPosition: COORD) -> BOOL; -} -extern "C" { - pub fn GetLargestConsoleWindowSize(hConsoleOutput: HANDLE) -> COORD; -} -extern "C" { - pub fn SetConsoleTextAttribute(hConsoleOutput: HANDLE, wAttributes: WORD) -> BOOL; -} -extern "C" { - pub fn SetConsoleWindowInfo( - hConsoleOutput: HANDLE, - bAbsolute: BOOL, - lpConsoleWindow: *const SMALL_RECT, - ) -> BOOL; -} -extern "C" { - pub fn WriteConsoleOutputCharacterA( - hConsoleOutput: HANDLE, - lpCharacter: LPCSTR, - nLength: DWORD, - dwWriteCoord: COORD, - lpNumberOfCharsWritten: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn WriteConsoleOutputCharacterW( - hConsoleOutput: HANDLE, - lpCharacter: LPCWSTR, - nLength: DWORD, - dwWriteCoord: COORD, - lpNumberOfCharsWritten: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn WriteConsoleOutputAttribute( - hConsoleOutput: HANDLE, - lpAttribute: *const WORD, - nLength: DWORD, - dwWriteCoord: COORD, - lpNumberOfAttrsWritten: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn ReadConsoleOutputCharacterA( - hConsoleOutput: HANDLE, - lpCharacter: LPSTR, - nLength: DWORD, - dwReadCoord: COORD, - lpNumberOfCharsRead: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn ReadConsoleOutputCharacterW( - hConsoleOutput: HANDLE, - lpCharacter: LPWSTR, - nLength: DWORD, - dwReadCoord: COORD, - lpNumberOfCharsRead: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn ReadConsoleOutputAttribute( - hConsoleOutput: HANDLE, - lpAttribute: LPWORD, - nLength: DWORD, - dwReadCoord: COORD, - lpNumberOfAttrsRead: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn WriteConsoleInputA( - hConsoleInput: HANDLE, - lpBuffer: *const INPUT_RECORD, - nLength: DWORD, - lpNumberOfEventsWritten: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn WriteConsoleInputW( - hConsoleInput: HANDLE, - lpBuffer: *const INPUT_RECORD, - nLength: DWORD, - lpNumberOfEventsWritten: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn ScrollConsoleScreenBufferA( - hConsoleOutput: HANDLE, - lpScrollRectangle: *const SMALL_RECT, - lpClipRectangle: *const SMALL_RECT, - dwDestinationOrigin: COORD, - lpFill: *const CHAR_INFO, - ) -> BOOL; -} -extern "C" { - pub fn ScrollConsoleScreenBufferW( - hConsoleOutput: HANDLE, - lpScrollRectangle: *const SMALL_RECT, - lpClipRectangle: *const SMALL_RECT, - dwDestinationOrigin: COORD, - lpFill: *const CHAR_INFO, - ) -> BOOL; -} -extern "C" { - pub fn WriteConsoleOutputA( - hConsoleOutput: HANDLE, - lpBuffer: *const CHAR_INFO, - dwBufferSize: COORD, - dwBufferCoord: COORD, - lpWriteRegion: PSMALL_RECT, - ) -> BOOL; -} -extern "C" { - pub fn WriteConsoleOutputW( - hConsoleOutput: HANDLE, - lpBuffer: *const CHAR_INFO, - dwBufferSize: COORD, - dwBufferCoord: COORD, - lpWriteRegion: PSMALL_RECT, - ) -> BOOL; -} -extern "C" { - pub fn ReadConsoleOutputA( - hConsoleOutput: HANDLE, - lpBuffer: PCHAR_INFO, - dwBufferSize: COORD, - dwBufferCoord: COORD, - lpReadRegion: PSMALL_RECT, - ) -> BOOL; -} -extern "C" { - pub fn ReadConsoleOutputW( - hConsoleOutput: HANDLE, - lpBuffer: PCHAR_INFO, - dwBufferSize: COORD, - dwBufferCoord: COORD, - lpReadRegion: PSMALL_RECT, - ) -> BOOL; -} -extern "C" { - pub fn GetConsoleTitleA(lpConsoleTitle: LPSTR, nSize: DWORD) -> DWORD; -} -extern "C" { - pub fn GetConsoleTitleW(lpConsoleTitle: LPWSTR, nSize: DWORD) -> DWORD; -} -extern "C" { - pub fn GetConsoleOriginalTitleA(lpConsoleTitle: LPSTR, nSize: DWORD) -> DWORD; -} -extern "C" { - pub fn GetConsoleOriginalTitleW(lpConsoleTitle: LPWSTR, nSize: DWORD) -> DWORD; -} -extern "C" { - pub fn SetConsoleTitleA(lpConsoleTitle: LPCSTR) -> BOOL; -} -extern "C" { - pub fn SetConsoleTitleW(lpConsoleTitle: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn GetNumberOfConsoleMouseButtons(lpNumberOfMouseButtons: LPDWORD) -> BOOL; -} -extern "C" { - pub fn GetConsoleFontSize(hConsoleOutput: HANDLE, nFont: DWORD) -> COORD; -} -extern "C" { - pub fn GetCurrentConsoleFont( - hConsoleOutput: HANDLE, - bMaximumWindow: BOOL, - lpConsoleCurrentFont: PCONSOLE_FONT_INFO, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CONSOLE_FONT_INFOEX { - pub cbSize: ULONG, - pub nFont: DWORD, - pub dwFontSize: COORD, - pub FontFamily: UINT, - pub FontWeight: UINT, - pub FaceName: [WCHAR; 32usize], -} -pub type CONSOLE_FONT_INFOEX = _CONSOLE_FONT_INFOEX; -pub type PCONSOLE_FONT_INFOEX = *mut _CONSOLE_FONT_INFOEX; -extern "C" { - pub fn GetCurrentConsoleFontEx( - hConsoleOutput: HANDLE, - bMaximumWindow: BOOL, - lpConsoleCurrentFontEx: PCONSOLE_FONT_INFOEX, - ) -> BOOL; -} -extern "C" { - pub fn SetCurrentConsoleFontEx( - hConsoleOutput: HANDLE, - bMaximumWindow: BOOL, - lpConsoleCurrentFontEx: PCONSOLE_FONT_INFOEX, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CONSOLE_SELECTION_INFO { - pub dwFlags: DWORD, - pub dwSelectionAnchor: COORD, - pub srSelection: SMALL_RECT, -} -pub type CONSOLE_SELECTION_INFO = _CONSOLE_SELECTION_INFO; -pub type PCONSOLE_SELECTION_INFO = *mut _CONSOLE_SELECTION_INFO; -extern "C" { - pub fn GetConsoleSelectionInfo(lpConsoleSelectionInfo: PCONSOLE_SELECTION_INFO) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CONSOLE_HISTORY_INFO { - pub cbSize: UINT, - pub HistoryBufferSize: UINT, - pub NumberOfHistoryBuffers: UINT, - pub dwFlags: DWORD, -} -pub type CONSOLE_HISTORY_INFO = _CONSOLE_HISTORY_INFO; -pub type PCONSOLE_HISTORY_INFO = *mut _CONSOLE_HISTORY_INFO; -extern "C" { - pub fn GetConsoleHistoryInfo(lpConsoleHistoryInfo: PCONSOLE_HISTORY_INFO) -> BOOL; -} -extern "C" { - pub fn SetConsoleHistoryInfo(lpConsoleHistoryInfo: PCONSOLE_HISTORY_INFO) -> BOOL; -} -extern "C" { - pub fn GetConsoleDisplayMode(lpModeFlags: LPDWORD) -> BOOL; -} -extern "C" { - pub fn SetConsoleDisplayMode( - hConsoleOutput: HANDLE, - dwFlags: DWORD, - lpNewScreenBufferDimensions: PCOORD, - ) -> BOOL; -} -extern "C" { - pub fn GetConsoleWindow() -> HWND; -} -extern "C" { - pub fn AddConsoleAliasA(Source: LPSTR, Target: LPSTR, ExeName: LPSTR) -> BOOL; -} -extern "C" { - pub fn AddConsoleAliasW(Source: LPWSTR, Target: LPWSTR, ExeName: LPWSTR) -> BOOL; -} -extern "C" { - pub fn GetConsoleAliasA( - Source: LPSTR, - TargetBuffer: LPSTR, - TargetBufferLength: DWORD, - ExeName: LPSTR, - ) -> DWORD; -} -extern "C" { - pub fn GetConsoleAliasW( - Source: LPWSTR, - TargetBuffer: LPWSTR, - TargetBufferLength: DWORD, - ExeName: LPWSTR, - ) -> DWORD; -} -extern "C" { - pub fn GetConsoleAliasesLengthA(ExeName: LPSTR) -> DWORD; -} -extern "C" { - pub fn GetConsoleAliasesLengthW(ExeName: LPWSTR) -> DWORD; -} -extern "C" { - pub fn GetConsoleAliasExesLengthA() -> DWORD; -} -extern "C" { - pub fn GetConsoleAliasExesLengthW() -> DWORD; -} -extern "C" { - pub fn GetConsoleAliasesA( - AliasBuffer: LPSTR, - AliasBufferLength: DWORD, - ExeName: LPSTR, - ) -> DWORD; -} -extern "C" { - pub fn GetConsoleAliasesW( - AliasBuffer: LPWSTR, - AliasBufferLength: DWORD, - ExeName: LPWSTR, - ) -> DWORD; -} -extern "C" { - pub fn GetConsoleAliasExesA(ExeNameBuffer: LPSTR, ExeNameBufferLength: DWORD) -> DWORD; -} -extern "C" { - pub fn GetConsoleAliasExesW(ExeNameBuffer: LPWSTR, ExeNameBufferLength: DWORD) -> DWORD; -} -extern "C" { - pub fn ExpungeConsoleCommandHistoryA(ExeName: LPSTR); -} -extern "C" { - pub fn ExpungeConsoleCommandHistoryW(ExeName: LPWSTR); -} -extern "C" { - pub fn SetConsoleNumberOfCommandsA(Number: DWORD, ExeName: LPSTR) -> BOOL; -} -extern "C" { - pub fn SetConsoleNumberOfCommandsW(Number: DWORD, ExeName: LPWSTR) -> BOOL; -} -extern "C" { - pub fn GetConsoleCommandHistoryLengthA(ExeName: LPSTR) -> DWORD; -} -extern "C" { - pub fn GetConsoleCommandHistoryLengthW(ExeName: LPWSTR) -> DWORD; -} -extern "C" { - pub fn GetConsoleCommandHistoryA( - Commands: LPSTR, - CommandBufferLength: DWORD, - ExeName: LPSTR, - ) -> DWORD; -} -extern "C" { - pub fn GetConsoleCommandHistoryW( - Commands: LPWSTR, - CommandBufferLength: DWORD, - ExeName: LPWSTR, - ) -> DWORD; -} -extern "C" { - pub fn GetConsoleProcessList(lpdwProcessList: LPDWORD, dwProcessCount: DWORD) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagVS_FIXEDFILEINFO { - pub dwSignature: DWORD, - pub dwStrucVersion: DWORD, - pub dwFileVersionMS: DWORD, - pub dwFileVersionLS: DWORD, - pub dwProductVersionMS: DWORD, - pub dwProductVersionLS: DWORD, - pub dwFileFlagsMask: DWORD, - pub dwFileFlags: DWORD, - pub dwFileOS: DWORD, - pub dwFileType: DWORD, - pub dwFileSubtype: DWORD, - pub dwFileDateMS: DWORD, - pub dwFileDateLS: DWORD, -} -pub type VS_FIXEDFILEINFO = tagVS_FIXEDFILEINFO; -extern "C" { - pub fn VerFindFileA( - uFlags: DWORD, - szFileName: LPCSTR, - szWinDir: LPCSTR, - szAppDir: LPCSTR, - szCurDir: LPSTR, - puCurDirLen: PUINT, - szDestDir: LPSTR, - puDestDirLen: PUINT, - ) -> DWORD; -} -extern "C" { - pub fn VerFindFileW( - uFlags: DWORD, - szFileName: LPCWSTR, - szWinDir: LPCWSTR, - szAppDir: LPCWSTR, - szCurDir: LPWSTR, - puCurDirLen: PUINT, - szDestDir: LPWSTR, - puDestDirLen: PUINT, - ) -> DWORD; -} -extern "C" { - pub fn VerInstallFileA( - uFlags: DWORD, - szSrcFileName: LPCSTR, - szDestFileName: LPCSTR, - szSrcDir: LPCSTR, - szDestDir: LPCSTR, - szCurDir: LPCSTR, - szTmpFile: LPSTR, - puTmpFileLen: PUINT, - ) -> DWORD; -} -extern "C" { - pub fn VerInstallFileW( - uFlags: DWORD, - szSrcFileName: LPCWSTR, - szDestFileName: LPCWSTR, - szSrcDir: LPCWSTR, - szDestDir: LPCWSTR, - szCurDir: LPCWSTR, - szTmpFile: LPWSTR, - puTmpFileLen: PUINT, - ) -> DWORD; -} -extern "C" { - pub fn GetFileVersionInfoSizeA(lptstrFilename: LPCSTR, lpdwHandle: LPDWORD) -> DWORD; -} -extern "C" { - pub fn GetFileVersionInfoSizeW(lptstrFilename: LPCWSTR, lpdwHandle: LPDWORD) -> DWORD; -} -extern "C" { - pub fn GetFileVersionInfoA( - lptstrFilename: LPCSTR, - dwHandle: DWORD, - dwLen: DWORD, - lpData: LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn GetFileVersionInfoW( - lptstrFilename: LPCWSTR, - dwHandle: DWORD, - dwLen: DWORD, - lpData: LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn GetFileVersionInfoSizeExA( - dwFlags: DWORD, - lpwstrFilename: LPCSTR, - lpdwHandle: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetFileVersionInfoSizeExW( - dwFlags: DWORD, - lpwstrFilename: LPCWSTR, - lpdwHandle: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetFileVersionInfoExA( - dwFlags: DWORD, - lpwstrFilename: LPCSTR, - dwHandle: DWORD, - dwLen: DWORD, - lpData: LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn GetFileVersionInfoExW( - dwFlags: DWORD, - lpwstrFilename: LPCWSTR, - dwHandle: DWORD, - dwLen: DWORD, - lpData: LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn VerLanguageNameA(wLang: DWORD, szLang: LPSTR, cchLang: DWORD) -> DWORD; -} -extern "C" { - pub fn VerLanguageNameW(wLang: DWORD, szLang: LPWSTR, cchLang: DWORD) -> DWORD; -} -extern "C" { - pub fn VerQueryValueA( - pBlock: LPCVOID, - lpSubBlock: LPCSTR, - lplpBuffer: *mut LPVOID, - puLen: PUINT, - ) -> BOOL; -} -extern "C" { - pub fn VerQueryValueW( - pBlock: LPCVOID, - lpSubBlock: LPCWSTR, - lplpBuffer: *mut LPVOID, - puLen: PUINT, - ) -> BOOL; -} -pub type LSTATUS = LONG; -pub type REGSAM = ACCESS_MASK; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct val_context { - pub valuelen: ::std::os::raw::c_int, - pub value_context: LPVOID, - pub val_buff_ptr: LPVOID, -} -pub type PVALCONTEXT = *mut val_context; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pvalueA { - pub pv_valuename: LPSTR, - pub pv_valuelen: ::std::os::raw::c_int, - pub pv_value_context: LPVOID, - pub pv_type: DWORD, -} -pub type PVALUEA = pvalueA; -pub type PPVALUEA = *mut pvalueA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pvalueW { - pub pv_valuename: LPWSTR, - pub pv_valuelen: ::std::os::raw::c_int, - pub pv_value_context: LPVOID, - pub pv_type: DWORD, -} -pub type PVALUEW = pvalueW; -pub type PPVALUEW = *mut pvalueW; -pub type PVALUE = PVALUEA; -pub type PPVALUE = PPVALUEA; -pub type PQUERYHANDLER = ::std::option::Option< - unsafe extern "C" fn( - arg1: LPVOID, - arg2: PVALCONTEXT, - arg3: DWORD, - arg4: LPVOID, - arg5: *mut DWORD, - arg6: DWORD, - ) -> DWORD, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct provider_info { - pub pi_R0_1val: PQUERYHANDLER, - pub pi_R0_allvals: PQUERYHANDLER, - pub pi_R3_1val: PQUERYHANDLER, - pub pi_R3_allvals: PQUERYHANDLER, - pub pi_flags: DWORD, - pub pi_key_context: LPVOID, -} -pub type REG_PROVIDER = provider_info; -pub type PPROVIDER = *mut provider_info; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct value_entA { - pub ve_valuename: LPSTR, - pub ve_valuelen: DWORD, - pub ve_valueptr: DWORD_PTR, - pub ve_type: DWORD, -} -pub type VALENTA = value_entA; -pub type PVALENTA = *mut value_entA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct value_entW { - pub ve_valuename: LPWSTR, - pub ve_valuelen: DWORD, - pub ve_valueptr: DWORD_PTR, - pub ve_type: DWORD, -} -pub type VALENTW = value_entW; -pub type PVALENTW = *mut value_entW; -pub type VALENT = VALENTA; -pub type PVALENT = PVALENTA; -extern "C" { - pub fn RegCloseKey(hKey: HKEY) -> LSTATUS; -} -extern "C" { - pub fn RegOverridePredefKey(hKey: HKEY, hNewHKey: HKEY) -> LSTATUS; -} -extern "C" { - pub fn RegOpenUserClassesRoot( - hToken: HANDLE, - dwOptions: DWORD, - samDesired: REGSAM, - phkResult: PHKEY, - ) -> LSTATUS; -} -extern "C" { - pub fn RegOpenCurrentUser(samDesired: REGSAM, phkResult: PHKEY) -> LSTATUS; -} -extern "C" { - pub fn RegDisablePredefinedCache() -> LSTATUS; -} -extern "C" { - pub fn RegDisablePredefinedCacheEx() -> LSTATUS; -} -extern "C" { - pub fn RegConnectRegistryA(lpMachineName: LPCSTR, hKey: HKEY, phkResult: PHKEY) -> LSTATUS; -} -extern "C" { - pub fn RegConnectRegistryW(lpMachineName: LPCWSTR, hKey: HKEY, phkResult: PHKEY) -> LSTATUS; -} -extern "C" { - pub fn RegConnectRegistryExA( - lpMachineName: LPCSTR, - hKey: HKEY, - Flags: ULONG, - phkResult: PHKEY, - ) -> LSTATUS; -} -extern "C" { - pub fn RegConnectRegistryExW( - lpMachineName: LPCWSTR, - hKey: HKEY, - Flags: ULONG, - phkResult: PHKEY, - ) -> LSTATUS; -} -extern "C" { - pub fn RegCreateKeyA(hKey: HKEY, lpSubKey: LPCSTR, phkResult: PHKEY) -> LSTATUS; -} -extern "C" { - pub fn RegCreateKeyW(hKey: HKEY, lpSubKey: LPCWSTR, phkResult: PHKEY) -> LSTATUS; -} -extern "C" { - pub fn RegCreateKeyExA( - hKey: HKEY, - lpSubKey: LPCSTR, - Reserved: DWORD, - lpClass: LPSTR, - dwOptions: DWORD, - samDesired: REGSAM, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - phkResult: PHKEY, - lpdwDisposition: LPDWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegCreateKeyExW( - hKey: HKEY, - lpSubKey: LPCWSTR, - Reserved: DWORD, - lpClass: LPWSTR, - dwOptions: DWORD, - samDesired: REGSAM, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - phkResult: PHKEY, - lpdwDisposition: LPDWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegCreateKeyTransactedA( - hKey: HKEY, - lpSubKey: LPCSTR, - Reserved: DWORD, - lpClass: LPSTR, - dwOptions: DWORD, - samDesired: REGSAM, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - phkResult: PHKEY, - lpdwDisposition: LPDWORD, - hTransaction: HANDLE, - pExtendedParemeter: PVOID, - ) -> LSTATUS; -} -extern "C" { - pub fn RegCreateKeyTransactedW( - hKey: HKEY, - lpSubKey: LPCWSTR, - Reserved: DWORD, - lpClass: LPWSTR, - dwOptions: DWORD, - samDesired: REGSAM, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - phkResult: PHKEY, - lpdwDisposition: LPDWORD, - hTransaction: HANDLE, - pExtendedParemeter: PVOID, - ) -> LSTATUS; -} -extern "C" { - pub fn RegDeleteKeyA(hKey: HKEY, lpSubKey: LPCSTR) -> LSTATUS; -} -extern "C" { - pub fn RegDeleteKeyW(hKey: HKEY, lpSubKey: LPCWSTR) -> LSTATUS; -} -extern "C" { - pub fn RegDeleteKeyExA( - hKey: HKEY, - lpSubKey: LPCSTR, - samDesired: REGSAM, - Reserved: DWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegDeleteKeyExW( - hKey: HKEY, - lpSubKey: LPCWSTR, - samDesired: REGSAM, - Reserved: DWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegDeleteKeyTransactedA( - hKey: HKEY, - lpSubKey: LPCSTR, - samDesired: REGSAM, - Reserved: DWORD, - hTransaction: HANDLE, - pExtendedParameter: PVOID, - ) -> LSTATUS; -} -extern "C" { - pub fn RegDeleteKeyTransactedW( - hKey: HKEY, - lpSubKey: LPCWSTR, - samDesired: REGSAM, - Reserved: DWORD, - hTransaction: HANDLE, - pExtendedParameter: PVOID, - ) -> LSTATUS; -} -extern "C" { - pub fn RegDisableReflectionKey(hBase: HKEY) -> LONG; -} -extern "C" { - pub fn RegEnableReflectionKey(hBase: HKEY) -> LONG; -} -extern "C" { - pub fn RegQueryReflectionKey(hBase: HKEY, bIsReflectionDisabled: *mut BOOL) -> LONG; -} -extern "C" { - pub fn RegDeleteValueA(hKey: HKEY, lpValueName: LPCSTR) -> LSTATUS; -} -extern "C" { - pub fn RegDeleteValueW(hKey: HKEY, lpValueName: LPCWSTR) -> LSTATUS; -} -extern "C" { - pub fn RegEnumKeyA(hKey: HKEY, dwIndex: DWORD, lpName: LPSTR, cchName: DWORD) -> LSTATUS; -} -extern "C" { - pub fn RegEnumKeyW(hKey: HKEY, dwIndex: DWORD, lpName: LPWSTR, cchName: DWORD) -> LSTATUS; -} -extern "C" { - pub fn RegEnumKeyExA( - hKey: HKEY, - dwIndex: DWORD, - lpName: LPSTR, - lpcchName: LPDWORD, - lpReserved: LPDWORD, - lpClass: LPSTR, - lpcchClass: LPDWORD, - lpftLastWriteTime: PFILETIME, - ) -> LSTATUS; -} -extern "C" { - pub fn RegEnumKeyExW( - hKey: HKEY, - dwIndex: DWORD, - lpName: LPWSTR, - lpcchName: LPDWORD, - lpReserved: LPDWORD, - lpClass: LPWSTR, - lpcchClass: LPDWORD, - lpftLastWriteTime: PFILETIME, - ) -> LSTATUS; -} -extern "C" { - pub fn RegEnumValueA( - hKey: HKEY, - dwIndex: DWORD, - lpValueName: LPSTR, - lpcchValueName: LPDWORD, - lpReserved: LPDWORD, - lpType: LPDWORD, - lpData: LPBYTE, - lpcbData: LPDWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegEnumValueW( - hKey: HKEY, - dwIndex: DWORD, - lpValueName: LPWSTR, - lpcchValueName: LPDWORD, - lpReserved: LPDWORD, - lpType: LPDWORD, - lpData: LPBYTE, - lpcbData: LPDWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegFlushKey(hKey: HKEY) -> LSTATUS; -} -extern "C" { - pub fn RegGetKeySecurity( - hKey: HKEY, - SecurityInformation: SECURITY_INFORMATION, - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - lpcbSecurityDescriptor: LPDWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegLoadKeyA(hKey: HKEY, lpSubKey: LPCSTR, lpFile: LPCSTR) -> LSTATUS; -} -extern "C" { - pub fn RegLoadKeyW(hKey: HKEY, lpSubKey: LPCWSTR, lpFile: LPCWSTR) -> LSTATUS; -} -extern "C" { - pub fn RegNotifyChangeKeyValue( - hKey: HKEY, - bWatchSubtree: BOOL, - dwNotifyFilter: DWORD, - hEvent: HANDLE, - fAsynchronous: BOOL, - ) -> LSTATUS; -} -extern "C" { - pub fn RegOpenKeyA(hKey: HKEY, lpSubKey: LPCSTR, phkResult: PHKEY) -> LSTATUS; -} -extern "C" { - pub fn RegOpenKeyW(hKey: HKEY, lpSubKey: LPCWSTR, phkResult: PHKEY) -> LSTATUS; -} -extern "C" { - pub fn RegOpenKeyExA( - hKey: HKEY, - lpSubKey: LPCSTR, - ulOptions: DWORD, - samDesired: REGSAM, - phkResult: PHKEY, - ) -> LSTATUS; -} -extern "C" { - pub fn RegOpenKeyExW( - hKey: HKEY, - lpSubKey: LPCWSTR, - ulOptions: DWORD, - samDesired: REGSAM, - phkResult: PHKEY, - ) -> LSTATUS; -} -extern "C" { - pub fn RegOpenKeyTransactedA( - hKey: HKEY, - lpSubKey: LPCSTR, - ulOptions: DWORD, - samDesired: REGSAM, - phkResult: PHKEY, - hTransaction: HANDLE, - pExtendedParemeter: PVOID, - ) -> LSTATUS; -} -extern "C" { - pub fn RegOpenKeyTransactedW( - hKey: HKEY, - lpSubKey: LPCWSTR, - ulOptions: DWORD, - samDesired: REGSAM, - phkResult: PHKEY, - hTransaction: HANDLE, - pExtendedParemeter: PVOID, - ) -> LSTATUS; -} -extern "C" { - pub fn RegQueryInfoKeyA( - hKey: HKEY, - lpClass: LPSTR, - lpcchClass: LPDWORD, - lpReserved: LPDWORD, - lpcSubKeys: LPDWORD, - lpcbMaxSubKeyLen: LPDWORD, - lpcbMaxClassLen: LPDWORD, - lpcValues: LPDWORD, - lpcbMaxValueNameLen: LPDWORD, - lpcbMaxValueLen: LPDWORD, - lpcbSecurityDescriptor: LPDWORD, - lpftLastWriteTime: PFILETIME, - ) -> LSTATUS; -} -extern "C" { - pub fn RegQueryInfoKeyW( - hKey: HKEY, - lpClass: LPWSTR, - lpcchClass: LPDWORD, - lpReserved: LPDWORD, - lpcSubKeys: LPDWORD, - lpcbMaxSubKeyLen: LPDWORD, - lpcbMaxClassLen: LPDWORD, - lpcValues: LPDWORD, - lpcbMaxValueNameLen: LPDWORD, - lpcbMaxValueLen: LPDWORD, - lpcbSecurityDescriptor: LPDWORD, - lpftLastWriteTime: PFILETIME, - ) -> LSTATUS; -} -extern "C" { - pub fn RegQueryValueA(hKey: HKEY, lpSubKey: LPCSTR, lpData: LPSTR, lpcbData: PLONG) -> LSTATUS; -} -extern "C" { - pub fn RegQueryValueW( - hKey: HKEY, - lpSubKey: LPCWSTR, - lpData: LPWSTR, - lpcbData: PLONG, - ) -> LSTATUS; -} -extern "C" { - pub fn RegQueryMultipleValuesA( - hKey: HKEY, - val_list: PVALENTA, - num_vals: DWORD, - lpValueBuf: LPSTR, - ldwTotsize: LPDWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegQueryMultipleValuesW( - hKey: HKEY, - val_list: PVALENTW, - num_vals: DWORD, - lpValueBuf: LPWSTR, - ldwTotsize: LPDWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegQueryValueExA( - hKey: HKEY, - lpValueName: LPCSTR, - lpReserved: LPDWORD, - lpType: LPDWORD, - lpData: LPBYTE, - lpcbData: LPDWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegQueryValueExW( - hKey: HKEY, - lpValueName: LPCWSTR, - lpReserved: LPDWORD, - lpType: LPDWORD, - lpData: LPBYTE, - lpcbData: LPDWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegReplaceKeyA( - hKey: HKEY, - lpSubKey: LPCSTR, - lpNewFile: LPCSTR, - lpOldFile: LPCSTR, - ) -> LSTATUS; -} -extern "C" { - pub fn RegReplaceKeyW( - hKey: HKEY, - lpSubKey: LPCWSTR, - lpNewFile: LPCWSTR, - lpOldFile: LPCWSTR, - ) -> LSTATUS; -} -extern "C" { - pub fn RegRestoreKeyA(hKey: HKEY, lpFile: LPCSTR, dwFlags: DWORD) -> LSTATUS; -} -extern "C" { - pub fn RegRestoreKeyW(hKey: HKEY, lpFile: LPCWSTR, dwFlags: DWORD) -> LSTATUS; -} -extern "C" { - pub fn RegRenameKey(hKey: HKEY, lpSubKeyName: LPCWSTR, lpNewKeyName: LPCWSTR) -> LSTATUS; -} -extern "C" { - pub fn RegSaveKeyA( - hKey: HKEY, - lpFile: LPCSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - ) -> LSTATUS; -} -extern "C" { - pub fn RegSaveKeyW( - hKey: HKEY, - lpFile: LPCWSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - ) -> LSTATUS; -} -extern "C" { - pub fn RegSetKeySecurity( - hKey: HKEY, - SecurityInformation: SECURITY_INFORMATION, - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - ) -> LSTATUS; -} -extern "C" { - pub fn RegSetValueA( - hKey: HKEY, - lpSubKey: LPCSTR, - dwType: DWORD, - lpData: LPCSTR, - cbData: DWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegSetValueW( - hKey: HKEY, - lpSubKey: LPCWSTR, - dwType: DWORD, - lpData: LPCWSTR, - cbData: DWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegSetValueExA( - hKey: HKEY, - lpValueName: LPCSTR, - Reserved: DWORD, - dwType: DWORD, - lpData: *const BYTE, - cbData: DWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegSetValueExW( - hKey: HKEY, - lpValueName: LPCWSTR, - Reserved: DWORD, - dwType: DWORD, - lpData: *const BYTE, - cbData: DWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegUnLoadKeyA(hKey: HKEY, lpSubKey: LPCSTR) -> LSTATUS; -} -extern "C" { - pub fn RegUnLoadKeyW(hKey: HKEY, lpSubKey: LPCWSTR) -> LSTATUS; -} -extern "C" { - pub fn RegDeleteKeyValueA(hKey: HKEY, lpSubKey: LPCSTR, lpValueName: LPCSTR) -> LSTATUS; -} -extern "C" { - pub fn RegDeleteKeyValueW(hKey: HKEY, lpSubKey: LPCWSTR, lpValueName: LPCWSTR) -> LSTATUS; -} -extern "C" { - pub fn RegSetKeyValueA( - hKey: HKEY, - lpSubKey: LPCSTR, - lpValueName: LPCSTR, - dwType: DWORD, - lpData: LPCVOID, - cbData: DWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegSetKeyValueW( - hKey: HKEY, - lpSubKey: LPCWSTR, - lpValueName: LPCWSTR, - dwType: DWORD, - lpData: LPCVOID, - cbData: DWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegDeleteTreeA(hKey: HKEY, lpSubKey: LPCSTR) -> LSTATUS; -} -extern "C" { - pub fn RegDeleteTreeW(hKey: HKEY, lpSubKey: LPCWSTR) -> LSTATUS; -} -extern "C" { - pub fn RegCopyTreeA(hKeySrc: HKEY, lpSubKey: LPCSTR, hKeyDest: HKEY) -> LSTATUS; -} -extern "C" { - pub fn RegGetValueA( - hkey: HKEY, - lpSubKey: LPCSTR, - lpValue: LPCSTR, - dwFlags: DWORD, - pdwType: LPDWORD, - pvData: PVOID, - pcbData: LPDWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegGetValueW( - hkey: HKEY, - lpSubKey: LPCWSTR, - lpValue: LPCWSTR, - dwFlags: DWORD, - pdwType: LPDWORD, - pvData: PVOID, - pcbData: LPDWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegCopyTreeW(hKeySrc: HKEY, lpSubKey: LPCWSTR, hKeyDest: HKEY) -> LSTATUS; -} -extern "C" { - pub fn RegLoadMUIStringA( - hKey: HKEY, - pszValue: LPCSTR, - pszOutBuf: LPSTR, - cbOutBuf: DWORD, - pcbData: LPDWORD, - Flags: DWORD, - pszDirectory: LPCSTR, - ) -> LSTATUS; -} -extern "C" { - pub fn RegLoadMUIStringW( - hKey: HKEY, - pszValue: LPCWSTR, - pszOutBuf: LPWSTR, - cbOutBuf: DWORD, - pcbData: LPDWORD, - Flags: DWORD, - pszDirectory: LPCWSTR, - ) -> LSTATUS; -} -extern "C" { - pub fn RegLoadAppKeyA( - lpFile: LPCSTR, - phkResult: PHKEY, - samDesired: REGSAM, - dwOptions: DWORD, - Reserved: DWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegLoadAppKeyW( - lpFile: LPCWSTR, - phkResult: PHKEY, - samDesired: REGSAM, - dwOptions: DWORD, - Reserved: DWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn InitiateSystemShutdownA( - lpMachineName: LPSTR, - lpMessage: LPSTR, - dwTimeout: DWORD, - bForceAppsClosed: BOOL, - bRebootAfterShutdown: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn InitiateSystemShutdownW( - lpMachineName: LPWSTR, - lpMessage: LPWSTR, - dwTimeout: DWORD, - bForceAppsClosed: BOOL, - bRebootAfterShutdown: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn AbortSystemShutdownA(lpMachineName: LPSTR) -> BOOL; -} -extern "C" { - pub fn AbortSystemShutdownW(lpMachineName: LPWSTR) -> BOOL; -} -extern "C" { - pub fn InitiateSystemShutdownExA( - lpMachineName: LPSTR, - lpMessage: LPSTR, - dwTimeout: DWORD, - bForceAppsClosed: BOOL, - bRebootAfterShutdown: BOOL, - dwReason: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn InitiateSystemShutdownExW( - lpMachineName: LPWSTR, - lpMessage: LPWSTR, - dwTimeout: DWORD, - bForceAppsClosed: BOOL, - bRebootAfterShutdown: BOOL, - dwReason: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn InitiateShutdownA( - lpMachineName: LPSTR, - lpMessage: LPSTR, - dwGracePeriod: DWORD, - dwShutdownFlags: DWORD, - dwReason: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn InitiateShutdownW( - lpMachineName: LPWSTR, - lpMessage: LPWSTR, - dwGracePeriod: DWORD, - dwShutdownFlags: DWORD, - dwReason: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn CheckForHiberboot(pHiberboot: PBOOLEAN, bClearFlag: BOOLEAN) -> DWORD; -} -extern "C" { - pub fn RegSaveKeyExA( - hKey: HKEY, - lpFile: LPCSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - Flags: DWORD, - ) -> LSTATUS; -} -extern "C" { - pub fn RegSaveKeyExW( - hKey: HKEY, - lpFile: LPCWSTR, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - Flags: DWORD, - ) -> LSTATUS; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NETRESOURCEA { - pub dwScope: DWORD, - pub dwType: DWORD, - pub dwDisplayType: DWORD, - pub dwUsage: DWORD, - pub lpLocalName: LPSTR, - pub lpRemoteName: LPSTR, - pub lpComment: LPSTR, - pub lpProvider: LPSTR, -} -pub type NETRESOURCEA = _NETRESOURCEA; -pub type LPNETRESOURCEA = *mut _NETRESOURCEA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NETRESOURCEW { - pub dwScope: DWORD, - pub dwType: DWORD, - pub dwDisplayType: DWORD, - pub dwUsage: DWORD, - pub lpLocalName: LPWSTR, - pub lpRemoteName: LPWSTR, - pub lpComment: LPWSTR, - pub lpProvider: LPWSTR, -} -pub type NETRESOURCEW = _NETRESOURCEW; -pub type LPNETRESOURCEW = *mut _NETRESOURCEW; -pub type NETRESOURCE = NETRESOURCEA; -pub type LPNETRESOURCE = LPNETRESOURCEA; -extern "C" { - pub fn WNetAddConnectionA( - lpRemoteName: LPCSTR, - lpPassword: LPCSTR, - lpLocalName: LPCSTR, - ) -> DWORD; -} -extern "C" { - pub fn WNetAddConnectionW( - lpRemoteName: LPCWSTR, - lpPassword: LPCWSTR, - lpLocalName: LPCWSTR, - ) -> DWORD; -} -extern "C" { - pub fn WNetAddConnection2A( - lpNetResource: LPNETRESOURCEA, - lpPassword: LPCSTR, - lpUserName: LPCSTR, - dwFlags: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetAddConnection2W( - lpNetResource: LPNETRESOURCEW, - lpPassword: LPCWSTR, - lpUserName: LPCWSTR, - dwFlags: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetAddConnection3A( - hwndOwner: HWND, - lpNetResource: LPNETRESOURCEA, - lpPassword: LPCSTR, - lpUserName: LPCSTR, - dwFlags: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetAddConnection3W( - hwndOwner: HWND, - lpNetResource: LPNETRESOURCEW, - lpPassword: LPCWSTR, - lpUserName: LPCWSTR, - dwFlags: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetAddConnection4A( - hwndOwner: HWND, - lpNetResource: LPNETRESOURCEA, - pAuthBuffer: PVOID, - cbAuthBuffer: DWORD, - dwFlags: DWORD, - lpUseOptions: PBYTE, - cbUseOptions: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetAddConnection4W( - hwndOwner: HWND, - lpNetResource: LPNETRESOURCEW, - pAuthBuffer: PVOID, - cbAuthBuffer: DWORD, - dwFlags: DWORD, - lpUseOptions: PBYTE, - cbUseOptions: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetCancelConnectionA(lpName: LPCSTR, fForce: BOOL) -> DWORD; -} -extern "C" { - pub fn WNetCancelConnectionW(lpName: LPCWSTR, fForce: BOOL) -> DWORD; -} -extern "C" { - pub fn WNetCancelConnection2A(lpName: LPCSTR, dwFlags: DWORD, fForce: BOOL) -> DWORD; -} -extern "C" { - pub fn WNetCancelConnection2W(lpName: LPCWSTR, dwFlags: DWORD, fForce: BOOL) -> DWORD; -} -extern "C" { - pub fn WNetGetConnectionA( - lpLocalName: LPCSTR, - lpRemoteName: LPSTR, - lpnLength: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetGetConnectionW( - lpLocalName: LPCWSTR, - lpRemoteName: LPWSTR, - lpnLength: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetRestoreSingleConnectionW(hwndParent: HWND, lpDevice: LPCWSTR, fUseUI: BOOL) - -> DWORD; -} -extern "C" { - pub fn WNetUseConnectionA( - hwndOwner: HWND, - lpNetResource: LPNETRESOURCEA, - lpPassword: LPCSTR, - lpUserId: LPCSTR, - dwFlags: DWORD, - lpAccessName: LPSTR, - lpBufferSize: LPDWORD, - lpResult: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetUseConnectionW( - hwndOwner: HWND, - lpNetResource: LPNETRESOURCEW, - lpPassword: LPCWSTR, - lpUserId: LPCWSTR, - dwFlags: DWORD, - lpAccessName: LPWSTR, - lpBufferSize: LPDWORD, - lpResult: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetUseConnection4A( - hwndOwner: HWND, - lpNetResource: LPNETRESOURCEA, - pAuthBuffer: PVOID, - cbAuthBuffer: DWORD, - dwFlags: DWORD, - lpUseOptions: PBYTE, - cbUseOptions: DWORD, - lpAccessName: LPSTR, - lpBufferSize: LPDWORD, - lpResult: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetUseConnection4W( - hwndOwner: HWND, - lpNetResource: LPNETRESOURCEW, - pAuthBuffer: PVOID, - cbAuthBuffer: DWORD, - dwFlags: DWORD, - lpUseOptions: PBYTE, - cbUseOptions: DWORD, - lpAccessName: LPWSTR, - lpBufferSize: LPDWORD, - lpResult: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetConnectionDialog(hwnd: HWND, dwType: DWORD) -> DWORD; -} -extern "C" { - pub fn WNetDisconnectDialog(hwnd: HWND, dwType: DWORD) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CONNECTDLGSTRUCTA { - pub cbStructure: DWORD, - pub hwndOwner: HWND, - pub lpConnRes: LPNETRESOURCEA, - pub dwFlags: DWORD, - pub dwDevNum: DWORD, -} -pub type CONNECTDLGSTRUCTA = _CONNECTDLGSTRUCTA; -pub type LPCONNECTDLGSTRUCTA = *mut _CONNECTDLGSTRUCTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CONNECTDLGSTRUCTW { - pub cbStructure: DWORD, - pub hwndOwner: HWND, - pub lpConnRes: LPNETRESOURCEW, - pub dwFlags: DWORD, - pub dwDevNum: DWORD, -} -pub type CONNECTDLGSTRUCTW = _CONNECTDLGSTRUCTW; -pub type LPCONNECTDLGSTRUCTW = *mut _CONNECTDLGSTRUCTW; -pub type CONNECTDLGSTRUCT = CONNECTDLGSTRUCTA; -pub type LPCONNECTDLGSTRUCT = LPCONNECTDLGSTRUCTA; -extern "C" { - pub fn WNetConnectionDialog1A(lpConnDlgStruct: LPCONNECTDLGSTRUCTA) -> DWORD; -} -extern "C" { - pub fn WNetConnectionDialog1W(lpConnDlgStruct: LPCONNECTDLGSTRUCTW) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISCDLGSTRUCTA { - pub cbStructure: DWORD, - pub hwndOwner: HWND, - pub lpLocalName: LPSTR, - pub lpRemoteName: LPSTR, - pub dwFlags: DWORD, -} -pub type DISCDLGSTRUCTA = _DISCDLGSTRUCTA; -pub type LPDISCDLGSTRUCTA = *mut _DISCDLGSTRUCTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISCDLGSTRUCTW { - pub cbStructure: DWORD, - pub hwndOwner: HWND, - pub lpLocalName: LPWSTR, - pub lpRemoteName: LPWSTR, - pub dwFlags: DWORD, -} -pub type DISCDLGSTRUCTW = _DISCDLGSTRUCTW; -pub type LPDISCDLGSTRUCTW = *mut _DISCDLGSTRUCTW; -pub type DISCDLGSTRUCT = DISCDLGSTRUCTA; -pub type LPDISCDLGSTRUCT = LPDISCDLGSTRUCTA; -extern "C" { - pub fn WNetDisconnectDialog1A(lpConnDlgStruct: LPDISCDLGSTRUCTA) -> DWORD; -} -extern "C" { - pub fn WNetDisconnectDialog1W(lpConnDlgStruct: LPDISCDLGSTRUCTW) -> DWORD; -} -extern "C" { - pub fn WNetOpenEnumA( - dwScope: DWORD, - dwType: DWORD, - dwUsage: DWORD, - lpNetResource: LPNETRESOURCEA, - lphEnum: LPHANDLE, - ) -> DWORD; -} -extern "C" { - pub fn WNetOpenEnumW( - dwScope: DWORD, - dwType: DWORD, - dwUsage: DWORD, - lpNetResource: LPNETRESOURCEW, - lphEnum: LPHANDLE, - ) -> DWORD; -} -extern "C" { - pub fn WNetEnumResourceA( - hEnum: HANDLE, - lpcCount: LPDWORD, - lpBuffer: LPVOID, - lpBufferSize: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetEnumResourceW( - hEnum: HANDLE, - lpcCount: LPDWORD, - lpBuffer: LPVOID, - lpBufferSize: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetCloseEnum(hEnum: HANDLE) -> DWORD; -} -extern "C" { - pub fn WNetGetResourceParentA( - lpNetResource: LPNETRESOURCEA, - lpBuffer: LPVOID, - lpcbBuffer: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetGetResourceParentW( - lpNetResource: LPNETRESOURCEW, - lpBuffer: LPVOID, - lpcbBuffer: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetGetResourceInformationA( - lpNetResource: LPNETRESOURCEA, - lpBuffer: LPVOID, - lpcbBuffer: LPDWORD, - lplpSystem: *mut LPSTR, - ) -> DWORD; -} -extern "C" { - pub fn WNetGetResourceInformationW( - lpNetResource: LPNETRESOURCEW, - lpBuffer: LPVOID, - lpcbBuffer: LPDWORD, - lplpSystem: *mut LPWSTR, - ) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _UNIVERSAL_NAME_INFOA { - pub lpUniversalName: LPSTR, -} -pub type UNIVERSAL_NAME_INFOA = _UNIVERSAL_NAME_INFOA; -pub type LPUNIVERSAL_NAME_INFOA = *mut _UNIVERSAL_NAME_INFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _UNIVERSAL_NAME_INFOW { - pub lpUniversalName: LPWSTR, -} -pub type UNIVERSAL_NAME_INFOW = _UNIVERSAL_NAME_INFOW; -pub type LPUNIVERSAL_NAME_INFOW = *mut _UNIVERSAL_NAME_INFOW; -pub type UNIVERSAL_NAME_INFO = UNIVERSAL_NAME_INFOA; -pub type LPUNIVERSAL_NAME_INFO = LPUNIVERSAL_NAME_INFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REMOTE_NAME_INFOA { - pub lpUniversalName: LPSTR, - pub lpConnectionName: LPSTR, - pub lpRemainingPath: LPSTR, -} -pub type REMOTE_NAME_INFOA = _REMOTE_NAME_INFOA; -pub type LPREMOTE_NAME_INFOA = *mut _REMOTE_NAME_INFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REMOTE_NAME_INFOW { - pub lpUniversalName: LPWSTR, - pub lpConnectionName: LPWSTR, - pub lpRemainingPath: LPWSTR, -} -pub type REMOTE_NAME_INFOW = _REMOTE_NAME_INFOW; -pub type LPREMOTE_NAME_INFOW = *mut _REMOTE_NAME_INFOW; -pub type REMOTE_NAME_INFO = REMOTE_NAME_INFOA; -pub type LPREMOTE_NAME_INFO = LPREMOTE_NAME_INFOA; -extern "C" { - pub fn WNetGetUniversalNameA( - lpLocalPath: LPCSTR, - dwInfoLevel: DWORD, - lpBuffer: LPVOID, - lpBufferSize: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetGetUniversalNameW( - lpLocalPath: LPCWSTR, - dwInfoLevel: DWORD, - lpBuffer: LPVOID, - lpBufferSize: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetGetUserA(lpName: LPCSTR, lpUserName: LPSTR, lpnLength: LPDWORD) -> DWORD; -} -extern "C" { - pub fn WNetGetUserW(lpName: LPCWSTR, lpUserName: LPWSTR, lpnLength: LPDWORD) -> DWORD; -} -extern "C" { - pub fn WNetGetProviderNameA( - dwNetType: DWORD, - lpProviderName: LPSTR, - lpBufferSize: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetGetProviderNameW( - dwNetType: DWORD, - lpProviderName: LPWSTR, - lpBufferSize: LPDWORD, - ) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NETINFOSTRUCT { - pub cbStructure: DWORD, - pub dwProviderVersion: DWORD, - pub dwStatus: DWORD, - pub dwCharacteristics: DWORD, - pub dwHandle: ULONG_PTR, - pub wNetType: WORD, - pub dwPrinters: DWORD, - pub dwDrives: DWORD, -} -pub type NETINFOSTRUCT = _NETINFOSTRUCT; -pub type LPNETINFOSTRUCT = *mut _NETINFOSTRUCT; -extern "C" { - pub fn WNetGetNetworkInformationA( - lpProvider: LPCSTR, - lpNetInfoStruct: LPNETINFOSTRUCT, - ) -> DWORD; -} -extern "C" { - pub fn WNetGetNetworkInformationW( - lpProvider: LPCWSTR, - lpNetInfoStruct: LPNETINFOSTRUCT, - ) -> DWORD; -} -extern "C" { - pub fn WNetGetLastErrorA( - lpError: LPDWORD, - lpErrorBuf: LPSTR, - nErrorBufSize: DWORD, - lpNameBuf: LPSTR, - nNameBufSize: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn WNetGetLastErrorW( - lpError: LPDWORD, - lpErrorBuf: LPWSTR, - nErrorBufSize: DWORD, - lpNameBuf: LPWSTR, - nNameBufSize: DWORD, - ) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NETCONNECTINFOSTRUCT { - pub cbStructure: DWORD, - pub dwFlags: DWORD, - pub dwSpeed: DWORD, - pub dwDelay: DWORD, - pub dwOptDataSize: DWORD, -} -pub type NETCONNECTINFOSTRUCT = _NETCONNECTINFOSTRUCT; -pub type LPNETCONNECTINFOSTRUCT = *mut _NETCONNECTINFOSTRUCT; -extern "C" { - pub fn MultinetGetConnectionPerformanceA( - lpNetResource: LPNETRESOURCEA, - lpNetConnectInfoStruct: LPNETCONNECTINFOSTRUCT, - ) -> DWORD; -} -extern "C" { - pub fn MultinetGetConnectionPerformanceW( - lpNetResource: LPNETRESOURCEW, - lpNetConnectInfoStruct: LPNETCONNECTINFOSTRUCT, - ) -> DWORD; -} -#[repr(C)] -#[repr(align(2))] -#[derive(Debug, Copy, Clone)] -pub struct DDEACK { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, -} -impl DDEACK { - #[inline] - pub fn bAppReturnCode(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u16) } - } - #[inline] - pub fn set_bAppReturnCode(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 8u8, val as u64) - } - } - #[inline] - pub fn reserved(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 6u8) as u16) } - } - #[inline] - pub fn set_reserved(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 6u8, val as u64) - } - } - #[inline] - pub fn fBusy(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } - } - #[inline] - pub fn set_fBusy(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(14usize, 1u8, val as u64) - } - } - #[inline] - pub fn fAck(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } - } - #[inline] - pub fn set_fAck(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(15usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - bAppReturnCode: ::std::os::raw::c_ushort, - reserved: ::std::os::raw::c_ushort, - fBusy: ::std::os::raw::c_ushort, - fAck: ::std::os::raw::c_ushort, - ) -> __BindgenBitfieldUnit<[u8; 2usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 8u8, { - let bAppReturnCode: u16 = unsafe { ::std::mem::transmute(bAppReturnCode) }; - bAppReturnCode as u64 - }); - __bindgen_bitfield_unit.set(8usize, 6u8, { - let reserved: u16 = unsafe { ::std::mem::transmute(reserved) }; - reserved as u64 - }); - __bindgen_bitfield_unit.set(14usize, 1u8, { - let fBusy: u16 = unsafe { ::std::mem::transmute(fBusy) }; - fBusy as u64 - }); - __bindgen_bitfield_unit.set(15usize, 1u8, { - let fAck: u16 = unsafe { ::std::mem::transmute(fAck) }; - fAck as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DDEADVISE { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, - pub cfFormat: ::std::os::raw::c_short, -} -impl DDEADVISE { - #[inline] - pub fn reserved(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 14u8) as u16) } - } - #[inline] - pub fn set_reserved(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 14u8, val as u64) - } - } - #[inline] - pub fn fDeferUpd(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } - } - #[inline] - pub fn set_fDeferUpd(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(14usize, 1u8, val as u64) - } - } - #[inline] - pub fn fAckReq(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } - } - #[inline] - pub fn set_fAckReq(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(15usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - reserved: ::std::os::raw::c_ushort, - fDeferUpd: ::std::os::raw::c_ushort, - fAckReq: ::std::os::raw::c_ushort, - ) -> __BindgenBitfieldUnit<[u8; 2usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 14u8, { - let reserved: u16 = unsafe { ::std::mem::transmute(reserved) }; - reserved as u64 - }); - __bindgen_bitfield_unit.set(14usize, 1u8, { - let fDeferUpd: u16 = unsafe { ::std::mem::transmute(fDeferUpd) }; - fDeferUpd as u64 - }); - __bindgen_bitfield_unit.set(15usize, 1u8, { - let fAckReq: u16 = unsafe { ::std::mem::transmute(fAckReq) }; - fAckReq as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DDEDATA { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, - pub cfFormat: ::std::os::raw::c_short, - pub Value: [BYTE; 1usize], -} -impl DDEDATA { - #[inline] - pub fn unused(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 12u8) as u16) } - } - #[inline] - pub fn set_unused(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 12u8, val as u64) - } - } - #[inline] - pub fn fResponse(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } - } - #[inline] - pub fn set_fResponse(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(12usize, 1u8, val as u64) - } - } - #[inline] - pub fn fRelease(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } - } - #[inline] - pub fn set_fRelease(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(13usize, 1u8, val as u64) - } - } - #[inline] - pub fn reserved(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } - } - #[inline] - pub fn set_reserved(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(14usize, 1u8, val as u64) - } - } - #[inline] - pub fn fAckReq(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } - } - #[inline] - pub fn set_fAckReq(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(15usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - unused: ::std::os::raw::c_ushort, - fResponse: ::std::os::raw::c_ushort, - fRelease: ::std::os::raw::c_ushort, - reserved: ::std::os::raw::c_ushort, - fAckReq: ::std::os::raw::c_ushort, - ) -> __BindgenBitfieldUnit<[u8; 2usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 12u8, { - let unused: u16 = unsafe { ::std::mem::transmute(unused) }; - unused as u64 - }); - __bindgen_bitfield_unit.set(12usize, 1u8, { - let fResponse: u16 = unsafe { ::std::mem::transmute(fResponse) }; - fResponse as u64 - }); - __bindgen_bitfield_unit.set(13usize, 1u8, { - let fRelease: u16 = unsafe { ::std::mem::transmute(fRelease) }; - fRelease as u64 - }); - __bindgen_bitfield_unit.set(14usize, 1u8, { - let reserved: u16 = unsafe { ::std::mem::transmute(reserved) }; - reserved as u64 - }); - __bindgen_bitfield_unit.set(15usize, 1u8, { - let fAckReq: u16 = unsafe { ::std::mem::transmute(fAckReq) }; - fAckReq as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DDEPOKE { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, - pub cfFormat: ::std::os::raw::c_short, - pub Value: [BYTE; 1usize], -} -impl DDEPOKE { - #[inline] - pub fn unused(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 13u8) as u16) } - } - #[inline] - pub fn set_unused(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 13u8, val as u64) - } - } - #[inline] - pub fn fRelease(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } - } - #[inline] - pub fn set_fRelease(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(13usize, 1u8, val as u64) - } - } - #[inline] - pub fn fReserved(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 2u8) as u16) } - } - #[inline] - pub fn set_fReserved(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(14usize, 2u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - unused: ::std::os::raw::c_ushort, - fRelease: ::std::os::raw::c_ushort, - fReserved: ::std::os::raw::c_ushort, - ) -> __BindgenBitfieldUnit<[u8; 2usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 13u8, { - let unused: u16 = unsafe { ::std::mem::transmute(unused) }; - unused as u64 - }); - __bindgen_bitfield_unit.set(13usize, 1u8, { - let fRelease: u16 = unsafe { ::std::mem::transmute(fRelease) }; - fRelease as u64 - }); - __bindgen_bitfield_unit.set(14usize, 2u8, { - let fReserved: u16 = unsafe { ::std::mem::transmute(fReserved) }; - fReserved as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DDELN { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, - pub cfFormat: ::std::os::raw::c_short, -} -impl DDELN { - #[inline] - pub fn unused(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 13u8) as u16) } - } - #[inline] - pub fn set_unused(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 13u8, val as u64) - } - } - #[inline] - pub fn fRelease(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } - } - #[inline] - pub fn set_fRelease(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(13usize, 1u8, val as u64) - } - } - #[inline] - pub fn fDeferUpd(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } - } - #[inline] - pub fn set_fDeferUpd(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(14usize, 1u8, val as u64) - } - } - #[inline] - pub fn fAckReq(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } - } - #[inline] - pub fn set_fAckReq(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(15usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - unused: ::std::os::raw::c_ushort, - fRelease: ::std::os::raw::c_ushort, - fDeferUpd: ::std::os::raw::c_ushort, - fAckReq: ::std::os::raw::c_ushort, - ) -> __BindgenBitfieldUnit<[u8; 2usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 13u8, { - let unused: u16 = unsafe { ::std::mem::transmute(unused) }; - unused as u64 - }); - __bindgen_bitfield_unit.set(13usize, 1u8, { - let fRelease: u16 = unsafe { ::std::mem::transmute(fRelease) }; - fRelease as u64 - }); - __bindgen_bitfield_unit.set(14usize, 1u8, { - let fDeferUpd: u16 = unsafe { ::std::mem::transmute(fDeferUpd) }; - fDeferUpd as u64 - }); - __bindgen_bitfield_unit.set(15usize, 1u8, { - let fAckReq: u16 = unsafe { ::std::mem::transmute(fAckReq) }; - fAckReq as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DDEUP { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, - pub cfFormat: ::std::os::raw::c_short, - pub rgb: [BYTE; 1usize], -} -impl DDEUP { - #[inline] - pub fn unused(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 12u8) as u16) } - } - #[inline] - pub fn set_unused(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 12u8, val as u64) - } - } - #[inline] - pub fn fAck(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } - } - #[inline] - pub fn set_fAck(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(12usize, 1u8, val as u64) - } - } - #[inline] - pub fn fRelease(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } - } - #[inline] - pub fn set_fRelease(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(13usize, 1u8, val as u64) - } - } - #[inline] - pub fn fReserved(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } - } - #[inline] - pub fn set_fReserved(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(14usize, 1u8, val as u64) - } - } - #[inline] - pub fn fAckReq(&self) -> ::std::os::raw::c_ushort { - unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } - } - #[inline] - pub fn set_fAckReq(&mut self, val: ::std::os::raw::c_ushort) { - unsafe { - let val: u16 = ::std::mem::transmute(val); - self._bitfield_1.set(15usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - unused: ::std::os::raw::c_ushort, - fAck: ::std::os::raw::c_ushort, - fRelease: ::std::os::raw::c_ushort, - fReserved: ::std::os::raw::c_ushort, - fAckReq: ::std::os::raw::c_ushort, - ) -> __BindgenBitfieldUnit<[u8; 2usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 12u8, { - let unused: u16 = unsafe { ::std::mem::transmute(unused) }; - unused as u64 - }); - __bindgen_bitfield_unit.set(12usize, 1u8, { - let fAck: u16 = unsafe { ::std::mem::transmute(fAck) }; - fAck as u64 - }); - __bindgen_bitfield_unit.set(13usize, 1u8, { - let fRelease: u16 = unsafe { ::std::mem::transmute(fRelease) }; - fRelease as u64 - }); - __bindgen_bitfield_unit.set(14usize, 1u8, { - let fReserved: u16 = unsafe { ::std::mem::transmute(fReserved) }; - fReserved as u64 - }); - __bindgen_bitfield_unit.set(15usize, 1u8, { - let fAckReq: u16 = unsafe { ::std::mem::transmute(fAckReq) }; - fAckReq as u64 - }); - __bindgen_bitfield_unit - } -} -extern "C" { - pub fn DdeSetQualityOfService( - hwndClient: HWND, - pqosNew: *const SECURITY_QUALITY_OF_SERVICE, - pqosPrev: PSECURITY_QUALITY_OF_SERVICE, - ) -> BOOL; -} -extern "C" { - pub fn ImpersonateDdeClientWindow(hWndClient: HWND, hWndServer: HWND) -> BOOL; -} -extern "C" { - pub fn PackDDElParam(msg: UINT, uiLo: UINT_PTR, uiHi: UINT_PTR) -> LPARAM; -} -extern "C" { - pub fn UnpackDDElParam(msg: UINT, lParam: LPARAM, puiLo: PUINT_PTR, puiHi: PUINT_PTR) -> BOOL; -} -extern "C" { - pub fn FreeDDElParam(msg: UINT, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn ReuseDDElParam( - lParam: LPARAM, - msgIn: UINT, - msgOut: UINT, - uiLo: UINT_PTR, - uiHi: UINT_PTR, - ) -> LPARAM; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HCONVLIST__ { - pub unused: ::std::os::raw::c_int, -} -pub type HCONVLIST = *mut HCONVLIST__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HCONV__ { - pub unused: ::std::os::raw::c_int, -} -pub type HCONV = *mut HCONV__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HSZ__ { - pub unused: ::std::os::raw::c_int, -} -pub type HSZ = *mut HSZ__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HDDEDATA__ { - pub unused: ::std::os::raw::c_int, -} -pub type HDDEDATA = *mut HDDEDATA__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagHSZPAIR { - pub hszSvc: HSZ, - pub hszTopic: HSZ, -} -pub type HSZPAIR = tagHSZPAIR; -pub type PHSZPAIR = *mut tagHSZPAIR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCONVCONTEXT { - pub cb: UINT, - pub wFlags: UINT, - pub wCountryID: UINT, - pub iCodePage: ::std::os::raw::c_int, - pub dwLangID: DWORD, - pub dwSecurity: DWORD, - pub qos: SECURITY_QUALITY_OF_SERVICE, -} -pub type CONVCONTEXT = tagCONVCONTEXT; -pub type PCONVCONTEXT = *mut tagCONVCONTEXT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCONVINFO { - pub cb: DWORD, - pub hUser: DWORD_PTR, - pub hConvPartner: HCONV, - pub hszSvcPartner: HSZ, - pub hszServiceReq: HSZ, - pub hszTopic: HSZ, - pub hszItem: HSZ, - pub wFmt: UINT, - pub wType: UINT, - pub wStatus: UINT, - pub wConvst: UINT, - pub wLastError: UINT, - pub hConvList: HCONVLIST, - pub ConvCtxt: CONVCONTEXT, - pub hwnd: HWND, - pub hwndPartner: HWND, -} -pub type CONVINFO = tagCONVINFO; -pub type PCONVINFO = *mut tagCONVINFO; -pub type PFNCALLBACK = ::std::option::Option< - unsafe extern "C" fn( - wType: UINT, - wFmt: UINT, - hConv: HCONV, - hsz1: HSZ, - hsz2: HSZ, - hData: HDDEDATA, - dwData1: ULONG_PTR, - dwData2: ULONG_PTR, - ) -> HDDEDATA, ->; -extern "C" { - pub fn DdeInitializeA( - pidInst: LPDWORD, - pfnCallback: PFNCALLBACK, - afCmd: DWORD, - ulRes: DWORD, - ) -> UINT; -} -extern "C" { - pub fn DdeInitializeW( - pidInst: LPDWORD, - pfnCallback: PFNCALLBACK, - afCmd: DWORD, - ulRes: DWORD, - ) -> UINT; -} -extern "C" { - pub fn DdeUninitialize(idInst: DWORD) -> BOOL; -} -extern "C" { - pub fn DdeConnectList( - idInst: DWORD, - hszService: HSZ, - hszTopic: HSZ, - hConvList: HCONVLIST, - pCC: PCONVCONTEXT, - ) -> HCONVLIST; -} -extern "C" { - pub fn DdeQueryNextServer(hConvList: HCONVLIST, hConvPrev: HCONV) -> HCONV; -} -extern "C" { - pub fn DdeDisconnectList(hConvList: HCONVLIST) -> BOOL; -} -extern "C" { - pub fn DdeConnect(idInst: DWORD, hszService: HSZ, hszTopic: HSZ, pCC: PCONVCONTEXT) -> HCONV; -} -extern "C" { - pub fn DdeDisconnect(hConv: HCONV) -> BOOL; -} -extern "C" { - pub fn DdeReconnect(hConv: HCONV) -> HCONV; -} -extern "C" { - pub fn DdeQueryConvInfo(hConv: HCONV, idTransaction: DWORD, pConvInfo: PCONVINFO) -> UINT; -} -extern "C" { - pub fn DdeSetUserHandle(hConv: HCONV, id: DWORD, hUser: DWORD_PTR) -> BOOL; -} -extern "C" { - pub fn DdeAbandonTransaction(idInst: DWORD, hConv: HCONV, idTransaction: DWORD) -> BOOL; -} -extern "C" { - pub fn DdePostAdvise(idInst: DWORD, hszTopic: HSZ, hszItem: HSZ) -> BOOL; -} -extern "C" { - pub fn DdeEnableCallback(idInst: DWORD, hConv: HCONV, wCmd: UINT) -> BOOL; -} -extern "C" { - pub fn DdeImpersonateClient(hConv: HCONV) -> BOOL; -} -extern "C" { - pub fn DdeNameService(idInst: DWORD, hsz1: HSZ, hsz2: HSZ, afCmd: UINT) -> HDDEDATA; -} -extern "C" { - pub fn DdeClientTransaction( - pData: LPBYTE, - cbData: DWORD, - hConv: HCONV, - hszItem: HSZ, - wFmt: UINT, - wType: UINT, - dwTimeout: DWORD, - pdwResult: LPDWORD, - ) -> HDDEDATA; -} -extern "C" { - pub fn DdeCreateDataHandle( - idInst: DWORD, - pSrc: LPBYTE, - cb: DWORD, - cbOff: DWORD, - hszItem: HSZ, - wFmt: UINT, - afCmd: UINT, - ) -> HDDEDATA; -} -extern "C" { - pub fn DdeAddData(hData: HDDEDATA, pSrc: LPBYTE, cb: DWORD, cbOff: DWORD) -> HDDEDATA; -} -extern "C" { - pub fn DdeGetData(hData: HDDEDATA, pDst: LPBYTE, cbMax: DWORD, cbOff: DWORD) -> DWORD; -} -extern "C" { - pub fn DdeAccessData(hData: HDDEDATA, pcbDataSize: LPDWORD) -> LPBYTE; -} -extern "C" { - pub fn DdeUnaccessData(hData: HDDEDATA) -> BOOL; -} -extern "C" { - pub fn DdeFreeDataHandle(hData: HDDEDATA) -> BOOL; -} -extern "C" { - pub fn DdeGetLastError(idInst: DWORD) -> UINT; -} -extern "C" { - pub fn DdeCreateStringHandleA( - idInst: DWORD, - psz: LPCSTR, - iCodePage: ::std::os::raw::c_int, - ) -> HSZ; -} -extern "C" { - pub fn DdeCreateStringHandleW( - idInst: DWORD, - psz: LPCWSTR, - iCodePage: ::std::os::raw::c_int, - ) -> HSZ; -} -extern "C" { - pub fn DdeQueryStringA( - idInst: DWORD, - hsz: HSZ, - psz: LPSTR, - cchMax: DWORD, - iCodePage: ::std::os::raw::c_int, - ) -> DWORD; -} -extern "C" { - pub fn DdeQueryStringW( - idInst: DWORD, - hsz: HSZ, - psz: LPWSTR, - cchMax: DWORD, - iCodePage: ::std::os::raw::c_int, - ) -> DWORD; -} -extern "C" { - pub fn DdeFreeStringHandle(idInst: DWORD, hsz: HSZ) -> BOOL; -} -extern "C" { - pub fn DdeKeepStringHandle(idInst: DWORD, hsz: HSZ) -> BOOL; -} -extern "C" { - pub fn DdeCmpStringHandles(hsz1: HSZ, hsz2: HSZ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagDDEML_MSG_HOOK_DATA { - pub uiLo: UINT_PTR, - pub uiHi: UINT_PTR, - pub cbData: DWORD, - pub Data: [DWORD; 8usize], -} -pub type DDEML_MSG_HOOK_DATA = tagDDEML_MSG_HOOK_DATA; -pub type PDDEML_MSG_HOOK_DATA = *mut tagDDEML_MSG_HOOK_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMONMSGSTRUCT { - pub cb: UINT, - pub hwndTo: HWND, - pub dwTime: DWORD, - pub hTask: HANDLE, - pub wMsg: UINT, - pub wParam: WPARAM, - pub lParam: LPARAM, - pub dmhd: DDEML_MSG_HOOK_DATA, -} -pub type MONMSGSTRUCT = tagMONMSGSTRUCT; -pub type PMONMSGSTRUCT = *mut tagMONMSGSTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMONCBSTRUCT { - pub cb: UINT, - pub dwTime: DWORD, - pub hTask: HANDLE, - pub dwRet: DWORD, - pub wType: UINT, - pub wFmt: UINT, - pub hConv: HCONV, - pub hsz1: HSZ, - pub hsz2: HSZ, - pub hData: HDDEDATA, - pub dwData1: ULONG_PTR, - pub dwData2: ULONG_PTR, - pub cc: CONVCONTEXT, - pub cbData: DWORD, - pub Data: [DWORD; 8usize], -} -pub type MONCBSTRUCT = tagMONCBSTRUCT; -pub type PMONCBSTRUCT = *mut tagMONCBSTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMONHSZSTRUCTA { - pub cb: UINT, - pub fsAction: BOOL, - pub dwTime: DWORD, - pub hsz: HSZ, - pub hTask: HANDLE, - pub str_: [CHAR; 1usize], -} -pub type MONHSZSTRUCTA = tagMONHSZSTRUCTA; -pub type PMONHSZSTRUCTA = *mut tagMONHSZSTRUCTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMONHSZSTRUCTW { - pub cb: UINT, - pub fsAction: BOOL, - pub dwTime: DWORD, - pub hsz: HSZ, - pub hTask: HANDLE, - pub str_: [WCHAR; 1usize], -} -pub type MONHSZSTRUCTW = tagMONHSZSTRUCTW; -pub type PMONHSZSTRUCTW = *mut tagMONHSZSTRUCTW; -pub type MONHSZSTRUCT = MONHSZSTRUCTA; -pub type PMONHSZSTRUCT = PMONHSZSTRUCTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMONERRSTRUCT { - pub cb: UINT, - pub wLastError: UINT, - pub dwTime: DWORD, - pub hTask: HANDLE, -} -pub type MONERRSTRUCT = tagMONERRSTRUCT; -pub type PMONERRSTRUCT = *mut tagMONERRSTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMONLINKSTRUCT { - pub cb: UINT, - pub dwTime: DWORD, - pub hTask: HANDLE, - pub fEstablished: BOOL, - pub fNoData: BOOL, - pub hszSvc: HSZ, - pub hszTopic: HSZ, - pub hszItem: HSZ, - pub wFmt: UINT, - pub fServer: BOOL, - pub hConvServer: HCONV, - pub hConvClient: HCONV, -} -pub type MONLINKSTRUCT = tagMONLINKSTRUCT; -pub type PMONLINKSTRUCT = *mut tagMONLINKSTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMONCONVSTRUCT { - pub cb: UINT, - pub fConnect: BOOL, - pub dwTime: DWORD, - pub hTask: HANDLE, - pub hszSvc: HSZ, - pub hszTopic: HSZ, - pub hConvClient: HCONV, - pub hConvServer: HCONV, -} -pub type MONCONVSTRUCT = tagMONCONVSTRUCT; -pub type PMONCONVSTRUCT = *mut tagMONCONVSTRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCRGB { - pub bRed: BYTE, - pub bGreen: BYTE, - pub bBlue: BYTE, - pub bExtra: BYTE, -} -pub type CRGB = tagCRGB; -extern "C" { - pub fn LZStart() -> INT; -} -extern "C" { - pub fn LZDone(); -} -extern "C" { - pub fn CopyLZFile(hfSource: INT, hfDest: INT) -> LONG; -} -extern "C" { - pub fn LZCopy(hfSource: INT, hfDest: INT) -> LONG; -} -extern "C" { - pub fn LZInit(hfSource: INT) -> INT; -} -extern "C" { - pub fn GetExpandedNameA(lpszSource: LPSTR, lpszBuffer: LPSTR) -> INT; -} -extern "C" { - pub fn GetExpandedNameW(lpszSource: LPWSTR, lpszBuffer: LPWSTR) -> INT; -} -extern "C" { - pub fn LZOpenFileA(lpFileName: LPSTR, lpReOpenBuf: LPOFSTRUCT, wStyle: WORD) -> INT; -} -extern "C" { - pub fn LZOpenFileW(lpFileName: LPWSTR, lpReOpenBuf: LPOFSTRUCT, wStyle: WORD) -> INT; -} -extern "C" { - pub fn LZSeek(hFile: INT, lOffset: LONG, iOrigin: INT) -> LONG; -} -extern "C" { - pub fn LZRead(hFile: INT, lpBuffer: *mut CHAR, cbRead: INT) -> INT; -} -extern "C" { - pub fn LZClose(hFile: INT); -} -pub type MMVERSION = UINT; -pub type MMRESULT = UINT; -pub type LPUINT = *mut UINT; -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct mmtime_tag { - pub wType: UINT, - pub u: mmtime_tag__bindgen_ty_1, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union mmtime_tag__bindgen_ty_1 { - pub ms: DWORD, - pub sample: DWORD, - pub cb: DWORD, - pub ticks: DWORD, - pub smpte: mmtime_tag__bindgen_ty_1__bindgen_ty_1, - pub midi: mmtime_tag__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mmtime_tag__bindgen_ty_1__bindgen_ty_1 { - pub hour: BYTE, - pub min: BYTE, - pub sec: BYTE, - pub frame: BYTE, - pub fps: BYTE, - pub dummy: BYTE, - pub pad: [BYTE; 2usize], -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct mmtime_tag__bindgen_ty_1__bindgen_ty_2 { - pub songptrpos: DWORD, -} -pub type MMTIME = mmtime_tag; -pub type PMMTIME = *mut mmtime_tag; -pub type NPMMTIME = *mut mmtime_tag; -pub type LPMMTIME = *mut mmtime_tag; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct HDRVR__ { - pub unused: ::std::os::raw::c_int, -} -pub type HDRVR = *mut HDRVR__; -pub type LPDRVCALLBACK = ::std::option::Option< - unsafe extern "C" fn( - arg1: HDRVR, - arg2: UINT, - arg3: DWORD_PTR, - arg4: DWORD_PTR, - arg5: DWORD_PTR, - ), ->; -pub type PDRVCALLBACK = ::std::option::Option< - unsafe extern "C" fn( - arg1: HDRVR, - arg2: UINT, - arg3: DWORD_PTR, - arg4: DWORD_PTR, - arg5: DWORD_PTR, - ), ->; -pub type MCIERROR = DWORD; -pub type MCIDEVICEID = UINT; -pub type YIELDPROC = - ::std::option::Option UINT>; -extern "C" { - pub fn mciSendCommandA( - mciId: MCIDEVICEID, - uMsg: UINT, - dwParam1: DWORD_PTR, - dwParam2: DWORD_PTR, - ) -> MCIERROR; -} -extern "C" { - pub fn mciSendCommandW( - mciId: MCIDEVICEID, - uMsg: UINT, - dwParam1: DWORD_PTR, - dwParam2: DWORD_PTR, - ) -> MCIERROR; -} -extern "C" { - pub fn mciSendStringA( - lpstrCommand: LPCSTR, - lpstrReturnString: LPSTR, - uReturnLength: UINT, - hwndCallback: HWND, - ) -> MCIERROR; -} -extern "C" { - pub fn mciSendStringW( - lpstrCommand: LPCWSTR, - lpstrReturnString: LPWSTR, - uReturnLength: UINT, - hwndCallback: HWND, - ) -> MCIERROR; -} -extern "C" { - pub fn mciGetDeviceIDA(pszDevice: LPCSTR) -> MCIDEVICEID; -} -extern "C" { - pub fn mciGetDeviceIDW(pszDevice: LPCWSTR) -> MCIDEVICEID; -} -extern "C" { - pub fn mciGetDeviceIDFromElementIDA(dwElementID: DWORD, lpstrType: LPCSTR) -> MCIDEVICEID; -} -extern "C" { - pub fn mciGetDeviceIDFromElementIDW(dwElementID: DWORD, lpstrType: LPCWSTR) -> MCIDEVICEID; -} -extern "C" { - pub fn mciGetErrorStringA(mcierr: MCIERROR, pszText: LPSTR, cchText: UINT) -> BOOL; -} -extern "C" { - pub fn mciGetErrorStringW(mcierr: MCIERROR, pszText: LPWSTR, cchText: UINT) -> BOOL; -} -extern "C" { - pub fn mciSetYieldProc(mciId: MCIDEVICEID, fpYieldProc: YIELDPROC, dwYieldData: DWORD) -> BOOL; -} -extern "C" { - pub fn mciGetCreatorTask(mciId: MCIDEVICEID) -> HTASK; -} -extern "C" { - pub fn mciGetYieldProc(mciId: MCIDEVICEID, pdwYieldData: LPDWORD) -> YIELDPROC; -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_GENERIC_PARMS { - pub dwCallback: DWORD_PTR, -} -pub type MCI_GENERIC_PARMS = tagMCI_GENERIC_PARMS; -pub type PMCI_GENERIC_PARMS = *mut tagMCI_GENERIC_PARMS; -pub type LPMCI_GENERIC_PARMS = *mut tagMCI_GENERIC_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_OPEN_PARMSA { - pub dwCallback: DWORD_PTR, - pub wDeviceID: MCIDEVICEID, - pub lpstrDeviceType: LPCSTR, - pub lpstrElementName: LPCSTR, - pub lpstrAlias: LPCSTR, -} -pub type MCI_OPEN_PARMSA = tagMCI_OPEN_PARMSA; -pub type PMCI_OPEN_PARMSA = *mut tagMCI_OPEN_PARMSA; -pub type LPMCI_OPEN_PARMSA = *mut tagMCI_OPEN_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_OPEN_PARMSW { - pub dwCallback: DWORD_PTR, - pub wDeviceID: MCIDEVICEID, - pub lpstrDeviceType: LPCWSTR, - pub lpstrElementName: LPCWSTR, - pub lpstrAlias: LPCWSTR, -} -pub type MCI_OPEN_PARMSW = tagMCI_OPEN_PARMSW; -pub type PMCI_OPEN_PARMSW = *mut tagMCI_OPEN_PARMSW; -pub type LPMCI_OPEN_PARMSW = *mut tagMCI_OPEN_PARMSW; -pub type MCI_OPEN_PARMS = MCI_OPEN_PARMSA; -pub type PMCI_OPEN_PARMS = PMCI_OPEN_PARMSA; -pub type LPMCI_OPEN_PARMS = LPMCI_OPEN_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_PLAY_PARMS { - pub dwCallback: DWORD_PTR, - pub dwFrom: DWORD, - pub dwTo: DWORD, -} -pub type MCI_PLAY_PARMS = tagMCI_PLAY_PARMS; -pub type PMCI_PLAY_PARMS = *mut tagMCI_PLAY_PARMS; -pub type LPMCI_PLAY_PARMS = *mut tagMCI_PLAY_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_SEEK_PARMS { - pub dwCallback: DWORD_PTR, - pub dwTo: DWORD, -} -pub type MCI_SEEK_PARMS = tagMCI_SEEK_PARMS; -pub type PMCI_SEEK_PARMS = *mut tagMCI_SEEK_PARMS; -pub type LPMCI_SEEK_PARMS = *mut tagMCI_SEEK_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_STATUS_PARMS { - pub dwCallback: DWORD_PTR, - pub dwReturn: DWORD_PTR, - pub dwItem: DWORD, - pub dwTrack: DWORD, -} -pub type MCI_STATUS_PARMS = tagMCI_STATUS_PARMS; -pub type PMCI_STATUS_PARMS = *mut tagMCI_STATUS_PARMS; -pub type LPMCI_STATUS_PARMS = *mut tagMCI_STATUS_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_INFO_PARMSA { - pub dwCallback: DWORD_PTR, - pub lpstrReturn: LPSTR, - pub dwRetSize: DWORD, -} -pub type MCI_INFO_PARMSA = tagMCI_INFO_PARMSA; -pub type LPMCI_INFO_PARMSA = *mut tagMCI_INFO_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_INFO_PARMSW { - pub dwCallback: DWORD_PTR, - pub lpstrReturn: LPWSTR, - pub dwRetSize: DWORD, -} -pub type MCI_INFO_PARMSW = tagMCI_INFO_PARMSW; -pub type LPMCI_INFO_PARMSW = *mut tagMCI_INFO_PARMSW; -pub type MCI_INFO_PARMS = MCI_INFO_PARMSA; -pub type LPMCI_INFO_PARMS = LPMCI_INFO_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_GETDEVCAPS_PARMS { - pub dwCallback: DWORD_PTR, - pub dwReturn: DWORD, - pub dwItem: DWORD, -} -pub type MCI_GETDEVCAPS_PARMS = tagMCI_GETDEVCAPS_PARMS; -pub type PMCI_GETDEVCAPS_PARMS = *mut tagMCI_GETDEVCAPS_PARMS; -pub type LPMCI_GETDEVCAPS_PARMS = *mut tagMCI_GETDEVCAPS_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_SYSINFO_PARMSA { - pub dwCallback: DWORD_PTR, - pub lpstrReturn: LPSTR, - pub dwRetSize: DWORD, - pub dwNumber: DWORD, - pub wDeviceType: UINT, -} -pub type MCI_SYSINFO_PARMSA = tagMCI_SYSINFO_PARMSA; -pub type PMCI_SYSINFO_PARMSA = *mut tagMCI_SYSINFO_PARMSA; -pub type LPMCI_SYSINFO_PARMSA = *mut tagMCI_SYSINFO_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_SYSINFO_PARMSW { - pub dwCallback: DWORD_PTR, - pub lpstrReturn: LPWSTR, - pub dwRetSize: DWORD, - pub dwNumber: DWORD, - pub wDeviceType: UINT, -} -pub type MCI_SYSINFO_PARMSW = tagMCI_SYSINFO_PARMSW; -pub type PMCI_SYSINFO_PARMSW = *mut tagMCI_SYSINFO_PARMSW; -pub type LPMCI_SYSINFO_PARMSW = *mut tagMCI_SYSINFO_PARMSW; -pub type MCI_SYSINFO_PARMS = MCI_SYSINFO_PARMSA; -pub type PMCI_SYSINFO_PARMS = PMCI_SYSINFO_PARMSA; -pub type LPMCI_SYSINFO_PARMS = LPMCI_SYSINFO_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_SET_PARMS { - pub dwCallback: DWORD_PTR, - pub dwTimeFormat: DWORD, - pub dwAudio: DWORD, -} -pub type MCI_SET_PARMS = tagMCI_SET_PARMS; -pub type PMCI_SET_PARMS = *mut tagMCI_SET_PARMS; -pub type LPMCI_SET_PARMS = *mut tagMCI_SET_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_BREAK_PARMS { - pub dwCallback: DWORD_PTR, - pub nVirtKey: ::std::os::raw::c_int, - pub hwndBreak: HWND, -} -pub type MCI_BREAK_PARMS = tagMCI_BREAK_PARMS; -pub type PMCI_BREAK_PARMS = *mut tagMCI_BREAK_PARMS; -pub type LPMCI_BREAK_PARMS = *mut tagMCI_BREAK_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_SAVE_PARMSA { - pub dwCallback: DWORD_PTR, - pub lpfilename: LPCSTR, -} -pub type MCI_SAVE_PARMSA = tagMCI_SAVE_PARMSA; -pub type PMCI_SAVE_PARMSA = *mut tagMCI_SAVE_PARMSA; -pub type LPMCI_SAVE_PARMSA = *mut tagMCI_SAVE_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_SAVE_PARMSW { - pub dwCallback: DWORD_PTR, - pub lpfilename: LPCWSTR, -} -pub type MCI_SAVE_PARMSW = tagMCI_SAVE_PARMSW; -pub type PMCI_SAVE_PARMSW = *mut tagMCI_SAVE_PARMSW; -pub type LPMCI_SAVE_PARMSW = *mut tagMCI_SAVE_PARMSW; -pub type MCI_SAVE_PARMS = MCI_SAVE_PARMSA; -pub type PMCI_SAVE_PARMS = PMCI_SAVE_PARMSA; -pub type LPMCI_SAVE_PARMS = LPMCI_SAVE_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_LOAD_PARMSA { - pub dwCallback: DWORD_PTR, - pub lpfilename: LPCSTR, -} -pub type MCI_LOAD_PARMSA = tagMCI_LOAD_PARMSA; -pub type PMCI_LOAD_PARMSA = *mut tagMCI_LOAD_PARMSA; -pub type LPMCI_LOAD_PARMSA = *mut tagMCI_LOAD_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_LOAD_PARMSW { - pub dwCallback: DWORD_PTR, - pub lpfilename: LPCWSTR, -} -pub type MCI_LOAD_PARMSW = tagMCI_LOAD_PARMSW; -pub type PMCI_LOAD_PARMSW = *mut tagMCI_LOAD_PARMSW; -pub type LPMCI_LOAD_PARMSW = *mut tagMCI_LOAD_PARMSW; -pub type MCI_LOAD_PARMS = MCI_LOAD_PARMSA; -pub type PMCI_LOAD_PARMS = PMCI_LOAD_PARMSA; -pub type LPMCI_LOAD_PARMS = LPMCI_LOAD_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_RECORD_PARMS { - pub dwCallback: DWORD_PTR, - pub dwFrom: DWORD, - pub dwTo: DWORD, -} -pub type MCI_RECORD_PARMS = tagMCI_RECORD_PARMS; -pub type LPMCI_RECORD_PARMS = *mut tagMCI_RECORD_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_VD_PLAY_PARMS { - pub dwCallback: DWORD_PTR, - pub dwFrom: DWORD, - pub dwTo: DWORD, - pub dwSpeed: DWORD, -} -pub type MCI_VD_PLAY_PARMS = tagMCI_VD_PLAY_PARMS; -pub type PMCI_VD_PLAY_PARMS = *mut tagMCI_VD_PLAY_PARMS; -pub type LPMCI_VD_PLAY_PARMS = *mut tagMCI_VD_PLAY_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_VD_STEP_PARMS { - pub dwCallback: DWORD_PTR, - pub dwFrames: DWORD, -} -pub type MCI_VD_STEP_PARMS = tagMCI_VD_STEP_PARMS; -pub type PMCI_VD_STEP_PARMS = *mut tagMCI_VD_STEP_PARMS; -pub type LPMCI_VD_STEP_PARMS = *mut tagMCI_VD_STEP_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_VD_ESCAPE_PARMSA { - pub dwCallback: DWORD_PTR, - pub lpstrCommand: LPCSTR, -} -pub type MCI_VD_ESCAPE_PARMSA = tagMCI_VD_ESCAPE_PARMSA; -pub type PMCI_VD_ESCAPE_PARMSA = *mut tagMCI_VD_ESCAPE_PARMSA; -pub type LPMCI_VD_ESCAPE_PARMSA = *mut tagMCI_VD_ESCAPE_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_VD_ESCAPE_PARMSW { - pub dwCallback: DWORD_PTR, - pub lpstrCommand: LPCWSTR, -} -pub type MCI_VD_ESCAPE_PARMSW = tagMCI_VD_ESCAPE_PARMSW; -pub type PMCI_VD_ESCAPE_PARMSW = *mut tagMCI_VD_ESCAPE_PARMSW; -pub type LPMCI_VD_ESCAPE_PARMSW = *mut tagMCI_VD_ESCAPE_PARMSW; -pub type MCI_VD_ESCAPE_PARMS = MCI_VD_ESCAPE_PARMSA; -pub type PMCI_VD_ESCAPE_PARMS = PMCI_VD_ESCAPE_PARMSA; -pub type LPMCI_VD_ESCAPE_PARMS = LPMCI_VD_ESCAPE_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_WAVE_OPEN_PARMSA { - pub dwCallback: DWORD_PTR, - pub wDeviceID: MCIDEVICEID, - pub lpstrDeviceType: LPCSTR, - pub lpstrElementName: LPCSTR, - pub lpstrAlias: LPCSTR, - pub dwBufferSeconds: DWORD, -} -pub type MCI_WAVE_OPEN_PARMSA = tagMCI_WAVE_OPEN_PARMSA; -pub type PMCI_WAVE_OPEN_PARMSA = *mut tagMCI_WAVE_OPEN_PARMSA; -pub type LPMCI_WAVE_OPEN_PARMSA = *mut tagMCI_WAVE_OPEN_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_WAVE_OPEN_PARMSW { - pub dwCallback: DWORD_PTR, - pub wDeviceID: MCIDEVICEID, - pub lpstrDeviceType: LPCWSTR, - pub lpstrElementName: LPCWSTR, - pub lpstrAlias: LPCWSTR, - pub dwBufferSeconds: DWORD, -} -pub type MCI_WAVE_OPEN_PARMSW = tagMCI_WAVE_OPEN_PARMSW; -pub type PMCI_WAVE_OPEN_PARMSW = *mut tagMCI_WAVE_OPEN_PARMSW; -pub type LPMCI_WAVE_OPEN_PARMSW = *mut tagMCI_WAVE_OPEN_PARMSW; -pub type MCI_WAVE_OPEN_PARMS = MCI_WAVE_OPEN_PARMSA; -pub type PMCI_WAVE_OPEN_PARMS = PMCI_WAVE_OPEN_PARMSA; -pub type LPMCI_WAVE_OPEN_PARMS = LPMCI_WAVE_OPEN_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_WAVE_DELETE_PARMS { - pub dwCallback: DWORD_PTR, - pub dwFrom: DWORD, - pub dwTo: DWORD, -} -pub type MCI_WAVE_DELETE_PARMS = tagMCI_WAVE_DELETE_PARMS; -pub type PMCI_WAVE_DELETE_PARMS = *mut tagMCI_WAVE_DELETE_PARMS; -pub type LPMCI_WAVE_DELETE_PARMS = *mut tagMCI_WAVE_DELETE_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_WAVE_SET_PARMS { - pub dwCallback: DWORD_PTR, - pub dwTimeFormat: DWORD, - pub dwAudio: DWORD, - pub wInput: UINT, - pub wOutput: UINT, - pub wFormatTag: WORD, - pub wReserved2: WORD, - pub nChannels: WORD, - pub wReserved3: WORD, - pub nSamplesPerSec: DWORD, - pub nAvgBytesPerSec: DWORD, - pub nBlockAlign: WORD, - pub wReserved4: WORD, - pub wBitsPerSample: WORD, - pub wReserved5: WORD, -} -pub type MCI_WAVE_SET_PARMS = tagMCI_WAVE_SET_PARMS; -pub type PMCI_WAVE_SET_PARMS = *mut tagMCI_WAVE_SET_PARMS; -pub type LPMCI_WAVE_SET_PARMS = *mut tagMCI_WAVE_SET_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_SEQ_SET_PARMS { - pub dwCallback: DWORD_PTR, - pub dwTimeFormat: DWORD, - pub dwAudio: DWORD, - pub dwTempo: DWORD, - pub dwPort: DWORD, - pub dwSlave: DWORD, - pub dwMaster: DWORD, - pub dwOffset: DWORD, -} -pub type MCI_SEQ_SET_PARMS = tagMCI_SEQ_SET_PARMS; -pub type PMCI_SEQ_SET_PARMS = *mut tagMCI_SEQ_SET_PARMS; -pub type LPMCI_SEQ_SET_PARMS = *mut tagMCI_SEQ_SET_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_ANIM_OPEN_PARMSA { - pub dwCallback: DWORD_PTR, - pub wDeviceID: MCIDEVICEID, - pub lpstrDeviceType: LPCSTR, - pub lpstrElementName: LPCSTR, - pub lpstrAlias: LPCSTR, - pub dwStyle: DWORD, - pub hWndParent: HWND, -} -pub type MCI_ANIM_OPEN_PARMSA = tagMCI_ANIM_OPEN_PARMSA; -pub type PMCI_ANIM_OPEN_PARMSA = *mut tagMCI_ANIM_OPEN_PARMSA; -pub type LPMCI_ANIM_OPEN_PARMSA = *mut tagMCI_ANIM_OPEN_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_ANIM_OPEN_PARMSW { - pub dwCallback: DWORD_PTR, - pub wDeviceID: MCIDEVICEID, - pub lpstrDeviceType: LPCWSTR, - pub lpstrElementName: LPCWSTR, - pub lpstrAlias: LPCWSTR, - pub dwStyle: DWORD, - pub hWndParent: HWND, -} -pub type MCI_ANIM_OPEN_PARMSW = tagMCI_ANIM_OPEN_PARMSW; -pub type PMCI_ANIM_OPEN_PARMSW = *mut tagMCI_ANIM_OPEN_PARMSW; -pub type LPMCI_ANIM_OPEN_PARMSW = *mut tagMCI_ANIM_OPEN_PARMSW; -pub type MCI_ANIM_OPEN_PARMS = MCI_ANIM_OPEN_PARMSA; -pub type PMCI_ANIM_OPEN_PARMS = PMCI_ANIM_OPEN_PARMSA; -pub type LPMCI_ANIM_OPEN_PARMS = LPMCI_ANIM_OPEN_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_ANIM_PLAY_PARMS { - pub dwCallback: DWORD_PTR, - pub dwFrom: DWORD, - pub dwTo: DWORD, - pub dwSpeed: DWORD, -} -pub type MCI_ANIM_PLAY_PARMS = tagMCI_ANIM_PLAY_PARMS; -pub type PMCI_ANIM_PLAY_PARMS = *mut tagMCI_ANIM_PLAY_PARMS; -pub type LPMCI_ANIM_PLAY_PARMS = *mut tagMCI_ANIM_PLAY_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_ANIM_STEP_PARMS { - pub dwCallback: DWORD_PTR, - pub dwFrames: DWORD, -} -pub type MCI_ANIM_STEP_PARMS = tagMCI_ANIM_STEP_PARMS; -pub type PMCI_ANIM_STEP_PARMS = *mut tagMCI_ANIM_STEP_PARMS; -pub type LPMCI_ANIM_STEP_PARMS = *mut tagMCI_ANIM_STEP_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_ANIM_WINDOW_PARMSA { - pub dwCallback: DWORD_PTR, - pub hWnd: HWND, - pub nCmdShow: UINT, - pub lpstrText: LPCSTR, -} -pub type MCI_ANIM_WINDOW_PARMSA = tagMCI_ANIM_WINDOW_PARMSA; -pub type PMCI_ANIM_WINDOW_PARMSA = *mut tagMCI_ANIM_WINDOW_PARMSA; -pub type LPMCI_ANIM_WINDOW_PARMSA = *mut tagMCI_ANIM_WINDOW_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_ANIM_WINDOW_PARMSW { - pub dwCallback: DWORD_PTR, - pub hWnd: HWND, - pub nCmdShow: UINT, - pub lpstrText: LPCWSTR, -} -pub type MCI_ANIM_WINDOW_PARMSW = tagMCI_ANIM_WINDOW_PARMSW; -pub type PMCI_ANIM_WINDOW_PARMSW = *mut tagMCI_ANIM_WINDOW_PARMSW; -pub type LPMCI_ANIM_WINDOW_PARMSW = *mut tagMCI_ANIM_WINDOW_PARMSW; -pub type MCI_ANIM_WINDOW_PARMS = MCI_ANIM_WINDOW_PARMSA; -pub type PMCI_ANIM_WINDOW_PARMS = PMCI_ANIM_WINDOW_PARMSA; -pub type LPMCI_ANIM_WINDOW_PARMS = LPMCI_ANIM_WINDOW_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_ANIM_RECT_PARMS { - pub dwCallback: DWORD_PTR, - pub rc: RECT, -} -pub type MCI_ANIM_RECT_PARMS = tagMCI_ANIM_RECT_PARMS; -pub type PMCI_ANIM_RECT_PARMS = *mut MCI_ANIM_RECT_PARMS; -pub type LPMCI_ANIM_RECT_PARMS = *mut MCI_ANIM_RECT_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_ANIM_UPDATE_PARMS { - pub dwCallback: DWORD_PTR, - pub rc: RECT, - pub hDC: HDC, -} -pub type MCI_ANIM_UPDATE_PARMS = tagMCI_ANIM_UPDATE_PARMS; -pub type PMCI_ANIM_UPDATE_PARMS = *mut tagMCI_ANIM_UPDATE_PARMS; -pub type LPMCI_ANIM_UPDATE_PARMS = *mut tagMCI_ANIM_UPDATE_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_OVLY_OPEN_PARMSA { - pub dwCallback: DWORD_PTR, - pub wDeviceID: MCIDEVICEID, - pub lpstrDeviceType: LPCSTR, - pub lpstrElementName: LPCSTR, - pub lpstrAlias: LPCSTR, - pub dwStyle: DWORD, - pub hWndParent: HWND, -} -pub type MCI_OVLY_OPEN_PARMSA = tagMCI_OVLY_OPEN_PARMSA; -pub type PMCI_OVLY_OPEN_PARMSA = *mut tagMCI_OVLY_OPEN_PARMSA; -pub type LPMCI_OVLY_OPEN_PARMSA = *mut tagMCI_OVLY_OPEN_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_OVLY_OPEN_PARMSW { - pub dwCallback: DWORD_PTR, - pub wDeviceID: MCIDEVICEID, - pub lpstrDeviceType: LPCWSTR, - pub lpstrElementName: LPCWSTR, - pub lpstrAlias: LPCWSTR, - pub dwStyle: DWORD, - pub hWndParent: HWND, -} -pub type MCI_OVLY_OPEN_PARMSW = tagMCI_OVLY_OPEN_PARMSW; -pub type PMCI_OVLY_OPEN_PARMSW = *mut tagMCI_OVLY_OPEN_PARMSW; -pub type LPMCI_OVLY_OPEN_PARMSW = *mut tagMCI_OVLY_OPEN_PARMSW; -pub type MCI_OVLY_OPEN_PARMS = MCI_OVLY_OPEN_PARMSA; -pub type PMCI_OVLY_OPEN_PARMS = PMCI_OVLY_OPEN_PARMSA; -pub type LPMCI_OVLY_OPEN_PARMS = LPMCI_OVLY_OPEN_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_OVLY_WINDOW_PARMSA { - pub dwCallback: DWORD_PTR, - pub hWnd: HWND, - pub nCmdShow: UINT, - pub lpstrText: LPCSTR, -} -pub type MCI_OVLY_WINDOW_PARMSA = tagMCI_OVLY_WINDOW_PARMSA; -pub type PMCI_OVLY_WINDOW_PARMSA = *mut tagMCI_OVLY_WINDOW_PARMSA; -pub type LPMCI_OVLY_WINDOW_PARMSA = *mut tagMCI_OVLY_WINDOW_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_OVLY_WINDOW_PARMSW { - pub dwCallback: DWORD_PTR, - pub hWnd: HWND, - pub nCmdShow: UINT, - pub lpstrText: LPCWSTR, -} -pub type MCI_OVLY_WINDOW_PARMSW = tagMCI_OVLY_WINDOW_PARMSW; -pub type PMCI_OVLY_WINDOW_PARMSW = *mut tagMCI_OVLY_WINDOW_PARMSW; -pub type LPMCI_OVLY_WINDOW_PARMSW = *mut tagMCI_OVLY_WINDOW_PARMSW; -pub type MCI_OVLY_WINDOW_PARMS = MCI_OVLY_WINDOW_PARMSA; -pub type PMCI_OVLY_WINDOW_PARMS = PMCI_OVLY_WINDOW_PARMSA; -pub type LPMCI_OVLY_WINDOW_PARMS = LPMCI_OVLY_WINDOW_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_OVLY_RECT_PARMS { - pub dwCallback: DWORD_PTR, - pub rc: RECT, -} -pub type MCI_OVLY_RECT_PARMS = tagMCI_OVLY_RECT_PARMS; -pub type PMCI_OVLY_RECT_PARMS = *mut tagMCI_OVLY_RECT_PARMS; -pub type LPMCI_OVLY_RECT_PARMS = *mut tagMCI_OVLY_RECT_PARMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_OVLY_SAVE_PARMSA { - pub dwCallback: DWORD_PTR, - pub lpfilename: LPCSTR, - pub rc: RECT, -} -pub type MCI_OVLY_SAVE_PARMSA = tagMCI_OVLY_SAVE_PARMSA; -pub type PMCI_OVLY_SAVE_PARMSA = *mut tagMCI_OVLY_SAVE_PARMSA; -pub type LPMCI_OVLY_SAVE_PARMSA = *mut tagMCI_OVLY_SAVE_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_OVLY_SAVE_PARMSW { - pub dwCallback: DWORD_PTR, - pub lpfilename: LPCWSTR, - pub rc: RECT, -} -pub type MCI_OVLY_SAVE_PARMSW = tagMCI_OVLY_SAVE_PARMSW; -pub type PMCI_OVLY_SAVE_PARMSW = *mut tagMCI_OVLY_SAVE_PARMSW; -pub type LPMCI_OVLY_SAVE_PARMSW = *mut tagMCI_OVLY_SAVE_PARMSW; -pub type MCI_OVLY_SAVE_PARMS = MCI_OVLY_SAVE_PARMSA; -pub type PMCI_OVLY_SAVE_PARMS = PMCI_OVLY_SAVE_PARMSA; -pub type LPMCI_OVLY_SAVE_PARMS = LPMCI_OVLY_SAVE_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_OVLY_LOAD_PARMSA { - pub dwCallback: DWORD_PTR, - pub lpfilename: LPCSTR, - pub rc: RECT, -} -pub type MCI_OVLY_LOAD_PARMSA = tagMCI_OVLY_LOAD_PARMSA; -pub type PMCI_OVLY_LOAD_PARMSA = *mut tagMCI_OVLY_LOAD_PARMSA; -pub type LPMCI_OVLY_LOAD_PARMSA = *mut tagMCI_OVLY_LOAD_PARMSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMCI_OVLY_LOAD_PARMSW { - pub dwCallback: DWORD_PTR, - pub lpfilename: LPCWSTR, - pub rc: RECT, -} -pub type MCI_OVLY_LOAD_PARMSW = tagMCI_OVLY_LOAD_PARMSW; -pub type PMCI_OVLY_LOAD_PARMSW = *mut tagMCI_OVLY_LOAD_PARMSW; -pub type LPMCI_OVLY_LOAD_PARMSW = *mut tagMCI_OVLY_LOAD_PARMSW; -pub type MCI_OVLY_LOAD_PARMS = MCI_OVLY_LOAD_PARMSA; -pub type PMCI_OVLY_LOAD_PARMS = PMCI_OVLY_LOAD_PARMSA; -pub type LPMCI_OVLY_LOAD_PARMS = LPMCI_OVLY_LOAD_PARMSA; -extern "C" { - pub fn mciGetDriverData(wDeviceID: MCIDEVICEID) -> DWORD_PTR; -} -extern "C" { - pub fn mciLoadCommandResource(hInstance: HANDLE, lpResName: LPCWSTR, wType: UINT) -> UINT; -} -extern "C" { - pub fn mciSetDriverData(wDeviceID: MCIDEVICEID, dwData: DWORD_PTR) -> BOOL; -} -extern "C" { - pub fn mciDriverYield(wDeviceID: MCIDEVICEID) -> UINT; -} -extern "C" { - pub fn mciDriverNotify(hwndCallback: HANDLE, wDeviceID: MCIDEVICEID, uStatus: UINT) -> BOOL; -} -extern "C" { - pub fn mciFreeCommandResource(wTable: UINT) -> BOOL; -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct DRVCONFIGINFOEX { - pub dwDCISize: DWORD, - pub lpszDCISectionName: LPCWSTR, - pub lpszDCIAliasName: LPCWSTR, - pub dnDevNode: DWORD, -} -pub type PDRVCONFIGINFOEX = *mut DRVCONFIGINFOEX; -pub type NPDRVCONFIGINFOEX = *mut DRVCONFIGINFOEX; -pub type LPDRVCONFIGINFOEX = *mut DRVCONFIGINFOEX; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagDRVCONFIGINFO { - pub dwDCISize: DWORD, - pub lpszDCISectionName: LPCWSTR, - pub lpszDCIAliasName: LPCWSTR, -} -pub type DRVCONFIGINFO = tagDRVCONFIGINFO; -pub type PDRVCONFIGINFO = *mut tagDRVCONFIGINFO; -pub type NPDRVCONFIGINFO = *mut tagDRVCONFIGINFO; -pub type LPDRVCONFIGINFO = *mut tagDRVCONFIGINFO; -pub type DRIVERPROC = ::std::option::Option< - unsafe extern "C" fn( - arg1: DWORD_PTR, - arg2: HDRVR, - arg3: UINT, - arg4: LPARAM, - arg5: LPARAM, - ) -> LRESULT, ->; -extern "C" { - pub fn CloseDriver(hDriver: HDRVR, lParam1: LPARAM, lParam2: LPARAM) -> LRESULT; -} -extern "C" { - pub fn OpenDriver(szDriverName: LPCWSTR, szSectionName: LPCWSTR, lParam2: LPARAM) -> HDRVR; -} -extern "C" { - pub fn SendDriverMessage( - hDriver: HDRVR, - message: UINT, - lParam1: LPARAM, - lParam2: LPARAM, - ) -> LRESULT; -} -extern "C" { - pub fn DrvGetModuleHandle(hDriver: HDRVR) -> HMODULE; -} -extern "C" { - pub fn GetDriverModuleHandle(hDriver: HDRVR) -> HMODULE; -} -extern "C" { - pub fn DefDriverProc( - dwDriverIdentifier: DWORD_PTR, - hdrvr: HDRVR, - uMsg: UINT, - lParam1: LPARAM, - lParam2: LPARAM, - ) -> LRESULT; -} -extern "C" { - pub fn DriverCallback( - dwCallback: DWORD_PTR, - dwFlags: DWORD, - hDevice: HDRVR, - dwMsg: DWORD, - dwUser: DWORD_PTR, - dwParam1: DWORD_PTR, - dwParam2: DWORD_PTR, - ) -> BOOL; -} -extern "C" { - pub fn sndOpenSound( - EventName: LPCWSTR, - AppName: LPCWSTR, - Flags: INT32, - FileHandle: PHANDLE, - ) -> LONG; -} -pub type DRIVERMSGPROC = ::std::option::Option< - unsafe extern "C" fn( - arg1: DWORD, - arg2: DWORD, - arg3: DWORD_PTR, - arg4: DWORD_PTR, - arg5: DWORD_PTR, - ) -> DWORD, ->; -extern "C" { - pub fn mmDrvInstall( - hDriver: HDRVR, - wszDrvEntry: LPCWSTR, - drvMessage: DRIVERMSGPROC, - wFlags: UINT, - ) -> UINT; -} -pub type FOURCC = DWORD; -pub type HPSTR = *mut ::std::os::raw::c_char; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct HMMIO__ { - pub unused: ::std::os::raw::c_int, -} -pub type HMMIO = *mut HMMIO__; -pub type LPMMIOPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: LPSTR, arg2: UINT, arg3: LPARAM, arg4: LPARAM) -> LRESULT, ->; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _MMIOINFO { - pub dwFlags: DWORD, - pub fccIOProc: FOURCC, - pub pIOProc: LPMMIOPROC, - pub wErrorRet: UINT, - pub htask: HTASK, - pub cchBuffer: LONG, - pub pchBuffer: HPSTR, - pub pchNext: HPSTR, - pub pchEndRead: HPSTR, - pub pchEndWrite: HPSTR, - pub lBufOffset: LONG, - pub lDiskOffset: LONG, - pub adwInfo: [DWORD; 3usize], - pub dwReserved1: DWORD, - pub dwReserved2: DWORD, - pub hmmio: HMMIO, -} -pub type MMIOINFO = _MMIOINFO; -pub type PMMIOINFO = *mut _MMIOINFO; -pub type NPMMIOINFO = *mut _MMIOINFO; -pub type LPMMIOINFO = *mut _MMIOINFO; -pub type LPCMMIOINFO = *const MMIOINFO; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _MMCKINFO { - pub ckid: FOURCC, - pub cksize: DWORD, - pub fccType: FOURCC, - pub dwDataOffset: DWORD, - pub dwFlags: DWORD, -} -pub type MMCKINFO = _MMCKINFO; -pub type PMMCKINFO = *mut _MMCKINFO; -pub type NPMMCKINFO = *mut _MMCKINFO; -pub type LPMMCKINFO = *mut _MMCKINFO; -pub type LPCMMCKINFO = *const MMCKINFO; -extern "C" { - pub fn mmioStringToFOURCCA(sz: LPCSTR, uFlags: UINT) -> FOURCC; -} -extern "C" { - pub fn mmioStringToFOURCCW(sz: LPCWSTR, uFlags: UINT) -> FOURCC; -} -extern "C" { - pub fn mmioInstallIOProcA(fccIOProc: FOURCC, pIOProc: LPMMIOPROC, dwFlags: DWORD) - -> LPMMIOPROC; -} -extern "C" { - pub fn mmioInstallIOProcW(fccIOProc: FOURCC, pIOProc: LPMMIOPROC, dwFlags: DWORD) - -> LPMMIOPROC; -} -extern "C" { - pub fn mmioOpenA(pszFileName: LPSTR, pmmioinfo: LPMMIOINFO, fdwOpen: DWORD) -> HMMIO; -} -extern "C" { - pub fn mmioOpenW(pszFileName: LPWSTR, pmmioinfo: LPMMIOINFO, fdwOpen: DWORD) -> HMMIO; -} -extern "C" { - pub fn mmioRenameA( - pszFileName: LPCSTR, - pszNewFileName: LPCSTR, - pmmioinfo: LPCMMIOINFO, - fdwRename: DWORD, - ) -> MMRESULT; -} -extern "C" { - pub fn mmioRenameW( - pszFileName: LPCWSTR, - pszNewFileName: LPCWSTR, - pmmioinfo: LPCMMIOINFO, - fdwRename: DWORD, - ) -> MMRESULT; -} -extern "C" { - pub fn mmioClose(hmmio: HMMIO, fuClose: UINT) -> MMRESULT; -} -extern "C" { - pub fn mmioRead(hmmio: HMMIO, pch: HPSTR, cch: LONG) -> LONG; -} -extern "C" { - pub fn mmioWrite(hmmio: HMMIO, pch: *const ::std::os::raw::c_char, cch: LONG) -> LONG; -} -extern "C" { - pub fn mmioSeek(hmmio: HMMIO, lOffset: LONG, iOrigin: ::std::os::raw::c_int) -> LONG; -} -extern "C" { - pub fn mmioGetInfo(hmmio: HMMIO, pmmioinfo: LPMMIOINFO, fuInfo: UINT) -> MMRESULT; -} -extern "C" { - pub fn mmioSetInfo(hmmio: HMMIO, pmmioinfo: LPCMMIOINFO, fuInfo: UINT) -> MMRESULT; -} -extern "C" { - pub fn mmioSetBuffer( - hmmio: HMMIO, - pchBuffer: LPSTR, - cchBuffer: LONG, - fuBuffer: UINT, - ) -> MMRESULT; -} -extern "C" { - pub fn mmioFlush(hmmio: HMMIO, fuFlush: UINT) -> MMRESULT; -} -extern "C" { - pub fn mmioAdvance(hmmio: HMMIO, pmmioinfo: LPMMIOINFO, fuAdvance: UINT) -> MMRESULT; -} -extern "C" { - pub fn mmioSendMessage(hmmio: HMMIO, uMsg: UINT, lParam1: LPARAM, lParam2: LPARAM) -> LRESULT; -} -extern "C" { - pub fn mmioDescend( - hmmio: HMMIO, - pmmcki: LPMMCKINFO, - pmmckiParent: *const MMCKINFO, - fuDescend: UINT, - ) -> MMRESULT; -} -extern "C" { - pub fn mmioAscend(hmmio: HMMIO, pmmcki: LPMMCKINFO, fuAscend: UINT) -> MMRESULT; -} -extern "C" { - pub fn mmioCreateChunk(hmmio: HMMIO, pmmcki: LPMMCKINFO, fuCreate: UINT) -> MMRESULT; -} -pub type LPTIMECALLBACK = ::std::option::Option< - unsafe extern "C" fn(arg1: UINT, arg2: UINT, arg3: DWORD_PTR, arg4: DWORD_PTR, arg5: DWORD_PTR), ->; -extern "C" { - pub fn timeSetEvent( - uDelay: UINT, - uResolution: UINT, - fptc: LPTIMECALLBACK, - dwUser: DWORD_PTR, - fuEvent: UINT, - ) -> MMRESULT; -} -extern "C" { - pub fn timeKillEvent(uTimerID: UINT) -> MMRESULT; -} -extern "C" { - pub fn sndPlaySoundA(pszSound: LPCSTR, fuSound: UINT) -> BOOL; -} -extern "C" { - pub fn sndPlaySoundW(pszSound: LPCWSTR, fuSound: UINT) -> BOOL; -} -extern "C" { - pub fn PlaySoundA(pszSound: LPCSTR, hmod: HMODULE, fdwSound: DWORD) -> BOOL; -} -extern "C" { - pub fn PlaySoundW(pszSound: LPCWSTR, hmod: HMODULE, fdwSound: DWORD) -> BOOL; -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct HWAVE__ { - pub unused: ::std::os::raw::c_int, -} -pub type HWAVE = *mut HWAVE__; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct HWAVEIN__ { - pub unused: ::std::os::raw::c_int, -} -pub type HWAVEIN = *mut HWAVEIN__; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct HWAVEOUT__ { - pub unused: ::std::os::raw::c_int, -} -pub type HWAVEOUT = *mut HWAVEOUT__; -pub type LPHWAVEIN = *mut HWAVEIN; -pub type LPHWAVEOUT = *mut HWAVEOUT; -pub type LPWAVECALLBACK = ::std::option::Option< - unsafe extern "C" fn( - arg1: HDRVR, - arg2: UINT, - arg3: DWORD_PTR, - arg4: DWORD_PTR, - arg5: DWORD_PTR, - ), ->; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct wavehdr_tag { - pub lpData: LPSTR, - pub dwBufferLength: DWORD, - pub dwBytesRecorded: DWORD, - pub dwUser: DWORD_PTR, - pub dwFlags: DWORD, - pub dwLoops: DWORD, - pub lpNext: *mut wavehdr_tag, - pub reserved: DWORD_PTR, -} -pub type WAVEHDR = wavehdr_tag; -pub type PWAVEHDR = *mut wavehdr_tag; -pub type NPWAVEHDR = *mut wavehdr_tag; -pub type LPWAVEHDR = *mut wavehdr_tag; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagWAVEOUTCAPSA { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [CHAR; 32usize], - pub dwFormats: DWORD, - pub wChannels: WORD, - pub wReserved1: WORD, - pub dwSupport: DWORD, -} -pub type WAVEOUTCAPSA = tagWAVEOUTCAPSA; -pub type PWAVEOUTCAPSA = *mut tagWAVEOUTCAPSA; -pub type NPWAVEOUTCAPSA = *mut tagWAVEOUTCAPSA; -pub type LPWAVEOUTCAPSA = *mut tagWAVEOUTCAPSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagWAVEOUTCAPSW { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [WCHAR; 32usize], - pub dwFormats: DWORD, - pub wChannels: WORD, - pub wReserved1: WORD, - pub dwSupport: DWORD, -} -pub type WAVEOUTCAPSW = tagWAVEOUTCAPSW; -pub type PWAVEOUTCAPSW = *mut tagWAVEOUTCAPSW; -pub type NPWAVEOUTCAPSW = *mut tagWAVEOUTCAPSW; -pub type LPWAVEOUTCAPSW = *mut tagWAVEOUTCAPSW; -pub type WAVEOUTCAPS = WAVEOUTCAPSA; -pub type PWAVEOUTCAPS = PWAVEOUTCAPSA; -pub type NPWAVEOUTCAPS = NPWAVEOUTCAPSA; -pub type LPWAVEOUTCAPS = LPWAVEOUTCAPSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagWAVEOUTCAPS2A { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [CHAR; 32usize], - pub dwFormats: DWORD, - pub wChannels: WORD, - pub wReserved1: WORD, - pub dwSupport: DWORD, - pub ManufacturerGuid: GUID, - pub ProductGuid: GUID, - pub NameGuid: GUID, -} -pub type WAVEOUTCAPS2A = tagWAVEOUTCAPS2A; -pub type PWAVEOUTCAPS2A = *mut tagWAVEOUTCAPS2A; -pub type NPWAVEOUTCAPS2A = *mut tagWAVEOUTCAPS2A; -pub type LPWAVEOUTCAPS2A = *mut tagWAVEOUTCAPS2A; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagWAVEOUTCAPS2W { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [WCHAR; 32usize], - pub dwFormats: DWORD, - pub wChannels: WORD, - pub wReserved1: WORD, - pub dwSupport: DWORD, - pub ManufacturerGuid: GUID, - pub ProductGuid: GUID, - pub NameGuid: GUID, -} -pub type WAVEOUTCAPS2W = tagWAVEOUTCAPS2W; -pub type PWAVEOUTCAPS2W = *mut tagWAVEOUTCAPS2W; -pub type NPWAVEOUTCAPS2W = *mut tagWAVEOUTCAPS2W; -pub type LPWAVEOUTCAPS2W = *mut tagWAVEOUTCAPS2W; -pub type WAVEOUTCAPS2 = WAVEOUTCAPS2A; -pub type PWAVEOUTCAPS2 = PWAVEOUTCAPS2A; -pub type NPWAVEOUTCAPS2 = NPWAVEOUTCAPS2A; -pub type LPWAVEOUTCAPS2 = LPWAVEOUTCAPS2A; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagWAVEINCAPSA { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [CHAR; 32usize], - pub dwFormats: DWORD, - pub wChannels: WORD, - pub wReserved1: WORD, -} -pub type WAVEINCAPSA = tagWAVEINCAPSA; -pub type PWAVEINCAPSA = *mut tagWAVEINCAPSA; -pub type NPWAVEINCAPSA = *mut tagWAVEINCAPSA; -pub type LPWAVEINCAPSA = *mut tagWAVEINCAPSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagWAVEINCAPSW { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [WCHAR; 32usize], - pub dwFormats: DWORD, - pub wChannels: WORD, - pub wReserved1: WORD, -} -pub type WAVEINCAPSW = tagWAVEINCAPSW; -pub type PWAVEINCAPSW = *mut tagWAVEINCAPSW; -pub type NPWAVEINCAPSW = *mut tagWAVEINCAPSW; -pub type LPWAVEINCAPSW = *mut tagWAVEINCAPSW; -pub type WAVEINCAPS = WAVEINCAPSA; -pub type PWAVEINCAPS = PWAVEINCAPSA; -pub type NPWAVEINCAPS = NPWAVEINCAPSA; -pub type LPWAVEINCAPS = LPWAVEINCAPSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagWAVEINCAPS2A { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [CHAR; 32usize], - pub dwFormats: DWORD, - pub wChannels: WORD, - pub wReserved1: WORD, - pub ManufacturerGuid: GUID, - pub ProductGuid: GUID, - pub NameGuid: GUID, -} -pub type WAVEINCAPS2A = tagWAVEINCAPS2A; -pub type PWAVEINCAPS2A = *mut tagWAVEINCAPS2A; -pub type NPWAVEINCAPS2A = *mut tagWAVEINCAPS2A; -pub type LPWAVEINCAPS2A = *mut tagWAVEINCAPS2A; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagWAVEINCAPS2W { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [WCHAR; 32usize], - pub dwFormats: DWORD, - pub wChannels: WORD, - pub wReserved1: WORD, - pub ManufacturerGuid: GUID, - pub ProductGuid: GUID, - pub NameGuid: GUID, -} -pub type WAVEINCAPS2W = tagWAVEINCAPS2W; -pub type PWAVEINCAPS2W = *mut tagWAVEINCAPS2W; -pub type NPWAVEINCAPS2W = *mut tagWAVEINCAPS2W; -pub type LPWAVEINCAPS2W = *mut tagWAVEINCAPS2W; -pub type WAVEINCAPS2 = WAVEINCAPS2A; -pub type PWAVEINCAPS2 = PWAVEINCAPS2A; -pub type NPWAVEINCAPS2 = NPWAVEINCAPS2A; -pub type LPWAVEINCAPS2 = LPWAVEINCAPS2A; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct waveformat_tag { - pub wFormatTag: WORD, - pub nChannels: WORD, - pub nSamplesPerSec: DWORD, - pub nAvgBytesPerSec: DWORD, - pub nBlockAlign: WORD, -} -pub type WAVEFORMAT = waveformat_tag; -pub type PWAVEFORMAT = *mut waveformat_tag; -pub type NPWAVEFORMAT = *mut waveformat_tag; -pub type LPWAVEFORMAT = *mut waveformat_tag; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct pcmwaveformat_tag { - pub wf: WAVEFORMAT, - pub wBitsPerSample: WORD, -} -pub type PCMWAVEFORMAT = pcmwaveformat_tag; -pub type PPCMWAVEFORMAT = *mut pcmwaveformat_tag; -pub type NPPCMWAVEFORMAT = *mut pcmwaveformat_tag; -pub type LPPCMWAVEFORMAT = *mut pcmwaveformat_tag; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tWAVEFORMATEX { - pub wFormatTag: WORD, - pub nChannels: WORD, - pub nSamplesPerSec: DWORD, - pub nAvgBytesPerSec: DWORD, - pub nBlockAlign: WORD, - pub wBitsPerSample: WORD, - pub cbSize: WORD, -} -pub type WAVEFORMATEX = tWAVEFORMATEX; -pub type PWAVEFORMATEX = *mut tWAVEFORMATEX; -pub type NPWAVEFORMATEX = *mut tWAVEFORMATEX; -pub type LPWAVEFORMATEX = *mut tWAVEFORMATEX; -pub type LPCWAVEFORMATEX = *const WAVEFORMATEX; -extern "C" { - pub fn waveOutGetNumDevs() -> UINT; -} -extern "C" { - pub fn waveOutGetDevCapsA(uDeviceID: UINT_PTR, pwoc: LPWAVEOUTCAPSA, cbwoc: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveOutGetDevCapsW(uDeviceID: UINT_PTR, pwoc: LPWAVEOUTCAPSW, cbwoc: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveOutGetVolume(hwo: HWAVEOUT, pdwVolume: LPDWORD) -> MMRESULT; -} -extern "C" { - pub fn waveOutSetVolume(hwo: HWAVEOUT, dwVolume: DWORD) -> MMRESULT; -} -extern "C" { - pub fn waveOutGetErrorTextA(mmrError: MMRESULT, pszText: LPSTR, cchText: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveOutGetErrorTextW(mmrError: MMRESULT, pszText: LPWSTR, cchText: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveOutOpen( - phwo: LPHWAVEOUT, - uDeviceID: UINT, - pwfx: LPCWAVEFORMATEX, - dwCallback: DWORD_PTR, - dwInstance: DWORD_PTR, - fdwOpen: DWORD, - ) -> MMRESULT; -} -extern "C" { - pub fn waveOutClose(hwo: HWAVEOUT) -> MMRESULT; -} -extern "C" { - pub fn waveOutPrepareHeader(hwo: HWAVEOUT, pwh: LPWAVEHDR, cbwh: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveOutUnprepareHeader(hwo: HWAVEOUT, pwh: LPWAVEHDR, cbwh: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveOutWrite(hwo: HWAVEOUT, pwh: LPWAVEHDR, cbwh: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveOutPause(hwo: HWAVEOUT) -> MMRESULT; -} -extern "C" { - pub fn waveOutRestart(hwo: HWAVEOUT) -> MMRESULT; -} -extern "C" { - pub fn waveOutReset(hwo: HWAVEOUT) -> MMRESULT; -} -extern "C" { - pub fn waveOutBreakLoop(hwo: HWAVEOUT) -> MMRESULT; -} -extern "C" { - pub fn waveOutGetPosition(hwo: HWAVEOUT, pmmt: LPMMTIME, cbmmt: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveOutGetPitch(hwo: HWAVEOUT, pdwPitch: LPDWORD) -> MMRESULT; -} -extern "C" { - pub fn waveOutSetPitch(hwo: HWAVEOUT, dwPitch: DWORD) -> MMRESULT; -} -extern "C" { - pub fn waveOutGetPlaybackRate(hwo: HWAVEOUT, pdwRate: LPDWORD) -> MMRESULT; -} -extern "C" { - pub fn waveOutSetPlaybackRate(hwo: HWAVEOUT, dwRate: DWORD) -> MMRESULT; -} -extern "C" { - pub fn waveOutGetID(hwo: HWAVEOUT, puDeviceID: LPUINT) -> MMRESULT; -} -extern "C" { - pub fn waveOutMessage(hwo: HWAVEOUT, uMsg: UINT, dw1: DWORD_PTR, dw2: DWORD_PTR) -> MMRESULT; -} -extern "C" { - pub fn waveInGetNumDevs() -> UINT; -} -extern "C" { - pub fn waveInGetDevCapsA(uDeviceID: UINT_PTR, pwic: LPWAVEINCAPSA, cbwic: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveInGetDevCapsW(uDeviceID: UINT_PTR, pwic: LPWAVEINCAPSW, cbwic: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveInGetErrorTextA(mmrError: MMRESULT, pszText: LPSTR, cchText: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveInGetErrorTextW(mmrError: MMRESULT, pszText: LPWSTR, cchText: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveInOpen( - phwi: LPHWAVEIN, - uDeviceID: UINT, - pwfx: LPCWAVEFORMATEX, - dwCallback: DWORD_PTR, - dwInstance: DWORD_PTR, - fdwOpen: DWORD, - ) -> MMRESULT; -} -extern "C" { - pub fn waveInClose(hwi: HWAVEIN) -> MMRESULT; -} -extern "C" { - pub fn waveInPrepareHeader(hwi: HWAVEIN, pwh: LPWAVEHDR, cbwh: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveInUnprepareHeader(hwi: HWAVEIN, pwh: LPWAVEHDR, cbwh: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveInAddBuffer(hwi: HWAVEIN, pwh: LPWAVEHDR, cbwh: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveInStart(hwi: HWAVEIN) -> MMRESULT; -} -extern "C" { - pub fn waveInStop(hwi: HWAVEIN) -> MMRESULT; -} -extern "C" { - pub fn waveInReset(hwi: HWAVEIN) -> MMRESULT; -} -extern "C" { - pub fn waveInGetPosition(hwi: HWAVEIN, pmmt: LPMMTIME, cbmmt: UINT) -> MMRESULT; -} -extern "C" { - pub fn waveInGetID(hwi: HWAVEIN, puDeviceID: LPUINT) -> MMRESULT; -} -extern "C" { - pub fn waveInMessage(hwi: HWAVEIN, uMsg: UINT, dw1: DWORD_PTR, dw2: DWORD_PTR) -> MMRESULT; -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct HMIDI__ { - pub unused: ::std::os::raw::c_int, -} -pub type HMIDI = *mut HMIDI__; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct HMIDIIN__ { - pub unused: ::std::os::raw::c_int, -} -pub type HMIDIIN = *mut HMIDIIN__; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct HMIDIOUT__ { - pub unused: ::std::os::raw::c_int, -} -pub type HMIDIOUT = *mut HMIDIOUT__; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct HMIDISTRM__ { - pub unused: ::std::os::raw::c_int, -} -pub type HMIDISTRM = *mut HMIDISTRM__; -pub type LPHMIDI = *mut HMIDI; -pub type LPHMIDIIN = *mut HMIDIIN; -pub type LPHMIDIOUT = *mut HMIDIOUT; -pub type LPHMIDISTRM = *mut HMIDISTRM; -pub type LPMIDICALLBACK = ::std::option::Option< - unsafe extern "C" fn( - arg1: HDRVR, - arg2: UINT, - arg3: DWORD_PTR, - arg4: DWORD_PTR, - arg5: DWORD_PTR, - ), ->; -pub type PATCHARRAY = [WORD; 128usize]; -pub type LPPATCHARRAY = *mut WORD; -pub type KEYARRAY = [WORD; 128usize]; -pub type LPKEYARRAY = *mut WORD; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIDIOUTCAPSA { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [CHAR; 32usize], - pub wTechnology: WORD, - pub wVoices: WORD, - pub wNotes: WORD, - pub wChannelMask: WORD, - pub dwSupport: DWORD, -} -pub type MIDIOUTCAPSA = tagMIDIOUTCAPSA; -pub type PMIDIOUTCAPSA = *mut tagMIDIOUTCAPSA; -pub type NPMIDIOUTCAPSA = *mut tagMIDIOUTCAPSA; -pub type LPMIDIOUTCAPSA = *mut tagMIDIOUTCAPSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIDIOUTCAPSW { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [WCHAR; 32usize], - pub wTechnology: WORD, - pub wVoices: WORD, - pub wNotes: WORD, - pub wChannelMask: WORD, - pub dwSupport: DWORD, -} -pub type MIDIOUTCAPSW = tagMIDIOUTCAPSW; -pub type PMIDIOUTCAPSW = *mut tagMIDIOUTCAPSW; -pub type NPMIDIOUTCAPSW = *mut tagMIDIOUTCAPSW; -pub type LPMIDIOUTCAPSW = *mut tagMIDIOUTCAPSW; -pub type MIDIOUTCAPS = MIDIOUTCAPSA; -pub type PMIDIOUTCAPS = PMIDIOUTCAPSA; -pub type NPMIDIOUTCAPS = NPMIDIOUTCAPSA; -pub type LPMIDIOUTCAPS = LPMIDIOUTCAPSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIDIOUTCAPS2A { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [CHAR; 32usize], - pub wTechnology: WORD, - pub wVoices: WORD, - pub wNotes: WORD, - pub wChannelMask: WORD, - pub dwSupport: DWORD, - pub ManufacturerGuid: GUID, - pub ProductGuid: GUID, - pub NameGuid: GUID, -} -pub type MIDIOUTCAPS2A = tagMIDIOUTCAPS2A; -pub type PMIDIOUTCAPS2A = *mut tagMIDIOUTCAPS2A; -pub type NPMIDIOUTCAPS2A = *mut tagMIDIOUTCAPS2A; -pub type LPMIDIOUTCAPS2A = *mut tagMIDIOUTCAPS2A; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIDIOUTCAPS2W { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [WCHAR; 32usize], - pub wTechnology: WORD, - pub wVoices: WORD, - pub wNotes: WORD, - pub wChannelMask: WORD, - pub dwSupport: DWORD, - pub ManufacturerGuid: GUID, - pub ProductGuid: GUID, - pub NameGuid: GUID, -} -pub type MIDIOUTCAPS2W = tagMIDIOUTCAPS2W; -pub type PMIDIOUTCAPS2W = *mut tagMIDIOUTCAPS2W; -pub type NPMIDIOUTCAPS2W = *mut tagMIDIOUTCAPS2W; -pub type LPMIDIOUTCAPS2W = *mut tagMIDIOUTCAPS2W; -pub type MIDIOUTCAPS2 = MIDIOUTCAPS2A; -pub type PMIDIOUTCAPS2 = PMIDIOUTCAPS2A; -pub type NPMIDIOUTCAPS2 = NPMIDIOUTCAPS2A; -pub type LPMIDIOUTCAPS2 = LPMIDIOUTCAPS2A; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIDIINCAPSA { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [CHAR; 32usize], - pub dwSupport: DWORD, -} -pub type MIDIINCAPSA = tagMIDIINCAPSA; -pub type PMIDIINCAPSA = *mut tagMIDIINCAPSA; -pub type NPMIDIINCAPSA = *mut tagMIDIINCAPSA; -pub type LPMIDIINCAPSA = *mut tagMIDIINCAPSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIDIINCAPSW { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [WCHAR; 32usize], - pub dwSupport: DWORD, -} -pub type MIDIINCAPSW = tagMIDIINCAPSW; -pub type PMIDIINCAPSW = *mut tagMIDIINCAPSW; -pub type NPMIDIINCAPSW = *mut tagMIDIINCAPSW; -pub type LPMIDIINCAPSW = *mut tagMIDIINCAPSW; -pub type MIDIINCAPS = MIDIINCAPSA; -pub type PMIDIINCAPS = PMIDIINCAPSA; -pub type NPMIDIINCAPS = NPMIDIINCAPSA; -pub type LPMIDIINCAPS = LPMIDIINCAPSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIDIINCAPS2A { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [CHAR; 32usize], - pub dwSupport: DWORD, - pub ManufacturerGuid: GUID, - pub ProductGuid: GUID, - pub NameGuid: GUID, -} -pub type MIDIINCAPS2A = tagMIDIINCAPS2A; -pub type PMIDIINCAPS2A = *mut tagMIDIINCAPS2A; -pub type NPMIDIINCAPS2A = *mut tagMIDIINCAPS2A; -pub type LPMIDIINCAPS2A = *mut tagMIDIINCAPS2A; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIDIINCAPS2W { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [WCHAR; 32usize], - pub dwSupport: DWORD, - pub ManufacturerGuid: GUID, - pub ProductGuid: GUID, - pub NameGuid: GUID, -} -pub type MIDIINCAPS2W = tagMIDIINCAPS2W; -pub type PMIDIINCAPS2W = *mut tagMIDIINCAPS2W; -pub type NPMIDIINCAPS2W = *mut tagMIDIINCAPS2W; -pub type LPMIDIINCAPS2W = *mut tagMIDIINCAPS2W; -pub type MIDIINCAPS2 = MIDIINCAPS2A; -pub type PMIDIINCAPS2 = PMIDIINCAPS2A; -pub type NPMIDIINCAPS2 = NPMIDIINCAPS2A; -pub type LPMIDIINCAPS2 = LPMIDIINCAPS2A; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct midihdr_tag { - pub lpData: LPSTR, - pub dwBufferLength: DWORD, - pub dwBytesRecorded: DWORD, - pub dwUser: DWORD_PTR, - pub dwFlags: DWORD, - pub lpNext: *mut midihdr_tag, - pub reserved: DWORD_PTR, - pub dwOffset: DWORD, - pub dwReserved: [DWORD_PTR; 8usize], -} -pub type MIDIHDR = midihdr_tag; -pub type PMIDIHDR = *mut midihdr_tag; -pub type NPMIDIHDR = *mut midihdr_tag; -pub type LPMIDIHDR = *mut midihdr_tag; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct midievent_tag { - pub dwDeltaTime: DWORD, - pub dwStreamID: DWORD, - pub dwEvent: DWORD, - pub dwParms: [DWORD; 1usize], -} -pub type MIDIEVENT = midievent_tag; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct midistrmbuffver_tag { - pub dwVersion: DWORD, - pub dwMid: DWORD, - pub dwOEMVersion: DWORD, -} -pub type MIDISTRMBUFFVER = midistrmbuffver_tag; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct midiproptimediv_tag { - pub cbStruct: DWORD, - pub dwTimeDiv: DWORD, -} -pub type MIDIPROPTIMEDIV = midiproptimediv_tag; -pub type LPMIDIPROPTIMEDIV = *mut midiproptimediv_tag; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct midiproptempo_tag { - pub cbStruct: DWORD, - pub dwTempo: DWORD, -} -pub type MIDIPROPTEMPO = midiproptempo_tag; -pub type LPMIDIPROPTEMPO = *mut midiproptempo_tag; -extern "C" { - pub fn midiOutGetNumDevs() -> UINT; -} -extern "C" { - pub fn midiStreamOpen( - phms: LPHMIDISTRM, - puDeviceID: LPUINT, - cMidi: DWORD, - dwCallback: DWORD_PTR, - dwInstance: DWORD_PTR, - fdwOpen: DWORD, - ) -> MMRESULT; -} -extern "C" { - pub fn midiStreamClose(hms: HMIDISTRM) -> MMRESULT; -} -extern "C" { - pub fn midiStreamProperty(hms: HMIDISTRM, lppropdata: LPBYTE, dwProperty: DWORD) -> MMRESULT; -} -extern "C" { - pub fn midiStreamPosition(hms: HMIDISTRM, lpmmt: LPMMTIME, cbmmt: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiStreamOut(hms: HMIDISTRM, pmh: LPMIDIHDR, cbmh: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiStreamPause(hms: HMIDISTRM) -> MMRESULT; -} -extern "C" { - pub fn midiStreamRestart(hms: HMIDISTRM) -> MMRESULT; -} -extern "C" { - pub fn midiStreamStop(hms: HMIDISTRM) -> MMRESULT; -} -extern "C" { - pub fn midiConnect(hmi: HMIDI, hmo: HMIDIOUT, pReserved: LPVOID) -> MMRESULT; -} -extern "C" { - pub fn midiDisconnect(hmi: HMIDI, hmo: HMIDIOUT, pReserved: LPVOID) -> MMRESULT; -} -extern "C" { - pub fn midiOutGetDevCapsA(uDeviceID: UINT_PTR, pmoc: LPMIDIOUTCAPSA, cbmoc: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiOutGetDevCapsW(uDeviceID: UINT_PTR, pmoc: LPMIDIOUTCAPSW, cbmoc: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiOutGetVolume(hmo: HMIDIOUT, pdwVolume: LPDWORD) -> MMRESULT; -} -extern "C" { - pub fn midiOutSetVolume(hmo: HMIDIOUT, dwVolume: DWORD) -> MMRESULT; -} -extern "C" { - pub fn midiOutGetErrorTextA(mmrError: MMRESULT, pszText: LPSTR, cchText: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiOutGetErrorTextW(mmrError: MMRESULT, pszText: LPWSTR, cchText: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiOutOpen( - phmo: LPHMIDIOUT, - uDeviceID: UINT, - dwCallback: DWORD_PTR, - dwInstance: DWORD_PTR, - fdwOpen: DWORD, - ) -> MMRESULT; -} -extern "C" { - pub fn midiOutClose(hmo: HMIDIOUT) -> MMRESULT; -} -extern "C" { - pub fn midiOutPrepareHeader(hmo: HMIDIOUT, pmh: LPMIDIHDR, cbmh: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiOutUnprepareHeader(hmo: HMIDIOUT, pmh: LPMIDIHDR, cbmh: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiOutShortMsg(hmo: HMIDIOUT, dwMsg: DWORD) -> MMRESULT; -} -extern "C" { - pub fn midiOutLongMsg(hmo: HMIDIOUT, pmh: LPMIDIHDR, cbmh: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiOutReset(hmo: HMIDIOUT) -> MMRESULT; -} -extern "C" { - pub fn midiOutCachePatches(hmo: HMIDIOUT, uBank: UINT, pwpa: LPWORD, fuCache: UINT) - -> MMRESULT; -} -extern "C" { - pub fn midiOutCacheDrumPatches( - hmo: HMIDIOUT, - uPatch: UINT, - pwkya: LPWORD, - fuCache: UINT, - ) -> MMRESULT; -} -extern "C" { - pub fn midiOutGetID(hmo: HMIDIOUT, puDeviceID: LPUINT) -> MMRESULT; -} -extern "C" { - pub fn midiOutMessage(hmo: HMIDIOUT, uMsg: UINT, dw1: DWORD_PTR, dw2: DWORD_PTR) -> MMRESULT; -} -extern "C" { - pub fn midiInGetNumDevs() -> UINT; -} -extern "C" { - pub fn midiInGetDevCapsA(uDeviceID: UINT_PTR, pmic: LPMIDIINCAPSA, cbmic: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiInGetDevCapsW(uDeviceID: UINT_PTR, pmic: LPMIDIINCAPSW, cbmic: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiInGetErrorTextA(mmrError: MMRESULT, pszText: LPSTR, cchText: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiInGetErrorTextW(mmrError: MMRESULT, pszText: LPWSTR, cchText: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiInOpen( - phmi: LPHMIDIIN, - uDeviceID: UINT, - dwCallback: DWORD_PTR, - dwInstance: DWORD_PTR, - fdwOpen: DWORD, - ) -> MMRESULT; -} -extern "C" { - pub fn midiInClose(hmi: HMIDIIN) -> MMRESULT; -} -extern "C" { - pub fn midiInPrepareHeader(hmi: HMIDIIN, pmh: LPMIDIHDR, cbmh: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiInUnprepareHeader(hmi: HMIDIIN, pmh: LPMIDIHDR, cbmh: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiInAddBuffer(hmi: HMIDIIN, pmh: LPMIDIHDR, cbmh: UINT) -> MMRESULT; -} -extern "C" { - pub fn midiInStart(hmi: HMIDIIN) -> MMRESULT; -} -extern "C" { - pub fn midiInStop(hmi: HMIDIIN) -> MMRESULT; -} -extern "C" { - pub fn midiInReset(hmi: HMIDIIN) -> MMRESULT; -} -extern "C" { - pub fn midiInGetID(hmi: HMIDIIN, puDeviceID: LPUINT) -> MMRESULT; -} -extern "C" { - pub fn midiInMessage(hmi: HMIDIIN, uMsg: UINT, dw1: DWORD_PTR, dw2: DWORD_PTR) -> MMRESULT; -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagAUXCAPSA { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [CHAR; 32usize], - pub wTechnology: WORD, - pub wReserved1: WORD, - pub dwSupport: DWORD, -} -pub type AUXCAPSA = tagAUXCAPSA; -pub type PAUXCAPSA = *mut tagAUXCAPSA; -pub type NPAUXCAPSA = *mut tagAUXCAPSA; -pub type LPAUXCAPSA = *mut tagAUXCAPSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagAUXCAPSW { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [WCHAR; 32usize], - pub wTechnology: WORD, - pub wReserved1: WORD, - pub dwSupport: DWORD, -} -pub type AUXCAPSW = tagAUXCAPSW; -pub type PAUXCAPSW = *mut tagAUXCAPSW; -pub type NPAUXCAPSW = *mut tagAUXCAPSW; -pub type LPAUXCAPSW = *mut tagAUXCAPSW; -pub type AUXCAPS = AUXCAPSA; -pub type PAUXCAPS = PAUXCAPSA; -pub type NPAUXCAPS = NPAUXCAPSA; -pub type LPAUXCAPS = LPAUXCAPSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagAUXCAPS2A { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [CHAR; 32usize], - pub wTechnology: WORD, - pub wReserved1: WORD, - pub dwSupport: DWORD, - pub ManufacturerGuid: GUID, - pub ProductGuid: GUID, - pub NameGuid: GUID, -} -pub type AUXCAPS2A = tagAUXCAPS2A; -pub type PAUXCAPS2A = *mut tagAUXCAPS2A; -pub type NPAUXCAPS2A = *mut tagAUXCAPS2A; -pub type LPAUXCAPS2A = *mut tagAUXCAPS2A; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagAUXCAPS2W { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [WCHAR; 32usize], - pub wTechnology: WORD, - pub wReserved1: WORD, - pub dwSupport: DWORD, - pub ManufacturerGuid: GUID, - pub ProductGuid: GUID, - pub NameGuid: GUID, -} -pub type AUXCAPS2W = tagAUXCAPS2W; -pub type PAUXCAPS2W = *mut tagAUXCAPS2W; -pub type NPAUXCAPS2W = *mut tagAUXCAPS2W; -pub type LPAUXCAPS2W = *mut tagAUXCAPS2W; -pub type AUXCAPS2 = AUXCAPS2A; -pub type PAUXCAPS2 = PAUXCAPS2A; -pub type NPAUXCAPS2 = NPAUXCAPS2A; -pub type LPAUXCAPS2 = LPAUXCAPS2A; -extern "C" { - pub fn auxGetNumDevs() -> UINT; -} -extern "C" { - pub fn auxGetDevCapsA(uDeviceID: UINT_PTR, pac: LPAUXCAPSA, cbac: UINT) -> MMRESULT; -} -extern "C" { - pub fn auxGetDevCapsW(uDeviceID: UINT_PTR, pac: LPAUXCAPSW, cbac: UINT) -> MMRESULT; -} -extern "C" { - pub fn auxSetVolume(uDeviceID: UINT, dwVolume: DWORD) -> MMRESULT; -} -extern "C" { - pub fn auxGetVolume(uDeviceID: UINT, pdwVolume: LPDWORD) -> MMRESULT; -} -extern "C" { - pub fn auxOutMessage(uDeviceID: UINT, uMsg: UINT, dw1: DWORD_PTR, dw2: DWORD_PTR) -> MMRESULT; -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct HMIXEROBJ__ { - pub unused: ::std::os::raw::c_int, -} -pub type HMIXEROBJ = *mut HMIXEROBJ__; -pub type LPHMIXEROBJ = *mut HMIXEROBJ; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct HMIXER__ { - pub unused: ::std::os::raw::c_int, -} -pub type HMIXER = *mut HMIXER__; -pub type LPHMIXER = *mut HMIXER; -extern "C" { - pub fn mixerGetNumDevs() -> UINT; -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIXERCAPSA { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [CHAR; 32usize], - pub fdwSupport: DWORD, - pub cDestinations: DWORD, -} -pub type MIXERCAPSA = tagMIXERCAPSA; -pub type PMIXERCAPSA = *mut tagMIXERCAPSA; -pub type LPMIXERCAPSA = *mut tagMIXERCAPSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIXERCAPSW { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [WCHAR; 32usize], - pub fdwSupport: DWORD, - pub cDestinations: DWORD, -} -pub type MIXERCAPSW = tagMIXERCAPSW; -pub type PMIXERCAPSW = *mut tagMIXERCAPSW; -pub type LPMIXERCAPSW = *mut tagMIXERCAPSW; -pub type MIXERCAPS = MIXERCAPSA; -pub type PMIXERCAPS = PMIXERCAPSA; -pub type LPMIXERCAPS = LPMIXERCAPSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIXERCAPS2A { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [CHAR; 32usize], - pub fdwSupport: DWORD, - pub cDestinations: DWORD, - pub ManufacturerGuid: GUID, - pub ProductGuid: GUID, - pub NameGuid: GUID, -} -pub type MIXERCAPS2A = tagMIXERCAPS2A; -pub type PMIXERCAPS2A = *mut tagMIXERCAPS2A; -pub type LPMIXERCAPS2A = *mut tagMIXERCAPS2A; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIXERCAPS2W { - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [WCHAR; 32usize], - pub fdwSupport: DWORD, - pub cDestinations: DWORD, - pub ManufacturerGuid: GUID, - pub ProductGuid: GUID, - pub NameGuid: GUID, -} -pub type MIXERCAPS2W = tagMIXERCAPS2W; -pub type PMIXERCAPS2W = *mut tagMIXERCAPS2W; -pub type LPMIXERCAPS2W = *mut tagMIXERCAPS2W; -pub type MIXERCAPS2 = MIXERCAPS2A; -pub type PMIXERCAPS2 = PMIXERCAPS2A; -pub type LPMIXERCAPS2 = LPMIXERCAPS2A; -extern "C" { - pub fn mixerGetDevCapsA(uMxId: UINT_PTR, pmxcaps: LPMIXERCAPSA, cbmxcaps: UINT) -> MMRESULT; -} -extern "C" { - pub fn mixerGetDevCapsW(uMxId: UINT_PTR, pmxcaps: LPMIXERCAPSW, cbmxcaps: UINT) -> MMRESULT; -} -extern "C" { - pub fn mixerOpen( - phmx: LPHMIXER, - uMxId: UINT, - dwCallback: DWORD_PTR, - dwInstance: DWORD_PTR, - fdwOpen: DWORD, - ) -> MMRESULT; -} -extern "C" { - pub fn mixerClose(hmx: HMIXER) -> MMRESULT; -} -extern "C" { - pub fn mixerMessage(hmx: HMIXER, uMsg: UINT, dwParam1: DWORD_PTR, dwParam2: DWORD_PTR) - -> DWORD; -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIXERLINEA { - pub cbStruct: DWORD, - pub dwDestination: DWORD, - pub dwSource: DWORD, - pub dwLineID: DWORD, - pub fdwLine: DWORD, - pub dwUser: DWORD_PTR, - pub dwComponentType: DWORD, - pub cChannels: DWORD, - pub cConnections: DWORD, - pub cControls: DWORD, - pub szShortName: [CHAR; 16usize], - pub szName: [CHAR; 64usize], - pub Target: tagMIXERLINEA__bindgen_ty_1, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIXERLINEA__bindgen_ty_1 { - pub dwType: DWORD, - pub dwDeviceID: DWORD, - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [CHAR; 32usize], -} -pub type MIXERLINEA = tagMIXERLINEA; -pub type PMIXERLINEA = *mut tagMIXERLINEA; -pub type LPMIXERLINEA = *mut tagMIXERLINEA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIXERLINEW { - pub cbStruct: DWORD, - pub dwDestination: DWORD, - pub dwSource: DWORD, - pub dwLineID: DWORD, - pub fdwLine: DWORD, - pub dwUser: DWORD_PTR, - pub dwComponentType: DWORD, - pub cChannels: DWORD, - pub cConnections: DWORD, - pub cControls: DWORD, - pub szShortName: [WCHAR; 16usize], - pub szName: [WCHAR; 64usize], - pub Target: tagMIXERLINEW__bindgen_ty_1, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIXERLINEW__bindgen_ty_1 { - pub dwType: DWORD, - pub dwDeviceID: DWORD, - pub wMid: WORD, - pub wPid: WORD, - pub vDriverVersion: MMVERSION, - pub szPname: [WCHAR; 32usize], -} -pub type MIXERLINEW = tagMIXERLINEW; -pub type PMIXERLINEW = *mut tagMIXERLINEW; -pub type LPMIXERLINEW = *mut tagMIXERLINEW; -pub type MIXERLINE = MIXERLINEA; -pub type PMIXERLINE = PMIXERLINEA; -pub type LPMIXERLINE = LPMIXERLINEA; -extern "C" { - pub fn mixerGetLineInfoA(hmxobj: HMIXEROBJ, pmxl: LPMIXERLINEA, fdwInfo: DWORD) -> MMRESULT; -} -extern "C" { - pub fn mixerGetLineInfoW(hmxobj: HMIXEROBJ, pmxl: LPMIXERLINEW, fdwInfo: DWORD) -> MMRESULT; -} -extern "C" { - pub fn mixerGetID(hmxobj: HMIXEROBJ, puMxId: *mut UINT, fdwId: DWORD) -> MMRESULT; -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct tagMIXERCONTROLA { - pub cbStruct: DWORD, - pub dwControlID: DWORD, - pub dwControlType: DWORD, - pub fdwControl: DWORD, - pub cMultipleItems: DWORD, - pub szShortName: [CHAR; 16usize], - pub szName: [CHAR; 64usize], - pub Bounds: tagMIXERCONTROLA__bindgen_ty_1, - pub Metrics: tagMIXERCONTROLA__bindgen_ty_2, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union tagMIXERCONTROLA__bindgen_ty_1 { - pub __bindgen_anon_1: tagMIXERCONTROLA__bindgen_ty_1__bindgen_ty_1, - pub __bindgen_anon_2: tagMIXERCONTROLA__bindgen_ty_1__bindgen_ty_2, - pub dwReserved: [DWORD; 6usize], -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIXERCONTROLA__bindgen_ty_1__bindgen_ty_1 { - pub lMinimum: LONG, - pub lMaximum: LONG, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIXERCONTROLA__bindgen_ty_1__bindgen_ty_2 { - pub dwMinimum: DWORD, - pub dwMaximum: DWORD, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union tagMIXERCONTROLA__bindgen_ty_2 { - pub cSteps: DWORD, - pub cbCustomData: DWORD, - pub dwReserved: [DWORD; 6usize], -} -pub type MIXERCONTROLA = tagMIXERCONTROLA; -pub type PMIXERCONTROLA = *mut tagMIXERCONTROLA; -pub type LPMIXERCONTROLA = *mut tagMIXERCONTROLA; -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct tagMIXERCONTROLW { - pub cbStruct: DWORD, - pub dwControlID: DWORD, - pub dwControlType: DWORD, - pub fdwControl: DWORD, - pub cMultipleItems: DWORD, - pub szShortName: [WCHAR; 16usize], - pub szName: [WCHAR; 64usize], - pub Bounds: tagMIXERCONTROLW__bindgen_ty_1, - pub Metrics: tagMIXERCONTROLW__bindgen_ty_2, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union tagMIXERCONTROLW__bindgen_ty_1 { - pub __bindgen_anon_1: tagMIXERCONTROLW__bindgen_ty_1__bindgen_ty_1, - pub __bindgen_anon_2: tagMIXERCONTROLW__bindgen_ty_1__bindgen_ty_2, - pub dwReserved: [DWORD; 6usize], -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIXERCONTROLW__bindgen_ty_1__bindgen_ty_1 { - pub lMinimum: LONG, - pub lMaximum: LONG, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIXERCONTROLW__bindgen_ty_1__bindgen_ty_2 { - pub dwMinimum: DWORD, - pub dwMaximum: DWORD, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union tagMIXERCONTROLW__bindgen_ty_2 { - pub cSteps: DWORD, - pub cbCustomData: DWORD, - pub dwReserved: [DWORD; 6usize], -} -pub type MIXERCONTROLW = tagMIXERCONTROLW; -pub type PMIXERCONTROLW = *mut tagMIXERCONTROLW; -pub type LPMIXERCONTROLW = *mut tagMIXERCONTROLW; -pub type MIXERCONTROL = MIXERCONTROLA; -pub type PMIXERCONTROL = PMIXERCONTROLA; -pub type LPMIXERCONTROL = LPMIXERCONTROLA; -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct tagMIXERLINECONTROLSA { - pub cbStruct: DWORD, - pub dwLineID: DWORD, - pub __bindgen_anon_1: tagMIXERLINECONTROLSA__bindgen_ty_1, - pub cControls: DWORD, - pub cbmxctrl: DWORD, - pub pamxctrl: LPMIXERCONTROLA, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union tagMIXERLINECONTROLSA__bindgen_ty_1 { - pub dwControlID: DWORD, - pub dwControlType: DWORD, -} -pub type MIXERLINECONTROLSA = tagMIXERLINECONTROLSA; -pub type PMIXERLINECONTROLSA = *mut tagMIXERLINECONTROLSA; -pub type LPMIXERLINECONTROLSA = *mut tagMIXERLINECONTROLSA; -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct tagMIXERLINECONTROLSW { - pub cbStruct: DWORD, - pub dwLineID: DWORD, - pub __bindgen_anon_1: tagMIXERLINECONTROLSW__bindgen_ty_1, - pub cControls: DWORD, - pub cbmxctrl: DWORD, - pub pamxctrl: LPMIXERCONTROLW, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union tagMIXERLINECONTROLSW__bindgen_ty_1 { - pub dwControlID: DWORD, - pub dwControlType: DWORD, -} -pub type MIXERLINECONTROLSW = tagMIXERLINECONTROLSW; -pub type PMIXERLINECONTROLSW = *mut tagMIXERLINECONTROLSW; -pub type LPMIXERLINECONTROLSW = *mut tagMIXERLINECONTROLSW; -pub type MIXERLINECONTROLS = MIXERLINECONTROLSA; -pub type PMIXERLINECONTROLS = PMIXERLINECONTROLSA; -pub type LPMIXERLINECONTROLS = LPMIXERLINECONTROLSA; -extern "C" { - pub fn mixerGetLineControlsA( - hmxobj: HMIXEROBJ, - pmxlc: LPMIXERLINECONTROLSA, - fdwControls: DWORD, - ) -> MMRESULT; -} -extern "C" { - pub fn mixerGetLineControlsW( - hmxobj: HMIXEROBJ, - pmxlc: LPMIXERLINECONTROLSW, - fdwControls: DWORD, - ) -> MMRESULT; -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct tMIXERCONTROLDETAILS { - pub cbStruct: DWORD, - pub dwControlID: DWORD, - pub cChannels: DWORD, - pub __bindgen_anon_1: tMIXERCONTROLDETAILS__bindgen_ty_1, - pub cbDetails: DWORD, - pub paDetails: LPVOID, -} -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub union tMIXERCONTROLDETAILS__bindgen_ty_1 { - pub hwndOwner: HWND, - pub cMultipleItems: DWORD, -} -pub type MIXERCONTROLDETAILS = tMIXERCONTROLDETAILS; -pub type PMIXERCONTROLDETAILS = *mut tMIXERCONTROLDETAILS; -pub type LPMIXERCONTROLDETAILS = *mut tMIXERCONTROLDETAILS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIXERCONTROLDETAILS_LISTTEXTA { - pub dwParam1: DWORD, - pub dwParam2: DWORD, - pub szName: [CHAR; 64usize], -} -pub type MIXERCONTROLDETAILS_LISTTEXTA = tagMIXERCONTROLDETAILS_LISTTEXTA; -pub type PMIXERCONTROLDETAILS_LISTTEXTA = *mut tagMIXERCONTROLDETAILS_LISTTEXTA; -pub type LPMIXERCONTROLDETAILS_LISTTEXTA = *mut tagMIXERCONTROLDETAILS_LISTTEXTA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagMIXERCONTROLDETAILS_LISTTEXTW { - pub dwParam1: DWORD, - pub dwParam2: DWORD, - pub szName: [WCHAR; 64usize], -} -pub type MIXERCONTROLDETAILS_LISTTEXTW = tagMIXERCONTROLDETAILS_LISTTEXTW; -pub type PMIXERCONTROLDETAILS_LISTTEXTW = *mut tagMIXERCONTROLDETAILS_LISTTEXTW; -pub type LPMIXERCONTROLDETAILS_LISTTEXTW = *mut tagMIXERCONTROLDETAILS_LISTTEXTW; -pub type MIXERCONTROLDETAILS_LISTTEXT = MIXERCONTROLDETAILS_LISTTEXTA; -pub type PMIXERCONTROLDETAILS_LISTTEXT = PMIXERCONTROLDETAILS_LISTTEXTA; -pub type LPMIXERCONTROLDETAILS_LISTTEXT = LPMIXERCONTROLDETAILS_LISTTEXTA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tMIXERCONTROLDETAILS_BOOLEAN { - pub fValue: LONG, -} -pub type MIXERCONTROLDETAILS_BOOLEAN = tMIXERCONTROLDETAILS_BOOLEAN; -pub type PMIXERCONTROLDETAILS_BOOLEAN = *mut tMIXERCONTROLDETAILS_BOOLEAN; -pub type LPMIXERCONTROLDETAILS_BOOLEAN = *mut tMIXERCONTROLDETAILS_BOOLEAN; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tMIXERCONTROLDETAILS_SIGNED { - pub lValue: LONG, -} -pub type MIXERCONTROLDETAILS_SIGNED = tMIXERCONTROLDETAILS_SIGNED; -pub type PMIXERCONTROLDETAILS_SIGNED = *mut tMIXERCONTROLDETAILS_SIGNED; -pub type LPMIXERCONTROLDETAILS_SIGNED = *mut tMIXERCONTROLDETAILS_SIGNED; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tMIXERCONTROLDETAILS_UNSIGNED { - pub dwValue: DWORD, -} -pub type MIXERCONTROLDETAILS_UNSIGNED = tMIXERCONTROLDETAILS_UNSIGNED; -pub type PMIXERCONTROLDETAILS_UNSIGNED = *mut tMIXERCONTROLDETAILS_UNSIGNED; -pub type LPMIXERCONTROLDETAILS_UNSIGNED = *mut tMIXERCONTROLDETAILS_UNSIGNED; -extern "C" { - pub fn mixerGetControlDetailsA( - hmxobj: HMIXEROBJ, - pmxcd: LPMIXERCONTROLDETAILS, - fdwDetails: DWORD, - ) -> MMRESULT; -} -extern "C" { - pub fn mixerGetControlDetailsW( - hmxobj: HMIXEROBJ, - pmxcd: LPMIXERCONTROLDETAILS, - fdwDetails: DWORD, - ) -> MMRESULT; -} -extern "C" { - pub fn mixerSetControlDetails( - hmxobj: HMIXEROBJ, - pmxcd: LPMIXERCONTROLDETAILS, - fdwDetails: DWORD, - ) -> MMRESULT; -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct timecaps_tag { - pub wPeriodMin: UINT, - pub wPeriodMax: UINT, -} -pub type TIMECAPS = timecaps_tag; -pub type PTIMECAPS = *mut timecaps_tag; -pub type NPTIMECAPS = *mut timecaps_tag; -pub type LPTIMECAPS = *mut timecaps_tag; -extern "C" { - pub fn timeGetSystemTime(pmmt: LPMMTIME, cbmmt: UINT) -> MMRESULT; -} -extern "C" { - pub fn timeGetTime() -> DWORD; -} -extern "C" { - pub fn timeGetDevCaps(ptc: LPTIMECAPS, cbtc: UINT) -> MMRESULT; -} -extern "C" { - pub fn timeBeginPeriod(uPeriod: UINT) -> MMRESULT; -} -extern "C" { - pub fn timeEndPeriod(uPeriod: UINT) -> MMRESULT; -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagJOYCAPSA { - pub wMid: WORD, - pub wPid: WORD, - pub szPname: [CHAR; 32usize], - pub wXmin: UINT, - pub wXmax: UINT, - pub wYmin: UINT, - pub wYmax: UINT, - pub wZmin: UINT, - pub wZmax: UINT, - pub wNumButtons: UINT, - pub wPeriodMin: UINT, - pub wPeriodMax: UINT, - pub wRmin: UINT, - pub wRmax: UINT, - pub wUmin: UINT, - pub wUmax: UINT, - pub wVmin: UINT, - pub wVmax: UINT, - pub wCaps: UINT, - pub wMaxAxes: UINT, - pub wNumAxes: UINT, - pub wMaxButtons: UINT, - pub szRegKey: [CHAR; 32usize], - pub szOEMVxD: [CHAR; 260usize], -} -pub type JOYCAPSA = tagJOYCAPSA; -pub type PJOYCAPSA = *mut tagJOYCAPSA; -pub type NPJOYCAPSA = *mut tagJOYCAPSA; -pub type LPJOYCAPSA = *mut tagJOYCAPSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagJOYCAPSW { - pub wMid: WORD, - pub wPid: WORD, - pub szPname: [WCHAR; 32usize], - pub wXmin: UINT, - pub wXmax: UINT, - pub wYmin: UINT, - pub wYmax: UINT, - pub wZmin: UINT, - pub wZmax: UINT, - pub wNumButtons: UINT, - pub wPeriodMin: UINT, - pub wPeriodMax: UINT, - pub wRmin: UINT, - pub wRmax: UINT, - pub wUmin: UINT, - pub wUmax: UINT, - pub wVmin: UINT, - pub wVmax: UINT, - pub wCaps: UINT, - pub wMaxAxes: UINT, - pub wNumAxes: UINT, - pub wMaxButtons: UINT, - pub szRegKey: [WCHAR; 32usize], - pub szOEMVxD: [WCHAR; 260usize], -} -pub type JOYCAPSW = tagJOYCAPSW; -pub type PJOYCAPSW = *mut tagJOYCAPSW; -pub type NPJOYCAPSW = *mut tagJOYCAPSW; -pub type LPJOYCAPSW = *mut tagJOYCAPSW; -pub type JOYCAPS = JOYCAPSA; -pub type PJOYCAPS = PJOYCAPSA; -pub type NPJOYCAPS = NPJOYCAPSA; -pub type LPJOYCAPS = LPJOYCAPSA; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagJOYCAPS2A { - pub wMid: WORD, - pub wPid: WORD, - pub szPname: [CHAR; 32usize], - pub wXmin: UINT, - pub wXmax: UINT, - pub wYmin: UINT, - pub wYmax: UINT, - pub wZmin: UINT, - pub wZmax: UINT, - pub wNumButtons: UINT, - pub wPeriodMin: UINT, - pub wPeriodMax: UINT, - pub wRmin: UINT, - pub wRmax: UINT, - pub wUmin: UINT, - pub wUmax: UINT, - pub wVmin: UINT, - pub wVmax: UINT, - pub wCaps: UINT, - pub wMaxAxes: UINT, - pub wNumAxes: UINT, - pub wMaxButtons: UINT, - pub szRegKey: [CHAR; 32usize], - pub szOEMVxD: [CHAR; 260usize], - pub ManufacturerGuid: GUID, - pub ProductGuid: GUID, - pub NameGuid: GUID, -} -pub type JOYCAPS2A = tagJOYCAPS2A; -pub type PJOYCAPS2A = *mut tagJOYCAPS2A; -pub type NPJOYCAPS2A = *mut tagJOYCAPS2A; -pub type LPJOYCAPS2A = *mut tagJOYCAPS2A; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct tagJOYCAPS2W { - pub wMid: WORD, - pub wPid: WORD, - pub szPname: [WCHAR; 32usize], - pub wXmin: UINT, - pub wXmax: UINT, - pub wYmin: UINT, - pub wYmax: UINT, - pub wZmin: UINT, - pub wZmax: UINT, - pub wNumButtons: UINT, - pub wPeriodMin: UINT, - pub wPeriodMax: UINT, - pub wRmin: UINT, - pub wRmax: UINT, - pub wUmin: UINT, - pub wUmax: UINT, - pub wVmin: UINT, - pub wVmax: UINT, - pub wCaps: UINT, - pub wMaxAxes: UINT, - pub wNumAxes: UINT, - pub wMaxButtons: UINT, - pub szRegKey: [WCHAR; 32usize], - pub szOEMVxD: [WCHAR; 260usize], - pub ManufacturerGuid: GUID, - pub ProductGuid: GUID, - pub NameGuid: GUID, -} -pub type JOYCAPS2W = tagJOYCAPS2W; -pub type PJOYCAPS2W = *mut tagJOYCAPS2W; -pub type NPJOYCAPS2W = *mut tagJOYCAPS2W; -pub type LPJOYCAPS2W = *mut tagJOYCAPS2W; -pub type JOYCAPS2 = JOYCAPS2A; -pub type PJOYCAPS2 = PJOYCAPS2A; -pub type NPJOYCAPS2 = NPJOYCAPS2A; -pub type LPJOYCAPS2 = LPJOYCAPS2A; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct joyinfo_tag { - pub wXpos: UINT, - pub wYpos: UINT, - pub wZpos: UINT, - pub wButtons: UINT, -} -pub type JOYINFO = joyinfo_tag; -pub type PJOYINFO = *mut joyinfo_tag; -pub type NPJOYINFO = *mut joyinfo_tag; -pub type LPJOYINFO = *mut joyinfo_tag; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct joyinfoex_tag { - pub dwSize: DWORD, - pub dwFlags: DWORD, - pub dwXpos: DWORD, - pub dwYpos: DWORD, - pub dwZpos: DWORD, - pub dwRpos: DWORD, - pub dwUpos: DWORD, - pub dwVpos: DWORD, - pub dwButtons: DWORD, - pub dwButtonNumber: DWORD, - pub dwPOV: DWORD, - pub dwReserved1: DWORD, - pub dwReserved2: DWORD, -} -pub type JOYINFOEX = joyinfoex_tag; -pub type PJOYINFOEX = *mut joyinfoex_tag; -pub type NPJOYINFOEX = *mut joyinfoex_tag; -pub type LPJOYINFOEX = *mut joyinfoex_tag; -extern "C" { - pub fn joyGetPosEx(uJoyID: UINT, pji: LPJOYINFOEX) -> MMRESULT; -} -extern "C" { - pub fn joyGetNumDevs() -> UINT; -} -extern "C" { - pub fn joyGetDevCapsA(uJoyID: UINT_PTR, pjc: LPJOYCAPSA, cbjc: UINT) -> MMRESULT; -} -extern "C" { - pub fn joyGetDevCapsW(uJoyID: UINT_PTR, pjc: LPJOYCAPSW, cbjc: UINT) -> MMRESULT; -} -extern "C" { - pub fn joyGetPos(uJoyID: UINT, pji: LPJOYINFO) -> MMRESULT; -} -extern "C" { - pub fn joyGetThreshold(uJoyID: UINT, puThreshold: LPUINT) -> MMRESULT; -} -extern "C" { - pub fn joyReleaseCapture(uJoyID: UINT) -> MMRESULT; -} -extern "C" { - pub fn joySetCapture(hwnd: HWND, uJoyID: UINT, uPeriod: UINT, fChanged: BOOL) -> MMRESULT; -} -extern "C" { - pub fn joySetThreshold(uJoyID: UINT, uThreshold: UINT) -> MMRESULT; -} -extern "C" { - pub fn joyConfigChanged(dwFlags: DWORD) -> MMRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NCB { - pub ncb_command: UCHAR, - pub ncb_retcode: UCHAR, - pub ncb_lsn: UCHAR, - pub ncb_num: UCHAR, - pub ncb_buffer: PUCHAR, - pub ncb_length: WORD, - pub ncb_callname: [UCHAR; 16usize], - pub ncb_name: [UCHAR; 16usize], - pub ncb_rto: UCHAR, - pub ncb_sto: UCHAR, - pub ncb_post: ::std::option::Option, - pub ncb_lana_num: UCHAR, - pub ncb_cmd_cplt: UCHAR, - pub ncb_reserve: [UCHAR; 18usize], - pub ncb_event: HANDLE, -} -pub type NCB = _NCB; -pub type PNCB = *mut _NCB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ADAPTER_STATUS { - pub adapter_address: [UCHAR; 6usize], - pub rev_major: UCHAR, - pub reserved0: UCHAR, - pub adapter_type: UCHAR, - pub rev_minor: UCHAR, - pub duration: WORD, - pub frmr_recv: WORD, - pub frmr_xmit: WORD, - pub iframe_recv_err: WORD, - pub xmit_aborts: WORD, - pub xmit_success: DWORD, - pub recv_success: DWORD, - pub iframe_xmit_err: WORD, - pub recv_buff_unavail: WORD, - pub t1_timeouts: WORD, - pub ti_timeouts: WORD, - pub reserved1: DWORD, - pub free_ncbs: WORD, - pub max_cfg_ncbs: WORD, - pub max_ncbs: WORD, - pub xmit_buf_unavail: WORD, - pub max_dgram_size: WORD, - pub pending_sess: WORD, - pub max_cfg_sess: WORD, - pub max_sess: WORD, - pub max_sess_pkt_size: WORD, - pub name_count: WORD, -} -pub type ADAPTER_STATUS = _ADAPTER_STATUS; -pub type PADAPTER_STATUS = *mut _ADAPTER_STATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NAME_BUFFER { - pub name: [UCHAR; 16usize], - pub name_num: UCHAR, - pub name_flags: UCHAR, -} -pub type NAME_BUFFER = _NAME_BUFFER; -pub type PNAME_BUFFER = *mut _NAME_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SESSION_HEADER { - pub sess_name: UCHAR, - pub num_sess: UCHAR, - pub rcv_dg_outstanding: UCHAR, - pub rcv_any_outstanding: UCHAR, -} -pub type SESSION_HEADER = _SESSION_HEADER; -pub type PSESSION_HEADER = *mut _SESSION_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SESSION_BUFFER { - pub lsn: UCHAR, - pub state: UCHAR, - pub local_name: [UCHAR; 16usize], - pub remote_name: [UCHAR; 16usize], - pub rcvs_outstanding: UCHAR, - pub sends_outstanding: UCHAR, -} -pub type SESSION_BUFFER = _SESSION_BUFFER; -pub type PSESSION_BUFFER = *mut _SESSION_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LANA_ENUM { - pub length: UCHAR, - pub lana: [UCHAR; 255usize], -} -pub type LANA_ENUM = _LANA_ENUM; -pub type PLANA_ENUM = *mut _LANA_ENUM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FIND_NAME_HEADER { - pub node_count: WORD, - pub reserved: UCHAR, - pub unique_group: UCHAR, -} -pub type FIND_NAME_HEADER = _FIND_NAME_HEADER; -pub type PFIND_NAME_HEADER = *mut _FIND_NAME_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FIND_NAME_BUFFER { - pub length: UCHAR, - pub access_control: UCHAR, - pub frame_control: UCHAR, - pub destination_addr: [UCHAR; 6usize], - pub source_addr: [UCHAR; 6usize], - pub routing_info: [UCHAR; 18usize], -} -pub type FIND_NAME_BUFFER = _FIND_NAME_BUFFER; -pub type PFIND_NAME_BUFFER = *mut _FIND_NAME_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACTION_HEADER { - pub transport_id: ULONG, - pub action_code: USHORT, - pub reserved: USHORT, -} -pub type ACTION_HEADER = _ACTION_HEADER; -pub type PACTION_HEADER = *mut _ACTION_HEADER; -extern "C" { - pub fn Netbios(pncb: PNCB) -> UCHAR; -} -pub type I_RPC_HANDLE = *mut ::std::os::raw::c_void; -pub type RPC_STATUS = ::std::os::raw::c_long; -pub type RPC_CSTR = *mut ::std::os::raw::c_uchar; -pub type RPC_WSTR = *mut ::std::os::raw::c_ushort; -pub type RPC_CWSTR = *const ::std::os::raw::c_ushort; -pub type RPC_BINDING_HANDLE = I_RPC_HANDLE; -pub type handle_t = RPC_BINDING_HANDLE; -pub type UUID = GUID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_BINDING_VECTOR { - pub Count: ::std::os::raw::c_ulong, - pub BindingH: [RPC_BINDING_HANDLE; 1usize], -} -pub type RPC_BINDING_VECTOR = _RPC_BINDING_VECTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _UUID_VECTOR { - pub Count: ::std::os::raw::c_ulong, - pub Uuid: [*mut UUID; 1usize], -} -pub type UUID_VECTOR = _UUID_VECTOR; -pub type RPC_IF_HANDLE = *mut ::std::os::raw::c_void; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_IF_ID { - pub Uuid: UUID, - pub VersMajor: ::std::os::raw::c_ushort, - pub VersMinor: ::std::os::raw::c_ushort, -} -pub type RPC_IF_ID = _RPC_IF_ID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_PROTSEQ_VECTORA { - pub Count: ::std::os::raw::c_uint, - pub Protseq: [*mut ::std::os::raw::c_uchar; 1usize], -} -pub type RPC_PROTSEQ_VECTORA = _RPC_PROTSEQ_VECTORA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_PROTSEQ_VECTORW { - pub Count: ::std::os::raw::c_uint, - pub Protseq: [*mut ::std::os::raw::c_ushort; 1usize], -} -pub type RPC_PROTSEQ_VECTORW = _RPC_PROTSEQ_VECTORW; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_POLICY { - pub Length: ::std::os::raw::c_uint, - pub EndpointFlags: ::std::os::raw::c_ulong, - pub NICFlags: ::std::os::raw::c_ulong, -} -pub type RPC_POLICY = _RPC_POLICY; -pub type PRPC_POLICY = *mut _RPC_POLICY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RPC_STATS_VECTOR { - pub Count: ::std::os::raw::c_uint, - pub Stats: [::std::os::raw::c_ulong; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RPC_IF_ID_VECTOR { - pub Count: ::std::os::raw::c_ulong, - pub IfId: [*mut RPC_IF_ID; 1usize], -} -extern "C" { - pub fn RpcBindingCopy( - SourceBinding: RPC_BINDING_HANDLE, - DestinationBinding: *mut RPC_BINDING_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingFree(Binding: *mut RPC_BINDING_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingSetOption( - hBinding: RPC_BINDING_HANDLE, - option: ::std::os::raw::c_ulong, - optionValue: ULONG_PTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingInqOption( - hBinding: RPC_BINDING_HANDLE, - option: ::std::os::raw::c_ulong, - pOptionValue: *mut ULONG_PTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingFromStringBindingA( - StringBinding: RPC_CSTR, - Binding: *mut RPC_BINDING_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingFromStringBindingW( - StringBinding: RPC_WSTR, - Binding: *mut RPC_BINDING_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcSsGetContextBinding( - ContextHandle: *mut ::std::os::raw::c_void, - Binding: *mut RPC_BINDING_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingInqMaxCalls( - Binding: RPC_BINDING_HANDLE, - MaxCalls: *mut ::std::os::raw::c_uint, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingInqObject(Binding: RPC_BINDING_HANDLE, ObjectUuid: *mut UUID) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingReset(Binding: RPC_BINDING_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingSetObject(Binding: RPC_BINDING_HANDLE, ObjectUuid: *mut UUID) -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtInqDefaultProtectLevel( - AuthnSvc: ::std::os::raw::c_ulong, - AuthnLevel: *mut ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingToStringBindingA( - Binding: RPC_BINDING_HANDLE, - StringBinding: *mut RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingToStringBindingW( - Binding: RPC_BINDING_HANDLE, - StringBinding: *mut RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingVectorFree(BindingVector: *mut *mut RPC_BINDING_VECTOR) -> RPC_STATUS; -} -extern "C" { - pub fn RpcStringBindingComposeA( - ObjUuid: RPC_CSTR, - ProtSeq: RPC_CSTR, - NetworkAddr: RPC_CSTR, - Endpoint: RPC_CSTR, - Options: RPC_CSTR, - StringBinding: *mut RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcStringBindingComposeW( - ObjUuid: RPC_WSTR, - ProtSeq: RPC_WSTR, - NetworkAddr: RPC_WSTR, - Endpoint: RPC_WSTR, - Options: RPC_WSTR, - StringBinding: *mut RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcStringBindingParseA( - StringBinding: RPC_CSTR, - ObjUuid: *mut RPC_CSTR, - Protseq: *mut RPC_CSTR, - NetworkAddr: *mut RPC_CSTR, - Endpoint: *mut RPC_CSTR, - NetworkOptions: *mut RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcStringBindingParseW( - StringBinding: RPC_WSTR, - ObjUuid: *mut RPC_WSTR, - Protseq: *mut RPC_WSTR, - NetworkAddr: *mut RPC_WSTR, - Endpoint: *mut RPC_WSTR, - NetworkOptions: *mut RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcStringFreeA(String: *mut RPC_CSTR) -> RPC_STATUS; -} -extern "C" { - pub fn RpcStringFreeW(String: *mut RPC_WSTR) -> RPC_STATUS; -} -extern "C" { - pub fn RpcIfInqId(RpcIfHandle: RPC_IF_HANDLE, RpcIfId: *mut RPC_IF_ID) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNetworkIsProtseqValidA(Protseq: RPC_CSTR) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNetworkIsProtseqValidW(Protseq: RPC_WSTR) -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtInqComTimeout( - Binding: RPC_BINDING_HANDLE, - Timeout: *mut ::std::os::raw::c_uint, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtSetComTimeout( - Binding: RPC_BINDING_HANDLE, - Timeout: ::std::os::raw::c_uint, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtSetCancelTimeout(Timeout: ::std::os::raw::c_long) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNetworkInqProtseqsA(ProtseqVector: *mut *mut RPC_PROTSEQ_VECTORA) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNetworkInqProtseqsW(ProtseqVector: *mut *mut RPC_PROTSEQ_VECTORW) -> RPC_STATUS; -} -extern "C" { - pub fn RpcObjectInqType(ObjUuid: *mut UUID, TypeUuid: *mut UUID) -> RPC_STATUS; -} -extern "C" { - pub fn RpcObjectSetInqFn( - InquiryFn: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut UUID, arg2: *mut UUID, arg3: *mut RPC_STATUS), - >, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcObjectSetType(ObjUuid: *mut UUID, TypeUuid: *mut UUID) -> RPC_STATUS; -} -extern "C" { - pub fn RpcProtseqVectorFreeA(ProtseqVector: *mut *mut RPC_PROTSEQ_VECTORA) -> RPC_STATUS; -} -extern "C" { - pub fn RpcProtseqVectorFreeW(ProtseqVector: *mut *mut RPC_PROTSEQ_VECTORW) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerInqBindings(BindingVector: *mut *mut RPC_BINDING_VECTOR) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerInqBindingsEx( - SecurityDescriptor: *mut ::std::os::raw::c_void, - BindingVector: *mut *mut RPC_BINDING_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerInqIf( - IfSpec: RPC_IF_HANDLE, - MgrTypeUuid: *mut UUID, - MgrEpv: *mut *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerListen( - MinimumCallThreads: ::std::os::raw::c_uint, - MaxCalls: ::std::os::raw::c_uint, - DontWait: ::std::os::raw::c_uint, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerRegisterIf( - IfSpec: RPC_IF_HANDLE, - MgrTypeUuid: *mut UUID, - MgrEpv: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerRegisterIfEx( - IfSpec: RPC_IF_HANDLE, - MgrTypeUuid: *mut UUID, - MgrEpv: *mut ::std::os::raw::c_void, - Flags: ::std::os::raw::c_uint, - MaxCalls: ::std::os::raw::c_uint, - IfCallback: ::std::option::Option< - unsafe extern "C" fn( - arg1: RPC_IF_HANDLE, - arg2: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS, - >, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerRegisterIf2( - IfSpec: RPC_IF_HANDLE, - MgrTypeUuid: *mut UUID, - MgrEpv: *mut ::std::os::raw::c_void, - Flags: ::std::os::raw::c_uint, - MaxCalls: ::std::os::raw::c_uint, - MaxRpcSize: ::std::os::raw::c_uint, - IfCallbackFn: ::std::option::Option< - unsafe extern "C" fn( - arg1: RPC_IF_HANDLE, - arg2: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS, - >, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerRegisterIf3( - IfSpec: RPC_IF_HANDLE, - MgrTypeUuid: *mut UUID, - MgrEpv: *mut ::std::os::raw::c_void, - Flags: ::std::os::raw::c_uint, - MaxCalls: ::std::os::raw::c_uint, - MaxRpcSize: ::std::os::raw::c_uint, - IfCallback: ::std::option::Option< - unsafe extern "C" fn( - arg1: RPC_IF_HANDLE, - arg2: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS, - >, - SecurityDescriptor: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUnregisterIf( - IfSpec: RPC_IF_HANDLE, - MgrTypeUuid: *mut UUID, - WaitForCallsToComplete: ::std::os::raw::c_uint, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUnregisterIfEx( - IfSpec: RPC_IF_HANDLE, - MgrTypeUuid: *mut UUID, - RundownContextHandles: ::std::os::raw::c_int, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseAllProtseqs( - MaxCalls: ::std::os::raw::c_uint, - SecurityDescriptor: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseAllProtseqsEx( - MaxCalls: ::std::os::raw::c_uint, - SecurityDescriptor: *mut ::std::os::raw::c_void, - Policy: PRPC_POLICY, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseAllProtseqsIf( - MaxCalls: ::std::os::raw::c_uint, - IfSpec: RPC_IF_HANDLE, - SecurityDescriptor: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseAllProtseqsIfEx( - MaxCalls: ::std::os::raw::c_uint, - IfSpec: RPC_IF_HANDLE, - SecurityDescriptor: *mut ::std::os::raw::c_void, - Policy: PRPC_POLICY, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseProtseqA( - Protseq: RPC_CSTR, - MaxCalls: ::std::os::raw::c_uint, - SecurityDescriptor: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseProtseqExA( - Protseq: RPC_CSTR, - MaxCalls: ::std::os::raw::c_uint, - SecurityDescriptor: *mut ::std::os::raw::c_void, - Policy: PRPC_POLICY, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseProtseqW( - Protseq: RPC_WSTR, - MaxCalls: ::std::os::raw::c_uint, - SecurityDescriptor: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseProtseqExW( - Protseq: RPC_WSTR, - MaxCalls: ::std::os::raw::c_uint, - SecurityDescriptor: *mut ::std::os::raw::c_void, - Policy: PRPC_POLICY, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseProtseqEpA( - Protseq: RPC_CSTR, - MaxCalls: ::std::os::raw::c_uint, - Endpoint: RPC_CSTR, - SecurityDescriptor: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseProtseqEpExA( - Protseq: RPC_CSTR, - MaxCalls: ::std::os::raw::c_uint, - Endpoint: RPC_CSTR, - SecurityDescriptor: *mut ::std::os::raw::c_void, - Policy: PRPC_POLICY, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseProtseqEpW( - Protseq: RPC_WSTR, - MaxCalls: ::std::os::raw::c_uint, - Endpoint: RPC_WSTR, - SecurityDescriptor: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseProtseqEpExW( - Protseq: RPC_WSTR, - MaxCalls: ::std::os::raw::c_uint, - Endpoint: RPC_WSTR, - SecurityDescriptor: *mut ::std::os::raw::c_void, - Policy: PRPC_POLICY, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseProtseqIfA( - Protseq: RPC_CSTR, - MaxCalls: ::std::os::raw::c_uint, - IfSpec: RPC_IF_HANDLE, - SecurityDescriptor: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseProtseqIfExA( - Protseq: RPC_CSTR, - MaxCalls: ::std::os::raw::c_uint, - IfSpec: RPC_IF_HANDLE, - SecurityDescriptor: *mut ::std::os::raw::c_void, - Policy: PRPC_POLICY, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseProtseqIfW( - Protseq: RPC_WSTR, - MaxCalls: ::std::os::raw::c_uint, - IfSpec: RPC_IF_HANDLE, - SecurityDescriptor: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUseProtseqIfExW( - Protseq: RPC_WSTR, - MaxCalls: ::std::os::raw::c_uint, - IfSpec: RPC_IF_HANDLE, - SecurityDescriptor: *mut ::std::os::raw::c_void, - Policy: PRPC_POLICY, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerYield(); -} -extern "C" { - pub fn RpcMgmtStatsVectorFree(StatsVector: *mut *mut RPC_STATS_VECTOR) -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtInqStats( - Binding: RPC_BINDING_HANDLE, - Statistics: *mut *mut RPC_STATS_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtIsServerListening(Binding: RPC_BINDING_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtStopServerListening(Binding: RPC_BINDING_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtWaitServerListen() -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtSetServerStackSize(ThreadStackSize: ::std::os::raw::c_ulong) -> RPC_STATUS; -} -extern "C" { - pub fn RpcSsDontSerializeContext(); -} -extern "C" { - pub fn RpcMgmtEnableIdleCleanup() -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtInqIfIds( - Binding: RPC_BINDING_HANDLE, - IfIdVector: *mut *mut RPC_IF_ID_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcIfIdVectorFree(IfIdVector: *mut *mut RPC_IF_ID_VECTOR) -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtInqServerPrincNameA( - Binding: RPC_BINDING_HANDLE, - AuthnSvc: ::std::os::raw::c_ulong, - ServerPrincName: *mut RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtInqServerPrincNameW( - Binding: RPC_BINDING_HANDLE, - AuthnSvc: ::std::os::raw::c_ulong, - ServerPrincName: *mut RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerInqDefaultPrincNameA( - AuthnSvc: ::std::os::raw::c_ulong, - PrincName: *mut RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerInqDefaultPrincNameW( - AuthnSvc: ::std::os::raw::c_ulong, - PrincName: *mut RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcEpResolveBinding(Binding: RPC_BINDING_HANDLE, IfSpec: RPC_IF_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingInqEntryNameA( - Binding: RPC_BINDING_HANDLE, - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: *mut RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingInqEntryNameW( - Binding: RPC_BINDING_HANDLE, - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: *mut RPC_WSTR, - ) -> RPC_STATUS; -} -pub type RPC_AUTH_IDENTITY_HANDLE = *mut ::std::os::raw::c_void; -pub type RPC_AUTHZ_HANDLE = *mut ::std::os::raw::c_void; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_SECURITY_QOS { - pub Version: ::std::os::raw::c_ulong, - pub Capabilities: ::std::os::raw::c_ulong, - pub IdentityTracking: ::std::os::raw::c_ulong, - pub ImpersonationType: ::std::os::raw::c_ulong, -} -pub type RPC_SECURITY_QOS = _RPC_SECURITY_QOS; -pub type PRPC_SECURITY_QOS = *mut _RPC_SECURITY_QOS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SEC_WINNT_AUTH_IDENTITY_W { - pub User: *mut ::std::os::raw::c_ushort, - pub UserLength: ::std::os::raw::c_ulong, - pub Domain: *mut ::std::os::raw::c_ushort, - pub DomainLength: ::std::os::raw::c_ulong, - pub Password: *mut ::std::os::raw::c_ushort, - pub PasswordLength: ::std::os::raw::c_ulong, - pub Flags: ::std::os::raw::c_ulong, -} -pub type SEC_WINNT_AUTH_IDENTITY_W = _SEC_WINNT_AUTH_IDENTITY_W; -pub type PSEC_WINNT_AUTH_IDENTITY_W = *mut _SEC_WINNT_AUTH_IDENTITY_W; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SEC_WINNT_AUTH_IDENTITY_A { - pub User: *mut ::std::os::raw::c_uchar, - pub UserLength: ::std::os::raw::c_ulong, - pub Domain: *mut ::std::os::raw::c_uchar, - pub DomainLength: ::std::os::raw::c_ulong, - pub Password: *mut ::std::os::raw::c_uchar, - pub PasswordLength: ::std::os::raw::c_ulong, - pub Flags: ::std::os::raw::c_ulong, -} -pub type SEC_WINNT_AUTH_IDENTITY_A = _SEC_WINNT_AUTH_IDENTITY_A; -pub type PSEC_WINNT_AUTH_IDENTITY_A = *mut _SEC_WINNT_AUTH_IDENTITY_A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W { - pub TransportCredentials: *mut SEC_WINNT_AUTH_IDENTITY_W, - pub Flags: ::std::os::raw::c_ulong, - pub AuthenticationTarget: ::std::os::raw::c_ulong, - pub NumberOfAuthnSchemes: ::std::os::raw::c_ulong, - pub AuthnSchemes: *mut ::std::os::raw::c_ulong, - pub ServerCertificateSubject: *mut ::std::os::raw::c_ushort, -} -pub type RPC_HTTP_TRANSPORT_CREDENTIALS_W = _RPC_HTTP_TRANSPORT_CREDENTIALS_W; -pub type PRPC_HTTP_TRANSPORT_CREDENTIALS_W = *mut _RPC_HTTP_TRANSPORT_CREDENTIALS_W; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_HTTP_TRANSPORT_CREDENTIALS_A { - pub TransportCredentials: *mut SEC_WINNT_AUTH_IDENTITY_A, - pub Flags: ::std::os::raw::c_ulong, - pub AuthenticationTarget: ::std::os::raw::c_ulong, - pub NumberOfAuthnSchemes: ::std::os::raw::c_ulong, - pub AuthnSchemes: *mut ::std::os::raw::c_ulong, - pub ServerCertificateSubject: *mut ::std::os::raw::c_uchar, -} -pub type RPC_HTTP_TRANSPORT_CREDENTIALS_A = _RPC_HTTP_TRANSPORT_CREDENTIALS_A; -pub type PRPC_HTTP_TRANSPORT_CREDENTIALS_A = *mut _RPC_HTTP_TRANSPORT_CREDENTIALS_A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W { - pub TransportCredentials: *mut SEC_WINNT_AUTH_IDENTITY_W, - pub Flags: ::std::os::raw::c_ulong, - pub AuthenticationTarget: ::std::os::raw::c_ulong, - pub NumberOfAuthnSchemes: ::std::os::raw::c_ulong, - pub AuthnSchemes: *mut ::std::os::raw::c_ulong, - pub ServerCertificateSubject: *mut ::std::os::raw::c_ushort, - pub ProxyCredentials: *mut SEC_WINNT_AUTH_IDENTITY_W, - pub NumberOfProxyAuthnSchemes: ::std::os::raw::c_ulong, - pub ProxyAuthnSchemes: *mut ::std::os::raw::c_ulong, -} -pub type RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W = _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W; -pub type PRPC_HTTP_TRANSPORT_CREDENTIALS_V2_W = *mut _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A { - pub TransportCredentials: *mut SEC_WINNT_AUTH_IDENTITY_A, - pub Flags: ::std::os::raw::c_ulong, - pub AuthenticationTarget: ::std::os::raw::c_ulong, - pub NumberOfAuthnSchemes: ::std::os::raw::c_ulong, - pub AuthnSchemes: *mut ::std::os::raw::c_ulong, - pub ServerCertificateSubject: *mut ::std::os::raw::c_uchar, - pub ProxyCredentials: *mut SEC_WINNT_AUTH_IDENTITY_A, - pub NumberOfProxyAuthnSchemes: ::std::os::raw::c_ulong, - pub ProxyAuthnSchemes: *mut ::std::os::raw::c_ulong, -} -pub type RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A = _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A; -pub type PRPC_HTTP_TRANSPORT_CREDENTIALS_V2_A = *mut _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W { - pub TransportCredentials: RPC_AUTH_IDENTITY_HANDLE, - pub Flags: ::std::os::raw::c_ulong, - pub AuthenticationTarget: ::std::os::raw::c_ulong, - pub NumberOfAuthnSchemes: ::std::os::raw::c_ulong, - pub AuthnSchemes: *mut ::std::os::raw::c_ulong, - pub ServerCertificateSubject: *mut ::std::os::raw::c_ushort, - pub ProxyCredentials: RPC_AUTH_IDENTITY_HANDLE, - pub NumberOfProxyAuthnSchemes: ::std::os::raw::c_ulong, - pub ProxyAuthnSchemes: *mut ::std::os::raw::c_ulong, -} -pub type RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W = _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W; -pub type PRPC_HTTP_TRANSPORT_CREDENTIALS_V3_W = *mut _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A { - pub TransportCredentials: RPC_AUTH_IDENTITY_HANDLE, - pub Flags: ::std::os::raw::c_ulong, - pub AuthenticationTarget: ::std::os::raw::c_ulong, - pub NumberOfAuthnSchemes: ::std::os::raw::c_ulong, - pub AuthnSchemes: *mut ::std::os::raw::c_ulong, - pub ServerCertificateSubject: *mut ::std::os::raw::c_uchar, - pub ProxyCredentials: RPC_AUTH_IDENTITY_HANDLE, - pub NumberOfProxyAuthnSchemes: ::std::os::raw::c_ulong, - pub ProxyAuthnSchemes: *mut ::std::os::raw::c_ulong, -} -pub type RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A = _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A; -pub type PRPC_HTTP_TRANSPORT_CREDENTIALS_V3_A = *mut _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _RPC_SECURITY_QOS_V2_W { - pub Version: ::std::os::raw::c_ulong, - pub Capabilities: ::std::os::raw::c_ulong, - pub IdentityTracking: ::std::os::raw::c_ulong, - pub ImpersonationType: ::std::os::raw::c_ulong, - pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, - pub u: _RPC_SECURITY_QOS_V2_W__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _RPC_SECURITY_QOS_V2_W__bindgen_ty_1 { - pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_W, -} -pub type RPC_SECURITY_QOS_V2_W = _RPC_SECURITY_QOS_V2_W; -pub type PRPC_SECURITY_QOS_V2_W = *mut _RPC_SECURITY_QOS_V2_W; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _RPC_SECURITY_QOS_V2_A { - pub Version: ::std::os::raw::c_ulong, - pub Capabilities: ::std::os::raw::c_ulong, - pub IdentityTracking: ::std::os::raw::c_ulong, - pub ImpersonationType: ::std::os::raw::c_ulong, - pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, - pub u: _RPC_SECURITY_QOS_V2_A__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _RPC_SECURITY_QOS_V2_A__bindgen_ty_1 { - pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_A, -} -pub type RPC_SECURITY_QOS_V2_A = _RPC_SECURITY_QOS_V2_A; -pub type PRPC_SECURITY_QOS_V2_A = *mut _RPC_SECURITY_QOS_V2_A; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _RPC_SECURITY_QOS_V3_W { - pub Version: ::std::os::raw::c_ulong, - pub Capabilities: ::std::os::raw::c_ulong, - pub IdentityTracking: ::std::os::raw::c_ulong, - pub ImpersonationType: ::std::os::raw::c_ulong, - pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, - pub u: _RPC_SECURITY_QOS_V3_W__bindgen_ty_1, - pub Sid: *mut ::std::os::raw::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _RPC_SECURITY_QOS_V3_W__bindgen_ty_1 { - pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_W, -} -pub type RPC_SECURITY_QOS_V3_W = _RPC_SECURITY_QOS_V3_W; -pub type PRPC_SECURITY_QOS_V3_W = *mut _RPC_SECURITY_QOS_V3_W; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _RPC_SECURITY_QOS_V3_A { - pub Version: ::std::os::raw::c_ulong, - pub Capabilities: ::std::os::raw::c_ulong, - pub IdentityTracking: ::std::os::raw::c_ulong, - pub ImpersonationType: ::std::os::raw::c_ulong, - pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, - pub u: _RPC_SECURITY_QOS_V3_A__bindgen_ty_1, - pub Sid: *mut ::std::os::raw::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _RPC_SECURITY_QOS_V3_A__bindgen_ty_1 { - pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_A, -} -pub type RPC_SECURITY_QOS_V3_A = _RPC_SECURITY_QOS_V3_A; -pub type PRPC_SECURITY_QOS_V3_A = *mut _RPC_SECURITY_QOS_V3_A; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _RPC_SECURITY_QOS_V4_W { - pub Version: ::std::os::raw::c_ulong, - pub Capabilities: ::std::os::raw::c_ulong, - pub IdentityTracking: ::std::os::raw::c_ulong, - pub ImpersonationType: ::std::os::raw::c_ulong, - pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, - pub u: _RPC_SECURITY_QOS_V4_W__bindgen_ty_1, - pub Sid: *mut ::std::os::raw::c_void, - pub EffectiveOnly: ::std::os::raw::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _RPC_SECURITY_QOS_V4_W__bindgen_ty_1 { - pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_W, -} -pub type RPC_SECURITY_QOS_V4_W = _RPC_SECURITY_QOS_V4_W; -pub type PRPC_SECURITY_QOS_V4_W = *mut _RPC_SECURITY_QOS_V4_W; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _RPC_SECURITY_QOS_V4_A { - pub Version: ::std::os::raw::c_ulong, - pub Capabilities: ::std::os::raw::c_ulong, - pub IdentityTracking: ::std::os::raw::c_ulong, - pub ImpersonationType: ::std::os::raw::c_ulong, - pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, - pub u: _RPC_SECURITY_QOS_V4_A__bindgen_ty_1, - pub Sid: *mut ::std::os::raw::c_void, - pub EffectiveOnly: ::std::os::raw::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _RPC_SECURITY_QOS_V4_A__bindgen_ty_1 { - pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_A, -} -pub type RPC_SECURITY_QOS_V4_A = _RPC_SECURITY_QOS_V4_A; -pub type PRPC_SECURITY_QOS_V4_A = *mut _RPC_SECURITY_QOS_V4_A; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _RPC_SECURITY_QOS_V5_W { - pub Version: ::std::os::raw::c_ulong, - pub Capabilities: ::std::os::raw::c_ulong, - pub IdentityTracking: ::std::os::raw::c_ulong, - pub ImpersonationType: ::std::os::raw::c_ulong, - pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, - pub u: _RPC_SECURITY_QOS_V5_W__bindgen_ty_1, - pub Sid: *mut ::std::os::raw::c_void, - pub EffectiveOnly: ::std::os::raw::c_uint, - pub ServerSecurityDescriptor: *mut ::std::os::raw::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _RPC_SECURITY_QOS_V5_W__bindgen_ty_1 { - pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_W, -} -pub type RPC_SECURITY_QOS_V5_W = _RPC_SECURITY_QOS_V5_W; -pub type PRPC_SECURITY_QOS_V5_W = *mut _RPC_SECURITY_QOS_V5_W; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _RPC_SECURITY_QOS_V5_A { - pub Version: ::std::os::raw::c_ulong, - pub Capabilities: ::std::os::raw::c_ulong, - pub IdentityTracking: ::std::os::raw::c_ulong, - pub ImpersonationType: ::std::os::raw::c_ulong, - pub AdditionalSecurityInfoType: ::std::os::raw::c_ulong, - pub u: _RPC_SECURITY_QOS_V5_A__bindgen_ty_1, - pub Sid: *mut ::std::os::raw::c_void, - pub EffectiveOnly: ::std::os::raw::c_uint, - pub ServerSecurityDescriptor: *mut ::std::os::raw::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _RPC_SECURITY_QOS_V5_A__bindgen_ty_1 { - pub HttpCredentials: *mut RPC_HTTP_TRANSPORT_CREDENTIALS_A, -} -pub type RPC_SECURITY_QOS_V5_A = _RPC_SECURITY_QOS_V5_A; -pub type PRPC_SECURITY_QOS_V5_A = *mut _RPC_SECURITY_QOS_V5_A; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _RPC_BINDING_HANDLE_TEMPLATE_V1_W { - pub Version: ::std::os::raw::c_ulong, - pub Flags: ::std::os::raw::c_ulong, - pub ProtocolSequence: ::std::os::raw::c_ulong, - pub NetworkAddress: *mut ::std::os::raw::c_ushort, - pub StringEndpoint: *mut ::std::os::raw::c_ushort, - pub u1: _RPC_BINDING_HANDLE_TEMPLATE_V1_W__bindgen_ty_1, - pub ObjectUuid: UUID, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _RPC_BINDING_HANDLE_TEMPLATE_V1_W__bindgen_ty_1 { - pub Reserved: *mut ::std::os::raw::c_ushort, -} -pub type RPC_BINDING_HANDLE_TEMPLATE_V1_W = _RPC_BINDING_HANDLE_TEMPLATE_V1_W; -pub type PRPC_BINDING_HANDLE_TEMPLATE_V1_W = *mut _RPC_BINDING_HANDLE_TEMPLATE_V1_W; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _RPC_BINDING_HANDLE_TEMPLATE_V1_A { - pub Version: ::std::os::raw::c_ulong, - pub Flags: ::std::os::raw::c_ulong, - pub ProtocolSequence: ::std::os::raw::c_ulong, - pub NetworkAddress: *mut ::std::os::raw::c_uchar, - pub StringEndpoint: *mut ::std::os::raw::c_uchar, - pub u1: _RPC_BINDING_HANDLE_TEMPLATE_V1_A__bindgen_ty_1, - pub ObjectUuid: UUID, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _RPC_BINDING_HANDLE_TEMPLATE_V1_A__bindgen_ty_1 { - pub Reserved: *mut ::std::os::raw::c_uchar, -} -pub type RPC_BINDING_HANDLE_TEMPLATE_V1_A = _RPC_BINDING_HANDLE_TEMPLATE_V1_A; -pub type PRPC_BINDING_HANDLE_TEMPLATE_V1_A = *mut _RPC_BINDING_HANDLE_TEMPLATE_V1_A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_BINDING_HANDLE_SECURITY_V1_W { - pub Version: ::std::os::raw::c_ulong, - pub ServerPrincName: *mut ::std::os::raw::c_ushort, - pub AuthnLevel: ::std::os::raw::c_ulong, - pub AuthnSvc: ::std::os::raw::c_ulong, - pub AuthIdentity: *mut SEC_WINNT_AUTH_IDENTITY_W, - pub SecurityQos: *mut RPC_SECURITY_QOS, -} -pub type RPC_BINDING_HANDLE_SECURITY_V1_W = _RPC_BINDING_HANDLE_SECURITY_V1_W; -pub type PRPC_BINDING_HANDLE_SECURITY_V1_W = *mut _RPC_BINDING_HANDLE_SECURITY_V1_W; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_BINDING_HANDLE_SECURITY_V1_A { - pub Version: ::std::os::raw::c_ulong, - pub ServerPrincName: *mut ::std::os::raw::c_uchar, - pub AuthnLevel: ::std::os::raw::c_ulong, - pub AuthnSvc: ::std::os::raw::c_ulong, - pub AuthIdentity: *mut SEC_WINNT_AUTH_IDENTITY_A, - pub SecurityQos: *mut RPC_SECURITY_QOS, -} -pub type RPC_BINDING_HANDLE_SECURITY_V1_A = _RPC_BINDING_HANDLE_SECURITY_V1_A; -pub type PRPC_BINDING_HANDLE_SECURITY_V1_A = *mut _RPC_BINDING_HANDLE_SECURITY_V1_A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_BINDING_HANDLE_OPTIONS_V1 { - pub Version: ::std::os::raw::c_ulong, - pub Flags: ::std::os::raw::c_ulong, - pub ComTimeout: ::std::os::raw::c_ulong, - pub CallTimeout: ::std::os::raw::c_ulong, -} -pub type RPC_BINDING_HANDLE_OPTIONS_V1 = _RPC_BINDING_HANDLE_OPTIONS_V1; -pub type PRPC_BINDING_HANDLE_OPTIONS_V1 = *mut _RPC_BINDING_HANDLE_OPTIONS_V1; -extern "C" { - pub fn RpcBindingCreateA( - Template: *mut RPC_BINDING_HANDLE_TEMPLATE_V1_A, - Security: *mut RPC_BINDING_HANDLE_SECURITY_V1_A, - Options: *mut RPC_BINDING_HANDLE_OPTIONS_V1, - Binding: *mut RPC_BINDING_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingCreateW( - Template: *mut RPC_BINDING_HANDLE_TEMPLATE_V1_W, - Security: *mut RPC_BINDING_HANDLE_SECURITY_V1_W, - Options: *mut RPC_BINDING_HANDLE_OPTIONS_V1, - Binding: *mut RPC_BINDING_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingGetTrainingContextHandle( - Binding: RPC_BINDING_HANDLE, - ContextHandle: *mut *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerInqBindingHandle(Binding: *mut RPC_BINDING_HANDLE) -> RPC_STATUS; -} -pub const _RPC_HTTP_REDIRECTOR_STAGE_RPCHTTP_RS_REDIRECT: _RPC_HTTP_REDIRECTOR_STAGE = 1; -pub const _RPC_HTTP_REDIRECTOR_STAGE_RPCHTTP_RS_ACCESS_1: _RPC_HTTP_REDIRECTOR_STAGE = 2; -pub const _RPC_HTTP_REDIRECTOR_STAGE_RPCHTTP_RS_SESSION: _RPC_HTTP_REDIRECTOR_STAGE = 3; -pub const _RPC_HTTP_REDIRECTOR_STAGE_RPCHTTP_RS_ACCESS_2: _RPC_HTTP_REDIRECTOR_STAGE = 4; -pub const _RPC_HTTP_REDIRECTOR_STAGE_RPCHTTP_RS_INTERFACE: _RPC_HTTP_REDIRECTOR_STAGE = 5; -pub type _RPC_HTTP_REDIRECTOR_STAGE = ::std::os::raw::c_int; -pub use self::_RPC_HTTP_REDIRECTOR_STAGE as RPC_HTTP_REDIRECTOR_STAGE; -pub type RPC_NEW_HTTP_PROXY_CHANNEL = ::std::option::Option< - unsafe extern "C" fn( - RedirectorStage: RPC_HTTP_REDIRECTOR_STAGE, - ServerName: RPC_WSTR, - ServerPort: RPC_WSTR, - RemoteUser: RPC_WSTR, - AuthType: RPC_WSTR, - ResourceUuid: *mut ::std::os::raw::c_void, - SessionId: *mut ::std::os::raw::c_void, - Interface: *mut ::std::os::raw::c_void, - Reserved: *mut ::std::os::raw::c_void, - Flags: ::std::os::raw::c_ulong, - NewServerName: *mut RPC_WSTR, - NewServerPort: *mut RPC_WSTR, - ) -> RPC_STATUS, ->; -pub type RPC_HTTP_PROXY_FREE_STRING = ::std::option::Option; -extern "C" { - pub fn RpcImpersonateClient(BindingHandle: RPC_BINDING_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcImpersonateClient2(BindingHandle: RPC_BINDING_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcRevertToSelfEx(BindingHandle: RPC_BINDING_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcRevertToSelf() -> RPC_STATUS; -} -extern "C" { - pub fn RpcImpersonateClientContainer(BindingHandle: RPC_BINDING_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcRevertContainerImpersonation() -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingInqAuthClientA( - ClientBinding: RPC_BINDING_HANDLE, - Privs: *mut RPC_AUTHZ_HANDLE, - ServerPrincName: *mut RPC_CSTR, - AuthnLevel: *mut ::std::os::raw::c_ulong, - AuthnSvc: *mut ::std::os::raw::c_ulong, - AuthzSvc: *mut ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingInqAuthClientW( - ClientBinding: RPC_BINDING_HANDLE, - Privs: *mut RPC_AUTHZ_HANDLE, - ServerPrincName: *mut RPC_WSTR, - AuthnLevel: *mut ::std::os::raw::c_ulong, - AuthnSvc: *mut ::std::os::raw::c_ulong, - AuthzSvc: *mut ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingInqAuthClientExA( - ClientBinding: RPC_BINDING_HANDLE, - Privs: *mut RPC_AUTHZ_HANDLE, - ServerPrincName: *mut RPC_CSTR, - AuthnLevel: *mut ::std::os::raw::c_ulong, - AuthnSvc: *mut ::std::os::raw::c_ulong, - AuthzSvc: *mut ::std::os::raw::c_ulong, - Flags: ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingInqAuthClientExW( - ClientBinding: RPC_BINDING_HANDLE, - Privs: *mut RPC_AUTHZ_HANDLE, - ServerPrincName: *mut RPC_WSTR, - AuthnLevel: *mut ::std::os::raw::c_ulong, - AuthnSvc: *mut ::std::os::raw::c_ulong, - AuthzSvc: *mut ::std::os::raw::c_ulong, - Flags: ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingInqAuthInfoA( - Binding: RPC_BINDING_HANDLE, - ServerPrincName: *mut RPC_CSTR, - AuthnLevel: *mut ::std::os::raw::c_ulong, - AuthnSvc: *mut ::std::os::raw::c_ulong, - AuthIdentity: *mut RPC_AUTH_IDENTITY_HANDLE, - AuthzSvc: *mut ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingInqAuthInfoW( - Binding: RPC_BINDING_HANDLE, - ServerPrincName: *mut RPC_WSTR, - AuthnLevel: *mut ::std::os::raw::c_ulong, - AuthnSvc: *mut ::std::os::raw::c_ulong, - AuthIdentity: *mut RPC_AUTH_IDENTITY_HANDLE, - AuthzSvc: *mut ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingSetAuthInfoA( - Binding: RPC_BINDING_HANDLE, - ServerPrincName: RPC_CSTR, - AuthnLevel: ::std::os::raw::c_ulong, - AuthnSvc: ::std::os::raw::c_ulong, - AuthIdentity: RPC_AUTH_IDENTITY_HANDLE, - AuthzSvc: ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingSetAuthInfoExA( - Binding: RPC_BINDING_HANDLE, - ServerPrincName: RPC_CSTR, - AuthnLevel: ::std::os::raw::c_ulong, - AuthnSvc: ::std::os::raw::c_ulong, - AuthIdentity: RPC_AUTH_IDENTITY_HANDLE, - AuthzSvc: ::std::os::raw::c_ulong, - SecurityQos: *mut RPC_SECURITY_QOS, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingSetAuthInfoW( - Binding: RPC_BINDING_HANDLE, - ServerPrincName: RPC_WSTR, - AuthnLevel: ::std::os::raw::c_ulong, - AuthnSvc: ::std::os::raw::c_ulong, - AuthIdentity: RPC_AUTH_IDENTITY_HANDLE, - AuthzSvc: ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingSetAuthInfoExW( - Binding: RPC_BINDING_HANDLE, - ServerPrincName: RPC_WSTR, - AuthnLevel: ::std::os::raw::c_ulong, - AuthnSvc: ::std::os::raw::c_ulong, - AuthIdentity: RPC_AUTH_IDENTITY_HANDLE, - AuthzSvc: ::std::os::raw::c_ulong, - SecurityQOS: *mut RPC_SECURITY_QOS, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingInqAuthInfoExA( - Binding: RPC_BINDING_HANDLE, - ServerPrincName: *mut RPC_CSTR, - AuthnLevel: *mut ::std::os::raw::c_ulong, - AuthnSvc: *mut ::std::os::raw::c_ulong, - AuthIdentity: *mut RPC_AUTH_IDENTITY_HANDLE, - AuthzSvc: *mut ::std::os::raw::c_ulong, - RpcQosVersion: ::std::os::raw::c_ulong, - SecurityQOS: *mut RPC_SECURITY_QOS, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingInqAuthInfoExW( - Binding: RPC_BINDING_HANDLE, - ServerPrincName: *mut RPC_WSTR, - AuthnLevel: *mut ::std::os::raw::c_ulong, - AuthnSvc: *mut ::std::os::raw::c_ulong, - AuthIdentity: *mut RPC_AUTH_IDENTITY_HANDLE, - AuthzSvc: *mut ::std::os::raw::c_ulong, - RpcQosVersion: ::std::os::raw::c_ulong, - SecurityQOS: *mut RPC_SECURITY_QOS, - ) -> RPC_STATUS; -} -pub type RPC_AUTH_KEY_RETRIEVAL_FN = ::std::option::Option< - unsafe extern "C" fn( - Arg: *mut ::std::os::raw::c_void, - ServerPrincName: RPC_WSTR, - KeyVer: ::std::os::raw::c_ulong, - Key: *mut *mut ::std::os::raw::c_void, - Status: *mut RPC_STATUS, - ), ->; -extern "C" { - pub fn RpcServerCompleteSecurityCallback( - BindingHandle: RPC_BINDING_HANDLE, - Status: RPC_STATUS, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerRegisterAuthInfoA( - ServerPrincName: RPC_CSTR, - AuthnSvc: ::std::os::raw::c_ulong, - GetKeyFn: RPC_AUTH_KEY_RETRIEVAL_FN, - Arg: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerRegisterAuthInfoW( - ServerPrincName: RPC_WSTR, - AuthnSvc: ::std::os::raw::c_ulong, - GetKeyFn: RPC_AUTH_KEY_RETRIEVAL_FN, - Arg: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RPC_CLIENT_INFORMATION1 { - pub UserName: *mut ::std::os::raw::c_uchar, - pub ComputerName: *mut ::std::os::raw::c_uchar, - pub Privilege: ::std::os::raw::c_ushort, - pub AuthFlags: ::std::os::raw::c_ulong, -} -pub type PRPC_CLIENT_INFORMATION1 = *mut RPC_CLIENT_INFORMATION1; -extern "C" { - pub fn RpcBindingServerFromClient( - ClientBinding: RPC_BINDING_HANDLE, - ServerBinding: *mut RPC_BINDING_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcRaiseException(exception: RPC_STATUS) -> !; -} -extern "C" { - pub fn RpcTestCancel() -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerTestCancel(BindingHandle: RPC_BINDING_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcCancelThread(Thread: *mut ::std::os::raw::c_void) -> RPC_STATUS; -} -extern "C" { - pub fn RpcCancelThreadEx( - Thread: *mut ::std::os::raw::c_void, - Timeout: ::std::os::raw::c_long, - ) -> RPC_STATUS; -} -extern "C" { - pub fn UuidCreate(Uuid: *mut UUID) -> RPC_STATUS; -} -extern "C" { - pub fn UuidCreateSequential(Uuid: *mut UUID) -> RPC_STATUS; -} -extern "C" { - pub fn UuidToStringA(Uuid: *const UUID, StringUuid: *mut RPC_CSTR) -> RPC_STATUS; -} -extern "C" { - pub fn UuidFromStringA(StringUuid: RPC_CSTR, Uuid: *mut UUID) -> RPC_STATUS; -} -extern "C" { - pub fn UuidToStringW(Uuid: *const UUID, StringUuid: *mut RPC_WSTR) -> RPC_STATUS; -} -extern "C" { - pub fn UuidFromStringW(StringUuid: RPC_WSTR, Uuid: *mut UUID) -> RPC_STATUS; -} -extern "C" { - pub fn UuidCompare( - Uuid1: *mut UUID, - Uuid2: *mut UUID, - Status: *mut RPC_STATUS, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn UuidCreateNil(NilUuid: *mut UUID) -> RPC_STATUS; -} -extern "C" { - pub fn UuidEqual( - Uuid1: *mut UUID, - Uuid2: *mut UUID, - Status: *mut RPC_STATUS, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn UuidHash(Uuid: *mut UUID, Status: *mut RPC_STATUS) -> ::std::os::raw::c_ushort; -} -extern "C" { - pub fn UuidIsNil(Uuid: *mut UUID, Status: *mut RPC_STATUS) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn RpcEpRegisterNoReplaceA( - IfSpec: RPC_IF_HANDLE, - BindingVector: *mut RPC_BINDING_VECTOR, - UuidVector: *mut UUID_VECTOR, - Annotation: RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcEpRegisterNoReplaceW( - IfSpec: RPC_IF_HANDLE, - BindingVector: *mut RPC_BINDING_VECTOR, - UuidVector: *mut UUID_VECTOR, - Annotation: RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcEpRegisterA( - IfSpec: RPC_IF_HANDLE, - BindingVector: *mut RPC_BINDING_VECTOR, - UuidVector: *mut UUID_VECTOR, - Annotation: RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcEpRegisterW( - IfSpec: RPC_IF_HANDLE, - BindingVector: *mut RPC_BINDING_VECTOR, - UuidVector: *mut UUID_VECTOR, - Annotation: RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcEpUnregister( - IfSpec: RPC_IF_HANDLE, - BindingVector: *mut RPC_BINDING_VECTOR, - UuidVector: *mut UUID_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn DceErrorInqTextA(RpcStatus: RPC_STATUS, ErrorText: RPC_CSTR) -> RPC_STATUS; -} -extern "C" { - pub fn DceErrorInqTextW(RpcStatus: RPC_STATUS, ErrorText: RPC_WSTR) -> RPC_STATUS; -} -pub type RPC_EP_INQ_HANDLE = *mut I_RPC_HANDLE; -extern "C" { - pub fn RpcMgmtEpEltInqBegin( - EpBinding: RPC_BINDING_HANDLE, - InquiryType: ::std::os::raw::c_ulong, - IfId: *mut RPC_IF_ID, - VersOption: ::std::os::raw::c_ulong, - ObjectUuid: *mut UUID, - InquiryContext: *mut RPC_EP_INQ_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtEpEltInqDone(InquiryContext: *mut RPC_EP_INQ_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtEpEltInqNextA( - InquiryContext: RPC_EP_INQ_HANDLE, - IfId: *mut RPC_IF_ID, - Binding: *mut RPC_BINDING_HANDLE, - ObjectUuid: *mut UUID, - Annotation: *mut RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtEpEltInqNextW( - InquiryContext: RPC_EP_INQ_HANDLE, - IfId: *mut RPC_IF_ID, - Binding: *mut RPC_BINDING_HANDLE, - ObjectUuid: *mut UUID, - Annotation: *mut RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcMgmtEpUnregister( - EpBinding: RPC_BINDING_HANDLE, - IfId: *mut RPC_IF_ID, - Binding: RPC_BINDING_HANDLE, - ObjectUuid: *mut UUID, - ) -> RPC_STATUS; -} -pub type RPC_MGMT_AUTHORIZATION_FN = ::std::option::Option< - unsafe extern "C" fn( - ClientBinding: RPC_BINDING_HANDLE, - RequestedMgmtOperation: ::std::os::raw::c_ulong, - Status: *mut RPC_STATUS, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - pub fn RpcMgmtSetAuthorizationFn(AuthorizationFn: RPC_MGMT_AUTHORIZATION_FN) -> RPC_STATUS; -} -extern "C" { - pub fn RpcExceptionFilter(ExceptionCode: ::std::os::raw::c_ulong) -> ::std::os::raw::c_int; -} -pub type RPC_INTERFACE_GROUP = *mut ::std::os::raw::c_void; -pub type PRPC_INTERFACE_GROUP = *mut *mut ::std::os::raw::c_void; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RPC_ENDPOINT_TEMPLATEW { - pub Version: ::std::os::raw::c_ulong, - pub ProtSeq: RPC_WSTR, - pub Endpoint: RPC_WSTR, - pub SecurityDescriptor: *mut ::std::os::raw::c_void, - pub Backlog: ::std::os::raw::c_ulong, -} -pub type PRPC_ENDPOINT_TEMPLATEW = *mut RPC_ENDPOINT_TEMPLATEW; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RPC_ENDPOINT_TEMPLATEA { - pub Version: ::std::os::raw::c_ulong, - pub ProtSeq: RPC_CSTR, - pub Endpoint: RPC_CSTR, - pub SecurityDescriptor: *mut ::std::os::raw::c_void, - pub Backlog: ::std::os::raw::c_ulong, -} -pub type PRPC_ENDPOINT_TEMPLATEA = *mut RPC_ENDPOINT_TEMPLATEA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RPC_INTERFACE_TEMPLATEA { - pub Version: ::std::os::raw::c_ulong, - pub IfSpec: RPC_IF_HANDLE, - pub MgrTypeUuid: *mut UUID, - pub MgrEpv: *mut ::std::os::raw::c_void, - pub Flags: ::std::os::raw::c_uint, - pub MaxCalls: ::std::os::raw::c_uint, - pub MaxRpcSize: ::std::os::raw::c_uint, - pub IfCallback: ::std::option::Option< - unsafe extern "C" fn(arg1: RPC_IF_HANDLE, arg2: *mut ::std::os::raw::c_void) -> RPC_STATUS, - >, - pub UuidVector: *mut UUID_VECTOR, - pub Annotation: RPC_CSTR, - pub SecurityDescriptor: *mut ::std::os::raw::c_void, -} -pub type PRPC_INTERFACE_TEMPLATEA = *mut RPC_INTERFACE_TEMPLATEA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RPC_INTERFACE_TEMPLATEW { - pub Version: ::std::os::raw::c_ulong, - pub IfSpec: RPC_IF_HANDLE, - pub MgrTypeUuid: *mut UUID, - pub MgrEpv: *mut ::std::os::raw::c_void, - pub Flags: ::std::os::raw::c_uint, - pub MaxCalls: ::std::os::raw::c_uint, - pub MaxRpcSize: ::std::os::raw::c_uint, - pub IfCallback: ::std::option::Option< - unsafe extern "C" fn(arg1: RPC_IF_HANDLE, arg2: *mut ::std::os::raw::c_void) -> RPC_STATUS, - >, - pub UuidVector: *mut UUID_VECTOR, - pub Annotation: RPC_WSTR, - pub SecurityDescriptor: *mut ::std::os::raw::c_void, -} -pub type PRPC_INTERFACE_TEMPLATEW = *mut RPC_INTERFACE_TEMPLATEW; -extern "C" { - pub fn RpcServerInterfaceGroupCreateW( - Interfaces: *mut RPC_INTERFACE_TEMPLATEW, - NumIfs: ::std::os::raw::c_ulong, - Endpoints: *mut RPC_ENDPOINT_TEMPLATEW, - NumEndpoints: ::std::os::raw::c_ulong, - IdlePeriod: ::std::os::raw::c_ulong, - IdleCallbackFn: ::std::option::Option< - unsafe extern "C" fn( - arg1: RPC_INTERFACE_GROUP, - arg2: *mut ::std::os::raw::c_void, - arg3: ::std::os::raw::c_ulong, - ), - >, - IdleCallbackContext: *mut ::std::os::raw::c_void, - IfGroup: PRPC_INTERFACE_GROUP, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerInterfaceGroupCreateA( - Interfaces: *mut RPC_INTERFACE_TEMPLATEA, - NumIfs: ::std::os::raw::c_ulong, - Endpoints: *mut RPC_ENDPOINT_TEMPLATEA, - NumEndpoints: ::std::os::raw::c_ulong, - IdlePeriod: ::std::os::raw::c_ulong, - IdleCallbackFn: ::std::option::Option< - unsafe extern "C" fn( - arg1: RPC_INTERFACE_GROUP, - arg2: *mut ::std::os::raw::c_void, - arg3: ::std::os::raw::c_ulong, - ), - >, - IdleCallbackContext: *mut ::std::os::raw::c_void, - IfGroup: PRPC_INTERFACE_GROUP, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerInterfaceGroupClose(IfGroup: RPC_INTERFACE_GROUP) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerInterfaceGroupActivate(IfGroup: RPC_INTERFACE_GROUP) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerInterfaceGroupDeactivate( - IfGroup: RPC_INTERFACE_GROUP, - ForceDeactivation: ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerInterfaceGroupInqBindings( - IfGroup: RPC_INTERFACE_GROUP, - BindingVector: *mut *mut RPC_BINDING_VECTOR, - ) -> RPC_STATUS; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_VERSION { - pub MajorVersion: ::std::os::raw::c_ushort, - pub MinorVersion: ::std::os::raw::c_ushort, -} -pub type RPC_VERSION = _RPC_VERSION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_SYNTAX_IDENTIFIER { - pub SyntaxGUID: GUID, - pub SyntaxVersion: RPC_VERSION, -} -pub type RPC_SYNTAX_IDENTIFIER = _RPC_SYNTAX_IDENTIFIER; -pub type PRPC_SYNTAX_IDENTIFIER = *mut _RPC_SYNTAX_IDENTIFIER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_MESSAGE { - pub Handle: RPC_BINDING_HANDLE, - pub DataRepresentation: ::std::os::raw::c_ulong, - pub Buffer: *mut ::std::os::raw::c_void, - pub BufferLength: ::std::os::raw::c_uint, - pub ProcNum: ::std::os::raw::c_uint, - pub TransferSyntax: PRPC_SYNTAX_IDENTIFIER, - pub RpcInterfaceInformation: *mut ::std::os::raw::c_void, - pub ReservedForRuntime: *mut ::std::os::raw::c_void, - pub ManagerEpv: *mut ::std::os::raw::c_void, - pub ImportContext: *mut ::std::os::raw::c_void, - pub RpcFlags: ::std::os::raw::c_ulong, -} -pub type RPC_MESSAGE = _RPC_MESSAGE; -pub type PRPC_MESSAGE = *mut _RPC_MESSAGE; -pub const RPC_ADDRESS_CHANGE_TYPE_PROTOCOL_NOT_LOADED: RPC_ADDRESS_CHANGE_TYPE = 1; -pub const RPC_ADDRESS_CHANGE_TYPE_PROTOCOL_LOADED: RPC_ADDRESS_CHANGE_TYPE = 2; -pub const RPC_ADDRESS_CHANGE_TYPE_PROTOCOL_ADDRESS_CHANGE: RPC_ADDRESS_CHANGE_TYPE = 3; -pub type RPC_ADDRESS_CHANGE_TYPE = ::std::os::raw::c_int; -pub type RPC_DISPATCH_FUNCTION = ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RPC_DISPATCH_TABLE { - pub DispatchTableCount: ::std::os::raw::c_uint, - pub DispatchTable: *mut RPC_DISPATCH_FUNCTION, - pub Reserved: LONG_PTR, -} -pub type PRPC_DISPATCH_TABLE = *mut RPC_DISPATCH_TABLE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_PROTSEQ_ENDPOINT { - pub RpcProtocolSequence: *mut ::std::os::raw::c_uchar, - pub Endpoint: *mut ::std::os::raw::c_uchar, -} -pub type RPC_PROTSEQ_ENDPOINT = _RPC_PROTSEQ_ENDPOINT; -pub type PRPC_PROTSEQ_ENDPOINT = *mut _RPC_PROTSEQ_ENDPOINT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_SERVER_INTERFACE { - pub Length: ::std::os::raw::c_uint, - pub InterfaceId: RPC_SYNTAX_IDENTIFIER, - pub TransferSyntax: RPC_SYNTAX_IDENTIFIER, - pub DispatchTable: PRPC_DISPATCH_TABLE, - pub RpcProtseqEndpointCount: ::std::os::raw::c_uint, - pub RpcProtseqEndpoint: PRPC_PROTSEQ_ENDPOINT, - pub DefaultManagerEpv: *mut ::std::os::raw::c_void, - pub InterpreterInfo: *const ::std::os::raw::c_void, - pub Flags: ::std::os::raw::c_uint, -} -pub type RPC_SERVER_INTERFACE = _RPC_SERVER_INTERFACE; -pub type PRPC_SERVER_INTERFACE = *mut _RPC_SERVER_INTERFACE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_CLIENT_INTERFACE { - pub Length: ::std::os::raw::c_uint, - pub InterfaceId: RPC_SYNTAX_IDENTIFIER, - pub TransferSyntax: RPC_SYNTAX_IDENTIFIER, - pub DispatchTable: PRPC_DISPATCH_TABLE, - pub RpcProtseqEndpointCount: ::std::os::raw::c_uint, - pub RpcProtseqEndpoint: PRPC_PROTSEQ_ENDPOINT, - pub Reserved: ULONG_PTR, - pub InterpreterInfo: *const ::std::os::raw::c_void, - pub Flags: ::std::os::raw::c_uint, -} -pub type RPC_CLIENT_INTERFACE = _RPC_CLIENT_INTERFACE; -pub type PRPC_CLIENT_INTERFACE = *mut _RPC_CLIENT_INTERFACE; -extern "C" { - pub fn I_RpcNegotiateTransferSyntax(Message: *mut RPC_MESSAGE) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcGetBuffer(Message: *mut RPC_MESSAGE) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcGetBufferWithObject(Message: *mut RPC_MESSAGE, ObjectUuid: *mut UUID) - -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcSendReceive(Message: *mut RPC_MESSAGE) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcFreeBuffer(Message: *mut RPC_MESSAGE) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcSend(Message: PRPC_MESSAGE) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcReceive(Message: PRPC_MESSAGE, Size: ::std::os::raw::c_uint) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcFreePipeBuffer(Message: *mut RPC_MESSAGE) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcReallocPipeBuffer( - Message: PRPC_MESSAGE, - NewSize: ::std::os::raw::c_uint, - ) -> RPC_STATUS; -} -pub type I_RPC_MUTEX = *mut ::std::os::raw::c_void; -extern "C" { - pub fn I_RpcRequestMutex(Mutex: *mut I_RPC_MUTEX); -} -extern "C" { - pub fn I_RpcClearMutex(Mutex: I_RPC_MUTEX); -} -extern "C" { - pub fn I_RpcDeleteMutex(Mutex: I_RPC_MUTEX); -} -extern "C" { - pub fn I_RpcAllocate(Size: ::std::os::raw::c_uint) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn I_RpcFree(Object: *mut ::std::os::raw::c_void); -} -extern "C" { - pub fn I_RpcFreeSystemHandleCollection( - CallObj: *mut ::std::os::raw::c_void, - FreeFlags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn I_RpcSetSystemHandle( - Handle: *mut ::std::os::raw::c_void, - Type: ::std::os::raw::c_uchar, - AccessMask: ::std::os::raw::c_ulong, - CallObj: *mut ::std::os::raw::c_void, - HandleIndex: *mut ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcGetSystemHandle( - pMemory: *mut ::std::os::raw::c_uchar, - Type: ::std::os::raw::c_uchar, - AccessMask: ::std::os::raw::c_ulong, - HandleIndex: ::std::os::raw::c_ulong, - CallObj: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcFreeSystemHandle( - Type: ::std::os::raw::c_uchar, - Handle: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - pub fn I_RpcPauseExecution(Milliseconds: ::std::os::raw::c_ulong); -} -extern "C" { - pub fn I_RpcGetExtendedError() -> RPC_STATUS; -} -pub const _LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION_MarshalDirectionMarshal: - _LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION = 0; -pub const _LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION_MarshalDirectionUnmarshal: - _LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION = 1; -pub type _LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION = ::std::os::raw::c_int; -pub use self::_LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION as LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION; -extern "C" { - pub fn I_RpcSystemHandleTypeSpecificWork( - Handle: *mut ::std::os::raw::c_void, - ActualType: ::std::os::raw::c_uchar, - IdlType: ::std::os::raw::c_uchar, - MarshalDirection: LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION, - ) -> RPC_STATUS; -} -pub type PRPC_RUNDOWN = - ::std::option::Option; -extern "C" { - pub fn I_RpcMonitorAssociation( - Handle: RPC_BINDING_HANDLE, - RundownRoutine: PRPC_RUNDOWN, - Context: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcStopMonitorAssociation(Handle: RPC_BINDING_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcGetCurrentCallHandle() -> RPC_BINDING_HANDLE; -} -extern "C" { - pub fn I_RpcGetAssociationContext( - BindingHandle: RPC_BINDING_HANDLE, - AssociationContext: *mut *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcGetServerContextList( - BindingHandle: RPC_BINDING_HANDLE, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn I_RpcSetServerContextList( - BindingHandle: RPC_BINDING_HANDLE, - ServerContextList: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - pub fn I_RpcNsInterfaceExported( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: *mut ::std::os::raw::c_ushort, - RpcInterfaceInformation: *mut RPC_SERVER_INTERFACE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcNsInterfaceUnexported( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: *mut ::std::os::raw::c_ushort, - RpcInterfaceInformation: *mut RPC_SERVER_INTERFACE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcBindingToStaticStringBindingW( - Binding: RPC_BINDING_HANDLE, - StringBinding: *mut *mut ::std::os::raw::c_ushort, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcBindingInqSecurityContext( - Binding: RPC_BINDING_HANDLE, - SecurityContextHandle: *mut *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_SEC_CONTEXT_KEY_INFO { - pub EncryptAlgorithm: ::std::os::raw::c_ulong, - pub KeySize: ::std::os::raw::c_ulong, - pub SignatureAlgorithm: ::std::os::raw::c_ulong, -} -pub type RPC_SEC_CONTEXT_KEY_INFO = _RPC_SEC_CONTEXT_KEY_INFO; -pub type PRPC_SEC_CONTEXT_KEY_INFO = *mut _RPC_SEC_CONTEXT_KEY_INFO; -extern "C" { - pub fn I_RpcBindingInqSecurityContextKeyInfo( - Binding: RPC_BINDING_HANDLE, - KeyInfo: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcBindingInqWireIdForSnego( - Binding: RPC_BINDING_HANDLE, - WireId: *mut ::std::os::raw::c_uchar, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcBindingInqMarshalledTargetInfo( - Binding: RPC_BINDING_HANDLE, - MarshalledTargetInfoSize: *mut ::std::os::raw::c_ulong, - MarshalledTargetInfo: *mut RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcBindingInqLocalClientPID( - Binding: RPC_BINDING_HANDLE, - Pid: *mut ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcBindingHandleToAsyncHandle( - Binding: RPC_BINDING_HANDLE, - AsyncHandle: *mut *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcNsBindingSetEntryNameW( - Binding: RPC_BINDING_HANDLE, - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcNsBindingSetEntryNameA( - Binding: RPC_BINDING_HANDLE, - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerUseProtseqEp2A( - NetworkAddress: RPC_CSTR, - Protseq: RPC_CSTR, - MaxCalls: ::std::os::raw::c_uint, - Endpoint: RPC_CSTR, - SecurityDescriptor: *mut ::std::os::raw::c_void, - Policy: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerUseProtseqEp2W( - NetworkAddress: RPC_WSTR, - Protseq: RPC_WSTR, - MaxCalls: ::std::os::raw::c_uint, - Endpoint: RPC_WSTR, - SecurityDescriptor: *mut ::std::os::raw::c_void, - Policy: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerUseProtseq2W( - NetworkAddress: RPC_WSTR, - Protseq: RPC_WSTR, - MaxCalls: ::std::os::raw::c_uint, - SecurityDescriptor: *mut ::std::os::raw::c_void, - Policy: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerUseProtseq2A( - NetworkAddress: RPC_CSTR, - Protseq: RPC_CSTR, - MaxCalls: ::std::os::raw::c_uint, - SecurityDescriptor: *mut ::std::os::raw::c_void, - Policy: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerStartService( - Protseq: RPC_WSTR, - Endpoint: RPC_WSTR, - IfSpec: RPC_IF_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcBindingInqDynamicEndpointW( - Binding: RPC_BINDING_HANDLE, - DynamicEndpoint: *mut RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcBindingInqDynamicEndpointA( - Binding: RPC_BINDING_HANDLE, - DynamicEndpoint: *mut RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerCheckClientRestriction(Context: RPC_BINDING_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcBindingInqTransportType( - Binding: RPC_BINDING_HANDLE, - Type: *mut ::std::os::raw::c_uint, - ) -> RPC_STATUS; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_TRANSFER_SYNTAX { - pub Uuid: UUID, - pub VersMajor: ::std::os::raw::c_ushort, - pub VersMinor: ::std::os::raw::c_ushort, -} -pub type RPC_TRANSFER_SYNTAX = _RPC_TRANSFER_SYNTAX; -extern "C" { - pub fn I_RpcIfInqTransferSyntaxes( - RpcIfHandle: RPC_IF_HANDLE, - TransferSyntaxes: *mut RPC_TRANSFER_SYNTAX, - TransferSyntaxSize: ::std::os::raw::c_uint, - TransferSyntaxCount: *mut ::std::os::raw::c_uint, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_UuidCreate(Uuid: *mut UUID) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcUninitializeNdrOle(); -} -extern "C" { - pub fn I_RpcBindingCopy( - SourceBinding: RPC_BINDING_HANDLE, - DestinationBinding: *mut RPC_BINDING_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcBindingIsClientLocal( - BindingHandle: RPC_BINDING_HANDLE, - ClientLocalFlag: *mut ::std::os::raw::c_uint, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcBindingInqConnId( - Binding: RPC_BINDING_HANDLE, - ConnId: *mut *mut ::std::os::raw::c_void, - pfFirstCall: *mut ::std::os::raw::c_int, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcBindingCreateNP( - ServerName: RPC_WSTR, - ServiceName: RPC_WSTR, - NetworkOptions: RPC_WSTR, - Binding: *mut RPC_BINDING_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcSsDontSerializeContext(); -} -extern "C" { - pub fn I_RpcLaunchDatagramReceiveThread(pAddress: *mut ::std::os::raw::c_void) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerRegisterForwardFunction( - pForwardFunction: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut UUID, - arg2: *mut RPC_VERSION, - arg3: *mut UUID, - arg4: *mut ::std::os::raw::c_uchar, - arg5: *mut *mut ::std::os::raw::c_void, - ) -> RPC_STATUS, - >, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerInqAddressChangeFn( - ) -> ::std::option::Option; -} -extern "C" { - pub fn I_RpcServerSetAddressChangeFn( - pAddressChangeFn: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void), - >, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerInqLocalConnAddress( - Binding: RPC_BINDING_HANDLE, - Buffer: *mut ::std::os::raw::c_void, - BufferSize: *mut ::std::os::raw::c_ulong, - AddressFormat: *mut ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerInqRemoteConnAddress( - Binding: RPC_BINDING_HANDLE, - Buffer: *mut ::std::os::raw::c_void, - BufferSize: *mut ::std::os::raw::c_ulong, - AddressFormat: *mut ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcSessionStrictContextHandle(); -} -extern "C" { - pub fn I_RpcTurnOnEEInfoPropagation() -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcConnectionInqSockBuffSize( - RecvBuffSize: *mut ::std::os::raw::c_ulong, - SendBuffSize: *mut ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcConnectionSetSockBuffSize( - RecvBuffSize: ::std::os::raw::c_ulong, - SendBuffSize: ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -pub type RPCLT_PDU_FILTER_FUNC = ::std::option::Option< - unsafe extern "C" fn( - Buffer: *mut ::std::os::raw::c_void, - BufferLength: ::std::os::raw::c_uint, - fDatagram: ::std::os::raw::c_int, - ), ->; -pub type RPC_SETFILTER_FUNC = - ::std::option::Option; -extern "C" { - pub fn I_RpcServerStartListening(hWnd: *mut ::std::os::raw::c_void) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerStopListening() -> RPC_STATUS; -} -pub type RPC_BLOCKING_FN = ::std::option::Option< - unsafe extern "C" fn( - hWnd: *mut ::std::os::raw::c_void, - Context: *mut ::std::os::raw::c_void, - hSyncEvent: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS, ->; -extern "C" { - pub fn I_RpcBindingSetAsync( - Binding: RPC_BINDING_HANDLE, - BlockingFn: RPC_BLOCKING_FN, - ServerTid: ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcSetThreadParams( - fClientFree: ::std::os::raw::c_int, - Context: *mut ::std::os::raw::c_void, - hWndClient: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcWindowProc( - hWnd: *mut ::std::os::raw::c_void, - Message: ::std::os::raw::c_uint, - wParam: ::std::os::raw::c_uint, - lParam: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_uint; -} -extern "C" { - pub fn I_RpcServerUnregisterEndpointA(Protseq: RPC_CSTR, Endpoint: RPC_CSTR) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerUnregisterEndpointW(Protseq: RPC_WSTR, Endpoint: RPC_WSTR) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerInqTransportType(Type: *mut ::std::os::raw::c_uint) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcMapWin32Status(Status: RPC_STATUS) -> ::std::os::raw::c_long; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_C_OPT_COOKIE_AUTH_DESCRIPTOR { - pub BufferSize: ::std::os::raw::c_ulong, - pub Buffer: *mut ::std::os::raw::c_char, -} -pub type RPC_C_OPT_COOKIE_AUTH_DESCRIPTOR = _RPC_C_OPT_COOKIE_AUTH_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RDR_CALLOUT_STATE { - pub LastError: RPC_STATUS, - pub LastEEInfo: *mut ::std::os::raw::c_void, - pub LastCalledStage: RPC_HTTP_REDIRECTOR_STAGE, - pub ServerName: *mut ::std::os::raw::c_ushort, - pub ServerPort: *mut ::std::os::raw::c_ushort, - pub RemoteUser: *mut ::std::os::raw::c_ushort, - pub AuthType: *mut ::std::os::raw::c_ushort, - pub ResourceTypePresent: ::std::os::raw::c_uchar, - pub SessionIdPresent: ::std::os::raw::c_uchar, - pub InterfacePresent: ::std::os::raw::c_uchar, - pub ResourceType: UUID, - pub SessionId: UUID, - pub Interface: RPC_SYNTAX_IDENTIFIER, - pub CertContext: *mut ::std::os::raw::c_void, -} -pub type RDR_CALLOUT_STATE = _RDR_CALLOUT_STATE; -pub type I_RpcProxyIsValidMachineFn = ::std::option::Option< - unsafe extern "C" fn( - Machine: RPC_WSTR, - DotMachine: RPC_WSTR, - PortNumber: ::std::os::raw::c_ulong, - ) -> RPC_STATUS, ->; -pub type I_RpcProxyGetClientAddressFn = ::std::option::Option< - unsafe extern "C" fn( - Context: *mut ::std::os::raw::c_void, - Buffer: *mut ::std::os::raw::c_char, - BufferLength: *mut ::std::os::raw::c_ulong, - ) -> RPC_STATUS, ->; -pub type I_RpcProxyGetConnectionTimeoutFn = ::std::option::Option< - unsafe extern "C" fn(ConnectionTimeout: *mut ::std::os::raw::c_ulong) -> RPC_STATUS, ->; -pub type I_RpcPerformCalloutFn = ::std::option::Option< - unsafe extern "C" fn( - Context: *mut ::std::os::raw::c_void, - CallOutState: *mut RDR_CALLOUT_STATE, - Stage: RPC_HTTP_REDIRECTOR_STAGE, - ) -> RPC_STATUS, ->; -pub type I_RpcFreeCalloutStateFn = - ::std::option::Option; -pub type I_RpcProxyGetClientSessionAndResourceUUID = ::std::option::Option< - unsafe extern "C" fn( - Context: *mut ::std::os::raw::c_void, - SessionIdPresent: *mut ::std::os::raw::c_int, - SessionId: *mut UUID, - ResourceIdPresent: *mut ::std::os::raw::c_int, - ResourceId: *mut UUID, - ) -> RPC_STATUS, ->; -pub type I_RpcProxyFilterIfFn = ::std::option::Option< - unsafe extern "C" fn( - Context: *mut ::std::os::raw::c_void, - IfUuid: *mut UUID, - IfMajorVersion: ::std::os::raw::c_ushort, - fAllow: *mut ::std::os::raw::c_int, - ) -> RPC_STATUS, ->; -pub const RpcProxyPerfCounters_RpcCurrentUniqueUser: RpcProxyPerfCounters = 1; -pub const RpcProxyPerfCounters_RpcBackEndConnectionAttempts: RpcProxyPerfCounters = 2; -pub const RpcProxyPerfCounters_RpcBackEndConnectionFailed: RpcProxyPerfCounters = 3; -pub const RpcProxyPerfCounters_RpcRequestsPerSecond: RpcProxyPerfCounters = 4; -pub const RpcProxyPerfCounters_RpcIncomingConnections: RpcProxyPerfCounters = 5; -pub const RpcProxyPerfCounters_RpcIncomingBandwidth: RpcProxyPerfCounters = 6; -pub const RpcProxyPerfCounters_RpcOutgoingBandwidth: RpcProxyPerfCounters = 7; -pub const RpcProxyPerfCounters_RpcAttemptedLbsDecisions: RpcProxyPerfCounters = 8; -pub const RpcProxyPerfCounters_RpcFailedLbsDecisions: RpcProxyPerfCounters = 9; -pub const RpcProxyPerfCounters_RpcAttemptedLbsMessages: RpcProxyPerfCounters = 10; -pub const RpcProxyPerfCounters_RpcFailedLbsMessages: RpcProxyPerfCounters = 11; -pub const RpcProxyPerfCounters_RpcLastCounter: RpcProxyPerfCounters = 12; -pub type RpcProxyPerfCounters = ::std::os::raw::c_int; -pub use self::RpcProxyPerfCounters as RpcPerfCounters; -pub type I_RpcProxyUpdatePerfCounterFn = ::std::option::Option< - unsafe extern "C" fn( - Counter: RpcPerfCounters, - ModifyTrend: ::std::os::raw::c_int, - Size: ::std::os::raw::c_ulong, - ), ->; -pub type I_RpcProxyUpdatePerfCounterBackendServerFn = ::std::option::Option< - unsafe extern "C" fn( - MachineName: *mut ::std::os::raw::c_ushort, - IsConnectEvent: ::std::os::raw::c_int, - ), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagI_RpcProxyCallbackInterface { - pub IsValidMachineFn: I_RpcProxyIsValidMachineFn, - pub GetClientAddressFn: I_RpcProxyGetClientAddressFn, - pub GetConnectionTimeoutFn: I_RpcProxyGetConnectionTimeoutFn, - pub PerformCalloutFn: I_RpcPerformCalloutFn, - pub FreeCalloutStateFn: I_RpcFreeCalloutStateFn, - pub GetClientSessionAndResourceUUIDFn: I_RpcProxyGetClientSessionAndResourceUUID, - pub ProxyFilterIfFn: I_RpcProxyFilterIfFn, - pub RpcProxyUpdatePerfCounterFn: I_RpcProxyUpdatePerfCounterFn, - pub RpcProxyUpdatePerfCounterBackendServerFn: I_RpcProxyUpdatePerfCounterBackendServerFn, -} -pub type I_RpcProxyCallbackInterface = tagI_RpcProxyCallbackInterface; -extern "C" { - pub fn I_RpcProxyNewConnection( - ConnectionType: ::std::os::raw::c_ulong, - ServerAddress: *mut ::std::os::raw::c_ushort, - ServerPort: *mut ::std::os::raw::c_ushort, - MinConnTimeout: *mut ::std::os::raw::c_ushort, - ConnectionParameter: *mut ::std::os::raw::c_void, - CallOutState: *mut RDR_CALLOUT_STATE, - ProxyCallbackInterface: *mut I_RpcProxyCallbackInterface, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcReplyToClientWithStatus( - ConnectionParameter: *mut ::std::os::raw::c_void, - RpcStatus: RPC_STATUS, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcRecordCalloutFailure( - RpcStatus: RPC_STATUS, - CallOutState: *mut RDR_CALLOUT_STATE, - DllName: *mut ::std::os::raw::c_ushort, - ); -} -extern "C" { - pub fn I_RpcMgmtEnableDedicatedThreadPool() -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcGetDefaultSD(ppSecurityDescriptor: *mut *mut ::std::os::raw::c_void) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcOpenClientProcess( - Binding: RPC_BINDING_HANDLE, - DesiredAccess: ::std::os::raw::c_ulong, - ClientProcess: *mut *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcBindingIsServerLocal( - Binding: RPC_BINDING_HANDLE, - ServerLocalFlag: *mut ::std::os::raw::c_uint, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcBindingSetPrivateOption( - hBinding: RPC_BINDING_HANDLE, - option: ::std::os::raw::c_ulong, - optionValue: ULONG_PTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerSubscribeForDisconnectNotification( - Binding: RPC_BINDING_HANDLE, - hEvent: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerGetAssociationID( - Binding: RPC_BINDING_HANDLE, - AssociationID: *mut ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerDisableExceptionFilter() -> ::std::os::raw::c_long; -} -extern "C" { - pub fn I_RpcServerSubscribeForDisconnectNotification2( - Binding: RPC_BINDING_HANDLE, - hEvent: *mut ::std::os::raw::c_void, - SubscriptionId: *mut UUID, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcServerUnsubscribeForDisconnectNotification( - Binding: RPC_BINDING_HANDLE, - SubscriptionId: UUID, - ) -> RPC_STATUS; -} -pub type RPC_NS_HANDLE = *mut ::std::os::raw::c_void; -extern "C" { - pub fn RpcNsBindingExportA( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_CSTR, - IfSpec: RPC_IF_HANDLE, - BindingVec: *mut RPC_BINDING_VECTOR, - ObjectUuidVec: *mut UUID_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingUnexportA( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_CSTR, - IfSpec: RPC_IF_HANDLE, - ObjectUuidVec: *mut UUID_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingExportW( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_WSTR, - IfSpec: RPC_IF_HANDLE, - BindingVec: *mut RPC_BINDING_VECTOR, - ObjectUuidVec: *mut UUID_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingUnexportW( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_WSTR, - IfSpec: RPC_IF_HANDLE, - ObjectUuidVec: *mut UUID_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingExportPnPA( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_CSTR, - IfSpec: RPC_IF_HANDLE, - ObjectVector: *mut UUID_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingUnexportPnPA( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_CSTR, - IfSpec: RPC_IF_HANDLE, - ObjectVector: *mut UUID_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingExportPnPW( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_WSTR, - IfSpec: RPC_IF_HANDLE, - ObjectVector: *mut UUID_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingUnexportPnPW( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_WSTR, - IfSpec: RPC_IF_HANDLE, - ObjectVector: *mut UUID_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingLookupBeginA( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_CSTR, - IfSpec: RPC_IF_HANDLE, - ObjUuid: *mut UUID, - BindingMaxCount: ::std::os::raw::c_ulong, - LookupContext: *mut RPC_NS_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingLookupBeginW( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_WSTR, - IfSpec: RPC_IF_HANDLE, - ObjUuid: *mut UUID, - BindingMaxCount: ::std::os::raw::c_ulong, - LookupContext: *mut RPC_NS_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingLookupNext( - LookupContext: RPC_NS_HANDLE, - BindingVec: *mut *mut RPC_BINDING_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingLookupDone(LookupContext: *mut RPC_NS_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsGroupDeleteA( - GroupNameSyntax: ::std::os::raw::c_ulong, - GroupName: RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsGroupMbrAddA( - GroupNameSyntax: ::std::os::raw::c_ulong, - GroupName: RPC_CSTR, - MemberNameSyntax: ::std::os::raw::c_ulong, - MemberName: RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsGroupMbrRemoveA( - GroupNameSyntax: ::std::os::raw::c_ulong, - GroupName: RPC_CSTR, - MemberNameSyntax: ::std::os::raw::c_ulong, - MemberName: RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsGroupMbrInqBeginA( - GroupNameSyntax: ::std::os::raw::c_ulong, - GroupName: RPC_CSTR, - MemberNameSyntax: ::std::os::raw::c_ulong, - InquiryContext: *mut RPC_NS_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsGroupMbrInqNextA( - InquiryContext: RPC_NS_HANDLE, - MemberName: *mut RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsGroupDeleteW( - GroupNameSyntax: ::std::os::raw::c_ulong, - GroupName: RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsGroupMbrAddW( - GroupNameSyntax: ::std::os::raw::c_ulong, - GroupName: RPC_WSTR, - MemberNameSyntax: ::std::os::raw::c_ulong, - MemberName: RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsGroupMbrRemoveW( - GroupNameSyntax: ::std::os::raw::c_ulong, - GroupName: RPC_WSTR, - MemberNameSyntax: ::std::os::raw::c_ulong, - MemberName: RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsGroupMbrInqBeginW( - GroupNameSyntax: ::std::os::raw::c_ulong, - GroupName: RPC_WSTR, - MemberNameSyntax: ::std::os::raw::c_ulong, - InquiryContext: *mut RPC_NS_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsGroupMbrInqNextW( - InquiryContext: RPC_NS_HANDLE, - MemberName: *mut RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsGroupMbrInqDone(InquiryContext: *mut RPC_NS_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsProfileDeleteA( - ProfileNameSyntax: ::std::os::raw::c_ulong, - ProfileName: RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsProfileEltAddA( - ProfileNameSyntax: ::std::os::raw::c_ulong, - ProfileName: RPC_CSTR, - IfId: *mut RPC_IF_ID, - MemberNameSyntax: ::std::os::raw::c_ulong, - MemberName: RPC_CSTR, - Priority: ::std::os::raw::c_ulong, - Annotation: RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsProfileEltRemoveA( - ProfileNameSyntax: ::std::os::raw::c_ulong, - ProfileName: RPC_CSTR, - IfId: *mut RPC_IF_ID, - MemberNameSyntax: ::std::os::raw::c_ulong, - MemberName: RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsProfileEltInqBeginA( - ProfileNameSyntax: ::std::os::raw::c_ulong, - ProfileName: RPC_CSTR, - InquiryType: ::std::os::raw::c_ulong, - IfId: *mut RPC_IF_ID, - VersOption: ::std::os::raw::c_ulong, - MemberNameSyntax: ::std::os::raw::c_ulong, - MemberName: RPC_CSTR, - InquiryContext: *mut RPC_NS_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsProfileEltInqNextA( - InquiryContext: RPC_NS_HANDLE, - IfId: *mut RPC_IF_ID, - MemberName: *mut RPC_CSTR, - Priority: *mut ::std::os::raw::c_ulong, - Annotation: *mut RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsProfileDeleteW( - ProfileNameSyntax: ::std::os::raw::c_ulong, - ProfileName: RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsProfileEltAddW( - ProfileNameSyntax: ::std::os::raw::c_ulong, - ProfileName: RPC_WSTR, - IfId: *mut RPC_IF_ID, - MemberNameSyntax: ::std::os::raw::c_ulong, - MemberName: RPC_WSTR, - Priority: ::std::os::raw::c_ulong, - Annotation: RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsProfileEltRemoveW( - ProfileNameSyntax: ::std::os::raw::c_ulong, - ProfileName: RPC_WSTR, - IfId: *mut RPC_IF_ID, - MemberNameSyntax: ::std::os::raw::c_ulong, - MemberName: RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsProfileEltInqBeginW( - ProfileNameSyntax: ::std::os::raw::c_ulong, - ProfileName: RPC_WSTR, - InquiryType: ::std::os::raw::c_ulong, - IfId: *mut RPC_IF_ID, - VersOption: ::std::os::raw::c_ulong, - MemberNameSyntax: ::std::os::raw::c_ulong, - MemberName: RPC_WSTR, - InquiryContext: *mut RPC_NS_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsProfileEltInqNextW( - InquiryContext: RPC_NS_HANDLE, - IfId: *mut RPC_IF_ID, - MemberName: *mut RPC_WSTR, - Priority: *mut ::std::os::raw::c_ulong, - Annotation: *mut RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsProfileEltInqDone(InquiryContext: *mut RPC_NS_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsEntryObjectInqBeginA( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_CSTR, - InquiryContext: *mut RPC_NS_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsEntryObjectInqBeginW( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_WSTR, - InquiryContext: *mut RPC_NS_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsEntryObjectInqNext(InquiryContext: RPC_NS_HANDLE, ObjUuid: *mut UUID) - -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsEntryObjectInqDone(InquiryContext: *mut RPC_NS_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsEntryExpandNameA( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_CSTR, - ExpandedName: *mut RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsMgmtBindingUnexportA( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_CSTR, - IfId: *mut RPC_IF_ID, - VersOption: ::std::os::raw::c_ulong, - ObjectUuidVec: *mut UUID_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsMgmtEntryCreateA( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsMgmtEntryDeleteA( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_CSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsMgmtEntryInqIfIdsA( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_CSTR, - IfIdVec: *mut *mut RPC_IF_ID_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsMgmtHandleSetExpAge( - NsHandle: RPC_NS_HANDLE, - ExpirationAge: ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsMgmtInqExpAge(ExpirationAge: *mut ::std::os::raw::c_ulong) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsMgmtSetExpAge(ExpirationAge: ::std::os::raw::c_ulong) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsEntryExpandNameW( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_WSTR, - ExpandedName: *mut RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsMgmtBindingUnexportW( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_WSTR, - IfId: *mut RPC_IF_ID, - VersOption: ::std::os::raw::c_ulong, - ObjectUuidVec: *mut UUID_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsMgmtEntryCreateW( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsMgmtEntryDeleteW( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_WSTR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsMgmtEntryInqIfIdsW( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_WSTR, - IfIdVec: *mut *mut RPC_IF_ID_VECTOR, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingImportBeginA( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_CSTR, - IfSpec: RPC_IF_HANDLE, - ObjUuid: *mut UUID, - ImportContext: *mut RPC_NS_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingImportBeginW( - EntryNameSyntax: ::std::os::raw::c_ulong, - EntryName: RPC_WSTR, - IfSpec: RPC_IF_HANDLE, - ObjUuid: *mut UUID, - ImportContext: *mut RPC_NS_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingImportNext( - ImportContext: RPC_NS_HANDLE, - Binding: *mut RPC_BINDING_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingImportDone(ImportContext: *mut RPC_NS_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcNsBindingSelect( - BindingVec: *mut RPC_BINDING_VECTOR, - Binding: *mut RPC_BINDING_HANDLE, - ) -> RPC_STATUS; -} -pub const _RPC_NOTIFICATION_TYPES_RpcNotificationTypeNone: _RPC_NOTIFICATION_TYPES = 0; -pub const _RPC_NOTIFICATION_TYPES_RpcNotificationTypeEvent: _RPC_NOTIFICATION_TYPES = 1; -pub const _RPC_NOTIFICATION_TYPES_RpcNotificationTypeApc: _RPC_NOTIFICATION_TYPES = 2; -pub const _RPC_NOTIFICATION_TYPES_RpcNotificationTypeIoc: _RPC_NOTIFICATION_TYPES = 3; -pub const _RPC_NOTIFICATION_TYPES_RpcNotificationTypeHwnd: _RPC_NOTIFICATION_TYPES = 4; -pub const _RPC_NOTIFICATION_TYPES_RpcNotificationTypeCallback: _RPC_NOTIFICATION_TYPES = 5; -pub type _RPC_NOTIFICATION_TYPES = ::std::os::raw::c_int; -pub use self::_RPC_NOTIFICATION_TYPES as RPC_NOTIFICATION_TYPES; -pub const _RPC_ASYNC_EVENT_RpcCallComplete: _RPC_ASYNC_EVENT = 0; -pub const _RPC_ASYNC_EVENT_RpcSendComplete: _RPC_ASYNC_EVENT = 1; -pub const _RPC_ASYNC_EVENT_RpcReceiveComplete: _RPC_ASYNC_EVENT = 2; -pub const _RPC_ASYNC_EVENT_RpcClientDisconnect: _RPC_ASYNC_EVENT = 3; -pub const _RPC_ASYNC_EVENT_RpcClientCancel: _RPC_ASYNC_EVENT = 4; -pub type _RPC_ASYNC_EVENT = ::std::os::raw::c_int; -pub use self::_RPC_ASYNC_EVENT as RPC_ASYNC_EVENT; -pub type PFN_RPCNOTIFICATION_ROUTINE = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut _RPC_ASYNC_STATE, - arg2: *mut ::std::os::raw::c_void, - arg3: RPC_ASYNC_EVENT, - ), ->; -#[repr(C)] -#[derive(Copy, Clone)] -pub union _RPC_ASYNC_NOTIFICATION_INFO { - pub APC: _RPC_ASYNC_NOTIFICATION_INFO__bindgen_ty_1, - pub IOC: _RPC_ASYNC_NOTIFICATION_INFO__bindgen_ty_2, - pub HWND: _RPC_ASYNC_NOTIFICATION_INFO__bindgen_ty_3, - pub hEvent: HANDLE, - pub NotificationRoutine: PFN_RPCNOTIFICATION_ROUTINE, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_ASYNC_NOTIFICATION_INFO__bindgen_ty_1 { - pub NotificationRoutine: PFN_RPCNOTIFICATION_ROUTINE, - pub hThread: HANDLE, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_ASYNC_NOTIFICATION_INFO__bindgen_ty_2 { - pub hIOPort: HANDLE, - pub dwNumberOfBytesTransferred: DWORD, - pub dwCompletionKey: DWORD_PTR, - pub lpOverlapped: LPOVERLAPPED, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_ASYNC_NOTIFICATION_INFO__bindgen_ty_3 { - pub hWnd: HWND, - pub Msg: UINT, -} -pub type RPC_ASYNC_NOTIFICATION_INFO = _RPC_ASYNC_NOTIFICATION_INFO; -pub type PRPC_ASYNC_NOTIFICATION_INFO = *mut _RPC_ASYNC_NOTIFICATION_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _RPC_ASYNC_STATE { - pub Size: ::std::os::raw::c_uint, - pub Signature: ::std::os::raw::c_ulong, - pub Lock: ::std::os::raw::c_long, - pub Flags: ::std::os::raw::c_ulong, - pub StubInfo: *mut ::std::os::raw::c_void, - pub UserInfo: *mut ::std::os::raw::c_void, - pub RuntimeInfo: *mut ::std::os::raw::c_void, - pub Event: RPC_ASYNC_EVENT, - pub NotificationType: RPC_NOTIFICATION_TYPES, - pub u: RPC_ASYNC_NOTIFICATION_INFO, - pub Reserved: [LONG_PTR; 4usize], -} -pub type RPC_ASYNC_STATE = _RPC_ASYNC_STATE; -pub type PRPC_ASYNC_STATE = *mut _RPC_ASYNC_STATE; -extern "C" { - pub fn RpcAsyncRegisterInfo(pAsync: PRPC_ASYNC_STATE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcAsyncInitializeHandle( - pAsync: PRPC_ASYNC_STATE, - Size: ::std::os::raw::c_uint, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcAsyncGetCallStatus(pAsync: PRPC_ASYNC_STATE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcAsyncCompleteCall( - pAsync: PRPC_ASYNC_STATE, - Reply: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcAsyncAbortCall( - pAsync: PRPC_ASYNC_STATE, - ExceptionCode: ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcAsyncCancelCall(pAsync: PRPC_ASYNC_STATE, fAbort: BOOL) -> RPC_STATUS; -} -pub const tagExtendedErrorParamTypes_eeptAnsiString: tagExtendedErrorParamTypes = 1; -pub const tagExtendedErrorParamTypes_eeptUnicodeString: tagExtendedErrorParamTypes = 2; -pub const tagExtendedErrorParamTypes_eeptLongVal: tagExtendedErrorParamTypes = 3; -pub const tagExtendedErrorParamTypes_eeptShortVal: tagExtendedErrorParamTypes = 4; -pub const tagExtendedErrorParamTypes_eeptPointerVal: tagExtendedErrorParamTypes = 5; -pub const tagExtendedErrorParamTypes_eeptNone: tagExtendedErrorParamTypes = 6; -pub const tagExtendedErrorParamTypes_eeptBinary: tagExtendedErrorParamTypes = 7; -pub type tagExtendedErrorParamTypes = ::std::os::raw::c_int; -pub use self::tagExtendedErrorParamTypes as ExtendedErrorParamTypes; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagBinaryParam { - pub Buffer: *mut ::std::os::raw::c_void, - pub Size: ::std::os::raw::c_short, -} -pub type BinaryParam = tagBinaryParam; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagRPC_EE_INFO_PARAM { - pub ParameterType: ExtendedErrorParamTypes, - pub u: tagRPC_EE_INFO_PARAM__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagRPC_EE_INFO_PARAM__bindgen_ty_1 { - pub AnsiString: LPSTR, - pub UnicodeString: LPWSTR, - pub LVal: ::std::os::raw::c_long, - pub SVal: ::std::os::raw::c_short, - pub PVal: ULONGLONG, - pub BVal: BinaryParam, -} -pub type RPC_EE_INFO_PARAM = tagRPC_EE_INFO_PARAM; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagRPC_EXTENDED_ERROR_INFO { - pub Version: ULONG, - pub ComputerName: LPWSTR, - pub ProcessID: ULONG, - pub u: tagRPC_EXTENDED_ERROR_INFO__bindgen_ty_1, - pub GeneratingComponent: ULONG, - pub Status: ULONG, - pub DetectionLocation: USHORT, - pub Flags: USHORT, - pub NumberOfParameters: ::std::os::raw::c_int, - pub Parameters: [RPC_EE_INFO_PARAM; 4usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagRPC_EXTENDED_ERROR_INFO__bindgen_ty_1 { - pub SystemTime: SYSTEMTIME, - pub FileTime: FILETIME, -} -pub type RPC_EXTENDED_ERROR_INFO = tagRPC_EXTENDED_ERROR_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRPC_ERROR_ENUM_HANDLE { - pub Signature: ULONG, - pub CurrentPos: *mut ::std::os::raw::c_void, - pub Head: *mut ::std::os::raw::c_void, -} -pub type RPC_ERROR_ENUM_HANDLE = tagRPC_ERROR_ENUM_HANDLE; -extern "C" { - pub fn RpcErrorStartEnumeration(EnumHandle: *mut RPC_ERROR_ENUM_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcErrorGetNextRecord( - EnumHandle: *mut RPC_ERROR_ENUM_HANDLE, - CopyStrings: BOOL, - ErrorInfo: *mut RPC_EXTENDED_ERROR_INFO, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcErrorEndEnumeration(EnumHandle: *mut RPC_ERROR_ENUM_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcErrorResetEnumeration(EnumHandle: *mut RPC_ERROR_ENUM_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcErrorGetNumberOfRecords( - EnumHandle: *mut RPC_ERROR_ENUM_HANDLE, - Records: *mut ::std::os::raw::c_int, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcErrorSaveErrorInfo( - EnumHandle: *mut RPC_ERROR_ENUM_HANDLE, - ErrorBlob: *mut PVOID, - BlobSize: *mut usize, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcErrorLoadErrorInfo( - ErrorBlob: PVOID, - BlobSize: usize, - EnumHandle: *mut RPC_ERROR_ENUM_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcErrorAddRecord(ErrorInfo: *mut RPC_EXTENDED_ERROR_INFO) -> RPC_STATUS; -} -extern "C" { - pub fn RpcErrorClearInformation(); -} -extern "C" { - pub fn RpcAsyncCleanupThread(dwTimeout: DWORD) -> RPC_STATUS; -} -extern "C" { - pub fn RpcGetAuthorizationContextForClient( - ClientBinding: RPC_BINDING_HANDLE, - ImpersonateOnReturn: BOOL, - Reserved1: PVOID, - pExpirationTime: PLARGE_INTEGER, - Reserved2: LUID, - Reserved3: DWORD, - Reserved4: PVOID, - pAuthzClientContext: *mut PVOID, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcFreeAuthorizationContext(pAuthzClientContext: *mut PVOID) -> RPC_STATUS; -} -extern "C" { - pub fn RpcSsContextLockExclusive( - ServerBindingHandle: RPC_BINDING_HANDLE, - UserContext: PVOID, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcSsContextLockShared( - ServerBindingHandle: RPC_BINDING_HANDLE, - UserContext: PVOID, - ) -> RPC_STATUS; -} -pub const tagRpcLocalAddressFormat_rlafInvalid: tagRpcLocalAddressFormat = 0; -pub const tagRpcLocalAddressFormat_rlafIPv4: tagRpcLocalAddressFormat = 1; -pub const tagRpcLocalAddressFormat_rlafIPv6: tagRpcLocalAddressFormat = 2; -pub type tagRpcLocalAddressFormat = ::std::os::raw::c_int; -pub use self::tagRpcLocalAddressFormat as RpcLocalAddressFormat; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RPC_CALL_LOCAL_ADDRESS_V1 { - pub Version: ::std::os::raw::c_uint, - pub Buffer: *mut ::std::os::raw::c_void, - pub BufferSize: ::std::os::raw::c_ulong, - pub AddressFormat: RpcLocalAddressFormat, -} -pub type RPC_CALL_LOCAL_ADDRESS_V1 = _RPC_CALL_LOCAL_ADDRESS_V1; -pub type PRPC_CALL_LOCAL_ADDRESS_V1 = *mut _RPC_CALL_LOCAL_ADDRESS_V1; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRPC_CALL_ATTRIBUTES_V1_W { - pub Version: ::std::os::raw::c_uint, - pub Flags: ::std::os::raw::c_ulong, - pub ServerPrincipalNameBufferLength: ::std::os::raw::c_ulong, - pub ServerPrincipalName: *mut ::std::os::raw::c_ushort, - pub ClientPrincipalNameBufferLength: ::std::os::raw::c_ulong, - pub ClientPrincipalName: *mut ::std::os::raw::c_ushort, - pub AuthenticationLevel: ::std::os::raw::c_ulong, - pub AuthenticationService: ::std::os::raw::c_ulong, - pub NullSession: BOOL, -} -pub type RPC_CALL_ATTRIBUTES_V1_W = tagRPC_CALL_ATTRIBUTES_V1_W; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRPC_CALL_ATTRIBUTES_V1_A { - pub Version: ::std::os::raw::c_uint, - pub Flags: ::std::os::raw::c_ulong, - pub ServerPrincipalNameBufferLength: ::std::os::raw::c_ulong, - pub ServerPrincipalName: *mut ::std::os::raw::c_uchar, - pub ClientPrincipalNameBufferLength: ::std::os::raw::c_ulong, - pub ClientPrincipalName: *mut ::std::os::raw::c_uchar, - pub AuthenticationLevel: ::std::os::raw::c_ulong, - pub AuthenticationService: ::std::os::raw::c_ulong, - pub NullSession: BOOL, -} -pub type RPC_CALL_ATTRIBUTES_V1_A = tagRPC_CALL_ATTRIBUTES_V1_A; -pub const tagRpcCallType_rctInvalid: tagRpcCallType = 0; -pub const tagRpcCallType_rctNormal: tagRpcCallType = 1; -pub const tagRpcCallType_rctTraining: tagRpcCallType = 2; -pub const tagRpcCallType_rctGuaranteed: tagRpcCallType = 3; -pub type tagRpcCallType = ::std::os::raw::c_int; -pub use self::tagRpcCallType as RpcCallType; -pub const tagRpcCallClientLocality_rcclInvalid: tagRpcCallClientLocality = 0; -pub const tagRpcCallClientLocality_rcclLocal: tagRpcCallClientLocality = 1; -pub const tagRpcCallClientLocality_rcclRemote: tagRpcCallClientLocality = 2; -pub const tagRpcCallClientLocality_rcclClientUnknownLocality: tagRpcCallClientLocality = 3; -pub type tagRpcCallClientLocality = ::std::os::raw::c_int; -pub use self::tagRpcCallClientLocality as RpcCallClientLocality; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRPC_CALL_ATTRIBUTES_V2_W { - pub Version: ::std::os::raw::c_uint, - pub Flags: ::std::os::raw::c_ulong, - pub ServerPrincipalNameBufferLength: ::std::os::raw::c_ulong, - pub ServerPrincipalName: *mut ::std::os::raw::c_ushort, - pub ClientPrincipalNameBufferLength: ::std::os::raw::c_ulong, - pub ClientPrincipalName: *mut ::std::os::raw::c_ushort, - pub AuthenticationLevel: ::std::os::raw::c_ulong, - pub AuthenticationService: ::std::os::raw::c_ulong, - pub NullSession: BOOL, - pub KernelModeCaller: BOOL, - pub ProtocolSequence: ::std::os::raw::c_ulong, - pub IsClientLocal: RpcCallClientLocality, - pub ClientPID: HANDLE, - pub CallStatus: ::std::os::raw::c_ulong, - pub CallType: RpcCallType, - pub CallLocalAddress: *mut RPC_CALL_LOCAL_ADDRESS_V1, - pub OpNum: ::std::os::raw::c_ushort, - pub InterfaceUuid: UUID, -} -pub type RPC_CALL_ATTRIBUTES_V2_W = tagRPC_CALL_ATTRIBUTES_V2_W; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRPC_CALL_ATTRIBUTES_V2_A { - pub Version: ::std::os::raw::c_uint, - pub Flags: ::std::os::raw::c_ulong, - pub ServerPrincipalNameBufferLength: ::std::os::raw::c_ulong, - pub ServerPrincipalName: *mut ::std::os::raw::c_uchar, - pub ClientPrincipalNameBufferLength: ::std::os::raw::c_ulong, - pub ClientPrincipalName: *mut ::std::os::raw::c_uchar, - pub AuthenticationLevel: ::std::os::raw::c_ulong, - pub AuthenticationService: ::std::os::raw::c_ulong, - pub NullSession: BOOL, - pub KernelModeCaller: BOOL, - pub ProtocolSequence: ::std::os::raw::c_ulong, - pub IsClientLocal: ::std::os::raw::c_ulong, - pub ClientPID: HANDLE, - pub CallStatus: ::std::os::raw::c_ulong, - pub CallType: RpcCallType, - pub CallLocalAddress: *mut RPC_CALL_LOCAL_ADDRESS_V1, - pub OpNum: ::std::os::raw::c_ushort, - pub InterfaceUuid: UUID, -} -pub type RPC_CALL_ATTRIBUTES_V2_A = tagRPC_CALL_ATTRIBUTES_V2_A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRPC_CALL_ATTRIBUTES_V3_W { - pub Version: ::std::os::raw::c_uint, - pub Flags: ::std::os::raw::c_ulong, - pub ServerPrincipalNameBufferLength: ::std::os::raw::c_ulong, - pub ServerPrincipalName: *mut ::std::os::raw::c_ushort, - pub ClientPrincipalNameBufferLength: ::std::os::raw::c_ulong, - pub ClientPrincipalName: *mut ::std::os::raw::c_ushort, - pub AuthenticationLevel: ::std::os::raw::c_ulong, - pub AuthenticationService: ::std::os::raw::c_ulong, - pub NullSession: BOOL, - pub KernelModeCaller: BOOL, - pub ProtocolSequence: ::std::os::raw::c_ulong, - pub IsClientLocal: RpcCallClientLocality, - pub ClientPID: HANDLE, - pub CallStatus: ::std::os::raw::c_ulong, - pub CallType: RpcCallType, - pub CallLocalAddress: *mut RPC_CALL_LOCAL_ADDRESS_V1, - pub OpNum: ::std::os::raw::c_ushort, - pub InterfaceUuid: UUID, - pub ClientIdentifierBufferLength: ::std::os::raw::c_ulong, - pub ClientIdentifier: *mut ::std::os::raw::c_uchar, -} -pub type RPC_CALL_ATTRIBUTES_V3_W = tagRPC_CALL_ATTRIBUTES_V3_W; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRPC_CALL_ATTRIBUTES_V3_A { - pub Version: ::std::os::raw::c_uint, - pub Flags: ::std::os::raw::c_ulong, - pub ServerPrincipalNameBufferLength: ::std::os::raw::c_ulong, - pub ServerPrincipalName: *mut ::std::os::raw::c_uchar, - pub ClientPrincipalNameBufferLength: ::std::os::raw::c_ulong, - pub ClientPrincipalName: *mut ::std::os::raw::c_uchar, - pub AuthenticationLevel: ::std::os::raw::c_ulong, - pub AuthenticationService: ::std::os::raw::c_ulong, - pub NullSession: BOOL, - pub KernelModeCaller: BOOL, - pub ProtocolSequence: ::std::os::raw::c_ulong, - pub IsClientLocal: ::std::os::raw::c_ulong, - pub ClientPID: HANDLE, - pub CallStatus: ::std::os::raw::c_ulong, - pub CallType: RpcCallType, - pub CallLocalAddress: *mut RPC_CALL_LOCAL_ADDRESS_V1, - pub OpNum: ::std::os::raw::c_ushort, - pub InterfaceUuid: UUID, - pub ClientIdentifierBufferLength: ::std::os::raw::c_ulong, - pub ClientIdentifier: *mut ::std::os::raw::c_uchar, -} -pub type RPC_CALL_ATTRIBUTES_V3_A = tagRPC_CALL_ATTRIBUTES_V3_A; -extern "C" { - pub fn RpcServerInqCallAttributesW( - ClientBinding: RPC_BINDING_HANDLE, - RpcCallAttributes: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerInqCallAttributesA( - ClientBinding: RPC_BINDING_HANDLE, - RpcCallAttributes: *mut ::std::os::raw::c_void, - ) -> RPC_STATUS; -} -pub type RPC_CALL_ATTRIBUTES = RPC_CALL_ATTRIBUTES_V3_A; -pub const _RPC_NOTIFICATIONS_RpcNotificationCallNone: _RPC_NOTIFICATIONS = 0; -pub const _RPC_NOTIFICATIONS_RpcNotificationClientDisconnect: _RPC_NOTIFICATIONS = 1; -pub const _RPC_NOTIFICATIONS_RpcNotificationCallCancel: _RPC_NOTIFICATIONS = 2; -pub type _RPC_NOTIFICATIONS = ::std::os::raw::c_int; -pub use self::_RPC_NOTIFICATIONS as RPC_NOTIFICATIONS; -extern "C" { - pub fn RpcServerSubscribeForNotification( - Binding: RPC_BINDING_HANDLE, - Notification: RPC_NOTIFICATIONS, - NotificationType: RPC_NOTIFICATION_TYPES, - NotificationInfo: *mut RPC_ASYNC_NOTIFICATION_INFO, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcServerUnsubscribeForNotification( - Binding: RPC_BINDING_HANDLE, - Notification: RPC_NOTIFICATIONS, - NotificationsQueued: *mut ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingBind( - pAsync: PRPC_ASYNC_STATE, - Binding: RPC_BINDING_HANDLE, - IfSpec: RPC_IF_HANDLE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcBindingUnbind(Binding: RPC_BINDING_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcAsyncSetHandle(Message: PRPC_MESSAGE, pAsync: PRPC_ASYNC_STATE) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcAsyncAbortCall( - pAsync: PRPC_ASYNC_STATE, - ExceptionCode: ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcExceptionFilter(ExceptionCode: ::std::os::raw::c_ulong) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn I_RpcBindingInqClientTokenAttributes( - Binding: RPC_BINDING_HANDLE, - TokenId: *mut LUID, - AuthenticationId: *mut LUID, - ModifiedId: *mut LUID, - ) -> RPC_STATUS; -} -extern "C" { - pub fn CommandLineToArgvW( - lpCmdLine: LPCWSTR, - pNumArgs: *mut ::std::os::raw::c_int, - ) -> *mut LPWSTR; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HDROP__ { - pub unused: ::std::os::raw::c_int, -} -pub type HDROP = *mut HDROP__; -extern "C" { - pub fn DragQueryFileA(hDrop: HDROP, iFile: UINT, lpszFile: LPSTR, cch: UINT) -> UINT; -} -extern "C" { - pub fn DragQueryFileW(hDrop: HDROP, iFile: UINT, lpszFile: LPWSTR, cch: UINT) -> UINT; -} -extern "C" { - pub fn DragQueryPoint(hDrop: HDROP, ppt: *mut POINT) -> BOOL; -} -extern "C" { - pub fn DragFinish(hDrop: HDROP); -} -extern "C" { - pub fn DragAcceptFiles(hWnd: HWND, fAccept: BOOL); -} -extern "C" { - pub fn ShellExecuteA( - hwnd: HWND, - lpOperation: LPCSTR, - lpFile: LPCSTR, - lpParameters: LPCSTR, - lpDirectory: LPCSTR, - nShowCmd: INT, - ) -> HINSTANCE; -} -extern "C" { - pub fn ShellExecuteW( - hwnd: HWND, - lpOperation: LPCWSTR, - lpFile: LPCWSTR, - lpParameters: LPCWSTR, - lpDirectory: LPCWSTR, - nShowCmd: INT, - ) -> HINSTANCE; -} -extern "C" { - pub fn FindExecutableA(lpFile: LPCSTR, lpDirectory: LPCSTR, lpResult: LPSTR) -> HINSTANCE; -} -extern "C" { - pub fn FindExecutableW(lpFile: LPCWSTR, lpDirectory: LPCWSTR, lpResult: LPWSTR) -> HINSTANCE; -} -extern "C" { - pub fn ShellAboutA(hWnd: HWND, szApp: LPCSTR, szOtherStuff: LPCSTR, hIcon: HICON) -> INT; -} -extern "C" { - pub fn ShellAboutW(hWnd: HWND, szApp: LPCWSTR, szOtherStuff: LPCWSTR, hIcon: HICON) -> INT; -} -extern "C" { - pub fn DuplicateIcon(hInst: HINSTANCE, hIcon: HICON) -> HICON; -} -extern "C" { - pub fn ExtractAssociatedIconA(hInst: HINSTANCE, pszIconPath: LPSTR, piIcon: *mut WORD) - -> HICON; -} -extern "C" { - pub fn ExtractAssociatedIconW( - hInst: HINSTANCE, - pszIconPath: LPWSTR, - piIcon: *mut WORD, - ) -> HICON; -} -extern "C" { - pub fn ExtractAssociatedIconExA( - hInst: HINSTANCE, - pszIconPath: LPSTR, - piIconIndex: *mut WORD, - piIconId: *mut WORD, - ) -> HICON; -} -extern "C" { - pub fn ExtractAssociatedIconExW( - hInst: HINSTANCE, - pszIconPath: LPWSTR, - piIconIndex: *mut WORD, - piIconId: *mut WORD, - ) -> HICON; -} -extern "C" { - pub fn ExtractIconA(hInst: HINSTANCE, pszExeFileName: LPCSTR, nIconIndex: UINT) -> HICON; -} -extern "C" { - pub fn ExtractIconW(hInst: HINSTANCE, pszExeFileName: LPCWSTR, nIconIndex: UINT) -> HICON; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRAGINFOA { - pub uSize: UINT, - pub pt: POINT, - pub fNC: BOOL, - pub lpFileList: PZZSTR, - pub grfKeyState: DWORD, -} -pub type DRAGINFOA = _DRAGINFOA; -pub type LPDRAGINFOA = *mut _DRAGINFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRAGINFOW { - pub uSize: UINT, - pub pt: POINT, - pub fNC: BOOL, - pub lpFileList: PZZWSTR, - pub grfKeyState: DWORD, -} -pub type DRAGINFOW = _DRAGINFOW; -pub type LPDRAGINFOW = *mut _DRAGINFOW; -pub type DRAGINFO = DRAGINFOA; -pub type LPDRAGINFO = LPDRAGINFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _AppBarData { - pub cbSize: DWORD, - pub hWnd: HWND, - pub uCallbackMessage: UINT, - pub uEdge: UINT, - pub rc: RECT, - pub lParam: LPARAM, -} -pub type APPBARDATA = _AppBarData; -pub type PAPPBARDATA = *mut _AppBarData; -extern "C" { - pub fn SHAppBarMessage(dwMessage: DWORD, pData: PAPPBARDATA) -> UINT_PTR; -} -extern "C" { - pub fn DoEnvironmentSubstA(pszSrc: LPSTR, cchSrc: UINT) -> DWORD; -} -extern "C" { - pub fn DoEnvironmentSubstW(pszSrc: LPWSTR, cchSrc: UINT) -> DWORD; -} -extern "C" { - pub fn ExtractIconExA( - lpszFile: LPCSTR, - nIconIndex: ::std::os::raw::c_int, - phiconLarge: *mut HICON, - phiconSmall: *mut HICON, - nIcons: UINT, - ) -> UINT; -} -extern "C" { - pub fn ExtractIconExW( - lpszFile: LPCWSTR, - nIconIndex: ::std::os::raw::c_int, - phiconLarge: *mut HICON, - phiconSmall: *mut HICON, - nIcons: UINT, - ) -> UINT; -} -pub type FILEOP_FLAGS = WORD; -pub type PRINTEROP_FLAGS = WORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SHFILEOPSTRUCTA { - pub hwnd: HWND, - pub wFunc: UINT, - pub pFrom: PCZZSTR, - pub pTo: PCZZSTR, - pub fFlags: FILEOP_FLAGS, - pub fAnyOperationsAborted: BOOL, - pub hNameMappings: LPVOID, - pub lpszProgressTitle: PCSTR, -} -pub type SHFILEOPSTRUCTA = _SHFILEOPSTRUCTA; -pub type LPSHFILEOPSTRUCTA = *mut _SHFILEOPSTRUCTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SHFILEOPSTRUCTW { - pub hwnd: HWND, - pub wFunc: UINT, - pub pFrom: PCZZWSTR, - pub pTo: PCZZWSTR, - pub fFlags: FILEOP_FLAGS, - pub fAnyOperationsAborted: BOOL, - pub hNameMappings: LPVOID, - pub lpszProgressTitle: PCWSTR, -} -pub type SHFILEOPSTRUCTW = _SHFILEOPSTRUCTW; -pub type LPSHFILEOPSTRUCTW = *mut _SHFILEOPSTRUCTW; -pub type SHFILEOPSTRUCT = SHFILEOPSTRUCTA; -pub type LPSHFILEOPSTRUCT = LPSHFILEOPSTRUCTA; -extern "C" { - pub fn SHFileOperationA(lpFileOp: LPSHFILEOPSTRUCTA) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SHFileOperationW(lpFileOp: LPSHFILEOPSTRUCTW) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn SHFreeNameMappings(hNameMappings: HANDLE); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SHNAMEMAPPINGA { - pub pszOldPath: LPSTR, - pub pszNewPath: LPSTR, - pub cchOldPath: ::std::os::raw::c_int, - pub cchNewPath: ::std::os::raw::c_int, -} -pub type SHNAMEMAPPINGA = _SHNAMEMAPPINGA; -pub type LPSHNAMEMAPPINGA = *mut _SHNAMEMAPPINGA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SHNAMEMAPPINGW { - pub pszOldPath: LPWSTR, - pub pszNewPath: LPWSTR, - pub cchOldPath: ::std::os::raw::c_int, - pub cchNewPath: ::std::os::raw::c_int, -} -pub type SHNAMEMAPPINGW = _SHNAMEMAPPINGW; -pub type LPSHNAMEMAPPINGW = *mut _SHNAMEMAPPINGW; -pub type SHNAMEMAPPING = SHNAMEMAPPINGA; -pub type LPSHNAMEMAPPING = LPSHNAMEMAPPINGA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _SHELLEXECUTEINFOA { - pub cbSize: DWORD, - pub fMask: ULONG, - pub hwnd: HWND, - pub lpVerb: LPCSTR, - pub lpFile: LPCSTR, - pub lpParameters: LPCSTR, - pub lpDirectory: LPCSTR, - pub nShow: ::std::os::raw::c_int, - pub hInstApp: HINSTANCE, - pub lpIDList: *mut ::std::os::raw::c_void, - pub lpClass: LPCSTR, - pub hkeyClass: HKEY, - pub dwHotKey: DWORD, - pub __bindgen_anon_1: _SHELLEXECUTEINFOA__bindgen_ty_1, - pub hProcess: HANDLE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SHELLEXECUTEINFOA__bindgen_ty_1 { - pub hIcon: HANDLE, - pub hMonitor: HANDLE, -} -pub type SHELLEXECUTEINFOA = _SHELLEXECUTEINFOA; -pub type LPSHELLEXECUTEINFOA = *mut _SHELLEXECUTEINFOA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _SHELLEXECUTEINFOW { - pub cbSize: DWORD, - pub fMask: ULONG, - pub hwnd: HWND, - pub lpVerb: LPCWSTR, - pub lpFile: LPCWSTR, - pub lpParameters: LPCWSTR, - pub lpDirectory: LPCWSTR, - pub nShow: ::std::os::raw::c_int, - pub hInstApp: HINSTANCE, - pub lpIDList: *mut ::std::os::raw::c_void, - pub lpClass: LPCWSTR, - pub hkeyClass: HKEY, - pub dwHotKey: DWORD, - pub __bindgen_anon_1: _SHELLEXECUTEINFOW__bindgen_ty_1, - pub hProcess: HANDLE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SHELLEXECUTEINFOW__bindgen_ty_1 { - pub hIcon: HANDLE, - pub hMonitor: HANDLE, -} -pub type SHELLEXECUTEINFOW = _SHELLEXECUTEINFOW; -pub type LPSHELLEXECUTEINFOW = *mut _SHELLEXECUTEINFOW; -pub type SHELLEXECUTEINFO = SHELLEXECUTEINFOA; -pub type LPSHELLEXECUTEINFO = LPSHELLEXECUTEINFOA; -extern "C" { - pub fn ShellExecuteExA(pExecInfo: *mut SHELLEXECUTEINFOA) -> BOOL; -} -extern "C" { - pub fn ShellExecuteExW(pExecInfo: *mut SHELLEXECUTEINFOW) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SHCREATEPROCESSINFOW { - pub cbSize: DWORD, - pub fMask: ULONG, - pub hwnd: HWND, - pub pszFile: LPCWSTR, - pub pszParameters: LPCWSTR, - pub pszCurrentDirectory: LPCWSTR, - pub hUserToken: HANDLE, - pub lpProcessAttributes: LPSECURITY_ATTRIBUTES, - pub lpThreadAttributes: LPSECURITY_ATTRIBUTES, - pub bInheritHandles: BOOL, - pub dwCreationFlags: DWORD, - pub lpStartupInfo: LPSTARTUPINFOW, - pub lpProcessInformation: LPPROCESS_INFORMATION, -} -pub type SHCREATEPROCESSINFOW = _SHCREATEPROCESSINFOW; -pub type PSHCREATEPROCESSINFOW = *mut _SHCREATEPROCESSINFOW; -extern "C" { - pub fn SHCreateProcessAsUserW(pscpi: PSHCREATEPROCESSINFOW) -> BOOL; -} -extern "C" { - pub fn SHEvaluateSystemCommandTemplate( - pszCmdTemplate: PCWSTR, - ppszApplication: *mut PWSTR, - ppszCommandLine: *mut PWSTR, - ppszParameters: *mut PWSTR, - ) -> HRESULT; -} -pub const ASSOCCLASS_ASSOCCLASS_SHELL_KEY: ASSOCCLASS = 0; -pub const ASSOCCLASS_ASSOCCLASS_PROGID_KEY: ASSOCCLASS = 1; -pub const ASSOCCLASS_ASSOCCLASS_PROGID_STR: ASSOCCLASS = 2; -pub const ASSOCCLASS_ASSOCCLASS_CLSID_KEY: ASSOCCLASS = 3; -pub const ASSOCCLASS_ASSOCCLASS_CLSID_STR: ASSOCCLASS = 4; -pub const ASSOCCLASS_ASSOCCLASS_APP_KEY: ASSOCCLASS = 5; -pub const ASSOCCLASS_ASSOCCLASS_APP_STR: ASSOCCLASS = 6; -pub const ASSOCCLASS_ASSOCCLASS_SYSTEM_STR: ASSOCCLASS = 7; -pub const ASSOCCLASS_ASSOCCLASS_FOLDER: ASSOCCLASS = 8; -pub const ASSOCCLASS_ASSOCCLASS_STAR: ASSOCCLASS = 9; -pub const ASSOCCLASS_ASSOCCLASS_FIXED_PROGID_STR: ASSOCCLASS = 10; -pub const ASSOCCLASS_ASSOCCLASS_PROTOCOL_STR: ASSOCCLASS = 11; -pub type ASSOCCLASS = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ASSOCIATIONELEMENT { - pub ac: ASSOCCLASS, - pub hkClass: HKEY, - pub pszClass: PCWSTR, -} -extern "C" { - pub fn AssocCreateForClasses( - rgClasses: *const ASSOCIATIONELEMENT, - cClasses: ULONG, - riid: *const IID, - ppv: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SHQUERYRBINFO { - pub cbSize: DWORD, - pub i64Size: ::std::os::raw::c_longlong, - pub i64NumItems: ::std::os::raw::c_longlong, -} -pub type SHQUERYRBINFO = _SHQUERYRBINFO; -pub type LPSHQUERYRBINFO = *mut _SHQUERYRBINFO; -extern "C" { - pub fn SHQueryRecycleBinA(pszRootPath: LPCSTR, pSHQueryRBInfo: LPSHQUERYRBINFO) -> HRESULT; -} -extern "C" { - pub fn SHQueryRecycleBinW(pszRootPath: LPCWSTR, pSHQueryRBInfo: LPSHQUERYRBINFO) -> HRESULT; -} -extern "C" { - pub fn SHEmptyRecycleBinA(hwnd: HWND, pszRootPath: LPCSTR, dwFlags: DWORD) -> HRESULT; -} -extern "C" { - pub fn SHEmptyRecycleBinW(hwnd: HWND, pszRootPath: LPCWSTR, dwFlags: DWORD) -> HRESULT; -} -pub const QUERY_USER_NOTIFICATION_STATE_QUNS_NOT_PRESENT: QUERY_USER_NOTIFICATION_STATE = 1; -pub const QUERY_USER_NOTIFICATION_STATE_QUNS_BUSY: QUERY_USER_NOTIFICATION_STATE = 2; -pub const QUERY_USER_NOTIFICATION_STATE_QUNS_RUNNING_D3D_FULL_SCREEN: - QUERY_USER_NOTIFICATION_STATE = 3; -pub const QUERY_USER_NOTIFICATION_STATE_QUNS_PRESENTATION_MODE: QUERY_USER_NOTIFICATION_STATE = 4; -pub const QUERY_USER_NOTIFICATION_STATE_QUNS_ACCEPTS_NOTIFICATIONS: QUERY_USER_NOTIFICATION_STATE = - 5; -pub const QUERY_USER_NOTIFICATION_STATE_QUNS_QUIET_TIME: QUERY_USER_NOTIFICATION_STATE = 6; -pub const QUERY_USER_NOTIFICATION_STATE_QUNS_APP: QUERY_USER_NOTIFICATION_STATE = 7; -pub type QUERY_USER_NOTIFICATION_STATE = ::std::os::raw::c_int; -extern "C" { - pub fn SHQueryUserNotificationState(pquns: *mut QUERY_USER_NOTIFICATION_STATE) -> HRESULT; -} -extern "C" { - pub fn SHGetPropertyStoreForWindow( - hwnd: HWND, - riid: *const IID, - ppv: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _NOTIFYICONDATAA { - pub cbSize: DWORD, - pub hWnd: HWND, - pub uID: UINT, - pub uFlags: UINT, - pub uCallbackMessage: UINT, - pub hIcon: HICON, - pub szTip: [CHAR; 128usize], - pub dwState: DWORD, - pub dwStateMask: DWORD, - pub szInfo: [CHAR; 256usize], - pub __bindgen_anon_1: _NOTIFYICONDATAA__bindgen_ty_1, - pub szInfoTitle: [CHAR; 64usize], - pub dwInfoFlags: DWORD, - pub guidItem: GUID, - pub hBalloonIcon: HICON, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _NOTIFYICONDATAA__bindgen_ty_1 { - pub uTimeout: UINT, - pub uVersion: UINT, -} -pub type NOTIFYICONDATAA = _NOTIFYICONDATAA; -pub type PNOTIFYICONDATAA = *mut _NOTIFYICONDATAA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _NOTIFYICONDATAW { - pub cbSize: DWORD, - pub hWnd: HWND, - pub uID: UINT, - pub uFlags: UINT, - pub uCallbackMessage: UINT, - pub hIcon: HICON, - pub szTip: [WCHAR; 128usize], - pub dwState: DWORD, - pub dwStateMask: DWORD, - pub szInfo: [WCHAR; 256usize], - pub __bindgen_anon_1: _NOTIFYICONDATAW__bindgen_ty_1, - pub szInfoTitle: [WCHAR; 64usize], - pub dwInfoFlags: DWORD, - pub guidItem: GUID, - pub hBalloonIcon: HICON, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _NOTIFYICONDATAW__bindgen_ty_1 { - pub uTimeout: UINT, - pub uVersion: UINT, -} -pub type NOTIFYICONDATAW = _NOTIFYICONDATAW; -pub type PNOTIFYICONDATAW = *mut _NOTIFYICONDATAW; -pub type NOTIFYICONDATA = NOTIFYICONDATAA; -pub type PNOTIFYICONDATA = PNOTIFYICONDATAA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NOTIFYICONIDENTIFIER { - pub cbSize: DWORD, - pub hWnd: HWND, - pub uID: UINT, - pub guidItem: GUID, -} -pub type NOTIFYICONIDENTIFIER = _NOTIFYICONIDENTIFIER; -pub type PNOTIFYICONIDENTIFIER = *mut _NOTIFYICONIDENTIFIER; -extern "C" { - pub fn Shell_NotifyIconA(dwMessage: DWORD, lpData: PNOTIFYICONDATAA) -> BOOL; -} -extern "C" { - pub fn Shell_NotifyIconW(dwMessage: DWORD, lpData: PNOTIFYICONDATAW) -> BOOL; -} -extern "C" { - pub fn Shell_NotifyIconGetRect( - identifier: *const NOTIFYICONIDENTIFIER, - iconLocation: *mut RECT, - ) -> HRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SHFILEINFOA { - pub hIcon: HICON, - pub iIcon: ::std::os::raw::c_int, - pub dwAttributes: DWORD, - pub szDisplayName: [CHAR; 260usize], - pub szTypeName: [CHAR; 80usize], -} -pub type SHFILEINFOA = _SHFILEINFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SHFILEINFOW { - pub hIcon: HICON, - pub iIcon: ::std::os::raw::c_int, - pub dwAttributes: DWORD, - pub szDisplayName: [WCHAR; 260usize], - pub szTypeName: [WCHAR; 80usize], -} -pub type SHFILEINFOW = _SHFILEINFOW; -pub type SHFILEINFO = SHFILEINFOA; -extern "C" { - pub fn SHGetFileInfoA( - pszPath: LPCSTR, - dwFileAttributes: DWORD, - psfi: *mut SHFILEINFOA, - cbFileInfo: UINT, - uFlags: UINT, - ) -> DWORD_PTR; -} -extern "C" { - pub fn SHGetFileInfoW( - pszPath: LPCWSTR, - dwFileAttributes: DWORD, - psfi: *mut SHFILEINFOW, - cbFileInfo: UINT, - uFlags: UINT, - ) -> DWORD_PTR; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SHSTOCKICONINFO { - pub cbSize: DWORD, - pub hIcon: HICON, - pub iSysImageIndex: ::std::os::raw::c_int, - pub iIcon: ::std::os::raw::c_int, - pub szPath: [WCHAR; 260usize], -} -pub type SHSTOCKICONINFO = _SHSTOCKICONINFO; -pub const SHSTOCKICONID_SIID_DOCNOASSOC: SHSTOCKICONID = 0; -pub const SHSTOCKICONID_SIID_DOCASSOC: SHSTOCKICONID = 1; -pub const SHSTOCKICONID_SIID_APPLICATION: SHSTOCKICONID = 2; -pub const SHSTOCKICONID_SIID_FOLDER: SHSTOCKICONID = 3; -pub const SHSTOCKICONID_SIID_FOLDEROPEN: SHSTOCKICONID = 4; -pub const SHSTOCKICONID_SIID_DRIVE525: SHSTOCKICONID = 5; -pub const SHSTOCKICONID_SIID_DRIVE35: SHSTOCKICONID = 6; -pub const SHSTOCKICONID_SIID_DRIVEREMOVE: SHSTOCKICONID = 7; -pub const SHSTOCKICONID_SIID_DRIVEFIXED: SHSTOCKICONID = 8; -pub const SHSTOCKICONID_SIID_DRIVENET: SHSTOCKICONID = 9; -pub const SHSTOCKICONID_SIID_DRIVENETDISABLED: SHSTOCKICONID = 10; -pub const SHSTOCKICONID_SIID_DRIVECD: SHSTOCKICONID = 11; -pub const SHSTOCKICONID_SIID_DRIVERAM: SHSTOCKICONID = 12; -pub const SHSTOCKICONID_SIID_WORLD: SHSTOCKICONID = 13; -pub const SHSTOCKICONID_SIID_SERVER: SHSTOCKICONID = 15; -pub const SHSTOCKICONID_SIID_PRINTER: SHSTOCKICONID = 16; -pub const SHSTOCKICONID_SIID_MYNETWORK: SHSTOCKICONID = 17; -pub const SHSTOCKICONID_SIID_FIND: SHSTOCKICONID = 22; -pub const SHSTOCKICONID_SIID_HELP: SHSTOCKICONID = 23; -pub const SHSTOCKICONID_SIID_SHARE: SHSTOCKICONID = 28; -pub const SHSTOCKICONID_SIID_LINK: SHSTOCKICONID = 29; -pub const SHSTOCKICONID_SIID_SLOWFILE: SHSTOCKICONID = 30; -pub const SHSTOCKICONID_SIID_RECYCLER: SHSTOCKICONID = 31; -pub const SHSTOCKICONID_SIID_RECYCLERFULL: SHSTOCKICONID = 32; -pub const SHSTOCKICONID_SIID_MEDIACDAUDIO: SHSTOCKICONID = 40; -pub const SHSTOCKICONID_SIID_LOCK: SHSTOCKICONID = 47; -pub const SHSTOCKICONID_SIID_AUTOLIST: SHSTOCKICONID = 49; -pub const SHSTOCKICONID_SIID_PRINTERNET: SHSTOCKICONID = 50; -pub const SHSTOCKICONID_SIID_SERVERSHARE: SHSTOCKICONID = 51; -pub const SHSTOCKICONID_SIID_PRINTERFAX: SHSTOCKICONID = 52; -pub const SHSTOCKICONID_SIID_PRINTERFAXNET: SHSTOCKICONID = 53; -pub const SHSTOCKICONID_SIID_PRINTERFILE: SHSTOCKICONID = 54; -pub const SHSTOCKICONID_SIID_STACK: SHSTOCKICONID = 55; -pub const SHSTOCKICONID_SIID_MEDIASVCD: SHSTOCKICONID = 56; -pub const SHSTOCKICONID_SIID_STUFFEDFOLDER: SHSTOCKICONID = 57; -pub const SHSTOCKICONID_SIID_DRIVEUNKNOWN: SHSTOCKICONID = 58; -pub const SHSTOCKICONID_SIID_DRIVEDVD: SHSTOCKICONID = 59; -pub const SHSTOCKICONID_SIID_MEDIADVD: SHSTOCKICONID = 60; -pub const SHSTOCKICONID_SIID_MEDIADVDRAM: SHSTOCKICONID = 61; -pub const SHSTOCKICONID_SIID_MEDIADVDRW: SHSTOCKICONID = 62; -pub const SHSTOCKICONID_SIID_MEDIADVDR: SHSTOCKICONID = 63; -pub const SHSTOCKICONID_SIID_MEDIADVDROM: SHSTOCKICONID = 64; -pub const SHSTOCKICONID_SIID_MEDIACDAUDIOPLUS: SHSTOCKICONID = 65; -pub const SHSTOCKICONID_SIID_MEDIACDRW: SHSTOCKICONID = 66; -pub const SHSTOCKICONID_SIID_MEDIACDR: SHSTOCKICONID = 67; -pub const SHSTOCKICONID_SIID_MEDIACDBURN: SHSTOCKICONID = 68; -pub const SHSTOCKICONID_SIID_MEDIABLANKCD: SHSTOCKICONID = 69; -pub const SHSTOCKICONID_SIID_MEDIACDROM: SHSTOCKICONID = 70; -pub const SHSTOCKICONID_SIID_AUDIOFILES: SHSTOCKICONID = 71; -pub const SHSTOCKICONID_SIID_IMAGEFILES: SHSTOCKICONID = 72; -pub const SHSTOCKICONID_SIID_VIDEOFILES: SHSTOCKICONID = 73; -pub const SHSTOCKICONID_SIID_MIXEDFILES: SHSTOCKICONID = 74; -pub const SHSTOCKICONID_SIID_FOLDERBACK: SHSTOCKICONID = 75; -pub const SHSTOCKICONID_SIID_FOLDERFRONT: SHSTOCKICONID = 76; -pub const SHSTOCKICONID_SIID_SHIELD: SHSTOCKICONID = 77; -pub const SHSTOCKICONID_SIID_WARNING: SHSTOCKICONID = 78; -pub const SHSTOCKICONID_SIID_INFO: SHSTOCKICONID = 79; -pub const SHSTOCKICONID_SIID_ERROR: SHSTOCKICONID = 80; -pub const SHSTOCKICONID_SIID_KEY: SHSTOCKICONID = 81; -pub const SHSTOCKICONID_SIID_SOFTWARE: SHSTOCKICONID = 82; -pub const SHSTOCKICONID_SIID_RENAME: SHSTOCKICONID = 83; -pub const SHSTOCKICONID_SIID_DELETE: SHSTOCKICONID = 84; -pub const SHSTOCKICONID_SIID_MEDIAAUDIODVD: SHSTOCKICONID = 85; -pub const SHSTOCKICONID_SIID_MEDIAMOVIEDVD: SHSTOCKICONID = 86; -pub const SHSTOCKICONID_SIID_MEDIAENHANCEDCD: SHSTOCKICONID = 87; -pub const SHSTOCKICONID_SIID_MEDIAENHANCEDDVD: SHSTOCKICONID = 88; -pub const SHSTOCKICONID_SIID_MEDIAHDDVD: SHSTOCKICONID = 89; -pub const SHSTOCKICONID_SIID_MEDIABLURAY: SHSTOCKICONID = 90; -pub const SHSTOCKICONID_SIID_MEDIAVCD: SHSTOCKICONID = 91; -pub const SHSTOCKICONID_SIID_MEDIADVDPLUSR: SHSTOCKICONID = 92; -pub const SHSTOCKICONID_SIID_MEDIADVDPLUSRW: SHSTOCKICONID = 93; -pub const SHSTOCKICONID_SIID_DESKTOPPC: SHSTOCKICONID = 94; -pub const SHSTOCKICONID_SIID_MOBILEPC: SHSTOCKICONID = 95; -pub const SHSTOCKICONID_SIID_USERS: SHSTOCKICONID = 96; -pub const SHSTOCKICONID_SIID_MEDIASMARTMEDIA: SHSTOCKICONID = 97; -pub const SHSTOCKICONID_SIID_MEDIACOMPACTFLASH: SHSTOCKICONID = 98; -pub const SHSTOCKICONID_SIID_DEVICECELLPHONE: SHSTOCKICONID = 99; -pub const SHSTOCKICONID_SIID_DEVICECAMERA: SHSTOCKICONID = 100; -pub const SHSTOCKICONID_SIID_DEVICEVIDEOCAMERA: SHSTOCKICONID = 101; -pub const SHSTOCKICONID_SIID_DEVICEAUDIOPLAYER: SHSTOCKICONID = 102; -pub const SHSTOCKICONID_SIID_NETWORKCONNECT: SHSTOCKICONID = 103; -pub const SHSTOCKICONID_SIID_INTERNET: SHSTOCKICONID = 104; -pub const SHSTOCKICONID_SIID_ZIPFILE: SHSTOCKICONID = 105; -pub const SHSTOCKICONID_SIID_SETTINGS: SHSTOCKICONID = 106; -pub const SHSTOCKICONID_SIID_DRIVEHDDVD: SHSTOCKICONID = 132; -pub const SHSTOCKICONID_SIID_DRIVEBD: SHSTOCKICONID = 133; -pub const SHSTOCKICONID_SIID_MEDIAHDDVDROM: SHSTOCKICONID = 134; -pub const SHSTOCKICONID_SIID_MEDIAHDDVDR: SHSTOCKICONID = 135; -pub const SHSTOCKICONID_SIID_MEDIAHDDVDRAM: SHSTOCKICONID = 136; -pub const SHSTOCKICONID_SIID_MEDIABDROM: SHSTOCKICONID = 137; -pub const SHSTOCKICONID_SIID_MEDIABDR: SHSTOCKICONID = 138; -pub const SHSTOCKICONID_SIID_MEDIABDRE: SHSTOCKICONID = 139; -pub const SHSTOCKICONID_SIID_CLUSTEREDDRIVE: SHSTOCKICONID = 140; -pub const SHSTOCKICONID_SIID_MAX_ICONS: SHSTOCKICONID = 181; -pub type SHSTOCKICONID = ::std::os::raw::c_int; -extern "C" { - pub fn SHGetStockIconInfo( - siid: SHSTOCKICONID, - uFlags: UINT, - psii: *mut SHSTOCKICONINFO, - ) -> HRESULT; -} -extern "C" { - pub fn SHGetDiskFreeSpaceExA( - pszDirectoryName: LPCSTR, - pulFreeBytesAvailableToCaller: *mut ULARGE_INTEGER, - pulTotalNumberOfBytes: *mut ULARGE_INTEGER, - pulTotalNumberOfFreeBytes: *mut ULARGE_INTEGER, - ) -> BOOL; -} -extern "C" { - pub fn SHGetDiskFreeSpaceExW( - pszDirectoryName: LPCWSTR, - pulFreeBytesAvailableToCaller: *mut ULARGE_INTEGER, - pulTotalNumberOfBytes: *mut ULARGE_INTEGER, - pulTotalNumberOfFreeBytes: *mut ULARGE_INTEGER, - ) -> BOOL; -} -extern "C" { - pub fn SHGetNewLinkInfoA( - pszLinkTo: LPCSTR, - pszDir: LPCSTR, - pszName: LPSTR, - pfMustCopy: *mut BOOL, - uFlags: UINT, - ) -> BOOL; -} -extern "C" { - pub fn SHGetNewLinkInfoW( - pszLinkTo: LPCWSTR, - pszDir: LPCWSTR, - pszName: LPWSTR, - pfMustCopy: *mut BOOL, - uFlags: UINT, - ) -> BOOL; -} -extern "C" { - pub fn SHInvokePrinterCommandA( - hwnd: HWND, - uAction: UINT, - lpBuf1: LPCSTR, - lpBuf2: LPCSTR, - fModal: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn SHInvokePrinterCommandW( - hwnd: HWND, - uAction: UINT, - lpBuf1: LPCWSTR, - lpBuf2: LPCWSTR, - fModal: BOOL, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OPEN_PRINTER_PROPS_INFOA { - pub dwSize: DWORD, - pub pszSheetName: LPSTR, - pub uSheetIndex: UINT, - pub dwFlags: DWORD, - pub bModal: BOOL, -} -pub type OPEN_PRINTER_PROPS_INFOA = _OPEN_PRINTER_PROPS_INFOA; -pub type POPEN_PRINTER_PROPS_INFOA = *mut _OPEN_PRINTER_PROPS_INFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OPEN_PRINTER_PROPS_INFOW { - pub dwSize: DWORD, - pub pszSheetName: LPWSTR, - pub uSheetIndex: UINT, - pub dwFlags: DWORD, - pub bModal: BOOL, -} -pub type OPEN_PRINTER_PROPS_INFOW = _OPEN_PRINTER_PROPS_INFOW; -pub type POPEN_PRINTER_PROPS_INFOW = *mut _OPEN_PRINTER_PROPS_INFOW; -pub type OPEN_PRINTER_PROPS_INFO = OPEN_PRINTER_PROPS_INFOA; -pub type POPEN_PRINTER_PROPS_INFO = POPEN_PRINTER_PROPS_INFOA; -extern "C" { - pub fn SHLoadNonloadedIconOverlayIdentifiers() -> HRESULT; -} -extern "C" { - pub fn SHIsFileAvailableOffline(pwszPath: PCWSTR, pdwStatus: *mut DWORD) -> HRESULT; -} -extern "C" { - pub fn SHSetLocalizedName( - pszPath: PCWSTR, - pszResModule: PCWSTR, - idsRes: ::std::os::raw::c_int, - ) -> HRESULT; -} -extern "C" { - pub fn SHRemoveLocalizedName(pszPath: PCWSTR) -> HRESULT; -} -extern "C" { - pub fn SHGetLocalizedName( - pszPath: PCWSTR, - pszResModule: PWSTR, - cch: UINT, - pidsRes: *mut ::std::os::raw::c_int, - ) -> HRESULT; -} -extern "C" { - pub fn ShellMessageBoxA( - hAppInst: HINSTANCE, - hWnd: HWND, - lpcText: LPCSTR, - lpcTitle: LPCSTR, - fuStyle: UINT, - ... - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ShellMessageBoxW( - hAppInst: HINSTANCE, - hWnd: HWND, - lpcText: LPCWSTR, - lpcTitle: LPCWSTR, - fuStyle: UINT, - ... - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn IsLFNDriveA(pszPath: LPCSTR) -> BOOL; -} -extern "C" { - pub fn IsLFNDriveW(pszPath: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn SHEnumerateUnreadMailAccountsA( - hKeyUser: HKEY, - dwIndex: DWORD, - pszMailAddress: LPSTR, - cchMailAddress: ::std::os::raw::c_int, - ) -> HRESULT; -} -extern "C" { - pub fn SHEnumerateUnreadMailAccountsW( - hKeyUser: HKEY, - dwIndex: DWORD, - pszMailAddress: LPWSTR, - cchMailAddress: ::std::os::raw::c_int, - ) -> HRESULT; -} -extern "C" { - pub fn SHGetUnreadMailCountA( - hKeyUser: HKEY, - pszMailAddress: LPCSTR, - pdwCount: *mut DWORD, - pFileTime: *mut FILETIME, - pszShellExecuteCommand: LPSTR, - cchShellExecuteCommand: ::std::os::raw::c_int, - ) -> HRESULT; -} -extern "C" { - pub fn SHGetUnreadMailCountW( - hKeyUser: HKEY, - pszMailAddress: LPCWSTR, - pdwCount: *mut DWORD, - pFileTime: *mut FILETIME, - pszShellExecuteCommand: LPWSTR, - cchShellExecuteCommand: ::std::os::raw::c_int, - ) -> HRESULT; -} -extern "C" { - pub fn SHSetUnreadMailCountA( - pszMailAddress: LPCSTR, - dwCount: DWORD, - pszShellExecuteCommand: LPCSTR, - ) -> HRESULT; -} -extern "C" { - pub fn SHSetUnreadMailCountW( - pszMailAddress: LPCWSTR, - dwCount: DWORD, - pszShellExecuteCommand: LPCWSTR, - ) -> HRESULT; -} -extern "C" { - pub fn SHTestTokenMembership(hToken: HANDLE, ulRID: ULONG) -> BOOL; -} -extern "C" { - pub fn SHGetImageList( - iImageList: ::std::os::raw::c_int, - riid: *const IID, - ppvObj: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -pub type PFNCANSHAREFOLDERW = - ::std::option::Option HRESULT>; -pub type PFNSHOWSHAREFOLDERUIW = - ::std::option::Option HRESULT>; -extern "C" { - pub fn InitNetworkAddressControl() -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagNC_ADDRESS { - pub pAddrInfo: *mut NET_ADDRESS_INFO_, - pub PortNumber: USHORT, - pub PrefixLength: BYTE, -} -pub type NC_ADDRESS = tagNC_ADDRESS; -pub type PNC_ADDRESS = *mut tagNC_ADDRESS; -extern "C" { - pub fn SHGetDriveMedia(pszDrive: PCWSTR, pdwMediaContent: *mut DWORD) -> HRESULT; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PERF_DATA_BLOCK { - pub Signature: [WCHAR; 4usize], - pub LittleEndian: DWORD, - pub Version: DWORD, - pub Revision: DWORD, - pub TotalByteLength: DWORD, - pub HeaderLength: DWORD, - pub NumObjectTypes: DWORD, - pub DefaultObject: LONG, - pub SystemTime: SYSTEMTIME, - pub PerfTime: LARGE_INTEGER, - pub PerfFreq: LARGE_INTEGER, - pub PerfTime100nSec: LARGE_INTEGER, - pub SystemNameLength: DWORD, - pub SystemNameOffset: DWORD, -} -pub type PERF_DATA_BLOCK = _PERF_DATA_BLOCK; -pub type PPERF_DATA_BLOCK = *mut _PERF_DATA_BLOCK; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PERF_OBJECT_TYPE { - pub TotalByteLength: DWORD, - pub DefinitionLength: DWORD, - pub HeaderLength: DWORD, - pub ObjectNameTitleIndex: DWORD, - pub ObjectNameTitle: DWORD, - pub ObjectHelpTitleIndex: DWORD, - pub ObjectHelpTitle: DWORD, - pub DetailLevel: DWORD, - pub NumCounters: DWORD, - pub DefaultCounter: LONG, - pub NumInstances: LONG, - pub CodePage: DWORD, - pub PerfTime: LARGE_INTEGER, - pub PerfFreq: LARGE_INTEGER, -} -pub type PERF_OBJECT_TYPE = _PERF_OBJECT_TYPE; -pub type PPERF_OBJECT_TYPE = *mut _PERF_OBJECT_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PERF_COUNTER_DEFINITION { - pub ByteLength: DWORD, - pub CounterNameTitleIndex: DWORD, - pub CounterNameTitle: DWORD, - pub CounterHelpTitleIndex: DWORD, - pub CounterHelpTitle: DWORD, - pub DefaultScale: LONG, - pub DetailLevel: DWORD, - pub CounterType: DWORD, - pub CounterSize: DWORD, - pub CounterOffset: DWORD, -} -pub type PERF_COUNTER_DEFINITION = _PERF_COUNTER_DEFINITION; -pub type PPERF_COUNTER_DEFINITION = *mut _PERF_COUNTER_DEFINITION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PERF_INSTANCE_DEFINITION { - pub ByteLength: DWORD, - pub ParentObjectTitleIndex: DWORD, - pub ParentObjectInstance: DWORD, - pub UniqueID: LONG, - pub NameOffset: DWORD, - pub NameLength: DWORD, -} -pub type PERF_INSTANCE_DEFINITION = _PERF_INSTANCE_DEFINITION; -pub type PPERF_INSTANCE_DEFINITION = *mut _PERF_INSTANCE_DEFINITION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PERF_COUNTER_BLOCK { - pub ByteLength: DWORD, -} -pub type PERF_COUNTER_BLOCK = _PERF_COUNTER_BLOCK; -pub type PPERF_COUNTER_BLOCK = *mut _PERF_COUNTER_BLOCK; -pub type u_char = ::std::os::raw::c_uchar; -pub type u_short = ::std::os::raw::c_ushort; -pub type u_int = ::std::os::raw::c_uint; -pub type u_long = ::std::os::raw::c_ulong; -pub type SOCKET = UINT_PTR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fd_set { - pub fd_count: u_int, - pub fd_array: [SOCKET; 64usize], -} -extern "C" { - pub fn __WSAFDIsSet(arg1: SOCKET, arg2: *mut fd_set) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct timeval { - pub tv_sec: ::std::os::raw::c_long, - pub tv_usec: ::std::os::raw::c_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hostent { - pub h_name: *mut ::std::os::raw::c_char, - pub h_aliases: *mut *mut ::std::os::raw::c_char, - pub h_addrtype: ::std::os::raw::c_short, - pub h_length: ::std::os::raw::c_short, - pub h_addr_list: *mut *mut ::std::os::raw::c_char, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct netent { - pub n_name: *mut ::std::os::raw::c_char, - pub n_aliases: *mut *mut ::std::os::raw::c_char, - pub n_addrtype: ::std::os::raw::c_short, - pub n_net: u_long, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct servent { - pub s_name: *mut ::std::os::raw::c_char, - pub s_aliases: *mut *mut ::std::os::raw::c_char, - pub s_proto: *mut ::std::os::raw::c_char, - pub s_port: ::std::os::raw::c_short, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct protoent { - pub p_name: *mut ::std::os::raw::c_char, - pub p_aliases: *mut *mut ::std::os::raw::c_char, - pub p_proto: ::std::os::raw::c_short, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in_addr { - pub S_un: in_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in_addr__bindgen_ty_1 { - pub S_un_b: in_addr__bindgen_ty_1__bindgen_ty_1, - pub S_un_w: in_addr__bindgen_ty_1__bindgen_ty_2, - pub S_addr: ULONG, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr__bindgen_ty_1__bindgen_ty_1 { - pub s_b1: UCHAR, - pub s_b2: UCHAR, - pub s_b3: UCHAR, - pub s_b4: UCHAR, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct in_addr__bindgen_ty_1__bindgen_ty_2 { - pub s_w1: USHORT, - pub s_w2: USHORT, -} -pub type IN_ADDR = in_addr; -pub type PIN_ADDR = *mut in_addr; -pub type LPIN_ADDR = *mut in_addr; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in { - pub sin_family: ::std::os::raw::c_short, - pub sin_port: u_short, - pub sin_addr: in_addr, - pub sin_zero: [::std::os::raw::c_char; 8usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WSAData { - pub wVersion: WORD, - pub wHighVersion: WORD, - pub iMaxSockets: ::std::os::raw::c_ushort, - pub iMaxUdpDg: ::std::os::raw::c_ushort, - pub lpVendorInfo: *mut ::std::os::raw::c_char, - pub szDescription: [::std::os::raw::c_char; 257usize], - pub szSystemStatus: [::std::os::raw::c_char; 129usize], -} -pub type WSADATA = WSAData; -pub type LPWSADATA = *mut WSADATA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ip_mreq { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr { - pub sa_family: u_short, - pub sa_data: [::std::os::raw::c_char; 14usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockproto { - pub sp_family: u_short, - pub sp_protocol: u_short, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct linger { - pub l_onoff: u_short, - pub l_linger: u_short, -} -extern "C" { - pub fn accept(s: SOCKET, addr: *mut sockaddr, addrlen: *mut ::std::os::raw::c_int) -> SOCKET; -} -extern "C" { - pub fn bind( - s: SOCKET, - addr: *const sockaddr, - namelen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn closesocket(s: SOCKET) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn connect( - s: SOCKET, - name: *const sockaddr, - namelen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ioctlsocket( - s: SOCKET, - cmd: ::std::os::raw::c_long, - argp: *mut u_long, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn getpeername( - s: SOCKET, - name: *mut sockaddr, - namelen: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn getsockname( - s: SOCKET, - name: *mut sockaddr, - namelen: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn getsockopt( - s: SOCKET, - level: ::std::os::raw::c_int, - optname: ::std::os::raw::c_int, - optval: *mut ::std::os::raw::c_char, - optlen: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn htonl(hostlong: u_long) -> u_long; -} -extern "C" { - pub fn htons(hostshort: u_short) -> u_short; -} -extern "C" { - pub fn inet_addr(cp: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn inet_ntoa(in_: in_addr) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn listen(s: SOCKET, backlog: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn ntohl(netlong: u_long) -> u_long; -} -extern "C" { - pub fn ntohs(netshort: u_short) -> u_short; -} -extern "C" { - pub fn recv( - s: SOCKET, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn recvfrom( - s: SOCKET, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - from: *mut sockaddr, - fromlen: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn select( - nfds: ::std::os::raw::c_int, - readfds: *mut fd_set, - writefds: *mut fd_set, - exceptfds: *mut fd_set, - timeout: *const timeval, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn send( - s: SOCKET, - buf: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sendto( - s: SOCKET, - buf: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - to: *const sockaddr, - tolen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn setsockopt( - s: SOCKET, - level: ::std::os::raw::c_int, - optname: ::std::os::raw::c_int, - optval: *const ::std::os::raw::c_char, - optlen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn shutdown(s: SOCKET, how: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn socket( - af: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - protocol: ::std::os::raw::c_int, - ) -> SOCKET; -} -extern "C" { - pub fn gethostbyaddr( - addr: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - ) -> *mut hostent; -} -extern "C" { - pub fn gethostbyname(name: *const ::std::os::raw::c_char) -> *mut hostent; -} -extern "C" { - pub fn gethostname( - name: *mut ::std::os::raw::c_char, - namelen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn getservbyport( - port: ::std::os::raw::c_int, - proto: *const ::std::os::raw::c_char, - ) -> *mut servent; -} -extern "C" { - pub fn getservbyname( - name: *const ::std::os::raw::c_char, - proto: *const ::std::os::raw::c_char, - ) -> *mut servent; -} -extern "C" { - pub fn getprotobynumber(proto: ::std::os::raw::c_int) -> *mut protoent; -} -extern "C" { - pub fn getprotobyname(name: *const ::std::os::raw::c_char) -> *mut protoent; -} -extern "C" { - pub fn WSAStartup(wVersionRequired: WORD, lpWSAData: LPWSADATA) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn WSACleanup() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn WSASetLastError(iError: ::std::os::raw::c_int); -} -extern "C" { - pub fn WSAGetLastError() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn WSAIsBlocking() -> BOOL; -} -extern "C" { - pub fn WSAUnhookBlockingHook() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn WSASetBlockingHook(lpBlockFunc: FARPROC) -> FARPROC; -} -extern "C" { - pub fn WSACancelBlockingCall() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn WSAAsyncGetServByName( - hWnd: HWND, - wMsg: u_int, - name: *const ::std::os::raw::c_char, - proto: *const ::std::os::raw::c_char, - buf: *mut ::std::os::raw::c_char, - buflen: ::std::os::raw::c_int, - ) -> HANDLE; -} -extern "C" { - pub fn WSAAsyncGetServByPort( - hWnd: HWND, - wMsg: u_int, - port: ::std::os::raw::c_int, - proto: *const ::std::os::raw::c_char, - buf: *mut ::std::os::raw::c_char, - buflen: ::std::os::raw::c_int, - ) -> HANDLE; -} -extern "C" { - pub fn WSAAsyncGetProtoByName( - hWnd: HWND, - wMsg: u_int, - name: *const ::std::os::raw::c_char, - buf: *mut ::std::os::raw::c_char, - buflen: ::std::os::raw::c_int, - ) -> HANDLE; -} -extern "C" { - pub fn WSAAsyncGetProtoByNumber( - hWnd: HWND, - wMsg: u_int, - number: ::std::os::raw::c_int, - buf: *mut ::std::os::raw::c_char, - buflen: ::std::os::raw::c_int, - ) -> HANDLE; -} -extern "C" { - pub fn WSAAsyncGetHostByName( - hWnd: HWND, - wMsg: u_int, - name: *const ::std::os::raw::c_char, - buf: *mut ::std::os::raw::c_char, - buflen: ::std::os::raw::c_int, - ) -> HANDLE; -} -extern "C" { - pub fn WSAAsyncGetHostByAddr( - hWnd: HWND, - wMsg: u_int, - addr: *const ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - type_: ::std::os::raw::c_int, - buf: *mut ::std::os::raw::c_char, - buflen: ::std::os::raw::c_int, - ) -> HANDLE; -} -extern "C" { - pub fn WSACancelAsyncRequest(hAsyncTaskHandle: HANDLE) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn WSAAsyncSelect( - s: SOCKET, - hWnd: HWND, - wMsg: u_int, - lEvent: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn WSARecvEx( - s: SOCKET, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - flags: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TRANSMIT_FILE_BUFFERS { - pub Head: PVOID, - pub HeadLength: DWORD, - pub Tail: PVOID, - pub TailLength: DWORD, -} -pub type TRANSMIT_FILE_BUFFERS = _TRANSMIT_FILE_BUFFERS; -pub type PTRANSMIT_FILE_BUFFERS = *mut _TRANSMIT_FILE_BUFFERS; -pub type LPTRANSMIT_FILE_BUFFERS = *mut _TRANSMIT_FILE_BUFFERS; -extern "C" { - pub fn TransmitFile( - hSocket: SOCKET, - hFile: HANDLE, - nNumberOfBytesToWrite: DWORD, - nNumberOfBytesPerSend: DWORD, - lpOverlapped: LPOVERLAPPED, - lpTransmitBuffers: LPTRANSMIT_FILE_BUFFERS, - dwReserved: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn AcceptEx( - sListenSocket: SOCKET, - sAcceptSocket: SOCKET, - lpOutputBuffer: PVOID, - dwReceiveDataLength: DWORD, - dwLocalAddressLength: DWORD, - dwRemoteAddressLength: DWORD, - lpdwBytesReceived: LPDWORD, - lpOverlapped: LPOVERLAPPED, - ) -> BOOL; -} -extern "C" { - pub fn GetAcceptExSockaddrs( - lpOutputBuffer: PVOID, - dwReceiveDataLength: DWORD, - dwLocalAddressLength: DWORD, - dwRemoteAddressLength: DWORD, - LocalSockaddr: *mut *mut sockaddr, - LocalSockaddrLength: LPINT, - RemoteSockaddr: *mut *mut sockaddr, - RemoteSockaddrLength: LPINT, - ); -} -pub type SOCKADDR = sockaddr; -pub type PSOCKADDR = *mut sockaddr; -pub type LPSOCKADDR = *mut sockaddr; -pub type SOCKADDR_IN = sockaddr_in; -pub type PSOCKADDR_IN = *mut sockaddr_in; -pub type LPSOCKADDR_IN = *mut sockaddr_in; -pub type LINGER = linger; -pub type PLINGER = *mut linger; -pub type LPLINGER = *mut linger; -pub type FD_SET = fd_set; -pub type PFD_SET = *mut fd_set; -pub type LPFD_SET = *mut fd_set; -pub type HOSTENT = hostent; -pub type PHOSTENT = *mut hostent; -pub type LPHOSTENT = *mut hostent; -pub type SERVENT = servent; -pub type PSERVENT = *mut servent; -pub type LPSERVENT = *mut servent; -pub type PROTOENT = protoent; -pub type PPROTOENT = *mut protoent; -pub type LPPROTOENT = *mut protoent; -pub type TIMEVAL = timeval; -pub type PTIMEVAL = *mut timeval; -pub type LPTIMEVAL = *mut timeval; -pub type ALG_ID = ::std::os::raw::c_uint; -pub type HCRYPTPROV = ULONG_PTR; -pub type HCRYPTKEY = ULONG_PTR; -pub type HCRYPTHASH = ULONG_PTR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMS_KEY_INFO { - pub dwVersion: DWORD, - pub Algid: ALG_ID, - pub pbOID: *mut BYTE, - pub cbOID: DWORD, -} -pub type CMS_KEY_INFO = _CMS_KEY_INFO; -pub type PCMS_KEY_INFO = *mut _CMS_KEY_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _HMAC_Info { - pub HashAlgid: ALG_ID, - pub pbInnerString: *mut BYTE, - pub cbInnerString: DWORD, - pub pbOuterString: *mut BYTE, - pub cbOuterString: DWORD, -} -pub type HMAC_INFO = _HMAC_Info; -pub type PHMAC_INFO = *mut _HMAC_Info; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCHANNEL_ALG { - pub dwUse: DWORD, - pub Algid: ALG_ID, - pub cBits: DWORD, - pub dwFlags: DWORD, - pub dwReserved: DWORD, -} -pub type SCHANNEL_ALG = _SCHANNEL_ALG; -pub type PSCHANNEL_ALG = *mut _SCHANNEL_ALG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROV_ENUMALGS { - pub aiAlgid: ALG_ID, - pub dwBitLen: DWORD, - pub dwNameLen: DWORD, - pub szName: [CHAR; 20usize], -} -pub type PROV_ENUMALGS = _PROV_ENUMALGS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROV_ENUMALGS_EX { - pub aiAlgid: ALG_ID, - pub dwDefaultLen: DWORD, - pub dwMinLen: DWORD, - pub dwMaxLen: DWORD, - pub dwProtocols: DWORD, - pub dwNameLen: DWORD, - pub szName: [CHAR; 20usize], - pub dwLongNameLen: DWORD, - pub szLongName: [CHAR; 40usize], -} -pub type PROV_ENUMALGS_EX = _PROV_ENUMALGS_EX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PUBLICKEYSTRUC { - pub bType: BYTE, - pub bVersion: BYTE, - pub reserved: WORD, - pub aiKeyAlg: ALG_ID, -} -pub type BLOBHEADER = _PUBLICKEYSTRUC; -pub type PUBLICKEYSTRUC = _PUBLICKEYSTRUC; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _RSAPUBKEY { - pub magic: DWORD, - pub bitlen: DWORD, - pub pubexp: DWORD, -} -pub type RSAPUBKEY = _RSAPUBKEY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PUBKEY { - pub magic: DWORD, - pub bitlen: DWORD, -} -pub type DHPUBKEY = _PUBKEY; -pub type DSSPUBKEY = _PUBKEY; -pub type KEAPUBKEY = _PUBKEY; -pub type TEKPUBKEY = _PUBKEY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DSSSEED { - pub counter: DWORD, - pub seed: [BYTE; 20usize], -} -pub type DSSSEED = _DSSSEED; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PUBKEYVER3 { - pub magic: DWORD, - pub bitlenP: DWORD, - pub bitlenQ: DWORD, - pub bitlenJ: DWORD, - pub DSSSeed: DSSSEED, -} -pub type DHPUBKEY_VER3 = _PUBKEYVER3; -pub type DSSPUBKEY_VER3 = _PUBKEYVER3; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRIVKEYVER3 { - pub magic: DWORD, - pub bitlenP: DWORD, - pub bitlenQ: DWORD, - pub bitlenJ: DWORD, - pub bitlenX: DWORD, - pub DSSSeed: DSSSEED, -} -pub type DHPRIVKEY_VER3 = _PRIVKEYVER3; -pub type DSSPRIVKEY_VER3 = _PRIVKEYVER3; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _KEY_TYPE_SUBTYPE { - pub dwKeySpec: DWORD, - pub Type: GUID, - pub Subtype: GUID, -} -pub type KEY_TYPE_SUBTYPE = _KEY_TYPE_SUBTYPE; -pub type PKEY_TYPE_SUBTYPE = *mut _KEY_TYPE_SUBTYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_FORTEZZA_DATA_PROP { - pub SerialNumber: [::std::os::raw::c_uchar; 8usize], - pub CertIndex: ::std::os::raw::c_int, - pub CertLabel: [::std::os::raw::c_uchar; 36usize], -} -pub type CERT_FORTEZZA_DATA_PROP = _CERT_FORTEZZA_DATA_PROP; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_RC4_KEY_STATE { - pub Key: [::std::os::raw::c_uchar; 16usize], - pub SBox: [::std::os::raw::c_uchar; 256usize], - pub i: ::std::os::raw::c_uchar, - pub j: ::std::os::raw::c_uchar, -} -pub type CRYPT_RC4_KEY_STATE = _CRYPT_RC4_KEY_STATE; -pub type PCRYPT_RC4_KEY_STATE = *mut _CRYPT_RC4_KEY_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_DES_KEY_STATE { - pub Key: [::std::os::raw::c_uchar; 8usize], - pub IV: [::std::os::raw::c_uchar; 8usize], - pub Feedback: [::std::os::raw::c_uchar; 8usize], -} -pub type CRYPT_DES_KEY_STATE = _CRYPT_DES_KEY_STATE; -pub type PCRYPT_DES_KEY_STATE = *mut _CRYPT_DES_KEY_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_3DES_KEY_STATE { - pub Key: [::std::os::raw::c_uchar; 24usize], - pub IV: [::std::os::raw::c_uchar; 8usize], - pub Feedback: [::std::os::raw::c_uchar; 8usize], -} -pub type CRYPT_3DES_KEY_STATE = _CRYPT_3DES_KEY_STATE; -pub type PCRYPT_3DES_KEY_STATE = *mut _CRYPT_3DES_KEY_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_AES_128_KEY_STATE { - pub Key: [::std::os::raw::c_uchar; 16usize], - pub IV: [::std::os::raw::c_uchar; 16usize], - pub EncryptionState: [[::std::os::raw::c_uchar; 16usize]; 11usize], - pub DecryptionState: [[::std::os::raw::c_uchar; 16usize]; 11usize], - pub Feedback: [::std::os::raw::c_uchar; 16usize], -} -pub type CRYPT_AES_128_KEY_STATE = _CRYPT_AES_128_KEY_STATE; -pub type PCRYPT_AES_128_KEY_STATE = *mut _CRYPT_AES_128_KEY_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_AES_256_KEY_STATE { - pub Key: [::std::os::raw::c_uchar; 32usize], - pub IV: [::std::os::raw::c_uchar; 16usize], - pub EncryptionState: [[::std::os::raw::c_uchar; 16usize]; 15usize], - pub DecryptionState: [[::std::os::raw::c_uchar; 16usize]; 15usize], - pub Feedback: [::std::os::raw::c_uchar; 16usize], -} -pub type CRYPT_AES_256_KEY_STATE = _CRYPT_AES_256_KEY_STATE; -pub type PCRYPT_AES_256_KEY_STATE = *mut _CRYPT_AES_256_KEY_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPTOAPI_BLOB { - pub cbData: DWORD, - pub pbData: *mut BYTE, -} -pub type CRYPT_INTEGER_BLOB = _CRYPTOAPI_BLOB; -pub type PCRYPT_INTEGER_BLOB = *mut _CRYPTOAPI_BLOB; -pub type CRYPT_UINT_BLOB = _CRYPTOAPI_BLOB; -pub type PCRYPT_UINT_BLOB = *mut _CRYPTOAPI_BLOB; -pub type CRYPT_OBJID_BLOB = _CRYPTOAPI_BLOB; -pub type PCRYPT_OBJID_BLOB = *mut _CRYPTOAPI_BLOB; -pub type CERT_NAME_BLOB = _CRYPTOAPI_BLOB; -pub type PCERT_NAME_BLOB = *mut _CRYPTOAPI_BLOB; -pub type CERT_RDN_VALUE_BLOB = _CRYPTOAPI_BLOB; -pub type PCERT_RDN_VALUE_BLOB = *mut _CRYPTOAPI_BLOB; -pub type CERT_BLOB = _CRYPTOAPI_BLOB; -pub type PCERT_BLOB = *mut _CRYPTOAPI_BLOB; -pub type CRL_BLOB = _CRYPTOAPI_BLOB; -pub type PCRL_BLOB = *mut _CRYPTOAPI_BLOB; -pub type DATA_BLOB = _CRYPTOAPI_BLOB; -pub type PDATA_BLOB = *mut _CRYPTOAPI_BLOB; -pub type CRYPT_DATA_BLOB = _CRYPTOAPI_BLOB; -pub type PCRYPT_DATA_BLOB = *mut _CRYPTOAPI_BLOB; -pub type CRYPT_HASH_BLOB = _CRYPTOAPI_BLOB; -pub type PCRYPT_HASH_BLOB = *mut _CRYPTOAPI_BLOB; -pub type CRYPT_DIGEST_BLOB = _CRYPTOAPI_BLOB; -pub type PCRYPT_DIGEST_BLOB = *mut _CRYPTOAPI_BLOB; -pub type CRYPT_DER_BLOB = _CRYPTOAPI_BLOB; -pub type PCRYPT_DER_BLOB = *mut _CRYPTOAPI_BLOB; -pub type CRYPT_ATTR_BLOB = _CRYPTOAPI_BLOB; -pub type PCRYPT_ATTR_BLOB = *mut _CRYPTOAPI_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMS_DH_KEY_INFO { - pub dwVersion: DWORD, - pub Algid: ALG_ID, - pub pszContentEncObjId: LPSTR, - pub PubInfo: CRYPT_DATA_BLOB, - pub pReserved: *mut ::std::os::raw::c_void, -} -pub type CMS_DH_KEY_INFO = _CMS_DH_KEY_INFO; -pub type PCMS_DH_KEY_INFO = *mut _CMS_DH_KEY_INFO; -extern "C" { - pub fn CryptAcquireContextA( - phProv: *mut HCRYPTPROV, - szContainer: LPCSTR, - szProvider: LPCSTR, - dwProvType: DWORD, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptAcquireContextW( - phProv: *mut HCRYPTPROV, - szContainer: LPCWSTR, - szProvider: LPCWSTR, - dwProvType: DWORD, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptReleaseContext(hProv: HCRYPTPROV, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn CryptGenKey( - hProv: HCRYPTPROV, - Algid: ALG_ID, - dwFlags: DWORD, - phKey: *mut HCRYPTKEY, - ) -> BOOL; -} -extern "C" { - pub fn CryptDeriveKey( - hProv: HCRYPTPROV, - Algid: ALG_ID, - hBaseData: HCRYPTHASH, - dwFlags: DWORD, - phKey: *mut HCRYPTKEY, - ) -> BOOL; -} -extern "C" { - pub fn CryptDestroyKey(hKey: HCRYPTKEY) -> BOOL; -} -extern "C" { - pub fn CryptSetKeyParam( - hKey: HCRYPTKEY, - dwParam: DWORD, - pbData: *const BYTE, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptGetKeyParam( - hKey: HCRYPTKEY, - dwParam: DWORD, - pbData: *mut BYTE, - pdwDataLen: *mut DWORD, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptSetHashParam( - hHash: HCRYPTHASH, - dwParam: DWORD, - pbData: *const BYTE, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptGetHashParam( - hHash: HCRYPTHASH, - dwParam: DWORD, - pbData: *mut BYTE, - pdwDataLen: *mut DWORD, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptSetProvParam( - hProv: HCRYPTPROV, - dwParam: DWORD, - pbData: *const BYTE, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptGetProvParam( - hProv: HCRYPTPROV, - dwParam: DWORD, - pbData: *mut BYTE, - pdwDataLen: *mut DWORD, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptGenRandom(hProv: HCRYPTPROV, dwLen: DWORD, pbBuffer: *mut BYTE) -> BOOL; -} -extern "C" { - pub fn CryptGetUserKey(hProv: HCRYPTPROV, dwKeySpec: DWORD, phUserKey: *mut HCRYPTKEY) -> BOOL; -} -extern "C" { - pub fn CryptExportKey( - hKey: HCRYPTKEY, - hExpKey: HCRYPTKEY, - dwBlobType: DWORD, - dwFlags: DWORD, - pbData: *mut BYTE, - pdwDataLen: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptImportKey( - hProv: HCRYPTPROV, - pbData: *const BYTE, - dwDataLen: DWORD, - hPubKey: HCRYPTKEY, - dwFlags: DWORD, - phKey: *mut HCRYPTKEY, - ) -> BOOL; -} -extern "C" { - pub fn CryptEncrypt( - hKey: HCRYPTKEY, - hHash: HCRYPTHASH, - Final: BOOL, - dwFlags: DWORD, - pbData: *mut BYTE, - pdwDataLen: *mut DWORD, - dwBufLen: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptDecrypt( - hKey: HCRYPTKEY, - hHash: HCRYPTHASH, - Final: BOOL, - dwFlags: DWORD, - pbData: *mut BYTE, - pdwDataLen: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptCreateHash( - hProv: HCRYPTPROV, - Algid: ALG_ID, - hKey: HCRYPTKEY, - dwFlags: DWORD, - phHash: *mut HCRYPTHASH, - ) -> BOOL; -} -extern "C" { - pub fn CryptHashData( - hHash: HCRYPTHASH, - pbData: *const BYTE, - dwDataLen: DWORD, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptHashSessionKey(hHash: HCRYPTHASH, hKey: HCRYPTKEY, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn CryptDestroyHash(hHash: HCRYPTHASH) -> BOOL; -} -extern "C" { - pub fn CryptSignHashA( - hHash: HCRYPTHASH, - dwKeySpec: DWORD, - szDescription: LPCSTR, - dwFlags: DWORD, - pbSignature: *mut BYTE, - pdwSigLen: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptSignHashW( - hHash: HCRYPTHASH, - dwKeySpec: DWORD, - szDescription: LPCWSTR, - dwFlags: DWORD, - pbSignature: *mut BYTE, - pdwSigLen: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptVerifySignatureA( - hHash: HCRYPTHASH, - pbSignature: *const BYTE, - dwSigLen: DWORD, - hPubKey: HCRYPTKEY, - szDescription: LPCSTR, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptVerifySignatureW( - hHash: HCRYPTHASH, - pbSignature: *const BYTE, - dwSigLen: DWORD, - hPubKey: HCRYPTKEY, - szDescription: LPCWSTR, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptSetProviderA(pszProvName: LPCSTR, dwProvType: DWORD) -> BOOL; -} -extern "C" { - pub fn CryptSetProviderW(pszProvName: LPCWSTR, dwProvType: DWORD) -> BOOL; -} -extern "C" { - pub fn CryptSetProviderExA( - pszProvName: LPCSTR, - dwProvType: DWORD, - pdwReserved: *mut DWORD, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptSetProviderExW( - pszProvName: LPCWSTR, - dwProvType: DWORD, - pdwReserved: *mut DWORD, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptGetDefaultProviderA( - dwProvType: DWORD, - pdwReserved: *mut DWORD, - dwFlags: DWORD, - pszProvName: LPSTR, - pcbProvName: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptGetDefaultProviderW( - dwProvType: DWORD, - pdwReserved: *mut DWORD, - dwFlags: DWORD, - pszProvName: LPWSTR, - pcbProvName: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptEnumProviderTypesA( - dwIndex: DWORD, - pdwReserved: *mut DWORD, - dwFlags: DWORD, - pdwProvType: *mut DWORD, - szTypeName: LPSTR, - pcbTypeName: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptEnumProviderTypesW( - dwIndex: DWORD, - pdwReserved: *mut DWORD, - dwFlags: DWORD, - pdwProvType: *mut DWORD, - szTypeName: LPWSTR, - pcbTypeName: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptEnumProvidersA( - dwIndex: DWORD, - pdwReserved: *mut DWORD, - dwFlags: DWORD, - pdwProvType: *mut DWORD, - szProvName: LPSTR, - pcbProvName: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptEnumProvidersW( - dwIndex: DWORD, - pdwReserved: *mut DWORD, - dwFlags: DWORD, - pdwProvType: *mut DWORD, - szProvName: LPWSTR, - pcbProvName: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptContextAddRef(hProv: HCRYPTPROV, pdwReserved: *mut DWORD, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn CryptDuplicateKey( - hKey: HCRYPTKEY, - pdwReserved: *mut DWORD, - dwFlags: DWORD, - phKey: *mut HCRYPTKEY, - ) -> BOOL; -} -extern "C" { - pub fn CryptDuplicateHash( - hHash: HCRYPTHASH, - pdwReserved: *mut DWORD, - dwFlags: DWORD, - phHash: *mut HCRYPTHASH, - ) -> BOOL; -} -extern "C" { - pub fn GetEncSChannel(pData: *mut *mut BYTE, dwDecSize: *mut DWORD) -> BOOL; -} -pub type NTSTATUS = LONG; -pub type PNTSTATUS = *mut NTSTATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __BCRYPT_KEY_LENGTHS_STRUCT { - pub dwMinLength: ULONG, - pub dwMaxLength: ULONG, - pub dwIncrement: ULONG, -} -pub type BCRYPT_KEY_LENGTHS_STRUCT = __BCRYPT_KEY_LENGTHS_STRUCT; -pub type BCRYPT_AUTH_TAG_LENGTHS_STRUCT = BCRYPT_KEY_LENGTHS_STRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_OID { - pub cbOID: ULONG, - pub pbOID: PUCHAR, -} -pub type BCRYPT_OID = _BCRYPT_OID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_OID_LIST { - pub dwOIDCount: ULONG, - pub pOIDs: *mut BCRYPT_OID, -} -pub type BCRYPT_OID_LIST = _BCRYPT_OID_LIST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_PKCS1_PADDING_INFO { - pub pszAlgId: LPCWSTR, -} -pub type BCRYPT_PKCS1_PADDING_INFO = _BCRYPT_PKCS1_PADDING_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_PSS_PADDING_INFO { - pub pszAlgId: LPCWSTR, - pub cbSalt: ULONG, -} -pub type BCRYPT_PSS_PADDING_INFO = _BCRYPT_PSS_PADDING_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_OAEP_PADDING_INFO { - pub pszAlgId: LPCWSTR, - pub pbLabel: PUCHAR, - pub cbLabel: ULONG, -} -pub type BCRYPT_OAEP_PADDING_INFO = _BCRYPT_OAEP_PADDING_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO { - pub cbSize: ULONG, - pub dwInfoVersion: ULONG, - pub pbNonce: PUCHAR, - pub cbNonce: ULONG, - pub pbAuthData: PUCHAR, - pub cbAuthData: ULONG, - pub pbTag: PUCHAR, - pub cbTag: ULONG, - pub pbMacContext: PUCHAR, - pub cbMacContext: ULONG, - pub cbAAD: ULONG, - pub cbData: ULONGLONG, - pub dwFlags: ULONG, -} -pub type BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO = _BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO; -pub type PBCRYPT_AUTHENTICATED_CIPHER_MODE_INFO = *mut _BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCryptBuffer { - pub cbBuffer: ULONG, - pub BufferType: ULONG, - pub pvBuffer: PVOID, -} -pub type BCryptBuffer = _BCryptBuffer; -pub type PBCryptBuffer = *mut _BCryptBuffer; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCryptBufferDesc { - pub ulVersion: ULONG, - pub cBuffers: ULONG, - pub pBuffers: PBCryptBuffer, -} -pub type BCryptBufferDesc = _BCryptBufferDesc; -pub type PBCryptBufferDesc = *mut _BCryptBufferDesc; -pub type BCRYPT_HANDLE = PVOID; -pub type BCRYPT_ALG_HANDLE = PVOID; -pub type BCRYPT_KEY_HANDLE = PVOID; -pub type BCRYPT_HASH_HANDLE = PVOID; -pub type BCRYPT_SECRET_HANDLE = PVOID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_KEY_BLOB { - pub Magic: ULONG, -} -pub type BCRYPT_KEY_BLOB = _BCRYPT_KEY_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_RSAKEY_BLOB { - pub Magic: ULONG, - pub BitLength: ULONG, - pub cbPublicExp: ULONG, - pub cbModulus: ULONG, - pub cbPrime1: ULONG, - pub cbPrime2: ULONG, -} -pub type BCRYPT_RSAKEY_BLOB = _BCRYPT_RSAKEY_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_ECCKEY_BLOB { - pub dwMagic: ULONG, - pub cbKey: ULONG, -} -pub type BCRYPT_ECCKEY_BLOB = _BCRYPT_ECCKEY_BLOB; -pub type PBCRYPT_ECCKEY_BLOB = *mut _BCRYPT_ECCKEY_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SSL_ECCKEY_BLOB { - pub dwCurveType: ULONG, - pub cbKey: ULONG, -} -pub type SSL_ECCKEY_BLOB = _SSL_ECCKEY_BLOB; -pub type PSSL_ECCKEY_BLOB = *mut _SSL_ECCKEY_BLOB; -pub const ECC_CURVE_TYPE_ENUM_BCRYPT_ECC_PRIME_SHORT_WEIERSTRASS_CURVE: ECC_CURVE_TYPE_ENUM = 1; -pub const ECC_CURVE_TYPE_ENUM_BCRYPT_ECC_PRIME_TWISTED_EDWARDS_CURVE: ECC_CURVE_TYPE_ENUM = 2; -pub const ECC_CURVE_TYPE_ENUM_BCRYPT_ECC_PRIME_MONTGOMERY_CURVE: ECC_CURVE_TYPE_ENUM = 3; -pub type ECC_CURVE_TYPE_ENUM = ::std::os::raw::c_int; -pub const ECC_CURVE_ALG_ID_ENUM_BCRYPT_NO_CURVE_GENERATION_ALG_ID: ECC_CURVE_ALG_ID_ENUM = 0; -pub type ECC_CURVE_ALG_ID_ENUM = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_ECCFULLKEY_BLOB { - pub dwMagic: ULONG, - pub dwVersion: ULONG, - pub dwCurveType: ECC_CURVE_TYPE_ENUM, - pub dwCurveGenerationAlgId: ECC_CURVE_ALG_ID_ENUM, - pub cbFieldLength: ULONG, - pub cbSubgroupOrder: ULONG, - pub cbCofactor: ULONG, - pub cbSeed: ULONG, -} -pub type BCRYPT_ECCFULLKEY_BLOB = _BCRYPT_ECCFULLKEY_BLOB; -pub type PBCRYPT_ECCFULLKEY_BLOB = *mut _BCRYPT_ECCFULLKEY_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_DH_KEY_BLOB { - pub dwMagic: ULONG, - pub cbKey: ULONG, -} -pub type BCRYPT_DH_KEY_BLOB = _BCRYPT_DH_KEY_BLOB; -pub type PBCRYPT_DH_KEY_BLOB = *mut _BCRYPT_DH_KEY_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_DH_PARAMETER_HEADER { - pub cbLength: ULONG, - pub dwMagic: ULONG, - pub cbKeyLength: ULONG, -} -pub type BCRYPT_DH_PARAMETER_HEADER = _BCRYPT_DH_PARAMETER_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_DSA_KEY_BLOB { - pub dwMagic: ULONG, - pub cbKey: ULONG, - pub Count: [UCHAR; 4usize], - pub Seed: [UCHAR; 20usize], - pub q: [UCHAR; 20usize], -} -pub type BCRYPT_DSA_KEY_BLOB = _BCRYPT_DSA_KEY_BLOB; -pub type PBCRYPT_DSA_KEY_BLOB = *mut _BCRYPT_DSA_KEY_BLOB; -pub const HASHALGORITHM_ENUM_DSA_HASH_ALGORITHM_SHA1: HASHALGORITHM_ENUM = 0; -pub const HASHALGORITHM_ENUM_DSA_HASH_ALGORITHM_SHA256: HASHALGORITHM_ENUM = 1; -pub const HASHALGORITHM_ENUM_DSA_HASH_ALGORITHM_SHA512: HASHALGORITHM_ENUM = 2; -pub type HASHALGORITHM_ENUM = ::std::os::raw::c_int; -pub const DSAFIPSVERSION_ENUM_DSA_FIPS186_2: DSAFIPSVERSION_ENUM = 0; -pub const DSAFIPSVERSION_ENUM_DSA_FIPS186_3: DSAFIPSVERSION_ENUM = 1; -pub type DSAFIPSVERSION_ENUM = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_DSA_KEY_BLOB_V2 { - pub dwMagic: ULONG, - pub cbKey: ULONG, - pub hashAlgorithm: HASHALGORITHM_ENUM, - pub standardVersion: DSAFIPSVERSION_ENUM, - pub cbSeedLength: ULONG, - pub cbGroupSize: ULONG, - pub Count: [UCHAR; 4usize], -} -pub type BCRYPT_DSA_KEY_BLOB_V2 = _BCRYPT_DSA_KEY_BLOB_V2; -pub type PBCRYPT_DSA_KEY_BLOB_V2 = *mut _BCRYPT_DSA_KEY_BLOB_V2; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_KEY_DATA_BLOB_HEADER { - pub dwMagic: ULONG, - pub dwVersion: ULONG, - pub cbKeyData: ULONG, -} -pub type BCRYPT_KEY_DATA_BLOB_HEADER = _BCRYPT_KEY_DATA_BLOB_HEADER; -pub type PBCRYPT_KEY_DATA_BLOB_HEADER = *mut _BCRYPT_KEY_DATA_BLOB_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_DSA_PARAMETER_HEADER { - pub cbLength: ULONG, - pub dwMagic: ULONG, - pub cbKeyLength: ULONG, - pub Count: [UCHAR; 4usize], - pub Seed: [UCHAR; 20usize], - pub q: [UCHAR; 20usize], -} -pub type BCRYPT_DSA_PARAMETER_HEADER = _BCRYPT_DSA_PARAMETER_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_DSA_PARAMETER_HEADER_V2 { - pub cbLength: ULONG, - pub dwMagic: ULONG, - pub cbKeyLength: ULONG, - pub hashAlgorithm: HASHALGORITHM_ENUM, - pub standardVersion: DSAFIPSVERSION_ENUM, - pub cbSeedLength: ULONG, - pub cbGroupSize: ULONG, - pub Count: [UCHAR; 4usize], -} -pub type BCRYPT_DSA_PARAMETER_HEADER_V2 = _BCRYPT_DSA_PARAMETER_HEADER_V2; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_ECC_CURVE_NAMES { - pub dwEccCurveNames: ULONG, - pub pEccCurveNames: *mut LPWSTR, -} -pub type BCRYPT_ECC_CURVE_NAMES = _BCRYPT_ECC_CURVE_NAMES; -pub const BCRYPT_HASH_OPERATION_TYPE_BCRYPT_HASH_OPERATION_HASH_DATA: BCRYPT_HASH_OPERATION_TYPE = - 1; -pub const BCRYPT_HASH_OPERATION_TYPE_BCRYPT_HASH_OPERATION_FINISH_HASH: BCRYPT_HASH_OPERATION_TYPE = - 2; -pub type BCRYPT_HASH_OPERATION_TYPE = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_MULTI_HASH_OPERATION { - pub iHash: ULONG, - pub hashOperation: BCRYPT_HASH_OPERATION_TYPE, - pub pbBuffer: PUCHAR, - pub cbBuffer: ULONG, -} -pub type BCRYPT_MULTI_HASH_OPERATION = _BCRYPT_MULTI_HASH_OPERATION; -pub const BCRYPT_MULTI_OPERATION_TYPE_BCRYPT_OPERATION_TYPE_HASH: BCRYPT_MULTI_OPERATION_TYPE = 1; -pub type BCRYPT_MULTI_OPERATION_TYPE = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_MULTI_OBJECT_LENGTH_STRUCT { - pub cbPerObject: ULONG, - pub cbPerElement: ULONG, -} -pub type BCRYPT_MULTI_OBJECT_LENGTH_STRUCT = _BCRYPT_MULTI_OBJECT_LENGTH_STRUCT; -extern "C" { - pub fn BCryptOpenAlgorithmProvider( - phAlgorithm: *mut BCRYPT_ALG_HANDLE, - pszAlgId: LPCWSTR, - pszImplementation: LPCWSTR, - dwFlags: ULONG, - ) -> NTSTATUS; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_ALGORITHM_IDENTIFIER { - pub pszName: LPWSTR, - pub dwClass: ULONG, - pub dwFlags: ULONG, -} -pub type BCRYPT_ALGORITHM_IDENTIFIER = _BCRYPT_ALGORITHM_IDENTIFIER; -extern "C" { - pub fn BCryptEnumAlgorithms( - dwAlgOperations: ULONG, - pAlgCount: *mut ULONG, - ppAlgList: *mut *mut BCRYPT_ALGORITHM_IDENTIFIER, - dwFlags: ULONG, - ) -> NTSTATUS; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_PROVIDER_NAME { - pub pszProviderName: LPWSTR, -} -pub type BCRYPT_PROVIDER_NAME = _BCRYPT_PROVIDER_NAME; -extern "C" { - pub fn BCryptEnumProviders( - pszAlgId: LPCWSTR, - pImplCount: *mut ULONG, - ppImplList: *mut *mut BCRYPT_PROVIDER_NAME, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptGetProperty( - hObject: BCRYPT_HANDLE, - pszProperty: LPCWSTR, - pbOutput: PUCHAR, - cbOutput: ULONG, - pcbResult: *mut ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptSetProperty( - hObject: BCRYPT_HANDLE, - pszProperty: LPCWSTR, - pbInput: PUCHAR, - cbInput: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptCloseAlgorithmProvider(hAlgorithm: BCRYPT_ALG_HANDLE, dwFlags: ULONG) -> NTSTATUS; -} -extern "C" { - pub fn BCryptFreeBuffer(pvBuffer: PVOID); -} -extern "C" { - pub fn BCryptGenerateSymmetricKey( - hAlgorithm: BCRYPT_ALG_HANDLE, - phKey: *mut BCRYPT_KEY_HANDLE, - pbKeyObject: PUCHAR, - cbKeyObject: ULONG, - pbSecret: PUCHAR, - cbSecret: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptGenerateKeyPair( - hAlgorithm: BCRYPT_ALG_HANDLE, - phKey: *mut BCRYPT_KEY_HANDLE, - dwLength: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptEncrypt( - hKey: BCRYPT_KEY_HANDLE, - pbInput: PUCHAR, - cbInput: ULONG, - pPaddingInfo: *mut ::std::os::raw::c_void, - pbIV: PUCHAR, - cbIV: ULONG, - pbOutput: PUCHAR, - cbOutput: ULONG, - pcbResult: *mut ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptDecrypt( - hKey: BCRYPT_KEY_HANDLE, - pbInput: PUCHAR, - cbInput: ULONG, - pPaddingInfo: *mut ::std::os::raw::c_void, - pbIV: PUCHAR, - cbIV: ULONG, - pbOutput: PUCHAR, - cbOutput: ULONG, - pcbResult: *mut ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptExportKey( - hKey: BCRYPT_KEY_HANDLE, - hExportKey: BCRYPT_KEY_HANDLE, - pszBlobType: LPCWSTR, - pbOutput: PUCHAR, - cbOutput: ULONG, - pcbResult: *mut ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptImportKey( - hAlgorithm: BCRYPT_ALG_HANDLE, - hImportKey: BCRYPT_KEY_HANDLE, - pszBlobType: LPCWSTR, - phKey: *mut BCRYPT_KEY_HANDLE, - pbKeyObject: PUCHAR, - cbKeyObject: ULONG, - pbInput: PUCHAR, - cbInput: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptImportKeyPair( - hAlgorithm: BCRYPT_ALG_HANDLE, - hImportKey: BCRYPT_KEY_HANDLE, - pszBlobType: LPCWSTR, - phKey: *mut BCRYPT_KEY_HANDLE, - pbInput: PUCHAR, - cbInput: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptDuplicateKey( - hKey: BCRYPT_KEY_HANDLE, - phNewKey: *mut BCRYPT_KEY_HANDLE, - pbKeyObject: PUCHAR, - cbKeyObject: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptFinalizeKeyPair(hKey: BCRYPT_KEY_HANDLE, dwFlags: ULONG) -> NTSTATUS; -} -extern "C" { - pub fn BCryptDestroyKey(hKey: BCRYPT_KEY_HANDLE) -> NTSTATUS; -} -extern "C" { - pub fn BCryptDestroySecret(hSecret: BCRYPT_SECRET_HANDLE) -> NTSTATUS; -} -extern "C" { - pub fn BCryptSignHash( - hKey: BCRYPT_KEY_HANDLE, - pPaddingInfo: *mut ::std::os::raw::c_void, - pbInput: PUCHAR, - cbInput: ULONG, - pbOutput: PUCHAR, - cbOutput: ULONG, - pcbResult: *mut ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptVerifySignature( - hKey: BCRYPT_KEY_HANDLE, - pPaddingInfo: *mut ::std::os::raw::c_void, - pbHash: PUCHAR, - cbHash: ULONG, - pbSignature: PUCHAR, - cbSignature: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptSecretAgreement( - hPrivKey: BCRYPT_KEY_HANDLE, - hPubKey: BCRYPT_KEY_HANDLE, - phAgreedSecret: *mut BCRYPT_SECRET_HANDLE, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptDeriveKey( - hSharedSecret: BCRYPT_SECRET_HANDLE, - pwszKDF: LPCWSTR, - pParameterList: *mut BCryptBufferDesc, - pbDerivedKey: PUCHAR, - cbDerivedKey: ULONG, - pcbResult: *mut ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptKeyDerivation( - hKey: BCRYPT_KEY_HANDLE, - pParameterList: *mut BCryptBufferDesc, - pbDerivedKey: PUCHAR, - cbDerivedKey: ULONG, - pcbResult: *mut ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptCreateHash( - hAlgorithm: BCRYPT_ALG_HANDLE, - phHash: *mut BCRYPT_HASH_HANDLE, - pbHashObject: PUCHAR, - cbHashObject: ULONG, - pbSecret: PUCHAR, - cbSecret: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptHashData( - hHash: BCRYPT_HASH_HANDLE, - pbInput: PUCHAR, - cbInput: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptFinishHash( - hHash: BCRYPT_HASH_HANDLE, - pbOutput: PUCHAR, - cbOutput: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptCreateMultiHash( - hAlgorithm: BCRYPT_ALG_HANDLE, - phHash: *mut BCRYPT_HASH_HANDLE, - nHashes: ULONG, - pbHashObject: PUCHAR, - cbHashObject: ULONG, - pbSecret: PUCHAR, - cbSecret: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptProcessMultiOperations( - hObject: BCRYPT_HANDLE, - operationType: BCRYPT_MULTI_OPERATION_TYPE, - pOperations: PVOID, - cbOperations: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptDuplicateHash( - hHash: BCRYPT_HASH_HANDLE, - phNewHash: *mut BCRYPT_HASH_HANDLE, - pbHashObject: PUCHAR, - cbHashObject: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptDestroyHash(hHash: BCRYPT_HASH_HANDLE) -> NTSTATUS; -} -extern "C" { - pub fn BCryptHash( - hAlgorithm: BCRYPT_ALG_HANDLE, - pbSecret: PUCHAR, - cbSecret: ULONG, - pbInput: PUCHAR, - cbInput: ULONG, - pbOutput: PUCHAR, - cbOutput: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptGenRandom( - hAlgorithm: BCRYPT_ALG_HANDLE, - pbBuffer: PUCHAR, - cbBuffer: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptDeriveKeyCapi( - hHash: BCRYPT_HASH_HANDLE, - hTargetAlg: BCRYPT_ALG_HANDLE, - pbDerivedKey: PUCHAR, - cbDerivedKey: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptDeriveKeyPBKDF2( - hPrf: BCRYPT_ALG_HANDLE, - pbPassword: PUCHAR, - cbPassword: ULONG, - pbSalt: PUCHAR, - cbSalt: ULONG, - cIterations: ULONGLONG, - pbDerivedKey: PUCHAR, - cbDerivedKey: ULONG, - dwFlags: ULONG, - ) -> NTSTATUS; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BCRYPT_INTERFACE_VERSION { - pub MajorVersion: USHORT, - pub MinorVersion: USHORT, -} -pub type BCRYPT_INTERFACE_VERSION = _BCRYPT_INTERFACE_VERSION; -pub type PBCRYPT_INTERFACE_VERSION = *mut _BCRYPT_INTERFACE_VERSION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_INTERFACE_REG { - pub dwInterface: ULONG, - pub dwFlags: ULONG, - pub cFunctions: ULONG, - pub rgpszFunctions: *mut PWSTR, -} -pub type CRYPT_INTERFACE_REG = _CRYPT_INTERFACE_REG; -pub type PCRYPT_INTERFACE_REG = *mut _CRYPT_INTERFACE_REG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_IMAGE_REG { - pub pszImage: PWSTR, - pub cInterfaces: ULONG, - pub rgpInterfaces: *mut PCRYPT_INTERFACE_REG, -} -pub type CRYPT_IMAGE_REG = _CRYPT_IMAGE_REG; -pub type PCRYPT_IMAGE_REG = *mut _CRYPT_IMAGE_REG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_PROVIDER_REG { - pub cAliases: ULONG, - pub rgpszAliases: *mut PWSTR, - pub pUM: PCRYPT_IMAGE_REG, - pub pKM: PCRYPT_IMAGE_REG, -} -pub type CRYPT_PROVIDER_REG = _CRYPT_PROVIDER_REG; -pub type PCRYPT_PROVIDER_REG = *mut _CRYPT_PROVIDER_REG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_PROVIDERS { - pub cProviders: ULONG, - pub rgpszProviders: *mut PWSTR, -} -pub type CRYPT_PROVIDERS = _CRYPT_PROVIDERS; -pub type PCRYPT_PROVIDERS = *mut _CRYPT_PROVIDERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_CONTEXT_CONFIG { - pub dwFlags: ULONG, - pub dwReserved: ULONG, -} -pub type CRYPT_CONTEXT_CONFIG = _CRYPT_CONTEXT_CONFIG; -pub type PCRYPT_CONTEXT_CONFIG = *mut _CRYPT_CONTEXT_CONFIG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_CONTEXT_FUNCTION_CONFIG { - pub dwFlags: ULONG, - pub dwReserved: ULONG, -} -pub type CRYPT_CONTEXT_FUNCTION_CONFIG = _CRYPT_CONTEXT_FUNCTION_CONFIG; -pub type PCRYPT_CONTEXT_FUNCTION_CONFIG = *mut _CRYPT_CONTEXT_FUNCTION_CONFIG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_CONTEXTS { - pub cContexts: ULONG, - pub rgpszContexts: *mut PWSTR, -} -pub type CRYPT_CONTEXTS = _CRYPT_CONTEXTS; -pub type PCRYPT_CONTEXTS = *mut _CRYPT_CONTEXTS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_CONTEXT_FUNCTIONS { - pub cFunctions: ULONG, - pub rgpszFunctions: *mut PWSTR, -} -pub type CRYPT_CONTEXT_FUNCTIONS = _CRYPT_CONTEXT_FUNCTIONS; -pub type PCRYPT_CONTEXT_FUNCTIONS = *mut _CRYPT_CONTEXT_FUNCTIONS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_CONTEXT_FUNCTION_PROVIDERS { - pub cProviders: ULONG, - pub rgpszProviders: *mut PWSTR, -} -pub type CRYPT_CONTEXT_FUNCTION_PROVIDERS = _CRYPT_CONTEXT_FUNCTION_PROVIDERS; -pub type PCRYPT_CONTEXT_FUNCTION_PROVIDERS = *mut _CRYPT_CONTEXT_FUNCTION_PROVIDERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_PROPERTY_REF { - pub pszProperty: PWSTR, - pub cbValue: ULONG, - pub pbValue: PUCHAR, -} -pub type CRYPT_PROPERTY_REF = _CRYPT_PROPERTY_REF; -pub type PCRYPT_PROPERTY_REF = *mut _CRYPT_PROPERTY_REF; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_IMAGE_REF { - pub pszImage: PWSTR, - pub dwFlags: ULONG, -} -pub type CRYPT_IMAGE_REF = _CRYPT_IMAGE_REF; -pub type PCRYPT_IMAGE_REF = *mut _CRYPT_IMAGE_REF; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_PROVIDER_REF { - pub dwInterface: ULONG, - pub pszFunction: PWSTR, - pub pszProvider: PWSTR, - pub cProperties: ULONG, - pub rgpProperties: *mut PCRYPT_PROPERTY_REF, - pub pUM: PCRYPT_IMAGE_REF, - pub pKM: PCRYPT_IMAGE_REF, -} -pub type CRYPT_PROVIDER_REF = _CRYPT_PROVIDER_REF; -pub type PCRYPT_PROVIDER_REF = *mut _CRYPT_PROVIDER_REF; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_PROVIDER_REFS { - pub cProviders: ULONG, - pub rgpProviders: *mut PCRYPT_PROVIDER_REF, -} -pub type CRYPT_PROVIDER_REFS = _CRYPT_PROVIDER_REFS; -pub type PCRYPT_PROVIDER_REFS = *mut _CRYPT_PROVIDER_REFS; -extern "C" { - pub fn BCryptQueryProviderRegistration( - pszProvider: LPCWSTR, - dwMode: ULONG, - dwInterface: ULONG, - pcbBuffer: *mut ULONG, - ppBuffer: *mut PCRYPT_PROVIDER_REG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptEnumRegisteredProviders( - pcbBuffer: *mut ULONG, - ppBuffer: *mut PCRYPT_PROVIDERS, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptCreateContext( - dwTable: ULONG, - pszContext: LPCWSTR, - pConfig: PCRYPT_CONTEXT_CONFIG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptDeleteContext(dwTable: ULONG, pszContext: LPCWSTR) -> NTSTATUS; -} -extern "C" { - pub fn BCryptEnumContexts( - dwTable: ULONG, - pcbBuffer: *mut ULONG, - ppBuffer: *mut PCRYPT_CONTEXTS, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptConfigureContext( - dwTable: ULONG, - pszContext: LPCWSTR, - pConfig: PCRYPT_CONTEXT_CONFIG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptQueryContextConfiguration( - dwTable: ULONG, - pszContext: LPCWSTR, - pcbBuffer: *mut ULONG, - ppBuffer: *mut PCRYPT_CONTEXT_CONFIG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptAddContextFunction( - dwTable: ULONG, - pszContext: LPCWSTR, - dwInterface: ULONG, - pszFunction: LPCWSTR, - dwPosition: ULONG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptRemoveContextFunction( - dwTable: ULONG, - pszContext: LPCWSTR, - dwInterface: ULONG, - pszFunction: LPCWSTR, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptEnumContextFunctions( - dwTable: ULONG, - pszContext: LPCWSTR, - dwInterface: ULONG, - pcbBuffer: *mut ULONG, - ppBuffer: *mut PCRYPT_CONTEXT_FUNCTIONS, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptConfigureContextFunction( - dwTable: ULONG, - pszContext: LPCWSTR, - dwInterface: ULONG, - pszFunction: LPCWSTR, - pConfig: PCRYPT_CONTEXT_FUNCTION_CONFIG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptQueryContextFunctionConfiguration( - dwTable: ULONG, - pszContext: LPCWSTR, - dwInterface: ULONG, - pszFunction: LPCWSTR, - pcbBuffer: *mut ULONG, - ppBuffer: *mut PCRYPT_CONTEXT_FUNCTION_CONFIG, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptEnumContextFunctionProviders( - dwTable: ULONG, - pszContext: LPCWSTR, - dwInterface: ULONG, - pszFunction: LPCWSTR, - pcbBuffer: *mut ULONG, - ppBuffer: *mut PCRYPT_CONTEXT_FUNCTION_PROVIDERS, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptSetContextFunctionProperty( - dwTable: ULONG, - pszContext: LPCWSTR, - dwInterface: ULONG, - pszFunction: LPCWSTR, - pszProperty: LPCWSTR, - cbValue: ULONG, - pbValue: PUCHAR, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptQueryContextFunctionProperty( - dwTable: ULONG, - pszContext: LPCWSTR, - dwInterface: ULONG, - pszFunction: LPCWSTR, - pszProperty: LPCWSTR, - pcbValue: *mut ULONG, - ppbValue: *mut PUCHAR, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptRegisterConfigChangeNotify(phEvent: *mut HANDLE) -> NTSTATUS; -} -extern "C" { - pub fn BCryptUnregisterConfigChangeNotify(hEvent: HANDLE) -> NTSTATUS; -} -extern "C" { - pub fn BCryptResolveProviders( - pszContext: LPCWSTR, - dwInterface: ULONG, - pszFunction: LPCWSTR, - pszProvider: LPCWSTR, - dwMode: ULONG, - dwFlags: ULONG, - pcbBuffer: *mut ULONG, - ppBuffer: *mut PCRYPT_PROVIDER_REFS, - ) -> NTSTATUS; -} -extern "C" { - pub fn BCryptGetFipsAlgorithmMode(pfEnabled: *mut BOOLEAN) -> NTSTATUS; -} -extern "C" { - pub fn CngGetFipsAlgorithmMode() -> BOOLEAN; -} -pub type SECURITY_STATUS = LONG; -pub type PFN_NCRYPT_ALLOC = ::std::option::Option LPVOID>; -pub type PFN_NCRYPT_FREE = ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NCRYPT_ALLOC_PARA { - pub cbSize: DWORD, - pub pfnAlloc: PFN_NCRYPT_ALLOC, - pub pfnFree: PFN_NCRYPT_FREE, -} -pub type NCryptBuffer = BCryptBuffer; -pub type PNCryptBuffer = *mut BCryptBuffer; -pub type NCryptBufferDesc = BCryptBufferDesc; -pub type PNCryptBufferDesc = *mut BCryptBufferDesc; -pub type NCRYPT_HANDLE = ULONG_PTR; -pub type NCRYPT_PROV_HANDLE = ULONG_PTR; -pub type NCRYPT_KEY_HANDLE = ULONG_PTR; -pub type NCRYPT_HASH_HANDLE = ULONG_PTR; -pub type NCRYPT_SECRET_HANDLE = ULONG_PTR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NCRYPT_CIPHER_PADDING_INFO { - pub cbSize: ULONG, - pub dwFlags: DWORD, - pub pbIV: PUCHAR, - pub cbIV: ULONG, - pub pbOtherInfo: PUCHAR, - pub cbOtherInfo: ULONG, -} -pub type NCRYPT_CIPHER_PADDING_INFO = _NCRYPT_CIPHER_PADDING_INFO; -pub type PNCRYPT_CIPHER_PADDING_INFO = *mut _NCRYPT_CIPHER_PADDING_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NCRYPT_PLATFORM_ATTEST_PADDING_INFO { - pub magic: ULONG, - pub pcrMask: ULONG, -} -pub type NCRYPT_PLATFORM_ATTEST_PADDING_INFO = _NCRYPT_PLATFORM_ATTEST_PADDING_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NCRYPT_KEY_ATTEST_PADDING_INFO { - pub magic: ULONG, - pub pbKeyBlob: PUCHAR, - pub cbKeyBlob: ULONG, - pub pbKeyAuth: PUCHAR, - pub cbKeyAuth: ULONG, -} -pub type NCRYPT_KEY_ATTEST_PADDING_INFO = _NCRYPT_KEY_ATTEST_PADDING_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES { - pub Version: ULONG, - pub Flags: ULONG, - pub cbPublicKeyBlob: ULONG, -} -pub type NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES = _NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES; -pub type PNCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES = *mut _NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NCRYPT_VSM_KEY_ATTESTATION_STATEMENT { - pub Magic: ULONG, - pub Version: ULONG, - pub cbSignature: ULONG, - pub cbReport: ULONG, - pub cbAttributes: ULONG, -} -pub type NCRYPT_VSM_KEY_ATTESTATION_STATEMENT = _NCRYPT_VSM_KEY_ATTESTATION_STATEMENT; -pub type PNCRYPT_VSM_KEY_ATTESTATION_STATEMENT = *mut _NCRYPT_VSM_KEY_ATTESTATION_STATEMENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS { - pub Version: ULONG, - pub TrustletId: ULONGLONG, - pub MinSvn: ULONG, - pub FlagsMask: ULONG, - pub FlagsExpected: ULONG, - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS { - #[inline] - pub fn AllowDebugging(&self) -> ULONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_AllowDebugging(&mut self, val: ULONG) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> ULONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } - } - #[inline] - pub fn set_Reserved(&mut self, val: ULONG) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 31u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - AllowDebugging: ULONG, - Reserved: ULONG, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let AllowDebugging: u32 = unsafe { ::std::mem::transmute(AllowDebugging) }; - AllowDebugging as u64 - }); - __bindgen_bitfield_unit.set(1usize, 31u8, { - let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS = - _NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS; -pub type PNCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS = - *mut _NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NCRYPT_EXPORTED_ISOLATED_KEY_HEADER { - pub Version: ULONG, - pub KeyUsage: ULONG, - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, - pub cbAlgName: ULONG, - pub cbNonce: ULONG, - pub cbAuthTag: ULONG, - pub cbWrappingKey: ULONG, - pub cbIsolatedKey: ULONG, -} -impl _NCRYPT_EXPORTED_ISOLATED_KEY_HEADER { - #[inline] - pub fn PerBootKey(&self) -> ULONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_PerBootKey(&mut self, val: ULONG) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> ULONG { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } - } - #[inline] - pub fn set_Reserved(&mut self, val: ULONG) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 31u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - PerBootKey: ULONG, - Reserved: ULONG, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let PerBootKey: u32 = unsafe { ::std::mem::transmute(PerBootKey) }; - PerBootKey as u64 - }); - __bindgen_bitfield_unit.set(1usize, 31u8, { - let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type NCRYPT_EXPORTED_ISOLATED_KEY_HEADER = _NCRYPT_EXPORTED_ISOLATED_KEY_HEADER; -pub type PNCRYPT_EXPORTED_ISOLATED_KEY_HEADER = *mut _NCRYPT_EXPORTED_ISOLATED_KEY_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE { - pub Header: NCRYPT_EXPORTED_ISOLATED_KEY_HEADER, -} -pub type NCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE = _NCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE; -pub type PNCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE = *mut _NCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __NCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT { - pub Magic: UINT32, - pub Version: UINT32, - pub HeaderSize: UINT32, - pub cbCertifyInfo: UINT32, - pub cbSignature: UINT32, - pub cbTpmPublic: UINT32, -} -pub type NCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT = - __NCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT; -pub type PNCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT = - *mut __NCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT { - pub Magic: ULONG, - pub Version: ULONG, - pub pcrAlg: ULONG, - pub cbSignature: ULONG, - pub cbQuote: ULONG, - pub cbPcrs: ULONG, -} -pub type NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT = _NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT; -pub type PNCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT = - *mut _NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT; -extern "C" { - pub fn NCryptOpenStorageProvider( - phProvider: *mut NCRYPT_PROV_HANDLE, - pszProviderName: LPCWSTR, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NCryptAlgorithmName { - pub pszName: LPWSTR, - pub dwClass: DWORD, - pub dwAlgOperations: DWORD, - pub dwFlags: DWORD, -} -pub type NCryptAlgorithmName = _NCryptAlgorithmName; -extern "C" { - pub fn NCryptEnumAlgorithms( - hProvider: NCRYPT_PROV_HANDLE, - dwAlgOperations: DWORD, - pdwAlgCount: *mut DWORD, - ppAlgList: *mut *mut NCryptAlgorithmName, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptIsAlgSupported( - hProvider: NCRYPT_PROV_HANDLE, - pszAlgId: LPCWSTR, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NCryptKeyName { - pub pszName: LPWSTR, - pub pszAlgid: LPWSTR, - pub dwLegacyKeySpec: DWORD, - pub dwFlags: DWORD, -} -extern "C" { - pub fn NCryptEnumKeys( - hProvider: NCRYPT_PROV_HANDLE, - pszScope: LPCWSTR, - ppKeyName: *mut *mut NCryptKeyName, - ppEnumState: *mut PVOID, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NCryptProviderName { - pub pszName: LPWSTR, - pub pszComment: LPWSTR, -} -extern "C" { - pub fn NCryptEnumStorageProviders( - pdwProviderCount: *mut DWORD, - ppProviderList: *mut *mut NCryptProviderName, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptFreeBuffer(pvInput: PVOID) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptOpenKey( - hProvider: NCRYPT_PROV_HANDLE, - phKey: *mut NCRYPT_KEY_HANDLE, - pszKeyName: LPCWSTR, - dwLegacyKeySpec: DWORD, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptCreatePersistedKey( - hProvider: NCRYPT_PROV_HANDLE, - phKey: *mut NCRYPT_KEY_HANDLE, - pszAlgId: LPCWSTR, - pszKeyName: LPCWSTR, - dwLegacyKeySpec: DWORD, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __NCRYPT_UI_POLICY { - pub dwVersion: DWORD, - pub dwFlags: DWORD, - pub pszCreationTitle: LPCWSTR, - pub pszFriendlyName: LPCWSTR, - pub pszDescription: LPCWSTR, -} -pub type NCRYPT_UI_POLICY = __NCRYPT_UI_POLICY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __NCRYPT_KEY_ACCESS_POLICY_BLOB { - pub dwVersion: DWORD, - pub dwPolicyFlags: DWORD, - pub cbUserSid: DWORD, - pub cbApplicationSid: DWORD, -} -pub type NCRYPT_KEY_ACCESS_POLICY_BLOB = __NCRYPT_KEY_ACCESS_POLICY_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __NCRYPT_SUPPORTED_LENGTHS { - pub dwMinLength: DWORD, - pub dwMaxLength: DWORD, - pub dwIncrement: DWORD, - pub dwDefaultLength: DWORD, -} -pub type NCRYPT_SUPPORTED_LENGTHS = __NCRYPT_SUPPORTED_LENGTHS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __NCRYPT_PCP_HMAC_AUTH_SIGNATURE_INFO { - pub dwVersion: DWORD, - pub iExpiration: INT32, - pub pabNonce: [BYTE; 32usize], - pub pabPolicyRef: [BYTE; 32usize], - pub pabHMAC: [BYTE; 32usize], -} -pub type NCRYPT_PCP_HMAC_AUTH_SIGNATURE_INFO = __NCRYPT_PCP_HMAC_AUTH_SIGNATURE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __NCRYPT_PCP_TPM_FW_VERSION_INFO { - pub major1: UINT16, - pub major2: UINT16, - pub minor1: UINT16, - pub minor2: UINT16, -} -pub type NCRYPT_PCP_TPM_FW_VERSION_INFO = __NCRYPT_PCP_TPM_FW_VERSION_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __NCRYPT_PCP_RAW_POLICYDIGEST { - pub dwVersion: DWORD, - pub cbDigest: DWORD, -} -pub type NCRYPT_PCP_RAW_POLICYDIGEST_INFO = __NCRYPT_PCP_RAW_POLICYDIGEST; -extern "C" { - pub fn NCryptGetProperty( - hObject: NCRYPT_HANDLE, - pszProperty: LPCWSTR, - pbOutput: PBYTE, - cbOutput: DWORD, - pcbResult: *mut DWORD, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptSetProperty( - hObject: NCRYPT_HANDLE, - pszProperty: LPCWSTR, - pbInput: PBYTE, - cbInput: DWORD, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptFinalizeKey(hKey: NCRYPT_KEY_HANDLE, dwFlags: DWORD) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptEncrypt( - hKey: NCRYPT_KEY_HANDLE, - pbInput: PBYTE, - cbInput: DWORD, - pPaddingInfo: *mut ::std::os::raw::c_void, - pbOutput: PBYTE, - cbOutput: DWORD, - pcbResult: *mut DWORD, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptDecrypt( - hKey: NCRYPT_KEY_HANDLE, - pbInput: PBYTE, - cbInput: DWORD, - pPaddingInfo: *mut ::std::os::raw::c_void, - pbOutput: PBYTE, - cbOutput: DWORD, - pcbResult: *mut DWORD, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NCRYPT_KEY_BLOB_HEADER { - pub cbSize: ULONG, - pub dwMagic: ULONG, - pub cbAlgName: ULONG, - pub cbKeyData: ULONG, -} -pub type NCRYPT_KEY_BLOB_HEADER = _NCRYPT_KEY_BLOB_HEADER; -pub type PNCRYPT_KEY_BLOB_HEADER = *mut _NCRYPT_KEY_BLOB_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NCRYPT_TPM_LOADABLE_KEY_BLOB_HEADER { - pub magic: DWORD, - pub cbHeader: DWORD, - pub cbPublic: DWORD, - pub cbPrivate: DWORD, - pub cbName: DWORD, -} -pub type PNCRYPT_TPM_LOADABLE_KEY_BLOB_HEADER = *mut NCRYPT_TPM_LOADABLE_KEY_BLOB_HEADER; -extern "C" { - pub fn NCryptImportKey( - hProvider: NCRYPT_PROV_HANDLE, - hImportKey: NCRYPT_KEY_HANDLE, - pszBlobType: LPCWSTR, - pParameterList: *mut NCryptBufferDesc, - phKey: *mut NCRYPT_KEY_HANDLE, - pbData: PBYTE, - cbData: DWORD, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptExportKey( - hKey: NCRYPT_KEY_HANDLE, - hExportKey: NCRYPT_KEY_HANDLE, - pszBlobType: LPCWSTR, - pParameterList: *mut NCryptBufferDesc, - pbOutput: PBYTE, - cbOutput: DWORD, - pcbResult: *mut DWORD, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptSignHash( - hKey: NCRYPT_KEY_HANDLE, - pPaddingInfo: *mut ::std::os::raw::c_void, - pbHashValue: PBYTE, - cbHashValue: DWORD, - pbSignature: PBYTE, - cbSignature: DWORD, - pcbResult: *mut DWORD, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptVerifySignature( - hKey: NCRYPT_KEY_HANDLE, - pPaddingInfo: *mut ::std::os::raw::c_void, - pbHashValue: PBYTE, - cbHashValue: DWORD, - pbSignature: PBYTE, - cbSignature: DWORD, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptDeleteKey(hKey: NCRYPT_KEY_HANDLE, dwFlags: DWORD) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptFreeObject(hObject: NCRYPT_HANDLE) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptIsKeyHandle(hKey: NCRYPT_KEY_HANDLE) -> BOOL; -} -extern "C" { - pub fn NCryptTranslateHandle( - phProvider: *mut NCRYPT_PROV_HANDLE, - phKey: *mut NCRYPT_KEY_HANDLE, - hLegacyProv: HCRYPTPROV, - hLegacyKey: HCRYPTKEY, - dwLegacyKeySpec: DWORD, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptNotifyChangeKey( - hProvider: NCRYPT_PROV_HANDLE, - phEvent: *mut HANDLE, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptSecretAgreement( - hPrivKey: NCRYPT_KEY_HANDLE, - hPubKey: NCRYPT_KEY_HANDLE, - phAgreedSecret: *mut NCRYPT_SECRET_HANDLE, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptDeriveKey( - hSharedSecret: NCRYPT_SECRET_HANDLE, - pwszKDF: LPCWSTR, - pParameterList: *mut NCryptBufferDesc, - pbDerivedKey: PBYTE, - cbDerivedKey: DWORD, - pcbResult: *mut DWORD, - dwFlags: ULONG, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptKeyDerivation( - hKey: NCRYPT_KEY_HANDLE, - pParameterList: *mut NCryptBufferDesc, - pbDerivedKey: PUCHAR, - cbDerivedKey: DWORD, - pcbResult: *mut DWORD, - dwFlags: ULONG, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptCreateClaim( - hSubjectKey: NCRYPT_KEY_HANDLE, - hAuthorityKey: NCRYPT_KEY_HANDLE, - dwClaimType: DWORD, - pParameterList: *mut NCryptBufferDesc, - pbClaimBlob: PBYTE, - cbClaimBlob: DWORD, - pcbResult: *mut DWORD, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -extern "C" { - pub fn NCryptVerifyClaim( - hSubjectKey: NCRYPT_KEY_HANDLE, - hAuthorityKey: NCRYPT_KEY_HANDLE, - dwClaimType: DWORD, - pParameterList: *mut NCryptBufferDesc, - pbClaimBlob: PBYTE, - cbClaimBlob: DWORD, - pOutput: *mut NCryptBufferDesc, - dwFlags: DWORD, - ) -> SECURITY_STATUS; -} -pub type HCRYPTPROV_OR_NCRYPT_KEY_HANDLE = ULONG_PTR; -pub type HCRYPTPROV_LEGACY = ULONG_PTR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_BIT_BLOB { - pub cbData: DWORD, - pub pbData: *mut BYTE, - pub cUnusedBits: DWORD, -} -pub type CRYPT_BIT_BLOB = _CRYPT_BIT_BLOB; -pub type PCRYPT_BIT_BLOB = *mut _CRYPT_BIT_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_ALGORITHM_IDENTIFIER { - pub pszObjId: LPSTR, - pub Parameters: CRYPT_OBJID_BLOB, -} -pub type CRYPT_ALGORITHM_IDENTIFIER = _CRYPT_ALGORITHM_IDENTIFIER; -pub type PCRYPT_ALGORITHM_IDENTIFIER = *mut _CRYPT_ALGORITHM_IDENTIFIER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_OBJID_TABLE { - pub dwAlgId: DWORD, - pub pszObjId: LPCSTR, -} -pub type CRYPT_OBJID_TABLE = _CRYPT_OBJID_TABLE; -pub type PCRYPT_OBJID_TABLE = *mut _CRYPT_OBJID_TABLE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_HASH_INFO { - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub Hash: CRYPT_HASH_BLOB, -} -pub type CRYPT_HASH_INFO = _CRYPT_HASH_INFO; -pub type PCRYPT_HASH_INFO = *mut _CRYPT_HASH_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_EXTENSION { - pub pszObjId: LPSTR, - pub fCritical: BOOL, - pub Value: CRYPT_OBJID_BLOB, -} -pub type CERT_EXTENSION = _CERT_EXTENSION; -pub type PCERT_EXTENSION = *mut _CERT_EXTENSION; -pub type PCCERT_EXTENSION = *const CERT_EXTENSION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_ATTRIBUTE_TYPE_VALUE { - pub pszObjId: LPSTR, - pub Value: CRYPT_OBJID_BLOB, -} -pub type CRYPT_ATTRIBUTE_TYPE_VALUE = _CRYPT_ATTRIBUTE_TYPE_VALUE; -pub type PCRYPT_ATTRIBUTE_TYPE_VALUE = *mut _CRYPT_ATTRIBUTE_TYPE_VALUE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_ATTRIBUTE { - pub pszObjId: LPSTR, - pub cValue: DWORD, - pub rgValue: PCRYPT_ATTR_BLOB, -} -pub type CRYPT_ATTRIBUTE = _CRYPT_ATTRIBUTE; -pub type PCRYPT_ATTRIBUTE = *mut _CRYPT_ATTRIBUTE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_ATTRIBUTES { - pub cAttr: DWORD, - pub rgAttr: PCRYPT_ATTRIBUTE, -} -pub type CRYPT_ATTRIBUTES = _CRYPT_ATTRIBUTES; -pub type PCRYPT_ATTRIBUTES = *mut _CRYPT_ATTRIBUTES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_RDN_ATTR { - pub pszObjId: LPSTR, - pub dwValueType: DWORD, - pub Value: CERT_RDN_VALUE_BLOB, -} -pub type CERT_RDN_ATTR = _CERT_RDN_ATTR; -pub type PCERT_RDN_ATTR = *mut _CERT_RDN_ATTR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_RDN { - pub cRDNAttr: DWORD, - pub rgRDNAttr: PCERT_RDN_ATTR, -} -pub type CERT_RDN = _CERT_RDN; -pub type PCERT_RDN = *mut _CERT_RDN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_NAME_INFO { - pub cRDN: DWORD, - pub rgRDN: PCERT_RDN, -} -pub type CERT_NAME_INFO = _CERT_NAME_INFO; -pub type PCERT_NAME_INFO = *mut _CERT_NAME_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_NAME_VALUE { - pub dwValueType: DWORD, - pub Value: CERT_RDN_VALUE_BLOB, -} -pub type CERT_NAME_VALUE = _CERT_NAME_VALUE; -pub type PCERT_NAME_VALUE = *mut _CERT_NAME_VALUE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_PUBLIC_KEY_INFO { - pub Algorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub PublicKey: CRYPT_BIT_BLOB, -} -pub type CERT_PUBLIC_KEY_INFO = _CERT_PUBLIC_KEY_INFO; -pub type PCERT_PUBLIC_KEY_INFO = *mut _CERT_PUBLIC_KEY_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_ECC_PRIVATE_KEY_INFO { - pub dwVersion: DWORD, - pub PrivateKey: CRYPT_DER_BLOB, - pub szCurveOid: LPSTR, - pub PublicKey: CRYPT_BIT_BLOB, -} -pub type CRYPT_ECC_PRIVATE_KEY_INFO = _CRYPT_ECC_PRIVATE_KEY_INFO; -pub type PCRYPT_ECC_PRIVATE_KEY_INFO = *mut _CRYPT_ECC_PRIVATE_KEY_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_PRIVATE_KEY_INFO { - pub Version: DWORD, - pub Algorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub PrivateKey: CRYPT_DER_BLOB, - pub pAttributes: PCRYPT_ATTRIBUTES, -} -pub type CRYPT_PRIVATE_KEY_INFO = _CRYPT_PRIVATE_KEY_INFO; -pub type PCRYPT_PRIVATE_KEY_INFO = *mut _CRYPT_PRIVATE_KEY_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_ENCRYPTED_PRIVATE_KEY_INFO { - pub EncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub EncryptedPrivateKey: CRYPT_DATA_BLOB, -} -pub type CRYPT_ENCRYPTED_PRIVATE_KEY_INFO = _CRYPT_ENCRYPTED_PRIVATE_KEY_INFO; -pub type PCRYPT_ENCRYPTED_PRIVATE_KEY_INFO = *mut _CRYPT_ENCRYPTED_PRIVATE_KEY_INFO; -pub type PCRYPT_DECRYPT_PRIVATE_KEY_FUNC = ::std::option::Option< - unsafe extern "C" fn( - Algorithm: CRYPT_ALGORITHM_IDENTIFIER, - EncryptedPrivateKey: CRYPT_DATA_BLOB, - pbClearTextKey: *mut BYTE, - pcbClearTextKey: *mut DWORD, - pVoidDecryptFunc: LPVOID, - ) -> BOOL, ->; -pub type PCRYPT_ENCRYPT_PRIVATE_KEY_FUNC = ::std::option::Option< - unsafe extern "C" fn( - pAlgorithm: *mut CRYPT_ALGORITHM_IDENTIFIER, - pClearTextPrivateKey: *mut CRYPT_DATA_BLOB, - pbEncryptedKey: *mut BYTE, - pcbEncryptedKey: *mut DWORD, - pVoidEncryptFunc: LPVOID, - ) -> BOOL, ->; -pub type PCRYPT_RESOLVE_HCRYPTPROV_FUNC = ::std::option::Option< - unsafe extern "C" fn( - pPrivateKeyInfo: *mut CRYPT_PRIVATE_KEY_INFO, - phCryptProv: *mut HCRYPTPROV, - pVoidResolveFunc: LPVOID, - ) -> BOOL, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_PKCS8_IMPORT_PARAMS { - pub PrivateKey: CRYPT_DIGEST_BLOB, - pub pResolvehCryptProvFunc: PCRYPT_RESOLVE_HCRYPTPROV_FUNC, - pub pVoidResolveFunc: LPVOID, - pub pDecryptPrivateKeyFunc: PCRYPT_DECRYPT_PRIVATE_KEY_FUNC, - pub pVoidDecryptFunc: LPVOID, -} -pub type CRYPT_PKCS8_IMPORT_PARAMS = _CRYPT_PKCS8_IMPORT_PARAMS; -pub type PCRYPT_PKCS8_IMPORT_PARAMS = *mut _CRYPT_PKCS8_IMPORT_PARAMS; -pub type CRYPT_PRIVATE_KEY_BLOB_AND_PARAMS = _CRYPT_PKCS8_IMPORT_PARAMS; -pub type PCRYPT_PRIVATE_KEY_BLOB_AND_PARAMS = *mut _CRYPT_PKCS8_IMPORT_PARAMS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_PKCS8_EXPORT_PARAMS { - pub hCryptProv: HCRYPTPROV, - pub dwKeySpec: DWORD, - pub pszPrivateKeyObjId: LPSTR, - pub pEncryptPrivateKeyFunc: PCRYPT_ENCRYPT_PRIVATE_KEY_FUNC, - pub pVoidEncryptFunc: LPVOID, -} -pub type CRYPT_PKCS8_EXPORT_PARAMS = _CRYPT_PKCS8_EXPORT_PARAMS; -pub type PCRYPT_PKCS8_EXPORT_PARAMS = *mut _CRYPT_PKCS8_EXPORT_PARAMS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_INFO { - pub dwVersion: DWORD, - pub SerialNumber: CRYPT_INTEGER_BLOB, - pub SignatureAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub Issuer: CERT_NAME_BLOB, - pub NotBefore: FILETIME, - pub NotAfter: FILETIME, - pub Subject: CERT_NAME_BLOB, - pub SubjectPublicKeyInfo: CERT_PUBLIC_KEY_INFO, - pub IssuerUniqueId: CRYPT_BIT_BLOB, - pub SubjectUniqueId: CRYPT_BIT_BLOB, - pub cExtension: DWORD, - pub rgExtension: PCERT_EXTENSION, -} -pub type CERT_INFO = _CERT_INFO; -pub type PCERT_INFO = *mut _CERT_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRL_ENTRY { - pub SerialNumber: CRYPT_INTEGER_BLOB, - pub RevocationDate: FILETIME, - pub cExtension: DWORD, - pub rgExtension: PCERT_EXTENSION, -} -pub type CRL_ENTRY = _CRL_ENTRY; -pub type PCRL_ENTRY = *mut _CRL_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRL_INFO { - pub dwVersion: DWORD, - pub SignatureAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub Issuer: CERT_NAME_BLOB, - pub ThisUpdate: FILETIME, - pub NextUpdate: FILETIME, - pub cCRLEntry: DWORD, - pub rgCRLEntry: PCRL_ENTRY, - pub cExtension: DWORD, - pub rgExtension: PCERT_EXTENSION, -} -pub type CRL_INFO = _CRL_INFO; -pub type PCRL_INFO = *mut _CRL_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_OR_CRL_BLOB { - pub dwChoice: DWORD, - pub cbEncoded: DWORD, - pub pbEncoded: *mut BYTE, -} -pub type CERT_OR_CRL_BLOB = _CERT_OR_CRL_BLOB; -pub type PCERT_OR_CRL_BLOB = *mut _CERT_OR_CRL_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_OR_CRL_BUNDLE { - pub cItem: DWORD, - pub rgItem: PCERT_OR_CRL_BLOB, -} -pub type CERT_OR_CRL_BUNDLE = _CERT_OR_CRL_BUNDLE; -pub type PCERT_OR_CRL_BUNDLE = *mut _CERT_OR_CRL_BUNDLE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_REQUEST_INFO { - pub dwVersion: DWORD, - pub Subject: CERT_NAME_BLOB, - pub SubjectPublicKeyInfo: CERT_PUBLIC_KEY_INFO, - pub cAttribute: DWORD, - pub rgAttribute: PCRYPT_ATTRIBUTE, -} -pub type CERT_REQUEST_INFO = _CERT_REQUEST_INFO; -pub type PCERT_REQUEST_INFO = *mut _CERT_REQUEST_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_KEYGEN_REQUEST_INFO { - pub dwVersion: DWORD, - pub SubjectPublicKeyInfo: CERT_PUBLIC_KEY_INFO, - pub pwszChallengeString: LPWSTR, -} -pub type CERT_KEYGEN_REQUEST_INFO = _CERT_KEYGEN_REQUEST_INFO; -pub type PCERT_KEYGEN_REQUEST_INFO = *mut _CERT_KEYGEN_REQUEST_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_SIGNED_CONTENT_INFO { - pub ToBeSigned: CRYPT_DER_BLOB, - pub SignatureAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub Signature: CRYPT_BIT_BLOB, -} -pub type CERT_SIGNED_CONTENT_INFO = _CERT_SIGNED_CONTENT_INFO; -pub type PCERT_SIGNED_CONTENT_INFO = *mut _CERT_SIGNED_CONTENT_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CTL_USAGE { - pub cUsageIdentifier: DWORD, - pub rgpszUsageIdentifier: *mut LPSTR, -} -pub type CTL_USAGE = _CTL_USAGE; -pub type PCTL_USAGE = *mut _CTL_USAGE; -pub type CERT_ENHKEY_USAGE = _CTL_USAGE; -pub type PCERT_ENHKEY_USAGE = *mut _CTL_USAGE; -pub type PCCTL_USAGE = *const CTL_USAGE; -pub type PCCERT_ENHKEY_USAGE = *const CERT_ENHKEY_USAGE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CTL_ENTRY { - pub SubjectIdentifier: CRYPT_DATA_BLOB, - pub cAttribute: DWORD, - pub rgAttribute: PCRYPT_ATTRIBUTE, -} -pub type CTL_ENTRY = _CTL_ENTRY; -pub type PCTL_ENTRY = *mut _CTL_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CTL_INFO { - pub dwVersion: DWORD, - pub SubjectUsage: CTL_USAGE, - pub ListIdentifier: CRYPT_DATA_BLOB, - pub SequenceNumber: CRYPT_INTEGER_BLOB, - pub ThisUpdate: FILETIME, - pub NextUpdate: FILETIME, - pub SubjectAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub cCTLEntry: DWORD, - pub rgCTLEntry: PCTL_ENTRY, - pub cExtension: DWORD, - pub rgExtension: PCERT_EXTENSION, -} -pub type CTL_INFO = _CTL_INFO; -pub type PCTL_INFO = *mut _CTL_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_TIME_STAMP_REQUEST_INFO { - pub pszTimeStampAlgorithm: LPSTR, - pub pszContentType: LPSTR, - pub Content: CRYPT_OBJID_BLOB, - pub cAttribute: DWORD, - pub rgAttribute: PCRYPT_ATTRIBUTE, -} -pub type CRYPT_TIME_STAMP_REQUEST_INFO = _CRYPT_TIME_STAMP_REQUEST_INFO; -pub type PCRYPT_TIME_STAMP_REQUEST_INFO = *mut _CRYPT_TIME_STAMP_REQUEST_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_ENROLLMENT_NAME_VALUE_PAIR { - pub pwszName: LPWSTR, - pub pwszValue: LPWSTR, -} -pub type CRYPT_ENROLLMENT_NAME_VALUE_PAIR = _CRYPT_ENROLLMENT_NAME_VALUE_PAIR; -pub type PCRYPT_ENROLLMENT_NAME_VALUE_PAIR = *mut _CRYPT_ENROLLMENT_NAME_VALUE_PAIR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_CSP_PROVIDER { - pub dwKeySpec: DWORD, - pub pwszProviderName: LPWSTR, - pub Signature: CRYPT_BIT_BLOB, -} -pub type CRYPT_CSP_PROVIDER = _CRYPT_CSP_PROVIDER; -pub type PCRYPT_CSP_PROVIDER = *mut _CRYPT_CSP_PROVIDER; -extern "C" { - pub fn CryptFormatObject( - dwCertEncodingType: DWORD, - dwFormatType: DWORD, - dwFormatStrType: DWORD, - pFormatStruct: *mut ::std::os::raw::c_void, - lpszStructType: LPCSTR, - pbEncoded: *const BYTE, - cbEncoded: DWORD, - pbFormat: *mut ::std::os::raw::c_void, - pcbFormat: *mut DWORD, - ) -> BOOL; -} -pub type PFN_CRYPT_ALLOC = ::std::option::Option LPVOID>; -pub type PFN_CRYPT_FREE = ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_ENCODE_PARA { - pub cbSize: DWORD, - pub pfnAlloc: PFN_CRYPT_ALLOC, - pub pfnFree: PFN_CRYPT_FREE, -} -pub type CRYPT_ENCODE_PARA = _CRYPT_ENCODE_PARA; -pub type PCRYPT_ENCODE_PARA = *mut _CRYPT_ENCODE_PARA; -extern "C" { - pub fn CryptEncodeObjectEx( - dwCertEncodingType: DWORD, - lpszStructType: LPCSTR, - pvStructInfo: *const ::std::os::raw::c_void, - dwFlags: DWORD, - pEncodePara: PCRYPT_ENCODE_PARA, - pvEncoded: *mut ::std::os::raw::c_void, - pcbEncoded: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptEncodeObject( - dwCertEncodingType: DWORD, - lpszStructType: LPCSTR, - pvStructInfo: *const ::std::os::raw::c_void, - pbEncoded: *mut BYTE, - pcbEncoded: *mut DWORD, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_DECODE_PARA { - pub cbSize: DWORD, - pub pfnAlloc: PFN_CRYPT_ALLOC, - pub pfnFree: PFN_CRYPT_FREE, -} -pub type CRYPT_DECODE_PARA = _CRYPT_DECODE_PARA; -pub type PCRYPT_DECODE_PARA = *mut _CRYPT_DECODE_PARA; -extern "C" { - pub fn CryptDecodeObjectEx( - dwCertEncodingType: DWORD, - lpszStructType: LPCSTR, - pbEncoded: *const BYTE, - cbEncoded: DWORD, - dwFlags: DWORD, - pDecodePara: PCRYPT_DECODE_PARA, - pvStructInfo: *mut ::std::os::raw::c_void, - pcbStructInfo: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptDecodeObject( - dwCertEncodingType: DWORD, - lpszStructType: LPCSTR, - pbEncoded: *const BYTE, - cbEncoded: DWORD, - dwFlags: DWORD, - pvStructInfo: *mut ::std::os::raw::c_void, - pcbStructInfo: *mut DWORD, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_EXTENSIONS { - pub cExtension: DWORD, - pub rgExtension: PCERT_EXTENSION, -} -pub type CERT_EXTENSIONS = _CERT_EXTENSIONS; -pub type PCERT_EXTENSIONS = *mut _CERT_EXTENSIONS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_AUTHORITY_KEY_ID_INFO { - pub KeyId: CRYPT_DATA_BLOB, - pub CertIssuer: CERT_NAME_BLOB, - pub CertSerialNumber: CRYPT_INTEGER_BLOB, -} -pub type CERT_AUTHORITY_KEY_ID_INFO = _CERT_AUTHORITY_KEY_ID_INFO; -pub type PCERT_AUTHORITY_KEY_ID_INFO = *mut _CERT_AUTHORITY_KEY_ID_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_PRIVATE_KEY_VALIDITY { - pub NotBefore: FILETIME, - pub NotAfter: FILETIME, -} -pub type CERT_PRIVATE_KEY_VALIDITY = _CERT_PRIVATE_KEY_VALIDITY; -pub type PCERT_PRIVATE_KEY_VALIDITY = *mut _CERT_PRIVATE_KEY_VALIDITY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_KEY_ATTRIBUTES_INFO { - pub KeyId: CRYPT_DATA_BLOB, - pub IntendedKeyUsage: CRYPT_BIT_BLOB, - pub pPrivateKeyUsagePeriod: PCERT_PRIVATE_KEY_VALIDITY, -} -pub type CERT_KEY_ATTRIBUTES_INFO = _CERT_KEY_ATTRIBUTES_INFO; -pub type PCERT_KEY_ATTRIBUTES_INFO = *mut _CERT_KEY_ATTRIBUTES_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_POLICY_ID { - pub cCertPolicyElementId: DWORD, - pub rgpszCertPolicyElementId: *mut LPSTR, -} -pub type CERT_POLICY_ID = _CERT_POLICY_ID; -pub type PCERT_POLICY_ID = *mut _CERT_POLICY_ID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_KEY_USAGE_RESTRICTION_INFO { - pub cCertPolicyId: DWORD, - pub rgCertPolicyId: PCERT_POLICY_ID, - pub RestrictedKeyUsage: CRYPT_BIT_BLOB, -} -pub type CERT_KEY_USAGE_RESTRICTION_INFO = _CERT_KEY_USAGE_RESTRICTION_INFO; -pub type PCERT_KEY_USAGE_RESTRICTION_INFO = *mut _CERT_KEY_USAGE_RESTRICTION_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_OTHER_NAME { - pub pszObjId: LPSTR, - pub Value: CRYPT_OBJID_BLOB, -} -pub type CERT_OTHER_NAME = _CERT_OTHER_NAME; -pub type PCERT_OTHER_NAME = *mut _CERT_OTHER_NAME; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CERT_ALT_NAME_ENTRY { - pub dwAltNameChoice: DWORD, - pub __bindgen_anon_1: _CERT_ALT_NAME_ENTRY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CERT_ALT_NAME_ENTRY__bindgen_ty_1 { - pub pOtherName: PCERT_OTHER_NAME, - pub pwszRfc822Name: LPWSTR, - pub pwszDNSName: LPWSTR, - pub DirectoryName: CERT_NAME_BLOB, - pub pwszURL: LPWSTR, - pub IPAddress: CRYPT_DATA_BLOB, - pub pszRegisteredID: LPSTR, -} -pub type CERT_ALT_NAME_ENTRY = _CERT_ALT_NAME_ENTRY; -pub type PCERT_ALT_NAME_ENTRY = *mut _CERT_ALT_NAME_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_ALT_NAME_INFO { - pub cAltEntry: DWORD, - pub rgAltEntry: PCERT_ALT_NAME_ENTRY, -} -pub type CERT_ALT_NAME_INFO = _CERT_ALT_NAME_INFO; -pub type PCERT_ALT_NAME_INFO = *mut _CERT_ALT_NAME_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_BASIC_CONSTRAINTS_INFO { - pub SubjectType: CRYPT_BIT_BLOB, - pub fPathLenConstraint: BOOL, - pub dwPathLenConstraint: DWORD, - pub cSubtreesConstraint: DWORD, - pub rgSubtreesConstraint: *mut CERT_NAME_BLOB, -} -pub type CERT_BASIC_CONSTRAINTS_INFO = _CERT_BASIC_CONSTRAINTS_INFO; -pub type PCERT_BASIC_CONSTRAINTS_INFO = *mut _CERT_BASIC_CONSTRAINTS_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_BASIC_CONSTRAINTS2_INFO { - pub fCA: BOOL, - pub fPathLenConstraint: BOOL, - pub dwPathLenConstraint: DWORD, -} -pub type CERT_BASIC_CONSTRAINTS2_INFO = _CERT_BASIC_CONSTRAINTS2_INFO; -pub type PCERT_BASIC_CONSTRAINTS2_INFO = *mut _CERT_BASIC_CONSTRAINTS2_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_POLICY_QUALIFIER_INFO { - pub pszPolicyQualifierId: LPSTR, - pub Qualifier: CRYPT_OBJID_BLOB, -} -pub type CERT_POLICY_QUALIFIER_INFO = _CERT_POLICY_QUALIFIER_INFO; -pub type PCERT_POLICY_QUALIFIER_INFO = *mut _CERT_POLICY_QUALIFIER_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_POLICY_INFO { - pub pszPolicyIdentifier: LPSTR, - pub cPolicyQualifier: DWORD, - pub rgPolicyQualifier: *mut CERT_POLICY_QUALIFIER_INFO, -} -pub type CERT_POLICY_INFO = _CERT_POLICY_INFO; -pub type PCERT_POLICY_INFO = *mut _CERT_POLICY_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_POLICIES_INFO { - pub cPolicyInfo: DWORD, - pub rgPolicyInfo: *mut CERT_POLICY_INFO, -} -pub type CERT_POLICIES_INFO = _CERT_POLICIES_INFO; -pub type PCERT_POLICIES_INFO = *mut _CERT_POLICIES_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_POLICY_QUALIFIER_NOTICE_REFERENCE { - pub pszOrganization: LPSTR, - pub cNoticeNumbers: DWORD, - pub rgNoticeNumbers: *mut ::std::os::raw::c_int, -} -pub type CERT_POLICY_QUALIFIER_NOTICE_REFERENCE = _CERT_POLICY_QUALIFIER_NOTICE_REFERENCE; -pub type PCERT_POLICY_QUALIFIER_NOTICE_REFERENCE = *mut _CERT_POLICY_QUALIFIER_NOTICE_REFERENCE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_POLICY_QUALIFIER_USER_NOTICE { - pub pNoticeReference: *mut CERT_POLICY_QUALIFIER_NOTICE_REFERENCE, - pub pszDisplayText: LPWSTR, -} -pub type CERT_POLICY_QUALIFIER_USER_NOTICE = _CERT_POLICY_QUALIFIER_USER_NOTICE; -pub type PCERT_POLICY_QUALIFIER_USER_NOTICE = *mut _CERT_POLICY_QUALIFIER_USER_NOTICE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CPS_URLS { - pub pszURL: LPWSTR, - pub pAlgorithm: *mut CRYPT_ALGORITHM_IDENTIFIER, - pub pDigest: *mut CRYPT_DATA_BLOB, -} -pub type CPS_URLS = _CPS_URLS; -pub type PCPS_URLS = *mut _CPS_URLS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_POLICY95_QUALIFIER1 { - pub pszPracticesReference: LPWSTR, - pub pszNoticeIdentifier: LPSTR, - pub pszNSINoticeIdentifier: LPSTR, - pub cCPSURLs: DWORD, - pub rgCPSURLs: *mut CPS_URLS, -} -pub type CERT_POLICY95_QUALIFIER1 = _CERT_POLICY95_QUALIFIER1; -pub type PCERT_POLICY95_QUALIFIER1 = *mut _CERT_POLICY95_QUALIFIER1; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_POLICY_MAPPING { - pub pszIssuerDomainPolicy: LPSTR, - pub pszSubjectDomainPolicy: LPSTR, -} -pub type CERT_POLICY_MAPPING = _CERT_POLICY_MAPPING; -pub type PCERT_POLICY_MAPPING = *mut _CERT_POLICY_MAPPING; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_POLICY_MAPPINGS_INFO { - pub cPolicyMapping: DWORD, - pub rgPolicyMapping: PCERT_POLICY_MAPPING, -} -pub type CERT_POLICY_MAPPINGS_INFO = _CERT_POLICY_MAPPINGS_INFO; -pub type PCERT_POLICY_MAPPINGS_INFO = *mut _CERT_POLICY_MAPPINGS_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_POLICY_CONSTRAINTS_INFO { - pub fRequireExplicitPolicy: BOOL, - pub dwRequireExplicitPolicySkipCerts: DWORD, - pub fInhibitPolicyMapping: BOOL, - pub dwInhibitPolicyMappingSkipCerts: DWORD, -} -pub type CERT_POLICY_CONSTRAINTS_INFO = _CERT_POLICY_CONSTRAINTS_INFO; -pub type PCERT_POLICY_CONSTRAINTS_INFO = *mut _CERT_POLICY_CONSTRAINTS_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY { - pub pszObjId: LPSTR, - pub cValue: DWORD, - pub rgValue: PCRYPT_DER_BLOB, -} -pub type CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY = _CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY; -pub type PCRYPT_CONTENT_INFO_SEQUENCE_OF_ANY = *mut _CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_CONTENT_INFO { - pub pszObjId: LPSTR, - pub Content: CRYPT_DER_BLOB, -} -pub type CRYPT_CONTENT_INFO = _CRYPT_CONTENT_INFO; -pub type PCRYPT_CONTENT_INFO = *mut _CRYPT_CONTENT_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_SEQUENCE_OF_ANY { - pub cValue: DWORD, - pub rgValue: PCRYPT_DER_BLOB, -} -pub type CRYPT_SEQUENCE_OF_ANY = _CRYPT_SEQUENCE_OF_ANY; -pub type PCRYPT_SEQUENCE_OF_ANY = *mut _CRYPT_SEQUENCE_OF_ANY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_AUTHORITY_KEY_ID2_INFO { - pub KeyId: CRYPT_DATA_BLOB, - pub AuthorityCertIssuer: CERT_ALT_NAME_INFO, - pub AuthorityCertSerialNumber: CRYPT_INTEGER_BLOB, -} -pub type CERT_AUTHORITY_KEY_ID2_INFO = _CERT_AUTHORITY_KEY_ID2_INFO; -pub type PCERT_AUTHORITY_KEY_ID2_INFO = *mut _CERT_AUTHORITY_KEY_ID2_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CERT_ACCESS_DESCRIPTION { - pub pszAccessMethod: LPSTR, - pub AccessLocation: CERT_ALT_NAME_ENTRY, -} -pub type CERT_ACCESS_DESCRIPTION = _CERT_ACCESS_DESCRIPTION; -pub type PCERT_ACCESS_DESCRIPTION = *mut _CERT_ACCESS_DESCRIPTION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_AUTHORITY_INFO_ACCESS { - pub cAccDescr: DWORD, - pub rgAccDescr: PCERT_ACCESS_DESCRIPTION, -} -pub type CERT_AUTHORITY_INFO_ACCESS = _CERT_AUTHORITY_INFO_ACCESS; -pub type PCERT_AUTHORITY_INFO_ACCESS = *mut _CERT_AUTHORITY_INFO_ACCESS; -pub type CERT_SUBJECT_INFO_ACCESS = _CERT_AUTHORITY_INFO_ACCESS; -pub type PCERT_SUBJECT_INFO_ACCESS = *mut _CERT_AUTHORITY_INFO_ACCESS; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CRL_DIST_POINT_NAME { - pub dwDistPointNameChoice: DWORD, - pub __bindgen_anon_1: _CRL_DIST_POINT_NAME__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CRL_DIST_POINT_NAME__bindgen_ty_1 { - pub FullName: CERT_ALT_NAME_INFO, -} -pub type CRL_DIST_POINT_NAME = _CRL_DIST_POINT_NAME; -pub type PCRL_DIST_POINT_NAME = *mut _CRL_DIST_POINT_NAME; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CRL_DIST_POINT { - pub DistPointName: CRL_DIST_POINT_NAME, - pub ReasonFlags: CRYPT_BIT_BLOB, - pub CRLIssuer: CERT_ALT_NAME_INFO, -} -pub type CRL_DIST_POINT = _CRL_DIST_POINT; -pub type PCRL_DIST_POINT = *mut _CRL_DIST_POINT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRL_DIST_POINTS_INFO { - pub cDistPoint: DWORD, - pub rgDistPoint: PCRL_DIST_POINT, -} -pub type CRL_DIST_POINTS_INFO = _CRL_DIST_POINTS_INFO; -pub type PCRL_DIST_POINTS_INFO = *mut _CRL_DIST_POINTS_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CROSS_CERT_DIST_POINTS_INFO { - pub dwSyncDeltaTime: DWORD, - pub cDistPoint: DWORD, - pub rgDistPoint: PCERT_ALT_NAME_INFO, -} -pub type CROSS_CERT_DIST_POINTS_INFO = _CROSS_CERT_DIST_POINTS_INFO; -pub type PCROSS_CERT_DIST_POINTS_INFO = *mut _CROSS_CERT_DIST_POINTS_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_PAIR { - pub Forward: CERT_BLOB, - pub Reverse: CERT_BLOB, -} -pub type CERT_PAIR = _CERT_PAIR; -pub type PCERT_PAIR = *mut _CERT_PAIR; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CRL_ISSUING_DIST_POINT { - pub DistPointName: CRL_DIST_POINT_NAME, - pub fOnlyContainsUserCerts: BOOL, - pub fOnlyContainsCACerts: BOOL, - pub OnlySomeReasonFlags: CRYPT_BIT_BLOB, - pub fIndirectCRL: BOOL, -} -pub type CRL_ISSUING_DIST_POINT = _CRL_ISSUING_DIST_POINT; -pub type PCRL_ISSUING_DIST_POINT = *mut _CRL_ISSUING_DIST_POINT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CERT_GENERAL_SUBTREE { - pub Base: CERT_ALT_NAME_ENTRY, - pub dwMinimum: DWORD, - pub fMaximum: BOOL, - pub dwMaximum: DWORD, -} -pub type CERT_GENERAL_SUBTREE = _CERT_GENERAL_SUBTREE; -pub type PCERT_GENERAL_SUBTREE = *mut _CERT_GENERAL_SUBTREE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_NAME_CONSTRAINTS_INFO { - pub cPermittedSubtree: DWORD, - pub rgPermittedSubtree: PCERT_GENERAL_SUBTREE, - pub cExcludedSubtree: DWORD, - pub rgExcludedSubtree: PCERT_GENERAL_SUBTREE, -} -pub type CERT_NAME_CONSTRAINTS_INFO = _CERT_NAME_CONSTRAINTS_INFO; -pub type PCERT_NAME_CONSTRAINTS_INFO = *mut _CERT_NAME_CONSTRAINTS_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_DSS_PARAMETERS { - pub p: CRYPT_UINT_BLOB, - pub q: CRYPT_UINT_BLOB, - pub g: CRYPT_UINT_BLOB, -} -pub type CERT_DSS_PARAMETERS = _CERT_DSS_PARAMETERS; -pub type PCERT_DSS_PARAMETERS = *mut _CERT_DSS_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_DH_PARAMETERS { - pub p: CRYPT_UINT_BLOB, - pub g: CRYPT_UINT_BLOB, -} -pub type CERT_DH_PARAMETERS = _CERT_DH_PARAMETERS; -pub type PCERT_DH_PARAMETERS = *mut _CERT_DH_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_ECC_SIGNATURE { - pub r: CRYPT_UINT_BLOB, - pub s: CRYPT_UINT_BLOB, -} -pub type CERT_ECC_SIGNATURE = _CERT_ECC_SIGNATURE; -pub type PCERT_ECC_SIGNATURE = *mut _CERT_ECC_SIGNATURE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_X942_DH_VALIDATION_PARAMS { - pub seed: CRYPT_BIT_BLOB, - pub pgenCounter: DWORD, -} -pub type CERT_X942_DH_VALIDATION_PARAMS = _CERT_X942_DH_VALIDATION_PARAMS; -pub type PCERT_X942_DH_VALIDATION_PARAMS = *mut _CERT_X942_DH_VALIDATION_PARAMS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_X942_DH_PARAMETERS { - pub p: CRYPT_UINT_BLOB, - pub g: CRYPT_UINT_BLOB, - pub q: CRYPT_UINT_BLOB, - pub j: CRYPT_UINT_BLOB, - pub pValidationParams: PCERT_X942_DH_VALIDATION_PARAMS, -} -pub type CERT_X942_DH_PARAMETERS = _CERT_X942_DH_PARAMETERS; -pub type PCERT_X942_DH_PARAMETERS = *mut _CERT_X942_DH_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_X942_OTHER_INFO { - pub pszContentEncryptionObjId: LPSTR, - pub rgbCounter: [BYTE; 4usize], - pub rgbKeyLength: [BYTE; 4usize], - pub PubInfo: CRYPT_DATA_BLOB, -} -pub type CRYPT_X942_OTHER_INFO = _CRYPT_X942_OTHER_INFO; -pub type PCRYPT_X942_OTHER_INFO = *mut _CRYPT_X942_OTHER_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_ECC_CMS_SHARED_INFO { - pub Algorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub EntityUInfo: CRYPT_DATA_BLOB, - pub rgbSuppPubInfo: [BYTE; 4usize], -} -pub type CRYPT_ECC_CMS_SHARED_INFO = _CRYPT_ECC_CMS_SHARED_INFO; -pub type PCRYPT_ECC_CMS_SHARED_INFO = *mut _CRYPT_ECC_CMS_SHARED_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_RC2_CBC_PARAMETERS { - pub dwVersion: DWORD, - pub fIV: BOOL, - pub rgbIV: [BYTE; 8usize], -} -pub type CRYPT_RC2_CBC_PARAMETERS = _CRYPT_RC2_CBC_PARAMETERS; -pub type PCRYPT_RC2_CBC_PARAMETERS = *mut _CRYPT_RC2_CBC_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_SMIME_CAPABILITY { - pub pszObjId: LPSTR, - pub Parameters: CRYPT_OBJID_BLOB, -} -pub type CRYPT_SMIME_CAPABILITY = _CRYPT_SMIME_CAPABILITY; -pub type PCRYPT_SMIME_CAPABILITY = *mut _CRYPT_SMIME_CAPABILITY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_SMIME_CAPABILITIES { - pub cCapability: DWORD, - pub rgCapability: PCRYPT_SMIME_CAPABILITY, -} -pub type CRYPT_SMIME_CAPABILITIES = _CRYPT_SMIME_CAPABILITIES; -pub type PCRYPT_SMIME_CAPABILITIES = *mut _CRYPT_SMIME_CAPABILITIES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_QC_STATEMENT { - pub pszStatementId: LPSTR, - pub StatementInfo: CRYPT_OBJID_BLOB, -} -pub type CERT_QC_STATEMENT = _CERT_QC_STATEMENT; -pub type PCERT_QC_STATEMENT = *mut _CERT_QC_STATEMENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_QC_STATEMENTS_EXT_INFO { - pub cStatement: DWORD, - pub rgStatement: PCERT_QC_STATEMENT, -} -pub type CERT_QC_STATEMENTS_EXT_INFO = _CERT_QC_STATEMENTS_EXT_INFO; -pub type PCERT_QC_STATEMENTS_EXT_INFO = *mut _CERT_QC_STATEMENTS_EXT_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_MASK_GEN_ALGORITHM { - pub pszObjId: LPSTR, - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, -} -pub type CRYPT_MASK_GEN_ALGORITHM = _CRYPT_MASK_GEN_ALGORITHM; -pub type PCRYPT_MASK_GEN_ALGORITHM = *mut _CRYPT_MASK_GEN_ALGORITHM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_RSA_SSA_PSS_PARAMETERS { - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub MaskGenAlgorithm: CRYPT_MASK_GEN_ALGORITHM, - pub dwSaltLength: DWORD, - pub dwTrailerField: DWORD, -} -pub type CRYPT_RSA_SSA_PSS_PARAMETERS = _CRYPT_RSA_SSA_PSS_PARAMETERS; -pub type PCRYPT_RSA_SSA_PSS_PARAMETERS = *mut _CRYPT_RSA_SSA_PSS_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_PSOURCE_ALGORITHM { - pub pszObjId: LPSTR, - pub EncodingParameters: CRYPT_DATA_BLOB, -} -pub type CRYPT_PSOURCE_ALGORITHM = _CRYPT_PSOURCE_ALGORITHM; -pub type PCRYPT_PSOURCE_ALGORITHM = *mut _CRYPT_PSOURCE_ALGORITHM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_RSAES_OAEP_PARAMETERS { - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub MaskGenAlgorithm: CRYPT_MASK_GEN_ALGORITHM, - pub PSourceAlgorithm: CRYPT_PSOURCE_ALGORITHM, -} -pub type CRYPT_RSAES_OAEP_PARAMETERS = _CRYPT_RSAES_OAEP_PARAMETERS; -pub type PCRYPT_RSAES_OAEP_PARAMETERS = *mut _CRYPT_RSAES_OAEP_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMC_TAGGED_ATTRIBUTE { - pub dwBodyPartID: DWORD, - pub Attribute: CRYPT_ATTRIBUTE, -} -pub type CMC_TAGGED_ATTRIBUTE = _CMC_TAGGED_ATTRIBUTE; -pub type PCMC_TAGGED_ATTRIBUTE = *mut _CMC_TAGGED_ATTRIBUTE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMC_TAGGED_CERT_REQUEST { - pub dwBodyPartID: DWORD, - pub SignedCertRequest: CRYPT_DER_BLOB, -} -pub type CMC_TAGGED_CERT_REQUEST = _CMC_TAGGED_CERT_REQUEST; -pub type PCMC_TAGGED_CERT_REQUEST = *mut _CMC_TAGGED_CERT_REQUEST; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMC_TAGGED_REQUEST { - pub dwTaggedRequestChoice: DWORD, - pub __bindgen_anon_1: _CMC_TAGGED_REQUEST__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CMC_TAGGED_REQUEST__bindgen_ty_1 { - pub pTaggedCertRequest: PCMC_TAGGED_CERT_REQUEST, -} -pub type CMC_TAGGED_REQUEST = _CMC_TAGGED_REQUEST; -pub type PCMC_TAGGED_REQUEST = *mut _CMC_TAGGED_REQUEST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMC_TAGGED_CONTENT_INFO { - pub dwBodyPartID: DWORD, - pub EncodedContentInfo: CRYPT_DER_BLOB, -} -pub type CMC_TAGGED_CONTENT_INFO = _CMC_TAGGED_CONTENT_INFO; -pub type PCMC_TAGGED_CONTENT_INFO = *mut _CMC_TAGGED_CONTENT_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMC_TAGGED_OTHER_MSG { - pub dwBodyPartID: DWORD, - pub pszObjId: LPSTR, - pub Value: CRYPT_OBJID_BLOB, -} -pub type CMC_TAGGED_OTHER_MSG = _CMC_TAGGED_OTHER_MSG; -pub type PCMC_TAGGED_OTHER_MSG = *mut _CMC_TAGGED_OTHER_MSG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMC_DATA_INFO { - pub cTaggedAttribute: DWORD, - pub rgTaggedAttribute: PCMC_TAGGED_ATTRIBUTE, - pub cTaggedRequest: DWORD, - pub rgTaggedRequest: PCMC_TAGGED_REQUEST, - pub cTaggedContentInfo: DWORD, - pub rgTaggedContentInfo: PCMC_TAGGED_CONTENT_INFO, - pub cTaggedOtherMsg: DWORD, - pub rgTaggedOtherMsg: PCMC_TAGGED_OTHER_MSG, -} -pub type CMC_DATA_INFO = _CMC_DATA_INFO; -pub type PCMC_DATA_INFO = *mut _CMC_DATA_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMC_RESPONSE_INFO { - pub cTaggedAttribute: DWORD, - pub rgTaggedAttribute: PCMC_TAGGED_ATTRIBUTE, - pub cTaggedContentInfo: DWORD, - pub rgTaggedContentInfo: PCMC_TAGGED_CONTENT_INFO, - pub cTaggedOtherMsg: DWORD, - pub rgTaggedOtherMsg: PCMC_TAGGED_OTHER_MSG, -} -pub type CMC_RESPONSE_INFO = _CMC_RESPONSE_INFO; -pub type PCMC_RESPONSE_INFO = *mut _CMC_RESPONSE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMC_PEND_INFO { - pub PendToken: CRYPT_DATA_BLOB, - pub PendTime: FILETIME, -} -pub type CMC_PEND_INFO = _CMC_PEND_INFO; -pub type PCMC_PEND_INFO = *mut _CMC_PEND_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMC_STATUS_INFO { - pub dwStatus: DWORD, - pub cBodyList: DWORD, - pub rgdwBodyList: *mut DWORD, - pub pwszStatusString: LPWSTR, - pub dwOtherInfoChoice: DWORD, - pub __bindgen_anon_1: _CMC_STATUS_INFO__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CMC_STATUS_INFO__bindgen_ty_1 { - pub dwFailInfo: DWORD, - pub pPendInfo: PCMC_PEND_INFO, -} -pub type CMC_STATUS_INFO = _CMC_STATUS_INFO; -pub type PCMC_STATUS_INFO = *mut _CMC_STATUS_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMC_ADD_EXTENSIONS_INFO { - pub dwCmcDataReference: DWORD, - pub cCertReference: DWORD, - pub rgdwCertReference: *mut DWORD, - pub cExtension: DWORD, - pub rgExtension: PCERT_EXTENSION, -} -pub type CMC_ADD_EXTENSIONS_INFO = _CMC_ADD_EXTENSIONS_INFO; -pub type PCMC_ADD_EXTENSIONS_INFO = *mut _CMC_ADD_EXTENSIONS_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMC_ADD_ATTRIBUTES_INFO { - pub dwCmcDataReference: DWORD, - pub cCertReference: DWORD, - pub rgdwCertReference: *mut DWORD, - pub cAttribute: DWORD, - pub rgAttribute: PCRYPT_ATTRIBUTE, -} -pub type CMC_ADD_ATTRIBUTES_INFO = _CMC_ADD_ATTRIBUTES_INFO; -pub type PCMC_ADD_ATTRIBUTES_INFO = *mut _CMC_ADD_ATTRIBUTES_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_TEMPLATE_EXT { - pub pszObjId: LPSTR, - pub dwMajorVersion: DWORD, - pub fMinorVersion: BOOL, - pub dwMinorVersion: DWORD, -} -pub type CERT_TEMPLATE_EXT = _CERT_TEMPLATE_EXT; -pub type PCERT_TEMPLATE_EXT = *mut _CERT_TEMPLATE_EXT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_HASHED_URL { - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub Hash: CRYPT_HASH_BLOB, - pub pwszUrl: LPWSTR, -} -pub type CERT_HASHED_URL = _CERT_HASHED_URL; -pub type PCERT_HASHED_URL = *mut _CERT_HASHED_URL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_LOGOTYPE_DETAILS { - pub pwszMimeType: LPWSTR, - pub cHashedUrl: DWORD, - pub rgHashedUrl: PCERT_HASHED_URL, -} -pub type CERT_LOGOTYPE_DETAILS = _CERT_LOGOTYPE_DETAILS; -pub type PCERT_LOGOTYPE_DETAILS = *mut _CERT_LOGOTYPE_DETAILS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_LOGOTYPE_REFERENCE { - pub cHashedUrl: DWORD, - pub rgHashedUrl: PCERT_HASHED_URL, -} -pub type CERT_LOGOTYPE_REFERENCE = _CERT_LOGOTYPE_REFERENCE; -pub type PCERT_LOGOTYPE_REFERENCE = *mut _CERT_LOGOTYPE_REFERENCE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CERT_LOGOTYPE_IMAGE_INFO { - pub dwLogotypeImageInfoChoice: DWORD, - pub dwFileSize: DWORD, - pub dwXSize: DWORD, - pub dwYSize: DWORD, - pub dwLogotypeImageResolutionChoice: DWORD, - pub __bindgen_anon_1: _CERT_LOGOTYPE_IMAGE_INFO__bindgen_ty_1, - pub pwszLanguage: LPWSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CERT_LOGOTYPE_IMAGE_INFO__bindgen_ty_1 { - pub dwNumBits: DWORD, - pub dwTableSize: DWORD, -} -pub type CERT_LOGOTYPE_IMAGE_INFO = _CERT_LOGOTYPE_IMAGE_INFO; -pub type PCERT_LOGOTYPE_IMAGE_INFO = *mut _CERT_LOGOTYPE_IMAGE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_LOGOTYPE_IMAGE { - pub LogotypeDetails: CERT_LOGOTYPE_DETAILS, - pub pLogotypeImageInfo: PCERT_LOGOTYPE_IMAGE_INFO, -} -pub type CERT_LOGOTYPE_IMAGE = _CERT_LOGOTYPE_IMAGE; -pub type PCERT_LOGOTYPE_IMAGE = *mut _CERT_LOGOTYPE_IMAGE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_LOGOTYPE_AUDIO_INFO { - pub dwFileSize: DWORD, - pub dwPlayTime: DWORD, - pub dwChannels: DWORD, - pub dwSampleRate: DWORD, - pub pwszLanguage: LPWSTR, -} -pub type CERT_LOGOTYPE_AUDIO_INFO = _CERT_LOGOTYPE_AUDIO_INFO; -pub type PCERT_LOGOTYPE_AUDIO_INFO = *mut _CERT_LOGOTYPE_AUDIO_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_LOGOTYPE_AUDIO { - pub LogotypeDetails: CERT_LOGOTYPE_DETAILS, - pub pLogotypeAudioInfo: PCERT_LOGOTYPE_AUDIO_INFO, -} -pub type CERT_LOGOTYPE_AUDIO = _CERT_LOGOTYPE_AUDIO; -pub type PCERT_LOGOTYPE_AUDIO = *mut _CERT_LOGOTYPE_AUDIO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_LOGOTYPE_DATA { - pub cLogotypeImage: DWORD, - pub rgLogotypeImage: PCERT_LOGOTYPE_IMAGE, - pub cLogotypeAudio: DWORD, - pub rgLogotypeAudio: PCERT_LOGOTYPE_AUDIO, -} -pub type CERT_LOGOTYPE_DATA = _CERT_LOGOTYPE_DATA; -pub type PCERT_LOGOTYPE_DATA = *mut _CERT_LOGOTYPE_DATA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CERT_LOGOTYPE_INFO { - pub dwLogotypeInfoChoice: DWORD, - pub __bindgen_anon_1: _CERT_LOGOTYPE_INFO__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CERT_LOGOTYPE_INFO__bindgen_ty_1 { - pub pLogotypeDirectInfo: PCERT_LOGOTYPE_DATA, - pub pLogotypeIndirectInfo: PCERT_LOGOTYPE_REFERENCE, -} -pub type CERT_LOGOTYPE_INFO = _CERT_LOGOTYPE_INFO; -pub type PCERT_LOGOTYPE_INFO = *mut _CERT_LOGOTYPE_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CERT_OTHER_LOGOTYPE_INFO { - pub pszObjId: LPSTR, - pub LogotypeInfo: CERT_LOGOTYPE_INFO, -} -pub type CERT_OTHER_LOGOTYPE_INFO = _CERT_OTHER_LOGOTYPE_INFO; -pub type PCERT_OTHER_LOGOTYPE_INFO = *mut _CERT_OTHER_LOGOTYPE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_LOGOTYPE_EXT_INFO { - pub cCommunityLogo: DWORD, - pub rgCommunityLogo: PCERT_LOGOTYPE_INFO, - pub pIssuerLogo: PCERT_LOGOTYPE_INFO, - pub pSubjectLogo: PCERT_LOGOTYPE_INFO, - pub cOtherLogo: DWORD, - pub rgOtherLogo: PCERT_OTHER_LOGOTYPE_INFO, -} -pub type CERT_LOGOTYPE_EXT_INFO = _CERT_LOGOTYPE_EXT_INFO; -pub type PCERT_LOGOTYPE_EXT_INFO = *mut _CERT_LOGOTYPE_EXT_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CERT_BIOMETRIC_DATA { - pub dwTypeOfBiometricDataChoice: DWORD, - pub __bindgen_anon_1: _CERT_BIOMETRIC_DATA__bindgen_ty_1, - pub HashedUrl: CERT_HASHED_URL, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CERT_BIOMETRIC_DATA__bindgen_ty_1 { - pub dwPredefined: DWORD, - pub pszObjId: LPSTR, -} -pub type CERT_BIOMETRIC_DATA = _CERT_BIOMETRIC_DATA; -pub type PCERT_BIOMETRIC_DATA = *mut _CERT_BIOMETRIC_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_BIOMETRIC_EXT_INFO { - pub cBiometricData: DWORD, - pub rgBiometricData: PCERT_BIOMETRIC_DATA, -} -pub type CERT_BIOMETRIC_EXT_INFO = _CERT_BIOMETRIC_EXT_INFO; -pub type PCERT_BIOMETRIC_EXT_INFO = *mut _CERT_BIOMETRIC_EXT_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OCSP_SIGNATURE_INFO { - pub SignatureAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub Signature: CRYPT_BIT_BLOB, - pub cCertEncoded: DWORD, - pub rgCertEncoded: PCERT_BLOB, -} -pub type OCSP_SIGNATURE_INFO = _OCSP_SIGNATURE_INFO; -pub type POCSP_SIGNATURE_INFO = *mut _OCSP_SIGNATURE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OCSP_SIGNED_REQUEST_INFO { - pub ToBeSigned: CRYPT_DER_BLOB, - pub pOptionalSignatureInfo: POCSP_SIGNATURE_INFO, -} -pub type OCSP_SIGNED_REQUEST_INFO = _OCSP_SIGNED_REQUEST_INFO; -pub type POCSP_SIGNED_REQUEST_INFO = *mut _OCSP_SIGNED_REQUEST_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OCSP_CERT_ID { - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub IssuerNameHash: CRYPT_HASH_BLOB, - pub IssuerKeyHash: CRYPT_HASH_BLOB, - pub SerialNumber: CRYPT_INTEGER_BLOB, -} -pub type OCSP_CERT_ID = _OCSP_CERT_ID; -pub type POCSP_CERT_ID = *mut _OCSP_CERT_ID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OCSP_REQUEST_ENTRY { - pub CertId: OCSP_CERT_ID, - pub cExtension: DWORD, - pub rgExtension: PCERT_EXTENSION, -} -pub type OCSP_REQUEST_ENTRY = _OCSP_REQUEST_ENTRY; -pub type POCSP_REQUEST_ENTRY = *mut _OCSP_REQUEST_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OCSP_REQUEST_INFO { - pub dwVersion: DWORD, - pub pRequestorName: PCERT_ALT_NAME_ENTRY, - pub cRequestEntry: DWORD, - pub rgRequestEntry: POCSP_REQUEST_ENTRY, - pub cExtension: DWORD, - pub rgExtension: PCERT_EXTENSION, -} -pub type OCSP_REQUEST_INFO = _OCSP_REQUEST_INFO; -pub type POCSP_REQUEST_INFO = *mut _OCSP_REQUEST_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OCSP_RESPONSE_INFO { - pub dwStatus: DWORD, - pub pszObjId: LPSTR, - pub Value: CRYPT_OBJID_BLOB, -} -pub type OCSP_RESPONSE_INFO = _OCSP_RESPONSE_INFO; -pub type POCSP_RESPONSE_INFO = *mut _OCSP_RESPONSE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OCSP_BASIC_SIGNED_RESPONSE_INFO { - pub ToBeSigned: CRYPT_DER_BLOB, - pub SignatureInfo: OCSP_SIGNATURE_INFO, -} -pub type OCSP_BASIC_SIGNED_RESPONSE_INFO = _OCSP_BASIC_SIGNED_RESPONSE_INFO; -pub type POCSP_BASIC_SIGNED_RESPONSE_INFO = *mut _OCSP_BASIC_SIGNED_RESPONSE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OCSP_BASIC_REVOKED_INFO { - pub RevocationDate: FILETIME, - pub dwCrlReasonCode: DWORD, -} -pub type OCSP_BASIC_REVOKED_INFO = _OCSP_BASIC_REVOKED_INFO; -pub type POCSP_BASIC_REVOKED_INFO = *mut _OCSP_BASIC_REVOKED_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _OCSP_BASIC_RESPONSE_ENTRY { - pub CertId: OCSP_CERT_ID, - pub dwCertStatus: DWORD, - pub __bindgen_anon_1: _OCSP_BASIC_RESPONSE_ENTRY__bindgen_ty_1, - pub ThisUpdate: FILETIME, - pub NextUpdate: FILETIME, - pub cExtension: DWORD, - pub rgExtension: PCERT_EXTENSION, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _OCSP_BASIC_RESPONSE_ENTRY__bindgen_ty_1 { - pub pRevokedInfo: POCSP_BASIC_REVOKED_INFO, -} -pub type OCSP_BASIC_RESPONSE_ENTRY = _OCSP_BASIC_RESPONSE_ENTRY; -pub type POCSP_BASIC_RESPONSE_ENTRY = *mut _OCSP_BASIC_RESPONSE_ENTRY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _OCSP_BASIC_RESPONSE_INFO { - pub dwVersion: DWORD, - pub dwResponderIdChoice: DWORD, - pub __bindgen_anon_1: _OCSP_BASIC_RESPONSE_INFO__bindgen_ty_1, - pub ProducedAt: FILETIME, - pub cResponseEntry: DWORD, - pub rgResponseEntry: POCSP_BASIC_RESPONSE_ENTRY, - pub cExtension: DWORD, - pub rgExtension: PCERT_EXTENSION, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _OCSP_BASIC_RESPONSE_INFO__bindgen_ty_1 { - pub ByNameResponderId: CERT_NAME_BLOB, - pub ByKeyResponderId: CRYPT_HASH_BLOB, -} -pub type OCSP_BASIC_RESPONSE_INFO = _OCSP_BASIC_RESPONSE_INFO; -pub type POCSP_BASIC_RESPONSE_INFO = *mut _OCSP_BASIC_RESPONSE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_SUPPORTED_ALGORITHM_INFO { - pub Algorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub IntendedKeyUsage: CRYPT_BIT_BLOB, - pub IntendedCertPolicies: CERT_POLICIES_INFO, -} -pub type CERT_SUPPORTED_ALGORITHM_INFO = _CERT_SUPPORTED_ALGORITHM_INFO; -pub type PCERT_SUPPORTED_ALGORITHM_INFO = *mut _CERT_SUPPORTED_ALGORITHM_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_TPM_SPECIFICATION_INFO { - pub pwszFamily: LPWSTR, - pub dwLevel: DWORD, - pub dwRevision: DWORD, -} -pub type CERT_TPM_SPECIFICATION_INFO = _CERT_TPM_SPECIFICATION_INFO; -pub type PCERT_TPM_SPECIFICATION_INFO = *mut _CERT_TPM_SPECIFICATION_INFO; -pub type HCRYPTOIDFUNCSET = *mut ::std::os::raw::c_void; -pub type HCRYPTOIDFUNCADDR = *mut ::std::os::raw::c_void; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_OID_FUNC_ENTRY { - pub pszOID: LPCSTR, - pub pvFuncAddr: *mut ::std::os::raw::c_void, -} -pub type CRYPT_OID_FUNC_ENTRY = _CRYPT_OID_FUNC_ENTRY; -pub type PCRYPT_OID_FUNC_ENTRY = *mut _CRYPT_OID_FUNC_ENTRY; -extern "C" { - pub fn CryptInstallOIDFunctionAddress( - hModule: HMODULE, - dwEncodingType: DWORD, - pszFuncName: LPCSTR, - cFuncEntry: DWORD, - rgFuncEntry: *const CRYPT_OID_FUNC_ENTRY, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptInitOIDFunctionSet(pszFuncName: LPCSTR, dwFlags: DWORD) -> HCRYPTOIDFUNCSET; -} -extern "C" { - pub fn CryptGetOIDFunctionAddress( - hFuncSet: HCRYPTOIDFUNCSET, - dwEncodingType: DWORD, - pszOID: LPCSTR, - dwFlags: DWORD, - ppvFuncAddr: *mut *mut ::std::os::raw::c_void, - phFuncAddr: *mut HCRYPTOIDFUNCADDR, - ) -> BOOL; -} -extern "C" { - pub fn CryptGetDefaultOIDDllList( - hFuncSet: HCRYPTOIDFUNCSET, - dwEncodingType: DWORD, - pwszDllList: *mut WCHAR, - pcchDllList: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptGetDefaultOIDFunctionAddress( - hFuncSet: HCRYPTOIDFUNCSET, - dwEncodingType: DWORD, - pwszDll: LPCWSTR, - dwFlags: DWORD, - ppvFuncAddr: *mut *mut ::std::os::raw::c_void, - phFuncAddr: *mut HCRYPTOIDFUNCADDR, - ) -> BOOL; -} -extern "C" { - pub fn CryptFreeOIDFunctionAddress(hFuncAddr: HCRYPTOIDFUNCADDR, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn CryptRegisterOIDFunction( - dwEncodingType: DWORD, - pszFuncName: LPCSTR, - pszOID: LPCSTR, - pwszDll: LPCWSTR, - pszOverrideFuncName: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn CryptUnregisterOIDFunction( - dwEncodingType: DWORD, - pszFuncName: LPCSTR, - pszOID: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn CryptRegisterDefaultOIDFunction( - dwEncodingType: DWORD, - pszFuncName: LPCSTR, - dwIndex: DWORD, - pwszDll: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn CryptUnregisterDefaultOIDFunction( - dwEncodingType: DWORD, - pszFuncName: LPCSTR, - pwszDll: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn CryptSetOIDFunctionValue( - dwEncodingType: DWORD, - pszFuncName: LPCSTR, - pszOID: LPCSTR, - pwszValueName: LPCWSTR, - dwValueType: DWORD, - pbValueData: *const BYTE, - cbValueData: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptGetOIDFunctionValue( - dwEncodingType: DWORD, - pszFuncName: LPCSTR, - pszOID: LPCSTR, - pwszValueName: LPCWSTR, - pdwValueType: *mut DWORD, - pbValueData: *mut BYTE, - pcbValueData: *mut DWORD, - ) -> BOOL; -} -pub type PFN_CRYPT_ENUM_OID_FUNC = ::std::option::Option< - unsafe extern "C" fn( - dwEncodingType: DWORD, - pszFuncName: LPCSTR, - pszOID: LPCSTR, - cValue: DWORD, - rgdwValueType: *const DWORD, - rgpwszValueName: *const LPCWSTR, - rgpbValueData: *const *const BYTE, - rgcbValueData: *const DWORD, - pvArg: *mut ::std::os::raw::c_void, - ) -> BOOL, ->; -extern "C" { - pub fn CryptEnumOIDFunction( - dwEncodingType: DWORD, - pszFuncName: LPCSTR, - pszOID: LPCSTR, - dwFlags: DWORD, - pvArg: *mut ::std::os::raw::c_void, - pfnEnumOIDFunc: PFN_CRYPT_ENUM_OID_FUNC, - ) -> BOOL; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CRYPT_OID_INFO { - pub cbSize: DWORD, - pub pszOID: LPCSTR, - pub pwszName: LPCWSTR, - pub dwGroupId: DWORD, - pub __bindgen_anon_1: _CRYPT_OID_INFO__bindgen_ty_1, - pub ExtraInfo: CRYPT_DATA_BLOB, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CRYPT_OID_INFO__bindgen_ty_1 { - pub dwValue: DWORD, - pub Algid: ALG_ID, - pub dwLength: DWORD, -} -pub type CRYPT_OID_INFO = _CRYPT_OID_INFO; -pub type PCRYPT_OID_INFO = *mut _CRYPT_OID_INFO; -pub type CCRYPT_OID_INFO = CRYPT_OID_INFO; -pub type PCCRYPT_OID_INFO = *const CRYPT_OID_INFO; -extern "C" { - pub fn CryptFindOIDInfo( - dwKeyType: DWORD, - pvKey: *mut ::std::os::raw::c_void, - dwGroupId: DWORD, - ) -> PCCRYPT_OID_INFO; -} -extern "C" { - pub fn CryptRegisterOIDInfo(pInfo: PCCRYPT_OID_INFO, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn CryptUnregisterOIDInfo(pInfo: PCCRYPT_OID_INFO) -> BOOL; -} -pub type PFN_CRYPT_ENUM_OID_INFO = ::std::option::Option< - unsafe extern "C" fn(pInfo: PCCRYPT_OID_INFO, pvArg: *mut ::std::os::raw::c_void) -> BOOL, ->; -extern "C" { - pub fn CryptEnumOIDInfo( - dwGroupId: DWORD, - dwFlags: DWORD, - pvArg: *mut ::std::os::raw::c_void, - pfnEnumOIDInfo: PFN_CRYPT_ENUM_OID_INFO, - ) -> BOOL; -} -extern "C" { - pub fn CryptFindLocalizedName(pwszCryptName: LPCWSTR) -> LPCWSTR; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_STRONG_SIGN_SERIALIZED_INFO { - pub dwFlags: DWORD, - pub pwszCNGSignHashAlgids: LPWSTR, - pub pwszCNGPubKeyMinBitLengths: LPWSTR, -} -pub type CERT_STRONG_SIGN_SERIALIZED_INFO = _CERT_STRONG_SIGN_SERIALIZED_INFO; -pub type PCERT_STRONG_SIGN_SERIALIZED_INFO = *mut _CERT_STRONG_SIGN_SERIALIZED_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CERT_STRONG_SIGN_PARA { - pub cbSize: DWORD, - pub dwInfoChoice: DWORD, - pub __bindgen_anon_1: _CERT_STRONG_SIGN_PARA__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CERT_STRONG_SIGN_PARA__bindgen_ty_1 { - pub pvInfo: *mut ::std::os::raw::c_void, - pub pSerializedInfo: PCERT_STRONG_SIGN_SERIALIZED_INFO, - pub pszOID: LPSTR, -} -pub type CERT_STRONG_SIGN_PARA = _CERT_STRONG_SIGN_PARA; -pub type PCERT_STRONG_SIGN_PARA = *mut _CERT_STRONG_SIGN_PARA; -pub type PCCERT_STRONG_SIGN_PARA = *const CERT_STRONG_SIGN_PARA; -pub type HCRYPTMSG = *mut ::std::os::raw::c_void; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_ISSUER_SERIAL_NUMBER { - pub Issuer: CERT_NAME_BLOB, - pub SerialNumber: CRYPT_INTEGER_BLOB, -} -pub type CERT_ISSUER_SERIAL_NUMBER = _CERT_ISSUER_SERIAL_NUMBER; -pub type PCERT_ISSUER_SERIAL_NUMBER = *mut _CERT_ISSUER_SERIAL_NUMBER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CERT_ID { - pub dwIdChoice: DWORD, - pub __bindgen_anon_1: _CERT_ID__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CERT_ID__bindgen_ty_1 { - pub IssuerSerialNumber: CERT_ISSUER_SERIAL_NUMBER, - pub KeyId: CRYPT_HASH_BLOB, - pub HashId: CRYPT_HASH_BLOB, -} -pub type CERT_ID = _CERT_ID; -pub type PCERT_ID = *mut _CERT_ID; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_SIGNER_ENCODE_INFO { - pub cbSize: DWORD, - pub pCertInfo: PCERT_INFO, - pub __bindgen_anon_1: _CMSG_SIGNER_ENCODE_INFO__bindgen_ty_1, - pub dwKeySpec: DWORD, - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub pvHashAuxInfo: *mut ::std::os::raw::c_void, - pub cAuthAttr: DWORD, - pub rgAuthAttr: PCRYPT_ATTRIBUTE, - pub cUnauthAttr: DWORD, - pub rgUnauthAttr: PCRYPT_ATTRIBUTE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CMSG_SIGNER_ENCODE_INFO__bindgen_ty_1 { - pub hCryptProv: HCRYPTPROV, - pub hNCryptKey: NCRYPT_KEY_HANDLE, -} -pub type CMSG_SIGNER_ENCODE_INFO = _CMSG_SIGNER_ENCODE_INFO; -pub type PCMSG_SIGNER_ENCODE_INFO = *mut _CMSG_SIGNER_ENCODE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_SIGNED_ENCODE_INFO { - pub cbSize: DWORD, - pub cSigners: DWORD, - pub rgSigners: PCMSG_SIGNER_ENCODE_INFO, - pub cCertEncoded: DWORD, - pub rgCertEncoded: PCERT_BLOB, - pub cCrlEncoded: DWORD, - pub rgCrlEncoded: PCRL_BLOB, -} -pub type CMSG_SIGNED_ENCODE_INFO = _CMSG_SIGNED_ENCODE_INFO; -pub type PCMSG_SIGNED_ENCODE_INFO = *mut _CMSG_SIGNED_ENCODE_INFO; -pub type CMSG_RECIPIENT_ENCODE_INFO = _CMSG_RECIPIENT_ENCODE_INFO; -pub type PCMSG_RECIPIENT_ENCODE_INFO = *mut _CMSG_RECIPIENT_ENCODE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_ENVELOPED_ENCODE_INFO { - pub cbSize: DWORD, - pub hCryptProv: HCRYPTPROV_LEGACY, - pub ContentEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub pvEncryptionAuxInfo: *mut ::std::os::raw::c_void, - pub cRecipients: DWORD, - pub rgpRecipients: *mut PCERT_INFO, -} -pub type CMSG_ENVELOPED_ENCODE_INFO = _CMSG_ENVELOPED_ENCODE_INFO; -pub type PCMSG_ENVELOPED_ENCODE_INFO = *mut _CMSG_ENVELOPED_ENCODE_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO { - pub cbSize: DWORD, - pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub pvKeyEncryptionAuxInfo: *mut ::std::os::raw::c_void, - pub hCryptProv: HCRYPTPROV_LEGACY, - pub RecipientPublicKey: CRYPT_BIT_BLOB, - pub RecipientId: CERT_ID, -} -pub type CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO = _CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO; -pub type PCMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO = *mut _CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO { - pub cbSize: DWORD, - pub RecipientPublicKey: CRYPT_BIT_BLOB, - pub RecipientId: CERT_ID, - pub Date: FILETIME, - pub pOtherAttr: PCRYPT_ATTRIBUTE_TYPE_VALUE, -} -pub type CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO = _CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO; -pub type PCMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO = *mut _CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO { - pub cbSize: DWORD, - pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub pvKeyEncryptionAuxInfo: *mut ::std::os::raw::c_void, - pub KeyWrapAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub pvKeyWrapAuxInfo: *mut ::std::os::raw::c_void, - pub hCryptProv: HCRYPTPROV_LEGACY, - pub dwKeySpec: DWORD, - pub dwKeyChoice: DWORD, - pub __bindgen_anon_1: _CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO__bindgen_ty_1, - pub UserKeyingMaterial: CRYPT_DATA_BLOB, - pub cRecipientEncryptedKeys: DWORD, - pub rgpRecipientEncryptedKeys: *mut PCMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO__bindgen_ty_1 { - pub pEphemeralAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, - pub pSenderId: PCERT_ID, -} -pub type CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO = _CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO; -pub type PCMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO = *mut _CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO { - pub cbSize: DWORD, - pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub pvKeyEncryptionAuxInfo: *mut ::std::os::raw::c_void, - pub hCryptProv: HCRYPTPROV, - pub dwKeyChoice: DWORD, - pub __bindgen_anon_1: _CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO__bindgen_ty_1, - pub KeyId: CRYPT_DATA_BLOB, - pub Date: FILETIME, - pub pOtherAttr: PCRYPT_ATTRIBUTE_TYPE_VALUE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO__bindgen_ty_1 { - pub hKeyEncryptionKey: HCRYPTKEY, - pub pvKeyEncryptionKey: *mut ::std::os::raw::c_void, -} -pub type CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO = _CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO; -pub type PCMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO = *mut _CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_RECIPIENT_ENCODE_INFO { - pub dwRecipientChoice: DWORD, - pub __bindgen_anon_1: _CMSG_RECIPIENT_ENCODE_INFO__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CMSG_RECIPIENT_ENCODE_INFO__bindgen_ty_1 { - pub pKeyTrans: PCMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO, - pub pKeyAgree: PCMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO, - pub pMailList: PCMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_RC2_AUX_INFO { - pub cbSize: DWORD, - pub dwBitLen: DWORD, -} -pub type CMSG_RC2_AUX_INFO = _CMSG_RC2_AUX_INFO; -pub type PCMSG_RC2_AUX_INFO = *mut _CMSG_RC2_AUX_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_SP3_COMPATIBLE_AUX_INFO { - pub cbSize: DWORD, - pub dwFlags: DWORD, -} -pub type CMSG_SP3_COMPATIBLE_AUX_INFO = _CMSG_SP3_COMPATIBLE_AUX_INFO; -pub type PCMSG_SP3_COMPATIBLE_AUX_INFO = *mut _CMSG_SP3_COMPATIBLE_AUX_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_RC4_AUX_INFO { - pub cbSize: DWORD, - pub dwBitLen: DWORD, -} -pub type CMSG_RC4_AUX_INFO = _CMSG_RC4_AUX_INFO; -pub type PCMSG_RC4_AUX_INFO = *mut _CMSG_RC4_AUX_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO { - pub cbSize: DWORD, - pub SignedInfo: CMSG_SIGNED_ENCODE_INFO, - pub EnvelopedInfo: CMSG_ENVELOPED_ENCODE_INFO, -} -pub type CMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO = _CMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO; -pub type PCMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO = *mut _CMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_HASHED_ENCODE_INFO { - pub cbSize: DWORD, - pub hCryptProv: HCRYPTPROV_LEGACY, - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub pvHashAuxInfo: *mut ::std::os::raw::c_void, -} -pub type CMSG_HASHED_ENCODE_INFO = _CMSG_HASHED_ENCODE_INFO; -pub type PCMSG_HASHED_ENCODE_INFO = *mut _CMSG_HASHED_ENCODE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_ENCRYPTED_ENCODE_INFO { - pub cbSize: DWORD, - pub ContentEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub pvEncryptionAuxInfo: *mut ::std::os::raw::c_void, -} -pub type CMSG_ENCRYPTED_ENCODE_INFO = _CMSG_ENCRYPTED_ENCODE_INFO; -pub type PCMSG_ENCRYPTED_ENCODE_INFO = *mut _CMSG_ENCRYPTED_ENCODE_INFO; -pub type PFN_CMSG_STREAM_OUTPUT = ::std::option::Option< - unsafe extern "C" fn( - pvArg: *const ::std::os::raw::c_void, - pbData: *mut BYTE, - cbData: DWORD, - fFinal: BOOL, - ) -> BOOL, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_STREAM_INFO { - pub cbContent: DWORD, - pub pfnStreamOutput: PFN_CMSG_STREAM_OUTPUT, - pub pvArg: *mut ::std::os::raw::c_void, -} -pub type CMSG_STREAM_INFO = _CMSG_STREAM_INFO; -pub type PCMSG_STREAM_INFO = *mut _CMSG_STREAM_INFO; -extern "C" { - pub fn CryptMsgOpenToEncode( - dwMsgEncodingType: DWORD, - dwFlags: DWORD, - dwMsgType: DWORD, - pvMsgEncodeInfo: *const ::std::os::raw::c_void, - pszInnerContentObjID: LPSTR, - pStreamInfo: PCMSG_STREAM_INFO, - ) -> HCRYPTMSG; -} -extern "C" { - pub fn CryptMsgCalculateEncodedLength( - dwMsgEncodingType: DWORD, - dwFlags: DWORD, - dwMsgType: DWORD, - pvMsgEncodeInfo: *const ::std::os::raw::c_void, - pszInnerContentObjID: LPSTR, - cbData: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn CryptMsgOpenToDecode( - dwMsgEncodingType: DWORD, - dwFlags: DWORD, - dwMsgType: DWORD, - hCryptProv: HCRYPTPROV_LEGACY, - pRecipientInfo: PCERT_INFO, - pStreamInfo: PCMSG_STREAM_INFO, - ) -> HCRYPTMSG; -} -extern "C" { - pub fn CryptMsgDuplicate(hCryptMsg: HCRYPTMSG) -> HCRYPTMSG; -} -extern "C" { - pub fn CryptMsgClose(hCryptMsg: HCRYPTMSG) -> BOOL; -} -extern "C" { - pub fn CryptMsgUpdate( - hCryptMsg: HCRYPTMSG, - pbData: *const BYTE, - cbData: DWORD, - fFinal: BOOL, - ) -> BOOL; -} -extern "C" { - pub fn CryptMsgGetParam( - hCryptMsg: HCRYPTMSG, - dwParamType: DWORD, - dwIndex: DWORD, - pvData: *mut ::std::os::raw::c_void, - pcbData: *mut DWORD, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_SIGNER_INFO { - pub dwVersion: DWORD, - pub Issuer: CERT_NAME_BLOB, - pub SerialNumber: CRYPT_INTEGER_BLOB, - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub HashEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub EncryptedHash: CRYPT_DATA_BLOB, - pub AuthAttrs: CRYPT_ATTRIBUTES, - pub UnauthAttrs: CRYPT_ATTRIBUTES, -} -pub type CMSG_SIGNER_INFO = _CMSG_SIGNER_INFO; -pub type PCMSG_SIGNER_INFO = *mut _CMSG_SIGNER_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_CMS_SIGNER_INFO { - pub dwVersion: DWORD, - pub SignerId: CERT_ID, - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub HashEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub EncryptedHash: CRYPT_DATA_BLOB, - pub AuthAttrs: CRYPT_ATTRIBUTES, - pub UnauthAttrs: CRYPT_ATTRIBUTES, -} -pub type CMSG_CMS_SIGNER_INFO = _CMSG_CMS_SIGNER_INFO; -pub type PCMSG_CMS_SIGNER_INFO = *mut _CMSG_CMS_SIGNER_INFO; -pub type CMSG_ATTR = CRYPT_ATTRIBUTES; -pub type PCMSG_ATTR = *mut CRYPT_ATTRIBUTES; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_KEY_TRANS_RECIPIENT_INFO { - pub dwVersion: DWORD, - pub RecipientId: CERT_ID, - pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub EncryptedKey: CRYPT_DATA_BLOB, -} -pub type CMSG_KEY_TRANS_RECIPIENT_INFO = _CMSG_KEY_TRANS_RECIPIENT_INFO; -pub type PCMSG_KEY_TRANS_RECIPIENT_INFO = *mut _CMSG_KEY_TRANS_RECIPIENT_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_RECIPIENT_ENCRYPTED_KEY_INFO { - pub RecipientId: CERT_ID, - pub EncryptedKey: CRYPT_DATA_BLOB, - pub Date: FILETIME, - pub pOtherAttr: PCRYPT_ATTRIBUTE_TYPE_VALUE, -} -pub type CMSG_RECIPIENT_ENCRYPTED_KEY_INFO = _CMSG_RECIPIENT_ENCRYPTED_KEY_INFO; -pub type PCMSG_RECIPIENT_ENCRYPTED_KEY_INFO = *mut _CMSG_RECIPIENT_ENCRYPTED_KEY_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_KEY_AGREE_RECIPIENT_INFO { - pub dwVersion: DWORD, - pub dwOriginatorChoice: DWORD, - pub __bindgen_anon_1: _CMSG_KEY_AGREE_RECIPIENT_INFO__bindgen_ty_1, - pub UserKeyingMaterial: CRYPT_DATA_BLOB, - pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub cRecipientEncryptedKeys: DWORD, - pub rgpRecipientEncryptedKeys: *mut PCMSG_RECIPIENT_ENCRYPTED_KEY_INFO, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CMSG_KEY_AGREE_RECIPIENT_INFO__bindgen_ty_1 { - pub OriginatorCertId: CERT_ID, - pub OriginatorPublicKeyInfo: CERT_PUBLIC_KEY_INFO, -} -pub type CMSG_KEY_AGREE_RECIPIENT_INFO = _CMSG_KEY_AGREE_RECIPIENT_INFO; -pub type PCMSG_KEY_AGREE_RECIPIENT_INFO = *mut _CMSG_KEY_AGREE_RECIPIENT_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_MAIL_LIST_RECIPIENT_INFO { - pub dwVersion: DWORD, - pub KeyId: CRYPT_DATA_BLOB, - pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub EncryptedKey: CRYPT_DATA_BLOB, - pub Date: FILETIME, - pub pOtherAttr: PCRYPT_ATTRIBUTE_TYPE_VALUE, -} -pub type CMSG_MAIL_LIST_RECIPIENT_INFO = _CMSG_MAIL_LIST_RECIPIENT_INFO; -pub type PCMSG_MAIL_LIST_RECIPIENT_INFO = *mut _CMSG_MAIL_LIST_RECIPIENT_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_CMS_RECIPIENT_INFO { - pub dwRecipientChoice: DWORD, - pub __bindgen_anon_1: _CMSG_CMS_RECIPIENT_INFO__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CMSG_CMS_RECIPIENT_INFO__bindgen_ty_1 { - pub pKeyTrans: PCMSG_KEY_TRANS_RECIPIENT_INFO, - pub pKeyAgree: PCMSG_KEY_AGREE_RECIPIENT_INFO, - pub pMailList: PCMSG_MAIL_LIST_RECIPIENT_INFO, -} -pub type CMSG_CMS_RECIPIENT_INFO = _CMSG_CMS_RECIPIENT_INFO; -pub type PCMSG_CMS_RECIPIENT_INFO = *mut _CMSG_CMS_RECIPIENT_INFO; -extern "C" { - pub fn CryptMsgControl( - hCryptMsg: HCRYPTMSG, - dwFlags: DWORD, - dwCtrlType: DWORD, - pvCtrlPara: *const ::std::os::raw::c_void, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA { - pub cbSize: DWORD, - pub hCryptProv: HCRYPTPROV_LEGACY, - pub dwSignerIndex: DWORD, - pub dwSignerType: DWORD, - pub pvSigner: *mut ::std::os::raw::c_void, -} -pub type CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA = _CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA; -pub type PCMSG_CTRL_VERIFY_SIGNATURE_EX_PARA = *mut _CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_CTRL_DECRYPT_PARA { - pub cbSize: DWORD, - pub __bindgen_anon_1: _CMSG_CTRL_DECRYPT_PARA__bindgen_ty_1, - pub dwKeySpec: DWORD, - pub dwRecipientIndex: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CMSG_CTRL_DECRYPT_PARA__bindgen_ty_1 { - pub hCryptProv: HCRYPTPROV, - pub hNCryptKey: NCRYPT_KEY_HANDLE, -} -pub type CMSG_CTRL_DECRYPT_PARA = _CMSG_CTRL_DECRYPT_PARA; -pub type PCMSG_CTRL_DECRYPT_PARA = *mut _CMSG_CTRL_DECRYPT_PARA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_CTRL_KEY_TRANS_DECRYPT_PARA { - pub cbSize: DWORD, - pub __bindgen_anon_1: _CMSG_CTRL_KEY_TRANS_DECRYPT_PARA__bindgen_ty_1, - pub dwKeySpec: DWORD, - pub pKeyTrans: PCMSG_KEY_TRANS_RECIPIENT_INFO, - pub dwRecipientIndex: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CMSG_CTRL_KEY_TRANS_DECRYPT_PARA__bindgen_ty_1 { - pub hCryptProv: HCRYPTPROV, - pub hNCryptKey: NCRYPT_KEY_HANDLE, -} -pub type CMSG_CTRL_KEY_TRANS_DECRYPT_PARA = _CMSG_CTRL_KEY_TRANS_DECRYPT_PARA; -pub type PCMSG_CTRL_KEY_TRANS_DECRYPT_PARA = *mut _CMSG_CTRL_KEY_TRANS_DECRYPT_PARA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_CTRL_KEY_AGREE_DECRYPT_PARA { - pub cbSize: DWORD, - pub __bindgen_anon_1: _CMSG_CTRL_KEY_AGREE_DECRYPT_PARA__bindgen_ty_1, - pub dwKeySpec: DWORD, - pub pKeyAgree: PCMSG_KEY_AGREE_RECIPIENT_INFO, - pub dwRecipientIndex: DWORD, - pub dwRecipientEncryptedKeyIndex: DWORD, - pub OriginatorPublicKey: CRYPT_BIT_BLOB, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CMSG_CTRL_KEY_AGREE_DECRYPT_PARA__bindgen_ty_1 { - pub hCryptProv: HCRYPTPROV, - pub hNCryptKey: NCRYPT_KEY_HANDLE, -} -pub type CMSG_CTRL_KEY_AGREE_DECRYPT_PARA = _CMSG_CTRL_KEY_AGREE_DECRYPT_PARA; -pub type PCMSG_CTRL_KEY_AGREE_DECRYPT_PARA = *mut _CMSG_CTRL_KEY_AGREE_DECRYPT_PARA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_CTRL_MAIL_LIST_DECRYPT_PARA { - pub cbSize: DWORD, - pub hCryptProv: HCRYPTPROV, - pub pMailList: PCMSG_MAIL_LIST_RECIPIENT_INFO, - pub dwRecipientIndex: DWORD, - pub dwKeyChoice: DWORD, - pub __bindgen_anon_1: _CMSG_CTRL_MAIL_LIST_DECRYPT_PARA__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CMSG_CTRL_MAIL_LIST_DECRYPT_PARA__bindgen_ty_1 { - pub hKeyEncryptionKey: HCRYPTKEY, - pub pvKeyEncryptionKey: *mut ::std::os::raw::c_void, -} -pub type CMSG_CTRL_MAIL_LIST_DECRYPT_PARA = _CMSG_CTRL_MAIL_LIST_DECRYPT_PARA; -pub type PCMSG_CTRL_MAIL_LIST_DECRYPT_PARA = *mut _CMSG_CTRL_MAIL_LIST_DECRYPT_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA { - pub cbSize: DWORD, - pub dwSignerIndex: DWORD, - pub blob: CRYPT_DATA_BLOB, -} -pub type CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA = _CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA; -pub type PCMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA = *mut _CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA { - pub cbSize: DWORD, - pub dwSignerIndex: DWORD, - pub dwUnauthAttrIndex: DWORD, -} -pub type CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA = _CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA; -pub type PCMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA = *mut _CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA; -extern "C" { - pub fn CryptMsgVerifyCountersignatureEncoded( - hCryptProv: HCRYPTPROV_LEGACY, - dwEncodingType: DWORD, - pbSignerInfo: PBYTE, - cbSignerInfo: DWORD, - pbSignerInfoCountersignature: PBYTE, - cbSignerInfoCountersignature: DWORD, - pciCountersigner: PCERT_INFO, - ) -> BOOL; -} -extern "C" { - pub fn CryptMsgVerifyCountersignatureEncodedEx( - hCryptProv: HCRYPTPROV_LEGACY, - dwEncodingType: DWORD, - pbSignerInfo: PBYTE, - cbSignerInfo: DWORD, - pbSignerInfoCountersignature: PBYTE, - cbSignerInfoCountersignature: DWORD, - dwSignerType: DWORD, - pvSigner: *mut ::std::os::raw::c_void, - dwFlags: DWORD, - pvExtra: *mut ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn CryptMsgCountersign( - hCryptMsg: HCRYPTMSG, - dwIndex: DWORD, - cCountersigners: DWORD, - rgCountersigners: PCMSG_SIGNER_ENCODE_INFO, - ) -> BOOL; -} -extern "C" { - pub fn CryptMsgCountersignEncoded( - dwEncodingType: DWORD, - pbSignerInfo: PBYTE, - cbSignerInfo: DWORD, - cCountersigners: DWORD, - rgCountersigners: PCMSG_SIGNER_ENCODE_INFO, - pbCountersignature: PBYTE, - pcbCountersignature: PDWORD, - ) -> BOOL; -} -pub type PFN_CMSG_ALLOC = - ::std::option::Option *mut ::std::os::raw::c_void>; -pub type PFN_CMSG_FREE = - ::std::option::Option; -pub type PFN_CMSG_GEN_ENCRYPT_KEY = ::std::option::Option< - unsafe extern "C" fn( - phCryptProv: *mut HCRYPTPROV, - paiEncrypt: PCRYPT_ALGORITHM_IDENTIFIER, - pvEncryptAuxInfo: PVOID, - pPublicKeyInfo: PCERT_PUBLIC_KEY_INFO, - pfnAlloc: PFN_CMSG_ALLOC, - phEncryptKey: *mut HCRYPTKEY, - ppbEncryptParameters: *mut PBYTE, - pcbEncryptParameters: PDWORD, - ) -> BOOL, ->; -pub type PFN_CMSG_EXPORT_ENCRYPT_KEY = ::std::option::Option< - unsafe extern "C" fn( - hCryptProv: HCRYPTPROV, - hEncryptKey: HCRYPTKEY, - pPublicKeyInfo: PCERT_PUBLIC_KEY_INFO, - pbData: PBYTE, - pcbData: PDWORD, - ) -> BOOL, ->; -pub type PFN_CMSG_IMPORT_ENCRYPT_KEY = ::std::option::Option< - unsafe extern "C" fn( - hCryptProv: HCRYPTPROV, - dwKeySpec: DWORD, - paiEncrypt: PCRYPT_ALGORITHM_IDENTIFIER, - paiPubKey: PCRYPT_ALGORITHM_IDENTIFIER, - pbEncodedKey: PBYTE, - cbEncodedKey: DWORD, - phEncryptKey: *mut HCRYPTKEY, - ) -> BOOL, ->; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_CONTENT_ENCRYPT_INFO { - pub cbSize: DWORD, - pub hCryptProv: HCRYPTPROV_LEGACY, - pub ContentEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub pvEncryptionAuxInfo: *mut ::std::os::raw::c_void, - pub cRecipients: DWORD, - pub rgCmsRecipients: PCMSG_RECIPIENT_ENCODE_INFO, - pub pfnAlloc: PFN_CMSG_ALLOC, - pub pfnFree: PFN_CMSG_FREE, - pub dwEncryptFlags: DWORD, - pub __bindgen_anon_1: _CMSG_CONTENT_ENCRYPT_INFO__bindgen_ty_1, - pub dwFlags: DWORD, - pub fCNG: BOOL, - pub pbCNGContentEncryptKeyObject: *mut BYTE, - pub pbContentEncryptKey: *mut BYTE, - pub cbContentEncryptKey: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CMSG_CONTENT_ENCRYPT_INFO__bindgen_ty_1 { - pub hContentEncryptKey: HCRYPTKEY, - pub hCNGContentEncryptKey: BCRYPT_KEY_HANDLE, -} -pub type CMSG_CONTENT_ENCRYPT_INFO = _CMSG_CONTENT_ENCRYPT_INFO; -pub type PCMSG_CONTENT_ENCRYPT_INFO = *mut _CMSG_CONTENT_ENCRYPT_INFO; -pub type PFN_CMSG_GEN_CONTENT_ENCRYPT_KEY = ::std::option::Option< - unsafe extern "C" fn( - pContentEncryptInfo: PCMSG_CONTENT_ENCRYPT_INFO, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ) -> BOOL, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_KEY_TRANS_ENCRYPT_INFO { - pub cbSize: DWORD, - pub dwRecipientIndex: DWORD, - pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub EncryptedKey: CRYPT_DATA_BLOB, - pub dwFlags: DWORD, -} -pub type CMSG_KEY_TRANS_ENCRYPT_INFO = _CMSG_KEY_TRANS_ENCRYPT_INFO; -pub type PCMSG_KEY_TRANS_ENCRYPT_INFO = *mut _CMSG_KEY_TRANS_ENCRYPT_INFO; -pub type PFN_CMSG_EXPORT_KEY_TRANS = ::std::option::Option< - unsafe extern "C" fn( - pContentEncryptInfo: PCMSG_CONTENT_ENCRYPT_INFO, - pKeyTransEncodeInfo: PCMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO, - pKeyTransEncryptInfo: PCMSG_KEY_TRANS_ENCRYPT_INFO, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ) -> BOOL, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_KEY_AGREE_KEY_ENCRYPT_INFO { - pub cbSize: DWORD, - pub EncryptedKey: CRYPT_DATA_BLOB, -} -pub type CMSG_KEY_AGREE_KEY_ENCRYPT_INFO = _CMSG_KEY_AGREE_KEY_ENCRYPT_INFO; -pub type PCMSG_KEY_AGREE_KEY_ENCRYPT_INFO = *mut _CMSG_KEY_AGREE_KEY_ENCRYPT_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CMSG_KEY_AGREE_ENCRYPT_INFO { - pub cbSize: DWORD, - pub dwRecipientIndex: DWORD, - pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub UserKeyingMaterial: CRYPT_DATA_BLOB, - pub dwOriginatorChoice: DWORD, - pub __bindgen_anon_1: _CMSG_KEY_AGREE_ENCRYPT_INFO__bindgen_ty_1, - pub cKeyAgreeKeyEncryptInfo: DWORD, - pub rgpKeyAgreeKeyEncryptInfo: *mut PCMSG_KEY_AGREE_KEY_ENCRYPT_INFO, - pub dwFlags: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CMSG_KEY_AGREE_ENCRYPT_INFO__bindgen_ty_1 { - pub OriginatorCertId: CERT_ID, - pub OriginatorPublicKeyInfo: CERT_PUBLIC_KEY_INFO, -} -pub type CMSG_KEY_AGREE_ENCRYPT_INFO = _CMSG_KEY_AGREE_ENCRYPT_INFO; -pub type PCMSG_KEY_AGREE_ENCRYPT_INFO = *mut _CMSG_KEY_AGREE_ENCRYPT_INFO; -pub type PFN_CMSG_EXPORT_KEY_AGREE = ::std::option::Option< - unsafe extern "C" fn( - pContentEncryptInfo: PCMSG_CONTENT_ENCRYPT_INFO, - pKeyAgreeEncodeInfo: PCMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO, - pKeyAgreeEncryptInfo: PCMSG_KEY_AGREE_ENCRYPT_INFO, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ) -> BOOL, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_MAIL_LIST_ENCRYPT_INFO { - pub cbSize: DWORD, - pub dwRecipientIndex: DWORD, - pub KeyEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub EncryptedKey: CRYPT_DATA_BLOB, - pub dwFlags: DWORD, -} -pub type CMSG_MAIL_LIST_ENCRYPT_INFO = _CMSG_MAIL_LIST_ENCRYPT_INFO; -pub type PCMSG_MAIL_LIST_ENCRYPT_INFO = *mut _CMSG_MAIL_LIST_ENCRYPT_INFO; -pub type PFN_CMSG_EXPORT_MAIL_LIST = ::std::option::Option< - unsafe extern "C" fn( - pContentEncryptInfo: PCMSG_CONTENT_ENCRYPT_INFO, - pMailListEncodeInfo: PCMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO, - pMailListEncryptInfo: PCMSG_MAIL_LIST_ENCRYPT_INFO, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ) -> BOOL, ->; -pub type PFN_CMSG_IMPORT_KEY_TRANS = ::std::option::Option< - unsafe extern "C" fn( - pContentEncryptionAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, - pKeyTransDecryptPara: PCMSG_CTRL_KEY_TRANS_DECRYPT_PARA, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - phContentEncryptKey: *mut HCRYPTKEY, - ) -> BOOL, ->; -pub type PFN_CMSG_IMPORT_KEY_AGREE = ::std::option::Option< - unsafe extern "C" fn( - pContentEncryptionAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, - pKeyAgreeDecryptPara: PCMSG_CTRL_KEY_AGREE_DECRYPT_PARA, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - phContentEncryptKey: *mut HCRYPTKEY, - ) -> BOOL, ->; -pub type PFN_CMSG_IMPORT_MAIL_LIST = ::std::option::Option< - unsafe extern "C" fn( - pContentEncryptionAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, - pMailListDecryptPara: PCMSG_CTRL_MAIL_LIST_DECRYPT_PARA, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - phContentEncryptKey: *mut HCRYPTKEY, - ) -> BOOL, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CMSG_CNG_CONTENT_DECRYPT_INFO { - pub cbSize: DWORD, - pub ContentEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub pfnAlloc: PFN_CMSG_ALLOC, - pub pfnFree: PFN_CMSG_FREE, - pub hNCryptKey: NCRYPT_KEY_HANDLE, - pub pbContentEncryptKey: *mut BYTE, - pub cbContentEncryptKey: DWORD, - pub hCNGContentEncryptKey: BCRYPT_KEY_HANDLE, - pub pbCNGContentEncryptKeyObject: *mut BYTE, -} -pub type CMSG_CNG_CONTENT_DECRYPT_INFO = _CMSG_CNG_CONTENT_DECRYPT_INFO; -pub type PCMSG_CNG_CONTENT_DECRYPT_INFO = *mut _CMSG_CNG_CONTENT_DECRYPT_INFO; -pub type PFN_CMSG_CNG_IMPORT_KEY_TRANS = ::std::option::Option< - unsafe extern "C" fn( - pCNGContentDecryptInfo: PCMSG_CNG_CONTENT_DECRYPT_INFO, - pKeyTransDecryptPara: PCMSG_CTRL_KEY_TRANS_DECRYPT_PARA, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ) -> BOOL, ->; -pub type PFN_CMSG_CNG_IMPORT_KEY_AGREE = ::std::option::Option< - unsafe extern "C" fn( - pCNGContentDecryptInfo: PCMSG_CNG_CONTENT_DECRYPT_INFO, - pKeyAgreeDecryptPara: PCMSG_CTRL_KEY_AGREE_DECRYPT_PARA, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ) -> BOOL, ->; -pub type PFN_CMSG_CNG_IMPORT_CONTENT_ENCRYPT_KEY = ::std::option::Option< - unsafe extern "C" fn( - pCNGContentDecryptInfo: PCMSG_CNG_CONTENT_DECRYPT_INFO, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ) -> BOOL, ->; -pub type HCERTSTORE = *mut ::std::os::raw::c_void; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_CONTEXT { - pub dwCertEncodingType: DWORD, - pub pbCertEncoded: *mut BYTE, - pub cbCertEncoded: DWORD, - pub pCertInfo: PCERT_INFO, - pub hCertStore: HCERTSTORE, -} -pub type CERT_CONTEXT = _CERT_CONTEXT; -pub type PCERT_CONTEXT = *mut _CERT_CONTEXT; -pub type PCCERT_CONTEXT = *const CERT_CONTEXT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRL_CONTEXT { - pub dwCertEncodingType: DWORD, - pub pbCrlEncoded: *mut BYTE, - pub cbCrlEncoded: DWORD, - pub pCrlInfo: PCRL_INFO, - pub hCertStore: HCERTSTORE, -} -pub type CRL_CONTEXT = _CRL_CONTEXT; -pub type PCRL_CONTEXT = *mut _CRL_CONTEXT; -pub type PCCRL_CONTEXT = *const CRL_CONTEXT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CTL_CONTEXT { - pub dwMsgAndCertEncodingType: DWORD, - pub pbCtlEncoded: *mut BYTE, - pub cbCtlEncoded: DWORD, - pub pCtlInfo: PCTL_INFO, - pub hCertStore: HCERTSTORE, - pub hCryptMsg: HCRYPTMSG, - pub pbCtlContent: *mut BYTE, - pub cbCtlContent: DWORD, -} -pub type CTL_CONTEXT = _CTL_CONTEXT; -pub type PCTL_CONTEXT = *mut _CTL_CONTEXT; -pub type PCCTL_CONTEXT = *const CTL_CONTEXT; -pub const CertKeyType_KeyTypeOther: CertKeyType = 0; -pub const CertKeyType_KeyTypeVirtualSmartCard: CertKeyType = 1; -pub const CertKeyType_KeyTypePhysicalSmartCard: CertKeyType = 2; -pub const CertKeyType_KeyTypePassport: CertKeyType = 3; -pub const CertKeyType_KeyTypePassportRemote: CertKeyType = 4; -pub const CertKeyType_KeyTypePassportSmartCard: CertKeyType = 5; -pub const CertKeyType_KeyTypeHardware: CertKeyType = 6; -pub const CertKeyType_KeyTypeSoftware: CertKeyType = 7; -pub const CertKeyType_KeyTypeSelfSigned: CertKeyType = 8; -pub type CertKeyType = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_KEY_PROV_PARAM { - pub dwParam: DWORD, - pub pbData: *mut BYTE, - pub cbData: DWORD, - pub dwFlags: DWORD, -} -pub type CRYPT_KEY_PROV_PARAM = _CRYPT_KEY_PROV_PARAM; -pub type PCRYPT_KEY_PROV_PARAM = *mut _CRYPT_KEY_PROV_PARAM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_KEY_PROV_INFO { - pub pwszContainerName: LPWSTR, - pub pwszProvName: LPWSTR, - pub dwProvType: DWORD, - pub dwFlags: DWORD, - pub cProvParam: DWORD, - pub rgProvParam: PCRYPT_KEY_PROV_PARAM, - pub dwKeySpec: DWORD, -} -pub type CRYPT_KEY_PROV_INFO = _CRYPT_KEY_PROV_INFO; -pub type PCRYPT_KEY_PROV_INFO = *mut _CRYPT_KEY_PROV_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CERT_KEY_CONTEXT { - pub cbSize: DWORD, - pub __bindgen_anon_1: _CERT_KEY_CONTEXT__bindgen_ty_1, - pub dwKeySpec: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CERT_KEY_CONTEXT__bindgen_ty_1 { - pub hCryptProv: HCRYPTPROV, - pub hNCryptKey: NCRYPT_KEY_HANDLE, -} -pub type CERT_KEY_CONTEXT = _CERT_KEY_CONTEXT; -pub type PCERT_KEY_CONTEXT = *mut _CERT_KEY_CONTEXT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ROOT_INFO_LUID { - pub LowPart: DWORD, - pub HighPart: LONG, -} -pub type ROOT_INFO_LUID = _ROOT_INFO_LUID; -pub type PROOT_INFO_LUID = *mut _ROOT_INFO_LUID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_SMART_CARD_ROOT_INFO { - pub rgbCardID: [BYTE; 16usize], - pub luid: ROOT_INFO_LUID, -} -pub type CRYPT_SMART_CARD_ROOT_INFO = _CRYPT_SMART_CARD_ROOT_INFO; -pub type PCRYPT_SMART_CARD_ROOT_INFO = *mut _CRYPT_SMART_CARD_ROOT_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CERT_SYSTEM_STORE_RELOCATE_PARA { - pub __bindgen_anon_1: _CERT_SYSTEM_STORE_RELOCATE_PARA__bindgen_ty_1, - pub __bindgen_anon_2: _CERT_SYSTEM_STORE_RELOCATE_PARA__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CERT_SYSTEM_STORE_RELOCATE_PARA__bindgen_ty_1 { - pub hKeyBase: HKEY, - pub pvBase: *mut ::std::os::raw::c_void, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CERT_SYSTEM_STORE_RELOCATE_PARA__bindgen_ty_2 { - pub pvSystemStore: *mut ::std::os::raw::c_void, - pub pszSystemStore: LPCSTR, - pub pwszSystemStore: LPCWSTR, -} -pub type CERT_SYSTEM_STORE_RELOCATE_PARA = _CERT_SYSTEM_STORE_RELOCATE_PARA; -pub type PCERT_SYSTEM_STORE_RELOCATE_PARA = *mut _CERT_SYSTEM_STORE_RELOCATE_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_REGISTRY_STORE_CLIENT_GPT_PARA { - pub hKeyBase: HKEY, - pub pwszRegPath: LPWSTR, -} -pub type CERT_REGISTRY_STORE_CLIENT_GPT_PARA = _CERT_REGISTRY_STORE_CLIENT_GPT_PARA; -pub type PCERT_REGISTRY_STORE_CLIENT_GPT_PARA = *mut _CERT_REGISTRY_STORE_CLIENT_GPT_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_REGISTRY_STORE_ROAMING_PARA { - pub hKey: HKEY, - pub pwszStoreDirectory: LPWSTR, -} -pub type CERT_REGISTRY_STORE_ROAMING_PARA = _CERT_REGISTRY_STORE_ROAMING_PARA; -pub type PCERT_REGISTRY_STORE_ROAMING_PARA = *mut _CERT_REGISTRY_STORE_ROAMING_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_LDAP_STORE_OPENED_PARA { - pub pvLdapSessionHandle: *mut ::std::os::raw::c_void, - pub pwszLdapUrl: LPCWSTR, -} -pub type CERT_LDAP_STORE_OPENED_PARA = _CERT_LDAP_STORE_OPENED_PARA; -pub type PCERT_LDAP_STORE_OPENED_PARA = *mut _CERT_LDAP_STORE_OPENED_PARA; -extern "C" { - pub fn CertOpenStore( - lpszStoreProvider: LPCSTR, - dwEncodingType: DWORD, - hCryptProv: HCRYPTPROV_LEGACY, - dwFlags: DWORD, - pvPara: *const ::std::os::raw::c_void, - ) -> HCERTSTORE; -} -pub type HCERTSTOREPROV = *mut ::std::os::raw::c_void; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_STORE_PROV_INFO { - pub cbSize: DWORD, - pub cStoreProvFunc: DWORD, - pub rgpvStoreProvFunc: *mut *mut ::std::os::raw::c_void, - pub hStoreProv: HCERTSTOREPROV, - pub dwStoreProvFlags: DWORD, - pub hStoreProvFuncAddr2: HCRYPTOIDFUNCADDR, -} -pub type CERT_STORE_PROV_INFO = _CERT_STORE_PROV_INFO; -pub type PCERT_STORE_PROV_INFO = *mut _CERT_STORE_PROV_INFO; -pub type PFN_CERT_DLL_OPEN_STORE_PROV_FUNC = ::std::option::Option< - unsafe extern "C" fn( - lpszStoreProvider: LPCSTR, - dwEncodingType: DWORD, - hCryptProv: HCRYPTPROV_LEGACY, - dwFlags: DWORD, - pvPara: *const ::std::os::raw::c_void, - hCertStore: HCERTSTORE, - pStoreProvInfo: PCERT_STORE_PROV_INFO, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_CLOSE = - ::std::option::Option; -pub type PFN_CERT_STORE_PROV_READ_CERT = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pStoreCertContext: PCCERT_CONTEXT, - dwFlags: DWORD, - ppProvCertContext: *mut PCCERT_CONTEXT, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_WRITE_CERT = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCertContext: PCCERT_CONTEXT, - dwFlags: DWORD, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_DELETE_CERT = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCertContext: PCCERT_CONTEXT, - dwFlags: DWORD, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_SET_CERT_PROPERTY = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCertContext: PCCERT_CONTEXT, - dwPropId: DWORD, - dwFlags: DWORD, - pvData: *const ::std::os::raw::c_void, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_READ_CRL = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pStoreCrlContext: PCCRL_CONTEXT, - dwFlags: DWORD, - ppProvCrlContext: *mut PCCRL_CONTEXT, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_WRITE_CRL = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCrlContext: PCCRL_CONTEXT, - dwFlags: DWORD, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_DELETE_CRL = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCrlContext: PCCRL_CONTEXT, - dwFlags: DWORD, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_SET_CRL_PROPERTY = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCrlContext: PCCRL_CONTEXT, - dwPropId: DWORD, - dwFlags: DWORD, - pvData: *const ::std::os::raw::c_void, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_READ_CTL = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pStoreCtlContext: PCCTL_CONTEXT, - dwFlags: DWORD, - ppProvCtlContext: *mut PCCTL_CONTEXT, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_WRITE_CTL = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCtlContext: PCCTL_CONTEXT, - dwFlags: DWORD, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_DELETE_CTL = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCtlContext: PCCTL_CONTEXT, - dwFlags: DWORD, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_SET_CTL_PROPERTY = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCtlContext: PCCTL_CONTEXT, - dwPropId: DWORD, - dwFlags: DWORD, - pvData: *const ::std::os::raw::c_void, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_CONTROL = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - dwFlags: DWORD, - dwCtrlType: DWORD, - pvCtrlPara: *const ::std::os::raw::c_void, - ) -> BOOL, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_STORE_PROV_FIND_INFO { - pub cbSize: DWORD, - pub dwMsgAndCertEncodingType: DWORD, - pub dwFindFlags: DWORD, - pub dwFindType: DWORD, - pub pvFindPara: *const ::std::os::raw::c_void, -} -pub type CERT_STORE_PROV_FIND_INFO = _CERT_STORE_PROV_FIND_INFO; -pub type PCERT_STORE_PROV_FIND_INFO = *mut _CERT_STORE_PROV_FIND_INFO; -pub type CCERT_STORE_PROV_FIND_INFO = CERT_STORE_PROV_FIND_INFO; -pub type PCCERT_STORE_PROV_FIND_INFO = *const CERT_STORE_PROV_FIND_INFO; -pub type PFN_CERT_STORE_PROV_FIND_CERT = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pFindInfo: PCCERT_STORE_PROV_FIND_INFO, - pPrevCertContext: PCCERT_CONTEXT, - dwFlags: DWORD, - ppvStoreProvFindInfo: *mut *mut ::std::os::raw::c_void, - ppProvCertContext: *mut PCCERT_CONTEXT, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_FREE_FIND_CERT = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCertContext: PCCERT_CONTEXT, - pvStoreProvFindInfo: *mut ::std::os::raw::c_void, - dwFlags: DWORD, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_GET_CERT_PROPERTY = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCertContext: PCCERT_CONTEXT, - dwPropId: DWORD, - dwFlags: DWORD, - pvData: *mut ::std::os::raw::c_void, - pcbData: *mut DWORD, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_FIND_CRL = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pFindInfo: PCCERT_STORE_PROV_FIND_INFO, - pPrevCrlContext: PCCRL_CONTEXT, - dwFlags: DWORD, - ppvStoreProvFindInfo: *mut *mut ::std::os::raw::c_void, - ppProvCrlContext: *mut PCCRL_CONTEXT, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_FREE_FIND_CRL = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCrlContext: PCCRL_CONTEXT, - pvStoreProvFindInfo: *mut ::std::os::raw::c_void, - dwFlags: DWORD, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_GET_CRL_PROPERTY = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCrlContext: PCCRL_CONTEXT, - dwPropId: DWORD, - dwFlags: DWORD, - pvData: *mut ::std::os::raw::c_void, - pcbData: *mut DWORD, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_FIND_CTL = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pFindInfo: PCCERT_STORE_PROV_FIND_INFO, - pPrevCtlContext: PCCTL_CONTEXT, - dwFlags: DWORD, - ppvStoreProvFindInfo: *mut *mut ::std::os::raw::c_void, - ppProvCtlContext: *mut PCCTL_CONTEXT, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_FREE_FIND_CTL = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCtlContext: PCCTL_CONTEXT, - pvStoreProvFindInfo: *mut ::std::os::raw::c_void, - dwFlags: DWORD, - ) -> BOOL, ->; -pub type PFN_CERT_STORE_PROV_GET_CTL_PROPERTY = ::std::option::Option< - unsafe extern "C" fn( - hStoreProv: HCERTSTOREPROV, - pCtlContext: PCCTL_CONTEXT, - dwPropId: DWORD, - dwFlags: DWORD, - pvData: *mut ::std::os::raw::c_void, - pcbData: *mut DWORD, - ) -> BOOL, ->; -extern "C" { - pub fn CertDuplicateStore(hCertStore: HCERTSTORE) -> HCERTSTORE; -} -extern "C" { - pub fn CertSaveStore( - hCertStore: HCERTSTORE, - dwEncodingType: DWORD, - dwSaveAs: DWORD, - dwSaveTo: DWORD, - pvSaveToPara: *mut ::std::os::raw::c_void, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertCloseStore(hCertStore: HCERTSTORE, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn CertGetSubjectCertificateFromStore( - hCertStore: HCERTSTORE, - dwCertEncodingType: DWORD, - pCertId: PCERT_INFO, - ) -> PCCERT_CONTEXT; -} -extern "C" { - pub fn CertEnumCertificatesInStore( - hCertStore: HCERTSTORE, - pPrevCertContext: PCCERT_CONTEXT, - ) -> PCCERT_CONTEXT; -} -extern "C" { - pub fn CertFindCertificateInStore( - hCertStore: HCERTSTORE, - dwCertEncodingType: DWORD, - dwFindFlags: DWORD, - dwFindType: DWORD, - pvFindPara: *const ::std::os::raw::c_void, - pPrevCertContext: PCCERT_CONTEXT, - ) -> PCCERT_CONTEXT; -} -extern "C" { - pub fn CertGetIssuerCertificateFromStore( - hCertStore: HCERTSTORE, - pSubjectContext: PCCERT_CONTEXT, - pPrevIssuerContext: PCCERT_CONTEXT, - pdwFlags: *mut DWORD, - ) -> PCCERT_CONTEXT; -} -extern "C" { - pub fn CertVerifySubjectCertificateContext( - pSubject: PCCERT_CONTEXT, - pIssuer: PCCERT_CONTEXT, - pdwFlags: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertDuplicateCertificateContext(pCertContext: PCCERT_CONTEXT) -> PCCERT_CONTEXT; -} -extern "C" { - pub fn CertCreateCertificateContext( - dwCertEncodingType: DWORD, - pbCertEncoded: *const BYTE, - cbCertEncoded: DWORD, - ) -> PCCERT_CONTEXT; -} -extern "C" { - pub fn CertFreeCertificateContext(pCertContext: PCCERT_CONTEXT) -> BOOL; -} -extern "C" { - pub fn CertSetCertificateContextProperty( - pCertContext: PCCERT_CONTEXT, - dwPropId: DWORD, - dwFlags: DWORD, - pvData: *const ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn CertGetCertificateContextProperty( - pCertContext: PCCERT_CONTEXT, - dwPropId: DWORD, - pvData: *mut ::std::os::raw::c_void, - pcbData: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertEnumCertificateContextProperties( - pCertContext: PCCERT_CONTEXT, - dwPropId: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn CertCreateCTLEntryFromCertificateContextProperties( - pCertContext: PCCERT_CONTEXT, - cOptAttr: DWORD, - rgOptAttr: PCRYPT_ATTRIBUTE, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - pCtlEntry: PCTL_ENTRY, - pcbCtlEntry: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertSetCertificateContextPropertiesFromCTLEntry( - pCertContext: PCCERT_CONTEXT, - pCtlEntry: PCTL_ENTRY, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertGetCRLFromStore( - hCertStore: HCERTSTORE, - pIssuerContext: PCCERT_CONTEXT, - pPrevCrlContext: PCCRL_CONTEXT, - pdwFlags: *mut DWORD, - ) -> PCCRL_CONTEXT; -} -extern "C" { - pub fn CertEnumCRLsInStore( - hCertStore: HCERTSTORE, - pPrevCrlContext: PCCRL_CONTEXT, - ) -> PCCRL_CONTEXT; -} -extern "C" { - pub fn CertFindCRLInStore( - hCertStore: HCERTSTORE, - dwCertEncodingType: DWORD, - dwFindFlags: DWORD, - dwFindType: DWORD, - pvFindPara: *const ::std::os::raw::c_void, - pPrevCrlContext: PCCRL_CONTEXT, - ) -> PCCRL_CONTEXT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRL_FIND_ISSUED_FOR_PARA { - pub pSubjectCert: PCCERT_CONTEXT, - pub pIssuerCert: PCCERT_CONTEXT, -} -pub type CRL_FIND_ISSUED_FOR_PARA = _CRL_FIND_ISSUED_FOR_PARA; -pub type PCRL_FIND_ISSUED_FOR_PARA = *mut _CRL_FIND_ISSUED_FOR_PARA; -extern "C" { - pub fn CertDuplicateCRLContext(pCrlContext: PCCRL_CONTEXT) -> PCCRL_CONTEXT; -} -extern "C" { - pub fn CertCreateCRLContext( - dwCertEncodingType: DWORD, - pbCrlEncoded: *const BYTE, - cbCrlEncoded: DWORD, - ) -> PCCRL_CONTEXT; -} -extern "C" { - pub fn CertFreeCRLContext(pCrlContext: PCCRL_CONTEXT) -> BOOL; -} -extern "C" { - pub fn CertSetCRLContextProperty( - pCrlContext: PCCRL_CONTEXT, - dwPropId: DWORD, - dwFlags: DWORD, - pvData: *const ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn CertGetCRLContextProperty( - pCrlContext: PCCRL_CONTEXT, - dwPropId: DWORD, - pvData: *mut ::std::os::raw::c_void, - pcbData: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertEnumCRLContextProperties(pCrlContext: PCCRL_CONTEXT, dwPropId: DWORD) -> DWORD; -} -extern "C" { - pub fn CertFindCertificateInCRL( - pCert: PCCERT_CONTEXT, - pCrlContext: PCCRL_CONTEXT, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ppCrlEntry: *mut PCRL_ENTRY, - ) -> BOOL; -} -extern "C" { - pub fn CertIsValidCRLForCertificate( - pCert: PCCERT_CONTEXT, - pCrl: PCCRL_CONTEXT, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn CertAddEncodedCertificateToStore( - hCertStore: HCERTSTORE, - dwCertEncodingType: DWORD, - pbCertEncoded: *const BYTE, - cbCertEncoded: DWORD, - dwAddDisposition: DWORD, - ppCertContext: *mut PCCERT_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CertAddCertificateContextToStore( - hCertStore: HCERTSTORE, - pCertContext: PCCERT_CONTEXT, - dwAddDisposition: DWORD, - ppStoreContext: *mut PCCERT_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CertAddSerializedElementToStore( - hCertStore: HCERTSTORE, - pbElement: *const BYTE, - cbElement: DWORD, - dwAddDisposition: DWORD, - dwFlags: DWORD, - dwContextTypeFlags: DWORD, - pdwContextType: *mut DWORD, - ppvContext: *mut *const ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn CertDeleteCertificateFromStore(pCertContext: PCCERT_CONTEXT) -> BOOL; -} -extern "C" { - pub fn CertAddEncodedCRLToStore( - hCertStore: HCERTSTORE, - dwCertEncodingType: DWORD, - pbCrlEncoded: *const BYTE, - cbCrlEncoded: DWORD, - dwAddDisposition: DWORD, - ppCrlContext: *mut PCCRL_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CertAddCRLContextToStore( - hCertStore: HCERTSTORE, - pCrlContext: PCCRL_CONTEXT, - dwAddDisposition: DWORD, - ppStoreContext: *mut PCCRL_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CertDeleteCRLFromStore(pCrlContext: PCCRL_CONTEXT) -> BOOL; -} -extern "C" { - pub fn CertSerializeCertificateStoreElement( - pCertContext: PCCERT_CONTEXT, - dwFlags: DWORD, - pbElement: *mut BYTE, - pcbElement: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertSerializeCRLStoreElement( - pCrlContext: PCCRL_CONTEXT, - dwFlags: DWORD, - pbElement: *mut BYTE, - pcbElement: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertDuplicateCTLContext(pCtlContext: PCCTL_CONTEXT) -> PCCTL_CONTEXT; -} -extern "C" { - pub fn CertCreateCTLContext( - dwMsgAndCertEncodingType: DWORD, - pbCtlEncoded: *const BYTE, - cbCtlEncoded: DWORD, - ) -> PCCTL_CONTEXT; -} -extern "C" { - pub fn CertFreeCTLContext(pCtlContext: PCCTL_CONTEXT) -> BOOL; -} -extern "C" { - pub fn CertSetCTLContextProperty( - pCtlContext: PCCTL_CONTEXT, - dwPropId: DWORD, - dwFlags: DWORD, - pvData: *const ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn CertGetCTLContextProperty( - pCtlContext: PCCTL_CONTEXT, - dwPropId: DWORD, - pvData: *mut ::std::os::raw::c_void, - pcbData: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertEnumCTLContextProperties(pCtlContext: PCCTL_CONTEXT, dwPropId: DWORD) -> DWORD; -} -extern "C" { - pub fn CertEnumCTLsInStore( - hCertStore: HCERTSTORE, - pPrevCtlContext: PCCTL_CONTEXT, - ) -> PCCTL_CONTEXT; -} -extern "C" { - pub fn CertFindSubjectInCTL( - dwEncodingType: DWORD, - dwSubjectType: DWORD, - pvSubject: *mut ::std::os::raw::c_void, - pCtlContext: PCCTL_CONTEXT, - dwFlags: DWORD, - ) -> PCTL_ENTRY; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CTL_ANY_SUBJECT_INFO { - pub SubjectAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub SubjectIdentifier: CRYPT_DATA_BLOB, -} -pub type CTL_ANY_SUBJECT_INFO = _CTL_ANY_SUBJECT_INFO; -pub type PCTL_ANY_SUBJECT_INFO = *mut _CTL_ANY_SUBJECT_INFO; -extern "C" { - pub fn CertFindCTLInStore( - hCertStore: HCERTSTORE, - dwMsgAndCertEncodingType: DWORD, - dwFindFlags: DWORD, - dwFindType: DWORD, - pvFindPara: *const ::std::os::raw::c_void, - pPrevCtlContext: PCCTL_CONTEXT, - ) -> PCCTL_CONTEXT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CTL_FIND_USAGE_PARA { - pub cbSize: DWORD, - pub SubjectUsage: CTL_USAGE, - pub ListIdentifier: CRYPT_DATA_BLOB, - pub pSigner: PCERT_INFO, -} -pub type CTL_FIND_USAGE_PARA = _CTL_FIND_USAGE_PARA; -pub type PCTL_FIND_USAGE_PARA = *mut _CTL_FIND_USAGE_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CTL_FIND_SUBJECT_PARA { - pub cbSize: DWORD, - pub pUsagePara: PCTL_FIND_USAGE_PARA, - pub dwSubjectType: DWORD, - pub pvSubject: *mut ::std::os::raw::c_void, -} -pub type CTL_FIND_SUBJECT_PARA = _CTL_FIND_SUBJECT_PARA; -pub type PCTL_FIND_SUBJECT_PARA = *mut _CTL_FIND_SUBJECT_PARA; -extern "C" { - pub fn CertAddEncodedCTLToStore( - hCertStore: HCERTSTORE, - dwMsgAndCertEncodingType: DWORD, - pbCtlEncoded: *const BYTE, - cbCtlEncoded: DWORD, - dwAddDisposition: DWORD, - ppCtlContext: *mut PCCTL_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CertAddCTLContextToStore( - hCertStore: HCERTSTORE, - pCtlContext: PCCTL_CONTEXT, - dwAddDisposition: DWORD, - ppStoreContext: *mut PCCTL_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CertSerializeCTLStoreElement( - pCtlContext: PCCTL_CONTEXT, - dwFlags: DWORD, - pbElement: *mut BYTE, - pcbElement: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertDeleteCTLFromStore(pCtlContext: PCCTL_CONTEXT) -> BOOL; -} -extern "C" { - pub fn CertAddCertificateLinkToStore( - hCertStore: HCERTSTORE, - pCertContext: PCCERT_CONTEXT, - dwAddDisposition: DWORD, - ppStoreContext: *mut PCCERT_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CertAddCRLLinkToStore( - hCertStore: HCERTSTORE, - pCrlContext: PCCRL_CONTEXT, - dwAddDisposition: DWORD, - ppStoreContext: *mut PCCRL_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CertAddCTLLinkToStore( - hCertStore: HCERTSTORE, - pCtlContext: PCCTL_CONTEXT, - dwAddDisposition: DWORD, - ppStoreContext: *mut PCCTL_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CertAddStoreToCollection( - hCollectionStore: HCERTSTORE, - hSiblingStore: HCERTSTORE, - dwUpdateFlags: DWORD, - dwPriority: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertRemoveStoreFromCollection(hCollectionStore: HCERTSTORE, hSiblingStore: HCERTSTORE); -} -extern "C" { - pub fn CertControlStore( - hCertStore: HCERTSTORE, - dwFlags: DWORD, - dwCtrlType: DWORD, - pvCtrlPara: *const ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn CertSetStoreProperty( - hCertStore: HCERTSTORE, - dwPropId: DWORD, - dwFlags: DWORD, - pvData: *const ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn CertGetStoreProperty( - hCertStore: HCERTSTORE, - dwPropId: DWORD, - pvData: *mut ::std::os::raw::c_void, - pcbData: *mut DWORD, - ) -> BOOL; -} -pub type PFN_CERT_CREATE_CONTEXT_SORT_FUNC = ::std::option::Option< - unsafe extern "C" fn( - cbTotalEncoded: DWORD, - cbRemainEncoded: DWORD, - cEntry: DWORD, - pvSort: *mut ::std::os::raw::c_void, - ) -> BOOL, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_CREATE_CONTEXT_PARA { - pub cbSize: DWORD, - pub pfnFree: PFN_CRYPT_FREE, - pub pvFree: *mut ::std::os::raw::c_void, - pub pfnSort: PFN_CERT_CREATE_CONTEXT_SORT_FUNC, - pub pvSort: *mut ::std::os::raw::c_void, -} -pub type CERT_CREATE_CONTEXT_PARA = _CERT_CREATE_CONTEXT_PARA; -pub type PCERT_CREATE_CONTEXT_PARA = *mut _CERT_CREATE_CONTEXT_PARA; -extern "C" { - pub fn CertCreateContext( - dwContextType: DWORD, - dwEncodingType: DWORD, - pbEncoded: *const BYTE, - cbEncoded: DWORD, - dwFlags: DWORD, - pCreatePara: PCERT_CREATE_CONTEXT_PARA, - ) -> *const ::std::os::raw::c_void; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_SYSTEM_STORE_INFO { - pub cbSize: DWORD, -} -pub type CERT_SYSTEM_STORE_INFO = _CERT_SYSTEM_STORE_INFO; -pub type PCERT_SYSTEM_STORE_INFO = *mut _CERT_SYSTEM_STORE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_PHYSICAL_STORE_INFO { - pub cbSize: DWORD, - pub pszOpenStoreProvider: LPSTR, - pub dwOpenEncodingType: DWORD, - pub dwOpenFlags: DWORD, - pub OpenParameters: CRYPT_DATA_BLOB, - pub dwFlags: DWORD, - pub dwPriority: DWORD, -} -pub type CERT_PHYSICAL_STORE_INFO = _CERT_PHYSICAL_STORE_INFO; -pub type PCERT_PHYSICAL_STORE_INFO = *mut _CERT_PHYSICAL_STORE_INFO; -extern "C" { - pub fn CertRegisterSystemStore( - pvSystemStore: *const ::std::os::raw::c_void, - dwFlags: DWORD, - pStoreInfo: PCERT_SYSTEM_STORE_INFO, - pvReserved: *mut ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn CertRegisterPhysicalStore( - pvSystemStore: *const ::std::os::raw::c_void, - dwFlags: DWORD, - pwszStoreName: LPCWSTR, - pStoreInfo: PCERT_PHYSICAL_STORE_INFO, - pvReserved: *mut ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn CertUnregisterSystemStore( - pvSystemStore: *const ::std::os::raw::c_void, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertUnregisterPhysicalStore( - pvSystemStore: *const ::std::os::raw::c_void, - dwFlags: DWORD, - pwszStoreName: LPCWSTR, - ) -> BOOL; -} -pub type PFN_CERT_ENUM_SYSTEM_STORE_LOCATION = ::std::option::Option< - unsafe extern "C" fn( - pwszStoreLocation: LPCWSTR, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - pvArg: *mut ::std::os::raw::c_void, - ) -> BOOL, ->; -pub type PFN_CERT_ENUM_SYSTEM_STORE = ::std::option::Option< - unsafe extern "C" fn( - pvSystemStore: *const ::std::os::raw::c_void, - dwFlags: DWORD, - pStoreInfo: PCERT_SYSTEM_STORE_INFO, - pvReserved: *mut ::std::os::raw::c_void, - pvArg: *mut ::std::os::raw::c_void, - ) -> BOOL, ->; -pub type PFN_CERT_ENUM_PHYSICAL_STORE = ::std::option::Option< - unsafe extern "C" fn( - pvSystemStore: *const ::std::os::raw::c_void, - dwFlags: DWORD, - pwszStoreName: LPCWSTR, - pStoreInfo: PCERT_PHYSICAL_STORE_INFO, - pvReserved: *mut ::std::os::raw::c_void, - pvArg: *mut ::std::os::raw::c_void, - ) -> BOOL, ->; -extern "C" { - pub fn CertEnumSystemStoreLocation( - dwFlags: DWORD, - pvArg: *mut ::std::os::raw::c_void, - pfnEnum: PFN_CERT_ENUM_SYSTEM_STORE_LOCATION, - ) -> BOOL; -} -extern "C" { - pub fn CertEnumSystemStore( - dwFlags: DWORD, - pvSystemStoreLocationPara: *mut ::std::os::raw::c_void, - pvArg: *mut ::std::os::raw::c_void, - pfnEnum: PFN_CERT_ENUM_SYSTEM_STORE, - ) -> BOOL; -} -extern "C" { - pub fn CertEnumPhysicalStore( - pvSystemStore: *const ::std::os::raw::c_void, - dwFlags: DWORD, - pvArg: *mut ::std::os::raw::c_void, - pfnEnum: PFN_CERT_ENUM_PHYSICAL_STORE, - ) -> BOOL; -} -extern "C" { - pub fn CertGetEnhancedKeyUsage( - pCertContext: PCCERT_CONTEXT, - dwFlags: DWORD, - pUsage: PCERT_ENHKEY_USAGE, - pcbUsage: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertSetEnhancedKeyUsage( - pCertContext: PCCERT_CONTEXT, - pUsage: PCERT_ENHKEY_USAGE, - ) -> BOOL; -} -extern "C" { - pub fn CertAddEnhancedKeyUsageIdentifier( - pCertContext: PCCERT_CONTEXT, - pszUsageIdentifier: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn CertRemoveEnhancedKeyUsageIdentifier( - pCertContext: PCCERT_CONTEXT, - pszUsageIdentifier: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn CertGetValidUsages( - cCerts: DWORD, - rghCerts: *mut PCCERT_CONTEXT, - cNumOIDs: *mut ::std::os::raw::c_int, - rghOIDs: *mut LPSTR, - pcbOIDs: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptMsgGetAndVerifySigner( - hCryptMsg: HCRYPTMSG, - cSignerStore: DWORD, - rghSignerStore: *mut HCERTSTORE, - dwFlags: DWORD, - ppSigner: *mut PCCERT_CONTEXT, - pdwSignerIndex: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptMsgSignCTL( - dwMsgEncodingType: DWORD, - pbCtlContent: *mut BYTE, - cbCtlContent: DWORD, - pSignInfo: PCMSG_SIGNED_ENCODE_INFO, - dwFlags: DWORD, - pbEncoded: *mut BYTE, - pcbEncoded: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptMsgEncodeAndSignCTL( - dwMsgEncodingType: DWORD, - pCtlInfo: PCTL_INFO, - pSignInfo: PCMSG_SIGNED_ENCODE_INFO, - dwFlags: DWORD, - pbEncoded: *mut BYTE, - pcbEncoded: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertFindSubjectInSortedCTL( - pSubjectIdentifier: PCRYPT_DATA_BLOB, - pCtlContext: PCCTL_CONTEXT, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - pEncodedAttributes: PCRYPT_DER_BLOB, - ) -> BOOL; -} -extern "C" { - pub fn CertEnumSubjectInSortedCTL( - pCtlContext: PCCTL_CONTEXT, - ppvNextSubject: *mut *mut ::std::os::raw::c_void, - pSubjectIdentifier: PCRYPT_DER_BLOB, - pEncodedAttributes: PCRYPT_DER_BLOB, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CTL_VERIFY_USAGE_PARA { - pub cbSize: DWORD, - pub ListIdentifier: CRYPT_DATA_BLOB, - pub cCtlStore: DWORD, - pub rghCtlStore: *mut HCERTSTORE, - pub cSignerStore: DWORD, - pub rghSignerStore: *mut HCERTSTORE, -} -pub type CTL_VERIFY_USAGE_PARA = _CTL_VERIFY_USAGE_PARA; -pub type PCTL_VERIFY_USAGE_PARA = *mut _CTL_VERIFY_USAGE_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CTL_VERIFY_USAGE_STATUS { - pub cbSize: DWORD, - pub dwError: DWORD, - pub dwFlags: DWORD, - pub ppCtl: *mut PCCTL_CONTEXT, - pub dwCtlEntryIndex: DWORD, - pub ppSigner: *mut PCCERT_CONTEXT, - pub dwSignerIndex: DWORD, -} -pub type CTL_VERIFY_USAGE_STATUS = _CTL_VERIFY_USAGE_STATUS; -pub type PCTL_VERIFY_USAGE_STATUS = *mut _CTL_VERIFY_USAGE_STATUS; -extern "C" { - pub fn CertVerifyCTLUsage( - dwEncodingType: DWORD, - dwSubjectType: DWORD, - pvSubject: *mut ::std::os::raw::c_void, - pSubjectUsage: PCTL_USAGE, - dwFlags: DWORD, - pVerifyUsagePara: PCTL_VERIFY_USAGE_PARA, - pVerifyUsageStatus: PCTL_VERIFY_USAGE_STATUS, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_REVOCATION_CRL_INFO { - pub cbSize: DWORD, - pub pBaseCrlContext: PCCRL_CONTEXT, - pub pDeltaCrlContext: PCCRL_CONTEXT, - pub pCrlEntry: PCRL_ENTRY, - pub fDeltaCrlEntry: BOOL, -} -pub type CERT_REVOCATION_CRL_INFO = _CERT_REVOCATION_CRL_INFO; -pub type PCERT_REVOCATION_CRL_INFO = *mut _CERT_REVOCATION_CRL_INFO; -pub type CERT_REVOCATION_CHAIN_PARA = _CERT_REVOCATION_CHAIN_PARA; -pub type PCERT_REVOCATION_CHAIN_PARA = *mut _CERT_REVOCATION_CHAIN_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_REVOCATION_PARA { - pub cbSize: DWORD, - pub pIssuerCert: PCCERT_CONTEXT, - pub cCertStore: DWORD, - pub rgCertStore: *mut HCERTSTORE, - pub hCrlStore: HCERTSTORE, - pub pftTimeToUse: LPFILETIME, -} -pub type CERT_REVOCATION_PARA = _CERT_REVOCATION_PARA; -pub type PCERT_REVOCATION_PARA = *mut _CERT_REVOCATION_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_REVOCATION_STATUS { - pub cbSize: DWORD, - pub dwIndex: DWORD, - pub dwError: DWORD, - pub dwReason: DWORD, - pub fHasFreshnessTime: BOOL, - pub dwFreshnessTime: DWORD, -} -pub type CERT_REVOCATION_STATUS = _CERT_REVOCATION_STATUS; -pub type PCERT_REVOCATION_STATUS = *mut _CERT_REVOCATION_STATUS; -extern "C" { - pub fn CertVerifyRevocation( - dwEncodingType: DWORD, - dwRevType: DWORD, - cContext: DWORD, - rgpvContext: *mut PVOID, - dwFlags: DWORD, - pRevPara: PCERT_REVOCATION_PARA, - pRevStatus: PCERT_REVOCATION_STATUS, - ) -> BOOL; -} -extern "C" { - pub fn CertCompareIntegerBlob(pInt1: PCRYPT_INTEGER_BLOB, pInt2: PCRYPT_INTEGER_BLOB) -> BOOL; -} -extern "C" { - pub fn CertCompareCertificate( - dwCertEncodingType: DWORD, - pCertId1: PCERT_INFO, - pCertId2: PCERT_INFO, - ) -> BOOL; -} -extern "C" { - pub fn CertCompareCertificateName( - dwCertEncodingType: DWORD, - pCertName1: PCERT_NAME_BLOB, - pCertName2: PCERT_NAME_BLOB, - ) -> BOOL; -} -extern "C" { - pub fn CertIsRDNAttrsInCertificateName( - dwCertEncodingType: DWORD, - dwFlags: DWORD, - pCertName: PCERT_NAME_BLOB, - pRDN: PCERT_RDN, - ) -> BOOL; -} -extern "C" { - pub fn CertComparePublicKeyInfo( - dwCertEncodingType: DWORD, - pPublicKey1: PCERT_PUBLIC_KEY_INFO, - pPublicKey2: PCERT_PUBLIC_KEY_INFO, - ) -> BOOL; -} -extern "C" { - pub fn CertGetPublicKeyLength( - dwCertEncodingType: DWORD, - pPublicKey: PCERT_PUBLIC_KEY_INFO, - ) -> DWORD; -} -extern "C" { - pub fn CryptVerifyCertificateSignature( - hCryptProv: HCRYPTPROV_LEGACY, - dwCertEncodingType: DWORD, - pbEncoded: *const BYTE, - cbEncoded: DWORD, - pPublicKey: PCERT_PUBLIC_KEY_INFO, - ) -> BOOL; -} -extern "C" { - pub fn CryptVerifyCertificateSignatureEx( - hCryptProv: HCRYPTPROV_LEGACY, - dwCertEncodingType: DWORD, - dwSubjectType: DWORD, - pvSubject: *mut ::std::os::raw::c_void, - dwIssuerType: DWORD, - pvIssuer: *mut ::std::os::raw::c_void, - dwFlags: DWORD, - pvExtra: *mut ::std::os::raw::c_void, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO { - pub CertSignHashCNGAlgPropData: CRYPT_DATA_BLOB, - pub CertIssuerPubKeyBitLengthPropData: CRYPT_DATA_BLOB, -} -pub type CRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO = - _CRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO; -pub type PCRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO = - *mut _CRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO { - pub cCNGHashAlgid: DWORD, - pub rgpwszCNGHashAlgid: *mut PCWSTR, - pub dwWeakIndex: DWORD, -} -pub type CRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO = _CRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO; -pub type PCRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO = *mut _CRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO; -extern "C" { - pub fn CertIsStrongHashToSign( - pStrongSignPara: PCCERT_STRONG_SIGN_PARA, - pwszCNGHashAlgid: LPCWSTR, - pSigningCert: PCCERT_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CryptHashToBeSigned( - hCryptProv: HCRYPTPROV_LEGACY, - dwCertEncodingType: DWORD, - pbEncoded: *const BYTE, - cbEncoded: DWORD, - pbComputedHash: *mut BYTE, - pcbComputedHash: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptHashCertificate( - hCryptProv: HCRYPTPROV_LEGACY, - Algid: ALG_ID, - dwFlags: DWORD, - pbEncoded: *const BYTE, - cbEncoded: DWORD, - pbComputedHash: *mut BYTE, - pcbComputedHash: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptHashCertificate2( - pwszCNGHashAlgid: LPCWSTR, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - pbEncoded: *const BYTE, - cbEncoded: DWORD, - pbComputedHash: *mut BYTE, - pcbComputedHash: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptSignCertificate( - hCryptProvOrNCryptKey: HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, - dwKeySpec: DWORD, - dwCertEncodingType: DWORD, - pbEncodedToBeSigned: *const BYTE, - cbEncodedToBeSigned: DWORD, - pSignatureAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, - pvHashAuxInfo: *const ::std::os::raw::c_void, - pbSignature: *mut BYTE, - pcbSignature: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptSignAndEncodeCertificate( - hCryptProvOrNCryptKey: HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, - dwKeySpec: DWORD, - dwCertEncodingType: DWORD, - lpszStructType: LPCSTR, - pvStructInfo: *const ::std::os::raw::c_void, - pSignatureAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, - pvHashAuxInfo: *const ::std::os::raw::c_void, - pbEncoded: *mut BYTE, - pcbEncoded: *mut DWORD, - ) -> BOOL; -} -pub type PFN_CRYPT_EXTRACT_ENCODED_SIGNATURE_PARAMETERS_FUNC = ::std::option::Option< - unsafe extern "C" fn( - dwCertEncodingType: DWORD, - pSignatureAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, - ppvDecodedSignPara: *mut *mut ::std::os::raw::c_void, - ppwszCNGHashAlgid: *mut LPWSTR, - ) -> BOOL, ->; -pub type PFN_CRYPT_SIGN_AND_ENCODE_HASH_FUNC = ::std::option::Option< - unsafe extern "C" fn( - hKey: NCRYPT_KEY_HANDLE, - dwCertEncodingType: DWORD, - pSignatureAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, - pvDecodedSignPara: *mut ::std::os::raw::c_void, - pwszCNGPubKeyAlgid: LPCWSTR, - pwszCNGHashAlgid: LPCWSTR, - pbComputedHash: *mut BYTE, - cbComputedHash: DWORD, - pbSignature: *mut BYTE, - pcbSignature: *mut DWORD, - ) -> BOOL, ->; -pub type PFN_CRYPT_VERIFY_ENCODED_SIGNATURE_FUNC = ::std::option::Option< - unsafe extern "C" fn( - dwCertEncodingType: DWORD, - pPubKeyInfo: PCERT_PUBLIC_KEY_INFO, - pSignatureAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, - pvDecodedSignPara: *mut ::std::os::raw::c_void, - pwszCNGPubKeyAlgid: LPCWSTR, - pwszCNGHashAlgid: LPCWSTR, - pbComputedHash: *mut BYTE, - cbComputedHash: DWORD, - pbSignature: *mut BYTE, - cbSignature: DWORD, - ) -> BOOL, ->; -extern "C" { - pub fn CertVerifyTimeValidity(pTimeToVerify: LPFILETIME, pCertInfo: PCERT_INFO) -> LONG; -} -extern "C" { - pub fn CertVerifyCRLTimeValidity(pTimeToVerify: LPFILETIME, pCrlInfo: PCRL_INFO) -> LONG; -} -extern "C" { - pub fn CertVerifyValidityNesting(pSubjectInfo: PCERT_INFO, pIssuerInfo: PCERT_INFO) -> BOOL; -} -extern "C" { - pub fn CertVerifyCRLRevocation( - dwCertEncodingType: DWORD, - pCertId: PCERT_INFO, - cCrlInfo: DWORD, - rgpCrlInfo: *mut PCRL_INFO, - ) -> BOOL; -} -extern "C" { - pub fn CertAlgIdToOID(dwAlgId: DWORD) -> LPCSTR; -} -extern "C" { - pub fn CertOIDToAlgId(pszObjId: LPCSTR) -> DWORD; -} -extern "C" { - pub fn CertFindExtension( - pszObjId: LPCSTR, - cExtensions: DWORD, - rgExtensions: *mut CERT_EXTENSION, - ) -> PCERT_EXTENSION; -} -extern "C" { - pub fn CertFindAttribute( - pszObjId: LPCSTR, - cAttr: DWORD, - rgAttr: *mut CRYPT_ATTRIBUTE, - ) -> PCRYPT_ATTRIBUTE; -} -extern "C" { - pub fn CertFindRDNAttr(pszObjId: LPCSTR, pName: PCERT_NAME_INFO) -> PCERT_RDN_ATTR; -} -extern "C" { - pub fn CertGetIntendedKeyUsage( - dwCertEncodingType: DWORD, - pCertInfo: PCERT_INFO, - pbKeyUsage: *mut BYTE, - cbKeyUsage: DWORD, - ) -> BOOL; -} -pub type HCRYPTDEFAULTCONTEXT = *mut ::std::os::raw::c_void; -extern "C" { - pub fn CryptInstallDefaultContext( - hCryptProv: HCRYPTPROV, - dwDefaultType: DWORD, - pvDefaultPara: *const ::std::os::raw::c_void, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - phDefaultContext: *mut HCRYPTDEFAULTCONTEXT, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA { - pub cOID: DWORD, - pub rgpszOID: *mut LPSTR, -} -pub type CRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA = _CRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA; -pub type PCRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA = *mut _CRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA; -extern "C" { - pub fn CryptUninstallDefaultContext( - hDefaultContext: HCRYPTDEFAULTCONTEXT, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn CryptExportPublicKeyInfo( - hCryptProvOrNCryptKey: HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, - dwKeySpec: DWORD, - dwCertEncodingType: DWORD, - pInfo: PCERT_PUBLIC_KEY_INFO, - pcbInfo: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptExportPublicKeyInfoEx( - hCryptProvOrNCryptKey: HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, - dwKeySpec: DWORD, - dwCertEncodingType: DWORD, - pszPublicKeyObjId: LPSTR, - dwFlags: DWORD, - pvAuxInfo: *mut ::std::os::raw::c_void, - pInfo: PCERT_PUBLIC_KEY_INFO, - pcbInfo: *mut DWORD, - ) -> BOOL; -} -pub type PFN_CRYPT_EXPORT_PUBLIC_KEY_INFO_EX2_FUNC = ::std::option::Option< - unsafe extern "C" fn( - hNCryptKey: NCRYPT_KEY_HANDLE, - dwCertEncodingType: DWORD, - pszPublicKeyObjId: LPSTR, - dwFlags: DWORD, - pvAuxInfo: *mut ::std::os::raw::c_void, - pInfo: PCERT_PUBLIC_KEY_INFO, - pcbInfo: *mut DWORD, - ) -> BOOL, ->; -extern "C" { - pub fn CryptExportPublicKeyInfoFromBCryptKeyHandle( - hBCryptKey: BCRYPT_KEY_HANDLE, - dwCertEncodingType: DWORD, - pszPublicKeyObjId: LPSTR, - dwFlags: DWORD, - pvAuxInfo: *mut ::std::os::raw::c_void, - pInfo: PCERT_PUBLIC_KEY_INFO, - pcbInfo: *mut DWORD, - ) -> BOOL; -} -pub type PFN_CRYPT_EXPORT_PUBLIC_KEY_INFO_FROM_BCRYPT_HANDLE_FUNC = ::std::option::Option< - unsafe extern "C" fn( - hBCryptKey: BCRYPT_KEY_HANDLE, - dwCertEncodingType: DWORD, - pszPublicKeyObjId: LPSTR, - dwFlags: DWORD, - pvAuxInfo: *mut ::std::os::raw::c_void, - pInfo: PCERT_PUBLIC_KEY_INFO, - pcbInfo: *mut DWORD, - ) -> BOOL, ->; -extern "C" { - pub fn CryptImportPublicKeyInfo( - hCryptProv: HCRYPTPROV, - dwCertEncodingType: DWORD, - pInfo: PCERT_PUBLIC_KEY_INFO, - phKey: *mut HCRYPTKEY, - ) -> BOOL; -} -extern "C" { - pub fn CryptImportPublicKeyInfoEx( - hCryptProv: HCRYPTPROV, - dwCertEncodingType: DWORD, - pInfo: PCERT_PUBLIC_KEY_INFO, - aiKeyAlg: ALG_ID, - dwFlags: DWORD, - pvAuxInfo: *mut ::std::os::raw::c_void, - phKey: *mut HCRYPTKEY, - ) -> BOOL; -} -extern "C" { - pub fn CryptImportPublicKeyInfoEx2( - dwCertEncodingType: DWORD, - pInfo: PCERT_PUBLIC_KEY_INFO, - dwFlags: DWORD, - pvAuxInfo: *mut ::std::os::raw::c_void, - phKey: *mut BCRYPT_KEY_HANDLE, - ) -> BOOL; -} -pub type PFN_IMPORT_PUBLIC_KEY_INFO_EX2_FUNC = ::std::option::Option< - unsafe extern "C" fn( - dwCertEncodingType: DWORD, - pInfo: PCERT_PUBLIC_KEY_INFO, - dwFlags: DWORD, - pvAuxInfo: *mut ::std::os::raw::c_void, - phKey: *mut BCRYPT_KEY_HANDLE, - ) -> BOOL, ->; -extern "C" { - pub fn CryptAcquireCertificatePrivateKey( - pCert: PCCERT_CONTEXT, - dwFlags: DWORD, - pvParameters: *mut ::std::os::raw::c_void, - phCryptProvOrNCryptKey: *mut HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, - pdwKeySpec: *mut DWORD, - pfCallerFreeProvOrNCryptKey: *mut BOOL, - ) -> BOOL; -} -extern "C" { - pub fn CryptFindCertificateKeyProvInfo( - pCert: PCCERT_CONTEXT, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ) -> BOOL; -} -pub type PFN_IMPORT_PRIV_KEY_FUNC = ::std::option::Option< - unsafe extern "C" fn( - hCryptProv: HCRYPTPROV, - pPrivateKeyInfo: *mut CRYPT_PRIVATE_KEY_INFO, - dwFlags: DWORD, - pvAuxInfo: *mut ::std::os::raw::c_void, - ) -> BOOL, ->; -extern "C" { - pub fn CryptImportPKCS8( - sPrivateKeyAndParams: CRYPT_PKCS8_IMPORT_PARAMS, - dwFlags: DWORD, - phCryptProv: *mut HCRYPTPROV, - pvAuxInfo: *mut ::std::os::raw::c_void, - ) -> BOOL; -} -pub type PFN_EXPORT_PRIV_KEY_FUNC = ::std::option::Option< - unsafe extern "C" fn( - hCryptProv: HCRYPTPROV, - dwKeySpec: DWORD, - pszPrivateKeyObjId: LPSTR, - dwFlags: DWORD, - pvAuxInfo: *mut ::std::os::raw::c_void, - pPrivateKeyInfo: *mut CRYPT_PRIVATE_KEY_INFO, - pcbPrivateKeyInfo: *mut DWORD, - ) -> BOOL, ->; -extern "C" { - pub fn CryptExportPKCS8( - hCryptProv: HCRYPTPROV, - dwKeySpec: DWORD, - pszPrivateKeyObjId: LPSTR, - dwFlags: DWORD, - pvAuxInfo: *mut ::std::os::raw::c_void, - pbPrivateKeyBlob: *mut BYTE, - pcbPrivateKeyBlob: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptExportPKCS8Ex( - psExportParams: *mut CRYPT_PKCS8_EXPORT_PARAMS, - dwFlags: DWORD, - pvAuxInfo: *mut ::std::os::raw::c_void, - pbPrivateKeyBlob: *mut BYTE, - pcbPrivateKeyBlob: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptHashPublicKeyInfo( - hCryptProv: HCRYPTPROV_LEGACY, - Algid: ALG_ID, - dwFlags: DWORD, - dwCertEncodingType: DWORD, - pInfo: PCERT_PUBLIC_KEY_INFO, - pbComputedHash: *mut BYTE, - pcbComputedHash: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertRDNValueToStrA( - dwValueType: DWORD, - pValue: PCERT_RDN_VALUE_BLOB, - psz: LPSTR, - csz: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn CertRDNValueToStrW( - dwValueType: DWORD, - pValue: PCERT_RDN_VALUE_BLOB, - psz: LPWSTR, - csz: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn CertNameToStrA( - dwCertEncodingType: DWORD, - pName: PCERT_NAME_BLOB, - dwStrType: DWORD, - psz: LPSTR, - csz: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn CertNameToStrW( - dwCertEncodingType: DWORD, - pName: PCERT_NAME_BLOB, - dwStrType: DWORD, - psz: LPWSTR, - csz: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn CertStrToNameA( - dwCertEncodingType: DWORD, - pszX500: LPCSTR, - dwStrType: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - pbEncoded: *mut BYTE, - pcbEncoded: *mut DWORD, - ppszError: *mut LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn CertStrToNameW( - dwCertEncodingType: DWORD, - pszX500: LPCWSTR, - dwStrType: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - pbEncoded: *mut BYTE, - pcbEncoded: *mut DWORD, - ppszError: *mut LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn CertGetNameStringA( - pCertContext: PCCERT_CONTEXT, - dwType: DWORD, - dwFlags: DWORD, - pvTypePara: *mut ::std::os::raw::c_void, - pszNameString: LPSTR, - cchNameString: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn CertGetNameStringW( - pCertContext: PCCERT_CONTEXT, - dwType: DWORD, - dwFlags: DWORD, - pvTypePara: *mut ::std::os::raw::c_void, - pszNameString: LPWSTR, - cchNameString: DWORD, - ) -> DWORD; -} -pub type PFN_CRYPT_GET_SIGNER_CERTIFICATE = ::std::option::Option< - unsafe extern "C" fn( - pvGetArg: *mut ::std::os::raw::c_void, - dwCertEncodingType: DWORD, - pSignerId: PCERT_INFO, - hMsgCertStore: HCERTSTORE, - ) -> PCCERT_CONTEXT, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_SIGN_MESSAGE_PARA { - pub cbSize: DWORD, - pub dwMsgEncodingType: DWORD, - pub pSigningCert: PCCERT_CONTEXT, - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub pvHashAuxInfo: *mut ::std::os::raw::c_void, - pub cMsgCert: DWORD, - pub rgpMsgCert: *mut PCCERT_CONTEXT, - pub cMsgCrl: DWORD, - pub rgpMsgCrl: *mut PCCRL_CONTEXT, - pub cAuthAttr: DWORD, - pub rgAuthAttr: PCRYPT_ATTRIBUTE, - pub cUnauthAttr: DWORD, - pub rgUnauthAttr: PCRYPT_ATTRIBUTE, - pub dwFlags: DWORD, - pub dwInnerContentType: DWORD, -} -pub type CRYPT_SIGN_MESSAGE_PARA = _CRYPT_SIGN_MESSAGE_PARA; -pub type PCRYPT_SIGN_MESSAGE_PARA = *mut _CRYPT_SIGN_MESSAGE_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_VERIFY_MESSAGE_PARA { - pub cbSize: DWORD, - pub dwMsgAndCertEncodingType: DWORD, - pub hCryptProv: HCRYPTPROV_LEGACY, - pub pfnGetSignerCertificate: PFN_CRYPT_GET_SIGNER_CERTIFICATE, - pub pvGetArg: *mut ::std::os::raw::c_void, -} -pub type CRYPT_VERIFY_MESSAGE_PARA = _CRYPT_VERIFY_MESSAGE_PARA; -pub type PCRYPT_VERIFY_MESSAGE_PARA = *mut _CRYPT_VERIFY_MESSAGE_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_ENCRYPT_MESSAGE_PARA { - pub cbSize: DWORD, - pub dwMsgEncodingType: DWORD, - pub hCryptProv: HCRYPTPROV_LEGACY, - pub ContentEncryptionAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub pvEncryptionAuxInfo: *mut ::std::os::raw::c_void, - pub dwFlags: DWORD, - pub dwInnerContentType: DWORD, -} -pub type CRYPT_ENCRYPT_MESSAGE_PARA = _CRYPT_ENCRYPT_MESSAGE_PARA; -pub type PCRYPT_ENCRYPT_MESSAGE_PARA = *mut _CRYPT_ENCRYPT_MESSAGE_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_DECRYPT_MESSAGE_PARA { - pub cbSize: DWORD, - pub dwMsgAndCertEncodingType: DWORD, - pub cCertStore: DWORD, - pub rghCertStore: *mut HCERTSTORE, -} -pub type CRYPT_DECRYPT_MESSAGE_PARA = _CRYPT_DECRYPT_MESSAGE_PARA; -pub type PCRYPT_DECRYPT_MESSAGE_PARA = *mut _CRYPT_DECRYPT_MESSAGE_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_HASH_MESSAGE_PARA { - pub cbSize: DWORD, - pub dwMsgEncodingType: DWORD, - pub hCryptProv: HCRYPTPROV_LEGACY, - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub pvHashAuxInfo: *mut ::std::os::raw::c_void, -} -pub type CRYPT_HASH_MESSAGE_PARA = _CRYPT_HASH_MESSAGE_PARA; -pub type PCRYPT_HASH_MESSAGE_PARA = *mut _CRYPT_HASH_MESSAGE_PARA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CRYPT_KEY_SIGN_MESSAGE_PARA { - pub cbSize: DWORD, - pub dwMsgAndCertEncodingType: DWORD, - pub __bindgen_anon_1: _CRYPT_KEY_SIGN_MESSAGE_PARA__bindgen_ty_1, - pub dwKeySpec: DWORD, - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub pvHashAuxInfo: *mut ::std::os::raw::c_void, - pub PubKeyAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CRYPT_KEY_SIGN_MESSAGE_PARA__bindgen_ty_1 { - pub hCryptProv: HCRYPTPROV, - pub hNCryptKey: NCRYPT_KEY_HANDLE, -} -pub type CRYPT_KEY_SIGN_MESSAGE_PARA = _CRYPT_KEY_SIGN_MESSAGE_PARA; -pub type PCRYPT_KEY_SIGN_MESSAGE_PARA = *mut _CRYPT_KEY_SIGN_MESSAGE_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_KEY_VERIFY_MESSAGE_PARA { - pub cbSize: DWORD, - pub dwMsgEncodingType: DWORD, - pub hCryptProv: HCRYPTPROV_LEGACY, -} -pub type CRYPT_KEY_VERIFY_MESSAGE_PARA = _CRYPT_KEY_VERIFY_MESSAGE_PARA; -pub type PCRYPT_KEY_VERIFY_MESSAGE_PARA = *mut _CRYPT_KEY_VERIFY_MESSAGE_PARA; -extern "C" { - pub fn CryptSignMessage( - pSignPara: PCRYPT_SIGN_MESSAGE_PARA, - fDetachedSignature: BOOL, - cToBeSigned: DWORD, - rgpbToBeSigned: *mut *const BYTE, - rgcbToBeSigned: *mut DWORD, - pbSignedBlob: *mut BYTE, - pcbSignedBlob: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptVerifyMessageSignature( - pVerifyPara: PCRYPT_VERIFY_MESSAGE_PARA, - dwSignerIndex: DWORD, - pbSignedBlob: *const BYTE, - cbSignedBlob: DWORD, - pbDecoded: *mut BYTE, - pcbDecoded: *mut DWORD, - ppSignerCert: *mut PCCERT_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CryptGetMessageSignerCount( - dwMsgEncodingType: DWORD, - pbSignedBlob: *const BYTE, - cbSignedBlob: DWORD, - ) -> LONG; -} -extern "C" { - pub fn CryptGetMessageCertificates( - dwMsgAndCertEncodingType: DWORD, - hCryptProv: HCRYPTPROV_LEGACY, - dwFlags: DWORD, - pbSignedBlob: *const BYTE, - cbSignedBlob: DWORD, - ) -> HCERTSTORE; -} -extern "C" { - pub fn CryptVerifyDetachedMessageSignature( - pVerifyPara: PCRYPT_VERIFY_MESSAGE_PARA, - dwSignerIndex: DWORD, - pbDetachedSignBlob: *const BYTE, - cbDetachedSignBlob: DWORD, - cToBeSigned: DWORD, - rgpbToBeSigned: *mut *const BYTE, - rgcbToBeSigned: *mut DWORD, - ppSignerCert: *mut PCCERT_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CryptEncryptMessage( - pEncryptPara: PCRYPT_ENCRYPT_MESSAGE_PARA, - cRecipientCert: DWORD, - rgpRecipientCert: *mut PCCERT_CONTEXT, - pbToBeEncrypted: *const BYTE, - cbToBeEncrypted: DWORD, - pbEncryptedBlob: *mut BYTE, - pcbEncryptedBlob: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptDecryptMessage( - pDecryptPara: PCRYPT_DECRYPT_MESSAGE_PARA, - pbEncryptedBlob: *const BYTE, - cbEncryptedBlob: DWORD, - pbDecrypted: *mut BYTE, - pcbDecrypted: *mut DWORD, - ppXchgCert: *mut PCCERT_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CryptSignAndEncryptMessage( - pSignPara: PCRYPT_SIGN_MESSAGE_PARA, - pEncryptPara: PCRYPT_ENCRYPT_MESSAGE_PARA, - cRecipientCert: DWORD, - rgpRecipientCert: *mut PCCERT_CONTEXT, - pbToBeSignedAndEncrypted: *const BYTE, - cbToBeSignedAndEncrypted: DWORD, - pbSignedAndEncryptedBlob: *mut BYTE, - pcbSignedAndEncryptedBlob: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptDecryptAndVerifyMessageSignature( - pDecryptPara: PCRYPT_DECRYPT_MESSAGE_PARA, - pVerifyPara: PCRYPT_VERIFY_MESSAGE_PARA, - dwSignerIndex: DWORD, - pbEncryptedBlob: *const BYTE, - cbEncryptedBlob: DWORD, - pbDecrypted: *mut BYTE, - pcbDecrypted: *mut DWORD, - ppXchgCert: *mut PCCERT_CONTEXT, - ppSignerCert: *mut PCCERT_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CryptDecodeMessage( - dwMsgTypeFlags: DWORD, - pDecryptPara: PCRYPT_DECRYPT_MESSAGE_PARA, - pVerifyPara: PCRYPT_VERIFY_MESSAGE_PARA, - dwSignerIndex: DWORD, - pbEncodedBlob: *const BYTE, - cbEncodedBlob: DWORD, - dwPrevInnerContentType: DWORD, - pdwMsgType: *mut DWORD, - pdwInnerContentType: *mut DWORD, - pbDecoded: *mut BYTE, - pcbDecoded: *mut DWORD, - ppXchgCert: *mut PCCERT_CONTEXT, - ppSignerCert: *mut PCCERT_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CryptHashMessage( - pHashPara: PCRYPT_HASH_MESSAGE_PARA, - fDetachedHash: BOOL, - cToBeHashed: DWORD, - rgpbToBeHashed: *mut *const BYTE, - rgcbToBeHashed: *mut DWORD, - pbHashedBlob: *mut BYTE, - pcbHashedBlob: *mut DWORD, - pbComputedHash: *mut BYTE, - pcbComputedHash: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptVerifyMessageHash( - pHashPara: PCRYPT_HASH_MESSAGE_PARA, - pbHashedBlob: *mut BYTE, - cbHashedBlob: DWORD, - pbToBeHashed: *mut BYTE, - pcbToBeHashed: *mut DWORD, - pbComputedHash: *mut BYTE, - pcbComputedHash: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptVerifyDetachedMessageHash( - pHashPara: PCRYPT_HASH_MESSAGE_PARA, - pbDetachedHashBlob: *mut BYTE, - cbDetachedHashBlob: DWORD, - cToBeHashed: DWORD, - rgpbToBeHashed: *mut *const BYTE, - rgcbToBeHashed: *mut DWORD, - pbComputedHash: *mut BYTE, - pcbComputedHash: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptSignMessageWithKey( - pSignPara: PCRYPT_KEY_SIGN_MESSAGE_PARA, - pbToBeSigned: *const BYTE, - cbToBeSigned: DWORD, - pbSignedBlob: *mut BYTE, - pcbSignedBlob: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptVerifyMessageSignatureWithKey( - pVerifyPara: PCRYPT_KEY_VERIFY_MESSAGE_PARA, - pPublicKeyInfo: PCERT_PUBLIC_KEY_INFO, - pbSignedBlob: *const BYTE, - cbSignedBlob: DWORD, - pbDecoded: *mut BYTE, - pcbDecoded: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertOpenSystemStoreA( - hProv: HCRYPTPROV_LEGACY, - szSubsystemProtocol: LPCSTR, - ) -> HCERTSTORE; -} -extern "C" { - pub fn CertOpenSystemStoreW( - hProv: HCRYPTPROV_LEGACY, - szSubsystemProtocol: LPCWSTR, - ) -> HCERTSTORE; -} -extern "C" { - pub fn CertAddEncodedCertificateToSystemStoreA( - szCertStoreName: LPCSTR, - pbCertEncoded: *const BYTE, - cbCertEncoded: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CertAddEncodedCertificateToSystemStoreW( - szCertStoreName: LPCWSTR, - pbCertEncoded: *const BYTE, - cbCertEncoded: DWORD, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_CHAIN { - pub cCerts: DWORD, - pub certs: PCERT_BLOB, - pub keyLocatorInfo: CRYPT_KEY_PROV_INFO, -} -pub type CERT_CHAIN = _CERT_CHAIN; -pub type PCERT_CHAIN = *mut _CERT_CHAIN; -extern "C" { - pub fn FindCertsByIssuer( - pCertChains: PCERT_CHAIN, - pcbCertChains: *mut DWORD, - pcCertChains: *mut DWORD, - pbEncodedIssuerName: *mut BYTE, - cbEncodedIssuerName: DWORD, - pwszPurpose: LPCWSTR, - dwKeySpec: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CryptQueryObject( - dwObjectType: DWORD, - pvObject: *const ::std::os::raw::c_void, - dwExpectedContentTypeFlags: DWORD, - dwExpectedFormatTypeFlags: DWORD, - dwFlags: DWORD, - pdwMsgAndCertEncodingType: *mut DWORD, - pdwContentType: *mut DWORD, - pdwFormatType: *mut DWORD, - phCertStore: *mut HCERTSTORE, - phMsg: *mut HCRYPTMSG, - ppvContext: *mut *const ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn CryptMemAlloc(cbSize: ULONG) -> LPVOID; -} -extern "C" { - pub fn CryptMemRealloc(pv: LPVOID, cbSize: ULONG) -> LPVOID; -} -extern "C" { - pub fn CryptMemFree(pv: LPVOID); -} -pub type HCRYPTASYNC = HANDLE; -pub type PHCRYPTASYNC = *mut HANDLE; -pub type PFN_CRYPT_ASYNC_PARAM_FREE_FUNC = - ::std::option::Option; -extern "C" { - pub fn CryptCreateAsyncHandle(dwFlags: DWORD, phAsync: PHCRYPTASYNC) -> BOOL; -} -extern "C" { - pub fn CryptSetAsyncParam( - hAsync: HCRYPTASYNC, - pszParamOid: LPSTR, - pvParam: LPVOID, - pfnFree: PFN_CRYPT_ASYNC_PARAM_FREE_FUNC, - ) -> BOOL; -} -extern "C" { - pub fn CryptGetAsyncParam( - hAsync: HCRYPTASYNC, - pszParamOid: LPSTR, - ppvParam: *mut LPVOID, - ppfnFree: *mut PFN_CRYPT_ASYNC_PARAM_FREE_FUNC, - ) -> BOOL; -} -extern "C" { - pub fn CryptCloseAsyncHandle(hAsync: HCRYPTASYNC) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_BLOB_ARRAY { - pub cBlob: DWORD, - pub rgBlob: PCRYPT_DATA_BLOB, -} -pub type CRYPT_BLOB_ARRAY = _CRYPT_BLOB_ARRAY; -pub type PCRYPT_BLOB_ARRAY = *mut _CRYPT_BLOB_ARRAY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_CREDENTIALS { - pub cbSize: DWORD, - pub pszCredentialsOid: LPCSTR, - pub pvCredentials: LPVOID, -} -pub type CRYPT_CREDENTIALS = _CRYPT_CREDENTIALS; -pub type PCRYPT_CREDENTIALS = *mut _CRYPT_CREDENTIALS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_PASSWORD_CREDENTIALSA { - pub cbSize: DWORD, - pub pszUsername: LPSTR, - pub pszPassword: LPSTR, -} -pub type CRYPT_PASSWORD_CREDENTIALSA = _CRYPT_PASSWORD_CREDENTIALSA; -pub type PCRYPT_PASSWORD_CREDENTIALSA = *mut _CRYPT_PASSWORD_CREDENTIALSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_PASSWORD_CREDENTIALSW { - pub cbSize: DWORD, - pub pszUsername: LPWSTR, - pub pszPassword: LPWSTR, -} -pub type CRYPT_PASSWORD_CREDENTIALSW = _CRYPT_PASSWORD_CREDENTIALSW; -pub type PCRYPT_PASSWORD_CREDENTIALSW = *mut _CRYPT_PASSWORD_CREDENTIALSW; -pub type CRYPT_PASSWORD_CREDENTIALS = CRYPT_PASSWORD_CREDENTIALSA; -pub type PCRYPT_PASSWORD_CREDENTIALS = PCRYPT_PASSWORD_CREDENTIALSA; -pub type PFN_FREE_ENCODED_OBJECT_FUNC = ::std::option::Option< - unsafe extern "C" fn(pszObjectOid: LPCSTR, pObject: PCRYPT_BLOB_ARRAY, pvFreeContext: LPVOID), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPTNET_URL_CACHE_PRE_FETCH_INFO { - pub cbSize: DWORD, - pub dwObjectType: DWORD, - pub dwError: DWORD, - pub dwReserved: DWORD, - pub ThisUpdateTime: FILETIME, - pub NextUpdateTime: FILETIME, - pub PublishTime: FILETIME, -} -pub type CRYPTNET_URL_CACHE_PRE_FETCH_INFO = _CRYPTNET_URL_CACHE_PRE_FETCH_INFO; -pub type PCRYPTNET_URL_CACHE_PRE_FETCH_INFO = *mut _CRYPTNET_URL_CACHE_PRE_FETCH_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPTNET_URL_CACHE_FLUSH_INFO { - pub cbSize: DWORD, - pub dwExemptSeconds: DWORD, - pub ExpireTime: FILETIME, -} -pub type CRYPTNET_URL_CACHE_FLUSH_INFO = _CRYPTNET_URL_CACHE_FLUSH_INFO; -pub type PCRYPTNET_URL_CACHE_FLUSH_INFO = *mut _CRYPTNET_URL_CACHE_FLUSH_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPTNET_URL_CACHE_RESPONSE_INFO { - pub cbSize: DWORD, - pub wResponseType: WORD, - pub wResponseFlags: WORD, - pub LastModifiedTime: FILETIME, - pub dwMaxAge: DWORD, - pub pwszETag: LPCWSTR, - pub dwProxyId: DWORD, -} -pub type CRYPTNET_URL_CACHE_RESPONSE_INFO = _CRYPTNET_URL_CACHE_RESPONSE_INFO; -pub type PCRYPTNET_URL_CACHE_RESPONSE_INFO = *mut _CRYPTNET_URL_CACHE_RESPONSE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_RETRIEVE_AUX_INFO { - pub cbSize: DWORD, - pub pLastSyncTime: *mut FILETIME, - pub dwMaxUrlRetrievalByteCount: DWORD, - pub pPreFetchInfo: PCRYPTNET_URL_CACHE_PRE_FETCH_INFO, - pub pFlushInfo: PCRYPTNET_URL_CACHE_FLUSH_INFO, - pub ppResponseInfo: *mut PCRYPTNET_URL_CACHE_RESPONSE_INFO, - pub pwszCacheFileNamePrefix: LPWSTR, - pub pftCacheResync: LPFILETIME, - pub fProxyCacheRetrieval: BOOL, - pub dwHttpStatusCode: DWORD, - pub ppwszErrorResponseHeaders: *mut LPWSTR, - pub ppErrorContentBlob: *mut PCRYPT_DATA_BLOB, -} -pub type CRYPT_RETRIEVE_AUX_INFO = _CRYPT_RETRIEVE_AUX_INFO; -pub type PCRYPT_RETRIEVE_AUX_INFO = *mut _CRYPT_RETRIEVE_AUX_INFO; -extern "C" { - pub fn CryptRetrieveObjectByUrlA( - pszUrl: LPCSTR, - pszObjectOid: LPCSTR, - dwRetrievalFlags: DWORD, - dwTimeout: DWORD, - ppvObject: *mut LPVOID, - hAsyncRetrieve: HCRYPTASYNC, - pCredentials: PCRYPT_CREDENTIALS, - pvVerify: LPVOID, - pAuxInfo: PCRYPT_RETRIEVE_AUX_INFO, - ) -> BOOL; -} -extern "C" { - pub fn CryptRetrieveObjectByUrlW( - pszUrl: LPCWSTR, - pszObjectOid: LPCSTR, - dwRetrievalFlags: DWORD, - dwTimeout: DWORD, - ppvObject: *mut LPVOID, - hAsyncRetrieve: HCRYPTASYNC, - pCredentials: PCRYPT_CREDENTIALS, - pvVerify: LPVOID, - pAuxInfo: PCRYPT_RETRIEVE_AUX_INFO, - ) -> BOOL; -} -pub type PFN_CRYPT_CANCEL_RETRIEVAL = ::std::option::Option< - unsafe extern "C" fn(dwFlags: DWORD, pvArg: *mut ::std::os::raw::c_void) -> BOOL, ->; -extern "C" { - pub fn CryptInstallCancelRetrieval( - pfnCancel: PFN_CRYPT_CANCEL_RETRIEVAL, - pvArg: *const ::std::os::raw::c_void, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn CryptUninstallCancelRetrieval( - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ) -> BOOL; -} -extern "C" { - pub fn CryptCancelAsyncRetrieval(hAsyncRetrieval: HCRYPTASYNC) -> BOOL; -} -pub type PFN_CRYPT_ASYNC_RETRIEVAL_COMPLETION_FUNC = ::std::option::Option< - unsafe extern "C" fn( - pvCompletion: LPVOID, - dwCompletionCode: DWORD, - pszUrl: LPCSTR, - pszObjectOid: LPSTR, - pvObject: LPVOID, - ), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_ASYNC_RETRIEVAL_COMPLETION { - pub pfnCompletion: PFN_CRYPT_ASYNC_RETRIEVAL_COMPLETION_FUNC, - pub pvCompletion: LPVOID, -} -pub type CRYPT_ASYNC_RETRIEVAL_COMPLETION = _CRYPT_ASYNC_RETRIEVAL_COMPLETION; -pub type PCRYPT_ASYNC_RETRIEVAL_COMPLETION = *mut _CRYPT_ASYNC_RETRIEVAL_COMPLETION; -pub type PFN_CANCEL_ASYNC_RETRIEVAL_FUNC = - ::std::option::Option BOOL>; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_URL_ARRAY { - pub cUrl: DWORD, - pub rgwszUrl: *mut LPWSTR, -} -pub type CRYPT_URL_ARRAY = _CRYPT_URL_ARRAY; -pub type PCRYPT_URL_ARRAY = *mut _CRYPT_URL_ARRAY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_URL_INFO { - pub cbSize: DWORD, - pub dwSyncDeltaTime: DWORD, - pub cGroup: DWORD, - pub rgcGroupEntry: *mut DWORD, -} -pub type CRYPT_URL_INFO = _CRYPT_URL_INFO; -pub type PCRYPT_URL_INFO = *mut _CRYPT_URL_INFO; -extern "C" { - pub fn CryptGetObjectUrl( - pszUrlOid: LPCSTR, - pvPara: LPVOID, - dwFlags: DWORD, - pUrlArray: PCRYPT_URL_ARRAY, - pcbUrlArray: *mut DWORD, - pUrlInfo: PCRYPT_URL_INFO, - pcbUrlInfo: *mut DWORD, - pvReserved: LPVOID, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_CRL_CONTEXT_PAIR { - pub pCertContext: PCCERT_CONTEXT, - pub pCrlContext: PCCRL_CONTEXT, -} -pub type CERT_CRL_CONTEXT_PAIR = _CERT_CRL_CONTEXT_PAIR; -pub type PCERT_CRL_CONTEXT_PAIR = *mut _CERT_CRL_CONTEXT_PAIR; -pub type PCCERT_CRL_CONTEXT_PAIR = *const CERT_CRL_CONTEXT_PAIR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO { - pub cbSize: DWORD, - pub iDeltaCrlIndicator: ::std::os::raw::c_int, - pub pftCacheResync: LPFILETIME, - pub pLastSyncTime: LPFILETIME, - pub pMaxAgeTime: LPFILETIME, - pub pChainPara: PCERT_REVOCATION_CHAIN_PARA, - pub pDeltaCrlIndicator: PCRYPT_INTEGER_BLOB, -} -pub type CRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO = _CRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO; -pub type PCRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO = *mut _CRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO; -extern "C" { - pub fn CryptGetTimeValidObject( - pszTimeValidOid: LPCSTR, - pvPara: LPVOID, - pIssuer: PCCERT_CONTEXT, - pftValidFor: LPFILETIME, - dwFlags: DWORD, - dwTimeout: DWORD, - ppvObject: *mut LPVOID, - pCredentials: PCRYPT_CREDENTIALS, - pExtraInfo: PCRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO, - ) -> BOOL; -} -extern "C" { - pub fn CryptFlushTimeValidObject( - pszFlushTimeValidOid: LPCSTR, - pvPara: LPVOID, - pIssuer: PCCERT_CONTEXT, - dwFlags: DWORD, - pvReserved: LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn CertCreateSelfSignCertificate( - hCryptProvOrNCryptKey: HCRYPTPROV_OR_NCRYPT_KEY_HANDLE, - pSubjectIssuerBlob: PCERT_NAME_BLOB, - dwFlags: DWORD, - pKeyProvInfo: PCRYPT_KEY_PROV_INFO, - pSignatureAlgorithm: PCRYPT_ALGORITHM_IDENTIFIER, - pStartTime: PSYSTEMTIME, - pEndTime: PSYSTEMTIME, - pExtensions: PCERT_EXTENSIONS, - ) -> PCCERT_CONTEXT; -} -extern "C" { - pub fn CryptGetKeyIdentifierProperty( - pKeyIdentifier: *const CRYPT_HASH_BLOB, - dwPropId: DWORD, - dwFlags: DWORD, - pwszComputerName: LPCWSTR, - pvReserved: *mut ::std::os::raw::c_void, - pvData: *mut ::std::os::raw::c_void, - pcbData: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptSetKeyIdentifierProperty( - pKeyIdentifier: *const CRYPT_HASH_BLOB, - dwPropId: DWORD, - dwFlags: DWORD, - pwszComputerName: LPCWSTR, - pvReserved: *mut ::std::os::raw::c_void, - pvData: *const ::std::os::raw::c_void, - ) -> BOOL; -} -pub type PFN_CRYPT_ENUM_KEYID_PROP = ::std::option::Option< - unsafe extern "C" fn( - pKeyIdentifier: *const CRYPT_HASH_BLOB, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - pvArg: *mut ::std::os::raw::c_void, - cProp: DWORD, - rgdwPropId: *mut DWORD, - rgpvData: *mut *mut ::std::os::raw::c_void, - rgcbData: *mut DWORD, - ) -> BOOL, ->; -extern "C" { - pub fn CryptEnumKeyIdentifierProperties( - pKeyIdentifier: *const CRYPT_HASH_BLOB, - dwPropId: DWORD, - dwFlags: DWORD, - pwszComputerName: LPCWSTR, - pvReserved: *mut ::std::os::raw::c_void, - pvArg: *mut ::std::os::raw::c_void, - pfnEnum: PFN_CRYPT_ENUM_KEYID_PROP, - ) -> BOOL; -} -extern "C" { - pub fn CryptCreateKeyIdentifierFromCSP( - dwCertEncodingType: DWORD, - pszPubKeyOID: LPCSTR, - pPubKeyStruc: *const PUBLICKEYSTRUC, - cbPubKeyStruc: DWORD, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - pbHash: *mut BYTE, - pcbHash: *mut DWORD, - ) -> BOOL; -} -pub type HCERTCHAINENGINE = HANDLE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_CHAIN_ENGINE_CONFIG { - pub cbSize: DWORD, - pub hRestrictedRoot: HCERTSTORE, - pub hRestrictedTrust: HCERTSTORE, - pub hRestrictedOther: HCERTSTORE, - pub cAdditionalStore: DWORD, - pub rghAdditionalStore: *mut HCERTSTORE, - pub dwFlags: DWORD, - pub dwUrlRetrievalTimeout: DWORD, - pub MaximumCachedCertificates: DWORD, - pub CycleDetectionModulus: DWORD, - pub hExclusiveRoot: HCERTSTORE, - pub hExclusiveTrustedPeople: HCERTSTORE, - pub dwExclusiveFlags: DWORD, -} -pub type CERT_CHAIN_ENGINE_CONFIG = _CERT_CHAIN_ENGINE_CONFIG; -pub type PCERT_CHAIN_ENGINE_CONFIG = *mut _CERT_CHAIN_ENGINE_CONFIG; -extern "C" { - pub fn CertCreateCertificateChainEngine( - pConfig: PCERT_CHAIN_ENGINE_CONFIG, - phChainEngine: *mut HCERTCHAINENGINE, - ) -> BOOL; -} -extern "C" { - pub fn CertFreeCertificateChainEngine(hChainEngine: HCERTCHAINENGINE); -} -extern "C" { - pub fn CertResyncCertificateChainEngine(hChainEngine: HCERTCHAINENGINE) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_TRUST_STATUS { - pub dwErrorStatus: DWORD, - pub dwInfoStatus: DWORD, -} -pub type CERT_TRUST_STATUS = _CERT_TRUST_STATUS; -pub type PCERT_TRUST_STATUS = *mut _CERT_TRUST_STATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_REVOCATION_INFO { - pub cbSize: DWORD, - pub dwRevocationResult: DWORD, - pub pszRevocationOid: LPCSTR, - pub pvOidSpecificInfo: LPVOID, - pub fHasFreshnessTime: BOOL, - pub dwFreshnessTime: DWORD, - pub pCrlInfo: PCERT_REVOCATION_CRL_INFO, -} -pub type CERT_REVOCATION_INFO = _CERT_REVOCATION_INFO; -pub type PCERT_REVOCATION_INFO = *mut _CERT_REVOCATION_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_TRUST_LIST_INFO { - pub cbSize: DWORD, - pub pCtlEntry: PCTL_ENTRY, - pub pCtlContext: PCCTL_CONTEXT, -} -pub type CERT_TRUST_LIST_INFO = _CERT_TRUST_LIST_INFO; -pub type PCERT_TRUST_LIST_INFO = *mut _CERT_TRUST_LIST_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_CHAIN_ELEMENT { - pub cbSize: DWORD, - pub pCertContext: PCCERT_CONTEXT, - pub TrustStatus: CERT_TRUST_STATUS, - pub pRevocationInfo: PCERT_REVOCATION_INFO, - pub pIssuanceUsage: PCERT_ENHKEY_USAGE, - pub pApplicationUsage: PCERT_ENHKEY_USAGE, - pub pwszExtendedErrorInfo: LPCWSTR, -} -pub type CERT_CHAIN_ELEMENT = _CERT_CHAIN_ELEMENT; -pub type PCERT_CHAIN_ELEMENT = *mut _CERT_CHAIN_ELEMENT; -pub type PCCERT_CHAIN_ELEMENT = *const CERT_CHAIN_ELEMENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_SIMPLE_CHAIN { - pub cbSize: DWORD, - pub TrustStatus: CERT_TRUST_STATUS, - pub cElement: DWORD, - pub rgpElement: *mut PCERT_CHAIN_ELEMENT, - pub pTrustListInfo: PCERT_TRUST_LIST_INFO, - pub fHasRevocationFreshnessTime: BOOL, - pub dwRevocationFreshnessTime: DWORD, -} -pub type CERT_SIMPLE_CHAIN = _CERT_SIMPLE_CHAIN; -pub type PCERT_SIMPLE_CHAIN = *mut _CERT_SIMPLE_CHAIN; -pub type PCCERT_SIMPLE_CHAIN = *const CERT_SIMPLE_CHAIN; -pub type CERT_CHAIN_CONTEXT = _CERT_CHAIN_CONTEXT; -pub type PCERT_CHAIN_CONTEXT = *mut _CERT_CHAIN_CONTEXT; -pub type PCCERT_CHAIN_CONTEXT = *const CERT_CHAIN_CONTEXT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_CHAIN_CONTEXT { - pub cbSize: DWORD, - pub TrustStatus: CERT_TRUST_STATUS, - pub cChain: DWORD, - pub rgpChain: *mut PCERT_SIMPLE_CHAIN, - pub cLowerQualityChainContext: DWORD, - pub rgpLowerQualityChainContext: *mut PCCERT_CHAIN_CONTEXT, - pub fHasRevocationFreshnessTime: BOOL, - pub dwRevocationFreshnessTime: DWORD, - pub dwCreateFlags: DWORD, - pub ChainId: GUID, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_USAGE_MATCH { - pub dwType: DWORD, - pub Usage: CERT_ENHKEY_USAGE, -} -pub type CERT_USAGE_MATCH = _CERT_USAGE_MATCH; -pub type PCERT_USAGE_MATCH = *mut _CERT_USAGE_MATCH; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CTL_USAGE_MATCH { - pub dwType: DWORD, - pub Usage: CTL_USAGE, -} -pub type CTL_USAGE_MATCH = _CTL_USAGE_MATCH; -pub type PCTL_USAGE_MATCH = *mut _CTL_USAGE_MATCH; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_CHAIN_PARA { - pub cbSize: DWORD, - pub RequestedUsage: CERT_USAGE_MATCH, -} -pub type CERT_CHAIN_PARA = _CERT_CHAIN_PARA; -pub type PCERT_CHAIN_PARA = *mut _CERT_CHAIN_PARA; -extern "C" { - pub fn CertGetCertificateChain( - hChainEngine: HCERTCHAINENGINE, - pCertContext: PCCERT_CONTEXT, - pTime: LPFILETIME, - hAdditionalStore: HCERTSTORE, - pChainPara: PCERT_CHAIN_PARA, - dwFlags: DWORD, - pvReserved: LPVOID, - ppChainContext: *mut PCCERT_CHAIN_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CertFreeCertificateChain(pChainContext: PCCERT_CHAIN_CONTEXT); -} -extern "C" { - pub fn CertDuplicateCertificateChain( - pChainContext: PCCERT_CHAIN_CONTEXT, - ) -> PCCERT_CHAIN_CONTEXT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_REVOCATION_CHAIN_PARA { - pub cbSize: DWORD, - pub hChainEngine: HCERTCHAINENGINE, - pub hAdditionalStore: HCERTSTORE, - pub dwChainFlags: DWORD, - pub dwUrlRetrievalTimeout: DWORD, - pub pftCurrentTime: LPFILETIME, - pub pftCacheResync: LPFILETIME, - pub cbMaxUrlRetrievalByteCount: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRL_REVOCATION_INFO { - pub pCrlEntry: PCRL_ENTRY, - pub pCrlContext: PCCRL_CONTEXT, - pub pCrlIssuerChain: PCCERT_CHAIN_CONTEXT, -} -pub type CRL_REVOCATION_INFO = _CRL_REVOCATION_INFO; -pub type PCRL_REVOCATION_INFO = *mut _CRL_REVOCATION_INFO; -extern "C" { - pub fn CertFindChainInStore( - hCertStore: HCERTSTORE, - dwCertEncodingType: DWORD, - dwFindFlags: DWORD, - dwFindType: DWORD, - pvFindPara: *const ::std::os::raw::c_void, - pPrevChainContext: PCCERT_CHAIN_CONTEXT, - ) -> PCCERT_CHAIN_CONTEXT; -} -pub type PFN_CERT_CHAIN_FIND_BY_ISSUER_CALLBACK = ::std::option::Option< - unsafe extern "C" fn(pCert: PCCERT_CONTEXT, pvFindArg: *mut ::std::os::raw::c_void) -> BOOL, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_CHAIN_FIND_BY_ISSUER_PARA { - pub cbSize: DWORD, - pub pszUsageIdentifier: LPCSTR, - pub dwKeySpec: DWORD, - pub dwAcquirePrivateKeyFlags: DWORD, - pub cIssuer: DWORD, - pub rgIssuer: *mut CERT_NAME_BLOB, - pub pfnFindCallback: PFN_CERT_CHAIN_FIND_BY_ISSUER_CALLBACK, - pub pvFindArg: *mut ::std::os::raw::c_void, -} -pub type CERT_CHAIN_FIND_ISSUER_PARA = _CERT_CHAIN_FIND_BY_ISSUER_PARA; -pub type PCERT_CHAIN_FIND_ISSUER_PARA = *mut _CERT_CHAIN_FIND_BY_ISSUER_PARA; -pub type CERT_CHAIN_FIND_BY_ISSUER_PARA = _CERT_CHAIN_FIND_BY_ISSUER_PARA; -pub type PCERT_CHAIN_FIND_BY_ISSUER_PARA = *mut _CERT_CHAIN_FIND_BY_ISSUER_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_CHAIN_POLICY_PARA { - pub cbSize: DWORD, - pub dwFlags: DWORD, - pub pvExtraPolicyPara: *mut ::std::os::raw::c_void, -} -pub type CERT_CHAIN_POLICY_PARA = _CERT_CHAIN_POLICY_PARA; -pub type PCERT_CHAIN_POLICY_PARA = *mut _CERT_CHAIN_POLICY_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_CHAIN_POLICY_STATUS { - pub cbSize: DWORD, - pub dwError: DWORD, - pub lChainIndex: LONG, - pub lElementIndex: LONG, - pub pvExtraPolicyStatus: *mut ::std::os::raw::c_void, -} -pub type CERT_CHAIN_POLICY_STATUS = _CERT_CHAIN_POLICY_STATUS; -pub type PCERT_CHAIN_POLICY_STATUS = *mut _CERT_CHAIN_POLICY_STATUS; -extern "C" { - pub fn CertVerifyCertificateChainPolicy( - pszPolicyOID: LPCSTR, - pChainContext: PCCERT_CHAIN_CONTEXT, - pPolicyPara: PCERT_CHAIN_POLICY_PARA, - pPolicyStatus: PCERT_CHAIN_POLICY_STATUS, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA { - pub cbSize: DWORD, - pub dwRegPolicySettings: DWORD, - pub pSignerInfo: PCMSG_SIGNER_INFO, -} -pub type AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA = _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA; -pub type PAUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA = - *mut _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS { - pub cbSize: DWORD, - pub fCommercial: BOOL, -} -pub type AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS = _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS; -pub type PAUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS = - *mut _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _AUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA { - pub cbSize: DWORD, - pub dwRegPolicySettings: DWORD, - pub fCommercial: BOOL, -} -pub type AUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA = - _AUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA; -pub type PAUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA = - *mut _AUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _HTTPSPolicyCallbackData { - pub __bindgen_anon_1: _HTTPSPolicyCallbackData__bindgen_ty_1, - pub dwAuthType: DWORD, - pub fdwChecks: DWORD, - pub pwszServerName: *mut WCHAR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _HTTPSPolicyCallbackData__bindgen_ty_1 { - pub cbStruct: DWORD, - pub cbSize: DWORD, -} -pub type HTTPSPolicyCallbackData = _HTTPSPolicyCallbackData; -pub type PHTTPSPolicyCallbackData = *mut _HTTPSPolicyCallbackData; -pub type SSL_EXTRA_CERT_CHAIN_POLICY_PARA = _HTTPSPolicyCallbackData; -pub type PSSL_EXTRA_CERT_CHAIN_POLICY_PARA = *mut _HTTPSPolicyCallbackData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EV_EXTRA_CERT_CHAIN_POLICY_PARA { - pub cbSize: DWORD, - pub dwRootProgramQualifierFlags: DWORD, -} -pub type EV_EXTRA_CERT_CHAIN_POLICY_PARA = _EV_EXTRA_CERT_CHAIN_POLICY_PARA; -pub type PEV_EXTRA_CERT_CHAIN_POLICY_PARA = *mut _EV_EXTRA_CERT_CHAIN_POLICY_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EV_EXTRA_CERT_CHAIN_POLICY_STATUS { - pub cbSize: DWORD, - pub dwQualifiers: DWORD, - pub dwIssuanceUsageIndex: DWORD, -} -pub type EV_EXTRA_CERT_CHAIN_POLICY_STATUS = _EV_EXTRA_CERT_CHAIN_POLICY_STATUS; -pub type PEV_EXTRA_CERT_CHAIN_POLICY_STATUS = *mut _EV_EXTRA_CERT_CHAIN_POLICY_STATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS { - pub cbSize: DWORD, - pub dwErrorLevel: DWORD, - pub dwErrorCategory: DWORD, - pub dwReserved: DWORD, - pub wszErrorText: [WCHAR; 256usize], -} -pub type SSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS = _SSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS; -pub type PSSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS = *mut _SSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA { - pub cbSize: DWORD, - pub dwReserved: DWORD, - pub pwszServerName: LPWSTR, - pub rgpszHpkpValue: [LPSTR; 2usize], -} -pub type SSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA = - _SSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA; -pub type PSSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA = - *mut _SSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA { - pub cbSize: DWORD, - pub dwReserved: DWORD, - pub pwszServerName: PCWSTR, -} -pub type SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA = _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA; -pub type PSSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA = *mut _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS { - pub cbSize: DWORD, - pub lError: LONG, - pub wszErrorText: [WCHAR; 512usize], -} -pub type SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS = _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS; -pub type PSSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS = - *mut _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS; -extern "C" { - pub fn CryptStringToBinaryA( - pszString: LPCSTR, - cchString: DWORD, - dwFlags: DWORD, - pbBinary: *mut BYTE, - pcbBinary: *mut DWORD, - pdwSkip: *mut DWORD, - pdwFlags: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptStringToBinaryW( - pszString: LPCWSTR, - cchString: DWORD, - dwFlags: DWORD, - pbBinary: *mut BYTE, - pcbBinary: *mut DWORD, - pdwSkip: *mut DWORD, - pdwFlags: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptBinaryToStringA( - pbBinary: *const BYTE, - cbBinary: DWORD, - dwFlags: DWORD, - pszString: LPSTR, - pcchString: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptBinaryToStringW( - pbBinary: *const BYTE, - cbBinary: DWORD, - dwFlags: DWORD, - pszString: LPWSTR, - pcchString: *mut DWORD, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_PKCS12_PBE_PARAMS { - pub iIterations: ::std::os::raw::c_int, - pub cbSalt: ULONG, -} -pub type CRYPT_PKCS12_PBE_PARAMS = _CRYPT_PKCS12_PBE_PARAMS; -extern "C" { - pub fn PFXImportCertStore( - pPFX: *mut CRYPT_DATA_BLOB, - szPassword: LPCWSTR, - dwFlags: DWORD, - ) -> HCERTSTORE; -} -extern "C" { - pub fn PFXIsPFXBlob(pPFX: *mut CRYPT_DATA_BLOB) -> BOOL; -} -extern "C" { - pub fn PFXVerifyPassword( - pPFX: *mut CRYPT_DATA_BLOB, - szPassword: LPCWSTR, - dwFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn PFXExportCertStoreEx( - hStore: HCERTSTORE, - pPFX: *mut CRYPT_DATA_BLOB, - szPassword: LPCWSTR, - pvPara: *mut ::std::os::raw::c_void, - dwFlags: DWORD, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PKCS12_PBES2_EXPORT_PARAMS { - pub dwSize: DWORD, - pub hNcryptDescriptor: PVOID, - pub pwszPbes2Alg: LPWSTR, -} -pub type PKCS12_PBES2_EXPORT_PARAMS = _PKCS12_PBES2_EXPORT_PARAMS; -pub type PPKCS12_PBES2_EXPORT_PARAMS = *mut _PKCS12_PBES2_EXPORT_PARAMS; -extern "C" { - pub fn PFXExportCertStore( - hStore: HCERTSTORE, - pPFX: *mut CRYPT_DATA_BLOB, - szPassword: LPCWSTR, - dwFlags: DWORD, - ) -> BOOL; -} -pub type HCERT_SERVER_OCSP_RESPONSE = *mut ::std::os::raw::c_void; -pub type CERT_SERVER_OCSP_RESPONSE_CONTEXT = _CERT_SERVER_OCSP_RESPONSE_CONTEXT; -pub type PCERT_SERVER_OCSP_RESPONSE_CONTEXT = *mut _CERT_SERVER_OCSP_RESPONSE_CONTEXT; -pub type PCCERT_SERVER_OCSP_RESPONSE_CONTEXT = *const CERT_SERVER_OCSP_RESPONSE_CONTEXT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_SERVER_OCSP_RESPONSE_CONTEXT { - pub cbSize: DWORD, - pub pbEncodedOcspResponse: *mut BYTE, - pub cbEncodedOcspResponse: DWORD, -} -pub type PFN_CERT_SERVER_OCSP_RESPONSE_UPDATE_CALLBACK = ::std::option::Option< - unsafe extern "C" fn( - pChainContext: PCCERT_CHAIN_CONTEXT, - pServerOcspResponseContext: PCCERT_SERVER_OCSP_RESPONSE_CONTEXT, - pNewCrlContext: PCCRL_CONTEXT, - pPrevCrlContext: PCCRL_CONTEXT, - pvArg: PVOID, - dwWriteOcspFileError: DWORD, - ), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_SERVER_OCSP_RESPONSE_OPEN_PARA { - pub cbSize: DWORD, - pub dwFlags: DWORD, - pub pcbUsedSize: *mut DWORD, - pub pwszOcspDirectory: PWSTR, - pub pfnUpdateCallback: PFN_CERT_SERVER_OCSP_RESPONSE_UPDATE_CALLBACK, - pub pvUpdateCallbackArg: PVOID, -} -pub type CERT_SERVER_OCSP_RESPONSE_OPEN_PARA = _CERT_SERVER_OCSP_RESPONSE_OPEN_PARA; -pub type PCERT_SERVER_OCSP_RESPONSE_OPEN_PARA = *mut _CERT_SERVER_OCSP_RESPONSE_OPEN_PARA; -extern "C" { - pub fn CertOpenServerOcspResponse( - pChainContext: PCCERT_CHAIN_CONTEXT, - dwFlags: DWORD, - pOpenPara: PCERT_SERVER_OCSP_RESPONSE_OPEN_PARA, - ) -> HCERT_SERVER_OCSP_RESPONSE; -} -extern "C" { - pub fn CertAddRefServerOcspResponse(hServerOcspResponse: HCERT_SERVER_OCSP_RESPONSE); -} -extern "C" { - pub fn CertCloseServerOcspResponse( - hServerOcspResponse: HCERT_SERVER_OCSP_RESPONSE, - dwFlags: DWORD, - ); -} -extern "C" { - pub fn CertGetServerOcspResponseContext( - hServerOcspResponse: HCERT_SERVER_OCSP_RESPONSE, - dwFlags: DWORD, - pvReserved: LPVOID, - ) -> PCCERT_SERVER_OCSP_RESPONSE_CONTEXT; -} -extern "C" { - pub fn CertAddRefServerOcspResponseContext( - pServerOcspResponseContext: PCCERT_SERVER_OCSP_RESPONSE_CONTEXT, - ); -} -extern "C" { - pub fn CertFreeServerOcspResponseContext( - pServerOcspResponseContext: PCCERT_SERVER_OCSP_RESPONSE_CONTEXT, - ); -} -extern "C" { - pub fn CertRetrieveLogoOrBiometricInfo( - pCertContext: PCCERT_CONTEXT, - lpszLogoOrBiometricType: LPCSTR, - dwRetrievalFlags: DWORD, - dwTimeout: DWORD, - dwFlags: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ppbData: *mut *mut BYTE, - pcbData: *mut DWORD, - ppwszMimeType: *mut LPWSTR, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_SELECT_CHAIN_PARA { - pub hChainEngine: HCERTCHAINENGINE, - pub pTime: PFILETIME, - pub hAdditionalStore: HCERTSTORE, - pub pChainPara: PCERT_CHAIN_PARA, - pub dwFlags: DWORD, -} -pub type CERT_SELECT_CHAIN_PARA = _CERT_SELECT_CHAIN_PARA; -pub type PCERT_SELECT_CHAIN_PARA = *mut _CERT_SELECT_CHAIN_PARA; -pub type PCCERT_SELECT_CHAIN_PARA = *const CERT_SELECT_CHAIN_PARA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERT_SELECT_CRITERIA { - pub dwType: DWORD, - pub cPara: DWORD, - pub ppPara: *mut *mut ::std::os::raw::c_void, -} -pub type CERT_SELECT_CRITERIA = _CERT_SELECT_CRITERIA; -pub type PCERT_SELECT_CRITERIA = *mut _CERT_SELECT_CRITERIA; -pub type PCCERT_SELECT_CRITERIA = *const CERT_SELECT_CRITERIA; -extern "C" { - pub fn CertSelectCertificateChains( - pSelectionContext: LPCGUID, - dwFlags: DWORD, - pChainParameters: PCCERT_SELECT_CHAIN_PARA, - cCriteria: DWORD, - rgpCriteria: PCCERT_SELECT_CRITERIA, - hStore: HCERTSTORE, - pcSelection: PDWORD, - pprgpSelection: *mut *mut PCCERT_CHAIN_CONTEXT, - ) -> BOOL; -} -extern "C" { - pub fn CertFreeCertificateChainList(prgpSelection: *mut PCCERT_CHAIN_CONTEXT); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_TIMESTAMP_REQUEST { - pub dwVersion: DWORD, - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub HashedMessage: CRYPT_DER_BLOB, - pub pszTSAPolicyId: LPSTR, - pub Nonce: CRYPT_INTEGER_BLOB, - pub fCertReq: BOOL, - pub cExtension: DWORD, - pub rgExtension: PCERT_EXTENSION, -} -pub type CRYPT_TIMESTAMP_REQUEST = _CRYPT_TIMESTAMP_REQUEST; -pub type PCRYPT_TIMESTAMP_REQUEST = *mut _CRYPT_TIMESTAMP_REQUEST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_TIMESTAMP_RESPONSE { - pub dwStatus: DWORD, - pub cFreeText: DWORD, - pub rgFreeText: *mut LPWSTR, - pub FailureInfo: CRYPT_BIT_BLOB, - pub ContentInfo: CRYPT_DER_BLOB, -} -pub type CRYPT_TIMESTAMP_RESPONSE = _CRYPT_TIMESTAMP_RESPONSE; -pub type PCRYPT_TIMESTAMP_RESPONSE = *mut _CRYPT_TIMESTAMP_RESPONSE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_TIMESTAMP_ACCURACY { - pub dwSeconds: DWORD, - pub dwMillis: DWORD, - pub dwMicros: DWORD, -} -pub type CRYPT_TIMESTAMP_ACCURACY = _CRYPT_TIMESTAMP_ACCURACY; -pub type PCRYPT_TIMESTAMP_ACCURACY = *mut _CRYPT_TIMESTAMP_ACCURACY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_TIMESTAMP_INFO { - pub dwVersion: DWORD, - pub pszTSAPolicyId: LPSTR, - pub HashAlgorithm: CRYPT_ALGORITHM_IDENTIFIER, - pub HashedMessage: CRYPT_DER_BLOB, - pub SerialNumber: CRYPT_INTEGER_BLOB, - pub ftTime: FILETIME, - pub pvAccuracy: PCRYPT_TIMESTAMP_ACCURACY, - pub fOrdering: BOOL, - pub Nonce: CRYPT_DER_BLOB, - pub Tsa: CRYPT_DER_BLOB, - pub cExtension: DWORD, - pub rgExtension: PCERT_EXTENSION, -} -pub type CRYPT_TIMESTAMP_INFO = _CRYPT_TIMESTAMP_INFO; -pub type PCRYPT_TIMESTAMP_INFO = *mut _CRYPT_TIMESTAMP_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_TIMESTAMP_CONTEXT { - pub cbEncoded: DWORD, - pub pbEncoded: *mut BYTE, - pub pTimeStamp: PCRYPT_TIMESTAMP_INFO, -} -pub type CRYPT_TIMESTAMP_CONTEXT = _CRYPT_TIMESTAMP_CONTEXT; -pub type PCRYPT_TIMESTAMP_CONTEXT = *mut _CRYPT_TIMESTAMP_CONTEXT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_TIMESTAMP_PARA { - pub pszTSAPolicyId: LPCSTR, - pub fRequestCerts: BOOL, - pub Nonce: CRYPT_INTEGER_BLOB, - pub cExtension: DWORD, - pub rgExtension: PCERT_EXTENSION, -} -pub type CRYPT_TIMESTAMP_PARA = _CRYPT_TIMESTAMP_PARA; -pub type PCRYPT_TIMESTAMP_PARA = *mut _CRYPT_TIMESTAMP_PARA; -extern "C" { - pub fn CryptRetrieveTimeStamp( - wszUrl: LPCWSTR, - dwRetrievalFlags: DWORD, - dwTimeout: DWORD, - pszHashId: LPCSTR, - pPara: *const CRYPT_TIMESTAMP_PARA, - pbData: *const BYTE, - cbData: DWORD, - ppTsContext: *mut PCRYPT_TIMESTAMP_CONTEXT, - ppTsSigner: *mut PCCERT_CONTEXT, - phStore: *mut HCERTSTORE, - ) -> BOOL; -} -extern "C" { - pub fn CryptVerifyTimeStampSignature( - pbTSContentInfo: *const BYTE, - cbTSContentInfo: DWORD, - pbData: *const BYTE, - cbData: DWORD, - hAdditionalStore: HCERTSTORE, - ppTsContext: *mut PCRYPT_TIMESTAMP_CONTEXT, - ppTsSigner: *mut PCCERT_CONTEXT, - phStore: *mut HCERTSTORE, - ) -> BOOL; -} -pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FLUSH = ::std::option::Option< - unsafe extern "C" fn( - pContext: LPVOID, - rgIdentifierOrNameList: *mut PCERT_NAME_BLOB, - dwIdentifierOrNameListCount: DWORD, - ) -> BOOL, ->; -pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_GET = ::std::option::Option< - unsafe extern "C" fn( - pPluginContext: LPVOID, - pIdentifier: PCRYPT_DATA_BLOB, - dwNameType: DWORD, - pNameBlob: PCERT_NAME_BLOB, - ppbContent: *mut PBYTE, - pcbContent: *mut DWORD, - ppwszPassword: *mut PCWSTR, - ppIdentifier: *mut PCRYPT_DATA_BLOB, - ) -> BOOL, ->; -pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_RELEASE = - ::std::option::Option; -pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_PASSWORD = - ::std::option::Option; -pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE = - ::std::option::Option; -pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_IDENTIFIER = ::std::option::Option< - unsafe extern "C" fn(pPluginContext: LPVOID, pIdentifier: PCRYPT_DATA_BLOB), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPT_OBJECT_LOCATOR_PROVIDER_TABLE { - pub cbSize: DWORD, - pub pfnGet: PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_GET, - pub pfnRelease: PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_RELEASE, - pub pfnFreePassword: PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_PASSWORD, - pub pfnFree: PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE, - pub pfnFreeIdentifier: PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_IDENTIFIER, -} -pub type CRYPT_OBJECT_LOCATOR_PROVIDER_TABLE = _CRYPT_OBJECT_LOCATOR_PROVIDER_TABLE; -pub type PCRYPT_OBJECT_LOCATOR_PROVIDER_TABLE = *mut _CRYPT_OBJECT_LOCATOR_PROVIDER_TABLE; -pub type PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_INITIALIZE = ::std::option::Option< - unsafe extern "C" fn( - pfnFlush: PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FLUSH, - pContext: LPVOID, - pdwExpectedObjectCount: *mut DWORD, - ppFuncTable: *mut PCRYPT_OBJECT_LOCATOR_PROVIDER_TABLE, - ppPluginContext: *mut *mut ::std::os::raw::c_void, - ) -> BOOL, ->; -extern "C" { - pub fn CertIsWeakHash( - dwHashUseType: DWORD, - pwszCNGHashAlgid: LPCWSTR, - dwChainFlags: DWORD, - pSignerChainContext: PCCERT_CHAIN_CONTEXT, - pTimeStamp: LPFILETIME, - pwszFileName: LPCWSTR, - ) -> BOOL; -} -pub type PFN_CERT_IS_WEAK_HASH = ::std::option::Option< - unsafe extern "C" fn( - dwHashUseType: DWORD, - pwszCNGHashAlgid: LPCWSTR, - dwChainFlags: DWORD, - pSignerChainContext: PCCERT_CHAIN_CONTEXT, - pTimeStamp: LPFILETIME, - pwszFileName: LPCWSTR, - ) -> BOOL, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRYPTPROTECT_PROMPTSTRUCT { - pub cbSize: DWORD, - pub dwPromptFlags: DWORD, - pub hwndApp: HWND, - pub szPrompt: LPCWSTR, -} -pub type CRYPTPROTECT_PROMPTSTRUCT = _CRYPTPROTECT_PROMPTSTRUCT; -pub type PCRYPTPROTECT_PROMPTSTRUCT = *mut _CRYPTPROTECT_PROMPTSTRUCT; -extern "C" { - pub fn CryptProtectData( - pDataIn: *mut DATA_BLOB, - szDataDescr: LPCWSTR, - pOptionalEntropy: *mut DATA_BLOB, - pvReserved: PVOID, - pPromptStruct: *mut CRYPTPROTECT_PROMPTSTRUCT, - dwFlags: DWORD, - pDataOut: *mut DATA_BLOB, - ) -> BOOL; -} -extern "C" { - pub fn CryptUnprotectData( - pDataIn: *mut DATA_BLOB, - ppszDataDescr: *mut LPWSTR, - pOptionalEntropy: *mut DATA_BLOB, - pvReserved: PVOID, - pPromptStruct: *mut CRYPTPROTECT_PROMPTSTRUCT, - dwFlags: DWORD, - pDataOut: *mut DATA_BLOB, - ) -> BOOL; -} -extern "C" { - pub fn CryptProtectDataNoUI( - pDataIn: *mut DATA_BLOB, - szDataDescr: LPCWSTR, - pOptionalEntropy: *mut DATA_BLOB, - pvReserved: PVOID, - pPromptStruct: *mut CRYPTPROTECT_PROMPTSTRUCT, - dwFlags: DWORD, - pbOptionalPassword: *const BYTE, - cbOptionalPassword: DWORD, - pDataOut: *mut DATA_BLOB, - ) -> BOOL; -} -extern "C" { - pub fn CryptUnprotectDataNoUI( - pDataIn: *mut DATA_BLOB, - ppszDataDescr: *mut LPWSTR, - pOptionalEntropy: *mut DATA_BLOB, - pvReserved: PVOID, - pPromptStruct: *mut CRYPTPROTECT_PROMPTSTRUCT, - dwFlags: DWORD, - pbOptionalPassword: *const BYTE, - cbOptionalPassword: DWORD, - pDataOut: *mut DATA_BLOB, - ) -> BOOL; -} -extern "C" { - pub fn CryptUpdateProtectedState( - pOldSid: PSID, - pwszOldPassword: LPCWSTR, - dwFlags: DWORD, - pdwSuccessCount: *mut DWORD, - pdwFailureCount: *mut DWORD, - ) -> BOOL; -} -extern "C" { - pub fn CryptProtectMemory(pDataIn: LPVOID, cbDataIn: DWORD, dwFlags: DWORD) -> BOOL; -} -extern "C" { - pub fn CryptUnprotectMemory(pDataIn: LPVOID, cbDataIn: DWORD, dwFlags: DWORD) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CERTIFICATE_BLOB { - pub dwCertEncodingType: DWORD, - pub cbData: DWORD, - pub pbData: PBYTE, -} -pub type EFS_CERTIFICATE_BLOB = _CERTIFICATE_BLOB; -pub type PEFS_CERTIFICATE_BLOB = *mut _CERTIFICATE_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EFS_HASH_BLOB { - pub cbData: DWORD, - pub pbData: PBYTE, -} -pub type EFS_HASH_BLOB = _EFS_HASH_BLOB; -pub type PEFS_HASH_BLOB = *mut _EFS_HASH_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EFS_RPC_BLOB { - pub cbData: DWORD, - pub pbData: PBYTE, -} -pub type EFS_RPC_BLOB = _EFS_RPC_BLOB; -pub type PEFS_RPC_BLOB = *mut _EFS_RPC_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EFS_PIN_BLOB { - pub cbPadding: DWORD, - pub cbData: DWORD, - pub pbData: PBYTE, -} -pub type EFS_PIN_BLOB = _EFS_PIN_BLOB; -pub type PEFS_PIN_BLOB = *mut _EFS_PIN_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EFS_KEY_INFO { - pub dwVersion: DWORD, - pub Entropy: ULONG, - pub Algorithm: ALG_ID, - pub KeyLength: ULONG, -} -pub type EFS_KEY_INFO = _EFS_KEY_INFO; -pub type PEFS_KEY_INFO = *mut _EFS_KEY_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EFS_COMPATIBILITY_INFO { - pub EfsVersion: DWORD, -} -pub type EFS_COMPATIBILITY_INFO = _EFS_COMPATIBILITY_INFO; -pub type PEFS_COMPATIBILITY_INFO = *mut _EFS_COMPATIBILITY_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EFS_VERSION_INFO { - pub EfsVersion: DWORD, - pub SubVersion: DWORD, -} -pub type EFS_VERSION_INFO = _EFS_VERSION_INFO; -pub type PEFS_VERSION_INFO = *mut _EFS_VERSION_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EFS_DECRYPTION_STATUS_INFO { - pub dwDecryptionError: DWORD, - pub dwHashOffset: DWORD, - pub cbHash: DWORD, -} -pub type EFS_DECRYPTION_STATUS_INFO = _EFS_DECRYPTION_STATUS_INFO; -pub type PEFS_DECRYPTION_STATUS_INFO = *mut _EFS_DECRYPTION_STATUS_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EFS_ENCRYPTION_STATUS_INFO { - pub bHasCurrentKey: BOOL, - pub dwEncryptionError: DWORD, -} -pub type EFS_ENCRYPTION_STATUS_INFO = _EFS_ENCRYPTION_STATUS_INFO; -pub type PEFS_ENCRYPTION_STATUS_INFO = *mut _EFS_ENCRYPTION_STATUS_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCRYPTION_CERTIFICATE { - pub cbTotalLength: DWORD, - pub pUserSid: *mut SID, - pub pCertBlob: PEFS_CERTIFICATE_BLOB, -} -pub type ENCRYPTION_CERTIFICATE = _ENCRYPTION_CERTIFICATE; -pub type PENCRYPTION_CERTIFICATE = *mut _ENCRYPTION_CERTIFICATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCRYPTION_CERTIFICATE_HASH { - pub cbTotalLength: DWORD, - pub pUserSid: *mut SID, - pub pHash: PEFS_HASH_BLOB, - pub lpDisplayInformation: LPWSTR, -} -pub type ENCRYPTION_CERTIFICATE_HASH = _ENCRYPTION_CERTIFICATE_HASH; -pub type PENCRYPTION_CERTIFICATE_HASH = *mut _ENCRYPTION_CERTIFICATE_HASH; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCRYPTION_CERTIFICATE_HASH_LIST { - pub nCert_Hash: DWORD, - pub pUsers: *mut PENCRYPTION_CERTIFICATE_HASH, -} -pub type ENCRYPTION_CERTIFICATE_HASH_LIST = _ENCRYPTION_CERTIFICATE_HASH_LIST; -pub type PENCRYPTION_CERTIFICATE_HASH_LIST = *mut _ENCRYPTION_CERTIFICATE_HASH_LIST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCRYPTION_CERTIFICATE_LIST { - pub nUsers: DWORD, - pub pUsers: *mut PENCRYPTION_CERTIFICATE, -} -pub type ENCRYPTION_CERTIFICATE_LIST = _ENCRYPTION_CERTIFICATE_LIST; -pub type PENCRYPTION_CERTIFICATE_LIST = *mut _ENCRYPTION_CERTIFICATE_LIST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCRYPTED_FILE_METADATA_SIGNATURE { - pub dwEfsAccessType: DWORD, - pub pCertificatesAdded: PENCRYPTION_CERTIFICATE_HASH_LIST, - pub pEncryptionCertificate: PENCRYPTION_CERTIFICATE, - pub pEfsStreamSignature: PEFS_RPC_BLOB, -} -pub type ENCRYPTED_FILE_METADATA_SIGNATURE = _ENCRYPTED_FILE_METADATA_SIGNATURE; -pub type PENCRYPTED_FILE_METADATA_SIGNATURE = *mut _ENCRYPTED_FILE_METADATA_SIGNATURE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCRYPTION_PROTECTOR { - pub cbTotalLength: DWORD, - pub pUserSid: *mut SID, - pub lpProtectorDescriptor: LPWSTR, -} -pub type ENCRYPTION_PROTECTOR = _ENCRYPTION_PROTECTOR; -pub type PENCRYPTION_PROTECTOR = *mut _ENCRYPTION_PROTECTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCRYPTION_PROTECTOR_LIST { - pub nProtectors: DWORD, - pub pProtectors: *mut PENCRYPTION_PROTECTOR, -} -pub type ENCRYPTION_PROTECTOR_LIST = _ENCRYPTION_PROTECTOR_LIST; -pub type PENCRYPTION_PROTECTOR_LIST = *mut _ENCRYPTION_PROTECTOR_LIST; -extern "C" { - pub fn QueryUsersOnEncryptedFile( - lpFileName: LPCWSTR, - pUsers: *mut PENCRYPTION_CERTIFICATE_HASH_LIST, - ) -> DWORD; -} -extern "C" { - pub fn QueryRecoveryAgentsOnEncryptedFile( - lpFileName: LPCWSTR, - pRecoveryAgents: *mut PENCRYPTION_CERTIFICATE_HASH_LIST, - ) -> DWORD; -} -extern "C" { - pub fn RemoveUsersFromEncryptedFile( - lpFileName: LPCWSTR, - pHashes: PENCRYPTION_CERTIFICATE_HASH_LIST, - ) -> DWORD; -} -extern "C" { - pub fn AddUsersToEncryptedFile( - lpFileName: LPCWSTR, - pEncryptionCertificates: PENCRYPTION_CERTIFICATE_LIST, - ) -> DWORD; -} -extern "C" { - pub fn SetUserFileEncryptionKey(pEncryptionCertificate: PENCRYPTION_CERTIFICATE) -> DWORD; -} -extern "C" { - pub fn SetUserFileEncryptionKeyEx( - pEncryptionCertificate: PENCRYPTION_CERTIFICATE, - dwCapabilities: DWORD, - dwFlags: DWORD, - pvReserved: LPVOID, - ) -> DWORD; -} -extern "C" { - pub fn FreeEncryptionCertificateHashList(pUsers: PENCRYPTION_CERTIFICATE_HASH_LIST); -} -extern "C" { - pub fn EncryptionDisable(DirPath: LPCWSTR, Disable: BOOL) -> BOOL; -} -extern "C" { - pub fn DuplicateEncryptionInfoFile( - SrcFileName: LPCWSTR, - DstFileName: LPCWSTR, - dwCreationDistribution: DWORD, - dwAttributes: DWORD, - lpSecurityAttributes: LPSECURITY_ATTRIBUTES, - ) -> DWORD; -} -extern "C" { - pub fn GetEncryptedFileMetadata( - lpFileName: LPCWSTR, - pcbMetadata: PDWORD, - ppbMetadata: *mut PBYTE, - ) -> DWORD; -} -extern "C" { - pub fn SetEncryptedFileMetadata( - lpFileName: LPCWSTR, - pbOldMetadata: PBYTE, - pbNewMetadata: PBYTE, - pOwnerHash: PENCRYPTION_CERTIFICATE_HASH, - dwOperation: DWORD, - pCertificatesAdded: PENCRYPTION_CERTIFICATE_HASH_LIST, - ) -> DWORD; -} -extern "C" { - pub fn FreeEncryptedFileMetadata(pbMetadata: PBYTE); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RPC_IMPORT_CONTEXT_P { - pub LookupContext: RPC_NS_HANDLE, - pub ProposedHandle: RPC_BINDING_HANDLE, - pub Bindings: *mut RPC_BINDING_VECTOR, -} -pub type PRPC_IMPORT_CONTEXT_P = *mut RPC_IMPORT_CONTEXT_P; -extern "C" { - pub fn I_RpcNsGetBuffer(Message: PRPC_MESSAGE) -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcNsSendReceive(Message: PRPC_MESSAGE, Handle: *mut RPC_BINDING_HANDLE) - -> RPC_STATUS; -} -extern "C" { - pub fn I_RpcNsRaiseException(Message: PRPC_MESSAGE, Status: RPC_STATUS); -} -extern "C" { - pub fn I_RpcReBindBuffer(Message: PRPC_MESSAGE) -> RPC_STATUS; -} -extern "C" { - pub fn I_NsServerBindSearch() -> RPC_STATUS; -} -extern "C" { - pub fn I_NsClientBindSearch() -> RPC_STATUS; -} -extern "C" { - pub fn I_NsClientBindDone(); -} -pub type byte = ::std::os::raw::c_uchar; -pub type cs_byte = byte; -pub type boolean = ::std::os::raw::c_uchar; -extern "C" { - pub fn MIDL_user_allocate(size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn MIDL_user_free(arg1: *mut ::std::os::raw::c_void); -} -extern "C" { - pub fn I_RpcDefaultAllocate( - bh: handle_t, - size: usize, - RealAlloc: ::std::option::Option< - unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void, - >, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn I_RpcDefaultFree( - bh: handle_t, - arg1: *mut ::std::os::raw::c_void, - RealFree: ::std::option::Option, - ); -} -pub type NDR_CCONTEXT = *mut ::std::os::raw::c_void; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NDR_SCONTEXT { - pub pad: [*mut ::std::os::raw::c_void; 2usize], - pub userContext: *mut ::std::os::raw::c_void, -} -pub type NDR_SCONTEXT = *mut _NDR_SCONTEXT; -pub type NDR_RUNDOWN = - ::std::option::Option; -pub type NDR_NOTIFY_ROUTINE = ::std::option::Option; -pub type NDR_NOTIFY2_ROUTINE = ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCONTEXT_QUEUE { - pub NumberOfObjects: ::std::os::raw::c_ulong, - pub ArrayOfObjects: *mut NDR_SCONTEXT, -} -pub type SCONTEXT_QUEUE = _SCONTEXT_QUEUE; -pub type PSCONTEXT_QUEUE = *mut _SCONTEXT_QUEUE; -extern "C" { - pub fn NDRCContextBinding(CContext: NDR_CCONTEXT) -> RPC_BINDING_HANDLE; -} -extern "C" { - pub fn NDRCContextMarshall(CContext: NDR_CCONTEXT, pBuff: *mut ::std::os::raw::c_void); -} -extern "C" { - pub fn NDRCContextUnmarshall( - pCContext: *mut NDR_CCONTEXT, - hBinding: RPC_BINDING_HANDLE, - pBuff: *mut ::std::os::raw::c_void, - DataRepresentation: ::std::os::raw::c_ulong, - ); -} -extern "C" { - pub fn NDRCContextUnmarshall2( - pCContext: *mut NDR_CCONTEXT, - hBinding: RPC_BINDING_HANDLE, - pBuff: *mut ::std::os::raw::c_void, - DataRepresentation: ::std::os::raw::c_ulong, - ); -} -extern "C" { - pub fn NDRSContextMarshall( - CContext: NDR_SCONTEXT, - pBuff: *mut ::std::os::raw::c_void, - userRunDownIn: NDR_RUNDOWN, - ); -} -extern "C" { - pub fn NDRSContextUnmarshall( - pBuff: *mut ::std::os::raw::c_void, - DataRepresentation: ::std::os::raw::c_ulong, - ) -> NDR_SCONTEXT; -} -extern "C" { - pub fn NDRSContextMarshallEx( - BindingHandle: RPC_BINDING_HANDLE, - CContext: NDR_SCONTEXT, - pBuff: *mut ::std::os::raw::c_void, - userRunDownIn: NDR_RUNDOWN, - ); -} -extern "C" { - pub fn NDRSContextMarshall2( - BindingHandle: RPC_BINDING_HANDLE, - CContext: NDR_SCONTEXT, - pBuff: *mut ::std::os::raw::c_void, - userRunDownIn: NDR_RUNDOWN, - CtxGuard: *mut ::std::os::raw::c_void, - Flags: ::std::os::raw::c_ulong, - ); -} -extern "C" { - pub fn NDRSContextUnmarshallEx( - BindingHandle: RPC_BINDING_HANDLE, - pBuff: *mut ::std::os::raw::c_void, - DataRepresentation: ::std::os::raw::c_ulong, - ) -> NDR_SCONTEXT; -} -extern "C" { - pub fn NDRSContextUnmarshall2( - BindingHandle: RPC_BINDING_HANDLE, - pBuff: *mut ::std::os::raw::c_void, - DataRepresentation: ::std::os::raw::c_ulong, - CtxGuard: *mut ::std::os::raw::c_void, - Flags: ::std::os::raw::c_ulong, - ) -> NDR_SCONTEXT; -} -extern "C" { - pub fn RpcSsDestroyClientContext(ContextHandle: *mut *mut ::std::os::raw::c_void); -} -pub type error_status_t = ::std::os::raw::c_ulong; -pub type RPC_BUFPTR = *mut ::std::os::raw::c_uchar; -pub type RPC_LENGTH = ::std::os::raw::c_ulong; -pub type EXPR_EVAL = ::std::option::Option; -pub type PFORMAT_STRING = *const ::std::os::raw::c_uchar; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ARRAY_INFO { - pub Dimension: ::std::os::raw::c_long, - pub BufferConformanceMark: *mut ::std::os::raw::c_ulong, - pub BufferVarianceMark: *mut ::std::os::raw::c_ulong, - pub MaxCountArray: *mut ::std::os::raw::c_ulong, - pub OffsetArray: *mut ::std::os::raw::c_ulong, - pub ActualCountArray: *mut ::std::os::raw::c_ulong, -} -pub type PARRAY_INFO = *mut ARRAY_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NDR_ASYNC_MESSAGE { - _unused: [u8; 0], -} -pub type PNDR_ASYNC_MESSAGE = *mut _NDR_ASYNC_MESSAGE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NDR_CORRELATION_INFO { - _unused: [u8; 0], -} -pub type PNDR_CORRELATION_INFO = *mut _NDR_CORRELATION_INFO; -pub type MIDL_SYNTAX_INFO = _MIDL_SYNTAX_INFO; -pub type PMIDL_SYNTAX_INFO = *mut _MIDL_SYNTAX_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NDR_ALLOC_ALL_NODES_CONTEXT { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NDR_POINTER_QUEUE_STATE { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NDR_PROC_CONTEXT { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MIDL_STUB_MESSAGE { - pub RpcMsg: PRPC_MESSAGE, - pub Buffer: *mut ::std::os::raw::c_uchar, - pub BufferStart: *mut ::std::os::raw::c_uchar, - pub BufferEnd: *mut ::std::os::raw::c_uchar, - pub BufferMark: *mut ::std::os::raw::c_uchar, - pub BufferLength: ::std::os::raw::c_ulong, - pub MemorySize: ::std::os::raw::c_ulong, - pub Memory: *mut ::std::os::raw::c_uchar, - pub IsClient: ::std::os::raw::c_uchar, - pub Pad: ::std::os::raw::c_uchar, - pub uFlags2: ::std::os::raw::c_ushort, - pub ReuseBuffer: ::std::os::raw::c_int, - pub pAllocAllNodesContext: *mut NDR_ALLOC_ALL_NODES_CONTEXT, - pub pPointerQueueState: *mut NDR_POINTER_QUEUE_STATE, - pub IgnoreEmbeddedPointers: ::std::os::raw::c_int, - pub PointerBufferMark: *mut ::std::os::raw::c_uchar, - pub CorrDespIncrement: ::std::os::raw::c_uchar, - pub uFlags: ::std::os::raw::c_uchar, - pub UniquePtrCount: ::std::os::raw::c_ushort, - pub MaxCount: ULONG_PTR, - pub Offset: ::std::os::raw::c_ulong, - pub ActualCount: ::std::os::raw::c_ulong, - pub pfnAllocate: - ::std::option::Option *mut ::std::os::raw::c_void>, - pub pfnFree: ::std::option::Option, - pub StackTop: *mut ::std::os::raw::c_uchar, - pub pPresentedType: *mut ::std::os::raw::c_uchar, - pub pTransmitType: *mut ::std::os::raw::c_uchar, - pub SavedHandle: handle_t, - pub StubDesc: *const _MIDL_STUB_DESC, - pub FullPtrXlatTables: *mut _FULL_PTR_XLAT_TABLES, - pub FullPtrRefId: ::std::os::raw::c_ulong, - pub PointerLength: ::std::os::raw::c_ulong, - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, - pub dwDestContext: ::std::os::raw::c_ulong, - pub pvDestContext: *mut ::std::os::raw::c_void, - pub SavedContextHandles: *mut NDR_SCONTEXT, - pub ParamNumber: ::std::os::raw::c_long, - pub pRpcChannelBuffer: *mut IRpcChannelBuffer, - pub pArrayInfo: PARRAY_INFO, - pub SizePtrCountArray: *mut ::std::os::raw::c_ulong, - pub SizePtrOffsetArray: *mut ::std::os::raw::c_ulong, - pub SizePtrLengthArray: *mut ::std::os::raw::c_ulong, - pub pArgQueue: *mut ::std::os::raw::c_void, - pub dwStubPhase: ::std::os::raw::c_ulong, - pub LowStackMark: *mut ::std::os::raw::c_void, - pub pAsyncMsg: PNDR_ASYNC_MESSAGE, - pub pCorrInfo: PNDR_CORRELATION_INFO, - pub pCorrMemory: *mut ::std::os::raw::c_uchar, - pub pMemoryList: *mut ::std::os::raw::c_void, - pub pCSInfo: INT_PTR, - pub ConformanceMark: *mut ::std::os::raw::c_uchar, - pub VarianceMark: *mut ::std::os::raw::c_uchar, - pub Unused: INT_PTR, - pub pContext: *mut _NDR_PROC_CONTEXT, - pub ContextHandleHash: *mut ::std::os::raw::c_void, - pub pUserMarshalList: *mut ::std::os::raw::c_void, - pub Reserved51_3: INT_PTR, - pub Reserved51_4: INT_PTR, - pub Reserved51_5: INT_PTR, -} -impl _MIDL_STUB_MESSAGE { - #[inline] - pub fn fInDontFree(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_fInDontFree(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn fDontCallFreeInst(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_fDontCallFreeInst(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn fUnused1(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_fUnused1(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn fHasReturn(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_fHasReturn(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) - } - } - #[inline] - pub fn fHasExtensions(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } - } - #[inline] - pub fn set_fHasExtensions(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn fHasNewCorrDesc(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } - } - #[inline] - pub fn set_fHasNewCorrDesc(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 1u8, val as u64) - } - } - #[inline] - pub fn fIsIn(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } - } - #[inline] - pub fn set_fIsIn(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(6usize, 1u8, val as u64) - } - } - #[inline] - pub fn fIsOut(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } - } - #[inline] - pub fn set_fIsOut(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(7usize, 1u8, val as u64) - } - } - #[inline] - pub fn fIsOicf(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) } - } - #[inline] - pub fn set_fIsOicf(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 1u8, val as u64) - } - } - #[inline] - pub fn fBufferValid(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) } - } - #[inline] - pub fn set_fBufferValid(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(9usize, 1u8, val as u64) - } - } - #[inline] - pub fn fHasMemoryValidateCallback(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) } - } - #[inline] - pub fn set_fHasMemoryValidateCallback(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(10usize, 1u8, val as u64) - } - } - #[inline] - pub fn fInFree(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) } - } - #[inline] - pub fn set_fInFree(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(11usize, 1u8, val as u64) - } - } - #[inline] - pub fn fNeedMCCP(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) } - } - #[inline] - pub fn set_fNeedMCCP(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(12usize, 1u8, val as u64) - } - } - #[inline] - pub fn fUnused2(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 3u8) as u32) } - } - #[inline] - pub fn set_fUnused2(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(13usize, 3u8, val as u64) - } - } - #[inline] - pub fn fUnused3(&self) -> ::std::os::raw::c_int { - unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } - } - #[inline] - pub fn set_fUnused3(&mut self, val: ::std::os::raw::c_int) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(16usize, 16u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - fInDontFree: ::std::os::raw::c_int, - fDontCallFreeInst: ::std::os::raw::c_int, - fUnused1: ::std::os::raw::c_int, - fHasReturn: ::std::os::raw::c_int, - fHasExtensions: ::std::os::raw::c_int, - fHasNewCorrDesc: ::std::os::raw::c_int, - fIsIn: ::std::os::raw::c_int, - fIsOut: ::std::os::raw::c_int, - fIsOicf: ::std::os::raw::c_int, - fBufferValid: ::std::os::raw::c_int, - fHasMemoryValidateCallback: ::std::os::raw::c_int, - fInFree: ::std::os::raw::c_int, - fNeedMCCP: ::std::os::raw::c_int, - fUnused2: ::std::os::raw::c_int, - fUnused3: ::std::os::raw::c_int, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let fInDontFree: u32 = unsafe { ::std::mem::transmute(fInDontFree) }; - fInDontFree as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let fDontCallFreeInst: u32 = unsafe { ::std::mem::transmute(fDontCallFreeInst) }; - fDontCallFreeInst as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let fUnused1: u32 = unsafe { ::std::mem::transmute(fUnused1) }; - fUnused1 as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let fHasReturn: u32 = unsafe { ::std::mem::transmute(fHasReturn) }; - fHasReturn as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let fHasExtensions: u32 = unsafe { ::std::mem::transmute(fHasExtensions) }; - fHasExtensions as u64 - }); - __bindgen_bitfield_unit.set(5usize, 1u8, { - let fHasNewCorrDesc: u32 = unsafe { ::std::mem::transmute(fHasNewCorrDesc) }; - fHasNewCorrDesc as u64 - }); - __bindgen_bitfield_unit.set(6usize, 1u8, { - let fIsIn: u32 = unsafe { ::std::mem::transmute(fIsIn) }; - fIsIn as u64 - }); - __bindgen_bitfield_unit.set(7usize, 1u8, { - let fIsOut: u32 = unsafe { ::std::mem::transmute(fIsOut) }; - fIsOut as u64 - }); - __bindgen_bitfield_unit.set(8usize, 1u8, { - let fIsOicf: u32 = unsafe { ::std::mem::transmute(fIsOicf) }; - fIsOicf as u64 - }); - __bindgen_bitfield_unit.set(9usize, 1u8, { - let fBufferValid: u32 = unsafe { ::std::mem::transmute(fBufferValid) }; - fBufferValid as u64 - }); - __bindgen_bitfield_unit.set(10usize, 1u8, { - let fHasMemoryValidateCallback: u32 = - unsafe { ::std::mem::transmute(fHasMemoryValidateCallback) }; - fHasMemoryValidateCallback as u64 - }); - __bindgen_bitfield_unit.set(11usize, 1u8, { - let fInFree: u32 = unsafe { ::std::mem::transmute(fInFree) }; - fInFree as u64 - }); - __bindgen_bitfield_unit.set(12usize, 1u8, { - let fNeedMCCP: u32 = unsafe { ::std::mem::transmute(fNeedMCCP) }; - fNeedMCCP as u64 - }); - __bindgen_bitfield_unit.set(13usize, 3u8, { - let fUnused2: u32 = unsafe { ::std::mem::transmute(fUnused2) }; - fUnused2 as u64 - }); - __bindgen_bitfield_unit.set(16usize, 16u8, { - let fUnused3: u32 = unsafe { ::std::mem::transmute(fUnused3) }; - fUnused3 as u64 - }); - __bindgen_bitfield_unit - } -} -pub type MIDL_STUB_MESSAGE = _MIDL_STUB_MESSAGE; -pub type PMIDL_STUB_MESSAGE = *mut _MIDL_STUB_MESSAGE; -pub type GENERIC_BINDING_ROUTINE = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void, ->; -pub type GENERIC_UNBIND_ROUTINE = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: *mut ::std::os::raw::c_uchar), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _GENERIC_BINDING_ROUTINE_PAIR { - pub pfnBind: GENERIC_BINDING_ROUTINE, - pub pfnUnbind: GENERIC_UNBIND_ROUTINE, -} -pub type GENERIC_BINDING_ROUTINE_PAIR = _GENERIC_BINDING_ROUTINE_PAIR; -pub type PGENERIC_BINDING_ROUTINE_PAIR = *mut _GENERIC_BINDING_ROUTINE_PAIR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __GENERIC_BINDING_INFO { - pub pObj: *mut ::std::os::raw::c_void, - pub Size: ::std::os::raw::c_uint, - pub pfnBind: GENERIC_BINDING_ROUTINE, - pub pfnUnbind: GENERIC_UNBIND_ROUTINE, -} -pub type GENERIC_BINDING_INFO = __GENERIC_BINDING_INFO; -pub type PGENERIC_BINDING_INFO = *mut __GENERIC_BINDING_INFO; -pub type XMIT_HELPER_ROUTINE = - ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _XMIT_ROUTINE_QUINTUPLE { - pub pfnTranslateToXmit: XMIT_HELPER_ROUTINE, - pub pfnTranslateFromXmit: XMIT_HELPER_ROUTINE, - pub pfnFreeXmit: XMIT_HELPER_ROUTINE, - pub pfnFreeInst: XMIT_HELPER_ROUTINE, -} -pub type XMIT_ROUTINE_QUINTUPLE = _XMIT_ROUTINE_QUINTUPLE; -pub type PXMIT_ROUTINE_QUINTUPLE = *mut _XMIT_ROUTINE_QUINTUPLE; -pub type USER_MARSHAL_SIZING_ROUTINE = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_ulong, ->; -pub type USER_MARSHAL_MARSHALLING_ROUTINE = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_uchar, ->; -pub type USER_MARSHAL_UNMARSHALLING_ROUTINE = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_uchar, ->; -pub type USER_MARSHAL_FREEING_ROUTINE = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut ::std::os::raw::c_void), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _USER_MARSHAL_ROUTINE_QUADRUPLE { - pub pfnBufferSize: USER_MARSHAL_SIZING_ROUTINE, - pub pfnMarshall: USER_MARSHAL_MARSHALLING_ROUTINE, - pub pfnUnmarshall: USER_MARSHAL_UNMARSHALLING_ROUTINE, - pub pfnFree: USER_MARSHAL_FREEING_ROUTINE, -} -pub type USER_MARSHAL_ROUTINE_QUADRUPLE = _USER_MARSHAL_ROUTINE_QUADRUPLE; -pub const _USER_MARSHAL_CB_TYPE_USER_MARSHAL_CB_BUFFER_SIZE: _USER_MARSHAL_CB_TYPE = 0; -pub const _USER_MARSHAL_CB_TYPE_USER_MARSHAL_CB_MARSHALL: _USER_MARSHAL_CB_TYPE = 1; -pub const _USER_MARSHAL_CB_TYPE_USER_MARSHAL_CB_UNMARSHALL: _USER_MARSHAL_CB_TYPE = 2; -pub const _USER_MARSHAL_CB_TYPE_USER_MARSHAL_CB_FREE: _USER_MARSHAL_CB_TYPE = 3; -pub type _USER_MARSHAL_CB_TYPE = ::std::os::raw::c_int; -pub use self::_USER_MARSHAL_CB_TYPE as USER_MARSHAL_CB_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _USER_MARSHAL_CB { - pub Flags: ::std::os::raw::c_ulong, - pub pStubMsg: PMIDL_STUB_MESSAGE, - pub pReserve: PFORMAT_STRING, - pub Signature: ::std::os::raw::c_ulong, - pub CBType: USER_MARSHAL_CB_TYPE, - pub pFormat: PFORMAT_STRING, - pub pTypeFormat: PFORMAT_STRING, -} -pub type USER_MARSHAL_CB = _USER_MARSHAL_CB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MALLOC_FREE_STRUCT { - pub pfnAllocate: - ::std::option::Option *mut ::std::os::raw::c_void>, - pub pfnFree: ::std::option::Option, -} -pub type MALLOC_FREE_STRUCT = _MALLOC_FREE_STRUCT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _COMM_FAULT_OFFSETS { - pub CommOffset: ::std::os::raw::c_short, - pub FaultOffset: ::std::os::raw::c_short, -} -pub type COMM_FAULT_OFFSETS = _COMM_FAULT_OFFSETS; -pub const _IDL_CS_CONVERT_IDL_CS_NO_CONVERT: _IDL_CS_CONVERT = 0; -pub const _IDL_CS_CONVERT_IDL_CS_IN_PLACE_CONVERT: _IDL_CS_CONVERT = 1; -pub const _IDL_CS_CONVERT_IDL_CS_NEW_BUFFER_CONVERT: _IDL_CS_CONVERT = 2; -pub type _IDL_CS_CONVERT = ::std::os::raw::c_int; -pub use self::_IDL_CS_CONVERT as IDL_CS_CONVERT; -pub type CS_TYPE_NET_SIZE_ROUTINE = ::std::option::Option< - unsafe extern "C" fn( - hBinding: RPC_BINDING_HANDLE, - ulNetworkCodeSet: ::std::os::raw::c_ulong, - ulLocalBufferSize: ::std::os::raw::c_ulong, - conversionType: *mut IDL_CS_CONVERT, - pulNetworkBufferSize: *mut ::std::os::raw::c_ulong, - pStatus: *mut error_status_t, - ), ->; -pub type CS_TYPE_LOCAL_SIZE_ROUTINE = ::std::option::Option< - unsafe extern "C" fn( - hBinding: RPC_BINDING_HANDLE, - ulNetworkCodeSet: ::std::os::raw::c_ulong, - ulNetworkBufferSize: ::std::os::raw::c_ulong, - conversionType: *mut IDL_CS_CONVERT, - pulLocalBufferSize: *mut ::std::os::raw::c_ulong, - pStatus: *mut error_status_t, - ), ->; -pub type CS_TYPE_TO_NETCS_ROUTINE = ::std::option::Option< - unsafe extern "C" fn( - hBinding: RPC_BINDING_HANDLE, - ulNetworkCodeSet: ::std::os::raw::c_ulong, - pLocalData: *mut ::std::os::raw::c_void, - ulLocalDataLength: ::std::os::raw::c_ulong, - pNetworkData: *mut byte, - pulNetworkDataLength: *mut ::std::os::raw::c_ulong, - pStatus: *mut error_status_t, - ), ->; -pub type CS_TYPE_FROM_NETCS_ROUTINE = ::std::option::Option< - unsafe extern "C" fn( - hBinding: RPC_BINDING_HANDLE, - ulNetworkCodeSet: ::std::os::raw::c_ulong, - pNetworkData: *mut byte, - ulNetworkDataLength: ::std::os::raw::c_ulong, - ulLocalBufferSize: ::std::os::raw::c_ulong, - pLocalData: *mut ::std::os::raw::c_void, - pulLocalDataLength: *mut ::std::os::raw::c_ulong, - pStatus: *mut error_status_t, - ), ->; -pub type CS_TAG_GETTING_ROUTINE = ::std::option::Option< - unsafe extern "C" fn( - hBinding: RPC_BINDING_HANDLE, - fServerSide: ::std::os::raw::c_int, - pulSendingTag: *mut ::std::os::raw::c_ulong, - pulDesiredReceivingTag: *mut ::std::os::raw::c_ulong, - pulReceivingTag: *mut ::std::os::raw::c_ulong, - pStatus: *mut error_status_t, - ), ->; -extern "C" { - pub fn RpcCsGetTags( - hBinding: RPC_BINDING_HANDLE, - fServerSide: ::std::os::raw::c_int, - pulSendingTag: *mut ::std::os::raw::c_ulong, - pulDesiredReceivingTag: *mut ::std::os::raw::c_ulong, - pulReceivingTag: *mut ::std::os::raw::c_ulong, - pStatus: *mut error_status_t, - ); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NDR_CS_SIZE_CONVERT_ROUTINES { - pub pfnNetSize: CS_TYPE_NET_SIZE_ROUTINE, - pub pfnToNetCs: CS_TYPE_TO_NETCS_ROUTINE, - pub pfnLocalSize: CS_TYPE_LOCAL_SIZE_ROUTINE, - pub pfnFromNetCs: CS_TYPE_FROM_NETCS_ROUTINE, -} -pub type NDR_CS_SIZE_CONVERT_ROUTINES = _NDR_CS_SIZE_CONVERT_ROUTINES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NDR_CS_ROUTINES { - pub pSizeConvertRoutines: *mut NDR_CS_SIZE_CONVERT_ROUTINES, - pub pTagGettingRoutines: *mut CS_TAG_GETTING_ROUTINE, -} -pub type NDR_CS_ROUTINES = _NDR_CS_ROUTINES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NDR_EXPR_DESC { - pub pOffset: *const ::std::os::raw::c_ushort, - pub pFormatExpr: PFORMAT_STRING, -} -pub type NDR_EXPR_DESC = _NDR_EXPR_DESC; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _MIDL_STUB_DESC { - pub RpcInterfaceInformation: *mut ::std::os::raw::c_void, - pub pfnAllocate: - ::std::option::Option *mut ::std::os::raw::c_void>, - pub pfnFree: ::std::option::Option, - pub IMPLICIT_HANDLE_INFO: _MIDL_STUB_DESC__bindgen_ty_1, - pub apfnNdrRundownRoutines: *const NDR_RUNDOWN, - pub aGenericBindingRoutinePairs: *const GENERIC_BINDING_ROUTINE_PAIR, - pub apfnExprEval: *const EXPR_EVAL, - pub aXmitQuintuple: *const XMIT_ROUTINE_QUINTUPLE, - pub pFormatTypes: *const ::std::os::raw::c_uchar, - pub fCheckBounds: ::std::os::raw::c_int, - pub Version: ::std::os::raw::c_ulong, - pub pMallocFreeStruct: *mut MALLOC_FREE_STRUCT, - pub MIDLVersion: ::std::os::raw::c_long, - pub CommFaultOffsets: *const COMM_FAULT_OFFSETS, - pub aUserMarshalQuadruple: *const USER_MARSHAL_ROUTINE_QUADRUPLE, - pub NotifyRoutineTable: *const NDR_NOTIFY_ROUTINE, - pub mFlags: ULONG_PTR, - pub CsRoutineTables: *const NDR_CS_ROUTINES, - pub ProxyServerInfo: *mut ::std::os::raw::c_void, - pub pExprInfo: *const NDR_EXPR_DESC, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _MIDL_STUB_DESC__bindgen_ty_1 { - pub pAutoHandle: *mut handle_t, - pub pPrimitiveHandle: *mut handle_t, - pub pGenericBindingInfo: PGENERIC_BINDING_INFO, -} -pub type MIDL_STUB_DESC = _MIDL_STUB_DESC; -pub type PMIDL_STUB_DESC = *const MIDL_STUB_DESC; -pub type PMIDL_XMIT_TYPE = *mut ::std::os::raw::c_void; -#[repr(C)] -#[derive(Debug)] -pub struct _MIDL_FORMAT_STRING { - pub Pad: ::std::os::raw::c_short, - pub Format: __IncompleteArrayField<::std::os::raw::c_uchar>, -} -pub type MIDL_FORMAT_STRING = _MIDL_FORMAT_STRING; -pub type STUB_THUNK = ::std::option::Option; -pub type SERVER_ROUTINE = ::std::option::Option ::std::os::raw::c_long>; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MIDL_METHOD_PROPERTY { - pub Id: ::std::os::raw::c_ulong, - pub Value: ULONG_PTR, -} -pub type MIDL_METHOD_PROPERTY = _MIDL_METHOD_PROPERTY; -pub type PMIDL_METHOD_PROPERTY = *mut _MIDL_METHOD_PROPERTY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MIDL_METHOD_PROPERTY_MAP { - pub Count: ::std::os::raw::c_ulong, - pub Properties: *const MIDL_METHOD_PROPERTY, -} -pub type MIDL_METHOD_PROPERTY_MAP = _MIDL_METHOD_PROPERTY_MAP; -pub type PMIDL_METHOD_PROPERTY_MAP = *mut _MIDL_METHOD_PROPERTY_MAP; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MIDL_INTERFACE_METHOD_PROPERTIES { - pub MethodCount: ::std::os::raw::c_ushort, - pub MethodProperties: *const *const MIDL_METHOD_PROPERTY_MAP, -} -pub type MIDL_INTERFACE_METHOD_PROPERTIES = _MIDL_INTERFACE_METHOD_PROPERTIES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MIDL_SERVER_INFO_ { - pub pStubDesc: PMIDL_STUB_DESC, - pub DispatchTable: *const SERVER_ROUTINE, - pub ProcString: PFORMAT_STRING, - pub FmtStringOffset: *const ::std::os::raw::c_ushort, - pub ThunkTable: *const STUB_THUNK, - pub pTransferSyntax: PRPC_SYNTAX_IDENTIFIER, - pub nCount: ULONG_PTR, - pub pSyntaxInfo: PMIDL_SYNTAX_INFO, -} -pub type MIDL_SERVER_INFO = _MIDL_SERVER_INFO_; -pub type PMIDL_SERVER_INFO = *mut _MIDL_SERVER_INFO_; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MIDL_STUBLESS_PROXY_INFO { - pub pStubDesc: PMIDL_STUB_DESC, - pub ProcFormatString: PFORMAT_STRING, - pub FormatStringOffset: *const ::std::os::raw::c_ushort, - pub pTransferSyntax: PRPC_SYNTAX_IDENTIFIER, - pub nCount: ULONG_PTR, - pub pSyntaxInfo: PMIDL_SYNTAX_INFO, -} -pub type MIDL_STUBLESS_PROXY_INFO = _MIDL_STUBLESS_PROXY_INFO; -pub type PMIDL_STUBLESS_PROXY_INFO = *mut MIDL_STUBLESS_PROXY_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MIDL_SYNTAX_INFO { - pub TransferSyntax: RPC_SYNTAX_IDENTIFIER, - pub DispatchTable: *mut RPC_DISPATCH_TABLE, - pub ProcString: PFORMAT_STRING, - pub FmtStringOffset: *const ::std::os::raw::c_ushort, - pub TypeString: PFORMAT_STRING, - pub aUserMarshalQuadruple: *const ::std::os::raw::c_void, - pub pMethodProperties: *const MIDL_INTERFACE_METHOD_PROPERTIES, - pub pReserved2: ULONG_PTR, -} -pub type PARAM_OFFSETTABLE = *mut ::std::os::raw::c_ushort; -pub type PPARAM_OFFSETTABLE = *mut ::std::os::raw::c_ushort; -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CLIENT_CALL_RETURN { - pub Pointer: *mut ::std::os::raw::c_void, - pub Simple: LONG_PTR, -} -pub type CLIENT_CALL_RETURN = _CLIENT_CALL_RETURN; -pub const XLAT_SIDE_XLAT_SERVER: XLAT_SIDE = 1; -pub const XLAT_SIDE_XLAT_CLIENT: XLAT_SIDE = 2; -pub type XLAT_SIDE = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FULL_PTR_XLAT_TABLES { - pub RefIdToPointer: *mut ::std::os::raw::c_void, - pub PointerToRefId: *mut ::std::os::raw::c_void, - pub NextRefId: ::std::os::raw::c_ulong, - pub XlatSide: XLAT_SIDE, -} -pub type FULL_PTR_XLAT_TABLES = _FULL_PTR_XLAT_TABLES; -pub type PFULL_PTR_XLAT_TABLES = *mut _FULL_PTR_XLAT_TABLES; -pub const _system_handle_t_SYSTEM_HANDLE_FILE: _system_handle_t = 0; -pub const _system_handle_t_SYSTEM_HANDLE_SEMAPHORE: _system_handle_t = 1; -pub const _system_handle_t_SYSTEM_HANDLE_EVENT: _system_handle_t = 2; -pub const _system_handle_t_SYSTEM_HANDLE_MUTEX: _system_handle_t = 3; -pub const _system_handle_t_SYSTEM_HANDLE_PROCESS: _system_handle_t = 4; -pub const _system_handle_t_SYSTEM_HANDLE_TOKEN: _system_handle_t = 5; -pub const _system_handle_t_SYSTEM_HANDLE_SECTION: _system_handle_t = 6; -pub const _system_handle_t_SYSTEM_HANDLE_REG_KEY: _system_handle_t = 7; -pub const _system_handle_t_SYSTEM_HANDLE_THREAD: _system_handle_t = 8; -pub const _system_handle_t_SYSTEM_HANDLE_COMPOSITION_OBJECT: _system_handle_t = 9; -pub const _system_handle_t_SYSTEM_HANDLE_SOCKET: _system_handle_t = 10; -pub const _system_handle_t_SYSTEM_HANDLE_JOB: _system_handle_t = 11; -pub const _system_handle_t_SYSTEM_HANDLE_PIPE: _system_handle_t = 12; -pub const _system_handle_t_SYSTEM_HANDLE_MAX: _system_handle_t = 12; -pub const _system_handle_t_SYSTEM_HANDLE_INVALID: _system_handle_t = 255; -pub type _system_handle_t = ::std::os::raw::c_int; -pub use self::_system_handle_t as system_handle_t; -pub const MidlInterceptionInfoVersionOne: _bindgen_ty_2 = 1; -pub type _bindgen_ty_2 = ::std::os::raw::c_int; -pub const MidlWinrtTypeSerializationInfoVersionOne: _bindgen_ty_3 = 1; -pub type _bindgen_ty_3 = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MIDL_INTERCEPTION_INFO { - pub Version: ::std::os::raw::c_ulong, - pub ProcString: PFORMAT_STRING, - pub ProcFormatOffsetTable: *const ::std::os::raw::c_ushort, - pub ProcCount: ::std::os::raw::c_ulong, - pub TypeString: PFORMAT_STRING, -} -pub type MIDL_INTERCEPTION_INFO = _MIDL_INTERCEPTION_INFO; -pub type PMIDL_INTERCEPTION_INFO = *mut _MIDL_INTERCEPTION_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MIDL_WINRT_TYPE_SERIALIZATION_INFO { - pub Version: ::std::os::raw::c_ulong, - pub TypeFormatString: PFORMAT_STRING, - pub FormatStringSize: ::std::os::raw::c_ushort, - pub TypeOffset: ::std::os::raw::c_ushort, - pub StubDesc: PMIDL_STUB_DESC, -} -pub type MIDL_WINRT_TYPE_SERIALIZATION_INFO = _MIDL_WINRT_TYPE_SERIALIZATION_INFO; -pub type PMIDL_WINRT_TYPE_SERIALIZATION_INFO = *mut _MIDL_WINRT_TYPE_SERIALIZATION_INFO; -extern "C" { - pub fn NdrClientGetSupportedSyntaxes( - pInf: *mut RPC_CLIENT_INTERFACE, - pCount: *mut ::std::os::raw::c_ulong, - pArr: *mut *mut MIDL_SYNTAX_INFO, - ) -> RPC_STATUS; -} -extern "C" { - pub fn NdrServerGetSupportedSyntaxes( - pInf: *mut RPC_SERVER_INTERFACE, - pCount: *mut ::std::os::raw::c_ulong, - pArr: *mut *mut MIDL_SYNTAX_INFO, - pPreferSyntaxIndex: *mut ::std::os::raw::c_ulong, - ) -> RPC_STATUS; -} -extern "C" { - pub fn NdrSimpleTypeMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - FormatChar: ::std::os::raw::c_uchar, - ); -} -extern "C" { - pub fn NdrPointerMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrCsArrayMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrCsTagMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrSimpleStructMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrConformantStructMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrConformantVaryingStructMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrComplexStructMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrFixedArrayMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrConformantArrayMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrConformantVaryingArrayMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrVaryingArrayMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrComplexArrayMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrNonConformantStringMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrConformantStringMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrEncapsulatedUnionMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrNonEncapsulatedUnionMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrByteCountPointerMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrXmitOrRepAsMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrUserMarshalMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrInterfacePointerMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrClientContextMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ContextHandle: NDR_CCONTEXT, - fCheck: ::std::os::raw::c_int, - ); -} -extern "C" { - pub fn NdrServerContextMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ContextHandle: NDR_SCONTEXT, - RundownRoutine: NDR_RUNDOWN, - ); -} -extern "C" { - pub fn NdrServerContextNewMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ContextHandle: NDR_SCONTEXT, - RundownRoutine: NDR_RUNDOWN, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrSimpleTypeUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - FormatChar: ::std::os::raw::c_uchar, - ); -} -extern "C" { - pub fn NdrCsArrayUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrCsTagUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrRangeUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrCorrelationInitialize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_void, - CacheSize: ::std::os::raw::c_ulong, - flags: ::std::os::raw::c_ulong, - ); -} -extern "C" { - pub fn NdrCorrelationPass(pStubMsg: PMIDL_STUB_MESSAGE); -} -extern "C" { - pub fn NdrCorrelationFree(pStubMsg: PMIDL_STUB_MESSAGE); -} -extern "C" { - pub fn NdrPointerUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrSimpleStructUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrConformantStructUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrConformantVaryingStructUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrComplexStructUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrFixedArrayUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrConformantArrayUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrConformantVaryingArrayUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrVaryingArrayUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrComplexArrayUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrNonConformantStringUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrConformantStringUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrEncapsulatedUnionUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrNonEncapsulatedUnionUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrByteCountPointerUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrXmitOrRepAsUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrUserMarshalUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrInterfacePointerUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - fMustAlloc: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrClientContextUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pContextHandle: *mut NDR_CCONTEXT, - BindHandle: RPC_BINDING_HANDLE, - ); -} -extern "C" { - pub fn NdrServerContextUnmarshall(pStubMsg: PMIDL_STUB_MESSAGE) -> NDR_SCONTEXT; -} -extern "C" { - pub fn NdrContextHandleInitialize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> NDR_SCONTEXT; -} -extern "C" { - pub fn NdrServerContextNewUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> NDR_SCONTEXT; -} -extern "C" { - pub fn NdrPointerBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrCsArrayBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrCsTagBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrSimpleStructBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrConformantStructBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrConformantVaryingStructBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrComplexStructBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrFixedArrayBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrConformantArrayBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrConformantVaryingArrayBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrVaryingArrayBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrComplexArrayBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrConformantStringBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrNonConformantStringBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrEncapsulatedUnionBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrNonEncapsulatedUnionBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrByteCountPointerBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrXmitOrRepAsBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrUserMarshalBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrInterfacePointerBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrContextHandleSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrPointerMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrContextHandleMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrCsArrayMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrCsTagMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrSimpleStructMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrConformantStructMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrConformantVaryingStructMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrComplexStructMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrFixedArrayMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrConformantArrayMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrConformantVaryingArrayMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrVaryingArrayMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrComplexArrayMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrConformantStringMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrNonConformantStringMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrEncapsulatedUnionMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrNonEncapsulatedUnionMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrXmitOrRepAsMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrUserMarshalMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrInterfacePointerMemorySize( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn NdrPointerFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrCsArrayFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrSimpleStructFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrConformantStructFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrConformantVaryingStructFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrComplexStructFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrFixedArrayFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrConformantArrayFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrConformantVaryingArrayFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrVaryingArrayFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrComplexArrayFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrEncapsulatedUnionFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrNonEncapsulatedUnionFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrByteCountPointerFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrXmitOrRepAsFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrUserMarshalFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrInterfacePointerFree( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_uchar, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrConvert2( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - NumberParams: ::std::os::raw::c_long, - ); -} -extern "C" { - pub fn NdrConvert(pStubMsg: PMIDL_STUB_MESSAGE, pFormat: PFORMAT_STRING); -} -extern "C" { - pub fn NdrUserMarshalSimpleTypeConvert( - pFlags: *mut ::std::os::raw::c_ulong, - pBuffer: *mut ::std::os::raw::c_uchar, - FormatChar: ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrClientInitializeNew( - pRpcMsg: PRPC_MESSAGE, - pStubMsg: PMIDL_STUB_MESSAGE, - pStubDescriptor: PMIDL_STUB_DESC, - ProcNum: ::std::os::raw::c_uint, - ); -} -extern "C" { - pub fn NdrServerInitializeNew( - pRpcMsg: PRPC_MESSAGE, - pStubMsg: PMIDL_STUB_MESSAGE, - pStubDescriptor: PMIDL_STUB_DESC, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrServerInitializePartial( - pRpcMsg: PRPC_MESSAGE, - pStubMsg: PMIDL_STUB_MESSAGE, - pStubDescriptor: PMIDL_STUB_DESC, - RequestedBufferSize: ::std::os::raw::c_ulong, - ); -} -extern "C" { - pub fn NdrClientInitialize( - pRpcMsg: PRPC_MESSAGE, - pStubMsg: PMIDL_STUB_MESSAGE, - pStubDescriptor: PMIDL_STUB_DESC, - ProcNum: ::std::os::raw::c_uint, - ); -} -extern "C" { - pub fn NdrServerInitialize( - pRpcMsg: PRPC_MESSAGE, - pStubMsg: PMIDL_STUB_MESSAGE, - pStubDescriptor: PMIDL_STUB_DESC, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrServerInitializeUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pStubDescriptor: PMIDL_STUB_DESC, - pRpcMsg: PRPC_MESSAGE, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrServerInitializeMarshall(pRpcMsg: PRPC_MESSAGE, pStubMsg: PMIDL_STUB_MESSAGE); -} -extern "C" { - pub fn NdrGetBuffer( - pStubMsg: PMIDL_STUB_MESSAGE, - BufferLength: ::std::os::raw::c_ulong, - Handle: RPC_BINDING_HANDLE, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrNsGetBuffer( - pStubMsg: PMIDL_STUB_MESSAGE, - BufferLength: ::std::os::raw::c_ulong, - Handle: RPC_BINDING_HANDLE, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrSendReceive( - pStubMsg: PMIDL_STUB_MESSAGE, - pBufferEnd: *mut ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrNsSendReceive( - pStubMsg: PMIDL_STUB_MESSAGE, - pBufferEnd: *mut ::std::os::raw::c_uchar, - pAutoHandle: *mut RPC_BINDING_HANDLE, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn NdrFreeBuffer(pStubMsg: PMIDL_STUB_MESSAGE); -} -extern "C" { - pub fn NdrGetDcomProtocolVersion( - pStubMsg: PMIDL_STUB_MESSAGE, - pVersion: *mut RPC_VERSION, - ) -> HRESULT; -} -extern "C" { - pub fn NdrClientCall2( - pStubDescriptor: PMIDL_STUB_DESC, - pFormat: PFORMAT_STRING, - ... - ) -> CLIENT_CALL_RETURN; -} -extern "C" { - pub fn NdrClientCall( - pStubDescriptor: PMIDL_STUB_DESC, - pFormat: PFORMAT_STRING, - ... - ) -> CLIENT_CALL_RETURN; -} -extern "C" { - pub fn NdrAsyncClientCall( - pStubDescriptor: PMIDL_STUB_DESC, - pFormat: PFORMAT_STRING, - ... - ) -> CLIENT_CALL_RETURN; -} -extern "C" { - pub fn NdrDcomAsyncClientCall( - pStubDescriptor: PMIDL_STUB_DESC, - pFormat: PFORMAT_STRING, - ... - ) -> CLIENT_CALL_RETURN; -} -pub const STUB_PHASE_STUB_UNMARSHAL: STUB_PHASE = 0; -pub const STUB_PHASE_STUB_CALL_SERVER: STUB_PHASE = 1; -pub const STUB_PHASE_STUB_MARSHAL: STUB_PHASE = 2; -pub const STUB_PHASE_STUB_CALL_SERVER_NO_HRESULT: STUB_PHASE = 3; -pub type STUB_PHASE = ::std::os::raw::c_int; -pub const PROXY_PHASE_PROXY_CALCSIZE: PROXY_PHASE = 0; -pub const PROXY_PHASE_PROXY_GETBUFFER: PROXY_PHASE = 1; -pub const PROXY_PHASE_PROXY_MARSHAL: PROXY_PHASE = 2; -pub const PROXY_PHASE_PROXY_SENDRECEIVE: PROXY_PHASE = 3; -pub const PROXY_PHASE_PROXY_UNMARSHAL: PROXY_PHASE = 4; -pub type PROXY_PHASE = ::std::os::raw::c_int; -extern "C" { - pub fn NdrAsyncServerCall(pRpcMsg: PRPC_MESSAGE); -} -extern "C" { - pub fn NdrAsyncStubCall( - pThis: *mut IRpcStubBuffer, - pChannel: *mut IRpcChannelBuffer, - pRpcMsg: PRPC_MESSAGE, - pdwStubPhase: *mut ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn NdrDcomAsyncStubCall( - pThis: *mut IRpcStubBuffer, - pChannel: *mut IRpcChannelBuffer, - pRpcMsg: PRPC_MESSAGE, - pdwStubPhase: *mut ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn NdrStubCall2( - pThis: *mut ::std::os::raw::c_void, - pChannel: *mut ::std::os::raw::c_void, - pRpcMsg: PRPC_MESSAGE, - pdwStubPhase: *mut ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn NdrServerCall2(pRpcMsg: PRPC_MESSAGE); -} -extern "C" { - pub fn NdrStubCall( - pThis: *mut ::std::os::raw::c_void, - pChannel: *mut ::std::os::raw::c_void, - pRpcMsg: PRPC_MESSAGE, - pdwStubPhase: *mut ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn NdrServerCall(pRpcMsg: PRPC_MESSAGE); -} -extern "C" { - pub fn NdrServerUnmarshall( - pChannel: *mut ::std::os::raw::c_void, - pRpcMsg: PRPC_MESSAGE, - pStubMsg: PMIDL_STUB_MESSAGE, - pStubDescriptor: PMIDL_STUB_DESC, - pFormat: PFORMAT_STRING, - pParamList: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn NdrServerMarshall( - pThis: *mut ::std::os::raw::c_void, - pChannel: *mut ::std::os::raw::c_void, - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn NdrMapCommAndFaultStatus( - pStubMsg: PMIDL_STUB_MESSAGE, - pCommStatus: *mut ::std::os::raw::c_ulong, - pFaultStatus: *mut ::std::os::raw::c_ulong, - Status: RPC_STATUS, - ) -> RPC_STATUS; -} -pub type RPC_SS_THREAD_HANDLE = *mut ::std::os::raw::c_void; -extern "C" { - pub fn RpcSsAllocate(Size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn RpcSsDisableAllocate(); -} -extern "C" { - pub fn RpcSsEnableAllocate(); -} -extern "C" { - pub fn RpcSsFree(NodeToFree: *mut ::std::os::raw::c_void); -} -extern "C" { - pub fn RpcSsGetThreadHandle() -> RPC_SS_THREAD_HANDLE; -} -extern "C" { - pub fn RpcSsSetClientAllocFree( - ClientAlloc: ::std::option::Option< - unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void, - >, - ClientFree: ::std::option::Option, - ); -} -extern "C" { - pub fn RpcSsSetThreadHandle(Id: RPC_SS_THREAD_HANDLE); -} -extern "C" { - pub fn RpcSsSwapClientAllocFree( - ClientAlloc: ::std::option::Option< - unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void, - >, - ClientFree: ::std::option::Option, - OldClientAlloc: *mut ::std::option::Option< - unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void, - >, - OldClientFree: *mut ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void), - >, - ); -} -extern "C" { - pub fn RpcSmAllocate(Size: usize, pStatus: *mut RPC_STATUS) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn RpcSmClientFree(pNodeToFree: *mut ::std::os::raw::c_void) -> RPC_STATUS; -} -extern "C" { - pub fn RpcSmDestroyClientContext(ContextHandle: *mut *mut ::std::os::raw::c_void) - -> RPC_STATUS; -} -extern "C" { - pub fn RpcSmDisableAllocate() -> RPC_STATUS; -} -extern "C" { - pub fn RpcSmEnableAllocate() -> RPC_STATUS; -} -extern "C" { - pub fn RpcSmFree(NodeToFree: *mut ::std::os::raw::c_void) -> RPC_STATUS; -} -extern "C" { - pub fn RpcSmGetThreadHandle(pStatus: *mut RPC_STATUS) -> RPC_SS_THREAD_HANDLE; -} -extern "C" { - pub fn RpcSmSetClientAllocFree( - ClientAlloc: ::std::option::Option< - unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void, - >, - ClientFree: ::std::option::Option, - ) -> RPC_STATUS; -} -extern "C" { - pub fn RpcSmSetThreadHandle(Id: RPC_SS_THREAD_HANDLE) -> RPC_STATUS; -} -extern "C" { - pub fn RpcSmSwapClientAllocFree( - ClientAlloc: ::std::option::Option< - unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void, - >, - ClientFree: ::std::option::Option, - OldClientAlloc: *mut ::std::option::Option< - unsafe extern "C" fn(arg1: usize) -> *mut ::std::os::raw::c_void, - >, - OldClientFree: *mut ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void), - >, - ) -> RPC_STATUS; -} -extern "C" { - pub fn NdrRpcSsEnableAllocate(pMessage: PMIDL_STUB_MESSAGE); -} -extern "C" { - pub fn NdrRpcSsDisableAllocate(pMessage: PMIDL_STUB_MESSAGE); -} -extern "C" { - pub fn NdrRpcSmSetClientToOsf(pMessage: PMIDL_STUB_MESSAGE); -} -extern "C" { - pub fn NdrRpcSmClientAllocate(Size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn NdrRpcSmClientFree(NodeToFree: *mut ::std::os::raw::c_void); -} -extern "C" { - pub fn NdrRpcSsDefaultAllocate(Size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn NdrRpcSsDefaultFree(NodeToFree: *mut ::std::os::raw::c_void); -} -extern "C" { - pub fn NdrFullPointerXlatInit( - NumberOfPointers: ::std::os::raw::c_ulong, - XlatSide: XLAT_SIDE, - ) -> PFULL_PTR_XLAT_TABLES; -} -extern "C" { - pub fn NdrFullPointerXlatFree(pXlatTables: PFULL_PTR_XLAT_TABLES); -} -extern "C" { - pub fn NdrAllocate(pStubMsg: PMIDL_STUB_MESSAGE, Len: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn NdrClearOutParameters( - pStubMsg: PMIDL_STUB_MESSAGE, - pFormat: PFORMAT_STRING, - ArgAddr: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - pub fn NdrOleAllocate(Size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn NdrOleFree(NodeToFree: *mut ::std::os::raw::c_void); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NDR_USER_MARSHAL_INFO_LEVEL1 { - pub Buffer: *mut ::std::os::raw::c_void, - pub BufferSize: ::std::os::raw::c_ulong, - pub pfnAllocate: - ::std::option::Option *mut ::std::os::raw::c_void>, - pub pfnFree: ::std::option::Option, - pub pRpcChannelBuffer: *mut IRpcChannelBuffer, - pub Reserved: [ULONG_PTR; 5usize], -} -pub type NDR_USER_MARSHAL_INFO_LEVEL1 = _NDR_USER_MARSHAL_INFO_LEVEL1; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _NDR_USER_MARSHAL_INFO { - pub InformationLevel: ::std::os::raw::c_ulong, - pub __bindgen_anon_1: _NDR_USER_MARSHAL_INFO__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _NDR_USER_MARSHAL_INFO__bindgen_ty_1 { - pub Level1: NDR_USER_MARSHAL_INFO_LEVEL1, -} -pub type NDR_USER_MARSHAL_INFO = _NDR_USER_MARSHAL_INFO; -extern "C" { - pub fn NdrGetUserMarshalInfo( - pFlags: *mut ::std::os::raw::c_ulong, - InformationLevel: ::std::os::raw::c_ulong, - pMarshalInfo: *mut NDR_USER_MARSHAL_INFO, - ) -> RPC_STATUS; -} -extern "C" { - pub fn NdrCreateServerInterfaceFromStub( - pStub: *mut IRpcStubBuffer, - pServerIf: *mut RPC_SERVER_INTERFACE, - ) -> RPC_STATUS; -} -extern "C" { - pub fn NdrClientCall3( - pProxyInfo: *mut MIDL_STUBLESS_PROXY_INFO, - nProcNum: ::std::os::raw::c_ulong, - pReturnValue: *mut ::std::os::raw::c_void, - ... - ) -> CLIENT_CALL_RETURN; -} -extern "C" { - pub fn Ndr64AsyncClientCall( - pProxyInfo: *mut MIDL_STUBLESS_PROXY_INFO, - nProcNum: ::std::os::raw::c_ulong, - pReturnValue: *mut ::std::os::raw::c_void, - ... - ) -> CLIENT_CALL_RETURN; -} -extern "C" { - pub fn Ndr64DcomAsyncClientCall( - pProxyInfo: *mut MIDL_STUBLESS_PROXY_INFO, - nProcNum: ::std::os::raw::c_ulong, - pReturnValue: *mut ::std::os::raw::c_void, - ... - ) -> CLIENT_CALL_RETURN; -} -extern "C" { - pub fn Ndr64AsyncServerCall(pRpcMsg: PRPC_MESSAGE); -} -extern "C" { - pub fn Ndr64AsyncServerCall64(pRpcMsg: PRPC_MESSAGE); -} -extern "C" { - pub fn Ndr64AsyncServerCallAll(pRpcMsg: PRPC_MESSAGE); -} -extern "C" { - pub fn Ndr64AsyncStubCall( - pThis: *mut IRpcStubBuffer, - pChannel: *mut IRpcChannelBuffer, - pRpcMsg: PRPC_MESSAGE, - pdwStubPhase: *mut ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn Ndr64DcomAsyncStubCall( - pThis: *mut IRpcStubBuffer, - pChannel: *mut IRpcChannelBuffer, - pRpcMsg: PRPC_MESSAGE, - pdwStubPhase: *mut ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn NdrStubCall3( - pThis: *mut ::std::os::raw::c_void, - pChannel: *mut ::std::os::raw::c_void, - pRpcMsg: PRPC_MESSAGE, - pdwStubPhase: *mut ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn NdrServerCallAll(pRpcMsg: PRPC_MESSAGE); -} -extern "C" { - pub fn NdrServerCallNdr64(pRpcMsg: PRPC_MESSAGE); -} -extern "C" { - pub fn NdrServerCall3(pRpcMsg: PRPC_MESSAGE); -} -extern "C" { - pub fn NdrPartialIgnoreClientMarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - pub fn NdrPartialIgnoreServerUnmarshall( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_void, - ); -} -extern "C" { - pub fn NdrPartialIgnoreClientBufferSize( - pStubMsg: PMIDL_STUB_MESSAGE, - pMemory: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - pub fn NdrPartialIgnoreServerInitialize( - pStubMsg: PMIDL_STUB_MESSAGE, - ppMemory: *mut *mut ::std::os::raw::c_void, - pFormat: PFORMAT_STRING, - ); -} -extern "C" { - pub fn RpcUserFree(AsyncHandle: handle_t, pBuffer: *mut ::std::os::raw::c_void); -} -extern "C" { - pub static mut __MIDL_itf_wtypesbase_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_wtypesbase_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type OLECHAR = WCHAR; -pub type LPOLESTR = *mut OLECHAR; -pub type LPCOLESTR = *const OLECHAR; -pub type DOUBLE = f64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _COAUTHIDENTITY { - pub User: *mut USHORT, - pub UserLength: ULONG, - pub Domain: *mut USHORT, - pub DomainLength: ULONG, - pub Password: *mut USHORT, - pub PasswordLength: ULONG, - pub Flags: ULONG, -} -pub type COAUTHIDENTITY = _COAUTHIDENTITY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _COAUTHINFO { - pub dwAuthnSvc: DWORD, - pub dwAuthzSvc: DWORD, - pub pwszServerPrincName: LPWSTR, - pub dwAuthnLevel: DWORD, - pub dwImpersonationLevel: DWORD, - pub pAuthIdentityData: *mut COAUTHIDENTITY, - pub dwCapabilities: DWORD, -} -pub type COAUTHINFO = _COAUTHINFO; -pub type SCODE = LONG; -pub type PSCODE = *mut SCODE; -pub const tagMEMCTX_MEMCTX_TASK: tagMEMCTX = 1; -pub const tagMEMCTX_MEMCTX_SHARED: tagMEMCTX = 2; -pub const tagMEMCTX_MEMCTX_MACSYSTEM: tagMEMCTX = 3; -pub const tagMEMCTX_MEMCTX_UNKNOWN: tagMEMCTX = -1; -pub const tagMEMCTX_MEMCTX_SAME: tagMEMCTX = -2; -pub type tagMEMCTX = ::std::os::raw::c_int; -pub use self::tagMEMCTX as MEMCTX; -pub const tagCLSCTX_CLSCTX_INPROC_SERVER: tagCLSCTX = 1; -pub const tagCLSCTX_CLSCTX_INPROC_HANDLER: tagCLSCTX = 2; -pub const tagCLSCTX_CLSCTX_LOCAL_SERVER: tagCLSCTX = 4; -pub const tagCLSCTX_CLSCTX_INPROC_SERVER16: tagCLSCTX = 8; -pub const tagCLSCTX_CLSCTX_REMOTE_SERVER: tagCLSCTX = 16; -pub const tagCLSCTX_CLSCTX_INPROC_HANDLER16: tagCLSCTX = 32; -pub const tagCLSCTX_CLSCTX_RESERVED1: tagCLSCTX = 64; -pub const tagCLSCTX_CLSCTX_RESERVED2: tagCLSCTX = 128; -pub const tagCLSCTX_CLSCTX_RESERVED3: tagCLSCTX = 256; -pub const tagCLSCTX_CLSCTX_RESERVED4: tagCLSCTX = 512; -pub const tagCLSCTX_CLSCTX_NO_CODE_DOWNLOAD: tagCLSCTX = 1024; -pub const tagCLSCTX_CLSCTX_RESERVED5: tagCLSCTX = 2048; -pub const tagCLSCTX_CLSCTX_NO_CUSTOM_MARSHAL: tagCLSCTX = 4096; -pub const tagCLSCTX_CLSCTX_ENABLE_CODE_DOWNLOAD: tagCLSCTX = 8192; -pub const tagCLSCTX_CLSCTX_NO_FAILURE_LOG: tagCLSCTX = 16384; -pub const tagCLSCTX_CLSCTX_DISABLE_AAA: tagCLSCTX = 32768; -pub const tagCLSCTX_CLSCTX_ENABLE_AAA: tagCLSCTX = 65536; -pub const tagCLSCTX_CLSCTX_FROM_DEFAULT_CONTEXT: tagCLSCTX = 131072; -pub const tagCLSCTX_CLSCTX_ACTIVATE_X86_SERVER: tagCLSCTX = 262144; -pub const tagCLSCTX_CLSCTX_ACTIVATE_32_BIT_SERVER: tagCLSCTX = 262144; -pub const tagCLSCTX_CLSCTX_ACTIVATE_64_BIT_SERVER: tagCLSCTX = 524288; -pub const tagCLSCTX_CLSCTX_ENABLE_CLOAKING: tagCLSCTX = 1048576; -pub const tagCLSCTX_CLSCTX_APPCONTAINER: tagCLSCTX = 4194304; -pub const tagCLSCTX_CLSCTX_ACTIVATE_AAA_AS_IU: tagCLSCTX = 8388608; -pub const tagCLSCTX_CLSCTX_RESERVED6: tagCLSCTX = 16777216; -pub const tagCLSCTX_CLSCTX_ACTIVATE_ARM32_SERVER: tagCLSCTX = 33554432; -pub const tagCLSCTX_CLSCTX_ALLOW_LOWER_TRUST_REGISTRATION: tagCLSCTX = 67108864; -pub const tagCLSCTX_CLSCTX_PS_DLL: tagCLSCTX = -2147483648; -pub type tagCLSCTX = ::std::os::raw::c_int; -pub use self::tagCLSCTX as CLSCTX; -pub const tagMSHLFLAGS_MSHLFLAGS_NORMAL: tagMSHLFLAGS = 0; -pub const tagMSHLFLAGS_MSHLFLAGS_TABLESTRONG: tagMSHLFLAGS = 1; -pub const tagMSHLFLAGS_MSHLFLAGS_TABLEWEAK: tagMSHLFLAGS = 2; -pub const tagMSHLFLAGS_MSHLFLAGS_NOPING: tagMSHLFLAGS = 4; -pub const tagMSHLFLAGS_MSHLFLAGS_RESERVED1: tagMSHLFLAGS = 8; -pub const tagMSHLFLAGS_MSHLFLAGS_RESERVED2: tagMSHLFLAGS = 16; -pub const tagMSHLFLAGS_MSHLFLAGS_RESERVED3: tagMSHLFLAGS = 32; -pub const tagMSHLFLAGS_MSHLFLAGS_RESERVED4: tagMSHLFLAGS = 64; -pub type tagMSHLFLAGS = ::std::os::raw::c_int; -pub use self::tagMSHLFLAGS as MSHLFLAGS; -pub const tagMSHCTX_MSHCTX_LOCAL: tagMSHCTX = 0; -pub const tagMSHCTX_MSHCTX_NOSHAREDMEM: tagMSHCTX = 1; -pub const tagMSHCTX_MSHCTX_DIFFERENTMACHINE: tagMSHCTX = 2; -pub const tagMSHCTX_MSHCTX_INPROC: tagMSHCTX = 3; -pub const tagMSHCTX_MSHCTX_CROSSCTX: tagMSHCTX = 4; -pub const tagMSHCTX_MSHCTX_CONTAINER: tagMSHCTX = 5; -pub type tagMSHCTX = ::std::os::raw::c_int; -pub use self::tagMSHCTX as MSHCTX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BYTE_BLOB { - pub clSize: ULONG, - pub abData: [byte; 1usize], -} -pub type BYTE_BLOB = _BYTE_BLOB; -pub type UP_BYTE_BLOB = *mut BYTE_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WORD_BLOB { - pub clSize: ULONG, - pub asData: [::std::os::raw::c_ushort; 1usize], -} -pub type WORD_BLOB = _WORD_BLOB; -pub type UP_WORD_BLOB = *mut WORD_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DWORD_BLOB { - pub clSize: ULONG, - pub alData: [ULONG; 1usize], -} -pub type DWORD_BLOB = _DWORD_BLOB; -pub type UP_DWORD_BLOB = *mut DWORD_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FLAGGED_BYTE_BLOB { - pub fFlags: ULONG, - pub clSize: ULONG, - pub abData: [byte; 1usize], -} -pub type FLAGGED_BYTE_BLOB = _FLAGGED_BYTE_BLOB; -pub type UP_FLAGGED_BYTE_BLOB = *mut FLAGGED_BYTE_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FLAGGED_WORD_BLOB { - pub fFlags: ULONG, - pub clSize: ULONG, - pub asData: [::std::os::raw::c_ushort; 1usize], -} -pub type FLAGGED_WORD_BLOB = _FLAGGED_WORD_BLOB; -pub type UP_FLAGGED_WORD_BLOB = *mut FLAGGED_WORD_BLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BYTE_SIZEDARR { - pub clSize: ULONG, - pub pData: *mut byte, -} -pub type BYTE_SIZEDARR = _BYTE_SIZEDARR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SHORT_SIZEDARR { - pub clSize: ULONG, - pub pData: *mut ::std::os::raw::c_ushort, -} -pub type WORD_SIZEDARR = _SHORT_SIZEDARR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LONG_SIZEDARR { - pub clSize: ULONG, - pub pData: *mut ULONG, -} -pub type DWORD_SIZEDARR = _LONG_SIZEDARR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _HYPER_SIZEDARR { - pub clSize: ULONG, - pub pData: *mut ::std::os::raw::c_longlong, -} -pub type HYPER_SIZEDARR = _HYPER_SIZEDARR; -extern "C" { - pub static mut IWinTypesBase_v0_1_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut IWinTypesBase_v0_1_s_ifspec: RPC_IF_HANDLE; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagBLOB { - pub cbSize: ULONG, - pub pBlobData: *mut BYTE, -} -pub type BLOB = tagBLOB; -pub type LPBLOB = *mut tagBLOB; -extern "C" { - pub static mut __MIDL_itf_wtypesbase_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_wtypesbase_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_wtypes_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_wtypes_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRemHGLOBAL { - pub fNullHGlobal: LONG, - pub cbData: ULONG, - pub data: [byte; 1usize], -} -pub type RemHGLOBAL = tagRemHGLOBAL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRemHMETAFILEPICT { - pub mm: LONG, - pub xExt: LONG, - pub yExt: LONG, - pub cbData: ULONG, - pub data: [byte; 1usize], -} -pub type RemHMETAFILEPICT = tagRemHMETAFILEPICT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRemHENHMETAFILE { - pub cbData: ULONG, - pub data: [byte; 1usize], -} -pub type RemHENHMETAFILE = tagRemHENHMETAFILE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRemHBITMAP { - pub cbData: ULONG, - pub data: [byte; 1usize], -} -pub type RemHBITMAP = tagRemHBITMAP; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRemHPALETTE { - pub cbData: ULONG, - pub data: [byte; 1usize], -} -pub type RemHPALETTE = tagRemHPALETTE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRemBRUSH { - pub cbData: ULONG, - pub data: [byte; 1usize], -} -pub type RemHBRUSH = tagRemBRUSH; -pub const tagDVASPECT_DVASPECT_CONTENT: tagDVASPECT = 1; -pub const tagDVASPECT_DVASPECT_THUMBNAIL: tagDVASPECT = 2; -pub const tagDVASPECT_DVASPECT_ICON: tagDVASPECT = 4; -pub const tagDVASPECT_DVASPECT_DOCPRINT: tagDVASPECT = 8; -pub type tagDVASPECT = ::std::os::raw::c_int; -pub use self::tagDVASPECT as DVASPECT; -pub const tagSTGC_STGC_DEFAULT: tagSTGC = 0; -pub const tagSTGC_STGC_OVERWRITE: tagSTGC = 1; -pub const tagSTGC_STGC_ONLYIFCURRENT: tagSTGC = 2; -pub const tagSTGC_STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE: tagSTGC = 4; -pub const tagSTGC_STGC_CONSOLIDATE: tagSTGC = 8; -pub type tagSTGC = ::std::os::raw::c_int; -pub use self::tagSTGC as STGC; -pub const tagSTGMOVE_STGMOVE_MOVE: tagSTGMOVE = 0; -pub const tagSTGMOVE_STGMOVE_COPY: tagSTGMOVE = 1; -pub const tagSTGMOVE_STGMOVE_SHALLOWCOPY: tagSTGMOVE = 2; -pub type tagSTGMOVE = ::std::os::raw::c_int; -pub use self::tagSTGMOVE as STGMOVE; -pub const tagSTATFLAG_STATFLAG_DEFAULT: tagSTATFLAG = 0; -pub const tagSTATFLAG_STATFLAG_NONAME: tagSTATFLAG = 1; -pub const tagSTATFLAG_STATFLAG_NOOPEN: tagSTATFLAG = 2; -pub type tagSTATFLAG = ::std::os::raw::c_int; -pub use self::tagSTATFLAG as STATFLAG; -pub type HCONTEXT = *mut ::std::os::raw::c_void; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _userCLIPFORMAT { - pub fContext: LONG, - pub u: _userCLIPFORMAT___MIDL_IWinTypes_0001, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _userCLIPFORMAT___MIDL_IWinTypes_0001 { - pub dwValue: DWORD, - pub pwszName: *mut wchar_t, -} -pub type userCLIPFORMAT = _userCLIPFORMAT; -pub type wireCLIPFORMAT = *mut userCLIPFORMAT; -pub type CLIPFORMAT = WORD; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _GDI_NONREMOTE { - pub fContext: LONG, - pub u: _GDI_NONREMOTE___MIDL_IWinTypes_0002, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _GDI_NONREMOTE___MIDL_IWinTypes_0002 { - pub hInproc: LONG, - pub hRemote: *mut DWORD_BLOB, -} -pub type GDI_NONREMOTE = _GDI_NONREMOTE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _userHGLOBAL { - pub fContext: LONG, - pub u: _userHGLOBAL___MIDL_IWinTypes_0003, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _userHGLOBAL___MIDL_IWinTypes_0003 { - pub hInproc: LONG, - pub hRemote: *mut FLAGGED_BYTE_BLOB, - pub hInproc64: ::std::os::raw::c_longlong, -} -pub type userHGLOBAL = _userHGLOBAL; -pub type wireHGLOBAL = *mut userHGLOBAL; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _userHMETAFILE { - pub fContext: LONG, - pub u: _userHMETAFILE___MIDL_IWinTypes_0004, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _userHMETAFILE___MIDL_IWinTypes_0004 { - pub hInproc: LONG, - pub hRemote: *mut BYTE_BLOB, - pub hInproc64: ::std::os::raw::c_longlong, -} -pub type userHMETAFILE = _userHMETAFILE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _remoteMETAFILEPICT { - pub mm: LONG, - pub xExt: LONG, - pub yExt: LONG, - pub hMF: *mut userHMETAFILE, -} -pub type remoteMETAFILEPICT = _remoteMETAFILEPICT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _userHMETAFILEPICT { - pub fContext: LONG, - pub u: _userHMETAFILEPICT___MIDL_IWinTypes_0005, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _userHMETAFILEPICT___MIDL_IWinTypes_0005 { - pub hInproc: LONG, - pub hRemote: *mut remoteMETAFILEPICT, - pub hInproc64: ::std::os::raw::c_longlong, -} -pub type userHMETAFILEPICT = _userHMETAFILEPICT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _userHENHMETAFILE { - pub fContext: LONG, - pub u: _userHENHMETAFILE___MIDL_IWinTypes_0006, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _userHENHMETAFILE___MIDL_IWinTypes_0006 { - pub hInproc: LONG, - pub hRemote: *mut BYTE_BLOB, - pub hInproc64: ::std::os::raw::c_longlong, -} -pub type userHENHMETAFILE = _userHENHMETAFILE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _userBITMAP { - pub bmType: LONG, - pub bmWidth: LONG, - pub bmHeight: LONG, - pub bmWidthBytes: LONG, - pub bmPlanes: WORD, - pub bmBitsPixel: WORD, - pub cbSize: ULONG, - pub pBuffer: [byte; 1usize], -} -pub type userBITMAP = _userBITMAP; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _userHBITMAP { - pub fContext: LONG, - pub u: _userHBITMAP___MIDL_IWinTypes_0007, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _userHBITMAP___MIDL_IWinTypes_0007 { - pub hInproc: LONG, - pub hRemote: *mut userBITMAP, - pub hInproc64: ::std::os::raw::c_longlong, -} -pub type userHBITMAP = _userHBITMAP; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _userHPALETTE { - pub fContext: LONG, - pub u: _userHPALETTE___MIDL_IWinTypes_0008, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _userHPALETTE___MIDL_IWinTypes_0008 { - pub hInproc: LONG, - pub hRemote: *mut LOGPALETTE, - pub hInproc64: ::std::os::raw::c_longlong, -} -pub type userHPALETTE = _userHPALETTE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _RemotableHandle { - pub fContext: LONG, - pub u: _RemotableHandle___MIDL_IWinTypes_0009, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _RemotableHandle___MIDL_IWinTypes_0009 { - pub hInproc: LONG, - pub hRemote: LONG, -} -pub type RemotableHandle = _RemotableHandle; -pub type wireHWND = *mut RemotableHandle; -pub type wireHMENU = *mut RemotableHandle; -pub type wireHACCEL = *mut RemotableHandle; -pub type wireHBRUSH = *mut RemotableHandle; -pub type wireHFONT = *mut RemotableHandle; -pub type wireHDC = *mut RemotableHandle; -pub type wireHICON = *mut RemotableHandle; -pub type wireHRGN = *mut RemotableHandle; -pub type wireHMONITOR = *mut RemotableHandle; -pub type wireHBITMAP = *mut userHBITMAP; -pub type wireHPALETTE = *mut userHPALETTE; -pub type wireHENHMETAFILE = *mut userHENHMETAFILE; -pub type wireHMETAFILE = *mut userHMETAFILE; -pub type wireHMETAFILEPICT = *mut userHMETAFILEPICT; -pub type HMETAFILEPICT = *mut ::std::os::raw::c_void; -extern "C" { - pub static mut IWinTypes_v0_1_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut IWinTypes_v0_1_s_ifspec: RPC_IF_HANDLE; -} -pub type DATE = f64; -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagCY { - pub __bindgen_anon_1: tagCY__bindgen_ty_1, - pub int64: LONGLONG, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCY__bindgen_ty_1 { - pub Lo: ULONG, - pub Hi: LONG, -} -pub type CY = tagCY; -pub type LPCY = *mut CY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagDEC { - pub wReserved: USHORT, - pub __bindgen_anon_1: tagDEC__bindgen_ty_1, - pub Hi32: ULONG, - pub __bindgen_anon_2: tagDEC__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagDEC__bindgen_ty_1 { - pub __bindgen_anon_1: tagDEC__bindgen_ty_1__bindgen_ty_1, - pub signscale: USHORT, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagDEC__bindgen_ty_1__bindgen_ty_1 { - pub scale: BYTE, - pub sign: BYTE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagDEC__bindgen_ty_2 { - pub __bindgen_anon_1: tagDEC__bindgen_ty_2__bindgen_ty_1, - pub Lo64: ULONGLONG, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagDEC__bindgen_ty_2__bindgen_ty_1 { - pub Lo32: ULONG, - pub Mid32: ULONG, -} -pub type DECIMAL = tagDEC; -pub type LPDECIMAL = *mut DECIMAL; -pub type wireBSTR = *mut FLAGGED_WORD_BLOB; -pub type BSTR = *mut OLECHAR; -pub type LPBSTR = *mut BSTR; -pub type VARIANT_BOOL = ::std::os::raw::c_short; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagBSTRBLOB { - pub cbSize: ULONG, - pub pData: *mut BYTE, -} -pub type BSTRBLOB = tagBSTRBLOB; -pub type LPBSTRBLOB = *mut tagBSTRBLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCLIPDATA { - pub cbSize: ULONG, - pub ulClipFmt: LONG, - pub pClipData: *mut BYTE, -} -pub type CLIPDATA = tagCLIPDATA; -pub type VARTYPE = ::std::os::raw::c_ushort; -pub const VARENUM_VT_EMPTY: VARENUM = 0; -pub const VARENUM_VT_NULL: VARENUM = 1; -pub const VARENUM_VT_I2: VARENUM = 2; -pub const VARENUM_VT_I4: VARENUM = 3; -pub const VARENUM_VT_R4: VARENUM = 4; -pub const VARENUM_VT_R8: VARENUM = 5; -pub const VARENUM_VT_CY: VARENUM = 6; -pub const VARENUM_VT_DATE: VARENUM = 7; -pub const VARENUM_VT_BSTR: VARENUM = 8; -pub const VARENUM_VT_DISPATCH: VARENUM = 9; -pub const VARENUM_VT_ERROR: VARENUM = 10; -pub const VARENUM_VT_BOOL: VARENUM = 11; -pub const VARENUM_VT_VARIANT: VARENUM = 12; -pub const VARENUM_VT_UNKNOWN: VARENUM = 13; -pub const VARENUM_VT_DECIMAL: VARENUM = 14; -pub const VARENUM_VT_I1: VARENUM = 16; -pub const VARENUM_VT_UI1: VARENUM = 17; -pub const VARENUM_VT_UI2: VARENUM = 18; -pub const VARENUM_VT_UI4: VARENUM = 19; -pub const VARENUM_VT_I8: VARENUM = 20; -pub const VARENUM_VT_UI8: VARENUM = 21; -pub const VARENUM_VT_INT: VARENUM = 22; -pub const VARENUM_VT_UINT: VARENUM = 23; -pub const VARENUM_VT_VOID: VARENUM = 24; -pub const VARENUM_VT_HRESULT: VARENUM = 25; -pub const VARENUM_VT_PTR: VARENUM = 26; -pub const VARENUM_VT_SAFEARRAY: VARENUM = 27; -pub const VARENUM_VT_CARRAY: VARENUM = 28; -pub const VARENUM_VT_USERDEFINED: VARENUM = 29; -pub const VARENUM_VT_LPSTR: VARENUM = 30; -pub const VARENUM_VT_LPWSTR: VARENUM = 31; -pub const VARENUM_VT_RECORD: VARENUM = 36; -pub const VARENUM_VT_INT_PTR: VARENUM = 37; -pub const VARENUM_VT_UINT_PTR: VARENUM = 38; -pub const VARENUM_VT_FILETIME: VARENUM = 64; -pub const VARENUM_VT_BLOB: VARENUM = 65; -pub const VARENUM_VT_STREAM: VARENUM = 66; -pub const VARENUM_VT_STORAGE: VARENUM = 67; -pub const VARENUM_VT_STREAMED_OBJECT: VARENUM = 68; -pub const VARENUM_VT_STORED_OBJECT: VARENUM = 69; -pub const VARENUM_VT_BLOB_OBJECT: VARENUM = 70; -pub const VARENUM_VT_CF: VARENUM = 71; -pub const VARENUM_VT_CLSID: VARENUM = 72; -pub const VARENUM_VT_VERSIONED_STREAM: VARENUM = 73; -pub const VARENUM_VT_BSTR_BLOB: VARENUM = 4095; -pub const VARENUM_VT_VECTOR: VARENUM = 4096; -pub const VARENUM_VT_ARRAY: VARENUM = 8192; -pub const VARENUM_VT_BYREF: VARENUM = 16384; -pub const VARENUM_VT_RESERVED: VARENUM = 32768; -pub const VARENUM_VT_ILLEGAL: VARENUM = 65535; -pub const VARENUM_VT_ILLEGALMASKED: VARENUM = 4095; -pub const VARENUM_VT_TYPEMASK: VARENUM = 4095; -pub type VARENUM = ::std::os::raw::c_int; -pub type PROPID = ULONG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _tagpropertykey { - pub fmtid: GUID, - pub pid: DWORD, -} -pub type PROPERTYKEY = _tagpropertykey; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCSPLATFORM { - pub dwPlatformId: DWORD, - pub dwVersionHi: DWORD, - pub dwVersionLo: DWORD, - pub dwProcessorArch: DWORD, -} -pub type CSPLATFORM = tagCSPLATFORM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagQUERYCONTEXT { - pub dwContext: DWORD, - pub Platform: CSPLATFORM, - pub Locale: LCID, - pub dwVersionHi: DWORD, - pub dwVersionLo: DWORD, -} -pub type QUERYCONTEXT = tagQUERYCONTEXT; -pub const tagTYSPEC_TYSPEC_CLSID: tagTYSPEC = 0; -pub const tagTYSPEC_TYSPEC_FILEEXT: tagTYSPEC = 1; -pub const tagTYSPEC_TYSPEC_MIMETYPE: tagTYSPEC = 2; -pub const tagTYSPEC_TYSPEC_FILENAME: tagTYSPEC = 3; -pub const tagTYSPEC_TYSPEC_PROGID: tagTYSPEC = 4; -pub const tagTYSPEC_TYSPEC_PACKAGENAME: tagTYSPEC = 5; -pub const tagTYSPEC_TYSPEC_OBJECTID: tagTYSPEC = 6; -pub type tagTYSPEC = ::std::os::raw::c_int; -pub use self::tagTYSPEC as TYSPEC; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __MIDL___MIDL_itf_wtypes_0000_0001_0001 { - pub tyspec: DWORD, - pub tagged_union: - __MIDL___MIDL_itf_wtypes_0000_0001_0001___MIDL___MIDL_itf_wtypes_0000_0001_0005, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __MIDL___MIDL_itf_wtypes_0000_0001_0001___MIDL___MIDL_itf_wtypes_0000_0001_0005 { pub clsid : CLSID , pub pFileExt : LPOLESTR , pub pMimeType : LPOLESTR , pub pProgId : LPOLESTR , pub pFileName : LPOLESTR , pub ByName : __MIDL___MIDL_itf_wtypes_0000_0001_0001___MIDL___MIDL_itf_wtypes_0000_0001_0005__bindgen_ty_1 , pub ByObjectId : __MIDL___MIDL_itf_wtypes_0000_0001_0001___MIDL___MIDL_itf_wtypes_0000_0001_0005__bindgen_ty_2 , } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __MIDL___MIDL_itf_wtypes_0000_0001_0001___MIDL___MIDL_itf_wtypes_0000_0001_0005__bindgen_ty_1 -{ - pub pPackageName: LPOLESTR, - pub PolicyId: GUID, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __MIDL___MIDL_itf_wtypes_0000_0001_0001___MIDL___MIDL_itf_wtypes_0000_0001_0005__bindgen_ty_2 -{ - pub ObjectId: GUID, - pub PolicyId: GUID, -} -pub type uCLSSPEC = __MIDL___MIDL_itf_wtypes_0000_0001_0001; -extern "C" { - pub static mut __MIDL_itf_wtypes_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_wtypes_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static GUID_DEVINTERFACE_DISK: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_CDROM: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_PARTITION: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_TAPE: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_WRITEONCEDISK: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_VOLUME: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_MEDIUMCHANGER: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_FLOPPY: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_CDCHANGER: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_STORAGEPORT: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_VMLUN: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_SES: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_ZNSDISK: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_SERVICE_VOLUME: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_HIDDEN_VOLUME: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_UNIFIED_ACCESS_RPMB: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_SCM_PHYSICAL_DEVICE: GUID; -} -extern "C" { - pub static GUID_SCM_PD_HEALTH_NOTIFICATION: GUID; -} -extern "C" { - pub static GUID_SCM_PD_PASSTHROUGH_INVDIMM: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_COMPORT: GUID; -} -extern "C" { - pub static GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR: GUID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_HOTPLUG_INFO { - pub Size: DWORD, - pub MediaRemovable: BOOLEAN, - pub MediaHotplug: BOOLEAN, - pub DeviceHotplug: BOOLEAN, - pub WriteCacheEnableOverride: BOOLEAN, -} -pub type STORAGE_HOTPLUG_INFO = _STORAGE_HOTPLUG_INFO; -pub type PSTORAGE_HOTPLUG_INFO = *mut _STORAGE_HOTPLUG_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_NUMBER { - pub DeviceType: DWORD, - pub DeviceNumber: DWORD, - pub PartitionNumber: DWORD, -} -pub type STORAGE_DEVICE_NUMBER = _STORAGE_DEVICE_NUMBER; -pub type PSTORAGE_DEVICE_NUMBER = *mut _STORAGE_DEVICE_NUMBER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_NUMBERS { - pub Version: DWORD, - pub Size: DWORD, - pub NumberOfDevices: DWORD, - pub Devices: [STORAGE_DEVICE_NUMBER; 1usize], -} -pub type STORAGE_DEVICE_NUMBERS = _STORAGE_DEVICE_NUMBERS; -pub type PSTORAGE_DEVICE_NUMBERS = *mut _STORAGE_DEVICE_NUMBERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_NUMBER_EX { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub DeviceType: DWORD, - pub DeviceNumber: DWORD, - pub DeviceGuid: GUID, - pub PartitionNumber: DWORD, -} -pub type STORAGE_DEVICE_NUMBER_EX = _STORAGE_DEVICE_NUMBER_EX; -pub type PSTORAGE_DEVICE_NUMBER_EX = *mut _STORAGE_DEVICE_NUMBER_EX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_BUS_RESET_REQUEST { - pub PathId: BYTE, -} -pub type STORAGE_BUS_RESET_REQUEST = _STORAGE_BUS_RESET_REQUEST; -pub type PSTORAGE_BUS_RESET_REQUEST = *mut _STORAGE_BUS_RESET_REQUEST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct STORAGE_BREAK_RESERVATION_REQUEST { - pub Length: DWORD, - pub _unused: BYTE, - pub PathId: BYTE, - pub TargetId: BYTE, - pub Lun: BYTE, -} -pub type PSTORAGE_BREAK_RESERVATION_REQUEST = *mut STORAGE_BREAK_RESERVATION_REQUEST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PREVENT_MEDIA_REMOVAL { - pub PreventMediaRemoval: BOOLEAN, -} -pub type PREVENT_MEDIA_REMOVAL = _PREVENT_MEDIA_REMOVAL; -pub type PPREVENT_MEDIA_REMOVAL = *mut _PREVENT_MEDIA_REMOVAL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CLASS_MEDIA_CHANGE_CONTEXT { - pub MediaChangeCount: DWORD, - pub NewState: DWORD, -} -pub type CLASS_MEDIA_CHANGE_CONTEXT = _CLASS_MEDIA_CHANGE_CONTEXT; -pub type PCLASS_MEDIA_CHANGE_CONTEXT = *mut _CLASS_MEDIA_CHANGE_CONTEXT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _TAPE_STATISTICS { - pub Version: DWORD, - pub Flags: DWORD, - pub RecoveredWrites: LARGE_INTEGER, - pub UnrecoveredWrites: LARGE_INTEGER, - pub RecoveredReads: LARGE_INTEGER, - pub UnrecoveredReads: LARGE_INTEGER, - pub CompressionRatioReads: BYTE, - pub CompressionRatioWrites: BYTE, -} -pub type TAPE_STATISTICS = _TAPE_STATISTICS; -pub type PTAPE_STATISTICS = *mut _TAPE_STATISTICS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TAPE_GET_STATISTICS { - pub Operation: DWORD, -} -pub type TAPE_GET_STATISTICS = _TAPE_GET_STATISTICS; -pub type PTAPE_GET_STATISTICS = *mut _TAPE_GET_STATISTICS; -pub const _STORAGE_MEDIA_TYPE_DDS_4mm: _STORAGE_MEDIA_TYPE = 32; -pub const _STORAGE_MEDIA_TYPE_MiniQic: _STORAGE_MEDIA_TYPE = 33; -pub const _STORAGE_MEDIA_TYPE_Travan: _STORAGE_MEDIA_TYPE = 34; -pub const _STORAGE_MEDIA_TYPE_QIC: _STORAGE_MEDIA_TYPE = 35; -pub const _STORAGE_MEDIA_TYPE_MP_8mm: _STORAGE_MEDIA_TYPE = 36; -pub const _STORAGE_MEDIA_TYPE_AME_8mm: _STORAGE_MEDIA_TYPE = 37; -pub const _STORAGE_MEDIA_TYPE_AIT1_8mm: _STORAGE_MEDIA_TYPE = 38; -pub const _STORAGE_MEDIA_TYPE_DLT: _STORAGE_MEDIA_TYPE = 39; -pub const _STORAGE_MEDIA_TYPE_NCTP: _STORAGE_MEDIA_TYPE = 40; -pub const _STORAGE_MEDIA_TYPE_IBM_3480: _STORAGE_MEDIA_TYPE = 41; -pub const _STORAGE_MEDIA_TYPE_IBM_3490E: _STORAGE_MEDIA_TYPE = 42; -pub const _STORAGE_MEDIA_TYPE_IBM_Magstar_3590: _STORAGE_MEDIA_TYPE = 43; -pub const _STORAGE_MEDIA_TYPE_IBM_Magstar_MP: _STORAGE_MEDIA_TYPE = 44; -pub const _STORAGE_MEDIA_TYPE_STK_DATA_D3: _STORAGE_MEDIA_TYPE = 45; -pub const _STORAGE_MEDIA_TYPE_SONY_DTF: _STORAGE_MEDIA_TYPE = 46; -pub const _STORAGE_MEDIA_TYPE_DV_6mm: _STORAGE_MEDIA_TYPE = 47; -pub const _STORAGE_MEDIA_TYPE_DMI: _STORAGE_MEDIA_TYPE = 48; -pub const _STORAGE_MEDIA_TYPE_SONY_D2: _STORAGE_MEDIA_TYPE = 49; -pub const _STORAGE_MEDIA_TYPE_CLEANER_CARTRIDGE: _STORAGE_MEDIA_TYPE = 50; -pub const _STORAGE_MEDIA_TYPE_CD_ROM: _STORAGE_MEDIA_TYPE = 51; -pub const _STORAGE_MEDIA_TYPE_CD_R: _STORAGE_MEDIA_TYPE = 52; -pub const _STORAGE_MEDIA_TYPE_CD_RW: _STORAGE_MEDIA_TYPE = 53; -pub const _STORAGE_MEDIA_TYPE_DVD_ROM: _STORAGE_MEDIA_TYPE = 54; -pub const _STORAGE_MEDIA_TYPE_DVD_R: _STORAGE_MEDIA_TYPE = 55; -pub const _STORAGE_MEDIA_TYPE_DVD_RW: _STORAGE_MEDIA_TYPE = 56; -pub const _STORAGE_MEDIA_TYPE_MO_3_RW: _STORAGE_MEDIA_TYPE = 57; -pub const _STORAGE_MEDIA_TYPE_MO_5_WO: _STORAGE_MEDIA_TYPE = 58; -pub const _STORAGE_MEDIA_TYPE_MO_5_RW: _STORAGE_MEDIA_TYPE = 59; -pub const _STORAGE_MEDIA_TYPE_MO_5_LIMDOW: _STORAGE_MEDIA_TYPE = 60; -pub const _STORAGE_MEDIA_TYPE_PC_5_WO: _STORAGE_MEDIA_TYPE = 61; -pub const _STORAGE_MEDIA_TYPE_PC_5_RW: _STORAGE_MEDIA_TYPE = 62; -pub const _STORAGE_MEDIA_TYPE_PD_5_RW: _STORAGE_MEDIA_TYPE = 63; -pub const _STORAGE_MEDIA_TYPE_ABL_5_WO: _STORAGE_MEDIA_TYPE = 64; -pub const _STORAGE_MEDIA_TYPE_PINNACLE_APEX_5_RW: _STORAGE_MEDIA_TYPE = 65; -pub const _STORAGE_MEDIA_TYPE_SONY_12_WO: _STORAGE_MEDIA_TYPE = 66; -pub const _STORAGE_MEDIA_TYPE_PHILIPS_12_WO: _STORAGE_MEDIA_TYPE = 67; -pub const _STORAGE_MEDIA_TYPE_HITACHI_12_WO: _STORAGE_MEDIA_TYPE = 68; -pub const _STORAGE_MEDIA_TYPE_CYGNET_12_WO: _STORAGE_MEDIA_TYPE = 69; -pub const _STORAGE_MEDIA_TYPE_KODAK_14_WO: _STORAGE_MEDIA_TYPE = 70; -pub const _STORAGE_MEDIA_TYPE_MO_NFR_525: _STORAGE_MEDIA_TYPE = 71; -pub const _STORAGE_MEDIA_TYPE_NIKON_12_RW: _STORAGE_MEDIA_TYPE = 72; -pub const _STORAGE_MEDIA_TYPE_IOMEGA_ZIP: _STORAGE_MEDIA_TYPE = 73; -pub const _STORAGE_MEDIA_TYPE_IOMEGA_JAZ: _STORAGE_MEDIA_TYPE = 74; -pub const _STORAGE_MEDIA_TYPE_SYQUEST_EZ135: _STORAGE_MEDIA_TYPE = 75; -pub const _STORAGE_MEDIA_TYPE_SYQUEST_EZFLYER: _STORAGE_MEDIA_TYPE = 76; -pub const _STORAGE_MEDIA_TYPE_SYQUEST_SYJET: _STORAGE_MEDIA_TYPE = 77; -pub const _STORAGE_MEDIA_TYPE_AVATAR_F2: _STORAGE_MEDIA_TYPE = 78; -pub const _STORAGE_MEDIA_TYPE_MP2_8mm: _STORAGE_MEDIA_TYPE = 79; -pub const _STORAGE_MEDIA_TYPE_DST_S: _STORAGE_MEDIA_TYPE = 80; -pub const _STORAGE_MEDIA_TYPE_DST_M: _STORAGE_MEDIA_TYPE = 81; -pub const _STORAGE_MEDIA_TYPE_DST_L: _STORAGE_MEDIA_TYPE = 82; -pub const _STORAGE_MEDIA_TYPE_VXATape_1: _STORAGE_MEDIA_TYPE = 83; -pub const _STORAGE_MEDIA_TYPE_VXATape_2: _STORAGE_MEDIA_TYPE = 84; -pub const _STORAGE_MEDIA_TYPE_STK_9840: _STORAGE_MEDIA_TYPE = 85; -pub const _STORAGE_MEDIA_TYPE_LTO_Ultrium: _STORAGE_MEDIA_TYPE = 86; -pub const _STORAGE_MEDIA_TYPE_LTO_Accelis: _STORAGE_MEDIA_TYPE = 87; -pub const _STORAGE_MEDIA_TYPE_DVD_RAM: _STORAGE_MEDIA_TYPE = 88; -pub const _STORAGE_MEDIA_TYPE_AIT_8mm: _STORAGE_MEDIA_TYPE = 89; -pub const _STORAGE_MEDIA_TYPE_ADR_1: _STORAGE_MEDIA_TYPE = 90; -pub const _STORAGE_MEDIA_TYPE_ADR_2: _STORAGE_MEDIA_TYPE = 91; -pub const _STORAGE_MEDIA_TYPE_STK_9940: _STORAGE_MEDIA_TYPE = 92; -pub const _STORAGE_MEDIA_TYPE_SAIT: _STORAGE_MEDIA_TYPE = 93; -pub const _STORAGE_MEDIA_TYPE_VXATape: _STORAGE_MEDIA_TYPE = 94; -pub type _STORAGE_MEDIA_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_MEDIA_TYPE as STORAGE_MEDIA_TYPE; -pub type PSTORAGE_MEDIA_TYPE = *mut _STORAGE_MEDIA_TYPE; -pub const _STORAGE_BUS_TYPE_BusTypeUnknown: _STORAGE_BUS_TYPE = 0; -pub const _STORAGE_BUS_TYPE_BusTypeScsi: _STORAGE_BUS_TYPE = 1; -pub const _STORAGE_BUS_TYPE_BusTypeAtapi: _STORAGE_BUS_TYPE = 2; -pub const _STORAGE_BUS_TYPE_BusTypeAta: _STORAGE_BUS_TYPE = 3; -pub const _STORAGE_BUS_TYPE_BusType1394: _STORAGE_BUS_TYPE = 4; -pub const _STORAGE_BUS_TYPE_BusTypeSsa: _STORAGE_BUS_TYPE = 5; -pub const _STORAGE_BUS_TYPE_BusTypeFibre: _STORAGE_BUS_TYPE = 6; -pub const _STORAGE_BUS_TYPE_BusTypeUsb: _STORAGE_BUS_TYPE = 7; -pub const _STORAGE_BUS_TYPE_BusTypeRAID: _STORAGE_BUS_TYPE = 8; -pub const _STORAGE_BUS_TYPE_BusTypeiScsi: _STORAGE_BUS_TYPE = 9; -pub const _STORAGE_BUS_TYPE_BusTypeSas: _STORAGE_BUS_TYPE = 10; -pub const _STORAGE_BUS_TYPE_BusTypeSata: _STORAGE_BUS_TYPE = 11; -pub const _STORAGE_BUS_TYPE_BusTypeSd: _STORAGE_BUS_TYPE = 12; -pub const _STORAGE_BUS_TYPE_BusTypeMmc: _STORAGE_BUS_TYPE = 13; -pub const _STORAGE_BUS_TYPE_BusTypeVirtual: _STORAGE_BUS_TYPE = 14; -pub const _STORAGE_BUS_TYPE_BusTypeFileBackedVirtual: _STORAGE_BUS_TYPE = 15; -pub const _STORAGE_BUS_TYPE_BusTypeSpaces: _STORAGE_BUS_TYPE = 16; -pub const _STORAGE_BUS_TYPE_BusTypeNvme: _STORAGE_BUS_TYPE = 17; -pub const _STORAGE_BUS_TYPE_BusTypeSCM: _STORAGE_BUS_TYPE = 18; -pub const _STORAGE_BUS_TYPE_BusTypeUfs: _STORAGE_BUS_TYPE = 19; -pub const _STORAGE_BUS_TYPE_BusTypeMax: _STORAGE_BUS_TYPE = 20; -pub const _STORAGE_BUS_TYPE_BusTypeMaxReserved: _STORAGE_BUS_TYPE = 127; -pub type _STORAGE_BUS_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_BUS_TYPE as STORAGE_BUS_TYPE; -pub type PSTORAGE_BUS_TYPE = *mut _STORAGE_BUS_TYPE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DEVICE_MEDIA_INFO { - pub DeviceSpecific: _DEVICE_MEDIA_INFO__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DEVICE_MEDIA_INFO__bindgen_ty_1 { - pub DiskInfo: _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_1, - pub RemovableDiskInfo: _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_2, - pub TapeInfo: _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_1 { - pub Cylinders: LARGE_INTEGER, - pub MediaType: STORAGE_MEDIA_TYPE, - pub TracksPerCylinder: DWORD, - pub SectorsPerTrack: DWORD, - pub BytesPerSector: DWORD, - pub NumberMediaSides: DWORD, - pub MediaCharacteristics: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_2 { - pub Cylinders: LARGE_INTEGER, - pub MediaType: STORAGE_MEDIA_TYPE, - pub TracksPerCylinder: DWORD, - pub SectorsPerTrack: DWORD, - pub BytesPerSector: DWORD, - pub NumberMediaSides: DWORD, - pub MediaCharacteristics: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_3 { - pub MediaType: STORAGE_MEDIA_TYPE, - pub MediaCharacteristics: DWORD, - pub CurrentBlockSize: DWORD, - pub BusType: STORAGE_BUS_TYPE, - pub BusSpecificData: _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1 { - pub ScsiInformation: _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_MEDIA_INFO__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1__bindgen_ty_1 { - pub MediumType: BYTE, - pub DensityCode: BYTE, -} -pub type DEVICE_MEDIA_INFO = _DEVICE_MEDIA_INFO; -pub type PDEVICE_MEDIA_INFO = *mut _DEVICE_MEDIA_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _GET_MEDIA_TYPES { - pub DeviceType: DWORD, - pub MediaInfoCount: DWORD, - pub MediaInfo: [DEVICE_MEDIA_INFO; 1usize], -} -pub type GET_MEDIA_TYPES = _GET_MEDIA_TYPES; -pub type PGET_MEDIA_TYPES = *mut _GET_MEDIA_TYPES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_PREDICT_FAILURE { - pub PredictFailure: DWORD, - pub VendorSpecific: [BYTE; 512usize], -} -pub type STORAGE_PREDICT_FAILURE = _STORAGE_PREDICT_FAILURE; -pub type PSTORAGE_PREDICT_FAILURE = *mut _STORAGE_PREDICT_FAILURE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_FAILURE_PREDICTION_CONFIG { - pub Version: DWORD, - pub Size: DWORD, - pub Set: BOOLEAN, - pub Enabled: BOOLEAN, - pub Reserved: WORD, -} -pub type STORAGE_FAILURE_PREDICTION_CONFIG = _STORAGE_FAILURE_PREDICTION_CONFIG; -pub type PSTORAGE_FAILURE_PREDICTION_CONFIG = *mut _STORAGE_FAILURE_PREDICTION_CONFIG; -pub const _STORAGE_QUERY_TYPE_PropertyStandardQuery: _STORAGE_QUERY_TYPE = 0; -pub const _STORAGE_QUERY_TYPE_PropertyExistsQuery: _STORAGE_QUERY_TYPE = 1; -pub const _STORAGE_QUERY_TYPE_PropertyMaskQuery: _STORAGE_QUERY_TYPE = 2; -pub const _STORAGE_QUERY_TYPE_PropertyQueryMaxDefined: _STORAGE_QUERY_TYPE = 3; -pub type _STORAGE_QUERY_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_QUERY_TYPE as STORAGE_QUERY_TYPE; -pub type PSTORAGE_QUERY_TYPE = *mut _STORAGE_QUERY_TYPE; -pub const _STORAGE_SET_TYPE_PropertyStandardSet: _STORAGE_SET_TYPE = 0; -pub const _STORAGE_SET_TYPE_PropertyExistsSet: _STORAGE_SET_TYPE = 1; -pub const _STORAGE_SET_TYPE_PropertySetMaxDefined: _STORAGE_SET_TYPE = 2; -pub type _STORAGE_SET_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_SET_TYPE as STORAGE_SET_TYPE; -pub type PSTORAGE_SET_TYPE = *mut _STORAGE_SET_TYPE; -pub const _STORAGE_PROPERTY_ID_StorageDeviceProperty: _STORAGE_PROPERTY_ID = 0; -pub const _STORAGE_PROPERTY_ID_StorageAdapterProperty: _STORAGE_PROPERTY_ID = 1; -pub const _STORAGE_PROPERTY_ID_StorageDeviceIdProperty: _STORAGE_PROPERTY_ID = 2; -pub const _STORAGE_PROPERTY_ID_StorageDeviceUniqueIdProperty: _STORAGE_PROPERTY_ID = 3; -pub const _STORAGE_PROPERTY_ID_StorageDeviceWriteCacheProperty: _STORAGE_PROPERTY_ID = 4; -pub const _STORAGE_PROPERTY_ID_StorageMiniportProperty: _STORAGE_PROPERTY_ID = 5; -pub const _STORAGE_PROPERTY_ID_StorageAccessAlignmentProperty: _STORAGE_PROPERTY_ID = 6; -pub const _STORAGE_PROPERTY_ID_StorageDeviceSeekPenaltyProperty: _STORAGE_PROPERTY_ID = 7; -pub const _STORAGE_PROPERTY_ID_StorageDeviceTrimProperty: _STORAGE_PROPERTY_ID = 8; -pub const _STORAGE_PROPERTY_ID_StorageDeviceWriteAggregationProperty: _STORAGE_PROPERTY_ID = 9; -pub const _STORAGE_PROPERTY_ID_StorageDeviceDeviceTelemetryProperty: _STORAGE_PROPERTY_ID = 10; -pub const _STORAGE_PROPERTY_ID_StorageDeviceLBProvisioningProperty: _STORAGE_PROPERTY_ID = 11; -pub const _STORAGE_PROPERTY_ID_StorageDevicePowerProperty: _STORAGE_PROPERTY_ID = 12; -pub const _STORAGE_PROPERTY_ID_StorageDeviceCopyOffloadProperty: _STORAGE_PROPERTY_ID = 13; -pub const _STORAGE_PROPERTY_ID_StorageDeviceResiliencyProperty: _STORAGE_PROPERTY_ID = 14; -pub const _STORAGE_PROPERTY_ID_StorageDeviceMediumProductType: _STORAGE_PROPERTY_ID = 15; -pub const _STORAGE_PROPERTY_ID_StorageAdapterRpmbProperty: _STORAGE_PROPERTY_ID = 16; -pub const _STORAGE_PROPERTY_ID_StorageAdapterCryptoProperty: _STORAGE_PROPERTY_ID = 17; -pub const _STORAGE_PROPERTY_ID_StorageDeviceIoCapabilityProperty: _STORAGE_PROPERTY_ID = 48; -pub const _STORAGE_PROPERTY_ID_StorageAdapterProtocolSpecificProperty: _STORAGE_PROPERTY_ID = 49; -pub const _STORAGE_PROPERTY_ID_StorageDeviceProtocolSpecificProperty: _STORAGE_PROPERTY_ID = 50; -pub const _STORAGE_PROPERTY_ID_StorageAdapterTemperatureProperty: _STORAGE_PROPERTY_ID = 51; -pub const _STORAGE_PROPERTY_ID_StorageDeviceTemperatureProperty: _STORAGE_PROPERTY_ID = 52; -pub const _STORAGE_PROPERTY_ID_StorageAdapterPhysicalTopologyProperty: _STORAGE_PROPERTY_ID = 53; -pub const _STORAGE_PROPERTY_ID_StorageDevicePhysicalTopologyProperty: _STORAGE_PROPERTY_ID = 54; -pub const _STORAGE_PROPERTY_ID_StorageDeviceAttributesProperty: _STORAGE_PROPERTY_ID = 55; -pub const _STORAGE_PROPERTY_ID_StorageDeviceManagementStatus: _STORAGE_PROPERTY_ID = 56; -pub const _STORAGE_PROPERTY_ID_StorageAdapterSerialNumberProperty: _STORAGE_PROPERTY_ID = 57; -pub const _STORAGE_PROPERTY_ID_StorageDeviceLocationProperty: _STORAGE_PROPERTY_ID = 58; -pub const _STORAGE_PROPERTY_ID_StorageDeviceNumaProperty: _STORAGE_PROPERTY_ID = 59; -pub const _STORAGE_PROPERTY_ID_StorageDeviceZonedDeviceProperty: _STORAGE_PROPERTY_ID = 60; -pub const _STORAGE_PROPERTY_ID_StorageDeviceUnsafeShutdownCount: _STORAGE_PROPERTY_ID = 61; -pub const _STORAGE_PROPERTY_ID_StorageDeviceEnduranceProperty: _STORAGE_PROPERTY_ID = 62; -pub const _STORAGE_PROPERTY_ID_StorageDeviceLedStateProperty: _STORAGE_PROPERTY_ID = 63; -pub const _STORAGE_PROPERTY_ID_StorageDeviceSelfEncryptionProperty: _STORAGE_PROPERTY_ID = 64; -pub const _STORAGE_PROPERTY_ID_StorageFruIdProperty: _STORAGE_PROPERTY_ID = 65; -pub type _STORAGE_PROPERTY_ID = ::std::os::raw::c_int; -pub use self::_STORAGE_PROPERTY_ID as STORAGE_PROPERTY_ID; -pub type PSTORAGE_PROPERTY_ID = *mut _STORAGE_PROPERTY_ID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_PROPERTY_QUERY { - pub PropertyId: STORAGE_PROPERTY_ID, - pub QueryType: STORAGE_QUERY_TYPE, - pub AdditionalParameters: [BYTE; 1usize], -} -pub type STORAGE_PROPERTY_QUERY = _STORAGE_PROPERTY_QUERY; -pub type PSTORAGE_PROPERTY_QUERY = *mut _STORAGE_PROPERTY_QUERY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_PROPERTY_SET { - pub PropertyId: STORAGE_PROPERTY_ID, - pub SetType: STORAGE_SET_TYPE, - pub AdditionalParameters: [BYTE; 1usize], -} -pub type STORAGE_PROPERTY_SET = _STORAGE_PROPERTY_SET; -pub type PSTORAGE_PROPERTY_SET = *mut _STORAGE_PROPERTY_SET; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DESCRIPTOR_HEADER { - pub Version: DWORD, - pub Size: DWORD, -} -pub type STORAGE_DESCRIPTOR_HEADER = _STORAGE_DESCRIPTOR_HEADER; -pub type PSTORAGE_DESCRIPTOR_HEADER = *mut _STORAGE_DESCRIPTOR_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub DeviceType: BYTE, - pub DeviceTypeModifier: BYTE, - pub RemovableMedia: BOOLEAN, - pub CommandQueueing: BOOLEAN, - pub VendorIdOffset: DWORD, - pub ProductIdOffset: DWORD, - pub ProductRevisionOffset: DWORD, - pub SerialNumberOffset: DWORD, - pub BusType: STORAGE_BUS_TYPE, - pub RawPropertiesLength: DWORD, - pub RawDeviceProperties: [BYTE; 1usize], -} -pub type STORAGE_DEVICE_DESCRIPTOR = _STORAGE_DEVICE_DESCRIPTOR; -pub type PSTORAGE_DEVICE_DESCRIPTOR = *mut _STORAGE_DEVICE_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_ADAPTER_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub MaximumTransferLength: DWORD, - pub MaximumPhysicalPages: DWORD, - pub AlignmentMask: DWORD, - pub AdapterUsesPio: BOOLEAN, - pub AdapterScansDown: BOOLEAN, - pub CommandQueueing: BOOLEAN, - pub AcceleratedTransfer: BOOLEAN, - pub BusType: BYTE, - pub BusMajorVersion: WORD, - pub BusMinorVersion: WORD, - pub SrbType: BYTE, - pub AddressType: BYTE, -} -pub type STORAGE_ADAPTER_DESCRIPTOR = _STORAGE_ADAPTER_DESCRIPTOR; -pub type PSTORAGE_ADAPTER_DESCRIPTOR = *mut _STORAGE_ADAPTER_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub BytesPerCacheLine: DWORD, - pub BytesOffsetForCacheAlignment: DWORD, - pub BytesPerLogicalSector: DWORD, - pub BytesPerPhysicalSector: DWORD, - pub BytesOffsetForSectorAlignment: DWORD, -} -pub type STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR = _STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR; -pub type PSTORAGE_ACCESS_ALIGNMENT_DESCRIPTOR = *mut _STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub MediumProductType: DWORD, -} -pub type STORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR = _STORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR; -pub type PSTORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR = *mut _STORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR; -pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetReserved: _STORAGE_PORT_CODE_SET = 0; -pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetStorport: _STORAGE_PORT_CODE_SET = 1; -pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetSCSIport: _STORAGE_PORT_CODE_SET = 2; -pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetSpaceport: _STORAGE_PORT_CODE_SET = 3; -pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetATAport: _STORAGE_PORT_CODE_SET = 4; -pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetUSBport: _STORAGE_PORT_CODE_SET = 5; -pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetSBP2port: _STORAGE_PORT_CODE_SET = 6; -pub const _STORAGE_PORT_CODE_SET_StoragePortCodeSetSDport: _STORAGE_PORT_CODE_SET = 7; -pub type _STORAGE_PORT_CODE_SET = ::std::os::raw::c_int; -pub use self::_STORAGE_PORT_CODE_SET as STORAGE_PORT_CODE_SET; -pub type PSTORAGE_PORT_CODE_SET = *mut _STORAGE_PORT_CODE_SET; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STORAGE_MINIPORT_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub Portdriver: STORAGE_PORT_CODE_SET, - pub LUNResetSupported: BOOLEAN, - pub TargetResetSupported: BOOLEAN, - pub IoTimeoutValue: WORD, - pub ExtraIoInfoSupported: BOOLEAN, - pub Flags: _STORAGE_MINIPORT_DESCRIPTOR__bindgen_ty_1, - pub Reserved0: [BYTE; 2usize], - pub Reserved1: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _STORAGE_MINIPORT_DESCRIPTOR__bindgen_ty_1 { - pub __bindgen_anon_1: _STORAGE_MINIPORT_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1, - pub AsBYTE: BYTE, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_MINIPORT_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, -} -impl _STORAGE_MINIPORT_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn LogicalPoFxForDisk(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } - } - #[inline] - pub fn set_LogicalPoFxForDisk(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 7u8) as u8) } - } - #[inline] - pub fn set_Reserved(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 7u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - LogicalPoFxForDisk: BYTE, - Reserved: BYTE, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let LogicalPoFxForDisk: u8 = unsafe { ::std::mem::transmute(LogicalPoFxForDisk) }; - LogicalPoFxForDisk as u64 - }); - __bindgen_bitfield_unit.set(1usize, 7u8, { - let Reserved: u8 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type STORAGE_MINIPORT_DESCRIPTOR = _STORAGE_MINIPORT_DESCRIPTOR; -pub type PSTORAGE_MINIPORT_DESCRIPTOR = *mut _STORAGE_MINIPORT_DESCRIPTOR; -pub const _STORAGE_IDENTIFIER_CODE_SET_StorageIdCodeSetReserved: _STORAGE_IDENTIFIER_CODE_SET = 0; -pub const _STORAGE_IDENTIFIER_CODE_SET_StorageIdCodeSetBinary: _STORAGE_IDENTIFIER_CODE_SET = 1; -pub const _STORAGE_IDENTIFIER_CODE_SET_StorageIdCodeSetAscii: _STORAGE_IDENTIFIER_CODE_SET = 2; -pub const _STORAGE_IDENTIFIER_CODE_SET_StorageIdCodeSetUtf8: _STORAGE_IDENTIFIER_CODE_SET = 3; -pub type _STORAGE_IDENTIFIER_CODE_SET = ::std::os::raw::c_int; -pub use self::_STORAGE_IDENTIFIER_CODE_SET as STORAGE_IDENTIFIER_CODE_SET; -pub type PSTORAGE_IDENTIFIER_CODE_SET = *mut _STORAGE_IDENTIFIER_CODE_SET; -pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeVendorSpecific: _STORAGE_IDENTIFIER_TYPE = 0; -pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeVendorId: _STORAGE_IDENTIFIER_TYPE = 1; -pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeEUI64: _STORAGE_IDENTIFIER_TYPE = 2; -pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeFCPHName: _STORAGE_IDENTIFIER_TYPE = 3; -pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypePortRelative: _STORAGE_IDENTIFIER_TYPE = 4; -pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeTargetPortGroup: _STORAGE_IDENTIFIER_TYPE = 5; -pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeLogicalUnitGroup: _STORAGE_IDENTIFIER_TYPE = 6; -pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeMD5LogicalUnitIdentifier: _STORAGE_IDENTIFIER_TYPE = - 7; -pub const _STORAGE_IDENTIFIER_TYPE_StorageIdTypeScsiNameString: _STORAGE_IDENTIFIER_TYPE = 8; -pub type _STORAGE_IDENTIFIER_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_IDENTIFIER_TYPE as STORAGE_IDENTIFIER_TYPE; -pub type PSTORAGE_IDENTIFIER_TYPE = *mut _STORAGE_IDENTIFIER_TYPE; -pub const _STORAGE_ID_NAA_FORMAT_StorageIdNAAFormatIEEEExtended: _STORAGE_ID_NAA_FORMAT = 2; -pub const _STORAGE_ID_NAA_FORMAT_StorageIdNAAFormatIEEERegistered: _STORAGE_ID_NAA_FORMAT = 3; -pub const _STORAGE_ID_NAA_FORMAT_StorageIdNAAFormatIEEEERegisteredExtended: _STORAGE_ID_NAA_FORMAT = - 5; -pub type _STORAGE_ID_NAA_FORMAT = ::std::os::raw::c_int; -pub use self::_STORAGE_ID_NAA_FORMAT as STORAGE_ID_NAA_FORMAT; -pub type PSTORAGE_ID_NAA_FORMAT = *mut _STORAGE_ID_NAA_FORMAT; -pub const _STORAGE_ASSOCIATION_TYPE_StorageIdAssocDevice: _STORAGE_ASSOCIATION_TYPE = 0; -pub const _STORAGE_ASSOCIATION_TYPE_StorageIdAssocPort: _STORAGE_ASSOCIATION_TYPE = 1; -pub const _STORAGE_ASSOCIATION_TYPE_StorageIdAssocTarget: _STORAGE_ASSOCIATION_TYPE = 2; -pub type _STORAGE_ASSOCIATION_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_ASSOCIATION_TYPE as STORAGE_ASSOCIATION_TYPE; -pub type PSTORAGE_ASSOCIATION_TYPE = *mut _STORAGE_ASSOCIATION_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_IDENTIFIER { - pub CodeSet: STORAGE_IDENTIFIER_CODE_SET, - pub Type: STORAGE_IDENTIFIER_TYPE, - pub IdentifierSize: WORD, - pub NextOffset: WORD, - pub Association: STORAGE_ASSOCIATION_TYPE, - pub Identifier: [BYTE; 1usize], -} -pub type STORAGE_IDENTIFIER = _STORAGE_IDENTIFIER; -pub type PSTORAGE_IDENTIFIER = *mut _STORAGE_IDENTIFIER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_ID_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub NumberOfIdentifiers: DWORD, - pub Identifiers: [BYTE; 1usize], -} -pub type STORAGE_DEVICE_ID_DESCRIPTOR = _STORAGE_DEVICE_ID_DESCRIPTOR; -pub type PSTORAGE_DEVICE_ID_DESCRIPTOR = *mut _STORAGE_DEVICE_ID_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_SEEK_PENALTY_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub IncursSeekPenalty: BOOLEAN, -} -pub type DEVICE_SEEK_PENALTY_DESCRIPTOR = _DEVICE_SEEK_PENALTY_DESCRIPTOR; -pub type PDEVICE_SEEK_PENALTY_DESCRIPTOR = *mut _DEVICE_SEEK_PENALTY_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_WRITE_AGGREGATION_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub BenefitsFromWriteAggregation: BOOLEAN, -} -pub type DEVICE_WRITE_AGGREGATION_DESCRIPTOR = _DEVICE_WRITE_AGGREGATION_DESCRIPTOR; -pub type PDEVICE_WRITE_AGGREGATION_DESCRIPTOR = *mut _DEVICE_WRITE_AGGREGATION_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_TRIM_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub TrimEnabled: BOOLEAN, -} -pub type DEVICE_TRIM_DESCRIPTOR = _DEVICE_TRIM_DESCRIPTOR; -pub type PDEVICE_TRIM_DESCRIPTOR = *mut _DEVICE_TRIM_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_LB_PROVISIONING_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub Reserved1: [BYTE; 7usize], - pub OptimalUnmapGranularity: DWORDLONG, - pub UnmapGranularityAlignment: DWORDLONG, - pub MaxUnmapLbaCount: DWORD, - pub MaxUnmapBlockDescriptorCount: DWORD, -} -impl _DEVICE_LB_PROVISIONING_DESCRIPTOR { - #[inline] - pub fn ThinProvisioningEnabled(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } - } - #[inline] - pub fn set_ThinProvisioningEnabled(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn ThinProvisioningReadZeros(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) } - } - #[inline] - pub fn set_ThinProvisioningReadZeros(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn AnchorSupported(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 3u8) as u8) } - } - #[inline] - pub fn set_AnchorSupported(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 3u8, val as u64) - } - } - #[inline] - pub fn UnmapGranularityAlignmentValid(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u8) } - } - #[inline] - pub fn set_UnmapGranularityAlignmentValid(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 1u8, val as u64) - } - } - #[inline] - pub fn GetFreeSpaceSupported(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u8) } - } - #[inline] - pub fn set_GetFreeSpaceSupported(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(6usize, 1u8, val as u64) - } - } - #[inline] - pub fn MapSupported(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u8) } - } - #[inline] - pub fn set_MapSupported(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(7usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - ThinProvisioningEnabled: BYTE, - ThinProvisioningReadZeros: BYTE, - AnchorSupported: BYTE, - UnmapGranularityAlignmentValid: BYTE, - GetFreeSpaceSupported: BYTE, - MapSupported: BYTE, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let ThinProvisioningEnabled: u8 = - unsafe { ::std::mem::transmute(ThinProvisioningEnabled) }; - ThinProvisioningEnabled as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let ThinProvisioningReadZeros: u8 = - unsafe { ::std::mem::transmute(ThinProvisioningReadZeros) }; - ThinProvisioningReadZeros as u64 - }); - __bindgen_bitfield_unit.set(2usize, 3u8, { - let AnchorSupported: u8 = unsafe { ::std::mem::transmute(AnchorSupported) }; - AnchorSupported as u64 - }); - __bindgen_bitfield_unit.set(5usize, 1u8, { - let UnmapGranularityAlignmentValid: u8 = - unsafe { ::std::mem::transmute(UnmapGranularityAlignmentValid) }; - UnmapGranularityAlignmentValid as u64 - }); - __bindgen_bitfield_unit.set(6usize, 1u8, { - let GetFreeSpaceSupported: u8 = unsafe { ::std::mem::transmute(GetFreeSpaceSupported) }; - GetFreeSpaceSupported as u64 - }); - __bindgen_bitfield_unit.set(7usize, 1u8, { - let MapSupported: u8 = unsafe { ::std::mem::transmute(MapSupported) }; - MapSupported as u64 - }); - __bindgen_bitfield_unit - } -} -pub type DEVICE_LB_PROVISIONING_DESCRIPTOR = _DEVICE_LB_PROVISIONING_DESCRIPTOR; -pub type PDEVICE_LB_PROVISIONING_DESCRIPTOR = *mut _DEVICE_LB_PROVISIONING_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_LB_PROVISIONING_MAP_RESOURCES { - pub Size: DWORD, - pub Version: DWORD, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub Reserved1: [BYTE; 3usize], - pub _bitfield_align_2: [u8; 0], - pub _bitfield_2: __BindgenBitfieldUnit<[u8; 1usize]>, - pub Reserved3: [BYTE; 3usize], - pub AvailableMappingResources: DWORDLONG, - pub UsedMappingResources: DWORDLONG, -} -impl _STORAGE_LB_PROVISIONING_MAP_RESOURCES { - #[inline] - pub fn AvailableMappingResourcesValid(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } - } - #[inline] - pub fn set_AvailableMappingResourcesValid(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn UsedMappingResourcesValid(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u8) } - } - #[inline] - pub fn set_UsedMappingResourcesValid(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved0(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 6u8) as u8) } - } - #[inline] - pub fn set_Reserved0(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 6u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - AvailableMappingResourcesValid: BYTE, - UsedMappingResourcesValid: BYTE, - Reserved0: BYTE, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let AvailableMappingResourcesValid: u8 = - unsafe { ::std::mem::transmute(AvailableMappingResourcesValid) }; - AvailableMappingResourcesValid as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let UsedMappingResourcesValid: u8 = - unsafe { ::std::mem::transmute(UsedMappingResourcesValid) }; - UsedMappingResourcesValid as u64 - }); - __bindgen_bitfield_unit.set(2usize, 6u8, { - let Reserved0: u8 = unsafe { ::std::mem::transmute(Reserved0) }; - Reserved0 as u64 - }); - __bindgen_bitfield_unit - } - #[inline] - pub fn AvailableMappingResourcesScope(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_2.get(0usize, 2u8) as u8) } - } - #[inline] - pub fn set_AvailableMappingResourcesScope(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_2.set(0usize, 2u8, val as u64) - } - } - #[inline] - pub fn UsedMappingResourcesScope(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_2.get(2usize, 2u8) as u8) } - } - #[inline] - pub fn set_UsedMappingResourcesScope(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_2.set(2usize, 2u8, val as u64) - } - } - #[inline] - pub fn Reserved2(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_2.get(4usize, 4u8) as u8) } - } - #[inline] - pub fn set_Reserved2(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_2.set(4usize, 4u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_2( - AvailableMappingResourcesScope: BYTE, - UsedMappingResourcesScope: BYTE, - Reserved2: BYTE, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 2u8, { - let AvailableMappingResourcesScope: u8 = - unsafe { ::std::mem::transmute(AvailableMappingResourcesScope) }; - AvailableMappingResourcesScope as u64 - }); - __bindgen_bitfield_unit.set(2usize, 2u8, { - let UsedMappingResourcesScope: u8 = - unsafe { ::std::mem::transmute(UsedMappingResourcesScope) }; - UsedMappingResourcesScope as u64 - }); - __bindgen_bitfield_unit.set(4usize, 4u8, { - let Reserved2: u8 = unsafe { ::std::mem::transmute(Reserved2) }; - Reserved2 as u64 - }); - __bindgen_bitfield_unit - } -} -pub type STORAGE_LB_PROVISIONING_MAP_RESOURCES = _STORAGE_LB_PROVISIONING_MAP_RESOURCES; -pub type PSTORAGE_LB_PROVISIONING_MAP_RESOURCES = *mut _STORAGE_LB_PROVISIONING_MAP_RESOURCES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_POWER_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub DeviceAttentionSupported: BOOLEAN, - pub AsynchronousNotificationSupported: BOOLEAN, - pub IdlePowerManagementEnabled: BOOLEAN, - pub D3ColdEnabled: BOOLEAN, - pub D3ColdSupported: BOOLEAN, - pub NoVerifyDuringIdlePower: BOOLEAN, - pub Reserved: [BYTE; 2usize], - pub IdleTimeoutInMS: DWORD, -} -pub type DEVICE_POWER_DESCRIPTOR = _DEVICE_POWER_DESCRIPTOR; -pub type PDEVICE_POWER_DESCRIPTOR = *mut _DEVICE_POWER_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_COPY_OFFLOAD_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub MaximumTokenLifetime: DWORD, - pub DefaultTokenLifetime: DWORD, - pub MaximumTransferSize: DWORDLONG, - pub OptimalTransferCount: DWORDLONG, - pub MaximumDataDescriptors: DWORD, - pub MaximumTransferLengthPerDescriptor: DWORD, - pub OptimalTransferLengthPerDescriptor: DWORD, - pub OptimalTransferLengthGranularity: WORD, - pub Reserved: [BYTE; 2usize], -} -pub type DEVICE_COPY_OFFLOAD_DESCRIPTOR = _DEVICE_COPY_OFFLOAD_DESCRIPTOR; -pub type PDEVICE_COPY_OFFLOAD_DESCRIPTOR = *mut _DEVICE_COPY_OFFLOAD_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_RESILIENCY_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub NameOffset: DWORD, - pub NumberOfLogicalCopies: DWORD, - pub NumberOfPhysicalCopies: DWORD, - pub PhysicalDiskRedundancy: DWORD, - pub NumberOfColumns: DWORD, - pub Interleave: DWORD, -} -pub type STORAGE_DEVICE_RESILIENCY_DESCRIPTOR = _STORAGE_DEVICE_RESILIENCY_DESCRIPTOR; -pub type PSTORAGE_DEVICE_RESILIENCY_DESCRIPTOR = *mut _STORAGE_DEVICE_RESILIENCY_DESCRIPTOR; -pub const _STORAGE_RPMB_FRAME_TYPE_StorageRpmbFrameTypeUnknown: _STORAGE_RPMB_FRAME_TYPE = 0; -pub const _STORAGE_RPMB_FRAME_TYPE_StorageRpmbFrameTypeStandard: _STORAGE_RPMB_FRAME_TYPE = 1; -pub const _STORAGE_RPMB_FRAME_TYPE_StorageRpmbFrameTypeMax: _STORAGE_RPMB_FRAME_TYPE = 2; -pub type _STORAGE_RPMB_FRAME_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_RPMB_FRAME_TYPE as STORAGE_RPMB_FRAME_TYPE; -pub type PSTORAGE_RPMB_FRAME_TYPE = *mut _STORAGE_RPMB_FRAME_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_RPMB_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub SizeInBytes: DWORD, - pub MaxReliableWriteSizeInBytes: DWORD, - pub FrameFormat: STORAGE_RPMB_FRAME_TYPE, -} -pub type STORAGE_RPMB_DESCRIPTOR = _STORAGE_RPMB_DESCRIPTOR; -pub type PSTORAGE_RPMB_DESCRIPTOR = *mut _STORAGE_RPMB_DESCRIPTOR; -pub const _STORAGE_CRYPTO_ALGORITHM_ID_StorageCryptoAlgorithmUnknown: _STORAGE_CRYPTO_ALGORITHM_ID = - 0; -pub const _STORAGE_CRYPTO_ALGORITHM_ID_StorageCryptoAlgorithmXTSAES: _STORAGE_CRYPTO_ALGORITHM_ID = - 1; -pub const _STORAGE_CRYPTO_ALGORITHM_ID_StorageCryptoAlgorithmBitlockerAESCBC: - _STORAGE_CRYPTO_ALGORITHM_ID = 2; -pub const _STORAGE_CRYPTO_ALGORITHM_ID_StorageCryptoAlgorithmAESECB: _STORAGE_CRYPTO_ALGORITHM_ID = - 3; -pub const _STORAGE_CRYPTO_ALGORITHM_ID_StorageCryptoAlgorithmESSIVAESCBC: - _STORAGE_CRYPTO_ALGORITHM_ID = 4; -pub const _STORAGE_CRYPTO_ALGORITHM_ID_StorageCryptoAlgorithmMax: _STORAGE_CRYPTO_ALGORITHM_ID = 5; -pub type _STORAGE_CRYPTO_ALGORITHM_ID = ::std::os::raw::c_int; -pub use self::_STORAGE_CRYPTO_ALGORITHM_ID as STORAGE_CRYPTO_ALGORITHM_ID; -pub type PSTORAGE_CRYPTO_ALGORITHM_ID = *mut _STORAGE_CRYPTO_ALGORITHM_ID; -pub const _STORAGE_CRYPTO_KEY_SIZE_StorageCryptoKeySizeUnknown: _STORAGE_CRYPTO_KEY_SIZE = 0; -pub const _STORAGE_CRYPTO_KEY_SIZE_StorageCryptoKeySize128Bits: _STORAGE_CRYPTO_KEY_SIZE = 1; -pub const _STORAGE_CRYPTO_KEY_SIZE_StorageCryptoKeySize192Bits: _STORAGE_CRYPTO_KEY_SIZE = 2; -pub const _STORAGE_CRYPTO_KEY_SIZE_StorageCryptoKeySize256Bits: _STORAGE_CRYPTO_KEY_SIZE = 3; -pub const _STORAGE_CRYPTO_KEY_SIZE_StorageCryptoKeySize512Bits: _STORAGE_CRYPTO_KEY_SIZE = 4; -pub type _STORAGE_CRYPTO_KEY_SIZE = ::std::os::raw::c_int; -pub use self::_STORAGE_CRYPTO_KEY_SIZE as STORAGE_CRYPTO_KEY_SIZE; -pub type PSTORAGE_CRYPTO_KEY_SIZE = *mut _STORAGE_CRYPTO_KEY_SIZE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_CRYPTO_CAPABILITY { - pub Version: DWORD, - pub Size: DWORD, - pub CryptoCapabilityIndex: DWORD, - pub AlgorithmId: STORAGE_CRYPTO_ALGORITHM_ID, - pub KeySize: STORAGE_CRYPTO_KEY_SIZE, - pub DataUnitSizeBitmask: DWORD, -} -pub type STORAGE_CRYPTO_CAPABILITY = _STORAGE_CRYPTO_CAPABILITY; -pub type PSTORAGE_CRYPTO_CAPABILITY = *mut _STORAGE_CRYPTO_CAPABILITY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_CRYPTO_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub NumKeysSupported: DWORD, - pub NumCryptoCapabilities: DWORD, - pub CryptoCapabilities: [STORAGE_CRYPTO_CAPABILITY; 1usize], -} -pub type STORAGE_CRYPTO_DESCRIPTOR = _STORAGE_CRYPTO_DESCRIPTOR; -pub type PSTORAGE_CRYPTO_DESCRIPTOR = *mut _STORAGE_CRYPTO_DESCRIPTOR; -pub const _STORAGE_TIER_MEDIA_TYPE_StorageTierMediaTypeUnspecified: _STORAGE_TIER_MEDIA_TYPE = 0; -pub const _STORAGE_TIER_MEDIA_TYPE_StorageTierMediaTypeDisk: _STORAGE_TIER_MEDIA_TYPE = 1; -pub const _STORAGE_TIER_MEDIA_TYPE_StorageTierMediaTypeSsd: _STORAGE_TIER_MEDIA_TYPE = 2; -pub const _STORAGE_TIER_MEDIA_TYPE_StorageTierMediaTypeScm: _STORAGE_TIER_MEDIA_TYPE = 4; -pub const _STORAGE_TIER_MEDIA_TYPE_StorageTierMediaTypeMax: _STORAGE_TIER_MEDIA_TYPE = 5; -pub type _STORAGE_TIER_MEDIA_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_TIER_MEDIA_TYPE as STORAGE_TIER_MEDIA_TYPE; -pub type PSTORAGE_TIER_MEDIA_TYPE = *mut _STORAGE_TIER_MEDIA_TYPE; -pub const _STORAGE_TIER_CLASS_StorageTierClassUnspecified: _STORAGE_TIER_CLASS = 0; -pub const _STORAGE_TIER_CLASS_StorageTierClassCapacity: _STORAGE_TIER_CLASS = 1; -pub const _STORAGE_TIER_CLASS_StorageTierClassPerformance: _STORAGE_TIER_CLASS = 2; -pub const _STORAGE_TIER_CLASS_StorageTierClassMax: _STORAGE_TIER_CLASS = 3; -pub type _STORAGE_TIER_CLASS = ::std::os::raw::c_int; -pub use self::_STORAGE_TIER_CLASS as STORAGE_TIER_CLASS; -pub type PSTORAGE_TIER_CLASS = *mut _STORAGE_TIER_CLASS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_TIER { - pub Id: GUID, - pub Name: [WCHAR; 256usize], - pub Description: [WCHAR; 256usize], - pub Flags: DWORDLONG, - pub ProvisionedCapacity: DWORDLONG, - pub MediaType: STORAGE_TIER_MEDIA_TYPE, - pub Class: STORAGE_TIER_CLASS, -} -pub type STORAGE_TIER = _STORAGE_TIER; -pub type PSTORAGE_TIER = *mut _STORAGE_TIER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_TIERING_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub TotalNumberOfTiers: DWORD, - pub NumberOfTiersReturned: DWORD, - pub Tiers: [STORAGE_TIER; 1usize], -} -pub type STORAGE_DEVICE_TIERING_DESCRIPTOR = _STORAGE_DEVICE_TIERING_DESCRIPTOR; -pub type PSTORAGE_DEVICE_TIERING_DESCRIPTOR = *mut _STORAGE_DEVICE_TIERING_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub NumberOfFaultDomains: DWORD, - pub FaultDomainIds: [GUID; 1usize], -} -pub type STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR = _STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR; -pub type PSTORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR = *mut _STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR; -pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeUnknown: _STORAGE_PROTOCOL_TYPE = 0; -pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeScsi: _STORAGE_PROTOCOL_TYPE = 1; -pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeAta: _STORAGE_PROTOCOL_TYPE = 2; -pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeNvme: _STORAGE_PROTOCOL_TYPE = 3; -pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeSd: _STORAGE_PROTOCOL_TYPE = 4; -pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeUfs: _STORAGE_PROTOCOL_TYPE = 5; -pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeProprietary: _STORAGE_PROTOCOL_TYPE = 126; -pub const _STORAGE_PROTOCOL_TYPE_ProtocolTypeMaxReserved: _STORAGE_PROTOCOL_TYPE = 127; -pub type _STORAGE_PROTOCOL_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_PROTOCOL_TYPE as STORAGE_PROTOCOL_TYPE; -pub type PSTORAGE_PROTOCOL_TYPE = *mut _STORAGE_PROTOCOL_TYPE; -pub const _STORAGE_PROTOCOL_NVME_DATA_TYPE_NVMeDataTypeUnknown: _STORAGE_PROTOCOL_NVME_DATA_TYPE = - 0; -pub const _STORAGE_PROTOCOL_NVME_DATA_TYPE_NVMeDataTypeIdentify: _STORAGE_PROTOCOL_NVME_DATA_TYPE = - 1; -pub const _STORAGE_PROTOCOL_NVME_DATA_TYPE_NVMeDataTypeLogPage: _STORAGE_PROTOCOL_NVME_DATA_TYPE = - 2; -pub const _STORAGE_PROTOCOL_NVME_DATA_TYPE_NVMeDataTypeFeature: _STORAGE_PROTOCOL_NVME_DATA_TYPE = - 3; -pub type _STORAGE_PROTOCOL_NVME_DATA_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_PROTOCOL_NVME_DATA_TYPE as STORAGE_PROTOCOL_NVME_DATA_TYPE; -pub type PSTORAGE_PROTOCOL_NVME_DATA_TYPE = *mut _STORAGE_PROTOCOL_NVME_DATA_TYPE; -pub const _STORAGE_PROTOCOL_ATA_DATA_TYPE_AtaDataTypeUnknown: _STORAGE_PROTOCOL_ATA_DATA_TYPE = 0; -pub const _STORAGE_PROTOCOL_ATA_DATA_TYPE_AtaDataTypeIdentify: _STORAGE_PROTOCOL_ATA_DATA_TYPE = 1; -pub const _STORAGE_PROTOCOL_ATA_DATA_TYPE_AtaDataTypeLogPage: _STORAGE_PROTOCOL_ATA_DATA_TYPE = 2; -pub type _STORAGE_PROTOCOL_ATA_DATA_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_PROTOCOL_ATA_DATA_TYPE as STORAGE_PROTOCOL_ATA_DATA_TYPE; -pub type PSTORAGE_PROTOCOL_ATA_DATA_TYPE = *mut _STORAGE_PROTOCOL_ATA_DATA_TYPE; -pub const _STORAGE_PROTOCOL_UFS_DATA_TYPE_UfsDataTypeUnknown: _STORAGE_PROTOCOL_UFS_DATA_TYPE = 0; -pub const _STORAGE_PROTOCOL_UFS_DATA_TYPE_UfsDataTypeQueryDescriptor: - _STORAGE_PROTOCOL_UFS_DATA_TYPE = 1; -pub const _STORAGE_PROTOCOL_UFS_DATA_TYPE_UfsDataTypeQueryAttribute: - _STORAGE_PROTOCOL_UFS_DATA_TYPE = 2; -pub const _STORAGE_PROTOCOL_UFS_DATA_TYPE_UfsDataTypeQueryFlag: _STORAGE_PROTOCOL_UFS_DATA_TYPE = 3; -pub const _STORAGE_PROTOCOL_UFS_DATA_TYPE_UfsDataTypeQueryDmeAttribute: - _STORAGE_PROTOCOL_UFS_DATA_TYPE = 4; -pub const _STORAGE_PROTOCOL_UFS_DATA_TYPE_UfsDataTypeQueryDmePeerAttribute: - _STORAGE_PROTOCOL_UFS_DATA_TYPE = 5; -pub const _STORAGE_PROTOCOL_UFS_DATA_TYPE_UfsDataTypeMax: _STORAGE_PROTOCOL_UFS_DATA_TYPE = 6; -pub type _STORAGE_PROTOCOL_UFS_DATA_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_PROTOCOL_UFS_DATA_TYPE as STORAGE_PROTOCOL_UFS_DATA_TYPE; -pub type PSTORAGE_PROTOCOL_UFS_DATA_TYPE = *mut _STORAGE_PROTOCOL_UFS_DATA_TYPE; -#[repr(C)] -#[derive(Copy, Clone)] -pub union _STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE { - pub __bindgen_anon_1: _STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE__bindgen_ty_1, - pub AsUlong: DWORD, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE__bindgen_ty_1 { - #[inline] - pub fn RetainAsynEvent(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_RetainAsynEvent(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn LogSpecificField(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 4u8) as u32) } - } - #[inline] - pub fn set_LogSpecificField(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 4u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } - } - #[inline] - pub fn set_Reserved(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 27u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - RetainAsynEvent: DWORD, - LogSpecificField: DWORD, - Reserved: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let RetainAsynEvent: u32 = unsafe { ::std::mem::transmute(RetainAsynEvent) }; - RetainAsynEvent as u64 - }); - __bindgen_bitfield_unit.set(1usize, 4u8, { - let LogSpecificField: u32 = unsafe { ::std::mem::transmute(LogSpecificField) }; - LogSpecificField as u64 - }); - __bindgen_bitfield_unit.set(5usize, 27u8, { - let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE = _STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE; -pub type PSTORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE = - *mut _STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_PROTOCOL_SPECIFIC_DATA { - pub ProtocolType: STORAGE_PROTOCOL_TYPE, - pub DataType: DWORD, - pub ProtocolDataRequestValue: DWORD, - pub ProtocolDataRequestSubValue: DWORD, - pub ProtocolDataOffset: DWORD, - pub ProtocolDataLength: DWORD, - pub FixedProtocolReturnData: DWORD, - pub ProtocolDataRequestSubValue2: DWORD, - pub ProtocolDataRequestSubValue3: DWORD, - pub ProtocolDataRequestSubValue4: DWORD, -} -pub type STORAGE_PROTOCOL_SPECIFIC_DATA = _STORAGE_PROTOCOL_SPECIFIC_DATA; -pub type PSTORAGE_PROTOCOL_SPECIFIC_DATA = *mut _STORAGE_PROTOCOL_SPECIFIC_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_PROTOCOL_SPECIFIC_DATA_EXT { - pub ProtocolType: STORAGE_PROTOCOL_TYPE, - pub DataType: DWORD, - pub ProtocolDataValue: DWORD, - pub ProtocolDataSubValue: DWORD, - pub ProtocolDataOffset: DWORD, - pub ProtocolDataLength: DWORD, - pub FixedProtocolReturnData: DWORD, - pub ProtocolDataSubValue2: DWORD, - pub ProtocolDataSubValue3: DWORD, - pub ProtocolDataSubValue4: DWORD, - pub ProtocolDataSubValue5: DWORD, - pub Reserved: [DWORD; 5usize], -} -pub type STORAGE_PROTOCOL_SPECIFIC_DATA_EXT = _STORAGE_PROTOCOL_SPECIFIC_DATA_EXT; -pub type PSTORAGE_PROTOCOL_SPECIFIC_DATA_EXT = *mut _STORAGE_PROTOCOL_SPECIFIC_DATA_EXT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_PROTOCOL_DATA_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub ProtocolSpecificData: STORAGE_PROTOCOL_SPECIFIC_DATA, -} -pub type STORAGE_PROTOCOL_DATA_DESCRIPTOR = _STORAGE_PROTOCOL_DATA_DESCRIPTOR; -pub type PSTORAGE_PROTOCOL_DATA_DESCRIPTOR = *mut _STORAGE_PROTOCOL_DATA_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT { - pub Version: DWORD, - pub Size: DWORD, - pub ProtocolSpecificData: STORAGE_PROTOCOL_SPECIFIC_DATA_EXT, -} -pub type STORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT = _STORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT; -pub type PSTORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT = *mut _STORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_TEMPERATURE_INFO { - pub Index: WORD, - pub Temperature: SHORT, - pub OverThreshold: SHORT, - pub UnderThreshold: SHORT, - pub OverThresholdChangable: BOOLEAN, - pub UnderThresholdChangable: BOOLEAN, - pub EventGenerated: BOOLEAN, - pub Reserved0: BYTE, - pub Reserved1: DWORD, -} -pub type STORAGE_TEMPERATURE_INFO = _STORAGE_TEMPERATURE_INFO; -pub type PSTORAGE_TEMPERATURE_INFO = *mut _STORAGE_TEMPERATURE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_TEMPERATURE_DATA_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub CriticalTemperature: SHORT, - pub WarningTemperature: SHORT, - pub InfoCount: WORD, - pub Reserved0: [BYTE; 2usize], - pub Reserved1: [DWORD; 2usize], - pub TemperatureInfo: [STORAGE_TEMPERATURE_INFO; 1usize], -} -pub type STORAGE_TEMPERATURE_DATA_DESCRIPTOR = _STORAGE_TEMPERATURE_DATA_DESCRIPTOR; -pub type PSTORAGE_TEMPERATURE_DATA_DESCRIPTOR = *mut _STORAGE_TEMPERATURE_DATA_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_TEMPERATURE_THRESHOLD { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: WORD, - pub Index: WORD, - pub Threshold: SHORT, - pub OverThreshold: BOOLEAN, - pub Reserved: BYTE, -} -pub type STORAGE_TEMPERATURE_THRESHOLD = _STORAGE_TEMPERATURE_THRESHOLD; -pub type PSTORAGE_TEMPERATURE_THRESHOLD = *mut _STORAGE_TEMPERATURE_THRESHOLD; -pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactorUnknown: _STORAGE_DEVICE_FORM_FACTOR = 0; -pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactor3_5: _STORAGE_DEVICE_FORM_FACTOR = 1; -pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactor2_5: _STORAGE_DEVICE_FORM_FACTOR = 2; -pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactor1_8: _STORAGE_DEVICE_FORM_FACTOR = 3; -pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactor1_8Less: _STORAGE_DEVICE_FORM_FACTOR = 4; -pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactorEmbedded: _STORAGE_DEVICE_FORM_FACTOR = 5; -pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactorMemoryCard: _STORAGE_DEVICE_FORM_FACTOR = 6; -pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactormSata: _STORAGE_DEVICE_FORM_FACTOR = 7; -pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactorM_2: _STORAGE_DEVICE_FORM_FACTOR = 8; -pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactorPCIeBoard: _STORAGE_DEVICE_FORM_FACTOR = 9; -pub const _STORAGE_DEVICE_FORM_FACTOR_FormFactorDimm: _STORAGE_DEVICE_FORM_FACTOR = 10; -pub type _STORAGE_DEVICE_FORM_FACTOR = ::std::os::raw::c_int; -pub use self::_STORAGE_DEVICE_FORM_FACTOR as STORAGE_DEVICE_FORM_FACTOR; -pub type PSTORAGE_DEVICE_FORM_FACTOR = *mut _STORAGE_DEVICE_FORM_FACTOR; -pub const _STORAGE_COMPONENT_HEALTH_STATUS_HealthStatusUnknown: _STORAGE_COMPONENT_HEALTH_STATUS = - 0; -pub const _STORAGE_COMPONENT_HEALTH_STATUS_HealthStatusNormal: _STORAGE_COMPONENT_HEALTH_STATUS = 1; -pub const _STORAGE_COMPONENT_HEALTH_STATUS_HealthStatusThrottled: _STORAGE_COMPONENT_HEALTH_STATUS = - 2; -pub const _STORAGE_COMPONENT_HEALTH_STATUS_HealthStatusWarning: _STORAGE_COMPONENT_HEALTH_STATUS = - 3; -pub const _STORAGE_COMPONENT_HEALTH_STATUS_HealthStatusDisabled: _STORAGE_COMPONENT_HEALTH_STATUS = - 4; -pub const _STORAGE_COMPONENT_HEALTH_STATUS_HealthStatusFailed: _STORAGE_COMPONENT_HEALTH_STATUS = 5; -pub type _STORAGE_COMPONENT_HEALTH_STATUS = ::std::os::raw::c_int; -pub use self::_STORAGE_COMPONENT_HEALTH_STATUS as STORAGE_COMPONENT_HEALTH_STATUS; -pub type PSTORAGE_COMPONENT_HEALTH_STATUS = *mut _STORAGE_COMPONENT_HEALTH_STATUS; -#[repr(C)] -#[derive(Copy, Clone)] -pub union _STORAGE_SPEC_VERSION { - pub __bindgen_anon_1: _STORAGE_SPEC_VERSION__bindgen_ty_1, - pub AsUlong: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STORAGE_SPEC_VERSION__bindgen_ty_1 { - pub MinorVersion: _STORAGE_SPEC_VERSION__bindgen_ty_1__bindgen_ty_1, - pub MajorVersion: WORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _STORAGE_SPEC_VERSION__bindgen_ty_1__bindgen_ty_1 { - pub __bindgen_anon_1: _STORAGE_SPEC_VERSION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, - pub AsUshort: WORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_SPEC_VERSION__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { - pub SubMinor: BYTE, - pub Minor: BYTE, -} -pub type STORAGE_SPEC_VERSION = _STORAGE_SPEC_VERSION; -pub type PSTORAGE_SPEC_VERSION = *mut _STORAGE_SPEC_VERSION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STORAGE_PHYSICAL_DEVICE_DATA { - pub DeviceId: DWORD, - pub Role: DWORD, - pub HealthStatus: STORAGE_COMPONENT_HEALTH_STATUS, - pub CommandProtocol: STORAGE_PROTOCOL_TYPE, - pub SpecVersion: STORAGE_SPEC_VERSION, - pub FormFactor: STORAGE_DEVICE_FORM_FACTOR, - pub Vendor: [BYTE; 8usize], - pub Model: [BYTE; 40usize], - pub FirmwareRevision: [BYTE; 16usize], - pub Capacity: DWORDLONG, - pub PhysicalLocation: [BYTE; 32usize], - pub Reserved: [DWORD; 2usize], -} -pub type STORAGE_PHYSICAL_DEVICE_DATA = _STORAGE_PHYSICAL_DEVICE_DATA; -pub type PSTORAGE_PHYSICAL_DEVICE_DATA = *mut _STORAGE_PHYSICAL_DEVICE_DATA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STORAGE_PHYSICAL_ADAPTER_DATA { - pub AdapterId: DWORD, - pub HealthStatus: STORAGE_COMPONENT_HEALTH_STATUS, - pub CommandProtocol: STORAGE_PROTOCOL_TYPE, - pub SpecVersion: STORAGE_SPEC_VERSION, - pub Vendor: [BYTE; 8usize], - pub Model: [BYTE; 40usize], - pub FirmwareRevision: [BYTE; 16usize], - pub PhysicalLocation: [BYTE; 32usize], - pub ExpanderConnected: BOOLEAN, - pub Reserved0: [BYTE; 3usize], - pub Reserved1: [DWORD; 3usize], -} -pub type STORAGE_PHYSICAL_ADAPTER_DATA = _STORAGE_PHYSICAL_ADAPTER_DATA; -pub type PSTORAGE_PHYSICAL_ADAPTER_DATA = *mut _STORAGE_PHYSICAL_ADAPTER_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_PHYSICAL_NODE_DATA { - pub NodeId: DWORD, - pub AdapterCount: DWORD, - pub AdapterDataLength: DWORD, - pub AdapterDataOffset: DWORD, - pub DeviceCount: DWORD, - pub DeviceDataLength: DWORD, - pub DeviceDataOffset: DWORD, - pub Reserved: [DWORD; 3usize], -} -pub type STORAGE_PHYSICAL_NODE_DATA = _STORAGE_PHYSICAL_NODE_DATA; -pub type PSTORAGE_PHYSICAL_NODE_DATA = *mut _STORAGE_PHYSICAL_NODE_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub NodeCount: DWORD, - pub Reserved: DWORD, - pub Node: [STORAGE_PHYSICAL_NODE_DATA; 1usize], -} -pub type STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR = _STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR; -pub type PSTORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR = *mut _STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub LunMaxIoCount: DWORD, - pub AdapterMaxIoCount: DWORD, -} -pub type STORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR = _STORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR; -pub type PSTORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR = *mut _STORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub Attributes: DWORD64, -} -pub type STORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR = _STORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR; -pub type PSTORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR = *mut _STORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR; -pub const _STORAGE_DISK_HEALTH_STATUS_DiskHealthUnknown: _STORAGE_DISK_HEALTH_STATUS = 0; -pub const _STORAGE_DISK_HEALTH_STATUS_DiskHealthUnhealthy: _STORAGE_DISK_HEALTH_STATUS = 1; -pub const _STORAGE_DISK_HEALTH_STATUS_DiskHealthWarning: _STORAGE_DISK_HEALTH_STATUS = 2; -pub const _STORAGE_DISK_HEALTH_STATUS_DiskHealthHealthy: _STORAGE_DISK_HEALTH_STATUS = 3; -pub const _STORAGE_DISK_HEALTH_STATUS_DiskHealthMax: _STORAGE_DISK_HEALTH_STATUS = 4; -pub type _STORAGE_DISK_HEALTH_STATUS = ::std::os::raw::c_int; -pub use self::_STORAGE_DISK_HEALTH_STATUS as STORAGE_DISK_HEALTH_STATUS; -pub type PSTORAGE_DISK_HEALTH_STATUS = *mut _STORAGE_DISK_HEALTH_STATUS; -pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusNone: _STORAGE_DISK_OPERATIONAL_STATUS = 0; -pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusUnknown: _STORAGE_DISK_OPERATIONAL_STATUS = - 1; -pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusOk: _STORAGE_DISK_OPERATIONAL_STATUS = 2; -pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusPredictingFailure: - _STORAGE_DISK_OPERATIONAL_STATUS = 3; -pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusInService: _STORAGE_DISK_OPERATIONAL_STATUS = - 4; -pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusHardwareError: - _STORAGE_DISK_OPERATIONAL_STATUS = 5; -pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusNotUsable: _STORAGE_DISK_OPERATIONAL_STATUS = - 6; -pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusTransientError: - _STORAGE_DISK_OPERATIONAL_STATUS = 7; -pub const _STORAGE_DISK_OPERATIONAL_STATUS_DiskOpStatusMissing: _STORAGE_DISK_OPERATIONAL_STATUS = - 8; -pub type _STORAGE_DISK_OPERATIONAL_STATUS = ::std::os::raw::c_int; -pub use self::_STORAGE_DISK_OPERATIONAL_STATUS as STORAGE_DISK_OPERATIONAL_STATUS; -pub type PSTORAGE_DISK_OPERATIONAL_STATUS = *mut _STORAGE_DISK_OPERATIONAL_STATUS; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonUnknown: - _STORAGE_OPERATIONAL_STATUS_REASON = 0; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonScsiSenseCode: - _STORAGE_OPERATIONAL_STATUS_REASON = 1; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonMedia: _STORAGE_OPERATIONAL_STATUS_REASON = - 2; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonIo: _STORAGE_OPERATIONAL_STATUS_REASON = 3; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonThresholdExceeded: - _STORAGE_OPERATIONAL_STATUS_REASON = 4; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonLostData: - _STORAGE_OPERATIONAL_STATUS_REASON = 5; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonEnergySource: - _STORAGE_OPERATIONAL_STATUS_REASON = 6; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonConfiguration: - _STORAGE_OPERATIONAL_STATUS_REASON = 7; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonDeviceController: - _STORAGE_OPERATIONAL_STATUS_REASON = 8; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonMediaController: - _STORAGE_OPERATIONAL_STATUS_REASON = 9; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonComponent: - _STORAGE_OPERATIONAL_STATUS_REASON = 10; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonNVDIMM_N: - _STORAGE_OPERATIONAL_STATUS_REASON = 11; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonBackgroundOperation: - _STORAGE_OPERATIONAL_STATUS_REASON = 12; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonInvalidFirmware: - _STORAGE_OPERATIONAL_STATUS_REASON = 13; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonHealthCheck: - _STORAGE_OPERATIONAL_STATUS_REASON = 14; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonLostDataPersistence: - _STORAGE_OPERATIONAL_STATUS_REASON = 15; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonDisabledByPlatform: - _STORAGE_OPERATIONAL_STATUS_REASON = 16; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonLostWritePersistence: - _STORAGE_OPERATIONAL_STATUS_REASON = 17; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonDataPersistenceLossImminent: - _STORAGE_OPERATIONAL_STATUS_REASON = 18; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonWritePersistenceLossImminent: - _STORAGE_OPERATIONAL_STATUS_REASON = 19; -pub const _STORAGE_OPERATIONAL_STATUS_REASON_DiskOpReasonMax: _STORAGE_OPERATIONAL_STATUS_REASON = - 20; -pub type _STORAGE_OPERATIONAL_STATUS_REASON = ::std::os::raw::c_int; -pub use self::_STORAGE_OPERATIONAL_STATUS_REASON as STORAGE_OPERATIONAL_STATUS_REASON; -pub type PSTORAGE_OPERATIONAL_STATUS_REASON = *mut _STORAGE_OPERATIONAL_STATUS_REASON; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STORAGE_OPERATIONAL_REASON { - pub Version: DWORD, - pub Size: DWORD, - pub Reason: STORAGE_OPERATIONAL_STATUS_REASON, - pub RawBytes: _STORAGE_OPERATIONAL_REASON__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _STORAGE_OPERATIONAL_REASON__bindgen_ty_1 { - pub ScsiSenseKey: _STORAGE_OPERATIONAL_REASON__bindgen_ty_1__bindgen_ty_1, - pub NVDIMM_N: _STORAGE_OPERATIONAL_REASON__bindgen_ty_1__bindgen_ty_2, - pub AsUlong: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_OPERATIONAL_REASON__bindgen_ty_1__bindgen_ty_1 { - pub SenseKey: BYTE, - pub ASC: BYTE, - pub ASCQ: BYTE, - pub Reserved: BYTE, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_OPERATIONAL_REASON__bindgen_ty_1__bindgen_ty_2 { - pub CriticalHealth: BYTE, - pub ModuleHealth: [BYTE; 2usize], - pub ErrorThresholdStatus: BYTE, -} -pub type STORAGE_OPERATIONAL_REASON = _STORAGE_OPERATIONAL_REASON; -pub type PSTORAGE_OPERATIONAL_REASON = *mut _STORAGE_OPERATIONAL_REASON; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STORAGE_DEVICE_MANAGEMENT_STATUS { - pub Version: DWORD, - pub Size: DWORD, - pub Health: STORAGE_DISK_HEALTH_STATUS, - pub NumberOfOperationalStatus: DWORD, - pub NumberOfAdditionalReasons: DWORD, - pub OperationalStatus: [STORAGE_DISK_OPERATIONAL_STATUS; 16usize], - pub AdditionalReasons: [STORAGE_OPERATIONAL_REASON; 1usize], -} -pub type STORAGE_DEVICE_MANAGEMENT_STATUS = _STORAGE_DEVICE_MANAGEMENT_STATUS; -pub type PSTORAGE_DEVICE_MANAGEMENT_STATUS = *mut _STORAGE_DEVICE_MANAGEMENT_STATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_ADAPTER_SERIAL_NUMBER { - pub Version: DWORD, - pub Size: DWORD, - pub SerialNumber: [WCHAR; 128usize], -} -pub type STORAGE_ADAPTER_SERIAL_NUMBER = _STORAGE_ADAPTER_SERIAL_NUMBER; -pub type PSTORAGE_ADAPTER_SERIAL_NUMBER = *mut _STORAGE_ADAPTER_SERIAL_NUMBER; -pub const _STORAGE_ZONED_DEVICE_TYPES_ZonedDeviceTypeUnknown: _STORAGE_ZONED_DEVICE_TYPES = 0; -pub const _STORAGE_ZONED_DEVICE_TYPES_ZonedDeviceTypeHostManaged: _STORAGE_ZONED_DEVICE_TYPES = 1; -pub const _STORAGE_ZONED_DEVICE_TYPES_ZonedDeviceTypeHostAware: _STORAGE_ZONED_DEVICE_TYPES = 2; -pub const _STORAGE_ZONED_DEVICE_TYPES_ZonedDeviceTypeDeviceManaged: _STORAGE_ZONED_DEVICE_TYPES = 3; -pub type _STORAGE_ZONED_DEVICE_TYPES = ::std::os::raw::c_int; -pub use self::_STORAGE_ZONED_DEVICE_TYPES as STORAGE_ZONED_DEVICE_TYPES; -pub type PSTORAGE_ZONED_DEVICE_TYPES = *mut _STORAGE_ZONED_DEVICE_TYPES; -pub const _STORAGE_ZONE_TYPES_ZoneTypeUnknown: _STORAGE_ZONE_TYPES = 0; -pub const _STORAGE_ZONE_TYPES_ZoneTypeConventional: _STORAGE_ZONE_TYPES = 1; -pub const _STORAGE_ZONE_TYPES_ZoneTypeSequentialWriteRequired: _STORAGE_ZONE_TYPES = 2; -pub const _STORAGE_ZONE_TYPES_ZoneTypeSequentialWritePreferred: _STORAGE_ZONE_TYPES = 3; -pub const _STORAGE_ZONE_TYPES_ZoneTypeMax: _STORAGE_ZONE_TYPES = 4; -pub type _STORAGE_ZONE_TYPES = ::std::os::raw::c_int; -pub use self::_STORAGE_ZONE_TYPES as STORAGE_ZONE_TYPES; -pub type PSTORAGE_ZONE_TYPES = *mut _STORAGE_ZONE_TYPES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_ZONE_GROUP { - pub ZoneCount: DWORD, - pub ZoneType: STORAGE_ZONE_TYPES, - pub ZoneSize: DWORDLONG, -} -pub type STORAGE_ZONE_GROUP = _STORAGE_ZONE_GROUP; -pub type PSTORAGE_ZONE_GROUP = *mut _STORAGE_ZONE_GROUP; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STORAGE_ZONED_DEVICE_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub DeviceType: STORAGE_ZONED_DEVICE_TYPES, - pub ZoneCount: DWORD, - pub ZoneAttributes: _STORAGE_ZONED_DEVICE_DESCRIPTOR__bindgen_ty_1, - pub ZoneGroupCount: DWORD, - pub ZoneGroup: [STORAGE_ZONE_GROUP; 1usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _STORAGE_ZONED_DEVICE_DESCRIPTOR__bindgen_ty_1 { - pub SequentialRequiredZone: _STORAGE_ZONED_DEVICE_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1, - pub SequentialPreferredZone: _STORAGE_ZONED_DEVICE_DESCRIPTOR__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_ZONED_DEVICE_DESCRIPTOR__bindgen_ty_1__bindgen_ty_1 { - pub MaxOpenZoneCount: DWORD, - pub UnrestrictedRead: BOOLEAN, - pub Reserved: [BYTE; 3usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_ZONED_DEVICE_DESCRIPTOR__bindgen_ty_1__bindgen_ty_2 { - pub OptimalOpenZoneCount: DWORD, - pub Reserved: DWORD, -} -pub type STORAGE_ZONED_DEVICE_DESCRIPTOR = _STORAGE_ZONED_DEVICE_DESCRIPTOR; -pub type PSTORAGE_ZONED_DEVICE_DESCRIPTOR = *mut _STORAGE_ZONED_DEVICE_DESCRIPTOR; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DEVICE_LOCATION { - pub Socket: DWORD, - pub Slot: DWORD, - pub Adapter: DWORD, - pub Port: DWORD, - pub __bindgen_anon_1: _DEVICE_LOCATION__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DEVICE_LOCATION__bindgen_ty_1 { - pub __bindgen_anon_1: _DEVICE_LOCATION__bindgen_ty_1__bindgen_ty_1, - pub __bindgen_anon_2: _DEVICE_LOCATION__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_LOCATION__bindgen_ty_1__bindgen_ty_1 { - pub Channel: DWORD, - pub Device: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_LOCATION__bindgen_ty_1__bindgen_ty_2 { - pub Target: DWORD, - pub Lun: DWORD, -} -pub type DEVICE_LOCATION = _DEVICE_LOCATION; -pub type PDEVICE_LOCATION = *mut _DEVICE_LOCATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STORAGE_DEVICE_LOCATION_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub Location: DEVICE_LOCATION, - pub StringOffset: DWORD, -} -pub type STORAGE_DEVICE_LOCATION_DESCRIPTOR = _STORAGE_DEVICE_LOCATION_DESCRIPTOR; -pub type PSTORAGE_DEVICE_LOCATION_DESCRIPTOR = *mut _STORAGE_DEVICE_LOCATION_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_NUMA_PROPERTY { - pub Version: DWORD, - pub Size: DWORD, - pub NumaNode: DWORD, -} -pub type STORAGE_DEVICE_NUMA_PROPERTY = _STORAGE_DEVICE_NUMA_PROPERTY; -pub type PSTORAGE_DEVICE_NUMA_PROPERTY = *mut _STORAGE_DEVICE_NUMA_PROPERTY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT { - pub Version: DWORD, - pub Size: DWORD, - pub UnsafeShutdownCount: DWORD, -} -pub type STORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT = _STORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT; -pub type PSTORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT = *mut _STORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_HW_ENDURANCE_INFO { - pub ValidFields: DWORD, - pub GroupId: DWORD, - pub Flags: _STORAGE_HW_ENDURANCE_INFO__bindgen_ty_1, - pub LifePercentage: DWORD, - pub BytesReadCount: [BYTE; 16usize], - pub ByteWriteCount: [BYTE; 16usize], -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_HW_ENDURANCE_INFO__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _STORAGE_HW_ENDURANCE_INFO__bindgen_ty_1 { - #[inline] - pub fn Shared(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_Shared(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) } - } - #[inline] - pub fn set_Reserved(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 31u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1(Shared: DWORD, Reserved: DWORD) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let Shared: u32 = unsafe { ::std::mem::transmute(Shared) }; - Shared as u64 - }); - __bindgen_bitfield_unit.set(1usize, 31u8, { - let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type STORAGE_HW_ENDURANCE_INFO = _STORAGE_HW_ENDURANCE_INFO; -pub type PSTORAGE_HW_ENDURANCE_INFO = *mut _STORAGE_HW_ENDURANCE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub EnduranceInfo: STORAGE_HW_ENDURANCE_INFO, -} -pub type STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR = _STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR; -pub type PSTORAGE_HW_ENDURANCE_DATA_DESCRIPTOR = *mut _STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_LED_STATE_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub State: DWORDLONG, -} -pub type STORAGE_DEVICE_LED_STATE_DESCRIPTOR = _STORAGE_DEVICE_LED_STATE_DESCRIPTOR; -pub type PSTORAGE_DEVICE_LED_STATE_DESCRIPTOR = *mut _STORAGE_DEVICE_LED_STATE_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY { - pub Version: DWORD, - pub Size: DWORD, - pub SupportsSelfEncryption: BOOLEAN, -} -pub type STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY = _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY; -pub type PSTORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY = *mut _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY; -pub const _STORAGE_ENCRYPTION_TYPE_StorageEncryptionTypeUnknown: _STORAGE_ENCRYPTION_TYPE = 0; -pub const _STORAGE_ENCRYPTION_TYPE_StorageEncryptionTypeEDrive: _STORAGE_ENCRYPTION_TYPE = 1; -pub const _STORAGE_ENCRYPTION_TYPE_StorageEncryptionTypeTcgOpal: _STORAGE_ENCRYPTION_TYPE = 2; -pub type _STORAGE_ENCRYPTION_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_ENCRYPTION_TYPE as STORAGE_ENCRYPTION_TYPE; -pub type PSTORAGE_ENCRYPTION_TYPE = *mut _STORAGE_ENCRYPTION_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2 { - pub Version: DWORD, - pub Size: DWORD, - pub SupportsSelfEncryption: BOOLEAN, - pub EncryptionType: STORAGE_ENCRYPTION_TYPE, -} -pub type STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2 = _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2; -pub type PSTORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2 = - *mut _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_FRU_ID_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub IdentifierSize: DWORD, - pub Identifier: [BYTE; 1usize], -} -pub type STORAGE_FRU_ID_DESCRIPTOR = _STORAGE_FRU_ID_DESCRIPTOR; -pub type PSTORAGE_FRU_ID_DESCRIPTOR = *mut _STORAGE_FRU_ID_DESCRIPTOR; -pub type DEVICE_DATA_MANAGEMENT_SET_ACTION = DWORD; -pub type DEVICE_DSM_ACTION = DWORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DATA_SET_RANGE { - pub StartingOffset: LONGLONG, - pub LengthInBytes: DWORDLONG, -} -pub type DEVICE_DATA_SET_RANGE = _DEVICE_DATA_SET_RANGE; -pub type PDEVICE_DATA_SET_RANGE = *mut _DEVICE_DATA_SET_RANGE; -pub type DEVICE_DSM_RANGE = _DEVICE_DATA_SET_RANGE; -pub type PDEVICE_DSM_RANGE = *mut _DEVICE_DATA_SET_RANGE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_MANAGE_DATA_SET_ATTRIBUTES { - pub Size: DWORD, - pub Action: DEVICE_DSM_ACTION, - pub Flags: DWORD, - pub ParameterBlockOffset: DWORD, - pub ParameterBlockLength: DWORD, - pub DataSetRangesOffset: DWORD, - pub DataSetRangesLength: DWORD, -} -pub type DEVICE_MANAGE_DATA_SET_ATTRIBUTES = _DEVICE_MANAGE_DATA_SET_ATTRIBUTES; -pub type PDEVICE_MANAGE_DATA_SET_ATTRIBUTES = *mut _DEVICE_MANAGE_DATA_SET_ATTRIBUTES; -pub type DEVICE_DSM_INPUT = _DEVICE_MANAGE_DATA_SET_ATTRIBUTES; -pub type PDEVICE_DSM_INPUT = *mut _DEVICE_MANAGE_DATA_SET_ATTRIBUTES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT { - pub Size: DWORD, - pub Action: DEVICE_DSM_ACTION, - pub Flags: DWORD, - pub OperationStatus: DWORD, - pub ExtendedError: DWORD, - pub TargetDetailedError: DWORD, - pub ReservedStatus: DWORD, - pub OutputBlockOffset: DWORD, - pub OutputBlockLength: DWORD, -} -pub type DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT = _DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT; -pub type PDEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT = *mut _DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT; -pub type DEVICE_DSM_OUTPUT = _DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT; -pub type PDEVICE_DSM_OUTPUT = *mut _DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DSM_DEFINITION { - pub Action: DEVICE_DSM_ACTION, - pub SingleRange: BOOLEAN, - pub ParameterBlockAlignment: DWORD, - pub ParameterBlockLength: DWORD, - pub HasOutput: BOOLEAN, - pub OutputBlockAlignment: DWORD, - pub OutputBlockLength: DWORD, -} -pub type DEVICE_DSM_DEFINITION = _DEVICE_DSM_DEFINITION; -pub type PDEVICE_DSM_DEFINITION = *mut _DEVICE_DSM_DEFINITION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DSM_NOTIFICATION_PARAMETERS { - pub Size: DWORD, - pub Flags: DWORD, - pub NumFileTypeIDs: DWORD, - pub FileTypeID: [GUID; 1usize], -} -pub type DEVICE_DSM_NOTIFICATION_PARAMETERS = _DEVICE_DSM_NOTIFICATION_PARAMETERS; -pub type PDEVICE_DSM_NOTIFICATION_PARAMETERS = *mut _DEVICE_DSM_NOTIFICATION_PARAMETERS; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STORAGE_OFFLOAD_TOKEN { - pub TokenType: [BYTE; 4usize], - pub Reserved: [BYTE; 2usize], - pub TokenIdLength: [BYTE; 2usize], - pub __bindgen_anon_1: _STORAGE_OFFLOAD_TOKEN__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _STORAGE_OFFLOAD_TOKEN__bindgen_ty_1 { - pub StorageOffloadZeroDataToken: _STORAGE_OFFLOAD_TOKEN__bindgen_ty_1__bindgen_ty_1, - pub Token: [BYTE; 504usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_OFFLOAD_TOKEN__bindgen_ty_1__bindgen_ty_1 { - pub Reserved2: [BYTE; 504usize], -} -pub type STORAGE_OFFLOAD_TOKEN = _STORAGE_OFFLOAD_TOKEN; -pub type PSTORAGE_OFFLOAD_TOKEN = *mut _STORAGE_OFFLOAD_TOKEN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DSM_OFFLOAD_READ_PARAMETERS { - pub Flags: DWORD, - pub TimeToLive: DWORD, - pub Reserved: [DWORD; 2usize], -} -pub type DEVICE_DSM_OFFLOAD_READ_PARAMETERS = _DEVICE_DSM_OFFLOAD_READ_PARAMETERS; -pub type PDEVICE_DSM_OFFLOAD_READ_PARAMETERS = *mut _DEVICE_DSM_OFFLOAD_READ_PARAMETERS; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STORAGE_OFFLOAD_READ_OUTPUT { - pub OffloadReadFlags: DWORD, - pub Reserved: DWORD, - pub LengthProtected: DWORDLONG, - pub TokenLength: DWORD, - pub Token: STORAGE_OFFLOAD_TOKEN, -} -pub type STORAGE_OFFLOAD_READ_OUTPUT = _STORAGE_OFFLOAD_READ_OUTPUT; -pub type PSTORAGE_OFFLOAD_READ_OUTPUT = *mut _STORAGE_OFFLOAD_READ_OUTPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS { - pub Flags: DWORD, - pub Reserved: DWORD, - pub TokenOffset: DWORDLONG, - pub Token: STORAGE_OFFLOAD_TOKEN, -} -pub type DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS = _DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS; -pub type PDEVICE_DSM_OFFLOAD_WRITE_PARAMETERS = *mut _DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_OFFLOAD_WRITE_OUTPUT { - pub OffloadWriteFlags: DWORD, - pub Reserved: DWORD, - pub LengthCopied: DWORDLONG, -} -pub type STORAGE_OFFLOAD_WRITE_OUTPUT = _STORAGE_OFFLOAD_WRITE_OUTPUT; -pub type PSTORAGE_OFFLOAD_WRITE_OUTPUT = *mut _STORAGE_OFFLOAD_WRITE_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DATA_SET_LBP_STATE_PARAMETERS { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub OutputVersion: DWORD, -} -pub type DEVICE_DATA_SET_LBP_STATE_PARAMETERS = _DEVICE_DATA_SET_LBP_STATE_PARAMETERS; -pub type PDEVICE_DATA_SET_LBP_STATE_PARAMETERS = *mut _DEVICE_DATA_SET_LBP_STATE_PARAMETERS; -pub type DEVICE_DSM_ALLOCATION_PARAMETERS = _DEVICE_DATA_SET_LBP_STATE_PARAMETERS; -pub type PDEVICE_DSM_ALLOCATION_PARAMETERS = *mut _DEVICE_DATA_SET_LBP_STATE_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DATA_SET_LB_PROVISIONING_STATE { - pub Size: DWORD, - pub Version: DWORD, - pub SlabSizeInBytes: DWORDLONG, - pub SlabOffsetDeltaInBytes: DWORD, - pub SlabAllocationBitMapBitCount: DWORD, - pub SlabAllocationBitMapLength: DWORD, - pub SlabAllocationBitMap: [DWORD; 1usize], -} -pub type DEVICE_DATA_SET_LB_PROVISIONING_STATE = _DEVICE_DATA_SET_LB_PROVISIONING_STATE; -pub type PDEVICE_DATA_SET_LB_PROVISIONING_STATE = *mut _DEVICE_DATA_SET_LB_PROVISIONING_STATE; -pub type DEVICE_DSM_ALLOCATION_OUTPUT = _DEVICE_DATA_SET_LB_PROVISIONING_STATE; -pub type PDEVICE_DSM_ALLOCATION_OUTPUT = *mut _DEVICE_DATA_SET_LB_PROVISIONING_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2 { - pub Size: DWORD, - pub Version: DWORD, - pub SlabSizeInBytes: DWORDLONG, - pub SlabOffsetDeltaInBytes: DWORDLONG, - pub SlabAllocationBitMapBitCount: DWORD, - pub SlabAllocationBitMapLength: DWORD, - pub SlabAllocationBitMap: [DWORD; 1usize], -} -pub type DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2 = _DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2; -pub type PDEVICE_DATA_SET_LB_PROVISIONING_STATE_V2 = *mut _DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2; -pub type DEVICE_DSM_ALLOCATION_OUTPUT2 = _DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2; -pub type PDEVICE_DSM_ALLOCATION_OUTPUT2 = *mut _DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DATA_SET_REPAIR_PARAMETERS { - pub NumberOfRepairCopies: DWORD, - pub SourceCopy: DWORD, - pub RepairCopies: [DWORD; 1usize], -} -pub type DEVICE_DATA_SET_REPAIR_PARAMETERS = _DEVICE_DATA_SET_REPAIR_PARAMETERS; -pub type PDEVICE_DATA_SET_REPAIR_PARAMETERS = *mut _DEVICE_DATA_SET_REPAIR_PARAMETERS; -pub type DEVICE_DSM_REPAIR_PARAMETERS = _DEVICE_DATA_SET_REPAIR_PARAMETERS; -pub type PDEVICE_DSM_REPAIR_PARAMETERS = *mut _DEVICE_DATA_SET_REPAIR_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DATA_SET_REPAIR_OUTPUT { - pub ParityExtent: DEVICE_DSM_RANGE, -} -pub type DEVICE_DATA_SET_REPAIR_OUTPUT = _DEVICE_DATA_SET_REPAIR_OUTPUT; -pub type PDEVICE_DATA_SET_REPAIR_OUTPUT = *mut _DEVICE_DATA_SET_REPAIR_OUTPUT; -pub type DEVICE_DSM_REPAIR_OUTPUT = _DEVICE_DATA_SET_REPAIR_OUTPUT; -pub type PDEVICE_DSM_REPAIR_OUTPUT = *mut _DEVICE_DATA_SET_REPAIR_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DATA_SET_SCRUB_OUTPUT { - pub BytesProcessed: DWORDLONG, - pub BytesRepaired: DWORDLONG, - pub BytesFailed: DWORDLONG, -} -pub type DEVICE_DATA_SET_SCRUB_OUTPUT = _DEVICE_DATA_SET_SCRUB_OUTPUT; -pub type PDEVICE_DATA_SET_SCRUB_OUTPUT = *mut _DEVICE_DATA_SET_SCRUB_OUTPUT; -pub type DEVICE_DSM_SCRUB_OUTPUT = _DEVICE_DATA_SET_SCRUB_OUTPUT; -pub type PDEVICE_DSM_SCRUB_OUTPUT = *mut _DEVICE_DATA_SET_SCRUB_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DATA_SET_SCRUB_EX_OUTPUT { - pub BytesProcessed: DWORDLONG, - pub BytesRepaired: DWORDLONG, - pub BytesFailed: DWORDLONG, - pub ParityExtent: DEVICE_DSM_RANGE, - pub BytesScrubbed: DWORDLONG, -} -pub type DEVICE_DATA_SET_SCRUB_EX_OUTPUT = _DEVICE_DATA_SET_SCRUB_EX_OUTPUT; -pub type PDEVICE_DATA_SET_SCRUB_EX_OUTPUT = *mut _DEVICE_DATA_SET_SCRUB_EX_OUTPUT; -pub type DEVICE_DSM_SCRUB_OUTPUT2 = _DEVICE_DATA_SET_SCRUB_EX_OUTPUT; -pub type PDEVICE_DSM_SCRUB_OUTPUT2 = *mut _DEVICE_DATA_SET_SCRUB_EX_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DSM_TIERING_QUERY_INPUT { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub NumberOfTierIds: DWORD, - pub TierIds: [GUID; 1usize], -} -pub type DEVICE_DSM_TIERING_QUERY_INPUT = _DEVICE_DSM_TIERING_QUERY_INPUT; -pub type PDEVICE_DSM_TIERING_QUERY_INPUT = *mut _DEVICE_DSM_TIERING_QUERY_INPUT; -pub type DEVICE_DSM_TIERING_QUERY_PARAMETERS = _DEVICE_DSM_TIERING_QUERY_INPUT; -pub type PDEVICE_DSM_TIERING_QUERY_PARAMETERS = *mut _DEVICE_DSM_TIERING_QUERY_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_TIER_REGION { - pub TierId: GUID, - pub Offset: DWORDLONG, - pub Length: DWORDLONG, -} -pub type STORAGE_TIER_REGION = _STORAGE_TIER_REGION; -pub type PSTORAGE_TIER_REGION = *mut _STORAGE_TIER_REGION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DSM_TIERING_QUERY_OUTPUT { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub Reserved: DWORD, - pub Alignment: DWORDLONG, - pub TotalNumberOfRegions: DWORD, - pub NumberOfRegionsReturned: DWORD, - pub Regions: [STORAGE_TIER_REGION; 1usize], -} -pub type DEVICE_DSM_TIERING_QUERY_OUTPUT = _DEVICE_DSM_TIERING_QUERY_OUTPUT; -pub type PDEVICE_DSM_TIERING_QUERY_OUTPUT = *mut _DEVICE_DSM_TIERING_QUERY_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS { - pub Size: DWORD, - pub TargetPriority: BYTE, - pub Reserved: [BYTE; 3usize], -} -pub type DEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS = - _DEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS; -pub type PDEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS = - *mut _DEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT { - pub TopologyRangeBytes: DWORDLONG, - pub TopologyId: [BYTE; 16usize], -} -pub type DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT = _DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT; -pub type PDEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT = *mut _DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT; -pub type DEVICE_DSM_TOPOLOGY_ID_QUERY_OUTPUT = _DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT; -pub type PDEVICE_DSM_TOPOLOGY_ID_QUERY_OUTPUT = *mut _DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_STORAGE_ADDRESS_RANGE { - pub StartAddress: LONGLONG, - pub LengthInBytes: DWORDLONG, -} -pub type DEVICE_STORAGE_ADDRESS_RANGE = _DEVICE_STORAGE_ADDRESS_RANGE; -pub type PDEVICE_STORAGE_ADDRESS_RANGE = *mut _DEVICE_STORAGE_ADDRESS_RANGE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT { - pub Version: DWORD, - pub Flags: DWORD, - pub TotalNumberOfRanges: DWORD, - pub NumberOfRangesReturned: DWORD, - pub Ranges: [DEVICE_STORAGE_ADDRESS_RANGE; 1usize], -} -pub type DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT = _DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT; -pub type PDEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT = *mut _DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DSM_REPORT_ZONES_PARAMETERS { - pub Size: DWORD, - pub ReportOption: BYTE, - pub Partial: BYTE, - pub Reserved: [BYTE; 2usize], -} -pub type DEVICE_DSM_REPORT_ZONES_PARAMETERS = _DEVICE_DSM_REPORT_ZONES_PARAMETERS; -pub type PDEVICE_DSM_REPORT_ZONES_PARAMETERS = *mut _DEVICE_DSM_REPORT_ZONES_PARAMETERS; -pub const _STORAGE_ZONES_ATTRIBUTES_ZonesAttributeTypeAndLengthMayDifferent: - _STORAGE_ZONES_ATTRIBUTES = 0; -pub const _STORAGE_ZONES_ATTRIBUTES_ZonesAttributeTypeSameLengthSame: _STORAGE_ZONES_ATTRIBUTES = 1; -pub const _STORAGE_ZONES_ATTRIBUTES_ZonesAttributeTypeSameLastZoneLengthDifferent: - _STORAGE_ZONES_ATTRIBUTES = 2; -pub const _STORAGE_ZONES_ATTRIBUTES_ZonesAttributeTypeMayDifferentLengthSame: - _STORAGE_ZONES_ATTRIBUTES = 3; -pub type _STORAGE_ZONES_ATTRIBUTES = ::std::os::raw::c_int; -pub use self::_STORAGE_ZONES_ATTRIBUTES as STORAGE_ZONES_ATTRIBUTES; -pub type PSTORAGE_ZONES_ATTRIBUTES = *mut _STORAGE_ZONES_ATTRIBUTES; -pub const _STORAGE_ZONE_CONDITION_ZoneConditionConventional: _STORAGE_ZONE_CONDITION = 0; -pub const _STORAGE_ZONE_CONDITION_ZoneConditionEmpty: _STORAGE_ZONE_CONDITION = 1; -pub const _STORAGE_ZONE_CONDITION_ZoneConditionImplicitlyOpened: _STORAGE_ZONE_CONDITION = 2; -pub const _STORAGE_ZONE_CONDITION_ZoneConditionExplicitlyOpened: _STORAGE_ZONE_CONDITION = 3; -pub const _STORAGE_ZONE_CONDITION_ZoneConditionClosed: _STORAGE_ZONE_CONDITION = 4; -pub const _STORAGE_ZONE_CONDITION_ZoneConditionReadOnly: _STORAGE_ZONE_CONDITION = 13; -pub const _STORAGE_ZONE_CONDITION_ZoneConditionFull: _STORAGE_ZONE_CONDITION = 14; -pub const _STORAGE_ZONE_CONDITION_ZoneConditionOffline: _STORAGE_ZONE_CONDITION = 15; -pub type _STORAGE_ZONE_CONDITION = ::std::os::raw::c_int; -pub use self::_STORAGE_ZONE_CONDITION as STORAGE_ZONE_CONDITION; -pub type PSTORAGE_ZONE_CONDITION = *mut _STORAGE_ZONE_CONDITION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_ZONE_DESCRIPTOR { - pub Size: DWORD, - pub ZoneType: STORAGE_ZONE_TYPES, - pub ZoneCondition: STORAGE_ZONE_CONDITION, - pub ResetWritePointerRecommend: BOOLEAN, - pub Reserved0: [BYTE; 3usize], - pub ZoneSize: DWORDLONG, - pub WritePointerOffset: DWORDLONG, -} -pub type STORAGE_ZONE_DESCRIPTOR = _STORAGE_ZONE_DESCRIPTOR; -pub type PSTORAGE_ZONE_DESCRIPTOR = *mut _STORAGE_ZONE_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DSM_REPORT_ZONES_DATA { - pub Size: DWORD, - pub ZoneCount: DWORD, - pub Attributes: STORAGE_ZONES_ATTRIBUTES, - pub Reserved0: DWORD, - pub ZoneDescriptors: [STORAGE_ZONE_DESCRIPTOR; 1usize], -} -pub type DEVICE_DSM_REPORT_ZONES_DATA = _DEVICE_DSM_REPORT_ZONES_DATA; -pub type PDEVICE_DSM_REPORT_ZONES_DATA = *mut _DEVICE_DSM_REPORT_ZONES_DATA; -pub type DEVICE_DSM_REPORT_ZONES_OUTPUT = _DEVICE_DSM_REPORT_ZONES_DATA; -pub type PDEVICE_DSM_REPORT_ZONES_OUTPUT = *mut _DEVICE_DSM_REPORT_ZONES_DATA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DEVICE_STORAGE_RANGE_ATTRIBUTES { - pub LengthInBytes: DWORDLONG, - pub __bindgen_anon_1: _DEVICE_STORAGE_RANGE_ATTRIBUTES__bindgen_ty_1, - pub Reserved: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DEVICE_STORAGE_RANGE_ATTRIBUTES__bindgen_ty_1 { - pub AllFlags: DWORD, - pub __bindgen_anon_1: _DEVICE_STORAGE_RANGE_ATTRIBUTES__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_STORAGE_RANGE_ATTRIBUTES__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 3usize], -} -impl _DEVICE_STORAGE_RANGE_ATTRIBUTES__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn IsRangeBad(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_IsRangeBad(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1(IsRangeBad: DWORD) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let IsRangeBad: u32 = unsafe { ::std::mem::transmute(IsRangeBad) }; - IsRangeBad as u64 - }); - __bindgen_bitfield_unit - } -} -pub type DEVICE_STORAGE_RANGE_ATTRIBUTES = _DEVICE_STORAGE_RANGE_ATTRIBUTES; -pub type PDEVICE_STORAGE_RANGE_ATTRIBUTES = *mut _DEVICE_STORAGE_RANGE_ATTRIBUTES; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DEVICE_DSM_RANGE_ERROR_INFO { - pub Version: DWORD, - pub Flags: DWORD, - pub TotalNumberOfRanges: DWORD, - pub NumberOfRangesReturned: DWORD, - pub Ranges: [DEVICE_STORAGE_RANGE_ATTRIBUTES; 1usize], -} -pub type DEVICE_DSM_RANGE_ERROR_INFO = _DEVICE_DSM_RANGE_ERROR_INFO; -pub type PDEVICE_DSM_RANGE_ERROR_INFO = *mut _DEVICE_DSM_RANGE_ERROR_INFO; -pub type DEVICE_DSM_RANGE_ERROR_OUTPUT = _DEVICE_DSM_RANGE_ERROR_INFO; -pub type PDEVICE_DSM_RANGE_ERROR_OUTPUT = *mut _DEVICE_DSM_RANGE_ERROR_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DSM_LOST_QUERY_PARAMETERS { - pub Version: DWORD, - pub Granularity: DWORDLONG, -} -pub type DEVICE_DSM_LOST_QUERY_PARAMETERS = _DEVICE_DSM_LOST_QUERY_PARAMETERS; -pub type PDEVICE_DSM_LOST_QUERY_PARAMETERS = *mut _DEVICE_DSM_LOST_QUERY_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DSM_LOST_QUERY_OUTPUT { - pub Version: DWORD, - pub Size: DWORD, - pub Alignment: DWORDLONG, - pub NumberOfBits: DWORD, - pub BitMap: [DWORD; 1usize], -} -pub type DEVICE_DSM_LOST_QUERY_OUTPUT = _DEVICE_DSM_LOST_QUERY_OUTPUT; -pub type PDEVICE_DSM_LOST_QUERY_OUTPUT = *mut _DEVICE_DSM_LOST_QUERY_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DSM_FREE_SPACE_OUTPUT { - pub Version: DWORD, - pub FreeSpace: DWORDLONG, -} -pub type DEVICE_DSM_FREE_SPACE_OUTPUT = _DEVICE_DSM_FREE_SPACE_OUTPUT; -pub type PDEVICE_DSM_FREE_SPACE_OUTPUT = *mut _DEVICE_DSM_FREE_SPACE_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_DSM_CONVERSION_OUTPUT { - pub Version: DWORD, - pub Source: GUID, -} -pub type DEVICE_DSM_CONVERSION_OUTPUT = _DEVICE_DSM_CONVERSION_OUTPUT; -pub type PDEVICE_DSM_CONVERSION_OUTPUT = *mut _DEVICE_DSM_CONVERSION_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_GET_BC_PROPERTIES_OUTPUT { - pub MaximumRequestsPerPeriod: DWORD, - pub MinimumPeriod: DWORD, - pub MaximumRequestSize: DWORDLONG, - pub EstimatedTimePerRequest: DWORD, - pub NumOutStandingRequests: DWORD, - pub RequestSize: DWORDLONG, -} -pub type STORAGE_GET_BC_PROPERTIES_OUTPUT = _STORAGE_GET_BC_PROPERTIES_OUTPUT; -pub type PSTORAGE_GET_BC_PROPERTIES_OUTPUT = *mut _STORAGE_GET_BC_PROPERTIES_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_ALLOCATE_BC_STREAM_INPUT { - pub Version: DWORD, - pub RequestsPerPeriod: DWORD, - pub Period: DWORD, - pub RetryFailures: BOOLEAN, - pub Discardable: BOOLEAN, - pub Reserved1: [BOOLEAN; 2usize], - pub AccessType: DWORD, - pub AccessMode: DWORD, -} -pub type STORAGE_ALLOCATE_BC_STREAM_INPUT = _STORAGE_ALLOCATE_BC_STREAM_INPUT; -pub type PSTORAGE_ALLOCATE_BC_STREAM_INPUT = *mut _STORAGE_ALLOCATE_BC_STREAM_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_ALLOCATE_BC_STREAM_OUTPUT { - pub RequestSize: DWORDLONG, - pub NumOutStandingRequests: DWORD, -} -pub type STORAGE_ALLOCATE_BC_STREAM_OUTPUT = _STORAGE_ALLOCATE_BC_STREAM_OUTPUT; -pub type PSTORAGE_ALLOCATE_BC_STREAM_OUTPUT = *mut _STORAGE_ALLOCATE_BC_STREAM_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_PRIORITY_HINT_SUPPORT { - pub SupportFlags: DWORD, -} -pub type STORAGE_PRIORITY_HINT_SUPPORT = _STORAGE_PRIORITY_HINT_SUPPORT; -pub type PSTORAGE_PRIORITY_HINT_SUPPORT = *mut _STORAGE_PRIORITY_HINT_SUPPORT; -pub const _STORAGE_DIAGNOSTIC_LEVEL_StorageDiagnosticLevelDefault: _STORAGE_DIAGNOSTIC_LEVEL = 0; -pub const _STORAGE_DIAGNOSTIC_LEVEL_StorageDiagnosticLevelMax: _STORAGE_DIAGNOSTIC_LEVEL = 1; -pub type _STORAGE_DIAGNOSTIC_LEVEL = ::std::os::raw::c_int; -pub use self::_STORAGE_DIAGNOSTIC_LEVEL as STORAGE_DIAGNOSTIC_LEVEL; -pub type PSTORAGE_DIAGNOSTIC_LEVEL = *mut _STORAGE_DIAGNOSTIC_LEVEL; -pub const _STORAGE_DIAGNOSTIC_TARGET_TYPE_StorageDiagnosticTargetTypeUndefined: - _STORAGE_DIAGNOSTIC_TARGET_TYPE = 0; -pub const _STORAGE_DIAGNOSTIC_TARGET_TYPE_StorageDiagnosticTargetTypePort: - _STORAGE_DIAGNOSTIC_TARGET_TYPE = 1; -pub const _STORAGE_DIAGNOSTIC_TARGET_TYPE_StorageDiagnosticTargetTypeMiniport: - _STORAGE_DIAGNOSTIC_TARGET_TYPE = 2; -pub const _STORAGE_DIAGNOSTIC_TARGET_TYPE_StorageDiagnosticTargetTypeHbaFirmware: - _STORAGE_DIAGNOSTIC_TARGET_TYPE = 3; -pub const _STORAGE_DIAGNOSTIC_TARGET_TYPE_StorageDiagnosticTargetTypeMax: - _STORAGE_DIAGNOSTIC_TARGET_TYPE = 4; -pub type _STORAGE_DIAGNOSTIC_TARGET_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_DIAGNOSTIC_TARGET_TYPE as STORAGE_DIAGNOSTIC_TARGET_TYPE; -pub type PSTORAGE_DIAGNOSTIC_TARGET_TYPE = *mut _STORAGE_DIAGNOSTIC_TARGET_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DIAGNOSTIC_REQUEST { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub TargetType: STORAGE_DIAGNOSTIC_TARGET_TYPE, - pub Level: STORAGE_DIAGNOSTIC_LEVEL, -} -pub type STORAGE_DIAGNOSTIC_REQUEST = _STORAGE_DIAGNOSTIC_REQUEST; -pub type PSTORAGE_DIAGNOSTIC_REQUEST = *mut _STORAGE_DIAGNOSTIC_REQUEST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DIAGNOSTIC_DATA { - pub Version: DWORD, - pub Size: DWORD, - pub ProviderId: GUID, - pub BufferSize: DWORD, - pub Reserved: DWORD, - pub DiagnosticDataBuffer: [BYTE; 1usize], -} -pub type STORAGE_DIAGNOSTIC_DATA = _STORAGE_DIAGNOSTIC_DATA; -pub type PSTORAGE_DIAGNOSTIC_DATA = *mut _STORAGE_DIAGNOSTIC_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PHYSICAL_ELEMENT_STATUS_REQUEST { - pub Version: DWORD, - pub Size: DWORD, - pub StartingElement: DWORD, - pub Filter: BYTE, - pub ReportType: BYTE, - pub Reserved: [BYTE; 2usize], -} -pub type PHYSICAL_ELEMENT_STATUS_REQUEST = _PHYSICAL_ELEMENT_STATUS_REQUEST; -pub type PPHYSICAL_ELEMENT_STATUS_REQUEST = *mut _PHYSICAL_ELEMENT_STATUS_REQUEST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PHYSICAL_ELEMENT_STATUS_DESCRIPTOR { - pub Version: DWORD, - pub Size: DWORD, - pub ElementIdentifier: DWORD, - pub PhysicalElementType: BYTE, - pub PhysicalElementHealth: BYTE, - pub Reserved1: [BYTE; 2usize], - pub AssociatedCapacity: DWORDLONG, - pub Reserved2: [DWORD; 4usize], -} -pub type PHYSICAL_ELEMENT_STATUS_DESCRIPTOR = _PHYSICAL_ELEMENT_STATUS_DESCRIPTOR; -pub type PPHYSICAL_ELEMENT_STATUS_DESCRIPTOR = *mut _PHYSICAL_ELEMENT_STATUS_DESCRIPTOR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PHYSICAL_ELEMENT_STATUS { - pub Version: DWORD, - pub Size: DWORD, - pub DescriptorCount: DWORD, - pub ReturnedDescriptorCount: DWORD, - pub ElementIdentifierBeingDepoped: DWORD, - pub Reserved: DWORD, - pub Descriptors: [PHYSICAL_ELEMENT_STATUS_DESCRIPTOR; 1usize], -} -pub type PHYSICAL_ELEMENT_STATUS = _PHYSICAL_ELEMENT_STATUS; -pub type PPHYSICAL_ELEMENT_STATUS = *mut _PHYSICAL_ELEMENT_STATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REMOVE_ELEMENT_AND_TRUNCATE_REQUEST { - pub Version: DWORD, - pub Size: DWORD, - pub RequestCapacity: DWORDLONG, - pub ElementIdentifier: DWORD, - pub Reserved: DWORD, -} -pub type REMOVE_ELEMENT_AND_TRUNCATE_REQUEST = _REMOVE_ELEMENT_AND_TRUNCATE_REQUEST; -pub type PREMOVE_ELEMENT_AND_TRUNCATE_REQUEST = *mut _REMOVE_ELEMENT_AND_TRUNCATE_REQUEST; -pub const _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE_DeviceInternalStatusDataRequestTypeUndefined: - _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = 0; -pub const _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE_DeviceCurrentInternalStatusDataHeader: - _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = 1; -pub const _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE_DeviceCurrentInternalStatusData: - _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = 2; -pub const _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE_DeviceSavedInternalStatusDataHeader: - _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = 3; -pub const _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE_DeviceSavedInternalStatusData: - _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = 4; -pub type _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = ::std::os::raw::c_int; -pub use self::_DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE as DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE; -pub type PDEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = *mut _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE; -pub const _DEVICE_INTERNAL_STATUS_DATA_SET_DeviceStatusDataSetUndefined: - _DEVICE_INTERNAL_STATUS_DATA_SET = 0; -pub const _DEVICE_INTERNAL_STATUS_DATA_SET_DeviceStatusDataSet1: _DEVICE_INTERNAL_STATUS_DATA_SET = - 1; -pub const _DEVICE_INTERNAL_STATUS_DATA_SET_DeviceStatusDataSet2: _DEVICE_INTERNAL_STATUS_DATA_SET = - 2; -pub const _DEVICE_INTERNAL_STATUS_DATA_SET_DeviceStatusDataSet3: _DEVICE_INTERNAL_STATUS_DATA_SET = - 3; -pub const _DEVICE_INTERNAL_STATUS_DATA_SET_DeviceStatusDataSet4: _DEVICE_INTERNAL_STATUS_DATA_SET = - 4; -pub const _DEVICE_INTERNAL_STATUS_DATA_SET_DeviceStatusDataSetMax: - _DEVICE_INTERNAL_STATUS_DATA_SET = 5; -pub type _DEVICE_INTERNAL_STATUS_DATA_SET = ::std::os::raw::c_int; -pub use self::_DEVICE_INTERNAL_STATUS_DATA_SET as DEVICE_INTERNAL_STATUS_DATA_SET; -pub type PDEVICE_INTERNAL_STATUS_DATA_SET = *mut _DEVICE_INTERNAL_STATUS_DATA_SET; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _GET_DEVICE_INTERNAL_STATUS_DATA_REQUEST { - pub Version: DWORD, - pub Size: DWORD, - pub RequestDataType: DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE, - pub RequestDataSet: DEVICE_INTERNAL_STATUS_DATA_SET, -} -pub type GET_DEVICE_INTERNAL_STATUS_DATA_REQUEST = _GET_DEVICE_INTERNAL_STATUS_DATA_REQUEST; -pub type PGET_DEVICE_INTERNAL_STATUS_DATA_REQUEST = *mut _GET_DEVICE_INTERNAL_STATUS_DATA_REQUEST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICE_INTERNAL_STATUS_DATA { - pub Version: DWORD, - pub Size: DWORD, - pub T10VendorId: DWORDLONG, - pub DataSet1Length: DWORD, - pub DataSet2Length: DWORD, - pub DataSet3Length: DWORD, - pub DataSet4Length: DWORD, - pub StatusDataVersion: BYTE, - pub Reserved: [BYTE; 3usize], - pub ReasonIdentifier: [BYTE; 128usize], - pub StatusDataLength: DWORD, - pub StatusData: [BYTE; 1usize], -} -pub type DEVICE_INTERNAL_STATUS_DATA = _DEVICE_INTERNAL_STATUS_DATA; -pub type PDEVICE_INTERNAL_STATUS_DATA = *mut _DEVICE_INTERNAL_STATUS_DATA; -pub const _STORAGE_SANITIZE_METHOD_StorageSanitizeMethodDefault: _STORAGE_SANITIZE_METHOD = 0; -pub const _STORAGE_SANITIZE_METHOD_StorageSanitizeMethodBlockErase: _STORAGE_SANITIZE_METHOD = 1; -pub const _STORAGE_SANITIZE_METHOD_StorageSanitizeMethodCryptoErase: _STORAGE_SANITIZE_METHOD = 2; -pub type _STORAGE_SANITIZE_METHOD = ::std::os::raw::c_int; -pub use self::_STORAGE_SANITIZE_METHOD as STORAGE_SANITIZE_METHOD; -pub type PSTORAGE_SANITIZE_METHOD = *mut _STORAGE_SANITIZE_METHOD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_REINITIALIZE_MEDIA { - pub Version: DWORD, - pub Size: DWORD, - pub TimeoutInSeconds: DWORD, - pub SanitizeOption: _STORAGE_REINITIALIZE_MEDIA__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_REINITIALIZE_MEDIA__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _STORAGE_REINITIALIZE_MEDIA__bindgen_ty_1 { - #[inline] - pub fn SanitizeMethod(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) } - } - #[inline] - pub fn set_SanitizeMethod(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 4u8, val as u64) - } - } - #[inline] - pub fn DisallowUnrestrictedSanitizeExit(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } - } - #[inline] - pub fn set_DisallowUnrestrictedSanitizeExit(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } - } - #[inline] - pub fn set_Reserved(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 27u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - SanitizeMethod: DWORD, - DisallowUnrestrictedSanitizeExit: DWORD, - Reserved: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 4u8, { - let SanitizeMethod: u32 = unsafe { ::std::mem::transmute(SanitizeMethod) }; - SanitizeMethod as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let DisallowUnrestrictedSanitizeExit: u32 = - unsafe { ::std::mem::transmute(DisallowUnrestrictedSanitizeExit) }; - DisallowUnrestrictedSanitizeExit as u64 - }); - __bindgen_bitfield_unit.set(5usize, 27u8, { - let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type STORAGE_REINITIALIZE_MEDIA = _STORAGE_REINITIALIZE_MEDIA; -pub type PSTORAGE_REINITIALIZE_MEDIA = *mut _STORAGE_REINITIALIZE_MEDIA; -#[repr(C)] -#[derive(Debug)] -pub struct _STORAGE_MEDIA_SERIAL_NUMBER_DATA { - pub Reserved: WORD, - pub SerialNumberLength: WORD, - pub SerialNumber: __IncompleteArrayField, -} -pub type STORAGE_MEDIA_SERIAL_NUMBER_DATA = _STORAGE_MEDIA_SERIAL_NUMBER_DATA; -pub type PSTORAGE_MEDIA_SERIAL_NUMBER_DATA = *mut _STORAGE_MEDIA_SERIAL_NUMBER_DATA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STORAGE_READ_CAPACITY { - pub Version: DWORD, - pub Size: DWORD, - pub BlockLength: DWORD, - pub NumberOfBlocks: LARGE_INTEGER, - pub DiskLength: LARGE_INTEGER, -} -pub type STORAGE_READ_CAPACITY = _STORAGE_READ_CAPACITY; -pub type PSTORAGE_READ_CAPACITY = *mut _STORAGE_READ_CAPACITY; -pub const _WRITE_CACHE_TYPE_WriteCacheTypeUnknown: _WRITE_CACHE_TYPE = 0; -pub const _WRITE_CACHE_TYPE_WriteCacheTypeNone: _WRITE_CACHE_TYPE = 1; -pub const _WRITE_CACHE_TYPE_WriteCacheTypeWriteBack: _WRITE_CACHE_TYPE = 2; -pub const _WRITE_CACHE_TYPE_WriteCacheTypeWriteThrough: _WRITE_CACHE_TYPE = 3; -pub type _WRITE_CACHE_TYPE = ::std::os::raw::c_int; -pub use self::_WRITE_CACHE_TYPE as WRITE_CACHE_TYPE; -pub const _WRITE_CACHE_ENABLE_WriteCacheEnableUnknown: _WRITE_CACHE_ENABLE = 0; -pub const _WRITE_CACHE_ENABLE_WriteCacheDisabled: _WRITE_CACHE_ENABLE = 1; -pub const _WRITE_CACHE_ENABLE_WriteCacheEnabled: _WRITE_CACHE_ENABLE = 2; -pub type _WRITE_CACHE_ENABLE = ::std::os::raw::c_int; -pub use self::_WRITE_CACHE_ENABLE as WRITE_CACHE_ENABLE; -pub const _WRITE_CACHE_CHANGE_WriteCacheChangeUnknown: _WRITE_CACHE_CHANGE = 0; -pub const _WRITE_CACHE_CHANGE_WriteCacheNotChangeable: _WRITE_CACHE_CHANGE = 1; -pub const _WRITE_CACHE_CHANGE_WriteCacheChangeable: _WRITE_CACHE_CHANGE = 2; -pub type _WRITE_CACHE_CHANGE = ::std::os::raw::c_int; -pub use self::_WRITE_CACHE_CHANGE as WRITE_CACHE_CHANGE; -pub const _WRITE_THROUGH_WriteThroughUnknown: _WRITE_THROUGH = 0; -pub const _WRITE_THROUGH_WriteThroughNotSupported: _WRITE_THROUGH = 1; -pub const _WRITE_THROUGH_WriteThroughSupported: _WRITE_THROUGH = 2; -pub type _WRITE_THROUGH = ::std::os::raw::c_int; -pub use self::_WRITE_THROUGH as WRITE_THROUGH; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_WRITE_CACHE_PROPERTY { - pub Version: DWORD, - pub Size: DWORD, - pub WriteCacheType: WRITE_CACHE_TYPE, - pub WriteCacheEnabled: WRITE_CACHE_ENABLE, - pub WriteCacheChangeable: WRITE_CACHE_CHANGE, - pub WriteThroughSupported: WRITE_THROUGH, - pub FlushCacheSupported: BOOLEAN, - pub UserDefinedPowerProtection: BOOLEAN, - pub NVCacheEnabled: BOOLEAN, -} -pub type STORAGE_WRITE_CACHE_PROPERTY = _STORAGE_WRITE_CACHE_PROPERTY; -pub type PSTORAGE_WRITE_CACHE_PROPERTY = *mut _STORAGE_WRITE_CACHE_PROPERTY; -#[repr(C)] -pub struct _PERSISTENT_RESERVE_COMMAND { - pub Version: DWORD, - pub Size: DWORD, - pub __bindgen_anon_1: _PERSISTENT_RESERVE_COMMAND__bindgen_ty_1, -} -#[repr(C)] -pub struct _PERSISTENT_RESERVE_COMMAND__bindgen_ty_1 { - pub PR_IN: __BindgenUnionField<_PERSISTENT_RESERVE_COMMAND__bindgen_ty_1__bindgen_ty_1>, - pub PR_OUT: __BindgenUnionField<_PERSISTENT_RESERVE_COMMAND__bindgen_ty_1__bindgen_ty_2>, - pub bindgen_union_field: [u16; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PERSISTENT_RESERVE_COMMAND__bindgen_ty_1__bindgen_ty_1 { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub AllocationLength: WORD, -} -impl _PERSISTENT_RESERVE_COMMAND__bindgen_ty_1__bindgen_ty_1 { - #[inline] - pub fn ServiceAction(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 5u8) as u8) } - } - #[inline] - pub fn set_ServiceAction(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 5u8, val as u64) - } - } - #[inline] - pub fn Reserved1(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u8) } - } - #[inline] - pub fn set_Reserved1(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 3u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - ServiceAction: BYTE, - Reserved1: BYTE, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 5u8, { - let ServiceAction: u8 = unsafe { ::std::mem::transmute(ServiceAction) }; - ServiceAction as u64 - }); - __bindgen_bitfield_unit.set(5usize, 3u8, { - let Reserved1: u8 = unsafe { ::std::mem::transmute(Reserved1) }; - Reserved1 as u64 - }); - __bindgen_bitfield_unit - } -} -#[repr(C)] -#[derive(Debug)] -pub struct _PERSISTENT_RESERVE_COMMAND__bindgen_ty_1__bindgen_ty_2 { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, - pub ParameterList: __IncompleteArrayField, -} -impl _PERSISTENT_RESERVE_COMMAND__bindgen_ty_1__bindgen_ty_2 { - #[inline] - pub fn ServiceAction(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 5u8) as u8) } - } - #[inline] - pub fn set_ServiceAction(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 5u8, val as u64) - } - } - #[inline] - pub fn Reserved1(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u8) } - } - #[inline] - pub fn set_Reserved1(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 3u8, val as u64) - } - } - #[inline] - pub fn Type(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 4u8) as u8) } - } - #[inline] - pub fn set_Type(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 4u8, val as u64) - } - } - #[inline] - pub fn Scope(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 4u8) as u8) } - } - #[inline] - pub fn set_Scope(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(12usize, 4u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - ServiceAction: BYTE, - Reserved1: BYTE, - Type: BYTE, - Scope: BYTE, - ) -> __BindgenBitfieldUnit<[u8; 2usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 5u8, { - let ServiceAction: u8 = unsafe { ::std::mem::transmute(ServiceAction) }; - ServiceAction as u64 - }); - __bindgen_bitfield_unit.set(5usize, 3u8, { - let Reserved1: u8 = unsafe { ::std::mem::transmute(Reserved1) }; - Reserved1 as u64 - }); - __bindgen_bitfield_unit.set(8usize, 4u8, { - let Type: u8 = unsafe { ::std::mem::transmute(Type) }; - Type as u64 - }); - __bindgen_bitfield_unit.set(12usize, 4u8, { - let Scope: u8 = unsafe { ::std::mem::transmute(Scope) }; - Scope as u64 - }); - __bindgen_bitfield_unit - } -} -pub type PERSISTENT_RESERVE_COMMAND = _PERSISTENT_RESERVE_COMMAND; -pub type PPERSISTENT_RESERVE_COMMAND = *mut _PERSISTENT_RESERVE_COMMAND; -pub const _DEVICEDUMP_COLLECTION_TYPE_TCCollectionBugCheck: _DEVICEDUMP_COLLECTION_TYPE = 1; -pub const _DEVICEDUMP_COLLECTION_TYPE_TCCollectionApplicationRequested: - _DEVICEDUMP_COLLECTION_TYPE = 2; -pub const _DEVICEDUMP_COLLECTION_TYPE_TCCollectionDeviceRequested: _DEVICEDUMP_COLLECTION_TYPE = 3; -pub type _DEVICEDUMP_COLLECTION_TYPE = ::std::os::raw::c_int; -pub use self::_DEVICEDUMP_COLLECTION_TYPE as DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE; -pub type PDEVICEDUMP_COLLECTION_TYPE = *mut _DEVICEDUMP_COLLECTION_TYPE; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICEDUMP_SUBSECTION_POINTER { - pub dwSize: DWORD, - pub dwFlags: DWORD, - pub dwOffset: DWORD, -} -pub type DEVICEDUMP_SUBSECTION_POINTER = _DEVICEDUMP_SUBSECTION_POINTER; -pub type PDEVICEDUMP_SUBSECTION_POINTER = *mut _DEVICEDUMP_SUBSECTION_POINTER; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICEDUMP_STRUCTURE_VERSION { - pub dwSignature: DWORD, - pub dwVersion: DWORD, - pub dwSize: DWORD, -} -pub type DEVICEDUMP_STRUCTURE_VERSION = _DEVICEDUMP_STRUCTURE_VERSION; -pub type PDEVICEDUMP_STRUCTURE_VERSION = *mut _DEVICEDUMP_STRUCTURE_VERSION; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICEDUMP_SECTION_HEADER { - pub guidDeviceDataId: GUID, - pub sOrganizationID: [BYTE; 16usize], - pub dwFirmwareRevision: DWORD, - pub sModelNumber: [BYTE; 32usize], - pub szDeviceManufacturingID: [BYTE; 32usize], - pub dwFlags: DWORD, - pub bRestrictedPrivateDataVersion: DWORD, - pub dwFirmwareIssueId: DWORD, - pub szIssueDescriptionString: [BYTE; 132usize], -} -pub type DEVICEDUMP_SECTION_HEADER = _DEVICEDUMP_SECTION_HEADER; -pub type PDEVICEDUMP_SECTION_HEADER = *mut _DEVICEDUMP_SECTION_HEADER; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _GP_LOG_PAGE_DESCRIPTOR { - pub LogAddress: WORD, - pub LogSectors: WORD, -} -pub type GP_LOG_PAGE_DESCRIPTOR = _GP_LOG_PAGE_DESCRIPTOR; -pub type PGP_LOG_PAGE_DESCRIPTOR = *mut _GP_LOG_PAGE_DESCRIPTOR; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICEDUMP_PUBLIC_SUBSECTION { - pub dwFlags: DWORD, - pub GPLogTable: [GP_LOG_PAGE_DESCRIPTOR; 16usize], - pub szDescription: [CHAR; 16usize], - pub bData: [BYTE; 1usize], -} -pub type DEVICEDUMP_PUBLIC_SUBSECTION = _DEVICEDUMP_PUBLIC_SUBSECTION; -pub type PDEVICEDUMP_PUBLIC_SUBSECTION = *mut _DEVICEDUMP_PUBLIC_SUBSECTION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICEDUMP_RESTRICTED_SUBSECTION { - pub bData: [BYTE; 1usize], -} -pub type DEVICEDUMP_RESTRICTED_SUBSECTION = _DEVICEDUMP_RESTRICTED_SUBSECTION; -pub type PDEVICEDUMP_RESTRICTED_SUBSECTION = *mut _DEVICEDUMP_RESTRICTED_SUBSECTION; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICEDUMP_PRIVATE_SUBSECTION { - pub dwFlags: DWORD, - pub GPLogId: GP_LOG_PAGE_DESCRIPTOR, - pub bData: [BYTE; 1usize], -} -pub type DEVICEDUMP_PRIVATE_SUBSECTION = _DEVICEDUMP_PRIVATE_SUBSECTION; -pub type PDEVICEDUMP_PRIVATE_SUBSECTION = *mut _DEVICEDUMP_PRIVATE_SUBSECTION; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICEDUMP_STORAGEDEVICE_DATA { - pub Descriptor: DEVICEDUMP_STRUCTURE_VERSION, - pub SectionHeader: DEVICEDUMP_SECTION_HEADER, - pub dwBufferSize: DWORD, - pub dwReasonForCollection: DWORD, - pub PublicData: DEVICEDUMP_SUBSECTION_POINTER, - pub RestrictedData: DEVICEDUMP_SUBSECTION_POINTER, - pub PrivateData: DEVICEDUMP_SUBSECTION_POINTER, -} -pub type DEVICEDUMP_STORAGEDEVICE_DATA = _DEVICEDUMP_STORAGEDEVICE_DATA; -pub type PDEVICEDUMP_STORAGEDEVICE_DATA = *mut _DEVICEDUMP_STORAGEDEVICE_DATA; -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD { - pub Cdb: [BYTE; 16usize], - pub Command: [BYTE; 16usize], - pub StartTime: DWORDLONG, - pub EndTime: DWORDLONG, - pub OperationStatus: DWORD, - pub OperationError: DWORD, - pub StackSpecific: _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1 { - pub ExternalStack: _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1__bindgen_ty_1, - pub AtaPort: _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1__bindgen_ty_2, - pub StorPort: _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1__bindgen_ty_3, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1__bindgen_ty_1 { - pub dwReserved: DWORD, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1__bindgen_ty_2 { - pub dwAtaPortSpecific: DWORD, -} -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD__bindgen_ty_1__bindgen_ty_3 { - pub SrbTag: DWORD, -} -pub type DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD = _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD; -pub type PDEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD = - *mut _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD; -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct _DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP { - pub Descriptor: DEVICEDUMP_STRUCTURE_VERSION, - pub dwReasonForCollection: DWORD, - pub cDriverName: [BYTE; 16usize], - pub uiNumRecords: DWORD, - pub RecordArray: [DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD; 1usize], -} -pub type DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP = _DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP; -pub type PDEVICEDUMP_STORAGESTACK_PUBLIC_DUMP = *mut _DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_IDLE_POWER { - pub Version: DWORD, - pub Size: DWORD, - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, - pub D3IdleTimeout: DWORD, -} -impl _STORAGE_IDLE_POWER { - #[inline] - pub fn WakeCapableHint(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_WakeCapableHint(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn D3ColdSupported(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_D3ColdSupported(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } - } - #[inline] - pub fn set_Reserved(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 30u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - WakeCapableHint: DWORD, - D3ColdSupported: DWORD, - Reserved: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let WakeCapableHint: u32 = unsafe { ::std::mem::transmute(WakeCapableHint) }; - WakeCapableHint as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let D3ColdSupported: u32 = unsafe { ::std::mem::transmute(D3ColdSupported) }; - D3ColdSupported as u64 - }); - __bindgen_bitfield_unit.set(2usize, 30u8, { - let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type STORAGE_IDLE_POWER = _STORAGE_IDLE_POWER; -pub type PSTORAGE_IDLE_POWER = *mut _STORAGE_IDLE_POWER; -pub const _STORAGE_POWERUP_REASON_TYPE_StoragePowerupUnknown: _STORAGE_POWERUP_REASON_TYPE = 0; -pub const _STORAGE_POWERUP_REASON_TYPE_StoragePowerupIO: _STORAGE_POWERUP_REASON_TYPE = 1; -pub const _STORAGE_POWERUP_REASON_TYPE_StoragePowerupDeviceAttention: _STORAGE_POWERUP_REASON_TYPE = - 2; -pub type _STORAGE_POWERUP_REASON_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_POWERUP_REASON_TYPE as STORAGE_POWERUP_REASON_TYPE; -pub type PSTORAGE_POWERUP_REASON_TYPE = *mut _STORAGE_POWERUP_REASON_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_IDLE_POWERUP_REASON { - pub Version: DWORD, - pub Size: DWORD, - pub PowerupReason: STORAGE_POWERUP_REASON_TYPE, -} -pub type STORAGE_IDLE_POWERUP_REASON = _STORAGE_IDLE_POWERUP_REASON; -pub type PSTORAGE_IDLE_POWERUP_REASON = *mut _STORAGE_IDLE_POWERUP_REASON; -pub const _STORAGE_DEVICE_POWER_CAP_UNITS_StorageDevicePowerCapUnitsPercent: - _STORAGE_DEVICE_POWER_CAP_UNITS = 0; -pub const _STORAGE_DEVICE_POWER_CAP_UNITS_StorageDevicePowerCapUnitsMilliwatts: - _STORAGE_DEVICE_POWER_CAP_UNITS = 1; -pub type _STORAGE_DEVICE_POWER_CAP_UNITS = ::std::os::raw::c_int; -pub use self::_STORAGE_DEVICE_POWER_CAP_UNITS as STORAGE_DEVICE_POWER_CAP_UNITS; -pub type PSTORAGE_DEVICE_POWER_CAP_UNITS = *mut _STORAGE_DEVICE_POWER_CAP_UNITS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_DEVICE_POWER_CAP { - pub Version: DWORD, - pub Size: DWORD, - pub Units: STORAGE_DEVICE_POWER_CAP_UNITS, - pub MaxPower: DWORDLONG, -} -pub type STORAGE_DEVICE_POWER_CAP = _STORAGE_DEVICE_POWER_CAP; -pub type PSTORAGE_DEVICE_POWER_CAP = *mut _STORAGE_DEVICE_POWER_CAP; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_RPMB_DATA_FRAME { - pub Stuff: [BYTE; 196usize], - pub KeyOrMAC: [BYTE; 32usize], - pub Data: [BYTE; 256usize], - pub Nonce: [BYTE; 16usize], - pub WriteCounter: [BYTE; 4usize], - pub Address: [BYTE; 2usize], - pub BlockCount: [BYTE; 2usize], - pub OperationResult: [BYTE; 2usize], - pub RequestOrResponseType: [BYTE; 2usize], -} -pub type STORAGE_RPMB_DATA_FRAME = _STORAGE_RPMB_DATA_FRAME; -pub type PSTORAGE_RPMB_DATA_FRAME = *mut _STORAGE_RPMB_DATA_FRAME; -pub const _STORAGE_RPMB_COMMAND_TYPE_StorRpmbProgramAuthKey: _STORAGE_RPMB_COMMAND_TYPE = 1; -pub const _STORAGE_RPMB_COMMAND_TYPE_StorRpmbQueryWriteCounter: _STORAGE_RPMB_COMMAND_TYPE = 2; -pub const _STORAGE_RPMB_COMMAND_TYPE_StorRpmbAuthenticatedWrite: _STORAGE_RPMB_COMMAND_TYPE = 3; -pub const _STORAGE_RPMB_COMMAND_TYPE_StorRpmbAuthenticatedRead: _STORAGE_RPMB_COMMAND_TYPE = 4; -pub const _STORAGE_RPMB_COMMAND_TYPE_StorRpmbReadResultRequest: _STORAGE_RPMB_COMMAND_TYPE = 5; -pub const _STORAGE_RPMB_COMMAND_TYPE_StorRpmbAuthenticatedDeviceConfigWrite: - _STORAGE_RPMB_COMMAND_TYPE = 6; -pub const _STORAGE_RPMB_COMMAND_TYPE_StorRpmbAuthenticatedDeviceConfigRead: - _STORAGE_RPMB_COMMAND_TYPE = 7; -pub type _STORAGE_RPMB_COMMAND_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_RPMB_COMMAND_TYPE as STORAGE_RPMB_COMMAND_TYPE; -pub type PSTORAGE_RPMB_COMMAND_TYPE = *mut _STORAGE_RPMB_COMMAND_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_EVENT_NOTIFICATION { - pub Version: DWORD, - pub Size: DWORD, - pub Events: DWORDLONG, -} -pub type STORAGE_EVENT_NOTIFICATION = _STORAGE_EVENT_NOTIFICATION; -pub type PSTORAGE_EVENT_NOTIFICATION = *mut _STORAGE_EVENT_NOTIFICATION; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeUnknown: _STORAGE_COUNTER_TYPE = 0; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeTemperatureCelsius: _STORAGE_COUNTER_TYPE = 1; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeTemperatureCelsiusMax: _STORAGE_COUNTER_TYPE = 2; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeReadErrorsTotal: _STORAGE_COUNTER_TYPE = 3; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeReadErrorsCorrected: _STORAGE_COUNTER_TYPE = 4; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeReadErrorsUncorrected: _STORAGE_COUNTER_TYPE = 5; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeWriteErrorsTotal: _STORAGE_COUNTER_TYPE = 6; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeWriteErrorsCorrected: _STORAGE_COUNTER_TYPE = 7; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeWriteErrorsUncorrected: _STORAGE_COUNTER_TYPE = 8; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeManufactureDate: _STORAGE_COUNTER_TYPE = 9; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeStartStopCycleCount: _STORAGE_COUNTER_TYPE = 10; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeStartStopCycleCountMax: _STORAGE_COUNTER_TYPE = - 11; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeLoadUnloadCycleCount: _STORAGE_COUNTER_TYPE = 12; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeLoadUnloadCycleCountMax: _STORAGE_COUNTER_TYPE = - 13; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeWearPercentage: _STORAGE_COUNTER_TYPE = 14; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeWearPercentageWarning: _STORAGE_COUNTER_TYPE = 15; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeWearPercentageMax: _STORAGE_COUNTER_TYPE = 16; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypePowerOnHours: _STORAGE_COUNTER_TYPE = 17; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeReadLatency100NSMax: _STORAGE_COUNTER_TYPE = 18; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeWriteLatency100NSMax: _STORAGE_COUNTER_TYPE = 19; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeFlushLatency100NSMax: _STORAGE_COUNTER_TYPE = 20; -pub const _STORAGE_COUNTER_TYPE_StorageCounterTypeMax: _STORAGE_COUNTER_TYPE = 21; -pub type _STORAGE_COUNTER_TYPE = ::std::os::raw::c_int; -pub use self::_STORAGE_COUNTER_TYPE as STORAGE_COUNTER_TYPE; -pub type PSTORAGE_COUNTER_TYPE = *mut _STORAGE_COUNTER_TYPE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STORAGE_COUNTER { - pub Type: STORAGE_COUNTER_TYPE, - pub Value: _STORAGE_COUNTER__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _STORAGE_COUNTER__bindgen_ty_1 { - pub ManufactureDate: _STORAGE_COUNTER__bindgen_ty_1__bindgen_ty_1, - pub AsUlonglong: DWORDLONG, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_COUNTER__bindgen_ty_1__bindgen_ty_1 { - pub Week: DWORD, - pub Year: DWORD, -} -pub type STORAGE_COUNTER = _STORAGE_COUNTER; -pub type PSTORAGE_COUNTER = *mut _STORAGE_COUNTER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STORAGE_COUNTERS { - pub Version: DWORD, - pub Size: DWORD, - pub NumberOfCounters: DWORD, - pub Counters: [STORAGE_COUNTER; 1usize], -} -pub type STORAGE_COUNTERS = _STORAGE_COUNTERS; -pub type PSTORAGE_COUNTERS = *mut _STORAGE_COUNTERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_HW_FIRMWARE_INFO_QUERY { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub Reserved: DWORD, -} -pub type STORAGE_HW_FIRMWARE_INFO_QUERY = _STORAGE_HW_FIRMWARE_INFO_QUERY; -pub type PSTORAGE_HW_FIRMWARE_INFO_QUERY = *mut _STORAGE_HW_FIRMWARE_INFO_QUERY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_HW_FIRMWARE_SLOT_INFO { - pub Version: DWORD, - pub Size: DWORD, - pub SlotNumber: BYTE, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub Reserved1: [BYTE; 6usize], - pub Revision: [BYTE; 16usize], -} -impl _STORAGE_HW_FIRMWARE_SLOT_INFO { - #[inline] - pub fn ReadOnly(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } - } - #[inline] - pub fn set_ReadOnly(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved0(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 7u8) as u8) } - } - #[inline] - pub fn set_Reserved0(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 7u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1(ReadOnly: BYTE, Reserved0: BYTE) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let ReadOnly: u8 = unsafe { ::std::mem::transmute(ReadOnly) }; - ReadOnly as u64 - }); - __bindgen_bitfield_unit.set(1usize, 7u8, { - let Reserved0: u8 = unsafe { ::std::mem::transmute(Reserved0) }; - Reserved0 as u64 - }); - __bindgen_bitfield_unit - } -} -pub type STORAGE_HW_FIRMWARE_SLOT_INFO = _STORAGE_HW_FIRMWARE_SLOT_INFO; -pub type PSTORAGE_HW_FIRMWARE_SLOT_INFO = *mut _STORAGE_HW_FIRMWARE_SLOT_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_HW_FIRMWARE_INFO { - pub Version: DWORD, - pub Size: DWORD, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub SlotCount: BYTE, - pub ActiveSlot: BYTE, - pub PendingActivateSlot: BYTE, - pub FirmwareShared: BOOLEAN, - pub Reserved: [BYTE; 3usize], - pub ImagePayloadAlignment: DWORD, - pub ImagePayloadMaxSize: DWORD, - pub Slot: [STORAGE_HW_FIRMWARE_SLOT_INFO; 1usize], -} -impl _STORAGE_HW_FIRMWARE_INFO { - #[inline] - pub fn SupportUpgrade(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } - } - #[inline] - pub fn set_SupportUpgrade(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved0(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 7u8) as u8) } - } - #[inline] - pub fn set_Reserved0(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 7u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - SupportUpgrade: BYTE, - Reserved0: BYTE, - ) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let SupportUpgrade: u8 = unsafe { ::std::mem::transmute(SupportUpgrade) }; - SupportUpgrade as u64 - }); - __bindgen_bitfield_unit.set(1usize, 7u8, { - let Reserved0: u8 = unsafe { ::std::mem::transmute(Reserved0) }; - Reserved0 as u64 - }); - __bindgen_bitfield_unit - } -} -pub type STORAGE_HW_FIRMWARE_INFO = _STORAGE_HW_FIRMWARE_INFO; -pub type PSTORAGE_HW_FIRMWARE_INFO = *mut _STORAGE_HW_FIRMWARE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_HW_FIRMWARE_DOWNLOAD { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub Slot: BYTE, - pub Reserved: [BYTE; 3usize], - pub Offset: DWORDLONG, - pub BufferSize: DWORDLONG, - pub ImageBuffer: [BYTE; 1usize], -} -pub type STORAGE_HW_FIRMWARE_DOWNLOAD = _STORAGE_HW_FIRMWARE_DOWNLOAD; -pub type PSTORAGE_HW_FIRMWARE_DOWNLOAD = *mut _STORAGE_HW_FIRMWARE_DOWNLOAD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_HW_FIRMWARE_DOWNLOAD_V2 { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub Slot: BYTE, - pub Reserved: [BYTE; 3usize], - pub Offset: DWORDLONG, - pub BufferSize: DWORDLONG, - pub ImageSize: DWORD, - pub Reserved2: DWORD, - pub ImageBuffer: [BYTE; 1usize], -} -pub type STORAGE_HW_FIRMWARE_DOWNLOAD_V2 = _STORAGE_HW_FIRMWARE_DOWNLOAD_V2; -pub type PSTORAGE_HW_FIRMWARE_DOWNLOAD_V2 = *mut _STORAGE_HW_FIRMWARE_DOWNLOAD_V2; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_HW_FIRMWARE_ACTIVATE { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub Slot: BYTE, - pub Reserved0: [BYTE; 3usize], -} -pub type STORAGE_HW_FIRMWARE_ACTIVATE = _STORAGE_HW_FIRMWARE_ACTIVATE; -pub type PSTORAGE_HW_FIRMWARE_ACTIVATE = *mut _STORAGE_HW_FIRMWARE_ACTIVATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_PROTOCOL_COMMAND { - pub Version: DWORD, - pub Length: DWORD, - pub ProtocolType: STORAGE_PROTOCOL_TYPE, - pub Flags: DWORD, - pub ReturnStatus: DWORD, - pub ErrorCode: DWORD, - pub CommandLength: DWORD, - pub ErrorInfoLength: DWORD, - pub DataToDeviceTransferLength: DWORD, - pub DataFromDeviceTransferLength: DWORD, - pub TimeOutValue: DWORD, - pub ErrorInfoOffset: DWORD, - pub DataToDeviceBufferOffset: DWORD, - pub DataFromDeviceBufferOffset: DWORD, - pub CommandSpecific: DWORD, - pub Reserved0: DWORD, - pub FixedProtocolReturnData: DWORD, - pub Reserved1: [DWORD; 3usize], - pub Command: [BYTE; 1usize], -} -pub type STORAGE_PROTOCOL_COMMAND = _STORAGE_PROTOCOL_COMMAND; -pub type PSTORAGE_PROTOCOL_COMMAND = *mut _STORAGE_PROTOCOL_COMMAND; -pub const _STORAGE_ATTRIBUTE_MGMT_ACTION_StorAttributeMgmt_ClearAttribute: - _STORAGE_ATTRIBUTE_MGMT_ACTION = 0; -pub const _STORAGE_ATTRIBUTE_MGMT_ACTION_StorAttributeMgmt_SetAttribute: - _STORAGE_ATTRIBUTE_MGMT_ACTION = 1; -pub const _STORAGE_ATTRIBUTE_MGMT_ACTION_StorAttributeMgmt_ResetAttribute: - _STORAGE_ATTRIBUTE_MGMT_ACTION = 2; -pub type _STORAGE_ATTRIBUTE_MGMT_ACTION = ::std::os::raw::c_int; -pub use self::_STORAGE_ATTRIBUTE_MGMT_ACTION as STORAGE_ATTRIBUTE_MGMT_ACTION; -pub type PSTORAGE_ATTRIBUTE_MGMT_ACTION = *mut _STORAGE_ATTRIBUTE_MGMT_ACTION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_ATTRIBUTE_MGMT { - pub Version: DWORD, - pub Size: DWORD, - pub Action: STORAGE_ATTRIBUTE_MGMT_ACTION, - pub Attribute: DWORD, -} -pub type STORAGE_ATTRIBUTE_MGMT = _STORAGE_ATTRIBUTE_MGMT; -pub type PSTORAGE_ATTRIBUTE_MGMT = *mut _STORAGE_ATTRIBUTE_MGMT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_HEALTH_NOTIFICATION_DATA { - pub DeviceGuid: GUID, -} -pub type SCM_PD_HEALTH_NOTIFICATION_DATA = _SCM_PD_HEALTH_NOTIFICATION_DATA; -pub type PSCM_PD_HEALTH_NOTIFICATION_DATA = *mut _SCM_PD_HEALTH_NOTIFICATION_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_LOGICAL_DEVICE_INSTANCE { - pub Version: DWORD, - pub Size: DWORD, - pub DeviceGuid: GUID, - pub SymbolicLink: [WCHAR; 256usize], -} -pub type SCM_LOGICAL_DEVICE_INSTANCE = _SCM_LOGICAL_DEVICE_INSTANCE; -pub type PSCM_LOGICAL_DEVICE_INSTANCE = *mut _SCM_LOGICAL_DEVICE_INSTANCE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_LOGICAL_DEVICES { - pub Version: DWORD, - pub Size: DWORD, - pub DeviceCount: DWORD, - pub Devices: [SCM_LOGICAL_DEVICE_INSTANCE; 1usize], -} -pub type SCM_LOGICAL_DEVICES = _SCM_LOGICAL_DEVICES; -pub type PSCM_LOGICAL_DEVICES = *mut _SCM_LOGICAL_DEVICES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PHYSICAL_DEVICE_INSTANCE { - pub Version: DWORD, - pub Size: DWORD, - pub NfitHandle: DWORD, - pub SymbolicLink: [WCHAR; 256usize], -} -pub type SCM_PHYSICAL_DEVICE_INSTANCE = _SCM_PHYSICAL_DEVICE_INSTANCE; -pub type PSCM_PHYSICAL_DEVICE_INSTANCE = *mut _SCM_PHYSICAL_DEVICE_INSTANCE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PHYSICAL_DEVICES { - pub Version: DWORD, - pub Size: DWORD, - pub DeviceCount: DWORD, - pub Devices: [SCM_PHYSICAL_DEVICE_INSTANCE; 1usize], -} -pub type SCM_PHYSICAL_DEVICES = _SCM_PHYSICAL_DEVICES; -pub type PSCM_PHYSICAL_DEVICES = *mut _SCM_PHYSICAL_DEVICES; -pub const _SCM_REGION_FLAG_ScmRegionFlagNone: _SCM_REGION_FLAG = 0; -pub const _SCM_REGION_FLAG_ScmRegionFlagLabel: _SCM_REGION_FLAG = 1; -pub type _SCM_REGION_FLAG = ::std::os::raw::c_int; -pub use self::_SCM_REGION_FLAG as SCM_REGION_FLAG; -pub type PSCM_REGION_FLAG = *mut _SCM_REGION_FLAG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_REGION { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub NfitHandle: DWORD, - pub LogicalDeviceGuid: GUID, - pub AddressRangeType: GUID, - pub AssociatedId: DWORD, - pub Length: DWORD64, - pub StartingDPA: DWORD64, - pub BaseSPA: DWORD64, - pub SPAOffset: DWORD64, - pub RegionOffset: DWORD64, -} -pub type SCM_REGION = _SCM_REGION; -pub type PSCM_REGION = *mut _SCM_REGION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_REGIONS { - pub Version: DWORD, - pub Size: DWORD, - pub RegionCount: DWORD, - pub Regions: [SCM_REGION; 1usize], -} -pub type SCM_REGIONS = _SCM_REGIONS; -pub type PSCM_REGIONS = *mut _SCM_REGIONS; -pub const _SCM_BUS_QUERY_TYPE_ScmBusQuery_Descriptor: _SCM_BUS_QUERY_TYPE = 0; -pub const _SCM_BUS_QUERY_TYPE_ScmBusQuery_IsSupported: _SCM_BUS_QUERY_TYPE = 1; -pub const _SCM_BUS_QUERY_TYPE_ScmBusQuery_Max: _SCM_BUS_QUERY_TYPE = 2; -pub type _SCM_BUS_QUERY_TYPE = ::std::os::raw::c_int; -pub use self::_SCM_BUS_QUERY_TYPE as SCM_BUS_QUERY_TYPE; -pub type PSCM_BUS_QUERY_TYPE = *mut _SCM_BUS_QUERY_TYPE; -pub const _SCM_BUS_SET_TYPE_ScmBusSet_Descriptor: _SCM_BUS_SET_TYPE = 0; -pub const _SCM_BUS_SET_TYPE_ScmBusSet_IsSupported: _SCM_BUS_SET_TYPE = 1; -pub const _SCM_BUS_SET_TYPE_ScmBusSet_Max: _SCM_BUS_SET_TYPE = 2; -pub type _SCM_BUS_SET_TYPE = ::std::os::raw::c_int; -pub use self::_SCM_BUS_SET_TYPE as SCM_BUS_SET_TYPE; -pub type PSCM_BUS_SET_TYPE = *mut _SCM_BUS_SET_TYPE; -pub const _SCM_BUS_PROPERTY_ID_ScmBusProperty_RuntimeFwActivationInfo: _SCM_BUS_PROPERTY_ID = 0; -pub const _SCM_BUS_PROPERTY_ID_ScmBusProperty_DedicatedMemoryInfo: _SCM_BUS_PROPERTY_ID = 1; -pub const _SCM_BUS_PROPERTY_ID_ScmBusProperty_DedicatedMemoryState: _SCM_BUS_PROPERTY_ID = 2; -pub const _SCM_BUS_PROPERTY_ID_ScmBusProperty_Max: _SCM_BUS_PROPERTY_ID = 3; -pub type _SCM_BUS_PROPERTY_ID = ::std::os::raw::c_int; -pub use self::_SCM_BUS_PROPERTY_ID as SCM_BUS_PROPERTY_ID; -pub type PSCM_BUS_PROPERTY_ID = *mut _SCM_BUS_PROPERTY_ID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_BUS_PROPERTY_QUERY { - pub Version: DWORD, - pub Size: DWORD, - pub PropertyId: SCM_BUS_PROPERTY_ID, - pub QueryType: SCM_BUS_QUERY_TYPE, - pub AdditionalParameters: [BYTE; 1usize], -} -pub type SCM_BUS_PROPERTY_QUERY = _SCM_BUS_PROPERTY_QUERY; -pub type PSCM_BUS_PROPERTY_QUERY = *mut _SCM_BUS_PROPERTY_QUERY; -pub const _SCM_BUS_FIRMWARE_ACTIVATION_STATE_ScmBusFirmwareActivationState_Idle: - _SCM_BUS_FIRMWARE_ACTIVATION_STATE = 0; -pub const _SCM_BUS_FIRMWARE_ACTIVATION_STATE_ScmBusFirmwareActivationState_Armed: - _SCM_BUS_FIRMWARE_ACTIVATION_STATE = 1; -pub const _SCM_BUS_FIRMWARE_ACTIVATION_STATE_ScmBusFirmwareActivationState_Busy: - _SCM_BUS_FIRMWARE_ACTIVATION_STATE = 2; -pub type _SCM_BUS_FIRMWARE_ACTIVATION_STATE = ::std::os::raw::c_int; -pub use self::_SCM_BUS_FIRMWARE_ACTIVATION_STATE as SCM_BUS_FIRMWARE_ACTIVATION_STATE; -pub type PSCM_BUS_FIRMWARE_ACTIVATION_STATE = *mut _SCM_BUS_FIRMWARE_ACTIVATION_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_BUS_RUNTIME_FW_ACTIVATION_INFO { - pub Version: DWORD, - pub Size: DWORD, - pub RuntimeFwActivationSupported: BOOLEAN, - pub FirmwareActivationState: SCM_BUS_FIRMWARE_ACTIVATION_STATE, - pub FirmwareActivationCapability: _SCM_BUS_RUNTIME_FW_ACTIVATION_INFO__bindgen_ty_1, - pub EstimatedFirmwareActivationTimeInUSecs: DWORDLONG, - pub EstimatedProcessorAccessQuiesceTimeInUSecs: DWORDLONG, - pub EstimatedIOAccessQuiesceTimeInUSecs: DWORDLONG, - pub PlatformSupportedMaxIOAccessQuiesceTimeInUSecs: DWORDLONG, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_BUS_RUNTIME_FW_ACTIVATION_INFO__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _SCM_BUS_RUNTIME_FW_ACTIVATION_INFO__bindgen_ty_1 { - #[inline] - pub fn FwManagedIoQuiesceFwActivationSupported(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_FwManagedIoQuiesceFwActivationSupported(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn OsManagedIoQuiesceFwActivationSupported(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_OsManagedIoQuiesceFwActivationSupported(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn WarmResetBasedFwActivationSupported(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_WarmResetBasedFwActivationSupported(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } - } - #[inline] - pub fn set_Reserved(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 29u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - FwManagedIoQuiesceFwActivationSupported: DWORD, - OsManagedIoQuiesceFwActivationSupported: DWORD, - WarmResetBasedFwActivationSupported: DWORD, - Reserved: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let FwManagedIoQuiesceFwActivationSupported: u32 = - unsafe { ::std::mem::transmute(FwManagedIoQuiesceFwActivationSupported) }; - FwManagedIoQuiesceFwActivationSupported as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let OsManagedIoQuiesceFwActivationSupported: u32 = - unsafe { ::std::mem::transmute(OsManagedIoQuiesceFwActivationSupported) }; - OsManagedIoQuiesceFwActivationSupported as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let WarmResetBasedFwActivationSupported: u32 = - unsafe { ::std::mem::transmute(WarmResetBasedFwActivationSupported) }; - WarmResetBasedFwActivationSupported as u64 - }); - __bindgen_bitfield_unit.set(3usize, 29u8, { - let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type SCM_BUS_RUNTIME_FW_ACTIVATION_INFO = _SCM_BUS_RUNTIME_FW_ACTIVATION_INFO; -pub type PSCM_BUS_RUNTIME_FW_ACTIVATION_INFO = *mut _SCM_BUS_RUNTIME_FW_ACTIVATION_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO { - pub DeviceGuid: GUID, - pub DeviceNumber: DWORD, - pub Flags: _SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO__bindgen_ty_1, - pub DeviceSize: DWORDLONG, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO__bindgen_ty_1 { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl _SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO__bindgen_ty_1 { - #[inline] - pub fn ForcedByRegistry(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_ForcedByRegistry(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn Initialized(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_Initialized(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } - } - #[inline] - pub fn set_Reserved(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 30u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - ForcedByRegistry: DWORD, - Initialized: DWORD, - Reserved: DWORD, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let ForcedByRegistry: u32 = unsafe { ::std::mem::transmute(ForcedByRegistry) }; - ForcedByRegistry as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let Initialized: u32 = unsafe { ::std::mem::transmute(Initialized) }; - Initialized as u64 - }); - __bindgen_bitfield_unit.set(2usize, 30u8, { - let Reserved: u32 = unsafe { ::std::mem::transmute(Reserved) }; - Reserved as u64 - }); - __bindgen_bitfield_unit - } -} -pub type SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO = _SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO; -pub type PSCM_BUS_DEDICATED_MEMORY_DEVICE_INFO = *mut _SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO { - pub Version: DWORD, - pub Size: DWORD, - pub DeviceCount: DWORD, - pub Devices: [SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO; 1usize], -} -pub type SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO = _SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO; -pub type PSCM_BUS_DEDICATED_MEMORY_DEVICES_INFO = *mut _SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_BUS_PROPERTY_SET { - pub Version: DWORD, - pub Size: DWORD, - pub PropertyId: SCM_BUS_PROPERTY_ID, - pub SetType: SCM_BUS_SET_TYPE, - pub AdditionalParameters: [BYTE; 1usize], -} -pub type SCM_BUS_PROPERTY_SET = _SCM_BUS_PROPERTY_SET; -pub type PSCM_BUS_PROPERTY_SET = *mut _SCM_BUS_PROPERTY_SET; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_BUS_DEDICATED_MEMORY_STATE { - pub ActivateState: BOOLEAN, -} -pub type SCM_BUS_DEDICATED_MEMORY_STATE = _SCM_BUS_DEDICATED_MEMORY_STATE; -pub type PSCM_BUS_DEDICATED_MEMORY_STATE = *mut _SCM_BUS_DEDICATED_MEMORY_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_INTERLEAVED_PD_INFO { - pub DeviceHandle: DWORD, - pub DeviceGuid: GUID, -} -pub type SCM_INTERLEAVED_PD_INFO = _SCM_INTERLEAVED_PD_INFO; -pub type PSCM_INTERLEAVED_PD_INFO = *mut _SCM_INTERLEAVED_PD_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_LD_INTERLEAVE_SET_INFO { - pub Version: DWORD, - pub Size: DWORD, - pub InterleaveSetSize: DWORD, - pub InterleaveSet: [SCM_INTERLEAVED_PD_INFO; 1usize], -} -pub type SCM_LD_INTERLEAVE_SET_INFO = _SCM_LD_INTERLEAVE_SET_INFO; -pub type PSCM_LD_INTERLEAVE_SET_INFO = *mut _SCM_LD_INTERLEAVE_SET_INFO; -pub const _SCM_PD_QUERY_TYPE_ScmPhysicalDeviceQuery_Descriptor: _SCM_PD_QUERY_TYPE = 0; -pub const _SCM_PD_QUERY_TYPE_ScmPhysicalDeviceQuery_IsSupported: _SCM_PD_QUERY_TYPE = 1; -pub const _SCM_PD_QUERY_TYPE_ScmPhysicalDeviceQuery_Max: _SCM_PD_QUERY_TYPE = 2; -pub type _SCM_PD_QUERY_TYPE = ::std::os::raw::c_int; -pub use self::_SCM_PD_QUERY_TYPE as SCM_PD_QUERY_TYPE; -pub type PSCM_PD_QUERY_TYPE = *mut _SCM_PD_QUERY_TYPE; -pub const _SCM_PD_SET_TYPE_ScmPhysicalDeviceSet_Descriptor: _SCM_PD_SET_TYPE = 0; -pub const _SCM_PD_SET_TYPE_ScmPhysicalDeviceSet_IsSupported: _SCM_PD_SET_TYPE = 1; -pub const _SCM_PD_SET_TYPE_ScmPhysicalDeviceSet_Max: _SCM_PD_SET_TYPE = 2; -pub type _SCM_PD_SET_TYPE = ::std::os::raw::c_int; -pub use self::_SCM_PD_SET_TYPE as SCM_PD_SET_TYPE; -pub type PSCM_PD_SET_TYPE = *mut _SCM_PD_SET_TYPE; -pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_DeviceInfo: _SCM_PD_PROPERTY_ID = 0; -pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_ManagementStatus: _SCM_PD_PROPERTY_ID = 1; -pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_FirmwareInfo: _SCM_PD_PROPERTY_ID = 2; -pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_LocationString: _SCM_PD_PROPERTY_ID = 3; -pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_DeviceSpecificInfo: _SCM_PD_PROPERTY_ID = 4; -pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_DeviceHandle: _SCM_PD_PROPERTY_ID = 5; -pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_FruIdString: _SCM_PD_PROPERTY_ID = 6; -pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_RuntimeFwActivationInfo: - _SCM_PD_PROPERTY_ID = 7; -pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_RuntimeFwActivationArmState: - _SCM_PD_PROPERTY_ID = 8; -pub const _SCM_PD_PROPERTY_ID_ScmPhysicalDeviceProperty_Max: _SCM_PD_PROPERTY_ID = 9; -pub type _SCM_PD_PROPERTY_ID = ::std::os::raw::c_int; -pub use self::_SCM_PD_PROPERTY_ID as SCM_PD_PROPERTY_ID; -pub type PSCM_PD_PROPERTY_ID = *mut _SCM_PD_PROPERTY_ID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_PROPERTY_QUERY { - pub Version: DWORD, - pub Size: DWORD, - pub PropertyId: SCM_PD_PROPERTY_ID, - pub QueryType: SCM_PD_QUERY_TYPE, - pub AdditionalParameters: [BYTE; 1usize], -} -pub type SCM_PD_PROPERTY_QUERY = _SCM_PD_PROPERTY_QUERY; -pub type PSCM_PD_PROPERTY_QUERY = *mut _SCM_PD_PROPERTY_QUERY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_PROPERTY_SET { - pub Version: DWORD, - pub Size: DWORD, - pub PropertyId: SCM_PD_PROPERTY_ID, - pub SetType: SCM_PD_SET_TYPE, - pub AdditionalParameters: [BYTE; 1usize], -} -pub type SCM_PD_PROPERTY_SET = _SCM_PD_PROPERTY_SET; -pub type PSCM_PD_PROPERTY_SET = *mut _SCM_PD_PROPERTY_SET; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE { - pub ArmState: BOOLEAN, -} -pub type SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE = _SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE; -pub type PSCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE = *mut _SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_DESCRIPTOR_HEADER { - pub Version: DWORD, - pub Size: DWORD, -} -pub type SCM_PD_DESCRIPTOR_HEADER = _SCM_PD_DESCRIPTOR_HEADER; -pub type PSCM_PD_DESCRIPTOR_HEADER = *mut _SCM_PD_DESCRIPTOR_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_DEVICE_HANDLE { - pub Version: DWORD, - pub Size: DWORD, - pub DeviceGuid: GUID, - pub DeviceHandle: DWORD, -} -pub type SCM_PD_DEVICE_HANDLE = _SCM_PD_DEVICE_HANDLE; -pub type PSCM_PD_DEVICE_HANDLE = *mut _SCM_PD_DEVICE_HANDLE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_DEVICE_INFO { - pub Version: DWORD, - pub Size: DWORD, - pub DeviceGuid: GUID, - pub UnsafeShutdownCount: DWORD, - pub PersistentMemorySizeInBytes: DWORD64, - pub VolatileMemorySizeInBytes: DWORD64, - pub TotalMemorySizeInBytes: DWORD64, - pub SlotNumber: DWORD, - pub DeviceHandle: DWORD, - pub PhysicalId: WORD, - pub NumberOfFormatInterfaceCodes: BYTE, - pub FormatInterfaceCodes: [WORD; 8usize], - pub VendorId: DWORD, - pub ProductId: DWORD, - pub SubsystemDeviceId: DWORD, - pub SubsystemVendorId: DWORD, - pub ManufacturingLocation: BYTE, - pub ManufacturingWeek: BYTE, - pub ManufacturingYear: BYTE, - pub SerialNumber4Byte: DWORD, - pub SerialNumberLengthInChars: DWORD, - pub SerialNumber: [CHAR; 1usize], -} -pub type SCM_PD_DEVICE_INFO = _SCM_PD_DEVICE_INFO; -pub type PSCM_PD_DEVICE_INFO = *mut _SCM_PD_DEVICE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_DEVICE_SPECIFIC_PROPERTY { - pub Name: [WCHAR; 128usize], - pub Value: LONGLONG, -} -pub type SCM_PD_DEVICE_SPECIFIC_PROPERTY = _SCM_PD_DEVICE_SPECIFIC_PROPERTY; -pub type PSCM_PD_DEVICE_SPECIFIC_PROPERTY = *mut _SCM_PD_DEVICE_SPECIFIC_PROPERTY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_DEVICE_SPECIFIC_INFO { - pub Version: DWORD, - pub Size: DWORD, - pub NumberOfProperties: DWORD, - pub DeviceSpecificProperties: [SCM_PD_DEVICE_SPECIFIC_PROPERTY; 1usize], -} -pub type SCM_PD_DEVICE_SPECIFIC_INFO = _SCM_PD_DEVICE_SPECIFIC_INFO; -pub type PSCM_PD_DEVICE_SPECIFIC_INFO = *mut _SCM_PD_DEVICE_SPECIFIC_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_FIRMWARE_SLOT_INFO { - pub Version: DWORD, - pub Size: DWORD, - pub SlotNumber: BYTE, - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub Reserved1: [BYTE; 6usize], - pub Revision: [BYTE; 32usize], -} -impl _SCM_PD_FIRMWARE_SLOT_INFO { - #[inline] - pub fn ReadOnly(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) } - } - #[inline] - pub fn set_ReadOnly(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn Reserved0(&self) -> BYTE { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 7u8) as u8) } - } - #[inline] - pub fn set_Reserved0(&mut self, val: BYTE) { - unsafe { - let val: u8 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 7u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1(ReadOnly: BYTE, Reserved0: BYTE) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let ReadOnly: u8 = unsafe { ::std::mem::transmute(ReadOnly) }; - ReadOnly as u64 - }); - __bindgen_bitfield_unit.set(1usize, 7u8, { - let Reserved0: u8 = unsafe { ::std::mem::transmute(Reserved0) }; - Reserved0 as u64 - }); - __bindgen_bitfield_unit - } -} -pub type SCM_PD_FIRMWARE_SLOT_INFO = _SCM_PD_FIRMWARE_SLOT_INFO; -pub type PSCM_PD_FIRMWARE_SLOT_INFO = *mut _SCM_PD_FIRMWARE_SLOT_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_FIRMWARE_INFO { - pub Version: DWORD, - pub Size: DWORD, - pub ActiveSlot: BYTE, - pub NextActiveSlot: BYTE, - pub SlotCount: BYTE, - pub Slots: [SCM_PD_FIRMWARE_SLOT_INFO; 1usize], -} -pub type SCM_PD_FIRMWARE_INFO = _SCM_PD_FIRMWARE_INFO; -pub type PSCM_PD_FIRMWARE_INFO = *mut _SCM_PD_FIRMWARE_INFO; -pub const _SCM_PD_HEALTH_STATUS_ScmPhysicalDeviceHealth_Unknown: _SCM_PD_HEALTH_STATUS = 0; -pub const _SCM_PD_HEALTH_STATUS_ScmPhysicalDeviceHealth_Unhealthy: _SCM_PD_HEALTH_STATUS = 1; -pub const _SCM_PD_HEALTH_STATUS_ScmPhysicalDeviceHealth_Warning: _SCM_PD_HEALTH_STATUS = 2; -pub const _SCM_PD_HEALTH_STATUS_ScmPhysicalDeviceHealth_Healthy: _SCM_PD_HEALTH_STATUS = 3; -pub const _SCM_PD_HEALTH_STATUS_ScmPhysicalDeviceHealth_Max: _SCM_PD_HEALTH_STATUS = 4; -pub type _SCM_PD_HEALTH_STATUS = ::std::os::raw::c_int; -pub use self::_SCM_PD_HEALTH_STATUS as SCM_PD_HEALTH_STATUS; -pub type PSCM_PD_HEALTH_STATUS = *mut _SCM_PD_HEALTH_STATUS; -pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_Unknown: _SCM_PD_OPERATIONAL_STATUS = - 0; -pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_Ok: _SCM_PD_OPERATIONAL_STATUS = 1; -pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_PredictingFailure: - _SCM_PD_OPERATIONAL_STATUS = 2; -pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_InService: - _SCM_PD_OPERATIONAL_STATUS = 3; -pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_HardwareError: - _SCM_PD_OPERATIONAL_STATUS = 4; -pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_NotUsable: - _SCM_PD_OPERATIONAL_STATUS = 5; -pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_TransientError: - _SCM_PD_OPERATIONAL_STATUS = 6; -pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_Missing: _SCM_PD_OPERATIONAL_STATUS = - 7; -pub const _SCM_PD_OPERATIONAL_STATUS_ScmPhysicalDeviceOpStatus_Max: _SCM_PD_OPERATIONAL_STATUS = 8; -pub type _SCM_PD_OPERATIONAL_STATUS = ::std::os::raw::c_int; -pub use self::_SCM_PD_OPERATIONAL_STATUS as SCM_PD_OPERATIONAL_STATUS; -pub type PSCM_PD_OPERATIONAL_STATUS = *mut _SCM_PD_OPERATIONAL_STATUS; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_Unknown: - _SCM_PD_OPERATIONAL_STATUS_REASON = 0; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_Media: - _SCM_PD_OPERATIONAL_STATUS_REASON = 1; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_ThresholdExceeded: - _SCM_PD_OPERATIONAL_STATUS_REASON = 2; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_LostData: - _SCM_PD_OPERATIONAL_STATUS_REASON = 3; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_EnergySource: - _SCM_PD_OPERATIONAL_STATUS_REASON = 4; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_Configuration: - _SCM_PD_OPERATIONAL_STATUS_REASON = 5; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_DeviceController: - _SCM_PD_OPERATIONAL_STATUS_REASON = 6; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_MediaController: - _SCM_PD_OPERATIONAL_STATUS_REASON = 7; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_Component: - _SCM_PD_OPERATIONAL_STATUS_REASON = 8; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_BackgroundOperation: - _SCM_PD_OPERATIONAL_STATUS_REASON = 9; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_InvalidFirmware: - _SCM_PD_OPERATIONAL_STATUS_REASON = 10; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_HealthCheck: - _SCM_PD_OPERATIONAL_STATUS_REASON = 11; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_LostDataPersistence: - _SCM_PD_OPERATIONAL_STATUS_REASON = 12; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_DisabledByPlatform: - _SCM_PD_OPERATIONAL_STATUS_REASON = 13; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_PermanentError: - _SCM_PD_OPERATIONAL_STATUS_REASON = 14; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_LostWritePersistence: - _SCM_PD_OPERATIONAL_STATUS_REASON = 15; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_FatalError: - _SCM_PD_OPERATIONAL_STATUS_REASON = 16; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_DataPersistenceLossImminent : _SCM_PD_OPERATIONAL_STATUS_REASON = 17 ; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_WritePersistenceLossImminent : _SCM_PD_OPERATIONAL_STATUS_REASON = 18 ; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_MediaRemainingSpareBlock: - _SCM_PD_OPERATIONAL_STATUS_REASON = 19; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_PerformanceDegradation: - _SCM_PD_OPERATIONAL_STATUS_REASON = 20; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_ExcessiveTemperature: - _SCM_PD_OPERATIONAL_STATUS_REASON = 21; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_InternalFailure: - _SCM_PD_OPERATIONAL_STATUS_REASON = 22; -pub const _SCM_PD_OPERATIONAL_STATUS_REASON_ScmPhysicalDeviceOpReason_Max: - _SCM_PD_OPERATIONAL_STATUS_REASON = 23; -pub type _SCM_PD_OPERATIONAL_STATUS_REASON = ::std::os::raw::c_int; -pub use self::_SCM_PD_OPERATIONAL_STATUS_REASON as SCM_PD_OPERATIONAL_STATUS_REASON; -pub type PSCM_PD_OPERATIONAL_STATUS_REASON = *mut _SCM_PD_OPERATIONAL_STATUS_REASON; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_MANAGEMENT_STATUS { - pub Version: DWORD, - pub Size: DWORD, - pub Health: SCM_PD_HEALTH_STATUS, - pub NumberOfOperationalStatus: DWORD, - pub NumberOfAdditionalReasons: DWORD, - pub OperationalStatus: [SCM_PD_OPERATIONAL_STATUS; 16usize], - pub AdditionalReasons: [SCM_PD_OPERATIONAL_STATUS_REASON; 1usize], -} -pub type SCM_PD_MANAGEMENT_STATUS = _SCM_PD_MANAGEMENT_STATUS; -pub type PSCM_PD_MANAGEMENT_STATUS = *mut _SCM_PD_MANAGEMENT_STATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_LOCATION_STRING { - pub Version: DWORD, - pub Size: DWORD, - pub Location: [WCHAR; 1usize], -} -pub type SCM_PD_LOCATION_STRING = _SCM_PD_LOCATION_STRING; -pub type PSCM_PD_LOCATION_STRING = *mut _SCM_PD_LOCATION_STRING; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_FRU_ID_STRING { - pub Version: DWORD, - pub Size: DWORD, - pub IdentifierSize: DWORD, - pub Identifier: [BYTE; 1usize], -} -pub type SCM_PD_FRU_ID_STRING = _SCM_PD_FRU_ID_STRING; -pub type PSCM_PD_FRU_ID_STRING = *mut _SCM_PD_FRU_ID_STRING; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_FIRMWARE_DOWNLOAD { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub Slot: BYTE, - pub Reserved: [BYTE; 3usize], - pub Offset: DWORD64, - pub FirmwareImageSizeInBytes: DWORD, - pub FirmwareImage: [BYTE; 1usize], -} -pub type SCM_PD_FIRMWARE_DOWNLOAD = _SCM_PD_FIRMWARE_DOWNLOAD; -pub type PSCM_PD_FIRMWARE_DOWNLOAD = *mut _SCM_PD_FIRMWARE_DOWNLOAD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_FIRMWARE_ACTIVATE { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub Slot: BYTE, -} -pub type SCM_PD_FIRMWARE_ACTIVATE = _SCM_PD_FIRMWARE_ACTIVATE; -pub type PSCM_PD_FIRMWARE_ACTIVATE = *mut _SCM_PD_FIRMWARE_ACTIVATE; -pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivationStatus_None: - _SCM_PD_LAST_FW_ACTIVATION_STATUS = 0; -pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivationStatus_Success: - _SCM_PD_LAST_FW_ACTIVATION_STATUS = 1; -pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivationStatus_FwNotFound: - _SCM_PD_LAST_FW_ACTIVATION_STATUS = 2; -pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivationStatus_ColdRebootRequired: - _SCM_PD_LAST_FW_ACTIVATION_STATUS = 3; -pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivaitonStatus_ActivationInProgress: - _SCM_PD_LAST_FW_ACTIVATION_STATUS = 4; -pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivaitonStatus_Retry: - _SCM_PD_LAST_FW_ACTIVATION_STATUS = 5; -pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivaitonStatus_FwUnsupported: - _SCM_PD_LAST_FW_ACTIVATION_STATUS = 6; -pub const _SCM_PD_LAST_FW_ACTIVATION_STATUS_ScmPdLastFwActivaitonStatus_UnknownError: - _SCM_PD_LAST_FW_ACTIVATION_STATUS = 7; -pub type _SCM_PD_LAST_FW_ACTIVATION_STATUS = ::std::os::raw::c_int; -pub use self::_SCM_PD_LAST_FW_ACTIVATION_STATUS as SCM_PD_LAST_FW_ACTIVATION_STATUS; -pub type PSCM_PD_LAST_FW_ACTIVATION_STATUS = *mut _SCM_PD_LAST_FW_ACTIVATION_STATUS; -pub const _SCM_PD_FIRMWARE_ACTIVATION_STATE_ScmPdFirmwareActivationState_Idle: - _SCM_PD_FIRMWARE_ACTIVATION_STATE = 0; -pub const _SCM_PD_FIRMWARE_ACTIVATION_STATE_ScmPdFirmwareActivationState_Armed: - _SCM_PD_FIRMWARE_ACTIVATION_STATE = 1; -pub const _SCM_PD_FIRMWARE_ACTIVATION_STATE_ScmPdFirmwareActivationState_Busy: - _SCM_PD_FIRMWARE_ACTIVATION_STATE = 2; -pub type _SCM_PD_FIRMWARE_ACTIVATION_STATE = ::std::os::raw::c_int; -pub use self::_SCM_PD_FIRMWARE_ACTIVATION_STATE as SCM_PD_FIRMWARE_ACTIVATION_STATE; -pub type PSCM_PD_FIRMWARE_ACTIVATION_STATE = *mut _SCM_PD_FIRMWARE_ACTIVATION_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_RUNTIME_FW_ACTIVATION_INFO { - pub Version: DWORD, - pub Size: DWORD, - pub LastFirmwareActivationStatus: SCM_PD_LAST_FW_ACTIVATION_STATUS, - pub FirmwareActivationState: SCM_PD_FIRMWARE_ACTIVATION_STATE, -} -pub type SCM_PD_RUNTIME_FW_ACTIVATION_INFO = _SCM_PD_RUNTIME_FW_ACTIVATION_INFO; -pub type PSCM_PD_RUNTIME_FW_ACTIVATION_INFO = *mut _SCM_PD_RUNTIME_FW_ACTIVATION_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_PASSTHROUGH_INPUT { - pub Version: DWORD, - pub Size: DWORD, - pub ProtocolGuid: GUID, - pub DataSize: DWORD, - pub Data: [BYTE; 1usize], -} -pub type SCM_PD_PASSTHROUGH_INPUT = _SCM_PD_PASSTHROUGH_INPUT; -pub type PSCM_PD_PASSTHROUGH_INPUT = *mut _SCM_PD_PASSTHROUGH_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_PASSTHROUGH_OUTPUT { - pub Version: DWORD, - pub Size: DWORD, - pub ProtocolGuid: GUID, - pub DataSize: DWORD, - pub Data: [BYTE; 1usize], -} -pub type SCM_PD_PASSTHROUGH_OUTPUT = _SCM_PD_PASSTHROUGH_OUTPUT; -pub type PSCM_PD_PASSTHROUGH_OUTPUT = *mut _SCM_PD_PASSTHROUGH_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_PASSTHROUGH_INVDIMM_INPUT { - pub Opcode: DWORD, - pub OpcodeParametersLength: DWORD, - pub OpcodeParameters: [BYTE; 1usize], -} -pub type SCM_PD_PASSTHROUGH_INVDIMM_INPUT = _SCM_PD_PASSTHROUGH_INVDIMM_INPUT; -pub type PSCM_PD_PASSTHROUGH_INVDIMM_INPUT = *mut _SCM_PD_PASSTHROUGH_INVDIMM_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_PASSTHROUGH_INVDIMM_OUTPUT { - pub GeneralStatus: WORD, - pub ExtendedStatus: WORD, - pub OutputDataLength: DWORD, - pub OutputData: [BYTE; 1usize], -} -pub type SCM_PD_PASSTHROUGH_INVDIMM_OUTPUT = _SCM_PD_PASSTHROUGH_INVDIMM_OUTPUT; -pub type PSCM_PD_PASSTHROUGH_INVDIMM_OUTPUT = *mut _SCM_PD_PASSTHROUGH_INVDIMM_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_REINITIALIZE_MEDIA_INPUT { - pub Version: DWORD, - pub Size: DWORD, - pub Options: _SCM_PD_REINITIALIZE_MEDIA_INPUT__bindgen_ty_1, -} -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_REINITIALIZE_MEDIA_INPUT__bindgen_ty_1 { - pub _bitfield_align_1: [u8; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, - pub __bindgen_padding_0: [u8; 3usize], -} -impl _SCM_PD_REINITIALIZE_MEDIA_INPUT__bindgen_ty_1 { - #[inline] - pub fn Overwrite(&self) -> DWORD { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_Overwrite(&mut self, val: DWORD) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1(Overwrite: DWORD) -> __BindgenBitfieldUnit<[u8; 1usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let Overwrite: u32 = unsafe { ::std::mem::transmute(Overwrite) }; - Overwrite as u64 - }); - __bindgen_bitfield_unit - } -} -pub type SCM_PD_REINITIALIZE_MEDIA_INPUT = _SCM_PD_REINITIALIZE_MEDIA_INPUT; -pub type PSCM_PD_REINITIALIZE_MEDIA_INPUT = *mut _SCM_PD_REINITIALIZE_MEDIA_INPUT; -pub const _SCM_PD_MEDIA_REINITIALIZATION_STATUS_ScmPhysicalDeviceReinit_Success: - _SCM_PD_MEDIA_REINITIALIZATION_STATUS = 0; -pub const _SCM_PD_MEDIA_REINITIALIZATION_STATUS_ScmPhysicalDeviceReinit_RebootNeeded: - _SCM_PD_MEDIA_REINITIALIZATION_STATUS = 1; -pub const _SCM_PD_MEDIA_REINITIALIZATION_STATUS_ScmPhysicalDeviceReinit_ColdBootNeeded: - _SCM_PD_MEDIA_REINITIALIZATION_STATUS = 2; -pub const _SCM_PD_MEDIA_REINITIALIZATION_STATUS_ScmPhysicalDeviceReinit_Max: - _SCM_PD_MEDIA_REINITIALIZATION_STATUS = 3; -pub type _SCM_PD_MEDIA_REINITIALIZATION_STATUS = ::std::os::raw::c_int; -pub use self::_SCM_PD_MEDIA_REINITIALIZATION_STATUS as SCM_PD_MEDIA_REINITIALIZATION_STATUS; -pub type PSCM_PD_MEDIA_REINITIALIZATION_STATUS = *mut _SCM_PD_MEDIA_REINITIALIZATION_STATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCM_PD_REINITIALIZE_MEDIA_OUTPUT { - pub Version: DWORD, - pub Size: DWORD, - pub Status: SCM_PD_MEDIA_REINITIALIZATION_STATUS, -} -pub type SCM_PD_REINITIALIZE_MEDIA_OUTPUT = _SCM_PD_REINITIALIZE_MEDIA_OUTPUT; -pub type PSCM_PD_REINITIALIZE_MEDIA_OUTPUT = *mut _SCM_PD_REINITIALIZE_MEDIA_OUTPUT; -pub const _MEDIA_TYPE_Unknown: _MEDIA_TYPE = 0; -pub const _MEDIA_TYPE_F5_1Pt2_512: _MEDIA_TYPE = 1; -pub const _MEDIA_TYPE_F3_1Pt44_512: _MEDIA_TYPE = 2; -pub const _MEDIA_TYPE_F3_2Pt88_512: _MEDIA_TYPE = 3; -pub const _MEDIA_TYPE_F3_20Pt8_512: _MEDIA_TYPE = 4; -pub const _MEDIA_TYPE_F3_720_512: _MEDIA_TYPE = 5; -pub const _MEDIA_TYPE_F5_360_512: _MEDIA_TYPE = 6; -pub const _MEDIA_TYPE_F5_320_512: _MEDIA_TYPE = 7; -pub const _MEDIA_TYPE_F5_320_1024: _MEDIA_TYPE = 8; -pub const _MEDIA_TYPE_F5_180_512: _MEDIA_TYPE = 9; -pub const _MEDIA_TYPE_F5_160_512: _MEDIA_TYPE = 10; -pub const _MEDIA_TYPE_RemovableMedia: _MEDIA_TYPE = 11; -pub const _MEDIA_TYPE_FixedMedia: _MEDIA_TYPE = 12; -pub const _MEDIA_TYPE_F3_120M_512: _MEDIA_TYPE = 13; -pub const _MEDIA_TYPE_F3_640_512: _MEDIA_TYPE = 14; -pub const _MEDIA_TYPE_F5_640_512: _MEDIA_TYPE = 15; -pub const _MEDIA_TYPE_F5_720_512: _MEDIA_TYPE = 16; -pub const _MEDIA_TYPE_F3_1Pt2_512: _MEDIA_TYPE = 17; -pub const _MEDIA_TYPE_F3_1Pt23_1024: _MEDIA_TYPE = 18; -pub const _MEDIA_TYPE_F5_1Pt23_1024: _MEDIA_TYPE = 19; -pub const _MEDIA_TYPE_F3_128Mb_512: _MEDIA_TYPE = 20; -pub const _MEDIA_TYPE_F3_230Mb_512: _MEDIA_TYPE = 21; -pub const _MEDIA_TYPE_F8_256_128: _MEDIA_TYPE = 22; -pub const _MEDIA_TYPE_F3_200Mb_512: _MEDIA_TYPE = 23; -pub const _MEDIA_TYPE_F3_240M_512: _MEDIA_TYPE = 24; -pub const _MEDIA_TYPE_F3_32M_512: _MEDIA_TYPE = 25; -pub type _MEDIA_TYPE = ::std::os::raw::c_int; -pub use self::_MEDIA_TYPE as MEDIA_TYPE; -pub type PMEDIA_TYPE = *mut _MEDIA_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FORMAT_PARAMETERS { - pub MediaType: MEDIA_TYPE, - pub StartCylinderNumber: DWORD, - pub EndCylinderNumber: DWORD, - pub StartHeadNumber: DWORD, - pub EndHeadNumber: DWORD, -} -pub type FORMAT_PARAMETERS = _FORMAT_PARAMETERS; -pub type PFORMAT_PARAMETERS = *mut _FORMAT_PARAMETERS; -pub type BAD_TRACK_NUMBER = WORD; -pub type PBAD_TRACK_NUMBER = *mut WORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FORMAT_EX_PARAMETERS { - pub MediaType: MEDIA_TYPE, - pub StartCylinderNumber: DWORD, - pub EndCylinderNumber: DWORD, - pub StartHeadNumber: DWORD, - pub EndHeadNumber: DWORD, - pub FormatGapLength: WORD, - pub SectorsPerTrack: WORD, - pub SectorNumber: [WORD; 1usize], -} -pub type FORMAT_EX_PARAMETERS = _FORMAT_EX_PARAMETERS; -pub type PFORMAT_EX_PARAMETERS = *mut _FORMAT_EX_PARAMETERS; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DISK_GEOMETRY { - pub Cylinders: LARGE_INTEGER, - pub MediaType: MEDIA_TYPE, - pub TracksPerCylinder: DWORD, - pub SectorsPerTrack: DWORD, - pub BytesPerSector: DWORD, -} -pub type DISK_GEOMETRY = _DISK_GEOMETRY; -pub type PDISK_GEOMETRY = *mut _DISK_GEOMETRY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PARTITION_INFORMATION { - pub StartingOffset: LARGE_INTEGER, - pub PartitionLength: LARGE_INTEGER, - pub HiddenSectors: DWORD, - pub PartitionNumber: DWORD, - pub PartitionType: BYTE, - pub BootIndicator: BOOLEAN, - pub RecognizedPartition: BOOLEAN, - pub RewritePartition: BOOLEAN, -} -pub type PARTITION_INFORMATION = _PARTITION_INFORMATION; -pub type PPARTITION_INFORMATION = *mut _PARTITION_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SET_PARTITION_INFORMATION { - pub PartitionType: BYTE, -} -pub type SET_PARTITION_INFORMATION = _SET_PARTITION_INFORMATION; -pub type PSET_PARTITION_INFORMATION = *mut _SET_PARTITION_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DRIVE_LAYOUT_INFORMATION { - pub PartitionCount: DWORD, - pub Signature: DWORD, - pub PartitionEntry: [PARTITION_INFORMATION; 1usize], -} -pub type DRIVE_LAYOUT_INFORMATION = _DRIVE_LAYOUT_INFORMATION; -pub type PDRIVE_LAYOUT_INFORMATION = *mut _DRIVE_LAYOUT_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _VERIFY_INFORMATION { - pub StartingOffset: LARGE_INTEGER, - pub Length: DWORD, -} -pub type VERIFY_INFORMATION = _VERIFY_INFORMATION; -pub type PVERIFY_INFORMATION = *mut _VERIFY_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REASSIGN_BLOCKS { - pub Reserved: WORD, - pub Count: WORD, - pub BlockNumber: [DWORD; 1usize], -} -pub type REASSIGN_BLOCKS = _REASSIGN_BLOCKS; -pub type PREASSIGN_BLOCKS = *mut _REASSIGN_BLOCKS; -#[repr(C, packed)] -#[derive(Copy, Clone)] -pub struct _REASSIGN_BLOCKS_EX { - pub Reserved: WORD, - pub Count: WORD, - pub BlockNumber: [LARGE_INTEGER; 1usize], -} -pub type REASSIGN_BLOCKS_EX = _REASSIGN_BLOCKS_EX; -pub type PREASSIGN_BLOCKS_EX = *mut _REASSIGN_BLOCKS_EX; -pub const _PARTITION_STYLE_PARTITION_STYLE_MBR: _PARTITION_STYLE = 0; -pub const _PARTITION_STYLE_PARTITION_STYLE_GPT: _PARTITION_STYLE = 1; -pub const _PARTITION_STYLE_PARTITION_STYLE_RAW: _PARTITION_STYLE = 2; -pub type _PARTITION_STYLE = ::std::os::raw::c_int; -pub use self::_PARTITION_STYLE as PARTITION_STYLE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PARTITION_INFORMATION_GPT { - pub PartitionType: GUID, - pub PartitionId: GUID, - pub Attributes: DWORD64, - pub Name: [WCHAR; 36usize], -} -pub type PARTITION_INFORMATION_GPT = _PARTITION_INFORMATION_GPT; -pub type PPARTITION_INFORMATION_GPT = *mut _PARTITION_INFORMATION_GPT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PARTITION_INFORMATION_MBR { - pub PartitionType: BYTE, - pub BootIndicator: BOOLEAN, - pub RecognizedPartition: BOOLEAN, - pub HiddenSectors: DWORD, - pub PartitionId: GUID, -} -pub type PARTITION_INFORMATION_MBR = _PARTITION_INFORMATION_MBR; -pub type PPARTITION_INFORMATION_MBR = *mut _PARTITION_INFORMATION_MBR; -pub type SET_PARTITION_INFORMATION_MBR = SET_PARTITION_INFORMATION; -pub type SET_PARTITION_INFORMATION_GPT = PARTITION_INFORMATION_GPT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _SET_PARTITION_INFORMATION_EX { - pub PartitionStyle: PARTITION_STYLE, - pub __bindgen_anon_1: _SET_PARTITION_INFORMATION_EX__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SET_PARTITION_INFORMATION_EX__bindgen_ty_1 { - pub Mbr: SET_PARTITION_INFORMATION_MBR, - pub Gpt: SET_PARTITION_INFORMATION_GPT, -} -pub type SET_PARTITION_INFORMATION_EX = _SET_PARTITION_INFORMATION_EX; -pub type PSET_PARTITION_INFORMATION_EX = *mut _SET_PARTITION_INFORMATION_EX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CREATE_DISK_GPT { - pub DiskId: GUID, - pub MaxPartitionCount: DWORD, -} -pub type CREATE_DISK_GPT = _CREATE_DISK_GPT; -pub type PCREATE_DISK_GPT = *mut _CREATE_DISK_GPT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CREATE_DISK_MBR { - pub Signature: DWORD, -} -pub type CREATE_DISK_MBR = _CREATE_DISK_MBR; -pub type PCREATE_DISK_MBR = *mut _CREATE_DISK_MBR; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CREATE_DISK { - pub PartitionStyle: PARTITION_STYLE, - pub __bindgen_anon_1: _CREATE_DISK__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _CREATE_DISK__bindgen_ty_1 { - pub Mbr: CREATE_DISK_MBR, - pub Gpt: CREATE_DISK_GPT, -} -pub type CREATE_DISK = _CREATE_DISK; -pub type PCREATE_DISK = *mut _CREATE_DISK; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _GET_LENGTH_INFORMATION { - pub Length: LARGE_INTEGER, -} -pub type GET_LENGTH_INFORMATION = _GET_LENGTH_INFORMATION; -pub type PGET_LENGTH_INFORMATION = *mut _GET_LENGTH_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PARTITION_INFORMATION_EX { - pub PartitionStyle: PARTITION_STYLE, - pub StartingOffset: LARGE_INTEGER, - pub PartitionLength: LARGE_INTEGER, - pub PartitionNumber: DWORD, - pub RewritePartition: BOOLEAN, - pub IsServicePartition: BOOLEAN, - pub __bindgen_anon_1: _PARTITION_INFORMATION_EX__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PARTITION_INFORMATION_EX__bindgen_ty_1 { - pub Mbr: PARTITION_INFORMATION_MBR, - pub Gpt: PARTITION_INFORMATION_GPT, -} -pub type PARTITION_INFORMATION_EX = _PARTITION_INFORMATION_EX; -pub type PPARTITION_INFORMATION_EX = *mut _PARTITION_INFORMATION_EX; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DRIVE_LAYOUT_INFORMATION_GPT { - pub DiskId: GUID, - pub StartingUsableOffset: LARGE_INTEGER, - pub UsableLength: LARGE_INTEGER, - pub MaxPartitionCount: DWORD, -} -pub type DRIVE_LAYOUT_INFORMATION_GPT = _DRIVE_LAYOUT_INFORMATION_GPT; -pub type PDRIVE_LAYOUT_INFORMATION_GPT = *mut _DRIVE_LAYOUT_INFORMATION_GPT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVE_LAYOUT_INFORMATION_MBR { - pub Signature: DWORD, - pub CheckSum: DWORD, -} -pub type DRIVE_LAYOUT_INFORMATION_MBR = _DRIVE_LAYOUT_INFORMATION_MBR; -pub type PDRIVE_LAYOUT_INFORMATION_MBR = *mut _DRIVE_LAYOUT_INFORMATION_MBR; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DRIVE_LAYOUT_INFORMATION_EX { - pub PartitionStyle: DWORD, - pub PartitionCount: DWORD, - pub __bindgen_anon_1: _DRIVE_LAYOUT_INFORMATION_EX__bindgen_ty_1, - pub PartitionEntry: [PARTITION_INFORMATION_EX; 1usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DRIVE_LAYOUT_INFORMATION_EX__bindgen_ty_1 { - pub Mbr: DRIVE_LAYOUT_INFORMATION_MBR, - pub Gpt: DRIVE_LAYOUT_INFORMATION_GPT, -} -pub type DRIVE_LAYOUT_INFORMATION_EX = _DRIVE_LAYOUT_INFORMATION_EX; -pub type PDRIVE_LAYOUT_INFORMATION_EX = *mut _DRIVE_LAYOUT_INFORMATION_EX; -pub const _DETECTION_TYPE_DetectNone: _DETECTION_TYPE = 0; -pub const _DETECTION_TYPE_DetectInt13: _DETECTION_TYPE = 1; -pub const _DETECTION_TYPE_DetectExInt13: _DETECTION_TYPE = 2; -pub type _DETECTION_TYPE = ::std::os::raw::c_int; -pub use self::_DETECTION_TYPE as DETECTION_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISK_INT13_INFO { - pub DriveSelect: WORD, - pub MaxCylinders: DWORD, - pub SectorsPerTrack: WORD, - pub MaxHeads: WORD, - pub NumberDrives: WORD, -} -pub type DISK_INT13_INFO = _DISK_INT13_INFO; -pub type PDISK_INT13_INFO = *mut _DISK_INT13_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISK_EX_INT13_INFO { - pub ExBufferSize: WORD, - pub ExFlags: WORD, - pub ExCylinders: DWORD, - pub ExHeads: DWORD, - pub ExSectorsPerTrack: DWORD, - pub ExSectorsPerDrive: DWORD64, - pub ExSectorSize: WORD, - pub ExReserved: WORD, -} -pub type DISK_EX_INT13_INFO = _DISK_EX_INT13_INFO; -pub type PDISK_EX_INT13_INFO = *mut _DISK_EX_INT13_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DISK_DETECTION_INFO { - pub SizeOfDetectInfo: DWORD, - pub DetectionType: DETECTION_TYPE, - pub __bindgen_anon_1: _DISK_DETECTION_INFO__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DISK_DETECTION_INFO__bindgen_ty_1 { - pub __bindgen_anon_1: _DISK_DETECTION_INFO__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISK_DETECTION_INFO__bindgen_ty_1__bindgen_ty_1 { - pub Int13: DISK_INT13_INFO, - pub ExInt13: DISK_EX_INT13_INFO, -} -pub type DISK_DETECTION_INFO = _DISK_DETECTION_INFO; -pub type PDISK_DETECTION_INFO = *mut _DISK_DETECTION_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DISK_PARTITION_INFO { - pub SizeOfPartitionInfo: DWORD, - pub PartitionStyle: PARTITION_STYLE, - pub __bindgen_anon_1: _DISK_PARTITION_INFO__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DISK_PARTITION_INFO__bindgen_ty_1 { - pub Mbr: _DISK_PARTITION_INFO__bindgen_ty_1__bindgen_ty_1, - pub Gpt: _DISK_PARTITION_INFO__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISK_PARTITION_INFO__bindgen_ty_1__bindgen_ty_1 { - pub Signature: DWORD, - pub CheckSum: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISK_PARTITION_INFO__bindgen_ty_1__bindgen_ty_2 { - pub DiskId: GUID, -} -pub type DISK_PARTITION_INFO = _DISK_PARTITION_INFO; -pub type PDISK_PARTITION_INFO = *mut _DISK_PARTITION_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DISK_GEOMETRY_EX { - pub Geometry: DISK_GEOMETRY, - pub DiskSize: LARGE_INTEGER, - pub Data: [BYTE; 1usize], -} -pub type DISK_GEOMETRY_EX = _DISK_GEOMETRY_EX; -pub type PDISK_GEOMETRY_EX = *mut _DISK_GEOMETRY_EX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISK_CONTROLLER_NUMBER { - pub ControllerNumber: DWORD, - pub DiskNumber: DWORD, -} -pub type DISK_CONTROLLER_NUMBER = _DISK_CONTROLLER_NUMBER; -pub type PDISK_CONTROLLER_NUMBER = *mut _DISK_CONTROLLER_NUMBER; -pub const DISK_CACHE_RETENTION_PRIORITY_EqualPriority: DISK_CACHE_RETENTION_PRIORITY = 0; -pub const DISK_CACHE_RETENTION_PRIORITY_KeepPrefetchedData: DISK_CACHE_RETENTION_PRIORITY = 1; -pub const DISK_CACHE_RETENTION_PRIORITY_KeepReadData: DISK_CACHE_RETENTION_PRIORITY = 2; -pub type DISK_CACHE_RETENTION_PRIORITY = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DISK_CACHE_INFORMATION { - pub ParametersSavable: BOOLEAN, - pub ReadCacheEnabled: BOOLEAN, - pub WriteCacheEnabled: BOOLEAN, - pub ReadRetentionPriority: DISK_CACHE_RETENTION_PRIORITY, - pub WriteRetentionPriority: DISK_CACHE_RETENTION_PRIORITY, - pub DisablePrefetchTransferLength: WORD, - pub PrefetchScalar: BOOLEAN, - pub __bindgen_anon_1: _DISK_CACHE_INFORMATION__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _DISK_CACHE_INFORMATION__bindgen_ty_1 { - pub ScalarPrefetch: _DISK_CACHE_INFORMATION__bindgen_ty_1__bindgen_ty_1, - pub BlockPrefetch: _DISK_CACHE_INFORMATION__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISK_CACHE_INFORMATION__bindgen_ty_1__bindgen_ty_1 { - pub Minimum: WORD, - pub Maximum: WORD, - pub MaximumBlocks: WORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISK_CACHE_INFORMATION__bindgen_ty_1__bindgen_ty_2 { - pub Minimum: WORD, - pub Maximum: WORD, -} -pub type DISK_CACHE_INFORMATION = _DISK_CACHE_INFORMATION; -pub type PDISK_CACHE_INFORMATION = *mut _DISK_CACHE_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DISK_GROW_PARTITION { - pub PartitionNumber: DWORD, - pub BytesToGrow: LARGE_INTEGER, -} -pub type DISK_GROW_PARTITION = _DISK_GROW_PARTITION; -pub type PDISK_GROW_PARTITION = *mut _DISK_GROW_PARTITION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _HISTOGRAM_BUCKET { - pub Reads: DWORD, - pub Writes: DWORD, -} -pub type HISTOGRAM_BUCKET = _HISTOGRAM_BUCKET; -pub type PHISTOGRAM_BUCKET = *mut _HISTOGRAM_BUCKET; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DISK_HISTOGRAM { - pub DiskSize: LARGE_INTEGER, - pub Start: LARGE_INTEGER, - pub End: LARGE_INTEGER, - pub Average: LARGE_INTEGER, - pub AverageRead: LARGE_INTEGER, - pub AverageWrite: LARGE_INTEGER, - pub Granularity: DWORD, - pub Size: DWORD, - pub ReadCount: DWORD, - pub WriteCount: DWORD, - pub Histogram: PHISTOGRAM_BUCKET, -} -pub type DISK_HISTOGRAM = _DISK_HISTOGRAM; -pub type PDISK_HISTOGRAM = *mut _DISK_HISTOGRAM; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DISK_PERFORMANCE { - pub BytesRead: LARGE_INTEGER, - pub BytesWritten: LARGE_INTEGER, - pub ReadTime: LARGE_INTEGER, - pub WriteTime: LARGE_INTEGER, - pub IdleTime: LARGE_INTEGER, - pub ReadCount: DWORD, - pub WriteCount: DWORD, - pub QueueDepth: DWORD, - pub SplitCount: DWORD, - pub QueryTime: LARGE_INTEGER, - pub StorageDeviceNumber: DWORD, - pub StorageManagerName: [WCHAR; 8usize], -} -pub type DISK_PERFORMANCE = _DISK_PERFORMANCE; -pub type PDISK_PERFORMANCE = *mut _DISK_PERFORMANCE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DISK_RECORD { - pub ByteOffset: LARGE_INTEGER, - pub StartTime: LARGE_INTEGER, - pub EndTime: LARGE_INTEGER, - pub VirtualAddress: PVOID, - pub NumberOfBytes: DWORD, - pub DeviceNumber: BYTE, - pub ReadRequest: BOOLEAN, -} -pub type DISK_RECORD = _DISK_RECORD; -pub type PDISK_RECORD = *mut _DISK_RECORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DISK_LOGGING { - pub Function: BYTE, - pub BufferAddress: PVOID, - pub BufferSize: DWORD, -} -pub type DISK_LOGGING = _DISK_LOGGING; -pub type PDISK_LOGGING = *mut _DISK_LOGGING; -pub const _BIN_TYPES_RequestSize: _BIN_TYPES = 0; -pub const _BIN_TYPES_RequestLocation: _BIN_TYPES = 1; -pub type _BIN_TYPES = ::std::os::raw::c_int; -pub use self::_BIN_TYPES as BIN_TYPES; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _BIN_RANGE { - pub StartValue: LARGE_INTEGER, - pub Length: LARGE_INTEGER, -} -pub type BIN_RANGE = _BIN_RANGE; -pub type PBIN_RANGE = *mut _BIN_RANGE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PERF_BIN { - pub NumberOfBins: DWORD, - pub TypeOfBin: DWORD, - pub BinsRanges: [BIN_RANGE; 1usize], -} -pub type PERF_BIN = _PERF_BIN; -pub type PPERF_BIN = *mut _PERF_BIN; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _BIN_COUNT { - pub BinRange: BIN_RANGE, - pub BinCount: DWORD, -} -pub type BIN_COUNT = _BIN_COUNT; -pub type PBIN_COUNT = *mut _BIN_COUNT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _BIN_RESULTS { - pub NumberOfBins: DWORD, - pub BinCounts: [BIN_COUNT; 1usize], -} -pub type BIN_RESULTS = _BIN_RESULTS; -pub type PBIN_RESULTS = *mut _BIN_RESULTS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _GETVERSIONINPARAMS { - pub bVersion: BYTE, - pub bRevision: BYTE, - pub bReserved: BYTE, - pub bIDEDeviceMap: BYTE, - pub fCapabilities: DWORD, - pub dwReserved: [DWORD; 4usize], -} -pub type GETVERSIONINPARAMS = _GETVERSIONINPARAMS; -pub type PGETVERSIONINPARAMS = *mut _GETVERSIONINPARAMS; -pub type LPGETVERSIONINPARAMS = *mut _GETVERSIONINPARAMS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IDEREGS { - pub bFeaturesReg: BYTE, - pub bSectorCountReg: BYTE, - pub bSectorNumberReg: BYTE, - pub bCylLowReg: BYTE, - pub bCylHighReg: BYTE, - pub bDriveHeadReg: BYTE, - pub bCommandReg: BYTE, - pub bReserved: BYTE, -} -pub type IDEREGS = _IDEREGS; -pub type PIDEREGS = *mut _IDEREGS; -pub type LPIDEREGS = *mut _IDEREGS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _SENDCMDINPARAMS { - pub cBufferSize: DWORD, - pub irDriveRegs: IDEREGS, - pub bDriveNumber: BYTE, - pub bReserved: [BYTE; 3usize], - pub dwReserved: [DWORD; 4usize], - pub bBuffer: [BYTE; 1usize], -} -pub type SENDCMDINPARAMS = _SENDCMDINPARAMS; -pub type PSENDCMDINPARAMS = *mut _SENDCMDINPARAMS; -pub type LPSENDCMDINPARAMS = *mut _SENDCMDINPARAMS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVERSTATUS { - pub bDriverError: BYTE, - pub bIDEError: BYTE, - pub bReserved: [BYTE; 2usize], - pub dwReserved: [DWORD; 2usize], -} -pub type DRIVERSTATUS = _DRIVERSTATUS; -pub type PDRIVERSTATUS = *mut _DRIVERSTATUS; -pub type LPDRIVERSTATUS = *mut _DRIVERSTATUS; -#[repr(C, packed)] -#[derive(Debug, Copy, Clone)] -pub struct _SENDCMDOUTPARAMS { - pub cBufferSize: DWORD, - pub DriverStatus: DRIVERSTATUS, - pub bBuffer: [BYTE; 1usize], -} -pub type SENDCMDOUTPARAMS = _SENDCMDOUTPARAMS; -pub type PSENDCMDOUTPARAMS = *mut _SENDCMDOUTPARAMS; -pub type LPSENDCMDOUTPARAMS = *mut _SENDCMDOUTPARAMS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _GET_DISK_ATTRIBUTES { - pub Version: DWORD, - pub Reserved1: DWORD, - pub Attributes: DWORDLONG, -} -pub type GET_DISK_ATTRIBUTES = _GET_DISK_ATTRIBUTES; -pub type PGET_DISK_ATTRIBUTES = *mut _GET_DISK_ATTRIBUTES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SET_DISK_ATTRIBUTES { - pub Version: DWORD, - pub Persist: BOOLEAN, - pub Reserved1: [BYTE; 3usize], - pub Attributes: DWORDLONG, - pub AttributesMask: DWORDLONG, - pub Reserved2: [DWORD; 4usize], -} -pub type SET_DISK_ATTRIBUTES = _SET_DISK_ATTRIBUTES; -pub type PSET_DISK_ATTRIBUTES = *mut _SET_DISK_ATTRIBUTES; -pub const _ELEMENT_TYPE_AllElements: _ELEMENT_TYPE = 0; -pub const _ELEMENT_TYPE_ChangerTransport: _ELEMENT_TYPE = 1; -pub const _ELEMENT_TYPE_ChangerSlot: _ELEMENT_TYPE = 2; -pub const _ELEMENT_TYPE_ChangerIEPort: _ELEMENT_TYPE = 3; -pub const _ELEMENT_TYPE_ChangerDrive: _ELEMENT_TYPE = 4; -pub const _ELEMENT_TYPE_ChangerDoor: _ELEMENT_TYPE = 5; -pub const _ELEMENT_TYPE_ChangerKeypad: _ELEMENT_TYPE = 6; -pub const _ELEMENT_TYPE_ChangerMaxElement: _ELEMENT_TYPE = 7; -pub type _ELEMENT_TYPE = ::std::os::raw::c_int; -pub use self::_ELEMENT_TYPE as ELEMENT_TYPE; -pub type PELEMENT_TYPE = *mut _ELEMENT_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CHANGER_ELEMENT { - pub ElementType: ELEMENT_TYPE, - pub ElementAddress: DWORD, -} -pub type CHANGER_ELEMENT = _CHANGER_ELEMENT; -pub type PCHANGER_ELEMENT = *mut _CHANGER_ELEMENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CHANGER_ELEMENT_LIST { - pub Element: CHANGER_ELEMENT, - pub NumberOfElements: DWORD, -} -pub type CHANGER_ELEMENT_LIST = _CHANGER_ELEMENT_LIST; -pub type PCHANGER_ELEMENT_LIST = *mut _CHANGER_ELEMENT_LIST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _GET_CHANGER_PARAMETERS { - pub Size: DWORD, - pub NumberTransportElements: WORD, - pub NumberStorageElements: WORD, - pub NumberCleanerSlots: WORD, - pub NumberIEElements: WORD, - pub NumberDataTransferElements: WORD, - pub NumberOfDoors: WORD, - pub FirstSlotNumber: WORD, - pub FirstDriveNumber: WORD, - pub FirstTransportNumber: WORD, - pub FirstIEPortNumber: WORD, - pub FirstCleanerSlotAddress: WORD, - pub MagazineSize: WORD, - pub DriveCleanTimeout: DWORD, - pub Features0: DWORD, - pub Features1: DWORD, - pub MoveFromTransport: BYTE, - pub MoveFromSlot: BYTE, - pub MoveFromIePort: BYTE, - pub MoveFromDrive: BYTE, - pub ExchangeFromTransport: BYTE, - pub ExchangeFromSlot: BYTE, - pub ExchangeFromIePort: BYTE, - pub ExchangeFromDrive: BYTE, - pub LockUnlockCapabilities: BYTE, - pub PositionCapabilities: BYTE, - pub Reserved1: [BYTE; 2usize], - pub Reserved2: [DWORD; 2usize], -} -pub type GET_CHANGER_PARAMETERS = _GET_CHANGER_PARAMETERS; -pub type PGET_CHANGER_PARAMETERS = *mut _GET_CHANGER_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CHANGER_PRODUCT_DATA { - pub VendorId: [BYTE; 8usize], - pub ProductId: [BYTE; 16usize], - pub Revision: [BYTE; 4usize], - pub SerialNumber: [BYTE; 32usize], - pub DeviceType: BYTE, -} -pub type CHANGER_PRODUCT_DATA = _CHANGER_PRODUCT_DATA; -pub type PCHANGER_PRODUCT_DATA = *mut _CHANGER_PRODUCT_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CHANGER_SET_ACCESS { - pub Element: CHANGER_ELEMENT, - pub Control: DWORD, -} -pub type CHANGER_SET_ACCESS = _CHANGER_SET_ACCESS; -pub type PCHANGER_SET_ACCESS = *mut _CHANGER_SET_ACCESS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CHANGER_READ_ELEMENT_STATUS { - pub ElementList: CHANGER_ELEMENT_LIST, - pub VolumeTagInfo: BOOLEAN, -} -pub type CHANGER_READ_ELEMENT_STATUS = _CHANGER_READ_ELEMENT_STATUS; -pub type PCHANGER_READ_ELEMENT_STATUS = *mut _CHANGER_READ_ELEMENT_STATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CHANGER_ELEMENT_STATUS { - pub Element: CHANGER_ELEMENT, - pub SrcElementAddress: CHANGER_ELEMENT, - pub Flags: DWORD, - pub ExceptionCode: DWORD, - pub TargetId: BYTE, - pub Lun: BYTE, - pub Reserved: WORD, - pub PrimaryVolumeID: [BYTE; 36usize], - pub AlternateVolumeID: [BYTE; 36usize], -} -pub type CHANGER_ELEMENT_STATUS = _CHANGER_ELEMENT_STATUS; -pub type PCHANGER_ELEMENT_STATUS = *mut _CHANGER_ELEMENT_STATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CHANGER_ELEMENT_STATUS_EX { - pub Element: CHANGER_ELEMENT, - pub SrcElementAddress: CHANGER_ELEMENT, - pub Flags: DWORD, - pub ExceptionCode: DWORD, - pub TargetId: BYTE, - pub Lun: BYTE, - pub Reserved: WORD, - pub PrimaryVolumeID: [BYTE; 36usize], - pub AlternateVolumeID: [BYTE; 36usize], - pub VendorIdentification: [BYTE; 8usize], - pub ProductIdentification: [BYTE; 16usize], - pub SerialNumber: [BYTE; 32usize], -} -pub type CHANGER_ELEMENT_STATUS_EX = _CHANGER_ELEMENT_STATUS_EX; -pub type PCHANGER_ELEMENT_STATUS_EX = *mut _CHANGER_ELEMENT_STATUS_EX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CHANGER_INITIALIZE_ELEMENT_STATUS { - pub ElementList: CHANGER_ELEMENT_LIST, - pub BarCodeScan: BOOLEAN, -} -pub type CHANGER_INITIALIZE_ELEMENT_STATUS = _CHANGER_INITIALIZE_ELEMENT_STATUS; -pub type PCHANGER_INITIALIZE_ELEMENT_STATUS = *mut _CHANGER_INITIALIZE_ELEMENT_STATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CHANGER_SET_POSITION { - pub Transport: CHANGER_ELEMENT, - pub Destination: CHANGER_ELEMENT, - pub Flip: BOOLEAN, -} -pub type CHANGER_SET_POSITION = _CHANGER_SET_POSITION; -pub type PCHANGER_SET_POSITION = *mut _CHANGER_SET_POSITION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CHANGER_EXCHANGE_MEDIUM { - pub Transport: CHANGER_ELEMENT, - pub Source: CHANGER_ELEMENT, - pub Destination1: CHANGER_ELEMENT, - pub Destination2: CHANGER_ELEMENT, - pub Flip1: BOOLEAN, - pub Flip2: BOOLEAN, -} -pub type CHANGER_EXCHANGE_MEDIUM = _CHANGER_EXCHANGE_MEDIUM; -pub type PCHANGER_EXCHANGE_MEDIUM = *mut _CHANGER_EXCHANGE_MEDIUM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CHANGER_MOVE_MEDIUM { - pub Transport: CHANGER_ELEMENT, - pub Source: CHANGER_ELEMENT, - pub Destination: CHANGER_ELEMENT, - pub Flip: BOOLEAN, -} -pub type CHANGER_MOVE_MEDIUM = _CHANGER_MOVE_MEDIUM; -pub type PCHANGER_MOVE_MEDIUM = *mut _CHANGER_MOVE_MEDIUM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CHANGER_SEND_VOLUME_TAG_INFORMATION { - pub StartingElement: CHANGER_ELEMENT, - pub ActionCode: DWORD, - pub VolumeIDTemplate: [BYTE; 40usize], -} -pub type CHANGER_SEND_VOLUME_TAG_INFORMATION = _CHANGER_SEND_VOLUME_TAG_INFORMATION; -pub type PCHANGER_SEND_VOLUME_TAG_INFORMATION = *mut _CHANGER_SEND_VOLUME_TAG_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _READ_ELEMENT_ADDRESS_INFO { - pub NumberOfElements: DWORD, - pub ElementStatus: [CHANGER_ELEMENT_STATUS; 1usize], -} -pub type READ_ELEMENT_ADDRESS_INFO = _READ_ELEMENT_ADDRESS_INFO; -pub type PREAD_ELEMENT_ADDRESS_INFO = *mut _READ_ELEMENT_ADDRESS_INFO; -pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemNone: _CHANGER_DEVICE_PROBLEM_TYPE = 0; -pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemHardware: _CHANGER_DEVICE_PROBLEM_TYPE = 1; -pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemCHMError: _CHANGER_DEVICE_PROBLEM_TYPE = 2; -pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemDoorOpen: _CHANGER_DEVICE_PROBLEM_TYPE = 3; -pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemCalibrationError: _CHANGER_DEVICE_PROBLEM_TYPE = - 4; -pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemTargetFailure: _CHANGER_DEVICE_PROBLEM_TYPE = 5; -pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemCHMMoveError: _CHANGER_DEVICE_PROBLEM_TYPE = 6; -pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemCHMZeroError: _CHANGER_DEVICE_PROBLEM_TYPE = 7; -pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemCartridgeInsertError: - _CHANGER_DEVICE_PROBLEM_TYPE = 8; -pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemPositionError: _CHANGER_DEVICE_PROBLEM_TYPE = 9; -pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemSensorError: _CHANGER_DEVICE_PROBLEM_TYPE = 10; -pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemCartridgeEjectError: - _CHANGER_DEVICE_PROBLEM_TYPE = 11; -pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemGripperError: _CHANGER_DEVICE_PROBLEM_TYPE = 12; -pub const _CHANGER_DEVICE_PROBLEM_TYPE_DeviceProblemDriveError: _CHANGER_DEVICE_PROBLEM_TYPE = 13; -pub type _CHANGER_DEVICE_PROBLEM_TYPE = ::std::os::raw::c_int; -pub use self::_CHANGER_DEVICE_PROBLEM_TYPE as CHANGER_DEVICE_PROBLEM_TYPE; -pub type PCHANGER_DEVICE_PROBLEM_TYPE = *mut _CHANGER_DEVICE_PROBLEM_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PATHNAME_BUFFER { - pub PathNameLength: DWORD, - pub Name: [WCHAR; 1usize], -} -pub type PATHNAME_BUFFER = _PATHNAME_BUFFER; -pub type PPATHNAME_BUFFER = *mut _PATHNAME_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FSCTL_QUERY_FAT_BPB_BUFFER { - pub First0x24BytesOfBootSector: [BYTE; 36usize], -} -pub type FSCTL_QUERY_FAT_BPB_BUFFER = _FSCTL_QUERY_FAT_BPB_BUFFER; -pub type PFSCTL_QUERY_FAT_BPB_BUFFER = *mut _FSCTL_QUERY_FAT_BPB_BUFFER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct NTFS_VOLUME_DATA_BUFFER { - pub VolumeSerialNumber: LARGE_INTEGER, - pub NumberSectors: LARGE_INTEGER, - pub TotalClusters: LARGE_INTEGER, - pub FreeClusters: LARGE_INTEGER, - pub TotalReserved: LARGE_INTEGER, - pub BytesPerSector: DWORD, - pub BytesPerCluster: DWORD, - pub BytesPerFileRecordSegment: DWORD, - pub ClustersPerFileRecordSegment: DWORD, - pub MftValidDataLength: LARGE_INTEGER, - pub MftStartLcn: LARGE_INTEGER, - pub Mft2StartLcn: LARGE_INTEGER, - pub MftZoneStart: LARGE_INTEGER, - pub MftZoneEnd: LARGE_INTEGER, -} -pub type PNTFS_VOLUME_DATA_BUFFER = *mut NTFS_VOLUME_DATA_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NTFS_EXTENDED_VOLUME_DATA { - pub ByteCount: DWORD, - pub MajorVersion: WORD, - pub MinorVersion: WORD, - pub BytesPerPhysicalSector: DWORD, - pub LfsMajorVersion: WORD, - pub LfsMinorVersion: WORD, - pub MaxDeviceTrimExtentCount: DWORD, - pub MaxDeviceTrimByteCount: DWORD, - pub MaxVolumeTrimExtentCount: DWORD, - pub MaxVolumeTrimByteCount: DWORD, -} -pub type PNTFS_EXTENDED_VOLUME_DATA = *mut NTFS_EXTENDED_VOLUME_DATA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct REFS_VOLUME_DATA_BUFFER { - pub ByteCount: DWORD, - pub MajorVersion: DWORD, - pub MinorVersion: DWORD, - pub BytesPerPhysicalSector: DWORD, - pub VolumeSerialNumber: LARGE_INTEGER, - pub NumberSectors: LARGE_INTEGER, - pub TotalClusters: LARGE_INTEGER, - pub FreeClusters: LARGE_INTEGER, - pub TotalReserved: LARGE_INTEGER, - pub BytesPerSector: DWORD, - pub BytesPerCluster: DWORD, - pub MaximumSizeOfResidentFile: LARGE_INTEGER, - pub FastTierDataFillRatio: WORD, - pub SlowTierDataFillRatio: WORD, - pub DestagesFastTierToSlowTierRate: DWORD, - pub Reserved: [LARGE_INTEGER; 9usize], -} -pub type PREFS_VOLUME_DATA_BUFFER = *mut REFS_VOLUME_DATA_BUFFER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct STARTING_LCN_INPUT_BUFFER { - pub StartingLcn: LARGE_INTEGER, -} -pub type PSTARTING_LCN_INPUT_BUFFER = *mut STARTING_LCN_INPUT_BUFFER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct STARTING_LCN_INPUT_BUFFER_EX { - pub StartingLcn: LARGE_INTEGER, - pub Flags: DWORD, -} -pub type PSTARTING_LCN_INPUT_BUFFER_EX = *mut STARTING_LCN_INPUT_BUFFER_EX; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct VOLUME_BITMAP_BUFFER { - pub StartingLcn: LARGE_INTEGER, - pub BitmapSize: LARGE_INTEGER, - pub Buffer: [BYTE; 1usize], -} -pub type PVOLUME_BITMAP_BUFFER = *mut VOLUME_BITMAP_BUFFER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct STARTING_VCN_INPUT_BUFFER { - pub StartingVcn: LARGE_INTEGER, -} -pub type PSTARTING_VCN_INPUT_BUFFER = *mut STARTING_VCN_INPUT_BUFFER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct RETRIEVAL_POINTERS_BUFFER { - pub ExtentCount: DWORD, - pub StartingVcn: LARGE_INTEGER, - pub Extents: [RETRIEVAL_POINTERS_BUFFER__bindgen_ty_1; 1usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct RETRIEVAL_POINTERS_BUFFER__bindgen_ty_1 { - pub NextVcn: LARGE_INTEGER, - pub Lcn: LARGE_INTEGER, -} -pub type PRETRIEVAL_POINTERS_BUFFER = *mut RETRIEVAL_POINTERS_BUFFER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER { - pub ExtentCount: DWORD, - pub StartingVcn: LARGE_INTEGER, - pub Extents: [RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER__bindgen_ty_1; 1usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER__bindgen_ty_1 { - pub NextVcn: LARGE_INTEGER, - pub Lcn: LARGE_INTEGER, - pub ReferenceCount: DWORD, -} -pub type PRETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER = *mut RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RETRIEVAL_POINTER_COUNT { - pub ExtentCount: DWORD, -} -pub type PRETRIEVAL_POINTER_COUNT = *mut RETRIEVAL_POINTER_COUNT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct NTFS_FILE_RECORD_INPUT_BUFFER { - pub FileReferenceNumber: LARGE_INTEGER, -} -pub type PNTFS_FILE_RECORD_INPUT_BUFFER = *mut NTFS_FILE_RECORD_INPUT_BUFFER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct NTFS_FILE_RECORD_OUTPUT_BUFFER { - pub FileReferenceNumber: LARGE_INTEGER, - pub FileRecordLength: DWORD, - pub FileRecordBuffer: [BYTE; 1usize], -} -pub type PNTFS_FILE_RECORD_OUTPUT_BUFFER = *mut NTFS_FILE_RECORD_OUTPUT_BUFFER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct MOVE_FILE_DATA { - pub FileHandle: HANDLE, - pub StartingVcn: LARGE_INTEGER, - pub StartingLcn: LARGE_INTEGER, - pub ClusterCount: DWORD, -} -pub type PMOVE_FILE_DATA = *mut MOVE_FILE_DATA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct MOVE_FILE_RECORD_DATA { - pub FileHandle: HANDLE, - pub SourceFileRecord: LARGE_INTEGER, - pub TargetFileRecord: LARGE_INTEGER, -} -pub type PMOVE_FILE_RECORD_DATA = *mut MOVE_FILE_RECORD_DATA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _MOVE_FILE_DATA32 { - pub FileHandle: UINT32, - pub StartingVcn: LARGE_INTEGER, - pub StartingLcn: LARGE_INTEGER, - pub ClusterCount: DWORD, -} -pub type MOVE_FILE_DATA32 = _MOVE_FILE_DATA32; -pub type PMOVE_FILE_DATA32 = *mut _MOVE_FILE_DATA32; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FIND_BY_SID_DATA { - pub Restart: DWORD, - pub Sid: SID, -} -pub type PFIND_BY_SID_DATA = *mut FIND_BY_SID_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FIND_BY_SID_OUTPUT { - pub NextEntryOffset: DWORD, - pub FileIndex: DWORD, - pub FileNameLength: DWORD, - pub FileName: [WCHAR; 1usize], -} -pub type PFIND_BY_SID_OUTPUT = *mut FIND_BY_SID_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MFT_ENUM_DATA_V0 { - pub StartFileReferenceNumber: DWORDLONG, - pub LowUsn: USN, - pub HighUsn: USN, -} -pub type PMFT_ENUM_DATA_V0 = *mut MFT_ENUM_DATA_V0; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MFT_ENUM_DATA_V1 { - pub StartFileReferenceNumber: DWORDLONG, - pub LowUsn: USN, - pub HighUsn: USN, - pub MinMajorVersion: WORD, - pub MaxMajorVersion: WORD, -} -pub type PMFT_ENUM_DATA_V1 = *mut MFT_ENUM_DATA_V1; -pub type MFT_ENUM_DATA = MFT_ENUM_DATA_V1; -pub type PMFT_ENUM_DATA = *mut MFT_ENUM_DATA_V1; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CREATE_USN_JOURNAL_DATA { - pub MaximumSize: DWORDLONG, - pub AllocationDelta: DWORDLONG, -} -pub type PCREATE_USN_JOURNAL_DATA = *mut CREATE_USN_JOURNAL_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct READ_FILE_USN_DATA { - pub MinMajorVersion: WORD, - pub MaxMajorVersion: WORD, -} -pub type PREAD_FILE_USN_DATA = *mut READ_FILE_USN_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct READ_USN_JOURNAL_DATA_V0 { - pub StartUsn: USN, - pub ReasonMask: DWORD, - pub ReturnOnlyOnClose: DWORD, - pub Timeout: DWORDLONG, - pub BytesToWaitFor: DWORDLONG, - pub UsnJournalID: DWORDLONG, -} -pub type PREAD_USN_JOURNAL_DATA_V0 = *mut READ_USN_JOURNAL_DATA_V0; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct READ_USN_JOURNAL_DATA_V1 { - pub StartUsn: USN, - pub ReasonMask: DWORD, - pub ReturnOnlyOnClose: DWORD, - pub Timeout: DWORDLONG, - pub BytesToWaitFor: DWORDLONG, - pub UsnJournalID: DWORDLONG, - pub MinMajorVersion: WORD, - pub MaxMajorVersion: WORD, -} -pub type PREAD_USN_JOURNAL_DATA_V1 = *mut READ_USN_JOURNAL_DATA_V1; -pub type READ_USN_JOURNAL_DATA = READ_USN_JOURNAL_DATA_V1; -pub type PREAD_USN_JOURNAL_DATA = *mut READ_USN_JOURNAL_DATA_V1; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct USN_TRACK_MODIFIED_RANGES { - pub Flags: DWORD, - pub Unused: DWORD, - pub ChunkSize: DWORDLONG, - pub FileSizeThreshold: LONGLONG, -} -pub type PUSN_TRACK_MODIFIED_RANGES = *mut USN_TRACK_MODIFIED_RANGES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct USN_RANGE_TRACK_OUTPUT { - pub Usn: USN, -} -pub type PUSN_RANGE_TRACK_OUTPUT = *mut USN_RANGE_TRACK_OUTPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct USN_RECORD_V2 { - pub RecordLength: DWORD, - pub MajorVersion: WORD, - pub MinorVersion: WORD, - pub FileReferenceNumber: DWORDLONG, - pub ParentFileReferenceNumber: DWORDLONG, - pub Usn: USN, - pub TimeStamp: LARGE_INTEGER, - pub Reason: DWORD, - pub SourceInfo: DWORD, - pub SecurityId: DWORD, - pub FileAttributes: DWORD, - pub FileNameLength: WORD, - pub FileNameOffset: WORD, - pub FileName: [WCHAR; 1usize], -} -pub type PUSN_RECORD_V2 = *mut USN_RECORD_V2; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct USN_RECORD_V3 { - pub RecordLength: DWORD, - pub MajorVersion: WORD, - pub MinorVersion: WORD, - pub FileReferenceNumber: FILE_ID_128, - pub ParentFileReferenceNumber: FILE_ID_128, - pub Usn: USN, - pub TimeStamp: LARGE_INTEGER, - pub Reason: DWORD, - pub SourceInfo: DWORD, - pub SecurityId: DWORD, - pub FileAttributes: DWORD, - pub FileNameLength: WORD, - pub FileNameOffset: WORD, - pub FileName: [WCHAR; 1usize], -} -pub type PUSN_RECORD_V3 = *mut USN_RECORD_V3; -pub type USN_RECORD = USN_RECORD_V2; -pub type PUSN_RECORD = *mut USN_RECORD_V2; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct USN_RECORD_COMMON_HEADER { - pub RecordLength: DWORD, - pub MajorVersion: WORD, - pub MinorVersion: WORD, -} -pub type PUSN_RECORD_COMMON_HEADER = *mut USN_RECORD_COMMON_HEADER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct USN_RECORD_EXTENT { - pub Offset: LONGLONG, - pub Length: LONGLONG, -} -pub type PUSN_RECORD_EXTENT = *mut USN_RECORD_EXTENT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct USN_RECORD_V4 { - pub Header: USN_RECORD_COMMON_HEADER, - pub FileReferenceNumber: FILE_ID_128, - pub ParentFileReferenceNumber: FILE_ID_128, - pub Usn: USN, - pub Reason: DWORD, - pub SourceInfo: DWORD, - pub RemainingExtents: DWORD, - pub NumberOfExtents: WORD, - pub ExtentSize: WORD, - pub Extents: [USN_RECORD_EXTENT; 1usize], -} -pub type PUSN_RECORD_V4 = *mut USN_RECORD_V4; -#[repr(C)] -#[derive(Copy, Clone)] -pub union USN_RECORD_UNION { - pub Header: USN_RECORD_COMMON_HEADER, - pub V2: USN_RECORD_V2, - pub V3: USN_RECORD_V3, - pub V4: USN_RECORD_V4, -} -pub type PUSN_RECORD_UNION = *mut USN_RECORD_UNION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct USN_JOURNAL_DATA_V0 { - pub UsnJournalID: DWORDLONG, - pub FirstUsn: USN, - pub NextUsn: USN, - pub LowestValidUsn: USN, - pub MaxUsn: USN, - pub MaximumSize: DWORDLONG, - pub AllocationDelta: DWORDLONG, -} -pub type PUSN_JOURNAL_DATA_V0 = *mut USN_JOURNAL_DATA_V0; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct USN_JOURNAL_DATA_V1 { - pub UsnJournalID: DWORDLONG, - pub FirstUsn: USN, - pub NextUsn: USN, - pub LowestValidUsn: USN, - pub MaxUsn: USN, - pub MaximumSize: DWORDLONG, - pub AllocationDelta: DWORDLONG, - pub MinSupportedMajorVersion: WORD, - pub MaxSupportedMajorVersion: WORD, -} -pub type PUSN_JOURNAL_DATA_V1 = *mut USN_JOURNAL_DATA_V1; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct USN_JOURNAL_DATA_V2 { - pub UsnJournalID: DWORDLONG, - pub FirstUsn: USN, - pub NextUsn: USN, - pub LowestValidUsn: USN, - pub MaxUsn: USN, - pub MaximumSize: DWORDLONG, - pub AllocationDelta: DWORDLONG, - pub MinSupportedMajorVersion: WORD, - pub MaxSupportedMajorVersion: WORD, - pub Flags: DWORD, - pub RangeTrackChunkSize: DWORDLONG, - pub RangeTrackFileSizeThreshold: LONGLONG, -} -pub type PUSN_JOURNAL_DATA_V2 = *mut USN_JOURNAL_DATA_V2; -pub type USN_JOURNAL_DATA = USN_JOURNAL_DATA_V1; -pub type PUSN_JOURNAL_DATA = *mut USN_JOURNAL_DATA_V1; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DELETE_USN_JOURNAL_DATA { - pub UsnJournalID: DWORDLONG, - pub DeleteFlags: DWORD, -} -pub type PDELETE_USN_JOURNAL_DATA = *mut DELETE_USN_JOURNAL_DATA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _MARK_HANDLE_INFO { - pub __bindgen_anon_1: _MARK_HANDLE_INFO__bindgen_ty_1, - pub VolumeHandle: HANDLE, - pub HandleInfo: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _MARK_HANDLE_INFO__bindgen_ty_1 { - pub UsnSourceInfo: DWORD, - pub CopyNumber: DWORD, -} -pub type MARK_HANDLE_INFO = _MARK_HANDLE_INFO; -pub type PMARK_HANDLE_INFO = *mut _MARK_HANDLE_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _MARK_HANDLE_INFO32 { - pub __bindgen_anon_1: _MARK_HANDLE_INFO32__bindgen_ty_1, - pub VolumeHandle: UINT32, - pub HandleInfo: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _MARK_HANDLE_INFO32__bindgen_ty_1 { - pub UsnSourceInfo: DWORD, - pub CopyNumber: DWORD, -} -pub type MARK_HANDLE_INFO32 = _MARK_HANDLE_INFO32; -pub type PMARK_HANDLE_INFO32 = *mut _MARK_HANDLE_INFO32; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BULK_SECURITY_TEST_DATA { - pub DesiredAccess: ACCESS_MASK, - pub SecurityIds: [DWORD; 1usize], -} -pub type PBULK_SECURITY_TEST_DATA = *mut BULK_SECURITY_TEST_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_PREFETCH { - pub Type: DWORD, - pub Count: DWORD, - pub Prefetch: [DWORDLONG; 1usize], -} -pub type FILE_PREFETCH = _FILE_PREFETCH; -pub type PFILE_PREFETCH = *mut _FILE_PREFETCH; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_PREFETCH_EX { - pub Type: DWORD, - pub Count: DWORD, - pub Context: PVOID, - pub Prefetch: [DWORDLONG; 1usize], -} -pub type FILE_PREFETCH_EX = _FILE_PREFETCH_EX; -pub type PFILE_PREFETCH_EX = *mut _FILE_PREFETCH_EX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILESYSTEM_STATISTICS { - pub FileSystemType: WORD, - pub Version: WORD, - pub SizeOfCompleteStructure: DWORD, - pub UserFileReads: DWORD, - pub UserFileReadBytes: DWORD, - pub UserDiskReads: DWORD, - pub UserFileWrites: DWORD, - pub UserFileWriteBytes: DWORD, - pub UserDiskWrites: DWORD, - pub MetaDataReads: DWORD, - pub MetaDataReadBytes: DWORD, - pub MetaDataDiskReads: DWORD, - pub MetaDataWrites: DWORD, - pub MetaDataWriteBytes: DWORD, - pub MetaDataDiskWrites: DWORD, -} -pub type FILESYSTEM_STATISTICS = _FILESYSTEM_STATISTICS; -pub type PFILESYSTEM_STATISTICS = *mut _FILESYSTEM_STATISTICS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FAT_STATISTICS { - pub CreateHits: DWORD, - pub SuccessfulCreates: DWORD, - pub FailedCreates: DWORD, - pub NonCachedReads: DWORD, - pub NonCachedReadBytes: DWORD, - pub NonCachedWrites: DWORD, - pub NonCachedWriteBytes: DWORD, - pub NonCachedDiskReads: DWORD, - pub NonCachedDiskWrites: DWORD, -} -pub type FAT_STATISTICS = _FAT_STATISTICS; -pub type PFAT_STATISTICS = *mut _FAT_STATISTICS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EXFAT_STATISTICS { - pub CreateHits: DWORD, - pub SuccessfulCreates: DWORD, - pub FailedCreates: DWORD, - pub NonCachedReads: DWORD, - pub NonCachedReadBytes: DWORD, - pub NonCachedWrites: DWORD, - pub NonCachedWriteBytes: DWORD, - pub NonCachedDiskReads: DWORD, - pub NonCachedDiskWrites: DWORD, -} -pub type EXFAT_STATISTICS = _EXFAT_STATISTICS; -pub type PEXFAT_STATISTICS = *mut _EXFAT_STATISTICS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NTFS_STATISTICS { - pub LogFileFullExceptions: DWORD, - pub OtherExceptions: DWORD, - pub MftReads: DWORD, - pub MftReadBytes: DWORD, - pub MftWrites: DWORD, - pub MftWriteBytes: DWORD, - pub MftWritesUserLevel: _NTFS_STATISTICS__bindgen_ty_1, - pub MftWritesFlushForLogFileFull: WORD, - pub MftWritesLazyWriter: WORD, - pub MftWritesUserRequest: WORD, - pub Mft2Writes: DWORD, - pub Mft2WriteBytes: DWORD, - pub Mft2WritesUserLevel: _NTFS_STATISTICS__bindgen_ty_2, - pub Mft2WritesFlushForLogFileFull: WORD, - pub Mft2WritesLazyWriter: WORD, - pub Mft2WritesUserRequest: WORD, - pub RootIndexReads: DWORD, - pub RootIndexReadBytes: DWORD, - pub RootIndexWrites: DWORD, - pub RootIndexWriteBytes: DWORD, - pub BitmapReads: DWORD, - pub BitmapReadBytes: DWORD, - pub BitmapWrites: DWORD, - pub BitmapWriteBytes: DWORD, - pub BitmapWritesFlushForLogFileFull: WORD, - pub BitmapWritesLazyWriter: WORD, - pub BitmapWritesUserRequest: WORD, - pub BitmapWritesUserLevel: _NTFS_STATISTICS__bindgen_ty_3, - pub MftBitmapReads: DWORD, - pub MftBitmapReadBytes: DWORD, - pub MftBitmapWrites: DWORD, - pub MftBitmapWriteBytes: DWORD, - pub MftBitmapWritesFlushForLogFileFull: WORD, - pub MftBitmapWritesLazyWriter: WORD, - pub MftBitmapWritesUserRequest: WORD, - pub MftBitmapWritesUserLevel: _NTFS_STATISTICS__bindgen_ty_4, - pub UserIndexReads: DWORD, - pub UserIndexReadBytes: DWORD, - pub UserIndexWrites: DWORD, - pub UserIndexWriteBytes: DWORD, - pub LogFileReads: DWORD, - pub LogFileReadBytes: DWORD, - pub LogFileWrites: DWORD, - pub LogFileWriteBytes: DWORD, - pub Allocate: _NTFS_STATISTICS__bindgen_ty_5, - pub DiskResourcesExhausted: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NTFS_STATISTICS__bindgen_ty_1 { - pub Write: WORD, - pub Create: WORD, - pub SetInfo: WORD, - pub Flush: WORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NTFS_STATISTICS__bindgen_ty_2 { - pub Write: WORD, - pub Create: WORD, - pub SetInfo: WORD, - pub Flush: WORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NTFS_STATISTICS__bindgen_ty_3 { - pub Write: WORD, - pub Create: WORD, - pub SetInfo: WORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NTFS_STATISTICS__bindgen_ty_4 { - pub Write: WORD, - pub Create: WORD, - pub SetInfo: WORD, - pub Flush: WORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NTFS_STATISTICS__bindgen_ty_5 { - pub Calls: DWORD, - pub Clusters: DWORD, - pub Hints: DWORD, - pub RunsReturned: DWORD, - pub HintsHonored: DWORD, - pub HintsClusters: DWORD, - pub Cache: DWORD, - pub CacheClusters: DWORD, - pub CacheMiss: DWORD, - pub CacheMissClusters: DWORD, -} -pub type NTFS_STATISTICS = _NTFS_STATISTICS; -pub type PNTFS_STATISTICS = *mut _NTFS_STATISTICS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILESYSTEM_STATISTICS_EX { - pub FileSystemType: WORD, - pub Version: WORD, - pub SizeOfCompleteStructure: DWORD, - pub UserFileReads: DWORDLONG, - pub UserFileReadBytes: DWORDLONG, - pub UserDiskReads: DWORDLONG, - pub UserFileWrites: DWORDLONG, - pub UserFileWriteBytes: DWORDLONG, - pub UserDiskWrites: DWORDLONG, - pub MetaDataReads: DWORDLONG, - pub MetaDataReadBytes: DWORDLONG, - pub MetaDataDiskReads: DWORDLONG, - pub MetaDataWrites: DWORDLONG, - pub MetaDataWriteBytes: DWORDLONG, - pub MetaDataDiskWrites: DWORDLONG, -} -pub type FILESYSTEM_STATISTICS_EX = _FILESYSTEM_STATISTICS_EX; -pub type PFILESYSTEM_STATISTICS_EX = *mut _FILESYSTEM_STATISTICS_EX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NTFS_STATISTICS_EX { - pub LogFileFullExceptions: DWORD, - pub OtherExceptions: DWORD, - pub MftReads: DWORDLONG, - pub MftReadBytes: DWORDLONG, - pub MftWrites: DWORDLONG, - pub MftWriteBytes: DWORDLONG, - pub MftWritesUserLevel: _NTFS_STATISTICS_EX__bindgen_ty_1, - pub MftWritesFlushForLogFileFull: DWORD, - pub MftWritesLazyWriter: DWORD, - pub MftWritesUserRequest: DWORD, - pub Mft2Writes: DWORDLONG, - pub Mft2WriteBytes: DWORDLONG, - pub Mft2WritesUserLevel: _NTFS_STATISTICS_EX__bindgen_ty_2, - pub Mft2WritesFlushForLogFileFull: DWORD, - pub Mft2WritesLazyWriter: DWORD, - pub Mft2WritesUserRequest: DWORD, - pub RootIndexReads: DWORDLONG, - pub RootIndexReadBytes: DWORDLONG, - pub RootIndexWrites: DWORDLONG, - pub RootIndexWriteBytes: DWORDLONG, - pub BitmapReads: DWORDLONG, - pub BitmapReadBytes: DWORDLONG, - pub BitmapWrites: DWORDLONG, - pub BitmapWriteBytes: DWORDLONG, - pub BitmapWritesFlushForLogFileFull: DWORD, - pub BitmapWritesLazyWriter: DWORD, - pub BitmapWritesUserRequest: DWORD, - pub BitmapWritesUserLevel: _NTFS_STATISTICS_EX__bindgen_ty_3, - pub MftBitmapReads: DWORDLONG, - pub MftBitmapReadBytes: DWORDLONG, - pub MftBitmapWrites: DWORDLONG, - pub MftBitmapWriteBytes: DWORDLONG, - pub MftBitmapWritesFlushForLogFileFull: DWORD, - pub MftBitmapWritesLazyWriter: DWORD, - pub MftBitmapWritesUserRequest: DWORD, - pub MftBitmapWritesUserLevel: _NTFS_STATISTICS_EX__bindgen_ty_4, - pub UserIndexReads: DWORDLONG, - pub UserIndexReadBytes: DWORDLONG, - pub UserIndexWrites: DWORDLONG, - pub UserIndexWriteBytes: DWORDLONG, - pub LogFileReads: DWORDLONG, - pub LogFileReadBytes: DWORDLONG, - pub LogFileWrites: DWORDLONG, - pub LogFileWriteBytes: DWORDLONG, - pub Allocate: _NTFS_STATISTICS_EX__bindgen_ty_5, - pub DiskResourcesExhausted: DWORD, - pub VolumeTrimCount: DWORDLONG, - pub VolumeTrimTime: DWORDLONG, - pub VolumeTrimByteCount: DWORDLONG, - pub FileLevelTrimCount: DWORDLONG, - pub FileLevelTrimTime: DWORDLONG, - pub FileLevelTrimByteCount: DWORDLONG, - pub VolumeTrimSkippedCount: DWORDLONG, - pub VolumeTrimSkippedByteCount: DWORDLONG, - pub NtfsFillStatInfoFromMftRecordCalledCount: DWORDLONG, - pub NtfsFillStatInfoFromMftRecordBailedBecauseOfAttributeListCount: DWORDLONG, - pub NtfsFillStatInfoFromMftRecordBailedBecauseOfNonResReparsePointCount: DWORDLONG, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NTFS_STATISTICS_EX__bindgen_ty_1 { - pub Write: DWORD, - pub Create: DWORD, - pub SetInfo: DWORD, - pub Flush: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NTFS_STATISTICS_EX__bindgen_ty_2 { - pub Write: DWORD, - pub Create: DWORD, - pub SetInfo: DWORD, - pub Flush: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NTFS_STATISTICS_EX__bindgen_ty_3 { - pub Write: DWORD, - pub Create: DWORD, - pub SetInfo: DWORD, - pub Flush: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NTFS_STATISTICS_EX__bindgen_ty_4 { - pub Write: DWORD, - pub Create: DWORD, - pub SetInfo: DWORD, - pub Flush: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _NTFS_STATISTICS_EX__bindgen_ty_5 { - pub Calls: DWORD, - pub RunsReturned: DWORD, - pub Hints: DWORD, - pub HintsHonored: DWORD, - pub Cache: DWORD, - pub CacheMiss: DWORD, - pub Clusters: DWORDLONG, - pub HintsClusters: DWORDLONG, - pub CacheClusters: DWORDLONG, - pub CacheMissClusters: DWORDLONG, -} -pub type NTFS_STATISTICS_EX = _NTFS_STATISTICS_EX; -pub type PNTFS_STATISTICS_EX = *mut _NTFS_STATISTICS_EX; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_OBJECTID_BUFFER { - pub ObjectId: [BYTE; 16usize], - pub __bindgen_anon_1: _FILE_OBJECTID_BUFFER__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _FILE_OBJECTID_BUFFER__bindgen_ty_1 { - pub __bindgen_anon_1: _FILE_OBJECTID_BUFFER__bindgen_ty_1__bindgen_ty_1, - pub ExtendedInfo: [BYTE; 48usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_OBJECTID_BUFFER__bindgen_ty_1__bindgen_ty_1 { - pub BirthVolumeId: [BYTE; 16usize], - pub BirthObjectId: [BYTE; 16usize], - pub DomainId: [BYTE; 16usize], -} -pub type FILE_OBJECTID_BUFFER = _FILE_OBJECTID_BUFFER; -pub type PFILE_OBJECTID_BUFFER = *mut _FILE_OBJECTID_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_SET_SPARSE_BUFFER { - pub SetSparse: BOOLEAN, -} -pub type FILE_SET_SPARSE_BUFFER = _FILE_SET_SPARSE_BUFFER; -pub type PFILE_SET_SPARSE_BUFFER = *mut _FILE_SET_SPARSE_BUFFER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_ZERO_DATA_INFORMATION { - pub FileOffset: LARGE_INTEGER, - pub BeyondFinalZero: LARGE_INTEGER, -} -pub type FILE_ZERO_DATA_INFORMATION = _FILE_ZERO_DATA_INFORMATION; -pub type PFILE_ZERO_DATA_INFORMATION = *mut _FILE_ZERO_DATA_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_ZERO_DATA_INFORMATION_EX { - pub FileOffset: LARGE_INTEGER, - pub BeyondFinalZero: LARGE_INTEGER, - pub Flags: DWORD, -} -pub type FILE_ZERO_DATA_INFORMATION_EX = _FILE_ZERO_DATA_INFORMATION_EX; -pub type PFILE_ZERO_DATA_INFORMATION_EX = *mut _FILE_ZERO_DATA_INFORMATION_EX; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_ALLOCATED_RANGE_BUFFER { - pub FileOffset: LARGE_INTEGER, - pub Length: LARGE_INTEGER, -} -pub type FILE_ALLOCATED_RANGE_BUFFER = _FILE_ALLOCATED_RANGE_BUFFER; -pub type PFILE_ALLOCATED_RANGE_BUFFER = *mut _FILE_ALLOCATED_RANGE_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCRYPTION_BUFFER { - pub EncryptionOperation: DWORD, - pub Private: [BYTE; 1usize], -} -pub type ENCRYPTION_BUFFER = _ENCRYPTION_BUFFER; -pub type PENCRYPTION_BUFFER = *mut _ENCRYPTION_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DECRYPTION_STATUS_BUFFER { - pub NoEncryptedStreams: BOOLEAN, -} -pub type DECRYPTION_STATUS_BUFFER = _DECRYPTION_STATUS_BUFFER; -pub type PDECRYPTION_STATUS_BUFFER = *mut _DECRYPTION_STATUS_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REQUEST_RAW_ENCRYPTED_DATA { - pub FileOffset: LONGLONG, - pub Length: DWORD, -} -pub type REQUEST_RAW_ENCRYPTED_DATA = _REQUEST_RAW_ENCRYPTED_DATA; -pub type PREQUEST_RAW_ENCRYPTED_DATA = *mut _REQUEST_RAW_ENCRYPTED_DATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCRYPTED_DATA_INFO { - pub StartingFileOffset: DWORDLONG, - pub OutputBufferOffset: DWORD, - pub BytesWithinFileSize: DWORD, - pub BytesWithinValidDataLength: DWORD, - pub CompressionFormat: WORD, - pub DataUnitShift: BYTE, - pub ChunkShift: BYTE, - pub ClusterShift: BYTE, - pub EncryptionFormat: BYTE, - pub NumberOfDataBlocks: WORD, - pub DataBlockSize: [DWORD; 1usize], -} -pub type ENCRYPTED_DATA_INFO = _ENCRYPTED_DATA_INFO; -pub type PENCRYPTED_DATA_INFO = *mut _ENCRYPTED_DATA_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _EXTENDED_ENCRYPTED_DATA_INFO { - pub ExtendedCode: DWORD, - pub Length: DWORD, - pub Flags: DWORD, - pub Reserved: DWORD, -} -pub type EXTENDED_ENCRYPTED_DATA_INFO = _EXTENDED_ENCRYPTED_DATA_INFO; -pub type PEXTENDED_ENCRYPTED_DATA_INFO = *mut _EXTENDED_ENCRYPTED_DATA_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PLEX_READ_DATA_REQUEST { - pub ByteOffset: LARGE_INTEGER, - pub ByteLength: DWORD, - pub PlexNumber: DWORD, -} -pub type PLEX_READ_DATA_REQUEST = _PLEX_READ_DATA_REQUEST; -pub type PPLEX_READ_DATA_REQUEST = *mut _PLEX_READ_DATA_REQUEST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SI_COPYFILE { - pub SourceFileNameLength: DWORD, - pub DestinationFileNameLength: DWORD, - pub Flags: DWORD, - pub FileNameBuffer: [WCHAR; 1usize], -} -pub type SI_COPYFILE = _SI_COPYFILE; -pub type PSI_COPYFILE = *mut _SI_COPYFILE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_MAKE_COMPATIBLE_BUFFER { - pub CloseDisc: BOOLEAN, -} -pub type FILE_MAKE_COMPATIBLE_BUFFER = _FILE_MAKE_COMPATIBLE_BUFFER; -pub type PFILE_MAKE_COMPATIBLE_BUFFER = *mut _FILE_MAKE_COMPATIBLE_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_SET_DEFECT_MGMT_BUFFER { - pub Disable: BOOLEAN, -} -pub type FILE_SET_DEFECT_MGMT_BUFFER = _FILE_SET_DEFECT_MGMT_BUFFER; -pub type PFILE_SET_DEFECT_MGMT_BUFFER = *mut _FILE_SET_DEFECT_MGMT_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_QUERY_SPARING_BUFFER { - pub SparingUnitBytes: DWORD, - pub SoftwareSparing: BOOLEAN, - pub TotalSpareBlocks: DWORD, - pub FreeSpareBlocks: DWORD, -} -pub type FILE_QUERY_SPARING_BUFFER = _FILE_QUERY_SPARING_BUFFER; -pub type PFILE_QUERY_SPARING_BUFFER = *mut _FILE_QUERY_SPARING_BUFFER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_QUERY_ON_DISK_VOL_INFO_BUFFER { - pub DirectoryCount: LARGE_INTEGER, - pub FileCount: LARGE_INTEGER, - pub FsFormatMajVersion: WORD, - pub FsFormatMinVersion: WORD, - pub FsFormatName: [WCHAR; 12usize], - pub FormatTime: LARGE_INTEGER, - pub LastUpdateTime: LARGE_INTEGER, - pub CopyrightInfo: [WCHAR; 34usize], - pub AbstractInfo: [WCHAR; 34usize], - pub FormattingImplementationInfo: [WCHAR; 34usize], - pub LastModifyingImplementationInfo: [WCHAR; 34usize], -} -pub type FILE_QUERY_ON_DISK_VOL_INFO_BUFFER = _FILE_QUERY_ON_DISK_VOL_INFO_BUFFER; -pub type PFILE_QUERY_ON_DISK_VOL_INFO_BUFFER = *mut _FILE_QUERY_ON_DISK_VOL_INFO_BUFFER; -pub type CLSN = DWORDLONG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_INITIATE_REPAIR_OUTPUT_BUFFER { - pub Hint1: DWORDLONG, - pub Hint2: DWORDLONG, - pub Clsn: CLSN, - pub Status: DWORD, -} -pub type FILE_INITIATE_REPAIR_OUTPUT_BUFFER = _FILE_INITIATE_REPAIR_OUTPUT_BUFFER; -pub type PFILE_INITIATE_REPAIR_OUTPUT_BUFFER = *mut _FILE_INITIATE_REPAIR_OUTPUT_BUFFER; -pub const _SHRINK_VOLUME_REQUEST_TYPES_ShrinkPrepare: _SHRINK_VOLUME_REQUEST_TYPES = 1; -pub const _SHRINK_VOLUME_REQUEST_TYPES_ShrinkCommit: _SHRINK_VOLUME_REQUEST_TYPES = 2; -pub const _SHRINK_VOLUME_REQUEST_TYPES_ShrinkAbort: _SHRINK_VOLUME_REQUEST_TYPES = 3; -pub type _SHRINK_VOLUME_REQUEST_TYPES = ::std::os::raw::c_int; -pub use self::_SHRINK_VOLUME_REQUEST_TYPES as SHRINK_VOLUME_REQUEST_TYPES; -pub type PSHRINK_VOLUME_REQUEST_TYPES = *mut _SHRINK_VOLUME_REQUEST_TYPES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SHRINK_VOLUME_INFORMATION { - pub ShrinkRequestType: SHRINK_VOLUME_REQUEST_TYPES, - pub Flags: DWORDLONG, - pub NewNumberOfSectors: LONGLONG, -} -pub type SHRINK_VOLUME_INFORMATION = _SHRINK_VOLUME_INFORMATION; -pub type PSHRINK_VOLUME_INFORMATION = *mut _SHRINK_VOLUME_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TXFS_MODIFY_RM { - pub Flags: DWORD, - pub LogContainerCountMax: DWORD, - pub LogContainerCountMin: DWORD, - pub LogContainerCount: DWORD, - pub LogGrowthIncrement: DWORD, - pub LogAutoShrinkPercentage: DWORD, - pub Reserved: DWORDLONG, - pub LoggingMode: WORD, -} -pub type TXFS_MODIFY_RM = _TXFS_MODIFY_RM; -pub type PTXFS_MODIFY_RM = *mut _TXFS_MODIFY_RM; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _TXFS_QUERY_RM_INFORMATION { - pub BytesRequired: DWORD, - pub TailLsn: DWORDLONG, - pub CurrentLsn: DWORDLONG, - pub ArchiveTailLsn: DWORDLONG, - pub LogContainerSize: DWORDLONG, - pub HighestVirtualClock: LARGE_INTEGER, - pub LogContainerCount: DWORD, - pub LogContainerCountMax: DWORD, - pub LogContainerCountMin: DWORD, - pub LogGrowthIncrement: DWORD, - pub LogAutoShrinkPercentage: DWORD, - pub Flags: DWORD, - pub LoggingMode: WORD, - pub Reserved: WORD, - pub RmState: DWORD, - pub LogCapacity: DWORDLONG, - pub LogFree: DWORDLONG, - pub TopsSize: DWORDLONG, - pub TopsUsed: DWORDLONG, - pub TransactionCount: DWORDLONG, - pub OnePCCount: DWORDLONG, - pub TwoPCCount: DWORDLONG, - pub NumberLogFileFull: DWORDLONG, - pub OldestTransactionAge: DWORDLONG, - pub RMName: GUID, - pub TmLogPathOffset: DWORD, -} -pub type TXFS_QUERY_RM_INFORMATION = _TXFS_QUERY_RM_INFORMATION; -pub type PTXFS_QUERY_RM_INFORMATION = *mut _TXFS_QUERY_RM_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _TXFS_ROLLFORWARD_REDO_INFORMATION { - pub LastVirtualClock: LARGE_INTEGER, - pub LastRedoLsn: DWORDLONG, - pub HighestRecoveryLsn: DWORDLONG, - pub Flags: DWORD, -} -pub type TXFS_ROLLFORWARD_REDO_INFORMATION = _TXFS_ROLLFORWARD_REDO_INFORMATION; -pub type PTXFS_ROLLFORWARD_REDO_INFORMATION = *mut _TXFS_ROLLFORWARD_REDO_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TXFS_START_RM_INFORMATION { - pub Flags: DWORD, - pub LogContainerSize: DWORDLONG, - pub LogContainerCountMin: DWORD, - pub LogContainerCountMax: DWORD, - pub LogGrowthIncrement: DWORD, - pub LogAutoShrinkPercentage: DWORD, - pub TmLogPathOffset: DWORD, - pub TmLogPathLength: WORD, - pub LoggingMode: WORD, - pub LogPathLength: WORD, - pub Reserved: WORD, - pub LogPath: [WCHAR; 1usize], -} -pub type TXFS_START_RM_INFORMATION = _TXFS_START_RM_INFORMATION; -pub type PTXFS_START_RM_INFORMATION = *mut _TXFS_START_RM_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TXFS_GET_METADATA_INFO_OUT { - pub TxfFileId: _TXFS_GET_METADATA_INFO_OUT__bindgen_ty_1, - pub LockingTransaction: GUID, - pub LastLsn: DWORDLONG, - pub TransactionState: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TXFS_GET_METADATA_INFO_OUT__bindgen_ty_1 { - pub LowPart: LONGLONG, - pub HighPart: LONGLONG, -} -pub type TXFS_GET_METADATA_INFO_OUT = _TXFS_GET_METADATA_INFO_OUT; -pub type PTXFS_GET_METADATA_INFO_OUT = *mut _TXFS_GET_METADATA_INFO_OUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY { - pub Offset: DWORDLONG, - pub NameFlags: DWORD, - pub FileId: LONGLONG, - pub Reserved1: DWORD, - pub Reserved2: DWORD, - pub Reserved3: LONGLONG, - pub FileName: [WCHAR; 1usize], -} -pub type TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY = _TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY; -pub type PTXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY = *mut _TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TXFS_LIST_TRANSACTION_LOCKED_FILES { - pub KtmTransaction: GUID, - pub NumberOfFiles: DWORDLONG, - pub BufferSizeRequired: DWORDLONG, - pub Offset: DWORDLONG, -} -pub type TXFS_LIST_TRANSACTION_LOCKED_FILES = _TXFS_LIST_TRANSACTION_LOCKED_FILES; -pub type PTXFS_LIST_TRANSACTION_LOCKED_FILES = *mut _TXFS_LIST_TRANSACTION_LOCKED_FILES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TXFS_LIST_TRANSACTIONS_ENTRY { - pub TransactionId: GUID, - pub TransactionState: DWORD, - pub Reserved1: DWORD, - pub Reserved2: DWORD, - pub Reserved3: LONGLONG, -} -pub type TXFS_LIST_TRANSACTIONS_ENTRY = _TXFS_LIST_TRANSACTIONS_ENTRY; -pub type PTXFS_LIST_TRANSACTIONS_ENTRY = *mut _TXFS_LIST_TRANSACTIONS_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TXFS_LIST_TRANSACTIONS { - pub NumberOfTransactions: DWORDLONG, - pub BufferSizeRequired: DWORDLONG, -} -pub type TXFS_LIST_TRANSACTIONS = _TXFS_LIST_TRANSACTIONS; -pub type PTXFS_LIST_TRANSACTIONS = *mut _TXFS_LIST_TRANSACTIONS; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _TXFS_READ_BACKUP_INFORMATION_OUT { - pub __bindgen_anon_1: _TXFS_READ_BACKUP_INFORMATION_OUT__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _TXFS_READ_BACKUP_INFORMATION_OUT__bindgen_ty_1 { - pub BufferLength: DWORD, - pub Buffer: [BYTE; 1usize], -} -pub type TXFS_READ_BACKUP_INFORMATION_OUT = _TXFS_READ_BACKUP_INFORMATION_OUT; -pub type PTXFS_READ_BACKUP_INFORMATION_OUT = *mut _TXFS_READ_BACKUP_INFORMATION_OUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TXFS_WRITE_BACKUP_INFORMATION { - pub Buffer: [BYTE; 1usize], -} -pub type TXFS_WRITE_BACKUP_INFORMATION = _TXFS_WRITE_BACKUP_INFORMATION; -pub type PTXFS_WRITE_BACKUP_INFORMATION = *mut _TXFS_WRITE_BACKUP_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TXFS_GET_TRANSACTED_VERSION { - pub ThisBaseVersion: DWORD, - pub LatestVersion: DWORD, - pub ThisMiniVersion: WORD, - pub FirstMiniVersion: WORD, - pub LatestMiniVersion: WORD, -} -pub type TXFS_GET_TRANSACTED_VERSION = _TXFS_GET_TRANSACTED_VERSION; -pub type PTXFS_GET_TRANSACTED_VERSION = *mut _TXFS_GET_TRANSACTED_VERSION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TXFS_SAVEPOINT_INFORMATION { - pub KtmTransaction: HANDLE, - pub ActionCode: DWORD, - pub SavepointId: DWORD, -} -pub type TXFS_SAVEPOINT_INFORMATION = _TXFS_SAVEPOINT_INFORMATION; -pub type PTXFS_SAVEPOINT_INFORMATION = *mut _TXFS_SAVEPOINT_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TXFS_CREATE_MINIVERSION_INFO { - pub StructureVersion: WORD, - pub StructureLength: WORD, - pub BaseVersion: DWORD, - pub MiniVersion: WORD, -} -pub type TXFS_CREATE_MINIVERSION_INFO = _TXFS_CREATE_MINIVERSION_INFO; -pub type PTXFS_CREATE_MINIVERSION_INFO = *mut _TXFS_CREATE_MINIVERSION_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _TXFS_TRANSACTION_ACTIVE_INFO { - pub TransactionsActiveAtSnapshot: BOOLEAN, -} -pub type TXFS_TRANSACTION_ACTIVE_INFO = _TXFS_TRANSACTION_ACTIVE_INFO; -pub type PTXFS_TRANSACTION_ACTIVE_INFO = *mut _TXFS_TRANSACTION_ACTIVE_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _BOOT_AREA_INFO { - pub BootSectorCount: DWORD, - pub BootSectors: [_BOOT_AREA_INFO__bindgen_ty_1; 2usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _BOOT_AREA_INFO__bindgen_ty_1 { - pub Offset: LARGE_INTEGER, -} -pub type BOOT_AREA_INFO = _BOOT_AREA_INFO; -pub type PBOOT_AREA_INFO = *mut _BOOT_AREA_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _RETRIEVAL_POINTER_BASE { - pub FileAreaOffset: LARGE_INTEGER, -} -pub type RETRIEVAL_POINTER_BASE = _RETRIEVAL_POINTER_BASE; -pub type PRETRIEVAL_POINTER_BASE = *mut _RETRIEVAL_POINTER_BASE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_FS_PERSISTENT_VOLUME_INFORMATION { - pub VolumeFlags: DWORD, - pub FlagMask: DWORD, - pub Version: DWORD, - pub Reserved: DWORD, -} -pub type FILE_FS_PERSISTENT_VOLUME_INFORMATION = _FILE_FS_PERSISTENT_VOLUME_INFORMATION; -pub type PFILE_FS_PERSISTENT_VOLUME_INFORMATION = *mut _FILE_FS_PERSISTENT_VOLUME_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_SYSTEM_RECOGNITION_INFORMATION { - pub FileSystem: [CHAR; 9usize], -} -pub type FILE_SYSTEM_RECOGNITION_INFORMATION = _FILE_SYSTEM_RECOGNITION_INFORMATION; -pub type PFILE_SYSTEM_RECOGNITION_INFORMATION = *mut _FILE_SYSTEM_RECOGNITION_INFORMATION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REQUEST_OPLOCK_INPUT_BUFFER { - pub StructureVersion: WORD, - pub StructureLength: WORD, - pub RequestedOplockLevel: DWORD, - pub Flags: DWORD, -} -pub type REQUEST_OPLOCK_INPUT_BUFFER = _REQUEST_OPLOCK_INPUT_BUFFER; -pub type PREQUEST_OPLOCK_INPUT_BUFFER = *mut _REQUEST_OPLOCK_INPUT_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REQUEST_OPLOCK_OUTPUT_BUFFER { - pub StructureVersion: WORD, - pub StructureLength: WORD, - pub OriginalOplockLevel: DWORD, - pub NewOplockLevel: DWORD, - pub Flags: DWORD, - pub AccessMode: ACCESS_MASK, - pub ShareMode: WORD, -} -pub type REQUEST_OPLOCK_OUTPUT_BUFFER = _REQUEST_OPLOCK_OUTPUT_BUFFER; -pub type PREQUEST_OPLOCK_OUTPUT_BUFFER = *mut _REQUEST_OPLOCK_OUTPUT_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _VIRTUAL_STORAGE_TYPE { - pub DeviceId: DWORD, - pub VendorId: GUID, -} -pub type VIRTUAL_STORAGE_TYPE = _VIRTUAL_STORAGE_TYPE; -pub type PVIRTUAL_STORAGE_TYPE = *mut _VIRTUAL_STORAGE_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_QUERY_DEPENDENT_VOLUME_REQUEST { - pub RequestLevel: DWORD, - pub RequestFlags: DWORD, -} -pub type STORAGE_QUERY_DEPENDENT_VOLUME_REQUEST = _STORAGE_QUERY_DEPENDENT_VOLUME_REQUEST; -pub type PSTORAGE_QUERY_DEPENDENT_VOLUME_REQUEST = *mut _STORAGE_QUERY_DEPENDENT_VOLUME_REQUEST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY { - pub EntryLength: DWORD, - pub DependencyTypeFlags: DWORD, - pub ProviderSpecificFlags: DWORD, - pub VirtualStorageType: VIRTUAL_STORAGE_TYPE, -} -pub type STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY = _STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY; -pub type PSTORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY = - *mut _STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY { - pub EntryLength: DWORD, - pub DependencyTypeFlags: DWORD, - pub ProviderSpecificFlags: DWORD, - pub VirtualStorageType: VIRTUAL_STORAGE_TYPE, - pub AncestorLevel: DWORD, - pub HostVolumeNameOffset: DWORD, - pub HostVolumeNameSize: DWORD, - pub DependentVolumeNameOffset: DWORD, - pub DependentVolumeNameSize: DWORD, - pub RelativePathOffset: DWORD, - pub RelativePathSize: DWORD, - pub DependentDeviceNameOffset: DWORD, - pub DependentDeviceNameSize: DWORD, -} -pub type STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY = _STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY; -pub type PSTORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY = - *mut _STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY; -#[repr(C)] -pub struct _STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE { - pub ResponseLevel: DWORD, - pub NumberEntries: DWORD, - pub __bindgen_anon_1: _STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE__bindgen_ty_1, -} -#[repr(C)] -pub struct _STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE__bindgen_ty_1 { - pub Lev1Depends: __BindgenUnionField<[STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY; 0usize]>, - pub Lev2Depends: __BindgenUnionField<[STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY; 0usize]>, - pub bindgen_union_field: u32, -} -pub type STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE = _STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE; -pub type PSTORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE = *mut _STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SD_CHANGE_MACHINE_SID_INPUT { - pub CurrentMachineSIDOffset: WORD, - pub CurrentMachineSIDLength: WORD, - pub NewMachineSIDOffset: WORD, - pub NewMachineSIDLength: WORD, -} -pub type SD_CHANGE_MACHINE_SID_INPUT = _SD_CHANGE_MACHINE_SID_INPUT; -pub type PSD_CHANGE_MACHINE_SID_INPUT = *mut _SD_CHANGE_MACHINE_SID_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SD_CHANGE_MACHINE_SID_OUTPUT { - pub NumSDChangedSuccess: DWORDLONG, - pub NumSDChangedFail: DWORDLONG, - pub NumSDUnused: DWORDLONG, - pub NumSDTotal: DWORDLONG, - pub NumMftSDChangedSuccess: DWORDLONG, - pub NumMftSDChangedFail: DWORDLONG, - pub NumMftSDTotal: DWORDLONG, -} -pub type SD_CHANGE_MACHINE_SID_OUTPUT = _SD_CHANGE_MACHINE_SID_OUTPUT; -pub type PSD_CHANGE_MACHINE_SID_OUTPUT = *mut _SD_CHANGE_MACHINE_SID_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SD_QUERY_STATS_INPUT { - pub Reserved: DWORD, -} -pub type SD_QUERY_STATS_INPUT = _SD_QUERY_STATS_INPUT; -pub type PSD_QUERY_STATS_INPUT = *mut _SD_QUERY_STATS_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SD_QUERY_STATS_OUTPUT { - pub SdsStreamSize: DWORDLONG, - pub SdsAllocationSize: DWORDLONG, - pub SiiStreamSize: DWORDLONG, - pub SiiAllocationSize: DWORDLONG, - pub SdhStreamSize: DWORDLONG, - pub SdhAllocationSize: DWORDLONG, - pub NumSDTotal: DWORDLONG, - pub NumSDUnused: DWORDLONG, -} -pub type SD_QUERY_STATS_OUTPUT = _SD_QUERY_STATS_OUTPUT; -pub type PSD_QUERY_STATS_OUTPUT = *mut _SD_QUERY_STATS_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SD_ENUM_SDS_INPUT { - pub StartingOffset: DWORDLONG, - pub MaxSDEntriesToReturn: DWORDLONG, -} -pub type SD_ENUM_SDS_INPUT = _SD_ENUM_SDS_INPUT; -pub type PSD_ENUM_SDS_INPUT = *mut _SD_ENUM_SDS_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SD_ENUM_SDS_ENTRY { - pub Hash: DWORD, - pub SecurityId: DWORD, - pub Offset: DWORDLONG, - pub Length: DWORD, - pub Descriptor: [BYTE; 1usize], -} -pub type SD_ENUM_SDS_ENTRY = _SD_ENUM_SDS_ENTRY; -pub type PSD_ENUM_SDS_ENTRY = *mut _SD_ENUM_SDS_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SD_ENUM_SDS_OUTPUT { - pub NextOffset: DWORDLONG, - pub NumSDEntriesReturned: DWORDLONG, - pub NumSDBytesReturned: DWORDLONG, - pub SDEntry: [SD_ENUM_SDS_ENTRY; 1usize], -} -pub type SD_ENUM_SDS_OUTPUT = _SD_ENUM_SDS_OUTPUT; -pub type PSD_ENUM_SDS_OUTPUT = *mut _SD_ENUM_SDS_OUTPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _SD_GLOBAL_CHANGE_INPUT { - pub Flags: DWORD, - pub ChangeType: DWORD, - pub __bindgen_anon_1: _SD_GLOBAL_CHANGE_INPUT__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SD_GLOBAL_CHANGE_INPUT__bindgen_ty_1 { - pub SdChange: SD_CHANGE_MACHINE_SID_INPUT, - pub SdQueryStats: SD_QUERY_STATS_INPUT, - pub SdEnumSds: SD_ENUM_SDS_INPUT, -} -pub type SD_GLOBAL_CHANGE_INPUT = _SD_GLOBAL_CHANGE_INPUT; -pub type PSD_GLOBAL_CHANGE_INPUT = *mut _SD_GLOBAL_CHANGE_INPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _SD_GLOBAL_CHANGE_OUTPUT { - pub Flags: DWORD, - pub ChangeType: DWORD, - pub __bindgen_anon_1: _SD_GLOBAL_CHANGE_OUTPUT__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SD_GLOBAL_CHANGE_OUTPUT__bindgen_ty_1 { - pub SdChange: SD_CHANGE_MACHINE_SID_OUTPUT, - pub SdQueryStats: SD_QUERY_STATS_OUTPUT, - pub SdEnumSds: SD_ENUM_SDS_OUTPUT, -} -pub type SD_GLOBAL_CHANGE_OUTPUT = _SD_GLOBAL_CHANGE_OUTPUT; -pub type PSD_GLOBAL_CHANGE_OUTPUT = *mut _SD_GLOBAL_CHANGE_OUTPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _LOOKUP_STREAM_FROM_CLUSTER_INPUT { - pub Flags: DWORD, - pub NumberOfClusters: DWORD, - pub Cluster: [LARGE_INTEGER; 1usize], -} -pub type LOOKUP_STREAM_FROM_CLUSTER_INPUT = _LOOKUP_STREAM_FROM_CLUSTER_INPUT; -pub type PLOOKUP_STREAM_FROM_CLUSTER_INPUT = *mut _LOOKUP_STREAM_FROM_CLUSTER_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LOOKUP_STREAM_FROM_CLUSTER_OUTPUT { - pub Offset: DWORD, - pub NumberOfMatches: DWORD, - pub BufferSizeRequired: DWORD, -} -pub type LOOKUP_STREAM_FROM_CLUSTER_OUTPUT = _LOOKUP_STREAM_FROM_CLUSTER_OUTPUT; -pub type PLOOKUP_STREAM_FROM_CLUSTER_OUTPUT = *mut _LOOKUP_STREAM_FROM_CLUSTER_OUTPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _LOOKUP_STREAM_FROM_CLUSTER_ENTRY { - pub OffsetToNext: DWORD, - pub Flags: DWORD, - pub Reserved: LARGE_INTEGER, - pub Cluster: LARGE_INTEGER, - pub FileName: [WCHAR; 1usize], -} -pub type LOOKUP_STREAM_FROM_CLUSTER_ENTRY = _LOOKUP_STREAM_FROM_CLUSTER_ENTRY; -pub type PLOOKUP_STREAM_FROM_CLUSTER_ENTRY = *mut _LOOKUP_STREAM_FROM_CLUSTER_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_TYPE_NOTIFICATION_INPUT { - pub Flags: DWORD, - pub NumFileTypeIDs: DWORD, - pub FileTypeID: [GUID; 1usize], -} -pub type FILE_TYPE_NOTIFICATION_INPUT = _FILE_TYPE_NOTIFICATION_INPUT; -pub type PFILE_TYPE_NOTIFICATION_INPUT = *mut _FILE_TYPE_NOTIFICATION_INPUT; -extern "C" { - pub static FILE_TYPE_NOTIFICATION_GUID_PAGE_FILE: GUID; -} -extern "C" { - pub static FILE_TYPE_NOTIFICATION_GUID_HIBERNATION_FILE: GUID; -} -extern "C" { - pub static FILE_TYPE_NOTIFICATION_GUID_CRASHDUMP_FILE: GUID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CSV_MGMT_LOCK { - pub Flags: DWORD, -} -pub type CSV_MGMT_LOCK = _CSV_MGMT_LOCK; -pub type PCSV_MGMT_LOCK = *mut _CSV_MGMT_LOCK; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CSV_NAMESPACE_INFO { - pub Version: DWORD, - pub DeviceNumber: DWORD, - pub StartingOffset: LARGE_INTEGER, - pub SectorSize: DWORD, -} -pub type CSV_NAMESPACE_INFO = _CSV_NAMESPACE_INFO; -pub type PCSV_NAMESPACE_INFO = *mut _CSV_NAMESPACE_INFO; -pub const _CSV_CONTROL_OP_CsvControlStartRedirectFile: _CSV_CONTROL_OP = 2; -pub const _CSV_CONTROL_OP_CsvControlStopRedirectFile: _CSV_CONTROL_OP = 3; -pub const _CSV_CONTROL_OP_CsvControlQueryRedirectState: _CSV_CONTROL_OP = 4; -pub const _CSV_CONTROL_OP_CsvControlQueryFileRevision: _CSV_CONTROL_OP = 6; -pub const _CSV_CONTROL_OP_CsvControlQueryMdsPath: _CSV_CONTROL_OP = 8; -pub const _CSV_CONTROL_OP_CsvControlQueryFileRevisionFileId128: _CSV_CONTROL_OP = 9; -pub const _CSV_CONTROL_OP_CsvControlQueryVolumeRedirectState: _CSV_CONTROL_OP = 10; -pub const _CSV_CONTROL_OP_CsvControlEnableUSNRangeModificationTracking: _CSV_CONTROL_OP = 13; -pub const _CSV_CONTROL_OP_CsvControlMarkHandleLocalVolumeMount: _CSV_CONTROL_OP = 14; -pub const _CSV_CONTROL_OP_CsvControlUnmarkHandleLocalVolumeMount: _CSV_CONTROL_OP = 15; -pub const _CSV_CONTROL_OP_CsvControlGetCsvFsMdsPathV2: _CSV_CONTROL_OP = 18; -pub const _CSV_CONTROL_OP_CsvControlDisableCaching: _CSV_CONTROL_OP = 19; -pub const _CSV_CONTROL_OP_CsvControlEnableCaching: _CSV_CONTROL_OP = 20; -pub const _CSV_CONTROL_OP_CsvControlStartForceDFO: _CSV_CONTROL_OP = 21; -pub const _CSV_CONTROL_OP_CsvControlStopForceDFO: _CSV_CONTROL_OP = 22; -pub const _CSV_CONTROL_OP_CsvControlQueryMdsPathNoPause: _CSV_CONTROL_OP = 23; -pub const _CSV_CONTROL_OP_CsvControlSetVolumeId: _CSV_CONTROL_OP = 24; -pub const _CSV_CONTROL_OP_CsvControlQueryVolumeId: _CSV_CONTROL_OP = 25; -pub type _CSV_CONTROL_OP = ::std::os::raw::c_int; -pub use self::_CSV_CONTROL_OP as CSV_CONTROL_OP; -pub type PCSV_CONTROL_OP = *mut _CSV_CONTROL_OP; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CSV_CONTROL_PARAM { - pub Operation: CSV_CONTROL_OP, - pub Unused: LONGLONG, -} -pub type CSV_CONTROL_PARAM = _CSV_CONTROL_PARAM; -pub type PCSV_CONTROL_PARAM = *mut _CSV_CONTROL_PARAM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CSV_QUERY_REDIRECT_STATE { - pub MdsNodeId: DWORD, - pub DsNodeId: DWORD, - pub FileRedirected: BOOLEAN, -} -pub type CSV_QUERY_REDIRECT_STATE = _CSV_QUERY_REDIRECT_STATE; -pub type PCSV_QUERY_REDIRECT_STATE = *mut _CSV_QUERY_REDIRECT_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CSV_QUERY_FILE_REVISION { - pub FileId: LONGLONG, - pub FileRevision: [LONGLONG; 3usize], -} -pub type CSV_QUERY_FILE_REVISION = _CSV_QUERY_FILE_REVISION; -pub type PCSV_QUERY_FILE_REVISION = *mut _CSV_QUERY_FILE_REVISION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CSV_QUERY_FILE_REVISION_FILE_ID_128 { - pub FileId: FILE_ID_128, - pub FileRevision: [LONGLONG; 3usize], -} -pub type CSV_QUERY_FILE_REVISION_FILE_ID_128 = _CSV_QUERY_FILE_REVISION_FILE_ID_128; -pub type PCSV_QUERY_FILE_REVISION_FILE_ID_128 = *mut _CSV_QUERY_FILE_REVISION_FILE_ID_128; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CSV_QUERY_MDS_PATH { - pub MdsNodeId: DWORD, - pub DsNodeId: DWORD, - pub PathLength: DWORD, - pub Path: [WCHAR; 1usize], -} -pub type CSV_QUERY_MDS_PATH = _CSV_QUERY_MDS_PATH; -pub type PCSV_QUERY_MDS_PATH = *mut _CSV_QUERY_MDS_PATH; -pub const _CSVFS_DISK_CONNECTIVITY_CsvFsDiskConnectivityNone: _CSVFS_DISK_CONNECTIVITY = 0; -pub const _CSVFS_DISK_CONNECTIVITY_CsvFsDiskConnectivityMdsNodeOnly: _CSVFS_DISK_CONNECTIVITY = 1; -pub const _CSVFS_DISK_CONNECTIVITY_CsvFsDiskConnectivitySubsetOfNodes: _CSVFS_DISK_CONNECTIVITY = 2; -pub const _CSVFS_DISK_CONNECTIVITY_CsvFsDiskConnectivityAllNodes: _CSVFS_DISK_CONNECTIVITY = 3; -pub type _CSVFS_DISK_CONNECTIVITY = ::std::os::raw::c_int; -pub use self::_CSVFS_DISK_CONNECTIVITY as CSVFS_DISK_CONNECTIVITY; -pub type PCSVFS_DISK_CONNECTIVITY = *mut _CSVFS_DISK_CONNECTIVITY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CSV_QUERY_VOLUME_REDIRECT_STATE { - pub MdsNodeId: DWORD, - pub DsNodeId: DWORD, - pub IsDiskConnected: BOOLEAN, - pub ClusterEnableDirectIo: BOOLEAN, - pub DiskConnectivity: CSVFS_DISK_CONNECTIVITY, -} -pub type CSV_QUERY_VOLUME_REDIRECT_STATE = _CSV_QUERY_VOLUME_REDIRECT_STATE; -pub type PCSV_QUERY_VOLUME_REDIRECT_STATE = *mut _CSV_QUERY_VOLUME_REDIRECT_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CSV_QUERY_MDS_PATH_V2 { - pub Version: LONGLONG, - pub RequiredSize: DWORD, - pub MdsNodeId: DWORD, - pub DsNodeId: DWORD, - pub Flags: DWORD, - pub DiskConnectivity: CSVFS_DISK_CONNECTIVITY, - pub VolumeId: GUID, - pub IpAddressOffset: DWORD, - pub IpAddressLength: DWORD, - pub PathOffset: DWORD, - pub PathLength: DWORD, -} -pub type CSV_QUERY_MDS_PATH_V2 = _CSV_QUERY_MDS_PATH_V2; -pub type PCSV_QUERY_MDS_PATH_V2 = *mut _CSV_QUERY_MDS_PATH_V2; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CSV_SET_VOLUME_ID { - pub VolumeId: GUID, -} -pub type CSV_SET_VOLUME_ID = _CSV_SET_VOLUME_ID; -pub type PCSV_SET_VOLUME_ID = *mut _CSV_SET_VOLUME_ID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CSV_QUERY_VOLUME_ID { - pub VolumeId: GUID, -} -pub type CSV_QUERY_VOLUME_ID = _CSV_QUERY_VOLUME_ID; -pub type PCSV_QUERY_VOLUME_ID = *mut _CSV_QUERY_VOLUME_ID; -pub const _LMR_QUERY_INFO_CLASS_LMRQuerySessionInfo: _LMR_QUERY_INFO_CLASS = 1; -pub type _LMR_QUERY_INFO_CLASS = ::std::os::raw::c_int; -pub use self::_LMR_QUERY_INFO_CLASS as LMR_QUERY_INFO_CLASS; -pub type PLMR_QUERY_INFO_CLASS = *mut _LMR_QUERY_INFO_CLASS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LMR_QUERY_INFO_PARAM { - pub Operation: LMR_QUERY_INFO_CLASS, -} -pub type LMR_QUERY_INFO_PARAM = _LMR_QUERY_INFO_PARAM; -pub type PLMR_QUERY_INFO_PARAM = *mut _LMR_QUERY_INFO_PARAM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LMR_QUERY_SESSION_INFO { - pub SessionId: UINT64, -} -pub type LMR_QUERY_SESSION_INFO = _LMR_QUERY_SESSION_INFO; -pub type PLMR_QUERY_SESSION_INFO = *mut _LMR_QUERY_SESSION_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT { - pub VetoedFromAltitudeIntegral: DWORDLONG, - pub VetoedFromAltitudeDecimal: DWORDLONG, - pub Reason: [WCHAR; 256usize], -} -pub type CSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT = _CSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT; -pub type PCSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT = *mut _CSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT; -pub const _STORAGE_RESERVE_ID_StorageReserveIdNone: _STORAGE_RESERVE_ID = 0; -pub const _STORAGE_RESERVE_ID_StorageReserveIdHard: _STORAGE_RESERVE_ID = 1; -pub const _STORAGE_RESERVE_ID_StorageReserveIdSoft: _STORAGE_RESERVE_ID = 2; -pub const _STORAGE_RESERVE_ID_StorageReserveIdUpdateScratch: _STORAGE_RESERVE_ID = 3; -pub const _STORAGE_RESERVE_ID_StorageReserveIdMax: _STORAGE_RESERVE_ID = 4; -pub type _STORAGE_RESERVE_ID = ::std::os::raw::c_int; -pub use self::_STORAGE_RESERVE_ID as STORAGE_RESERVE_ID; -pub type PSTORAGE_RESERVE_ID = *mut _STORAGE_RESERVE_ID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CSV_IS_OWNED_BY_CSVFS { - pub OwnedByCSVFS: BOOLEAN, -} -pub type CSV_IS_OWNED_BY_CSVFS = _CSV_IS_OWNED_BY_CSVFS; -pub type PCSV_IS_OWNED_BY_CSVFS = *mut _CSV_IS_OWNED_BY_CSVFS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_LEVEL_TRIM_RANGE { - pub Offset: DWORDLONG, - pub Length: DWORDLONG, -} -pub type FILE_LEVEL_TRIM_RANGE = _FILE_LEVEL_TRIM_RANGE; -pub type PFILE_LEVEL_TRIM_RANGE = *mut _FILE_LEVEL_TRIM_RANGE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_LEVEL_TRIM { - pub Key: DWORD, - pub NumRanges: DWORD, - pub Ranges: [FILE_LEVEL_TRIM_RANGE; 1usize], -} -pub type FILE_LEVEL_TRIM = _FILE_LEVEL_TRIM; -pub type PFILE_LEVEL_TRIM = *mut _FILE_LEVEL_TRIM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_LEVEL_TRIM_OUTPUT { - pub NumRangesProcessed: DWORD, -} -pub type FILE_LEVEL_TRIM_OUTPUT = _FILE_LEVEL_TRIM_OUTPUT; -pub type PFILE_LEVEL_TRIM_OUTPUT = *mut _FILE_LEVEL_TRIM_OUTPUT; -pub const _QUERY_FILE_LAYOUT_FILTER_TYPE_QUERY_FILE_LAYOUT_FILTER_TYPE_NONE: - _QUERY_FILE_LAYOUT_FILTER_TYPE = 0; -pub const _QUERY_FILE_LAYOUT_FILTER_TYPE_QUERY_FILE_LAYOUT_FILTER_TYPE_CLUSTERS: - _QUERY_FILE_LAYOUT_FILTER_TYPE = 1; -pub const _QUERY_FILE_LAYOUT_FILTER_TYPE_QUERY_FILE_LAYOUT_FILTER_TYPE_FILEID: - _QUERY_FILE_LAYOUT_FILTER_TYPE = 2; -pub const _QUERY_FILE_LAYOUT_FILTER_TYPE_QUERY_FILE_LAYOUT_FILTER_TYPE_STORAGE_RESERVE_ID: - _QUERY_FILE_LAYOUT_FILTER_TYPE = 3; -pub const _QUERY_FILE_LAYOUT_FILTER_TYPE_QUERY_FILE_LAYOUT_NUM_FILTER_TYPES: - _QUERY_FILE_LAYOUT_FILTER_TYPE = 4; -pub type _QUERY_FILE_LAYOUT_FILTER_TYPE = ::std::os::raw::c_int; -pub use self::_QUERY_FILE_LAYOUT_FILTER_TYPE as QUERY_FILE_LAYOUT_FILTER_TYPE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _CLUSTER_RANGE { - pub StartingCluster: LARGE_INTEGER, - pub ClusterCount: LARGE_INTEGER, -} -pub type CLUSTER_RANGE = _CLUSTER_RANGE; -pub type PCLUSTER_RANGE = *mut _CLUSTER_RANGE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_REFERENCE_RANGE { - pub StartingFileReferenceNumber: DWORDLONG, - pub EndingFileReferenceNumber: DWORDLONG, -} -pub type FILE_REFERENCE_RANGE = _FILE_REFERENCE_RANGE; -pub type PFILE_REFERENCE_RANGE = *mut _FILE_REFERENCE_RANGE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _QUERY_FILE_LAYOUT_INPUT { - pub __bindgen_anon_1: _QUERY_FILE_LAYOUT_INPUT__bindgen_ty_1, - pub Flags: DWORD, - pub FilterType: QUERY_FILE_LAYOUT_FILTER_TYPE, - pub Reserved: DWORD, - pub Filter: _QUERY_FILE_LAYOUT_INPUT__bindgen_ty_2, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _QUERY_FILE_LAYOUT_INPUT__bindgen_ty_1 { - pub FilterEntryCount: DWORD, - pub NumberOfPairs: DWORD, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _QUERY_FILE_LAYOUT_INPUT__bindgen_ty_2 { - pub ClusterRanges: [CLUSTER_RANGE; 1usize], - pub FileReferenceRanges: [FILE_REFERENCE_RANGE; 1usize], - pub StorageReserveIds: [STORAGE_RESERVE_ID; 1usize], -} -pub type QUERY_FILE_LAYOUT_INPUT = _QUERY_FILE_LAYOUT_INPUT; -pub type PQUERY_FILE_LAYOUT_INPUT = *mut _QUERY_FILE_LAYOUT_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _QUERY_FILE_LAYOUT_OUTPUT { - pub FileEntryCount: DWORD, - pub FirstFileOffset: DWORD, - pub Flags: DWORD, - pub Reserved: DWORD, -} -pub type QUERY_FILE_LAYOUT_OUTPUT = _QUERY_FILE_LAYOUT_OUTPUT; -pub type PQUERY_FILE_LAYOUT_OUTPUT = *mut _QUERY_FILE_LAYOUT_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_LAYOUT_ENTRY { - pub Version: DWORD, - pub NextFileOffset: DWORD, - pub Flags: DWORD, - pub FileAttributes: DWORD, - pub FileReferenceNumber: DWORDLONG, - pub FirstNameOffset: DWORD, - pub FirstStreamOffset: DWORD, - pub ExtraInfoOffset: DWORD, - pub ExtraInfoLength: DWORD, -} -pub type FILE_LAYOUT_ENTRY = _FILE_LAYOUT_ENTRY; -pub type PFILE_LAYOUT_ENTRY = *mut _FILE_LAYOUT_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_LAYOUT_NAME_ENTRY { - pub NextNameOffset: DWORD, - pub Flags: DWORD, - pub ParentFileReferenceNumber: DWORDLONG, - pub FileNameLength: DWORD, - pub Reserved: DWORD, - pub FileName: [WCHAR; 1usize], -} -pub type FILE_LAYOUT_NAME_ENTRY = _FILE_LAYOUT_NAME_ENTRY; -pub type PFILE_LAYOUT_NAME_ENTRY = *mut _FILE_LAYOUT_NAME_ENTRY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_LAYOUT_INFO_ENTRY { - pub BasicInformation: _FILE_LAYOUT_INFO_ENTRY__bindgen_ty_1, - pub OwnerId: DWORD, - pub SecurityId: DWORD, - pub Usn: USN, - pub StorageReserveId: STORAGE_RESERVE_ID, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FILE_LAYOUT_INFO_ENTRY__bindgen_ty_1 { - pub CreationTime: LARGE_INTEGER, - pub LastAccessTime: LARGE_INTEGER, - pub LastWriteTime: LARGE_INTEGER, - pub ChangeTime: LARGE_INTEGER, - pub FileAttributes: DWORD, -} -pub type FILE_LAYOUT_INFO_ENTRY = _FILE_LAYOUT_INFO_ENTRY; -pub type PFILE_LAYOUT_INFO_ENTRY = *mut _FILE_LAYOUT_INFO_ENTRY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STREAM_LAYOUT_ENTRY { - pub Version: DWORD, - pub NextStreamOffset: DWORD, - pub Flags: DWORD, - pub ExtentInformationOffset: DWORD, - pub AllocationSize: LARGE_INTEGER, - pub EndOfFile: LARGE_INTEGER, - pub StreamInformationOffset: DWORD, - pub AttributeTypeCode: DWORD, - pub AttributeFlags: DWORD, - pub StreamIdentifierLength: DWORD, - pub StreamIdentifier: [WCHAR; 1usize], -} -pub type STREAM_LAYOUT_ENTRY = _STREAM_LAYOUT_ENTRY; -pub type PSTREAM_LAYOUT_ENTRY = *mut _STREAM_LAYOUT_ENTRY; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STREAM_EXTENT_ENTRY { - pub Flags: DWORD, - pub ExtentInformation: _STREAM_EXTENT_ENTRY__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _STREAM_EXTENT_ENTRY__bindgen_ty_1 { - pub RetrievalPointers: RETRIEVAL_POINTERS_BUFFER, -} -pub type STREAM_EXTENT_ENTRY = _STREAM_EXTENT_ENTRY; -pub type PSTREAM_EXTENT_ENTRY = *mut _STREAM_EXTENT_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER { - pub ChecksumAlgorithm: WORD, - pub Reserved: WORD, - pub Flags: DWORD, - pub ChecksumChunkSizeInBytes: DWORD, - pub ClusterSizeInBytes: DWORD, -} -pub type FSCTL_GET_INTEGRITY_INFORMATION_BUFFER = _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER; -pub type PFSCTL_GET_INTEGRITY_INFORMATION_BUFFER = *mut _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER { - pub ChecksumAlgorithm: WORD, - pub Reserved: WORD, - pub Flags: DWORD, -} -pub type FSCTL_SET_INTEGRITY_INFORMATION_BUFFER = _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER; -pub type PFSCTL_SET_INTEGRITY_INFORMATION_BUFFER = *mut _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX { - pub EnableIntegrity: BYTE, - pub KeepIntegrityStateUnchanged: BYTE, - pub Reserved: WORD, - pub Flags: DWORD, - pub Version: BYTE, - pub Reserved2: [BYTE; 7usize], -} -pub type FSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX = _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX; -pub type PFSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX = - *mut _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FSCTL_OFFLOAD_READ_INPUT { - pub Size: DWORD, - pub Flags: DWORD, - pub TokenTimeToLive: DWORD, - pub Reserved: DWORD, - pub FileOffset: DWORDLONG, - pub CopyLength: DWORDLONG, -} -pub type FSCTL_OFFLOAD_READ_INPUT = _FSCTL_OFFLOAD_READ_INPUT; -pub type PFSCTL_OFFLOAD_READ_INPUT = *mut _FSCTL_OFFLOAD_READ_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FSCTL_OFFLOAD_READ_OUTPUT { - pub Size: DWORD, - pub Flags: DWORD, - pub TransferLength: DWORDLONG, - pub Token: [BYTE; 512usize], -} -pub type FSCTL_OFFLOAD_READ_OUTPUT = _FSCTL_OFFLOAD_READ_OUTPUT; -pub type PFSCTL_OFFLOAD_READ_OUTPUT = *mut _FSCTL_OFFLOAD_READ_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FSCTL_OFFLOAD_WRITE_INPUT { - pub Size: DWORD, - pub Flags: DWORD, - pub FileOffset: DWORDLONG, - pub CopyLength: DWORDLONG, - pub TransferOffset: DWORDLONG, - pub Token: [BYTE; 512usize], -} -pub type FSCTL_OFFLOAD_WRITE_INPUT = _FSCTL_OFFLOAD_WRITE_INPUT; -pub type PFSCTL_OFFLOAD_WRITE_INPUT = *mut _FSCTL_OFFLOAD_WRITE_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FSCTL_OFFLOAD_WRITE_OUTPUT { - pub Size: DWORD, - pub Flags: DWORD, - pub LengthWritten: DWORDLONG, -} -pub type FSCTL_OFFLOAD_WRITE_OUTPUT = _FSCTL_OFFLOAD_WRITE_OUTPUT; -pub type PFSCTL_OFFLOAD_WRITE_OUTPUT = *mut _FSCTL_OFFLOAD_WRITE_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SET_PURGE_FAILURE_MODE_INPUT { - pub Flags: DWORD, -} -pub type SET_PURGE_FAILURE_MODE_INPUT = _SET_PURGE_FAILURE_MODE_INPUT; -pub type PSET_PURGE_FAILURE_MODE_INPUT = *mut _SET_PURGE_FAILURE_MODE_INPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _REPAIR_COPIES_INPUT { - pub Size: DWORD, - pub Flags: DWORD, - pub FileOffset: LARGE_INTEGER, - pub Length: DWORD, - pub SourceCopy: DWORD, - pub NumberOfRepairCopies: DWORD, - pub RepairCopies: [DWORD; 1usize], -} -pub type REPAIR_COPIES_INPUT = _REPAIR_COPIES_INPUT; -pub type PREPAIR_COPIES_INPUT = *mut _REPAIR_COPIES_INPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _REPAIR_COPIES_OUTPUT { - pub Size: DWORD, - pub Status: DWORD, - pub ResumeFileOffset: LARGE_INTEGER, -} -pub type REPAIR_COPIES_OUTPUT = _REPAIR_COPIES_OUTPUT; -pub type PREPAIR_COPIES_OUTPUT = *mut _REPAIR_COPIES_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_REGION_INFO { - pub FileOffset: LONGLONG, - pub Length: LONGLONG, - pub Usage: DWORD, - pub Reserved: DWORD, -} -pub type FILE_REGION_INFO = _FILE_REGION_INFO; -pub type PFILE_REGION_INFO = *mut _FILE_REGION_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_REGION_OUTPUT { - pub Flags: DWORD, - pub TotalRegionEntryCount: DWORD, - pub RegionEntryCount: DWORD, - pub Reserved: DWORD, - pub Region: [FILE_REGION_INFO; 1usize], -} -pub type FILE_REGION_OUTPUT = _FILE_REGION_OUTPUT; -pub type PFILE_REGION_OUTPUT = *mut _FILE_REGION_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_REGION_INPUT { - pub FileOffset: LONGLONG, - pub Length: LONGLONG, - pub DesiredUsage: DWORD, -} -pub type FILE_REGION_INPUT = _FILE_REGION_INPUT; -pub type PFILE_REGION_INPUT = *mut _FILE_REGION_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WRITE_USN_REASON_INPUT { - pub Flags: DWORD, - pub UsnReasonToWrite: DWORD, -} -pub type WRITE_USN_REASON_INPUT = _WRITE_USN_REASON_INPUT; -pub type PWRITE_USN_REASON_INPUT = *mut _WRITE_USN_REASON_INPUT; -pub const _FILE_STORAGE_TIER_MEDIA_TYPE_FileStorageTierMediaTypeUnspecified: - _FILE_STORAGE_TIER_MEDIA_TYPE = 0; -pub const _FILE_STORAGE_TIER_MEDIA_TYPE_FileStorageTierMediaTypeDisk: - _FILE_STORAGE_TIER_MEDIA_TYPE = 1; -pub const _FILE_STORAGE_TIER_MEDIA_TYPE_FileStorageTierMediaTypeSsd: _FILE_STORAGE_TIER_MEDIA_TYPE = - 2; -pub const _FILE_STORAGE_TIER_MEDIA_TYPE_FileStorageTierMediaTypeScm: _FILE_STORAGE_TIER_MEDIA_TYPE = - 4; -pub const _FILE_STORAGE_TIER_MEDIA_TYPE_FileStorageTierMediaTypeMax: _FILE_STORAGE_TIER_MEDIA_TYPE = - 5; -pub type _FILE_STORAGE_TIER_MEDIA_TYPE = ::std::os::raw::c_int; -pub use self::_FILE_STORAGE_TIER_MEDIA_TYPE as FILE_STORAGE_TIER_MEDIA_TYPE; -pub type PFILE_STORAGE_TIER_MEDIA_TYPE = *mut _FILE_STORAGE_TIER_MEDIA_TYPE; -pub const _FILE_STORAGE_TIER_CLASS_FileStorageTierClassUnspecified: _FILE_STORAGE_TIER_CLASS = 0; -pub const _FILE_STORAGE_TIER_CLASS_FileStorageTierClassCapacity: _FILE_STORAGE_TIER_CLASS = 1; -pub const _FILE_STORAGE_TIER_CLASS_FileStorageTierClassPerformance: _FILE_STORAGE_TIER_CLASS = 2; -pub const _FILE_STORAGE_TIER_CLASS_FileStorageTierClassMax: _FILE_STORAGE_TIER_CLASS = 3; -pub type _FILE_STORAGE_TIER_CLASS = ::std::os::raw::c_int; -pub use self::_FILE_STORAGE_TIER_CLASS as FILE_STORAGE_TIER_CLASS; -pub type PFILE_STORAGE_TIER_CLASS = *mut _FILE_STORAGE_TIER_CLASS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_STORAGE_TIER { - pub Id: GUID, - pub Name: [WCHAR; 256usize], - pub Description: [WCHAR; 256usize], - pub Flags: DWORDLONG, - pub ProvisionedCapacity: DWORDLONG, - pub MediaType: FILE_STORAGE_TIER_MEDIA_TYPE, - pub Class: FILE_STORAGE_TIER_CLASS, -} -pub type FILE_STORAGE_TIER = _FILE_STORAGE_TIER; -pub type PFILE_STORAGE_TIER = *mut _FILE_STORAGE_TIER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FSCTL_QUERY_STORAGE_CLASSES_OUTPUT { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub TotalNumberOfTiers: DWORD, - pub NumberOfTiersReturned: DWORD, - pub Tiers: [FILE_STORAGE_TIER; 1usize], -} -pub type FSCTL_QUERY_STORAGE_CLASSES_OUTPUT = _FSCTL_QUERY_STORAGE_CLASSES_OUTPUT; -pub type PFSCTL_QUERY_STORAGE_CLASSES_OUTPUT = *mut _FSCTL_QUERY_STORAGE_CLASSES_OUTPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _STREAM_INFORMATION_ENTRY { - pub Version: DWORD, - pub Flags: DWORD, - pub StreamInformation: _STREAM_INFORMATION_ENTRY__StreamInformation, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _STREAM_INFORMATION_ENTRY__StreamInformation { - pub DesiredStorageClass: _STREAM_INFORMATION_ENTRY__StreamInformation__DesiredStorageClass, - pub DataStream: _STREAM_INFORMATION_ENTRY__StreamInformation__DataStream, - pub Reparse: _STREAM_INFORMATION_ENTRY__StreamInformation__Reparse, - pub Ea: _STREAM_INFORMATION_ENTRY__StreamInformation__Ea, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STREAM_INFORMATION_ENTRY__StreamInformation__DesiredStorageClass { - pub Class: FILE_STORAGE_TIER_CLASS, - pub Flags: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STREAM_INFORMATION_ENTRY__StreamInformation__DataStream { - pub Length: WORD, - pub Flags: WORD, - pub Reserved: DWORD, - pub Vdl: DWORDLONG, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STREAM_INFORMATION_ENTRY__StreamInformation__Reparse { - pub Length: WORD, - pub Flags: WORD, - pub ReparseDataSize: DWORD, - pub ReparseDataOffset: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STREAM_INFORMATION_ENTRY__StreamInformation__Ea { - pub Length: WORD, - pub Flags: WORD, - pub EaSize: DWORD, - pub EaInformationOffset: DWORD, -} -pub type STREAM_INFORMATION_ENTRY = _STREAM_INFORMATION_ENTRY; -pub type PSTREAM_INFORMATION_ENTRY = *mut _STREAM_INFORMATION_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FSCTL_QUERY_REGION_INFO_INPUT { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub NumberOfTierIds: DWORD, - pub TierIds: [GUID; 1usize], -} -pub type FSCTL_QUERY_REGION_INFO_INPUT = _FSCTL_QUERY_REGION_INFO_INPUT; -pub type PFSCTL_QUERY_REGION_INFO_INPUT = *mut _FSCTL_QUERY_REGION_INFO_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_STORAGE_TIER_REGION { - pub TierId: GUID, - pub Offset: DWORDLONG, - pub Length: DWORDLONG, -} -pub type FILE_STORAGE_TIER_REGION = _FILE_STORAGE_TIER_REGION; -pub type PFILE_STORAGE_TIER_REGION = *mut _FILE_STORAGE_TIER_REGION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FSCTL_QUERY_REGION_INFO_OUTPUT { - pub Version: DWORD, - pub Size: DWORD, - pub Flags: DWORD, - pub Reserved: DWORD, - pub Alignment: DWORDLONG, - pub TotalNumberOfRegions: DWORD, - pub NumberOfRegionsReturned: DWORD, - pub Regions: [FILE_STORAGE_TIER_REGION; 1usize], -} -pub type FSCTL_QUERY_REGION_INFO_OUTPUT = _FSCTL_QUERY_REGION_INFO_OUTPUT; -pub type PFSCTL_QUERY_REGION_INFO_OUTPUT = *mut _FSCTL_QUERY_REGION_INFO_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_DESIRED_STORAGE_CLASS_INFORMATION { - pub Class: FILE_STORAGE_TIER_CLASS, - pub Flags: DWORD, -} -pub type FILE_DESIRED_STORAGE_CLASS_INFORMATION = _FILE_DESIRED_STORAGE_CLASS_INFORMATION; -pub type PFILE_DESIRED_STORAGE_CLASS_INFORMATION = *mut _FILE_DESIRED_STORAGE_CLASS_INFORMATION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DUPLICATE_EXTENTS_DATA { - pub FileHandle: HANDLE, - pub SourceFileOffset: LARGE_INTEGER, - pub TargetFileOffset: LARGE_INTEGER, - pub ByteCount: LARGE_INTEGER, -} -pub type DUPLICATE_EXTENTS_DATA = _DUPLICATE_EXTENTS_DATA; -pub type PDUPLICATE_EXTENTS_DATA = *mut _DUPLICATE_EXTENTS_DATA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DUPLICATE_EXTENTS_DATA32 { - pub FileHandle: UINT32, - pub SourceFileOffset: LARGE_INTEGER, - pub TargetFileOffset: LARGE_INTEGER, - pub ByteCount: LARGE_INTEGER, -} -pub type DUPLICATE_EXTENTS_DATA32 = _DUPLICATE_EXTENTS_DATA32; -pub type PDUPLICATE_EXTENTS_DATA32 = *mut _DUPLICATE_EXTENTS_DATA32; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DUPLICATE_EXTENTS_DATA_EX { - pub Size: SIZE_T, - pub FileHandle: HANDLE, - pub SourceFileOffset: LARGE_INTEGER, - pub TargetFileOffset: LARGE_INTEGER, - pub ByteCount: LARGE_INTEGER, - pub Flags: DWORD, -} -pub type DUPLICATE_EXTENTS_DATA_EX = _DUPLICATE_EXTENTS_DATA_EX; -pub type PDUPLICATE_EXTENTS_DATA_EX = *mut _DUPLICATE_EXTENTS_DATA_EX; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DUPLICATE_EXTENTS_DATA_EX32 { - pub Size: DWORD32, - pub FileHandle: DWORD32, - pub SourceFileOffset: LARGE_INTEGER, - pub TargetFileOffset: LARGE_INTEGER, - pub ByteCount: LARGE_INTEGER, - pub Flags: DWORD, -} -pub type DUPLICATE_EXTENTS_DATA_EX32 = _DUPLICATE_EXTENTS_DATA_EX32; -pub type PDUPLICATE_EXTENTS_DATA_EX32 = *mut _DUPLICATE_EXTENTS_DATA_EX32; -pub const _DUPLICATE_EXTENTS_STATE_FileSnapStateInactive: _DUPLICATE_EXTENTS_STATE = 0; -pub const _DUPLICATE_EXTENTS_STATE_FileSnapStateSource: _DUPLICATE_EXTENTS_STATE = 1; -pub const _DUPLICATE_EXTENTS_STATE_FileSnapStateTarget: _DUPLICATE_EXTENTS_STATE = 2; -pub type _DUPLICATE_EXTENTS_STATE = ::std::os::raw::c_int; -pub use self::_DUPLICATE_EXTENTS_STATE as DUPLICATE_EXTENTS_STATE; -pub type PDUPLICATE_EXTENTS_STATE = *mut _DUPLICATE_EXTENTS_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ASYNC_DUPLICATE_EXTENTS_STATUS { - pub Version: DWORD, - pub State: DUPLICATE_EXTENTS_STATE, - pub SourceFileOffset: DWORDLONG, - pub TargetFileOffset: DWORDLONG, - pub ByteCount: DWORDLONG, - pub BytesDuplicated: DWORDLONG, -} -pub type ASYNC_DUPLICATE_EXTENTS_STATUS = _ASYNC_DUPLICATE_EXTENTS_STATUS; -pub type PASYNC_DUPLICATE_EXTENTS_STATUS = *mut _ASYNC_DUPLICATE_EXTENTS_STATUS; -pub const _REFS_SMR_VOLUME_GC_STATE_SmrGcStateInactive: _REFS_SMR_VOLUME_GC_STATE = 0; -pub const _REFS_SMR_VOLUME_GC_STATE_SmrGcStatePaused: _REFS_SMR_VOLUME_GC_STATE = 1; -pub const _REFS_SMR_VOLUME_GC_STATE_SmrGcStateActive: _REFS_SMR_VOLUME_GC_STATE = 2; -pub const _REFS_SMR_VOLUME_GC_STATE_SmrGcStateActiveFullSpeed: _REFS_SMR_VOLUME_GC_STATE = 3; -pub type _REFS_SMR_VOLUME_GC_STATE = ::std::os::raw::c_int; -pub use self::_REFS_SMR_VOLUME_GC_STATE as REFS_SMR_VOLUME_GC_STATE; -pub type PREFS_SMR_VOLUME_GC_STATE = *mut _REFS_SMR_VOLUME_GC_STATE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _REFS_SMR_VOLUME_INFO_OUTPUT { - pub Version: DWORD, - pub Flags: DWORD, - pub SizeOfRandomlyWritableTier: LARGE_INTEGER, - pub FreeSpaceInRandomlyWritableTier: LARGE_INTEGER, - pub SizeofSMRTier: LARGE_INTEGER, - pub FreeSpaceInSMRTier: LARGE_INTEGER, - pub UsableFreeSpaceInSMRTier: LARGE_INTEGER, - pub VolumeGcState: REFS_SMR_VOLUME_GC_STATE, - pub VolumeGcLastStatus: DWORD, - pub CurrentGcBandFillPercentage: DWORD, - pub Unused: [DWORDLONG; 6usize], -} -pub type REFS_SMR_VOLUME_INFO_OUTPUT = _REFS_SMR_VOLUME_INFO_OUTPUT; -pub type PREFS_SMR_VOLUME_INFO_OUTPUT = *mut _REFS_SMR_VOLUME_INFO_OUTPUT; -pub const _REFS_SMR_VOLUME_GC_ACTION_SmrGcActionStart: _REFS_SMR_VOLUME_GC_ACTION = 1; -pub const _REFS_SMR_VOLUME_GC_ACTION_SmrGcActionStartFullSpeed: _REFS_SMR_VOLUME_GC_ACTION = 2; -pub const _REFS_SMR_VOLUME_GC_ACTION_SmrGcActionPause: _REFS_SMR_VOLUME_GC_ACTION = 3; -pub const _REFS_SMR_VOLUME_GC_ACTION_SmrGcActionStop: _REFS_SMR_VOLUME_GC_ACTION = 4; -pub type _REFS_SMR_VOLUME_GC_ACTION = ::std::os::raw::c_int; -pub use self::_REFS_SMR_VOLUME_GC_ACTION as REFS_SMR_VOLUME_GC_ACTION; -pub type PREFS_SMR_VOLUME_GC_ACTION = *mut _REFS_SMR_VOLUME_GC_ACTION; -pub const _REFS_SMR_VOLUME_GC_METHOD_SmrGcMethodCompaction: _REFS_SMR_VOLUME_GC_METHOD = 1; -pub const _REFS_SMR_VOLUME_GC_METHOD_SmrGcMethodCompression: _REFS_SMR_VOLUME_GC_METHOD = 2; -pub const _REFS_SMR_VOLUME_GC_METHOD_SmrGcMethodRotation: _REFS_SMR_VOLUME_GC_METHOD = 3; -pub type _REFS_SMR_VOLUME_GC_METHOD = ::std::os::raw::c_int; -pub use self::_REFS_SMR_VOLUME_GC_METHOD as REFS_SMR_VOLUME_GC_METHOD; -pub type PREFS_SMR_VOLUME_GC_METHOD = *mut _REFS_SMR_VOLUME_GC_METHOD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REFS_SMR_VOLUME_GC_PARAMETERS { - pub Version: DWORD, - pub Flags: DWORD, - pub Action: REFS_SMR_VOLUME_GC_ACTION, - pub Method: REFS_SMR_VOLUME_GC_METHOD, - pub IoGranularity: DWORD, - pub CompressionFormat: DWORD, - pub Unused: [DWORDLONG; 8usize], -} -pub type REFS_SMR_VOLUME_GC_PARAMETERS = _REFS_SMR_VOLUME_GC_PARAMETERS; -pub type PREFS_SMR_VOLUME_GC_PARAMETERS = *mut _REFS_SMR_VOLUME_GC_PARAMETERS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER { - pub OptimalWriteSize: DWORD, - pub StreamGranularitySize: DWORD, - pub StreamIdMin: DWORD, - pub StreamIdMax: DWORD, -} -pub type STREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER = _STREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER; -pub type PSTREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER = *mut _STREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STREAMS_ASSOCIATE_ID_INPUT_BUFFER { - pub Flags: DWORD, - pub StreamId: DWORD, -} -pub type STREAMS_ASSOCIATE_ID_INPUT_BUFFER = _STREAMS_ASSOCIATE_ID_INPUT_BUFFER; -pub type PSTREAMS_ASSOCIATE_ID_INPUT_BUFFER = *mut _STREAMS_ASSOCIATE_ID_INPUT_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _STREAMS_QUERY_ID_OUTPUT_BUFFER { - pub StreamId: DWORD, -} -pub type STREAMS_QUERY_ID_OUTPUT_BUFFER = _STREAMS_QUERY_ID_OUTPUT_BUFFER; -pub type PSTREAMS_QUERY_ID_OUTPUT_BUFFER = *mut _STREAMS_QUERY_ID_OUTPUT_BUFFER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _QUERY_BAD_RANGES_INPUT_RANGE { - pub StartOffset: DWORDLONG, - pub LengthInBytes: DWORDLONG, -} -pub type QUERY_BAD_RANGES_INPUT_RANGE = _QUERY_BAD_RANGES_INPUT_RANGE; -pub type PQUERY_BAD_RANGES_INPUT_RANGE = *mut _QUERY_BAD_RANGES_INPUT_RANGE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _QUERY_BAD_RANGES_INPUT { - pub Flags: DWORD, - pub NumRanges: DWORD, - pub Ranges: [QUERY_BAD_RANGES_INPUT_RANGE; 1usize], -} -pub type QUERY_BAD_RANGES_INPUT = _QUERY_BAD_RANGES_INPUT; -pub type PQUERY_BAD_RANGES_INPUT = *mut _QUERY_BAD_RANGES_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _QUERY_BAD_RANGES_OUTPUT_RANGE { - pub Flags: DWORD, - pub Reserved: DWORD, - pub StartOffset: DWORDLONG, - pub LengthInBytes: DWORDLONG, -} -pub type QUERY_BAD_RANGES_OUTPUT_RANGE = _QUERY_BAD_RANGES_OUTPUT_RANGE; -pub type PQUERY_BAD_RANGES_OUTPUT_RANGE = *mut _QUERY_BAD_RANGES_OUTPUT_RANGE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _QUERY_BAD_RANGES_OUTPUT { - pub Flags: DWORD, - pub NumBadRanges: DWORD, - pub NextOffsetToLookUp: DWORDLONG, - pub BadRanges: [QUERY_BAD_RANGES_OUTPUT_RANGE; 1usize], -} -pub type QUERY_BAD_RANGES_OUTPUT = _QUERY_BAD_RANGES_OUTPUT; -pub type PQUERY_BAD_RANGES_OUTPUT = *mut _QUERY_BAD_RANGES_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT { - pub Flags: DWORD, - pub AlignmentShift: DWORD, - pub FileOffsetToAlign: DWORDLONG, - pub FallbackAlignmentShift: DWORD, -} -pub type SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT = _SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT; -pub type PSET_DAX_ALLOC_ALIGNMENT_HINT_INPUT = *mut _SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT; -pub const _VIRTUAL_STORAGE_BEHAVIOR_CODE_VirtualStorageBehaviorUndefined: - _VIRTUAL_STORAGE_BEHAVIOR_CODE = 0; -pub const _VIRTUAL_STORAGE_BEHAVIOR_CODE_VirtualStorageBehaviorCacheWriteThrough: - _VIRTUAL_STORAGE_BEHAVIOR_CODE = 1; -pub const _VIRTUAL_STORAGE_BEHAVIOR_CODE_VirtualStorageBehaviorCacheWriteBack: - _VIRTUAL_STORAGE_BEHAVIOR_CODE = 2; -pub const _VIRTUAL_STORAGE_BEHAVIOR_CODE_VirtualStorageBehaviorStopIoProcessing: - _VIRTUAL_STORAGE_BEHAVIOR_CODE = 3; -pub const _VIRTUAL_STORAGE_BEHAVIOR_CODE_VirtualStorageBehaviorRestartIoProcessing: - _VIRTUAL_STORAGE_BEHAVIOR_CODE = 4; -pub type _VIRTUAL_STORAGE_BEHAVIOR_CODE = ::std::os::raw::c_int; -pub use self::_VIRTUAL_STORAGE_BEHAVIOR_CODE as VIRTUAL_STORAGE_BEHAVIOR_CODE; -pub type PVIRTUAL_STORAGE_BEHAVIOR_CODE = *mut _VIRTUAL_STORAGE_BEHAVIOR_CODE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _VIRTUAL_STORAGE_SET_BEHAVIOR_INPUT { - pub Size: DWORD, - pub BehaviorCode: VIRTUAL_STORAGE_BEHAVIOR_CODE, -} -pub type VIRTUAL_STORAGE_SET_BEHAVIOR_INPUT = _VIRTUAL_STORAGE_SET_BEHAVIOR_INPUT; -pub type PVIRTUAL_STORAGE_SET_BEHAVIOR_INPUT = *mut _VIRTUAL_STORAGE_SET_BEHAVIOR_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENCRYPTION_KEY_CTRL_INPUT { - pub HeaderSize: DWORD, - pub StructureSize: DWORD, - pub KeyOffset: WORD, - pub KeySize: WORD, - pub DplLock: DWORD, - pub DplUserId: DWORDLONG, - pub DplCredentialId: DWORDLONG, -} -pub type ENCRYPTION_KEY_CTRL_INPUT = _ENCRYPTION_KEY_CTRL_INPUT; -pub type PENCRYPTION_KEY_CTRL_INPUT = *mut _ENCRYPTION_KEY_CTRL_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WOF_EXTERNAL_INFO { - pub Version: DWORD, - pub Provider: DWORD, -} -pub type WOF_EXTERNAL_INFO = _WOF_EXTERNAL_INFO; -pub type PWOF_EXTERNAL_INFO = *mut _WOF_EXTERNAL_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WOF_EXTERNAL_FILE_ID { - pub FileId: FILE_ID_128, -} -pub type WOF_EXTERNAL_FILE_ID = _WOF_EXTERNAL_FILE_ID; -pub type PWOF_EXTERNAL_FILE_ID = *mut _WOF_EXTERNAL_FILE_ID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WOF_VERSION_INFO { - pub WofVersion: DWORD, -} -pub type WOF_VERSION_INFO = _WOF_VERSION_INFO; -pub type PWOF_VERSION_INFO = *mut _WOF_VERSION_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _WIM_PROVIDER_EXTERNAL_INFO { - pub Version: DWORD, - pub Flags: DWORD, - pub DataSourceId: LARGE_INTEGER, - pub ResourceHash: [BYTE; 20usize], -} -pub type WIM_PROVIDER_EXTERNAL_INFO = _WIM_PROVIDER_EXTERNAL_INFO; -pub type PWIM_PROVIDER_EXTERNAL_INFO = *mut _WIM_PROVIDER_EXTERNAL_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _WIM_PROVIDER_ADD_OVERLAY_INPUT { - pub WimType: DWORD, - pub WimIndex: DWORD, - pub WimFileNameOffset: DWORD, - pub WimFileNameLength: DWORD, -} -pub type WIM_PROVIDER_ADD_OVERLAY_INPUT = _WIM_PROVIDER_ADD_OVERLAY_INPUT; -pub type PWIM_PROVIDER_ADD_OVERLAY_INPUT = *mut _WIM_PROVIDER_ADD_OVERLAY_INPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _WIM_PROVIDER_UPDATE_OVERLAY_INPUT { - pub DataSourceId: LARGE_INTEGER, - pub WimFileNameOffset: DWORD, - pub WimFileNameLength: DWORD, -} -pub type WIM_PROVIDER_UPDATE_OVERLAY_INPUT = _WIM_PROVIDER_UPDATE_OVERLAY_INPUT; -pub type PWIM_PROVIDER_UPDATE_OVERLAY_INPUT = *mut _WIM_PROVIDER_UPDATE_OVERLAY_INPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _WIM_PROVIDER_REMOVE_OVERLAY_INPUT { - pub DataSourceId: LARGE_INTEGER, -} -pub type WIM_PROVIDER_REMOVE_OVERLAY_INPUT = _WIM_PROVIDER_REMOVE_OVERLAY_INPUT; -pub type PWIM_PROVIDER_REMOVE_OVERLAY_INPUT = *mut _WIM_PROVIDER_REMOVE_OVERLAY_INPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _WIM_PROVIDER_SUSPEND_OVERLAY_INPUT { - pub DataSourceId: LARGE_INTEGER, -} -pub type WIM_PROVIDER_SUSPEND_OVERLAY_INPUT = _WIM_PROVIDER_SUSPEND_OVERLAY_INPUT; -pub type PWIM_PROVIDER_SUSPEND_OVERLAY_INPUT = *mut _WIM_PROVIDER_SUSPEND_OVERLAY_INPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _WIM_PROVIDER_OVERLAY_ENTRY { - pub NextEntryOffset: DWORD, - pub DataSourceId: LARGE_INTEGER, - pub WimGuid: GUID, - pub WimFileNameOffset: DWORD, - pub WimType: DWORD, - pub WimIndex: DWORD, - pub Flags: DWORD, -} -pub type WIM_PROVIDER_OVERLAY_ENTRY = _WIM_PROVIDER_OVERLAY_ENTRY; -pub type PWIM_PROVIDER_OVERLAY_ENTRY = *mut _WIM_PROVIDER_OVERLAY_ENTRY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_PROVIDER_EXTERNAL_INFO_V0 { - pub Version: DWORD, - pub Algorithm: DWORD, -} -pub type FILE_PROVIDER_EXTERNAL_INFO_V0 = _FILE_PROVIDER_EXTERNAL_INFO_V0; -pub type PFILE_PROVIDER_EXTERNAL_INFO_V0 = *mut _FILE_PROVIDER_EXTERNAL_INFO_V0; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FILE_PROVIDER_EXTERNAL_INFO_V1 { - pub Version: DWORD, - pub Algorithm: DWORD, - pub Flags: DWORD, -} -pub type FILE_PROVIDER_EXTERNAL_INFO_V1 = _FILE_PROVIDER_EXTERNAL_INFO_V1; -pub type PFILE_PROVIDER_EXTERNAL_INFO_V1 = *mut _FILE_PROVIDER_EXTERNAL_INFO_V1; -pub type FILE_PROVIDER_EXTERNAL_INFO = FILE_PROVIDER_EXTERNAL_INFO_V1; -pub type PFILE_PROVIDER_EXTERNAL_INFO = PFILE_PROVIDER_EXTERNAL_INFO_V1; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CONTAINER_VOLUME_STATE { - pub Flags: DWORD, -} -pub type CONTAINER_VOLUME_STATE = _CONTAINER_VOLUME_STATE; -pub type PCONTAINER_VOLUME_STATE = *mut _CONTAINER_VOLUME_STATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CONTAINER_ROOT_INFO_INPUT { - pub Flags: DWORD, -} -pub type CONTAINER_ROOT_INFO_INPUT = _CONTAINER_ROOT_INFO_INPUT; -pub type PCONTAINER_ROOT_INFO_INPUT = *mut _CONTAINER_ROOT_INFO_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CONTAINER_ROOT_INFO_OUTPUT { - pub ContainerRootIdLength: WORD, - pub ContainerRootId: [BYTE; 1usize], -} -pub type CONTAINER_ROOT_INFO_OUTPUT = _CONTAINER_ROOT_INFO_OUTPUT; -pub type PCONTAINER_ROOT_INFO_OUTPUT = *mut _CONTAINER_ROOT_INFO_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _VIRTUALIZATION_INSTANCE_INFO_INPUT { - pub NumberOfWorkerThreads: DWORD, - pub Flags: DWORD, -} -pub type VIRTUALIZATION_INSTANCE_INFO_INPUT = _VIRTUALIZATION_INSTANCE_INFO_INPUT; -pub type PVIRTUALIZATION_INSTANCE_INFO_INPUT = *mut _VIRTUALIZATION_INSTANCE_INFO_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _VIRTUALIZATION_INSTANCE_INFO_INPUT_EX { - pub HeaderSize: WORD, - pub Flags: DWORD, - pub NotificationInfoSize: DWORD, - pub NotificationInfoOffset: WORD, - pub ProviderMajorVersion: WORD, -} -pub type VIRTUALIZATION_INSTANCE_INFO_INPUT_EX = _VIRTUALIZATION_INSTANCE_INFO_INPUT_EX; -pub type PVIRTUALIZATION_INSTANCE_INFO_INPUT_EX = *mut _VIRTUALIZATION_INSTANCE_INFO_INPUT_EX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _VIRTUALIZATION_INSTANCE_INFO_OUTPUT { - pub VirtualizationInstanceID: GUID, -} -pub type VIRTUALIZATION_INSTANCE_INFO_OUTPUT = _VIRTUALIZATION_INSTANCE_INFO_OUTPUT; -pub type PVIRTUALIZATION_INSTANCE_INFO_OUTPUT = *mut _VIRTUALIZATION_INSTANCE_INFO_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _GET_FILTER_FILE_IDENTIFIER_INPUT { - pub AltitudeLength: WORD, - pub Altitude: [WCHAR; 1usize], -} -pub type GET_FILTER_FILE_IDENTIFIER_INPUT = _GET_FILTER_FILE_IDENTIFIER_INPUT; -pub type PGET_FILTER_FILE_IDENTIFIER_INPUT = *mut _GET_FILTER_FILE_IDENTIFIER_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _GET_FILTER_FILE_IDENTIFIER_OUTPUT { - pub FilterFileIdentifierLength: WORD, - pub FilterFileIdentifier: [BYTE; 1usize], -} -pub type GET_FILTER_FILE_IDENTIFIER_OUTPUT = _GET_FILTER_FILE_IDENTIFIER_OUTPUT; -pub type PGET_FILTER_FILE_IDENTIFIER_OUTPUT = *mut _GET_FILTER_FILE_IDENTIFIER_OUTPUT; -pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_ENABLE: _FS_BPIO_OPERATIONS = 1; -pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_DISABLE: _FS_BPIO_OPERATIONS = 2; -pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_QUERY: _FS_BPIO_OPERATIONS = 3; -pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_VOLUME_STACK_PAUSE: _FS_BPIO_OPERATIONS = 4; -pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_VOLUME_STACK_RESUME: _FS_BPIO_OPERATIONS = 5; -pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_STREAM_PAUSE: _FS_BPIO_OPERATIONS = 6; -pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_STREAM_RESUME: _FS_BPIO_OPERATIONS = 7; -pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_GET_INFO: _FS_BPIO_OPERATIONS = 8; -pub const _FS_BPIO_OPERATIONS_FS_BPIO_OP_MAX_OPERATION: _FS_BPIO_OPERATIONS = 9; -pub type _FS_BPIO_OPERATIONS = ::std::os::raw::c_int; -pub use self::_FS_BPIO_OPERATIONS as FS_BPIO_OPERATIONS; -pub const _FS_BPIO_INFLAGS_FSBPIO_INFL_None: _FS_BPIO_INFLAGS = 0; -pub const _FS_BPIO_INFLAGS_FSBPIO_INFL_SKIP_STORAGE_STACK_QUERY: _FS_BPIO_INFLAGS = 1; -pub type _FS_BPIO_INFLAGS = ::std::os::raw::c_int; -pub use self::_FS_BPIO_INFLAGS as FS_BPIO_INFLAGS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FS_BPIO_INPUT { - pub Operation: FS_BPIO_OPERATIONS, - pub InFlags: FS_BPIO_INFLAGS, - pub Reserved1: DWORDLONG, - pub Reserved2: DWORDLONG, -} -pub type FS_BPIO_INPUT = _FS_BPIO_INPUT; -pub type PFS_BPIO_INPUT = *mut _FS_BPIO_INPUT; -pub const _FS_BPIO_OUTFLAGS_FSBPIO_OUTFL_None: _FS_BPIO_OUTFLAGS = 0; -pub const _FS_BPIO_OUTFLAGS_FSBPIO_OUTFL_VOLUME_STACK_BYPASS_PAUSED: _FS_BPIO_OUTFLAGS = 1; -pub const _FS_BPIO_OUTFLAGS_FSBPIO_OUTFL_STREAM_BYPASS_PAUSED: _FS_BPIO_OUTFLAGS = 2; -pub const _FS_BPIO_OUTFLAGS_FSBPIO_OUTFL_FILTER_ATTACH_BLOCKED: _FS_BPIO_OUTFLAGS = 4; -pub const _FS_BPIO_OUTFLAGS_FSBPIO_OUTFL_COMPATIBLE_STORAGE_DRIVER: _FS_BPIO_OUTFLAGS = 8; -pub type _FS_BPIO_OUTFLAGS = ::std::os::raw::c_int; -pub use self::_FS_BPIO_OUTFLAGS as FS_BPIO_OUTFLAGS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FS_BPIO_RESULTS { - pub OpStatus: DWORD, - pub FailingDriverNameLen: WORD, - pub FailingDriverName: [WCHAR; 32usize], - pub FailureReasonLen: WORD, - pub FailureReason: [WCHAR; 128usize], -} -pub type FS_BPIO_RESULTS = _FS_BPIO_RESULTS; -pub type PFS_BPIO_RESULTS = *mut _FS_BPIO_RESULTS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FS_BPIO_INFO { - pub ActiveBypassIoCount: DWORD, - pub StorageDriverNameLen: WORD, - pub StorageDriverName: [WCHAR; 32usize], -} -pub type FS_BPIO_INFO = _FS_BPIO_INFO; -pub type PFS_BPIO_INFO = *mut _FS_BPIO_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FS_BPIO_OUTPUT { - pub Operation: FS_BPIO_OPERATIONS, - pub OutFlags: FS_BPIO_OUTFLAGS, - pub Reserved1: DWORDLONG, - pub Reserved2: DWORDLONG, - pub __bindgen_anon_1: _FS_BPIO_OUTPUT__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _FS_BPIO_OUTPUT__bindgen_ty_1 { - pub Enable: FS_BPIO_RESULTS, - pub Query: FS_BPIO_RESULTS, - pub VolumeStackResume: FS_BPIO_RESULTS, - pub StreamResume: FS_BPIO_RESULTS, - pub GetInfo: FS_BPIO_INFO, -} -pub type FS_BPIO_OUTPUT = _FS_BPIO_OUTPUT; -pub type PFS_BPIO_OUTPUT = *mut _FS_BPIO_OUTPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SMB_SHARE_FLUSH_AND_PURGE_INPUT { - pub Version: WORD, -} -pub type SMB_SHARE_FLUSH_AND_PURGE_INPUT = _SMB_SHARE_FLUSH_AND_PURGE_INPUT; -pub type PSMB_SHARE_FLUSH_AND_PURGE_INPUT = *mut _SMB_SHARE_FLUSH_AND_PURGE_INPUT; -pub type PCSMB_SHARE_FLUSH_AND_PURGE_INPUT = *const _SMB_SHARE_FLUSH_AND_PURGE_INPUT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SMB_SHARE_FLUSH_AND_PURGE_OUTPUT { - pub cEntriesPurged: DWORD, -} -pub type SMB_SHARE_FLUSH_AND_PURGE_OUTPUT = _SMB_SHARE_FLUSH_AND_PURGE_OUTPUT; -pub type PSMB_SHARE_FLUSH_AND_PURGE_OUTPUT = *mut _SMB_SHARE_FLUSH_AND_PURGE_OUTPUT; -pub type PCSMB_SHARE_FLUSH_AND_PURGE_OUTPUT = *const _SMB_SHARE_FLUSH_AND_PURGE_OUTPUT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _DISK_EXTENT { - pub DiskNumber: DWORD, - pub StartingOffset: LARGE_INTEGER, - pub ExtentLength: LARGE_INTEGER, -} -pub type DISK_EXTENT = _DISK_EXTENT; -pub type PDISK_EXTENT = *mut _DISK_EXTENT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _VOLUME_DISK_EXTENTS { - pub NumberOfDiskExtents: DWORD, - pub Extents: [DISK_EXTENT; 1usize], -} -pub type VOLUME_DISK_EXTENTS = _VOLUME_DISK_EXTENTS; -pub type PVOLUME_DISK_EXTENTS = *mut _VOLUME_DISK_EXTENTS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _VOLUME_GET_GPT_ATTRIBUTES_INFORMATION { - pub GptAttributes: DWORDLONG, -} -pub type VOLUME_GET_GPT_ATTRIBUTES_INFORMATION = _VOLUME_GET_GPT_ATTRIBUTES_INFORMATION; -pub type PVOLUME_GET_GPT_ATTRIBUTES_INFORMATION = *mut _VOLUME_GET_GPT_ATTRIBUTES_INFORMATION; -pub type PIO_IRP_EXT_PROCESS_TRACKED_OFFSET_CALLBACK = ::std::option::Option< - unsafe extern "C" fn( - SourceContext: *mut _IO_IRP_EXT_TRACK_OFFSET_HEADER, - TargetContext: *mut _IO_IRP_EXT_TRACK_OFFSET_HEADER, - RelativeOffset: LONGLONG, - ), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _IO_IRP_EXT_TRACK_OFFSET_HEADER { - pub Validation: WORD, - pub Flags: WORD, - pub TrackedOffsetCallback: PIO_IRP_EXT_PROCESS_TRACKED_OFFSET_CALLBACK, -} -pub type IO_IRP_EXT_TRACK_OFFSET_HEADER = _IO_IRP_EXT_TRACK_OFFSET_HEADER; -pub type PIO_IRP_EXT_TRACK_OFFSET_HEADER = *mut _IO_IRP_EXT_TRACK_OFFSET_HEADER; -pub type UWORD = WORD; -extern "C" { - pub static GUID_DEVINTERFACE_SMARTCARD_READER: GUID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCARD_IO_REQUEST { - pub dwProtocol: DWORD, - pub cbPciLength: DWORD, -} -pub type SCARD_IO_REQUEST = _SCARD_IO_REQUEST; -pub type PSCARD_IO_REQUEST = *mut _SCARD_IO_REQUEST; -pub type LPSCARD_IO_REQUEST = *mut _SCARD_IO_REQUEST; -pub type LPCSCARD_IO_REQUEST = *const SCARD_IO_REQUEST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCARD_T0_COMMAND { - pub bCla: BYTE, - pub bIns: BYTE, - pub bP1: BYTE, - pub bP2: BYTE, - pub bP3: BYTE, -} -pub type SCARD_T0_COMMAND = _SCARD_T0_COMMAND; -pub type LPSCARD_T0_COMMAND = *mut _SCARD_T0_COMMAND; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _SCARD_T0_REQUEST { - pub ioRequest: SCARD_IO_REQUEST, - pub bSw1: BYTE, - pub bSw2: BYTE, - pub __bindgen_anon_1: _SCARD_T0_REQUEST__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SCARD_T0_REQUEST__bindgen_ty_1 { - pub CmdBytes: SCARD_T0_COMMAND, - pub rgbHeader: [BYTE; 5usize], -} -pub type SCARD_T0_REQUEST = _SCARD_T0_REQUEST; -pub type PSCARD_T0_REQUEST = *mut SCARD_T0_REQUEST; -pub type LPSCARD_T0_REQUEST = *mut SCARD_T0_REQUEST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCARD_T1_REQUEST { - pub ioRequest: SCARD_IO_REQUEST, -} -pub type SCARD_T1_REQUEST = _SCARD_T1_REQUEST; -pub type PSCARD_T1_REQUEST = *mut SCARD_T1_REQUEST; -pub type LPSCARD_T1_REQUEST = *mut SCARD_T1_REQUEST; -pub type LPCBYTE = *const BYTE; -extern "C" { - pub static g_rgSCardT0Pci: SCARD_IO_REQUEST; -} -extern "C" { - pub static g_rgSCardT1Pci: SCARD_IO_REQUEST; -} -extern "C" { - pub static g_rgSCardRawPci: SCARD_IO_REQUEST; -} -pub type SCARDCONTEXT = ULONG_PTR; -pub type PSCARDCONTEXT = *mut SCARDCONTEXT; -pub type LPSCARDCONTEXT = *mut SCARDCONTEXT; -pub type SCARDHANDLE = ULONG_PTR; -pub type PSCARDHANDLE = *mut SCARDHANDLE; -pub type LPSCARDHANDLE = *mut SCARDHANDLE; -extern "C" { - pub fn SCardEstablishContext( - dwScope: DWORD, - pvReserved1: LPCVOID, - pvReserved2: LPCVOID, - phContext: LPSCARDCONTEXT, - ) -> LONG; -} -extern "C" { - pub fn SCardReleaseContext(hContext: SCARDCONTEXT) -> LONG; -} -extern "C" { - pub fn SCardIsValidContext(hContext: SCARDCONTEXT) -> LONG; -} -extern "C" { - pub fn SCardListReaderGroupsA( - hContext: SCARDCONTEXT, - mszGroups: LPSTR, - pcchGroups: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardListReaderGroupsW( - hContext: SCARDCONTEXT, - mszGroups: LPWSTR, - pcchGroups: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardListReadersA( - hContext: SCARDCONTEXT, - mszGroups: LPCSTR, - mszReaders: LPSTR, - pcchReaders: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardListReadersW( - hContext: SCARDCONTEXT, - mszGroups: LPCWSTR, - mszReaders: LPWSTR, - pcchReaders: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardListCardsA( - hContext: SCARDCONTEXT, - pbAtr: LPCBYTE, - rgquidInterfaces: LPCGUID, - cguidInterfaceCount: DWORD, - mszCards: *mut CHAR, - pcchCards: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardListCardsW( - hContext: SCARDCONTEXT, - pbAtr: LPCBYTE, - rgquidInterfaces: LPCGUID, - cguidInterfaceCount: DWORD, - mszCards: *mut WCHAR, - pcchCards: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardListInterfacesA( - hContext: SCARDCONTEXT, - szCard: LPCSTR, - pguidInterfaces: LPGUID, - pcguidInterfaces: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardListInterfacesW( - hContext: SCARDCONTEXT, - szCard: LPCWSTR, - pguidInterfaces: LPGUID, - pcguidInterfaces: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardGetProviderIdA( - hContext: SCARDCONTEXT, - szCard: LPCSTR, - pguidProviderId: LPGUID, - ) -> LONG; -} -extern "C" { - pub fn SCardGetProviderIdW( - hContext: SCARDCONTEXT, - szCard: LPCWSTR, - pguidProviderId: LPGUID, - ) -> LONG; -} -extern "C" { - pub fn SCardGetCardTypeProviderNameA( - hContext: SCARDCONTEXT, - szCardName: LPCSTR, - dwProviderId: DWORD, - szProvider: *mut CHAR, - pcchProvider: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardGetCardTypeProviderNameW( - hContext: SCARDCONTEXT, - szCardName: LPCWSTR, - dwProviderId: DWORD, - szProvider: *mut WCHAR, - pcchProvider: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardIntroduceReaderGroupA(hContext: SCARDCONTEXT, szGroupName: LPCSTR) -> LONG; -} -extern "C" { - pub fn SCardIntroduceReaderGroupW(hContext: SCARDCONTEXT, szGroupName: LPCWSTR) -> LONG; -} -extern "C" { - pub fn SCardForgetReaderGroupA(hContext: SCARDCONTEXT, szGroupName: LPCSTR) -> LONG; -} -extern "C" { - pub fn SCardForgetReaderGroupW(hContext: SCARDCONTEXT, szGroupName: LPCWSTR) -> LONG; -} -extern "C" { - pub fn SCardIntroduceReaderA( - hContext: SCARDCONTEXT, - szReaderName: LPCSTR, - szDeviceName: LPCSTR, - ) -> LONG; -} -extern "C" { - pub fn SCardIntroduceReaderW( - hContext: SCARDCONTEXT, - szReaderName: LPCWSTR, - szDeviceName: LPCWSTR, - ) -> LONG; -} -extern "C" { - pub fn SCardForgetReaderA(hContext: SCARDCONTEXT, szReaderName: LPCSTR) -> LONG; -} -extern "C" { - pub fn SCardForgetReaderW(hContext: SCARDCONTEXT, szReaderName: LPCWSTR) -> LONG; -} -extern "C" { - pub fn SCardAddReaderToGroupA( - hContext: SCARDCONTEXT, - szReaderName: LPCSTR, - szGroupName: LPCSTR, - ) -> LONG; -} -extern "C" { - pub fn SCardAddReaderToGroupW( - hContext: SCARDCONTEXT, - szReaderName: LPCWSTR, - szGroupName: LPCWSTR, - ) -> LONG; -} -extern "C" { - pub fn SCardRemoveReaderFromGroupA( - hContext: SCARDCONTEXT, - szReaderName: LPCSTR, - szGroupName: LPCSTR, - ) -> LONG; -} -extern "C" { - pub fn SCardRemoveReaderFromGroupW( - hContext: SCARDCONTEXT, - szReaderName: LPCWSTR, - szGroupName: LPCWSTR, - ) -> LONG; -} -extern "C" { - pub fn SCardIntroduceCardTypeA( - hContext: SCARDCONTEXT, - szCardName: LPCSTR, - pguidPrimaryProvider: LPCGUID, - rgguidInterfaces: LPCGUID, - dwInterfaceCount: DWORD, - pbAtr: LPCBYTE, - pbAtrMask: LPCBYTE, - cbAtrLen: DWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardIntroduceCardTypeW( - hContext: SCARDCONTEXT, - szCardName: LPCWSTR, - pguidPrimaryProvider: LPCGUID, - rgguidInterfaces: LPCGUID, - dwInterfaceCount: DWORD, - pbAtr: LPCBYTE, - pbAtrMask: LPCBYTE, - cbAtrLen: DWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardSetCardTypeProviderNameA( - hContext: SCARDCONTEXT, - szCardName: LPCSTR, - dwProviderId: DWORD, - szProvider: LPCSTR, - ) -> LONG; -} -extern "C" { - pub fn SCardSetCardTypeProviderNameW( - hContext: SCARDCONTEXT, - szCardName: LPCWSTR, - dwProviderId: DWORD, - szProvider: LPCWSTR, - ) -> LONG; -} -extern "C" { - pub fn SCardForgetCardTypeA(hContext: SCARDCONTEXT, szCardName: LPCSTR) -> LONG; -} -extern "C" { - pub fn SCardForgetCardTypeW(hContext: SCARDCONTEXT, szCardName: LPCWSTR) -> LONG; -} -extern "C" { - pub fn SCardFreeMemory(hContext: SCARDCONTEXT, pvMem: LPCVOID) -> LONG; -} -extern "C" { - pub fn SCardAccessStartedEvent() -> HANDLE; -} -extern "C" { - pub fn SCardReleaseStartedEvent(); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SCARD_READERSTATEA { - pub szReader: LPCSTR, - pub pvUserData: LPVOID, - pub dwCurrentState: DWORD, - pub dwEventState: DWORD, - pub cbAtr: DWORD, - pub rgbAtr: [BYTE; 36usize], -} -pub type PSCARD_READERSTATEA = *mut SCARD_READERSTATEA; -pub type LPSCARD_READERSTATEA = *mut SCARD_READERSTATEA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SCARD_READERSTATEW { - pub szReader: LPCWSTR, - pub pvUserData: LPVOID, - pub dwCurrentState: DWORD, - pub dwEventState: DWORD, - pub cbAtr: DWORD, - pub rgbAtr: [BYTE; 36usize], -} -pub type PSCARD_READERSTATEW = *mut SCARD_READERSTATEW; -pub type LPSCARD_READERSTATEW = *mut SCARD_READERSTATEW; -pub type SCARD_READERSTATE = SCARD_READERSTATEA; -pub type PSCARD_READERSTATE = PSCARD_READERSTATEA; -pub type LPSCARD_READERSTATE = LPSCARD_READERSTATEA; -extern "C" { - pub fn SCardLocateCardsA( - hContext: SCARDCONTEXT, - mszCards: LPCSTR, - rgReaderStates: LPSCARD_READERSTATEA, - cReaders: DWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardLocateCardsW( - hContext: SCARDCONTEXT, - mszCards: LPCWSTR, - rgReaderStates: LPSCARD_READERSTATEW, - cReaders: DWORD, - ) -> LONG; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SCARD_ATRMASK { - pub cbAtr: DWORD, - pub rgbAtr: [BYTE; 36usize], - pub rgbMask: [BYTE; 36usize], -} -pub type SCARD_ATRMASK = _SCARD_ATRMASK; -pub type PSCARD_ATRMASK = *mut _SCARD_ATRMASK; -pub type LPSCARD_ATRMASK = *mut _SCARD_ATRMASK; -extern "C" { - pub fn SCardLocateCardsByATRA( - hContext: SCARDCONTEXT, - rgAtrMasks: LPSCARD_ATRMASK, - cAtrs: DWORD, - rgReaderStates: LPSCARD_READERSTATEA, - cReaders: DWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardLocateCardsByATRW( - hContext: SCARDCONTEXT, - rgAtrMasks: LPSCARD_ATRMASK, - cAtrs: DWORD, - rgReaderStates: LPSCARD_READERSTATEW, - cReaders: DWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardGetStatusChangeA( - hContext: SCARDCONTEXT, - dwTimeout: DWORD, - rgReaderStates: LPSCARD_READERSTATEA, - cReaders: DWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardGetStatusChangeW( - hContext: SCARDCONTEXT, - dwTimeout: DWORD, - rgReaderStates: LPSCARD_READERSTATEW, - cReaders: DWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardCancel(hContext: SCARDCONTEXT) -> LONG; -} -extern "C" { - pub fn SCardConnectA( - hContext: SCARDCONTEXT, - szReader: LPCSTR, - dwShareMode: DWORD, - dwPreferredProtocols: DWORD, - phCard: LPSCARDHANDLE, - pdwActiveProtocol: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardConnectW( - hContext: SCARDCONTEXT, - szReader: LPCWSTR, - dwShareMode: DWORD, - dwPreferredProtocols: DWORD, - phCard: LPSCARDHANDLE, - pdwActiveProtocol: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardReconnect( - hCard: SCARDHANDLE, - dwShareMode: DWORD, - dwPreferredProtocols: DWORD, - dwInitialization: DWORD, - pdwActiveProtocol: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardDisconnect(hCard: SCARDHANDLE, dwDisposition: DWORD) -> LONG; -} -extern "C" { - pub fn SCardBeginTransaction(hCard: SCARDHANDLE) -> LONG; -} -extern "C" { - pub fn SCardEndTransaction(hCard: SCARDHANDLE, dwDisposition: DWORD) -> LONG; -} -extern "C" { - pub fn SCardCancelTransaction(hCard: SCARDHANDLE) -> LONG; -} -extern "C" { - pub fn SCardState( - hCard: SCARDHANDLE, - pdwState: LPDWORD, - pdwProtocol: LPDWORD, - pbAtr: LPBYTE, - pcbAtrLen: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardStatusA( - hCard: SCARDHANDLE, - mszReaderNames: LPSTR, - pcchReaderLen: LPDWORD, - pdwState: LPDWORD, - pdwProtocol: LPDWORD, - pbAtr: LPBYTE, - pcbAtrLen: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardStatusW( - hCard: SCARDHANDLE, - mszReaderNames: LPWSTR, - pcchReaderLen: LPDWORD, - pdwState: LPDWORD, - pdwProtocol: LPDWORD, - pbAtr: LPBYTE, - pcbAtrLen: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardTransmit( - hCard: SCARDHANDLE, - pioSendPci: LPCSCARD_IO_REQUEST, - pbSendBuffer: LPCBYTE, - cbSendLength: DWORD, - pioRecvPci: LPSCARD_IO_REQUEST, - pbRecvBuffer: LPBYTE, - pcbRecvLength: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardGetTransmitCount(hCard: SCARDHANDLE, pcTransmitCount: LPDWORD) -> LONG; -} -extern "C" { - pub fn SCardControl( - hCard: SCARDHANDLE, - dwControlCode: DWORD, - lpInBuffer: LPCVOID, - cbInBufferSize: DWORD, - lpOutBuffer: LPVOID, - cbOutBufferSize: DWORD, - lpBytesReturned: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardGetAttrib( - hCard: SCARDHANDLE, - dwAttrId: DWORD, - pbAttr: LPBYTE, - pcbAttrLen: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardSetAttrib( - hCard: SCARDHANDLE, - dwAttrId: DWORD, - pbAttr: LPCBYTE, - cbAttrLen: DWORD, - ) -> LONG; -} -pub type LPOCNCONNPROCA = ::std::option::Option< - unsafe extern "C" fn(arg1: SCARDCONTEXT, arg2: LPSTR, arg3: LPSTR, arg4: PVOID) -> SCARDHANDLE, ->; -pub type LPOCNCONNPROCW = ::std::option::Option< - unsafe extern "C" fn( - arg1: SCARDCONTEXT, - arg2: LPWSTR, - arg3: LPWSTR, - arg4: PVOID, - ) -> SCARDHANDLE, ->; -pub type LPOCNCHKPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: SCARDCONTEXT, arg2: SCARDHANDLE, arg3: PVOID) -> BOOL, ->; -pub type LPOCNDSCPROC = - ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct OPENCARD_SEARCH_CRITERIAA { - pub dwStructSize: DWORD, - pub lpstrGroupNames: LPSTR, - pub nMaxGroupNames: DWORD, - pub rgguidInterfaces: LPCGUID, - pub cguidInterfaces: DWORD, - pub lpstrCardNames: LPSTR, - pub nMaxCardNames: DWORD, - pub lpfnCheck: LPOCNCHKPROC, - pub lpfnConnect: LPOCNCONNPROCA, - pub lpfnDisconnect: LPOCNDSCPROC, - pub pvUserData: LPVOID, - pub dwShareMode: DWORD, - pub dwPreferredProtocols: DWORD, -} -pub type POPENCARD_SEARCH_CRITERIAA = *mut OPENCARD_SEARCH_CRITERIAA; -pub type LPOPENCARD_SEARCH_CRITERIAA = *mut OPENCARD_SEARCH_CRITERIAA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct OPENCARD_SEARCH_CRITERIAW { - pub dwStructSize: DWORD, - pub lpstrGroupNames: LPWSTR, - pub nMaxGroupNames: DWORD, - pub rgguidInterfaces: LPCGUID, - pub cguidInterfaces: DWORD, - pub lpstrCardNames: LPWSTR, - pub nMaxCardNames: DWORD, - pub lpfnCheck: LPOCNCHKPROC, - pub lpfnConnect: LPOCNCONNPROCW, - pub lpfnDisconnect: LPOCNDSCPROC, - pub pvUserData: LPVOID, - pub dwShareMode: DWORD, - pub dwPreferredProtocols: DWORD, -} -pub type POPENCARD_SEARCH_CRITERIAW = *mut OPENCARD_SEARCH_CRITERIAW; -pub type LPOPENCARD_SEARCH_CRITERIAW = *mut OPENCARD_SEARCH_CRITERIAW; -pub type OPENCARD_SEARCH_CRITERIA = OPENCARD_SEARCH_CRITERIAA; -pub type POPENCARD_SEARCH_CRITERIA = POPENCARD_SEARCH_CRITERIAA; -pub type LPOPENCARD_SEARCH_CRITERIA = LPOPENCARD_SEARCH_CRITERIAA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct OPENCARDNAME_EXA { - pub dwStructSize: DWORD, - pub hSCardContext: SCARDCONTEXT, - pub hwndOwner: HWND, - pub dwFlags: DWORD, - pub lpstrTitle: LPCSTR, - pub lpstrSearchDesc: LPCSTR, - pub hIcon: HICON, - pub pOpenCardSearchCriteria: POPENCARD_SEARCH_CRITERIAA, - pub lpfnConnect: LPOCNCONNPROCA, - pub pvUserData: LPVOID, - pub dwShareMode: DWORD, - pub dwPreferredProtocols: DWORD, - pub lpstrRdr: LPSTR, - pub nMaxRdr: DWORD, - pub lpstrCard: LPSTR, - pub nMaxCard: DWORD, - pub dwActiveProtocol: DWORD, - pub hCardHandle: SCARDHANDLE, -} -pub type POPENCARDNAME_EXA = *mut OPENCARDNAME_EXA; -pub type LPOPENCARDNAME_EXA = *mut OPENCARDNAME_EXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct OPENCARDNAME_EXW { - pub dwStructSize: DWORD, - pub hSCardContext: SCARDCONTEXT, - pub hwndOwner: HWND, - pub dwFlags: DWORD, - pub lpstrTitle: LPCWSTR, - pub lpstrSearchDesc: LPCWSTR, - pub hIcon: HICON, - pub pOpenCardSearchCriteria: POPENCARD_SEARCH_CRITERIAW, - pub lpfnConnect: LPOCNCONNPROCW, - pub pvUserData: LPVOID, - pub dwShareMode: DWORD, - pub dwPreferredProtocols: DWORD, - pub lpstrRdr: LPWSTR, - pub nMaxRdr: DWORD, - pub lpstrCard: LPWSTR, - pub nMaxCard: DWORD, - pub dwActiveProtocol: DWORD, - pub hCardHandle: SCARDHANDLE, -} -pub type POPENCARDNAME_EXW = *mut OPENCARDNAME_EXW; -pub type LPOPENCARDNAME_EXW = *mut OPENCARDNAME_EXW; -pub type OPENCARDNAME_EX = OPENCARDNAME_EXA; -pub type POPENCARDNAME_EX = POPENCARDNAME_EXA; -pub type LPOPENCARDNAME_EX = LPOPENCARDNAME_EXA; -pub const READER_SEL_REQUEST_MATCH_TYPE_RSR_MATCH_TYPE_READER_AND_CONTAINER: - READER_SEL_REQUEST_MATCH_TYPE = 1; -pub const READER_SEL_REQUEST_MATCH_TYPE_RSR_MATCH_TYPE_SERIAL_NUMBER: - READER_SEL_REQUEST_MATCH_TYPE = 2; -pub const READER_SEL_REQUEST_MATCH_TYPE_RSR_MATCH_TYPE_ALL_CARDS: READER_SEL_REQUEST_MATCH_TYPE = 3; -pub type READER_SEL_REQUEST_MATCH_TYPE = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct READER_SEL_REQUEST { - pub dwShareMode: DWORD, - pub dwPreferredProtocols: DWORD, - pub MatchType: READER_SEL_REQUEST_MATCH_TYPE, - pub __bindgen_anon_1: READER_SEL_REQUEST__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union READER_SEL_REQUEST__bindgen_ty_1 { - pub ReaderAndContainerParameter: READER_SEL_REQUEST__bindgen_ty_1__bindgen_ty_1, - pub SerialNumberParameter: READER_SEL_REQUEST__bindgen_ty_1__bindgen_ty_2, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct READER_SEL_REQUEST__bindgen_ty_1__bindgen_ty_1 { - pub cbReaderNameOffset: DWORD, - pub cchReaderNameLength: DWORD, - pub cbContainerNameOffset: DWORD, - pub cchContainerNameLength: DWORD, - pub dwDesiredCardModuleVersion: DWORD, - pub dwCspFlags: DWORD, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct READER_SEL_REQUEST__bindgen_ty_1__bindgen_ty_2 { - pub cbSerialNumberOffset: DWORD, - pub cbSerialNumberLength: DWORD, - pub dwDesiredCardModuleVersion: DWORD, -} -pub type PREADER_SEL_REQUEST = *mut READER_SEL_REQUEST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct READER_SEL_RESPONSE { - pub cbReaderNameOffset: DWORD, - pub cchReaderNameLength: DWORD, - pub cbCardNameOffset: DWORD, - pub cchCardNameLength: DWORD, -} -pub type PREADER_SEL_RESPONSE = *mut READER_SEL_RESPONSE; -extern "C" { - pub fn SCardUIDlgSelectCardA(arg1: LPOPENCARDNAME_EXA) -> LONG; -} -extern "C" { - pub fn SCardUIDlgSelectCardW(arg1: LPOPENCARDNAME_EXW) -> LONG; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct OPENCARDNAMEA { - pub dwStructSize: DWORD, - pub hwndOwner: HWND, - pub hSCardContext: SCARDCONTEXT, - pub lpstrGroupNames: LPSTR, - pub nMaxGroupNames: DWORD, - pub lpstrCardNames: LPSTR, - pub nMaxCardNames: DWORD, - pub rgguidInterfaces: LPCGUID, - pub cguidInterfaces: DWORD, - pub lpstrRdr: LPSTR, - pub nMaxRdr: DWORD, - pub lpstrCard: LPSTR, - pub nMaxCard: DWORD, - pub lpstrTitle: LPCSTR, - pub dwFlags: DWORD, - pub pvUserData: LPVOID, - pub dwShareMode: DWORD, - pub dwPreferredProtocols: DWORD, - pub dwActiveProtocol: DWORD, - pub lpfnConnect: LPOCNCONNPROCA, - pub lpfnCheck: LPOCNCHKPROC, - pub lpfnDisconnect: LPOCNDSCPROC, - pub hCardHandle: SCARDHANDLE, -} -pub type POPENCARDNAMEA = *mut OPENCARDNAMEA; -pub type LPOPENCARDNAMEA = *mut OPENCARDNAMEA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct OPENCARDNAMEW { - pub dwStructSize: DWORD, - pub hwndOwner: HWND, - pub hSCardContext: SCARDCONTEXT, - pub lpstrGroupNames: LPWSTR, - pub nMaxGroupNames: DWORD, - pub lpstrCardNames: LPWSTR, - pub nMaxCardNames: DWORD, - pub rgguidInterfaces: LPCGUID, - pub cguidInterfaces: DWORD, - pub lpstrRdr: LPWSTR, - pub nMaxRdr: DWORD, - pub lpstrCard: LPWSTR, - pub nMaxCard: DWORD, - pub lpstrTitle: LPCWSTR, - pub dwFlags: DWORD, - pub pvUserData: LPVOID, - pub dwShareMode: DWORD, - pub dwPreferredProtocols: DWORD, - pub dwActiveProtocol: DWORD, - pub lpfnConnect: LPOCNCONNPROCW, - pub lpfnCheck: LPOCNCHKPROC, - pub lpfnDisconnect: LPOCNDSCPROC, - pub hCardHandle: SCARDHANDLE, -} -pub type POPENCARDNAMEW = *mut OPENCARDNAMEW; -pub type LPOPENCARDNAMEW = *mut OPENCARDNAMEW; -pub type OPENCARDNAME = OPENCARDNAMEA; -pub type POPENCARDNAME = POPENCARDNAMEA; -pub type LPOPENCARDNAME = LPOPENCARDNAMEA; -extern "C" { - pub fn GetOpenCardNameA(arg1: LPOPENCARDNAMEA) -> LONG; -} -extern "C" { - pub fn GetOpenCardNameW(arg1: LPOPENCARDNAMEW) -> LONG; -} -extern "C" { - pub fn SCardDlgExtendedError() -> LONG; -} -extern "C" { - pub fn SCardReadCacheA( - hContext: SCARDCONTEXT, - CardIdentifier: *mut UUID, - FreshnessCounter: DWORD, - LookupName: LPSTR, - Data: PBYTE, - DataLen: *mut DWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardReadCacheW( - hContext: SCARDCONTEXT, - CardIdentifier: *mut UUID, - FreshnessCounter: DWORD, - LookupName: LPWSTR, - Data: PBYTE, - DataLen: *mut DWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardWriteCacheA( - hContext: SCARDCONTEXT, - CardIdentifier: *mut UUID, - FreshnessCounter: DWORD, - LookupName: LPSTR, - Data: PBYTE, - DataLen: DWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardWriteCacheW( - hContext: SCARDCONTEXT, - CardIdentifier: *mut UUID, - FreshnessCounter: DWORD, - LookupName: LPWSTR, - Data: PBYTE, - DataLen: DWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardGetReaderIconA( - hContext: SCARDCONTEXT, - szReaderName: LPCSTR, - pbIcon: LPBYTE, - pcbIcon: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardGetReaderIconW( - hContext: SCARDCONTEXT, - szReaderName: LPCWSTR, - pbIcon: LPBYTE, - pcbIcon: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardGetDeviceTypeIdA( - hContext: SCARDCONTEXT, - szReaderName: LPCSTR, - pdwDeviceTypeId: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardGetDeviceTypeIdW( - hContext: SCARDCONTEXT, - szReaderName: LPCWSTR, - pdwDeviceTypeId: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardGetReaderDeviceInstanceIdA( - hContext: SCARDCONTEXT, - szReaderName: LPCSTR, - szDeviceInstanceId: LPSTR, - pcchDeviceInstanceId: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardGetReaderDeviceInstanceIdW( - hContext: SCARDCONTEXT, - szReaderName: LPCWSTR, - szDeviceInstanceId: LPWSTR, - pcchDeviceInstanceId: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardListReadersWithDeviceInstanceIdA( - hContext: SCARDCONTEXT, - szDeviceInstanceId: LPCSTR, - mszReaders: LPSTR, - pcchReaders: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardListReadersWithDeviceInstanceIdW( - hContext: SCARDCONTEXT, - szDeviceInstanceId: LPCWSTR, - mszReaders: LPWSTR, - pcchReaders: LPDWORD, - ) -> LONG; -} -extern "C" { - pub fn SCardAudit(hContext: SCARDCONTEXT, dwEvent: DWORD) -> LONG; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PSP { - _unused: [u8; 0], -} -pub type HPROPSHEETPAGE = *mut _PSP; -pub type LPFNPSPCALLBACKA = ::std::option::Option< - unsafe extern "C" fn(hwnd: HWND, uMsg: UINT, ppsp: *mut _PROPSHEETPAGEA) -> UINT, ->; -pub type LPFNPSPCALLBACKW = ::std::option::Option< - unsafe extern "C" fn(hwnd: HWND, uMsg: UINT, ppsp: *mut _PROPSHEETPAGEW) -> UINT, ->; -pub type PROPSHEETPAGE_RESOURCE = LPCDLGTEMPLATE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROPSHEETPAGEA_V1 { - pub dwSize: DWORD, - pub dwFlags: DWORD, - pub hInstance: HINSTANCE, - pub __bindgen_anon_1: _PROPSHEETPAGEA_V1__bindgen_ty_1, - pub __bindgen_anon_2: _PROPSHEETPAGEA_V1__bindgen_ty_2, - pub pszTitle: LPCSTR, - pub pfnDlgProc: DLGPROC, - pub lParam: LPARAM, - pub pfnCallback: LPFNPSPCALLBACKA, - pub pcRefParent: *mut UINT, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEA_V1__bindgen_ty_1 { - pub pszTemplate: LPCSTR, - pub pResource: PROPSHEETPAGE_RESOURCE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEA_V1__bindgen_ty_2 { - pub hIcon: HICON, - pub pszIcon: LPCSTR, -} -pub type PROPSHEETPAGEA_V1 = _PROPSHEETPAGEA_V1; -pub type LPPROPSHEETPAGEA_V1 = *mut _PROPSHEETPAGEA_V1; -pub type LPCPROPSHEETPAGEA_V1 = *const PROPSHEETPAGEA_V1; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROPSHEETPAGEA_V2 { - pub dwSize: DWORD, - pub dwFlags: DWORD, - pub hInstance: HINSTANCE, - pub __bindgen_anon_1: _PROPSHEETPAGEA_V2__bindgen_ty_1, - pub __bindgen_anon_2: _PROPSHEETPAGEA_V2__bindgen_ty_2, - pub pszTitle: LPCSTR, - pub pfnDlgProc: DLGPROC, - pub lParam: LPARAM, - pub pfnCallback: LPFNPSPCALLBACKA, - pub pcRefParent: *mut UINT, - pub pszHeaderTitle: LPCSTR, - pub pszHeaderSubTitle: LPCSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEA_V2__bindgen_ty_1 { - pub pszTemplate: LPCSTR, - pub pResource: PROPSHEETPAGE_RESOURCE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEA_V2__bindgen_ty_2 { - pub hIcon: HICON, - pub pszIcon: LPCSTR, -} -pub type PROPSHEETPAGEA_V2 = _PROPSHEETPAGEA_V2; -pub type LPPROPSHEETPAGEA_V2 = *mut _PROPSHEETPAGEA_V2; -pub type LPCPROPSHEETPAGEA_V2 = *const PROPSHEETPAGEA_V2; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROPSHEETPAGEA_V3 { - pub dwSize: DWORD, - pub dwFlags: DWORD, - pub hInstance: HINSTANCE, - pub __bindgen_anon_1: _PROPSHEETPAGEA_V3__bindgen_ty_1, - pub __bindgen_anon_2: _PROPSHEETPAGEA_V3__bindgen_ty_2, - pub pszTitle: LPCSTR, - pub pfnDlgProc: DLGPROC, - pub lParam: LPARAM, - pub pfnCallback: LPFNPSPCALLBACKA, - pub pcRefParent: *mut UINT, - pub pszHeaderTitle: LPCSTR, - pub pszHeaderSubTitle: LPCSTR, - pub hActCtx: HANDLE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEA_V3__bindgen_ty_1 { - pub pszTemplate: LPCSTR, - pub pResource: PROPSHEETPAGE_RESOURCE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEA_V3__bindgen_ty_2 { - pub hIcon: HICON, - pub pszIcon: LPCSTR, -} -pub type PROPSHEETPAGEA_V3 = _PROPSHEETPAGEA_V3; -pub type LPPROPSHEETPAGEA_V3 = *mut _PROPSHEETPAGEA_V3; -pub type LPCPROPSHEETPAGEA_V3 = *const PROPSHEETPAGEA_V3; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROPSHEETPAGEA { - pub dwSize: DWORD, - pub dwFlags: DWORD, - pub hInstance: HINSTANCE, - pub __bindgen_anon_1: _PROPSHEETPAGEA__bindgen_ty_1, - pub __bindgen_anon_2: _PROPSHEETPAGEA__bindgen_ty_2, - pub pszTitle: LPCSTR, - pub pfnDlgProc: DLGPROC, - pub lParam: LPARAM, - pub pfnCallback: LPFNPSPCALLBACKA, - pub pcRefParent: *mut UINT, - pub pszHeaderTitle: LPCSTR, - pub pszHeaderSubTitle: LPCSTR, - pub hActCtx: HANDLE, - pub __bindgen_anon_3: _PROPSHEETPAGEA__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEA__bindgen_ty_1 { - pub pszTemplate: LPCSTR, - pub pResource: PROPSHEETPAGE_RESOURCE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEA__bindgen_ty_2 { - pub hIcon: HICON, - pub pszIcon: LPCSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEA__bindgen_ty_3 { - pub hbmHeader: HBITMAP, - pub pszbmHeader: LPCSTR, -} -pub type PROPSHEETPAGEA_V4 = _PROPSHEETPAGEA; -pub type LPPROPSHEETPAGEA_V4 = *mut _PROPSHEETPAGEA; -pub type LPCPROPSHEETPAGEA_V4 = *const PROPSHEETPAGEA_V4; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROPSHEETPAGEW_V1 { - pub dwSize: DWORD, - pub dwFlags: DWORD, - pub hInstance: HINSTANCE, - pub __bindgen_anon_1: _PROPSHEETPAGEW_V1__bindgen_ty_1, - pub __bindgen_anon_2: _PROPSHEETPAGEW_V1__bindgen_ty_2, - pub pszTitle: LPCWSTR, - pub pfnDlgProc: DLGPROC, - pub lParam: LPARAM, - pub pfnCallback: LPFNPSPCALLBACKW, - pub pcRefParent: *mut UINT, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEW_V1__bindgen_ty_1 { - pub pszTemplate: LPCWSTR, - pub pResource: PROPSHEETPAGE_RESOURCE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEW_V1__bindgen_ty_2 { - pub hIcon: HICON, - pub pszIcon: LPCWSTR, -} -pub type PROPSHEETPAGEW_V1 = _PROPSHEETPAGEW_V1; -pub type LPPROPSHEETPAGEW_V1 = *mut _PROPSHEETPAGEW_V1; -pub type LPCPROPSHEETPAGEW_V1 = *const PROPSHEETPAGEW_V1; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROPSHEETPAGEW_V2 { - pub dwSize: DWORD, - pub dwFlags: DWORD, - pub hInstance: HINSTANCE, - pub __bindgen_anon_1: _PROPSHEETPAGEW_V2__bindgen_ty_1, - pub __bindgen_anon_2: _PROPSHEETPAGEW_V2__bindgen_ty_2, - pub pszTitle: LPCWSTR, - pub pfnDlgProc: DLGPROC, - pub lParam: LPARAM, - pub pfnCallback: LPFNPSPCALLBACKW, - pub pcRefParent: *mut UINT, - pub pszHeaderTitle: LPCWSTR, - pub pszHeaderSubTitle: LPCWSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEW_V2__bindgen_ty_1 { - pub pszTemplate: LPCWSTR, - pub pResource: PROPSHEETPAGE_RESOURCE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEW_V2__bindgen_ty_2 { - pub hIcon: HICON, - pub pszIcon: LPCWSTR, -} -pub type PROPSHEETPAGEW_V2 = _PROPSHEETPAGEW_V2; -pub type LPPROPSHEETPAGEW_V2 = *mut _PROPSHEETPAGEW_V2; -pub type LPCPROPSHEETPAGEW_V2 = *const PROPSHEETPAGEW_V2; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROPSHEETPAGEW_V3 { - pub dwSize: DWORD, - pub dwFlags: DWORD, - pub hInstance: HINSTANCE, - pub __bindgen_anon_1: _PROPSHEETPAGEW_V3__bindgen_ty_1, - pub __bindgen_anon_2: _PROPSHEETPAGEW_V3__bindgen_ty_2, - pub pszTitle: LPCWSTR, - pub pfnDlgProc: DLGPROC, - pub lParam: LPARAM, - pub pfnCallback: LPFNPSPCALLBACKW, - pub pcRefParent: *mut UINT, - pub pszHeaderTitle: LPCWSTR, - pub pszHeaderSubTitle: LPCWSTR, - pub hActCtx: HANDLE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEW_V3__bindgen_ty_1 { - pub pszTemplate: LPCWSTR, - pub pResource: PROPSHEETPAGE_RESOURCE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEW_V3__bindgen_ty_2 { - pub hIcon: HICON, - pub pszIcon: LPCWSTR, -} -pub type PROPSHEETPAGEW_V3 = _PROPSHEETPAGEW_V3; -pub type LPPROPSHEETPAGEW_V3 = *mut _PROPSHEETPAGEW_V3; -pub type LPCPROPSHEETPAGEW_V3 = *const PROPSHEETPAGEW_V3; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROPSHEETPAGEW { - pub dwSize: DWORD, - pub dwFlags: DWORD, - pub hInstance: HINSTANCE, - pub __bindgen_anon_1: _PROPSHEETPAGEW__bindgen_ty_1, - pub __bindgen_anon_2: _PROPSHEETPAGEW__bindgen_ty_2, - pub pszTitle: LPCWSTR, - pub pfnDlgProc: DLGPROC, - pub lParam: LPARAM, - pub pfnCallback: LPFNPSPCALLBACKW, - pub pcRefParent: *mut UINT, - pub pszHeaderTitle: LPCWSTR, - pub pszHeaderSubTitle: LPCWSTR, - pub hActCtx: HANDLE, - pub __bindgen_anon_3: _PROPSHEETPAGEW__bindgen_ty_3, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEW__bindgen_ty_1 { - pub pszTemplate: LPCWSTR, - pub pResource: PROPSHEETPAGE_RESOURCE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEW__bindgen_ty_2 { - pub hIcon: HICON, - pub pszIcon: LPCWSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETPAGEW__bindgen_ty_3 { - pub hbmHeader: HBITMAP, - pub pszbmHeader: LPCWSTR, -} -pub type PROPSHEETPAGEW_V4 = _PROPSHEETPAGEW; -pub type LPPROPSHEETPAGEW_V4 = *mut _PROPSHEETPAGEW; -pub type LPCPROPSHEETPAGEW_V4 = *const PROPSHEETPAGEW_V4; -pub type PROPSHEETPAGEA_LATEST = PROPSHEETPAGEA_V4; -pub type PROPSHEETPAGEW_LATEST = PROPSHEETPAGEW_V4; -pub type LPPROPSHEETPAGEA_LATEST = LPPROPSHEETPAGEA_V4; -pub type LPPROPSHEETPAGEW_LATEST = LPPROPSHEETPAGEW_V4; -pub type LPCPROPSHEETPAGEA_LATEST = LPCPROPSHEETPAGEA_V4; -pub type LPCPROPSHEETPAGEW_LATEST = LPCPROPSHEETPAGEW_V4; -pub type PROPSHEETPAGEA = PROPSHEETPAGEA_V4; -pub type PROPSHEETPAGEW = PROPSHEETPAGEW_V4; -pub type LPPROPSHEETPAGEA = LPPROPSHEETPAGEA_V4; -pub type LPPROPSHEETPAGEW = LPPROPSHEETPAGEW_V4; -pub type LPCPROPSHEETPAGEA = LPCPROPSHEETPAGEA_V4; -pub type LPCPROPSHEETPAGEW = LPCPROPSHEETPAGEW_V4; -pub type PFNPROPSHEETCALLBACK = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: LPARAM) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROPSHEETHEADERA_V1 { - pub dwSize: DWORD, - pub dwFlags: DWORD, - pub hwndParent: HWND, - pub hInstance: HINSTANCE, - pub __bindgen_anon_1: _PROPSHEETHEADERA_V1__bindgen_ty_1, - pub pszCaption: LPCSTR, - pub nPages: UINT, - pub __bindgen_anon_2: _PROPSHEETHEADERA_V1__bindgen_ty_2, - pub __bindgen_anon_3: _PROPSHEETHEADERA_V1__bindgen_ty_3, - pub pfnCallback: PFNPROPSHEETCALLBACK, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERA_V1__bindgen_ty_1 { - pub hIcon: HICON, - pub pszIcon: LPCSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERA_V1__bindgen_ty_2 { - pub nStartPage: UINT, - pub pStartPage: LPCSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERA_V1__bindgen_ty_3 { - pub ppsp: LPCPROPSHEETPAGEA, - pub phpage: *mut HPROPSHEETPAGE, -} -pub type PROPSHEETHEADERA_V1 = _PROPSHEETHEADERA_V1; -pub type LPPROPSHEETHEADERA_V1 = *mut _PROPSHEETHEADERA_V1; -pub type LPCPROPSHEETHEADERA_V1 = *const PROPSHEETHEADERA_V1; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROPSHEETHEADERA_V2 { - pub dwSize: DWORD, - pub dwFlags: DWORD, - pub hwndParent: HWND, - pub hInstance: HINSTANCE, - pub __bindgen_anon_1: _PROPSHEETHEADERA_V2__bindgen_ty_1, - pub pszCaption: LPCSTR, - pub nPages: UINT, - pub __bindgen_anon_2: _PROPSHEETHEADERA_V2__bindgen_ty_2, - pub __bindgen_anon_3: _PROPSHEETHEADERA_V2__bindgen_ty_3, - pub pfnCallback: PFNPROPSHEETCALLBACK, - pub __bindgen_anon_4: _PROPSHEETHEADERA_V2__bindgen_ty_4, - pub hplWatermark: HPALETTE, - pub __bindgen_anon_5: _PROPSHEETHEADERA_V2__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERA_V2__bindgen_ty_1 { - pub hIcon: HICON, - pub pszIcon: LPCSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERA_V2__bindgen_ty_2 { - pub nStartPage: UINT, - pub pStartPage: LPCSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERA_V2__bindgen_ty_3 { - pub ppsp: LPCPROPSHEETPAGEA, - pub phpage: *mut HPROPSHEETPAGE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERA_V2__bindgen_ty_4 { - pub hbmWatermark: HBITMAP, - pub pszbmWatermark: LPCSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERA_V2__bindgen_ty_5 { - pub hbmHeader: HBITMAP, - pub pszbmHeader: LPCSTR, -} -pub type PROPSHEETHEADERA_V2 = _PROPSHEETHEADERA_V2; -pub type LPPROPSHEETHEADERA_V2 = *mut _PROPSHEETHEADERA_V2; -pub type LPCPROPSHEETHEADERA_V2 = *const PROPSHEETHEADERA_V2; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROPSHEETHEADERW_V1 { - pub dwSize: DWORD, - pub dwFlags: DWORD, - pub hwndParent: HWND, - pub hInstance: HINSTANCE, - pub __bindgen_anon_1: _PROPSHEETHEADERW_V1__bindgen_ty_1, - pub pszCaption: LPCWSTR, - pub nPages: UINT, - pub __bindgen_anon_2: _PROPSHEETHEADERW_V1__bindgen_ty_2, - pub __bindgen_anon_3: _PROPSHEETHEADERW_V1__bindgen_ty_3, - pub pfnCallback: PFNPROPSHEETCALLBACK, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERW_V1__bindgen_ty_1 { - pub hIcon: HICON, - pub pszIcon: LPCWSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERW_V1__bindgen_ty_2 { - pub nStartPage: UINT, - pub pStartPage: LPCWSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERW_V1__bindgen_ty_3 { - pub ppsp: LPCPROPSHEETPAGEW, - pub phpage: *mut HPROPSHEETPAGE, -} -pub type PROPSHEETHEADERW_V1 = _PROPSHEETHEADERW_V1; -pub type LPPROPSHEETHEADERW_V1 = *mut _PROPSHEETHEADERW_V1; -pub type LPCPROPSHEETHEADERW_V1 = *const PROPSHEETHEADERW_V1; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PROPSHEETHEADERW_V2 { - pub dwSize: DWORD, - pub dwFlags: DWORD, - pub hwndParent: HWND, - pub hInstance: HINSTANCE, - pub __bindgen_anon_1: _PROPSHEETHEADERW_V2__bindgen_ty_1, - pub pszCaption: LPCWSTR, - pub nPages: UINT, - pub __bindgen_anon_2: _PROPSHEETHEADERW_V2__bindgen_ty_2, - pub __bindgen_anon_3: _PROPSHEETHEADERW_V2__bindgen_ty_3, - pub pfnCallback: PFNPROPSHEETCALLBACK, - pub __bindgen_anon_4: _PROPSHEETHEADERW_V2__bindgen_ty_4, - pub hplWatermark: HPALETTE, - pub __bindgen_anon_5: _PROPSHEETHEADERW_V2__bindgen_ty_5, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERW_V2__bindgen_ty_1 { - pub hIcon: HICON, - pub pszIcon: LPCWSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERW_V2__bindgen_ty_2 { - pub nStartPage: UINT, - pub pStartPage: LPCWSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERW_V2__bindgen_ty_3 { - pub ppsp: LPCPROPSHEETPAGEW, - pub phpage: *mut HPROPSHEETPAGE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERW_V2__bindgen_ty_4 { - pub hbmWatermark: HBITMAP, - pub pszbmWatermark: LPCWSTR, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PROPSHEETHEADERW_V2__bindgen_ty_5 { - pub hbmHeader: HBITMAP, - pub pszbmHeader: LPCWSTR, -} -pub type PROPSHEETHEADERW_V2 = _PROPSHEETHEADERW_V2; -pub type LPPROPSHEETHEADERW_V2 = *mut _PROPSHEETHEADERW_V2; -pub type LPCPROPSHEETHEADERW_V2 = *const PROPSHEETHEADERW_V2; -pub type PROPSHEETHEADERA = PROPSHEETHEADERA_V2; -pub type PROPSHEETHEADERW = PROPSHEETHEADERW_V2; -pub type LPPROPSHEETHEADERA = LPPROPSHEETHEADERA_V2; -pub type LPPROPSHEETHEADERW = LPPROPSHEETHEADERW_V2; -pub type LPCPROPSHEETHEADERA = LPCPROPSHEETHEADERA_V2; -pub type LPCPROPSHEETHEADERW = LPCPROPSHEETHEADERW_V2; -extern "C" { - pub fn CreatePropertySheetPageA(constPropSheetPagePointer: LPCPROPSHEETPAGEA) - -> HPROPSHEETPAGE; -} -extern "C" { - pub fn CreatePropertySheetPageW(constPropSheetPagePointer: LPCPROPSHEETPAGEW) - -> HPROPSHEETPAGE; -} -extern "C" { - pub fn DestroyPropertySheetPage(arg1: HPROPSHEETPAGE) -> BOOL; -} -extern "C" { - pub fn PropertySheetA(arg1: LPCPROPSHEETHEADERA) -> INT_PTR; -} -extern "C" { - pub fn PropertySheetW(arg1: LPCPROPSHEETHEADERW) -> INT_PTR; -} -pub type LPFNADDPROPSHEETPAGE = - ::std::option::Option BOOL>; -pub type LPFNADDPROPSHEETPAGES = ::std::option::Option< - unsafe extern "C" fn(arg1: LPVOID, arg2: LPFNADDPROPSHEETPAGE, arg3: LPARAM) -> BOOL, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PSHNOTIFY { - pub hdr: NMHDR, - pub lParam: LPARAM, -} -pub type PSHNOTIFY = _PSHNOTIFY; -pub type LPPSHNOTIFY = *mut _PSHNOTIFY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_1A { - pub Flags: DWORD, - pub pDescription: LPSTR, - pub pName: LPSTR, - pub pComment: LPSTR, -} -pub type PRINTER_INFO_1A = _PRINTER_INFO_1A; -pub type PPRINTER_INFO_1A = *mut _PRINTER_INFO_1A; -pub type LPPRINTER_INFO_1A = *mut _PRINTER_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_1W { - pub Flags: DWORD, - pub pDescription: LPWSTR, - pub pName: LPWSTR, - pub pComment: LPWSTR, -} -pub type PRINTER_INFO_1W = _PRINTER_INFO_1W; -pub type PPRINTER_INFO_1W = *mut _PRINTER_INFO_1W; -pub type LPPRINTER_INFO_1W = *mut _PRINTER_INFO_1W; -pub type PRINTER_INFO_1 = PRINTER_INFO_1A; -pub type PPRINTER_INFO_1 = PPRINTER_INFO_1A; -pub type LPPRINTER_INFO_1 = LPPRINTER_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_2A { - pub pServerName: LPSTR, - pub pPrinterName: LPSTR, - pub pShareName: LPSTR, - pub pPortName: LPSTR, - pub pDriverName: LPSTR, - pub pComment: LPSTR, - pub pLocation: LPSTR, - pub pDevMode: LPDEVMODEA, - pub pSepFile: LPSTR, - pub pPrintProcessor: LPSTR, - pub pDatatype: LPSTR, - pub pParameters: LPSTR, - pub pSecurityDescriptor: PSECURITY_DESCRIPTOR, - pub Attributes: DWORD, - pub Priority: DWORD, - pub DefaultPriority: DWORD, - pub StartTime: DWORD, - pub UntilTime: DWORD, - pub Status: DWORD, - pub cJobs: DWORD, - pub AveragePPM: DWORD, -} -pub type PRINTER_INFO_2A = _PRINTER_INFO_2A; -pub type PPRINTER_INFO_2A = *mut _PRINTER_INFO_2A; -pub type LPPRINTER_INFO_2A = *mut _PRINTER_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_2W { - pub pServerName: LPWSTR, - pub pPrinterName: LPWSTR, - pub pShareName: LPWSTR, - pub pPortName: LPWSTR, - pub pDriverName: LPWSTR, - pub pComment: LPWSTR, - pub pLocation: LPWSTR, - pub pDevMode: LPDEVMODEW, - pub pSepFile: LPWSTR, - pub pPrintProcessor: LPWSTR, - pub pDatatype: LPWSTR, - pub pParameters: LPWSTR, - pub pSecurityDescriptor: PSECURITY_DESCRIPTOR, - pub Attributes: DWORD, - pub Priority: DWORD, - pub DefaultPriority: DWORD, - pub StartTime: DWORD, - pub UntilTime: DWORD, - pub Status: DWORD, - pub cJobs: DWORD, - pub AveragePPM: DWORD, -} -pub type PRINTER_INFO_2W = _PRINTER_INFO_2W; -pub type PPRINTER_INFO_2W = *mut _PRINTER_INFO_2W; -pub type LPPRINTER_INFO_2W = *mut _PRINTER_INFO_2W; -pub type PRINTER_INFO_2 = PRINTER_INFO_2A; -pub type PPRINTER_INFO_2 = PPRINTER_INFO_2A; -pub type LPPRINTER_INFO_2 = LPPRINTER_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_3 { - pub pSecurityDescriptor: PSECURITY_DESCRIPTOR, -} -pub type PRINTER_INFO_3 = _PRINTER_INFO_3; -pub type PPRINTER_INFO_3 = *mut _PRINTER_INFO_3; -pub type LPPRINTER_INFO_3 = *mut _PRINTER_INFO_3; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_4A { - pub pPrinterName: LPSTR, - pub pServerName: LPSTR, - pub Attributes: DWORD, -} -pub type PRINTER_INFO_4A = _PRINTER_INFO_4A; -pub type PPRINTER_INFO_4A = *mut _PRINTER_INFO_4A; -pub type LPPRINTER_INFO_4A = *mut _PRINTER_INFO_4A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_4W { - pub pPrinterName: LPWSTR, - pub pServerName: LPWSTR, - pub Attributes: DWORD, -} -pub type PRINTER_INFO_4W = _PRINTER_INFO_4W; -pub type PPRINTER_INFO_4W = *mut _PRINTER_INFO_4W; -pub type LPPRINTER_INFO_4W = *mut _PRINTER_INFO_4W; -pub type PRINTER_INFO_4 = PRINTER_INFO_4A; -pub type PPRINTER_INFO_4 = PPRINTER_INFO_4A; -pub type LPPRINTER_INFO_4 = LPPRINTER_INFO_4A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_5A { - pub pPrinterName: LPSTR, - pub pPortName: LPSTR, - pub Attributes: DWORD, - pub DeviceNotSelectedTimeout: DWORD, - pub TransmissionRetryTimeout: DWORD, -} -pub type PRINTER_INFO_5A = _PRINTER_INFO_5A; -pub type PPRINTER_INFO_5A = *mut _PRINTER_INFO_5A; -pub type LPPRINTER_INFO_5A = *mut _PRINTER_INFO_5A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_5W { - pub pPrinterName: LPWSTR, - pub pPortName: LPWSTR, - pub Attributes: DWORD, - pub DeviceNotSelectedTimeout: DWORD, - pub TransmissionRetryTimeout: DWORD, -} -pub type PRINTER_INFO_5W = _PRINTER_INFO_5W; -pub type PPRINTER_INFO_5W = *mut _PRINTER_INFO_5W; -pub type LPPRINTER_INFO_5W = *mut _PRINTER_INFO_5W; -pub type PRINTER_INFO_5 = PRINTER_INFO_5A; -pub type PPRINTER_INFO_5 = PPRINTER_INFO_5A; -pub type LPPRINTER_INFO_5 = LPPRINTER_INFO_5A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_6 { - pub dwStatus: DWORD, -} -pub type PRINTER_INFO_6 = _PRINTER_INFO_6; -pub type PPRINTER_INFO_6 = *mut _PRINTER_INFO_6; -pub type LPPRINTER_INFO_6 = *mut _PRINTER_INFO_6; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_7A { - pub pszObjectGUID: LPSTR, - pub dwAction: DWORD, -} -pub type PRINTER_INFO_7A = _PRINTER_INFO_7A; -pub type PPRINTER_INFO_7A = *mut _PRINTER_INFO_7A; -pub type LPPRINTER_INFO_7A = *mut _PRINTER_INFO_7A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_7W { - pub pszObjectGUID: LPWSTR, - pub dwAction: DWORD, -} -pub type PRINTER_INFO_7W = _PRINTER_INFO_7W; -pub type PPRINTER_INFO_7W = *mut _PRINTER_INFO_7W; -pub type LPPRINTER_INFO_7W = *mut _PRINTER_INFO_7W; -pub type PRINTER_INFO_7 = PRINTER_INFO_7A; -pub type PPRINTER_INFO_7 = PPRINTER_INFO_7A; -pub type LPPRINTER_INFO_7 = LPPRINTER_INFO_7A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_8A { - pub pDevMode: LPDEVMODEA, -} -pub type PRINTER_INFO_8A = _PRINTER_INFO_8A; -pub type PPRINTER_INFO_8A = *mut _PRINTER_INFO_8A; -pub type LPPRINTER_INFO_8A = *mut _PRINTER_INFO_8A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_8W { - pub pDevMode: LPDEVMODEW, -} -pub type PRINTER_INFO_8W = _PRINTER_INFO_8W; -pub type PPRINTER_INFO_8W = *mut _PRINTER_INFO_8W; -pub type LPPRINTER_INFO_8W = *mut _PRINTER_INFO_8W; -pub type PRINTER_INFO_8 = PRINTER_INFO_8A; -pub type PPRINTER_INFO_8 = PPRINTER_INFO_8A; -pub type LPPRINTER_INFO_8 = LPPRINTER_INFO_8A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_9A { - pub pDevMode: LPDEVMODEA, -} -pub type PRINTER_INFO_9A = _PRINTER_INFO_9A; -pub type PPRINTER_INFO_9A = *mut _PRINTER_INFO_9A; -pub type LPPRINTER_INFO_9A = *mut _PRINTER_INFO_9A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_INFO_9W { - pub pDevMode: LPDEVMODEW, -} -pub type PRINTER_INFO_9W = _PRINTER_INFO_9W; -pub type PPRINTER_INFO_9W = *mut _PRINTER_INFO_9W; -pub type LPPRINTER_INFO_9W = *mut _PRINTER_INFO_9W; -pub type PRINTER_INFO_9 = PRINTER_INFO_9A; -pub type PPRINTER_INFO_9 = PPRINTER_INFO_9A; -pub type LPPRINTER_INFO_9 = LPPRINTER_INFO_9A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOB_INFO_1A { - pub JobId: DWORD, - pub pPrinterName: LPSTR, - pub pMachineName: LPSTR, - pub pUserName: LPSTR, - pub pDocument: LPSTR, - pub pDatatype: LPSTR, - pub pStatus: LPSTR, - pub Status: DWORD, - pub Priority: DWORD, - pub Position: DWORD, - pub TotalPages: DWORD, - pub PagesPrinted: DWORD, - pub Submitted: SYSTEMTIME, -} -pub type JOB_INFO_1A = _JOB_INFO_1A; -pub type PJOB_INFO_1A = *mut _JOB_INFO_1A; -pub type LPJOB_INFO_1A = *mut _JOB_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOB_INFO_1W { - pub JobId: DWORD, - pub pPrinterName: LPWSTR, - pub pMachineName: LPWSTR, - pub pUserName: LPWSTR, - pub pDocument: LPWSTR, - pub pDatatype: LPWSTR, - pub pStatus: LPWSTR, - pub Status: DWORD, - pub Priority: DWORD, - pub Position: DWORD, - pub TotalPages: DWORD, - pub PagesPrinted: DWORD, - pub Submitted: SYSTEMTIME, -} -pub type JOB_INFO_1W = _JOB_INFO_1W; -pub type PJOB_INFO_1W = *mut _JOB_INFO_1W; -pub type LPJOB_INFO_1W = *mut _JOB_INFO_1W; -pub type JOB_INFO_1 = JOB_INFO_1A; -pub type PJOB_INFO_1 = PJOB_INFO_1A; -pub type LPJOB_INFO_1 = LPJOB_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOB_INFO_2A { - pub JobId: DWORD, - pub pPrinterName: LPSTR, - pub pMachineName: LPSTR, - pub pUserName: LPSTR, - pub pDocument: LPSTR, - pub pNotifyName: LPSTR, - pub pDatatype: LPSTR, - pub pPrintProcessor: LPSTR, - pub pParameters: LPSTR, - pub pDriverName: LPSTR, - pub pDevMode: LPDEVMODEA, - pub pStatus: LPSTR, - pub pSecurityDescriptor: PSECURITY_DESCRIPTOR, - pub Status: DWORD, - pub Priority: DWORD, - pub Position: DWORD, - pub StartTime: DWORD, - pub UntilTime: DWORD, - pub TotalPages: DWORD, - pub Size: DWORD, - pub Submitted: SYSTEMTIME, - pub Time: DWORD, - pub PagesPrinted: DWORD, -} -pub type JOB_INFO_2A = _JOB_INFO_2A; -pub type PJOB_INFO_2A = *mut _JOB_INFO_2A; -pub type LPJOB_INFO_2A = *mut _JOB_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOB_INFO_2W { - pub JobId: DWORD, - pub pPrinterName: LPWSTR, - pub pMachineName: LPWSTR, - pub pUserName: LPWSTR, - pub pDocument: LPWSTR, - pub pNotifyName: LPWSTR, - pub pDatatype: LPWSTR, - pub pPrintProcessor: LPWSTR, - pub pParameters: LPWSTR, - pub pDriverName: LPWSTR, - pub pDevMode: LPDEVMODEW, - pub pStatus: LPWSTR, - pub pSecurityDescriptor: PSECURITY_DESCRIPTOR, - pub Status: DWORD, - pub Priority: DWORD, - pub Position: DWORD, - pub StartTime: DWORD, - pub UntilTime: DWORD, - pub TotalPages: DWORD, - pub Size: DWORD, - pub Submitted: SYSTEMTIME, - pub Time: DWORD, - pub PagesPrinted: DWORD, -} -pub type JOB_INFO_2W = _JOB_INFO_2W; -pub type PJOB_INFO_2W = *mut _JOB_INFO_2W; -pub type LPJOB_INFO_2W = *mut _JOB_INFO_2W; -pub type JOB_INFO_2 = JOB_INFO_2A; -pub type PJOB_INFO_2 = PJOB_INFO_2A; -pub type LPJOB_INFO_2 = LPJOB_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOB_INFO_3 { - pub JobId: DWORD, - pub NextJobId: DWORD, - pub Reserved: DWORD, -} -pub type JOB_INFO_3 = _JOB_INFO_3; -pub type PJOB_INFO_3 = *mut _JOB_INFO_3; -pub type LPJOB_INFO_3 = *mut _JOB_INFO_3; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOB_INFO_4A { - pub JobId: DWORD, - pub pPrinterName: LPSTR, - pub pMachineName: LPSTR, - pub pUserName: LPSTR, - pub pDocument: LPSTR, - pub pNotifyName: LPSTR, - pub pDatatype: LPSTR, - pub pPrintProcessor: LPSTR, - pub pParameters: LPSTR, - pub pDriverName: LPSTR, - pub pDevMode: LPDEVMODEA, - pub pStatus: LPSTR, - pub pSecurityDescriptor: PSECURITY_DESCRIPTOR, - pub Status: DWORD, - pub Priority: DWORD, - pub Position: DWORD, - pub StartTime: DWORD, - pub UntilTime: DWORD, - pub TotalPages: DWORD, - pub Size: DWORD, - pub Submitted: SYSTEMTIME, - pub Time: DWORD, - pub PagesPrinted: DWORD, - pub SizeHigh: LONG, -} -pub type JOB_INFO_4A = _JOB_INFO_4A; -pub type PJOB_INFO_4A = *mut _JOB_INFO_4A; -pub type LPJOB_INFO_4A = *mut _JOB_INFO_4A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _JOB_INFO_4W { - pub JobId: DWORD, - pub pPrinterName: LPWSTR, - pub pMachineName: LPWSTR, - pub pUserName: LPWSTR, - pub pDocument: LPWSTR, - pub pNotifyName: LPWSTR, - pub pDatatype: LPWSTR, - pub pPrintProcessor: LPWSTR, - pub pParameters: LPWSTR, - pub pDriverName: LPWSTR, - pub pDevMode: LPDEVMODEW, - pub pStatus: LPWSTR, - pub pSecurityDescriptor: PSECURITY_DESCRIPTOR, - pub Status: DWORD, - pub Priority: DWORD, - pub Position: DWORD, - pub StartTime: DWORD, - pub UntilTime: DWORD, - pub TotalPages: DWORD, - pub Size: DWORD, - pub Submitted: SYSTEMTIME, - pub Time: DWORD, - pub PagesPrinted: DWORD, - pub SizeHigh: LONG, -} -pub type JOB_INFO_4W = _JOB_INFO_4W; -pub type PJOB_INFO_4W = *mut _JOB_INFO_4W; -pub type LPJOB_INFO_4W = *mut _JOB_INFO_4W; -pub type JOB_INFO_4 = JOB_INFO_4A; -pub type PJOB_INFO_4 = PJOB_INFO_4A; -pub type LPJOB_INFO_4 = LPJOB_INFO_4A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ADDJOB_INFO_1A { - pub Path: LPSTR, - pub JobId: DWORD, -} -pub type ADDJOB_INFO_1A = _ADDJOB_INFO_1A; -pub type PADDJOB_INFO_1A = *mut _ADDJOB_INFO_1A; -pub type LPADDJOB_INFO_1A = *mut _ADDJOB_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ADDJOB_INFO_1W { - pub Path: LPWSTR, - pub JobId: DWORD, -} -pub type ADDJOB_INFO_1W = _ADDJOB_INFO_1W; -pub type PADDJOB_INFO_1W = *mut _ADDJOB_INFO_1W; -pub type LPADDJOB_INFO_1W = *mut _ADDJOB_INFO_1W; -pub type ADDJOB_INFO_1 = ADDJOB_INFO_1A; -pub type PADDJOB_INFO_1 = PADDJOB_INFO_1A; -pub type LPADDJOB_INFO_1 = LPADDJOB_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVER_INFO_1A { - pub pName: LPSTR, -} -pub type DRIVER_INFO_1A = _DRIVER_INFO_1A; -pub type PDRIVER_INFO_1A = *mut _DRIVER_INFO_1A; -pub type LPDRIVER_INFO_1A = *mut _DRIVER_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVER_INFO_1W { - pub pName: LPWSTR, -} -pub type DRIVER_INFO_1W = _DRIVER_INFO_1W; -pub type PDRIVER_INFO_1W = *mut _DRIVER_INFO_1W; -pub type LPDRIVER_INFO_1W = *mut _DRIVER_INFO_1W; -pub type DRIVER_INFO_1 = DRIVER_INFO_1A; -pub type PDRIVER_INFO_1 = PDRIVER_INFO_1A; -pub type LPDRIVER_INFO_1 = LPDRIVER_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVER_INFO_2A { - pub cVersion: DWORD, - pub pName: LPSTR, - pub pEnvironment: LPSTR, - pub pDriverPath: LPSTR, - pub pDataFile: LPSTR, - pub pConfigFile: LPSTR, -} -pub type DRIVER_INFO_2A = _DRIVER_INFO_2A; -pub type PDRIVER_INFO_2A = *mut _DRIVER_INFO_2A; -pub type LPDRIVER_INFO_2A = *mut _DRIVER_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVER_INFO_2W { - pub cVersion: DWORD, - pub pName: LPWSTR, - pub pEnvironment: LPWSTR, - pub pDriverPath: LPWSTR, - pub pDataFile: LPWSTR, - pub pConfigFile: LPWSTR, -} -pub type DRIVER_INFO_2W = _DRIVER_INFO_2W; -pub type PDRIVER_INFO_2W = *mut _DRIVER_INFO_2W; -pub type LPDRIVER_INFO_2W = *mut _DRIVER_INFO_2W; -pub type DRIVER_INFO_2 = DRIVER_INFO_2A; -pub type PDRIVER_INFO_2 = PDRIVER_INFO_2A; -pub type LPDRIVER_INFO_2 = LPDRIVER_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVER_INFO_3A { - pub cVersion: DWORD, - pub pName: LPSTR, - pub pEnvironment: LPSTR, - pub pDriverPath: LPSTR, - pub pDataFile: LPSTR, - pub pConfigFile: LPSTR, - pub pHelpFile: LPSTR, - pub pDependentFiles: LPSTR, - pub pMonitorName: LPSTR, - pub pDefaultDataType: LPSTR, -} -pub type DRIVER_INFO_3A = _DRIVER_INFO_3A; -pub type PDRIVER_INFO_3A = *mut _DRIVER_INFO_3A; -pub type LPDRIVER_INFO_3A = *mut _DRIVER_INFO_3A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVER_INFO_3W { - pub cVersion: DWORD, - pub pName: LPWSTR, - pub pEnvironment: LPWSTR, - pub pDriverPath: LPWSTR, - pub pDataFile: LPWSTR, - pub pConfigFile: LPWSTR, - pub pHelpFile: LPWSTR, - pub pDependentFiles: LPWSTR, - pub pMonitorName: LPWSTR, - pub pDefaultDataType: LPWSTR, -} -pub type DRIVER_INFO_3W = _DRIVER_INFO_3W; -pub type PDRIVER_INFO_3W = *mut _DRIVER_INFO_3W; -pub type LPDRIVER_INFO_3W = *mut _DRIVER_INFO_3W; -pub type DRIVER_INFO_3 = DRIVER_INFO_3A; -pub type PDRIVER_INFO_3 = PDRIVER_INFO_3A; -pub type LPDRIVER_INFO_3 = LPDRIVER_INFO_3A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVER_INFO_4A { - pub cVersion: DWORD, - pub pName: LPSTR, - pub pEnvironment: LPSTR, - pub pDriverPath: LPSTR, - pub pDataFile: LPSTR, - pub pConfigFile: LPSTR, - pub pHelpFile: LPSTR, - pub pDependentFiles: LPSTR, - pub pMonitorName: LPSTR, - pub pDefaultDataType: LPSTR, - pub pszzPreviousNames: LPSTR, -} -pub type DRIVER_INFO_4A = _DRIVER_INFO_4A; -pub type PDRIVER_INFO_4A = *mut _DRIVER_INFO_4A; -pub type LPDRIVER_INFO_4A = *mut _DRIVER_INFO_4A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVER_INFO_4W { - pub cVersion: DWORD, - pub pName: LPWSTR, - pub pEnvironment: LPWSTR, - pub pDriverPath: LPWSTR, - pub pDataFile: LPWSTR, - pub pConfigFile: LPWSTR, - pub pHelpFile: LPWSTR, - pub pDependentFiles: LPWSTR, - pub pMonitorName: LPWSTR, - pub pDefaultDataType: LPWSTR, - pub pszzPreviousNames: LPWSTR, -} -pub type DRIVER_INFO_4W = _DRIVER_INFO_4W; -pub type PDRIVER_INFO_4W = *mut _DRIVER_INFO_4W; -pub type LPDRIVER_INFO_4W = *mut _DRIVER_INFO_4W; -pub type DRIVER_INFO_4 = DRIVER_INFO_4A; -pub type PDRIVER_INFO_4 = PDRIVER_INFO_4A; -pub type LPDRIVER_INFO_4 = LPDRIVER_INFO_4A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVER_INFO_5A { - pub cVersion: DWORD, - pub pName: LPSTR, - pub pEnvironment: LPSTR, - pub pDriverPath: LPSTR, - pub pDataFile: LPSTR, - pub pConfigFile: LPSTR, - pub dwDriverAttributes: DWORD, - pub dwConfigVersion: DWORD, - pub dwDriverVersion: DWORD, -} -pub type DRIVER_INFO_5A = _DRIVER_INFO_5A; -pub type PDRIVER_INFO_5A = *mut _DRIVER_INFO_5A; -pub type LPDRIVER_INFO_5A = *mut _DRIVER_INFO_5A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVER_INFO_5W { - pub cVersion: DWORD, - pub pName: LPWSTR, - pub pEnvironment: LPWSTR, - pub pDriverPath: LPWSTR, - pub pDataFile: LPWSTR, - pub pConfigFile: LPWSTR, - pub dwDriverAttributes: DWORD, - pub dwConfigVersion: DWORD, - pub dwDriverVersion: DWORD, -} -pub type DRIVER_INFO_5W = _DRIVER_INFO_5W; -pub type PDRIVER_INFO_5W = *mut _DRIVER_INFO_5W; -pub type LPDRIVER_INFO_5W = *mut _DRIVER_INFO_5W; -pub type DRIVER_INFO_5 = DRIVER_INFO_5A; -pub type PDRIVER_INFO_5 = PDRIVER_INFO_5A; -pub type LPDRIVER_INFO_5 = LPDRIVER_INFO_5A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVER_INFO_6A { - pub cVersion: DWORD, - pub pName: LPSTR, - pub pEnvironment: LPSTR, - pub pDriverPath: LPSTR, - pub pDataFile: LPSTR, - pub pConfigFile: LPSTR, - pub pHelpFile: LPSTR, - pub pDependentFiles: LPSTR, - pub pMonitorName: LPSTR, - pub pDefaultDataType: LPSTR, - pub pszzPreviousNames: LPSTR, - pub ftDriverDate: FILETIME, - pub dwlDriverVersion: DWORDLONG, - pub pszMfgName: LPSTR, - pub pszOEMUrl: LPSTR, - pub pszHardwareID: LPSTR, - pub pszProvider: LPSTR, -} -pub type DRIVER_INFO_6A = _DRIVER_INFO_6A; -pub type PDRIVER_INFO_6A = *mut _DRIVER_INFO_6A; -pub type LPDRIVER_INFO_6A = *mut _DRIVER_INFO_6A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVER_INFO_6W { - pub cVersion: DWORD, - pub pName: LPWSTR, - pub pEnvironment: LPWSTR, - pub pDriverPath: LPWSTR, - pub pDataFile: LPWSTR, - pub pConfigFile: LPWSTR, - pub pHelpFile: LPWSTR, - pub pDependentFiles: LPWSTR, - pub pMonitorName: LPWSTR, - pub pDefaultDataType: LPWSTR, - pub pszzPreviousNames: LPWSTR, - pub ftDriverDate: FILETIME, - pub dwlDriverVersion: DWORDLONG, - pub pszMfgName: LPWSTR, - pub pszOEMUrl: LPWSTR, - pub pszHardwareID: LPWSTR, - pub pszProvider: LPWSTR, -} -pub type DRIVER_INFO_6W = _DRIVER_INFO_6W; -pub type PDRIVER_INFO_6W = *mut _DRIVER_INFO_6W; -pub type LPDRIVER_INFO_6W = *mut _DRIVER_INFO_6W; -pub type DRIVER_INFO_6 = DRIVER_INFO_6A; -pub type PDRIVER_INFO_6 = PDRIVER_INFO_6A; -pub type LPDRIVER_INFO_6 = LPDRIVER_INFO_6A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVER_INFO_8A { - pub cVersion: DWORD, - pub pName: LPSTR, - pub pEnvironment: LPSTR, - pub pDriverPath: LPSTR, - pub pDataFile: LPSTR, - pub pConfigFile: LPSTR, - pub pHelpFile: LPSTR, - pub pDependentFiles: LPSTR, - pub pMonitorName: LPSTR, - pub pDefaultDataType: LPSTR, - pub pszzPreviousNames: LPSTR, - pub ftDriverDate: FILETIME, - pub dwlDriverVersion: DWORDLONG, - pub pszMfgName: LPSTR, - pub pszOEMUrl: LPSTR, - pub pszHardwareID: LPSTR, - pub pszProvider: LPSTR, - pub pszPrintProcessor: LPSTR, - pub pszVendorSetup: LPSTR, - pub pszzColorProfiles: LPSTR, - pub pszInfPath: LPSTR, - pub dwPrinterDriverAttributes: DWORD, - pub pszzCoreDriverDependencies: LPSTR, - pub ftMinInboxDriverVerDate: FILETIME, - pub dwlMinInboxDriverVerVersion: DWORDLONG, -} -pub type DRIVER_INFO_8A = _DRIVER_INFO_8A; -pub type PDRIVER_INFO_8A = *mut _DRIVER_INFO_8A; -pub type LPDRIVER_INFO_8A = *mut _DRIVER_INFO_8A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DRIVER_INFO_8W { - pub cVersion: DWORD, - pub pName: LPWSTR, - pub pEnvironment: LPWSTR, - pub pDriverPath: LPWSTR, - pub pDataFile: LPWSTR, - pub pConfigFile: LPWSTR, - pub pHelpFile: LPWSTR, - pub pDependentFiles: LPWSTR, - pub pMonitorName: LPWSTR, - pub pDefaultDataType: LPWSTR, - pub pszzPreviousNames: LPWSTR, - pub ftDriverDate: FILETIME, - pub dwlDriverVersion: DWORDLONG, - pub pszMfgName: LPWSTR, - pub pszOEMUrl: LPWSTR, - pub pszHardwareID: LPWSTR, - pub pszProvider: LPWSTR, - pub pszPrintProcessor: LPWSTR, - pub pszVendorSetup: LPWSTR, - pub pszzColorProfiles: LPWSTR, - pub pszInfPath: LPWSTR, - pub dwPrinterDriverAttributes: DWORD, - pub pszzCoreDriverDependencies: LPWSTR, - pub ftMinInboxDriverVerDate: FILETIME, - pub dwlMinInboxDriverVerVersion: DWORDLONG, -} -pub type DRIVER_INFO_8W = _DRIVER_INFO_8W; -pub type PDRIVER_INFO_8W = *mut _DRIVER_INFO_8W; -pub type LPDRIVER_INFO_8W = *mut _DRIVER_INFO_8W; -pub type DRIVER_INFO_8 = DRIVER_INFO_8A; -pub type PDRIVER_INFO_8 = PDRIVER_INFO_8A; -pub type LPDRIVER_INFO_8 = LPDRIVER_INFO_8A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DOC_INFO_1A { - pub pDocName: LPSTR, - pub pOutputFile: LPSTR, - pub pDatatype: LPSTR, -} -pub type DOC_INFO_1A = _DOC_INFO_1A; -pub type PDOC_INFO_1A = *mut _DOC_INFO_1A; -pub type LPDOC_INFO_1A = *mut _DOC_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DOC_INFO_1W { - pub pDocName: LPWSTR, - pub pOutputFile: LPWSTR, - pub pDatatype: LPWSTR, -} -pub type DOC_INFO_1W = _DOC_INFO_1W; -pub type PDOC_INFO_1W = *mut _DOC_INFO_1W; -pub type LPDOC_INFO_1W = *mut _DOC_INFO_1W; -pub type DOC_INFO_1 = DOC_INFO_1A; -pub type PDOC_INFO_1 = PDOC_INFO_1A; -pub type LPDOC_INFO_1 = LPDOC_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FORM_INFO_1A { - pub Flags: DWORD, - pub pName: LPSTR, - pub Size: SIZEL, - pub ImageableArea: RECTL, -} -pub type FORM_INFO_1A = _FORM_INFO_1A; -pub type PFORM_INFO_1A = *mut _FORM_INFO_1A; -pub type LPFORM_INFO_1A = *mut _FORM_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FORM_INFO_1W { - pub Flags: DWORD, - pub pName: LPWSTR, - pub Size: SIZEL, - pub ImageableArea: RECTL, -} -pub type FORM_INFO_1W = _FORM_INFO_1W; -pub type PFORM_INFO_1W = *mut _FORM_INFO_1W; -pub type LPFORM_INFO_1W = *mut _FORM_INFO_1W; -pub type FORM_INFO_1 = FORM_INFO_1A; -pub type PFORM_INFO_1 = PFORM_INFO_1A; -pub type LPFORM_INFO_1 = LPFORM_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FORM_INFO_2A { - pub Flags: DWORD, - pub pName: LPCSTR, - pub Size: SIZEL, - pub ImageableArea: RECTL, - pub pKeyword: LPCSTR, - pub StringType: DWORD, - pub pMuiDll: LPCSTR, - pub dwResourceId: DWORD, - pub pDisplayName: LPCSTR, - pub wLangId: LANGID, -} -pub type FORM_INFO_2A = _FORM_INFO_2A; -pub type PFORM_INFO_2A = *mut _FORM_INFO_2A; -pub type LPFORM_INFO_2A = *mut _FORM_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _FORM_INFO_2W { - pub Flags: DWORD, - pub pName: LPCWSTR, - pub Size: SIZEL, - pub ImageableArea: RECTL, - pub pKeyword: LPCSTR, - pub StringType: DWORD, - pub pMuiDll: LPCWSTR, - pub dwResourceId: DWORD, - pub pDisplayName: LPCWSTR, - pub wLangId: LANGID, -} -pub type FORM_INFO_2W = _FORM_INFO_2W; -pub type PFORM_INFO_2W = *mut _FORM_INFO_2W; -pub type LPFORM_INFO_2W = *mut _FORM_INFO_2W; -pub type FORM_INFO_2 = FORM_INFO_2A; -pub type PFORM_INFO_2 = PFORM_INFO_2A; -pub type LPFORM_INFO_2 = LPFORM_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DOC_INFO_2A { - pub pDocName: LPSTR, - pub pOutputFile: LPSTR, - pub pDatatype: LPSTR, - pub dwMode: DWORD, - pub JobId: DWORD, -} -pub type DOC_INFO_2A = _DOC_INFO_2A; -pub type PDOC_INFO_2A = *mut _DOC_INFO_2A; -pub type LPDOC_INFO_2A = *mut _DOC_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DOC_INFO_2W { - pub pDocName: LPWSTR, - pub pOutputFile: LPWSTR, - pub pDatatype: LPWSTR, - pub dwMode: DWORD, - pub JobId: DWORD, -} -pub type DOC_INFO_2W = _DOC_INFO_2W; -pub type PDOC_INFO_2W = *mut _DOC_INFO_2W; -pub type LPDOC_INFO_2W = *mut _DOC_INFO_2W; -pub type DOC_INFO_2 = DOC_INFO_2A; -pub type PDOC_INFO_2 = PDOC_INFO_2A; -pub type LPDOC_INFO_2 = LPDOC_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DOC_INFO_3A { - pub pDocName: LPSTR, - pub pOutputFile: LPSTR, - pub pDatatype: LPSTR, - pub dwFlags: DWORD, -} -pub type DOC_INFO_3A = _DOC_INFO_3A; -pub type PDOC_INFO_3A = *mut _DOC_INFO_3A; -pub type LPDOC_INFO_3A = *mut _DOC_INFO_3A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DOC_INFO_3W { - pub pDocName: LPWSTR, - pub pOutputFile: LPWSTR, - pub pDatatype: LPWSTR, - pub dwFlags: DWORD, -} -pub type DOC_INFO_3W = _DOC_INFO_3W; -pub type PDOC_INFO_3W = *mut _DOC_INFO_3W; -pub type LPDOC_INFO_3W = *mut _DOC_INFO_3W; -pub type DOC_INFO_3 = DOC_INFO_3A; -pub type PDOC_INFO_3 = PDOC_INFO_3A; -pub type LPDOC_INFO_3 = LPDOC_INFO_3A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTPROCESSOR_INFO_1A { - pub pName: LPSTR, -} -pub type PRINTPROCESSOR_INFO_1A = _PRINTPROCESSOR_INFO_1A; -pub type PPRINTPROCESSOR_INFO_1A = *mut _PRINTPROCESSOR_INFO_1A; -pub type LPPRINTPROCESSOR_INFO_1A = *mut _PRINTPROCESSOR_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTPROCESSOR_INFO_1W { - pub pName: LPWSTR, -} -pub type PRINTPROCESSOR_INFO_1W = _PRINTPROCESSOR_INFO_1W; -pub type PPRINTPROCESSOR_INFO_1W = *mut _PRINTPROCESSOR_INFO_1W; -pub type LPPRINTPROCESSOR_INFO_1W = *mut _PRINTPROCESSOR_INFO_1W; -pub type PRINTPROCESSOR_INFO_1 = PRINTPROCESSOR_INFO_1A; -pub type PPRINTPROCESSOR_INFO_1 = PPRINTPROCESSOR_INFO_1A; -pub type LPPRINTPROCESSOR_INFO_1 = LPPRINTPROCESSOR_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTPROCESSOR_CAPS_1 { - pub dwLevel: DWORD, - pub dwNupOptions: DWORD, - pub dwPageOrderFlags: DWORD, - pub dwNumberOfCopies: DWORD, -} -pub type PRINTPROCESSOR_CAPS_1 = _PRINTPROCESSOR_CAPS_1; -pub type PPRINTPROCESSOR_CAPS_1 = *mut _PRINTPROCESSOR_CAPS_1; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTPROCESSOR_CAPS_2 { - pub dwLevel: DWORD, - pub dwNupOptions: DWORD, - pub dwPageOrderFlags: DWORD, - pub dwNumberOfCopies: DWORD, - pub dwDuplexHandlingCaps: DWORD, - pub dwNupDirectionCaps: DWORD, - pub dwNupBorderCaps: DWORD, - pub dwBookletHandlingCaps: DWORD, - pub dwScalingCaps: DWORD, -} -pub type PRINTPROCESSOR_CAPS_2 = _PRINTPROCESSOR_CAPS_2; -pub type PPRINTPROCESSOR_CAPS_2 = *mut _PRINTPROCESSOR_CAPS_2; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PORT_INFO_1A { - pub pName: LPSTR, -} -pub type PORT_INFO_1A = _PORT_INFO_1A; -pub type PPORT_INFO_1A = *mut _PORT_INFO_1A; -pub type LPPORT_INFO_1A = *mut _PORT_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PORT_INFO_1W { - pub pName: LPWSTR, -} -pub type PORT_INFO_1W = _PORT_INFO_1W; -pub type PPORT_INFO_1W = *mut _PORT_INFO_1W; -pub type LPPORT_INFO_1W = *mut _PORT_INFO_1W; -pub type PORT_INFO_1 = PORT_INFO_1A; -pub type PPORT_INFO_1 = PPORT_INFO_1A; -pub type LPPORT_INFO_1 = LPPORT_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PORT_INFO_2A { - pub pPortName: LPSTR, - pub pMonitorName: LPSTR, - pub pDescription: LPSTR, - pub fPortType: DWORD, - pub Reserved: DWORD, -} -pub type PORT_INFO_2A = _PORT_INFO_2A; -pub type PPORT_INFO_2A = *mut _PORT_INFO_2A; -pub type LPPORT_INFO_2A = *mut _PORT_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PORT_INFO_2W { - pub pPortName: LPWSTR, - pub pMonitorName: LPWSTR, - pub pDescription: LPWSTR, - pub fPortType: DWORD, - pub Reserved: DWORD, -} -pub type PORT_INFO_2W = _PORT_INFO_2W; -pub type PPORT_INFO_2W = *mut _PORT_INFO_2W; -pub type LPPORT_INFO_2W = *mut _PORT_INFO_2W; -pub type PORT_INFO_2 = PORT_INFO_2A; -pub type PPORT_INFO_2 = PPORT_INFO_2A; -pub type LPPORT_INFO_2 = LPPORT_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PORT_INFO_3A { - pub dwStatus: DWORD, - pub pszStatus: LPSTR, - pub dwSeverity: DWORD, -} -pub type PORT_INFO_3A = _PORT_INFO_3A; -pub type PPORT_INFO_3A = *mut _PORT_INFO_3A; -pub type LPPORT_INFO_3A = *mut _PORT_INFO_3A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PORT_INFO_3W { - pub dwStatus: DWORD, - pub pszStatus: LPWSTR, - pub dwSeverity: DWORD, -} -pub type PORT_INFO_3W = _PORT_INFO_3W; -pub type PPORT_INFO_3W = *mut _PORT_INFO_3W; -pub type LPPORT_INFO_3W = *mut _PORT_INFO_3W; -pub type PORT_INFO_3 = PORT_INFO_3A; -pub type PPORT_INFO_3 = PPORT_INFO_3A; -pub type LPPORT_INFO_3 = LPPORT_INFO_3A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MONITOR_INFO_1A { - pub pName: LPSTR, -} -pub type MONITOR_INFO_1A = _MONITOR_INFO_1A; -pub type PMONITOR_INFO_1A = *mut _MONITOR_INFO_1A; -pub type LPMONITOR_INFO_1A = *mut _MONITOR_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MONITOR_INFO_1W { - pub pName: LPWSTR, -} -pub type MONITOR_INFO_1W = _MONITOR_INFO_1W; -pub type PMONITOR_INFO_1W = *mut _MONITOR_INFO_1W; -pub type LPMONITOR_INFO_1W = *mut _MONITOR_INFO_1W; -pub type MONITOR_INFO_1 = MONITOR_INFO_1A; -pub type PMONITOR_INFO_1 = PMONITOR_INFO_1A; -pub type LPMONITOR_INFO_1 = LPMONITOR_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MONITOR_INFO_2A { - pub pName: LPSTR, - pub pEnvironment: LPSTR, - pub pDLLName: LPSTR, -} -pub type MONITOR_INFO_2A = _MONITOR_INFO_2A; -pub type PMONITOR_INFO_2A = *mut _MONITOR_INFO_2A; -pub type LPMONITOR_INFO_2A = *mut _MONITOR_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MONITOR_INFO_2W { - pub pName: LPWSTR, - pub pEnvironment: LPWSTR, - pub pDLLName: LPWSTR, -} -pub type MONITOR_INFO_2W = _MONITOR_INFO_2W; -pub type PMONITOR_INFO_2W = *mut _MONITOR_INFO_2W; -pub type LPMONITOR_INFO_2W = *mut _MONITOR_INFO_2W; -pub type MONITOR_INFO_2 = MONITOR_INFO_2A; -pub type PMONITOR_INFO_2 = PMONITOR_INFO_2A; -pub type LPMONITOR_INFO_2 = LPMONITOR_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DATATYPES_INFO_1A { - pub pName: LPSTR, -} -pub type DATATYPES_INFO_1A = _DATATYPES_INFO_1A; -pub type PDATATYPES_INFO_1A = *mut _DATATYPES_INFO_1A; -pub type LPDATATYPES_INFO_1A = *mut _DATATYPES_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DATATYPES_INFO_1W { - pub pName: LPWSTR, -} -pub type DATATYPES_INFO_1W = _DATATYPES_INFO_1W; -pub type PDATATYPES_INFO_1W = *mut _DATATYPES_INFO_1W; -pub type LPDATATYPES_INFO_1W = *mut _DATATYPES_INFO_1W; -pub type DATATYPES_INFO_1 = DATATYPES_INFO_1A; -pub type PDATATYPES_INFO_1 = PDATATYPES_INFO_1A; -pub type LPDATATYPES_INFO_1 = LPDATATYPES_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_DEFAULTSA { - pub pDatatype: LPSTR, - pub pDevMode: LPDEVMODEA, - pub DesiredAccess: ACCESS_MASK, -} -pub type PRINTER_DEFAULTSA = _PRINTER_DEFAULTSA; -pub type PPRINTER_DEFAULTSA = *mut _PRINTER_DEFAULTSA; -pub type LPPRINTER_DEFAULTSA = *mut _PRINTER_DEFAULTSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_DEFAULTSW { - pub pDatatype: LPWSTR, - pub pDevMode: LPDEVMODEW, - pub DesiredAccess: ACCESS_MASK, -} -pub type PRINTER_DEFAULTSW = _PRINTER_DEFAULTSW; -pub type PPRINTER_DEFAULTSW = *mut _PRINTER_DEFAULTSW; -pub type LPPRINTER_DEFAULTSW = *mut _PRINTER_DEFAULTSW; -pub type PRINTER_DEFAULTS = PRINTER_DEFAULTSA; -pub type PPRINTER_DEFAULTS = PPRINTER_DEFAULTSA; -pub type LPPRINTER_DEFAULTS = LPPRINTER_DEFAULTSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_ENUM_VALUESA { - pub pValueName: LPSTR, - pub cbValueName: DWORD, - pub dwType: DWORD, - pub pData: LPBYTE, - pub cbData: DWORD, -} -pub type PRINTER_ENUM_VALUESA = _PRINTER_ENUM_VALUESA; -pub type PPRINTER_ENUM_VALUESA = *mut _PRINTER_ENUM_VALUESA; -pub type LPPRINTER_ENUM_VALUESA = *mut _PRINTER_ENUM_VALUESA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_ENUM_VALUESW { - pub pValueName: LPWSTR, - pub cbValueName: DWORD, - pub dwType: DWORD, - pub pData: LPBYTE, - pub cbData: DWORD, -} -pub type PRINTER_ENUM_VALUESW = _PRINTER_ENUM_VALUESW; -pub type PPRINTER_ENUM_VALUESW = *mut _PRINTER_ENUM_VALUESW; -pub type LPPRINTER_ENUM_VALUESW = *mut _PRINTER_ENUM_VALUESW; -pub type PRINTER_ENUM_VALUES = PRINTER_ENUM_VALUESA; -pub type PPRINTER_ENUM_VALUES = PPRINTER_ENUM_VALUESA; -pub type LPPRINTER_ENUM_VALUES = LPPRINTER_ENUM_VALUESA; -extern "C" { - pub fn EnumPrintersA( - Flags: DWORD, - Name: LPSTR, - Level: DWORD, - pPrinterEnum: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumPrintersW( - Flags: DWORD, - Name: LPWSTR, - Level: DWORD, - pPrinterEnum: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetSpoolFileHandle(hPrinter: HANDLE) -> HANDLE; -} -extern "C" { - pub fn CommitSpoolData(hPrinter: HANDLE, hSpoolFile: HANDLE, cbCommit: DWORD) -> HANDLE; -} -extern "C" { - pub fn CloseSpoolFileHandle(hPrinter: HANDLE, hSpoolFile: HANDLE) -> BOOL; -} -extern "C" { - pub fn OpenPrinterA( - pPrinterName: LPSTR, - phPrinter: LPHANDLE, - pDefault: LPPRINTER_DEFAULTSA, - ) -> BOOL; -} -extern "C" { - pub fn OpenPrinterW( - pPrinterName: LPWSTR, - phPrinter: LPHANDLE, - pDefault: LPPRINTER_DEFAULTSW, - ) -> BOOL; -} -extern "C" { - pub fn ResetPrinterA(hPrinter: HANDLE, pDefault: LPPRINTER_DEFAULTSA) -> BOOL; -} -extern "C" { - pub fn ResetPrinterW(hPrinter: HANDLE, pDefault: LPPRINTER_DEFAULTSW) -> BOOL; -} -extern "C" { - pub fn SetJobA( - hPrinter: HANDLE, - JobId: DWORD, - Level: DWORD, - pJob: LPBYTE, - Command: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetJobW( - hPrinter: HANDLE, - JobId: DWORD, - Level: DWORD, - pJob: LPBYTE, - Command: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetJobA( - hPrinter: HANDLE, - JobId: DWORD, - Level: DWORD, - pJob: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetJobW( - hPrinter: HANDLE, - JobId: DWORD, - Level: DWORD, - pJob: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumJobsA( - hPrinter: HANDLE, - FirstJob: DWORD, - NoJobs: DWORD, - Level: DWORD, - pJob: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumJobsW( - hPrinter: HANDLE, - FirstJob: DWORD, - NoJobs: DWORD, - Level: DWORD, - pJob: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn AddPrinterA(pName: LPSTR, Level: DWORD, pPrinter: LPBYTE) -> HANDLE; -} -extern "C" { - pub fn AddPrinterW(pName: LPWSTR, Level: DWORD, pPrinter: LPBYTE) -> HANDLE; -} -extern "C" { - pub fn DeletePrinter(hPrinter: HANDLE) -> BOOL; -} -extern "C" { - pub fn SetPrinterA(hPrinter: HANDLE, Level: DWORD, pPrinter: LPBYTE, Command: DWORD) -> BOOL; -} -extern "C" { - pub fn SetPrinterW(hPrinter: HANDLE, Level: DWORD, pPrinter: LPBYTE, Command: DWORD) -> BOOL; -} -extern "C" { - pub fn GetPrinterA( - hPrinter: HANDLE, - Level: DWORD, - pPrinter: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetPrinterW( - hPrinter: HANDLE, - Level: DWORD, - pPrinter: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn AddPrinterDriverA(pName: LPSTR, Level: DWORD, pDriverInfo: LPBYTE) -> BOOL; -} -extern "C" { - pub fn AddPrinterDriverW(pName: LPWSTR, Level: DWORD, pDriverInfo: LPBYTE) -> BOOL; -} -extern "C" { - pub fn AddPrinterDriverExA( - pName: LPSTR, - Level: DWORD, - lpbDriverInfo: PBYTE, - dwFileCopyFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn AddPrinterDriverExW( - pName: LPWSTR, - Level: DWORD, - lpbDriverInfo: PBYTE, - dwFileCopyFlags: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumPrinterDriversA( - pName: LPSTR, - pEnvironment: LPSTR, - Level: DWORD, - pDriverInfo: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumPrinterDriversW( - pName: LPWSTR, - pEnvironment: LPWSTR, - Level: DWORD, - pDriverInfo: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetPrinterDriverA( - hPrinter: HANDLE, - pEnvironment: LPSTR, - Level: DWORD, - pDriverInfo: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetPrinterDriverW( - hPrinter: HANDLE, - pEnvironment: LPWSTR, - Level: DWORD, - pDriverInfo: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetPrinterDriverDirectoryA( - pName: LPSTR, - pEnvironment: LPSTR, - Level: DWORD, - pDriverDirectory: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetPrinterDriverDirectoryW( - pName: LPWSTR, - pEnvironment: LPWSTR, - Level: DWORD, - pDriverDirectory: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn DeletePrinterDriverA(pName: LPSTR, pEnvironment: LPSTR, pDriverName: LPSTR) -> BOOL; -} -extern "C" { - pub fn DeletePrinterDriverW(pName: LPWSTR, pEnvironment: LPWSTR, pDriverName: LPWSTR) -> BOOL; -} -extern "C" { - pub fn DeletePrinterDriverExA( - pName: LPSTR, - pEnvironment: LPSTR, - pDriverName: LPSTR, - dwDeleteFlag: DWORD, - dwVersionFlag: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn DeletePrinterDriverExW( - pName: LPWSTR, - pEnvironment: LPWSTR, - pDriverName: LPWSTR, - dwDeleteFlag: DWORD, - dwVersionFlag: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn AddPrintProcessorA( - pName: LPSTR, - pEnvironment: LPSTR, - pPathName: LPSTR, - pPrintProcessorName: LPSTR, - ) -> BOOL; -} -extern "C" { - pub fn AddPrintProcessorW( - pName: LPWSTR, - pEnvironment: LPWSTR, - pPathName: LPWSTR, - pPrintProcessorName: LPWSTR, - ) -> BOOL; -} -extern "C" { - pub fn EnumPrintProcessorsA( - pName: LPSTR, - pEnvironment: LPSTR, - Level: DWORD, - pPrintProcessorInfo: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumPrintProcessorsW( - pName: LPWSTR, - pEnvironment: LPWSTR, - Level: DWORD, - pPrintProcessorInfo: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetPrintProcessorDirectoryA( - pName: LPSTR, - pEnvironment: LPSTR, - Level: DWORD, - pPrintProcessorInfo: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetPrintProcessorDirectoryW( - pName: LPWSTR, - pEnvironment: LPWSTR, - Level: DWORD, - pPrintProcessorInfo: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumPrintProcessorDatatypesA( - pName: LPSTR, - pPrintProcessorName: LPSTR, - Level: DWORD, - pDatatypes: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumPrintProcessorDatatypesW( - pName: LPWSTR, - pPrintProcessorName: LPWSTR, - Level: DWORD, - pDatatypes: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn DeletePrintProcessorA( - pName: LPSTR, - pEnvironment: LPSTR, - pPrintProcessorName: LPSTR, - ) -> BOOL; -} -extern "C" { - pub fn DeletePrintProcessorW( - pName: LPWSTR, - pEnvironment: LPWSTR, - pPrintProcessorName: LPWSTR, - ) -> BOOL; -} -extern "C" { - pub fn StartDocPrinterA(hPrinter: HANDLE, Level: DWORD, pDocInfo: LPBYTE) -> DWORD; -} -extern "C" { - pub fn StartDocPrinterW(hPrinter: HANDLE, Level: DWORD, pDocInfo: LPBYTE) -> DWORD; -} -extern "C" { - pub fn StartPagePrinter(hPrinter: HANDLE) -> BOOL; -} -extern "C" { - pub fn WritePrinter(hPrinter: HANDLE, pBuf: LPVOID, cbBuf: DWORD, pcWritten: LPDWORD) -> BOOL; -} -extern "C" { - pub fn FlushPrinter( - hPrinter: HANDLE, - pBuf: LPVOID, - cbBuf: DWORD, - pcWritten: LPDWORD, - cSleep: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn EndPagePrinter(hPrinter: HANDLE) -> BOOL; -} -extern "C" { - pub fn AbortPrinter(hPrinter: HANDLE) -> BOOL; -} -extern "C" { - pub fn ReadPrinter(hPrinter: HANDLE, pBuf: LPVOID, cbBuf: DWORD, pNoBytesRead: LPDWORD) - -> BOOL; -} -extern "C" { - pub fn EndDocPrinter(hPrinter: HANDLE) -> BOOL; -} -extern "C" { - pub fn AddJobA( - hPrinter: HANDLE, - Level: DWORD, - pData: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn AddJobW( - hPrinter: HANDLE, - Level: DWORD, - pData: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn ScheduleJob(hPrinter: HANDLE, JobId: DWORD) -> BOOL; -} -extern "C" { - pub fn PrinterProperties(hWnd: HWND, hPrinter: HANDLE) -> BOOL; -} -extern "C" { - pub fn DocumentPropertiesA( - hWnd: HWND, - hPrinter: HANDLE, - pDeviceName: LPSTR, - pDevModeOutput: PDEVMODEA, - pDevModeInput: PDEVMODEA, - fMode: DWORD, - ) -> LONG; -} -extern "C" { - pub fn DocumentPropertiesW( - hWnd: HWND, - hPrinter: HANDLE, - pDeviceName: LPWSTR, - pDevModeOutput: PDEVMODEW, - pDevModeInput: PDEVMODEW, - fMode: DWORD, - ) -> LONG; -} -extern "C" { - pub fn AdvancedDocumentPropertiesA( - hWnd: HWND, - hPrinter: HANDLE, - pDeviceName: LPSTR, - pDevModeOutput: PDEVMODEA, - pDevModeInput: PDEVMODEA, - ) -> LONG; -} -extern "C" { - pub fn AdvancedDocumentPropertiesW( - hWnd: HWND, - hPrinter: HANDLE, - pDeviceName: LPWSTR, - pDevModeOutput: PDEVMODEW, - pDevModeInput: PDEVMODEW, - ) -> LONG; -} -extern "C" { - pub fn ExtDeviceMode( - hWnd: HWND, - hInst: HANDLE, - pDevModeOutput: LPDEVMODEA, - pDeviceName: LPSTR, - pPort: LPSTR, - pDevModeInput: LPDEVMODEA, - pProfile: LPSTR, - fMode: DWORD, - ) -> LONG; -} -extern "C" { - pub fn GetPrinterDataA( - hPrinter: HANDLE, - pValueName: LPSTR, - pType: LPDWORD, - pData: LPBYTE, - nSize: DWORD, - pcbNeeded: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetPrinterDataW( - hPrinter: HANDLE, - pValueName: LPWSTR, - pType: LPDWORD, - pData: LPBYTE, - nSize: DWORD, - pcbNeeded: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetPrinterDataExA( - hPrinter: HANDLE, - pKeyName: LPCSTR, - pValueName: LPCSTR, - pType: LPDWORD, - pData: LPBYTE, - nSize: DWORD, - pcbNeeded: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn GetPrinterDataExW( - hPrinter: HANDLE, - pKeyName: LPCWSTR, - pValueName: LPCWSTR, - pType: LPDWORD, - pData: LPBYTE, - nSize: DWORD, - pcbNeeded: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn EnumPrinterDataA( - hPrinter: HANDLE, - dwIndex: DWORD, - pValueName: LPSTR, - cbValueName: DWORD, - pcbValueName: LPDWORD, - pType: LPDWORD, - pData: LPBYTE, - cbData: DWORD, - pcbData: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn EnumPrinterDataW( - hPrinter: HANDLE, - dwIndex: DWORD, - pValueName: LPWSTR, - cbValueName: DWORD, - pcbValueName: LPDWORD, - pType: LPDWORD, - pData: LPBYTE, - cbData: DWORD, - pcbData: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn EnumPrinterDataExA( - hPrinter: HANDLE, - pKeyName: LPCSTR, - pEnumValues: LPBYTE, - cbEnumValues: DWORD, - pcbEnumValues: LPDWORD, - pnEnumValues: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn EnumPrinterDataExW( - hPrinter: HANDLE, - pKeyName: LPCWSTR, - pEnumValues: LPBYTE, - cbEnumValues: DWORD, - pcbEnumValues: LPDWORD, - pnEnumValues: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn EnumPrinterKeyA( - hPrinter: HANDLE, - pKeyName: LPCSTR, - pSubkey: LPSTR, - cbSubkey: DWORD, - pcbSubkey: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn EnumPrinterKeyW( - hPrinter: HANDLE, - pKeyName: LPCWSTR, - pSubkey: LPWSTR, - cbSubkey: DWORD, - pcbSubkey: LPDWORD, - ) -> DWORD; -} -extern "C" { - pub fn SetPrinterDataA( - hPrinter: HANDLE, - pValueName: LPSTR, - Type: DWORD, - pData: LPBYTE, - cbData: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn SetPrinterDataW( - hPrinter: HANDLE, - pValueName: LPWSTR, - Type: DWORD, - pData: LPBYTE, - cbData: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn SetPrinterDataExA( - hPrinter: HANDLE, - pKeyName: LPCSTR, - pValueName: LPCSTR, - Type: DWORD, - pData: LPBYTE, - cbData: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn SetPrinterDataExW( - hPrinter: HANDLE, - pKeyName: LPCWSTR, - pValueName: LPCWSTR, - Type: DWORD, - pData: LPBYTE, - cbData: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn DeletePrinterDataA(hPrinter: HANDLE, pValueName: LPSTR) -> DWORD; -} -extern "C" { - pub fn DeletePrinterDataW(hPrinter: HANDLE, pValueName: LPWSTR) -> DWORD; -} -extern "C" { - pub fn DeletePrinterDataExA(hPrinter: HANDLE, pKeyName: LPCSTR, pValueName: LPCSTR) -> DWORD; -} -extern "C" { - pub fn DeletePrinterDataExW(hPrinter: HANDLE, pKeyName: LPCWSTR, pValueName: LPCWSTR) -> DWORD; -} -extern "C" { - pub fn DeletePrinterKeyA(hPrinter: HANDLE, pKeyName: LPCSTR) -> DWORD; -} -extern "C" { - pub fn DeletePrinterKeyW(hPrinter: HANDLE, pKeyName: LPCWSTR) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_NOTIFY_OPTIONS_TYPE { - pub Type: WORD, - pub Reserved0: WORD, - pub Reserved1: DWORD, - pub Reserved2: DWORD, - pub Count: DWORD, - pub pFields: PWORD, -} -pub type PRINTER_NOTIFY_OPTIONS_TYPE = _PRINTER_NOTIFY_OPTIONS_TYPE; -pub type PPRINTER_NOTIFY_OPTIONS_TYPE = *mut _PRINTER_NOTIFY_OPTIONS_TYPE; -pub type LPPRINTER_NOTIFY_OPTIONS_TYPE = *mut _PRINTER_NOTIFY_OPTIONS_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_NOTIFY_OPTIONS { - pub Version: DWORD, - pub Flags: DWORD, - pub Count: DWORD, - pub pTypes: PPRINTER_NOTIFY_OPTIONS_TYPE, -} -pub type PRINTER_NOTIFY_OPTIONS = _PRINTER_NOTIFY_OPTIONS; -pub type PPRINTER_NOTIFY_OPTIONS = *mut _PRINTER_NOTIFY_OPTIONS; -pub type LPPRINTER_NOTIFY_OPTIONS = *mut _PRINTER_NOTIFY_OPTIONS; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PRINTER_NOTIFY_INFO_DATA { - pub Type: WORD, - pub Field: WORD, - pub Reserved: DWORD, - pub Id: DWORD, - pub NotifyData: _PRINTER_NOTIFY_INFO_DATA__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _PRINTER_NOTIFY_INFO_DATA__bindgen_ty_1 { - pub adwData: [DWORD; 2usize], - pub Data: _PRINTER_NOTIFY_INFO_DATA__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_NOTIFY_INFO_DATA__bindgen_ty_1__bindgen_ty_1 { - pub cbBuf: DWORD, - pub pBuf: LPVOID, -} -pub type PRINTER_NOTIFY_INFO_DATA = _PRINTER_NOTIFY_INFO_DATA; -pub type PPRINTER_NOTIFY_INFO_DATA = *mut _PRINTER_NOTIFY_INFO_DATA; -pub type LPPRINTER_NOTIFY_INFO_DATA = *mut _PRINTER_NOTIFY_INFO_DATA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _PRINTER_NOTIFY_INFO { - pub Version: DWORD, - pub Flags: DWORD, - pub Count: DWORD, - pub aData: [PRINTER_NOTIFY_INFO_DATA; 1usize], -} -pub type PRINTER_NOTIFY_INFO = _PRINTER_NOTIFY_INFO; -pub type PPRINTER_NOTIFY_INFO = *mut _PRINTER_NOTIFY_INFO; -pub type LPPRINTER_NOTIFY_INFO = *mut _PRINTER_NOTIFY_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _BINARY_CONTAINER { - pub cbBuf: DWORD, - pub pData: LPBYTE, -} -pub type BINARY_CONTAINER = _BINARY_CONTAINER; -pub type PBINARY_CONTAINER = *mut _BINARY_CONTAINER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _BIDI_DATA { - pub dwBidiType: DWORD, - pub u: _BIDI_DATA__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _BIDI_DATA__bindgen_ty_1 { - pub bData: BOOL, - pub iData: LONG, - pub sData: LPWSTR, - pub fData: FLOAT, - pub biData: BINARY_CONTAINER, -} -pub type BIDI_DATA = _BIDI_DATA; -pub type PBIDI_DATA = *mut _BIDI_DATA; -pub type LPBIDI_DATA = *mut _BIDI_DATA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _BIDI_REQUEST_DATA { - pub dwReqNumber: DWORD, - pub pSchema: LPWSTR, - pub data: BIDI_DATA, -} -pub type BIDI_REQUEST_DATA = _BIDI_REQUEST_DATA; -pub type PBIDI_REQUEST_DATA = *mut _BIDI_REQUEST_DATA; -pub type LPBIDI_REQUEST_DATA = *mut _BIDI_REQUEST_DATA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _BIDI_REQUEST_CONTAINER { - pub Version: DWORD, - pub Flags: DWORD, - pub Count: DWORD, - pub aData: [BIDI_REQUEST_DATA; 1usize], -} -pub type BIDI_REQUEST_CONTAINER = _BIDI_REQUEST_CONTAINER; -pub type PBIDI_REQUEST_CONTAINER = *mut _BIDI_REQUEST_CONTAINER; -pub type LPBIDI_REQUEST_CONTAINER = *mut _BIDI_REQUEST_CONTAINER; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _BIDI_RESPONSE_DATA { - pub dwResult: DWORD, - pub dwReqNumber: DWORD, - pub pSchema: LPWSTR, - pub data: BIDI_DATA, -} -pub type BIDI_RESPONSE_DATA = _BIDI_RESPONSE_DATA; -pub type PBIDI_RESPONSE_DATA = *mut _BIDI_RESPONSE_DATA; -pub type LPBIDI_RESPONSE_DATA = *mut _BIDI_RESPONSE_DATA; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _BIDI_RESPONSE_CONTAINER { - pub Version: DWORD, - pub Flags: DWORD, - pub Count: DWORD, - pub aData: [BIDI_RESPONSE_DATA; 1usize], -} -pub type BIDI_RESPONSE_CONTAINER = _BIDI_RESPONSE_CONTAINER; -pub type PBIDI_RESPONSE_CONTAINER = *mut _BIDI_RESPONSE_CONTAINER; -pub type LPBIDI_RESPONSE_CONTAINER = *mut _BIDI_RESPONSE_CONTAINER; -pub const BIDI_TYPE_BIDI_NULL: BIDI_TYPE = 0; -pub const BIDI_TYPE_BIDI_INT: BIDI_TYPE = 1; -pub const BIDI_TYPE_BIDI_FLOAT: BIDI_TYPE = 2; -pub const BIDI_TYPE_BIDI_BOOL: BIDI_TYPE = 3; -pub const BIDI_TYPE_BIDI_STRING: BIDI_TYPE = 4; -pub const BIDI_TYPE_BIDI_TEXT: BIDI_TYPE = 5; -pub const BIDI_TYPE_BIDI_ENUM: BIDI_TYPE = 6; -pub const BIDI_TYPE_BIDI_BLOB: BIDI_TYPE = 7; -pub type BIDI_TYPE = ::std::os::raw::c_int; -extern "C" { - pub fn WaitForPrinterChange(hPrinter: HANDLE, Flags: DWORD) -> DWORD; -} -extern "C" { - pub fn FindFirstPrinterChangeNotification( - hPrinter: HANDLE, - fdwFilter: DWORD, - fdwOptions: DWORD, - pPrinterNotifyOptions: PVOID, - ) -> HANDLE; -} -extern "C" { - pub fn FindNextPrinterChangeNotification( - hChange: HANDLE, - pdwChange: PDWORD, - pvReserved: LPVOID, - ppPrinterNotifyInfo: *mut LPVOID, - ) -> BOOL; -} -extern "C" { - pub fn FreePrinterNotifyInfo(pPrinterNotifyInfo: PPRINTER_NOTIFY_INFO) -> BOOL; -} -extern "C" { - pub fn FindClosePrinterChangeNotification(hChange: HANDLE) -> BOOL; -} -extern "C" { - pub fn PrinterMessageBoxA( - hPrinter: HANDLE, - Error: DWORD, - hWnd: HWND, - pText: LPSTR, - pCaption: LPSTR, - dwType: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn PrinterMessageBoxW( - hPrinter: HANDLE, - Error: DWORD, - hWnd: HWND, - pText: LPWSTR, - pCaption: LPWSTR, - dwType: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn ClosePrinter(hPrinter: HANDLE) -> BOOL; -} -extern "C" { - pub fn AddFormA(hPrinter: HANDLE, Level: DWORD, pForm: LPBYTE) -> BOOL; -} -extern "C" { - pub fn AddFormW(hPrinter: HANDLE, Level: DWORD, pForm: LPBYTE) -> BOOL; -} -extern "C" { - pub fn DeleteFormA(hPrinter: HANDLE, pFormName: LPSTR) -> BOOL; -} -extern "C" { - pub fn DeleteFormW(hPrinter: HANDLE, pFormName: LPWSTR) -> BOOL; -} -extern "C" { - pub fn GetFormA( - hPrinter: HANDLE, - pFormName: LPSTR, - Level: DWORD, - pForm: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetFormW( - hPrinter: HANDLE, - pFormName: LPWSTR, - Level: DWORD, - pForm: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn SetFormA(hPrinter: HANDLE, pFormName: LPSTR, Level: DWORD, pForm: LPBYTE) -> BOOL; -} -extern "C" { - pub fn SetFormW(hPrinter: HANDLE, pFormName: LPWSTR, Level: DWORD, pForm: LPBYTE) -> BOOL; -} -extern "C" { - pub fn EnumFormsA( - hPrinter: HANDLE, - Level: DWORD, - pForm: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumFormsW( - hPrinter: HANDLE, - Level: DWORD, - pForm: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumMonitorsA( - pName: LPSTR, - Level: DWORD, - pMonitor: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumMonitorsW( - pName: LPWSTR, - Level: DWORD, - pMonitor: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn AddMonitorA(pName: LPSTR, Level: DWORD, pMonitors: LPBYTE) -> BOOL; -} -extern "C" { - pub fn AddMonitorW(pName: LPWSTR, Level: DWORD, pMonitors: LPBYTE) -> BOOL; -} -extern "C" { - pub fn DeleteMonitorA(pName: LPSTR, pEnvironment: LPSTR, pMonitorName: LPSTR) -> BOOL; -} -extern "C" { - pub fn DeleteMonitorW(pName: LPWSTR, pEnvironment: LPWSTR, pMonitorName: LPWSTR) -> BOOL; -} -extern "C" { - pub fn EnumPortsA( - pName: LPSTR, - Level: DWORD, - pPort: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumPortsW( - pName: LPWSTR, - Level: DWORD, - pPort: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - pcReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn AddPortA(pName: LPSTR, hWnd: HWND, pMonitorName: LPSTR) -> BOOL; -} -extern "C" { - pub fn AddPortW(pName: LPWSTR, hWnd: HWND, pMonitorName: LPWSTR) -> BOOL; -} -extern "C" { - pub fn ConfigurePortA(pName: LPSTR, hWnd: HWND, pPortName: LPSTR) -> BOOL; -} -extern "C" { - pub fn ConfigurePortW(pName: LPWSTR, hWnd: HWND, pPortName: LPWSTR) -> BOOL; -} -extern "C" { - pub fn DeletePortA(pName: LPSTR, hWnd: HWND, pPortName: LPSTR) -> BOOL; -} -extern "C" { - pub fn DeletePortW(pName: LPWSTR, hWnd: HWND, pPortName: LPWSTR) -> BOOL; -} -extern "C" { - pub fn XcvDataW( - hXcv: HANDLE, - pszDataName: PCWSTR, - pInputData: PBYTE, - cbInputData: DWORD, - pOutputData: PBYTE, - cbOutputData: DWORD, - pcbOutputNeeded: PDWORD, - pdwStatus: PDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetDefaultPrinterA(pszBuffer: LPSTR, pcchBuffer: LPDWORD) -> BOOL; -} -extern "C" { - pub fn GetDefaultPrinterW(pszBuffer: LPWSTR, pcchBuffer: LPDWORD) -> BOOL; -} -extern "C" { - pub fn SetDefaultPrinterA(pszPrinter: LPCSTR) -> BOOL; -} -extern "C" { - pub fn SetDefaultPrinterW(pszPrinter: LPCWSTR) -> BOOL; -} -extern "C" { - pub fn SetPortA(pName: LPSTR, pPortName: LPSTR, dwLevel: DWORD, pPortInfo: LPBYTE) -> BOOL; -} -extern "C" { - pub fn SetPortW(pName: LPWSTR, pPortName: LPWSTR, dwLevel: DWORD, pPortInfo: LPBYTE) -> BOOL; -} -extern "C" { - pub fn AddPrinterConnectionA(pName: LPSTR) -> BOOL; -} -extern "C" { - pub fn AddPrinterConnectionW(pName: LPWSTR) -> BOOL; -} -extern "C" { - pub fn DeletePrinterConnectionA(pName: LPSTR) -> BOOL; -} -extern "C" { - pub fn DeletePrinterConnectionW(pName: LPWSTR) -> BOOL; -} -extern "C" { - pub fn ConnectToPrinterDlg(hwnd: HWND, Flags: DWORD) -> HANDLE; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROVIDOR_INFO_1A { - pub pName: LPSTR, - pub pEnvironment: LPSTR, - pub pDLLName: LPSTR, -} -pub type PROVIDOR_INFO_1A = _PROVIDOR_INFO_1A; -pub type PPROVIDOR_INFO_1A = *mut _PROVIDOR_INFO_1A; -pub type LPPROVIDOR_INFO_1A = *mut _PROVIDOR_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROVIDOR_INFO_1W { - pub pName: LPWSTR, - pub pEnvironment: LPWSTR, - pub pDLLName: LPWSTR, -} -pub type PROVIDOR_INFO_1W = _PROVIDOR_INFO_1W; -pub type PPROVIDOR_INFO_1W = *mut _PROVIDOR_INFO_1W; -pub type LPPROVIDOR_INFO_1W = *mut _PROVIDOR_INFO_1W; -pub type PROVIDOR_INFO_1 = PROVIDOR_INFO_1A; -pub type PPROVIDOR_INFO_1 = PPROVIDOR_INFO_1A; -pub type LPPROVIDOR_INFO_1 = LPPROVIDOR_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROVIDOR_INFO_2A { - pub pOrder: LPSTR, -} -pub type PROVIDOR_INFO_2A = _PROVIDOR_INFO_2A; -pub type PPROVIDOR_INFO_2A = *mut _PROVIDOR_INFO_2A; -pub type LPPROVIDOR_INFO_2A = *mut _PROVIDOR_INFO_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PROVIDOR_INFO_2W { - pub pOrder: LPWSTR, -} -pub type PROVIDOR_INFO_2W = _PROVIDOR_INFO_2W; -pub type PPROVIDOR_INFO_2W = *mut _PROVIDOR_INFO_2W; -pub type LPPROVIDOR_INFO_2W = *mut _PROVIDOR_INFO_2W; -pub type PROVIDOR_INFO_2 = PROVIDOR_INFO_2A; -pub type PPROVIDOR_INFO_2 = PPROVIDOR_INFO_2A; -pub type LPPROVIDOR_INFO_2 = LPPROVIDOR_INFO_2A; -extern "C" { - pub fn AddPrintProvidorA(pName: LPSTR, Level: DWORD, pProvidorInfo: LPBYTE) -> BOOL; -} -extern "C" { - pub fn AddPrintProvidorW(pName: LPWSTR, Level: DWORD, pProvidorInfo: LPBYTE) -> BOOL; -} -extern "C" { - pub fn DeletePrintProvidorA( - pName: LPSTR, - pEnvironment: LPSTR, - pPrintProvidorName: LPSTR, - ) -> BOOL; -} -extern "C" { - pub fn DeletePrintProvidorW( - pName: LPWSTR, - pEnvironment: LPWSTR, - pPrintProvidorName: LPWSTR, - ) -> BOOL; -} -extern "C" { - pub fn IsValidDevmodeA(pDevmode: PDEVMODEA, DevmodeSize: usize) -> BOOL; -} -extern "C" { - pub fn IsValidDevmodeW(pDevmode: PDEVMODEW, DevmodeSize: usize) -> BOOL; -} -pub const _PRINTER_OPTION_FLAGS_PRINTER_OPTION_NO_CACHE: _PRINTER_OPTION_FLAGS = 1; -pub const _PRINTER_OPTION_FLAGS_PRINTER_OPTION_CACHE: _PRINTER_OPTION_FLAGS = 2; -pub const _PRINTER_OPTION_FLAGS_PRINTER_OPTION_CLIENT_CHANGE: _PRINTER_OPTION_FLAGS = 4; -pub const _PRINTER_OPTION_FLAGS_PRINTER_OPTION_NO_CLIENT_DATA: _PRINTER_OPTION_FLAGS = 8; -pub type _PRINTER_OPTION_FLAGS = ::std::os::raw::c_int; -pub use self::_PRINTER_OPTION_FLAGS as PRINTER_OPTION_FLAGS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_OPTIONSA { - pub cbSize: UINT, - pub dwFlags: DWORD, -} -pub type PRINTER_OPTIONSA = _PRINTER_OPTIONSA; -pub type PPRINTER_OPTIONSA = *mut _PRINTER_OPTIONSA; -pub type LPPRINTER_OPTIONSA = *mut _PRINTER_OPTIONSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_OPTIONSW { - pub cbSize: UINT, - pub dwFlags: DWORD, -} -pub type PRINTER_OPTIONSW = _PRINTER_OPTIONSW; -pub type PPRINTER_OPTIONSW = *mut _PRINTER_OPTIONSW; -pub type LPPRINTER_OPTIONSW = *mut _PRINTER_OPTIONSW; -pub type PRINTER_OPTIONS = PRINTER_OPTIONSA; -pub type PPRINTER_OPTIONS = PPRINTER_OPTIONSA; -pub type LPPRINTER_OPTIONS = LPPRINTER_OPTIONSA; -extern "C" { - pub fn OpenPrinter2A( - pPrinterName: LPCSTR, - phPrinter: LPHANDLE, - pDefault: PPRINTER_DEFAULTSA, - pOptions: PPRINTER_OPTIONSA, - ) -> BOOL; -} -extern "C" { - pub fn OpenPrinter2W( - pPrinterName: LPCWSTR, - phPrinter: LPHANDLE, - pDefault: PPRINTER_DEFAULTSW, - pOptions: PPRINTER_OPTIONSW, - ) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_CONNECTION_INFO_1A { - pub dwFlags: DWORD, - pub pszDriverName: LPSTR, -} -pub type PRINTER_CONNECTION_INFO_1A = _PRINTER_CONNECTION_INFO_1A; -pub type PPRINTER_CONNECTION_INFO_1A = *mut _PRINTER_CONNECTION_INFO_1A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _PRINTER_CONNECTION_INFO_1W { - pub dwFlags: DWORD, - pub pszDriverName: LPWSTR, -} -pub type PRINTER_CONNECTION_INFO_1W = _PRINTER_CONNECTION_INFO_1W; -pub type PPRINTER_CONNECTION_INFO_1W = *mut _PRINTER_CONNECTION_INFO_1W; -pub type PRINTER_CONNECTION_INFO_1 = PRINTER_CONNECTION_INFO_1A; -pub type PPRINTER_CONNECTION_INFO_1 = PPRINTER_CONNECTION_INFO_1A; -extern "C" { - pub fn AddPrinterConnection2A( - hWnd: HWND, - pszName: LPCSTR, - dwLevel: DWORD, - pConnectionInfo: PVOID, - ) -> BOOL; -} -extern "C" { - pub fn AddPrinterConnection2W( - hWnd: HWND, - pszName: LPCWSTR, - dwLevel: DWORD, - pConnectionInfo: PVOID, - ) -> BOOL; -} -extern "C" { - pub fn InstallPrinterDriverFromPackageA( - pszServer: LPCSTR, - pszInfPath: LPCSTR, - pszDriverName: LPCSTR, - pszEnvironment: LPCSTR, - dwFlags: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn InstallPrinterDriverFromPackageW( - pszServer: LPCWSTR, - pszInfPath: LPCWSTR, - pszDriverName: LPCWSTR, - pszEnvironment: LPCWSTR, - dwFlags: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn UploadPrinterDriverPackageA( - pszServer: LPCSTR, - pszInfPath: LPCSTR, - pszEnvironment: LPCSTR, - dwFlags: DWORD, - hwnd: HWND, - pszDestInfPath: LPSTR, - pcchDestInfPath: PULONG, - ) -> HRESULT; -} -extern "C" { - pub fn UploadPrinterDriverPackageW( - pszServer: LPCWSTR, - pszInfPath: LPCWSTR, - pszEnvironment: LPCWSTR, - dwFlags: DWORD, - hwnd: HWND, - pszDestInfPath: LPWSTR, - pcchDestInfPath: PULONG, - ) -> HRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CORE_PRINTER_DRIVERA { - pub CoreDriverGUID: GUID, - pub ftDriverDate: FILETIME, - pub dwlDriverVersion: DWORDLONG, - pub szPackageID: [CHAR; 260usize], -} -pub type CORE_PRINTER_DRIVERA = _CORE_PRINTER_DRIVERA; -pub type PCORE_PRINTER_DRIVERA = *mut _CORE_PRINTER_DRIVERA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CORE_PRINTER_DRIVERW { - pub CoreDriverGUID: GUID, - pub ftDriverDate: FILETIME, - pub dwlDriverVersion: DWORDLONG, - pub szPackageID: [WCHAR; 260usize], -} -pub type CORE_PRINTER_DRIVERW = _CORE_PRINTER_DRIVERW; -pub type PCORE_PRINTER_DRIVERW = *mut _CORE_PRINTER_DRIVERW; -pub type CORE_PRINTER_DRIVER = CORE_PRINTER_DRIVERA; -pub type PCORE_PRINTER_DRIVER = PCORE_PRINTER_DRIVERA; -extern "C" { - pub fn GetCorePrinterDriversA( - pszServer: LPCSTR, - pszEnvironment: LPCSTR, - pszzCoreDriverDependencies: LPCSTR, - cCorePrinterDrivers: DWORD, - pCorePrinterDrivers: PCORE_PRINTER_DRIVERA, - ) -> HRESULT; -} -extern "C" { - pub fn GetCorePrinterDriversW( - pszServer: LPCWSTR, - pszEnvironment: LPCWSTR, - pszzCoreDriverDependencies: LPCWSTR, - cCorePrinterDrivers: DWORD, - pCorePrinterDrivers: PCORE_PRINTER_DRIVERW, - ) -> HRESULT; -} -extern "C" { - pub fn CorePrinterDriverInstalledA( - pszServer: LPCSTR, - pszEnvironment: LPCSTR, - CoreDriverGUID: GUID, - ftDriverDate: FILETIME, - dwlDriverVersion: DWORDLONG, - pbDriverInstalled: *mut BOOL, - ) -> HRESULT; -} -extern "C" { - pub fn CorePrinterDriverInstalledW( - pszServer: LPCWSTR, - pszEnvironment: LPCWSTR, - CoreDriverGUID: GUID, - ftDriverDate: FILETIME, - dwlDriverVersion: DWORDLONG, - pbDriverInstalled: *mut BOOL, - ) -> HRESULT; -} -extern "C" { - pub fn GetPrinterDriverPackagePathA( - pszServer: LPCSTR, - pszEnvironment: LPCSTR, - pszLanguage: LPCSTR, - pszPackageID: LPCSTR, - pszDriverPackageCab: LPSTR, - cchDriverPackageCab: DWORD, - pcchRequiredSize: LPDWORD, - ) -> HRESULT; -} -extern "C" { - pub fn GetPrinterDriverPackagePathW( - pszServer: LPCWSTR, - pszEnvironment: LPCWSTR, - pszLanguage: LPCWSTR, - pszPackageID: LPCWSTR, - pszDriverPackageCab: LPWSTR, - cchDriverPackageCab: DWORD, - pcchRequiredSize: LPDWORD, - ) -> HRESULT; -} -extern "C" { - pub fn DeletePrinterDriverPackageA( - pszServer: LPCSTR, - pszInfPath: LPCSTR, - pszEnvironment: LPCSTR, - ) -> HRESULT; -} -extern "C" { - pub fn DeletePrinterDriverPackageW( - pszServer: LPCWSTR, - pszInfPath: LPCWSTR, - pszEnvironment: LPCWSTR, - ) -> HRESULT; -} -pub const EPrintPropertyType_kPropertyTypeString: EPrintPropertyType = 1; -pub const EPrintPropertyType_kPropertyTypeInt32: EPrintPropertyType = 2; -pub const EPrintPropertyType_kPropertyTypeInt64: EPrintPropertyType = 3; -pub const EPrintPropertyType_kPropertyTypeByte: EPrintPropertyType = 4; -pub const EPrintPropertyType_kPropertyTypeTime: EPrintPropertyType = 5; -pub const EPrintPropertyType_kPropertyTypeDevMode: EPrintPropertyType = 6; -pub const EPrintPropertyType_kPropertyTypeSD: EPrintPropertyType = 7; -pub const EPrintPropertyType_kPropertyTypeNotificationReply: EPrintPropertyType = 8; -pub const EPrintPropertyType_kPropertyTypeNotificationOptions: EPrintPropertyType = 9; -pub const EPrintPropertyType_kPropertyTypeBuffer: EPrintPropertyType = 10; -pub type EPrintPropertyType = ::std::os::raw::c_int; -pub const EPrintXPSJobProgress_kAddingDocumentSequence: EPrintXPSJobProgress = 0; -pub const EPrintXPSJobProgress_kDocumentSequenceAdded: EPrintXPSJobProgress = 1; -pub const EPrintXPSJobProgress_kAddingFixedDocument: EPrintXPSJobProgress = 2; -pub const EPrintXPSJobProgress_kFixedDocumentAdded: EPrintXPSJobProgress = 3; -pub const EPrintXPSJobProgress_kAddingFixedPage: EPrintXPSJobProgress = 4; -pub const EPrintXPSJobProgress_kFixedPageAdded: EPrintXPSJobProgress = 5; -pub const EPrintXPSJobProgress_kResourceAdded: EPrintXPSJobProgress = 6; -pub const EPrintXPSJobProgress_kFontAdded: EPrintXPSJobProgress = 7; -pub const EPrintXPSJobProgress_kImageAdded: EPrintXPSJobProgress = 8; -pub const EPrintXPSJobProgress_kXpsDocumentCommitted: EPrintXPSJobProgress = 9; -pub type EPrintXPSJobProgress = ::std::os::raw::c_int; -pub const EPrintXPSJobOperation_kJobProduction: EPrintXPSJobOperation = 1; -pub const EPrintXPSJobOperation_kJobConsumption: EPrintXPSJobOperation = 2; -pub type EPrintXPSJobOperation = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct PrintPropertyValue { - pub ePropertyType: EPrintPropertyType, - pub value: PrintPropertyValue__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union PrintPropertyValue__bindgen_ty_1 { - pub propertyByte: BYTE, - pub propertyString: PWSTR, - pub propertyInt32: LONG, - pub propertyInt64: LONGLONG, - pub propertyBlob: PrintPropertyValue__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PrintPropertyValue__bindgen_ty_1__bindgen_ty_1 { - pub cbBuf: DWORD, - pub pBuf: LPVOID, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct PrintNamedProperty { - pub propertyName: *mut WCHAR, - pub propertyValue: PrintPropertyValue, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PrintPropertiesCollection { - pub numberOfProperties: ULONG, - pub propertiesCollection: *mut PrintNamedProperty, -} -extern "C" { - pub fn ReportJobProcessingProgress( - printerHandle: HANDLE, - jobId: ULONG, - jobOperation: EPrintXPSJobOperation, - jobProgress: EPrintXPSJobProgress, - ) -> HRESULT; -} -extern "C" { - pub fn GetPrinterDriver2A( - hWnd: HWND, - hPrinter: HANDLE, - pEnvironment: LPSTR, - Level: DWORD, - pDriverInfo: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetPrinterDriver2W( - hWnd: HWND, - hPrinter: HANDLE, - pEnvironment: LPWSTR, - Level: DWORD, - pDriverInfo: LPBYTE, - cbBuf: DWORD, - pcbNeeded: LPDWORD, - ) -> BOOL; -} -pub const PRINT_EXECUTION_CONTEXT_PRINT_EXECUTION_CONTEXT_APPLICATION: PRINT_EXECUTION_CONTEXT = 0; -pub const PRINT_EXECUTION_CONTEXT_PRINT_EXECUTION_CONTEXT_SPOOLER_SERVICE: PRINT_EXECUTION_CONTEXT = - 1; -pub const PRINT_EXECUTION_CONTEXT_PRINT_EXECUTION_CONTEXT_SPOOLER_ISOLATION_HOST: - PRINT_EXECUTION_CONTEXT = 2; -pub const PRINT_EXECUTION_CONTEXT_PRINT_EXECUTION_CONTEXT_FILTER_PIPELINE: PRINT_EXECUTION_CONTEXT = - 3; -pub const PRINT_EXECUTION_CONTEXT_PRINT_EXECUTION_CONTEXT_WOW64: PRINT_EXECUTION_CONTEXT = 4; -pub type PRINT_EXECUTION_CONTEXT = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PRINT_EXECUTION_DATA { - pub context: PRINT_EXECUTION_CONTEXT, - pub clientAppPID: DWORD, -} -extern "C" { - pub fn GetPrintExecutionData(pData: *mut PRINT_EXECUTION_DATA) -> BOOL; -} -extern "C" { - pub fn GetJobNamedPropertyValue( - hPrinter: HANDLE, - JobId: DWORD, - pszName: PCWSTR, - pValue: *mut PrintPropertyValue, - ) -> DWORD; -} -extern "C" { - pub fn FreePrintPropertyValue(pValue: *mut PrintPropertyValue); -} -extern "C" { - pub fn FreePrintNamedPropertyArray( - cProperties: DWORD, - ppProperties: *mut *mut PrintNamedProperty, - ); -} -extern "C" { - pub fn SetJobNamedProperty( - hPrinter: HANDLE, - JobId: DWORD, - pProperty: *const PrintNamedProperty, - ) -> DWORD; -} -extern "C" { - pub fn DeleteJobNamedProperty(hPrinter: HANDLE, JobId: DWORD, pszName: PCWSTR) -> DWORD; -} -extern "C" { - pub fn EnumJobNamedProperties( - hPrinter: HANDLE, - JobId: DWORD, - pcProperties: *mut DWORD, - ppProperties: *mut *mut PrintNamedProperty, - ) -> DWORD; -} -extern "C" { - pub fn GetPrintOutputInfo( - hWnd: HWND, - pszPrinter: PCWSTR, - phFile: *mut HANDLE, - ppszOutputFile: *mut PWSTR, - ) -> HRESULT; -} -extern "C" { - pub fn _calloc_base(_Count: usize, _Size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn calloc( - _Count: ::std::os::raw::c_ulonglong, - _Size: ::std::os::raw::c_ulonglong, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _callnewh(_Size: usize) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _expand( - _Block: *mut ::std::os::raw::c_void, - _Size: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _free_base(_Block: *mut ::std::os::raw::c_void); -} -extern "C" { - pub fn free(_Block: *mut ::std::os::raw::c_void); -} -extern "C" { - pub fn _malloc_base(_Size: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn malloc(_Size: ::std::os::raw::c_ulonglong) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _msize_base(_Block: *mut ::std::os::raw::c_void) -> usize; -} -extern "C" { - pub fn _msize(_Block: *mut ::std::os::raw::c_void) -> usize; -} -extern "C" { - pub fn _realloc_base( - _Block: *mut ::std::os::raw::c_void, - _Size: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn realloc( - _Block: *mut ::std::os::raw::c_void, - _Size: ::std::os::raw::c_ulonglong, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _recalloc_base( - _Block: *mut ::std::os::raw::c_void, - _Count: usize, - _Size: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _recalloc( - _Block: *mut ::std::os::raw::c_void, - _Count: usize, - _Size: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _aligned_free(_Block: *mut ::std::os::raw::c_void); -} -extern "C" { - pub fn _aligned_malloc(_Size: usize, _Alignment: usize) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _aligned_offset_malloc( - _Size: usize, - _Alignment: usize, - _Offset: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _aligned_msize( - _Block: *mut ::std::os::raw::c_void, - _Alignment: usize, - _Offset: usize, - ) -> usize; -} -extern "C" { - pub fn _aligned_offset_realloc( - _Block: *mut ::std::os::raw::c_void, - _Size: usize, - _Alignment: usize, - _Offset: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _aligned_offset_recalloc( - _Block: *mut ::std::os::raw::c_void, - _Count: usize, - _Size: usize, - _Alignment: usize, - _Offset: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _aligned_realloc( - _Block: *mut ::std::os::raw::c_void, - _Size: usize, - _Alignment: usize, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _aligned_recalloc( - _Block: *mut ::std::os::raw::c_void, - _Count: usize, - _Size: usize, - _Alignment: usize, - ) -> *mut ::std::os::raw::c_void; -} -pub type max_align_t = f64; -pub type _CoreCrtSecureSearchSortCompareFunction = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - arg3: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub type _CoreCrtNonSecureSearchSortCompareFunction = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - pub fn bsearch_s( - _Key: *const ::std::os::raw::c_void, - _Base: *const ::std::os::raw::c_void, - _NumOfElements: rsize_t, - _SizeOfElements: rsize_t, - _CompareFunction: _CoreCrtSecureSearchSortCompareFunction, - _Context: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn qsort_s( - _Base: *mut ::std::os::raw::c_void, - _NumOfElements: rsize_t, - _SizeOfElements: rsize_t, - _CompareFunction: _CoreCrtSecureSearchSortCompareFunction, - _Context: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - pub fn bsearch( - _Key: *const ::std::os::raw::c_void, - _Base: *const ::std::os::raw::c_void, - _NumOfElements: usize, - _SizeOfElements: usize, - _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn qsort( - _Base: *mut ::std::os::raw::c_void, - _NumOfElements: usize, - _SizeOfElements: usize, - _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction, - ); -} -extern "C" { - pub fn _lfind_s( - _Key: *const ::std::os::raw::c_void, - _Base: *const ::std::os::raw::c_void, - _NumOfElements: *mut ::std::os::raw::c_uint, - _SizeOfElements: usize, - _CompareFunction: _CoreCrtSecureSearchSortCompareFunction, - _Context: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _lfind( - _Key: *const ::std::os::raw::c_void, - _Base: *const ::std::os::raw::c_void, - _NumOfElements: *mut ::std::os::raw::c_uint, - _SizeOfElements: ::std::os::raw::c_uint, - _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _lsearch_s( - _Key: *const ::std::os::raw::c_void, - _Base: *mut ::std::os::raw::c_void, - _NumOfElements: *mut ::std::os::raw::c_uint, - _SizeOfElements: usize, - _CompareFunction: _CoreCrtSecureSearchSortCompareFunction, - _Context: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _lsearch( - _Key: *const ::std::os::raw::c_void, - _Base: *mut ::std::os::raw::c_void, - _NumOfElements: *mut ::std::os::raw::c_uint, - _SizeOfElements: ::std::os::raw::c_uint, - _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn lfind( - _Key: *const ::std::os::raw::c_void, - _Base: *const ::std::os::raw::c_void, - _NumOfElements: *mut ::std::os::raw::c_uint, - _SizeOfElements: ::std::os::raw::c_uint, - _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn lsearch( - _Key: *const ::std::os::raw::c_void, - _Base: *mut ::std::os::raw::c_void, - _NumOfElements: *mut ::std::os::raw::c_uint, - _SizeOfElements: ::std::os::raw::c_uint, - _CompareFunction: _CoreCrtNonSecureSearchSortCompareFunction, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn _itow_s( - _Value: ::std::os::raw::c_int, - _Buffer: *mut wchar_t, - _BufferCount: usize, - _Radix: ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn _itow( - _Value: ::std::os::raw::c_int, - _Buffer: *mut wchar_t, - _Radix: ::std::os::raw::c_int, - ) -> *mut wchar_t; -} -extern "C" { - pub fn _ltow_s( - _Value: ::std::os::raw::c_long, - _Buffer: *mut wchar_t, - _BufferCount: usize, - _Radix: ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn _ltow( - _Value: ::std::os::raw::c_long, - _Buffer: *mut wchar_t, - _Radix: ::std::os::raw::c_int, - ) -> *mut wchar_t; -} -extern "C" { - pub fn _ultow_s( - _Value: ::std::os::raw::c_ulong, - _Buffer: *mut wchar_t, - _BufferCount: usize, - _Radix: ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn _ultow( - _Value: ::std::os::raw::c_ulong, - _Buffer: *mut wchar_t, - _Radix: ::std::os::raw::c_int, - ) -> *mut wchar_t; -} -extern "C" { - pub fn wcstod(_String: *const wchar_t, _EndPtr: *mut *mut wchar_t) -> f64; -} -extern "C" { - pub fn _wcstod_l( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Locale: _locale_t, - ) -> f64; -} -extern "C" { - pub fn wcstol( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _wcstol_l( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn wcstoll( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _wcstoll_l( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn wcstoul( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn _wcstoul_l( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn wcstoull( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn _wcstoull_l( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn wcstold(_String: *const wchar_t, _EndPtr: *mut *mut wchar_t) -> f64; -} -extern "C" { - pub fn _wcstold_l( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Locale: _locale_t, - ) -> f64; -} -extern "C" { - pub fn wcstof(_String: *const wchar_t, _EndPtr: *mut *mut wchar_t) -> f32; -} -extern "C" { - pub fn _wcstof_l( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Locale: _locale_t, - ) -> f32; -} -extern "C" { - pub fn _wtof(_String: *const wchar_t) -> f64; -} -extern "C" { - pub fn _wtof_l(_String: *const wchar_t, _Locale: _locale_t) -> f64; -} -extern "C" { - pub fn _wtoi(_String: *const wchar_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wtoi_l(_String: *const wchar_t, _Locale: _locale_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wtol(_String: *const wchar_t) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _wtol_l(_String: *const wchar_t, _Locale: _locale_t) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _wtoll(_String: *const wchar_t) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _wtoll_l(_String: *const wchar_t, _Locale: _locale_t) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _i64tow_s( - _Value: ::std::os::raw::c_longlong, - _Buffer: *mut wchar_t, - _BufferCount: usize, - _Radix: ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn _i64tow( - _Value: ::std::os::raw::c_longlong, - _Buffer: *mut wchar_t, - _Radix: ::std::os::raw::c_int, - ) -> *mut wchar_t; -} -extern "C" { - pub fn _ui64tow_s( - _Value: ::std::os::raw::c_ulonglong, - _Buffer: *mut wchar_t, - _BufferCount: usize, - _Radix: ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn _ui64tow( - _Value: ::std::os::raw::c_ulonglong, - _Buffer: *mut wchar_t, - _Radix: ::std::os::raw::c_int, - ) -> *mut wchar_t; -} -extern "C" { - pub fn _wtoi64(_String: *const wchar_t) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _wtoi64_l(_String: *const wchar_t, _Locale: _locale_t) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _wcstoi64( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _wcstoi64_l( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _wcstoui64( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn _wcstoui64_l( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn _wfullpath( - _Buffer: *mut wchar_t, - _Path: *const wchar_t, - _BufferCount: usize, - ) -> *mut wchar_t; -} -extern "C" { - pub fn _wmakepath_s( - _Buffer: *mut wchar_t, - _BufferCount: usize, - _Drive: *const wchar_t, - _Dir: *const wchar_t, - _Filename: *const wchar_t, - _Ext: *const wchar_t, - ) -> errno_t; -} -extern "C" { - pub fn _wmakepath( - _Buffer: *mut wchar_t, - _Drive: *const wchar_t, - _Dir: *const wchar_t, - _Filename: *const wchar_t, - _Ext: *const wchar_t, - ); -} -extern "C" { - pub fn _wperror(_ErrorMessage: *const wchar_t); -} -extern "C" { - pub fn _wsplitpath( - _FullPath: *const wchar_t, - _Drive: *mut wchar_t, - _Dir: *mut wchar_t, - _Filename: *mut wchar_t, - _Ext: *mut wchar_t, - ); -} -extern "C" { - pub fn _wsplitpath_s( - _FullPath: *const wchar_t, - _Drive: *mut wchar_t, - _DriveCount: usize, - _Dir: *mut wchar_t, - _DirCount: usize, - _Filename: *mut wchar_t, - _FilenameCount: usize, - _Ext: *mut wchar_t, - _ExtCount: usize, - ) -> errno_t; -} -extern "C" { - pub fn _wdupenv_s( - _Buffer: *mut *mut wchar_t, - _BufferCount: *mut usize, - _VarName: *const wchar_t, - ) -> errno_t; -} -extern "C" { - pub fn _wgetenv(_VarName: *const wchar_t) -> *mut wchar_t; -} -extern "C" { - pub fn _wgetenv_s( - _RequiredCount: *mut usize, - _Buffer: *mut wchar_t, - _BufferCount: usize, - _VarName: *const wchar_t, - ) -> errno_t; -} -extern "C" { - pub fn _wputenv(_EnvString: *const wchar_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wputenv_s(_Name: *const wchar_t, _Value: *const wchar_t) -> errno_t; -} -extern "C" { - pub fn _wsearchenv_s( - _Filename: *const wchar_t, - _VarName: *const wchar_t, - _Buffer: *mut wchar_t, - _BufferCount: usize, - ) -> errno_t; -} -extern "C" { - pub fn _wsearchenv( - _Filename: *const wchar_t, - _VarName: *const wchar_t, - _ResultPath: *mut wchar_t, - ); -} -extern "C" { - pub fn _wsystem(_Command: *const wchar_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _swab( - _Buf1: *mut ::std::os::raw::c_char, - _Buf2: *mut ::std::os::raw::c_char, - _SizeInBytes: ::std::os::raw::c_int, - ); -} -extern "C" { - pub fn exit(_Code: ::std::os::raw::c_int) -> !; -} -extern "C" { - pub fn _exit(_Code: ::std::os::raw::c_int) -> !; -} -extern "C" { - pub fn _Exit(_Code: ::std::os::raw::c_int) -> !; -} -extern "C" { - pub fn quick_exit(_Code: ::std::os::raw::c_int) -> !; -} -extern "C" { - pub fn abort() -> !; -} -extern "C" { - pub fn _set_abort_behavior( - _Flags: ::std::os::raw::c_uint, - _Mask: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_uint; -} -pub type _onexit_t = ::std::option::Option ::std::os::raw::c_int>; -extern "C" { - pub fn atexit(arg1: ::std::option::Option) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _onexit(_Func: _onexit_t) -> _onexit_t; -} -extern "C" { - pub fn at_quick_exit( - arg1: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -pub type _purecall_handler = ::std::option::Option; -pub type _invalid_parameter_handler = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const wchar_t, - arg2: *const wchar_t, - arg3: *const wchar_t, - arg4: ::std::os::raw::c_uint, - arg5: usize, - ), ->; -extern "C" { - pub fn _set_purecall_handler(_Handler: _purecall_handler) -> _purecall_handler; -} -extern "C" { - pub fn _get_purecall_handler() -> _purecall_handler; -} -extern "C" { - pub fn _set_invalid_parameter_handler( - _Handler: _invalid_parameter_handler, - ) -> _invalid_parameter_handler; -} -extern "C" { - pub fn _get_invalid_parameter_handler() -> _invalid_parameter_handler; -} -extern "C" { - pub fn _set_thread_local_invalid_parameter_handler( - _Handler: _invalid_parameter_handler, - ) -> _invalid_parameter_handler; -} -extern "C" { - pub fn _get_thread_local_invalid_parameter_handler() -> _invalid_parameter_handler; -} -extern "C" { - pub fn _set_error_mode(_Mode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn __sys_errlist() -> *mut *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn __sys_nerr() -> *mut ::std::os::raw::c_int; -} -extern "C" { - pub fn perror(_ErrMsg: *const ::std::os::raw::c_char); -} -extern "C" { - pub fn __p__pgmptr() -> *mut *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn __p__wpgmptr() -> *mut *mut wchar_t; -} -extern "C" { - pub fn __p__fmode() -> *mut ::std::os::raw::c_int; -} -extern "C" { - pub fn _get_pgmptr(_Value: *mut *mut ::std::os::raw::c_char) -> errno_t; -} -extern "C" { - pub fn _get_wpgmptr(_Value: *mut *mut wchar_t) -> errno_t; -} -extern "C" { - pub fn _set_fmode(_Mode: ::std::os::raw::c_int) -> errno_t; -} -extern "C" { - pub fn _get_fmode(_PMode: *mut ::std::os::raw::c_int) -> errno_t; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _div_t { - pub quot: ::std::os::raw::c_int, - pub rem: ::std::os::raw::c_int, -} -pub type div_t = _div_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ldiv_t { - pub quot: ::std::os::raw::c_long, - pub rem: ::std::os::raw::c_long, -} -pub type ldiv_t = _ldiv_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _lldiv_t { - pub quot: ::std::os::raw::c_longlong, - pub rem: ::std::os::raw::c_longlong, -} -pub type lldiv_t = _lldiv_t; -extern "C" { - pub fn abs(_Number: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn labs(_Number: ::std::os::raw::c_long) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn llabs(_Number: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _abs64(_Number: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _byteswap_ushort(_Number: ::std::os::raw::c_ushort) -> ::std::os::raw::c_ushort; -} -extern "C" { - pub fn _byteswap_ulong(_Number: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn _byteswap_uint64(_Number: ::std::os::raw::c_ulonglong) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn div(_Numerator: ::std::os::raw::c_int, _Denominator: ::std::os::raw::c_int) -> div_t; -} -extern "C" { - pub fn ldiv(_Numerator: ::std::os::raw::c_long, _Denominator: ::std::os::raw::c_long) - -> ldiv_t; -} -extern "C" { - pub fn lldiv( - _Numerator: ::std::os::raw::c_longlong, - _Denominator: ::std::os::raw::c_longlong, - ) -> lldiv_t; -} -extern "C" { - pub fn _lrotl( - _Value: ::std::os::raw::c_ulong, - _Shift: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn _lrotr( - _Value: ::std::os::raw::c_ulong, - _Shift: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn srand(_Seed: ::std::os::raw::c_uint); -} -extern "C" { - pub fn rand() -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LDOUBLE { - pub ld: [::std::os::raw::c_uchar; 10usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRT_DOUBLE { - pub x: f64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _CRT_FLOAT { - pub f: f32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LONGDOUBLE { - pub x: f64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _LDBL12 { - pub ld12: [::std::os::raw::c_uchar; 12usize], -} -extern "C" { - pub fn atof(_String: *const ::std::os::raw::c_char) -> f64; -} -extern "C" { - pub fn atoi(_String: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn atol(_String: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn atoll(_String: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _atoi64(_String: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _atof_l(_String: *const ::std::os::raw::c_char, _Locale: _locale_t) -> f64; -} -extern "C" { - pub fn _atoi_l( - _String: *const ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _atol_l( - _String: *const ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _atoll_l( - _String: *const ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _atoi64_l( - _String: *const ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _atoflt( - _Result: *mut _CRT_FLOAT, - _String: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _atodbl( - _Result: *mut _CRT_DOUBLE, - _String: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _atoldbl( - _Result: *mut _LDOUBLE, - _String: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _atoflt_l( - _Result: *mut _CRT_FLOAT, - _String: *const ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _atodbl_l( - _Result: *mut _CRT_DOUBLE, - _String: *mut ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _atoldbl_l( - _Result: *mut _LDOUBLE, - _String: *mut ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn strtof( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - ) -> f32; -} -extern "C" { - pub fn _strtof_l( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> f32; -} -extern "C" { - pub fn strtod( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - ) -> f64; -} -extern "C" { - pub fn _strtod_l( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> f64; -} -extern "C" { - pub fn strtold( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - ) -> f64; -} -extern "C" { - pub fn _strtold_l( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Locale: _locale_t, - ) -> f64; -} -extern "C" { - pub fn strtol( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn _strtol_l( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> ::std::os::raw::c_long; -} -extern "C" { - pub fn strtoll( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _strtoll_l( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn strtoul( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn _strtoul_l( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn strtoull( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn _strtoull_l( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn _strtoi64( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _strtoi64_l( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> ::std::os::raw::c_longlong; -} -extern "C" { - pub fn _strtoui64( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn _strtoui64_l( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> ::std::os::raw::c_ulonglong; -} -extern "C" { - pub fn _itoa_s( - _Value: ::std::os::raw::c_int, - _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: usize, - _Radix: ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn _itoa( - _Value: ::std::os::raw::c_int, - _Buffer: *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _ltoa_s( - _Value: ::std::os::raw::c_long, - _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: usize, - _Radix: ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn _ltoa( - _Value: ::std::os::raw::c_long, - _Buffer: *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _ultoa_s( - _Value: ::std::os::raw::c_ulong, - _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: usize, - _Radix: ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn _ultoa( - _Value: ::std::os::raw::c_ulong, - _Buffer: *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _i64toa_s( - _Value: ::std::os::raw::c_longlong, - _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: usize, - _Radix: ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn _i64toa( - _Value: ::std::os::raw::c_longlong, - _Buffer: *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _ui64toa_s( - _Value: ::std::os::raw::c_ulonglong, - _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: usize, - _Radix: ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn _ui64toa( - _Value: ::std::os::raw::c_ulonglong, - _Buffer: *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _ecvt_s( - _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: usize, - _Value: f64, - _DigitCount: ::std::os::raw::c_int, - _PtDec: *mut ::std::os::raw::c_int, - _PtSign: *mut ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn _ecvt( - _Value: f64, - _DigitCount: ::std::os::raw::c_int, - _PtDec: *mut ::std::os::raw::c_int, - _PtSign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _fcvt_s( - _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: usize, - _Value: f64, - _FractionalDigitCount: ::std::os::raw::c_int, - _PtDec: *mut ::std::os::raw::c_int, - _PtSign: *mut ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn _fcvt( - _Value: f64, - _FractionalDigitCount: ::std::os::raw::c_int, - _PtDec: *mut ::std::os::raw::c_int, - _PtSign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _gcvt_s( - _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: usize, - _Value: f64, - _DigitCount: ::std::os::raw::c_int, - ) -> errno_t; -} -extern "C" { - pub fn _gcvt( - _Value: f64, - _DigitCount: ::std::os::raw::c_int, - _Buffer: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn mblen(_Ch: *const ::std::os::raw::c_char, _MaxCount: usize) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _mblen_l( - _Ch: *const ::std::os::raw::c_char, - _MaxCount: usize, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _mbstrlen(_String: *const ::std::os::raw::c_char) -> usize; -} -extern "C" { - pub fn _mbstrlen_l(_String: *const ::std::os::raw::c_char, _Locale: _locale_t) -> usize; -} -extern "C" { - pub fn _mbstrnlen(_String: *const ::std::os::raw::c_char, _MaxCount: usize) -> usize; -} -extern "C" { - pub fn _mbstrnlen_l( - _String: *const ::std::os::raw::c_char, - _MaxCount: usize, - _Locale: _locale_t, - ) -> usize; -} -extern "C" { - pub fn mbtowc( - _DstCh: *mut wchar_t, - _SrcCh: *const ::std::os::raw::c_char, - _SrcSizeInBytes: usize, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _mbtowc_l( - _DstCh: *mut wchar_t, - _SrcCh: *const ::std::os::raw::c_char, - _SrcSizeInBytes: usize, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn mbstowcs_s( - _PtNumOfCharConverted: *mut usize, - _DstBuf: *mut wchar_t, - _SizeInWords: usize, - _SrcBuf: *const ::std::os::raw::c_char, - _MaxCount: usize, - ) -> errno_t; -} -extern "C" { - pub fn mbstowcs( - _Dest: *mut wchar_t, - _Source: *const ::std::os::raw::c_char, - _MaxCount: usize, - ) -> usize; -} -extern "C" { - pub fn _mbstowcs_s_l( - _PtNumOfCharConverted: *mut usize, - _DstBuf: *mut wchar_t, - _SizeInWords: usize, - _SrcBuf: *const ::std::os::raw::c_char, - _MaxCount: usize, - _Locale: _locale_t, - ) -> errno_t; -} -extern "C" { - pub fn _mbstowcs_l( - _Dest: *mut wchar_t, - _Source: *const ::std::os::raw::c_char, - _MaxCount: usize, - _Locale: _locale_t, - ) -> usize; -} -extern "C" { - pub fn wctomb(_MbCh: *mut ::std::os::raw::c_char, _WCh: wchar_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _wctomb_l( - _MbCh: *mut ::std::os::raw::c_char, - _WCh: wchar_t, - _Locale: _locale_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn wctomb_s( - _SizeConverted: *mut ::std::os::raw::c_int, - _MbCh: *mut ::std::os::raw::c_char, - _SizeInBytes: rsize_t, - _WCh: wchar_t, - ) -> errno_t; -} -extern "C" { - pub fn _wctomb_s_l( - _SizeConverted: *mut ::std::os::raw::c_int, - _MbCh: *mut ::std::os::raw::c_char, - _SizeInBytes: usize, - _WCh: wchar_t, - _Locale: _locale_t, - ) -> errno_t; -} -extern "C" { - pub fn wcstombs_s( - _PtNumOfCharConverted: *mut usize, - _Dst: *mut ::std::os::raw::c_char, - _DstSizeInBytes: usize, - _Src: *const wchar_t, - _MaxCountInBytes: usize, - ) -> errno_t; -} -extern "C" { - pub fn wcstombs( - _Dest: *mut ::std::os::raw::c_char, - _Source: *const wchar_t, - _MaxCount: usize, - ) -> usize; -} -extern "C" { - pub fn _wcstombs_s_l( - _PtNumOfCharConverted: *mut usize, - _Dst: *mut ::std::os::raw::c_char, - _DstSizeInBytes: usize, - _Src: *const wchar_t, - _MaxCountInBytes: usize, - _Locale: _locale_t, - ) -> errno_t; -} -extern "C" { - pub fn _wcstombs_l( - _Dest: *mut ::std::os::raw::c_char, - _Source: *const wchar_t, - _MaxCount: usize, - _Locale: _locale_t, - ) -> usize; -} -extern "C" { - pub fn _fullpath( - _Buffer: *mut ::std::os::raw::c_char, - _Path: *const ::std::os::raw::c_char, - _BufferCount: usize, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _makepath_s( - _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: usize, - _Drive: *const ::std::os::raw::c_char, - _Dir: *const ::std::os::raw::c_char, - _Filename: *const ::std::os::raw::c_char, - _Ext: *const ::std::os::raw::c_char, - ) -> errno_t; -} -extern "C" { - pub fn _makepath( - _Buffer: *mut ::std::os::raw::c_char, - _Drive: *const ::std::os::raw::c_char, - _Dir: *const ::std::os::raw::c_char, - _Filename: *const ::std::os::raw::c_char, - _Ext: *const ::std::os::raw::c_char, - ); -} -extern "C" { - pub fn _splitpath( - _FullPath: *const ::std::os::raw::c_char, - _Drive: *mut ::std::os::raw::c_char, - _Dir: *mut ::std::os::raw::c_char, - _Filename: *mut ::std::os::raw::c_char, - _Ext: *mut ::std::os::raw::c_char, - ); -} -extern "C" { - pub fn _splitpath_s( - _FullPath: *const ::std::os::raw::c_char, - _Drive: *mut ::std::os::raw::c_char, - _DriveCount: usize, - _Dir: *mut ::std::os::raw::c_char, - _DirCount: usize, - _Filename: *mut ::std::os::raw::c_char, - _FilenameCount: usize, - _Ext: *mut ::std::os::raw::c_char, - _ExtCount: usize, - ) -> errno_t; -} -extern "C" { - pub fn getenv_s( - _RequiredCount: *mut usize, - _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: rsize_t, - _VarName: *const ::std::os::raw::c_char, - ) -> errno_t; -} -extern "C" { - pub fn __p___argc() -> *mut ::std::os::raw::c_int; -} -extern "C" { - pub fn __p___argv() -> *mut *mut *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn __p___wargv() -> *mut *mut *mut wchar_t; -} -extern "C" { - pub fn __p__environ() -> *mut *mut *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn __p__wenviron() -> *mut *mut *mut wchar_t; -} -extern "C" { - pub fn getenv(_VarName: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn _dupenv_s( - _Buffer: *mut *mut ::std::os::raw::c_char, - _BufferCount: *mut usize, - _VarName: *const ::std::os::raw::c_char, - ) -> errno_t; -} -extern "C" { - pub fn system(_Command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _putenv(_EnvString: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn _putenv_s( - _Name: *const ::std::os::raw::c_char, - _Value: *const ::std::os::raw::c_char, - ) -> errno_t; -} -extern "C" { - pub fn _searchenv_s( - _Filename: *const ::std::os::raw::c_char, - _VarName: *const ::std::os::raw::c_char, - _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: usize, - ) -> errno_t; -} -extern "C" { - pub fn _searchenv( - _Filename: *const ::std::os::raw::c_char, - _VarName: *const ::std::os::raw::c_char, - _Buffer: *mut ::std::os::raw::c_char, - ); -} -extern "C" { - pub fn _seterrormode(_Mode: ::std::os::raw::c_int); -} -extern "C" { - pub fn _beep(_Frequency: ::std::os::raw::c_uint, _Duration: ::std::os::raw::c_uint); -} -extern "C" { - pub fn _sleep(_Duration: ::std::os::raw::c_ulong); -} -extern "C" { - pub fn ecvt( - _Value: f64, - _DigitCount: ::std::os::raw::c_int, - _PtDec: *mut ::std::os::raw::c_int, - _PtSign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn fcvt( - _Value: f64, - _FractionalDigitCount: ::std::os::raw::c_int, - _PtDec: *mut ::std::os::raw::c_int, - _PtSign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn gcvt( - _Value: f64, - _DigitCount: ::std::os::raw::c_int, - _DstBuf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn itoa( - _Value: ::std::os::raw::c_int, - _Buffer: *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn ltoa( - _Value: ::std::os::raw::c_long, - _Buffer: *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn swab( - _Buf1: *mut ::std::os::raw::c_char, - _Buf2: *mut ::std::os::raw::c_char, - _SizeInBytes: ::std::os::raw::c_int, - ); -} -extern "C" { - pub fn ultoa( - _Value: ::std::os::raw::c_ulong, - _Buffer: *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn putenv(_EnvString: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn onexit(_Func: _onexit_t) -> _onexit_t; -} -pub const tagREGCLS_REGCLS_SINGLEUSE: tagREGCLS = 0; -pub const tagREGCLS_REGCLS_MULTIPLEUSE: tagREGCLS = 1; -pub const tagREGCLS_REGCLS_MULTI_SEPARATE: tagREGCLS = 2; -pub const tagREGCLS_REGCLS_SUSPENDED: tagREGCLS = 4; -pub const tagREGCLS_REGCLS_SURROGATE: tagREGCLS = 8; -pub const tagREGCLS_REGCLS_AGILE: tagREGCLS = 16; -pub type tagREGCLS = ::std::os::raw::c_int; -pub use self::tagREGCLS as REGCLS; -pub const tagCOINITBASE_COINITBASE_MULTITHREADED: tagCOINITBASE = 0; -pub type tagCOINITBASE = ::std::os::raw::c_int; -pub use self::tagCOINITBASE as COINITBASE; -extern "C" { - pub static mut __MIDL_itf_unknwnbase_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_unknwnbase_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPUNKNOWN = *mut IUnknown; -extern "C" { - pub static IID_IUnknown: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IUnknownVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUnknown, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IUnknown { - pub lpVtbl: *mut IUnknownVtbl, -} -extern "C" { - pub fn IUnknown_QueryInterface_Proxy( - This: *mut IUnknown, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn IUnknown_QueryInterface_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IUnknown_AddRef_Proxy(This: *mut IUnknown) -> ULONG; -} -extern "C" { - pub fn IUnknown_AddRef_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IUnknown_Release_Proxy(This: *mut IUnknown) -> ULONG; -} -extern "C" { - pub fn IUnknown_Release_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_unknwnbase_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_unknwnbase_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_AsyncIUnknown: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AsyncIUnknownVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIUnknown, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Begin_QueryInterface: ::std::option::Option< - unsafe extern "C" fn(This: *mut AsyncIUnknown, riid: *const IID) -> HRESULT, - >, - pub Finish_QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIUnknown, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub Begin_AddRef: - ::std::option::Option HRESULT>, - pub Finish_AddRef: - ::std::option::Option ULONG>, - pub Begin_Release: - ::std::option::Option HRESULT>, - pub Finish_Release: - ::std::option::Option ULONG>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AsyncIUnknown { - pub lpVtbl: *mut AsyncIUnknownVtbl, -} -extern "C" { - pub static mut __MIDL_itf_unknwnbase_0000_0002_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_unknwnbase_0000_0002_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPCLASSFACTORY = *mut IClassFactory; -extern "C" { - pub static IID_IClassFactory: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IClassFactoryVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IClassFactory, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub CreateInstance: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IClassFactory, - pUnkOuter: *mut IUnknown, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub LockServer: ::std::option::Option< - unsafe extern "C" fn(This: *mut IClassFactory, fLock: BOOL) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IClassFactory { - pub lpVtbl: *mut IClassFactoryVtbl, -} -extern "C" { - pub fn IClassFactory_RemoteCreateInstance_Proxy( - This: *mut IClassFactory, - riid: *const IID, - ppvObject: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn IClassFactory_RemoteCreateInstance_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IClassFactory_RemoteLockServer_Proxy(This: *mut IClassFactory, fLock: BOOL) -> HRESULT; -} -extern "C" { - pub fn IClassFactory_RemoteLockServer_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_unknwnbase_0000_0003_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_unknwnbase_0000_0003_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub fn IClassFactory_CreateInstance_Proxy( - This: *mut IClassFactory, - pUnkOuter: *mut IUnknown, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn IClassFactory_CreateInstance_Stub( - This: *mut IClassFactory, - riid: *const IID, - ppvObject: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn IClassFactory_LockServer_Proxy(This: *mut IClassFactory, fLock: BOOL) -> HRESULT; -} -extern "C" { - pub fn IClassFactory_LockServer_Stub(This: *mut IClassFactory, fLock: BOOL) -> HRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumContextProps { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IContext { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IObjContext { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _COSERVERINFO { - pub dwReserved1: DWORD, - pub pwszName: LPWSTR, - pub pAuthInfo: *mut COAUTHINFO, - pub dwReserved2: DWORD, -} -pub type COSERVERINFO = _COSERVERINFO; -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPMARSHAL = *mut IMarshal; -extern "C" { - pub static IID_IMarshal: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMarshalVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshal, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetUnmarshalClass: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshal, - riid: *const IID, - pv: *mut ::std::os::raw::c_void, - dwDestContext: DWORD, - pvDestContext: *mut ::std::os::raw::c_void, - mshlflags: DWORD, - pCid: *mut CLSID, - ) -> HRESULT, - >, - pub GetMarshalSizeMax: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshal, - riid: *const IID, - pv: *mut ::std::os::raw::c_void, - dwDestContext: DWORD, - pvDestContext: *mut ::std::os::raw::c_void, - mshlflags: DWORD, - pSize: *mut DWORD, - ) -> HRESULT, - >, - pub MarshalInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshal, - pStm: *mut IStream, - riid: *const IID, - pv: *mut ::std::os::raw::c_void, - dwDestContext: DWORD, - pvDestContext: *mut ::std::os::raw::c_void, - mshlflags: DWORD, - ) -> HRESULT, - >, - pub UnmarshalInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshal, - pStm: *mut IStream, - riid: *const IID, - ppv: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub ReleaseMarshalData: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMarshal, pStm: *mut IStream) -> HRESULT, - >, - pub DisconnectObject: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMarshal, dwReserved: DWORD) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMarshal { - pub lpVtbl: *mut IMarshalVtbl, -} -extern "C" { - pub static IID_INoMarshal: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct INoMarshalVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut INoMarshal, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct INoMarshal { - pub lpVtbl: *mut INoMarshalVtbl, -} -extern "C" { - pub static IID_IAgileObject: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAgileObjectVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAgileObject, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAgileObject { - pub lpVtbl: *mut IAgileObjectVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0003_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0003_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub const tagACTIVATIONTYPE_ACTIVATIONTYPE_UNCATEGORIZED: tagACTIVATIONTYPE = 0; -pub const tagACTIVATIONTYPE_ACTIVATIONTYPE_FROM_MONIKER: tagACTIVATIONTYPE = 1; -pub const tagACTIVATIONTYPE_ACTIVATIONTYPE_FROM_DATA: tagACTIVATIONTYPE = 2; -pub const tagACTIVATIONTYPE_ACTIVATIONTYPE_FROM_STORAGE: tagACTIVATIONTYPE = 4; -pub const tagACTIVATIONTYPE_ACTIVATIONTYPE_FROM_STREAM: tagACTIVATIONTYPE = 8; -pub const tagACTIVATIONTYPE_ACTIVATIONTYPE_FROM_FILE: tagACTIVATIONTYPE = 16; -pub type tagACTIVATIONTYPE = ::std::os::raw::c_int; -pub use self::tagACTIVATIONTYPE as ACTIVATIONTYPE; -extern "C" { - pub static IID_IActivationFilter: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IActivationFilterVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IActivationFilter, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub HandleActivation: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IActivationFilter, - dwActivationType: DWORD, - rclsid: *const IID, - pReplacementClsId: *mut CLSID, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IActivationFilter { - pub lpVtbl: *mut IActivationFilterVtbl, -} -pub type LPMARSHAL2 = *mut IMarshal2; -extern "C" { - pub static IID_IMarshal2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMarshal2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshal2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetUnmarshalClass: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshal2, - riid: *const IID, - pv: *mut ::std::os::raw::c_void, - dwDestContext: DWORD, - pvDestContext: *mut ::std::os::raw::c_void, - mshlflags: DWORD, - pCid: *mut CLSID, - ) -> HRESULT, - >, - pub GetMarshalSizeMax: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshal2, - riid: *const IID, - pv: *mut ::std::os::raw::c_void, - dwDestContext: DWORD, - pvDestContext: *mut ::std::os::raw::c_void, - mshlflags: DWORD, - pSize: *mut DWORD, - ) -> HRESULT, - >, - pub MarshalInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshal2, - pStm: *mut IStream, - riid: *const IID, - pv: *mut ::std::os::raw::c_void, - dwDestContext: DWORD, - pvDestContext: *mut ::std::os::raw::c_void, - mshlflags: DWORD, - ) -> HRESULT, - >, - pub UnmarshalInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshal2, - pStm: *mut IStream, - riid: *const IID, - ppv: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub ReleaseMarshalData: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMarshal2, pStm: *mut IStream) -> HRESULT, - >, - pub DisconnectObject: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMarshal2, dwReserved: DWORD) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMarshal2 { - pub lpVtbl: *mut IMarshal2Vtbl, -} -pub type LPMALLOC = *mut IMalloc; -extern "C" { - pub static IID_IMalloc: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMallocVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMalloc, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Alloc: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMalloc, cb: SIZE_T) -> *mut ::std::os::raw::c_void, - >, - pub Realloc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMalloc, - pv: *mut ::std::os::raw::c_void, - cb: SIZE_T, - ) -> *mut ::std::os::raw::c_void, - >, - pub Free: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMalloc, pv: *mut ::std::os::raw::c_void), - >, - pub GetSize: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMalloc, pv: *mut ::std::os::raw::c_void) -> SIZE_T, - >, - pub DidAlloc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMalloc, - pv: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - pub HeapMinimize: ::std::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMalloc { - pub lpVtbl: *mut IMallocVtbl, -} -pub type LPSTDMARSHALINFO = *mut IStdMarshalInfo; -extern "C" { - pub static IID_IStdMarshalInfo: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IStdMarshalInfoVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStdMarshalInfo, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetClassForHandler: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStdMarshalInfo, - dwDestContext: DWORD, - pvDestContext: *mut ::std::os::raw::c_void, - pClsid: *mut CLSID, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IStdMarshalInfo { - pub lpVtbl: *mut IStdMarshalInfoVtbl, -} -pub type LPEXTERNALCONNECTION = *mut IExternalConnection; -pub const tagEXTCONN_EXTCONN_STRONG: tagEXTCONN = 1; -pub const tagEXTCONN_EXTCONN_WEAK: tagEXTCONN = 2; -pub const tagEXTCONN_EXTCONN_CALLABLE: tagEXTCONN = 4; -pub type tagEXTCONN = ::std::os::raw::c_int; -pub use self::tagEXTCONN as EXTCONN; -extern "C" { - pub static IID_IExternalConnection: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IExternalConnectionVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IExternalConnection, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub AddConnection: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IExternalConnection, - extconn: DWORD, - reserved: DWORD, - ) -> DWORD, - >, - pub ReleaseConnection: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IExternalConnection, - extconn: DWORD, - reserved: DWORD, - fLastReleaseCloses: BOOL, - ) -> DWORD, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IExternalConnection { - pub lpVtbl: *mut IExternalConnectionVtbl, -} -pub type LPMULTIQI = *mut IMultiQI; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMULTI_QI { - pub pIID: *const IID, - pub pItf: *mut IUnknown, - pub hr: HRESULT, -} -pub type MULTI_QI = tagMULTI_QI; -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0008_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0008_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IMultiQI: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMultiQIVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMultiQI, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub QueryMultipleInterfaces: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMultiQI, cMQIs: ULONG, pMQIs: *mut MULTI_QI) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMultiQI { - pub lpVtbl: *mut IMultiQIVtbl, -} -extern "C" { - pub static IID_AsyncIMultiQI: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AsyncIMultiQIVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIMultiQI, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Begin_QueryMultipleInterfaces: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIMultiQI, - cMQIs: ULONG, - pMQIs: *mut MULTI_QI, - ) -> HRESULT, - >, - pub Finish_QueryMultipleInterfaces: ::std::option::Option< - unsafe extern "C" fn(This: *mut AsyncIMultiQI, pMQIs: *mut MULTI_QI) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AsyncIMultiQI { - pub lpVtbl: *mut AsyncIMultiQIVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0009_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0009_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IInternalUnknown: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternalUnknownVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternalUnknown, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub QueryInternalInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternalUnknown, - riid: *const IID, - ppv: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternalUnknown { - pub lpVtbl: *mut IInternalUnknownVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0010_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0010_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPENUMUNKNOWN = *mut IEnumUnknown; -extern "C" { - pub static IID_IEnumUnknown: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumUnknownVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumUnknown, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Next: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumUnknown, - celt: ULONG, - rgelt: *mut *mut IUnknown, - pceltFetched: *mut ULONG, - ) -> HRESULT, - >, - pub Skip: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumUnknown, celt: ULONG) -> HRESULT, - >, - pub Reset: ::std::option::Option HRESULT>, - pub Clone: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumUnknown, ppenum: *mut *mut IEnumUnknown) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumUnknown { - pub lpVtbl: *mut IEnumUnknownVtbl, -} -extern "C" { - pub fn IEnumUnknown_RemoteNext_Proxy( - This: *mut IEnumUnknown, - celt: ULONG, - rgelt: *mut *mut IUnknown, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumUnknown_RemoteNext_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPENUMSTRING = *mut IEnumString; -extern "C" { - pub static IID_IEnumString: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumStringVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumString, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Next: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumString, - celt: ULONG, - rgelt: *mut LPOLESTR, - pceltFetched: *mut ULONG, - ) -> HRESULT, - >, - pub Skip: - ::std::option::Option HRESULT>, - pub Reset: ::std::option::Option HRESULT>, - pub Clone: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumString, ppenum: *mut *mut IEnumString) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumString { - pub lpVtbl: *mut IEnumStringVtbl, -} -extern "C" { - pub fn IEnumString_RemoteNext_Proxy( - This: *mut IEnumString, - celt: ULONG, - rgelt: *mut LPOLESTR, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumString_RemoteNext_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static IID_ISequentialStream: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISequentialStreamVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISequentialStream, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Read: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISequentialStream, - pv: *mut ::std::os::raw::c_void, - cb: ULONG, - pcbRead: *mut ULONG, - ) -> HRESULT, - >, - pub Write: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISequentialStream, - pv: *const ::std::os::raw::c_void, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISequentialStream { - pub lpVtbl: *mut ISequentialStreamVtbl, -} -extern "C" { - pub fn ISequentialStream_RemoteRead_Proxy( - This: *mut ISequentialStream, - pv: *mut byte, - cb: ULONG, - pcbRead: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ISequentialStream_RemoteRead_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ISequentialStream_RemoteWrite_Proxy( - This: *mut ISequentialStream, - pv: *const byte, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ISequentialStream_RemoteWrite_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPSTREAM = *mut IStream; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagSTATSTG { - pub pwcsName: LPOLESTR, - pub type_: DWORD, - pub cbSize: ULARGE_INTEGER, - pub mtime: FILETIME, - pub ctime: FILETIME, - pub atime: FILETIME, - pub grfMode: DWORD, - pub grfLocksSupported: DWORD, - pub clsid: CLSID, - pub grfStateBits: DWORD, - pub reserved: DWORD, -} -pub type STATSTG = tagSTATSTG; -pub const tagSTGTY_STGTY_STORAGE: tagSTGTY = 1; -pub const tagSTGTY_STGTY_STREAM: tagSTGTY = 2; -pub const tagSTGTY_STGTY_LOCKBYTES: tagSTGTY = 3; -pub const tagSTGTY_STGTY_PROPERTY: tagSTGTY = 4; -pub type tagSTGTY = ::std::os::raw::c_int; -pub use self::tagSTGTY as STGTY; -pub const tagSTREAM_SEEK_STREAM_SEEK_SET: tagSTREAM_SEEK = 0; -pub const tagSTREAM_SEEK_STREAM_SEEK_CUR: tagSTREAM_SEEK = 1; -pub const tagSTREAM_SEEK_STREAM_SEEK_END: tagSTREAM_SEEK = 2; -pub type tagSTREAM_SEEK = ::std::os::raw::c_int; -pub use self::tagSTREAM_SEEK as STREAM_SEEK; -pub const tagLOCKTYPE_LOCK_WRITE: tagLOCKTYPE = 1; -pub const tagLOCKTYPE_LOCK_EXCLUSIVE: tagLOCKTYPE = 2; -pub const tagLOCKTYPE_LOCK_ONLYONCE: tagLOCKTYPE = 4; -pub type tagLOCKTYPE = ::std::os::raw::c_int; -pub use self::tagLOCKTYPE as LOCKTYPE; -extern "C" { - pub static IID_IStream: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IStreamVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStream, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Read: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStream, - pv: *mut ::std::os::raw::c_void, - cb: ULONG, - pcbRead: *mut ULONG, - ) -> HRESULT, - >, - pub Write: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStream, - pv: *const ::std::os::raw::c_void, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT, - >, - pub Seek: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStream, - dlibMove: LARGE_INTEGER, - dwOrigin: DWORD, - plibNewPosition: *mut ULARGE_INTEGER, - ) -> HRESULT, - >, - pub SetSize: ::std::option::Option< - unsafe extern "C" fn(This: *mut IStream, libNewSize: ULARGE_INTEGER) -> HRESULT, - >, - pub CopyTo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStream, - pstm: *mut IStream, - cb: ULARGE_INTEGER, - pcbRead: *mut ULARGE_INTEGER, - pcbWritten: *mut ULARGE_INTEGER, - ) -> HRESULT, - >, - pub Commit: ::std::option::Option< - unsafe extern "C" fn(This: *mut IStream, grfCommitFlags: DWORD) -> HRESULT, - >, - pub Revert: ::std::option::Option HRESULT>, - pub LockRegion: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStream, - libOffset: ULARGE_INTEGER, - cb: ULARGE_INTEGER, - dwLockType: DWORD, - ) -> HRESULT, - >, - pub UnlockRegion: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStream, - libOffset: ULARGE_INTEGER, - cb: ULARGE_INTEGER, - dwLockType: DWORD, - ) -> HRESULT, - >, - pub Stat: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStream, - pstatstg: *mut STATSTG, - grfStatFlag: DWORD, - ) -> HRESULT, - >, - pub Clone: ::std::option::Option< - unsafe extern "C" fn(This: *mut IStream, ppstm: *mut *mut IStream) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IStream { - pub lpVtbl: *mut IStreamVtbl, -} -extern "C" { - pub fn IStream_RemoteSeek_Proxy( - This: *mut IStream, - dlibMove: LARGE_INTEGER, - dwOrigin: DWORD, - plibNewPosition: *mut ULARGE_INTEGER, - ) -> HRESULT; -} -extern "C" { - pub fn IStream_RemoteSeek_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IStream_RemoteCopyTo_Proxy( - This: *mut IStream, - pstm: *mut IStream, - cb: ULARGE_INTEGER, - pcbRead: *mut ULARGE_INTEGER, - pcbWritten: *mut ULARGE_INTEGER, - ) -> HRESULT; -} -extern "C" { - pub fn IStream_RemoteCopyTo_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type RPCOLEDATAREP = ULONG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRPCOLEMESSAGE { - pub reserved1: *mut ::std::os::raw::c_void, - pub dataRepresentation: RPCOLEDATAREP, - pub Buffer: *mut ::std::os::raw::c_void, - pub cbBuffer: ULONG, - pub iMethod: ULONG, - pub reserved2: [*mut ::std::os::raw::c_void; 5usize], - pub rpcFlags: ULONG, -} -pub type RPCOLEMESSAGE = tagRPCOLEMESSAGE; -pub type PRPCOLEMESSAGE = *mut RPCOLEMESSAGE; -extern "C" { - pub static IID_IRpcChannelBuffer: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcChannelBufferVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetBuffer: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer, - pMessage: *mut RPCOLEMESSAGE, - riid: *const IID, - ) -> HRESULT, - >, - pub SendReceive: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer, - pMessage: *mut RPCOLEMESSAGE, - pStatus: *mut ULONG, - ) -> HRESULT, - >, - pub FreeBuffer: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRpcChannelBuffer, pMessage: *mut RPCOLEMESSAGE) -> HRESULT, - >, - pub GetDestCtx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer, - pdwDestContext: *mut DWORD, - ppvDestContext: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub IsConnected: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcChannelBuffer { - pub lpVtbl: *mut IRpcChannelBufferVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0015_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0015_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IRpcChannelBuffer2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcChannelBuffer2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetBuffer: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer2, - pMessage: *mut RPCOLEMESSAGE, - riid: *const IID, - ) -> HRESULT, - >, - pub SendReceive: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer2, - pMessage: *mut RPCOLEMESSAGE, - pStatus: *mut ULONG, - ) -> HRESULT, - >, - pub FreeBuffer: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer2, - pMessage: *mut RPCOLEMESSAGE, - ) -> HRESULT, - >, - pub GetDestCtx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer2, - pdwDestContext: *mut DWORD, - ppvDestContext: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub IsConnected: - ::std::option::Option HRESULT>, - pub GetProtocolVersion: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRpcChannelBuffer2, pdwVersion: *mut DWORD) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcChannelBuffer2 { - pub lpVtbl: *mut IRpcChannelBuffer2Vtbl, -} -extern "C" { - pub static IID_IAsyncRpcChannelBuffer: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAsyncRpcChannelBufferVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAsyncRpcChannelBuffer, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetBuffer: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAsyncRpcChannelBuffer, - pMessage: *mut RPCOLEMESSAGE, - riid: *const IID, - ) -> HRESULT, - >, - pub SendReceive: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAsyncRpcChannelBuffer, - pMessage: *mut RPCOLEMESSAGE, - pStatus: *mut ULONG, - ) -> HRESULT, - >, - pub FreeBuffer: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAsyncRpcChannelBuffer, - pMessage: *mut RPCOLEMESSAGE, - ) -> HRESULT, - >, - pub GetDestCtx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAsyncRpcChannelBuffer, - pdwDestContext: *mut DWORD, - ppvDestContext: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub IsConnected: - ::std::option::Option HRESULT>, - pub GetProtocolVersion: ::std::option::Option< - unsafe extern "C" fn(This: *mut IAsyncRpcChannelBuffer, pdwVersion: *mut DWORD) -> HRESULT, - >, - pub Send: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAsyncRpcChannelBuffer, - pMsg: *mut RPCOLEMESSAGE, - pSync: *mut ISynchronize, - pulStatus: *mut ULONG, - ) -> HRESULT, - >, - pub Receive: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAsyncRpcChannelBuffer, - pMsg: *mut RPCOLEMESSAGE, - pulStatus: *mut ULONG, - ) -> HRESULT, - >, - pub GetDestCtxEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAsyncRpcChannelBuffer, - pMsg: *mut RPCOLEMESSAGE, - pdwDestContext: *mut DWORD, - ppvDestContext: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAsyncRpcChannelBuffer { - pub lpVtbl: *mut IAsyncRpcChannelBufferVtbl, -} -extern "C" { - pub static IID_IRpcChannelBuffer3: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcChannelBuffer3Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer3, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetBuffer: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer3, - pMessage: *mut RPCOLEMESSAGE, - riid: *const IID, - ) -> HRESULT, - >, - pub SendReceive: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer3, - pMessage: *mut RPCOLEMESSAGE, - pStatus: *mut ULONG, - ) -> HRESULT, - >, - pub FreeBuffer: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer3, - pMessage: *mut RPCOLEMESSAGE, - ) -> HRESULT, - >, - pub GetDestCtx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer3, - pdwDestContext: *mut DWORD, - ppvDestContext: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub IsConnected: - ::std::option::Option HRESULT>, - pub GetProtocolVersion: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRpcChannelBuffer3, pdwVersion: *mut DWORD) -> HRESULT, - >, - pub Send: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer3, - pMsg: *mut RPCOLEMESSAGE, - pulStatus: *mut ULONG, - ) -> HRESULT, - >, - pub Receive: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer3, - pMsg: *mut RPCOLEMESSAGE, - ulSize: ULONG, - pulStatus: *mut ULONG, - ) -> HRESULT, - >, - pub Cancel: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRpcChannelBuffer3, pMsg: *mut RPCOLEMESSAGE) -> HRESULT, - >, - pub GetCallContext: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer3, - pMsg: *mut RPCOLEMESSAGE, - riid: *const IID, - pInterface: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub GetDestCtxEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer3, - pMsg: *mut RPCOLEMESSAGE, - pdwDestContext: *mut DWORD, - ppvDestContext: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub GetState: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer3, - pMsg: *mut RPCOLEMESSAGE, - pState: *mut DWORD, - ) -> HRESULT, - >, - pub RegisterAsync: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcChannelBuffer3, - pMsg: *mut RPCOLEMESSAGE, - pAsyncMgr: *mut IAsyncManager, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcChannelBuffer3 { - pub lpVtbl: *mut IRpcChannelBuffer3Vtbl, -} -extern "C" { - pub static IID_IRpcSyntaxNegotiate: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcSyntaxNegotiateVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcSyntaxNegotiate, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub NegotiateSyntax: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRpcSyntaxNegotiate, pMsg: *mut RPCOLEMESSAGE) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcSyntaxNegotiate { - pub lpVtbl: *mut IRpcSyntaxNegotiateVtbl, -} -extern "C" { - pub static IID_IRpcProxyBuffer: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcProxyBufferVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcProxyBuffer, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Connect: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcProxyBuffer, - pRpcChannelBuffer: *mut IRpcChannelBuffer, - ) -> HRESULT, - >, - pub Disconnect: ::std::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcProxyBuffer { - pub lpVtbl: *mut IRpcProxyBufferVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0020_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0020_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IRpcStubBuffer: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcStubBufferVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcStubBuffer, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Connect: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRpcStubBuffer, pUnkServer: *mut IUnknown) -> HRESULT, - >, - pub Disconnect: ::std::option::Option, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcStubBuffer, - _prpcmsg: *mut RPCOLEMESSAGE, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - ) -> HRESULT, - >, - pub IsIIDSupported: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRpcStubBuffer, riid: *const IID) -> *mut IRpcStubBuffer, - >, - pub CountRefs: ::std::option::Option ULONG>, - pub DebugServerQueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcStubBuffer, - ppv: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub DebugServerRelease: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRpcStubBuffer, pv: *mut ::std::os::raw::c_void), - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcStubBuffer { - pub lpVtbl: *mut IRpcStubBufferVtbl, -} -extern "C" { - pub static IID_IPSFactoryBuffer: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPSFactoryBufferVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPSFactoryBuffer, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub CreateProxy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPSFactoryBuffer, - pUnkOuter: *mut IUnknown, - riid: *const IID, - ppProxy: *mut *mut IRpcProxyBuffer, - ppv: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub CreateStub: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPSFactoryBuffer, - riid: *const IID, - pUnkServer: *mut IUnknown, - ppStub: *mut *mut IRpcStubBuffer, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPSFactoryBuffer { - pub lpVtbl: *mut IPSFactoryBufferVtbl, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SChannelHookCallInfo { - pub iid: IID, - pub cbSize: DWORD, - pub uCausality: GUID, - pub dwServerPid: DWORD, - pub iMethod: DWORD, - pub pObject: *mut ::std::os::raw::c_void, -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0022_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0022_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IChannelHook: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IChannelHookVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IChannelHook, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub ClientGetSize: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IChannelHook, - uExtent: *const GUID, - riid: *const IID, - pDataSize: *mut ULONG, - ), - >, - pub ClientFillBuffer: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IChannelHook, - uExtent: *const GUID, - riid: *const IID, - pDataSize: *mut ULONG, - pDataBuffer: *mut ::std::os::raw::c_void, - ), - >, - pub ClientNotify: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IChannelHook, - uExtent: *const GUID, - riid: *const IID, - cbDataSize: ULONG, - pDataBuffer: *mut ::std::os::raw::c_void, - lDataRep: DWORD, - hrFault: HRESULT, - ), - >, - pub ServerNotify: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IChannelHook, - uExtent: *const GUID, - riid: *const IID, - cbDataSize: ULONG, - pDataBuffer: *mut ::std::os::raw::c_void, - lDataRep: DWORD, - ), - >, - pub ServerGetSize: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IChannelHook, - uExtent: *const GUID, - riid: *const IID, - hrFault: HRESULT, - pDataSize: *mut ULONG, - ), - >, - pub ServerFillBuffer: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IChannelHook, - uExtent: *const GUID, - riid: *const IID, - pDataSize: *mut ULONG, - pDataBuffer: *mut ::std::os::raw::c_void, - hrFault: HRESULT, - ), - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IChannelHook { - pub lpVtbl: *mut IChannelHookVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0023_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0023_v0_0_s_ifspec: RPC_IF_HANDLE; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSOLE_AUTHENTICATION_SERVICE { - pub dwAuthnSvc: DWORD, - pub dwAuthzSvc: DWORD, - pub pPrincipalName: *mut OLECHAR, - pub hr: HRESULT, -} -pub type SOLE_AUTHENTICATION_SERVICE = tagSOLE_AUTHENTICATION_SERVICE; -pub type PSOLE_AUTHENTICATION_SERVICE = *mut SOLE_AUTHENTICATION_SERVICE; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_NONE: tagEOLE_AUTHENTICATION_CAPABILITIES = 0; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_MUTUAL_AUTH: - tagEOLE_AUTHENTICATION_CAPABILITIES = 1; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_STATIC_CLOAKING: - tagEOLE_AUTHENTICATION_CAPABILITIES = 32; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_DYNAMIC_CLOAKING: - tagEOLE_AUTHENTICATION_CAPABILITIES = 64; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_ANY_AUTHORITY: - tagEOLE_AUTHENTICATION_CAPABILITIES = 128; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_MAKE_FULLSIC: - tagEOLE_AUTHENTICATION_CAPABILITIES = 256; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_DEFAULT: tagEOLE_AUTHENTICATION_CAPABILITIES = - 2048; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_SECURE_REFS: - tagEOLE_AUTHENTICATION_CAPABILITIES = 2; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_ACCESS_CONTROL: - tagEOLE_AUTHENTICATION_CAPABILITIES = 4; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_APPID: tagEOLE_AUTHENTICATION_CAPABILITIES = 8; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_DYNAMIC: tagEOLE_AUTHENTICATION_CAPABILITIES = - 16; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_REQUIRE_FULLSIC: - tagEOLE_AUTHENTICATION_CAPABILITIES = 512; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_AUTO_IMPERSONATE: - tagEOLE_AUTHENTICATION_CAPABILITIES = 1024; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_DISABLE_AAA: - tagEOLE_AUTHENTICATION_CAPABILITIES = 4096; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_NO_CUSTOM_MARSHAL: - tagEOLE_AUTHENTICATION_CAPABILITIES = 8192; -pub const tagEOLE_AUTHENTICATION_CAPABILITIES_EOAC_RESERVED1: tagEOLE_AUTHENTICATION_CAPABILITIES = - 16384; -pub type tagEOLE_AUTHENTICATION_CAPABILITIES = ::std::os::raw::c_int; -pub use self::tagEOLE_AUTHENTICATION_CAPABILITIES as EOLE_AUTHENTICATION_CAPABILITIES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSOLE_AUTHENTICATION_INFO { - pub dwAuthnSvc: DWORD, - pub dwAuthzSvc: DWORD, - pub pAuthInfo: *mut ::std::os::raw::c_void, -} -pub type SOLE_AUTHENTICATION_INFO = tagSOLE_AUTHENTICATION_INFO; -pub type PSOLE_AUTHENTICATION_INFO = *mut tagSOLE_AUTHENTICATION_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSOLE_AUTHENTICATION_LIST { - pub cAuthInfo: DWORD, - pub aAuthInfo: *mut SOLE_AUTHENTICATION_INFO, -} -pub type SOLE_AUTHENTICATION_LIST = tagSOLE_AUTHENTICATION_LIST; -pub type PSOLE_AUTHENTICATION_LIST = *mut tagSOLE_AUTHENTICATION_LIST; -extern "C" { - pub static IID_IClientSecurity: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IClientSecurityVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IClientSecurity, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub QueryBlanket: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IClientSecurity, - pProxy: *mut IUnknown, - pAuthnSvc: *mut DWORD, - pAuthzSvc: *mut DWORD, - pServerPrincName: *mut *mut OLECHAR, - pAuthnLevel: *mut DWORD, - pImpLevel: *mut DWORD, - pAuthInfo: *mut *mut ::std::os::raw::c_void, - pCapabilites: *mut DWORD, - ) -> HRESULT, - >, - pub SetBlanket: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IClientSecurity, - pProxy: *mut IUnknown, - dwAuthnSvc: DWORD, - dwAuthzSvc: DWORD, - pServerPrincName: *mut OLECHAR, - dwAuthnLevel: DWORD, - dwImpLevel: DWORD, - pAuthInfo: *mut ::std::os::raw::c_void, - dwCapabilities: DWORD, - ) -> HRESULT, - >, - pub CopyProxy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IClientSecurity, - pProxy: *mut IUnknown, - ppCopy: *mut *mut IUnknown, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IClientSecurity { - pub lpVtbl: *mut IClientSecurityVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0024_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0024_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IServerSecurity: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IServerSecurityVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IServerSecurity, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub QueryBlanket: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IServerSecurity, - pAuthnSvc: *mut DWORD, - pAuthzSvc: *mut DWORD, - pServerPrincName: *mut *mut OLECHAR, - pAuthnLevel: *mut DWORD, - pImpLevel: *mut DWORD, - pPrivs: *mut *mut ::std::os::raw::c_void, - pCapabilities: *mut DWORD, - ) -> HRESULT, - >, - pub ImpersonateClient: - ::std::option::Option HRESULT>, - pub RevertToSelf: - ::std::option::Option HRESULT>, - pub IsImpersonating: - ::std::option::Option BOOL>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IServerSecurity { - pub lpVtbl: *mut IServerSecurityVtbl, -} -pub const tagRPCOPT_PROPERTIES_COMBND_RPCTIMEOUT: tagRPCOPT_PROPERTIES = 1; -pub const tagRPCOPT_PROPERTIES_COMBND_SERVER_LOCALITY: tagRPCOPT_PROPERTIES = 2; -pub const tagRPCOPT_PROPERTIES_COMBND_RESERVED1: tagRPCOPT_PROPERTIES = 4; -pub const tagRPCOPT_PROPERTIES_COMBND_RESERVED2: tagRPCOPT_PROPERTIES = 5; -pub const tagRPCOPT_PROPERTIES_COMBND_RESERVED3: tagRPCOPT_PROPERTIES = 8; -pub const tagRPCOPT_PROPERTIES_COMBND_RESERVED4: tagRPCOPT_PROPERTIES = 16; -pub type tagRPCOPT_PROPERTIES = ::std::os::raw::c_int; -pub use self::tagRPCOPT_PROPERTIES as RPCOPT_PROPERTIES; -pub const tagRPCOPT_SERVER_LOCALITY_VALUES_SERVER_LOCALITY_PROCESS_LOCAL: - tagRPCOPT_SERVER_LOCALITY_VALUES = 0; -pub const tagRPCOPT_SERVER_LOCALITY_VALUES_SERVER_LOCALITY_MACHINE_LOCAL: - tagRPCOPT_SERVER_LOCALITY_VALUES = 1; -pub const tagRPCOPT_SERVER_LOCALITY_VALUES_SERVER_LOCALITY_REMOTE: - tagRPCOPT_SERVER_LOCALITY_VALUES = 2; -pub type tagRPCOPT_SERVER_LOCALITY_VALUES = ::std::os::raw::c_int; -pub use self::tagRPCOPT_SERVER_LOCALITY_VALUES as RPCOPT_SERVER_LOCALITY_VALUES; -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0025_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0025_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IRpcOptions: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcOptionsVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcOptions, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Set: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcOptions, - pPrx: *mut IUnknown, - dwProperty: RPCOPT_PROPERTIES, - dwValue: ULONG_PTR, - ) -> HRESULT, - >, - pub Query: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcOptions, - pPrx: *mut IUnknown, - dwProperty: RPCOPT_PROPERTIES, - pdwValue: *mut ULONG_PTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcOptions { - pub lpVtbl: *mut IRpcOptionsVtbl, -} -pub const tagGLOBALOPT_PROPERTIES_COMGLB_EXCEPTION_HANDLING: tagGLOBALOPT_PROPERTIES = 1; -pub const tagGLOBALOPT_PROPERTIES_COMGLB_APPID: tagGLOBALOPT_PROPERTIES = 2; -pub const tagGLOBALOPT_PROPERTIES_COMGLB_RPC_THREADPOOL_SETTING: tagGLOBALOPT_PROPERTIES = 3; -pub const tagGLOBALOPT_PROPERTIES_COMGLB_RO_SETTINGS: tagGLOBALOPT_PROPERTIES = 4; -pub const tagGLOBALOPT_PROPERTIES_COMGLB_UNMARSHALING_POLICY: tagGLOBALOPT_PROPERTIES = 5; -pub const tagGLOBALOPT_PROPERTIES_COMGLB_PROPERTIES_RESERVED1: tagGLOBALOPT_PROPERTIES = 6; -pub const tagGLOBALOPT_PROPERTIES_COMGLB_PROPERTIES_RESERVED2: tagGLOBALOPT_PROPERTIES = 7; -pub const tagGLOBALOPT_PROPERTIES_COMGLB_PROPERTIES_RESERVED3: tagGLOBALOPT_PROPERTIES = 8; -pub type tagGLOBALOPT_PROPERTIES = ::std::os::raw::c_int; -pub use self::tagGLOBALOPT_PROPERTIES as GLOBALOPT_PROPERTIES; -pub const tagGLOBALOPT_EH_VALUES_COMGLB_EXCEPTION_HANDLE: tagGLOBALOPT_EH_VALUES = 0; -pub const tagGLOBALOPT_EH_VALUES_COMGLB_EXCEPTION_DONOT_HANDLE_FATAL: tagGLOBALOPT_EH_VALUES = 1; -pub const tagGLOBALOPT_EH_VALUES_COMGLB_EXCEPTION_DONOT_HANDLE: tagGLOBALOPT_EH_VALUES = 1; -pub const tagGLOBALOPT_EH_VALUES_COMGLB_EXCEPTION_DONOT_HANDLE_ANY: tagGLOBALOPT_EH_VALUES = 2; -pub type tagGLOBALOPT_EH_VALUES = ::std::os::raw::c_int; -pub use self::tagGLOBALOPT_EH_VALUES as GLOBALOPT_EH_VALUES; -pub const tagGLOBALOPT_RPCTP_VALUES_COMGLB_RPC_THREADPOOL_SETTING_DEFAULT_POOL: - tagGLOBALOPT_RPCTP_VALUES = 0; -pub const tagGLOBALOPT_RPCTP_VALUES_COMGLB_RPC_THREADPOOL_SETTING_PRIVATE_POOL: - tagGLOBALOPT_RPCTP_VALUES = 1; -pub type tagGLOBALOPT_RPCTP_VALUES = ::std::os::raw::c_int; -pub use self::tagGLOBALOPT_RPCTP_VALUES as GLOBALOPT_RPCTP_VALUES; -pub const tagGLOBALOPT_RO_FLAGS_COMGLB_STA_MODALLOOP_REMOVE_TOUCH_MESSAGES: tagGLOBALOPT_RO_FLAGS = - 1; -pub const tagGLOBALOPT_RO_FLAGS_COMGLB_STA_MODALLOOP_SHARED_QUEUE_REMOVE_INPUT_MESSAGES: - tagGLOBALOPT_RO_FLAGS = 2; -pub const tagGLOBALOPT_RO_FLAGS_COMGLB_STA_MODALLOOP_SHARED_QUEUE_DONOT_REMOVE_INPUT_MESSAGES: - tagGLOBALOPT_RO_FLAGS = 4; -pub const tagGLOBALOPT_RO_FLAGS_COMGLB_FAST_RUNDOWN: tagGLOBALOPT_RO_FLAGS = 8; -pub const tagGLOBALOPT_RO_FLAGS_COMGLB_RESERVED1: tagGLOBALOPT_RO_FLAGS = 16; -pub const tagGLOBALOPT_RO_FLAGS_COMGLB_RESERVED2: tagGLOBALOPT_RO_FLAGS = 32; -pub const tagGLOBALOPT_RO_FLAGS_COMGLB_RESERVED3: tagGLOBALOPT_RO_FLAGS = 64; -pub const tagGLOBALOPT_RO_FLAGS_COMGLB_STA_MODALLOOP_SHARED_QUEUE_REORDER_POINTER_MESSAGES: - tagGLOBALOPT_RO_FLAGS = 128; -pub const tagGLOBALOPT_RO_FLAGS_COMGLB_RESERVED4: tagGLOBALOPT_RO_FLAGS = 256; -pub const tagGLOBALOPT_RO_FLAGS_COMGLB_RESERVED5: tagGLOBALOPT_RO_FLAGS = 512; -pub const tagGLOBALOPT_RO_FLAGS_COMGLB_RESERVED6: tagGLOBALOPT_RO_FLAGS = 1024; -pub type tagGLOBALOPT_RO_FLAGS = ::std::os::raw::c_int; -pub use self::tagGLOBALOPT_RO_FLAGS as GLOBALOPT_RO_FLAGS; -pub const tagGLOBALOPT_UNMARSHALING_POLICY_VALUES_COMGLB_UNMARSHALING_POLICY_NORMAL: - tagGLOBALOPT_UNMARSHALING_POLICY_VALUES = 0; -pub const tagGLOBALOPT_UNMARSHALING_POLICY_VALUES_COMGLB_UNMARSHALING_POLICY_STRONG: - tagGLOBALOPT_UNMARSHALING_POLICY_VALUES = 1; -pub const tagGLOBALOPT_UNMARSHALING_POLICY_VALUES_COMGLB_UNMARSHALING_POLICY_HYBRID: - tagGLOBALOPT_UNMARSHALING_POLICY_VALUES = 2; -pub type tagGLOBALOPT_UNMARSHALING_POLICY_VALUES = ::std::os::raw::c_int; -pub use self::tagGLOBALOPT_UNMARSHALING_POLICY_VALUES as GLOBALOPT_UNMARSHALING_POLICY_VALUES; -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0026_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0026_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IGlobalOptions: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IGlobalOptionsVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IGlobalOptions, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Set: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IGlobalOptions, - dwProperty: GLOBALOPT_PROPERTIES, - dwValue: ULONG_PTR, - ) -> HRESULT, - >, - pub Query: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IGlobalOptions, - dwProperty: GLOBALOPT_PROPERTIES, - pdwValue: *mut ULONG_PTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IGlobalOptions { - pub lpVtbl: *mut IGlobalOptionsVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0027_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0027_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPSURROGATE = *mut ISurrogate; -extern "C" { - pub static IID_ISurrogate: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISurrogateVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISurrogate, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub LoadDllServer: ::std::option::Option< - unsafe extern "C" fn(This: *mut ISurrogate, Clsid: *const IID) -> HRESULT, - >, - pub FreeSurrogate: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISurrogate { - pub lpVtbl: *mut ISurrogateVtbl, -} -pub type LPGLOBALINTERFACETABLE = *mut IGlobalInterfaceTable; -extern "C" { - pub static IID_IGlobalInterfaceTable: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IGlobalInterfaceTableVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IGlobalInterfaceTable, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub RegisterInterfaceInGlobal: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IGlobalInterfaceTable, - pUnk: *mut IUnknown, - riid: *const IID, - pdwCookie: *mut DWORD, - ) -> HRESULT, - >, - pub RevokeInterfaceFromGlobal: ::std::option::Option< - unsafe extern "C" fn(This: *mut IGlobalInterfaceTable, dwCookie: DWORD) -> HRESULT, - >, - pub GetInterfaceFromGlobal: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IGlobalInterfaceTable, - dwCookie: DWORD, - riid: *const IID, - ppv: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IGlobalInterfaceTable { - pub lpVtbl: *mut IGlobalInterfaceTableVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0029_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0029_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_ISynchronize: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISynchronizeVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISynchronize, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Wait: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISynchronize, - dwFlags: DWORD, - dwMilliseconds: DWORD, - ) -> HRESULT, - >, - pub Signal: ::std::option::Option HRESULT>, - pub Reset: ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISynchronize { - pub lpVtbl: *mut ISynchronizeVtbl, -} -extern "C" { - pub static IID_ISynchronizeHandle: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISynchronizeHandleVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISynchronizeHandle, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetHandle: ::std::option::Option< - unsafe extern "C" fn(This: *mut ISynchronizeHandle, ph: *mut HANDLE) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISynchronizeHandle { - pub lpVtbl: *mut ISynchronizeHandleVtbl, -} -extern "C" { - pub static IID_ISynchronizeEvent: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISynchronizeEventVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISynchronizeEvent, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetHandle: ::std::option::Option< - unsafe extern "C" fn(This: *mut ISynchronizeEvent, ph: *mut HANDLE) -> HRESULT, - >, - pub SetEventHandle: ::std::option::Option< - unsafe extern "C" fn(This: *mut ISynchronizeEvent, ph: *mut HANDLE) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISynchronizeEvent { - pub lpVtbl: *mut ISynchronizeEventVtbl, -} -extern "C" { - pub static IID_ISynchronizeContainer: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISynchronizeContainerVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISynchronizeContainer, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub AddSynchronize: ::std::option::Option< - unsafe extern "C" fn(This: *mut ISynchronizeContainer, pSync: *mut ISynchronize) -> HRESULT, - >, - pub WaitMultiple: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISynchronizeContainer, - dwFlags: DWORD, - dwTimeOut: DWORD, - ppSync: *mut *mut ISynchronize, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISynchronizeContainer { - pub lpVtbl: *mut ISynchronizeContainerVtbl, -} -extern "C" { - pub static IID_ISynchronizeMutex: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISynchronizeMutexVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISynchronizeMutex, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Wait: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISynchronizeMutex, - dwFlags: DWORD, - dwMilliseconds: DWORD, - ) -> HRESULT, - >, - pub Signal: - ::std::option::Option HRESULT>, - pub Reset: ::std::option::Option HRESULT>, - pub ReleaseMutex: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISynchronizeMutex { - pub lpVtbl: *mut ISynchronizeMutexVtbl, -} -pub type LPCANCELMETHODCALLS = *mut ICancelMethodCalls; -extern "C" { - pub static IID_ICancelMethodCalls: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICancelMethodCallsVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICancelMethodCalls, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub Cancel: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICancelMethodCalls, ulSeconds: ULONG) -> HRESULT, - >, - pub TestCancel: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICancelMethodCalls { - pub lpVtbl: *mut ICancelMethodCallsVtbl, -} -pub const tagDCOM_CALL_STATE_DCOM_NONE: tagDCOM_CALL_STATE = 0; -pub const tagDCOM_CALL_STATE_DCOM_CALL_COMPLETE: tagDCOM_CALL_STATE = 1; -pub const tagDCOM_CALL_STATE_DCOM_CALL_CANCELED: tagDCOM_CALL_STATE = 2; -pub type tagDCOM_CALL_STATE = ::std::os::raw::c_int; -pub use self::tagDCOM_CALL_STATE as DCOM_CALL_STATE; -extern "C" { - pub static IID_IAsyncManager: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAsyncManagerVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAsyncManager, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub CompleteCall: ::std::option::Option< - unsafe extern "C" fn(This: *mut IAsyncManager, Result: HRESULT) -> HRESULT, - >, - pub GetCallContext: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAsyncManager, - riid: *const IID, - pInterface: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub GetState: ::std::option::Option< - unsafe extern "C" fn(This: *mut IAsyncManager, pulStateFlags: *mut ULONG) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAsyncManager { - pub lpVtbl: *mut IAsyncManagerVtbl, -} -extern "C" { - pub static IID_ICallFactory: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICallFactoryVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICallFactory, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub CreateCall: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICallFactory, - riid: *const IID, - pCtrlUnk: *mut IUnknown, - riid2: *const IID, - ppv: *mut *mut IUnknown, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICallFactory { - pub lpVtbl: *mut ICallFactoryVtbl, -} -extern "C" { - pub static IID_IRpcHelper: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcHelperVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcHelper, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetDCOMProtocolVersion: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRpcHelper, pComVersion: *mut DWORD) -> HRESULT, - >, - pub GetIIDFromOBJREF: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRpcHelper, - pObjRef: *mut ::std::os::raw::c_void, - piid: *mut *mut IID, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRpcHelper { - pub lpVtbl: *mut IRpcHelperVtbl, -} -extern "C" { - pub static IID_IReleaseMarshalBuffers: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IReleaseMarshalBuffersVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IReleaseMarshalBuffers, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub ReleaseMarshalBuffer: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IReleaseMarshalBuffers, - pMsg: *mut RPCOLEMESSAGE, - dwFlags: DWORD, - pChnl: *mut IUnknown, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IReleaseMarshalBuffers { - pub lpVtbl: *mut IReleaseMarshalBuffersVtbl, -} -extern "C" { - pub static IID_IWaitMultiple: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWaitMultipleVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWaitMultiple, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub WaitMultiple: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWaitMultiple, - timeout: DWORD, - pSync: *mut *mut ISynchronize, - ) -> HRESULT, - >, - pub AddSynchronize: ::std::option::Option< - unsafe extern "C" fn(This: *mut IWaitMultiple, pSync: *mut ISynchronize) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWaitMultiple { - pub lpVtbl: *mut IWaitMultipleVtbl, -} -pub type LPADDRTRACKINGCONTROL = *mut IAddrTrackingControl; -extern "C" { - pub static IID_IAddrTrackingControl: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAddrTrackingControlVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAddrTrackingControl, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub EnableCOMDynamicAddrTracking: - ::std::option::Option HRESULT>, - pub DisableCOMDynamicAddrTracking: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAddrTrackingControl { - pub lpVtbl: *mut IAddrTrackingControlVtbl, -} -pub type LPADDREXCLUSIONCONTROL = *mut IAddrExclusionControl; -extern "C" { - pub static IID_IAddrExclusionControl: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAddrExclusionControlVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAddrExclusionControl, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetCurrentAddrExclusionList: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAddrExclusionControl, - riid: *const IID, - ppEnumerator: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub UpdateAddrExclusionList: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAddrExclusionControl, - pEnumerator: *mut IUnknown, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAddrExclusionControl { - pub lpVtbl: *mut IAddrExclusionControlVtbl, -} -extern "C" { - pub static IID_IPipeByte: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPipeByteVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPipeByte, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Pull: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPipeByte, - buf: *mut BYTE, - cRequest: ULONG, - pcReturned: *mut ULONG, - ) -> HRESULT, - >, - pub Push: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPipeByte, buf: *mut BYTE, cSent: ULONG) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPipeByte { - pub lpVtbl: *mut IPipeByteVtbl, -} -extern "C" { - pub static IID_AsyncIPipeByte: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AsyncIPipeByteVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIPipeByte, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Begin_Pull: ::std::option::Option< - unsafe extern "C" fn(This: *mut AsyncIPipeByte, cRequest: ULONG) -> HRESULT, - >, - pub Finish_Pull: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIPipeByte, - buf: *mut BYTE, - pcReturned: *mut ULONG, - ) -> HRESULT, - >, - pub Begin_Push: ::std::option::Option< - unsafe extern "C" fn(This: *mut AsyncIPipeByte, buf: *mut BYTE, cSent: ULONG) -> HRESULT, - >, - pub Finish_Push: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AsyncIPipeByte { - pub lpVtbl: *mut AsyncIPipeByteVtbl, -} -extern "C" { - pub static IID_IPipeLong: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPipeLongVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPipeLong, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Pull: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPipeLong, - buf: *mut LONG, - cRequest: ULONG, - pcReturned: *mut ULONG, - ) -> HRESULT, - >, - pub Push: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPipeLong, buf: *mut LONG, cSent: ULONG) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPipeLong { - pub lpVtbl: *mut IPipeLongVtbl, -} -extern "C" { - pub static IID_AsyncIPipeLong: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AsyncIPipeLongVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIPipeLong, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Begin_Pull: ::std::option::Option< - unsafe extern "C" fn(This: *mut AsyncIPipeLong, cRequest: ULONG) -> HRESULT, - >, - pub Finish_Pull: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIPipeLong, - buf: *mut LONG, - pcReturned: *mut ULONG, - ) -> HRESULT, - >, - pub Begin_Push: ::std::option::Option< - unsafe extern "C" fn(This: *mut AsyncIPipeLong, buf: *mut LONG, cSent: ULONG) -> HRESULT, - >, - pub Finish_Push: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AsyncIPipeLong { - pub lpVtbl: *mut AsyncIPipeLongVtbl, -} -extern "C" { - pub static IID_IPipeDouble: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPipeDoubleVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPipeDouble, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Pull: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPipeDouble, - buf: *mut DOUBLE, - cRequest: ULONG, - pcReturned: *mut ULONG, - ) -> HRESULT, - >, - pub Push: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPipeDouble, buf: *mut DOUBLE, cSent: ULONG) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPipeDouble { - pub lpVtbl: *mut IPipeDoubleVtbl, -} -extern "C" { - pub static IID_AsyncIPipeDouble: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AsyncIPipeDoubleVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIPipeDouble, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Begin_Pull: ::std::option::Option< - unsafe extern "C" fn(This: *mut AsyncIPipeDouble, cRequest: ULONG) -> HRESULT, - >, - pub Finish_Pull: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIPipeDouble, - buf: *mut DOUBLE, - pcReturned: *mut ULONG, - ) -> HRESULT, - >, - pub Begin_Push: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIPipeDouble, - buf: *mut DOUBLE, - cSent: ULONG, - ) -> HRESULT, - >, - pub Finish_Push: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AsyncIPipeDouble { - pub lpVtbl: *mut AsyncIPipeDoubleVtbl, -} -pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_NONE: _APTTYPEQUALIFIER = 0; -pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_IMPLICIT_MTA: _APTTYPEQUALIFIER = 1; -pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_NA_ON_MTA: _APTTYPEQUALIFIER = 2; -pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_NA_ON_STA: _APTTYPEQUALIFIER = 3; -pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_NA_ON_IMPLICIT_MTA: _APTTYPEQUALIFIER = 4; -pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_NA_ON_MAINSTA: _APTTYPEQUALIFIER = 5; -pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_APPLICATION_STA: _APTTYPEQUALIFIER = 6; -pub const _APTTYPEQUALIFIER_APTTYPEQUALIFIER_RESERVED_1: _APTTYPEQUALIFIER = 7; -pub type _APTTYPEQUALIFIER = ::std::os::raw::c_int; -pub use self::_APTTYPEQUALIFIER as APTTYPEQUALIFIER; -pub const _APTTYPE_APTTYPE_CURRENT: _APTTYPE = -1; -pub const _APTTYPE_APTTYPE_STA: _APTTYPE = 0; -pub const _APTTYPE_APTTYPE_MTA: _APTTYPE = 1; -pub const _APTTYPE_APTTYPE_NA: _APTTYPE = 2; -pub const _APTTYPE_APTTYPE_MAINSTA: _APTTYPE = 3; -pub type _APTTYPE = ::std::os::raw::c_int; -pub use self::_APTTYPE as APTTYPE; -pub const _THDTYPE_THDTYPE_BLOCKMESSAGES: _THDTYPE = 0; -pub const _THDTYPE_THDTYPE_PROCESSMESSAGES: _THDTYPE = 1; -pub type _THDTYPE = ::std::os::raw::c_int; -pub use self::_THDTYPE as THDTYPE; -pub type APARTMENTID = DWORD; -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0048_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0048_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IComThreadingInfo: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IComThreadingInfoVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IComThreadingInfo, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetCurrentApartmentType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IComThreadingInfo, pAptType: *mut APTTYPE) -> HRESULT, - >, - pub GetCurrentThreadType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IComThreadingInfo, pThreadType: *mut THDTYPE) -> HRESULT, - >, - pub GetCurrentLogicalThreadId: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IComThreadingInfo, - pguidLogicalThreadId: *mut GUID, - ) -> HRESULT, - >, - pub SetCurrentLogicalThreadId: ::std::option::Option< - unsafe extern "C" fn(This: *mut IComThreadingInfo, rguid: *const GUID) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IComThreadingInfo { - pub lpVtbl: *mut IComThreadingInfoVtbl, -} -extern "C" { - pub static IID_IProcessInitControl: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IProcessInitControlVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IProcessInitControl, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub ResetInitializerTimeout: ::std::option::Option< - unsafe extern "C" fn(This: *mut IProcessInitControl, dwSecondsRemaining: DWORD) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IProcessInitControl { - pub lpVtbl: *mut IProcessInitControlVtbl, -} -extern "C" { - pub static IID_IFastRundown: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IFastRundownVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IFastRundown, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IFastRundown { - pub lpVtbl: *mut IFastRundownVtbl, -} -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_SOURCE_IS_APP_CONTAINER: - CO_MARSHALING_CONTEXT_ATTRIBUTES = 0; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_1: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483648; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_2: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483647; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_3: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483646; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_4: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483645; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_5: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483644; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_6: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483643; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_7: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483642; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_8: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483641; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_9: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483640; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_10: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483639; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_11: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483638; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_12: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483637; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_13: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483636; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_14: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483635; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_15: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483634; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_16: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483633; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_17: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483632; -pub const CO_MARSHALING_CONTEXT_ATTRIBUTES_CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_18: - CO_MARSHALING_CONTEXT_ATTRIBUTES = -2147483631; -pub type CO_MARSHALING_CONTEXT_ATTRIBUTES = ::std::os::raw::c_int; -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0051_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0051_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IMarshalingStream: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMarshalingStreamVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshalingStream, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Read: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshalingStream, - pv: *mut ::std::os::raw::c_void, - cb: ULONG, - pcbRead: *mut ULONG, - ) -> HRESULT, - >, - pub Write: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshalingStream, - pv: *const ::std::os::raw::c_void, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT, - >, - pub Seek: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshalingStream, - dlibMove: LARGE_INTEGER, - dwOrigin: DWORD, - plibNewPosition: *mut ULARGE_INTEGER, - ) -> HRESULT, - >, - pub SetSize: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMarshalingStream, libNewSize: ULARGE_INTEGER) -> HRESULT, - >, - pub CopyTo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshalingStream, - pstm: *mut IStream, - cb: ULARGE_INTEGER, - pcbRead: *mut ULARGE_INTEGER, - pcbWritten: *mut ULARGE_INTEGER, - ) -> HRESULT, - >, - pub Commit: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMarshalingStream, grfCommitFlags: DWORD) -> HRESULT, - >, - pub Revert: - ::std::option::Option HRESULT>, - pub LockRegion: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshalingStream, - libOffset: ULARGE_INTEGER, - cb: ULARGE_INTEGER, - dwLockType: DWORD, - ) -> HRESULT, - >, - pub UnlockRegion: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshalingStream, - libOffset: ULARGE_INTEGER, - cb: ULARGE_INTEGER, - dwLockType: DWORD, - ) -> HRESULT, - >, - pub Stat: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshalingStream, - pstatstg: *mut STATSTG, - grfStatFlag: DWORD, - ) -> HRESULT, - >, - pub Clone: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMarshalingStream, ppstm: *mut *mut IStream) -> HRESULT, - >, - pub GetMarshalingContextAttribute: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMarshalingStream, - attribute: CO_MARSHALING_CONTEXT_ATTRIBUTES, - pAttributeValue: *mut ULONG_PTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMarshalingStream { - pub lpVtbl: *mut IMarshalingStreamVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0052_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0052_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IAgileReference: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAgileReferenceVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAgileReference, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Resolve: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAgileReference, - riid: *const IID, - ppvObjectReference: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAgileReference { - pub lpVtbl: *mut IAgileReferenceVtbl, -} -extern "C" { - pub static IID_ICallbackWithNoReentrancyToApplicationSTA: GUID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MachineGlobalObjectTableRegistrationToken__ { - pub unused: ::std::os::raw::c_int, -} -pub type MachineGlobalObjectTableRegistrationToken = - *mut MachineGlobalObjectTableRegistrationToken__; -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0053_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0053_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IMachineGlobalObjectTable: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMachineGlobalObjectTableVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMachineGlobalObjectTable, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub RegisterObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMachineGlobalObjectTable, - clsid: *const IID, - identifier: LPCWSTR, - object: *mut IUnknown, - token: *mut MachineGlobalObjectTableRegistrationToken, - ) -> HRESULT, - >, - pub GetObjectA: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMachineGlobalObjectTable, - clsid: *const IID, - identifier: LPCWSTR, - riid: *const IID, - ppv: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub RevokeObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMachineGlobalObjectTable, - token: MachineGlobalObjectTableRegistrationToken, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMachineGlobalObjectTable { - pub lpVtbl: *mut IMachineGlobalObjectTableVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0054_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0054_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_ISupportAllowLowerTrustActivation: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISupportAllowLowerTrustActivationVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISupportAllowLowerTrustActivation, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option< - unsafe extern "C" fn(This: *mut ISupportAllowLowerTrustActivation) -> ULONG, - >, - pub Release: ::std::option::Option< - unsafe extern "C" fn(This: *mut ISupportAllowLowerTrustActivation) -> ULONG, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISupportAllowLowerTrustActivation { - pub lpVtbl: *mut ISupportAllowLowerTrustActivationVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0055_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidlbase_0000_0055_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub fn IEnumUnknown_Next_Proxy( - This: *mut IEnumUnknown, - celt: ULONG, - rgelt: *mut *mut IUnknown, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumUnknown_Next_Stub( - This: *mut IEnumUnknown, - celt: ULONG, - rgelt: *mut *mut IUnknown, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumString_Next_Proxy( - This: *mut IEnumString, - celt: ULONG, - rgelt: *mut LPOLESTR, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumString_Next_Stub( - This: *mut IEnumString, - celt: ULONG, - rgelt: *mut LPOLESTR, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ISequentialStream_Read_Proxy( - This: *mut ISequentialStream, - pv: *mut ::std::os::raw::c_void, - cb: ULONG, - pcbRead: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ISequentialStream_Read_Stub( - This: *mut ISequentialStream, - pv: *mut byte, - cb: ULONG, - pcbRead: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ISequentialStream_Write_Proxy( - This: *mut ISequentialStream, - pv: *const ::std::os::raw::c_void, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ISequentialStream_Write_Stub( - This: *mut ISequentialStream, - pv: *const byte, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IStream_Seek_Proxy( - This: *mut IStream, - dlibMove: LARGE_INTEGER, - dwOrigin: DWORD, - plibNewPosition: *mut ULARGE_INTEGER, - ) -> HRESULT; -} -extern "C" { - pub fn IStream_Seek_Stub( - This: *mut IStream, - dlibMove: LARGE_INTEGER, - dwOrigin: DWORD, - plibNewPosition: *mut ULARGE_INTEGER, - ) -> HRESULT; -} -extern "C" { - pub fn IStream_CopyTo_Proxy( - This: *mut IStream, - pstm: *mut IStream, - cb: ULARGE_INTEGER, - pcbRead: *mut ULARGE_INTEGER, - pcbWritten: *mut ULARGE_INTEGER, - ) -> HRESULT; -} -extern "C" { - pub fn IStream_CopyTo_Stub( - This: *mut IStream, - pstm: *mut IStream, - cb: ULARGE_INTEGER, - pcbRead: *mut ULARGE_INTEGER, - pcbWritten: *mut ULARGE_INTEGER, - ) -> HRESULT; -} -extern "C" { - pub static GUID_NULL: IID; -} -extern "C" { - pub static CATID_MARSHALER: IID; -} -extern "C" { - pub static IID_IRpcChannel: IID; -} -extern "C" { - pub static IID_IRpcStub: IID; -} -extern "C" { - pub static IID_IStubManager: IID; -} -extern "C" { - pub static IID_IRpcProxy: IID; -} -extern "C" { - pub static IID_IProxyManager: IID; -} -extern "C" { - pub static IID_IPSFactory: IID; -} -extern "C" { - pub static IID_IInternalMoniker: IID; -} -extern "C" { - pub static IID_IDfReserved1: IID; -} -extern "C" { - pub static IID_IDfReserved2: IID; -} -extern "C" { - pub static IID_IDfReserved3: IID; -} -extern "C" { - pub static CLSID_StdMarshal: CLSID; -} -extern "C" { - pub static CLSID_AggStdMarshal: CLSID; -} -extern "C" { - pub static CLSID_StdAsyncActManager: CLSID; -} -extern "C" { - pub static IID_IStub: IID; -} -extern "C" { - pub static IID_IProxy: IID; -} -extern "C" { - pub static IID_IEnumGeneric: IID; -} -extern "C" { - pub static IID_IEnumHolder: IID; -} -extern "C" { - pub static IID_IEnumCallback: IID; -} -extern "C" { - pub static IID_IOleManager: IID; -} -extern "C" { - pub static IID_IOlePresObj: IID; -} -extern "C" { - pub static IID_IDebug: IID; -} -extern "C" { - pub static IID_IDebugStream: IID; -} -extern "C" { - pub static CLSID_PSGenObject: CLSID; -} -extern "C" { - pub static CLSID_PSClientSite: CLSID; -} -extern "C" { - pub static CLSID_PSClassObject: CLSID; -} -extern "C" { - pub static CLSID_PSInPlaceActive: CLSID; -} -extern "C" { - pub static CLSID_PSInPlaceFrame: CLSID; -} -extern "C" { - pub static CLSID_PSDragDrop: CLSID; -} -extern "C" { - pub static CLSID_PSBindCtx: CLSID; -} -extern "C" { - pub static CLSID_PSEnumerators: CLSID; -} -extern "C" { - pub static CLSID_StaticMetafile: CLSID; -} -extern "C" { - pub static CLSID_StaticDib: CLSID; -} -extern "C" { - pub static CID_CDfsVolume: CLSID; -} -extern "C" { - pub static CLSID_DCOMAccessControl: CLSID; -} -extern "C" { - pub static CLSID_GlobalOptions: CLSID; -} -extern "C" { - pub static CLSID_StdGlobalInterfaceTable: CLSID; -} -extern "C" { - pub static CLSID_MachineGlobalObjectTable: CLSID; -} -extern "C" { - pub static CLSID_ActivationCapabilities: CLSID; -} -extern "C" { - pub static CLSID_ComBinding: CLSID; -} -extern "C" { - pub static CLSID_StdEvent: CLSID; -} -extern "C" { - pub static CLSID_ManualResetEvent: CLSID; -} -extern "C" { - pub static CLSID_SynchronizeContainer: CLSID; -} -extern "C" { - pub static CLSID_AddrControl: CLSID; -} -extern "C" { - pub static CLSID_ContextSwitcher: CLSID; -} -extern "C" { - pub static CLSID_CCDFormKrnl: CLSID; -} -extern "C" { - pub static CLSID_CCDPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CCDFormDialog: CLSID; -} -extern "C" { - pub static CLSID_CCDCommandButton: CLSID; -} -extern "C" { - pub static CLSID_CCDComboBox: CLSID; -} -extern "C" { - pub static CLSID_CCDTextBox: CLSID; -} -extern "C" { - pub static CLSID_CCDCheckBox: CLSID; -} -extern "C" { - pub static CLSID_CCDLabel: CLSID; -} -extern "C" { - pub static CLSID_CCDOptionButton: CLSID; -} -extern "C" { - pub static CLSID_CCDListBox: CLSID; -} -extern "C" { - pub static CLSID_CCDScrollBar: CLSID; -} -extern "C" { - pub static CLSID_CCDGroupBox: CLSID; -} -extern "C" { - pub static CLSID_CCDGeneralPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CCDGenericPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CCDFontPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CCDColorPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CCDLabelPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CCDCheckBoxPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CCDTextBoxPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CCDOptionButtonPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CCDListBoxPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CCDCommandButtonPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CCDComboBoxPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CCDScrollBarPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CCDGroupBoxPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CCDXObjectPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CStdPropertyFrame: CLSID; -} -extern "C" { - pub static CLSID_CFormPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CGridPropertyPage: CLSID; -} -extern "C" { - pub static CLSID_CWSJArticlePage: CLSID; -} -extern "C" { - pub static CLSID_CSystemPage: CLSID; -} -extern "C" { - pub static CLSID_IdentityUnmarshal: CLSID; -} -extern "C" { - pub static CLSID_InProcFreeMarshaler: CLSID; -} -extern "C" { - pub static CLSID_Picture_Metafile: CLSID; -} -extern "C" { - pub static CLSID_Picture_EnhMetafile: CLSID; -} -extern "C" { - pub static CLSID_Picture_Dib: CLSID; -} -extern "C" { - pub static GUID_TRISTATE: GUID; -} -extern "C" { - pub fn CoGetMalloc(dwMemContext: DWORD, ppMalloc: *mut LPMALLOC) -> HRESULT; -} -extern "C" { - pub fn CreateStreamOnHGlobal( - hGlobal: HGLOBAL, - fDeleteOnRelease: BOOL, - ppstm: *mut LPSTREAM, - ) -> HRESULT; -} -extern "C" { - pub fn GetHGlobalFromStream(pstm: LPSTREAM, phglobal: *mut HGLOBAL) -> HRESULT; -} -extern "C" { - pub fn CoUninitialize(); -} -extern "C" { - pub fn CoGetCurrentProcess() -> DWORD; -} -extern "C" { - pub fn CoInitializeEx(pvReserved: LPVOID, dwCoInit: DWORD) -> HRESULT; -} -extern "C" { - pub fn CoGetCallerTID(lpdwTID: LPDWORD) -> HRESULT; -} -extern "C" { - pub fn CoGetCurrentLogicalThreadId(pguid: *mut GUID) -> HRESULT; -} -extern "C" { - pub fn CoGetContextToken(pToken: *mut ULONG_PTR) -> HRESULT; -} -extern "C" { - pub fn CoGetDefaultContext( - aptType: APTTYPE, - riid: *const IID, - ppv: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn CoGetApartmentType( - pAptType: *mut APTTYPE, - pAptQualifier: *mut APTTYPEQUALIFIER, - ) -> HRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagServerInformation { - pub dwServerPid: DWORD, - pub dwServerTid: DWORD, - pub ui64ServerAddress: UINT64, -} -pub type ServerInformation = tagServerInformation; -pub type PServerInformation = *mut tagServerInformation; -extern "C" { - pub fn CoDecodeProxy( - dwClientPid: DWORD, - ui64ProxyAddress: UINT64, - pServerInformation: PServerInformation, - ) -> HRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CO_MTA_USAGE_COOKIE__ { - pub unused: ::std::os::raw::c_int, -} -pub type CO_MTA_USAGE_COOKIE = *mut CO_MTA_USAGE_COOKIE__; -extern "C" { - pub fn CoIncrementMTAUsage(pCookie: *mut CO_MTA_USAGE_COOKIE) -> HRESULT; -} -extern "C" { - pub fn CoDecrementMTAUsage(Cookie: CO_MTA_USAGE_COOKIE) -> HRESULT; -} -extern "C" { - pub fn CoAllowUnmarshalerCLSID(clsid: *const IID) -> HRESULT; -} -extern "C" { - pub fn CoGetObjectContext(riid: *const IID, ppv: *mut LPVOID) -> HRESULT; -} -extern "C" { - pub fn CoGetClassObject( - rclsid: *const IID, - dwClsContext: DWORD, - pvReserved: LPVOID, - riid: *const IID, - ppv: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn CoRegisterClassObject( - rclsid: *const IID, - pUnk: LPUNKNOWN, - dwClsContext: DWORD, - flags: DWORD, - lpdwRegister: LPDWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CoRevokeClassObject(dwRegister: DWORD) -> HRESULT; -} -extern "C" { - pub fn CoResumeClassObjects() -> HRESULT; -} -extern "C" { - pub fn CoSuspendClassObjects() -> HRESULT; -} -extern "C" { - pub fn CoAddRefServerProcess() -> ULONG; -} -extern "C" { - pub fn CoReleaseServerProcess() -> ULONG; -} -extern "C" { - pub fn CoGetPSClsid(riid: *const IID, pClsid: *mut CLSID) -> HRESULT; -} -extern "C" { - pub fn CoRegisterPSClsid(riid: *const IID, rclsid: *const IID) -> HRESULT; -} -extern "C" { - pub fn CoRegisterSurrogate(pSurrogate: LPSURROGATE) -> HRESULT; -} -extern "C" { - pub fn CoGetMarshalSizeMax( - pulSize: *mut ULONG, - riid: *const IID, - pUnk: LPUNKNOWN, - dwDestContext: DWORD, - pvDestContext: LPVOID, - mshlflags: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CoMarshalInterface( - pStm: LPSTREAM, - riid: *const IID, - pUnk: LPUNKNOWN, - dwDestContext: DWORD, - pvDestContext: LPVOID, - mshlflags: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CoUnmarshalInterface(pStm: LPSTREAM, riid: *const IID, ppv: *mut LPVOID) -> HRESULT; -} -extern "C" { - pub fn CoMarshalHresult(pstm: LPSTREAM, hresult: HRESULT) -> HRESULT; -} -extern "C" { - pub fn CoUnmarshalHresult(pstm: LPSTREAM, phresult: *mut HRESULT) -> HRESULT; -} -extern "C" { - pub fn CoReleaseMarshalData(pStm: LPSTREAM) -> HRESULT; -} -extern "C" { - pub fn CoDisconnectObject(pUnk: LPUNKNOWN, dwReserved: DWORD) -> HRESULT; -} -extern "C" { - pub fn CoLockObjectExternal(pUnk: LPUNKNOWN, fLock: BOOL, fLastUnlockReleases: BOOL) - -> HRESULT; -} -extern "C" { - pub fn CoGetStandardMarshal( - riid: *const IID, - pUnk: LPUNKNOWN, - dwDestContext: DWORD, - pvDestContext: LPVOID, - mshlflags: DWORD, - ppMarshal: *mut LPMARSHAL, - ) -> HRESULT; -} -extern "C" { - pub fn CoGetStdMarshalEx( - pUnkOuter: LPUNKNOWN, - smexflags: DWORD, - ppUnkInner: *mut LPUNKNOWN, - ) -> HRESULT; -} -pub const tagSTDMSHLFLAGS_SMEXF_SERVER: tagSTDMSHLFLAGS = 1; -pub const tagSTDMSHLFLAGS_SMEXF_HANDLER: tagSTDMSHLFLAGS = 2; -pub type tagSTDMSHLFLAGS = ::std::os::raw::c_int; -pub use self::tagSTDMSHLFLAGS as STDMSHLFLAGS; -extern "C" { - pub fn CoIsHandlerConnected(pUnk: LPUNKNOWN) -> BOOL; -} -extern "C" { - pub fn CoMarshalInterThreadInterfaceInStream( - riid: *const IID, - pUnk: LPUNKNOWN, - ppStm: *mut LPSTREAM, - ) -> HRESULT; -} -extern "C" { - pub fn CoGetInterfaceAndReleaseStream( - pStm: LPSTREAM, - iid: *const IID, - ppv: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn CoCreateFreeThreadedMarshaler( - punkOuter: LPUNKNOWN, - ppunkMarshal: *mut LPUNKNOWN, - ) -> HRESULT; -} -extern "C" { - pub fn CoFreeUnusedLibraries(); -} -extern "C" { - pub fn CoFreeUnusedLibrariesEx(dwUnloadDelay: DWORD, dwReserved: DWORD); -} -extern "C" { - pub fn CoDisconnectContext(dwTimeout: DWORD) -> HRESULT; -} -extern "C" { - pub fn CoInitializeSecurity( - pSecDesc: PSECURITY_DESCRIPTOR, - cAuthSvc: LONG, - asAuthSvc: *mut SOLE_AUTHENTICATION_SERVICE, - pReserved1: *mut ::std::os::raw::c_void, - dwAuthnLevel: DWORD, - dwImpLevel: DWORD, - pAuthList: *mut ::std::os::raw::c_void, - dwCapabilities: DWORD, - pReserved3: *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn CoGetCallContext( - riid: *const IID, - ppInterface: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn CoQueryProxyBlanket( - pProxy: *mut IUnknown, - pwAuthnSvc: *mut DWORD, - pAuthzSvc: *mut DWORD, - pServerPrincName: *mut LPOLESTR, - pAuthnLevel: *mut DWORD, - pImpLevel: *mut DWORD, - pAuthInfo: *mut RPC_AUTH_IDENTITY_HANDLE, - pCapabilites: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CoSetProxyBlanket( - pProxy: *mut IUnknown, - dwAuthnSvc: DWORD, - dwAuthzSvc: DWORD, - pServerPrincName: *mut OLECHAR, - dwAuthnLevel: DWORD, - dwImpLevel: DWORD, - pAuthInfo: RPC_AUTH_IDENTITY_HANDLE, - dwCapabilities: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CoCopyProxy(pProxy: *mut IUnknown, ppCopy: *mut *mut IUnknown) -> HRESULT; -} -extern "C" { - pub fn CoQueryClientBlanket( - pAuthnSvc: *mut DWORD, - pAuthzSvc: *mut DWORD, - pServerPrincName: *mut LPOLESTR, - pAuthnLevel: *mut DWORD, - pImpLevel: *mut DWORD, - pPrivs: *mut RPC_AUTHZ_HANDLE, - pCapabilities: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CoImpersonateClient() -> HRESULT; -} -extern "C" { - pub fn CoRevertToSelf() -> HRESULT; -} -extern "C" { - pub fn CoQueryAuthenticationServices( - pcAuthSvc: *mut DWORD, - asAuthSvc: *mut *mut SOLE_AUTHENTICATION_SERVICE, - ) -> HRESULT; -} -extern "C" { - pub fn CoSwitchCallContext( - pNewObject: *mut IUnknown, - ppOldObject: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn CoCreateInstance( - rclsid: *const IID, - pUnkOuter: LPUNKNOWN, - dwClsContext: DWORD, - riid: *const IID, - ppv: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn CoCreateInstanceEx( - Clsid: *const IID, - punkOuter: *mut IUnknown, - dwClsCtx: DWORD, - pServerInfo: *mut COSERVERINFO, - dwCount: DWORD, - pResults: *mut MULTI_QI, - ) -> HRESULT; -} -extern "C" { - pub fn CoCreateInstanceFromApp( - Clsid: *const IID, - punkOuter: *mut IUnknown, - dwClsCtx: DWORD, - reserved: PVOID, - dwCount: DWORD, - pResults: *mut MULTI_QI, - ) -> HRESULT; -} -extern "C" { - pub fn CoRegisterActivationFilter(pActivationFilter: *mut IActivationFilter) -> HRESULT; -} -extern "C" { - pub fn CoGetCancelObject( - dwThreadId: DWORD, - iid: *const IID, - ppUnk: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn CoSetCancelObject(pUnk: *mut IUnknown) -> HRESULT; -} -extern "C" { - pub fn CoCancelCall(dwThreadId: DWORD, ulTimeout: ULONG) -> HRESULT; -} -extern "C" { - pub fn CoTestCancel() -> HRESULT; -} -extern "C" { - pub fn CoEnableCallCancellation(pReserved: LPVOID) -> HRESULT; -} -extern "C" { - pub fn CoDisableCallCancellation(pReserved: LPVOID) -> HRESULT; -} -extern "C" { - pub fn StringFromCLSID(rclsid: *const IID, lplpsz: *mut LPOLESTR) -> HRESULT; -} -extern "C" { - pub fn CLSIDFromString(lpsz: LPCOLESTR, pclsid: LPCLSID) -> HRESULT; -} -extern "C" { - pub fn StringFromIID(rclsid: *const IID, lplpsz: *mut LPOLESTR) -> HRESULT; -} -extern "C" { - pub fn IIDFromString(lpsz: LPCOLESTR, lpiid: LPIID) -> HRESULT; -} -extern "C" { - pub fn ProgIDFromCLSID(clsid: *const IID, lplpszProgID: *mut LPOLESTR) -> HRESULT; -} -extern "C" { - pub fn CLSIDFromProgID(lpszProgID: LPCOLESTR, lpclsid: LPCLSID) -> HRESULT; -} -extern "C" { - pub fn StringFromGUID2( - rguid: *const GUID, - lpsz: LPOLESTR, - cchMax: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn CoCreateGuid(pguid: *mut GUID) -> HRESULT; -} -pub type PROPVARIANT = tagPROPVARIANT; -extern "C" { - pub fn PropVariantCopy(pvarDest: *mut PROPVARIANT, pvarSrc: *const PROPVARIANT) -> HRESULT; -} -extern "C" { - pub fn PropVariantClear(pvar: *mut PROPVARIANT) -> HRESULT; -} -extern "C" { - pub fn FreePropVariantArray(cVariants: ULONG, rgvars: *mut PROPVARIANT) -> HRESULT; -} -extern "C" { - pub fn CoWaitForMultipleHandles( - dwFlags: DWORD, - dwTimeout: DWORD, - cHandles: ULONG, - pHandles: LPHANDLE, - lpdwindex: LPDWORD, - ) -> HRESULT; -} -pub const tagCOWAIT_FLAGS_COWAIT_DEFAULT: tagCOWAIT_FLAGS = 0; -pub const tagCOWAIT_FLAGS_COWAIT_WAITALL: tagCOWAIT_FLAGS = 1; -pub const tagCOWAIT_FLAGS_COWAIT_ALERTABLE: tagCOWAIT_FLAGS = 2; -pub const tagCOWAIT_FLAGS_COWAIT_INPUTAVAILABLE: tagCOWAIT_FLAGS = 4; -pub const tagCOWAIT_FLAGS_COWAIT_DISPATCH_CALLS: tagCOWAIT_FLAGS = 8; -pub const tagCOWAIT_FLAGS_COWAIT_DISPATCH_WINDOW_MESSAGES: tagCOWAIT_FLAGS = 16; -pub type tagCOWAIT_FLAGS = ::std::os::raw::c_int; -pub use self::tagCOWAIT_FLAGS as COWAIT_FLAGS; -pub const CWMO_FLAGS_CWMO_DEFAULT: CWMO_FLAGS = 0; -pub const CWMO_FLAGS_CWMO_DISPATCH_CALLS: CWMO_FLAGS = 1; -pub const CWMO_FLAGS_CWMO_DISPATCH_WINDOW_MESSAGES: CWMO_FLAGS = 2; -pub type CWMO_FLAGS = ::std::os::raw::c_int; -extern "C" { - pub fn CoWaitForMultipleObjects( - dwFlags: DWORD, - dwTimeout: DWORD, - cHandles: ULONG, - pHandles: *const HANDLE, - lpdwindex: LPDWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CoGetTreatAsClass(clsidOld: *const IID, pClsidNew: LPCLSID) -> HRESULT; -} -extern "C" { - pub fn CoInvalidateRemoteMachineBindings(pszMachineName: LPOLESTR) -> HRESULT; -} -pub const AgileReferenceOptions_AGILEREFERENCE_DEFAULT: AgileReferenceOptions = 0; -pub const AgileReferenceOptions_AGILEREFERENCE_DELAYEDMARSHAL: AgileReferenceOptions = 1; -pub type AgileReferenceOptions = ::std::os::raw::c_int; -extern "C" { - pub fn RoGetAgileReference( - options: AgileReferenceOptions, - riid: *const IID, - pUnk: *mut IUnknown, - ppAgileReference: *mut *mut IAgileReference, - ) -> HRESULT; -} -pub type LPFNGETCLASSOBJECT = ::std::option::Option< - unsafe extern "C" fn(arg1: *const IID, arg2: *const IID, arg3: *mut LPVOID) -> HRESULT, ->; -pub type LPFNCANUNLOADNOW = ::std::option::Option HRESULT>; -extern "C" { - pub fn DllGetClassObject(rclsid: *const IID, riid: *const IID, ppv: *mut LPVOID) -> HRESULT; -} -extern "C" { - pub fn DllCanUnloadNow() -> HRESULT; -} -extern "C" { - pub fn CoTaskMemAlloc(cb: SIZE_T) -> LPVOID; -} -extern "C" { - pub fn CoTaskMemRealloc(pv: LPVOID, cb: SIZE_T) -> LPVOID; -} -extern "C" { - pub fn CoTaskMemFree(pv: LPVOID); -} -extern "C" { - pub fn CoFileTimeNow(lpFileTime: *mut FILETIME) -> HRESULT; -} -extern "C" { - pub fn CLSIDFromProgIDEx(lpszProgID: LPCOLESTR, lpclsid: LPCLSID) -> HRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CO_DEVICE_CATALOG_COOKIE__ { - pub unused: ::std::os::raw::c_int, -} -pub type CO_DEVICE_CATALOG_COOKIE = *mut CO_DEVICE_CATALOG_COOKIE__; -extern "C" { - pub fn CoRegisterDeviceCatalog( - deviceInstanceId: PCWSTR, - cookie: *mut CO_DEVICE_CATALOG_COOKIE, - ) -> HRESULT; -} -extern "C" { - pub fn CoRevokeDeviceCatalog(cookie: CO_DEVICE_CATALOG_COOKIE) -> HRESULT; -} -extern "C" { - pub static mut __MIDL_itf_unknwn_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_unknwn_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_unknwn_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_unknwn_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_unknwn_0000_0002_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_unknwn_0000_0002_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_unknwn_0000_0003_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_unknwn_0000_0003_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0055_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0055_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPMALLOCSPY = *mut IMallocSpy; -extern "C" { - pub static IID_IMallocSpy: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMallocSpyVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMallocSpy, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub PreAlloc: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMallocSpy, cbRequest: SIZE_T) -> SIZE_T, - >, - pub PostAlloc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMallocSpy, - pActual: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void, - >, - pub PreFree: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMallocSpy, - pRequest: *mut ::std::os::raw::c_void, - fSpyed: BOOL, - ) -> *mut ::std::os::raw::c_void, - >, - pub PostFree: ::std::option::Option, - pub PreRealloc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMallocSpy, - pRequest: *mut ::std::os::raw::c_void, - cbRequest: SIZE_T, - ppNewRequest: *mut *mut ::std::os::raw::c_void, - fSpyed: BOOL, - ) -> SIZE_T, - >, - pub PostRealloc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMallocSpy, - pActual: *mut ::std::os::raw::c_void, - fSpyed: BOOL, - ) -> *mut ::std::os::raw::c_void, - >, - pub PreGetSize: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMallocSpy, - pRequest: *mut ::std::os::raw::c_void, - fSpyed: BOOL, - ) -> *mut ::std::os::raw::c_void, - >, - pub PostGetSize: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMallocSpy, cbActual: SIZE_T, fSpyed: BOOL) -> SIZE_T, - >, - pub PreDidAlloc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMallocSpy, - pRequest: *mut ::std::os::raw::c_void, - fSpyed: BOOL, - ) -> *mut ::std::os::raw::c_void, - >, - pub PostDidAlloc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMallocSpy, - pRequest: *mut ::std::os::raw::c_void, - fSpyed: BOOL, - fActual: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub PreHeapMinimize: ::std::option::Option, - pub PostHeapMinimize: ::std::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMallocSpy { - pub lpVtbl: *mut IMallocSpyVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0056_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0056_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPBC = *mut IBindCtx; -pub type LPBINDCTX = *mut IBindCtx; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagBIND_OPTS { - pub cbStruct: DWORD, - pub grfFlags: DWORD, - pub grfMode: DWORD, - pub dwTickCountDeadline: DWORD, -} -pub type BIND_OPTS = tagBIND_OPTS; -pub type LPBIND_OPTS = *mut tagBIND_OPTS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagBIND_OPTS2 { - pub cbStruct: DWORD, - pub grfFlags: DWORD, - pub grfMode: DWORD, - pub dwTickCountDeadline: DWORD, - pub dwTrackFlags: DWORD, - pub dwClassContext: DWORD, - pub locale: LCID, - pub pServerInfo: *mut COSERVERINFO, -} -pub type BIND_OPTS2 = tagBIND_OPTS2; -pub type LPBIND_OPTS2 = *mut tagBIND_OPTS2; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagBIND_OPTS3 { - pub cbStruct: DWORD, - pub grfFlags: DWORD, - pub grfMode: DWORD, - pub dwTickCountDeadline: DWORD, - pub dwTrackFlags: DWORD, - pub dwClassContext: DWORD, - pub locale: LCID, - pub pServerInfo: *mut COSERVERINFO, - pub hwnd: HWND, -} -pub type BIND_OPTS3 = tagBIND_OPTS3; -pub type LPBIND_OPTS3 = *mut tagBIND_OPTS3; -pub const tagBIND_FLAGS_BIND_MAYBOTHERUSER: tagBIND_FLAGS = 1; -pub const tagBIND_FLAGS_BIND_JUSTTESTEXISTENCE: tagBIND_FLAGS = 2; -pub type tagBIND_FLAGS = ::std::os::raw::c_int; -pub use self::tagBIND_FLAGS as BIND_FLAGS; -extern "C" { - pub static IID_IBindCtx: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindCtxVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindCtx, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub RegisterObjectBound: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBindCtx, punk: *mut IUnknown) -> HRESULT, - >, - pub RevokeObjectBound: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBindCtx, punk: *mut IUnknown) -> HRESULT, - >, - pub ReleaseBoundObjects: - ::std::option::Option HRESULT>, - pub SetBindOptions: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBindCtx, pbindopts: *mut BIND_OPTS) -> HRESULT, - >, - pub GetBindOptions: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBindCtx, pbindopts: *mut BIND_OPTS) -> HRESULT, - >, - pub GetRunningObjectTable: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBindCtx, pprot: *mut *mut IRunningObjectTable) -> HRESULT, - >, - pub RegisterObjectParam: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBindCtx, pszKey: LPOLESTR, punk: *mut IUnknown) -> HRESULT, - >, - pub GetObjectParam: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindCtx, - pszKey: LPOLESTR, - ppunk: *mut *mut IUnknown, - ) -> HRESULT, - >, - pub EnumObjectParam: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBindCtx, ppenum: *mut *mut IEnumString) -> HRESULT, - >, - pub RevokeObjectParam: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBindCtx, pszKey: LPOLESTR) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindCtx { - pub lpVtbl: *mut IBindCtxVtbl, -} -extern "C" { - pub fn IBindCtx_RemoteSetBindOptions_Proxy( - This: *mut IBindCtx, - pbindopts: *mut BIND_OPTS2, - ) -> HRESULT; -} -extern "C" { - pub fn IBindCtx_RemoteSetBindOptions_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IBindCtx_RemoteGetBindOptions_Proxy( - This: *mut IBindCtx, - pbindopts: *mut BIND_OPTS2, - ) -> HRESULT; -} -extern "C" { - pub fn IBindCtx_RemoteGetBindOptions_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPENUMMONIKER = *mut IEnumMoniker; -extern "C" { - pub static IID_IEnumMoniker: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumMonikerVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumMoniker, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Next: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumMoniker, - celt: ULONG, - rgelt: *mut *mut IMoniker, - pceltFetched: *mut ULONG, - ) -> HRESULT, - >, - pub Skip: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumMoniker, celt: ULONG) -> HRESULT, - >, - pub Reset: ::std::option::Option HRESULT>, - pub Clone: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumMoniker, ppenum: *mut *mut IEnumMoniker) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumMoniker { - pub lpVtbl: *mut IEnumMonikerVtbl, -} -extern "C" { - pub fn IEnumMoniker_RemoteNext_Proxy( - This: *mut IEnumMoniker, - celt: ULONG, - rgelt: *mut *mut IMoniker, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumMoniker_RemoteNext_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0058_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0058_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPRUNNABLEOBJECT = *mut IRunnableObject; -extern "C" { - pub static IID_IRunnableObject: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRunnableObjectVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRunnableObject, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetRunningClass: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRunnableObject, lpClsid: LPCLSID) -> HRESULT, - >, - pub Run: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRunnableObject, pbc: LPBINDCTX) -> HRESULT, - >, - pub IsRunning: ::std::option::Option BOOL>, - pub LockRunning: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRunnableObject, - fLock: BOOL, - fLastUnlockCloses: BOOL, - ) -> HRESULT, - >, - pub SetContainedObject: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRunnableObject, fContained: BOOL) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRunnableObject { - pub lpVtbl: *mut IRunnableObjectVtbl, -} -extern "C" { - pub fn IRunnableObject_RemoteIsRunning_Proxy(This: *mut IRunnableObject) -> HRESULT; -} -extern "C" { - pub fn IRunnableObject_RemoteIsRunning_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPRUNNINGOBJECTTABLE = *mut IRunningObjectTable; -extern "C" { - pub static IID_IRunningObjectTable: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRunningObjectTableVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRunningObjectTable, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub Register: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRunningObjectTable, - grfFlags: DWORD, - punkObject: *mut IUnknown, - pmkObjectName: *mut IMoniker, - pdwRegister: *mut DWORD, - ) -> HRESULT, - >, - pub Revoke: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRunningObjectTable, dwRegister: DWORD) -> HRESULT, - >, - pub IsRunning: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRunningObjectTable, - pmkObjectName: *mut IMoniker, - ) -> HRESULT, - >, - pub GetObjectA: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRunningObjectTable, - pmkObjectName: *mut IMoniker, - ppunkObject: *mut *mut IUnknown, - ) -> HRESULT, - >, - pub NoteChangeTime: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRunningObjectTable, - dwRegister: DWORD, - pfiletime: *mut FILETIME, - ) -> HRESULT, - >, - pub GetTimeOfLastChange: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRunningObjectTable, - pmkObjectName: *mut IMoniker, - pfiletime: *mut FILETIME, - ) -> HRESULT, - >, - pub EnumRunning: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRunningObjectTable, - ppenumMoniker: *mut *mut IEnumMoniker, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRunningObjectTable { - pub lpVtbl: *mut IRunningObjectTableVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0060_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0060_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPPERSIST = *mut IPersist; -extern "C" { - pub static IID_IPersist: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPersistVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPersist, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetClassID: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPersist, pClassID: *mut CLSID) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPersist { - pub lpVtbl: *mut IPersistVtbl, -} -pub type LPPERSISTSTREAM = *mut IPersistStream; -extern "C" { - pub static IID_IPersistStream: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPersistStreamVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPersistStream, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetClassID: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPersistStream, pClassID: *mut CLSID) -> HRESULT, - >, - pub IsDirty: ::std::option::Option HRESULT>, - pub Load: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPersistStream, pStm: *mut IStream) -> HRESULT, - >, - pub Save: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPersistStream, - pStm: *mut IStream, - fClearDirty: BOOL, - ) -> HRESULT, - >, - pub GetSizeMax: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPersistStream, pcbSize: *mut ULARGE_INTEGER) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPersistStream { - pub lpVtbl: *mut IPersistStreamVtbl, -} -pub type LPMONIKER = *mut IMoniker; -pub const tagMKSYS_MKSYS_NONE: tagMKSYS = 0; -pub const tagMKSYS_MKSYS_GENERICCOMPOSITE: tagMKSYS = 1; -pub const tagMKSYS_MKSYS_FILEMONIKER: tagMKSYS = 2; -pub const tagMKSYS_MKSYS_ANTIMONIKER: tagMKSYS = 3; -pub const tagMKSYS_MKSYS_ITEMMONIKER: tagMKSYS = 4; -pub const tagMKSYS_MKSYS_POINTERMONIKER: tagMKSYS = 5; -pub const tagMKSYS_MKSYS_CLASSMONIKER: tagMKSYS = 7; -pub const tagMKSYS_MKSYS_OBJREFMONIKER: tagMKSYS = 8; -pub const tagMKSYS_MKSYS_SESSIONMONIKER: tagMKSYS = 9; -pub const tagMKSYS_MKSYS_LUAMONIKER: tagMKSYS = 10; -pub type tagMKSYS = ::std::os::raw::c_int; -pub use self::tagMKSYS as MKSYS; -pub const tagMKREDUCE_MKRREDUCE_ONE: tagMKREDUCE = 196608; -pub const tagMKREDUCE_MKRREDUCE_TOUSER: tagMKREDUCE = 131072; -pub const tagMKREDUCE_MKRREDUCE_THROUGHUSER: tagMKREDUCE = 65536; -pub const tagMKREDUCE_MKRREDUCE_ALL: tagMKREDUCE = 0; -pub type tagMKREDUCE = ::std::os::raw::c_int; -pub use self::tagMKREDUCE as MKRREDUCE; -extern "C" { - pub static IID_IMoniker: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMonikerVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMoniker, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetClassID: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMoniker, pClassID: *mut CLSID) -> HRESULT, - >, - pub IsDirty: ::std::option::Option HRESULT>, - pub Load: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMoniker, pStm: *mut IStream) -> HRESULT, - >, - pub Save: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMoniker, pStm: *mut IStream, fClearDirty: BOOL) -> HRESULT, - >, - pub GetSizeMax: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMoniker, pcbSize: *mut ULARGE_INTEGER) -> HRESULT, - >, - pub BindToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMoniker, - pbc: *mut IBindCtx, - pmkToLeft: *mut IMoniker, - riidResult: *const IID, - ppvResult: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub BindToStorage: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMoniker, - pbc: *mut IBindCtx, - pmkToLeft: *mut IMoniker, - riid: *const IID, - ppvObj: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub Reduce: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMoniker, - pbc: *mut IBindCtx, - dwReduceHowFar: DWORD, - ppmkToLeft: *mut *mut IMoniker, - ppmkReduced: *mut *mut IMoniker, - ) -> HRESULT, - >, - pub ComposeWith: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMoniker, - pmkRight: *mut IMoniker, - fOnlyIfNotGeneric: BOOL, - ppmkComposite: *mut *mut IMoniker, - ) -> HRESULT, - >, - pub Enum: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMoniker, - fForward: BOOL, - ppenumMoniker: *mut *mut IEnumMoniker, - ) -> HRESULT, - >, - pub IsEqual: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMoniker, pmkOtherMoniker: *mut IMoniker) -> HRESULT, - >, - pub Hash: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMoniker, pdwHash: *mut DWORD) -> HRESULT, - >, - pub IsRunning: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMoniker, - pbc: *mut IBindCtx, - pmkToLeft: *mut IMoniker, - pmkNewlyRunning: *mut IMoniker, - ) -> HRESULT, - >, - pub GetTimeOfLastChange: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMoniker, - pbc: *mut IBindCtx, - pmkToLeft: *mut IMoniker, - pFileTime: *mut FILETIME, - ) -> HRESULT, - >, - pub Inverse: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMoniker, ppmk: *mut *mut IMoniker) -> HRESULT, - >, - pub CommonPrefixWith: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMoniker, - pmkOther: *mut IMoniker, - ppmkPrefix: *mut *mut IMoniker, - ) -> HRESULT, - >, - pub RelativePathTo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMoniker, - pmkOther: *mut IMoniker, - ppmkRelPath: *mut *mut IMoniker, - ) -> HRESULT, - >, - pub GetDisplayName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMoniker, - pbc: *mut IBindCtx, - pmkToLeft: *mut IMoniker, - ppszDisplayName: *mut LPOLESTR, - ) -> HRESULT, - >, - pub ParseDisplayName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMoniker, - pbc: *mut IBindCtx, - pmkToLeft: *mut IMoniker, - pszDisplayName: LPOLESTR, - pchEaten: *mut ULONG, - ppmkOut: *mut *mut IMoniker, - ) -> HRESULT, - >, - pub IsSystemMoniker: ::std::option::Option< - unsafe extern "C" fn(This: *mut IMoniker, pdwMksys: *mut DWORD) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMoniker { - pub lpVtbl: *mut IMonikerVtbl, -} -extern "C" { - pub fn IMoniker_RemoteBindToObject_Proxy( - This: *mut IMoniker, - pbc: *mut IBindCtx, - pmkToLeft: *mut IMoniker, - riidResult: *const IID, - ppvResult: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn IMoniker_RemoteBindToObject_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IMoniker_RemoteBindToStorage_Proxy( - This: *mut IMoniker, - pbc: *mut IBindCtx, - pmkToLeft: *mut IMoniker, - riid: *const IID, - ppvObj: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn IMoniker_RemoteBindToStorage_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0063_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0063_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IROTData: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IROTDataVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IROTData, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetComparisonData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IROTData, - pbData: *mut byte, - cbMax: ULONG, - pcbData: *mut ULONG, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IROTData { - pub lpVtbl: *mut IROTDataVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0064_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0064_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPENUMSTATSTG = *mut IEnumSTATSTG; -extern "C" { - pub static IID_IEnumSTATSTG: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumSTATSTGVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumSTATSTG, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Next: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumSTATSTG, - celt: ULONG, - rgelt: *mut STATSTG, - pceltFetched: *mut ULONG, - ) -> HRESULT, - >, - pub Skip: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumSTATSTG, celt: ULONG) -> HRESULT, - >, - pub Reset: ::std::option::Option HRESULT>, - pub Clone: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumSTATSTG, ppenum: *mut *mut IEnumSTATSTG) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumSTATSTG { - pub lpVtbl: *mut IEnumSTATSTGVtbl, -} -extern "C" { - pub fn IEnumSTATSTG_RemoteNext_Proxy( - This: *mut IEnumSTATSTG, - celt: ULONG, - rgelt: *mut STATSTG, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumSTATSTG_RemoteNext_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPSTORAGE = *mut IStorage; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRemSNB { - pub ulCntStr: ULONG, - pub ulCntChar: ULONG, - pub rgString: [OLECHAR; 1usize], -} -pub type RemSNB = tagRemSNB; -pub type wireSNB = *mut RemSNB; -pub type SNB = *mut LPOLESTR; -extern "C" { - pub static IID_IStorage: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IStorageVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStorage, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub CreateStream: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStorage, - pwcsName: *const OLECHAR, - grfMode: DWORD, - reserved1: DWORD, - reserved2: DWORD, - ppstm: *mut *mut IStream, - ) -> HRESULT, - >, - pub OpenStream: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStorage, - pwcsName: *const OLECHAR, - reserved1: *mut ::std::os::raw::c_void, - grfMode: DWORD, - reserved2: DWORD, - ppstm: *mut *mut IStream, - ) -> HRESULT, - >, - pub CreateStorage: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStorage, - pwcsName: *const OLECHAR, - grfMode: DWORD, - reserved1: DWORD, - reserved2: DWORD, - ppstg: *mut *mut IStorage, - ) -> HRESULT, - >, - pub OpenStorage: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStorage, - pwcsName: *const OLECHAR, - pstgPriority: *mut IStorage, - grfMode: DWORD, - snbExclude: SNB, - reserved: DWORD, - ppstg: *mut *mut IStorage, - ) -> HRESULT, - >, - pub CopyTo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStorage, - ciidExclude: DWORD, - rgiidExclude: *const IID, - snbExclude: SNB, - pstgDest: *mut IStorage, - ) -> HRESULT, - >, - pub MoveElementTo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStorage, - pwcsName: *const OLECHAR, - pstgDest: *mut IStorage, - pwcsNewName: *const OLECHAR, - grfFlags: DWORD, - ) -> HRESULT, - >, - pub Commit: ::std::option::Option< - unsafe extern "C" fn(This: *mut IStorage, grfCommitFlags: DWORD) -> HRESULT, - >, - pub Revert: ::std::option::Option HRESULT>, - pub EnumElements: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStorage, - reserved1: DWORD, - reserved2: *mut ::std::os::raw::c_void, - reserved3: DWORD, - ppenum: *mut *mut IEnumSTATSTG, - ) -> HRESULT, - >, - pub DestroyElement: ::std::option::Option< - unsafe extern "C" fn(This: *mut IStorage, pwcsName: *const OLECHAR) -> HRESULT, - >, - pub RenameElement: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStorage, - pwcsOldName: *const OLECHAR, - pwcsNewName: *const OLECHAR, - ) -> HRESULT, - >, - pub SetElementTimes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStorage, - pwcsName: *const OLECHAR, - pctime: *const FILETIME, - patime: *const FILETIME, - pmtime: *const FILETIME, - ) -> HRESULT, - >, - pub SetClass: ::std::option::Option< - unsafe extern "C" fn(This: *mut IStorage, clsid: *const IID) -> HRESULT, - >, - pub SetStateBits: ::std::option::Option< - unsafe extern "C" fn(This: *mut IStorage, grfStateBits: DWORD, grfMask: DWORD) -> HRESULT, - >, - pub Stat: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IStorage, - pstatstg: *mut STATSTG, - grfStatFlag: DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IStorage { - pub lpVtbl: *mut IStorageVtbl, -} -extern "C" { - pub fn IStorage_RemoteOpenStream_Proxy( - This: *mut IStorage, - pwcsName: *const OLECHAR, - cbReserved1: ULONG, - reserved1: *mut byte, - grfMode: DWORD, - reserved2: DWORD, - ppstm: *mut *mut IStream, - ) -> HRESULT; -} -extern "C" { - pub fn IStorage_RemoteOpenStream_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IStorage_RemoteCopyTo_Proxy( - This: *mut IStorage, - ciidExclude: DWORD, - rgiidExclude: *const IID, - snbExclude: SNB, - pstgDest: *mut IStorage, - ) -> HRESULT; -} -extern "C" { - pub fn IStorage_RemoteCopyTo_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IStorage_RemoteEnumElements_Proxy( - This: *mut IStorage, - reserved1: DWORD, - cbReserved2: ULONG, - reserved2: *mut byte, - reserved3: DWORD, - ppenum: *mut *mut IEnumSTATSTG, - ) -> HRESULT; -} -extern "C" { - pub fn IStorage_RemoteEnumElements_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0066_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0066_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPPERSISTFILE = *mut IPersistFile; -extern "C" { - pub static IID_IPersistFile: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPersistFileVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPersistFile, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetClassID: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPersistFile, pClassID: *mut CLSID) -> HRESULT, - >, - pub IsDirty: ::std::option::Option HRESULT>, - pub Load: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPersistFile, - pszFileName: LPCOLESTR, - dwMode: DWORD, - ) -> HRESULT, - >, - pub Save: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPersistFile, - pszFileName: LPCOLESTR, - fRemember: BOOL, - ) -> HRESULT, - >, - pub SaveCompleted: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPersistFile, pszFileName: LPCOLESTR) -> HRESULT, - >, - pub GetCurFile: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPersistFile, ppszFileName: *mut LPOLESTR) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPersistFile { - pub lpVtbl: *mut IPersistFileVtbl, -} -pub type LPPERSISTSTORAGE = *mut IPersistStorage; -extern "C" { - pub static IID_IPersistStorage: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPersistStorageVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPersistStorage, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetClassID: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPersistStorage, pClassID: *mut CLSID) -> HRESULT, - >, - pub IsDirty: ::std::option::Option HRESULT>, - pub InitNew: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPersistStorage, pStg: *mut IStorage) -> HRESULT, - >, - pub Load: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPersistStorage, pStg: *mut IStorage) -> HRESULT, - >, - pub Save: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPersistStorage, - pStgSave: *mut IStorage, - fSameAsLoad: BOOL, - ) -> HRESULT, - >, - pub SaveCompleted: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPersistStorage, pStgNew: *mut IStorage) -> HRESULT, - >, - pub HandsOffStorage: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPersistStorage { - pub lpVtbl: *mut IPersistStorageVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0068_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0068_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPLOCKBYTES = *mut ILockBytes; -extern "C" { - pub static IID_ILockBytes: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ILockBytesVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ILockBytes, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub ReadAt: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ILockBytes, - ulOffset: ULARGE_INTEGER, - pv: *mut ::std::os::raw::c_void, - cb: ULONG, - pcbRead: *mut ULONG, - ) -> HRESULT, - >, - pub WriteAt: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ILockBytes, - ulOffset: ULARGE_INTEGER, - pv: *const ::std::os::raw::c_void, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT, - >, - pub Flush: ::std::option::Option HRESULT>, - pub SetSize: ::std::option::Option< - unsafe extern "C" fn(This: *mut ILockBytes, cb: ULARGE_INTEGER) -> HRESULT, - >, - pub LockRegion: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ILockBytes, - libOffset: ULARGE_INTEGER, - cb: ULARGE_INTEGER, - dwLockType: DWORD, - ) -> HRESULT, - >, - pub UnlockRegion: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ILockBytes, - libOffset: ULARGE_INTEGER, - cb: ULARGE_INTEGER, - dwLockType: DWORD, - ) -> HRESULT, - >, - pub Stat: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ILockBytes, - pstatstg: *mut STATSTG, - grfStatFlag: DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ILockBytes { - pub lpVtbl: *mut ILockBytesVtbl, -} -extern "C" { - pub fn ILockBytes_RemoteReadAt_Proxy( - This: *mut ILockBytes, - ulOffset: ULARGE_INTEGER, - pv: *mut byte, - cb: ULONG, - pcbRead: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ILockBytes_RemoteReadAt_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ILockBytes_RemoteWriteAt_Proxy( - This: *mut ILockBytes, - ulOffset: ULARGE_INTEGER, - pv: *const byte, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ILockBytes_RemoteWriteAt_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPENUMFORMATETC = *mut IEnumFORMATETC; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagDVTARGETDEVICE { - pub tdSize: DWORD, - pub tdDriverNameOffset: WORD, - pub tdDeviceNameOffset: WORD, - pub tdPortNameOffset: WORD, - pub tdExtDevmodeOffset: WORD, - pub tdData: [BYTE; 1usize], -} -pub type DVTARGETDEVICE = tagDVTARGETDEVICE; -pub type LPCLIPFORMAT = *mut CLIPFORMAT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagFORMATETC { - pub cfFormat: CLIPFORMAT, - pub ptd: *mut DVTARGETDEVICE, - pub dwAspect: DWORD, - pub lindex: LONG, - pub tymed: DWORD, -} -pub type FORMATETC = tagFORMATETC; -pub type LPFORMATETC = *mut tagFORMATETC; -extern "C" { - pub static IID_IEnumFORMATETC: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumFORMATETCVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumFORMATETC, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Next: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumFORMATETC, - celt: ULONG, - rgelt: *mut FORMATETC, - pceltFetched: *mut ULONG, - ) -> HRESULT, - >, - pub Skip: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumFORMATETC, celt: ULONG) -> HRESULT, - >, - pub Reset: ::std::option::Option HRESULT>, - pub Clone: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumFORMATETC, - ppenum: *mut *mut IEnumFORMATETC, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumFORMATETC { - pub lpVtbl: *mut IEnumFORMATETCVtbl, -} -extern "C" { - pub fn IEnumFORMATETC_RemoteNext_Proxy( - This: *mut IEnumFORMATETC, - celt: ULONG, - rgelt: *mut FORMATETC, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumFORMATETC_RemoteNext_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPENUMSTATDATA = *mut IEnumSTATDATA; -pub const tagADVF_ADVF_NODATA: tagADVF = 1; -pub const tagADVF_ADVF_PRIMEFIRST: tagADVF = 2; -pub const tagADVF_ADVF_ONLYONCE: tagADVF = 4; -pub const tagADVF_ADVF_DATAONSTOP: tagADVF = 64; -pub const tagADVF_ADVFCACHE_NOHANDLER: tagADVF = 8; -pub const tagADVF_ADVFCACHE_FORCEBUILTIN: tagADVF = 16; -pub const tagADVF_ADVFCACHE_ONSAVE: tagADVF = 32; -pub type tagADVF = ::std::os::raw::c_int; -pub use self::tagADVF as ADVF; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSTATDATA { - pub formatetc: FORMATETC, - pub advf: DWORD, - pub pAdvSink: *mut IAdviseSink, - pub dwConnection: DWORD, -} -pub type STATDATA = tagSTATDATA; -pub type LPSTATDATA = *mut STATDATA; -extern "C" { - pub static IID_IEnumSTATDATA: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumSTATDATAVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumSTATDATA, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Next: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumSTATDATA, - celt: ULONG, - rgelt: *mut STATDATA, - pceltFetched: *mut ULONG, - ) -> HRESULT, - >, - pub Skip: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumSTATDATA, celt: ULONG) -> HRESULT, - >, - pub Reset: ::std::option::Option HRESULT>, - pub Clone: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumSTATDATA, ppenum: *mut *mut IEnumSTATDATA) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumSTATDATA { - pub lpVtbl: *mut IEnumSTATDATAVtbl, -} -extern "C" { - pub fn IEnumSTATDATA_RemoteNext_Proxy( - This: *mut IEnumSTATDATA, - celt: ULONG, - rgelt: *mut STATDATA, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumSTATDATA_RemoteNext_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPROOTSTORAGE = *mut IRootStorage; -extern "C" { - pub static IID_IRootStorage: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRootStorageVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRootStorage, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub SwitchToFile: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRootStorage, pszFile: LPOLESTR) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRootStorage { - pub lpVtbl: *mut IRootStorageVtbl, -} -pub type LPADVISESINK = *mut IAdviseSink; -pub const tagTYMED_TYMED_HGLOBAL: tagTYMED = 1; -pub const tagTYMED_TYMED_FILE: tagTYMED = 2; -pub const tagTYMED_TYMED_ISTREAM: tagTYMED = 4; -pub const tagTYMED_TYMED_ISTORAGE: tagTYMED = 8; -pub const tagTYMED_TYMED_GDI: tagTYMED = 16; -pub const tagTYMED_TYMED_MFPICT: tagTYMED = 32; -pub const tagTYMED_TYMED_ENHMF: tagTYMED = 64; -pub const tagTYMED_TYMED_NULL: tagTYMED = 0; -pub type tagTYMED = ::std::os::raw::c_int; -pub use self::tagTYMED as TYMED; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRemSTGMEDIUM { - pub tymed: DWORD, - pub dwHandleType: DWORD, - pub pData: ULONG, - pub pUnkForRelease: ULONG, - pub cbData: ULONG, - pub data: [byte; 1usize], -} -pub type RemSTGMEDIUM = tagRemSTGMEDIUM; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagSTGMEDIUM { - pub tymed: DWORD, - pub __bindgen_anon_1: tagSTGMEDIUM__bindgen_ty_1, - pub pUnkForRelease: *mut IUnknown, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagSTGMEDIUM__bindgen_ty_1 { - pub hBitmap: HBITMAP, - pub hMetaFilePict: HMETAFILEPICT, - pub hEnhMetaFile: HENHMETAFILE, - pub hGlobal: HGLOBAL, - pub lpszFileName: LPOLESTR, - pub pstm: *mut IStream, - pub pstg: *mut IStorage, -} -pub type uSTGMEDIUM = tagSTGMEDIUM; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _GDI_OBJECT { - pub ObjectType: DWORD, - pub u: _GDI_OBJECT___MIDL_IAdviseSink_0002, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _GDI_OBJECT___MIDL_IAdviseSink_0002 { - pub hBitmap: wireHBITMAP, - pub hPalette: wireHPALETTE, - pub hGeneric: wireHGLOBAL, -} -pub type GDI_OBJECT = _GDI_OBJECT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _userSTGMEDIUM { - pub __bindgen_padding_0: [u64; 2usize], - pub pUnkForRelease: *mut IUnknown, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _userSTGMEDIUM__STGMEDIUM_UNION { - pub tymed: DWORD, - pub u: _userSTGMEDIUM__STGMEDIUM_UNION___MIDL_IAdviseSink_0003, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _userSTGMEDIUM__STGMEDIUM_UNION___MIDL_IAdviseSink_0003 { - pub hMetaFilePict: wireHMETAFILEPICT, - pub hHEnhMetaFile: wireHENHMETAFILE, - pub hGdiHandle: *mut GDI_OBJECT, - pub hGlobal: wireHGLOBAL, - pub lpszFileName: LPOLESTR, - pub pstm: *mut BYTE_BLOB, - pub pstg: *mut BYTE_BLOB, -} -pub type userSTGMEDIUM = _userSTGMEDIUM; -pub type wireSTGMEDIUM = *mut userSTGMEDIUM; -pub type STGMEDIUM = uSTGMEDIUM; -pub type wireASYNC_STGMEDIUM = *mut userSTGMEDIUM; -pub type ASYNC_STGMEDIUM = STGMEDIUM; -pub type LPSTGMEDIUM = *mut STGMEDIUM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _userFLAG_STGMEDIUM { - pub ContextFlags: LONG, - pub fPassOwnership: LONG, - pub Stgmed: userSTGMEDIUM, -} -pub type userFLAG_STGMEDIUM = _userFLAG_STGMEDIUM; -pub type wireFLAG_STGMEDIUM = *mut userFLAG_STGMEDIUM; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _FLAG_STGMEDIUM { - pub ContextFlags: LONG, - pub fPassOwnership: LONG, - pub Stgmed: STGMEDIUM, -} -pub type FLAG_STGMEDIUM = _FLAG_STGMEDIUM; -extern "C" { - pub static IID_IAdviseSink: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAdviseSinkVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAdviseSink, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub OnDataChange: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAdviseSink, - pFormatetc: *mut FORMATETC, - pStgmed: *mut STGMEDIUM, - ), - >, - pub OnViewChange: ::std::option::Option< - unsafe extern "C" fn(This: *mut IAdviseSink, dwAspect: DWORD, lindex: LONG), - >, - pub OnRename: - ::std::option::Option, - pub OnSave: ::std::option::Option, - pub OnClose: ::std::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAdviseSink { - pub lpVtbl: *mut IAdviseSinkVtbl, -} -extern "C" { - pub fn IAdviseSink_RemoteOnDataChange_Proxy( - This: *mut IAdviseSink, - pFormatetc: *mut FORMATETC, - pStgmed: *mut ASYNC_STGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn IAdviseSink_RemoteOnDataChange_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IAdviseSink_RemoteOnViewChange_Proxy( - This: *mut IAdviseSink, - dwAspect: DWORD, - lindex: LONG, - ) -> HRESULT; -} -extern "C" { - pub fn IAdviseSink_RemoteOnViewChange_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IAdviseSink_RemoteOnRename_Proxy(This: *mut IAdviseSink, pmk: *mut IMoniker) -> HRESULT; -} -extern "C" { - pub fn IAdviseSink_RemoteOnRename_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IAdviseSink_RemoteOnSave_Proxy(This: *mut IAdviseSink) -> HRESULT; -} -extern "C" { - pub fn IAdviseSink_RemoteOnSave_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IAdviseSink_RemoteOnClose_Proxy(This: *mut IAdviseSink) -> HRESULT; -} -extern "C" { - pub fn IAdviseSink_RemoteOnClose_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static IID_AsyncIAdviseSink: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AsyncIAdviseSinkVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIAdviseSink, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Begin_OnDataChange: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIAdviseSink, - pFormatetc: *mut FORMATETC, - pStgmed: *mut STGMEDIUM, - ), - >, - pub Finish_OnDataChange: - ::std::option::Option, - pub Begin_OnViewChange: ::std::option::Option< - unsafe extern "C" fn(This: *mut AsyncIAdviseSink, dwAspect: DWORD, lindex: LONG), - >, - pub Finish_OnViewChange: - ::std::option::Option, - pub Begin_OnRename: ::std::option::Option< - unsafe extern "C" fn(This: *mut AsyncIAdviseSink, pmk: *mut IMoniker), - >, - pub Finish_OnRename: ::std::option::Option, - pub Begin_OnSave: ::std::option::Option, - pub Finish_OnSave: ::std::option::Option, - pub Begin_OnClose: ::std::option::Option, - pub Finish_OnClose: ::std::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AsyncIAdviseSink { - pub lpVtbl: *mut AsyncIAdviseSinkVtbl, -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_RemoteOnDataChange_Proxy( - This: *mut AsyncIAdviseSink, - pFormatetc: *mut FORMATETC, - pStgmed: *mut ASYNC_STGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_RemoteOnDataChange_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_RemoteOnDataChange_Proxy(This: *mut AsyncIAdviseSink) - -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_RemoteOnDataChange_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_RemoteOnViewChange_Proxy( - This: *mut AsyncIAdviseSink, - dwAspect: DWORD, - lindex: LONG, - ) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_RemoteOnViewChange_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_RemoteOnViewChange_Proxy(This: *mut AsyncIAdviseSink) - -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_RemoteOnViewChange_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_RemoteOnRename_Proxy( - This: *mut AsyncIAdviseSink, - pmk: *mut IMoniker, - ) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_RemoteOnRename_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_RemoteOnRename_Proxy(This: *mut AsyncIAdviseSink) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_RemoteOnRename_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_RemoteOnSave_Proxy(This: *mut AsyncIAdviseSink) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_RemoteOnSave_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_RemoteOnSave_Proxy(This: *mut AsyncIAdviseSink) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_RemoteOnSave_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_RemoteOnClose_Proxy(This: *mut AsyncIAdviseSink) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_RemoteOnClose_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_RemoteOnClose_Proxy(This: *mut AsyncIAdviseSink) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_RemoteOnClose_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0073_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0073_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPADVISESINK2 = *mut IAdviseSink2; -extern "C" { - pub static IID_IAdviseSink2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAdviseSink2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAdviseSink2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub OnDataChange: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAdviseSink2, - pFormatetc: *mut FORMATETC, - pStgmed: *mut STGMEDIUM, - ), - >, - pub OnViewChange: ::std::option::Option< - unsafe extern "C" fn(This: *mut IAdviseSink2, dwAspect: DWORD, lindex: LONG), - >, - pub OnRename: - ::std::option::Option, - pub OnSave: ::std::option::Option, - pub OnClose: ::std::option::Option, - pub OnLinkSrcChange: - ::std::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAdviseSink2 { - pub lpVtbl: *mut IAdviseSink2Vtbl, -} -extern "C" { - pub fn IAdviseSink2_RemoteOnLinkSrcChange_Proxy( - This: *mut IAdviseSink2, - pmk: *mut IMoniker, - ) -> HRESULT; -} -extern "C" { - pub fn IAdviseSink2_RemoteOnLinkSrcChange_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static IID_AsyncIAdviseSink2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AsyncIAdviseSink2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIAdviseSink2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Begin_OnDataChange: ::std::option::Option< - unsafe extern "C" fn( - This: *mut AsyncIAdviseSink2, - pFormatetc: *mut FORMATETC, - pStgmed: *mut STGMEDIUM, - ), - >, - pub Finish_OnDataChange: - ::std::option::Option, - pub Begin_OnViewChange: ::std::option::Option< - unsafe extern "C" fn(This: *mut AsyncIAdviseSink2, dwAspect: DWORD, lindex: LONG), - >, - pub Finish_OnViewChange: - ::std::option::Option, - pub Begin_OnRename: ::std::option::Option< - unsafe extern "C" fn(This: *mut AsyncIAdviseSink2, pmk: *mut IMoniker), - >, - pub Finish_OnRename: ::std::option::Option, - pub Begin_OnSave: ::std::option::Option, - pub Finish_OnSave: ::std::option::Option, - pub Begin_OnClose: ::std::option::Option, - pub Finish_OnClose: ::std::option::Option, - pub Begin_OnLinkSrcChange: ::std::option::Option< - unsafe extern "C" fn(This: *mut AsyncIAdviseSink2, pmk: *mut IMoniker), - >, - pub Finish_OnLinkSrcChange: - ::std::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AsyncIAdviseSink2 { - pub lpVtbl: *mut AsyncIAdviseSink2Vtbl, -} -extern "C" { - pub fn AsyncIAdviseSink2_Begin_RemoteOnLinkSrcChange_Proxy( - This: *mut AsyncIAdviseSink2, - pmk: *mut IMoniker, - ) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink2_Begin_RemoteOnLinkSrcChange_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn AsyncIAdviseSink2_Finish_RemoteOnLinkSrcChange_Proxy( - This: *mut AsyncIAdviseSink2, - ) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink2_Finish_RemoteOnLinkSrcChange_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0074_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0074_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPDATAOBJECT = *mut IDataObject; -pub const tagDATADIR_DATADIR_GET: tagDATADIR = 1; -pub const tagDATADIR_DATADIR_SET: tagDATADIR = 2; -pub type tagDATADIR = ::std::os::raw::c_int; -pub use self::tagDATADIR as DATADIR; -extern "C" { - pub static IID_IDataObject: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDataObjectVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataObject, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataObject, - pformatetcIn: *mut FORMATETC, - pmedium: *mut STGMEDIUM, - ) -> HRESULT, - >, - pub GetDataHere: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataObject, - pformatetc: *mut FORMATETC, - pmedium: *mut STGMEDIUM, - ) -> HRESULT, - >, - pub QueryGetData: ::std::option::Option< - unsafe extern "C" fn(This: *mut IDataObject, pformatetc: *mut FORMATETC) -> HRESULT, - >, - pub GetCanonicalFormatEtc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataObject, - pformatectIn: *mut FORMATETC, - pformatetcOut: *mut FORMATETC, - ) -> HRESULT, - >, - pub SetData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataObject, - pformatetc: *mut FORMATETC, - pmedium: *mut STGMEDIUM, - fRelease: BOOL, - ) -> HRESULT, - >, - pub EnumFormatEtc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataObject, - dwDirection: DWORD, - ppenumFormatEtc: *mut *mut IEnumFORMATETC, - ) -> HRESULT, - >, - pub DAdvise: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataObject, - pformatetc: *mut FORMATETC, - advf: DWORD, - pAdvSink: *mut IAdviseSink, - pdwConnection: *mut DWORD, - ) -> HRESULT, - >, - pub DUnadvise: ::std::option::Option< - unsafe extern "C" fn(This: *mut IDataObject, dwConnection: DWORD) -> HRESULT, - >, - pub EnumDAdvise: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataObject, - ppenumAdvise: *mut *mut IEnumSTATDATA, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDataObject { - pub lpVtbl: *mut IDataObjectVtbl, -} -extern "C" { - pub fn IDataObject_RemoteGetData_Proxy( - This: *mut IDataObject, - pformatetcIn: *mut FORMATETC, - pRemoteMedium: *mut STGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn IDataObject_RemoteGetData_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IDataObject_RemoteGetDataHere_Proxy( - This: *mut IDataObject, - pformatetc: *mut FORMATETC, - pRemoteMedium: *mut STGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn IDataObject_RemoteGetDataHere_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IDataObject_RemoteSetData_Proxy( - This: *mut IDataObject, - pformatetc: *mut FORMATETC, - pmedium: *mut FLAG_STGMEDIUM, - fRelease: BOOL, - ) -> HRESULT; -} -extern "C" { - pub fn IDataObject_RemoteSetData_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0075_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0075_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPDATAADVISEHOLDER = *mut IDataAdviseHolder; -extern "C" { - pub static IID_IDataAdviseHolder: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDataAdviseHolderVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataAdviseHolder, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Advise: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataAdviseHolder, - pDataObject: *mut IDataObject, - pFetc: *mut FORMATETC, - advf: DWORD, - pAdvise: *mut IAdviseSink, - pdwConnection: *mut DWORD, - ) -> HRESULT, - >, - pub Unadvise: ::std::option::Option< - unsafe extern "C" fn(This: *mut IDataAdviseHolder, dwConnection: DWORD) -> HRESULT, - >, - pub EnumAdvise: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataAdviseHolder, - ppenumAdvise: *mut *mut IEnumSTATDATA, - ) -> HRESULT, - >, - pub SendOnDataChange: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataAdviseHolder, - pDataObject: *mut IDataObject, - dwReserved: DWORD, - advf: DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDataAdviseHolder { - pub lpVtbl: *mut IDataAdviseHolderVtbl, -} -pub type LPMESSAGEFILTER = *mut IMessageFilter; -pub const tagCALLTYPE_CALLTYPE_TOPLEVEL: tagCALLTYPE = 1; -pub const tagCALLTYPE_CALLTYPE_NESTED: tagCALLTYPE = 2; -pub const tagCALLTYPE_CALLTYPE_ASYNC: tagCALLTYPE = 3; -pub const tagCALLTYPE_CALLTYPE_TOPLEVEL_CALLPENDING: tagCALLTYPE = 4; -pub const tagCALLTYPE_CALLTYPE_ASYNC_CALLPENDING: tagCALLTYPE = 5; -pub type tagCALLTYPE = ::std::os::raw::c_int; -pub use self::tagCALLTYPE as CALLTYPE; -pub const tagSERVERCALL_SERVERCALL_ISHANDLED: tagSERVERCALL = 0; -pub const tagSERVERCALL_SERVERCALL_REJECTED: tagSERVERCALL = 1; -pub const tagSERVERCALL_SERVERCALL_RETRYLATER: tagSERVERCALL = 2; -pub type tagSERVERCALL = ::std::os::raw::c_int; -pub use self::tagSERVERCALL as SERVERCALL; -pub const tagPENDINGTYPE_PENDINGTYPE_TOPLEVEL: tagPENDINGTYPE = 1; -pub const tagPENDINGTYPE_PENDINGTYPE_NESTED: tagPENDINGTYPE = 2; -pub type tagPENDINGTYPE = ::std::os::raw::c_int; -pub use self::tagPENDINGTYPE as PENDINGTYPE; -pub const tagPENDINGMSG_PENDINGMSG_CANCELCALL: tagPENDINGMSG = 0; -pub const tagPENDINGMSG_PENDINGMSG_WAITNOPROCESS: tagPENDINGMSG = 1; -pub const tagPENDINGMSG_PENDINGMSG_WAITDEFPROCESS: tagPENDINGMSG = 2; -pub type tagPENDINGMSG = ::std::os::raw::c_int; -pub use self::tagPENDINGMSG as PENDINGMSG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagINTERFACEINFO { - pub pUnk: *mut IUnknown, - pub iid: IID, - pub wMethod: WORD, -} -pub type INTERFACEINFO = tagINTERFACEINFO; -pub type LPINTERFACEINFO = *mut tagINTERFACEINFO; -extern "C" { - pub static IID_IMessageFilter: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMessageFilterVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMessageFilter, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub HandleInComingCall: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMessageFilter, - dwCallType: DWORD, - htaskCaller: HTASK, - dwTickCount: DWORD, - lpInterfaceInfo: LPINTERFACEINFO, - ) -> DWORD, - >, - pub RetryRejectedCall: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMessageFilter, - htaskCallee: HTASK, - dwTickCount: DWORD, - dwRejectType: DWORD, - ) -> DWORD, - >, - pub MessagePending: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMessageFilter, - htaskCallee: HTASK, - dwTickCount: DWORD, - dwPendingType: DWORD, - ) -> DWORD, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMessageFilter { - pub lpVtbl: *mut IMessageFilterVtbl, -} -extern "C" { - pub static FMTID_SummaryInformation: FMTID; -} -extern "C" { - pub static FMTID_DocSummaryInformation: FMTID; -} -extern "C" { - pub static FMTID_UserDefinedProperties: FMTID; -} -extern "C" { - pub static FMTID_DiscardableInformation: FMTID; -} -extern "C" { - pub static FMTID_ImageSummaryInformation: FMTID; -} -extern "C" { - pub static FMTID_AudioSummaryInformation: FMTID; -} -extern "C" { - pub static FMTID_VideoSummaryInformation: FMTID; -} -extern "C" { - pub static FMTID_MediaFileSummaryInformation: FMTID; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0077_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0077_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IClassActivator: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IClassActivatorVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IClassActivator, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetClassObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IClassActivator, - rclsid: *const IID, - dwClassContext: DWORD, - locale: LCID, - riid: *const IID, - ppv: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IClassActivator { - pub lpVtbl: *mut IClassActivatorVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0078_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0078_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IFillLockBytes: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IFillLockBytesVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IFillLockBytes, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub FillAppend: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IFillLockBytes, - pv: *const ::std::os::raw::c_void, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT, - >, - pub FillAt: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IFillLockBytes, - ulOffset: ULARGE_INTEGER, - pv: *const ::std::os::raw::c_void, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT, - >, - pub SetFillSize: ::std::option::Option< - unsafe extern "C" fn(This: *mut IFillLockBytes, ulSize: ULARGE_INTEGER) -> HRESULT, - >, - pub Terminate: ::std::option::Option< - unsafe extern "C" fn(This: *mut IFillLockBytes, bCanceled: BOOL) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IFillLockBytes { - pub lpVtbl: *mut IFillLockBytesVtbl, -} -extern "C" { - pub fn IFillLockBytes_RemoteFillAppend_Proxy( - This: *mut IFillLockBytes, - pv: *const byte, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IFillLockBytes_RemoteFillAppend_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IFillLockBytes_RemoteFillAt_Proxy( - This: *mut IFillLockBytes, - ulOffset: ULARGE_INTEGER, - pv: *const byte, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IFillLockBytes_RemoteFillAt_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0079_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0079_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IProgressNotify: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IProgressNotifyVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IProgressNotify, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub OnProgress: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IProgressNotify, - dwProgressCurrent: DWORD, - dwProgressMaximum: DWORD, - fAccurate: BOOL, - fOwner: BOOL, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IProgressNotify { - pub lpVtbl: *mut IProgressNotifyVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0080_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0080_v0_0_s_ifspec: RPC_IF_HANDLE; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagStorageLayout { - pub LayoutType: DWORD, - pub pwcsElementName: *mut OLECHAR, - pub cOffset: LARGE_INTEGER, - pub cBytes: LARGE_INTEGER, -} -pub type StorageLayout = tagStorageLayout; -extern "C" { - pub static IID_ILayoutStorage: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ILayoutStorageVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ILayoutStorage, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub LayoutScript: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ILayoutStorage, - pStorageLayout: *mut StorageLayout, - nEntries: DWORD, - glfInterleavedFlag: DWORD, - ) -> HRESULT, - >, - pub BeginMonitor: - ::std::option::Option HRESULT>, - pub EndMonitor: - ::std::option::Option HRESULT>, - pub ReLayoutDocfile: ::std::option::Option< - unsafe extern "C" fn(This: *mut ILayoutStorage, pwcsNewDfName: *mut OLECHAR) -> HRESULT, - >, - pub ReLayoutDocfileOnILockBytes: ::std::option::Option< - unsafe extern "C" fn(This: *mut ILayoutStorage, pILockBytes: *mut ILockBytes) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ILayoutStorage { - pub lpVtbl: *mut ILayoutStorageVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0081_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0081_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IBlockingLock: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBlockingLockVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBlockingLock, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Lock: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBlockingLock, dwTimeout: DWORD) -> HRESULT, - >, - pub Unlock: ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBlockingLock { - pub lpVtbl: *mut IBlockingLockVtbl, -} -extern "C" { - pub static IID_ITimeAndNoticeControl: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITimeAndNoticeControlVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITimeAndNoticeControl, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub SuppressChanges: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITimeAndNoticeControl, res1: DWORD, res2: DWORD) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITimeAndNoticeControl { - pub lpVtbl: *mut ITimeAndNoticeControlVtbl, -} -extern "C" { - pub static IID_IOplockStorage: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOplockStorageVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOplockStorage, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub CreateStorageEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOplockStorage, - pwcsName: LPCWSTR, - grfMode: DWORD, - stgfmt: DWORD, - grfAttrs: DWORD, - riid: *const IID, - ppstgOpen: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub OpenStorageEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOplockStorage, - pwcsName: LPCWSTR, - grfMode: DWORD, - stgfmt: DWORD, - grfAttrs: DWORD, - riid: *const IID, - ppstgOpen: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOplockStorage { - pub lpVtbl: *mut IOplockStorageVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0084_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0084_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IDirectWriterLock: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDirectWriterLockVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDirectWriterLock, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub WaitForWriteAccess: ::std::option::Option< - unsafe extern "C" fn(This: *mut IDirectWriterLock, dwTimeout: DWORD) -> HRESULT, - >, - pub ReleaseWriteAccess: - ::std::option::Option HRESULT>, - pub HaveWriteAccess: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDirectWriterLock { - pub lpVtbl: *mut IDirectWriterLockVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0085_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0085_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IUrlMon: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IUrlMonVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUrlMon, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub AsyncGetClassBits: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUrlMon, - rclsid: *const IID, - pszTYPE: LPCWSTR, - pszExt: LPCWSTR, - dwFileVersionMS: DWORD, - dwFileVersionLS: DWORD, - pszCodeBase: LPCWSTR, - pbc: *mut IBindCtx, - dwClassContext: DWORD, - riid: *const IID, - flags: DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IUrlMon { - pub lpVtbl: *mut IUrlMonVtbl, -} -extern "C" { - pub static IID_IForegroundTransfer: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IForegroundTransferVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IForegroundTransfer, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub AllowForegroundTransfer: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IForegroundTransfer, - lpvReserved: *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IForegroundTransfer { - pub lpVtbl: *mut IForegroundTransferVtbl, -} -extern "C" { - pub static IID_IThumbnailExtractor: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IThumbnailExtractorVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IThumbnailExtractor, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub ExtractThumbnail: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IThumbnailExtractor, - pStg: *mut IStorage, - ulLength: ULONG, - ulHeight: ULONG, - pulOutputLength: *mut ULONG, - pulOutputHeight: *mut ULONG, - phOutputBitmap: *mut HBITMAP, - ) -> HRESULT, - >, - pub OnFileUpdated: ::std::option::Option< - unsafe extern "C" fn(This: *mut IThumbnailExtractor, pStg: *mut IStorage) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IThumbnailExtractor { - pub lpVtbl: *mut IThumbnailExtractorVtbl, -} -extern "C" { - pub static IID_IDummyHICONIncluder: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDummyHICONIncluderVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDummyHICONIncluder, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub Dummy: ::std::option::Option< - unsafe extern "C" fn(This: *mut IDummyHICONIncluder, h1: HICON, h2: HDC) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDummyHICONIncluder { - pub lpVtbl: *mut IDummyHICONIncluderVtbl, -} -pub const tagApplicationType_ServerApplication: tagApplicationType = 0; -pub const tagApplicationType_LibraryApplication: tagApplicationType = 1; -pub type tagApplicationType = ::std::os::raw::c_int; -pub use self::tagApplicationType as ApplicationType; -pub const tagShutdownType_IdleShutdown: tagShutdownType = 0; -pub const tagShutdownType_ForcedShutdown: tagShutdownType = 1; -pub type tagShutdownType = ::std::os::raw::c_int; -pub use self::tagShutdownType as ShutdownType; -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0089_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0089_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IProcessLock: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IProcessLockVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IProcessLock, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub AddRefOnProcess: - ::std::option::Option ULONG>, - pub ReleaseRefOnProcess: - ::std::option::Option ULONG>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IProcessLock { - pub lpVtbl: *mut IProcessLockVtbl, -} -extern "C" { - pub static IID_ISurrogateService: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISurrogateServiceVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISurrogateService, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Init: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISurrogateService, - rguidProcessID: *const GUID, - pProcessLock: *mut IProcessLock, - pfApplicationAware: *mut BOOL, - ) -> HRESULT, - >, - pub ApplicationLaunch: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISurrogateService, - rguidApplID: *const GUID, - appType: ApplicationType, - ) -> HRESULT, - >, - pub ApplicationFree: ::std::option::Option< - unsafe extern "C" fn(This: *mut ISurrogateService, rguidApplID: *const GUID) -> HRESULT, - >, - pub CatalogRefresh: ::std::option::Option< - unsafe extern "C" fn(This: *mut ISurrogateService, ulReserved: ULONG) -> HRESULT, - >, - pub ProcessShutdown: ::std::option::Option< - unsafe extern "C" fn(This: *mut ISurrogateService, shutdownType: ShutdownType) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISurrogateService { - pub lpVtbl: *mut ISurrogateServiceVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0091_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0091_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPINITIALIZESPY = *mut IInitializeSpy; -extern "C" { - pub static IID_IInitializeSpy: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInitializeSpyVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInitializeSpy, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub PreInitialize: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInitializeSpy, - dwCoInit: DWORD, - dwCurThreadAptRefs: DWORD, - ) -> HRESULT, - >, - pub PostInitialize: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInitializeSpy, - hrCoInit: HRESULT, - dwCoInit: DWORD, - dwNewThreadAptRefs: DWORD, - ) -> HRESULT, - >, - pub PreUninitialize: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInitializeSpy, dwCurThreadAptRefs: DWORD) -> HRESULT, - >, - pub PostUninitialize: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInitializeSpy, dwNewThreadAptRefs: DWORD) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInitializeSpy { - pub lpVtbl: *mut IInitializeSpyVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0092_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0092_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IApartmentShutdown: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IApartmentShutdownVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IApartmentShutdown, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub OnUninitialize: ::std::option::Option< - unsafe extern "C" fn(This: *mut IApartmentShutdown, ui64ApartmentIdentifier: UINT64), - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IApartmentShutdown { - pub lpVtbl: *mut IApartmentShutdownVtbl, -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0093_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_objidl_0000_0093_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub fn ASYNC_STGMEDIUM_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut ASYNC_STGMEDIUM, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn ASYNC_STGMEDIUM_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut ASYNC_STGMEDIUM, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn ASYNC_STGMEDIUM_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut ASYNC_STGMEDIUM, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn ASYNC_STGMEDIUM_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut ASYNC_STGMEDIUM); -} -extern "C" { - pub fn CLIPFORMAT_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut CLIPFORMAT, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn CLIPFORMAT_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut CLIPFORMAT, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn CLIPFORMAT_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut CLIPFORMAT, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn CLIPFORMAT_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut CLIPFORMAT); -} -extern "C" { - pub fn FLAG_STGMEDIUM_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut FLAG_STGMEDIUM, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn FLAG_STGMEDIUM_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut FLAG_STGMEDIUM, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn FLAG_STGMEDIUM_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut FLAG_STGMEDIUM, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn FLAG_STGMEDIUM_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut FLAG_STGMEDIUM); -} -extern "C" { - pub fn HBITMAP_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut HBITMAP, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn HBITMAP_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HBITMAP, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HBITMAP_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HBITMAP, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HBITMAP_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HBITMAP); -} -extern "C" { - pub fn HDC_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut HDC, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn HDC_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HDC, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HDC_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HDC, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HDC_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HDC); -} -extern "C" { - pub fn HICON_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut HICON, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn HICON_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HICON, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HICON_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HICON, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HICON_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HICON); -} -extern "C" { - pub fn SNB_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut SNB, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn SNB_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut SNB, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn SNB_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut SNB, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn SNB_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut SNB); -} -extern "C" { - pub fn STGMEDIUM_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut STGMEDIUM, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn STGMEDIUM_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut STGMEDIUM, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn STGMEDIUM_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut STGMEDIUM, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn STGMEDIUM_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut STGMEDIUM); -} -extern "C" { - pub fn ASYNC_STGMEDIUM_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut ASYNC_STGMEDIUM, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn ASYNC_STGMEDIUM_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut ASYNC_STGMEDIUM, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn ASYNC_STGMEDIUM_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut ASYNC_STGMEDIUM, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn ASYNC_STGMEDIUM_UserFree64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ASYNC_STGMEDIUM, - ); -} -extern "C" { - pub fn CLIPFORMAT_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut CLIPFORMAT, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn CLIPFORMAT_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut CLIPFORMAT, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn CLIPFORMAT_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut CLIPFORMAT, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn CLIPFORMAT_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut CLIPFORMAT); -} -extern "C" { - pub fn FLAG_STGMEDIUM_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut FLAG_STGMEDIUM, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn FLAG_STGMEDIUM_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut FLAG_STGMEDIUM, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn FLAG_STGMEDIUM_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut FLAG_STGMEDIUM, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn FLAG_STGMEDIUM_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut FLAG_STGMEDIUM); -} -extern "C" { - pub fn HBITMAP_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut HBITMAP, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn HBITMAP_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HBITMAP, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HBITMAP_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HBITMAP, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HBITMAP_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HBITMAP); -} -extern "C" { - pub fn HDC_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut HDC, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn HDC_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HDC, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HDC_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HDC, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HDC_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HDC); -} -extern "C" { - pub fn HICON_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut HICON, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn HICON_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HICON, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HICON_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HICON, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HICON_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HICON); -} -extern "C" { - pub fn SNB_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut SNB, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn SNB_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut SNB, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn SNB_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut SNB, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn SNB_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut SNB); -} -extern "C" { - pub fn STGMEDIUM_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut STGMEDIUM, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn STGMEDIUM_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut STGMEDIUM, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn STGMEDIUM_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut STGMEDIUM, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn STGMEDIUM_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut STGMEDIUM); -} -extern "C" { - pub fn IBindCtx_SetBindOptions_Proxy(This: *mut IBindCtx, pbindopts: *mut BIND_OPTS) - -> HRESULT; -} -extern "C" { - pub fn IBindCtx_SetBindOptions_Stub(This: *mut IBindCtx, pbindopts: *mut BIND_OPTS2) - -> HRESULT; -} -extern "C" { - pub fn IBindCtx_GetBindOptions_Proxy(This: *mut IBindCtx, pbindopts: *mut BIND_OPTS) - -> HRESULT; -} -extern "C" { - pub fn IBindCtx_GetBindOptions_Stub(This: *mut IBindCtx, pbindopts: *mut BIND_OPTS2) - -> HRESULT; -} -extern "C" { - pub fn IEnumMoniker_Next_Proxy( - This: *mut IEnumMoniker, - celt: ULONG, - rgelt: *mut *mut IMoniker, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumMoniker_Next_Stub( - This: *mut IEnumMoniker, - celt: ULONG, - rgelt: *mut *mut IMoniker, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IRunnableObject_IsRunning_Proxy(This: *mut IRunnableObject) -> BOOL; -} -extern "C" { - pub fn IRunnableObject_IsRunning_Stub(This: *mut IRunnableObject) -> HRESULT; -} -extern "C" { - pub fn IMoniker_BindToObject_Proxy( - This: *mut IMoniker, - pbc: *mut IBindCtx, - pmkToLeft: *mut IMoniker, - riidResult: *const IID, - ppvResult: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn IMoniker_BindToObject_Stub( - This: *mut IMoniker, - pbc: *mut IBindCtx, - pmkToLeft: *mut IMoniker, - riidResult: *const IID, - ppvResult: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn IMoniker_BindToStorage_Proxy( - This: *mut IMoniker, - pbc: *mut IBindCtx, - pmkToLeft: *mut IMoniker, - riid: *const IID, - ppvObj: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn IMoniker_BindToStorage_Stub( - This: *mut IMoniker, - pbc: *mut IBindCtx, - pmkToLeft: *mut IMoniker, - riid: *const IID, - ppvObj: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumSTATSTG_Next_Proxy( - This: *mut IEnumSTATSTG, - celt: ULONG, - rgelt: *mut STATSTG, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumSTATSTG_Next_Stub( - This: *mut IEnumSTATSTG, - celt: ULONG, - rgelt: *mut STATSTG, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IStorage_OpenStream_Proxy( - This: *mut IStorage, - pwcsName: *const OLECHAR, - reserved1: *mut ::std::os::raw::c_void, - grfMode: DWORD, - reserved2: DWORD, - ppstm: *mut *mut IStream, - ) -> HRESULT; -} -extern "C" { - pub fn IStorage_OpenStream_Stub( - This: *mut IStorage, - pwcsName: *const OLECHAR, - cbReserved1: ULONG, - reserved1: *mut byte, - grfMode: DWORD, - reserved2: DWORD, - ppstm: *mut *mut IStream, - ) -> HRESULT; -} -extern "C" { - pub fn IStorage_CopyTo_Proxy( - This: *mut IStorage, - ciidExclude: DWORD, - rgiidExclude: *const IID, - snbExclude: SNB, - pstgDest: *mut IStorage, - ) -> HRESULT; -} -extern "C" { - pub fn IStorage_CopyTo_Stub( - This: *mut IStorage, - ciidExclude: DWORD, - rgiidExclude: *const IID, - snbExclude: SNB, - pstgDest: *mut IStorage, - ) -> HRESULT; -} -extern "C" { - pub fn IStorage_EnumElements_Proxy( - This: *mut IStorage, - reserved1: DWORD, - reserved2: *mut ::std::os::raw::c_void, - reserved3: DWORD, - ppenum: *mut *mut IEnumSTATSTG, - ) -> HRESULT; -} -extern "C" { - pub fn IStorage_EnumElements_Stub( - This: *mut IStorage, - reserved1: DWORD, - cbReserved2: ULONG, - reserved2: *mut byte, - reserved3: DWORD, - ppenum: *mut *mut IEnumSTATSTG, - ) -> HRESULT; -} -extern "C" { - pub fn ILockBytes_ReadAt_Proxy( - This: *mut ILockBytes, - ulOffset: ULARGE_INTEGER, - pv: *mut ::std::os::raw::c_void, - cb: ULONG, - pcbRead: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ILockBytes_ReadAt_Stub( - This: *mut ILockBytes, - ulOffset: ULARGE_INTEGER, - pv: *mut byte, - cb: ULONG, - pcbRead: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ILockBytes_WriteAt_Proxy( - This: *mut ILockBytes, - ulOffset: ULARGE_INTEGER, - pv: *const ::std::os::raw::c_void, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ILockBytes_WriteAt_Stub( - This: *mut ILockBytes, - ulOffset: ULARGE_INTEGER, - pv: *const byte, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumFORMATETC_Next_Proxy( - This: *mut IEnumFORMATETC, - celt: ULONG, - rgelt: *mut FORMATETC, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumFORMATETC_Next_Stub( - This: *mut IEnumFORMATETC, - celt: ULONG, - rgelt: *mut FORMATETC, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumSTATDATA_Next_Proxy( - This: *mut IEnumSTATDATA, - celt: ULONG, - rgelt: *mut STATDATA, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumSTATDATA_Next_Stub( - This: *mut IEnumSTATDATA, - celt: ULONG, - rgelt: *mut STATDATA, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IAdviseSink_OnDataChange_Proxy( - This: *mut IAdviseSink, - pFormatetc: *mut FORMATETC, - pStgmed: *mut STGMEDIUM, - ); -} -extern "C" { - pub fn IAdviseSink_OnDataChange_Stub( - This: *mut IAdviseSink, - pFormatetc: *mut FORMATETC, - pStgmed: *mut ASYNC_STGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn IAdviseSink_OnViewChange_Proxy(This: *mut IAdviseSink, dwAspect: DWORD, lindex: LONG); -} -extern "C" { - pub fn IAdviseSink_OnViewChange_Stub( - This: *mut IAdviseSink, - dwAspect: DWORD, - lindex: LONG, - ) -> HRESULT; -} -extern "C" { - pub fn IAdviseSink_OnRename_Proxy(This: *mut IAdviseSink, pmk: *mut IMoniker); -} -extern "C" { - pub fn IAdviseSink_OnRename_Stub(This: *mut IAdviseSink, pmk: *mut IMoniker) -> HRESULT; -} -extern "C" { - pub fn IAdviseSink_OnSave_Proxy(This: *mut IAdviseSink); -} -extern "C" { - pub fn IAdviseSink_OnSave_Stub(This: *mut IAdviseSink) -> HRESULT; -} -extern "C" { - pub fn IAdviseSink_OnClose_Proxy(This: *mut IAdviseSink); -} -extern "C" { - pub fn IAdviseSink_OnClose_Stub(This: *mut IAdviseSink) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_OnDataChange_Proxy( - This: *mut AsyncIAdviseSink, - pFormatetc: *mut FORMATETC, - pStgmed: *mut STGMEDIUM, - ); -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_OnDataChange_Stub( - This: *mut AsyncIAdviseSink, - pFormatetc: *mut FORMATETC, - pStgmed: *mut ASYNC_STGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_OnDataChange_Proxy(This: *mut AsyncIAdviseSink); -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_OnDataChange_Stub(This: *mut AsyncIAdviseSink) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_OnViewChange_Proxy( - This: *mut AsyncIAdviseSink, - dwAspect: DWORD, - lindex: LONG, - ); -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_OnViewChange_Stub( - This: *mut AsyncIAdviseSink, - dwAspect: DWORD, - lindex: LONG, - ) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_OnViewChange_Proxy(This: *mut AsyncIAdviseSink); -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_OnViewChange_Stub(This: *mut AsyncIAdviseSink) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_OnRename_Proxy(This: *mut AsyncIAdviseSink, pmk: *mut IMoniker); -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_OnRename_Stub( - This: *mut AsyncIAdviseSink, - pmk: *mut IMoniker, - ) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_OnRename_Proxy(This: *mut AsyncIAdviseSink); -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_OnRename_Stub(This: *mut AsyncIAdviseSink) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_OnSave_Proxy(This: *mut AsyncIAdviseSink); -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_OnSave_Stub(This: *mut AsyncIAdviseSink) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_OnSave_Proxy(This: *mut AsyncIAdviseSink); -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_OnSave_Stub(This: *mut AsyncIAdviseSink) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_OnClose_Proxy(This: *mut AsyncIAdviseSink); -} -extern "C" { - pub fn AsyncIAdviseSink_Begin_OnClose_Stub(This: *mut AsyncIAdviseSink) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_OnClose_Proxy(This: *mut AsyncIAdviseSink); -} -extern "C" { - pub fn AsyncIAdviseSink_Finish_OnClose_Stub(This: *mut AsyncIAdviseSink) -> HRESULT; -} -extern "C" { - pub fn IAdviseSink2_OnLinkSrcChange_Proxy(This: *mut IAdviseSink2, pmk: *mut IMoniker); -} -extern "C" { - pub fn IAdviseSink2_OnLinkSrcChange_Stub( - This: *mut IAdviseSink2, - pmk: *mut IMoniker, - ) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink2_Begin_OnLinkSrcChange_Proxy( - This: *mut AsyncIAdviseSink2, - pmk: *mut IMoniker, - ); -} -extern "C" { - pub fn AsyncIAdviseSink2_Begin_OnLinkSrcChange_Stub( - This: *mut AsyncIAdviseSink2, - pmk: *mut IMoniker, - ) -> HRESULT; -} -extern "C" { - pub fn AsyncIAdviseSink2_Finish_OnLinkSrcChange_Proxy(This: *mut AsyncIAdviseSink2); -} -extern "C" { - pub fn AsyncIAdviseSink2_Finish_OnLinkSrcChange_Stub(This: *mut AsyncIAdviseSink2) -> HRESULT; -} -extern "C" { - pub fn IDataObject_GetData_Proxy( - This: *mut IDataObject, - pformatetcIn: *mut FORMATETC, - pmedium: *mut STGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn IDataObject_GetData_Stub( - This: *mut IDataObject, - pformatetcIn: *mut FORMATETC, - pRemoteMedium: *mut STGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn IDataObject_GetDataHere_Proxy( - This: *mut IDataObject, - pformatetc: *mut FORMATETC, - pmedium: *mut STGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn IDataObject_GetDataHere_Stub( - This: *mut IDataObject, - pformatetc: *mut FORMATETC, - pRemoteMedium: *mut STGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn IDataObject_SetData_Proxy( - This: *mut IDataObject, - pformatetc: *mut FORMATETC, - pmedium: *mut STGMEDIUM, - fRelease: BOOL, - ) -> HRESULT; -} -extern "C" { - pub fn IDataObject_SetData_Stub( - This: *mut IDataObject, - pformatetc: *mut FORMATETC, - pmedium: *mut FLAG_STGMEDIUM, - fRelease: BOOL, - ) -> HRESULT; -} -extern "C" { - pub fn IFillLockBytes_FillAppend_Proxy( - This: *mut IFillLockBytes, - pv: *const ::std::os::raw::c_void, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IFillLockBytes_FillAppend_Stub( - This: *mut IFillLockBytes, - pv: *const byte, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IFillLockBytes_FillAt_Proxy( - This: *mut IFillLockBytes, - ulOffset: ULARGE_INTEGER, - pv: *const ::std::os::raw::c_void, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IFillLockBytes_FillAt_Stub( - This: *mut IFillLockBytes, - ulOffset: ULARGE_INTEGER, - pv: *const byte, - cb: ULONG, - pcbWritten: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub static mut __MIDL_itf_oaidl_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_oaidl_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type CURRENCY = CY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSAFEARRAYBOUND { - pub cElements: ULONG, - pub lLbound: LONG, -} -pub type SAFEARRAYBOUND = tagSAFEARRAYBOUND; -pub type LPSAFEARRAYBOUND = *mut tagSAFEARRAYBOUND; -pub type wireVARIANT = *mut _wireVARIANT; -pub type wireBRECORD = *mut _wireBRECORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _wireSAFEARR_BSTR { - pub Size: ULONG, - pub aBstr: *mut wireBSTR, -} -pub type SAFEARR_BSTR = _wireSAFEARR_BSTR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _wireSAFEARR_UNKNOWN { - pub Size: ULONG, - pub apUnknown: *mut *mut IUnknown, -} -pub type SAFEARR_UNKNOWN = _wireSAFEARR_UNKNOWN; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _wireSAFEARR_DISPATCH { - pub Size: ULONG, - pub apDispatch: *mut *mut IDispatch, -} -pub type SAFEARR_DISPATCH = _wireSAFEARR_DISPATCH; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _wireSAFEARR_VARIANT { - pub Size: ULONG, - pub aVariant: *mut wireVARIANT, -} -pub type SAFEARR_VARIANT = _wireSAFEARR_VARIANT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _wireSAFEARR_BRECORD { - pub Size: ULONG, - pub aRecord: *mut wireBRECORD, -} -pub type SAFEARR_BRECORD = _wireSAFEARR_BRECORD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _wireSAFEARR_HAVEIID { - pub Size: ULONG, - pub apUnknown: *mut *mut IUnknown, - pub iid: IID, -} -pub type SAFEARR_HAVEIID = _wireSAFEARR_HAVEIID; -pub const tagSF_TYPE_SF_ERROR: tagSF_TYPE = 10; -pub const tagSF_TYPE_SF_I1: tagSF_TYPE = 16; -pub const tagSF_TYPE_SF_I2: tagSF_TYPE = 2; -pub const tagSF_TYPE_SF_I4: tagSF_TYPE = 3; -pub const tagSF_TYPE_SF_I8: tagSF_TYPE = 20; -pub const tagSF_TYPE_SF_BSTR: tagSF_TYPE = 8; -pub const tagSF_TYPE_SF_UNKNOWN: tagSF_TYPE = 13; -pub const tagSF_TYPE_SF_DISPATCH: tagSF_TYPE = 9; -pub const tagSF_TYPE_SF_VARIANT: tagSF_TYPE = 12; -pub const tagSF_TYPE_SF_RECORD: tagSF_TYPE = 36; -pub const tagSF_TYPE_SF_HAVEIID: tagSF_TYPE = 32781; -pub type tagSF_TYPE = ::std::os::raw::c_int; -pub use self::tagSF_TYPE as SF_TYPE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _wireSAFEARRAY_UNION { - pub sfType: ULONG, - pub u: _wireSAFEARRAY_UNION___MIDL_IOleAutomationTypes_0001, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _wireSAFEARRAY_UNION___MIDL_IOleAutomationTypes_0001 { - pub BstrStr: SAFEARR_BSTR, - pub UnknownStr: SAFEARR_UNKNOWN, - pub DispatchStr: SAFEARR_DISPATCH, - pub VariantStr: SAFEARR_VARIANT, - pub RecordStr: SAFEARR_BRECORD, - pub HaveIidStr: SAFEARR_HAVEIID, - pub ByteStr: BYTE_SIZEDARR, - pub WordStr: WORD_SIZEDARR, - pub LongStr: DWORD_SIZEDARR, - pub HyperStr: HYPER_SIZEDARR, -} -pub type SAFEARRAYUNION = _wireSAFEARRAY_UNION; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _wireSAFEARRAY { - pub cDims: USHORT, - pub fFeatures: USHORT, - pub cbElements: ULONG, - pub cLocks: ULONG, - pub uArrayStructs: SAFEARRAYUNION, - pub rgsabound: [SAFEARRAYBOUND; 1usize], -} -pub type wireSAFEARRAY = *mut _wireSAFEARRAY; -pub type wirePSAFEARRAY = *mut wireSAFEARRAY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSAFEARRAY { - pub cDims: USHORT, - pub fFeatures: USHORT, - pub cbElements: ULONG, - pub cLocks: ULONG, - pub pvData: PVOID, - pub rgsabound: [SAFEARRAYBOUND; 1usize], -} -pub type SAFEARRAY = tagSAFEARRAY; -pub type LPSAFEARRAY = *mut SAFEARRAY; -pub type VARIANT = tagVARIANT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagVARIANT { - pub __bindgen_anon_1: tagVARIANT__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagVARIANT__bindgen_ty_1 { - pub __bindgen_anon_1: tagVARIANT__bindgen_ty_1__bindgen_ty_1, - pub decVal: DECIMAL, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagVARIANT__bindgen_ty_1__bindgen_ty_1 { - pub vt: VARTYPE, - pub wReserved1: WORD, - pub wReserved2: WORD, - pub wReserved3: WORD, - pub __bindgen_anon_1: tagVARIANT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagVARIANT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { - pub llVal: LONGLONG, - pub lVal: LONG, - pub bVal: BYTE, - pub iVal: SHORT, - pub fltVal: FLOAT, - pub dblVal: DOUBLE, - pub boolVal: VARIANT_BOOL, - pub __OBSOLETE__VARIANT_BOOL: VARIANT_BOOL, - pub scode: SCODE, - pub cyVal: CY, - pub date: DATE, - pub bstrVal: BSTR, - pub punkVal: *mut IUnknown, - pub pdispVal: *mut IDispatch, - pub parray: *mut SAFEARRAY, - pub pbVal: *mut BYTE, - pub piVal: *mut SHORT, - pub plVal: *mut LONG, - pub pllVal: *mut LONGLONG, - pub pfltVal: *mut FLOAT, - pub pdblVal: *mut DOUBLE, - pub pboolVal: *mut VARIANT_BOOL, - pub __OBSOLETE__VARIANT_PBOOL: *mut VARIANT_BOOL, - pub pscode: *mut SCODE, - pub pcyVal: *mut CY, - pub pdate: *mut DATE, - pub pbstrVal: *mut BSTR, - pub ppunkVal: *mut *mut IUnknown, - pub ppdispVal: *mut *mut IDispatch, - pub pparray: *mut *mut SAFEARRAY, - pub pvarVal: *mut VARIANT, - pub byref: PVOID, - pub cVal: CHAR, - pub uiVal: USHORT, - pub ulVal: ULONG, - pub ullVal: ULONGLONG, - pub intVal: INT, - pub uintVal: UINT, - pub pdecVal: *mut DECIMAL, - pub pcVal: *mut CHAR, - pub puiVal: *mut USHORT, - pub pulVal: *mut ULONG, - pub pullVal: *mut ULONGLONG, - pub pintVal: *mut INT, - pub puintVal: *mut UINT, - pub __bindgen_anon_1: tagVARIANT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagVARIANT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { - pub pvRecord: PVOID, - pub pRecInfo: *mut IRecordInfo, -} -pub type LPVARIANT = *mut VARIANT; -pub type VARIANTARG = VARIANT; -pub type LPVARIANTARG = *mut VARIANT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _wireBRECORD { - pub fFlags: ULONG, - pub clSize: ULONG, - pub pRecInfo: *mut IRecordInfo, - pub pRecord: *mut byte, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _wireVARIANT { - pub clSize: DWORD, - pub rpcReserved: DWORD, - pub vt: USHORT, - pub wReserved1: USHORT, - pub wReserved2: USHORT, - pub wReserved3: USHORT, - pub __bindgen_anon_1: _wireVARIANT__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _wireVARIANT__bindgen_ty_1 { - pub llVal: LONGLONG, - pub lVal: LONG, - pub bVal: BYTE, - pub iVal: SHORT, - pub fltVal: FLOAT, - pub dblVal: DOUBLE, - pub boolVal: VARIANT_BOOL, - pub scode: SCODE, - pub cyVal: CY, - pub date: DATE, - pub bstrVal: wireBSTR, - pub punkVal: *mut IUnknown, - pub pdispVal: *mut IDispatch, - pub parray: wirePSAFEARRAY, - pub brecVal: wireBRECORD, - pub pbVal: *mut BYTE, - pub piVal: *mut SHORT, - pub plVal: *mut LONG, - pub pllVal: *mut LONGLONG, - pub pfltVal: *mut FLOAT, - pub pdblVal: *mut DOUBLE, - pub pboolVal: *mut VARIANT_BOOL, - pub pscode: *mut SCODE, - pub pcyVal: *mut CY, - pub pdate: *mut DATE, - pub pbstrVal: *mut wireBSTR, - pub ppunkVal: *mut *mut IUnknown, - pub ppdispVal: *mut *mut IDispatch, - pub pparray: *mut wirePSAFEARRAY, - pub pvarVal: *mut wireVARIANT, - pub cVal: CHAR, - pub uiVal: USHORT, - pub ulVal: ULONG, - pub ullVal: ULONGLONG, - pub intVal: INT, - pub uintVal: UINT, - pub decVal: DECIMAL, - pub pdecVal: *mut DECIMAL, - pub pcVal: *mut CHAR, - pub puiVal: *mut USHORT, - pub pulVal: *mut ULONG, - pub pullVal: *mut ULONGLONG, - pub pintVal: *mut INT, - pub puintVal: *mut UINT, -} -pub type DISPID = LONG; -pub type MEMBERID = DISPID; -pub type HREFTYPE = DWORD; -pub const tagTYPEKIND_TKIND_ENUM: tagTYPEKIND = 0; -pub const tagTYPEKIND_TKIND_RECORD: tagTYPEKIND = 1; -pub const tagTYPEKIND_TKIND_MODULE: tagTYPEKIND = 2; -pub const tagTYPEKIND_TKIND_INTERFACE: tagTYPEKIND = 3; -pub const tagTYPEKIND_TKIND_DISPATCH: tagTYPEKIND = 4; -pub const tagTYPEKIND_TKIND_COCLASS: tagTYPEKIND = 5; -pub const tagTYPEKIND_TKIND_ALIAS: tagTYPEKIND = 6; -pub const tagTYPEKIND_TKIND_UNION: tagTYPEKIND = 7; -pub const tagTYPEKIND_TKIND_MAX: tagTYPEKIND = 8; -pub type tagTYPEKIND = ::std::os::raw::c_int; -pub use self::tagTYPEKIND as TYPEKIND; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagTYPEDESC { - pub __bindgen_anon_1: tagTYPEDESC__bindgen_ty_1, - pub vt: VARTYPE, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagTYPEDESC__bindgen_ty_1 { - pub lptdesc: *mut tagTYPEDESC, - pub lpadesc: *mut tagARRAYDESC, - pub hreftype: HREFTYPE, -} -pub type TYPEDESC = tagTYPEDESC; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagARRAYDESC { - pub tdescElem: TYPEDESC, - pub cDims: USHORT, - pub rgbounds: [SAFEARRAYBOUND; 1usize], -} -pub type ARRAYDESC = tagARRAYDESC; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagPARAMDESCEX { - pub cBytes: ULONG, - pub varDefaultValue: VARIANTARG, -} -pub type PARAMDESCEX = tagPARAMDESCEX; -pub type LPPARAMDESCEX = *mut tagPARAMDESCEX; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPARAMDESC { - pub pparamdescex: LPPARAMDESCEX, - pub wParamFlags: USHORT, -} -pub type PARAMDESC = tagPARAMDESC; -pub type LPPARAMDESC = *mut tagPARAMDESC; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagIDLDESC { - pub dwReserved: ULONG_PTR, - pub wIDLFlags: USHORT, -} -pub type IDLDESC = tagIDLDESC; -pub type LPIDLDESC = *mut tagIDLDESC; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagELEMDESC { - pub tdesc: TYPEDESC, - pub __bindgen_anon_1: tagELEMDESC__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagELEMDESC__bindgen_ty_1 { - pub idldesc: IDLDESC, - pub paramdesc: PARAMDESC, -} -pub type ELEMDESC = tagELEMDESC; -pub type LPELEMDESC = *mut tagELEMDESC; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagTYPEATTR { - pub guid: GUID, - pub lcid: LCID, - pub dwReserved: DWORD, - pub memidConstructor: MEMBERID, - pub memidDestructor: MEMBERID, - pub lpstrSchema: LPOLESTR, - pub cbSizeInstance: ULONG, - pub typekind: TYPEKIND, - pub cFuncs: WORD, - pub cVars: WORD, - pub cImplTypes: WORD, - pub cbSizeVft: WORD, - pub cbAlignment: WORD, - pub wTypeFlags: WORD, - pub wMajorVerNum: WORD, - pub wMinorVerNum: WORD, - pub tdescAlias: TYPEDESC, - pub idldescType: IDLDESC, -} -pub type TYPEATTR = tagTYPEATTR; -pub type LPTYPEATTR = *mut tagTYPEATTR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagDISPPARAMS { - pub rgvarg: *mut VARIANTARG, - pub rgdispidNamedArgs: *mut DISPID, - pub cArgs: UINT, - pub cNamedArgs: UINT, -} -pub type DISPPARAMS = tagDISPPARAMS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagEXCEPINFO { - pub wCode: WORD, - pub wReserved: WORD, - pub bstrSource: BSTR, - pub bstrDescription: BSTR, - pub bstrHelpFile: BSTR, - pub dwHelpContext: DWORD, - pub pvReserved: PVOID, - pub pfnDeferredFillIn: - ::std::option::Option HRESULT>, - pub scode: SCODE, -} -pub type EXCEPINFO = tagEXCEPINFO; -pub type LPEXCEPINFO = *mut tagEXCEPINFO; -pub const tagCALLCONV_CC_FASTCALL: tagCALLCONV = 0; -pub const tagCALLCONV_CC_CDECL: tagCALLCONV = 1; -pub const tagCALLCONV_CC_MSCPASCAL: tagCALLCONV = 2; -pub const tagCALLCONV_CC_PASCAL: tagCALLCONV = 2; -pub const tagCALLCONV_CC_MACPASCAL: tagCALLCONV = 3; -pub const tagCALLCONV_CC_STDCALL: tagCALLCONV = 4; -pub const tagCALLCONV_CC_FPFASTCALL: tagCALLCONV = 5; -pub const tagCALLCONV_CC_SYSCALL: tagCALLCONV = 6; -pub const tagCALLCONV_CC_MPWCDECL: tagCALLCONV = 7; -pub const tagCALLCONV_CC_MPWPASCAL: tagCALLCONV = 8; -pub const tagCALLCONV_CC_MAX: tagCALLCONV = 9; -pub type tagCALLCONV = ::std::os::raw::c_int; -pub use self::tagCALLCONV as CALLCONV; -pub const tagFUNCKIND_FUNC_VIRTUAL: tagFUNCKIND = 0; -pub const tagFUNCKIND_FUNC_PUREVIRTUAL: tagFUNCKIND = 1; -pub const tagFUNCKIND_FUNC_NONVIRTUAL: tagFUNCKIND = 2; -pub const tagFUNCKIND_FUNC_STATIC: tagFUNCKIND = 3; -pub const tagFUNCKIND_FUNC_DISPATCH: tagFUNCKIND = 4; -pub type tagFUNCKIND = ::std::os::raw::c_int; -pub use self::tagFUNCKIND as FUNCKIND; -pub const tagINVOKEKIND_INVOKE_FUNC: tagINVOKEKIND = 1; -pub const tagINVOKEKIND_INVOKE_PROPERTYGET: tagINVOKEKIND = 2; -pub const tagINVOKEKIND_INVOKE_PROPERTYPUT: tagINVOKEKIND = 4; -pub const tagINVOKEKIND_INVOKE_PROPERTYPUTREF: tagINVOKEKIND = 8; -pub type tagINVOKEKIND = ::std::os::raw::c_int; -pub use self::tagINVOKEKIND as INVOKEKIND; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagFUNCDESC { - pub memid: MEMBERID, - pub lprgscode: *mut SCODE, - pub lprgelemdescParam: *mut ELEMDESC, - pub funckind: FUNCKIND, - pub invkind: INVOKEKIND, - pub callconv: CALLCONV, - pub cParams: SHORT, - pub cParamsOpt: SHORT, - pub oVft: SHORT, - pub cScodes: SHORT, - pub elemdescFunc: ELEMDESC, - pub wFuncFlags: WORD, -} -pub type FUNCDESC = tagFUNCDESC; -pub type LPFUNCDESC = *mut tagFUNCDESC; -pub const tagVARKIND_VAR_PERINSTANCE: tagVARKIND = 0; -pub const tagVARKIND_VAR_STATIC: tagVARKIND = 1; -pub const tagVARKIND_VAR_CONST: tagVARKIND = 2; -pub const tagVARKIND_VAR_DISPATCH: tagVARKIND = 3; -pub type tagVARKIND = ::std::os::raw::c_int; -pub use self::tagVARKIND as VARKIND; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagVARDESC { - pub memid: MEMBERID, - pub lpstrSchema: LPOLESTR, - pub __bindgen_anon_1: tagVARDESC__bindgen_ty_1, - pub elemdescVar: ELEMDESC, - pub wVarFlags: WORD, - pub varkind: VARKIND, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagVARDESC__bindgen_ty_1 { - pub oInst: ULONG, - pub lpvarValue: *mut VARIANT, -} -pub type VARDESC = tagVARDESC; -pub type LPVARDESC = *mut tagVARDESC; -pub const tagTYPEFLAGS_TYPEFLAG_FAPPOBJECT: tagTYPEFLAGS = 1; -pub const tagTYPEFLAGS_TYPEFLAG_FCANCREATE: tagTYPEFLAGS = 2; -pub const tagTYPEFLAGS_TYPEFLAG_FLICENSED: tagTYPEFLAGS = 4; -pub const tagTYPEFLAGS_TYPEFLAG_FPREDECLID: tagTYPEFLAGS = 8; -pub const tagTYPEFLAGS_TYPEFLAG_FHIDDEN: tagTYPEFLAGS = 16; -pub const tagTYPEFLAGS_TYPEFLAG_FCONTROL: tagTYPEFLAGS = 32; -pub const tagTYPEFLAGS_TYPEFLAG_FDUAL: tagTYPEFLAGS = 64; -pub const tagTYPEFLAGS_TYPEFLAG_FNONEXTENSIBLE: tagTYPEFLAGS = 128; -pub const tagTYPEFLAGS_TYPEFLAG_FOLEAUTOMATION: tagTYPEFLAGS = 256; -pub const tagTYPEFLAGS_TYPEFLAG_FRESTRICTED: tagTYPEFLAGS = 512; -pub const tagTYPEFLAGS_TYPEFLAG_FAGGREGATABLE: tagTYPEFLAGS = 1024; -pub const tagTYPEFLAGS_TYPEFLAG_FREPLACEABLE: tagTYPEFLAGS = 2048; -pub const tagTYPEFLAGS_TYPEFLAG_FDISPATCHABLE: tagTYPEFLAGS = 4096; -pub const tagTYPEFLAGS_TYPEFLAG_FREVERSEBIND: tagTYPEFLAGS = 8192; -pub const tagTYPEFLAGS_TYPEFLAG_FPROXY: tagTYPEFLAGS = 16384; -pub type tagTYPEFLAGS = ::std::os::raw::c_int; -pub use self::tagTYPEFLAGS as TYPEFLAGS; -pub const tagFUNCFLAGS_FUNCFLAG_FRESTRICTED: tagFUNCFLAGS = 1; -pub const tagFUNCFLAGS_FUNCFLAG_FSOURCE: tagFUNCFLAGS = 2; -pub const tagFUNCFLAGS_FUNCFLAG_FBINDABLE: tagFUNCFLAGS = 4; -pub const tagFUNCFLAGS_FUNCFLAG_FREQUESTEDIT: tagFUNCFLAGS = 8; -pub const tagFUNCFLAGS_FUNCFLAG_FDISPLAYBIND: tagFUNCFLAGS = 16; -pub const tagFUNCFLAGS_FUNCFLAG_FDEFAULTBIND: tagFUNCFLAGS = 32; -pub const tagFUNCFLAGS_FUNCFLAG_FHIDDEN: tagFUNCFLAGS = 64; -pub const tagFUNCFLAGS_FUNCFLAG_FUSESGETLASTERROR: tagFUNCFLAGS = 128; -pub const tagFUNCFLAGS_FUNCFLAG_FDEFAULTCOLLELEM: tagFUNCFLAGS = 256; -pub const tagFUNCFLAGS_FUNCFLAG_FUIDEFAULT: tagFUNCFLAGS = 512; -pub const tagFUNCFLAGS_FUNCFLAG_FNONBROWSABLE: tagFUNCFLAGS = 1024; -pub const tagFUNCFLAGS_FUNCFLAG_FREPLACEABLE: tagFUNCFLAGS = 2048; -pub const tagFUNCFLAGS_FUNCFLAG_FIMMEDIATEBIND: tagFUNCFLAGS = 4096; -pub type tagFUNCFLAGS = ::std::os::raw::c_int; -pub use self::tagFUNCFLAGS as FUNCFLAGS; -pub const tagVARFLAGS_VARFLAG_FREADONLY: tagVARFLAGS = 1; -pub const tagVARFLAGS_VARFLAG_FSOURCE: tagVARFLAGS = 2; -pub const tagVARFLAGS_VARFLAG_FBINDABLE: tagVARFLAGS = 4; -pub const tagVARFLAGS_VARFLAG_FREQUESTEDIT: tagVARFLAGS = 8; -pub const tagVARFLAGS_VARFLAG_FDISPLAYBIND: tagVARFLAGS = 16; -pub const tagVARFLAGS_VARFLAG_FDEFAULTBIND: tagVARFLAGS = 32; -pub const tagVARFLAGS_VARFLAG_FHIDDEN: tagVARFLAGS = 64; -pub const tagVARFLAGS_VARFLAG_FRESTRICTED: tagVARFLAGS = 128; -pub const tagVARFLAGS_VARFLAG_FDEFAULTCOLLELEM: tagVARFLAGS = 256; -pub const tagVARFLAGS_VARFLAG_FUIDEFAULT: tagVARFLAGS = 512; -pub const tagVARFLAGS_VARFLAG_FNONBROWSABLE: tagVARFLAGS = 1024; -pub const tagVARFLAGS_VARFLAG_FREPLACEABLE: tagVARFLAGS = 2048; -pub const tagVARFLAGS_VARFLAG_FIMMEDIATEBIND: tagVARFLAGS = 4096; -pub type tagVARFLAGS = ::std::os::raw::c_int; -pub use self::tagVARFLAGS as VARFLAGS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCLEANLOCALSTORAGE { - pub pInterface: *mut IUnknown, - pub pStorage: PVOID, - pub flags: DWORD, -} -pub type CLEANLOCALSTORAGE = tagCLEANLOCALSTORAGE; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagCUSTDATAITEM { - pub guid: GUID, - pub varValue: VARIANTARG, -} -pub type CUSTDATAITEM = tagCUSTDATAITEM; -pub type LPCUSTDATAITEM = *mut tagCUSTDATAITEM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCUSTDATA { - pub cCustData: DWORD, - pub prgCustData: LPCUSTDATAITEM, -} -pub type CUSTDATA = tagCUSTDATA; -pub type LPCUSTDATA = *mut tagCUSTDATA; -extern "C" { - pub static mut IOleAutomationTypes_v1_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut IOleAutomationTypes_v1_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_oaidl_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_oaidl_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPCREATETYPEINFO = *mut ICreateTypeInfo; -extern "C" { - pub static IID_ICreateTypeInfo: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICreateTypeInfoVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub SetGuid: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo, guid: *const GUID) -> HRESULT, - >, - pub SetTypeFlags: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo, uTypeFlags: UINT) -> HRESULT, - >, - pub SetDocString: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo, pStrDoc: LPOLESTR) -> HRESULT, - >, - pub SetHelpContext: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo, dwHelpContext: DWORD) -> HRESULT, - >, - pub SetVersion: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo, - wMajorVerNum: WORD, - wMinorVerNum: WORD, - ) -> HRESULT, - >, - pub AddRefTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo, - pTInfo: *mut ITypeInfo, - phRefType: *mut HREFTYPE, - ) -> HRESULT, - >, - pub AddFuncDesc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo, - index: UINT, - pFuncDesc: *mut FUNCDESC, - ) -> HRESULT, - >, - pub AddImplType: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo, - index: UINT, - hRefType: HREFTYPE, - ) -> HRESULT, - >, - pub SetImplTypeFlags: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo, - index: UINT, - implTypeFlags: INT, - ) -> HRESULT, - >, - pub SetAlignment: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo, cbAlignment: WORD) -> HRESULT, - >, - pub SetSchema: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo, pStrSchema: LPOLESTR) -> HRESULT, - >, - pub AddVarDesc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo, - index: UINT, - pVarDesc: *mut VARDESC, - ) -> HRESULT, - >, - pub SetFuncAndParamNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo, - index: UINT, - rgszNames: *mut LPOLESTR, - cNames: UINT, - ) -> HRESULT, - >, - pub SetVarName: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo, index: UINT, szName: LPOLESTR) -> HRESULT, - >, - pub SetTypeDescAlias: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo, pTDescAlias: *mut TYPEDESC) -> HRESULT, - >, - pub DefineFuncAsDllEntry: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo, - index: UINT, - szDllName: LPOLESTR, - szProcName: LPOLESTR, - ) -> HRESULT, - >, - pub SetFuncDocString: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo, - index: UINT, - szDocString: LPOLESTR, - ) -> HRESULT, - >, - pub SetVarDocString: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo, - index: UINT, - szDocString: LPOLESTR, - ) -> HRESULT, - >, - pub SetFuncHelpContext: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo, - index: UINT, - dwHelpContext: DWORD, - ) -> HRESULT, - >, - pub SetVarHelpContext: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo, - index: UINT, - dwHelpContext: DWORD, - ) -> HRESULT, - >, - pub SetMops: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo, index: UINT, bstrMops: BSTR) -> HRESULT, - >, - pub SetTypeIdldesc: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo, pIdlDesc: *mut IDLDESC) -> HRESULT, - >, - pub LayOut: ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICreateTypeInfo { - pub lpVtbl: *mut ICreateTypeInfoVtbl, -} -pub type LPCREATETYPEINFO2 = *mut ICreateTypeInfo2; -extern "C" { - pub static IID_ICreateTypeInfo2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICreateTypeInfo2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub SetGuid: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, guid: *const GUID) -> HRESULT, - >, - pub SetTypeFlags: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, uTypeFlags: UINT) -> HRESULT, - >, - pub SetDocString: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, pStrDoc: LPOLESTR) -> HRESULT, - >, - pub SetHelpContext: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, dwHelpContext: DWORD) -> HRESULT, - >, - pub SetVersion: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - wMajorVerNum: WORD, - wMinorVerNum: WORD, - ) -> HRESULT, - >, - pub AddRefTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - pTInfo: *mut ITypeInfo, - phRefType: *mut HREFTYPE, - ) -> HRESULT, - >, - pub AddFuncDesc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - pFuncDesc: *mut FUNCDESC, - ) -> HRESULT, - >, - pub AddImplType: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - hRefType: HREFTYPE, - ) -> HRESULT, - >, - pub SetImplTypeFlags: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - implTypeFlags: INT, - ) -> HRESULT, - >, - pub SetAlignment: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, cbAlignment: WORD) -> HRESULT, - >, - pub SetSchema: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, pStrSchema: LPOLESTR) -> HRESULT, - >, - pub AddVarDesc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - pVarDesc: *mut VARDESC, - ) -> HRESULT, - >, - pub SetFuncAndParamNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - rgszNames: *mut LPOLESTR, - cNames: UINT, - ) -> HRESULT, - >, - pub SetVarName: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, index: UINT, szName: LPOLESTR) -> HRESULT, - >, - pub SetTypeDescAlias: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, pTDescAlias: *mut TYPEDESC) -> HRESULT, - >, - pub DefineFuncAsDllEntry: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - szDllName: LPOLESTR, - szProcName: LPOLESTR, - ) -> HRESULT, - >, - pub SetFuncDocString: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - szDocString: LPOLESTR, - ) -> HRESULT, - >, - pub SetVarDocString: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - szDocString: LPOLESTR, - ) -> HRESULT, - >, - pub SetFuncHelpContext: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - dwHelpContext: DWORD, - ) -> HRESULT, - >, - pub SetVarHelpContext: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - dwHelpContext: DWORD, - ) -> HRESULT, - >, - pub SetMops: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, index: UINT, bstrMops: BSTR) -> HRESULT, - >, - pub SetTypeIdldesc: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, pIdlDesc: *mut IDLDESC) -> HRESULT, - >, - pub LayOut: ::std::option::Option HRESULT>, - pub DeleteFuncDesc: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, index: UINT) -> HRESULT, - >, - pub DeleteFuncDescByMemId: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - memid: MEMBERID, - invKind: INVOKEKIND, - ) -> HRESULT, - >, - pub DeleteVarDesc: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, index: UINT) -> HRESULT, - >, - pub DeleteVarDescByMemId: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, memid: MEMBERID) -> HRESULT, - >, - pub DeleteImplType: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, index: UINT) -> HRESULT, - >, - pub SetCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - guid: *const GUID, - pVarVal: *mut VARIANT, - ) -> HRESULT, - >, - pub SetFuncCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - guid: *const GUID, - pVarVal: *mut VARIANT, - ) -> HRESULT, - >, - pub SetParamCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - indexFunc: UINT, - indexParam: UINT, - guid: *const GUID, - pVarVal: *mut VARIANT, - ) -> HRESULT, - >, - pub SetVarCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - guid: *const GUID, - pVarVal: *mut VARIANT, - ) -> HRESULT, - >, - pub SetImplTypeCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - guid: *const GUID, - pVarVal: *mut VARIANT, - ) -> HRESULT, - >, - pub SetHelpStringContext: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, dwHelpStringContext: ULONG) -> HRESULT, - >, - pub SetFuncHelpStringContext: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - dwHelpStringContext: ULONG, - ) -> HRESULT, - >, - pub SetVarHelpStringContext: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeInfo2, - index: UINT, - dwHelpStringContext: ULONG, - ) -> HRESULT, - >, - pub Invalidate: - ::std::option::Option HRESULT>, - pub SetName: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeInfo2, szName: LPOLESTR) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICreateTypeInfo2 { - pub lpVtbl: *mut ICreateTypeInfo2Vtbl, -} -pub type LPCREATETYPELIB = *mut ICreateTypeLib; -extern "C" { - pub static IID_ICreateTypeLib: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICreateTypeLibVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeLib, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub CreateTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeLib, - szName: LPOLESTR, - tkind: TYPEKIND, - ppCTInfo: *mut *mut ICreateTypeInfo, - ) -> HRESULT, - >, - pub SetName: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib, szName: LPOLESTR) -> HRESULT, - >, - pub SetVersion: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeLib, - wMajorVerNum: WORD, - wMinorVerNum: WORD, - ) -> HRESULT, - >, - pub SetGuid: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib, guid: *const GUID) -> HRESULT, - >, - pub SetDocString: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib, szDoc: LPOLESTR) -> HRESULT, - >, - pub SetHelpFileName: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib, szHelpFileName: LPOLESTR) -> HRESULT, - >, - pub SetHelpContext: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib, dwHelpContext: DWORD) -> HRESULT, - >, - pub SetLcid: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib, lcid: LCID) -> HRESULT, - >, - pub SetLibFlags: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib, uLibFlags: UINT) -> HRESULT, - >, - pub SaveAllChanges: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICreateTypeLib { - pub lpVtbl: *mut ICreateTypeLibVtbl, -} -pub type LPCREATETYPELIB2 = *mut ICreateTypeLib2; -extern "C" { - pub static IID_ICreateTypeLib2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICreateTypeLib2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeLib2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub CreateTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeLib2, - szName: LPOLESTR, - tkind: TYPEKIND, - ppCTInfo: *mut *mut ICreateTypeInfo, - ) -> HRESULT, - >, - pub SetName: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib2, szName: LPOLESTR) -> HRESULT, - >, - pub SetVersion: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeLib2, - wMajorVerNum: WORD, - wMinorVerNum: WORD, - ) -> HRESULT, - >, - pub SetGuid: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib2, guid: *const GUID) -> HRESULT, - >, - pub SetDocString: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib2, szDoc: LPOLESTR) -> HRESULT, - >, - pub SetHelpFileName: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib2, szHelpFileName: LPOLESTR) -> HRESULT, - >, - pub SetHelpContext: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib2, dwHelpContext: DWORD) -> HRESULT, - >, - pub SetLcid: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib2, lcid: LCID) -> HRESULT, - >, - pub SetLibFlags: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib2, uLibFlags: UINT) -> HRESULT, - >, - pub SaveAllChanges: - ::std::option::Option HRESULT>, - pub DeleteTypeInfo: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib2, szName: LPOLESTR) -> HRESULT, - >, - pub SetCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateTypeLib2, - guid: *const GUID, - pVarVal: *mut VARIANT, - ) -> HRESULT, - >, - pub SetHelpStringContext: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib2, dwHelpStringContext: ULONG) -> HRESULT, - >, - pub SetHelpStringDll: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateTypeLib2, szFileName: LPOLESTR) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICreateTypeLib2 { - pub lpVtbl: *mut ICreateTypeLib2Vtbl, -} -extern "C" { - pub static mut __MIDL_itf_oaidl_0000_0005_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_oaidl_0000_0005_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPDISPATCH = *mut IDispatch; -extern "C" { - pub static IID_IDispatch: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDispatchVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDispatch, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IDispatch, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDispatch, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDispatch, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDispatch, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDispatch { - pub lpVtbl: *mut IDispatchVtbl, -} -extern "C" { - pub fn IDispatch_RemoteInvoke_Proxy( - This: *mut IDispatch, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - dwFlags: DWORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - pArgErr: *mut UINT, - cVarRef: UINT, - rgVarRefIdx: *mut UINT, - rgVarRef: *mut VARIANTARG, - ) -> HRESULT; -} -extern "C" { - pub fn IDispatch_RemoteInvoke_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPENUMVARIANT = *mut IEnumVARIANT; -extern "C" { - pub static IID_IEnumVARIANT: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumVARIANTVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumVARIANT, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Next: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumVARIANT, - celt: ULONG, - rgVar: *mut VARIANT, - pCeltFetched: *mut ULONG, - ) -> HRESULT, - >, - pub Skip: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumVARIANT, celt: ULONG) -> HRESULT, - >, - pub Reset: ::std::option::Option HRESULT>, - pub Clone: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumVARIANT, ppEnum: *mut *mut IEnumVARIANT) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumVARIANT { - pub lpVtbl: *mut IEnumVARIANTVtbl, -} -extern "C" { - pub fn IEnumVARIANT_RemoteNext_Proxy( - This: *mut IEnumVARIANT, - celt: ULONG, - rgVar: *mut VARIANT, - pCeltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumVARIANT_RemoteNext_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPTYPECOMP = *mut ITypeComp; -pub const tagDESCKIND_DESCKIND_NONE: tagDESCKIND = 0; -pub const tagDESCKIND_DESCKIND_FUNCDESC: tagDESCKIND = 1; -pub const tagDESCKIND_DESCKIND_VARDESC: tagDESCKIND = 2; -pub const tagDESCKIND_DESCKIND_TYPECOMP: tagDESCKIND = 3; -pub const tagDESCKIND_DESCKIND_IMPLICITAPPOBJ: tagDESCKIND = 4; -pub const tagDESCKIND_DESCKIND_MAX: tagDESCKIND = 5; -pub type tagDESCKIND = ::std::os::raw::c_int; -pub use self::tagDESCKIND as DESCKIND; -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagBINDPTR { - pub lpfuncdesc: *mut FUNCDESC, - pub lpvardesc: *mut VARDESC, - pub lptcomp: *mut ITypeComp, -} -pub type BINDPTR = tagBINDPTR; -pub type LPBINDPTR = *mut tagBINDPTR; -extern "C" { - pub static IID_ITypeComp: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeCompVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeComp, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Bind: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeComp, - szName: LPOLESTR, - lHashVal: ULONG, - wFlags: WORD, - ppTInfo: *mut *mut ITypeInfo, - pDescKind: *mut DESCKIND, - pBindPtr: *mut BINDPTR, - ) -> HRESULT, - >, - pub BindType: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeComp, - szName: LPOLESTR, - lHashVal: ULONG, - ppTInfo: *mut *mut ITypeInfo, - ppTComp: *mut *mut ITypeComp, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeComp { - pub lpVtbl: *mut ITypeCompVtbl, -} -extern "C" { - pub fn ITypeComp_RemoteBind_Proxy( - This: *mut ITypeComp, - szName: LPOLESTR, - lHashVal: ULONG, - wFlags: WORD, - ppTInfo: *mut *mut ITypeInfo, - pDescKind: *mut DESCKIND, - ppFuncDesc: *mut LPFUNCDESC, - ppVarDesc: *mut LPVARDESC, - ppTypeComp: *mut *mut ITypeComp, - pDummy: *mut CLEANLOCALSTORAGE, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeComp_RemoteBind_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeComp_RemoteBindType_Proxy( - This: *mut ITypeComp, - szName: LPOLESTR, - lHashVal: ULONG, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeComp_RemoteBindType_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_oaidl_0000_0008_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_oaidl_0000_0008_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPTYPEINFO = *mut ITypeInfo; -extern "C" { - pub static IID_ITypeInfo: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeInfoVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeAttr: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeInfo, ppTypeAttr: *mut *mut TYPEATTR) -> HRESULT, - >, - pub GetTypeComp: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeInfo, ppTComp: *mut *mut ITypeComp) -> HRESULT, - >, - pub GetFuncDesc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo, - index: UINT, - ppFuncDesc: *mut *mut FUNCDESC, - ) -> HRESULT, - >, - pub GetVarDesc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo, - index: UINT, - ppVarDesc: *mut *mut VARDESC, - ) -> HRESULT, - >, - pub GetNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo, - memid: MEMBERID, - rgBstrNames: *mut BSTR, - cMaxNames: UINT, - pcNames: *mut UINT, - ) -> HRESULT, - >, - pub GetRefTypeOfImplType: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeInfo, index: UINT, pRefType: *mut HREFTYPE) -> HRESULT, - >, - pub GetImplTypeFlags: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo, - index: UINT, - pImplTypeFlags: *mut INT, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo, - rgszNames: *mut LPOLESTR, - cNames: UINT, - pMemId: *mut MEMBERID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo, - pvInstance: PVOID, - memid: MEMBERID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub GetDocumentation: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo, - memid: MEMBERID, - pBstrName: *mut BSTR, - pBstrDocString: *mut BSTR, - pdwHelpContext: *mut DWORD, - pBstrHelpFile: *mut BSTR, - ) -> HRESULT, - >, - pub GetDllEntry: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo, - memid: MEMBERID, - invKind: INVOKEKIND, - pBstrDllName: *mut BSTR, - pBstrName: *mut BSTR, - pwOrdinal: *mut WORD, - ) -> HRESULT, - >, - pub GetRefTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo, - hRefType: HREFTYPE, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub AddressOfMember: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo, - memid: MEMBERID, - invKind: INVOKEKIND, - ppv: *mut PVOID, - ) -> HRESULT, - >, - pub CreateInstance: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo, - pUnkOuter: *mut IUnknown, - riid: *const IID, - ppvObj: *mut PVOID, - ) -> HRESULT, - >, - pub GetMops: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo, - memid: MEMBERID, - pBstrMops: *mut BSTR, - ) -> HRESULT, - >, - pub GetContainingTypeLib: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo, - ppTLib: *mut *mut ITypeLib, - pIndex: *mut UINT, - ) -> HRESULT, - >, - pub ReleaseTypeAttr: - ::std::option::Option, - pub ReleaseFuncDesc: - ::std::option::Option, - pub ReleaseVarDesc: - ::std::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeInfo { - pub lpVtbl: *mut ITypeInfoVtbl, -} -extern "C" { - pub fn ITypeInfo_RemoteGetTypeAttr_Proxy( - This: *mut ITypeInfo, - ppTypeAttr: *mut LPTYPEATTR, - pDummy: *mut CLEANLOCALSTORAGE, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_RemoteGetTypeAttr_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeInfo_RemoteGetFuncDesc_Proxy( - This: *mut ITypeInfo, - index: UINT, - ppFuncDesc: *mut LPFUNCDESC, - pDummy: *mut CLEANLOCALSTORAGE, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_RemoteGetFuncDesc_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeInfo_RemoteGetVarDesc_Proxy( - This: *mut ITypeInfo, - index: UINT, - ppVarDesc: *mut LPVARDESC, - pDummy: *mut CLEANLOCALSTORAGE, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_RemoteGetVarDesc_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeInfo_RemoteGetNames_Proxy( - This: *mut ITypeInfo, - memid: MEMBERID, - rgBstrNames: *mut BSTR, - cMaxNames: UINT, - pcNames: *mut UINT, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_RemoteGetNames_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeInfo_LocalGetIDsOfNames_Proxy(This: *mut ITypeInfo) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_LocalGetIDsOfNames_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeInfo_LocalInvoke_Proxy(This: *mut ITypeInfo) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_LocalInvoke_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeInfo_RemoteGetDocumentation_Proxy( - This: *mut ITypeInfo, - memid: MEMBERID, - refPtrFlags: DWORD, - pBstrName: *mut BSTR, - pBstrDocString: *mut BSTR, - pdwHelpContext: *mut DWORD, - pBstrHelpFile: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_RemoteGetDocumentation_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeInfo_RemoteGetDllEntry_Proxy( - This: *mut ITypeInfo, - memid: MEMBERID, - invKind: INVOKEKIND, - refPtrFlags: DWORD, - pBstrDllName: *mut BSTR, - pBstrName: *mut BSTR, - pwOrdinal: *mut WORD, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_RemoteGetDllEntry_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeInfo_LocalAddressOfMember_Proxy(This: *mut ITypeInfo) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_LocalAddressOfMember_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeInfo_RemoteCreateInstance_Proxy( - This: *mut ITypeInfo, - riid: *const IID, - ppvObj: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_RemoteCreateInstance_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeInfo_RemoteGetContainingTypeLib_Proxy( - This: *mut ITypeInfo, - ppTLib: *mut *mut ITypeLib, - pIndex: *mut UINT, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_RemoteGetContainingTypeLib_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeInfo_LocalReleaseTypeAttr_Proxy(This: *mut ITypeInfo) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_LocalReleaseTypeAttr_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeInfo_LocalReleaseFuncDesc_Proxy(This: *mut ITypeInfo) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_LocalReleaseFuncDesc_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeInfo_LocalReleaseVarDesc_Proxy(This: *mut ITypeInfo) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_LocalReleaseVarDesc_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPTYPEINFO2 = *mut ITypeInfo2; -extern "C" { - pub static IID_ITypeInfo2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeInfo2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeAttr: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeInfo2, ppTypeAttr: *mut *mut TYPEATTR) -> HRESULT, - >, - pub GetTypeComp: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeInfo2, ppTComp: *mut *mut ITypeComp) -> HRESULT, - >, - pub GetFuncDesc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - index: UINT, - ppFuncDesc: *mut *mut FUNCDESC, - ) -> HRESULT, - >, - pub GetVarDesc: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - index: UINT, - ppVarDesc: *mut *mut VARDESC, - ) -> HRESULT, - >, - pub GetNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - memid: MEMBERID, - rgBstrNames: *mut BSTR, - cMaxNames: UINT, - pcNames: *mut UINT, - ) -> HRESULT, - >, - pub GetRefTypeOfImplType: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - index: UINT, - pRefType: *mut HREFTYPE, - ) -> HRESULT, - >, - pub GetImplTypeFlags: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - index: UINT, - pImplTypeFlags: *mut INT, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - rgszNames: *mut LPOLESTR, - cNames: UINT, - pMemId: *mut MEMBERID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - pvInstance: PVOID, - memid: MEMBERID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub GetDocumentation: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - memid: MEMBERID, - pBstrName: *mut BSTR, - pBstrDocString: *mut BSTR, - pdwHelpContext: *mut DWORD, - pBstrHelpFile: *mut BSTR, - ) -> HRESULT, - >, - pub GetDllEntry: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - memid: MEMBERID, - invKind: INVOKEKIND, - pBstrDllName: *mut BSTR, - pBstrName: *mut BSTR, - pwOrdinal: *mut WORD, - ) -> HRESULT, - >, - pub GetRefTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - hRefType: HREFTYPE, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub AddressOfMember: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - memid: MEMBERID, - invKind: INVOKEKIND, - ppv: *mut PVOID, - ) -> HRESULT, - >, - pub CreateInstance: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - pUnkOuter: *mut IUnknown, - riid: *const IID, - ppvObj: *mut PVOID, - ) -> HRESULT, - >, - pub GetMops: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - memid: MEMBERID, - pBstrMops: *mut BSTR, - ) -> HRESULT, - >, - pub GetContainingTypeLib: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - ppTLib: *mut *mut ITypeLib, - pIndex: *mut UINT, - ) -> HRESULT, - >, - pub ReleaseTypeAttr: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeInfo2, pTypeAttr: *mut TYPEATTR), - >, - pub ReleaseFuncDesc: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeInfo2, pFuncDesc: *mut FUNCDESC), - >, - pub ReleaseVarDesc: - ::std::option::Option, - pub GetTypeKind: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeInfo2, pTypeKind: *mut TYPEKIND) -> HRESULT, - >, - pub GetTypeFlags: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeInfo2, pTypeFlags: *mut ULONG) -> HRESULT, - >, - pub GetFuncIndexOfMemId: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - memid: MEMBERID, - invKind: INVOKEKIND, - pFuncIndex: *mut UINT, - ) -> HRESULT, - >, - pub GetVarIndexOfMemId: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - memid: MEMBERID, - pVarIndex: *mut UINT, - ) -> HRESULT, - >, - pub GetCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - guid: *const GUID, - pVarVal: *mut VARIANT, - ) -> HRESULT, - >, - pub GetFuncCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - index: UINT, - guid: *const GUID, - pVarVal: *mut VARIANT, - ) -> HRESULT, - >, - pub GetParamCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - indexFunc: UINT, - indexParam: UINT, - guid: *const GUID, - pVarVal: *mut VARIANT, - ) -> HRESULT, - >, - pub GetVarCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - index: UINT, - guid: *const GUID, - pVarVal: *mut VARIANT, - ) -> HRESULT, - >, - pub GetImplTypeCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - index: UINT, - guid: *const GUID, - pVarVal: *mut VARIANT, - ) -> HRESULT, - >, - pub GetDocumentation2: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - memid: MEMBERID, - lcid: LCID, - pbstrHelpString: *mut BSTR, - pdwHelpStringContext: *mut DWORD, - pbstrHelpStringDll: *mut BSTR, - ) -> HRESULT, - >, - pub GetAllCustData: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeInfo2, pCustData: *mut CUSTDATA) -> HRESULT, - >, - pub GetAllFuncCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - index: UINT, - pCustData: *mut CUSTDATA, - ) -> HRESULT, - >, - pub GetAllParamCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - indexFunc: UINT, - indexParam: UINT, - pCustData: *mut CUSTDATA, - ) -> HRESULT, - >, - pub GetAllVarCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - index: UINT, - pCustData: *mut CUSTDATA, - ) -> HRESULT, - >, - pub GetAllImplTypeCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeInfo2, - index: UINT, - pCustData: *mut CUSTDATA, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeInfo2 { - pub lpVtbl: *mut ITypeInfo2Vtbl, -} -extern "C" { - pub fn ITypeInfo2_RemoteGetDocumentation2_Proxy( - This: *mut ITypeInfo2, - memid: MEMBERID, - lcid: LCID, - refPtrFlags: DWORD, - pbstrHelpString: *mut BSTR, - pdwHelpStringContext: *mut DWORD, - pbstrHelpStringDll: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo2_RemoteGetDocumentation2_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_oaidl_0000_0010_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_oaidl_0000_0010_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub const tagSYSKIND_SYS_WIN16: tagSYSKIND = 0; -pub const tagSYSKIND_SYS_WIN32: tagSYSKIND = 1; -pub const tagSYSKIND_SYS_MAC: tagSYSKIND = 2; -pub const tagSYSKIND_SYS_WIN64: tagSYSKIND = 3; -pub type tagSYSKIND = ::std::os::raw::c_int; -pub use self::tagSYSKIND as SYSKIND; -pub const tagLIBFLAGS_LIBFLAG_FRESTRICTED: tagLIBFLAGS = 1; -pub const tagLIBFLAGS_LIBFLAG_FCONTROL: tagLIBFLAGS = 2; -pub const tagLIBFLAGS_LIBFLAG_FHIDDEN: tagLIBFLAGS = 4; -pub const tagLIBFLAGS_LIBFLAG_FHASDISKIMAGE: tagLIBFLAGS = 8; -pub type tagLIBFLAGS = ::std::os::raw::c_int; -pub use self::tagLIBFLAGS as LIBFLAGS; -pub type LPTYPELIB = *mut ITypeLib; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagTLIBATTR { - pub guid: GUID, - pub lcid: LCID, - pub syskind: SYSKIND, - pub wMajorVerNum: WORD, - pub wMinorVerNum: WORD, - pub wLibFlags: WORD, -} -pub type TLIBATTR = tagTLIBATTR; -pub type LPTLIBATTR = *mut tagTLIBATTR; -extern "C" { - pub static IID_ITypeLib: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeLibVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option UINT>, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib, - index: UINT, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetTypeInfoType: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLib, index: UINT, pTKind: *mut TYPEKIND) -> HRESULT, - >, - pub GetTypeInfoOfGuid: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib, - guid: *const GUID, - ppTinfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetLibAttr: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLib, ppTLibAttr: *mut *mut TLIBATTR) -> HRESULT, - >, - pub GetTypeComp: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLib, ppTComp: *mut *mut ITypeComp) -> HRESULT, - >, - pub GetDocumentation: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib, - index: INT, - pBstrName: *mut BSTR, - pBstrDocString: *mut BSTR, - pdwHelpContext: *mut DWORD, - pBstrHelpFile: *mut BSTR, - ) -> HRESULT, - >, - pub IsName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib, - szNameBuf: LPOLESTR, - lHashVal: ULONG, - pfName: *mut BOOL, - ) -> HRESULT, - >, - pub FindName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib, - szNameBuf: LPOLESTR, - lHashVal: ULONG, - ppTInfo: *mut *mut ITypeInfo, - rgMemId: *mut MEMBERID, - pcFound: *mut USHORT, - ) -> HRESULT, - >, - pub ReleaseTLibAttr: - ::std::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeLib { - pub lpVtbl: *mut ITypeLibVtbl, -} -extern "C" { - pub fn ITypeLib_RemoteGetTypeInfoCount_Proxy( - This: *mut ITypeLib, - pcTInfo: *mut UINT, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_RemoteGetTypeInfoCount_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeLib_RemoteGetLibAttr_Proxy( - This: *mut ITypeLib, - ppTLibAttr: *mut LPTLIBATTR, - pDummy: *mut CLEANLOCALSTORAGE, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_RemoteGetLibAttr_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeLib_RemoteGetDocumentation_Proxy( - This: *mut ITypeLib, - index: INT, - refPtrFlags: DWORD, - pBstrName: *mut BSTR, - pBstrDocString: *mut BSTR, - pdwHelpContext: *mut DWORD, - pBstrHelpFile: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_RemoteGetDocumentation_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeLib_RemoteIsName_Proxy( - This: *mut ITypeLib, - szNameBuf: LPOLESTR, - lHashVal: ULONG, - pfName: *mut BOOL, - pBstrLibName: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_RemoteIsName_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeLib_RemoteFindName_Proxy( - This: *mut ITypeLib, - szNameBuf: LPOLESTR, - lHashVal: ULONG, - ppTInfo: *mut *mut ITypeInfo, - rgMemId: *mut MEMBERID, - pcFound: *mut USHORT, - pBstrLibName: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_RemoteFindName_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeLib_LocalReleaseTLibAttr_Proxy(This: *mut ITypeLib) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_LocalReleaseTLibAttr_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_oaidl_0000_0011_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_oaidl_0000_0011_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPTYPELIB2 = *mut ITypeLib2; -extern "C" { - pub static IID_ITypeLib2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeLib2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option UINT>, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib2, - index: UINT, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetTypeInfoType: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLib2, index: UINT, pTKind: *mut TYPEKIND) -> HRESULT, - >, - pub GetTypeInfoOfGuid: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib2, - guid: *const GUID, - ppTinfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetLibAttr: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLib2, ppTLibAttr: *mut *mut TLIBATTR) -> HRESULT, - >, - pub GetTypeComp: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLib2, ppTComp: *mut *mut ITypeComp) -> HRESULT, - >, - pub GetDocumentation: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib2, - index: INT, - pBstrName: *mut BSTR, - pBstrDocString: *mut BSTR, - pdwHelpContext: *mut DWORD, - pBstrHelpFile: *mut BSTR, - ) -> HRESULT, - >, - pub IsName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib2, - szNameBuf: LPOLESTR, - lHashVal: ULONG, - pfName: *mut BOOL, - ) -> HRESULT, - >, - pub FindName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib2, - szNameBuf: LPOLESTR, - lHashVal: ULONG, - ppTInfo: *mut *mut ITypeInfo, - rgMemId: *mut MEMBERID, - pcFound: *mut USHORT, - ) -> HRESULT, - >, - pub ReleaseTLibAttr: - ::std::option::Option, - pub GetCustData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib2, - guid: *const GUID, - pVarVal: *mut VARIANT, - ) -> HRESULT, - >, - pub GetLibStatistics: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib2, - pcUniqueNames: *mut ULONG, - pcchUniqueNames: *mut ULONG, - ) -> HRESULT, - >, - pub GetDocumentation2: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLib2, - index: INT, - lcid: LCID, - pbstrHelpString: *mut BSTR, - pdwHelpStringContext: *mut DWORD, - pbstrHelpStringDll: *mut BSTR, - ) -> HRESULT, - >, - pub GetAllCustData: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLib2, pCustData: *mut CUSTDATA) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeLib2 { - pub lpVtbl: *mut ITypeLib2Vtbl, -} -extern "C" { - pub fn ITypeLib2_RemoteGetLibStatistics_Proxy( - This: *mut ITypeLib2, - pcUniqueNames: *mut ULONG, - pcchUniqueNames: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib2_RemoteGetLibStatistics_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn ITypeLib2_RemoteGetDocumentation2_Proxy( - This: *mut ITypeLib2, - index: INT, - lcid: LCID, - refPtrFlags: DWORD, - pbstrHelpString: *mut BSTR, - pdwHelpStringContext: *mut DWORD, - pbstrHelpStringDll: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib2_RemoteGetDocumentation2_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPTYPECHANGEEVENTS = *mut ITypeChangeEvents; -pub const tagCHANGEKIND_CHANGEKIND_ADDMEMBER: tagCHANGEKIND = 0; -pub const tagCHANGEKIND_CHANGEKIND_DELETEMEMBER: tagCHANGEKIND = 1; -pub const tagCHANGEKIND_CHANGEKIND_SETNAMES: tagCHANGEKIND = 2; -pub const tagCHANGEKIND_CHANGEKIND_SETDOCUMENTATION: tagCHANGEKIND = 3; -pub const tagCHANGEKIND_CHANGEKIND_GENERAL: tagCHANGEKIND = 4; -pub const tagCHANGEKIND_CHANGEKIND_INVALIDATE: tagCHANGEKIND = 5; -pub const tagCHANGEKIND_CHANGEKIND_CHANGEFAILED: tagCHANGEKIND = 6; -pub const tagCHANGEKIND_CHANGEKIND_MAX: tagCHANGEKIND = 7; -pub type tagCHANGEKIND = ::std::os::raw::c_int; -pub use self::tagCHANGEKIND as CHANGEKIND; -extern "C" { - pub static IID_ITypeChangeEvents: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeChangeEventsVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeChangeEvents, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub RequestTypeChange: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeChangeEvents, - changeKind: CHANGEKIND, - pTInfoBefore: *mut ITypeInfo, - pStrName: LPOLESTR, - pfCancel: *mut INT, - ) -> HRESULT, - >, - pub AfterTypeChange: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeChangeEvents, - changeKind: CHANGEKIND, - pTInfoAfter: *mut ITypeInfo, - pStrName: LPOLESTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeChangeEvents { - pub lpVtbl: *mut ITypeChangeEventsVtbl, -} -pub type LPERRORINFO = *mut IErrorInfo; -extern "C" { - pub static IID_IErrorInfo: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IErrorInfoVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IErrorInfo, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetGUID: ::std::option::Option< - unsafe extern "C" fn(This: *mut IErrorInfo, pGUID: *mut GUID) -> HRESULT, - >, - pub GetSource: ::std::option::Option< - unsafe extern "C" fn(This: *mut IErrorInfo, pBstrSource: *mut BSTR) -> HRESULT, - >, - pub GetDescription: ::std::option::Option< - unsafe extern "C" fn(This: *mut IErrorInfo, pBstrDescription: *mut BSTR) -> HRESULT, - >, - pub GetHelpFile: ::std::option::Option< - unsafe extern "C" fn(This: *mut IErrorInfo, pBstrHelpFile: *mut BSTR) -> HRESULT, - >, - pub GetHelpContext: ::std::option::Option< - unsafe extern "C" fn(This: *mut IErrorInfo, pdwHelpContext: *mut DWORD) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IErrorInfo { - pub lpVtbl: *mut IErrorInfoVtbl, -} -pub type LPCREATEERRORINFO = *mut ICreateErrorInfo; -extern "C" { - pub static IID_ICreateErrorInfo: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICreateErrorInfoVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICreateErrorInfo, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub SetGUID: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateErrorInfo, rguid: *const GUID) -> HRESULT, - >, - pub SetSource: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateErrorInfo, szSource: LPOLESTR) -> HRESULT, - >, - pub SetDescription: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateErrorInfo, szDescription: LPOLESTR) -> HRESULT, - >, - pub SetHelpFile: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateErrorInfo, szHelpFile: LPOLESTR) -> HRESULT, - >, - pub SetHelpContext: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICreateErrorInfo, dwHelpContext: DWORD) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICreateErrorInfo { - pub lpVtbl: *mut ICreateErrorInfoVtbl, -} -pub type LPSUPPORTERRORINFO = *mut ISupportErrorInfo; -extern "C" { - pub static IID_ISupportErrorInfo: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISupportErrorInfoVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISupportErrorInfo, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub InterfaceSupportsErrorInfo: ::std::option::Option< - unsafe extern "C" fn(This: *mut ISupportErrorInfo, riid: *const IID) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISupportErrorInfo { - pub lpVtbl: *mut ISupportErrorInfoVtbl, -} -extern "C" { - pub static IID_ITypeFactory: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeFactoryVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeFactory, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub CreateFromTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeFactory, - pTypeInfo: *mut ITypeInfo, - riid: *const IID, - ppv: *mut *mut IUnknown, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeFactory { - pub lpVtbl: *mut ITypeFactoryVtbl, -} -extern "C" { - pub static IID_ITypeMarshal: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeMarshalVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeMarshal, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Size: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeMarshal, - pvType: PVOID, - dwDestContext: DWORD, - pvDestContext: PVOID, - pSize: *mut ULONG, - ) -> HRESULT, - >, - pub Marshal: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeMarshal, - pvType: PVOID, - dwDestContext: DWORD, - pvDestContext: PVOID, - cbBufferLength: ULONG, - pBuffer: *mut BYTE, - pcbWritten: *mut ULONG, - ) -> HRESULT, - >, - pub Unmarshal: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeMarshal, - pvType: PVOID, - dwFlags: DWORD, - cbBufferLength: ULONG, - pBuffer: *mut BYTE, - pcbRead: *mut ULONG, - ) -> HRESULT, - >, - pub Free: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeMarshal, pvType: PVOID) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeMarshal { - pub lpVtbl: *mut ITypeMarshalVtbl, -} -pub type LPRECORDINFO = *mut IRecordInfo; -extern "C" { - pub static IID_IRecordInfo: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRecordInfoVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRecordInfo, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub RecordInit: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRecordInfo, pvNew: PVOID) -> HRESULT, - >, - pub RecordClear: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRecordInfo, pvExisting: PVOID) -> HRESULT, - >, - pub RecordCopy: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRecordInfo, pvExisting: PVOID, pvNew: PVOID) -> HRESULT, - >, - pub GetGuid: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRecordInfo, pguid: *mut GUID) -> HRESULT, - >, - pub GetName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRecordInfo, pbstrName: *mut BSTR) -> HRESULT, - >, - pub GetSize: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRecordInfo, pcbSize: *mut ULONG) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRecordInfo, ppTypeInfo: *mut *mut ITypeInfo) -> HRESULT, - >, - pub GetField: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRecordInfo, - pvData: PVOID, - szFieldName: LPCOLESTR, - pvarField: *mut VARIANT, - ) -> HRESULT, - >, - pub GetFieldNoCopy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRecordInfo, - pvData: PVOID, - szFieldName: LPCOLESTR, - pvarField: *mut VARIANT, - ppvDataCArray: *mut PVOID, - ) -> HRESULT, - >, - pub PutField: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRecordInfo, - wFlags: ULONG, - pvData: PVOID, - szFieldName: LPCOLESTR, - pvarField: *mut VARIANT, - ) -> HRESULT, - >, - pub PutFieldNoCopy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRecordInfo, - wFlags: ULONG, - pvData: PVOID, - szFieldName: LPCOLESTR, - pvarField: *mut VARIANT, - ) -> HRESULT, - >, - pub GetFieldNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRecordInfo, - pcNames: *mut ULONG, - rgBstrNames: *mut BSTR, - ) -> HRESULT, - >, - pub IsMatchingType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRecordInfo, pRecordInfo: *mut IRecordInfo) -> BOOL, - >, - pub RecordCreate: ::std::option::Option PVOID>, - pub RecordCreateCopy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IRecordInfo, - pvSource: PVOID, - ppvDest: *mut PVOID, - ) -> HRESULT, - >, - pub RecordDestroy: ::std::option::Option< - unsafe extern "C" fn(This: *mut IRecordInfo, pvRecord: PVOID) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IRecordInfo { - pub lpVtbl: *mut IRecordInfoVtbl, -} -pub type LPERRORLOG = *mut IErrorLog; -extern "C" { - pub static IID_IErrorLog: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IErrorLogVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IErrorLog, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub AddError: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IErrorLog, - pszPropName: LPCOLESTR, - pExcepInfo: *mut EXCEPINFO, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IErrorLog { - pub lpVtbl: *mut IErrorLogVtbl, -} -pub type LPPROPERTYBAG = *mut IPropertyBag; -extern "C" { - pub static IID_IPropertyBag: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPropertyBagVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertyBag, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Read: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertyBag, - pszPropName: LPCOLESTR, - pVar: *mut VARIANT, - pErrorLog: *mut IErrorLog, - ) -> HRESULT, - >, - pub Write: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertyBag, - pszPropName: LPCOLESTR, - pVar: *mut VARIANT, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPropertyBag { - pub lpVtbl: *mut IPropertyBagVtbl, -} -extern "C" { - pub fn IPropertyBag_RemoteRead_Proxy( - This: *mut IPropertyBag, - pszPropName: LPCOLESTR, - pVar: *mut VARIANT, - pErrorLog: *mut IErrorLog, - varType: DWORD, - pUnkObj: *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn IPropertyBag_RemoteRead_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static IID_ITypeLibRegistrationReader: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeLibRegistrationReaderVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLibRegistrationReader, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub EnumTypeLibRegistrations: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLibRegistrationReader, - ppEnumUnknown: *mut *mut IEnumUnknown, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeLibRegistrationReader { - pub lpVtbl: *mut ITypeLibRegistrationReaderVtbl, -} -extern "C" { - pub static IID_ITypeLibRegistration: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeLibRegistrationVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ITypeLibRegistration, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetGuid: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLibRegistration, pGuid: *mut GUID) -> HRESULT, - >, - pub GetVersion: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLibRegistration, pVersion: *mut BSTR) -> HRESULT, - >, - pub GetLcid: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLibRegistration, pLcid: *mut LCID) -> HRESULT, - >, - pub GetWin32Path: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLibRegistration, pWin32Path: *mut BSTR) -> HRESULT, - >, - pub GetWin64Path: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLibRegistration, pWin64Path: *mut BSTR) -> HRESULT, - >, - pub GetDisplayName: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLibRegistration, pDisplayName: *mut BSTR) -> HRESULT, - >, - pub GetFlags: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLibRegistration, pFlags: *mut DWORD) -> HRESULT, - >, - pub GetHelpDir: ::std::option::Option< - unsafe extern "C" fn(This: *mut ITypeLibRegistration, pHelpDir: *mut BSTR) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ITypeLibRegistration { - pub lpVtbl: *mut ITypeLibRegistrationVtbl, -} -extern "C" { - pub static CLSID_TypeLibRegistrationReader: CLSID; -} -extern "C" { - pub static mut __MIDL_itf_oaidl_0000_0023_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_oaidl_0000_0023_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub fn BSTR_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut BSTR, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn BSTR_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut BSTR, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn BSTR_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut BSTR, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn BSTR_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut BSTR); -} -extern "C" { - pub fn CLEANLOCALSTORAGE_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut CLEANLOCALSTORAGE, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn CLEANLOCALSTORAGE_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut CLEANLOCALSTORAGE, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn CLEANLOCALSTORAGE_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut CLEANLOCALSTORAGE, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn CLEANLOCALSTORAGE_UserFree( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut CLEANLOCALSTORAGE, - ); -} -extern "C" { - pub fn VARIANT_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut VARIANT, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn VARIANT_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut VARIANT, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn VARIANT_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut VARIANT, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn VARIANT_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut VARIANT); -} -extern "C" { - pub fn BSTR_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut BSTR, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn BSTR_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut BSTR, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn BSTR_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut BSTR, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn BSTR_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut BSTR); -} -extern "C" { - pub fn CLEANLOCALSTORAGE_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut CLEANLOCALSTORAGE, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn CLEANLOCALSTORAGE_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut CLEANLOCALSTORAGE, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn CLEANLOCALSTORAGE_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut CLEANLOCALSTORAGE, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn CLEANLOCALSTORAGE_UserFree64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut CLEANLOCALSTORAGE, - ); -} -extern "C" { - pub fn VARIANT_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut VARIANT, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn VARIANT_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut VARIANT, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn VARIANT_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut VARIANT, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn VARIANT_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut VARIANT); -} -extern "C" { - pub fn IDispatch_Invoke_Proxy( - This: *mut IDispatch, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT; -} -extern "C" { - pub fn IDispatch_Invoke_Stub( - This: *mut IDispatch, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - dwFlags: DWORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - pArgErr: *mut UINT, - cVarRef: UINT, - rgVarRefIdx: *mut UINT, - rgVarRef: *mut VARIANTARG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumVARIANT_Next_Proxy( - This: *mut IEnumVARIANT, - celt: ULONG, - rgVar: *mut VARIANT, - pCeltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumVARIANT_Next_Stub( - This: *mut IEnumVARIANT, - celt: ULONG, - rgVar: *mut VARIANT, - pCeltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeComp_Bind_Proxy( - This: *mut ITypeComp, - szName: LPOLESTR, - lHashVal: ULONG, - wFlags: WORD, - ppTInfo: *mut *mut ITypeInfo, - pDescKind: *mut DESCKIND, - pBindPtr: *mut BINDPTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeComp_Bind_Stub( - This: *mut ITypeComp, - szName: LPOLESTR, - lHashVal: ULONG, - wFlags: WORD, - ppTInfo: *mut *mut ITypeInfo, - pDescKind: *mut DESCKIND, - ppFuncDesc: *mut LPFUNCDESC, - ppVarDesc: *mut LPVARDESC, - ppTypeComp: *mut *mut ITypeComp, - pDummy: *mut CLEANLOCALSTORAGE, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeComp_BindType_Proxy( - This: *mut ITypeComp, - szName: LPOLESTR, - lHashVal: ULONG, - ppTInfo: *mut *mut ITypeInfo, - ppTComp: *mut *mut ITypeComp, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeComp_BindType_Stub( - This: *mut ITypeComp, - szName: LPOLESTR, - lHashVal: ULONG, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetTypeAttr_Proxy( - This: *mut ITypeInfo, - ppTypeAttr: *mut *mut TYPEATTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetTypeAttr_Stub( - This: *mut ITypeInfo, - ppTypeAttr: *mut LPTYPEATTR, - pDummy: *mut CLEANLOCALSTORAGE, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetFuncDesc_Proxy( - This: *mut ITypeInfo, - index: UINT, - ppFuncDesc: *mut *mut FUNCDESC, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetFuncDesc_Stub( - This: *mut ITypeInfo, - index: UINT, - ppFuncDesc: *mut LPFUNCDESC, - pDummy: *mut CLEANLOCALSTORAGE, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetVarDesc_Proxy( - This: *mut ITypeInfo, - index: UINT, - ppVarDesc: *mut *mut VARDESC, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetVarDesc_Stub( - This: *mut ITypeInfo, - index: UINT, - ppVarDesc: *mut LPVARDESC, - pDummy: *mut CLEANLOCALSTORAGE, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetNames_Proxy( - This: *mut ITypeInfo, - memid: MEMBERID, - rgBstrNames: *mut BSTR, - cMaxNames: UINT, - pcNames: *mut UINT, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetNames_Stub( - This: *mut ITypeInfo, - memid: MEMBERID, - rgBstrNames: *mut BSTR, - cMaxNames: UINT, - pcNames: *mut UINT, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetIDsOfNames_Proxy( - This: *mut ITypeInfo, - rgszNames: *mut LPOLESTR, - cNames: UINT, - pMemId: *mut MEMBERID, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetIDsOfNames_Stub(This: *mut ITypeInfo) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_Invoke_Proxy( - This: *mut ITypeInfo, - pvInstance: PVOID, - memid: MEMBERID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_Invoke_Stub(This: *mut ITypeInfo) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetDocumentation_Proxy( - This: *mut ITypeInfo, - memid: MEMBERID, - pBstrName: *mut BSTR, - pBstrDocString: *mut BSTR, - pdwHelpContext: *mut DWORD, - pBstrHelpFile: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetDocumentation_Stub( - This: *mut ITypeInfo, - memid: MEMBERID, - refPtrFlags: DWORD, - pBstrName: *mut BSTR, - pBstrDocString: *mut BSTR, - pdwHelpContext: *mut DWORD, - pBstrHelpFile: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetDllEntry_Proxy( - This: *mut ITypeInfo, - memid: MEMBERID, - invKind: INVOKEKIND, - pBstrDllName: *mut BSTR, - pBstrName: *mut BSTR, - pwOrdinal: *mut WORD, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetDllEntry_Stub( - This: *mut ITypeInfo, - memid: MEMBERID, - invKind: INVOKEKIND, - refPtrFlags: DWORD, - pBstrDllName: *mut BSTR, - pBstrName: *mut BSTR, - pwOrdinal: *mut WORD, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_AddressOfMember_Proxy( - This: *mut ITypeInfo, - memid: MEMBERID, - invKind: INVOKEKIND, - ppv: *mut PVOID, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_AddressOfMember_Stub(This: *mut ITypeInfo) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_CreateInstance_Proxy( - This: *mut ITypeInfo, - pUnkOuter: *mut IUnknown, - riid: *const IID, - ppvObj: *mut PVOID, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_CreateInstance_Stub( - This: *mut ITypeInfo, - riid: *const IID, - ppvObj: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetContainingTypeLib_Proxy( - This: *mut ITypeInfo, - ppTLib: *mut *mut ITypeLib, - pIndex: *mut UINT, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_GetContainingTypeLib_Stub( - This: *mut ITypeInfo, - ppTLib: *mut *mut ITypeLib, - pIndex: *mut UINT, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_ReleaseTypeAttr_Proxy(This: *mut ITypeInfo, pTypeAttr: *mut TYPEATTR); -} -extern "C" { - pub fn ITypeInfo_ReleaseTypeAttr_Stub(This: *mut ITypeInfo) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_ReleaseFuncDesc_Proxy(This: *mut ITypeInfo, pFuncDesc: *mut FUNCDESC); -} -extern "C" { - pub fn ITypeInfo_ReleaseFuncDesc_Stub(This: *mut ITypeInfo) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo_ReleaseVarDesc_Proxy(This: *mut ITypeInfo, pVarDesc: *mut VARDESC); -} -extern "C" { - pub fn ITypeInfo_ReleaseVarDesc_Stub(This: *mut ITypeInfo) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo2_GetDocumentation2_Proxy( - This: *mut ITypeInfo2, - memid: MEMBERID, - lcid: LCID, - pbstrHelpString: *mut BSTR, - pdwHelpStringContext: *mut DWORD, - pbstrHelpStringDll: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeInfo2_GetDocumentation2_Stub( - This: *mut ITypeInfo2, - memid: MEMBERID, - lcid: LCID, - refPtrFlags: DWORD, - pbstrHelpString: *mut BSTR, - pdwHelpStringContext: *mut DWORD, - pbstrHelpStringDll: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_GetTypeInfoCount_Proxy(This: *mut ITypeLib) -> UINT; -} -extern "C" { - pub fn ITypeLib_GetTypeInfoCount_Stub(This: *mut ITypeLib, pcTInfo: *mut UINT) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_GetLibAttr_Proxy( - This: *mut ITypeLib, - ppTLibAttr: *mut *mut TLIBATTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_GetLibAttr_Stub( - This: *mut ITypeLib, - ppTLibAttr: *mut LPTLIBATTR, - pDummy: *mut CLEANLOCALSTORAGE, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_GetDocumentation_Proxy( - This: *mut ITypeLib, - index: INT, - pBstrName: *mut BSTR, - pBstrDocString: *mut BSTR, - pdwHelpContext: *mut DWORD, - pBstrHelpFile: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_GetDocumentation_Stub( - This: *mut ITypeLib, - index: INT, - refPtrFlags: DWORD, - pBstrName: *mut BSTR, - pBstrDocString: *mut BSTR, - pdwHelpContext: *mut DWORD, - pBstrHelpFile: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_IsName_Proxy( - This: *mut ITypeLib, - szNameBuf: LPOLESTR, - lHashVal: ULONG, - pfName: *mut BOOL, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_IsName_Stub( - This: *mut ITypeLib, - szNameBuf: LPOLESTR, - lHashVal: ULONG, - pfName: *mut BOOL, - pBstrLibName: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_FindName_Proxy( - This: *mut ITypeLib, - szNameBuf: LPOLESTR, - lHashVal: ULONG, - ppTInfo: *mut *mut ITypeInfo, - rgMemId: *mut MEMBERID, - pcFound: *mut USHORT, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_FindName_Stub( - This: *mut ITypeLib, - szNameBuf: LPOLESTR, - lHashVal: ULONG, - ppTInfo: *mut *mut ITypeInfo, - rgMemId: *mut MEMBERID, - pcFound: *mut USHORT, - pBstrLibName: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib_ReleaseTLibAttr_Proxy(This: *mut ITypeLib, pTLibAttr: *mut TLIBATTR); -} -extern "C" { - pub fn ITypeLib_ReleaseTLibAttr_Stub(This: *mut ITypeLib) -> HRESULT; -} -extern "C" { - pub fn ITypeLib2_GetLibStatistics_Proxy( - This: *mut ITypeLib2, - pcUniqueNames: *mut ULONG, - pcchUniqueNames: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib2_GetLibStatistics_Stub( - This: *mut ITypeLib2, - pcUniqueNames: *mut ULONG, - pcchUniqueNames: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib2_GetDocumentation2_Proxy( - This: *mut ITypeLib2, - index: INT, - lcid: LCID, - pbstrHelpString: *mut BSTR, - pdwHelpStringContext: *mut DWORD, - pbstrHelpStringDll: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn ITypeLib2_GetDocumentation2_Stub( - This: *mut ITypeLib2, - index: INT, - lcid: LCID, - refPtrFlags: DWORD, - pbstrHelpString: *mut BSTR, - pdwHelpStringContext: *mut DWORD, - pbstrHelpStringDll: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn IPropertyBag_Read_Proxy( - This: *mut IPropertyBag, - pszPropName: LPCOLESTR, - pVar: *mut VARIANT, - pErrorLog: *mut IErrorLog, - ) -> HRESULT; -} -extern "C" { - pub fn IPropertyBag_Read_Stub( - This: *mut IPropertyBag, - pszPropName: LPCOLESTR, - pVar: *mut VARIANT, - pErrorLog: *mut IErrorLog, - varType: DWORD, - pUnkObj: *mut IUnknown, - ) -> HRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagVersionedStream { - pub guidVersion: GUID, - pub pStream: *mut IStream, -} -pub type VERSIONEDSTREAM = tagVersionedStream; -pub type LPVERSIONEDSTREAM = *mut tagVersionedStream; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCAC { - pub cElems: ULONG, - pub pElems: *mut CHAR, -} -pub type CAC = tagCAC; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCAUB { - pub cElems: ULONG, - pub pElems: *mut UCHAR, -} -pub type CAUB = tagCAUB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCAI { - pub cElems: ULONG, - pub pElems: *mut SHORT, -} -pub type CAI = tagCAI; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCAUI { - pub cElems: ULONG, - pub pElems: *mut USHORT, -} -pub type CAUI = tagCAUI; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCAL { - pub cElems: ULONG, - pub pElems: *mut LONG, -} -pub type CAL = tagCAL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCAUL { - pub cElems: ULONG, - pub pElems: *mut ULONG, -} -pub type CAUL = tagCAUL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCAFLT { - pub cElems: ULONG, - pub pElems: *mut FLOAT, -} -pub type CAFLT = tagCAFLT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCADBL { - pub cElems: ULONG, - pub pElems: *mut DOUBLE, -} -pub type CADBL = tagCADBL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCACY { - pub cElems: ULONG, - pub pElems: *mut CY, -} -pub type CACY = tagCACY; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCADATE { - pub cElems: ULONG, - pub pElems: *mut DATE, -} -pub type CADATE = tagCADATE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCABSTR { - pub cElems: ULONG, - pub pElems: *mut BSTR, -} -pub type CABSTR = tagCABSTR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCABSTRBLOB { - pub cElems: ULONG, - pub pElems: *mut BSTRBLOB, -} -pub type CABSTRBLOB = tagCABSTRBLOB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCABOOL { - pub cElems: ULONG, - pub pElems: *mut VARIANT_BOOL, -} -pub type CABOOL = tagCABOOL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCASCODE { - pub cElems: ULONG, - pub pElems: *mut SCODE, -} -pub type CASCODE = tagCASCODE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCAPROPVARIANT { - pub cElems: ULONG, - pub pElems: *mut PROPVARIANT, -} -pub type CAPROPVARIANT = tagCAPROPVARIANT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCAH { - pub cElems: ULONG, - pub pElems: *mut LARGE_INTEGER, -} -pub type CAH = tagCAH; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCAUH { - pub cElems: ULONG, - pub pElems: *mut ULARGE_INTEGER, -} -pub type CAUH = tagCAUH; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCALPSTR { - pub cElems: ULONG, - pub pElems: *mut LPSTR, -} -pub type CALPSTR = tagCALPSTR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCALPWSTR { - pub cElems: ULONG, - pub pElems: *mut LPWSTR, -} -pub type CALPWSTR = tagCALPWSTR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCAFILETIME { - pub cElems: ULONG, - pub pElems: *mut FILETIME, -} -pub type CAFILETIME = tagCAFILETIME; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCACLIPDATA { - pub cElems: ULONG, - pub pElems: *mut CLIPDATA, -} -pub type CACLIPDATA = tagCACLIPDATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCACLSID { - pub cElems: ULONG, - pub pElems: *mut CLSID, -} -pub type CACLSID = tagCACLSID; -pub type PROPVAR_PAD1 = WORD; -pub type PROPVAR_PAD2 = WORD; -pub type PROPVAR_PAD3 = WORD; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagPROPVARIANT { - pub __bindgen_anon_1: tagPROPVARIANT__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagPROPVARIANT__bindgen_ty_1 { - pub __bindgen_anon_1: tagPROPVARIANT__bindgen_ty_1__bindgen_ty_1, - pub decVal: DECIMAL, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagPROPVARIANT__bindgen_ty_1__bindgen_ty_1 { - pub vt: VARTYPE, - pub wReserved1: PROPVAR_PAD1, - pub wReserved2: PROPVAR_PAD2, - pub wReserved3: PROPVAR_PAD3, - pub __bindgen_anon_1: tagPROPVARIANT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagPROPVARIANT__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { - pub cVal: CHAR, - pub bVal: UCHAR, - pub iVal: SHORT, - pub uiVal: USHORT, - pub lVal: LONG, - pub ulVal: ULONG, - pub intVal: INT, - pub uintVal: UINT, - pub hVal: LARGE_INTEGER, - pub uhVal: ULARGE_INTEGER, - pub fltVal: FLOAT, - pub dblVal: DOUBLE, - pub boolVal: VARIANT_BOOL, - pub __OBSOLETE__VARIANT_BOOL: VARIANT_BOOL, - pub scode: SCODE, - pub cyVal: CY, - pub date: DATE, - pub filetime: FILETIME, - pub puuid: *mut CLSID, - pub pclipdata: *mut CLIPDATA, - pub bstrVal: BSTR, - pub bstrblobVal: BSTRBLOB, - pub blob: BLOB, - pub pszVal: LPSTR, - pub pwszVal: LPWSTR, - pub punkVal: *mut IUnknown, - pub pdispVal: *mut IDispatch, - pub pStream: *mut IStream, - pub pStorage: *mut IStorage, - pub pVersionedStream: LPVERSIONEDSTREAM, - pub parray: LPSAFEARRAY, - pub cac: CAC, - pub caub: CAUB, - pub cai: CAI, - pub caui: CAUI, - pub cal: CAL, - pub caul: CAUL, - pub cah: CAH, - pub cauh: CAUH, - pub caflt: CAFLT, - pub cadbl: CADBL, - pub cabool: CABOOL, - pub cascode: CASCODE, - pub cacy: CACY, - pub cadate: CADATE, - pub cafiletime: CAFILETIME, - pub cauuid: CACLSID, - pub caclipdata: CACLIPDATA, - pub cabstr: CABSTR, - pub cabstrblob: CABSTRBLOB, - pub calpstr: CALPSTR, - pub calpwstr: CALPWSTR, - pub capropvar: CAPROPVARIANT, - pub pcVal: *mut CHAR, - pub pbVal: *mut UCHAR, - pub piVal: *mut SHORT, - pub puiVal: *mut USHORT, - pub plVal: *mut LONG, - pub pulVal: *mut ULONG, - pub pintVal: *mut INT, - pub puintVal: *mut UINT, - pub pfltVal: *mut FLOAT, - pub pdblVal: *mut DOUBLE, - pub pboolVal: *mut VARIANT_BOOL, - pub pdecVal: *mut DECIMAL, - pub pscode: *mut SCODE, - pub pcyVal: *mut CY, - pub pdate: *mut DATE, - pub pbstrVal: *mut BSTR, - pub ppunkVal: *mut *mut IUnknown, - pub ppdispVal: *mut *mut IDispatch, - pub pparray: *mut LPSAFEARRAY, - pub pvarVal: *mut PROPVARIANT, -} -pub type LPPROPVARIANT = *mut tagPROPVARIANT; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct tagPROPSPEC { - pub ulKind: ULONG, - pub __bindgen_anon_1: tagPROPSPEC__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union tagPROPSPEC__bindgen_ty_1 { - pub propid: PROPID, - pub lpwstr: LPOLESTR, -} -pub type PROPSPEC = tagPROPSPEC; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSTATPROPSTG { - pub lpwstrName: LPOLESTR, - pub propid: PROPID, - pub vt: VARTYPE, -} -pub type STATPROPSTG = tagSTATPROPSTG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSTATPROPSETSTG { - pub fmtid: FMTID, - pub clsid: CLSID, - pub grfFlags: DWORD, - pub mtime: FILETIME, - pub ctime: FILETIME, - pub atime: FILETIME, - pub dwOSVersion: DWORD, -} -pub type STATPROPSETSTG = tagSTATPROPSETSTG; -extern "C" { - pub static mut __MIDL_itf_propidlbase_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_propidlbase_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IPropertyStorage: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPropertyStorageVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertyStorage, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub ReadMultiple: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertyStorage, - cpspec: ULONG, - rgpspec: *const PROPSPEC, - rgpropvar: *mut PROPVARIANT, - ) -> HRESULT, - >, - pub WriteMultiple: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertyStorage, - cpspec: ULONG, - rgpspec: *const PROPSPEC, - rgpropvar: *const PROPVARIANT, - propidNameFirst: PROPID, - ) -> HRESULT, - >, - pub DeleteMultiple: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertyStorage, - cpspec: ULONG, - rgpspec: *const PROPSPEC, - ) -> HRESULT, - >, - pub ReadPropertyNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertyStorage, - cpropid: ULONG, - rgpropid: *const PROPID, - rglpwstrName: *mut LPOLESTR, - ) -> HRESULT, - >, - pub WritePropertyNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertyStorage, - cpropid: ULONG, - rgpropid: *const PROPID, - rglpwstrName: *const LPOLESTR, - ) -> HRESULT, - >, - pub DeletePropertyNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertyStorage, - cpropid: ULONG, - rgpropid: *const PROPID, - ) -> HRESULT, - >, - pub Commit: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPropertyStorage, grfCommitFlags: DWORD) -> HRESULT, - >, - pub Revert: ::std::option::Option HRESULT>, - pub Enum: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertyStorage, - ppenum: *mut *mut IEnumSTATPROPSTG, - ) -> HRESULT, - >, - pub SetTimes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertyStorage, - pctime: *const FILETIME, - patime: *const FILETIME, - pmtime: *const FILETIME, - ) -> HRESULT, - >, - pub SetClass: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPropertyStorage, clsid: *const IID) -> HRESULT, - >, - pub Stat: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertyStorage, - pstatpsstg: *mut STATPROPSETSTG, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPropertyStorage { - pub lpVtbl: *mut IPropertyStorageVtbl, -} -pub type LPPROPERTYSETSTORAGE = *mut IPropertySetStorage; -extern "C" { - pub static IID_IPropertySetStorage: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPropertySetStorageVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertySetStorage, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub Create: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertySetStorage, - rfmtid: *const IID, - pclsid: *const CLSID, - grfFlags: DWORD, - grfMode: DWORD, - ppprstg: *mut *mut IPropertyStorage, - ) -> HRESULT, - >, - pub Open: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertySetStorage, - rfmtid: *const IID, - grfMode: DWORD, - ppprstg: *mut *mut IPropertyStorage, - ) -> HRESULT, - >, - pub Delete: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPropertySetStorage, rfmtid: *const IID) -> HRESULT, - >, - pub Enum: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPropertySetStorage, - ppenum: *mut *mut IEnumSTATPROPSETSTG, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPropertySetStorage { - pub lpVtbl: *mut IPropertySetStorageVtbl, -} -pub type LPENUMSTATPROPSTG = *mut IEnumSTATPROPSTG; -extern "C" { - pub static IID_IEnumSTATPROPSTG: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumSTATPROPSTGVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumSTATPROPSTG, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Next: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumSTATPROPSTG, - celt: ULONG, - rgelt: *mut STATPROPSTG, - pceltFetched: *mut ULONG, - ) -> HRESULT, - >, - pub Skip: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumSTATPROPSTG, celt: ULONG) -> HRESULT, - >, - pub Reset: ::std::option::Option HRESULT>, - pub Clone: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumSTATPROPSTG, - ppenum: *mut *mut IEnumSTATPROPSTG, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumSTATPROPSTG { - pub lpVtbl: *mut IEnumSTATPROPSTGVtbl, -} -extern "C" { - pub fn IEnumSTATPROPSTG_RemoteNext_Proxy( - This: *mut IEnumSTATPROPSTG, - celt: ULONG, - rgelt: *mut STATPROPSTG, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumSTATPROPSTG_RemoteNext_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPENUMSTATPROPSETSTG = *mut IEnumSTATPROPSETSTG; -extern "C" { - pub static IID_IEnumSTATPROPSETSTG: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumSTATPROPSETSTGVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumSTATPROPSETSTG, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub Next: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumSTATPROPSETSTG, - celt: ULONG, - rgelt: *mut STATPROPSETSTG, - pceltFetched: *mut ULONG, - ) -> HRESULT, - >, - pub Skip: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumSTATPROPSETSTG, celt: ULONG) -> HRESULT, - >, - pub Reset: - ::std::option::Option HRESULT>, - pub Clone: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumSTATPROPSETSTG, - ppenum: *mut *mut IEnumSTATPROPSETSTG, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumSTATPROPSETSTG { - pub lpVtbl: *mut IEnumSTATPROPSETSTGVtbl, -} -extern "C" { - pub fn IEnumSTATPROPSETSTG_RemoteNext_Proxy( - This: *mut IEnumSTATPROPSETSTG, - celt: ULONG, - rgelt: *mut STATPROPSETSTG, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumSTATPROPSETSTG_RemoteNext_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPPROPERTYSTORAGE = *mut IPropertyStorage; -extern "C" { - pub static mut __MIDL_itf_propidlbase_0000_0004_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_propidlbase_0000_0004_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub fn LPSAFEARRAY_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut LPSAFEARRAY, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn LPSAFEARRAY_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut LPSAFEARRAY, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn LPSAFEARRAY_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut LPSAFEARRAY, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn LPSAFEARRAY_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut LPSAFEARRAY); -} -extern "C" { - pub fn LPSAFEARRAY_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut LPSAFEARRAY, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn LPSAFEARRAY_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut LPSAFEARRAY, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn LPSAFEARRAY_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut LPSAFEARRAY, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn LPSAFEARRAY_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut LPSAFEARRAY); -} -extern "C" { - pub fn IEnumSTATPROPSTG_Next_Proxy( - This: *mut IEnumSTATPROPSTG, - celt: ULONG, - rgelt: *mut STATPROPSTG, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumSTATPROPSTG_Next_Stub( - This: *mut IEnumSTATPROPSTG, - celt: ULONG, - rgelt: *mut STATPROPSTG, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumSTATPROPSETSTG_Next_Proxy( - This: *mut IEnumSTATPROPSETSTG, - celt: ULONG, - rgelt: *mut STATPROPSETSTG, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumSTATPROPSETSTG_Next_Stub( - This: *mut IEnumSTATPROPSETSTG, - celt: ULONG, - rgelt: *mut STATPROPSETSTG, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -pub type STGFMT = DWORD; -extern "C" { - pub fn StgCreateDocfile( - pwcsName: *const WCHAR, - grfMode: DWORD, - reserved: DWORD, - ppstgOpen: *mut *mut IStorage, - ) -> HRESULT; -} -extern "C" { - pub fn StgCreateDocfileOnILockBytes( - plkbyt: *mut ILockBytes, - grfMode: DWORD, - reserved: DWORD, - ppstgOpen: *mut *mut IStorage, - ) -> HRESULT; -} -extern "C" { - pub fn StgOpenStorage( - pwcsName: *const WCHAR, - pstgPriority: *mut IStorage, - grfMode: DWORD, - snbExclude: SNB, - reserved: DWORD, - ppstgOpen: *mut *mut IStorage, - ) -> HRESULT; -} -extern "C" { - pub fn StgOpenStorageOnILockBytes( - plkbyt: *mut ILockBytes, - pstgPriority: *mut IStorage, - grfMode: DWORD, - snbExclude: SNB, - reserved: DWORD, - ppstgOpen: *mut *mut IStorage, - ) -> HRESULT; -} -extern "C" { - pub fn StgIsStorageFile(pwcsName: *const WCHAR) -> HRESULT; -} -extern "C" { - pub fn StgIsStorageILockBytes(plkbyt: *mut ILockBytes) -> HRESULT; -} -extern "C" { - pub fn StgSetTimes( - lpszName: *const WCHAR, - pctime: *const FILETIME, - patime: *const FILETIME, - pmtime: *const FILETIME, - ) -> HRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSTGOPTIONS { - pub usVersion: USHORT, - pub reserved: USHORT, - pub ulSectorSize: ULONG, - pub pwcsTemplateFile: *const WCHAR, -} -pub type STGOPTIONS = tagSTGOPTIONS; -extern "C" { - pub fn StgCreateStorageEx( - pwcsName: *const WCHAR, - grfMode: DWORD, - stgfmt: DWORD, - grfAttrs: DWORD, - pStgOptions: *mut STGOPTIONS, - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - riid: *const IID, - ppObjectOpen: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn StgOpenStorageEx( - pwcsName: *const WCHAR, - grfMode: DWORD, - stgfmt: DWORD, - grfAttrs: DWORD, - pStgOptions: *mut STGOPTIONS, - pSecurityDescriptor: PSECURITY_DESCRIPTOR, - riid: *const IID, - ppObjectOpen: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn StgCreatePropStg( - pUnk: *mut IUnknown, - fmtid: *const IID, - pclsid: *const CLSID, - grfFlags: DWORD, - dwReserved: DWORD, - ppPropStg: *mut *mut IPropertyStorage, - ) -> HRESULT; -} -extern "C" { - pub fn StgOpenPropStg( - pUnk: *mut IUnknown, - fmtid: *const IID, - grfFlags: DWORD, - dwReserved: DWORD, - ppPropStg: *mut *mut IPropertyStorage, - ) -> HRESULT; -} -extern "C" { - pub fn StgCreatePropSetStg( - pStorage: *mut IStorage, - dwReserved: DWORD, - ppPropSetStg: *mut *mut IPropertySetStorage, - ) -> HRESULT; -} -extern "C" { - pub fn FmtIdToPropStgName(pfmtid: *const FMTID, oszName: LPOLESTR) -> HRESULT; -} -extern "C" { - pub fn PropStgNameToFmtId(oszName: LPOLESTR, pfmtid: *mut FMTID) -> HRESULT; -} -extern "C" { - pub fn ReadClassStg(pStg: LPSTORAGE, pclsid: *mut CLSID) -> HRESULT; -} -extern "C" { - pub fn WriteClassStg(pStg: LPSTORAGE, rclsid: *const IID) -> HRESULT; -} -extern "C" { - pub fn ReadClassStm(pStm: LPSTREAM, pclsid: *mut CLSID) -> HRESULT; -} -extern "C" { - pub fn WriteClassStm(pStm: LPSTREAM, rclsid: *const IID) -> HRESULT; -} -extern "C" { - pub fn GetHGlobalFromILockBytes(plkbyt: LPLOCKBYTES, phglobal: *mut HGLOBAL) -> HRESULT; -} -extern "C" { - pub fn CreateILockBytesOnHGlobal( - hGlobal: HGLOBAL, - fDeleteOnRelease: BOOL, - pplkbyt: *mut LPLOCKBYTES, - ) -> HRESULT; -} -extern "C" { - pub fn GetConvertStg(pStg: LPSTORAGE) -> HRESULT; -} -pub const tagCOINIT_COINIT_APARTMENTTHREADED: tagCOINIT = 2; -pub const tagCOINIT_COINIT_MULTITHREADED: tagCOINIT = 0; -pub const tagCOINIT_COINIT_DISABLE_OLE1DDE: tagCOINIT = 4; -pub const tagCOINIT_COINIT_SPEED_OVER_MEMORY: tagCOINIT = 8; -pub type tagCOINIT = ::std::os::raw::c_int; -pub use self::tagCOINIT as COINIT; -extern "C" { - pub fn CoBuildVersion() -> DWORD; -} -extern "C" { - pub fn CoInitialize(pvReserved: LPVOID) -> HRESULT; -} -extern "C" { - pub fn CoRegisterMallocSpy(pMallocSpy: LPMALLOCSPY) -> HRESULT; -} -extern "C" { - pub fn CoRevokeMallocSpy() -> HRESULT; -} -extern "C" { - pub fn CoCreateStandardMalloc(memctx: DWORD, ppMalloc: *mut *mut IMalloc) -> HRESULT; -} -extern "C" { - pub fn CoRegisterInitializeSpy( - pSpy: *mut IInitializeSpy, - puliCookie: *mut ULARGE_INTEGER, - ) -> HRESULT; -} -extern "C" { - pub fn CoRevokeInitializeSpy(uliCookie: ULARGE_INTEGER) -> HRESULT; -} -pub const tagCOMSD_SD_LAUNCHPERMISSIONS: tagCOMSD = 0; -pub const tagCOMSD_SD_ACCESSPERMISSIONS: tagCOMSD = 1; -pub const tagCOMSD_SD_LAUNCHRESTRICTIONS: tagCOMSD = 2; -pub const tagCOMSD_SD_ACCESSRESTRICTIONS: tagCOMSD = 3; -pub type tagCOMSD = ::std::os::raw::c_int; -pub use self::tagCOMSD as COMSD; -extern "C" { - pub fn CoGetSystemSecurityPermissions( - comSDType: COMSD, - ppSD: *mut PSECURITY_DESCRIPTOR, - ) -> HRESULT; -} -extern "C" { - pub fn CoLoadLibrary(lpszLibName: LPOLESTR, bAutoFree: BOOL) -> HINSTANCE; -} -extern "C" { - pub fn CoFreeLibrary(hInst: HINSTANCE); -} -extern "C" { - pub fn CoFreeAllLibraries(); -} -extern "C" { - pub fn CoGetInstanceFromFile( - pServerInfo: *mut COSERVERINFO, - pClsid: *mut CLSID, - punkOuter: *mut IUnknown, - dwClsCtx: DWORD, - grfMode: DWORD, - pwszName: *mut OLECHAR, - dwCount: DWORD, - pResults: *mut MULTI_QI, - ) -> HRESULT; -} -extern "C" { - pub fn CoGetInstanceFromIStorage( - pServerInfo: *mut COSERVERINFO, - pClsid: *mut CLSID, - punkOuter: *mut IUnknown, - dwClsCtx: DWORD, - pstg: *mut IStorage, - dwCount: DWORD, - pResults: *mut MULTI_QI, - ) -> HRESULT; -} -extern "C" { - pub fn CoAllowSetForegroundWindow(pUnk: *mut IUnknown, lpvReserved: LPVOID) -> HRESULT; -} -extern "C" { - pub fn DcomChannelSetHResult( - pvReserved: LPVOID, - pulReserved: *mut ULONG, - appsHR: HRESULT, - ) -> HRESULT; -} -extern "C" { - pub fn CoIsOle1Class(rclsid: *const IID) -> BOOL; -} -extern "C" { - pub fn CoFileTimeToDosDateTime( - lpFileTime: *mut FILETIME, - lpDosDate: LPWORD, - lpDosTime: LPWORD, - ) -> BOOL; -} -extern "C" { - pub fn CoDosDateTimeToFileTime( - nDosDate: WORD, - nDosTime: WORD, - lpFileTime: *mut FILETIME, - ) -> BOOL; -} -extern "C" { - pub fn CoRegisterMessageFilter( - lpMessageFilter: LPMESSAGEFILTER, - lplpMessageFilter: *mut LPMESSAGEFILTER, - ) -> HRESULT; -} -extern "C" { - pub fn CoRegisterChannelHook( - ExtensionUuid: *const GUID, - pChannelHook: *mut IChannelHook, - ) -> HRESULT; -} -extern "C" { - pub fn CoTreatAsClass(clsidOld: *const IID, clsidNew: *const IID) -> HRESULT; -} -extern "C" { - pub fn CreateDataAdviseHolder(ppDAHolder: *mut LPDATAADVISEHOLDER) -> HRESULT; -} -extern "C" { - pub fn CreateDataCache( - pUnkOuter: LPUNKNOWN, - rclsid: *const IID, - iid: *const IID, - ppv: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn StgOpenAsyncDocfileOnIFillLockBytes( - pflb: *mut IFillLockBytes, - grfMode: DWORD, - asyncFlags: DWORD, - ppstgOpen: *mut *mut IStorage, - ) -> HRESULT; -} -extern "C" { - pub fn StgGetIFillLockBytesOnILockBytes( - pilb: *mut ILockBytes, - ppflb: *mut *mut IFillLockBytes, - ) -> HRESULT; -} -extern "C" { - pub fn StgGetIFillLockBytesOnFile( - pwcsName: *const OLECHAR, - ppflb: *mut *mut IFillLockBytes, - ) -> HRESULT; -} -extern "C" { - pub fn StgOpenLayoutDocfile( - pwcsDfName: *const OLECHAR, - grfMode: DWORD, - reserved: DWORD, - ppstgOpen: *mut *mut IStorage, - ) -> HRESULT; -} -extern "C" { - pub fn CoInstall( - pbc: *mut IBindCtx, - dwFlags: DWORD, - pClassSpec: *mut uCLSSPEC, - pQuery: *mut QUERYCONTEXT, - pszCodeBase: LPWSTR, - ) -> HRESULT; -} -extern "C" { - pub fn BindMoniker( - pmk: LPMONIKER, - grfOpt: DWORD, - iidResult: *const IID, - ppvResult: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn CoGetObject( - pszName: LPCWSTR, - pBindOptions: *mut BIND_OPTS, - riid: *const IID, - ppv: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn MkParseDisplayName( - pbc: LPBC, - szUserName: LPCOLESTR, - pchEaten: *mut ULONG, - ppmk: *mut LPMONIKER, - ) -> HRESULT; -} -extern "C" { - pub fn MonikerRelativePathTo( - pmkSrc: LPMONIKER, - pmkDest: LPMONIKER, - ppmkRelPath: *mut LPMONIKER, - dwReserved: BOOL, - ) -> HRESULT; -} -extern "C" { - pub fn MonikerCommonPrefixWith( - pmkThis: LPMONIKER, - pmkOther: LPMONIKER, - ppmkCommon: *mut LPMONIKER, - ) -> HRESULT; -} -extern "C" { - pub fn CreateBindCtx(reserved: DWORD, ppbc: *mut LPBC) -> HRESULT; -} -extern "C" { - pub fn CreateGenericComposite( - pmkFirst: LPMONIKER, - pmkRest: LPMONIKER, - ppmkComposite: *mut LPMONIKER, - ) -> HRESULT; -} -extern "C" { - pub fn GetClassFile(szFilename: LPCOLESTR, pclsid: *mut CLSID) -> HRESULT; -} -extern "C" { - pub fn CreateClassMoniker(rclsid: *const IID, ppmk: *mut LPMONIKER) -> HRESULT; -} -extern "C" { - pub fn CreateFileMoniker(lpszPathName: LPCOLESTR, ppmk: *mut LPMONIKER) -> HRESULT; -} -extern "C" { - pub fn CreateItemMoniker( - lpszDelim: LPCOLESTR, - lpszItem: LPCOLESTR, - ppmk: *mut LPMONIKER, - ) -> HRESULT; -} -extern "C" { - pub fn CreateAntiMoniker(ppmk: *mut LPMONIKER) -> HRESULT; -} -extern "C" { - pub fn CreatePointerMoniker(punk: LPUNKNOWN, ppmk: *mut LPMONIKER) -> HRESULT; -} -extern "C" { - pub fn CreateObjrefMoniker(punk: LPUNKNOWN, ppmk: *mut LPMONIKER) -> HRESULT; -} -extern "C" { - pub fn GetRunningObjectTable(reserved: DWORD, pprot: *mut LPRUNNINGOBJECTTABLE) -> HRESULT; -} -extern "C" { - pub static mut __MIDL_itf_oleidl_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_oleidl_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPOLEADVISEHOLDER = *mut IOleAdviseHolder; -extern "C" { - pub static IID_IOleAdviseHolder: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleAdviseHolderVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleAdviseHolder, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Advise: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleAdviseHolder, - pAdvise: *mut IAdviseSink, - pdwConnection: *mut DWORD, - ) -> HRESULT, - >, - pub Unadvise: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleAdviseHolder, dwConnection: DWORD) -> HRESULT, - >, - pub EnumAdvise: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleAdviseHolder, - ppenumAdvise: *mut *mut IEnumSTATDATA, - ) -> HRESULT, - >, - pub SendOnRename: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleAdviseHolder, pmk: *mut IMoniker) -> HRESULT, - >, - pub SendOnSave: - ::std::option::Option HRESULT>, - pub SendOnClose: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleAdviseHolder { - pub lpVtbl: *mut IOleAdviseHolderVtbl, -} -extern "C" { - pub static mut __MIDL_itf_oleidl_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_oleidl_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPOLECACHE = *mut IOleCache; -extern "C" { - pub static IID_IOleCache: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleCacheVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleCache, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Cache: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleCache, - pformatetc: *mut FORMATETC, - advf: DWORD, - pdwConnection: *mut DWORD, - ) -> HRESULT, - >, - pub Uncache: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleCache, dwConnection: DWORD) -> HRESULT, - >, - pub EnumCache: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleCache, - ppenumSTATDATA: *mut *mut IEnumSTATDATA, - ) -> HRESULT, - >, - pub InitCache: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleCache, pDataObject: *mut IDataObject) -> HRESULT, - >, - pub SetData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleCache, - pformatetc: *mut FORMATETC, - pmedium: *mut STGMEDIUM, - fRelease: BOOL, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleCache { - pub lpVtbl: *mut IOleCacheVtbl, -} -pub type LPOLECACHE2 = *mut IOleCache2; -pub const tagDISCARDCACHE_DISCARDCACHE_SAVEIFDIRTY: tagDISCARDCACHE = 0; -pub const tagDISCARDCACHE_DISCARDCACHE_NOSAVE: tagDISCARDCACHE = 1; -pub type tagDISCARDCACHE = ::std::os::raw::c_int; -pub use self::tagDISCARDCACHE as DISCARDCACHE; -extern "C" { - pub static IID_IOleCache2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleCache2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleCache2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Cache: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleCache2, - pformatetc: *mut FORMATETC, - advf: DWORD, - pdwConnection: *mut DWORD, - ) -> HRESULT, - >, - pub Uncache: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleCache2, dwConnection: DWORD) -> HRESULT, - >, - pub EnumCache: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleCache2, - ppenumSTATDATA: *mut *mut IEnumSTATDATA, - ) -> HRESULT, - >, - pub InitCache: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleCache2, pDataObject: *mut IDataObject) -> HRESULT, - >, - pub SetData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleCache2, - pformatetc: *mut FORMATETC, - pmedium: *mut STGMEDIUM, - fRelease: BOOL, - ) -> HRESULT, - >, - pub UpdateCache: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleCache2, - pDataObject: LPDATAOBJECT, - grfUpdf: DWORD, - pReserved: LPVOID, - ) -> HRESULT, - >, - pub DiscardCache: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleCache2, dwDiscardOptions: DWORD) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleCache2 { - pub lpVtbl: *mut IOleCache2Vtbl, -} -extern "C" { - pub fn IOleCache2_RemoteUpdateCache_Proxy( - This: *mut IOleCache2, - pDataObject: LPDATAOBJECT, - grfUpdf: DWORD, - pReserved: LONG_PTR, - ) -> HRESULT; -} -extern "C" { - pub fn IOleCache2_RemoteUpdateCache_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_oleidl_0000_0003_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_oleidl_0000_0003_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPOLECACHECONTROL = *mut IOleCacheControl; -extern "C" { - pub static IID_IOleCacheControl: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleCacheControlVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleCacheControl, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub OnRun: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleCacheControl, pDataObject: LPDATAOBJECT) -> HRESULT, - >, - pub OnStop: ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleCacheControl { - pub lpVtbl: *mut IOleCacheControlVtbl, -} -pub type LPPARSEDISPLAYNAME = *mut IParseDisplayName; -extern "C" { - pub static IID_IParseDisplayName: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IParseDisplayNameVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IParseDisplayName, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub ParseDisplayName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IParseDisplayName, - pbc: *mut IBindCtx, - pszDisplayName: LPOLESTR, - pchEaten: *mut ULONG, - ppmkOut: *mut *mut IMoniker, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IParseDisplayName { - pub lpVtbl: *mut IParseDisplayNameVtbl, -} -pub type LPOLECONTAINER = *mut IOleContainer; -extern "C" { - pub static IID_IOleContainer: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleContainerVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleContainer, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub ParseDisplayName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleContainer, - pbc: *mut IBindCtx, - pszDisplayName: LPOLESTR, - pchEaten: *mut ULONG, - ppmkOut: *mut *mut IMoniker, - ) -> HRESULT, - >, - pub EnumObjects: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleContainer, - grfFlags: DWORD, - ppenum: *mut *mut IEnumUnknown, - ) -> HRESULT, - >, - pub LockContainer: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleContainer, fLock: BOOL) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleContainer { - pub lpVtbl: *mut IOleContainerVtbl, -} -pub type LPOLECLIENTSITE = *mut IOleClientSite; -extern "C" { - pub static IID_IOleClientSite: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleClientSiteVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleClientSite, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub SaveObject: - ::std::option::Option HRESULT>, - pub GetMoniker: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleClientSite, - dwAssign: DWORD, - dwWhichMoniker: DWORD, - ppmk: *mut *mut IMoniker, - ) -> HRESULT, - >, - pub GetContainer: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleClientSite, - ppContainer: *mut *mut IOleContainer, - ) -> HRESULT, - >, - pub ShowObject: - ::std::option::Option HRESULT>, - pub OnShowWindow: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleClientSite, fShow: BOOL) -> HRESULT, - >, - pub RequestNewObjectLayout: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleClientSite { - pub lpVtbl: *mut IOleClientSiteVtbl, -} -pub type LPOLEOBJECT = *mut IOleObject; -pub const tagOLEGETMONIKER_OLEGETMONIKER_ONLYIFTHERE: tagOLEGETMONIKER = 1; -pub const tagOLEGETMONIKER_OLEGETMONIKER_FORCEASSIGN: tagOLEGETMONIKER = 2; -pub const tagOLEGETMONIKER_OLEGETMONIKER_UNASSIGN: tagOLEGETMONIKER = 3; -pub const tagOLEGETMONIKER_OLEGETMONIKER_TEMPFORUSER: tagOLEGETMONIKER = 4; -pub type tagOLEGETMONIKER = ::std::os::raw::c_int; -pub use self::tagOLEGETMONIKER as OLEGETMONIKER; -pub const tagOLEWHICHMK_OLEWHICHMK_CONTAINER: tagOLEWHICHMK = 1; -pub const tagOLEWHICHMK_OLEWHICHMK_OBJREL: tagOLEWHICHMK = 2; -pub const tagOLEWHICHMK_OLEWHICHMK_OBJFULL: tagOLEWHICHMK = 3; -pub type tagOLEWHICHMK = ::std::os::raw::c_int; -pub use self::tagOLEWHICHMK as OLEWHICHMK; -pub const tagUSERCLASSTYPE_USERCLASSTYPE_FULL: tagUSERCLASSTYPE = 1; -pub const tagUSERCLASSTYPE_USERCLASSTYPE_SHORT: tagUSERCLASSTYPE = 2; -pub const tagUSERCLASSTYPE_USERCLASSTYPE_APPNAME: tagUSERCLASSTYPE = 3; -pub type tagUSERCLASSTYPE = ::std::os::raw::c_int; -pub use self::tagUSERCLASSTYPE as USERCLASSTYPE; -pub const tagOLEMISC_OLEMISC_RECOMPOSEONRESIZE: tagOLEMISC = 1; -pub const tagOLEMISC_OLEMISC_ONLYICONIC: tagOLEMISC = 2; -pub const tagOLEMISC_OLEMISC_INSERTNOTREPLACE: tagOLEMISC = 4; -pub const tagOLEMISC_OLEMISC_STATIC: tagOLEMISC = 8; -pub const tagOLEMISC_OLEMISC_CANTLINKINSIDE: tagOLEMISC = 16; -pub const tagOLEMISC_OLEMISC_CANLINKBYOLE1: tagOLEMISC = 32; -pub const tagOLEMISC_OLEMISC_ISLINKOBJECT: tagOLEMISC = 64; -pub const tagOLEMISC_OLEMISC_INSIDEOUT: tagOLEMISC = 128; -pub const tagOLEMISC_OLEMISC_ACTIVATEWHENVISIBLE: tagOLEMISC = 256; -pub const tagOLEMISC_OLEMISC_RENDERINGISDEVICEINDEPENDENT: tagOLEMISC = 512; -pub const tagOLEMISC_OLEMISC_INVISIBLEATRUNTIME: tagOLEMISC = 1024; -pub const tagOLEMISC_OLEMISC_ALWAYSRUN: tagOLEMISC = 2048; -pub const tagOLEMISC_OLEMISC_ACTSLIKEBUTTON: tagOLEMISC = 4096; -pub const tagOLEMISC_OLEMISC_ACTSLIKELABEL: tagOLEMISC = 8192; -pub const tagOLEMISC_OLEMISC_NOUIACTIVATE: tagOLEMISC = 16384; -pub const tagOLEMISC_OLEMISC_ALIGNABLE: tagOLEMISC = 32768; -pub const tagOLEMISC_OLEMISC_SIMPLEFRAME: tagOLEMISC = 65536; -pub const tagOLEMISC_OLEMISC_SETCLIENTSITEFIRST: tagOLEMISC = 131072; -pub const tagOLEMISC_OLEMISC_IMEMODE: tagOLEMISC = 262144; -pub const tagOLEMISC_OLEMISC_IGNOREACTIVATEWHENVISIBLE: tagOLEMISC = 524288; -pub const tagOLEMISC_OLEMISC_WANTSTOMENUMERGE: tagOLEMISC = 1048576; -pub const tagOLEMISC_OLEMISC_SUPPORTSMULTILEVELUNDO: tagOLEMISC = 2097152; -pub type tagOLEMISC = ::std::os::raw::c_int; -pub use self::tagOLEMISC as OLEMISC; -pub const tagOLECLOSE_OLECLOSE_SAVEIFDIRTY: tagOLECLOSE = 0; -pub const tagOLECLOSE_OLECLOSE_NOSAVE: tagOLECLOSE = 1; -pub const tagOLECLOSE_OLECLOSE_PROMPTSAVE: tagOLECLOSE = 2; -pub type tagOLECLOSE = ::std::os::raw::c_int; -pub use self::tagOLECLOSE as OLECLOSE; -extern "C" { - pub static IID_IOleObject: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleObjectVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub SetClientSite: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleObject, pClientSite: *mut IOleClientSite) -> HRESULT, - >, - pub GetClientSite: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - ppClientSite: *mut *mut IOleClientSite, - ) -> HRESULT, - >, - pub SetHostNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - szContainerApp: LPCOLESTR, - szContainerObj: LPCOLESTR, - ) -> HRESULT, - >, - pub Close: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleObject, dwSaveOption: DWORD) -> HRESULT, - >, - pub SetMoniker: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - dwWhichMoniker: DWORD, - pmk: *mut IMoniker, - ) -> HRESULT, - >, - pub GetMoniker: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - dwAssign: DWORD, - dwWhichMoniker: DWORD, - ppmk: *mut *mut IMoniker, - ) -> HRESULT, - >, - pub InitFromData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - pDataObject: *mut IDataObject, - fCreation: BOOL, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub GetClipboardData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - dwReserved: DWORD, - ppDataObject: *mut *mut IDataObject, - ) -> HRESULT, - >, - pub DoVerb: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - iVerb: LONG, - lpmsg: LPMSG, - pActiveSite: *mut IOleClientSite, - lindex: LONG, - hwndParent: HWND, - lprcPosRect: LPCRECT, - ) -> HRESULT, - >, - pub EnumVerbs: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - ppEnumOleVerb: *mut *mut IEnumOLEVERB, - ) -> HRESULT, - >, - pub Update: ::std::option::Option HRESULT>, - pub IsUpToDate: ::std::option::Option HRESULT>, - pub GetUserClassID: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleObject, pClsid: *mut CLSID) -> HRESULT, - >, - pub GetUserType: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - dwFormOfType: DWORD, - pszUserType: *mut LPOLESTR, - ) -> HRESULT, - >, - pub SetExtent: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - dwDrawAspect: DWORD, - psizel: *mut SIZEL, - ) -> HRESULT, - >, - pub GetExtent: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - dwDrawAspect: DWORD, - psizel: *mut SIZEL, - ) -> HRESULT, - >, - pub Advise: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - pAdvSink: *mut IAdviseSink, - pdwConnection: *mut DWORD, - ) -> HRESULT, - >, - pub Unadvise: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleObject, dwConnection: DWORD) -> HRESULT, - >, - pub EnumAdvise: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - ppenumAdvise: *mut *mut IEnumSTATDATA, - ) -> HRESULT, - >, - pub GetMiscStatus: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleObject, - dwAspect: DWORD, - pdwStatus: *mut DWORD, - ) -> HRESULT, - >, - pub SetColorScheme: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleObject, pLogpal: *mut LOGPALETTE) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleObject { - pub lpVtbl: *mut IOleObjectVtbl, -} -pub const tagOLERENDER_OLERENDER_NONE: tagOLERENDER = 0; -pub const tagOLERENDER_OLERENDER_DRAW: tagOLERENDER = 1; -pub const tagOLERENDER_OLERENDER_FORMAT: tagOLERENDER = 2; -pub const tagOLERENDER_OLERENDER_ASIS: tagOLERENDER = 3; -pub type tagOLERENDER = ::std::os::raw::c_int; -pub use self::tagOLERENDER as OLERENDER; -pub type LPOLERENDER = *mut OLERENDER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagOBJECTDESCRIPTOR { - pub cbSize: ULONG, - pub clsid: CLSID, - pub dwDrawAspect: DWORD, - pub sizel: SIZEL, - pub pointl: POINTL, - pub dwStatus: DWORD, - pub dwFullUserTypeName: DWORD, - pub dwSrcOfCopy: DWORD, -} -pub type OBJECTDESCRIPTOR = tagOBJECTDESCRIPTOR; -pub type POBJECTDESCRIPTOR = *mut tagOBJECTDESCRIPTOR; -pub type LPOBJECTDESCRIPTOR = *mut tagOBJECTDESCRIPTOR; -pub type LINKSRCDESCRIPTOR = tagOBJECTDESCRIPTOR; -pub type PLINKSRCDESCRIPTOR = *mut tagOBJECTDESCRIPTOR; -pub type LPLINKSRCDESCRIPTOR = *mut tagOBJECTDESCRIPTOR; -extern "C" { - pub static mut IOLETypes_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut IOLETypes_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPOLEWINDOW = *mut IOleWindow; -extern "C" { - pub static IID_IOleWindow: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleWindowVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleWindow, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetWindow: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleWindow, phwnd: *mut HWND) -> HRESULT, - >, - pub ContextSensitiveHelp: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleWindow, fEnterMode: BOOL) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleWindow { - pub lpVtbl: *mut IOleWindowVtbl, -} -pub type LPOLELINK = *mut IOleLink; -pub const tagOLEUPDATE_OLEUPDATE_ALWAYS: tagOLEUPDATE = 1; -pub const tagOLEUPDATE_OLEUPDATE_ONCALL: tagOLEUPDATE = 3; -pub type tagOLEUPDATE = ::std::os::raw::c_int; -pub use self::tagOLEUPDATE as OLEUPDATE; -pub type LPOLEUPDATE = *mut OLEUPDATE; -pub type POLEUPDATE = *mut OLEUPDATE; -pub const tagOLELINKBIND_OLELINKBIND_EVENIFCLASSDIFF: tagOLELINKBIND = 1; -pub type tagOLELINKBIND = ::std::os::raw::c_int; -pub use self::tagOLELINKBIND as OLELINKBIND; -extern "C" { - pub static IID_IOleLink: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleLinkVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleLink, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub SetUpdateOptions: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleLink, dwUpdateOpt: DWORD) -> HRESULT, - >, - pub GetUpdateOptions: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleLink, pdwUpdateOpt: *mut DWORD) -> HRESULT, - >, - pub SetSourceMoniker: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleLink, - pmk: *mut IMoniker, - rclsid: *const IID, - ) -> HRESULT, - >, - pub GetSourceMoniker: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleLink, ppmk: *mut *mut IMoniker) -> HRESULT, - >, - pub SetSourceDisplayName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleLink, pszStatusText: LPCOLESTR) -> HRESULT, - >, - pub GetSourceDisplayName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleLink, ppszDisplayName: *mut LPOLESTR) -> HRESULT, - >, - pub BindToSource: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleLink, bindflags: DWORD, pbc: *mut IBindCtx) -> HRESULT, - >, - pub BindIfRunning: ::std::option::Option HRESULT>, - pub GetBoundSource: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleLink, ppunk: *mut *mut IUnknown) -> HRESULT, - >, - pub UnbindSource: ::std::option::Option HRESULT>, - pub Update: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleLink, pbc: *mut IBindCtx) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleLink { - pub lpVtbl: *mut IOleLinkVtbl, -} -pub type LPOLEITEMCONTAINER = *mut IOleItemContainer; -pub const tagBINDSPEED_BINDSPEED_INDEFINITE: tagBINDSPEED = 1; -pub const tagBINDSPEED_BINDSPEED_MODERATE: tagBINDSPEED = 2; -pub const tagBINDSPEED_BINDSPEED_IMMEDIATE: tagBINDSPEED = 3; -pub type tagBINDSPEED = ::std::os::raw::c_int; -pub use self::tagBINDSPEED as BINDSPEED; -pub const tagOLECONTF_OLECONTF_EMBEDDINGS: tagOLECONTF = 1; -pub const tagOLECONTF_OLECONTF_LINKS: tagOLECONTF = 2; -pub const tagOLECONTF_OLECONTF_OTHERS: tagOLECONTF = 4; -pub const tagOLECONTF_OLECONTF_ONLYUSER: tagOLECONTF = 8; -pub const tagOLECONTF_OLECONTF_ONLYIFRUNNING: tagOLECONTF = 16; -pub type tagOLECONTF = ::std::os::raw::c_int; -pub use self::tagOLECONTF as OLECONTF; -extern "C" { - pub static IID_IOleItemContainer: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleItemContainerVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleItemContainer, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub ParseDisplayName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleItemContainer, - pbc: *mut IBindCtx, - pszDisplayName: LPOLESTR, - pchEaten: *mut ULONG, - ppmkOut: *mut *mut IMoniker, - ) -> HRESULT, - >, - pub EnumObjects: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleItemContainer, - grfFlags: DWORD, - ppenum: *mut *mut IEnumUnknown, - ) -> HRESULT, - >, - pub LockContainer: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleItemContainer, fLock: BOOL) -> HRESULT, - >, - pub GetObjectA: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleItemContainer, - pszItem: LPOLESTR, - dwSpeedNeeded: DWORD, - pbc: *mut IBindCtx, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub GetObjectStorage: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleItemContainer, - pszItem: LPOLESTR, - pbc: *mut IBindCtx, - riid: *const IID, - ppvStorage: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub IsRunning: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleItemContainer, pszItem: LPOLESTR) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleItemContainer { - pub lpVtbl: *mut IOleItemContainerVtbl, -} -pub type LPOLEINPLACEUIWINDOW = *mut IOleInPlaceUIWindow; -pub type BORDERWIDTHS = RECT; -pub type LPBORDERWIDTHS = LPRECT; -pub type LPCBORDERWIDTHS = LPCRECT; -extern "C" { - pub static IID_IOleInPlaceUIWindow: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleInPlaceUIWindowVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceUIWindow, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetWindow: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceUIWindow, phwnd: *mut HWND) -> HRESULT, - >, - pub ContextSensitiveHelp: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceUIWindow, fEnterMode: BOOL) -> HRESULT, - >, - pub GetBorder: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceUIWindow, lprectBorder: LPRECT) -> HRESULT, - >, - pub RequestBorderSpace: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceUIWindow, - pborderwidths: LPCBORDERWIDTHS, - ) -> HRESULT, - >, - pub SetBorderSpace: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceUIWindow, - pborderwidths: LPCBORDERWIDTHS, - ) -> HRESULT, - >, - pub SetActiveObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceUIWindow, - pActiveObject: *mut IOleInPlaceActiveObject, - pszObjName: LPCOLESTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleInPlaceUIWindow { - pub lpVtbl: *mut IOleInPlaceUIWindowVtbl, -} -pub type LPOLEINPLACEACTIVEOBJECT = *mut IOleInPlaceActiveObject; -extern "C" { - pub static IID_IOleInPlaceActiveObject: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleInPlaceActiveObjectVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceActiveObject, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetWindow: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceActiveObject, phwnd: *mut HWND) -> HRESULT, - >, - pub ContextSensitiveHelp: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceActiveObject, fEnterMode: BOOL) -> HRESULT, - >, - pub TranslateAcceleratorA: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceActiveObject, lpmsg: LPMSG) -> HRESULT, - >, - pub OnFrameWindowActivate: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceActiveObject, fActivate: BOOL) -> HRESULT, - >, - pub OnDocWindowActivate: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceActiveObject, fActivate: BOOL) -> HRESULT, - >, - pub ResizeBorder: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceActiveObject, - prcBorder: LPCRECT, - pUIWindow: *mut IOleInPlaceUIWindow, - fFrameWindow: BOOL, - ) -> HRESULT, - >, - pub EnableModeless: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceActiveObject, fEnable: BOOL) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleInPlaceActiveObject { - pub lpVtbl: *mut IOleInPlaceActiveObjectVtbl, -} -extern "C" { - pub fn IOleInPlaceActiveObject_RemoteTranslateAccelerator_Proxy( - This: *mut IOleInPlaceActiveObject, - ) -> HRESULT; -} -extern "C" { - pub fn IOleInPlaceActiveObject_RemoteTranslateAccelerator_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IOleInPlaceActiveObject_RemoteResizeBorder_Proxy( - This: *mut IOleInPlaceActiveObject, - prcBorder: LPCRECT, - riid: *const IID, - pUIWindow: *mut IOleInPlaceUIWindow, - fFrameWindow: BOOL, - ) -> HRESULT; -} -extern "C" { - pub fn IOleInPlaceActiveObject_RemoteResizeBorder_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPOLEINPLACEFRAME = *mut IOleInPlaceFrame; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagOIFI { - pub cb: UINT, - pub fMDIApp: BOOL, - pub hwndFrame: HWND, - pub haccel: HACCEL, - pub cAccelEntries: UINT, -} -pub type OLEINPLACEFRAMEINFO = tagOIFI; -pub type LPOLEINPLACEFRAMEINFO = *mut tagOIFI; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagOleMenuGroupWidths { - pub width: [LONG; 6usize], -} -pub type OLEMENUGROUPWIDTHS = tagOleMenuGroupWidths; -pub type LPOLEMENUGROUPWIDTHS = *mut tagOleMenuGroupWidths; -pub type HOLEMENU = HGLOBAL; -extern "C" { - pub static IID_IOleInPlaceFrame: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleInPlaceFrameVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceFrame, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetWindow: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceFrame, phwnd: *mut HWND) -> HRESULT, - >, - pub ContextSensitiveHelp: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceFrame, fEnterMode: BOOL) -> HRESULT, - >, - pub GetBorder: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceFrame, lprectBorder: LPRECT) -> HRESULT, - >, - pub RequestBorderSpace: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceFrame, - pborderwidths: LPCBORDERWIDTHS, - ) -> HRESULT, - >, - pub SetBorderSpace: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceFrame, - pborderwidths: LPCBORDERWIDTHS, - ) -> HRESULT, - >, - pub SetActiveObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceFrame, - pActiveObject: *mut IOleInPlaceActiveObject, - pszObjName: LPCOLESTR, - ) -> HRESULT, - >, - pub InsertMenus: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceFrame, - hmenuShared: HMENU, - lpMenuWidths: LPOLEMENUGROUPWIDTHS, - ) -> HRESULT, - >, - pub SetMenu: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceFrame, - hmenuShared: HMENU, - holemenu: HOLEMENU, - hwndActiveObject: HWND, - ) -> HRESULT, - >, - pub RemoveMenus: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceFrame, hmenuShared: HMENU) -> HRESULT, - >, - pub SetStatusText: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceFrame, pszStatusText: LPCOLESTR) -> HRESULT, - >, - pub EnableModeless: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceFrame, fEnable: BOOL) -> HRESULT, - >, - pub TranslateAcceleratorA: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceFrame, lpmsg: LPMSG, wID: WORD) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleInPlaceFrame { - pub lpVtbl: *mut IOleInPlaceFrameVtbl, -} -pub type LPOLEINPLACEOBJECT = *mut IOleInPlaceObject; -extern "C" { - pub static IID_IOleInPlaceObject: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleInPlaceObjectVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceObject, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetWindow: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceObject, phwnd: *mut HWND) -> HRESULT, - >, - pub ContextSensitiveHelp: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceObject, fEnterMode: BOOL) -> HRESULT, - >, - pub InPlaceDeactivate: - ::std::option::Option HRESULT>, - pub UIDeactivate: - ::std::option::Option HRESULT>, - pub SetObjectRects: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceObject, - lprcPosRect: LPCRECT, - lprcClipRect: LPCRECT, - ) -> HRESULT, - >, - pub ReactivateAndUndo: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleInPlaceObject { - pub lpVtbl: *mut IOleInPlaceObjectVtbl, -} -pub type LPOLEINPLACESITE = *mut IOleInPlaceSite; -extern "C" { - pub static IID_IOleInPlaceSite: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleInPlaceSiteVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceSite, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetWindow: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceSite, phwnd: *mut HWND) -> HRESULT, - >, - pub ContextSensitiveHelp: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceSite, fEnterMode: BOOL) -> HRESULT, - >, - pub CanInPlaceActivate: - ::std::option::Option HRESULT>, - pub OnInPlaceActivate: - ::std::option::Option HRESULT>, - pub OnUIActivate: - ::std::option::Option HRESULT>, - pub GetWindowContext: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IOleInPlaceSite, - ppFrame: *mut *mut IOleInPlaceFrame, - ppDoc: *mut *mut IOleInPlaceUIWindow, - lprcPosRect: LPRECT, - lprcClipRect: LPRECT, - lpFrameInfo: LPOLEINPLACEFRAMEINFO, - ) -> HRESULT, - >, - pub Scroll: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceSite, scrollExtant: SIZE) -> HRESULT, - >, - pub OnUIDeactivate: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceSite, fUndoable: BOOL) -> HRESULT, - >, - pub OnInPlaceDeactivate: - ::std::option::Option HRESULT>, - pub DiscardUndoState: - ::std::option::Option HRESULT>, - pub DeactivateAndUndo: - ::std::option::Option HRESULT>, - pub OnPosRectChange: ::std::option::Option< - unsafe extern "C" fn(This: *mut IOleInPlaceSite, lprcPosRect: LPCRECT) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IOleInPlaceSite { - pub lpVtbl: *mut IOleInPlaceSiteVtbl, -} -extern "C" { - pub static IID_IContinue: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IContinueVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IContinue, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub FContinue: ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IContinue { - pub lpVtbl: *mut IContinueVtbl, -} -pub type LPVIEWOBJECT = *mut IViewObject; -extern "C" { - pub static IID_IViewObject: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IViewObjectVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IViewObject, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Draw: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IViewObject, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: *mut ::std::os::raw::c_void, - ptd: *mut DVTARGETDEVICE, - hdcTargetDev: HDC, - hdcDraw: HDC, - lprcBounds: LPCRECTL, - lprcWBounds: LPCRECTL, - pfnContinue: ::std::option::Option BOOL>, - dwContinue: ULONG_PTR, - ) -> HRESULT, - >, - pub GetColorSet: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IViewObject, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: *mut ::std::os::raw::c_void, - ptd: *mut DVTARGETDEVICE, - hicTargetDev: HDC, - ppColorSet: *mut *mut LOGPALETTE, - ) -> HRESULT, - >, - pub Freeze: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IViewObject, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: *mut ::std::os::raw::c_void, - pdwFreeze: *mut DWORD, - ) -> HRESULT, - >, - pub Unfreeze: ::std::option::Option< - unsafe extern "C" fn(This: *mut IViewObject, dwFreeze: DWORD) -> HRESULT, - >, - pub SetAdvise: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IViewObject, - aspects: DWORD, - advf: DWORD, - pAdvSink: *mut IAdviseSink, - ) -> HRESULT, - >, - pub GetAdvise: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IViewObject, - pAspects: *mut DWORD, - pAdvf: *mut DWORD, - ppAdvSink: *mut *mut IAdviseSink, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IViewObject { - pub lpVtbl: *mut IViewObjectVtbl, -} -extern "C" { - pub fn IViewObject_RemoteDraw_Proxy( - This: *mut IViewObject, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: ULONG_PTR, - ptd: *mut DVTARGETDEVICE, - hdcTargetDev: HDC, - hdcDraw: HDC, - lprcBounds: LPCRECTL, - lprcWBounds: LPCRECTL, - pContinue: *mut IContinue, - ) -> HRESULT; -} -extern "C" { - pub fn IViewObject_RemoteDraw_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IViewObject_RemoteGetColorSet_Proxy( - This: *mut IViewObject, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: ULONG_PTR, - ptd: *mut DVTARGETDEVICE, - hicTargetDev: ULONG_PTR, - ppColorSet: *mut *mut LOGPALETTE, - ) -> HRESULT; -} -extern "C" { - pub fn IViewObject_RemoteGetColorSet_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IViewObject_RemoteFreeze_Proxy( - This: *mut IViewObject, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: ULONG_PTR, - pdwFreeze: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IViewObject_RemoteFreeze_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IViewObject_RemoteGetAdvise_Proxy( - This: *mut IViewObject, - pAspects: *mut DWORD, - pAdvf: *mut DWORD, - ppAdvSink: *mut *mut IAdviseSink, - ) -> HRESULT; -} -extern "C" { - pub fn IViewObject_RemoteGetAdvise_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -pub type LPVIEWOBJECT2 = *mut IViewObject2; -extern "C" { - pub static IID_IViewObject2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IViewObject2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IViewObject2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Draw: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IViewObject2, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: *mut ::std::os::raw::c_void, - ptd: *mut DVTARGETDEVICE, - hdcTargetDev: HDC, - hdcDraw: HDC, - lprcBounds: LPCRECTL, - lprcWBounds: LPCRECTL, - pfnContinue: ::std::option::Option BOOL>, - dwContinue: ULONG_PTR, - ) -> HRESULT, - >, - pub GetColorSet: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IViewObject2, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: *mut ::std::os::raw::c_void, - ptd: *mut DVTARGETDEVICE, - hicTargetDev: HDC, - ppColorSet: *mut *mut LOGPALETTE, - ) -> HRESULT, - >, - pub Freeze: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IViewObject2, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: *mut ::std::os::raw::c_void, - pdwFreeze: *mut DWORD, - ) -> HRESULT, - >, - pub Unfreeze: ::std::option::Option< - unsafe extern "C" fn(This: *mut IViewObject2, dwFreeze: DWORD) -> HRESULT, - >, - pub SetAdvise: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IViewObject2, - aspects: DWORD, - advf: DWORD, - pAdvSink: *mut IAdviseSink, - ) -> HRESULT, - >, - pub GetAdvise: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IViewObject2, - pAspects: *mut DWORD, - pAdvf: *mut DWORD, - ppAdvSink: *mut *mut IAdviseSink, - ) -> HRESULT, - >, - pub GetExtent: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IViewObject2, - dwDrawAspect: DWORD, - lindex: LONG, - ptd: *mut DVTARGETDEVICE, - lpsizel: LPSIZEL, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IViewObject2 { - pub lpVtbl: *mut IViewObject2Vtbl, -} -pub type LPDROPSOURCE = *mut IDropSource; -extern "C" { - pub static IID_IDropSource: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDropSourceVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDropSource, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub QueryContinueDrag: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDropSource, - fEscapePressed: BOOL, - grfKeyState: DWORD, - ) -> HRESULT, - >, - pub GiveFeedback: ::std::option::Option< - unsafe extern "C" fn(This: *mut IDropSource, dwEffect: DWORD) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDropSource { - pub lpVtbl: *mut IDropSourceVtbl, -} -pub type LPDROPTARGET = *mut IDropTarget; -extern "C" { - pub static IID_IDropTarget: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDropTargetVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDropTarget, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub DragEnter: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDropTarget, - pDataObj: *mut IDataObject, - grfKeyState: DWORD, - pt: POINTL, - pdwEffect: *mut DWORD, - ) -> HRESULT, - >, - pub DragOver: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDropTarget, - grfKeyState: DWORD, - pt: POINTL, - pdwEffect: *mut DWORD, - ) -> HRESULT, - >, - pub DragLeave: ::std::option::Option HRESULT>, - pub Drop: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDropTarget, - pDataObj: *mut IDataObject, - grfKeyState: DWORD, - pt: POINTL, - pdwEffect: *mut DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDropTarget { - pub lpVtbl: *mut IDropTargetVtbl, -} -extern "C" { - pub static IID_IDropSourceNotify: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDropSourceNotifyVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDropSourceNotify, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub DragEnterTarget: ::std::option::Option< - unsafe extern "C" fn(This: *mut IDropSourceNotify, hwndTarget: HWND) -> HRESULT, - >, - pub DragLeaveTarget: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDropSourceNotify { - pub lpVtbl: *mut IDropSourceNotifyVtbl, -} -extern "C" { - pub static IID_IEnterpriseDropTarget: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnterpriseDropTargetVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnterpriseDropTarget, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub SetDropSourceEnterpriseId: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnterpriseDropTarget, identity: LPCWSTR) -> HRESULT, - >, - pub IsEvaluatingEdpPolicy: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnterpriseDropTarget, value: *mut BOOL) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnterpriseDropTarget { - pub lpVtbl: *mut IEnterpriseDropTargetVtbl, -} -extern "C" { - pub static mut __MIDL_itf_oleidl_0000_0024_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_oleidl_0000_0024_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPENUMOLEVERB = *mut IEnumOLEVERB; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagOLEVERB { - pub lVerb: LONG, - pub lpszVerbName: LPOLESTR, - pub fuFlags: DWORD, - pub grfAttribs: DWORD, -} -pub type OLEVERB = tagOLEVERB; -pub type LPOLEVERB = *mut tagOLEVERB; -pub const tagOLEVERBATTRIB_OLEVERBATTRIB_NEVERDIRTIES: tagOLEVERBATTRIB = 1; -pub const tagOLEVERBATTRIB_OLEVERBATTRIB_ONCONTAINERMENU: tagOLEVERBATTRIB = 2; -pub type tagOLEVERBATTRIB = ::std::os::raw::c_int; -pub use self::tagOLEVERBATTRIB as OLEVERBATTRIB; -extern "C" { - pub static IID_IEnumOLEVERB: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumOLEVERBVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumOLEVERB, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Next: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEnumOLEVERB, - celt: ULONG, - rgelt: LPOLEVERB, - pceltFetched: *mut ULONG, - ) -> HRESULT, - >, - pub Skip: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumOLEVERB, celt: ULONG) -> HRESULT, - >, - pub Reset: ::std::option::Option HRESULT>, - pub Clone: ::std::option::Option< - unsafe extern "C" fn(This: *mut IEnumOLEVERB, ppenum: *mut *mut IEnumOLEVERB) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEnumOLEVERB { - pub lpVtbl: *mut IEnumOLEVERBVtbl, -} -extern "C" { - pub fn IEnumOLEVERB_RemoteNext_Proxy( - This: *mut IEnumOLEVERB, - celt: ULONG, - rgelt: LPOLEVERB, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumOLEVERB_RemoteNext_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_oleidl_0000_0025_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_oleidl_0000_0025_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub fn HACCEL_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut HACCEL, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn HACCEL_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HACCEL, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HACCEL_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HACCEL, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HACCEL_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HACCEL); -} -extern "C" { - pub fn HGLOBAL_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut HGLOBAL, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn HGLOBAL_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HGLOBAL, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HGLOBAL_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HGLOBAL, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HGLOBAL_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HGLOBAL); -} -extern "C" { - pub fn HMENU_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut HMENU, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn HMENU_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HMENU, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HMENU_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HMENU, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HMENU_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HMENU); -} -extern "C" { - pub fn HWND_UserSize( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut HWND, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn HWND_UserMarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HWND, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HWND_UserUnmarshal( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HWND, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HWND_UserFree(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HWND); -} -extern "C" { - pub fn HACCEL_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut HACCEL, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn HACCEL_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HACCEL, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HACCEL_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HACCEL, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HACCEL_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HACCEL); -} -extern "C" { - pub fn HGLOBAL_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut HGLOBAL, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn HGLOBAL_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HGLOBAL, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HGLOBAL_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HGLOBAL, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HGLOBAL_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HGLOBAL); -} -extern "C" { - pub fn HMENU_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut HMENU, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn HMENU_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HMENU, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HMENU_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HMENU, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HMENU_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HMENU); -} -extern "C" { - pub fn HWND_UserSize64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: ::std::os::raw::c_ulong, - arg3: *mut HWND, - ) -> ::std::os::raw::c_ulong; -} -extern "C" { - pub fn HWND_UserMarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HWND, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HWND_UserUnmarshal64( - arg1: *mut ::std::os::raw::c_ulong, - arg2: *mut ::std::os::raw::c_uchar, - arg3: *mut HWND, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn HWND_UserFree64(arg1: *mut ::std::os::raw::c_ulong, arg2: *mut HWND); -} -extern "C" { - pub fn IOleCache2_UpdateCache_Proxy( - This: *mut IOleCache2, - pDataObject: LPDATAOBJECT, - grfUpdf: DWORD, - pReserved: LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn IOleCache2_UpdateCache_Stub( - This: *mut IOleCache2, - pDataObject: LPDATAOBJECT, - grfUpdf: DWORD, - pReserved: LONG_PTR, - ) -> HRESULT; -} -extern "C" { - pub fn IOleInPlaceActiveObject_TranslateAccelerator_Proxy( - This: *mut IOleInPlaceActiveObject, - lpmsg: LPMSG, - ) -> HRESULT; -} -extern "C" { - pub fn IOleInPlaceActiveObject_TranslateAccelerator_Stub( - This: *mut IOleInPlaceActiveObject, - ) -> HRESULT; -} -extern "C" { - pub fn IOleInPlaceActiveObject_ResizeBorder_Proxy( - This: *mut IOleInPlaceActiveObject, - prcBorder: LPCRECT, - pUIWindow: *mut IOleInPlaceUIWindow, - fFrameWindow: BOOL, - ) -> HRESULT; -} -extern "C" { - pub fn IOleInPlaceActiveObject_ResizeBorder_Stub( - This: *mut IOleInPlaceActiveObject, - prcBorder: LPCRECT, - riid: *const IID, - pUIWindow: *mut IOleInPlaceUIWindow, - fFrameWindow: BOOL, - ) -> HRESULT; -} -extern "C" { - pub fn IViewObject_Draw_Proxy( - This: *mut IViewObject, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: *mut ::std::os::raw::c_void, - ptd: *mut DVTARGETDEVICE, - hdcTargetDev: HDC, - hdcDraw: HDC, - lprcBounds: LPCRECTL, - lprcWBounds: LPCRECTL, - pfnContinue: ::std::option::Option BOOL>, - dwContinue: ULONG_PTR, - ) -> HRESULT; -} -extern "C" { - pub fn IViewObject_Draw_Stub( - This: *mut IViewObject, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: ULONG_PTR, - ptd: *mut DVTARGETDEVICE, - hdcTargetDev: HDC, - hdcDraw: HDC, - lprcBounds: LPCRECTL, - lprcWBounds: LPCRECTL, - pContinue: *mut IContinue, - ) -> HRESULT; -} -extern "C" { - pub fn IViewObject_GetColorSet_Proxy( - This: *mut IViewObject, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: *mut ::std::os::raw::c_void, - ptd: *mut DVTARGETDEVICE, - hicTargetDev: HDC, - ppColorSet: *mut *mut LOGPALETTE, - ) -> HRESULT; -} -extern "C" { - pub fn IViewObject_GetColorSet_Stub( - This: *mut IViewObject, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: ULONG_PTR, - ptd: *mut DVTARGETDEVICE, - hicTargetDev: ULONG_PTR, - ppColorSet: *mut *mut LOGPALETTE, - ) -> HRESULT; -} -extern "C" { - pub fn IViewObject_Freeze_Proxy( - This: *mut IViewObject, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: *mut ::std::os::raw::c_void, - pdwFreeze: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IViewObject_Freeze_Stub( - This: *mut IViewObject, - dwDrawAspect: DWORD, - lindex: LONG, - pvAspect: ULONG_PTR, - pdwFreeze: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IViewObject_GetAdvise_Proxy( - This: *mut IViewObject, - pAspects: *mut DWORD, - pAdvf: *mut DWORD, - ppAdvSink: *mut *mut IAdviseSink, - ) -> HRESULT; -} -extern "C" { - pub fn IViewObject_GetAdvise_Stub( - This: *mut IViewObject, - pAspects: *mut DWORD, - pAdvf: *mut DWORD, - ppAdvSink: *mut *mut IAdviseSink, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumOLEVERB_Next_Proxy( - This: *mut IEnumOLEVERB, - celt: ULONG, - rgelt: LPOLEVERB, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn IEnumOLEVERB_Next_Stub( - This: *mut IEnumOLEVERB, - celt: ULONG, - rgelt: LPOLEVERB, - pceltFetched: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub static mut __MIDL_itf_servprov_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_servprov_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPSERVICEPROVIDER = *mut IServiceProvider; -extern "C" { - pub static IID_IServiceProvider: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IServiceProviderVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IServiceProvider, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub QueryService: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IServiceProvider, - guidService: *const GUID, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IServiceProvider { - pub lpVtbl: *mut IServiceProviderVtbl, -} -extern "C" { - pub fn IServiceProvider_RemoteQueryService_Proxy( - This: *mut IServiceProvider, - guidService: *const GUID, - riid: *const IID, - ppvObject: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn IServiceProvider_RemoteQueryService_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_servprov_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_servprov_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub fn IServiceProvider_QueryService_Proxy( - This: *mut IServiceProvider, - guidService: *const GUID, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn IServiceProvider_QueryService_Stub( - This: *mut IServiceProvider, - guidService: *const GUID, - riid: *const IID, - ppvObject: *mut *mut IUnknown, - ) -> HRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DOMDocument { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DOMFreeThreadedDocument { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct XMLHTTPRequest { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct XMLDSOControl { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct XMLDocument { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _xml_error { - pub _nLine: ::std::os::raw::c_uint, - pub _pchBuf: BSTR, - pub _cchBuf: ::std::os::raw::c_uint, - pub _ich: ::std::os::raw::c_uint, - pub _pszFound: BSTR, - pub _pszExpected: BSTR, - pub _reserved1: DWORD, - pub _reserved2: DWORD, -} -pub type XML_ERROR = _xml_error; -extern "C" { - pub static mut __MIDL_itf_msxml_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_msxml_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub const tagDOMNodeType_NODE_INVALID: tagDOMNodeType = 0; -pub const tagDOMNodeType_NODE_ELEMENT: tagDOMNodeType = 1; -pub const tagDOMNodeType_NODE_ATTRIBUTE: tagDOMNodeType = 2; -pub const tagDOMNodeType_NODE_TEXT: tagDOMNodeType = 3; -pub const tagDOMNodeType_NODE_CDATA_SECTION: tagDOMNodeType = 4; -pub const tagDOMNodeType_NODE_ENTITY_REFERENCE: tagDOMNodeType = 5; -pub const tagDOMNodeType_NODE_ENTITY: tagDOMNodeType = 6; -pub const tagDOMNodeType_NODE_PROCESSING_INSTRUCTION: tagDOMNodeType = 7; -pub const tagDOMNodeType_NODE_COMMENT: tagDOMNodeType = 8; -pub const tagDOMNodeType_NODE_DOCUMENT: tagDOMNodeType = 9; -pub const tagDOMNodeType_NODE_DOCUMENT_TYPE: tagDOMNodeType = 10; -pub const tagDOMNodeType_NODE_DOCUMENT_FRAGMENT: tagDOMNodeType = 11; -pub const tagDOMNodeType_NODE_NOTATION: tagDOMNodeType = 12; -pub type tagDOMNodeType = ::std::os::raw::c_int; -pub use self::tagDOMNodeType as DOMNodeType; -pub const tagXMLEMEM_TYPE_XMLELEMTYPE_ELEMENT: tagXMLEMEM_TYPE = 0; -pub const tagXMLEMEM_TYPE_XMLELEMTYPE_TEXT: tagXMLEMEM_TYPE = 1; -pub const tagXMLEMEM_TYPE_XMLELEMTYPE_COMMENT: tagXMLEMEM_TYPE = 2; -pub const tagXMLEMEM_TYPE_XMLELEMTYPE_DOCUMENT: tagXMLEMEM_TYPE = 3; -pub const tagXMLEMEM_TYPE_XMLELEMTYPE_DTD: tagXMLEMEM_TYPE = 4; -pub const tagXMLEMEM_TYPE_XMLELEMTYPE_PI: tagXMLEMEM_TYPE = 5; -pub const tagXMLEMEM_TYPE_XMLELEMTYPE_OTHER: tagXMLEMEM_TYPE = 6; -pub type tagXMLEMEM_TYPE = ::std::os::raw::c_int; -pub use self::tagXMLEMEM_TYPE as XMLELEM_TYPE; -extern "C" { - pub static LIBID_MSXML: IID; -} -extern "C" { - pub static IID_IXMLDOMImplementation: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMImplementationVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMImplementation, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMImplementation, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMImplementation, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMImplementation, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMImplementation, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub hasFeature: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMImplementation, - feature: BSTR, - version: BSTR, - hasFeature: *mut VARIANT_BOOL, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMImplementation { - pub lpVtbl: *mut IXMLDOMImplementationVtbl, -} -extern "C" { - pub static IID_IXMLDOMNode: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMNodeVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, value: *mut VARIANT) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, type_: *mut DOMNodeType) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, parent: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, firstChild: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, lastChild: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, nextSibling: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, hasChild: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, nodeType: *mut BSTR) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, text: *mut BSTR) -> HRESULT, - >, - pub put_text: - ::std::option::Option HRESULT>, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, isSpecified: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, typedValue: *mut VARIANT) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, typedValue: VARIANT) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, dataTypeName: *mut VARIANT) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, dataTypeName: BSTR) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, xmlString: *mut BSTR) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, isParsed: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, namespaceURI: *mut BSTR) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, prefixString: *mut BSTR) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNode, nameString: *mut BSTR) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNode, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMNode { - pub lpVtbl: *mut IXMLDOMNodeVtbl, -} -extern "C" { - pub static IID_IXMLDOMDocumentFragment: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMDocumentFragmentVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, value: *mut VARIANT) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - type_: *mut DOMNodeType, - ) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - parent: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - firstChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - lastChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - nextSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - hasChild: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, nodeType: *mut BSTR) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, text: *mut BSTR) -> HRESULT, - >, - pub put_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, text: BSTR) -> HRESULT, - >, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - isSpecified: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - typedValue: *mut VARIANT, - ) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, typedValue: VARIANT) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - dataTypeName: *mut VARIANT, - ) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, dataTypeName: BSTR) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, xmlString: *mut BSTR) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - isParsed: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - namespaceURI: *mut BSTR, - ) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - prefixString: *mut BSTR, - ) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentFragment, nameString: *mut BSTR) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentFragment, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMDocumentFragment { - pub lpVtbl: *mut IXMLDOMDocumentFragmentVtbl, -} -extern "C" { - pub static IID_IXMLDOMDocument: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMDocumentVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, value: *mut VARIANT) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, type_: *mut DOMNodeType) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, parent: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - firstChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - lastChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - nextSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, hasChild: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, nodeType: *mut BSTR) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, text: *mut BSTR) -> HRESULT, - >, - pub put_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, text: BSTR) -> HRESULT, - >, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, isSpecified: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, typedValue: *mut VARIANT) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, typedValue: VARIANT) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, dataTypeName: *mut VARIANT) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, dataTypeName: BSTR) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, xmlString: *mut BSTR) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, isParsed: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, namespaceURI: *mut BSTR) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, prefixString: *mut BSTR) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, nameString: *mut BSTR) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, - pub get_doctype: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - documentType: *mut *mut IXMLDOMDocumentType, - ) -> HRESULT, - >, - pub get_implementation: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - impl_: *mut *mut IXMLDOMImplementation, - ) -> HRESULT, - >, - pub get_documentElement: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - DOMElement: *mut *mut IXMLDOMElement, - ) -> HRESULT, - >, - pub putref_documentElement: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - DOMElement: *mut IXMLDOMElement, - ) -> HRESULT, - >, - pub createElement: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - tagName: BSTR, - element: *mut *mut IXMLDOMElement, - ) -> HRESULT, - >, - pub createDocumentFragment: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - docFrag: *mut *mut IXMLDOMDocumentFragment, - ) -> HRESULT, - >, - pub createTextNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - data: BSTR, - text: *mut *mut IXMLDOMText, - ) -> HRESULT, - >, - pub createComment: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - data: BSTR, - comment: *mut *mut IXMLDOMComment, - ) -> HRESULT, - >, - pub createCDATASection: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - data: BSTR, - cdata: *mut *mut IXMLDOMCDATASection, - ) -> HRESULT, - >, - pub createProcessingInstruction: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - target: BSTR, - data: BSTR, - pi: *mut *mut IXMLDOMProcessingInstruction, - ) -> HRESULT, - >, - pub createAttribute: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - name: BSTR, - attribute: *mut *mut IXMLDOMAttribute, - ) -> HRESULT, - >, - pub createEntityReference: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - name: BSTR, - entityRef: *mut *mut IXMLDOMEntityReference, - ) -> HRESULT, - >, - pub getElementsByTagName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - tagName: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub createNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - Type: VARIANT, - name: BSTR, - namespaceURI: BSTR, - node: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub nodeFromID: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - idString: BSTR, - node: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub load: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - xmlSource: VARIANT, - isSuccessful: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_readyState: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - value: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub get_parseError: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - errorObj: *mut *mut IXMLDOMParseError, - ) -> HRESULT, - >, - pub get_url: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, urlString: *mut BSTR) -> HRESULT, - >, - pub get_async: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, isAsync: *mut VARIANT_BOOL) -> HRESULT, - >, - pub put_async: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, isAsync: VARIANT_BOOL) -> HRESULT, - >, - pub abort: ::std::option::Option HRESULT>, - pub loadXML: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - bstrXML: BSTR, - isSuccessful: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub save: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, destination: VARIANT) -> HRESULT, - >, - pub get_validateOnParse: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - isValidating: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub put_validateOnParse: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, isValidating: VARIANT_BOOL) -> HRESULT, - >, - pub get_resolveExternals: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, isResolving: *mut VARIANT_BOOL) -> HRESULT, - >, - pub put_resolveExternals: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, isResolving: VARIANT_BOOL) -> HRESULT, - >, - pub get_preserveWhiteSpace: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocument, - isPreserving: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub put_preserveWhiteSpace: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, isPreserving: VARIANT_BOOL) -> HRESULT, - >, - pub put_onreadystatechange: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, readystatechangeSink: VARIANT) -> HRESULT, - >, - pub put_ondataavailable: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, ondataavailableSink: VARIANT) -> HRESULT, - >, - pub put_ontransformnode: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocument, ontransformnodeSink: VARIANT) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMDocument { - pub lpVtbl: *mut IXMLDOMDocumentVtbl, -} -extern "C" { - pub static IID_IXMLDOMNodeList: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMNodeListVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNodeList, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNodeList, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNodeList, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNodeList, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNodeList, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_item: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNodeList, - index: ::std::os::raw::c_long, - listItem: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_length: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNodeList, - listLength: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub nextNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNodeList, - nextItem: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub reset: ::std::option::Option HRESULT>, - pub get__newEnum: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNodeList, ppUnk: *mut *mut IUnknown) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMNodeList { - pub lpVtbl: *mut IXMLDOMNodeListVtbl, -} -extern "C" { - pub static IID_IXMLDOMNamedNodeMap: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMNamedNodeMapVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNamedNodeMap, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNamedNodeMap, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNamedNodeMap, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNamedNodeMap, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNamedNodeMap, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub getNamedItem: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNamedNodeMap, - name: BSTR, - namedItem: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub setNamedItem: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNamedNodeMap, - newItem: *mut IXMLDOMNode, - nameItem: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeNamedItem: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNamedNodeMap, - name: BSTR, - namedItem: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_item: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNamedNodeMap, - index: ::std::os::raw::c_long, - listItem: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_length: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNamedNodeMap, - listLength: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub getQualifiedItem: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNamedNodeMap, - baseName: BSTR, - namespaceURI: BSTR, - qualifiedItem: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeQualifiedItem: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNamedNodeMap, - baseName: BSTR, - namespaceURI: BSTR, - qualifiedItem: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub nextNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNamedNodeMap, - nextItem: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub reset: - ::std::option::Option HRESULT>, - pub get__newEnum: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNamedNodeMap, ppUnk: *mut *mut IUnknown) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMNamedNodeMap { - pub lpVtbl: *mut IXMLDOMNamedNodeMapVtbl, -} -extern "C" { - pub static IID_IXMLDOMCharacterData: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMCharacterDataVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, value: *mut VARIANT) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, type_: *mut DOMNodeType) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - parent: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - firstChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - lastChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - nextSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - hasChild: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, nodeType: *mut BSTR) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, text: *mut BSTR) -> HRESULT, - >, - pub put_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, text: BSTR) -> HRESULT, - >, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - isSpecified: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, typedValue: *mut VARIANT) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, typedValue: VARIANT) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - dataTypeName: *mut VARIANT, - ) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, dataTypeName: BSTR) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, xmlString: *mut BSTR) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - isParsed: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, namespaceURI: *mut BSTR) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, prefixString: *mut BSTR) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, nameString: *mut BSTR) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, - pub get_data: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, data: *mut BSTR) -> HRESULT, - >, - pub put_data: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, data: BSTR) -> HRESULT, - >, - pub get_length: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - dataLength: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub substringData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - offset: ::std::os::raw::c_long, - count: ::std::os::raw::c_long, - data: *mut BSTR, - ) -> HRESULT, - >, - pub appendData: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCharacterData, data: BSTR) -> HRESULT, - >, - pub insertData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - offset: ::std::os::raw::c_long, - data: BSTR, - ) -> HRESULT, - >, - pub deleteData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - offset: ::std::os::raw::c_long, - count: ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub replaceData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCharacterData, - offset: ::std::os::raw::c_long, - count: ::std::os::raw::c_long, - data: BSTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMCharacterData { - pub lpVtbl: *mut IXMLDOMCharacterDataVtbl, -} -extern "C" { - pub static IID_IXMLDOMAttribute: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMAttributeVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, value: *mut VARIANT) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, type_: *mut DOMNodeType) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, parent: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - firstChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - lastChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - nextSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, hasChild: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, nodeType: *mut BSTR) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, text: *mut BSTR) -> HRESULT, - >, - pub put_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, text: BSTR) -> HRESULT, - >, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - isSpecified: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, typedValue: *mut VARIANT) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, typedValue: VARIANT) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, dataTypeName: *mut VARIANT) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, dataTypeName: BSTR) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, xmlString: *mut BSTR) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, isParsed: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, namespaceURI: *mut BSTR) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, prefixString: *mut BSTR) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, nameString: *mut BSTR) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMAttribute, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, - pub get_name: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, attributeName: *mut BSTR) -> HRESULT, - >, - pub get_value: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, attributeValue: *mut VARIANT) -> HRESULT, - >, - pub put_value: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMAttribute, attributeValue: VARIANT) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMAttribute { - pub lpVtbl: *mut IXMLDOMAttributeVtbl, -} -extern "C" { - pub static IID_IXMLDOMElement: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMElementVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, value: *mut VARIANT) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, type_: *mut DOMNodeType) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, parent: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - firstChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - lastChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - nextSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, hasChild: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, nodeType: *mut BSTR) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, text: *mut BSTR) -> HRESULT, - >, - pub put_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, text: BSTR) -> HRESULT, - >, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, isSpecified: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, typedValue: *mut VARIANT) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, typedValue: VARIANT) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, dataTypeName: *mut VARIANT) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, dataTypeName: BSTR) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, xmlString: *mut BSTR) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, isParsed: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, namespaceURI: *mut BSTR) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, prefixString: *mut BSTR) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, nameString: *mut BSTR) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, - pub get_tagName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, tagName: *mut BSTR) -> HRESULT, - >, - pub getAttribute: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, name: BSTR, value: *mut VARIANT) -> HRESULT, - >, - pub setAttribute: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, name: BSTR, value: VARIANT) -> HRESULT, - >, - pub removeAttribute: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMElement, name: BSTR) -> HRESULT, - >, - pub getAttributeNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - name: BSTR, - attributeNode: *mut *mut IXMLDOMAttribute, - ) -> HRESULT, - >, - pub setAttributeNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - DOMAttribute: *mut IXMLDOMAttribute, - attributeNode: *mut *mut IXMLDOMAttribute, - ) -> HRESULT, - >, - pub removeAttributeNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - DOMAttribute: *mut IXMLDOMAttribute, - attributeNode: *mut *mut IXMLDOMAttribute, - ) -> HRESULT, - >, - pub getElementsByTagName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMElement, - tagName: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub normalize: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMElement { - pub lpVtbl: *mut IXMLDOMElementVtbl, -} -extern "C" { - pub static IID_IXMLDOMText: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMTextVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, value: *mut VARIANT) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, type_: *mut DOMNodeType) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, parent: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, firstChild: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, lastChild: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, nextSibling: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, hasChild: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, nodeType: *mut BSTR) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, text: *mut BSTR) -> HRESULT, - >, - pub put_text: - ::std::option::Option HRESULT>, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, isSpecified: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, typedValue: *mut VARIANT) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, typedValue: VARIANT) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, dataTypeName: *mut VARIANT) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, dataTypeName: BSTR) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, xmlString: *mut BSTR) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, isParsed: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, namespaceURI: *mut BSTR) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, prefixString: *mut BSTR) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, nameString: *mut BSTR) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, - pub get_data: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMText, data: *mut BSTR) -> HRESULT, - >, - pub put_data: - ::std::option::Option HRESULT>, - pub get_length: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - dataLength: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub substringData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - offset: ::std::os::raw::c_long, - count: ::std::os::raw::c_long, - data: *mut BSTR, - ) -> HRESULT, - >, - pub appendData: - ::std::option::Option HRESULT>, - pub insertData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - offset: ::std::os::raw::c_long, - data: BSTR, - ) -> HRESULT, - >, - pub deleteData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - offset: ::std::os::raw::c_long, - count: ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub replaceData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - offset: ::std::os::raw::c_long, - count: ::std::os::raw::c_long, - data: BSTR, - ) -> HRESULT, - >, - pub splitText: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMText, - offset: ::std::os::raw::c_long, - rightHandTextNode: *mut *mut IXMLDOMText, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMText { - pub lpVtbl: *mut IXMLDOMTextVtbl, -} -extern "C" { - pub static IID_IXMLDOMComment: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMCommentVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, value: *mut VARIANT) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, type_: *mut DOMNodeType) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, parent: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - firstChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - lastChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - nextSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, hasChild: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, nodeType: *mut BSTR) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, text: *mut BSTR) -> HRESULT, - >, - pub put_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, text: BSTR) -> HRESULT, - >, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, isSpecified: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, typedValue: *mut VARIANT) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, typedValue: VARIANT) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, dataTypeName: *mut VARIANT) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, dataTypeName: BSTR) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, xmlString: *mut BSTR) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, isParsed: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, namespaceURI: *mut BSTR) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, prefixString: *mut BSTR) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, nameString: *mut BSTR) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, - pub get_data: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, data: *mut BSTR) -> HRESULT, - >, - pub put_data: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, data: BSTR) -> HRESULT, - >, - pub get_length: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - dataLength: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub substringData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - offset: ::std::os::raw::c_long, - count: ::std::os::raw::c_long, - data: *mut BSTR, - ) -> HRESULT, - >, - pub appendData: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMComment, data: BSTR) -> HRESULT, - >, - pub insertData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - offset: ::std::os::raw::c_long, - data: BSTR, - ) -> HRESULT, - >, - pub deleteData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - offset: ::std::os::raw::c_long, - count: ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub replaceData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMComment, - offset: ::std::os::raw::c_long, - count: ::std::os::raw::c_long, - data: BSTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMComment { - pub lpVtbl: *mut IXMLDOMCommentVtbl, -} -extern "C" { - pub static IID_IXMLDOMProcessingInstruction: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMProcessingInstructionVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction) -> ULONG, - >, - pub Release: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction) -> ULONG, - >, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - pctinfo: *mut UINT, - ) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - value: *mut VARIANT, - ) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - type_: *mut DOMNodeType, - ) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - parent: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - firstChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - lastChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - nextSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - hasChild: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - nodeType: *mut BSTR, - ) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction, text: *mut BSTR) -> HRESULT, - >, - pub put_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction, text: BSTR) -> HRESULT, - >, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - isSpecified: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - typedValue: *mut VARIANT, - ) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - typedValue: VARIANT, - ) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - dataTypeName: *mut VARIANT, - ) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - dataTypeName: BSTR, - ) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - isParsed: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - namespaceURI: *mut BSTR, - ) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - prefixString: *mut BSTR, - ) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - nameString: *mut BSTR, - ) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMProcessingInstruction, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, - pub get_target: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction, name: *mut BSTR) -> HRESULT, - >, - pub get_data: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction, value: *mut BSTR) -> HRESULT, - >, - pub put_data: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMProcessingInstruction, value: BSTR) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMProcessingInstruction { - pub lpVtbl: *mut IXMLDOMProcessingInstructionVtbl, -} -extern "C" { - pub static IID_IXMLDOMCDATASection: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMCDATASectionVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, value: *mut VARIANT) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, type_: *mut DOMNodeType) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - parent: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - firstChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - lastChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - nextSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - hasChild: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, nodeType: *mut BSTR) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, text: *mut BSTR) -> HRESULT, - >, - pub put_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, text: BSTR) -> HRESULT, - >, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - isSpecified: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, typedValue: *mut VARIANT) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, typedValue: VARIANT) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, dataTypeName: *mut VARIANT) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, dataTypeName: BSTR) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, xmlString: *mut BSTR) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - isParsed: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, namespaceURI: *mut BSTR) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, prefixString: *mut BSTR) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, nameString: *mut BSTR) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, - pub get_data: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, data: *mut BSTR) -> HRESULT, - >, - pub put_data: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, data: BSTR) -> HRESULT, - >, - pub get_length: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - dataLength: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub substringData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - offset: ::std::os::raw::c_long, - count: ::std::os::raw::c_long, - data: *mut BSTR, - ) -> HRESULT, - >, - pub appendData: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMCDATASection, data: BSTR) -> HRESULT, - >, - pub insertData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - offset: ::std::os::raw::c_long, - data: BSTR, - ) -> HRESULT, - >, - pub deleteData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - offset: ::std::os::raw::c_long, - count: ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub replaceData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - offset: ::std::os::raw::c_long, - count: ::std::os::raw::c_long, - data: BSTR, - ) -> HRESULT, - >, - pub splitText: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMCDATASection, - offset: ::std::os::raw::c_long, - rightHandTextNode: *mut *mut IXMLDOMText, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMCDATASection { - pub lpVtbl: *mut IXMLDOMCDATASectionVtbl, -} -extern "C" { - pub static IID_IXMLDOMDocumentType: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMDocumentTypeVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, value: *mut VARIANT) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, type_: *mut DOMNodeType) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - parent: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - firstChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - lastChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - nextSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - hasChild: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, nodeType: *mut BSTR) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, text: *mut BSTR) -> HRESULT, - >, - pub put_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, text: BSTR) -> HRESULT, - >, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - isSpecified: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, typedValue: *mut VARIANT) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, typedValue: VARIANT) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, dataTypeName: *mut VARIANT) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, dataTypeName: BSTR) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, xmlString: *mut BSTR) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - isParsed: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, namespaceURI: *mut BSTR) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, prefixString: *mut BSTR) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, nameString: *mut BSTR) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, - pub get_name: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMDocumentType, rootName: *mut BSTR) -> HRESULT, - >, - pub get_entities: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - entityMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub get_notations: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMDocumentType, - notationMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMDocumentType { - pub lpVtbl: *mut IXMLDOMDocumentTypeVtbl, -} -extern "C" { - pub static IID_IXMLDOMNotation: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMNotationVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, value: *mut VARIANT) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, type_: *mut DOMNodeType) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, parent: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - firstChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - lastChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - nextSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, hasChild: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, nodeType: *mut BSTR) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, text: *mut BSTR) -> HRESULT, - >, - pub put_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, text: BSTR) -> HRESULT, - >, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, isSpecified: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, typedValue: *mut VARIANT) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, typedValue: VARIANT) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, dataTypeName: *mut VARIANT) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, dataTypeName: BSTR) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, xmlString: *mut BSTR) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, isParsed: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, namespaceURI: *mut BSTR) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, prefixString: *mut BSTR) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, nameString: *mut BSTR) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMNotation, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, - pub get_publicId: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, publicID: *mut VARIANT) -> HRESULT, - >, - pub get_systemId: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMNotation, systemID: *mut VARIANT) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMNotation { - pub lpVtbl: *mut IXMLDOMNotationVtbl, -} -extern "C" { - pub static IID_IXMLDOMEntity: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMEntityVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, value: *mut VARIANT) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, type_: *mut DOMNodeType) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, parent: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - firstChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, lastChild: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - nextSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, hasChild: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, nodeType: *mut BSTR) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, text: *mut BSTR) -> HRESULT, - >, - pub put_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, text: BSTR) -> HRESULT, - >, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, isSpecified: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, typedValue: *mut VARIANT) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, typedValue: VARIANT) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, dataTypeName: *mut VARIANT) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, dataTypeName: BSTR) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, xmlString: *mut BSTR) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, isParsed: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, namespaceURI: *mut BSTR) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, prefixString: *mut BSTR) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, nameString: *mut BSTR) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntity, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, - pub get_publicId: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, publicID: *mut VARIANT) -> HRESULT, - >, - pub get_systemId: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, systemID: *mut VARIANT) -> HRESULT, - >, - pub get_notationName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntity, name: *mut BSTR) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMEntity { - pub lpVtbl: *mut IXMLDOMEntityVtbl, -} -extern "C" { - pub static IID_IXMLDOMEntityReference: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMEntityReferenceVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, value: *mut VARIANT) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, type_: *mut DOMNodeType) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - parent: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - firstChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - lastChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - nextSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - hasChild: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, nodeType: *mut BSTR) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, text: *mut BSTR) -> HRESULT, - >, - pub put_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, text: BSTR) -> HRESULT, - >, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - isSpecified: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - typedValue: *mut VARIANT, - ) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, typedValue: VARIANT) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - dataTypeName: *mut VARIANT, - ) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, dataTypeName: BSTR) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, xmlString: *mut BSTR) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - isParsed: *mut VARIANT_BOOL, - ) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, namespaceURI: *mut BSTR) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, prefixString: *mut BSTR) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMEntityReference, nameString: *mut BSTR) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMEntityReference, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMEntityReference { - pub lpVtbl: *mut IXMLDOMEntityReferenceVtbl, -} -extern "C" { - pub static IID_IXMLDOMParseError: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMParseErrorVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMParseError, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMParseError, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMParseError, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMParseError, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMParseError, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_errorCode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMParseError, - errorCode: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub get_url: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMParseError, urlString: *mut BSTR) -> HRESULT, - >, - pub get_reason: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMParseError, reasonString: *mut BSTR) -> HRESULT, - >, - pub get_srcText: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDOMParseError, sourceString: *mut BSTR) -> HRESULT, - >, - pub get_line: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMParseError, - lineNumber: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub get_linepos: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMParseError, - linePosition: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub get_filepos: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDOMParseError, - filePosition: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDOMParseError { - pub lpVtbl: *mut IXMLDOMParseErrorVtbl, -} -extern "C" { - pub static IID_IXTLRuntime: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXTLRuntimeVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_nodeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, name: *mut BSTR) -> HRESULT, - >, - pub get_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, value: *mut VARIANT) -> HRESULT, - >, - pub put_nodeValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, value: VARIANT) -> HRESULT, - >, - pub get_nodeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, type_: *mut DOMNodeType) -> HRESULT, - >, - pub get_parentNode: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, parent: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_childNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - childList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub get_firstChild: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, firstChild: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_lastChild: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, lastChild: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_previousSibling: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - previousSibling: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nextSibling: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, nextSibling: *mut *mut IXMLDOMNode) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - attributeMap: *mut *mut IXMLDOMNamedNodeMap, - ) -> HRESULT, - >, - pub insertBefore: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - newChild: *mut IXMLDOMNode, - refChild: VARIANT, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub replaceChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - newChild: *mut IXMLDOMNode, - oldChild: *mut IXMLDOMNode, - outOldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - childNode: *mut IXMLDOMNode, - oldChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub appendChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - newChild: *mut IXMLDOMNode, - outNewChild: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub hasChildNodes: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, hasChild: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_ownerDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - XMLDOMDocument: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub cloneNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - deep: VARIANT_BOOL, - cloneRoot: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypeString: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, nodeType: *mut BSTR) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, text: *mut BSTR) -> HRESULT, - >, - pub put_text: - ::std::option::Option HRESULT>, - pub get_specified: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, isSpecified: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_definition: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - definitionNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, typedValue: *mut VARIANT) -> HRESULT, - >, - pub put_nodeTypedValue: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, typedValue: VARIANT) -> HRESULT, - >, - pub get_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, dataTypeName: *mut VARIANT) -> HRESULT, - >, - pub put_dataType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, dataTypeName: BSTR) -> HRESULT, - >, - pub get_xml: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, xmlString: *mut BSTR) -> HRESULT, - >, - pub transformNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - stylesheet: *mut IXMLDOMNode, - xmlString: *mut BSTR, - ) -> HRESULT, - >, - pub selectNodes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - queryString: BSTR, - resultList: *mut *mut IXMLDOMNodeList, - ) -> HRESULT, - >, - pub selectSingleNode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - queryString: BSTR, - resultNode: *mut *mut IXMLDOMNode, - ) -> HRESULT, - >, - pub get_parsed: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, isParsed: *mut VARIANT_BOOL) -> HRESULT, - >, - pub get_namespaceURI: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, namespaceURI: *mut BSTR) -> HRESULT, - >, - pub get_prefix: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, prefixString: *mut BSTR) -> HRESULT, - >, - pub get_baseName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXTLRuntime, nameString: *mut BSTR) -> HRESULT, - >, - pub transformNodeToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - stylesheet: *mut IXMLDOMNode, - outputObject: VARIANT, - ) -> HRESULT, - >, - pub uniqueID: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - pNode: *mut IXMLDOMNode, - pID: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub depth: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - pNode: *mut IXMLDOMNode, - pDepth: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub childNumber: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - pNode: *mut IXMLDOMNode, - pNumber: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub ancestorChildNumber: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - bstrNodeName: BSTR, - pNode: *mut IXMLDOMNode, - pNumber: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub absoluteChildNumber: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - pNode: *mut IXMLDOMNode, - pNumber: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub formatIndex: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - lIndex: ::std::os::raw::c_long, - bstrFormat: BSTR, - pbstrFormattedString: *mut BSTR, - ) -> HRESULT, - >, - pub formatNumber: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - dblNumber: f64, - bstrFormat: BSTR, - pbstrFormattedString: *mut BSTR, - ) -> HRESULT, - >, - pub formatDate: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - varDate: VARIANT, - bstrFormat: BSTR, - varDestLocale: VARIANT, - pbstrFormattedString: *mut BSTR, - ) -> HRESULT, - >, - pub formatTime: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXTLRuntime, - varTime: VARIANT, - bstrFormat: BSTR, - varDestLocale: VARIANT, - pbstrFormattedString: *mut BSTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXTLRuntime { - pub lpVtbl: *mut IXTLRuntimeVtbl, -} -extern "C" { - pub static DIID_XMLDOMDocumentEvents: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct XMLDOMDocumentEventsVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut XMLDOMDocumentEvents, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut XMLDOMDocumentEvents, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut XMLDOMDocumentEvents, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut XMLDOMDocumentEvents, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut XMLDOMDocumentEvents, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct XMLDOMDocumentEvents { - pub lpVtbl: *mut XMLDOMDocumentEventsVtbl, -} -extern "C" { - pub static CLSID_DOMDocument: CLSID; -} -extern "C" { - pub static CLSID_DOMFreeThreadedDocument: CLSID; -} -extern "C" { - pub static IID_IXMLHttpRequest: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLHttpRequestVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLHttpRequest, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLHttpRequest, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLHttpRequest, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLHttpRequest, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLHttpRequest, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub open: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLHttpRequest, - bstrMethod: BSTR, - bstrUrl: BSTR, - varAsync: VARIANT, - bstrUser: VARIANT, - bstrPassword: VARIANT, - ) -> HRESULT, - >, - pub setRequestHeader: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLHttpRequest, - bstrHeader: BSTR, - bstrValue: BSTR, - ) -> HRESULT, - >, - pub getResponseHeader: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLHttpRequest, - bstrHeader: BSTR, - pbstrValue: *mut BSTR, - ) -> HRESULT, - >, - pub getAllResponseHeaders: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLHttpRequest, pbstrHeaders: *mut BSTR) -> HRESULT, - >, - pub send: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLHttpRequest, varBody: VARIANT) -> HRESULT, - >, - pub abort: ::std::option::Option HRESULT>, - pub get_status: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLHttpRequest, - plStatus: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub get_statusText: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLHttpRequest, pbstrStatus: *mut BSTR) -> HRESULT, - >, - pub get_responseXML: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLHttpRequest, ppBody: *mut *mut IDispatch) -> HRESULT, - >, - pub get_responseText: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLHttpRequest, pbstrBody: *mut BSTR) -> HRESULT, - >, - pub get_responseBody: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLHttpRequest, pvarBody: *mut VARIANT) -> HRESULT, - >, - pub get_responseStream: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLHttpRequest, pvarBody: *mut VARIANT) -> HRESULT, - >, - pub get_readyState: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLHttpRequest, - plState: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub put_onreadystatechange: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLHttpRequest, - pReadyStateSink: *mut IDispatch, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLHttpRequest { - pub lpVtbl: *mut IXMLHttpRequestVtbl, -} -extern "C" { - pub static CLSID_XMLHTTPRequest: CLSID; -} -extern "C" { - pub static IID_IXMLDSOControl: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDSOControlVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDSOControl, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDSOControl, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDSOControl, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDSOControl, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDSOControl, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_XMLDocument: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDSOControl, - ppDoc: *mut *mut IXMLDOMDocument, - ) -> HRESULT, - >, - pub put_XMLDocument: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDSOControl, ppDoc: *mut IXMLDOMDocument) -> HRESULT, - >, - pub get_JavaDSOCompatible: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDSOControl, fJavaDSOCompatible: *mut BOOL) -> HRESULT, - >, - pub put_JavaDSOCompatible: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDSOControl, fJavaDSOCompatible: BOOL) -> HRESULT, - >, - pub get_readyState: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDSOControl, - state: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDSOControl { - pub lpVtbl: *mut IXMLDSOControlVtbl, -} -extern "C" { - pub static CLSID_XMLDSOControl: CLSID; -} -extern "C" { - pub static IID_IXMLElementCollection: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLElementCollectionVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElementCollection, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLElementCollection, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElementCollection, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElementCollection, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElementCollection, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub put_length: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElementCollection, - v: ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub get_length: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElementCollection, - p: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub get__newEnum: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElementCollection, - ppUnk: *mut *mut IUnknown, - ) -> HRESULT, - >, - pub item: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElementCollection, - var1: VARIANT, - var2: VARIANT, - ppDisp: *mut *mut IDispatch, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLElementCollection { - pub lpVtbl: *mut IXMLElementCollectionVtbl, -} -extern "C" { - pub static IID_IXMLDocument: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDocumentVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDocument, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDocument, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDocument, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDocument, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_root: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut *mut IXMLElement) -> HRESULT, - >, - pub get_fileSize: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, - >, - pub get_fileModifiedDate: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, - >, - pub get_fileUpdatedDate: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, - >, - pub get_URL: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, - >, - pub put_URL: - ::std::option::Option HRESULT>, - pub get_mimeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, - >, - pub get_readyState: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument, pl: *mut ::std::os::raw::c_long) -> HRESULT, - >, - pub get_charset: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, - >, - pub put_charset: - ::std::option::Option HRESULT>, - pub get_version: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, - >, - pub get_doctype: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, - >, - pub get_dtdURL: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument, p: *mut BSTR) -> HRESULT, - >, - pub createElement: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDocument, - vType: VARIANT, - var1: VARIANT, - ppElem: *mut *mut IXMLElement, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDocument { - pub lpVtbl: *mut IXMLDocumentVtbl, -} -extern "C" { - pub static IID_IXMLDocument2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDocument2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDocument2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument2, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDocument2, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDocument2, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDocument2, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_root: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut *mut IXMLElement2) -> HRESULT, - >, - pub get_fileSize: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, - >, - pub get_fileModifiedDate: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, - >, - pub get_fileUpdatedDate: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, - >, - pub get_URL: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, - >, - pub put_URL: - ::std::option::Option HRESULT>, - pub get_mimeType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, - >, - pub get_readyState: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument2, pl: *mut ::std::os::raw::c_long) -> HRESULT, - >, - pub get_charset: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, - >, - pub put_charset: - ::std::option::Option HRESULT>, - pub get_version: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, - >, - pub get_doctype: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, - >, - pub get_dtdURL: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument2, p: *mut BSTR) -> HRESULT, - >, - pub createElement: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLDocument2, - vType: VARIANT, - var1: VARIANT, - ppElem: *mut *mut IXMLElement2, - ) -> HRESULT, - >, - pub get_async: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument2, pf: *mut VARIANT_BOOL) -> HRESULT, - >, - pub put_async: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLDocument2, f: VARIANT_BOOL) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLDocument2 { - pub lpVtbl: *mut IXMLDocument2Vtbl, -} -extern "C" { - pub static IID_IXMLElement: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLElementVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLElement, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_tagName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLElement, p: *mut BSTR) -> HRESULT, - >, - pub put_tagName: - ::std::option::Option HRESULT>, - pub get_parent: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLElement, ppParent: *mut *mut IXMLElement) -> HRESULT, - >, - pub setAttribute: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement, - strPropertyName: BSTR, - PropertyValue: VARIANT, - ) -> HRESULT, - >, - pub getAttribute: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement, - strPropertyName: BSTR, - PropertyValue: *mut VARIANT, - ) -> HRESULT, - >, - pub removeAttribute: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLElement, strPropertyName: BSTR) -> HRESULT, - >, - pub get_children: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement, - pp: *mut *mut IXMLElementCollection, - ) -> HRESULT, - >, - pub get_type: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement, - plType: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLElement, p: *mut BSTR) -> HRESULT, - >, - pub put_text: - ::std::option::Option HRESULT>, - pub addChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement, - pChildElem: *mut IXMLElement, - lIndex: ::std::os::raw::c_long, - lReserved: ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLElement, pChildElem: *mut IXMLElement) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLElement { - pub lpVtbl: *mut IXMLElementVtbl, -} -extern "C" { - pub static IID_IXMLElement2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLElement2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLElement2, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement2, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement2, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement2, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_tagName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLElement2, p: *mut BSTR) -> HRESULT, - >, - pub put_tagName: - ::std::option::Option HRESULT>, - pub get_parent: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLElement2, ppParent: *mut *mut IXMLElement2) -> HRESULT, - >, - pub setAttribute: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement2, - strPropertyName: BSTR, - PropertyValue: VARIANT, - ) -> HRESULT, - >, - pub getAttribute: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement2, - strPropertyName: BSTR, - PropertyValue: *mut VARIANT, - ) -> HRESULT, - >, - pub removeAttribute: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLElement2, strPropertyName: BSTR) -> HRESULT, - >, - pub get_children: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement2, - pp: *mut *mut IXMLElementCollection, - ) -> HRESULT, - >, - pub get_type: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement2, - plType: *mut ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub get_text: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLElement2, p: *mut BSTR) -> HRESULT, - >, - pub put_text: - ::std::option::Option HRESULT>, - pub addChild: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement2, - pChildElem: *mut IXMLElement2, - lIndex: ::std::os::raw::c_long, - lReserved: ::std::os::raw::c_long, - ) -> HRESULT, - >, - pub removeChild: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLElement2, pChildElem: *mut IXMLElement2) -> HRESULT, - >, - pub get_attributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLElement2, - pp: *mut *mut IXMLElementCollection, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLElement2 { - pub lpVtbl: *mut IXMLElement2Vtbl, -} -extern "C" { - pub static IID_IXMLAttribute: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLAttributeVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLAttribute, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetTypeInfoCount: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLAttribute, pctinfo: *mut UINT) -> HRESULT, - >, - pub GetTypeInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLAttribute, - iTInfo: UINT, - lcid: LCID, - ppTInfo: *mut *mut ITypeInfo, - ) -> HRESULT, - >, - pub GetIDsOfNames: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLAttribute, - riid: *const IID, - rgszNames: *mut LPOLESTR, - cNames: UINT, - lcid: LCID, - rgDispId: *mut DISPID, - ) -> HRESULT, - >, - pub Invoke: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLAttribute, - dispIdMember: DISPID, - riid: *const IID, - lcid: LCID, - wFlags: WORD, - pDispParams: *mut DISPPARAMS, - pVarResult: *mut VARIANT, - pExcepInfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT, - >, - pub get_name: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLAttribute, n: *mut BSTR) -> HRESULT, - >, - pub get_value: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLAttribute, v: *mut BSTR) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLAttribute { - pub lpVtbl: *mut IXMLAttributeVtbl, -} -extern "C" { - pub static IID_IXMLError: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLErrorVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IXMLError, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetErrorInfo: ::std::option::Option< - unsafe extern "C" fn(This: *mut IXMLError, pErrorReturn: *mut XML_ERROR) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IXMLError { - pub lpVtbl: *mut IXMLErrorVtbl, -} -extern "C" { - pub static CLSID_XMLDocument: CLSID; -} -extern "C" { - pub static mut __MIDL_itf_msxml_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_msxml_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static CLSID_SBS_StdURLMoniker: IID; -} -extern "C" { - pub static CLSID_SBS_HttpProtocol: IID; -} -extern "C" { - pub static CLSID_SBS_FtpProtocol: IID; -} -extern "C" { - pub static CLSID_SBS_GopherProtocol: IID; -} -extern "C" { - pub static CLSID_SBS_HttpSProtocol: IID; -} -extern "C" { - pub static CLSID_SBS_FileProtocol: IID; -} -extern "C" { - pub static CLSID_SBS_MkProtocol: IID; -} -extern "C" { - pub static CLSID_SBS_UrlMkBindCtx: IID; -} -extern "C" { - pub static CLSID_SBS_SoftDistExt: IID; -} -extern "C" { - pub static CLSID_SBS_CdlProtocol: IID; -} -extern "C" { - pub static CLSID_SBS_ClassInstallFilter: IID; -} -extern "C" { - pub static CLSID_SBS_InternetSecurityManager: IID; -} -extern "C" { - pub static CLSID_SBS_InternetZoneManager: IID; -} -extern "C" { - pub static IID_IAsyncMoniker: IID; -} -extern "C" { - pub static CLSID_StdURLMoniker: IID; -} -extern "C" { - pub static CLSID_HttpProtocol: IID; -} -extern "C" { - pub static CLSID_FtpProtocol: IID; -} -extern "C" { - pub static CLSID_GopherProtocol: IID; -} -extern "C" { - pub static CLSID_HttpSProtocol: IID; -} -extern "C" { - pub static CLSID_FileProtocol: IID; -} -extern "C" { - pub static CLSID_ResProtocol: IID; -} -extern "C" { - pub static CLSID_AboutProtocol: IID; -} -extern "C" { - pub static CLSID_JSProtocol: IID; -} -extern "C" { - pub static CLSID_MailtoProtocol: IID; -} -extern "C" { - pub static CLSID_IE4_PROTOCOLS: IID; -} -extern "C" { - pub static CLSID_MkProtocol: IID; -} -extern "C" { - pub static CLSID_StdURLProtocol: IID; -} -extern "C" { - pub static CLSID_TBAuthProtocol: IID; -} -extern "C" { - pub static CLSID_UrlMkBindCtx: IID; -} -extern "C" { - pub static CLSID_CdlProtocol: IID; -} -extern "C" { - pub static CLSID_ClassInstallFilter: IID; -} -extern "C" { - pub static IID_IAsyncBindCtx: IID; -} -extern "C" { - pub fn CreateURLMoniker(pMkCtx: LPMONIKER, szURL: LPCWSTR, ppmk: *mut LPMONIKER) -> HRESULT; -} -extern "C" { - pub fn CreateURLMonikerEx( - pMkCtx: LPMONIKER, - szURL: LPCWSTR, - ppmk: *mut LPMONIKER, - dwFlags: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn GetClassURL(szURL: LPCWSTR, pClsID: *mut CLSID) -> HRESULT; -} -extern "C" { - pub fn CreateAsyncBindCtx( - reserved: DWORD, - pBSCb: *mut IBindStatusCallback, - pEFetc: *mut IEnumFORMATETC, - ppBC: *mut *mut IBindCtx, - ) -> HRESULT; -} -extern "C" { - pub fn CreateURLMonikerEx2( - pMkCtx: LPMONIKER, - pUri: *mut IUri, - ppmk: *mut LPMONIKER, - dwFlags: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CreateAsyncBindCtxEx( - pbc: *mut IBindCtx, - dwOptions: DWORD, - pBSCb: *mut IBindStatusCallback, - pEnum: *mut IEnumFORMATETC, - ppBC: *mut *mut IBindCtx, - reserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn MkParseDisplayNameEx( - pbc: *mut IBindCtx, - szDisplayName: LPCWSTR, - pchEaten: *mut ULONG, - ppmk: *mut LPMONIKER, - ) -> HRESULT; -} -extern "C" { - pub fn RegisterBindStatusCallback( - pBC: LPBC, - pBSCb: *mut IBindStatusCallback, - ppBSCBPrev: *mut *mut IBindStatusCallback, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn RevokeBindStatusCallback(pBC: LPBC, pBSCb: *mut IBindStatusCallback) -> HRESULT; -} -extern "C" { - pub fn GetClassFileOrMime( - pBC: LPBC, - szFilename: LPCWSTR, - pBuffer: LPVOID, - cbSize: DWORD, - szMime: LPCWSTR, - dwReserved: DWORD, - pclsid: *mut CLSID, - ) -> HRESULT; -} -extern "C" { - pub fn IsValidURL(pBC: LPBC, szURL: LPCWSTR, dwReserved: DWORD) -> HRESULT; -} -extern "C" { - pub fn CoGetClassObjectFromURL( - rCLASSID: *const IID, - szCODE: LPCWSTR, - dwFileVersionMS: DWORD, - dwFileVersionLS: DWORD, - szTYPE: LPCWSTR, - pBindCtx: LPBINDCTX, - dwClsContext: DWORD, - pvReserved: LPVOID, - riid: *const IID, - ppv: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn IEInstallScope(pdwScope: LPDWORD) -> HRESULT; -} -extern "C" { - pub fn FaultInIEFeature( - hWnd: HWND, - pClassSpec: *mut uCLSSPEC, - pQuery: *mut QUERYCONTEXT, - dwFlags: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn GetComponentIDFromCLSSPEC( - pClassspec: *mut uCLSSPEC, - ppszComponentID: *mut LPSTR, - ) -> HRESULT; -} -extern "C" { - pub fn IsAsyncMoniker(pmk: *mut IMoniker) -> HRESULT; -} -extern "C" { - pub fn CreateURLBinding( - lpszUrl: LPCWSTR, - pbc: *mut IBindCtx, - ppBdg: *mut *mut IBinding, - ) -> HRESULT; -} -extern "C" { - pub fn RegisterMediaTypes( - ctypes: UINT, - rgszTypes: *const LPCSTR, - rgcfTypes: *mut CLIPFORMAT, - ) -> HRESULT; -} -extern "C" { - pub fn FindMediaType(rgszTypes: LPCSTR, rgcfTypes: *mut CLIPFORMAT) -> HRESULT; -} -extern "C" { - pub fn CreateFormatEnumerator( - cfmtetc: UINT, - rgfmtetc: *mut FORMATETC, - ppenumfmtetc: *mut *mut IEnumFORMATETC, - ) -> HRESULT; -} -extern "C" { - pub fn RegisterFormatEnumerator( - pBC: LPBC, - pEFetc: *mut IEnumFORMATETC, - reserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn RevokeFormatEnumerator(pBC: LPBC, pEFetc: *mut IEnumFORMATETC) -> HRESULT; -} -extern "C" { - pub fn RegisterMediaTypeClass( - pBC: LPBC, - ctypes: UINT, - rgszTypes: *const LPCSTR, - rgclsID: *mut CLSID, - reserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn FindMediaTypeClass( - pBC: LPBC, - szType: LPCSTR, - pclsID: *mut CLSID, - reserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn UrlMkSetSessionOption( - dwOption: DWORD, - pBuffer: LPVOID, - dwBufferLength: DWORD, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn UrlMkGetSessionOption( - dwOption: DWORD, - pBuffer: LPVOID, - dwBufferLength: DWORD, - pdwBufferLengthOut: *mut DWORD, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn FindMimeFromData( - pBC: LPBC, - pwzUrl: LPCWSTR, - pBuffer: LPVOID, - cbSize: DWORD, - pwzMimeProposed: LPCWSTR, - dwMimeFlags: DWORD, - ppwzMimeOut: *mut LPWSTR, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn ObtainUserAgentString(dwOption: DWORD, pszUAOut: LPSTR, cbSize: *mut DWORD) -> HRESULT; -} -extern "C" { - pub fn CompareSecurityIds( - pbSecurityId1: *mut BYTE, - dwLen1: DWORD, - pbSecurityId2: *mut BYTE, - dwLen2: DWORD, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CompatFlagsFromClsid( - pclsid: *mut CLSID, - pdwCompatFlags: LPDWORD, - pdwMiscStatusFlags: LPDWORD, - ) -> HRESULT; -} -pub const IEObjectType_IE_EPM_OBJECT_EVENT: IEObjectType = 0; -pub const IEObjectType_IE_EPM_OBJECT_MUTEX: IEObjectType = 1; -pub const IEObjectType_IE_EPM_OBJECT_SEMAPHORE: IEObjectType = 2; -pub const IEObjectType_IE_EPM_OBJECT_SHARED_MEMORY: IEObjectType = 3; -pub const IEObjectType_IE_EPM_OBJECT_WAITABLE_TIMER: IEObjectType = 4; -pub const IEObjectType_IE_EPM_OBJECT_FILE: IEObjectType = 5; -pub const IEObjectType_IE_EPM_OBJECT_NAMED_PIPE: IEObjectType = 6; -pub const IEObjectType_IE_EPM_OBJECT_REGISTRY: IEObjectType = 7; -pub type IEObjectType = ::std::os::raw::c_int; -extern "C" { - pub fn SetAccessForIEAppContainer( - hObject: HANDLE, - ieObjectType: IEObjectType, - dwAccessMask: DWORD, - ) -> HRESULT; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0000_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0000_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPPERSISTMONIKER = *mut IPersistMoniker; -extern "C" { - pub static IID_IPersistMoniker: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPersistMonikerVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPersistMoniker, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetClassID: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPersistMoniker, pClassID: *mut CLSID) -> HRESULT, - >, - pub IsDirty: ::std::option::Option HRESULT>, - pub Load: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPersistMoniker, - fFullyAvailable: BOOL, - pimkName: *mut IMoniker, - pibc: LPBC, - grfMode: DWORD, - ) -> HRESULT, - >, - pub Save: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPersistMoniker, - pimkName: *mut IMoniker, - pbc: LPBC, - fRemember: BOOL, - ) -> HRESULT, - >, - pub SaveCompleted: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPersistMoniker, - pimkName: *mut IMoniker, - pibc: LPBC, - ) -> HRESULT, - >, - pub GetCurMoniker: ::std::option::Option< - unsafe extern "C" fn(This: *mut IPersistMoniker, ppimkName: *mut *mut IMoniker) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPersistMoniker { - pub lpVtbl: *mut IPersistMonikerVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0001_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0001_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPMONIKERPROP = *mut IMonikerProp; -pub const __MIDL_IMonikerProp_0001_MIMETYPEPROP: __MIDL_IMonikerProp_0001 = 0; -pub const __MIDL_IMonikerProp_0001_USE_SRC_URL: __MIDL_IMonikerProp_0001 = 1; -pub const __MIDL_IMonikerProp_0001_CLASSIDPROP: __MIDL_IMonikerProp_0001 = 2; -pub const __MIDL_IMonikerProp_0001_TRUSTEDDOWNLOADPROP: __MIDL_IMonikerProp_0001 = 3; -pub const __MIDL_IMonikerProp_0001_POPUPLEVELPROP: __MIDL_IMonikerProp_0001 = 4; -pub type __MIDL_IMonikerProp_0001 = ::std::os::raw::c_int; -pub use self::__MIDL_IMonikerProp_0001 as MONIKERPROPERTY; -extern "C" { - pub static IID_IMonikerProp: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMonikerPropVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMonikerProp, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub PutProperty: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IMonikerProp, - mkp: MONIKERPROPERTY, - val: LPCWSTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IMonikerProp { - pub lpVtbl: *mut IMonikerPropVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0002_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0002_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPBINDPROTOCOL = *mut IBindProtocol; -extern "C" { - pub static IID_IBindProtocol: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindProtocolVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindProtocol, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub CreateBinding: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindProtocol, - szUrl: LPCWSTR, - pbc: *mut IBindCtx, - ppb: *mut *mut IBinding, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindProtocol { - pub lpVtbl: *mut IBindProtocolVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0003_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0003_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPBINDING = *mut IBinding; -extern "C" { - pub static IID_IBinding: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindingVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBinding, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Abort: ::std::option::Option HRESULT>, - pub Suspend: ::std::option::Option HRESULT>, - pub Resume: ::std::option::Option HRESULT>, - pub SetPriority: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBinding, nPriority: LONG) -> HRESULT, - >, - pub GetPriority: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBinding, pnPriority: *mut LONG) -> HRESULT, - >, - pub GetBindResult: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBinding, - pclsidProtocol: *mut CLSID, - pdwResult: *mut DWORD, - pszResult: *mut LPOLESTR, - pdwReserved: *mut DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBinding { - pub lpVtbl: *mut IBindingVtbl, -} -extern "C" { - pub fn IBinding_RemoteGetBindResult_Proxy( - This: *mut IBinding, - pclsidProtocol: *mut CLSID, - pdwResult: *mut DWORD, - pszResult: *mut LPOLESTR, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IBinding_RemoteGetBindResult_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0004_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0004_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPBINDSTATUSCALLBACK = *mut IBindStatusCallback; -pub const __MIDL_IBindStatusCallback_0001_BINDVERB_GET: __MIDL_IBindStatusCallback_0001 = 0; -pub const __MIDL_IBindStatusCallback_0001_BINDVERB_POST: __MIDL_IBindStatusCallback_0001 = 1; -pub const __MIDL_IBindStatusCallback_0001_BINDVERB_PUT: __MIDL_IBindStatusCallback_0001 = 2; -pub const __MIDL_IBindStatusCallback_0001_BINDVERB_CUSTOM: __MIDL_IBindStatusCallback_0001 = 3; -pub const __MIDL_IBindStatusCallback_0001_BINDVERB_RESERVED1: __MIDL_IBindStatusCallback_0001 = 4; -pub type __MIDL_IBindStatusCallback_0001 = ::std::os::raw::c_int; -pub use self::__MIDL_IBindStatusCallback_0001 as BINDVERB; -pub const __MIDL_IBindStatusCallback_0002_BINDINFOF_URLENCODESTGMEDDATA: - __MIDL_IBindStatusCallback_0002 = 1; -pub const __MIDL_IBindStatusCallback_0002_BINDINFOF_URLENCODEDEXTRAINFO: - __MIDL_IBindStatusCallback_0002 = 2; -pub type __MIDL_IBindStatusCallback_0002 = ::std::os::raw::c_int; -pub use self::__MIDL_IBindStatusCallback_0002 as BINDINFOF; -pub const __MIDL_IBindStatusCallback_0003_BINDF_ASYNCHRONOUS: __MIDL_IBindStatusCallback_0003 = 1; -pub const __MIDL_IBindStatusCallback_0003_BINDF_ASYNCSTORAGE: __MIDL_IBindStatusCallback_0003 = 2; -pub const __MIDL_IBindStatusCallback_0003_BINDF_NOPROGRESSIVERENDERING: - __MIDL_IBindStatusCallback_0003 = 4; -pub const __MIDL_IBindStatusCallback_0003_BINDF_OFFLINEOPERATION: __MIDL_IBindStatusCallback_0003 = - 8; -pub const __MIDL_IBindStatusCallback_0003_BINDF_GETNEWESTVERSION: __MIDL_IBindStatusCallback_0003 = - 16; -pub const __MIDL_IBindStatusCallback_0003_BINDF_NOWRITECACHE: __MIDL_IBindStatusCallback_0003 = 32; -pub const __MIDL_IBindStatusCallback_0003_BINDF_NEEDFILE: __MIDL_IBindStatusCallback_0003 = 64; -pub const __MIDL_IBindStatusCallback_0003_BINDF_PULLDATA: __MIDL_IBindStatusCallback_0003 = 128; -pub const __MIDL_IBindStatusCallback_0003_BINDF_IGNORESECURITYPROBLEM: - __MIDL_IBindStatusCallback_0003 = 256; -pub const __MIDL_IBindStatusCallback_0003_BINDF_RESYNCHRONIZE: __MIDL_IBindStatusCallback_0003 = - 512; -pub const __MIDL_IBindStatusCallback_0003_BINDF_HYPERLINK: __MIDL_IBindStatusCallback_0003 = 1024; -pub const __MIDL_IBindStatusCallback_0003_BINDF_NO_UI: __MIDL_IBindStatusCallback_0003 = 2048; -pub const __MIDL_IBindStatusCallback_0003_BINDF_SILENTOPERATION: __MIDL_IBindStatusCallback_0003 = - 4096; -pub const __MIDL_IBindStatusCallback_0003_BINDF_PRAGMA_NO_CACHE: __MIDL_IBindStatusCallback_0003 = - 8192; -pub const __MIDL_IBindStatusCallback_0003_BINDF_GETCLASSOBJECT: __MIDL_IBindStatusCallback_0003 = - 16384; -pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_1: __MIDL_IBindStatusCallback_0003 = 32768; -pub const __MIDL_IBindStatusCallback_0003_BINDF_FREE_THREADED: __MIDL_IBindStatusCallback_0003 = - 65536; -pub const __MIDL_IBindStatusCallback_0003_BINDF_DIRECT_READ: __MIDL_IBindStatusCallback_0003 = - 131072; -pub const __MIDL_IBindStatusCallback_0003_BINDF_FORMS_SUBMIT: __MIDL_IBindStatusCallback_0003 = - 262144; -pub const __MIDL_IBindStatusCallback_0003_BINDF_GETFROMCACHE_IF_NET_FAIL: - __MIDL_IBindStatusCallback_0003 = 524288; -pub const __MIDL_IBindStatusCallback_0003_BINDF_FROMURLMON: __MIDL_IBindStatusCallback_0003 = - 1048576; -pub const __MIDL_IBindStatusCallback_0003_BINDF_FWD_BACK: __MIDL_IBindStatusCallback_0003 = 2097152; -pub const __MIDL_IBindStatusCallback_0003_BINDF_PREFERDEFAULTHANDLER: - __MIDL_IBindStatusCallback_0003 = 4194304; -pub const __MIDL_IBindStatusCallback_0003_BINDF_ENFORCERESTRICTED: __MIDL_IBindStatusCallback_0003 = - 8388608; -pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_2: __MIDL_IBindStatusCallback_0003 = - -2147483648; -pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_3: __MIDL_IBindStatusCallback_0003 = - 16777216; -pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_4: __MIDL_IBindStatusCallback_0003 = - 33554432; -pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_5: __MIDL_IBindStatusCallback_0003 = - 67108864; -pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_6: __MIDL_IBindStatusCallback_0003 = - 134217728; -pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_7: __MIDL_IBindStatusCallback_0003 = - 1073741824; -pub const __MIDL_IBindStatusCallback_0003_BINDF_RESERVED_8: __MIDL_IBindStatusCallback_0003 = - 536870912; -pub type __MIDL_IBindStatusCallback_0003 = ::std::os::raw::c_int; -pub use self::__MIDL_IBindStatusCallback_0003 as BINDF; -pub const __MIDL_IBindStatusCallback_0004_URL_ENCODING_NONE: __MIDL_IBindStatusCallback_0004 = 0; -pub const __MIDL_IBindStatusCallback_0004_URL_ENCODING_ENABLE_UTF8: - __MIDL_IBindStatusCallback_0004 = 268435456; -pub const __MIDL_IBindStatusCallback_0004_URL_ENCODING_DISABLE_UTF8: - __MIDL_IBindStatusCallback_0004 = 536870912; -pub type __MIDL_IBindStatusCallback_0004 = ::std::os::raw::c_int; -pub use self::__MIDL_IBindStatusCallback_0004 as URL_ENCODING; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _tagBINDINFO { - pub cbSize: ULONG, - pub szExtraInfo: LPWSTR, - pub stgmedData: STGMEDIUM, - pub grfBindInfoF: DWORD, - pub dwBindVerb: DWORD, - pub szCustomVerb: LPWSTR, - pub cbstgmedData: DWORD, - pub dwOptions: DWORD, - pub dwOptionsFlags: DWORD, - pub dwCodePage: DWORD, - pub securityAttributes: SECURITY_ATTRIBUTES, - pub iid: IID, - pub pUnk: *mut IUnknown, - pub dwReserved: DWORD, -} -pub type BINDINFO = _tagBINDINFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _REMSECURITY_ATTRIBUTES { - pub nLength: DWORD, - pub lpSecurityDescriptor: DWORD, - pub bInheritHandle: BOOL, -} -pub type REMSECURITY_ATTRIBUTES = _REMSECURITY_ATTRIBUTES; -pub type PREMSECURITY_ATTRIBUTES = *mut _REMSECURITY_ATTRIBUTES; -pub type LPREMSECURITY_ATTRIBUTES = *mut _REMSECURITY_ATTRIBUTES; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _tagRemBINDINFO { - pub cbSize: ULONG, - pub szExtraInfo: LPWSTR, - pub grfBindInfoF: DWORD, - pub dwBindVerb: DWORD, - pub szCustomVerb: LPWSTR, - pub cbstgmedData: DWORD, - pub dwOptions: DWORD, - pub dwOptionsFlags: DWORD, - pub dwCodePage: DWORD, - pub securityAttributes: REMSECURITY_ATTRIBUTES, - pub iid: IID, - pub pUnk: *mut IUnknown, - pub dwReserved: DWORD, -} -pub type RemBINDINFO = _tagRemBINDINFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRemFORMATETC { - pub cfFormat: DWORD, - pub ptd: DWORD, - pub dwAspect: DWORD, - pub lindex: LONG, - pub tymed: DWORD, -} -pub type RemFORMATETC = tagRemFORMATETC; -pub type LPREMFORMATETC = *mut tagRemFORMATETC; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_WININETFLAG: - __MIDL_IBindStatusCallback_0005 = 65536; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_ENABLE_UTF8: - __MIDL_IBindStatusCallback_0005 = 131072; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_DISABLE_UTF8: - __MIDL_IBindStatusCallback_0005 = 262144; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_USE_IE_ENCODING: - __MIDL_IBindStatusCallback_0005 = 524288; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_BINDTOOBJECT: - __MIDL_IBindStatusCallback_0005 = 1048576; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_SECURITYOPTOUT: - __MIDL_IBindStatusCallback_0005 = 2097152; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_IGNOREMIMETEXTPLAIN: - __MIDL_IBindStatusCallback_0005 = 4194304; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_USEBINDSTRINGCREDS: - __MIDL_IBindStatusCallback_0005 = 8388608; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_IGNOREHTTPHTTPSREDIRECTS: - __MIDL_IBindStatusCallback_0005 = 16777216; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_IGNORE_SSLERRORS_ONCE: - __MIDL_IBindStatusCallback_0005 = 33554432; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_WPC_DOWNLOADBLOCKED: - __MIDL_IBindStatusCallback_0005 = 134217728; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_WPC_LOGGING_ENABLED: - __MIDL_IBindStatusCallback_0005 = 268435456; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_ALLOWCONNECTDATA: - __MIDL_IBindStatusCallback_0005 = 536870912; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_DISABLEAUTOREDIRECTS: - __MIDL_IBindStatusCallback_0005 = 1073741824; -pub const __MIDL_IBindStatusCallback_0005_BINDINFO_OPTIONS_SHDOCVW_NAVIGATE: - __MIDL_IBindStatusCallback_0005 = -2147483648; -pub type __MIDL_IBindStatusCallback_0005 = ::std::os::raw::c_int; -pub use self::__MIDL_IBindStatusCallback_0005 as BINDINFO_OPTIONS; -pub const __MIDL_IBindStatusCallback_0006_BSCF_FIRSTDATANOTIFICATION: - __MIDL_IBindStatusCallback_0006 = 1; -pub const __MIDL_IBindStatusCallback_0006_BSCF_INTERMEDIATEDATANOTIFICATION: - __MIDL_IBindStatusCallback_0006 = 2; -pub const __MIDL_IBindStatusCallback_0006_BSCF_LASTDATANOTIFICATION: - __MIDL_IBindStatusCallback_0006 = 4; -pub const __MIDL_IBindStatusCallback_0006_BSCF_DATAFULLYAVAILABLE: __MIDL_IBindStatusCallback_0006 = - 8; -pub const __MIDL_IBindStatusCallback_0006_BSCF_AVAILABLEDATASIZEUNKNOWN: - __MIDL_IBindStatusCallback_0006 = 16; -pub const __MIDL_IBindStatusCallback_0006_BSCF_SKIPDRAINDATAFORFILEURLS: - __MIDL_IBindStatusCallback_0006 = 32; -pub const __MIDL_IBindStatusCallback_0006_BSCF_64BITLENGTHDOWNLOAD: - __MIDL_IBindStatusCallback_0006 = 64; -pub type __MIDL_IBindStatusCallback_0006 = ::std::os::raw::c_int; -pub use self::__MIDL_IBindStatusCallback_0006 as BSCF; -pub const tagBINDSTATUS_BINDSTATUS_FINDINGRESOURCE: tagBINDSTATUS = 1; -pub const tagBINDSTATUS_BINDSTATUS_CONNECTING: tagBINDSTATUS = 2; -pub const tagBINDSTATUS_BINDSTATUS_REDIRECTING: tagBINDSTATUS = 3; -pub const tagBINDSTATUS_BINDSTATUS_BEGINDOWNLOADDATA: tagBINDSTATUS = 4; -pub const tagBINDSTATUS_BINDSTATUS_DOWNLOADINGDATA: tagBINDSTATUS = 5; -pub const tagBINDSTATUS_BINDSTATUS_ENDDOWNLOADDATA: tagBINDSTATUS = 6; -pub const tagBINDSTATUS_BINDSTATUS_BEGINDOWNLOADCOMPONENTS: tagBINDSTATUS = 7; -pub const tagBINDSTATUS_BINDSTATUS_INSTALLINGCOMPONENTS: tagBINDSTATUS = 8; -pub const tagBINDSTATUS_BINDSTATUS_ENDDOWNLOADCOMPONENTS: tagBINDSTATUS = 9; -pub const tagBINDSTATUS_BINDSTATUS_USINGCACHEDCOPY: tagBINDSTATUS = 10; -pub const tagBINDSTATUS_BINDSTATUS_SENDINGREQUEST: tagBINDSTATUS = 11; -pub const tagBINDSTATUS_BINDSTATUS_CLASSIDAVAILABLE: tagBINDSTATUS = 12; -pub const tagBINDSTATUS_BINDSTATUS_MIMETYPEAVAILABLE: tagBINDSTATUS = 13; -pub const tagBINDSTATUS_BINDSTATUS_CACHEFILENAMEAVAILABLE: tagBINDSTATUS = 14; -pub const tagBINDSTATUS_BINDSTATUS_BEGINSYNCOPERATION: tagBINDSTATUS = 15; -pub const tagBINDSTATUS_BINDSTATUS_ENDSYNCOPERATION: tagBINDSTATUS = 16; -pub const tagBINDSTATUS_BINDSTATUS_BEGINUPLOADDATA: tagBINDSTATUS = 17; -pub const tagBINDSTATUS_BINDSTATUS_UPLOADINGDATA: tagBINDSTATUS = 18; -pub const tagBINDSTATUS_BINDSTATUS_ENDUPLOADDATA: tagBINDSTATUS = 19; -pub const tagBINDSTATUS_BINDSTATUS_PROTOCOLCLASSID: tagBINDSTATUS = 20; -pub const tagBINDSTATUS_BINDSTATUS_ENCODING: tagBINDSTATUS = 21; -pub const tagBINDSTATUS_BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE: tagBINDSTATUS = 22; -pub const tagBINDSTATUS_BINDSTATUS_CLASSINSTALLLOCATION: tagBINDSTATUS = 23; -pub const tagBINDSTATUS_BINDSTATUS_DECODING: tagBINDSTATUS = 24; -pub const tagBINDSTATUS_BINDSTATUS_LOADINGMIMEHANDLER: tagBINDSTATUS = 25; -pub const tagBINDSTATUS_BINDSTATUS_CONTENTDISPOSITIONATTACH: tagBINDSTATUS = 26; -pub const tagBINDSTATUS_BINDSTATUS_FILTERREPORTMIMETYPE: tagBINDSTATUS = 27; -pub const tagBINDSTATUS_BINDSTATUS_CLSIDCANINSTANTIATE: tagBINDSTATUS = 28; -pub const tagBINDSTATUS_BINDSTATUS_IUNKNOWNAVAILABLE: tagBINDSTATUS = 29; -pub const tagBINDSTATUS_BINDSTATUS_DIRECTBIND: tagBINDSTATUS = 30; -pub const tagBINDSTATUS_BINDSTATUS_RAWMIMETYPE: tagBINDSTATUS = 31; -pub const tagBINDSTATUS_BINDSTATUS_PROXYDETECTING: tagBINDSTATUS = 32; -pub const tagBINDSTATUS_BINDSTATUS_ACCEPTRANGES: tagBINDSTATUS = 33; -pub const tagBINDSTATUS_BINDSTATUS_COOKIE_SENT: tagBINDSTATUS = 34; -pub const tagBINDSTATUS_BINDSTATUS_COMPACT_POLICY_RECEIVED: tagBINDSTATUS = 35; -pub const tagBINDSTATUS_BINDSTATUS_COOKIE_SUPPRESSED: tagBINDSTATUS = 36; -pub const tagBINDSTATUS_BINDSTATUS_COOKIE_STATE_UNKNOWN: tagBINDSTATUS = 37; -pub const tagBINDSTATUS_BINDSTATUS_COOKIE_STATE_ACCEPT: tagBINDSTATUS = 38; -pub const tagBINDSTATUS_BINDSTATUS_COOKIE_STATE_REJECT: tagBINDSTATUS = 39; -pub const tagBINDSTATUS_BINDSTATUS_COOKIE_STATE_PROMPT: tagBINDSTATUS = 40; -pub const tagBINDSTATUS_BINDSTATUS_COOKIE_STATE_LEASH: tagBINDSTATUS = 41; -pub const tagBINDSTATUS_BINDSTATUS_COOKIE_STATE_DOWNGRADE: tagBINDSTATUS = 42; -pub const tagBINDSTATUS_BINDSTATUS_POLICY_HREF: tagBINDSTATUS = 43; -pub const tagBINDSTATUS_BINDSTATUS_P3P_HEADER: tagBINDSTATUS = 44; -pub const tagBINDSTATUS_BINDSTATUS_SESSION_COOKIE_RECEIVED: tagBINDSTATUS = 45; -pub const tagBINDSTATUS_BINDSTATUS_PERSISTENT_COOKIE_RECEIVED: tagBINDSTATUS = 46; -pub const tagBINDSTATUS_BINDSTATUS_SESSION_COOKIES_ALLOWED: tagBINDSTATUS = 47; -pub const tagBINDSTATUS_BINDSTATUS_CACHECONTROL: tagBINDSTATUS = 48; -pub const tagBINDSTATUS_BINDSTATUS_CONTENTDISPOSITIONFILENAME: tagBINDSTATUS = 49; -pub const tagBINDSTATUS_BINDSTATUS_MIMETEXTPLAINMISMATCH: tagBINDSTATUS = 50; -pub const tagBINDSTATUS_BINDSTATUS_PUBLISHERAVAILABLE: tagBINDSTATUS = 51; -pub const tagBINDSTATUS_BINDSTATUS_DISPLAYNAMEAVAILABLE: tagBINDSTATUS = 52; -pub const tagBINDSTATUS_BINDSTATUS_SSLUX_NAVBLOCKED: tagBINDSTATUS = 53; -pub const tagBINDSTATUS_BINDSTATUS_SERVER_MIMETYPEAVAILABLE: tagBINDSTATUS = 54; -pub const tagBINDSTATUS_BINDSTATUS_SNIFFED_CLASSIDAVAILABLE: tagBINDSTATUS = 55; -pub const tagBINDSTATUS_BINDSTATUS_64BIT_PROGRESS: tagBINDSTATUS = 56; -pub const tagBINDSTATUS_BINDSTATUS_LAST: tagBINDSTATUS = 56; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_0: tagBINDSTATUS = 57; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_1: tagBINDSTATUS = 58; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_2: tagBINDSTATUS = 59; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_3: tagBINDSTATUS = 60; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_4: tagBINDSTATUS = 61; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_5: tagBINDSTATUS = 62; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_6: tagBINDSTATUS = 63; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_7: tagBINDSTATUS = 64; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_8: tagBINDSTATUS = 65; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_9: tagBINDSTATUS = 66; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_A: tagBINDSTATUS = 67; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_B: tagBINDSTATUS = 68; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_C: tagBINDSTATUS = 69; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_D: tagBINDSTATUS = 70; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_E: tagBINDSTATUS = 71; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_F: tagBINDSTATUS = 72; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_10: tagBINDSTATUS = 73; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_11: tagBINDSTATUS = 74; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_12: tagBINDSTATUS = 75; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_13: tagBINDSTATUS = 76; -pub const tagBINDSTATUS_BINDSTATUS_RESERVED_14: tagBINDSTATUS = 77; -pub const tagBINDSTATUS_BINDSTATUS_LAST_PRIVATE: tagBINDSTATUS = 77; -pub type tagBINDSTATUS = ::std::os::raw::c_int; -pub use self::tagBINDSTATUS as BINDSTATUS; -extern "C" { - pub static IID_IBindStatusCallback: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindStatusCallbackVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallback, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub OnStartBinding: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallback, - dwReserved: DWORD, - pib: *mut IBinding, - ) -> HRESULT, - >, - pub GetPriority: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBindStatusCallback, pnPriority: *mut LONG) -> HRESULT, - >, - pub OnLowResource: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBindStatusCallback, reserved: DWORD) -> HRESULT, - >, - pub OnProgress: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallback, - ulProgress: ULONG, - ulProgressMax: ULONG, - ulStatusCode: ULONG, - szStatusText: LPCWSTR, - ) -> HRESULT, - >, - pub OnStopBinding: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallback, - hresult: HRESULT, - szError: LPCWSTR, - ) -> HRESULT, - >, - pub GetBindInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallback, - grfBINDF: *mut DWORD, - pbindinfo: *mut BINDINFO, - ) -> HRESULT, - >, - pub OnDataAvailable: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallback, - grfBSCF: DWORD, - dwSize: DWORD, - pformatetc: *mut FORMATETC, - pstgmed: *mut STGMEDIUM, - ) -> HRESULT, - >, - pub OnObjectAvailable: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallback, - riid: *const IID, - punk: *mut IUnknown, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindStatusCallback { - pub lpVtbl: *mut IBindStatusCallbackVtbl, -} -extern "C" { - pub fn IBindStatusCallback_RemoteGetBindInfo_Proxy( - This: *mut IBindStatusCallback, - grfBINDF: *mut DWORD, - pbindinfo: *mut RemBINDINFO, - pstgmed: *mut RemSTGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn IBindStatusCallback_RemoteGetBindInfo_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IBindStatusCallback_RemoteOnDataAvailable_Proxy( - This: *mut IBindStatusCallback, - grfBSCF: DWORD, - dwSize: DWORD, - pformatetc: *mut RemFORMATETC, - pstgmed: *mut RemSTGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn IBindStatusCallback_RemoteOnDataAvailable_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0005_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0005_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPBINDSTATUSCALLBACKEX = *mut IBindStatusCallbackEx; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_DISABLEBASICOVERHTTP: - __MIDL_IBindStatusCallbackEx_0001 = 1; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_DISABLEAUTOCOOKIEHANDLING: - __MIDL_IBindStatusCallbackEx_0001 = 2; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_READ_DATA_GREATER_THAN_4GB: - __MIDL_IBindStatusCallbackEx_0001 = 4; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_DISABLE_HTTP_REDIRECT_XSECURITYID: - __MIDL_IBindStatusCallbackEx_0001 = 8; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_SETDOWNLOADMODE: - __MIDL_IBindStatusCallbackEx_0001 = 32; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_DISABLE_HTTP_REDIRECT_CACHING: - __MIDL_IBindStatusCallbackEx_0001 = 64; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_KEEP_CALLBACK_MODULE_LOADED: - __MIDL_IBindStatusCallbackEx_0001 = 128; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_ALLOW_PROXY_CRED_PROMPT: - __MIDL_IBindStatusCallbackEx_0001 = 256; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_17: __MIDL_IBindStatusCallbackEx_0001 = - 512; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_16: __MIDL_IBindStatusCallbackEx_0001 = - 1024; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_15: __MIDL_IBindStatusCallbackEx_0001 = - 2048; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_14: __MIDL_IBindStatusCallbackEx_0001 = - 4096; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_13: __MIDL_IBindStatusCallbackEx_0001 = - 8192; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_12: __MIDL_IBindStatusCallbackEx_0001 = - 16384; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_11: __MIDL_IBindStatusCallbackEx_0001 = - 32768; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_10: __MIDL_IBindStatusCallbackEx_0001 = - 65536; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_F: __MIDL_IBindStatusCallbackEx_0001 = - 131072; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_E: __MIDL_IBindStatusCallbackEx_0001 = - 262144; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_D: __MIDL_IBindStatusCallbackEx_0001 = - 524288; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_C: __MIDL_IBindStatusCallbackEx_0001 = - 1048576; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_B: __MIDL_IBindStatusCallbackEx_0001 = - 2097152; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_A: __MIDL_IBindStatusCallbackEx_0001 = - 4194304; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_9: __MIDL_IBindStatusCallbackEx_0001 = - 8388608; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_8: __MIDL_IBindStatusCallbackEx_0001 = - 16777216; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_7: __MIDL_IBindStatusCallbackEx_0001 = - 33554432; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_6: __MIDL_IBindStatusCallbackEx_0001 = - 67108864; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_5: __MIDL_IBindStatusCallbackEx_0001 = - 134217728; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_4: __MIDL_IBindStatusCallbackEx_0001 = - 268435456; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_3: __MIDL_IBindStatusCallbackEx_0001 = - 536870912; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_2: __MIDL_IBindStatusCallbackEx_0001 = - 1073741824; -pub const __MIDL_IBindStatusCallbackEx_0001_BINDF2_RESERVED_1: __MIDL_IBindStatusCallbackEx_0001 = - -2147483648; -pub type __MIDL_IBindStatusCallbackEx_0001 = ::std::os::raw::c_int; -pub use self::__MIDL_IBindStatusCallbackEx_0001 as BINDF2; -extern "C" { - pub static IID_IBindStatusCallbackEx: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindStatusCallbackExVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallbackEx, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub OnStartBinding: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallbackEx, - dwReserved: DWORD, - pib: *mut IBinding, - ) -> HRESULT, - >, - pub GetPriority: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBindStatusCallbackEx, pnPriority: *mut LONG) -> HRESULT, - >, - pub OnLowResource: ::std::option::Option< - unsafe extern "C" fn(This: *mut IBindStatusCallbackEx, reserved: DWORD) -> HRESULT, - >, - pub OnProgress: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallbackEx, - ulProgress: ULONG, - ulProgressMax: ULONG, - ulStatusCode: ULONG, - szStatusText: LPCWSTR, - ) -> HRESULT, - >, - pub OnStopBinding: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallbackEx, - hresult: HRESULT, - szError: LPCWSTR, - ) -> HRESULT, - >, - pub GetBindInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallbackEx, - grfBINDF: *mut DWORD, - pbindinfo: *mut BINDINFO, - ) -> HRESULT, - >, - pub OnDataAvailable: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallbackEx, - grfBSCF: DWORD, - dwSize: DWORD, - pformatetc: *mut FORMATETC, - pstgmed: *mut STGMEDIUM, - ) -> HRESULT, - >, - pub OnObjectAvailable: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallbackEx, - riid: *const IID, - punk: *mut IUnknown, - ) -> HRESULT, - >, - pub GetBindInfoEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindStatusCallbackEx, - grfBINDF: *mut DWORD, - pbindinfo: *mut BINDINFO, - grfBINDF2: *mut DWORD, - pdwReserved: *mut DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindStatusCallbackEx { - pub lpVtbl: *mut IBindStatusCallbackExVtbl, -} -extern "C" { - pub fn IBindStatusCallbackEx_RemoteGetBindInfoEx_Proxy( - This: *mut IBindStatusCallbackEx, - grfBINDF: *mut DWORD, - pbindinfo: *mut RemBINDINFO, - pstgmed: *mut RemSTGMEDIUM, - grfBINDF2: *mut DWORD, - pdwReserved: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IBindStatusCallbackEx_RemoteGetBindInfoEx_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0006_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0006_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPAUTHENTICATION = *mut IAuthenticate; -extern "C" { - pub static IID_IAuthenticate: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAuthenticateVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAuthenticate, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Authenticate: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAuthenticate, - phwnd: *mut HWND, - pszUsername: *mut LPWSTR, - pszPassword: *mut LPWSTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAuthenticate { - pub lpVtbl: *mut IAuthenticateVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0007_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0007_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPAUTHENTICATIONEX = *mut IAuthenticateEx; -pub const __MIDL_IAuthenticateEx_0001_AUTHENTICATEF_PROXY: __MIDL_IAuthenticateEx_0001 = 1; -pub const __MIDL_IAuthenticateEx_0001_AUTHENTICATEF_BASIC: __MIDL_IAuthenticateEx_0001 = 2; -pub const __MIDL_IAuthenticateEx_0001_AUTHENTICATEF_HTTP: __MIDL_IAuthenticateEx_0001 = 4; -pub type __MIDL_IAuthenticateEx_0001 = ::std::os::raw::c_int; -pub use self::__MIDL_IAuthenticateEx_0001 as AUTHENTICATEF; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _tagAUTHENTICATEINFO { - pub dwFlags: DWORD, - pub dwReserved: DWORD, -} -pub type AUTHENTICATEINFO = _tagAUTHENTICATEINFO; -extern "C" { - pub static IID_IAuthenticateEx: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAuthenticateExVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAuthenticateEx, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Authenticate: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAuthenticateEx, - phwnd: *mut HWND, - pszUsername: *mut LPWSTR, - pszPassword: *mut LPWSTR, - ) -> HRESULT, - >, - pub AuthenticateEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IAuthenticateEx, - phwnd: *mut HWND, - pszUsername: *mut LPWSTR, - pszPassword: *mut LPWSTR, - pauthinfo: *mut AUTHENTICATEINFO, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IAuthenticateEx { - pub lpVtbl: *mut IAuthenticateExVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0008_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0008_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPHTTPNEGOTIATE = *mut IHttpNegotiate; -extern "C" { - pub static IID_IHttpNegotiate: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IHttpNegotiateVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IHttpNegotiate, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub BeginningTransaction: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IHttpNegotiate, - szURL: LPCWSTR, - szHeaders: LPCWSTR, - dwReserved: DWORD, - pszAdditionalHeaders: *mut LPWSTR, - ) -> HRESULT, - >, - pub OnResponse: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IHttpNegotiate, - dwResponseCode: DWORD, - szResponseHeaders: LPCWSTR, - szRequestHeaders: LPCWSTR, - pszAdditionalRequestHeaders: *mut LPWSTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IHttpNegotiate { - pub lpVtbl: *mut IHttpNegotiateVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0009_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0009_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPHTTPNEGOTIATE2 = *mut IHttpNegotiate2; -extern "C" { - pub static IID_IHttpNegotiate2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IHttpNegotiate2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IHttpNegotiate2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub BeginningTransaction: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IHttpNegotiate2, - szURL: LPCWSTR, - szHeaders: LPCWSTR, - dwReserved: DWORD, - pszAdditionalHeaders: *mut LPWSTR, - ) -> HRESULT, - >, - pub OnResponse: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IHttpNegotiate2, - dwResponseCode: DWORD, - szResponseHeaders: LPCWSTR, - szRequestHeaders: LPCWSTR, - pszAdditionalRequestHeaders: *mut LPWSTR, - ) -> HRESULT, - >, - pub GetRootSecurityId: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IHttpNegotiate2, - pbSecurityId: *mut BYTE, - pcbSecurityId: *mut DWORD, - dwReserved: DWORD_PTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IHttpNegotiate2 { - pub lpVtbl: *mut IHttpNegotiate2Vtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0010_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0010_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPHTTPNEGOTIATE3 = *mut IHttpNegotiate3; -extern "C" { - pub static IID_IHttpNegotiate3: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IHttpNegotiate3Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IHttpNegotiate3, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub BeginningTransaction: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IHttpNegotiate3, - szURL: LPCWSTR, - szHeaders: LPCWSTR, - dwReserved: DWORD, - pszAdditionalHeaders: *mut LPWSTR, - ) -> HRESULT, - >, - pub OnResponse: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IHttpNegotiate3, - dwResponseCode: DWORD, - szResponseHeaders: LPCWSTR, - szRequestHeaders: LPCWSTR, - pszAdditionalRequestHeaders: *mut LPWSTR, - ) -> HRESULT, - >, - pub GetRootSecurityId: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IHttpNegotiate3, - pbSecurityId: *mut BYTE, - pcbSecurityId: *mut DWORD, - dwReserved: DWORD_PTR, - ) -> HRESULT, - >, - pub GetSerializedClientCertContext: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IHttpNegotiate3, - ppbCert: *mut *mut BYTE, - pcbCert: *mut DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IHttpNegotiate3 { - pub lpVtbl: *mut IHttpNegotiate3Vtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0011_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0011_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPWININETFILESTREAM = *mut IWinInetFileStream; -extern "C" { - pub static IID_IWinInetFileStream: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWinInetFileStreamVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWinInetFileStream, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub SetHandleForUnlock: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWinInetFileStream, - hWinInetLockHandle: DWORD_PTR, - dwReserved: DWORD_PTR, - ) -> HRESULT, - >, - pub SetDeleteFile: ::std::option::Option< - unsafe extern "C" fn(This: *mut IWinInetFileStream, dwReserved: DWORD_PTR) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWinInetFileStream { - pub lpVtbl: *mut IWinInetFileStreamVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0012_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0012_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPWINDOWFORBINDINGUI = *mut IWindowForBindingUI; -extern "C" { - pub static IID_IWindowForBindingUI: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWindowForBindingUIVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWindowForBindingUI, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetWindow: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWindowForBindingUI, - rguidReason: *const GUID, - phwnd: *mut HWND, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWindowForBindingUI { - pub lpVtbl: *mut IWindowForBindingUIVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0013_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0013_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPCODEINSTALL = *mut ICodeInstall; -pub const __MIDL_ICodeInstall_0001_CIP_DISK_FULL: __MIDL_ICodeInstall_0001 = 0; -pub const __MIDL_ICodeInstall_0001_CIP_ACCESS_DENIED: __MIDL_ICodeInstall_0001 = 1; -pub const __MIDL_ICodeInstall_0001_CIP_NEWER_VERSION_EXISTS: __MIDL_ICodeInstall_0001 = 2; -pub const __MIDL_ICodeInstall_0001_CIP_OLDER_VERSION_EXISTS: __MIDL_ICodeInstall_0001 = 3; -pub const __MIDL_ICodeInstall_0001_CIP_NAME_CONFLICT: __MIDL_ICodeInstall_0001 = 4; -pub const __MIDL_ICodeInstall_0001_CIP_TRUST_VERIFICATION_COMPONENT_MISSING: - __MIDL_ICodeInstall_0001 = 5; -pub const __MIDL_ICodeInstall_0001_CIP_EXE_SELF_REGISTERATION_TIMEOUT: __MIDL_ICodeInstall_0001 = 6; -pub const __MIDL_ICodeInstall_0001_CIP_UNSAFE_TO_ABORT: __MIDL_ICodeInstall_0001 = 7; -pub const __MIDL_ICodeInstall_0001_CIP_NEED_REBOOT: __MIDL_ICodeInstall_0001 = 8; -pub const __MIDL_ICodeInstall_0001_CIP_NEED_REBOOT_UI_PERMISSION: __MIDL_ICodeInstall_0001 = 9; -pub type __MIDL_ICodeInstall_0001 = ::std::os::raw::c_int; -pub use self::__MIDL_ICodeInstall_0001 as CIP_STATUS; -extern "C" { - pub static IID_ICodeInstall: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICodeInstallVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICodeInstall, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetWindow: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICodeInstall, - rguidReason: *const GUID, - phwnd: *mut HWND, - ) -> HRESULT, - >, - pub OnCodeInstallProblem: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICodeInstall, - ulStatusCode: ULONG, - szDestination: LPCWSTR, - szSource: LPCWSTR, - dwReserved: DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICodeInstall { - pub lpVtbl: *mut ICodeInstallVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0014_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0014_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub const __MIDL_IUri_0001_Uri_PROPERTY_ABSOLUTE_URI: __MIDL_IUri_0001 = 0; -pub const __MIDL_IUri_0001_Uri_PROPERTY_STRING_START: __MIDL_IUri_0001 = 0; -pub const __MIDL_IUri_0001_Uri_PROPERTY_AUTHORITY: __MIDL_IUri_0001 = 1; -pub const __MIDL_IUri_0001_Uri_PROPERTY_DISPLAY_URI: __MIDL_IUri_0001 = 2; -pub const __MIDL_IUri_0001_Uri_PROPERTY_DOMAIN: __MIDL_IUri_0001 = 3; -pub const __MIDL_IUri_0001_Uri_PROPERTY_EXTENSION: __MIDL_IUri_0001 = 4; -pub const __MIDL_IUri_0001_Uri_PROPERTY_FRAGMENT: __MIDL_IUri_0001 = 5; -pub const __MIDL_IUri_0001_Uri_PROPERTY_HOST: __MIDL_IUri_0001 = 6; -pub const __MIDL_IUri_0001_Uri_PROPERTY_PASSWORD: __MIDL_IUri_0001 = 7; -pub const __MIDL_IUri_0001_Uri_PROPERTY_PATH: __MIDL_IUri_0001 = 8; -pub const __MIDL_IUri_0001_Uri_PROPERTY_PATH_AND_QUERY: __MIDL_IUri_0001 = 9; -pub const __MIDL_IUri_0001_Uri_PROPERTY_QUERY: __MIDL_IUri_0001 = 10; -pub const __MIDL_IUri_0001_Uri_PROPERTY_RAW_URI: __MIDL_IUri_0001 = 11; -pub const __MIDL_IUri_0001_Uri_PROPERTY_SCHEME_NAME: __MIDL_IUri_0001 = 12; -pub const __MIDL_IUri_0001_Uri_PROPERTY_USER_INFO: __MIDL_IUri_0001 = 13; -pub const __MIDL_IUri_0001_Uri_PROPERTY_USER_NAME: __MIDL_IUri_0001 = 14; -pub const __MIDL_IUri_0001_Uri_PROPERTY_STRING_LAST: __MIDL_IUri_0001 = 14; -pub const __MIDL_IUri_0001_Uri_PROPERTY_HOST_TYPE: __MIDL_IUri_0001 = 15; -pub const __MIDL_IUri_0001_Uri_PROPERTY_DWORD_START: __MIDL_IUri_0001 = 15; -pub const __MIDL_IUri_0001_Uri_PROPERTY_PORT: __MIDL_IUri_0001 = 16; -pub const __MIDL_IUri_0001_Uri_PROPERTY_SCHEME: __MIDL_IUri_0001 = 17; -pub const __MIDL_IUri_0001_Uri_PROPERTY_ZONE: __MIDL_IUri_0001 = 18; -pub const __MIDL_IUri_0001_Uri_PROPERTY_DWORD_LAST: __MIDL_IUri_0001 = 18; -pub type __MIDL_IUri_0001 = ::std::os::raw::c_int; -pub use self::__MIDL_IUri_0001 as Uri_PROPERTY; -pub const __MIDL_IUri_0002_Uri_HOST_UNKNOWN: __MIDL_IUri_0002 = 0; -pub const __MIDL_IUri_0002_Uri_HOST_DNS: __MIDL_IUri_0002 = 1; -pub const __MIDL_IUri_0002_Uri_HOST_IPV4: __MIDL_IUri_0002 = 2; -pub const __MIDL_IUri_0002_Uri_HOST_IPV6: __MIDL_IUri_0002 = 3; -pub const __MIDL_IUri_0002_Uri_HOST_IDN: __MIDL_IUri_0002 = 4; -pub type __MIDL_IUri_0002 = ::std::os::raw::c_int; -pub use self::__MIDL_IUri_0002 as Uri_HOST_TYPE; -extern "C" { - pub static IID_IUri: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IUriVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUri, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetPropertyBSTR: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUri, - uriProp: Uri_PROPERTY, - pbstrProperty: *mut BSTR, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub GetPropertyLength: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUri, - uriProp: Uri_PROPERTY, - pcchProperty: *mut DWORD, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub GetPropertyDWORD: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUri, - uriProp: Uri_PROPERTY, - pdwProperty: *mut DWORD, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub HasProperty: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUri, - uriProp: Uri_PROPERTY, - pfHasProperty: *mut BOOL, - ) -> HRESULT, - >, - pub GetAbsoluteUri: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrAbsoluteUri: *mut BSTR) -> HRESULT, - >, - pub GetAuthority: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrAuthority: *mut BSTR) -> HRESULT, - >, - pub GetDisplayUri: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrDisplayString: *mut BSTR) -> HRESULT, - >, - pub GetDomain: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrDomain: *mut BSTR) -> HRESULT, - >, - pub GetExtension: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrExtension: *mut BSTR) -> HRESULT, - >, - pub GetFragment: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrFragment: *mut BSTR) -> HRESULT, - >, - pub GetHost: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrHost: *mut BSTR) -> HRESULT, - >, - pub GetPassword: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrPassword: *mut BSTR) -> HRESULT, - >, - pub GetPath: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrPath: *mut BSTR) -> HRESULT, - >, - pub GetPathAndQuery: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrPathAndQuery: *mut BSTR) -> HRESULT, - >, - pub GetQuery: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrQuery: *mut BSTR) -> HRESULT, - >, - pub GetRawUri: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrRawUri: *mut BSTR) -> HRESULT, - >, - pub GetSchemeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrSchemeName: *mut BSTR) -> HRESULT, - >, - pub GetUserInfo: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrUserInfo: *mut BSTR) -> HRESULT, - >, - pub GetUserNameA: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pbstrUserName: *mut BSTR) -> HRESULT, - >, - pub GetHostType: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pdwHostType: *mut DWORD) -> HRESULT, - >, - pub GetPort: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pdwPort: *mut DWORD) -> HRESULT, - >, - pub GetScheme: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pdwScheme: *mut DWORD) -> HRESULT, - >, - pub GetZone: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pdwZone: *mut DWORD) -> HRESULT, - >, - pub GetProperties: - ::std::option::Option HRESULT>, - pub IsEqual: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUri, pUri: *mut IUri, pfEqual: *mut BOOL) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IUri { - pub lpVtbl: *mut IUriVtbl, -} -extern "C" { - pub fn CreateUri( - pwzURI: LPCWSTR, - dwFlags: DWORD, - dwReserved: DWORD_PTR, - ppURI: *mut *mut IUri, - ) -> HRESULT; -} -extern "C" { - pub fn CreateUriWithFragment( - pwzURI: LPCWSTR, - pwzFragment: LPCWSTR, - dwFlags: DWORD, - dwReserved: DWORD_PTR, - ppURI: *mut *mut IUri, - ) -> HRESULT; -} -extern "C" { - pub fn CreateUriFromMultiByteString( - pszANSIInputUri: LPCSTR, - dwEncodingFlags: DWORD, - dwCodePage: DWORD, - dwCreateFlags: DWORD, - dwReserved: DWORD_PTR, - ppUri: *mut *mut IUri, - ) -> HRESULT; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0015_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0015_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IUriContainer: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IUriContainerVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriContainer, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetIUri: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUriContainer, ppIUri: *mut *mut IUri) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IUriContainer { - pub lpVtbl: *mut IUriContainerVtbl, -} -extern "C" { - pub static IID_IUriBuilder: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IUriBuilderVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilder, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub CreateUriSimple: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilder, - dwAllowEncodingPropertyMask: DWORD, - dwReserved: DWORD_PTR, - ppIUri: *mut *mut IUri, - ) -> HRESULT, - >, - pub CreateUri: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilder, - dwCreateFlags: DWORD, - dwAllowEncodingPropertyMask: DWORD, - dwReserved: DWORD_PTR, - ppIUri: *mut *mut IUri, - ) -> HRESULT, - >, - pub CreateUriWithFlags: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilder, - dwCreateFlags: DWORD, - dwUriBuilderFlags: DWORD, - dwAllowEncodingPropertyMask: DWORD, - dwReserved: DWORD_PTR, - ppIUri: *mut *mut IUri, - ) -> HRESULT, - >, - pub GetIUri: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUriBuilder, ppIUri: *mut *mut IUri) -> HRESULT, - >, - pub SetIUri: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUriBuilder, pIUri: *mut IUri) -> HRESULT, - >, - pub GetFragment: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilder, - pcchFragment: *mut DWORD, - ppwzFragment: *mut LPCWSTR, - ) -> HRESULT, - >, - pub GetHost: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilder, - pcchHost: *mut DWORD, - ppwzHost: *mut LPCWSTR, - ) -> HRESULT, - >, - pub GetPassword: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilder, - pcchPassword: *mut DWORD, - ppwzPassword: *mut LPCWSTR, - ) -> HRESULT, - >, - pub GetPath: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilder, - pcchPath: *mut DWORD, - ppwzPath: *mut LPCWSTR, - ) -> HRESULT, - >, - pub GetPort: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilder, - pfHasPort: *mut BOOL, - pdwPort: *mut DWORD, - ) -> HRESULT, - >, - pub GetQuery: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilder, - pcchQuery: *mut DWORD, - ppwzQuery: *mut LPCWSTR, - ) -> HRESULT, - >, - pub GetSchemeName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilder, - pcchSchemeName: *mut DWORD, - ppwzSchemeName: *mut LPCWSTR, - ) -> HRESULT, - >, - pub GetUserNameA: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilder, - pcchUserName: *mut DWORD, - ppwzUserName: *mut LPCWSTR, - ) -> HRESULT, - >, - pub SetFragment: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUriBuilder, pwzNewValue: LPCWSTR) -> HRESULT, - >, - pub SetHost: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUriBuilder, pwzNewValue: LPCWSTR) -> HRESULT, - >, - pub SetPassword: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUriBuilder, pwzNewValue: LPCWSTR) -> HRESULT, - >, - pub SetPath: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUriBuilder, pwzNewValue: LPCWSTR) -> HRESULT, - >, - pub SetPortA: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUriBuilder, fHasPort: BOOL, dwNewValue: DWORD) -> HRESULT, - >, - pub SetQuery: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUriBuilder, pwzNewValue: LPCWSTR) -> HRESULT, - >, - pub SetSchemeName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUriBuilder, pwzNewValue: LPCWSTR) -> HRESULT, - >, - pub SetUserName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUriBuilder, pwzNewValue: LPCWSTR) -> HRESULT, - >, - pub RemoveProperties: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUriBuilder, dwPropertyMask: DWORD) -> HRESULT, - >, - pub HasBeenModified: ::std::option::Option< - unsafe extern "C" fn(This: *mut IUriBuilder, pfModified: *mut BOOL) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IUriBuilder { - pub lpVtbl: *mut IUriBuilderVtbl, -} -extern "C" { - pub static IID_IUriBuilderFactory: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IUriBuilderFactoryVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilderFactory, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub CreateIUriBuilder: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilderFactory, - dwFlags: DWORD, - dwReserved: DWORD_PTR, - ppIUriBuilder: *mut *mut IUriBuilder, - ) -> HRESULT, - >, - pub CreateInitializedIUriBuilder: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IUriBuilderFactory, - dwFlags: DWORD, - dwReserved: DWORD_PTR, - ppIUriBuilder: *mut *mut IUriBuilder, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IUriBuilderFactory { - pub lpVtbl: *mut IUriBuilderFactoryVtbl, -} -extern "C" { - pub fn CreateIUriBuilder( - pIUri: *mut IUri, - dwFlags: DWORD, - dwReserved: DWORD_PTR, - ppIUriBuilder: *mut *mut IUriBuilder, - ) -> HRESULT; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0018_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0018_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPWININETINFO = *mut IWinInetInfo; -extern "C" { - pub static IID_IWinInetInfo: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWinInetInfoVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWinInetInfo, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub QueryOption: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWinInetInfo, - dwOption: DWORD, - pBuffer: LPVOID, - pcbBuf: *mut DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWinInetInfo { - pub lpVtbl: *mut IWinInetInfoVtbl, -} -extern "C" { - pub fn IWinInetInfo_RemoteQueryOption_Proxy( - This: *mut IWinInetInfo, - dwOption: DWORD, - pBuffer: *mut BYTE, - pcbBuf: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IWinInetInfo_RemoteQueryOption_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0019_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0019_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPHTTPSECURITY = *mut IHttpSecurity; -extern "C" { - pub static IID_IHttpSecurity: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IHttpSecurityVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IHttpSecurity, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetWindow: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IHttpSecurity, - rguidReason: *const GUID, - phwnd: *mut HWND, - ) -> HRESULT, - >, - pub OnSecurityProblem: ::std::option::Option< - unsafe extern "C" fn(This: *mut IHttpSecurity, dwProblem: DWORD) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IHttpSecurity { - pub lpVtbl: *mut IHttpSecurityVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0020_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0020_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPWININETHTTPINFO = *mut IWinInetHttpInfo; -extern "C" { - pub static IID_IWinInetHttpInfo: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWinInetHttpInfoVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWinInetHttpInfo, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub QueryOption: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWinInetHttpInfo, - dwOption: DWORD, - pBuffer: LPVOID, - pcbBuf: *mut DWORD, - ) -> HRESULT, - >, - pub QueryInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWinInetHttpInfo, - dwOption: DWORD, - pBuffer: LPVOID, - pcbBuf: *mut DWORD, - pdwFlags: *mut DWORD, - pdwReserved: *mut DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWinInetHttpInfo { - pub lpVtbl: *mut IWinInetHttpInfoVtbl, -} -extern "C" { - pub fn IWinInetHttpInfo_RemoteQueryInfo_Proxy( - This: *mut IWinInetHttpInfo, - dwOption: DWORD, - pBuffer: *mut BYTE, - pcbBuf: *mut DWORD, - pdwFlags: *mut DWORD, - pdwReserved: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IWinInetHttpInfo_RemoteQueryInfo_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0021_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0021_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IWinInetHttpTimeouts: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWinInetHttpTimeoutsVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWinInetHttpTimeouts, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetRequestTimeouts: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWinInetHttpTimeouts, - pdwConnectTimeout: *mut DWORD, - pdwSendTimeout: *mut DWORD, - pdwReceiveTimeout: *mut DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWinInetHttpTimeouts { - pub lpVtbl: *mut IWinInetHttpTimeoutsVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0022_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0022_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPWININETCACHEHINTS = *mut IWinInetCacheHints; -extern "C" { - pub static IID_IWinInetCacheHints: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWinInetCacheHintsVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWinInetCacheHints, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub SetCacheExtension: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWinInetCacheHints, - pwzExt: LPCWSTR, - pszCacheFile: LPVOID, - pcbCacheFile: *mut DWORD, - pdwWinInetError: *mut DWORD, - pdwReserved: *mut DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWinInetCacheHints { - pub lpVtbl: *mut IWinInetCacheHintsVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0023_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0023_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPWININETCACHEHINTS2 = *mut IWinInetCacheHints2; -extern "C" { - pub static IID_IWinInetCacheHints2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWinInetCacheHints2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWinInetCacheHints2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub SetCacheExtension: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWinInetCacheHints2, - pwzExt: LPCWSTR, - pszCacheFile: LPVOID, - pcbCacheFile: *mut DWORD, - pdwWinInetError: *mut DWORD, - pdwReserved: *mut DWORD, - ) -> HRESULT, - >, - pub SetCacheExtension2: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWinInetCacheHints2, - pwzExt: LPCWSTR, - pwzCacheFile: *mut WCHAR, - pcchCacheFile: *mut DWORD, - pdwWinInetError: *mut DWORD, - pdwReserved: *mut DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWinInetCacheHints2 { - pub lpVtbl: *mut IWinInetCacheHints2Vtbl, -} -extern "C" { - pub static SID_BindHost: GUID; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0024_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0024_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPBINDHOST = *mut IBindHost; -extern "C" { - pub static IID_IBindHost: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindHostVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindHost, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub CreateMoniker: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindHost, - szName: LPOLESTR, - pBC: *mut IBindCtx, - ppmk: *mut *mut IMoniker, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub MonikerBindToStorage: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindHost, - pMk: *mut IMoniker, - pBC: *mut IBindCtx, - pBSC: *mut IBindStatusCallback, - riid: *const IID, - ppvObj: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub MonikerBindToObject: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindHost, - pMk: *mut IMoniker, - pBC: *mut IBindCtx, - pBSC: *mut IBindStatusCallback, - riid: *const IID, - ppvObj: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindHost { - pub lpVtbl: *mut IBindHostVtbl, -} -extern "C" { - pub fn IBindHost_RemoteMonikerBindToStorage_Proxy( - This: *mut IBindHost, - pMk: *mut IMoniker, - pBC: *mut IBindCtx, - pBSC: *mut IBindStatusCallback, - riid: *const IID, - ppvObj: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn IBindHost_RemoteMonikerBindToStorage_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn IBindHost_RemoteMonikerBindToObject_Proxy( - This: *mut IBindHost, - pMk: *mut IMoniker, - pBC: *mut IBindCtx, - pBSC: *mut IBindStatusCallback, - riid: *const IID, - ppvObj: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn IBindHost_RemoteMonikerBindToObject_Stub( - This: *mut IRpcStubBuffer, - _pRpcChannelBuffer: *mut IRpcChannelBuffer, - _pRpcMessage: PRPC_MESSAGE, - _pdwStubPhase: *mut DWORD, - ); -} -extern "C" { - pub fn HlinkSimpleNavigateToString( - szTarget: LPCWSTR, - szLocation: LPCWSTR, - szTargetFrameName: LPCWSTR, - pUnk: *mut IUnknown, - pbc: *mut IBindCtx, - arg1: *mut IBindStatusCallback, - grfHLNF: DWORD, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn HlinkSimpleNavigateToMoniker( - pmkTarget: *mut IMoniker, - szLocation: LPCWSTR, - szTargetFrameName: LPCWSTR, - pUnk: *mut IUnknown, - pbc: *mut IBindCtx, - arg1: *mut IBindStatusCallback, - grfHLNF: DWORD, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn URLOpenStreamA( - arg1: LPUNKNOWN, - arg2: LPCSTR, - arg3: DWORD, - arg4: LPBINDSTATUSCALLBACK, - ) -> HRESULT; -} -extern "C" { - pub fn URLOpenStreamW( - arg1: LPUNKNOWN, - arg2: LPCWSTR, - arg3: DWORD, - arg4: LPBINDSTATUSCALLBACK, - ) -> HRESULT; -} -extern "C" { - pub fn URLOpenPullStreamA( - arg1: LPUNKNOWN, - arg2: LPCSTR, - arg3: DWORD, - arg4: LPBINDSTATUSCALLBACK, - ) -> HRESULT; -} -extern "C" { - pub fn URLOpenPullStreamW( - arg1: LPUNKNOWN, - arg2: LPCWSTR, - arg3: DWORD, - arg4: LPBINDSTATUSCALLBACK, - ) -> HRESULT; -} -extern "C" { - pub fn URLDownloadToFileA( - arg1: LPUNKNOWN, - arg2: LPCSTR, - arg3: LPCSTR, - arg4: DWORD, - arg5: LPBINDSTATUSCALLBACK, - ) -> HRESULT; -} -extern "C" { - pub fn URLDownloadToFileW( - arg1: LPUNKNOWN, - arg2: LPCWSTR, - arg3: LPCWSTR, - arg4: DWORD, - arg5: LPBINDSTATUSCALLBACK, - ) -> HRESULT; -} -extern "C" { - pub fn URLDownloadToCacheFileA( - arg1: LPUNKNOWN, - arg2: LPCSTR, - arg3: LPSTR, - cchFileName: DWORD, - arg4: DWORD, - arg5: LPBINDSTATUSCALLBACK, - ) -> HRESULT; -} -extern "C" { - pub fn URLDownloadToCacheFileW( - arg1: LPUNKNOWN, - arg2: LPCWSTR, - arg3: LPWSTR, - cchFileName: DWORD, - arg4: DWORD, - arg5: LPBINDSTATUSCALLBACK, - ) -> HRESULT; -} -extern "C" { - pub fn URLOpenBlockingStreamA( - arg1: LPUNKNOWN, - arg2: LPCSTR, - arg3: *mut LPSTREAM, - arg4: DWORD, - arg5: LPBINDSTATUSCALLBACK, - ) -> HRESULT; -} -extern "C" { - pub fn URLOpenBlockingStreamW( - arg1: LPUNKNOWN, - arg2: LPCWSTR, - arg3: *mut LPSTREAM, - arg4: DWORD, - arg5: LPBINDSTATUSCALLBACK, - ) -> HRESULT; -} -extern "C" { - pub fn HlinkGoBack(pUnk: *mut IUnknown) -> HRESULT; -} -extern "C" { - pub fn HlinkGoForward(pUnk: *mut IUnknown) -> HRESULT; -} -extern "C" { - pub fn HlinkNavigateString(pUnk: *mut IUnknown, szTarget: LPCWSTR) -> HRESULT; -} -extern "C" { - pub fn HlinkNavigateMoniker(pUnk: *mut IUnknown, pmkTarget: *mut IMoniker) -> HRESULT; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0025_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0025_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPIINTERNET = *mut IInternet; -extern "C" { - pub static IID_IInternet: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternet, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternet { - pub lpVtbl: *mut IInternetVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0026_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0026_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPIINTERNETBINDINFO = *mut IInternetBindInfo; -pub const tagBINDSTRING_BINDSTRING_HEADERS: tagBINDSTRING = 1; -pub const tagBINDSTRING_BINDSTRING_ACCEPT_MIMES: tagBINDSTRING = 2; -pub const tagBINDSTRING_BINDSTRING_EXTRA_URL: tagBINDSTRING = 3; -pub const tagBINDSTRING_BINDSTRING_LANGUAGE: tagBINDSTRING = 4; -pub const tagBINDSTRING_BINDSTRING_USERNAME: tagBINDSTRING = 5; -pub const tagBINDSTRING_BINDSTRING_PASSWORD: tagBINDSTRING = 6; -pub const tagBINDSTRING_BINDSTRING_UA_PIXELS: tagBINDSTRING = 7; -pub const tagBINDSTRING_BINDSTRING_UA_COLOR: tagBINDSTRING = 8; -pub const tagBINDSTRING_BINDSTRING_OS: tagBINDSTRING = 9; -pub const tagBINDSTRING_BINDSTRING_USER_AGENT: tagBINDSTRING = 10; -pub const tagBINDSTRING_BINDSTRING_ACCEPT_ENCODINGS: tagBINDSTRING = 11; -pub const tagBINDSTRING_BINDSTRING_POST_COOKIE: tagBINDSTRING = 12; -pub const tagBINDSTRING_BINDSTRING_POST_DATA_MIME: tagBINDSTRING = 13; -pub const tagBINDSTRING_BINDSTRING_URL: tagBINDSTRING = 14; -pub const tagBINDSTRING_BINDSTRING_IID: tagBINDSTRING = 15; -pub const tagBINDSTRING_BINDSTRING_FLAG_BIND_TO_OBJECT: tagBINDSTRING = 16; -pub const tagBINDSTRING_BINDSTRING_PTR_BIND_CONTEXT: tagBINDSTRING = 17; -pub const tagBINDSTRING_BINDSTRING_XDR_ORIGIN: tagBINDSTRING = 18; -pub const tagBINDSTRING_BINDSTRING_DOWNLOADPATH: tagBINDSTRING = 19; -pub const tagBINDSTRING_BINDSTRING_ROOTDOC_URL: tagBINDSTRING = 20; -pub const tagBINDSTRING_BINDSTRING_INITIAL_FILENAME: tagBINDSTRING = 21; -pub const tagBINDSTRING_BINDSTRING_PROXY_USERNAME: tagBINDSTRING = 22; -pub const tagBINDSTRING_BINDSTRING_PROXY_PASSWORD: tagBINDSTRING = 23; -pub const tagBINDSTRING_BINDSTRING_ENTERPRISE_ID: tagBINDSTRING = 24; -pub const tagBINDSTRING_BINDSTRING_DOC_URL: tagBINDSTRING = 25; -pub const tagBINDSTRING_BINDSTRING_SAMESITE_COOKIE_LEVEL: tagBINDSTRING = 26; -pub type tagBINDSTRING = ::std::os::raw::c_int; -pub use self::tagBINDSTRING as BINDSTRING; -extern "C" { - pub static IID_IInternetBindInfo: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetBindInfoVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetBindInfo, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetBindInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetBindInfo, - grfBINDF: *mut DWORD, - pbindinfo: *mut BINDINFO, - ) -> HRESULT, - >, - pub GetBindString: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetBindInfo, - ulStringType: ULONG, - ppwzStr: *mut LPOLESTR, - cEl: ULONG, - pcElFetched: *mut ULONG, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetBindInfo { - pub lpVtbl: *mut IInternetBindInfoVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0027_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0027_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPIINTERNETBINDINFOEX = *mut IInternetBindInfoEx; -extern "C" { - pub static IID_IInternetBindInfoEx: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetBindInfoExVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetBindInfoEx, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetBindInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetBindInfoEx, - grfBINDF: *mut DWORD, - pbindinfo: *mut BINDINFO, - ) -> HRESULT, - >, - pub GetBindString: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetBindInfoEx, - ulStringType: ULONG, - ppwzStr: *mut LPOLESTR, - cEl: ULONG, - pcElFetched: *mut ULONG, - ) -> HRESULT, - >, - pub GetBindInfoEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetBindInfoEx, - grfBINDF: *mut DWORD, - pbindinfo: *mut BINDINFO, - grfBINDF2: *mut DWORD, - pdwReserved: *mut DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetBindInfoEx { - pub lpVtbl: *mut IInternetBindInfoExVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0028_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0028_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPIINTERNETPROTOCOLROOT = *mut IInternetProtocolRoot; -pub const _tagPI_FLAGS_PI_PARSE_URL: _tagPI_FLAGS = 1; -pub const _tagPI_FLAGS_PI_FILTER_MODE: _tagPI_FLAGS = 2; -pub const _tagPI_FLAGS_PI_FORCE_ASYNC: _tagPI_FLAGS = 4; -pub const _tagPI_FLAGS_PI_USE_WORKERTHREAD: _tagPI_FLAGS = 8; -pub const _tagPI_FLAGS_PI_MIMEVERIFICATION: _tagPI_FLAGS = 16; -pub const _tagPI_FLAGS_PI_CLSIDLOOKUP: _tagPI_FLAGS = 32; -pub const _tagPI_FLAGS_PI_DATAPROGRESS: _tagPI_FLAGS = 64; -pub const _tagPI_FLAGS_PI_SYNCHRONOUS: _tagPI_FLAGS = 128; -pub const _tagPI_FLAGS_PI_APARTMENTTHREADED: _tagPI_FLAGS = 256; -pub const _tagPI_FLAGS_PI_CLASSINSTALL: _tagPI_FLAGS = 512; -pub const _tagPI_FLAGS_PI_PASSONBINDCTX: _tagPI_FLAGS = 8192; -pub const _tagPI_FLAGS_PI_NOMIMEHANDLER: _tagPI_FLAGS = 32768; -pub const _tagPI_FLAGS_PI_LOADAPPDIRECT: _tagPI_FLAGS = 16384; -pub const _tagPI_FLAGS_PD_FORCE_SWITCH: _tagPI_FLAGS = 65536; -pub const _tagPI_FLAGS_PI_PREFERDEFAULTHANDLER: _tagPI_FLAGS = 131072; -pub type _tagPI_FLAGS = ::std::os::raw::c_int; -pub use self::_tagPI_FLAGS as PI_FLAGS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _tagPROTOCOLDATA { - pub grfFlags: DWORD, - pub dwState: DWORD, - pub pData: LPVOID, - pub cbData: ULONG, -} -pub type PROTOCOLDATA = _tagPROTOCOLDATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _tagStartParam { - pub iid: IID, - pub pIBindCtx: *mut IBindCtx, - pub pItf: *mut IUnknown, -} -pub type StartParam = _tagStartParam; -extern "C" { - pub static IID_IInternetProtocolRoot: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetProtocolRootVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolRoot, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub Start: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolRoot, - szUrl: LPCWSTR, - pOIProtSink: *mut IInternetProtocolSink, - pOIBindInfo: *mut IInternetBindInfo, - grfPI: DWORD, - dwReserved: HANDLE_PTR, - ) -> HRESULT, - >, - pub Continue: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolRoot, - pProtocolData: *mut PROTOCOLDATA, - ) -> HRESULT, - >, - pub Abort: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolRoot, - hrReason: HRESULT, - dwOptions: DWORD, - ) -> HRESULT, - >, - pub Terminate: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetProtocolRoot, dwOptions: DWORD) -> HRESULT, - >, - pub Suspend: - ::std::option::Option HRESULT>, - pub Resume: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetProtocolRoot { - pub lpVtbl: *mut IInternetProtocolRootVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0029_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0029_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPIINTERNETPROTOCOL = *mut IInternetProtocol; -extern "C" { - pub static IID_IInternetProtocol: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetProtocolVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocol, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub Start: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocol, - szUrl: LPCWSTR, - pOIProtSink: *mut IInternetProtocolSink, - pOIBindInfo: *mut IInternetBindInfo, - grfPI: DWORD, - dwReserved: HANDLE_PTR, - ) -> HRESULT, - >, - pub Continue: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocol, - pProtocolData: *mut PROTOCOLDATA, - ) -> HRESULT, - >, - pub Abort: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocol, - hrReason: HRESULT, - dwOptions: DWORD, - ) -> HRESULT, - >, - pub Terminate: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetProtocol, dwOptions: DWORD) -> HRESULT, - >, - pub Suspend: - ::std::option::Option HRESULT>, - pub Resume: - ::std::option::Option HRESULT>, - pub Read: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocol, - pv: *mut ::std::os::raw::c_void, - cb: ULONG, - pcbRead: *mut ULONG, - ) -> HRESULT, - >, - pub Seek: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocol, - dlibMove: LARGE_INTEGER, - dwOrigin: DWORD, - plibNewPosition: *mut ULARGE_INTEGER, - ) -> HRESULT, - >, - pub LockRequest: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetProtocol, dwOptions: DWORD) -> HRESULT, - >, - pub UnlockRequest: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetProtocol { - pub lpVtbl: *mut IInternetProtocolVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0030_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0030_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IInternetProtocolEx: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetProtocolExVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolEx, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub Start: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolEx, - szUrl: LPCWSTR, - pOIProtSink: *mut IInternetProtocolSink, - pOIBindInfo: *mut IInternetBindInfo, - grfPI: DWORD, - dwReserved: HANDLE_PTR, - ) -> HRESULT, - >, - pub Continue: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolEx, - pProtocolData: *mut PROTOCOLDATA, - ) -> HRESULT, - >, - pub Abort: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolEx, - hrReason: HRESULT, - dwOptions: DWORD, - ) -> HRESULT, - >, - pub Terminate: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetProtocolEx, dwOptions: DWORD) -> HRESULT, - >, - pub Suspend: - ::std::option::Option HRESULT>, - pub Resume: - ::std::option::Option HRESULT>, - pub Read: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolEx, - pv: *mut ::std::os::raw::c_void, - cb: ULONG, - pcbRead: *mut ULONG, - ) -> HRESULT, - >, - pub Seek: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolEx, - dlibMove: LARGE_INTEGER, - dwOrigin: DWORD, - plibNewPosition: *mut ULARGE_INTEGER, - ) -> HRESULT, - >, - pub LockRequest: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetProtocolEx, dwOptions: DWORD) -> HRESULT, - >, - pub UnlockRequest: - ::std::option::Option HRESULT>, - pub StartEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolEx, - pUri: *mut IUri, - pOIProtSink: *mut IInternetProtocolSink, - pOIBindInfo: *mut IInternetBindInfo, - grfPI: DWORD, - dwReserved: HANDLE_PTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetProtocolEx { - pub lpVtbl: *mut IInternetProtocolExVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0031_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0031_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPIINTERNETPROTOCOLSINK = *mut IInternetProtocolSink; -extern "C" { - pub static IID_IInternetProtocolSink: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetProtocolSinkVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolSink, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub Switch: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolSink, - pProtocolData: *mut PROTOCOLDATA, - ) -> HRESULT, - >, - pub ReportProgress: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolSink, - ulStatusCode: ULONG, - szStatusText: LPCWSTR, - ) -> HRESULT, - >, - pub ReportData: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolSink, - grfBSCF: DWORD, - ulProgress: ULONG, - ulProgressMax: ULONG, - ) -> HRESULT, - >, - pub ReportResult: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolSink, - hrResult: HRESULT, - dwError: DWORD, - szResult: LPCWSTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetProtocolSink { - pub lpVtbl: *mut IInternetProtocolSinkVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0032_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0032_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPIINTERNETPROTOCOLSINKStackable = *mut IInternetProtocolSinkStackable; -extern "C" { - pub static IID_IInternetProtocolSinkStackable: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetProtocolSinkStackableVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolSinkStackable, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetProtocolSinkStackable) -> ULONG, - >, - pub Release: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetProtocolSinkStackable) -> ULONG, - >, - pub SwitchSink: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolSinkStackable, - pOIProtSink: *mut IInternetProtocolSink, - ) -> HRESULT, - >, - pub CommitSwitch: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetProtocolSinkStackable) -> HRESULT, - >, - pub RollbackSwitch: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetProtocolSinkStackable) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetProtocolSinkStackable { - pub lpVtbl: *mut IInternetProtocolSinkStackableVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0033_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0033_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPIINTERNETSESSION = *mut IInternetSession; -pub const _tagOIBDG_FLAGS_OIBDG_APARTMENTTHREADED: _tagOIBDG_FLAGS = 256; -pub const _tagOIBDG_FLAGS_OIBDG_DATAONLY: _tagOIBDG_FLAGS = 4096; -pub type _tagOIBDG_FLAGS = ::std::os::raw::c_int; -pub use self::_tagOIBDG_FLAGS as OIBDG_FLAGS; -extern "C" { - pub static IID_IInternetSession: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetSessionVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSession, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub RegisterNameSpace: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSession, - pCF: *mut IClassFactory, - rclsid: *const IID, - pwzProtocol: LPCWSTR, - cPatterns: ULONG, - ppwzPatterns: *const LPCWSTR, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub UnregisterNameSpace: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSession, - pCF: *mut IClassFactory, - pszProtocol: LPCWSTR, - ) -> HRESULT, - >, - pub RegisterMimeFilter: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSession, - pCF: *mut IClassFactory, - rclsid: *const IID, - pwzType: LPCWSTR, - ) -> HRESULT, - >, - pub UnregisterMimeFilter: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSession, - pCF: *mut IClassFactory, - pwzType: LPCWSTR, - ) -> HRESULT, - >, - pub CreateBinding: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSession, - pBC: LPBC, - szUrl: LPCWSTR, - pUnkOuter: *mut IUnknown, - ppUnk: *mut *mut IUnknown, - ppOInetProt: *mut *mut IInternetProtocol, - dwOption: DWORD, - ) -> HRESULT, - >, - pub SetSessionOption: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSession, - dwOption: DWORD, - pBuffer: LPVOID, - dwBufferLength: DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub GetSessionOption: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSession, - dwOption: DWORD, - pBuffer: LPVOID, - pdwBufferLength: *mut DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetSession { - pub lpVtbl: *mut IInternetSessionVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0034_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0034_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPIINTERNETTHREADSWITCH = *mut IInternetThreadSwitch; -extern "C" { - pub static IID_IInternetThreadSwitch: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetThreadSwitchVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetThreadSwitch, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub Prepare: - ::std::option::Option HRESULT>, - pub Continue: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetThreadSwitch { - pub lpVtbl: *mut IInternetThreadSwitchVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0035_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0035_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPIINTERNETPRIORITY = *mut IInternetPriority; -extern "C" { - pub static IID_IInternetPriority: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetPriorityVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetPriority, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub SetPriority: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetPriority, nPriority: LONG) -> HRESULT, - >, - pub GetPriority: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetPriority, pnPriority: *mut LONG) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetPriority { - pub lpVtbl: *mut IInternetPriorityVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0036_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0036_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPIINTERNETPROTOCOLINFO = *mut IInternetProtocolInfo; -pub const _tagPARSEACTION_PARSE_CANONICALIZE: _tagPARSEACTION = 1; -pub const _tagPARSEACTION_PARSE_FRIENDLY: _tagPARSEACTION = 2; -pub const _tagPARSEACTION_PARSE_SECURITY_URL: _tagPARSEACTION = 3; -pub const _tagPARSEACTION_PARSE_ROOTDOCUMENT: _tagPARSEACTION = 4; -pub const _tagPARSEACTION_PARSE_DOCUMENT: _tagPARSEACTION = 5; -pub const _tagPARSEACTION_PARSE_ANCHOR: _tagPARSEACTION = 6; -pub const _tagPARSEACTION_PARSE_ENCODE_IS_UNESCAPE: _tagPARSEACTION = 7; -pub const _tagPARSEACTION_PARSE_DECODE_IS_ESCAPE: _tagPARSEACTION = 8; -pub const _tagPARSEACTION_PARSE_PATH_FROM_URL: _tagPARSEACTION = 9; -pub const _tagPARSEACTION_PARSE_URL_FROM_PATH: _tagPARSEACTION = 10; -pub const _tagPARSEACTION_PARSE_MIME: _tagPARSEACTION = 11; -pub const _tagPARSEACTION_PARSE_SERVER: _tagPARSEACTION = 12; -pub const _tagPARSEACTION_PARSE_SCHEMA: _tagPARSEACTION = 13; -pub const _tagPARSEACTION_PARSE_SITE: _tagPARSEACTION = 14; -pub const _tagPARSEACTION_PARSE_DOMAIN: _tagPARSEACTION = 15; -pub const _tagPARSEACTION_PARSE_LOCATION: _tagPARSEACTION = 16; -pub const _tagPARSEACTION_PARSE_SECURITY_DOMAIN: _tagPARSEACTION = 17; -pub const _tagPARSEACTION_PARSE_ESCAPE: _tagPARSEACTION = 18; -pub const _tagPARSEACTION_PARSE_UNESCAPE: _tagPARSEACTION = 19; -pub type _tagPARSEACTION = ::std::os::raw::c_int; -pub use self::_tagPARSEACTION as PARSEACTION; -pub const _tagPSUACTION_PSU_DEFAULT: _tagPSUACTION = 1; -pub const _tagPSUACTION_PSU_SECURITY_URL_ONLY: _tagPSUACTION = 2; -pub type _tagPSUACTION = ::std::os::raw::c_int; -pub use self::_tagPSUACTION as PSUACTION; -pub const _tagQUERYOPTION_QUERY_EXPIRATION_DATE: _tagQUERYOPTION = 1; -pub const _tagQUERYOPTION_QUERY_TIME_OF_LAST_CHANGE: _tagQUERYOPTION = 2; -pub const _tagQUERYOPTION_QUERY_CONTENT_ENCODING: _tagQUERYOPTION = 3; -pub const _tagQUERYOPTION_QUERY_CONTENT_TYPE: _tagQUERYOPTION = 4; -pub const _tagQUERYOPTION_QUERY_REFRESH: _tagQUERYOPTION = 5; -pub const _tagQUERYOPTION_QUERY_RECOMBINE: _tagQUERYOPTION = 6; -pub const _tagQUERYOPTION_QUERY_CAN_NAVIGATE: _tagQUERYOPTION = 7; -pub const _tagQUERYOPTION_QUERY_USES_NETWORK: _tagQUERYOPTION = 8; -pub const _tagQUERYOPTION_QUERY_IS_CACHED: _tagQUERYOPTION = 9; -pub const _tagQUERYOPTION_QUERY_IS_INSTALLEDENTRY: _tagQUERYOPTION = 10; -pub const _tagQUERYOPTION_QUERY_IS_CACHED_OR_MAPPED: _tagQUERYOPTION = 11; -pub const _tagQUERYOPTION_QUERY_USES_CACHE: _tagQUERYOPTION = 12; -pub const _tagQUERYOPTION_QUERY_IS_SECURE: _tagQUERYOPTION = 13; -pub const _tagQUERYOPTION_QUERY_IS_SAFE: _tagQUERYOPTION = 14; -pub const _tagQUERYOPTION_QUERY_USES_HISTORYFOLDER: _tagQUERYOPTION = 15; -pub const _tagQUERYOPTION_QUERY_IS_CACHED_AND_USABLE_OFFLINE: _tagQUERYOPTION = 16; -pub type _tagQUERYOPTION = ::std::os::raw::c_int; -pub use self::_tagQUERYOPTION as QUERYOPTION; -extern "C" { - pub static IID_IInternetProtocolInfo: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetProtocolInfoVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolInfo, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub ParseUrl: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolInfo, - pwzUrl: LPCWSTR, - ParseAction: PARSEACTION, - dwParseFlags: DWORD, - pwzResult: LPWSTR, - cchResult: DWORD, - pcchResult: *mut DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub CombineUrl: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolInfo, - pwzBaseUrl: LPCWSTR, - pwzRelativeUrl: LPCWSTR, - dwCombineFlags: DWORD, - pwzResult: LPWSTR, - cchResult: DWORD, - pcchResult: *mut DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub CompareUrl: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolInfo, - pwzUrl1: LPCWSTR, - pwzUrl2: LPCWSTR, - dwCompareFlags: DWORD, - ) -> HRESULT, - >, - pub QueryInfo: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetProtocolInfo, - pwzUrl: LPCWSTR, - OueryOption: QUERYOPTION, - dwQueryFlags: DWORD, - pBuffer: LPVOID, - cbBuffer: DWORD, - pcbBuf: *mut DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetProtocolInfo { - pub lpVtbl: *mut IInternetProtocolInfoVtbl, -} -extern "C" { - pub fn CoInternetParseUrl( - pwzUrl: LPCWSTR, - ParseAction: PARSEACTION, - dwFlags: DWORD, - pszResult: LPWSTR, - cchResult: DWORD, - pcchResult: *mut DWORD, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CoInternetParseIUri( - pIUri: *mut IUri, - ParseAction: PARSEACTION, - dwFlags: DWORD, - pwzResult: LPWSTR, - cchResult: DWORD, - pcchResult: *mut DWORD, - dwReserved: DWORD_PTR, - ) -> HRESULT; -} -extern "C" { - pub fn CoInternetCombineUrl( - pwzBaseUrl: LPCWSTR, - pwzRelativeUrl: LPCWSTR, - dwCombineFlags: DWORD, - pszResult: LPWSTR, - cchResult: DWORD, - pcchResult: *mut DWORD, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CoInternetCombineUrlEx( - pBaseUri: *mut IUri, - pwzRelativeUrl: LPCWSTR, - dwCombineFlags: DWORD, - ppCombinedUri: *mut *mut IUri, - dwReserved: DWORD_PTR, - ) -> HRESULT; -} -extern "C" { - pub fn CoInternetCombineIUri( - pBaseUri: *mut IUri, - pRelativeUri: *mut IUri, - dwCombineFlags: DWORD, - ppCombinedUri: *mut *mut IUri, - dwReserved: DWORD_PTR, - ) -> HRESULT; -} -extern "C" { - pub fn CoInternetCompareUrl(pwzUrl1: LPCWSTR, pwzUrl2: LPCWSTR, dwFlags: DWORD) -> HRESULT; -} -extern "C" { - pub fn CoInternetGetProtocolFlags( - pwzUrl: LPCWSTR, - pdwFlags: *mut DWORD, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CoInternetQueryInfo( - pwzUrl: LPCWSTR, - QueryOptions: QUERYOPTION, - dwQueryFlags: DWORD, - pvBuffer: LPVOID, - cbBuffer: DWORD, - pcbBuffer: *mut DWORD, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CoInternetGetSession( - dwSessionMode: DWORD, - ppIInternetSession: *mut *mut IInternetSession, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CoInternetGetSecurityUrl( - pwszUrl: LPCWSTR, - ppwszSecUrl: *mut LPWSTR, - psuAction: PSUACTION, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn AsyncInstallDistributionUnit( - szDistUnit: LPCWSTR, - szTYPE: LPCWSTR, - szExt: LPCWSTR, - dwFileVersionMS: DWORD, - dwFileVersionLS: DWORD, - szURL: LPCWSTR, - pbc: *mut IBindCtx, - pvReserved: LPVOID, - flags: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CoInternetGetSecurityUrlEx( - pUri: *mut IUri, - ppSecUri: *mut *mut IUri, - psuAction: PSUACTION, - dwReserved: DWORD_PTR, - ) -> HRESULT; -} -pub const _tagINTERNETFEATURELIST_FEATURE_OBJECT_CACHING: _tagINTERNETFEATURELIST = 0; -pub const _tagINTERNETFEATURELIST_FEATURE_ZONE_ELEVATION: _tagINTERNETFEATURELIST = 1; -pub const _tagINTERNETFEATURELIST_FEATURE_MIME_HANDLING: _tagINTERNETFEATURELIST = 2; -pub const _tagINTERNETFEATURELIST_FEATURE_MIME_SNIFFING: _tagINTERNETFEATURELIST = 3; -pub const _tagINTERNETFEATURELIST_FEATURE_WINDOW_RESTRICTIONS: _tagINTERNETFEATURELIST = 4; -pub const _tagINTERNETFEATURELIST_FEATURE_WEBOC_POPUPMANAGEMENT: _tagINTERNETFEATURELIST = 5; -pub const _tagINTERNETFEATURELIST_FEATURE_BEHAVIORS: _tagINTERNETFEATURELIST = 6; -pub const _tagINTERNETFEATURELIST_FEATURE_DISABLE_MK_PROTOCOL: _tagINTERNETFEATURELIST = 7; -pub const _tagINTERNETFEATURELIST_FEATURE_LOCALMACHINE_LOCKDOWN: _tagINTERNETFEATURELIST = 8; -pub const _tagINTERNETFEATURELIST_FEATURE_SECURITYBAND: _tagINTERNETFEATURELIST = 9; -pub const _tagINTERNETFEATURELIST_FEATURE_RESTRICT_ACTIVEXINSTALL: _tagINTERNETFEATURELIST = 10; -pub const _tagINTERNETFEATURELIST_FEATURE_VALIDATE_NAVIGATE_URL: _tagINTERNETFEATURELIST = 11; -pub const _tagINTERNETFEATURELIST_FEATURE_RESTRICT_FILEDOWNLOAD: _tagINTERNETFEATURELIST = 12; -pub const _tagINTERNETFEATURELIST_FEATURE_ADDON_MANAGEMENT: _tagINTERNETFEATURELIST = 13; -pub const _tagINTERNETFEATURELIST_FEATURE_PROTOCOL_LOCKDOWN: _tagINTERNETFEATURELIST = 14; -pub const _tagINTERNETFEATURELIST_FEATURE_HTTP_USERNAME_PASSWORD_DISABLE: _tagINTERNETFEATURELIST = - 15; -pub const _tagINTERNETFEATURELIST_FEATURE_SAFE_BINDTOOBJECT: _tagINTERNETFEATURELIST = 16; -pub const _tagINTERNETFEATURELIST_FEATURE_UNC_SAVEDFILECHECK: _tagINTERNETFEATURELIST = 17; -pub const _tagINTERNETFEATURELIST_FEATURE_GET_URL_DOM_FILEPATH_UNENCODED: _tagINTERNETFEATURELIST = - 18; -pub const _tagINTERNETFEATURELIST_FEATURE_TABBED_BROWSING: _tagINTERNETFEATURELIST = 19; -pub const _tagINTERNETFEATURELIST_FEATURE_SSLUX: _tagINTERNETFEATURELIST = 20; -pub const _tagINTERNETFEATURELIST_FEATURE_DISABLE_NAVIGATION_SOUNDS: _tagINTERNETFEATURELIST = 21; -pub const _tagINTERNETFEATURELIST_FEATURE_DISABLE_LEGACY_COMPRESSION: _tagINTERNETFEATURELIST = 22; -pub const _tagINTERNETFEATURELIST_FEATURE_FORCE_ADDR_AND_STATUS: _tagINTERNETFEATURELIST = 23; -pub const _tagINTERNETFEATURELIST_FEATURE_XMLHTTP: _tagINTERNETFEATURELIST = 24; -pub const _tagINTERNETFEATURELIST_FEATURE_DISABLE_TELNET_PROTOCOL: _tagINTERNETFEATURELIST = 25; -pub const _tagINTERNETFEATURELIST_FEATURE_FEEDS: _tagINTERNETFEATURELIST = 26; -pub const _tagINTERNETFEATURELIST_FEATURE_BLOCK_INPUT_PROMPTS: _tagINTERNETFEATURELIST = 27; -pub const _tagINTERNETFEATURELIST_FEATURE_ENTRY_COUNT: _tagINTERNETFEATURELIST = 28; -pub type _tagINTERNETFEATURELIST = ::std::os::raw::c_int; -pub use self::_tagINTERNETFEATURELIST as INTERNETFEATURELIST; -extern "C" { - pub fn CoInternetSetFeatureEnabled( - FeatureEntry: INTERNETFEATURELIST, - dwFlags: DWORD, - fEnable: BOOL, - ) -> HRESULT; -} -extern "C" { - pub fn CoInternetIsFeatureEnabled(FeatureEntry: INTERNETFEATURELIST, dwFlags: DWORD) - -> HRESULT; -} -extern "C" { - pub fn CoInternetIsFeatureEnabledForUrl( - FeatureEntry: INTERNETFEATURELIST, - dwFlags: DWORD, - szURL: LPCWSTR, - pSecMgr: *mut IInternetSecurityManager, - ) -> HRESULT; -} -extern "C" { - pub fn CoInternetIsFeatureEnabledForIUri( - FeatureEntry: INTERNETFEATURELIST, - dwFlags: DWORD, - pIUri: *mut IUri, - pSecMgr: *mut IInternetSecurityManagerEx2, - ) -> HRESULT; -} -extern "C" { - pub fn CoInternetIsFeatureZoneElevationEnabled( - szFromURL: LPCWSTR, - szToURL: LPCWSTR, - pSecMgr: *mut IInternetSecurityManager, - dwFlags: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CopyStgMedium(pcstgmedSrc: *const STGMEDIUM, pstgmedDest: *mut STGMEDIUM) -> HRESULT; -} -extern "C" { - pub fn CopyBindInfo(pcbiSrc: *const BINDINFO, pbiDest: *mut BINDINFO) -> HRESULT; -} -extern "C" { - pub fn ReleaseBindInfo(pbindinfo: *mut BINDINFO); -} -extern "C" { - pub fn IEGetUserPrivateNamespaceName() -> PWSTR; -} -extern "C" { - pub fn CoInternetCreateSecurityManager( - pSP: *mut IServiceProvider, - ppSM: *mut *mut IInternetSecurityManager, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn CoInternetCreateZoneManager( - pSP: *mut IServiceProvider, - ppZM: *mut *mut IInternetZoneManager, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub static CLSID_InternetSecurityManager: IID; -} -extern "C" { - pub static CLSID_InternetZoneManager: IID; -} -extern "C" { - pub static CLSID_PersistentZoneIdentifier: IID; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0037_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0037_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IInternetSecurityMgrSite: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetSecurityMgrSiteVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityMgrSite, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetWindow: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetSecurityMgrSite, phwnd: *mut HWND) -> HRESULT, - >, - pub EnableModeless: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetSecurityMgrSite, fEnable: BOOL) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetSecurityMgrSite { - pub lpVtbl: *mut IInternetSecurityMgrSiteVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0038_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0038_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub const __MIDL_IInternetSecurityManager_0001_PUAF_DEFAULT: __MIDL_IInternetSecurityManager_0001 = - 0; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_NOUI: __MIDL_IInternetSecurityManager_0001 = 1; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_ISFILE: __MIDL_IInternetSecurityManager_0001 = - 2; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_WARN_IF_DENIED: - __MIDL_IInternetSecurityManager_0001 = 4; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_FORCEUI_FOREGROUND: - __MIDL_IInternetSecurityManager_0001 = 8; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_CHECK_TIFS: - __MIDL_IInternetSecurityManager_0001 = 16; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_DONTCHECKBOXINDIALOG: - __MIDL_IInternetSecurityManager_0001 = 32; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_TRUSTED: __MIDL_IInternetSecurityManager_0001 = - 64; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_ACCEPT_WILDCARD_SCHEME: - __MIDL_IInternetSecurityManager_0001 = 128; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_ENFORCERESTRICTED: - __MIDL_IInternetSecurityManager_0001 = 256; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_NOSAVEDFILECHECK: - __MIDL_IInternetSecurityManager_0001 = 512; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_REQUIRESAVEDFILECHECK: - __MIDL_IInternetSecurityManager_0001 = 1024; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_DONT_USE_CACHE: - __MIDL_IInternetSecurityManager_0001 = 4096; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_RESERVED1: - __MIDL_IInternetSecurityManager_0001 = 8192; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_RESERVED2: - __MIDL_IInternetSecurityManager_0001 = 16384; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_LMZ_UNLOCKED: - __MIDL_IInternetSecurityManager_0001 = 65536; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_LMZ_LOCKED: - __MIDL_IInternetSecurityManager_0001 = 131072; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_DEFAULTZONEPOL: - __MIDL_IInternetSecurityManager_0001 = 262144; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_NPL_USE_LOCKED_IF_RESTRICTED: - __MIDL_IInternetSecurityManager_0001 = 524288; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_NOUIIFLOCKED: - __MIDL_IInternetSecurityManager_0001 = 1048576; -pub const __MIDL_IInternetSecurityManager_0001_PUAF_DRAGPROTOCOLCHECK: - __MIDL_IInternetSecurityManager_0001 = 2097152; -pub type __MIDL_IInternetSecurityManager_0001 = ::std::os::raw::c_int; -pub use self::__MIDL_IInternetSecurityManager_0001 as PUAF; -pub const __MIDL_IInternetSecurityManager_0002_PUAFOUT_DEFAULT: - __MIDL_IInternetSecurityManager_0002 = 0; -pub const __MIDL_IInternetSecurityManager_0002_PUAFOUT_ISLOCKZONEPOLICY: - __MIDL_IInternetSecurityManager_0002 = 1; -pub type __MIDL_IInternetSecurityManager_0002 = ::std::os::raw::c_int; -pub use self::__MIDL_IInternetSecurityManager_0002 as PUAFOUT; -pub const __MIDL_IInternetSecurityManager_0003_SZM_CREATE: __MIDL_IInternetSecurityManager_0003 = 0; -pub const __MIDL_IInternetSecurityManager_0003_SZM_DELETE: __MIDL_IInternetSecurityManager_0003 = 1; -pub type __MIDL_IInternetSecurityManager_0003 = ::std::os::raw::c_int; -pub use self::__MIDL_IInternetSecurityManager_0003 as SZM_FLAGS; -extern "C" { - pub static IID_IInternetSecurityManager: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetSecurityManagerVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManager, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub SetSecuritySite: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManager, - pSite: *mut IInternetSecurityMgrSite, - ) -> HRESULT, - >, - pub GetSecuritySite: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManager, - ppSite: *mut *mut IInternetSecurityMgrSite, - ) -> HRESULT, - >, - pub MapUrlToZone: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManager, - pwszUrl: LPCWSTR, - pdwZone: *mut DWORD, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub GetSecurityId: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManager, - pwszUrl: LPCWSTR, - pbSecurityId: *mut BYTE, - pcbSecurityId: *mut DWORD, - dwReserved: DWORD_PTR, - ) -> HRESULT, - >, - pub ProcessUrlAction: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManager, - pwszUrl: LPCWSTR, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - pContext: *mut BYTE, - cbContext: DWORD, - dwFlags: DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub QueryCustomPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManager, - pwszUrl: LPCWSTR, - guidKey: *const GUID, - ppPolicy: *mut *mut BYTE, - pcbPolicy: *mut DWORD, - pContext: *mut BYTE, - cbContext: DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub SetZoneMapping: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManager, - dwZone: DWORD, - lpszPattern: LPCWSTR, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub GetZoneMappings: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManager, - dwZone: DWORD, - ppenumString: *mut *mut IEnumString, - dwFlags: DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetSecurityManager { - pub lpVtbl: *mut IInternetSecurityManagerVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0039_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0039_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IInternetSecurityManagerEx: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetSecurityManagerExVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub SetSecuritySite: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx, - pSite: *mut IInternetSecurityMgrSite, - ) -> HRESULT, - >, - pub GetSecuritySite: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx, - ppSite: *mut *mut IInternetSecurityMgrSite, - ) -> HRESULT, - >, - pub MapUrlToZone: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx, - pwszUrl: LPCWSTR, - pdwZone: *mut DWORD, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub GetSecurityId: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx, - pwszUrl: LPCWSTR, - pbSecurityId: *mut BYTE, - pcbSecurityId: *mut DWORD, - dwReserved: DWORD_PTR, - ) -> HRESULT, - >, - pub ProcessUrlAction: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx, - pwszUrl: LPCWSTR, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - pContext: *mut BYTE, - cbContext: DWORD, - dwFlags: DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub QueryCustomPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx, - pwszUrl: LPCWSTR, - guidKey: *const GUID, - ppPolicy: *mut *mut BYTE, - pcbPolicy: *mut DWORD, - pContext: *mut BYTE, - cbContext: DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub SetZoneMapping: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx, - dwZone: DWORD, - lpszPattern: LPCWSTR, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub GetZoneMappings: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx, - dwZone: DWORD, - ppenumString: *mut *mut IEnumString, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub ProcessUrlActionEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx, - pwszUrl: LPCWSTR, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - pContext: *mut BYTE, - cbContext: DWORD, - dwFlags: DWORD, - dwReserved: DWORD, - pdwOutFlags: *mut DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetSecurityManagerEx { - pub lpVtbl: *mut IInternetSecurityManagerExVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0040_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0040_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IInternetSecurityManagerEx2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetSecurityManagerEx2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetSecurityManagerEx2) -> ULONG, - >, - pub Release: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetSecurityManagerEx2) -> ULONG, - >, - pub SetSecuritySite: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx2, - pSite: *mut IInternetSecurityMgrSite, - ) -> HRESULT, - >, - pub GetSecuritySite: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx2, - ppSite: *mut *mut IInternetSecurityMgrSite, - ) -> HRESULT, - >, - pub MapUrlToZone: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx2, - pwszUrl: LPCWSTR, - pdwZone: *mut DWORD, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub GetSecurityId: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx2, - pwszUrl: LPCWSTR, - pbSecurityId: *mut BYTE, - pcbSecurityId: *mut DWORD, - dwReserved: DWORD_PTR, - ) -> HRESULT, - >, - pub ProcessUrlAction: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx2, - pwszUrl: LPCWSTR, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - pContext: *mut BYTE, - cbContext: DWORD, - dwFlags: DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub QueryCustomPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx2, - pwszUrl: LPCWSTR, - guidKey: *const GUID, - ppPolicy: *mut *mut BYTE, - pcbPolicy: *mut DWORD, - pContext: *mut BYTE, - cbContext: DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub SetZoneMapping: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx2, - dwZone: DWORD, - lpszPattern: LPCWSTR, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub GetZoneMappings: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx2, - dwZone: DWORD, - ppenumString: *mut *mut IEnumString, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub ProcessUrlActionEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx2, - pwszUrl: LPCWSTR, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - pContext: *mut BYTE, - cbContext: DWORD, - dwFlags: DWORD, - dwReserved: DWORD, - pdwOutFlags: *mut DWORD, - ) -> HRESULT, - >, - pub MapUrlToZoneEx2: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx2, - pUri: *mut IUri, - pdwZone: *mut DWORD, - dwFlags: DWORD, - ppwszMappedUrl: *mut LPWSTR, - pdwOutFlags: *mut DWORD, - ) -> HRESULT, - >, - pub ProcessUrlActionEx2: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx2, - pUri: *mut IUri, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - pContext: *mut BYTE, - cbContext: DWORD, - dwFlags: DWORD, - dwReserved: DWORD_PTR, - pdwOutFlags: *mut DWORD, - ) -> HRESULT, - >, - pub GetSecurityIdEx2: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx2, - pUri: *mut IUri, - pbSecurityId: *mut BYTE, - pcbSecurityId: *mut DWORD, - dwReserved: DWORD_PTR, - ) -> HRESULT, - >, - pub QueryCustomPolicyEx2: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetSecurityManagerEx2, - pUri: *mut IUri, - guidKey: *const GUID, - ppPolicy: *mut *mut BYTE, - pcbPolicy: *mut DWORD, - pContext: *mut BYTE, - cbContext: DWORD, - dwReserved: DWORD_PTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetSecurityManagerEx2 { - pub lpVtbl: *mut IInternetSecurityManagerEx2Vtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0041_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0041_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IZoneIdentifier: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IZoneIdentifierVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IZoneIdentifier, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetId: ::std::option::Option< - unsafe extern "C" fn(This: *mut IZoneIdentifier, pdwZone: *mut DWORD) -> HRESULT, - >, - pub SetId: ::std::option::Option< - unsafe extern "C" fn(This: *mut IZoneIdentifier, dwZone: DWORD) -> HRESULT, - >, - pub Remove: ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IZoneIdentifier { - pub lpVtbl: *mut IZoneIdentifierVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0042_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0042_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IZoneIdentifier2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IZoneIdentifier2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IZoneIdentifier2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetId: ::std::option::Option< - unsafe extern "C" fn(This: *mut IZoneIdentifier2, pdwZone: *mut DWORD) -> HRESULT, - >, - pub SetId: ::std::option::Option< - unsafe extern "C" fn(This: *mut IZoneIdentifier2, dwZone: DWORD) -> HRESULT, - >, - pub Remove: ::std::option::Option HRESULT>, - pub GetLastWriterPackageFamilyName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IZoneIdentifier2, - packageFamilyName: *mut LPWSTR, - ) -> HRESULT, - >, - pub SetLastWriterPackageFamilyName: ::std::option::Option< - unsafe extern "C" fn(This: *mut IZoneIdentifier2, packageFamilyName: LPCWSTR) -> HRESULT, - >, - pub RemoveLastWriterPackageFamilyName: - ::std::option::Option HRESULT>, - pub GetAppZoneId: ::std::option::Option< - unsafe extern "C" fn(This: *mut IZoneIdentifier2, zone: *mut DWORD) -> HRESULT, - >, - pub SetAppZoneId: ::std::option::Option< - unsafe extern "C" fn(This: *mut IZoneIdentifier2, zone: DWORD) -> HRESULT, - >, - pub RemoveAppZoneId: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IZoneIdentifier2 { - pub lpVtbl: *mut IZoneIdentifier2Vtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0043_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0043_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IInternetHostSecurityManager: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetHostSecurityManagerVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetHostSecurityManager, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetHostSecurityManager) -> ULONG, - >, - pub Release: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetHostSecurityManager) -> ULONG, - >, - pub GetSecurityId: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetHostSecurityManager, - pbSecurityId: *mut BYTE, - pcbSecurityId: *mut DWORD, - dwReserved: DWORD_PTR, - ) -> HRESULT, - >, - pub ProcessUrlAction: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetHostSecurityManager, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - pContext: *mut BYTE, - cbContext: DWORD, - dwFlags: DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub QueryCustomPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetHostSecurityManager, - guidKey: *const GUID, - ppPolicy: *mut *mut BYTE, - pcbPolicy: *mut DWORD, - pContext: *mut BYTE, - cbContext: DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetHostSecurityManager { - pub lpVtbl: *mut IInternetHostSecurityManagerVtbl, -} -extern "C" { - pub static GUID_CUSTOM_LOCALMACHINEZONEUNLOCKED: GUID; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0044_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0044_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPURLZONEMANAGER = *mut IInternetZoneManager; -pub const tagURLZONE_URLZONE_INVALID: tagURLZONE = -1; -pub const tagURLZONE_URLZONE_PREDEFINED_MIN: tagURLZONE = 0; -pub const tagURLZONE_URLZONE_LOCAL_MACHINE: tagURLZONE = 0; -pub const tagURLZONE_URLZONE_INTRANET: tagURLZONE = 1; -pub const tagURLZONE_URLZONE_TRUSTED: tagURLZONE = 2; -pub const tagURLZONE_URLZONE_INTERNET: tagURLZONE = 3; -pub const tagURLZONE_URLZONE_UNTRUSTED: tagURLZONE = 4; -pub const tagURLZONE_URLZONE_PREDEFINED_MAX: tagURLZONE = 999; -pub const tagURLZONE_URLZONE_USER_MIN: tagURLZONE = 1000; -pub const tagURLZONE_URLZONE_USER_MAX: tagURLZONE = 10000; -pub type tagURLZONE = ::std::os::raw::c_int; -pub use self::tagURLZONE as URLZONE; -pub const tagURLTEMPLATE_URLTEMPLATE_CUSTOM: tagURLTEMPLATE = 0; -pub const tagURLTEMPLATE_URLTEMPLATE_PREDEFINED_MIN: tagURLTEMPLATE = 65536; -pub const tagURLTEMPLATE_URLTEMPLATE_LOW: tagURLTEMPLATE = 65536; -pub const tagURLTEMPLATE_URLTEMPLATE_MEDLOW: tagURLTEMPLATE = 66816; -pub const tagURLTEMPLATE_URLTEMPLATE_MEDIUM: tagURLTEMPLATE = 69632; -pub const tagURLTEMPLATE_URLTEMPLATE_MEDHIGH: tagURLTEMPLATE = 70912; -pub const tagURLTEMPLATE_URLTEMPLATE_HIGH: tagURLTEMPLATE = 73728; -pub const tagURLTEMPLATE_URLTEMPLATE_PREDEFINED_MAX: tagURLTEMPLATE = 131072; -pub type tagURLTEMPLATE = ::std::os::raw::c_int; -pub use self::tagURLTEMPLATE as URLTEMPLATE; -pub const __MIDL_IInternetZoneManager_0001_MAX_ZONE_PATH: __MIDL_IInternetZoneManager_0001 = 260; -pub const __MIDL_IInternetZoneManager_0001_MAX_ZONE_DESCRIPTION: __MIDL_IInternetZoneManager_0001 = - 200; -pub type __MIDL_IInternetZoneManager_0001 = ::std::os::raw::c_int; -pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_CUSTOM_EDIT: __MIDL_IInternetZoneManager_0002 = - 1; -pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_ADD_SITES: __MIDL_IInternetZoneManager_0002 = 2; -pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_REQUIRE_VERIFICATION: - __MIDL_IInternetZoneManager_0002 = 4; -pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_INCLUDE_PROXY_OVERRIDE: - __MIDL_IInternetZoneManager_0002 = 8; -pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_INCLUDE_INTRANET_SITES: - __MIDL_IInternetZoneManager_0002 = 16; -pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_NO_UI: __MIDL_IInternetZoneManager_0002 = 32; -pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_SUPPORTS_VERIFICATION: - __MIDL_IInternetZoneManager_0002 = 64; -pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_UNC_AS_INTRANET: - __MIDL_IInternetZoneManager_0002 = 128; -pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_DETECT_INTRANET: - __MIDL_IInternetZoneManager_0002 = 256; -pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_USE_LOCKED_ZONES: - __MIDL_IInternetZoneManager_0002 = 65536; -pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_VERIFY_TEMPLATE_SETTINGS: - __MIDL_IInternetZoneManager_0002 = 131072; -pub const __MIDL_IInternetZoneManager_0002_ZAFLAGS_NO_CACHE: __MIDL_IInternetZoneManager_0002 = - 262144; -pub type __MIDL_IInternetZoneManager_0002 = ::std::os::raw::c_int; -pub use self::__MIDL_IInternetZoneManager_0002 as ZAFLAGS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ZONEATTRIBUTES { - pub cbSize: ULONG, - pub szDisplayName: [WCHAR; 260usize], - pub szDescription: [WCHAR; 200usize], - pub szIconPath: [WCHAR; 260usize], - pub dwTemplateMinLevel: DWORD, - pub dwTemplateRecommended: DWORD, - pub dwTemplateCurrentLevel: DWORD, - pub dwFlags: DWORD, -} -pub type ZONEATTRIBUTES = _ZONEATTRIBUTES; -pub type LPZONEATTRIBUTES = *mut _ZONEATTRIBUTES; -pub const _URLZONEREG_URLZONEREG_DEFAULT: _URLZONEREG = 0; -pub const _URLZONEREG_URLZONEREG_HKLM: _URLZONEREG = 1; -pub const _URLZONEREG_URLZONEREG_HKCU: _URLZONEREG = 2; -pub type _URLZONEREG = ::std::os::raw::c_int; -pub use self::_URLZONEREG as URLZONEREG; -extern "C" { - pub static IID_IInternetZoneManager: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetZoneManagerVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManager, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetZoneAttributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManager, - dwZone: DWORD, - pZoneAttributes: *mut ZONEATTRIBUTES, - ) -> HRESULT, - >, - pub SetZoneAttributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManager, - dwZone: DWORD, - pZoneAttributes: *mut ZONEATTRIBUTES, - ) -> HRESULT, - >, - pub GetZoneCustomPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManager, - dwZone: DWORD, - guidKey: *const GUID, - ppPolicy: *mut *mut BYTE, - pcbPolicy: *mut DWORD, - urlZoneReg: URLZONEREG, - ) -> HRESULT, - >, - pub SetZoneCustomPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManager, - dwZone: DWORD, - guidKey: *const GUID, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - urlZoneReg: URLZONEREG, - ) -> HRESULT, - >, - pub GetZoneActionPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManager, - dwZone: DWORD, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - urlZoneReg: URLZONEREG, - ) -> HRESULT, - >, - pub SetZoneActionPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManager, - dwZone: DWORD, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - urlZoneReg: URLZONEREG, - ) -> HRESULT, - >, - pub PromptAction: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManager, - dwAction: DWORD, - hwndParent: HWND, - pwszUrl: LPCWSTR, - pwszText: LPCWSTR, - dwPromptFlags: DWORD, - ) -> HRESULT, - >, - pub LogAction: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManager, - dwAction: DWORD, - pwszUrl: LPCWSTR, - pwszText: LPCWSTR, - dwLogFlags: DWORD, - ) -> HRESULT, - >, - pub CreateZoneEnumerator: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManager, - pdwEnum: *mut DWORD, - pdwCount: *mut DWORD, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub GetZoneAt: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManager, - dwEnum: DWORD, - dwIndex: DWORD, - pdwZone: *mut DWORD, - ) -> HRESULT, - >, - pub DestroyZoneEnumerator: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetZoneManager, dwEnum: DWORD) -> HRESULT, - >, - pub CopyTemplatePoliciesToZone: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManager, - dwTemplate: DWORD, - dwZone: DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetZoneManager { - pub lpVtbl: *mut IInternetZoneManagerVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0045_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0045_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IInternetZoneManagerEx: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetZoneManagerExVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetZoneAttributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx, - dwZone: DWORD, - pZoneAttributes: *mut ZONEATTRIBUTES, - ) -> HRESULT, - >, - pub SetZoneAttributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx, - dwZone: DWORD, - pZoneAttributes: *mut ZONEATTRIBUTES, - ) -> HRESULT, - >, - pub GetZoneCustomPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx, - dwZone: DWORD, - guidKey: *const GUID, - ppPolicy: *mut *mut BYTE, - pcbPolicy: *mut DWORD, - urlZoneReg: URLZONEREG, - ) -> HRESULT, - >, - pub SetZoneCustomPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx, - dwZone: DWORD, - guidKey: *const GUID, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - urlZoneReg: URLZONEREG, - ) -> HRESULT, - >, - pub GetZoneActionPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx, - dwZone: DWORD, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - urlZoneReg: URLZONEREG, - ) -> HRESULT, - >, - pub SetZoneActionPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx, - dwZone: DWORD, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - urlZoneReg: URLZONEREG, - ) -> HRESULT, - >, - pub PromptAction: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx, - dwAction: DWORD, - hwndParent: HWND, - pwszUrl: LPCWSTR, - pwszText: LPCWSTR, - dwPromptFlags: DWORD, - ) -> HRESULT, - >, - pub LogAction: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx, - dwAction: DWORD, - pwszUrl: LPCWSTR, - pwszText: LPCWSTR, - dwLogFlags: DWORD, - ) -> HRESULT, - >, - pub CreateZoneEnumerator: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx, - pdwEnum: *mut DWORD, - pdwCount: *mut DWORD, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub GetZoneAt: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx, - dwEnum: DWORD, - dwIndex: DWORD, - pdwZone: *mut DWORD, - ) -> HRESULT, - >, - pub DestroyZoneEnumerator: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetZoneManagerEx, dwEnum: DWORD) -> HRESULT, - >, - pub CopyTemplatePoliciesToZone: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx, - dwTemplate: DWORD, - dwZone: DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub GetZoneActionPolicyEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx, - dwZone: DWORD, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - urlZoneReg: URLZONEREG, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub SetZoneActionPolicyEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx, - dwZone: DWORD, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - urlZoneReg: URLZONEREG, - dwFlags: DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetZoneManagerEx { - pub lpVtbl: *mut IInternetZoneManagerExVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0046_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0046_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IInternetZoneManagerEx2: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetZoneManagerEx2Vtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetZoneAttributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - dwZone: DWORD, - pZoneAttributes: *mut ZONEATTRIBUTES, - ) -> HRESULT, - >, - pub SetZoneAttributes: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - dwZone: DWORD, - pZoneAttributes: *mut ZONEATTRIBUTES, - ) -> HRESULT, - >, - pub GetZoneCustomPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - dwZone: DWORD, - guidKey: *const GUID, - ppPolicy: *mut *mut BYTE, - pcbPolicy: *mut DWORD, - urlZoneReg: URLZONEREG, - ) -> HRESULT, - >, - pub SetZoneCustomPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - dwZone: DWORD, - guidKey: *const GUID, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - urlZoneReg: URLZONEREG, - ) -> HRESULT, - >, - pub GetZoneActionPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - dwZone: DWORD, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - urlZoneReg: URLZONEREG, - ) -> HRESULT, - >, - pub SetZoneActionPolicy: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - dwZone: DWORD, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - urlZoneReg: URLZONEREG, - ) -> HRESULT, - >, - pub PromptAction: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - dwAction: DWORD, - hwndParent: HWND, - pwszUrl: LPCWSTR, - pwszText: LPCWSTR, - dwPromptFlags: DWORD, - ) -> HRESULT, - >, - pub LogAction: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - dwAction: DWORD, - pwszUrl: LPCWSTR, - pwszText: LPCWSTR, - dwLogFlags: DWORD, - ) -> HRESULT, - >, - pub CreateZoneEnumerator: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - pdwEnum: *mut DWORD, - pdwCount: *mut DWORD, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub GetZoneAt: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - dwEnum: DWORD, - dwIndex: DWORD, - pdwZone: *mut DWORD, - ) -> HRESULT, - >, - pub DestroyZoneEnumerator: ::std::option::Option< - unsafe extern "C" fn(This: *mut IInternetZoneManagerEx2, dwEnum: DWORD) -> HRESULT, - >, - pub CopyTemplatePoliciesToZone: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - dwTemplate: DWORD, - dwZone: DWORD, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub GetZoneActionPolicyEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - dwZone: DWORD, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - urlZoneReg: URLZONEREG, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub SetZoneActionPolicyEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - dwZone: DWORD, - dwAction: DWORD, - pPolicy: *mut BYTE, - cbPolicy: DWORD, - urlZoneReg: URLZONEREG, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub GetZoneAttributesEx: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - dwZone: DWORD, - pZoneAttributes: *mut ZONEATTRIBUTES, - dwFlags: DWORD, - ) -> HRESULT, - >, - pub GetZoneSecurityState: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - dwZoneIndex: DWORD, - fRespectPolicy: BOOL, - pdwState: LPDWORD, - pfPolicyEncountered: *mut BOOL, - ) -> HRESULT, - >, - pub GetIESecurityState: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IInternetZoneManagerEx2, - fRespectPolicy: BOOL, - pdwState: LPDWORD, - pfPolicyEncountered: *mut BOOL, - fNoCache: BOOL, - ) -> HRESULT, - >, - pub FixUnsecureSettings: - ::std::option::Option HRESULT>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IInternetZoneManagerEx2 { - pub lpVtbl: *mut IInternetZoneManagerEx2Vtbl, -} -extern "C" { - pub static CLSID_SoftDistExt: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _tagCODEBASEHOLD { - pub cbSize: ULONG, - pub szDistUnit: LPWSTR, - pub szCodeBase: LPWSTR, - pub dwVersionMS: DWORD, - pub dwVersionLS: DWORD, - pub dwStyle: DWORD, -} -pub type CODEBASEHOLD = _tagCODEBASEHOLD; -pub type LPCODEBASEHOLD = *mut _tagCODEBASEHOLD; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _tagSOFTDISTINFO { - pub cbSize: ULONG, - pub dwFlags: DWORD, - pub dwAdState: DWORD, - pub szTitle: LPWSTR, - pub szAbstract: LPWSTR, - pub szHREF: LPWSTR, - pub dwInstalledVersionMS: DWORD, - pub dwInstalledVersionLS: DWORD, - pub dwUpdateVersionMS: DWORD, - pub dwUpdateVersionLS: DWORD, - pub dwAdvertisedVersionMS: DWORD, - pub dwAdvertisedVersionLS: DWORD, - pub dwReserved: DWORD, -} -pub type SOFTDISTINFO = _tagSOFTDISTINFO; -pub type LPSOFTDISTINFO = *mut _tagSOFTDISTINFO; -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0047_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0047_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_ISoftDistExt: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISoftDistExtVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISoftDistExt, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub ProcessSoftDist: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISoftDistExt, - szCDFURL: LPCWSTR, - pSoftDistElement: *mut IXMLElement, - lpsdi: LPSOFTDISTINFO, - ) -> HRESULT, - >, - pub GetFirstCodeBase: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISoftDistExt, - szCodeBase: *mut LPWSTR, - dwMaxSize: LPDWORD, - ) -> HRESULT, - >, - pub GetNextCodeBase: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISoftDistExt, - szCodeBase: *mut LPWSTR, - dwMaxSize: LPDWORD, - ) -> HRESULT, - >, - pub AsyncInstallDistributionUnit: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ISoftDistExt, - pbc: *mut IBindCtx, - pvReserved: LPVOID, - flags: DWORD, - lpcbh: LPCODEBASEHOLD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ISoftDistExt { - pub lpVtbl: *mut ISoftDistExtVtbl, -} -extern "C" { - pub fn GetSoftwareUpdateInfo(szDistUnit: LPCWSTR, psdi: LPSOFTDISTINFO) -> HRESULT; -} -extern "C" { - pub fn SetSoftwareUpdateAdvertisementState( - szDistUnit: LPCWSTR, - dwAdState: DWORD, - dwAdvertisedVersionMS: DWORD, - dwAdvertisedVersionLS: DWORD, - ) -> HRESULT; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0048_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0048_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPCATALOGFILEINFO = *mut ICatalogFileInfo; -extern "C" { - pub static IID_ICatalogFileInfo: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICatalogFileInfoVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICatalogFileInfo, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetCatalogFile: ::std::option::Option< - unsafe extern "C" fn(This: *mut ICatalogFileInfo, ppszCatalogFile: *mut LPSTR) -> HRESULT, - >, - pub GetJavaTrust: ::std::option::Option< - unsafe extern "C" fn( - This: *mut ICatalogFileInfo, - ppJavaTrust: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ICatalogFileInfo { - pub lpVtbl: *mut ICatalogFileInfoVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0049_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0049_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPDATAFILTER = *mut IDataFilter; -extern "C" { - pub static IID_IDataFilter: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDataFilterVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataFilter, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub DoEncode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataFilter, - dwFlags: DWORD, - lInBufferSize: LONG, - pbInBuffer: *mut BYTE, - lOutBufferSize: LONG, - pbOutBuffer: *mut BYTE, - lInBytesAvailable: LONG, - plInBytesRead: *mut LONG, - plOutBytesWritten: *mut LONG, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub DoDecode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IDataFilter, - dwFlags: DWORD, - lInBufferSize: LONG, - pbInBuffer: *mut BYTE, - lOutBufferSize: LONG, - pbOutBuffer: *mut BYTE, - lInBytesAvailable: LONG, - plInBytesRead: *mut LONG, - plOutBytesWritten: *mut LONG, - dwReserved: DWORD, - ) -> HRESULT, - >, - pub SetEncodingLevel: ::std::option::Option< - unsafe extern "C" fn(This: *mut IDataFilter, dwEncLevel: DWORD) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IDataFilter { - pub lpVtbl: *mut IDataFilterVtbl, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _tagPROTOCOLFILTERDATA { - pub cbSize: DWORD, - pub pProtocolSink: *mut IInternetProtocolSink, - pub pProtocol: *mut IInternetProtocol, - pub pUnk: *mut IUnknown, - pub dwFilterFlags: DWORD, -} -pub type PROTOCOLFILTERDATA = _tagPROTOCOLFILTERDATA; -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0050_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0050_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPENCODINGFILTERFACTORY = *mut IEncodingFilterFactory; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _tagDATAINFO { - pub ulTotalSize: ULONG, - pub ulavrPacketSize: ULONG, - pub ulConnectSpeed: ULONG, - pub ulProcessorSpeed: ULONG, -} -pub type DATAINFO = _tagDATAINFO; -extern "C" { - pub static IID_IEncodingFilterFactory: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEncodingFilterFactoryVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEncodingFilterFactory, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub FindBestFilter: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEncodingFilterFactory, - pwzCodeIn: LPCWSTR, - pwzCodeOut: LPCWSTR, - info: DATAINFO, - ppDF: *mut *mut IDataFilter, - ) -> HRESULT, - >, - pub GetDefaultFilter: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IEncodingFilterFactory, - pwzCodeIn: LPCWSTR, - pwzCodeOut: LPCWSTR, - ppDF: *mut *mut IDataFilter, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IEncodingFilterFactory { - pub lpVtbl: *mut IEncodingFilterFactoryVtbl, -} -extern "C" { - pub fn IsLoggingEnabledA(pszUrl: LPCSTR) -> BOOL; -} -extern "C" { - pub fn IsLoggingEnabledW(pwszUrl: LPCWSTR) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _tagHIT_LOGGING_INFO { - pub dwStructSize: DWORD, - pub lpszLoggedUrlName: LPSTR, - pub StartTime: SYSTEMTIME, - pub EndTime: SYSTEMTIME, - pub lpszExtendedInfo: LPSTR, -} -pub type HIT_LOGGING_INFO = _tagHIT_LOGGING_INFO; -pub type LPHIT_LOGGING_INFO = *mut _tagHIT_LOGGING_INFO; -extern "C" { - pub fn WriteHitLogging(lpLogginginfo: LPHIT_LOGGING_INFO) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CONFIRMSAFETY { - pub clsid: CLSID, - pub pUnk: *mut IUnknown, - pub dwFlags: DWORD, -} -extern "C" { - pub static GUID_CUSTOM_CONFIRMOBJECTSAFETY: GUID; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0051_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0051_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPIWRAPPEDPROTOCOL = *mut IWrappedProtocol; -extern "C" { - pub static IID_IWrappedProtocol: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWrappedProtocolVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWrappedProtocol, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetWrapperCode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IWrappedProtocol, - pnCode: *mut LONG, - dwReserved: DWORD_PTR, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IWrappedProtocol { - pub lpVtbl: *mut IWrappedProtocolVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0052_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0052_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPGETBINDHANDLE = *mut IGetBindHandle; -pub const __MIDL_IGetBindHandle_0001_BINDHANDLETYPES_APPCACHE: __MIDL_IGetBindHandle_0001 = 0; -pub const __MIDL_IGetBindHandle_0001_BINDHANDLETYPES_DEPENDENCY: __MIDL_IGetBindHandle_0001 = 1; -pub const __MIDL_IGetBindHandle_0001_BINDHANDLETYPES_COUNT: __MIDL_IGetBindHandle_0001 = 2; -pub type __MIDL_IGetBindHandle_0001 = ::std::os::raw::c_int; -pub use self::__MIDL_IGetBindHandle_0001 as BINDHANDLETYPES; -extern "C" { - pub static IID_IGetBindHandle: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IGetBindHandleVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IGetBindHandle, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetBindHandle: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IGetBindHandle, - enumRequestedHandle: BINDHANDLETYPES, - pRetHandle: *mut HANDLE, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IGetBindHandle { - pub lpVtbl: *mut IGetBindHandleVtbl, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _tagPROTOCOL_ARGUMENT { - pub szMethod: LPCWSTR, - pub szTargetUrl: LPCWSTR, -} -pub type PROTOCOL_ARGUMENT = _tagPROTOCOL_ARGUMENT; -pub type LPPROTOCOL_ARGUMENT = *mut _tagPROTOCOL_ARGUMENT; -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0053_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0053_v0_0_s_ifspec: RPC_IF_HANDLE; -} -pub type LPBINDCALLBACKREDIRECT = *mut IBindCallbackRedirect; -extern "C" { - pub static IID_IBindCallbackRedirect: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindCallbackRedirectVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindCallbackRedirect, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub Redirect: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindCallbackRedirect, - lpcUrl: LPCWSTR, - vbCancel: *mut VARIANT_BOOL, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindCallbackRedirect { - pub lpVtbl: *mut IBindCallbackRedirectVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0054_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0054_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static IID_IBindHttpSecurity: IID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindHttpSecurityVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindHttpSecurity, - riid: *const IID, - ppvObject: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: ::std::option::Option ULONG>, - pub Release: ::std::option::Option ULONG>, - pub GetIgnoreCertMask: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IBindHttpSecurity, - pdwIgnoreCertMask: *mut DWORD, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IBindHttpSecurity { - pub lpVtbl: *mut IBindHttpSecurityVtbl, -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0055_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_urlmon_0000_0055_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub fn IBinding_GetBindResult_Proxy( - This: *mut IBinding, - pclsidProtocol: *mut CLSID, - pdwResult: *mut DWORD, - pszResult: *mut LPOLESTR, - pdwReserved: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IBinding_GetBindResult_Stub( - This: *mut IBinding, - pclsidProtocol: *mut CLSID, - pdwResult: *mut DWORD, - pszResult: *mut LPOLESTR, - dwReserved: DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IBindStatusCallback_GetBindInfo_Proxy( - This: *mut IBindStatusCallback, - grfBINDF: *mut DWORD, - pbindinfo: *mut BINDINFO, - ) -> HRESULT; -} -extern "C" { - pub fn IBindStatusCallback_GetBindInfo_Stub( - This: *mut IBindStatusCallback, - grfBINDF: *mut DWORD, - pbindinfo: *mut RemBINDINFO, - pstgmed: *mut RemSTGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn IBindStatusCallback_OnDataAvailable_Proxy( - This: *mut IBindStatusCallback, - grfBSCF: DWORD, - dwSize: DWORD, - pformatetc: *mut FORMATETC, - pstgmed: *mut STGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn IBindStatusCallback_OnDataAvailable_Stub( - This: *mut IBindStatusCallback, - grfBSCF: DWORD, - dwSize: DWORD, - pformatetc: *mut RemFORMATETC, - pstgmed: *mut RemSTGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub fn IBindStatusCallbackEx_GetBindInfoEx_Proxy( - This: *mut IBindStatusCallbackEx, - grfBINDF: *mut DWORD, - pbindinfo: *mut BINDINFO, - grfBINDF2: *mut DWORD, - pdwReserved: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IBindStatusCallbackEx_GetBindInfoEx_Stub( - This: *mut IBindStatusCallbackEx, - grfBINDF: *mut DWORD, - pbindinfo: *mut RemBINDINFO, - pstgmed: *mut RemSTGMEDIUM, - grfBINDF2: *mut DWORD, - pdwReserved: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IWinInetInfo_QueryOption_Proxy( - This: *mut IWinInetInfo, - dwOption: DWORD, - pBuffer: LPVOID, - pcbBuf: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IWinInetInfo_QueryOption_Stub( - This: *mut IWinInetInfo, - dwOption: DWORD, - pBuffer: *mut BYTE, - pcbBuf: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IWinInetHttpInfo_QueryInfo_Proxy( - This: *mut IWinInetHttpInfo, - dwOption: DWORD, - pBuffer: LPVOID, - pcbBuf: *mut DWORD, - pdwFlags: *mut DWORD, - pdwReserved: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IWinInetHttpInfo_QueryInfo_Stub( - This: *mut IWinInetHttpInfo, - dwOption: DWORD, - pBuffer: *mut BYTE, - pcbBuf: *mut DWORD, - pdwFlags: *mut DWORD, - pdwReserved: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn IBindHost_MonikerBindToStorage_Proxy( - This: *mut IBindHost, - pMk: *mut IMoniker, - pBC: *mut IBindCtx, - pBSC: *mut IBindStatusCallback, - riid: *const IID, - ppvObj: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn IBindHost_MonikerBindToStorage_Stub( - This: *mut IBindHost, - pMk: *mut IMoniker, - pBC: *mut IBindCtx, - pBSC: *mut IBindStatusCallback, - riid: *const IID, - ppvObj: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn IBindHost_MonikerBindToObject_Proxy( - This: *mut IBindHost, - pMk: *mut IMoniker, - pBC: *mut IBindCtx, - pBSC: *mut IBindStatusCallback, - riid: *const IID, - ppvObj: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn IBindHost_MonikerBindToObject_Stub( - This: *mut IBindHost, - pMk: *mut IMoniker, - pBC: *mut IBindCtx, - pBSC: *mut IBindStatusCallback, - riid: *const IID, - ppvObj: *mut *mut IUnknown, - ) -> HRESULT; -} -pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_NORMAL: PIDMSI_STATUS_VALUE = 0; -pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_NEW: PIDMSI_STATUS_VALUE = 1; -pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_PRELIM: PIDMSI_STATUS_VALUE = 2; -pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_DRAFT: PIDMSI_STATUS_VALUE = 3; -pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_INPROGRESS: PIDMSI_STATUS_VALUE = 4; -pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_EDIT: PIDMSI_STATUS_VALUE = 5; -pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_REVIEW: PIDMSI_STATUS_VALUE = 6; -pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_PROOF: PIDMSI_STATUS_VALUE = 7; -pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_FINAL: PIDMSI_STATUS_VALUE = 8; -pub const PIDMSI_STATUS_VALUE_PIDMSI_STATUS_OTHER: PIDMSI_STATUS_VALUE = 32767; -pub type PIDMSI_STATUS_VALUE = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSERIALIZEDPROPERTYVALUE { - pub dwType: DWORD, - pub rgb: [BYTE; 1usize], -} -pub type SERIALIZEDPROPERTYVALUE = tagSERIALIZEDPROPERTYVALUE; -extern "C" { - pub fn StgConvertVariantToProperty( - pvar: *const PROPVARIANT, - CodePage: USHORT, - pprop: *mut SERIALIZEDPROPERTYVALUE, - pcb: *mut ULONG, - pid: PROPID, - fReserved: BOOLEAN, - pcIndirect: *mut ULONG, - ) -> *mut SERIALIZEDPROPERTYVALUE; -} -extern "C" { - pub static mut __MIDL_itf_propidl_0000_0004_v0_0_c_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub static mut __MIDL_itf_propidl_0000_0004_v0_0_s_ifspec: RPC_IF_HANDLE; -} -extern "C" { - pub fn CreateStdProgressIndicator( - hwndParent: HWND, - pszTitle: LPCOLESTR, - pIbscCaller: *mut IBindStatusCallback, - ppIbsc: *mut *mut IBindStatusCallback, - ) -> HRESULT; -} -extern "C" { - pub static IID_StdOle: IID; -} -extern "C" { - pub fn SysAllocString(psz: *const OLECHAR) -> BSTR; -} -extern "C" { - pub fn SysReAllocString(pbstr: *mut BSTR, psz: *const OLECHAR) -> INT; -} -extern "C" { - pub fn SysAllocStringLen(strIn: *const OLECHAR, ui: UINT) -> BSTR; -} -extern "C" { - pub fn SysReAllocStringLen( - pbstr: *mut BSTR, - psz: *const OLECHAR, - len: ::std::os::raw::c_uint, - ) -> INT; -} -extern "C" { - pub fn SysAddRefString(bstrString: BSTR) -> HRESULT; -} -extern "C" { - pub fn SysReleaseString(bstrString: BSTR); -} -extern "C" { - pub fn SysFreeString(bstrString: BSTR); -} -extern "C" { - pub fn SysStringLen(pbstr: BSTR) -> UINT; -} -extern "C" { - pub fn SysStringByteLen(bstr: BSTR) -> UINT; -} -extern "C" { - pub fn SysAllocStringByteLen(psz: LPCSTR, len: UINT) -> BSTR; -} -extern "C" { - pub fn DosDateTimeToVariantTime(wDosDate: USHORT, wDosTime: USHORT, pvtime: *mut DOUBLE) - -> INT; -} -extern "C" { - pub fn VariantTimeToDosDateTime( - vtime: DOUBLE, - pwDosDate: *mut USHORT, - pwDosTime: *mut USHORT, - ) -> INT; -} -extern "C" { - pub fn SystemTimeToVariantTime(lpSystemTime: LPSYSTEMTIME, pvtime: *mut DOUBLE) -> INT; -} -extern "C" { - pub fn VariantTimeToSystemTime(vtime: DOUBLE, lpSystemTime: LPSYSTEMTIME) -> INT; -} -extern "C" { - pub fn SafeArrayAllocDescriptor(cDims: UINT, ppsaOut: *mut *mut SAFEARRAY) -> HRESULT; -} -extern "C" { - pub fn SafeArrayAllocDescriptorEx( - vt: VARTYPE, - cDims: UINT, - ppsaOut: *mut *mut SAFEARRAY, - ) -> HRESULT; -} -extern "C" { - pub fn SafeArrayAllocData(psa: *mut SAFEARRAY) -> HRESULT; -} -extern "C" { - pub fn SafeArrayCreate( - vt: VARTYPE, - cDims: UINT, - rgsabound: *mut SAFEARRAYBOUND, - ) -> *mut SAFEARRAY; -} -extern "C" { - pub fn SafeArrayCreateEx( - vt: VARTYPE, - cDims: UINT, - rgsabound: *mut SAFEARRAYBOUND, - pvExtra: PVOID, - ) -> *mut SAFEARRAY; -} -extern "C" { - pub fn SafeArrayCopyData(psaSource: *mut SAFEARRAY, psaTarget: *mut SAFEARRAY) -> HRESULT; -} -extern "C" { - pub fn SafeArrayReleaseDescriptor(psa: *mut SAFEARRAY); -} -extern "C" { - pub fn SafeArrayDestroyDescriptor(psa: *mut SAFEARRAY) -> HRESULT; -} -extern "C" { - pub fn SafeArrayReleaseData(pData: PVOID); -} -extern "C" { - pub fn SafeArrayDestroyData(psa: *mut SAFEARRAY) -> HRESULT; -} -extern "C" { - pub fn SafeArrayAddRef(psa: *mut SAFEARRAY, ppDataToRelease: *mut PVOID) -> HRESULT; -} -extern "C" { - pub fn SafeArrayDestroy(psa: *mut SAFEARRAY) -> HRESULT; -} -extern "C" { - pub fn SafeArrayRedim(psa: *mut SAFEARRAY, psaboundNew: *mut SAFEARRAYBOUND) -> HRESULT; -} -extern "C" { - pub fn SafeArrayGetDim(psa: *mut SAFEARRAY) -> UINT; -} -extern "C" { - pub fn SafeArrayGetElemsize(psa: *mut SAFEARRAY) -> UINT; -} -extern "C" { - pub fn SafeArrayGetUBound(psa: *mut SAFEARRAY, nDim: UINT, plUbound: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn SafeArrayGetLBound(psa: *mut SAFEARRAY, nDim: UINT, plLbound: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn SafeArrayLock(psa: *mut SAFEARRAY) -> HRESULT; -} -extern "C" { - pub fn SafeArrayUnlock(psa: *mut SAFEARRAY) -> HRESULT; -} -extern "C" { - pub fn SafeArrayAccessData( - psa: *mut SAFEARRAY, - ppvData: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn SafeArrayUnaccessData(psa: *mut SAFEARRAY) -> HRESULT; -} -extern "C" { - pub fn SafeArrayGetElement( - psa: *mut SAFEARRAY, - rgIndices: *mut LONG, - pv: *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn SafeArrayPutElement( - psa: *mut SAFEARRAY, - rgIndices: *mut LONG, - pv: *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn SafeArrayCopy(psa: *mut SAFEARRAY, ppsaOut: *mut *mut SAFEARRAY) -> HRESULT; -} -extern "C" { - pub fn SafeArrayPtrOfIndex( - psa: *mut SAFEARRAY, - rgIndices: *mut LONG, - ppvData: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn SafeArraySetRecordInfo(psa: *mut SAFEARRAY, prinfo: *mut IRecordInfo) -> HRESULT; -} -extern "C" { - pub fn SafeArrayGetRecordInfo(psa: *mut SAFEARRAY, prinfo: *mut *mut IRecordInfo) -> HRESULT; -} -extern "C" { - pub fn SafeArraySetIID(psa: *mut SAFEARRAY, guid: *const GUID) -> HRESULT; -} -extern "C" { - pub fn SafeArrayGetIID(psa: *mut SAFEARRAY, pguid: *mut GUID) -> HRESULT; -} -extern "C" { - pub fn SafeArrayGetVartype(psa: *mut SAFEARRAY, pvt: *mut VARTYPE) -> HRESULT; -} -extern "C" { - pub fn SafeArrayCreateVector(vt: VARTYPE, lLbound: LONG, cElements: ULONG) -> *mut SAFEARRAY; -} -extern "C" { - pub fn SafeArrayCreateVectorEx( - vt: VARTYPE, - lLbound: LONG, - cElements: ULONG, - pvExtra: PVOID, - ) -> *mut SAFEARRAY; -} -extern "C" { - pub fn VariantInit(pvarg: *mut VARIANTARG); -} -extern "C" { - pub fn VariantClear(pvarg: *mut VARIANTARG) -> HRESULT; -} -extern "C" { - pub fn VariantCopy(pvargDest: *mut VARIANTARG, pvargSrc: *const VARIANTARG) -> HRESULT; -} -extern "C" { - pub fn VariantCopyInd(pvarDest: *mut VARIANT, pvargSrc: *const VARIANTARG) -> HRESULT; -} -extern "C" { - pub fn VariantChangeType( - pvargDest: *mut VARIANTARG, - pvarSrc: *const VARIANTARG, - wFlags: USHORT, - vt: VARTYPE, - ) -> HRESULT; -} -extern "C" { - pub fn VariantChangeTypeEx( - pvargDest: *mut VARIANTARG, - pvarSrc: *const VARIANTARG, - lcid: LCID, - wFlags: USHORT, - vt: VARTYPE, - ) -> HRESULT; -} -extern "C" { - pub fn VectorFromBstr(bstr: BSTR, ppsa: *mut *mut SAFEARRAY) -> HRESULT; -} -extern "C" { - pub fn BstrFromVector(psa: *mut SAFEARRAY, pbstr: *mut BSTR) -> HRESULT; -} -extern "C" { - pub fn VarUI1FromI2(sIn: SHORT, pbOut: *mut BYTE) -> HRESULT; -} -extern "C" { - pub fn VarUI1FromI4(lIn: LONG, pbOut: *mut BYTE) -> HRESULT; -} -extern "C" { - pub fn VarUI1FromI8(i64In: LONG64, pbOut: *mut BYTE) -> HRESULT; -} -extern "C" { - pub fn VarUI1FromR4(fltIn: FLOAT, pbOut: *mut BYTE) -> HRESULT; -} -extern "C" { - pub fn VarUI1FromR8(dblIn: DOUBLE, pbOut: *mut BYTE) -> HRESULT; -} -extern "C" { - pub fn VarUI1FromCy(cyIn: CY, pbOut: *mut BYTE) -> HRESULT; -} -extern "C" { - pub fn VarUI1FromDate(dateIn: DATE, pbOut: *mut BYTE) -> HRESULT; -} -extern "C" { - pub fn VarUI1FromStr(strIn: LPCOLESTR, lcid: LCID, dwFlags: ULONG, pbOut: *mut BYTE) - -> HRESULT; -} -extern "C" { - pub fn VarUI1FromDisp(pdispIn: *mut IDispatch, lcid: LCID, pbOut: *mut BYTE) -> HRESULT; -} -extern "C" { - pub fn VarUI1FromBool(boolIn: VARIANT_BOOL, pbOut: *mut BYTE) -> HRESULT; -} -extern "C" { - pub fn VarUI1FromI1(cIn: CHAR, pbOut: *mut BYTE) -> HRESULT; -} -extern "C" { - pub fn VarUI1FromUI2(uiIn: USHORT, pbOut: *mut BYTE) -> HRESULT; -} -extern "C" { - pub fn VarUI1FromUI4(ulIn: ULONG, pbOut: *mut BYTE) -> HRESULT; -} -extern "C" { - pub fn VarUI1FromUI8(ui64In: ULONG64, pbOut: *mut BYTE) -> HRESULT; -} -extern "C" { - pub fn VarUI1FromDec(pdecIn: *const DECIMAL, pbOut: *mut BYTE) -> HRESULT; -} -extern "C" { - pub fn VarI2FromUI1(bIn: BYTE, psOut: *mut SHORT) -> HRESULT; -} -extern "C" { - pub fn VarI2FromI4(lIn: LONG, psOut: *mut SHORT) -> HRESULT; -} -extern "C" { - pub fn VarI2FromI8(i64In: LONG64, psOut: *mut SHORT) -> HRESULT; -} -extern "C" { - pub fn VarI2FromR4(fltIn: FLOAT, psOut: *mut SHORT) -> HRESULT; -} -extern "C" { - pub fn VarI2FromR8(dblIn: DOUBLE, psOut: *mut SHORT) -> HRESULT; -} -extern "C" { - pub fn VarI2FromCy(cyIn: CY, psOut: *mut SHORT) -> HRESULT; -} -extern "C" { - pub fn VarI2FromDate(dateIn: DATE, psOut: *mut SHORT) -> HRESULT; -} -extern "C" { - pub fn VarI2FromStr(strIn: LPCOLESTR, lcid: LCID, dwFlags: ULONG, psOut: *mut SHORT) - -> HRESULT; -} -extern "C" { - pub fn VarI2FromDisp(pdispIn: *mut IDispatch, lcid: LCID, psOut: *mut SHORT) -> HRESULT; -} -extern "C" { - pub fn VarI2FromBool(boolIn: VARIANT_BOOL, psOut: *mut SHORT) -> HRESULT; -} -extern "C" { - pub fn VarI2FromI1(cIn: CHAR, psOut: *mut SHORT) -> HRESULT; -} -extern "C" { - pub fn VarI2FromUI2(uiIn: USHORT, psOut: *mut SHORT) -> HRESULT; -} -extern "C" { - pub fn VarI2FromUI4(ulIn: ULONG, psOut: *mut SHORT) -> HRESULT; -} -extern "C" { - pub fn VarI2FromUI8(ui64In: ULONG64, psOut: *mut SHORT) -> HRESULT; -} -extern "C" { - pub fn VarI2FromDec(pdecIn: *const DECIMAL, psOut: *mut SHORT) -> HRESULT; -} -extern "C" { - pub fn VarI4FromUI1(bIn: BYTE, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI4FromI2(sIn: SHORT, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI4FromI8(i64In: LONG64, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI4FromR4(fltIn: FLOAT, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI4FromR8(dblIn: DOUBLE, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI4FromCy(cyIn: CY, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI4FromDate(dateIn: DATE, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI4FromStr(strIn: LPCOLESTR, lcid: LCID, dwFlags: ULONG, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI4FromDisp(pdispIn: *mut IDispatch, lcid: LCID, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI4FromBool(boolIn: VARIANT_BOOL, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI4FromI1(cIn: CHAR, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI4FromUI2(uiIn: USHORT, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI4FromUI4(ulIn: ULONG, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI4FromUI8(ui64In: ULONG64, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI4FromDec(pdecIn: *const DECIMAL, plOut: *mut LONG) -> HRESULT; -} -extern "C" { - pub fn VarI8FromUI1(bIn: BYTE, pi64Out: *mut LONG64) -> HRESULT; -} -extern "C" { - pub fn VarI8FromI2(sIn: SHORT, pi64Out: *mut LONG64) -> HRESULT; -} -extern "C" { - pub fn VarI8FromR4(fltIn: FLOAT, pi64Out: *mut LONG64) -> HRESULT; -} -extern "C" { - pub fn VarI8FromR8(dblIn: DOUBLE, pi64Out: *mut LONG64) -> HRESULT; -} -extern "C" { - pub fn VarI8FromCy(cyIn: CY, pi64Out: *mut LONG64) -> HRESULT; -} -extern "C" { - pub fn VarI8FromDate(dateIn: DATE, pi64Out: *mut LONG64) -> HRESULT; -} -extern "C" { - pub fn VarI8FromStr( - strIn: LPCOLESTR, - lcid: LCID, - dwFlags: ULONG, - pi64Out: *mut LONG64, - ) -> HRESULT; -} -extern "C" { - pub fn VarI8FromDisp(pdispIn: *mut IDispatch, lcid: LCID, pi64Out: *mut LONG64) -> HRESULT; -} -extern "C" { - pub fn VarI8FromBool(boolIn: VARIANT_BOOL, pi64Out: *mut LONG64) -> HRESULT; -} -extern "C" { - pub fn VarI8FromI1(cIn: CHAR, pi64Out: *mut LONG64) -> HRESULT; -} -extern "C" { - pub fn VarI8FromUI2(uiIn: USHORT, pi64Out: *mut LONG64) -> HRESULT; -} -extern "C" { - pub fn VarI8FromUI4(ulIn: ULONG, pi64Out: *mut LONG64) -> HRESULT; -} -extern "C" { - pub fn VarI8FromUI8(ui64In: ULONG64, pi64Out: *mut LONG64) -> HRESULT; -} -extern "C" { - pub fn VarI8FromDec(pdecIn: *const DECIMAL, pi64Out: *mut LONG64) -> HRESULT; -} -extern "C" { - pub fn VarR4FromUI1(bIn: BYTE, pfltOut: *mut FLOAT) -> HRESULT; -} -extern "C" { - pub fn VarR4FromI2(sIn: SHORT, pfltOut: *mut FLOAT) -> HRESULT; -} -extern "C" { - pub fn VarR4FromI4(lIn: LONG, pfltOut: *mut FLOAT) -> HRESULT; -} -extern "C" { - pub fn VarR4FromI8(i64In: LONG64, pfltOut: *mut FLOAT) -> HRESULT; -} -extern "C" { - pub fn VarR4FromR8(dblIn: DOUBLE, pfltOut: *mut FLOAT) -> HRESULT; -} -extern "C" { - pub fn VarR4FromCy(cyIn: CY, pfltOut: *mut FLOAT) -> HRESULT; -} -extern "C" { - pub fn VarR4FromDate(dateIn: DATE, pfltOut: *mut FLOAT) -> HRESULT; -} -extern "C" { - pub fn VarR4FromStr( - strIn: LPCOLESTR, - lcid: LCID, - dwFlags: ULONG, - pfltOut: *mut FLOAT, - ) -> HRESULT; -} -extern "C" { - pub fn VarR4FromDisp(pdispIn: *mut IDispatch, lcid: LCID, pfltOut: *mut FLOAT) -> HRESULT; -} -extern "C" { - pub fn VarR4FromBool(boolIn: VARIANT_BOOL, pfltOut: *mut FLOAT) -> HRESULT; -} -extern "C" { - pub fn VarR4FromI1(cIn: CHAR, pfltOut: *mut FLOAT) -> HRESULT; -} -extern "C" { - pub fn VarR4FromUI2(uiIn: USHORT, pfltOut: *mut FLOAT) -> HRESULT; -} -extern "C" { - pub fn VarR4FromUI4(ulIn: ULONG, pfltOut: *mut FLOAT) -> HRESULT; -} -extern "C" { - pub fn VarR4FromUI8(ui64In: ULONG64, pfltOut: *mut FLOAT) -> HRESULT; -} -extern "C" { - pub fn VarR4FromDec(pdecIn: *const DECIMAL, pfltOut: *mut FLOAT) -> HRESULT; -} -extern "C" { - pub fn VarR8FromUI1(bIn: BYTE, pdblOut: *mut DOUBLE) -> HRESULT; -} -extern "C" { - pub fn VarR8FromI2(sIn: SHORT, pdblOut: *mut DOUBLE) -> HRESULT; -} -extern "C" { - pub fn VarR8FromI4(lIn: LONG, pdblOut: *mut DOUBLE) -> HRESULT; -} -extern "C" { - pub fn VarR8FromI8(i64In: LONG64, pdblOut: *mut DOUBLE) -> HRESULT; -} -extern "C" { - pub fn VarR8FromR4(fltIn: FLOAT, pdblOut: *mut DOUBLE) -> HRESULT; -} -extern "C" { - pub fn VarR8FromCy(cyIn: CY, pdblOut: *mut DOUBLE) -> HRESULT; -} -extern "C" { - pub fn VarR8FromDate(dateIn: DATE, pdblOut: *mut DOUBLE) -> HRESULT; -} -extern "C" { - pub fn VarR8FromStr( - strIn: LPCOLESTR, - lcid: LCID, - dwFlags: ULONG, - pdblOut: *mut DOUBLE, - ) -> HRESULT; -} -extern "C" { - pub fn VarR8FromDisp(pdispIn: *mut IDispatch, lcid: LCID, pdblOut: *mut DOUBLE) -> HRESULT; -} -extern "C" { - pub fn VarR8FromBool(boolIn: VARIANT_BOOL, pdblOut: *mut DOUBLE) -> HRESULT; -} -extern "C" { - pub fn VarR8FromI1(cIn: CHAR, pdblOut: *mut DOUBLE) -> HRESULT; -} -extern "C" { - pub fn VarR8FromUI2(uiIn: USHORT, pdblOut: *mut DOUBLE) -> HRESULT; -} -extern "C" { - pub fn VarR8FromUI4(ulIn: ULONG, pdblOut: *mut DOUBLE) -> HRESULT; -} -extern "C" { - pub fn VarR8FromUI8(ui64In: ULONG64, pdblOut: *mut DOUBLE) -> HRESULT; -} -extern "C" { - pub fn VarR8FromDec(pdecIn: *const DECIMAL, pdblOut: *mut DOUBLE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromUI1(bIn: BYTE, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromI2(sIn: SHORT, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromI4(lIn: LONG, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromI8(i64In: LONG64, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromR4(fltIn: FLOAT, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromR8(dblIn: DOUBLE, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromCy(cyIn: CY, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromStr( - strIn: LPCOLESTR, - lcid: LCID, - dwFlags: ULONG, - pdateOut: *mut DATE, - ) -> HRESULT; -} -extern "C" { - pub fn VarDateFromDisp(pdispIn: *mut IDispatch, lcid: LCID, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromBool(boolIn: VARIANT_BOOL, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromI1(cIn: CHAR, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromUI2(uiIn: USHORT, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromUI4(ulIn: ULONG, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromUI8(ui64In: ULONG64, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromDec(pdecIn: *const DECIMAL, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarCyFromUI1(bIn: BYTE, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarCyFromI2(sIn: SHORT, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarCyFromI4(lIn: LONG, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarCyFromI8(i64In: LONG64, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarCyFromR4(fltIn: FLOAT, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarCyFromR8(dblIn: DOUBLE, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarCyFromDate(dateIn: DATE, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarCyFromStr(strIn: LPCOLESTR, lcid: LCID, dwFlags: ULONG, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarCyFromDisp(pdispIn: *mut IDispatch, lcid: LCID, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarCyFromBool(boolIn: VARIANT_BOOL, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarCyFromI1(cIn: CHAR, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarCyFromUI2(uiIn: USHORT, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarCyFromUI4(ulIn: ULONG, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarCyFromUI8(ui64In: ULONG64, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarCyFromDec(pdecIn: *const DECIMAL, pcyOut: *mut CY) -> HRESULT; -} -extern "C" { - pub fn VarBstrFromUI1(bVal: BYTE, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) -> HRESULT; -} -extern "C" { - pub fn VarBstrFromI2(iVal: SHORT, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) -> HRESULT; -} -extern "C" { - pub fn VarBstrFromI4(lIn: LONG, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) -> HRESULT; -} -extern "C" { - pub fn VarBstrFromI8(i64In: LONG64, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) - -> HRESULT; -} -extern "C" { - pub fn VarBstrFromR4(fltIn: FLOAT, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) -> HRESULT; -} -extern "C" { - pub fn VarBstrFromR8(dblIn: DOUBLE, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) - -> HRESULT; -} -extern "C" { - pub fn VarBstrFromCy(cyIn: CY, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) -> HRESULT; -} -extern "C" { - pub fn VarBstrFromDate( - dateIn: DATE, - lcid: LCID, - dwFlags: ULONG, - pbstrOut: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn VarBstrFromDisp( - pdispIn: *mut IDispatch, - lcid: LCID, - dwFlags: ULONG, - pbstrOut: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn VarBstrFromBool( - boolIn: VARIANT_BOOL, - lcid: LCID, - dwFlags: ULONG, - pbstrOut: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn VarBstrFromI1(cIn: CHAR, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) -> HRESULT; -} -extern "C" { - pub fn VarBstrFromUI2(uiIn: USHORT, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) - -> HRESULT; -} -extern "C" { - pub fn VarBstrFromUI4(ulIn: ULONG, lcid: LCID, dwFlags: ULONG, pbstrOut: *mut BSTR) -> HRESULT; -} -extern "C" { - pub fn VarBstrFromUI8( - ui64In: ULONG64, - lcid: LCID, - dwFlags: ULONG, - pbstrOut: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn VarBstrFromDec( - pdecIn: *const DECIMAL, - lcid: LCID, - dwFlags: ULONG, - pbstrOut: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromUI1(bIn: BYTE, pboolOut: *mut VARIANT_BOOL) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromI2(sIn: SHORT, pboolOut: *mut VARIANT_BOOL) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromI4(lIn: LONG, pboolOut: *mut VARIANT_BOOL) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromI8(i64In: LONG64, pboolOut: *mut VARIANT_BOOL) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromR4(fltIn: FLOAT, pboolOut: *mut VARIANT_BOOL) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromR8(dblIn: DOUBLE, pboolOut: *mut VARIANT_BOOL) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromDate(dateIn: DATE, pboolOut: *mut VARIANT_BOOL) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromCy(cyIn: CY, pboolOut: *mut VARIANT_BOOL) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromStr( - strIn: LPCOLESTR, - lcid: LCID, - dwFlags: ULONG, - pboolOut: *mut VARIANT_BOOL, - ) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromDisp( - pdispIn: *mut IDispatch, - lcid: LCID, - pboolOut: *mut VARIANT_BOOL, - ) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromI1(cIn: CHAR, pboolOut: *mut VARIANT_BOOL) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromUI2(uiIn: USHORT, pboolOut: *mut VARIANT_BOOL) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromUI4(ulIn: ULONG, pboolOut: *mut VARIANT_BOOL) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromUI8(i64In: ULONG64, pboolOut: *mut VARIANT_BOOL) -> HRESULT; -} -extern "C" { - pub fn VarBoolFromDec(pdecIn: *const DECIMAL, pboolOut: *mut VARIANT_BOOL) -> HRESULT; -} -extern "C" { - pub fn VarI1FromUI1(bIn: BYTE, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarI1FromI2(uiIn: SHORT, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarI1FromI4(lIn: LONG, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarI1FromI8(i64In: LONG64, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarI1FromR4(fltIn: FLOAT, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarI1FromR8(dblIn: DOUBLE, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarI1FromDate(dateIn: DATE, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarI1FromCy(cyIn: CY, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarI1FromStr(strIn: LPCOLESTR, lcid: LCID, dwFlags: ULONG, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarI1FromDisp(pdispIn: *mut IDispatch, lcid: LCID, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarI1FromBool(boolIn: VARIANT_BOOL, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarI1FromUI2(uiIn: USHORT, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarI1FromUI4(ulIn: ULONG, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarI1FromUI8(i64In: ULONG64, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarI1FromDec(pdecIn: *const DECIMAL, pcOut: *mut CHAR) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromUI1(bIn: BYTE, puiOut: *mut USHORT) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromI2(uiIn: SHORT, puiOut: *mut USHORT) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromI4(lIn: LONG, puiOut: *mut USHORT) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromI8(i64In: LONG64, puiOut: *mut USHORT) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromR4(fltIn: FLOAT, puiOut: *mut USHORT) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromR8(dblIn: DOUBLE, puiOut: *mut USHORT) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromDate(dateIn: DATE, puiOut: *mut USHORT) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromCy(cyIn: CY, puiOut: *mut USHORT) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromStr( - strIn: LPCOLESTR, - lcid: LCID, - dwFlags: ULONG, - puiOut: *mut USHORT, - ) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromDisp(pdispIn: *mut IDispatch, lcid: LCID, puiOut: *mut USHORT) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromBool(boolIn: VARIANT_BOOL, puiOut: *mut USHORT) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromI1(cIn: CHAR, puiOut: *mut USHORT) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromUI4(ulIn: ULONG, puiOut: *mut USHORT) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromUI8(i64In: ULONG64, puiOut: *mut USHORT) -> HRESULT; -} -extern "C" { - pub fn VarUI2FromDec(pdecIn: *const DECIMAL, puiOut: *mut USHORT) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromUI1(bIn: BYTE, pulOut: *mut ULONG) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromI2(uiIn: SHORT, pulOut: *mut ULONG) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromI4(lIn: LONG, pulOut: *mut ULONG) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromI8(i64In: LONG64, plOut: *mut ULONG) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromR4(fltIn: FLOAT, pulOut: *mut ULONG) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromR8(dblIn: DOUBLE, pulOut: *mut ULONG) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromDate(dateIn: DATE, pulOut: *mut ULONG) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromCy(cyIn: CY, pulOut: *mut ULONG) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromStr( - strIn: LPCOLESTR, - lcid: LCID, - dwFlags: ULONG, - pulOut: *mut ULONG, - ) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromDisp(pdispIn: *mut IDispatch, lcid: LCID, pulOut: *mut ULONG) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromBool(boolIn: VARIANT_BOOL, pulOut: *mut ULONG) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromI1(cIn: CHAR, pulOut: *mut ULONG) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromUI2(uiIn: USHORT, pulOut: *mut ULONG) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromUI8(ui64In: ULONG64, plOut: *mut ULONG) -> HRESULT; -} -extern "C" { - pub fn VarUI4FromDec(pdecIn: *const DECIMAL, pulOut: *mut ULONG) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromUI1(bIn: BYTE, pi64Out: *mut ULONG64) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromI2(sIn: SHORT, pi64Out: *mut ULONG64) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromI4(lIn: LONG, pi64Out: *mut ULONG64) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromI8(ui64In: LONG64, pi64Out: *mut ULONG64) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromR4(fltIn: FLOAT, pi64Out: *mut ULONG64) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromR8(dblIn: DOUBLE, pi64Out: *mut ULONG64) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromCy(cyIn: CY, pi64Out: *mut ULONG64) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromDate(dateIn: DATE, pi64Out: *mut ULONG64) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromStr( - strIn: LPCOLESTR, - lcid: LCID, - dwFlags: ULONG, - pi64Out: *mut ULONG64, - ) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromDisp(pdispIn: *mut IDispatch, lcid: LCID, pi64Out: *mut ULONG64) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromBool(boolIn: VARIANT_BOOL, pi64Out: *mut ULONG64) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromI1(cIn: CHAR, pi64Out: *mut ULONG64) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromUI2(uiIn: USHORT, pi64Out: *mut ULONG64) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromUI4(ulIn: ULONG, pi64Out: *mut ULONG64) -> HRESULT; -} -extern "C" { - pub fn VarUI8FromDec(pdecIn: *const DECIMAL, pi64Out: *mut ULONG64) -> HRESULT; -} -extern "C" { - pub fn VarDecFromUI1(bIn: BYTE, pdecOut: *mut DECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecFromI2(uiIn: SHORT, pdecOut: *mut DECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecFromI4(lIn: LONG, pdecOut: *mut DECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecFromI8(i64In: LONG64, pdecOut: *mut DECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecFromR4(fltIn: FLOAT, pdecOut: *mut DECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecFromR8(dblIn: DOUBLE, pdecOut: *mut DECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecFromDate(dateIn: DATE, pdecOut: *mut DECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecFromCy(cyIn: CY, pdecOut: *mut DECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecFromStr( - strIn: LPCOLESTR, - lcid: LCID, - dwFlags: ULONG, - pdecOut: *mut DECIMAL, - ) -> HRESULT; -} -extern "C" { - pub fn VarDecFromDisp(pdispIn: *mut IDispatch, lcid: LCID, pdecOut: *mut DECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecFromBool(boolIn: VARIANT_BOOL, pdecOut: *mut DECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecFromI1(cIn: CHAR, pdecOut: *mut DECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecFromUI2(uiIn: USHORT, pdecOut: *mut DECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecFromUI4(ulIn: ULONG, pdecOut: *mut DECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecFromUI8(ui64In: ULONG64, pdecOut: *mut DECIMAL) -> HRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NUMPARSE { - pub cDig: INT, - pub dwInFlags: ULONG, - pub dwOutFlags: ULONG, - pub cchUsed: INT, - pub nBaseShift: INT, - pub nPwr10: INT, -} -extern "C" { - pub fn VarParseNumFromStr( - strIn: LPCOLESTR, - lcid: LCID, - dwFlags: ULONG, - pnumprs: *mut NUMPARSE, - rgbDig: *mut BYTE, - ) -> HRESULT; -} -extern "C" { - pub fn VarNumFromParseNum( - pnumprs: *mut NUMPARSE, - rgbDig: *mut BYTE, - dwVtBits: ULONG, - pvar: *mut VARIANT, - ) -> HRESULT; -} -extern "C" { - pub fn VarAdd(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarAnd(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarCat(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarDiv(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarEqv(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarIdiv(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarImp(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarMod(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarMul(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarOr(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarPow(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarSub(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarXor(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarAbs(pvarIn: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarFix(pvarIn: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarInt(pvarIn: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarNeg(pvarIn: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarNot(pvarIn: LPVARIANT, pvarResult: LPVARIANT) -> HRESULT; -} -extern "C" { - pub fn VarRound( - pvarIn: LPVARIANT, - cDecimals: ::std::os::raw::c_int, - pvarResult: LPVARIANT, - ) -> HRESULT; -} -extern "C" { - pub fn VarCmp(pvarLeft: LPVARIANT, pvarRight: LPVARIANT, lcid: LCID, dwFlags: ULONG) - -> HRESULT; -} -extern "C" { - pub fn VarDecAdd(pdecLeft: LPDECIMAL, pdecRight: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecDiv(pdecLeft: LPDECIMAL, pdecRight: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecMul(pdecLeft: LPDECIMAL, pdecRight: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecSub(pdecLeft: LPDECIMAL, pdecRight: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecAbs(pdecIn: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecFix(pdecIn: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecInt(pdecIn: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecNeg(pdecIn: LPDECIMAL, pdecResult: LPDECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecRound( - pdecIn: LPDECIMAL, - cDecimals: ::std::os::raw::c_int, - pdecResult: LPDECIMAL, - ) -> HRESULT; -} -extern "C" { - pub fn VarDecCmp(pdecLeft: LPDECIMAL, pdecRight: LPDECIMAL) -> HRESULT; -} -extern "C" { - pub fn VarDecCmpR8(pdecLeft: LPDECIMAL, dblRight: f64) -> HRESULT; -} -extern "C" { - pub fn VarCyAdd(cyLeft: CY, cyRight: CY, pcyResult: LPCY) -> HRESULT; -} -extern "C" { - pub fn VarCyMul(cyLeft: CY, cyRight: CY, pcyResult: LPCY) -> HRESULT; -} -extern "C" { - pub fn VarCyMulI4(cyLeft: CY, lRight: LONG, pcyResult: LPCY) -> HRESULT; -} -extern "C" { - pub fn VarCyMulI8(cyLeft: CY, lRight: LONG64, pcyResult: LPCY) -> HRESULT; -} -extern "C" { - pub fn VarCySub(cyLeft: CY, cyRight: CY, pcyResult: LPCY) -> HRESULT; -} -extern "C" { - pub fn VarCyAbs(cyIn: CY, pcyResult: LPCY) -> HRESULT; -} -extern "C" { - pub fn VarCyFix(cyIn: CY, pcyResult: LPCY) -> HRESULT; -} -extern "C" { - pub fn VarCyInt(cyIn: CY, pcyResult: LPCY) -> HRESULT; -} -extern "C" { - pub fn VarCyNeg(cyIn: CY, pcyResult: LPCY) -> HRESULT; -} -extern "C" { - pub fn VarCyRound(cyIn: CY, cDecimals: ::std::os::raw::c_int, pcyResult: LPCY) -> HRESULT; -} -extern "C" { - pub fn VarCyCmp(cyLeft: CY, cyRight: CY) -> HRESULT; -} -extern "C" { - pub fn VarCyCmpR8(cyLeft: CY, dblRight: f64) -> HRESULT; -} -extern "C" { - pub fn VarBstrCat(bstrLeft: BSTR, bstrRight: BSTR, pbstrResult: LPBSTR) -> HRESULT; -} -extern "C" { - pub fn VarBstrCmp(bstrLeft: BSTR, bstrRight: BSTR, lcid: LCID, dwFlags: ULONG) -> HRESULT; -} -extern "C" { - pub fn VarR8Pow(dblLeft: f64, dblRight: f64, pdblResult: *mut f64) -> HRESULT; -} -extern "C" { - pub fn VarR4CmpR8(fltLeft: f32, dblRight: f64) -> HRESULT; -} -extern "C" { - pub fn VarR8Round( - dblIn: f64, - cDecimals: ::std::os::raw::c_int, - pdblResult: *mut f64, - ) -> HRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct UDATE { - pub st: SYSTEMTIME, - pub wDayOfYear: USHORT, -} -extern "C" { - pub fn VarDateFromUdate(pudateIn: *mut UDATE, dwFlags: ULONG, pdateOut: *mut DATE) -> HRESULT; -} -extern "C" { - pub fn VarDateFromUdateEx( - pudateIn: *mut UDATE, - lcid: LCID, - dwFlags: ULONG, - pdateOut: *mut DATE, - ) -> HRESULT; -} -extern "C" { - pub fn VarUdateFromDate(dateIn: DATE, dwFlags: ULONG, pudateOut: *mut UDATE) -> HRESULT; -} -extern "C" { - pub fn GetAltMonthNames(lcid: LCID, prgp: *mut *mut LPOLESTR) -> HRESULT; -} -extern "C" { - pub fn VarFormat( - pvarIn: LPVARIANT, - pstrFormat: LPOLESTR, - iFirstDay: ::std::os::raw::c_int, - iFirstWeek: ::std::os::raw::c_int, - dwFlags: ULONG, - pbstrOut: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn VarFormatDateTime( - pvarIn: LPVARIANT, - iNamedFormat: ::std::os::raw::c_int, - dwFlags: ULONG, - pbstrOut: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn VarFormatNumber( - pvarIn: LPVARIANT, - iNumDig: ::std::os::raw::c_int, - iIncLead: ::std::os::raw::c_int, - iUseParens: ::std::os::raw::c_int, - iGroup: ::std::os::raw::c_int, - dwFlags: ULONG, - pbstrOut: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn VarFormatPercent( - pvarIn: LPVARIANT, - iNumDig: ::std::os::raw::c_int, - iIncLead: ::std::os::raw::c_int, - iUseParens: ::std::os::raw::c_int, - iGroup: ::std::os::raw::c_int, - dwFlags: ULONG, - pbstrOut: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn VarFormatCurrency( - pvarIn: LPVARIANT, - iNumDig: ::std::os::raw::c_int, - iIncLead: ::std::os::raw::c_int, - iUseParens: ::std::os::raw::c_int, - iGroup: ::std::os::raw::c_int, - dwFlags: ULONG, - pbstrOut: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn VarWeekdayName( - iWeekday: ::std::os::raw::c_int, - fAbbrev: ::std::os::raw::c_int, - iFirstDay: ::std::os::raw::c_int, - dwFlags: ULONG, - pbstrOut: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn VarMonthName( - iMonth: ::std::os::raw::c_int, - fAbbrev: ::std::os::raw::c_int, - dwFlags: ULONG, - pbstrOut: *mut BSTR, - ) -> HRESULT; -} -extern "C" { - pub fn VarFormatFromTokens( - pvarIn: LPVARIANT, - pstrFormat: LPOLESTR, - pbTokCur: LPBYTE, - dwFlags: ULONG, - pbstrOut: *mut BSTR, - lcid: LCID, - ) -> HRESULT; -} -extern "C" { - pub fn VarTokenizeFormatString( - pstrFormat: LPOLESTR, - rgbTok: LPBYTE, - cbTok: ::std::os::raw::c_int, - iFirstDay: ::std::os::raw::c_int, - iFirstWeek: ::std::os::raw::c_int, - lcid: LCID, - pcbActual: *mut ::std::os::raw::c_int, - ) -> HRESULT; -} -extern "C" { - pub fn LHashValOfNameSysA(syskind: SYSKIND, lcid: LCID, szName: LPCSTR) -> ULONG; -} -extern "C" { - pub fn LHashValOfNameSys(syskind: SYSKIND, lcid: LCID, szName: *const OLECHAR) -> ULONG; -} -extern "C" { - pub fn LoadTypeLib(szFile: LPCOLESTR, pptlib: *mut *mut ITypeLib) -> HRESULT; -} -pub const tagREGKIND_REGKIND_DEFAULT: tagREGKIND = 0; -pub const tagREGKIND_REGKIND_REGISTER: tagREGKIND = 1; -pub const tagREGKIND_REGKIND_NONE: tagREGKIND = 2; -pub type tagREGKIND = ::std::os::raw::c_int; -pub use self::tagREGKIND as REGKIND; -extern "C" { - pub fn LoadTypeLibEx( - szFile: LPCOLESTR, - regkind: REGKIND, - pptlib: *mut *mut ITypeLib, - ) -> HRESULT; -} -extern "C" { - pub fn LoadRegTypeLib( - rguid: *const GUID, - wVerMajor: WORD, - wVerMinor: WORD, - lcid: LCID, - pptlib: *mut *mut ITypeLib, - ) -> HRESULT; -} -extern "C" { - pub fn QueryPathOfRegTypeLib( - guid: *const GUID, - wMaj: USHORT, - wMin: USHORT, - lcid: LCID, - lpbstrPathName: LPBSTR, - ) -> HRESULT; -} -extern "C" { - pub fn RegisterTypeLib( - ptlib: *mut ITypeLib, - szFullPath: LPCOLESTR, - szHelpDir: LPCOLESTR, - ) -> HRESULT; -} -extern "C" { - pub fn UnRegisterTypeLib( - libID: *const GUID, - wVerMajor: WORD, - wVerMinor: WORD, - lcid: LCID, - syskind: SYSKIND, - ) -> HRESULT; -} -extern "C" { - pub fn RegisterTypeLibForUser( - ptlib: *mut ITypeLib, - szFullPath: *mut OLECHAR, - szHelpDir: *mut OLECHAR, - ) -> HRESULT; -} -extern "C" { - pub fn UnRegisterTypeLibForUser( - libID: *const GUID, - wMajorVerNum: WORD, - wMinorVerNum: WORD, - lcid: LCID, - syskind: SYSKIND, - ) -> HRESULT; -} -extern "C" { - pub fn CreateTypeLib( - syskind: SYSKIND, - szFile: LPCOLESTR, - ppctlib: *mut *mut ICreateTypeLib, - ) -> HRESULT; -} -extern "C" { - pub fn CreateTypeLib2( - syskind: SYSKIND, - szFile: LPCOLESTR, - ppctlib: *mut *mut ICreateTypeLib2, - ) -> HRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPARAMDATA { - pub szName: *mut OLECHAR, - pub vt: VARTYPE, -} -pub type PARAMDATA = tagPARAMDATA; -pub type LPPARAMDATA = *mut tagPARAMDATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMETHODDATA { - pub szName: *mut OLECHAR, - pub ppdata: *mut PARAMDATA, - pub dispid: DISPID, - pub iMeth: UINT, - pub cc: CALLCONV, - pub cArgs: UINT, - pub wFlags: WORD, - pub vtReturn: VARTYPE, -} -pub type METHODDATA = tagMETHODDATA; -pub type LPMETHODDATA = *mut tagMETHODDATA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagINTERFACEDATA { - pub pmethdata: *mut METHODDATA, - pub cMembers: UINT, -} -pub type INTERFACEDATA = tagINTERFACEDATA; -pub type LPINTERFACEDATA = *mut tagINTERFACEDATA; -extern "C" { - pub fn DispGetParam( - pdispparams: *mut DISPPARAMS, - position: UINT, - vtTarg: VARTYPE, - pvarResult: *mut VARIANT, - puArgErr: *mut UINT, - ) -> HRESULT; -} -extern "C" { - pub fn DispGetIDsOfNames( - ptinfo: *mut ITypeInfo, - rgszNames: *mut LPOLESTR, - cNames: UINT, - rgdispid: *mut DISPID, - ) -> HRESULT; -} -extern "C" { - pub fn DispInvoke( - _this: *mut ::std::os::raw::c_void, - ptinfo: *mut ITypeInfo, - dispidMember: DISPID, - wFlags: WORD, - pparams: *mut DISPPARAMS, - pvarResult: *mut VARIANT, - pexcepinfo: *mut EXCEPINFO, - puArgErr: *mut UINT, - ) -> HRESULT; -} -extern "C" { - pub fn CreateDispTypeInfo( - pidata: *mut INTERFACEDATA, - lcid: LCID, - pptinfo: *mut *mut ITypeInfo, - ) -> HRESULT; -} -extern "C" { - pub fn CreateStdDispatch( - punkOuter: *mut IUnknown, - pvThis: *mut ::std::os::raw::c_void, - ptinfo: *mut ITypeInfo, - ppunkStdDisp: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn DispCallFunc( - pvInstance: *mut ::std::os::raw::c_void, - oVft: ULONG_PTR, - cc: CALLCONV, - vtReturn: VARTYPE, - cActuals: UINT, - prgvt: *mut VARTYPE, - prgpvarg: *mut *mut VARIANTARG, - pvargResult: *mut VARIANT, - ) -> HRESULT; -} -extern "C" { - pub fn RegisterActiveObject( - punk: *mut IUnknown, - rclsid: *const IID, - dwFlags: DWORD, - pdwRegister: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn RevokeActiveObject( - dwRegister: DWORD, - pvReserved: *mut ::std::os::raw::c_void, - ) -> HRESULT; -} -extern "C" { - pub fn GetActiveObject( - rclsid: *const IID, - pvReserved: *mut ::std::os::raw::c_void, - ppunk: *mut *mut IUnknown, - ) -> HRESULT; -} -extern "C" { - pub fn SetErrorInfo(dwReserved: ULONG, perrinfo: *mut IErrorInfo) -> HRESULT; -} -extern "C" { - pub fn GetErrorInfo(dwReserved: ULONG, pperrinfo: *mut *mut IErrorInfo) -> HRESULT; -} -extern "C" { - pub fn CreateErrorInfo(pperrinfo: *mut *mut ICreateErrorInfo) -> HRESULT; -} -extern "C" { - pub fn GetRecordInfoFromTypeInfo( - pTypeInfo: *mut ITypeInfo, - ppRecInfo: *mut *mut IRecordInfo, - ) -> HRESULT; -} -extern "C" { - pub fn GetRecordInfoFromGuids( - rGuidTypeLib: *const GUID, - uVerMajor: ULONG, - uVerMinor: ULONG, - lcid: LCID, - rGuidTypeInfo: *const GUID, - ppRecInfo: *mut *mut IRecordInfo, - ) -> HRESULT; -} -extern "C" { - pub fn OaBuildVersion() -> ULONG; -} -extern "C" { - pub fn ClearCustData(pCustData: LPCUSTDATA); -} -extern "C" { - pub fn OaEnablePerUserTLibRegistration(); -} -extern "C" { - pub fn OleBuildVersion() -> DWORD; -} -extern "C" { - pub fn WriteFmtUserTypeStg(pstg: LPSTORAGE, cf: CLIPFORMAT, lpszUserType: LPOLESTR) -> HRESULT; -} -extern "C" { - pub fn ReadFmtUserTypeStg( - pstg: LPSTORAGE, - pcf: *mut CLIPFORMAT, - lplpszUserType: *mut LPOLESTR, - ) -> HRESULT; -} -extern "C" { - pub fn OleInitialize(pvReserved: LPVOID) -> HRESULT; -} -extern "C" { - pub fn OleUninitialize(); -} -extern "C" { - pub fn OleQueryLinkFromData(pSrcDataObject: LPDATAOBJECT) -> HRESULT; -} -extern "C" { - pub fn OleQueryCreateFromData(pSrcDataObject: LPDATAOBJECT) -> HRESULT; -} -extern "C" { - pub fn OleCreate( - rclsid: *const IID, - riid: *const IID, - renderopt: DWORD, - pFormatEtc: LPFORMATETC, - pClientSite: LPOLECLIENTSITE, - pStg: LPSTORAGE, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleCreateEx( - rclsid: *const IID, - riid: *const IID, - dwFlags: DWORD, - renderopt: DWORD, - cFormats: ULONG, - rgAdvf: *mut DWORD, - rgFormatEtc: LPFORMATETC, - lpAdviseSink: *mut IAdviseSink, - rgdwConnection: *mut DWORD, - pClientSite: LPOLECLIENTSITE, - pStg: LPSTORAGE, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleCreateFromData( - pSrcDataObj: LPDATAOBJECT, - riid: *const IID, - renderopt: DWORD, - pFormatEtc: LPFORMATETC, - pClientSite: LPOLECLIENTSITE, - pStg: LPSTORAGE, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleCreateFromDataEx( - pSrcDataObj: LPDATAOBJECT, - riid: *const IID, - dwFlags: DWORD, - renderopt: DWORD, - cFormats: ULONG, - rgAdvf: *mut DWORD, - rgFormatEtc: LPFORMATETC, - lpAdviseSink: *mut IAdviseSink, - rgdwConnection: *mut DWORD, - pClientSite: LPOLECLIENTSITE, - pStg: LPSTORAGE, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleCreateLinkFromData( - pSrcDataObj: LPDATAOBJECT, - riid: *const IID, - renderopt: DWORD, - pFormatEtc: LPFORMATETC, - pClientSite: LPOLECLIENTSITE, - pStg: LPSTORAGE, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleCreateLinkFromDataEx( - pSrcDataObj: LPDATAOBJECT, - riid: *const IID, - dwFlags: DWORD, - renderopt: DWORD, - cFormats: ULONG, - rgAdvf: *mut DWORD, - rgFormatEtc: LPFORMATETC, - lpAdviseSink: *mut IAdviseSink, - rgdwConnection: *mut DWORD, - pClientSite: LPOLECLIENTSITE, - pStg: LPSTORAGE, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleCreateStaticFromData( - pSrcDataObj: LPDATAOBJECT, - iid: *const IID, - renderopt: DWORD, - pFormatEtc: LPFORMATETC, - pClientSite: LPOLECLIENTSITE, - pStg: LPSTORAGE, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleCreateLink( - pmkLinkSrc: LPMONIKER, - riid: *const IID, - renderopt: DWORD, - lpFormatEtc: LPFORMATETC, - pClientSite: LPOLECLIENTSITE, - pStg: LPSTORAGE, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleCreateLinkEx( - pmkLinkSrc: LPMONIKER, - riid: *const IID, - dwFlags: DWORD, - renderopt: DWORD, - cFormats: ULONG, - rgAdvf: *mut DWORD, - rgFormatEtc: LPFORMATETC, - lpAdviseSink: *mut IAdviseSink, - rgdwConnection: *mut DWORD, - pClientSite: LPOLECLIENTSITE, - pStg: LPSTORAGE, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleCreateLinkToFile( - lpszFileName: LPCOLESTR, - riid: *const IID, - renderopt: DWORD, - lpFormatEtc: LPFORMATETC, - pClientSite: LPOLECLIENTSITE, - pStg: LPSTORAGE, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleCreateLinkToFileEx( - lpszFileName: LPCOLESTR, - riid: *const IID, - dwFlags: DWORD, - renderopt: DWORD, - cFormats: ULONG, - rgAdvf: *mut DWORD, - rgFormatEtc: LPFORMATETC, - lpAdviseSink: *mut IAdviseSink, - rgdwConnection: *mut DWORD, - pClientSite: LPOLECLIENTSITE, - pStg: LPSTORAGE, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleCreateFromFile( - rclsid: *const IID, - lpszFileName: LPCOLESTR, - riid: *const IID, - renderopt: DWORD, - lpFormatEtc: LPFORMATETC, - pClientSite: LPOLECLIENTSITE, - pStg: LPSTORAGE, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleCreateFromFileEx( - rclsid: *const IID, - lpszFileName: LPCOLESTR, - riid: *const IID, - dwFlags: DWORD, - renderopt: DWORD, - cFormats: ULONG, - rgAdvf: *mut DWORD, - rgFormatEtc: LPFORMATETC, - lpAdviseSink: *mut IAdviseSink, - rgdwConnection: *mut DWORD, - pClientSite: LPOLECLIENTSITE, - pStg: LPSTORAGE, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleLoad( - pStg: LPSTORAGE, - riid: *const IID, - pClientSite: LPOLECLIENTSITE, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleSave(pPS: LPPERSISTSTORAGE, pStg: LPSTORAGE, fSameAsLoad: BOOL) -> HRESULT; -} -extern "C" { - pub fn OleLoadFromStream( - pStm: LPSTREAM, - iidInterface: *const IID, - ppvObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleSaveToStream(pPStm: LPPERSISTSTREAM, pStm: LPSTREAM) -> HRESULT; -} -extern "C" { - pub fn OleSetContainedObject(pUnknown: LPUNKNOWN, fContained: BOOL) -> HRESULT; -} -extern "C" { - pub fn OleNoteObjectVisible(pUnknown: LPUNKNOWN, fVisible: BOOL) -> HRESULT; -} -extern "C" { - pub fn RegisterDragDrop(hwnd: HWND, pDropTarget: LPDROPTARGET) -> HRESULT; -} -extern "C" { - pub fn RevokeDragDrop(hwnd: HWND) -> HRESULT; -} -extern "C" { - pub fn DoDragDrop( - pDataObj: LPDATAOBJECT, - pDropSource: LPDROPSOURCE, - dwOKEffects: DWORD, - pdwEffect: LPDWORD, - ) -> HRESULT; -} -extern "C" { - pub fn OleSetClipboard(pDataObj: LPDATAOBJECT) -> HRESULT; -} -extern "C" { - pub fn OleGetClipboard(ppDataObj: *mut LPDATAOBJECT) -> HRESULT; -} -extern "C" { - pub fn OleGetClipboardWithEnterpriseInfo( - dataObject: *mut *mut IDataObject, - dataEnterpriseId: *mut PWSTR, - sourceDescription: *mut PWSTR, - targetDescription: *mut PWSTR, - dataDescription: *mut PWSTR, - ) -> HRESULT; -} -extern "C" { - pub fn OleFlushClipboard() -> HRESULT; -} -extern "C" { - pub fn OleIsCurrentClipboard(pDataObj: LPDATAOBJECT) -> HRESULT; -} -extern "C" { - pub fn OleCreateMenuDescriptor( - hmenuCombined: HMENU, - lpMenuWidths: LPOLEMENUGROUPWIDTHS, - ) -> HOLEMENU; -} -extern "C" { - pub fn OleSetMenuDescriptor( - holemenu: HOLEMENU, - hwndFrame: HWND, - hwndActiveObject: HWND, - lpFrame: LPOLEINPLACEFRAME, - lpActiveObj: LPOLEINPLACEACTIVEOBJECT, - ) -> HRESULT; -} -extern "C" { - pub fn OleDestroyMenuDescriptor(holemenu: HOLEMENU) -> HRESULT; -} -extern "C" { - pub fn OleTranslateAccelerator( - lpFrame: LPOLEINPLACEFRAME, - lpFrameInfo: LPOLEINPLACEFRAMEINFO, - lpmsg: LPMSG, - ) -> HRESULT; -} -extern "C" { - pub fn OleDuplicateData(hSrc: HANDLE, cfFormat: CLIPFORMAT, uiFlags: UINT) -> HANDLE; -} -extern "C" { - pub fn OleDraw( - pUnknown: LPUNKNOWN, - dwAspect: DWORD, - hdcDraw: HDC, - lprcBounds: LPCRECT, - ) -> HRESULT; -} -extern "C" { - pub fn OleRun(pUnknown: LPUNKNOWN) -> HRESULT; -} -extern "C" { - pub fn OleIsRunning(pObject: LPOLEOBJECT) -> BOOL; -} -extern "C" { - pub fn OleLockRunning(pUnknown: LPUNKNOWN, fLock: BOOL, fLastUnlockCloses: BOOL) -> HRESULT; -} -extern "C" { - pub fn ReleaseStgMedium(arg1: LPSTGMEDIUM); -} -extern "C" { - pub fn CreateOleAdviseHolder(ppOAHolder: *mut LPOLEADVISEHOLDER) -> HRESULT; -} -extern "C" { - pub fn OleCreateDefaultHandler( - clsid: *const IID, - pUnkOuter: LPUNKNOWN, - riid: *const IID, - lplpObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn OleCreateEmbeddingHelper( - clsid: *const IID, - pUnkOuter: LPUNKNOWN, - flags: DWORD, - pCF: LPCLASSFACTORY, - riid: *const IID, - lplpObj: *mut LPVOID, - ) -> HRESULT; -} -extern "C" { - pub fn IsAccelerator( - hAccel: HACCEL, - cAccelEntries: ::std::os::raw::c_int, - lpMsg: LPMSG, - lpwCmd: *mut WORD, - ) -> BOOL; -} -extern "C" { - pub fn OleGetIconOfFile(lpszPath: LPOLESTR, fUseFileAsLabel: BOOL) -> HGLOBAL; -} -extern "C" { - pub fn OleGetIconOfClass( - rclsid: *const IID, - lpszLabel: LPOLESTR, - fUseTypeAsLabel: BOOL, - ) -> HGLOBAL; -} -extern "C" { - pub fn OleMetafilePictFromIconAndLabel( - hIcon: HICON, - lpszLabel: LPOLESTR, - lpszSourceFile: LPOLESTR, - iIconIndex: UINT, - ) -> HGLOBAL; -} -extern "C" { - pub fn OleRegGetUserType( - clsid: *const IID, - dwFormOfType: DWORD, - pszUserType: *mut LPOLESTR, - ) -> HRESULT; -} -extern "C" { - pub fn OleRegGetMiscStatus( - clsid: *const IID, - dwAspect: DWORD, - pdwStatus: *mut DWORD, - ) -> HRESULT; -} -extern "C" { - pub fn OleRegEnumFormatEtc( - clsid: *const IID, - dwDirection: DWORD, - ppenum: *mut LPENUMFORMATETC, - ) -> HRESULT; -} -extern "C" { - pub fn OleRegEnumVerbs(clsid: *const IID, ppenum: *mut LPENUMOLEVERB) -> HRESULT; -} -pub type LPOLESTREAM = *mut _OLESTREAM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OLESTREAMVTBL { - pub Get: ::std::option::Option< - unsafe extern "C" fn( - arg1: LPOLESTREAM, - arg2: *mut ::std::os::raw::c_void, - arg3: DWORD, - ) -> DWORD, - >, - pub Put: ::std::option::Option< - unsafe extern "C" fn( - arg1: LPOLESTREAM, - arg2: *const ::std::os::raw::c_void, - arg3: DWORD, - ) -> DWORD, - >, -} -pub type OLESTREAMVTBL = _OLESTREAMVTBL; -pub type LPOLESTREAMVTBL = *mut OLESTREAMVTBL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OLESTREAM { - pub lpstbl: LPOLESTREAMVTBL, -} -pub type OLESTREAM = _OLESTREAM; -extern "C" { - pub fn OleConvertOLESTREAMToIStorage( - lpolestream: LPOLESTREAM, - pstg: LPSTORAGE, - ptd: *const DVTARGETDEVICE, - ) -> HRESULT; -} -extern "C" { - pub fn OleConvertIStorageToOLESTREAM(pstg: LPSTORAGE, lpolestream: LPOLESTREAM) -> HRESULT; -} -extern "C" { - pub fn OleDoAutoConvert(pStg: LPSTORAGE, pClsidNew: LPCLSID) -> HRESULT; -} -extern "C" { - pub fn OleGetAutoConvert(clsidOld: *const IID, pClsidNew: LPCLSID) -> HRESULT; -} -extern "C" { - pub fn OleSetAutoConvert(clsidOld: *const IID, clsidNew: *const IID) -> HRESULT; -} -extern "C" { - pub fn SetConvertStg(pStg: LPSTORAGE, fConvert: BOOL) -> HRESULT; -} -extern "C" { - pub fn OleConvertIStorageToOLESTREAMEx( - pstg: LPSTORAGE, - cfFormat: CLIPFORMAT, - lWidth: LONG, - lHeight: LONG, - dwSize: DWORD, - pmedium: LPSTGMEDIUM, - polestm: LPOLESTREAM, - ) -> HRESULT; -} -extern "C" { - pub fn OleConvertOLESTREAMToIStorageEx( - polestm: LPOLESTREAM, - pstg: LPSTORAGE, - pcfFormat: *mut CLIPFORMAT, - plwWidth: *mut LONG, - plHeight: *mut LONG, - pdwSize: *mut DWORD, - pmedium: LPSTGMEDIUM, - ) -> HRESULT; -} -extern "C" { - pub static IID_IPrintDialogCallback: GUID; -} -extern "C" { - pub static IID_IPrintDialogServices: GUID; -} -pub type LPOFNHOOKPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagOFN_NT4A { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hInstance: HINSTANCE, - pub lpstrFilter: LPCSTR, - pub lpstrCustomFilter: LPSTR, - pub nMaxCustFilter: DWORD, - pub nFilterIndex: DWORD, - pub lpstrFile: LPSTR, - pub nMaxFile: DWORD, - pub lpstrFileTitle: LPSTR, - pub nMaxFileTitle: DWORD, - pub lpstrInitialDir: LPCSTR, - pub lpstrTitle: LPCSTR, - pub Flags: DWORD, - pub nFileOffset: WORD, - pub nFileExtension: WORD, - pub lpstrDefExt: LPCSTR, - pub lCustData: LPARAM, - pub lpfnHook: LPOFNHOOKPROC, - pub lpTemplateName: LPCSTR, -} -pub type OPENFILENAME_NT4A = tagOFN_NT4A; -pub type LPOPENFILENAME_NT4A = *mut tagOFN_NT4A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagOFN_NT4W { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hInstance: HINSTANCE, - pub lpstrFilter: LPCWSTR, - pub lpstrCustomFilter: LPWSTR, - pub nMaxCustFilter: DWORD, - pub nFilterIndex: DWORD, - pub lpstrFile: LPWSTR, - pub nMaxFile: DWORD, - pub lpstrFileTitle: LPWSTR, - pub nMaxFileTitle: DWORD, - pub lpstrInitialDir: LPCWSTR, - pub lpstrTitle: LPCWSTR, - pub Flags: DWORD, - pub nFileOffset: WORD, - pub nFileExtension: WORD, - pub lpstrDefExt: LPCWSTR, - pub lCustData: LPARAM, - pub lpfnHook: LPOFNHOOKPROC, - pub lpTemplateName: LPCWSTR, -} -pub type OPENFILENAME_NT4W = tagOFN_NT4W; -pub type LPOPENFILENAME_NT4W = *mut tagOFN_NT4W; -pub type OPENFILENAME_NT4 = OPENFILENAME_NT4A; -pub type LPOPENFILENAME_NT4 = LPOPENFILENAME_NT4A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagOFNA { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hInstance: HINSTANCE, - pub lpstrFilter: LPCSTR, - pub lpstrCustomFilter: LPSTR, - pub nMaxCustFilter: DWORD, - pub nFilterIndex: DWORD, - pub lpstrFile: LPSTR, - pub nMaxFile: DWORD, - pub lpstrFileTitle: LPSTR, - pub nMaxFileTitle: DWORD, - pub lpstrInitialDir: LPCSTR, - pub lpstrTitle: LPCSTR, - pub Flags: DWORD, - pub nFileOffset: WORD, - pub nFileExtension: WORD, - pub lpstrDefExt: LPCSTR, - pub lCustData: LPARAM, - pub lpfnHook: LPOFNHOOKPROC, - pub lpTemplateName: LPCSTR, - pub pvReserved: *mut ::std::os::raw::c_void, - pub dwReserved: DWORD, - pub FlagsEx: DWORD, -} -pub type OPENFILENAMEA = tagOFNA; -pub type LPOPENFILENAMEA = *mut tagOFNA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagOFNW { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hInstance: HINSTANCE, - pub lpstrFilter: LPCWSTR, - pub lpstrCustomFilter: LPWSTR, - pub nMaxCustFilter: DWORD, - pub nFilterIndex: DWORD, - pub lpstrFile: LPWSTR, - pub nMaxFile: DWORD, - pub lpstrFileTitle: LPWSTR, - pub nMaxFileTitle: DWORD, - pub lpstrInitialDir: LPCWSTR, - pub lpstrTitle: LPCWSTR, - pub Flags: DWORD, - pub nFileOffset: WORD, - pub nFileExtension: WORD, - pub lpstrDefExt: LPCWSTR, - pub lCustData: LPARAM, - pub lpfnHook: LPOFNHOOKPROC, - pub lpTemplateName: LPCWSTR, - pub pvReserved: *mut ::std::os::raw::c_void, - pub dwReserved: DWORD, - pub FlagsEx: DWORD, -} -pub type OPENFILENAMEW = tagOFNW; -pub type LPOPENFILENAMEW = *mut tagOFNW; -pub type OPENFILENAME = OPENFILENAMEA; -pub type LPOPENFILENAME = LPOPENFILENAMEA; -extern "C" { - pub fn GetOpenFileNameA(arg1: LPOPENFILENAMEA) -> BOOL; -} -extern "C" { - pub fn GetOpenFileNameW(arg1: LPOPENFILENAMEW) -> BOOL; -} -extern "C" { - pub fn GetSaveFileNameA(arg1: LPOPENFILENAMEA) -> BOOL; -} -extern "C" { - pub fn GetSaveFileNameW(arg1: LPOPENFILENAMEW) -> BOOL; -} -extern "C" { - pub fn GetFileTitleA(arg1: LPCSTR, Buf: LPSTR, cchSize: WORD) -> ::std::os::raw::c_short; -} -extern "C" { - pub fn GetFileTitleW(arg1: LPCWSTR, Buf: LPWSTR, cchSize: WORD) -> ::std::os::raw::c_short; -} -pub type LPCCHOOKPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OFNOTIFYA { - pub hdr: NMHDR, - pub lpOFN: LPOPENFILENAMEA, - pub pszFile: LPSTR, -} -pub type OFNOTIFYA = _OFNOTIFYA; -pub type LPOFNOTIFYA = *mut _OFNOTIFYA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OFNOTIFYW { - pub hdr: NMHDR, - pub lpOFN: LPOPENFILENAMEW, - pub pszFile: LPWSTR, -} -pub type OFNOTIFYW = _OFNOTIFYW; -pub type LPOFNOTIFYW = *mut _OFNOTIFYW; -pub type OFNOTIFY = OFNOTIFYA; -pub type LPOFNOTIFY = LPOFNOTIFYA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OFNOTIFYEXA { - pub hdr: NMHDR, - pub lpOFN: LPOPENFILENAMEA, - pub psf: LPVOID, - pub pidl: LPVOID, -} -pub type OFNOTIFYEXA = _OFNOTIFYEXA; -pub type LPOFNOTIFYEXA = *mut _OFNOTIFYEXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _OFNOTIFYEXW { - pub hdr: NMHDR, - pub lpOFN: LPOPENFILENAMEW, - pub psf: LPVOID, - pub pidl: LPVOID, -} -pub type OFNOTIFYEXW = _OFNOTIFYEXW; -pub type LPOFNOTIFYEXW = *mut _OFNOTIFYEXW; -pub type OFNOTIFYEX = OFNOTIFYEXA; -pub type LPOFNOTIFYEX = LPOFNOTIFYEXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCHOOSECOLORA { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hInstance: HWND, - pub rgbResult: COLORREF, - pub lpCustColors: *mut COLORREF, - pub Flags: DWORD, - pub lCustData: LPARAM, - pub lpfnHook: LPCCHOOKPROC, - pub lpTemplateName: LPCSTR, -} -pub type CHOOSECOLORA = tagCHOOSECOLORA; -pub type LPCHOOSECOLORA = *mut tagCHOOSECOLORA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCHOOSECOLORW { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hInstance: HWND, - pub rgbResult: COLORREF, - pub lpCustColors: *mut COLORREF, - pub Flags: DWORD, - pub lCustData: LPARAM, - pub lpfnHook: LPCCHOOKPROC, - pub lpTemplateName: LPCWSTR, -} -pub type CHOOSECOLORW = tagCHOOSECOLORW; -pub type LPCHOOSECOLORW = *mut tagCHOOSECOLORW; -pub type CHOOSECOLOR = CHOOSECOLORA; -pub type LPCHOOSECOLOR = LPCHOOSECOLORA; -extern "C" { - pub fn ChooseColorA(arg1: LPCHOOSECOLORA) -> BOOL; -} -extern "C" { - pub fn ChooseColorW(arg1: LPCHOOSECOLORW) -> BOOL; -} -pub type LPFRHOOKPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagFINDREPLACEA { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hInstance: HINSTANCE, - pub Flags: DWORD, - pub lpstrFindWhat: LPSTR, - pub lpstrReplaceWith: LPSTR, - pub wFindWhatLen: WORD, - pub wReplaceWithLen: WORD, - pub lCustData: LPARAM, - pub lpfnHook: LPFRHOOKPROC, - pub lpTemplateName: LPCSTR, -} -pub type FINDREPLACEA = tagFINDREPLACEA; -pub type LPFINDREPLACEA = *mut tagFINDREPLACEA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagFINDREPLACEW { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hInstance: HINSTANCE, - pub Flags: DWORD, - pub lpstrFindWhat: LPWSTR, - pub lpstrReplaceWith: LPWSTR, - pub wFindWhatLen: WORD, - pub wReplaceWithLen: WORD, - pub lCustData: LPARAM, - pub lpfnHook: LPFRHOOKPROC, - pub lpTemplateName: LPCWSTR, -} -pub type FINDREPLACEW = tagFINDREPLACEW; -pub type LPFINDREPLACEW = *mut tagFINDREPLACEW; -pub type FINDREPLACE = FINDREPLACEA; -pub type LPFINDREPLACE = LPFINDREPLACEA; -extern "C" { - pub fn FindTextA(arg1: LPFINDREPLACEA) -> HWND; -} -extern "C" { - pub fn FindTextW(arg1: LPFINDREPLACEW) -> HWND; -} -extern "C" { - pub fn ReplaceTextA(arg1: LPFINDREPLACEA) -> HWND; -} -extern "C" { - pub fn ReplaceTextW(arg1: LPFINDREPLACEW) -> HWND; -} -pub type LPCFHOOKPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCHOOSEFONTA { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hDC: HDC, - pub lpLogFont: LPLOGFONTA, - pub iPointSize: INT, - pub Flags: DWORD, - pub rgbColors: COLORREF, - pub lCustData: LPARAM, - pub lpfnHook: LPCFHOOKPROC, - pub lpTemplateName: LPCSTR, - pub hInstance: HINSTANCE, - pub lpszStyle: LPSTR, - pub nFontType: WORD, - pub ___MISSING_ALIGNMENT__: WORD, - pub nSizeMin: INT, - pub nSizeMax: INT, -} -pub type CHOOSEFONTA = tagCHOOSEFONTA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCHOOSEFONTW { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hDC: HDC, - pub lpLogFont: LPLOGFONTW, - pub iPointSize: INT, - pub Flags: DWORD, - pub rgbColors: COLORREF, - pub lCustData: LPARAM, - pub lpfnHook: LPCFHOOKPROC, - pub lpTemplateName: LPCWSTR, - pub hInstance: HINSTANCE, - pub lpszStyle: LPWSTR, - pub nFontType: WORD, - pub ___MISSING_ALIGNMENT__: WORD, - pub nSizeMin: INT, - pub nSizeMax: INT, -} -pub type CHOOSEFONTW = tagCHOOSEFONTW; -pub type CHOOSEFONT = CHOOSEFONTA; -pub type LPCHOOSEFONTA = *mut CHOOSEFONTA; -pub type LPCHOOSEFONTW = *mut CHOOSEFONTW; -pub type LPCHOOSEFONT = LPCHOOSEFONTA; -pub type PCCHOOSEFONTA = *const CHOOSEFONTA; -pub type PCCHOOSEFONTW = *const CHOOSEFONTW; -pub type PCCHOOSEFONT = PCCHOOSEFONTA; -extern "C" { - pub fn ChooseFontA(arg1: LPCHOOSEFONTA) -> BOOL; -} -extern "C" { - pub fn ChooseFontW(arg1: LPCHOOSEFONTW) -> BOOL; -} -pub type LPPRINTHOOKPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, ->; -pub type LPSETUPHOOKPROC = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPDA { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hDevMode: HGLOBAL, - pub hDevNames: HGLOBAL, - pub hDC: HDC, - pub Flags: DWORD, - pub nFromPage: WORD, - pub nToPage: WORD, - pub nMinPage: WORD, - pub nMaxPage: WORD, - pub nCopies: WORD, - pub hInstance: HINSTANCE, - pub lCustData: LPARAM, - pub lpfnPrintHook: LPPRINTHOOKPROC, - pub lpfnSetupHook: LPSETUPHOOKPROC, - pub lpPrintTemplateName: LPCSTR, - pub lpSetupTemplateName: LPCSTR, - pub hPrintTemplate: HGLOBAL, - pub hSetupTemplate: HGLOBAL, -} -pub type PRINTDLGA = tagPDA; -pub type LPPRINTDLGA = *mut tagPDA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPDW { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hDevMode: HGLOBAL, - pub hDevNames: HGLOBAL, - pub hDC: HDC, - pub Flags: DWORD, - pub nFromPage: WORD, - pub nToPage: WORD, - pub nMinPage: WORD, - pub nMaxPage: WORD, - pub nCopies: WORD, - pub hInstance: HINSTANCE, - pub lCustData: LPARAM, - pub lpfnPrintHook: LPPRINTHOOKPROC, - pub lpfnSetupHook: LPSETUPHOOKPROC, - pub lpPrintTemplateName: LPCWSTR, - pub lpSetupTemplateName: LPCWSTR, - pub hPrintTemplate: HGLOBAL, - pub hSetupTemplate: HGLOBAL, -} -pub type PRINTDLGW = tagPDW; -pub type LPPRINTDLGW = *mut tagPDW; -pub type PRINTDLG = PRINTDLGA; -pub type LPPRINTDLG = LPPRINTDLGA; -extern "C" { - pub fn PrintDlgA(pPD: LPPRINTDLGA) -> BOOL; -} -extern "C" { - pub fn PrintDlgW(pPD: LPPRINTDLGW) -> BOOL; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPrintDialogCallback { - pub lpVtbl: *mut IPrintDialogCallbackVtbl, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPrintDialogCallbackVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPrintDialogCallback, - riid: *const IID, - ppvObj: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub InitDone: - ::std::option::Option HRESULT>, - pub SelectionChange: - ::std::option::Option HRESULT>, - pub HandleMessage: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPrintDialogCallback, - hDlg: HWND, - uMsg: UINT, - wParam: WPARAM, - lParam: LPARAM, - pResult: *mut LRESULT, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPrintDialogServices { - pub lpVtbl: *mut IPrintDialogServicesVtbl, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IPrintDialogServicesVtbl { - pub QueryInterface: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPrintDialogServices, - riid: *const IID, - ppvObj: *mut *mut ::std::os::raw::c_void, - ) -> HRESULT, - >, - pub AddRef: - ::std::option::Option ULONG>, - pub Release: - ::std::option::Option ULONG>, - pub GetCurrentDevMode: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPrintDialogServices, - pDevMode: LPDEVMODE, - pcbSize: *mut UINT, - ) -> HRESULT, - >, - pub GetCurrentPrinterName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPrintDialogServices, - pPrinterName: LPWSTR, - pcchSize: *mut UINT, - ) -> HRESULT, - >, - pub GetCurrentPortName: ::std::option::Option< - unsafe extern "C" fn( - This: *mut IPrintDialogServices, - pPortName: LPWSTR, - pcchSize: *mut UINT, - ) -> HRESULT, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPRINTPAGERANGE { - pub nFromPage: DWORD, - pub nToPage: DWORD, -} -pub type PRINTPAGERANGE = tagPRINTPAGERANGE; -pub type LPPRINTPAGERANGE = *mut PRINTPAGERANGE; -pub type PCPRINTPAGERANGE = *const PRINTPAGERANGE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPDEXA { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hDevMode: HGLOBAL, - pub hDevNames: HGLOBAL, - pub hDC: HDC, - pub Flags: DWORD, - pub Flags2: DWORD, - pub ExclusionFlags: DWORD, - pub nPageRanges: DWORD, - pub nMaxPageRanges: DWORD, - pub lpPageRanges: LPPRINTPAGERANGE, - pub nMinPage: DWORD, - pub nMaxPage: DWORD, - pub nCopies: DWORD, - pub hInstance: HINSTANCE, - pub lpPrintTemplateName: LPCSTR, - pub lpCallback: LPUNKNOWN, - pub nPropertyPages: DWORD, - pub lphPropertyPages: *mut HPROPSHEETPAGE, - pub nStartPage: DWORD, - pub dwResultAction: DWORD, -} -pub type PRINTDLGEXA = tagPDEXA; -pub type LPPRINTDLGEXA = *mut tagPDEXA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPDEXW { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hDevMode: HGLOBAL, - pub hDevNames: HGLOBAL, - pub hDC: HDC, - pub Flags: DWORD, - pub Flags2: DWORD, - pub ExclusionFlags: DWORD, - pub nPageRanges: DWORD, - pub nMaxPageRanges: DWORD, - pub lpPageRanges: LPPRINTPAGERANGE, - pub nMinPage: DWORD, - pub nMaxPage: DWORD, - pub nCopies: DWORD, - pub hInstance: HINSTANCE, - pub lpPrintTemplateName: LPCWSTR, - pub lpCallback: LPUNKNOWN, - pub nPropertyPages: DWORD, - pub lphPropertyPages: *mut HPROPSHEETPAGE, - pub nStartPage: DWORD, - pub dwResultAction: DWORD, -} -pub type PRINTDLGEXW = tagPDEXW; -pub type LPPRINTDLGEXW = *mut tagPDEXW; -pub type PRINTDLGEX = PRINTDLGEXA; -pub type LPPRINTDLGEX = LPPRINTDLGEXA; -extern "C" { - pub fn PrintDlgExA(pPD: LPPRINTDLGEXA) -> HRESULT; -} -extern "C" { - pub fn PrintDlgExW(pPD: LPPRINTDLGEXW) -> HRESULT; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagDEVNAMES { - pub wDriverOffset: WORD, - pub wDeviceOffset: WORD, - pub wOutputOffset: WORD, - pub wDefault: WORD, -} -pub type DEVNAMES = tagDEVNAMES; -pub type LPDEVNAMES = *mut DEVNAMES; -pub type PCDEVNAMES = *const DEVNAMES; -extern "C" { - pub fn CommDlgExtendedError() -> DWORD; -} -pub type LPPAGEPAINTHOOK = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, ->; -pub type LPPAGESETUPHOOK = ::std::option::Option< - unsafe extern "C" fn(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> UINT_PTR, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPSDA { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hDevMode: HGLOBAL, - pub hDevNames: HGLOBAL, - pub Flags: DWORD, - pub ptPaperSize: POINT, - pub rtMinMargin: RECT, - pub rtMargin: RECT, - pub hInstance: HINSTANCE, - pub lCustData: LPARAM, - pub lpfnPageSetupHook: LPPAGESETUPHOOK, - pub lpfnPagePaintHook: LPPAGEPAINTHOOK, - pub lpPageSetupTemplateName: LPCSTR, - pub hPageSetupTemplate: HGLOBAL, -} -pub type PAGESETUPDLGA = tagPSDA; -pub type LPPAGESETUPDLGA = *mut tagPSDA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPSDW { - pub lStructSize: DWORD, - pub hwndOwner: HWND, - pub hDevMode: HGLOBAL, - pub hDevNames: HGLOBAL, - pub Flags: DWORD, - pub ptPaperSize: POINT, - pub rtMinMargin: RECT, - pub rtMargin: RECT, - pub hInstance: HINSTANCE, - pub lCustData: LPARAM, - pub lpfnPageSetupHook: LPPAGESETUPHOOK, - pub lpfnPagePaintHook: LPPAGEPAINTHOOK, - pub lpPageSetupTemplateName: LPCWSTR, - pub hPageSetupTemplate: HGLOBAL, -} -pub type PAGESETUPDLGW = tagPSDW; -pub type LPPAGESETUPDLGW = *mut tagPSDW; -pub type PAGESETUPDLG = PAGESETUPDLGA; -pub type LPPAGESETUPDLG = LPPAGESETUPDLGA; -extern "C" { - pub fn PageSetupDlgA(arg1: LPPAGESETUPDLGA) -> BOOL; -} -extern "C" { - pub fn PageSetupDlgW(arg1: LPPAGESETUPDLGW) -> BOOL; -} -extern "C" { - pub fn uaw_CharUpperW(String: LPUWSTR) -> LPUWSTR; -} -extern "C" { - pub fn uaw_lstrcmpW(String1: PCUWSTR, String2: PCUWSTR) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn uaw_lstrcmpiW(String1: PCUWSTR, String2: PCUWSTR) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn uaw_lstrlenW(String: LPCUWSTR) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn uaw_wcschr(String: PCUWSTR, Character: WCHAR) -> PUWSTR; -} -extern "C" { - pub fn uaw_wcscpy(Destination: PUWSTR, Source: PCUWSTR) -> PUWSTR; -} -extern "C" { - pub fn uaw_wcsicmp(String1: PCUWSTR, String2: PCUWSTR) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn uaw_wcslen(String: PCUWSTR) -> usize; -} -extern "C" { - pub fn uaw_wcsrchr(String: PCUWSTR, Character: WCHAR) -> PUWSTR; -} -pub type PUWSTR_C = *mut WCHAR; -extern "C" { - pub static NETWORK_MANAGER_FIRST_IP_ADDRESS_ARRIVAL_GUID: GUID; -} -extern "C" { - pub static NETWORK_MANAGER_LAST_IP_ADDRESS_REMOVAL_GUID: GUID; -} -extern "C" { - pub static DOMAIN_JOIN_GUID: GUID; -} -extern "C" { - pub static DOMAIN_LEAVE_GUID: GUID; -} -extern "C" { - pub static FIREWALL_PORT_OPEN_GUID: GUID; -} -extern "C" { - pub static FIREWALL_PORT_CLOSE_GUID: GUID; -} -extern "C" { - pub static MACHINE_POLICY_PRESENT_GUID: GUID; -} -extern "C" { - pub static USER_POLICY_PRESENT_GUID: GUID; -} -extern "C" { - pub static RPC_INTERFACE_EVENT_GUID: GUID; -} -extern "C" { - pub static NAMED_PIPE_EVENT_GUID: GUID; -} -extern "C" { - pub static CUSTOM_SYSTEM_STATE_CHANGE_EVENT_GUID: GUID; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SERVICE_TRIGGER_CUSTOM_STATE_ID { - pub Data: [DWORD; 2usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM { - pub u: _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM__bindgen_ty_1 { - pub CustomStateId: SERVICE_TRIGGER_CUSTOM_STATE_ID, - pub s: _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM__bindgen_ty_1__bindgen_ty_1 { - pub DataOffset: DWORD, - pub Data: [BYTE; 1usize], -} -pub type SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM = - _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM; -pub type LPSERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM = - *mut _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_DESCRIPTIONA { - pub lpDescription: LPSTR, -} -pub type SERVICE_DESCRIPTIONA = _SERVICE_DESCRIPTIONA; -pub type LPSERVICE_DESCRIPTIONA = *mut _SERVICE_DESCRIPTIONA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_DESCRIPTIONW { - pub lpDescription: LPWSTR, -} -pub type SERVICE_DESCRIPTIONW = _SERVICE_DESCRIPTIONW; -pub type LPSERVICE_DESCRIPTIONW = *mut _SERVICE_DESCRIPTIONW; -pub type SERVICE_DESCRIPTION = SERVICE_DESCRIPTIONA; -pub type LPSERVICE_DESCRIPTION = LPSERVICE_DESCRIPTIONA; -pub const _SC_ACTION_TYPE_SC_ACTION_NONE: _SC_ACTION_TYPE = 0; -pub const _SC_ACTION_TYPE_SC_ACTION_RESTART: _SC_ACTION_TYPE = 1; -pub const _SC_ACTION_TYPE_SC_ACTION_REBOOT: _SC_ACTION_TYPE = 2; -pub const _SC_ACTION_TYPE_SC_ACTION_RUN_COMMAND: _SC_ACTION_TYPE = 3; -pub const _SC_ACTION_TYPE_SC_ACTION_OWN_RESTART: _SC_ACTION_TYPE = 4; -pub type _SC_ACTION_TYPE = ::std::os::raw::c_int; -pub use self::_SC_ACTION_TYPE as SC_ACTION_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SC_ACTION { - pub Type: SC_ACTION_TYPE, - pub Delay: DWORD, -} -pub type SC_ACTION = _SC_ACTION; -pub type LPSC_ACTION = *mut _SC_ACTION; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_FAILURE_ACTIONSA { - pub dwResetPeriod: DWORD, - pub lpRebootMsg: LPSTR, - pub lpCommand: LPSTR, - pub cActions: DWORD, - pub lpsaActions: *mut SC_ACTION, -} -pub type SERVICE_FAILURE_ACTIONSA = _SERVICE_FAILURE_ACTIONSA; -pub type LPSERVICE_FAILURE_ACTIONSA = *mut _SERVICE_FAILURE_ACTIONSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_FAILURE_ACTIONSW { - pub dwResetPeriod: DWORD, - pub lpRebootMsg: LPWSTR, - pub lpCommand: LPWSTR, - pub cActions: DWORD, - pub lpsaActions: *mut SC_ACTION, -} -pub type SERVICE_FAILURE_ACTIONSW = _SERVICE_FAILURE_ACTIONSW; -pub type LPSERVICE_FAILURE_ACTIONSW = *mut _SERVICE_FAILURE_ACTIONSW; -pub type SERVICE_FAILURE_ACTIONS = SERVICE_FAILURE_ACTIONSA; -pub type LPSERVICE_FAILURE_ACTIONS = LPSERVICE_FAILURE_ACTIONSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_DELAYED_AUTO_START_INFO { - pub fDelayedAutostart: BOOL, -} -pub type SERVICE_DELAYED_AUTO_START_INFO = _SERVICE_DELAYED_AUTO_START_INFO; -pub type LPSERVICE_DELAYED_AUTO_START_INFO = *mut _SERVICE_DELAYED_AUTO_START_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_FAILURE_ACTIONS_FLAG { - pub fFailureActionsOnNonCrashFailures: BOOL, -} -pub type SERVICE_FAILURE_ACTIONS_FLAG = _SERVICE_FAILURE_ACTIONS_FLAG; -pub type LPSERVICE_FAILURE_ACTIONS_FLAG = *mut _SERVICE_FAILURE_ACTIONS_FLAG; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_SID_INFO { - pub dwServiceSidType: DWORD, -} -pub type SERVICE_SID_INFO = _SERVICE_SID_INFO; -pub type LPSERVICE_SID_INFO = *mut _SERVICE_SID_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_REQUIRED_PRIVILEGES_INFOA { - pub pmszRequiredPrivileges: LPSTR, -} -pub type SERVICE_REQUIRED_PRIVILEGES_INFOA = _SERVICE_REQUIRED_PRIVILEGES_INFOA; -pub type LPSERVICE_REQUIRED_PRIVILEGES_INFOA = *mut _SERVICE_REQUIRED_PRIVILEGES_INFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_REQUIRED_PRIVILEGES_INFOW { - pub pmszRequiredPrivileges: LPWSTR, -} -pub type SERVICE_REQUIRED_PRIVILEGES_INFOW = _SERVICE_REQUIRED_PRIVILEGES_INFOW; -pub type LPSERVICE_REQUIRED_PRIVILEGES_INFOW = *mut _SERVICE_REQUIRED_PRIVILEGES_INFOW; -pub type SERVICE_REQUIRED_PRIVILEGES_INFO = SERVICE_REQUIRED_PRIVILEGES_INFOA; -pub type LPSERVICE_REQUIRED_PRIVILEGES_INFO = LPSERVICE_REQUIRED_PRIVILEGES_INFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_PRESHUTDOWN_INFO { - pub dwPreshutdownTimeout: DWORD, -} -pub type SERVICE_PRESHUTDOWN_INFO = _SERVICE_PRESHUTDOWN_INFO; -pub type LPSERVICE_PRESHUTDOWN_INFO = *mut _SERVICE_PRESHUTDOWN_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_TRIGGER_SPECIFIC_DATA_ITEM { - pub dwDataType: DWORD, - pub cbData: DWORD, - pub pData: PBYTE, -} -pub type SERVICE_TRIGGER_SPECIFIC_DATA_ITEM = _SERVICE_TRIGGER_SPECIFIC_DATA_ITEM; -pub type PSERVICE_TRIGGER_SPECIFIC_DATA_ITEM = *mut _SERVICE_TRIGGER_SPECIFIC_DATA_ITEM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_TRIGGER { - pub dwTriggerType: DWORD, - pub dwAction: DWORD, - pub pTriggerSubtype: *mut GUID, - pub cDataItems: DWORD, - pub pDataItems: PSERVICE_TRIGGER_SPECIFIC_DATA_ITEM, -} -pub type SERVICE_TRIGGER = _SERVICE_TRIGGER; -pub type PSERVICE_TRIGGER = *mut _SERVICE_TRIGGER; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_TRIGGER_INFO { - pub cTriggers: DWORD, - pub pTriggers: PSERVICE_TRIGGER, - pub pReserved: PBYTE, -} -pub type SERVICE_TRIGGER_INFO = _SERVICE_TRIGGER_INFO; -pub type PSERVICE_TRIGGER_INFO = *mut _SERVICE_TRIGGER_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_PREFERRED_NODE_INFO { - pub usPreferredNode: USHORT, - pub fDelete: BOOLEAN, -} -pub type SERVICE_PREFERRED_NODE_INFO = _SERVICE_PREFERRED_NODE_INFO; -pub type LPSERVICE_PREFERRED_NODE_INFO = *mut _SERVICE_PREFERRED_NODE_INFO; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _SERVICE_TIMECHANGE_INFO { - pub liNewTime: LARGE_INTEGER, - pub liOldTime: LARGE_INTEGER, -} -pub type SERVICE_TIMECHANGE_INFO = _SERVICE_TIMECHANGE_INFO; -pub type PSERVICE_TIMECHANGE_INFO = *mut _SERVICE_TIMECHANGE_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_LAUNCH_PROTECTED_INFO { - pub dwLaunchProtected: DWORD, -} -pub type SERVICE_LAUNCH_PROTECTED_INFO = _SERVICE_LAUNCH_PROTECTED_INFO; -pub type PSERVICE_LAUNCH_PROTECTED_INFO = *mut _SERVICE_LAUNCH_PROTECTED_INFO; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SC_HANDLE__ { - pub unused: ::std::os::raw::c_int, -} -pub type SC_HANDLE = *mut SC_HANDLE__; -pub type LPSC_HANDLE = *mut SC_HANDLE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SERVICE_STATUS_HANDLE__ { - pub unused: ::std::os::raw::c_int, -} -pub type SERVICE_STATUS_HANDLE = *mut SERVICE_STATUS_HANDLE__; -pub const _SC_STATUS_TYPE_SC_STATUS_PROCESS_INFO: _SC_STATUS_TYPE = 0; -pub type _SC_STATUS_TYPE = ::std::os::raw::c_int; -pub use self::_SC_STATUS_TYPE as SC_STATUS_TYPE; -pub const _SC_ENUM_TYPE_SC_ENUM_PROCESS_INFO: _SC_ENUM_TYPE = 0; -pub type _SC_ENUM_TYPE = ::std::os::raw::c_int; -pub use self::_SC_ENUM_TYPE as SC_ENUM_TYPE; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_STATUS { - pub dwServiceType: DWORD, - pub dwCurrentState: DWORD, - pub dwControlsAccepted: DWORD, - pub dwWin32ExitCode: DWORD, - pub dwServiceSpecificExitCode: DWORD, - pub dwCheckPoint: DWORD, - pub dwWaitHint: DWORD, -} -pub type SERVICE_STATUS = _SERVICE_STATUS; -pub type LPSERVICE_STATUS = *mut _SERVICE_STATUS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_STATUS_PROCESS { - pub dwServiceType: DWORD, - pub dwCurrentState: DWORD, - pub dwControlsAccepted: DWORD, - pub dwWin32ExitCode: DWORD, - pub dwServiceSpecificExitCode: DWORD, - pub dwCheckPoint: DWORD, - pub dwWaitHint: DWORD, - pub dwProcessId: DWORD, - pub dwServiceFlags: DWORD, -} -pub type SERVICE_STATUS_PROCESS = _SERVICE_STATUS_PROCESS; -pub type LPSERVICE_STATUS_PROCESS = *mut _SERVICE_STATUS_PROCESS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENUM_SERVICE_STATUSA { - pub lpServiceName: LPSTR, - pub lpDisplayName: LPSTR, - pub ServiceStatus: SERVICE_STATUS, -} -pub type ENUM_SERVICE_STATUSA = _ENUM_SERVICE_STATUSA; -pub type LPENUM_SERVICE_STATUSA = *mut _ENUM_SERVICE_STATUSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENUM_SERVICE_STATUSW { - pub lpServiceName: LPWSTR, - pub lpDisplayName: LPWSTR, - pub ServiceStatus: SERVICE_STATUS, -} -pub type ENUM_SERVICE_STATUSW = _ENUM_SERVICE_STATUSW; -pub type LPENUM_SERVICE_STATUSW = *mut _ENUM_SERVICE_STATUSW; -pub type ENUM_SERVICE_STATUS = ENUM_SERVICE_STATUSA; -pub type LPENUM_SERVICE_STATUS = LPENUM_SERVICE_STATUSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENUM_SERVICE_STATUS_PROCESSA { - pub lpServiceName: LPSTR, - pub lpDisplayName: LPSTR, - pub ServiceStatusProcess: SERVICE_STATUS_PROCESS, -} -pub type ENUM_SERVICE_STATUS_PROCESSA = _ENUM_SERVICE_STATUS_PROCESSA; -pub type LPENUM_SERVICE_STATUS_PROCESSA = *mut _ENUM_SERVICE_STATUS_PROCESSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ENUM_SERVICE_STATUS_PROCESSW { - pub lpServiceName: LPWSTR, - pub lpDisplayName: LPWSTR, - pub ServiceStatusProcess: SERVICE_STATUS_PROCESS, -} -pub type ENUM_SERVICE_STATUS_PROCESSW = _ENUM_SERVICE_STATUS_PROCESSW; -pub type LPENUM_SERVICE_STATUS_PROCESSW = *mut _ENUM_SERVICE_STATUS_PROCESSW; -pub type ENUM_SERVICE_STATUS_PROCESS = ENUM_SERVICE_STATUS_PROCESSA; -pub type LPENUM_SERVICE_STATUS_PROCESS = LPENUM_SERVICE_STATUS_PROCESSA; -pub type SC_LOCK = LPVOID; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _QUERY_SERVICE_LOCK_STATUSA { - pub fIsLocked: DWORD, - pub lpLockOwner: LPSTR, - pub dwLockDuration: DWORD, -} -pub type QUERY_SERVICE_LOCK_STATUSA = _QUERY_SERVICE_LOCK_STATUSA; -pub type LPQUERY_SERVICE_LOCK_STATUSA = *mut _QUERY_SERVICE_LOCK_STATUSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _QUERY_SERVICE_LOCK_STATUSW { - pub fIsLocked: DWORD, - pub lpLockOwner: LPWSTR, - pub dwLockDuration: DWORD, -} -pub type QUERY_SERVICE_LOCK_STATUSW = _QUERY_SERVICE_LOCK_STATUSW; -pub type LPQUERY_SERVICE_LOCK_STATUSW = *mut _QUERY_SERVICE_LOCK_STATUSW; -pub type QUERY_SERVICE_LOCK_STATUS = QUERY_SERVICE_LOCK_STATUSA; -pub type LPQUERY_SERVICE_LOCK_STATUS = LPQUERY_SERVICE_LOCK_STATUSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _QUERY_SERVICE_CONFIGA { - pub dwServiceType: DWORD, - pub dwStartType: DWORD, - pub dwErrorControl: DWORD, - pub lpBinaryPathName: LPSTR, - pub lpLoadOrderGroup: LPSTR, - pub dwTagId: DWORD, - pub lpDependencies: LPSTR, - pub lpServiceStartName: LPSTR, - pub lpDisplayName: LPSTR, -} -pub type QUERY_SERVICE_CONFIGA = _QUERY_SERVICE_CONFIGA; -pub type LPQUERY_SERVICE_CONFIGA = *mut _QUERY_SERVICE_CONFIGA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _QUERY_SERVICE_CONFIGW { - pub dwServiceType: DWORD, - pub dwStartType: DWORD, - pub dwErrorControl: DWORD, - pub lpBinaryPathName: LPWSTR, - pub lpLoadOrderGroup: LPWSTR, - pub dwTagId: DWORD, - pub lpDependencies: LPWSTR, - pub lpServiceStartName: LPWSTR, - pub lpDisplayName: LPWSTR, -} -pub type QUERY_SERVICE_CONFIGW = _QUERY_SERVICE_CONFIGW; -pub type LPQUERY_SERVICE_CONFIGW = *mut _QUERY_SERVICE_CONFIGW; -pub type QUERY_SERVICE_CONFIG = QUERY_SERVICE_CONFIGA; -pub type LPQUERY_SERVICE_CONFIG = LPQUERY_SERVICE_CONFIGA; -pub type LPSERVICE_MAIN_FUNCTIONW = ::std::option::Option< - unsafe extern "C" fn(dwNumServicesArgs: DWORD, lpServiceArgVectors: *mut LPWSTR), ->; -pub type LPSERVICE_MAIN_FUNCTIONA = ::std::option::Option< - unsafe extern "C" fn(dwNumServicesArgs: DWORD, lpServiceArgVectors: *mut LPSTR), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_TABLE_ENTRYA { - pub lpServiceName: LPSTR, - pub lpServiceProc: LPSERVICE_MAIN_FUNCTIONA, -} -pub type SERVICE_TABLE_ENTRYA = _SERVICE_TABLE_ENTRYA; -pub type LPSERVICE_TABLE_ENTRYA = *mut _SERVICE_TABLE_ENTRYA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_TABLE_ENTRYW { - pub lpServiceName: LPWSTR, - pub lpServiceProc: LPSERVICE_MAIN_FUNCTIONW, -} -pub type SERVICE_TABLE_ENTRYW = _SERVICE_TABLE_ENTRYW; -pub type LPSERVICE_TABLE_ENTRYW = *mut _SERVICE_TABLE_ENTRYW; -pub type SERVICE_TABLE_ENTRY = SERVICE_TABLE_ENTRYA; -pub type LPSERVICE_TABLE_ENTRY = LPSERVICE_TABLE_ENTRYA; -pub type LPHANDLER_FUNCTION = ::std::option::Option; -pub type LPHANDLER_FUNCTION_EX = ::std::option::Option< - unsafe extern "C" fn( - dwControl: DWORD, - dwEventType: DWORD, - lpEventData: LPVOID, - lpContext: LPVOID, - ) -> DWORD, ->; -pub type PFN_SC_NOTIFY_CALLBACK = ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_NOTIFY_1 { - pub dwVersion: DWORD, - pub pfnNotifyCallback: PFN_SC_NOTIFY_CALLBACK, - pub pContext: PVOID, - pub dwNotificationStatus: DWORD, - pub ServiceStatus: SERVICE_STATUS_PROCESS, -} -pub type SERVICE_NOTIFY_1 = _SERVICE_NOTIFY_1; -pub type PSERVICE_NOTIFY_1 = *mut _SERVICE_NOTIFY_1; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_NOTIFY_2A { - pub dwVersion: DWORD, - pub pfnNotifyCallback: PFN_SC_NOTIFY_CALLBACK, - pub pContext: PVOID, - pub dwNotificationStatus: DWORD, - pub ServiceStatus: SERVICE_STATUS_PROCESS, - pub dwNotificationTriggered: DWORD, - pub pszServiceNames: LPSTR, -} -pub type SERVICE_NOTIFY_2A = _SERVICE_NOTIFY_2A; -pub type PSERVICE_NOTIFY_2A = *mut _SERVICE_NOTIFY_2A; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_NOTIFY_2W { - pub dwVersion: DWORD, - pub pfnNotifyCallback: PFN_SC_NOTIFY_CALLBACK, - pub pContext: PVOID, - pub dwNotificationStatus: DWORD, - pub ServiceStatus: SERVICE_STATUS_PROCESS, - pub dwNotificationTriggered: DWORD, - pub pszServiceNames: LPWSTR, -} -pub type SERVICE_NOTIFY_2W = _SERVICE_NOTIFY_2W; -pub type PSERVICE_NOTIFY_2W = *mut _SERVICE_NOTIFY_2W; -pub type SERVICE_NOTIFY_2 = SERVICE_NOTIFY_2A; -pub type PSERVICE_NOTIFY_2 = PSERVICE_NOTIFY_2A; -pub type SERVICE_NOTIFYA = SERVICE_NOTIFY_2A; -pub type PSERVICE_NOTIFYA = *mut SERVICE_NOTIFY_2A; -pub type SERVICE_NOTIFYW = SERVICE_NOTIFY_2W; -pub type PSERVICE_NOTIFYW = *mut SERVICE_NOTIFY_2W; -pub type SERVICE_NOTIFY = SERVICE_NOTIFYA; -pub type PSERVICE_NOTIFY = PSERVICE_NOTIFYA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_CONTROL_STATUS_REASON_PARAMSA { - pub dwReason: DWORD, - pub pszComment: LPSTR, - pub ServiceStatus: SERVICE_STATUS_PROCESS, -} -pub type SERVICE_CONTROL_STATUS_REASON_PARAMSA = _SERVICE_CONTROL_STATUS_REASON_PARAMSA; -pub type PSERVICE_CONTROL_STATUS_REASON_PARAMSA = *mut _SERVICE_CONTROL_STATUS_REASON_PARAMSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_CONTROL_STATUS_REASON_PARAMSW { - pub dwReason: DWORD, - pub pszComment: LPWSTR, - pub ServiceStatus: SERVICE_STATUS_PROCESS, -} -pub type SERVICE_CONTROL_STATUS_REASON_PARAMSW = _SERVICE_CONTROL_STATUS_REASON_PARAMSW; -pub type PSERVICE_CONTROL_STATUS_REASON_PARAMSW = *mut _SERVICE_CONTROL_STATUS_REASON_PARAMSW; -pub type SERVICE_CONTROL_STATUS_REASON_PARAMS = SERVICE_CONTROL_STATUS_REASON_PARAMSA; -pub type PSERVICE_CONTROL_STATUS_REASON_PARAMS = PSERVICE_CONTROL_STATUS_REASON_PARAMSA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SERVICE_START_REASON { - pub dwReason: DWORD, -} -pub type SERVICE_START_REASON = _SERVICE_START_REASON; -pub type PSERVICE_START_REASON = *mut _SERVICE_START_REASON; -extern "C" { - pub fn ChangeServiceConfigA( - hService: SC_HANDLE, - dwServiceType: DWORD, - dwStartType: DWORD, - dwErrorControl: DWORD, - lpBinaryPathName: LPCSTR, - lpLoadOrderGroup: LPCSTR, - lpdwTagId: LPDWORD, - lpDependencies: LPCSTR, - lpServiceStartName: LPCSTR, - lpPassword: LPCSTR, - lpDisplayName: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn ChangeServiceConfigW( - hService: SC_HANDLE, - dwServiceType: DWORD, - dwStartType: DWORD, - dwErrorControl: DWORD, - lpBinaryPathName: LPCWSTR, - lpLoadOrderGroup: LPCWSTR, - lpdwTagId: LPDWORD, - lpDependencies: LPCWSTR, - lpServiceStartName: LPCWSTR, - lpPassword: LPCWSTR, - lpDisplayName: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn ChangeServiceConfig2A(hService: SC_HANDLE, dwInfoLevel: DWORD, lpInfo: LPVOID) -> BOOL; -} -extern "C" { - pub fn ChangeServiceConfig2W(hService: SC_HANDLE, dwInfoLevel: DWORD, lpInfo: LPVOID) -> BOOL; -} -extern "C" { - pub fn CloseServiceHandle(hSCObject: SC_HANDLE) -> BOOL; -} -extern "C" { - pub fn ControlService( - hService: SC_HANDLE, - dwControl: DWORD, - lpServiceStatus: LPSERVICE_STATUS, - ) -> BOOL; -} -extern "C" { - pub fn CreateServiceA( - hSCManager: SC_HANDLE, - lpServiceName: LPCSTR, - lpDisplayName: LPCSTR, - dwDesiredAccess: DWORD, - dwServiceType: DWORD, - dwStartType: DWORD, - dwErrorControl: DWORD, - lpBinaryPathName: LPCSTR, - lpLoadOrderGroup: LPCSTR, - lpdwTagId: LPDWORD, - lpDependencies: LPCSTR, - lpServiceStartName: LPCSTR, - lpPassword: LPCSTR, - ) -> SC_HANDLE; -} -extern "C" { - pub fn CreateServiceW( - hSCManager: SC_HANDLE, - lpServiceName: LPCWSTR, - lpDisplayName: LPCWSTR, - dwDesiredAccess: DWORD, - dwServiceType: DWORD, - dwStartType: DWORD, - dwErrorControl: DWORD, - lpBinaryPathName: LPCWSTR, - lpLoadOrderGroup: LPCWSTR, - lpdwTagId: LPDWORD, - lpDependencies: LPCWSTR, - lpServiceStartName: LPCWSTR, - lpPassword: LPCWSTR, - ) -> SC_HANDLE; -} -extern "C" { - pub fn DeleteService(hService: SC_HANDLE) -> BOOL; -} -extern "C" { - pub fn EnumDependentServicesA( - hService: SC_HANDLE, - dwServiceState: DWORD, - lpServices: LPENUM_SERVICE_STATUSA, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - lpServicesReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumDependentServicesW( - hService: SC_HANDLE, - dwServiceState: DWORD, - lpServices: LPENUM_SERVICE_STATUSW, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - lpServicesReturned: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumServicesStatusA( - hSCManager: SC_HANDLE, - dwServiceType: DWORD, - dwServiceState: DWORD, - lpServices: LPENUM_SERVICE_STATUSA, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - lpServicesReturned: LPDWORD, - lpResumeHandle: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumServicesStatusW( - hSCManager: SC_HANDLE, - dwServiceType: DWORD, - dwServiceState: DWORD, - lpServices: LPENUM_SERVICE_STATUSW, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - lpServicesReturned: LPDWORD, - lpResumeHandle: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn EnumServicesStatusExA( - hSCManager: SC_HANDLE, - InfoLevel: SC_ENUM_TYPE, - dwServiceType: DWORD, - dwServiceState: DWORD, - lpServices: LPBYTE, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - lpServicesReturned: LPDWORD, - lpResumeHandle: LPDWORD, - pszGroupName: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn EnumServicesStatusExW( - hSCManager: SC_HANDLE, - InfoLevel: SC_ENUM_TYPE, - dwServiceType: DWORD, - dwServiceState: DWORD, - lpServices: LPBYTE, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - lpServicesReturned: LPDWORD, - lpResumeHandle: LPDWORD, - pszGroupName: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn GetServiceKeyNameA( - hSCManager: SC_HANDLE, - lpDisplayName: LPCSTR, - lpServiceName: LPSTR, - lpcchBuffer: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetServiceKeyNameW( - hSCManager: SC_HANDLE, - lpDisplayName: LPCWSTR, - lpServiceName: LPWSTR, - lpcchBuffer: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetServiceDisplayNameA( - hSCManager: SC_HANDLE, - lpServiceName: LPCSTR, - lpDisplayName: LPSTR, - lpcchBuffer: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn GetServiceDisplayNameW( - hSCManager: SC_HANDLE, - lpServiceName: LPCWSTR, - lpDisplayName: LPWSTR, - lpcchBuffer: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn LockServiceDatabase(hSCManager: SC_HANDLE) -> SC_LOCK; -} -extern "C" { - pub fn NotifyBootConfigStatus(BootAcceptable: BOOL) -> BOOL; -} -extern "C" { - pub fn OpenSCManagerA( - lpMachineName: LPCSTR, - lpDatabaseName: LPCSTR, - dwDesiredAccess: DWORD, - ) -> SC_HANDLE; -} -extern "C" { - pub fn OpenSCManagerW( - lpMachineName: LPCWSTR, - lpDatabaseName: LPCWSTR, - dwDesiredAccess: DWORD, - ) -> SC_HANDLE; -} -extern "C" { - pub fn OpenServiceA( - hSCManager: SC_HANDLE, - lpServiceName: LPCSTR, - dwDesiredAccess: DWORD, - ) -> SC_HANDLE; -} -extern "C" { - pub fn OpenServiceW( - hSCManager: SC_HANDLE, - lpServiceName: LPCWSTR, - dwDesiredAccess: DWORD, - ) -> SC_HANDLE; -} -extern "C" { - pub fn QueryServiceConfigA( - hService: SC_HANDLE, - lpServiceConfig: LPQUERY_SERVICE_CONFIGA, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn QueryServiceConfigW( - hService: SC_HANDLE, - lpServiceConfig: LPQUERY_SERVICE_CONFIGW, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn QueryServiceConfig2A( - hService: SC_HANDLE, - dwInfoLevel: DWORD, - lpBuffer: LPBYTE, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn QueryServiceConfig2W( - hService: SC_HANDLE, - dwInfoLevel: DWORD, - lpBuffer: LPBYTE, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn QueryServiceLockStatusA( - hSCManager: SC_HANDLE, - lpLockStatus: LPQUERY_SERVICE_LOCK_STATUSA, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn QueryServiceLockStatusW( - hSCManager: SC_HANDLE, - lpLockStatus: LPQUERY_SERVICE_LOCK_STATUSW, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn QueryServiceObjectSecurity( - hService: SC_HANDLE, - dwSecurityInformation: SECURITY_INFORMATION, - lpSecurityDescriptor: PSECURITY_DESCRIPTOR, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn QueryServiceStatus(hService: SC_HANDLE, lpServiceStatus: LPSERVICE_STATUS) -> BOOL; -} -extern "C" { - pub fn QueryServiceStatusEx( - hService: SC_HANDLE, - InfoLevel: SC_STATUS_TYPE, - lpBuffer: LPBYTE, - cbBufSize: DWORD, - pcbBytesNeeded: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn RegisterServiceCtrlHandlerA( - lpServiceName: LPCSTR, - lpHandlerProc: LPHANDLER_FUNCTION, - ) -> SERVICE_STATUS_HANDLE; -} -extern "C" { - pub fn RegisterServiceCtrlHandlerW( - lpServiceName: LPCWSTR, - lpHandlerProc: LPHANDLER_FUNCTION, - ) -> SERVICE_STATUS_HANDLE; -} -extern "C" { - pub fn RegisterServiceCtrlHandlerExA( - lpServiceName: LPCSTR, - lpHandlerProc: LPHANDLER_FUNCTION_EX, - lpContext: LPVOID, - ) -> SERVICE_STATUS_HANDLE; -} -extern "C" { - pub fn RegisterServiceCtrlHandlerExW( - lpServiceName: LPCWSTR, - lpHandlerProc: LPHANDLER_FUNCTION_EX, - lpContext: LPVOID, - ) -> SERVICE_STATUS_HANDLE; -} -extern "C" { - pub fn SetServiceObjectSecurity( - hService: SC_HANDLE, - dwSecurityInformation: SECURITY_INFORMATION, - lpSecurityDescriptor: PSECURITY_DESCRIPTOR, - ) -> BOOL; -} -extern "C" { - pub fn SetServiceStatus( - hServiceStatus: SERVICE_STATUS_HANDLE, - lpServiceStatus: LPSERVICE_STATUS, - ) -> BOOL; -} -extern "C" { - pub fn StartServiceCtrlDispatcherA(lpServiceStartTable: *const SERVICE_TABLE_ENTRYA) -> BOOL; -} -extern "C" { - pub fn StartServiceCtrlDispatcherW(lpServiceStartTable: *const SERVICE_TABLE_ENTRYW) -> BOOL; -} -extern "C" { - pub fn StartServiceA( - hService: SC_HANDLE, - dwNumServiceArgs: DWORD, - lpServiceArgVectors: *mut LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn StartServiceW( - hService: SC_HANDLE, - dwNumServiceArgs: DWORD, - lpServiceArgVectors: *mut LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn UnlockServiceDatabase(ScLock: SC_LOCK) -> BOOL; -} -extern "C" { - pub fn NotifyServiceStatusChangeA( - hService: SC_HANDLE, - dwNotifyMask: DWORD, - pNotifyBuffer: PSERVICE_NOTIFYA, - ) -> DWORD; -} -extern "C" { - pub fn NotifyServiceStatusChangeW( - hService: SC_HANDLE, - dwNotifyMask: DWORD, - pNotifyBuffer: PSERVICE_NOTIFYW, - ) -> DWORD; -} -extern "C" { - pub fn ControlServiceExA( - hService: SC_HANDLE, - dwControl: DWORD, - dwInfoLevel: DWORD, - pControlParams: PVOID, - ) -> BOOL; -} -extern "C" { - pub fn ControlServiceExW( - hService: SC_HANDLE, - dwControl: DWORD, - dwInfoLevel: DWORD, - pControlParams: PVOID, - ) -> BOOL; -} -extern "C" { - pub fn QueryServiceDynamicInformation( - hServiceStatus: SERVICE_STATUS_HANDLE, - dwInfoLevel: DWORD, - ppDynamicInfo: *mut PVOID, - ) -> BOOL; -} -pub const _SC_EVENT_TYPE_SC_EVENT_DATABASE_CHANGE: _SC_EVENT_TYPE = 0; -pub const _SC_EVENT_TYPE_SC_EVENT_PROPERTY_CHANGE: _SC_EVENT_TYPE = 1; -pub const _SC_EVENT_TYPE_SC_EVENT_STATUS_CHANGE: _SC_EVENT_TYPE = 2; -pub type _SC_EVENT_TYPE = ::std::os::raw::c_int; -pub use self::_SC_EVENT_TYPE as SC_EVENT_TYPE; -pub type PSC_EVENT_TYPE = *mut _SC_EVENT_TYPE; -pub type PSC_NOTIFICATION_CALLBACK = - ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SC_NOTIFICATION_REGISTRATION { - _unused: [u8; 0], -} -pub type PSC_NOTIFICATION_REGISTRATION = *mut _SC_NOTIFICATION_REGISTRATION; -extern "C" { - pub fn SubscribeServiceChangeNotifications( - hService: SC_HANDLE, - eEventType: SC_EVENT_TYPE, - pCallback: PSC_NOTIFICATION_CALLBACK, - pCallbackContext: PVOID, - pSubscription: *mut PSC_NOTIFICATION_REGISTRATION, - ) -> DWORD; -} -extern "C" { - pub fn UnsubscribeServiceChangeNotifications(pSubscription: PSC_NOTIFICATION_REGISTRATION); -} -extern "C" { - pub fn WaitServiceState( - hService: SC_HANDLE, - dwNotify: DWORD, - dwTimeout: DWORD, - hCancelEvent: HANDLE, - ) -> DWORD; -} -pub const SERVICE_REGISTRY_STATE_TYPE_ServiceRegistryStateParameters: SERVICE_REGISTRY_STATE_TYPE = - 0; -pub const SERVICE_REGISTRY_STATE_TYPE_ServiceRegistryStatePersistent: SERVICE_REGISTRY_STATE_TYPE = - 1; -pub const SERVICE_REGISTRY_STATE_TYPE_MaxServiceRegistryStateType: SERVICE_REGISTRY_STATE_TYPE = 2; -pub type SERVICE_REGISTRY_STATE_TYPE = ::std::os::raw::c_int; -extern "C" { - pub fn GetServiceRegistryStateKey( - ServiceStatusHandle: SERVICE_STATUS_HANDLE, - StateType: SERVICE_REGISTRY_STATE_TYPE, - AccessMask: DWORD, - ServiceStateKey: *mut HKEY, - ) -> DWORD; -} -pub const SERVICE_DIRECTORY_TYPE_ServiceDirectoryPersistentState: SERVICE_DIRECTORY_TYPE = 0; -pub const SERVICE_DIRECTORY_TYPE_ServiceDirectoryTypeMax: SERVICE_DIRECTORY_TYPE = 1; -pub type SERVICE_DIRECTORY_TYPE = ::std::os::raw::c_int; -extern "C" { - pub fn GetServiceDirectory( - hServiceStatus: SERVICE_STATUS_HANDLE, - eDirectoryType: SERVICE_DIRECTORY_TYPE, - lpPathBuffer: PWCHAR, - cchPathBufferLength: DWORD, - lpcchRequiredBufferLength: *mut DWORD, - ) -> DWORD; -} -pub const SERVICE_SHARED_REGISTRY_STATE_TYPE_ServiceSharedRegistryPersistentState: - SERVICE_SHARED_REGISTRY_STATE_TYPE = 0; -pub type SERVICE_SHARED_REGISTRY_STATE_TYPE = ::std::os::raw::c_int; -extern "C" { - pub fn GetSharedServiceRegistryStateKey( - ServiceHandle: SC_HANDLE, - StateType: SERVICE_SHARED_REGISTRY_STATE_TYPE, - AccessMask: DWORD, - ServiceStateKey: *mut HKEY, - ) -> DWORD; -} -pub const SERVICE_SHARED_DIRECTORY_TYPE_ServiceSharedDirectoryPersistentState: - SERVICE_SHARED_DIRECTORY_TYPE = 0; -pub type SERVICE_SHARED_DIRECTORY_TYPE = ::std::os::raw::c_int; -extern "C" { - pub fn GetSharedServiceDirectory( - ServiceHandle: SC_HANDLE, - DirectoryType: SERVICE_SHARED_DIRECTORY_TYPE, - PathBuffer: PWCHAR, - PathBufferLength: DWORD, - RequiredBufferLength: *mut DWORD, - ) -> DWORD; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MODEMDEVCAPS { - pub dwActualSize: DWORD, - pub dwRequiredSize: DWORD, - pub dwDevSpecificOffset: DWORD, - pub dwDevSpecificSize: DWORD, - pub dwModemProviderVersion: DWORD, - pub dwModemManufacturerOffset: DWORD, - pub dwModemManufacturerSize: DWORD, - pub dwModemModelOffset: DWORD, - pub dwModemModelSize: DWORD, - pub dwModemVersionOffset: DWORD, - pub dwModemVersionSize: DWORD, - pub dwDialOptions: DWORD, - pub dwCallSetupFailTimer: DWORD, - pub dwInactivityTimeout: DWORD, - pub dwSpeakerVolume: DWORD, - pub dwSpeakerMode: DWORD, - pub dwModemOptions: DWORD, - pub dwMaxDTERate: DWORD, - pub dwMaxDCERate: DWORD, - pub abVariablePortion: [BYTE; 1usize], -} -pub type MODEMDEVCAPS = _MODEMDEVCAPS; -pub type PMODEMDEVCAPS = *mut _MODEMDEVCAPS; -pub type LPMODEMDEVCAPS = *mut _MODEMDEVCAPS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _MODEMSETTINGS { - pub dwActualSize: DWORD, - pub dwRequiredSize: DWORD, - pub dwDevSpecificOffset: DWORD, - pub dwDevSpecificSize: DWORD, - pub dwCallSetupFailTimer: DWORD, - pub dwInactivityTimeout: DWORD, - pub dwSpeakerVolume: DWORD, - pub dwSpeakerMode: DWORD, - pub dwPreferredModemOptions: DWORD, - pub dwNegotiatedModemOptions: DWORD, - pub dwNegotiatedDCERate: DWORD, - pub abVariablePortion: [BYTE; 1usize], -} -pub type MODEMSETTINGS = _MODEMSETTINGS; -pub type PMODEMSETTINGS = *mut _MODEMSETTINGS; -pub type LPMODEMSETTINGS = *mut _MODEMSETTINGS; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HIMC__ { - pub unused: ::std::os::raw::c_int, -} -pub type HIMC = *mut HIMC__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HIMCC__ { - pub unused: ::std::os::raw::c_int, -} -pub type HIMCC = *mut HIMCC__; -pub type LPHKL = *mut HKL; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCOMPOSITIONFORM { - pub dwStyle: DWORD, - pub ptCurrentPos: POINT, - pub rcArea: RECT, -} -pub type COMPOSITIONFORM = tagCOMPOSITIONFORM; -pub type PCOMPOSITIONFORM = *mut tagCOMPOSITIONFORM; -pub type NPCOMPOSITIONFORM = *mut tagCOMPOSITIONFORM; -pub type LPCOMPOSITIONFORM = *mut tagCOMPOSITIONFORM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCANDIDATEFORM { - pub dwIndex: DWORD, - pub dwStyle: DWORD, - pub ptCurrentPos: POINT, - pub rcArea: RECT, -} -pub type CANDIDATEFORM = tagCANDIDATEFORM; -pub type PCANDIDATEFORM = *mut tagCANDIDATEFORM; -pub type NPCANDIDATEFORM = *mut tagCANDIDATEFORM; -pub type LPCANDIDATEFORM = *mut tagCANDIDATEFORM; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagCANDIDATELIST { - pub dwSize: DWORD, - pub dwStyle: DWORD, - pub dwCount: DWORD, - pub dwSelection: DWORD, - pub dwPageStart: DWORD, - pub dwPageSize: DWORD, - pub dwOffset: [DWORD; 1usize], -} -pub type CANDIDATELIST = tagCANDIDATELIST; -pub type PCANDIDATELIST = *mut tagCANDIDATELIST; -pub type NPCANDIDATELIST = *mut tagCANDIDATELIST; -pub type LPCANDIDATELIST = *mut tagCANDIDATELIST; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagREGISTERWORDA { - pub lpReading: LPSTR, - pub lpWord: LPSTR, -} -pub type REGISTERWORDA = tagREGISTERWORDA; -pub type PREGISTERWORDA = *mut tagREGISTERWORDA; -pub type NPREGISTERWORDA = *mut tagREGISTERWORDA; -pub type LPREGISTERWORDA = *mut tagREGISTERWORDA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagREGISTERWORDW { - pub lpReading: LPWSTR, - pub lpWord: LPWSTR, -} -pub type REGISTERWORDW = tagREGISTERWORDW; -pub type PREGISTERWORDW = *mut tagREGISTERWORDW; -pub type NPREGISTERWORDW = *mut tagREGISTERWORDW; -pub type LPREGISTERWORDW = *mut tagREGISTERWORDW; -pub type REGISTERWORD = REGISTERWORDA; -pub type PREGISTERWORD = PREGISTERWORDA; -pub type NPREGISTERWORD = NPREGISTERWORDA; -pub type LPREGISTERWORD = LPREGISTERWORDA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagRECONVERTSTRING { - pub dwSize: DWORD, - pub dwVersion: DWORD, - pub dwStrLen: DWORD, - pub dwStrOffset: DWORD, - pub dwCompStrLen: DWORD, - pub dwCompStrOffset: DWORD, - pub dwTargetStrLen: DWORD, - pub dwTargetStrOffset: DWORD, -} -pub type RECONVERTSTRING = tagRECONVERTSTRING; -pub type PRECONVERTSTRING = *mut tagRECONVERTSTRING; -pub type NPRECONVERTSTRING = *mut tagRECONVERTSTRING; -pub type LPRECONVERTSTRING = *mut tagRECONVERTSTRING; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSTYLEBUFA { - pub dwStyle: DWORD, - pub szDescription: [CHAR; 32usize], -} -pub type STYLEBUFA = tagSTYLEBUFA; -pub type PSTYLEBUFA = *mut tagSTYLEBUFA; -pub type NPSTYLEBUFA = *mut tagSTYLEBUFA; -pub type LPSTYLEBUFA = *mut tagSTYLEBUFA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagSTYLEBUFW { - pub dwStyle: DWORD, - pub szDescription: [WCHAR; 32usize], -} -pub type STYLEBUFW = tagSTYLEBUFW; -pub type PSTYLEBUFW = *mut tagSTYLEBUFW; -pub type NPSTYLEBUFW = *mut tagSTYLEBUFW; -pub type LPSTYLEBUFW = *mut tagSTYLEBUFW; -pub type STYLEBUF = STYLEBUFA; -pub type PSTYLEBUF = PSTYLEBUFA; -pub type NPSTYLEBUF = NPSTYLEBUFA; -pub type LPSTYLEBUF = LPSTYLEBUFA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagIMEMENUITEMINFOA { - pub cbSize: UINT, - pub fType: UINT, - pub fState: UINT, - pub wID: UINT, - pub hbmpChecked: HBITMAP, - pub hbmpUnchecked: HBITMAP, - pub dwItemData: DWORD, - pub szString: [CHAR; 80usize], - pub hbmpItem: HBITMAP, -} -pub type IMEMENUITEMINFOA = tagIMEMENUITEMINFOA; -pub type PIMEMENUITEMINFOA = *mut tagIMEMENUITEMINFOA; -pub type NPIMEMENUITEMINFOA = *mut tagIMEMENUITEMINFOA; -pub type LPIMEMENUITEMINFOA = *mut tagIMEMENUITEMINFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagIMEMENUITEMINFOW { - pub cbSize: UINT, - pub fType: UINT, - pub fState: UINT, - pub wID: UINT, - pub hbmpChecked: HBITMAP, - pub hbmpUnchecked: HBITMAP, - pub dwItemData: DWORD, - pub szString: [WCHAR; 80usize], - pub hbmpItem: HBITMAP, -} -pub type IMEMENUITEMINFOW = tagIMEMENUITEMINFOW; -pub type PIMEMENUITEMINFOW = *mut tagIMEMENUITEMINFOW; -pub type NPIMEMENUITEMINFOW = *mut tagIMEMENUITEMINFOW; -pub type LPIMEMENUITEMINFOW = *mut tagIMEMENUITEMINFOW; -pub type IMEMENUITEMINFO = IMEMENUITEMINFOA; -pub type PIMEMENUITEMINFO = PIMEMENUITEMINFOA; -pub type NPIMEMENUITEMINFO = NPIMEMENUITEMINFOA; -pub type LPIMEMENUITEMINFO = LPIMEMENUITEMINFOA; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagIMECHARPOSITION { - pub dwSize: DWORD, - pub dwCharPos: DWORD, - pub pt: POINT, - pub cLineHeight: UINT, - pub rcDocument: RECT, -} -pub type IMECHARPOSITION = tagIMECHARPOSITION; -pub type PIMECHARPOSITION = *mut tagIMECHARPOSITION; -pub type NPIMECHARPOSITION = *mut tagIMECHARPOSITION; -pub type LPIMECHARPOSITION = *mut tagIMECHARPOSITION; -pub type IMCENUMPROC = - ::std::option::Option BOOL>; -extern "C" { - pub fn ImmInstallIMEA(lpszIMEFileName: LPCSTR, lpszLayoutText: LPCSTR) -> HKL; -} -extern "C" { - pub fn ImmInstallIMEW(lpszIMEFileName: LPCWSTR, lpszLayoutText: LPCWSTR) -> HKL; -} -extern "C" { - pub fn ImmGetDefaultIMEWnd(arg1: HWND) -> HWND; -} -extern "C" { - pub fn ImmGetDescriptionA(arg1: HKL, lpszDescription: LPSTR, uBufLen: UINT) -> UINT; -} -extern "C" { - pub fn ImmGetDescriptionW(arg1: HKL, lpszDescription: LPWSTR, uBufLen: UINT) -> UINT; -} -extern "C" { - pub fn ImmGetIMEFileNameA(arg1: HKL, lpszFileName: LPSTR, uBufLen: UINT) -> UINT; -} -extern "C" { - pub fn ImmGetIMEFileNameW(arg1: HKL, lpszFileName: LPWSTR, uBufLen: UINT) -> UINT; -} -extern "C" { - pub fn ImmGetProperty(arg1: HKL, arg2: DWORD) -> DWORD; -} -extern "C" { - pub fn ImmIsIME(arg1: HKL) -> BOOL; -} -extern "C" { - pub fn ImmSimulateHotKey(arg1: HWND, arg2: DWORD) -> BOOL; -} -extern "C" { - pub fn ImmCreateContext() -> HIMC; -} -extern "C" { - pub fn ImmDestroyContext(arg1: HIMC) -> BOOL; -} -extern "C" { - pub fn ImmGetContext(arg1: HWND) -> HIMC; -} -extern "C" { - pub fn ImmReleaseContext(arg1: HWND, arg2: HIMC) -> BOOL; -} -extern "C" { - pub fn ImmAssociateContext(arg1: HWND, arg2: HIMC) -> HIMC; -} -extern "C" { - pub fn ImmAssociateContextEx(arg1: HWND, arg2: HIMC, arg3: DWORD) -> BOOL; -} -extern "C" { - pub fn ImmGetCompositionStringA( - arg1: HIMC, - arg2: DWORD, - lpBuf: LPVOID, - dwBufLen: DWORD, - ) -> LONG; -} -extern "C" { - pub fn ImmGetCompositionStringW( - arg1: HIMC, - arg2: DWORD, - lpBuf: LPVOID, - dwBufLen: DWORD, - ) -> LONG; -} -extern "C" { - pub fn ImmSetCompositionStringA( - arg1: HIMC, - dwIndex: DWORD, - lpComp: LPVOID, - dwCompLen: DWORD, - lpRead: LPVOID, - dwReadLen: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn ImmSetCompositionStringW( - arg1: HIMC, - dwIndex: DWORD, - lpComp: LPVOID, - dwCompLen: DWORD, - lpRead: LPVOID, - dwReadLen: DWORD, - ) -> BOOL; -} -extern "C" { - pub fn ImmGetCandidateListCountA(arg1: HIMC, lpdwListCount: LPDWORD) -> DWORD; -} -extern "C" { - pub fn ImmGetCandidateListCountW(arg1: HIMC, lpdwListCount: LPDWORD) -> DWORD; -} -extern "C" { - pub fn ImmGetCandidateListA( - arg1: HIMC, - deIndex: DWORD, - lpCandList: LPCANDIDATELIST, - dwBufLen: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn ImmGetCandidateListW( - arg1: HIMC, - deIndex: DWORD, - lpCandList: LPCANDIDATELIST, - dwBufLen: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn ImmGetGuideLineA(arg1: HIMC, dwIndex: DWORD, lpBuf: LPSTR, dwBufLen: DWORD) -> DWORD; -} -extern "C" { - pub fn ImmGetGuideLineW(arg1: HIMC, dwIndex: DWORD, lpBuf: LPWSTR, dwBufLen: DWORD) -> DWORD; -} -extern "C" { - pub fn ImmGetConversionStatus( - arg1: HIMC, - lpfdwConversion: LPDWORD, - lpfdwSentence: LPDWORD, - ) -> BOOL; -} -extern "C" { - pub fn ImmSetConversionStatus(arg1: HIMC, arg2: DWORD, arg3: DWORD) -> BOOL; -} -extern "C" { - pub fn ImmGetOpenStatus(arg1: HIMC) -> BOOL; -} -extern "C" { - pub fn ImmSetOpenStatus(arg1: HIMC, arg2: BOOL) -> BOOL; -} -extern "C" { - pub fn ImmGetCompositionFontA(arg1: HIMC, lplf: LPLOGFONTA) -> BOOL; -} -extern "C" { - pub fn ImmGetCompositionFontW(arg1: HIMC, lplf: LPLOGFONTW) -> BOOL; -} -extern "C" { - pub fn ImmSetCompositionFontA(arg1: HIMC, lplf: LPLOGFONTA) -> BOOL; -} -extern "C" { - pub fn ImmSetCompositionFontW(arg1: HIMC, lplf: LPLOGFONTW) -> BOOL; -} -extern "C" { - pub fn ImmConfigureIMEA(arg1: HKL, arg2: HWND, arg3: DWORD, arg4: LPVOID) -> BOOL; -} -extern "C" { - pub fn ImmConfigureIMEW(arg1: HKL, arg2: HWND, arg3: DWORD, arg4: LPVOID) -> BOOL; -} -extern "C" { - pub fn ImmEscapeA(arg1: HKL, arg2: HIMC, arg3: UINT, arg4: LPVOID) -> LRESULT; -} -extern "C" { - pub fn ImmEscapeW(arg1: HKL, arg2: HIMC, arg3: UINT, arg4: LPVOID) -> LRESULT; -} -extern "C" { - pub fn ImmGetConversionListA( - arg1: HKL, - arg2: HIMC, - lpSrc: LPCSTR, - lpDst: LPCANDIDATELIST, - dwBufLen: DWORD, - uFlag: UINT, - ) -> DWORD; -} -extern "C" { - pub fn ImmGetConversionListW( - arg1: HKL, - arg2: HIMC, - lpSrc: LPCWSTR, - lpDst: LPCANDIDATELIST, - dwBufLen: DWORD, - uFlag: UINT, - ) -> DWORD; -} -extern "C" { - pub fn ImmNotifyIME(arg1: HIMC, dwAction: DWORD, dwIndex: DWORD, dwValue: DWORD) -> BOOL; -} -extern "C" { - pub fn ImmGetStatusWindowPos(arg1: HIMC, lpptPos: LPPOINT) -> BOOL; -} -extern "C" { - pub fn ImmSetStatusWindowPos(arg1: HIMC, lpptPos: LPPOINT) -> BOOL; -} -extern "C" { - pub fn ImmGetCompositionWindow(arg1: HIMC, lpCompForm: LPCOMPOSITIONFORM) -> BOOL; -} -extern "C" { - pub fn ImmSetCompositionWindow(arg1: HIMC, lpCompForm: LPCOMPOSITIONFORM) -> BOOL; -} -extern "C" { - pub fn ImmGetCandidateWindow(arg1: HIMC, arg2: DWORD, lpCandidate: LPCANDIDATEFORM) -> BOOL; -} -extern "C" { - pub fn ImmSetCandidateWindow(arg1: HIMC, lpCandidate: LPCANDIDATEFORM) -> BOOL; -} -extern "C" { - pub fn ImmIsUIMessageA(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> BOOL; -} -extern "C" { - pub fn ImmIsUIMessageW(arg1: HWND, arg2: UINT, arg3: WPARAM, arg4: LPARAM) -> BOOL; -} -extern "C" { - pub fn ImmGetVirtualKey(arg1: HWND) -> UINT; -} -pub type REGISTERWORDENUMPROCA = ::std::option::Option< - unsafe extern "C" fn( - lpszReading: LPCSTR, - arg1: DWORD, - lpszString: LPCSTR, - arg2: LPVOID, - ) -> ::std::os::raw::c_int, ->; -pub type REGISTERWORDENUMPROCW = ::std::option::Option< - unsafe extern "C" fn( - lpszReading: LPCWSTR, - arg1: DWORD, - lpszString: LPCWSTR, - arg2: LPVOID, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - pub fn ImmRegisterWordA( - arg1: HKL, - lpszReading: LPCSTR, - arg2: DWORD, - lpszRegister: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn ImmRegisterWordW( - arg1: HKL, - lpszReading: LPCWSTR, - arg2: DWORD, - lpszRegister: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn ImmUnregisterWordA( - arg1: HKL, - lpszReading: LPCSTR, - arg2: DWORD, - lpszUnregister: LPCSTR, - ) -> BOOL; -} -extern "C" { - pub fn ImmUnregisterWordW( - arg1: HKL, - lpszReading: LPCWSTR, - arg2: DWORD, - lpszUnregister: LPCWSTR, - ) -> BOOL; -} -extern "C" { - pub fn ImmGetRegisterWordStyleA(arg1: HKL, nItem: UINT, lpStyleBuf: LPSTYLEBUFA) -> UINT; -} -extern "C" { - pub fn ImmGetRegisterWordStyleW(arg1: HKL, nItem: UINT, lpStyleBuf: LPSTYLEBUFW) -> UINT; -} -extern "C" { - pub fn ImmEnumRegisterWordA( - arg1: HKL, - arg2: REGISTERWORDENUMPROCA, - lpszReading: LPCSTR, - arg3: DWORD, - lpszRegister: LPCSTR, - arg4: LPVOID, - ) -> UINT; -} -extern "C" { - pub fn ImmEnumRegisterWordW( - arg1: HKL, - arg2: REGISTERWORDENUMPROCW, - lpszReading: LPCWSTR, - arg3: DWORD, - lpszRegister: LPCWSTR, - arg4: LPVOID, - ) -> UINT; -} -extern "C" { - pub fn ImmDisableIME(arg1: DWORD) -> BOOL; -} -extern "C" { - pub fn ImmEnumInputContext(idThread: DWORD, lpfn: IMCENUMPROC, lParam: LPARAM) -> BOOL; -} -extern "C" { - pub fn ImmGetImeMenuItemsA( - arg1: HIMC, - arg2: DWORD, - arg3: DWORD, - lpImeParentMenu: LPIMEMENUITEMINFOA, - lpImeMenu: LPIMEMENUITEMINFOA, - dwSize: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn ImmGetImeMenuItemsW( - arg1: HIMC, - arg2: DWORD, - arg3: DWORD, - lpImeParentMenu: LPIMEMENUITEMINFOW, - lpImeMenu: LPIMEMENUITEMINFOW, - dwSize: DWORD, - ) -> DWORD; -} -extern "C" { - pub fn ImmDisableTextFrameService(idThread: DWORD) -> BOOL; -} -extern "C" { - pub fn ImmDisableLegacyIME() -> BOOL; -} -pub type int_least8_t = ::std::os::raw::c_schar; -pub type int_least16_t = ::std::os::raw::c_short; -pub type int_least32_t = ::std::os::raw::c_int; -pub type int_least64_t = ::std::os::raw::c_longlong; -pub type uint_least8_t = ::std::os::raw::c_uchar; -pub type uint_least16_t = ::std::os::raw::c_ushort; -pub type uint_least32_t = ::std::os::raw::c_uint; -pub type uint_least64_t = ::std::os::raw::c_ulonglong; -pub type int_fast8_t = ::std::os::raw::c_schar; -pub type int_fast16_t = ::std::os::raw::c_int; -pub type int_fast32_t = ::std::os::raw::c_int; -pub type int_fast64_t = ::std::os::raw::c_longlong; -pub type uint_fast8_t = ::std::os::raw::c_uchar; -pub type uint_fast16_t = ::std::os::raw::c_uint; -pub type uint_fast32_t = ::std::os::raw::c_uint; -pub type uint_fast64_t = ::std::os::raw::c_ulonglong; -pub type intmax_t = ::std::os::raw::c_longlong; -pub type uintmax_t = ::std::os::raw::c_ulonglong; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _Lldiv_t { - pub quot: intmax_t, - pub rem: intmax_t, -} -pub type imaxdiv_t = _Lldiv_t; -extern "C" { - pub fn imaxabs(_Number: intmax_t) -> intmax_t; -} -extern "C" { - pub fn imaxdiv(_Numerator: intmax_t, _Denominator: intmax_t) -> imaxdiv_t; -} -extern "C" { - pub fn strtoimax( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> intmax_t; -} -extern "C" { - pub fn _strtoimax_l( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> intmax_t; -} -extern "C" { - pub fn strtoumax( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - ) -> uintmax_t; -} -extern "C" { - pub fn _strtoumax_l( - _String: *const ::std::os::raw::c_char, - _EndPtr: *mut *mut ::std::os::raw::c_char, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> uintmax_t; -} -extern "C" { - pub fn wcstoimax( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - ) -> intmax_t; -} -extern "C" { - pub fn _wcstoimax_l( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> intmax_t; -} -extern "C" { - pub fn wcstoumax( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - ) -> uintmax_t; -} -extern "C" { - pub fn _wcstoumax_l( - _String: *const wchar_t, - _EndPtr: *mut *mut wchar_t, - _Radix: ::std::os::raw::c_int, - _Locale: _locale_t, - ) -> uintmax_t; -} -pub const evt_call_t_EVT_OP_LOAD: evt_call_t = 1; -pub const evt_call_t_EVT_OP_UNLOAD: evt_call_t = 2; -pub const evt_call_t_EVT_OP_OPEN: evt_call_t = 3; -pub const evt_call_t_EVT_OP_CLOSE: evt_call_t = 4; -pub const evt_call_t_EVT_OP_CONFIG: evt_call_t = 5; -pub const evt_call_t_EVT_OP_LOG: evt_call_t = 6; -pub const evt_call_t_EVT_OP_PAUSE: evt_call_t = 7; -pub const evt_call_t_EVT_OP_RESUME: evt_call_t = 8; -pub const evt_call_t_EVT_OP_UPLOAD: evt_call_t = 9; -pub const evt_call_t_EVT_OP_FLUSH: evt_call_t = 10; -pub const evt_call_t_EVT_OP_VERSION: evt_call_t = 11; -pub const evt_call_t_EVT_OP_OPEN_WITH_PARAMS: evt_call_t = 12; -pub const evt_call_t_EVT_OP_FLUSHANDTEARDOWN: evt_call_t = 13; -pub const evt_call_t_EVT_OP_MAX: evt_call_t = 14; -pub type evt_call_t = ::std::os::raw::c_int; -pub const evt_prop_t_TYPE_STRING: evt_prop_t = 0; -pub const evt_prop_t_TYPE_INT64: evt_prop_t = 1; -pub const evt_prop_t_TYPE_DOUBLE: evt_prop_t = 2; -pub const evt_prop_t_TYPE_TIME: evt_prop_t = 3; -pub const evt_prop_t_TYPE_BOOLEAN: evt_prop_t = 4; -pub const evt_prop_t_TYPE_GUID: evt_prop_t = 5; -pub const evt_prop_t_TYPE_STRING_ARRAY: evt_prop_t = 6; -pub const evt_prop_t_TYPE_INT64_ARRAY: evt_prop_t = 7; -pub const evt_prop_t_TYPE_DOUBLE_ARRAY: evt_prop_t = 8; -pub const evt_prop_t_TYPE_TIME_ARRAY: evt_prop_t = 9; -pub const evt_prop_t_TYPE_BOOL_ARRAY: evt_prop_t = 10; -pub const evt_prop_t_TYPE_GUID_ARRAY: evt_prop_t = 11; -pub const evt_prop_t_TYPE_NULL: evt_prop_t = 12; -pub type evt_prop_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct evt_guid_t { - #[doc = " \n Specifies the first eight hexadecimal digits of the GUID.\n "] - pub Data1: u32, - pub Data2: u16, - #[doc = " \n Specifies the second group of four hexadecimal digits.\n "] - pub Data3: u16, - #[doc = " \n An array of eight bytes.\n The first two bytes contain the third group of four hexadecimal digits.\n The remaining six bytes contain the final 12 hexadecimal digits.\n "] - pub Data4: [u8; 8usize], -} -pub type evt_handle_t = i64; -pub type evt_status_t = i32; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct evt_event { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct evt_context_t { - pub call: evt_call_t, - pub handle: evt_handle_t, - pub data: *mut ::std::os::raw::c_void, - pub result: evt_status_t, - pub size: u32, -} -pub const evt_open_param_type_t_OPEN_PARAM_TYPE_HTTP_HANDLER_SEND: evt_open_param_type_t = 0; -pub const evt_open_param_type_t_OPEN_PARAM_TYPE_HTTP_HANDLER_CANCEL: evt_open_param_type_t = 1; -pub const evt_open_param_type_t_OPEN_PARAM_TYPE_TASK_DISPATCHER_QUEUE: evt_open_param_type_t = 2; -pub const evt_open_param_type_t_OPEN_PARAM_TYPE_TASK_DISPATCHER_CANCEL: evt_open_param_type_t = 3; -pub const evt_open_param_type_t_OPEN_PARAM_TYPE_TASK_DISPATCHER_JOIN: evt_open_param_type_t = 4; -#[doc = " \n Identifies the type of input parameter to 'evt_open_with_params'. New parameter types can be added without\n breaking backwards compatibility.\n "] -pub type evt_open_param_type_t = ::std::os::raw::c_int; -#[doc = " \n Represents a single input parameter to 'evt_open_with_params'\n "] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct evt_open_param_t { - pub type_: evt_open_param_type_t, - pub data: *mut ::std::os::raw::c_void, -} -#[doc = " \n Wraps logger configuration string and all input parameters to 'evt_open_with_params'\n "] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct evt_open_with_params_data_t { - pub config: *const ::std::os::raw::c_char, - pub params: *const evt_open_param_t, - pub paramsCount: i32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union evt_prop_v { - pub as_uint64: u64, - pub as_string: *const ::std::os::raw::c_char, - pub as_int64: i64, - pub as_double: f64, - pub as_bool: bool, - pub as_guid: *mut evt_guid_t, - pub as_time: u64, - pub as_arr_string: *mut *mut ::std::os::raw::c_char, - pub as_arr_int64: *mut *mut i64, - pub as_arr_bool: *mut *mut bool, - pub as_arr_double: *mut *mut f64, - pub as_arr_guid: *mut *mut evt_guid_t, - pub as_arr_time: *mut *mut u64, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct evt_prop { - pub name: *const ::std::os::raw::c_char, - pub type_: evt_prop_t, - pub value: evt_prop_v, - pub piiKind: u32, -} -pub const http_request_type_t_HTTP_REQUEST_TYPE_GET: http_request_type_t = 0; -pub const http_request_type_t_HTTP_REQUEST_TYPE_POST: http_request_type_t = 1; -#[doc = " \n Identifies HTTP request method type\n "] -pub type http_request_type_t = ::std::os::raw::c_int; -pub const http_result_t_HTTP_RESULT_OK: http_result_t = 0; -pub const http_result_t_HTTP_RESULT_CANCELLED: http_result_t = 1; -pub const http_result_t_HTTP_RESULT_LOCAL_FAILURE: http_result_t = 2; -pub const http_result_t_HTTP_RESULT_NETWORK_FAILURE: http_result_t = 3; -#[doc = " \n Identifies whether an HTTP operation has succeeded or failed, including general failure type\n "] -pub type http_result_t = ::std::os::raw::c_int; -#[doc = " \n Represents a single HTTP request or response header (key/value pair)\n "] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct http_header_t { - pub name: *const ::std::os::raw::c_char, - pub value: *const ::std::os::raw::c_char, -} -#[doc = " \n Represents a single HTTP request. Used by optional app-provided HTTP handler callback functions.\n "] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct http_request_t { - pub id: *const ::std::os::raw::c_char, - pub type_: http_request_type_t, - pub url: *const ::std::os::raw::c_char, - pub body: *const u8, - pub bodySize: i32, - pub headers: *const http_header_t, - pub headersCount: i32, -} -#[doc = " \n Represents a single HTTP response. Used by optional app-provided HTTP handler callback functions.\n "] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct http_response_t { - pub statusCode: i32, - pub body: *const u8, - pub bodySize: i32, - pub headers: *const http_header_t, - pub headersCount: i32, -} -pub type http_complete_fn_t = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_char, - arg2: http_result_t, - arg3: *mut http_response_t, - ), ->; -pub type http_send_fn_t = ::std::option::Option< - unsafe extern "C" fn(arg1: *mut http_request_t, arg2: http_complete_fn_t), ->; -pub type http_cancel_fn_t = - ::std::option::Option; -#[doc = " \n Represents a single asynchronous worker thread item. Used by optional app-provided worker thread callback functions.\n "] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct evt_task_t { - pub id: *const ::std::os::raw::c_char, - pub delayMs: i64, - pub typeName: *const ::std::os::raw::c_char, -} -pub type task_callback_fn_t = - ::std::option::Option; -pub type task_dispatcher_queue_fn_t = - ::std::option::Option; -pub type task_dispatcher_cancel_fn_t = - ::std::option::Option bool>; -pub type task_dispatcher_join_fn_t = ::std::option::Option; -pub type evt_app_call_t = - ::std::option::Option evt_status_t>; -extern "C" { - pub fn evt_api_call_default(ctx: *mut evt_context_t) -> evt_status_t; -} -extern "C" { - pub static mut evt_api_call: evt_app_call_t; -} -pub type __builtin_va_list = *mut ::std::os::raw::c_char; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __crt_locale_data { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __crt_multibyte_data { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ACTIVATION_CONTEXT { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NET_ADDRESS_INFO_ { - pub _address: u8, -} diff --git a/wrappers/rust/telemetry/Cargo.toml b/wrappers/rust/oneds-telemetry/Cargo.toml similarity index 56% rename from wrappers/rust/telemetry/Cargo.toml rename to wrappers/rust/oneds-telemetry/Cargo.toml index bd2df5f96..3d88bc550 100644 --- a/wrappers/rust/telemetry/Cargo.toml +++ b/wrappers/rust/oneds-telemetry/Cargo.toml @@ -1,13 +1,16 @@ [package] -name = "telemetry" +name = "oneds-telemetry" version = "0.1.0" edition = "2021" publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +chrono = { version = "0.4.30" } +log = { version = "0.4.20" } +once_cell = "1.12.0" [dev-dependencies] [build-dependencies] -bindgen = { version = "0.65.1", features = ["experimental"] } \ No newline at end of file +bindgen = { version = "0.65.1", features = ["experimental"] } diff --git a/wrappers/rust/telemetry/build.rs b/wrappers/rust/oneds-telemetry/build.rs similarity index 100% rename from wrappers/rust/telemetry/build.rs rename to wrappers/rust/oneds-telemetry/build.rs diff --git a/wrappers/rust/oneds-telemetry/src/appender.rs b/wrappers/rust/oneds-telemetry/src/appender.rs new file mode 100644 index 000000000..426412dc6 --- /dev/null +++ b/wrappers/rust/oneds-telemetry/src/appender.rs @@ -0,0 +1,56 @@ +use log::{Level, Metadata, Record}; + +use crate::log_manager_provider; + +pub static LOGGER: TelemetryCollectorLogBridge = TelemetryCollectorLogBridge; +pub static mut CONSOLE_ENABLED: bool = true; +pub static mut COLLECTOR_ENABLED: bool = true; + +pub struct TelemetryCollectorLogBridge; + +impl log::Log for TelemetryCollectorLogBridge { + fn enabled(&self, metadata: &Metadata) -> bool { + metadata.level() <= Level::Debug + } + + fn log(&self, record: &Record) { + if unsafe { CONSOLE_ENABLED } && self.enabled(record.metadata()) { + let now = chrono::Utc::now(); + + println!( + "[{} {}] {} <{}> - {}: {}", + now.date_naive().to_string(), + now.time().format("%H:%M:%S"), + record.target(), + record.module_path().unwrap(), + record.level(), + record.args() + ); + } + + if unsafe { COLLECTOR_ENABLED } + // Default + && record.target() != "oneds_telemetry" + // Manually Set + && record.target() != "oneds_telemetry_internal" + { + log_manager_provider().trace(format!("{}", record.args()).as_str()); + } + } + + fn flush(&self) { + if unsafe { COLLECTOR_ENABLED } { + log_manager_provider().flush(); + } + } +} + +// fn map_severity_to_otel_severity(level: Level) -> Severity { +// match level { +// Level::Error => Severity::Error, +// Level::Warn => Severity::Warn, +// Level::Info => Severity::Info, +// Level::Debug => Severity::Debug, +// Level::Trace => Severity::Trace, +// } +// } diff --git a/wrappers/rust/telemetry/src/LoadLibrary.rs b/wrappers/rust/oneds-telemetry/src/client_library.rs similarity index 99% rename from wrappers/rust/telemetry/src/LoadLibrary.rs rename to wrappers/rust/oneds-telemetry/src/client_library.rs index 41c406e4a..99c3078d7 100644 --- a/wrappers/rust/telemetry/src/LoadLibrary.rs +++ b/wrappers/rust/oneds-telemetry/src/client_library.rs @@ -4,7 +4,6 @@ use std::{ mem::transmute_copy, os::raw::c_char, ptr::NonNull, - env, }; type HModule = NonNull; @@ -35,4 +34,4 @@ impl Library { let res = GetProcAddress(self.module, name.as_ptr()); res.map(|proc| transmute_copy(&proc)) } -} \ No newline at end of file +} diff --git a/wrappers/rust/oneds-telemetry/src/helpers.rs b/wrappers/rust/oneds-telemetry/src/helpers.rs new file mode 100644 index 000000000..8beb24637 --- /dev/null +++ b/wrappers/rust/oneds-telemetry/src/helpers.rs @@ -0,0 +1,46 @@ +use crate::*; +use std::ffi::CString; +use std::mem; + +/** + * This will convert a &str value to a c-string array that is compatible with + * the library; however, if improperly used this will run the risk of leaking + * memory as this uses mem::forget to ensure that the string data is not freed + * after making the conversion. This may mean that in order to pass the data + * from rust to c that we need some wraper structs that convert into the c + * structs so that the data is not lost in the call. + */ +pub fn to_leaky_c_str(value: &str) -> *const i8 { + let c_str = Box::new(CString::new(value.clone()).unwrap()); + let ptr = c_str.as_ptr() as *const i8; + mem::forget(c_str); + return ptr; +} + +pub fn string_prop(name: &str, value: &str, is_pii: bool) -> evt_prop { + let mut pii_kind = 0; + + if is_pii { + pii_kind = 1; + } + + evt_prop { + name: to_leaky_c_str(name), + type_: evt_prop_t_TYPE_STRING, + value: evt_prop_v { + as_string: to_leaky_c_str(value), + }, + piiKind: pii_kind, + } +} + +pub fn int_prop(name: &str, value: i64) -> evt_prop { + evt_prop { + name: to_leaky_c_str(name), + type_: evt_prop_t_TYPE_INT64, + value: evt_prop_v { + as_int64: value.clone(), + }, + piiKind: 0, + } +} diff --git a/wrappers/rust/oneds-telemetry/src/internals.rs b/wrappers/rust/oneds-telemetry/src/internals.rs new file mode 100644 index 000000000..702ab8a7e --- /dev/null +++ b/wrappers/rust/oneds-telemetry/src/internals.rs @@ -0,0 +1,26 @@ +use std::os::raw::c_void; + +use crate::*; + +pub type evt_api_call_t = extern "stdcall" fn(context: *mut evt_context_t) -> evt_status_t; + +pub fn evt_log(handle: &evt_handle_t, data: &mut [evt_prop]) -> evt_status_t { + let data_len = data.len() as u32; + let data_pointer = data.as_mut_ptr() as *mut c_void; + + let context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_LOG, + handle: *handle, + data: data_pointer, + result: 0, + size: data_len, + }); + + let raw_pointer = Box::into_raw(context); + + let ct_lib = client_library::Library::new("ClientTelemetry.dll").unwrap(); + let evt_api_call_default: evt_api_call_t = + unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; + + return evt_api_call_default(raw_pointer); +} diff --git a/wrappers/rust/oneds-telemetry/src/lib.rs b/wrappers/rust/oneds-telemetry/src/lib.rs new file mode 100644 index 000000000..f85f8e17b --- /dev/null +++ b/wrappers/rust/oneds-telemetry/src/lib.rs @@ -0,0 +1,219 @@ +#![allow(non_upper_case_globals)] +#![allow(non_camel_case_types)] +#![allow(non_snake_case)] + +use chrono; +use internals::evt_api_call_t; +use log::debug; +use once_cell::sync::Lazy; +use std::{ + ffi::{c_void, CString}, + sync::RwLock, +}; + +pub mod appender; +mod client_library; +mod helpers; +mod internals; + +include!(concat!(env!("OUT_DIR"), "/bindings.rs")); + +#[derive(Clone)] +pub struct LogManager { + call_api: evt_api_call_t, + is_started: bool, + configuration: Option, + log_handle: Option>, +} + +/// The global `Tracer` provider singleton. +static GLOBAL_LOG_MANAGER: Lazy> = Lazy::new(|| RwLock::new(LogManager::new())); + +pub fn log_manager_provider() -> LogManager { + GLOBAL_LOG_MANAGER + .read() + .expect("GLOBAL_LOG_MANAGER RwLock poisoned") + .clone() +} + +pub fn init(config: &str) { + let mut log_manager = GLOBAL_LOG_MANAGER + .write() + .expect("GLOBAL_LOG_MANAGER RwLock poisoned"); + + if log_manager.is_started == false { + log_manager.configure(config); + log_manager.start(); + } +} + +pub fn flush() { + let mut log_manager = GLOBAL_LOG_MANAGER + .write() + .expect("GLOBAL_LOG_MANAGER RwLock poisoned"); + + log_manager.flush(); +} + +impl LogManager { + pub fn new() -> Self { + let ct_lib = client_library::Library::new("ClientTelemetry.dll").unwrap(); + let call_api: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; + + LogManager { + call_api: call_api, + is_started: false, + configuration: Option::None, + log_handle: Option::None, + } + } + + /** + * Validates that a configuration has been set and + */ + pub fn start(&mut self) -> bool { + if self.configuration.is_none() { + return false; + } + + if self.is_started { + return true; + } + + // We don't need to leak this value + let config = self.configuration.clone().unwrap(); + let c_str = Box::new(CString::new(config.as_str()).unwrap()); + let config_data = c_str.as_ptr() as *mut c_void; + + let mut context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_OPEN, + handle: 0, + data: config_data, + result: 0, + size: 0, + }); + + let raw_pointer = Box::into_raw(context); + + let result = (self.call_api)(raw_pointer); + + if result == -1 { + debug!("LogManager.start: failed"); + return false; + } + + context = unsafe { Box::from_raw(raw_pointer) }; + self.log_handle = Some(Box::new(context.handle)); + self.is_started = true; + + debug!("LogManager.start: success"); + + return true; + } + + pub fn flush(&mut self) { + if self.is_started == false { + return; + } + + let mut c_chars: Vec = Vec::new(); + c_chars.push(0); // null + let null_config_data = c_chars.as_mut_ptr() as *mut c_void; + let handle = self.log_handle.as_ref().unwrap(); + + let flush_ctx: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_FLUSH, + handle: *handle.as_ref(), + data: null_config_data, + result: 0, + size: 0, + }); + + let flush_ctx_ptr = Box::into_raw(flush_ctx); + + let _ = (self.call_api)(flush_ctx_ptr); + debug!("LogManager.flush(EVT_OP_FLUSH)"); + + let upload_ctx: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_UPLOAD, + handle: *handle.as_ref(), + data: null_config_data, + result: 0, + size: 0, + }); + + let upload_ctx_ptr = Box::into_raw(upload_ctx); + + let _ = (self.call_api)(upload_ctx_ptr); + debug!("LogManager.flush(EVT_OP_UPLOAD)"); + } + + pub fn stop(&mut self) { + if self.is_started == false { + return; + } + + let mut c_chars: Vec = Vec::new(); + c_chars.push(0); // null + let null_config_data = c_chars.as_mut_ptr() as *mut c_void; + let handle = self.log_handle.as_ref().unwrap(); + + let flush_ctx: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_FLUSH, + handle: *handle.as_ref(), + data: null_config_data, + result: 0, + size: 0, + }); + + let flush_ctx_ptr = Box::into_raw(flush_ctx); + + let _ = (self.call_api)(flush_ctx_ptr); + + let close_ctx: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_CLOSE, + handle: *handle.as_ref(), + data: null_config_data, + result: 0, + size: 0, + }); + + let close_ctx_ptr = Box::into_raw(close_ctx); + + let _ = (self.call_api)(close_ctx_ptr); + } + + pub fn configure(&mut self, config: &str) { + self.configuration = Some(String::from(config.clone())); + debug!("LogManager.configure:\n{}", config); + } + + pub fn log_event(&self, name: &str) { + let evt_time = chrono::Utc::now(); + + let mut event_props: [evt_prop; 2] = [ + helpers::string_prop("name", name, false), + helpers::int_prop("time", evt_time.timestamp_millis()), + ]; + + self.log(&mut event_props); + } + + pub fn trace(&self, message: &str) { + let evt_time = chrono::Utc::now(); + + let mut event_props: [evt_prop; 3] = [ + helpers::string_prop("name", "trace", false), + helpers::int_prop("time", evt_time.timestamp_millis()), + helpers::string_prop("message", message, false), + ]; + + self.log(&mut event_props); + } + + pub fn log(&self, mut event_props: &mut [evt_prop]) { + debug!("LogManager.log(event_props_len:{})", event_props.len()); + let handle = self.log_handle.clone().unwrap(); + internals::evt_log(&handle, &mut event_props); + } +} diff --git a/wrappers/rust/telemetry-sample/Cargo.toml b/wrappers/rust/telemetry-sample/Cargo.toml index 5895b71e4..e91e63269 100644 --- a/wrappers/rust/telemetry-sample/Cargo.toml +++ b/wrappers/rust/telemetry-sample/Cargo.toml @@ -6,6 +6,8 @@ publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -telemetry = { path = "../telemetry" } +oneds-telemetry = { path = "../oneds-telemetry" } +log = { version = "0.4.20" } +ctrlc = "3.4.0" -[dev-dependencies] \ No newline at end of file +[dev-dependencies] diff --git a/wrappers/rust/telemetry-sample/src/main.rs b/wrappers/rust/telemetry-sample/src/main.rs index 3c04f9fd9..f4fa4b8c2 100644 --- a/wrappers/rust/telemetry-sample/src/main.rs +++ b/wrappers/rust/telemetry-sample/src/main.rs @@ -8,67 +8,18 @@ // This is the main function. -use std::{ - ffi::{CStr, CString}, - mem, thread, - time::Duration, -}; -use telemetry::LogManager; - -fn string_prop(name: &str, value: &str, is_pii: bool) -> telemetry::evt_prop { - let mut pii_kind = 0; - - if is_pii { - pii_kind = 1; - } - - telemetry::evt_prop { - name: to_c_str2(name), - type_: telemetry::evt_prop_t_TYPE_STRING, - value: telemetry::evt_prop_v { - as_string: to_c_str2(value), - }, - piiKind: pii_kind, - } -} - -fn to_c_str(value: &str) -> *const i8 { - let c_str = CString::new(value.clone().as_bytes()).unwrap(); - let c_str_bytes = c_str.as_bytes_with_nul().to_owned(); - let ptr = c_str_bytes.as_ptr() as *const i8; - - return ptr; -} - -fn to_c_str2(value: &str) -> *const i8 { - let c_str = Box::new(CString::new(value.clone()).unwrap()); - let ptr = c_str.as_ptr() as *const i8; - mem::forget(c_str); - return ptr; -} - -fn int_prop(name: &str, value: i64) -> telemetry::evt_prop { - telemetry::evt_prop { - name: to_c_str2(name), - type_: telemetry::evt_prop_t_TYPE_INT64, - value: telemetry::evt_prop_v { - as_int64: value.clone(), - }, - piiKind: 0, - } -} +use log::{error, Level}; +use std::{thread, time::Duration}; pub const API_KEY: &str = "99999999999999999999999999999999-99999999-9999-9999-9999-999999999999-9999"; fn main() { - let mut log_manager = LogManager::LogManager::new(); + let mut log_manager = oneds_telemetry::LogManager::new(); - if log_manager.start() == false { - println!("Failed to Start Log Manager."); - } - - log_manager.stop(); + // Setup Log Appender for the log crate. + log::set_logger(&oneds_telemetry::appender::LOGGER).unwrap(); + log::set_max_level(Level::Debug.to_level_filter()); let config = r#"{ "eventCollectorUri": "http://localhost:64099/OneCollector/track", @@ -81,39 +32,16 @@ fn main() { "hostMode":false, "traceLevelMask": 4294967295, "minimumTraceLevel":0, - "sdkmode":3 + "sdkmode":0, + "compat": {"customTypePrefix": "compat_event"} }"#; - let mut event: Vec = Vec::new(); - event.push(string_prop("name", "Event.Name.RustFFI", false)); - event.push(string_prop("ver", "4.0", false)); - event.push(string_prop("time", "1979-08-12", false)); - event.push(int_prop("popSample", 100)); - event.push(string_prop("iKey", API_KEY, false)); - event.push(int_prop("flags", 0xffffffff)); - event.push(string_prop("cV", "12345", false)); - - println!("Testing C -> RUST FFI ..."); - let handle = telemetry::evt_open(config); - println!("EVT_HANDLE: {}", handle); + oneds_telemetry::init(config); loop { - let mut event_data: [telemetry::evt_prop; 7] = [ - string_prop("name", "Event.Name.RustFFI", false), - string_prop("ver", "4.0", false), - string_prop("time", "1979-08-12", false), - int_prop("popSample", 100), - string_prop("iKey", API_KEY, false), - int_prop("flags", 0xffffffff), - string_prop("cV", "12345", false), - ]; - - println!("EVT_LOG: {}", telemetry::evt_log(&handle, &mut event_data)); - println!("EVT_FLUSH: {}", telemetry::evt_flush(&handle)); - println!("EVT_UPLOAD: {}", telemetry::evt_upload(&handle)); + error!(target: "app_events", "App Error: {}, Port: {}", "Connection Error", 22); thread::sleep(Duration::from_secs(3)); } - // println!("EVT_UPLOAD: {}", telemetry::evt_upload(&handle)); - println!("EVT_CLOSE: {}", telemetry::evt_close(&handle)); + // telemetry::shutdown(); } diff --git a/wrappers/rust/telemetry/src/LogManager.rs b/wrappers/rust/telemetry/src/LogManager.rs deleted file mode 100644 index 53dacb8e3..000000000 --- a/wrappers/rust/telemetry/src/LogManager.rs +++ /dev/null @@ -1,84 +0,0 @@ -use std::os::raw::c_void; - -use crate::*; - -pub struct LogManager { - call_api: evt_api_call_t, - is_started: bool, - configuration: Option, - log_handle: Option> -} - -impl LogManager { - pub fn new() -> Self { - let ct_lib = LoadLibrary::Library::new("ClientTelemetry.dll").unwrap(); - let call_api: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; - - LogManager { - call_api: call_api, - is_started: false, - configuration: Option::None, - log_handle: Option::None - } - } - - pub fn start(&mut self) -> bool { - if self.configuration.is_none() { - return false; - } - - if self.is_started { - return true; - } - - let config_bytes = self.configuration.clone().unwrap().into_bytes(); - let mut c_chars: Vec = config_bytes.iter().map(| c | *c as i8).collect::>(); - c_chars.push(0); // null terminator - - let config_data = c_chars.as_mut_ptr() as *mut c_void; - let mut context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_OPEN, - handle: 0, - data: config_data, - result: 0, - size: 0 - }); - - let raw_pointer = Box::into_raw(context); - - let result = (self.call_api)(raw_pointer); - - if result == -1 { - return false; - } - - context = unsafe { Box::from_raw(raw_pointer) }; - self.log_handle = Some(Box::new(context.handle)); - self.is_started = true; - - return true; - } - - pub fn stop(&mut self) { - if self.is_started == false { - return; - } - - let mut c_chars: Vec = Vec::new(); - c_chars.push(0); // null - let null_config_data = c_chars.as_mut_ptr() as *mut c_void; - let handle = self.log_handle.as_ref().unwrap(); - - let context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_FLUSHANDTEARDOWN, - handle: *handle.as_ref(), - data: null_config_data, - result: 0, - size: 0 - }); - - let raw_pointer = Box::into_raw(context); - - let _ = (self.call_api)(raw_pointer); - } -} \ No newline at end of file diff --git a/wrappers/rust/telemetry/src/lib.rs b/wrappers/rust/telemetry/src/lib.rs deleted file mode 100644 index d9e9c531d..000000000 --- a/wrappers/rust/telemetry/src/lib.rs +++ /dev/null @@ -1,150 +0,0 @@ -#![allow(non_upper_case_globals)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] - -pub mod LogManager; -mod LoadLibrary; -use std::{mem, os::raw::c_void}; - -include!(concat!(env!("OUT_DIR"), "/bindings.rs")); - -type evt_api_call_t = extern "stdcall" fn( - context: *mut evt_context_t -) -> evt_status_t; - -pub fn evt_open(config: &str) -> evt_handle_t { - let config_string = String::from(config); - let config_bytes = config_string.into_bytes(); - let mut c_chars: Vec = config_bytes.iter().map(| c | *c as i8).collect::>(); - c_chars.push(0); // null terminator - - let config_data = c_chars.as_mut_ptr() as *mut c_void; - let mut context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_OPEN, - handle: 0, - data: config_data, - result: 0, - size: 0 - }); - - let raw_pointer = Box::into_raw(context); - - let ct_lib = LoadLibrary::Library::new("ClientTelemetry.dll").unwrap(); - let evt_api_call_default: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; - - evt_api_call_default(raw_pointer); - context = unsafe { Box::from_raw(raw_pointer) }; - - return context.handle.clone(); -} - -pub fn evt_close(handle: &evt_handle_t) -> evt_status_t { - let mut c_chars: Vec = Vec::new(); - c_chars.push(0); // null - let null_config_data = c_chars.as_mut_ptr() as *mut c_void; - - let mut context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_FLUSHANDTEARDOWN, - handle: *handle, - data: null_config_data, - result: 0, - size: 0 - }); - - let raw_pointer = Box::into_raw(context); - - let ct_lib = LoadLibrary::Library::new("ClientTelemetry.dll").unwrap(); - let evt_api_call_default: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; - - return evt_api_call_default(raw_pointer); -} - -pub fn evt_upload(handle: &evt_handle_t) -> evt_status_t { - let mut c_chars: Vec = Vec::new(); - c_chars.push(0); // null - let null_config_data = c_chars.as_mut_ptr() as *mut c_void; - - let mut context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_UPLOAD, - handle: *handle, - data: null_config_data, - result: 0, - size: 0 - }); - - let raw_pointer = Box::into_raw(context); - - let ct_lib = LoadLibrary::Library::new("ClientTelemetry.dll").unwrap(); - let evt_api_call_default: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; - - return evt_api_call_default(raw_pointer); -} - -pub fn evt_flush(handle: &evt_handle_t) -> evt_status_t { - let mut c_chars: Vec = Vec::new(); - c_chars.push(0); // null - let null_config_data = c_chars.as_mut_ptr() as *mut c_void; - - let mut context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_FLUSH, - handle: *handle, - data: null_config_data, - result: 0, - size: 0 - }); - - let raw_pointer = Box::into_raw(context); - - let ct_lib = LoadLibrary::Library::new("ClientTelemetry.dll").unwrap(); - let evt_api_call_default: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; - - return evt_api_call_default(raw_pointer); -} - -pub fn evt_log_vec(handle: &evt_handle_t, data: &mut Vec) -> evt_status_t { - data.shrink_to_fit(); - assert!(data.len() == data.capacity()); - let data_pointer = data.as_mut_ptr() as *mut c_void; - let data_len = data.len() as u32; - mem::forget(data); // prevent deallocation in Rust - // The array is still there but no Rust object - // feels responsible. We only have ptr/len now - // to reach it. - - println!("LOG LEN: {}", data_len); - - let mut context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_LOG, - handle: *handle, - data: data_pointer, - result: 0, - size: data_len - }); - - let raw_pointer = Box::into_raw(context); - - let ct_lib = LoadLibrary::Library::new("ClientTelemetry.dll").unwrap(); - let evt_api_call_default: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; - - return evt_api_call_default(raw_pointer); -} - -pub fn evt_log(handle: &evt_handle_t, data: &mut [evt_prop]) -> evt_status_t { - let data_len = data.len() as u32; - let data_pointer = data.as_mut_ptr() as *mut c_void; - - let mut context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_LOG, - handle: *handle, - data: data_pointer, - result: 0, - size: data_len - }); - - let raw_pointer = Box::into_raw(context); - - let ct_lib = LoadLibrary::Library::new("ClientTelemetry.dll").unwrap(); - let evt_api_call_default: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; - - return evt_api_call_default(raw_pointer); -} \ No newline at end of file From 064e4160338db046f3b2d15071191bd319697ddb Mon Sep 17 00:00:00 2001 From: Travis Sharp <94011425+msft-tsharp@users.noreply.github.com> Date: Thu, 14 Sep 2023 15:00:08 -0700 Subject: [PATCH 04/14] A bit of cleanup as the LogManager isn't used directly anymore --- wrappers/rust/oneds-telemetry/src/lib.rs | 2 +- wrappers/rust/telemetry-sample/src/main.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/wrappers/rust/oneds-telemetry/src/lib.rs b/wrappers/rust/oneds-telemetry/src/lib.rs index f85f8e17b..5a2411700 100644 --- a/wrappers/rust/oneds-telemetry/src/lib.rs +++ b/wrappers/rust/oneds-telemetry/src/lib.rs @@ -56,7 +56,7 @@ pub fn flush() { } impl LogManager { - pub fn new() -> Self { + fn new() -> Self { let ct_lib = client_library::Library::new("ClientTelemetry.dll").unwrap(); let call_api: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; diff --git a/wrappers/rust/telemetry-sample/src/main.rs b/wrappers/rust/telemetry-sample/src/main.rs index f4fa4b8c2..643f5e123 100644 --- a/wrappers/rust/telemetry-sample/src/main.rs +++ b/wrappers/rust/telemetry-sample/src/main.rs @@ -15,8 +15,6 @@ pub const API_KEY: &str = "99999999999999999999999999999999-99999999-9999-9999-9999-999999999999-9999"; fn main() { - let mut log_manager = oneds_telemetry::LogManager::new(); - // Setup Log Appender for the log crate. log::set_logger(&oneds_telemetry::appender::LOGGER).unwrap(); log::set_max_level(Level::Debug.to_level_filter()); From 8f587680945cc4f77de777da825773d236ee72ce Mon Sep 17 00:00:00 2001 From: Travis Sharp <94011425+msft-tsharp@users.noreply.github.com> Date: Fri, 15 Sep 2023 14:04:56 -0700 Subject: [PATCH 05/14] misc updates - working on memory safe logging --- wrappers/rust/oneds-telemetry/src/appender.rs | 16 ++- .../rust/oneds-telemetry/src/conversion.rs | 49 +++++++ wrappers/rust/oneds-telemetry/src/types.rs | 126 ++++++++++++++++++ 3 files changed, 184 insertions(+), 7 deletions(-) create mode 100644 wrappers/rust/oneds-telemetry/src/conversion.rs create mode 100644 wrappers/rust/oneds-telemetry/src/types.rs diff --git a/wrappers/rust/oneds-telemetry/src/appender.rs b/wrappers/rust/oneds-telemetry/src/appender.rs index 426412dc6..cb89b603e 100644 --- a/wrappers/rust/oneds-telemetry/src/appender.rs +++ b/wrappers/rust/oneds-telemetry/src/appender.rs @@ -15,12 +15,14 @@ impl log::Log for TelemetryCollectorLogBridge { fn log(&self, record: &Record) { if unsafe { CONSOLE_ENABLED } && self.enabled(record.metadata()) { - let now = chrono::Utc::now(); + let utc_now = chrono::Utc::now(); + let nanos = utc_now.timestamp_subsec_nanos(); println!( - "[{} {}] {} <{}> - {}: {}", - now.date_naive().to_string(), - now.time().format("%H:%M:%S"), + "[{} {}.{}] {} <{}> - {}: {}", + utc_now.date_naive().to_string(), + utc_now.time().format("%H:%M:%S"), + nanos, record.target(), record.module_path().unwrap(), record.level(), @@ -31,8 +33,8 @@ impl log::Log for TelemetryCollectorLogBridge { if unsafe { COLLECTOR_ENABLED } // Default && record.target() != "oneds_telemetry" - // Manually Set - && record.target() != "oneds_telemetry_internal" + // Items from deeper in the `oneds_telemetry` crate + && !record.target().starts_with("oneds_telemetry::") { log_manager_provider().trace(format!("{}", record.args()).as_str()); } @@ -40,7 +42,7 @@ impl log::Log for TelemetryCollectorLogBridge { fn flush(&self) { if unsafe { COLLECTOR_ENABLED } { - log_manager_provider().flush(); + log_manager_provider().flush(true); } } } diff --git a/wrappers/rust/oneds-telemetry/src/conversion.rs b/wrappers/rust/oneds-telemetry/src/conversion.rs new file mode 100644 index 000000000..ed23ac143 --- /dev/null +++ b/wrappers/rust/oneds-telemetry/src/conversion.rs @@ -0,0 +1,49 @@ +use crate::*; +use std::ffi::{CStr, CString}; +use std::mem; +use std::os::raw::c_char; + +/** + * This will leak memory + */ +pub fn to_leaky_c_str(value: &str) -> *const i8 { + let c_str = Box::new(CString::new(value.clone()).unwrap()); + let ptr = c_str.as_ptr() as *const i8; + mem::forget(c_str); + return ptr; +} + +pub fn to_c_str(value: &str) -> *const c_char { + let null_terminated_str = format!("{}\0", value); + let c_str = CStr::from_bytes_with_nul(null_terminated_str.as_bytes()) + .expect("to_c_str: CString conversion failed"); + c_str.as_ptr() +} + +pub fn string_prop(name: &str, value: &str, is_pii: bool) -> evt_prop { + let mut pii_kind = 0; + + if is_pii { + pii_kind = 1; + } + + evt_prop { + name: to_leaky_c_str(name), + type_: evt_prop_t_TYPE_STRING, + value: evt_prop_v { + as_string: to_leaky_c_str(value), + }, + piiKind: pii_kind, + } +} + +pub fn int_prop(name: &str, value: i64) -> evt_prop { + evt_prop { + name: to_c_str(name), + type_: evt_prop_t_TYPE_INT64, + value: evt_prop_v { + as_int64: value.clone(), + }, + piiKind: 0, + } +} diff --git a/wrappers/rust/oneds-telemetry/src/types.rs b/wrappers/rust/oneds-telemetry/src/types.rs new file mode 100644 index 000000000..236e88677 --- /dev/null +++ b/wrappers/rust/oneds-telemetry/src/types.rs @@ -0,0 +1,126 @@ +use std::{ + collections::HashMap, + ffi::{CStr, CString}, + os::raw::c_char, +}; + +use chrono::{DateTime, Utc}; +use log::debug; +use once_cell::sync::Lazy; + +use crate::{evt_prop, evt_prop_t_TYPE_STRING, evt_prop_t_TYPE_TIME, evt_prop_v}; + +#[derive(Clone, Debug)] +pub struct StringProperty { + value: CString, +} + +impl StringProperty { + pub fn new(value: &str) -> Self { + StringProperty { + value: CString::new(value).expect("Unable to convert value to CString"), + } + } + + pub fn as_ptr(&self) -> *const c_char { + self.value.as_ptr() + } + + fn to_str(&self) -> Result<&str, std::str::Utf8Error> { + unsafe { CStr::from_ptr(self.as_ptr()).to_str() } + } +} + +static NAME_PROPERTY: Lazy = Lazy::new(|| StringProperty::new("name")); +static TIME_PROPERTY: Lazy = Lazy::new(|| StringProperty::new("time")); + +#[derive(Clone, Debug)] +pub enum TelemetryProperty { + String(StringProperty), + Int(i64), +} + +pub type TelemetryPropertyBag = HashMap<&'static str, TelemetryProperty>; + +#[derive(Clone, Debug)] +pub struct TelemetryItem { + name: StringProperty, + data: TelemetryPropertyBag, + time: Option>, +} + +impl TelemetryItem { + pub fn new(name: &'static str) -> TelemetryItem { + TelemetryItem { + name: StringProperty::new(name), + data: TelemetryPropertyBag::new(), + time: Option::None, + } + } + + pub fn new_with_time(name: &'static str, time: DateTime) -> TelemetryItem { + TelemetryItem { + name: StringProperty::new(name), + data: TelemetryPropertyBag::new(), + time: Some(time), + } + } + + pub fn add_property(&mut self, name: &'static str, value: TelemetryProperty) { + self.data.insert(name, value); + } + + pub fn to_evt(&self) -> Vec { + let mut properties = Vec::new(); + + properties.push(evt_prop { + name: NAME_PROPERTY.as_ptr(), + type_: evt_prop_t_TYPE_STRING, + value: evt_prop_v { + as_string: self.name.as_ptr(), + }, + piiKind: 0, + }); + + if self.time != Option::None { + // Convert UTC time to a Unix timestamp as i64 + let timestamp_i64 = self.time.unwrap().timestamp(); + + // Convert the i64 timestamp to u64 + let millis = timestamp_i64 as u64; + + properties.push(evt_prop { + name: TIME_PROPERTY.as_ptr(), + type_: evt_prop_t_TYPE_TIME, + value: evt_prop_v { as_time: millis }, + piiKind: 0, + }); + } + + for prop in self.data.clone().into_iter() {} + + debug!("{}", self.name.to_str().unwrap()); + + properties + } +} + +#[cfg(test)] +mod tests { + use crate::types::StringProperty; + + #[test] + fn validate_c_str_arrays() { + let mut iteration = 0; + + while iteration < 5 { + iteration = iteration + 1; + + let value1 = StringProperty::new("TEST_VALUE1"); + let value2 = StringProperty::new("TEST_VALUE2"); + + assert_eq!("TEST_VALUE1", value1.to_str().unwrap()); + assert_eq!("TEST_VALUE2", value2.to_str().unwrap()); + } + } +} From db354c84a5c634f79a7fdc925587632a7937ca6f Mon Sep 17 00:00:00 2001 From: Travis Sharp <94011425+msft-tsharp@users.noreply.github.com> Date: Fri, 15 Sep 2023 14:11:56 -0700 Subject: [PATCH 06/14] Fix appender --- wrappers/rust/oneds-telemetry/src/appender.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrappers/rust/oneds-telemetry/src/appender.rs b/wrappers/rust/oneds-telemetry/src/appender.rs index cb89b603e..fb6005370 100644 --- a/wrappers/rust/oneds-telemetry/src/appender.rs +++ b/wrappers/rust/oneds-telemetry/src/appender.rs @@ -42,7 +42,7 @@ impl log::Log for TelemetryCollectorLogBridge { fn flush(&self) { if unsafe { COLLECTOR_ENABLED } { - log_manager_provider().flush(true); + log_manager_provider().flush(); } } } From 746816d069bc2329d0d9b071bfb4ccd78b4e8f9f Mon Sep 17 00:00:00 2001 From: Travis Sharp <94011425+msft-tsharp@users.noreply.github.com> Date: Mon, 18 Sep 2023 09:31:04 -0700 Subject: [PATCH 07/14] * Adding back internals * Making quality of life improvements to the types * Adding testing to types --- wrappers/rust/oneds-telemetry/src/appender.rs | 2 +- .../rust/oneds-telemetry/src/internals.rs | 130 +++++++++++++- wrappers/rust/oneds-telemetry/src/lib.rs | 161 ++++++------------ wrappers/rust/oneds-telemetry/src/types.rs | 61 +++++-- wrappers/rust/telemetry-sample/src/main.rs | 5 +- 5 files changed, 231 insertions(+), 128 deletions(-) diff --git a/wrappers/rust/oneds-telemetry/src/appender.rs b/wrappers/rust/oneds-telemetry/src/appender.rs index fb6005370..81cf83993 100644 --- a/wrappers/rust/oneds-telemetry/src/appender.rs +++ b/wrappers/rust/oneds-telemetry/src/appender.rs @@ -42,7 +42,7 @@ impl log::Log for TelemetryCollectorLogBridge { fn flush(&self) { if unsafe { COLLECTOR_ENABLED } { - log_manager_provider().flush(); + log_manager_provider().flush(false); } } } diff --git a/wrappers/rust/oneds-telemetry/src/internals.rs b/wrappers/rust/oneds-telemetry/src/internals.rs index 702ab8a7e..ae39a65b5 100644 --- a/wrappers/rust/oneds-telemetry/src/internals.rs +++ b/wrappers/rust/oneds-telemetry/src/internals.rs @@ -1,8 +1,130 @@ -use std::os::raw::c_void; +use std::{ffi::CStr, mem, os::raw::c_void}; -use crate::*; +use crate::{client_library::Library, *}; -pub type evt_api_call_t = extern "stdcall" fn(context: *mut evt_context_t) -> evt_status_t; +type evt_api_call_t = extern "stdcall" fn(context: *mut evt_context_t) -> evt_status_t; + +pub fn evt_open(config: *mut c_void) -> Option { + let mut context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_OPEN, + handle: 0, + data: config, + result: 0, + size: 0, + }); + + let raw_pointer = Box::into_raw(context); + + let ct_lib = Library::new("ClientTelemetry.dll").unwrap(); + let evt_api_call_default: evt_api_call_t = + unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; + + let result = evt_api_call_default(raw_pointer); + + if result == -1 { + return Option::None; + } + + context = unsafe { Box::from_raw(raw_pointer) }; + + return Some(context.handle.clone()); +} + +pub fn evt_close(handle: &evt_handle_t) -> evt_status_t { + let context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_CLOSE, + handle: *handle, + data: std::ptr::null_mut(), + result: 0, + size: 0, + }); + + let raw_pointer = Box::into_raw(context); + + let ct_lib = Library::new("ClientTelemetry.dll").unwrap(); + let evt_api_call_default: evt_api_call_t = + unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; + + return evt_api_call_default(raw_pointer); +} + +pub fn evt_upload(handle: &evt_handle_t) -> evt_status_t { + let context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_UPLOAD, + handle: *handle, + data: std::ptr::null_mut(), + result: 0, + size: 0, + }); + + let raw_pointer = Box::into_raw(context); + + let ct_lib = Library::new("ClientTelemetry.dll").unwrap(); + let evt_api_call_default: evt_api_call_t = + unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; + + let status = evt_api_call_default(raw_pointer); + + println!("UPLOAD STATUS >> {}", status); + + status +} + +pub fn evt_flush(handle: &evt_handle_t) -> evt_status_t { + let context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_FLUSH, + handle: *handle, + data: std::ptr::null_mut(), + result: 0, + size: 0, + }); + + let raw_pointer = Box::into_raw(context); + + let ct_lib = Library::new("ClientTelemetry.dll").unwrap(); + let evt_api_call_default: evt_api_call_t = + unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; + + let status = evt_api_call_default(raw_pointer); + + println!("FLUSH STATUS >> {}", status); + + status +} + +pub fn evt_log_vec(handle: &evt_handle_t, data_box: &mut Box>) -> evt_status_t { + // Extract the inner vector from the Box + let data = &mut **data_box; + + let val = unsafe { CStr::from_ptr(data[0].name) }; + let val2 = unsafe { CStr::from_ptr(data[0].value.as_string) }; + println!( + "MAGIC >> [{}]:{}", + val.to_str().unwrap(), + val2.to_str().unwrap() + ); + + let data_pointer = data.as_mut_ptr() as *mut c_void; + let data_len = data.len() as u32; + + let context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_LOG, + handle: *handle, + data: data_pointer, + result: 0, + size: data_len, + }); + + let raw_pointer = Box::into_raw(context); + + let ct_lib = Library::new("ClientTelemetry.dll").unwrap(); + let evt_api_call_default: evt_api_call_t = + unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; + + let status = evt_api_call_default(raw_pointer); + + status +} pub fn evt_log(handle: &evt_handle_t, data: &mut [evt_prop]) -> evt_status_t { let data_len = data.len() as u32; @@ -18,7 +140,7 @@ pub fn evt_log(handle: &evt_handle_t, data: &mut [evt_prop]) -> evt_status_t { let raw_pointer = Box::into_raw(context); - let ct_lib = client_library::Library::new("ClientTelemetry.dll").unwrap(); + let ct_lib = Library::new("ClientTelemetry.dll").unwrap(); let evt_api_call_default: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; diff --git a/wrappers/rust/oneds-telemetry/src/lib.rs b/wrappers/rust/oneds-telemetry/src/lib.rs index 5a2411700..91ffd1bc1 100644 --- a/wrappers/rust/oneds-telemetry/src/lib.rs +++ b/wrappers/rust/oneds-telemetry/src/lib.rs @@ -2,28 +2,24 @@ #![allow(non_camel_case_types)] #![allow(non_snake_case)] -use chrono; -use internals::evt_api_call_t; use log::debug; use once_cell::sync::Lazy; -use std::{ - ffi::{c_void, CString}, - sync::RwLock, -}; +use std::{ffi::c_void, sync::RwLock}; +use types::{StringProperty, TelemetryItem, TelemetryProperty}; pub mod appender; mod client_library; mod helpers; mod internals; +pub mod types; include!(concat!(env!("OUT_DIR"), "/bindings.rs")); #[derive(Clone)] pub struct LogManager { - call_api: evt_api_call_t, is_started: bool, - configuration: Option, - log_handle: Option>, + configuration: StringProperty, + log_handle: Option, } /// The global `Tracer` provider singleton. @@ -52,18 +48,22 @@ pub fn flush() { .write() .expect("GLOBAL_LOG_MANAGER RwLock poisoned"); - log_manager.flush(); + log_manager.flush(true); +} + +pub fn offline_flush() { + let mut log_manager = GLOBAL_LOG_MANAGER + .write() + .expect("GLOBAL_LOG_MANAGER RwLock poisoned"); + + log_manager.flush(false); } impl LogManager { fn new() -> Self { - let ct_lib = client_library::Library::new("ClientTelemetry.dll").unwrap(); - let call_api: evt_api_call_t = unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; - LogManager { - call_api: call_api, is_started: false, - configuration: Option::None, + configuration: StringProperty::new("{}"), log_handle: Option::None, } } @@ -72,38 +72,19 @@ impl LogManager { * Validates that a configuration has been set and */ pub fn start(&mut self) -> bool { - if self.configuration.is_none() { - return false; - } - if self.is_started { return true; } - // We don't need to leak this value - let config = self.configuration.clone().unwrap(); - let c_str = Box::new(CString::new(config.as_str()).unwrap()); - let config_data = c_str.as_ptr() as *mut c_void; - - let mut context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_OPEN, - handle: 0, - data: config_data, - result: 0, - size: 0, - }); + let config_ptr = self.configuration.as_ptr() as *mut c_void; + let handle = internals::evt_open(config_ptr); - let raw_pointer = Box::into_raw(context); - - let result = (self.call_api)(raw_pointer); - - if result == -1 { + if handle.is_none() { debug!("LogManager.start: failed"); return false; } - context = unsafe { Box::from_raw(raw_pointer) }; - self.log_handle = Some(Box::new(context.handle)); + self.log_handle = handle; self.is_started = true; debug!("LogManager.start: success"); @@ -111,41 +92,19 @@ impl LogManager { return true; } - pub fn flush(&mut self) { + pub fn flush(&mut self, upload: bool) { if self.is_started == false { return; } - let mut c_chars: Vec = Vec::new(); - c_chars.push(0); // null - let null_config_data = c_chars.as_mut_ptr() as *mut c_void; let handle = self.log_handle.as_ref().unwrap(); - - let flush_ctx: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_FLUSH, - handle: *handle.as_ref(), - data: null_config_data, - result: 0, - size: 0, - }); - - let flush_ctx_ptr = Box::into_raw(flush_ctx); - - let _ = (self.call_api)(flush_ctx_ptr); + internals::evt_flush(handle); debug!("LogManager.flush(EVT_OP_FLUSH)"); - let upload_ctx: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_UPLOAD, - handle: *handle.as_ref(), - data: null_config_data, - result: 0, - size: 0, - }); - - let upload_ctx_ptr = Box::into_raw(upload_ctx); - - let _ = (self.call_api)(upload_ctx_ptr); - debug!("LogManager.flush(EVT_OP_UPLOAD)"); + if upload { + internals::evt_upload(handle); + debug!("LogManager.flush(EVT_OP_UPLOAD)"); + } } pub fn stop(&mut self) { @@ -153,66 +112,46 @@ impl LogManager { return; } - let mut c_chars: Vec = Vec::new(); - c_chars.push(0); // null - let null_config_data = c_chars.as_mut_ptr() as *mut c_void; - let handle = self.log_handle.as_ref().unwrap(); - - let flush_ctx: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_FLUSH, - handle: *handle.as_ref(), - data: null_config_data, - result: 0, - size: 0, - }); + self.flush(false); - let flush_ctx_ptr = Box::into_raw(flush_ctx); - - let _ = (self.call_api)(flush_ctx_ptr); - - let close_ctx: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_CLOSE, - handle: *handle.as_ref(), - data: null_config_data, - result: 0, - size: 0, - }); - - let close_ctx_ptr = Box::into_raw(close_ctx); - - let _ = (self.call_api)(close_ctx_ptr); + let handle = self.log_handle.as_ref().unwrap(); + internals::evt_close(handle); } pub fn configure(&mut self, config: &str) { - self.configuration = Some(String::from(config.clone())); + self.configuration = StringProperty::new(config); debug!("LogManager.configure:\n{}", config); } - pub fn log_event(&self, name: &str) { - let evt_time = chrono::Utc::now(); + pub fn trace(&mut self, message: &str) { + let mut item = TelemetryItem::new("trace"); - let mut event_props: [evt_prop; 2] = [ - helpers::string_prop("name", name, false), - helpers::int_prop("time", evt_time.timestamp_millis()), - ]; + item.add_property( + "message", + TelemetryProperty::String(StringProperty::new(message)), + ); - self.log(&mut event_props); + self.track_item(&item); } - pub fn trace(&self, message: &str) { - let evt_time = chrono::Utc::now(); + pub fn track_item(&mut self, item: &TelemetryItem) { + let mut event_props = item.to_evt(); - let mut event_props: [evt_prop; 3] = [ - helpers::string_prop("name", "trace", false), - helpers::int_prop("time", evt_time.timestamp_millis()), - helpers::string_prop("message", message, false), - ]; + debug!( + "LogManager.track_item(event_props_len:{})", + event_props.len() + ); - self.log(&mut event_props); + let handle = self.log_handle.clone().unwrap(); + internals::evt_log_vec(&handle, &mut event_props); } - pub fn log(&self, mut event_props: &mut [evt_prop]) { - debug!("LogManager.log(event_props_len:{})", event_props.len()); + pub fn track_evt(&self, mut event_props: &mut [evt_prop]) { + debug!( + "LogManager.track_evt(event_props_len:{})", + event_props.len() + ); + let handle = self.log_handle.clone().unwrap(); internals::evt_log(&handle, &mut event_props); } diff --git a/wrappers/rust/oneds-telemetry/src/types.rs b/wrappers/rust/oneds-telemetry/src/types.rs index 236e88677..c1d25715c 100644 --- a/wrappers/rust/oneds-telemetry/src/types.rs +++ b/wrappers/rust/oneds-telemetry/src/types.rs @@ -5,25 +5,31 @@ use std::{ }; use chrono::{DateTime, Utc}; -use log::debug; +use log::{debug, error}; use once_cell::sync::Lazy; use crate::{evt_prop, evt_prop_t_TYPE_STRING, evt_prop_t_TYPE_TIME, evt_prop_v}; #[derive(Clone, Debug)] pub struct StringProperty { - value: CString, + bytes: Vec, } impl StringProperty { pub fn new(value: &str) -> Self { + let bytes = CString::new(value).expect("Unable to convert value to CString"); + StringProperty { - value: CString::new(value).expect("Unable to convert value to CString"), + bytes: bytes.to_bytes_with_nul().to_vec(), } } pub fn as_ptr(&self) -> *const c_char { - self.value.as_ptr() + self.bytes.as_ptr() as *const c_char + } + + pub fn as_bytes(&self) -> Vec { + self.bytes.clone() } fn to_str(&self) -> Result<&str, std::str::Utf8Error> { @@ -31,8 +37,9 @@ impl StringProperty { } } -static NAME_PROPERTY: Lazy = Lazy::new(|| StringProperty::new("name")); -static TIME_PROPERTY: Lazy = Lazy::new(|| StringProperty::new("time")); +pub static NAME_PROPERTY: Lazy = Lazy::new(|| StringProperty::new("name")); +pub static TIME_PROPERTY: Lazy = Lazy::new(|| StringProperty::new("time")); +pub static EMPTY_STRING: Lazy = Lazy::new(|| StringProperty::new("")); #[derive(Clone, Debug)] pub enum TelemetryProperty { @@ -70,8 +77,8 @@ impl TelemetryItem { self.data.insert(name, value); } - pub fn to_evt(&self) -> Vec { - let mut properties = Vec::new(); + pub fn to_evt(&self) -> Box> { + let mut properties = Box::new(Vec::new()); properties.push(evt_prop { name: NAME_PROPERTY.as_ptr(), @@ -97,17 +104,36 @@ impl TelemetryItem { }); } - for prop in self.data.clone().into_iter() {} + for key in self.data.keys() { + let value = self.data.get(key).expect("Unable to get value"); + match value { + TelemetryProperty::String(value) => {} + TelemetryProperty::Int(value) => {} + _ => error!("Unknown TelemetryProperty Type: [{}]", key), + } + } debug!("{}", self.name.to_str().unwrap()); + properties.shrink_to_fit(); + properties } } +// // This is new +// impl Drop for TelemetryItem { +// fn drop(&mut self) { +// debug!( +// "[TelemetryItem] Dropping Item: {}", +// self.name.to_str().unwrap() +// ); +// } +// } + #[cfg(test)] mod tests { - use crate::types::StringProperty; + use crate::types::{StringProperty, EMPTY_STRING, NAME_PROPERTY, TIME_PROPERTY}; #[test] fn validate_c_str_arrays() { @@ -118,9 +144,22 @@ mod tests { let value1 = StringProperty::new("TEST_VALUE1"); let value2 = StringProperty::new("TEST_VALUE2"); - + println!("{:?}", value1.as_bytes()); assert_eq!("TEST_VALUE1", value1.to_str().unwrap()); assert_eq!("TEST_VALUE2", value2.to_str().unwrap()); } } + + #[test] + fn validate_static_props() { + let mut iteration = 0; + + while iteration < 5 { + iteration = iteration + 1; + + assert_eq!("name", NAME_PROPERTY.to_str().unwrap()); + assert_eq!("time", TIME_PROPERTY.to_str().unwrap()); + assert_eq!("", EMPTY_STRING.to_str().unwrap()); + } + } } diff --git a/wrappers/rust/telemetry-sample/src/main.rs b/wrappers/rust/telemetry-sample/src/main.rs index 643f5e123..9e86b8e6f 100644 --- a/wrappers/rust/telemetry-sample/src/main.rs +++ b/wrappers/rust/telemetry-sample/src/main.rs @@ -21,7 +21,7 @@ fn main() { let config = r#"{ "eventCollectorUri": "http://localhost:64099/OneCollector/track", - "cacheFilePath":"offline_storage.db", + "cacheFilePath":"hackathon_storage.db", "config":{"host": "*"}, "name":"Rust-API-Client-0", "version":"1.0.0", @@ -38,6 +38,9 @@ fn main() { loop { error!(target: "app_events", "App Error: {}, Port: {}", "Connection Error", 22); + + oneds_telemetry::flush(); + thread::sleep(Duration::from_secs(3)); } From 4090f27c019a3fc5a4d4c7b589276a2dfab3b893 Mon Sep 17 00:00:00 2001 From: Charlie Friend Date: Wed, 22 Nov 2023 12:00:30 -0800 Subject: [PATCH 08/14] Rework build script, create cpp-client-telemetry-sys crate --- wrappers/rust/Cargo.toml | 2 +- .../rust/cpp-client-telemetry-sys/Cargo.toml | 12 + .../rust/cpp-client-telemetry-sys/build.rs | 76 + .../rust/cpp-client-telemetry-sys/src/lib.rs | 14 + wrappers/rust/include/build-header.cmd | 1 - wrappers/rust/include/ctmacros.hpp | 130 - wrappers/rust/include/mat.h | 640 - wrappers/rust/include/mat.out.h | 115591 --------------- 8 files changed, 103 insertions(+), 116363 deletions(-) create mode 100644 wrappers/rust/cpp-client-telemetry-sys/Cargo.toml create mode 100644 wrappers/rust/cpp-client-telemetry-sys/build.rs create mode 100644 wrappers/rust/cpp-client-telemetry-sys/src/lib.rs delete mode 100644 wrappers/rust/include/build-header.cmd delete mode 100644 wrappers/rust/include/ctmacros.hpp delete mode 100644 wrappers/rust/include/mat.h delete mode 100644 wrappers/rust/include/mat.out.h diff --git a/wrappers/rust/Cargo.toml b/wrappers/rust/Cargo.toml index c9b465d56..336687a2d 100644 --- a/wrappers/rust/Cargo.toml +++ b/wrappers/rust/Cargo.toml @@ -1,4 +1,4 @@ [workspace] resolver = "2" -members = ["oneds-telemetry", "telemetry-sample"] +members = ["cpp-client-telemetry-sys", "oneds-telemetry", "telemetry-sample"] diff --git a/wrappers/rust/cpp-client-telemetry-sys/Cargo.toml b/wrappers/rust/cpp-client-telemetry-sys/Cargo.toml new file mode 100644 index 000000000..b8c68892d --- /dev/null +++ b/wrappers/rust/cpp-client-telemetry-sys/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "cpp-client-telemetry-sys" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] + +[build-dependencies] +bindgen = { version = "0.65.1", features = ["experimental"] } +subprocess = "0.2.9" diff --git a/wrappers/rust/cpp-client-telemetry-sys/build.rs b/wrappers/rust/cpp-client-telemetry-sys/build.rs new file mode 100644 index 000000000..122080292 --- /dev/null +++ b/wrappers/rust/cpp-client-telemetry-sys/build.rs @@ -0,0 +1,76 @@ +use std::env; +use std::fs; +use std::path::PathBuf; +use subprocess::Exec; + +static PROJECT_ROOT: &str = "../../../"; + +fn write_bindings(header_path: &PathBuf) { + let header_path_string = String::from(header_path.to_string_lossy()); + + // The bindgen::Builder is the main entry point + // to bindgen, and lets you build up options for + // the resulting bindings. + let bindings = bindgen::Builder::default() + // The input header we would like to generate + // bindings for. + .parse_callbacks(Box::new(bindgen::CargoCallbacks)) + .rust_target(bindgen::RustTarget::Stable_1_68) + // .raw_line("#![allow(non_upper_case_globals)]") + // .raw_line("#![allow(non_camel_case_types)]") + // .raw_line("#![allow(non_snake_case)]") + .header(&header_path_string) + .allowlist_file(&header_path_string) + .c_naming(false) + .blocklist_type("struct_IMAGE_TLS_DIRECTORY") + .blocklist_type("struct_PIMAGE_TLS_DIRECTORY") + .blocklist_type("struct_IMAGE_TLS_DIRECTORY64") + .blocklist_type("struct_PIMAGE_TLS_DIRECTORY64") + .blocklist_type("struct__IMAGE_TLS_DIRECTORY64") + .blocklist_type("IMAGE_TLS_DIRECTORY") + .blocklist_type("PIMAGE_TLS_DIRECTORY") + .blocklist_type("IMAGE_TLS_DIRECTORY64") + .blocklist_type("PIMAGE_TLS_DIRECTORY64") + .blocklist_type("_IMAGE_TLS_DIRECTORY64") + .allowlist_type("evt_.*") + .allowlist_function("evt_.*") + .allowlist_var("evt_.*") + .allowlist_recursively(false) + .layout_tests(false) + .merge_extern_blocks(true) + // Tell cargo to invalidate the built crate whenever any of the + // included header files changed. + // .wrap_static_fns(true) + // Finish the builder and generate the bindings. + .generate() + // Unwrap the Result and panic on failure. + .expect("Unable to generate bindings"); + + // // Write the bindings to the $OUT_DIR/bindings.rs file. + let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()); + bindings + .write_to_file(out_path.join("bindings.rs")) + .expect("Couldn't write bindings!"); +} + +fn main() { + // Tell cargo to look for shared libraries in the specified directory + println!("cargo:rustc-link-search=../lib"); + + // TODO use clang crate instead of invoking CLI directly + let header_out = Exec::cmd("clang") + .arg("-E") + .arg(PathBuf::from(PROJECT_ROOT).join("lib/include/public/mat.h")) + .arg("-D") + .arg("HAVE_DYNAMIC_C_LIB") + .capture() + .expect("Failed to open clang process") + .stdout_str(); + + let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); + let mat_out_path = out_dir.join("mat.out.h"); + + fs::write(&mat_out_path, header_out).unwrap(); + + write_bindings(&mat_out_path); +} diff --git a/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs b/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs new file mode 100644 index 000000000..7d12d9af8 --- /dev/null +++ b/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs @@ -0,0 +1,14 @@ +pub fn add(left: usize, right: usize) -> usize { + left + right +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn it_works() { + let result = add(2, 2); + assert_eq!(result, 4); + } +} diff --git a/wrappers/rust/include/build-header.cmd b/wrappers/rust/include/build-header.cmd deleted file mode 100644 index af7636e35..000000000 --- a/wrappers/rust/include/build-header.cmd +++ /dev/null @@ -1 +0,0 @@ -clang -E mat.h -D HAVE_DYNAMIC_C_LIB > mat.out.h \ No newline at end of file diff --git a/wrappers/rust/include/ctmacros.hpp b/wrappers/rust/include/ctmacros.hpp deleted file mode 100644 index 42547e41d..000000000 --- a/wrappers/rust/include/ctmacros.hpp +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * SPDX-License-Identifier: Apache-2.0 - */ -#ifndef CTMACROS_HPP -#define CTMACROS_HPP - -#ifdef HAVE_MAT_SHORT_NS -#define MAT_NS_BEGIN MAT -#define MAT_NS_END -#define PAL_NS_BEGIN PAL -#define PAL_NS_END -#else -#define MAT_NS_BEGIN Microsoft { namespace Applications { namespace Events -#define MAT_NS_END }} -#define MAT ::Microsoft::Applications::Events -#define PAL_NS_BEGIN Microsoft { namespace Applications { namespace Events { namespace PlatformAbstraction -#define PAL_NS_END }}} -#define PAL ::Microsoft::Applications::Events::PlatformAbstraction -#endif - -#define MAT_v1 ::Microsoft::Applications::Telemetry - -#ifdef _WIN32 // Windows platforms - -#ifndef MATSDK_SPEC // we use __cdecl by default -#define MATSDK_SPEC __cdecl -#define MATSDK_LIBABI_CDECL __cdecl -# if defined(MATSDK_SHARED_LIB) -# define MATSDK_LIBABI __declspec(dllexport) -# elif defined(MATSDK_STATIC_LIB) -# define MATSDK_LIBABI -# else // Header file included by client -# ifndef MATSDK_LIBABI -# define MATSDK_LIBABI -# endif -# endif -#endif - -#else // Non-windows platforms - -#ifndef MATSDK_SPEC -#define MATSDK_SPEC -#endif - -#ifndef MATSDK_LIBABI_CDECL -#define MATSDK_LIBABI_CDECL -#endif - -#ifndef MATSDK_LIBABI -#define MATSDK_LIBABI -#endif - -// TODO: [MG] - ideally we'd like to use __attribute__((unused)) with gcc/clang -#ifndef UNREFERENCED_PARAMETER -#define UNREFERENCED_PARAMETER(...) -#endif - -#define OACR_USE_PTR(...) - -#ifndef _Out_writes_bytes_ -#define _Out_writes_bytes_(...) -#endif - -#endif - -#ifdef MATSDK_UNUSED -#elif defined(__GNUC__) || defined(__clang__) -# define MATSDK_UNUSED(x) (x) /* __attribute__((unused)) */ -#elif defined(__LCLINT__) -# define MATSDK_UNUSED(x) /*@unused@*/ x -#elif defined(__cplusplus) -# define MATSDK_UNUSED(x) -#else -# define MATSDK_UNUSED(x) x -#endif - -#define STRINGIZE_DETAIL(x) #x -#define STRINGIZE(x) STRINGIZE_DETAIL(x) -#define STRINGIFY(x) #x -#define TOKENPASTE(x, y) x ## y -#define TOKENPASTE2(x, y) TOKENPASTE(x, y) - -// Macro for mutex issues debugging. Supports both std::mutex and std::recursive_mutex -#define LOCKGUARD(macro_mutex) LOG_DEBUG("LOCKGUARD lockin at %s:%d", __FILE__, __LINE__); std::lock_guard TOKENPASTE2(__guard_, __LINE__) (macro_mutex); LOG_DEBUG("LOCKGUARD locked at %s:%d", __FILE__, __LINE__); - -#if defined(_WIN32) || defined(_WIN64) -#ifdef _WIN64 -#define ARCH_64BIT -#else -#define ARCH_32BIT -#endif -#endif - -#if __GNUC__ -#if defined(__x86_64__) || defined(__ppc64__) -#define ARCH_64BIT -#else -#define ARCH_32BIT -#endif -#endif - -/* Exceptions support is optional */ -#if (__cpp_exceptions) || defined(__EXCEPTIONS) -#define HAVE_EXCEPTIONS 1 -#else -#define HAVE_EXCEPTIONS 0 -#endif - -// allow to disable exceptions -#if (HAVE_EXCEPTIONS) -# define MATSDK_TRY try -# define MATSDK_CATCH catch -# define MATSDK_THROW throw -#else -# define MATSDK_TRY if (true) -# define MATSDK_CATCH(...) if (false) -# define MATSDK_THROW(...) std::abort() -#endif - -#if defined(__arm__) || defined(_M_ARM) || defined(_M_ARMT) -/* TODO: add support for 64-bit aarch64 */ -#define ARCH_ARM -#endif - -#define EVTSDK_LIBABI MATSDK_LIBABI -#define EVTSDK_LIBABI_CDECL MATSDK_LIBABI_CDECL -#define EVTSDK_SPEC MATSDK_SPEC - -#endif diff --git a/wrappers/rust/include/mat.h b/wrappers/rust/include/mat.h deleted file mode 100644 index 3ad8d36f7..000000000 --- a/wrappers/rust/include/mat.h +++ /dev/null @@ -1,640 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * SPDX-License-Identifier: Apache-2.0 - */ -#ifndef TELEMETRY_EVENTS_H -#define TELEMETRY_EVENTS_H - -/* API semver $MAJOR.$MINOR.$PATCH must be updated with every $MAJOR or $MINOR change. - * For version handshake check there is no mandatory requirement to update the $PATCH level. - * Ref. https://semver.org/ for Semantic Versioning documentation. - */ -#define TELEMETRY_EVENTS_VERSION "3.1.0" - -#include "ctmacros.hpp" - -#ifdef _WIN32 -#include -#endif - -#if (_MSC_VER == 1500) || (_MSC_VER == 1600) -/* Visual Studio 2010 */ -typedef __int64 int64_t; -typedef unsigned __int64 uint64_t; -typedef __int32 int32_t; -typedef unsigned __int32 uint32_t; -typedef __int16 int16_t; -typedef unsigned __int16 uint16_t; -typedef __int8 int8_t; -typedef unsigned __int8 uint8_t; -typedef int bool; -#define inline -#else -/* Other compilers with C11 support */ -#include -#include -#endif - -#ifndef EVT_ARRAY_SIZE -#define EVT_ARRAY_SIZE(a) \ - ((sizeof(a) / sizeof(*(a))) / \ - (unsigned)(!(sizeof(a) % sizeof(*(a))))) -#endif - -#ifdef __cplusplus -extern "C" { -#endif - - typedef enum evt_call_t - { - EVT_OP_LOAD = 0x00000001, - EVT_OP_UNLOAD = 0x00000002, - EVT_OP_OPEN = 0x00000003, - EVT_OP_CLOSE = 0x00000004, - EVT_OP_CONFIG = 0x00000005, - EVT_OP_LOG = 0x00000006, - EVT_OP_PAUSE = 0x00000007, - EVT_OP_RESUME = 0x00000008, - EVT_OP_UPLOAD = 0x00000009, - EVT_OP_FLUSH = 0x0000000A, - EVT_OP_VERSION = 0x0000000B, - EVT_OP_OPEN_WITH_PARAMS = 0x0000000C, - EVT_OP_FLUSHANDTEARDOWN = 0x0000000D, - EVT_OP_MAX = EVT_OP_FLUSHANDTEARDOWN + 1, - } evt_call_t; - - typedef enum evt_prop_t - { - /* Basic types */ - TYPE_STRING, - TYPE_INT64, - TYPE_DOUBLE, - TYPE_TIME, - TYPE_BOOLEAN, - TYPE_GUID, - /* Arrays of basic types */ - TYPE_STRING_ARRAY, - TYPE_INT64_ARRAY, - TYPE_DOUBLE_ARRAY, - TYPE_TIME_ARRAY, - TYPE_BOOL_ARRAY, - TYPE_GUID_ARRAY, - /* NULL-type */ - TYPE_NULL - } evt_prop_t; - - typedef struct evt_guid_t - { - /** - * - * Specifies the first eight hexadecimal digits of the GUID. - * - */ - uint32_t Data1; - - /* - * Specifies the first group of four hexadecimal digits. - * - */ - uint16_t Data2; - - /** - * - * Specifies the second group of four hexadecimal digits. - * - */ - uint16_t Data3; - - /** - * An array of eight bytes. - * The first two bytes contain the third group of four hexadecimal digits. - * The remaining six bytes contain the final 12 hexadecimal digits. - * - */ - uint8_t Data4[8]; - } evt_guid_t; - - typedef int64_t evt_handle_t; - typedef int32_t evt_status_t; - typedef struct evt_event evt_event; - - typedef struct evt_context_t - { - evt_call_t call; /* In */ - evt_handle_t handle; /* In / Out */ - void* data; /* In / Out */ - evt_status_t result; /* Out */ - uint32_t size; /* In / Out */ - } evt_context_t; - - /** - * - * Identifies the type of input parameter to 'evt_open_with_params'. New parameter types can be added without - * breaking backwards compatibility. - * - */ - typedef enum evt_open_param_type_t - { - OPEN_PARAM_TYPE_HTTP_HANDLER_SEND = 0, - OPEN_PARAM_TYPE_HTTP_HANDLER_CANCEL = 1, - OPEN_PARAM_TYPE_TASK_DISPATCHER_QUEUE = 2, - OPEN_PARAM_TYPE_TASK_DISPATCHER_CANCEL = 3, - OPEN_PARAM_TYPE_TASK_DISPATCHER_JOIN = 4, - } evt_open_param_type_t; - - /** - * - * Represents a single input parameter to 'evt_open_with_params' - * - */ - typedef struct evt_open_param_t - { - evt_open_param_type_t type; - void* data; - } evt_open_param_t; - - /** - * - * Wraps logger configuration string and all input parameters to 'evt_open_with_params' - * - */ - typedef struct evt_open_with_params_data_t - { - const char* config; - const evt_open_param_t* params; - int32_t paramsCount; - } evt_open_with_params_data_t; - - typedef union evt_prop_v - { - /* Basic types */ - uint64_t as_uint64; - const char* as_string; - int64_t as_int64; - double as_double; - bool as_bool; - evt_guid_t* as_guid; - uint64_t as_time; - /* Array types are nullptr-terminated array of pointers */ - char** as_arr_string; - int64_t** as_arr_int64; - bool** as_arr_bool; - double** as_arr_double; - evt_guid_t** as_arr_guid; - uint64_t** as_arr_time; - } evt_prop_v; - - typedef struct evt_prop - { - const char* name; - evt_prop_t type; - evt_prop_v value; - uint32_t piiKind; - } evt_prop; - - /** - * - * Identifies HTTP request method type - * - */ - typedef enum http_request_type_t - { - HTTP_REQUEST_TYPE_GET = 0, - HTTP_REQUEST_TYPE_POST = 1, - } http_request_type_t; - - /** - * - * Identifies whether an HTTP operation has succeeded or failed, including general failure type - * - */ - typedef enum http_result_t - { - HTTP_RESULT_OK = 0, - HTTP_RESULT_CANCELLED = 1, - HTTP_RESULT_LOCAL_FAILURE = 2, - HTTP_RESULT_NETWORK_FAILURE = 3, - } http_result_t; - - /** - * - * Represents a single HTTP request or response header (key/value pair) - * - */ - typedef struct http_header_t - { - const char* name; - const char* value; - } http_header_t; - - /** - * - * Represents a single HTTP request. Used by optional app-provided HTTP handler callback functions. - * - */ - typedef struct http_request_t - { - const char* id; - http_request_type_t type; - const char* url; - const uint8_t* body; - int32_t bodySize; - const http_header_t* headers; - int32_t headersCount; - } http_request_t; - - /** - * - * Represents a single HTTP response. Used by optional app-provided HTTP handler callback functions. - * - */ - typedef struct http_response_t - { - int32_t statusCode; - const uint8_t* body; - int32_t bodySize; - const http_header_t* headers; - int32_t headersCount; - } http_response_t; - - /* HTTP callback function signatures */ - typedef void (EVTSDK_LIBABI_CDECL *http_complete_fn_t)(const char* /*requestId*/, http_result_t, http_response_t*); - typedef void (EVTSDK_LIBABI_CDECL *http_send_fn_t)(http_request_t*, http_complete_fn_t); - typedef void (EVTSDK_LIBABI_CDECL *http_cancel_fn_t)(const char* /*requestId*/); - - /** - * - * Represents a single asynchronous worker thread item. Used by optional app-provided worker thread callback functions. - * - */ - typedef struct evt_task_t - { - const char* id; - int64_t delayMs; - const char* typeName; - } evt_task_t; - - /* Async worker thread callback function signatures */ - typedef void (EVTSDK_LIBABI_CDECL *task_callback_fn_t)(const char* /*taskId*/); - typedef void(EVTSDK_LIBABI_CDECL* task_dispatcher_queue_fn_t)(evt_task_t*, task_callback_fn_t); - typedef bool (EVTSDK_LIBABI_CDECL *task_dispatcher_cancel_fn_t)(const char* /*taskId*/); - typedef void (EVTSDK_LIBABI_CDECL *task_dispatcher_join_fn_t)(); - -#if (_MSC_VER == 1500) || (_MSC_VER == 1600) || (defined(__cplusplus) && !defined(__GNUG__)) - /* Code to support C89 compiler, including VS2010 */ -#define TELEMETRY_EVENT(...) { __VA_ARGS__ , { NULL, TYPE_NULL } } -/* With C89-style initializers, structure members must be initialized in the order declared. - ...and (!) - only the first member of a union can be initialized. - Which means that we have to do the hack of C-style casting from value to char* ... - */ - -#if defined(__cplusplus) - /* Helper functions needed while compiling in C++ module */ - static inline evt_prop_v _DBL2(evt_prop_v pv, double val) - { - pv.as_double = val; - return pv; - }; -#define _DBL(key, val) { key, TYPE_DOUBLE, _DBL2({ NULL }, val) } -#define PII_DBL(key, val, kind) { key, TYPE_DOUBLE, _DBL2({ NULL }, val), kind } - -/* - static inline evt_prop_v _TIME2(evt_prop_v pv, uint64_t val) - { - pv.as_time = val; - return pv; - } -#define _TIME(key, val) { key, TYPE_TIME, _TIME2({ NULL }, val) } -#define PII_TIME(key, val, kind) { key, TYPE_TIME, _TIME2({ NULL }, val), kind } -*/ -#else -#pragma message ("C89 compiler does not support passing DOUBLE and TIME values via C API") -#endif - -#define _STR(key, val) { key, TYPE_STRING, { (uint64_t)((char *)val) } } -#define _INT(key, val) { key, TYPE_INT64, { (uint64_t)val } } -#define _BOOL(key, val) { key, TYPE_BOOLEAN, { (uint64_t)val } } -#define _GUID(key, val) { key, TYPE_GUID, { (uint64_t)((char *)val) } } -#define _TIME(key, val) { key, TYPE_TIME, { (uint64_t)val } } - -#define PII_STR(key, val, kind) { key, TYPE_STRING, { (uint64_t)((char *)val) }, kind } -#define PII_INT(key, val, kind) { key, TYPE_INT64, { (uint64_t)val }, kind } -#define PII_BOOL(key, val, kind) { key, TYPE_BOOLEAN, { (uint64_t)val }, kind } -#define PII_GUID(key, val, kind) { key, TYPE_GUID, { (uint64_t)((char *)val) }, kind } -#define PII_TIME(key, val, kind) { key, TYPE_TIME, { (uint64_t)val }, kind } - -#else - /* Code to support any modern C99 compiler */ -#define TELEMETRY_EVENT(...) { __VA_ARGS__ , { .name = NULL, .type = TYPE_NULL, .value = { .as_int64 = 0 }, .piiKind = 0 } } - -#define _STR(key, val) { .name = key, .type = TYPE_STRING, .value = { .as_string = val }, .piiKind = 0 } -#define _INT(key, val) { .name = key, .type = TYPE_INT64, .value = { .as_int64 = val }, .piiKind = 0 } -#define _DBL(key, val) { .name = key, .type = TYPE_DOUBLE, .value = { .as_double = val }, .piiKind = 0 } -#define _BOOL(key, val) { .name = key, .type = TYPE_BOOLEAN, .value = { .as_bool = val }, .piiKind = 0 } -#define _GUID(key, val) { .name = key, .type = TYPE_GUID, .value = { .as_string = val }, .piiKind = 0 } -#define _TIME(key, val) { .name = key, .type = TYPE_TIME, .value = { .as_time = val }, .piiKind = 0 } - -#define PII_STR(key, val, kind) { .name = key, .type = TYPE_STRING, .value = { .as_string = val }, .piiKind = kind } -#define PII_INT(key, val, kind) { .name = key, .type = TYPE_INT64, .value = { .as_int64 = val }, .piiKind = kind } -#define PII_DBL(key, val, kind) { .name = key, .type = TYPE_DOUBLE, .value = { .as_double = val }, .piiKind = kind } -#define PII_BOOL(key, val, kind) { .name = key, .type = TYPE_BOOLEAN, .value = { .as_bool = val }, .piiKind = kind } -#define PII_GUID(key, val, kind) { .name = key, .type = TYPE_GUID, .value = { .as_string = val }, .piiKind = kind } -#define PII_TIME(key, val, kind) { .name = key, .type = TYPE_TIME, .value = { .as_time = val }, .piiKind = kind } - -#endif - - typedef evt_status_t(EVTSDK_LIBABI_CDECL *evt_app_call_t)(evt_context_t *); - -#ifdef HAVE_DYNAMIC_C_LIB -#define evt_api_call_default NULL -#else - EVTSDK_LIBABI evt_status_t EVTSDK_LIBABI_CDECL evt_api_call_default(evt_context_t* ctx); -#endif - -#ifdef _MSC_VER - /* User of the library may delay-load the invocation of __impl_evt_api_call to assign their own implementation */ - __declspec(selectany) evt_app_call_t evt_api_call = evt_api_call_default; -#else - /* Implementation of evt_api_call can be provided by the executable module that includes this header */ - __attribute__((weak)) evt_app_call_t evt_api_call = evt_api_call_default; -#endif - - /** - * - * Load alternate implementation of SDK Client Telemetry library at runtime. - * - * Library handle. - * Status code. - */ - static inline evt_status_t evt_load(evt_handle_t handle) - { -#ifdef _WIN32 - /* This code accepts a handle of a library loaded in customer's code */ - evt_app_call_t impl = (evt_app_call_t)GetProcAddress((HMODULE)handle, "evt_api_call_default"); - if (impl != NULL) - { - evt_api_call = impl; - return 0; - } - // Unable to load alternate implementation - return -1; -#else - /* TODO: - * - provide implementation for Linux and Mac - * - consider accepting a library path rather than a library handle for dlopen - */ - evt_context_t ctx; - ctx.call = EVT_OP_LOAD; - ctx.handle = handle; - return evt_api_call(&ctx); -#endif - } - - /** - * - * Unloads SDK instance loaded with evt_load - * - * SDK instance handle. - * - * Status code. - * - */ - static inline evt_status_t evt_unload(evt_handle_t handle) - { - evt_context_t ctx; - ctx.call = EVT_OP_UNLOAD; - ctx.handle = handle; - return evt_api_call(&ctx); - } - - /** - * - * Create or open existing SDK instance. - * - * SDK configuration. - * SDK instance handle. - */ - static inline evt_handle_t evt_open(const char* config) - { - evt_context_t ctx; - ctx.call = EVT_OP_OPEN; - ctx.data = (void *)config; - evt_api_call(&ctx); - return ctx.handle; - } - - /** - * - * Create or open existing SDK instance. - * - * SDK configuration. - * Optional initialization parameters. - * Number of initialization parameters. - * SDK instance handle. - */ - static inline evt_handle_t evt_open_with_params( - const char* config, - evt_open_param_t* params, - int32_t paramsCount) - { - evt_open_with_params_data_t data; - evt_context_t ctx; - - data.config = config; - data.params = params; - data.paramsCount = paramsCount; - - ctx.call = EVT_OP_OPEN_WITH_PARAMS; - ctx.data = (void *)(&data); - evt_api_call(&ctx); - return ctx.handle; - } - - /** - * - * Destroy or close SDK instance by handle - * - * SDK instance handle. - * Status code. - */ - static inline evt_status_t evt_close(evt_handle_t handle) - { - evt_context_t ctx; - ctx.call = EVT_OP_CLOSE; - ctx.handle = handle; - return evt_api_call(&ctx); - } - - /** - * - * Configure SDK instance using configuration provided. - * - * SDK handle. - * The configuration. - * - */ - static inline evt_status_t evt_configure(evt_handle_t handle, const char* config) - { - evt_context_t ctx; - ctx.call = EVT_OP_CONFIG; - ctx.handle = handle; - ctx.data = (void *)config; - return evt_api_call(&ctx); - } - - /** - * - * Logs a telemetry event (security-enhanced _s function) - * - * SDK handle. - * Number of event properties in array. - * Event properties array. - * - */ - static inline evt_status_t evt_log_s(evt_handle_t handle, uint32_t size, evt_prop* evt) - { - evt_context_t ctx; - ctx.call = EVT_OP_LOG; - ctx.handle = handle; - ctx.data = (void *)evt; - ctx.size = size; - return evt_api_call(&ctx); - } - - /** - * - * Logs a telemetry event. - * Last item in evt_prop array must be { .name = NULL, .type = TYPE_NULL } - * - * SDK handle. - * Number of event properties in array. - * Event properties array. - * - */ - static inline evt_status_t evt_log(evt_handle_t handle, evt_prop* evt) - { - evt_context_t ctx; - ctx.call = EVT_OP_LOG; - ctx.handle = handle; - ctx.data = (void *)evt; - ctx.size = 0; - return evt_api_call(&ctx); - } - - /* This macro automagically calculates the array size and passes it down to evt_log_s. - * Developers don't have to calculate the number of event properties passed down to - *'Log Event' API call utilizing the concept of Secure Template Overloads: - * https://docs.microsoft.com/en-us/cpp/c-runtime-library/secure-template-overloads - */ -#if defined(_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES) || defined(_CRT_SECURE_LOG_S) -#if _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES || defined(_CRT_SECURE_LOG_S) -#define evt_log(handle, evt) evt_log_s(handle, EVT_ARRAY_SIZE(evt), evt) -#endif -#endif - - /** - * - * Pauses transmission. In that mode events stay in ram or saved to disk, not sent. - * - * SDK handle. - * Status code. - */ - static inline evt_status_t evt_pause(evt_handle_t handle) - { - evt_context_t ctx; - ctx.call = EVT_OP_PAUSE; - ctx.handle = handle; - return evt_api_call(&ctx); - } - - /** - * - * Resumes transmission. Pending telemetry events should be attempted to be sent. - * - * SDK handle. - * Status code. - */ - static inline evt_status_t evt_resume(evt_handle_t handle) - { - evt_context_t ctx; - ctx.call = EVT_OP_RESUME; - ctx.handle = handle; - return evt_api_call(&ctx); - } - - /** - * Provide a hint to telemetry system to attempt force-upload of events - * without waiting for the next batch timer interval. This API does not - * guarantee the upload. - * - * SDK handle. - * Status code. - */ - static inline evt_status_t evt_upload(evt_handle_t handle) - { - evt_context_t ctx; - ctx.call = EVT_OP_UPLOAD; - ctx.handle = handle; - return evt_api_call(&ctx); - } - - /** - * Flush any pending telemetry events in memory to disk, - * attempt upload of events if tear down interval is configured, - * and eventually tear down the telemetry logging system. - * - * SDK handle. - * Status code. - */ - static inline evt_status_t evt_flushAndTeardown(evt_handle_t handle) - { - evt_context_t ctx; - ctx.call = EVT_OP_FLUSHANDTEARDOWN; - ctx.handle = handle; - return evt_api_call(&ctx); - } - - /** - * Save pending telemetry events to offline storage on disk. - * - * SDK handle. - * Status code. - */ - static inline evt_status_t evt_flush(evt_handle_t handle) - { - evt_context_t ctx; - ctx.call = EVT_OP_FLUSH; - ctx.handle = handle; - return evt_api_call(&ctx); - } - - /** - * Pass down SDK header version to SDK library. Needed for late binding version checking. - * This method provides means of a handshake between library header and a library impl. - * It is up to app dev to verify the value returned, making a decision whether some SDK - * features are implemented/supported by particular SDK version or not. - * - * SDK header semver. - * SDK library semver - */ - static inline const char * evt_version() - { - static const char * libSemver = TELEMETRY_EVENTS_VERSION; - evt_context_t ctx; - ctx.call = EVT_OP_VERSION; - ctx.data = (void*)libSemver; - evt_api_call(&ctx); - return (const char *)(ctx.data); - } - - /* New API calls to be added using evt_api_call(&ctx) for backwards-forward / ABI compat */ - -#ifdef __cplusplus -} -#endif - -#ifdef __cplusplus -#include "CAPIClient.hpp" -#endif - -#endif diff --git a/wrappers/rust/include/mat.out.h b/wrappers/rust/include/mat.out.h deleted file mode 100644 index cef1c5039..000000000 --- a/wrappers/rust/include/mat.out.h +++ /dev/null @@ -1,115591 +0,0 @@ -# 1 "mat.h" -# 1 "" 1 -# 1 "" 3 -# 358 "" 3 -# 1 "" 1 -# 1 "" 2 -# 1 "mat.h" 2 -# 14 "mat.h" -# 1 "./ctmacros.hpp" 1 -# 15 "mat.h" 2 - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 1 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winapifamily.h" 1 3 -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winapifamily.h" 3 -#pragma warning(push) -#pragma warning(disable: 4001) - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winpackagefamily.h" 1 3 -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winpackagefamily.h" 3 -#pragma warning(push) -#pragma warning(disable: 4001) -# 87 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winpackagefamily.h" 3 -#pragma warning(pop) -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winapifamily.h" 2 3 -# 247 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winapifamily.h" 3 -#pragma warning(pop) -# 2 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\sdkddkver.h" 1 3 -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\sdkddkver.h" 3 -#pragma warning(push) -#pragma warning(disable: 4668) - -#pragma warning(disable: 4001) -# 309 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\sdkddkver.h" 3 -#pragma warning(pop) -# 23 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 152 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 3 -#pragma warning(disable: 4116) - - - - - - - -#pragma warning(disable: 4514) - -#pragma warning(disable: 4103) - - -#pragma warning(push) - -#pragma warning(disable: 4001) -#pragma warning(disable: 4201) -#pragma warning(disable: 4214) - -# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\excpt.h" 1 3 -# 12 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\excpt.h" 3 -# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 1 3 -# 57 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 3 -# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\sal.h" 1 3 -# 2974 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\sal.h" 3 -# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\concurrencysal.h" 1 3 -# 2975 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\sal.h" 2 3 -# 58 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 2 3 -# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\vadefs.h" 1 3 -# 18 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\vadefs.h" 3 -# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vadefs.h" 1 3 -# 15 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vadefs.h" 3 -#pragma pack(push, 8) -# 47 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vadefs.h" 3 -#pragma warning(push) -#pragma warning(disable: 4514 4820) -# 61 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vadefs.h" 3 - typedef unsigned __int64 uintptr_t; -# 72 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vadefs.h" 3 - typedef char* va_list; -# 155 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vadefs.h" 3 - void __cdecl __va_start(va_list* , ...); -# 207 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vadefs.h" 3 -#pragma warning(pop) -#pragma pack(pop) -# 19 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\vadefs.h" 2 3 -# 59 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 2 3 - -#pragma warning(push) -#pragma warning(disable: 4514 4820) -# 96 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 3 -#pragma pack(push, 8) -# 193 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 3 - typedef unsigned __int64 size_t; - typedef __int64 ptrdiff_t; - typedef __int64 intptr_t; -# 209 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 3 - typedef _Bool __vcrt_bool; -# 228 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 3 - typedef unsigned short wchar_t; -# 377 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 3 - void __cdecl __security_init_cookie(void); -# 386 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime.h" 3 - void __cdecl __security_check_cookie( uintptr_t _StackCookie); - __declspec(noreturn) void __cdecl __report_gsfailure( uintptr_t _StackCookie); - - - -extern uintptr_t __security_cookie; - - - - - - - -#pragma pack(pop) - -#pragma warning(pop) -# 13 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\excpt.h" 2 3 - -#pragma warning(push) -#pragma warning(disable: 4514 4820) - -#pragma pack(push, 8) - - - - -typedef enum _EXCEPTION_DISPOSITION -{ - ExceptionContinueExecution, - ExceptionContinueSearch, - ExceptionNestedException, - ExceptionCollidedUnwind -} EXCEPTION_DISPOSITION; -# 48 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\excpt.h" 3 - struct _EXCEPTION_RECORD; - struct _CONTEXT; - struct _DISPATCHER_CONTEXT; - - EXCEPTION_DISPOSITION __cdecl __C_specific_handler( - struct _EXCEPTION_RECORD* ExceptionRecord, - void* EstablisherFrame, - struct _CONTEXT* ContextRecord, - struct _DISPATCHER_CONTEXT* DispatcherContext - ); -# 72 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\excpt.h" 3 -unsigned long __cdecl _exception_code(void); -void * __cdecl _exception_info(void); -int __cdecl _abnormal_termination(void); -# 85 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\excpt.h" 3 -#pragma pack(pop) - -#pragma warning(pop) -# 172 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stdarg.h" 1 3 -# 14 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stdarg.h" 3 -typedef __builtin_va_list __gnuc_va_list; - - - - - - - -typedef __builtin_va_list va_list; -# 173 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 1 3 -# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings.h" 1 3 -# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings.h" 3 -#pragma warning(push) -#pragma warning(disable: 4668) -# 674 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings_strict.h" 1 3 -# 188 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings_strict.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings_undef.h" 1 3 -# 189 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings_strict.h" 2 3 -# 675 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings.h" 2 3 -# 695 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\driverspecs.h" 1 3 -# 125 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\driverspecs.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/sdv_driverspecs.h" 1 3 -# 126 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\driverspecs.h" 2 3 -# 696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings.h" 2 3 -# 711 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\specstrings.h" 3 -#pragma warning(pop) -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 2 3 -# 51 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 3 -typedef unsigned long ULONG; -typedef ULONG *PULONG; -typedef unsigned short USHORT; -typedef USHORT *PUSHORT; -typedef unsigned char UCHAR; -typedef UCHAR *PUCHAR; -typedef char *PSZ; -# 156 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 3 -typedef unsigned long DWORD; -typedef int BOOL; -typedef unsigned char BYTE; -typedef unsigned short WORD; -typedef float FLOAT; -typedef FLOAT *PFLOAT; -typedef BOOL *PBOOL; -typedef BOOL *LPBOOL; -typedef BYTE *PBYTE; -typedef BYTE *LPBYTE; -typedef int *PINT; -typedef int *LPINT; -typedef WORD *PWORD; -typedef WORD *LPWORD; -typedef long *LPLONG; -typedef DWORD *PDWORD; -typedef DWORD *LPDWORD; -typedef void *LPVOID; -typedef const void *LPCVOID; - -typedef int INT; -typedef unsigned int UINT; -typedef unsigned int *PUINT; - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 1 3 -# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma warning(push) -#pragma warning(disable: 4668) -#pragma warning(disable: 4820) - -#pragma warning(disable: 4200) -#pragma warning(disable: 4201) -#pragma warning(disable: 4214) - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 1 3 -# 12 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 1 3 -# 121 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 -#pragma warning(push) -#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) -#pragma clang diagnostic push -# 123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 -#pragma clang diagnostic ignored "-Wdeprecated-declarations" -# 123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 -#pragma clang diagnostic ignored "-Wignored-attributes" -# 123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 -#pragma clang diagnostic ignored "-Wignored-pragma-optimize" -# 123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 -#pragma clang diagnostic ignored "-Wunknown-pragmas" - -#pragma pack(push, 8) -# 274 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 - typedef _Bool __crt_bool; -# 371 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 - void __cdecl _invalid_parameter_noinfo(void); - __declspec(noreturn) void __cdecl _invalid_parameter_noinfo_noreturn(void); - -__declspec(noreturn) - void __cdecl _invoke_watson( - wchar_t const* _Expression, - wchar_t const* _FunctionName, - wchar_t const* _FileName, - unsigned int _LineNo, - uintptr_t _Reserved); -# 604 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 -typedef int errno_t; -typedef unsigned short wint_t; -typedef unsigned short wctype_t; -typedef long __time32_t; -typedef __int64 __time64_t; - -typedef struct __crt_locale_data_public -{ - unsigned short const* _locale_pctype; - int _locale_mb_cur_max; - unsigned int _locale_lc_codepage; -} __crt_locale_data_public; - -typedef struct __crt_locale_pointers -{ - struct __crt_locale_data* locinfo; - struct __crt_multibyte_data* mbcinfo; -} __crt_locale_pointers; - -typedef __crt_locale_pointers* _locale_t; - -typedef struct _Mbstatet -{ - unsigned long _Wchar; - unsigned short _Byte, _State; -} _Mbstatet; - -typedef _Mbstatet mbstate_t; -# 645 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 - typedef __time64_t time_t; -# 655 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 - typedef size_t rsize_t; -# 2072 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt.h" 3 -#pragma pack(pop) - -#pragma clang diagnostic pop -#pragma warning(pop) -# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 1 3 -# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 -#pragma warning(push) -#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) -#pragma clang diagnostic push -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 -#pragma clang diagnostic ignored "-Wdeprecated-declarations" -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 -#pragma clang diagnostic ignored "-Wignored-attributes" -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 -#pragma clang diagnostic ignored "-Wignored-pragma-optimize" -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 -#pragma clang diagnostic ignored "-Wunknown-pragmas" - -#pragma pack(push, 8) -# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 - const unsigned short* __cdecl __pctype_func(void); - const wctype_t* __cdecl __pwctype_func(void); -# 67 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 - int __cdecl iswalnum ( wint_t _C); - int __cdecl iswalpha ( wint_t _C); - int __cdecl iswascii ( wint_t _C); - int __cdecl iswblank ( wint_t _C); - int __cdecl iswcntrl ( wint_t _C); - - - int __cdecl iswdigit ( wint_t _C); - - int __cdecl iswgraph ( wint_t _C); - int __cdecl iswlower ( wint_t _C); - int __cdecl iswprint ( wint_t _C); - int __cdecl iswpunct ( wint_t _C); - int __cdecl iswspace ( wint_t _C); - int __cdecl iswupper ( wint_t _C); - int __cdecl iswxdigit ( wint_t _C); - int __cdecl __iswcsymf( wint_t _C); - int __cdecl __iswcsym ( wint_t _C); - - int __cdecl _iswalnum_l ( wint_t _C, _locale_t _Locale); - int __cdecl _iswalpha_l ( wint_t _C, _locale_t _Locale); - int __cdecl _iswblank_l ( wint_t _C, _locale_t _Locale); - int __cdecl _iswcntrl_l ( wint_t _C, _locale_t _Locale); - int __cdecl _iswdigit_l ( wint_t _C, _locale_t _Locale); - int __cdecl _iswgraph_l ( wint_t _C, _locale_t _Locale); - int __cdecl _iswlower_l ( wint_t _C, _locale_t _Locale); - int __cdecl _iswprint_l ( wint_t _C, _locale_t _Locale); - int __cdecl _iswpunct_l ( wint_t _C, _locale_t _Locale); - int __cdecl _iswspace_l ( wint_t _C, _locale_t _Locale); - int __cdecl _iswupper_l ( wint_t _C, _locale_t _Locale); - int __cdecl _iswxdigit_l( wint_t _C, _locale_t _Locale); - int __cdecl _iswcsymf_l ( wint_t _C, _locale_t _Locale); - int __cdecl _iswcsym_l ( wint_t _C, _locale_t _Locale); - - - wint_t __cdecl towupper( wint_t _C); - wint_t __cdecl towlower( wint_t _C); - int __cdecl iswctype( wint_t _C, wctype_t _Type); - - wint_t __cdecl _towupper_l( wint_t _C, _locale_t _Locale); - wint_t __cdecl _towlower_l( wint_t _C, _locale_t _Locale); - int __cdecl _iswctype_l( wint_t _C, wctype_t _Type, _locale_t _Locale); - - - - int __cdecl isleadbyte( int _C); - int __cdecl _isleadbyte_l( int _C, _locale_t _Locale); - - __declspec(deprecated("This function or variable has been superceded by newer library " "or operating system functionality. Consider using " "iswctype" " " "instead. See online help for details.")) int __cdecl is_wctype( wint_t _C, wctype_t _Type); -# 203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wctype.h" 3 -#pragma pack(pop) -#pragma clang diagnostic pop -#pragma warning(pop) -# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 2 3 - -#pragma warning(push) -#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) -#pragma clang diagnostic push -# 17 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 -#pragma clang diagnostic ignored "-Wdeprecated-declarations" -# 17 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 -#pragma clang diagnostic ignored "-Wignored-attributes" -# 17 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 -#pragma clang diagnostic ignored "-Wignored-pragma-optimize" -# 17 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 -#pragma clang diagnostic ignored "-Wunknown-pragmas" - -#pragma pack(push, 8) -# 29 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 - int __cdecl _isctype( int _C, int _Type); - int __cdecl _isctype_l( int _C, int _Type, _locale_t _Locale); - int __cdecl isalpha( int _C); - int __cdecl _isalpha_l( int _C, _locale_t _Locale); - int __cdecl isupper( int _C); - int __cdecl _isupper_l( int _C, _locale_t _Locale); - int __cdecl islower( int _C); - int __cdecl _islower_l( int _C, _locale_t _Locale); - - - int __cdecl isdigit( int _C); - - int __cdecl _isdigit_l( int _C, _locale_t _Locale); - int __cdecl isxdigit( int _C); - int __cdecl _isxdigit_l( int _C, _locale_t _Locale); - - - int __cdecl isspace( int _C); - - int __cdecl _isspace_l( int _C, _locale_t _Locale); - int __cdecl ispunct( int _C); - int __cdecl _ispunct_l( int _C, _locale_t _Locale); - int __cdecl isblank( int _C); - int __cdecl _isblank_l( int _C, _locale_t _Locale); - int __cdecl isalnum( int _C); - int __cdecl _isalnum_l( int _C, _locale_t _Locale); - int __cdecl isprint( int _C); - int __cdecl _isprint_l( int _C, _locale_t _Locale); - int __cdecl isgraph( int _C); - int __cdecl _isgraph_l( int _C, _locale_t _Locale); - int __cdecl iscntrl( int _C); - int __cdecl _iscntrl_l( int _C, _locale_t _Locale); - - - int __cdecl toupper( int _C); - - - int __cdecl tolower( int _C); - - int __cdecl _tolower( int _C); - int __cdecl _tolower_l( int _C, _locale_t _Locale); - int __cdecl _toupper( int _C); - int __cdecl _toupper_l( int _C, _locale_t _Locale); - - int __cdecl __isascii( int _C); - int __cdecl __toascii( int _C); - int __cdecl __iscsymf( int _C); - int __cdecl __iscsym( int _C); -# 85 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 -__inline int __cdecl __acrt_locale_get_ctype_array_value( - unsigned short const * const _Locale_pctype_array, - int const _Char_value, - int const _Mask - ) -{ - - - - - - if (_Char_value >= -1 && _Char_value <= 255) - { - return _Locale_pctype_array[_Char_value] & _Mask; - } - - return 0; -} -# 124 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 - int __cdecl ___mb_cur_max_func(void); - - int __cdecl ___mb_cur_max_l_func(_locale_t _Locale); -# 152 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 - __forceinline int __cdecl __ascii_tolower(int const _C) - { - if (_C >= 'A' && _C <= 'Z') - { - return _C - ('A' - 'a'); - } - return _C; - } - - __forceinline int __cdecl __ascii_toupper(int const _C) - { - if (_C >= 'a' && _C <= 'z') - { - return _C - ('a' - 'A'); - } - return _C; - } - - __forceinline int __cdecl __ascii_iswalpha(int const _C) - { - return (_C >= 'A' && _C <= 'Z') || (_C >= 'a' && _C <= 'z'); - } - - __forceinline int __cdecl __ascii_iswdigit(int const _C) - { - return _C >= '0' && _C <= '9'; - } - - __forceinline int __cdecl __ascii_towlower(int const _C) - { - return __ascii_tolower(_C); - } - - __forceinline int __cdecl __ascii_towupper(int const _C) - { - return __ascii_toupper(_C); - } -# 208 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 - __inline __crt_locale_data_public* __cdecl __acrt_get_locale_data_prefix(void const volatile* const _LocalePointers) - { - _locale_t const _TypedLocalePointers = (_locale_t)_LocalePointers; - return (__crt_locale_data_public*)_TypedLocalePointers->locinfo; - } - - - - - - __inline int __cdecl _chvalidchk_l( - int const _C, - int const _Mask, - _locale_t const _Locale - ) - { - - - - if (!_Locale) - { - return (__acrt_locale_get_ctype_array_value(__pctype_func(), (_C), (_Mask))); - } - - return __acrt_locale_get_ctype_array_value(__acrt_get_locale_data_prefix(_Locale)->_locale_pctype, _C, _Mask); - - } - - - - - __inline int __cdecl _ischartype_l( - int const _C, - int const _Mask, - _locale_t const _Locale - ) - { - if (!_Locale) - { - return _chvalidchk_l(_C, _Mask, 0); - } - - if (_C >= -1 && _C <= 255) - { - return __acrt_get_locale_data_prefix(_Locale)->_locale_pctype[_C] & _Mask; - } - - if (__acrt_get_locale_data_prefix(_Locale)->_locale_mb_cur_max > 1) - { - return _isctype_l(_C, _Mask, _Locale); - } - - return 0; - } -# 307 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\ctype.h" 3 -#pragma pack(pop) -#pragma clang diagnostic pop -#pragma warning(pop) -# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 -# 101 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\kernelspecs.h" 1 3 -# 102 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 -# 194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 1 3 -# 23 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 3 -#pragma warning(push) -#pragma warning(disable: 4668) - - - - - typedef unsigned __int64 POINTER_64_INT; -# 75 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 3 -typedef signed char INT8, *PINT8; -typedef signed short INT16, *PINT16; -typedef signed int INT32, *PINT32; -typedef signed __int64 INT64, *PINT64; -typedef unsigned char UINT8, *PUINT8; -typedef unsigned short UINT16, *PUINT16; -typedef unsigned int UINT32, *PUINT32; -typedef unsigned __int64 UINT64, *PUINT64; - - - - - -typedef signed int LONG32, *PLONG32; - - - - - -typedef unsigned int ULONG32, *PULONG32; -typedef unsigned int DWORD32, *PDWORD32; -# 125 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 3 - typedef __int64 INT_PTR, *PINT_PTR; - typedef unsigned __int64 UINT_PTR, *PUINT_PTR; - - typedef __int64 LONG_PTR, *PLONG_PTR; - typedef unsigned __int64 ULONG_PTR, *PULONG_PTR; -# 155 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 3 -typedef void* __ptr64 HANDLE64; -typedef HANDLE64 *PHANDLE64; -# 169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 3 -typedef __int64 SHANDLE_PTR; -typedef unsigned __int64 HANDLE_PTR; -typedef unsigned int UHALF_PTR, *PUHALF_PTR; -typedef int HALF_PTR, *PHALF_PTR; - - -__inline -unsigned long -HandleToULong( - const void *h - ) -{ - return((unsigned long) (ULONG_PTR) h ); -} - -__inline -long -HandleToLong( - const void *h - ) -{ - return((long) (LONG_PTR) h ); -} - -__inline -void * -ULongToHandle( - const unsigned long h - ) -{ - return((void *) (UINT_PTR) h ); -} - - -__inline -void * -LongToHandle( - const long h - ) -{ - return((void *) (INT_PTR) h ); -} - - -__inline -unsigned long -PtrToUlong( - const void *p - ) -{ - return((unsigned long) (ULONG_PTR) p ); -} - -__inline -unsigned int -PtrToUint( - const void *p - ) -{ - return((unsigned int) (UINT_PTR) p ); -} - -__inline -unsigned short -PtrToUshort( - const void *p - ) -{ - return((unsigned short) (unsigned long) (ULONG_PTR) p ); -} - -__inline -long -PtrToLong( - const void *p - ) -{ - return((long) (LONG_PTR) p ); -} - -__inline -int -PtrToInt( - const void *p - ) -{ - return((int) (INT_PTR) p ); -} - -__inline -short -PtrToShort( - const void *p - ) -{ - return((short) (long) (LONG_PTR) p ); -} - -__inline -void * -IntToPtr( - const int i - ) - -{ - return( (void *)(INT_PTR)i ); -} - -__inline -void * -UIntToPtr( - const unsigned int ui - ) - -{ - return( (void *)(UINT_PTR)ui ); -} - -__inline -void * -LongToPtr( - const long l - ) - -{ - return( (void *)(LONG_PTR)l ); -} - -__inline -void * -ULongToPtr( - const unsigned long ul - ) - -{ - return( (void *)(ULONG_PTR)ul ); -} - - - - - - -__inline -void * -Ptr32ToPtr( - const void * __ptr32 p - ) -{ - return((void *) (ULONG_PTR) (unsigned long) p); -} - -__inline -void * -Handle32ToHandle( - const void * __ptr32 h - ) -{ - return((void *) (LONG_PTR) (long) h); -} - -__inline -void * __ptr32 -PtrToPtr32( - const void *p - ) -{ - return((void * __ptr32) (unsigned long) (ULONG_PTR) p); -} -# 434 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 3 -typedef ULONG_PTR SIZE_T, *PSIZE_T; -typedef LONG_PTR SSIZE_T, *PSSIZE_T; -# 483 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\basetsd.h" 3 -typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR; - - - - - -typedef __int64 LONG64, *PLONG64; - - - - - - -typedef unsigned __int64 ULONG64, *PULONG64; -typedef unsigned __int64 DWORD64, *PDWORD64; - - - - - - - -typedef ULONG_PTR KAFFINITY; -typedef KAFFINITY *PKAFFINITY; - - - - - - - - -#pragma warning(pop) -# 195 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 -# 425 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef void *PVOID; -typedef void * __ptr64 PVOID64; -# 467 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef char CHAR; -typedef short SHORT; -typedef long LONG; - -typedef int INT; -# 480 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef wchar_t WCHAR; - - - - - -typedef WCHAR *PWCHAR, *LPWCH, *PWCH; -typedef const WCHAR *LPCWCH, *PCWCH; - -typedef WCHAR *NWPSTR, *LPWSTR, *PWSTR; -typedef PWSTR *PZPWSTR; -typedef const PWSTR *PCZPWSTR; -typedef WCHAR __unaligned *LPUWSTR, *PUWSTR; -typedef const WCHAR *LPCWSTR, *PCWSTR; -typedef PCWSTR *PZPCWSTR; -typedef const PCWSTR *PCZPCWSTR; -typedef const WCHAR __unaligned *LPCUWSTR, *PCUWSTR; - -typedef WCHAR *PZZWSTR; -typedef const WCHAR *PCZZWSTR; -typedef WCHAR __unaligned *PUZZWSTR; -typedef const WCHAR __unaligned *PCUZZWSTR; - -typedef WCHAR *PNZWCH; -typedef const WCHAR *PCNZWCH; -typedef WCHAR __unaligned *PUNZWCH; -typedef const WCHAR __unaligned *PCUNZWCH; - - - -typedef const WCHAR *LPCWCHAR, *PCWCHAR; -typedef const WCHAR __unaligned *LPCUWCHAR, *PCUWCHAR; - - - - - -typedef unsigned long UCSCHAR; -# 537 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef UCSCHAR *PUCSCHAR; -typedef const UCSCHAR *PCUCSCHAR; - -typedef UCSCHAR *PUCSSTR; -typedef UCSCHAR __unaligned *PUUCSSTR; - -typedef const UCSCHAR *PCUCSSTR; -typedef const UCSCHAR __unaligned *PCUUCSSTR; - -typedef UCSCHAR __unaligned *PUUCSCHAR; -typedef const UCSCHAR __unaligned *PCUUCSCHAR; - - - - - - - -typedef CHAR *PCHAR, *LPCH, *PCH; -typedef const CHAR *LPCCH, *PCCH; - -typedef CHAR *NPSTR, *LPSTR, *PSTR; -typedef PSTR *PZPSTR; -typedef const PSTR *PCZPSTR; -typedef const CHAR *LPCSTR, *PCSTR; -typedef PCSTR *PZPCSTR; -typedef const PCSTR *PCZPCSTR; - -typedef CHAR *PZZSTR; -typedef const CHAR *PCZZSTR; - -typedef CHAR *PNZCH; -typedef const CHAR *PCNZCH; -# 603 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef char TCHAR, *PTCHAR; -typedef unsigned char TBYTE , *PTBYTE ; - - - -typedef LPCH LPTCH, PTCH; -typedef LPCCH LPCTCH, PCTCH; -typedef LPSTR PTSTR, LPTSTR, PUTSTR, LPUTSTR; -typedef LPCSTR PCTSTR, LPCTSTR, PCUTSTR, LPCUTSTR; -typedef PZZSTR PZZTSTR, PUZZTSTR; -typedef PCZZSTR PCZZTSTR, PCUZZTSTR; -typedef PZPSTR PZPTSTR; -typedef PNZCH PNZTCH, PUNZTCH; -typedef PCNZCH PCNZTCH, PCUNZTCH; - - - - - - -typedef SHORT *PSHORT; -typedef LONG *PLONG; -# 633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _PROCESSOR_NUMBER { - WORD Group; - BYTE Number; - BYTE Reserved; -} PROCESSOR_NUMBER, *PPROCESSOR_NUMBER; - - - - - - -typedef struct _GROUP_AFFINITY { - KAFFINITY Mask; - WORD Group; - WORD Reserved[3]; -} GROUP_AFFINITY, *PGROUP_AFFINITY; -# 669 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef void *HANDLE; -# 679 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef HANDLE *PHANDLE; - - - - - - - -typedef BYTE FCHAR; -typedef WORD FSHORT; -typedef DWORD FLONG; -# 700 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef long HRESULT; -# 782 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef char CCHAR; -typedef DWORD LCID; -typedef PDWORD PLCID; -typedef WORD LANGID; -# 794 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum { - UNSPECIFIED_COMPARTMENT_ID = 0, - DEFAULT_COMPARTMENT_ID -} COMPARTMENT_ID, *PCOMPARTMENT_ID; -# 825 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _FLOAT128 { - __int64 LowPart; - __int64 HighPart; -} FLOAT128; - -typedef FLOAT128 *PFLOAT128; -# 840 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef __int64 LONGLONG; -typedef unsigned __int64 ULONGLONG; -# 862 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef LONGLONG *PLONGLONG; -typedef ULONGLONG *PULONGLONG; - - - -typedef LONGLONG USN; - - - - - - -typedef union _LARGE_INTEGER { - struct { - DWORD LowPart; - LONG HighPart; - } ; - struct { - DWORD LowPart; - LONG HighPart; - } u; - LONGLONG QuadPart; -} LARGE_INTEGER; - - -typedef LARGE_INTEGER *PLARGE_INTEGER; - - - - - - -typedef union _ULARGE_INTEGER { - struct { - DWORD LowPart; - DWORD HighPart; - } ; - struct { - DWORD LowPart; - DWORD HighPart; - } u; - ULONGLONG QuadPart; -} ULARGE_INTEGER; - - -typedef ULARGE_INTEGER *PULARGE_INTEGER; - - - - - -typedef LONG_PTR RTL_REFERENCE_COUNT, *PRTL_REFERENCE_COUNT; -typedef LONG RTL_REFERENCE_COUNT32, *PRTL_REFERENCE_COUNT32; -# 924 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _LUID { - DWORD LowPart; - LONG HighPart; -} LUID, *PLUID; - - -typedef ULONGLONG DWORDLONG; -typedef DWORDLONG *PDWORDLONG; -# 1078 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -unsigned char -__cdecl -_rotl8 ( - unsigned char Value, - unsigned char Shift - ); - -unsigned short -__cdecl -_rotl16 ( - unsigned short Value, - unsigned char Shift - ); - -unsigned char -__cdecl -_rotr8 ( - unsigned char Value, - unsigned char Shift - ); - -unsigned short -__cdecl -_rotr16 ( - unsigned short Value, - unsigned char Shift - ); - -#pragma intrinsic(_rotl8) -#pragma intrinsic(_rotl16) -#pragma intrinsic(_rotr8) -#pragma intrinsic(_rotr16) -# 1120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -unsigned int -__cdecl -_rotl ( - unsigned int Value, - int Shift - ); - -unsigned __int64 -__cdecl -_rotl64 ( - unsigned __int64 Value, - int Shift - ); - -unsigned int -__cdecl -_rotr ( - unsigned int Value, - int Shift - ); - -unsigned __int64 -__cdecl -_rotr64 ( - unsigned __int64 Value, - int Shift - ); - -#pragma intrinsic(_rotl) -#pragma intrinsic(_rotl64) -#pragma intrinsic(_rotr) -#pragma intrinsic(_rotr64) -# 1163 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef BYTE BOOLEAN; -typedef BOOLEAN *PBOOLEAN; - - - - - -typedef struct _LIST_ENTRY { - struct _LIST_ENTRY *Flink; - struct _LIST_ENTRY *Blink; -} LIST_ENTRY, *PLIST_ENTRY, * PRLIST_ENTRY; - - - - - - -typedef struct _SINGLE_LIST_ENTRY { - struct _SINGLE_LIST_ENTRY *Next; -} SINGLE_LIST_ENTRY, *PSINGLE_LIST_ENTRY; -# 1191 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct LIST_ENTRY32 { - DWORD Flink; - DWORD Blink; -} LIST_ENTRY32; -typedef LIST_ENTRY32 *PLIST_ENTRY32; - -typedef struct LIST_ENTRY64 { - ULONGLONG Flink; - ULONGLONG Blink; -} LIST_ENTRY64; -typedef LIST_ENTRY64 *PLIST_ENTRY64; - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\guiddef.h" 1 3 -# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\guiddef.h" 3 -typedef struct _GUID { - unsigned long Data1; - unsigned short Data2; - unsigned short Data3; - unsigned char Data4[ 8 ]; -} GUID; -# 75 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\guiddef.h" 3 -typedef GUID *LPGUID; - - - - -typedef const GUID *LPCGUID; - - - - - -typedef GUID IID; -typedef IID *LPIID; - - -typedef GUID CLSID; -typedef CLSID *LPCLSID; - - -typedef GUID FMTID; -typedef FMTID *LPFMTID; -# 146 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\guiddef.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 1 3 -# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 1 3 -# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 1 3 -# 11 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\errno.h" 1 3 -# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\errno.h" 3 -#pragma warning(push) -#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) -#pragma clang diagnostic push -# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\errno.h" 3 -#pragma clang diagnostic ignored "-Wdeprecated-declarations" -# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\errno.h" 3 -#pragma clang diagnostic ignored "-Wignored-attributes" -# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\errno.h" 3 -#pragma clang diagnostic ignored "-Wignored-pragma-optimize" -# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\errno.h" 3 -#pragma clang diagnostic ignored "-Wunknown-pragmas" - -#pragma pack(push, 8) - - - - - int* __cdecl _errno(void); - - - errno_t __cdecl _set_errno( int _Value); - errno_t __cdecl _get_errno( int* _Value); - - unsigned long* __cdecl __doserrno(void); - - - errno_t __cdecl _set_doserrno( unsigned long _Value); - errno_t __cdecl _get_doserrno( unsigned long * _Value); -# 134 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\errno.h" 3 -#pragma pack(pop) -#pragma clang diagnostic pop -#pragma warning(pop) -# 12 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 2 3 -# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime_string.h" 1 3 -# 12 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime_string.h" 3 -#pragma warning(push) -#pragma warning(disable: 4514 4820) - - - -#pragma pack(push, 8) - - - - - void * __cdecl memchr( - void const* _Buf, - int _Val, - size_t _MaxCount - ); - - -int __cdecl memcmp( - void const* _Buf1, - void const* _Buf2, - size_t _Size - ); -# 43 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime_string.h" 3 -void* __cdecl memcpy( - void* _Dst, - void const* _Src, - size_t _Size - ); - - - void* __cdecl memmove( - void* _Dst, - void const* _Src, - size_t _Size - ); -# 63 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\vcruntime_string.h" 3 -void* __cdecl memset( - void* _Dst, - int _Val, - size_t _Size - ); - - - char * __cdecl strchr( - char const* _Str, - int _Val - ); - - - char * __cdecl strrchr( - char const* _Str, - int _Ch - ); - - - char * __cdecl strstr( - char const* _Str, - char const* _SubStr - ); - - - - wchar_t * __cdecl wcschr( - wchar_t const* _Str, - wchar_t _Ch - ); - - - wchar_t * __cdecl wcsrchr( - wchar_t const* _Str, - wchar_t _Ch - ); - - - - wchar_t * __cdecl wcsstr( - wchar_t const* _Str, - wchar_t const* _SubStr - ); - - - -#pragma pack(pop) - - - -#pragma warning(pop) -# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 2 3 - -#pragma warning(push) -#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) -#pragma clang diagnostic push -# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 3 -#pragma clang diagnostic ignored "-Wdeprecated-declarations" -# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 3 -#pragma clang diagnostic ignored "-Wignored-attributes" -# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 3 -#pragma clang diagnostic ignored "-Wignored-pragma-optimize" -# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 3 -#pragma clang diagnostic ignored "-Wunknown-pragmas" - -#pragma pack(push, 8) -# 39 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memcpy_s.h" 3 - static __inline errno_t __cdecl memcpy_s( - void* const _Destination, - rsize_t const _DestinationSize, - void const* const _Source, - rsize_t const _SourceSize - ) - { - if (_SourceSize == 0) - { - return 0; - } - - { int _Expr_val=!!(_Destination != ((void *)0)); if (!(_Expr_val)) { (*_errno()) = 22; _invalid_parameter_noinfo(); return 22; } }; - if (_Source == ((void *)0) || _DestinationSize < _SourceSize) - { - memset(_Destination, 0, _DestinationSize); - - { int _Expr_val=!!(_Source != ((void *)0)); if (!(_Expr_val)) { (*_errno()) = 22; _invalid_parameter_noinfo(); return 22; } }; - { int _Expr_val=!!(_DestinationSize >= _SourceSize); if (!(_Expr_val)) { (*_errno()) = 34; _invalid_parameter_noinfo(); return 34; } }; - - - return 22; - } - memcpy(_Destination, _Source, _SourceSize); - return 0; - } - - - static __inline errno_t __cdecl memmove_s( - void* const _Destination, - rsize_t const _DestinationSize, - void const* const _Source, - rsize_t const _SourceSize - ) - { - if (_SourceSize == 0) - { - return 0; - } - - { int _Expr_val=!!(_Destination != ((void *)0)); if (!(_Expr_val)) { (*_errno()) = 22; _invalid_parameter_noinfo(); return 22; } }; - { int _Expr_val=!!(_Source != ((void *)0)); if (!(_Expr_val)) { (*_errno()) = 22; _invalid_parameter_noinfo(); return 22; } }; - { int _Expr_val=!!(_DestinationSize >= _SourceSize); if (!(_Expr_val)) { (*_errno()) = 34; _invalid_parameter_noinfo(); return 34; } }; - - memmove(_Destination, _Source, _SourceSize); - return 0; - } - - - - - -#pragma clang diagnostic pop -#pragma warning(pop) -#pragma pack(pop) -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 2 3 - - -#pragma warning(push) -#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) -#pragma clang diagnostic push -# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 3 -#pragma clang diagnostic ignored "-Wdeprecated-declarations" -# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 3 -#pragma clang diagnostic ignored "-Wignored-attributes" -# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 3 -#pragma clang diagnostic ignored "-Wignored-pragma-optimize" -# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 3 -#pragma clang diagnostic ignored "-Wunknown-pragmas" - - - -#pragma pack(push, 8) - - - - - int __cdecl _memicmp( - void const* _Buf1, - void const* _Buf2, - size_t _Size - ); - - - int __cdecl _memicmp_l( - void const* _Buf1, - void const* _Buf2, - size_t _Size, - _locale_t _Locale - ); -# 82 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 3 - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_memccpy" ". See online help for details.")) - void* __cdecl memccpy( - void* _Dst, - void const* _Src, - int _Val, - size_t _Size - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_memicmp" ". See online help for details.")) - int __cdecl memicmp( - void const* _Buf1, - void const* _Buf2, - size_t _Size - ); -# 118 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_memory.h" 3 -#pragma pack(pop) - - -#pragma clang diagnostic pop -#pragma warning(pop) -# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 1 3 -# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 -#pragma warning(push) -#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) -#pragma clang diagnostic push -# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 -#pragma clang diagnostic ignored "-Wdeprecated-declarations" -# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 -#pragma clang diagnostic ignored "-Wignored-attributes" -# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 -#pragma clang diagnostic ignored "-Wignored-pragma-optimize" -# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 -#pragma clang diagnostic ignored "-Wunknown-pragmas" - - - -#pragma pack(push, 8) -# 32 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 - errno_t __cdecl wcscat_s( - wchar_t* _Destination, - rsize_t _SizeInWords, - wchar_t const* _Source - ); - - - errno_t __cdecl wcscpy_s( - wchar_t* _Destination, - rsize_t _SizeInWords, - wchar_t const* _Source - ); - - - errno_t __cdecl wcsncat_s( - wchar_t* _Destination, - rsize_t _SizeInWords, - wchar_t const* _Source, - rsize_t _MaxCount - ); - - - errno_t __cdecl wcsncpy_s( - wchar_t* _Destination, - rsize_t _SizeInWords, - wchar_t const* _Source, - rsize_t _MaxCount - ); - - - wchar_t* __cdecl wcstok_s( - wchar_t* _String, - wchar_t const* _Delimiter, - wchar_t** _Context - ); -# 83 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 - __declspec(allocator) wchar_t* __cdecl _wcsdup( - wchar_t const* _String - ); -# 100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 - __declspec(deprecated("This function or variable may be unsafe. Consider using " "wcscat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl wcscat( wchar_t *_Destination, wchar_t const* _Source); - - - - - - - - int __cdecl wcscmp( - wchar_t const* _String1, - wchar_t const* _String2 - ); - - - - - - - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcscpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl wcscpy( wchar_t *_Destination, wchar_t const* _Source); - - - - - - - size_t __cdecl wcscspn( - wchar_t const* _String, - wchar_t const* _Control - ); - - - size_t __cdecl wcslen( - wchar_t const* _String - ); -# 145 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 - size_t __cdecl wcsnlen( - wchar_t const* _Source, - size_t _MaxCount - ); -# 161 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 - static __inline size_t __cdecl wcsnlen_s( - wchar_t const* _Source, - size_t _MaxCount - ) - { - return (_Source == 0) ? 0 : wcsnlen(_Source, _MaxCount); - } -# 178 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcsncat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl wcsncat( wchar_t *_Destination, wchar_t const* _Source, size_t _Count); -# 187 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 - int __cdecl wcsncmp( - wchar_t const* _String1, - wchar_t const* _String2, - size_t _MaxCount - ); -# 200 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcsncpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl wcsncpy( wchar_t *_Destination, wchar_t const* _Source, size_t _Count); -# 209 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 - wchar_t * __cdecl wcspbrk( - wchar_t const* _String, - wchar_t const* _Control - ); - - - size_t __cdecl wcsspn( - wchar_t const* _String, - wchar_t const* _Control - ); - - __declspec(deprecated("This function or variable may be unsafe. Consider using " "wcstok_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - wchar_t* __cdecl wcstok( - wchar_t* _String, - wchar_t const* _Delimiter, - wchar_t** _Context - ); -# 238 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 - __declspec(deprecated("This function or variable may be unsafe. Consider using " "wcstok_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - static __inline wchar_t* __cdecl _wcstok( - wchar_t* const _String, - wchar_t const* const _Delimiter - ) - { - return wcstok(_String, _Delimiter, 0); - } -# 267 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 - __declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcserror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - wchar_t* __cdecl _wcserror( - int _ErrorNumber - ); - - - errno_t __cdecl _wcserror_s( - wchar_t* _Buffer, - size_t _SizeInWords, - int _ErrorNumber - ); -# 287 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 - __declspec(deprecated("This function or variable may be unsafe. Consider using " "__wcserror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - wchar_t* __cdecl __wcserror( - wchar_t const* _String - ); - - errno_t __cdecl __wcserror_s( - wchar_t* _Buffer, - size_t _SizeInWords, - wchar_t const* _ErrorMessage - ); - - - - - - - - int __cdecl _wcsicmp( - wchar_t const* _String1, - wchar_t const* _String2 - ); - - int __cdecl _wcsicmp_l( - wchar_t const* _String1, - wchar_t const* _String2, - _locale_t _Locale - ); - - int __cdecl _wcsnicmp( - wchar_t const* _String1, - wchar_t const* _String2, - size_t _MaxCount - ); - - int __cdecl _wcsnicmp_l( - wchar_t const* _String1, - wchar_t const* _String2, - size_t _MaxCount, - _locale_t _Locale - ); - - errno_t __cdecl _wcsnset_s( - wchar_t* _Destination, - size_t _SizeInWords, - wchar_t _Value, - size_t _MaxCount - ); -# 342 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsnset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _wcsnset( wchar_t *_String, wchar_t _Value, size_t _MaxCount); - - - - - - - - wchar_t* __cdecl _wcsrev( - wchar_t* _String - ); - - errno_t __cdecl _wcsset_s( - wchar_t* _Destination, - size_t _SizeInWords, - wchar_t _Value - ); - - - - - - - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _wcsset( wchar_t *_String, wchar_t _Value); - - - - - - - errno_t __cdecl _wcslwr_s( - wchar_t* _String, - size_t _SizeInWords - ); - - - - - - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcslwr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _wcslwr( wchar_t *_String); - - - - - - errno_t __cdecl _wcslwr_s_l( - wchar_t* _String, - size_t _SizeInWords, - _locale_t _Locale - ); - - - - - - - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcslwr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _wcslwr_l( wchar_t *_String, _locale_t _Locale); - - - - - - - - errno_t __cdecl _wcsupr_s( - wchar_t* _String, - size_t _Size - ); - - - - - - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsupr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _wcsupr( wchar_t *_String); - - - - - - errno_t __cdecl _wcsupr_s_l( - wchar_t* _String, - size_t _Size, - _locale_t _Locale - ); - - - - - - - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsupr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _wcsupr_l( wchar_t *_String, _locale_t _Locale); -# 446 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 - size_t __cdecl wcsxfrm( - wchar_t* _Destination, - wchar_t const* _Source, - size_t _MaxCount - ); - - - - size_t __cdecl _wcsxfrm_l( - wchar_t* _Destination, - wchar_t const* _Source, - size_t _MaxCount, - _locale_t _Locale - ); - - - int __cdecl wcscoll( - wchar_t const* _String1, - wchar_t const* _String2 - ); - - - int __cdecl _wcscoll_l( - wchar_t const* _String1, - wchar_t const* _String2, - _locale_t _Locale - ); - - - int __cdecl _wcsicoll( - wchar_t const* _String1, - wchar_t const* _String2 - ); - - - int __cdecl _wcsicoll_l( - wchar_t const* _String1, - wchar_t const* _String2, - _locale_t _Locale - ); - - - int __cdecl _wcsncoll( - wchar_t const* _String1, - wchar_t const* _String2, - size_t _MaxCount - ); - - - int __cdecl _wcsncoll_l( - wchar_t const* _String1, - wchar_t const* _String2, - size_t _MaxCount, - _locale_t _Locale - ); - - - int __cdecl _wcsnicoll( - wchar_t const* _String1, - wchar_t const* _String2, - size_t _MaxCount - ); - - - int __cdecl _wcsnicoll_l( - wchar_t const* _String1, - wchar_t const* _String2, - size_t _MaxCount, - _locale_t _Locale - ); -# 569 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsdup" ". See online help for details.")) - wchar_t* __cdecl wcsdup( - wchar_t const* _String - ); -# 581 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstring.h" 3 - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsicmp" ". See online help for details.")) - int __cdecl wcsicmp( - wchar_t const* _String1, - wchar_t const* _String2 - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsnicmp" ". See online help for details.")) - int __cdecl wcsnicmp( - wchar_t const* _String1, - wchar_t const* _String2, - size_t _MaxCount - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsnset" ". See online help for details.")) - - wchar_t* __cdecl wcsnset( - wchar_t* _String, - wchar_t _Value, - size_t _MaxCount - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsrev" ". See online help for details.")) - - wchar_t* __cdecl wcsrev( - wchar_t* _String - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsset" ". See online help for details.")) - - wchar_t* __cdecl wcsset( - wchar_t* _String, - wchar_t _Value - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcslwr" ". See online help for details.")) - - wchar_t* __cdecl wcslwr( - wchar_t* _String - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsupr" ". See online help for details.")) - - wchar_t* __cdecl wcsupr( - wchar_t* _String - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsicoll" ". See online help for details.")) - int __cdecl wcsicoll( - wchar_t const* _String1, - wchar_t const* _String2 - ); - - - - - -#pragma pack(pop) - - -#pragma clang diagnostic pop -#pragma warning(pop) -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 2 3 - - - - -#pragma warning(push) -#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) -#pragma clang diagnostic push -# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 -#pragma clang diagnostic ignored "-Wdeprecated-declarations" -# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 -#pragma clang diagnostic ignored "-Wignored-attributes" -# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 -#pragma clang diagnostic ignored "-Wignored-pragma-optimize" -# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 -#pragma clang diagnostic ignored "-Wunknown-pragmas" - -#pragma pack(push, 8) - - - - - - - - - errno_t __cdecl strcpy_s( - char* _Destination, - rsize_t _SizeInBytes, - char const* _Source - ); - - - errno_t __cdecl strcat_s( - char* _Destination, - rsize_t _SizeInBytes, - char const* _Source - ); - - - errno_t __cdecl strerror_s( - char* _Buffer, - size_t _SizeInBytes, - int _ErrorNumber); - - - errno_t __cdecl strncat_s( - char* _Destination, - rsize_t _SizeInBytes, - char const* _Source, - rsize_t _MaxCount - ); - - - errno_t __cdecl strncpy_s( - char* _Destination, - rsize_t _SizeInBytes, - char const* _Source, - rsize_t _MaxCount - ); - - - char* __cdecl strtok_s( - char* _String, - char const* _Delimiter, - char** _Context - ); - - - - void* __cdecl _memccpy( - void* _Dst, - void const* _Src, - int _Val, - size_t _MaxCount - ); -# 91 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 - __declspec(deprecated("This function or variable may be unsafe. Consider using " "strcat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl strcat( char *_Destination, char const* _Source); -# 100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 -int __cdecl strcmp( - char const* _Str1, - char const* _Str2 - ); - - - int __cdecl _strcmpi( - char const* _String1, - char const* _String2 - ); - - - int __cdecl strcoll( - char const* _String1, - char const* _String2 - ); - - - int __cdecl _strcoll_l( - char const* _String1, - char const* _String2, - _locale_t _Locale - ); - - - - - - - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "strcpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl strcpy( char *_Destination, char const* _Source); - - - - - - - size_t __cdecl strcspn( - char const* _Str, - char const* _Control - ); - - - - - - - - __declspec(allocator) char* __cdecl _strdup( - char const* _Source - ); - - - - - - - - __declspec(deprecated("This function or variable may be unsafe. Consider using " "_strerror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl _strerror( - char const* _ErrorMessage - ); - - - errno_t __cdecl _strerror_s( - char* _Buffer, - size_t _SizeInBytes, - char const* _ErrorMessage - ); -# 177 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 - __declspec(deprecated("This function or variable may be unsafe. Consider using " "strerror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl strerror( - int _ErrorMessage - ); -# 189 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 - int __cdecl _stricmp( - char const* _String1, - char const* _String2 - ); - - - int __cdecl _stricoll( - char const* _String1, - char const* _String2 - ); - - - int __cdecl _stricoll_l( - char const* _String1, - char const* _String2, - _locale_t _Locale - ); - - - int __cdecl _stricmp_l( - char const* _String1, - char const* _String2, - _locale_t _Locale - ); - - -size_t __cdecl strlen( - char const* _Str - ); - - - errno_t __cdecl _strlwr_s( - char* _String, - size_t _Size - ); - - - - - - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strlwr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _strlwr( char *_String); - - - - - - errno_t __cdecl _strlwr_s_l( - char* _String, - size_t _Size, - _locale_t _Locale - ); - - - - - - - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strlwr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _strlwr_l( char *_String, _locale_t _Locale); -# 262 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "strncat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl strncat( char *_Destination, char const* _Source, size_t _Count); -# 271 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 - int __cdecl strncmp( - char const* _Str1, - char const* _Str2, - size_t _MaxCount - ); - - - int __cdecl _strnicmp( - char const* _String1, - char const* _String2, - size_t _MaxCount - ); - - - int __cdecl _strnicmp_l( - char const* _String1, - char const* _String2, - size_t _MaxCount, - _locale_t _Locale - ); - - - int __cdecl _strnicoll( - char const* _String1, - char const* _String2, - size_t _MaxCount - ); - - - int __cdecl _strnicoll_l( - char const* _String1, - char const* _String2, - size_t _MaxCount, - _locale_t _Locale - ); - - - int __cdecl _strncoll( - char const* _String1, - char const* _String2, - size_t _MaxCount - ); - - - int __cdecl _strncoll_l( - char const* _String1, - char const* _String2, - size_t _MaxCount, - _locale_t _Locale - ); - - size_t __cdecl __strncnt( - char const* _String, - size_t _Count - ); -# 334 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "strncpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl strncpy( char *_Destination, char const* _Source, size_t _Count); -# 351 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 - size_t __cdecl strnlen( - char const* _String, - size_t _MaxCount - ); -# 367 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 - static __inline size_t __cdecl strnlen_s( - char const* _String, - size_t _MaxCount - ) - { - return _String == 0 ? 0 : strnlen(_String, _MaxCount); - } - - - - - errno_t __cdecl _strnset_s( - char* _String, - size_t _SizeInBytes, - int _Value, - size_t _MaxCount - ); -# 392 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strnset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _strnset( char *_Destination, int _Value, size_t _Count); -# 401 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 - char * __cdecl strpbrk( - char const* _Str, - char const* _Control - ); - - char* __cdecl _strrev( - char* _Str - ); - - - errno_t __cdecl _strset_s( - char* _Destination, - size_t _DestinationSize, - int _Value - ); - - - - - - - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _strset( char *_Destination, int _Value); - - - - - - - size_t __cdecl strspn( - char const* _Str, - char const* _Control - ); - - __declspec(deprecated("This function or variable may be unsafe. Consider using " "strtok_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl strtok( - char* _String, - char const* _Delimiter - ); - - - errno_t __cdecl _strupr_s( - char* _String, - size_t _Size - ); - - - - - - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strupr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _strupr( char *_String); - - - - - - errno_t __cdecl _strupr_s_l( - char* _String, - size_t _Size, - _locale_t _Locale - ); - - - - - - - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strupr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _strupr_l( char *_String, _locale_t _Locale); -# 479 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 - size_t __cdecl strxfrm( - char* _Destination, - char const* _Source, - size_t _MaxCount - ); - - - - size_t __cdecl _strxfrm_l( - char* _Destination, - char const* _Source, - size_t _MaxCount, - _locale_t _Locale - ); -# 531 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\string.h" 3 - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strdup" ". See online help for details.")) - char* __cdecl strdup( - char const* _String - ); - - - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strcmpi" ". See online help for details.")) - int __cdecl strcmpi( - char const* _String1, - char const* _String2 - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_stricmp" ". See online help for details.")) - int __cdecl stricmp( - char const* _String1, - char const* _String2 - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strlwr" ". See online help for details.")) - char* __cdecl strlwr( - char* _String - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strnicmp" ". See online help for details.")) - int __cdecl strnicmp( - char const* _String1, - char const* _String2, - size_t _MaxCount - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strnset" ". See online help for details.")) - char* __cdecl strnset( - char* _String, - int _Value, - size_t _MaxCount - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strrev" ". See online help for details.")) - char* __cdecl strrev( - char* _String - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strset" ". See online help for details.")) - char* __cdecl strset( - char* _String, - int _Value); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strupr" ". See online help for details.")) - char* __cdecl strupr( - char* _String - ); - - - - - -#pragma pack(pop) -#pragma clang diagnostic pop -#pragma warning(pop) -# 147 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\guiddef.h" 2 3 -# 1205 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - - - - -typedef struct _OBJECTID { - GUID Lineage; - DWORD Uniquifier; -} OBJECTID; -# 1438 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef - - -EXCEPTION_DISPOSITION -__stdcall -EXCEPTION_ROUTINE ( - struct _EXCEPTION_RECORD *ExceptionRecord, - PVOID EstablisherFrame, - struct _CONTEXT *ContextRecord, - PVOID DispatcherContext - ); - -typedef EXCEPTION_ROUTINE *PEXCEPTION_ROUTINE; -# 2538 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma warning(push) -#pragma warning(disable: 4116) -typedef char __C_ASSERT__[(((LONG)__builtin_offsetof(struct { char x; LARGE_INTEGER test; }, test)) == 8)?1:-1]; -#pragma warning(pop) -# 2623 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef ULONG_PTR KSPIN_LOCK; -typedef KSPIN_LOCK *PKSPIN_LOCK; - - - - - - - -typedef struct __declspec(align(16)) _M128A { - ULONGLONG Low; - LONGLONG High; -} M128A, *PM128A; - - - - - -typedef struct __declspec(align(16)) _XSAVE_FORMAT { - WORD ControlWord; - WORD StatusWord; - BYTE TagWord; - BYTE Reserved1; - WORD ErrorOpcode; - DWORD ErrorOffset; - WORD ErrorSelector; - WORD Reserved2; - DWORD DataOffset; - WORD DataSelector; - WORD Reserved3; - DWORD MxCsr; - DWORD MxCsr_Mask; - M128A FloatRegisters[8]; - - - - M128A XmmRegisters[16]; - BYTE Reserved4[96]; -# 2669 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -} XSAVE_FORMAT, *PXSAVE_FORMAT; - - - - - - - -typedef struct _XSAVE_CET_U_FORMAT { - DWORD64 Ia32CetUMsr; - DWORD64 Ia32Pl3SspMsr; -} XSAVE_CET_U_FORMAT, *PXSAVE_CET_U_FORMAT; - -typedef struct __declspec(align(8)) _XSAVE_AREA_HEADER { - DWORD64 Mask; - DWORD64 CompactionMask; - DWORD64 Reserved2[6]; -} XSAVE_AREA_HEADER, *PXSAVE_AREA_HEADER; - -typedef struct __declspec(align(16)) _XSAVE_AREA { - XSAVE_FORMAT LegacyState; - XSAVE_AREA_HEADER Header; -} XSAVE_AREA, *PXSAVE_AREA; - -typedef struct _XSTATE_CONTEXT { - DWORD64 Mask; - DWORD Length; - DWORD Reserved1; - PXSAVE_AREA Area; - - - - - - PVOID Buffer; - - - - - -} XSTATE_CONTEXT, *PXSTATE_CONTEXT; - -typedef struct _KERNEL_CET_CONTEXT { - DWORD64 Ssp; - DWORD64 Rip; - WORD SegCs; - union { - WORD AllFlags; - struct { - WORD UseWrss : 1; - WORD PopShadowStackOne : 1; - WORD Unused : 14; - } ; - } ; - WORD Fill[2]; -} KERNEL_CET_CONTEXT, *PKERNEL_CET_CONTEXT; - - - -typedef char __C_ASSERT__[(sizeof(KERNEL_CET_CONTEXT) == (3 * sizeof(DWORD64)))?1:-1]; -# 2738 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _SCOPE_TABLE_AMD64 { - DWORD Count; - struct { - DWORD BeginAddress; - DWORD EndAddress; - DWORD HandlerAddress; - DWORD JumpTarget; - } ScopeRecord[1]; -} SCOPE_TABLE_AMD64, *PSCOPE_TABLE_AMD64; -# 2798 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -BOOLEAN -_bittest ( - LONG const *Base, - LONG Offset - ); - -BOOLEAN -_bittestandcomplement ( - LONG *Base, - LONG Offset - ); - -BOOLEAN -_bittestandset ( - LONG *Base, - LONG Offset - ); - -BOOLEAN -_bittestandreset ( - LONG *Base, - LONG Offset - ); - -BOOLEAN -_interlockedbittestandset ( - LONG volatile *Base, - LONG Offset - ); - -BOOLEAN -_interlockedbittestandreset ( - LONG volatile *Base, - LONG Offset - ); - -BOOLEAN -_bittest64 ( - LONG64 const *Base, - LONG64 Offset - ); - -BOOLEAN -_bittestandcomplement64 ( - LONG64 *Base, - LONG64 Offset - ); - -BOOLEAN -_bittestandset64 ( - LONG64 *Base, - LONG64 Offset - ); - -BOOLEAN -_bittestandreset64 ( - LONG64 *Base, - LONG64 Offset - ); - -BOOLEAN -_interlockedbittestandset64 ( - LONG64 volatile *Base, - LONG64 Offset - ); - -BOOLEAN -_interlockedbittestandreset64 ( - LONG64 volatile *Base, - LONG64 Offset - ); - -#pragma intrinsic(_bittest) -#pragma intrinsic(_bittestandcomplement) -#pragma intrinsic(_bittestandset) -#pragma intrinsic(_bittestandreset) - - -#pragma intrinsic(_interlockedbittestandset) -#pragma intrinsic(_interlockedbittestandreset) - - -#pragma intrinsic(_bittest64) -#pragma intrinsic(_bittestandcomplement64) -#pragma intrinsic(_bittestandset64) -#pragma intrinsic(_bittestandreset64) - - -#pragma intrinsic(_interlockedbittestandset64) -#pragma intrinsic(_interlockedbittestandreset64) -# 2900 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -BOOLEAN -_BitScanForward ( - DWORD *Index, - DWORD Mask - ); - - -BOOLEAN -_BitScanReverse ( - DWORD *Index, - DWORD Mask - ); - - -BOOLEAN -_BitScanForward64 ( - DWORD *Index, - DWORD64 Mask - ); - - -BOOLEAN -_BitScanReverse64 ( - DWORD *Index, - DWORD64 Mask - ); - -#pragma intrinsic(_BitScanForward) -#pragma intrinsic(_BitScanReverse) -#pragma intrinsic(_BitScanForward64) -#pragma intrinsic(_BitScanReverse64) -# 3065 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -SHORT -_InterlockedIncrement16 ( - SHORT volatile *Addend - ); - -SHORT -_InterlockedDecrement16 ( - SHORT volatile *Addend - ); - -SHORT -_InterlockedCompareExchange16 ( - SHORT volatile *Destination, - SHORT ExChange, - SHORT Comperand - ); - -LONG -_InterlockedAnd ( - LONG volatile *Destination, - LONG Value - ); - -LONG -_InterlockedOr ( - LONG volatile *Destination, - LONG Value - ); - -LONG -_InterlockedXor ( - LONG volatile *Destination, - LONG Value - ); - -LONG64 -_InterlockedAnd64 ( - LONG64 volatile *Destination, - LONG64 Value - ); - -LONG64 -_InterlockedOr64 ( - LONG64 volatile *Destination, - LONG64 Value - ); - -LONG64 -_InterlockedXor64 ( - LONG64 volatile *Destination, - LONG64 Value - ); - -LONG -_InterlockedIncrement ( - LONG volatile *Addend - ); - -LONG -_InterlockedDecrement ( - LONG volatile *Addend - ); - -LONG -_InterlockedExchange ( - LONG volatile *Target, - LONG Value - ); - -LONG -_InterlockedExchangeAdd ( - LONG volatile *Addend, - LONG Value - ); - - - -__forceinline -LONG -_InlineInterlockedAdd ( - LONG volatile *Addend, - LONG Value - ) - -{ - return _InterlockedExchangeAdd(Addend, Value) + Value; -} - - - -LONG -_InterlockedCompareExchange ( - LONG volatile *Destination, - LONG ExChange, - LONG Comperand - ); - -LONG64 -_InterlockedIncrement64 ( - LONG64 volatile *Addend - ); - -LONG64 -_InterlockedDecrement64 ( - LONG64 volatile *Addend - ); - -LONG64 -_InterlockedExchange64 ( - LONG64 volatile *Target, - LONG64 Value - ); - -LONG64 -_InterlockedExchangeAdd64 ( - LONG64 volatile *Addend, - LONG64 Value - ); - - - -__forceinline -LONG64 -_InlineInterlockedAdd64 ( - LONG64 volatile *Addend, - LONG64 Value - ) - -{ - return _InterlockedExchangeAdd64(Addend, Value) + Value; -} - - - -LONG64 -_InterlockedCompareExchange64 ( - LONG64 volatile *Destination, - LONG64 ExChange, - LONG64 Comperand - ); - -BOOLEAN -_InterlockedCompareExchange128 ( - LONG64 volatile *Destination, - LONG64 ExchangeHigh, - LONG64 ExchangeLow, - LONG64 *ComparandResult - ); - - PVOID -_InterlockedCompareExchangePointer ( - - - - PVOID volatile *Destination, - PVOID Exchange, - PVOID Comperand - ); - - PVOID -_InterlockedExchangePointer( - - - - PVOID volatile *Target, - PVOID Value - ); - - -#pragma intrinsic(_InterlockedIncrement16) -#pragma intrinsic(_InterlockedDecrement16) -#pragma intrinsic(_InterlockedCompareExchange16) -#pragma intrinsic(_InterlockedAnd) -#pragma intrinsic(_InterlockedOr) -#pragma intrinsic(_InterlockedXor) -#pragma intrinsic(_InterlockedIncrement) -#pragma intrinsic(_InterlockedDecrement) -#pragma intrinsic(_InterlockedExchange) -#pragma intrinsic(_InterlockedExchangeAdd) -#pragma intrinsic(_InterlockedCompareExchange) -#pragma intrinsic(_InterlockedAnd64) -#pragma intrinsic(_InterlockedOr64) -#pragma intrinsic(_InterlockedXor64) -#pragma intrinsic(_InterlockedIncrement64) -#pragma intrinsic(_InterlockedDecrement64) -#pragma intrinsic(_InterlockedExchange64) -#pragma intrinsic(_InterlockedExchangeAdd64) -#pragma intrinsic(_InterlockedCompareExchange64) - - - -#pragma intrinsic(_InterlockedCompareExchange128) - - - -#pragma intrinsic(_InterlockedExchangePointer) -#pragma intrinsic(_InterlockedCompareExchangePointer) -# 3272 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -CHAR -_InterlockedExchange8 ( - CHAR volatile *Target, - CHAR Value - ); - -SHORT -_InterlockedExchange16 ( - SHORT volatile *Destination, - SHORT ExChange - ); - - -#pragma intrinsic(_InterlockedExchange8) -#pragma intrinsic(_InterlockedExchange16) -# 3310 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -char -_InterlockedExchangeAdd8 ( - char volatile * _Addend, - char _Value - ); - -char -_InterlockedAnd8 ( - char volatile *Destination, - char Value - ); - -char -_InterlockedOr8 ( - char volatile *Destination, - char Value - ); - -char -_InterlockedXor8 ( - char volatile *Destination, - char Value - ); - -SHORT -_InterlockedAnd16( - SHORT volatile *Destination, - SHORT Value - ); - -SHORT -_InterlockedOr16( - SHORT volatile *Destination, - SHORT Value - ); - -SHORT -_InterlockedXor16( - SHORT volatile *Destination, - SHORT Value - ); - - -#pragma intrinsic (_InterlockedExchangeAdd8) -#pragma intrinsic (_InterlockedAnd8) -#pragma intrinsic (_InterlockedOr8) -#pragma intrinsic (_InterlockedXor8) -#pragma intrinsic (_InterlockedAnd16) -#pragma intrinsic (_InterlockedOr16) -#pragma intrinsic (_InterlockedXor16) -# 3385 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -void - - - -__cpuidex ( - int CPUInfo[4], - int Function, - int SubLeaf - ); - - - -#pragma intrinsic(__cpuidex) -# 3453 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -void -_mm_clflush ( - void const *Address - ); - -#pragma intrinsic(_mm_clflush) - - - - - - - - -void -_ReadWriteBarrier ( - void - ); - -#pragma intrinsic(_ReadWriteBarrier) -# 3501 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -void -__faststorefence ( - void - ); -# 3514 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -void -_mm_lfence ( - void - ); - -void -_mm_mfence ( - void - ); - -void -_mm_sfence ( - void - ); - -void -_mm_pause ( - void - ); - -void -_mm_prefetch ( - CHAR const *a, - int sel - ); - -void -_m_prefetchw ( - volatile const void *Source - ); -# 3562 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma intrinsic(__faststorefence) -# 3572 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma intrinsic(_mm_pause) -#pragma intrinsic(_mm_prefetch) -#pragma intrinsic(_mm_lfence) -#pragma intrinsic(_mm_mfence) -#pragma intrinsic(_mm_sfence) -#pragma intrinsic(_m_prefetchw) -# 3607 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -unsigned int -_mm_getcsr ( - void - ); - -void -_mm_setcsr ( - unsigned int MxCsr - ); - - - -#pragma intrinsic(_mm_getcsr) -#pragma intrinsic(_mm_setcsr) -# 3632 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -unsigned __int32 -__getcallerseflags ( - void - ); - -#pragma intrinsic(__getcallerseflags) - - - - - - - -DWORD -__segmentlimit ( - DWORD Selector - ); - -#pragma intrinsic(__segmentlimit) - - - - - - - -DWORD64 -__readpmc ( - DWORD Counter - ); - -#pragma intrinsic(__readpmc) - - - - - - - -DWORD64 -__rdtsc ( - void - ); - -#pragma intrinsic(__rdtsc) - - - - - -void -__movsb ( - PBYTE Destination, - BYTE const *Source, - SIZE_T Count - ); - -void -__movsw ( - PWORD Destination, - WORD const *Source, - SIZE_T Count - ); - -void -__movsd ( - PDWORD Destination, - DWORD const *Source, - SIZE_T Count - ); - -void -__movsq ( - PDWORD64 Destination, - DWORD64 const *Source, - SIZE_T Count - ); - -#pragma intrinsic(__movsb) -#pragma intrinsic(__movsw) -#pragma intrinsic(__movsd) -#pragma intrinsic(__movsq) - - - - - -void -__stosb ( - PBYTE Destination, - BYTE Value, - SIZE_T Count - ); - -void -__stosw ( - PWORD Destination, - WORD Value, - SIZE_T Count - ); - -void -__stosd ( - PDWORD Destination, - DWORD Value, - SIZE_T Count - ); - -void -__stosq ( - PDWORD64 Destination, - DWORD64 Value, - SIZE_T Count - ); - -#pragma intrinsic(__stosb) -#pragma intrinsic(__stosw) -#pragma intrinsic(__stosd) -#pragma intrinsic(__stosq) - - - - - - - - -LONGLONG -__mulh ( - LONG64 Multiplier, - LONG64 Multiplicand - ); - -ULONGLONG -__umulh ( - DWORD64 Multiplier, - DWORD64 Multiplicand - ); - -#pragma intrinsic(__mulh) -#pragma intrinsic(__umulh) -# 3791 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -DWORD64 -__popcnt64 ( - DWORD64 operand - ); - - - - -#pragma intrinsic(__popcnt64) -# 3820 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -DWORD64 -__shiftleft128 ( - DWORD64 LowPart, - DWORD64 HighPart, - BYTE Shift - ); - -DWORD64 -__shiftright128 ( - DWORD64 LowPart, - DWORD64 HighPart, - BYTE Shift - ); - - - -#pragma intrinsic(__shiftleft128) -#pragma intrinsic(__shiftright128) -# 3856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -LONG64 -_mul128 ( - LONG64 Multiplier, - LONG64 Multiplicand, - LONG64 *HighProduct - ); - - - -#pragma intrinsic(_mul128) - - - - - -DWORD64 -UnsignedMultiply128 ( - DWORD64 Multiplier, - DWORD64 Multiplicand, - DWORD64 *HighProduct - ); -# 3889 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -DWORD64 -_umul128 ( - DWORD64 Multiplier, - DWORD64 Multiplicand, - DWORD64 *HighProduct - ); - -LONG64 -_mul128 ( - LONG64 Multiplier, - LONG64 Multiplicand, - LONG64 *HighProduct - ); - - - -#pragma intrinsic(_umul128) - - - - - -__forceinline -LONG64 -MultiplyExtract128 ( - LONG64 Multiplier, - LONG64 Multiplicand, - BYTE Shift - ) - -{ - - LONG64 extractedProduct; - LONG64 highProduct; - LONG64 lowProduct; - BOOLEAN negate; - DWORD64 uhighProduct; - DWORD64 ulowProduct; - - lowProduct = _mul128(Multiplier, Multiplicand, &highProduct); - negate = 0; - uhighProduct = (DWORD64)highProduct; - ulowProduct = (DWORD64)lowProduct; - if (highProduct < 0) { - negate = 1; - uhighProduct = (DWORD64)(-highProduct); - ulowProduct = (DWORD64)(-lowProduct); - if (ulowProduct != 0) { - uhighProduct -= 1; - } - } - - extractedProduct = (LONG64)__shiftright128(ulowProduct, uhighProduct, Shift); - if (negate != 0) { - extractedProduct = -extractedProduct; - } - - return extractedProduct; -} - -__forceinline -DWORD64 -UnsignedMultiplyExtract128 ( - DWORD64 Multiplier, - DWORD64 Multiplicand, - BYTE Shift - ) - -{ - - DWORD64 extractedProduct; - DWORD64 highProduct; - DWORD64 lowProduct; - - lowProduct = _umul128(Multiplier, Multiplicand, &highProduct); - extractedProduct = __shiftright128(lowProduct, highProduct, Shift); - return extractedProduct; -} - - - - - - - -BYTE -__readgsbyte ( - DWORD Offset - ); - -WORD -__readgsword ( - DWORD Offset - ); - -DWORD -__readgsdword ( - DWORD Offset - ); - -DWORD64 -__readgsqword ( - DWORD Offset - ); - -void -__writegsbyte ( - DWORD Offset, - BYTE Data - ); - -void -__writegsword ( - DWORD Offset, - WORD Data - ); - -void -__writegsdword ( - DWORD Offset, - DWORD Data - ); - -void -__writegsqword ( - DWORD Offset, - DWORD64 Data - ); - -#pragma intrinsic(__readgsbyte) -#pragma intrinsic(__readgsword) -#pragma intrinsic(__readgsdword) -#pragma intrinsic(__readgsqword) -#pragma intrinsic(__writegsbyte) -#pragma intrinsic(__writegsword) -#pragma intrinsic(__writegsdword) -#pragma intrinsic(__writegsqword) - - - -void -__incgsbyte ( - DWORD Offset - ); - -void -__addgsbyte ( - DWORD Offset, - BYTE Value - ); - -void -__incgsword ( - DWORD Offset - ); - -void -__addgsword ( - DWORD Offset, - WORD Value - ); - -void -__incgsdword ( - DWORD Offset - ); - -void -__addgsdword ( - DWORD Offset, - DWORD Value - ); - -void -__incgsqword ( - DWORD Offset - ); - -void -__addgsqword ( - DWORD Offset, - DWORD64 Value - ); -# 4169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef XSAVE_FORMAT XMM_SAVE_AREA32, *PXMM_SAVE_AREA32; -# 4206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct __declspec(align(16)) -# 4206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma warning(push) -# 4206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma warning(disable: 4845) -# 4206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - __declspec(no_init_all) -# 4206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma warning(pop) -# 4206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - _CONTEXT { -# 4215 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - DWORD64 P1Home; - DWORD64 P2Home; - DWORD64 P3Home; - DWORD64 P4Home; - DWORD64 P5Home; - DWORD64 P6Home; - - - - - - DWORD ContextFlags; - DWORD MxCsr; - - - - - - WORD SegCs; - WORD SegDs; - WORD SegEs; - WORD SegFs; - WORD SegGs; - WORD SegSs; - DWORD EFlags; - - - - - - DWORD64 Dr0; - DWORD64 Dr1; - DWORD64 Dr2; - DWORD64 Dr3; - DWORD64 Dr6; - DWORD64 Dr7; - - - - - - DWORD64 Rax; - DWORD64 Rcx; - DWORD64 Rdx; - DWORD64 Rbx; - DWORD64 Rsp; - DWORD64 Rbp; - DWORD64 Rsi; - DWORD64 Rdi; - DWORD64 R8; - DWORD64 R9; - DWORD64 R10; - DWORD64 R11; - DWORD64 R12; - DWORD64 R13; - DWORD64 R14; - DWORD64 R15; - - - - - - DWORD64 Rip; - - - - - - union { - XMM_SAVE_AREA32 FltSave; - struct { - M128A Header[2]; - M128A Legacy[8]; - M128A Xmm0; - M128A Xmm1; - M128A Xmm2; - M128A Xmm3; - M128A Xmm4; - M128A Xmm5; - M128A Xmm6; - M128A Xmm7; - M128A Xmm8; - M128A Xmm9; - M128A Xmm10; - M128A Xmm11; - M128A Xmm12; - M128A Xmm13; - M128A Xmm14; - M128A Xmm15; - } ; - } ; - - - - - - M128A VectorRegister[26]; - DWORD64 VectorControl; - - - - - - DWORD64 DebugControl; - DWORD64 LastBranchToRip; - DWORD64 LastBranchFromRip; - DWORD64 LastExceptionToRip; - DWORD64 LastExceptionFromRip; -} CONTEXT, *PCONTEXT; -# 4332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_RUNTIME_FUNCTION_ENTRY RUNTIME_FUNCTION, *PRUNTIME_FUNCTION; -typedef SCOPE_TABLE_AMD64 SCOPE_TABLE, *PSCOPE_TABLE; -# 4354 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef - -PRUNTIME_FUNCTION -GET_RUNTIME_FUNCTION_CALLBACK ( - DWORD64 ControlPc, - PVOID Context - ); -typedef GET_RUNTIME_FUNCTION_CALLBACK *PGET_RUNTIME_FUNCTION_CALLBACK; - -typedef - -DWORD -OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK ( - HANDLE Process, - PVOID TableAddress, - PDWORD Entries, - PRUNTIME_FUNCTION* Functions - ); -typedef OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK *POUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK; -# 4381 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _DISPATCHER_CONTEXT { - DWORD64 ControlPc; - DWORD64 ImageBase; - PRUNTIME_FUNCTION FunctionEntry; - DWORD64 EstablisherFrame; - DWORD64 TargetIp; - PCONTEXT ContextRecord; - PEXCEPTION_ROUTINE LanguageHandler; - PVOID HandlerData; - struct _UNWIND_HISTORY_TABLE *HistoryTable; - DWORD ScopeIndex; - DWORD Fill0; -} DISPATCHER_CONTEXT, *PDISPATCHER_CONTEXT; -# 4421 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -struct _EXCEPTION_POINTERS; -typedef -LONG -(*PEXCEPTION_FILTER) ( - struct _EXCEPTION_POINTERS *ExceptionPointers, - PVOID EstablisherFrame - ); - -typedef -void -(*PTERMINATION_HANDLER) ( - BOOLEAN _abnormal_termination, - PVOID EstablisherFrame - ); - - - - - -typedef struct _KNONVOLATILE_CONTEXT_POINTERS { - union { - PM128A FloatingContext[16]; - struct { - PM128A Xmm0; - PM128A Xmm1; - PM128A Xmm2; - PM128A Xmm3; - PM128A Xmm4; - PM128A Xmm5; - PM128A Xmm6; - PM128A Xmm7; - PM128A Xmm8; - PM128A Xmm9; - PM128A Xmm10; - PM128A Xmm11; - PM128A Xmm12; - PM128A Xmm13; - PM128A Xmm14; - PM128A Xmm15; - } ; - } ; - - union { - PDWORD64 IntegerContext[16]; - struct { - PDWORD64 Rax; - PDWORD64 Rcx; - PDWORD64 Rdx; - PDWORD64 Rbx; - PDWORD64 Rsp; - PDWORD64 Rbp; - PDWORD64 Rsi; - PDWORD64 Rdi; - PDWORD64 R8; - PDWORD64 R9; - PDWORD64 R10; - PDWORD64 R11; - PDWORD64 R12; - PDWORD64 R13; - PDWORD64 R14; - PDWORD64 R15; - } ; - } ; - -} KNONVOLATILE_CONTEXT_POINTERS, *PKNONVOLATILE_CONTEXT_POINTERS; -# 4497 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _SCOPE_TABLE_ARM { - DWORD Count; - struct - { - DWORD BeginAddress; - DWORD EndAddress; - DWORD HandlerAddress; - DWORD JumpTarget; - } ScopeRecord[1]; -} SCOPE_TABLE_ARM, *PSCOPE_TABLE_ARM; -# 5359 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _SCOPE_TABLE_ARM64 { - DWORD Count; - struct - { - DWORD BeginAddress; - DWORD EndAddress; - DWORD HandlerAddress; - DWORD JumpTarget; - } ScopeRecord[1]; -} SCOPE_TABLE_ARM64, *PSCOPE_TABLE_ARM64; -# 6520 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef union _ARM64_NT_NEON128 { - struct { - ULONGLONG Low; - LONGLONG High; - } ; - double D[2]; - float S[4]; - WORD H[8]; - BYTE B[16]; -} ARM64_NT_NEON128, *PARM64_NT_NEON128; -# 6549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct __declspec(align(16)) -# 6549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma warning(push) -# 6549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma warning(disable: 4845) -# 6549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - __declspec(no_init_all) -# 6549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma warning(pop) -# 6549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - _ARM64_NT_CONTEXT { - - - - - - DWORD ContextFlags; - - - - - - DWORD Cpsr; - union { - struct { - DWORD64 X0; - DWORD64 X1; - DWORD64 X2; - DWORD64 X3; - DWORD64 X4; - DWORD64 X5; - DWORD64 X6; - DWORD64 X7; - DWORD64 X8; - DWORD64 X9; - DWORD64 X10; - DWORD64 X11; - DWORD64 X12; - DWORD64 X13; - DWORD64 X14; - DWORD64 X15; - DWORD64 X16; - DWORD64 X17; - DWORD64 X18; - DWORD64 X19; - DWORD64 X20; - DWORD64 X21; - DWORD64 X22; - DWORD64 X23; - DWORD64 X24; - DWORD64 X25; - DWORD64 X26; - DWORD64 X27; - DWORD64 X28; - DWORD64 Fp; - DWORD64 Lr; - } ; - DWORD64 X[31]; - } ; - DWORD64 Sp; - DWORD64 Pc; - - - - - - ARM64_NT_NEON128 V[32]; - DWORD Fpcr; - DWORD Fpsr; - - - - - - DWORD Bcr[8]; - DWORD64 Bvr[8]; - DWORD Wcr[2]; - DWORD64 Wvr[2]; - - -} ARM64_NT_CONTEXT, *PARM64_NT_CONTEXT; -# 6633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct __declspec(align(16)) -# 6633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma warning(push) -# 6633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma warning(disable: 4845) -# 6633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - __declspec(no_init_all) -# 6633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma warning(pop) -# 6633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - _ARM64EC_NT_CONTEXT { - union { - struct { - - - - - - DWORD64 AMD64_P1Home; - DWORD64 AMD64_P2Home; - DWORD64 AMD64_P3Home; - DWORD64 AMD64_P4Home; - DWORD64 AMD64_P5Home; - DWORD64 AMD64_P6Home; - - - - - - DWORD ContextFlags; - - DWORD AMD64_MxCsr_copy; - - - - - - - WORD AMD64_SegCs; - WORD AMD64_SegDs; - WORD AMD64_SegEs; - WORD AMD64_SegFs; - WORD AMD64_SegGs; - WORD AMD64_SegSs; - - - - - - DWORD AMD64_EFlags; - - - - - - DWORD64 AMD64_Dr0; - DWORD64 AMD64_Dr1; - DWORD64 AMD64_Dr2; - DWORD64 AMD64_Dr3; - DWORD64 AMD64_Dr6; - DWORD64 AMD64_Dr7; - - - - - - DWORD64 X8; - DWORD64 X0; - DWORD64 X1; - DWORD64 X27; - DWORD64 Sp; - DWORD64 Fp; - DWORD64 X25; - DWORD64 X26; - DWORD64 X2; - DWORD64 X3; - DWORD64 X4; - DWORD64 X5; - DWORD64 X19; - DWORD64 X20; - DWORD64 X21; - DWORD64 X22; - - - - - - DWORD64 Pc; - - - - - - struct { - WORD AMD64_ControlWord; - WORD AMD64_StatusWord; - BYTE AMD64_TagWord; - BYTE AMD64_Reserved1; - WORD AMD64_ErrorOpcode; - DWORD AMD64_ErrorOffset; - WORD AMD64_ErrorSelector; - WORD AMD64_Reserved2; - DWORD AMD64_DataOffset; - WORD AMD64_DataSelector; - WORD AMD64_Reserved3; - - DWORD AMD64_MxCsr; - DWORD AMD64_MxCsr_Mask; - - DWORD64 Lr; - WORD X16_0; - WORD AMD64_St0_Reserved1; - DWORD AMD64_St0_Reserved2; - DWORD64 X6; - WORD X16_1; - WORD AMD64_St1_Reserved1; - DWORD AMD64_St1_Reserved2; - DWORD64 X7; - WORD X16_2; - WORD AMD64_St2_Reserved1; - DWORD AMD64_St2_Reserved2; - DWORD64 X9; - WORD X16_3; - WORD AMD64_St3_Reserved1; - DWORD AMD64_St3_Reserved2; - DWORD64 X10; - WORD X17_0; - WORD AMD64_St4_Reserved1; - DWORD AMD64_St4_Reserved2; - DWORD64 X11; - WORD X17_1; - WORD AMD64_St5_Reserved1; - DWORD AMD64_St5_Reserved2; - DWORD64 X12; - WORD X17_2; - WORD AMD64_St6_Reserved1; - DWORD AMD64_St6_Reserved2; - DWORD64 X15; - WORD X17_3; - WORD AMD64_St7_Reserved1; - DWORD AMD64_St7_Reserved2; - - ARM64_NT_NEON128 V[16]; - BYTE AMD64_XSAVE_FORMAT_Reserved4[96]; - } ; - - - - - - ARM64_NT_NEON128 AMD64_VectorRegister[26]; - DWORD64 AMD64_VectorControl; - - - - - - DWORD64 AMD64_DebugControl; - DWORD64 AMD64_LastBranchToRip; - DWORD64 AMD64_LastBranchFromRip; - DWORD64 AMD64_LastExceptionToRip; - DWORD64 AMD64_LastExceptionFromRip; - - - } ; - - - - - - - - } ; -} ARM64EC_NT_CONTEXT, *PARM64EC_NT_CONTEXT; -# 6819 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY ARM64_RUNTIME_FUNCTION, *PARM64_RUNTIME_FUNCTION; -# 6853 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef union _DISPATCHER_CONTEXT_NONVOLREG_ARM64 { - BYTE Buffer[((11) * sizeof(DWORD64)) + ((8) * sizeof(double))]; - - struct { - DWORD64 GpNvRegs[(11)]; - double FpNvRegs [(8)]; - } ; -} DISPATCHER_CONTEXT_NONVOLREG_ARM64; - - - -typedef char __C_ASSERT__[(sizeof(DISPATCHER_CONTEXT_NONVOLREG_ARM64) == (((11) * sizeof(DWORD64)) + ((8) * sizeof(double))))?1:-1]; - - - -typedef struct _DISPATCHER_CONTEXT_ARM64 { - ULONG_PTR ControlPc; - ULONG_PTR ImageBase; - PARM64_RUNTIME_FUNCTION FunctionEntry; - ULONG_PTR EstablisherFrame; - ULONG_PTR TargetPc; - PARM64_NT_CONTEXT ContextRecord; - PEXCEPTION_ROUTINE LanguageHandler; - PVOID HandlerData; - struct _UNWIND_HISTORY_TABLE *HistoryTable; - DWORD ScopeIndex; - BOOLEAN ControlPcIsUnwound; - PBYTE NonVolatileRegisters; -} DISPATCHER_CONTEXT_ARM64, *PDISPATCHER_CONTEXT_ARM64; -# 6952 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _KNONVOLATILE_CONTEXT_POINTERS_ARM64 { - - PDWORD64 X19; - PDWORD64 X20; - PDWORD64 X21; - PDWORD64 X22; - PDWORD64 X23; - PDWORD64 X24; - PDWORD64 X25; - PDWORD64 X26; - PDWORD64 X27; - PDWORD64 X28; - PDWORD64 Fp; - PDWORD64 Lr; - - PDWORD64 D8; - PDWORD64 D9; - PDWORD64 D10; - PDWORD64 D11; - PDWORD64 D12; - PDWORD64 D13; - PDWORD64 D14; - PDWORD64 D15; - -} KNONVOLATILE_CONTEXT_POINTERS_ARM64, *PKNONVOLATILE_CONTEXT_POINTERS_ARM64; -# 7014 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -void -__int2c ( - void - ); - -#pragma intrinsic(__int2c) -# 8334 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _LDT_ENTRY { - WORD LimitLow; - WORD BaseLow; - union { - struct { - BYTE BaseMid; - BYTE Flags1; - BYTE Flags2; - BYTE BaseHi; - } Bytes; - struct { - DWORD BaseMid : 8; - DWORD Type : 5; - DWORD Dpl : 2; - DWORD Pres : 1; - DWORD LimitHi : 4; - DWORD Sys : 1; - DWORD Reserved_0 : 1; - DWORD Default_Big : 1; - DWORD Granularity : 1; - DWORD BaseHi : 8; - } Bits; - } HighWord; -} LDT_ENTRY, *PLDT_ENTRY; -# 8380 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__forceinline -CHAR -ReadAcquire8 ( - CHAR const volatile *Source - ) - -{ - - CHAR Value; - - Value = *Source; - return Value; -} - -__forceinline -CHAR -ReadNoFence8 ( - CHAR const volatile *Source - ) - -{ - - CHAR Value; - - Value = *Source; - return Value; -} - -__forceinline -void -WriteRelease8 ( - CHAR volatile *Destination, - CHAR Value - ) - -{ - - *Destination = Value; - return; -} - -__forceinline -void -WriteNoFence8 ( - CHAR volatile *Destination, - CHAR Value - ) - -{ - - *Destination = Value; - return; -} - -__forceinline -SHORT -ReadAcquire16 ( - SHORT const volatile *Source - ) - -{ - - SHORT Value; - - Value = *Source; - return Value; -} - -__forceinline -SHORT -ReadNoFence16 ( - SHORT const volatile *Source - ) - -{ - - SHORT Value; - - Value = *Source; - return Value; -} - -__forceinline -void -WriteRelease16 ( - SHORT volatile *Destination, - SHORT Value - ) - -{ - - *Destination = Value; - return; -} - -__forceinline -void -WriteNoFence16 ( - SHORT volatile *Destination, - SHORT Value - ) - -{ - - *Destination = Value; - return; -} - -__forceinline -LONG -ReadAcquire ( - LONG const volatile *Source - ) - -{ - - LONG Value; - - Value = *Source; - return Value; -} - -__forceinline -LONG -ReadNoFence ( - LONG const volatile *Source - ) - -{ - - LONG Value; - - Value = *Source; - return Value; -} - -__forceinline -void -WriteRelease ( - LONG volatile *Destination, - LONG Value - ) - -{ - - *Destination = Value; - return; -} - -__forceinline -void -WriteNoFence ( - LONG volatile *Destination, - LONG Value - ) - -{ - - *Destination = Value; - return; -} - -__forceinline -LONG64 -ReadAcquire64 ( - LONG64 const volatile *Source - ) - -{ - - LONG64 Value; - - Value = *Source; - return Value; -} - -__forceinline -LONG64 -ReadNoFence64 ( - LONG64 const volatile *Source - ) - -{ - - LONG64 Value; - - Value = *Source; - return Value; -} - -__forceinline -void -WriteRelease64 ( - LONG64 volatile *Destination, - LONG64 Value - ) - -{ - - *Destination = Value; - return; -} - -__forceinline -void -WriteNoFence64 ( - LONG64 volatile *Destination, - LONG64 Value - ) - -{ - - *Destination = Value; - return; -} - - - -__forceinline -void -BarrierAfterRead ( - void - ) - -{ - _ReadWriteBarrier(); - return; -} -# 8621 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__forceinline -CHAR -ReadRaw8 ( - CHAR const volatile *Source - ) - -{ - - CHAR Value; - - Value = *(CHAR *)Source; - return Value; -} - -__forceinline -void -WriteRaw8 ( - CHAR volatile *Destination, - CHAR Value - ) - -{ - - *(CHAR *)Destination = Value; - return; -} - -__forceinline -SHORT -ReadRaw16 ( - SHORT const volatile *Source - ) - -{ - - SHORT Value; - - Value = *(SHORT *)Source; - return Value; -} - -__forceinline -void -WriteRaw16 ( - SHORT volatile *Destination, - SHORT Value - ) - -{ - - *(SHORT *)Destination = Value; - return; -} - -__forceinline -LONG -ReadRaw ( - LONG const volatile *Source - ) - -{ - - LONG Value; - - Value = *(LONG *)Source; - return Value; -} - -__forceinline -void -WriteRaw ( - LONG volatile *Destination, - LONG Value - ) - -{ - - *(LONG *)Destination = Value; - return; -} - -__forceinline -LONG64 -ReadRaw64 ( - LONG64 const volatile *Source - ) - -{ - - LONG64 Value; - - Value = *(LONG64 *)Source; - return Value; -} - -__forceinline -void -WriteRaw64 ( - LONG64 volatile *Destination, - LONG64 Value - ) - -{ - - *(LONG64 *)Destination = Value; - return; -} - - - - - -__forceinline -BYTE -ReadUCharAcquire ( - BYTE const volatile *Source - ) - -{ - - return (BYTE )ReadAcquire8((PCHAR)Source); -} - -__forceinline -BYTE -ReadUCharNoFence ( - BYTE const volatile *Source - ) - -{ - - return (BYTE )ReadNoFence8((PCHAR)Source); -} - -__forceinline -BYTE -ReadBooleanAcquire ( - BOOLEAN const volatile *Source - ) - -{ - - return (BOOLEAN)ReadAcquire8((PCHAR)Source); -} - -__forceinline -BYTE -ReadBooleanNoFence ( - BOOLEAN const volatile *Source - ) - -{ - - return (BOOLEAN)ReadNoFence8((PCHAR)Source); -} - -__forceinline -BYTE -ReadBooleanRaw ( - BOOLEAN const volatile *Source - ) - -{ - return (BOOLEAN)ReadRaw8((PCHAR)Source); -} - -__forceinline -BYTE -ReadUCharRaw ( - BYTE const volatile *Source - ) - -{ - - return (BYTE )ReadRaw8((PCHAR)Source); -} - -__forceinline -void -WriteUCharRelease ( - BYTE volatile *Destination, - BYTE Value - ) - -{ - - WriteRelease8((PCHAR)Destination, (CHAR)Value); - return; -} - -__forceinline -void -WriteUCharNoFence ( - BYTE volatile *Destination, - BYTE Value - ) - -{ - - WriteNoFence8((PCHAR)Destination, (CHAR)Value); - return; -} - -__forceinline -void -WriteBooleanRelease ( - BOOLEAN volatile *Destination, - BOOLEAN Value - ) - -{ - - WriteRelease8((PCHAR)Destination, (CHAR)Value); - return; -} - -__forceinline -void -WriteBooleanNoFence ( - BOOLEAN volatile *Destination, - BOOLEAN Value - ) - -{ - - WriteNoFence8((PCHAR)Destination, (CHAR)Value); - return; -} - -__forceinline -void -WriteUCharRaw ( - BYTE volatile *Destination, - BYTE Value - ) - -{ - - WriteRaw8((PCHAR)Destination, (CHAR)Value); - return; -} - -__forceinline -WORD -ReadUShortAcquire ( - WORD const volatile *Source - ) - -{ - - return (WORD )ReadAcquire16((PSHORT)Source); -} - -__forceinline -WORD -ReadUShortNoFence ( - WORD const volatile *Source - ) - -{ - - return (WORD )ReadNoFence16((PSHORT)Source); -} - -__forceinline -WORD -ReadUShortRaw ( - WORD const volatile *Source - ) - -{ - - return (WORD )ReadRaw16((PSHORT)Source); -} - -__forceinline -void -WriteUShortRelease ( - WORD volatile *Destination, - WORD Value - ) - -{ - - WriteRelease16((PSHORT)Destination, (SHORT)Value); - return; -} - -__forceinline -void -WriteUShortNoFence ( - WORD volatile *Destination, - WORD Value - ) - -{ - - WriteNoFence16((PSHORT)Destination, (SHORT)Value); - return; -} - -__forceinline -void -WriteUShortRaw ( - WORD volatile *Destination, - WORD Value - ) - -{ - - WriteRaw16((PSHORT)Destination, (SHORT)Value); - return; -} - -__forceinline -DWORD -ReadULongAcquire ( - DWORD const volatile *Source - ) - -{ - - return (DWORD)ReadAcquire((PLONG)Source); -} - -__forceinline -DWORD -ReadULongNoFence ( - DWORD const volatile *Source - ) - -{ - - return (DWORD)ReadNoFence((PLONG)Source); -} - -__forceinline -DWORD -ReadULongRaw ( - DWORD const volatile *Source - ) - -{ - - return (DWORD)ReadRaw((PLONG)Source); -} - -__forceinline -void -WriteULongRelease ( - DWORD volatile *Destination, - DWORD Value - ) - -{ - - WriteRelease((PLONG)Destination, (LONG)Value); - return; -} - -__forceinline -void -WriteULongNoFence ( - DWORD volatile *Destination, - DWORD Value - ) - -{ - - WriteNoFence((PLONG)Destination, (LONG)Value); - return; -} - -__forceinline -void -WriteULongRaw ( - DWORD volatile *Destination, - DWORD Value - ) - -{ - - WriteRaw((PLONG)Destination, (LONG)Value); - return; -} - -__forceinline -INT32 -ReadInt32Acquire ( - INT32 const volatile *Source - ) - -{ - - return (INT32)ReadAcquire((PLONG)Source); -} - -__forceinline -INT32 -ReadInt32NoFence ( - INT32 const volatile *Source - ) - -{ - - return (INT32)ReadNoFence((PLONG)Source); -} - -__forceinline -INT32 -ReadInt32Raw ( - INT32 const volatile *Source - ) - -{ - - return (INT32)ReadRaw((PLONG)Source); -} - -__forceinline -void -WriteInt32Release ( - INT32 volatile *Destination, - INT32 Value - ) - -{ - - WriteRelease((PLONG)Destination, (LONG)Value); - return; -} - -__forceinline -void -WriteInt32NoFence ( - INT32 volatile *Destination, - INT32 Value - ) - -{ - - WriteNoFence((PLONG)Destination, (LONG)Value); - return; -} - -__forceinline -void -WriteInt32Raw ( - INT32 volatile *Destination, - INT32 Value - ) - -{ - - WriteRaw((PLONG)Destination, (LONG)Value); - return; -} - -__forceinline -UINT32 -ReadUInt32Acquire ( - UINT32 const volatile *Source - ) - -{ - - return (UINT32)ReadAcquire((PLONG)Source); -} - -__forceinline -UINT32 -ReadUInt32NoFence ( - UINT32 const volatile *Source - ) - -{ - - return (UINT32)ReadNoFence((PLONG)Source); -} - -__forceinline -UINT32 -ReadUInt32Raw ( - UINT32 const volatile *Source - ) - -{ - - return (UINT32)ReadRaw((PLONG)Source); -} - -__forceinline -void -WriteUInt32Release ( - UINT32 volatile *Destination, - UINT32 Value - ) - -{ - - WriteRelease((PLONG)Destination, (LONG)Value); - return; -} - -__forceinline -void -WriteUInt32NoFence ( - UINT32 volatile *Destination, - UINT32 Value - ) - -{ - - WriteNoFence((PLONG)Destination, (LONG)Value); - return; -} - -__forceinline -void -WriteUInt32Raw ( - UINT32 volatile *Destination, - UINT32 Value - ) - -{ - - WriteRaw((PLONG)Destination, (LONG)Value); - return; -} - -__forceinline -DWORD64 -ReadULong64Acquire ( - DWORD64 const volatile *Source - ) - -{ - - return (DWORD64)ReadAcquire64((PLONG64)Source); -} - -__forceinline -DWORD64 -ReadULong64NoFence ( - DWORD64 const volatile *Source - ) - -{ - - return (DWORD64)ReadNoFence64((PLONG64)Source); -} - -__forceinline -DWORD64 -ReadULong64Raw ( - DWORD64 const volatile *Source - ) - -{ - - return (DWORD64)ReadRaw64((PLONG64)Source); -} - -__forceinline -void -WriteULong64Release ( - DWORD64 volatile *Destination, - DWORD64 Value - ) - -{ - - WriteRelease64((PLONG64)Destination, (LONG64)Value); - return; -} - -__forceinline -void -WriteULong64NoFence ( - DWORD64 volatile *Destination, - DWORD64 Value - ) - -{ - - WriteNoFence64((PLONG64)Destination, (LONG64)Value); - return; -} - -__forceinline -void -WriteULong64Raw ( - DWORD64 volatile *Destination, - DWORD64 Value - ) - -{ - - WriteRaw64((PLONG64)Destination, (LONG64)Value); - return; -} -# 9335 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__forceinline -PVOID -ReadPointerAcquire ( - PVOID const volatile *Source - ) - -{ - - return (PVOID)ReadAcquire64((PLONG64)Source); -} - -__forceinline -PVOID -ReadPointerNoFence ( - PVOID const volatile *Source - ) - -{ - - return (PVOID)ReadNoFence64((PLONG64)Source); -} - -__forceinline -PVOID -ReadPointerRaw ( - PVOID const volatile *Source - ) - -{ - - return (PVOID)ReadRaw64((PLONG64)Source); -} - -__forceinline -void -WritePointerRelease ( - PVOID volatile *Destination, - PVOID Value - ) - -{ - - WriteRelease64((PLONG64)Destination, (LONG64)Value); - return; -} - -__forceinline -void -WritePointerNoFence ( - PVOID volatile *Destination, - PVOID Value - ) - -{ - - WriteNoFence64((PLONG64)Destination, (LONG64)Value); - return; -} - -__forceinline -void -WritePointerRaw ( - PVOID volatile *Destination, - PVOID Value - ) - -{ - - WriteRaw64((PLONG64)Destination, (LONG64)Value); - return; -} -# 9439 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma warning(push) -#pragma warning(disable: 4214) -#pragma warning(disable: 4668) -#pragma warning(disable: 4820) -# 9480 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _WOW64_FLOATING_SAVE_AREA { - DWORD ControlWord; - DWORD StatusWord; - DWORD TagWord; - DWORD ErrorOffset; - DWORD ErrorSelector; - DWORD DataOffset; - DWORD DataSelector; - BYTE RegisterArea[80]; - DWORD Cr0NpxState; -} WOW64_FLOATING_SAVE_AREA; - -typedef WOW64_FLOATING_SAVE_AREA *PWOW64_FLOATING_SAVE_AREA; - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,4) -# 9495 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 -# 9506 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _WOW64_CONTEXT { -# 9526 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - DWORD ContextFlags; - - - - - - - - DWORD Dr0; - DWORD Dr1; - DWORD Dr2; - DWORD Dr3; - DWORD Dr6; - DWORD Dr7; - - - - - - - WOW64_FLOATING_SAVE_AREA FloatSave; - - - - - - - DWORD SegGs; - DWORD SegFs; - DWORD SegEs; - DWORD SegDs; - - - - - - - DWORD Edi; - DWORD Esi; - DWORD Ebx; - DWORD Edx; - DWORD Ecx; - DWORD Eax; - - - - - - - DWORD Ebp; - DWORD Eip; - DWORD SegCs; - DWORD EFlags; - DWORD Esp; - DWORD SegSs; - - - - - - - - BYTE ExtendedRegisters[512]; - -} WOW64_CONTEXT; - -typedef WOW64_CONTEXT *PWOW64_CONTEXT; - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 9595 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - - -typedef struct _WOW64_LDT_ENTRY { - WORD LimitLow; - WORD BaseLow; - union { - struct { - BYTE BaseMid; - BYTE Flags1; - BYTE Flags2; - BYTE BaseHi; - } Bytes; - struct { - DWORD BaseMid : 8; - DWORD Type : 5; - DWORD Dpl : 2; - DWORD Pres : 1; - DWORD LimitHi : 4; - DWORD Sys : 1; - DWORD Reserved_0 : 1; - DWORD Default_Big : 1; - DWORD Granularity : 1; - DWORD BaseHi : 8; - } Bits; - } HighWord; -} WOW64_LDT_ENTRY, *PWOW64_LDT_ENTRY; - -typedef struct _WOW64_DESCRIPTOR_TABLE_ENTRY { - DWORD Selector; - WOW64_LDT_ENTRY Descriptor; -} WOW64_DESCRIPTOR_TABLE_ENTRY, *PWOW64_DESCRIPTOR_TABLE_ENTRY; - - -#pragma warning(pop) -# 9653 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _EXCEPTION_RECORD { - DWORD ExceptionCode; - DWORD ExceptionFlags; - struct _EXCEPTION_RECORD *ExceptionRecord; - PVOID ExceptionAddress; - DWORD NumberParameters; - ULONG_PTR ExceptionInformation[15]; - } EXCEPTION_RECORD; - -typedef EXCEPTION_RECORD *PEXCEPTION_RECORD; - -typedef struct _EXCEPTION_RECORD32 { - DWORD ExceptionCode; - DWORD ExceptionFlags; - DWORD ExceptionRecord; - DWORD ExceptionAddress; - DWORD NumberParameters; - DWORD ExceptionInformation[15]; -} EXCEPTION_RECORD32, *PEXCEPTION_RECORD32; - -typedef struct _EXCEPTION_RECORD64 { - DWORD ExceptionCode; - DWORD ExceptionFlags; - DWORD64 ExceptionRecord; - DWORD64 ExceptionAddress; - DWORD NumberParameters; - DWORD __unusedAlignment; - DWORD64 ExceptionInformation[15]; -} EXCEPTION_RECORD64, *PEXCEPTION_RECORD64; - - - - - -typedef struct _EXCEPTION_POINTERS { - PEXCEPTION_RECORD ExceptionRecord; - PCONTEXT ContextRecord; -} EXCEPTION_POINTERS, *PEXCEPTION_POINTERS; -# 9711 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef PVOID PACCESS_TOKEN; -typedef PVOID PSECURITY_DESCRIPTOR; -typedef PVOID PSID; -typedef PVOID PCLAIMS_BLOB; -# 9755 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef DWORD ACCESS_MASK; -typedef ACCESS_MASK *PACCESS_MASK; -# 9814 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _GENERIC_MAPPING { - ACCESS_MASK GenericRead; - ACCESS_MASK GenericWrite; - ACCESS_MASK GenericExecute; - ACCESS_MASK GenericAll; -} GENERIC_MAPPING; -typedef GENERIC_MAPPING *PGENERIC_MAPPING; -# 9833 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,4) -# 9834 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - -typedef struct _LUID_AND_ATTRIBUTES { - LUID Luid; - DWORD Attributes; - } LUID_AND_ATTRIBUTES, * PLUID_AND_ATTRIBUTES; -typedef LUID_AND_ATTRIBUTES LUID_AND_ATTRIBUTES_ARRAY[1]; -typedef LUID_AND_ATTRIBUTES_ARRAY *PLUID_AND_ATTRIBUTES_ARRAY; - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 9843 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 -# 9877 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _SID_IDENTIFIER_AUTHORITY { - BYTE Value[6]; -} SID_IDENTIFIER_AUTHORITY, *PSID_IDENTIFIER_AUTHORITY; - - - - - -typedef struct _SID { - BYTE Revision; - BYTE SubAuthorityCount; - SID_IDENTIFIER_AUTHORITY IdentifierAuthority; - - - - DWORD SubAuthority[1]; - -} SID, *PISID; -# 9925 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef union _SE_SID { - SID Sid; - BYTE Buffer[(sizeof(SID) - sizeof(DWORD) + ((15) * sizeof(DWORD)))]; -} SE_SID, *PSE_SID; - - - - -typedef enum _SID_NAME_USE { - SidTypeUser = 1, - SidTypeGroup, - SidTypeDomain, - SidTypeAlias, - SidTypeWellKnownGroup, - SidTypeDeletedAccount, - SidTypeInvalid, - SidTypeUnknown, - SidTypeComputer, - SidTypeLabel, - SidTypeLogonSession -} SID_NAME_USE, *PSID_NAME_USE; - -typedef struct _SID_AND_ATTRIBUTES { - - - - PSID Sid; - - DWORD Attributes; - } SID_AND_ATTRIBUTES, * PSID_AND_ATTRIBUTES; - -typedef SID_AND_ATTRIBUTES SID_AND_ATTRIBUTES_ARRAY[1]; -typedef SID_AND_ATTRIBUTES_ARRAY *PSID_AND_ATTRIBUTES_ARRAY; - - -typedef ULONG_PTR SID_HASH_ENTRY, *PSID_HASH_ENTRY; - -typedef struct _SID_AND_ATTRIBUTES_HASH { - DWORD SidCount; - PSID_AND_ATTRIBUTES SidAttr; - SID_HASH_ENTRY Hash[32]; -} SID_AND_ATTRIBUTES_HASH, *PSID_AND_ATTRIBUTES_HASH; -# 10372 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum { - - WinNullSid = 0, - WinWorldSid = 1, - WinLocalSid = 2, - WinCreatorOwnerSid = 3, - WinCreatorGroupSid = 4, - WinCreatorOwnerServerSid = 5, - WinCreatorGroupServerSid = 6, - WinNtAuthoritySid = 7, - WinDialupSid = 8, - WinNetworkSid = 9, - WinBatchSid = 10, - WinInteractiveSid = 11, - WinServiceSid = 12, - WinAnonymousSid = 13, - WinProxySid = 14, - WinEnterpriseControllersSid = 15, - WinSelfSid = 16, - WinAuthenticatedUserSid = 17, - WinRestrictedCodeSid = 18, - WinTerminalServerSid = 19, - WinRemoteLogonIdSid = 20, - WinLogonIdsSid = 21, - WinLocalSystemSid = 22, - WinLocalServiceSid = 23, - WinNetworkServiceSid = 24, - WinBuiltinDomainSid = 25, - WinBuiltinAdministratorsSid = 26, - WinBuiltinUsersSid = 27, - WinBuiltinGuestsSid = 28, - WinBuiltinPowerUsersSid = 29, - WinBuiltinAccountOperatorsSid = 30, - WinBuiltinSystemOperatorsSid = 31, - WinBuiltinPrintOperatorsSid = 32, - WinBuiltinBackupOperatorsSid = 33, - WinBuiltinReplicatorSid = 34, - WinBuiltinPreWindows2000CompatibleAccessSid = 35, - WinBuiltinRemoteDesktopUsersSid = 36, - WinBuiltinNetworkConfigurationOperatorsSid = 37, - WinAccountAdministratorSid = 38, - WinAccountGuestSid = 39, - WinAccountKrbtgtSid = 40, - WinAccountDomainAdminsSid = 41, - WinAccountDomainUsersSid = 42, - WinAccountDomainGuestsSid = 43, - WinAccountComputersSid = 44, - WinAccountControllersSid = 45, - WinAccountCertAdminsSid = 46, - WinAccountSchemaAdminsSid = 47, - WinAccountEnterpriseAdminsSid = 48, - WinAccountPolicyAdminsSid = 49, - WinAccountRasAndIasServersSid = 50, - WinNTLMAuthenticationSid = 51, - WinDigestAuthenticationSid = 52, - WinSChannelAuthenticationSid = 53, - WinThisOrganizationSid = 54, - WinOtherOrganizationSid = 55, - WinBuiltinIncomingForestTrustBuildersSid = 56, - WinBuiltinPerfMonitoringUsersSid = 57, - WinBuiltinPerfLoggingUsersSid = 58, - WinBuiltinAuthorizationAccessSid = 59, - WinBuiltinTerminalServerLicenseServersSid = 60, - WinBuiltinDCOMUsersSid = 61, - WinBuiltinIUsersSid = 62, - WinIUserSid = 63, - WinBuiltinCryptoOperatorsSid = 64, - WinUntrustedLabelSid = 65, - WinLowLabelSid = 66, - WinMediumLabelSid = 67, - WinHighLabelSid = 68, - WinSystemLabelSid = 69, - WinWriteRestrictedCodeSid = 70, - WinCreatorOwnerRightsSid = 71, - WinCacheablePrincipalsGroupSid = 72, - WinNonCacheablePrincipalsGroupSid = 73, - WinEnterpriseReadonlyControllersSid = 74, - WinAccountReadonlyControllersSid = 75, - WinBuiltinEventLogReadersGroup = 76, - WinNewEnterpriseReadonlyControllersSid = 77, - WinBuiltinCertSvcDComAccessGroup = 78, - WinMediumPlusLabelSid = 79, - WinLocalLogonSid = 80, - WinConsoleLogonSid = 81, - WinThisOrganizationCertificateSid = 82, - WinApplicationPackageAuthoritySid = 83, - WinBuiltinAnyPackageSid = 84, - WinCapabilityInternetClientSid = 85, - WinCapabilityInternetClientServerSid = 86, - WinCapabilityPrivateNetworkClientServerSid = 87, - WinCapabilityPicturesLibrarySid = 88, - WinCapabilityVideosLibrarySid = 89, - WinCapabilityMusicLibrarySid = 90, - WinCapabilityDocumentsLibrarySid = 91, - WinCapabilitySharedUserCertificatesSid = 92, - WinCapabilityEnterpriseAuthenticationSid = 93, - WinCapabilityRemovableStorageSid = 94, - WinBuiltinRDSRemoteAccessServersSid = 95, - WinBuiltinRDSEndpointServersSid = 96, - WinBuiltinRDSManagementServersSid = 97, - WinUserModeDriversSid = 98, - WinBuiltinHyperVAdminsSid = 99, - WinAccountCloneableControllersSid = 100, - WinBuiltinAccessControlAssistanceOperatorsSid = 101, - WinBuiltinRemoteManagementUsersSid = 102, - WinAuthenticationAuthorityAssertedSid = 103, - WinAuthenticationServiceAssertedSid = 104, - WinLocalAccountSid = 105, - WinLocalAccountAndAdministratorSid = 106, - WinAccountProtectedUsersSid = 107, - WinCapabilityAppointmentsSid = 108, - WinCapabilityContactsSid = 109, - WinAccountDefaultSystemManagedSid = 110, - WinBuiltinDefaultSystemManagedGroupSid = 111, - WinBuiltinStorageReplicaAdminsSid = 112, - WinAccountKeyAdminsSid = 113, - WinAccountEnterpriseKeyAdminsSid = 114, - WinAuthenticationKeyTrustSid = 115, - WinAuthenticationKeyPropertyMFASid = 116, - WinAuthenticationKeyPropertyAttestationSid = 117, - WinAuthenticationFreshKeyAuthSid = 118, - WinBuiltinDeviceOwnersSid = 119, -} WELL_KNOWN_SID_TYPE; -# 10592 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _ACL { - BYTE AclRevision; - BYTE Sbz1; - WORD AclSize; - WORD AceCount; - WORD Sbz2; -} ACL; -typedef ACL *PACL; -# 10622 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _ACE_HEADER { - BYTE AceType; - BYTE AceFlags; - WORD AceSize; -} ACE_HEADER; -typedef ACE_HEADER *PACE_HEADER; -# 10762 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _ACCESS_ALLOWED_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD SidStart; -} ACCESS_ALLOWED_ACE; - -typedef ACCESS_ALLOWED_ACE *PACCESS_ALLOWED_ACE; - -typedef struct _ACCESS_DENIED_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD SidStart; -} ACCESS_DENIED_ACE; -typedef ACCESS_DENIED_ACE *PACCESS_DENIED_ACE; - -typedef struct _SYSTEM_AUDIT_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD SidStart; -} SYSTEM_AUDIT_ACE; -typedef SYSTEM_AUDIT_ACE *PSYSTEM_AUDIT_ACE; - -typedef struct _SYSTEM_ALARM_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD SidStart; -} SYSTEM_ALARM_ACE; -typedef SYSTEM_ALARM_ACE *PSYSTEM_ALARM_ACE; - -typedef struct _SYSTEM_RESOURCE_ATTRIBUTE_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD SidStart; - -} SYSTEM_RESOURCE_ATTRIBUTE_ACE, *PSYSTEM_RESOURCE_ATTRIBUTE_ACE; - -typedef struct _SYSTEM_SCOPED_POLICY_ID_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD SidStart; -} SYSTEM_SCOPED_POLICY_ID_ACE, *PSYSTEM_SCOPED_POLICY_ID_ACE; - -typedef struct _SYSTEM_MANDATORY_LABEL_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD SidStart; -} SYSTEM_MANDATORY_LABEL_ACE, *PSYSTEM_MANDATORY_LABEL_ACE; - -typedef struct _SYSTEM_PROCESS_TRUST_LABEL_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD SidStart; -} SYSTEM_PROCESS_TRUST_LABEL_ACE, *PSYSTEM_PROCESS_TRUST_LABEL_ACE; - -typedef struct _SYSTEM_ACCESS_FILTER_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD SidStart; - -} SYSTEM_ACCESS_FILTER_ACE, *PSYSTEM_ACCESS_FILTER_ACE; -# 10839 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _ACCESS_ALLOWED_OBJECT_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD Flags; - GUID ObjectType; - GUID InheritedObjectType; - DWORD SidStart; -} ACCESS_ALLOWED_OBJECT_ACE, *PACCESS_ALLOWED_OBJECT_ACE; - -typedef struct _ACCESS_DENIED_OBJECT_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD Flags; - GUID ObjectType; - GUID InheritedObjectType; - DWORD SidStart; -} ACCESS_DENIED_OBJECT_ACE, *PACCESS_DENIED_OBJECT_ACE; - -typedef struct _SYSTEM_AUDIT_OBJECT_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD Flags; - GUID ObjectType; - GUID InheritedObjectType; - DWORD SidStart; -} SYSTEM_AUDIT_OBJECT_ACE, *PSYSTEM_AUDIT_OBJECT_ACE; - -typedef struct _SYSTEM_ALARM_OBJECT_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD Flags; - GUID ObjectType; - GUID InheritedObjectType; - DWORD SidStart; -} SYSTEM_ALARM_OBJECT_ACE, *PSYSTEM_ALARM_OBJECT_ACE; - - - - - - -typedef struct _ACCESS_ALLOWED_CALLBACK_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD SidStart; - -} ACCESS_ALLOWED_CALLBACK_ACE, *PACCESS_ALLOWED_CALLBACK_ACE; - -typedef struct _ACCESS_DENIED_CALLBACK_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD SidStart; - -} ACCESS_DENIED_CALLBACK_ACE, *PACCESS_DENIED_CALLBACK_ACE; - -typedef struct _SYSTEM_AUDIT_CALLBACK_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD SidStart; - -} SYSTEM_AUDIT_CALLBACK_ACE, *PSYSTEM_AUDIT_CALLBACK_ACE; - -typedef struct _SYSTEM_ALARM_CALLBACK_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD SidStart; - -} SYSTEM_ALARM_CALLBACK_ACE, *PSYSTEM_ALARM_CALLBACK_ACE; - -typedef struct _ACCESS_ALLOWED_CALLBACK_OBJECT_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD Flags; - GUID ObjectType; - GUID InheritedObjectType; - DWORD SidStart; - -} ACCESS_ALLOWED_CALLBACK_OBJECT_ACE, *PACCESS_ALLOWED_CALLBACK_OBJECT_ACE; - -typedef struct _ACCESS_DENIED_CALLBACK_OBJECT_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD Flags; - GUID ObjectType; - GUID InheritedObjectType; - DWORD SidStart; - -} ACCESS_DENIED_CALLBACK_OBJECT_ACE, *PACCESS_DENIED_CALLBACK_OBJECT_ACE; - -typedef struct _SYSTEM_AUDIT_CALLBACK_OBJECT_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD Flags; - GUID ObjectType; - GUID InheritedObjectType; - DWORD SidStart; - -} SYSTEM_AUDIT_CALLBACK_OBJECT_ACE, *PSYSTEM_AUDIT_CALLBACK_OBJECT_ACE; - -typedef struct _SYSTEM_ALARM_CALLBACK_OBJECT_ACE { - ACE_HEADER Header; - ACCESS_MASK Mask; - DWORD Flags; - GUID ObjectType; - GUID InheritedObjectType; - DWORD SidStart; - -} SYSTEM_ALARM_CALLBACK_OBJECT_ACE, *PSYSTEM_ALARM_CALLBACK_OBJECT_ACE; -# 10962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _ACL_INFORMATION_CLASS { - AclRevisionInformation = 1, - AclSizeInformation -} ACL_INFORMATION_CLASS; - - - - - - -typedef struct _ACL_REVISION_INFORMATION { - DWORD AclRevision; -} ACL_REVISION_INFORMATION; -typedef ACL_REVISION_INFORMATION *PACL_REVISION_INFORMATION; - - - - - -typedef struct _ACL_SIZE_INFORMATION { - DWORD AceCount; - DWORD AclBytesInUse; - DWORD AclBytesFree; -} ACL_SIZE_INFORMATION; -typedef ACL_SIZE_INFORMATION *PACL_SIZE_INFORMATION; -# 11013 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef WORD SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL; -# 11103 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _SECURITY_DESCRIPTOR_RELATIVE { - BYTE Revision; - BYTE Sbz1; - SECURITY_DESCRIPTOR_CONTROL Control; - DWORD Owner; - DWORD Group; - DWORD Sacl; - DWORD Dacl; - } SECURITY_DESCRIPTOR_RELATIVE, *PISECURITY_DESCRIPTOR_RELATIVE; - -typedef struct _SECURITY_DESCRIPTOR { - BYTE Revision; - BYTE Sbz1; - SECURITY_DESCRIPTOR_CONTROL Control; - PSID Owner; - PSID Group; - PACL Sacl; - PACL Dacl; - - } SECURITY_DESCRIPTOR, *PISECURITY_DESCRIPTOR; - - -typedef struct _SECURITY_OBJECT_AI_PARAMS { - DWORD Size; - DWORD ConstraintMask; -} SECURITY_OBJECT_AI_PARAMS, *PSECURITY_OBJECT_AI_PARAMS; -# 11180 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _OBJECT_TYPE_LIST { - WORD Level; - WORD Sbz; - GUID *ObjectType; -} OBJECT_TYPE_LIST, *POBJECT_TYPE_LIST; -# 11200 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _AUDIT_EVENT_TYPE { - AuditEventObjectAccess, - AuditEventDirectoryServiceAccess -} AUDIT_EVENT_TYPE, *PAUDIT_EVENT_TYPE; -# 11254 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _PRIVILEGE_SET { - DWORD PrivilegeCount; - DWORD Control; - LUID_AND_ATTRIBUTES Privilege[1]; - } PRIVILEGE_SET, * PPRIVILEGE_SET; -# 11275 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _ACCESS_REASON_TYPE{ - - AccessReasonNone = 0x00000000, - - - - - - - AccessReasonAllowedAce = 0x00010000, - AccessReasonDeniedAce = 0x00020000, - - AccessReasonAllowedParentAce = 0x00030000, - AccessReasonDeniedParentAce = 0x00040000, - - AccessReasonNotGrantedByCape = 0x00050000, - AccessReasonNotGrantedByParentCape = 0x00060000, - - AccessReasonNotGrantedToAppContainer = 0x00070000, - - AccessReasonMissingPrivilege = 0x00100000, - AccessReasonFromPrivilege = 0x00200000, - - - AccessReasonIntegrityLevel = 0x00300000, - - AccessReasonOwnership = 0x00400000, - - AccessReasonNullDacl = 0x00500000, - AccessReasonEmptyDacl = 0x00600000, - - AccessReasonNoSD = 0x00700000, - AccessReasonNoGrant = 0x00800000, - - AccessReasonTrustLabel = 0x00900000, - - AccessReasonFilterAce = 0x00a00000 -} -ACCESS_REASON_TYPE; -# 11328 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef DWORD ACCESS_REASON; - -typedef struct _ACCESS_REASONS{ - ACCESS_REASON Data[32]; -} ACCESS_REASONS, *PACCESS_REASONS; -# 11362 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _SE_SECURITY_DESCRIPTOR -{ - DWORD Size; - DWORD Flags; - PSECURITY_DESCRIPTOR SecurityDescriptor; -} SE_SECURITY_DESCRIPTOR, *PSE_SECURITY_DESCRIPTOR; - -typedef struct _SE_ACCESS_REQUEST -{ - DWORD Size; - PSE_SECURITY_DESCRIPTOR SeSecurityDescriptor; - ACCESS_MASK DesiredAccess; - ACCESS_MASK PreviouslyGrantedAccess; - PSID PrincipalSelfSid; - PGENERIC_MAPPING GenericMapping; - DWORD ObjectTypeListCount; - POBJECT_TYPE_LIST ObjectTypeList; -} SE_ACCESS_REQUEST, *PSE_ACCESS_REQUEST; - - -typedef struct _SE_ACCESS_REPLY -{ - DWORD Size; - DWORD ResultListCount; - PACCESS_MASK GrantedAccess; - PDWORD AccessStatus; - PACCESS_REASONS AccessReason; - PPRIVILEGE_SET* Privileges; -} SE_ACCESS_REPLY, *PSE_ACCESS_REPLY; -# 11473 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _SECURITY_IMPERSONATION_LEVEL { - SecurityAnonymous, - SecurityIdentification, - SecurityImpersonation, - SecurityDelegation - } SECURITY_IMPERSONATION_LEVEL, * PSECURITY_IMPERSONATION_LEVEL; -# 11559 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _TOKEN_TYPE { - TokenPrimary = 1, - TokenImpersonation - } TOKEN_TYPE; -typedef TOKEN_TYPE *PTOKEN_TYPE; - - - - - - - -typedef enum _TOKEN_ELEVATION_TYPE { - TokenElevationTypeDefault = 1, - TokenElevationTypeFull, - TokenElevationTypeLimited, -} TOKEN_ELEVATION_TYPE, *PTOKEN_ELEVATION_TYPE; - - - - - - -typedef enum _TOKEN_INFORMATION_CLASS { - TokenUser = 1, - TokenGroups, - TokenPrivileges, - TokenOwner, - TokenPrimaryGroup, - TokenDefaultDacl, - TokenSource, - TokenType, - TokenImpersonationLevel, - TokenStatistics, - TokenRestrictedSids, - TokenSessionId, - TokenGroupsAndPrivileges, - TokenSessionReference, - TokenSandBoxInert, - TokenAuditPolicy, - TokenOrigin, - TokenElevationType, - TokenLinkedToken, - TokenElevation, - TokenHasRestrictions, - TokenAccessInformation, - TokenVirtualizationAllowed, - TokenVirtualizationEnabled, - TokenIntegrityLevel, - TokenUIAccess, - TokenMandatoryPolicy, - TokenLogonSid, - TokenIsAppContainer, - TokenCapabilities, - TokenAppContainerSid, - TokenAppContainerNumber, - TokenUserClaimAttributes, - TokenDeviceClaimAttributes, - TokenRestrictedUserClaimAttributes, - TokenRestrictedDeviceClaimAttributes, - TokenDeviceGroups, - TokenRestrictedDeviceGroups, - TokenSecurityAttributes, - TokenIsRestricted, - TokenProcessTrustLevel, - TokenPrivateNameSpace, - TokenSingletonAttributes, - TokenBnoIsolation, - TokenChildProcessFlags, - TokenIsLessPrivilegedAppContainer, - TokenIsSandboxed, - TokenIsAppSilo, - MaxTokenInfoClass -} TOKEN_INFORMATION_CLASS, *PTOKEN_INFORMATION_CLASS; - - - - - -typedef struct _TOKEN_USER { - SID_AND_ATTRIBUTES User; -} TOKEN_USER, *PTOKEN_USER; - - - -typedef struct _SE_TOKEN_USER { - union { - TOKEN_USER TokenUser; - SID_AND_ATTRIBUTES User; - } ; - - union { - SID Sid; - BYTE Buffer[(sizeof(SID) - sizeof(DWORD) + ((15) * sizeof(DWORD)))]; - } ; - -} SE_TOKEN_USER , PSE_TOKEN_USER; - - - - - - -typedef struct _TOKEN_GROUPS { - DWORD GroupCount; - - - - SID_AND_ATTRIBUTES Groups[1]; - -} TOKEN_GROUPS, *PTOKEN_GROUPS; - -typedef struct _TOKEN_PRIVILEGES { - DWORD PrivilegeCount; - LUID_AND_ATTRIBUTES Privileges[1]; -} TOKEN_PRIVILEGES, *PTOKEN_PRIVILEGES; - - -typedef struct _TOKEN_OWNER { - PSID Owner; -} TOKEN_OWNER, *PTOKEN_OWNER; - - - - - -typedef struct _TOKEN_PRIMARY_GROUP { - PSID PrimaryGroup; -} TOKEN_PRIMARY_GROUP, *PTOKEN_PRIMARY_GROUP; - - -typedef struct _TOKEN_DEFAULT_DACL { - PACL DefaultDacl; -} TOKEN_DEFAULT_DACL, *PTOKEN_DEFAULT_DACL; - -typedef struct _TOKEN_USER_CLAIMS { - PCLAIMS_BLOB UserClaims; -} TOKEN_USER_CLAIMS, *PTOKEN_USER_CLAIMS; - -typedef struct _TOKEN_DEVICE_CLAIMS { - PCLAIMS_BLOB DeviceClaims; -} TOKEN_DEVICE_CLAIMS, *PTOKEN_DEVICE_CLAIMS; - -typedef struct _TOKEN_GROUPS_AND_PRIVILEGES { - DWORD SidCount; - DWORD SidLength; - PSID_AND_ATTRIBUTES Sids; - DWORD RestrictedSidCount; - DWORD RestrictedSidLength; - PSID_AND_ATTRIBUTES RestrictedSids; - DWORD PrivilegeCount; - DWORD PrivilegeLength; - PLUID_AND_ATTRIBUTES Privileges; - LUID AuthenticationId; -} TOKEN_GROUPS_AND_PRIVILEGES, *PTOKEN_GROUPS_AND_PRIVILEGES; - -typedef struct _TOKEN_LINKED_TOKEN { - HANDLE LinkedToken; -} TOKEN_LINKED_TOKEN, *PTOKEN_LINKED_TOKEN; - -typedef struct _TOKEN_ELEVATION { - DWORD TokenIsElevated; -} TOKEN_ELEVATION, *PTOKEN_ELEVATION; - -typedef struct _TOKEN_MANDATORY_LABEL { - SID_AND_ATTRIBUTES Label; -} TOKEN_MANDATORY_LABEL, *PTOKEN_MANDATORY_LABEL; -# 11738 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _TOKEN_MANDATORY_POLICY { - DWORD Policy; -} TOKEN_MANDATORY_POLICY, *PTOKEN_MANDATORY_POLICY; - -typedef PVOID PSECURITY_ATTRIBUTES_OPAQUE; - -typedef struct _TOKEN_ACCESS_INFORMATION { - PSID_AND_ATTRIBUTES_HASH SidHash; - PSID_AND_ATTRIBUTES_HASH RestrictedSidHash; - PTOKEN_PRIVILEGES Privileges; - LUID AuthenticationId; - TOKEN_TYPE TokenType; - SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; - TOKEN_MANDATORY_POLICY MandatoryPolicy; - DWORD Flags; - DWORD AppContainerNumber; - PSID PackageSid; - PSID_AND_ATTRIBUTES_HASH CapabilitiesHash; - PSID TrustLevelSid; - PSECURITY_ATTRIBUTES_OPAQUE SecurityAttributes; -} TOKEN_ACCESS_INFORMATION, *PTOKEN_ACCESS_INFORMATION; - - - - - - - -typedef struct _TOKEN_AUDIT_POLICY { - BYTE PerUserPolicy[(((59)) >> 1) + 1]; -} TOKEN_AUDIT_POLICY, *PTOKEN_AUDIT_POLICY; - - - -typedef struct _TOKEN_SOURCE { - CHAR SourceName[8]; - LUID SourceIdentifier; -} TOKEN_SOURCE, *PTOKEN_SOURCE; - - -typedef struct _TOKEN_STATISTICS { - LUID TokenId; - LUID AuthenticationId; - LARGE_INTEGER ExpirationTime; - TOKEN_TYPE TokenType; - SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; - DWORD DynamicCharged; - DWORD DynamicAvailable; - DWORD GroupCount; - DWORD PrivilegeCount; - LUID ModifiedId; -} TOKEN_STATISTICS, *PTOKEN_STATISTICS; - - - -typedef struct _TOKEN_CONTROL { - LUID TokenId; - LUID AuthenticationId; - LUID ModifiedId; - TOKEN_SOURCE TokenSource; -} TOKEN_CONTROL, *PTOKEN_CONTROL; - -typedef struct _TOKEN_ORIGIN { - LUID OriginatingLogonSession ; -} TOKEN_ORIGIN, * PTOKEN_ORIGIN ; - - -typedef enum _MANDATORY_LEVEL { - MandatoryLevelUntrusted = 0, - MandatoryLevelLow, - MandatoryLevelMedium, - MandatoryLevelHigh, - MandatoryLevelSystem, - MandatoryLevelSecureProcess, - MandatoryLevelCount -} MANDATORY_LEVEL, *PMANDATORY_LEVEL; - -typedef struct _TOKEN_APPCONTAINER_INFORMATION { - PSID TokenAppContainer; -} TOKEN_APPCONTAINER_INFORMATION, *PTOKEN_APPCONTAINER_INFORMATION; - - - - - -typedef struct _TOKEN_SID_INFORMATION { - PSID Sid; -} TOKEN_SID_INFORMATION, *PTOKEN_SID_INFORMATION; - -typedef struct _TOKEN_BNO_ISOLATION_INFORMATION { - PWSTR IsolationPrefix; - BOOLEAN IsolationEnabled; -} TOKEN_BNO_ISOLATION_INFORMATION, *PTOKEN_BNO_ISOLATION_INFORMATION; -# 11861 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE { - DWORD64 Version; - PWSTR Name; -} CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE, *PCLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE; -# 11873 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE { - PVOID pValue; - DWORD ValueLength; -} CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE, - *PCLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE; -# 11945 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _CLAIM_SECURITY_ATTRIBUTE_V1 { - - - - - - - PWSTR Name; - - - - - - WORD ValueType; - - - - - - - WORD Reserved; - - - - - - DWORD Flags; - - - - - - DWORD ValueCount; - - - - - - union { - PLONG64 pInt64; - PDWORD64 pUint64; - PWSTR *ppString; - PCLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE pFqbn; - PCLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE pOctetString; - } Values; -} CLAIM_SECURITY_ATTRIBUTE_V1, *PCLAIM_SECURITY_ATTRIBUTE_V1; - - - - - - -typedef struct _CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 { - - - - - - - DWORD Name; - - - - - - WORD ValueType; - - - - - - - WORD Reserved; - - - - - - DWORD Flags; - - - - - - DWORD ValueCount; - - - - - - union { - DWORD pInt64[1]; - DWORD pUint64[1]; - DWORD ppString[1]; - DWORD pFqbn[1]; - DWORD pOctetString[1]; - } Values; -} CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1, *PCLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1; -# 12064 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _CLAIM_SECURITY_ATTRIBUTES_INFORMATION { - - - - - - WORD Version; - - - - - - WORD Reserved; - - DWORD AttributeCount; - union { - PCLAIM_SECURITY_ATTRIBUTE_V1 pAttributeV1; - } Attribute; -} CLAIM_SECURITY_ATTRIBUTES_INFORMATION, *PCLAIM_SECURITY_ATTRIBUTES_INFORMATION; -# 12091 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef BOOLEAN SECURITY_CONTEXT_TRACKING_MODE, - * PSECURITY_CONTEXT_TRACKING_MODE; - - - - - - - -typedef struct _SECURITY_QUALITY_OF_SERVICE { - DWORD Length; - SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; - SECURITY_CONTEXT_TRACKING_MODE ContextTrackingMode; - BOOLEAN EffectiveOnly; - } SECURITY_QUALITY_OF_SERVICE, * PSECURITY_QUALITY_OF_SERVICE; - - - - - - -typedef struct _SE_IMPERSONATION_STATE { - PACCESS_TOKEN Token; - BOOLEAN CopyOnOpen; - BOOLEAN EffectiveOnly; - SECURITY_IMPERSONATION_LEVEL Level; -} SE_IMPERSONATION_STATE, *PSE_IMPERSONATION_STATE; - - - - - - -typedef DWORD SECURITY_INFORMATION, *PSECURITY_INFORMATION; -# 12147 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef BYTE SE_SIGNING_LEVEL, *PSE_SIGNING_LEVEL; -# 12172 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _SE_IMAGE_SIGNATURE_TYPE -{ - SeImageSignatureNone = 0, - SeImageSignatureEmbedded, - SeImageSignatureCache, - SeImageSignatureCatalogCached, - SeImageSignatureCatalogNotCached, - SeImageSignatureCatalogHint, - SeImageSignaturePackageCatalog, - SeImageSignaturePplMitigated -} SE_IMAGE_SIGNATURE_TYPE, *PSE_IMAGE_SIGNATURE_TYPE; - - -typedef struct _SECURITY_CAPABILITIES { - - - - - PSID AppContainerSid; - PSID_AND_ATTRIBUTES Capabilities; - - DWORD CapabilityCount; - DWORD Reserved; -} SECURITY_CAPABILITIES, *PSECURITY_CAPABILITIES, *LPSECURITY_CAPABILITIES; -# 12263 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _JOB_SET_ARRAY { - HANDLE JobHandle; - DWORD MemberLevel; - DWORD Flags; -} JOB_SET_ARRAY, *PJOB_SET_ARRAY; - - - - - - -typedef struct _EXCEPTION_REGISTRATION_RECORD { - struct _EXCEPTION_REGISTRATION_RECORD *Next; - PEXCEPTION_ROUTINE Handler; -} EXCEPTION_REGISTRATION_RECORD; - -typedef EXCEPTION_REGISTRATION_RECORD *PEXCEPTION_REGISTRATION_RECORD; - - -typedef struct _NT_TIB { - struct _EXCEPTION_REGISTRATION_RECORD *ExceptionList; - PVOID StackBase; - PVOID StackLimit; - PVOID SubSystemTib; - - union { - PVOID FiberData; - DWORD Version; - }; - - - - PVOID ArbitraryUserPointer; - struct _NT_TIB *Self; -} NT_TIB; -typedef NT_TIB *PNT_TIB; - - - - -typedef struct _NT_TIB32 { - DWORD ExceptionList; - DWORD StackBase; - DWORD StackLimit; - DWORD SubSystemTib; - - - union { - DWORD FiberData; - DWORD Version; - }; - - - - - DWORD ArbitraryUserPointer; - DWORD Self; -} NT_TIB32, *PNT_TIB32; - -typedef struct _NT_TIB64 { - DWORD64 ExceptionList; - DWORD64 StackBase; - DWORD64 StackLimit; - DWORD64 SubSystemTib; - - - union { - DWORD64 FiberData; - DWORD Version; - }; - - - - - - DWORD64 ArbitraryUserPointer; - DWORD64 Self; -} NT_TIB64, *PNT_TIB64; -# 12353 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _UMS_CREATE_THREAD_ATTRIBUTES { - DWORD UmsVersion; - PVOID UmsContext; - PVOID UmsCompletionList; -} UMS_CREATE_THREAD_ATTRIBUTES, *PUMS_CREATE_THREAD_ATTRIBUTES; -# 12367 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _COMPONENT_FILTER { - DWORD ComponentFlags; -} COMPONENT_FILTER, *PCOMPONENT_FILTER; -# 12409 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _PROCESS_DYNAMIC_EH_CONTINUATION_TARGET { - ULONG_PTR TargetAddress; - ULONG_PTR Flags; -} PROCESS_DYNAMIC_EH_CONTINUATION_TARGET, *PPROCESS_DYNAMIC_EH_CONTINUATION_TARGET; - -typedef struct _PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION { - WORD NumberOfTargets; - WORD Reserved; - DWORD Reserved2; - PPROCESS_DYNAMIC_EH_CONTINUATION_TARGET Targets; -} PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION, *PPROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION; -# 12442 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE { - ULONG_PTR BaseAddress; - SIZE_T Size; - DWORD Flags; -} PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE, *PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE; - -typedef struct _PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION { - WORD NumberOfRanges; - WORD Reserved; - DWORD Reserved2; - PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE Ranges; -} PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION, *PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION; - - - - -typedef struct _QUOTA_LIMITS { - SIZE_T PagedPoolLimit; - SIZE_T NonPagedPoolLimit; - SIZE_T MinimumWorkingSetSize; - SIZE_T MaximumWorkingSetSize; - SIZE_T PagefileLimit; - LARGE_INTEGER TimeLimit; -} QUOTA_LIMITS, *PQUOTA_LIMITS; - - - - - - - -typedef union _RATE_QUOTA_LIMIT { - DWORD RateData; - struct { - DWORD RatePercent : 7; - DWORD Reserved0 : 25; - } ; -} RATE_QUOTA_LIMIT, *PRATE_QUOTA_LIMIT; - -typedef struct _QUOTA_LIMITS_EX { - SIZE_T PagedPoolLimit; - SIZE_T NonPagedPoolLimit; - SIZE_T MinimumWorkingSetSize; - SIZE_T MaximumWorkingSetSize; - SIZE_T PagefileLimit; - LARGE_INTEGER TimeLimit; - SIZE_T WorkingSetLimit; - SIZE_T Reserved2; - SIZE_T Reserved3; - SIZE_T Reserved4; - DWORD Flags; - RATE_QUOTA_LIMIT CpuRateLimit; -} QUOTA_LIMITS_EX, *PQUOTA_LIMITS_EX; - - - - - - -typedef struct _IO_COUNTERS { - ULONGLONG ReadOperationCount; - ULONGLONG WriteOperationCount; - ULONGLONG OtherOperationCount; - ULONGLONG ReadTransferCount; - ULONGLONG WriteTransferCount; - ULONGLONG OtherTransferCount; -} IO_COUNTERS; -typedef IO_COUNTERS *PIO_COUNTERS; - - - - - - - -typedef enum _HARDWARE_COUNTER_TYPE { - PMCCounter, - MaxHardwareCounterType -} HARDWARE_COUNTER_TYPE, *PHARDWARE_COUNTER_TYPE; - - - - -typedef enum _PROCESS_MITIGATION_POLICY { - ProcessDEPPolicy, - ProcessASLRPolicy, - ProcessDynamicCodePolicy, - ProcessStrictHandleCheckPolicy, - ProcessSystemCallDisablePolicy, - ProcessMitigationOptionsMask, - ProcessExtensionPointDisablePolicy, - ProcessControlFlowGuardPolicy, - ProcessSignaturePolicy, - ProcessFontDisablePolicy, - ProcessImageLoadPolicy, - ProcessSystemCallFilterPolicy, - ProcessPayloadRestrictionPolicy, - ProcessChildProcessPolicy, - ProcessSideChannelIsolationPolicy, - ProcessUserShadowStackPolicy, - ProcessRedirectionTrustPolicy, - ProcessUserPointerAuthPolicy, - ProcessSEHOPPolicy, - ProcessActivationContextTrustPolicy, - MaxProcessMitigationPolicy -} PROCESS_MITIGATION_POLICY, *PPROCESS_MITIGATION_POLICY; - - - - - - -typedef struct _PROCESS_MITIGATION_ASLR_POLICY { - union { - DWORD Flags; - struct { - DWORD EnableBottomUpRandomization : 1; - DWORD EnableForceRelocateImages : 1; - DWORD EnableHighEntropy : 1; - DWORD DisallowStrippedImages : 1; - DWORD ReservedFlags : 28; - } ; - } ; -} PROCESS_MITIGATION_ASLR_POLICY, *PPROCESS_MITIGATION_ASLR_POLICY; - -typedef struct _PROCESS_MITIGATION_DEP_POLICY { - union { - DWORD Flags; - struct { - DWORD Enable : 1; - DWORD DisableAtlThunkEmulation : 1; - DWORD ReservedFlags : 30; - } ; - } ; - BOOLEAN Permanent; -} PROCESS_MITIGATION_DEP_POLICY, *PPROCESS_MITIGATION_DEP_POLICY; - -typedef struct _PROCESS_MITIGATION_SEHOP_POLICY { - union { - DWORD Flags; - struct { - DWORD EnableSehop : 1; - DWORD ReservedFlags : 31; - } ; - } ; -} PROCESS_MITIGATION_SEHOP_POLICY, *PPROCESS_MITIGATION_SEHOP_POLICY; - -typedef struct _PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY { - union { - DWORD Flags; - struct { - DWORD RaiseExceptionOnInvalidHandleReference : 1; - DWORD HandleExceptionsPermanentlyEnabled : 1; - DWORD ReservedFlags : 30; - } ; - } ; -} PROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY, *PPROCESS_MITIGATION_STRICT_HANDLE_CHECK_POLICY; - -typedef struct _PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY { - union { - DWORD Flags; - struct { - DWORD DisallowWin32kSystemCalls : 1; - DWORD AuditDisallowWin32kSystemCalls : 1; - DWORD ReservedFlags : 30; - } ; - } ; -} PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY, *PPROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY; - -typedef struct _PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY { - union { - DWORD Flags; - struct { - DWORD DisableExtensionPoints : 1; - DWORD ReservedFlags : 31; - } ; - } ; -} PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY, *PPROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY; - -typedef struct _PROCESS_MITIGATION_DYNAMIC_CODE_POLICY { - union { - DWORD Flags; - struct { - DWORD ProhibitDynamicCode : 1; - DWORD AllowThreadOptOut : 1; - DWORD AllowRemoteDowngrade : 1; - DWORD AuditProhibitDynamicCode : 1; - DWORD ReservedFlags : 28; - } ; - } ; -} PROCESS_MITIGATION_DYNAMIC_CODE_POLICY, *PPROCESS_MITIGATION_DYNAMIC_CODE_POLICY; - -typedef struct _PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY { - union { - DWORD Flags; - struct { - DWORD EnableControlFlowGuard : 1; - DWORD EnableExportSuppression : 1; - DWORD StrictMode : 1; - DWORD EnableXfg : 1; - DWORD EnableXfgAuditMode : 1; - DWORD ReservedFlags : 27; - } ; - } ; -} PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY, *PPROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY; - -typedef struct _PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY { - union { - DWORD Flags; - struct { - DWORD MicrosoftSignedOnly : 1; - DWORD StoreSignedOnly : 1; - DWORD MitigationOptIn : 1; - DWORD AuditMicrosoftSignedOnly : 1; - DWORD AuditStoreSignedOnly : 1; - DWORD ReservedFlags : 27; - } ; - } ; -} PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY, *PPROCESS_MITIGATION_BINARY_SIGNATURE_POLICY; - -typedef struct _PROCESS_MITIGATION_FONT_DISABLE_POLICY { - union { - DWORD Flags; - struct { - DWORD DisableNonSystemFonts : 1; - DWORD AuditNonSystemFontLoading : 1; - DWORD ReservedFlags : 30; - } ; - } ; -} PROCESS_MITIGATION_FONT_DISABLE_POLICY, *PPROCESS_MITIGATION_FONT_DISABLE_POLICY; - -typedef struct _PROCESS_MITIGATION_IMAGE_LOAD_POLICY { - union { - DWORD Flags; - struct { - DWORD NoRemoteImages : 1; - DWORD NoLowMandatoryLabelImages : 1; - DWORD PreferSystem32Images : 1; - DWORD AuditNoRemoteImages : 1; - DWORD AuditNoLowMandatoryLabelImages : 1; - DWORD ReservedFlags : 27; - } ; - } ; -} PROCESS_MITIGATION_IMAGE_LOAD_POLICY, *PPROCESS_MITIGATION_IMAGE_LOAD_POLICY; - -typedef struct _PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY { - union { - DWORD Flags; - struct { - DWORD FilterId: 4; - DWORD ReservedFlags : 28; - } ; - } ; -} PROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY, *PPROCESS_MITIGATION_SYSTEM_CALL_FILTER_POLICY; - -typedef struct _PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY { - union { - DWORD Flags; - struct { - DWORD EnableExportAddressFilter : 1; - DWORD AuditExportAddressFilter : 1; - - DWORD EnableExportAddressFilterPlus : 1; - DWORD AuditExportAddressFilterPlus : 1; - - DWORD EnableImportAddressFilter : 1; - DWORD AuditImportAddressFilter : 1; - - DWORD EnableRopStackPivot : 1; - DWORD AuditRopStackPivot : 1; - - DWORD EnableRopCallerCheck : 1; - DWORD AuditRopCallerCheck : 1; - - DWORD EnableRopSimExec : 1; - DWORD AuditRopSimExec : 1; - - DWORD ReservedFlags : 20; - } ; - } ; -} PROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY, *PPROCESS_MITIGATION_PAYLOAD_RESTRICTION_POLICY; - -typedef struct _PROCESS_MITIGATION_CHILD_PROCESS_POLICY { - union { - DWORD Flags; - struct { - DWORD NoChildProcessCreation : 1; - DWORD AuditNoChildProcessCreation : 1; - DWORD AllowSecureProcessCreation : 1; - DWORD ReservedFlags : 29; - } ; - } ; -} PROCESS_MITIGATION_CHILD_PROCESS_POLICY, *PPROCESS_MITIGATION_CHILD_PROCESS_POLICY; - -typedef struct _PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY { - union { - DWORD Flags; - struct { - - - - - - DWORD SmtBranchTargetIsolation : 1; -# 12761 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - DWORD IsolateSecurityDomain : 1; - - - - - - - DWORD DisablePageCombine : 1; - - - - - - DWORD SpeculativeStoreBypassDisable : 1; - - - - - - - DWORD RestrictCoreSharing : 1; - - DWORD ReservedFlags : 27; - - } ; - } ; -} PROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY, *PPROCESS_MITIGATION_SIDE_CHANNEL_ISOLATION_POLICY; - -typedef struct _PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY { - union { - DWORD Flags; - struct { - DWORD EnableUserShadowStack : 1; - DWORD AuditUserShadowStack : 1; - DWORD SetContextIpValidation : 1; - DWORD AuditSetContextIpValidation : 1; - DWORD EnableUserShadowStackStrictMode : 1; - DWORD BlockNonCetBinaries : 1; - DWORD BlockNonCetBinariesNonEhcont : 1; - DWORD AuditBlockNonCetBinaries : 1; - DWORD CetDynamicApisOutOfProcOnly : 1; - DWORD SetContextIpValidationRelaxedMode : 1; - DWORD ReservedFlags : 22; - - } ; - } ; -} PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY, *PPROCESS_MITIGATION_USER_SHADOW_STACK_POLICY; - -typedef struct _PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY { - union { - DWORD Flags; - struct { - DWORD EnablePointerAuthUserIp : 1; - DWORD ReservedFlags : 31; - } ; - } ; -} PROCESS_MITIGATION_USER_POINTER_AUTH_POLICY, *PPROCESS_MITIGATION_USER_POINTER_AUTH_POLICY; - -typedef struct _PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY { - union { - DWORD Flags; - struct { - DWORD EnforceRedirectionTrust : 1; - DWORD AuditRedirectionTrust : 1; - DWORD ReservedFlags : 30; - } ; - } ; -} PROCESS_MITIGATION_REDIRECTION_TRUST_POLICY, *PPROCESS_MITIGATION_REDIRECTION_TRUST_POLICY; - -typedef struct _PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY { - union { - DWORD Flags; - struct { - DWORD AssemblyManifestRedirectionTrust : 1; - DWORD ReservedFlags : 31; - } ; - } ; -} PROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY, *PPROCESS_MITIGATION_ACTIVATION_CONTEXT_TRUST_POLICY; - - - - -typedef struct _JOBOBJECT_BASIC_ACCOUNTING_INFORMATION { - LARGE_INTEGER TotalUserTime; - LARGE_INTEGER TotalKernelTime; - LARGE_INTEGER ThisPeriodTotalUserTime; - LARGE_INTEGER ThisPeriodTotalKernelTime; - DWORD TotalPageFaultCount; - DWORD TotalProcesses; - DWORD ActiveProcesses; - DWORD TotalTerminatedProcesses; -} JOBOBJECT_BASIC_ACCOUNTING_INFORMATION, *PJOBOBJECT_BASIC_ACCOUNTING_INFORMATION; - - -typedef struct _JOBOBJECT_BASIC_LIMIT_INFORMATION { - LARGE_INTEGER PerProcessUserTimeLimit; - LARGE_INTEGER PerJobUserTimeLimit; - DWORD LimitFlags; - SIZE_T MinimumWorkingSetSize; - SIZE_T MaximumWorkingSetSize; - DWORD ActiveProcessLimit; - ULONG_PTR Affinity; - DWORD PriorityClass; - DWORD SchedulingClass; -} JOBOBJECT_BASIC_LIMIT_INFORMATION, *PJOBOBJECT_BASIC_LIMIT_INFORMATION; - - -typedef struct _JOBOBJECT_EXTENDED_LIMIT_INFORMATION { - JOBOBJECT_BASIC_LIMIT_INFORMATION BasicLimitInformation; - IO_COUNTERS IoInfo; - SIZE_T ProcessMemoryLimit; - SIZE_T JobMemoryLimit; - SIZE_T PeakProcessMemoryUsed; - SIZE_T PeakJobMemoryUsed; -} JOBOBJECT_EXTENDED_LIMIT_INFORMATION, *PJOBOBJECT_EXTENDED_LIMIT_INFORMATION; - - - - - -typedef struct _JOBOBJECT_BASIC_PROCESS_ID_LIST { - DWORD NumberOfAssignedProcesses; - DWORD NumberOfProcessIdsInList; - ULONG_PTR ProcessIdList[1]; -} JOBOBJECT_BASIC_PROCESS_ID_LIST, *PJOBOBJECT_BASIC_PROCESS_ID_LIST; - -typedef struct _JOBOBJECT_BASIC_UI_RESTRICTIONS { - DWORD UIRestrictionsClass; -} JOBOBJECT_BASIC_UI_RESTRICTIONS, *PJOBOBJECT_BASIC_UI_RESTRICTIONS; - - - - - -typedef struct _JOBOBJECT_SECURITY_LIMIT_INFORMATION { - DWORD SecurityLimitFlags ; - HANDLE JobToken ; - PTOKEN_GROUPS SidsToDisable ; - PTOKEN_PRIVILEGES PrivilegesToDelete ; - PTOKEN_GROUPS RestrictedSids ; -} JOBOBJECT_SECURITY_LIMIT_INFORMATION, *PJOBOBJECT_SECURITY_LIMIT_INFORMATION ; - -typedef struct _JOBOBJECT_END_OF_JOB_TIME_INFORMATION { - DWORD EndOfJobTimeAction; -} JOBOBJECT_END_OF_JOB_TIME_INFORMATION, *PJOBOBJECT_END_OF_JOB_TIME_INFORMATION; - -typedef struct _JOBOBJECT_ASSOCIATE_COMPLETION_PORT { - PVOID CompletionKey; - HANDLE CompletionPort; -} JOBOBJECT_ASSOCIATE_COMPLETION_PORT, *PJOBOBJECT_ASSOCIATE_COMPLETION_PORT; - -typedef struct _JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION { - JOBOBJECT_BASIC_ACCOUNTING_INFORMATION BasicInfo; - IO_COUNTERS IoInfo; -} JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION, *PJOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION; - -typedef struct _JOBOBJECT_JOBSET_INFORMATION { - DWORD MemberLevel; -} JOBOBJECT_JOBSET_INFORMATION, *PJOBOBJECT_JOBSET_INFORMATION; - -typedef enum _JOBOBJECT_RATE_CONTROL_TOLERANCE { - ToleranceLow = 1, - ToleranceMedium, - ToleranceHigh -} JOBOBJECT_RATE_CONTROL_TOLERANCE, *PJOBOBJECT_RATE_CONTROL_TOLERANCE; - -typedef enum _JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL { - ToleranceIntervalShort = 1, - ToleranceIntervalMedium, - ToleranceIntervalLong -} JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, - *PJOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL; - -typedef struct _JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION { - DWORD64 IoReadBytesLimit; - DWORD64 IoWriteBytesLimit; - LARGE_INTEGER PerJobUserTimeLimit; - DWORD64 JobMemoryLimit; - JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlTolerance; - JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL RateControlToleranceInterval; - DWORD LimitFlags; -} JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION, *PJOBOBJECT_NOTIFICATION_LIMIT_INFORMATION; - -typedef struct JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2 { - DWORD64 IoReadBytesLimit; - DWORD64 IoWriteBytesLimit; - LARGE_INTEGER PerJobUserTimeLimit; - union { - DWORD64 JobHighMemoryLimit; - DWORD64 JobMemoryLimit; - } ; - - union { - JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlTolerance; - JOBOBJECT_RATE_CONTROL_TOLERANCE CpuRateControlTolerance; - } ; - - union { - JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL RateControlToleranceInterval; - JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL - CpuRateControlToleranceInterval; - } ; - - DWORD LimitFlags; - JOBOBJECT_RATE_CONTROL_TOLERANCE IoRateControlTolerance; - DWORD64 JobLowMemoryLimit; - JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL IoRateControlToleranceInterval; - JOBOBJECT_RATE_CONTROL_TOLERANCE NetRateControlTolerance; - JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL NetRateControlToleranceInterval; -} JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2; - - - - -typedef struct _JOBOBJECT_LIMIT_VIOLATION_INFORMATION { - DWORD LimitFlags; - DWORD ViolationLimitFlags; - DWORD64 IoReadBytes; - DWORD64 IoReadBytesLimit; - DWORD64 IoWriteBytes; - DWORD64 IoWriteBytesLimit; - LARGE_INTEGER PerJobUserTime; - LARGE_INTEGER PerJobUserTimeLimit; - DWORD64 JobMemory; - DWORD64 JobMemoryLimit; - JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlTolerance; - JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlToleranceLimit; -} JOBOBJECT_LIMIT_VIOLATION_INFORMATION, *PJOBOBJECT_LIMIT_VIOLATION_INFORMATION; - -typedef struct JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2 { - DWORD LimitFlags; - DWORD ViolationLimitFlags; - DWORD64 IoReadBytes; - DWORD64 IoReadBytesLimit; - DWORD64 IoWriteBytes; - DWORD64 IoWriteBytesLimit; - LARGE_INTEGER PerJobUserTime; - LARGE_INTEGER PerJobUserTimeLimit; - DWORD64 JobMemory; - union { - DWORD64 JobHighMemoryLimit; - DWORD64 JobMemoryLimit; - } ; - - union { - JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlTolerance; - JOBOBJECT_RATE_CONTROL_TOLERANCE CpuRateControlTolerance; - } ; - - union { - JOBOBJECT_RATE_CONTROL_TOLERANCE RateControlToleranceLimit; - JOBOBJECT_RATE_CONTROL_TOLERANCE CpuRateControlToleranceLimit; - } ; - - DWORD64 JobLowMemoryLimit; - JOBOBJECT_RATE_CONTROL_TOLERANCE IoRateControlTolerance; - JOBOBJECT_RATE_CONTROL_TOLERANCE IoRateControlToleranceLimit; - JOBOBJECT_RATE_CONTROL_TOLERANCE NetRateControlTolerance; - JOBOBJECT_RATE_CONTROL_TOLERANCE NetRateControlToleranceLimit; -} JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2; - - - - -typedef struct _JOBOBJECT_CPU_RATE_CONTROL_INFORMATION { - DWORD ControlFlags; - union { - DWORD CpuRate; - DWORD Weight; - struct { - WORD MinRate; - WORD MaxRate; - } ; - } ; -} JOBOBJECT_CPU_RATE_CONTROL_INFORMATION, *PJOBOBJECT_CPU_RATE_CONTROL_INFORMATION; - - - - - -typedef enum JOB_OBJECT_NET_RATE_CONTROL_FLAGS { - JOB_OBJECT_NET_RATE_CONTROL_ENABLE = 0x1, - JOB_OBJECT_NET_RATE_CONTROL_MAX_BANDWIDTH = 0x2, - JOB_OBJECT_NET_RATE_CONTROL_DSCP_TAG = 0x4, - JOB_OBJECT_NET_RATE_CONTROL_VALID_FLAGS = 0x7 -} JOB_OBJECT_NET_RATE_CONTROL_FLAGS; - - - - -typedef char __C_ASSERT__[(JOB_OBJECT_NET_RATE_CONTROL_VALID_FLAGS == (JOB_OBJECT_NET_RATE_CONTROL_ENABLE + JOB_OBJECT_NET_RATE_CONTROL_MAX_BANDWIDTH + JOB_OBJECT_NET_RATE_CONTROL_DSCP_TAG))?1:-1]; -# 13060 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct JOBOBJECT_NET_RATE_CONTROL_INFORMATION { - DWORD64 MaxBandwidth; - JOB_OBJECT_NET_RATE_CONTROL_FLAGS ControlFlags; - BYTE DscpTag; -} JOBOBJECT_NET_RATE_CONTROL_INFORMATION; -# 13073 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum JOB_OBJECT_IO_RATE_CONTROL_FLAGS { - JOB_OBJECT_IO_RATE_CONTROL_ENABLE = 0x1, - JOB_OBJECT_IO_RATE_CONTROL_STANDALONE_VOLUME = 0x2, - JOB_OBJECT_IO_RATE_CONTROL_FORCE_UNIT_ACCESS_ALL = 0x4, - JOB_OBJECT_IO_RATE_CONTROL_FORCE_UNIT_ACCESS_ON_SOFT_CAP = 0x8, - JOB_OBJECT_IO_RATE_CONTROL_VALID_FLAGS = JOB_OBJECT_IO_RATE_CONTROL_ENABLE | - JOB_OBJECT_IO_RATE_CONTROL_STANDALONE_VOLUME | - JOB_OBJECT_IO_RATE_CONTROL_FORCE_UNIT_ACCESS_ALL | - JOB_OBJECT_IO_RATE_CONTROL_FORCE_UNIT_ACCESS_ON_SOFT_CAP -} JOB_OBJECT_IO_RATE_CONTROL_FLAGS; - - - - - - - -typedef struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE { - LONG64 MaxIops; - LONG64 MaxBandwidth; - LONG64 ReservationIops; - PWSTR VolumeName; - DWORD BaseIoSize; - JOB_OBJECT_IO_RATE_CONTROL_FLAGS ControlFlags; - WORD VolumeNameLength; -} JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE; - -typedef JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE - JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V1; - -typedef struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V2 { - LONG64 MaxIops; - LONG64 MaxBandwidth; - LONG64 ReservationIops; - PWSTR VolumeName; - DWORD BaseIoSize; - JOB_OBJECT_IO_RATE_CONTROL_FLAGS ControlFlags; - WORD VolumeNameLength; - LONG64 CriticalReservationIops; - LONG64 ReservationBandwidth; - LONG64 CriticalReservationBandwidth; - LONG64 MaxTimePercent; - LONG64 ReservationTimePercent; - LONG64 CriticalReservationTimePercent; -} JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V2; - -typedef struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V3 { - LONG64 MaxIops; - LONG64 MaxBandwidth; - LONG64 ReservationIops; - PWSTR VolumeName; - DWORD BaseIoSize; - JOB_OBJECT_IO_RATE_CONTROL_FLAGS ControlFlags; - WORD VolumeNameLength; - LONG64 CriticalReservationIops; - LONG64 ReservationBandwidth; - LONG64 CriticalReservationBandwidth; - LONG64 MaxTimePercent; - LONG64 ReservationTimePercent; - LONG64 CriticalReservationTimePercent; - LONG64 SoftMaxIops; - LONG64 SoftMaxBandwidth; - LONG64 SoftMaxTimePercent; - LONG64 LimitExcessNotifyIops; - LONG64 LimitExcessNotifyBandwidth; - LONG64 LimitExcessNotifyTimePercent; -} JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V3; - - - - -typedef enum JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS { - JOBOBJECT_IO_ATTRIBUTION_CONTROL_ENABLE = 0x1, - JOBOBJECT_IO_ATTRIBUTION_CONTROL_DISABLE = 0x2, - JOBOBJECT_IO_ATTRIBUTION_CONTROL_VALID_FLAGS = 0x3 -} JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS; - -typedef struct _JOBOBJECT_IO_ATTRIBUTION_STATS { - - ULONG_PTR IoCount; - ULONGLONG TotalNonOverlappedQueueTime; - ULONGLONG TotalNonOverlappedServiceTime; - ULONGLONG TotalSize; - -} JOBOBJECT_IO_ATTRIBUTION_STATS, *PJOBOBJECT_IO_ATTRIBUTION_STATS; - -typedef struct _JOBOBJECT_IO_ATTRIBUTION_INFORMATION { - DWORD ControlFlags; - - JOBOBJECT_IO_ATTRIBUTION_STATS ReadStats; - JOBOBJECT_IO_ATTRIBUTION_STATS WriteStats; - -} JOBOBJECT_IO_ATTRIBUTION_INFORMATION, *PJOBOBJECT_IO_ATTRIBUTION_INFORMATION; -# 13304 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _JOBOBJECTINFOCLASS { - JobObjectBasicAccountingInformation = 1, - JobObjectBasicLimitInformation, - JobObjectBasicProcessIdList, - JobObjectBasicUIRestrictions, - JobObjectSecurityLimitInformation, - JobObjectEndOfJobTimeInformation, - JobObjectAssociateCompletionPortInformation, - JobObjectBasicAndIoAccountingInformation, - JobObjectExtendedLimitInformation, - JobObjectJobSetInformation, - JobObjectGroupInformation, - JobObjectNotificationLimitInformation, - JobObjectLimitViolationInformation, - JobObjectGroupInformationEx, - JobObjectCpuRateControlInformation, - JobObjectCompletionFilter, - JobObjectCompletionCounter, - - - - - JobObjectReserved1Information = 18, - JobObjectReserved2Information, - JobObjectReserved3Information, - JobObjectReserved4Information, - JobObjectReserved5Information, - JobObjectReserved6Information, - JobObjectReserved7Information, - JobObjectReserved8Information, - JobObjectReserved9Information, - JobObjectReserved10Information, - JobObjectReserved11Information, - JobObjectReserved12Information, - JobObjectReserved13Information, - JobObjectReserved14Information = 31, - JobObjectNetRateControlInformation, - JobObjectNotificationLimitInformation2, - JobObjectLimitViolationInformation2, - JobObjectCreateSilo, - JobObjectSiloBasicInformation, - JobObjectReserved15Information = 37, - JobObjectReserved16Information = 38, - JobObjectReserved17Information = 39, - JobObjectReserved18Information = 40, - JobObjectReserved19Information = 41, - JobObjectReserved20Information = 42, - JobObjectReserved21Information = 43, - JobObjectReserved22Information = 44, - JobObjectReserved23Information = 45, - JobObjectReserved24Information = 46, - JobObjectReserved25Information = 47, - JobObjectReserved26Information = 48, - JobObjectReserved27Information = 49, - MaxJobObjectInfoClass -} JOBOBJECTINFOCLASS; - - - - -typedef struct _SILOOBJECT_BASIC_INFORMATION { - DWORD SiloId; - DWORD SiloParentId; - DWORD NumberOfProcesses; - BOOLEAN IsInServerSilo; - BYTE Reserved[3]; -} SILOOBJECT_BASIC_INFORMATION, *PSILOOBJECT_BASIC_INFORMATION; - -typedef enum _SERVERSILO_STATE { - SERVERSILO_INITING = 0, - SERVERSILO_STARTED, - SERVERSILO_SHUTTING_DOWN, - SERVERSILO_TERMINATING, - SERVERSILO_TERMINATED, -} SERVERSILO_STATE, *PSERVERSILO_STATE; - -typedef struct _SERVERSILO_BASIC_INFORMATION { - DWORD ServiceSessionId; - SERVERSILO_STATE State; - DWORD ExitStatus; - BOOLEAN IsDownlevelContainer; - PVOID ApiSetSchema; - PVOID HostApiSetSchema; -} SERVERSILO_BASIC_INFORMATION, *PSERVERSILO_BASIC_INFORMATION; -# 13406 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _FIRMWARE_TYPE { - FirmwareTypeUnknown, - FirmwareTypeBios, - FirmwareTypeUefi, - FirmwareTypeMax -} FIRMWARE_TYPE, *PFIRMWARE_TYPE; -# 13451 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _LOGICAL_PROCESSOR_RELATIONSHIP { - RelationProcessorCore, - RelationNumaNode, - RelationCache, - RelationProcessorPackage, - RelationGroup, - RelationProcessorDie, - RelationNumaNodeEx, - RelationProcessorModule, - RelationAll = 0xffff -} LOGICAL_PROCESSOR_RELATIONSHIP; - - - -typedef enum _PROCESSOR_CACHE_TYPE { - CacheUnified, - CacheInstruction, - CacheData, - CacheTrace -} PROCESSOR_CACHE_TYPE; - - - -typedef struct _CACHE_DESCRIPTOR { - BYTE Level; - BYTE Associativity; - WORD LineSize; - DWORD Size; - PROCESSOR_CACHE_TYPE Type; -} CACHE_DESCRIPTOR, *PCACHE_DESCRIPTOR; - -typedef struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION { - ULONG_PTR ProcessorMask; - LOGICAL_PROCESSOR_RELATIONSHIP Relationship; - union { - struct { - BYTE Flags; - } ProcessorCore; - struct { - DWORD NodeNumber; - } NumaNode; - CACHE_DESCRIPTOR Cache; - ULONGLONG Reserved[2]; - } ; -} SYSTEM_LOGICAL_PROCESSOR_INFORMATION, *PSYSTEM_LOGICAL_PROCESSOR_INFORMATION; - -typedef struct _PROCESSOR_RELATIONSHIP { - BYTE Flags; - BYTE EfficiencyClass; - BYTE Reserved[20]; - WORD GroupCount; - GROUP_AFFINITY GroupMask[1]; -} PROCESSOR_RELATIONSHIP, *PPROCESSOR_RELATIONSHIP; - -typedef struct _NUMA_NODE_RELATIONSHIP { - DWORD NodeNumber; - BYTE Reserved[18]; - WORD GroupCount; - union { - GROUP_AFFINITY GroupMask; - - GROUP_AFFINITY GroupMasks[1]; - } ; -} NUMA_NODE_RELATIONSHIP, *PNUMA_NODE_RELATIONSHIP; - -typedef struct _CACHE_RELATIONSHIP { - BYTE Level; - BYTE Associativity; - WORD LineSize; - DWORD CacheSize; - PROCESSOR_CACHE_TYPE Type; - BYTE Reserved[18]; - WORD GroupCount; - union { - GROUP_AFFINITY GroupMask; - - GROUP_AFFINITY GroupMasks[1]; - } ; -} CACHE_RELATIONSHIP, *PCACHE_RELATIONSHIP; - -typedef struct _PROCESSOR_GROUP_INFO { - BYTE MaximumProcessorCount; - BYTE ActiveProcessorCount; - BYTE Reserved[38]; - KAFFINITY ActiveProcessorMask; -} PROCESSOR_GROUP_INFO, *PPROCESSOR_GROUP_INFO; - -typedef struct _GROUP_RELATIONSHIP { - WORD MaximumGroupCount; - WORD ActiveGroupCount; - BYTE Reserved[20]; - PROCESSOR_GROUP_INFO GroupInfo[1]; -} GROUP_RELATIONSHIP, *PGROUP_RELATIONSHIP; - - struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX { - LOGICAL_PROCESSOR_RELATIONSHIP Relationship; - DWORD Size; - union { - PROCESSOR_RELATIONSHIP Processor; - NUMA_NODE_RELATIONSHIP NumaNode; - CACHE_RELATIONSHIP Cache; - GROUP_RELATIONSHIP Group; - } ; -}; - -typedef struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, *PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX; - -typedef enum _CPU_SET_INFORMATION_TYPE { - CpuSetInformation -} CPU_SET_INFORMATION_TYPE, *PCPU_SET_INFORMATION_TYPE; - - struct _SYSTEM_CPU_SET_INFORMATION { - DWORD Size; - CPU_SET_INFORMATION_TYPE Type; - union { - struct { - DWORD Id; - WORD Group; - BYTE LogicalProcessorIndex; - BYTE CoreIndex; - BYTE LastLevelCacheIndex; - BYTE NumaNodeIndex; - BYTE EfficiencyClass; - union { - - - - - - - BYTE AllFlags; - struct { - BYTE Parked : 1; - BYTE Allocated : 1; - BYTE AllocatedToTargetProcess : 1; - BYTE RealTime : 1; - BYTE ReservedFlags : 4; - } ; - } ; - - union { - DWORD Reserved; - BYTE SchedulingClass; - }; - - DWORD64 AllocationTag; - } CpuSet; - } ; -}; - -typedef struct _SYSTEM_CPU_SET_INFORMATION SYSTEM_CPU_SET_INFORMATION, *PSYSTEM_CPU_SET_INFORMATION; - - - - -typedef struct _SYSTEM_POOL_ZEROING_INFORMATION { - BOOLEAN PoolZeroingSupportPresent; -} SYSTEM_POOL_ZEROING_INFORMATION, *PSYSTEM_POOL_ZEROING_INFORMATION; - - - - -typedef struct _SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION { - DWORD64 CycleTime; -} SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION, *PSYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION; - -typedef struct _SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION { - DWORD Machine : 16; - DWORD KernelMode : 1; - DWORD UserMode : 1; - DWORD Native : 1; - DWORD Process : 1; - DWORD WoW64Container : 1; - DWORD ReservedZero0 : 11; -} SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION; -# 13856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _XSTATE_FEATURE { - DWORD Offset; - DWORD Size; -} XSTATE_FEATURE, *PXSTATE_FEATURE; - -typedef struct _XSTATE_CONFIGURATION { - - DWORD64 EnabledFeatures; - - - DWORD64 EnabledVolatileFeatures; - - - DWORD Size; - - - union { - DWORD ControlFlags; - struct - { - DWORD OptimizedSave : 1; - DWORD CompactionEnabled : 1; - DWORD ExtendedFeatureDisable : 1; - } ; - } ; - - - XSTATE_FEATURE Features[(64)]; - - - DWORD64 EnabledSupervisorFeatures; - - - DWORD64 AlignedFeatures; - - - DWORD AllFeatureSize; - - - DWORD AllFeatures[(64)]; - - - DWORD64 EnabledUserVisibleSupervisorFeatures; - - - DWORD64 ExtendedFeatureDisableFeatures; - - - DWORD AllNonLargeFeatureSize; - - DWORD Spare; - -} XSTATE_CONFIGURATION, *PXSTATE_CONFIGURATION; - - - - -typedef struct _MEMORY_BASIC_INFORMATION { - PVOID BaseAddress; - PVOID AllocationBase; - DWORD AllocationProtect; - - WORD PartitionId; - - SIZE_T RegionSize; - DWORD State; - DWORD Protect; - DWORD Type; -} MEMORY_BASIC_INFORMATION, *PMEMORY_BASIC_INFORMATION; - - - -typedef struct _MEMORY_BASIC_INFORMATION32 { - DWORD BaseAddress; - DWORD AllocationBase; - DWORD AllocationProtect; - DWORD RegionSize; - DWORD State; - DWORD Protect; - DWORD Type; -} MEMORY_BASIC_INFORMATION32, *PMEMORY_BASIC_INFORMATION32; - -typedef struct __declspec(align(16)) _MEMORY_BASIC_INFORMATION64 { - ULONGLONG BaseAddress; - ULONGLONG AllocationBase; - DWORD AllocationProtect; - DWORD __alignment1; - ULONGLONG RegionSize; - DWORD State; - DWORD Protect; - DWORD Type; - DWORD __alignment2; -} MEMORY_BASIC_INFORMATION64, *PMEMORY_BASIC_INFORMATION64; -# 13991 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _CFG_CALL_TARGET_INFO { - ULONG_PTR Offset; - ULONG_PTR Flags; -} CFG_CALL_TARGET_INFO, *PCFG_CALL_TARGET_INFO; -# 14071 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _MEM_ADDRESS_REQUIREMENTS { - PVOID LowestStartingAddress; - PVOID HighestEndingAddress; - SIZE_T Alignment; -} MEM_ADDRESS_REQUIREMENTS, *PMEM_ADDRESS_REQUIREMENTS; -# 14098 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum MEM_EXTENDED_PARAMETER_TYPE { - MemExtendedParameterInvalidType = 0, - MemExtendedParameterAddressRequirements, - MemExtendedParameterNumaNode, - MemExtendedParameterPartitionHandle, - MemExtendedParameterUserPhysicalHandle, - MemExtendedParameterAttributeFlags, - MemExtendedParameterImageMachine, - MemExtendedParameterMax -} MEM_EXTENDED_PARAMETER_TYPE, *PMEM_EXTENDED_PARAMETER_TYPE; - - - -typedef struct __declspec(align(8)) MEM_EXTENDED_PARAMETER { - - struct { - DWORD64 Type : 8; - DWORD64 Reserved : 64 - 8; - } ; - - union { - DWORD64 ULong64; - PVOID Pointer; - SIZE_T Size; - HANDLE Handle; - DWORD ULong; - } ; - -} MEM_EXTENDED_PARAMETER, *PMEM_EXTENDED_PARAMETER; -# 14138 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _MEM_DEDICATED_ATTRIBUTE_TYPE { - MemDedicatedAttributeReadBandwidth = 0, - MemDedicatedAttributeReadLatency, - MemDedicatedAttributeWriteBandwidth, - MemDedicatedAttributeWriteLatency, - MemDedicatedAttributeMax -} MEM_DEDICATED_ATTRIBUTE_TYPE, *PMEM_DEDICATED_ATTRIBUTE_TYPE; -# 14160 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum MEM_SECTION_EXTENDED_PARAMETER_TYPE { - MemSectionExtendedParameterInvalidType = 0, - MemSectionExtendedParameterUserPhysicalFlags, - MemSectionExtendedParameterNumaNode, - MemSectionExtendedParameterSigningLevel, - MemSectionExtendedParameterMax -} MEM_SECTION_EXTENDED_PARAMETER_TYPE, *PMEM_SECTION_EXTENDED_PARAMETER_TYPE; -# 14176 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _ENCLAVE_CREATE_INFO_SGX { - BYTE Secs[4096]; -} ENCLAVE_CREATE_INFO_SGX, *PENCLAVE_CREATE_INFO_SGX; - -typedef struct _ENCLAVE_INIT_INFO_SGX { - BYTE SigStruct[1808]; - BYTE Reserved1[240]; - BYTE EInitToken[304]; - BYTE Reserved2[1744]; -} ENCLAVE_INIT_INFO_SGX, *PENCLAVE_INIT_INFO_SGX; - - - -typedef struct _ENCLAVE_CREATE_INFO_VBS { - DWORD Flags; - BYTE OwnerID[32]; -} ENCLAVE_CREATE_INFO_VBS, *PENCLAVE_CREATE_INFO_VBS; - - - - - -typedef struct _ENCLAVE_CREATE_INFO_VBS_BASIC { - DWORD Flags; - BYTE OwnerID[32]; -} ENCLAVE_CREATE_INFO_VBS_BASIC, *PENCLAVE_CREATE_INFO_VBS_BASIC; - -typedef struct _ENCLAVE_LOAD_DATA_VBS_BASIC { - DWORD PageType; -} ENCLAVE_LOAD_DATA_VBS_BASIC, *PENCLAVE_LOAD_DATA_VBS_BASIC; - - - - - - - -typedef struct _ENCLAVE_INIT_INFO_VBS_BASIC { - BYTE FamilyId[16]; - BYTE ImageId[16]; - ULONGLONG EnclaveSize; - DWORD EnclaveSvn; - DWORD Reserved; - union { - HANDLE SignatureInfoHandle; - ULONGLONG Unused; - } ; -} ENCLAVE_INIT_INFO_VBS_BASIC, *PENCLAVE_INIT_INFO_VBS_BASIC; - - -typedef struct _ENCLAVE_INIT_INFO_VBS { - DWORD Length; - DWORD ThreadCount; -} ENCLAVE_INIT_INFO_VBS, *PENCLAVE_INIT_INFO_VBS; - - - -typedef PVOID (ENCLAVE_TARGET_FUNCTION)(PVOID); -typedef ENCLAVE_TARGET_FUNCTION (*PENCLAVE_TARGET_FUNCTION); -typedef PENCLAVE_TARGET_FUNCTION LPENCLAVE_TARGET_FUNCTION; - - - - - - -typedef struct __declspec(align(8)) _MEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE { - MEM_DEDICATED_ATTRIBUTE_TYPE Type; - DWORD Reserved; - DWORD64 Value; -} MEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE, *PMEMORY_PARTITION_DEDICATED_MEMORY_ATTRIBUTE; - -typedef struct __declspec(align(8)) _MEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION { - - - - - - - DWORD NextEntryOffset; - - - - - - DWORD SizeOfInformation; - - - - - - DWORD Flags; - - - - - - - DWORD AttributesOffset; - - - - - - DWORD AttributeCount; - - - - - - DWORD Reserved; - - - - - - DWORD64 TypeId; - -} MEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION, *PMEMORY_PARTITION_DEDICATED_MEMORY_INFORMATION; -# 14433 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _FILE_ID_128 { - BYTE Identifier[16]; -} FILE_ID_128, *PFILE_ID_128; - - - - - -typedef struct _FILE_NOTIFY_INFORMATION { - DWORD NextEntryOffset; - DWORD Action; - DWORD FileNameLength; - WCHAR FileName[1]; -} FILE_NOTIFY_INFORMATION, *PFILE_NOTIFY_INFORMATION; - - -typedef struct _FILE_NOTIFY_EXTENDED_INFORMATION { - DWORD NextEntryOffset; - DWORD Action; - LARGE_INTEGER CreationTime; - LARGE_INTEGER LastModificationTime; - LARGE_INTEGER LastChangeTime; - LARGE_INTEGER LastAccessTime; - LARGE_INTEGER AllocatedLength; - LARGE_INTEGER FileSize; - DWORD FileAttributes; - union { - DWORD ReparsePointTag; - DWORD EaSize; - } ; - LARGE_INTEGER FileId; - LARGE_INTEGER ParentFileId; - DWORD FileNameLength; - WCHAR FileName[1]; -} FILE_NOTIFY_EXTENDED_INFORMATION, *PFILE_NOTIFY_EXTENDED_INFORMATION; -# 14477 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _FILE_NOTIFY_FULL_INFORMATION { - DWORD NextEntryOffset; - DWORD Action; - LARGE_INTEGER CreationTime; - LARGE_INTEGER LastModificationTime; - LARGE_INTEGER LastChangeTime; - LARGE_INTEGER LastAccessTime; - LARGE_INTEGER AllocatedLength; - LARGE_INTEGER FileSize; - DWORD FileAttributes; - union { - DWORD ReparsePointTag; - DWORD EaSize; - } ; - LARGE_INTEGER FileId; - LARGE_INTEGER ParentFileId; - WORD FileNameLength; - BYTE FileNameFlags; - BYTE Reserved; - WCHAR FileName[1]; -} FILE_NOTIFY_FULL_INFORMATION, *PFILE_NOTIFY_FULL_INFORMATION; -# 14512 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef union _FILE_SEGMENT_ELEMENT { - PVOID64 Buffer; - ULONGLONG Alignment; -}FILE_SEGMENT_ELEMENT, *PFILE_SEGMENT_ELEMENT; -# 14583 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _REPARSE_GUID_DATA_BUFFER { - DWORD ReparseTag; - WORD ReparseDataLength; - WORD Reserved; - GUID ReparseGuid; - struct { - BYTE DataBuffer[1]; - } GenericReparseBuffer; -} REPARSE_GUID_DATA_BUFFER, *PREPARSE_GUID_DATA_BUFFER; -# 14738 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _SCRUB_DATA_INPUT { - - - - - - DWORD Size; -# 14753 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - DWORD Flags; - - - - - - - - DWORD MaximumIos; - - - - - - - - DWORD ObjectId[4]; - - - - - - DWORD Reserved[41]; - - - - - - - - BYTE ResumeContext[1040]; - -} SCRUB_DATA_INPUT, *PSCRUB_DATA_INPUT; - - - -typedef struct _SCRUB_PARITY_EXTENT { - - LONGLONG Offset; - - ULONGLONG Length; - -} SCRUB_PARITY_EXTENT, *PSCRUB_PARITY_EXTENT; - -typedef struct _SCRUB_PARITY_EXTENT_DATA { - - - - - - WORD Size; - - - - - - WORD Flags; - - - - - - WORD NumberOfParityExtents; - - - - - - WORD MaximumNumberOfParityExtents; - - - - - - SCRUB_PARITY_EXTENT ParityExtents[1]; - -} SCRUB_PARITY_EXTENT_DATA, *PSCRUB_PARITY_EXTENT_DATA; - - - -typedef struct _SCRUB_DATA_OUTPUT { - - - - - - DWORD Size; -# 14849 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - DWORD Flags; - - - - - - DWORD Status; - - - - - - - ULONGLONG ErrorFileOffset; - - - - - - - ULONGLONG ErrorLength; - - - - - - ULONGLONG NumberOfBytesRepaired; - - - - - - ULONGLONG NumberOfBytesFailed; - - - - - - ULONGLONG InternalFileReference; -# 14898 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - WORD ResumeContextLength; - - - - - - - - WORD ParityExtentDataOffset; - - - - - - DWORD Reserved[9]; -# 14930 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - ULONGLONG NumberOfMetadataBytesProcessed; - - - - - - ULONGLONG NumberOfDataBytesProcessed; - - - - - - ULONGLONG TotalNumberOfMetadataBytesInUse; - - - - - - ULONGLONG TotalNumberOfDataBytesInUse; -# 14962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - ULONGLONG DataBytesSkippedDueToNoAllocation; - - - - - - ULONGLONG DataBytesSkippedDueToInvalidRun; - - - - - - ULONGLONG DataBytesSkippedDueToIntegrityStream; - - - - - - ULONGLONG DataBytesSkippedDueToRegionBeingClean; - - - - - - ULONGLONG DataBytesSkippedDueToLockConflict; - - - - - - ULONGLONG DataBytesSkippedDueToNoScrubDataFlag; - - - - - - ULONGLONG DataBytesSkippedDueToNoScrubNonIntegrityStreamFlag; - - - - - - ULONGLONG DataBytesScrubbed; -# 15025 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - BYTE ResumeContext[1040]; - -} SCRUB_DATA_OUTPUT, *PSCRUB_DATA_OUTPUT; -# 15039 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _SharedVirtualDiskSupportType -{ - - - - SharedVirtualDisksUnsupported = 0, - - - - - SharedVirtualDisksSupported = 1, - - - - - - SharedVirtualDiskSnapshotsSupported = 3, - - - - - - SharedVirtualDiskCDPSnapshotsSupported = 7 -} SharedVirtualDiskSupportType; - -typedef enum _SharedVirtualDiskHandleState -{ - - - - SharedVirtualDiskHandleStateNone = 0, - - - - - - SharedVirtualDiskHandleStateFileShared = 1, - - - - - - SharedVirtualDiskHandleStateHandleShared = 3 -} SharedVirtualDiskHandleState; - - - - - -typedef struct _SHARED_VIRTUAL_DISK_SUPPORT { - - - - - SharedVirtualDiskSupportType SharedVirtualDiskSupport; - - - - - - SharedVirtualDiskHandleState HandleState; -} SHARED_VIRTUAL_DISK_SUPPORT, *PSHARED_VIRTUAL_DISK_SUPPORT; -# 15120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _REARRANGE_FILE_DATA { - - - - - - ULONGLONG SourceStartingOffset; - - - - - ULONGLONG TargetOffset; - - - - - - HANDLE SourceFileHandle; - - - - - DWORD Length; - - - - - DWORD Flags; - -} REARRANGE_FILE_DATA, *PREARRANGE_FILE_DATA; - - - - - - -typedef struct _REARRANGE_FILE_DATA32 { - - ULONGLONG SourceStartingOffset; - ULONGLONG TargetOffset; - UINT32 SourceFileHandle; - DWORD Length; - DWORD Flags; - -} REARRANGE_FILE_DATA32, *PREARRANGE_FILE_DATA32; -# 15180 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _SHUFFLE_FILE_DATA { - - LONGLONG StartingOffset; - LONGLONG Length; - DWORD Flags; - -} SHUFFLE_FILE_DATA, *PSHUFFLE_FILE_DATA; -# 15231 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _NETWORK_APP_INSTANCE_EA { - - - - - - - GUID AppInstanceID; - - - - - - DWORD CsvFlags; - -} NETWORK_APP_INSTANCE_EA, *PNETWORK_APP_INSTANCE_EA; -# 15273 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_MAX_POWER_SAVINGS; - - - - - - -extern const GUID GUID_MIN_POWER_SAVINGS; - - - - - - -extern const GUID GUID_TYPICAL_POWER_SAVINGS; - - - - - - - -extern const GUID NO_SUBGROUP_GUID; - - - - - - - -extern const GUID ALL_POWERSCHEMES_GUID; -# 15340 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_POWERSCHEME_PERSONALITY; -# 15349 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_ACTIVE_POWERSCHEME; -# 15364 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_IDLE_RESILIENCY_SUBGROUP; - - - - - - - -extern const GUID GUID_IDLE_RESILIENCY_PERIOD; - - - - - -extern const GUID GUID_DEEP_SLEEP_ENABLED; -# 15387 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_DEEP_SLEEP_PLATFORM_STATE; - - - - - - -extern const GUID GUID_DISK_COALESCING_POWERDOWN_TIMEOUT; -# 15407 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_EXECUTION_REQUIRED_REQUEST_TIMEOUT; -# 15418 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_VIDEO_SUBGROUP; - - - - - - - -extern const GUID GUID_VIDEO_POWERDOWN_TIMEOUT; -# 15435 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_VIDEO_ANNOYANCE_TIMEOUT; -# 15444 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_VIDEO_ADAPTIVE_PERCENT_INCREASE; - - - - - - - -extern const GUID GUID_VIDEO_DIM_TIMEOUT; - - - - - - - -extern const GUID GUID_VIDEO_ADAPTIVE_POWERDOWN; - - - - - - -extern const GUID GUID_MONITOR_POWER_ON; - - - - - - -extern const GUID GUID_DEVICE_POWER_POLICY_VIDEO_BRIGHTNESS; - - - - - - -extern const GUID GUID_DEVICE_POWER_POLICY_VIDEO_DIM_BRIGHTNESS; - - - - - - -extern const GUID GUID_VIDEO_CURRENT_MONITOR_BRIGHTNESS; - - - - - - - -extern const GUID GUID_VIDEO_ADAPTIVE_DISPLAY_BRIGHTNESS; - - - - - - -extern const GUID GUID_CONSOLE_DISPLAY_STATE; - - - - - - - -extern const GUID GUID_ALLOW_DISPLAY_REQUIRED; -# 15520 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_VIDEO_CONSOLE_LOCK_TIMEOUT; -# 15529 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_ADVANCED_COLOR_QUALITY_BIAS; - - - - - - -extern const GUID GUID_ADAPTIVE_POWER_BEHAVIOR_SUBGROUP; - - - - - - -extern const GUID GUID_NON_ADAPTIVE_INPUT_TIMEOUT; - - - - - - -extern const GUID GUID_ADAPTIVE_INPUT_CONTROLLER_STATE; - - - - - - - -extern const GUID GUID_DISK_SUBGROUP; - - - - -extern const GUID GUID_DISK_MAX_POWER; - - - - - -extern const GUID GUID_DISK_POWERDOWN_TIMEOUT; - - - - - - -extern const GUID GUID_DISK_IDLE_TIMEOUT; -# 15585 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_DISK_BURST_IGNORE_THRESHOLD; - - - - - -extern const GUID GUID_DISK_ADAPTIVE_POWERDOWN; - - - - -extern const GUID GUID_DISK_NVME_NOPPME; -# 15605 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_SLEEP_SUBGROUP; - - - - - - - -extern const GUID GUID_SLEEP_IDLE_THRESHOLD; - - - - - -extern const GUID GUID_STANDBY_TIMEOUT; -# 15628 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_UNATTEND_SLEEP_TIMEOUT; - - - - - -extern const GUID GUID_HIBERNATE_TIMEOUT; - - - - - -extern const GUID GUID_HIBERNATE_FASTS4_POLICY; -# 15649 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_CRITICAL_POWER_TRANSITION; - - - - - -extern const GUID GUID_SYSTEM_AWAYMODE; - - - - - - -extern const GUID GUID_ALLOW_AWAYMODE; - - - - - - -extern const GUID GUID_USER_PRESENCE_PREDICTION; - - - - - - -extern const GUID GUID_STANDBY_BUDGET_GRACE_PERIOD; - - - - - - -extern const GUID GUID_STANDBY_BUDGET_PERCENT; - - - - - - -extern const GUID GUID_STANDBY_RESERVE_GRACE_PERIOD; - - - - - - -extern const GUID GUID_STANDBY_RESERVE_TIME; - - - - - - -extern const GUID GUID_STANDBY_RESET_PERCENT; - - - - - - -extern const GUID GUID_HUPR_ADAPTIVE_DISPLAY_TIMEOUT; - - - - - - - -extern const GUID GUID_HUPR_ADAPTIVE_DIM_TIMEOUT; - - - - - - - -extern const GUID GUID_ALLOW_STANDBY_STATES; - - - - - - -extern const GUID GUID_ALLOW_RTC_WAKE; - - - - - - -extern const GUID GUID_LEGACY_RTC_MITIGATION; - - - - - - - -extern const GUID GUID_ALLOW_SYSTEM_REQUIRED; -# 15758 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_POWER_SAVING_STATUS; - - - - - - - -extern const GUID GUID_ENERGY_SAVER_SUBGROUP; - - - - - - -extern const GUID GUID_ENERGY_SAVER_BATTERY_THRESHOLD; - - - - - - -extern const GUID GUID_ENERGY_SAVER_BRIGHTNESS; - - - - - - -extern const GUID GUID_ENERGY_SAVER_POLICY; -# 15796 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_SYSTEM_BUTTON_SUBGROUP; -# 15817 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_POWERBUTTON_ACTION; - - - - - -extern const GUID GUID_SLEEPBUTTON_ACTION; - - - - - - -extern const GUID GUID_USERINTERFACEBUTTON_ACTION; - - - - - -extern const GUID GUID_LIDCLOSE_ACTION; -extern const GUID GUID_LIDOPEN_POWERSTATE; -# 15846 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_BATTERY_SUBGROUP; -# 15858 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_BATTERY_DISCHARGE_ACTION_0; -extern const GUID GUID_BATTERY_DISCHARGE_LEVEL_0; -extern const GUID GUID_BATTERY_DISCHARGE_FLAGS_0; - -extern const GUID GUID_BATTERY_DISCHARGE_ACTION_1; -extern const GUID GUID_BATTERY_DISCHARGE_LEVEL_1; -extern const GUID GUID_BATTERY_DISCHARGE_FLAGS_1; - -extern const GUID GUID_BATTERY_DISCHARGE_ACTION_2; -extern const GUID GUID_BATTERY_DISCHARGE_LEVEL_2; -extern const GUID GUID_BATTERY_DISCHARGE_FLAGS_2; - -extern const GUID GUID_BATTERY_DISCHARGE_ACTION_3; -extern const GUID GUID_BATTERY_DISCHARGE_LEVEL_3; -extern const GUID GUID_BATTERY_DISCHARGE_FLAGS_3; -# 15883 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_SETTINGS_SUBGROUP; - - - - - -extern const GUID GUID_PROCESSOR_THROTTLE_POLICY; -# 15907 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_THROTTLE_MAXIMUM; -# 15917 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_THROTTLE_MAXIMUM_1; -# 15927 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_THROTTLE_MINIMUM; -# 15937 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_THROTTLE_MINIMUM_1; - - - - - - -extern const GUID GUID_PROCESSOR_FREQUENCY_LIMIT; - - - -extern const GUID GUID_PROCESSOR_FREQUENCY_LIMIT_1; -# 15957 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_ALLOW_THROTTLING; -# 15967 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_IDLESTATE_POLICY; - - - - - -extern const GUID GUID_PROCESSOR_PERFSTATE_POLICY; - - - - - - - -extern const GUID GUID_PROCESSOR_PERF_INCREASE_THRESHOLD; -# 15990 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_INCREASE_THRESHOLD_1; - - - - - - - -extern const GUID GUID_PROCESSOR_PERF_DECREASE_THRESHOLD; -# 16007 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_DECREASE_THRESHOLD_1; - - - - - - - -extern const GUID GUID_PROCESSOR_PERF_INCREASE_POLICY; -# 16024 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_INCREASE_POLICY_1; - - - - - - - -extern const GUID GUID_PROCESSOR_PERF_DECREASE_POLICY; -# 16041 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_DECREASE_POLICY_1; -# 16050 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_INCREASE_TIME; -# 16059 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_INCREASE_TIME_1; -# 16068 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_DECREASE_TIME; -# 16077 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_DECREASE_TIME_1; - - - - - - - -extern const GUID GUID_PROCESSOR_PERF_TIME_CHECK; - - - - - - - -extern const GUID GUID_PROCESSOR_PERF_BOOST_POLICY; -# 16105 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_BOOST_MODE; -# 16123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_AUTONOMOUS_MODE; -# 16134 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE; - - - - - - - -extern const GUID GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE_1; -# 16153 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_AUTONOMOUS_ACTIVITY_WINDOW; -# 16163 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_DUTY_CYCLING; -# 16175 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_IDLE_ALLOW_SCALING; - - - - - - -extern const GUID GUID_PROCESSOR_IDLE_DISABLE; -# 16191 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_IDLE_STATE_MAXIMUM; -# 16200 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_IDLE_TIME_CHECK; -# 16209 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_IDLE_DEMOTE_THRESHOLD; - - - - - - - -extern const GUID GUID_PROCESSOR_IDLE_PROMOTE_THRESHOLD; -# 16226 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_CORE_PARKING_INCREASE_THRESHOLD; -# 16235 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_CORE_PARKING_DECREASE_THRESHOLD; - - - - - - -extern const GUID GUID_PROCESSOR_CORE_PARKING_INCREASE_POLICY; -# 16255 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_CORE_PARKING_DECREASE_POLICY; - - - - - - -extern const GUID GUID_PROCESSOR_CORE_PARKING_MAX_CORES; - - - - - - - -extern const GUID GUID_PROCESSOR_CORE_PARKING_MAX_CORES_1; - - - - - - -extern const GUID GUID_PROCESSOR_CORE_PARKING_MIN_CORES; - - - - - - - -extern const GUID GUID_PROCESSOR_CORE_PARKING_MIN_CORES_1; - - - - - - -extern const GUID GUID_PROCESSOR_CORE_PARKING_INCREASE_TIME; - - - - - - -extern const GUID GUID_PROCESSOR_CORE_PARKING_DECREASE_TIME; - - - - - - -extern const GUID GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_DECREASE_FACTOR; - - - - - - -extern const GUID GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_THRESHOLD; - - - - - - -extern const GUID GUID_PROCESSOR_CORE_PARKING_AFFINITY_WEIGHTING; - - - - - - -extern const GUID GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_DECREASE_FACTOR; - - - - - - -extern const GUID GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_THRESHOLD; - - - - - - -extern const GUID GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_WEIGHTING; - - - - - - -extern const GUID GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_THRESHOLD; - - - - - - - -extern const GUID GUID_PROCESSOR_PARKING_CORE_OVERRIDE; - - - - - - - -extern const GUID GUID_PROCESSOR_PARKING_PERF_STATE; - - - - - - - -extern const GUID GUID_PROCESSOR_PARKING_PERF_STATE_1; - - - - - - - -extern const GUID GUID_PROCESSOR_PARKING_CONCURRENCY_THRESHOLD; - - - - - - - -extern const GUID GUID_PROCESSOR_PARKING_HEADROOM_THRESHOLD; - - - - - - - -extern const GUID GUID_PROCESSOR_PARKING_DISTRIBUTION_THRESHOLD; - - - - - - - -extern const GUID GUID_PROCESSOR_SOFT_PARKING_LATENCY; - - - - - - - -extern const GUID GUID_PROCESSOR_PERF_HISTORY; - - - - - - - -extern const GUID GUID_PROCESSOR_PERF_HISTORY_1; -# 16430 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_INCREASE_HISTORY; -# 16440 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_DECREASE_HISTORY; -# 16450 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_CORE_PARKING_HISTORY; -# 16460 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_PERF_LATENCY_HINT; - - - - - - -extern const GUID GUID_PROCESSOR_PERF_LATENCY_HINT_PERF; - - - - - - - -extern const GUID GUID_PROCESSOR_PERF_LATENCY_HINT_PERF_1; - - - - - - - -extern const GUID GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK; - - - - - - - -extern const GUID GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK_1; - - - - - - -extern const GUID GUID_PROCESSOR_MODULE_PARKING_POLICY; - - - - - - -extern const GUID GUID_PROCESSOR_COMPLEX_PARKING_POLICY; -# 16521 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_SMT_UNPARKING_POLICY; -# 16534 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_DISTRIBUTE_UTILITY; -# 16545 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_HETEROGENEOUS_POLICY; - - - - - - - -extern const GUID GUID_PROCESSOR_HETERO_DECREASE_TIME; - - - - - - - -extern const GUID GUID_PROCESSOR_HETERO_INCREASE_TIME; -# 16570 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_HETERO_DECREASE_THRESHOLD; -# 16579 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_HETERO_DECREASE_THRESHOLD_1; -# 16588 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_HETERO_INCREASE_THRESHOLD; -# 16597 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_HETERO_INCREASE_THRESHOLD_1; -# 16606 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_CLASS0_FLOOR_PERF; -# 16615 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_CLASS1_INITIAL_PERF; - - - - - - -extern const GUID GUID_PROCESSOR_THREAD_SCHEDULING_POLICY; -# 16631 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_SHORT_THREAD_SCHEDULING_POLICY; -# 16640 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_SHORT_THREAD_RUNTIME_THRESHOLD; - - - - - - - -extern const GUID GUID_PROCESSOR_SHORT_THREAD_ARCH_CLASS_UPPER_THRESHOLD; - - - - - - - -extern const GUID GUID_PROCESSOR_SHORT_THREAD_ARCH_CLASS_LOWER_THRESHOLD; - - - - - - - -extern const GUID GUID_PROCESSOR_LONG_THREAD_ARCH_CLASS_UPPER_THRESHOLD; - - - - - - - -extern const GUID GUID_PROCESSOR_LONG_THREAD_ARCH_CLASS_LOWER_THRESHOLD; -# 16681 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_SYSTEM_COOLING_POLICY; -# 16692 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD; -# 16701 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD_1; - - - - - - - -extern const GUID GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD; - - - - - - - -extern const GUID GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD_1; - - - - - - - -extern const GUID GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME; - - - - - - - -extern const GUID GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME_1; - - - - - - - -extern const GUID GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME; - - - - - - - -extern const GUID GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME_1; - - - - - - -extern const GUID GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING; - - - - - - - -extern const GUID GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING_1; - - - - - - - -extern const GUID GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR; - - - - - - - -extern const GUID GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR_1; -# 16791 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_LOCK_CONSOLE_ON_WAKE; -# 16801 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_DEVICE_IDLE_POLICY; -# 16810 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_CONNECTIVITY_IN_STANDBY; -# 16820 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_DISCONNECTED_STANDBY_MODE; -# 16841 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_ACDC_POWER_SOURCE; -# 16857 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_LIDSWITCH_STATE_CHANGE; -# 16872 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_LIDSWITCH_STATE_RELIABILITY; -# 16889 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_BATTERY_PERCENTAGE_REMAINING; -# 16902 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_BATTERY_COUNT; - - - - - - -extern const GUID GUID_GLOBAL_USER_PRESENCE; -# 16920 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_SESSION_DISPLAY_STATUS; -# 16930 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_SESSION_USER_PRESENCE; - - - - - - -extern const GUID GUID_IDLE_BACKGROUND_TASK; - - - - - - -extern const GUID GUID_BACKGROUND_TASK_NOTIFICATION; - - - - - - - -extern const GUID GUID_APPLAUNCH_BUTTON; -# 16963 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_PCIEXPRESS_SETTINGS_SUBGROUP; - - - - - -extern const GUID GUID_PCIEXPRESS_ASPM_POLICY; -# 16981 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_ENABLE_SWITCH_FORCED_SHUTDOWN; - - - - - - -extern const GUID GUID_INTSTEER_SUBGROUP; - - - -extern const GUID GUID_INTSTEER_MODE; - - - -extern const GUID GUID_INTSTEER_LOAD_PER_PROC_TRIGGER; - - - -extern const GUID GUID_INTSTEER_TIME_UNPARK_TRIGGER; -# 17011 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_GRAPHICS_SUBGROUP; - - - - - -extern const GUID GUID_GPU_PREFERENCE_POLICY; -# 17028 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID GUID_MIXED_REALITY_MODE; - - - - - - - -extern const GUID GUID_SPR_ACTIVE_SESSION_CHANGE; - - - -typedef enum _SYSTEM_POWER_STATE { - PowerSystemUnspecified = 0, - PowerSystemWorking = 1, - PowerSystemSleeping1 = 2, - PowerSystemSleeping2 = 3, - PowerSystemSleeping3 = 4, - PowerSystemHibernate = 5, - PowerSystemShutdown = 6, - PowerSystemMaximum = 7 -} SYSTEM_POWER_STATE, *PSYSTEM_POWER_STATE; - - - -typedef enum { - PowerActionNone = 0, - PowerActionReserved, - PowerActionSleep, - PowerActionHibernate, - PowerActionShutdown, - PowerActionShutdownReset, - PowerActionShutdownOff, - PowerActionWarmEject, - PowerActionDisplayOff -} POWER_ACTION, *PPOWER_ACTION; - -typedef enum _DEVICE_POWER_STATE { - PowerDeviceUnspecified = 0, - PowerDeviceD0, - PowerDeviceD1, - PowerDeviceD2, - PowerDeviceD3, - PowerDeviceMaximum -} DEVICE_POWER_STATE, *PDEVICE_POWER_STATE; - -typedef enum _MONITOR_DISPLAY_STATE { - PowerMonitorOff = 0, - PowerMonitorOn, - PowerMonitorDim -} MONITOR_DISPLAY_STATE, *PMONITOR_DISPLAY_STATE; - -typedef enum _USER_ACTIVITY_PRESENCE { - PowerUserPresent = 0, - PowerUserNotPresent, - PowerUserInactive, - PowerUserMaximum, - PowerUserInvalid = PowerUserMaximum -} USER_ACTIVITY_PRESENCE, *PUSER_ACTIVITY_PRESENCE; -# 17096 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef DWORD EXECUTION_STATE, *PEXECUTION_STATE; - -typedef enum { - LT_DONT_CARE, - LT_LOWEST_LATENCY -} LATENCY_TIME; -# 17120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _POWER_REQUEST_TYPE { - PowerRequestDisplayRequired, - PowerRequestSystemRequired, - PowerRequestAwayModeRequired, - PowerRequestExecutionRequired -} POWER_REQUEST_TYPE, *PPOWER_REQUEST_TYPE; -# 17146 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct CM_Power_Data_s { - DWORD PD_Size; - DEVICE_POWER_STATE PD_MostRecentPowerState; - DWORD PD_Capabilities; - DWORD PD_D1Latency; - DWORD PD_D2Latency; - DWORD PD_D3Latency; - DEVICE_POWER_STATE PD_PowerStateMapping[7]; - SYSTEM_POWER_STATE PD_DeepestSystemWake; -} CM_POWER_DATA, *PCM_POWER_DATA; - - - - - -typedef enum { - SystemPowerPolicyAc, - SystemPowerPolicyDc, - VerifySystemPolicyAc, - VerifySystemPolicyDc, - SystemPowerCapabilities, - SystemBatteryState, - SystemPowerStateHandler, - ProcessorStateHandler, - SystemPowerPolicyCurrent, - AdministratorPowerPolicy, - SystemReserveHiberFile, - ProcessorInformation, - SystemPowerInformation, - ProcessorStateHandler2, - LastWakeTime, - LastSleepTime, - SystemExecutionState, - SystemPowerStateNotifyHandler, - ProcessorPowerPolicyAc, - ProcessorPowerPolicyDc, - VerifyProcessorPowerPolicyAc, - VerifyProcessorPowerPolicyDc, - ProcessorPowerPolicyCurrent, - SystemPowerStateLogging, - SystemPowerLoggingEntry, - SetPowerSettingValue, - NotifyUserPowerSetting, - PowerInformationLevelUnused0, - SystemMonitorHiberBootPowerOff, - SystemVideoState, - TraceApplicationPowerMessage, - TraceApplicationPowerMessageEnd, - ProcessorPerfStates, - ProcessorIdleStates, - ProcessorCap, - SystemWakeSource, - SystemHiberFileInformation, - TraceServicePowerMessage, - ProcessorLoad, - PowerShutdownNotification, - MonitorCapabilities, - SessionPowerInit, - SessionDisplayState, - PowerRequestCreate, - PowerRequestAction, - GetPowerRequestList, - ProcessorInformationEx, - NotifyUserModeLegacyPowerEvent, - GroupPark, - ProcessorIdleDomains, - WakeTimerList, - SystemHiberFileSize, - ProcessorIdleStatesHv, - ProcessorPerfStatesHv, - ProcessorPerfCapHv, - ProcessorSetIdle, - LogicalProcessorIdling, - UserPresence, - PowerSettingNotificationName, - GetPowerSettingValue, - IdleResiliency, - SessionRITState, - SessionConnectNotification, - SessionPowerCleanup, - SessionLockState, - SystemHiberbootState, - PlatformInformation, - PdcInvocation, - MonitorInvocation, - FirmwareTableInformationRegistered, - SetShutdownSelectedTime, - SuspendResumeInvocation, - PlmPowerRequestCreate, - ScreenOff, - CsDeviceNotification, - PlatformRole, - LastResumePerformance, - DisplayBurst, - ExitLatencySamplingPercentage, - RegisterSpmPowerSettings, - PlatformIdleStates, - ProcessorIdleVeto, - PlatformIdleVeto, - SystemBatteryStatePrecise, - ThermalEvent, - PowerRequestActionInternal, - BatteryDeviceState, - PowerInformationInternal, - ThermalStandby, - SystemHiberFileType, - PhysicalPowerButtonPress, - QueryPotentialDripsConstraint, - EnergyTrackerCreate, - EnergyTrackerQuery, - UpdateBlackBoxRecorder, - SessionAllowExternalDmaDevices, - SendSuspendResumeNotification, - BlackBoxRecorderDirectAccessBuffer, - PowerInformationLevelMaximum -} POWER_INFORMATION_LEVEL; - - - - - -typedef enum { - UserNotPresent = 0, - UserPresent = 1, - UserUnknown = 0xff -} POWER_USER_PRESENCE_TYPE, *PPOWER_USER_PRESENCE_TYPE; - -typedef struct _POWER_USER_PRESENCE { - POWER_USER_PRESENCE_TYPE UserPresence; -} POWER_USER_PRESENCE, *PPOWER_USER_PRESENCE; - - - - -typedef struct _POWER_SESSION_CONNECT { - BOOLEAN Connected; - BOOLEAN Console; -} POWER_SESSION_CONNECT, *PPOWER_SESSION_CONNECT; - -typedef struct _POWER_SESSION_TIMEOUTS { - DWORD InputTimeout; - DWORD DisplayTimeout; -} POWER_SESSION_TIMEOUTS, *PPOWER_SESSION_TIMEOUTS; - - - - -typedef struct _POWER_SESSION_RIT_STATE { - BOOLEAN Active; - DWORD64 LastInputTime; -} POWER_SESSION_RIT_STATE, *PPOWER_SESSION_RIT_STATE; - - - - -typedef struct _POWER_SESSION_WINLOGON { - DWORD SessionId; - BOOLEAN Console; - BOOLEAN Locked; -} POWER_SESSION_WINLOGON, *PPOWER_SESSION_WINLOGON; - - - - -typedef struct _POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES { - BOOLEAN IsAllowed; -} POWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES, *PPOWER_SESSION_ALLOW_EXTERNAL_DMA_DEVICES; - - - - -typedef struct _POWER_IDLE_RESILIENCY { - DWORD CoalescingTimeout; - DWORD IdleResiliencyPeriod; -} POWER_IDLE_RESILIENCY, *PPOWER_IDLE_RESILIENCY; - - - - - - -typedef enum { - MonitorRequestReasonUnknown, - MonitorRequestReasonPowerButton, - MonitorRequestReasonRemoteConnection, - MonitorRequestReasonScMonitorpower, - MonitorRequestReasonUserInput, - MonitorRequestReasonAcDcDisplayBurst, - MonitorRequestReasonUserDisplayBurst, - MonitorRequestReasonPoSetSystemState, - MonitorRequestReasonSetThreadExecutionState, - MonitorRequestReasonFullWake, - MonitorRequestReasonSessionUnlock, - MonitorRequestReasonScreenOffRequest, - MonitorRequestReasonIdleTimeout, - MonitorRequestReasonPolicyChange, - MonitorRequestReasonSleepButton, - MonitorRequestReasonLid, - MonitorRequestReasonBatteryCountChange, - MonitorRequestReasonGracePeriod, - MonitorRequestReasonPnP, - MonitorRequestReasonDP, - MonitorRequestReasonSxTransition, - MonitorRequestReasonSystemIdle, - MonitorRequestReasonNearProximity, - MonitorRequestReasonThermalStandby, - MonitorRequestReasonResumePdc, - MonitorRequestReasonResumeS4, - MonitorRequestReasonTerminal, - MonitorRequestReasonPdcSignal, - MonitorRequestReasonAcDcDisplayBurstSuppressed, - MonitorRequestReasonSystemStateEntered, - - - MonitorRequestReasonWinrt, - MonitorRequestReasonUserInputKeyboard, - MonitorRequestReasonUserInputMouse, - MonitorRequestReasonUserInputTouchpad, - MonitorRequestReasonUserInputPen, - MonitorRequestReasonUserInputAccelerometer, - MonitorRequestReasonUserInputHid, - MonitorRequestReasonUserInputPoUserPresent, - MonitorRequestReasonUserInputSessionSwitch, - MonitorRequestReasonUserInputInitialization, - MonitorRequestReasonPdcSignalWindowsMobilePwrNotif, - MonitorRequestReasonPdcSignalWindowsMobileShell, - MonitorRequestReasonPdcSignalHeyCortana, - MonitorRequestReasonPdcSignalHolographicShell, - MonitorRequestReasonPdcSignalFingerprint, - MonitorRequestReasonDirectedDrips, - MonitorRequestReasonDim, - MonitorRequestReasonBuiltinPanel, - MonitorRequestReasonDisplayRequiredUnDim, - MonitorRequestReasonBatteryCountChangeSuppressed, - MonitorRequestReasonResumeModernStandby, - MonitorRequestReasonTerminalInit, - MonitorRequestReasonPdcSignalSensorsHumanPresence, - MonitorRequestReasonBatteryPreCritical, - MonitorRequestReasonUserInputTouch, - MonitorRequestReasonMax -} POWER_MONITOR_REQUEST_REASON; - -typedef enum _POWER_MONITOR_REQUEST_TYPE { - MonitorRequestTypeOff, - MonitorRequestTypeOnAndPresent, - MonitorRequestTypeToggleOn -} POWER_MONITOR_REQUEST_TYPE; - - - - -typedef struct _POWER_MONITOR_INVOCATION { - BOOLEAN Console; - POWER_MONITOR_REQUEST_REASON RequestReason; -} POWER_MONITOR_INVOCATION, *PPOWER_MONITOR_INVOCATION; - - - - - -typedef struct _RESUME_PERFORMANCE { - DWORD PostTimeMs; - ULONGLONG TotalResumeTimeMs; - ULONGLONG ResumeCompleteTimestamp; -} RESUME_PERFORMANCE, *PRESUME_PERFORMANCE; - - - - - -typedef enum { - PoAc, - PoDc, - PoHot, - PoConditionMaximum -} SYSTEM_POWER_CONDITION; - -typedef struct { - - - - - - DWORD Version; - - - - - - GUID Guid; - - - - - - - SYSTEM_POWER_CONDITION PowerCondition; - - - - - DWORD DataLength; - - - - - BYTE Data[1]; -} SET_POWER_SETTING_VALUE, *PSET_POWER_SETTING_VALUE; - - - -typedef struct { - GUID Guid; -} NOTIFY_USER_POWER_SETTING, *PNOTIFY_USER_POWER_SETTING; - - - - - - -typedef struct _APPLICATIONLAUNCH_SETTING_VALUE { - - - - - - LARGE_INTEGER ActivationTime; - - - - - DWORD Flags; - - - - - DWORD ButtonInstanceID; - - -} APPLICATIONLAUNCH_SETTING_VALUE, *PAPPLICATIONLAUNCH_SETTING_VALUE; - - - - - -typedef enum _POWER_PLATFORM_ROLE { - PlatformRoleUnspecified = 0, - PlatformRoleDesktop, - PlatformRoleMobile, - PlatformRoleWorkstation, - PlatformRoleEnterpriseServer, - PlatformRoleSOHOServer, - PlatformRoleAppliancePC, - PlatformRolePerformanceServer, - PlatformRoleSlate, - PlatformRoleMaximum -} POWER_PLATFORM_ROLE, *PPOWER_PLATFORM_ROLE; -# 17522 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _POWER_PLATFORM_INFORMATION { - BOOLEAN AoAc; -} POWER_PLATFORM_INFORMATION, *PPOWER_PLATFORM_INFORMATION; - - - - - -typedef enum POWER_SETTING_ALTITUDE { - ALTITUDE_GROUP_POLICY, - ALTITUDE_USER, - ALTITUDE_RUNTIME_OVERRIDE, - ALTITUDE_PROVISIONING, - ALTITUDE_OEM_CUSTOMIZATION, - ALTITUDE_INTERNAL_OVERRIDE, - ALTITUDE_OS_DEFAULT, -} POWER_SETTING_ALTITUDE, *PPOWER_SETTING_ALTITUDE; - - - - - - -typedef struct { - DWORD Granularity; - DWORD Capacity; -} BATTERY_REPORTING_SCALE, *PBATTERY_REPORTING_SCALE; - - - - -typedef struct { - DWORD Frequency; - DWORD Flags; - DWORD PercentFrequency; -} PPM_WMI_LEGACY_PERFSTATE, *PPPM_WMI_LEGACY_PERFSTATE; - -typedef struct { - DWORD Latency; - DWORD Power; - DWORD TimeCheck; - BYTE PromotePercent; - BYTE DemotePercent; - BYTE StateType; - BYTE Reserved; - DWORD StateFlags; - DWORD Context; - DWORD IdleHandler; - DWORD Reserved1; -} PPM_WMI_IDLE_STATE, *PPPM_WMI_IDLE_STATE; - -typedef struct { - DWORD Type; - DWORD Count; - DWORD TargetState; - DWORD OldState; - DWORD64 TargetProcessors; - PPM_WMI_IDLE_STATE State[1]; -} PPM_WMI_IDLE_STATES, *PPPM_WMI_IDLE_STATES; - -typedef struct { - DWORD Type; - DWORD Count; - DWORD TargetState; - DWORD OldState; - PVOID TargetProcessors; - PPM_WMI_IDLE_STATE State[1]; -} PPM_WMI_IDLE_STATES_EX, *PPPM_WMI_IDLE_STATES_EX; - -typedef struct { - DWORD Frequency; - DWORD Power; - BYTE PercentFrequency; - BYTE IncreaseLevel; - BYTE DecreaseLevel; - BYTE Type; - DWORD IncreaseTime; - DWORD DecreaseTime; - DWORD64 Control; - DWORD64 Status; - DWORD HitCount; - DWORD Reserved1; - DWORD64 Reserved2; - DWORD64 Reserved3; -} PPM_WMI_PERF_STATE, *PPPM_WMI_PERF_STATE; - -typedef struct { - DWORD Count; - DWORD MaxFrequency; - DWORD CurrentState; - DWORD MaxPerfState; - DWORD MinPerfState; - DWORD LowestPerfState; - DWORD ThermalConstraint; - BYTE BusyAdjThreshold; - BYTE PolicyType; - BYTE Type; - BYTE Reserved; - DWORD TimerInterval; - DWORD64 TargetProcessors; - DWORD PStateHandler; - DWORD PStateContext; - DWORD TStateHandler; - DWORD TStateContext; - DWORD FeedbackHandler; - DWORD Reserved1; - DWORD64 Reserved2; - PPM_WMI_PERF_STATE State[1]; -} PPM_WMI_PERF_STATES, *PPPM_WMI_PERF_STATES; - -typedef struct { - DWORD Count; - DWORD MaxFrequency; - DWORD CurrentState; - DWORD MaxPerfState; - DWORD MinPerfState; - DWORD LowestPerfState; - DWORD ThermalConstraint; - BYTE BusyAdjThreshold; - BYTE PolicyType; - BYTE Type; - BYTE Reserved; - DWORD TimerInterval; - PVOID TargetProcessors; - DWORD PStateHandler; - DWORD PStateContext; - DWORD TStateHandler; - DWORD TStateContext; - DWORD FeedbackHandler; - DWORD Reserved1; - DWORD64 Reserved2; - PPM_WMI_PERF_STATE State[1]; -} PPM_WMI_PERF_STATES_EX, *PPPM_WMI_PERF_STATES_EX; - - - - - - - -typedef struct { - DWORD IdleTransitions; - DWORD FailedTransitions; - DWORD InvalidBucketIndex; - DWORD64 TotalTime; - DWORD IdleTimeBuckets[6]; -} PPM_IDLE_STATE_ACCOUNTING, *PPPM_IDLE_STATE_ACCOUNTING; - -typedef struct { - DWORD StateCount; - DWORD TotalTransitions; - DWORD ResetCount; - DWORD64 StartTime; - PPM_IDLE_STATE_ACCOUNTING State[1]; -} PPM_IDLE_ACCOUNTING, *PPPM_IDLE_ACCOUNTING; - - - - - - - -typedef struct { - DWORD64 TotalTimeUs; - DWORD MinTimeUs; - DWORD MaxTimeUs; - DWORD Count; -} PPM_IDLE_STATE_BUCKET_EX, *PPPM_IDLE_STATE_BUCKET_EX; - -typedef struct { - DWORD64 TotalTime; - DWORD IdleTransitions; - DWORD FailedTransitions; - DWORD InvalidBucketIndex; - DWORD MinTimeUs; - DWORD MaxTimeUs; - DWORD CancelledTransitions; - PPM_IDLE_STATE_BUCKET_EX IdleTimeBuckets[16]; -} PPM_IDLE_STATE_ACCOUNTING_EX, *PPPM_IDLE_STATE_ACCOUNTING_EX; - -typedef struct { - DWORD StateCount; - DWORD TotalTransitions; - DWORD ResetCount; - DWORD AbortCount; - DWORD64 StartTime; - PPM_IDLE_STATE_ACCOUNTING_EX State[1]; -} PPM_IDLE_ACCOUNTING_EX, *PPPM_IDLE_ACCOUNTING_EX; -# 17772 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -extern const GUID PPM_PERFSTATE_CHANGE_GUID; - - - -extern const GUID PPM_PERFSTATE_DOMAIN_CHANGE_GUID; - - - -extern const GUID PPM_IDLESTATE_CHANGE_GUID; - - - -extern const GUID PPM_PERFSTATES_DATA_GUID; - - - -extern const GUID PPM_IDLESTATES_DATA_GUID; - - - -extern const GUID PPM_IDLE_ACCOUNTING_GUID; - - - -extern const GUID PPM_IDLE_ACCOUNTING_EX_GUID; - - - -extern const GUID PPM_THERMALCONSTRAINT_GUID; - - - -extern const GUID PPM_PERFMON_PERFSTATE_GUID; - - - -extern const GUID PPM_THERMAL_POLICY_CHANGE_GUID; - - - -typedef struct { - DWORD State; - DWORD Status; - DWORD Latency; - DWORD Speed; - DWORD Processor; -} PPM_PERFSTATE_EVENT, *PPPM_PERFSTATE_EVENT; - -typedef struct { - DWORD State; - DWORD Latency; - DWORD Speed; - DWORD64 Processors; -} PPM_PERFSTATE_DOMAIN_EVENT, *PPPM_PERFSTATE_DOMAIN_EVENT; - -typedef struct { - DWORD NewState; - DWORD OldState; - DWORD64 Processors; -} PPM_IDLESTATE_EVENT, *PPPM_IDLESTATE_EVENT; - -typedef struct { - DWORD ThermalConstraint; - DWORD64 Processors; -} PPM_THERMALCHANGE_EVENT, *PPPM_THERMALCHANGE_EVENT; - -#pragma warning(push) -#pragma warning(disable: 4121) - -typedef struct { - BYTE Mode; - DWORD64 Processors; -} PPM_THERMAL_POLICY_EVENT, *PPPM_THERMAL_POLICY_EVENT; - -#pragma warning(pop) - - - - -typedef struct { - POWER_ACTION Action; - DWORD Flags; - DWORD EventCode; -} POWER_ACTION_POLICY, *PPOWER_ACTION_POLICY; -# 17893 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct { - BOOLEAN Enable; - BYTE Spare[3]; - DWORD BatteryLevel; - POWER_ACTION_POLICY PowerPolicy; - SYSTEM_POWER_STATE MinSystemState; -} SYSTEM_POWER_LEVEL, *PSYSTEM_POWER_LEVEL; -# 17908 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _SYSTEM_POWER_POLICY { - DWORD Revision; - - - POWER_ACTION_POLICY PowerButton; - POWER_ACTION_POLICY SleepButton; - POWER_ACTION_POLICY LidClose; - SYSTEM_POWER_STATE LidOpenWake; - DWORD Reserved; - - - POWER_ACTION_POLICY Idle; - DWORD IdleTimeout; - BYTE IdleSensitivity; - - BYTE DynamicThrottle; - BYTE Spare2[2]; - - - SYSTEM_POWER_STATE MinSleep; - SYSTEM_POWER_STATE MaxSleep; - SYSTEM_POWER_STATE ReducedLatencySleep; - DWORD WinLogonFlags; - - DWORD Spare3; - - - - DWORD DozeS4Timeout; - - - DWORD BroadcastCapacityResolution; - SYSTEM_POWER_LEVEL DischargePolicy[4]; - - - DWORD VideoTimeout; - BOOLEAN VideoDimDisplay; - DWORD VideoReserved[3]; - - - DWORD SpindownTimeout; - - - BOOLEAN OptimizeForPower; - BYTE FanThrottleTolerance; - BYTE ForcedThrottle; - BYTE MinThrottle; - POWER_ACTION_POLICY OverThrottled; - -} SYSTEM_POWER_POLICY, *PSYSTEM_POWER_POLICY; -# 17968 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct { - DWORD TimeCheck; - BYTE DemotePercent; - BYTE PromotePercent; - BYTE Spare[2]; -} PROCESSOR_IDLESTATE_INFO, *PPROCESSOR_IDLESTATE_INFO; - -typedef struct { - WORD Revision; - union { - WORD AsWORD ; - struct { - WORD AllowScaling : 1; - WORD Disabled : 1; - WORD Reserved : 14; - } ; - } Flags; - - DWORD PolicyCount; - PROCESSOR_IDLESTATE_INFO Policy[0x3]; -} PROCESSOR_IDLESTATE_POLICY, *PPROCESSOR_IDLESTATE_POLICY; -# 18003 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _PROCESSOR_POWER_POLICY_INFO { - - - DWORD TimeCheck; - DWORD DemoteLimit; - DWORD PromoteLimit; - - - BYTE DemotePercent; - BYTE PromotePercent; - BYTE Spare[2]; - - - DWORD AllowDemotion:1; - DWORD AllowPromotion:1; - DWORD Reserved:30; - -} PROCESSOR_POWER_POLICY_INFO, *PPROCESSOR_POWER_POLICY_INFO; - - -typedef struct _PROCESSOR_POWER_POLICY { - DWORD Revision; - - - BYTE DynamicThrottle; - BYTE Spare[3]; - - - DWORD DisableCStates:1; - DWORD Reserved:31; - - - - - DWORD PolicyCount; - PROCESSOR_POWER_POLICY_INFO Policy[3]; - -} PROCESSOR_POWER_POLICY, *PPROCESSOR_POWER_POLICY; - - - - - -typedef struct { - DWORD Revision; - BYTE MaxThrottle; - BYTE MinThrottle; - BYTE BusyAdjThreshold; - union { - BYTE Spare; - union { - BYTE AsBYTE ; - struct { - BYTE NoDomainAccounting : 1; - BYTE IncreasePolicy: 2; - BYTE DecreasePolicy: 2; - BYTE Reserved : 3; - } ; - } Flags; - } ; - - DWORD TimeCheck; - DWORD IncreaseTime; - DWORD DecreaseTime; - DWORD IncreasePercent; - DWORD DecreasePercent; -} PROCESSOR_PERFSTATE_POLICY, *PPROCESSOR_PERFSTATE_POLICY; - - -typedef struct _ADMINISTRATOR_POWER_POLICY { - - - SYSTEM_POWER_STATE MinSleep; - SYSTEM_POWER_STATE MaxSleep; - - - DWORD MinVideoTimeout; - DWORD MaxVideoTimeout; - - - DWORD MinSpindownTimeout; - DWORD MaxSpindownTimeout; -} ADMINISTRATOR_POWER_POLICY, *PADMINISTRATOR_POWER_POLICY; - - -typedef enum _HIBERFILE_BUCKET_SIZE { - HiberFileBucket1GB = 0, - HiberFileBucket2GB, - HiberFileBucket4GB, - HiberFileBucket8GB, - HiberFileBucket16GB, - HiberFileBucket32GB, - HiberFileBucketUnlimited, - HiberFileBucketMax -} HIBERFILE_BUCKET_SIZE, *PHIBERFILE_BUCKET_SIZE; - - - - - - -typedef struct _HIBERFILE_BUCKET { - DWORD64 MaxPhysicalMemory; - DWORD PhysicalMemoryPercent[0x03]; -} HIBERFILE_BUCKET, *PHIBERFILE_BUCKET; - -typedef struct { - - BOOLEAN PowerButtonPresent; - BOOLEAN SleepButtonPresent; - BOOLEAN LidPresent; - BOOLEAN SystemS1; - BOOLEAN SystemS2; - BOOLEAN SystemS3; - BOOLEAN SystemS4; - BOOLEAN SystemS5; - BOOLEAN HiberFilePresent; - BOOLEAN FullWake; - BOOLEAN VideoDimPresent; - BOOLEAN ApmPresent; - BOOLEAN UpsPresent; - - - BOOLEAN ThermalControl; - BOOLEAN ProcessorThrottle; - BYTE ProcessorMinThrottle; - - - - - - BYTE ProcessorMaxThrottle; - BOOLEAN FastSystemS4; - BOOLEAN Hiberboot; - BOOLEAN WakeAlarmPresent; - BOOLEAN AoAc; - - - - BOOLEAN DiskSpinDown; - - - - - - BYTE HiberFileType; - BOOLEAN AoAcConnectivitySupported; - BYTE spare3[6]; - - - - BOOLEAN SystemBatteriesPresent; - BOOLEAN BatteriesAreShortTerm; - BATTERY_REPORTING_SCALE BatteryScale[3]; - - - SYSTEM_POWER_STATE AcOnLineWake; - SYSTEM_POWER_STATE SoftLidWake; - SYSTEM_POWER_STATE RtcWake; - SYSTEM_POWER_STATE MinDeviceWakeState; - SYSTEM_POWER_STATE DefaultLowLatencyWake; -} SYSTEM_POWER_CAPABILITIES, *PSYSTEM_POWER_CAPABILITIES; - -typedef struct { - BOOLEAN AcOnLine; - BOOLEAN BatteryPresent; - BOOLEAN Charging; - BOOLEAN Discharging; - BOOLEAN Spare1[3]; - - BYTE Tag; - - DWORD MaxCapacity; - DWORD RemainingCapacity; - DWORD Rate; - DWORD EstimatedTime; - - DWORD DefaultAlert1; - DWORD DefaultAlert2; -} SYSTEM_BATTERY_STATE, *PSYSTEM_BATTERY_STATE; -# 18193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,4) -# 18194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - - - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,2) -# 18202 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 -# 18213 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_DOS_HEADER { - WORD e_magic; - WORD e_cblp; - WORD e_cp; - WORD e_crlc; - WORD e_cparhdr; - WORD e_minalloc; - WORD e_maxalloc; - WORD e_ss; - WORD e_sp; - WORD e_csum; - WORD e_ip; - WORD e_cs; - WORD e_lfarlc; - WORD e_ovno; - WORD e_res[4]; - WORD e_oemid; - WORD e_oeminfo; - WORD e_res2[10]; - LONG e_lfanew; - } IMAGE_DOS_HEADER, *PIMAGE_DOS_HEADER; - -typedef struct _IMAGE_OS2_HEADER { - WORD ne_magic; - CHAR ne_ver; - CHAR ne_rev; - WORD ne_enttab; - WORD ne_cbenttab; - LONG ne_crc; - WORD ne_flags; - WORD ne_autodata; - WORD ne_heap; - WORD ne_stack; - LONG ne_csip; - LONG ne_sssp; - WORD ne_cseg; - WORD ne_cmod; - WORD ne_cbnrestab; - WORD ne_segtab; - WORD ne_rsrctab; - WORD ne_restab; - WORD ne_modtab; - WORD ne_imptab; - LONG ne_nrestab; - WORD ne_cmovent; - WORD ne_align; - WORD ne_cres; - BYTE ne_exetyp; - BYTE ne_flagsothers; - WORD ne_pretthunks; - WORD ne_psegrefbytes; - WORD ne_swaparea; - WORD ne_expver; - } IMAGE_OS2_HEADER, *PIMAGE_OS2_HEADER; - -typedef struct _IMAGE_VXD_HEADER { - WORD e32_magic; - BYTE e32_border; - BYTE e32_worder; - DWORD e32_level; - WORD e32_cpu; - WORD e32_os; - DWORD e32_ver; - DWORD e32_mflags; - DWORD e32_mpages; - DWORD e32_startobj; - DWORD e32_eip; - DWORD e32_stackobj; - DWORD e32_esp; - DWORD e32_pagesize; - DWORD e32_lastpagesize; - DWORD e32_fixupsize; - DWORD e32_fixupsum; - DWORD e32_ldrsize; - DWORD e32_ldrsum; - DWORD e32_objtab; - DWORD e32_objcnt; - DWORD e32_objmap; - DWORD e32_itermap; - DWORD e32_rsrctab; - DWORD e32_rsrccnt; - DWORD e32_restab; - DWORD e32_enttab; - DWORD e32_dirtab; - DWORD e32_dircnt; - DWORD e32_fpagetab; - DWORD e32_frectab; - DWORD e32_impmod; - DWORD e32_impmodcnt; - DWORD e32_impproc; - DWORD e32_pagesum; - DWORD e32_datapage; - DWORD e32_preload; - DWORD e32_nrestab; - DWORD e32_cbnrestab; - DWORD e32_nressum; - DWORD e32_autodata; - DWORD e32_debuginfo; - DWORD e32_debuglen; - DWORD e32_instpreload; - DWORD e32_instdemand; - DWORD e32_heapsize; - BYTE e32_res3[12]; - DWORD e32_winresoff; - DWORD e32_winreslen; - WORD e32_devid; - WORD e32_ddkver; - } IMAGE_VXD_HEADER, *PIMAGE_VXD_HEADER; - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 18324 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - - - - - - -typedef struct _IMAGE_FILE_HEADER { - WORD Machine; - WORD NumberOfSections; - DWORD TimeDateStamp; - DWORD PointerToSymbolTable; - DWORD NumberOfSymbols; - WORD SizeOfOptionalHeader; - WORD Characteristics; -} IMAGE_FILE_HEADER, *PIMAGE_FILE_HEADER; -# 18396 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_DATA_DIRECTORY { - DWORD VirtualAddress; - DWORD Size; -} IMAGE_DATA_DIRECTORY, *PIMAGE_DATA_DIRECTORY; - - - - - - - -typedef struct _IMAGE_OPTIONAL_HEADER { - - - - - WORD Magic; - BYTE MajorLinkerVersion; - BYTE MinorLinkerVersion; - DWORD SizeOfCode; - DWORD SizeOfInitializedData; - DWORD SizeOfUninitializedData; - DWORD AddressOfEntryPoint; - DWORD BaseOfCode; - DWORD BaseOfData; - - - - - - DWORD ImageBase; - DWORD SectionAlignment; - DWORD FileAlignment; - WORD MajorOperatingSystemVersion; - WORD MinorOperatingSystemVersion; - WORD MajorImageVersion; - WORD MinorImageVersion; - WORD MajorSubsystemVersion; - WORD MinorSubsystemVersion; - DWORD Win32VersionValue; - DWORD SizeOfImage; - DWORD SizeOfHeaders; - DWORD CheckSum; - WORD Subsystem; - WORD DllCharacteristics; - DWORD SizeOfStackReserve; - DWORD SizeOfStackCommit; - DWORD SizeOfHeapReserve; - DWORD SizeOfHeapCommit; - DWORD LoaderFlags; - DWORD NumberOfRvaAndSizes; - IMAGE_DATA_DIRECTORY DataDirectory[16]; -} IMAGE_OPTIONAL_HEADER32, *PIMAGE_OPTIONAL_HEADER32; - -typedef struct _IMAGE_ROM_OPTIONAL_HEADER { - WORD Magic; - BYTE MajorLinkerVersion; - BYTE MinorLinkerVersion; - DWORD SizeOfCode; - DWORD SizeOfInitializedData; - DWORD SizeOfUninitializedData; - DWORD AddressOfEntryPoint; - DWORD BaseOfCode; - DWORD BaseOfData; - DWORD BaseOfBss; - DWORD GprMask; - DWORD CprMask[4]; - DWORD GpValue; -} IMAGE_ROM_OPTIONAL_HEADER, *PIMAGE_ROM_OPTIONAL_HEADER; - -typedef struct _IMAGE_OPTIONAL_HEADER64 { - WORD Magic; - BYTE MajorLinkerVersion; - BYTE MinorLinkerVersion; - DWORD SizeOfCode; - DWORD SizeOfInitializedData; - DWORD SizeOfUninitializedData; - DWORD AddressOfEntryPoint; - DWORD BaseOfCode; - ULONGLONG ImageBase; - DWORD SectionAlignment; - DWORD FileAlignment; - WORD MajorOperatingSystemVersion; - WORD MinorOperatingSystemVersion; - WORD MajorImageVersion; - WORD MinorImageVersion; - WORD MajorSubsystemVersion; - WORD MinorSubsystemVersion; - DWORD Win32VersionValue; - DWORD SizeOfImage; - DWORD SizeOfHeaders; - DWORD CheckSum; - WORD Subsystem; - WORD DllCharacteristics; - ULONGLONG SizeOfStackReserve; - ULONGLONG SizeOfStackCommit; - ULONGLONG SizeOfHeapReserve; - ULONGLONG SizeOfHeapCommit; - DWORD LoaderFlags; - DWORD NumberOfRvaAndSizes; - IMAGE_DATA_DIRECTORY DataDirectory[16]; -} IMAGE_OPTIONAL_HEADER64, *PIMAGE_OPTIONAL_HEADER64; - - - - - - -typedef IMAGE_OPTIONAL_HEADER64 IMAGE_OPTIONAL_HEADER; -typedef PIMAGE_OPTIONAL_HEADER64 PIMAGE_OPTIONAL_HEADER; - - - - - - - -typedef struct _IMAGE_NT_HEADERS64 { - DWORD Signature; - IMAGE_FILE_HEADER FileHeader; - IMAGE_OPTIONAL_HEADER64 OptionalHeader; -} IMAGE_NT_HEADERS64, *PIMAGE_NT_HEADERS64; - -typedef struct _IMAGE_NT_HEADERS { - DWORD Signature; - IMAGE_FILE_HEADER FileHeader; - IMAGE_OPTIONAL_HEADER32 OptionalHeader; -} IMAGE_NT_HEADERS32, *PIMAGE_NT_HEADERS32; - -typedef struct _IMAGE_ROM_HEADERS { - IMAGE_FILE_HEADER FileHeader; - IMAGE_ROM_OPTIONAL_HEADER OptionalHeader; -} IMAGE_ROM_HEADERS, *PIMAGE_ROM_HEADERS; - - -typedef IMAGE_NT_HEADERS64 IMAGE_NT_HEADERS; -typedef PIMAGE_NT_HEADERS64 PIMAGE_NT_HEADERS; -# 18605 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct ANON_OBJECT_HEADER { - WORD Sig1; - WORD Sig2; - WORD Version; - WORD Machine; - DWORD TimeDateStamp; - CLSID ClassID; - DWORD SizeOfData; -} ANON_OBJECT_HEADER; - -typedef struct ANON_OBJECT_HEADER_V2 { - WORD Sig1; - WORD Sig2; - WORD Version; - WORD Machine; - DWORD TimeDateStamp; - CLSID ClassID; - DWORD SizeOfData; - DWORD Flags; - DWORD MetaDataSize; - DWORD MetaDataOffset; -} ANON_OBJECT_HEADER_V2; - -typedef struct ANON_OBJECT_HEADER_BIGOBJ { - - WORD Sig1; - WORD Sig2; - WORD Version; - WORD Machine; - DWORD TimeDateStamp; - CLSID ClassID; - DWORD SizeOfData; - DWORD Flags; - DWORD MetaDataSize; - DWORD MetaDataOffset; - - - DWORD NumberOfSections; - DWORD PointerToSymbolTable; - DWORD NumberOfSymbols; -} ANON_OBJECT_HEADER_BIGOBJ; - - - - - - - -typedef struct _IMAGE_SECTION_HEADER { - BYTE Name[8]; - union { - DWORD PhysicalAddress; - DWORD VirtualSize; - } Misc; - DWORD VirtualAddress; - DWORD SizeOfRawData; - DWORD PointerToRawData; - DWORD PointerToRelocations; - DWORD PointerToLinenumbers; - WORD NumberOfRelocations; - WORD NumberOfLinenumbers; - DWORD Characteristics; -} IMAGE_SECTION_HEADER, *PIMAGE_SECTION_HEADER; -# 18733 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,2) -# 18734 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - - - - - - -typedef struct _IMAGE_SYMBOL { - union { - BYTE ShortName[8]; - struct { - DWORD Short; - DWORD Long; - } Name; - DWORD LongName[2]; - } N; - DWORD Value; - SHORT SectionNumber; - WORD Type; - BYTE StorageClass; - BYTE NumberOfAuxSymbols; -} IMAGE_SYMBOL; -typedef IMAGE_SYMBOL __unaligned *PIMAGE_SYMBOL; - - - -typedef struct _IMAGE_SYMBOL_EX { - union { - BYTE ShortName[8]; - struct { - DWORD Short; - DWORD Long; - } Name; - DWORD LongName[2]; - } N; - DWORD Value; - LONG SectionNumber; - WORD Type; - BYTE StorageClass; - BYTE NumberOfAuxSymbols; -} IMAGE_SYMBOL_EX; -typedef IMAGE_SYMBOL_EX __unaligned *PIMAGE_SYMBOL_EX; -# 18896 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,2) -# 18897 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - -typedef struct IMAGE_AUX_SYMBOL_TOKEN_DEF { - BYTE bAuxType; - BYTE bReserved; - DWORD SymbolTableIndex; - BYTE rgbReserved[12]; -} IMAGE_AUX_SYMBOL_TOKEN_DEF; - -typedef IMAGE_AUX_SYMBOL_TOKEN_DEF __unaligned *PIMAGE_AUX_SYMBOL_TOKEN_DEF; - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 18908 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - - - - - -typedef union _IMAGE_AUX_SYMBOL { - struct { - DWORD TagIndex; - union { - struct { - WORD Linenumber; - WORD Size; - } LnSz; - DWORD TotalSize; - } Misc; - union { - struct { - DWORD PointerToLinenumber; - DWORD PointerToNextFunction; - } Function; - struct { - WORD Dimension[4]; - } Array; - } FcnAry; - WORD TvIndex; - } Sym; - struct { - BYTE Name[18]; - } File; - struct { - DWORD Length; - WORD NumberOfRelocations; - WORD NumberOfLinenumbers; - DWORD CheckSum; - SHORT Number; - BYTE Selection; - BYTE bReserved; - SHORT HighNumber; - } Section; - IMAGE_AUX_SYMBOL_TOKEN_DEF TokenDef; - struct { - DWORD crc; - BYTE rgbReserved[14]; - } CRC; -} IMAGE_AUX_SYMBOL; -typedef IMAGE_AUX_SYMBOL __unaligned *PIMAGE_AUX_SYMBOL; - -typedef union _IMAGE_AUX_SYMBOL_EX { - struct { - DWORD WeakDefaultSymIndex; - DWORD WeakSearchType; - BYTE rgbReserved[12]; - } Sym; - struct { - BYTE Name[sizeof(IMAGE_SYMBOL_EX)]; - } File; - struct { - DWORD Length; - WORD NumberOfRelocations; - WORD NumberOfLinenumbers; - DWORD CheckSum; - SHORT Number; - BYTE Selection; - BYTE bReserved; - SHORT HighNumber; - BYTE rgbReserved[2]; - } Section; - struct{ - IMAGE_AUX_SYMBOL_TOKEN_DEF TokenDef; - BYTE rgbReserved[2]; - } ; - struct { - DWORD crc; - BYTE rgbReserved[16]; - } CRC; -} IMAGE_AUX_SYMBOL_EX; -typedef IMAGE_AUX_SYMBOL_EX __unaligned *PIMAGE_AUX_SYMBOL_EX; - -typedef enum IMAGE_AUX_SYMBOL_TYPE { - IMAGE_AUX_SYMBOL_TYPE_TOKEN_DEF = 1, -} IMAGE_AUX_SYMBOL_TYPE; -# 19012 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_RELOCATION { - union { - DWORD VirtualAddress; - DWORD RelocCount; - } ; - DWORD SymbolTableIndex; - WORD Type; -} IMAGE_RELOCATION; -typedef IMAGE_RELOCATION __unaligned *PIMAGE_RELOCATION; -# 19425 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_LINENUMBER { - union { - DWORD SymbolTableIndex; - DWORD VirtualAddress; - } Type; - WORD Linenumber; -} IMAGE_LINENUMBER; -typedef IMAGE_LINENUMBER __unaligned *PIMAGE_LINENUMBER; - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 19436 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - - - - - - - -typedef struct _IMAGE_BASE_RELOCATION { - DWORD VirtualAddress; - DWORD SizeOfBlock; - -} IMAGE_BASE_RELOCATION; -typedef IMAGE_BASE_RELOCATION __unaligned * PIMAGE_BASE_RELOCATION; -# 19492 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_ARCHIVE_MEMBER_HEADER { - BYTE Name[16]; - BYTE Date[12]; - BYTE UserID[6]; - BYTE GroupID[6]; - BYTE Mode[8]; - BYTE Size[10]; - BYTE EndHeader[2]; -} IMAGE_ARCHIVE_MEMBER_HEADER, *PIMAGE_ARCHIVE_MEMBER_HEADER; -# 19513 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_EXPORT_DIRECTORY { - DWORD Characteristics; - DWORD TimeDateStamp; - WORD MajorVersion; - WORD MinorVersion; - DWORD Name; - DWORD Base; - DWORD NumberOfFunctions; - DWORD NumberOfNames; - DWORD AddressOfFunctions; - DWORD AddressOfNames; - DWORD AddressOfNameOrdinals; -} IMAGE_EXPORT_DIRECTORY, *PIMAGE_EXPORT_DIRECTORY; - - - - - - -typedef struct _IMAGE_IMPORT_BY_NAME { - WORD Hint; - CHAR Name[1]; -} IMAGE_IMPORT_BY_NAME, *PIMAGE_IMPORT_BY_NAME; - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,8) -# 19538 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - - -typedef struct _IMAGE_THUNK_DATA64 { - union { - ULONGLONG ForwarderString; - ULONGLONG Function; - ULONGLONG Ordinal; - ULONGLONG AddressOfData; - } u1; -} IMAGE_THUNK_DATA64; -typedef IMAGE_THUNK_DATA64 * PIMAGE_THUNK_DATA64; - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 19551 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - - -typedef struct _IMAGE_THUNK_DATA32 { - union { - DWORD ForwarderString; - DWORD Function; - DWORD Ordinal; - DWORD AddressOfData; - } u1; -} IMAGE_THUNK_DATA32; -typedef IMAGE_THUNK_DATA32 * PIMAGE_THUNK_DATA32; -# 19574 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef void -(__stdcall *PIMAGE_TLS_CALLBACK) ( - PVOID DllHandle, - DWORD Reason, - PVOID Reserved - ); - -typedef struct _IMAGE_TLS_DIRECTORY64 { - ULONGLONG StartAddressOfRawData; - ULONGLONG EndAddressOfRawData; - ULONGLONG AddressOfIndex; - ULONGLONG AddressOfCallBacks; - DWORD SizeOfZeroFill; - union { - DWORD Characteristics; - struct { - DWORD Reserved0 : 20; - DWORD Alignment : 4; - DWORD Reserved1 : 8; - } ; - } ; - -} IMAGE_TLS_DIRECTORY64; - -typedef IMAGE_TLS_DIRECTORY64 * PIMAGE_TLS_DIRECTORY64; - -typedef struct _IMAGE_TLS_DIRECTORY32 { - DWORD StartAddressOfRawData; - DWORD EndAddressOfRawData; - DWORD AddressOfIndex; - DWORD AddressOfCallBacks; - DWORD SizeOfZeroFill; - union { - DWORD Characteristics; - struct { - DWORD Reserved0 : 20; - DWORD Alignment : 4; - DWORD Reserved1 : 8; - } ; - } ; - -} IMAGE_TLS_DIRECTORY32; -typedef IMAGE_TLS_DIRECTORY32 * PIMAGE_TLS_DIRECTORY32; - - - - -typedef IMAGE_THUNK_DATA64 IMAGE_THUNK_DATA; -typedef PIMAGE_THUNK_DATA64 PIMAGE_THUNK_DATA; - -typedef IMAGE_TLS_DIRECTORY64 IMAGE_TLS_DIRECTORY; -typedef PIMAGE_TLS_DIRECTORY64 PIMAGE_TLS_DIRECTORY; -# 19637 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_IMPORT_DESCRIPTOR { - union { - DWORD Characteristics; - DWORD OriginalFirstThunk; - } ; - DWORD TimeDateStamp; - - - - - DWORD ForwarderChain; - DWORD Name; - DWORD FirstThunk; -} IMAGE_IMPORT_DESCRIPTOR; -typedef IMAGE_IMPORT_DESCRIPTOR __unaligned *PIMAGE_IMPORT_DESCRIPTOR; - - - - - -typedef struct _IMAGE_BOUND_IMPORT_DESCRIPTOR { - DWORD TimeDateStamp; - WORD OffsetModuleName; - WORD NumberOfModuleForwarderRefs; - -} IMAGE_BOUND_IMPORT_DESCRIPTOR, *PIMAGE_BOUND_IMPORT_DESCRIPTOR; - -typedef struct _IMAGE_BOUND_FORWARDER_REF { - DWORD TimeDateStamp; - WORD OffsetModuleName; - WORD Reserved; -} IMAGE_BOUND_FORWARDER_REF, *PIMAGE_BOUND_FORWARDER_REF; - -typedef struct _IMAGE_DELAYLOAD_DESCRIPTOR { - union { - DWORD AllAttributes; - struct { - DWORD RvaBased : 1; - DWORD ReservedAttributes : 31; - } ; - } Attributes; - - DWORD DllNameRVA; - DWORD ModuleHandleRVA; - DWORD ImportAddressTableRVA; - DWORD ImportNameTableRVA; - DWORD BoundImportAddressTableRVA; - DWORD UnloadInformationTableRVA; - DWORD TimeDateStamp; - - -} IMAGE_DELAYLOAD_DESCRIPTOR, *PIMAGE_DELAYLOAD_DESCRIPTOR; - -typedef const IMAGE_DELAYLOAD_DESCRIPTOR *PCIMAGE_DELAYLOAD_DESCRIPTOR; -# 19710 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_RESOURCE_DIRECTORY { - DWORD Characteristics; - DWORD TimeDateStamp; - WORD MajorVersion; - WORD MinorVersion; - WORD NumberOfNamedEntries; - WORD NumberOfIdEntries; - -} IMAGE_RESOURCE_DIRECTORY, *PIMAGE_RESOURCE_DIRECTORY; -# 19738 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_RESOURCE_DIRECTORY_ENTRY { - union { - struct { - DWORD NameOffset:31; - DWORD NameIsString:1; - } ; - DWORD Name; - WORD Id; - } ; - union { - DWORD OffsetToData; - struct { - DWORD OffsetToDirectory:31; - DWORD DataIsDirectory:1; - } ; - } ; -} IMAGE_RESOURCE_DIRECTORY_ENTRY, *PIMAGE_RESOURCE_DIRECTORY_ENTRY; -# 19765 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_RESOURCE_DIRECTORY_STRING { - WORD Length; - CHAR NameString[ 1 ]; -} IMAGE_RESOURCE_DIRECTORY_STRING, *PIMAGE_RESOURCE_DIRECTORY_STRING; - - -typedef struct _IMAGE_RESOURCE_DIR_STRING_U { - WORD Length; - WCHAR NameString[ 1 ]; -} IMAGE_RESOURCE_DIR_STRING_U, *PIMAGE_RESOURCE_DIR_STRING_U; -# 19787 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_RESOURCE_DATA_ENTRY { - DWORD OffsetToData; - DWORD Size; - DWORD CodePage; - DWORD Reserved; -} IMAGE_RESOURCE_DATA_ENTRY, *PIMAGE_RESOURCE_DATA_ENTRY; - - - - - - - -typedef struct _IMAGE_LOAD_CONFIG_CODE_INTEGRITY { - WORD Flags; - WORD Catalog; - DWORD CatalogOffset; - DWORD Reserved; -} IMAGE_LOAD_CONFIG_CODE_INTEGRITY, *PIMAGE_LOAD_CONFIG_CODE_INTEGRITY; - - - - - -typedef struct _IMAGE_DYNAMIC_RELOCATION_TABLE { - DWORD Version; - DWORD Size; - -} IMAGE_DYNAMIC_RELOCATION_TABLE, *PIMAGE_DYNAMIC_RELOCATION_TABLE; - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,1) -# 19822 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - -typedef struct _IMAGE_DYNAMIC_RELOCATION32 { - DWORD Symbol; - DWORD BaseRelocSize; - -} IMAGE_DYNAMIC_RELOCATION32, *PIMAGE_DYNAMIC_RELOCATION32; - -typedef struct _IMAGE_DYNAMIC_RELOCATION64 { - ULONGLONG Symbol; - DWORD BaseRelocSize; - -} IMAGE_DYNAMIC_RELOCATION64, *PIMAGE_DYNAMIC_RELOCATION64; - -typedef struct _IMAGE_DYNAMIC_RELOCATION32_V2 { - DWORD HeaderSize; - DWORD FixupInfoSize; - DWORD Symbol; - DWORD SymbolGroup; - DWORD Flags; - - -} IMAGE_DYNAMIC_RELOCATION32_V2, *PIMAGE_DYNAMIC_RELOCATION32_V2; - -typedef struct _IMAGE_DYNAMIC_RELOCATION64_V2 { - DWORD HeaderSize; - DWORD FixupInfoSize; - ULONGLONG Symbol; - DWORD SymbolGroup; - DWORD Flags; - - -} IMAGE_DYNAMIC_RELOCATION64_V2, *PIMAGE_DYNAMIC_RELOCATION64_V2; - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 19856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - - -typedef IMAGE_DYNAMIC_RELOCATION64 IMAGE_DYNAMIC_RELOCATION; -typedef PIMAGE_DYNAMIC_RELOCATION64 PIMAGE_DYNAMIC_RELOCATION; -typedef IMAGE_DYNAMIC_RELOCATION64_V2 IMAGE_DYNAMIC_RELOCATION_V2; -typedef PIMAGE_DYNAMIC_RELOCATION64_V2 PIMAGE_DYNAMIC_RELOCATION_V2; -# 19880 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,1) -# 19881 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - -typedef struct _IMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER { - BYTE PrologueByteCount; - -} IMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER; -typedef IMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER __unaligned * PIMAGE_PROLOGUE_DYNAMIC_RELOCATION_HEADER; - -typedef struct _IMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER { - DWORD EpilogueCount; - BYTE EpilogueByteCount; - BYTE BranchDescriptorElementSize; - WORD BranchDescriptorCount; - - -} IMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER; -typedef IMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER __unaligned * PIMAGE_EPILOGUE_DYNAMIC_RELOCATION_HEADER; - -typedef struct _IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION { - DWORD PageRelativeOffset : 12; - DWORD IndirectCall : 1; - DWORD IATIndex : 19; -} IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION; -typedef IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION __unaligned * PIMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION; - -typedef struct _IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION { - WORD PageRelativeOffset : 12; - WORD IndirectCall : 1; - WORD RexWPrefix : 1; - WORD CfgCheck : 1; - WORD Reserved : 1; -} IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION; -typedef IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION __unaligned * PIMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION; - -typedef struct _IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION { - WORD PageRelativeOffset : 12; - WORD RegisterNumber : 4; -} IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION; -typedef IMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION __unaligned * PIMAGE_SWITCHTABLE_BRANCH_DYNAMIC_RELOCATION; - -typedef struct _IMAGE_FUNCTION_OVERRIDE_HEADER { - DWORD FuncOverrideSize; - - -} IMAGE_FUNCTION_OVERRIDE_HEADER; -typedef IMAGE_FUNCTION_OVERRIDE_HEADER __unaligned * PIMAGE_FUNCTION_OVERRIDE_HEADER; - -typedef struct _IMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION { - DWORD OriginalRva; - DWORD BDDOffset; - DWORD RvaSize; - DWORD BaseRelocSize; - - - - - - -} IMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION; -typedef IMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION * PIMAGE_FUNCTION_OVERRIDE_DYNAMIC_RELOCATION; - -typedef struct _IMAGE_BDD_INFO { - DWORD Version; - DWORD BDDSize; - -} IMAGE_BDD_INFO; -typedef IMAGE_BDD_INFO * PIMAGE_BDD_INFO; - -typedef struct _IMAGE_BDD_DYNAMIC_RELOCATION { - WORD Left; - WORD Right; - DWORD Value; -} IMAGE_BDD_DYNAMIC_RELOCATION; -typedef IMAGE_BDD_DYNAMIC_RELOCATION * PIMAGE_BDD_DYNAMIC_RELOCATION; -# 19962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 19963 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - - - - - -typedef struct _IMAGE_LOAD_CONFIG_DIRECTORY32 { - DWORD Size; - DWORD TimeDateStamp; - WORD MajorVersion; - WORD MinorVersion; - DWORD GlobalFlagsClear; - DWORD GlobalFlagsSet; - DWORD CriticalSectionDefaultTimeout; - DWORD DeCommitFreeBlockThreshold; - DWORD DeCommitTotalFreeThreshold; - DWORD LockPrefixTable; - DWORD MaximumAllocationSize; - DWORD VirtualMemoryThreshold; - DWORD ProcessHeapFlags; - DWORD ProcessAffinityMask; - WORD CSDVersion; - WORD DependentLoadFlags; - DWORD EditList; - DWORD SecurityCookie; - DWORD SEHandlerTable; - DWORD SEHandlerCount; - DWORD GuardCFCheckFunctionPointer; - DWORD GuardCFDispatchFunctionPointer; - DWORD GuardCFFunctionTable; - DWORD GuardCFFunctionCount; - DWORD GuardFlags; - IMAGE_LOAD_CONFIG_CODE_INTEGRITY CodeIntegrity; - DWORD GuardAddressTakenIatEntryTable; - DWORD GuardAddressTakenIatEntryCount; - DWORD GuardLongJumpTargetTable; - DWORD GuardLongJumpTargetCount; - DWORD DynamicValueRelocTable; - DWORD CHPEMetadataPointer; - DWORD GuardRFFailureRoutine; - DWORD GuardRFFailureRoutineFunctionPointer; - DWORD DynamicValueRelocTableOffset; - WORD DynamicValueRelocTableSection; - WORD Reserved2; - DWORD GuardRFVerifyStackPointerFunctionPointer; - DWORD HotPatchTableOffset; - DWORD Reserved3; - DWORD EnclaveConfigurationPointer; - DWORD VolatileMetadataPointer; - DWORD GuardEHContinuationTable; - DWORD GuardEHContinuationCount; - DWORD GuardXFGCheckFunctionPointer; - DWORD GuardXFGDispatchFunctionPointer; - DWORD GuardXFGTableDispatchFunctionPointer; - DWORD CastGuardOsDeterminedFailureMode; - DWORD GuardMemcpyFunctionPointer; -} IMAGE_LOAD_CONFIG_DIRECTORY32, *PIMAGE_LOAD_CONFIG_DIRECTORY32; - -typedef struct _IMAGE_LOAD_CONFIG_DIRECTORY64 { - DWORD Size; - DWORD TimeDateStamp; - WORD MajorVersion; - WORD MinorVersion; - DWORD GlobalFlagsClear; - DWORD GlobalFlagsSet; - DWORD CriticalSectionDefaultTimeout; - ULONGLONG DeCommitFreeBlockThreshold; - ULONGLONG DeCommitTotalFreeThreshold; - ULONGLONG LockPrefixTable; - ULONGLONG MaximumAllocationSize; - ULONGLONG VirtualMemoryThreshold; - ULONGLONG ProcessAffinityMask; - DWORD ProcessHeapFlags; - WORD CSDVersion; - WORD DependentLoadFlags; - ULONGLONG EditList; - ULONGLONG SecurityCookie; - ULONGLONG SEHandlerTable; - ULONGLONG SEHandlerCount; - ULONGLONG GuardCFCheckFunctionPointer; - ULONGLONG GuardCFDispatchFunctionPointer; - ULONGLONG GuardCFFunctionTable; - ULONGLONG GuardCFFunctionCount; - DWORD GuardFlags; - IMAGE_LOAD_CONFIG_CODE_INTEGRITY CodeIntegrity; - ULONGLONG GuardAddressTakenIatEntryTable; - ULONGLONG GuardAddressTakenIatEntryCount; - ULONGLONG GuardLongJumpTargetTable; - ULONGLONG GuardLongJumpTargetCount; - ULONGLONG DynamicValueRelocTable; - ULONGLONG CHPEMetadataPointer; - ULONGLONG GuardRFFailureRoutine; - ULONGLONG GuardRFFailureRoutineFunctionPointer; - DWORD DynamicValueRelocTableOffset; - WORD DynamicValueRelocTableSection; - WORD Reserved2; - ULONGLONG GuardRFVerifyStackPointerFunctionPointer; - DWORD HotPatchTableOffset; - DWORD Reserved3; - ULONGLONG EnclaveConfigurationPointer; - ULONGLONG VolatileMetadataPointer; - ULONGLONG GuardEHContinuationTable; - ULONGLONG GuardEHContinuationCount; - ULONGLONG GuardXFGCheckFunctionPointer; - ULONGLONG GuardXFGDispatchFunctionPointer; - ULONGLONG GuardXFGTableDispatchFunctionPointer; - ULONGLONG CastGuardOsDeterminedFailureMode; - ULONGLONG GuardMemcpyFunctionPointer; -} IMAGE_LOAD_CONFIG_DIRECTORY64, *PIMAGE_LOAD_CONFIG_DIRECTORY64; - - - - - -typedef IMAGE_LOAD_CONFIG_DIRECTORY64 IMAGE_LOAD_CONFIG_DIRECTORY; -typedef PIMAGE_LOAD_CONFIG_DIRECTORY64 PIMAGE_LOAD_CONFIG_DIRECTORY; - - - - - - - -typedef struct _IMAGE_HOT_PATCH_INFO { - DWORD Version; - DWORD Size; - DWORD SequenceNumber; - DWORD BaseImageList; - DWORD BaseImageCount; - DWORD BufferOffset; - DWORD ExtraPatchSize; -} IMAGE_HOT_PATCH_INFO, *PIMAGE_HOT_PATCH_INFO; - -typedef struct _IMAGE_HOT_PATCH_BASE { - DWORD SequenceNumber; - DWORD Flags; - DWORD OriginalTimeDateStamp; - DWORD OriginalCheckSum; - DWORD CodeIntegrityInfo; - DWORD CodeIntegritySize; - DWORD PatchTable; - DWORD BufferOffset; -} IMAGE_HOT_PATCH_BASE, *PIMAGE_HOT_PATCH_BASE; - -typedef struct _IMAGE_HOT_PATCH_HASHES { - BYTE SHA256[32]; - BYTE SHA1[20]; -} IMAGE_HOT_PATCH_HASHES, *PIMAGE_HOT_PATCH_HASHES; -# 20172 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_CE_RUNTIME_FUNCTION_ENTRY { - DWORD FuncStart; - DWORD PrologLen : 8; - DWORD FuncLen : 22; - DWORD ThirtyTwoBit : 1; - DWORD ExceptionFlag : 1; -} IMAGE_CE_RUNTIME_FUNCTION_ENTRY, * PIMAGE_CE_RUNTIME_FUNCTION_ENTRY; - -typedef struct _IMAGE_ARM_RUNTIME_FUNCTION_ENTRY { - DWORD BeginAddress; - union { - DWORD UnwindData; - struct { - DWORD Flag : 2; - DWORD FunctionLength : 11; - DWORD Ret : 2; - DWORD H : 1; - DWORD Reg : 3; - DWORD R : 1; - DWORD L : 1; - DWORD C : 1; - DWORD StackAdjust : 10; - } ; - } ; -} IMAGE_ARM_RUNTIME_FUNCTION_ENTRY, * PIMAGE_ARM_RUNTIME_FUNCTION_ENTRY; - -typedef enum ARM64_FNPDATA_FLAGS { - PdataRefToFullXdata = 0, - PdataPackedUnwindFunction = 1, - PdataPackedUnwindFragment = 2, -} ARM64_FNPDATA_FLAGS; - -typedef enum ARM64_FNPDATA_CR { - PdataCrUnchained = 0, - PdataCrUnchainedSavedLr = 1, - PdataCrChainedWithPac = 2, - PdataCrChained = 3, -} ARM64_FNPDATA_CR; - -typedef struct _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY { - DWORD BeginAddress; - union { - DWORD UnwindData; - struct { - DWORD Flag : 2; - DWORD FunctionLength : 11; - DWORD RegF : 3; - DWORD RegI : 4; - DWORD H : 1; - DWORD CR : 2; - DWORD FrameSize : 9; - } ; - } ; -} IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, * PIMAGE_ARM64_RUNTIME_FUNCTION_ENTRY; - -typedef union IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY_XDATA { - DWORD HeaderData; - struct { - DWORD FunctionLength : 18; - DWORD Version : 2; - DWORD ExceptionDataPresent : 1; - DWORD EpilogInHeader : 1; - DWORD EpilogCount : 5; - DWORD CodeWords : 5; - } ; -} IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY_XDATA; - -typedef struct _IMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY { - ULONGLONG BeginAddress; - ULONGLONG EndAddress; - ULONGLONG ExceptionHandler; - ULONGLONG HandlerData; - ULONGLONG PrologEndAddress; -} IMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY, *PIMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY; - -typedef struct _IMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY { - DWORD BeginAddress; - DWORD EndAddress; - DWORD ExceptionHandler; - DWORD HandlerData; - DWORD PrologEndAddress; -} IMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY, *PIMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY; - -typedef struct _IMAGE_RUNTIME_FUNCTION_ENTRY { - DWORD BeginAddress; - DWORD EndAddress; - union { - DWORD UnwindInfoAddress; - DWORD UnwindData; - } ; -} _IMAGE_RUNTIME_FUNCTION_ENTRY, *_PIMAGE_RUNTIME_FUNCTION_ENTRY; - -typedef _IMAGE_RUNTIME_FUNCTION_ENTRY IMAGE_IA64_RUNTIME_FUNCTION_ENTRY; -typedef _PIMAGE_RUNTIME_FUNCTION_ENTRY PIMAGE_IA64_RUNTIME_FUNCTION_ENTRY; - -typedef _IMAGE_RUNTIME_FUNCTION_ENTRY IMAGE_AMD64_RUNTIME_FUNCTION_ENTRY; -typedef _PIMAGE_RUNTIME_FUNCTION_ENTRY PIMAGE_AMD64_RUNTIME_FUNCTION_ENTRY; -# 20294 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef _IMAGE_RUNTIME_FUNCTION_ENTRY IMAGE_RUNTIME_FUNCTION_ENTRY; -typedef _PIMAGE_RUNTIME_FUNCTION_ENTRY PIMAGE_RUNTIME_FUNCTION_ENTRY; -# 20306 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_ENCLAVE_CONFIG32 { - DWORD Size; - DWORD MinimumRequiredConfigSize; - DWORD PolicyFlags; - DWORD NumberOfImports; - DWORD ImportList; - DWORD ImportEntrySize; - BYTE FamilyID[16]; - BYTE ImageID[16]; - DWORD ImageVersion; - DWORD SecurityVersion; - DWORD EnclaveSize; - DWORD NumberOfThreads; - DWORD EnclaveFlags; -} IMAGE_ENCLAVE_CONFIG32, *PIMAGE_ENCLAVE_CONFIG32; - -typedef struct _IMAGE_ENCLAVE_CONFIG64 { - DWORD Size; - DWORD MinimumRequiredConfigSize; - DWORD PolicyFlags; - DWORD NumberOfImports; - DWORD ImportList; - DWORD ImportEntrySize; - BYTE FamilyID[16]; - BYTE ImageID[16]; - DWORD ImageVersion; - DWORD SecurityVersion; - ULONGLONG EnclaveSize; - DWORD NumberOfThreads; - DWORD EnclaveFlags; -} IMAGE_ENCLAVE_CONFIG64, *PIMAGE_ENCLAVE_CONFIG64; - - -typedef IMAGE_ENCLAVE_CONFIG64 IMAGE_ENCLAVE_CONFIG; -typedef PIMAGE_ENCLAVE_CONFIG64 PIMAGE_ENCLAVE_CONFIG; -# 20352 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_ENCLAVE_IMPORT { - DWORD MatchType; - DWORD MinimumSecurityVersion; - BYTE UniqueOrAuthorID[32]; - BYTE FamilyID[16]; - BYTE ImageID[16]; - DWORD ImportName; - DWORD Reserved; -} IMAGE_ENCLAVE_IMPORT, *PIMAGE_ENCLAVE_IMPORT; -# 20372 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_DEBUG_DIRECTORY { - DWORD Characteristics; - DWORD TimeDateStamp; - WORD MajorVersion; - WORD MinorVersion; - DWORD Type; - DWORD SizeOfData; - DWORD AddressOfRawData; - DWORD PointerToRawData; -} IMAGE_DEBUG_DIRECTORY, *PIMAGE_DEBUG_DIRECTORY; -# 20412 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_COFF_SYMBOLS_HEADER { - DWORD NumberOfSymbols; - DWORD LvaToFirstSymbol; - DWORD NumberOfLinenumbers; - DWORD LvaToFirstLinenumber; - DWORD RvaToFirstByteOfCode; - DWORD RvaToLastByteOfCode; - DWORD RvaToFirstByteOfData; - DWORD RvaToLastByteOfData; -} IMAGE_COFF_SYMBOLS_HEADER, *PIMAGE_COFF_SYMBOLS_HEADER; - - - - - - -typedef struct _FPO_DATA { - DWORD ulOffStart; - DWORD cbProcSize; - DWORD cdwLocals; - WORD cdwParams; - WORD cbProlog : 8; - WORD cbRegs : 3; - WORD fHasSEH : 1; - WORD fUseBP : 1; - WORD reserved : 1; - WORD cbFrame : 2; -} FPO_DATA, *PFPO_DATA; - - - - - -typedef struct _IMAGE_DEBUG_MISC { - DWORD DataType; - DWORD Length; - - BOOLEAN Unicode; - BYTE Reserved[ 3 ]; - BYTE Data[ 1 ]; -} IMAGE_DEBUG_MISC, *PIMAGE_DEBUG_MISC; -# 20461 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_FUNCTION_ENTRY { - DWORD StartingAddress; - DWORD EndingAddress; - DWORD EndOfPrologue; -} IMAGE_FUNCTION_ENTRY, *PIMAGE_FUNCTION_ENTRY; - -typedef struct _IMAGE_FUNCTION_ENTRY64 { - ULONGLONG StartingAddress; - ULONGLONG EndingAddress; - union { - ULONGLONG EndOfPrologue; - ULONGLONG UnwindInfoAddress; - } ; -} IMAGE_FUNCTION_ENTRY64, *PIMAGE_FUNCTION_ENTRY64; -# 20496 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _IMAGE_SEPARATE_DEBUG_HEADER { - WORD Signature; - WORD Flags; - WORD Machine; - WORD Characteristics; - DWORD TimeDateStamp; - DWORD CheckSum; - DWORD ImageBase; - DWORD SizeOfImage; - DWORD NumberOfSections; - DWORD ExportedNamesSize; - DWORD DebugDirectorySize; - DWORD SectionAlignment; - DWORD Reserved[2]; -} IMAGE_SEPARATE_DEBUG_HEADER, *PIMAGE_SEPARATE_DEBUG_HEADER; - - - -typedef struct _NON_PAGED_DEBUG_INFO { - WORD Signature; - WORD Flags; - DWORD Size; - WORD Machine; - WORD Characteristics; - DWORD TimeDateStamp; - DWORD CheckSum; - DWORD SizeOfImage; - ULONGLONG ImageBase; - - -} NON_PAGED_DEBUG_INFO, *PNON_PAGED_DEBUG_INFO; -# 20550 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _ImageArchitectureHeader { - unsigned int AmaskValue: 1; - - int :7; - unsigned int AmaskShift: 8; - int :16; - DWORD FirstEntryRVA; -} IMAGE_ARCHITECTURE_HEADER, *PIMAGE_ARCHITECTURE_HEADER; - -typedef struct _ImageArchitectureEntry { - DWORD FixupInstRVA; - DWORD NewInst; -} IMAGE_ARCHITECTURE_ENTRY, *PIMAGE_ARCHITECTURE_ENTRY; - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 20565 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - - - - - - - - -typedef struct IMPORT_OBJECT_HEADER { - WORD Sig1; - WORD Sig2; - WORD Version; - WORD Machine; - DWORD TimeDateStamp; - DWORD SizeOfData; - - union { - WORD Ordinal; - WORD Hint; - } ; - - WORD Type : 2; - WORD NameType : 3; - WORD Reserved : 11; -} IMPORT_OBJECT_HEADER; - -typedef enum IMPORT_OBJECT_TYPE -{ - IMPORT_OBJECT_CODE = 0, - IMPORT_OBJECT_DATA = 1, - IMPORT_OBJECT_CONST = 2, -} IMPORT_OBJECT_TYPE; - -typedef enum IMPORT_OBJECT_NAME_TYPE -{ - IMPORT_OBJECT_ORDINAL = 0, - IMPORT_OBJECT_NAME = 1, - IMPORT_OBJECT_NAME_NO_PREFIX = 2, - IMPORT_OBJECT_NAME_UNDECORATE = 3, - - IMPORT_OBJECT_NAME_EXPORTAS = 4, -} IMPORT_OBJECT_NAME_TYPE; - - - - - -typedef enum ReplacesCorHdrNumericDefines -{ - - COMIMAGE_FLAGS_ILONLY =0x00000001, - COMIMAGE_FLAGS_32BITREQUIRED =0x00000002, - COMIMAGE_FLAGS_IL_LIBRARY =0x00000004, - COMIMAGE_FLAGS_STRONGNAMESIGNED =0x00000008, - COMIMAGE_FLAGS_NATIVE_ENTRYPOINT =0x00000010, - COMIMAGE_FLAGS_TRACKDEBUGDATA =0x00010000, - COMIMAGE_FLAGS_32BITPREFERRED =0x00020000, - - - COR_VERSION_MAJOR_V2 =2, - COR_VERSION_MAJOR =COR_VERSION_MAJOR_V2, - COR_VERSION_MINOR =5, - COR_DELETED_NAME_LENGTH =8, - COR_VTABLEGAP_NAME_LENGTH =8, - - - NATIVE_TYPE_MAX_CB =1, - COR_ILMETHOD_SECT_SMALL_MAX_DATASIZE=0xFF, - - - IMAGE_COR_MIH_METHODRVA =0x01, - IMAGE_COR_MIH_EHRVA =0x02, - IMAGE_COR_MIH_BASICBLOCK =0x08, - - - COR_VTABLE_32BIT =0x01, - COR_VTABLE_64BIT =0x02, - COR_VTABLE_FROM_UNMANAGED =0x04, - COR_VTABLE_FROM_UNMANAGED_RETAIN_APPDOMAIN =0x08, - COR_VTABLE_CALL_MOST_DERIVED =0x10, - - - IMAGE_COR_EATJ_THUNK_SIZE =32, - - - - MAX_CLASS_NAME =1024, - MAX_PACKAGE_NAME =1024, -} ReplacesCorHdrNumericDefines; - - -typedef struct IMAGE_COR20_HEADER -{ - - DWORD cb; - WORD MajorRuntimeVersion; - WORD MinorRuntimeVersion; - - - IMAGE_DATA_DIRECTORY MetaData; - DWORD Flags; - - - - union { - DWORD EntryPointToken; - DWORD EntryPointRVA; - } ; - - - IMAGE_DATA_DIRECTORY Resources; - IMAGE_DATA_DIRECTORY StrongNameSignature; - - - IMAGE_DATA_DIRECTORY CodeManagerTable; - IMAGE_DATA_DIRECTORY VTableFixups; - IMAGE_DATA_DIRECTORY ExportAddressTableJumps; - - - IMAGE_DATA_DIRECTORY ManagedNativeHeader; - -} IMAGE_COR20_HEADER, *PIMAGE_COR20_HEADER; -# 20696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\apiset.h" 1 3 -# 20697 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 -# 20709 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__declspec(dllimport) - -WORD -__stdcall -RtlCaptureStackBackTrace( - DWORD FramesToSkip, - DWORD FramesToCapture, - PVOID* BackTrace, - PDWORD BackTraceHash - ); - - - - - -__declspec(dllimport) -void -__stdcall -RtlCaptureContext( - PCONTEXT ContextRecord - ); -# 20743 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__declspec(dllimport) -void -__stdcall -RtlCaptureContext2( - PCONTEXT ContextRecord - ); -# 20767 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _UNWIND_HISTORY_TABLE_ENTRY { - ULONG_PTR ImageBase; - PRUNTIME_FUNCTION FunctionEntry; -} UNWIND_HISTORY_TABLE_ENTRY, *PUNWIND_HISTORY_TABLE_ENTRY; - -typedef struct _UNWIND_HISTORY_TABLE { - DWORD Count; - BYTE LocalHint; - BYTE GlobalHint; - BYTE Search; - BYTE Once; - ULONG_PTR LowAddress; - ULONG_PTR HighAddress; - UNWIND_HISTORY_TABLE_ENTRY Entry[12]; -} UNWIND_HISTORY_TABLE, *PUNWIND_HISTORY_TABLE; - - - - - - -__declspec(dllimport) -void -__stdcall -RtlUnwind( - PVOID TargetFrame, - PVOID TargetIp, - PEXCEPTION_RECORD ExceptionRecord, - PVOID ReturnValue - ); -# 20806 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__declspec(dllimport) -BOOLEAN -__cdecl -RtlAddFunctionTable( - PRUNTIME_FUNCTION FunctionTable, - DWORD EntryCount, - DWORD64 BaseAddress - ); - -__declspec(dllimport) -BOOLEAN -__cdecl -RtlDeleteFunctionTable( - PRUNTIME_FUNCTION FunctionTable - ); - -__declspec(dllimport) -BOOLEAN -__cdecl -RtlInstallFunctionTableCallback( - DWORD64 TableIdentifier, - DWORD64 BaseAddress, - DWORD Length, - PGET_RUNTIME_FUNCTION_CALLBACK Callback, - PVOID Context, - PCWSTR OutOfProcessCallbackDll - ); -# 20842 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__declspec(dllimport) -DWORD -__stdcall -RtlAddGrowableFunctionTable( - PVOID* DynamicTable, - PRUNTIME_FUNCTION FunctionTable, - DWORD EntryCount, - DWORD MaximumEntryCount, - ULONG_PTR RangeBase, - ULONG_PTR RangeEnd - ); - -__declspec(dllimport) -void -__stdcall -RtlGrowFunctionTable( - PVOID DynamicTable, - DWORD NewEntryCount - ); - -__declspec(dllimport) -void -__stdcall -RtlDeleteGrowableFunctionTable( - PVOID DynamicTable - ); -# 20877 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__declspec(dllimport) -PRUNTIME_FUNCTION -__stdcall -RtlLookupFunctionEntry( - DWORD64 ControlPc, - PDWORD64 ImageBase, - PUNWIND_HISTORY_TABLE HistoryTable - ); - -__declspec(dllimport) -void -__cdecl -RtlRestoreContext( - PCONTEXT ContextRecord, - struct _EXCEPTION_RECORD* ExceptionRecord - ); - -__declspec(dllimport) -void -__stdcall -RtlUnwindEx( - PVOID TargetFrame, - PVOID TargetIp, - PEXCEPTION_RECORD ExceptionRecord, - PVOID ReturnValue, - PCONTEXT ContextRecord, - PUNWIND_HISTORY_TABLE HistoryTable - ); - -__declspec(dllimport) -PEXCEPTION_ROUTINE -__stdcall -RtlVirtualUnwind( - DWORD HandlerType, - DWORD64 ImageBase, - DWORD64 ControlPc, - PRUNTIME_FUNCTION FunctionEntry, - PCONTEXT ContextRecord, - PVOID* HandlerData, - PDWORD64 EstablisherFrame, - PKNONVOLATILE_CONTEXT_POINTERS ContextPointers - ); -# 21247 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__declspec(dllimport) -void -__stdcall -RtlRaiseException( - PEXCEPTION_RECORD ExceptionRecord - ); - -__declspec(dllimport) -PVOID -__stdcall -RtlPcToFileHeader( - PVOID PcValue, - PVOID* BaseOfImage - ); -# 21272 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__declspec(dllimport) -SIZE_T -__stdcall -RtlCompareMemory( - const void* Source1, - const void* Source2, - SIZE_T Length - ); -# 21313 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma warning(push) -#pragma warning(disable: 4324) - -typedef struct __declspec(align(16)) _SLIST_ENTRY { - struct _SLIST_ENTRY *Next; -} SLIST_ENTRY, *PSLIST_ENTRY; - -#pragma warning(pop) -# 21330 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef union __declspec(align(16)) _SLIST_HEADER { - struct { - ULONGLONG Alignment; - ULONGLONG Region; - } ; - struct { - ULONGLONG Depth:16; - ULONGLONG Sequence:48; - ULONGLONG Reserved:4; - ULONGLONG NextEntry:60; - } HeaderX64; -} SLIST_HEADER, *PSLIST_HEADER; -# 21389 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__declspec(dllimport) -void -__stdcall -RtlInitializeSListHead ( - PSLIST_HEADER ListHead - ); - - -__declspec(dllimport) -PSLIST_ENTRY -__stdcall -RtlFirstEntrySList ( - const SLIST_HEADER *ListHead - ); - -__declspec(dllimport) -PSLIST_ENTRY -__stdcall -RtlInterlockedPopEntrySList ( - PSLIST_HEADER ListHead - ); - -__declspec(dllimport) -PSLIST_ENTRY -__stdcall -RtlInterlockedPushEntrySList ( - PSLIST_HEADER ListHead, - PSLIST_ENTRY ListEntry - ); - -__declspec(dllimport) -PSLIST_ENTRY -__stdcall -RtlInterlockedPushListSListEx ( - PSLIST_HEADER ListHead, - PSLIST_ENTRY List, - PSLIST_ENTRY ListEnd, - DWORD Count - ); - -__declspec(dllimport) -PSLIST_ENTRY -__stdcall -RtlInterlockedFlushSList ( - PSLIST_HEADER ListHead - ); - -__declspec(dllimport) -WORD -__stdcall -RtlQueryDepthSList ( - PSLIST_HEADER ListHead - ); - - - -__declspec(dllimport) -ULONG_PTR -__stdcall -RtlGetReturnAddressHijackTarget ( - void - ); -# 21482 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef union _RTL_RUN_ONCE { - PVOID Ptr; -} RTL_RUN_ONCE, *PRTL_RUN_ONCE; - - - -typedef struct _RTL_BARRIER { - DWORD Reserved1; - DWORD Reserved2; - ULONG_PTR Reserved3[2]; - DWORD Reserved4; - DWORD Reserved5; -} RTL_BARRIER, *PRTL_BARRIER; -# 21583 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__declspec(noreturn) -void -__fastfail( - unsigned int Code - ); - -#pragma intrinsic(__fastfail) -# 21612 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__forceinline -DWORD -HEAP_MAKE_TAG_FLAGS ( - DWORD TagBase, - DWORD Tag - ) - -{ - return ((DWORD)((TagBase) + ((Tag) << 18))); -} -# 21693 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__forceinline -int -RtlConstantTimeEqualMemory( - const void* v1, - const void* v2, - unsigned long len - ) -{ - char x = 0; - unsigned long i = 0; - - - volatile const char* p1 = (volatile const char*) v1; - volatile const char* p2 = (volatile const char*) v2; - - for (; i < len; i += 1) { - - - - - - - - x |= p1[i] ^ p2[i]; - - - - } - - return x == 0; -} - - - - - -__forceinline -PVOID -RtlSecureZeroMemory( - PVOID ptr, - SIZE_T cnt - ) -{ - volatile char *vptr = (volatile char *)ptr; - - - - __stosb((PBYTE )((DWORD64)vptr), 0, cnt); -# 21762 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 - return ptr; -} -# 21792 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _MESSAGE_RESOURCE_ENTRY { - WORD Length; - WORD Flags; - BYTE Text[ 1 ]; -} MESSAGE_RESOURCE_ENTRY, *PMESSAGE_RESOURCE_ENTRY; - - - - -typedef struct _MESSAGE_RESOURCE_BLOCK { - DWORD LowId; - DWORD HighId; - DWORD OffsetToEntries; -} MESSAGE_RESOURCE_BLOCK, *PMESSAGE_RESOURCE_BLOCK; - -typedef struct _MESSAGE_RESOURCE_DATA { - DWORD NumberOfBlocks; - MESSAGE_RESOURCE_BLOCK Blocks[ 1 ]; -} MESSAGE_RESOURCE_DATA, *PMESSAGE_RESOURCE_DATA; - - -typedef struct _OSVERSIONINFOA { - DWORD dwOSVersionInfoSize; - DWORD dwMajorVersion; - DWORD dwMinorVersion; - DWORD dwBuildNumber; - DWORD dwPlatformId; - CHAR szCSDVersion[ 128 ]; -} OSVERSIONINFOA, *POSVERSIONINFOA, *LPOSVERSIONINFOA; - -typedef struct _OSVERSIONINFOW { - DWORD dwOSVersionInfoSize; - DWORD dwMajorVersion; - DWORD dwMinorVersion; - DWORD dwBuildNumber; - DWORD dwPlatformId; - WCHAR szCSDVersion[ 128 ]; -} OSVERSIONINFOW, *POSVERSIONINFOW, *LPOSVERSIONINFOW, RTL_OSVERSIONINFOW, *PRTL_OSVERSIONINFOW; - - - - - -typedef OSVERSIONINFOA OSVERSIONINFO; -typedef POSVERSIONINFOA POSVERSIONINFO; -typedef LPOSVERSIONINFOA LPOSVERSIONINFO; - - -typedef struct _OSVERSIONINFOEXA { - DWORD dwOSVersionInfoSize; - DWORD dwMajorVersion; - DWORD dwMinorVersion; - DWORD dwBuildNumber; - DWORD dwPlatformId; - CHAR szCSDVersion[ 128 ]; - WORD wServicePackMajor; - WORD wServicePackMinor; - WORD wSuiteMask; - BYTE wProductType; - BYTE wReserved; -} OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA; -typedef struct _OSVERSIONINFOEXW { - DWORD dwOSVersionInfoSize; - DWORD dwMajorVersion; - DWORD dwMinorVersion; - DWORD dwBuildNumber; - DWORD dwPlatformId; - WCHAR szCSDVersion[ 128 ]; - WORD wServicePackMajor; - WORD wServicePackMinor; - WORD wSuiteMask; - BYTE wProductType; - BYTE wReserved; -} OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW, RTL_OSVERSIONINFOEXW, *PRTL_OSVERSIONINFOEXW; - - - - - -typedef OSVERSIONINFOEXA OSVERSIONINFOEX; -typedef POSVERSIONINFOEXA POSVERSIONINFOEX; -typedef LPOSVERSIONINFOEXA LPOSVERSIONINFOEX; -# 21941 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__declspec(dllimport) -ULONGLONG -__stdcall -VerSetConditionMask( - ULONGLONG ConditionMask, - DWORD TypeMask, - BYTE Condition - ); -# 21966 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__declspec(dllimport) -BOOLEAN -__stdcall -RtlGetProductInfo( - DWORD OSMajorVersion, - DWORD OSMinorVersion, - DWORD SpMajorVersion, - DWORD SpMinorVersion, - PDWORD ReturnedProductType - ); -# 21986 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _RTL_UMS_THREAD_INFO_CLASS { - UmsThreadInvalidInfoClass = 0, - UmsThreadUserContext, - UmsThreadPriority, - UmsThreadAffinity, - UmsThreadTeb, - UmsThreadIsSuspended, - UmsThreadIsTerminated, - UmsThreadMaxInfoClass -} RTL_UMS_THREAD_INFO_CLASS, *PRTL_UMS_THREAD_INFO_CLASS; - -typedef enum _RTL_UMS_SCHEDULER_REASON { - UmsSchedulerStartup = 0, - UmsSchedulerThreadBlocked, - UmsSchedulerThreadYield, -} RTL_UMS_SCHEDULER_REASON, *PRTL_UMS_SCHEDULER_REASON; - -typedef - -void -__stdcall -RTL_UMS_SCHEDULER_ENTRY_POINT( - RTL_UMS_SCHEDULER_REASON Reason, - ULONG_PTR ActivationPayload, - PVOID SchedulerParam - ); - -typedef RTL_UMS_SCHEDULER_ENTRY_POINT *PRTL_UMS_SCHEDULER_ENTRY_POINT; -# 22076 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__declspec(dllimport) -DWORD -__stdcall -RtlCrc32( - const void *Buffer, - size_t Size, - DWORD InitialCrc - ); - -__declspec(dllimport) -ULONGLONG -__stdcall -RtlCrc64( - const void *Buffer, - size_t Size, - ULONGLONG InitialCrc - ); -# 22114 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _OS_DEPLOYEMENT_STATE_VALUES { - OS_DEPLOYMENT_STANDARD = 1, - OS_DEPLOYMENT_COMPACT -} OS_DEPLOYEMENT_STATE_VALUES; - -__declspec(dllimport) -OS_DEPLOYEMENT_STATE_VALUES -__stdcall -RtlOsDeploymentState( - DWORD Flags - ); -# 22136 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _NV_MEMORY_RANGE { - void *BaseAddress; - SIZE_T Length; -} NV_MEMORY_RANGE, *PNV_MEMORY_RANGE; -# 22241 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__declspec(dllimport) -DWORD -__stdcall -RtlGetNonVolatileToken ( - PVOID NvBuffer, - SIZE_T Size, - PVOID *NvToken - ); - - -__declspec(dllimport) -DWORD -__stdcall -RtlFreeNonVolatileToken ( - PVOID NvToken - ); - - -__declspec(dllimport) -DWORD -__stdcall -RtlFlushNonVolatileMemory ( - PVOID NvToken, - PVOID NvBuffer, - SIZE_T Size, - DWORD Flags - ); - - -__declspec(dllimport) -DWORD -__stdcall -RtlDrainNonVolatileFlush ( - PVOID NvToken - ); - - -__declspec(dllimport) -DWORD -__stdcall -RtlWriteNonVolatileMemory ( - PVOID NvToken, - void __unaligned *NvDestination, - const void __unaligned *Source, - SIZE_T Size, - DWORD Flags - ); - - - - -__declspec(dllimport) -DWORD -__stdcall -RtlFillNonVolatileMemory ( - PVOID NvToken, - void __unaligned *NvDestination, - SIZE_T Size, - const BYTE Value, - DWORD Flags - ); - - - - -__declspec(dllimport) -DWORD -__stdcall -RtlFlushNonVolatileMemoryRanges ( - PVOID NvToken, - PNV_MEMORY_RANGE NvRanges, - SIZE_T NumRanges, - DWORD Flags - ); -# 22366 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct CORRELATION_VECTOR { - CHAR Version; - CHAR Vector[129]; -} CORRELATION_VECTOR; - -typedef CORRELATION_VECTOR *PCORRELATION_VECTOR; - - - -__declspec(dllimport) -DWORD -__stdcall -RtlInitializeCorrelationVector( - PCORRELATION_VECTOR CorrelationVector, - int Version, - const GUID * Guid - ); - - -__declspec(dllimport) -DWORD -__stdcall -RtlIncrementCorrelationVector( - PCORRELATION_VECTOR CorrelationVector - ); - -__declspec(dllimport) -DWORD -__stdcall -RtlExtendCorrelationVector( - PCORRELATION_VECTOR CorrelationVector - ); - -__declspec(dllimport) -DWORD -__stdcall -RtlValidateCorrelationVector( - PCORRELATION_VECTOR Vector - ); - - - - - - -typedef struct _CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG { - - - - DWORD Size; - - - - - PCWSTR TriggerId; - -} CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG, *PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG; - - -__forceinline -void -CUSTOM_SYSTEM_EVENT_TRIGGER_INIT( - PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG Config, - PCWSTR TriggerId - ) -{ - memset((Config),0,(sizeof(CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG))); - - Config->Size = sizeof(CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG); - Config->TriggerId = TriggerId; -} - - - - -DWORD -__stdcall -RtlRaiseCustomSystemEventTrigger( - PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG TriggerConfig - ); -# 22458 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _IMAGE_POLICY_ENTRY_TYPE { - ImagePolicyEntryTypeNone = 0, - ImagePolicyEntryTypeBool, - ImagePolicyEntryTypeInt8, - ImagePolicyEntryTypeUInt8, - ImagePolicyEntryTypeInt16, - ImagePolicyEntryTypeUInt16, - ImagePolicyEntryTypeInt32, - ImagePolicyEntryTypeUInt32, - ImagePolicyEntryTypeInt64, - ImagePolicyEntryTypeUInt64, - ImagePolicyEntryTypeAnsiString, - ImagePolicyEntryTypeUnicodeString, - ImagePolicyEntryTypeOverride, - ImagePolicyEntryTypeMaximum -} IMAGE_POLICY_ENTRY_TYPE; - -typedef enum _IMAGE_POLICY_ID { - ImagePolicyIdNone = 0, - ImagePolicyIdEtw, - ImagePolicyIdDebug, - ImagePolicyIdCrashDump, - ImagePolicyIdCrashDumpKey, - ImagePolicyIdCrashDumpKeyGuid, - ImagePolicyIdParentSd, - ImagePolicyIdParentSdRev, - ImagePolicyIdSvn, - ImagePolicyIdDeviceId, - ImagePolicyIdCapability, - ImagePolicyIdScenarioId, - ImagePolicyIdMaximum -} IMAGE_POLICY_ID; - -typedef struct _IMAGE_POLICY_ENTRY { - IMAGE_POLICY_ENTRY_TYPE Type; - IMAGE_POLICY_ID PolicyId; - union { - const void* None; - BOOLEAN BoolValue; - INT8 Int8Value; - UINT8 UInt8Value; - INT16 Int16Value; - UINT16 UInt16Value; - INT32 Int32Value; - UINT32 UInt32Value; - INT64 Int64Value; - UINT64 UInt64Value; - PCSTR AnsiStringValue; - PCWSTR UnicodeStringValue; - } u; -} IMAGE_POLICY_ENTRY; -typedef const IMAGE_POLICY_ENTRY* PCIMAGE_POLICY_ENTRY; - - - -#pragma warning(push) -#pragma warning(disable: 4200) -typedef struct _IMAGE_POLICY_METADATA { - BYTE Version; - BYTE Reserved0[7]; - ULONGLONG ApplicationId; - IMAGE_POLICY_ENTRY Policies[]; -} IMAGE_POLICY_METADATA; -typedef const IMAGE_POLICY_METADATA* PCIMAGE_POLICY_METADATA; -#pragma warning(pop) -# 22579 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__declspec(dllimport) -BOOLEAN -__stdcall -RtlIsZeroMemory ( - PVOID Buffer, - SIZE_T Length - ); - - -__declspec(dllimport) -BOOLEAN -__stdcall -RtlNormalizeSecurityDescriptor ( - PSECURITY_DESCRIPTOR *SecurityDescriptor, - DWORD SecurityDescriptorLength, - PSECURITY_DESCRIPTOR *NewSecurityDescriptor, - PDWORD NewSecurityDescriptorLength, - BOOLEAN CheckOnly - ); -# 22613 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _RTL_SYSTEM_GLOBAL_DATA_ID { - GlobalDataIdUnknown = 0, - GlobalDataIdRngSeedVersion, - GlobalDataIdInterruptTime, - GlobalDataIdTimeZoneBias, - GlobalDataIdImageNumberLow, - GlobalDataIdImageNumberHigh, - GlobalDataIdTimeZoneId, - GlobalDataIdNtMajorVersion, - GlobalDataIdNtMinorVersion, - GlobalDataIdSystemExpirationDate, - GlobalDataIdKdDebuggerEnabled, - GlobalDataIdCyclesPerYield, - GlobalDataIdSafeBootMode, - GlobalDataIdLastSystemRITEventTickCount, - GlobalDataIdConsoleSharedDataFlags, - GlobalDataIdNtSystemRootDrive, - GlobalDataIdQpcShift, - GlobalDataIdQpcBypassEnabled, - GlobalDataIdQpcData, - GlobalDataIdQpcBias -} RTL_SYSTEM_GLOBAL_DATA_ID, *PRTL_SYSTEM_GLOBAL_DATA_ID; - -__declspec(dllimport) -DWORD -__stdcall -RtlGetSystemGlobalData ( - RTL_SYSTEM_GLOBAL_DATA_ID DataId, - PVOID Buffer, - DWORD Size - ); - -__declspec(dllimport) -DWORD -__stdcall -RtlSetSystemGlobalData ( - RTL_SYSTEM_GLOBAL_DATA_ID DataId, - PVOID Buffer, - DWORD Size - ); - - - - -typedef struct _RTL_CRITICAL_SECTION_DEBUG { - WORD Type; - WORD CreatorBackTraceIndex; - struct _RTL_CRITICAL_SECTION *CriticalSection; - LIST_ENTRY ProcessLocksList; - DWORD EntryCount; - DWORD ContentionCount; - DWORD Flags; - WORD CreatorBackTraceIndexHigh; - WORD Identifier; -} RTL_CRITICAL_SECTION_DEBUG, *PRTL_CRITICAL_SECTION_DEBUG, RTL_RESOURCE_DEBUG, *PRTL_RESOURCE_DEBUG; -# 22685 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma pack(push, 8) - -typedef struct _RTL_CRITICAL_SECTION { - PRTL_CRITICAL_SECTION_DEBUG DebugInfo; - - - - - - - LONG LockCount; - LONG RecursionCount; - HANDLE OwningThread; - HANDLE LockSemaphore; - ULONG_PTR SpinCount; -} RTL_CRITICAL_SECTION, *PRTL_CRITICAL_SECTION; - -#pragma pack(pop) - -typedef struct _RTL_SRWLOCK { - PVOID Ptr; -} RTL_SRWLOCK, *PRTL_SRWLOCK; - -typedef struct _RTL_CONDITION_VARIABLE { - PVOID Ptr; -} RTL_CONDITION_VARIABLE, *PRTL_CONDITION_VARIABLE; - - -typedef -void -(__stdcall *PAPCFUNC)( - ULONG_PTR Parameter - ); -typedef LONG (__stdcall *PVECTORED_EXCEPTION_HANDLER)( - struct _EXCEPTION_POINTERS *ExceptionInfo - ); - -typedef enum _HEAP_INFORMATION_CLASS { - - HeapCompatibilityInformation = 0, - HeapEnableTerminationOnCorruption = 1 - - - - - , - - HeapOptimizeResources = 3 - - - - - , - - HeapTag = 7 - -} HEAP_INFORMATION_CLASS; - - - - - - -typedef struct _HEAP_OPTIMIZE_RESOURCES_INFORMATION { - DWORD Version; - DWORD Flags; -} HEAP_OPTIMIZE_RESOURCES_INFORMATION, *PHEAP_OPTIMIZE_RESOURCES_INFORMATION; -# 22767 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef void (__stdcall * WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN ); -typedef void (__stdcall * WORKERCALLBACKFUNC) (PVOID ); -typedef void (__stdcall * APC_CALLBACK_FUNCTION) (DWORD , PVOID, PVOID); -typedef WAITORTIMERCALLBACKFUNC WAITORTIMERCALLBACK; -typedef -void -(__stdcall *PFLS_CALLBACK_FUNCTION) ( - PVOID lpFlsData - ); - -typedef -BOOLEAN -(__stdcall *PSECURE_MEMORY_CACHE_CALLBACK) ( - PVOID Addr, - SIZE_T Range - ); - - - - -typedef enum _ACTIVATION_CONTEXT_INFO_CLASS { - ActivationContextBasicInformation = 1, - ActivationContextDetailedInformation = 2, - AssemblyDetailedInformationInActivationContext = 3, - FileInformationInAssemblyOfAssemblyInActivationContext = 4, - RunlevelInformationInActivationContext = 5, - CompatibilityInformationInActivationContext = 6, - ActivationContextManifestResourceName = 7, - MaxActivationContextInfoClass, - - - - - AssemblyDetailedInformationInActivationContxt = 3, - FileInformationInAssemblyOfAssemblyInActivationContxt = 4 -} ACTIVATION_CONTEXT_INFO_CLASS; - - - - -typedef struct _ACTIVATION_CONTEXT_QUERY_INDEX { - DWORD ulAssemblyIndex; - DWORD ulFileIndexInAssembly; -} ACTIVATION_CONTEXT_QUERY_INDEX, * PACTIVATION_CONTEXT_QUERY_INDEX; - -typedef const struct _ACTIVATION_CONTEXT_QUERY_INDEX * PCACTIVATION_CONTEXT_QUERY_INDEX; - - - - - - - -typedef struct _ASSEMBLY_FILE_DETAILED_INFORMATION { - DWORD ulFlags; - DWORD ulFilenameLength; - DWORD ulPathLength; - - PCWSTR lpFileName; - PCWSTR lpFilePath; -} ASSEMBLY_FILE_DETAILED_INFORMATION, *PASSEMBLY_FILE_DETAILED_INFORMATION; -typedef const ASSEMBLY_FILE_DETAILED_INFORMATION *PCASSEMBLY_FILE_DETAILED_INFORMATION; -# 22839 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION { - DWORD ulFlags; - DWORD ulEncodedAssemblyIdentityLength; - DWORD ulManifestPathType; - DWORD ulManifestPathLength; - LARGE_INTEGER liManifestLastWriteTime; - DWORD ulPolicyPathType; - DWORD ulPolicyPathLength; - LARGE_INTEGER liPolicyLastWriteTime; - DWORD ulMetadataSatelliteRosterIndex; - - DWORD ulManifestVersionMajor; - DWORD ulManifestVersionMinor; - DWORD ulPolicyVersionMajor; - DWORD ulPolicyVersionMinor; - DWORD ulAssemblyDirectoryNameLength; - - PCWSTR lpAssemblyEncodedAssemblyIdentity; - PCWSTR lpAssemblyManifestPath; - PCWSTR lpAssemblyPolicyPath; - PCWSTR lpAssemblyDirectoryName; - - DWORD ulFileCount; -} ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION, * PACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION; - -typedef const struct _ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION * PCACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION ; - -typedef enum -{ - ACTCTX_RUN_LEVEL_UNSPECIFIED = 0, - ACTCTX_RUN_LEVEL_AS_INVOKER, - ACTCTX_RUN_LEVEL_HIGHEST_AVAILABLE, - ACTCTX_RUN_LEVEL_REQUIRE_ADMIN, - ACTCTX_RUN_LEVEL_NUMBERS -} ACTCTX_REQUESTED_RUN_LEVEL; - -typedef struct _ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION { - DWORD ulFlags; - ACTCTX_REQUESTED_RUN_LEVEL RunLevel; - DWORD UiAccess; -} ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION, * PACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION; - -typedef const struct _ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION * PCACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION ; - -typedef enum -{ - ACTCTX_COMPATIBILITY_ELEMENT_TYPE_UNKNOWN = 0, - ACTCTX_COMPATIBILITY_ELEMENT_TYPE_OS, - ACTCTX_COMPATIBILITY_ELEMENT_TYPE_MITIGATION, - ACTCTX_COMPATIBILITY_ELEMENT_TYPE_MAXVERSIONTESTED -} ACTCTX_COMPATIBILITY_ELEMENT_TYPE; - -typedef struct _COMPATIBILITY_CONTEXT_ELEMENT { - GUID Id; - ACTCTX_COMPATIBILITY_ELEMENT_TYPE Type; - ULONGLONG MaxVersionTested; -} COMPATIBILITY_CONTEXT_ELEMENT, *PCOMPATIBILITY_CONTEXT_ELEMENT; - -typedef const struct _COMPATIBILITY_CONTEXT_ELEMENT *PCCOMPATIBILITY_CONTEXT_ELEMENT; - - - - -#pragma warning(push) -#pragma warning(disable: 4200) - - -typedef struct _ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION { - DWORD ElementCount; - COMPATIBILITY_CONTEXT_ELEMENT Elements[]; -} ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION, * PACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION; - - -#pragma warning(pop) - - -typedef const struct _ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION * PCACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION; - - - -typedef struct _SUPPORTED_OS_INFO { - WORD MajorVersion; - WORD MinorVersion; -} SUPPORTED_OS_INFO, *PSUPPORTED_OS_INFO; - -typedef struct _MAXVERSIONTESTED_INFO { - ULONGLONG MaxVersionTested; -} MAXVERSIONTESTED_INFO, *PMAXVERSIONTESTED_INFO; - -typedef struct _ACTIVATION_CONTEXT_DETAILED_INFORMATION { - DWORD dwFlags; - DWORD ulFormatVersion; - DWORD ulAssemblyCount; - DWORD ulRootManifestPathType; - DWORD ulRootManifestPathChars; - DWORD ulRootConfigurationPathType; - DWORD ulRootConfigurationPathChars; - DWORD ulAppDirPathType; - DWORD ulAppDirPathChars; - PCWSTR lpRootManifestPath; - PCWSTR lpRootConfigurationPath; - PCWSTR lpAppDirPath; -} ACTIVATION_CONTEXT_DETAILED_INFORMATION, *PACTIVATION_CONTEXT_DETAILED_INFORMATION; - -typedef const struct _ACTIVATION_CONTEXT_DETAILED_INFORMATION *PCACTIVATION_CONTEXT_DETAILED_INFORMATION; - - - - -typedef struct _HARDWARE_COUNTER_DATA { - HARDWARE_COUNTER_TYPE Type; - DWORD Reserved; - DWORD64 Value; -} HARDWARE_COUNTER_DATA, *PHARDWARE_COUNTER_DATA; - - - -typedef struct _PERFORMANCE_DATA { - WORD Size; - BYTE Version; - BYTE HwCountersCount; - DWORD ContextSwitchCount; - DWORD64 WaitReasonBitMap; - DWORD64 CycleTime; - DWORD RetryCount; - DWORD Reserved; - HARDWARE_COUNTER_DATA HwCounters[16]; -} PERFORMANCE_DATA, *PPERFORMANCE_DATA; -# 23055 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -void -__stdcall -RtlGetDeviceFamilyInfoEnum( - ULONGLONG *pullUAPInfo, - DWORD *pulDeviceFamily, - DWORD *pulDeviceForm -); - -DWORD -__stdcall -RtlConvertDeviceFamilyInfoToString( - PDWORD pulDeviceFamilyBufferSize, - PDWORD pulDeviceFormBufferSize, - PWSTR DeviceFamily, - PWSTR DeviceForm - -); - -DWORD -__stdcall -RtlSwitchedVVI( - PRTL_OSVERSIONINFOEXW VersionInfo, - DWORD TypeMask, - ULONGLONG ConditionMask - ); -# 23130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _EVENTLOGRECORD { - DWORD Length; - DWORD Reserved; - DWORD RecordNumber; - DWORD TimeGenerated; - DWORD TimeWritten; - DWORD EventID; - WORD EventType; - WORD NumStrings; - WORD EventCategory; - WORD ReservedFlags; - DWORD ClosingRecordNumber; - DWORD StringOffset; - DWORD UserSidLength; - DWORD UserSidOffset; - DWORD DataLength; - DWORD DataOffset; -# 23158 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -} EVENTLOGRECORD, *PEVENTLOGRECORD; - - - - - - -#pragma warning(push) - -#pragma warning(disable: 4200) - -struct _EVENTSFORLOGFILE; -typedef struct _EVENTSFORLOGFILE EVENTSFORLOGFILE, *PEVENTSFORLOGFILE; - -struct _PACKEDEVENTINFO; -typedef struct _PACKEDEVENTINFO PACKEDEVENTINFO, *PPACKEDEVENTINFO; - - - -struct _EVENTSFORLOGFILE -{ - DWORD ulSize; - WCHAR szLogicalLogFile[256]; - DWORD ulNumRecords; - EVENTLOGRECORD pEventLogRecords[]; -}; - -struct _PACKEDEVENTINFO -{ - DWORD ulSize; - DWORD ulNumEventsForLogFile; - DWORD ulOffsets[]; -}; - - - - -#pragma warning(pop) -# 23435 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _CM_SERVICE_NODE_TYPE { - DriverType = 0x00000001, - FileSystemType = 0x00000002, - Win32ServiceOwnProcess = 0x00000010, - Win32ServiceShareProcess = 0x00000020, - AdapterType = 0x00000004, - RecognizerType = 0x00000008 -} SERVICE_NODE_TYPE; - -typedef enum _CM_SERVICE_LOAD_TYPE { - BootLoad = 0x00000000, - SystemLoad = 0x00000001, - AutoLoad = 0x00000002, - DemandLoad = 0x00000003, - DisableLoad = 0x00000004 -} SERVICE_LOAD_TYPE; - -typedef enum _CM_ERROR_CONTROL_TYPE { - IgnoreError = 0x00000000, - NormalError = 0x00000001, - SevereError = 0x00000002, - CriticalError = 0x00000003 -} SERVICE_ERROR_TYPE; -# 23528 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _TAPE_ERASE { - DWORD Type; - BOOLEAN Immediate; -} TAPE_ERASE, *PTAPE_ERASE; -# 23544 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _TAPE_PREPARE { - DWORD Operation; - BOOLEAN Immediate; -} TAPE_PREPARE, *PTAPE_PREPARE; -# 23558 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _TAPE_WRITE_MARKS { - DWORD Type; - DWORD Count; - BOOLEAN Immediate; -} TAPE_WRITE_MARKS, *PTAPE_WRITE_MARKS; -# 23572 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _TAPE_GET_POSITION { - DWORD Type; - DWORD Partition; - LARGE_INTEGER Offset; -} TAPE_GET_POSITION, *PTAPE_GET_POSITION; -# 23593 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _TAPE_SET_POSITION { - DWORD Method; - DWORD Partition; - LARGE_INTEGER Offset; - BOOLEAN Immediate; -} TAPE_SET_POSITION, *PTAPE_SET_POSITION; -# 23686 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _TAPE_GET_DRIVE_PARAMETERS { - BOOLEAN ECC; - BOOLEAN Compression; - BOOLEAN DataPadding; - BOOLEAN ReportSetmarks; - DWORD DefaultBlockSize; - DWORD MaximumBlockSize; - DWORD MinimumBlockSize; - DWORD MaximumPartitionCount; - DWORD FeaturesLow; - DWORD FeaturesHigh; - DWORD EOTWarningZoneSize; -} TAPE_GET_DRIVE_PARAMETERS, *PTAPE_GET_DRIVE_PARAMETERS; - - - - - -typedef struct _TAPE_SET_DRIVE_PARAMETERS { - BOOLEAN ECC; - BOOLEAN Compression; - BOOLEAN DataPadding; - BOOLEAN ReportSetmarks; - DWORD EOTWarningZoneSize; -} TAPE_SET_DRIVE_PARAMETERS, *PTAPE_SET_DRIVE_PARAMETERS; - - - - - -typedef struct _TAPE_GET_MEDIA_PARAMETERS { - LARGE_INTEGER Capacity; - LARGE_INTEGER Remaining; - DWORD BlockSize; - DWORD PartitionCount; - BOOLEAN WriteProtected; -} TAPE_GET_MEDIA_PARAMETERS, *PTAPE_GET_MEDIA_PARAMETERS; - - - - - -typedef struct _TAPE_SET_MEDIA_PARAMETERS { - DWORD BlockSize; -} TAPE_SET_MEDIA_PARAMETERS, *PTAPE_SET_MEDIA_PARAMETERS; -# 23740 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _TAPE_CREATE_PARTITION { - DWORD Method; - DWORD Count; - DWORD Size; -} TAPE_CREATE_PARTITION, *PTAPE_CREATE_PARTITION; -# 23756 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _TAPE_WMI_OPERATIONS { - DWORD Method; - DWORD DataBufferSize; - PVOID DataBuffer; -} TAPE_WMI_OPERATIONS, *PTAPE_WMI_OPERATIONS; - - - - -typedef enum _TAPE_DRIVE_PROBLEM_TYPE { - TapeDriveProblemNone, TapeDriveReadWriteWarning, - TapeDriveReadWriteError, TapeDriveReadWarning, - TapeDriveWriteWarning, TapeDriveReadError, - TapeDriveWriteError, TapeDriveHardwareError, - TapeDriveUnsupportedMedia, TapeDriveScsiConnectionError, - TapeDriveTimetoClean, TapeDriveCleanDriveNow, - TapeDriveMediaLifeExpired, TapeDriveSnappedTape -} TAPE_DRIVE_PROBLEM_TYPE; -# 23785 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\ktmtypes.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\ktmtypes.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - - -typedef GUID UOW, *PUOW; -typedef GUID CRM_PROTOCOL_ID, *PCRM_PROTOCOL_ID; -# 82 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\ktmtypes.h" 3 -typedef ULONG NOTIFICATION_MASK; -# 137 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\ktmtypes.h" 3 -typedef struct _TRANSACTION_NOTIFICATION { - PVOID TransactionKey; - ULONG TransactionNotification; - LARGE_INTEGER TmVirtualClock; - ULONG ArgumentLength; -} TRANSACTION_NOTIFICATION, *PTRANSACTION_NOTIFICATION; - -typedef struct _TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT { - GUID EnlistmentId; - UOW UOW; -} TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT, *PTRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT; - - - -typedef struct _TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT { - GUID TmIdentity; - ULONG Flags; -} TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT, *PTRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT; - -typedef ULONG SAVEPOINT_ID, *PSAVEPOINT_ID; - -typedef struct _TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT { - SAVEPOINT_ID SavepointId; -} TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT, *PTRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT; - -typedef struct _TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT { - ULONG PropagationCookie; - GUID UOW; - GUID TmIdentity; - ULONG BufferLength; - -} TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT, *PTRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT; - -typedef struct _TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT { - ULONG MarshalCookie; - GUID UOW; -} TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT, *PTRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT; - -typedef TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT TRANSACTION_NOTIFICATION_PROMOTE_ARGUMENT, *PTRANSACTION_NOTIFICATION_PROMOTE_ARGUMENT; - - - - - - - -typedef struct _KCRM_MARSHAL_HEADER { - ULONG VersionMajor; - ULONG VersionMinor; - ULONG NumProtocols; - ULONG Unused; -} KCRM_MARSHAL_HEADER, *PKCRM_MARSHAL_HEADER, * PRKCRM_MARSHAL_HEADER; - -typedef struct _KCRM_TRANSACTION_BLOB { - UOW UOW; - GUID TmIdentity; - ULONG IsolationLevel; - ULONG IsolationFlags; - ULONG Timeout; - WCHAR Description[64]; -} KCRM_TRANSACTION_BLOB, *PKCRM_TRANSACTION_BLOB, * PRKCRM_TRANSACTION_BLOB; - -typedef struct _KCRM_PROTOCOL_BLOB { - CRM_PROTOCOL_ID ProtocolId; - ULONG StaticInfoLength; - ULONG TransactionIdInfoLength; - ULONG Unused1; - ULONG Unused2; -} KCRM_PROTOCOL_BLOB, *PKCRM_PROTOCOL_BLOB, * PRKCRM_PROTOCOL_BLOB; - - -#pragma warning(pop) -# 23786 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 2 3 - - -#pragma warning(push) -#pragma warning(disable: 4820) -# 23962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef enum _TRANSACTION_OUTCOME { - TransactionOutcomeUndetermined = 1, - TransactionOutcomeCommitted, - TransactionOutcomeAborted, -} TRANSACTION_OUTCOME; - - -typedef enum _TRANSACTION_STATE { - TransactionStateNormal = 1, - TransactionStateIndoubt, - TransactionStateCommittedNotify, -} TRANSACTION_STATE; - - -typedef struct _TRANSACTION_BASIC_INFORMATION { - GUID TransactionId; - DWORD State; - DWORD Outcome; -} TRANSACTION_BASIC_INFORMATION, *PTRANSACTION_BASIC_INFORMATION; - -typedef struct _TRANSACTIONMANAGER_BASIC_INFORMATION { - GUID TmIdentity; - LARGE_INTEGER VirtualClock; -} TRANSACTIONMANAGER_BASIC_INFORMATION, *PTRANSACTIONMANAGER_BASIC_INFORMATION; - -typedef struct _TRANSACTIONMANAGER_LOG_INFORMATION { - GUID LogIdentity; -} TRANSACTIONMANAGER_LOG_INFORMATION, *PTRANSACTIONMANAGER_LOG_INFORMATION; - -typedef struct _TRANSACTIONMANAGER_LOGPATH_INFORMATION { - DWORD LogPathLength; - WCHAR LogPath[1]; - -} TRANSACTIONMANAGER_LOGPATH_INFORMATION, *PTRANSACTIONMANAGER_LOGPATH_INFORMATION; - -typedef struct _TRANSACTIONMANAGER_RECOVERY_INFORMATION { - ULONGLONG LastRecoveredLsn; -} TRANSACTIONMANAGER_RECOVERY_INFORMATION, *PTRANSACTIONMANAGER_RECOVERY_INFORMATION; - - - -typedef struct _TRANSACTIONMANAGER_OLDEST_INFORMATION { - GUID OldestTransactionGuid; -} TRANSACTIONMANAGER_OLDEST_INFORMATION, *PTRANSACTIONMANAGER_OLDEST_INFORMATION; - - - -typedef struct _TRANSACTION_PROPERTIES_INFORMATION { - DWORD IsolationLevel; - DWORD IsolationFlags; - LARGE_INTEGER Timeout; - DWORD Outcome; - DWORD DescriptionLength; - WCHAR Description[1]; - -} TRANSACTION_PROPERTIES_INFORMATION, *PTRANSACTION_PROPERTIES_INFORMATION; - - - -typedef struct _TRANSACTION_BIND_INFORMATION { - HANDLE TmHandle; -} TRANSACTION_BIND_INFORMATION, *PTRANSACTION_BIND_INFORMATION; - -typedef struct _TRANSACTION_ENLISTMENT_PAIR { - GUID EnlistmentId; - GUID ResourceManagerId; -} TRANSACTION_ENLISTMENT_PAIR, *PTRANSACTION_ENLISTMENT_PAIR; - -typedef struct _TRANSACTION_ENLISTMENTS_INFORMATION { - DWORD NumberOfEnlistments; - TRANSACTION_ENLISTMENT_PAIR EnlistmentPair[1]; -} TRANSACTION_ENLISTMENTS_INFORMATION, *PTRANSACTION_ENLISTMENTS_INFORMATION; - -typedef struct _TRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION { - TRANSACTION_ENLISTMENT_PAIR SuperiorEnlistmentPair; -} TRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION, *PTRANSACTION_SUPERIOR_ENLISTMENT_INFORMATION; - - -typedef struct _RESOURCEMANAGER_BASIC_INFORMATION { - GUID ResourceManagerId; - DWORD DescriptionLength; - WCHAR Description[1]; -} RESOURCEMANAGER_BASIC_INFORMATION, *PRESOURCEMANAGER_BASIC_INFORMATION; - -typedef struct _RESOURCEMANAGER_COMPLETION_INFORMATION { - HANDLE IoCompletionPortHandle; - ULONG_PTR CompletionKey; -} RESOURCEMANAGER_COMPLETION_INFORMATION, *PRESOURCEMANAGER_COMPLETION_INFORMATION; - - - - -typedef enum _TRANSACTION_INFORMATION_CLASS { - TransactionBasicInformation, - TransactionPropertiesInformation, - TransactionEnlistmentInformation, - TransactionSuperiorEnlistmentInformation - - , - - - TransactionBindInformation, - TransactionDTCPrivateInformation - , - -} TRANSACTION_INFORMATION_CLASS; - - -typedef enum _TRANSACTIONMANAGER_INFORMATION_CLASS { - TransactionManagerBasicInformation, - TransactionManagerLogInformation, - TransactionManagerLogPathInformation, - TransactionManagerRecoveryInformation = 4 - - , - - - - TransactionManagerOnlineProbeInformation = 3, - TransactionManagerOldestTransactionInformation = 5 - - - -} TRANSACTIONMANAGER_INFORMATION_CLASS; - - - -typedef enum _RESOURCEMANAGER_INFORMATION_CLASS { - ResourceManagerBasicInformation, - ResourceManagerCompletionInformation, -} RESOURCEMANAGER_INFORMATION_CLASS; - - -typedef struct _ENLISTMENT_BASIC_INFORMATION { - GUID EnlistmentId; - GUID TransactionId; - GUID ResourceManagerId; -} ENLISTMENT_BASIC_INFORMATION, *PENLISTMENT_BASIC_INFORMATION; - -typedef struct _ENLISTMENT_CRM_INFORMATION { - GUID CrmTransactionManagerId; - GUID CrmResourceManagerId; - GUID CrmEnlistmentId; -} ENLISTMENT_CRM_INFORMATION, *PENLISTMENT_CRM_INFORMATION; - - - -typedef enum _ENLISTMENT_INFORMATION_CLASS { - EnlistmentBasicInformation, - EnlistmentRecoveryInformation, - EnlistmentCrmInformation -} ENLISTMENT_INFORMATION_CLASS; - -typedef struct _TRANSACTION_LIST_ENTRY { - UOW UOW; -} TRANSACTION_LIST_ENTRY, *PTRANSACTION_LIST_ENTRY; - -typedef struct _TRANSACTION_LIST_INFORMATION { - DWORD NumberOfTransactions; - TRANSACTION_LIST_ENTRY TransactionInformation[1]; -} TRANSACTION_LIST_INFORMATION, *PTRANSACTION_LIST_INFORMATION; - - - - - - -typedef enum _KTMOBJECT_TYPE { - - KTMOBJECT_TRANSACTION, - KTMOBJECT_TRANSACTION_MANAGER, - KTMOBJECT_RESOURCE_MANAGER, - KTMOBJECT_ENLISTMENT, - KTMOBJECT_INVALID - -} KTMOBJECT_TYPE, *PKTMOBJECT_TYPE; -# 24147 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _KTMOBJECT_CURSOR { - - - - - - GUID LastQuery; - - - - - - DWORD ObjectIdCount; - - - - - - GUID ObjectIds[1]; - -} KTMOBJECT_CURSOR, *PKTMOBJECT_CURSOR; - - - - -#pragma warning(pop) - - - - - - - -typedef DWORD TP_VERSION, *PTP_VERSION; - -typedef struct _TP_CALLBACK_INSTANCE TP_CALLBACK_INSTANCE, *PTP_CALLBACK_INSTANCE; - -typedef void (__stdcall *PTP_SIMPLE_CALLBACK)( - PTP_CALLBACK_INSTANCE Instance, - PVOID Context - ); - -typedef struct _TP_POOL TP_POOL, *PTP_POOL; - -typedef enum _TP_CALLBACK_PRIORITY { - TP_CALLBACK_PRIORITY_HIGH, - TP_CALLBACK_PRIORITY_NORMAL, - TP_CALLBACK_PRIORITY_LOW, - TP_CALLBACK_PRIORITY_INVALID, - TP_CALLBACK_PRIORITY_COUNT = TP_CALLBACK_PRIORITY_INVALID -} TP_CALLBACK_PRIORITY; - -typedef struct _TP_POOL_STACK_INFORMATION { - SIZE_T StackReserve; - SIZE_T StackCommit; -}TP_POOL_STACK_INFORMATION, *PTP_POOL_STACK_INFORMATION; - -typedef struct _TP_CLEANUP_GROUP TP_CLEANUP_GROUP, *PTP_CLEANUP_GROUP; - -typedef void (__stdcall *PTP_CLEANUP_GROUP_CANCEL_CALLBACK)( - PVOID ObjectContext, - PVOID CleanupContext - ); -# 24218 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -typedef struct _TP_CALLBACK_ENVIRON_V3 { - TP_VERSION Version; - PTP_POOL Pool; - PTP_CLEANUP_GROUP CleanupGroup; - PTP_CLEANUP_GROUP_CANCEL_CALLBACK CleanupGroupCancelCallback; - PVOID RaceDll; - struct _ACTIVATION_CONTEXT *ActivationContext; - PTP_SIMPLE_CALLBACK FinalizationCallback; - union { - DWORD Flags; - struct { - DWORD LongFunction : 1; - DWORD Persistent : 1; - DWORD Private : 30; - } s; - } u; - TP_CALLBACK_PRIORITY CallbackPriority; - DWORD Size; -} TP_CALLBACK_ENVIRON_V3; - -typedef TP_CALLBACK_ENVIRON_V3 TP_CALLBACK_ENVIRON, *PTP_CALLBACK_ENVIRON; -# 24266 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -__forceinline -void -TpInitializeCallbackEnviron( - PTP_CALLBACK_ENVIRON CallbackEnviron - ) -{ - - - - CallbackEnviron->Version = 3; - - - - - - - - CallbackEnviron->Pool = ((void *)0); - CallbackEnviron->CleanupGroup = ((void *)0); - CallbackEnviron->CleanupGroupCancelCallback = ((void *)0); - CallbackEnviron->RaceDll = ((void *)0); - CallbackEnviron->ActivationContext = ((void *)0); - CallbackEnviron->FinalizationCallback = ((void *)0); - CallbackEnviron->u.Flags = 0; - - - - CallbackEnviron->CallbackPriority = TP_CALLBACK_PRIORITY_NORMAL; - CallbackEnviron->Size = sizeof(TP_CALLBACK_ENVIRON); - - - -} - -__forceinline -void -TpSetCallbackThreadpool( - PTP_CALLBACK_ENVIRON CallbackEnviron, - PTP_POOL Pool - ) -{ - CallbackEnviron->Pool = Pool; -} - -__forceinline -void -TpSetCallbackCleanupGroup( - PTP_CALLBACK_ENVIRON CallbackEnviron, - PTP_CLEANUP_GROUP CleanupGroup, - PTP_CLEANUP_GROUP_CANCEL_CALLBACK CleanupGroupCancelCallback - ) -{ - CallbackEnviron->CleanupGroup = CleanupGroup; - CallbackEnviron->CleanupGroupCancelCallback = CleanupGroupCancelCallback; -} - -__forceinline -void -TpSetCallbackActivationContext( - PTP_CALLBACK_ENVIRON CallbackEnviron, - struct _ACTIVATION_CONTEXT *ActivationContext - ) -{ - CallbackEnviron->ActivationContext = ActivationContext; -} - -__forceinline -void -TpSetCallbackNoActivationContext( - PTP_CALLBACK_ENVIRON CallbackEnviron - ) -{ - CallbackEnviron->ActivationContext = (struct _ACTIVATION_CONTEXT *)(LONG_PTR) -1; -} - -__forceinline -void -TpSetCallbackLongFunction( - PTP_CALLBACK_ENVIRON CallbackEnviron - ) -{ - CallbackEnviron->u.s.LongFunction = 1; -} - -__forceinline -void -TpSetCallbackRaceWithDll( - PTP_CALLBACK_ENVIRON CallbackEnviron, - PVOID DllHandle - ) -{ - CallbackEnviron->RaceDll = DllHandle; -} - -__forceinline -void -TpSetCallbackFinalizationCallback( - PTP_CALLBACK_ENVIRON CallbackEnviron, - PTP_SIMPLE_CALLBACK FinalizationCallback - ) -{ - CallbackEnviron->FinalizationCallback = FinalizationCallback; -} - - - -__forceinline -void -TpSetCallbackPriority( - PTP_CALLBACK_ENVIRON CallbackEnviron, - TP_CALLBACK_PRIORITY Priority - ) -{ - CallbackEnviron->CallbackPriority = Priority; -} - - - -__forceinline -void -TpSetCallbackPersistent( - PTP_CALLBACK_ENVIRON CallbackEnviron - ) -{ - CallbackEnviron->u.s.Persistent = 1; -} - - -__forceinline -void -TpDestroyCallbackEnviron( - PTP_CALLBACK_ENVIRON CallbackEnviron - ) -{ - - - - - - - (CallbackEnviron); -} - - - - -typedef struct _TP_WORK TP_WORK, *PTP_WORK; - -typedef void (__stdcall *PTP_WORK_CALLBACK)( - PTP_CALLBACK_INSTANCE Instance, - PVOID Context, - PTP_WORK Work - ); - -typedef struct _TP_TIMER TP_TIMER, *PTP_TIMER; - -typedef void (__stdcall *PTP_TIMER_CALLBACK)( - PTP_CALLBACK_INSTANCE Instance, - PVOID Context, - PTP_TIMER Timer - ); - -typedef DWORD TP_WAIT_RESULT; - -typedef struct _TP_WAIT TP_WAIT, *PTP_WAIT; - -typedef void (__stdcall *PTP_WAIT_CALLBACK)( - PTP_CALLBACK_INSTANCE Instance, - PVOID Context, - PTP_WAIT Wait, - TP_WAIT_RESULT WaitResult - ); - -typedef struct _TP_IO TP_IO, *PTP_IO; - - - -__forceinline -struct _TEB * -NtCurrentTeb ( - void - ) - -{ - return (struct _TEB *)__readgsqword(((LONG)__builtin_offsetof(NT_TIB, Self))); -} - -__forceinline -PVOID -GetCurrentFiber ( - void - ) - -{ - - return (PVOID)__readgsqword(((LONG)__builtin_offsetof(NT_TIB, FiberData))); -} - -__forceinline -PVOID -GetFiberData ( - void - ) - -{ - - return *(PVOID *)GetCurrentFiber(); -} -# 24576 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnt.h" 3 -#pragma warning(pop) -# 183 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 2 3 - - - -typedef UINT_PTR WPARAM; -typedef LONG_PTR LPARAM; -typedef LONG_PTR LRESULT; -# 209 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 3 -typedef HANDLE *SPHANDLE; -typedef HANDLE *LPHANDLE; -typedef HANDLE HGLOBAL; -typedef HANDLE HLOCAL; -typedef HANDLE GLOBALHANDLE; -typedef HANDLE LOCALHANDLE; - - - -#pragma warning(push) -#pragma warning(disable: 4255) - - - -typedef INT_PTR ( __stdcall *FARPROC)(); -typedef INT_PTR ( __stdcall *NEARPROC)(); -typedef INT_PTR (__stdcall *PROC)(); -# 237 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 3 -#pragma warning(pop) - - - - - - - -typedef WORD ATOM; - -struct HKEY__{int unused;}; typedef struct HKEY__ *HKEY; -typedef HKEY *PHKEY; -struct HMETAFILE__{int unused;}; typedef struct HMETAFILE__ *HMETAFILE; -struct HINSTANCE__{int unused;}; typedef struct HINSTANCE__ *HINSTANCE; -typedef HINSTANCE HMODULE; -struct HRGN__{int unused;}; typedef struct HRGN__ *HRGN; -struct HRSRC__{int unused;}; typedef struct HRSRC__ *HRSRC; -struct HSPRITE__{int unused;}; typedef struct HSPRITE__ *HSPRITE; -struct HLSURF__{int unused;}; typedef struct HLSURF__ *HLSURF; -struct HSTR__{int unused;}; typedef struct HSTR__ *HSTR; -struct HTASK__{int unused;}; typedef struct HTASK__ *HTASK; -struct HWINSTA__{int unused;}; typedef struct HWINSTA__ *HWINSTA; -struct HKL__{int unused;}; typedef struct HKL__ *HKL; - - -typedef int HFILE; -# 271 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\minwindef.h" 3 -typedef struct _FILETIME { - DWORD dwLowDateTime; - DWORD dwHighDateTime; -} FILETIME, *PFILETIME, *LPFILETIME; -# 25 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 2 3 -# 39 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 -struct HWND__{int unused;}; typedef struct HWND__ *HWND; -struct HHOOK__{int unused;}; typedef struct HHOOK__ *HHOOK; -# 63 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 -typedef void * HGDIOBJ; - - - - - - -struct HACCEL__{int unused;}; typedef struct HACCEL__ *HACCEL; - - -struct HBITMAP__{int unused;}; typedef struct HBITMAP__ *HBITMAP; -struct HBRUSH__{int unused;}; typedef struct HBRUSH__ *HBRUSH; - - -struct HCOLORSPACE__{int unused;}; typedef struct HCOLORSPACE__ *HCOLORSPACE; - - -struct HDC__{int unused;}; typedef struct HDC__ *HDC; - -struct HGLRC__{int unused;}; typedef struct HGLRC__ *HGLRC; -struct HDESK__{int unused;}; typedef struct HDESK__ *HDESK; -struct HENHMETAFILE__{int unused;}; typedef struct HENHMETAFILE__ *HENHMETAFILE; - -struct HFONT__{int unused;}; typedef struct HFONT__ *HFONT; - -struct HICON__{int unused;}; typedef struct HICON__ *HICON; - -struct HMENU__{int unused;}; typedef struct HMENU__ *HMENU; - - -struct HPALETTE__{int unused;}; typedef struct HPALETTE__ *HPALETTE; -struct HPEN__{int unused;}; typedef struct HPEN__ *HPEN; - - - -struct HWINEVENTHOOK__{int unused;}; typedef struct HWINEVENTHOOK__ *HWINEVENTHOOK; -# 110 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 -struct HMONITOR__{int unused;}; typedef struct HMONITOR__ *HMONITOR; -# 120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 -struct HUMPD__{int unused;}; typedef struct HUMPD__ *HUMPD; -# 131 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 -typedef HICON HCURSOR; - - - - -typedef DWORD COLORREF; - - - - - - - -typedef DWORD *LPCOLORREF; -# 154 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 -typedef struct tagRECT -{ - LONG left; - LONG top; - LONG right; - LONG bottom; -} RECT, *PRECT, *NPRECT, *LPRECT; - -typedef const RECT * LPCRECT; - -typedef struct _RECTL -{ - LONG left; - LONG top; - LONG right; - LONG bottom; -} RECTL, *PRECTL, *LPRECTL; - -typedef const RECTL * LPCRECTL; - -typedef struct tagPOINT -{ - LONG x; - LONG y; -} POINT, *PPOINT, *NPPOINT, *LPPOINT; - -typedef struct _POINTL -{ - LONG x; - LONG y; -} POINTL, *PPOINTL; - -typedef struct tagSIZE -{ - LONG cx; - LONG cy; -} SIZE, *PSIZE, *LPSIZE; - -typedef SIZE SIZEL; -typedef SIZE *PSIZEL, *LPSIZEL; - -typedef struct tagPOINTS -{ - - SHORT x; - SHORT y; - - - - -} POINTS, *PPOINTS, *LPPOINTS; - - -typedef struct APP_LOCAL_DEVICE_ID -{ - BYTE value[32]; -} APP_LOCAL_DEVICE_ID; -# 256 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\windef.h" 3 -struct DPI_AWARENESS_CONTEXT__{int unused;}; typedef struct DPI_AWARENESS_CONTEXT__ *DPI_AWARENESS_CONTEXT; - -typedef enum DPI_AWARENESS { - DPI_AWARENESS_INVALID = -1, - DPI_AWARENESS_UNAWARE = 0, - DPI_AWARENESS_SYSTEM_AWARE = 1, - DPI_AWARENESS_PER_MONITOR_AWARE = 2 -} DPI_AWARENESS; - - - - - - - -typedef enum DPI_HOSTING_BEHAVIOR { - DPI_HOSTING_BEHAVIOR_INVALID = -1, - DPI_HOSTING_BEHAVIOR_DEFAULT = 0, - DPI_HOSTING_BEHAVIOR_MIXED = 1 -} DPI_HOSTING_BEHAVIOR; -# 176 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 1 3 -# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) -#pragma warning(disable: 4668) - -#pragma warning(disable: 4001) -#pragma warning(disable: 4201) -#pragma warning(disable: 4214) - - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\apisetcconv.h" 1 3 -# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\minwinbase.h" 1 3 -# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\minwinbase.h" 3 -#pragma warning(disable: 4514) - -#pragma warning(disable: 4103) - - -#pragma warning(push) -#pragma warning(disable: 4820) - -#pragma warning(disable: 4001) -#pragma warning(disable: 4201) -#pragma warning(disable: 4214) -# 46 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\minwinbase.h" 3 -typedef struct _SECURITY_ATTRIBUTES { - DWORD nLength; - LPVOID lpSecurityDescriptor; - BOOL bInheritHandle; -} SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; - -typedef struct _OVERLAPPED { - ULONG_PTR Internal; - ULONG_PTR InternalHigh; - union { - struct { - DWORD Offset; - DWORD OffsetHigh; - } ; - PVOID Pointer; - } ; - - HANDLE hEvent; -} OVERLAPPED, *LPOVERLAPPED; - -typedef struct _OVERLAPPED_ENTRY { - ULONG_PTR lpCompletionKey; - LPOVERLAPPED lpOverlapped; - ULONG_PTR Internal; - DWORD dwNumberOfBytesTransferred; -} OVERLAPPED_ENTRY, *LPOVERLAPPED_ENTRY; -# 90 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\minwinbase.h" 3 -typedef struct _SYSTEMTIME { - WORD wYear; - WORD wMonth; - WORD wDayOfWeek; - WORD wDay; - WORD wHour; - WORD wMinute; - WORD wSecond; - WORD wMilliseconds; -} SYSTEMTIME, *PSYSTEMTIME, *LPSYSTEMTIME; - - -typedef struct _WIN32_FIND_DATAA { - DWORD dwFileAttributes; - FILETIME ftCreationTime; - FILETIME ftLastAccessTime; - FILETIME ftLastWriteTime; - DWORD nFileSizeHigh; - DWORD nFileSizeLow; - DWORD dwReserved0; - DWORD dwReserved1; - CHAR cFileName[ 260 ]; - CHAR cAlternateFileName[ 14 ]; - - - - - -} WIN32_FIND_DATAA, *PWIN32_FIND_DATAA, *LPWIN32_FIND_DATAA; -typedef struct _WIN32_FIND_DATAW { - DWORD dwFileAttributes; - FILETIME ftCreationTime; - FILETIME ftLastAccessTime; - FILETIME ftLastWriteTime; - DWORD nFileSizeHigh; - DWORD nFileSizeLow; - DWORD dwReserved0; - DWORD dwReserved1; - WCHAR cFileName[ 260 ]; - WCHAR cAlternateFileName[ 14 ]; - - - - - -} WIN32_FIND_DATAW, *PWIN32_FIND_DATAW, *LPWIN32_FIND_DATAW; - - - - - -typedef WIN32_FIND_DATAA WIN32_FIND_DATA; -typedef PWIN32_FIND_DATAA PWIN32_FIND_DATA; -typedef LPWIN32_FIND_DATAA LPWIN32_FIND_DATA; - - - - -typedef enum _FINDEX_INFO_LEVELS { - FindExInfoStandard, - FindExInfoBasic, - FindExInfoMaxInfoLevel -} FINDEX_INFO_LEVELS; - - - - - - - -typedef enum _FINDEX_SEARCH_OPS { - FindExSearchNameMatch, - FindExSearchLimitToDirectories, - FindExSearchLimitToDevices, - FindExSearchMaxSearchOp -} FINDEX_SEARCH_OPS; - - - - -typedef enum _READ_DIRECTORY_NOTIFY_INFORMATION_CLASS { - ReadDirectoryNotifyInformation = 1, - ReadDirectoryNotifyExtendedInformation, - - ReadDirectoryNotifyFullInformation, - - - ReadDirectoryNotifyMaximumInformation -} READ_DIRECTORY_NOTIFY_INFORMATION_CLASS, *PREAD_DIRECTORY_NOTIFY_INFORMATION_CLASS; - - - -typedef enum _GET_FILEEX_INFO_LEVELS { - GetFileExInfoStandard, - GetFileExMaxInfoLevel -} GET_FILEEX_INFO_LEVELS; - - -typedef enum _FILE_INFO_BY_HANDLE_CLASS { - FileBasicInfo, - FileStandardInfo, - FileNameInfo, - FileRenameInfo, - FileDispositionInfo, - FileAllocationInfo, - FileEndOfFileInfo, - FileStreamInfo, - FileCompressionInfo, - FileAttributeTagInfo, - FileIdBothDirectoryInfo, - FileIdBothDirectoryRestartInfo, - FileIoPriorityHintInfo, - FileRemoteProtocolInfo, - FileFullDirectoryInfo, - FileFullDirectoryRestartInfo, - - FileStorageInfo, - FileAlignmentInfo, - FileIdInfo, - FileIdExtdDirectoryInfo, - FileIdExtdDirectoryRestartInfo, - - - FileDispositionInfoEx, - FileRenameInfoEx, - - - FileCaseSensitiveInfo, - FileNormalizedNameInfo, - - MaximumFileInfoByHandleClass -} FILE_INFO_BY_HANDLE_CLASS, *PFILE_INFO_BY_HANDLE_CLASS; - - -typedef RTL_CRITICAL_SECTION CRITICAL_SECTION; -typedef PRTL_CRITICAL_SECTION PCRITICAL_SECTION; -typedef PRTL_CRITICAL_SECTION LPCRITICAL_SECTION; - -typedef RTL_CRITICAL_SECTION_DEBUG CRITICAL_SECTION_DEBUG; -typedef PRTL_CRITICAL_SECTION_DEBUG PCRITICAL_SECTION_DEBUG; -typedef PRTL_CRITICAL_SECTION_DEBUG LPCRITICAL_SECTION_DEBUG; - -typedef -void -(__stdcall *LPOVERLAPPED_COMPLETION_ROUTINE)( - DWORD dwErrorCode, - DWORD dwNumberOfBytesTransfered, - LPOVERLAPPED lpOverlapped - ); - - - - -typedef struct _PROCESS_HEAP_ENTRY { - PVOID lpData; - DWORD cbData; - BYTE cbOverhead; - BYTE iRegionIndex; - WORD wFlags; - union { - struct { - HANDLE hMem; - DWORD dwReserved[ 3 ]; - } Block; - struct { - DWORD dwCommittedSize; - DWORD dwUnCommittedSize; - LPVOID lpFirstBlock; - LPVOID lpLastBlock; - } Region; - } ; -} PROCESS_HEAP_ENTRY, *LPPROCESS_HEAP_ENTRY, *PPROCESS_HEAP_ENTRY; -# 270 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\minwinbase.h" 3 -typedef struct _REASON_CONTEXT { - ULONG Version; - DWORD Flags; - union { - struct { - HMODULE LocalizedReasonModule; - ULONG LocalizedReasonId; - ULONG ReasonStringCount; - LPWSTR *ReasonStrings; - - } Detailed; - - LPWSTR SimpleReasonString; - } Reason; -} REASON_CONTEXT, *PREASON_CONTEXT; -# 299 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\minwinbase.h" 3 -typedef DWORD (__stdcall *PTHREAD_START_ROUTINE)( - LPVOID lpThreadParameter - ); -typedef PTHREAD_START_ROUTINE LPTHREAD_START_ROUTINE; - -typedef LPVOID (__stdcall *PENCLAVE_ROUTINE)( - LPVOID lpThreadParameter - ); -typedef PENCLAVE_ROUTINE LPENCLAVE_ROUTINE; - -typedef struct _EXCEPTION_DEBUG_INFO { - EXCEPTION_RECORD ExceptionRecord; - DWORD dwFirstChance; -} EXCEPTION_DEBUG_INFO, *LPEXCEPTION_DEBUG_INFO; - -typedef struct _CREATE_THREAD_DEBUG_INFO { - HANDLE hThread; - LPVOID lpThreadLocalBase; - LPTHREAD_START_ROUTINE lpStartAddress; -} CREATE_THREAD_DEBUG_INFO, *LPCREATE_THREAD_DEBUG_INFO; - -typedef struct _CREATE_PROCESS_DEBUG_INFO { - HANDLE hFile; - HANDLE hProcess; - HANDLE hThread; - LPVOID lpBaseOfImage; - DWORD dwDebugInfoFileOffset; - DWORD nDebugInfoSize; - LPVOID lpThreadLocalBase; - LPTHREAD_START_ROUTINE lpStartAddress; - LPVOID lpImageName; - WORD fUnicode; -} CREATE_PROCESS_DEBUG_INFO, *LPCREATE_PROCESS_DEBUG_INFO; - -typedef struct _EXIT_THREAD_DEBUG_INFO { - DWORD dwExitCode; -} EXIT_THREAD_DEBUG_INFO, *LPEXIT_THREAD_DEBUG_INFO; - -typedef struct _EXIT_PROCESS_DEBUG_INFO { - DWORD dwExitCode; -} EXIT_PROCESS_DEBUG_INFO, *LPEXIT_PROCESS_DEBUG_INFO; - -typedef struct _LOAD_DLL_DEBUG_INFO { - HANDLE hFile; - LPVOID lpBaseOfDll; - DWORD dwDebugInfoFileOffset; - DWORD nDebugInfoSize; - LPVOID lpImageName; - WORD fUnicode; -} LOAD_DLL_DEBUG_INFO, *LPLOAD_DLL_DEBUG_INFO; - -typedef struct _UNLOAD_DLL_DEBUG_INFO { - LPVOID lpBaseOfDll; -} UNLOAD_DLL_DEBUG_INFO, *LPUNLOAD_DLL_DEBUG_INFO; - -typedef struct _OUTPUT_DEBUG_STRING_INFO { - LPSTR lpDebugStringData; - WORD fUnicode; - WORD nDebugStringLength; -} OUTPUT_DEBUG_STRING_INFO, *LPOUTPUT_DEBUG_STRING_INFO; - -typedef struct _RIP_INFO { - DWORD dwError; - DWORD dwType; -} RIP_INFO, *LPRIP_INFO; - - -typedef struct _DEBUG_EVENT { - DWORD dwDebugEventCode; - DWORD dwProcessId; - DWORD dwThreadId; - union { - EXCEPTION_DEBUG_INFO Exception; - CREATE_THREAD_DEBUG_INFO CreateThread; - CREATE_PROCESS_DEBUG_INFO CreateProcessInfo; - EXIT_THREAD_DEBUG_INFO ExitThread; - EXIT_PROCESS_DEBUG_INFO ExitProcess; - LOAD_DLL_DEBUG_INFO LoadDll; - UNLOAD_DLL_DEBUG_INFO UnloadDll; - OUTPUT_DEBUG_STRING_INFO DebugString; - RIP_INFO RipInfo; - } u; -} DEBUG_EVENT, *LPDEBUG_EVENT; - - - - - - - -typedef PCONTEXT LPCONTEXT; -# 460 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\minwinbase.h" 3 -#pragma warning(pop) -# 36 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\apiquery2.h" 1 3 -# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\apiquery2.h" 3 -BOOL -__stdcall -IsApiSetImplemented( - PCSTR Contract - ); -# 42 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processenv.h" 1 3 -# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processenv.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetEnvironmentStringsW( - LPWCH NewEnvironment - ); -# 44 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processenv.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -GetStdHandle( - DWORD nStdHandle - ); - -__declspec(dllimport) -BOOL -__stdcall -SetStdHandle( - DWORD nStdHandle, - HANDLE hHandle - ); - - - -__declspec(dllimport) -BOOL -__stdcall -SetStdHandleEx( - DWORD nStdHandle, - HANDLE hHandle, - PHANDLE phPrevValue - ); -# 78 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processenv.h" 3 -__declspec(dllimport) -LPSTR -__stdcall -GetCommandLineA( - void - ); - -__declspec(dllimport) -LPWSTR -__stdcall -GetCommandLineW( - void - ); - - - - - - -__declspec(dllimport) - -LPCH -__stdcall -GetEnvironmentStrings( - void - ); - -__declspec(dllimport) - -LPWCH -__stdcall -GetEnvironmentStringsW( - void - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -FreeEnvironmentStringsA( - LPCH penv - ); - -__declspec(dllimport) -BOOL -__stdcall -FreeEnvironmentStringsW( - LPWCH penv - ); - - - - - - -__declspec(dllimport) - -DWORD -__stdcall -GetEnvironmentVariableA( - LPCSTR lpName, - LPSTR lpBuffer, - DWORD nSize - ); - -__declspec(dllimport) - -DWORD -__stdcall -GetEnvironmentVariableW( - LPCWSTR lpName, - LPWSTR lpBuffer, - DWORD nSize - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetEnvironmentVariableA( - LPCSTR lpName, - LPCSTR lpValue - ); - -__declspec(dllimport) -BOOL -__stdcall -SetEnvironmentVariableW( - LPCWSTR lpName, - LPCWSTR lpValue - ); - - - - - - -__declspec(dllimport) - -DWORD -__stdcall -ExpandEnvironmentStringsA( - LPCSTR lpSrc, - LPSTR lpDst, - DWORD nSize - ); - -__declspec(dllimport) - -DWORD -__stdcall -ExpandEnvironmentStringsW( - LPCWSTR lpSrc, - LPWSTR lpDst, - DWORD nSize - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetCurrentDirectoryA( - LPCSTR lpPathName - ); - -__declspec(dllimport) -BOOL -__stdcall -SetCurrentDirectoryW( - LPCWSTR lpPathName - ); - - - - - - -__declspec(dllimport) - -DWORD -__stdcall -GetCurrentDirectoryA( - DWORD nBufferLength, - LPSTR lpBuffer - ); - -__declspec(dllimport) - -DWORD -__stdcall -GetCurrentDirectoryW( - DWORD nBufferLength, - LPWSTR lpBuffer - ); -# 257 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processenv.h" 3 -__declspec(dllimport) -DWORD -__stdcall -SearchPathW( - LPCWSTR lpPath, - LPCWSTR lpFileName, - LPCWSTR lpExtension, - DWORD nBufferLength, - LPWSTR lpBuffer, - LPWSTR* lpFilePart - ); - - - - - - - -__declspec(dllimport) -DWORD -__stdcall -SearchPathA( - LPCSTR lpPath, - LPCSTR lpFileName, - LPCSTR lpExtension, - DWORD nBufferLength, - LPSTR lpBuffer, - LPSTR* lpFilePart - ); -# 294 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processenv.h" 3 -__declspec(dllimport) -BOOL -__stdcall -NeedCurrentDirectoryForExePathA( - LPCSTR ExeName - ); - -__declspec(dllimport) -BOOL -__stdcall -NeedCurrentDirectoryForExePathW( - LPCWSTR ExeName - ); -# 43 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapifromapp.h" 1 3 -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapifromapp.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 1 3 -# 41 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -LONG -__stdcall -CompareFileTime( - const FILETIME* lpFileTime1, - const FILETIME* lpFileTime2 - ); - -__declspec(dllimport) -BOOL -__stdcall -CreateDirectoryA( - LPCSTR lpPathName, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); - -__declspec(dllimport) -BOOL -__stdcall -CreateDirectoryW( - LPCWSTR lpPathName, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); -# 76 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -CreateFileA( - LPCSTR lpFileName, - DWORD dwDesiredAccess, - DWORD dwShareMode, - LPSECURITY_ATTRIBUTES lpSecurityAttributes, - DWORD dwCreationDisposition, - DWORD dwFlagsAndAttributes, - HANDLE hTemplateFile - ); - -__declspec(dllimport) -HANDLE -__stdcall -CreateFileW( - LPCWSTR lpFileName, - DWORD dwDesiredAccess, - DWORD dwShareMode, - LPSECURITY_ATTRIBUTES lpSecurityAttributes, - DWORD dwCreationDisposition, - DWORD dwFlagsAndAttributes, - HANDLE hTemplateFile - ); -# 113 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DefineDosDeviceW( - DWORD dwFlags, - LPCWSTR lpDeviceName, - LPCWSTR lpTargetPath - ); -# 132 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DeleteFileA( - LPCSTR lpFileName - ); - -__declspec(dllimport) -BOOL -__stdcall -DeleteFileW( - LPCWSTR lpFileName - ); -# 157 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DeleteVolumeMountPointW( - LPCWSTR lpszVolumeMountPoint - ); -# 174 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -FileTimeToLocalFileTime( - const FILETIME* lpFileTime, - LPFILETIME lpLocalFileTime - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -FindClose( - HANDLE hFindFile - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -FindCloseChangeNotification( - HANDLE hChangeHandle - ); - -__declspec(dllimport) -HANDLE -__stdcall -FindFirstChangeNotificationA( - LPCSTR lpPathName, - BOOL bWatchSubtree, - DWORD dwNotifyFilter - ); - -__declspec(dllimport) -HANDLE -__stdcall -FindFirstChangeNotificationW( - LPCWSTR lpPathName, - BOOL bWatchSubtree, - DWORD dwNotifyFilter - ); -# 237 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -FindFirstFileA( - LPCSTR lpFileName, - LPWIN32_FIND_DATAA lpFindFileData - ); - -__declspec(dllimport) -HANDLE -__stdcall -FindFirstFileW( - LPCWSTR lpFileName, - LPWIN32_FIND_DATAW lpFindFileData - ); -# 260 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -FindFirstFileExA( - LPCSTR lpFileName, - FINDEX_INFO_LEVELS fInfoLevelId, - LPVOID lpFindFileData, - FINDEX_SEARCH_OPS fSearchOp, - LPVOID lpSearchFilter, - DWORD dwAdditionalFlags - ); - -__declspec(dllimport) -HANDLE -__stdcall -FindFirstFileExW( - LPCWSTR lpFileName, - FINDEX_INFO_LEVELS fInfoLevelId, - LPVOID lpFindFileData, - FINDEX_SEARCH_OPS fSearchOp, - LPVOID lpSearchFilter, - DWORD dwAdditionalFlags - ); -# 297 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -FindFirstVolumeW( - LPWSTR lpszVolumeName, - DWORD cchBufferLength - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -FindNextChangeNotification( - HANDLE hChangeHandle - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -FindNextFileA( - HANDLE hFindFile, - LPWIN32_FIND_DATAA lpFindFileData - ); - -__declspec(dllimport) -BOOL -__stdcall -FindNextFileW( - HANDLE hFindFile, - LPWIN32_FIND_DATAW lpFindFileData - ); -# 349 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -FindNextVolumeW( - HANDLE hFindVolume, - LPWSTR lpszVolumeName, - DWORD cchBufferLength - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -FindVolumeClose( - HANDLE hFindVolume - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -FlushFileBuffers( - HANDLE hFile - ); - -__declspec(dllimport) -BOOL -__stdcall -GetDiskFreeSpaceA( - LPCSTR lpRootPathName, - LPDWORD lpSectorsPerCluster, - LPDWORD lpBytesPerSector, - LPDWORD lpNumberOfFreeClusters, - LPDWORD lpTotalNumberOfClusters - ); - -__declspec(dllimport) -BOOL -__stdcall -GetDiskFreeSpaceW( - LPCWSTR lpRootPathName, - LPDWORD lpSectorsPerCluster, - LPDWORD lpBytesPerSector, - LPDWORD lpNumberOfFreeClusters, - LPDWORD lpTotalNumberOfClusters - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetDiskFreeSpaceExA( - LPCSTR lpDirectoryName, - PULARGE_INTEGER lpFreeBytesAvailableToCaller, - PULARGE_INTEGER lpTotalNumberOfBytes, - PULARGE_INTEGER lpTotalNumberOfFreeBytes - ); - -__declspec(dllimport) -BOOL -__stdcall -GetDiskFreeSpaceExW( - LPCWSTR lpDirectoryName, - PULARGE_INTEGER lpFreeBytesAvailableToCaller, - PULARGE_INTEGER lpTotalNumberOfBytes, - PULARGE_INTEGER lpTotalNumberOfFreeBytes - ); -# 445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -typedef struct DISK_SPACE_INFORMATION { -# 466 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 - ULONGLONG ActualTotalAllocationUnits; - ULONGLONG ActualAvailableAllocationUnits; - ULONGLONG ActualPoolUnavailableAllocationUnits; -# 482 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 - ULONGLONG CallerTotalAllocationUnits; - ULONGLONG CallerAvailableAllocationUnits; - ULONGLONG CallerPoolUnavailableAllocationUnits; - - - - - - ULONGLONG UsedAllocationUnits; - - - - - - ULONGLONG TotalReservedAllocationUnits; - - - - - - - ULONGLONG VolumeStorageReserveAllocationUnits; -# 517 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 - ULONGLONG AvailableCommittedAllocationUnits; - - - - - - - ULONGLONG PoolAvailableAllocationUnits; - - DWORD SectorsPerAllocationUnit; - DWORD BytesPerSector; - -} DISK_SPACE_INFORMATION; - -__declspec(dllimport) -HRESULT -__stdcall -GetDiskSpaceInformationA( - LPCSTR rootPath, - DISK_SPACE_INFORMATION* diskSpaceInfo - ); - -__declspec(dllimport) -HRESULT -__stdcall -GetDiskSpaceInformationW( - LPCWSTR rootPath, - DISK_SPACE_INFORMATION* diskSpaceInfo - ); -# 558 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -UINT -__stdcall -GetDriveTypeA( - LPCSTR lpRootPathName - ); - -__declspec(dllimport) -UINT -__stdcall -GetDriveTypeW( - LPCWSTR lpRootPathName - ); - - - - - - -typedef struct _WIN32_FILE_ATTRIBUTE_DATA { - DWORD dwFileAttributes; - FILETIME ftCreationTime; - FILETIME ftLastAccessTime; - FILETIME ftLastWriteTime; - DWORD nFileSizeHigh; - DWORD nFileSizeLow; -} WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA; - -__declspec(dllimport) -DWORD -__stdcall -GetFileAttributesA( - LPCSTR lpFileName - ); - -__declspec(dllimport) -DWORD -__stdcall -GetFileAttributesW( - LPCWSTR lpFileName - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetFileAttributesExA( - LPCSTR lpFileName, - GET_FILEEX_INFO_LEVELS fInfoLevelId, - LPVOID lpFileInformation - ); - -__declspec(dllimport) -BOOL -__stdcall -GetFileAttributesExW( - LPCWSTR lpFileName, - GET_FILEEX_INFO_LEVELS fInfoLevelId, - LPVOID lpFileInformation - ); - - - - - - -typedef struct _BY_HANDLE_FILE_INFORMATION { - DWORD dwFileAttributes; - FILETIME ftCreationTime; - FILETIME ftLastAccessTime; - FILETIME ftLastWriteTime; - DWORD dwVolumeSerialNumber; - DWORD nFileSizeHigh; - DWORD nFileSizeLow; - DWORD nNumberOfLinks; - DWORD nFileIndexHigh; - DWORD nFileIndexLow; -} BY_HANDLE_FILE_INFORMATION, *PBY_HANDLE_FILE_INFORMATION, *LPBY_HANDLE_FILE_INFORMATION; - -__declspec(dllimport) -BOOL -__stdcall -GetFileInformationByHandle( - HANDLE hFile, - LPBY_HANDLE_FILE_INFORMATION lpFileInformation - ); - - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetFileSize( - HANDLE hFile, - LPDWORD lpFileSizeHigh - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetFileSizeEx( - HANDLE hFile, - PLARGE_INTEGER lpFileSize - ); - -__declspec(dllimport) -DWORD -__stdcall -GetFileType( - HANDLE hFile - ); - - - -__declspec(dllimport) -DWORD -__stdcall -GetFinalPathNameByHandleA( - HANDLE hFile, - LPSTR lpszFilePath, - DWORD cchFilePath, - DWORD dwFlags - ); - -__declspec(dllimport) -DWORD -__stdcall -GetFinalPathNameByHandleW( - HANDLE hFile, - LPWSTR lpszFilePath, - DWORD cchFilePath, - DWORD dwFlags - ); -# 713 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetFileTime( - HANDLE hFile, - LPFILETIME lpCreationTime, - LPFILETIME lpLastAccessTime, - LPFILETIME lpLastWriteTime - ); - -__declspec(dllimport) - -DWORD -__stdcall -GetFullPathNameW( - LPCWSTR lpFileName, - DWORD nBufferLength, - LPWSTR lpBuffer, - LPWSTR* lpFilePart - ); - - - - - -__declspec(dllimport) - -DWORD -__stdcall -GetFullPathNameA( - LPCSTR lpFileName, - DWORD nBufferLength, - LPSTR lpBuffer, - LPSTR* lpFilePart - ); - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetLogicalDrives( - void - ); - - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetLogicalDriveStringsW( - DWORD nBufferLength, - LPWSTR lpBuffer - ); -# 784 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) - -DWORD -__stdcall -GetLongPathNameA( - LPCSTR lpszShortPath, - LPSTR lpszLongPath, - DWORD cchBuffer - ); - - - - - -__declspec(dllimport) - -DWORD -__stdcall -GetLongPathNameW( - LPCWSTR lpszShortPath, - LPWSTR lpszLongPath, - DWORD cchBuffer - ); -# 820 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -AreShortNamesEnabled( - HANDLE Handle, - BOOL* Enabled - ); - - - -__declspec(dllimport) - -DWORD -__stdcall -GetShortPathNameW( - LPCWSTR lpszLongPath, - LPWSTR lpszShortPath, - DWORD cchBuffer - ); -# 850 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -UINT -__stdcall -GetTempFileNameW( - LPCWSTR lpPathName, - LPCWSTR lpPrefixString, - UINT uUnique, - LPWSTR lpTempFileName - ); -# 872 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetVolumeInformationByHandleW( - HANDLE hFile, - LPWSTR lpVolumeNameBuffer, - DWORD nVolumeNameSize, - LPDWORD lpVolumeSerialNumber, - LPDWORD lpMaximumComponentLength, - LPDWORD lpFileSystemFlags, - LPWSTR lpFileSystemNameBuffer, - DWORD nFileSystemNameSize - ); - - - -__declspec(dllimport) -BOOL -__stdcall -GetVolumeInformationW( - LPCWSTR lpRootPathName, - LPWSTR lpVolumeNameBuffer, - DWORD nVolumeNameSize, - LPDWORD lpVolumeSerialNumber, - LPDWORD lpMaximumComponentLength, - LPDWORD lpFileSystemFlags, - LPWSTR lpFileSystemNameBuffer, - DWORD nFileSystemNameSize - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetVolumePathNameW( - LPCWSTR lpszFileName, - LPWSTR lpszVolumePathName, - DWORD cchBufferLength - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -LocalFileTimeToFileTime( - const FILETIME* lpLocalFileTime, - LPFILETIME lpFileTime - ); - -__declspec(dllimport) -BOOL -__stdcall -LockFile( - HANDLE hFile, - DWORD dwFileOffsetLow, - DWORD dwFileOffsetHigh, - DWORD nNumberOfBytesToLockLow, - DWORD nNumberOfBytesToLockHigh - ); - -__declspec(dllimport) -BOOL -__stdcall -LockFileEx( - HANDLE hFile, - DWORD dwFlags, - DWORD dwReserved, - DWORD nNumberOfBytesToLockLow, - DWORD nNumberOfBytesToLockHigh, - LPOVERLAPPED lpOverlapped - ); - - - - - - - -__declspec(dllimport) -DWORD -__stdcall -QueryDosDeviceW( - LPCWSTR lpDeviceName, - LPWSTR lpTargetPath, - DWORD ucchMax - ); -# 975 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -ReadFile( - HANDLE hFile, - LPVOID lpBuffer, - DWORD nNumberOfBytesToRead, - LPDWORD lpNumberOfBytesRead, - LPOVERLAPPED lpOverlapped - ); - -__declspec(dllimport) - -BOOL -__stdcall -ReadFileEx( - HANDLE hFile, - LPVOID lpBuffer, - DWORD nNumberOfBytesToRead, - LPOVERLAPPED lpOverlapped, - LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine - ); - -__declspec(dllimport) - -BOOL -__stdcall -ReadFileScatter( - HANDLE hFile, - FILE_SEGMENT_ELEMENT aSegmentArray[], - DWORD nNumberOfBytesToRead, - LPDWORD lpReserved, - LPOVERLAPPED lpOverlapped - ); - -__declspec(dllimport) -BOOL -__stdcall -RemoveDirectoryA( - LPCSTR lpPathName - ); - -__declspec(dllimport) -BOOL -__stdcall -RemoveDirectoryW( - LPCWSTR lpPathName - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetEndOfFile( - HANDLE hFile - ); - -__declspec(dllimport) -BOOL -__stdcall -SetFileAttributesA( - LPCSTR lpFileName, - DWORD dwFileAttributes - ); - -__declspec(dllimport) -BOOL -__stdcall -SetFileAttributesW( - LPCWSTR lpFileName, - DWORD dwFileAttributes - ); -# 1060 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetFileInformationByHandle( - HANDLE hFile, - FILE_INFO_BY_HANDLE_CLASS FileInformationClass, - LPVOID lpFileInformation, - DWORD dwBufferSize - ); - - - -__declspec(dllimport) -DWORD -__stdcall -SetFilePointer( - HANDLE hFile, - LONG lDistanceToMove, - PLONG lpDistanceToMoveHigh, - DWORD dwMoveMethod - ); - -__declspec(dllimport) -BOOL -__stdcall -SetFilePointerEx( - HANDLE hFile, - LARGE_INTEGER liDistanceToMove, - PLARGE_INTEGER lpNewFilePointer, - DWORD dwMoveMethod - ); - -__declspec(dllimport) -BOOL -__stdcall -SetFileTime( - HANDLE hFile, - const FILETIME* lpCreationTime, - const FILETIME* lpLastAccessTime, - const FILETIME* lpLastWriteTime - ); - - - -__declspec(dllimport) -BOOL -__stdcall -SetFileValidData( - HANDLE hFile, - LONGLONG ValidDataLength - ); - - - -__declspec(dllimport) -BOOL -__stdcall -UnlockFile( - HANDLE hFile, - DWORD dwFileOffsetLow, - DWORD dwFileOffsetHigh, - DWORD nNumberOfBytesToUnlockLow, - DWORD nNumberOfBytesToUnlockHigh - ); - -__declspec(dllimport) -BOOL -__stdcall -UnlockFileEx( - HANDLE hFile, - DWORD dwReserved, - DWORD nNumberOfBytesToUnlockLow, - DWORD nNumberOfBytesToUnlockHigh, - LPOVERLAPPED lpOverlapped - ); - -__declspec(dllimport) -BOOL -__stdcall -WriteFile( - HANDLE hFile, - LPCVOID lpBuffer, - DWORD nNumberOfBytesToWrite, - LPDWORD lpNumberOfBytesWritten, - LPOVERLAPPED lpOverlapped - ); - -__declspec(dllimport) -BOOL -__stdcall -WriteFileEx( - HANDLE hFile, - LPCVOID lpBuffer, - DWORD nNumberOfBytesToWrite, - LPOVERLAPPED lpOverlapped, - LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine - ); - -__declspec(dllimport) -BOOL -__stdcall -WriteFileGather( - HANDLE hFile, - FILE_SEGMENT_ELEMENT aSegmentArray[], - DWORD nNumberOfBytesToWrite, - LPDWORD lpReserved, - LPOVERLAPPED lpOverlapped - ); - -__declspec(dllimport) -DWORD -__stdcall -GetTempPathW( - DWORD nBufferLength, - LPWSTR lpBuffer - ); -# 1187 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetVolumeNameForVolumeMountPointW( - LPCWSTR lpszVolumeMountPoint, - LPWSTR lpszVolumeName, - DWORD cchBufferLength - ); -# 1208 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetVolumePathNamesForVolumeNameW( - LPCWSTR lpszVolumeName, - LPWCH lpszVolumePathNames, - DWORD cchBufferLength, - PDWORD lpcchReturnLength - ); -# 1232 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -typedef struct _CREATEFILE2_EXTENDED_PARAMETERS { - DWORD dwSize; - DWORD dwFileAttributes; - DWORD dwFileFlags; - DWORD dwSecurityQosFlags; - LPSECURITY_ATTRIBUTES lpSecurityAttributes; - HANDLE hTemplateFile; -} CREATEFILE2_EXTENDED_PARAMETERS, *PCREATEFILE2_EXTENDED_PARAMETERS, *LPCREATEFILE2_EXTENDED_PARAMETERS; - -__declspec(dllimport) -HANDLE -__stdcall -CreateFile2( - LPCWSTR lpFileName, - DWORD dwDesiredAccess, - DWORD dwShareMode, - DWORD dwCreationDisposition, - LPCREATEFILE2_EXTENDED_PARAMETERS pCreateExParams - ); -# 1262 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetFileIoOverlappedRange( - HANDLE FileHandle, - PUCHAR OverlappedRangeStart, - ULONG Length - ); - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetCompressedFileSizeA( - LPCSTR lpFileName, - LPDWORD lpFileSizeHigh - ); - -__declspec(dllimport) -DWORD -__stdcall -GetCompressedFileSizeW( - LPCWSTR lpFileName, - LPDWORD lpFileSizeHigh - ); -# 1300 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -typedef enum _STREAM_INFO_LEVELS { - - FindStreamInfoStandard, - FindStreamInfoMaxInfoLevel - -} STREAM_INFO_LEVELS; - -typedef struct _WIN32_FIND_STREAM_DATA { - - LARGE_INTEGER StreamSize; - WCHAR cStreamName[ 260 + 36 ]; - -} WIN32_FIND_STREAM_DATA, *PWIN32_FIND_STREAM_DATA; - -__declspec(dllimport) -HANDLE -__stdcall -FindFirstStreamW( - LPCWSTR lpFileName, - STREAM_INFO_LEVELS InfoLevel, - LPVOID lpFindStreamData, - DWORD dwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -FindNextStreamW( - HANDLE hFindStream, - LPVOID lpFindStreamData - ); -# 1340 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -AreFileApisANSI( - void - ); - - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetTempPathA( - DWORD nBufferLength, - LPSTR lpBuffer - ); -# 1373 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -FindFirstFileNameW( - LPCWSTR lpFileName, - DWORD dwFlags, - LPDWORD StringLength, - PWSTR LinkName - ); - -__declspec(dllimport) -BOOL -__stdcall -FindNextFileNameW( - HANDLE hFindStream, - LPDWORD StringLength, - PWSTR LinkName - ); -# 1400 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetVolumeInformationA( - LPCSTR lpRootPathName, - LPSTR lpVolumeNameBuffer, - DWORD nVolumeNameSize, - LPDWORD lpVolumeSerialNumber, - LPDWORD lpMaximumComponentLength, - LPDWORD lpFileSystemFlags, - LPSTR lpFileSystemNameBuffer, - DWORD nFileSystemNameSize - ); -# 1424 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -UINT -__stdcall -GetTempFileNameA( - LPCSTR lpPathName, - LPCSTR lpPrefixString, - UINT uUnique, - LPSTR lpTempFileName - ); -# 1443 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) -void -__stdcall -SetFileApisToOEM( - void - ); - -__declspec(dllimport) -void -__stdcall -SetFileApisToANSI( - void - ); -# 1465 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapi.h" 3 -__declspec(dllimport) - -DWORD -__stdcall -GetTempPath2W( - DWORD BufferLength, - LPWSTR Buffer - ); - - - - - -__declspec(dllimport) - -DWORD -__stdcall -GetTempPath2A( - DWORD BufferLength, - LPSTR Buffer - ); -# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapifromapp.h" 2 3 -# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fileapifromapp.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CopyFileFromAppW( - LPCWSTR lpExistingFileName, - LPCWSTR lpNewFileName, - BOOL bFailIfExists - ) - - - -; - -__declspec(dllimport) -BOOL -__stdcall -CreateDirectoryFromAppW( - LPCWSTR lpPathName, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ) - - - -; - -__declspec(dllimport) -HANDLE -__stdcall -CreateFileFromAppW( - LPCWSTR lpFileName, - DWORD dwDesiredAccess, - DWORD dwShareMode, - LPSECURITY_ATTRIBUTES lpSecurityAttributes, - DWORD dwCreationDisposition, - DWORD dwFlagsAndAttributes, - HANDLE hTemplateFile - ) - - - -; - -__declspec(dllimport) -HANDLE -__stdcall -CreateFile2FromAppW( - LPCWSTR lpFileName, - DWORD dwDesiredAccess, - DWORD dwShareMode, - DWORD dwCreationDisposition, - LPCREATEFILE2_EXTENDED_PARAMETERS pCreateExParams - ) - - - -; - -__declspec(dllimport) -BOOL -__stdcall -DeleteFileFromAppW( - LPCWSTR lpFileName - ) - - - -; - -__declspec(dllimport) -HANDLE -__stdcall -FindFirstFileExFromAppW( - LPCWSTR lpFileName, - FINDEX_INFO_LEVELS fInfoLevelId, - LPVOID lpFindFileData, - FINDEX_SEARCH_OPS fSearchOp, - LPVOID lpSearchFilter, - DWORD dwAdditionalFlags - ) - - - -; - -__declspec(dllimport) -BOOL -__stdcall -GetFileAttributesExFromAppW( - LPCWSTR lpFileName, - GET_FILEEX_INFO_LEVELS fInfoLevelId, - LPVOID lpFileInformation - ) - - - -; - -__declspec(dllimport) -BOOL -__stdcall -MoveFileFromAppW( - LPCWSTR lpExistingFileName, - LPCWSTR lpNewFileName - ) - - - -; - -__declspec(dllimport) -BOOL -__stdcall -RemoveDirectoryFromAppW( - LPCWSTR lpPathName - ) - - - -; - -__declspec(dllimport) -BOOL -__stdcall -ReplaceFileFromAppW( - LPCWSTR lpReplacedFileName, - LPCWSTR lpReplacementFileName, - LPCWSTR lpBackupFileName, - DWORD dwReplaceFlags, - LPVOID lpExclude, - LPVOID lpReserved - ) - - - -; - -__declspec(dllimport) -BOOL -__stdcall -SetFileAttributesFromAppW( - LPCWSTR lpFileName, - DWORD dwFileAttributes - ) - - - -; -# 44 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\debugapi.h" 1 3 -# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\debugapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsDebuggerPresent( - void - ); -# 44 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\debugapi.h" 3 -__declspec(dllimport) -void -__stdcall -DebugBreak( - void - ); - -__declspec(dllimport) -void -__stdcall -OutputDebugStringA( - LPCSTR lpOutputString - ); - -__declspec(dllimport) -void -__stdcall -OutputDebugStringW( - LPCWSTR lpOutputString - ); -# 76 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\debugapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -ContinueDebugEvent( - DWORD dwProcessId, - DWORD dwThreadId, - DWORD dwContinueStatus - ); - -__declspec(dllimport) -BOOL -__stdcall -WaitForDebugEvent( - LPDEBUG_EVENT lpDebugEvent, - DWORD dwMilliseconds - ); - -__declspec(dllimport) -BOOL -__stdcall -DebugActiveProcess( - DWORD dwProcessId - ); - -__declspec(dllimport) -BOOL -__stdcall -DebugActiveProcessStop( - DWORD dwProcessId - ); -# 115 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\debugapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CheckRemoteDebuggerPresent( - HANDLE hProcess, - PBOOL pbDebuggerPresent - ); -# 131 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\debugapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -WaitForDebugEventEx( - LPDEBUG_EVENT lpDebugEvent, - DWORD dwMilliseconds - ); -# 45 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\utilapiset.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\utilapiset.h" 3 -__declspec(dllimport) - -PVOID -__stdcall -EncodePointer( - PVOID Ptr - ); - -__declspec(dllimport) - -PVOID -__stdcall -DecodePointer( - PVOID Ptr - ); - -__declspec(dllimport) - -PVOID -__stdcall -EncodeSystemPointer( - PVOID Ptr - ); - -__declspec(dllimport) - -PVOID -__stdcall -DecodeSystemPointer( - PVOID Ptr - ); - - - - - - - -__declspec(dllimport) -HRESULT -__stdcall -EncodeRemotePointer( - HANDLE ProcessHandle, - PVOID Ptr, - PVOID* EncodedPtr - ); - -__declspec(dllimport) -HRESULT -__stdcall -DecodeRemotePointer( - HANDLE ProcessHandle, - PVOID Ptr, - PVOID* DecodedPtr - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -Beep( - DWORD dwFreq, - DWORD dwDuration - ); -# 46 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\handleapi.h" 1 3 -# 36 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\handleapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CloseHandle( - HANDLE hObject - ); - -__declspec(dllimport) -BOOL -__stdcall -DuplicateHandle( - HANDLE hSourceProcessHandle, - HANDLE hSourceHandle, - HANDLE hTargetProcessHandle, - LPHANDLE lpTargetHandle, - DWORD dwDesiredAccess, - BOOL bInheritHandle, - DWORD dwOptions - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CompareObjectHandles( - HANDLE hFirstObjectHandle, - HANDLE hSecondObjectHandle - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetHandleInformation( - HANDLE hObject, - LPDWORD lpdwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -SetHandleInformation( - HANDLE hObject, - DWORD dwMask, - DWORD dwFlags - ); -# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\errhandlingapi.h" 1 3 -# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\errhandlingapi.h" 3 -typedef LONG (__stdcall *PTOP_LEVEL_EXCEPTION_FILTER)( - struct _EXCEPTION_POINTERS *ExceptionInfo - ); - -typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER; - - - - - -__declspec(dllimport) -void -__stdcall -RaiseException( - DWORD dwExceptionCode, - DWORD dwExceptionFlags, - DWORD nNumberOfArguments, - const ULONG_PTR* lpArguments - ); -# 58 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\errhandlingapi.h" 3 -__declspec(dllimport) -LONG -__stdcall -UnhandledExceptionFilter( - struct _EXCEPTION_POINTERS* ExceptionInfo - ); - - - - - - - -__declspec(dllimport) -LPTOP_LEVEL_EXCEPTION_FILTER -__stdcall -SetUnhandledExceptionFilter( - LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelExceptionFilter - ); - - - -__declspec(dllimport) - - -DWORD -__stdcall -GetLastError( - void - ); - - - -__declspec(dllimport) -void -__stdcall -SetLastError( - DWORD dwErrCode - ); -# 106 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\errhandlingapi.h" 3 -__declspec(dllimport) -UINT -__stdcall -GetErrorMode( - void - ); - - - -__declspec(dllimport) -UINT -__stdcall -SetErrorMode( - UINT uMode - ); -# 130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\errhandlingapi.h" 3 -__declspec(dllimport) - -PVOID -__stdcall -AddVectoredExceptionHandler( - ULONG First, - PVECTORED_EXCEPTION_HANDLER Handler - ); - -__declspec(dllimport) -ULONG -__stdcall -RemoveVectoredExceptionHandler( - PVOID Handle - ); - -__declspec(dllimport) - -PVOID -__stdcall -AddVectoredContinueHandler( - ULONG First, - PVECTORED_EXCEPTION_HANDLER Handler - ); - -__declspec(dllimport) -ULONG -__stdcall -RemoveVectoredContinueHandler( - PVOID Handle - ); -# 190 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\errhandlingapi.h" 3 -__declspec(dllimport) -void -__stdcall -RaiseFailFastException( - PEXCEPTION_RECORD pExceptionRecord, - PCONTEXT pContextRecord, - DWORD dwFlags - ); - - - - - - - -__declspec(dllimport) -void -__stdcall -FatalAppExitA( - UINT uAction, - LPCSTR lpMessageText - ); - -__declspec(dllimport) -void -__stdcall -FatalAppExitW( - UINT uAction, - LPCWSTR lpMessageText - ); -# 232 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\errhandlingapi.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetThreadErrorMode( - void - ); - -__declspec(dllimport) -BOOL -__stdcall -SetThreadErrorMode( - DWORD dwNewMode, - LPDWORD lpOldMode - ); - - - - - - - -__declspec(dllimport) -void -__stdcall -TerminateProcessOnMemoryExhaustion( - SIZE_T FailedAllocationSize - ); -# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fibersapi.h" 1 3 -# 33 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fibersapi.h" 3 -__declspec(dllimport) -DWORD -__stdcall -FlsAlloc( - PFLS_CALLBACK_FUNCTION lpCallback - ); - -__declspec(dllimport) -PVOID -__stdcall -FlsGetValue( - DWORD dwFlsIndex - ); - -__declspec(dllimport) -BOOL -__stdcall -FlsSetValue( - DWORD dwFlsIndex, - PVOID lpFlsData - ); - -__declspec(dllimport) -BOOL -__stdcall -FlsFree( - DWORD dwFlsIndex - ); -# 72 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\fibersapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsThreadAFiber( - void - ); -# 49 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\namedpipeapi.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\namedpipeapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CreatePipe( - PHANDLE hReadPipe, - PHANDLE hWritePipe, - LPSECURITY_ATTRIBUTES lpPipeAttributes, - DWORD nSize - ); - -__declspec(dllimport) -BOOL -__stdcall -ConnectNamedPipe( - HANDLE hNamedPipe, - LPOVERLAPPED lpOverlapped - ); - -__declspec(dllimport) -BOOL -__stdcall -DisconnectNamedPipe( - HANDLE hNamedPipe - ); - -__declspec(dllimport) -BOOL -__stdcall -SetNamedPipeHandleState( - HANDLE hNamedPipe, - LPDWORD lpMode, - LPDWORD lpMaxCollectionCount, - LPDWORD lpCollectDataTimeout - ); - -__declspec(dllimport) -BOOL -__stdcall -PeekNamedPipe( - HANDLE hNamedPipe, - LPVOID lpBuffer, - DWORD nBufferSize, - LPDWORD lpBytesRead, - LPDWORD lpTotalBytesAvail, - LPDWORD lpBytesLeftThisMessage - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -TransactNamedPipe( - HANDLE hNamedPipe, - LPVOID lpInBuffer, - DWORD nInBufferSize, - LPVOID lpOutBuffer, - DWORD nOutBufferSize, - LPDWORD lpBytesRead, - LPOVERLAPPED lpOverlapped - ); - - - - - -__declspec(dllimport) -HANDLE -__stdcall -CreateNamedPipeW( - LPCWSTR lpName, - DWORD dwOpenMode, - DWORD dwPipeMode, - DWORD nMaxInstances, - DWORD nOutBufferSize, - DWORD nInBufferSize, - DWORD nDefaultTimeOut, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -WaitNamedPipeW( - LPCWSTR lpNamedPipeName, - DWORD nTimeOut - ); -# 131 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\namedpipeapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetNamedPipeClientComputerNameW( - HANDLE Pipe, - LPWSTR ClientComputerName, - ULONG ClientComputerNameLength - ); - - - - - - - -__declspec(dllimport) - -BOOL -__stdcall -ImpersonateNamedPipeClient( - HANDLE hNamedPipe - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetNamedPipeInfo( - HANDLE hNamedPipe, - LPDWORD lpFlags, - LPDWORD lpOutBufferSize, - LPDWORD lpInBufferSize, - LPDWORD lpMaxInstances - ); - -__declspec(dllimport) -BOOL -__stdcall -GetNamedPipeHandleStateW( - HANDLE hNamedPipe, - LPDWORD lpState, - LPDWORD lpCurInstances, - LPDWORD lpMaxCollectionCount, - LPDWORD lpCollectDataTimeout, - LPWSTR lpUserName, - DWORD nMaxUserNameSize - ); -# 192 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\namedpipeapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CallNamedPipeW( - LPCWSTR lpNamedPipeName, - LPVOID lpInBuffer, - DWORD nInBufferSize, - LPVOID lpOutBuffer, - DWORD nOutBufferSize, - LPDWORD lpBytesRead, - DWORD nTimeOut - ); -# 50 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\profileapi.h" 1 3 -# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\profileapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -QueryPerformanceCounter( - LARGE_INTEGER* lpPerformanceCount - ); - -__declspec(dllimport) -BOOL -__stdcall -QueryPerformanceFrequency( - LARGE_INTEGER* lpFrequency - ); -# 51 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\heapapi.h" 1 3 -# 32 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\heapapi.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) -# 43 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\heapapi.h" 3 -typedef struct _HEAP_SUMMARY { - DWORD cb; - SIZE_T cbAllocated; - SIZE_T cbCommitted; - SIZE_T cbReserved; - SIZE_T cbMaxReserve; -} HEAP_SUMMARY, *PHEAP_SUMMARY; -typedef PHEAP_SUMMARY LPHEAP_SUMMARY; - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -HeapCreate( - DWORD flOptions, - SIZE_T dwInitialSize, - SIZE_T dwMaximumSize - ); - -__declspec(dllimport) -BOOL -__stdcall -HeapDestroy( - HANDLE hHeap - ); - -__declspec(dllimport) - - -__declspec(allocator) -LPVOID -__stdcall -HeapAlloc( - HANDLE hHeap, - DWORD dwFlags, - SIZE_T dwBytes - ); - -__declspec(dllimport) - - - -__declspec(allocator) -LPVOID -__stdcall -HeapReAlloc( - HANDLE hHeap, - DWORD dwFlags, - LPVOID lpMem, - SIZE_T dwBytes - ); - -__declspec(dllimport) - -BOOL -__stdcall -HeapFree( - HANDLE hHeap, - DWORD dwFlags, - LPVOID lpMem - ); - -__declspec(dllimport) -SIZE_T -__stdcall -HeapSize( - HANDLE hHeap, - DWORD dwFlags, - LPCVOID lpMem - ); - -__declspec(dllimport) -HANDLE -__stdcall -GetProcessHeap( - void - ); - -__declspec(dllimport) -SIZE_T -__stdcall -HeapCompact( - HANDLE hHeap, - DWORD dwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -HeapSetInformation( - HANDLE HeapHandle, - HEAP_INFORMATION_CLASS HeapInformationClass, - PVOID HeapInformation, - SIZE_T HeapInformationLength - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -HeapValidate( - HANDLE hHeap, - DWORD dwFlags, - LPCVOID lpMem - ); - - - - - - - -BOOL -__stdcall -HeapSummary( - HANDLE hHeap, - DWORD dwFlags, - LPHEAP_SUMMARY lpSummary - ); - - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetProcessHeaps( - DWORD NumberOfHeaps, - PHANDLE ProcessHeaps - ); - -__declspec(dllimport) -BOOL -__stdcall -HeapLock( - HANDLE hHeap - ); - -__declspec(dllimport) -BOOL -__stdcall -HeapUnlock( - HANDLE hHeap - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -HeapWalk( - HANDLE hHeap, - LPPROCESS_HEAP_ENTRY lpEntry - ); - -__declspec(dllimport) -BOOL -__stdcall -HeapQueryInformation( - HANDLE HeapHandle, - HEAP_INFORMATION_CLASS HeapInformationClass, - PVOID HeapInformation, - SIZE_T HeapInformationLength, - PSIZE_T ReturnLength - ); -# 233 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\heapapi.h" 3 -#pragma warning(pop) -# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ioapiset.h" 1 3 -# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ioapiset.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -CreateIoCompletionPort( - HANDLE FileHandle, - HANDLE ExistingCompletionPort, - ULONG_PTR CompletionKey, - DWORD NumberOfConcurrentThreads - ); - -__declspec(dllimport) -BOOL -__stdcall -GetQueuedCompletionStatus( - HANDLE CompletionPort, - LPDWORD lpNumberOfBytesTransferred, - PULONG_PTR lpCompletionKey, - LPOVERLAPPED* lpOverlapped, - DWORD dwMilliseconds - ); - - - -__declspec(dllimport) -BOOL -__stdcall -GetQueuedCompletionStatusEx( - HANDLE CompletionPort, - LPOVERLAPPED_ENTRY lpCompletionPortEntries, - ULONG ulCount, - PULONG ulNumEntriesRemoved, - DWORD dwMilliseconds, - BOOL fAlertable - ); - - - -__declspec(dllimport) -BOOL -__stdcall -PostQueuedCompletionStatus( - HANDLE CompletionPort, - DWORD dwNumberOfBytesTransferred, - ULONG_PTR dwCompletionKey, - LPOVERLAPPED lpOverlapped - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -DeviceIoControl( - HANDLE hDevice, - DWORD dwIoControlCode, - LPVOID lpInBuffer, - DWORD nInBufferSize, - LPVOID lpOutBuffer, - DWORD nOutBufferSize, - LPDWORD lpBytesReturned, - LPOVERLAPPED lpOverlapped - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetOverlappedResult( - HANDLE hFile, - LPOVERLAPPED lpOverlapped, - LPDWORD lpNumberOfBytesTransferred, - BOOL bWait - ); - - - -__declspec(dllimport) -BOOL -__stdcall -CancelIoEx( - HANDLE hFile, - LPOVERLAPPED lpOverlapped - ); -# 130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ioapiset.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CancelIo( - HANDLE hFile - ); - -__declspec(dllimport) -BOOL -__stdcall -GetOverlappedResultEx( - HANDLE hFile, - LPOVERLAPPED lpOverlapped, - LPDWORD lpNumberOfBytesTransferred, - DWORD dwMilliseconds, - BOOL bAlertable - ); -# 156 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ioapiset.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CancelSynchronousIo( - HANDLE hThread - ); -# 53 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 1 3 -# 34 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 -typedef RTL_SRWLOCK SRWLOCK, *PSRWLOCK; - - - -__declspec(dllimport) -void -__stdcall -InitializeSRWLock( - PSRWLOCK SRWLock - ); - -__declspec(dllimport) - -void -__stdcall -ReleaseSRWLockExclusive( - PSRWLOCK SRWLock - ); - -__declspec(dllimport) - -void -__stdcall -ReleaseSRWLockShared( - PSRWLOCK SRWLock - ); - -__declspec(dllimport) - -void -__stdcall -AcquireSRWLockExclusive( - PSRWLOCK SRWLock - ); - -__declspec(dllimport) - -void -__stdcall -AcquireSRWLockShared( - PSRWLOCK SRWLock - ); - -__declspec(dllimport) - -BOOLEAN -__stdcall -TryAcquireSRWLockExclusive( - PSRWLOCK SRWLock - ); - -__declspec(dllimport) - -BOOLEAN -__stdcall -TryAcquireSRWLockShared( - PSRWLOCK SRWLock - ); -# 107 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 -__declspec(dllimport) -void -__stdcall -InitializeCriticalSection( - LPCRITICAL_SECTION lpCriticalSection - ); - - - -__declspec(dllimport) -void -__stdcall -EnterCriticalSection( - LPCRITICAL_SECTION lpCriticalSection - ); - -__declspec(dllimport) -void -__stdcall -LeaveCriticalSection( - LPCRITICAL_SECTION lpCriticalSection - ); - -__declspec(dllimport) - -BOOL -__stdcall -InitializeCriticalSectionAndSpinCount( - LPCRITICAL_SECTION lpCriticalSection, - DWORD dwSpinCount - ); - - - -__declspec(dllimport) -BOOL -__stdcall -InitializeCriticalSectionEx( - LPCRITICAL_SECTION lpCriticalSection, - DWORD dwSpinCount, - DWORD Flags - ); - - - -__declspec(dllimport) -DWORD -__stdcall -SetCriticalSectionSpinCount( - LPCRITICAL_SECTION lpCriticalSection, - DWORD dwSpinCount - ); - - - -__declspec(dllimport) -BOOL -__stdcall -TryEnterCriticalSection( - LPCRITICAL_SECTION lpCriticalSection - ); - - - -__declspec(dllimport) -void -__stdcall -DeleteCriticalSection( - LPCRITICAL_SECTION lpCriticalSection - ); - - - - - -typedef RTL_RUN_ONCE INIT_ONCE; -typedef PRTL_RUN_ONCE PINIT_ONCE; -typedef PRTL_RUN_ONCE LPINIT_ONCE; -# 203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 -typedef -BOOL -(__stdcall *PINIT_ONCE_FN) ( - PINIT_ONCE InitOnce, - PVOID Parameter, - PVOID *Context - ); - - - -__declspec(dllimport) -void -__stdcall -InitOnceInitialize( - PINIT_ONCE InitOnce - ); - -__declspec(dllimport) -BOOL -__stdcall -InitOnceExecuteOnce( - PINIT_ONCE InitOnce, - PINIT_ONCE_FN InitFn, - PVOID Parameter, - LPVOID* Context - ); - -__declspec(dllimport) -BOOL -__stdcall -InitOnceBeginInitialize( - LPINIT_ONCE lpInitOnce, - DWORD dwFlags, - PBOOL fPending, - LPVOID* lpContext - ); - -__declspec(dllimport) -BOOL -__stdcall -InitOnceComplete( - LPINIT_ONCE lpInitOnce, - DWORD dwFlags, - LPVOID lpContext - ); - - - - - - - -typedef RTL_CONDITION_VARIABLE CONDITION_VARIABLE, *PCONDITION_VARIABLE; -# 271 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 -__declspec(dllimport) -void -__stdcall -InitializeConditionVariable( - PCONDITION_VARIABLE ConditionVariable - ); - -__declspec(dllimport) -void -__stdcall -WakeConditionVariable( - PCONDITION_VARIABLE ConditionVariable - ); - -__declspec(dllimport) -void -__stdcall -WakeAllConditionVariable( - PCONDITION_VARIABLE ConditionVariable - ); - -__declspec(dllimport) -BOOL -__stdcall -SleepConditionVariableCS( - PCONDITION_VARIABLE ConditionVariable, - PCRITICAL_SECTION CriticalSection, - DWORD dwMilliseconds - ); - -__declspec(dllimport) -BOOL -__stdcall -SleepConditionVariableSRW( - PCONDITION_VARIABLE ConditionVariable, - PSRWLOCK SRWLock, - DWORD dwMilliseconds, - ULONG Flags - ); - - - -__declspec(dllimport) -BOOL -__stdcall -SetEvent( - HANDLE hEvent - ); - -__declspec(dllimport) -BOOL -__stdcall -ResetEvent( - HANDLE hEvent - ); - -__declspec(dllimport) -BOOL -__stdcall -ReleaseSemaphore( - HANDLE hSemaphore, - LONG lReleaseCount, - LPLONG lpPreviousCount - ); - -__declspec(dllimport) -BOOL -__stdcall -ReleaseMutex( - HANDLE hMutex - ); - -__declspec(dllimport) -DWORD -__stdcall -WaitForSingleObject( - HANDLE hHandle, - DWORD dwMilliseconds - ); - -__declspec(dllimport) -DWORD -__stdcall -SleepEx( - DWORD dwMilliseconds, - BOOL bAlertable - ); - -__declspec(dllimport) -DWORD -__stdcall -WaitForSingleObjectEx( - HANDLE hHandle, - DWORD dwMilliseconds, - BOOL bAlertable - ); - -__declspec(dllimport) -DWORD -__stdcall -WaitForMultipleObjectsEx( - DWORD nCount, - const HANDLE* lpHandles, - BOOL bWaitAll, - DWORD dwMilliseconds, - BOOL bAlertable - ); -# 386 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -CreateMutexA( - LPSECURITY_ATTRIBUTES lpMutexAttributes, - BOOL bInitialOwner, - LPCSTR lpName - ); - -__declspec(dllimport) - -HANDLE -__stdcall -CreateMutexW( - LPSECURITY_ATTRIBUTES lpMutexAttributes, - BOOL bInitialOwner, - LPCWSTR lpName - ); - - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -OpenMutexW( - DWORD dwDesiredAccess, - BOOL bInheritHandle, - LPCWSTR lpName - ); - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -CreateEventA( - LPSECURITY_ATTRIBUTES lpEventAttributes, - BOOL bManualReset, - BOOL bInitialState, - LPCSTR lpName - ); - -__declspec(dllimport) - -HANDLE -__stdcall -CreateEventW( - LPSECURITY_ATTRIBUTES lpEventAttributes, - BOOL bManualReset, - BOOL bInitialState, - LPCWSTR lpName - ); - - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -OpenEventA( - DWORD dwDesiredAccess, - BOOL bInheritHandle, - LPCSTR lpName - ); - -__declspec(dllimport) - -HANDLE -__stdcall -OpenEventW( - DWORD dwDesiredAccess, - BOOL bInheritHandle, - LPCWSTR lpName - ); - - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -OpenSemaphoreW( - DWORD dwDesiredAccess, - BOOL bInheritHandle, - LPCWSTR lpName - ); - - - - - - - -typedef -void -(__stdcall *PTIMERAPCROUTINE)( - LPVOID lpArgToCompletionRoutine, - DWORD dwTimerLowValue, - DWORD dwTimerHighValue - ); - -__declspec(dllimport) - -HANDLE -__stdcall -OpenWaitableTimerW( - DWORD dwDesiredAccess, - BOOL bInheritHandle, - LPCWSTR lpTimerName - ); - - - - - - - -BOOL -__stdcall -SetWaitableTimerEx( - HANDLE hTimer, - const LARGE_INTEGER* lpDueTime, - LONG lPeriod, - PTIMERAPCROUTINE pfnCompletionRoutine, - LPVOID lpArgToCompletionRoutine, - PREASON_CONTEXT WakeContext, - ULONG TolerableDelay - ); - - - -__declspec(dllimport) -BOOL -__stdcall -SetWaitableTimer( - HANDLE hTimer, - const LARGE_INTEGER* lpDueTime, - LONG lPeriod, - PTIMERAPCROUTINE pfnCompletionRoutine, - LPVOID lpArgToCompletionRoutine, - BOOL fResume - ); - -__declspec(dllimport) -BOOL -__stdcall -CancelWaitableTimer( - HANDLE hTimer - ); - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -CreateMutexExA( - LPSECURITY_ATTRIBUTES lpMutexAttributes, - LPCSTR lpName, - DWORD dwFlags, - DWORD dwDesiredAccess - ); - -__declspec(dllimport) - -HANDLE -__stdcall -CreateMutexExW( - LPSECURITY_ATTRIBUTES lpMutexAttributes, - LPCWSTR lpName, - DWORD dwFlags, - DWORD dwDesiredAccess - ); -# 584 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -CreateEventExA( - LPSECURITY_ATTRIBUTES lpEventAttributes, - LPCSTR lpName, - DWORD dwFlags, - DWORD dwDesiredAccess - ); - -__declspec(dllimport) - -HANDLE -__stdcall -CreateEventExW( - LPSECURITY_ATTRIBUTES lpEventAttributes, - LPCWSTR lpName, - DWORD dwFlags, - DWORD dwDesiredAccess - ); - - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -CreateSemaphoreExW( - LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, - LONG lInitialCount, - LONG lMaximumCount, - LPCWSTR lpName, - DWORD dwFlags, - DWORD dwDesiredAccess - ); -# 633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -CreateWaitableTimerExW( - LPSECURITY_ATTRIBUTES lpTimerAttributes, - LPCWSTR lpTimerName, - DWORD dwFlags, - DWORD dwDesiredAccess - ); -# 652 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 -typedef RTL_BARRIER SYNCHRONIZATION_BARRIER; -typedef PRTL_BARRIER PSYNCHRONIZATION_BARRIER; -typedef PRTL_BARRIER LPSYNCHRONIZATION_BARRIER; - - - - - -BOOL -__stdcall -EnterSynchronizationBarrier( - LPSYNCHRONIZATION_BARRIER lpBarrier, - DWORD dwFlags - ); - -BOOL -__stdcall -InitializeSynchronizationBarrier( - LPSYNCHRONIZATION_BARRIER lpBarrier, - LONG lTotalThreads, - LONG lSpinCount - ); - -BOOL -__stdcall -DeleteSynchronizationBarrier( - LPSYNCHRONIZATION_BARRIER lpBarrier - ); - -__declspec(dllimport) -void -__stdcall -Sleep( - DWORD dwMilliseconds - ); - -BOOL -__stdcall -WaitOnAddress( - volatile void* Address, - PVOID CompareAddress, - SIZE_T AddressSize, - DWORD dwMilliseconds - ); - -void -__stdcall -WakeByAddressSingle( - PVOID Address - ); - -void -__stdcall -WakeByAddressAll( - PVOID Address - ); -# 717 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 -__declspec(dllimport) -DWORD -__stdcall -SignalObjectAndWait( - HANDLE hObjectToSignal, - HANDLE hObjectToWaitOn, - DWORD dwMilliseconds, - BOOL bAlertable - ); -# 735 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\synchapi.h" 3 -__declspec(dllimport) -DWORD -__stdcall -WaitForMultipleObjects( - DWORD nCount, - const HANDLE* lpHandles, - BOOL bWaitAll, - DWORD dwMilliseconds - ); - -__declspec(dllimport) -HANDLE -__stdcall -CreateSemaphoreW( - LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, - LONG lInitialCount, - LONG lMaximumCount, - LPCWSTR lpName - ); - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -CreateWaitableTimerW( - LPSECURITY_ATTRIBUTES lpTimerAttributes, - BOOL bManualReset, - LPCWSTR lpTimerName - ); -# 54 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\interlockedapi.h" 1 3 -# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\interlockedapi.h" 3 -__declspec(dllimport) -void -__stdcall -InitializeSListHead( - PSLIST_HEADER ListHead - ); - -__declspec(dllimport) -PSLIST_ENTRY -__stdcall -InterlockedPopEntrySList( - PSLIST_HEADER ListHead - ); - -__declspec(dllimport) -PSLIST_ENTRY -__stdcall -InterlockedPushEntrySList( - PSLIST_HEADER ListHead, - PSLIST_ENTRY ListEntry - ); - - - - - -__declspec(dllimport) -PSLIST_ENTRY -__stdcall -InterlockedPushListSListEx( - PSLIST_HEADER ListHead, - PSLIST_ENTRY List, - PSLIST_ENTRY ListEnd, - ULONG Count - ); - - - -__declspec(dllimport) -PSLIST_ENTRY -__stdcall -InterlockedFlushSList( - PSLIST_HEADER ListHead - ); - -__declspec(dllimport) -USHORT -__stdcall -QueryDepthSList( - PSLIST_HEADER ListHead - ); -# 55 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 1 3 -# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -typedef struct _PROCESS_INFORMATION { - HANDLE hProcess; - HANDLE hThread; - DWORD dwProcessId; - DWORD dwThreadId; -} PROCESS_INFORMATION, *PPROCESS_INFORMATION, *LPPROCESS_INFORMATION; - -typedef struct _STARTUPINFOA { - DWORD cb; - LPSTR lpReserved; - LPSTR lpDesktop; - LPSTR lpTitle; - DWORD dwX; - DWORD dwY; - DWORD dwXSize; - DWORD dwYSize; - DWORD dwXCountChars; - DWORD dwYCountChars; - DWORD dwFillAttribute; - DWORD dwFlags; - WORD wShowWindow; - WORD cbReserved2; - LPBYTE lpReserved2; - HANDLE hStdInput; - HANDLE hStdOutput; - HANDLE hStdError; -} STARTUPINFOA, *LPSTARTUPINFOA; -typedef struct _STARTUPINFOW { - DWORD cb; - LPWSTR lpReserved; - LPWSTR lpDesktop; - LPWSTR lpTitle; - DWORD dwX; - DWORD dwY; - DWORD dwXSize; - DWORD dwYSize; - DWORD dwXCountChars; - DWORD dwYCountChars; - DWORD dwFillAttribute; - DWORD dwFlags; - WORD wShowWindow; - WORD cbReserved2; - LPBYTE lpReserved2; - HANDLE hStdInput; - HANDLE hStdOutput; - HANDLE hStdError; -} STARTUPINFOW, *LPSTARTUPINFOW; - - - - -typedef STARTUPINFOA STARTUPINFO; -typedef LPSTARTUPINFOA LPSTARTUPINFO; -# 91 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -DWORD -__stdcall -QueueUserAPC( - PAPCFUNC pfnAPC, - HANDLE hThread, - ULONG_PTR dwData - ); - - - - - -typedef enum _QUEUE_USER_APC_FLAGS { - QUEUE_USER_APC_FLAGS_NONE = 0x00000000, - QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC = 0x00000001, - - - - - - QUEUE_USER_APC_CALLBACK_DATA_CONTEXT = 0x00010000, -} QUEUE_USER_APC_FLAGS; - -typedef struct _APC_CALLBACK_DATA { - ULONG_PTR Parameter; - PCONTEXT ContextRecord; - ULONG_PTR Reserved0; - ULONG_PTR Reserved1; -} APC_CALLBACK_DATA, *PAPC_CALLBACK_DATA; - -__declspec(dllimport) -BOOL -__stdcall -QueueUserAPC2( - PAPCFUNC ApcRoutine, - HANDLE Thread, - ULONG_PTR Data, - QUEUE_USER_APC_FLAGS Flags - ); - - - -__declspec(dllimport) -BOOL -__stdcall -GetProcessTimes( - HANDLE hProcess, - LPFILETIME lpCreationTime, - LPFILETIME lpExitTime, - LPFILETIME lpKernelTime, - LPFILETIME lpUserTime - ); - -__declspec(dllimport) -HANDLE -__stdcall -GetCurrentProcess( - void - ); - -__declspec(dllimport) -DWORD -__stdcall -GetCurrentProcessId( - void - ); - -__declspec(dllimport) -__declspec(noreturn) -void -__stdcall -ExitProcess( - UINT uExitCode - ); - -__declspec(dllimport) -BOOL -__stdcall -TerminateProcess( - HANDLE hProcess, - UINT uExitCode - ); - -__declspec(dllimport) -BOOL -__stdcall -GetExitCodeProcess( - HANDLE hProcess, - LPDWORD lpExitCode - ); - -__declspec(dllimport) -BOOL -__stdcall -SwitchToThread( - void - ); - -__declspec(dllimport) - -HANDLE -__stdcall -CreateThread( - LPSECURITY_ATTRIBUTES lpThreadAttributes, - SIZE_T dwStackSize, - LPTHREAD_START_ROUTINE lpStartAddress, - LPVOID lpParameter, - DWORD dwCreationFlags, - LPDWORD lpThreadId - ); - - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -CreateRemoteThread( - HANDLE hProcess, - LPSECURITY_ATTRIBUTES lpThreadAttributes, - SIZE_T dwStackSize, - LPTHREAD_START_ROUTINE lpStartAddress, - LPVOID lpParameter, - DWORD dwCreationFlags, - LPDWORD lpThreadId - ); - - - - - - - -__declspec(dllimport) -HANDLE -__stdcall -GetCurrentThread( - void - ); - -__declspec(dllimport) -DWORD -__stdcall -GetCurrentThreadId( - void - ); - -__declspec(dllimport) - -HANDLE -__stdcall -OpenThread( - DWORD dwDesiredAccess, - BOOL bInheritHandle, - DWORD dwThreadId - ); - -__declspec(dllimport) -BOOL -__stdcall -SetThreadPriority( - HANDLE hThread, - int nPriority - ); - -__declspec(dllimport) -BOOL -__stdcall -SetThreadPriorityBoost( - HANDLE hThread, - BOOL bDisablePriorityBoost - ); - -__declspec(dllimport) -BOOL -__stdcall -GetThreadPriorityBoost( - HANDLE hThread, - PBOOL pDisablePriorityBoost - ); - -__declspec(dllimport) -int -__stdcall -GetThreadPriority( - HANDLE hThread - ); - -__declspec(dllimport) -__declspec(noreturn) -void -__stdcall -ExitThread( - DWORD dwExitCode - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -TerminateThread( - HANDLE hThread, - DWORD dwExitCode - ); - - - - - - -__declspec(dllimport) - -BOOL -__stdcall -GetExitCodeThread( - HANDLE hThread, - LPDWORD lpExitCode - ); - -__declspec(dllimport) -DWORD -__stdcall -SuspendThread( - HANDLE hThread - ); - -__declspec(dllimport) -DWORD -__stdcall -ResumeThread( - HANDLE hThread - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -TlsAlloc( - void - ); - -__declspec(dllimport) -LPVOID -__stdcall -TlsGetValue( - DWORD dwTlsIndex - ); - -__declspec(dllimport) -BOOL -__stdcall -TlsSetValue( - DWORD dwTlsIndex, - LPVOID lpTlsValue - ); - -__declspec(dllimport) -BOOL -__stdcall -TlsFree( - DWORD dwTlsIndex - ); - -__declspec(dllimport) -BOOL -__stdcall -CreateProcessA( - LPCSTR lpApplicationName, - LPSTR lpCommandLine, - LPSECURITY_ATTRIBUTES lpProcessAttributes, - LPSECURITY_ATTRIBUTES lpThreadAttributes, - BOOL bInheritHandles, - DWORD dwCreationFlags, - LPVOID lpEnvironment, - LPCSTR lpCurrentDirectory, - LPSTARTUPINFOA lpStartupInfo, - LPPROCESS_INFORMATION lpProcessInformation - ); - -__declspec(dllimport) -BOOL -__stdcall -CreateProcessW( - LPCWSTR lpApplicationName, - LPWSTR lpCommandLine, - LPSECURITY_ATTRIBUTES lpProcessAttributes, - LPSECURITY_ATTRIBUTES lpThreadAttributes, - BOOL bInheritHandles, - DWORD dwCreationFlags, - LPVOID lpEnvironment, - LPCWSTR lpCurrentDirectory, - LPSTARTUPINFOW lpStartupInfo, - LPPROCESS_INFORMATION lpProcessInformation - ); -# 409 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetProcessShutdownParameters( - DWORD dwLevel, - DWORD dwFlags - ); - -__declspec(dllimport) -DWORD -__stdcall -GetProcessVersion( - DWORD ProcessId - ); - - - - - - - -__declspec(dllimport) -void -__stdcall -GetStartupInfoW( - LPSTARTUPINFOW lpStartupInfo - ); -# 446 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CreateProcessAsUserW( - HANDLE hToken, - LPCWSTR lpApplicationName, - LPWSTR lpCommandLine, - LPSECURITY_ATTRIBUTES lpProcessAttributes, - LPSECURITY_ATTRIBUTES lpThreadAttributes, - BOOL bInheritHandles, - DWORD dwCreationFlags, - LPVOID lpEnvironment, - LPCWSTR lpCurrentDirectory, - LPSTARTUPINFOW lpStartupInfo, - LPPROCESS_INFORMATION lpProcessInformation - ); -# 487 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__forceinline -HANDLE -GetCurrentProcessToken ( - void - ) -{ - return (HANDLE)(LONG_PTR) -4; -} - -__forceinline -HANDLE -GetCurrentThreadToken ( - void - ) -{ - return (HANDLE)(LONG_PTR) -5; -} - -__forceinline -HANDLE -GetCurrentThreadEffectiveToken ( - void - ) -{ - return (HANDLE)(LONG_PTR) -6; -} - - - - -__declspec(dllimport) - -BOOL -__stdcall -SetThreadToken( - PHANDLE Thread, - HANDLE Token - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -OpenProcessToken( - HANDLE ProcessHandle, - DWORD DesiredAccess, - PHANDLE TokenHandle - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -OpenThreadToken( - HANDLE ThreadHandle, - DWORD DesiredAccess, - BOOL OpenAsSelf, - PHANDLE TokenHandle - ); - -__declspec(dllimport) -BOOL -__stdcall -SetPriorityClass( - HANDLE hProcess, - DWORD dwPriorityClass - ); - -__declspec(dllimport) -DWORD -__stdcall -GetPriorityClass( - HANDLE hProcess - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetThreadStackGuarantee( - PULONG StackSizeInBytes - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -ProcessIdToSessionId( - DWORD dwProcessId, - DWORD* pSessionId - ); - - - - - - - -typedef struct _PROC_THREAD_ATTRIBUTE_LIST *PPROC_THREAD_ATTRIBUTE_LIST, *LPPROC_THREAD_ATTRIBUTE_LIST; -# 615 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetProcessId( - HANDLE Process - ); - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetThreadId( - HANDLE Thread - ); - - - - - -__declspec(dllimport) -void -__stdcall -FlushProcessWriteBuffers( - void - ); -# 654 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetProcessIdOfThread( - HANDLE Thread - ); - -__declspec(dllimport) - -BOOL -__stdcall -InitializeProcThreadAttributeList( - LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList, - DWORD dwAttributeCount, - DWORD dwFlags, - PSIZE_T lpSize - ); - -__declspec(dllimport) -void -__stdcall -DeleteProcThreadAttributeList( - LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList - ); - - - -__declspec(dllimport) -BOOL -__stdcall -UpdateProcThreadAttribute( - LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList, - DWORD dwFlags, - DWORD_PTR Attribute, - PVOID lpValue, - SIZE_T cbSize, - PVOID lpPreviousValue, - PSIZE_T lpReturnSize - ); - - - -__declspec(dllimport) -BOOL -__stdcall -SetProcessDynamicEHContinuationTargets( - HANDLE Process, - USHORT NumberOfTargets, - PPROCESS_DYNAMIC_EH_CONTINUATION_TARGET Targets - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetProcessDynamicEnforcedCetCompatibleRanges( - HANDLE Process, - USHORT NumberOfRanges, - PPROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE Ranges - ); -# 728 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetProcessAffinityUpdateMode( - HANDLE hProcess, - DWORD dwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -QueryProcessAffinityUpdateMode( - HANDLE hProcess, - LPDWORD lpdwFlags - ); -# 752 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -CreateRemoteThreadEx( - HANDLE hProcess, - LPSECURITY_ATTRIBUTES lpThreadAttributes, - SIZE_T dwStackSize, - LPTHREAD_START_ROUTINE lpStartAddress, - LPVOID lpParameter, - DWORD dwCreationFlags, - LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList, - LPDWORD lpThreadId - ); -# 777 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -void -__stdcall -GetCurrentThreadStackLimits( - PULONG_PTR LowLimit, - PULONG_PTR HighLimit - ); - - - -__declspec(dllimport) -BOOL -__stdcall -GetThreadContext( - HANDLE hThread, - LPCONTEXT lpContext - ); -# 803 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetProcessMitigationPolicy( - HANDLE hProcess, - PROCESS_MITIGATION_POLICY MitigationPolicy, - PVOID lpBuffer, - SIZE_T dwLength - ); -# 821 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetThreadContext( - HANDLE hThread, - const CONTEXT* lpContext - ); -# 837 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetProcessMitigationPolicy( - PROCESS_MITIGATION_POLICY MitigationPolicy, - PVOID lpBuffer, - SIZE_T dwLength - ); -# 856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -FlushInstructionCache( - HANDLE hProcess, - LPCVOID lpBaseAddress, - SIZE_T dwSize - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetThreadTimes( - HANDLE hThread, - LPFILETIME lpCreationTime, - LPFILETIME lpExitTime, - LPFILETIME lpKernelTime, - LPFILETIME lpUserTime - ); - -__declspec(dllimport) -HANDLE -__stdcall -OpenProcess( - DWORD dwDesiredAccess, - BOOL bInheritHandle, - DWORD dwProcessId - ); - -__declspec(dllimport) -BOOL -__stdcall -IsProcessorFeaturePresent( - DWORD ProcessorFeature - ); -# 906 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetProcessHandleCount( - HANDLE hProcess, - PDWORD pdwHandleCount - ); -# 924 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetCurrentProcessorNumber( - void - ); -# 941 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetThreadIdealProcessorEx( - HANDLE hThread, - PPROCESSOR_NUMBER lpIdealProcessor, - PPROCESSOR_NUMBER lpPreviousIdealProcessor - ); - -__declspec(dllimport) -BOOL -__stdcall -GetThreadIdealProcessorEx( - HANDLE hThread, - PPROCESSOR_NUMBER lpIdealProcessor - ); - -__declspec(dllimport) -void -__stdcall -GetCurrentProcessorNumberEx( - PPROCESSOR_NUMBER ProcNumber - ); -# 975 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetProcessPriorityBoost( - HANDLE hProcess, - PBOOL pDisablePriorityBoost - ); - -__declspec(dllimport) -BOOL -__stdcall -SetProcessPriorityBoost( - HANDLE hProcess, - BOOL bDisablePriorityBoost - ); -# 1001 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetThreadIOPendingFlag( - HANDLE hThread, - PBOOL lpIOIsPending - ); -# 1018 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetSystemTimes( - PFILETIME lpIdleTime, - PFILETIME lpKernelTime, - PFILETIME lpUserTime - ); -# 1038 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -typedef enum _THREAD_INFORMATION_CLASS { - ThreadMemoryPriority, - ThreadAbsoluteCpuPriority, - ThreadDynamicCodePolicy, - ThreadPowerThrottling, - ThreadInformationClassMax -} THREAD_INFORMATION_CLASS; - - - -typedef struct _MEMORY_PRIORITY_INFORMATION { - ULONG MemoryPriority; -} MEMORY_PRIORITY_INFORMATION, *PMEMORY_PRIORITY_INFORMATION; - -__declspec(dllimport) -BOOL -__stdcall -GetThreadInformation( - HANDLE hThread, - THREAD_INFORMATION_CLASS ThreadInformationClass, - LPVOID ThreadInformation, - DWORD ThreadInformationSize - ); - -__declspec(dllimport) -BOOL -__stdcall -SetThreadInformation( - HANDLE hThread, - THREAD_INFORMATION_CLASS ThreadInformationClass, - LPVOID ThreadInformation, - DWORD ThreadInformationSize - ); -# 1082 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -typedef struct _THREAD_POWER_THROTTLING_STATE { - ULONG Version; - ULONG ControlMask; - ULONG StateMask; -} THREAD_POWER_THROTTLING_STATE; -# 1098 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsProcessCritical( - HANDLE hProcess, - PBOOL Critical - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetProtectedPolicy( - LPCGUID PolicyGuid, - ULONG_PTR PolicyValue, - PULONG_PTR OldPolicyValue - ); - -__declspec(dllimport) -BOOL -__stdcall -QueryProtectedPolicy( - LPCGUID PolicyGuid, - PULONG_PTR PolicyValue - ); -# 1135 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -DWORD -__stdcall -SetThreadIdealProcessor( - HANDLE hThread, - DWORD dwIdealProcessor - ); - - - - - - - -typedef enum _PROCESS_INFORMATION_CLASS { - ProcessMemoryPriority, - ProcessMemoryExhaustionInfo, - ProcessAppMemoryInfo, - ProcessInPrivateInfo, - ProcessPowerThrottling, - ProcessReservedValue1, - ProcessTelemetryCoverageInfo, - ProcessProtectionLevelInfo, - ProcessLeapSecondInfo, - ProcessMachineTypeInfo, - ProcessInformationClassMax -} PROCESS_INFORMATION_CLASS; - -typedef struct _APP_MEMORY_INFORMATION { - ULONG64 AvailableCommit; - ULONG64 PrivateCommitUsage; - ULONG64 PeakPrivateCommitUsage; - ULONG64 TotalCommitUsage; -} APP_MEMORY_INFORMATION, *PAPP_MEMORY_INFORMATION; - -typedef enum _MACHINE_ATTRIBUTES { - UserEnabled = 0x00000001, - KernelEnabled = 0x00000002, - Wow64Container = 0x00000004 -} MACHINE_ATTRIBUTES; - - - ; - - -typedef struct _PROCESS_MACHINE_INFORMATION { - USHORT ProcessMachine; - USHORT Res0; - MACHINE_ATTRIBUTES MachineAttributes; -} PROCESS_MACHINE_INFORMATION; -# 1193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -typedef enum _PROCESS_MEMORY_EXHAUSTION_TYPE { - PMETypeFailFastOnCommitFailure, - PMETypeMax -} PROCESS_MEMORY_EXHAUSTION_TYPE, *PPROCESS_MEMORY_EXHAUSTION_TYPE; - - - - -typedef struct _PROCESS_MEMORY_EXHAUSTION_INFO { - USHORT Version; - USHORT Reserved; - PROCESS_MEMORY_EXHAUSTION_TYPE Type; - ULONG_PTR Value; -} PROCESS_MEMORY_EXHAUSTION_INFO, *PPROCESS_MEMORY_EXHAUSTION_INFO; -# 1216 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -typedef struct _PROCESS_POWER_THROTTLING_STATE { - ULONG Version; - ULONG ControlMask; - ULONG StateMask; -} PROCESS_POWER_THROTTLING_STATE, *PPROCESS_POWER_THROTTLING_STATE; - -typedef struct PROCESS_PROTECTION_LEVEL_INFORMATION { - DWORD ProtectionLevel; -} PROCESS_PROTECTION_LEVEL_INFORMATION; - - - - - -typedef struct _PROCESS_LEAP_SECOND_INFO { - ULONG Flags; - ULONG Reserved; -} PROCESS_LEAP_SECOND_INFO, *PPROCESS_LEAP_SECOND_INFO; - - - -__declspec(dllimport) -BOOL -__stdcall -SetProcessInformation( - HANDLE hProcess, - PROCESS_INFORMATION_CLASS ProcessInformationClass, - LPVOID ProcessInformation, - DWORD ProcessInformationSize - ); - -__declspec(dllimport) -BOOL -__stdcall -GetProcessInformation( - HANDLE hProcess, - PROCESS_INFORMATION_CLASS ProcessInformationClass, - LPVOID ProcessInformation, - DWORD ProcessInformationSize - ); - - - - - - -BOOL -__stdcall -GetSystemCpuSetInformation( - PSYSTEM_CPU_SET_INFORMATION Information, - ULONG BufferLength, - PULONG ReturnedLength, - HANDLE Process, - ULONG Flags - ); - - -BOOL -__stdcall -GetProcessDefaultCpuSets( - HANDLE Process, - PULONG CpuSetIds, - ULONG CpuSetIdCount, - PULONG RequiredIdCount - ); - - -BOOL -__stdcall -SetProcessDefaultCpuSets( - HANDLE Process, - const ULONG* CpuSetIds, - ULONG CpuSetIdCount - ); - - -BOOL -__stdcall -GetThreadSelectedCpuSets( - HANDLE Thread, - PULONG CpuSetIds, - ULONG CpuSetIdCount, - PULONG RequiredIdCount - ); - - -BOOL -__stdcall -SetThreadSelectedCpuSets( - HANDLE Thread, - const ULONG* CpuSetIds, - ULONG CpuSetIdCount - ); -# 1318 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CreateProcessAsUserA( - HANDLE hToken, - LPCSTR lpApplicationName, - LPSTR lpCommandLine, - LPSECURITY_ATTRIBUTES lpProcessAttributes, - LPSECURITY_ATTRIBUTES lpThreadAttributes, - BOOL bInheritHandles, - DWORD dwCreationFlags, - LPVOID lpEnvironment, - LPCSTR lpCurrentDirectory, - LPSTARTUPINFOA lpStartupInfo, - LPPROCESS_INFORMATION lpProcessInformation - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetProcessShutdownParameters( - LPDWORD lpdwLevel, - LPDWORD lpdwFlags - ); -# 1356 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -BOOL -__stdcall -GetProcessDefaultCpuSetMasks( - HANDLE Process, - PGROUP_AFFINITY CpuSetMasks, - USHORT CpuSetMaskCount, - PUSHORT RequiredMaskCount - ); - - -BOOL -__stdcall -SetProcessDefaultCpuSetMasks( - HANDLE Process, - PGROUP_AFFINITY CpuSetMasks, - USHORT CpuSetMaskCount - ); - - -BOOL -__stdcall -GetThreadSelectedCpuSetMasks( - HANDLE Thread, - PGROUP_AFFINITY CpuSetMasks, - USHORT CpuSetMaskCount, - PUSHORT RequiredMaskCount - ); - - -BOOL -__stdcall -SetThreadSelectedCpuSetMasks( - HANDLE Thread, - PGROUP_AFFINITY CpuSetMasks, - USHORT CpuSetMaskCount - ); -# 1402 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processthreadsapi.h" 3 -HRESULT -__stdcall -GetMachineTypeAttributes( - USHORT Machine, - MACHINE_ATTRIBUTES* MachineTypeAttributes - ); - - - - - -__declspec(dllimport) -HRESULT -__stdcall -SetThreadDescription( - HANDLE hThread, - PCWSTR lpThreadDescription - ); - -__declspec(dllimport) -HRESULT -__stdcall -GetThreadDescription( - HANDLE hThread, - PWSTR* ppszThreadDescription - ); -# 56 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 1 3 -# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -#pragma warning(disable: 4514) - -#pragma warning(disable: 4103) - - -#pragma warning(push) - -#pragma warning(disable: 4001) -#pragma warning(disable: 4201) -#pragma warning(disable: 4214) -# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -typedef struct _SYSTEM_INFO { - union { - DWORD dwOemId; - struct { - WORD wProcessorArchitecture; - WORD wReserved; - } ; - } ; - DWORD dwPageSize; - LPVOID lpMinimumApplicationAddress; - LPVOID lpMaximumApplicationAddress; - DWORD_PTR dwActiveProcessorMask; - DWORD dwNumberOfProcessors; - DWORD dwProcessorType; - DWORD dwAllocationGranularity; - WORD wProcessorLevel; - WORD wProcessorRevision; -} SYSTEM_INFO, *LPSYSTEM_INFO; - -typedef struct _MEMORYSTATUSEX { - DWORD dwLength; - DWORD dwMemoryLoad; - DWORDLONG ullTotalPhys; - DWORDLONG ullAvailPhys; - DWORDLONG ullTotalPageFile; - DWORDLONG ullAvailPageFile; - DWORDLONG ullTotalVirtual; - DWORDLONG ullAvailVirtual; - DWORDLONG ullAvailExtendedVirtual; -} MEMORYSTATUSEX, *LPMEMORYSTATUSEX; - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GlobalMemoryStatusEx( - LPMEMORYSTATUSEX lpBuffer - ); - -__declspec(dllimport) -void -__stdcall -GetSystemInfo( - LPSYSTEM_INFO lpSystemInfo - ); - -__declspec(dllimport) -void -__stdcall -GetSystemTime( - LPSYSTEMTIME lpSystemTime - ); - -__declspec(dllimport) -void -__stdcall -GetSystemTimeAsFileTime( - LPFILETIME lpSystemTimeAsFileTime - ); - -__declspec(dllimport) -void -__stdcall -GetLocalTime( - LPSYSTEMTIME lpSystemTime - ); - - - -__declspec(dllimport) -BOOL -__stdcall -IsUserCetAvailableInEnvironment( - DWORD UserCetEnvironment - ); -# 137 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetSystemLeapSecondInformation( - PBOOL Enabled, - PDWORD Flags - ); -# 153 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -__declspec(deprecated) - -__declspec(dllimport) - -DWORD -__stdcall -GetVersion( - void - ); - -__declspec(dllimport) -BOOL -__stdcall -SetLocalTime( - const SYSTEMTIME* lpSystemTime - ); -# 177 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetTickCount( - void - ); - - - -__declspec(dllimport) -ULONGLONG -__stdcall -GetTickCount64( - void - ); -# 201 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -GetSystemTimeAdjustment( - PDWORD lpTimeAdjustment, - PDWORD lpTimeIncrement, - PBOOL lpTimeAdjustmentDisabled - ); - - - - - - - -__declspec(dllimport) - -BOOL -__stdcall -GetSystemTimeAdjustmentPrecise( - PDWORD64 lpTimeAdjustment, - PDWORD64 lpTimeIncrement, - PBOOL lpTimeAdjustmentDisabled - ); - - - - - - - -__declspec(dllimport) - -UINT -__stdcall -GetSystemDirectoryA( - LPSTR lpBuffer, - UINT uSize - ); - -__declspec(dllimport) - -UINT -__stdcall -GetSystemDirectoryW( - LPWSTR lpBuffer, - UINT uSize - ); -# 262 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -__declspec(dllimport) - - -UINT -__stdcall -GetWindowsDirectoryA( - LPSTR lpBuffer, - UINT uSize - ); - -__declspec(dllimport) - - -UINT -__stdcall -GetWindowsDirectoryW( - LPWSTR lpBuffer, - UINT uSize - ); -# 293 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -__declspec(dllimport) - -UINT -__stdcall -GetSystemWindowsDirectoryA( - LPSTR lpBuffer, - UINT uSize - ); - -__declspec(dllimport) - -UINT -__stdcall -GetSystemWindowsDirectoryW( - LPWSTR lpBuffer, - UINT uSize - ); -# 322 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -typedef enum _COMPUTER_NAME_FORMAT { - ComputerNameNetBIOS, - ComputerNameDnsHostname, - ComputerNameDnsDomain, - ComputerNameDnsFullyQualified, - ComputerNamePhysicalNetBIOS, - ComputerNamePhysicalDnsHostname, - ComputerNamePhysicalDnsDomain, - ComputerNamePhysicalDnsFullyQualified, - ComputerNameMax -} COMPUTER_NAME_FORMAT ; - -__declspec(dllimport) - -BOOL -__stdcall -GetComputerNameExA( - COMPUTER_NAME_FORMAT NameType, - LPSTR lpBuffer, - LPDWORD nSize - ); - -__declspec(dllimport) - -BOOL -__stdcall -GetComputerNameExW( - COMPUTER_NAME_FORMAT NameType, - LPWSTR lpBuffer, - LPDWORD nSize - ); -# 365 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetComputerNameExW( - COMPUTER_NAME_FORMAT NameType, - LPCWSTR lpBuffer - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetSystemTime( - const SYSTEMTIME* lpSystemTime - ); - - - - - - - -__declspec(deprecated) - -__declspec(dllimport) - -BOOL -__stdcall -GetVersionExA( - LPOSVERSIONINFOA lpVersionInformation - ); -__declspec(deprecated) - -__declspec(dllimport) - -BOOL -__stdcall -GetVersionExW( - LPOSVERSIONINFOW lpVersionInformation - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetLogicalProcessorInformation( - PSYSTEM_LOGICAL_PROCESSOR_INFORMATION Buffer, - PDWORD ReturnedLength - ); - - - -__declspec(dllimport) -BOOL -__stdcall -GetLogicalProcessorInformationEx( - LOGICAL_PROCESSOR_RELATIONSHIP RelationshipType, - PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX Buffer, - PDWORD ReturnedLength - ); - - - - - -__declspec(dllimport) -void -__stdcall -GetNativeSystemInfo( - LPSYSTEM_INFO lpSystemInfo - ); - - - - - -__declspec(dllimport) -void -__stdcall -GetSystemTimePreciseAsFileTime( - LPFILETIME lpSystemTimeAsFileTime - ); -# 465 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetProductInfo( - DWORD dwOSMajorVersion, - DWORD dwOSMinorVersion, - DWORD dwSpMajorVersion, - DWORD dwSpMinorVersion, - PDWORD pdwReturnedProductType - ); -# 486 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -__declspec(dllimport) -ULONGLONG -__stdcall -VerSetConditionMask( - ULONGLONG ConditionMask, - ULONG TypeMask, - UCHAR Condition - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetOsSafeBootMode( - PDWORD Flags - ); -# 514 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -__declspec(dllimport) -UINT -__stdcall -EnumSystemFirmwareTables( - DWORD FirmwareTableProviderSignature, - PVOID pFirmwareTableEnumBuffer, - DWORD BufferSize - ); - -__declspec(dllimport) -UINT -__stdcall -GetSystemFirmwareTable( - DWORD FirmwareTableProviderSignature, - DWORD FirmwareTableID, - PVOID pFirmwareTableBuffer, - DWORD BufferSize - ); - - - - - - - -__declspec(dllimport) - -BOOL -__stdcall -DnsHostnameToComputerNameExW( - LPCWSTR Hostname, - LPWSTR ComputerName, - LPDWORD nSize - ); - -__declspec(dllimport) - -BOOL -__stdcall -GetPhysicallyInstalledSystemMemory( - PULONGLONG TotalMemoryInKilobytes - ); - - - -__declspec(dllimport) -BOOL -__stdcall -SetComputerNameEx2W( - COMPUTER_NAME_FORMAT NameType, - DWORD Flags, - LPCWSTR lpBuffer - ); - - - - - -__declspec(dllimport) - -BOOL -__stdcall -SetSystemTimeAdjustment( - DWORD dwTimeAdjustment, - BOOL bTimeAdjustmentDisabled - ); - -__declspec(dllimport) - -BOOL -__stdcall -SetSystemTimeAdjustmentPrecise( - DWORD64 dwTimeAdjustment, - BOOL bTimeAdjustmentDisabled - ); - -__declspec(dllimport) -BOOL -__stdcall -InstallELAMCertificateInfo( - HANDLE ELAMFile - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetProcessorSystemCycleTime( - USHORT Group, - PSYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION Buffer, - PDWORD ReturnedLength - ); -# 618 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetOsManufacturingMode( - PBOOL pbEnabled - ); -# 634 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -__declspec(dllimport) -HRESULT -__stdcall -GetIntegratedDisplaySize( - double* sizeInInches - ); -# 649 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetComputerNameA( - LPCSTR lpComputerName - ); - -__declspec(dllimport) -BOOL -__stdcall -SetComputerNameW( - LPCWSTR lpComputerName - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetComputerNameExA( - COMPUTER_NAME_FORMAT NameType, - LPCSTR lpBuffer - ); -# 689 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\sysinfoapi.h" 3 -#pragma warning(pop) -# 57 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 1 3 -# 26 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -#pragma warning(push) -#pragma warning(disable: 4668) -# 51 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -__declspec(dllimport) - - -LPVOID -__stdcall -VirtualAlloc( - LPVOID lpAddress, - SIZE_T dwSize, - DWORD flAllocationType, - DWORD flProtect - ); - -__declspec(dllimport) - -BOOL -__stdcall -VirtualProtect( - LPVOID lpAddress, - SIZE_T dwSize, - DWORD flNewProtect, - PDWORD lpflOldProtect - ); -# 89 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -VirtualFree( - LPVOID lpAddress, - SIZE_T dwSize, - DWORD dwFreeType - ); - -__declspec(dllimport) -SIZE_T -__stdcall -VirtualQuery( - LPCVOID lpAddress, - PMEMORY_BASIC_INFORMATION lpBuffer, - SIZE_T dwLength - ); - -__declspec(dllimport) - - -LPVOID -__stdcall -VirtualAllocEx( - HANDLE hProcess, - LPVOID lpAddress, - SIZE_T dwSize, - DWORD flAllocationType, - DWORD flProtect - ); - -__declspec(dllimport) - -BOOL -__stdcall -VirtualProtectEx( - HANDLE hProcess, - LPVOID lpAddress, - SIZE_T dwSize, - DWORD flNewProtect, - PDWORD lpflOldProtect - ); - - - - - - - -__declspec(dllimport) -SIZE_T -__stdcall -VirtualQueryEx( - HANDLE hProcess, - LPCVOID lpAddress, - PMEMORY_BASIC_INFORMATION lpBuffer, - SIZE_T dwLength - ); - -__declspec(dllimport) - -BOOL -__stdcall -ReadProcessMemory( - HANDLE hProcess, - LPCVOID lpBaseAddress, - LPVOID lpBuffer, - SIZE_T nSize, - SIZE_T* lpNumberOfBytesRead - ); - -__declspec(dllimport) - -BOOL -__stdcall -WriteProcessMemory( - HANDLE hProcess, - LPVOID lpBaseAddress, - LPCVOID lpBuffer, - SIZE_T nSize, - SIZE_T* lpNumberOfBytesWritten - ); - -__declspec(dllimport) - -HANDLE -__stdcall -CreateFileMappingW( - HANDLE hFile, - LPSECURITY_ATTRIBUTES lpFileMappingAttributes, - DWORD flProtect, - DWORD dwMaximumSizeHigh, - DWORD dwMaximumSizeLow, - LPCWSTR lpName - ); - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -OpenFileMappingW( - DWORD dwDesiredAccess, - BOOL bInheritHandle, - LPCWSTR lpName - ); - - - - - -__declspec(dllimport) - -LPVOID -__stdcall -MapViewOfFile( - HANDLE hFileMappingObject, - DWORD dwDesiredAccess, - DWORD dwFileOffsetHigh, - DWORD dwFileOffsetLow, - SIZE_T dwNumberOfBytesToMap - ); - -__declspec(dllimport) - -LPVOID -__stdcall -MapViewOfFileEx( - HANDLE hFileMappingObject, - DWORD dwDesiredAccess, - DWORD dwFileOffsetHigh, - DWORD dwFileOffsetLow, - SIZE_T dwNumberOfBytesToMap, - LPVOID lpBaseAddress - ); -# 246 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -VirtualFreeEx( - HANDLE hProcess, - LPVOID lpAddress, - SIZE_T dwSize, - DWORD dwFreeType - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -FlushViewOfFile( - LPCVOID lpBaseAddress, - SIZE_T dwNumberOfBytesToFlush - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -UnmapViewOfFile( - LPCVOID lpBaseAddress - ); - - - - - - - -__declspec(dllimport) -SIZE_T -__stdcall -GetLargePageMinimum( - void - ); - -__declspec(dllimport) -BOOL -__stdcall -GetProcessWorkingSetSize( - HANDLE hProcess, - PSIZE_T lpMinimumWorkingSetSize, - PSIZE_T lpMaximumWorkingSetSize - ); - -__declspec(dllimport) - -BOOL -__stdcall -GetProcessWorkingSetSizeEx( - HANDLE hProcess, - PSIZE_T lpMinimumWorkingSetSize, - PSIZE_T lpMaximumWorkingSetSize, - PDWORD Flags - ); - -__declspec(dllimport) -BOOL -__stdcall -SetProcessWorkingSetSize( - HANDLE hProcess, - SIZE_T dwMinimumWorkingSetSize, - SIZE_T dwMaximumWorkingSetSize - ); - -__declspec(dllimport) -BOOL -__stdcall -SetProcessWorkingSetSizeEx( - HANDLE hProcess, - SIZE_T dwMinimumWorkingSetSize, - SIZE_T dwMaximumWorkingSetSize, - DWORD Flags - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -VirtualLock( - LPVOID lpAddress, - SIZE_T dwSize - ); - -__declspec(dllimport) -BOOL -__stdcall -VirtualUnlock( - LPVOID lpAddress, - SIZE_T dwSize - ); - - - - - - - -__declspec(dllimport) - -UINT -__stdcall -GetWriteWatch( - DWORD dwFlags, - PVOID lpBaseAddress, - SIZE_T dwRegionSize, - PVOID* lpAddresses, - ULONG_PTR* lpdwCount, - LPDWORD lpdwGranularity - ); - -__declspec(dllimport) -UINT -__stdcall -ResetWriteWatch( - LPVOID lpBaseAddress, - SIZE_T dwRegionSize - ); -# 392 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -typedef enum _MEMORY_RESOURCE_NOTIFICATION_TYPE { - LowMemoryResourceNotification, - HighMemoryResourceNotification -} MEMORY_RESOURCE_NOTIFICATION_TYPE; - -__declspec(dllimport) - -HANDLE -__stdcall -CreateMemoryResourceNotification( - MEMORY_RESOURCE_NOTIFICATION_TYPE NotificationType - ); - -__declspec(dllimport) - -BOOL -__stdcall -QueryMemoryResourceNotification( - HANDLE ResourceNotificationHandle, - PBOOL ResourceState - ); -# 430 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -GetSystemFileCacheSize( - PSIZE_T lpMinimumFileCacheSize, - PSIZE_T lpMaximumFileCacheSize, - PDWORD lpFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -SetSystemFileCacheSize( - SIZE_T MinimumFileCacheSize, - SIZE_T MaximumFileCacheSize, - DWORD Flags - ); -# 459 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -CreateFileMappingNumaW( - HANDLE hFile, - LPSECURITY_ATTRIBUTES lpFileMappingAttributes, - DWORD flProtect, - DWORD dwMaximumSizeHigh, - DWORD dwMaximumSizeLow, - LPCWSTR lpName, - DWORD nndPreferred - ); -# 481 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -typedef struct _WIN32_MEMORY_RANGE_ENTRY { - PVOID VirtualAddress; - SIZE_T NumberOfBytes; -} WIN32_MEMORY_RANGE_ENTRY, *PWIN32_MEMORY_RANGE_ENTRY; - -__declspec(dllimport) -BOOL -__stdcall -PrefetchVirtualMemory( - HANDLE hProcess, - ULONG_PTR NumberOfEntries, - PWIN32_MEMORY_RANGE_ENTRY VirtualAddresses, - ULONG Flags - ); -# 506 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -CreateFileMappingFromApp( - HANDLE hFile, - PSECURITY_ATTRIBUTES SecurityAttributes, - ULONG PageProtection, - ULONG64 MaximumSize, - PCWSTR Name - ); - -__declspec(dllimport) - -PVOID -__stdcall -MapViewOfFileFromApp( - HANDLE hFileMappingObject, - ULONG DesiredAccess, - ULONG64 FileOffset, - SIZE_T NumberOfBytesToMap - ); - -__declspec(dllimport) -BOOL -__stdcall -UnmapViewOfFileEx( - PVOID BaseAddress, - ULONG UnmapFlags - ); -# 547 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -AllocateUserPhysicalPages( - HANDLE hProcess, - PULONG_PTR NumberOfPages, - PULONG_PTR PageArray - ); - -__declspec(dllimport) - -BOOL -__stdcall -FreeUserPhysicalPages( - HANDLE hProcess, - PULONG_PTR NumberOfPages, - PULONG_PTR PageArray - ); - -__declspec(dllimport) - -BOOL -__stdcall -MapUserPhysicalPages( - PVOID VirtualAddress, - ULONG_PTR NumberOfPages, - PULONG_PTR PageArray - ); - - - - - -__declspec(dllimport) - -BOOL -__stdcall -AllocateUserPhysicalPagesNuma( - HANDLE hProcess, - PULONG_PTR NumberOfPages, - PULONG_PTR PageArray, - DWORD nndPreferred - ); - -__declspec(dllimport) - -LPVOID -__stdcall -VirtualAllocExNuma( - HANDLE hProcess, - LPVOID lpAddress, - SIZE_T dwSize, - DWORD flAllocationType, - DWORD flProtect, - DWORD nndPreferred - ); - - - - - - - -__declspec(dllimport) - -BOOL -__stdcall -GetMemoryErrorHandlingCapabilities( - PULONG Capabilities - ); - - -typedef -void -__stdcall -BAD_MEMORY_CALLBACK_ROUTINE( - void - ); - -typedef BAD_MEMORY_CALLBACK_ROUTINE *PBAD_MEMORY_CALLBACK_ROUTINE; - -__declspec(dllimport) - -PVOID -__stdcall -RegisterBadMemoryNotification( - PBAD_MEMORY_CALLBACK_ROUTINE Callback - ); - -__declspec(dllimport) - -BOOL -__stdcall -UnregisterBadMemoryNotification( - PVOID RegistrationHandle - ); -# 663 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -typedef enum OFFER_PRIORITY { - VmOfferPriorityVeryLow = 1, - VmOfferPriorityLow, - VmOfferPriorityBelowNormal, - VmOfferPriorityNormal -} OFFER_PRIORITY; - -DWORD -__stdcall -OfferVirtualMemory( - PVOID VirtualAddress, - SIZE_T Size, - OFFER_PRIORITY Priority - ); - -DWORD -__stdcall -ReclaimVirtualMemory( - void const* VirtualAddress, - SIZE_T Size - ); - -DWORD -__stdcall -DiscardVirtualMemory( - PVOID VirtualAddress, - SIZE_T Size - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetProcessValidCallTargets( - HANDLE hProcess, - PVOID VirtualAddress, - SIZE_T RegionSize, - ULONG NumberOfOffsets, - PCFG_CALL_TARGET_INFO OffsetInformation - ); - -__declspec(dllimport) -BOOL -__stdcall -SetProcessValidCallTargetsForMappedView( - HANDLE Process, - PVOID VirtualAddress, - SIZE_T RegionSize, - ULONG NumberOfOffsets, - PCFG_CALL_TARGET_INFO OffsetInformation, - HANDLE Section, - ULONG64 ExpectedFileOffset - ); - -__declspec(dllimport) - - -PVOID -__stdcall -VirtualAllocFromApp( - PVOID BaseAddress, - SIZE_T Size, - ULONG AllocationType, - ULONG Protection - ); - -__declspec(dllimport) - -BOOL -__stdcall -VirtualProtectFromApp( - PVOID Address, - SIZE_T Size, - ULONG NewProtection, - PULONG OldProtection - ); - -__declspec(dllimport) - -HANDLE -__stdcall -OpenFileMappingFromApp( - ULONG DesiredAccess, - BOOL InheritHandle, - PCWSTR Name - ); -# 862 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -typedef enum WIN32_MEMORY_INFORMATION_CLASS { - MemoryRegionInfo -} WIN32_MEMORY_INFORMATION_CLASS; - - -#pragma warning(push) -#pragma warning(disable: 4201) -#pragma warning(disable: 4214) - - -typedef struct WIN32_MEMORY_REGION_INFORMATION { - PVOID AllocationBase; - ULONG AllocationProtect; - - union { - ULONG Flags; - - struct { - ULONG Private : 1; - ULONG MappedDataFile : 1; - ULONG MappedImage : 1; - ULONG MappedPageFile : 1; - ULONG MappedPhysical : 1; - ULONG DirectMapped : 1; - ULONG Reserved : 26; - } ; - } ; - - SIZE_T RegionSize; - SIZE_T CommitSize; -} WIN32_MEMORY_REGION_INFORMATION; - - -#pragma warning(pop) - - -__declspec(dllimport) - -BOOL -__stdcall -QueryVirtualMemoryInformation( - HANDLE Process, - const void* VirtualAddress, - WIN32_MEMORY_INFORMATION_CLASS MemoryInformationClass, - PVOID MemoryInformation, - SIZE_T MemoryInformationSize, - PSIZE_T ReturnSize - ); - - - - - -__declspec(dllimport) - -PVOID -__stdcall -MapViewOfFileNuma2( - HANDLE FileMappingHandle, - HANDLE ProcessHandle, - ULONG64 Offset, - PVOID BaseAddress, - SIZE_T ViewSize, - ULONG AllocationType, - ULONG PageProtection, - ULONG PreferredNode - ); - - - -__forceinline - -PVOID -MapViewOfFile2( - HANDLE FileMappingHandle, - HANDLE ProcessHandle, - ULONG64 Offset, - PVOID BaseAddress, - SIZE_T ViewSize, - ULONG AllocationType, - ULONG PageProtection - ) -{ - return MapViewOfFileNuma2(FileMappingHandle, - ProcessHandle, - Offset, - BaseAddress, - ViewSize, - AllocationType, - PageProtection, - ((DWORD) -1)); -} -# 965 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -UnmapViewOfFile2( - HANDLE Process, - PVOID BaseAddress, - ULONG UnmapFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -VirtualUnlockEx( - HANDLE Process, - LPVOID Address, - SIZE_T Size - ); -# 991 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -__declspec(dllimport) - - -PVOID -__stdcall -VirtualAlloc2( - HANDLE Process, - PVOID BaseAddress, - SIZE_T Size, - ULONG AllocationType, - ULONG PageProtection, - MEM_EXTENDED_PARAMETER* ExtendedParameters, - ULONG ParameterCount - ); - -__declspec(dllimport) - -PVOID -__stdcall -MapViewOfFile3( - HANDLE FileMapping, - HANDLE Process, - PVOID BaseAddress, - ULONG64 Offset, - SIZE_T ViewSize, - ULONG AllocationType, - ULONG PageProtection, - MEM_EXTENDED_PARAMETER* ExtendedParameters, - ULONG ParameterCount - ); - - - - - - - -__declspec(dllimport) - - -PVOID -__stdcall -VirtualAlloc2FromApp( - HANDLE Process, - PVOID BaseAddress, - SIZE_T Size, - ULONG AllocationType, - ULONG PageProtection, - MEM_EXTENDED_PARAMETER* ExtendedParameters, - ULONG ParameterCount - ); - -__declspec(dllimport) - -PVOID -__stdcall -MapViewOfFile3FromApp( - HANDLE FileMapping, - HANDLE Process, - PVOID BaseAddress, - ULONG64 Offset, - SIZE_T ViewSize, - ULONG AllocationType, - ULONG PageProtection, - MEM_EXTENDED_PARAMETER* ExtendedParameters, - ULONG ParameterCount - ); -# 1069 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -CreateFileMapping2( - HANDLE File, - SECURITY_ATTRIBUTES* SecurityAttributes, - ULONG DesiredAccess, - ULONG PageProtection, - ULONG AllocationAttributes, - ULONG64 MaximumSize, - PCWSTR Name, - MEM_EXTENDED_PARAMETER* ExtendedParameters, - ULONG ParameterCount - ); -# 1095 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\memoryapi.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -AllocateUserPhysicalPages2( - HANDLE ObjectHandle, - PULONG_PTR NumberOfPages, - PULONG_PTR PageArray, - PMEM_EXTENDED_PARAMETER ExtendedParameters, - ULONG ExtendedParameterCount - ); - -typedef enum WIN32_MEMORY_PARTITION_INFORMATION_CLASS { - MemoryPartitionInfo, - MemoryPartitionDedicatedMemoryInfo -} WIN32_MEMORY_PARTITION_INFORMATION_CLASS; - -typedef struct __declspec(align(8)) WIN32_MEMORY_PARTITION_INFORMATION { - ULONG Flags; - ULONG NumaNode; - ULONG Channel; - ULONG NumberOfNumaNodes; - ULONG64 ResidentAvailablePages; - ULONG64 CommittedPages; - ULONG64 CommitLimit; - ULONG64 PeakCommitment; - ULONG64 TotalNumberOfPages; - ULONG64 AvailablePages; - ULONG64 ZeroPages; - ULONG64 FreePages; - ULONG64 StandbyPages; - ULONG64 Reserved[16]; - ULONG64 MaximumCommitLimit; - ULONG64 Reserved2; - - ULONG PartitionId; - -} WIN32_MEMORY_PARTITION_INFORMATION; - -__declspec(dllimport) -HANDLE -__stdcall -OpenDedicatedMemoryPartition( - HANDLE Partition, - ULONG64 DedicatedMemoryTypeId, - ACCESS_MASK DesiredAccess, - BOOL InheritHandle - ); - -__declspec(dllimport) - -BOOL -__stdcall -QueryPartitionInformation( - HANDLE Partition, - WIN32_MEMORY_PARTITION_INFORMATION_CLASS PartitionInformationClass, - PVOID PartitionInformation, - ULONG PartitionInformationLength - ); - - - - - - - -#pragma warning(pop) -# 58 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\enclaveapi.h" 1 3 -# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\enclaveapi.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -IsEnclaveTypeSupported( - DWORD flEnclaveType - ); - -__declspec(dllimport) - - -LPVOID -__stdcall -CreateEnclave( - HANDLE hProcess, - LPVOID lpAddress, - SIZE_T dwSize, - SIZE_T dwInitialCommitment, - DWORD flEnclaveType, - LPCVOID lpEnclaveInformation, - DWORD dwInfoLength, - LPDWORD lpEnclaveError - ); - -__declspec(dllimport) - -BOOL -__stdcall -LoadEnclaveData( - HANDLE hProcess, - LPVOID lpAddress, - LPCVOID lpBuffer, - SIZE_T nSize, - DWORD flProtect, - LPCVOID lpPageInformation, - DWORD dwInfoLength, - PSIZE_T lpNumberOfBytesWritten, - LPDWORD lpEnclaveError - ); - -__declspec(dllimport) - -BOOL -__stdcall -InitializeEnclave( - HANDLE hProcess, - LPVOID lpAddress, - LPCVOID lpEnclaveInformation, - DWORD dwInfoLength, - LPDWORD lpEnclaveError - ); - - - - - - - -__declspec(dllimport) - -BOOL -__stdcall -LoadEnclaveImageA( - LPVOID lpEnclaveAddress, - LPCSTR lpImageName - ); - -__declspec(dllimport) - -BOOL -__stdcall -LoadEnclaveImageW( - LPVOID lpEnclaveAddress, - LPCWSTR lpImageName - ); - - - - - - -__declspec(dllimport) - -BOOL -__stdcall -CallEnclave( - LPENCLAVE_ROUTINE lpRoutine, - LPVOID lpParameter, - BOOL fWaitForThread, - LPVOID* lpReturnValue - ); - -__declspec(dllimport) - -BOOL -__stdcall -TerminateEnclave( - LPVOID lpAddress, - BOOL fWait - ); - -__declspec(dllimport) - -BOOL -__stdcall -DeleteEnclave( - LPVOID lpAddress - ); -# 59 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\threadpoollegacyapiset.h" 1 3 -# 32 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\threadpoollegacyapiset.h" 3 -__declspec(dllimport) -BOOL -__stdcall -QueueUserWorkItem( - LPTHREAD_START_ROUTINE Function, - PVOID Context, - ULONG Flags - ); - -__declspec(dllimport) - -BOOL -__stdcall -UnregisterWaitEx( - HANDLE WaitHandle, - HANDLE CompletionEvent - ); - - - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -CreateTimerQueue( - void - ); - -__declspec(dllimport) -BOOL -__stdcall -CreateTimerQueueTimer( - PHANDLE phNewTimer, - HANDLE TimerQueue, - WAITORTIMERCALLBACK Callback, - PVOID Parameter, - DWORD DueTime, - DWORD Period, - ULONG Flags - ); - -__declspec(dllimport) - -BOOL -__stdcall -ChangeTimerQueueTimer( - HANDLE TimerQueue, - HANDLE Timer, - ULONG DueTime, - ULONG Period - ); - -__declspec(dllimport) - -BOOL -__stdcall -DeleteTimerQueueTimer( - HANDLE TimerQueue, - HANDLE Timer, - HANDLE CompletionEvent - ); - -__declspec(dllimport) - -BOOL -__stdcall -DeleteTimerQueue( - HANDLE TimerQueue - ); - -__declspec(dllimport) - -BOOL -__stdcall -DeleteTimerQueueEx( - HANDLE TimerQueue, - HANDLE CompletionEvent - ); -# 60 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\threadpoolapiset.h" 1 3 -# 32 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\threadpoolapiset.h" 3 -typedef -void -(__stdcall *PTP_WIN32_IO_CALLBACK)( - PTP_CALLBACK_INSTANCE Instance, - PVOID Context, - PVOID Overlapped, - ULONG IoResult, - ULONG_PTR NumberOfBytesTransferred, - PTP_IO Io - ); - - - -__declspec(dllimport) - -PTP_POOL -__stdcall -CreateThreadpool( - PVOID reserved - ); - -__declspec(dllimport) -void -__stdcall -SetThreadpoolThreadMaximum( - PTP_POOL ptpp, - DWORD cthrdMost - ); - -__declspec(dllimport) -BOOL -__stdcall -SetThreadpoolThreadMinimum( - PTP_POOL ptpp, - DWORD cthrdMic - ); - -__declspec(dllimport) -BOOL -__stdcall -SetThreadpoolStackInformation( - PTP_POOL ptpp, - PTP_POOL_STACK_INFORMATION ptpsi - ); - -__declspec(dllimport) -BOOL -__stdcall -QueryThreadpoolStackInformation( - PTP_POOL ptpp, - PTP_POOL_STACK_INFORMATION ptpsi - ); - -__declspec(dllimport) -void -__stdcall -CloseThreadpool( - PTP_POOL ptpp - ); - -__declspec(dllimport) - -PTP_CLEANUP_GROUP -__stdcall -CreateThreadpoolCleanupGroup( - void - ); - -__declspec(dllimport) -void -__stdcall -CloseThreadpoolCleanupGroupMembers( - PTP_CLEANUP_GROUP ptpcg, - BOOL fCancelPendingCallbacks, - PVOID pvCleanupContext - ); - -__declspec(dllimport) -void -__stdcall -CloseThreadpoolCleanupGroup( - PTP_CLEANUP_GROUP ptpcg - ); - -__declspec(dllimport) -void -__stdcall -SetEventWhenCallbackReturns( - PTP_CALLBACK_INSTANCE pci, - HANDLE evt - ); - -__declspec(dllimport) -void -__stdcall -ReleaseSemaphoreWhenCallbackReturns( - PTP_CALLBACK_INSTANCE pci, - HANDLE sem, - DWORD crel - ); - -__declspec(dllimport) -void -__stdcall -ReleaseMutexWhenCallbackReturns( - PTP_CALLBACK_INSTANCE pci, - HANDLE mut - ); - -__declspec(dllimport) -void -__stdcall -LeaveCriticalSectionWhenCallbackReturns( - PTP_CALLBACK_INSTANCE pci, - PCRITICAL_SECTION pcs - ); - -__declspec(dllimport) -void -__stdcall -FreeLibraryWhenCallbackReturns( - PTP_CALLBACK_INSTANCE pci, - HMODULE mod - ); - -__declspec(dllimport) -BOOL -__stdcall -CallbackMayRunLong( - PTP_CALLBACK_INSTANCE pci - ); - -__declspec(dllimport) -void -__stdcall -DisassociateCurrentThreadFromCallback( - PTP_CALLBACK_INSTANCE pci - ); - -__declspec(dllimport) - -BOOL -__stdcall -TrySubmitThreadpoolCallback( - PTP_SIMPLE_CALLBACK pfns, - PVOID pv, - PTP_CALLBACK_ENVIRON pcbe - ); - -__declspec(dllimport) - -PTP_WORK -__stdcall -CreateThreadpoolWork( - PTP_WORK_CALLBACK pfnwk, - PVOID pv, - PTP_CALLBACK_ENVIRON pcbe - ); - -__declspec(dllimport) -void -__stdcall -SubmitThreadpoolWork( - PTP_WORK pwk - ); - -__declspec(dllimport) -void -__stdcall -WaitForThreadpoolWorkCallbacks( - PTP_WORK pwk, - BOOL fCancelPendingCallbacks - ); - -__declspec(dllimport) -void -__stdcall -CloseThreadpoolWork( - PTP_WORK pwk - ); - -__declspec(dllimport) - -PTP_TIMER -__stdcall -CreateThreadpoolTimer( - PTP_TIMER_CALLBACK pfnti, - PVOID pv, - PTP_CALLBACK_ENVIRON pcbe - ); - -__declspec(dllimport) -void -__stdcall -SetThreadpoolTimer( - PTP_TIMER pti, - PFILETIME pftDueTime, - DWORD msPeriod, - DWORD msWindowLength - ); - -__declspec(dllimport) -BOOL -__stdcall -IsThreadpoolTimerSet( - PTP_TIMER pti - ); - -__declspec(dllimport) -void -__stdcall -WaitForThreadpoolTimerCallbacks( - PTP_TIMER pti, - BOOL fCancelPendingCallbacks - ); - -__declspec(dllimport) -void -__stdcall -CloseThreadpoolTimer( - PTP_TIMER pti - ); - -__declspec(dllimport) - -PTP_WAIT -__stdcall -CreateThreadpoolWait( - PTP_WAIT_CALLBACK pfnwa, - PVOID pv, - PTP_CALLBACK_ENVIRON pcbe - ); - -__declspec(dllimport) -void -__stdcall -SetThreadpoolWait( - PTP_WAIT pwa, - HANDLE h, - PFILETIME pftTimeout - ); - -__declspec(dllimport) -void -__stdcall -WaitForThreadpoolWaitCallbacks( - PTP_WAIT pwa, - BOOL fCancelPendingCallbacks - ); - -__declspec(dllimport) -void -__stdcall -CloseThreadpoolWait( - PTP_WAIT pwa - ); - -__declspec(dllimport) - -PTP_IO -__stdcall -CreateThreadpoolIo( - HANDLE fl, - PTP_WIN32_IO_CALLBACK pfnio, - PVOID pv, - PTP_CALLBACK_ENVIRON pcbe - ); - -__declspec(dllimport) -void -__stdcall -StartThreadpoolIo( - PTP_IO pio - ); - -__declspec(dllimport) -void -__stdcall -CancelThreadpoolIo( - PTP_IO pio - ); - -__declspec(dllimport) -void -__stdcall -WaitForThreadpoolIoCallbacks( - PTP_IO pio, - BOOL fCancelPendingCallbacks - ); - -__declspec(dllimport) -void -__stdcall -CloseThreadpoolIo( - PTP_IO pio - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetThreadpoolTimerEx( - PTP_TIMER pti, - PFILETIME pftDueTime, - DWORD msPeriod, - DWORD msWindowLength - ); - -__declspec(dllimport) -BOOL -__stdcall -SetThreadpoolWaitEx( - PTP_WAIT pwa, - HANDLE h, - PFILETIME pftTimeout, - PVOID Reserved - ); -# 61 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\jobapi.h" 1 3 -# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\jobapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsProcessInJob( - HANDLE ProcessHandle, - HANDLE JobHandle, - PBOOL Result - ); -# 62 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\jobapi2.h" 1 3 -# 26 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\jobapi2.h" 3 -typedef struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION { - LONG64 MaxIops; - LONG64 MaxBandwidth; - LONG64 ReservationIops; - PCWSTR VolumeName; - ULONG BaseIoSize; - ULONG ControlFlags; -} JOBOBJECT_IO_RATE_CONTROL_INFORMATION; - -__declspec(dllimport) -HANDLE -__stdcall -CreateJobObjectW( - LPSECURITY_ATTRIBUTES lpJobAttributes, - LPCWSTR lpName - ); - -__declspec(dllimport) -void -__stdcall -FreeMemoryJobObject( - void* Buffer - ); - -__declspec(dllimport) -HANDLE -__stdcall -OpenJobObjectW( - DWORD dwDesiredAccess, - BOOL bInheritHandle, - LPCWSTR lpName - ); - -__declspec(dllimport) -BOOL -__stdcall -AssignProcessToJobObject( - HANDLE hJob, - HANDLE hProcess - ); - -__declspec(dllimport) -BOOL -__stdcall -TerminateJobObject( - HANDLE hJob, - UINT uExitCode - ); - -__declspec(dllimport) -BOOL -__stdcall -SetInformationJobObject( - HANDLE hJob, - JOBOBJECTINFOCLASS JobObjectInformationClass, - LPVOID lpJobObjectInformation, - DWORD cbJobObjectInformationLength - ); - -__declspec(dllimport) -DWORD -__stdcall -SetIoRateControlInformationJobObject( - HANDLE hJob, - JOBOBJECT_IO_RATE_CONTROL_INFORMATION* IoRateControlInfo - ); - -__declspec(dllimport) -BOOL -__stdcall -QueryInformationJobObject( - HANDLE hJob, - JOBOBJECTINFOCLASS JobObjectInformationClass, - LPVOID lpJobObjectInformation, - DWORD cbJobObjectInformationLength, - LPDWORD lpReturnLength - ); - -__declspec(dllimport) -DWORD -__stdcall -QueryIoRateControlInformationJobObject( - HANDLE hJob, - PCWSTR VolumeName, - JOBOBJECT_IO_RATE_CONTROL_INFORMATION** InfoBlocks, - ULONG* InfoBlockCount - ); -# 63 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 1 3 -# 32 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 3 -__declspec(dllimport) -BOOLEAN -__stdcall -Wow64EnableWow64FsRedirection( - BOOLEAN Wow64FsEnableRedirection - ); - -__declspec(dllimport) -BOOL -__stdcall -Wow64DisableWow64FsRedirection( - PVOID* OldValue - ); - -__declspec(dllimport) -BOOL -__stdcall -Wow64RevertWow64FsRedirection( - PVOID OlValue - ); -# 64 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsWow64Process( - HANDLE hProcess, - PBOOL Wow64Process - ); -# 84 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 3 -__declspec(dllimport) - - -UINT -__stdcall -GetSystemWow64DirectoryA( - LPSTR lpBuffer, - UINT uSize - ); - -__declspec(dllimport) - - -UINT -__stdcall -GetSystemWow64DirectoryW( - LPWSTR lpBuffer, - UINT uSize - ); -# 114 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 3 -__declspec(dllimport) -USHORT -__stdcall -Wow64SetThreadDefaultGuestMachine( - USHORT Machine - ); -# 131 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsWow64Process2( - HANDLE hProcess, - USHORT* pProcessMachine, - USHORT* pNativeMachine - ); -# 150 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 3 -__declspec(dllimport) - - -UINT -__stdcall -GetSystemWow64Directory2A( - LPSTR lpBuffer, - UINT uSize, - WORD ImageFileMachineType - ); - -__declspec(dllimport) - - -UINT -__stdcall -GetSystemWow64Directory2W( - LPWSTR lpBuffer, - UINT uSize, - WORD ImageFileMachineType - ); -# 181 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wow64apiset.h" 3 -__declspec(dllimport) - -HRESULT -__stdcall -IsWow64GuestMachineSupported( - USHORT WowGuestMachine, - BOOL* MachineIsSupported - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -Wow64GetThreadContext( - HANDLE hThread, - PWOW64_CONTEXT lpContext - ); - -__declspec(dllimport) -BOOL -__stdcall -Wow64SetThreadContext( - HANDLE hThread, - const WOW64_CONTEXT* lpContext - ); - -__declspec(dllimport) -DWORD -__stdcall -Wow64SuspendThread( - HANDLE hThread - ); -# 64 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 1 3 -# 40 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 -typedef struct tagENUMUILANG { - ULONG NumOfEnumUILang; - ULONG SizeOfEnumUIBuffer; - LANGID *pEnumUIBuffer; -} ENUMUILANG, *PENUMUILANG; - - - -typedef BOOL (__stdcall* ENUMRESLANGPROCA)( - HMODULE hModule, - LPCSTR lpType, - LPCSTR lpName, - WORD wLanguage, - LONG_PTR lParam); -typedef BOOL (__stdcall* ENUMRESLANGPROCW)( - HMODULE hModule, - LPCWSTR lpType, - LPCWSTR lpName, - WORD wLanguage, - LONG_PTR lParam); - - - - - - -typedef BOOL (__stdcall* ENUMRESNAMEPROCA)( - HMODULE hModule, - LPCSTR lpType, - LPSTR lpName, - LONG_PTR lParam); -typedef BOOL (__stdcall* ENUMRESNAMEPROCW)( - HMODULE hModule, - LPCWSTR lpType, - LPWSTR lpName, - LONG_PTR lParam); - - - - - - -typedef BOOL (__stdcall* ENUMRESTYPEPROCA)( - HMODULE hModule, - LPSTR lpType, - LONG_PTR lParam - ); -typedef BOOL (__stdcall* ENUMRESTYPEPROCW)( - HMODULE hModule, - LPWSTR lpType, - LONG_PTR lParam - ); -# 130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DisableThreadLibraryCalls( - HMODULE hLibModule - ); - -__declspec(dllimport) - -HRSRC -__stdcall -FindResourceExW( - HMODULE hModule, - LPCWSTR lpType, - LPCWSTR lpName, - WORD wLanguage - ); - - - - - - - -__declspec(dllimport) -int -__stdcall -FindStringOrdinal( - DWORD dwFindStringOrdinalFlags, - LPCWSTR lpStringSource, - int cchSource, - LPCWSTR lpStringValue, - int cchValue, - BOOL bIgnoreCase - ); - - - -__declspec(dllimport) -BOOL -__stdcall -FreeLibrary( - HMODULE hLibModule - ); - -__declspec(dllimport) -__declspec(noreturn) -void -__stdcall -FreeLibraryAndExitThread( - HMODULE hLibModule, - DWORD dwExitCode - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -FreeResource( - HGLOBAL hResData - ); - - - - - - - -__declspec(dllimport) - - -DWORD -__stdcall -GetModuleFileNameA( - HMODULE hModule, - LPSTR lpFilename, - DWORD nSize - ); - -__declspec(dllimport) - - -DWORD -__stdcall -GetModuleFileNameW( - HMODULE hModule, - LPWSTR lpFilename, - DWORD nSize - ); - - - - - - -__declspec(dllimport) - - -HMODULE -__stdcall -GetModuleHandleA( - LPCSTR lpModuleName - ); - -__declspec(dllimport) - - -HMODULE -__stdcall -GetModuleHandleW( - LPCWSTR lpModuleName - ); -# 259 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 -typedef -BOOL -(__stdcall* -PGET_MODULE_HANDLE_EXA)( - DWORD dwFlags, - LPCSTR lpModuleName, - HMODULE* phModule - ); -typedef -BOOL -(__stdcall* -PGET_MODULE_HANDLE_EXW)( - DWORD dwFlags, - LPCWSTR lpModuleName, - HMODULE* phModule - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetModuleHandleExA( - DWORD dwFlags, - LPCSTR lpModuleName, - HMODULE* phModule - ); - -__declspec(dllimport) -BOOL -__stdcall -GetModuleHandleExW( - DWORD dwFlags, - LPCWSTR lpModuleName, - HMODULE* phModule - ); -# 306 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 -__declspec(dllimport) -FARPROC -__stdcall -GetProcAddress( - HMODULE hModule, - LPCSTR lpProcName - ); - - - -typedef struct _REDIRECTION_FUNCTION_DESCRIPTOR { - PCSTR DllName; - PCSTR FunctionName; - PVOID RedirectionTarget; -} REDIRECTION_FUNCTION_DESCRIPTOR, *PREDIRECTION_FUNCTION_DESCRIPTOR; - -typedef const REDIRECTION_FUNCTION_DESCRIPTOR *PCREDIRECTION_FUNCTION_DESCRIPTOR; - -typedef struct _REDIRECTION_DESCRIPTOR { - ULONG Version; - ULONG FunctionCount; - PCREDIRECTION_FUNCTION_DESCRIPTOR Redirections; -} REDIRECTION_DESCRIPTOR, *PREDIRECTION_DESCRIPTOR; - -typedef const REDIRECTION_DESCRIPTOR *PCREDIRECTION_DESCRIPTOR; - -__declspec(dllimport) - -HMODULE -__stdcall -LoadLibraryExA( - LPCSTR lpLibFileName, - HANDLE hFile, - DWORD dwFlags - ); - -__declspec(dllimport) - -HMODULE -__stdcall -LoadLibraryExW( - LPCWSTR lpLibFileName, - HANDLE hFile, - DWORD dwFlags - ); -# 394 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 -__declspec(dllimport) - -HGLOBAL -__stdcall -LoadResource( - HMODULE hModule, - HRSRC hResInfo - ); - -__declspec(dllimport) -int -__stdcall -LoadStringA( - HINSTANCE hInstance, - UINT uID, - LPSTR lpBuffer, - int cchBufferMax - ); - -__declspec(dllimport) -int -__stdcall -LoadStringW( - HINSTANCE hInstance, - UINT uID, - LPWSTR lpBuffer, - int cchBufferMax - ); - - - - - - -__declspec(dllimport) -LPVOID -__stdcall -LockResource( - HGLOBAL hResData - ); - -__declspec(dllimport) -DWORD -__stdcall -SizeofResource( - HMODULE hModule, - HRSRC hResInfo - ); - - - - - - - -typedef PVOID DLL_DIRECTORY_COOKIE, *PDLL_DIRECTORY_COOKIE; - -__declspec(dllimport) -DLL_DIRECTORY_COOKIE -__stdcall -AddDllDirectory( - PCWSTR NewDirectory - ); - -__declspec(dllimport) -BOOL -__stdcall -RemoveDllDirectory( - DLL_DIRECTORY_COOKIE Cookie - ); - -__declspec(dllimport) -BOOL -__stdcall -SetDefaultDllDirectories( - DWORD DirectoryFlags - ); -# 480 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumResourceLanguagesExA( - HMODULE hModule, - LPCSTR lpType, - LPCSTR lpName, - ENUMRESLANGPROCA lpEnumFunc, - LONG_PTR lParam, - DWORD dwFlags, - LANGID LangId - ); - -__declspec(dllimport) -BOOL -__stdcall -EnumResourceLanguagesExW( - HMODULE hModule, - LPCWSTR lpType, - LPCWSTR lpName, - ENUMRESLANGPROCW lpEnumFunc, - LONG_PTR lParam, - DWORD dwFlags, - LANGID LangId - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -EnumResourceNamesExA( - HMODULE hModule, - LPCSTR lpType, - ENUMRESNAMEPROCA lpEnumFunc, - LONG_PTR lParam, - DWORD dwFlags, - LANGID LangId - ); - -__declspec(dllimport) -BOOL -__stdcall -EnumResourceNamesExW( - HMODULE hModule, - LPCWSTR lpType, - ENUMRESNAMEPROCW lpEnumFunc, - LONG_PTR lParam, - DWORD dwFlags, - LANGID LangId - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -EnumResourceTypesExA( - HMODULE hModule, - ENUMRESTYPEPROCA lpEnumFunc, - LONG_PTR lParam, - DWORD dwFlags, - LANGID LangId - ); - -__declspec(dllimport) -BOOL -__stdcall -EnumResourceTypesExW( - HMODULE hModule, - ENUMRESTYPEPROCW lpEnumFunc, - LONG_PTR lParam, - DWORD dwFlags, - LANGID LangId - ); -# 575 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 -__declspec(dllimport) - -HRSRC -__stdcall -FindResourceW( - HMODULE hModule, - LPCWSTR lpName, - LPCWSTR lpType - ); - - - - - -__declspec(dllimport) - -HMODULE -__stdcall -LoadLibraryA( - LPCSTR lpLibFileName - ); - -__declspec(dllimport) - -HMODULE -__stdcall -LoadLibraryW( - LPCWSTR lpLibFileName - ); -# 616 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\libloaderapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumResourceNamesW( - HMODULE hModule, - LPCWSTR lpType, - ENUMRESNAMEPROCW lpEnumFunc, - LONG_PTR lParam - ); - -__declspec(dllimport) -BOOL -__stdcall -EnumResourceNamesA( - HMODULE hModule, - LPCSTR lpType, - ENUMRESNAMEPROCA lpEnumFunc, - LONG_PTR lParam - ); -# 65 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 1 3 -# 33 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -AccessCheck( - PSECURITY_DESCRIPTOR pSecurityDescriptor, - HANDLE ClientToken, - DWORD DesiredAccess, - PGENERIC_MAPPING GenericMapping, - PPRIVILEGE_SET PrivilegeSet, - LPDWORD PrivilegeSetLength, - LPDWORD GrantedAccess, - LPBOOL AccessStatus - ); - -__declspec(dllimport) -BOOL -__stdcall -AccessCheckAndAuditAlarmW( - LPCWSTR SubsystemName, - LPVOID HandleId, - LPWSTR ObjectTypeName, - LPWSTR ObjectName, - PSECURITY_DESCRIPTOR SecurityDescriptor, - DWORD DesiredAccess, - PGENERIC_MAPPING GenericMapping, - BOOL ObjectCreation, - LPDWORD GrantedAccess, - LPBOOL AccessStatus, - LPBOOL pfGenerateOnClose - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -AccessCheckByType( - PSECURITY_DESCRIPTOR pSecurityDescriptor, - PSID PrincipalSelfSid, - HANDLE ClientToken, - DWORD DesiredAccess, - POBJECT_TYPE_LIST ObjectTypeList, - DWORD ObjectTypeListLength, - PGENERIC_MAPPING GenericMapping, - PPRIVILEGE_SET PrivilegeSet, - LPDWORD PrivilegeSetLength, - LPDWORD GrantedAccess, - LPBOOL AccessStatus - ); - -__declspec(dllimport) -BOOL -__stdcall -AccessCheckByTypeResultList( - PSECURITY_DESCRIPTOR pSecurityDescriptor, - PSID PrincipalSelfSid, - HANDLE ClientToken, - DWORD DesiredAccess, - POBJECT_TYPE_LIST ObjectTypeList, - DWORD ObjectTypeListLength, - PGENERIC_MAPPING GenericMapping, - PPRIVILEGE_SET PrivilegeSet, - LPDWORD PrivilegeSetLength, - LPDWORD GrantedAccessList, - LPDWORD AccessStatusList - ); - -__declspec(dllimport) -BOOL -__stdcall -AccessCheckByTypeAndAuditAlarmW( - LPCWSTR SubsystemName, - LPVOID HandleId, - LPCWSTR ObjectTypeName, - LPCWSTR ObjectName, - PSECURITY_DESCRIPTOR SecurityDescriptor, - PSID PrincipalSelfSid, - DWORD DesiredAccess, - AUDIT_EVENT_TYPE AuditType, - DWORD Flags, - POBJECT_TYPE_LIST ObjectTypeList, - DWORD ObjectTypeListLength, - PGENERIC_MAPPING GenericMapping, - BOOL ObjectCreation, - LPDWORD GrantedAccess, - LPBOOL AccessStatus, - LPBOOL pfGenerateOnClose - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -AccessCheckByTypeResultListAndAuditAlarmW( - LPCWSTR SubsystemName, - LPVOID HandleId, - LPCWSTR ObjectTypeName, - LPCWSTR ObjectName, - PSECURITY_DESCRIPTOR SecurityDescriptor, - PSID PrincipalSelfSid, - DWORD DesiredAccess, - AUDIT_EVENT_TYPE AuditType, - DWORD Flags, - POBJECT_TYPE_LIST ObjectTypeList, - DWORD ObjectTypeListLength, - PGENERIC_MAPPING GenericMapping, - BOOL ObjectCreation, - LPDWORD GrantedAccessList, - LPDWORD AccessStatusList, - LPBOOL pfGenerateOnClose - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -AccessCheckByTypeResultListAndAuditAlarmByHandleW( - LPCWSTR SubsystemName, - LPVOID HandleId, - HANDLE ClientToken, - LPCWSTR ObjectTypeName, - LPCWSTR ObjectName, - PSECURITY_DESCRIPTOR SecurityDescriptor, - PSID PrincipalSelfSid, - DWORD DesiredAccess, - AUDIT_EVENT_TYPE AuditType, - DWORD Flags, - POBJECT_TYPE_LIST ObjectTypeList, - DWORD ObjectTypeListLength, - PGENERIC_MAPPING GenericMapping, - BOOL ObjectCreation, - LPDWORD GrantedAccessList, - LPDWORD AccessStatusList, - LPBOOL pfGenerateOnClose - ); -# 187 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -AddAccessAllowedAce( - PACL pAcl, - DWORD dwAceRevision, - DWORD AccessMask, - PSID pSid - ); - -__declspec(dllimport) -BOOL -__stdcall -AddAccessAllowedAceEx( - PACL pAcl, - DWORD dwAceRevision, - DWORD AceFlags, - DWORD AccessMask, - PSID pSid - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -AddAccessAllowedObjectAce( - PACL pAcl, - DWORD dwAceRevision, - DWORD AceFlags, - DWORD AccessMask, - GUID* ObjectTypeGuid, - GUID* InheritedObjectTypeGuid, - PSID pSid - ); - -__declspec(dllimport) -BOOL -__stdcall -AddAccessDeniedAce( - PACL pAcl, - DWORD dwAceRevision, - DWORD AccessMask, - PSID pSid - ); - -__declspec(dllimport) -BOOL -__stdcall -AddAccessDeniedAceEx( - PACL pAcl, - DWORD dwAceRevision, - DWORD AceFlags, - DWORD AccessMask, - PSID pSid - ); - -__declspec(dllimport) -BOOL -__stdcall -AddAccessDeniedObjectAce( - PACL pAcl, - DWORD dwAceRevision, - DWORD AceFlags, - DWORD AccessMask, - GUID* ObjectTypeGuid, - GUID* InheritedObjectTypeGuid, - PSID pSid - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -AddAce( - PACL pAcl, - DWORD dwAceRevision, - DWORD dwStartingAceIndex, - LPVOID pAceList, - DWORD nAceListLength - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -AddAuditAccessAce( - PACL pAcl, - DWORD dwAceRevision, - DWORD dwAccessMask, - PSID pSid, - BOOL bAuditSuccess, - BOOL bAuditFailure - ); - -__declspec(dllimport) -BOOL -__stdcall -AddAuditAccessAceEx( - PACL pAcl, - DWORD dwAceRevision, - DWORD AceFlags, - DWORD dwAccessMask, - PSID pSid, - BOOL bAuditSuccess, - BOOL bAuditFailure - ); - -__declspec(dllimport) -BOOL -__stdcall -AddAuditAccessObjectAce( - PACL pAcl, - DWORD dwAceRevision, - DWORD AceFlags, - DWORD AccessMask, - GUID* ObjectTypeGuid, - GUID* InheritedObjectTypeGuid, - PSID pSid, - BOOL bAuditSuccess, - BOOL bAuditFailure - ); -# 332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -AddMandatoryAce( - PACL pAcl, - DWORD dwAceRevision, - DWORD AceFlags, - DWORD MandatoryPolicy, - PSID pLabelSid - ); -# 353 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -AddResourceAttributeAce( - PACL pAcl, - DWORD dwAceRevision, - DWORD AceFlags, - DWORD AccessMask, - PSID pSid, - PCLAIM_SECURITY_ATTRIBUTES_INFORMATION pAttributeInfo, - PDWORD pReturnLength - ); - -__declspec(dllimport) -BOOL -__stdcall -AddScopedPolicyIDAce( - PACL pAcl, - DWORD dwAceRevision, - DWORD AceFlags, - DWORD AccessMask, - PSID pSid - ); -# 385 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -AdjustTokenGroups( - HANDLE TokenHandle, - BOOL ResetToDefault, - PTOKEN_GROUPS NewState, - DWORD BufferLength, - PTOKEN_GROUPS PreviousState, - PDWORD ReturnLength - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -AdjustTokenPrivileges( - HANDLE TokenHandle, - BOOL DisableAllPrivileges, - PTOKEN_PRIVILEGES NewState, - DWORD BufferLength, - PTOKEN_PRIVILEGES PreviousState, - PDWORD ReturnLength - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -AllocateAndInitializeSid( - PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority, - BYTE nSubAuthorityCount, - DWORD nSubAuthority0, - DWORD nSubAuthority1, - DWORD nSubAuthority2, - DWORD nSubAuthority3, - DWORD nSubAuthority4, - DWORD nSubAuthority5, - DWORD nSubAuthority6, - DWORD nSubAuthority7, - PSID* pSid - ); - -__declspec(dllimport) -BOOL -__stdcall -AllocateLocallyUniqueId( - PLUID Luid - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -AreAllAccessesGranted( - DWORD GrantedAccess, - DWORD DesiredAccess - ); - -__declspec(dllimport) -BOOL -__stdcall -AreAnyAccessesGranted( - DWORD GrantedAccess, - DWORD DesiredAccess - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CheckTokenMembership( - HANDLE TokenHandle, - PSID SidToCheck, - PBOOL IsMember - ); -# 490 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CheckTokenCapability( - HANDLE TokenHandle, - PSID CapabilitySidToCheck, - PBOOL HasCapability - ); - -__declspec(dllimport) -BOOL -__stdcall -GetAppContainerAce( - PACL Acl, - DWORD StartingAceIndex, - PVOID* AppContainerAce, - DWORD* AppContainerAceIndex - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CheckTokenMembershipEx( - HANDLE TokenHandle, - PSID SidToCheck, - DWORD Flags, - PBOOL IsMember - ); -# 533 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -ConvertToAutoInheritPrivateObjectSecurity( - PSECURITY_DESCRIPTOR ParentDescriptor, - PSECURITY_DESCRIPTOR CurrentSecurityDescriptor, - PSECURITY_DESCRIPTOR* NewSecurityDescriptor, - GUID* ObjectType, - BOOLEAN IsDirectoryObject, - PGENERIC_MAPPING GenericMapping - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CopySid( - DWORD nDestinationSidLength, - PSID pDestinationSid, - PSID pSourceSid - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CreatePrivateObjectSecurity( - PSECURITY_DESCRIPTOR ParentDescriptor, - PSECURITY_DESCRIPTOR CreatorDescriptor, - PSECURITY_DESCRIPTOR* NewDescriptor, - BOOL IsDirectoryObject, - HANDLE Token, - PGENERIC_MAPPING GenericMapping - ); - -__declspec(dllimport) -BOOL -__stdcall -CreatePrivateObjectSecurityEx( - PSECURITY_DESCRIPTOR ParentDescriptor, - PSECURITY_DESCRIPTOR CreatorDescriptor, - PSECURITY_DESCRIPTOR* NewDescriptor, - GUID* ObjectType, - BOOL IsContainerObject, - ULONG AutoInheritFlags, - HANDLE Token, - PGENERIC_MAPPING GenericMapping - ); - -__declspec(dllimport) -BOOL -__stdcall -CreatePrivateObjectSecurityWithMultipleInheritance( - PSECURITY_DESCRIPTOR ParentDescriptor, - PSECURITY_DESCRIPTOR CreatorDescriptor, - PSECURITY_DESCRIPTOR* NewDescriptor, - GUID** ObjectTypes, - ULONG GuidCount, - BOOL IsContainerObject, - ULONG AutoInheritFlags, - HANDLE Token, - PGENERIC_MAPPING GenericMapping - ); - -__declspec(dllimport) -BOOL -__stdcall -CreateRestrictedToken( - HANDLE ExistingTokenHandle, - DWORD Flags, - DWORD DisableSidCount, - PSID_AND_ATTRIBUTES SidsToDisable, - DWORD DeletePrivilegeCount, - PLUID_AND_ATTRIBUTES PrivilegesToDelete, - DWORD RestrictedSidCount, - PSID_AND_ATTRIBUTES SidsToRestrict, - PHANDLE NewTokenHandle - ); -# 630 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CreateWellKnownSid( - WELL_KNOWN_SID_TYPE WellKnownSidType, - PSID DomainSid, - PSID pSid, - DWORD* cbSid - ); - -__declspec(dllimport) - -BOOL -__stdcall -EqualDomainSid( - PSID pSid1, - PSID pSid2, - BOOL* pfEqual - ); - - - -__declspec(dllimport) -BOOL -__stdcall -DeleteAce( - PACL pAcl, - DWORD dwAceIndex - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -DestroyPrivateObjectSecurity( - PSECURITY_DESCRIPTOR* ObjectDescriptor - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -DuplicateToken( - HANDLE ExistingTokenHandle, - SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, - PHANDLE DuplicateTokenHandle - ); - -__declspec(dllimport) -BOOL -__stdcall -DuplicateTokenEx( - HANDLE hExistingToken, - DWORD dwDesiredAccess, - LPSECURITY_ATTRIBUTES lpTokenAttributes, - SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, - TOKEN_TYPE TokenType, - PHANDLE phNewToken - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -EqualPrefixSid( - PSID pSid1, - PSID pSid2 - ); - -__declspec(dllimport) -BOOL -__stdcall -EqualSid( - PSID pSid1, - PSID pSid2 - ); - -__declspec(dllimport) -BOOL -__stdcall -FindFirstFreeAce( - PACL pAcl, - LPVOID* pAce - ); - - - - - - - -__declspec(dllimport) -PVOID -__stdcall -FreeSid( - PSID pSid - ); - -__declspec(dllimport) -BOOL -__stdcall -GetAce( - PACL pAcl, - DWORD dwAceIndex, - LPVOID* pAce - ); - -__declspec(dllimport) -BOOL -__stdcall -GetAclInformation( - PACL pAcl, - LPVOID pAclInformation, - DWORD nAclInformationLength, - ACL_INFORMATION_CLASS dwAclInformationClass - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetFileSecurityW( - LPCWSTR lpFileName, - SECURITY_INFORMATION RequestedInformation, - PSECURITY_DESCRIPTOR pSecurityDescriptor, - DWORD nLength, - LPDWORD lpnLengthNeeded - ); -# 790 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetKernelObjectSecurity( - HANDLE Handle, - SECURITY_INFORMATION RequestedInformation, - PSECURITY_DESCRIPTOR pSecurityDescriptor, - DWORD nLength, - LPDWORD lpnLengthNeeded - ); - -__declspec(dllimport) - - -DWORD -__stdcall -GetLengthSid( - PSID pSid - ); - - - - - - - -__declspec(dllimport) - -BOOL -__stdcall -GetPrivateObjectSecurity( - PSECURITY_DESCRIPTOR ObjectDescriptor, - SECURITY_INFORMATION SecurityInformation, - PSECURITY_DESCRIPTOR ResultantDescriptor, - DWORD DescriptorLength, - PDWORD ReturnLength - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetSecurityDescriptorControl( - PSECURITY_DESCRIPTOR pSecurityDescriptor, - PSECURITY_DESCRIPTOR_CONTROL pControl, - LPDWORD lpdwRevision - ); - -__declspec(dllimport) -BOOL -__stdcall -GetSecurityDescriptorDacl( - PSECURITY_DESCRIPTOR pSecurityDescriptor, - LPBOOL lpbDaclPresent, - PACL* pDacl, - LPBOOL lpbDaclDefaulted - ); - -__declspec(dllimport) -BOOL -__stdcall -GetSecurityDescriptorGroup( - PSECURITY_DESCRIPTOR pSecurityDescriptor, - PSID* pGroup, - LPBOOL lpbGroupDefaulted - ); - -__declspec(dllimport) -DWORD -__stdcall -GetSecurityDescriptorLength( - PSECURITY_DESCRIPTOR pSecurityDescriptor - ); - -__declspec(dllimport) -BOOL -__stdcall -GetSecurityDescriptorOwner( - PSECURITY_DESCRIPTOR pSecurityDescriptor, - PSID* pOwner, - LPBOOL lpbOwnerDefaulted - ); - -__declspec(dllimport) -DWORD -__stdcall -GetSecurityDescriptorRMControl( - PSECURITY_DESCRIPTOR SecurityDescriptor, - PUCHAR RMControl - ); - -__declspec(dllimport) -BOOL -__stdcall -GetSecurityDescriptorSacl( - PSECURITY_DESCRIPTOR pSecurityDescriptor, - LPBOOL lpbSaclPresent, - PACL* pSacl, - LPBOOL lpbSaclDefaulted - ); - -__declspec(dllimport) -PSID_IDENTIFIER_AUTHORITY -__stdcall -GetSidIdentifierAuthority( - PSID pSid - ); - -__declspec(dllimport) -DWORD -__stdcall -GetSidLengthRequired( - UCHAR nSubAuthorityCount - ); - -__declspec(dllimport) -PDWORD -__stdcall -GetSidSubAuthority( - PSID pSid, - DWORD nSubAuthority - ); - -__declspec(dllimport) -PUCHAR -__stdcall -GetSidSubAuthorityCount( - PSID pSid - ); - -__declspec(dllimport) -BOOL -__stdcall -GetTokenInformation( - HANDLE TokenHandle, - TOKEN_INFORMATION_CLASS TokenInformationClass, - LPVOID TokenInformation, - DWORD TokenInformationLength, - PDWORD ReturnLength - ); - - - -__declspec(dllimport) - -BOOL -__stdcall -GetWindowsAccountDomainSid( - PSID pSid, - PSID pDomainSid, - DWORD* cbDomainSid - ); -# 956 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -ImpersonateAnonymousToken( - HANDLE ThreadHandle - ); - - -__declspec(dllimport) -BOOL -__stdcall -ImpersonateLoggedOnUser( - HANDLE hToken - ); - - -__declspec(dllimport) -BOOL -__stdcall -ImpersonateSelf( - SECURITY_IMPERSONATION_LEVEL ImpersonationLevel - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -InitializeAcl( - PACL pAcl, - DWORD nAclLength, - DWORD dwAclRevision - ); - -__declspec(dllimport) -BOOL -__stdcall -InitializeSecurityDescriptor( - PSECURITY_DESCRIPTOR pSecurityDescriptor, - DWORD dwRevision - ); - -__declspec(dllimport) -BOOL -__stdcall -InitializeSid( - PSID Sid, - PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority, - BYTE nSubAuthorityCount - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -IsTokenRestricted( - HANDLE TokenHandle - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -IsValidAcl( - PACL pAcl - ); - -__declspec(dllimport) -BOOL -__stdcall -IsValidSecurityDescriptor( - PSECURITY_DESCRIPTOR pSecurityDescriptor - ); - -__declspec(dllimport) -BOOL -__stdcall -IsValidSid( - PSID pSid - ); - - - -__declspec(dllimport) -BOOL -__stdcall -IsWellKnownSid( - PSID pSid, - WELL_KNOWN_SID_TYPE WellKnownSidType - ); - - - -__declspec(dllimport) - -BOOL -__stdcall -MakeAbsoluteSD( - PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor, - PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor, - LPDWORD lpdwAbsoluteSecurityDescriptorSize, - PACL pDacl, - LPDWORD lpdwDaclSize, - PACL pSacl, - LPDWORD lpdwSaclSize, - PSID pOwner, - LPDWORD lpdwOwnerSize, - PSID pPrimaryGroup, - LPDWORD lpdwPrimaryGroupSize - ); - -__declspec(dllimport) - -BOOL -__stdcall -MakeSelfRelativeSD( - PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor, - PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor, - LPDWORD lpdwBufferLength - ); - - - - - - - -__declspec(dllimport) -void -__stdcall -MapGenericMask( - PDWORD AccessMask, - PGENERIC_MAPPING GenericMapping - ); - -__declspec(dllimport) -BOOL -__stdcall -ObjectCloseAuditAlarmW( - LPCWSTR SubsystemName, - LPVOID HandleId, - BOOL GenerateOnClose - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -ObjectDeleteAuditAlarmW( - LPCWSTR SubsystemName, - LPVOID HandleId, - BOOL GenerateOnClose - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -ObjectOpenAuditAlarmW( - LPCWSTR SubsystemName, - LPVOID HandleId, - LPWSTR ObjectTypeName, - LPWSTR ObjectName, - PSECURITY_DESCRIPTOR pSecurityDescriptor, - HANDLE ClientToken, - DWORD DesiredAccess, - DWORD GrantedAccess, - PPRIVILEGE_SET Privileges, - BOOL ObjectCreation, - BOOL AccessGranted, - LPBOOL GenerateOnClose - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -ObjectPrivilegeAuditAlarmW( - LPCWSTR SubsystemName, - LPVOID HandleId, - HANDLE ClientToken, - DWORD DesiredAccess, - PPRIVILEGE_SET Privileges, - BOOL AccessGranted - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -PrivilegeCheck( - HANDLE ClientToken, - PPRIVILEGE_SET RequiredPrivileges, - LPBOOL pfResult - ); - -__declspec(dllimport) -BOOL -__stdcall -PrivilegedServiceAuditAlarmW( - LPCWSTR SubsystemName, - LPCWSTR ServiceName, - HANDLE ClientToken, - PPRIVILEGE_SET Privileges, - BOOL AccessGranted - ); - - - - - - - -__declspec(dllimport) -void -__stdcall -QuerySecurityAccessMask( - SECURITY_INFORMATION SecurityInformation, - LPDWORD DesiredAccess - ); - - - -__declspec(dllimport) -BOOL -__stdcall -RevertToSelf( - void - ); - -__declspec(dllimport) -BOOL -__stdcall -SetAclInformation( - PACL pAcl, - LPVOID pAclInformation, - DWORD nAclInformationLength, - ACL_INFORMATION_CLASS dwAclInformationClass - ); - -__declspec(dllimport) -BOOL -__stdcall -SetFileSecurityW( - LPCWSTR lpFileName, - SECURITY_INFORMATION SecurityInformation, - PSECURITY_DESCRIPTOR pSecurityDescriptor - ); -# 1240 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetKernelObjectSecurity( - HANDLE Handle, - SECURITY_INFORMATION SecurityInformation, - PSECURITY_DESCRIPTOR SecurityDescriptor - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetPrivateObjectSecurity( - SECURITY_INFORMATION SecurityInformation, - PSECURITY_DESCRIPTOR ModificationDescriptor, - PSECURITY_DESCRIPTOR* ObjectsSecurityDescriptor, - PGENERIC_MAPPING GenericMapping, - HANDLE Token - ); - -__declspec(dllimport) -BOOL -__stdcall -SetPrivateObjectSecurityEx( - SECURITY_INFORMATION SecurityInformation, - PSECURITY_DESCRIPTOR ModificationDescriptor, - PSECURITY_DESCRIPTOR* ObjectsSecurityDescriptor, - ULONG AutoInheritFlags, - PGENERIC_MAPPING GenericMapping, - HANDLE Token - ); - - - -__declspec(dllimport) -void -__stdcall -SetSecurityAccessMask( - SECURITY_INFORMATION SecurityInformation, - LPDWORD DesiredAccess - ); -# 1296 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetSecurityDescriptorControl( - PSECURITY_DESCRIPTOR pSecurityDescriptor, - SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest, - SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet - ); - -__declspec(dllimport) -BOOL -__stdcall -SetSecurityDescriptorDacl( - PSECURITY_DESCRIPTOR pSecurityDescriptor, - BOOL bDaclPresent, - PACL pDacl, - BOOL bDaclDefaulted - ); - -__declspec(dllimport) -BOOL -__stdcall -SetSecurityDescriptorGroup( - PSECURITY_DESCRIPTOR pSecurityDescriptor, - PSID pGroup, - BOOL bGroupDefaulted - ); - -__declspec(dllimport) -BOOL -__stdcall -SetSecurityDescriptorOwner( - PSECURITY_DESCRIPTOR pSecurityDescriptor, - PSID pOwner, - BOOL bOwnerDefaulted - ); - -__declspec(dllimport) -DWORD -__stdcall -SetSecurityDescriptorRMControl( - PSECURITY_DESCRIPTOR SecurityDescriptor, - PUCHAR RMControl - ); - -__declspec(dllimport) -BOOL -__stdcall -SetSecurityDescriptorSacl( - PSECURITY_DESCRIPTOR pSecurityDescriptor, - BOOL bSaclPresent, - PACL pSacl, - BOOL bSaclDefaulted - ); - -__declspec(dllimport) -BOOL -__stdcall -SetTokenInformation( - HANDLE TokenHandle, - TOKEN_INFORMATION_CLASS TokenInformationClass, - LPVOID TokenInformation, - DWORD TokenInformationLength - ); -# 1369 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetCachedSigningLevel( - PHANDLE SourceFiles, - ULONG SourceFileCount, - ULONG Flags, - HANDLE TargetFile - ); - -__declspec(dllimport) -BOOL -__stdcall -GetCachedSigningLevel( - HANDLE File, - PULONG Flags, - PULONG SigningLevel, - PUCHAR Thumbprint, - PULONG ThumbprintSize, - PULONG ThumbprintAlgorithm - ); -# 1400 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) -LONG -__stdcall -CveEventWrite( - PCWSTR CveId, - PCWSTR AdditionalDetails - ); -# 1417 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securitybaseapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DeriveCapabilitySidsFromName( - LPCWSTR CapName, - PSID** CapabilityGroupSids, - DWORD* CapabilityGroupSidCount, - PSID** CapabilitySids, - DWORD* CapabilitySidCount - ); -# 66 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\namespaceapi.h" 1 3 -# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\namespaceapi.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -CreatePrivateNamespaceW( - LPSECURITY_ATTRIBUTES lpPrivateNamespaceAttributes, - LPVOID lpBoundaryDescriptor, - LPCWSTR lpAliasPrefix - ); - -__declspec(dllimport) -HANDLE -__stdcall -OpenPrivateNamespaceW( - LPVOID lpBoundaryDescriptor, - LPCWSTR lpAliasPrefix - ); - -__declspec(dllimport) -BOOLEAN -__stdcall -ClosePrivateNamespace( - HANDLE Handle, - ULONG Flags - ); - -__declspec(dllimport) -HANDLE -__stdcall -CreateBoundaryDescriptorW( - LPCWSTR Name, - ULONG Flags - ); - -__declspec(dllimport) -BOOL -__stdcall -AddSIDToBoundaryDescriptor( - HANDLE* BoundaryDescriptor, - PSID RequiredSid - ); - -__declspec(dllimport) -void -__stdcall -DeleteBoundaryDescriptor( - HANDLE BoundaryDescriptor - ); -# 67 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\systemtopologyapi.h" 1 3 -# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\systemtopologyapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetNumaHighestNodeNumber( - PULONG HighestNodeNumber - ); -# 43 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\systemtopologyapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetNumaNodeProcessorMaskEx( - USHORT Node, - PGROUP_AFFINITY ProcessorMask - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetNumaNodeProcessorMask2( - USHORT NodeNumber, - PGROUP_AFFINITY ProcessorMasks, - USHORT ProcessorMaskCount, - PUSHORT RequiredMaskCount - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetNumaProximityNodeEx( - ULONG ProximityId, - PUSHORT NodeNumber - ); -# 68 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processtopologyapi.h" 1 3 -# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processtopologyapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetProcessGroupAffinity( - HANDLE hProcess, - PUSHORT GroupCount, - PUSHORT GroupArray - ); -# 49 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\processtopologyapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetThreadGroupAffinity( - HANDLE hThread, - PGROUP_AFFINITY GroupAffinity - ); - -__declspec(dllimport) -BOOL -__stdcall -SetThreadGroupAffinity( - HANDLE hThread, - const GROUP_AFFINITY* GroupAffinity, - PGROUP_AFFINITY PreviousGroupAffinity - ); -# 69 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securityappcontainer.h" 1 3 -# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\securityappcontainer.h" 3 -BOOL -__stdcall -GetAppContainerNamedObjectPath( - HANDLE Token, - PSID AppContainerSid, - ULONG ObjectPathLength, - LPWSTR ObjectPath, - PULONG ReturnLength - ); -# 70 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\realtimeapiset.h" 1 3 -# 29 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\realtimeapiset.h" 3 -__declspec(dllimport) -BOOL -__stdcall -QueryThreadCycleTime( - HANDLE ThreadHandle, - PULONG64 CycleTime - ); - -__declspec(dllimport) -BOOL -__stdcall -QueryProcessCycleTime( - HANDLE ProcessHandle, - PULONG64 CycleTime - ); - -__declspec(dllimport) -BOOL -__stdcall -QueryIdleProcessorCycleTime( - PULONG BufferLength, - PULONG64 ProcessorIdleCycleTime - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -QueryIdleProcessorCycleTimeEx( - USHORT Group, - PULONG BufferLength, - PULONG64 ProcessorIdleCycleTime - ); -# 74 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\realtimeapiset.h" 3 -__declspec(dllimport) -void -__stdcall -QueryInterruptTimePrecise( - PULONGLONG lpInterruptTimePrecise - ); - -__declspec(dllimport) -void -__stdcall -QueryUnbiasedInterruptTimePrecise( - PULONGLONG lpUnbiasedInterruptTimePrecise - ); - -__declspec(dllimport) -void -__stdcall -QueryInterruptTime( - PULONGLONG lpInterruptTime - ); - - - -__declspec(dllimport) -BOOL -__stdcall -QueryUnbiasedInterruptTime( - PULONGLONG UnbiasedTime - ); - - - -__declspec(dllimport) -HRESULT -__stdcall -QueryAuxiliaryCounterFrequency( - PULONGLONG lpAuxiliaryCounterFrequency - ); - -__declspec(dllimport) -HRESULT -__stdcall -ConvertAuxiliaryCounterToPerformanceCounter( - ULONGLONG ullAuxiliaryCounterValue, - PULONGLONG lpPerformanceCounterValue, - PULONGLONG lpConversionError - ); - -__declspec(dllimport) -HRESULT -__stdcall -ConvertPerformanceCounterToAuxiliaryCounter( - ULONGLONG ullPerformanceCounterValue, - PULONGLONG lpAuxiliaryCounterValue, - PULONGLONG lpConversionError - ); -# 71 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 163 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef enum FILE_WRITE_FLAGS -{ - FILE_WRITE_FLAGS_NONE = 0, - FILE_WRITE_FLAGS_WRITE_THROUGH = 0x000000001, -} FILE_WRITE_FLAGS; - - -typedef enum FILE_FLUSH_MODE -{ - FILE_FLUSH_DEFAULT = 0, - FILE_FLUSH_DATA, - FILE_FLUSH_MIN_METADATA, - FILE_FLUSH_NO_SYNC, -} FILE_FLUSH_MODE; -# 350 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef void (__stdcall *PFIBER_START_ROUTINE)( - LPVOID lpFiberParameter - ); -typedef PFIBER_START_ROUTINE LPFIBER_START_ROUTINE; - -typedef LPVOID (__stdcall *PFIBER_CALLOUT_ROUTINE)( - LPVOID lpParameter - ); -# 376 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef LPVOID LPLDT_ENTRY; -# 479 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct _COMMPROP { - WORD wPacketLength; - WORD wPacketVersion; - DWORD dwServiceMask; - DWORD dwReserved1; - DWORD dwMaxTxQueue; - DWORD dwMaxRxQueue; - DWORD dwMaxBaud; - DWORD dwProvSubType; - DWORD dwProvCapabilities; - DWORD dwSettableParams; - DWORD dwSettableBaud; - WORD wSettableData; - WORD wSettableStopParity; - DWORD dwCurrentTxQueue; - DWORD dwCurrentRxQueue; - DWORD dwProvSpec1; - DWORD dwProvSpec2; - WCHAR wcProvChar[1]; -} COMMPROP,*LPCOMMPROP; - - - - - - - -typedef struct _COMSTAT { - DWORD fCtsHold : 1; - DWORD fDsrHold : 1; - DWORD fRlsdHold : 1; - DWORD fXoffHold : 1; - DWORD fXoffSent : 1; - DWORD fEof : 1; - DWORD fTxim : 1; - DWORD fReserved : 25; - DWORD cbInQue; - DWORD cbOutQue; -} COMSTAT, *LPCOMSTAT; -# 534 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct _DCB { - DWORD DCBlength; - DWORD BaudRate; - DWORD fBinary: 1; - DWORD fParity: 1; - DWORD fOutxCtsFlow:1; - DWORD fOutxDsrFlow:1; - DWORD fDtrControl:2; - DWORD fDsrSensitivity:1; - DWORD fTXContinueOnXoff: 1; - DWORD fOutX: 1; - DWORD fInX: 1; - DWORD fErrorChar: 1; - DWORD fNull: 1; - DWORD fRtsControl:2; - DWORD fAbortOnError:1; - DWORD fDummy2:17; - WORD wReserved; - WORD XonLim; - WORD XoffLim; - BYTE ByteSize; - BYTE Parity; - BYTE StopBits; - char XonChar; - char XoffChar; - char ErrorChar; - char EofChar; - char EvtChar; - WORD wReserved1; -} DCB, *LPDCB; - -typedef struct _COMMTIMEOUTS { - DWORD ReadIntervalTimeout; - DWORD ReadTotalTimeoutMultiplier; - DWORD ReadTotalTimeoutConstant; - DWORD WriteTotalTimeoutMultiplier; - DWORD WriteTotalTimeoutConstant; -} COMMTIMEOUTS,*LPCOMMTIMEOUTS; - -typedef struct _COMMCONFIG { - DWORD dwSize; - WORD wVersion; - WORD wReserved; - DCB dcb; - DWORD dwProviderSubType; - - DWORD dwProviderOffset; - - DWORD dwProviderSize; - WCHAR wcProviderData[1]; -} COMMCONFIG,*LPCOMMCONFIG; -# 629 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct _MEMORYSTATUS { - DWORD dwLength; - DWORD dwMemoryLoad; - SIZE_T dwTotalPhys; - SIZE_T dwAvailPhys; - SIZE_T dwTotalPageFile; - SIZE_T dwAvailPageFile; - SIZE_T dwTotalVirtual; - SIZE_T dwAvailVirtual; -} MEMORYSTATUS, *LPMEMORYSTATUS; -# 737 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct _JIT_DEBUG_INFO { - DWORD dwSize; - DWORD dwProcessorArchitecture; - DWORD dwThreadID; - DWORD dwReserved0; - ULONG64 lpExceptionAddress; - ULONG64 lpExceptionRecord; - ULONG64 lpContextRecord; -} JIT_DEBUG_INFO, *LPJIT_DEBUG_INFO; - -typedef JIT_DEBUG_INFO JIT_DEBUG_INFO32, *LPJIT_DEBUG_INFO32; -typedef JIT_DEBUG_INFO JIT_DEBUG_INFO64, *LPJIT_DEBUG_INFO64; -# 757 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef PEXCEPTION_RECORD LPEXCEPTION_RECORD; -typedef PEXCEPTION_POINTERS LPEXCEPTION_POINTERS; -# 1007 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct _OFSTRUCT { - BYTE cBytes; - BYTE fFixedDisk; - WORD nErrCode; - WORD Reserved1; - WORD Reserved2; - CHAR szPathName[128]; -} OFSTRUCT, *LPOFSTRUCT, *POFSTRUCT; -# 1027 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -int - - - - -__stdcall - - - - -WinMain ( - HINSTANCE hInstance, - HINSTANCE hPrevInstance, - LPSTR lpCmdLine, - int nShowCmd - ); - -int - - - -__stdcall - -wWinMain( - HINSTANCE hInstance, - HINSTANCE hPrevInstance, - LPWSTR lpCmdLine, - int nShowCmd - ); - - - - - - - -__declspec(dllimport) - - -__declspec(allocator) -HGLOBAL -__stdcall -GlobalAlloc( - UINT uFlags, - SIZE_T dwBytes - ); - - - - - - - -__declspec(dllimport) - -__declspec(allocator) -HGLOBAL -__stdcall -GlobalReAlloc ( - HGLOBAL hMem, - SIZE_T dwBytes, - UINT uFlags - ); - - - - - - - -__declspec(dllimport) -SIZE_T -__stdcall -GlobalSize ( - HGLOBAL hMem - ); - -__declspec(dllimport) -BOOL -__stdcall -GlobalUnlock( - HGLOBAL hMem - ); - -__declspec(dllimport) - -LPVOID -__stdcall -GlobalLock ( - HGLOBAL hMem - ); - - - - - - - -__declspec(dllimport) -UINT -__stdcall -GlobalFlags ( - HGLOBAL hMem - ); - -__declspec(dllimport) - -HGLOBAL -__stdcall -GlobalHandle ( - LPCVOID pMem - ); - - - - - - - -__declspec(dllimport) - - -HGLOBAL -__stdcall -GlobalFree( - HGLOBAL hMem - ); - - - - - - - -__declspec(dllimport) -SIZE_T -__stdcall -GlobalCompact( - DWORD dwMinFree - ); - -__declspec(dllimport) -void -__stdcall -GlobalFix( - HGLOBAL hMem - ); - -__declspec(dllimport) -void -__stdcall -GlobalUnfix( - HGLOBAL hMem - ); - -__declspec(dllimport) -LPVOID -__stdcall -GlobalWire( - HGLOBAL hMem - ); - -__declspec(dllimport) -BOOL -__stdcall -GlobalUnWire( - HGLOBAL hMem - ); - - -__declspec(dllimport) -void -__stdcall -GlobalMemoryStatus( - LPMEMORYSTATUS lpBuffer - ); - - - - - - - -__declspec(dllimport) - - -__declspec(allocator) -HLOCAL -__stdcall -LocalAlloc( - UINT uFlags, - SIZE_T uBytes - ); - -__declspec(dllimport) - -__declspec(allocator) -HLOCAL -__stdcall -LocalReAlloc( - HLOCAL hMem, - SIZE_T uBytes, - UINT uFlags - ); - - - - - - - -__declspec(dllimport) - -LPVOID -__stdcall -LocalLock( - HLOCAL hMem - ); - - - - - - - -__declspec(dllimport) - -HLOCAL -__stdcall -LocalHandle( - LPCVOID pMem - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -LocalUnlock( - HLOCAL hMem - ); - - - - - - - -__declspec(dllimport) -SIZE_T -__stdcall -LocalSize( - HLOCAL hMem - ); - - - - - - - -__declspec(dllimport) -UINT -__stdcall -LocalFlags( - HLOCAL hMem - ); - - - - - - - -__declspec(dllimport) - - -HLOCAL -__stdcall -LocalFree( - HLOCAL hMem - ); - - - - - - - -__declspec(dllimport) -SIZE_T -__stdcall -LocalShrink( - HLOCAL hMem, - UINT cbNewSize - ); - -__declspec(dllimport) -SIZE_T -__stdcall -LocalCompact( - UINT uMinFree - ); -# 1351 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetBinaryTypeA( - LPCSTR lpApplicationName, - LPDWORD lpBinaryType - ); -__declspec(dllimport) -BOOL -__stdcall -GetBinaryTypeW( - LPCWSTR lpApplicationName, - LPDWORD lpBinaryType - ); - - - - - - -__declspec(dllimport) - -DWORD -__stdcall -GetShortPathNameA( - LPCSTR lpszLongPath, - LPSTR lpszShortPath, - DWORD cchBuffer - ); - - - - - - -__declspec(dllimport) - -DWORD -__stdcall -GetLongPathNameTransactedA( - LPCSTR lpszShortPath, - LPSTR lpszLongPath, - DWORD cchBuffer, - HANDLE hTransaction - ); -__declspec(dllimport) - -DWORD -__stdcall -GetLongPathNameTransactedW( - LPCWSTR lpszShortPath, - LPWSTR lpszLongPath, - DWORD cchBuffer, - HANDLE hTransaction - ); -# 1420 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetProcessAffinityMask( - HANDLE hProcess, - PDWORD_PTR lpProcessAffinityMask, - PDWORD_PTR lpSystemAffinityMask - ); - -__declspec(dllimport) -BOOL -__stdcall -SetProcessAffinityMask( - HANDLE hProcess, - DWORD_PTR dwProcessAffinityMask - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetProcessIoCounters( - HANDLE hProcess, - PIO_COUNTERS lpIoCounters - ); - -__declspec(dllimport) - -void -__stdcall -FatalExit( - int ExitCode - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetEnvironmentStringsA( - LPCH NewEnvironment - ); -# 1489 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -void -__stdcall -SwitchToFiber( - LPVOID lpFiber - ); - -__declspec(dllimport) -void -__stdcall -DeleteFiber( - LPVOID lpFiber - ); - - - -__declspec(dllimport) -BOOL -__stdcall -ConvertFiberToThread( - void - ); - - - -__declspec(dllimport) - -LPVOID -__stdcall -CreateFiberEx( - SIZE_T dwStackCommitSize, - SIZE_T dwStackReserveSize, - DWORD dwFlags, - LPFIBER_START_ROUTINE lpStartAddress, - LPVOID lpParameter - ); - -__declspec(dllimport) - -LPVOID -__stdcall -ConvertThreadToFiberEx( - LPVOID lpParameter, - DWORD dwFlags - ); - - - - - - - -__declspec(dllimport) - -LPVOID -__stdcall -CreateFiber( - SIZE_T dwStackSize, - LPFIBER_START_ROUTINE lpStartAddress, - LPVOID lpParameter - ); - -__declspec(dllimport) - -LPVOID -__stdcall -ConvertThreadToFiber( - LPVOID lpParameter - ); -# 1577 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef void *PUMS_CONTEXT; - -typedef void *PUMS_COMPLETION_LIST; - -typedef enum _RTL_UMS_THREAD_INFO_CLASS UMS_THREAD_INFO_CLASS, *PUMS_THREAD_INFO_CLASS; - -typedef enum _RTL_UMS_SCHEDULER_REASON UMS_SCHEDULER_REASON; - -typedef PRTL_UMS_SCHEDULER_ENTRY_POINT PUMS_SCHEDULER_ENTRY_POINT; - -typedef struct _UMS_SCHEDULER_STARTUP_INFO { - - - - - ULONG UmsVersion; - - - - - PUMS_COMPLETION_LIST CompletionList; - - - - - - PUMS_SCHEDULER_ENTRY_POINT SchedulerProc; - - - - - PVOID SchedulerParam; - -} UMS_SCHEDULER_STARTUP_INFO, *PUMS_SCHEDULER_STARTUP_INFO; - -typedef struct _UMS_SYSTEM_THREAD_INFORMATION { - ULONG UmsVersion; - union { - struct { - ULONG IsUmsSchedulerThread : 1; - ULONG IsUmsWorkerThread : 1; - } ; - ULONG ThreadUmsFlags; - } ; -} UMS_SYSTEM_THREAD_INFORMATION, *PUMS_SYSTEM_THREAD_INFORMATION; - - -__declspec(dllimport) -BOOL -__stdcall -CreateUmsCompletionList( - PUMS_COMPLETION_LIST* UmsCompletionList - ); - -__declspec(dllimport) -BOOL -__stdcall -DequeueUmsCompletionListItems( - PUMS_COMPLETION_LIST UmsCompletionList, - DWORD WaitTimeOut, - PUMS_CONTEXT* UmsThreadList - ); - -__declspec(dllimport) -BOOL -__stdcall -GetUmsCompletionListEvent( - PUMS_COMPLETION_LIST UmsCompletionList, - PHANDLE UmsCompletionEvent - ); - -__declspec(dllimport) -BOOL -__stdcall -ExecuteUmsThread( - PUMS_CONTEXT UmsThread - ); - -__declspec(dllimport) -BOOL -__stdcall -UmsThreadYield( - PVOID SchedulerParam - ); - -__declspec(dllimport) -BOOL -__stdcall -DeleteUmsCompletionList( - PUMS_COMPLETION_LIST UmsCompletionList - ); - -__declspec(dllimport) -PUMS_CONTEXT -__stdcall -GetCurrentUmsThread( - void - ); - -__declspec(dllimport) -PUMS_CONTEXT -__stdcall -GetNextUmsListItem( - PUMS_CONTEXT UmsContext - ); - -__declspec(dllimport) -BOOL -__stdcall -QueryUmsThreadInformation( - PUMS_CONTEXT UmsThread, - UMS_THREAD_INFO_CLASS UmsThreadInfoClass, - PVOID UmsThreadInformation, - ULONG UmsThreadInformationLength, - PULONG ReturnLength - ); - -__declspec(dllimport) -BOOL -__stdcall -SetUmsThreadInformation( - PUMS_CONTEXT UmsThread, - UMS_THREAD_INFO_CLASS UmsThreadInfoClass, - PVOID UmsThreadInformation, - ULONG UmsThreadInformationLength - ); - -__declspec(dllimport) -BOOL -__stdcall -DeleteUmsThreadContext( - PUMS_CONTEXT UmsThread - ); - -__declspec(dllimport) -BOOL -__stdcall -CreateUmsThreadContext( - PUMS_CONTEXT *lpUmsThread - ); - -__declspec(dllimport) -BOOL -__stdcall -EnterUmsSchedulingMode( - PUMS_SCHEDULER_STARTUP_INFO SchedulerStartupInfo - ); - -__declspec(dllimport) -BOOL -__stdcall -GetUmsSystemThreadInformation( - HANDLE ThreadHandle, - PUMS_SYSTEM_THREAD_INFORMATION SystemThreadInfo - ); -# 1747 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -DWORD_PTR -__stdcall -SetThreadAffinityMask( - HANDLE hThread, - DWORD_PTR dwThreadAffinityMask - ); -# 1766 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetProcessDEPPolicy( - DWORD dwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -GetProcessDEPPolicy( - HANDLE hProcess, - LPDWORD lpFlags, - PBOOL lpPermanent - ); - - - -__declspec(dllimport) -BOOL -__stdcall -RequestWakeupLatency( - LATENCY_TIME latency - ); - -__declspec(dllimport) -BOOL -__stdcall -IsSystemResumeAutomatic( - void - ); - -__declspec(dllimport) -BOOL -__stdcall -GetThreadSelectorEntry( - HANDLE hThread, - DWORD dwSelector, - LPLDT_ENTRY lpSelectorEntry - ); - -__declspec(dllimport) -EXECUTION_STATE -__stdcall -SetThreadExecutionState( - EXECUTION_STATE esFlags - ); - - - - - - - -typedef REASON_CONTEXT POWER_REQUEST_CONTEXT, *PPOWER_REQUEST_CONTEXT, *LPPOWER_REQUEST_CONTEXT; - -__declspec(dllimport) -HANDLE -__stdcall -PowerCreateRequest ( - PREASON_CONTEXT Context - ); - -__declspec(dllimport) -BOOL -__stdcall -PowerSetRequest ( - HANDLE PowerRequest, - POWER_REQUEST_TYPE RequestType - ); - -__declspec(dllimport) -BOOL -__stdcall -PowerClearRequest ( - HANDLE PowerRequest, - POWER_REQUEST_TYPE RequestType - ); -# 1908 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetFileCompletionNotificationModes( - HANDLE FileHandle, - UCHAR Flags - ); -# 1933 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -Wow64GetThreadSelectorEntry( - HANDLE hThread, - DWORD dwSelector, - PWOW64_LDT_ENTRY lpSelectorEntry - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -DebugSetProcessKillOnExit( - BOOL KillOnExit - ); - -__declspec(dllimport) -BOOL -__stdcall -DebugBreakProcess ( - HANDLE Process - ); -# 1976 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -PulseEvent( - HANDLE hEvent - ); - -__declspec(dllimport) -ATOM -__stdcall -GlobalDeleteAtom( - ATOM nAtom - ); - -__declspec(dllimport) -BOOL -__stdcall -InitAtomTable( - DWORD nSize - ); - -__declspec(dllimport) -ATOM -__stdcall -DeleteAtom( - ATOM nAtom - ); - -__declspec(dllimport) -UINT -__stdcall -SetHandleCount( - UINT uNumber - ); - -__declspec(dllimport) -BOOL -__stdcall -RequestDeviceWakeup( - HANDLE hDevice - ); - -__declspec(dllimport) -BOOL -__stdcall -CancelDeviceWakeupRequest( - HANDLE hDevice - ); - -__declspec(dllimport) -BOOL -__stdcall -GetDevicePowerState( - HANDLE hDevice, - BOOL *pfOn - ); - -__declspec(dllimport) -BOOL -__stdcall -SetMessageWaitingIndicator( - HANDLE hMsgIndicator, - ULONG ulMsgCount - ); - - -__declspec(dllimport) -BOOL -__stdcall -SetFileShortNameA( - HANDLE hFile, - LPCSTR lpShortName - ); -__declspec(dllimport) -BOOL -__stdcall -SetFileShortNameW( - HANDLE hFile, - LPCWSTR lpShortName - ); -# 2079 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -DWORD -__stdcall -LoadModule( - LPCSTR lpModuleName, - LPVOID lpParameterBlock - ); - - - -__declspec(dllimport) -UINT -__stdcall -WinExec( - LPCSTR lpCmdLine, - UINT uCmdShow - ); -# 2104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -ClearCommBreak( - HANDLE hFile - ); - -__declspec(dllimport) -BOOL -__stdcall -ClearCommError( - HANDLE hFile, - LPDWORD lpErrors, - LPCOMSTAT lpStat - ); - -__declspec(dllimport) -BOOL -__stdcall -SetupComm( - HANDLE hFile, - DWORD dwInQueue, - DWORD dwOutQueue - ); - -__declspec(dllimport) -BOOL -__stdcall -EscapeCommFunction( - HANDLE hFile, - DWORD dwFunc - ); - -__declspec(dllimport) - -BOOL -__stdcall -GetCommConfig( - HANDLE hCommDev, - LPCOMMCONFIG lpCC, - LPDWORD lpdwSize - ); - -__declspec(dllimport) -BOOL -__stdcall -GetCommMask( - HANDLE hFile, - LPDWORD lpEvtMask - ); - -__declspec(dllimport) -BOOL -__stdcall -GetCommProperties( - HANDLE hFile, - LPCOMMPROP lpCommProp - ); - -__declspec(dllimport) -BOOL -__stdcall -GetCommModemStatus( - HANDLE hFile, - LPDWORD lpModemStat - ); - -__declspec(dllimport) -BOOL -__stdcall -GetCommState( - HANDLE hFile, - LPDCB lpDCB - ); - -__declspec(dllimport) -BOOL -__stdcall -GetCommTimeouts( - HANDLE hFile, - LPCOMMTIMEOUTS lpCommTimeouts - ); - -__declspec(dllimport) -BOOL -__stdcall -PurgeComm( - HANDLE hFile, - DWORD dwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -SetCommBreak( - HANDLE hFile - ); - -__declspec(dllimport) -BOOL -__stdcall -SetCommConfig( - HANDLE hCommDev, - LPCOMMCONFIG lpCC, - DWORD dwSize - ); - -__declspec(dllimport) -BOOL -__stdcall -SetCommMask( - HANDLE hFile, - DWORD dwEvtMask - ); - -__declspec(dllimport) -BOOL -__stdcall -SetCommState( - HANDLE hFile, - LPDCB lpDCB - ); - -__declspec(dllimport) -BOOL -__stdcall -SetCommTimeouts( - HANDLE hFile, - LPCOMMTIMEOUTS lpCommTimeouts - ); - -__declspec(dllimport) -BOOL -__stdcall -TransmitCommChar( - HANDLE hFile, - char cChar - ); - -__declspec(dllimport) -BOOL -__stdcall -WaitCommEvent( - HANDLE hFile, - LPDWORD lpEvtMask, - LPOVERLAPPED lpOverlapped - ); - - - - -__declspec(dllimport) -HANDLE -__stdcall -OpenCommPort( - ULONG uPortNumber, - DWORD dwDesiredAccess, - DWORD dwFlagsAndAttributes - ); - - - - - -__declspec(dllimport) -ULONG -__stdcall -GetCommPorts( - PULONG lpPortNumbers, - ULONG uPortNumbersCount, - PULONG puPortNumbersFound - ); -# 2285 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -DWORD -__stdcall -SetTapePosition( - HANDLE hDevice, - DWORD dwPositionMethod, - DWORD dwPartition, - DWORD dwOffsetLow, - DWORD dwOffsetHigh, - BOOL bImmediate - ); - -__declspec(dllimport) -DWORD -__stdcall -GetTapePosition( - HANDLE hDevice, - DWORD dwPositionType, - LPDWORD lpdwPartition, - LPDWORD lpdwOffsetLow, - LPDWORD lpdwOffsetHigh - ); - -__declspec(dllimport) -DWORD -__stdcall -PrepareTape( - HANDLE hDevice, - DWORD dwOperation, - BOOL bImmediate - ); - -__declspec(dllimport) -DWORD -__stdcall -EraseTape( - HANDLE hDevice, - DWORD dwEraseType, - BOOL bImmediate - ); - -__declspec(dllimport) -DWORD -__stdcall -CreateTapePartition( - HANDLE hDevice, - DWORD dwPartitionMethod, - DWORD dwCount, - DWORD dwSize - ); - -__declspec(dllimport) -DWORD -__stdcall -WriteTapemark( - HANDLE hDevice, - DWORD dwTapemarkType, - DWORD dwTapemarkCount, - BOOL bImmediate - ); - -__declspec(dllimport) -DWORD -__stdcall -GetTapeStatus( - HANDLE hDevice - ); - -__declspec(dllimport) -DWORD -__stdcall -GetTapeParameters( - HANDLE hDevice, - DWORD dwOperation, - LPDWORD lpdwSize, - LPVOID lpTapeInformation - ); - - - - -__declspec(dllimport) -DWORD -__stdcall -SetTapeParameters( - HANDLE hDevice, - DWORD dwOperation, - LPVOID lpTapeInformation - ); -# 2384 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -int -__stdcall -MulDiv( - int nNumber, - int nNumerator, - int nDenominator - ); - - - - - - - -typedef enum _DEP_SYSTEM_POLICY_TYPE { - DEPPolicyAlwaysOff = 0, - DEPPolicyAlwaysOn, - DEPPolicyOptIn, - DEPPolicyOptOut, - DEPTotalPolicyCount -} DEP_SYSTEM_POLICY_TYPE; - - - -__declspec(dllimport) -DEP_SYSTEM_POLICY_TYPE -__stdcall -GetSystemDEPPolicy( - void - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetSystemRegistryQuota( - PDWORD pdwQuotaAllowed, - PDWORD pdwQuotaUsed - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -FileTimeToDosDateTime( - const FILETIME *lpFileTime, - LPWORD lpFatDate, - LPWORD lpFatTime - ); - -__declspec(dllimport) -BOOL -__stdcall -DosDateTimeToFileTime( - WORD wFatDate, - WORD wFatTime, - LPFILETIME lpFileTime - ); -# 2461 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - -DWORD -__stdcall -FormatMessageA( - DWORD dwFlags, - LPCVOID lpSource, - DWORD dwMessageId, - DWORD dwLanguageId, - - - LPSTR lpBuffer, - DWORD nSize, - va_list *Arguments - ); -__declspec(dllimport) - -DWORD -__stdcall -FormatMessageW( - DWORD dwFlags, - LPCVOID lpSource, - DWORD dwMessageId, - DWORD dwLanguageId, - - - LPWSTR lpBuffer, - DWORD nSize, - va_list *Arguments - ); -# 2542 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -CreateMailslotA( - LPCSTR lpName, - DWORD nMaxMessageSize, - DWORD lReadTimeout, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); -__declspec(dllimport) -HANDLE -__stdcall -CreateMailslotW( - LPCWSTR lpName, - DWORD nMaxMessageSize, - DWORD lReadTimeout, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetMailslotInfo( - HANDLE hMailslot, - LPDWORD lpMaxMessageSize, - LPDWORD lpNextSize, - LPDWORD lpMessageCount, - LPDWORD lpReadTimeout - ); - -__declspec(dllimport) -BOOL -__stdcall -SetMailslotInfo( - HANDLE hMailslot, - DWORD lReadTimeout - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -EncryptFileA( - LPCSTR lpFileName - ); -__declspec(dllimport) -BOOL -__stdcall -EncryptFileW( - LPCWSTR lpFileName - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -DecryptFileA( - LPCSTR lpFileName, - DWORD dwReserved - ); -__declspec(dllimport) -BOOL -__stdcall -DecryptFileW( - LPCWSTR lpFileName, - DWORD dwReserved - ); -# 2642 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -FileEncryptionStatusA( - LPCSTR lpFileName, - LPDWORD lpStatus - ); -__declspec(dllimport) -BOOL -__stdcall -FileEncryptionStatusW( - LPCWSTR lpFileName, - LPDWORD lpStatus - ); -# 2668 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef -DWORD -(__stdcall *PFE_EXPORT_FUNC)( - PBYTE pbData, - PVOID pvCallbackContext, - ULONG ulLength - ); - -typedef -DWORD -(__stdcall *PFE_IMPORT_FUNC)( - PBYTE pbData, - PVOID pvCallbackContext, - PULONG ulLength - ); -# 2696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -DWORD -__stdcall -OpenEncryptedFileRawA( - LPCSTR lpFileName, - ULONG ulFlags, - PVOID *pvContext - ); -__declspec(dllimport) -DWORD -__stdcall -OpenEncryptedFileRawW( - LPCWSTR lpFileName, - ULONG ulFlags, - PVOID *pvContext - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -ReadEncryptedFileRaw( - PFE_EXPORT_FUNC pfExportCallback, - PVOID pvCallbackContext, - PVOID pvContext - ); - -__declspec(dllimport) -DWORD -__stdcall -WriteEncryptedFileRaw( - PFE_IMPORT_FUNC pfImportCallback, - PVOID pvCallbackContext, - PVOID pvContext - ); - -__declspec(dllimport) -void -__stdcall -CloseEncryptedFileRaw( - PVOID pvContext - ); -# 2753 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -int -__stdcall -lstrcmpA( - LPCSTR lpString1, - LPCSTR lpString2 - ); -__declspec(dllimport) -int -__stdcall -lstrcmpW( - LPCWSTR lpString1, - LPCWSTR lpString2 - ); - - - - - - -__declspec(dllimport) -int -__stdcall -lstrcmpiA( - LPCSTR lpString1, - LPCSTR lpString2 - ); -__declspec(dllimport) -int -__stdcall -lstrcmpiW( - LPCWSTR lpString1, - LPCWSTR lpString2 - ); -# 2800 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -#pragma warning(push) -#pragma warning(disable: 4995) - - -__declspec(dllimport) - - - - -LPSTR -__stdcall -lstrcpynA( - LPSTR lpString1, - LPCSTR lpString2, - int iMaxLength - ); -__declspec(dllimport) - - - - -LPWSTR -__stdcall -lstrcpynW( - LPWSTR lpString1, - LPCWSTR lpString2, - int iMaxLength - ); - - - - - - -__declspec(dllimport) -LPSTR -__stdcall -lstrcpyA( - LPSTR lpString1, - LPCSTR lpString2 - ); -__declspec(dllimport) -LPWSTR -__stdcall -lstrcpyW( - LPWSTR lpString1, - LPCWSTR lpString2 - ); - - - - - - -__declspec(dllimport) -LPSTR -__stdcall -lstrcatA( - LPSTR lpString1, - LPCSTR lpString2 - ); -__declspec(dllimport) -LPWSTR -__stdcall -lstrcatW( - LPWSTR lpString1, - LPCWSTR lpString2 - ); - - - - - - - -#pragma warning(pop) - - - - - - - - -__declspec(dllimport) -int -__stdcall -lstrlenA( - LPCSTR lpString - ); -__declspec(dllimport) -int -__stdcall -lstrlenW( - LPCWSTR lpString - ); -# 2908 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HFILE -__stdcall -OpenFile( - LPCSTR lpFileName, - LPOFSTRUCT lpReOpenBuff, - UINT uStyle - ); - -__declspec(dllimport) -HFILE -__stdcall -_lopen( - LPCSTR lpPathName, - int iReadWrite - ); - -__declspec(dllimport) -HFILE -__stdcall -_lcreat( - LPCSTR lpPathName, - int iAttribute - ); - -__declspec(dllimport) -UINT -__stdcall -_lread( - HFILE hFile, - LPVOID lpBuffer, - UINT uBytes - ); - -__declspec(dllimport) -UINT -__stdcall -_lwrite( - HFILE hFile, - LPCCH lpBuffer, - UINT uBytes - ); - -__declspec(dllimport) -long -__stdcall -_hread( - HFILE hFile, - LPVOID lpBuffer, - long lBytes - ); - -__declspec(dllimport) -long -__stdcall -_hwrite( - HFILE hFile, - LPCCH lpBuffer, - long lBytes - ); - -__declspec(dllimport) -HFILE -__stdcall -_lclose( - HFILE hFile - ); - -__declspec(dllimport) -LONG -__stdcall -_llseek( - HFILE hFile, - LONG lOffset, - int iOrigin - ); - -__declspec(dllimport) -BOOL -__stdcall -IsTextUnicode( - const void* lpv, - int iSize, - LPINT lpiResult - ); -# 3001 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -DWORD -__stdcall -SignalObjectAndWait( - HANDLE hObjectToSignal, - HANDLE hObjectToWaitOn, - DWORD dwMilliseconds, - BOOL bAlertable - ); -# 3018 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -BackupRead( - HANDLE hFile, - LPBYTE lpBuffer, - DWORD nNumberOfBytesToRead, - LPDWORD lpNumberOfBytesRead, - BOOL bAbort, - BOOL bProcessSecurity, - LPVOID *lpContext - ); - -__declspec(dllimport) -BOOL -__stdcall -BackupSeek( - HANDLE hFile, - DWORD dwLowBytesToSeek, - DWORD dwHighBytesToSeek, - LPDWORD lpdwLowByteSeeked, - LPDWORD lpdwHighByteSeeked, - LPVOID *lpContext - ); - -__declspec(dllimport) -BOOL -__stdcall -BackupWrite( - HANDLE hFile, - LPBYTE lpBuffer, - DWORD nNumberOfBytesToWrite, - LPDWORD lpNumberOfBytesWritten, - BOOL bAbort, - BOOL bProcessSecurity, - LPVOID *lpContext - ); - - - - -typedef struct _WIN32_STREAM_ID { - DWORD dwStreamId ; - DWORD dwStreamAttributes ; - LARGE_INTEGER Size ; - DWORD dwStreamNameSize ; - WCHAR cStreamName[ 1 ] ; -} WIN32_STREAM_ID, *LPWIN32_STREAM_ID ; -# 3140 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct _STARTUPINFOEXA { - STARTUPINFOA StartupInfo; - LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList; -} STARTUPINFOEXA, *LPSTARTUPINFOEXA; -typedef struct _STARTUPINFOEXW { - STARTUPINFOW StartupInfo; - LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList; -} STARTUPINFOEXW, *LPSTARTUPINFOEXW; - - - - -typedef STARTUPINFOEXA STARTUPINFOEX; -typedef LPSTARTUPINFOEXA LPSTARTUPINFOEX; -# 3172 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -OpenMutexA( - DWORD dwDesiredAccess, - BOOL bInheritHandle, - LPCSTR lpName - ); - - - - -__declspec(dllimport) - -HANDLE -__stdcall -CreateSemaphoreA( - LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, - LONG lInitialCount, - LONG lMaximumCount, - LPCSTR lpName - ); -# 3205 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -OpenSemaphoreA( - DWORD dwDesiredAccess, - BOOL bInheritHandle, - LPCSTR lpName - ); -# 3226 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -CreateWaitableTimerA( - LPSECURITY_ATTRIBUTES lpTimerAttributes, - BOOL bManualReset, - LPCSTR lpTimerName - ); - - - - -__declspec(dllimport) - -HANDLE -__stdcall -OpenWaitableTimerA( - DWORD dwDesiredAccess, - BOOL bInheritHandle, - LPCSTR lpTimerName - ); - - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -CreateSemaphoreExA( - LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, - LONG lInitialCount, - LONG lMaximumCount, - LPCSTR lpName, - DWORD dwFlags, - DWORD dwDesiredAccess - ); - - - - -__declspec(dllimport) - -HANDLE -__stdcall -CreateWaitableTimerExA( - LPSECURITY_ATTRIBUTES lpTimerAttributes, - LPCSTR lpTimerName, - DWORD dwFlags, - DWORD dwDesiredAccess - ); -# 3295 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -CreateFileMappingA( - HANDLE hFile, - LPSECURITY_ATTRIBUTES lpFileMappingAttributes, - DWORD flProtect, - DWORD dwMaximumSizeHigh, - DWORD dwMaximumSizeLow, - LPCSTR lpName - ); -# 3319 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -CreateFileMappingNumaA( - HANDLE hFile, - LPSECURITY_ATTRIBUTES lpFileMappingAttributes, - DWORD flProtect, - DWORD dwMaximumSizeHigh, - DWORD dwMaximumSizeLow, - LPCSTR lpName, - DWORD nndPreferred - ); -# 3345 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -OpenFileMappingA( - DWORD dwDesiredAccess, - BOOL bInheritHandle, - LPCSTR lpName - ); -# 3363 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - -DWORD -__stdcall -GetLogicalDriveStringsA( - DWORD nBufferLength, - LPSTR lpBuffer - ); -# 3390 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - -HMODULE -__stdcall -LoadPackagedLibrary ( - LPCWSTR lpwLibFileName, - DWORD Reserved - ); -# 3443 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -QueryFullProcessImageNameA( - HANDLE hProcess, - DWORD dwFlags, - LPSTR lpExeName, - PDWORD lpdwSize - ); -__declspec(dllimport) -BOOL -__stdcall -QueryFullProcessImageNameW( - HANDLE hProcess, - DWORD dwFlags, - LPWSTR lpExeName, - PDWORD lpdwSize - ); -# 3488 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef enum _PROC_THREAD_ATTRIBUTE_NUM { - ProcThreadAttributeParentProcess = 0, - ProcThreadAttributeHandleList = 2, - - ProcThreadAttributeGroupAffinity = 3, - ProcThreadAttributePreferredNode = 4, - ProcThreadAttributeIdealProcessor = 5, - ProcThreadAttributeUmsThread = 6, - ProcThreadAttributeMitigationPolicy = 7, - - - ProcThreadAttributeSecurityCapabilities = 9, - - ProcThreadAttributeProtectionLevel = 11, - - - - ProcThreadAttributeJobList = 13, - ProcThreadAttributeChildProcessPolicy = 14, - ProcThreadAttributeAllApplicationPackagesPolicy = 15, - ProcThreadAttributeWin32kFilter = 16, - - - ProcThreadAttributeSafeOpenPromptOriginClaim = 17, - - - ProcThreadAttributeDesktopAppPolicy = 18, - - - ProcThreadAttributePseudoConsole = 22, - - - - - ProcThreadAttributeMitigationAuditPolicy = 24, - ProcThreadAttributeMachineType = 25, - ProcThreadAttributeComponentFilter = 26, - - - ProcThreadAttributeEnableOptionalXStateFeatures = 27, - - - ProcThreadAttributeTrustedApp = 29, - -} PROC_THREAD_ATTRIBUTE_NUM; -# 4037 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -void -__stdcall -GetStartupInfoA( - LPSTARTUPINFOA lpStartupInfo - ); -# 4113 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetFirmwareEnvironmentVariableA( - LPCSTR lpName, - LPCSTR lpGuid, - PVOID pBuffer, - DWORD nSize - ); -__declspec(dllimport) -DWORD -__stdcall -GetFirmwareEnvironmentVariableW( - LPCWSTR lpName, - LPCWSTR lpGuid, - PVOID pBuffer, - DWORD nSize - ); -# 4139 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetFirmwareEnvironmentVariableExA( - LPCSTR lpName, - LPCSTR lpGuid, - PVOID pBuffer, - DWORD nSize, - PDWORD pdwAttribubutes - ); -__declspec(dllimport) -DWORD -__stdcall -GetFirmwareEnvironmentVariableExW( - LPCWSTR lpName, - LPCWSTR lpGuid, - PVOID pBuffer, - DWORD nSize, - PDWORD pdwAttribubutes - ); -# 4167 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetFirmwareEnvironmentVariableA( - LPCSTR lpName, - LPCSTR lpGuid, - PVOID pValue, - DWORD nSize - ); -__declspec(dllimport) -BOOL -__stdcall -SetFirmwareEnvironmentVariableW( - LPCWSTR lpName, - LPCWSTR lpGuid, - PVOID pValue, - DWORD nSize - ); -# 4193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetFirmwareEnvironmentVariableExA( - LPCSTR lpName, - LPCSTR lpGuid, - PVOID pValue, - DWORD nSize, - DWORD dwAttributes - ); -__declspec(dllimport) -BOOL -__stdcall -SetFirmwareEnvironmentVariableExW( - LPCWSTR lpName, - LPCWSTR lpGuid, - PVOID pValue, - DWORD nSize, - DWORD dwAttributes - ); -# 4229 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetFirmwareType ( - PFIRMWARE_TYPE FirmwareType - ); - - -__declspec(dllimport) -BOOL -__stdcall -IsNativeVhdBoot ( - PBOOL NativeVhdBoot - ); - - - -__declspec(dllimport) - -HRSRC -__stdcall -FindResourceA( - HMODULE hModule, - LPCSTR lpName, - LPCSTR lpType - ); - - - - -__declspec(dllimport) - -HRSRC -__stdcall -FindResourceExA( - HMODULE hModule, - LPCSTR lpType, - LPCSTR lpName, - WORD wLanguage - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -EnumResourceTypesA( - HMODULE hModule, - ENUMRESTYPEPROCA lpEnumFunc, - LONG_PTR lParam - ); -__declspec(dllimport) -BOOL -__stdcall -EnumResourceTypesW( - HMODULE hModule, - ENUMRESTYPEPROCW lpEnumFunc, - LONG_PTR lParam - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -EnumResourceLanguagesA( - HMODULE hModule, - LPCSTR lpType, - LPCSTR lpName, - ENUMRESLANGPROCA lpEnumFunc, - LONG_PTR lParam - ); -__declspec(dllimport) -BOOL -__stdcall -EnumResourceLanguagesW( - HMODULE hModule, - LPCWSTR lpType, - LPCWSTR lpName, - ENUMRESLANGPROCW lpEnumFunc, - LONG_PTR lParam - ); - - - - - - -__declspec(dllimport) -HANDLE -__stdcall -BeginUpdateResourceA( - LPCSTR pFileName, - BOOL bDeleteExistingResources - ); -__declspec(dllimport) -HANDLE -__stdcall -BeginUpdateResourceW( - LPCWSTR pFileName, - BOOL bDeleteExistingResources - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -UpdateResourceA( - HANDLE hUpdate, - LPCSTR lpType, - LPCSTR lpName, - WORD wLanguage, - LPVOID lpData, - DWORD cb - ); -__declspec(dllimport) -BOOL -__stdcall -UpdateResourceW( - HANDLE hUpdate, - LPCWSTR lpType, - LPCWSTR lpName, - WORD wLanguage, - LPVOID lpData, - DWORD cb - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -EndUpdateResourceA( - HANDLE hUpdate, - BOOL fDiscard - ); -__declspec(dllimport) -BOOL -__stdcall -EndUpdateResourceW( - HANDLE hUpdate, - BOOL fDiscard - ); -# 4391 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -ATOM -__stdcall -GlobalAddAtomA( - LPCSTR lpString - ); -__declspec(dllimport) -ATOM -__stdcall -GlobalAddAtomW( - LPCWSTR lpString - ); - - - - - - -__declspec(dllimport) -ATOM -__stdcall -GlobalAddAtomExA( - LPCSTR lpString, - DWORD Flags - ); -__declspec(dllimport) -ATOM -__stdcall -GlobalAddAtomExW( - LPCWSTR lpString, - DWORD Flags - ); - - - - - - -__declspec(dllimport) -ATOM -__stdcall -GlobalFindAtomA( - LPCSTR lpString - ); -__declspec(dllimport) -ATOM -__stdcall -GlobalFindAtomW( - LPCWSTR lpString - ); - - - - - - -__declspec(dllimport) -UINT -__stdcall -GlobalGetAtomNameA( - ATOM nAtom, - LPSTR lpBuffer, - int nSize - ); -__declspec(dllimport) -UINT -__stdcall -GlobalGetAtomNameW( - ATOM nAtom, - LPWSTR lpBuffer, - int nSize - ); - - - - - - -__declspec(dllimport) -ATOM -__stdcall -AddAtomA( - LPCSTR lpString - ); -__declspec(dllimport) -ATOM -__stdcall -AddAtomW( - LPCWSTR lpString - ); - - - - - - -__declspec(dllimport) -ATOM -__stdcall -FindAtomA( - LPCSTR lpString - ); -__declspec(dllimport) -ATOM -__stdcall -FindAtomW( - LPCWSTR lpString - ); - - - - - - -__declspec(dllimport) -UINT -__stdcall -GetAtomNameA( - ATOM nAtom, - LPSTR lpBuffer, - int nSize - ); -__declspec(dllimport) -UINT -__stdcall -GetAtomNameW( - ATOM nAtom, - LPWSTR lpBuffer, - int nSize - ); -# 4533 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -UINT -__stdcall -GetProfileIntA( - LPCSTR lpAppName, - LPCSTR lpKeyName, - INT nDefault - ); -__declspec(dllimport) -UINT -__stdcall -GetProfileIntW( - LPCWSTR lpAppName, - LPCWSTR lpKeyName, - INT nDefault - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetProfileStringA( - LPCSTR lpAppName, - LPCSTR lpKeyName, - LPCSTR lpDefault, - LPSTR lpReturnedString, - DWORD nSize - ); -__declspec(dllimport) -DWORD -__stdcall -GetProfileStringW( - LPCWSTR lpAppName, - LPCWSTR lpKeyName, - LPCWSTR lpDefault, - LPWSTR lpReturnedString, - DWORD nSize - ); -# 4587 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -WriteProfileStringA( - LPCSTR lpAppName, - LPCSTR lpKeyName, - LPCSTR lpString - ); -__declspec(dllimport) -BOOL -__stdcall -WriteProfileStringW( - LPCWSTR lpAppName, - LPCWSTR lpKeyName, - LPCWSTR lpString - ); -# 4615 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetProfileSectionA( - LPCSTR lpAppName, - LPSTR lpReturnedString, - DWORD nSize - ); -__declspec(dllimport) -DWORD -__stdcall -GetProfileSectionW( - LPCWSTR lpAppName, - LPWSTR lpReturnedString, - DWORD nSize - ); -# 4643 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -WriteProfileSectionA( - LPCSTR lpAppName, - LPCSTR lpString - ); -__declspec(dllimport) -BOOL -__stdcall -WriteProfileSectionW( - LPCWSTR lpAppName, - LPCWSTR lpString - ); -# 4669 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -UINT -__stdcall -GetPrivateProfileIntA( - LPCSTR lpAppName, - LPCSTR lpKeyName, - INT nDefault, - LPCSTR lpFileName - ); -__declspec(dllimport) -UINT -__stdcall -GetPrivateProfileIntW( - LPCWSTR lpAppName, - LPCWSTR lpKeyName, - INT nDefault, - LPCWSTR lpFileName - ); -# 4717 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetPrivateProfileStringA( - LPCSTR lpAppName, - LPCSTR lpKeyName, - LPCSTR lpDefault, - LPSTR lpReturnedString, - DWORD nSize, - LPCSTR lpFileName - ); -__declspec(dllimport) -DWORD -__stdcall -GetPrivateProfileStringW( - LPCWSTR lpAppName, - LPCWSTR lpKeyName, - LPCWSTR lpDefault, - LPWSTR lpReturnedString, - DWORD nSize, - LPCWSTR lpFileName - ); -# 4773 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -WritePrivateProfileStringA( - LPCSTR lpAppName, - LPCSTR lpKeyName, - LPCSTR lpString, - LPCSTR lpFileName - ); -__declspec(dllimport) -BOOL -__stdcall -WritePrivateProfileStringW( - LPCWSTR lpAppName, - LPCWSTR lpKeyName, - LPCWSTR lpString, - LPCWSTR lpFileName - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetPrivateProfileSectionA( - LPCSTR lpAppName, - LPSTR lpReturnedString, - DWORD nSize, - LPCSTR lpFileName - ); -__declspec(dllimport) -DWORD -__stdcall -GetPrivateProfileSectionW( - LPCWSTR lpAppName, - LPWSTR lpReturnedString, - DWORD nSize, - LPCWSTR lpFileName - ); -# 4845 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -WritePrivateProfileSectionA( - LPCSTR lpAppName, - LPCSTR lpString, - LPCSTR lpFileName - ); -__declspec(dllimport) -BOOL -__stdcall -WritePrivateProfileSectionW( - LPCWSTR lpAppName, - LPCWSTR lpString, - LPCWSTR lpFileName - ); -# 4873 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetPrivateProfileSectionNamesA( - LPSTR lpszReturnBuffer, - DWORD nSize, - LPCSTR lpFileName - ); -__declspec(dllimport) -DWORD -__stdcall -GetPrivateProfileSectionNamesW( - LPWSTR lpszReturnBuffer, - DWORD nSize, - LPCWSTR lpFileName - ); -# 4917 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetPrivateProfileStructA( - LPCSTR lpszSection, - LPCSTR lpszKey, - LPVOID lpStruct, - UINT uSizeStruct, - LPCSTR szFile - ); -__declspec(dllimport) -BOOL -__stdcall -GetPrivateProfileStructW( - LPCWSTR lpszSection, - LPCWSTR lpszKey, - LPVOID lpStruct, - UINT uSizeStruct, - LPCWSTR szFile - ); -# 4969 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -WritePrivateProfileStructA( - LPCSTR lpszSection, - LPCSTR lpszKey, - LPVOID lpStruct, - UINT uSizeStruct, - LPCSTR szFile - ); -__declspec(dllimport) -BOOL -__stdcall -WritePrivateProfileStructW( - LPCWSTR lpszSection, - LPCWSTR lpszKey, - LPVOID lpStruct, - UINT uSizeStruct, - LPCWSTR szFile - ); -# 5025 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef UINT (__stdcall* PGET_SYSTEM_WOW64_DIRECTORY_A)( LPSTR lpBuffer, UINT uSize); -typedef UINT (__stdcall* PGET_SYSTEM_WOW64_DIRECTORY_W)( LPWSTR lpBuffer, UINT uSize); -# 5099 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetDllDirectoryA( - LPCSTR lpPathName - ); -__declspec(dllimport) -BOOL -__stdcall -SetDllDirectoryW( - LPCWSTR lpPathName - ); -# 5119 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - -DWORD -__stdcall -GetDllDirectoryA( - DWORD nBufferLength, - LPSTR lpBuffer - ); -__declspec(dllimport) - -DWORD -__stdcall -GetDllDirectoryW( - DWORD nBufferLength, - LPWSTR lpBuffer - ); -# 5154 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetSearchPathMode ( - DWORD Flags - ); -# 5193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CreateDirectoryExA( - LPCSTR lpTemplateDirectory, - LPCSTR lpNewDirectory, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); -__declspec(dllimport) -BOOL -__stdcall -CreateDirectoryExW( - LPCWSTR lpTemplateDirectory, - LPCWSTR lpNewDirectory, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); -# 5223 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CreateDirectoryTransactedA( - LPCSTR lpTemplateDirectory, - LPCSTR lpNewDirectory, - LPSECURITY_ATTRIBUTES lpSecurityAttributes, - HANDLE hTransaction - ); -__declspec(dllimport) -BOOL -__stdcall -CreateDirectoryTransactedW( - LPCWSTR lpTemplateDirectory, - LPCWSTR lpNewDirectory, - LPSECURITY_ATTRIBUTES lpSecurityAttributes, - HANDLE hTransaction - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -RemoveDirectoryTransactedA( - LPCSTR lpPathName, - HANDLE hTransaction - ); -__declspec(dllimport) -BOOL -__stdcall -RemoveDirectoryTransactedW( - LPCWSTR lpPathName, - HANDLE hTransaction - ); - - - - - - -__declspec(dllimport) - -DWORD -__stdcall -GetFullPathNameTransactedA( - LPCSTR lpFileName, - DWORD nBufferLength, - LPSTR lpBuffer, - LPSTR *lpFilePart, - HANDLE hTransaction - ); -__declspec(dllimport) - -DWORD -__stdcall -GetFullPathNameTransactedW( - LPCWSTR lpFileName, - DWORD nBufferLength, - LPWSTR lpBuffer, - LPWSTR *lpFilePart, - HANDLE hTransaction - ); -# 5309 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DefineDosDeviceA( - DWORD dwFlags, - LPCSTR lpDeviceName, - LPCSTR lpTargetPath - ); - - - - -__declspec(dllimport) -DWORD -__stdcall -QueryDosDeviceA( - LPCSTR lpDeviceName, - LPSTR lpTargetPath, - DWORD ucchMax - ); -# 5343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -CreateFileTransactedA( - LPCSTR lpFileName, - DWORD dwDesiredAccess, - DWORD dwShareMode, - LPSECURITY_ATTRIBUTES lpSecurityAttributes, - DWORD dwCreationDisposition, - DWORD dwFlagsAndAttributes, - HANDLE hTemplateFile, - HANDLE hTransaction, - PUSHORT pusMiniVersion, - PVOID lpExtendedParameter - ); -__declspec(dllimport) -HANDLE -__stdcall -CreateFileTransactedW( - LPCWSTR lpFileName, - DWORD dwDesiredAccess, - DWORD dwShareMode, - LPSECURITY_ATTRIBUTES lpSecurityAttributes, - DWORD dwCreationDisposition, - DWORD dwFlagsAndAttributes, - HANDLE hTemplateFile, - HANDLE hTransaction, - PUSHORT pusMiniVersion, - PVOID lpExtendedParameter - ); -# 5389 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -ReOpenFile( - HANDLE hOriginalFile, - DWORD dwDesiredAccess, - DWORD dwShareMode, - DWORD dwFlagsAndAttributes - ); -# 5410 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetFileAttributesTransactedA( - LPCSTR lpFileName, - DWORD dwFileAttributes, - HANDLE hTransaction - ); -__declspec(dllimport) -BOOL -__stdcall -SetFileAttributesTransactedW( - LPCWSTR lpFileName, - DWORD dwFileAttributes, - HANDLE hTransaction - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetFileAttributesTransactedA( - LPCSTR lpFileName, - GET_FILEEX_INFO_LEVELS fInfoLevelId, - LPVOID lpFileInformation, - HANDLE hTransaction - ); -__declspec(dllimport) -BOOL -__stdcall -GetFileAttributesTransactedW( - LPCWSTR lpFileName, - GET_FILEEX_INFO_LEVELS fInfoLevelId, - LPVOID lpFileInformation, - HANDLE hTransaction - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetCompressedFileSizeTransactedA( - LPCSTR lpFileName, - LPDWORD lpFileSizeHigh, - HANDLE hTransaction - ); -__declspec(dllimport) -DWORD -__stdcall -GetCompressedFileSizeTransactedW( - LPCWSTR lpFileName, - LPDWORD lpFileSizeHigh, - HANDLE hTransaction - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -DeleteFileTransactedA( - LPCSTR lpFileName, - HANDLE hTransaction - ); -__declspec(dllimport) -BOOL -__stdcall -DeleteFileTransactedW( - LPCWSTR lpFileName, - HANDLE hTransaction - ); -# 5532 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CheckNameLegalDOS8Dot3A( - LPCSTR lpName, - LPSTR lpOemName, - DWORD OemNameSize, - PBOOL pbNameContainsSpaces , - PBOOL pbNameLegal - ); -__declspec(dllimport) -BOOL -__stdcall -CheckNameLegalDOS8Dot3W( - LPCWSTR lpName, - LPSTR lpOemName, - DWORD OemNameSize, - PBOOL pbNameContainsSpaces , - PBOOL pbNameLegal - ); -# 5570 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -FindFirstFileTransactedA( - LPCSTR lpFileName, - FINDEX_INFO_LEVELS fInfoLevelId, - LPVOID lpFindFileData, - FINDEX_SEARCH_OPS fSearchOp, - LPVOID lpSearchFilter, - DWORD dwAdditionalFlags, - HANDLE hTransaction - ); -__declspec(dllimport) -HANDLE -__stdcall -FindFirstFileTransactedW( - LPCWSTR lpFileName, - FINDEX_INFO_LEVELS fInfoLevelId, - LPVOID lpFindFileData, - FINDEX_SEARCH_OPS fSearchOp, - LPVOID lpSearchFilter, - DWORD dwAdditionalFlags, - HANDLE hTransaction - ); -# 5611 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CopyFileA( - LPCSTR lpExistingFileName, - LPCSTR lpNewFileName, - BOOL bFailIfExists - ); -__declspec(dllimport) -BOOL -__stdcall -CopyFileW( - LPCWSTR lpExistingFileName, - LPCWSTR lpNewFileName, - BOOL bFailIfExists - ); -# 5663 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef -DWORD -(__stdcall *LPPROGRESS_ROUTINE)( - LARGE_INTEGER TotalFileSize, - LARGE_INTEGER TotalBytesTransferred, - LARGE_INTEGER StreamSize, - LARGE_INTEGER StreamBytesTransferred, - DWORD dwStreamNumber, - DWORD dwCallbackReason, - HANDLE hSourceFile, - HANDLE hDestinationFile, - LPVOID lpData - ); - -__declspec(dllimport) -BOOL -__stdcall -CopyFileExA( - LPCSTR lpExistingFileName, - LPCSTR lpNewFileName, - LPPROGRESS_ROUTINE lpProgressRoutine, - LPVOID lpData, - - LPBOOL pbCancel, - DWORD dwCopyFlags - ); -__declspec(dllimport) -BOOL -__stdcall -CopyFileExW( - LPCWSTR lpExistingFileName, - LPCWSTR lpNewFileName, - LPPROGRESS_ROUTINE lpProgressRoutine, - LPVOID lpData, - - LPBOOL pbCancel, - DWORD dwCopyFlags - ); -# 5715 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CopyFileTransactedA( - LPCSTR lpExistingFileName, - LPCSTR lpNewFileName, - LPPROGRESS_ROUTINE lpProgressRoutine, - LPVOID lpData, - LPBOOL pbCancel, - DWORD dwCopyFlags, - HANDLE hTransaction - ); -__declspec(dllimport) -BOOL -__stdcall -CopyFileTransactedW( - LPCWSTR lpExistingFileName, - LPCWSTR lpNewFileName, - LPPROGRESS_ROUTINE lpProgressRoutine, - LPVOID lpData, - LPBOOL pbCancel, - DWORD dwCopyFlags, - HANDLE hTransaction - ); -# 5759 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef enum _COPYFILE2_MESSAGE_TYPE { - COPYFILE2_CALLBACK_NONE = 0, - COPYFILE2_CALLBACK_CHUNK_STARTED, - COPYFILE2_CALLBACK_CHUNK_FINISHED, - COPYFILE2_CALLBACK_STREAM_STARTED, - COPYFILE2_CALLBACK_STREAM_FINISHED, - COPYFILE2_CALLBACK_POLL_CONTINUE, - COPYFILE2_CALLBACK_ERROR, - COPYFILE2_CALLBACK_MAX, -} COPYFILE2_MESSAGE_TYPE; - -typedef enum _COPYFILE2_MESSAGE_ACTION { - COPYFILE2_PROGRESS_CONTINUE = 0, - COPYFILE2_PROGRESS_CANCEL, - COPYFILE2_PROGRESS_STOP, - COPYFILE2_PROGRESS_QUIET, - COPYFILE2_PROGRESS_PAUSE, -} COPYFILE2_MESSAGE_ACTION; - -typedef enum _COPYFILE2_COPY_PHASE { - COPYFILE2_PHASE_NONE = 0, - COPYFILE2_PHASE_PREPARE_SOURCE, - COPYFILE2_PHASE_PREPARE_DEST, - COPYFILE2_PHASE_READ_SOURCE, - COPYFILE2_PHASE_WRITE_DESTINATION, - COPYFILE2_PHASE_SERVER_COPY, - COPYFILE2_PHASE_NAMEGRAFT_COPY, - - COPYFILE2_PHASE_MAX, -} COPYFILE2_COPY_PHASE; - - - -typedef struct COPYFILE2_MESSAGE { - - COPYFILE2_MESSAGE_TYPE Type; - DWORD dwPadding; - - union { - - struct { - DWORD dwStreamNumber; - DWORD dwReserved; - HANDLE hSourceFile; - HANDLE hDestinationFile; - ULARGE_INTEGER uliChunkNumber; - ULARGE_INTEGER uliChunkSize; - ULARGE_INTEGER uliStreamSize; - ULARGE_INTEGER uliTotalFileSize; - } ChunkStarted; - - struct { - DWORD dwStreamNumber; - DWORD dwFlags; - HANDLE hSourceFile; - HANDLE hDestinationFile; - ULARGE_INTEGER uliChunkNumber; - ULARGE_INTEGER uliChunkSize; - ULARGE_INTEGER uliStreamSize; - ULARGE_INTEGER uliStreamBytesTransferred; - ULARGE_INTEGER uliTotalFileSize; - ULARGE_INTEGER uliTotalBytesTransferred; - } ChunkFinished; - - struct { - DWORD dwStreamNumber; - DWORD dwReserved; - HANDLE hSourceFile; - HANDLE hDestinationFile; - ULARGE_INTEGER uliStreamSize; - ULARGE_INTEGER uliTotalFileSize; - } StreamStarted; - - struct { - DWORD dwStreamNumber; - DWORD dwReserved; - HANDLE hSourceFile; - HANDLE hDestinationFile; - ULARGE_INTEGER uliStreamSize; - ULARGE_INTEGER uliStreamBytesTransferred; - ULARGE_INTEGER uliTotalFileSize; - ULARGE_INTEGER uliTotalBytesTransferred; - } StreamFinished; - - struct { - DWORD dwReserved; - } PollContinue; - - struct { - COPYFILE2_COPY_PHASE CopyPhase; - DWORD dwStreamNumber; - HRESULT hrFailure; - DWORD dwReserved; - ULARGE_INTEGER uliChunkNumber; - ULARGE_INTEGER uliStreamSize; - ULARGE_INTEGER uliStreamBytesTransferred; - ULARGE_INTEGER uliTotalFileSize; - ULARGE_INTEGER uliTotalBytesTransferred; - } Error; - - } Info; - -} COPYFILE2_MESSAGE; - -typedef -COPYFILE2_MESSAGE_ACTION (__stdcall *PCOPYFILE2_PROGRESS_ROUTINE)( - const COPYFILE2_MESSAGE *pMessage, - PVOID pvCallbackContext -); - -typedef struct COPYFILE2_EXTENDED_PARAMETERS { - DWORD dwSize; - DWORD dwCopyFlags; - BOOL *pfCancel; - PCOPYFILE2_PROGRESS_ROUTINE pProgressRoutine; - PVOID pvCallbackContext; -} COPYFILE2_EXTENDED_PARAMETERS; -# 5891 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct COPYFILE2_EXTENDED_PARAMETERS_V2 { - - DWORD dwSize; - DWORD dwCopyFlags; - BOOL *pfCancel; - PCOPYFILE2_PROGRESS_ROUTINE pProgressRoutine; - PVOID pvCallbackContext; - - - - DWORD dwCopyFlagsV2; -# 5910 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 - ULONG ioDesiredSize; - - - - ULONG ioDesiredRate; - - - PVOID reserved[8]; - -} COPYFILE2_EXTENDED_PARAMETERS_V2; -# 5936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HRESULT -__stdcall -CopyFile2( - PCWSTR pwszExistingFileName, - PCWSTR pwszNewFileName, - COPYFILE2_EXTENDED_PARAMETERS *pExtendedParameters -); -# 5955 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -MoveFileA( - LPCSTR lpExistingFileName, - LPCSTR lpNewFileName - ); -__declspec(dllimport) -BOOL -__stdcall -MoveFileW( - LPCWSTR lpExistingFileName, - LPCWSTR lpNewFileName - ); -# 6001 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -MoveFileExA( - LPCSTR lpExistingFileName, - LPCSTR lpNewFileName, - DWORD dwFlags - ); -__declspec(dllimport) -BOOL -__stdcall -MoveFileExW( - LPCWSTR lpExistingFileName, - LPCWSTR lpNewFileName, - DWORD dwFlags - ); -# 6030 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -MoveFileWithProgressA( - LPCSTR lpExistingFileName, - LPCSTR lpNewFileName, - LPPROGRESS_ROUTINE lpProgressRoutine, - LPVOID lpData, - DWORD dwFlags - ); -__declspec(dllimport) -BOOL -__stdcall -MoveFileWithProgressW( - LPCWSTR lpExistingFileName, - LPCWSTR lpNewFileName, - LPPROGRESS_ROUTINE lpProgressRoutine, - LPVOID lpData, - DWORD dwFlags - ); -# 6064 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -MoveFileTransactedA( - LPCSTR lpExistingFileName, - LPCSTR lpNewFileName, - LPPROGRESS_ROUTINE lpProgressRoutine, - LPVOID lpData, - DWORD dwFlags, - HANDLE hTransaction - ); -__declspec(dllimport) -BOOL -__stdcall -MoveFileTransactedW( - LPCWSTR lpExistingFileName, - LPCWSTR lpNewFileName, - LPPROGRESS_ROUTINE lpProgressRoutine, - LPVOID lpData, - DWORD dwFlags, - HANDLE hTransaction - ); -# 6123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -ReplaceFileA( - LPCSTR lpReplacedFileName, - LPCSTR lpReplacementFileName, - LPCSTR lpBackupFileName, - DWORD dwReplaceFlags, - LPVOID lpExclude, - LPVOID lpReserved - ); -__declspec(dllimport) -BOOL -__stdcall -ReplaceFileW( - LPCWSTR lpReplacedFileName, - LPCWSTR lpReplacementFileName, - LPCWSTR lpBackupFileName, - DWORD dwReplaceFlags, - LPVOID lpExclude, - LPVOID lpReserved - ); -# 6157 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CreateHardLinkA( - LPCSTR lpFileName, - LPCSTR lpExistingFileName, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); -__declspec(dllimport) -BOOL -__stdcall -CreateHardLinkW( - LPCWSTR lpFileName, - LPCWSTR lpExistingFileName, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); -# 6192 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CreateHardLinkTransactedA( - LPCSTR lpFileName, - LPCSTR lpExistingFileName, - LPSECURITY_ATTRIBUTES lpSecurityAttributes, - HANDLE hTransaction - ); -__declspec(dllimport) -BOOL -__stdcall -CreateHardLinkTransactedW( - LPCWSTR lpFileName, - LPCWSTR lpExistingFileName, - LPSECURITY_ATTRIBUTES lpSecurityAttributes, - HANDLE hTransaction - ); -# 6220 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -FindFirstStreamTransactedW ( - LPCWSTR lpFileName, - STREAM_INFO_LEVELS InfoLevel, - LPVOID lpFindStreamData, - DWORD dwFlags, - HANDLE hTransaction - ); - -__declspec(dllimport) -HANDLE -__stdcall -FindFirstFileNameTransactedW ( - LPCWSTR lpFileName, - DWORD dwFlags, - LPDWORD StringLength, - PWSTR LinkName, - HANDLE hTransaction - ); -# 6250 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -CreateNamedPipeA( - LPCSTR lpName, - DWORD dwOpenMode, - DWORD dwPipeMode, - DWORD nMaxInstances, - DWORD nOutBufferSize, - DWORD nInBufferSize, - DWORD nDefaultTimeOut, - LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); -# 6273 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetNamedPipeHandleStateA( - HANDLE hNamedPipe, - LPDWORD lpState, - LPDWORD lpCurInstances, - LPDWORD lpMaxCollectionCount, - LPDWORD lpCollectDataTimeout, - LPSTR lpUserName, - DWORD nMaxUserNameSize - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -CallNamedPipeA( - LPCSTR lpNamedPipeName, - LPVOID lpInBuffer, - DWORD nInBufferSize, - LPVOID lpOutBuffer, - DWORD nOutBufferSize, - LPDWORD lpBytesRead, - DWORD nTimeOut - ); -# 6312 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -WaitNamedPipeA( - LPCSTR lpNamedPipeName, - DWORD nTimeOut - ); -# 6338 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetNamedPipeClientComputerNameA( - HANDLE Pipe, - LPSTR ClientComputerName, - ULONG ClientComputerNameLength - ); -# 6357 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetNamedPipeClientProcessId( - HANDLE Pipe, - PULONG ClientProcessId - ); - -__declspec(dllimport) -BOOL -__stdcall -GetNamedPipeClientSessionId( - HANDLE Pipe, - PULONG ClientSessionId - ); - -__declspec(dllimport) -BOOL -__stdcall -GetNamedPipeServerProcessId( - HANDLE Pipe, - PULONG ServerProcessId - ); - -__declspec(dllimport) -BOOL -__stdcall -GetNamedPipeServerSessionId( - HANDLE Pipe, - PULONG ServerSessionId - ); -# 6397 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetVolumeLabelA( - LPCSTR lpRootPathName, - LPCSTR lpVolumeName - ); -__declspec(dllimport) -BOOL -__stdcall -SetVolumeLabelW( - LPCWSTR lpRootPathName, - LPCWSTR lpVolumeName - ); -# 6426 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetFileBandwidthReservation( - HANDLE hFile, - DWORD nPeriodMilliseconds, - DWORD nBytesPerPeriod, - BOOL bDiscardable, - LPDWORD lpTransferSize, - LPDWORD lpNumOutstandingRequests - ); - -__declspec(dllimport) -BOOL -__stdcall -GetFileBandwidthReservation( - HANDLE hFile, - LPDWORD lpPeriodMilliseconds, - LPDWORD lpBytesPerPeriod, - LPBOOL pDiscardable, - LPDWORD lpTransferSize, - LPDWORD lpNumOutstandingRequests - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -ClearEventLogA ( - HANDLE hEventLog, - LPCSTR lpBackupFileName - ); -__declspec(dllimport) -BOOL -__stdcall -ClearEventLogW ( - HANDLE hEventLog, - LPCWSTR lpBackupFileName - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -BackupEventLogA ( - HANDLE hEventLog, - LPCSTR lpBackupFileName - ); -__declspec(dllimport) -BOOL -__stdcall -BackupEventLogW ( - HANDLE hEventLog, - LPCWSTR lpBackupFileName - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CloseEventLog ( - HANDLE hEventLog - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -DeregisterEventSource ( - HANDLE hEventLog - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -NotifyChangeEventLog( - HANDLE hEventLog, - HANDLE hEvent - ); - -__declspec(dllimport) -BOOL -__stdcall -GetNumberOfEventLogRecords ( - HANDLE hEventLog, - PDWORD NumberOfRecords - ); - -__declspec(dllimport) -BOOL -__stdcall -GetOldestEventLogRecord ( - HANDLE hEventLog, - PDWORD OldestRecord - ); - -__declspec(dllimport) -HANDLE -__stdcall -OpenEventLogA ( - LPCSTR lpUNCServerName, - LPCSTR lpSourceName - ); -__declspec(dllimport) -HANDLE -__stdcall -OpenEventLogW ( - LPCWSTR lpUNCServerName, - LPCWSTR lpSourceName - ); -# 6572 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -RegisterEventSourceA ( - LPCSTR lpUNCServerName, - LPCSTR lpSourceName - ); -__declspec(dllimport) -HANDLE -__stdcall -RegisterEventSourceW ( - LPCWSTR lpUNCServerName, - LPCWSTR lpSourceName - ); -# 6597 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -OpenBackupEventLogA ( - LPCSTR lpUNCServerName, - LPCSTR lpFileName - ); -__declspec(dllimport) -HANDLE -__stdcall -OpenBackupEventLogW ( - LPCWSTR lpUNCServerName, - LPCWSTR lpFileName - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -ReadEventLogA ( - HANDLE hEventLog, - DWORD dwReadFlags, - DWORD dwRecordOffset, - LPVOID lpBuffer, - DWORD nNumberOfBytesToRead, - DWORD *pnBytesRead, - DWORD *pnMinNumberOfBytesNeeded - ); -__declspec(dllimport) -BOOL -__stdcall -ReadEventLogW ( - HANDLE hEventLog, - DWORD dwReadFlags, - DWORD dwRecordOffset, - LPVOID lpBuffer, - DWORD nNumberOfBytesToRead, - DWORD *pnBytesRead, - DWORD *pnMinNumberOfBytesNeeded - ); -# 6653 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -ReportEventA ( - HANDLE hEventLog, - WORD wType, - WORD wCategory, - DWORD dwEventID, - PSID lpUserSid, - WORD wNumStrings, - DWORD dwDataSize, - LPCSTR *lpStrings, - LPVOID lpRawData - ); -__declspec(dllimport) -BOOL -__stdcall -ReportEventW ( - HANDLE hEventLog, - WORD wType, - WORD wCategory, - DWORD dwEventID, - PSID lpUserSid, - WORD wNumStrings, - DWORD dwDataSize, - LPCWSTR *lpStrings, - LPVOID lpRawData - ); -# 6695 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct _EVENTLOG_FULL_INFORMATION -{ - DWORD dwFull; -} -EVENTLOG_FULL_INFORMATION, *LPEVENTLOG_FULL_INFORMATION; - -__declspec(dllimport) -BOOL -__stdcall -GetEventLogInformation ( - HANDLE hEventLog, - DWORD dwInfoLevel, - LPVOID lpBuffer, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded - ); -# 6719 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef ULONG OPERATION_ID; - - - - - -typedef struct _OPERATION_START_PARAMETERS { - ULONG Version; - OPERATION_ID OperationId; - ULONG Flags; -} OPERATION_START_PARAMETERS, *POPERATION_START_PARAMETERS; - - - - - - - -typedef struct _OPERATION_END_PARAMETERS { - ULONG Version; - OPERATION_ID OperationId; - ULONG Flags; -} OPERATION_END_PARAMETERS, *POPERATION_END_PARAMETERS; - - - -__declspec(dllimport) -BOOL -__stdcall -OperationStart ( - OPERATION_START_PARAMETERS* OperationStartParams - ); - -__declspec(dllimport) -BOOL -__stdcall -OperationEnd ( - OPERATION_END_PARAMETERS* OperationEndParams - ); -# 6767 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -AccessCheckAndAuditAlarmA ( - LPCSTR SubsystemName, - LPVOID HandleId, - LPSTR ObjectTypeName, - LPSTR ObjectName, - PSECURITY_DESCRIPTOR SecurityDescriptor, - DWORD DesiredAccess, - PGENERIC_MAPPING GenericMapping, - BOOL ObjectCreation, - LPDWORD GrantedAccess, - LPBOOL AccessStatus, - LPBOOL pfGenerateOnClose - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -AccessCheckByTypeAndAuditAlarmA ( - LPCSTR SubsystemName, - LPVOID HandleId, - LPCSTR ObjectTypeName, - LPCSTR ObjectName, - PSECURITY_DESCRIPTOR SecurityDescriptor, - PSID PrincipalSelfSid, - DWORD DesiredAccess, - AUDIT_EVENT_TYPE AuditType, - DWORD Flags, - POBJECT_TYPE_LIST ObjectTypeList, - DWORD ObjectTypeListLength, - PGENERIC_MAPPING GenericMapping, - BOOL ObjectCreation, - LPDWORD GrantedAccess, - LPBOOL AccessStatus, - LPBOOL pfGenerateOnClose - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -AccessCheckByTypeResultListAndAuditAlarmA ( - LPCSTR SubsystemName, - LPVOID HandleId, - LPCSTR ObjectTypeName, - LPCSTR ObjectName, - PSECURITY_DESCRIPTOR SecurityDescriptor, - PSID PrincipalSelfSid, - DWORD DesiredAccess, - AUDIT_EVENT_TYPE AuditType, - DWORD Flags, - POBJECT_TYPE_LIST ObjectTypeList, - DWORD ObjectTypeListLength, - PGENERIC_MAPPING GenericMapping, - BOOL ObjectCreation, - LPDWORD GrantedAccess, - LPDWORD AccessStatusList, - LPBOOL pfGenerateOnClose - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -AccessCheckByTypeResultListAndAuditAlarmByHandleA ( - LPCSTR SubsystemName, - LPVOID HandleId, - HANDLE ClientToken, - LPCSTR ObjectTypeName, - LPCSTR ObjectName, - PSECURITY_DESCRIPTOR SecurityDescriptor, - PSID PrincipalSelfSid, - DWORD DesiredAccess, - AUDIT_EVENT_TYPE AuditType, - DWORD Flags, - POBJECT_TYPE_LIST ObjectTypeList, - DWORD ObjectTypeListLength, - PGENERIC_MAPPING GenericMapping, - BOOL ObjectCreation, - LPDWORD GrantedAccess, - LPDWORD AccessStatusList, - LPBOOL pfGenerateOnClose - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -ObjectOpenAuditAlarmA ( - LPCSTR SubsystemName, - LPVOID HandleId, - LPSTR ObjectTypeName, - LPSTR ObjectName, - PSECURITY_DESCRIPTOR pSecurityDescriptor, - HANDLE ClientToken, - DWORD DesiredAccess, - DWORD GrantedAccess, - PPRIVILEGE_SET Privileges, - BOOL ObjectCreation, - BOOL AccessGranted, - LPBOOL GenerateOnClose - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -ObjectPrivilegeAuditAlarmA ( - LPCSTR SubsystemName, - LPVOID HandleId, - HANDLE ClientToken, - DWORD DesiredAccess, - PPRIVILEGE_SET Privileges, - BOOL AccessGranted - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -ObjectCloseAuditAlarmA ( - LPCSTR SubsystemName, - LPVOID HandleId, - BOOL GenerateOnClose - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -ObjectDeleteAuditAlarmA ( - LPCSTR SubsystemName, - LPVOID HandleId, - BOOL GenerateOnClose - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -PrivilegedServiceAuditAlarmA ( - LPCSTR SubsystemName, - LPCSTR ServiceName, - HANDLE ClientToken, - PPRIVILEGE_SET Privileges, - BOOL AccessGranted - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -AddConditionalAce ( - PACL pAcl, - DWORD dwAceRevision, - DWORD AceFlags, - UCHAR AceType, - DWORD AccessMask, - PSID pSid, - PWCHAR ConditionStr, - DWORD *ReturnLength - ); -# 6962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetFileSecurityA ( - LPCSTR lpFileName, - SECURITY_INFORMATION SecurityInformation, - PSECURITY_DESCRIPTOR pSecurityDescriptor - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -GetFileSecurityA ( - LPCSTR lpFileName, - SECURITY_INFORMATION RequestedInformation, - PSECURITY_DESCRIPTOR pSecurityDescriptor, - DWORD nLength, - LPDWORD lpnLengthNeeded - ); -# 6995 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -ReadDirectoryChangesW( - HANDLE hDirectory, - LPVOID lpBuffer, - DWORD nBufferLength, - BOOL bWatchSubtree, - DWORD dwNotifyFilter, - LPDWORD lpBytesReturned, - LPOVERLAPPED lpOverlapped, - LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine - ); - - -__declspec(dllimport) -BOOL -__stdcall -ReadDirectoryChangesExW( - HANDLE hDirectory, - LPVOID lpBuffer, - DWORD nBufferLength, - BOOL bWatchSubtree, - DWORD dwNotifyFilter, - LPDWORD lpBytesReturned, - LPOVERLAPPED lpOverlapped, - LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, - READ_DIRECTORY_NOTIFY_INFORMATION_CLASS ReadDirectoryNotifyInformationClass - ); -# 7035 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - -LPVOID -__stdcall -MapViewOfFileExNuma( - HANDLE hFileMappingObject, - DWORD dwDesiredAccess, - DWORD dwFileOffsetHigh, - DWORD dwFileOffsetLow, - SIZE_T dwNumberOfBytesToMap, - LPVOID lpBaseAddress, - DWORD nndPreferred - ); - - - -__declspec(dllimport) -BOOL -__stdcall -IsBadReadPtr( - const void *lp, - UINT_PTR ucb - ); - -__declspec(dllimport) -BOOL -__stdcall -IsBadWritePtr( - LPVOID lp, - UINT_PTR ucb - ); - -__declspec(dllimport) -BOOL -__stdcall -IsBadHugeReadPtr( - const void *lp, - UINT_PTR ucb - ); - -__declspec(dllimport) -BOOL -__stdcall -IsBadHugeWritePtr( - LPVOID lp, - UINT_PTR ucb - ); - -__declspec(dllimport) -BOOL -__stdcall -IsBadCodePtr( - FARPROC lpfn - ); - -__declspec(dllimport) -BOOL -__stdcall -IsBadStringPtrA( - LPCSTR lpsz, - UINT_PTR ucchMax - ); -__declspec(dllimport) -BOOL -__stdcall -IsBadStringPtrW( - LPCWSTR lpsz, - UINT_PTR ucchMax - ); -# 7116 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - BOOL -__stdcall -LookupAccountSidA( - LPCSTR lpSystemName, - PSID Sid, - LPSTR Name, - LPDWORD cchName, - LPSTR ReferencedDomainName, - LPDWORD cchReferencedDomainName, - PSID_NAME_USE peUse - ); -__declspec(dllimport) - BOOL -__stdcall -LookupAccountSidW( - LPCWSTR lpSystemName, - PSID Sid, - LPWSTR Name, - LPDWORD cchName, - LPWSTR ReferencedDomainName, - LPDWORD cchReferencedDomainName, - PSID_NAME_USE peUse - ); - - - - - - -__declspec(dllimport) - BOOL -__stdcall -LookupAccountNameA( - LPCSTR lpSystemName, - LPCSTR lpAccountName, - PSID Sid, - LPDWORD cbSid, - LPSTR ReferencedDomainName, - LPDWORD cchReferencedDomainName, - PSID_NAME_USE peUse - ); -__declspec(dllimport) - BOOL -__stdcall -LookupAccountNameW( - LPCWSTR lpSystemName, - LPCWSTR lpAccountName, - PSID Sid, - LPDWORD cbSid, - LPWSTR ReferencedDomainName, - LPDWORD cchReferencedDomainName, - PSID_NAME_USE peUse - ); -# 7184 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - BOOL -__stdcall -LookupAccountNameLocalA( - LPCSTR lpAccountName, - PSID Sid, - LPDWORD cbSid, - LPSTR ReferencedDomainName, - LPDWORD cchReferencedDomainName, - PSID_NAME_USE peUse - ); -__declspec(dllimport) - BOOL -__stdcall -LookupAccountNameLocalW( - LPCWSTR lpAccountName, - PSID Sid, - LPDWORD cbSid, - LPWSTR ReferencedDomainName, - LPDWORD cchReferencedDomainName, - PSID_NAME_USE peUse - ); - - - - - - -__declspec(dllimport) - BOOL -__stdcall -LookupAccountSidLocalA( - PSID Sid, - LPSTR Name, - LPDWORD cchName, - LPSTR ReferencedDomainName, - LPDWORD cchReferencedDomainName, - PSID_NAME_USE peUse - ); -__declspec(dllimport) - BOOL -__stdcall -LookupAccountSidLocalW( - PSID Sid, - LPWSTR Name, - LPDWORD cchName, - LPWSTR ReferencedDomainName, - LPDWORD cchReferencedDomainName, - PSID_NAME_USE peUse - ); -# 7270 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -LookupPrivilegeValueA( - LPCSTR lpSystemName, - LPCSTR lpName, - PLUID lpLuid - ); -__declspec(dllimport) -BOOL -__stdcall -LookupPrivilegeValueW( - LPCWSTR lpSystemName, - LPCWSTR lpName, - PLUID lpLuid - ); - - - - - - -__declspec(dllimport) - BOOL -__stdcall -LookupPrivilegeNameA( - LPCSTR lpSystemName, - PLUID lpLuid, - LPSTR lpName, - LPDWORD cchName - ); -__declspec(dllimport) - BOOL -__stdcall -LookupPrivilegeNameW( - LPCWSTR lpSystemName, - PLUID lpLuid, - LPWSTR lpName, - LPDWORD cchName - ); - - - - - - -__declspec(dllimport) - BOOL -__stdcall -LookupPrivilegeDisplayNameA( - LPCSTR lpSystemName, - LPCSTR lpName, - LPSTR lpDisplayName, - LPDWORD cchDisplayName, - LPDWORD lpLanguageId - ); -__declspec(dllimport) - BOOL -__stdcall -LookupPrivilegeDisplayNameW( - LPCWSTR lpSystemName, - LPCWSTR lpName, - LPWSTR lpDisplayName, - LPDWORD cchDisplayName, - LPDWORD lpLanguageId - ); -# 7348 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -BuildCommDCBA( - LPCSTR lpDef, - LPDCB lpDCB - ); -__declspec(dllimport) -BOOL -__stdcall -BuildCommDCBW( - LPCWSTR lpDef, - LPDCB lpDCB - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -BuildCommDCBAndTimeoutsA( - LPCSTR lpDef, - LPDCB lpDCB, - LPCOMMTIMEOUTS lpCommTimeouts - ); -__declspec(dllimport) -BOOL -__stdcall -BuildCommDCBAndTimeoutsW( - LPCWSTR lpDef, - LPDCB lpDCB, - LPCOMMTIMEOUTS lpCommTimeouts - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CommConfigDialogA( - LPCSTR lpszName, - HWND hWnd, - LPCOMMCONFIG lpCC - ); -__declspec(dllimport) -BOOL -__stdcall -CommConfigDialogW( - LPCWSTR lpszName, - HWND hWnd, - LPCOMMCONFIG lpCC - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetDefaultCommConfigA( - LPCSTR lpszName, - LPCOMMCONFIG lpCC, - LPDWORD lpdwSize - ); -__declspec(dllimport) -BOOL -__stdcall -GetDefaultCommConfigW( - LPCWSTR lpszName, - LPCOMMCONFIG lpCC, - LPDWORD lpdwSize - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetDefaultCommConfigA( - LPCSTR lpszName, - LPCOMMCONFIG lpCC, - DWORD dwSize - ); -__declspec(dllimport) -BOOL -__stdcall -SetDefaultCommConfigW( - LPCWSTR lpszName, - LPCOMMCONFIG lpCC, - DWORD dwSize - ); -# 7468 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -GetComputerNameA ( - LPSTR lpBuffer, - LPDWORD nSize - ); -__declspec(dllimport) - -BOOL -__stdcall -GetComputerNameW ( - LPWSTR lpBuffer, - LPDWORD nSize - ); -# 7499 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -DnsHostnameToComputerNameA ( - LPCSTR Hostname, - LPSTR ComputerName, - LPDWORD nSize - ); -__declspec(dllimport) - -BOOL -__stdcall -DnsHostnameToComputerNameW ( - LPCWSTR Hostname, - LPWSTR ComputerName, - LPDWORD nSize - ); -# 7525 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetUserNameA ( - LPSTR lpBuffer, - LPDWORD pcbBuffer - ); -__declspec(dllimport) -BOOL -__stdcall -GetUserNameW ( - LPWSTR lpBuffer, - LPDWORD pcbBuffer - ); -# 7573 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -LogonUserA ( - LPCSTR lpszUsername, - LPCSTR lpszDomain, - LPCSTR lpszPassword, - DWORD dwLogonType, - DWORD dwLogonProvider, - PHANDLE phToken - ); -__declspec(dllimport) -BOOL -__stdcall -LogonUserW ( - LPCWSTR lpszUsername, - LPCWSTR lpszDomain, - LPCWSTR lpszPassword, - DWORD dwLogonType, - DWORD dwLogonProvider, - PHANDLE phToken - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -LogonUserExA ( - LPCSTR lpszUsername, - LPCSTR lpszDomain, - LPCSTR lpszPassword, - DWORD dwLogonType, - DWORD dwLogonProvider, - PHANDLE phToken, - PSID *ppLogonSid, - PVOID *ppProfileBuffer, - LPDWORD pdwProfileLength, - PQUOTA_LIMITS pQuotaLimits - ); -__declspec(dllimport) -BOOL -__stdcall -LogonUserExW ( - LPCWSTR lpszUsername, - LPCWSTR lpszDomain, - LPCWSTR lpszPassword, - DWORD dwLogonType, - DWORD dwLogonProvider, - PHANDLE phToken, - PSID *ppLogonSid, - PVOID *ppProfileBuffer, - LPDWORD pdwProfileLength, - PQUOTA_LIMITS pQuotaLimits - ); -# 7657 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - BOOL -__stdcall -CreateProcessWithLogonW( - LPCWSTR lpUsername, - LPCWSTR lpDomain, - LPCWSTR lpPassword, - DWORD dwLogonFlags, - LPCWSTR lpApplicationName, - LPWSTR lpCommandLine, - DWORD dwCreationFlags, - LPVOID lpEnvironment, - LPCWSTR lpCurrentDirectory, - LPSTARTUPINFOW lpStartupInfo, - LPPROCESS_INFORMATION lpProcessInformation - ); - -__declspec(dllimport) - BOOL -__stdcall -CreateProcessWithTokenW( - HANDLE hToken, - DWORD dwLogonFlags, - LPCWSTR lpApplicationName, - LPWSTR lpCommandLine, - DWORD dwCreationFlags, - LPVOID lpEnvironment, - LPCWSTR lpCurrentDirectory, - LPSTARTUPINFOW lpStartupInfo, - LPPROCESS_INFORMATION lpProcessInformation - ); - - - -__declspec(dllimport) -BOOL -__stdcall -IsTokenUntrusted( - HANDLE TokenHandle - ); -# 7709 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -RegisterWaitForSingleObject( - PHANDLE phNewWaitObject, - HANDLE hObject, - WAITORTIMERCALLBACK Callback, - PVOID Context, - ULONG dwMilliseconds, - ULONG dwFlags - ); - -__declspec(dllimport) - -BOOL -__stdcall -UnregisterWait( - HANDLE WaitHandle - ); - -__declspec(dllimport) -BOOL -__stdcall -BindIoCompletionCallback ( - HANDLE FileHandle, - LPOVERLAPPED_COMPLETION_ROUTINE Function, - ULONG Flags - ); - -__declspec(dllimport) -HANDLE -__stdcall -SetTimerQueueTimer( - HANDLE TimerQueue, - WAITORTIMERCALLBACK Callback, - PVOID Parameter, - DWORD DueTime, - DWORD Period, - BOOL PreferIo - ); - -__declspec(dllimport) - -BOOL -__stdcall -CancelTimerQueueTimer( - HANDLE TimerQueue, - HANDLE Timer - ); -# 7771 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__forceinline -void -InitializeThreadpoolEnvironment( - PTP_CALLBACK_ENVIRON pcbe - ) -{ - TpInitializeCallbackEnviron(pcbe); -} - -__forceinline -void -SetThreadpoolCallbackPool( - PTP_CALLBACK_ENVIRON pcbe, - PTP_POOL ptpp - ) -{ - TpSetCallbackThreadpool(pcbe, ptpp); -} - -__forceinline -void -SetThreadpoolCallbackCleanupGroup( - PTP_CALLBACK_ENVIRON pcbe, - PTP_CLEANUP_GROUP ptpcg, - PTP_CLEANUP_GROUP_CANCEL_CALLBACK pfng - ) -{ - TpSetCallbackCleanupGroup(pcbe, ptpcg, pfng); -} - -__forceinline -void -SetThreadpoolCallbackRunsLong( - PTP_CALLBACK_ENVIRON pcbe - ) -{ - TpSetCallbackLongFunction(pcbe); -} - -__forceinline -void -SetThreadpoolCallbackLibrary( - PTP_CALLBACK_ENVIRON pcbe, - PVOID mod - ) -{ - TpSetCallbackRaceWithDll(pcbe, mod); -} - - - -__forceinline -void -SetThreadpoolCallbackPriority( - PTP_CALLBACK_ENVIRON pcbe, - TP_CALLBACK_PRIORITY Priority - ) -{ - TpSetCallbackPriority(pcbe, Priority); -} - - - -__forceinline -void -DestroyThreadpoolEnvironment( - PTP_CALLBACK_ENVIRON pcbe - ) -{ - TpDestroyCallbackEnviron(pcbe); -} -# 7858 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__forceinline -void -SetThreadpoolCallbackPersistent( - PTP_CALLBACK_ENVIRON pcbe - ) -{ - TpSetCallbackPersistent(pcbe); -} -# 7879 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -CreatePrivateNamespaceA( - LPSECURITY_ATTRIBUTES lpPrivateNamespaceAttributes, - LPVOID lpBoundaryDescriptor, - LPCSTR lpAliasPrefix - ); - - - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -OpenPrivateNamespaceA( - LPVOID lpBoundaryDescriptor, - LPCSTR lpAliasPrefix - ); -# 7915 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) - -HANDLE -__stdcall -CreateBoundaryDescriptorA( - LPCSTR Name, - ULONG Flags - ); -# 7936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -AddIntegrityLabelToBoundaryDescriptor( - HANDLE * BoundaryDescriptor, - PSID IntegrityLabel - ); -# 7966 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct tagHW_PROFILE_INFOA { - DWORD dwDockInfo; - CHAR szHwProfileGuid[39]; - CHAR szHwProfileName[80]; -} HW_PROFILE_INFOA, *LPHW_PROFILE_INFOA; -typedef struct tagHW_PROFILE_INFOW { - DWORD dwDockInfo; - WCHAR szHwProfileGuid[39]; - WCHAR szHwProfileName[80]; -} HW_PROFILE_INFOW, *LPHW_PROFILE_INFOW; - - - - -typedef HW_PROFILE_INFOA HW_PROFILE_INFO; -typedef LPHW_PROFILE_INFOA LPHW_PROFILE_INFO; - - - -__declspec(dllimport) -BOOL -__stdcall -GetCurrentHwProfileA ( - LPHW_PROFILE_INFOA lpHwProfileInfo - ); -__declspec(dllimport) -BOOL -__stdcall -GetCurrentHwProfileW ( - LPHW_PROFILE_INFOW lpHwProfileInfo - ); -# 8010 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -VerifyVersionInfoA( - LPOSVERSIONINFOEXA lpVersionInformation, - DWORD dwTypeMask, - DWORDLONG dwlConditionMask - ); -__declspec(dllimport) -BOOL -__stdcall -VerifyVersionInfoW( - LPOSVERSIONINFOEXW lpVersionInformation, - DWORD dwTypeMask, - DWORDLONG dwlConditionMask - ); -# 8039 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winerror.h" 1 3 -# 29881 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winerror.h" 3 -__forceinline HRESULT HRESULT_FROM_WIN32(unsigned long x) { return (HRESULT)(x) <= 0 ? (HRESULT)(x) : (HRESULT) (((x) & 0x0000FFFF) | (7 << 16) | 0x80000000);} -# 39427 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winerror.h" 3 -__forceinline HRESULT HRESULT_FROM_SETUPAPI(unsigned long x) { return (((x) & (0x20000000|0xC0000000)) == (0x20000000|0xC0000000)) ? ((HRESULT) (((x) & 0x0000FFFF) | (15 << 16) | 0x80000000)) : HRESULT_FROM_WIN32(x);} -# 8040 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\timezoneapi.h" 1 3 -# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\timezoneapi.h" 3 -typedef struct _TIME_ZONE_INFORMATION { - LONG Bias; - WCHAR StandardName[ 32 ]; - SYSTEMTIME StandardDate; - LONG StandardBias; - WCHAR DaylightName[ 32 ]; - SYSTEMTIME DaylightDate; - LONG DaylightBias; -} TIME_ZONE_INFORMATION, *PTIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION; - -typedef struct _TIME_DYNAMIC_ZONE_INFORMATION { - LONG Bias; - WCHAR StandardName[ 32 ]; - SYSTEMTIME StandardDate; - LONG StandardBias; - WCHAR DaylightName[ 32 ]; - SYSTEMTIME DaylightDate; - LONG DaylightBias; - WCHAR TimeZoneKeyName[ 128 ]; - BOOLEAN DynamicDaylightTimeDisabled; -} DYNAMIC_TIME_ZONE_INFORMATION, *PDYNAMIC_TIME_ZONE_INFORMATION; - -__declspec(dllimport) - -BOOL -__stdcall -SystemTimeToTzSpecificLocalTime( - const TIME_ZONE_INFORMATION* lpTimeZoneInformation, - const SYSTEMTIME* lpUniversalTime, - LPSYSTEMTIME lpLocalTime - ); - -__declspec(dllimport) - -BOOL -__stdcall -TzSpecificLocalTimeToSystemTime( - const TIME_ZONE_INFORMATION* lpTimeZoneInformation, - const SYSTEMTIME* lpLocalTime, - LPSYSTEMTIME lpUniversalTime - ); - -__declspec(dllimport) - -BOOL -__stdcall -FileTimeToSystemTime( - const FILETIME* lpFileTime, - LPSYSTEMTIME lpSystemTime - ); - -__declspec(dllimport) - -BOOL -__stdcall -SystemTimeToFileTime( - const SYSTEMTIME* lpSystemTime, - LPFILETIME lpFileTime - ); - -__declspec(dllimport) - -DWORD -__stdcall -GetTimeZoneInformation( - LPTIME_ZONE_INFORMATION lpTimeZoneInformation - ); - -__declspec(dllimport) -BOOL -__stdcall -SetTimeZoneInformation( - const TIME_ZONE_INFORMATION* lpTimeZoneInformation - ); - - - -__declspec(dllimport) -BOOL -__stdcall -SetDynamicTimeZoneInformation( - const DYNAMIC_TIME_ZONE_INFORMATION* lpTimeZoneInformation - ); - - - - - -__declspec(dllimport) - -DWORD -__stdcall -GetDynamicTimeZoneInformation( - PDYNAMIC_TIME_ZONE_INFORMATION pTimeZoneInformation - ); - - - - - - -BOOL -__stdcall -GetTimeZoneInformationForYear( - USHORT wYear, - PDYNAMIC_TIME_ZONE_INFORMATION pdtzi, - LPTIME_ZONE_INFORMATION ptzi - ); - - - - - - - -__declspec(dllimport) - -DWORD -__stdcall -EnumDynamicTimeZoneInformation( - const DWORD dwIndex, - PDYNAMIC_TIME_ZONE_INFORMATION lpTimeZoneInformation - ); - -__declspec(dllimport) - -DWORD -__stdcall -GetDynamicTimeZoneInformationEffectiveYears( - const PDYNAMIC_TIME_ZONE_INFORMATION lpTimeZoneInformation, - LPDWORD FirstYear, - LPDWORD LastYear - ); - -__declspec(dllimport) - -BOOL -__stdcall -SystemTimeToTzSpecificLocalTimeEx( - const DYNAMIC_TIME_ZONE_INFORMATION* lpTimeZoneInformation, - const SYSTEMTIME* lpUniversalTime, - LPSYSTEMTIME lpLocalTime - ); - -__declspec(dllimport) - -BOOL -__stdcall -TzSpecificLocalTimeToSystemTimeEx( - const DYNAMIC_TIME_ZONE_INFORMATION* lpTimeZoneInformation, - const SYSTEMTIME* lpLocalTime, - LPSYSTEMTIME lpUniversalTime - ); - - - - - -__declspec(dllimport) - -BOOL -__stdcall -LocalFileTimeToLocalSystemTime( - const TIME_ZONE_INFORMATION* timeZoneInformation, - const FILETIME* localFileTime, - SYSTEMTIME* localSystemTime - ); - -__declspec(dllimport) - -BOOL -__stdcall -LocalSystemTimeToLocalFileTime( - const TIME_ZONE_INFORMATION* timeZoneInformation, - const SYSTEMTIME* localSystemTime, - FILETIME* localFileTime - ); -# 8041 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 2 3 -# 8057 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetSystemPowerState( - BOOL fSuspend, - BOOL fForce - ); -# 8096 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct _SYSTEM_POWER_STATUS { - BYTE ACLineStatus; - BYTE BatteryFlag; - BYTE BatteryLifePercent; - BYTE SystemStatusFlag; - DWORD BatteryLifeTime; - DWORD BatteryFullLifeTime; -} SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS; - -__declspec(dllimport) -BOOL -__stdcall -GetSystemPowerStatus( - LPSYSTEM_POWER_STATUS lpSystemPowerStatus - ); -# 8125 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -MapUserPhysicalPagesScatter( - PVOID *VirtualAddresses, - ULONG_PTR NumberOfPages, - PULONG_PTR PageArray - ); - - - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -CreateJobObjectA( - LPSECURITY_ATTRIBUTES lpJobAttributes, - LPCSTR lpName - ); - - - - - - - -__declspec(dllimport) - -HANDLE -__stdcall -OpenJobObjectA( - DWORD dwDesiredAccess, - BOOL bInheritHandle, - LPCSTR lpName - ); -# 8177 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CreateJobSet ( - ULONG NumJob, - PJOB_SET_ARRAY UserJobSet, - ULONG Flags); - - - - - - - -__declspec(dllimport) -HANDLE -__stdcall -FindFirstVolumeA( - LPSTR lpszVolumeName, - DWORD cchBufferLength - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -FindNextVolumeA( - HANDLE hFindVolume, - LPSTR lpszVolumeName, - DWORD cchBufferLength - ); -# 8220 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -FindFirstVolumeMountPointA( - LPCSTR lpszRootPathName, - LPSTR lpszVolumeMountPoint, - DWORD cchBufferLength - ); -__declspec(dllimport) -HANDLE -__stdcall -FindFirstVolumeMountPointW( - LPCWSTR lpszRootPathName, - LPWSTR lpszVolumeMountPoint, - DWORD cchBufferLength - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -FindNextVolumeMountPointA( - HANDLE hFindVolumeMountPoint, - LPSTR lpszVolumeMountPoint, - DWORD cchBufferLength - ); -__declspec(dllimport) -BOOL -__stdcall -FindNextVolumeMountPointW( - HANDLE hFindVolumeMountPoint, - LPWSTR lpszVolumeMountPoint, - DWORD cchBufferLength - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -FindVolumeMountPointClose( - HANDLE hFindVolumeMountPoint - ); - -__declspec(dllimport) -BOOL -__stdcall -SetVolumeMountPointA( - LPCSTR lpszVolumeMountPoint, - LPCSTR lpszVolumeName - ); -__declspec(dllimport) -BOOL -__stdcall -SetVolumeMountPointW( - LPCWSTR lpszVolumeMountPoint, - LPCWSTR lpszVolumeName - ); -# 8297 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DeleteVolumeMountPointA( - LPCSTR lpszVolumeMountPoint - ); -# 8317 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetVolumeNameForVolumeMountPointA( - LPCSTR lpszVolumeMountPoint, - LPSTR lpszVolumeName, - DWORD cchBufferLength -); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetVolumePathNameA( - LPCSTR lpszFileName, - LPSTR lpszVolumePathName, - DWORD cchBufferLength - ); -# 8354 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetVolumePathNamesForVolumeNameA( - LPCSTR lpszVolumeName, - LPCH lpszVolumePathNames, - DWORD cchBufferLength, - PDWORD lpcchReturnLength - ); -# 8381 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct tagACTCTXA { - ULONG cbSize; - DWORD dwFlags; - LPCSTR lpSource; - USHORT wProcessorArchitecture; - LANGID wLangId; - LPCSTR lpAssemblyDirectory; - LPCSTR lpResourceName; - LPCSTR lpApplicationName; - HMODULE hModule; -} ACTCTXA, *PACTCTXA; -typedef struct tagACTCTXW { - ULONG cbSize; - DWORD dwFlags; - LPCWSTR lpSource; - USHORT wProcessorArchitecture; - LANGID wLangId; - LPCWSTR lpAssemblyDirectory; - LPCWSTR lpResourceName; - LPCWSTR lpApplicationName; - HMODULE hModule; -} ACTCTXW, *PACTCTXW; - - - - -typedef ACTCTXA ACTCTX; -typedef PACTCTXA PACTCTX; - - -typedef const ACTCTXA *PCACTCTXA; -typedef const ACTCTXW *PCACTCTXW; - - - -typedef PCACTCTXA PCACTCTX; - - - - -__declspec(dllimport) -HANDLE -__stdcall -CreateActCtxA( - PCACTCTXA pActCtx - ); -__declspec(dllimport) -HANDLE -__stdcall -CreateActCtxW( - PCACTCTXW pActCtx - ); - - - - - - -__declspec(dllimport) -void -__stdcall -AddRefActCtx( - HANDLE hActCtx - ); - - -__declspec(dllimport) -void -__stdcall -ReleaseActCtx( - HANDLE hActCtx - ); - -__declspec(dllimport) -BOOL -__stdcall -ZombifyActCtx( - HANDLE hActCtx - ); - - - -__declspec(dllimport) -BOOL -__stdcall -ActivateActCtx( - HANDLE hActCtx, - ULONG_PTR *lpCookie - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -DeactivateActCtx( - DWORD dwFlags, - ULONG_PTR ulCookie - ); - -__declspec(dllimport) -BOOL -__stdcall -GetCurrentActCtx( - HANDLE *lphActCtx); - - -typedef struct tagACTCTX_SECTION_KEYED_DATA_2600 { - ULONG cbSize; - ULONG ulDataFormatVersion; - PVOID lpData; - ULONG ulLength; - PVOID lpSectionGlobalData; - ULONG ulSectionGlobalDataLength; - PVOID lpSectionBase; - ULONG ulSectionTotalLength; - HANDLE hActCtx; - ULONG ulAssemblyRosterIndex; -} ACTCTX_SECTION_KEYED_DATA_2600, *PACTCTX_SECTION_KEYED_DATA_2600; -typedef const ACTCTX_SECTION_KEYED_DATA_2600 * PCACTCTX_SECTION_KEYED_DATA_2600; - -typedef struct tagACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA { - PVOID lpInformation; - PVOID lpSectionBase; - ULONG ulSectionLength; - PVOID lpSectionGlobalDataBase; - ULONG ulSectionGlobalDataLength; -} ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, *PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; -typedef const ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA *PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; - -typedef struct tagACTCTX_SECTION_KEYED_DATA { - ULONG cbSize; - ULONG ulDataFormatVersion; - PVOID lpData; - ULONG ulLength; - PVOID lpSectionGlobalData; - ULONG ulSectionGlobalDataLength; - PVOID lpSectionBase; - ULONG ulSectionTotalLength; - HANDLE hActCtx; - ULONG ulAssemblyRosterIndex; - - ULONG ulFlags; - ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA AssemblyMetadata; -} ACTCTX_SECTION_KEYED_DATA, *PACTCTX_SECTION_KEYED_DATA; -typedef const ACTCTX_SECTION_KEYED_DATA * PCACTCTX_SECTION_KEYED_DATA; -# 8537 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -FindActCtxSectionStringA( - DWORD dwFlags, - const GUID *lpExtensionGuid, - ULONG ulSectionId, - LPCSTR lpStringToFind, - PACTCTX_SECTION_KEYED_DATA ReturnedData - ); - -__declspec(dllimport) -BOOL -__stdcall -FindActCtxSectionStringW( - DWORD dwFlags, - const GUID *lpExtensionGuid, - ULONG ulSectionId, - LPCWSTR lpStringToFind, - PACTCTX_SECTION_KEYED_DATA ReturnedData - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -FindActCtxSectionGuid( - DWORD dwFlags, - const GUID *lpExtensionGuid, - ULONG ulSectionId, - const GUID *lpGuidToFind, - PACTCTX_SECTION_KEYED_DATA ReturnedData - ); - - - - - -typedef struct _ACTIVATION_CONTEXT_BASIC_INFORMATION { - HANDLE hActCtx; - DWORD dwFlags; -} ACTIVATION_CONTEXT_BASIC_INFORMATION, *PACTIVATION_CONTEXT_BASIC_INFORMATION; - -typedef const struct _ACTIVATION_CONTEXT_BASIC_INFORMATION *PCACTIVATION_CONTEXT_BASIC_INFORMATION; -# 8627 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -QueryActCtxW( - DWORD dwFlags, - HANDLE hActCtx, - PVOID pvSubInstance, - ULONG ulInfoClass, - PVOID pvBuffer, - SIZE_T cbBuffer, - SIZE_T *pcbWrittenOrRequired - ); - -typedef BOOL (__stdcall * PQUERYACTCTXW_FUNC)( - DWORD dwFlags, - HANDLE hActCtx, - PVOID pvSubInstance, - ULONG ulInfoClass, - PVOID pvBuffer, - SIZE_T cbBuffer, - SIZE_T *pcbWrittenOrRequired - ); -# 8661 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -DWORD -__stdcall -WTSGetActiveConsoleSessionId( - void - ); - - - - - -__declspec(dllimport) -DWORD -__stdcall -WTSGetServiceSessionId( - void - ); - -__declspec(dllimport) -BOOLEAN -__stdcall -WTSIsServerContainer( - void - ); - - - - - -__declspec(dllimport) -WORD -__stdcall -GetActiveProcessorGroupCount( - void - ); - -__declspec(dllimport) -WORD -__stdcall -GetMaximumProcessorGroupCount( - void - ); - -__declspec(dllimport) -DWORD -__stdcall -GetActiveProcessorCount( - WORD GroupNumber - ); - -__declspec(dllimport) -DWORD -__stdcall -GetMaximumProcessorCount( - WORD GroupNumber - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetNumaProcessorNode( - UCHAR Processor, - PUCHAR NodeNumber - ); - - - -__declspec(dllimport) -BOOL -__stdcall -GetNumaNodeNumberFromHandle( - HANDLE hFile, - PUSHORT NodeNumber - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetNumaProcessorNodeEx( - PPROCESSOR_NUMBER Processor, - PUSHORT NodeNumber - ); - - - -__declspec(dllimport) -BOOL -__stdcall -GetNumaNodeProcessorMask( - UCHAR Node, - PULONGLONG ProcessorMask - ); - -__declspec(dllimport) -BOOL -__stdcall -GetNumaAvailableMemoryNode( - UCHAR Node, - PULONGLONG AvailableBytes - ); - - - -__declspec(dllimport) -BOOL -__stdcall -GetNumaAvailableMemoryNodeEx( - USHORT Node, - PULONGLONG AvailableBytes - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetNumaProximityNode( - ULONG ProximityId, - PUCHAR NodeNumber - ); -# 8805 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef DWORD (__stdcall *APPLICATION_RECOVERY_CALLBACK)(PVOID pvParameter); -# 8843 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HRESULT -__stdcall -RegisterApplicationRecoveryCallback( - APPLICATION_RECOVERY_CALLBACK pRecoveyCallback, - PVOID pvParameter, - DWORD dwPingInterval, - DWORD dwFlags - ); - -__declspec(dllimport) -HRESULT -__stdcall -UnregisterApplicationRecoveryCallback(void); - -__declspec(dllimport) -HRESULT -__stdcall -RegisterApplicationRestart( - PCWSTR pwzCommandline, - DWORD dwFlags - ); - -__declspec(dllimport) -HRESULT -__stdcall -UnregisterApplicationRestart(void); -# 8881 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HRESULT -__stdcall -GetApplicationRecoveryCallback( - HANDLE hProcess, - APPLICATION_RECOVERY_CALLBACK* pRecoveryCallback, - PVOID* ppvParameter, - PDWORD pdwPingInterval, - PDWORD pdwFlags - ); - -__declspec(dllimport) -HRESULT -__stdcall -GetApplicationRestartSettings( - HANDLE hProcess, - PWSTR pwzCommandline, - PDWORD pcchSize, - PDWORD pdwFlags - ); -# 8912 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -HRESULT -__stdcall -ApplicationRecoveryInProgress( - PBOOL pbCancelled - ); - -__declspec(dllimport) -void -__stdcall -ApplicationRecoveryFinished( - BOOL bSuccess - ); -# 8936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct _FILE_BASIC_INFO { - LARGE_INTEGER CreationTime; - LARGE_INTEGER LastAccessTime; - LARGE_INTEGER LastWriteTime; - LARGE_INTEGER ChangeTime; - DWORD FileAttributes; -} FILE_BASIC_INFO, *PFILE_BASIC_INFO; - -typedef struct _FILE_STANDARD_INFO { - LARGE_INTEGER AllocationSize; - LARGE_INTEGER EndOfFile; - DWORD NumberOfLinks; - BOOLEAN DeletePending; - BOOLEAN Directory; -} FILE_STANDARD_INFO, *PFILE_STANDARD_INFO; - -typedef struct _FILE_NAME_INFO { - DWORD FileNameLength; - WCHAR FileName[1]; -} FILE_NAME_INFO, *PFILE_NAME_INFO; - -typedef struct _FILE_CASE_SENSITIVE_INFO { - ULONG Flags; -} FILE_CASE_SENSITIVE_INFO, *PFILE_CASE_SENSITIVE_INFO; -# 8970 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct _FILE_RENAME_INFO { - - union { - BOOLEAN ReplaceIfExists; - DWORD Flags; - } ; - - - - HANDLE RootDirectory; - DWORD FileNameLength; - WCHAR FileName[1]; -} FILE_RENAME_INFO, *PFILE_RENAME_INFO; - -typedef struct _FILE_ALLOCATION_INFO { - LARGE_INTEGER AllocationSize; -} FILE_ALLOCATION_INFO, *PFILE_ALLOCATION_INFO; - -typedef struct _FILE_END_OF_FILE_INFO { - LARGE_INTEGER EndOfFile; -} FILE_END_OF_FILE_INFO, *PFILE_END_OF_FILE_INFO; - -typedef struct _FILE_STREAM_INFO { - DWORD NextEntryOffset; - DWORD StreamNameLength; - LARGE_INTEGER StreamSize; - LARGE_INTEGER StreamAllocationSize; - WCHAR StreamName[1]; -} FILE_STREAM_INFO, *PFILE_STREAM_INFO; - -typedef struct _FILE_COMPRESSION_INFO { - LARGE_INTEGER CompressedFileSize; - WORD CompressionFormat; - UCHAR CompressionUnitShift; - UCHAR ChunkShift; - UCHAR ClusterShift; - UCHAR Reserved[3]; -} FILE_COMPRESSION_INFO, *PFILE_COMPRESSION_INFO; - -typedef struct _FILE_ATTRIBUTE_TAG_INFO { - DWORD FileAttributes; - DWORD ReparseTag; -} FILE_ATTRIBUTE_TAG_INFO, *PFILE_ATTRIBUTE_TAG_INFO; - -typedef struct _FILE_DISPOSITION_INFO { - BOOLEAN DeleteFileA; -} FILE_DISPOSITION_INFO, *PFILE_DISPOSITION_INFO; -# 9028 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct _FILE_DISPOSITION_INFO_EX { - DWORD Flags; -} FILE_DISPOSITION_INFO_EX, *PFILE_DISPOSITION_INFO_EX; - - -typedef struct _FILE_ID_BOTH_DIR_INFO { - DWORD NextEntryOffset; - DWORD FileIndex; - LARGE_INTEGER CreationTime; - LARGE_INTEGER LastAccessTime; - LARGE_INTEGER LastWriteTime; - LARGE_INTEGER ChangeTime; - LARGE_INTEGER EndOfFile; - LARGE_INTEGER AllocationSize; - DWORD FileAttributes; - DWORD FileNameLength; - DWORD EaSize; - CCHAR ShortNameLength; - WCHAR ShortName[12]; - LARGE_INTEGER FileId; - WCHAR FileName[1]; -} FILE_ID_BOTH_DIR_INFO, *PFILE_ID_BOTH_DIR_INFO; - -typedef struct _FILE_FULL_DIR_INFO { - ULONG NextEntryOffset; - ULONG FileIndex; - LARGE_INTEGER CreationTime; - LARGE_INTEGER LastAccessTime; - LARGE_INTEGER LastWriteTime; - LARGE_INTEGER ChangeTime; - LARGE_INTEGER EndOfFile; - LARGE_INTEGER AllocationSize; - ULONG FileAttributes; - ULONG FileNameLength; - ULONG EaSize; - WCHAR FileName[1]; -} FILE_FULL_DIR_INFO, *PFILE_FULL_DIR_INFO; - -typedef enum _PRIORITY_HINT { - IoPriorityHintVeryLow = 0, - IoPriorityHintLow, - IoPriorityHintNormal, - MaximumIoPriorityHintType -} PRIORITY_HINT; - -typedef struct _FILE_IO_PRIORITY_HINT_INFO { - PRIORITY_HINT PriorityHint; -} FILE_IO_PRIORITY_HINT_INFO, *PFILE_IO_PRIORITY_HINT_INFO; - - - - - -typedef struct _FILE_ALIGNMENT_INFO { - ULONG AlignmentRequirement; -} FILE_ALIGNMENT_INFO, *PFILE_ALIGNMENT_INFO; -# 9104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct _FILE_STORAGE_INFO { - ULONG LogicalBytesPerSector; - ULONG PhysicalBytesPerSectorForAtomicity; - ULONG PhysicalBytesPerSectorForPerformance; - ULONG FileSystemEffectivePhysicalBytesPerSectorForAtomicity; - ULONG Flags; - ULONG ByteOffsetForSectorAlignment; - ULONG ByteOffsetForPartitionAlignment; -} FILE_STORAGE_INFO, *PFILE_STORAGE_INFO; - - - - -typedef struct _FILE_ID_INFO { - ULONGLONG VolumeSerialNumber; - FILE_ID_128 FileId; -} FILE_ID_INFO, *PFILE_ID_INFO; - - - - -typedef struct _FILE_ID_EXTD_DIR_INFO { - ULONG NextEntryOffset; - ULONG FileIndex; - LARGE_INTEGER CreationTime; - LARGE_INTEGER LastAccessTime; - LARGE_INTEGER LastWriteTime; - LARGE_INTEGER ChangeTime; - LARGE_INTEGER EndOfFile; - LARGE_INTEGER AllocationSize; - ULONG FileAttributes; - ULONG FileNameLength; - ULONG EaSize; - ULONG ReparsePointTag; - FILE_ID_128 FileId; - WCHAR FileName[1]; -} FILE_ID_EXTD_DIR_INFO, *PFILE_ID_EXTD_DIR_INFO; -# 9183 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -typedef struct _FILE_REMOTE_PROTOCOL_INFO -{ - - USHORT StructureVersion; - USHORT StructureSize; - - ULONG Protocol; - - - USHORT ProtocolMajorVersion; - USHORT ProtocolMinorVersion; - USHORT ProtocolRevision; - - USHORT Reserved; - - - ULONG Flags; - - struct { - ULONG Reserved[8]; - } GenericReserved; -# 9214 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 - union { - - struct { - - struct { - ULONG Capabilities; - } Server; - - struct { - ULONG Capabilities; - - ULONG ShareFlags; - - - - } Share; - - } Smb2; - - ULONG Reserved[16]; - - } ProtocolSpecific; - - - -} FILE_REMOTE_PROTOCOL_INFO, *PFILE_REMOTE_PROTOCOL_INFO; - -__declspec(dllimport) -BOOL -__stdcall -GetFileInformationByHandleEx( - HANDLE hFile, - FILE_INFO_BY_HANDLE_CLASS FileInformationClass, - LPVOID lpFileInformation, - DWORD dwBufferSize -); - - - - - - - -typedef enum _FILE_ID_TYPE { - FileIdType, - ObjectIdType, - ExtendedFileIdType, - MaximumFileIdType -} FILE_ID_TYPE, *PFILE_ID_TYPE; - -typedef struct FILE_ID_DESCRIPTOR { - DWORD dwSize; - FILE_ID_TYPE Type; - union { - LARGE_INTEGER FileId; - GUID ObjectId; - - FILE_ID_128 ExtendedFileId; - - } ; -} FILE_ID_DESCRIPTOR, *LPFILE_ID_DESCRIPTOR; - -__declspec(dllimport) -HANDLE -__stdcall -OpenFileById ( - HANDLE hVolumeHint, - LPFILE_ID_DESCRIPTOR lpFileId, - DWORD dwDesiredAccess, - DWORD dwShareMode, - LPSECURITY_ATTRIBUTES lpSecurityAttributes, - DWORD dwFlagsAndAttributes - ); -# 9317 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOLEAN -__stdcall -CreateSymbolicLinkA ( - LPCSTR lpSymlinkFileName, - LPCSTR lpTargetFileName, - DWORD dwFlags - ); -__declspec(dllimport) -BOOLEAN -__stdcall -CreateSymbolicLinkW ( - LPCWSTR lpSymlinkFileName, - LPCWSTR lpTargetFileName, - DWORD dwFlags - ); -# 9343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -QueryActCtxSettingsW( - DWORD dwFlags, - HANDLE hActCtx, - PCWSTR settingsNameSpace, - PCWSTR settingName, - PWSTR pvBuffer, - SIZE_T dwBuffer, - SIZE_T *pdwWrittenOrRequired - ); -# 9366 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOLEAN -__stdcall -CreateSymbolicLinkTransactedA ( - LPCSTR lpSymlinkFileName, - LPCSTR lpTargetFileName, - DWORD dwFlags, - HANDLE hTransaction - ); -__declspec(dllimport) -BOOLEAN -__stdcall -CreateSymbolicLinkTransactedW ( - LPCWSTR lpSymlinkFileName, - LPCWSTR lpTargetFileName, - DWORD dwFlags, - HANDLE hTransaction - ); -# 9394 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -ReplacePartitionUnit ( - PWSTR TargetPartition, - PWSTR SparePartition, - ULONG Flags - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -AddSecureMemoryCacheCallback( - PSECURE_MEMORY_CACHE_CALLBACK pfnCallBack - ); - -__declspec(dllimport) -BOOL -__stdcall -RemoveSecureMemoryCacheCallback( - PSECURE_MEMORY_CACHE_CALLBACK pfnCallBack - ); -# 9433 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CopyContext( - PCONTEXT Destination, - DWORD ContextFlags, - PCONTEXT Source - ); -# 9449 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -InitializeContext( - PVOID Buffer, - DWORD ContextFlags, - PCONTEXT* Context, - PDWORD ContextLength - ); -# 9468 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -BOOL -__stdcall -InitializeContext2( - PVOID Buffer, - DWORD ContextFlags, - PCONTEXT* Context, - PDWORD ContextLength, - ULONG64 XStateCompactionMask - ); -# 9489 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -DWORD64 -__stdcall -GetEnabledXStateFeatures( - void - ); - - -__declspec(dllimport) -BOOL -__stdcall -GetXStateFeaturesMask( - PCONTEXT Context, - PDWORD64 FeatureMask - ); - - -__declspec(dllimport) -PVOID -__stdcall -LocateXStateFeature( - PCONTEXT Context, - DWORD FeatureId, - PDWORD Length - ); - - -__declspec(dllimport) -BOOL -__stdcall -SetXStateFeaturesMask( - PCONTEXT Context, - DWORD64 FeatureMask - ); - - - -__declspec(dllimport) -DWORD64 -__stdcall -GetThreadEnabledXStateFeatures( - void - ); - - -__declspec(dllimport) -BOOL -__stdcall -EnableProcessOptionalXStateFeatures( - DWORD64 Features - ); -# 9555 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -DWORD -__stdcall -EnableThreadProfiling( - HANDLE ThreadHandle, - DWORD Flags, - DWORD64 HardwareCounters, - HANDLE *PerformanceDataHandle - ); - -__declspec(dllimport) -DWORD -__stdcall -DisableThreadProfiling( - HANDLE PerformanceDataHandle - ); - -__declspec(dllimport) -DWORD -__stdcall -QueryThreadProfiling( - HANDLE ThreadHandle, - PBOOLEAN Enabled - ); - -__declspec(dllimport) -DWORD -__stdcall -ReadThreadProfilingData( - HANDLE PerformanceDataHandle, - DWORD Flags, - PPERFORMANCE_DATA PerformanceData - ); -# 9599 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -__declspec(dllimport) -DWORD -__stdcall -RaiseCustomSystemEventTrigger( - PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG CustomSystemEventTriggerConfig - ); -# 9638 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winbase.h" 3 -#pragma warning(pop) -# 177 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 1 3 -# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -#pragma warning(push) -#pragma warning(disable: 4201) - - - -#pragma warning(disable: 4820) -# 293 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct _DRAWPATRECT { - POINT ptPosition; - POINT ptSize; - WORD wStyle; - WORD wPattern; -} DRAWPATRECT, *PDRAWPATRECT; -# 425 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct _PSINJECTDATA { - - DWORD DataBytes; - WORD InjectionPoint; - WORD PageNumber; - - - -} PSINJECTDATA, *PPSINJECTDATA; -# 513 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct _PSFEATURE_OUTPUT { - - BOOL bPageIndependent; - BOOL bSetPageDevice; - -} PSFEATURE_OUTPUT, *PPSFEATURE_OUTPUT; - - - - - -typedef struct _PSFEATURE_CUSTPAPER { - - LONG lOrientation; - LONG lWidth; - LONG lHeight; - LONG lWidthOffset; - LONG lHeightOffset; - -} PSFEATURE_CUSTPAPER, *PPSFEATURE_CUSTPAPER; -# 593 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagXFORM - { - FLOAT eM11; - FLOAT eM12; - FLOAT eM21; - FLOAT eM22; - FLOAT eDx; - FLOAT eDy; - } XFORM, *PXFORM, *LPXFORM; - - -typedef struct tagBITMAP - { - LONG bmType; - LONG bmWidth; - LONG bmHeight; - LONG bmWidthBytes; - WORD bmPlanes; - WORD bmBitsPixel; - LPVOID bmBits; - } BITMAP, *PBITMAP, *NPBITMAP, *LPBITMAP; - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,1) -# 619 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 - - - - -typedef struct tagRGBTRIPLE { - BYTE rgbtBlue; - BYTE rgbtGreen; - BYTE rgbtRed; -} RGBTRIPLE, *PRGBTRIPLE, *NPRGBTRIPLE, *LPRGBTRIPLE; - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 - - - - -typedef struct tagRGBQUAD { - BYTE rgbBlue; - BYTE rgbGreen; - BYTE rgbRed; - BYTE rgbReserved; -} RGBQUAD; - - - - - - - -typedef RGBQUAD * LPRGBQUAD; -# 675 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef LONG LCSCSTYPE; - - - -typedef LONG LCSGAMUTMATCH; -# 707 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef long FXPT16DOT16, *LPFXPT16DOT16; -typedef long FXPT2DOT30, *LPFXPT2DOT30; - - - - -typedef struct tagCIEXYZ -{ - FXPT2DOT30 ciexyzX; - FXPT2DOT30 ciexyzY; - FXPT2DOT30 ciexyzZ; -} CIEXYZ; - - - - - - - -typedef CIEXYZ *LPCIEXYZ; - - - - - - - -typedef struct tagICEXYZTRIPLE -{ - CIEXYZ ciexyzRed; - CIEXYZ ciexyzGreen; - CIEXYZ ciexyzBlue; -} CIEXYZTRIPLE; - - - - - - - -typedef CIEXYZTRIPLE *LPCIEXYZTRIPLE; -# 760 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagLOGCOLORSPACEA { - DWORD lcsSignature; - DWORD lcsVersion; - DWORD lcsSize; - LCSCSTYPE lcsCSType; - LCSGAMUTMATCH lcsIntent; - CIEXYZTRIPLE lcsEndpoints; - DWORD lcsGammaRed; - DWORD lcsGammaGreen; - DWORD lcsGammaBlue; - CHAR lcsFilename[260]; -} LOGCOLORSPACEA, *LPLOGCOLORSPACEA; -typedef struct tagLOGCOLORSPACEW { - DWORD lcsSignature; - DWORD lcsVersion; - DWORD lcsSize; - LCSCSTYPE lcsCSType; - LCSGAMUTMATCH lcsIntent; - CIEXYZTRIPLE lcsEndpoints; - DWORD lcsGammaRed; - DWORD lcsGammaGreen; - DWORD lcsGammaBlue; - WCHAR lcsFilename[260]; -} LOGCOLORSPACEW, *LPLOGCOLORSPACEW; - - - - -typedef LOGCOLORSPACEA LOGCOLORSPACE; -typedef LPLOGCOLORSPACEA LPLOGCOLORSPACE; -# 801 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagBITMAPCOREHEADER { - DWORD bcSize; - WORD bcWidth; - WORD bcHeight; - WORD bcPlanes; - WORD bcBitCount; -} BITMAPCOREHEADER, *LPBITMAPCOREHEADER, *PBITMAPCOREHEADER; - - - - - - - -typedef struct tagBITMAPINFOHEADER{ - DWORD biSize; - LONG biWidth; - LONG biHeight; - WORD biPlanes; - WORD biBitCount; - DWORD biCompression; - DWORD biSizeImage; - LONG biXPelsPerMeter; - LONG biYPelsPerMeter; - DWORD biClrUsed; - DWORD biClrImportant; -} BITMAPINFOHEADER, *LPBITMAPINFOHEADER, *PBITMAPINFOHEADER; -# 837 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct { - DWORD bV4Size; - LONG bV4Width; - LONG bV4Height; - WORD bV4Planes; - WORD bV4BitCount; - DWORD bV4V4Compression; - DWORD bV4SizeImage; - LONG bV4XPelsPerMeter; - LONG bV4YPelsPerMeter; - DWORD bV4ClrUsed; - DWORD bV4ClrImportant; - DWORD bV4RedMask; - DWORD bV4GreenMask; - DWORD bV4BlueMask; - DWORD bV4AlphaMask; - DWORD bV4CSType; - CIEXYZTRIPLE bV4Endpoints; - DWORD bV4GammaRed; - DWORD bV4GammaGreen; - DWORD bV4GammaBlue; -} BITMAPV4HEADER, *LPBITMAPV4HEADER, *PBITMAPV4HEADER; -# 868 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct { - DWORD bV5Size; - LONG bV5Width; - LONG bV5Height; - WORD bV5Planes; - WORD bV5BitCount; - DWORD bV5Compression; - DWORD bV5SizeImage; - LONG bV5XPelsPerMeter; - LONG bV5YPelsPerMeter; - DWORD bV5ClrUsed; - DWORD bV5ClrImportant; - DWORD bV5RedMask; - DWORD bV5GreenMask; - DWORD bV5BlueMask; - DWORD bV5AlphaMask; - DWORD bV5CSType; - CIEXYZTRIPLE bV5Endpoints; - DWORD bV5GammaRed; - DWORD bV5GammaGreen; - DWORD bV5GammaBlue; - DWORD bV5Intent; - DWORD bV5ProfileData; - DWORD bV5ProfileSize; - DWORD bV5Reserved; -} BITMAPV5HEADER, *LPBITMAPV5HEADER, *PBITMAPV5HEADER; -# 916 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagBITMAPINFO { - BITMAPINFOHEADER bmiHeader; - RGBQUAD bmiColors[1]; -} BITMAPINFO, *LPBITMAPINFO, *PBITMAPINFO; - - - - - - - -typedef struct tagBITMAPCOREINFO { - BITMAPCOREHEADER bmciHeader; - RGBTRIPLE bmciColors[1]; -} BITMAPCOREINFO, *LPBITMAPCOREINFO, *PBITMAPCOREINFO; - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,2) -# 936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 - - - - -typedef struct tagBITMAPFILEHEADER { - WORD bfType; - DWORD bfSize; - WORD bfReserved1; - WORD bfReserved2; - DWORD bfOffBits; -} BITMAPFILEHEADER, *LPBITMAPFILEHEADER, *PBITMAPFILEHEADER; - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 952 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 -# 961 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagFONTSIGNATURE -{ - DWORD fsUsb[4]; - DWORD fsCsb[2]; -} FONTSIGNATURE, *PFONTSIGNATURE, *LPFONTSIGNATURE; - - - - - - - -typedef struct tagCHARSETINFO -{ - UINT ciCharset; - UINT ciACP; - FONTSIGNATURE fs; -} CHARSETINFO, *PCHARSETINFO, *NPCHARSETINFO, *LPCHARSETINFO; -# 993 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagLOCALESIGNATURE -{ - DWORD lsUsb[4]; - DWORD lsCsbDefault[2]; - DWORD lsCsbSupported[2]; -} LOCALESIGNATURE, *PLOCALESIGNATURE, *LPLOCALESIGNATURE; -# 1013 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagHANDLETABLE - { - HGDIOBJ objectHandle[1]; - } HANDLETABLE, *PHANDLETABLE, *LPHANDLETABLE; - -typedef struct tagMETARECORD - { - DWORD rdSize; - WORD rdFunction; - WORD rdParm[1]; - } METARECORD; - - - - - - - -typedef struct tagMETARECORD __unaligned *PMETARECORD; - - - - - - - -typedef struct tagMETARECORD __unaligned *LPMETARECORD; - -typedef struct tagMETAFILEPICT - { - LONG mm; - LONG xExt; - LONG yExt; - HMETAFILE hMF; - } METAFILEPICT, *LPMETAFILEPICT; - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,2) -# 1053 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 - - - - -typedef struct tagMETAHEADER -{ - WORD mtType; - WORD mtHeaderSize; - WORD mtVersion; - DWORD mtSize; - WORD mtNoObjects; - DWORD mtMaxRecord; - WORD mtNoParameters; -} METAHEADER; -typedef struct tagMETAHEADER __unaligned *PMETAHEADER; -typedef struct tagMETAHEADER __unaligned *LPMETAHEADER; - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 1074 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 - - - - - -typedef struct tagENHMETARECORD -{ - DWORD iType; - DWORD nSize; - DWORD dParm[1]; -} ENHMETARECORD, *PENHMETARECORD, *LPENHMETARECORD; - -typedef struct tagENHMETAHEADER -{ - DWORD iType; - DWORD nSize; - - RECTL rclBounds; - RECTL rclFrame; - DWORD dSignature; - DWORD nVersion; - DWORD nBytes; - DWORD nRecords; - WORD nHandles; - - WORD sReserved; - DWORD nDescription; - - DWORD offDescription; - - DWORD nPalEntries; - SIZEL szlDevice; - SIZEL szlMillimeters; - - DWORD cbPixelFormat; - - DWORD offPixelFormat; - - DWORD bOpenGL; - - - - SIZEL szlMicrometers; - - -} ENHMETAHEADER, *PENHMETAHEADER, *LPENHMETAHEADER; -# 1143 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 - typedef BYTE BCHAR; - - - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,4) -# 1152 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 - - - - -typedef struct tagTEXTMETRICA -{ - LONG tmHeight; - LONG tmAscent; - LONG tmDescent; - LONG tmInternalLeading; - LONG tmExternalLeading; - LONG tmAveCharWidth; - LONG tmMaxCharWidth; - LONG tmWeight; - LONG tmOverhang; - LONG tmDigitizedAspectX; - LONG tmDigitizedAspectY; - BYTE tmFirstChar; - BYTE tmLastChar; - BYTE tmDefaultChar; - BYTE tmBreakChar; - BYTE tmItalic; - BYTE tmUnderlined; - BYTE tmStruckOut; - BYTE tmPitchAndFamily; - BYTE tmCharSet; -} TEXTMETRICA, *PTEXTMETRICA, *NPTEXTMETRICA, *LPTEXTMETRICA; -typedef struct tagTEXTMETRICW -{ - LONG tmHeight; - LONG tmAscent; - LONG tmDescent; - LONG tmInternalLeading; - LONG tmExternalLeading; - LONG tmAveCharWidth; - LONG tmMaxCharWidth; - LONG tmWeight; - LONG tmOverhang; - LONG tmDigitizedAspectX; - LONG tmDigitizedAspectY; - WCHAR tmFirstChar; - WCHAR tmLastChar; - WCHAR tmDefaultChar; - WCHAR tmBreakChar; - BYTE tmItalic; - BYTE tmUnderlined; - BYTE tmStruckOut; - BYTE tmPitchAndFamily; - BYTE tmCharSet; -} TEXTMETRICW, *PTEXTMETRICW, *NPTEXTMETRICW, *LPTEXTMETRICW; - - - - - - -typedef TEXTMETRICA TEXTMETRIC; -typedef PTEXTMETRICA PTEXTMETRIC; -typedef NPTEXTMETRICA NPTEXTMETRIC; -typedef LPTEXTMETRICA LPTEXTMETRIC; - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 1218 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 -# 1234 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack4.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,4) -# 1235 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 - - - - -typedef struct tagNEWTEXTMETRICA -{ - LONG tmHeight; - LONG tmAscent; - LONG tmDescent; - LONG tmInternalLeading; - LONG tmExternalLeading; - LONG tmAveCharWidth; - LONG tmMaxCharWidth; - LONG tmWeight; - LONG tmOverhang; - LONG tmDigitizedAspectX; - LONG tmDigitizedAspectY; - BYTE tmFirstChar; - BYTE tmLastChar; - BYTE tmDefaultChar; - BYTE tmBreakChar; - BYTE tmItalic; - BYTE tmUnderlined; - BYTE tmStruckOut; - BYTE tmPitchAndFamily; - BYTE tmCharSet; - DWORD ntmFlags; - UINT ntmSizeEM; - UINT ntmCellHeight; - UINT ntmAvgWidth; -} NEWTEXTMETRICA, *PNEWTEXTMETRICA, *NPNEWTEXTMETRICA, *LPNEWTEXTMETRICA; -typedef struct tagNEWTEXTMETRICW -{ - LONG tmHeight; - LONG tmAscent; - LONG tmDescent; - LONG tmInternalLeading; - LONG tmExternalLeading; - LONG tmAveCharWidth; - LONG tmMaxCharWidth; - LONG tmWeight; - LONG tmOverhang; - LONG tmDigitizedAspectX; - LONG tmDigitizedAspectY; - WCHAR tmFirstChar; - WCHAR tmLastChar; - WCHAR tmDefaultChar; - WCHAR tmBreakChar; - BYTE tmItalic; - BYTE tmUnderlined; - BYTE tmStruckOut; - BYTE tmPitchAndFamily; - BYTE tmCharSet; - DWORD ntmFlags; - UINT ntmSizeEM; - UINT ntmCellHeight; - UINT ntmAvgWidth; -} NEWTEXTMETRICW, *PNEWTEXTMETRICW, *NPNEWTEXTMETRICW, *LPNEWTEXTMETRICW; - - - - - - -typedef NEWTEXTMETRICA NEWTEXTMETRIC; -typedef PNEWTEXTMETRICA PNEWTEXTMETRIC; -typedef NPNEWTEXTMETRICA NPNEWTEXTMETRIC; -typedef LPNEWTEXTMETRICA LPNEWTEXTMETRIC; - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 1309 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 2 3 - - - - - - -typedef struct tagNEWTEXTMETRICEXA -{ - NEWTEXTMETRICA ntmTm; - FONTSIGNATURE ntmFontSig; -}NEWTEXTMETRICEXA; -typedef struct tagNEWTEXTMETRICEXW -{ - NEWTEXTMETRICW ntmTm; - FONTSIGNATURE ntmFontSig; -}NEWTEXTMETRICEXW; - - - -typedef NEWTEXTMETRICEXA NEWTEXTMETRICEX; -# 1342 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagPELARRAY - { - LONG paXCount; - LONG paYCount; - LONG paXExt; - LONG paYExt; - BYTE paRGBs; - } PELARRAY, *PPELARRAY, *NPPELARRAY, *LPPELARRAY; -# 1358 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagLOGBRUSH - { - UINT lbStyle; - COLORREF lbColor; - ULONG_PTR lbHatch; - } LOGBRUSH, *PLOGBRUSH, *NPLOGBRUSH, *LPLOGBRUSH; - -typedef struct tagLOGBRUSH32 - { - UINT lbStyle; - COLORREF lbColor; - ULONG lbHatch; - } LOGBRUSH32, *PLOGBRUSH32, *NPLOGBRUSH32, *LPLOGBRUSH32; - - - - - - - -typedef LOGBRUSH PATTERN; -typedef PATTERN *PPATTERN; -typedef PATTERN *NPPATTERN; -typedef PATTERN *LPPATTERN; -# 1390 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagLOGPEN - { - UINT lopnStyle; - POINT lopnWidth; - COLORREF lopnColor; - } LOGPEN, *PLOGPEN, *NPLOGPEN, *LPLOGPEN; - - - - - - - -typedef struct tagEXTLOGPEN { - DWORD elpPenStyle; - DWORD elpWidth; - UINT elpBrushStyle; - COLORREF elpColor; - ULONG_PTR elpHatch; - DWORD elpNumEntries; - DWORD elpStyleEntry[1]; -} EXTLOGPEN, *PEXTLOGPEN, *NPEXTLOGPEN, *LPEXTLOGPEN; - - - - - - - -typedef struct tagEXTLOGPEN32 { - DWORD elpPenStyle; - DWORD elpWidth; - UINT elpBrushStyle; - COLORREF elpColor; - ULONG elpHatch; - DWORD elpNumEntries; - DWORD elpStyleEntry[1]; -} EXTLOGPEN32, *PEXTLOGPEN32, *NPEXTLOGPEN32, *LPEXTLOGPEN32; - - - -typedef struct tagPALETTEENTRY { - BYTE peRed; - BYTE peGreen; - BYTE peBlue; - BYTE peFlags; -} PALETTEENTRY, *PPALETTEENTRY, *LPPALETTEENTRY; - - - - - -typedef struct tagLOGPALETTE { - WORD palVersion; - WORD palNumEntries; - PALETTEENTRY palPalEntry[1]; -} LOGPALETTE, *PLOGPALETTE, *NPLOGPALETTE, *LPLOGPALETTE; - - - - - - -typedef struct tagLOGFONTA -{ - LONG lfHeight; - LONG lfWidth; - LONG lfEscapement; - LONG lfOrientation; - LONG lfWeight; - BYTE lfItalic; - BYTE lfUnderline; - BYTE lfStrikeOut; - BYTE lfCharSet; - BYTE lfOutPrecision; - BYTE lfClipPrecision; - BYTE lfQuality; - BYTE lfPitchAndFamily; - CHAR lfFaceName[32]; -} LOGFONTA, *PLOGFONTA, *NPLOGFONTA, *LPLOGFONTA; -typedef struct tagLOGFONTW -{ - LONG lfHeight; - LONG lfWidth; - LONG lfEscapement; - LONG lfOrientation; - LONG lfWeight; - BYTE lfItalic; - BYTE lfUnderline; - BYTE lfStrikeOut; - BYTE lfCharSet; - BYTE lfOutPrecision; - BYTE lfClipPrecision; - BYTE lfQuality; - BYTE lfPitchAndFamily; - WCHAR lfFaceName[32]; -} LOGFONTW, *PLOGFONTW, *NPLOGFONTW, *LPLOGFONTW; - - - - - - -typedef LOGFONTA LOGFONT; -typedef PLOGFONTA PLOGFONT; -typedef NPLOGFONTA NPLOGFONT; -typedef LPLOGFONTA LPLOGFONT; -# 1508 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagENUMLOGFONTA -{ - LOGFONTA elfLogFont; - BYTE elfFullName[64]; - BYTE elfStyle[32]; -} ENUMLOGFONTA, * LPENUMLOGFONTA; - -typedef struct tagENUMLOGFONTW -{ - LOGFONTW elfLogFont; - WCHAR elfFullName[64]; - WCHAR elfStyle[32]; -} ENUMLOGFONTW, * LPENUMLOGFONTW; - - - - -typedef ENUMLOGFONTA ENUMLOGFONT; -typedef LPENUMLOGFONTA LPENUMLOGFONT; - - - -typedef struct tagENUMLOGFONTEXA -{ - LOGFONTA elfLogFont; - BYTE elfFullName[64]; - BYTE elfStyle[32]; - BYTE elfScript[32]; -} ENUMLOGFONTEXA, *LPENUMLOGFONTEXA; -typedef struct tagENUMLOGFONTEXW -{ - LOGFONTW elfLogFont; - WCHAR elfFullName[64]; - WCHAR elfStyle[32]; - WCHAR elfScript[32]; -} ENUMLOGFONTEXW, *LPENUMLOGFONTEXW; - - - - -typedef ENUMLOGFONTEXA ENUMLOGFONTEX; -typedef LPENUMLOGFONTEXA LPENUMLOGFONTEX; -# 1686 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagPANOSE -{ - BYTE bFamilyType; - BYTE bSerifStyle; - BYTE bWeight; - BYTE bProportion; - BYTE bContrast; - BYTE bStrokeVariation; - BYTE bArmStyle; - BYTE bLetterform; - BYTE bMidline; - BYTE bXHeight; -} PANOSE, * LPPANOSE; -# 1812 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagEXTLOGFONTA { - LOGFONTA elfLogFont; - BYTE elfFullName[64]; - BYTE elfStyle[32]; - DWORD elfVersion; - DWORD elfStyleSize; - DWORD elfMatch; - DWORD elfReserved; - BYTE elfVendorId[4]; - DWORD elfCulture; - PANOSE elfPanose; -} EXTLOGFONTA, *PEXTLOGFONTA, *NPEXTLOGFONTA, *LPEXTLOGFONTA; -typedef struct tagEXTLOGFONTW { - LOGFONTW elfLogFont; - WCHAR elfFullName[64]; - WCHAR elfStyle[32]; - DWORD elfVersion; - DWORD elfStyleSize; - DWORD elfMatch; - DWORD elfReserved; - BYTE elfVendorId[4]; - DWORD elfCulture; - PANOSE elfPanose; -} EXTLOGFONTW, *PEXTLOGFONTW, *NPEXTLOGFONTW, *LPEXTLOGFONTW; - - - - - - -typedef EXTLOGFONTA EXTLOGFONT; -typedef PEXTLOGFONTA PEXTLOGFONT; -typedef NPEXTLOGFONTA NPEXTLOGFONT; -typedef LPEXTLOGFONTA LPEXTLOGFONT; -# 2198 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct _devicemodeA { - BYTE dmDeviceName[32]; - WORD dmSpecVersion; - WORD dmDriverVersion; - WORD dmSize; - WORD dmDriverExtra; - DWORD dmFields; - union { - - struct { - short dmOrientation; - short dmPaperSize; - short dmPaperLength; - short dmPaperWidth; - short dmScale; - short dmCopies; - short dmDefaultSource; - short dmPrintQuality; - } ; - - struct { - POINTL dmPosition; - DWORD dmDisplayOrientation; - DWORD dmDisplayFixedOutput; - } ; - } ; - short dmColor; - short dmDuplex; - short dmYResolution; - short dmTTOption; - short dmCollate; - BYTE dmFormName[32]; - WORD dmLogPixels; - DWORD dmBitsPerPel; - DWORD dmPelsWidth; - DWORD dmPelsHeight; - union { - DWORD dmDisplayFlags; - DWORD dmNup; - } ; - DWORD dmDisplayFrequency; - - DWORD dmICMMethod; - DWORD dmICMIntent; - DWORD dmMediaType; - DWORD dmDitherType; - DWORD dmReserved1; - DWORD dmReserved2; - - DWORD dmPanningWidth; - DWORD dmPanningHeight; - - -} DEVMODEA, *PDEVMODEA, *NPDEVMODEA, *LPDEVMODEA; -typedef struct _devicemodeW { - WCHAR dmDeviceName[32]; - WORD dmSpecVersion; - WORD dmDriverVersion; - WORD dmSize; - WORD dmDriverExtra; - DWORD dmFields; - union { - - struct { - short dmOrientation; - short dmPaperSize; - short dmPaperLength; - short dmPaperWidth; - short dmScale; - short dmCopies; - short dmDefaultSource; - short dmPrintQuality; - } ; - - struct { - POINTL dmPosition; - DWORD dmDisplayOrientation; - DWORD dmDisplayFixedOutput; - } ; - } ; - short dmColor; - short dmDuplex; - short dmYResolution; - short dmTTOption; - short dmCollate; - WCHAR dmFormName[32]; - WORD dmLogPixels; - DWORD dmBitsPerPel; - DWORD dmPelsWidth; - DWORD dmPelsHeight; - union { - DWORD dmDisplayFlags; - DWORD dmNup; - } ; - DWORD dmDisplayFrequency; - - DWORD dmICMMethod; - DWORD dmICMIntent; - DWORD dmMediaType; - DWORD dmDitherType; - DWORD dmReserved1; - DWORD dmReserved2; - - DWORD dmPanningWidth; - DWORD dmPanningHeight; - - -} DEVMODEW, *PDEVMODEW, *NPDEVMODEW, *LPDEVMODEW; - - - - - - -typedef DEVMODEA DEVMODE; -typedef PDEVMODEA PDEVMODE; -typedef NPDEVMODEA NPDEVMODE; -typedef LPDEVMODEA LPDEVMODE; -# 2733 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct _DISPLAY_DEVICEA { - DWORD cb; - CHAR DeviceName[32]; - CHAR DeviceString[128]; - DWORD StateFlags; - CHAR DeviceID[128]; - CHAR DeviceKey[128]; -} DISPLAY_DEVICEA, *PDISPLAY_DEVICEA, *LPDISPLAY_DEVICEA; -typedef struct _DISPLAY_DEVICEW { - DWORD cb; - WCHAR DeviceName[32]; - WCHAR DeviceString[128]; - DWORD StateFlags; - WCHAR DeviceID[128]; - WCHAR DeviceKey[128]; -} DISPLAY_DEVICEW, *PDISPLAY_DEVICEW, *LPDISPLAY_DEVICEW; - - - - - -typedef DISPLAY_DEVICEA DISPLAY_DEVICE; -typedef PDISPLAY_DEVICEA PDISPLAY_DEVICE; -typedef LPDISPLAY_DEVICEA LPDISPLAY_DEVICE; -# 2799 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct DISPLAYCONFIG_RATIONAL -{ - UINT32 Numerator; - UINT32 Denominator; -} DISPLAYCONFIG_RATIONAL; - -typedef enum -{ - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_OTHER = -1, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HD15 = 0, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SVIDEO = 1, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_COMPOSITE_VIDEO = 2, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_COMPONENT_VIDEO = 3, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DVI = 4, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HDMI = 5, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_LVDS = 6, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_D_JPN = 8, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SDI = 9, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EXTERNAL = 10, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EMBEDDED = 11, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_UDI_EXTERNAL = 12, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_UDI_EMBEDDED = 13, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SDTVDONGLE = 14, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_MIRACAST = 15, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INDIRECT_WIRED = 16, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INDIRECT_VIRTUAL = 17, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_USB_TUNNEL = 18, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INTERNAL = 0x80000000, - DISPLAYCONFIG_OUTPUT_TECHNOLOGY_FORCE_UINT32 = 0xFFFFFFFF -} DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY; - -typedef enum -{ - DISPLAYCONFIG_SCANLINE_ORDERING_UNSPECIFIED = 0, - DISPLAYCONFIG_SCANLINE_ORDERING_PROGRESSIVE = 1, - DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED = 2, - DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED_UPPERFIELDFIRST = DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED, - DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED_LOWERFIELDFIRST = 3, - DISPLAYCONFIG_SCANLINE_ORDERING_FORCE_UINT32 = 0xFFFFFFFF -} DISPLAYCONFIG_SCANLINE_ORDERING; - -typedef struct DISPLAYCONFIG_2DREGION -{ - UINT32 cx; - UINT32 cy; -} DISPLAYCONFIG_2DREGION; - -typedef struct DISPLAYCONFIG_VIDEO_SIGNAL_INFO -{ - UINT64 pixelRate; - DISPLAYCONFIG_RATIONAL hSyncFreq; - DISPLAYCONFIG_RATIONAL vSyncFreq; - DISPLAYCONFIG_2DREGION activeSize; - DISPLAYCONFIG_2DREGION totalSize; - - union - { - struct - { - UINT32 videoStandard : 16; - - - UINT32 vSyncFreqDivider : 6; - - UINT32 reserved : 10; - } AdditionalSignalInfo; - - UINT32 videoStandard; - } ; - - - DISPLAYCONFIG_SCANLINE_ORDERING scanLineOrdering; -} DISPLAYCONFIG_VIDEO_SIGNAL_INFO; - -typedef enum -{ - DISPLAYCONFIG_SCALING_IDENTITY = 1, - DISPLAYCONFIG_SCALING_CENTERED = 2, - DISPLAYCONFIG_SCALING_STRETCHED = 3, - DISPLAYCONFIG_SCALING_ASPECTRATIOCENTEREDMAX = 4, - DISPLAYCONFIG_SCALING_CUSTOM = 5, - DISPLAYCONFIG_SCALING_PREFERRED = 128, - DISPLAYCONFIG_SCALING_FORCE_UINT32 = 0xFFFFFFFF -} DISPLAYCONFIG_SCALING; - -typedef enum -{ - DISPLAYCONFIG_ROTATION_IDENTITY = 1, - DISPLAYCONFIG_ROTATION_ROTATE90 = 2, - DISPLAYCONFIG_ROTATION_ROTATE180 = 3, - DISPLAYCONFIG_ROTATION_ROTATE270 = 4, - DISPLAYCONFIG_ROTATION_FORCE_UINT32 = 0xFFFFFFFF -} DISPLAYCONFIG_ROTATION; - -typedef enum -{ - DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE = 1, - DISPLAYCONFIG_MODE_INFO_TYPE_TARGET = 2, - DISPLAYCONFIG_MODE_INFO_TYPE_DESKTOP_IMAGE = 3, - DISPLAYCONFIG_MODE_INFO_TYPE_FORCE_UINT32 = 0xFFFFFFFF -} DISPLAYCONFIG_MODE_INFO_TYPE; - -typedef enum -{ - DISPLAYCONFIG_PIXELFORMAT_8BPP = 1, - DISPLAYCONFIG_PIXELFORMAT_16BPP = 2, - DISPLAYCONFIG_PIXELFORMAT_24BPP = 3, - DISPLAYCONFIG_PIXELFORMAT_32BPP = 4, - DISPLAYCONFIG_PIXELFORMAT_NONGDI = 5, - DISPLAYCONFIG_PIXELFORMAT_FORCE_UINT32 = 0xffffffff -} DISPLAYCONFIG_PIXELFORMAT; - -typedef struct DISPLAYCONFIG_SOURCE_MODE -{ - UINT32 width; - UINT32 height; - DISPLAYCONFIG_PIXELFORMAT pixelFormat; - POINTL position; -} DISPLAYCONFIG_SOURCE_MODE; - -typedef struct DISPLAYCONFIG_TARGET_MODE -{ - DISPLAYCONFIG_VIDEO_SIGNAL_INFO targetVideoSignalInfo; -} DISPLAYCONFIG_TARGET_MODE; - -typedef struct DISPLAYCONFIG_DESKTOP_IMAGE_INFO -{ - POINTL PathSourceSize; - RECTL DesktopImageRegion; - RECTL DesktopImageClip; -} DISPLAYCONFIG_DESKTOP_IMAGE_INFO; - -typedef struct DISPLAYCONFIG_MODE_INFO -{ - DISPLAYCONFIG_MODE_INFO_TYPE infoType; - UINT32 id; - LUID adapterId; - union - { - DISPLAYCONFIG_TARGET_MODE targetMode; - DISPLAYCONFIG_SOURCE_MODE sourceMode; - DISPLAYCONFIG_DESKTOP_IMAGE_INFO desktopImageInfo; - } ; -} DISPLAYCONFIG_MODE_INFO; - - - - - - - -typedef struct DISPLAYCONFIG_PATH_SOURCE_INFO -{ - LUID adapterId; - UINT32 id; - union - { - UINT32 modeInfoIdx; - struct - { - UINT32 cloneGroupId : 16; - UINT32 sourceModeInfoIdx : 16; - } ; - } ; - - UINT32 statusFlags; -} DISPLAYCONFIG_PATH_SOURCE_INFO; - - - - - - - -typedef struct DISPLAYCONFIG_PATH_TARGET_INFO -{ - LUID adapterId; - UINT32 id; - union - { - UINT32 modeInfoIdx; - struct - { - UINT32 desktopModeInfoIdx : 16; - UINT32 targetModeInfoIdx : 16; - } ; - } ; - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY outputTechnology; - DISPLAYCONFIG_ROTATION rotation; - DISPLAYCONFIG_SCALING scaling; - DISPLAYCONFIG_RATIONAL refreshRate; - DISPLAYCONFIG_SCANLINE_ORDERING scanLineOrdering; - BOOL targetAvailable; - UINT32 statusFlags; -} DISPLAYCONFIG_PATH_TARGET_INFO; -# 3005 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct DISPLAYCONFIG_PATH_INFO -{ - DISPLAYCONFIG_PATH_SOURCE_INFO sourceInfo; - DISPLAYCONFIG_PATH_TARGET_INFO targetInfo; - UINT32 flags; -} DISPLAYCONFIG_PATH_INFO; -# 3021 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef enum DISPLAYCONFIG_TOPOLOGY_ID -{ - DISPLAYCONFIG_TOPOLOGY_INTERNAL = 0x00000001, - DISPLAYCONFIG_TOPOLOGY_CLONE = 0x00000002, - DISPLAYCONFIG_TOPOLOGY_EXTEND = 0x00000004, - DISPLAYCONFIG_TOPOLOGY_EXTERNAL = 0x00000008, - DISPLAYCONFIG_TOPOLOGY_FORCE_UINT32 = 0xFFFFFFFF -} DISPLAYCONFIG_TOPOLOGY_ID; - - -typedef enum -{ - DISPLAYCONFIG_DEVICE_INFO_GET_SOURCE_NAME = 1, - DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_NAME = 2, - DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_PREFERRED_MODE = 3, - DISPLAYCONFIG_DEVICE_INFO_GET_ADAPTER_NAME = 4, - DISPLAYCONFIG_DEVICE_INFO_SET_TARGET_PERSISTENCE = 5, - DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_BASE_TYPE = 6, - DISPLAYCONFIG_DEVICE_INFO_GET_SUPPORT_VIRTUAL_RESOLUTION = 7, - DISPLAYCONFIG_DEVICE_INFO_SET_SUPPORT_VIRTUAL_RESOLUTION = 8, - DISPLAYCONFIG_DEVICE_INFO_GET_ADVANCED_COLOR_INFO = 9, - DISPLAYCONFIG_DEVICE_INFO_SET_ADVANCED_COLOR_STATE = 10, - DISPLAYCONFIG_DEVICE_INFO_GET_SDR_WHITE_LEVEL = 11, - DISPLAYCONFIG_DEVICE_INFO_GET_MONITOR_SPECIALIZATION = 12, - DISPLAYCONFIG_DEVICE_INFO_SET_MONITOR_SPECIALIZATION = 13, - DISPLAYCONFIG_DEVICE_INFO_FORCE_UINT32 = 0xFFFFFFFF -} DISPLAYCONFIG_DEVICE_INFO_TYPE; -# 3057 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct DISPLAYCONFIG_DEVICE_INFO_HEADER -{ - DISPLAYCONFIG_DEVICE_INFO_TYPE type; - UINT32 size; - LUID adapterId; - UINT32 id; -} DISPLAYCONFIG_DEVICE_INFO_HEADER; - - - - - - - -typedef struct DISPLAYCONFIG_SOURCE_DEVICE_NAME -{ - DISPLAYCONFIG_DEVICE_INFO_HEADER header; - WCHAR viewGdiDeviceName[32]; -} DISPLAYCONFIG_SOURCE_DEVICE_NAME; - -typedef struct DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS -{ - union - { - struct - { - UINT32 friendlyNameFromEdid : 1; - UINT32 friendlyNameForced : 1; - UINT32 edidIdsValid : 1; - UINT32 reserved : 29; - } ; - UINT32 value; - } ; -} DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS; - -typedef struct DISPLAYCONFIG_TARGET_DEVICE_NAME -{ - DISPLAYCONFIG_DEVICE_INFO_HEADER header; - DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS flags; - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY outputTechnology; - UINT16 edidManufactureId; - UINT16 edidProductCodeId; - UINT32 connectorInstance; - WCHAR monitorFriendlyDeviceName[64]; - WCHAR monitorDevicePath[128]; -} DISPLAYCONFIG_TARGET_DEVICE_NAME; - -typedef struct DISPLAYCONFIG_TARGET_PREFERRED_MODE -{ - DISPLAYCONFIG_DEVICE_INFO_HEADER header; - UINT32 width; - UINT32 height; - DISPLAYCONFIG_TARGET_MODE targetMode; -} DISPLAYCONFIG_TARGET_PREFERRED_MODE; - -typedef struct DISPLAYCONFIG_ADAPTER_NAME -{ - DISPLAYCONFIG_DEVICE_INFO_HEADER header; - WCHAR adapterDevicePath[128]; -} DISPLAYCONFIG_ADAPTER_NAME; - -typedef struct DISPLAYCONFIG_TARGET_BASE_TYPE { - DISPLAYCONFIG_DEVICE_INFO_HEADER header; - DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY baseOutputTechnology; -} DISPLAYCONFIG_TARGET_BASE_TYPE; - - -typedef struct DISPLAYCONFIG_SET_TARGET_PERSISTENCE -{ - DISPLAYCONFIG_DEVICE_INFO_HEADER header; - union - { - struct - { - UINT32 bootPersistenceOn : 1; - UINT32 reserved : 31; - } ; - UINT32 value; - } ; -} DISPLAYCONFIG_SET_TARGET_PERSISTENCE; - -typedef struct DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION -{ - DISPLAYCONFIG_DEVICE_INFO_HEADER header; - union - { - struct - { - UINT32 disableMonitorVirtualResolution : 1; - UINT32 reserved : 31; - } ; - UINT32 value; - } ; -} DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION; - -typedef enum _DISPLAYCONFIG_COLOR_ENCODING -{ - DISPLAYCONFIG_COLOR_ENCODING_RGB = 0, - DISPLAYCONFIG_COLOR_ENCODING_YCBCR444 = 1, - DISPLAYCONFIG_COLOR_ENCODING_YCBCR422 = 2, - DISPLAYCONFIG_COLOR_ENCODING_YCBCR420 = 3, - DISPLAYCONFIG_COLOR_ENCODING_INTENSITY = 4, - DISPLAYCONFIG_COLOR_ENCODING_FORCE_UINT32 = 0xFFFFFFFF -} DISPLAYCONFIG_COLOR_ENCODING; - -typedef struct _DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO -{ - DISPLAYCONFIG_DEVICE_INFO_HEADER header; - union - { - struct - { - UINT32 advancedColorSupported :1; - UINT32 advancedColorEnabled :1; - UINT32 wideColorEnforced :1; - UINT32 advancedColorForceDisabled :1; - UINT32 reserved :28; - } ; - - UINT32 value; - } ; - - DISPLAYCONFIG_COLOR_ENCODING colorEncoding; - UINT32 bitsPerColorChannel; -} DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO; - -typedef struct _DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE -{ - DISPLAYCONFIG_DEVICE_INFO_HEADER header; - union - { - struct - { - UINT32 enableAdvancedColor :1; - UINT32 reserved :31; - } ; - - UINT32 value; - }; -} DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE; - -typedef struct _DISPLAYCONFIG_SDR_WHITE_LEVEL -{ - DISPLAYCONFIG_DEVICE_INFO_HEADER header; - - - - - - ULONG SDRWhiteLevel; -} DISPLAYCONFIG_SDR_WHITE_LEVEL; - -typedef struct _DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION -{ - DISPLAYCONFIG_DEVICE_INFO_HEADER header; - union - { - struct - { - UINT32 isSpecializationEnabled : 1; - UINT32 isSpecializationAvailableForMonitor : 1; - UINT32 isSpecializationAvailableForSystem : 1; - UINT32 reserved : 29; - } ; - UINT32 value; - } ; -} DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION; - -typedef struct _DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION -{ - DISPLAYCONFIG_DEVICE_INFO_HEADER header; - union - { - struct - { - UINT32 isSpecializationEnabled : 1; - UINT32 reserved : 31; - } ; - UINT32 value; - } ; - - GUID specializationType; - GUID specializationSubType; - - WCHAR specializationApplicationName[128]; -} DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION; -# 3294 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct _RGNDATAHEADER { - DWORD dwSize; - DWORD iType; - DWORD nCount; - DWORD nRgnSize; - RECT rcBound; -} RGNDATAHEADER, *PRGNDATAHEADER; - -typedef struct _RGNDATA { - RGNDATAHEADER rdh; - char Buffer[1]; -} RGNDATA, *PRGNDATA, *NPRGNDATA, *LPRGNDATA; -# 3318 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct _ABC { - int abcA; - UINT abcB; - int abcC; -} ABC, *PABC, *NPABC, *LPABC; - -typedef struct _ABCFLOAT { - FLOAT abcfA; - FLOAT abcfB; - FLOAT abcfC; -} ABCFLOAT, *PABCFLOAT, *NPABCFLOAT, *LPABCFLOAT; -# 3342 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct _OUTLINETEXTMETRICA { - UINT otmSize; - TEXTMETRICA otmTextMetrics; - BYTE otmFiller; - PANOSE otmPanoseNumber; - UINT otmfsSelection; - UINT otmfsType; - int otmsCharSlopeRise; - int otmsCharSlopeRun; - int otmItalicAngle; - UINT otmEMSquare; - int otmAscent; - int otmDescent; - UINT otmLineGap; - UINT otmsCapEmHeight; - UINT otmsXHeight; - RECT otmrcFontBox; - int otmMacAscent; - int otmMacDescent; - UINT otmMacLineGap; - UINT otmusMinimumPPEM; - POINT otmptSubscriptSize; - POINT otmptSubscriptOffset; - POINT otmptSuperscriptSize; - POINT otmptSuperscriptOffset; - UINT otmsStrikeoutSize; - int otmsStrikeoutPosition; - int otmsUnderscoreSize; - int otmsUnderscorePosition; - PSTR otmpFamilyName; - PSTR otmpFaceName; - PSTR otmpStyleName; - PSTR otmpFullName; -} OUTLINETEXTMETRICA, *POUTLINETEXTMETRICA, *NPOUTLINETEXTMETRICA, *LPOUTLINETEXTMETRICA; -typedef struct _OUTLINETEXTMETRICW { - UINT otmSize; - TEXTMETRICW otmTextMetrics; - BYTE otmFiller; - PANOSE otmPanoseNumber; - UINT otmfsSelection; - UINT otmfsType; - int otmsCharSlopeRise; - int otmsCharSlopeRun; - int otmItalicAngle; - UINT otmEMSquare; - int otmAscent; - int otmDescent; - UINT otmLineGap; - UINT otmsCapEmHeight; - UINT otmsXHeight; - RECT otmrcFontBox; - int otmMacAscent; - int otmMacDescent; - UINT otmMacLineGap; - UINT otmusMinimumPPEM; - POINT otmptSubscriptSize; - POINT otmptSubscriptOffset; - POINT otmptSuperscriptSize; - POINT otmptSuperscriptOffset; - UINT otmsStrikeoutSize; - int otmsStrikeoutPosition; - int otmsUnderscoreSize; - int otmsUnderscorePosition; - PSTR otmpFamilyName; - PSTR otmpFaceName; - PSTR otmpStyleName; - PSTR otmpFullName; -} OUTLINETEXTMETRICW, *POUTLINETEXTMETRICW, *NPOUTLINETEXTMETRICW, *LPOUTLINETEXTMETRICW; - - - - - - -typedef OUTLINETEXTMETRICA OUTLINETEXTMETRIC; -typedef POUTLINETEXTMETRICA POUTLINETEXTMETRIC; -typedef NPOUTLINETEXTMETRICA NPOUTLINETEXTMETRIC; -typedef LPOUTLINETEXTMETRICA LPOUTLINETEXTMETRIC; -# 3434 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagPOLYTEXTA -{ - int x; - int y; - UINT n; - LPCSTR lpstr; - UINT uiFlags; - RECT rcl; - int *pdx; -} POLYTEXTA, *PPOLYTEXTA, *NPPOLYTEXTA, *LPPOLYTEXTA; -typedef struct tagPOLYTEXTW -{ - int x; - int y; - UINT n; - LPCWSTR lpstr; - UINT uiFlags; - RECT rcl; - int *pdx; -} POLYTEXTW, *PPOLYTEXTW, *NPPOLYTEXTW, *LPPOLYTEXTW; - - - - - - -typedef POLYTEXTA POLYTEXT; -typedef PPOLYTEXTA PPOLYTEXT; -typedef NPPOLYTEXTA NPPOLYTEXT; -typedef LPPOLYTEXTA LPPOLYTEXT; -# 3472 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct _FIXED { - - WORD fract; - short value; - - - - -} FIXED; - - -typedef struct _MAT2 { - FIXED eM11; - FIXED eM12; - FIXED eM21; - FIXED eM22; -} MAT2, *LPMAT2; - - - -typedef struct _GLYPHMETRICS { - UINT gmBlackBoxX; - UINT gmBlackBoxY; - POINT gmptGlyphOrigin; - short gmCellIncX; - short gmCellIncY; -} GLYPHMETRICS, *LPGLYPHMETRICS; -# 3530 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagPOINTFX -{ - FIXED x; - FIXED y; -} POINTFX, * LPPOINTFX; - -typedef struct tagTTPOLYCURVE -{ - WORD wType; - WORD cpfx; - POINTFX apfx[1]; -} TTPOLYCURVE, * LPTTPOLYCURVE; - -typedef struct tagTTPOLYGONHEADER -{ - DWORD cb; - DWORD dwType; - POINTFX pfxStart; -} TTPOLYGONHEADER, * LPTTPOLYGONHEADER; -# 3600 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagGCP_RESULTSA - { - DWORD lStructSize; - LPSTR lpOutString; - UINT *lpOrder; - int *lpDx; - int *lpCaretPos; - LPSTR lpClass; - LPWSTR lpGlyphs; - UINT nGlyphs; - int nMaxFit; - } GCP_RESULTSA, * LPGCP_RESULTSA; -typedef struct tagGCP_RESULTSW - { - DWORD lStructSize; - LPWSTR lpOutString; - UINT *lpOrder; - int *lpDx; - int *lpCaretPos; - LPSTR lpClass; - LPWSTR lpGlyphs; - UINT nGlyphs; - int nMaxFit; - } GCP_RESULTSW, * LPGCP_RESULTSW; - - - - -typedef GCP_RESULTSA GCP_RESULTS; -typedef LPGCP_RESULTSA LPGCP_RESULTS; -# 3639 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct _RASTERIZER_STATUS { - short nSize; - short wFlags; - short nLanguageID; -} RASTERIZER_STATUS, *LPRASTERIZER_STATUS; -# 3656 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagPIXELFORMATDESCRIPTOR -{ - WORD nSize; - WORD nVersion; - DWORD dwFlags; - BYTE iPixelType; - BYTE cColorBits; - BYTE cRedBits; - BYTE cRedShift; - BYTE cGreenBits; - BYTE cGreenShift; - BYTE cBlueBits; - BYTE cBlueShift; - BYTE cAlphaBits; - BYTE cAlphaShift; - BYTE cAccumBits; - BYTE cAccumRedBits; - BYTE cAccumGreenBits; - BYTE cAccumBlueBits; - BYTE cAccumAlphaBits; - BYTE cDepthBits; - BYTE cStencilBits; - BYTE cAuxBuffers; - BYTE iLayerType; - BYTE bReserved; - DWORD dwLayerMask; - DWORD dwVisibleMask; - DWORD dwDamageMask; -} PIXELFORMATDESCRIPTOR, *PPIXELFORMATDESCRIPTOR, *LPPIXELFORMATDESCRIPTOR; -# 3728 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef int (__stdcall* OLDFONTENUMPROCA)(const LOGFONTA *, const TEXTMETRICA *, DWORD, LPARAM); -typedef int (__stdcall* OLDFONTENUMPROCW)(const LOGFONTW *, const TEXTMETRICW *, DWORD, LPARAM); -# 3745 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef OLDFONTENUMPROCA FONTENUMPROCA; -typedef OLDFONTENUMPROCW FONTENUMPROCW; - - - -typedef FONTENUMPROCA FONTENUMPROC; - - -typedef int (__stdcall* GOBJENUMPROC)(LPVOID, LPARAM); -typedef void (__stdcall* LINEDDAPROC)(int, int, LPARAM); -# 3776 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -__declspec(dllimport) int __stdcall AddFontResourceA( LPCSTR); -__declspec(dllimport) int __stdcall AddFontResourceW( LPCWSTR); - - - - - - - __declspec(dllimport) BOOL __stdcall AnimatePalette( HPALETTE hPal, UINT iStartIndex, UINT cEntries, const PALETTEENTRY * ppe); - __declspec(dllimport) BOOL __stdcall Arc( HDC hdc, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4); - __declspec(dllimport) BOOL __stdcall BitBlt( HDC hdc, int x, int y, int cx, int cy, HDC hdcSrc, int x1, int y1, DWORD rop); -__declspec(dllimport) BOOL __stdcall CancelDC( HDC hdc); - __declspec(dllimport) BOOL __stdcall Chord( HDC hdc, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4); -__declspec(dllimport) int __stdcall ChoosePixelFormat( HDC hdc, const PIXELFORMATDESCRIPTOR *ppfd); -__declspec(dllimport) HMETAFILE __stdcall CloseMetaFile( HDC hdc); -__declspec(dllimport) int __stdcall CombineRgn( HRGN hrgnDst, HRGN hrgnSrc1, HRGN hrgnSrc2, int iMode); -__declspec(dllimport) HMETAFILE __stdcall CopyMetaFileA( HMETAFILE, LPCSTR); -__declspec(dllimport) HMETAFILE __stdcall CopyMetaFileW( HMETAFILE, LPCWSTR); - - - - - - __declspec(dllimport) HBITMAP __stdcall CreateBitmap( int nWidth, int nHeight, UINT nPlanes, UINT nBitCount, const void *lpBits); - __declspec(dllimport) HBITMAP __stdcall CreateBitmapIndirect( const BITMAP *pbm); - __declspec(dllimport) HBRUSH __stdcall CreateBrushIndirect( const LOGBRUSH *plbrush); -__declspec(dllimport) HBITMAP __stdcall CreateCompatibleBitmap( HDC hdc, int cx, int cy); -__declspec(dllimport) HBITMAP __stdcall CreateDiscardableBitmap( HDC hdc, int cx, int cy); -__declspec(dllimport) HDC __stdcall CreateCompatibleDC( HDC hdc); -__declspec(dllimport) HDC __stdcall CreateDCA( LPCSTR pwszDriver, LPCSTR pwszDevice, LPCSTR pszPort, const DEVMODEA * pdm); -__declspec(dllimport) HDC __stdcall CreateDCW( LPCWSTR pwszDriver, LPCWSTR pwszDevice, LPCWSTR pszPort, const DEVMODEW * pdm); - - - - - -__declspec(dllimport) HBITMAP __stdcall CreateDIBitmap( HDC hdc, const BITMAPINFOHEADER *pbmih, DWORD flInit, const void *pjBits, const BITMAPINFO *pbmi, UINT iUsage); -__declspec(dllimport) HBRUSH __stdcall CreateDIBPatternBrush( HGLOBAL h, UINT iUsage); - __declspec(dllimport) HBRUSH __stdcall CreateDIBPatternBrushPt( const void *lpPackedDIB, UINT iUsage); -__declspec(dllimport) HRGN __stdcall CreateEllipticRgn( int x1, int y1, int x2, int y2); -__declspec(dllimport) HRGN __stdcall CreateEllipticRgnIndirect( const RECT *lprect); - __declspec(dllimport) HFONT __stdcall CreateFontIndirectA( const LOGFONTA *lplf); - __declspec(dllimport) HFONT __stdcall CreateFontIndirectW( const LOGFONTW *lplf); - - - - - -__declspec(dllimport) HFONT __stdcall CreateFontA( int cHeight, int cWidth, int cEscapement, int cOrientation, int cWeight, DWORD bItalic, - DWORD bUnderline, DWORD bStrikeOut, DWORD iCharSet, DWORD iOutPrecision, DWORD iClipPrecision, - DWORD iQuality, DWORD iPitchAndFamily, LPCSTR pszFaceName); -__declspec(dllimport) HFONT __stdcall CreateFontW( int cHeight, int cWidth, int cEscapement, int cOrientation, int cWeight, DWORD bItalic, - DWORD bUnderline, DWORD bStrikeOut, DWORD iCharSet, DWORD iOutPrecision, DWORD iClipPrecision, - DWORD iQuality, DWORD iPitchAndFamily, LPCWSTR pszFaceName); - - - - - - -__declspec(dllimport) HBRUSH __stdcall CreateHatchBrush( int iHatch, COLORREF color); -__declspec(dllimport) HDC __stdcall CreateICA( LPCSTR pszDriver, LPCSTR pszDevice, LPCSTR pszPort, const DEVMODEA * pdm); -__declspec(dllimport) HDC __stdcall CreateICW( LPCWSTR pszDriver, LPCWSTR pszDevice, LPCWSTR pszPort, const DEVMODEW * pdm); - - - - - -__declspec(dllimport) HDC __stdcall CreateMetaFileA( LPCSTR pszFile); -__declspec(dllimport) HDC __stdcall CreateMetaFileW( LPCWSTR pszFile); - - - - - - __declspec(dllimport) HPALETTE __stdcall CreatePalette( const LOGPALETTE * plpal); -__declspec(dllimport) HPEN __stdcall CreatePen( int iStyle, int cWidth, COLORREF color); - __declspec(dllimport) HPEN __stdcall CreatePenIndirect( const LOGPEN *plpen); -__declspec(dllimport) HRGN __stdcall CreatePolyPolygonRgn( const POINT *pptl, - const INT *pc, - int cPoly, - int iMode); - __declspec(dllimport) HBRUSH __stdcall CreatePatternBrush( HBITMAP hbm); -__declspec(dllimport) HRGN __stdcall CreateRectRgn( int x1, int y1, int x2, int y2); -__declspec(dllimport) HRGN __stdcall CreateRectRgnIndirect( const RECT *lprect); -__declspec(dllimport) HRGN __stdcall CreateRoundRectRgn( int x1, int y1, int x2, int y2, int w, int h); -__declspec(dllimport) BOOL __stdcall CreateScalableFontResourceA( DWORD fdwHidden, LPCSTR lpszFont, LPCSTR lpszFile, LPCSTR lpszPath); -__declspec(dllimport) BOOL __stdcall CreateScalableFontResourceW( DWORD fdwHidden, LPCWSTR lpszFont, LPCWSTR lpszFile, LPCWSTR lpszPath); - - - - - -__declspec(dllimport) HBRUSH __stdcall CreateSolidBrush( COLORREF color); - -__declspec(dllimport) BOOL __stdcall DeleteDC( HDC hdc); -__declspec(dllimport) BOOL __stdcall DeleteMetaFile( HMETAFILE hmf); - __declspec(dllimport) BOOL __stdcall DeleteObject( HGDIOBJ ho); -__declspec(dllimport) int __stdcall DescribePixelFormat( HDC hdc, - int iPixelFormat, - UINT nBytes, - LPPIXELFORMATDESCRIPTOR ppfd); - - - - - -typedef UINT (__stdcall* LPFNDEVMODE)(HWND, HMODULE, LPDEVMODE, LPSTR, LPSTR, LPDEVMODE, LPSTR, UINT); - -typedef DWORD (__stdcall* LPFNDEVCAPS)(LPSTR, LPSTR, UINT, LPSTR, LPDEVMODE); -# 3970 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -__declspec(dllimport) -int -__stdcall -DeviceCapabilitiesA( - LPCSTR pDevice, - LPCSTR pPort, - WORD fwCapability, - LPSTR pOutput, - const DEVMODEA *pDevMode - ); -__declspec(dllimport) -int -__stdcall -DeviceCapabilitiesW( - LPCWSTR pDevice, - LPCWSTR pPort, - WORD fwCapability, - LPWSTR pOutput, - const DEVMODEW *pDevMode - ); - - - - - - -__declspec(dllimport) int __stdcall DrawEscape( HDC hdc, - int iEscape, - int cjIn, - LPCSTR lpIn); - - __declspec(dllimport) BOOL __stdcall Ellipse( HDC hdc, int left, int top, int right, int bottom); - - -__declspec(dllimport) int __stdcall EnumFontFamiliesExA( HDC hdc, LPLOGFONTA lpLogfont, FONTENUMPROCA lpProc, LPARAM lParam, DWORD dwFlags); -__declspec(dllimport) int __stdcall EnumFontFamiliesExW( HDC hdc, LPLOGFONTW lpLogfont, FONTENUMPROCW lpProc, LPARAM lParam, DWORD dwFlags); - - - - - - - -__declspec(dllimport) int __stdcall EnumFontFamiliesA( HDC hdc, LPCSTR lpLogfont, FONTENUMPROCA lpProc, LPARAM lParam); -__declspec(dllimport) int __stdcall EnumFontFamiliesW( HDC hdc, LPCWSTR lpLogfont, FONTENUMPROCW lpProc, LPARAM lParam); - - - - - -__declspec(dllimport) int __stdcall EnumFontsA( HDC hdc, LPCSTR lpLogfont, FONTENUMPROCA lpProc, LPARAM lParam); -__declspec(dllimport) int __stdcall EnumFontsW( HDC hdc, LPCWSTR lpLogfont, FONTENUMPROCW lpProc, LPARAM lParam); - - - - - - - -__declspec(dllimport) int __stdcall EnumObjects( HDC hdc, int nType, GOBJENUMPROC lpFunc, LPARAM lParam); - - - - - -__declspec(dllimport) BOOL __stdcall EqualRgn( HRGN hrgn1, HRGN hrgn2); - __declspec(dllimport) int __stdcall Escape( HDC hdc, - int iEscape, - int cjIn, - LPCSTR pvIn, - LPVOID pvOut); -__declspec(dllimport) int __stdcall ExtEscape( HDC hdc, - int iEscape, - int cjInput, - LPCSTR lpInData, - int cjOutput, - LPSTR lpOutData); - __declspec(dllimport) int __stdcall ExcludeClipRect( HDC hdc, int left, int top, int right, int bottom); - __declspec(dllimport) HRGN __stdcall ExtCreateRegion( const XFORM * lpx, DWORD nCount, const RGNDATA * lpData); - __declspec(dllimport) BOOL __stdcall ExtFloodFill( HDC hdc, int x, int y, COLORREF color, UINT type); - __declspec(dllimport) BOOL __stdcall FillRgn( HDC hdc, HRGN hrgn, HBRUSH hbr); - __declspec(dllimport) BOOL __stdcall FloodFill( HDC hdc, int x, int y, COLORREF color); - __declspec(dllimport) BOOL __stdcall FrameRgn( HDC hdc, HRGN hrgn, HBRUSH hbr, int w, int h); -__declspec(dllimport) int __stdcall GetROP2( HDC hdc); -__declspec(dllimport) BOOL __stdcall GetAspectRatioFilterEx( HDC hdc, LPSIZE lpsize); -__declspec(dllimport) COLORREF __stdcall GetBkColor( HDC hdc); - - -__declspec(dllimport) COLORREF __stdcall GetDCBrushColor( HDC hdc); -__declspec(dllimport) COLORREF __stdcall GetDCPenColor( HDC hdc); - - -__declspec(dllimport) -int -__stdcall -GetBkMode( - HDC hdc - ); - -__declspec(dllimport) -LONG -__stdcall -GetBitmapBits( - HBITMAP hbit, - LONG cb, - LPVOID lpvBits - ); - -__declspec(dllimport) BOOL __stdcall GetBitmapDimensionEx( HBITMAP hbit, LPSIZE lpsize); -__declspec(dllimport) UINT __stdcall GetBoundsRect( HDC hdc, LPRECT lprect, UINT flags); - -__declspec(dllimport) BOOL __stdcall GetBrushOrgEx( HDC hdc, LPPOINT lppt); - -__declspec(dllimport) BOOL __stdcall GetCharWidthA( HDC hdc, UINT iFirst, UINT iLast, LPINT lpBuffer); -__declspec(dllimport) BOOL __stdcall GetCharWidthW( HDC hdc, UINT iFirst, UINT iLast, LPINT lpBuffer); - - - - - -__declspec(dllimport) BOOL __stdcall GetCharWidth32A( HDC hdc, UINT iFirst, UINT iLast, LPINT lpBuffer); -__declspec(dllimport) BOOL __stdcall GetCharWidth32W( HDC hdc, UINT iFirst, UINT iLast, LPINT lpBuffer); - - - - - -__declspec(dllimport) BOOL __stdcall GetCharWidthFloatA( HDC hdc, UINT iFirst, UINT iLast, PFLOAT lpBuffer); -__declspec(dllimport) BOOL __stdcall GetCharWidthFloatW( HDC hdc, UINT iFirst, UINT iLast, PFLOAT lpBuffer); - - - - - - -__declspec(dllimport) BOOL __stdcall GetCharABCWidthsA( HDC hdc, - UINT wFirst, - UINT wLast, - LPABC lpABC); -__declspec(dllimport) BOOL __stdcall GetCharABCWidthsW( HDC hdc, - UINT wFirst, - UINT wLast, - LPABC lpABC); - - - - - - -__declspec(dllimport) BOOL __stdcall GetCharABCWidthsFloatA( HDC hdc, UINT iFirst, UINT iLast, LPABCFLOAT lpABC); -__declspec(dllimport) BOOL __stdcall GetCharABCWidthsFloatW( HDC hdc, UINT iFirst, UINT iLast, LPABCFLOAT lpABC); - - - - - -__declspec(dllimport) int __stdcall GetClipBox( HDC hdc, LPRECT lprect); -__declspec(dllimport) int __stdcall GetClipRgn( HDC hdc, HRGN hrgn); -__declspec(dllimport) int __stdcall GetMetaRgn( HDC hdc, HRGN hrgn); -__declspec(dllimport) HGDIOBJ __stdcall GetCurrentObject( HDC hdc, UINT type); -__declspec(dllimport) BOOL __stdcall GetCurrentPositionEx( HDC hdc, LPPOINT lppt); -__declspec(dllimport) int __stdcall GetDeviceCaps( HDC hdc, int index); -__declspec(dllimport) int __stdcall GetDIBits( HDC hdc, HBITMAP hbm, UINT start, UINT cLines, - LPVOID lpvBits, LPBITMAPINFO lpbmi, UINT usage); - - -__declspec(dllimport) DWORD __stdcall GetFontData ( HDC hdc, - DWORD dwTable, - DWORD dwOffset, - PVOID pvBuffer, - DWORD cjBuffer - ); - -__declspec(dllimport) DWORD __stdcall GetGlyphOutlineA( HDC hdc, - UINT uChar, - UINT fuFormat, - LPGLYPHMETRICS lpgm, - DWORD cjBuffer, - LPVOID pvBuffer, - const MAT2 *lpmat2 - ); -__declspec(dllimport) DWORD __stdcall GetGlyphOutlineW( HDC hdc, - UINT uChar, - UINT fuFormat, - LPGLYPHMETRICS lpgm, - DWORD cjBuffer, - LPVOID pvBuffer, - const MAT2 *lpmat2 - ); - - - - - - -__declspec(dllimport) int __stdcall GetGraphicsMode( HDC hdc); -__declspec(dllimport) int __stdcall GetMapMode( HDC hdc); -__declspec(dllimport) UINT __stdcall GetMetaFileBitsEx( HMETAFILE hMF, UINT cbBuffer, LPVOID lpData); -__declspec(dllimport) HMETAFILE __stdcall GetMetaFileA( LPCSTR lpName); -__declspec(dllimport) HMETAFILE __stdcall GetMetaFileW( LPCWSTR lpName); - - - - - -__declspec(dllimport) COLORREF __stdcall GetNearestColor( HDC hdc, COLORREF color); -__declspec(dllimport) UINT __stdcall GetNearestPaletteIndex( HPALETTE h, COLORREF color); - -__declspec(dllimport) DWORD __stdcall GetObjectType( HGDIOBJ h); - - - -__declspec(dllimport) UINT __stdcall GetOutlineTextMetricsA( HDC hdc, - UINT cjCopy, - LPOUTLINETEXTMETRICA potm); -__declspec(dllimport) UINT __stdcall GetOutlineTextMetricsW( HDC hdc, - UINT cjCopy, - LPOUTLINETEXTMETRICW potm); -# 4197 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -__declspec(dllimport) UINT __stdcall GetPaletteEntries( HPALETTE hpal, - UINT iStart, - UINT cEntries, - LPPALETTEENTRY pPalEntries); -__declspec(dllimport) COLORREF __stdcall GetPixel( HDC hdc, int x, int y); -__declspec(dllimport) int __stdcall GetPixelFormat( HDC hdc); -__declspec(dllimport) int __stdcall GetPolyFillMode( HDC hdc); -__declspec(dllimport) BOOL __stdcall GetRasterizerCaps( LPRASTERIZER_STATUS lpraststat, - UINT cjBytes); - -__declspec(dllimport) int __stdcall GetRandomRgn ( HDC hdc, HRGN hrgn, INT i); -__declspec(dllimport) DWORD __stdcall GetRegionData( HRGN hrgn, - DWORD nCount, - LPRGNDATA lpRgnData); -__declspec(dllimport) int __stdcall GetRgnBox( HRGN hrgn, LPRECT lprc); -__declspec(dllimport) HGDIOBJ __stdcall GetStockObject( int i); -__declspec(dllimport) int __stdcall GetStretchBltMode( HDC hdc); -__declspec(dllimport) -UINT -__stdcall -GetSystemPaletteEntries( - HDC hdc, - UINT iStart, - UINT cEntries, - LPPALETTEENTRY pPalEntries - ); - -__declspec(dllimport) UINT __stdcall GetSystemPaletteUse( HDC hdc); -__declspec(dllimport) int __stdcall GetTextCharacterExtra( HDC hdc); -__declspec(dllimport) UINT __stdcall GetTextAlign( HDC hdc); -__declspec(dllimport) COLORREF __stdcall GetTextColor( HDC hdc); - -__declspec(dllimport) -BOOL -__stdcall -GetTextExtentPointA( - HDC hdc, - LPCSTR lpString, - int c, - LPSIZE lpsz - ); -__declspec(dllimport) -BOOL -__stdcall -GetTextExtentPointW( - HDC hdc, - LPCWSTR lpString, - int c, - LPSIZE lpsz - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetTextExtentPoint32A( - HDC hdc, - LPCSTR lpString, - int c, - LPSIZE psizl - ); -__declspec(dllimport) -BOOL -__stdcall -GetTextExtentPoint32W( - HDC hdc, - LPCWSTR lpString, - int c, - LPSIZE psizl - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetTextExtentExPointA( - HDC hdc, - LPCSTR lpszString, - int cchString, - int nMaxExtent, - LPINT lpnFit, - LPINT lpnDx, - LPSIZE lpSize - ); -__declspec(dllimport) -BOOL -__stdcall -GetTextExtentExPointW( - HDC hdc, - LPCWSTR lpszString, - int cchString, - int nMaxExtent, - LPINT lpnFit, - LPINT lpnDx, - LPSIZE lpSize - ); - - - - - - - -__declspec(dllimport) int __stdcall GetTextCharset( HDC hdc); -__declspec(dllimport) int __stdcall GetTextCharsetInfo( HDC hdc, LPFONTSIGNATURE lpSig, DWORD dwFlags); -__declspec(dllimport) BOOL __stdcall TranslateCharsetInfo( DWORD *lpSrc, LPCHARSETINFO lpCs, DWORD dwFlags); -__declspec(dllimport) DWORD __stdcall GetFontLanguageInfo( HDC hdc); -__declspec(dllimport) DWORD __stdcall GetCharacterPlacementA( HDC hdc, LPCSTR lpString, int nCount, int nMexExtent, LPGCP_RESULTSA lpResults, DWORD dwFlags); -__declspec(dllimport) DWORD __stdcall GetCharacterPlacementW( HDC hdc, LPCWSTR lpString, int nCount, int nMexExtent, LPGCP_RESULTSW lpResults, DWORD dwFlags); -# 4329 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagWCRANGE -{ - WCHAR wcLow; - USHORT cGlyphs; -} WCRANGE, *PWCRANGE, *LPWCRANGE; - - -typedef struct tagGLYPHSET -{ - DWORD cbThis; - DWORD flAccel; - DWORD cGlyphsSupported; - DWORD cRanges; - WCRANGE ranges[1]; -} GLYPHSET, *PGLYPHSET, *LPGLYPHSET; -# 4353 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -__declspec(dllimport) DWORD __stdcall GetFontUnicodeRanges( HDC hdc, LPGLYPHSET lpgs); -__declspec(dllimport) DWORD __stdcall GetGlyphIndicesA( HDC hdc, LPCSTR lpstr, int c, LPWORD pgi, DWORD fl); -__declspec(dllimport) DWORD __stdcall GetGlyphIndicesW( HDC hdc, LPCWSTR lpstr, int c, LPWORD pgi, DWORD fl); - - - - - -__declspec(dllimport) BOOL __stdcall GetTextExtentPointI( HDC hdc, LPWORD pgiIn, int cgi, LPSIZE psize); -__declspec(dllimport) BOOL __stdcall GetTextExtentExPointI ( HDC hdc, - LPWORD lpwszString, - int cwchString, - int nMaxExtent, - LPINT lpnFit, - LPINT lpnDx, - LPSIZE lpSize - ); - -__declspec(dllimport) BOOL __stdcall GetCharWidthI( HDC hdc, - UINT giFirst, - UINT cgi, - LPWORD pgi, - LPINT piWidths - ); - -__declspec(dllimport) BOOL __stdcall GetCharABCWidthsI( HDC hdc, - UINT giFirst, - UINT cgi, - LPWORD pgi, - LPABC pabc - ); -# 4394 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagDESIGNVECTOR -{ - DWORD dvReserved; - DWORD dvNumAxes; - LONG dvValues[16]; -} DESIGNVECTOR, *PDESIGNVECTOR, *LPDESIGNVECTOR; - -__declspec(dllimport) int __stdcall AddFontResourceExA( LPCSTR name, DWORD fl, PVOID res); -__declspec(dllimport) int __stdcall AddFontResourceExW( LPCWSTR name, DWORD fl, PVOID res); - - - - - -__declspec(dllimport) BOOL __stdcall RemoveFontResourceExA( LPCSTR name, DWORD fl, PVOID pdv); -__declspec(dllimport) BOOL __stdcall RemoveFontResourceExW( LPCWSTR name, DWORD fl, PVOID pdv); - - - - - -__declspec(dllimport) HANDLE __stdcall AddFontMemResourceEx( PVOID pFileView, - DWORD cjSize, - PVOID pvResrved, - DWORD* pNumFonts); - -__declspec(dllimport) BOOL __stdcall RemoveFontMemResourceEx( HANDLE h); -# 4430 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagAXISINFOA -{ - LONG axMinValue; - LONG axMaxValue; - BYTE axAxisName[16]; -} AXISINFOA, *PAXISINFOA, *LPAXISINFOA; -typedef struct tagAXISINFOW -{ - LONG axMinValue; - LONG axMaxValue; - WCHAR axAxisName[16]; -} AXISINFOW, *PAXISINFOW, *LPAXISINFOW; - - - - - -typedef AXISINFOA AXISINFO; -typedef PAXISINFOA PAXISINFO; -typedef LPAXISINFOA LPAXISINFO; - - -typedef struct tagAXESLISTA -{ - DWORD axlReserved; - DWORD axlNumAxes; - AXISINFOA axlAxisInfo[16]; -} AXESLISTA, *PAXESLISTA, *LPAXESLISTA; -typedef struct tagAXESLISTW -{ - DWORD axlReserved; - DWORD axlNumAxes; - AXISINFOW axlAxisInfo[16]; -} AXESLISTW, *PAXESLISTW, *LPAXESLISTW; - - - - - -typedef AXESLISTA AXESLIST; -typedef PAXESLISTA PAXESLIST; -typedef LPAXESLISTA LPAXESLIST; - - - - - - -typedef struct tagENUMLOGFONTEXDVA -{ - ENUMLOGFONTEXA elfEnumLogfontEx; - DESIGNVECTOR elfDesignVector; -} ENUMLOGFONTEXDVA, *PENUMLOGFONTEXDVA, *LPENUMLOGFONTEXDVA; -typedef struct tagENUMLOGFONTEXDVW -{ - ENUMLOGFONTEXW elfEnumLogfontEx; - DESIGNVECTOR elfDesignVector; -} ENUMLOGFONTEXDVW, *PENUMLOGFONTEXDVW, *LPENUMLOGFONTEXDVW; - - - - - -typedef ENUMLOGFONTEXDVA ENUMLOGFONTEXDV; -typedef PENUMLOGFONTEXDVA PENUMLOGFONTEXDV; -typedef LPENUMLOGFONTEXDVA LPENUMLOGFONTEXDV; - - -__declspec(dllimport) HFONT __stdcall CreateFontIndirectExA( const ENUMLOGFONTEXDVA *); -__declspec(dllimport) HFONT __stdcall CreateFontIndirectExW( const ENUMLOGFONTEXDVW *); - - - - - - - -typedef struct tagENUMTEXTMETRICA -{ - NEWTEXTMETRICEXA etmNewTextMetricEx; - AXESLISTA etmAxesList; -} ENUMTEXTMETRICA, *PENUMTEXTMETRICA, *LPENUMTEXTMETRICA; -typedef struct tagENUMTEXTMETRICW -{ - NEWTEXTMETRICEXW etmNewTextMetricEx; - AXESLISTW etmAxesList; -} ENUMTEXTMETRICW, *PENUMTEXTMETRICW, *LPENUMTEXTMETRICW; - - - - - -typedef ENUMTEXTMETRICA ENUMTEXTMETRIC; -typedef PENUMTEXTMETRICA PENUMTEXTMETRIC; -typedef LPENUMTEXTMETRICA LPENUMTEXTMETRIC; -# 4536 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -__declspec(dllimport) BOOL __stdcall GetViewportExtEx( HDC hdc, LPSIZE lpsize); -__declspec(dllimport) BOOL __stdcall GetViewportOrgEx( HDC hdc, LPPOINT lppoint); -__declspec(dllimport) BOOL __stdcall GetWindowExtEx( HDC hdc, LPSIZE lpsize); -__declspec(dllimport) BOOL __stdcall GetWindowOrgEx( HDC hdc, LPPOINT lppoint); - - __declspec(dllimport) int __stdcall IntersectClipRect( HDC hdc, int left, int top, int right, int bottom); - __declspec(dllimport) BOOL __stdcall InvertRgn( HDC hdc, HRGN hrgn); -__declspec(dllimport) BOOL __stdcall LineDDA( int xStart, int yStart, int xEnd, int yEnd, LINEDDAPROC lpProc, LPARAM data); - __declspec(dllimport) BOOL __stdcall LineTo( HDC hdc, int x, int y); -__declspec(dllimport) BOOL __stdcall MaskBlt( HDC hdcDest, int xDest, int yDest, int width, int height, - HDC hdcSrc, int xSrc, int ySrc, HBITMAP hbmMask, int xMask, int yMask, DWORD rop); -__declspec(dllimport) BOOL __stdcall PlgBlt( HDC hdcDest, const POINT * lpPoint, HDC hdcSrc, int xSrc, int ySrc, int width, - int height, HBITMAP hbmMask, int xMask, int yMask); - - __declspec(dllimport) int __stdcall OffsetClipRgn( HDC hdc, int x, int y); -__declspec(dllimport) int __stdcall OffsetRgn( HRGN hrgn, int x, int y); - __declspec(dllimport) BOOL __stdcall PatBlt( HDC hdc, int x, int y, int w, int h, DWORD rop); - __declspec(dllimport) BOOL __stdcall Pie( HDC hdc, int left, int top, int right, int bottom, int xr1, int yr1, int xr2, int yr2); -__declspec(dllimport) BOOL __stdcall PlayMetaFile( HDC hdc, HMETAFILE hmf); - __declspec(dllimport) BOOL __stdcall PaintRgn( HDC hdc, HRGN hrgn); - __declspec(dllimport) BOOL __stdcall PolyPolygon( HDC hdc, const POINT *apt, const INT *asz, int csz); -__declspec(dllimport) BOOL __stdcall PtInRegion( HRGN hrgn, int x, int y); -__declspec(dllimport) BOOL __stdcall PtVisible( HDC hdc, int x, int y); -__declspec(dllimport) BOOL __stdcall RectInRegion( HRGN hrgn, const RECT * lprect); -__declspec(dllimport) BOOL __stdcall RectVisible( HDC hdc, const RECT * lprect); - __declspec(dllimport) BOOL __stdcall Rectangle( HDC hdc, int left, int top, int right, int bottom); - __declspec(dllimport) BOOL __stdcall RestoreDC( HDC hdc, int nSavedDC); - __declspec(dllimport) HDC __stdcall ResetDCA( HDC hdc, const DEVMODEA * lpdm); - __declspec(dllimport) HDC __stdcall ResetDCW( HDC hdc, const DEVMODEW * lpdm); - - - - - - __declspec(dllimport) UINT __stdcall RealizePalette( HDC hdc); -__declspec(dllimport) BOOL __stdcall RemoveFontResourceA( LPCSTR lpFileName); -__declspec(dllimport) BOOL __stdcall RemoveFontResourceW( LPCWSTR lpFileName); - - - - - - __declspec(dllimport) BOOL __stdcall RoundRect( HDC hdc, int left, int top, int right, int bottom, int width, int height); - __declspec(dllimport) BOOL __stdcall ResizePalette( HPALETTE hpal, UINT n); - - __declspec(dllimport) int __stdcall SaveDC( HDC hdc); - __declspec(dllimport) int __stdcall SelectClipRgn( HDC hdc, HRGN hrgn); -__declspec(dllimport) int __stdcall ExtSelectClipRgn( HDC hdc, HRGN hrgn, int mode); -__declspec(dllimport) int __stdcall SetMetaRgn( HDC hdc); - __declspec(dllimport) HGDIOBJ __stdcall SelectObject( HDC hdc, HGDIOBJ h); - __declspec(dllimport) HPALETTE __stdcall SelectPalette( HDC hdc, HPALETTE hPal, BOOL bForceBkgd); - __declspec(dllimport) COLORREF __stdcall SetBkColor( HDC hdc, COLORREF color); - - -__declspec(dllimport) COLORREF __stdcall SetDCBrushColor( HDC hdc, COLORREF color); -__declspec(dllimport) COLORREF __stdcall SetDCPenColor( HDC hdc, COLORREF color); - - - __declspec(dllimport) int __stdcall SetBkMode( HDC hdc, int mode); - -__declspec(dllimport) -LONG __stdcall -SetBitmapBits( - HBITMAP hbm, - DWORD cb, - const void *pvBits); - -__declspec(dllimport) UINT __stdcall SetBoundsRect( HDC hdc, const RECT * lprect, UINT flags); -__declspec(dllimport) int __stdcall SetDIBits( HDC hdc, HBITMAP hbm, UINT start, UINT cLines, const void *lpBits, const BITMAPINFO * lpbmi, UINT ColorUse); - __declspec(dllimport) int __stdcall SetDIBitsToDevice( HDC hdc, int xDest, int yDest, DWORD w, DWORD h, int xSrc, - int ySrc, UINT StartScan, UINT cLines, const void * lpvBits, const BITMAPINFO * lpbmi, UINT ColorUse); - __declspec(dllimport) DWORD __stdcall SetMapperFlags( HDC hdc, DWORD flags); -__declspec(dllimport) int __stdcall SetGraphicsMode( HDC hdc, int iMode); - __declspec(dllimport) int __stdcall SetMapMode( HDC hdc, int iMode); - - - __declspec(dllimport) DWORD __stdcall SetLayout( HDC hdc, DWORD l); -__declspec(dllimport) DWORD __stdcall GetLayout( HDC hdc); - - -__declspec(dllimport) HMETAFILE __stdcall SetMetaFileBitsEx( UINT cbBuffer, const BYTE *lpData); - __declspec(dllimport) UINT __stdcall SetPaletteEntries( HPALETTE hpal, - UINT iStart, - UINT cEntries, - const PALETTEENTRY *pPalEntries); - __declspec(dllimport) COLORREF __stdcall SetPixel( HDC hdc, int x, int y, COLORREF color); -__declspec(dllimport) BOOL __stdcall SetPixelV( HDC hdc, int x, int y, COLORREF color); -__declspec(dllimport) BOOL __stdcall SetPixelFormat( HDC hdc, int format, const PIXELFORMATDESCRIPTOR * ppfd); - __declspec(dllimport) int __stdcall SetPolyFillMode( HDC hdc, int mode); - __declspec(dllimport) BOOL __stdcall StretchBlt( HDC hdcDest, int xDest, int yDest, int wDest, int hDest, HDC hdcSrc, int xSrc, int ySrc, int wSrc, int hSrc, DWORD rop); -__declspec(dllimport) BOOL __stdcall SetRectRgn( HRGN hrgn, int left, int top, int right, int bottom); - __declspec(dllimport) int __stdcall StretchDIBits( HDC hdc, int xDest, int yDest, int DestWidth, int DestHeight, int xSrc, int ySrc, int SrcWidth, int SrcHeight, - const void * lpBits, const BITMAPINFO * lpbmi, UINT iUsage, DWORD rop); - __declspec(dllimport) int __stdcall SetROP2( HDC hdc, int rop2); - __declspec(dllimport) int __stdcall SetStretchBltMode( HDC hdc, int mode); -__declspec(dllimport) UINT __stdcall SetSystemPaletteUse( HDC hdc, UINT use); - __declspec(dllimport) int __stdcall SetTextCharacterExtra( HDC hdc, int extra); - __declspec(dllimport) COLORREF __stdcall SetTextColor( HDC hdc, COLORREF color); - __declspec(dllimport) UINT __stdcall SetTextAlign( HDC hdc, UINT align); - __declspec(dllimport) BOOL __stdcall SetTextJustification( HDC hdc, int extra, int count); -__declspec(dllimport) BOOL __stdcall UpdateColors( HDC hdc); -# 4687 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef USHORT COLOR16; - -typedef struct _TRIVERTEX -{ - LONG x; - LONG y; - COLOR16 Red; - COLOR16 Green; - COLOR16 Blue; - COLOR16 Alpha; -}TRIVERTEX,*PTRIVERTEX,*LPTRIVERTEX; - - - - - - - -typedef struct _GRADIENT_TRIANGLE -{ - ULONG Vertex1; - ULONG Vertex2; - ULONG Vertex3; -} GRADIENT_TRIANGLE,*PGRADIENT_TRIANGLE,*LPGRADIENT_TRIANGLE; - -typedef struct _GRADIENT_RECT -{ - ULONG UpperLeft; - ULONG LowerRight; -}GRADIENT_RECT,*PGRADIENT_RECT,*LPGRADIENT_RECT; - - - - - - - -typedef struct _BLENDFUNCTION -{ - BYTE BlendOp; - BYTE BlendFlags; - BYTE SourceConstantAlpha; - BYTE AlphaFormat; -}BLENDFUNCTION,*PBLENDFUNCTION; -# 4751 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -__declspec(dllimport) BOOL __stdcall AlphaBlend( - HDC hdcDest, - int xoriginDest, - int yoriginDest, - int wDest, - int hDest, - HDC hdcSrc, - int xoriginSrc, - int yoriginSrc, - int wSrc, - int hSrc, - BLENDFUNCTION ftn); - -__declspec(dllimport) BOOL __stdcall TransparentBlt( - HDC hdcDest, - int xoriginDest, - int yoriginDest, - int wDest, - int hDest, - HDC hdcSrc, - int xoriginSrc, - int yoriginSrc, - int wSrc, - int hSrc, - UINT crTransparent); -# 4787 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GradientFill( - HDC hdc, - PTRIVERTEX pVertex, - ULONG nVertex, - PVOID pMesh, - ULONG nMesh, - ULONG ulMode - ); -# 4810 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -__declspec(dllimport) BOOL __stdcall GdiAlphaBlend( HDC hdcDest, int xoriginDest, int yoriginDest, int wDest, int hDest, HDC hdcSrc, int xoriginSrc, int yoriginSrc, int wSrc, int hSrc, BLENDFUNCTION ftn); - -__declspec(dllimport) BOOL __stdcall GdiTransparentBlt( HDC hdcDest, int xoriginDest, int yoriginDest, int wDest, int hDest, HDC hdcSrc, - int xoriginSrc, int yoriginSrc, int wSrc, int hSrc, UINT crTransparent); - -__declspec(dllimport) BOOL __stdcall GdiGradientFill( HDC hdc, - PTRIVERTEX pVertex, - ULONG nVertex, - PVOID pMesh, - ULONG nCount, - ULONG ulMode); - - - - - - - -__declspec(dllimport) BOOL __stdcall PlayMetaFileRecord( HDC hdc, - LPHANDLETABLE lpHandleTable, - LPMETARECORD lpMR, - UINT noObjs); - -typedef int (__stdcall* MFENUMPROC)( HDC hdc, HANDLETABLE * lpht, METARECORD * lpMR, int nObj, LPARAM param); -__declspec(dllimport) BOOL __stdcall EnumMetaFile( HDC hdc, HMETAFILE hmf, MFENUMPROC proc, LPARAM param); - -typedef int (__stdcall* ENHMFENUMPROC)( HDC hdc, HANDLETABLE * lpht, const ENHMETARECORD * lpmr, int nHandles, LPARAM data); - - - -__declspec(dllimport) HENHMETAFILE __stdcall CloseEnhMetaFile( HDC hdc); -__declspec(dllimport) HENHMETAFILE __stdcall CopyEnhMetaFileA( HENHMETAFILE hEnh, LPCSTR lpFileName); -__declspec(dllimport) HENHMETAFILE __stdcall CopyEnhMetaFileW( HENHMETAFILE hEnh, LPCWSTR lpFileName); - - - - - -__declspec(dllimport) HDC __stdcall CreateEnhMetaFileA( HDC hdc, LPCSTR lpFilename, const RECT *lprc, LPCSTR lpDesc); -__declspec(dllimport) HDC __stdcall CreateEnhMetaFileW( HDC hdc, LPCWSTR lpFilename, const RECT *lprc, LPCWSTR lpDesc); - - - - - -__declspec(dllimport) BOOL __stdcall DeleteEnhMetaFile( HENHMETAFILE hmf); -__declspec(dllimport) BOOL __stdcall EnumEnhMetaFile( HDC hdc, HENHMETAFILE hmf, ENHMFENUMPROC proc, - LPVOID param, const RECT * lpRect); -__declspec(dllimport) HENHMETAFILE __stdcall GetEnhMetaFileA( LPCSTR lpName); -__declspec(dllimport) HENHMETAFILE __stdcall GetEnhMetaFileW( LPCWSTR lpName); - - - - - -__declspec(dllimport) UINT __stdcall GetEnhMetaFileBits( HENHMETAFILE hEMF, - UINT nSize, - LPBYTE lpData); -__declspec(dllimport) UINT __stdcall GetEnhMetaFileDescriptionA( HENHMETAFILE hemf, - UINT cchBuffer, - LPSTR lpDescription); -__declspec(dllimport) UINT __stdcall GetEnhMetaFileDescriptionW( HENHMETAFILE hemf, - UINT cchBuffer, - LPWSTR lpDescription); - - - - - -__declspec(dllimport) UINT __stdcall GetEnhMetaFileHeader( HENHMETAFILE hemf, - UINT nSize, - LPENHMETAHEADER lpEnhMetaHeader); -__declspec(dllimport) UINT __stdcall GetEnhMetaFilePaletteEntries( HENHMETAFILE hemf, - UINT nNumEntries, - LPPALETTEENTRY lpPaletteEntries); - -__declspec(dllimport) UINT __stdcall GetEnhMetaFilePixelFormat( HENHMETAFILE hemf, - UINT cbBuffer, - PIXELFORMATDESCRIPTOR *ppfd); -__declspec(dllimport) UINT __stdcall GetWinMetaFileBits( HENHMETAFILE hemf, - UINT cbData16, - LPBYTE pData16, - INT iMapMode, - HDC hdcRef); -__declspec(dllimport) BOOL __stdcall PlayEnhMetaFile( HDC hdc, HENHMETAFILE hmf, const RECT * lprect); -__declspec(dllimport) BOOL __stdcall PlayEnhMetaFileRecord( HDC hdc, - LPHANDLETABLE pht, - const ENHMETARECORD *pmr, - UINT cht); - -__declspec(dllimport) HENHMETAFILE __stdcall SetEnhMetaFileBits( UINT nSize, - const BYTE * pb); - -__declspec(dllimport) HENHMETAFILE __stdcall SetWinMetaFileBits( UINT nSize, - const BYTE *lpMeta16Data, - HDC hdcRef, - const METAFILEPICT *lpMFP); -__declspec(dllimport) BOOL __stdcall GdiComment( HDC hdc, UINT nSize, const BYTE *lpData); - - - - - -__declspec(dllimport) BOOL __stdcall GetTextMetricsA( HDC hdc, LPTEXTMETRICA lptm); -__declspec(dllimport) BOOL __stdcall GetTextMetricsW( HDC hdc, LPTEXTMETRICW lptm); -# 4945 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagDIBSECTION { - BITMAP dsBm; - BITMAPINFOHEADER dsBmih; - DWORD dsBitfields[3]; - HANDLE dshSection; - DWORD dsOffset; -} DIBSECTION, *LPDIBSECTION, *PDIBSECTION; - - -__declspec(dllimport) BOOL __stdcall AngleArc( HDC hdc, int x, int y, DWORD r, FLOAT StartAngle, FLOAT SweepAngle); -__declspec(dllimport) BOOL __stdcall PolyPolyline( HDC hdc, const POINT *apt, const DWORD *asz, DWORD csz); -__declspec(dllimport) BOOL __stdcall GetWorldTransform( HDC hdc, LPXFORM lpxf); -__declspec(dllimport) BOOL __stdcall SetWorldTransform( HDC hdc, const XFORM * lpxf); -__declspec(dllimport) BOOL __stdcall ModifyWorldTransform( HDC hdc, const XFORM * lpxf, DWORD mode); -__declspec(dllimport) BOOL __stdcall CombineTransform( LPXFORM lpxfOut, const XFORM *lpxf1, const XFORM *lpxf2); - - - - - - -__declspec(dllimport) HBITMAP __stdcall CreateDIBSection( - HDC hdc, - const BITMAPINFO *pbmi, - UINT usage, - - - void **ppvBits, - HANDLE hSection, - DWORD offset); - - - -__declspec(dllimport) UINT __stdcall GetDIBColorTable( HDC hdc, - UINT iStart, - UINT cEntries, - RGBQUAD *prgbq); -__declspec(dllimport) UINT __stdcall SetDIBColorTable( HDC hdc, - UINT iStart, - UINT cEntries, - const RGBQUAD *prgbq); -# 5022 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagCOLORADJUSTMENT { - WORD caSize; - WORD caFlags; - WORD caIlluminantIndex; - WORD caRedGamma; - WORD caGreenGamma; - WORD caBlueGamma; - WORD caReferenceBlack; - WORD caReferenceWhite; - SHORT caContrast; - SHORT caBrightness; - SHORT caColorfulness; - SHORT caRedGreenTint; -} COLORADJUSTMENT, *PCOLORADJUSTMENT, *LPCOLORADJUSTMENT; - -__declspec(dllimport) BOOL __stdcall SetColorAdjustment( HDC hdc, const COLORADJUSTMENT *lpca); -__declspec(dllimport) BOOL __stdcall GetColorAdjustment( HDC hdc, LPCOLORADJUSTMENT lpca); -__declspec(dllimport) HPALETTE __stdcall CreateHalftonePalette( HDC hdc); - - -typedef BOOL (__stdcall* ABORTPROC)( HDC, int); - - - - -typedef struct _DOCINFOA { - int cbSize; - LPCSTR lpszDocName; - LPCSTR lpszOutput; - - LPCSTR lpszDatatype; - DWORD fwType; - -} DOCINFOA, *LPDOCINFOA; -typedef struct _DOCINFOW { - int cbSize; - LPCWSTR lpszDocName; - LPCWSTR lpszOutput; - - LPCWSTR lpszDatatype; - DWORD fwType; - -} DOCINFOW, *LPDOCINFOW; - - - - -typedef DOCINFOA DOCINFO; -typedef LPDOCINFOA LPDOCINFO; - - - - - - - - __declspec(dllimport) int __stdcall StartDocA( HDC hdc, const DOCINFOA *lpdi); - __declspec(dllimport) int __stdcall StartDocW( HDC hdc, const DOCINFOW *lpdi); - - - - - - __declspec(dllimport) int __stdcall EndDoc( HDC hdc); - __declspec(dllimport) int __stdcall StartPage( HDC hdc); - __declspec(dllimport) int __stdcall EndPage( HDC hdc); - __declspec(dllimport) int __stdcall AbortDoc( HDC hdc); -__declspec(dllimport) int __stdcall SetAbortProc( HDC hdc, ABORTPROC proc); - -__declspec(dllimport) BOOL __stdcall AbortPath( HDC hdc); -__declspec(dllimport) BOOL __stdcall ArcTo( HDC hdc, int left, int top, int right, int bottom, int xr1, int yr1, int xr2, int yr2); -__declspec(dllimport) BOOL __stdcall BeginPath( HDC hdc); -__declspec(dllimport) BOOL __stdcall CloseFigure( HDC hdc); -__declspec(dllimport) BOOL __stdcall EndPath( HDC hdc); -__declspec(dllimport) BOOL __stdcall FillPath( HDC hdc); -__declspec(dllimport) BOOL __stdcall FlattenPath( HDC hdc); -__declspec(dllimport) int __stdcall GetPath( HDC hdc, LPPOINT apt, LPBYTE aj, int cpt); -__declspec(dllimport) HRGN __stdcall PathToRegion( HDC hdc); -__declspec(dllimport) BOOL __stdcall PolyDraw( HDC hdc, const POINT * apt, const BYTE * aj, int cpt); -__declspec(dllimport) BOOL __stdcall SelectClipPath( HDC hdc, int mode); -__declspec(dllimport) int __stdcall SetArcDirection( HDC hdc, int dir); -__declspec(dllimport) BOOL __stdcall SetMiterLimit( HDC hdc, FLOAT limit, PFLOAT old); -__declspec(dllimport) BOOL __stdcall StrokeAndFillPath( HDC hdc); -__declspec(dllimport) BOOL __stdcall StrokePath( HDC hdc); -__declspec(dllimport) BOOL __stdcall WidenPath( HDC hdc); -__declspec(dllimport) HPEN __stdcall ExtCreatePen( DWORD iPenStyle, - DWORD cWidth, - const LOGBRUSH *plbrush, - DWORD cStyle, - const DWORD *pstyle); -__declspec(dllimport) BOOL __stdcall GetMiterLimit( HDC hdc, PFLOAT plimit); -__declspec(dllimport) int __stdcall GetArcDirection( HDC hdc); - -__declspec(dllimport) int __stdcall GetObjectA( HANDLE h, int c, LPVOID pv); -__declspec(dllimport) int __stdcall GetObjectW( HANDLE h, int c, LPVOID pv); -# 5145 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 - __declspec(dllimport) BOOL __stdcall MoveToEx( HDC hdc, int x, int y, LPPOINT lppt); - __declspec(dllimport) BOOL __stdcall TextOutA( HDC hdc, int x, int y, LPCSTR lpString, int c); - __declspec(dllimport) BOOL __stdcall TextOutW( HDC hdc, int x, int y, LPCWSTR lpString, int c); - - - - - - __declspec(dllimport) BOOL __stdcall ExtTextOutA( HDC hdc, int x, int y, UINT options, const RECT * lprect, LPCSTR lpString, UINT c, const INT * lpDx); - __declspec(dllimport) BOOL __stdcall ExtTextOutW( HDC hdc, int x, int y, UINT options, const RECT * lprect, LPCWSTR lpString, UINT c, const INT * lpDx); - - - - - -__declspec(dllimport) BOOL __stdcall PolyTextOutA( HDC hdc, const POLYTEXTA * ppt, int nstrings); -__declspec(dllimport) BOOL __stdcall PolyTextOutW( HDC hdc, const POLYTEXTW * ppt, int nstrings); - - - - - - -__declspec(dllimport) HRGN __stdcall CreatePolygonRgn( const POINT *pptl, - int cPoint, - int iMode); -__declspec(dllimport) BOOL __stdcall DPtoLP( HDC hdc, LPPOINT lppt, int c); -__declspec(dllimport) BOOL __stdcall LPtoDP( HDC hdc, LPPOINT lppt, int c); - __declspec(dllimport) BOOL __stdcall Polygon( HDC hdc, const POINT *apt, int cpt); - __declspec(dllimport) BOOL __stdcall Polyline( HDC hdc, const POINT *apt, int cpt); - -__declspec(dllimport) BOOL __stdcall PolyBezier( HDC hdc, const POINT * apt, DWORD cpt); -__declspec(dllimport) BOOL __stdcall PolyBezierTo( HDC hdc, const POINT * apt, DWORD cpt); -__declspec(dllimport) BOOL __stdcall PolylineTo( HDC hdc, const POINT * apt, DWORD cpt); - - __declspec(dllimport) BOOL __stdcall SetViewportExtEx( HDC hdc, int x, int y, LPSIZE lpsz); - __declspec(dllimport) BOOL __stdcall SetViewportOrgEx( HDC hdc, int x, int y, LPPOINT lppt); - __declspec(dllimport) BOOL __stdcall SetWindowExtEx( HDC hdc, int x, int y, LPSIZE lpsz); - __declspec(dllimport) BOOL __stdcall SetWindowOrgEx( HDC hdc, int x, int y, LPPOINT lppt); - - __declspec(dllimport) BOOL __stdcall OffsetViewportOrgEx( HDC hdc, int x, int y, LPPOINT lppt); - __declspec(dllimport) BOOL __stdcall OffsetWindowOrgEx( HDC hdc, int x, int y, LPPOINT lppt); - __declspec(dllimport) BOOL __stdcall ScaleViewportExtEx( HDC hdc, int xn, int dx, int yn, int yd, LPSIZE lpsz); - __declspec(dllimport) BOOL __stdcall ScaleWindowExtEx( HDC hdc, int xn, int xd, int yn, int yd, LPSIZE lpsz); -__declspec(dllimport) BOOL __stdcall SetBitmapDimensionEx( HBITMAP hbm, int w, int h, LPSIZE lpsz); -__declspec(dllimport) BOOL __stdcall SetBrushOrgEx( HDC hdc, int x, int y, LPPOINT lppt); - -__declspec(dllimport) int __stdcall GetTextFaceA( HDC hdc, int c, LPSTR lpName); -__declspec(dllimport) int __stdcall GetTextFaceW( HDC hdc, int c, LPWSTR lpName); -# 5202 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagKERNINGPAIR { - WORD wFirst; - WORD wSecond; - int iKernAmount; -} KERNINGPAIR, *LPKERNINGPAIR; - -__declspec(dllimport) DWORD __stdcall GetKerningPairsA( HDC hdc, - DWORD nPairs, - LPKERNINGPAIR lpKernPair); -__declspec(dllimport) DWORD __stdcall GetKerningPairsW( HDC hdc, - DWORD nPairs, - LPKERNINGPAIR lpKernPair); - - - - - - - -__declspec(dllimport) BOOL __stdcall GetDCOrgEx( HDC hdc, LPPOINT lppt); -__declspec(dllimport) BOOL __stdcall FixBrushOrgEx( HDC hdc, int x, int y, LPPOINT ptl); -__declspec(dllimport) BOOL __stdcall UnrealizeObject( HGDIOBJ h); - -__declspec(dllimport) BOOL __stdcall GdiFlush(void); -__declspec(dllimport) DWORD __stdcall GdiSetBatchLimit( DWORD dw); -__declspec(dllimport) DWORD __stdcall GdiGetBatchLimit(void); -# 5236 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef int (__stdcall* ICMENUMPROCA)(LPSTR, LPARAM); -typedef int (__stdcall* ICMENUMPROCW)(LPWSTR, LPARAM); - - - - - - -__declspec(dllimport) int __stdcall SetICMMode( HDC hdc, int mode); -__declspec(dllimport) BOOL __stdcall CheckColorsInGamut( HDC hdc, - LPRGBTRIPLE lpRGBTriple, - LPVOID dlpBuffer, - DWORD nCount); - -__declspec(dllimport) HCOLORSPACE __stdcall GetColorSpace( HDC hdc); -__declspec(dllimport) BOOL __stdcall GetLogColorSpaceA( HCOLORSPACE hColorSpace, - LPLOGCOLORSPACEA lpBuffer, - DWORD nSize); -__declspec(dllimport) BOOL __stdcall GetLogColorSpaceW( HCOLORSPACE hColorSpace, - LPLOGCOLORSPACEW lpBuffer, - DWORD nSize); - - - - - - -__declspec(dllimport) HCOLORSPACE __stdcall CreateColorSpaceA( LPLOGCOLORSPACEA lplcs); -__declspec(dllimport) HCOLORSPACE __stdcall CreateColorSpaceW( LPLOGCOLORSPACEW lplcs); - - - - - -__declspec(dllimport) HCOLORSPACE __stdcall SetColorSpace( HDC hdc, HCOLORSPACE hcs); -__declspec(dllimport) BOOL __stdcall DeleteColorSpace( HCOLORSPACE hcs); -__declspec(dllimport) BOOL __stdcall GetICMProfileA( HDC hdc, - LPDWORD pBufSize, - LPSTR pszFilename); -__declspec(dllimport) BOOL __stdcall GetICMProfileW( HDC hdc, - LPDWORD pBufSize, - LPWSTR pszFilename); - - - - - - -__declspec(dllimport) BOOL __stdcall SetICMProfileA( HDC hdc, LPSTR lpFileName); -__declspec(dllimport) BOOL __stdcall SetICMProfileW( HDC hdc, LPWSTR lpFileName); - - - - - -__declspec(dllimport) BOOL __stdcall GetDeviceGammaRamp( HDC hdc, LPVOID lpRamp); -__declspec(dllimport) BOOL __stdcall SetDeviceGammaRamp( HDC hdc, LPVOID lpRamp); -__declspec(dllimport) BOOL __stdcall ColorMatchToTarget( HDC hdc, HDC hdcTarget, DWORD action); -__declspec(dllimport) int __stdcall EnumICMProfilesA( HDC hdc, ICMENUMPROCA proc, LPARAM param); -__declspec(dllimport) int __stdcall EnumICMProfilesW( HDC hdc, ICMENUMPROCW proc, LPARAM param); - - - - - - -__declspec(dllimport) BOOL __stdcall UpdateICMRegKeyA( DWORD reserved, LPSTR lpszCMID, LPSTR lpszFileName, UINT command); - -__declspec(dllimport) BOOL __stdcall UpdateICMRegKeyW( DWORD reserved, LPWSTR lpszCMID, LPWSTR lpszFileName, UINT command); - - - - - - - -#pragma deprecated (UpdateICMRegKeyW) -#pragma deprecated (UpdateICMRegKeyA) - - - - - -__declspec(dllimport) BOOL __stdcall ColorCorrectPalette( HDC hdc, HPALETTE hPal, DWORD deFirst, DWORD num); -# 5484 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -typedef struct tagEMR -{ - DWORD iType; - DWORD nSize; - -} EMR, *PEMR; - - - -typedef struct tagEMRTEXT -{ - POINTL ptlReference; - DWORD nChars; - DWORD offString; - DWORD fOptions; - RECTL rcl; - DWORD offDx; - -} EMRTEXT, *PEMRTEXT; - - - -typedef struct tagABORTPATH -{ - EMR emr; -} EMRABORTPATH, *PEMRABORTPATH, - EMRBEGINPATH, *PEMRBEGINPATH, - EMRENDPATH, *PEMRENDPATH, - EMRCLOSEFIGURE, *PEMRCLOSEFIGURE, - EMRFLATTENPATH, *PEMRFLATTENPATH, - EMRWIDENPATH, *PEMRWIDENPATH, - EMRSETMETARGN, *PEMRSETMETARGN, - EMRSAVEDC, *PEMRSAVEDC, - EMRREALIZEPALETTE, *PEMRREALIZEPALETTE; - -typedef struct tagEMRSELECTCLIPPATH -{ - EMR emr; - DWORD iMode; -} EMRSELECTCLIPPATH, *PEMRSELECTCLIPPATH, - EMRSETBKMODE, *PEMRSETBKMODE, - EMRSETMAPMODE, *PEMRSETMAPMODE, - - EMRSETLAYOUT, *PEMRSETLAYOUT, - - EMRSETPOLYFILLMODE, *PEMRSETPOLYFILLMODE, - EMRSETROP2, *PEMRSETROP2, - EMRSETSTRETCHBLTMODE, *PEMRSETSTRETCHBLTMODE, - EMRSETICMMODE, *PEMRSETICMMODE, - EMRSETTEXTALIGN, *PEMRSETTEXTALIGN; - -typedef struct tagEMRSETMITERLIMIT -{ - EMR emr; - FLOAT eMiterLimit; -} EMRSETMITERLIMIT, *PEMRSETMITERLIMIT; - -typedef struct tagEMRRESTOREDC -{ - EMR emr; - LONG iRelative; -} EMRRESTOREDC, *PEMRRESTOREDC; - -typedef struct tagEMRSETARCDIRECTION -{ - EMR emr; - DWORD iArcDirection; - -} EMRSETARCDIRECTION, *PEMRSETARCDIRECTION; - -typedef struct tagEMRSETMAPPERFLAGS -{ - EMR emr; - DWORD dwFlags; -} EMRSETMAPPERFLAGS, *PEMRSETMAPPERFLAGS; - -typedef struct tagEMRSETTEXTCOLOR -{ - EMR emr; - COLORREF crColor; -} EMRSETBKCOLOR, *PEMRSETBKCOLOR, - EMRSETTEXTCOLOR, *PEMRSETTEXTCOLOR; - -typedef struct tagEMRSELECTOBJECT -{ - EMR emr; - DWORD ihObject; -} EMRSELECTOBJECT, *PEMRSELECTOBJECT, - EMRDELETEOBJECT, *PEMRDELETEOBJECT; - -typedef struct tagEMRSELECTPALETTE -{ - EMR emr; - DWORD ihPal; -} EMRSELECTPALETTE, *PEMRSELECTPALETTE; - -typedef struct tagEMRRESIZEPALETTE -{ - EMR emr; - DWORD ihPal; - DWORD cEntries; -} EMRRESIZEPALETTE, *PEMRRESIZEPALETTE; - -typedef struct tagEMRSETPALETTEENTRIES -{ - EMR emr; - DWORD ihPal; - DWORD iStart; - DWORD cEntries; - PALETTEENTRY aPalEntries[1]; -} EMRSETPALETTEENTRIES, *PEMRSETPALETTEENTRIES; - -typedef struct tagEMRSETCOLORADJUSTMENT -{ - EMR emr; - COLORADJUSTMENT ColorAdjustment; -} EMRSETCOLORADJUSTMENT, *PEMRSETCOLORADJUSTMENT; - -typedef struct tagEMRGDICOMMENT -{ - EMR emr; - DWORD cbData; - BYTE Data[1]; -} EMRGDICOMMENT, *PEMRGDICOMMENT; - -typedef struct tagEMREOF -{ - EMR emr; - DWORD nPalEntries; - DWORD offPalEntries; - DWORD nSizeLast; - - -} EMREOF, *PEMREOF; - -typedef struct tagEMRLINETO -{ - EMR emr; - POINTL ptl; -} EMRLINETO, *PEMRLINETO, - EMRMOVETOEX, *PEMRMOVETOEX; - -typedef struct tagEMROFFSETCLIPRGN -{ - EMR emr; - POINTL ptlOffset; -} EMROFFSETCLIPRGN, *PEMROFFSETCLIPRGN; - -typedef struct tagEMRFILLPATH -{ - EMR emr; - RECTL rclBounds; -} EMRFILLPATH, *PEMRFILLPATH, - EMRSTROKEANDFILLPATH, *PEMRSTROKEANDFILLPATH, - EMRSTROKEPATH, *PEMRSTROKEPATH; - -typedef struct tagEMREXCLUDECLIPRECT -{ - EMR emr; - RECTL rclClip; -} EMREXCLUDECLIPRECT, *PEMREXCLUDECLIPRECT, - EMRINTERSECTCLIPRECT, *PEMRINTERSECTCLIPRECT; - -typedef struct tagEMRSETVIEWPORTORGEX -{ - EMR emr; - POINTL ptlOrigin; -} EMRSETVIEWPORTORGEX, *PEMRSETVIEWPORTORGEX, - EMRSETWINDOWORGEX, *PEMRSETWINDOWORGEX, - EMRSETBRUSHORGEX, *PEMRSETBRUSHORGEX; - -typedef struct tagEMRSETVIEWPORTEXTEX -{ - EMR emr; - SIZEL szlExtent; -} EMRSETVIEWPORTEXTEX, *PEMRSETVIEWPORTEXTEX, - EMRSETWINDOWEXTEX, *PEMRSETWINDOWEXTEX; - -typedef struct tagEMRSCALEVIEWPORTEXTEX -{ - EMR emr; - LONG xNum; - LONG xDenom; - LONG yNum; - LONG yDenom; -} EMRSCALEVIEWPORTEXTEX, *PEMRSCALEVIEWPORTEXTEX, - EMRSCALEWINDOWEXTEX, *PEMRSCALEWINDOWEXTEX; - -typedef struct tagEMRSETWORLDTRANSFORM -{ - EMR emr; - XFORM xform; -} EMRSETWORLDTRANSFORM, *PEMRSETWORLDTRANSFORM; - -typedef struct tagEMRMODIFYWORLDTRANSFORM -{ - EMR emr; - XFORM xform; - DWORD iMode; -} EMRMODIFYWORLDTRANSFORM, *PEMRMODIFYWORLDTRANSFORM; - -typedef struct tagEMRSETPIXELV -{ - EMR emr; - POINTL ptlPixel; - COLORREF crColor; -} EMRSETPIXELV, *PEMRSETPIXELV; - -typedef struct tagEMREXTFLOODFILL -{ - EMR emr; - POINTL ptlStart; - COLORREF crColor; - DWORD iMode; -} EMREXTFLOODFILL, *PEMREXTFLOODFILL; - -typedef struct tagEMRELLIPSE -{ - EMR emr; - RECTL rclBox; -} EMRELLIPSE, *PEMRELLIPSE, - EMRRECTANGLE, *PEMRRECTANGLE; - - -typedef struct tagEMRROUNDRECT -{ - EMR emr; - RECTL rclBox; - SIZEL szlCorner; -} EMRROUNDRECT, *PEMRROUNDRECT; - -typedef struct tagEMRARC -{ - EMR emr; - RECTL rclBox; - POINTL ptlStart; - POINTL ptlEnd; -} EMRARC, *PEMRARC, - EMRARCTO, *PEMRARCTO, - EMRCHORD, *PEMRCHORD, - EMRPIE, *PEMRPIE; - -typedef struct tagEMRANGLEARC -{ - EMR emr; - POINTL ptlCenter; - DWORD nRadius; - FLOAT eStartAngle; - FLOAT eSweepAngle; -} EMRANGLEARC, *PEMRANGLEARC; - -typedef struct tagEMRPOLYLINE -{ - EMR emr; - RECTL rclBounds; - DWORD cptl; - POINTL aptl[1]; -} EMRPOLYLINE, *PEMRPOLYLINE, - EMRPOLYBEZIER, *PEMRPOLYBEZIER, - EMRPOLYGON, *PEMRPOLYGON, - EMRPOLYBEZIERTO, *PEMRPOLYBEZIERTO, - EMRPOLYLINETO, *PEMRPOLYLINETO; - -typedef struct tagEMRPOLYLINE16 -{ - EMR emr; - RECTL rclBounds; - DWORD cpts; - POINTS apts[1]; -} EMRPOLYLINE16, *PEMRPOLYLINE16, - EMRPOLYBEZIER16, *PEMRPOLYBEZIER16, - EMRPOLYGON16, *PEMRPOLYGON16, - EMRPOLYBEZIERTO16, *PEMRPOLYBEZIERTO16, - EMRPOLYLINETO16, *PEMRPOLYLINETO16; - -typedef struct tagEMRPOLYDRAW -{ - EMR emr; - RECTL rclBounds; - DWORD cptl; - POINTL aptl[1]; - BYTE abTypes[1]; -} EMRPOLYDRAW, *PEMRPOLYDRAW; - -typedef struct tagEMRPOLYDRAW16 -{ - EMR emr; - RECTL rclBounds; - DWORD cpts; - POINTS apts[1]; - BYTE abTypes[1]; -} EMRPOLYDRAW16, *PEMRPOLYDRAW16; - -typedef struct tagEMRPOLYPOLYLINE -{ - EMR emr; - RECTL rclBounds; - DWORD nPolys; - DWORD cptl; - DWORD aPolyCounts[1]; - POINTL aptl[1]; -} EMRPOLYPOLYLINE, *PEMRPOLYPOLYLINE, - EMRPOLYPOLYGON, *PEMRPOLYPOLYGON; - -typedef struct tagEMRPOLYPOLYLINE16 -{ - EMR emr; - RECTL rclBounds; - DWORD nPolys; - DWORD cpts; - DWORD aPolyCounts[1]; - POINTS apts[1]; -} EMRPOLYPOLYLINE16, *PEMRPOLYPOLYLINE16, - EMRPOLYPOLYGON16, *PEMRPOLYPOLYGON16; - -typedef struct tagEMRINVERTRGN -{ - EMR emr; - RECTL rclBounds; - DWORD cbRgnData; - BYTE RgnData[1]; -} EMRINVERTRGN, *PEMRINVERTRGN, - EMRPAINTRGN, *PEMRPAINTRGN; - -typedef struct tagEMRFILLRGN -{ - EMR emr; - RECTL rclBounds; - DWORD cbRgnData; - DWORD ihBrush; - BYTE RgnData[1]; -} EMRFILLRGN, *PEMRFILLRGN; - -typedef struct tagEMRFRAMERGN -{ - EMR emr; - RECTL rclBounds; - DWORD cbRgnData; - DWORD ihBrush; - SIZEL szlStroke; - BYTE RgnData[1]; -} EMRFRAMERGN, *PEMRFRAMERGN; - -typedef struct tagEMREXTSELECTCLIPRGN -{ - EMR emr; - DWORD cbRgnData; - DWORD iMode; - BYTE RgnData[1]; -} EMREXTSELECTCLIPRGN, *PEMREXTSELECTCLIPRGN; - -typedef struct tagEMREXTTEXTOUTA -{ - EMR emr; - RECTL rclBounds; - DWORD iGraphicsMode; - FLOAT exScale; - FLOAT eyScale; - EMRTEXT emrtext; - -} EMREXTTEXTOUTA, *PEMREXTTEXTOUTA, - EMREXTTEXTOUTW, *PEMREXTTEXTOUTW; - -typedef struct tagEMRPOLYTEXTOUTA -{ - EMR emr; - RECTL rclBounds; - DWORD iGraphicsMode; - FLOAT exScale; - FLOAT eyScale; - LONG cStrings; - EMRTEXT aemrtext[1]; - -} EMRPOLYTEXTOUTA, *PEMRPOLYTEXTOUTA, - EMRPOLYTEXTOUTW, *PEMRPOLYTEXTOUTW; - -typedef struct tagEMRBITBLT -{ - EMR emr; - RECTL rclBounds; - LONG xDest; - LONG yDest; - LONG cxDest; - LONG cyDest; - DWORD dwRop; - LONG xSrc; - LONG ySrc; - XFORM xformSrc; - COLORREF crBkColorSrc; - DWORD iUsageSrc; - - DWORD offBmiSrc; - DWORD cbBmiSrc; - DWORD offBitsSrc; - DWORD cbBitsSrc; -} EMRBITBLT, *PEMRBITBLT; - -typedef struct tagEMRSTRETCHBLT -{ - EMR emr; - RECTL rclBounds; - LONG xDest; - LONG yDest; - LONG cxDest; - LONG cyDest; - DWORD dwRop; - LONG xSrc; - LONG ySrc; - XFORM xformSrc; - COLORREF crBkColorSrc; - DWORD iUsageSrc; - - DWORD offBmiSrc; - DWORD cbBmiSrc; - DWORD offBitsSrc; - DWORD cbBitsSrc; - LONG cxSrc; - LONG cySrc; -} EMRSTRETCHBLT, *PEMRSTRETCHBLT; - -typedef struct tagEMRMASKBLT -{ - EMR emr; - RECTL rclBounds; - LONG xDest; - LONG yDest; - LONG cxDest; - LONG cyDest; - DWORD dwRop; - LONG xSrc; - LONG ySrc; - XFORM xformSrc; - COLORREF crBkColorSrc; - DWORD iUsageSrc; - - DWORD offBmiSrc; - DWORD cbBmiSrc; - DWORD offBitsSrc; - DWORD cbBitsSrc; - LONG xMask; - LONG yMask; - DWORD iUsageMask; - DWORD offBmiMask; - DWORD cbBmiMask; - DWORD offBitsMask; - DWORD cbBitsMask; -} EMRMASKBLT, *PEMRMASKBLT; - -typedef struct tagEMRPLGBLT -{ - EMR emr; - RECTL rclBounds; - POINTL aptlDest[3]; - LONG xSrc; - LONG ySrc; - LONG cxSrc; - LONG cySrc; - XFORM xformSrc; - COLORREF crBkColorSrc; - DWORD iUsageSrc; - - DWORD offBmiSrc; - DWORD cbBmiSrc; - DWORD offBitsSrc; - DWORD cbBitsSrc; - LONG xMask; - LONG yMask; - DWORD iUsageMask; - DWORD offBmiMask; - DWORD cbBmiMask; - DWORD offBitsMask; - DWORD cbBitsMask; -} EMRPLGBLT, *PEMRPLGBLT; - -typedef struct tagEMRSETDIBITSTODEVICE -{ - EMR emr; - RECTL rclBounds; - LONG xDest; - LONG yDest; - LONG xSrc; - LONG ySrc; - LONG cxSrc; - LONG cySrc; - DWORD offBmiSrc; - DWORD cbBmiSrc; - DWORD offBitsSrc; - DWORD cbBitsSrc; - DWORD iUsageSrc; - DWORD iStartScan; - DWORD cScans; -} EMRSETDIBITSTODEVICE, *PEMRSETDIBITSTODEVICE; - -typedef struct tagEMRSTRETCHDIBITS -{ - EMR emr; - RECTL rclBounds; - LONG xDest; - LONG yDest; - LONG xSrc; - LONG ySrc; - LONG cxSrc; - LONG cySrc; - DWORD offBmiSrc; - DWORD cbBmiSrc; - DWORD offBitsSrc; - DWORD cbBitsSrc; - DWORD iUsageSrc; - DWORD dwRop; - LONG cxDest; - LONG cyDest; -} EMRSTRETCHDIBITS, *PEMRSTRETCHDIBITS; - -typedef struct tagEMREXTCREATEFONTINDIRECTW -{ - EMR emr; - DWORD ihFont; - EXTLOGFONTW elfw; -} EMREXTCREATEFONTINDIRECTW, *PEMREXTCREATEFONTINDIRECTW; - -typedef struct tagEMRCREATEPALETTE -{ - EMR emr; - DWORD ihPal; - LOGPALETTE lgpl; - -} EMRCREATEPALETTE, *PEMRCREATEPALETTE; - -typedef struct tagEMRCREATEPEN -{ - EMR emr; - DWORD ihPen; - LOGPEN lopn; -} EMRCREATEPEN, *PEMRCREATEPEN; - -typedef struct tagEMREXTCREATEPEN -{ - EMR emr; - DWORD ihPen; - DWORD offBmi; - DWORD cbBmi; - - - DWORD offBits; - DWORD cbBits; - EXTLOGPEN32 elp; -} EMREXTCREATEPEN, *PEMREXTCREATEPEN; - -typedef struct tagEMRCREATEBRUSHINDIRECT -{ - EMR emr; - DWORD ihBrush; - LOGBRUSH32 lb; - -} EMRCREATEBRUSHINDIRECT, *PEMRCREATEBRUSHINDIRECT; - -typedef struct tagEMRCREATEMONOBRUSH -{ - EMR emr; - DWORD ihBrush; - DWORD iUsage; - DWORD offBmi; - DWORD cbBmi; - DWORD offBits; - DWORD cbBits; -} EMRCREATEMONOBRUSH, *PEMRCREATEMONOBRUSH; - -typedef struct tagEMRCREATEDIBPATTERNBRUSHPT -{ - EMR emr; - DWORD ihBrush; - DWORD iUsage; - DWORD offBmi; - DWORD cbBmi; - - - DWORD offBits; - DWORD cbBits; -} EMRCREATEDIBPATTERNBRUSHPT, *PEMRCREATEDIBPATTERNBRUSHPT; - -typedef struct tagEMRFORMAT -{ - DWORD dSignature; - DWORD nVersion; - DWORD cbData; - DWORD offData; - -} EMRFORMAT, *PEMRFORMAT; - - - -typedef struct tagEMRGLSRECORD -{ - EMR emr; - DWORD cbData; - BYTE Data[1]; -} EMRGLSRECORD, *PEMRGLSRECORD; - -typedef struct tagEMRGLSBOUNDEDRECORD -{ - EMR emr; - RECTL rclBounds; - DWORD cbData; - BYTE Data[1]; -} EMRGLSBOUNDEDRECORD, *PEMRGLSBOUNDEDRECORD; - -typedef struct tagEMRPIXELFORMAT -{ - EMR emr; - PIXELFORMATDESCRIPTOR pfd; -} EMRPIXELFORMAT, *PEMRPIXELFORMAT; - -typedef struct tagEMRCREATECOLORSPACE -{ - EMR emr; - DWORD ihCS; - LOGCOLORSPACEA lcs; -} EMRCREATECOLORSPACE, *PEMRCREATECOLORSPACE; - -typedef struct tagEMRSETCOLORSPACE -{ - EMR emr; - DWORD ihCS; -} EMRSETCOLORSPACE, *PEMRSETCOLORSPACE, - EMRSELECTCOLORSPACE, *PEMRSELECTCOLORSPACE, - EMRDELETECOLORSPACE, *PEMRDELETECOLORSPACE; - - - - - -typedef struct tagEMREXTESCAPE -{ - EMR emr; - INT iEscape; - INT cbEscData; - BYTE EscData[1]; -} EMREXTESCAPE, *PEMREXTESCAPE, - EMRDRAWESCAPE, *PEMRDRAWESCAPE; - -typedef struct tagEMRNAMEDESCAPE -{ - EMR emr; - INT iEscape; - INT cbDriver; - INT cbEscData; - BYTE EscData[1]; -} EMRNAMEDESCAPE, *PEMRNAMEDESCAPE; - - - -typedef struct tagEMRSETICMPROFILE -{ - EMR emr; - DWORD dwFlags; - DWORD cbName; - DWORD cbData; - BYTE Data[1]; -} EMRSETICMPROFILE, *PEMRSETICMPROFILE, - EMRSETICMPROFILEA, *PEMRSETICMPROFILEA, - EMRSETICMPROFILEW, *PEMRSETICMPROFILEW; - - - -typedef struct tagEMRCREATECOLORSPACEW -{ - EMR emr; - DWORD ihCS; - LOGCOLORSPACEW lcs; - DWORD dwFlags; - DWORD cbData; - BYTE Data[1]; -} EMRCREATECOLORSPACEW, *PEMRCREATECOLORSPACEW; - - - -typedef struct tagCOLORMATCHTOTARGET -{ - EMR emr; - DWORD dwAction; - DWORD dwFlags; - DWORD cbName; - DWORD cbData; - BYTE Data[1]; -} EMRCOLORMATCHTOTARGET, *PEMRCOLORMATCHTOTARGET; - -typedef struct tagCOLORCORRECTPALETTE -{ - EMR emr; - DWORD ihPalette; - DWORD nFirstEntry; - DWORD nPalEntries; - DWORD nReserved; -} EMRCOLORCORRECTPALETTE, *PEMRCOLORCORRECTPALETTE; - -typedef struct tagEMRALPHABLEND -{ - EMR emr; - RECTL rclBounds; - LONG xDest; - LONG yDest; - LONG cxDest; - LONG cyDest; - DWORD dwRop; - LONG xSrc; - LONG ySrc; - XFORM xformSrc; - COLORREF crBkColorSrc; - DWORD iUsageSrc; - - DWORD offBmiSrc; - DWORD cbBmiSrc; - DWORD offBitsSrc; - DWORD cbBitsSrc; - LONG cxSrc; - LONG cySrc; -} EMRALPHABLEND, *PEMRALPHABLEND; - -typedef struct tagEMRGRADIENTFILL -{ - EMR emr; - RECTL rclBounds; - DWORD nVer; - DWORD nTri; - ULONG ulMode; - TRIVERTEX Ver[1]; -}EMRGRADIENTFILL,*PEMRGRADIENTFILL; - -typedef struct tagEMRTRANSPARENTBLT -{ - EMR emr; - RECTL rclBounds; - LONG xDest; - LONG yDest; - LONG cxDest; - LONG cyDest; - DWORD dwRop; - LONG xSrc; - LONG ySrc; - XFORM xformSrc; - COLORREF crBkColorSrc; - DWORD iUsageSrc; - - DWORD offBmiSrc; - DWORD cbBmiSrc; - DWORD offBitsSrc; - DWORD cbBitsSrc; - LONG cxSrc; - LONG cySrc; -} EMRTRANSPARENTBLT, *PEMRTRANSPARENTBLT; -# 6252 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -__declspec(dllimport) BOOL __stdcall wglCopyContext(HGLRC, HGLRC, UINT); -__declspec(dllimport) HGLRC __stdcall wglCreateContext(HDC); -__declspec(dllimport) HGLRC __stdcall wglCreateLayerContext(HDC, int); -__declspec(dllimport) BOOL __stdcall wglDeleteContext(HGLRC); -__declspec(dllimport) HGLRC __stdcall wglGetCurrentContext(void); -__declspec(dllimport) HDC __stdcall wglGetCurrentDC(void); -__declspec(dllimport) PROC __stdcall wglGetProcAddress(LPCSTR); -__declspec(dllimport) BOOL __stdcall wglMakeCurrent(HDC, HGLRC); -__declspec(dllimport) BOOL __stdcall wglShareLists(HGLRC, HGLRC); -__declspec(dllimport) BOOL __stdcall wglUseFontBitmapsA(HDC, DWORD, DWORD, DWORD); -__declspec(dllimport) BOOL __stdcall wglUseFontBitmapsW(HDC, DWORD, DWORD, DWORD); - - - - - -__declspec(dllimport) BOOL __stdcall SwapBuffers(HDC); - -typedef struct _POINTFLOAT { - FLOAT x; - FLOAT y; -} POINTFLOAT, *PPOINTFLOAT; - -typedef struct _GLYPHMETRICSFLOAT { - FLOAT gmfBlackBoxX; - FLOAT gmfBlackBoxY; - POINTFLOAT gmfptGlyphOrigin; - FLOAT gmfCellIncX; - FLOAT gmfCellIncY; -} GLYPHMETRICSFLOAT, *PGLYPHMETRICSFLOAT, *LPGLYPHMETRICSFLOAT; - - - -__declspec(dllimport) BOOL __stdcall wglUseFontOutlinesA(HDC, DWORD, DWORD, DWORD, FLOAT, - FLOAT, int, LPGLYPHMETRICSFLOAT); -__declspec(dllimport) BOOL __stdcall wglUseFontOutlinesW(HDC, DWORD, DWORD, DWORD, FLOAT, - FLOAT, int, LPGLYPHMETRICSFLOAT); - - - - - - - -typedef struct tagLAYERPLANEDESCRIPTOR { - WORD nSize; - WORD nVersion; - DWORD dwFlags; - BYTE iPixelType; - BYTE cColorBits; - BYTE cRedBits; - BYTE cRedShift; - BYTE cGreenBits; - BYTE cGreenShift; - BYTE cBlueBits; - BYTE cBlueShift; - BYTE cAlphaBits; - BYTE cAlphaShift; - BYTE cAccumBits; - BYTE cAccumRedBits; - BYTE cAccumGreenBits; - BYTE cAccumBlueBits; - BYTE cAccumAlphaBits; - BYTE cDepthBits; - BYTE cStencilBits; - BYTE cAuxBuffers; - BYTE iLayerPlane; - BYTE bReserved; - COLORREF crTransparent; -} LAYERPLANEDESCRIPTOR, *PLAYERPLANEDESCRIPTOR, *LPLAYERPLANEDESCRIPTOR; -# 6371 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -__declspec(dllimport) BOOL __stdcall wglDescribeLayerPlane(HDC, int, int, UINT, - LPLAYERPLANEDESCRIPTOR); -__declspec(dllimport) int __stdcall wglSetLayerPaletteEntries(HDC, int, int, int, - const COLORREF *); -__declspec(dllimport) int __stdcall wglGetLayerPaletteEntries(HDC, int, int, int, - COLORREF *); -__declspec(dllimport) BOOL __stdcall wglRealizeLayerPalette(HDC, int, BOOL); -__declspec(dllimport) BOOL __stdcall wglSwapLayerBuffers(HDC, UINT); - - - -typedef struct _WGLSWAP -{ - HDC hdc; - UINT uiFlags; -} WGLSWAP, *PWGLSWAP, *LPWGLSWAP; - - - -__declspec(dllimport) DWORD __stdcall wglSwapMultipleBuffers(UINT, const WGLSWAP *); -# 6411 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wingdi.h" 3 -#pragma warning(pop) -# 178 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 1 3 -# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -#pragma warning(push) - - - -#pragma warning(disable: 4820) -# 69 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef HANDLE HDWP; -typedef void MENUTEMPLATEA; -typedef void MENUTEMPLATEW; - - - -typedef MENUTEMPLATEA MENUTEMPLATE; - -typedef PVOID LPMENUTEMPLATEA; -typedef PVOID LPMENUTEMPLATEW; - - - -typedef LPMENUTEMPLATEA LPMENUTEMPLATE; -# 91 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef LRESULT (__stdcall* WNDPROC)(HWND, UINT, WPARAM, LPARAM); -# 101 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef INT_PTR (__stdcall* DLGPROC)(HWND, UINT, WPARAM, LPARAM); - - - - - - - -typedef void (__stdcall* TIMERPROC)(HWND, UINT, UINT_PTR, DWORD); - - - - - - - -typedef BOOL (__stdcall* GRAYSTRINGPROC)(HDC, LPARAM, int); -typedef BOOL (__stdcall* WNDENUMPROC)(HWND, LPARAM); -typedef LRESULT (__stdcall* HOOKPROC)(int code, WPARAM wParam, LPARAM lParam); -typedef void (__stdcall* SENDASYNCPROC)(HWND, UINT, ULONG_PTR, LRESULT); - -typedef BOOL (__stdcall* PROPENUMPROCA)(HWND, LPCSTR, HANDLE); -typedef BOOL (__stdcall* PROPENUMPROCW)(HWND, LPCWSTR, HANDLE); - -typedef BOOL (__stdcall* PROPENUMPROCEXA)(HWND, LPSTR, HANDLE, ULONG_PTR); -typedef BOOL (__stdcall* PROPENUMPROCEXW)(HWND, LPWSTR, HANDLE, ULONG_PTR); - -typedef int (__stdcall* EDITWORDBREAKPROCA)(LPSTR lpch, int ichCurrent, int cch, int code); -typedef int (__stdcall* EDITWORDBREAKPROCW)(LPWSTR lpch, int ichCurrent, int cch, int code); - - -typedef BOOL (__stdcall* DRAWSTATEPROC)(HDC hdc, LPARAM lData, WPARAM wData, int cx, int cy); -# 192 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef PROPENUMPROCA PROPENUMPROC; -typedef PROPENUMPROCEXA PROPENUMPROCEX; -typedef EDITWORDBREAKPROCA EDITWORDBREAKPROC; - - - - -typedef BOOL (__stdcall* NAMEENUMPROCA)(LPSTR, LPARAM); -typedef BOOL (__stdcall* NAMEENUMPROCW)(LPWSTR, LPARAM); - -typedef NAMEENUMPROCA WINSTAENUMPROCA; -typedef NAMEENUMPROCA DESKTOPENUMPROCA; -typedef NAMEENUMPROCW WINSTAENUMPROCW; -typedef NAMEENUMPROCW DESKTOPENUMPROCW; -# 226 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef WINSTAENUMPROCA WINSTAENUMPROC; -typedef DESKTOPENUMPROCA DESKTOPENUMPROC; -# 299 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -#pragma warning(push) -#pragma warning(disable: 4995) - - -__declspec(dllimport) -int -__stdcall -wvsprintfA( - LPSTR, - LPCSTR, - va_list arglist); -__declspec(dllimport) -int -__stdcall -wvsprintfW( - LPWSTR, - LPCWSTR, - va_list arglist); - - - - - - -__declspec(dllimport) -int -__cdecl -wsprintfA( - LPSTR, - LPCSTR, - ...); -__declspec(dllimport) -int -__cdecl -wsprintfW( - LPWSTR, - LPCWSTR, - ...); - - - - - - - -#pragma warning(pop) -# 853 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagCBT_CREATEWNDA -{ - struct tagCREATESTRUCTA *lpcs; - HWND hwndInsertAfter; -} CBT_CREATEWNDA, *LPCBT_CREATEWNDA; - - - -typedef struct tagCBT_CREATEWNDW -{ - struct tagCREATESTRUCTW *lpcs; - HWND hwndInsertAfter; -} CBT_CREATEWNDW, *LPCBT_CREATEWNDW; - - - - -typedef CBT_CREATEWNDA CBT_CREATEWND; -typedef LPCBT_CREATEWNDA LPCBT_CREATEWND; - - - - - -typedef struct tagCBTACTIVATESTRUCT -{ - BOOL fMouse; - HWND hWndActive; -} CBTACTIVATESTRUCT, *LPCBTACTIVATESTRUCT; -# 894 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagWTSSESSION_NOTIFICATION -{ - DWORD cbSize; - DWORD dwSessionId; - -} WTSSESSION_NOTIFICATION, *PWTSSESSION_NOTIFICATION; -# 1048 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct -{ - HWND hwnd; - RECT rc; -} SHELLHOOKINFO, *LPSHELLHOOKINFO; - - - - -typedef struct tagEVENTMSG { - UINT message; - UINT paramL; - UINT paramH; - DWORD time; - HWND hwnd; -} EVENTMSG, *PEVENTMSGMSG, *NPEVENTMSGMSG, *LPEVENTMSGMSG; - -typedef struct tagEVENTMSG *PEVENTMSG, *NPEVENTMSG, *LPEVENTMSG; - - - - -typedef struct tagCWPSTRUCT { - LPARAM lParam; - WPARAM wParam; - UINT message; - HWND hwnd; -} CWPSTRUCT, *PCWPSTRUCT, *NPCWPSTRUCT, *LPCWPSTRUCT; - - - - - -typedef struct tagCWPRETSTRUCT { - LRESULT lResult; - LPARAM lParam; - WPARAM wParam; - UINT message; - HWND hwnd; -} CWPRETSTRUCT, *PCWPRETSTRUCT, *NPCWPRETSTRUCT, *LPCWPRETSTRUCT; -# 1115 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagKBDLLHOOKSTRUCT { - DWORD vkCode; - DWORD scanCode; - DWORD flags; - DWORD time; - ULONG_PTR dwExtraInfo; -} KBDLLHOOKSTRUCT, *LPKBDLLHOOKSTRUCT, *PKBDLLHOOKSTRUCT; - - - - -typedef struct tagMSLLHOOKSTRUCT { - POINT pt; - DWORD mouseData; - DWORD flags; - DWORD time; - ULONG_PTR dwExtraInfo; -} MSLLHOOKSTRUCT, *LPMSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT; -# 1145 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagDEBUGHOOKINFO -{ - DWORD idThread; - DWORD idThreadInstaller; - LPARAM lParam; - WPARAM wParam; - int code; -} DEBUGHOOKINFO, *PDEBUGHOOKINFO, *NPDEBUGHOOKINFO, * LPDEBUGHOOKINFO; - - - - -typedef struct tagMOUSEHOOKSTRUCT { - POINT pt; - HWND hwnd; - UINT wHitTestCode; - ULONG_PTR dwExtraInfo; -} MOUSEHOOKSTRUCT, *LPMOUSEHOOKSTRUCT, *PMOUSEHOOKSTRUCT; -# 1171 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagMOUSEHOOKSTRUCTEX -{ - MOUSEHOOKSTRUCT ; - DWORD mouseData; -} MOUSEHOOKSTRUCTEX, *LPMOUSEHOOKSTRUCTEX, *PMOUSEHOOKSTRUCTEX; - - - - - - - -typedef struct tagHARDWAREHOOKSTRUCT { - HWND hwnd; - UINT message; - WPARAM wParam; - LPARAM lParam; -} HARDWAREHOOKSTRUCT, *LPHARDWAREHOOKSTRUCT, *PHARDWAREHOOKSTRUCT; -# 1234 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HKL -__stdcall -LoadKeyboardLayoutA( - LPCSTR pwszKLID, - UINT Flags); -__declspec(dllimport) -HKL -__stdcall -LoadKeyboardLayoutW( - LPCWSTR pwszKLID, - UINT Flags); -# 1254 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HKL -__stdcall -ActivateKeyboardLayout( - HKL hkl, - UINT Flags); -# 1270 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -int -__stdcall -ToUnicodeEx( - UINT wVirtKey, - UINT wScanCode, - const BYTE *lpKeyState, - LPWSTR pwszBuff, - int cchBuff, - UINT wFlags, - HKL dwhkl); - - -__declspec(dllimport) -BOOL -__stdcall -UnloadKeyboardLayout( - HKL hkl); - -__declspec(dllimport) -BOOL -__stdcall -GetKeyboardLayoutNameA( - LPSTR pwszKLID); -__declspec(dllimport) -BOOL -__stdcall -GetKeyboardLayoutNameW( - LPWSTR pwszKLID); - - - - - - - -__declspec(dllimport) -int -__stdcall -GetKeyboardLayoutList( - int nBuff, - HKL *lpList); - -__declspec(dllimport) -HKL -__stdcall -GetKeyboardLayout( - DWORD idThread); -# 1330 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagMOUSEMOVEPOINT { - int x; - int y; - DWORD time; - ULONG_PTR dwExtraInfo; -} MOUSEMOVEPOINT, *PMOUSEMOVEPOINT, * LPMOUSEMOVEPOINT; -# 1349 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -int -__stdcall -GetMouseMovePointsEx( - UINT cbSize, - LPMOUSEMOVEPOINT lppt, - LPMOUSEMOVEPOINT lpptBuf, - int nBufPoints, - DWORD resolution); -# 1389 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HDESK -__stdcall -CreateDesktopA( - LPCSTR lpszDesktop, - LPCSTR lpszDevice, - DEVMODEA* pDevmode, - DWORD dwFlags, - ACCESS_MASK dwDesiredAccess, - LPSECURITY_ATTRIBUTES lpsa); -__declspec(dllimport) -HDESK -__stdcall -CreateDesktopW( - LPCWSTR lpszDesktop, - LPCWSTR lpszDevice, - DEVMODEW* pDevmode, - DWORD dwFlags, - ACCESS_MASK dwDesiredAccess, - LPSECURITY_ATTRIBUTES lpsa); - - - - - - -__declspec(dllimport) -HDESK -__stdcall -CreateDesktopExA( - LPCSTR lpszDesktop, - LPCSTR lpszDevice, - DEVMODEA* pDevmode, - DWORD dwFlags, - ACCESS_MASK dwDesiredAccess, - LPSECURITY_ATTRIBUTES lpsa, - ULONG ulHeapSize, - PVOID pvoid); -__declspec(dllimport) -HDESK -__stdcall -CreateDesktopExW( - LPCWSTR lpszDesktop, - LPCWSTR lpszDevice, - DEVMODEW* pDevmode, - DWORD dwFlags, - ACCESS_MASK dwDesiredAccess, - LPSECURITY_ATTRIBUTES lpsa, - ULONG ulHeapSize, - PVOID pvoid); -# 1454 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HDESK -__stdcall -OpenDesktopA( - LPCSTR lpszDesktop, - DWORD dwFlags, - BOOL fInherit, - ACCESS_MASK dwDesiredAccess); -__declspec(dllimport) -HDESK -__stdcall -OpenDesktopW( - LPCWSTR lpszDesktop, - DWORD dwFlags, - BOOL fInherit, - ACCESS_MASK dwDesiredAccess); - - - - - - -__declspec(dllimport) -HDESK -__stdcall -OpenInputDesktop( - DWORD dwFlags, - BOOL fInherit, - ACCESS_MASK dwDesiredAccess); - - -__declspec(dllimport) -BOOL -__stdcall -EnumDesktopsA( - HWINSTA hwinsta, - DESKTOPENUMPROCA lpEnumFunc, - LPARAM lParam); -__declspec(dllimport) -BOOL -__stdcall -EnumDesktopsW( - HWINSTA hwinsta, - DESKTOPENUMPROCW lpEnumFunc, - LPARAM lParam); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -EnumDesktopWindows( - HDESK hDesktop, - WNDENUMPROC lpfn, - LPARAM lParam); - - -__declspec(dllimport) -BOOL -__stdcall -SwitchDesktop( - HDESK hDesktop); - - -__declspec(dllimport) -BOOL -__stdcall -SetThreadDesktop( - HDESK hDesktop); - -__declspec(dllimport) -BOOL -__stdcall -CloseDesktop( - HDESK hDesktop); - -__declspec(dllimport) -HDESK -__stdcall -GetThreadDesktop( - DWORD dwThreadId); -# 1575 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HWINSTA -__stdcall -CreateWindowStationA( - LPCSTR lpwinsta, - DWORD dwFlags, - ACCESS_MASK dwDesiredAccess, - LPSECURITY_ATTRIBUTES lpsa); -__declspec(dllimport) -HWINSTA -__stdcall -CreateWindowStationW( - LPCWSTR lpwinsta, - DWORD dwFlags, - ACCESS_MASK dwDesiredAccess, - LPSECURITY_ATTRIBUTES lpsa); - - - - - - -__declspec(dllimport) -HWINSTA -__stdcall -OpenWindowStationA( - LPCSTR lpszWinSta, - BOOL fInherit, - ACCESS_MASK dwDesiredAccess); -__declspec(dllimport) -HWINSTA -__stdcall -OpenWindowStationW( - LPCWSTR lpszWinSta, - BOOL fInherit, - ACCESS_MASK dwDesiredAccess); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -EnumWindowStationsA( - WINSTAENUMPROCA lpEnumFunc, - LPARAM lParam); -__declspec(dllimport) -BOOL -__stdcall -EnumWindowStationsW( - WINSTAENUMPROCW lpEnumFunc, - LPARAM lParam); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CloseWindowStation( - HWINSTA hWinSta); - -__declspec(dllimport) -BOOL -__stdcall -SetProcessWindowStation( - HWINSTA hWinSta); - -__declspec(dllimport) -HWINSTA -__stdcall -GetProcessWindowStation( - void); -# 1663 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetUserObjectSecurity( - HANDLE hObj, - PSECURITY_INFORMATION pSIRequested, - PSECURITY_DESCRIPTOR pSID); - -__declspec(dllimport) -BOOL -__stdcall -GetUserObjectSecurity( - HANDLE hObj, - PSECURITY_INFORMATION pSIRequested, - PSECURITY_DESCRIPTOR pSID, - DWORD nLength, - LPDWORD lpnLengthNeeded); -# 1697 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagUSEROBJECTFLAGS { - BOOL fInherit; - BOOL fReserved; - DWORD dwFlags; -} USEROBJECTFLAGS, *PUSEROBJECTFLAGS; - -__declspec(dllimport) -BOOL -__stdcall -GetUserObjectInformationA( - HANDLE hObj, - int nIndex, - PVOID pvInfo, - DWORD nLength, - LPDWORD lpnLengthNeeded); -__declspec(dllimport) -BOOL -__stdcall -GetUserObjectInformationW( - HANDLE hObj, - int nIndex, - PVOID pvInfo, - DWORD nLength, - LPDWORD lpnLengthNeeded); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetUserObjectInformationA( - HANDLE hObj, - int nIndex, - PVOID pvInfo, - DWORD nLength); -__declspec(dllimport) -BOOL -__stdcall -SetUserObjectInformationW( - HANDLE hObj, - int nIndex, - PVOID pvInfo, - DWORD nLength); -# 1758 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagWNDCLASSEXA { - UINT cbSize; - - UINT style; - WNDPROC lpfnWndProc; - int cbClsExtra; - int cbWndExtra; - HINSTANCE hInstance; - HICON hIcon; - HCURSOR hCursor; - HBRUSH hbrBackground; - LPCSTR lpszMenuName; - LPCSTR lpszClassName; - - HICON hIconSm; -} WNDCLASSEXA, *PWNDCLASSEXA, *NPWNDCLASSEXA, *LPWNDCLASSEXA; -typedef struct tagWNDCLASSEXW { - UINT cbSize; - - UINT style; - WNDPROC lpfnWndProc; - int cbClsExtra; - int cbWndExtra; - HINSTANCE hInstance; - HICON hIcon; - HCURSOR hCursor; - HBRUSH hbrBackground; - LPCWSTR lpszMenuName; - LPCWSTR lpszClassName; - - HICON hIconSm; -} WNDCLASSEXW, *PWNDCLASSEXW, *NPWNDCLASSEXW, *LPWNDCLASSEXW; - - - - - - -typedef WNDCLASSEXA WNDCLASSEX; -typedef PWNDCLASSEXA PWNDCLASSEX; -typedef NPWNDCLASSEXA NPWNDCLASSEX; -typedef LPWNDCLASSEXA LPWNDCLASSEX; - - - -typedef struct tagWNDCLASSA { - UINT style; - WNDPROC lpfnWndProc; - int cbClsExtra; - int cbWndExtra; - HINSTANCE hInstance; - HICON hIcon; - HCURSOR hCursor; - HBRUSH hbrBackground; - LPCSTR lpszMenuName; - LPCSTR lpszClassName; -} WNDCLASSA, *PWNDCLASSA, *NPWNDCLASSA, *LPWNDCLASSA; -typedef struct tagWNDCLASSW { - UINT style; - WNDPROC lpfnWndProc; - int cbClsExtra; - int cbWndExtra; - HINSTANCE hInstance; - HICON hIcon; - HCURSOR hCursor; - HBRUSH hbrBackground; - LPCWSTR lpszMenuName; - LPCWSTR lpszClassName; -} WNDCLASSW, *PWNDCLASSW, *NPWNDCLASSW, *LPWNDCLASSW; - - - - - - -typedef WNDCLASSA WNDCLASS; -typedef PWNDCLASSA PWNDCLASS; -typedef NPWNDCLASSA NPWNDCLASS; -typedef LPWNDCLASSA LPWNDCLASS; -# 1845 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsHungAppWindow( - HWND hwnd); - - - -__declspec(dllimport) -void -__stdcall -DisableProcessWindowsGhosting( - void); -# 1872 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagMSG { - HWND hwnd; - UINT message; - WPARAM wParam; - LPARAM lParam; - DWORD time; - POINT pt; - - - -} MSG, *PMSG, *NPMSG, *LPMSG; -# 2037 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagMINMAXINFO { - POINT ptReserved; - POINT ptMaxSize; - POINT ptMaxPosition; - POINT ptMinTrackSize; - POINT ptMaxTrackSize; -} MINMAXINFO, *PMINMAXINFO, *LPMINMAXINFO; -# 2093 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagCOPYDATASTRUCT { - ULONG_PTR dwData; - DWORD cbData; - PVOID lpData; -} COPYDATASTRUCT, *PCOPYDATASTRUCT; - - -typedef struct tagMDINEXTMENU -{ - HMENU hmenuIn; - HMENU hmenuNext; - HWND hwndNext; -} MDINEXTMENU, * PMDINEXTMENU, * LPMDINEXTMENU; -# 2355 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct { - GUID PowerSetting; - DWORD DataLength; - UCHAR Data[1]; -} POWERBROADCAST_SETTING, *PPOWERBROADCAST_SETTING; -# 2639 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -UINT -__stdcall -RegisterWindowMessageA( - LPCSTR lpString); -__declspec(dllimport) -UINT -__stdcall -RegisterWindowMessageW( - LPCWSTR lpString); -# 2684 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagWINDOWPOS { - HWND hwnd; - HWND hwndInsertAfter; - int x; - int y; - int cx; - int cy; - UINT flags; -} WINDOWPOS, *LPWINDOWPOS, *PWINDOWPOS; - - - - -typedef struct tagNCCALCSIZE_PARAMS { - RECT rgrc[3]; - PWINDOWPOS lppos; -} NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS; -# 2757 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagTRACKMOUSEEVENT { - DWORD cbSize; - DWORD dwFlags; - HWND hwndTrack; - DWORD dwHoverTime; -} TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT; - -__declspec(dllimport) -BOOL -__stdcall -TrackMouseEvent( - LPTRACKMOUSEEVENT lpEventTrack); -# 2975 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DrawEdge( - HDC hdc, - LPRECT qrc, - UINT edge, - UINT grfFlags); -# 3038 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DrawFrameControl( - HDC, - LPRECT, - UINT, - UINT); -# 3068 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DrawCaption( - HWND hwnd, - HDC hdc, - const RECT * lprect, - UINT flags); -# 3087 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DrawAnimatedRects( - HWND hwnd, - int idAni, - const RECT *lprcFrom, - const RECT *lprcTo); -# 3170 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagACCEL { - - BYTE fVirt; - WORD key; - WORD cmd; - - - - - -} ACCEL, *LPACCEL; - -typedef struct tagPAINTSTRUCT { - HDC hdc; - BOOL fErase; - RECT rcPaint; - BOOL fRestore; - BOOL fIncUpdate; - BYTE rgbReserved[32]; -} PAINTSTRUCT, *PPAINTSTRUCT, *NPPAINTSTRUCT, *LPPAINTSTRUCT; - - - - - - - -typedef struct tagCREATESTRUCTA { - LPVOID lpCreateParams; - HINSTANCE hInstance; - HMENU hMenu; - HWND hwndParent; - int cy; - int cx; - int y; - int x; - LONG style; - LPCSTR lpszName; - LPCSTR lpszClass; - DWORD dwExStyle; -} CREATESTRUCTA, *LPCREATESTRUCTA; -typedef struct tagCREATESTRUCTW { - LPVOID lpCreateParams; - HINSTANCE hInstance; - HMENU hMenu; - HWND hwndParent; - int cy; - int cx; - int y; - int x; - LONG style; - LPCWSTR lpszName; - LPCWSTR lpszClass; - DWORD dwExStyle; -} CREATESTRUCTW, *LPCREATESTRUCTW; - - - - -typedef CREATESTRUCTA CREATESTRUCT; -typedef LPCREATESTRUCTA LPCREATESTRUCT; -# 3239 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagWINDOWPLACEMENT { - UINT length; - UINT flags; - UINT showCmd; - POINT ptMinPosition; - POINT ptMaxPosition; - RECT rcNormalPosition; - - - -} WINDOWPLACEMENT; -typedef WINDOWPLACEMENT *PWINDOWPLACEMENT, *LPWINDOWPLACEMENT; -# 3266 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagNMHDR -{ - HWND hwndFrom; - UINT_PTR idFrom; - UINT code; -} NMHDR; - - - - - - - -typedef NMHDR * LPNMHDR; - -typedef struct tagSTYLESTRUCT -{ - DWORD styleOld; - DWORD styleNew; -} STYLESTRUCT, * LPSTYLESTRUCT; -# 3337 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagMEASUREITEMSTRUCT { - UINT CtlType; - UINT CtlID; - UINT itemID; - UINT itemWidth; - UINT itemHeight; - ULONG_PTR itemData; -} MEASUREITEMSTRUCT, *PMEASUREITEMSTRUCT, *LPMEASUREITEMSTRUCT; - - - - -typedef struct tagDRAWITEMSTRUCT { - UINT CtlType; - UINT CtlID; - UINT itemID; - UINT itemAction; - UINT itemState; - HWND hwndItem; - HDC hDC; - RECT rcItem; - ULONG_PTR itemData; -} DRAWITEMSTRUCT, *PDRAWITEMSTRUCT, *LPDRAWITEMSTRUCT; - - - - -typedef struct tagDELETEITEMSTRUCT { - UINT CtlType; - UINT CtlID; - UINT itemID; - HWND hwndItem; - ULONG_PTR itemData; -} DELETEITEMSTRUCT, *PDELETEITEMSTRUCT, *LPDELETEITEMSTRUCT; - - - - -typedef struct tagCOMPAREITEMSTRUCT { - UINT CtlType; - UINT CtlID; - HWND hwndItem; - UINT itemID1; - ULONG_PTR itemData1; - UINT itemID2; - ULONG_PTR itemData2; - DWORD dwLocaleId; -} COMPAREITEMSTRUCT, *PCOMPAREITEMSTRUCT, *LPCOMPAREITEMSTRUCT; -# 3398 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetMessageA( - LPMSG lpMsg, - HWND hWnd, - UINT wMsgFilterMin, - UINT wMsgFilterMax); -__declspec(dllimport) -BOOL -__stdcall -GetMessageW( - LPMSG lpMsg, - HWND hWnd, - UINT wMsgFilterMin, - UINT wMsgFilterMax); -# 3445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -TranslateMessage( - const MSG *lpMsg); - -__declspec(dllimport) -LRESULT -__stdcall -DispatchMessageA( - const MSG *lpMsg); -__declspec(dllimport) -LRESULT -__stdcall -DispatchMessageW( - const MSG *lpMsg); -# 3491 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetMessageQueue( - int cMessagesMax); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -PeekMessageA( - LPMSG lpMsg, - HWND hWnd, - UINT wMsgFilterMin, - UINT wMsgFilterMax, - UINT wRemoveMsg); -__declspec(dllimport) -BOOL -__stdcall -PeekMessageW( - LPMSG lpMsg, - HWND hWnd, - UINT wMsgFilterMin, - UINT wMsgFilterMax, - UINT wRemoveMsg); -# 3551 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -RegisterHotKey( - HWND hWnd, - int id, - UINT fsModifiers, - UINT vk); - -__declspec(dllimport) -BOOL -__stdcall -UnregisterHotKey( - HWND hWnd, - int id); -# 3631 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -ExitWindowsEx( - UINT uFlags, - DWORD dwReason); - -__declspec(dllimport) -BOOL -__stdcall -SwapMouseButton( - BOOL fSwap); - -__declspec(dllimport) -DWORD -__stdcall -GetMessagePos( - void); - -__declspec(dllimport) -LONG -__stdcall -GetMessageTime( - void); - -__declspec(dllimport) -LPARAM -__stdcall -GetMessageExtraInfo( - void); - - -__declspec(dllimport) -DWORD -__stdcall -GetUnpredictedMessagePos( - void); - - - -__declspec(dllimport) -BOOL -__stdcall -IsWow64Message( - void); - - - -__declspec(dllimport) -LPARAM -__stdcall -SetMessageExtraInfo( - LPARAM lParam); -# 3692 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -LRESULT -__stdcall -SendMessageA( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); -__declspec(dllimport) -LRESULT -__stdcall -SendMessageW( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); -# 3744 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -LRESULT -__stdcall -SendMessageTimeoutA( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam, - UINT fuFlags, - UINT uTimeout, - PDWORD_PTR lpdwResult); -__declspec(dllimport) -LRESULT -__stdcall -SendMessageTimeoutW( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam, - UINT fuFlags, - UINT uTimeout, - PDWORD_PTR lpdwResult); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SendNotifyMessageA( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); -__declspec(dllimport) -BOOL -__stdcall -SendNotifyMessageW( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SendMessageCallbackA( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam, - SENDASYNCPROC lpResultCallBack, - ULONG_PTR dwData); -__declspec(dllimport) -BOOL -__stdcall -SendMessageCallbackW( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam, - SENDASYNCPROC lpResultCallBack, - ULONG_PTR dwData); - - - - - - - -typedef struct { - UINT cbSize; - HDESK hdesk; - HWND hwnd; - LUID luid; -} BSMINFO, *PBSMINFO; - -__declspec(dllimport) -long -__stdcall -BroadcastSystemMessageExA( - DWORD flags, - LPDWORD lpInfo, - UINT Msg, - WPARAM wParam, - LPARAM lParam, - PBSMINFO pbsmInfo); -__declspec(dllimport) -long -__stdcall -BroadcastSystemMessageExW( - DWORD flags, - LPDWORD lpInfo, - UINT Msg, - WPARAM wParam, - LPARAM lParam, - PBSMINFO pbsmInfo); -# 3864 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -long -__stdcall -BroadcastSystemMessageA( - DWORD flags, - LPDWORD lpInfo, - UINT Msg, - WPARAM wParam, - LPARAM lParam); -__declspec(dllimport) -long -__stdcall -BroadcastSystemMessageW( - DWORD flags, - LPDWORD lpInfo, - UINT Msg, - WPARAM wParam, - LPARAM lParam); -# 3938 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef PVOID HDEVNOTIFY; -typedef HDEVNOTIFY *PHDEVNOTIFY; - - - - - - - -__declspec(dllimport) -HDEVNOTIFY -__stdcall -RegisterDeviceNotificationA( - HANDLE hRecipient, - LPVOID NotificationFilter, - DWORD Flags); -__declspec(dllimport) -HDEVNOTIFY -__stdcall -RegisterDeviceNotificationW( - HANDLE hRecipient, - LPVOID NotificationFilter, - DWORD Flags); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -UnregisterDeviceNotification( - HDEVNOTIFY Handle - ); - - - - - - - -typedef PVOID HPOWERNOTIFY; -typedef HPOWERNOTIFY *PHPOWERNOTIFY; - - - -__declspec(dllimport) -HPOWERNOTIFY -__stdcall -RegisterPowerSettingNotification( - HANDLE hRecipient, - LPCGUID PowerSettingGuid, - DWORD Flags - ); - -__declspec(dllimport) -BOOL -__stdcall -UnregisterPowerSettingNotification( - HPOWERNOTIFY Handle - ); - -__declspec(dllimport) -HPOWERNOTIFY -__stdcall -RegisterSuspendResumeNotification ( - HANDLE hRecipient, - DWORD Flags - ); - -__declspec(dllimport) -BOOL -__stdcall -UnregisterSuspendResumeNotification ( - HPOWERNOTIFY Handle - ); -# 4026 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -PostMessageA( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); -__declspec(dllimport) -BOOL -__stdcall -PostMessageW( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -PostThreadMessageA( - DWORD idThread, - UINT Msg, - WPARAM wParam, - LPARAM lParam); -__declspec(dllimport) -BOOL -__stdcall -PostThreadMessageW( - DWORD idThread, - UINT Msg, - WPARAM wParam, - LPARAM lParam); -# 4095 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -AttachThreadInput( - DWORD idAttach, - DWORD idAttachTo, - BOOL fAttach); - - -__declspec(dllimport) -BOOL -__stdcall -ReplyMessage( - LRESULT lResult); - -__declspec(dllimport) -BOOL -__stdcall -WaitMessage( - void); - - - - - -__declspec(dllimport) -DWORD -__stdcall -WaitForInputIdle( - HANDLE hProcess, - DWORD dwMilliseconds); - - - - - - - -__declspec(dllimport) - -LRESULT -__stdcall - - - - -DefWindowProcA( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); -__declspec(dllimport) - -LRESULT -__stdcall - - - - -DefWindowProcW( - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); - - - - - - -__declspec(dllimport) -void -__stdcall -PostQuitMessage( - int nExitCode); - - - -__declspec(dllimport) -LRESULT -__stdcall -CallWindowProcA( - WNDPROC lpPrevWndFunc, - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); -__declspec(dllimport) -LRESULT -__stdcall -CallWindowProcW( - WNDPROC lpPrevWndFunc, - HWND hWnd, - UINT Msg, - WPARAM wParam, - LPARAM lParam); -# 4231 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -InSendMessage( - void); -# 4245 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -DWORD -__stdcall -InSendMessageEx( - LPVOID lpReserved); -# 4268 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -UINT -__stdcall -GetDoubleClickTime( - void); - -__declspec(dllimport) -BOOL -__stdcall -SetDoubleClickTime( - UINT); - - - - - - - -__declspec(dllimport) -ATOM -__stdcall -RegisterClassA( - const WNDCLASSA *lpWndClass); -__declspec(dllimport) -ATOM -__stdcall -RegisterClassW( - const WNDCLASSW *lpWndClass); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -UnregisterClassA( - LPCSTR lpClassName, - HINSTANCE hInstance); -__declspec(dllimport) -BOOL -__stdcall -UnregisterClassW( - LPCWSTR lpClassName, - HINSTANCE hInstance); -# 4327 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetClassInfoA( - HINSTANCE hInstance, - LPCSTR lpClassName, - LPWNDCLASSA lpWndClass); - -__declspec(dllimport) -BOOL -__stdcall -GetClassInfoW( - HINSTANCE hInstance, - LPCWSTR lpClassName, - LPWNDCLASSW lpWndClass); -# 4355 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -ATOM -__stdcall -RegisterClassExA( - const WNDCLASSEXA *); -__declspec(dllimport) -ATOM -__stdcall -RegisterClassExW( - const WNDCLASSEXW *); -# 4378 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetClassInfoExA( - HINSTANCE hInstance, - LPCSTR lpszClass, - LPWNDCLASSEXA lpwcx); - -__declspec(dllimport) -BOOL -__stdcall -GetClassInfoExW( - HINSTANCE hInstance, - LPCWSTR lpszClass, - LPWNDCLASSEXW lpwcx); -# 4415 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef BOOLEAN (__stdcall * PREGISTERCLASSNAMEW)(LPCWSTR); - - -__declspec(dllimport) -HWND -__stdcall -CreateWindowExA( - DWORD dwExStyle, - LPCSTR lpClassName, - LPCSTR lpWindowName, - DWORD dwStyle, - int X, - int Y, - int nWidth, - int nHeight, - HWND hWndParent, - HMENU hMenu, - HINSTANCE hInstance, - LPVOID lpParam); -__declspec(dllimport) -HWND -__stdcall -CreateWindowExW( - DWORD dwExStyle, - LPCWSTR lpClassName, - LPCWSTR lpWindowName, - DWORD dwStyle, - int X, - int Y, - int nWidth, - int nHeight, - HWND hWndParent, - HMENU hMenu, - HINSTANCE hInstance, - LPVOID lpParam); -# 4477 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsWindow( - HWND hWnd); - - -__declspec(dllimport) -BOOL -__stdcall -IsMenu( - HMENU hMenu); - -__declspec(dllimport) -BOOL -__stdcall -IsChild( - HWND hWndParent, - HWND hWnd); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -DestroyWindow( - HWND hWnd); - -__declspec(dllimport) -BOOL -__stdcall -ShowWindow( - HWND hWnd, - int nCmdShow); -# 4523 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -AnimateWindow( - HWND hWnd, - DWORD dwTime, - DWORD dwFlags); -# 4541 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -UpdateLayeredWindow( - HWND hWnd, - HDC hdcDst, - POINT* pptDst, - SIZE* psize, - HDC hdcSrc, - POINT* pptSrc, - COLORREF crKey, - BLENDFUNCTION* pblend, - DWORD dwFlags); - - - - -typedef struct tagUPDATELAYEREDWINDOWINFO -{ - DWORD cbSize; - HDC hdcDst; - const POINT* pptDst; - const SIZE* psize; - HDC hdcSrc; - const POINT* pptSrc; - COLORREF crKey; - const BLENDFUNCTION* pblend; - DWORD dwFlags; - const RECT* prcDirty; -} UPDATELAYEREDWINDOWINFO, *PUPDATELAYEREDWINDOWINFO; - - - - - -__declspec(dllimport) -BOOL -__stdcall -UpdateLayeredWindowIndirect( - HWND hWnd, - const UPDATELAYEREDWINDOWINFO* pULWInfo); -# 4593 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetLayeredWindowAttributes( - HWND hwnd, - COLORREF* pcrKey, - BYTE* pbAlpha, - DWORD* pdwFlags); -# 4609 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -PrintWindow( - HWND hwnd, - HDC hdcBlt, - UINT nFlags); -# 4625 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetLayeredWindowAttributes( - HWND hwnd, - COLORREF crKey, - BYTE bAlpha, - DWORD dwFlags); -# 4655 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -ShowWindowAsync( - HWND hWnd, - int nCmdShow); - - -__declspec(dllimport) -BOOL -__stdcall -FlashWindow( - HWND hWnd, - BOOL bInvert); - - -typedef struct { - UINT cbSize; - HWND hwnd; - DWORD dwFlags; - UINT uCount; - DWORD dwTimeout; -} FLASHWINFO, *PFLASHWINFO; - -__declspec(dllimport) -BOOL -__stdcall -FlashWindowEx( - PFLASHWINFO pfwi); -# 4694 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -ShowOwnedPopups( - HWND hWnd, - BOOL fShow); - -__declspec(dllimport) -BOOL -__stdcall -OpenIcon( - HWND hWnd); - -__declspec(dllimport) -BOOL -__stdcall -CloseWindow( - HWND hWnd); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -MoveWindow( - HWND hWnd, - int X, - int Y, - int nWidth, - int nHeight, - BOOL bRepaint); - -__declspec(dllimport) -BOOL -__stdcall -SetWindowPos( - HWND hWnd, - HWND hWndInsertAfter, - int X, - int Y, - int cx, - int cy, - UINT uFlags); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetWindowPlacement( - HWND hWnd, - WINDOWPLACEMENT *lpwndpl); - -__declspec(dllimport) -BOOL -__stdcall -SetWindowPlacement( - HWND hWnd, - const WINDOWPLACEMENT *lpwndpl); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetWindowDisplayAffinity( - HWND hWnd, - DWORD* pdwAffinity); - -__declspec(dllimport) -BOOL -__stdcall -SetWindowDisplayAffinity( - HWND hWnd, - DWORD dwAffinity); -# 4792 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HDWP -__stdcall -BeginDeferWindowPos( - int nNumWindows); - -__declspec(dllimport) -HDWP -__stdcall -DeferWindowPos( - HDWP hWinPosInfo, - HWND hWnd, - HWND hWndInsertAfter, - int x, - int y, - int cx, - int cy, - UINT uFlags); - - -__declspec(dllimport) -BOOL -__stdcall -EndDeferWindowPos( - HDWP hWinPosInfo); -# 4826 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsWindowVisible( - HWND hWnd); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -IsIconic( - HWND hWnd); - -__declspec(dllimport) -BOOL -__stdcall -AnyPopup( - void); - -__declspec(dllimport) -BOOL -__stdcall -BringWindowToTop( - HWND hWnd); - -__declspec(dllimport) -BOOL -__stdcall -IsZoomed( - HWND hWnd); -# 4901 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack2.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,2) -# 4902 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 2 3 - - - - - - - -typedef struct { - DWORD style; - DWORD dwExtendedStyle; - WORD cdit; - short x; - short y; - short cx; - short cy; -} DLGTEMPLATE; - - - - - - - -typedef DLGTEMPLATE *LPDLGTEMPLATEA; -typedef DLGTEMPLATE *LPDLGTEMPLATEW; - - - -typedef LPDLGTEMPLATEA LPDLGTEMPLATE; -# 4939 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef const DLGTEMPLATE *LPCDLGTEMPLATEA; -typedef const DLGTEMPLATE *LPCDLGTEMPLATEW; - - - -typedef LPCDLGTEMPLATEA LPCDLGTEMPLATE; -# 4957 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct { - DWORD style; - DWORD dwExtendedStyle; - short x; - short y; - short cx; - short cy; - WORD id; -} DLGITEMTEMPLATE; -typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEA; -typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEW; - - - -typedef PDLGITEMTEMPLATEA PDLGITEMTEMPLATE; - -typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA; -typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW; - - - -typedef LPDLGITEMTEMPLATEA LPDLGITEMTEMPLATE; - - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 4986 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 2 3 - - - - -__declspec(dllimport) -HWND -__stdcall -CreateDialogParamA( - HINSTANCE hInstance, - LPCSTR lpTemplateName, - HWND hWndParent, - DLGPROC lpDialogFunc, - LPARAM dwInitParam); -__declspec(dllimport) -HWND -__stdcall -CreateDialogParamW( - HINSTANCE hInstance, - LPCWSTR lpTemplateName, - HWND hWndParent, - DLGPROC lpDialogFunc, - LPARAM dwInitParam); - - - - - - -__declspec(dllimport) -HWND -__stdcall -CreateDialogIndirectParamA( - HINSTANCE hInstance, - LPCDLGTEMPLATEA lpTemplate, - HWND hWndParent, - DLGPROC lpDialogFunc, - LPARAM dwInitParam); -__declspec(dllimport) -HWND -__stdcall -CreateDialogIndirectParamW( - HINSTANCE hInstance, - LPCDLGTEMPLATEW lpTemplate, - HWND hWndParent, - DLGPROC lpDialogFunc, - LPARAM dwInitParam); -# 5058 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -INT_PTR -__stdcall -DialogBoxParamA( - HINSTANCE hInstance, - LPCSTR lpTemplateName, - HWND hWndParent, - DLGPROC lpDialogFunc, - LPARAM dwInitParam); -__declspec(dllimport) -INT_PTR -__stdcall -DialogBoxParamW( - HINSTANCE hInstance, - LPCWSTR lpTemplateName, - HWND hWndParent, - DLGPROC lpDialogFunc, - LPARAM dwInitParam); - - - - - - -__declspec(dllimport) -INT_PTR -__stdcall -DialogBoxIndirectParamA( - HINSTANCE hInstance, - LPCDLGTEMPLATEA hDialogTemplate, - HWND hWndParent, - DLGPROC lpDialogFunc, - LPARAM dwInitParam); -__declspec(dllimport) -INT_PTR -__stdcall -DialogBoxIndirectParamW( - HINSTANCE hInstance, - LPCDLGTEMPLATEW hDialogTemplate, - HWND hWndParent, - DLGPROC lpDialogFunc, - LPARAM dwInitParam); -# 5126 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EndDialog( - HWND hDlg, - INT_PTR nResult); - -__declspec(dllimport) -HWND -__stdcall -GetDlgItem( - HWND hDlg, - int nIDDlgItem); - -__declspec(dllimport) -BOOL -__stdcall -SetDlgItemInt( - HWND hDlg, - int nIDDlgItem, - UINT uValue, - BOOL bSigned); - -__declspec(dllimport) -UINT -__stdcall -GetDlgItemInt( - HWND hDlg, - int nIDDlgItem, - BOOL *lpTranslated, - BOOL bSigned); - -__declspec(dllimport) -BOOL -__stdcall -SetDlgItemTextA( - HWND hDlg, - int nIDDlgItem, - LPCSTR lpString); -__declspec(dllimport) -BOOL -__stdcall -SetDlgItemTextW( - HWND hDlg, - int nIDDlgItem, - LPCWSTR lpString); - - - - - - - -__declspec(dllimport) -UINT -__stdcall -GetDlgItemTextA( - HWND hDlg, - int nIDDlgItem, - LPSTR lpString, - int cchMax); - -__declspec(dllimport) -UINT -__stdcall -GetDlgItemTextW( - HWND hDlg, - int nIDDlgItem, - LPWSTR lpString, - int cchMax); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CheckDlgButton( - HWND hDlg, - int nIDButton, - UINT uCheck); - -__declspec(dllimport) -BOOL -__stdcall -CheckRadioButton( - HWND hDlg, - int nIDFirstButton, - int nIDLastButton, - int nIDCheckButton); - -__declspec(dllimport) -UINT -__stdcall -IsDlgButtonChecked( - HWND hDlg, - int nIDButton); - -__declspec(dllimport) -LRESULT -__stdcall -SendDlgItemMessageA( - HWND hDlg, - int nIDDlgItem, - UINT Msg, - WPARAM wParam, - LPARAM lParam); -__declspec(dllimport) -LRESULT -__stdcall -SendDlgItemMessageW( - HWND hDlg, - int nIDDlgItem, - UINT Msg, - WPARAM wParam, - LPARAM lParam); - - - - - - -__declspec(dllimport) -HWND -__stdcall -GetNextDlgGroupItem( - HWND hDlg, - HWND hCtl, - BOOL bPrevious); - -__declspec(dllimport) -HWND -__stdcall -GetNextDlgTabItem( - HWND hDlg, - HWND hCtl, - BOOL bPrevious); - -__declspec(dllimport) -int -__stdcall -GetDlgCtrlID( - HWND hWnd); - -__declspec(dllimport) -long -__stdcall -GetDialogBaseUnits(void); - - -__declspec(dllimport) - -LRESULT -__stdcall - - - - -DefDlgProcA( - HWND hDlg, - UINT Msg, - WPARAM wParam, - LPARAM lParam); -__declspec(dllimport) - -LRESULT -__stdcall - - - - -DefDlgProcW( - HWND hDlg, - UINT Msg, - WPARAM wParam, - LPARAM lParam); - - - - - - -typedef enum DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS { - DCDC_DEFAULT = 0x0000, - DCDC_DISABLE_FONT_UPDATE = 0x0001, - DCDC_DISABLE_RELAYOUT = 0x0002, -} DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS; - - - ; - - -BOOL -__stdcall -SetDialogControlDpiChangeBehavior( - HWND hWnd, - DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS mask, - DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS values); - -DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS -__stdcall -GetDialogControlDpiChangeBehavior( - HWND hWnd); - -typedef enum DIALOG_DPI_CHANGE_BEHAVIORS { - DDC_DEFAULT = 0x0000, - DDC_DISABLE_ALL = 0x0001, - DDC_DISABLE_RESIZE = 0x0002, - DDC_DISABLE_CONTROL_RELAYOUT = 0x0004, -} DIALOG_DPI_CHANGE_BEHAVIORS; - - - ; - - -BOOL -__stdcall -SetDialogDpiChangeBehavior( - HWND hDlg, - DIALOG_DPI_CHANGE_BEHAVIORS mask, - DIALOG_DPI_CHANGE_BEHAVIORS values); - -DIALOG_DPI_CHANGE_BEHAVIORS -__stdcall -GetDialogDpiChangeBehavior( - HWND hDlg); -# 5374 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CallMsgFilterA( - LPMSG lpMsg, - int nCode); -__declspec(dllimport) -BOOL -__stdcall -CallMsgFilterW( - LPMSG lpMsg, - int nCode); -# 5400 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -OpenClipboard( - HWND hWndNewOwner); - -__declspec(dllimport) -BOOL -__stdcall -CloseClipboard( - void); - - - - -__declspec(dllimport) -DWORD -__stdcall -GetClipboardSequenceNumber( - void); - - - -__declspec(dllimport) -HWND -__stdcall -GetClipboardOwner( - void); - -__declspec(dllimport) -HWND -__stdcall -SetClipboardViewer( - HWND hWndNewViewer); - -__declspec(dllimport) -HWND -__stdcall -GetClipboardViewer( - void); - -__declspec(dllimport) -BOOL -__stdcall -ChangeClipboardChain( - HWND hWndRemove, - HWND hWndNewNext); - -__declspec(dllimport) -HANDLE -__stdcall -SetClipboardData( - UINT uFormat, - HANDLE hMem); - -__declspec(dllimport) -HANDLE -__stdcall -GetClipboardData( - UINT uFormat); - -typedef struct tagGETCLIPBMETADATA { - - UINT Version; - BOOL IsDelayRendered; - BOOL IsSynthetic; - -} GETCLIPBMETADATA, *PGETCLIPBMETADATA; - -__declspec(dllimport) -BOOL -__stdcall -GetClipboardMetadata( - UINT format, - PGETCLIPBMETADATA metadata); - -__declspec(dllimport) -UINT -__stdcall -RegisterClipboardFormatA( - LPCSTR lpszFormat); -__declspec(dllimport) -UINT -__stdcall -RegisterClipboardFormatW( - LPCWSTR lpszFormat); - - - - - - -__declspec(dllimport) -int -__stdcall -CountClipboardFormats( - void); - -__declspec(dllimport) -UINT -__stdcall -EnumClipboardFormats( - UINT format); - -__declspec(dllimport) -int -__stdcall -GetClipboardFormatNameA( - UINT format, - LPSTR lpszFormatName, - int cchMaxCount); -__declspec(dllimport) -int -__stdcall -GetClipboardFormatNameW( - UINT format, - LPWSTR lpszFormatName, - int cchMaxCount); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -EmptyClipboard( - void); - -__declspec(dllimport) -BOOL -__stdcall -IsClipboardFormatAvailable( - UINT format); - -__declspec(dllimport) -int -__stdcall -GetPriorityClipboardFormat( - UINT *paFormatPriorityList, - int cFormats); - -__declspec(dllimport) -HWND -__stdcall -GetOpenClipboardWindow( - void); - - -__declspec(dllimport) -BOOL -__stdcall -AddClipboardFormatListener( - HWND hwnd); - -__declspec(dllimport) -BOOL -__stdcall -RemoveClipboardFormatListener( - HWND hwnd); - -__declspec(dllimport) -BOOL -__stdcall -GetUpdatedClipboardFormats( - PUINT lpuiFormats, - UINT cFormats, - PUINT pcFormatsOut); -# 5577 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CharToOemA( - LPCSTR pSrc, - LPSTR pDst); -__declspec(dllimport) -BOOL -__stdcall -CharToOemW( - LPCWSTR pSrc, - LPSTR pDst); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -OemToCharA( - LPCSTR pSrc, - LPSTR pDst); - -__declspec(dllimport) -BOOL -__stdcall -OemToCharW( - LPCSTR pSrc, - LPWSTR pDst); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CharToOemBuffA( - LPCSTR lpszSrc, - LPSTR lpszDst, - DWORD cchDstLength); -__declspec(dllimport) -BOOL -__stdcall -CharToOemBuffW( - LPCWSTR lpszSrc, - LPSTR lpszDst, - DWORD cchDstLength); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -OemToCharBuffA( - LPCSTR lpszSrc, - LPSTR lpszDst, - DWORD cchDstLength); -__declspec(dllimport) -BOOL -__stdcall -OemToCharBuffW( - LPCSTR lpszSrc, - LPWSTR lpszDst, - DWORD cchDstLength); -# 5661 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -LPSTR -__stdcall -CharUpperA( - LPSTR lpsz); -__declspec(dllimport) -LPWSTR -__stdcall -CharUpperW( - LPWSTR lpsz); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -CharUpperBuffA( - LPSTR lpsz, - DWORD cchLength); -__declspec(dllimport) -DWORD -__stdcall -CharUpperBuffW( - LPWSTR lpsz, - DWORD cchLength); - - - - - - -__declspec(dllimport) -LPSTR -__stdcall -CharLowerA( - LPSTR lpsz); -__declspec(dllimport) -LPWSTR -__stdcall -CharLowerW( - LPWSTR lpsz); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -CharLowerBuffA( - LPSTR lpsz, - DWORD cchLength); -__declspec(dllimport) -DWORD -__stdcall -CharLowerBuffW( - LPWSTR lpsz, - DWORD cchLength); - - - - - - -__declspec(dllimport) -LPSTR -__stdcall -CharNextA( - LPCSTR lpsz); -__declspec(dllimport) -LPWSTR -__stdcall -CharNextW( - LPCWSTR lpsz); - - - - - - -__declspec(dllimport) -LPSTR -__stdcall -CharPrevA( - LPCSTR lpszStart, - LPCSTR lpszCurrent); -__declspec(dllimport) -LPWSTR -__stdcall -CharPrevW( - LPCWSTR lpszStart, - LPCWSTR lpszCurrent); - - - - - - - -__declspec(dllimport) -LPSTR -__stdcall -CharNextExA( - WORD CodePage, - LPCSTR lpCurrentChar, - DWORD dwFlags); - -__declspec(dllimport) -LPSTR -__stdcall -CharPrevExA( - WORD CodePage, - LPCSTR lpStart, - LPCSTR lpCurrentChar, - DWORD dwFlags); -# 5807 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsCharAlphaA( - CHAR ch); -__declspec(dllimport) -BOOL -__stdcall -IsCharAlphaW( - WCHAR ch); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -IsCharAlphaNumericA( - CHAR ch); -__declspec(dllimport) -BOOL -__stdcall -IsCharAlphaNumericW( - WCHAR ch); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -IsCharUpperA( - CHAR ch); -__declspec(dllimport) -BOOL -__stdcall -IsCharUpperW( - WCHAR ch); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -IsCharLowerA( - CHAR ch); -__declspec(dllimport) -BOOL -__stdcall -IsCharLowerW( - WCHAR ch); -# 5879 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HWND -__stdcall -SetFocus( - HWND hWnd); - -__declspec(dllimport) -HWND -__stdcall -GetActiveWindow( - void); - -__declspec(dllimport) -HWND -__stdcall -GetFocus( - void); - -__declspec(dllimport) -UINT -__stdcall -GetKBCodePage( - void); - -__declspec(dllimport) -SHORT -__stdcall -GetKeyState( - int nVirtKey); - -__declspec(dllimport) -SHORT -__stdcall -GetAsyncKeyState( - int vKey); - -__declspec(dllimport) - -BOOL -__stdcall -GetKeyboardState( - PBYTE lpKeyState); - -__declspec(dllimport) -BOOL -__stdcall -SetKeyboardState( - LPBYTE lpKeyState); -# 5935 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -int -__stdcall -GetKeyNameTextA( - LONG lParam, - LPSTR lpString, - int cchSize); -__declspec(dllimport) -int -__stdcall -GetKeyNameTextW( - LONG lParam, - LPWSTR lpString, - int cchSize); -# 5962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -int -__stdcall -GetKeyboardType( - int nTypeFlag); - -__declspec(dllimport) -int -__stdcall -ToAscii( - UINT uVirtKey, - UINT uScanCode, - const BYTE *lpKeyState, - LPWORD lpChar, - UINT uFlags); - - -__declspec(dllimport) -int -__stdcall -ToAsciiEx( - UINT uVirtKey, - UINT uScanCode, - const BYTE *lpKeyState, - LPWORD lpChar, - UINT uFlags, - HKL dwhkl); - - -__declspec(dllimport) -int -__stdcall -ToUnicode( - UINT wVirtKey, - UINT wScanCode, - const BYTE *lpKeyState, - LPWSTR pwszBuff, - int cchBuff, - UINT wFlags); - -__declspec(dllimport) -DWORD -__stdcall -OemKeyScan( - WORD wOemChar); - -__declspec(dllimport) -SHORT -__stdcall -VkKeyScanA( - CHAR ch); -__declspec(dllimport) -SHORT -__stdcall -VkKeyScanW( - WCHAR ch); - - - - - - - -__declspec(dllimport) -SHORT -__stdcall -VkKeyScanExA( - CHAR ch, - HKL dwhkl); -__declspec(dllimport) -SHORT -__stdcall -VkKeyScanExW( - WCHAR ch, - HKL dwhkl); -# 6050 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -void -__stdcall -keybd_event( - BYTE bVk, - BYTE bScan, - DWORD dwFlags, - ULONG_PTR dwExtraInfo); -# 6084 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -void -__stdcall -mouse_event( - DWORD dwFlags, - DWORD dx, - DWORD dy, - DWORD dwData, - ULONG_PTR dwExtraInfo); - - - - - - -typedef struct tagMOUSEINPUT { - LONG dx; - LONG dy; - DWORD mouseData; - DWORD dwFlags; - DWORD time; - ULONG_PTR dwExtraInfo; -} MOUSEINPUT, *PMOUSEINPUT, * LPMOUSEINPUT; - -typedef struct tagKEYBDINPUT { - WORD wVk; - WORD wScan; - DWORD dwFlags; - DWORD time; -# 6123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 - ULONG_PTR dwExtraInfo; -} KEYBDINPUT, *PKEYBDINPUT, * LPKEYBDINPUT; - - - - -typedef struct tagHARDWAREINPUT { - DWORD uMsg; - WORD wParamL; - WORD wParamH; -} HARDWAREINPUT, *PHARDWAREINPUT, * LPHARDWAREINPUT; - - - - - -typedef struct tagINPUT { - DWORD type; - - union - { - MOUSEINPUT mi; - KEYBDINPUT ki; - HARDWAREINPUT hi; - } ; -} INPUT, *PINPUT, * LPINPUT; - -__declspec(dllimport) -UINT -__stdcall -SendInput( - UINT cInputs, - LPINPUT pInputs, - int cbSize); -# 6175 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -struct HTOUCHINPUT__{int unused;}; typedef struct HTOUCHINPUT__ *HTOUCHINPUT; - -typedef struct tagTOUCHINPUT { - LONG x; - LONG y; - HANDLE hSource; - DWORD dwID; - DWORD dwFlags; - DWORD dwMask; - DWORD dwTime; - ULONG_PTR dwExtraInfo; - DWORD cxContact; - DWORD cyContact; -} TOUCHINPUT, *PTOUCHINPUT; -typedef TOUCHINPUT const * PCTOUCHINPUT; -# 6222 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetTouchInputInfo( - HTOUCHINPUT hTouchInput, - UINT cInputs, - PTOUCHINPUT pInputs, - int cbSize); - -__declspec(dllimport) -BOOL -__stdcall -CloseTouchInputHandle( - HTOUCHINPUT hTouchInput); -# 6251 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -RegisterTouchWindow( - HWND hwnd, - ULONG ulFlags); - -__declspec(dllimport) -BOOL -__stdcall -UnregisterTouchWindow( - HWND hwnd); - -__declspec(dllimport) -BOOL -__stdcall -IsTouchWindow( - HWND hwnd, - PULONG pulFlags); -# 6283 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -enum tagPOINTER_INPUT_TYPE { - PT_POINTER = 1, - PT_TOUCH = 2, - PT_PEN = 3, - PT_MOUSE = 4, - - PT_TOUCHPAD = 5, - -}; - - -typedef DWORD POINTER_INPUT_TYPE; - -typedef UINT32 POINTER_FLAGS; -# 6331 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef enum tagPOINTER_BUTTON_CHANGE_TYPE { - POINTER_CHANGE_NONE, - POINTER_CHANGE_FIRSTBUTTON_DOWN, - POINTER_CHANGE_FIRSTBUTTON_UP, - POINTER_CHANGE_SECONDBUTTON_DOWN, - POINTER_CHANGE_SECONDBUTTON_UP, - POINTER_CHANGE_THIRDBUTTON_DOWN, - POINTER_CHANGE_THIRDBUTTON_UP, - POINTER_CHANGE_FOURTHBUTTON_DOWN, - POINTER_CHANGE_FOURTHBUTTON_UP, - POINTER_CHANGE_FIFTHBUTTON_DOWN, - POINTER_CHANGE_FIFTHBUTTON_UP, -} POINTER_BUTTON_CHANGE_TYPE; - -typedef struct tagPOINTER_INFO { - POINTER_INPUT_TYPE pointerType; - UINT32 pointerId; - UINT32 frameId; - POINTER_FLAGS pointerFlags; - HANDLE sourceDevice; - HWND hwndTarget; - POINT ptPixelLocation; - POINT ptHimetricLocation; - POINT ptPixelLocationRaw; - POINT ptHimetricLocationRaw; - DWORD dwTime; - UINT32 historyCount; - INT32 InputData; - DWORD dwKeyStates; - UINT64 PerformanceCount; - POINTER_BUTTON_CHANGE_TYPE ButtonChangeType; -} POINTER_INFO; - - -typedef UINT32 TOUCH_FLAGS; - - -typedef UINT32 TOUCH_MASK; - - - - - -typedef struct tagPOINTER_TOUCH_INFO { - POINTER_INFO pointerInfo; - TOUCH_FLAGS touchFlags; - TOUCH_MASK touchMask; - RECT rcContact; - RECT rcContactRaw; - UINT32 orientation; - UINT32 pressure; -} POINTER_TOUCH_INFO; - -typedef UINT32 PEN_FLAGS; - - - - - -typedef UINT32 PEN_MASK; - - - - - - -typedef struct tagPOINTER_PEN_INFO { - POINTER_INFO pointerInfo; - PEN_FLAGS penFlags; - PEN_MASK penMask; - UINT32 pressure; - UINT32 rotation; - INT32 tiltX; - INT32 tiltY; -} POINTER_PEN_INFO; -# 6455 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef enum { - POINTER_FEEDBACK_DEFAULT = 1, - POINTER_FEEDBACK_INDIRECT = 2, - POINTER_FEEDBACK_NONE = 3, -} POINTER_FEEDBACK_MODE; - - - - -__declspec(dllimport) -BOOL -__stdcall -InitializeTouchInjection( - UINT32 maxCount, - DWORD dwMode); - -__declspec(dllimport) -BOOL -__stdcall -InjectTouchInput( - UINT32 count, - const POINTER_TOUCH_INFO *contacts); - -typedef struct tagUSAGE_PROPERTIES { - USHORT level; - USHORT page; - USHORT usage; - INT32 logicalMinimum; - INT32 logicalMaximum; - USHORT unit; - USHORT exponent; - BYTE count; - INT32 physicalMinimum; - INT32 physicalMaximum; -}USAGE_PROPERTIES, *PUSAGE_PROPERTIES; - -typedef struct tagPOINTER_TYPE_INFO { - POINTER_INPUT_TYPE type; - union{ - POINTER_TOUCH_INFO touchInfo; - POINTER_PEN_INFO penInfo; - } ; -}POINTER_TYPE_INFO, *PPOINTER_TYPE_INFO; - -typedef struct tagINPUT_INJECTION_VALUE { - USHORT page; - USHORT usage; - INT32 value; - USHORT index; -}INPUT_INJECTION_VALUE, *PINPUT_INJECTION_VALUE; - -__declspec(dllimport) -BOOL -__stdcall -GetPointerType( - UINT32 pointerId, - POINTER_INPUT_TYPE *pointerType); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerCursorId( - UINT32 pointerId, - UINT32 *cursorId); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerInfo( - UINT32 pointerId, - POINTER_INFO *pointerInfo); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerInfoHistory( - UINT32 pointerId, - UINT32 *entriesCount, - POINTER_INFO *pointerInfo); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerFrameInfo( - UINT32 pointerId, - UINT32 *pointerCount, - POINTER_INFO *pointerInfo); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerFrameInfoHistory( - UINT32 pointerId, - UINT32 *entriesCount, - UINT32 *pointerCount, - POINTER_INFO *pointerInfo); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerTouchInfo( - UINT32 pointerId, - POINTER_TOUCH_INFO *touchInfo); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerTouchInfoHistory( - UINT32 pointerId, - UINT32 *entriesCount, - POINTER_TOUCH_INFO *touchInfo); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerFrameTouchInfo( - UINT32 pointerId, - UINT32 *pointerCount, - POINTER_TOUCH_INFO *touchInfo); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerFrameTouchInfoHistory( - UINT32 pointerId, - UINT32 *entriesCount, - UINT32 *pointerCount, - POINTER_TOUCH_INFO *touchInfo); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerPenInfo( - UINT32 pointerId, - POINTER_PEN_INFO *penInfo); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerPenInfoHistory( - UINT32 pointerId, - UINT32 *entriesCount, - POINTER_PEN_INFO *penInfo); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerFramePenInfo( - UINT32 pointerId, - UINT32 *pointerCount, - POINTER_PEN_INFO *penInfo); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerFramePenInfoHistory( - UINT32 pointerId, - UINT32 *entriesCount, - UINT32 *pointerCount, - POINTER_PEN_INFO *penInfo); - - -__declspec(dllimport) -BOOL -__stdcall -SkipPointerFrameMessages( - UINT32 pointerId); - -__declspec(dllimport) -BOOL -__stdcall -RegisterPointerInputTarget( - HWND hwnd, - POINTER_INPUT_TYPE pointerType); - -__declspec(dllimport) -BOOL -__stdcall -UnregisterPointerInputTarget( - HWND hwnd, - POINTER_INPUT_TYPE pointerType); - -__declspec(dllimport) -BOOL -__stdcall -RegisterPointerInputTargetEx( - HWND hwnd, - POINTER_INPUT_TYPE pointerType, - BOOL fObserve); - -__declspec(dllimport) -BOOL -__stdcall -UnregisterPointerInputTargetEx( - HWND hwnd, - POINTER_INPUT_TYPE pointerType); - - -struct HSYNTHETICPOINTERDEVICE__{int unused;}; typedef struct HSYNTHETICPOINTERDEVICE__ *HSYNTHETICPOINTERDEVICE; -__declspec(dllimport) -HSYNTHETICPOINTERDEVICE -__stdcall -CreateSyntheticPointerDevice( - POINTER_INPUT_TYPE pointerType, - ULONG maxCount, - POINTER_FEEDBACK_MODE mode); - -__declspec(dllimport) -BOOL -__stdcall -InjectSyntheticPointerInput( - HSYNTHETICPOINTERDEVICE device, - const POINTER_TYPE_INFO* pointerInfo, - UINT32 count); - -__declspec(dllimport) -void -__stdcall -DestroySyntheticPointerDevice( - HSYNTHETICPOINTERDEVICE device); - - - -__declspec(dllimport) -BOOL -__stdcall -EnableMouseInPointer( - BOOL fEnable); - -__declspec(dllimport) -BOOL -__stdcall -IsMouseInPointerEnabled( - void); - - -__declspec(dllimport) -BOOL -__stdcall -EnableMouseInPointerForThread(void); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -RegisterTouchHitTestingWindow( - HWND hwnd, - ULONG value); - -typedef struct tagTOUCH_HIT_TESTING_PROXIMITY_EVALUATION -{ - UINT16 score; - POINT adjustedPoint; -} TOUCH_HIT_TESTING_PROXIMITY_EVALUATION, *PTOUCH_HIT_TESTING_PROXIMITY_EVALUATION; - - - - - -typedef struct tagTOUCH_HIT_TESTING_INPUT -{ - UINT32 pointerId; - POINT point; - RECT boundingBox; - RECT nonOccludedBoundingBox; - UINT32 orientation; -} TOUCH_HIT_TESTING_INPUT, *PTOUCH_HIT_TESTING_INPUT; - - - - - -__declspec(dllimport) -BOOL -__stdcall -EvaluateProximityToRect( - const RECT *controlBoundingBox, - const TOUCH_HIT_TESTING_INPUT *pHitTestingInput, - TOUCH_HIT_TESTING_PROXIMITY_EVALUATION *pProximityEval); - -__declspec(dllimport) -BOOL -__stdcall -EvaluateProximityToPolygon( - UINT32 numVertices, - const POINT *controlPolygon, - const TOUCH_HIT_TESTING_INPUT *pHitTestingInput, - TOUCH_HIT_TESTING_PROXIMITY_EVALUATION *pProximityEval); - -__declspec(dllimport) -LRESULT -__stdcall -PackTouchHitTestingProximityEvaluation( - const TOUCH_HIT_TESTING_INPUT *pHitTestingInput, - const TOUCH_HIT_TESTING_PROXIMITY_EVALUATION *pProximityEval); - - -typedef enum tagFEEDBACK_TYPE { - FEEDBACK_TOUCH_CONTACTVISUALIZATION = 1, - FEEDBACK_PEN_BARRELVISUALIZATION = 2, - FEEDBACK_PEN_TAP = 3, - FEEDBACK_PEN_DOUBLETAP = 4, - FEEDBACK_PEN_PRESSANDHOLD = 5, - FEEDBACK_PEN_RIGHTTAP = 6, - FEEDBACK_TOUCH_TAP = 7, - FEEDBACK_TOUCH_DOUBLETAP = 8, - FEEDBACK_TOUCH_PRESSANDHOLD = 9, - FEEDBACK_TOUCH_RIGHTTAP = 10, - FEEDBACK_GESTURE_PRESSANDTAP = 11, - FEEDBACK_MAX = 0xFFFFFFFF -} FEEDBACK_TYPE; - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetWindowFeedbackSetting( - HWND hwnd, - FEEDBACK_TYPE feedback, - DWORD dwFlags, - UINT32* pSize, - void* config); - -__declspec(dllimport) -BOOL -__stdcall -SetWindowFeedbackSetting( - HWND hwnd, - FEEDBACK_TYPE feedback, - DWORD dwFlags, - UINT32 size, - const void* configuration); -# 6809 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -#pragma warning(push) - -#pragma warning(disable: 4201) - -typedef struct tagINPUT_TRANSFORM { - union { - struct { - float _11, _12, _13, _14; - float _21, _22, _23, _24; - float _31, _32, _33, _34; - float _41, _42, _43, _44; - } ; - float m[4][4]; - } ; -} INPUT_TRANSFORM; - - -#pragma warning(pop) - - - -__declspec(dllimport) -BOOL -__stdcall -GetPointerInputTransform( - UINT32 pointerId, - UINT32 historyCount, - INPUT_TRANSFORM *inputTransform); -# 6853 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagLASTINPUTINFO { - UINT cbSize; - DWORD dwTime; -} LASTINPUTINFO, * PLASTINPUTINFO; - -__declspec(dllimport) -BOOL -__stdcall -GetLastInputInfo( - PLASTINPUTINFO plii); -# 6871 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -UINT -__stdcall -MapVirtualKeyA( - UINT uCode, - UINT uMapType); -__declspec(dllimport) -UINT -__stdcall -MapVirtualKeyW( - UINT uCode, - UINT uMapType); - - - - - - - -__declspec(dllimport) -UINT -__stdcall -MapVirtualKeyExA( - UINT uCode, - UINT uMapType, - HKL dwhkl); -__declspec(dllimport) -UINT -__stdcall -MapVirtualKeyExW( - UINT uCode, - UINT uMapType, - HKL dwhkl); -# 6925 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetInputState( - void); - -__declspec(dllimport) -DWORD -__stdcall -GetQueueStatus( - UINT flags); - - -__declspec(dllimport) -HWND -__stdcall -GetCapture( - void); - -__declspec(dllimport) -HWND -__stdcall -SetCapture( - HWND hWnd); - -__declspec(dllimport) -BOOL -__stdcall -ReleaseCapture( - void); - -__declspec(dllimport) -DWORD -__stdcall -MsgWaitForMultipleObjects( - DWORD nCount, - const HANDLE *pHandles, - BOOL fWaitAll, - DWORD dwMilliseconds, - DWORD dwWakeMask); - -__declspec(dllimport) -DWORD -__stdcall -MsgWaitForMultipleObjectsEx( - DWORD nCount, - const HANDLE *pHandles, - DWORD dwMilliseconds, - DWORD dwWakeMask, - DWORD dwFlags); -# 7053 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -UINT_PTR -__stdcall -SetTimer( - HWND hWnd, - UINT_PTR nIDEvent, - UINT uElapse, - TIMERPROC lpTimerFunc); -# 7080 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -UINT_PTR -__stdcall -SetCoalescableTimer( - HWND hWnd, - UINT_PTR nIDEvent, - UINT uElapse, - TIMERPROC lpTimerFunc, - ULONG uToleranceDelay); -# 7098 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -KillTimer( - HWND hWnd, - UINT_PTR uIDEvent); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -IsWindowUnicode( - HWND hWnd); - -__declspec(dllimport) -BOOL -__stdcall -EnableWindow( - HWND hWnd, - BOOL bEnable); - -__declspec(dllimport) -BOOL -__stdcall -IsWindowEnabled( - HWND hWnd); - -__declspec(dllimport) -HACCEL -__stdcall -LoadAcceleratorsA( - HINSTANCE hInstance, - LPCSTR lpTableName); -__declspec(dllimport) -HACCEL -__stdcall -LoadAcceleratorsW( - HINSTANCE hInstance, - LPCWSTR lpTableName); - - - - - - -__declspec(dllimport) -HACCEL -__stdcall -CreateAcceleratorTableA( - LPACCEL paccel, - int cAccel); -__declspec(dllimport) -HACCEL -__stdcall -CreateAcceleratorTableW( - LPACCEL paccel, - int cAccel); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -DestroyAcceleratorTable( - HACCEL hAccel); - -__declspec(dllimport) -int -__stdcall -CopyAcceleratorTableA( - HACCEL hAccelSrc, - LPACCEL lpAccelDst, - int cAccelEntries); -__declspec(dllimport) -int -__stdcall -CopyAcceleratorTableW( - HACCEL hAccelSrc, - LPACCEL lpAccelDst, - int cAccelEntries); -# 7194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -int -__stdcall -TranslateAcceleratorA( - HWND hWnd, - HACCEL hAccTable, - LPMSG lpMsg); -__declspec(dllimport) -int -__stdcall -TranslateAcceleratorW( - HWND hWnd, - HACCEL hAccTable, - LPMSG lpMsg); -# 7384 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -int -__stdcall -GetSystemMetrics( - int nIndex); - - - -__declspec(dllimport) -int -__stdcall -GetSystemMetricsForDpi( - int nIndex, - UINT dpi); -# 7411 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HMENU -__stdcall -LoadMenuA( - HINSTANCE hInstance, - LPCSTR lpMenuName); -__declspec(dllimport) -HMENU -__stdcall -LoadMenuW( - HINSTANCE hInstance, - LPCWSTR lpMenuName); - - - - - - -__declspec(dllimport) -HMENU -__stdcall -LoadMenuIndirectA( - const MENUTEMPLATEA *lpMenuTemplate); -__declspec(dllimport) -HMENU -__stdcall -LoadMenuIndirectW( - const MENUTEMPLATEW *lpMenuTemplate); - - - - - - -__declspec(dllimport) -HMENU -__stdcall -GetMenu( - HWND hWnd); - -__declspec(dllimport) -BOOL -__stdcall -SetMenu( - HWND hWnd, - HMENU hMenu); - -__declspec(dllimport) -BOOL -__stdcall -ChangeMenuA( - HMENU hMenu, - UINT cmd, - LPCSTR lpszNewItem, - UINT cmdInsert, - UINT flags); -__declspec(dllimport) -BOOL -__stdcall -ChangeMenuW( - HMENU hMenu, - UINT cmd, - LPCWSTR lpszNewItem, - UINT cmdInsert, - UINT flags); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -HiliteMenuItem( - HWND hWnd, - HMENU hMenu, - UINT uIDHiliteItem, - UINT uHilite); - -__declspec(dllimport) -int -__stdcall -GetMenuStringA( - HMENU hMenu, - UINT uIDItem, - LPSTR lpString, - int cchMax, - UINT flags); -__declspec(dllimport) -int -__stdcall -GetMenuStringW( - HMENU hMenu, - UINT uIDItem, - LPWSTR lpString, - int cchMax, - UINT flags); - - - - - - -__declspec(dllimport) -UINT -__stdcall -GetMenuState( - HMENU hMenu, - UINT uId, - UINT uFlags); - -__declspec(dllimport) -BOOL -__stdcall -DrawMenuBar( - HWND hWnd); - - - - - - - -__declspec(dllimport) -HMENU -__stdcall -GetSystemMenu( - HWND hWnd, - BOOL bRevert); - - -__declspec(dllimport) -HMENU -__stdcall -CreateMenu( - void); - -__declspec(dllimport) -HMENU -__stdcall -CreatePopupMenu( - void); - -__declspec(dllimport) -BOOL -__stdcall -DestroyMenu( - HMENU hMenu); - -__declspec(dllimport) -DWORD -__stdcall -CheckMenuItem( - HMENU hMenu, - UINT uIDCheckItem, - UINT uCheck); - -__declspec(dllimport) -BOOL -__stdcall -EnableMenuItem( - HMENU hMenu, - UINT uIDEnableItem, - UINT uEnable); - -__declspec(dllimport) -HMENU -__stdcall -GetSubMenu( - HMENU hMenu, - int nPos); - -__declspec(dllimport) -UINT -__stdcall -GetMenuItemID( - HMENU hMenu, - int nPos); - -__declspec(dllimport) -int -__stdcall -GetMenuItemCount( - HMENU hMenu); - -__declspec(dllimport) -BOOL -__stdcall -InsertMenuA( - HMENU hMenu, - UINT uPosition, - UINT uFlags, - UINT_PTR uIDNewItem, - LPCSTR lpNewItem); -__declspec(dllimport) -BOOL -__stdcall -InsertMenuW( - HMENU hMenu, - UINT uPosition, - UINT uFlags, - UINT_PTR uIDNewItem, - LPCWSTR lpNewItem); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -AppendMenuA( - HMENU hMenu, - UINT uFlags, - UINT_PTR uIDNewItem, - LPCSTR lpNewItem); -__declspec(dllimport) -BOOL -__stdcall -AppendMenuW( - HMENU hMenu, - UINT uFlags, - UINT_PTR uIDNewItem, - LPCWSTR lpNewItem); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -ModifyMenuA( - HMENU hMnu, - UINT uPosition, - UINT uFlags, - UINT_PTR uIDNewItem, - LPCSTR lpNewItem); -__declspec(dllimport) -BOOL -__stdcall -ModifyMenuW( - HMENU hMnu, - UINT uPosition, - UINT uFlags, - UINT_PTR uIDNewItem, - LPCWSTR lpNewItem); - - - - - - -__declspec(dllimport) -BOOL -__stdcall RemoveMenu( - HMENU hMenu, - UINT uPosition, - UINT uFlags); - -__declspec(dllimport) -BOOL -__stdcall -DeleteMenu( - HMENU hMenu, - UINT uPosition, - UINT uFlags); - -__declspec(dllimport) -BOOL -__stdcall -SetMenuItemBitmaps( - HMENU hMenu, - UINT uPosition, - UINT uFlags, - HBITMAP hBitmapUnchecked, - HBITMAP hBitmapChecked); - -__declspec(dllimport) -LONG -__stdcall -GetMenuCheckMarkDimensions( - void); - -__declspec(dllimport) -BOOL -__stdcall -TrackPopupMenu( - HMENU hMenu, - UINT uFlags, - int x, - int y, - int nReserved, - HWND hWnd, - const RECT *prcRect); -# 7717 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagTPMPARAMS -{ - UINT cbSize; - RECT rcExclude; -} TPMPARAMS; -typedef TPMPARAMS *LPTPMPARAMS; - -__declspec(dllimport) -BOOL -__stdcall -TrackPopupMenuEx( - HMENU hMenu, - UINT uFlags, - int x, - int y, - HWND hwnd, - LPTPMPARAMS lptpm); - - - -__declspec(dllimport) -BOOL -__stdcall -CalculatePopupWindowPosition( - const POINT *anchorPoint, - const SIZE *windowSize, - UINT flags, - RECT *excludeRect, - RECT *popupWindowPosition); -# 7765 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagMENUINFO -{ - DWORD cbSize; - DWORD fMask; - DWORD dwStyle; - UINT cyMax; - HBRUSH hbrBack; - DWORD dwContextHelpID; - ULONG_PTR dwMenuData; -} MENUINFO, *LPMENUINFO; -typedef MENUINFO const *LPCMENUINFO; - -__declspec(dllimport) -BOOL -__stdcall -GetMenuInfo( - HMENU, - LPMENUINFO); - -__declspec(dllimport) -BOOL -__stdcall -SetMenuInfo( - HMENU, - LPCMENUINFO); - -__declspec(dllimport) -BOOL -__stdcall -EndMenu( - void); - - - - - - - -typedef struct tagMENUGETOBJECTINFO -{ - DWORD dwFlags; - UINT uPos; - HMENU hmenu; - PVOID riid; - PVOID pvObj; -} MENUGETOBJECTINFO, * PMENUGETOBJECTINFO; -# 7853 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagMENUITEMINFOA -{ - UINT cbSize; - UINT fMask; - UINT fType; - UINT fState; - UINT wID; - HMENU hSubMenu; - HBITMAP hbmpChecked; - HBITMAP hbmpUnchecked; - ULONG_PTR dwItemData; - LPSTR dwTypeData; - UINT cch; - - HBITMAP hbmpItem; - -} MENUITEMINFOA, *LPMENUITEMINFOA; -typedef struct tagMENUITEMINFOW -{ - UINT cbSize; - UINT fMask; - UINT fType; - UINT fState; - UINT wID; - HMENU hSubMenu; - HBITMAP hbmpChecked; - HBITMAP hbmpUnchecked; - ULONG_PTR dwItemData; - LPWSTR dwTypeData; - UINT cch; - - HBITMAP hbmpItem; - -} MENUITEMINFOW, *LPMENUITEMINFOW; - - - - -typedef MENUITEMINFOA MENUITEMINFO; -typedef LPMENUITEMINFOA LPMENUITEMINFO; - -typedef MENUITEMINFOA const *LPCMENUITEMINFOA; -typedef MENUITEMINFOW const *LPCMENUITEMINFOW; - - - -typedef LPCMENUITEMINFOA LPCMENUITEMINFO; - - - -__declspec(dllimport) -BOOL -__stdcall -InsertMenuItemA( - HMENU hmenu, - UINT item, - BOOL fByPosition, - LPCMENUITEMINFOA lpmi); -__declspec(dllimport) -BOOL -__stdcall -InsertMenuItemW( - HMENU hmenu, - UINT item, - BOOL fByPosition, - LPCMENUITEMINFOW lpmi); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetMenuItemInfoA( - HMENU hmenu, - UINT item, - BOOL fByPosition, - LPMENUITEMINFOA lpmii); -__declspec(dllimport) -BOOL -__stdcall -GetMenuItemInfoW( - HMENU hmenu, - UINT item, - BOOL fByPosition, - LPMENUITEMINFOW lpmii); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetMenuItemInfoA( - HMENU hmenu, - UINT item, - BOOL fByPositon, - LPCMENUITEMINFOA lpmii); -__declspec(dllimport) -BOOL -__stdcall -SetMenuItemInfoW( - HMENU hmenu, - UINT item, - BOOL fByPositon, - LPCMENUITEMINFOW lpmii); -# 7973 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -UINT -__stdcall -GetMenuDefaultItem( - HMENU hMenu, - UINT fByPos, - UINT gmdiFlags); - -__declspec(dllimport) -BOOL -__stdcall -SetMenuDefaultItem( - HMENU hMenu, - UINT uItem, - UINT fByPos); - -__declspec(dllimport) -BOOL -__stdcall -GetMenuItemRect( - HWND hWnd, - HMENU hMenu, - UINT uItem, - LPRECT lprcItem); - -__declspec(dllimport) -int -__stdcall -MenuItemFromPoint( - HWND hWnd, - HMENU hMenu, - POINT ptScreen); -# 8058 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagDROPSTRUCT -{ - HWND hwndSource; - HWND hwndSink; - DWORD wFmt; - ULONG_PTR dwData; - POINT ptDrop; - DWORD dwControlData; -} DROPSTRUCT, *PDROPSTRUCT, *LPDROPSTRUCT; -# 8084 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -DWORD -__stdcall -DragObject( - HWND hwndParent, - HWND hwndFrom, - UINT fmt, - ULONG_PTR data, - HCURSOR hcur); - -__declspec(dllimport) -BOOL -__stdcall -DragDetect( - HWND hwnd, - POINT pt); -# 8109 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DrawIcon( - HDC hDC, - int X, - int Y, - HICON hIcon); -# 8160 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagDRAWTEXTPARAMS -{ - UINT cbSize; - int iTabLength; - int iLeftMargin; - int iRightMargin; - UINT uiLengthDrawn; -} DRAWTEXTPARAMS, *LPDRAWTEXTPARAMS; -# 8186 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) - -int -__stdcall -DrawTextA( - HDC hdc, - - - LPCSTR lpchText, - int cchText, - LPRECT lprc, - UINT format); -__declspec(dllimport) - -int -__stdcall -DrawTextW( - HDC hdc, - - - LPCWSTR lpchText, - int cchText, - LPRECT lprc, - UINT format); -# 8244 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) - -int -__stdcall -DrawTextExA( - HDC hdc, - - - - LPSTR lpchText, - int cchText, - LPRECT lprc, - UINT format, - LPDRAWTEXTPARAMS lpdtp); -__declspec(dllimport) - -int -__stdcall -DrawTextExW( - HDC hdc, - - - - LPWSTR lpchText, - int cchText, - LPRECT lprc, - UINT format, - LPDRAWTEXTPARAMS lpdtp); -# 8287 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GrayStringA( - HDC hDC, - HBRUSH hBrush, - GRAYSTRINGPROC lpOutputFunc, - LPARAM lpData, - int nCount, - int X, - int Y, - int nWidth, - int nHeight); -__declspec(dllimport) -BOOL -__stdcall -GrayStringW( - HDC hDC, - HBRUSH hBrush, - GRAYSTRINGPROC lpOutputFunc, - LPARAM lpData, - int nCount, - int X, - int Y, - int nWidth, - int nHeight); -# 8345 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DrawStateA( - HDC hdc, - HBRUSH hbrFore, - DRAWSTATEPROC qfnCallBack, - LPARAM lData, - WPARAM wData, - int x, - int y, - int cx, - int cy, - UINT uFlags); -__declspec(dllimport) -BOOL -__stdcall -DrawStateW( - HDC hdc, - HBRUSH hbrFore, - DRAWSTATEPROC qfnCallBack, - LPARAM lData, - WPARAM wData, - int x, - int y, - int cx, - int cy, - UINT uFlags); -# 8387 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -LONG -__stdcall -TabbedTextOutA( - HDC hdc, - int x, - int y, - LPCSTR lpString, - int chCount, - int nTabPositions, - const INT *lpnTabStopPositions, - int nTabOrigin); -__declspec(dllimport) -LONG -__stdcall -TabbedTextOutW( - HDC hdc, - int x, - int y, - LPCWSTR lpString, - int chCount, - int nTabPositions, - const INT *lpnTabStopPositions, - int nTabOrigin); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetTabbedTextExtentA( - HDC hdc, - LPCSTR lpString, - int chCount, - int nTabPositions, - const INT *lpnTabStopPositions); -__declspec(dllimport) -DWORD -__stdcall -GetTabbedTextExtentW( - HDC hdc, - LPCWSTR lpString, - int chCount, - int nTabPositions, - const INT *lpnTabStopPositions); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -UpdateWindow( - HWND hWnd); - -__declspec(dllimport) -HWND -__stdcall -SetActiveWindow( - HWND hWnd); - - -__declspec(dllimport) -HWND -__stdcall -GetForegroundWindow( - void); - - -__declspec(dllimport) -BOOL -__stdcall -PaintDesktop( - HDC hdc); - -__declspec(dllimport) -void -__stdcall -SwitchToThisWindow( - HWND hwnd, - BOOL fUnknown); - - - -__declspec(dllimport) -BOOL -__stdcall -SetForegroundWindow( - HWND hWnd); - - -__declspec(dllimport) -BOOL -__stdcall -AllowSetForegroundWindow( - DWORD dwProcessId); - - - -__declspec(dllimport) -BOOL -__stdcall -LockSetForegroundWindow( - UINT uLockCode); - - - - - - -__declspec(dllimport) -HWND -__stdcall -WindowFromDC( - HDC hDC); - -__declspec(dllimport) -HDC -__stdcall -GetDC( - HWND hWnd); - -__declspec(dllimport) -HDC -__stdcall -GetDCEx( - HWND hWnd, - HRGN hrgnClip, - DWORD flags); -# 8545 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HDC -__stdcall -GetWindowDC( - HWND hWnd); - -__declspec(dllimport) -int -__stdcall -ReleaseDC( - HWND hWnd, - HDC hDC); - -__declspec(dllimport) -HDC -__stdcall -BeginPaint( - HWND hWnd, - LPPAINTSTRUCT lpPaint); - -__declspec(dllimport) -BOOL -__stdcall -EndPaint( - HWND hWnd, - const PAINTSTRUCT *lpPaint); - -__declspec(dllimport) -BOOL -__stdcall -GetUpdateRect( - HWND hWnd, - LPRECT lpRect, - BOOL bErase); - -__declspec(dllimport) -int -__stdcall -GetUpdateRgn( - HWND hWnd, - HRGN hRgn, - BOOL bErase); - -__declspec(dllimport) -int -__stdcall -SetWindowRgn( - HWND hWnd, - HRGN hRgn, - BOOL bRedraw); -# 8603 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -int -__stdcall -GetWindowRgn( - HWND hWnd, - HRGN hRgn); - - - -__declspec(dllimport) -int -__stdcall -GetWindowRgnBox( - HWND hWnd, - LPRECT lprc); - - - -__declspec(dllimport) -int -__stdcall -ExcludeUpdateRgn( - HDC hDC, - HWND hWnd); - -__declspec(dllimport) -BOOL -__stdcall -InvalidateRect( - HWND hWnd, - const RECT *lpRect, - BOOL bErase); - -__declspec(dllimport) -BOOL -__stdcall -ValidateRect( - HWND hWnd, - const RECT *lpRect); - -__declspec(dllimport) -BOOL -__stdcall -InvalidateRgn( - HWND hWnd, - HRGN hRgn, - BOOL bErase); - -__declspec(dllimport) -BOOL -__stdcall -ValidateRgn( - HWND hWnd, - HRGN hRgn); - - -__declspec(dllimport) -BOOL -__stdcall -RedrawWindow( - HWND hWnd, - const RECT *lprcUpdate, - HRGN hrgnUpdate, - UINT flags); -# 8699 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -LockWindowUpdate( - HWND hWndLock); - -__declspec(dllimport) -BOOL -__stdcall -ScrollWindow( - HWND hWnd, - int XAmount, - int YAmount, - const RECT *lpRect, - const RECT *lpClipRect); - -__declspec(dllimport) -BOOL -__stdcall -ScrollDC( - HDC hDC, - int dx, - int dy, - const RECT *lprcScroll, - const RECT *lprcClip, - HRGN hrgnUpdate, - LPRECT lprcUpdate); - -__declspec(dllimport) -int -__stdcall -ScrollWindowEx( - HWND hWnd, - int dx, - int dy, - const RECT *prcScroll, - const RECT *prcClip, - HRGN hrgnUpdate, - LPRECT prcUpdate, - UINT flags); -# 8755 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -int -__stdcall -SetScrollPos( - HWND hWnd, - int nBar, - int nPos, - BOOL bRedraw); - -__declspec(dllimport) -int -__stdcall -GetScrollPos( - HWND hWnd, - int nBar); - -__declspec(dllimport) -BOOL -__stdcall -SetScrollRange( - HWND hWnd, - int nBar, - int nMinPos, - int nMaxPos, - BOOL bRedraw); - -__declspec(dllimport) -BOOL -__stdcall -GetScrollRange( - HWND hWnd, - int nBar, - LPINT lpMinPos, - LPINT lpMaxPos); - -__declspec(dllimport) -BOOL -__stdcall -ShowScrollBar( - HWND hWnd, - int wBar, - BOOL bShow); - -__declspec(dllimport) -BOOL -__stdcall -EnableScrollBar( - HWND hWnd, - UINT wSBflags, - UINT wArrows); -# 8826 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetPropA( - HWND hWnd, - LPCSTR lpString, - HANDLE hData); -__declspec(dllimport) -BOOL -__stdcall -SetPropW( - HWND hWnd, - LPCWSTR lpString, - HANDLE hData); - - - - - - -__declspec(dllimport) -HANDLE -__stdcall -GetPropA( - HWND hWnd, - LPCSTR lpString); -__declspec(dllimport) -HANDLE -__stdcall -GetPropW( - HWND hWnd, - LPCWSTR lpString); - - - - - - -__declspec(dllimport) -HANDLE -__stdcall -RemovePropA( - HWND hWnd, - LPCSTR lpString); -__declspec(dllimport) -HANDLE -__stdcall -RemovePropW( - HWND hWnd, - LPCWSTR lpString); - - - - - - -__declspec(dllimport) -int -__stdcall -EnumPropsExA( - HWND hWnd, - PROPENUMPROCEXA lpEnumFunc, - LPARAM lParam); -__declspec(dllimport) -int -__stdcall -EnumPropsExW( - HWND hWnd, - PROPENUMPROCEXW lpEnumFunc, - LPARAM lParam); - - - - - - -__declspec(dllimport) -int -__stdcall -EnumPropsA( - HWND hWnd, - PROPENUMPROCA lpEnumFunc); -__declspec(dllimport) -int -__stdcall -EnumPropsW( - HWND hWnd, - PROPENUMPROCW lpEnumFunc); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetWindowTextA( - HWND hWnd, - LPCSTR lpString); -__declspec(dllimport) -BOOL -__stdcall -SetWindowTextW( - HWND hWnd, - LPCWSTR lpString); - - - - - - - -__declspec(dllimport) -int -__stdcall -GetWindowTextA( - HWND hWnd, - LPSTR lpString, - int nMaxCount); - -__declspec(dllimport) -int -__stdcall -GetWindowTextW( - HWND hWnd, - LPWSTR lpString, - int nMaxCount); - - - - - - -__declspec(dllimport) -int -__stdcall -GetWindowTextLengthA( - HWND hWnd); -__declspec(dllimport) -int -__stdcall -GetWindowTextLengthW( - HWND hWnd); -# 8982 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetClientRect( - HWND hWnd, - LPRECT lpRect); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetWindowRect( - HWND hWnd, - LPRECT lpRect); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -AdjustWindowRect( - LPRECT lpRect, - DWORD dwStyle, - BOOL bMenu); - -__declspec(dllimport) -BOOL -__stdcall -AdjustWindowRectEx( - LPRECT lpRect, - DWORD dwStyle, - BOOL bMenu, - DWORD dwExStyle); -# 9032 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -AdjustWindowRectExForDpi( - LPRECT lpRect, - DWORD dwStyle, - BOOL bMenu, - DWORD dwExStyle, - UINT dpi); -# 9054 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagHELPINFO -{ - UINT cbSize; - int iContextType; - int iCtrlId; - HANDLE hItemHandle; - DWORD_PTR dwContextId; - POINT MousePos; -} HELPINFO, *LPHELPINFO; - -__declspec(dllimport) -BOOL -__stdcall -SetWindowContextHelpId( - HWND, - DWORD); - -__declspec(dllimport) -DWORD -__stdcall -GetWindowContextHelpId( - HWND); - -__declspec(dllimport) -BOOL -__stdcall -SetMenuContextHelpId( - HMENU, - DWORD); - -__declspec(dllimport) -DWORD -__stdcall -GetMenuContextHelpId( - HMENU); -# 9169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -int -__stdcall -MessageBoxA( - HWND hWnd, - LPCSTR lpText, - LPCSTR lpCaption, - UINT uType); -__declspec(dllimport) -int -__stdcall -MessageBoxW( - HWND hWnd, - LPCWSTR lpText, - LPCWSTR lpCaption, - UINT uType); -# 9215 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -int -__stdcall -MessageBoxExA( - HWND hWnd, - LPCSTR lpText, - LPCSTR lpCaption, - UINT uType, - WORD wLanguageId); -__declspec(dllimport) -int -__stdcall -MessageBoxExW( - HWND hWnd, - LPCWSTR lpText, - LPCWSTR lpCaption, - UINT uType, - WORD wLanguageId); -# 9241 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef void (__stdcall *MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo); - -typedef struct tagMSGBOXPARAMSA -{ - UINT cbSize; - HWND hwndOwner; - HINSTANCE hInstance; - LPCSTR lpszText; - LPCSTR lpszCaption; - DWORD dwStyle; - LPCSTR lpszIcon; - DWORD_PTR dwContextHelpId; - MSGBOXCALLBACK lpfnMsgBoxCallback; - DWORD dwLanguageId; -} MSGBOXPARAMSA, *PMSGBOXPARAMSA, *LPMSGBOXPARAMSA; -typedef struct tagMSGBOXPARAMSW -{ - UINT cbSize; - HWND hwndOwner; - HINSTANCE hInstance; - LPCWSTR lpszText; - LPCWSTR lpszCaption; - DWORD dwStyle; - LPCWSTR lpszIcon; - DWORD_PTR dwContextHelpId; - MSGBOXCALLBACK lpfnMsgBoxCallback; - DWORD dwLanguageId; -} MSGBOXPARAMSW, *PMSGBOXPARAMSW, *LPMSGBOXPARAMSW; - - - - - -typedef MSGBOXPARAMSA MSGBOXPARAMS; -typedef PMSGBOXPARAMSA PMSGBOXPARAMS; -typedef LPMSGBOXPARAMSA LPMSGBOXPARAMS; - - -__declspec(dllimport) -int -__stdcall -MessageBoxIndirectA( - const MSGBOXPARAMSA * lpmbp); -__declspec(dllimport) -int -__stdcall -MessageBoxIndirectW( - const MSGBOXPARAMSW * lpmbp); -# 9304 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -MessageBeep( - UINT uType); -# 9325 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -int -__stdcall -ShowCursor( - BOOL bShow); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetCursorPos( - int X, - int Y); - - -__declspec(dllimport) -BOOL -__stdcall -SetPhysicalCursorPos( - int X, - int Y); -# 9359 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HCURSOR -__stdcall -SetCursor( - HCURSOR hCursor); - -__declspec(dllimport) -BOOL -__stdcall -GetCursorPos( - LPPOINT lpPoint); -# 9378 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetPhysicalCursorPos( - LPPOINT lpPoint); - - - -__declspec(dllimport) -BOOL -__stdcall -GetClipCursor( - LPRECT lpRect); - -__declspec(dllimport) -HCURSOR -__stdcall -GetCursor( - void); - -__declspec(dllimport) -BOOL -__stdcall -CreateCaret( - HWND hWnd, - HBITMAP hBitmap, - int nWidth, - int nHeight); - -__declspec(dllimport) -UINT -__stdcall -GetCaretBlinkTime( - void); - -__declspec(dllimport) -BOOL -__stdcall -SetCaretBlinkTime( - UINT uMSeconds); - -__declspec(dllimport) -BOOL -__stdcall -DestroyCaret( - void); - -__declspec(dllimport) -BOOL -__stdcall -HideCaret( - HWND hWnd); - -__declspec(dllimport) -BOOL -__stdcall -ShowCaret( - HWND hWnd); - -__declspec(dllimport) -BOOL -__stdcall -SetCaretPos( - int X, - int Y); - -__declspec(dllimport) -BOOL -__stdcall -GetCaretPos( - LPPOINT lpPoint); - -__declspec(dllimport) -BOOL -__stdcall -ClientToScreen( - HWND hWnd, - LPPOINT lpPoint); - -__declspec(dllimport) -BOOL -__stdcall -ScreenToClient( - HWND hWnd, - LPPOINT lpPoint); - - -__declspec(dllimport) -BOOL -__stdcall -LogicalToPhysicalPoint( - HWND hWnd, - LPPOINT lpPoint); - -__declspec(dllimport) -BOOL -__stdcall -PhysicalToLogicalPoint( - HWND hWnd, - LPPOINT lpPoint); - - - - -__declspec(dllimport) -BOOL -__stdcall -LogicalToPhysicalPointForPerMonitorDPI( - HWND hWnd, - LPPOINT lpPoint); - -__declspec(dllimport) -BOOL -__stdcall -PhysicalToLogicalPointForPerMonitorDPI( - HWND hWnd, - LPPOINT lpPoint); - - - -__declspec(dllimport) -int -__stdcall -MapWindowPoints( - HWND hWndFrom, - HWND hWndTo, - LPPOINT lpPoints, - UINT cPoints); - -__declspec(dllimport) -HWND -__stdcall -WindowFromPoint( - POINT Point); - - -__declspec(dllimport) -HWND -__stdcall -WindowFromPhysicalPoint( - POINT Point); - - -__declspec(dllimport) -HWND -__stdcall -ChildWindowFromPoint( - HWND hWndParent, - POINT Point); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -ClipCursor( - const RECT *lpRect); -# 9550 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HWND -__stdcall -ChildWindowFromPointEx( - HWND hwnd, - POINT pt, - UINT flags); -# 9629 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetSysColor( - int nIndex); - - -__declspec(dllimport) -HBRUSH -__stdcall -GetSysColorBrush( - int nIndex); - - - - -__declspec(dllimport) -BOOL -__stdcall -SetSysColors( - int cElements, - const INT * lpaElements, - const COLORREF * lpaRgbValues); -# 9661 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DrawFocusRect( - HDC hDC, - const RECT * lprc); - -__declspec(dllimport) -int -__stdcall -FillRect( - HDC hDC, - const RECT *lprc, - HBRUSH hbr); - -__declspec(dllimport) -int -__stdcall -FrameRect( - HDC hDC, - const RECT *lprc, - HBRUSH hbr); - -__declspec(dllimport) -BOOL -__stdcall -InvertRect( - HDC hDC, - const RECT *lprc); - -__declspec(dllimport) -BOOL -__stdcall -SetRect( - LPRECT lprc, - int xLeft, - int yTop, - int xRight, - int yBottom); - -__declspec(dllimport) -BOOL -__stdcall -SetRectEmpty( - LPRECT lprc); - -__declspec(dllimport) -BOOL -__stdcall -CopyRect( - LPRECT lprcDst, - const RECT *lprcSrc); - -__declspec(dllimport) -BOOL -__stdcall -InflateRect( - LPRECT lprc, - int dx, - int dy); - -__declspec(dllimport) -BOOL -__stdcall -IntersectRect( - LPRECT lprcDst, - const RECT *lprcSrc1, - const RECT *lprcSrc2); - -__declspec(dllimport) -BOOL -__stdcall -UnionRect( - LPRECT lprcDst, - const RECT *lprcSrc1, - const RECT *lprcSrc2); - -__declspec(dllimport) -BOOL -__stdcall -SubtractRect( - LPRECT lprcDst, - const RECT *lprcSrc1, - const RECT *lprcSrc2); - -__declspec(dllimport) -BOOL -__stdcall -OffsetRect( - LPRECT lprc, - int dx, - int dy); - -__declspec(dllimport) -BOOL -__stdcall -IsRectEmpty( - const RECT *lprc); - -__declspec(dllimport) -BOOL -__stdcall -EqualRect( - const RECT *lprc1, - const RECT *lprc2); - -__declspec(dllimport) -BOOL -__stdcall -PtInRect( - const RECT *lprc, - POINT pt); - - - -__declspec(dllimport) -WORD -__stdcall -GetWindowWord( - HWND hWnd, - int nIndex); - -__declspec(dllimport) -WORD -__stdcall -SetWindowWord( - HWND hWnd, - int nIndex, - WORD wNewWord); -# 9801 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -LONG -__stdcall -GetWindowLongA( - HWND hWnd, - int nIndex); -__declspec(dllimport) -LONG -__stdcall -GetWindowLongW( - HWND hWnd, - int nIndex); - - - - - - -__declspec(dllimport) -LONG -__stdcall -SetWindowLongA( - HWND hWnd, - int nIndex, - LONG dwNewLong); -__declspec(dllimport) -LONG -__stdcall -SetWindowLongW( - HWND hWnd, - int nIndex, - LONG dwNewLong); -# 9841 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -LONG_PTR -__stdcall -GetWindowLongPtrA( - HWND hWnd, - int nIndex); -__declspec(dllimport) -LONG_PTR -__stdcall -GetWindowLongPtrW( - HWND hWnd, - int nIndex); - - - - - - -__declspec(dllimport) -LONG_PTR -__stdcall -SetWindowLongPtrA( - HWND hWnd, - int nIndex, - LONG_PTR dwNewLong); -__declspec(dllimport) -LONG_PTR -__stdcall -SetWindowLongPtrW( - HWND hWnd, - int nIndex, - LONG_PTR dwNewLong); -# 9909 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -WORD -__stdcall -GetClassWord( - HWND hWnd, - int nIndex); - -__declspec(dllimport) -WORD -__stdcall -SetClassWord( - HWND hWnd, - int nIndex, - WORD wNewWord); - -__declspec(dllimport) -DWORD -__stdcall -GetClassLongA( - HWND hWnd, - int nIndex); -__declspec(dllimport) -DWORD -__stdcall -GetClassLongW( - HWND hWnd, - int nIndex); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -SetClassLongA( - HWND hWnd, - int nIndex, - LONG dwNewLong); -__declspec(dllimport) -DWORD -__stdcall -SetClassLongW( - HWND hWnd, - int nIndex, - LONG dwNewLong); -# 9964 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -ULONG_PTR -__stdcall -GetClassLongPtrA( - HWND hWnd, - int nIndex); -__declspec(dllimport) -ULONG_PTR -__stdcall -GetClassLongPtrW( - HWND hWnd, - int nIndex); - - - - - - -__declspec(dllimport) -ULONG_PTR -__stdcall -SetClassLongPtrA( - HWND hWnd, - int nIndex, - LONG_PTR dwNewLong); -__declspec(dllimport) -ULONG_PTR -__stdcall -SetClassLongPtrW( - HWND hWnd, - int nIndex, - LONG_PTR dwNewLong); -# 10025 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetProcessDefaultLayout( - DWORD *pdwDefaultLayout); - -__declspec(dllimport) -BOOL -__stdcall -SetProcessDefaultLayout( - DWORD dwDefaultLayout); - - -__declspec(dllimport) -HWND -__stdcall -GetDesktopWindow( - void); - - -__declspec(dllimport) -HWND -__stdcall -GetParent( - HWND hWnd); - -__declspec(dllimport) -HWND -__stdcall -SetParent( - HWND hWndChild, - HWND hWndNewParent); - -__declspec(dllimport) -BOOL -__stdcall -EnumChildWindows( - HWND hWndParent, - WNDENUMPROC lpEnumFunc, - LPARAM lParam); - - -__declspec(dllimport) -HWND -__stdcall -FindWindowA( - LPCSTR lpClassName, - LPCSTR lpWindowName); -__declspec(dllimport) -HWND -__stdcall -FindWindowW( - LPCWSTR lpClassName, - LPCWSTR lpWindowName); - - - - - - - -__declspec(dllimport) -HWND -__stdcall -FindWindowExA( - HWND hWndParent, - HWND hWndChildAfter, - LPCSTR lpszClass, - LPCSTR lpszWindow); -__declspec(dllimport) -HWND -__stdcall -FindWindowExW( - HWND hWndParent, - HWND hWndChildAfter, - LPCWSTR lpszClass, - LPCWSTR lpszWindow); - - - - - - -__declspec(dllimport) -HWND -__stdcall -GetShellWindow( - void); - - - - -__declspec(dllimport) -BOOL -__stdcall -RegisterShellHookWindow( - HWND hwnd); - -__declspec(dllimport) -BOOL -__stdcall -DeregisterShellHookWindow( - HWND hwnd); - -__declspec(dllimport) -BOOL -__stdcall -EnumWindows( - WNDENUMPROC lpEnumFunc, - LPARAM lParam); - -__declspec(dllimport) -BOOL -__stdcall -EnumThreadWindows( - DWORD dwThreadId, - WNDENUMPROC lpfn, - LPARAM lParam); -# 10153 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -int -__stdcall -GetClassNameA( - HWND hWnd, - LPSTR lpClassName, - int nMaxCount - ); -__declspec(dllimport) -int -__stdcall -GetClassNameW( - HWND hWnd, - LPWSTR lpClassName, - int nMaxCount - ); -# 10203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HWND -__stdcall -GetTopWindow( - HWND hWnd); - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetWindowThreadProcessId( - HWND hWnd, - LPDWORD lpdwProcessId); - - - -__declspec(dllimport) -BOOL -__stdcall -IsGUIThread( - BOOL bConvert); - - - - - - - -__declspec(dllimport) -HWND -__stdcall -GetLastActivePopup( - HWND hWnd); -# 10256 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HWND -__stdcall -GetWindow( - HWND hWnd, - UINT uCmd); - - - - - - -__declspec(dllimport) -HHOOK -__stdcall -SetWindowsHookA( - int nFilterType, - HOOKPROC pfnFilterProc); -__declspec(dllimport) -HHOOK -__stdcall -SetWindowsHookW( - int nFilterType, - HOOKPROC pfnFilterProc); -# 10308 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -UnhookWindowsHook( - int nCode, - HOOKPROC pfnFilterProc); - -__declspec(dllimport) -HHOOK -__stdcall -SetWindowsHookExA( - int idHook, - HOOKPROC lpfn, - HINSTANCE hmod, - DWORD dwThreadId); -__declspec(dllimport) -HHOOK -__stdcall -SetWindowsHookExW( - int idHook, - HOOKPROC lpfn, - HINSTANCE hmod, - DWORD dwThreadId); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -UnhookWindowsHookEx( - HHOOK hhk); - -__declspec(dllimport) -LRESULT -__stdcall -CallNextHookEx( - HHOOK hhk, - int nCode, - WPARAM wParam, - LPARAM lParam); -# 10448 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CheckMenuRadioItem( - HMENU hmenu, - UINT first, - UINT last, - UINT check, - UINT flags); - - - - - -typedef struct { - WORD versionNumber; - WORD offset; -} MENUITEMTEMPLATEHEADER, *PMENUITEMTEMPLATEHEADER; - -typedef struct { - WORD mtOption; - WORD mtID; - WCHAR mtString[1]; -} MENUITEMTEMPLATE, *PMENUITEMTEMPLATE; -# 10528 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HBITMAP -__stdcall -LoadBitmapA( - HINSTANCE hInstance, - LPCSTR lpBitmapName); -__declspec(dllimport) -HBITMAP -__stdcall -LoadBitmapW( - HINSTANCE hInstance, - LPCWSTR lpBitmapName); -# 10552 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HCURSOR -__stdcall -LoadCursorA( - HINSTANCE hInstance, - LPCSTR lpCursorName); -__declspec(dllimport) -HCURSOR -__stdcall -LoadCursorW( - HINSTANCE hInstance, - LPCWSTR lpCursorName); -# 10576 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HCURSOR -__stdcall -LoadCursorFromFileA( - LPCSTR lpFileName); -__declspec(dllimport) -HCURSOR -__stdcall -LoadCursorFromFileW( - LPCWSTR lpFileName); -# 10598 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HCURSOR -__stdcall -CreateCursor( - HINSTANCE hInst, - int xHotSpot, - int yHotSpot, - int nWidth, - int nHeight, - const void *pvANDPlane, - const void *pvXORPlane); - -__declspec(dllimport) -BOOL -__stdcall -DestroyCursor( - HCURSOR hCursor); -# 10667 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetSystemCursor( - HCURSOR hcur, - DWORD id); - -typedef struct _ICONINFO { - BOOL fIcon; - DWORD xHotspot; - DWORD yHotspot; - HBITMAP hbmMask; - HBITMAP hbmColor; -} ICONINFO; -typedef ICONINFO *PICONINFO; - -__declspec(dllimport) -HICON -__stdcall -LoadIconA( - HINSTANCE hInstance, - LPCSTR lpIconName); -__declspec(dllimport) -HICON -__stdcall -LoadIconW( - HINSTANCE hInstance, - LPCWSTR lpIconName); - - - - - - - -__declspec(dllimport) -UINT -__stdcall -PrivateExtractIconsA( - LPCSTR szFileName, - int nIconIndex, - int cxIcon, - int cyIcon, - HICON *phicon, - UINT *piconid, - UINT nIcons, - UINT flags); -__declspec(dllimport) -UINT -__stdcall -PrivateExtractIconsW( - LPCWSTR szFileName, - int nIconIndex, - int cxIcon, - int cyIcon, - HICON *phicon, - UINT *piconid, - UINT nIcons, - UINT flags); - - - - - - -__declspec(dllimport) -HICON -__stdcall -CreateIcon( - HINSTANCE hInstance, - int nWidth, - int nHeight, - BYTE cPlanes, - BYTE cBitsPixel, - const BYTE *lpbANDbits, - const BYTE *lpbXORbits); - -__declspec(dllimport) -BOOL -__stdcall -DestroyIcon( - HICON hIcon); - -__declspec(dllimport) -int -__stdcall -LookupIconIdFromDirectory( - PBYTE presbits, - BOOL fIcon); - - -__declspec(dllimport) -int -__stdcall -LookupIconIdFromDirectoryEx( - PBYTE presbits, - BOOL fIcon, - int cxDesired, - int cyDesired, - UINT Flags); - - -__declspec(dllimport) -HICON -__stdcall -CreateIconFromResource( - PBYTE presbits, - DWORD dwResSize, - BOOL fIcon, - DWORD dwVer); - - -__declspec(dllimport) -HICON -__stdcall -CreateIconFromResourceEx( - PBYTE presbits, - DWORD dwResSize, - BOOL fIcon, - DWORD dwVer, - int cxDesired, - int cyDesired, - UINT Flags); - - -typedef struct tagCURSORSHAPE -{ - int xHotSpot; - int yHotSpot; - int cx; - int cy; - int cbWidth; - BYTE Planes; - BYTE BitsPixel; -} CURSORSHAPE, *LPCURSORSHAPE; -# 10813 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -UINT -__stdcall -SetThreadCursorCreationScaling( - UINT cursorDpi); -# 10845 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HANDLE -__stdcall -LoadImageA( - HINSTANCE hInst, - LPCSTR name, - UINT type, - int cx, - int cy, - UINT fuLoad); -__declspec(dllimport) -HANDLE -__stdcall -LoadImageW( - HINSTANCE hInst, - LPCWSTR name, - UINT type, - int cx, - int cy, - UINT fuLoad); - - - - - - -__declspec(dllimport) -HANDLE -__stdcall -CopyImage( - HANDLE h, - UINT type, - int cx, - int cy, - UINT flags); -# 10890 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) BOOL __stdcall DrawIconEx( - HDC hdc, - int xLeft, - int yTop, - HICON hIcon, - int cxWidth, - int cyWidth, - UINT istepIfAniCur, - HBRUSH hbrFlickerFreeDraw, - UINT diFlags); -# 10909 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HICON -__stdcall -CreateIconIndirect( - PICONINFO piconinfo); - -__declspec(dllimport) -HICON -__stdcall -CopyIcon( - HICON hIcon); - -__declspec(dllimport) -BOOL -__stdcall -GetIconInfo( - HICON hIcon, - PICONINFO piconinfo); - - -typedef struct _ICONINFOEXA { - DWORD cbSize; - BOOL fIcon; - DWORD xHotspot; - DWORD yHotspot; - HBITMAP hbmMask; - HBITMAP hbmColor; - WORD wResID; - CHAR szModName[260]; - CHAR szResName[260]; -} ICONINFOEXA, *PICONINFOEXA; -typedef struct _ICONINFOEXW { - DWORD cbSize; - BOOL fIcon; - DWORD xHotspot; - DWORD yHotspot; - HBITMAP hbmMask; - HBITMAP hbmColor; - WORD wResID; - WCHAR szModName[260]; - WCHAR szResName[260]; -} ICONINFOEXW, *PICONINFOEXW; - - - - -typedef ICONINFOEXA ICONINFOEX; -typedef PICONINFOEXA PICONINFOEX; - - -__declspec(dllimport) -BOOL -__stdcall -GetIconInfoExA( - HICON hicon, - PICONINFOEXA piconinfo); -__declspec(dllimport) -BOOL -__stdcall -GetIconInfoExW( - HICON hicon, - PICONINFOEXW piconinfo); -# 11308 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef enum { - EDIT_CONTROL_FEATURE_ENTERPRISE_DATA_PROTECTION_PASTE_SUPPORT = 0, - EDIT_CONTROL_FEATURE_PASTE_NOTIFICATIONS = 1, -} EDIT_CONTROL_FEATURE; -# 11492 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsDialogMessageA( - HWND hDlg, - LPMSG lpMsg); -__declspec(dllimport) -BOOL -__stdcall -IsDialogMessageW( - HWND hDlg, - LPMSG lpMsg); -# 11512 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -MapDialogRect( - HWND hDlg, - LPRECT lpRect); - -__declspec(dllimport) -int -__stdcall -DlgDirListA( - HWND hDlg, - LPSTR lpPathSpec, - int nIDListBox, - int nIDStaticPath, - UINT uFileType); -__declspec(dllimport) -int -__stdcall -DlgDirListW( - HWND hDlg, - LPWSTR lpPathSpec, - int nIDListBox, - int nIDStaticPath, - UINT uFileType); -# 11563 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -DlgDirSelectExA( - HWND hwndDlg, - LPSTR lpString, - int chCount, - int idListBox); -__declspec(dllimport) -BOOL -__stdcall -DlgDirSelectExW( - HWND hwndDlg, - LPWSTR lpString, - int chCount, - int idListBox); - - - - - - -__declspec(dllimport) -int -__stdcall -DlgDirListComboBoxA( - HWND hDlg, - LPSTR lpPathSpec, - int nIDComboBox, - int nIDStaticPath, - UINT uFiletype); -__declspec(dllimport) -int -__stdcall -DlgDirListComboBoxW( - HWND hDlg, - LPWSTR lpPathSpec, - int nIDComboBox, - int nIDStaticPath, - UINT uFiletype); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -DlgDirSelectComboBoxExA( - HWND hwndDlg, - LPSTR lpString, - int cchOut, - int idComboBox); -__declspec(dllimport) -BOOL -__stdcall -DlgDirSelectComboBoxExW( - HWND hwndDlg, - LPWSTR lpString, - int cchOut, - int idComboBox); -# 11979 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagSCROLLINFO -{ - UINT cbSize; - UINT fMask; - int nMin; - int nMax; - UINT nPage; - int nPos; - int nTrackPos; -} SCROLLINFO, *LPSCROLLINFO; -typedef SCROLLINFO const *LPCSCROLLINFO; - -__declspec(dllimport) -int -__stdcall -SetScrollInfo( - HWND hwnd, - int nBar, - LPCSCROLLINFO lpsi, - BOOL redraw); - -__declspec(dllimport) -BOOL -__stdcall -GetScrollInfo( - HWND hwnd, - int nBar, - LPSCROLLINFO lpsi); -# 12036 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagMDICREATESTRUCTA { - LPCSTR szClass; - LPCSTR szTitle; - HANDLE hOwner; - int x; - int y; - int cx; - int cy; - DWORD style; - LPARAM lParam; -} MDICREATESTRUCTA, *LPMDICREATESTRUCTA; -typedef struct tagMDICREATESTRUCTW { - LPCWSTR szClass; - LPCWSTR szTitle; - HANDLE hOwner; - int x; - int y; - int cx; - int cy; - DWORD style; - LPARAM lParam; -} MDICREATESTRUCTW, *LPMDICREATESTRUCTW; - - - - -typedef MDICREATESTRUCTA MDICREATESTRUCT; -typedef LPMDICREATESTRUCTA LPMDICREATESTRUCT; - - -typedef struct tagCLIENTCREATESTRUCT { - HANDLE hWindowMenu; - UINT idFirstChild; -} CLIENTCREATESTRUCT, *LPCLIENTCREATESTRUCT; - -__declspec(dllimport) -LRESULT -__stdcall -DefFrameProcA( - HWND hWnd, - HWND hWndMDIClient, - UINT uMsg, - WPARAM wParam, - LPARAM lParam); -__declspec(dllimport) -LRESULT -__stdcall -DefFrameProcW( - HWND hWnd, - HWND hWndMDIClient, - UINT uMsg, - WPARAM wParam, - LPARAM lParam); - - - - - - -__declspec(dllimport) - -LRESULT -__stdcall - - - - -DefMDIChildProcA( - HWND hWnd, - UINT uMsg, - WPARAM wParam, - LPARAM lParam); -__declspec(dllimport) - -LRESULT -__stdcall - - - - -DefMDIChildProcW( - HWND hWnd, - UINT uMsg, - WPARAM wParam, - LPARAM lParam); -# 12129 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -TranslateMDISysAccel( - HWND hWndClient, - LPMSG lpMsg); - - - -__declspec(dllimport) -UINT -__stdcall -ArrangeIconicWindows( - HWND hWnd); - -__declspec(dllimport) -HWND -__stdcall -CreateMDIWindowA( - LPCSTR lpClassName, - LPCSTR lpWindowName, - DWORD dwStyle, - int X, - int Y, - int nWidth, - int nHeight, - HWND hWndParent, - HINSTANCE hInstance, - LPARAM lParam); -__declspec(dllimport) -HWND -__stdcall -CreateMDIWindowW( - LPCWSTR lpClassName, - LPCWSTR lpWindowName, - DWORD dwStyle, - int X, - int Y, - int nWidth, - int nHeight, - HWND hWndParent, - HINSTANCE hInstance, - LPARAM lParam); - - - - - - - -__declspec(dllimport) -WORD -__stdcall -TileWindows( - HWND hwndParent, - UINT wHow, - const RECT * lpRect, - UINT cKids, - const HWND * lpKids); - -__declspec(dllimport) -WORD -__stdcall CascadeWindows( - HWND hwndParent, - UINT wHow, - const RECT * lpRect, - UINT cKids, - const HWND * lpKids); -# 12214 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef DWORD HELPPOLY; -typedef struct tagMULTIKEYHELPA { - - DWORD mkSize; - - - - CHAR mkKeylist; - CHAR szKeyphrase[1]; -} MULTIKEYHELPA, *PMULTIKEYHELPA, *LPMULTIKEYHELPA; -typedef struct tagMULTIKEYHELPW { - - DWORD mkSize; - - - - WCHAR mkKeylist; - WCHAR szKeyphrase[1]; -} MULTIKEYHELPW, *PMULTIKEYHELPW, *LPMULTIKEYHELPW; - - - - - -typedef MULTIKEYHELPA MULTIKEYHELP; -typedef PMULTIKEYHELPA PMULTIKEYHELP; -typedef LPMULTIKEYHELPA LPMULTIKEYHELP; - - -typedef struct tagHELPWININFOA { - int wStructSize; - int x; - int y; - int dx; - int dy; - int wMax; - CHAR rgchMember[2]; -} HELPWININFOA, *PHELPWININFOA, *LPHELPWININFOA; -typedef struct tagHELPWININFOW { - int wStructSize; - int x; - int y; - int dx; - int dy; - int wMax; - WCHAR rgchMember[2]; -} HELPWININFOW, *PHELPWININFOW, *LPHELPWININFOW; - - - - - -typedef HELPWININFOA HELPWININFO; -typedef PHELPWININFOA PHELPWININFO; -typedef LPHELPWININFOA LPHELPWININFO; -# 12311 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -WinHelpA( - HWND hWndMain, - LPCSTR lpszHelp, - UINT uCommand, - ULONG_PTR dwData); -__declspec(dllimport) -BOOL -__stdcall -WinHelpW( - HWND hWndMain, - LPCWSTR lpszHelp, - UINT uCommand, - ULONG_PTR dwData); -# 12356 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetGuiResources( - HANDLE hProcess, - DWORD uiFlags); -# 12553 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagTouchPredictionParameters -{ - UINT cbSize; - UINT dwLatency; - UINT dwSampleTime; - UINT bUseHWTimeStamp; -} TOUCHPREDICTIONPARAMETERS, *PTOUCHPREDICTIONPARAMETERS; -# 12767 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef enum tagHANDEDNESS { - HANDEDNESS_LEFT = 0, - HANDEDNESS_RIGHT -} HANDEDNESS, *PHANDEDNESS; -# 12790 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagNONCLIENTMETRICSA -{ - UINT cbSize; - int iBorderWidth; - int iScrollWidth; - int iScrollHeight; - int iCaptionWidth; - int iCaptionHeight; - LOGFONTA lfCaptionFont; - int iSmCaptionWidth; - int iSmCaptionHeight; - LOGFONTA lfSmCaptionFont; - int iMenuWidth; - int iMenuHeight; - LOGFONTA lfMenuFont; - LOGFONTA lfStatusFont; - LOGFONTA lfMessageFont; - - int iPaddedBorderWidth; - -} NONCLIENTMETRICSA, *PNONCLIENTMETRICSA, * LPNONCLIENTMETRICSA; -typedef struct tagNONCLIENTMETRICSW -{ - UINT cbSize; - int iBorderWidth; - int iScrollWidth; - int iScrollHeight; - int iCaptionWidth; - int iCaptionHeight; - LOGFONTW lfCaptionFont; - int iSmCaptionWidth; - int iSmCaptionHeight; - LOGFONTW lfSmCaptionFont; - int iMenuWidth; - int iMenuHeight; - LOGFONTW lfMenuFont; - LOGFONTW lfStatusFont; - LOGFONTW lfMessageFont; - - int iPaddedBorderWidth; - -} NONCLIENTMETRICSW, *PNONCLIENTMETRICSW, * LPNONCLIENTMETRICSW; - - - - - -typedef NONCLIENTMETRICSA NONCLIENTMETRICS; -typedef PNONCLIENTMETRICSA PNONCLIENTMETRICS; -typedef LPNONCLIENTMETRICSA LPNONCLIENTMETRICS; -# 12865 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagMINIMIZEDMETRICS -{ - UINT cbSize; - int iWidth; - int iHorzGap; - int iVertGap; - int iArrange; -} MINIMIZEDMETRICS, *PMINIMIZEDMETRICS, *LPMINIMIZEDMETRICS; - - - -typedef struct tagICONMETRICSA -{ - UINT cbSize; - int iHorzSpacing; - int iVertSpacing; - int iTitleWrap; - LOGFONTA lfFont; -} ICONMETRICSA, *PICONMETRICSA, *LPICONMETRICSA; -typedef struct tagICONMETRICSW -{ - UINT cbSize; - int iHorzSpacing; - int iVertSpacing; - int iTitleWrap; - LOGFONTW lfFont; -} ICONMETRICSW, *PICONMETRICSW, *LPICONMETRICSW; - - - - - -typedef ICONMETRICSA ICONMETRICS; -typedef PICONMETRICSA PICONMETRICS; -typedef LPICONMETRICSA LPICONMETRICS; - - - - -typedef struct tagANIMATIONINFO -{ - UINT cbSize; - int iMinAnimate; -} ANIMATIONINFO, *LPANIMATIONINFO; - -typedef struct tagSERIALKEYSA -{ - UINT cbSize; - DWORD dwFlags; - LPSTR lpszActivePort; - LPSTR lpszPort; - UINT iBaudRate; - UINT iPortState; - UINT iActive; -} SERIALKEYSA, *LPSERIALKEYSA; -typedef struct tagSERIALKEYSW -{ - UINT cbSize; - DWORD dwFlags; - LPWSTR lpszActivePort; - LPWSTR lpszPort; - UINT iBaudRate; - UINT iPortState; - UINT iActive; -} SERIALKEYSW, *LPSERIALKEYSW; - - - - -typedef SERIALKEYSA SERIALKEYS; -typedef LPSERIALKEYSA LPSERIALKEYS; -# 12944 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagHIGHCONTRASTA -{ - UINT cbSize; - DWORD dwFlags; - LPSTR lpszDefaultScheme; -} HIGHCONTRASTA, *LPHIGHCONTRASTA; -typedef struct tagHIGHCONTRASTW -{ - UINT cbSize; - DWORD dwFlags; - LPWSTR lpszDefaultScheme; -} HIGHCONTRASTW, *LPHIGHCONTRASTW; - - - - -typedef HIGHCONTRASTA HIGHCONTRAST; -typedef LPHIGHCONTRASTA LPHIGHCONTRAST; -# 12994 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\tvout.h" 1 3 -# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\tvout.h" 3 -typedef struct _VIDEOPARAMETERS { - GUID Guid; - ULONG dwOffset; - ULONG dwCommand; - ULONG dwFlags; - ULONG dwMode; - ULONG dwTVStandard; - ULONG dwAvailableModes; - ULONG dwAvailableTVStandard; - ULONG dwFlickerFilter; - ULONG dwOverScanX; - ULONG dwOverScanY; - ULONG dwMaxUnscaledX; - ULONG dwMaxUnscaledY; - ULONG dwPositionX; - ULONG dwPositionY; - ULONG dwBrightness; - ULONG dwContrast; - ULONG dwCPType; - ULONG dwCPCommand; - ULONG dwCPStandard; - ULONG dwCPKey; - ULONG bCP_APSTriggerBits; - UCHAR bOEMCopyProtection[256]; -} VIDEOPARAMETERS, *PVIDEOPARAMETERS, *LPVIDEOPARAMETERS; -# 12995 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 2 3 -# 13014 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -LONG -__stdcall -ChangeDisplaySettingsA( - DEVMODEA* lpDevMode, - DWORD dwFlags); -__declspec(dllimport) -LONG -__stdcall -ChangeDisplaySettingsW( - DEVMODEW* lpDevMode, - DWORD dwFlags); - - - - - - -__declspec(dllimport) -LONG -__stdcall -ChangeDisplaySettingsExA( - LPCSTR lpszDeviceName, - DEVMODEA* lpDevMode, - HWND hwnd, - DWORD dwflags, - LPVOID lParam); -__declspec(dllimport) -LONG -__stdcall -ChangeDisplaySettingsExW( - LPCWSTR lpszDeviceName, - DEVMODEW* lpDevMode, - HWND hwnd, - DWORD dwflags, - LPVOID lParam); -# 13060 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumDisplaySettingsA( - LPCSTR lpszDeviceName, - DWORD iModeNum, - DEVMODEA* lpDevMode); -__declspec(dllimport) -BOOL -__stdcall -EnumDisplaySettingsW( - LPCWSTR lpszDeviceName, - DWORD iModeNum, - DEVMODEW* lpDevMode); -# 13082 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumDisplaySettingsExA( - LPCSTR lpszDeviceName, - DWORD iModeNum, - DEVMODEA* lpDevMode, - DWORD dwFlags); -__declspec(dllimport) -BOOL -__stdcall -EnumDisplaySettingsExW( - LPCWSTR lpszDeviceName, - DWORD iModeNum, - DEVMODEW* lpDevMode, - DWORD dwFlags); -# 13108 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumDisplayDevicesA( - LPCSTR lpDevice, - DWORD iDevNum, - PDISPLAY_DEVICEA lpDisplayDevice, - DWORD dwFlags); -__declspec(dllimport) -BOOL -__stdcall -EnumDisplayDevicesW( - LPCWSTR lpDevice, - DWORD iDevNum, - PDISPLAY_DEVICEW lpDisplayDevice, - DWORD dwFlags); -# 13137 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -LONG -__stdcall -GetDisplayConfigBufferSizes( - UINT32 flags, - UINT32* numPathArrayElements, - UINT32* numModeInfoArrayElements); - -__declspec(dllimport) -LONG -__stdcall -SetDisplayConfig( - UINT32 numPathArrayElements, - DISPLAYCONFIG_PATH_INFO* pathArray, - UINT32 numModeInfoArrayElements, - DISPLAYCONFIG_MODE_INFO* modeInfoArray, - UINT32 flags); - -__declspec(dllimport) - LONG -__stdcall -QueryDisplayConfig( - UINT32 flags, - UINT32* numPathArrayElements, - DISPLAYCONFIG_PATH_INFO* pathArray, - UINT32* numModeInfoArrayElements, - DISPLAYCONFIG_MODE_INFO* modeInfoArray, - - - DISPLAYCONFIG_TOPOLOGY_ID* currentTopologyId); - -__declspec(dllimport) -LONG -__stdcall -DisplayConfigGetDeviceInfo( - DISPLAYCONFIG_DEVICE_INFO_HEADER* requestPacket); - -__declspec(dllimport) -LONG -__stdcall -DisplayConfigSetDeviceInfo( - DISPLAYCONFIG_DEVICE_INFO_HEADER* setPacket); -# 13187 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -SystemParametersInfoA( - UINT uiAction, - UINT uiParam, - PVOID pvParam, - UINT fWinIni); -__declspec(dllimport) - -BOOL -__stdcall -SystemParametersInfoW( - UINT uiAction, - UINT uiParam, - PVOID pvParam, - UINT fWinIni); -# 13213 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -SystemParametersInfoForDpi( - UINT uiAction, - UINT uiParam, - PVOID pvParam, - UINT fWinIni, - UINT dpi); -# 13237 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagFILTERKEYS -{ - UINT cbSize; - DWORD dwFlags; - DWORD iWaitMSec; - DWORD iDelayMSec; - DWORD iRepeatMSec; - DWORD iBounceMSec; -} FILTERKEYS, *LPFILTERKEYS; -# 13264 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagSTICKYKEYS -{ - UINT cbSize; - DWORD dwFlags; -} STICKYKEYS, *LPSTICKYKEYS; -# 13307 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagMOUSEKEYS -{ - UINT cbSize; - DWORD dwFlags; - DWORD iMaxSpeed; - DWORD iTimeToMaxSpeed; - DWORD iCtrlSpeed; - DWORD dwReserved1; - DWORD dwReserved2; -} MOUSEKEYS, *LPMOUSEKEYS; -# 13343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagACCESSTIMEOUT -{ - UINT cbSize; - DWORD dwFlags; - DWORD iTimeOutMSec; -} ACCESSTIMEOUT, *LPACCESSTIMEOUT; -# 13379 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagSOUNDSENTRYA -{ - UINT cbSize; - DWORD dwFlags; - DWORD iFSTextEffect; - DWORD iFSTextEffectMSec; - DWORD iFSTextEffectColorBits; - DWORD iFSGrafEffect; - DWORD iFSGrafEffectMSec; - DWORD iFSGrafEffectColor; - DWORD iWindowsEffect; - DWORD iWindowsEffectMSec; - LPSTR lpszWindowsEffectDLL; - DWORD iWindowsEffectOrdinal; -} SOUNDSENTRYA, *LPSOUNDSENTRYA; -typedef struct tagSOUNDSENTRYW -{ - UINT cbSize; - DWORD dwFlags; - DWORD iFSTextEffect; - DWORD iFSTextEffectMSec; - DWORD iFSTextEffectColorBits; - DWORD iFSGrafEffect; - DWORD iFSGrafEffectMSec; - DWORD iFSGrafEffectColor; - DWORD iWindowsEffect; - DWORD iWindowsEffectMSec; - LPWSTR lpszWindowsEffectDLL; - DWORD iWindowsEffectOrdinal; -} SOUNDSENTRYW, *LPSOUNDSENTRYW; - - - - -typedef SOUNDSENTRYA SOUNDSENTRY; -typedef LPSOUNDSENTRYA LPSOUNDSENTRY; -# 13430 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SoundSentry(void); - - - - - - -typedef struct tagTOGGLEKEYS -{ - UINT cbSize; - DWORD dwFlags; -} TOGGLEKEYS, *LPTOGGLEKEYS; -# 13463 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagAUDIODESCRIPTION { - UINT cbSize; - BOOL Enabled; - LCID Locale; -} AUDIODESCRIPTION, *LPAUDIODESCRIPTION; - - - - - - - -__declspec(dllimport) -void -__stdcall -SetDebugErrorLevel( - DWORD dwLevel); -# 13495 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -void -__stdcall -SetLastErrorEx( - DWORD dwErrCode, - DWORD dwType); - -__declspec(dllimport) -int -__stdcall -InternalGetWindowText( - HWND hWnd, - LPWSTR pString, - int cchMaxCount); -# 13521 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CancelShutdown( - void); -# 13544 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HMONITOR -__stdcall -MonitorFromPoint( - POINT pt, - DWORD dwFlags); - -__declspec(dllimport) -HMONITOR -__stdcall -MonitorFromRect( - LPCRECT lprc, - DWORD dwFlags); - -__declspec(dllimport) -HMONITOR -__stdcall -MonitorFromWindow( - HWND hwnd, - DWORD dwFlags); -# 13577 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagMONITORINFO -{ - DWORD cbSize; - RECT rcMonitor; - RECT rcWork; - DWORD dwFlags; -} MONITORINFO, *LPMONITORINFO; -# 13602 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagMONITORINFOEXA -{ - MONITORINFO ; - CHAR szDevice[32]; -} MONITORINFOEXA, *LPMONITORINFOEXA; -typedef struct tagMONITORINFOEXW -{ - MONITORINFO ; - WCHAR szDevice[32]; -} MONITORINFOEXW, *LPMONITORINFOEXW; - - - - -typedef MONITORINFOEXA MONITORINFOEX; -typedef LPMONITORINFOEXA LPMONITORINFOEX; - - - -__declspec(dllimport) -BOOL -__stdcall -GetMonitorInfoA( - HMONITOR hMonitor, - LPMONITORINFO lpmi); -__declspec(dllimport) -BOOL -__stdcall -GetMonitorInfoW( - HMONITOR hMonitor, - LPMONITORINFO lpmi); - - - - - - -typedef BOOL (__stdcall* MONITORENUMPROC)(HMONITOR, HDC, LPRECT, LPARAM); - -__declspec(dllimport) -BOOL -__stdcall -EnumDisplayMonitors( - HDC hdc, - LPCRECT lprcClip, - MONITORENUMPROC lpfnEnum, - LPARAM dwData); -# 13662 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -void -__stdcall -NotifyWinEvent( - DWORD event, - HWND hwnd, - LONG idObject, - LONG idChild); - -typedef void (__stdcall* WINEVENTPROC)( - HWINEVENTHOOK hWinEventHook, - DWORD event, - HWND hwnd, - LONG idObject, - LONG idChild, - DWORD idEventThread, - DWORD dwmsEventTime); - -__declspec(dllimport) -HWINEVENTHOOK -__stdcall -SetWinEventHook( - DWORD eventMin, - DWORD eventMax, - HMODULE hmodWinEventProc, - WINEVENTPROC pfnWinEventProc, - DWORD idProcess, - DWORD idThread, - DWORD dwFlags); - - -__declspec(dllimport) -BOOL -__stdcall -IsWinEventHookInstalled( - DWORD event); -# 13714 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -UnhookWinEvent( - HWINEVENTHOOK hWinEventHook); -# 14332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagGUITHREADINFO -{ - DWORD cbSize; - DWORD flags; - HWND hwndActive; - HWND hwndFocus; - HWND hwndCapture; - HWND hwndMenuOwner; - HWND hwndMoveSize; - HWND hwndCaret; - RECT rcCaret; -} GUITHREADINFO, *PGUITHREADINFO, * LPGUITHREADINFO; -# 14364 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetGUIThreadInfo( - DWORD idThread, - PGUITHREADINFO pgui); - -__declspec(dllimport) -BOOL -__stdcall -BlockInput( - BOOL fBlockIt); - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetProcessDPIAware( - void); - -__declspec(dllimport) -BOOL -__stdcall -IsProcessDPIAware( - void); - - - - -__declspec(dllimport) -DPI_AWARENESS_CONTEXT -__stdcall -SetThreadDpiAwarenessContext( - DPI_AWARENESS_CONTEXT dpiContext); - -__declspec(dllimport) -DPI_AWARENESS_CONTEXT -__stdcall -GetThreadDpiAwarenessContext( - void); - -__declspec(dllimport) -DPI_AWARENESS_CONTEXT -__stdcall -GetWindowDpiAwarenessContext( - HWND hwnd); - -__declspec(dllimport) -DPI_AWARENESS -__stdcall -GetAwarenessFromDpiAwarenessContext( - DPI_AWARENESS_CONTEXT value); - -__declspec(dllimport) -UINT -__stdcall -GetDpiFromDpiAwarenessContext( - DPI_AWARENESS_CONTEXT value); - -__declspec(dllimport) -BOOL -__stdcall -AreDpiAwarenessContextsEqual( - DPI_AWARENESS_CONTEXT dpiContextA, - DPI_AWARENESS_CONTEXT dpiContextB); - -__declspec(dllimport) -BOOL -__stdcall -IsValidDpiAwarenessContext( - DPI_AWARENESS_CONTEXT value); - -__declspec(dllimport) -UINT -__stdcall -GetDpiForWindow( - HWND hwnd); - -__declspec(dllimport) -UINT -__stdcall -GetDpiForSystem( - void); - -__declspec(dllimport) -UINT -__stdcall -GetSystemDpiForProcess( - HANDLE hProcess); - -__declspec(dllimport) -BOOL -__stdcall -EnableNonClientDpiScaling( - HWND hwnd); - -__declspec(dllimport) -BOOL -__stdcall -InheritWindowMonitor( - HWND hwnd, - HWND hwndInherit); - - - - -__declspec(dllimport) -BOOL -__stdcall -SetProcessDpiAwarenessContext( - DPI_AWARENESS_CONTEXT value); - - - - - - -__declspec(dllimport) -DPI_AWARENESS_CONTEXT -__stdcall -GetDpiAwarenessContextForProcess( - HANDLE hProcess); - - - - - -__declspec(dllimport) -DPI_HOSTING_BEHAVIOR -__stdcall -SetThreadDpiHostingBehavior( - DPI_HOSTING_BEHAVIOR value); - -__declspec(dllimport) -DPI_HOSTING_BEHAVIOR -__stdcall -GetThreadDpiHostingBehavior(void); - -__declspec(dllimport) -DPI_HOSTING_BEHAVIOR -__stdcall -GetWindowDpiHostingBehavior( - HWND hwnd); - - - - -__declspec(dllimport) -UINT -__stdcall -GetWindowModuleFileNameA( - HWND hwnd, - LPSTR pszFileName, - UINT cchFileNameMax); -__declspec(dllimport) -UINT -__stdcall -GetWindowModuleFileNameW( - HWND hwnd, - LPWSTR pszFileName, - UINT cchFileNameMax); -# 14581 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagCURSORINFO -{ - DWORD cbSize; - DWORD flags; - HCURSOR hCursor; - POINT ptScreenPos; -} CURSORINFO, *PCURSORINFO, *LPCURSORINFO; - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetCursorInfo( - PCURSORINFO pci); -# 14609 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagWINDOWINFO -{ - DWORD cbSize; - RECT rcWindow; - RECT rcClient; - DWORD dwStyle; - DWORD dwExStyle; - DWORD dwWindowStatus; - UINT cxWindowBorders; - UINT cyWindowBorders; - ATOM atomWindowType; - WORD wCreatorVersion; -} WINDOWINFO, *PWINDOWINFO, *LPWINDOWINFO; - - - -__declspec(dllimport) -BOOL -__stdcall -GetWindowInfo( - HWND hwnd, - PWINDOWINFO pwi); - - - - -typedef struct tagTITLEBARINFO -{ - DWORD cbSize; - RECT rcTitleBar; - DWORD rgstate[5 + 1]; -} TITLEBARINFO, *PTITLEBARINFO, *LPTITLEBARINFO; - -__declspec(dllimport) -BOOL -__stdcall -GetTitleBarInfo( - HWND hwnd, - PTITLEBARINFO pti); - - -typedef struct tagTITLEBARINFOEX -{ - DWORD cbSize; - RECT rcTitleBar; - DWORD rgstate[5 + 1]; - RECT rgrect[5 + 1]; -} TITLEBARINFOEX, *PTITLEBARINFOEX, *LPTITLEBARINFOEX; - - - - - -typedef struct tagMENUBARINFO -{ - DWORD cbSize; - RECT rcBar; - HMENU hMenu; - HWND hwndMenu; - BOOL fBarFocused:1; - BOOL fFocused:1; - BOOL fUnused:30; -} MENUBARINFO, *PMENUBARINFO, *LPMENUBARINFO; - -__declspec(dllimport) -BOOL -__stdcall -GetMenuBarInfo( - HWND hwnd, - LONG idObject, - LONG idItem, - PMENUBARINFO pmbi); - - - - -typedef struct tagSCROLLBARINFO -{ - DWORD cbSize; - RECT rcScrollBar; - int dxyLineButton; - int xyThumbTop; - int xyThumbBottom; - int reserved; - DWORD rgstate[5 + 1]; -} SCROLLBARINFO, *PSCROLLBARINFO, *LPSCROLLBARINFO; - -__declspec(dllimport) -BOOL -__stdcall -GetScrollBarInfo( - HWND hwnd, - LONG idObject, - PSCROLLBARINFO psbi); - - - - -typedef struct tagCOMBOBOXINFO -{ - DWORD cbSize; - RECT rcItem; - RECT rcButton; - DWORD stateButton; - HWND hwndCombo; - HWND hwndItem; - HWND hwndList; -} COMBOBOXINFO, *PCOMBOBOXINFO, *LPCOMBOBOXINFO; - -__declspec(dllimport) -BOOL -__stdcall -GetComboBoxInfo( - HWND hwndCombo, - PCOMBOBOXINFO pcbi); -# 14738 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HWND -__stdcall -GetAncestor( - HWND hwnd, - UINT gaFlags); -# 14752 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -HWND -__stdcall -RealChildWindowFromPoint( - HWND hwndParent, - POINT ptParentClientCoords); - - - - - - -__declspec(dllimport) -UINT -__stdcall -RealGetWindowClassA( - HWND hwnd, - LPSTR ptszClassName, - UINT cchClassNameMax); - - - - -__declspec(dllimport) -UINT -__stdcall -RealGetWindowClassW( - HWND hwnd, - LPWSTR ptszClassName, - UINT cchClassNameMax); -# 14791 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagALTTABINFO -{ - DWORD cbSize; - int cItems; - int cColumns; - int cRows; - int iColFocus; - int iRowFocus; - int cxItem; - int cyItem; - POINT ptStart; -} ALTTABINFO, *PALTTABINFO, *LPALTTABINFO; - -__declspec(dllimport) -BOOL -__stdcall -GetAltTabInfoA( - HWND hwnd, - int iItem, - PALTTABINFO pati, - LPSTR pszItemText, - UINT cchItemText); -__declspec(dllimport) -BOOL -__stdcall -GetAltTabInfoW( - HWND hwnd, - int iItem, - PALTTABINFO pati, - LPWSTR pszItemText, - UINT cchItemText); -# 14832 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetListBoxInfo( - HWND hwnd); -# 14849 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -LockWorkStation( - void); - - - - -__declspec(dllimport) -BOOL -__stdcall -UserHandleGrantAccess( - HANDLE hUserHandle, - HANDLE hJob, - BOOL bGrant); -# 14880 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -struct HRAWINPUT__{int unused;}; typedef struct HRAWINPUT__ *HRAWINPUT; -# 14913 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagRAWINPUTHEADER { - DWORD dwType; - DWORD dwSize; - HANDLE hDevice; - WPARAM wParam; -} RAWINPUTHEADER, *PRAWINPUTHEADER, *LPRAWINPUTHEADER; -# 14936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -#pragma warning(push) - -#pragma warning(disable: 4201) - - - - -typedef struct tagRAWMOUSE { - - - - USHORT usFlags; - - - - - union { - ULONG ulButtons; - struct { - USHORT usButtonFlags; - USHORT usButtonData; - } ; - } ; - - - - - - ULONG ulRawButtons; - - - - - LONG lLastX; - - - - - LONG lLastY; - - - - - ULONG ulExtraInformation; - -} RAWMOUSE, *PRAWMOUSE, *LPRAWMOUSE; - - -#pragma warning(pop) -# 15039 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagRAWKEYBOARD { - - - - USHORT MakeCode; - - - - - - USHORT Flags; - - USHORT Reserved; - - - - - USHORT VKey; - UINT Message; - - - - - ULONG ExtraInformation; - - -} RAWKEYBOARD, *PRAWKEYBOARD, *LPRAWKEYBOARD; -# 15092 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagRAWHID { - DWORD dwSizeHid; - DWORD dwCount; - BYTE bRawData[1]; -} RAWHID, *PRAWHID, *LPRAWHID; -# 15108 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagRAWINPUT { - RAWINPUTHEADER header; - union { - RAWMOUSE mouse; - RAWKEYBOARD keyboard; - RAWHID hid; - } data; -} RAWINPUT, *PRAWINPUT, *LPRAWINPUT; -# 15138 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -UINT -__stdcall -GetRawInputData( - HRAWINPUT hRawInput, - UINT uiCommand, - LPVOID pData, - PUINT pcbSize, - UINT cbSizeHeader); -# 15161 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagRID_DEVICE_INFO_MOUSE { - DWORD dwId; - DWORD dwNumberOfButtons; - DWORD dwSampleRate; - BOOL fHasHorizontalWheel; -} RID_DEVICE_INFO_MOUSE, *PRID_DEVICE_INFO_MOUSE; - -typedef struct tagRID_DEVICE_INFO_KEYBOARD { - DWORD dwType; - DWORD dwSubType; - DWORD dwKeyboardMode; - DWORD dwNumberOfFunctionKeys; - DWORD dwNumberOfIndicators; - DWORD dwNumberOfKeysTotal; -} RID_DEVICE_INFO_KEYBOARD, *PRID_DEVICE_INFO_KEYBOARD; - -typedef struct tagRID_DEVICE_INFO_HID { - DWORD dwVendorId; - DWORD dwProductId; - DWORD dwVersionNumber; - - - - - USHORT usUsagePage; - USHORT usUsage; -} RID_DEVICE_INFO_HID, *PRID_DEVICE_INFO_HID; - -typedef struct tagRID_DEVICE_INFO { - DWORD cbSize; - DWORD dwType; - union { - RID_DEVICE_INFO_MOUSE mouse; - RID_DEVICE_INFO_KEYBOARD keyboard; - RID_DEVICE_INFO_HID hid; - } ; -} RID_DEVICE_INFO, *PRID_DEVICE_INFO, *LPRID_DEVICE_INFO; - -__declspec(dllimport) -UINT -__stdcall -GetRawInputDeviceInfoA( - HANDLE hDevice, - UINT uiCommand, - LPVOID pData, - PUINT pcbSize); -__declspec(dllimport) -UINT -__stdcall -GetRawInputDeviceInfoW( - HANDLE hDevice, - UINT uiCommand, - LPVOID pData, - PUINT pcbSize); -# 15225 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -UINT -__stdcall -GetRawInputBuffer( - PRAWINPUT pData, - PUINT pcbSize, - UINT cbSizeHeader); - - - - -typedef struct tagRAWINPUTDEVICE { - USHORT usUsagePage; - USHORT usUsage; - DWORD dwFlags; - HWND hwndTarget; -} RAWINPUTDEVICE, *PRAWINPUTDEVICE, *LPRAWINPUTDEVICE; - -typedef const RAWINPUTDEVICE* PCRAWINPUTDEVICE; -# 15281 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -RegisterRawInputDevices( - PCRAWINPUTDEVICE pRawInputDevices, - UINT uiNumDevices, - UINT cbSize); - -__declspec(dllimport) -UINT -__stdcall -GetRegisteredRawInputDevices( - PRAWINPUTDEVICE pRawInputDevices, - PUINT puiNumDevices, - UINT cbSize); - - -typedef struct tagRAWINPUTDEVICELIST { - HANDLE hDevice; - DWORD dwType; -} RAWINPUTDEVICELIST, *PRAWINPUTDEVICELIST; - -__declspec(dllimport) -UINT -__stdcall -GetRawInputDeviceList( - PRAWINPUTDEVICELIST pRawInputDeviceList, - PUINT puiNumDevices, - UINT cbSize); - -__declspec(dllimport) -LRESULT -__stdcall -DefRawInputProc( - PRAWINPUT* paRawInput, - INT nInput, - UINT cbSizeHeader); -# 15347 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef enum tagPOINTER_DEVICE_TYPE { - POINTER_DEVICE_TYPE_INTEGRATED_PEN = 0x00000001, - POINTER_DEVICE_TYPE_EXTERNAL_PEN = 0x00000002, - POINTER_DEVICE_TYPE_TOUCH = 0x00000003, - - POINTER_DEVICE_TYPE_TOUCH_PAD = 0x00000004, - - POINTER_DEVICE_TYPE_MAX = 0xFFFFFFFF -} POINTER_DEVICE_TYPE; - -typedef struct tagPOINTER_DEVICE_INFO { - DWORD displayOrientation; - HANDLE device; - POINTER_DEVICE_TYPE pointerDeviceType; - HMONITOR monitor; - ULONG startingCursorId; - USHORT maxActiveContacts; - WCHAR productString[520]; -} POINTER_DEVICE_INFO; - -typedef struct tagPOINTER_DEVICE_PROPERTY { - INT32 logicalMin; - INT32 logicalMax; - INT32 physicalMin; - INT32 physicalMax; - UINT32 unit; - UINT32 unitExponent; - USHORT usagePageId; - USHORT usageId; -} POINTER_DEVICE_PROPERTY; - -typedef enum tagPOINTER_DEVICE_CURSOR_TYPE { - POINTER_DEVICE_CURSOR_TYPE_UNKNOWN = 0x00000000, - POINTER_DEVICE_CURSOR_TYPE_TIP = 0x00000001, - POINTER_DEVICE_CURSOR_TYPE_ERASER = 0x00000002, - POINTER_DEVICE_CURSOR_TYPE_MAX = 0xFFFFFFFF -} POINTER_DEVICE_CURSOR_TYPE; - -typedef struct tagPOINTER_DEVICE_CURSOR_INFO { - UINT32 cursorId; - POINTER_DEVICE_CURSOR_TYPE cursor; -} POINTER_DEVICE_CURSOR_INFO; - -__declspec(dllimport) -BOOL -__stdcall -GetPointerDevices( - UINT32* deviceCount, - POINTER_DEVICE_INFO *pointerDevices); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerDevice( - HANDLE device, - POINTER_DEVICE_INFO *pointerDevice); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerDeviceProperties( - HANDLE device, - UINT32* propertyCount, - POINTER_DEVICE_PROPERTY *pointerProperties); - -__declspec(dllimport) -BOOL -__stdcall -RegisterPointerDeviceNotifications( - HWND window, - BOOL notifyRange); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerDeviceRects( - HANDLE device, - RECT* pointerDeviceRect, - RECT* displayRect); - -__declspec(dllimport) -BOOL -__stdcall -GetPointerDeviceCursors( - HANDLE device, - UINT32* cursorCount, - POINTER_DEVICE_CURSOR_INFO *deviceCursors); - -__declspec(dllimport) -BOOL -__stdcall -GetRawPointerDeviceData( - UINT32 pointerId, - UINT32 historyCount, - UINT32 propertiesCount, - POINTER_DEVICE_PROPERTY* pProperties, - LONG* pValues); -# 15464 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -ChangeWindowMessageFilter( - UINT message, - DWORD dwFlag); -# 15489 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagCHANGEFILTERSTRUCT { - DWORD cbSize; - DWORD ExtStatus; -} CHANGEFILTERSTRUCT, *PCHANGEFILTERSTRUCT; -# 15507 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -ChangeWindowMessageFilterEx( - HWND hwnd, - UINT message, - DWORD action, - PCHANGEFILTERSTRUCT pChangeFilterStruct); -# 15536 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -struct HGESTUREINFO__{int unused;}; typedef struct HGESTUREINFO__ *HGESTUREINFO; -# 15571 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagGESTUREINFO { - UINT cbSize; - DWORD dwFlags; - DWORD dwID; - HWND hwndTarget; - POINTS ptsLocation; - DWORD dwInstanceID; - DWORD dwSequenceID; - ULONGLONG ullArguments; - UINT cbExtraArgs; -} GESTUREINFO, *PGESTUREINFO; -typedef GESTUREINFO const * PCGESTUREINFO; -# 15592 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagGESTURENOTIFYSTRUCT { - UINT cbSize; - DWORD dwFlags; - HWND hwndTarget; - POINTS ptsLocation; - DWORD dwInstanceID; -} GESTURENOTIFYSTRUCT, *PGESTURENOTIFYSTRUCT; -# 15612 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetGestureInfo( - HGESTUREINFO hGestureInfo, - PGESTUREINFO pGestureInfo); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetGestureExtraArgs( - HGESTUREINFO hGestureInfo, - UINT cbExtraArgs, - PBYTE pExtraArgs); -# 15643 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CloseGestureInfoHandle( - HGESTUREINFO hGestureInfo); -# 15657 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef struct tagGESTURECONFIG { - DWORD dwID; - DWORD dwWant; - DWORD dwBlock; -} GESTURECONFIG, *PGESTURECONFIG; -# 15711 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetGestureConfig( - HWND hwnd, - DWORD dwReserved, - UINT cIDs, - PGESTURECONFIG pGestureConfig, - - UINT cbSize); - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetGestureConfig( - HWND hwnd, - DWORD dwReserved, - DWORD dwFlags, - PUINT pcIDs, - - PGESTURECONFIG pGestureConfig, - - UINT cbSize); -# 15766 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -ShutdownBlockReasonCreate( - HWND hWnd, - LPCWSTR pwszReason); - -__declspec(dllimport) -BOOL -__stdcall -ShutdownBlockReasonQuery( - HWND hWnd, - LPWSTR pwszBuff, - DWORD *pcchBuff); - -__declspec(dllimport) -BOOL -__stdcall -ShutdownBlockReasonDestroy( - HWND hWnd); -# 15799 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef enum tagINPUT_MESSAGE_DEVICE_TYPE { - IMDT_UNAVAILABLE = 0x00000000, - IMDT_KEYBOARD = 0x00000001, - IMDT_MOUSE = 0x00000002, - IMDT_TOUCH = 0x00000004, - IMDT_PEN = 0x00000008, - - IMDT_TOUCHPAD = 0x00000010, - - } INPUT_MESSAGE_DEVICE_TYPE; - -typedef enum tagINPUT_MESSAGE_ORIGIN_ID { - IMO_UNAVAILABLE = 0x00000000, - IMO_HARDWARE = 0x00000001, - IMO_INJECTED = 0x00000002, - IMO_SYSTEM = 0x00000004, -} INPUT_MESSAGE_ORIGIN_ID; - - - - - typedef struct tagINPUT_MESSAGE_SOURCE { - INPUT_MESSAGE_DEVICE_TYPE deviceType; - INPUT_MESSAGE_ORIGIN_ID originId; - } INPUT_MESSAGE_SOURCE; - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetCurrentInputMessageSource( - INPUT_MESSAGE_SOURCE *inputMessageSource); - -__declspec(dllimport) -BOOL -__stdcall -GetCIMSSM( - INPUT_MESSAGE_SOURCE *inputMessageSource); -# 15854 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef enum tagAR_STATE { - AR_ENABLED = 0x0, - AR_DISABLED = 0x1, - AR_SUPPRESSED = 0x2, - AR_REMOTESESSION = 0x4, - AR_MULTIMON = 0x8, - AR_NOSENSOR = 0x10, - AR_NOT_SUPPORTED = 0x20, - AR_DOCKED = 0x40, - AR_LAPTOP = 0x80 -} AR_STATE, *PAR_STATE; -# 15883 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef enum ORIENTATION_PREFERENCE { - ORIENTATION_PREFERENCE_NONE = 0x0, - ORIENTATION_PREFERENCE_LANDSCAPE = 0x1, - ORIENTATION_PREFERENCE_PORTRAIT = 0x2, - ORIENTATION_PREFERENCE_LANDSCAPE_FLIPPED = 0x4, - ORIENTATION_PREFERENCE_PORTRAIT_FLIPPED = 0x8 -} ORIENTATION_PREFERENCE; -# 15899 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetAutoRotationState( - PAR_STATE pState); - -__declspec(dllimport) -BOOL -__stdcall -GetDisplayAutoRotationPreferences( - ORIENTATION_PREFERENCE *pOrientation); - -__declspec(dllimport) -BOOL -__stdcall -GetDisplayAutoRotationPreferencesByProcessId( - DWORD dwProcessId, - ORIENTATION_PREFERENCE *pOrientation, - BOOL *fRotateScreen); - -__declspec(dllimport) -BOOL -__stdcall -SetDisplayAutoRotationPreferences( - ORIENTATION_PREFERENCE orientation); -# 15936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsImmersiveProcess( - HANDLE hProcess); - -__declspec(dllimport) -BOOL -__stdcall -SetProcessRestrictionExemption( - BOOL fEnableExemption); -# 15967 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetAdditionalForegroundBoostProcesses(HWND topLevelWindow, - DWORD processHandleCount, - HANDLE *processHandleArray); -# 15985 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -typedef enum { - TDF_REGISTER = 0x0001, - TDF_UNREGISTER = 0x0002, -} TOOLTIP_DISMISS_FLAGS; - -__declspec(dllimport) -BOOL -__stdcall -RegisterForTooltipDismissNotification(HWND hWnd, - TOOLTIP_DISMISS_FLAGS tdFlags); -# 16011 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winuser.h" 3 -#pragma warning(pop) -# 179 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 1 3 -# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\datetimeapi.h" 1 3 -# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\datetimeapi.h" 3 -__declspec(dllimport) -int -__stdcall -GetDateFormatA( - LCID Locale, - DWORD dwFlags, - const SYSTEMTIME* lpDate, - LPCSTR lpFormat, - LPSTR lpDateStr, - int cchDate - ); - -__declspec(dllimport) -int -__stdcall -GetDateFormatW( - LCID Locale, - DWORD dwFlags, - const SYSTEMTIME* lpDate, - LPCWSTR lpFormat, - LPWSTR lpDateStr, - int cchDate - ); -# 61 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\datetimeapi.h" 3 -__declspec(dllimport) -int -__stdcall -GetTimeFormatA( - LCID Locale, - DWORD dwFlags, - const SYSTEMTIME* lpTime, - LPCSTR lpFormat, - LPSTR lpTimeStr, - int cchTime - ); - -__declspec(dllimport) -int -__stdcall -GetTimeFormatW( - LCID Locale, - DWORD dwFlags, - const SYSTEMTIME* lpTime, - LPCWSTR lpFormat, - LPWSTR lpTimeStr, - int cchTime - ); -# 96 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\datetimeapi.h" 3 -__declspec(dllimport) -int -__stdcall -GetTimeFormatEx( - LPCWSTR lpLocaleName, - DWORD dwFlags, - const SYSTEMTIME* lpTime, - LPCWSTR lpFormat, - LPWSTR lpTimeStr, - int cchTime - ); - -__declspec(dllimport) -int -__stdcall -GetDateFormatEx( - LPCWSTR lpLocaleName, - DWORD dwFlags, - const SYSTEMTIME* lpDate, - LPCWSTR lpFormat, - LPWSTR lpDateStr, - int cchDate, - LPCWSTR lpCalendar - ); -# 129 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\datetimeapi.h" 3 -__declspec(dllimport) -int -__stdcall -GetDurationFormatEx( - LPCWSTR lpLocaleName, - DWORD dwFlags, - const SYSTEMTIME* lpDuration, - ULONGLONG ullDuration, - LPCWSTR lpFormat, - LPWSTR lpDurationStr, - int cchDuration - ); -# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 2 3 - - - - - -#pragma warning(push) -#pragma warning(disable: 4820) -# 1067 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -typedef DWORD LGRPID; - - - - -typedef DWORD LCTYPE; - - - - -typedef DWORD CALTYPE; - - - - - -typedef DWORD CALID; -# 1096 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -typedef struct _cpinfo { - UINT MaxCharSize; - BYTE DefaultChar[2]; - BYTE LeadByte[12]; -} CPINFO, *LPCPINFO; - - - - -typedef DWORD GEOTYPE; -typedef DWORD GEOCLASS; -# 1120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -typedef LONG GEOID; -# 1132 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -typedef struct _cpinfoexA { - UINT MaxCharSize; - BYTE DefaultChar[2]; - BYTE LeadByte[12]; - WCHAR UnicodeDefaultChar; - UINT CodePage; - CHAR CodePageName[260]; -} CPINFOEXA, *LPCPINFOEXA; - -typedef struct _cpinfoexW { - UINT MaxCharSize; - BYTE DefaultChar[2]; - BYTE LeadByte[12]; - WCHAR UnicodeDefaultChar; - UINT CodePage; - WCHAR CodePageName[260]; -} CPINFOEXW, *LPCPINFOEXW; - - - - -typedef CPINFOEXA CPINFOEX; -typedef LPCPINFOEXA LPCPINFOEX; -# 1166 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -typedef struct _numberfmtA { - UINT NumDigits; - UINT LeadingZero; - UINT Grouping; - LPSTR lpDecimalSep; - LPSTR lpThousandSep; - UINT NegativeOrder; -} NUMBERFMTA, *LPNUMBERFMTA; -typedef struct _numberfmtW { - UINT NumDigits; - UINT LeadingZero; - UINT Grouping; - LPWSTR lpDecimalSep; - LPWSTR lpThousandSep; - UINT NegativeOrder; -} NUMBERFMTW, *LPNUMBERFMTW; - - - - -typedef NUMBERFMTA NUMBERFMT; -typedef LPNUMBERFMTA LPNUMBERFMT; - - - - - - - -typedef struct _currencyfmtA { - UINT NumDigits; - UINT LeadingZero; - UINT Grouping; - LPSTR lpDecimalSep; - LPSTR lpThousandSep; - UINT NegativeOrder; - UINT PositiveOrder; - LPSTR lpCurrencySymbol; -} CURRENCYFMTA, *LPCURRENCYFMTA; -typedef struct _currencyfmtW { - UINT NumDigits; - UINT LeadingZero; - UINT Grouping; - LPWSTR lpDecimalSep; - LPWSTR lpThousandSep; - UINT NegativeOrder; - UINT PositiveOrder; - LPWSTR lpCurrencySymbol; -} CURRENCYFMTW, *LPCURRENCYFMTW; - - - - -typedef CURRENCYFMTA CURRENCYFMT; -typedef LPCURRENCYFMTA LPCURRENCYFMT; -# 1232 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -enum SYSNLS_FUNCTION { - COMPARE_STRING = 0x0001, -}; -typedef DWORD NLS_FUNCTION; -# 1256 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -typedef struct _nlsversioninfo{ - DWORD dwNLSVersionInfoSize; - DWORD dwNLSVersion; - DWORD dwDefinedVersion; - DWORD dwEffectiveId; - GUID guidCustomVersion; -} NLSVERSIONINFO, *LPNLSVERSIONINFO; -# 1287 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -typedef struct _nlsversioninfoex{ - DWORD dwNLSVersionInfoSize; - DWORD dwNLSVersion; - DWORD dwDefinedVersion; - DWORD dwEffectiveId; - GUID guidCustomVersion; -} NLSVERSIONINFOEX, *LPNLSVERSIONINFOEX; -# 1308 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -enum SYSGEOTYPE { - GEO_NATION = 0x0001, - GEO_LATITUDE = 0x0002, - GEO_LONGITUDE = 0x0003, - GEO_ISO2 = 0x0004, - GEO_ISO3 = 0x0005, - GEO_RFC1766 = 0x0006, - GEO_LCID = 0x0007, - GEO_FRIENDLYNAME= 0x0008, - GEO_OFFICIALNAME= 0x0009, - GEO_TIMEZONES = 0x000A, - GEO_OFFICIALLANGUAGES = 0x000B, - GEO_ISO_UN_NUMBER = 0x000C, - GEO_PARENT = 0x000D, - GEO_DIALINGCODE = 0x000E, - GEO_CURRENCYCODE= 0x000F, - GEO_CURRENCYSYMBOL= 0x0010, - - GEO_NAME = 0x0011, - GEO_ID = 0x0012 - -}; - - - - - -enum SYSGEOCLASS { - GEOCLASS_NATION = 16, - GEOCLASS_REGION = 14, - GEOCLASS_ALL = 0 -}; - - - -typedef BOOL (__stdcall* LOCALE_ENUMPROCA)(LPSTR); -typedef BOOL (__stdcall* LOCALE_ENUMPROCW)(LPWSTR); -# 1359 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -typedef enum _NORM_FORM { - NormalizationOther = 0, - NormalizationC = 0x1, - NormalizationD = 0x2, - NormalizationKC = 0x5, - - NormalizationKD = 0x6 - -} NORM_FORM; -# 1390 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -typedef BOOL (__stdcall* LANGUAGEGROUP_ENUMPROCA)(LGRPID, LPSTR, LPSTR, DWORD, LONG_PTR); - -typedef BOOL (__stdcall* LANGGROUPLOCALE_ENUMPROCA)(LGRPID, LCID, LPSTR, LONG_PTR); -typedef BOOL (__stdcall* UILANGUAGE_ENUMPROCA)(LPSTR, LONG_PTR); -typedef BOOL (__stdcall* CODEPAGE_ENUMPROCA)(LPSTR); -typedef BOOL (__stdcall* DATEFMT_ENUMPROCA)(LPSTR); -typedef BOOL (__stdcall* DATEFMT_ENUMPROCEXA)(LPSTR, CALID); -typedef BOOL (__stdcall* TIMEFMT_ENUMPROCA)(LPSTR); -typedef BOOL (__stdcall* CALINFO_ENUMPROCA)(LPSTR); -typedef BOOL (__stdcall* CALINFO_ENUMPROCEXA)(LPSTR, CALID); - - -typedef BOOL (__stdcall* LANGUAGEGROUP_ENUMPROCW)(LGRPID, LPWSTR, LPWSTR, DWORD, LONG_PTR); - -typedef BOOL (__stdcall* LANGGROUPLOCALE_ENUMPROCW)(LGRPID, LCID, LPWSTR, LONG_PTR); -typedef BOOL (__stdcall* UILANGUAGE_ENUMPROCW)(LPWSTR, LONG_PTR); -typedef BOOL (__stdcall* CODEPAGE_ENUMPROCW)(LPWSTR); -typedef BOOL (__stdcall* DATEFMT_ENUMPROCW)(LPWSTR); -typedef BOOL (__stdcall* DATEFMT_ENUMPROCEXW)(LPWSTR, CALID); -typedef BOOL (__stdcall* TIMEFMT_ENUMPROCW)(LPWSTR); -typedef BOOL (__stdcall* CALINFO_ENUMPROCW)(LPWSTR); -typedef BOOL (__stdcall* CALINFO_ENUMPROCEXW)(LPWSTR, CALID); -typedef BOOL (__stdcall* GEO_ENUMPROC)(GEOID); - -typedef BOOL (__stdcall* GEO_ENUMNAMEPROC)(PWSTR, LPARAM); -# 1511 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -typedef struct _FILEMUIINFO { - DWORD dwSize; - DWORD dwVersion; - DWORD dwFileType; - BYTE pChecksum[16]; - BYTE pServiceChecksum[16]; - DWORD dwLanguageNameOffset; - DWORD dwTypeIDMainSize; - DWORD dwTypeIDMainOffset; - DWORD dwTypeNameMainOffset; - DWORD dwTypeIDMUISize; - DWORD dwTypeIDMUIOffset; - DWORD dwTypeNameMUIOffset; - BYTE abBuffer[8]; -} FILEMUIINFO, *PFILEMUIINFO; -# 1534 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\stringapiset.h" 1 3 -# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\stringapiset.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 1 3 -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\stringapiset.h" 2 3 -# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\stringapiset.h" 3 -__declspec(dllimport) -int -__stdcall -CompareStringEx( - LPCWSTR lpLocaleName, - DWORD dwCmpFlags, - LPCWCH lpString1, - int cchCount1, - LPCWCH lpString2, - int cchCount2, - LPNLSVERSIONINFO lpVersionInformation, - LPVOID lpReserved, - LPARAM lParam - ); - -__declspec(dllimport) -int -__stdcall -CompareStringOrdinal( - LPCWCH lpString1, - int cchCount1, - LPCWCH lpString2, - int cchCount2, - BOOL bIgnoreCase - ); - - - -__declspec(dllimport) -int -__stdcall -CompareStringW( - LCID Locale, - DWORD dwCmpFlags, - PCNZWCH lpString1, - int cchCount1, - PCNZWCH lpString2, - int cchCount2 - ); - - - - -__declspec(dllimport) -int -__stdcall -FoldStringW( - DWORD dwMapFlags, - LPCWCH lpSrcStr, - int cchSrc, - LPWSTR lpDestStr, - int cchDest - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -GetStringTypeExW( - LCID Locale, - DWORD dwInfoType, - LPCWCH lpSrcStr, - int cchSrc, - LPWORD lpCharType - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -GetStringTypeW( - DWORD dwInfoType, - LPCWCH lpSrcStr, - int cchSrc, - LPWORD lpCharType - ); - - - - - -__declspec(dllimport) - - -int -__stdcall -MultiByteToWideChar( - UINT CodePage, - DWORD dwFlags, - LPCCH lpMultiByteStr, - int cbMultiByte, - LPWSTR lpWideCharStr, - int cchWideChar - ); - -__declspec(dllimport) - - -int -__stdcall -WideCharToMultiByte( - UINT CodePage, - DWORD dwFlags, - LPCWCH lpWideCharStr, - int cchWideChar, - LPSTR lpMultiByteStr, - int cbMultiByte, - LPCCH lpDefaultChar, - LPBOOL lpUsedDefaultChar - ); -# 1535 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 2 3 -# 1614 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsValidCodePage( - UINT CodePage); - -__declspec(dllimport) -UINT -__stdcall -GetACP(void); - - - - - - - -__declspec(dllimport) -UINT -__stdcall -GetOEMCP(void); -# 1643 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetCPInfo( - UINT CodePage, - LPCPINFO lpCPInfo); -# 1657 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetCPInfoExA( - UINT CodePage, - DWORD dwFlags, - LPCPINFOEXA lpCPInfoEx); - -__declspec(dllimport) -BOOL -__stdcall -GetCPInfoExW( - UINT CodePage, - DWORD dwFlags, - LPCPINFOEXW lpCPInfoEx); -# 1689 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall -CompareStringA( - LCID Locale, - DWORD dwCmpFlags, - PCNZCH lpString1, - int cchCount1, - PCNZCH lpString2, - int cchCount2); -# 1742 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall -FindNLSString( - LCID Locale, - DWORD dwFindNLSStringFlags, - LPCWSTR lpStringSource, - int cchSource, - LPCWSTR lpStringValue, - int cchValue, - LPINT pcchFound); -# 1763 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall -LCMapStringW( - LCID Locale, - DWORD dwMapFlags, - LPCWSTR lpSrcStr, - int cchSrc, - LPWSTR lpDestStr, - int cchDest); - - - - - -__declspec(dllimport) -int -__stdcall -LCMapStringA( - LCID Locale, - DWORD dwMapFlags, - LPCSTR lpSrcStr, - int cchSrc, - LPSTR lpDestStr, - int cchDest); -# 1799 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall -GetLocaleInfoW( - LCID Locale, - LCTYPE LCType, - LPWSTR lpLCData, - int cchData); - - - - - - -__declspec(dllimport) -int -__stdcall -GetLocaleInfoA( - LCID Locale, - LCTYPE LCType, - LPSTR lpLCData, - int cchData - ); -# 1833 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetLocaleInfoA( - LCID Locale, - LCTYPE LCType, - LPCSTR lpLCData); -__declspec(dllimport) -BOOL -__stdcall -SetLocaleInfoW( - LCID Locale, - LCTYPE LCType, - LPCWSTR lpLCData); -# 1856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall -GetCalendarInfoA( - LCID Locale, - CALID Calendar, - CALTYPE CalType, - LPSTR lpCalData, - int cchData, - LPDWORD lpValue); - -__declspec(dllimport) -int -__stdcall -GetCalendarInfoW( - LCID Locale, - CALID Calendar, - CALTYPE CalType, - LPWSTR lpCalData, - int cchData, - LPDWORD lpValue); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetCalendarInfoA( - LCID Locale, - CALID Calendar, - CALTYPE CalType, - LPCSTR lpCalData); -__declspec(dllimport) -BOOL -__stdcall -SetCalendarInfoW( - LCID Locale, - CALID Calendar, - CALTYPE CalType, - LPCWSTR lpCalData); -# 1922 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -LoadStringByReference( - DWORD Flags, - PCWSTR Language, - PCWSTR SourceString, - PWSTR Buffer, - ULONG cchBuffer, - PCWSTR Directory, - PULONG pcchBufferOut - ); -# 1944 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsDBCSLeadByte( - BYTE TestChar - ); - - -__declspec(dllimport) -BOOL -__stdcall -IsDBCSLeadByteEx( - UINT CodePage, - BYTE TestChar - ); -# 1970 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -LCID -__stdcall -LocaleNameToLCID( - LPCWSTR lpName, - DWORD dwFlags); - - - -__declspec(dllimport) -int -__stdcall -LCIDToLocaleName( - LCID Locale, - LPWSTR lpName, - int cchName, - DWORD dwFlags); -# 1998 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall -GetDurationFormat( - LCID Locale, - DWORD dwFlags, - const SYSTEMTIME *lpDuration, - ULONGLONG ullDuration, - LPCWSTR lpFormat, - LPWSTR lpDurationStr, - int cchDuration); -# 2018 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall -GetNumberFormatA( - LCID Locale, - DWORD dwFlags, - LPCSTR lpValue, - const NUMBERFMTA *lpFormat, - LPSTR lpNumberStr, - int cchNumber); - -__declspec(dllimport) -int -__stdcall -GetNumberFormatW( - LCID Locale, - DWORD dwFlags, - LPCWSTR lpValue, - const NUMBERFMTW *lpFormat, - LPWSTR lpNumberStr, - int cchNumber); - - - - - - - -__declspec(dllimport) -int -__stdcall -GetCurrencyFormatA( - LCID Locale, - DWORD dwFlags, - LPCSTR lpValue, - const CURRENCYFMTA *lpFormat, - LPSTR lpCurrencyStr, - int cchCurrency); - -__declspec(dllimport) -int -__stdcall -GetCurrencyFormatW( - LCID Locale, - DWORD dwFlags, - LPCWSTR lpValue, - const CURRENCYFMTW *lpFormat, - LPWSTR lpCurrencyStr, - int cchCurrency); -# 2080 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumCalendarInfoA( - CALINFO_ENUMPROCA lpCalInfoEnumProc, - LCID Locale, - CALID Calendar, - CALTYPE CalType); - -__declspec(dllimport) -BOOL -__stdcall -EnumCalendarInfoW( - CALINFO_ENUMPROCW lpCalInfoEnumProc, - LCID Locale, - CALID Calendar, - CALTYPE CalType); -# 2105 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumCalendarInfoExA( - CALINFO_ENUMPROCEXA lpCalInfoEnumProcEx, - LCID Locale, - CALID Calendar, - CALTYPE CalType); - -__declspec(dllimport) -BOOL -__stdcall -EnumCalendarInfoExW( - CALINFO_ENUMPROCEXW lpCalInfoEnumProcEx, - LCID Locale, - CALID Calendar, - CALTYPE CalType); -# 2130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumTimeFormatsA( - TIMEFMT_ENUMPROCA lpTimeFmtEnumProc, - LCID Locale, - DWORD dwFlags); - -__declspec(dllimport) -BOOL -__stdcall -EnumTimeFormatsW( - TIMEFMT_ENUMPROCW lpTimeFmtEnumProc, - LCID Locale, - DWORD dwFlags); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -EnumDateFormatsA( - DATEFMT_ENUMPROCA lpDateFmtEnumProc, - LCID Locale, - DWORD dwFlags); - -__declspec(dllimport) -BOOL -__stdcall -EnumDateFormatsW( - DATEFMT_ENUMPROCW lpDateFmtEnumProc, - LCID Locale, - DWORD dwFlags); -# 2175 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumDateFormatsExA( - DATEFMT_ENUMPROCEXA lpDateFmtEnumProcEx, - LCID Locale, - DWORD dwFlags); - -__declspec(dllimport) -BOOL -__stdcall -EnumDateFormatsExW( - DATEFMT_ENUMPROCEXW lpDateFmtEnumProcEx, - LCID Locale, - DWORD dwFlags); -# 2205 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsValidLanguageGroup( - LGRPID LanguageGroup, - DWORD dwFlags); - - - -__declspec(dllimport) -BOOL -__stdcall -GetNLSVersion( - NLS_FUNCTION Function, - LCID Locale, - LPNLSVERSIONINFO lpVersionInformation); -# 2229 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -IsValidLocale( - LCID Locale, - DWORD dwFlags); -# 2244 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall -GetGeoInfoA( - GEOID Location, - GEOTYPE GeoType, - LPSTR lpGeoData, - int cchData, - LANGID LangId); - - -__declspec(dllimport) -int -__stdcall -GetGeoInfoW( - GEOID Location, - GEOTYPE GeoType, - LPWSTR lpGeoData, - int cchData, - LANGID LangId); - - - - - - - -__declspec(dllimport) -int -__stdcall -GetGeoInfoEx( - PWSTR location, - GEOTYPE geoType, - PWSTR geoData, - int geoDataCount); -# 2289 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumSystemGeoID( - GEOCLASS GeoClass, - GEOID ParentGeoId, - GEO_ENUMPROC lpGeoEnumProc); - - -__declspec(dllimport) -BOOL -__stdcall -EnumSystemGeoNames( - GEOCLASS geoClass, - GEO_ENUMNAMEPROC geoEnumProc, - LPARAM data); -# 2315 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -GEOID -__stdcall -GetUserGeoID( - GEOCLASS GeoClass); - - - - - - -__declspec(dllimport) -int -__stdcall -GetUserDefaultGeoName( - LPWSTR geoName, - int geoNameCount -); -# 2343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetUserGeoID( - GEOID GeoId); - - - -__declspec(dllimport) -BOOL -__stdcall -SetUserGeoName( - PWSTR geoName); - - - -__declspec(dllimport) -LCID -__stdcall -ConvertDefaultLocale( - LCID Locale); - - - -__declspec(dllimport) -LANGID -__stdcall -GetSystemDefaultUILanguage(void); -# 2380 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -LCID -__stdcall -GetThreadLocale(void); - -__declspec(dllimport) -BOOL -__stdcall -SetThreadLocale( - LCID Locale - ); -# 2400 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -LANGID -__stdcall -GetUserDefaultUILanguage(void); - - - -__declspec(dllimport) -LANGID -__stdcall -GetUserDefaultLangID(void); -# 2419 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -LANGID -__stdcall -GetSystemDefaultLangID(void); - - -__declspec(dllimport) -LCID -__stdcall -GetSystemDefaultLCID(void); - - -__declspec(dllimport) -LCID -__stdcall -GetUserDefaultLCID(void); -# 2449 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -LANGID -__stdcall -SetThreadUILanguage( LANGID LangId); - - - - -__declspec(dllimport) -LANGID -__stdcall -GetThreadUILanguage(void); - -__declspec(dllimport) -BOOL -__stdcall -GetProcessPreferredUILanguages( - DWORD dwFlags, - PULONG pulNumLanguages, - PZZWSTR pwszLanguagesBuffer, - PULONG pcchLanguagesBuffer -); - - -__declspec(dllimport) -BOOL -__stdcall -SetProcessPreferredUILanguages( - DWORD dwFlags, - PCZZWSTR pwszLanguagesBuffer, - PULONG pulNumLanguages -); -# 2490 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetUserPreferredUILanguages ( - DWORD dwFlags, - PULONG pulNumLanguages, - PZZWSTR pwszLanguagesBuffer, - PULONG pcchLanguagesBuffer -); -# 2510 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetSystemPreferredUILanguages ( - DWORD dwFlags, - PULONG pulNumLanguages, - PZZWSTR pwszLanguagesBuffer, - PULONG pcchLanguagesBuffer -); - - -__declspec(dllimport) -BOOL -__stdcall -GetThreadPreferredUILanguages( - DWORD dwFlags, - PULONG pulNumLanguages, - PZZWSTR pwszLanguagesBuffer, - PULONG pcchLanguagesBuffer -); - - -__declspec(dllimport) -BOOL -__stdcall -SetThreadPreferredUILanguages( - DWORD dwFlags, - PCZZWSTR pwszLanguagesBuffer, - PULONG pulNumLanguages -); - -__declspec(dllimport) - -BOOL -__stdcall -GetFileMUIInfo( - DWORD dwFlags, - PCWSTR pcwszFilePath, - PFILEMUIINFO pFileMUIInfo, - DWORD* pcbFileMUIInfo); - -__declspec(dllimport) -BOOL -__stdcall -GetFileMUIPath( - DWORD dwFlags, - PCWSTR pcwszFilePath , - PWSTR pwszLanguage, - PULONG pcchLanguage, - PWSTR pwszFileMUIPath, - PULONG pcchFileMUIPath, - PULONGLONG pululEnumerator -); - - -__declspec(dllimport) -BOOL -__stdcall -GetUILanguageInfo( - DWORD dwFlags, - PCZZWSTR pwmszLanguage, - PZZWSTR pwszFallbackLanguages, - PDWORD pcchFallbackLanguages, - PDWORD pAttributes -); -# 2586 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -struct HSAVEDUILANGUAGES__{int unused;}; typedef struct HSAVEDUILANGUAGES__ *HSAVEDUILANGUAGES; - -__declspec(dllimport) -BOOL -__stdcall -SetThreadPreferredUILanguages2( - ULONG flags, - PCZZWSTR languages, - PULONG numLanguagesSet, - HSAVEDUILANGUAGES* snapshot); - -__declspec(dllimport) -void -__stdcall -RestoreThreadPreferredUILanguages( const HSAVEDUILANGUAGES snapshot); -# 2612 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -NotifyUILanguageChange( - DWORD dwFlags, - PCWSTR pcwstrNewLanguage, - PCWSTR pcwstrPreviousLanguage, - DWORD dwReserved, - PDWORD pdwStatusRtrn -); -# 2636 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetStringTypeExA( - LCID Locale, - DWORD dwInfoType, - LPCSTR lpSrcStr, - int cchSrc, - LPWORD lpCharType); -# 2661 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetStringTypeA( - LCID Locale, - DWORD dwInfoType, - LPCSTR lpSrcStr, - int cchSrc, - LPWORD lpCharType); - -__declspec(dllimport) -int -__stdcall -FoldStringA( - DWORD dwMapFlags, - LPCSTR lpSrcStr, - int cchSrc, - LPSTR lpDestStr, - int cchDest); -# 2693 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumSystemLocalesA( - LOCALE_ENUMPROCA lpLocaleEnumProc, - DWORD dwFlags); - -__declspec(dllimport) -BOOL -__stdcall -EnumSystemLocalesW( - LOCALE_ENUMPROCW lpLocaleEnumProc, - DWORD dwFlags); -# 2723 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumSystemLanguageGroupsA( - LANGUAGEGROUP_ENUMPROCA lpLanguageGroupEnumProc, - DWORD dwFlags, - LONG_PTR lParam); - -__declspec(dllimport) -BOOL -__stdcall -EnumSystemLanguageGroupsW( - LANGUAGEGROUP_ENUMPROCW lpLanguageGroupEnumProc, - DWORD dwFlags, - LONG_PTR lParam); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -EnumLanguageGroupLocalesA( - LANGGROUPLOCALE_ENUMPROCA lpLangGroupLocaleEnumProc, - LGRPID LanguageGroup, - DWORD dwFlags, - LONG_PTR lParam); - -__declspec(dllimport) -BOOL -__stdcall -EnumLanguageGroupLocalesW( - LANGGROUPLOCALE_ENUMPROCW lpLangGroupLocaleEnumProc, - LGRPID LanguageGroup, - DWORD dwFlags, - LONG_PTR lParam); -# 2775 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumUILanguagesA( - UILANGUAGE_ENUMPROCA lpUILanguageEnumProc, - DWORD dwFlags, - LONG_PTR lParam); - -__declspec(dllimport) -BOOL -__stdcall -EnumUILanguagesW( - UILANGUAGE_ENUMPROCW lpUILanguageEnumProc, - DWORD dwFlags, - LONG_PTR lParam); -# 2805 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumSystemCodePagesA( - CODEPAGE_ENUMPROCA lpCodePageEnumProc, - DWORD dwFlags); - -__declspec(dllimport) -BOOL -__stdcall -EnumSystemCodePagesW( - CODEPAGE_ENUMPROCW lpCodePageEnumProc, - DWORD dwFlags); -# 2839 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall IdnToAscii( DWORD dwFlags, - LPCWSTR lpUnicodeCharStr, - int cchUnicodeChar, - LPWSTR lpASCIICharStr, - int cchASCIIChar); - -__declspec(dllimport) -int -__stdcall IdnToUnicode( DWORD dwFlags, - LPCWSTR lpASCIICharStr, - int cchASCIIChar, - LPWSTR lpUnicodeCharStr, - int cchUnicodeChar); - -__declspec(dllimport) -int -__stdcall IdnToNameprepUnicode( DWORD dwFlags, - LPCWSTR lpUnicodeCharStr, - int cchUnicodeChar, - LPWSTR lpNameprepCharStr, - int cchNameprepChar); -# 2873 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall NormalizeString( NORM_FORM NormForm, - LPCWSTR lpSrcString, - int cwSrcLength, - LPWSTR lpDstString, - int cwDstLength ); - -__declspec(dllimport) -BOOL -__stdcall IsNormalizedString( NORM_FORM NormForm, - LPCWSTR lpString, - int cwLength ); - -__declspec(dllimport) -BOOL -__stdcall VerifyScripts( - DWORD dwFlags, - LPCWSTR lpLocaleScripts, - int cchLocaleScripts, - LPCWSTR lpTestScripts, - int cchTestScripts); - -__declspec(dllimport) -int -__stdcall GetStringScripts( - DWORD dwFlags, - LPCWSTR lpString, - int cchString, - LPWSTR lpScripts, - int cchScripts); -# 2923 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall -GetLocaleInfoEx( - LPCWSTR lpLocaleName, - LCTYPE LCType, - LPWSTR lpLCData, - int cchData -); - - - - - - - -__declspec(dllimport) -int -__stdcall -GetCalendarInfoEx( - LPCWSTR lpLocaleName, - CALID Calendar, - LPCWSTR lpReserved, - CALTYPE CalType, - LPWSTR lpCalData, - int cchData, - LPDWORD lpValue -); -# 2979 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall -GetNumberFormatEx( - LPCWSTR lpLocaleName, - DWORD dwFlags, - LPCWSTR lpValue, - const NUMBERFMTW *lpFormat, - LPWSTR lpNumberStr, - int cchNumber -); - -__declspec(dllimport) -int -__stdcall -GetCurrencyFormatEx( - LPCWSTR lpLocaleName, - DWORD dwFlags, - LPCWSTR lpValue, - const CURRENCYFMTW *lpFormat, - LPWSTR lpCurrencyStr, - int cchCurrency -); - -__declspec(dllimport) -int -__stdcall -GetUserDefaultLocaleName( - LPWSTR lpLocaleName, - int cchLocaleName -); - - - - - - - -__declspec(dllimport) -int -__stdcall -GetSystemDefaultLocaleName( - LPWSTR lpLocaleName, - int cchLocaleName -); - -__declspec(dllimport) -BOOL -__stdcall -IsNLSDefinedString( - NLS_FUNCTION Function, - DWORD dwFlags, - LPNLSVERSIONINFO lpVersionInformation, - LPCWSTR lpString, - INT cchStr); - -__declspec(dllimport) -BOOL -__stdcall -GetNLSVersionEx( - NLS_FUNCTION function, - LPCWSTR lpLocaleName, - LPNLSVERSIONINFOEX lpVersionInformation -); - - -__declspec(dllimport) -DWORD -__stdcall -IsValidNLSVersion( - NLS_FUNCTION function, - LPCWSTR lpLocaleName, - LPNLSVERSIONINFOEX lpVersionInformation -); -# 3061 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall -FindNLSStringEx( - LPCWSTR lpLocaleName, - DWORD dwFindNLSStringFlags, - LPCWSTR lpStringSource, - int cchSource, - LPCWSTR lpStringValue, - int cchValue, - LPINT pcchFound, - LPNLSVERSIONINFO lpVersionInformation, - LPVOID lpReserved, - LPARAM sortHandle -); -# 3084 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall -LCMapStringEx( - LPCWSTR lpLocaleName, - DWORD dwMapFlags, - LPCWSTR lpSrcStr, - int cchSrc, - LPWSTR lpDestStr, - int cchDest, - LPNLSVERSIONINFO lpVersionInformation, - LPVOID lpReserved, - LPARAM sortHandle -); - -__declspec(dllimport) -BOOL -__stdcall -IsValidLocaleName( - LPCWSTR lpLocaleName -); - - - - - - - -typedef BOOL (__stdcall* CALINFO_ENUMPROCEXEX)(LPWSTR, CALID, LPWSTR, LPARAM); - -__declspec(dllimport) -BOOL -__stdcall -EnumCalendarInfoExEx( - CALINFO_ENUMPROCEXEX pCalInfoEnumProcExEx, - LPCWSTR lpLocaleName, - CALID Calendar, - LPCWSTR lpReserved, - CALTYPE CalType, - LPARAM lParam -); - -typedef BOOL (__stdcall* DATEFMT_ENUMPROCEXEX)(LPWSTR, CALID, LPARAM); - -__declspec(dllimport) -BOOL -__stdcall -EnumDateFormatsExEx( - DATEFMT_ENUMPROCEXEX lpDateFmtEnumProcExEx, - LPCWSTR lpLocaleName, - DWORD dwFlags, - LPARAM lParam -); - -typedef BOOL (__stdcall* TIMEFMT_ENUMPROCEX)(LPWSTR, LPARAM); - -__declspec(dllimport) -BOOL -__stdcall -EnumTimeFormatsEx( - TIMEFMT_ENUMPROCEX lpTimeFmtEnumProcEx, - LPCWSTR lpLocaleName, - DWORD dwFlags, - LPARAM lParam -); - - - - - - - -typedef BOOL (__stdcall* LOCALE_ENUMPROCEX)(LPWSTR, DWORD, LPARAM); - -__declspec(dllimport) -BOOL -__stdcall -EnumSystemLocalesEx( - LOCALE_ENUMPROCEX lpLocaleEnumProcEx, - DWORD dwFlags, - LPARAM lParam, - LPVOID lpReserved -); -# 3178 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -__declspec(dllimport) -int -__stdcall -ResolveLocaleName( - LPCWSTR lpNameToResolve, - LPWSTR lpLocaleName, - int cchLocaleName -); -# 3206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnls.h" 3 -#pragma warning(pop) -# 181 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincon.h" 1 3 -# 34 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincon.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincontypes.h" 1 3 -# 36 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincontypes.h" 3 -typedef struct _COORD { - SHORT X; - SHORT Y; -} COORD, *PCOORD; - -typedef struct _SMALL_RECT { - SHORT Left; - SHORT Top; - SHORT Right; - SHORT Bottom; -} SMALL_RECT, *PSMALL_RECT; - -typedef struct _KEY_EVENT_RECORD { - BOOL bKeyDown; - WORD wRepeatCount; - WORD wVirtualKeyCode; - WORD wVirtualScanCode; - union { - WCHAR UnicodeChar; - CHAR AsciiChar; - } uChar; - DWORD dwControlKeyState; -} KEY_EVENT_RECORD, *PKEY_EVENT_RECORD; -# 82 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincontypes.h" 3 -typedef struct _MOUSE_EVENT_RECORD { - COORD dwMousePosition; - DWORD dwButtonState; - DWORD dwControlKeyState; - DWORD dwEventFlags; -} MOUSE_EVENT_RECORD, *PMOUSE_EVENT_RECORD; -# 110 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincontypes.h" 3 -typedef struct _WINDOW_BUFFER_SIZE_RECORD { - COORD dwSize; -} WINDOW_BUFFER_SIZE_RECORD, *PWINDOW_BUFFER_SIZE_RECORD; - -typedef struct _MENU_EVENT_RECORD { - UINT dwCommandId; -} MENU_EVENT_RECORD, *PMENU_EVENT_RECORD; - -typedef struct _FOCUS_EVENT_RECORD { - BOOL bSetFocus; -} FOCUS_EVENT_RECORD, *PFOCUS_EVENT_RECORD; - -typedef struct _INPUT_RECORD { - WORD EventType; - union { - KEY_EVENT_RECORD KeyEvent; - MOUSE_EVENT_RECORD MouseEvent; - WINDOW_BUFFER_SIZE_RECORD WindowBufferSizeEvent; - MENU_EVENT_RECORD MenuEvent; - FOCUS_EVENT_RECORD FocusEvent; - } Event; -} INPUT_RECORD, *PINPUT_RECORD; -# 143 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincontypes.h" 3 -typedef struct _CHAR_INFO { - union { - WCHAR UnicodeChar; - CHAR AsciiChar; - } Char; - WORD Attributes; -} CHAR_INFO, *PCHAR_INFO; - -typedef struct _CONSOLE_FONT_INFO { - DWORD nFont; - COORD dwFontSize; -} CONSOLE_FONT_INFO, *PCONSOLE_FONT_INFO; - -typedef void* HPCON; -# 39 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincon.h" 2 3 - - - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi.h" 1 3 -# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -AllocConsole( - void - ); - -__declspec(dllimport) -BOOL -__stdcall -FreeConsole( - void - ); - - - -__declspec(dllimport) -BOOL -__stdcall -AttachConsole( - DWORD dwProcessId - ); - - - - - -__declspec(dllimport) -UINT -__stdcall -GetConsoleCP( - void - ); - -__declspec(dllimport) -UINT -__stdcall -GetConsoleOutputCP( - void - ); -# 97 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetConsoleMode( - HANDLE hConsoleHandle, - LPDWORD lpMode - ); - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleMode( - HANDLE hConsoleHandle, - DWORD dwMode - ); - -__declspec(dllimport) -BOOL -__stdcall -GetNumberOfConsoleInputEvents( - HANDLE hConsoleInput, - LPDWORD lpNumberOfEvents - ); - -__declspec(dllimport) - -BOOL -__stdcall -ReadConsoleInputA( - HANDLE hConsoleInput, - PINPUT_RECORD lpBuffer, - DWORD nLength, - LPDWORD lpNumberOfEventsRead - ); - -__declspec(dllimport) - -BOOL -__stdcall -ReadConsoleInputW( - HANDLE hConsoleInput, - PINPUT_RECORD lpBuffer, - DWORD nLength, - LPDWORD lpNumberOfEventsRead - ); -# 156 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -PeekConsoleInputA( - HANDLE hConsoleInput, - PINPUT_RECORD lpBuffer, - DWORD nLength, - LPDWORD lpNumberOfEventsRead - ); - -__declspec(dllimport) -BOOL -__stdcall -PeekConsoleInputW( - HANDLE hConsoleInput, - PINPUT_RECORD lpBuffer, - DWORD nLength, - LPDWORD lpNumberOfEventsRead - ); - - - - - - -typedef struct _CONSOLE_READCONSOLE_CONTROL { - ULONG nLength; - ULONG nInitialChars; - ULONG dwCtrlWakeupMask; - ULONG dwControlKeyState; -} CONSOLE_READCONSOLE_CONTROL, *PCONSOLE_READCONSOLE_CONTROL; - -__declspec(dllimport) - -BOOL -__stdcall -ReadConsoleA( - HANDLE hConsoleInput, - LPVOID lpBuffer, - DWORD nNumberOfCharsToRead, - LPDWORD lpNumberOfCharsRead, - PCONSOLE_READCONSOLE_CONTROL pInputControl - ); - -__declspec(dllimport) - -BOOL -__stdcall -ReadConsoleW( - HANDLE hConsoleInput, - LPVOID lpBuffer, - DWORD nNumberOfCharsToRead, - LPDWORD lpNumberOfCharsRead, - PCONSOLE_READCONSOLE_CONTROL pInputControl - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -WriteConsoleA( - HANDLE hConsoleOutput, - const void* lpBuffer, - DWORD nNumberOfCharsToWrite, - LPDWORD lpNumberOfCharsWritten, - LPVOID lpReserved - ); - -__declspec(dllimport) -BOOL -__stdcall -WriteConsoleW( - HANDLE hConsoleOutput, - const void* lpBuffer, - DWORD nNumberOfCharsToWrite, - LPDWORD lpNumberOfCharsWritten, - LPVOID lpReserved - ); -# 260 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi.h" 3 -typedef -BOOL -(__stdcall *PHANDLER_ROUTINE)( - DWORD CtrlType - ); - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleCtrlHandler( - PHANDLER_ROUTINE HandlerRoutine, - BOOL Add - ); -# 285 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi.h" 3 -__declspec(dllimport) -HRESULT -__stdcall -CreatePseudoConsole( - COORD size, - HANDLE hInput, - HANDLE hOutput, - DWORD dwFlags, - HPCON* phPC - ); - -__declspec(dllimport) -HRESULT -__stdcall -ResizePseudoConsole( - HPCON hPC, - COORD size - ); - -__declspec(dllimport) -void -__stdcall -ClosePseudoConsole( - HPCON hPC - ); -# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincon.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi2.h" 1 3 -# 53 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi2.h" 3 -__declspec(dllimport) -BOOL -__stdcall -FillConsoleOutputCharacterA( - HANDLE hConsoleOutput, - CHAR cCharacter, - DWORD nLength, - COORD dwWriteCoord, - LPDWORD lpNumberOfCharsWritten - ); - -__declspec(dllimport) -BOOL -__stdcall -FillConsoleOutputCharacterW( - HANDLE hConsoleOutput, - WCHAR cCharacter, - DWORD nLength, - COORD dwWriteCoord, - LPDWORD lpNumberOfCharsWritten - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -FillConsoleOutputAttribute( - HANDLE hConsoleOutput, - WORD wAttribute, - DWORD nLength, - COORD dwWriteCoord, - LPDWORD lpNumberOfAttrsWritten - ); - -__declspec(dllimport) -BOOL -__stdcall -GenerateConsoleCtrlEvent( - DWORD dwCtrlEvent, - DWORD dwProcessGroupId - ); - -__declspec(dllimport) -HANDLE -__stdcall -CreateConsoleScreenBuffer( - DWORD dwDesiredAccess, - DWORD dwShareMode, - const SECURITY_ATTRIBUTES* lpSecurityAttributes, - DWORD dwFlags, - LPVOID lpScreenBufferData - ); - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleActiveScreenBuffer( - HANDLE hConsoleOutput - ); - -__declspec(dllimport) -BOOL -__stdcall -FlushConsoleInputBuffer( - HANDLE hConsoleInput - ); - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleCP( - UINT wCodePageID - ); - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleOutputCP( - UINT wCodePageID - ); - -typedef struct _CONSOLE_CURSOR_INFO { - DWORD dwSize; - BOOL bVisible; -} CONSOLE_CURSOR_INFO, *PCONSOLE_CURSOR_INFO; - -__declspec(dllimport) -BOOL -__stdcall -GetConsoleCursorInfo( - HANDLE hConsoleOutput, - PCONSOLE_CURSOR_INFO lpConsoleCursorInfo - ); - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleCursorInfo( - HANDLE hConsoleOutput, - const CONSOLE_CURSOR_INFO* lpConsoleCursorInfo - ); - -typedef struct _CONSOLE_SCREEN_BUFFER_INFO { - COORD dwSize; - COORD dwCursorPosition; - WORD wAttributes; - SMALL_RECT srWindow; - COORD dwMaximumWindowSize; -} CONSOLE_SCREEN_BUFFER_INFO, *PCONSOLE_SCREEN_BUFFER_INFO; - -__declspec(dllimport) -BOOL -__stdcall -GetConsoleScreenBufferInfo( - HANDLE hConsoleOutput, - PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo - ); - -typedef struct _CONSOLE_SCREEN_BUFFER_INFOEX { - ULONG cbSize; - COORD dwSize; - COORD dwCursorPosition; - WORD wAttributes; - SMALL_RECT srWindow; - COORD dwMaximumWindowSize; - WORD wPopupAttributes; - BOOL bFullscreenSupported; - COLORREF ColorTable[16]; -} CONSOLE_SCREEN_BUFFER_INFOEX, *PCONSOLE_SCREEN_BUFFER_INFOEX; - -__declspec(dllimport) -BOOL -__stdcall -GetConsoleScreenBufferInfoEx( - HANDLE hConsoleOutput, - PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx - ); - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleScreenBufferInfoEx( - HANDLE hConsoleOutput, - PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx - ); - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleScreenBufferSize( - HANDLE hConsoleOutput, - COORD dwSize - ); - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleCursorPosition( - HANDLE hConsoleOutput, - COORD dwCursorPosition - ); - -__declspec(dllimport) -COORD -__stdcall -GetLargestConsoleWindowSize( - HANDLE hConsoleOutput - ); - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleTextAttribute( - HANDLE hConsoleOutput, - WORD wAttributes - ); - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleWindowInfo( - HANDLE hConsoleOutput, - BOOL bAbsolute, - const SMALL_RECT* lpConsoleWindow - ); - -__declspec(dllimport) -BOOL -__stdcall -WriteConsoleOutputCharacterA( - HANDLE hConsoleOutput, - LPCSTR lpCharacter, - DWORD nLength, - COORD dwWriteCoord, - LPDWORD lpNumberOfCharsWritten - ); - -__declspec(dllimport) -BOOL -__stdcall -WriteConsoleOutputCharacterW( - HANDLE hConsoleOutput, - LPCWSTR lpCharacter, - DWORD nLength, - COORD dwWriteCoord, - LPDWORD lpNumberOfCharsWritten - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -WriteConsoleOutputAttribute( - HANDLE hConsoleOutput, - const WORD* lpAttribute, - DWORD nLength, - COORD dwWriteCoord, - LPDWORD lpNumberOfAttrsWritten - ); - -__declspec(dllimport) -BOOL -__stdcall -ReadConsoleOutputCharacterA( - HANDLE hConsoleOutput, - LPSTR lpCharacter, - DWORD nLength, - COORD dwReadCoord, - LPDWORD lpNumberOfCharsRead - ); - -__declspec(dllimport) -BOOL -__stdcall -ReadConsoleOutputCharacterW( - HANDLE hConsoleOutput, - LPWSTR lpCharacter, - DWORD nLength, - COORD dwReadCoord, - LPDWORD lpNumberOfCharsRead - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -ReadConsoleOutputAttribute( - HANDLE hConsoleOutput, - LPWORD lpAttribute, - DWORD nLength, - COORD dwReadCoord, - LPDWORD lpNumberOfAttrsRead - ); - -__declspec(dllimport) -BOOL -__stdcall -WriteConsoleInputA( - HANDLE hConsoleInput, - const INPUT_RECORD* lpBuffer, - DWORD nLength, - LPDWORD lpNumberOfEventsWritten - ); - -__declspec(dllimport) -BOOL -__stdcall -WriteConsoleInputW( - HANDLE hConsoleInput, - const INPUT_RECORD* lpBuffer, - DWORD nLength, - LPDWORD lpNumberOfEventsWritten - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -ScrollConsoleScreenBufferA( - HANDLE hConsoleOutput, - const SMALL_RECT* lpScrollRectangle, - const SMALL_RECT* lpClipRectangle, - COORD dwDestinationOrigin, - const CHAR_INFO* lpFill - ); - -__declspec(dllimport) -BOOL -__stdcall -ScrollConsoleScreenBufferW( - HANDLE hConsoleOutput, - const SMALL_RECT* lpScrollRectangle, - const SMALL_RECT* lpClipRectangle, - COORD dwDestinationOrigin, - const CHAR_INFO* lpFill - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -WriteConsoleOutputA( - HANDLE hConsoleOutput, - const CHAR_INFO* lpBuffer, - COORD dwBufferSize, - COORD dwBufferCoord, - PSMALL_RECT lpWriteRegion - ); - -__declspec(dllimport) -BOOL -__stdcall -WriteConsoleOutputW( - HANDLE hConsoleOutput, - const CHAR_INFO* lpBuffer, - COORD dwBufferSize, - COORD dwBufferCoord, - PSMALL_RECT lpWriteRegion - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -ReadConsoleOutputA( - HANDLE hConsoleOutput, - PCHAR_INFO lpBuffer, - COORD dwBufferSize, - COORD dwBufferCoord, - PSMALL_RECT lpReadRegion - ); - -__declspec(dllimport) -BOOL -__stdcall -ReadConsoleOutputW( - HANDLE hConsoleOutput, - PCHAR_INFO lpBuffer, - COORD dwBufferSize, - COORD dwBufferCoord, - PSMALL_RECT lpReadRegion - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleTitleA( - LPSTR lpConsoleTitle, - DWORD nSize - ); - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleTitleW( - LPWSTR lpConsoleTitle, - DWORD nSize - ); -# 448 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi2.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetConsoleOriginalTitleA( - LPSTR lpConsoleTitle, - DWORD nSize - ); - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleOriginalTitleW( - LPWSTR lpConsoleTitle, - DWORD nSize - ); -# 471 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi2.h" 3 -__declspec(dllimport) -BOOL -__stdcall -SetConsoleTitleA( - LPCSTR lpConsoleTitle - ); - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleTitleW( - LPCWSTR lpConsoleTitle - ); -# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincon.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi3.h" 1 3 -# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi3.h" 3 -__declspec(dllimport) -BOOL -__stdcall -GetNumberOfConsoleMouseButtons( - LPDWORD lpNumberOfMouseButtons - ); - - - -__declspec(dllimport) -COORD -__stdcall -GetConsoleFontSize( - HANDLE hConsoleOutput, - DWORD nFont - ); - -__declspec(dllimport) -BOOL -__stdcall -GetCurrentConsoleFont( - HANDLE hConsoleOutput, - BOOL bMaximumWindow, - PCONSOLE_FONT_INFO lpConsoleCurrentFont - ); - - - -typedef struct _CONSOLE_FONT_INFOEX { - ULONG cbSize; - DWORD nFont; - COORD dwFontSize; - UINT FontFamily; - UINT FontWeight; - WCHAR FaceName[32]; -} CONSOLE_FONT_INFOEX, *PCONSOLE_FONT_INFOEX; - -__declspec(dllimport) -BOOL -__stdcall -GetCurrentConsoleFontEx( - HANDLE hConsoleOutput, - BOOL bMaximumWindow, - PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx - ); - -__declspec(dllimport) -BOOL -__stdcall -SetCurrentConsoleFontEx( - HANDLE hConsoleOutput, - BOOL bMaximumWindow, - PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx - ); -# 102 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi3.h" 3 -typedef struct _CONSOLE_SELECTION_INFO { - DWORD dwFlags; - COORD dwSelectionAnchor; - SMALL_RECT srSelection; -} CONSOLE_SELECTION_INFO, *PCONSOLE_SELECTION_INFO; - -__declspec(dllimport) -BOOL -__stdcall -GetConsoleSelectionInfo( - PCONSOLE_SELECTION_INFO lpConsoleSelectionInfo - ); - - - - - - - -typedef struct _CONSOLE_HISTORY_INFO { - UINT cbSize; - UINT HistoryBufferSize; - UINT NumberOfHistoryBuffers; - DWORD dwFlags; -} CONSOLE_HISTORY_INFO, *PCONSOLE_HISTORY_INFO; - -__declspec(dllimport) -BOOL -__stdcall -GetConsoleHistoryInfo( - PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo - ); - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleHistoryInfo( - PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -GetConsoleDisplayMode( - LPDWORD lpModeFlags - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleDisplayMode( - HANDLE hConsoleOutput, - DWORD dwFlags, - PCOORD lpNewScreenBufferDimensions - ); - -__declspec(dllimport) -HWND -__stdcall -GetConsoleWindow( - void - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -AddConsoleAliasA( - LPSTR Source, - LPSTR Target, - LPSTR ExeName - ); - -__declspec(dllimport) -BOOL -__stdcall -AddConsoleAliasW( - LPWSTR Source, - LPWSTR Target, - LPWSTR ExeName - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleAliasA( - LPSTR Source, - LPSTR TargetBuffer, - DWORD TargetBufferLength, - LPSTR ExeName - ); - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleAliasW( - LPWSTR Source, - LPWSTR TargetBuffer, - DWORD TargetBufferLength, - LPWSTR ExeName - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleAliasesLengthA( - LPSTR ExeName - ); - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleAliasesLengthW( - LPWSTR ExeName - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleAliasExesLengthA( - void - ); - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleAliasExesLengthW( - void - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleAliasesA( - LPSTR AliasBuffer, - DWORD AliasBufferLength, - LPSTR ExeName - ); - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleAliasesW( - LPWSTR AliasBuffer, - DWORD AliasBufferLength, - LPWSTR ExeName - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleAliasExesA( - LPSTR ExeNameBuffer, - DWORD ExeNameBufferLength - ); - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleAliasExesW( - LPWSTR ExeNameBuffer, - DWORD ExeNameBufferLength - ); -# 307 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi3.h" 3 -__declspec(dllimport) -void -__stdcall -ExpungeConsoleCommandHistoryA( - LPSTR ExeName - ); - -__declspec(dllimport) -void -__stdcall -ExpungeConsoleCommandHistoryW( - LPWSTR ExeName - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleNumberOfCommandsA( - DWORD Number, - LPSTR ExeName - ); - -__declspec(dllimport) -BOOL -__stdcall -SetConsoleNumberOfCommandsW( - DWORD Number, - LPWSTR ExeName - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleCommandHistoryLengthA( - LPSTR ExeName - ); - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleCommandHistoryLengthW( - LPWSTR ExeName - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleCommandHistoryA( - LPSTR Commands, - DWORD CommandBufferLength, - LPSTR ExeName - ); - -__declspec(dllimport) -DWORD -__stdcall -GetConsoleCommandHistoryW( - LPWSTR Commands, - DWORD CommandBufferLength, - LPWSTR ExeName - ); -# 391 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\consoleapi3.h" 3 -__declspec(dllimport) -DWORD -__stdcall -GetConsoleProcessList( - LPDWORD lpdwProcessList, - DWORD dwProcessCount - ); -# 49 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincon.h" 2 3 -# 61 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincon.h" 3 -#pragma warning(pop) -# 184 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winver.h" 1 3 -# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winver.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\verrsrc.h" 1 3 -# 147 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\verrsrc.h" 3 -typedef struct tagVS_FIXEDFILEINFO -{ - DWORD dwSignature; - DWORD dwStrucVersion; - DWORD dwFileVersionMS; - DWORD dwFileVersionLS; - DWORD dwProductVersionMS; - DWORD dwProductVersionLS; - DWORD dwFileFlagsMask; - DWORD dwFileFlags; - DWORD dwFileOS; - DWORD dwFileType; - DWORD dwFileSubtype; - DWORD dwFileDateMS; - DWORD dwFileDateLS; -} VS_FIXEDFILEINFO; -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winver.h" 2 3 -# 34 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winver.h" 3 -DWORD -__stdcall -VerFindFileA( - DWORD uFlags, - LPCSTR szFileName, - LPCSTR szWinDir, - LPCSTR szAppDir, - LPSTR szCurDir, - PUINT puCurDirLen, - LPSTR szDestDir, - PUINT puDestDirLen - ); -DWORD -__stdcall -VerFindFileW( - DWORD uFlags, - LPCWSTR szFileName, - LPCWSTR szWinDir, - LPCWSTR szAppDir, - LPWSTR szCurDir, - PUINT puCurDirLen, - LPWSTR szDestDir, - PUINT puDestDirLen - ); -# 74 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winver.h" 3 -DWORD -__stdcall -VerInstallFileA( - DWORD uFlags, - LPCSTR szSrcFileName, - LPCSTR szDestFileName, - LPCSTR szSrcDir, - LPCSTR szDestDir, - LPCSTR szCurDir, - LPSTR szTmpFile, - PUINT puTmpFileLen - ); -DWORD -__stdcall -VerInstallFileW( - DWORD uFlags, - LPCWSTR szSrcFileName, - LPCWSTR szDestFileName, - LPCWSTR szSrcDir, - LPCWSTR szDestDir, - LPCWSTR szCurDir, - LPWSTR szTmpFile, - PUINT puTmpFileLen - ); -# 115 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winver.h" 3 -DWORD -__stdcall -GetFileVersionInfoSizeA( - LPCSTR lptstrFilename, - LPDWORD lpdwHandle - ); - -DWORD -__stdcall -GetFileVersionInfoSizeW( - LPCWSTR lptstrFilename, - LPDWORD lpdwHandle - ); - - - - - - - -BOOL -__stdcall -GetFileVersionInfoA( - LPCSTR lptstrFilename, - DWORD dwHandle, - DWORD dwLen, - LPVOID lpData - ); - -BOOL -__stdcall -GetFileVersionInfoW( - LPCWSTR lptstrFilename, - DWORD dwHandle, - DWORD dwLen, - LPVOID lpData - ); - - - - - - -DWORD __stdcall GetFileVersionInfoSizeExA( DWORD dwFlags, LPCSTR lpwstrFilename, LPDWORD lpdwHandle); -DWORD __stdcall GetFileVersionInfoSizeExW( DWORD dwFlags, LPCWSTR lpwstrFilename, LPDWORD lpdwHandle); - - - - - - -BOOL __stdcall GetFileVersionInfoExA( DWORD dwFlags, - LPCSTR lpwstrFilename, - DWORD dwHandle, - DWORD dwLen, - LPVOID lpData); -BOOL __stdcall GetFileVersionInfoExW( DWORD dwFlags, - LPCWSTR lpwstrFilename, - DWORD dwHandle, - DWORD dwLen, - LPVOID lpData); -# 203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winver.h" 3 -DWORD -__stdcall -VerLanguageNameA( - DWORD wLang, - LPSTR szLang, - DWORD cchLang - ); -DWORD -__stdcall -VerLanguageNameW( - DWORD wLang, - LPWSTR szLang, - DWORD cchLang - ); - - - - - - -BOOL -__stdcall -VerQueryValueA( - LPCVOID pBlock, - LPCSTR lpSubBlock, - LPVOID * lplpBuffer, - PUINT puLen - ); -BOOL -__stdcall -VerQueryValueW( - LPCVOID pBlock, - LPCWSTR lpSubBlock, - LPVOID * lplpBuffer, - PUINT puLen - ); -# 185 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 1 3 -# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) -# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -typedef LONG LSTATUS; -# 102 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -typedef ACCESS_MASK REGSAM; -# 131 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -struct val_context { - int valuelen; - LPVOID value_context; - LPVOID val_buff_ptr; -}; - -typedef struct val_context *PVALCONTEXT; - -typedef struct pvalueA { - LPSTR pv_valuename; - int pv_valuelen; - LPVOID pv_value_context; - DWORD pv_type; -}PVALUEA, *PPVALUEA; -typedef struct pvalueW { - LPWSTR pv_valuename; - int pv_valuelen; - LPVOID pv_value_context; - DWORD pv_type; -}PVALUEW, *PPVALUEW; - - - - -typedef PVALUEA PVALUE; -typedef PPVALUEA PPVALUE; - - -typedef -DWORD __cdecl -QUERYHANDLER (LPVOID keycontext, PVALCONTEXT val_list, DWORD num_vals, - LPVOID outputbuffer, DWORD *total_outlen, DWORD input_blen); - -typedef QUERYHANDLER *PQUERYHANDLER; - -typedef struct provider_info { - PQUERYHANDLER pi_R0_1val; - PQUERYHANDLER pi_R0_allvals; - PQUERYHANDLER pi_R3_1val; - PQUERYHANDLER pi_R3_allvals; - DWORD pi_flags; - LPVOID pi_key_context; -}REG_PROVIDER; - -typedef struct provider_info *PPROVIDER; - -typedef struct value_entA { - LPSTR ve_valuename; - DWORD ve_valuelen; - DWORD_PTR ve_valueptr; - DWORD ve_type; -}VALENTA, *PVALENTA; -typedef struct value_entW { - LPWSTR ve_valuename; - DWORD ve_valuelen; - DWORD_PTR ve_valueptr; - DWORD ve_type; -}VALENTW, *PVALENTW; - - - - -typedef VALENTA VALENT; -typedef PVALENTA PVALENT; -# 239 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegCloseKey( - HKEY hKey - ); - - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegOverridePredefKey ( - HKEY hKey, - HKEY hNewHKey - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegOpenUserClassesRoot( - HANDLE hToken, - DWORD dwOptions, - REGSAM samDesired, - PHKEY phkResult - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegOpenCurrentUser( - REGSAM samDesired, - PHKEY phkResult - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegDisablePredefinedCache( - void - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegDisablePredefinedCacheEx( - void - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegConnectRegistryA ( - LPCSTR lpMachineName, - HKEY hKey, - PHKEY phkResult - ); -__declspec(dllimport) -LSTATUS -__stdcall -RegConnectRegistryW ( - LPCWSTR lpMachineName, - HKEY hKey, - PHKEY phkResult - ); -# 320 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegConnectRegistryExA ( - LPCSTR lpMachineName, - HKEY hKey, - ULONG Flags, - PHKEY phkResult - ); -__declspec(dllimport) -LSTATUS -__stdcall -RegConnectRegistryExW ( - LPCWSTR lpMachineName, - HKEY hKey, - ULONG Flags, - PHKEY phkResult - ); -# 350 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegCreateKeyA ( - HKEY hKey, - LPCSTR lpSubKey, - PHKEY phkResult - ); -__declspec(dllimport) -LSTATUS -__stdcall -RegCreateKeyW ( - HKEY hKey, - LPCWSTR lpSubKey, - PHKEY phkResult - ); - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegCreateKeyExA( - HKEY hKey, - LPCSTR lpSubKey, - DWORD Reserved, - LPSTR lpClass, - DWORD dwOptions, - REGSAM samDesired, - const LPSECURITY_ATTRIBUTES lpSecurityAttributes, - PHKEY phkResult, - LPDWORD lpdwDisposition - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegCreateKeyExW( - HKEY hKey, - LPCWSTR lpSubKey, - DWORD Reserved, - LPWSTR lpClass, - DWORD dwOptions, - REGSAM samDesired, - const LPSECURITY_ATTRIBUTES lpSecurityAttributes, - PHKEY phkResult, - LPDWORD lpdwDisposition - ); -# 413 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegCreateKeyTransactedA ( - HKEY hKey, - LPCSTR lpSubKey, - DWORD Reserved, - LPSTR lpClass, - DWORD dwOptions, - REGSAM samDesired, - const LPSECURITY_ATTRIBUTES lpSecurityAttributes, - PHKEY phkResult, - LPDWORD lpdwDisposition, - HANDLE hTransaction, - PVOID pExtendedParemeter - ); -__declspec(dllimport) -LSTATUS -__stdcall -RegCreateKeyTransactedW ( - HKEY hKey, - LPCWSTR lpSubKey, - DWORD Reserved, - LPWSTR lpClass, - DWORD dwOptions, - REGSAM samDesired, - const LPSECURITY_ATTRIBUTES lpSecurityAttributes, - PHKEY phkResult, - LPDWORD lpdwDisposition, - HANDLE hTransaction, - PVOID pExtendedParemeter - ); -# 457 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegDeleteKeyA ( - HKEY hKey, - LPCSTR lpSubKey - ); -__declspec(dllimport) -LSTATUS -__stdcall -RegDeleteKeyW ( - HKEY hKey, - LPCWSTR lpSubKey - ); - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegDeleteKeyExA( - HKEY hKey, - LPCSTR lpSubKey, - REGSAM samDesired, - DWORD Reserved - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegDeleteKeyExW( - HKEY hKey, - LPCWSTR lpSubKey, - REGSAM samDesired, - DWORD Reserved - ); -# 508 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegDeleteKeyTransactedA ( - HKEY hKey, - LPCSTR lpSubKey, - REGSAM samDesired, - DWORD Reserved, - HANDLE hTransaction, - PVOID pExtendedParameter - ); -__declspec(dllimport) -LSTATUS -__stdcall -RegDeleteKeyTransactedW ( - HKEY hKey, - LPCWSTR lpSubKey, - REGSAM samDesired, - DWORD Reserved, - HANDLE hTransaction, - PVOID pExtendedParameter - ); -# 542 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LONG -__stdcall -RegDisableReflectionKey ( - HKEY hBase - ); - -__declspec(dllimport) -LONG -__stdcall -RegEnableReflectionKey ( - HKEY hBase - ); - -__declspec(dllimport) -LONG -__stdcall -RegQueryReflectionKey ( - HKEY hBase, - BOOL *bIsReflectionDisabled - ); - - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegDeleteValueA( - HKEY hKey, - LPCSTR lpValueName - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegDeleteValueW( - HKEY hKey, - LPCWSTR lpValueName - ); - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegEnumKeyA ( - HKEY hKey, - DWORD dwIndex, - LPSTR lpName, - DWORD cchName - ); -__declspec(dllimport) -LSTATUS -__stdcall -RegEnumKeyW ( - HKEY hKey, - DWORD dwIndex, - LPWSTR lpName, - DWORD cchName - ); - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegEnumKeyExA( - HKEY hKey, - DWORD dwIndex, - LPSTR lpName, - LPDWORD lpcchName, - LPDWORD lpReserved, - LPSTR lpClass, - LPDWORD lpcchClass, - PFILETIME lpftLastWriteTime - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegEnumKeyExW( - HKEY hKey, - DWORD dwIndex, - LPWSTR lpName, - LPDWORD lpcchName, - LPDWORD lpReserved, - LPWSTR lpClass, - LPDWORD lpcchClass, - PFILETIME lpftLastWriteTime - ); - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegEnumValueA( - HKEY hKey, - DWORD dwIndex, - LPSTR lpValueName, - LPDWORD lpcchValueName, - LPDWORD lpReserved, - LPDWORD lpType, - LPBYTE lpData, - LPDWORD lpcbData - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegEnumValueW( - HKEY hKey, - DWORD dwIndex, - LPWSTR lpValueName, - LPDWORD lpcchValueName, - LPDWORD lpReserved, - LPDWORD lpType, - LPBYTE lpData, - LPDWORD lpcbData - ); -# 687 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegFlushKey( - HKEY hKey - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegGetKeySecurity( - HKEY hKey, - SECURITY_INFORMATION SecurityInformation, - PSECURITY_DESCRIPTOR pSecurityDescriptor, - LPDWORD lpcbSecurityDescriptor - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegLoadKeyA( - HKEY hKey, - LPCSTR lpSubKey, - LPCSTR lpFile - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegLoadKeyW( - HKEY hKey, - LPCWSTR lpSubKey, - LPCWSTR lpFile - ); - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegNotifyChangeKeyValue( - HKEY hKey, - BOOL bWatchSubtree, - DWORD dwNotifyFilter, - HANDLE hEvent, - BOOL fAsynchronous - ); - - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegOpenKeyA ( - HKEY hKey, - LPCSTR lpSubKey, - PHKEY phkResult - ); -__declspec(dllimport) -LSTATUS -__stdcall -RegOpenKeyW ( - HKEY hKey, - LPCWSTR lpSubKey, - PHKEY phkResult - ); - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegOpenKeyExA( - HKEY hKey, - LPCSTR lpSubKey, - DWORD ulOptions, - REGSAM samDesired, - PHKEY phkResult - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegOpenKeyExW( - HKEY hKey, - LPCWSTR lpSubKey, - DWORD ulOptions, - REGSAM samDesired, - PHKEY phkResult - ); -# 799 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegOpenKeyTransactedA ( - HKEY hKey, - LPCSTR lpSubKey, - DWORD ulOptions, - REGSAM samDesired, - PHKEY phkResult, - HANDLE hTransaction, - PVOID pExtendedParemeter - ); -__declspec(dllimport) -LSTATUS -__stdcall -RegOpenKeyTransactedW ( - HKEY hKey, - LPCWSTR lpSubKey, - DWORD ulOptions, - REGSAM samDesired, - PHKEY phkResult, - HANDLE hTransaction, - PVOID pExtendedParemeter - ); -# 835 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegQueryInfoKeyA( - HKEY hKey, - LPSTR lpClass, - LPDWORD lpcchClass, - LPDWORD lpReserved, - LPDWORD lpcSubKeys, - LPDWORD lpcbMaxSubKeyLen, - LPDWORD lpcbMaxClassLen, - LPDWORD lpcValues, - LPDWORD lpcbMaxValueNameLen, - LPDWORD lpcbMaxValueLen, - LPDWORD lpcbSecurityDescriptor, - PFILETIME lpftLastWriteTime - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegQueryInfoKeyW( - HKEY hKey, - LPWSTR lpClass, - LPDWORD lpcchClass, - LPDWORD lpReserved, - LPDWORD lpcSubKeys, - LPDWORD lpcbMaxSubKeyLen, - LPDWORD lpcbMaxClassLen, - LPDWORD lpcValues, - LPDWORD lpcbMaxValueNameLen, - LPDWORD lpcbMaxValueLen, - LPDWORD lpcbSecurityDescriptor, - PFILETIME lpftLastWriteTime - ); -# 882 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegQueryValueA ( - HKEY hKey, - LPCSTR lpSubKey, - LPSTR lpData, - PLONG lpcbData - ); -__declspec(dllimport) -LSTATUS -__stdcall -RegQueryValueW ( - HKEY hKey, - LPCWSTR lpSubKey, - LPWSTR lpData, - PLONG lpcbData - ); -# 908 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegQueryMultipleValuesA( - HKEY hKey, - PVALENTA val_list, - DWORD num_vals, - LPSTR lpValueBuf, - LPDWORD ldwTotsize - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegQueryMultipleValuesW( - HKEY hKey, - PVALENTW val_list, - DWORD num_vals, - LPWSTR lpValueBuf, - LPDWORD ldwTotsize - ); -# 943 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegQueryValueExA( - HKEY hKey, - LPCSTR lpValueName, - LPDWORD lpReserved, - LPDWORD lpType, - LPBYTE lpData, - LPDWORD lpcbData - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegQueryValueExW( - HKEY hKey, - LPCWSTR lpValueName, - LPDWORD lpReserved, - LPDWORD lpType, - LPBYTE lpData, - LPDWORD lpcbData - ); -# 978 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegReplaceKeyA ( - HKEY hKey, - LPCSTR lpSubKey, - LPCSTR lpNewFile, - LPCSTR lpOldFile - ); -__declspec(dllimport) -LSTATUS -__stdcall -RegReplaceKeyW ( - HKEY hKey, - LPCWSTR lpSubKey, - LPCWSTR lpNewFile, - LPCWSTR lpOldFile - ); - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegRestoreKeyA( - HKEY hKey, - LPCSTR lpFile, - DWORD dwFlags - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegRestoreKeyW( - HKEY hKey, - LPCWSTR lpFile, - DWORD dwFlags - ); -# 1033 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegRenameKey( - HKEY hKey, - LPCWSTR lpSubKeyName, - LPCWSTR lpNewKeyName - ); -# 1050 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegSaveKeyA ( - HKEY hKey, - LPCSTR lpFile, - const LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); -__declspec(dllimport) -LSTATUS -__stdcall -RegSaveKeyW ( - HKEY hKey, - LPCWSTR lpFile, - const LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegSetKeySecurity( - HKEY hKey, - SECURITY_INFORMATION SecurityInformation, - PSECURITY_DESCRIPTOR pSecurityDescriptor - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegSetValueA ( - HKEY hKey, - LPCSTR lpSubKey, - DWORD dwType, - LPCSTR lpData, - DWORD cbData - ); -__declspec(dllimport) -LSTATUS -__stdcall -RegSetValueW ( - HKEY hKey, - LPCWSTR lpSubKey, - DWORD dwType, - LPCWSTR lpData, - DWORD cbData - ); -# 1113 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegSetValueExA( - HKEY hKey, - LPCSTR lpValueName, - DWORD Reserved, - DWORD dwType, - const BYTE* lpData, - DWORD cbData - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegSetValueExW( - HKEY hKey, - LPCWSTR lpValueName, - DWORD Reserved, - DWORD dwType, - const BYTE* lpData, - DWORD cbData - ); -# 1148 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegUnLoadKeyA( - HKEY hKey, - LPCSTR lpSubKey - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegUnLoadKeyW( - HKEY hKey, - LPCWSTR lpSubKey - ); -# 1174 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegDeleteKeyValueA( - HKEY hKey, - LPCSTR lpSubKey, - LPCSTR lpValueName - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegDeleteKeyValueW( - HKEY hKey, - LPCWSTR lpSubKey, - LPCWSTR lpValueName - ); - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegSetKeyValueA( - HKEY hKey, - LPCSTR lpSubKey, - LPCSTR lpValueName, - DWORD dwType, - LPCVOID lpData, - DWORD cbData - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegSetKeyValueW( - HKEY hKey, - LPCWSTR lpSubKey, - LPCWSTR lpValueName, - DWORD dwType, - LPCVOID lpData, - DWORD cbData - ); - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegDeleteTreeA( - HKEY hKey, - LPCSTR lpSubKey - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegDeleteTreeW( - HKEY hKey, - LPCWSTR lpSubKey - ); - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegCopyTreeA ( - HKEY hKeySrc, - LPCSTR lpSubKey, - HKEY hKeyDest - ); -# 1263 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegGetValueA( - HKEY hkey, - LPCSTR lpSubKey, - LPCSTR lpValue, - DWORD dwFlags, - LPDWORD pdwType, - - - - - - - - PVOID pvData, - LPDWORD pcbData - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegGetValueW( - HKEY hkey, - LPCWSTR lpSubKey, - LPCWSTR lpValue, - DWORD dwFlags, - LPDWORD pdwType, - - - - - - - - PVOID pvData, - LPDWORD pcbData - ); -# 1312 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -LSTATUS -__stdcall -RegCopyTreeW( - HKEY hKeySrc, - LPCWSTR lpSubKey, - HKEY hKeyDest - ); - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegLoadMUIStringA( - HKEY hKey, - LPCSTR pszValue, - LPSTR pszOutBuf, - DWORD cbOutBuf, - LPDWORD pcbData, - DWORD Flags, - LPCSTR pszDirectory - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegLoadMUIStringW( - HKEY hKey, - LPCWSTR pszValue, - LPWSTR pszOutBuf, - DWORD cbOutBuf, - LPDWORD pcbData, - DWORD Flags, - LPCWSTR pszDirectory - ); - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegLoadAppKeyA( - LPCSTR lpFile, - PHKEY phkResult, - REGSAM samDesired, - DWORD dwOptions, - DWORD Reserved - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegLoadAppKeyW( - LPCWSTR lpFile, - PHKEY phkResult, - REGSAM samDesired, - DWORD dwOptions, - DWORD Reserved - ); -# 1395 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -BOOL -__stdcall -InitiateSystemShutdownA( - LPSTR lpMachineName, - LPSTR lpMessage, - DWORD dwTimeout, - BOOL bForceAppsClosed, - BOOL bRebootAfterShutdown - ); - -__declspec(dllimport) -BOOL -__stdcall -InitiateSystemShutdownW( - LPWSTR lpMachineName, - LPWSTR lpMessage, - DWORD dwTimeout, - BOOL bForceAppsClosed, - BOOL bRebootAfterShutdown - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -AbortSystemShutdownA( - LPSTR lpMachineName - ); -__declspec(dllimport) -BOOL -__stdcall -AbortSystemShutdownW( - LPWSTR lpMachineName - ); -# 1444 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\reason.h" 1 3 -# 1445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 2 3 -# 1466 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -BOOL -__stdcall -InitiateSystemShutdownExA( - LPSTR lpMachineName, - LPSTR lpMessage, - DWORD dwTimeout, - BOOL bForceAppsClosed, - BOOL bRebootAfterShutdown, - DWORD dwReason - ); - - - -__declspec(dllimport) -BOOL -__stdcall -InitiateSystemShutdownExW( - LPWSTR lpMachineName, - LPWSTR lpMessage, - DWORD dwTimeout, - BOOL bForceAppsClosed, - BOOL bRebootAfterShutdown, - DWORD dwReason - ); -# 1519 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -__declspec(dllimport) -DWORD -__stdcall -InitiateShutdownA( - LPSTR lpMachineName, - LPSTR lpMessage, - DWORD dwGracePeriod, - DWORD dwShutdownFlags, - DWORD dwReason - ); -__declspec(dllimport) -DWORD -__stdcall -InitiateShutdownW( - LPWSTR lpMachineName, - LPWSTR lpMessage, - DWORD dwGracePeriod, - DWORD dwShutdownFlags, - DWORD dwReason - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -CheckForHiberboot( - PBOOLEAN pHiberboot, - BOOLEAN bClearFlag - ); - - - - - - - -__declspec(dllimport) -LSTATUS -__stdcall -RegSaveKeyExA( - HKEY hKey, - LPCSTR lpFile, - const LPSECURITY_ATTRIBUTES lpSecurityAttributes, - DWORD Flags - ); - -__declspec(dllimport) -LSTATUS -__stdcall -RegSaveKeyExW( - HKEY hKey, - LPCWSTR lpFile, - const LPSECURITY_ATTRIBUTES lpSecurityAttributes, - DWORD Flags - ); -# 1588 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winreg.h" 3 -#pragma warning(pop) -# 188 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 1 3 -# 37 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) -# 51 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wnnc.h" 1 3 -# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 2 3 -# 100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -typedef struct _NETRESOURCEA { - DWORD dwScope; - DWORD dwType; - DWORD dwDisplayType; - DWORD dwUsage; - LPSTR lpLocalName; - LPSTR lpRemoteName; - LPSTR lpComment ; - LPSTR lpProvider; -}NETRESOURCEA, *LPNETRESOURCEA; -typedef struct _NETRESOURCEW { - DWORD dwScope; - DWORD dwType; - DWORD dwDisplayType; - DWORD dwUsage; - LPWSTR lpLocalName; - LPWSTR lpRemoteName; - LPWSTR lpComment ; - LPWSTR lpProvider; -}NETRESOURCEW, *LPNETRESOURCEW; - - - - -typedef NETRESOURCEA NETRESOURCE; -typedef LPNETRESOURCEA LPNETRESOURCE; -# 166 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -DWORD __stdcall -WNetAddConnectionA( - LPCSTR lpRemoteName, - LPCSTR lpPassword, - LPCSTR lpLocalName - ); - -DWORD __stdcall -WNetAddConnectionW( - LPCWSTR lpRemoteName, - LPCWSTR lpPassword, - LPCWSTR lpLocalName - ); - - - - - - - -DWORD __stdcall -WNetAddConnection2A( - LPNETRESOURCEA lpNetResource, - LPCSTR lpPassword, - LPCSTR lpUserName, - DWORD dwFlags - ); - -DWORD __stdcall -WNetAddConnection2W( - LPNETRESOURCEW lpNetResource, - LPCWSTR lpPassword, - LPCWSTR lpUserName, - DWORD dwFlags - ); - - - - - - - -DWORD __stdcall -WNetAddConnection3A( - HWND hwndOwner, - LPNETRESOURCEA lpNetResource, - LPCSTR lpPassword, - LPCSTR lpUserName, - DWORD dwFlags - ); - -DWORD __stdcall -WNetAddConnection3W( - HWND hwndOwner, - LPNETRESOURCEW lpNetResource, - LPCWSTR lpPassword, - LPCWSTR lpUserName, - DWORD dwFlags - ); -# 233 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -DWORD __stdcall -WNetAddConnection4A( - HWND hwndOwner, - LPNETRESOURCEA lpNetResource, - PVOID pAuthBuffer, - DWORD cbAuthBuffer, - DWORD dwFlags, - PBYTE lpUseOptions, - DWORD cbUseOptions - ); - -DWORD __stdcall -WNetAddConnection4W( - HWND hwndOwner, - LPNETRESOURCEW lpNetResource, - PVOID pAuthBuffer, - DWORD cbAuthBuffer, - DWORD dwFlags, - PBYTE lpUseOptions, - DWORD cbUseOptions - ); -# 262 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -DWORD __stdcall -WNetCancelConnectionA( - LPCSTR lpName, - BOOL fForce - ); - -DWORD __stdcall -WNetCancelConnectionW( - LPCWSTR lpName, - BOOL fForce - ); - - - - - - - -DWORD __stdcall -WNetCancelConnection2A( - LPCSTR lpName, - DWORD dwFlags, - BOOL fForce - ); - -DWORD __stdcall -WNetCancelConnection2W( - LPCWSTR lpName, - DWORD dwFlags, - BOOL fForce - ); - - - - - - - -DWORD __stdcall -WNetGetConnectionA( - LPCSTR lpLocalName, - LPSTR lpRemoteName, - LPDWORD lpnLength - ); - -DWORD __stdcall -WNetGetConnectionW( - LPCWSTR lpLocalName, - LPWSTR lpRemoteName, - LPDWORD lpnLength - ); -# 328 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -DWORD __stdcall -WNetRestoreSingleConnectionW( - HWND hwndParent, - LPCWSTR lpDevice, - BOOL fUseUI - ); -# 353 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -DWORD __stdcall -WNetUseConnectionA( - HWND hwndOwner, - LPNETRESOURCEA lpNetResource, - LPCSTR lpPassword, - LPCSTR lpUserId, - DWORD dwFlags, - LPSTR lpAccessName, - LPDWORD lpBufferSize, - LPDWORD lpResult - ); - -DWORD __stdcall -WNetUseConnectionW( - HWND hwndOwner, - LPNETRESOURCEW lpNetResource, - LPCWSTR lpPassword, - LPCWSTR lpUserId, - DWORD dwFlags, - LPWSTR lpAccessName, - LPDWORD lpBufferSize, - LPDWORD lpResult - ); -# 385 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -DWORD __stdcall -WNetUseConnection4A( - HWND hwndOwner, - LPNETRESOURCEA lpNetResource, - PVOID pAuthBuffer, - DWORD cbAuthBuffer, - DWORD dwFlags, - PBYTE lpUseOptions, - DWORD cbUseOptions, - LPSTR lpAccessName, - LPDWORD lpBufferSize, - LPDWORD lpResult - ); - -DWORD __stdcall -WNetUseConnection4W( - HWND hwndOwner, - LPNETRESOURCEW lpNetResource, - PVOID pAuthBuffer, - DWORD cbAuthBuffer, - DWORD dwFlags, - PBYTE lpUseOptions, - DWORD cbUseOptions, - LPWSTR lpAccessName, - LPDWORD lpBufferSize, - LPDWORD lpResult - ); -# 424 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -DWORD __stdcall -WNetConnectionDialog( - HWND hwnd, - DWORD dwType - ); - - -DWORD __stdcall -WNetDisconnectDialog( - HWND hwnd, - DWORD dwType - ); - - -typedef struct _CONNECTDLGSTRUCTA{ - DWORD cbStructure; - HWND hwndOwner; - LPNETRESOURCEA lpConnRes; - DWORD dwFlags; - DWORD dwDevNum; -} CONNECTDLGSTRUCTA, *LPCONNECTDLGSTRUCTA; -typedef struct _CONNECTDLGSTRUCTW{ - DWORD cbStructure; - HWND hwndOwner; - LPNETRESOURCEW lpConnRes; - DWORD dwFlags; - DWORD dwDevNum; -} CONNECTDLGSTRUCTW, *LPCONNECTDLGSTRUCTW; - - - - -typedef CONNECTDLGSTRUCTA CONNECTDLGSTRUCT; -typedef LPCONNECTDLGSTRUCTA LPCONNECTDLGSTRUCT; -# 474 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -DWORD __stdcall -WNetConnectionDialog1A( - LPCONNECTDLGSTRUCTA lpConnDlgStruct - ); - -DWORD __stdcall -WNetConnectionDialog1W( - LPCONNECTDLGSTRUCTW lpConnDlgStruct - ); - - - - - - -typedef struct _DISCDLGSTRUCTA{ - DWORD cbStructure; - HWND hwndOwner; - LPSTR lpLocalName; - LPSTR lpRemoteName; - DWORD dwFlags; -} DISCDLGSTRUCTA, *LPDISCDLGSTRUCTA; -typedef struct _DISCDLGSTRUCTW{ - DWORD cbStructure; - HWND hwndOwner; - LPWSTR lpLocalName; - LPWSTR lpRemoteName; - DWORD dwFlags; -} DISCDLGSTRUCTW, *LPDISCDLGSTRUCTW; - - - - -typedef DISCDLGSTRUCTA DISCDLGSTRUCT; -typedef LPDISCDLGSTRUCTA LPDISCDLGSTRUCT; - - - - - - -DWORD __stdcall -WNetDisconnectDialog1A( - LPDISCDLGSTRUCTA lpConnDlgStruct - ); - -DWORD __stdcall -WNetDisconnectDialog1W( - LPDISCDLGSTRUCTW lpConnDlgStruct - ); -# 536 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -DWORD __stdcall -WNetOpenEnumA( - DWORD dwScope, - DWORD dwType, - DWORD dwUsage, - LPNETRESOURCEA lpNetResource, - LPHANDLE lphEnum - ); - -DWORD __stdcall -WNetOpenEnumW( - DWORD dwScope, - DWORD dwType, - DWORD dwUsage, - LPNETRESOURCEW lpNetResource, - LPHANDLE lphEnum - ); - - - - - - - -DWORD __stdcall -WNetEnumResourceA( - HANDLE hEnum, - LPDWORD lpcCount, - LPVOID lpBuffer, - LPDWORD lpBufferSize - ); - -DWORD __stdcall -WNetEnumResourceW( - HANDLE hEnum, - LPDWORD lpcCount, - LPVOID lpBuffer, - LPDWORD lpBufferSize - ); - - - - - - - -DWORD __stdcall -WNetCloseEnum( - HANDLE hEnum - ); - - - -DWORD __stdcall -WNetGetResourceParentA( - LPNETRESOURCEA lpNetResource, - LPVOID lpBuffer, - LPDWORD lpcbBuffer - ); - -DWORD __stdcall -WNetGetResourceParentW( - LPNETRESOURCEW lpNetResource, - LPVOID lpBuffer, - LPDWORD lpcbBuffer - ); - - - - - - - -DWORD __stdcall -WNetGetResourceInformationA( - LPNETRESOURCEA lpNetResource, - LPVOID lpBuffer, - LPDWORD lpcbBuffer, - LPSTR *lplpSystem - ); - -DWORD __stdcall -WNetGetResourceInformationW( - LPNETRESOURCEW lpNetResource, - LPVOID lpBuffer, - LPDWORD lpcbBuffer, - LPWSTR *lplpSystem - ); -# 638 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -typedef struct _UNIVERSAL_NAME_INFOA { - LPSTR lpUniversalName; -}UNIVERSAL_NAME_INFOA, *LPUNIVERSAL_NAME_INFOA; -typedef struct _UNIVERSAL_NAME_INFOW { - LPWSTR lpUniversalName; -}UNIVERSAL_NAME_INFOW, *LPUNIVERSAL_NAME_INFOW; - - - - -typedef UNIVERSAL_NAME_INFOA UNIVERSAL_NAME_INFO; -typedef LPUNIVERSAL_NAME_INFOA LPUNIVERSAL_NAME_INFO; - - -typedef struct _REMOTE_NAME_INFOA { - LPSTR lpUniversalName; - LPSTR lpConnectionName; - LPSTR lpRemainingPath; -}REMOTE_NAME_INFOA, *LPREMOTE_NAME_INFOA; -typedef struct _REMOTE_NAME_INFOW { - LPWSTR lpUniversalName; - LPWSTR lpConnectionName; - LPWSTR lpRemainingPath; -}REMOTE_NAME_INFOW, *LPREMOTE_NAME_INFOW; - - - - -typedef REMOTE_NAME_INFOA REMOTE_NAME_INFO; -typedef LPREMOTE_NAME_INFOA LPREMOTE_NAME_INFO; - - - -DWORD __stdcall -WNetGetUniversalNameA( - LPCSTR lpLocalPath, - DWORD dwInfoLevel, - LPVOID lpBuffer, - LPDWORD lpBufferSize - ); - -DWORD __stdcall -WNetGetUniversalNameW( - LPCWSTR lpLocalPath, - DWORD dwInfoLevel, - LPVOID lpBuffer, - LPDWORD lpBufferSize - ); -# 696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -DWORD __stdcall -WNetGetUserA( - LPCSTR lpName, - LPSTR lpUserName, - LPDWORD lpnLength - ); - - - - -DWORD __stdcall -WNetGetUserW( - LPCWSTR lpName, - LPWSTR lpUserName, - LPDWORD lpnLength - ); -# 734 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -DWORD __stdcall -WNetGetProviderNameA( - DWORD dwNetType, - LPSTR lpProviderName, - LPDWORD lpBufferSize - ); - -DWORD __stdcall -WNetGetProviderNameW( - DWORD dwNetType, - LPWSTR lpProviderName, - LPDWORD lpBufferSize - ); - - - - - - -typedef struct _NETINFOSTRUCT{ - DWORD cbStructure; - DWORD dwProviderVersion; - DWORD dwStatus; - DWORD dwCharacteristics; - ULONG_PTR dwHandle; - WORD wNetType; - DWORD dwPrinters; - DWORD dwDrives; -} NETINFOSTRUCT, *LPNETINFOSTRUCT; - - - - - - -DWORD __stdcall -WNetGetNetworkInformationA( - LPCSTR lpProvider, - LPNETINFOSTRUCT lpNetInfoStruct - ); - -DWORD __stdcall -WNetGetNetworkInformationW( - LPCWSTR lpProvider, - LPNETINFOSTRUCT lpNetInfoStruct - ); -# 793 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -DWORD __stdcall -WNetGetLastErrorA( - LPDWORD lpError, - LPSTR lpErrorBuf, - DWORD nErrorBufSize, - LPSTR lpNameBuf, - DWORD nNameBufSize - ); - -DWORD __stdcall -WNetGetLastErrorW( - LPDWORD lpError, - LPWSTR lpErrorBuf, - DWORD nErrorBufSize, - LPWSTR lpNameBuf, - DWORD nNameBufSize - ); -# 885 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -typedef struct _NETCONNECTINFOSTRUCT{ - DWORD cbStructure; - DWORD dwFlags; - DWORD dwSpeed; - DWORD dwDelay; - DWORD dwOptDataSize; -} NETCONNECTINFOSTRUCT, *LPNETCONNECTINFOSTRUCT; - - - - - - - -DWORD __stdcall -MultinetGetConnectionPerformanceA( - LPNETRESOURCEA lpNetResource, - LPNETCONNECTINFOSTRUCT lpNetConnectInfoStruct - ); - -DWORD __stdcall -MultinetGetConnectionPerformanceW( - LPNETRESOURCEW lpNetResource, - LPNETCONNECTINFOSTRUCT lpNetConnectInfoStruct - ); -# 923 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winnetwk.h" 3 -#pragma warning(pop) -# 191 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\cderr.h" 1 3 -# 195 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 1 3 -# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) -# 60 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 3 -typedef struct { - - unsigned short bAppReturnCode:8, - reserved:6, - fBusy:1, - fAck:1; - - - -} DDEACK; -# 79 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 3 -typedef struct { - - unsigned short reserved:14, - fDeferUpd:1, - fAckReq:1; - - - - short cfFormat; -} DDEADVISE; -# 100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 3 -typedef struct { - - unsigned short unused:12, - fResponse:1, - fRelease:1, - reserved:1, - fAckReq:1; - - - - short cfFormat; - BYTE Value[1]; -} DDEDATA; -# 124 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 3 -typedef struct { - - unsigned short unused:13, - - fRelease:1, - fReserved:2; - - - - short cfFormat; - BYTE Value[1]; - - -} DDEPOKE; -# 149 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 3 -typedef struct { - - unsigned short unused:13, - fRelease:1, - fDeferUpd:1, - fAckReq:1; - - - - short cfFormat; -} DDELN; - -typedef struct { - - unsigned short unused:12, - fAck:1, - fRelease:1, - fReserved:1, - fAckReq:1; - - - - short cfFormat; - BYTE rgb[1]; -} DDEUP; - - - - - - -BOOL -__stdcall -DdeSetQualityOfService( - HWND hwndClient, - const SECURITY_QUALITY_OF_SERVICE *pqosNew, - PSECURITY_QUALITY_OF_SERVICE pqosPrev); - -BOOL -__stdcall -ImpersonateDdeClientWindow( - HWND hWndClient, - HWND hWndServer); - - - - -LPARAM __stdcall PackDDElParam( UINT msg, UINT_PTR uiLo, UINT_PTR uiHi); -BOOL __stdcall UnpackDDElParam( UINT msg, LPARAM lParam, PUINT_PTR puiLo, PUINT_PTR puiHi); -BOOL __stdcall FreeDDElParam( UINT msg, LPARAM lParam); -LPARAM __stdcall ReuseDDElParam(LPARAM lParam, UINT msgIn, UINT msgOut, UINT_PTR uiLo, UINT_PTR uiHi); -# 209 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dde.h" 3 -#pragma warning(pop) -# 196 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 1 3 -# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) -# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 3 -struct HCONVLIST__{int unused;}; typedef struct HCONVLIST__ *HCONVLIST; -struct HCONV__{int unused;}; typedef struct HCONV__ *HCONV; -struct HSZ__{int unused;}; typedef struct HSZ__ *HSZ; -struct HDDEDATA__{int unused;}; typedef struct HDDEDATA__ *HDDEDATA; - - - - -typedef struct tagHSZPAIR { - HSZ hszSvc; - HSZ hszTopic; -} HSZPAIR, *PHSZPAIR; - - - - -typedef struct tagCONVCONTEXT { - UINT cb; - UINT wFlags; - UINT wCountryID; - int iCodePage; - DWORD dwLangID; - DWORD dwSecurity; - SECURITY_QUALITY_OF_SERVICE qos; -} CONVCONTEXT, *PCONVCONTEXT; - - - - -typedef struct tagCONVINFO { - DWORD cb; - DWORD_PTR hUser; - HCONV hConvPartner; - HSZ hszSvcPartner; - HSZ hszServiceReq; - HSZ hszTopic; - HSZ hszItem; - UINT wFmt; - UINT wType; - UINT wStatus; - UINT wConvst; - UINT wLastError; - HCONVLIST hConvList; - CONVCONTEXT ConvCtxt; - HWND hwnd; - HWND hwndPartner; -} CONVINFO, *PCONVINFO; -# 212 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 3 -typedef HDDEDATA __stdcall FNCALLBACK(UINT wType, UINT wFmt, HCONV hConv, - HSZ hsz1, HSZ hsz2, HDDEDATA hData, ULONG_PTR dwData1, ULONG_PTR dwData2); -typedef HDDEDATA (__stdcall *PFNCALLBACK)(UINT wType, UINT wFmt, HCONV hConv, - HSZ hsz1, HSZ hsz2, HDDEDATA hData, ULONG_PTR dwData1, ULONG_PTR dwData2); - - - - - -UINT -__stdcall -DdeInitializeA( - LPDWORD pidInst, - PFNCALLBACK pfnCallback, - DWORD afCmd, - DWORD ulRes); -UINT -__stdcall -DdeInitializeW( - LPDWORD pidInst, - PFNCALLBACK pfnCallback, - DWORD afCmd, - DWORD ulRes); -# 272 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 3 -BOOL -__stdcall -DdeUninitialize( - DWORD idInst); - - - - -HCONVLIST -__stdcall -DdeConnectList( - DWORD idInst, - HSZ hszService, - HSZ hszTopic, - HCONVLIST hConvList, - PCONVCONTEXT pCC); - -HCONV -__stdcall -DdeQueryNextServer( - HCONVLIST hConvList, - HCONV hConvPrev); -BOOL -__stdcall -DdeDisconnectList( - HCONVLIST hConvList); - - - - -HCONV -__stdcall -DdeConnect( - DWORD idInst, - HSZ hszService, - HSZ hszTopic, - PCONVCONTEXT pCC); - -BOOL -__stdcall -DdeDisconnect( - HCONV hConv); - -HCONV -__stdcall -DdeReconnect( - HCONV hConv); - -UINT -__stdcall -DdeQueryConvInfo( - HCONV hConv, - DWORD idTransaction, - PCONVINFO pConvInfo); - -BOOL -__stdcall -DdeSetUserHandle( - HCONV hConv, - DWORD id, - DWORD_PTR hUser); - -BOOL -__stdcall -DdeAbandonTransaction( - DWORD idInst, - HCONV hConv, - DWORD idTransaction); - - - - - -BOOL -__stdcall -DdePostAdvise( - DWORD idInst, - HSZ hszTopic, - HSZ hszItem); - -BOOL -__stdcall -DdeEnableCallback( - DWORD idInst, - HCONV hConv, - UINT wCmd); - -BOOL -__stdcall -DdeImpersonateClient( - HCONV hConv); - - - - - - - -HDDEDATA -__stdcall -DdeNameService( - DWORD idInst, - HSZ hsz1, - HSZ hsz2, - UINT afCmd); -# 386 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 3 -HDDEDATA -__stdcall -DdeClientTransaction( - LPBYTE pData, - DWORD cbData, - HCONV hConv, - HSZ hszItem, - UINT wFmt, - UINT wType, - DWORD dwTimeout, - LPDWORD pdwResult); - - - - - - -HDDEDATA -__stdcall -DdeCreateDataHandle( - DWORD idInst, - LPBYTE pSrc, - DWORD cb, - DWORD cbOff, - HSZ hszItem, - UINT wFmt, - UINT afCmd); - -HDDEDATA -__stdcall -DdeAddData( - HDDEDATA hData, - LPBYTE pSrc, - DWORD cb, - DWORD cbOff); - -DWORD -__stdcall -DdeGetData( - HDDEDATA hData, - LPBYTE pDst, - DWORD cbMax, - DWORD cbOff); - -LPBYTE -__stdcall -DdeAccessData( - HDDEDATA hData, - LPDWORD pcbDataSize); - -BOOL -__stdcall -DdeUnaccessData( - HDDEDATA hData); - -BOOL -__stdcall -DdeFreeDataHandle( - HDDEDATA hData); - - - - -UINT -__stdcall -DdeGetLastError( - DWORD idInst); -# 480 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 3 -HSZ -__stdcall -DdeCreateStringHandleA( - DWORD idInst, - LPCSTR psz, - int iCodePage); -HSZ -__stdcall -DdeCreateStringHandleW( - DWORD idInst, - LPCWSTR psz, - int iCodePage); - - - - - - -DWORD -__stdcall -DdeQueryStringA( - DWORD idInst, - HSZ hsz, - LPSTR psz, - DWORD cchMax, - int iCodePage); -DWORD -__stdcall -DdeQueryStringW( - DWORD idInst, - HSZ hsz, - LPWSTR psz, - DWORD cchMax, - int iCodePage); - - - - - - -BOOL -__stdcall -DdeFreeStringHandle( - DWORD idInst, - HSZ hsz); - -BOOL -__stdcall -DdeKeepStringHandle( - DWORD idInst, - HSZ hsz); - -int -__stdcall -DdeCmpStringHandles( - HSZ hsz1, - HSZ hsz2); - - - - - - -typedef struct tagDDEML_MSG_HOOK_DATA { - UINT_PTR uiLo; - UINT_PTR uiHi; - DWORD cbData; - DWORD Data[8]; -} DDEML_MSG_HOOK_DATA, *PDDEML_MSG_HOOK_DATA; - - -typedef struct tagMONMSGSTRUCT { - UINT cb; - HWND hwndTo; - DWORD dwTime; - HANDLE hTask; - UINT wMsg; - WPARAM wParam; - LPARAM lParam; - DDEML_MSG_HOOK_DATA dmhd; -} MONMSGSTRUCT, *PMONMSGSTRUCT; - -typedef struct tagMONCBSTRUCT { - UINT cb; - DWORD dwTime; - HANDLE hTask; - DWORD dwRet; - UINT wType; - UINT wFmt; - HCONV hConv; - HSZ hsz1; - HSZ hsz2; - HDDEDATA hData; - ULONG_PTR dwData1; - ULONG_PTR dwData2; - CONVCONTEXT cc; - DWORD cbData; - DWORD Data[8]; -} MONCBSTRUCT, *PMONCBSTRUCT; - -typedef struct tagMONHSZSTRUCTA { - UINT cb; - BOOL fsAction; - DWORD dwTime; - HSZ hsz; - HANDLE hTask; - CHAR str[1]; -} MONHSZSTRUCTA, *PMONHSZSTRUCTA; -typedef struct tagMONHSZSTRUCTW { - UINT cb; - BOOL fsAction; - DWORD dwTime; - HSZ hsz; - HANDLE hTask; - WCHAR str[1]; -} MONHSZSTRUCTW, *PMONHSZSTRUCTW; - - - - -typedef MONHSZSTRUCTA MONHSZSTRUCT; -typedef PMONHSZSTRUCTA PMONHSZSTRUCT; - - - - - - - -typedef struct tagMONERRSTRUCT { - UINT cb; - UINT wLastError; - DWORD dwTime; - HANDLE hTask; -} MONERRSTRUCT, *PMONERRSTRUCT; - -typedef struct tagMONLINKSTRUCT { - UINT cb; - DWORD dwTime; - HANDLE hTask; - BOOL fEstablished; - BOOL fNoData; - HSZ hszSvc; - HSZ hszTopic; - HSZ hszItem; - UINT wFmt; - BOOL fServer; - HCONV hConvServer; - HCONV hConvClient; -} MONLINKSTRUCT, *PMONLINKSTRUCT; - -typedef struct tagMONCONVSTRUCT { - UINT cb; - BOOL fConnect; - DWORD dwTime; - HANDLE hTask; - HSZ hszSvc; - HSZ hszTopic; - HCONV hConvClient; - HCONV hConvServer; -} MONCONVSTRUCT, *PMONCONVSTRUCT; -# 670 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ddeml.h" 3 -#pragma warning(pop) -# 197 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dlgs.h" 1 3 -# 264 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dlgs.h" 3 -typedef struct tagCRGB -{ - BYTE bRed; - BYTE bGreen; - BYTE bBlue; - BYTE bExtra; -} CRGB; -# 198 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\lzexpand.h" 1 3 -# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\lzexpand.h" 3 -INT -__stdcall -LZStart( - void - ); - -void -__stdcall -LZDone( - void - ); - - - - -LONG -__stdcall -CopyLZFile( - INT hfSource, - INT hfDest - ); - - - -LONG -__stdcall -LZCopy( - INT hfSource, - INT hfDest - ); - - - -INT -__stdcall -LZInit( - INT hfSource - ); - - - -INT -__stdcall -GetExpandedNameA( - LPSTR lpszSource, - LPSTR lpszBuffer - ); - - -INT -__stdcall -GetExpandedNameW( - LPWSTR lpszSource, - LPWSTR lpszBuffer - ); -# 115 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\lzexpand.h" 3 -INT -__stdcall -LZOpenFileA( - LPSTR lpFileName, - LPOFSTRUCT lpReOpenBuf, - WORD wStyle - ); - - -INT -__stdcall -LZOpenFileW( - LPWSTR lpFileName, - LPOFSTRUCT lpReOpenBuf, - WORD wStyle - ); -# 139 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\lzexpand.h" 3 -LONG -__stdcall -LZSeek( - INT hFile, - LONG lOffset, - INT iOrigin - ); - - - -INT -__stdcall -LZRead( - INT hFile, - CHAR* lpBuffer, - INT cbRead - ); - -void -__stdcall -LZClose( - INT hFile - ); -# 200 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 1 3 -# 34 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 -# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 3 -#pragma warning(disable: 4201) - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,1) -# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 2 3 -# 94 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 3 -typedef UINT MMVERSION; - - - -typedef UINT MMRESULT; - - - -typedef UINT *LPUINT; - - - - -typedef struct mmtime_tag -{ - UINT wType; - union - { - DWORD ms; - DWORD sample; - DWORD cb; - DWORD ticks; - - - struct - { - BYTE hour; - BYTE min; - BYTE sec; - BYTE frame; - BYTE fps; - BYTE dummy; - - BYTE pad[2]; - - } smpte; - - - struct - { - DWORD songptrpos; - } midi; - } u; -} MMTIME, *PMMTIME, *NPMMTIME, *LPMMTIME; -# 275 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 3 -struct HDRVR__{int unused;}; typedef struct HDRVR__ *HDRVR; -# 297 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 3 -typedef void (__stdcall DRVCALLBACK)(HDRVR hdrvr, UINT uMsg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2); - -typedef DRVCALLBACK *LPDRVCALLBACK; - -typedef DRVCALLBACK *PDRVCALLBACK; -# 312 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 313 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 2 3 -# 35 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,1) -# 38 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 -# 61 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 1 3 -# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 2 3 -# 36 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef DWORD MCIERROR; - - - - -typedef UINT MCIDEVICEID; - - -typedef UINT (__stdcall *YIELDPROC)(MCIDEVICEID mciId, DWORD dwYieldData); - - - - -__declspec(dllimport) -MCIERROR -__stdcall -mciSendCommandA( - MCIDEVICEID mciId, - UINT uMsg, - DWORD_PTR dwParam1, - DWORD_PTR dwParam2 - ); - -__declspec(dllimport) -MCIERROR -__stdcall -mciSendCommandW( - MCIDEVICEID mciId, - UINT uMsg, - DWORD_PTR dwParam1, - DWORD_PTR dwParam2 - ); - - - - - - -__declspec(dllimport) -MCIERROR -__stdcall -mciSendStringA( - LPCSTR lpstrCommand, - LPSTR lpstrReturnString, - UINT uReturnLength, - HWND hwndCallback - ); - -__declspec(dllimport) -MCIERROR -__stdcall -mciSendStringW( - LPCWSTR lpstrCommand, - LPWSTR lpstrReturnString, - UINT uReturnLength, - HWND hwndCallback - ); - - - - - - -__declspec(dllimport) -MCIDEVICEID -__stdcall -mciGetDeviceIDA( - LPCSTR pszDevice - ); - -__declspec(dllimport) -MCIDEVICEID -__stdcall -mciGetDeviceIDW( - LPCWSTR pszDevice - ); - - - - - - -__declspec(dllimport) -MCIDEVICEID -__stdcall -mciGetDeviceIDFromElementIDA( - DWORD dwElementID, - LPCSTR lpstrType - ); - -__declspec(dllimport) -MCIDEVICEID -__stdcall -mciGetDeviceIDFromElementIDW( - DWORD dwElementID, - LPCWSTR lpstrType - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -mciGetErrorStringA( - MCIERROR mcierr, - LPSTR pszText, - UINT cchText - ); - -__declspec(dllimport) -BOOL -__stdcall -mciGetErrorStringW( - MCIERROR mcierr, - LPWSTR pszText, - UINT cchText - ); -# 169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -mciSetYieldProc( - MCIDEVICEID mciId, - YIELDPROC fpYieldProc, - DWORD dwYieldData - ); - - - -__declspec(dllimport) -HTASK -__stdcall -mciGetCreatorTask( - MCIDEVICEID mciId - ); - -__declspec(dllimport) -YIELDPROC -__stdcall -mciGetYieldProc( - MCIDEVICEID mciId, - LPDWORD pdwYieldData - ); -# 494 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_GENERIC_PARMS { - DWORD_PTR dwCallback; -} MCI_GENERIC_PARMS, *PMCI_GENERIC_PARMS, *LPMCI_GENERIC_PARMS; - - - - -typedef struct tagMCI_OPEN_PARMSA { - DWORD_PTR dwCallback; - MCIDEVICEID wDeviceID; - LPCSTR lpstrDeviceType; - LPCSTR lpstrElementName; - LPCSTR lpstrAlias; -} MCI_OPEN_PARMSA, *PMCI_OPEN_PARMSA, *LPMCI_OPEN_PARMSA; -typedef struct tagMCI_OPEN_PARMSW { - DWORD_PTR dwCallback; - MCIDEVICEID wDeviceID; - LPCWSTR lpstrDeviceType; - LPCWSTR lpstrElementName; - LPCWSTR lpstrAlias; -} MCI_OPEN_PARMSW, *PMCI_OPEN_PARMSW, *LPMCI_OPEN_PARMSW; - - - - - -typedef MCI_OPEN_PARMSA MCI_OPEN_PARMS; -typedef PMCI_OPEN_PARMSA PMCI_OPEN_PARMS; -typedef LPMCI_OPEN_PARMSA LPMCI_OPEN_PARMS; -# 537 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_PLAY_PARMS { - DWORD_PTR dwCallback; - DWORD dwFrom; - DWORD dwTo; -} MCI_PLAY_PARMS, *PMCI_PLAY_PARMS, *LPMCI_PLAY_PARMS; - - -typedef struct tagMCI_SEEK_PARMS { - DWORD_PTR dwCallback; - DWORD dwTo; -} MCI_SEEK_PARMS, *PMCI_SEEK_PARMS, *LPMCI_SEEK_PARMS; - - -typedef struct tagMCI_STATUS_PARMS { - DWORD_PTR dwCallback; - DWORD_PTR dwReturn; - DWORD dwItem; - DWORD dwTrack; -} MCI_STATUS_PARMS, *PMCI_STATUS_PARMS, * LPMCI_STATUS_PARMS; - - - - -typedef struct tagMCI_INFO_PARMSA { - DWORD_PTR dwCallback; - LPSTR lpstrReturn; - DWORD dwRetSize; -} MCI_INFO_PARMSA, * LPMCI_INFO_PARMSA; -typedef struct tagMCI_INFO_PARMSW { - DWORD_PTR dwCallback; - LPWSTR lpstrReturn; - DWORD dwRetSize; -} MCI_INFO_PARMSW, * LPMCI_INFO_PARMSW; - - - - -typedef MCI_INFO_PARMSA MCI_INFO_PARMS; -typedef LPMCI_INFO_PARMSA LPMCI_INFO_PARMS; -# 587 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_GETDEVCAPS_PARMS { - DWORD_PTR dwCallback; - DWORD dwReturn; - DWORD dwItem; -} MCI_GETDEVCAPS_PARMS, *PMCI_GETDEVCAPS_PARMS, * LPMCI_GETDEVCAPS_PARMS; - - - - -typedef struct tagMCI_SYSINFO_PARMSA { - DWORD_PTR dwCallback; - LPSTR lpstrReturn; - DWORD dwRetSize; - DWORD dwNumber; - UINT wDeviceType; -} MCI_SYSINFO_PARMSA, *PMCI_SYSINFO_PARMSA, * LPMCI_SYSINFO_PARMSA; -typedef struct tagMCI_SYSINFO_PARMSW { - DWORD_PTR dwCallback; - LPWSTR lpstrReturn; - DWORD dwRetSize; - DWORD dwNumber; - UINT wDeviceType; -} MCI_SYSINFO_PARMSW, *PMCI_SYSINFO_PARMSW, * LPMCI_SYSINFO_PARMSW; - - - - - -typedef MCI_SYSINFO_PARMSA MCI_SYSINFO_PARMS; -typedef PMCI_SYSINFO_PARMSA PMCI_SYSINFO_PARMS; -typedef LPMCI_SYSINFO_PARMSA LPMCI_SYSINFO_PARMS; -# 631 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_SET_PARMS { - DWORD_PTR dwCallback; - DWORD dwTimeFormat; - DWORD dwAudio; -} MCI_SET_PARMS, *PMCI_SET_PARMS, *LPMCI_SET_PARMS; - - -typedef struct tagMCI_BREAK_PARMS { - DWORD_PTR dwCallback; - - int nVirtKey; - HWND hwndBreak; - - - - - - -} MCI_BREAK_PARMS, *PMCI_BREAK_PARMS, * LPMCI_BREAK_PARMS; - - - - -typedef struct tagMCI_SAVE_PARMSA { - DWORD_PTR dwCallback; - LPCSTR lpfilename; -} MCI_SAVE_PARMSA, *PMCI_SAVE_PARMSA, * LPMCI_SAVE_PARMSA; -typedef struct tagMCI_SAVE_PARMSW { - DWORD_PTR dwCallback; - LPCWSTR lpfilename; -} MCI_SAVE_PARMSW, *PMCI_SAVE_PARMSW, * LPMCI_SAVE_PARMSW; - - - - - -typedef MCI_SAVE_PARMSA MCI_SAVE_PARMS; -typedef PMCI_SAVE_PARMSA PMCI_SAVE_PARMS; -typedef LPMCI_SAVE_PARMSA LPMCI_SAVE_PARMS; -# 682 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_LOAD_PARMSA { - DWORD_PTR dwCallback; - LPCSTR lpfilename; -} MCI_LOAD_PARMSA, *PMCI_LOAD_PARMSA, * LPMCI_LOAD_PARMSA; -typedef struct tagMCI_LOAD_PARMSW { - DWORD_PTR dwCallback; - LPCWSTR lpfilename; -} MCI_LOAD_PARMSW, *PMCI_LOAD_PARMSW, * LPMCI_LOAD_PARMSW; - - - - - -typedef MCI_LOAD_PARMSA MCI_LOAD_PARMS; -typedef PMCI_LOAD_PARMSA PMCI_LOAD_PARMS; -typedef LPMCI_LOAD_PARMSA LPMCI_LOAD_PARMS; -# 708 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_RECORD_PARMS { - DWORD_PTR dwCallback; - DWORD dwFrom; - DWORD dwTo; -} MCI_RECORD_PARMS, *LPMCI_RECORD_PARMS; -# 766 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_VD_PLAY_PARMS { - DWORD_PTR dwCallback; - DWORD dwFrom; - DWORD dwTo; - DWORD dwSpeed; -} MCI_VD_PLAY_PARMS, *PMCI_VD_PLAY_PARMS, *LPMCI_VD_PLAY_PARMS; - - -typedef struct tagMCI_VD_STEP_PARMS { - DWORD_PTR dwCallback; - DWORD dwFrames; -} MCI_VD_STEP_PARMS, *PMCI_VD_STEP_PARMS, *LPMCI_VD_STEP_PARMS; - - - - -typedef struct tagMCI_VD_ESCAPE_PARMSA { - DWORD_PTR dwCallback; - LPCSTR lpstrCommand; -} MCI_VD_ESCAPE_PARMSA, *PMCI_VD_ESCAPE_PARMSA, *LPMCI_VD_ESCAPE_PARMSA; -typedef struct tagMCI_VD_ESCAPE_PARMSW { - DWORD_PTR dwCallback; - LPCWSTR lpstrCommand; -} MCI_VD_ESCAPE_PARMSW, *PMCI_VD_ESCAPE_PARMSW, *LPMCI_VD_ESCAPE_PARMSW; - - - - - -typedef MCI_VD_ESCAPE_PARMSA MCI_VD_ESCAPE_PARMS; -typedef PMCI_VD_ESCAPE_PARMSA PMCI_VD_ESCAPE_PARMS; -typedef LPMCI_VD_ESCAPE_PARMSA LPMCI_VD_ESCAPE_PARMS; -# 857 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_WAVE_OPEN_PARMSA { - DWORD_PTR dwCallback; - MCIDEVICEID wDeviceID; - LPCSTR lpstrDeviceType; - LPCSTR lpstrElementName; - LPCSTR lpstrAlias; - DWORD dwBufferSeconds; -} MCI_WAVE_OPEN_PARMSA, *PMCI_WAVE_OPEN_PARMSA, *LPMCI_WAVE_OPEN_PARMSA; -typedef struct tagMCI_WAVE_OPEN_PARMSW { - DWORD_PTR dwCallback; - MCIDEVICEID wDeviceID; - LPCWSTR lpstrDeviceType; - LPCWSTR lpstrElementName; - LPCWSTR lpstrAlias; - DWORD dwBufferSeconds; -} MCI_WAVE_OPEN_PARMSW, *PMCI_WAVE_OPEN_PARMSW, *LPMCI_WAVE_OPEN_PARMSW; - - - - - -typedef MCI_WAVE_OPEN_PARMSA MCI_WAVE_OPEN_PARMS; -typedef PMCI_WAVE_OPEN_PARMSA PMCI_WAVE_OPEN_PARMS; -typedef LPMCI_WAVE_OPEN_PARMSA LPMCI_WAVE_OPEN_PARMS; -# 896 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_WAVE_DELETE_PARMS { - DWORD_PTR dwCallback; - DWORD dwFrom; - DWORD dwTo; -} MCI_WAVE_DELETE_PARMS, *PMCI_WAVE_DELETE_PARMS, *LPMCI_WAVE_DELETE_PARMS; - - -typedef struct tagMCI_WAVE_SET_PARMS { - DWORD_PTR dwCallback; - DWORD dwTimeFormat; - DWORD dwAudio; - - UINT wInput; - UINT wOutput; - - - - - - - WORD wFormatTag; - WORD wReserved2; - WORD nChannels; - WORD wReserved3; - DWORD nSamplesPerSec; - DWORD nAvgBytesPerSec; - WORD nBlockAlign; - WORD wReserved4; - WORD wBitsPerSample; - WORD wReserved5; -} MCI_WAVE_SET_PARMS, *PMCI_WAVE_SET_PARMS, * LPMCI_WAVE_SET_PARMS; -# 965 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_SEQ_SET_PARMS { - DWORD_PTR dwCallback; - DWORD dwTimeFormat; - DWORD dwAudio; - DWORD dwTempo; - DWORD dwPort; - DWORD dwSlave; - DWORD dwMaster; - DWORD dwOffset; -} MCI_SEQ_SET_PARMS, *PMCI_SEQ_SET_PARMS, * LPMCI_SEQ_SET_PARMS; -# 1043 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_ANIM_OPEN_PARMSA { - DWORD_PTR dwCallback; - MCIDEVICEID wDeviceID; - LPCSTR lpstrDeviceType; - LPCSTR lpstrElementName; - LPCSTR lpstrAlias; - DWORD dwStyle; - HWND hWndParent; -} MCI_ANIM_OPEN_PARMSA, *PMCI_ANIM_OPEN_PARMSA, *LPMCI_ANIM_OPEN_PARMSA; -typedef struct tagMCI_ANIM_OPEN_PARMSW { - DWORD_PTR dwCallback; - MCIDEVICEID wDeviceID; - LPCWSTR lpstrDeviceType; - LPCWSTR lpstrElementName; - LPCWSTR lpstrAlias; - DWORD dwStyle; - HWND hWndParent; -} MCI_ANIM_OPEN_PARMSW, *PMCI_ANIM_OPEN_PARMSW, *LPMCI_ANIM_OPEN_PARMSW; - - - - - -typedef MCI_ANIM_OPEN_PARMSA MCI_ANIM_OPEN_PARMS; -typedef PMCI_ANIM_OPEN_PARMSA PMCI_ANIM_OPEN_PARMS; -typedef LPMCI_ANIM_OPEN_PARMSA LPMCI_ANIM_OPEN_PARMS; -# 1086 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_ANIM_PLAY_PARMS { - DWORD_PTR dwCallback; - DWORD dwFrom; - DWORD dwTo; - DWORD dwSpeed; -} MCI_ANIM_PLAY_PARMS, *PMCI_ANIM_PLAY_PARMS, *LPMCI_ANIM_PLAY_PARMS; - - -typedef struct tagMCI_ANIM_STEP_PARMS { - DWORD_PTR dwCallback; - DWORD dwFrames; -} MCI_ANIM_STEP_PARMS, *PMCI_ANIM_STEP_PARMS, *LPMCI_ANIM_STEP_PARMS; - - - - -typedef struct tagMCI_ANIM_WINDOW_PARMSA { - DWORD_PTR dwCallback; - HWND hWnd; - UINT nCmdShow; - LPCSTR lpstrText; -} MCI_ANIM_WINDOW_PARMSA, *PMCI_ANIM_WINDOW_PARMSA, * LPMCI_ANIM_WINDOW_PARMSA; -typedef struct tagMCI_ANIM_WINDOW_PARMSW { - DWORD_PTR dwCallback; - HWND hWnd; - UINT nCmdShow; - LPCWSTR lpstrText; -} MCI_ANIM_WINDOW_PARMSW, *PMCI_ANIM_WINDOW_PARMSW, * LPMCI_ANIM_WINDOW_PARMSW; - - - - - -typedef MCI_ANIM_WINDOW_PARMSA MCI_ANIM_WINDOW_PARMS; -typedef PMCI_ANIM_WINDOW_PARMSA PMCI_ANIM_WINDOW_PARMS; -typedef LPMCI_ANIM_WINDOW_PARMSA LPMCI_ANIM_WINDOW_PARMS; -# 1136 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_ANIM_RECT_PARMS { - DWORD_PTR dwCallback; - - - - - RECT rc; - -} MCI_ANIM_RECT_PARMS; -typedef MCI_ANIM_RECT_PARMS * PMCI_ANIM_RECT_PARMS; -typedef MCI_ANIM_RECT_PARMS * LPMCI_ANIM_RECT_PARMS; - - -typedef struct tagMCI_ANIM_UPDATE_PARMS { - DWORD_PTR dwCallback; - RECT rc; - HDC hDC; -} MCI_ANIM_UPDATE_PARMS, *PMCI_ANIM_UPDATE_PARMS, * LPMCI_ANIM_UPDATE_PARMS; -# 1199 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_OVLY_OPEN_PARMSA { - DWORD_PTR dwCallback; - MCIDEVICEID wDeviceID; - LPCSTR lpstrDeviceType; - LPCSTR lpstrElementName; - LPCSTR lpstrAlias; - DWORD dwStyle; - HWND hWndParent; -} MCI_OVLY_OPEN_PARMSA, *PMCI_OVLY_OPEN_PARMSA, *LPMCI_OVLY_OPEN_PARMSA; -typedef struct tagMCI_OVLY_OPEN_PARMSW { - DWORD_PTR dwCallback; - MCIDEVICEID wDeviceID; - LPCWSTR lpstrDeviceType; - LPCWSTR lpstrElementName; - LPCWSTR lpstrAlias; - DWORD dwStyle; - HWND hWndParent; -} MCI_OVLY_OPEN_PARMSW, *PMCI_OVLY_OPEN_PARMSW, *LPMCI_OVLY_OPEN_PARMSW; - - - - - -typedef MCI_OVLY_OPEN_PARMSA MCI_OVLY_OPEN_PARMS; -typedef PMCI_OVLY_OPEN_PARMSA PMCI_OVLY_OPEN_PARMS; -typedef LPMCI_OVLY_OPEN_PARMSA LPMCI_OVLY_OPEN_PARMS; -# 1244 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_OVLY_WINDOW_PARMSA { - DWORD_PTR dwCallback; - HWND hWnd; - UINT nCmdShow; - LPCSTR lpstrText; -} MCI_OVLY_WINDOW_PARMSA, *PMCI_OVLY_WINDOW_PARMSA, * LPMCI_OVLY_WINDOW_PARMSA; -typedef struct tagMCI_OVLY_WINDOW_PARMSW { - DWORD_PTR dwCallback; - HWND hWnd; - UINT nCmdShow; - LPCWSTR lpstrText; -} MCI_OVLY_WINDOW_PARMSW, *PMCI_OVLY_WINDOW_PARMSW, * LPMCI_OVLY_WINDOW_PARMSW; - - - - - -typedef MCI_OVLY_WINDOW_PARMSA MCI_OVLY_WINDOW_PARMS; -typedef PMCI_OVLY_WINDOW_PARMSA PMCI_OVLY_WINDOW_PARMS; -typedef LPMCI_OVLY_WINDOW_PARMSA LPMCI_OVLY_WINDOW_PARMS; -# 1277 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_OVLY_RECT_PARMS { - DWORD_PTR dwCallback; - - - - - RECT rc; - -} MCI_OVLY_RECT_PARMS, *PMCI_OVLY_RECT_PARMS, * LPMCI_OVLY_RECT_PARMS; - - - - -typedef struct tagMCI_OVLY_SAVE_PARMSA { - DWORD_PTR dwCallback; - LPCSTR lpfilename; - RECT rc; -} MCI_OVLY_SAVE_PARMSA, *PMCI_OVLY_SAVE_PARMSA, * LPMCI_OVLY_SAVE_PARMSA; -typedef struct tagMCI_OVLY_SAVE_PARMSW { - DWORD_PTR dwCallback; - LPCWSTR lpfilename; - RECT rc; -} MCI_OVLY_SAVE_PARMSW, *PMCI_OVLY_SAVE_PARMSW, * LPMCI_OVLY_SAVE_PARMSW; - - - - - -typedef MCI_OVLY_SAVE_PARMSA MCI_OVLY_SAVE_PARMS; -typedef PMCI_OVLY_SAVE_PARMSA PMCI_OVLY_SAVE_PARMS; -typedef LPMCI_OVLY_SAVE_PARMSA LPMCI_OVLY_SAVE_PARMS; -# 1320 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -typedef struct tagMCI_OVLY_LOAD_PARMSA { - DWORD_PTR dwCallback; - LPCSTR lpfilename; - RECT rc; -} MCI_OVLY_LOAD_PARMSA, *PMCI_OVLY_LOAD_PARMSA, * LPMCI_OVLY_LOAD_PARMSA; -typedef struct tagMCI_OVLY_LOAD_PARMSW { - DWORD_PTR dwCallback; - LPCWSTR lpfilename; - RECT rc; -} MCI_OVLY_LOAD_PARMSW, *PMCI_OVLY_LOAD_PARMSW, * LPMCI_OVLY_LOAD_PARMSW; - - - - - -typedef MCI_OVLY_LOAD_PARMSA MCI_OVLY_LOAD_PARMS; -typedef PMCI_OVLY_LOAD_PARMSA PMCI_OVLY_LOAD_PARMS; -typedef LPMCI_OVLY_LOAD_PARMSA LPMCI_OVLY_LOAD_PARMS; -# 1351 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mciapi.h" 3 -DWORD_PTR -__stdcall -mciGetDriverData( - MCIDEVICEID wDeviceID - ); - -UINT -__stdcall -mciLoadCommandResource( - HANDLE hInstance, - LPCWSTR lpResName, - UINT wType - ); - -BOOL -__stdcall -mciSetDriverData( - MCIDEVICEID wDeviceID, - DWORD_PTR dwData - ); - -UINT -__stdcall -mciDriverYield( - MCIDEVICEID wDeviceID - ); - -BOOL -__stdcall -mciDriverNotify( - HANDLE hwndCallback, - MCIDEVICEID wDeviceID, - UINT uStatus - ); - -BOOL -__stdcall -mciFreeCommandResource( - UINT wTable - ); -# 62 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 1 3 -# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 2 3 -# 37 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 -typedef struct DRVCONFIGINFOEX { - DWORD dwDCISize; - LPCWSTR lpszDCISectionName; - LPCWSTR lpszDCIAliasName; - DWORD dnDevNode; -} DRVCONFIGINFOEX, *PDRVCONFIGINFOEX, *NPDRVCONFIGINFOEX, *LPDRVCONFIGINFOEX; -# 75 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 -typedef struct tagDRVCONFIGINFO { - DWORD dwDCISize; - LPCWSTR lpszDCISectionName; - LPCWSTR lpszDCIAliasName; -} DRVCONFIGINFO, *PDRVCONFIGINFO, *NPDRVCONFIGINFO, *LPDRVCONFIGINFO; -# 96 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 -typedef LRESULT (__stdcall* DRIVERPROC)(DWORD_PTR, HDRVR, UINT, LPARAM, LPARAM); - -__declspec(dllimport) -LRESULT -__stdcall -CloseDriver( - HDRVR hDriver, - LPARAM lParam1, - LPARAM lParam2 - ); - -__declspec(dllimport) -HDRVR -__stdcall -OpenDriver( - LPCWSTR szDriverName, - LPCWSTR szSectionName, - LPARAM lParam2 - ); - -__declspec(dllimport) -LRESULT -__stdcall -SendDriverMessage( - HDRVR hDriver, - UINT message, - LPARAM lParam1, - LPARAM lParam2 - ); - -__declspec(dllimport) -HMODULE -__stdcall -DrvGetModuleHandle( - HDRVR hDriver - ); - -__declspec(dllimport) -HMODULE -__stdcall -GetDriverModuleHandle( - HDRVR hDriver - ); - -__declspec(dllimport) -LRESULT -__stdcall -DefDriverProc( - DWORD_PTR dwDriverIdentifier, - HDRVR hdrvr, - UINT uMsg, - LPARAM lParam1, - LPARAM lParam2 - ); -# 178 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 -BOOL -__stdcall -DriverCallback( - DWORD_PTR dwCallback, - DWORD dwFlags, - HDRVR hDevice, - DWORD dwMsg, - DWORD_PTR dwUser, - DWORD_PTR dwParam1, - DWORD_PTR dwParam2 - ); - - - - - - -LONG -__stdcall -sndOpenSound( - LPCWSTR EventName, - LPCWSTR AppName, - INT32 Flags, - PHANDLE FileHandle - ); -# 216 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 -typedef DWORD (__stdcall *DRIVERMSGPROC)(DWORD, DWORD, DWORD_PTR, DWORD_PTR, DWORD_PTR); - -UINT -__stdcall -mmDrvInstall( - HDRVR hDriver, - LPCWSTR wszDrvEntry, - DRIVERMSGPROC drvMessage, - UINT wFlags - ); -# 259 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 -typedef DWORD FOURCC; -typedef char * HPSTR; -struct HMMIO__{int unused;}; typedef struct HMMIO__ *HMMIO; -typedef LRESULT (__stdcall MMIOPROC)(LPSTR lpmmioinfo, UINT uMsg, - LPARAM lParam1, LPARAM lParam2); -typedef MMIOPROC *LPMMIOPROC; - - -typedef struct _MMIOINFO -{ - - DWORD dwFlags; - FOURCC fccIOProc; - LPMMIOPROC pIOProc; - UINT wErrorRet; - HTASK htask; - - - LONG cchBuffer; - HPSTR pchBuffer; - HPSTR pchNext; - HPSTR pchEndRead; - HPSTR pchEndWrite; - LONG lBufOffset; - - - LONG lDiskOffset; - DWORD adwInfo[3]; - - - DWORD dwReserved1; - DWORD dwReserved2; - HMMIO hmmio; -} MMIOINFO, *PMMIOINFO, *NPMMIOINFO, *LPMMIOINFO; -typedef const MMIOINFO *LPCMMIOINFO; - - -typedef struct _MMCKINFO -{ - FOURCC ckid; - DWORD cksize; - FOURCC fccType; - DWORD dwDataOffset; - DWORD dwFlags; -} MMCKINFO, *PMMCKINFO, *NPMMCKINFO, *LPMMCKINFO; -typedef const MMCKINFO *LPCMMCKINFO; -# 385 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 -__declspec(dllimport) -FOURCC -__stdcall -mmioStringToFOURCCA( - LPCSTR sz, - UINT uFlags - ); - -__declspec(dllimport) -FOURCC -__stdcall -mmioStringToFOURCCW( - LPCWSTR sz, - UINT uFlags - ); - - - - - - -__declspec(dllimport) -LPMMIOPROC -__stdcall -mmioInstallIOProcA( - FOURCC fccIOProc, - LPMMIOPROC pIOProc, - DWORD dwFlags - ); - -__declspec(dllimport) -LPMMIOPROC -__stdcall -mmioInstallIOProcW( - FOURCC fccIOProc, - LPMMIOPROC pIOProc, - DWORD dwFlags - ); - - - - - - -__declspec(dllimport) -HMMIO -__stdcall -mmioOpenA( - LPSTR pszFileName, - LPMMIOINFO pmmioinfo, - DWORD fdwOpen - ); - -__declspec(dllimport) -HMMIO -__stdcall -mmioOpenW( - LPWSTR pszFileName, - LPMMIOINFO pmmioinfo, - DWORD fdwOpen - ); - - - - - - -__declspec(dllimport) -MMRESULT -__stdcall -mmioRenameA( - LPCSTR pszFileName, - LPCSTR pszNewFileName, - LPCMMIOINFO pmmioinfo, - DWORD fdwRename - ); - -__declspec(dllimport) -MMRESULT -__stdcall -mmioRenameW( - LPCWSTR pszFileName, - LPCWSTR pszNewFileName, - LPCMMIOINFO pmmioinfo, - DWORD fdwRename - ); -# 485 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -mmioClose( - HMMIO hmmio, - UINT fuClose - ); - -__declspec(dllimport) -LONG -__stdcall -mmioRead( - HMMIO hmmio, - HPSTR pch, - LONG cch - ); - -__declspec(dllimport) -LONG -__stdcall -mmioWrite( - HMMIO hmmio, - const char * pch, - LONG cch - ); - -__declspec(dllimport) -LONG -__stdcall -mmioSeek( - HMMIO hmmio, - LONG lOffset, - int iOrigin - ); - -__declspec(dllimport) -MMRESULT -__stdcall -mmioGetInfo( - HMMIO hmmio, - LPMMIOINFO pmmioinfo, - UINT fuInfo - ); - -__declspec(dllimport) -MMRESULT -__stdcall -mmioSetInfo( - HMMIO hmmio, - LPCMMIOINFO pmmioinfo, - UINT fuInfo - ); - -__declspec(dllimport) -MMRESULT -__stdcall -mmioSetBuffer( - HMMIO hmmio, - LPSTR pchBuffer, - LONG cchBuffer, - UINT fuBuffer - ); - -__declspec(dllimport) -MMRESULT -__stdcall -mmioFlush( - HMMIO hmmio, - UINT fuFlush - ); - -__declspec(dllimport) -MMRESULT -__stdcall -mmioAdvance( - HMMIO hmmio, - LPMMIOINFO pmmioinfo, - UINT fuAdvance - ); - -__declspec(dllimport) -LRESULT -__stdcall -mmioSendMessage( - HMMIO hmmio, - UINT uMsg, - LPARAM lParam1, - LPARAM lParam2 - ); - -__declspec(dllimport) -MMRESULT -__stdcall -mmioDescend( - HMMIO hmmio, - LPMMCKINFO pmmcki, - const MMCKINFO * pmmckiParent, - UINT fuDescend - ); - -__declspec(dllimport) -MMRESULT -__stdcall -mmioAscend( - HMMIO hmmio, - LPMMCKINFO pmmcki, - UINT fuAscend - ); - -__declspec(dllimport) -MMRESULT -__stdcall -mmioCreateChunk( - HMMIO hmmio, - LPMMCKINFO pmmcki, - UINT fuCreate - ); -# 67 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi2.h" 1 3 -# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi2.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi2.h" 2 3 - - - - - - - - -typedef void (__stdcall TIMECALLBACK)(UINT uTimerID, UINT uMsg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2); -typedef TIMECALLBACK *LPTIMECALLBACK; -# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmiscapi2.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -timeSetEvent( - UINT uDelay, - UINT uResolution, - LPTIMECALLBACK fptc, - DWORD_PTR dwUser, - UINT fuEvent - ); - -__declspec(dllimport) -MMRESULT -__stdcall -timeKillEvent( - UINT uTimerID - ); -# 68 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\playsoundapi.h" 1 3 -# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\playsoundapi.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\playsoundapi.h" 2 3 -# 37 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\playsoundapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -sndPlaySoundA( - LPCSTR pszSound, - UINT fuSound - ); - -__declspec(dllimport) -BOOL -__stdcall -sndPlaySoundW( - LPCWSTR pszSound, - UINT fuSound - ); -# 100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\playsoundapi.h" 3 -__declspec(dllimport) -BOOL -__stdcall -PlaySoundA( - LPCSTR pszSound, - HMODULE hmod, - DWORD fdwSound - ); - -__declspec(dllimport) -BOOL -__stdcall -PlaySoundW( - LPCWSTR pszSound, - HMODULE hmod, - DWORD fdwSound - ); -# 72 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 1 3 -# 26 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 2 3 -# 50 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -struct HWAVE__{int unused;}; typedef struct HWAVE__ *HWAVE; -struct HWAVEIN__{int unused;}; typedef struct HWAVEIN__ *HWAVEIN; -struct HWAVEOUT__{int unused;}; typedef struct HWAVEOUT__ *HWAVEOUT; -typedef HWAVEIN *LPHWAVEIN; -typedef HWAVEOUT *LPHWAVEOUT; -typedef DRVCALLBACK WAVECALLBACK; -typedef WAVECALLBACK *LPWAVECALLBACK; -# 80 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -typedef struct wavehdr_tag { - LPSTR lpData; - DWORD dwBufferLength; - DWORD dwBytesRecorded; - DWORD_PTR dwUser; - DWORD dwFlags; - DWORD dwLoops; - struct wavehdr_tag *lpNext; - DWORD_PTR reserved; -} WAVEHDR, *PWAVEHDR, *NPWAVEHDR, *LPWAVEHDR; -# 101 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -typedef struct tagWAVEOUTCAPSA { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - CHAR szPname[32]; - DWORD dwFormats; - WORD wChannels; - WORD wReserved1; - DWORD dwSupport; -} WAVEOUTCAPSA, *PWAVEOUTCAPSA, *NPWAVEOUTCAPSA, *LPWAVEOUTCAPSA; -typedef struct tagWAVEOUTCAPSW { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - WCHAR szPname[32]; - DWORD dwFormats; - WORD wChannels; - WORD wReserved1; - DWORD dwSupport; -} WAVEOUTCAPSW, *PWAVEOUTCAPSW, *NPWAVEOUTCAPSW, *LPWAVEOUTCAPSW; - - - - - - -typedef WAVEOUTCAPSA WAVEOUTCAPS; -typedef PWAVEOUTCAPSA PWAVEOUTCAPS; -typedef NPWAVEOUTCAPSA NPWAVEOUTCAPS; -typedef LPWAVEOUTCAPSA LPWAVEOUTCAPS; - -typedef struct tagWAVEOUTCAPS2A { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - CHAR szPname[32]; - DWORD dwFormats; - WORD wChannels; - WORD wReserved1; - DWORD dwSupport; - GUID ManufacturerGuid; - GUID ProductGuid; - GUID NameGuid; -} WAVEOUTCAPS2A, *PWAVEOUTCAPS2A, *NPWAVEOUTCAPS2A, *LPWAVEOUTCAPS2A; -typedef struct tagWAVEOUTCAPS2W { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - WCHAR szPname[32]; - DWORD dwFormats; - WORD wChannels; - WORD wReserved1; - DWORD dwSupport; - GUID ManufacturerGuid; - GUID ProductGuid; - GUID NameGuid; -} WAVEOUTCAPS2W, *PWAVEOUTCAPS2W, *NPWAVEOUTCAPS2W, *LPWAVEOUTCAPS2W; - - - - - - -typedef WAVEOUTCAPS2A WAVEOUTCAPS2; -typedef PWAVEOUTCAPS2A PWAVEOUTCAPS2; -typedef NPWAVEOUTCAPS2A NPWAVEOUTCAPS2; -typedef LPWAVEOUTCAPS2A LPWAVEOUTCAPS2; -# 193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -typedef struct tagWAVEINCAPSA { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - CHAR szPname[32]; - DWORD dwFormats; - WORD wChannels; - WORD wReserved1; -} WAVEINCAPSA, *PWAVEINCAPSA, *NPWAVEINCAPSA, *LPWAVEINCAPSA; -typedef struct tagWAVEINCAPSW { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - WCHAR szPname[32]; - DWORD dwFormats; - WORD wChannels; - WORD wReserved1; -} WAVEINCAPSW, *PWAVEINCAPSW, *NPWAVEINCAPSW, *LPWAVEINCAPSW; - - - - - - -typedef WAVEINCAPSA WAVEINCAPS; -typedef PWAVEINCAPSA PWAVEINCAPS; -typedef NPWAVEINCAPSA NPWAVEINCAPS; -typedef LPWAVEINCAPSA LPWAVEINCAPS; - -typedef struct tagWAVEINCAPS2A { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - CHAR szPname[32]; - DWORD dwFormats; - WORD wChannels; - WORD wReserved1; - GUID ManufacturerGuid; - GUID ProductGuid; - GUID NameGuid; -} WAVEINCAPS2A, *PWAVEINCAPS2A, *NPWAVEINCAPS2A, *LPWAVEINCAPS2A; -typedef struct tagWAVEINCAPS2W { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - WCHAR szPname[32]; - DWORD dwFormats; - WORD wChannels; - WORD wReserved1; - GUID ManufacturerGuid; - GUID ProductGuid; - GUID NameGuid; -} WAVEINCAPS2W, *PWAVEINCAPS2W, *NPWAVEINCAPS2W, *LPWAVEINCAPS2W; - - - - - - -typedef WAVEINCAPS2A WAVEINCAPS2; -typedef PWAVEINCAPS2A PWAVEINCAPS2; -typedef NPWAVEINCAPS2A NPWAVEINCAPS2; -typedef LPWAVEINCAPS2A LPWAVEINCAPS2; -# 300 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -typedef struct waveformat_tag { - WORD wFormatTag; - WORD nChannels; - DWORD nSamplesPerSec; - DWORD nAvgBytesPerSec; - WORD nBlockAlign; -} WAVEFORMAT, *PWAVEFORMAT, *NPWAVEFORMAT, *LPWAVEFORMAT; - - - - - -typedef struct pcmwaveformat_tag { - WAVEFORMAT wf; - WORD wBitsPerSample; -} PCMWAVEFORMAT, *PPCMWAVEFORMAT, *NPPCMWAVEFORMAT, *LPPCMWAVEFORMAT; -# 325 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -typedef struct tWAVEFORMATEX -{ - WORD wFormatTag; - WORD nChannels; - DWORD nSamplesPerSec; - DWORD nAvgBytesPerSec; - WORD nBlockAlign; - WORD wBitsPerSample; - WORD cbSize; - -} WAVEFORMATEX, *PWAVEFORMATEX, *NPWAVEFORMATEX, *LPWAVEFORMATEX; - - -typedef const WAVEFORMATEX *LPCWAVEFORMATEX; - - - -__declspec(dllimport) -UINT -__stdcall -waveOutGetNumDevs( - void - ); - - - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutGetDevCapsA( - UINT_PTR uDeviceID, - LPWAVEOUTCAPSA pwoc, - UINT cbwoc - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutGetDevCapsW( - UINT_PTR uDeviceID, - LPWAVEOUTCAPSW pwoc, - UINT cbwoc - ); -# 380 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -waveOutGetVolume( - HWAVEOUT hwo, - LPDWORD pdwVolume - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutSetVolume( - HWAVEOUT hwo, - DWORD dwVolume - ); - - - - - - - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutGetErrorTextA( - MMRESULT mmrError, - LPSTR pszText, - UINT cchText - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutGetErrorTextW( - MMRESULT mmrError, - LPWSTR pszText, - UINT cchText - ); -# 429 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -waveOutOpen( - LPHWAVEOUT phwo, - UINT uDeviceID, - LPCWAVEFORMATEX pwfx, - DWORD_PTR dwCallback, - DWORD_PTR dwInstance, - DWORD fdwOpen - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutClose( - HWAVEOUT hwo - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutPrepareHeader( - HWAVEOUT hwo, - LPWAVEHDR pwh, - UINT cbwh - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutUnprepareHeader( - HWAVEOUT hwo, - LPWAVEHDR pwh, - UINT cbwh - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutWrite( - HWAVEOUT hwo, - LPWAVEHDR pwh, - UINT cbwh - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutPause( - HWAVEOUT hwo - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutRestart( - HWAVEOUT hwo - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutReset( - HWAVEOUT hwo - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutBreakLoop( - HWAVEOUT hwo - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutGetPosition( - HWAVEOUT hwo, - LPMMTIME pmmt, - UINT cbmmt - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutGetPitch( - HWAVEOUT hwo, - LPDWORD pdwPitch - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutSetPitch( - HWAVEOUT hwo, - DWORD dwPitch - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutGetPlaybackRate( - HWAVEOUT hwo, - LPDWORD pdwRate - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutSetPlaybackRate( - HWAVEOUT hwo, - DWORD dwRate - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutGetID( - HWAVEOUT hwo, - LPUINT puDeviceID - ); - - - - -__declspec(dllimport) -MMRESULT -__stdcall -waveOutMessage( - HWAVEOUT hwo, - UINT uMsg, - DWORD_PTR dw1, - DWORD_PTR dw2 - ); - - - - - -__declspec(dllimport) -UINT -__stdcall -waveInGetNumDevs( - void - ); - - - -__declspec(dllimport) -MMRESULT -__stdcall -waveInGetDevCapsA( - UINT_PTR uDeviceID, - LPWAVEINCAPSA pwic, - UINT cbwic - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveInGetDevCapsW( - UINT_PTR uDeviceID, - LPWAVEINCAPSW pwic, - UINT cbwic - ); -# 607 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -waveInGetErrorTextA( - MMRESULT mmrError, - LPSTR pszText, - UINT cchText - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveInGetErrorTextW( - MMRESULT mmrError, - LPWSTR pszText, - UINT cchText - ); -# 634 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -waveInOpen( - LPHWAVEIN phwi, - UINT uDeviceID, - LPCWAVEFORMATEX pwfx, - DWORD_PTR dwCallback, - DWORD_PTR dwInstance, - DWORD fdwOpen - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveInClose( - HWAVEIN hwi - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveInPrepareHeader( - HWAVEIN hwi, - LPWAVEHDR pwh, - UINT cbwh - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveInUnprepareHeader( - HWAVEIN hwi, - LPWAVEHDR pwh, - UINT cbwh - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveInAddBuffer( - HWAVEIN hwi, - LPWAVEHDR pwh, - UINT cbwh - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveInStart( - HWAVEIN hwi - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveInStop( - HWAVEIN hwi - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveInReset( - HWAVEIN hwi - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveInGetPosition( - HWAVEIN hwi, - LPMMTIME pmmt, - UINT cbmmt - ); - -__declspec(dllimport) -MMRESULT -__stdcall -waveInGetID( - HWAVEIN hwi, - LPUINT puDeviceID - ); - - - - -__declspec(dllimport) -MMRESULT -__stdcall -waveInMessage( - HWAVEIN hwi, - UINT uMsg, - DWORD_PTR dw1, - DWORD_PTR dw2 - ); -# 756 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -struct HMIDI__{int unused;}; typedef struct HMIDI__ *HMIDI; -struct HMIDIIN__{int unused;}; typedef struct HMIDIIN__ *HMIDIIN; -struct HMIDIOUT__{int unused;}; typedef struct HMIDIOUT__ *HMIDIOUT; -struct HMIDISTRM__{int unused;}; typedef struct HMIDISTRM__ *HMIDISTRM; -typedef HMIDI *LPHMIDI; -typedef HMIDIIN *LPHMIDIIN; -typedef HMIDIOUT *LPHMIDIOUT; -typedef HMIDISTRM *LPHMIDISTRM; -typedef DRVCALLBACK MIDICALLBACK; -typedef MIDICALLBACK *LPMIDICALLBACK; - -typedef WORD PATCHARRAY[128]; -typedef WORD *LPPATCHARRAY; -typedef WORD KEYARRAY[128]; -typedef WORD *LPKEYARRAY; -# 806 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -typedef struct tagMIDIOUTCAPSA { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - CHAR szPname[32]; - WORD wTechnology; - WORD wVoices; - WORD wNotes; - WORD wChannelMask; - DWORD dwSupport; -} MIDIOUTCAPSA, *PMIDIOUTCAPSA, *NPMIDIOUTCAPSA, *LPMIDIOUTCAPSA; -typedef struct tagMIDIOUTCAPSW { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - WCHAR szPname[32]; - WORD wTechnology; - WORD wVoices; - WORD wNotes; - WORD wChannelMask; - DWORD dwSupport; -} MIDIOUTCAPSW, *PMIDIOUTCAPSW, *NPMIDIOUTCAPSW, *LPMIDIOUTCAPSW; - - - - - - -typedef MIDIOUTCAPSA MIDIOUTCAPS; -typedef PMIDIOUTCAPSA PMIDIOUTCAPS; -typedef NPMIDIOUTCAPSA NPMIDIOUTCAPS; -typedef LPMIDIOUTCAPSA LPMIDIOUTCAPS; - -typedef struct tagMIDIOUTCAPS2A { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - CHAR szPname[32]; - WORD wTechnology; - WORD wVoices; - WORD wNotes; - WORD wChannelMask; - DWORD dwSupport; - GUID ManufacturerGuid; - GUID ProductGuid; - GUID NameGuid; -} MIDIOUTCAPS2A, *PMIDIOUTCAPS2A, *NPMIDIOUTCAPS2A, *LPMIDIOUTCAPS2A; -typedef struct tagMIDIOUTCAPS2W { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - WCHAR szPname[32]; - WORD wTechnology; - WORD wVoices; - WORD wNotes; - WORD wChannelMask; - DWORD dwSupport; - GUID ManufacturerGuid; - GUID ProductGuid; - GUID NameGuid; -} MIDIOUTCAPS2W, *PMIDIOUTCAPS2W, *NPMIDIOUTCAPS2W, *LPMIDIOUTCAPS2W; - - - - - - -typedef MIDIOUTCAPS2A MIDIOUTCAPS2; -typedef PMIDIOUTCAPS2A PMIDIOUTCAPS2; -typedef NPMIDIOUTCAPS2A NPMIDIOUTCAPS2; -typedef LPMIDIOUTCAPS2A LPMIDIOUTCAPS2; -# 913 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -typedef struct tagMIDIINCAPSA { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - CHAR szPname[32]; - - DWORD dwSupport; - -} MIDIINCAPSA, *PMIDIINCAPSA, *NPMIDIINCAPSA, *LPMIDIINCAPSA; -typedef struct tagMIDIINCAPSW { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - WCHAR szPname[32]; - - DWORD dwSupport; - -} MIDIINCAPSW, *PMIDIINCAPSW, *NPMIDIINCAPSW, *LPMIDIINCAPSW; - - - - - - -typedef MIDIINCAPSA MIDIINCAPS; -typedef PMIDIINCAPSA PMIDIINCAPS; -typedef NPMIDIINCAPSA NPMIDIINCAPS; -typedef LPMIDIINCAPSA LPMIDIINCAPS; - -typedef struct tagMIDIINCAPS2A { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - CHAR szPname[32]; - - DWORD dwSupport; - - GUID ManufacturerGuid; - GUID ProductGuid; - GUID NameGuid; -} MIDIINCAPS2A, *PMIDIINCAPS2A, *NPMIDIINCAPS2A, *LPMIDIINCAPS2A; -typedef struct tagMIDIINCAPS2W { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - WCHAR szPname[32]; - - DWORD dwSupport; - - GUID ManufacturerGuid; - GUID ProductGuid; - GUID NameGuid; -} MIDIINCAPS2W, *PMIDIINCAPS2W, *NPMIDIINCAPS2W, *LPMIDIINCAPS2W; - - - - - - -typedef MIDIINCAPS2A MIDIINCAPS2; -typedef PMIDIINCAPS2A PMIDIINCAPS2; -typedef NPMIDIINCAPS2A NPMIDIINCAPS2; -typedef LPMIDIINCAPS2A LPMIDIINCAPS2; -# 991 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -typedef struct midihdr_tag { - LPSTR lpData; - DWORD dwBufferLength; - DWORD dwBytesRecorded; - DWORD_PTR dwUser; - DWORD dwFlags; - struct midihdr_tag *lpNext; - DWORD_PTR reserved; - - DWORD dwOffset; - DWORD_PTR dwReserved[8]; - -} MIDIHDR, *PMIDIHDR, *NPMIDIHDR, *LPMIDIHDR; - - -typedef struct midievent_tag -{ - DWORD dwDeltaTime; - DWORD dwStreamID; - DWORD dwEvent; - DWORD dwParms[1]; -} MIDIEVENT; - -typedef struct midistrmbuffver_tag -{ - DWORD dwVersion; - DWORD dwMid; - DWORD dwOEMVersion; -} MIDISTRMBUFFVER; -# 1072 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -typedef struct midiproptimediv_tag -{ - DWORD cbStruct; - DWORD dwTimeDiv; -} MIDIPROPTIMEDIV, *LPMIDIPROPTIMEDIV; - -typedef struct midiproptempo_tag -{ - DWORD cbStruct; - DWORD dwTempo; -} MIDIPROPTEMPO, *LPMIDIPROPTEMPO; - - - - - -__declspec(dllimport) -UINT -__stdcall -midiOutGetNumDevs( - void - ); - - -__declspec(dllimport) -MMRESULT -__stdcall -midiStreamOpen( - LPHMIDISTRM phms, - LPUINT puDeviceID, - DWORD cMidi, - DWORD_PTR dwCallback, - DWORD_PTR dwInstance, - DWORD fdwOpen - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiStreamClose( - HMIDISTRM hms - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiStreamProperty( - HMIDISTRM hms, - LPBYTE lppropdata, - DWORD dwProperty - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiStreamPosition( - HMIDISTRM hms, - LPMMTIME lpmmt, - UINT cbmmt - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiStreamOut( - HMIDISTRM hms, - LPMIDIHDR pmh, - UINT cbmh - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiStreamPause( - HMIDISTRM hms - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiStreamRestart( - HMIDISTRM hms - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiStreamStop( - HMIDISTRM hms - ); - - - -__declspec(dllimport) -MMRESULT -__stdcall -midiConnect( - HMIDI hmi, - HMIDIOUT hmo, - LPVOID pReserved - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiDisconnect( - HMIDI hmi, - HMIDIOUT hmo, - LPVOID pReserved - ); - - - - - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutGetDevCapsA( - UINT_PTR uDeviceID, - LPMIDIOUTCAPSA pmoc, - UINT cbmoc - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutGetDevCapsW( - UINT_PTR uDeviceID, - LPMIDIOUTCAPSW pmoc, - UINT cbmoc - ); -# 1216 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -midiOutGetVolume( - HMIDIOUT hmo, - LPDWORD pdwVolume - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutSetVolume( - HMIDIOUT hmo, - DWORD dwVolume - ); - - - - - - - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutGetErrorTextA( - MMRESULT mmrError, - LPSTR pszText, - UINT cchText - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutGetErrorTextW( - MMRESULT mmrError, - LPWSTR pszText, - UINT cchText - ); -# 1265 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -midiOutOpen( - LPHMIDIOUT phmo, - UINT uDeviceID, - DWORD_PTR dwCallback, - DWORD_PTR dwInstance, - DWORD fdwOpen - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutClose( - HMIDIOUT hmo - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutPrepareHeader( - HMIDIOUT hmo, - LPMIDIHDR pmh, - UINT cbmh - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutUnprepareHeader( - HMIDIOUT hmo, - LPMIDIHDR pmh, - UINT cbmh - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutShortMsg( - HMIDIOUT hmo, - DWORD dwMsg - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutLongMsg( - HMIDIOUT hmo, - LPMIDIHDR pmh, - UINT cbmh - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutReset( - HMIDIOUT hmo - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutCachePatches( - HMIDIOUT hmo, - UINT uBank, - LPWORD pwpa, - UINT fuCache - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutCacheDrumPatches( - HMIDIOUT hmo, - UINT uPatch, - LPWORD pwkya, - UINT fuCache - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutGetID( - HMIDIOUT hmo, - LPUINT puDeviceID - ); - - - - -__declspec(dllimport) -MMRESULT -__stdcall -midiOutMessage( - HMIDIOUT hmo, - UINT uMsg, - DWORD_PTR dw1, - DWORD_PTR dw2 - ); - - - - - -__declspec(dllimport) -UINT -__stdcall -midiInGetNumDevs( - void - ); - - - -__declspec(dllimport) -MMRESULT -__stdcall -midiInGetDevCapsA( - UINT_PTR uDeviceID, - LPMIDIINCAPSA pmic, - UINT cbmic - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiInGetDevCapsW( - UINT_PTR uDeviceID, - LPMIDIINCAPSW pmic, - UINT cbmic - ); - - - - - - -__declspec(dllimport) -MMRESULT -__stdcall -midiInGetErrorTextA( - MMRESULT mmrError, - LPSTR pszText, - UINT cchText - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiInGetErrorTextW( - MMRESULT mmrError, - LPWSTR pszText, - UINT cchText - ); -# 1430 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -midiInOpen( - LPHMIDIIN phmi, - UINT uDeviceID, - DWORD_PTR dwCallback, - DWORD_PTR dwInstance, - DWORD fdwOpen - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiInClose( - HMIDIIN hmi - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiInPrepareHeader( - HMIDIIN hmi, - LPMIDIHDR pmh, - UINT cbmh - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiInUnprepareHeader( - HMIDIIN hmi, - LPMIDIHDR pmh, - UINT cbmh - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiInAddBuffer( - HMIDIIN hmi, - LPMIDIHDR pmh, - UINT cbmh - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiInStart( - HMIDIIN hmi - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiInStop( - HMIDIIN hmi - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiInReset( - HMIDIIN hmi - ); - -__declspec(dllimport) -MMRESULT -__stdcall -midiInGetID( - HMIDIIN hmi, - LPUINT puDeviceID - ); - - - - -__declspec(dllimport) -MMRESULT -__stdcall -midiInMessage( - HMIDIIN hmi, - UINT uMsg, - DWORD_PTR dw1, - DWORD_PTR dw2 - ); -# 1536 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -typedef struct tagAUXCAPSA { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - CHAR szPname[32]; - WORD wTechnology; - WORD wReserved1; - DWORD dwSupport; -} AUXCAPSA, *PAUXCAPSA, *NPAUXCAPSA, *LPAUXCAPSA; -typedef struct tagAUXCAPSW { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - WCHAR szPname[32]; - WORD wTechnology; - WORD wReserved1; - DWORD dwSupport; -} AUXCAPSW, *PAUXCAPSW, *NPAUXCAPSW, *LPAUXCAPSW; - - - - - - -typedef AUXCAPSA AUXCAPS; -typedef PAUXCAPSA PAUXCAPS; -typedef NPAUXCAPSA NPAUXCAPS; -typedef LPAUXCAPSA LPAUXCAPS; - -typedef struct tagAUXCAPS2A { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - CHAR szPname[32]; - WORD wTechnology; - WORD wReserved1; - DWORD dwSupport; - GUID ManufacturerGuid; - GUID ProductGuid; - GUID NameGuid; -} AUXCAPS2A, *PAUXCAPS2A, *NPAUXCAPS2A, *LPAUXCAPS2A; -typedef struct tagAUXCAPS2W { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - WCHAR szPname[32]; - WORD wTechnology; - WORD wReserved1; - DWORD dwSupport; - GUID ManufacturerGuid; - GUID ProductGuid; - GUID NameGuid; -} AUXCAPS2W, *PAUXCAPS2W, *NPAUXCAPS2W, *LPAUXCAPS2W; - - - - - - -typedef AUXCAPS2A AUXCAPS2; -typedef PAUXCAPS2A PAUXCAPS2; -typedef NPAUXCAPS2A NPAUXCAPS2; -typedef LPAUXCAPS2A LPAUXCAPS2; -# 1622 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -UINT -__stdcall -auxGetNumDevs( - void - ); - - -__declspec(dllimport) -MMRESULT -__stdcall -auxGetDevCapsA( - UINT_PTR uDeviceID, - LPAUXCAPSA pac, - UINT cbac - ); - -__declspec(dllimport) -MMRESULT -__stdcall -auxGetDevCapsW( - UINT_PTR uDeviceID, - LPAUXCAPSW pac, - UINT cbac - ); -# 1657 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -auxSetVolume( - UINT uDeviceID, - DWORD dwVolume - ); - -__declspec(dllimport) -MMRESULT -__stdcall -auxGetVolume( - UINT uDeviceID, - LPDWORD pdwVolume - ); - - - - -__declspec(dllimport) -MMRESULT -__stdcall -auxOutMessage( - UINT uDeviceID, - UINT uMsg, - DWORD_PTR dw1, - DWORD_PTR dw2 - ); -# 1699 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -struct HMIXEROBJ__{int unused;}; typedef struct HMIXEROBJ__ *HMIXEROBJ; -typedef HMIXEROBJ *LPHMIXEROBJ; - -struct HMIXER__{int unused;}; typedef struct HMIXER__ *HMIXER; -typedef HMIXER *LPHMIXER; -# 1730 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -UINT -__stdcall -mixerGetNumDevs( - void - ); - - - -typedef struct tagMIXERCAPSA { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - CHAR szPname[32]; - DWORD fdwSupport; - DWORD cDestinations; -} MIXERCAPSA, *PMIXERCAPSA, *LPMIXERCAPSA; -typedef struct tagMIXERCAPSW { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - WCHAR szPname[32]; - DWORD fdwSupport; - DWORD cDestinations; -} MIXERCAPSW, *PMIXERCAPSW, *LPMIXERCAPSW; - - - - - -typedef MIXERCAPSA MIXERCAPS; -typedef PMIXERCAPSA PMIXERCAPS; -typedef LPMIXERCAPSA LPMIXERCAPS; - -typedef struct tagMIXERCAPS2A { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - CHAR szPname[32]; - DWORD fdwSupport; - DWORD cDestinations; - GUID ManufacturerGuid; - GUID ProductGuid; - GUID NameGuid; -} MIXERCAPS2A, *PMIXERCAPS2A, *LPMIXERCAPS2A; -typedef struct tagMIXERCAPS2W { - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - WCHAR szPname[32]; - DWORD fdwSupport; - DWORD cDestinations; - GUID ManufacturerGuid; - GUID ProductGuid; - GUID NameGuid; -} MIXERCAPS2W, *PMIXERCAPS2W, *LPMIXERCAPS2W; - - - - - -typedef MIXERCAPS2A MIXERCAPS2; -typedef PMIXERCAPS2A PMIXERCAPS2; -typedef LPMIXERCAPS2A LPMIXERCAPS2; -# 1809 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -mixerGetDevCapsA( - UINT_PTR uMxId, - LPMIXERCAPSA pmxcaps, - UINT cbmxcaps - ); - -__declspec(dllimport) -MMRESULT -__stdcall -mixerGetDevCapsW( - UINT_PTR uMxId, - LPMIXERCAPSW pmxcaps, - UINT cbmxcaps - ); -# 1836 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -mixerOpen( - LPHMIXER phmx, - UINT uMxId, - DWORD_PTR dwCallback, - DWORD_PTR dwInstance, - DWORD fdwOpen - ); - -__declspec(dllimport) -MMRESULT -__stdcall -mixerClose( - HMIXER hmx - ); - -__declspec(dllimport) -DWORD -__stdcall -mixerMessage( - HMIXER hmx, - UINT uMsg, - DWORD_PTR dwParam1, - DWORD_PTR dwParam2 - ); - - - -typedef struct tagMIXERLINEA { - DWORD cbStruct; - DWORD dwDestination; - DWORD dwSource; - DWORD dwLineID; - DWORD fdwLine; - DWORD_PTR dwUser; - DWORD dwComponentType; - DWORD cChannels; - DWORD cConnections; - DWORD cControls; - CHAR szShortName[16]; - CHAR szName[64]; - struct { - DWORD dwType; - DWORD dwDeviceID; - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - CHAR szPname[32]; - } Target; -} MIXERLINEA, *PMIXERLINEA, *LPMIXERLINEA; -typedef struct tagMIXERLINEW { - DWORD cbStruct; - DWORD dwDestination; - DWORD dwSource; - DWORD dwLineID; - DWORD fdwLine; - DWORD_PTR dwUser; - DWORD dwComponentType; - DWORD cChannels; - DWORD cConnections; - DWORD cControls; - WCHAR szShortName[16]; - WCHAR szName[64]; - struct { - DWORD dwType; - DWORD dwDeviceID; - WORD wMid; - WORD wPid; - MMVERSION vDriverVersion; - WCHAR szPname[32]; - } Target; -} MIXERLINEW, *PMIXERLINEW, *LPMIXERLINEW; - - - - - -typedef MIXERLINEA MIXERLINE; -typedef PMIXERLINEA PMIXERLINE; -typedef LPMIXERLINEA LPMIXERLINE; -# 1998 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -mixerGetLineInfoA( - HMIXEROBJ hmxobj, - LPMIXERLINEA pmxl, - DWORD fdwInfo - ); - -__declspec(dllimport) -MMRESULT -__stdcall -mixerGetLineInfoW( - HMIXEROBJ hmxobj, - LPMIXERLINEW pmxl, - DWORD fdwInfo - ); -# 2033 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -mixerGetID( - HMIXEROBJ hmxobj, - UINT * puMxId, - DWORD fdwId - ); - - - - - - - -typedef struct tagMIXERCONTROLA { - DWORD cbStruct; - DWORD dwControlID; - DWORD dwControlType; - DWORD fdwControl; - DWORD cMultipleItems; - CHAR szShortName[16]; - CHAR szName[64]; - union { - struct { - LONG lMinimum; - LONG lMaximum; - } ; - struct { - DWORD dwMinimum; - DWORD dwMaximum; - } ; - DWORD dwReserved[6]; - } Bounds; - union { - DWORD cSteps; - DWORD cbCustomData; - DWORD dwReserved[6]; - } Metrics; -} MIXERCONTROLA, *PMIXERCONTROLA, *LPMIXERCONTROLA; -typedef struct tagMIXERCONTROLW { - DWORD cbStruct; - DWORD dwControlID; - DWORD dwControlType; - DWORD fdwControl; - DWORD cMultipleItems; - WCHAR szShortName[16]; - WCHAR szName[64]; - union { - struct { - LONG lMinimum; - LONG lMaximum; - } ; - struct { - DWORD dwMinimum; - DWORD dwMaximum; - } ; - DWORD dwReserved[6]; - } Bounds; - union { - DWORD cSteps; - DWORD cbCustomData; - DWORD dwReserved[6]; - } Metrics; -} MIXERCONTROLW, *PMIXERCONTROLW, *LPMIXERCONTROLW; - - - - - -typedef MIXERCONTROLA MIXERCONTROL; -typedef PMIXERCONTROLA PMIXERCONTROL; -typedef LPMIXERCONTROLA LPMIXERCONTROL; -# 2220 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -typedef struct tagMIXERLINECONTROLSA { - DWORD cbStruct; - DWORD dwLineID; - union { - DWORD dwControlID; - DWORD dwControlType; - } ; - DWORD cControls; - DWORD cbmxctrl; - LPMIXERCONTROLA pamxctrl; -} MIXERLINECONTROLSA, *PMIXERLINECONTROLSA, *LPMIXERLINECONTROLSA; -typedef struct tagMIXERLINECONTROLSW { - DWORD cbStruct; - DWORD dwLineID; - union { - DWORD dwControlID; - DWORD dwControlType; - } ; - DWORD cControls; - DWORD cbmxctrl; - LPMIXERCONTROLW pamxctrl; -} MIXERLINECONTROLSW, *PMIXERLINECONTROLSW, *LPMIXERLINECONTROLSW; - - - - - -typedef MIXERLINECONTROLSA MIXERLINECONTROLS; -typedef PMIXERLINECONTROLSA PMIXERLINECONTROLS; -typedef LPMIXERLINECONTROLSA LPMIXERLINECONTROLS; -# 2271 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -mixerGetLineControlsA( - HMIXEROBJ hmxobj, - LPMIXERLINECONTROLSA pmxlc, - DWORD fdwControls - ); - -__declspec(dllimport) -MMRESULT -__stdcall -mixerGetLineControlsW( - HMIXEROBJ hmxobj, - LPMIXERLINECONTROLSW pmxlc, - DWORD fdwControls - ); -# 2304 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -typedef struct tMIXERCONTROLDETAILS { - DWORD cbStruct; - DWORD dwControlID; - DWORD cChannels; - union { - HWND hwndOwner; - DWORD cMultipleItems; - } ; - DWORD cbDetails; - LPVOID paDetails; -} MIXERCONTROLDETAILS, *PMIXERCONTROLDETAILS, *LPMIXERCONTROLDETAILS; - - - - - - - -typedef struct tagMIXERCONTROLDETAILS_LISTTEXTA { - DWORD dwParam1; - DWORD dwParam2; - CHAR szName[64]; -} MIXERCONTROLDETAILS_LISTTEXTA, *PMIXERCONTROLDETAILS_LISTTEXTA, *LPMIXERCONTROLDETAILS_LISTTEXTA; -typedef struct tagMIXERCONTROLDETAILS_LISTTEXTW { - DWORD dwParam1; - DWORD dwParam2; - WCHAR szName[64]; -} MIXERCONTROLDETAILS_LISTTEXTW, *PMIXERCONTROLDETAILS_LISTTEXTW, *LPMIXERCONTROLDETAILS_LISTTEXTW; - - - - - -typedef MIXERCONTROLDETAILS_LISTTEXTA MIXERCONTROLDETAILS_LISTTEXT; -typedef PMIXERCONTROLDETAILS_LISTTEXTA PMIXERCONTROLDETAILS_LISTTEXT; -typedef LPMIXERCONTROLDETAILS_LISTTEXTA LPMIXERCONTROLDETAILS_LISTTEXT; -# 2354 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -typedef struct tMIXERCONTROLDETAILS_BOOLEAN { - LONG fValue; -} MIXERCONTROLDETAILS_BOOLEAN, - *PMIXERCONTROLDETAILS_BOOLEAN, - *LPMIXERCONTROLDETAILS_BOOLEAN; - -typedef struct tMIXERCONTROLDETAILS_SIGNED { - LONG lValue; -} MIXERCONTROLDETAILS_SIGNED, - *PMIXERCONTROLDETAILS_SIGNED, - *LPMIXERCONTROLDETAILS_SIGNED; - -typedef struct tMIXERCONTROLDETAILS_UNSIGNED { - DWORD dwValue; -} MIXERCONTROLDETAILS_UNSIGNED, - *PMIXERCONTROLDETAILS_UNSIGNED, - *LPMIXERCONTROLDETAILS_UNSIGNED; - - - -__declspec(dllimport) -MMRESULT -__stdcall -mixerGetControlDetailsA( - HMIXEROBJ hmxobj, - LPMIXERCONTROLDETAILS pmxcd, - DWORD fdwDetails - ); - -__declspec(dllimport) -MMRESULT -__stdcall -mixerGetControlDetailsW( - HMIXEROBJ hmxobj, - LPMIXERCONTROLDETAILS pmxcd, - DWORD fdwDetails - ); -# 2406 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmeapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -mixerSetControlDetails( - HMIXEROBJ hmxobj, - LPMIXERCONTROLDETAILS pmxcd, - DWORD fdwDetails - ); -# 74 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 -# 88 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\timeapi.h" 1 3 -# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\timeapi.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\timeapi.h" 2 3 -# 41 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\timeapi.h" 3 -typedef struct timecaps_tag { - UINT wPeriodMin; - UINT wPeriodMax; -} TIMECAPS, *PTIMECAPS, *NPTIMECAPS, *LPTIMECAPS; - - - -__declspec(dllimport) -MMRESULT -__stdcall -timeGetSystemTime( - LPMMTIME pmmt, - UINT cbmmt - ); - - - -__declspec(dllimport) -DWORD -__stdcall -timeGetTime( - void - ); - - - -__declspec(dllimport) -MMRESULT -__stdcall -timeGetDevCaps( - LPTIMECAPS ptc, - UINT cbtc - ); - -__declspec(dllimport) -MMRESULT -__stdcall -timeBeginPeriod( - UINT uPeriod - ); - -__declspec(dllimport) -MMRESULT -__stdcall -timeEndPeriod( - UINT uPeriod - ); -# 89 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 -# 103 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\joystickapi.h" 1 3 -# 19 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\joystickapi.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsyscom.h" 1 3 -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\joystickapi.h" 2 3 -# 132 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\joystickapi.h" 3 -typedef struct tagJOYCAPSA { - WORD wMid; - WORD wPid; - CHAR szPname[32]; - UINT wXmin; - UINT wXmax; - UINT wYmin; - UINT wYmax; - UINT wZmin; - UINT wZmax; - UINT wNumButtons; - UINT wPeriodMin; - UINT wPeriodMax; - - UINT wRmin; - UINT wRmax; - UINT wUmin; - UINT wUmax; - UINT wVmin; - UINT wVmax; - UINT wCaps; - UINT wMaxAxes; - UINT wNumAxes; - UINT wMaxButtons; - CHAR szRegKey[32]; - CHAR szOEMVxD[260]; - -} JOYCAPSA, *PJOYCAPSA, *NPJOYCAPSA, *LPJOYCAPSA; -typedef struct tagJOYCAPSW { - WORD wMid; - WORD wPid; - WCHAR szPname[32]; - UINT wXmin; - UINT wXmax; - UINT wYmin; - UINT wYmax; - UINT wZmin; - UINT wZmax; - UINT wNumButtons; - UINT wPeriodMin; - UINT wPeriodMax; - - UINT wRmin; - UINT wRmax; - UINT wUmin; - UINT wUmax; - UINT wVmin; - UINT wVmax; - UINT wCaps; - UINT wMaxAxes; - UINT wNumAxes; - UINT wMaxButtons; - WCHAR szRegKey[32]; - WCHAR szOEMVxD[260]; - -} JOYCAPSW, *PJOYCAPSW, *NPJOYCAPSW, *LPJOYCAPSW; - - - - - - -typedef JOYCAPSA JOYCAPS; -typedef PJOYCAPSA PJOYCAPS; -typedef NPJOYCAPSA NPJOYCAPS; -typedef LPJOYCAPSA LPJOYCAPS; - -typedef struct tagJOYCAPS2A { - WORD wMid; - WORD wPid; - CHAR szPname[32]; - UINT wXmin; - UINT wXmax; - UINT wYmin; - UINT wYmax; - UINT wZmin; - UINT wZmax; - UINT wNumButtons; - UINT wPeriodMin; - UINT wPeriodMax; - UINT wRmin; - UINT wRmax; - UINT wUmin; - UINT wUmax; - UINT wVmin; - UINT wVmax; - UINT wCaps; - UINT wMaxAxes; - UINT wNumAxes; - UINT wMaxButtons; - CHAR szRegKey[32]; - CHAR szOEMVxD[260]; - GUID ManufacturerGuid; - GUID ProductGuid; - GUID NameGuid; -} JOYCAPS2A, *PJOYCAPS2A, *NPJOYCAPS2A, *LPJOYCAPS2A; -typedef struct tagJOYCAPS2W { - WORD wMid; - WORD wPid; - WCHAR szPname[32]; - UINT wXmin; - UINT wXmax; - UINT wYmin; - UINT wYmax; - UINT wZmin; - UINT wZmax; - UINT wNumButtons; - UINT wPeriodMin; - UINT wPeriodMax; - UINT wRmin; - UINT wRmax; - UINT wUmin; - UINT wUmax; - UINT wVmin; - UINT wVmax; - UINT wCaps; - UINT wMaxAxes; - UINT wNumAxes; - UINT wMaxButtons; - WCHAR szRegKey[32]; - WCHAR szOEMVxD[260]; - GUID ManufacturerGuid; - GUID ProductGuid; - GUID NameGuid; -} JOYCAPS2W, *PJOYCAPS2W, *NPJOYCAPS2W, *LPJOYCAPS2W; - - - - - - -typedef JOYCAPS2A JOYCAPS2; -typedef PJOYCAPS2A PJOYCAPS2; -typedef NPJOYCAPS2A NPJOYCAPS2; -typedef LPJOYCAPS2A LPJOYCAPS2; -# 301 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\joystickapi.h" 3 -typedef struct joyinfo_tag { - UINT wXpos; - UINT wYpos; - UINT wZpos; - UINT wButtons; -} JOYINFO, *PJOYINFO, *NPJOYINFO, *LPJOYINFO; - - -typedef struct joyinfoex_tag { - DWORD dwSize; - DWORD dwFlags; - DWORD dwXpos; - DWORD dwYpos; - DWORD dwZpos; - DWORD dwRpos; - DWORD dwUpos; - DWORD dwVpos; - DWORD dwButtons; - DWORD dwButtonNumber; - DWORD dwPOV; - DWORD dwReserved1; - DWORD dwReserved2; -} JOYINFOEX, *PJOYINFOEX, *NPJOYINFOEX, *LPJOYINFOEX; - - - - - - -__declspec(dllimport) -MMRESULT -__stdcall -joyGetPosEx( - UINT uJoyID, - LPJOYINFOEX pji - ); - - -__declspec(dllimport) -UINT -__stdcall -joyGetNumDevs( - void - ); - - -__declspec(dllimport) -MMRESULT -__stdcall -joyGetDevCapsA( - UINT_PTR uJoyID, - LPJOYCAPSA pjc, - UINT cbjc - ); - -__declspec(dllimport) -MMRESULT -__stdcall -joyGetDevCapsW( - UINT_PTR uJoyID, - LPJOYCAPSW pjc, - UINT cbjc - ); -# 374 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\joystickapi.h" 3 -__declspec(dllimport) -MMRESULT -__stdcall -joyGetPos( - UINT uJoyID, - LPJOYINFO pji - ); - -__declspec(dllimport) -MMRESULT -__stdcall -joyGetThreshold( - UINT uJoyID, - LPUINT puThreshold - ); - -__declspec(dllimport) -MMRESULT -__stdcall -joyReleaseCapture( - UINT uJoyID - ); - -__declspec(dllimport) -MMRESULT -__stdcall -joySetCapture( - HWND hwnd, - UINT uJoyID, - UINT uPeriod, - BOOL fChanged - ); - -__declspec(dllimport) -MMRESULT -__stdcall -joySetThreshold( - UINT uJoyID, - UINT uThreshold - ); - - - -__declspec(dllimport) -MMRESULT -__stdcall -joyConfigChanged( - DWORD dwFlags - ); -# 104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 -# 154 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 155 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mmsystem.h" 2 3 -# 201 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\nb30.h" 1 3 -# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\nb30.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) -# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\nb30.h" 3 -typedef struct _NCB { - UCHAR ncb_command; - UCHAR ncb_retcode; - UCHAR ncb_lsn; - UCHAR ncb_num; - PUCHAR ncb_buffer; - WORD ncb_length; - UCHAR ncb_callname[16]; - UCHAR ncb_name[16]; - UCHAR ncb_rto; - UCHAR ncb_sto; - void (__stdcall *ncb_post)( struct _NCB * ); - UCHAR ncb_lana_num; - UCHAR ncb_cmd_cplt; - - UCHAR ncb_reserve[18]; - - - - HANDLE ncb_event; - - - -} NCB, *PNCB; - - - - - - -typedef struct _ADAPTER_STATUS { - UCHAR adapter_address[6]; - UCHAR rev_major; - UCHAR reserved0; - UCHAR adapter_type; - UCHAR rev_minor; - WORD duration; - WORD frmr_recv; - WORD frmr_xmit; - - WORD iframe_recv_err; - - WORD xmit_aborts; - DWORD xmit_success; - DWORD recv_success; - - WORD iframe_xmit_err; - - WORD recv_buff_unavail; - WORD t1_timeouts; - WORD ti_timeouts; - DWORD reserved1; - WORD free_ncbs; - WORD max_cfg_ncbs; - WORD max_ncbs; - WORD xmit_buf_unavail; - WORD max_dgram_size; - WORD pending_sess; - WORD max_cfg_sess; - WORD max_sess; - WORD max_sess_pkt_size; - WORD name_count; -} ADAPTER_STATUS, *PADAPTER_STATUS; - -typedef struct _NAME_BUFFER { - UCHAR name[16]; - UCHAR name_num; - UCHAR name_flags; -} NAME_BUFFER, *PNAME_BUFFER; -# 138 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\nb30.h" 3 -typedef struct _SESSION_HEADER { - UCHAR sess_name; - UCHAR num_sess; - UCHAR rcv_dg_outstanding; - UCHAR rcv_any_outstanding; -} SESSION_HEADER, *PSESSION_HEADER; - -typedef struct _SESSION_BUFFER { - UCHAR lsn; - UCHAR state; - UCHAR local_name[16]; - UCHAR remote_name[16]; - UCHAR rcvs_outstanding; - UCHAR sends_outstanding; -} SESSION_BUFFER, *PSESSION_BUFFER; -# 170 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\nb30.h" 3 -typedef struct _LANA_ENUM { - UCHAR length; - UCHAR lana[254 +1]; -} LANA_ENUM, *PLANA_ENUM; - - - - - - -typedef struct _FIND_NAME_HEADER { - WORD node_count; - UCHAR reserved; - UCHAR unique_group; -} FIND_NAME_HEADER, *PFIND_NAME_HEADER; - -typedef struct _FIND_NAME_BUFFER { - UCHAR length; - UCHAR access_control; - UCHAR frame_control; - UCHAR destination_addr[6]; - UCHAR source_addr[6]; - UCHAR routing_info[18]; -} FIND_NAME_BUFFER, *PFIND_NAME_BUFFER; - - - - - - -typedef struct _ACTION_HEADER { - ULONG transport_id; - USHORT action_code; - USHORT reserved; -} ACTION_HEADER, *PACTION_HEADER; -# 305 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\nb30.h" 3 -UCHAR -__stdcall -Netbios( - PNCB pncb - ); -# 324 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\nb30.h" 3 -#pragma warning(pop) -# 202 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 1 3 -# 65 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,8) -# 66 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 2 3 - - - - - - - - -typedef void * I_RPC_HANDLE; - - - - -typedef long RPC_STATUS; -# 156 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 1 3 -# 29 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -#pragma warning(push) -#pragma warning(disable: 4668) -#pragma warning(disable: 4820) -# 63 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef unsigned char * RPC_CSTR; - - - - - -typedef unsigned short * RPC_WSTR; -typedef const unsigned short * RPC_CWSTR; - - -typedef I_RPC_HANDLE RPC_BINDING_HANDLE; -typedef RPC_BINDING_HANDLE handle_t; -# 83 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef GUID UUID; -# 95 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef struct _RPC_BINDING_VECTOR -{ - unsigned long Count; - RPC_BINDING_HANDLE BindingH[1]; -} RPC_BINDING_VECTOR; - - - - -typedef struct _UUID_VECTOR -{ - unsigned long Count; - UUID *Uuid[1]; -} UUID_VECTOR; -# 119 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef void * RPC_IF_HANDLE; - - - -typedef struct _RPC_IF_ID -{ - UUID Uuid; - unsigned short VersMajor; - unsigned short VersMinor; -} RPC_IF_ID; -# 215 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef struct _RPC_PROTSEQ_VECTORA -{ - unsigned int Count; - unsigned char * Protseq[1]; -} RPC_PROTSEQ_VECTORA; - -typedef struct _RPC_PROTSEQ_VECTORW -{ - unsigned int Count; - unsigned short * Protseq[1]; -} RPC_PROTSEQ_VECTORW; -# 242 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef struct _RPC_POLICY { - unsigned int Length ; - unsigned long EndpointFlags ; - unsigned long NICFlags ; - } RPC_POLICY, *PRPC_POLICY ; - -typedef void __stdcall -RPC_OBJECT_INQ_FN ( - UUID * ObjectUuid, - UUID * TypeUuid, - RPC_STATUS * Status - ); - - -typedef RPC_STATUS __stdcall -RPC_IF_CALLBACK_FN ( - RPC_IF_HANDLE InterfaceUuid, - void *Context - ) ; - -typedef void __stdcall -RPC_SECURITY_CALLBACK_FN ( - void *Context - ) ; -# 275 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef struct -{ - unsigned int Count; - unsigned long Stats[1]; -} RPC_STATS_VECTOR; - - - - - - -typedef struct -{ - unsigned long Count; - RPC_IF_ID * IfId[1]; -} RPC_IF_ID_VECTOR; - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingCopy ( - RPC_BINDING_HANDLE SourceBinding, - RPC_BINDING_HANDLE * DestinationBinding - ); - - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcBindingFree ( - RPC_BINDING_HANDLE * Binding - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingSetOption ( - RPC_BINDING_HANDLE hBinding, - unsigned long option, - ULONG_PTR optionValue - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingInqOption ( - RPC_BINDING_HANDLE hBinding, - unsigned long option, - ULONG_PTR *pOptionValue - ); - - - - - - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingFromStringBindingA ( - RPC_CSTR StringBinding, - RPC_BINDING_HANDLE * Binding - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingFromStringBindingW ( - RPC_WSTR StringBinding, - RPC_BINDING_HANDLE * Binding - ); -# 382 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcSsGetContextBinding ( - void *ContextHandle, - RPC_BINDING_HANDLE * Binding - ); -# 397 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingInqMaxCalls ( - RPC_BINDING_HANDLE Binding, - unsigned int * MaxCalls - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingInqObject ( - RPC_BINDING_HANDLE Binding, - UUID * ObjectUuid - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingReset ( - RPC_BINDING_HANDLE Binding - ); - - - - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingSetObject ( - RPC_BINDING_HANDLE Binding, - UUID * ObjectUuid - ); -# 445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtInqDefaultProtectLevel ( - unsigned long AuthnSvc, - unsigned long *AuthnLevel - ); -# 465 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingToStringBindingA ( - RPC_BINDING_HANDLE Binding, - RPC_CSTR * StringBinding - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingToStringBindingW ( - RPC_BINDING_HANDLE Binding, - RPC_WSTR * StringBinding - ); -# 509 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcBindingVectorFree ( - RPC_BINDING_VECTOR * * BindingVector - ); -# 529 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcStringBindingComposeA ( - RPC_CSTR ObjUuid, - RPC_CSTR ProtSeq, - RPC_CSTR NetworkAddr, - RPC_CSTR Endpoint, - RPC_CSTR Options, - RPC_CSTR * StringBinding - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcStringBindingComposeW ( - RPC_WSTR ObjUuid, - RPC_WSTR ProtSeq, - RPC_WSTR NetworkAddr, - RPC_WSTR Endpoint, - RPC_WSTR Options, - RPC_WSTR * StringBinding - ); -# 594 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcStringBindingParseA ( - RPC_CSTR StringBinding, - RPC_CSTR * ObjUuid, - RPC_CSTR * Protseq, - RPC_CSTR * NetworkAddr, - RPC_CSTR * Endpoint, - RPC_CSTR * NetworkOptions - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcStringBindingParseW ( - RPC_WSTR StringBinding, - RPC_WSTR * ObjUuid, - RPC_WSTR * Protseq, - RPC_WSTR * NetworkAddr, - RPC_WSTR * Endpoint, - RPC_WSTR * NetworkOptions - ); -# 660 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcStringFreeA ( - RPC_CSTR * String - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcStringFreeW ( - RPC_WSTR * String - ); -# 701 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcIfInqId ( - RPC_IF_HANDLE RpcIfHandle, - RPC_IF_ID * RpcIfId - ); -# 718 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcNetworkIsProtseqValidA ( - RPC_CSTR Protseq - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcNetworkIsProtseqValidW ( - RPC_WSTR Protseq - ); -# 761 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtInqComTimeout ( - RPC_BINDING_HANDLE Binding, - unsigned int * Timeout - ); - - - - - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtSetComTimeout ( - RPC_BINDING_HANDLE Binding, - unsigned int Timeout - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtSetCancelTimeout( - long Timeout - ); -# 803 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcNetworkInqProtseqsA ( - RPC_PROTSEQ_VECTORA * * ProtseqVector - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcNetworkInqProtseqsW ( - RPC_PROTSEQ_VECTORW * * ProtseqVector - ); -# 837 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcObjectInqType ( - UUID * ObjUuid, - UUID * TypeUuid - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcObjectSetInqFn ( - RPC_OBJECT_INQ_FN * InquiryFn - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcObjectSetType ( - UUID * ObjUuid, - UUID * TypeUuid - ); - - - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcProtseqVectorFreeA ( - RPC_PROTSEQ_VECTORA * * ProtseqVector - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcProtseqVectorFreeW ( - RPC_PROTSEQ_VECTORW * * ProtseqVector - ); -# 901 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerInqBindings ( - RPC_BINDING_VECTOR * * BindingVector - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerInqBindingsEx ( - void * SecurityDescriptor, - RPC_BINDING_VECTOR * * BindingVector - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerInqIf ( - RPC_IF_HANDLE IfSpec, - UUID * MgrTypeUuid, - void * * MgrEpv - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerListen ( - unsigned int MinimumCallThreads, - unsigned int MaxCalls, - unsigned int DontWait - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerRegisterIf ( - RPC_IF_HANDLE IfSpec, - UUID * MgrTypeUuid, - void * MgrEpv - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerRegisterIfEx ( - RPC_IF_HANDLE IfSpec, - UUID * MgrTypeUuid, - void * MgrEpv, - unsigned int Flags, - unsigned int MaxCalls, - RPC_IF_CALLBACK_FN *IfCallback - ); - - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerRegisterIf2 ( - RPC_IF_HANDLE IfSpec, - UUID * MgrTypeUuid, - void * MgrEpv, - unsigned int Flags, - unsigned int MaxCalls, - unsigned int MaxRpcSize, - RPC_IF_CALLBACK_FN *IfCallbackFn - ); - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerRegisterIf3 ( - RPC_IF_HANDLE IfSpec, - UUID * MgrTypeUuid, - void * MgrEpv, - unsigned int Flags, - unsigned int MaxCalls, - unsigned int MaxRpcSize, - RPC_IF_CALLBACK_FN *IfCallback, - void * SecurityDescriptor - ); - - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUnregisterIf ( - RPC_IF_HANDLE IfSpec, - UUID * MgrTypeUuid, - unsigned int WaitForCallsToComplete - ); - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerUnregisterIfEx ( - RPC_IF_HANDLE IfSpec, - UUID * MgrTypeUuid, - int RundownContextHandles - ); - - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseAllProtseqs ( - unsigned int MaxCalls, - void * SecurityDescriptor - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseAllProtseqsEx ( - unsigned int MaxCalls, - void * SecurityDescriptor, - PRPC_POLICY Policy - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseAllProtseqsIf ( - unsigned int MaxCalls, - RPC_IF_HANDLE IfSpec, - void * SecurityDescriptor - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseAllProtseqsIfEx ( - unsigned int MaxCalls, - RPC_IF_HANDLE IfSpec, - void * SecurityDescriptor, - PRPC_POLICY Policy - ); - - - - - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseProtseqA ( - RPC_CSTR Protseq, - unsigned int MaxCalls, - void * SecurityDescriptor - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseProtseqExA ( - RPC_CSTR Protseq, - unsigned int MaxCalls, - void * SecurityDescriptor, - PRPC_POLICY Policy - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseProtseqW ( - RPC_WSTR Protseq, - unsigned int MaxCalls, - void * SecurityDescriptor - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseProtseqExW ( - RPC_WSTR Protseq, - unsigned int MaxCalls, - void * SecurityDescriptor, - PRPC_POLICY Policy - ); -# 1146 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseProtseqEpA ( - RPC_CSTR Protseq, - unsigned int MaxCalls, - RPC_CSTR Endpoint, - void * SecurityDescriptor - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseProtseqEpExA ( - RPC_CSTR Protseq, - unsigned int MaxCalls, - RPC_CSTR Endpoint, - void * SecurityDescriptor, - PRPC_POLICY Policy - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseProtseqEpW ( - RPC_WSTR Protseq, - unsigned int MaxCalls, - RPC_WSTR Endpoint, - void * SecurityDescriptor - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseProtseqEpExW ( - RPC_WSTR Protseq, - unsigned int MaxCalls, - RPC_WSTR Endpoint, - void * SecurityDescriptor, - PRPC_POLICY Policy - ); -# 1229 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseProtseqIfA ( - RPC_CSTR Protseq, - unsigned int MaxCalls, - RPC_IF_HANDLE IfSpec, - void * SecurityDescriptor - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseProtseqIfExA ( - RPC_CSTR Protseq, - unsigned int MaxCalls, - RPC_IF_HANDLE IfSpec, - void * SecurityDescriptor, - PRPC_POLICY Policy - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseProtseqIfW ( - RPC_WSTR Protseq, - unsigned int MaxCalls, - RPC_IF_HANDLE IfSpec, - void * SecurityDescriptor - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerUseProtseqIfExW ( - RPC_WSTR Protseq, - unsigned int MaxCalls, - RPC_IF_HANDLE IfSpec, - void * SecurityDescriptor, - PRPC_POLICY Policy - ); -# 1308 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) -void -__stdcall -RpcServerYield ( - void - ); - - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcMgmtStatsVectorFree ( - RPC_STATS_VECTOR ** StatsVector - ); -# 1330 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtInqStats ( - RPC_BINDING_HANDLE Binding, - RPC_STATS_VECTOR ** Statistics - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtIsServerListening ( - RPC_BINDING_HANDLE Binding - ); -# 1355 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtStopServerListening ( - RPC_BINDING_HANDLE Binding - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtWaitServerListen ( - void - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtSetServerStackSize ( - unsigned long ThreadStackSize - ); - - -__declspec(dllimport) -void -__stdcall -RpcSsDontSerializeContext ( - void - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtEnableIdleCleanup ( - void - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtInqIfIds ( - RPC_BINDING_HANDLE Binding, - RPC_IF_ID_VECTOR * * IfIdVector - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcIfIdVectorFree ( - RPC_IF_ID_VECTOR * * IfIdVector - ); -# 1422 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtInqServerPrincNameA ( - RPC_BINDING_HANDLE Binding, - unsigned long AuthnSvc, - RPC_CSTR * ServerPrincName - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtInqServerPrincNameW ( - RPC_BINDING_HANDLE Binding, - unsigned long AuthnSvc, - RPC_WSTR * ServerPrincName - ); -# 1475 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerInqDefaultPrincNameA ( - unsigned long AuthnSvc, - RPC_CSTR * PrincName - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerInqDefaultPrincNameW ( - unsigned long AuthnSvc, - RPC_WSTR * PrincName - ); -# 1518 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcEpResolveBinding ( - RPC_BINDING_HANDLE Binding, - RPC_IF_HANDLE IfSpec - ); -# 1537 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcNsBindingInqEntryNameA ( - RPC_BINDING_HANDLE Binding, - unsigned long EntryNameSyntax, - RPC_CSTR * EntryName - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcNsBindingInqEntryNameW ( - RPC_BINDING_HANDLE Binding, - unsigned long EntryNameSyntax, - RPC_WSTR * EntryName - ); -# 1582 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef void * RPC_AUTH_IDENTITY_HANDLE; -typedef void * RPC_AUTHZ_HANDLE; -# 1657 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef struct _RPC_SECURITY_QOS { - unsigned long Version; - unsigned long Capabilities; - unsigned long IdentityTracking; - unsigned long ImpersonationType; -} RPC_SECURITY_QOS, *PRPC_SECURITY_QOS; - - - - - - - -typedef struct _SEC_WINNT_AUTH_IDENTITY_W { - unsigned short *User; - unsigned long UserLength; - unsigned short *Domain; - unsigned long DomainLength; - unsigned short *Password; - unsigned long PasswordLength; - unsigned long Flags; -} SEC_WINNT_AUTH_IDENTITY_W, *PSEC_WINNT_AUTH_IDENTITY_W; - - - - - -typedef struct _SEC_WINNT_AUTH_IDENTITY_A { - unsigned char *User; - unsigned long UserLength; - unsigned char *Domain; - unsigned long DomainLength; - unsigned char *Password; - unsigned long PasswordLength; - unsigned long Flags; -} SEC_WINNT_AUTH_IDENTITY_A, *PSEC_WINNT_AUTH_IDENTITY_A; -# 1735 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W -{ - SEC_WINNT_AUTH_IDENTITY_W *TransportCredentials; - unsigned long Flags; - unsigned long AuthenticationTarget; - unsigned long NumberOfAuthnSchemes; - unsigned long *AuthnSchemes; - unsigned short *ServerCertificateSubject; -} RPC_HTTP_TRANSPORT_CREDENTIALS_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_W; - -typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_A -{ - SEC_WINNT_AUTH_IDENTITY_A *TransportCredentials; - unsigned long Flags; - unsigned long AuthenticationTarget; - unsigned long NumberOfAuthnSchemes; - unsigned long *AuthnSchemes; - unsigned char *ServerCertificateSubject; -} RPC_HTTP_TRANSPORT_CREDENTIALS_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_A; - - - -typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W -{ - SEC_WINNT_AUTH_IDENTITY_W *TransportCredentials; - unsigned long Flags; - unsigned long AuthenticationTarget; - unsigned long NumberOfAuthnSchemes; - unsigned long *AuthnSchemes; - unsigned short *ServerCertificateSubject; - SEC_WINNT_AUTH_IDENTITY_W *ProxyCredentials; - unsigned long NumberOfProxyAuthnSchemes; - unsigned long *ProxyAuthnSchemes; -} RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V2_W; - -typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A -{ - SEC_WINNT_AUTH_IDENTITY_A *TransportCredentials; - unsigned long Flags; - unsigned long AuthenticationTarget; - unsigned long NumberOfAuthnSchemes; - unsigned long *AuthnSchemes; - unsigned char *ServerCertificateSubject; - SEC_WINNT_AUTH_IDENTITY_A *ProxyCredentials; - unsigned long NumberOfProxyAuthnSchemes; - unsigned long *ProxyAuthnSchemes; -} RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V2_A; - - - - - -typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W -{ - RPC_AUTH_IDENTITY_HANDLE TransportCredentials; - unsigned long Flags; - unsigned long AuthenticationTarget; - unsigned long NumberOfAuthnSchemes; - unsigned long *AuthnSchemes; - unsigned short *ServerCertificateSubject; - RPC_AUTH_IDENTITY_HANDLE ProxyCredentials; - unsigned long NumberOfProxyAuthnSchemes; - unsigned long *ProxyAuthnSchemes; -} RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V3_W; - -typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A -{ - RPC_AUTH_IDENTITY_HANDLE TransportCredentials; - unsigned long Flags; - unsigned long AuthenticationTarget; - unsigned long NumberOfAuthnSchemes; - unsigned long *AuthnSchemes; - unsigned char *ServerCertificateSubject; - RPC_AUTH_IDENTITY_HANDLE ProxyCredentials; - unsigned long NumberOfProxyAuthnSchemes; - unsigned long *ProxyAuthnSchemes; -} RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_V3_A; - - - -typedef struct _RPC_SECURITY_QOS_V2_W { - unsigned long Version; - unsigned long Capabilities; - unsigned long IdentityTracking; - unsigned long ImpersonationType; - unsigned long AdditionalSecurityInfoType; - union - { - RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials; - } u; -} RPC_SECURITY_QOS_V2_W, *PRPC_SECURITY_QOS_V2_W; - -typedef struct _RPC_SECURITY_QOS_V2_A { - unsigned long Version; - unsigned long Capabilities; - unsigned long IdentityTracking; - unsigned long ImpersonationType; - unsigned long AdditionalSecurityInfoType; - union - { - RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials; - } u; -} RPC_SECURITY_QOS_V2_A, *PRPC_SECURITY_QOS_V2_A; - - - - -typedef struct _RPC_SECURITY_QOS_V3_W { - unsigned long Version; - unsigned long Capabilities; - unsigned long IdentityTracking; - unsigned long ImpersonationType; - unsigned long AdditionalSecurityInfoType; - union - { - RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials; - } u; - void *Sid; -} RPC_SECURITY_QOS_V3_W, *PRPC_SECURITY_QOS_V3_W; - -typedef struct _RPC_SECURITY_QOS_V3_A { - unsigned long Version; - unsigned long Capabilities; - unsigned long IdentityTracking; - unsigned long ImpersonationType; - unsigned long AdditionalSecurityInfoType; - union - { - RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials; - } u; - void *Sid; -} RPC_SECURITY_QOS_V3_A, *PRPC_SECURITY_QOS_V3_A; - - - - - - -typedef struct _RPC_SECURITY_QOS_V4_W { - unsigned long Version; - unsigned long Capabilities; - unsigned long IdentityTracking; - unsigned long ImpersonationType; - unsigned long AdditionalSecurityInfoType; - union - { - RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials; - } u; - void *Sid; - unsigned int EffectiveOnly; -} RPC_SECURITY_QOS_V4_W, *PRPC_SECURITY_QOS_V4_W; - -typedef struct _RPC_SECURITY_QOS_V4_A { - unsigned long Version; - unsigned long Capabilities; - unsigned long IdentityTracking; - unsigned long ImpersonationType; - unsigned long AdditionalSecurityInfoType; - union - { - RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials; - } u; - void *Sid; - unsigned int EffectiveOnly; -} RPC_SECURITY_QOS_V4_A, *PRPC_SECURITY_QOS_V4_A; - - - - - - -typedef struct _RPC_SECURITY_QOS_V5_W { - unsigned long Version; - unsigned long Capabilities; - unsigned long IdentityTracking; - unsigned long ImpersonationType; - unsigned long AdditionalSecurityInfoType; - union - { - RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials; - } u; - void *Sid; - unsigned int EffectiveOnly; - void *ServerSecurityDescriptor; -} RPC_SECURITY_QOS_V5_W, *PRPC_SECURITY_QOS_V5_W; - -typedef struct _RPC_SECURITY_QOS_V5_A { - unsigned long Version; - unsigned long Capabilities; - unsigned long IdentityTracking; - unsigned long ImpersonationType; - unsigned long AdditionalSecurityInfoType; - union - { - RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials; - } u; - void *Sid; - unsigned int EffectiveOnly; - void *ServerSecurityDescriptor; -} RPC_SECURITY_QOS_V5_A, *PRPC_SECURITY_QOS_V5_A; -# 2051 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef struct _RPC_BINDING_HANDLE_TEMPLATE_V1_W { - unsigned long Version; - unsigned long Flags; - unsigned long ProtocolSequence; - unsigned short *NetworkAddress; - unsigned short *StringEndpoint; - union - { - unsigned short *Reserved; - } u1; - UUID ObjectUuid; -} RPC_BINDING_HANDLE_TEMPLATE_V1_W, *PRPC_BINDING_HANDLE_TEMPLATE_V1_W; - -typedef struct _RPC_BINDING_HANDLE_TEMPLATE_V1_A { - unsigned long Version; - unsigned long Flags; - unsigned long ProtocolSequence; - unsigned char *NetworkAddress; - unsigned char *StringEndpoint; - union - { - unsigned char *Reserved; - } u1; - UUID ObjectUuid; -} RPC_BINDING_HANDLE_TEMPLATE_V1_A, *PRPC_BINDING_HANDLE_TEMPLATE_V1_A; - -typedef struct _RPC_BINDING_HANDLE_SECURITY_V1_W { - unsigned long Version; - unsigned short *ServerPrincName; - unsigned long AuthnLevel; - unsigned long AuthnSvc; - SEC_WINNT_AUTH_IDENTITY_W *AuthIdentity; - RPC_SECURITY_QOS *SecurityQos; -} RPC_BINDING_HANDLE_SECURITY_V1_W, *PRPC_BINDING_HANDLE_SECURITY_V1_W; - - - -typedef struct _RPC_BINDING_HANDLE_SECURITY_V1_A { - unsigned long Version; - unsigned char *ServerPrincName; - unsigned long AuthnLevel; - unsigned long AuthnSvc; - SEC_WINNT_AUTH_IDENTITY_A *AuthIdentity; - RPC_SECURITY_QOS *SecurityQos; -} RPC_BINDING_HANDLE_SECURITY_V1_A, *PRPC_BINDING_HANDLE_SECURITY_V1_A; - - - -typedef struct _RPC_BINDING_HANDLE_OPTIONS_V1 { - unsigned long Version; - unsigned long Flags; - unsigned long ComTimeout; - unsigned long CallTimeout; -} RPC_BINDING_HANDLE_OPTIONS_V1, *PRPC_BINDING_HANDLE_OPTIONS_V1; -# 2130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcBindingCreateA ( - RPC_BINDING_HANDLE_TEMPLATE_V1_A * Template, - RPC_BINDING_HANDLE_SECURITY_V1_A * Security, - RPC_BINDING_HANDLE_OPTIONS_V1 * Options, - RPC_BINDING_HANDLE * Binding - ); - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcBindingCreateW ( - RPC_BINDING_HANDLE_TEMPLATE_V1_W * Template, - RPC_BINDING_HANDLE_SECURITY_V1_W * Security, - RPC_BINDING_HANDLE_OPTIONS_V1 * Options, - RPC_BINDING_HANDLE * Binding - ); -# 2164 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcBindingGetTrainingContextHandle ( - RPC_BINDING_HANDLE Binding, - void ** ContextHandle - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerInqBindingHandle ( - RPC_BINDING_HANDLE * Binding - ); -# 2190 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef enum _RPC_HTTP_REDIRECTOR_STAGE -{ - RPCHTTP_RS_REDIRECT = 1, - RPCHTTP_RS_ACCESS_1, - RPCHTTP_RS_SESSION, - RPCHTTP_RS_ACCESS_2, - RPCHTTP_RS_INTERFACE -} RPC_HTTP_REDIRECTOR_STAGE; -# 2208 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef RPC_STATUS -(__stdcall * RPC_NEW_HTTP_PROXY_CHANNEL) ( - RPC_HTTP_REDIRECTOR_STAGE RedirectorStage, - RPC_WSTR ServerName, - RPC_WSTR ServerPort, - RPC_WSTR RemoteUser, - RPC_WSTR AuthType, - void * ResourceUuid, - void * SessionId, - void * Interface, - void * Reserved, - unsigned long Flags, - RPC_WSTR * NewServerName, - RPC_WSTR * NewServerPort - ); -# 2235 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef void -(__stdcall * RPC_HTTP_PROXY_FREE_STRING) ( - RPC_WSTR String - ); -# 2259 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcImpersonateClient ( - RPC_BINDING_HANDLE BindingHandle - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcImpersonateClient2 ( - RPC_BINDING_HANDLE BindingHandle - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcRevertToSelfEx ( - RPC_BINDING_HANDLE BindingHandle - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcRevertToSelf ( - void - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcImpersonateClientContainer ( - RPC_BINDING_HANDLE BindingHandle - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcRevertContainerImpersonation ( - void - ); -# 2316 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingInqAuthClientA ( - RPC_BINDING_HANDLE ClientBinding, - RPC_AUTHZ_HANDLE * Privs, - RPC_CSTR * ServerPrincName, - unsigned long * AuthnLevel, - unsigned long * AuthnSvc, - unsigned long * AuthzSvc - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingInqAuthClientW ( - RPC_BINDING_HANDLE ClientBinding, - RPC_AUTHZ_HANDLE * Privs, - RPC_WSTR * ServerPrincName, - unsigned long * AuthnLevel, - unsigned long * AuthnSvc, - unsigned long * AuthzSvc - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcBindingInqAuthClientExA ( - RPC_BINDING_HANDLE ClientBinding, - RPC_AUTHZ_HANDLE * Privs, - RPC_CSTR * ServerPrincName, - unsigned long * AuthnLevel, - unsigned long * AuthnSvc, - unsigned long * AuthzSvc, - unsigned long Flags - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcBindingInqAuthClientExW ( - RPC_BINDING_HANDLE ClientBinding, - RPC_AUTHZ_HANDLE * Privs, - RPC_WSTR * ServerPrincName, - unsigned long * AuthnLevel, - unsigned long * AuthnSvc, - unsigned long * AuthzSvc, - unsigned long Flags - ); - - - - - - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingInqAuthInfoA ( - RPC_BINDING_HANDLE Binding, - RPC_CSTR * ServerPrincName, - unsigned long * AuthnLevel, - unsigned long * AuthnSvc, - RPC_AUTH_IDENTITY_HANDLE * AuthIdentity, - unsigned long * AuthzSvc - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingInqAuthInfoW ( - RPC_BINDING_HANDLE Binding, - RPC_WSTR * ServerPrincName, - unsigned long * AuthnLevel, - unsigned long * AuthnSvc, - RPC_AUTH_IDENTITY_HANDLE * AuthIdentity, - unsigned long * AuthzSvc - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingSetAuthInfoA ( - RPC_BINDING_HANDLE Binding, - RPC_CSTR ServerPrincName, - unsigned long AuthnLevel, - unsigned long AuthnSvc, - RPC_AUTH_IDENTITY_HANDLE AuthIdentity, - unsigned long AuthzSvc - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingSetAuthInfoExA ( - RPC_BINDING_HANDLE Binding, - RPC_CSTR ServerPrincName, - unsigned long AuthnLevel, - unsigned long AuthnSvc, - RPC_AUTH_IDENTITY_HANDLE AuthIdentity, - unsigned long AuthzSvc, - RPC_SECURITY_QOS * SecurityQos - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingSetAuthInfoW ( - RPC_BINDING_HANDLE Binding, - RPC_WSTR ServerPrincName, - unsigned long AuthnLevel, - unsigned long AuthnSvc, - RPC_AUTH_IDENTITY_HANDLE AuthIdentity, - unsigned long AuthzSvc - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingSetAuthInfoExW ( - RPC_BINDING_HANDLE Binding, - RPC_WSTR ServerPrincName, - unsigned long AuthnLevel, - unsigned long AuthnSvc, - RPC_AUTH_IDENTITY_HANDLE AuthIdentity, - unsigned long AuthzSvc, - RPC_SECURITY_QOS * SecurityQOS - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingInqAuthInfoExA ( - RPC_BINDING_HANDLE Binding, - RPC_CSTR * ServerPrincName, - unsigned long * AuthnLevel, - unsigned long * AuthnSvc, - RPC_AUTH_IDENTITY_HANDLE * AuthIdentity, - unsigned long * AuthzSvc, - unsigned long RpcQosVersion, - RPC_SECURITY_QOS *SecurityQOS - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingInqAuthInfoExW ( - RPC_BINDING_HANDLE Binding, - RPC_WSTR * ServerPrincName, - unsigned long * AuthnLevel, - unsigned long * AuthnSvc, - RPC_AUTH_IDENTITY_HANDLE * AuthIdentity, - unsigned long * AuthzSvc, - unsigned long RpcQosVersion, - RPC_SECURITY_QOS * SecurityQOS - ); - - - - - - - -typedef void -(__stdcall * RPC_AUTH_KEY_RETRIEVAL_FN) ( - void * Arg, - RPC_WSTR ServerPrincName, - unsigned long KeyVer, - void * * Key, - RPC_STATUS * Status - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerCompleteSecurityCallback( - RPC_BINDING_HANDLE BindingHandle, - RPC_STATUS Status - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerRegisterAuthInfoA ( - RPC_CSTR ServerPrincName, - unsigned long AuthnSvc, - RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn, - void * Arg - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerRegisterAuthInfoW ( - RPC_WSTR ServerPrincName, - unsigned long AuthnSvc, - RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn, - void * Arg - ); -# 2639 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef struct { - unsigned char * UserName; - unsigned char * ComputerName; - unsigned short Privilege; - unsigned long AuthFlags; -} RPC_CLIENT_INFORMATION1, * PRPC_CLIENT_INFORMATION1; - - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcBindingServerFromClient ( - RPC_BINDING_HANDLE ClientBinding, - RPC_BINDING_HANDLE * ServerBinding - ); - - - - - - - -__declspec(dllimport) -__declspec(noreturn) -void -__stdcall -RpcRaiseException ( - RPC_STATUS exception - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcTestCancel( - void - ); - - - - - - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcServerTestCancel ( - RPC_BINDING_HANDLE BindingHandle - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcCancelThread( - void * Thread - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcCancelThreadEx( - void * Thread, - long Timeout - ); -# 2716 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -UuidCreate ( - UUID * Uuid - ); - - -__declspec(dllimport) -RPC_STATUS -__stdcall -UuidCreateSequential ( - UUID * Uuid - ); - - - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -UuidToStringA ( - const UUID * Uuid, - RPC_CSTR * StringUuid - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -UuidFromStringA ( - RPC_CSTR StringUuid, - UUID * Uuid - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -UuidToStringW ( - const UUID * Uuid, - RPC_WSTR * StringUuid - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -UuidFromStringW ( - RPC_WSTR StringUuid, - UUID * Uuid - ); -# 2804 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) -signed int -__stdcall -UuidCompare ( - UUID * Uuid1, - UUID * Uuid2, - RPC_STATUS * Status - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -UuidCreateNil ( - UUID * NilUuid - ); - -__declspec(dllimport) -int -__stdcall -UuidEqual ( - UUID * Uuid1, - UUID * Uuid2, - RPC_STATUS * Status - ); - -__declspec(dllimport) -unsigned short -__stdcall -UuidHash ( - UUID * Uuid, - RPC_STATUS * Status - ); - -__declspec(dllimport) -int -__stdcall -UuidIsNil ( - UUID * Uuid, - RPC_STATUS * Status - ); -# 2854 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcEpRegisterNoReplaceA ( - RPC_IF_HANDLE IfSpec, - RPC_BINDING_VECTOR * BindingVector, - UUID_VECTOR * UuidVector, - RPC_CSTR Annotation - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcEpRegisterNoReplaceW ( - RPC_IF_HANDLE IfSpec, - RPC_BINDING_VECTOR * BindingVector, - UUID_VECTOR * UuidVector, - RPC_WSTR Annotation - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcEpRegisterA ( - RPC_IF_HANDLE IfSpec, - RPC_BINDING_VECTOR * BindingVector, - UUID_VECTOR * UuidVector, - RPC_CSTR Annotation - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcEpRegisterW ( - RPC_IF_HANDLE IfSpec, - RPC_BINDING_VECTOR * BindingVector, - UUID_VECTOR * UuidVector, - RPC_WSTR Annotation - ); -# 2931 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcEpUnregister( - RPC_IF_HANDLE IfSpec, - RPC_BINDING_VECTOR * BindingVector, - UUID_VECTOR * UuidVector - ); -# 2951 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -DceErrorInqTextA ( - RPC_STATUS RpcStatus, - RPC_CSTR ErrorText - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -DceErrorInqTextW ( - RPC_STATUS RpcStatus, - RPC_WSTR ErrorText - ); -# 2999 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef I_RPC_HANDLE * RPC_EP_INQ_HANDLE; -# 3012 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtEpEltInqBegin ( - RPC_BINDING_HANDLE EpBinding, - unsigned long InquiryType, - RPC_IF_ID * IfId, - unsigned long VersOption, - UUID * ObjectUuid, - RPC_EP_INQ_HANDLE * InquiryContext - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtEpEltInqDone ( - RPC_EP_INQ_HANDLE * InquiryContext - ); - - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtEpEltInqNextA ( - RPC_EP_INQ_HANDLE InquiryContext, - RPC_IF_ID * IfId, - RPC_BINDING_HANDLE * Binding, - UUID * ObjectUuid, - RPC_CSTR * Annotation - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtEpEltInqNextW ( - RPC_EP_INQ_HANDLE InquiryContext, - RPC_IF_ID * IfId, - RPC_BINDING_HANDLE * Binding, - UUID * ObjectUuid, - RPC_WSTR * Annotation - ); -# 3079 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtEpUnregister ( - RPC_BINDING_HANDLE EpBinding, - RPC_IF_ID * IfId, - RPC_BINDING_HANDLE Binding, - UUID * ObjectUuid - ); - -typedef int -(__stdcall * RPC_MGMT_AUTHORIZATION_FN) ( - RPC_BINDING_HANDLE ClientBinding, - unsigned long RequestedMgmtOperation, - RPC_STATUS * Status - ); - - - - - - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcMgmtSetAuthorizationFn ( - RPC_MGMT_AUTHORIZATION_FN AuthorizationFn - ); -# 3118 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) -int -__stdcall -RpcExceptionFilter ( - unsigned long ExceptionCode - ); -# 3153 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef void *RPC_INTERFACE_GROUP, **PRPC_INTERFACE_GROUP; - - -typedef struct -{ - unsigned long Version; - RPC_WSTR ProtSeq; - RPC_WSTR Endpoint; - void * SecurityDescriptor; - unsigned long Backlog; -} RPC_ENDPOINT_TEMPLATEW, *PRPC_ENDPOINT_TEMPLATEW; - -typedef struct -{ - unsigned long Version; - RPC_CSTR ProtSeq; - RPC_CSTR Endpoint; - void * SecurityDescriptor; - unsigned long Backlog; -} RPC_ENDPOINT_TEMPLATEA, *PRPC_ENDPOINT_TEMPLATEA; -# 3194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef struct -{ - unsigned long Version; - RPC_IF_HANDLE IfSpec; - UUID * MgrTypeUuid; - void * MgrEpv; - unsigned int Flags; - unsigned int MaxCalls; - unsigned int MaxRpcSize; - RPC_IF_CALLBACK_FN *IfCallback; - UUID_VECTOR *UuidVector; - RPC_CSTR Annotation; - void * SecurityDescriptor; -} RPC_INTERFACE_TEMPLATEA, *PRPC_INTERFACE_TEMPLATEA; - -typedef struct -{ - unsigned long Version; - RPC_IF_HANDLE IfSpec; - UUID * MgrTypeUuid; - void * MgrEpv; - unsigned int Flags; - unsigned int MaxCalls; - unsigned int MaxRpcSize; - RPC_IF_CALLBACK_FN *IfCallback; - UUID_VECTOR *UuidVector; - RPC_WSTR Annotation; - void * SecurityDescriptor; -} RPC_INTERFACE_TEMPLATEW, *PRPC_INTERFACE_TEMPLATEW; -# 3253 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -typedef void __stdcall -RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN ( - RPC_INTERFACE_GROUP IfGroup, - void* IdleCallbackContext, - unsigned long IsGroupIdle - ); - - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerInterfaceGroupCreateW ( - RPC_INTERFACE_TEMPLATEW *Interfaces, - unsigned long NumIfs, - RPC_ENDPOINT_TEMPLATEW *Endpoints, - unsigned long NumEndpoints, - unsigned long IdlePeriod, - RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN IdleCallbackFn, - void* IdleCallbackContext, - PRPC_INTERFACE_GROUP IfGroup - ); - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerInterfaceGroupCreateA ( - RPC_INTERFACE_TEMPLATEA *Interfaces, - unsigned long NumIfs, - RPC_ENDPOINT_TEMPLATEA *Endpoints, - unsigned long NumEndpoints, - unsigned long IdlePeriod, - RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN IdleCallbackFn, - void* IdleCallbackContext, - PRPC_INTERFACE_GROUP IfGroup - ); -# 3318 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 3 -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerInterfaceGroupClose ( - RPC_INTERFACE_GROUP IfGroup - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerInterfaceGroupActivate ( - RPC_INTERFACE_GROUP IfGroup - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerInterfaceGroupDeactivate ( - RPC_INTERFACE_GROUP IfGroup, - unsigned long ForceDeactivation - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerInterfaceGroupInqBindings ( - RPC_INTERFACE_GROUP IfGroup, - RPC_BINDING_VECTOR * * BindingVector - ); - - - - - - - - -#pragma warning(pop) - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 1 3 -# 33 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 -#pragma warning(push) -#pragma warning(disable: 4668) -#pragma warning(disable: 4820) - - - - - -typedef struct _RPC_VERSION { - unsigned short MajorVersion; - unsigned short MinorVersion; -} RPC_VERSION; - -typedef struct _RPC_SYNTAX_IDENTIFIER { - GUID SyntaxGUID; - RPC_VERSION SyntaxVersion; -} RPC_SYNTAX_IDENTIFIER, * PRPC_SYNTAX_IDENTIFIER; - -typedef struct _RPC_MESSAGE -{ - RPC_BINDING_HANDLE Handle; - unsigned long DataRepresentation; - void * Buffer; - unsigned int BufferLength; - unsigned int ProcNum; - PRPC_SYNTAX_IDENTIFIER TransferSyntax; - void * RpcInterfaceInformation; - void * ReservedForRuntime; - void * ManagerEpv; - void * ImportContext; - unsigned long RpcFlags; -} RPC_MESSAGE, * PRPC_MESSAGE; - - - - - - - -typedef RPC_STATUS -__stdcall RPC_FORWARD_FUNCTION( - UUID * InterfaceId, - RPC_VERSION * InterfaceVersion, - UUID * ObjectId, - unsigned char * Rpcpro, - void * * ppDestEndpoint); - -enum RPC_ADDRESS_CHANGE_TYPE -{ - PROTOCOL_NOT_LOADED = 1, - PROTOCOL_LOADED, - PROTOCOL_ADDRESS_CHANGE -}; - -typedef void -__stdcall RPC_ADDRESS_CHANGE_FN( - void * arg - ); -# 181 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 -typedef -void -(__stdcall * RPC_DISPATCH_FUNCTION) ( - PRPC_MESSAGE Message - ); - -typedef struct { - unsigned int DispatchTableCount; - RPC_DISPATCH_FUNCTION * DispatchTable; - LONG_PTR Reserved; -} RPC_DISPATCH_TABLE, * PRPC_DISPATCH_TABLE; - -typedef struct _RPC_PROTSEQ_ENDPOINT -{ - unsigned char * RpcProtocolSequence; - unsigned char * Endpoint; -} RPC_PROTSEQ_ENDPOINT, * PRPC_PROTSEQ_ENDPOINT; -# 206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 -typedef struct _RPC_SERVER_INTERFACE -{ - unsigned int Length; - RPC_SYNTAX_IDENTIFIER InterfaceId; - RPC_SYNTAX_IDENTIFIER TransferSyntax; - PRPC_DISPATCH_TABLE DispatchTable; - unsigned int RpcProtseqEndpointCount; - PRPC_PROTSEQ_ENDPOINT RpcProtseqEndpoint; - void *DefaultManagerEpv; - void const *InterpreterInfo; - unsigned int Flags ; -} RPC_SERVER_INTERFACE, * PRPC_SERVER_INTERFACE; - -typedef struct _RPC_CLIENT_INTERFACE -{ - unsigned int Length; - RPC_SYNTAX_IDENTIFIER InterfaceId; - RPC_SYNTAX_IDENTIFIER TransferSyntax; - PRPC_DISPATCH_TABLE DispatchTable; - unsigned int RpcProtseqEndpointCount; - PRPC_PROTSEQ_ENDPOINT RpcProtseqEndpoint; - ULONG_PTR Reserved; - void const * InterpreterInfo; - unsigned int Flags ; -} RPC_CLIENT_INTERFACE, * PRPC_CLIENT_INTERFACE; -# 239 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcNegotiateTransferSyntax ( - RPC_MESSAGE * Message - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcGetBuffer ( - RPC_MESSAGE * Message - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcGetBufferWithObject ( - RPC_MESSAGE * Message, - UUID * ObjectUuid - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcSendReceive ( - RPC_MESSAGE * Message - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcFreeBuffer ( - RPC_MESSAGE * Message - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcSend ( - PRPC_MESSAGE Message - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcReceive ( - PRPC_MESSAGE Message, - unsigned int Size - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcFreePipeBuffer ( - RPC_MESSAGE * Message - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcReallocPipeBuffer ( - PRPC_MESSAGE Message, - unsigned int NewSize - ); - -typedef void * I_RPC_MUTEX; - -__declspec(dllimport) -void -__stdcall -I_RpcRequestMutex ( - I_RPC_MUTEX * Mutex - ); - -__declspec(dllimport) -void -__stdcall -I_RpcClearMutex ( - I_RPC_MUTEX Mutex - ); - -__declspec(dllimport) -void -__stdcall -I_RpcDeleteMutex ( - I_RPC_MUTEX Mutex - ); - -__declspec(dllimport) -void * -__stdcall -I_RpcAllocate ( - unsigned int Size - ); - -__declspec(dllimport) -void -__stdcall -I_RpcFree ( - void * Object - ); - - - - - - -__declspec(dllimport) -unsigned long -__stdcall -I_RpcFreeSystemHandleCollection ( - void * CallObj, - unsigned long FreeFlags - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcSetSystemHandle ( - void * Handle, - unsigned char Type, - unsigned long AccessMask, - void * CallObj, - unsigned long * HandleIndex - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcGetSystemHandle ( - unsigned char* pMemory, - unsigned char Type, - unsigned long AccessMask, - unsigned long HandleIndex, - void * CallObj - ); - -__declspec(dllimport) -void -__stdcall -I_RpcFreeSystemHandle ( - unsigned char Type, - void * Handle - ); - -__declspec(dllimport) -void -__stdcall -I_RpcPauseExecution ( - unsigned long Milliseconds - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcGetExtendedError ( - void - ); - - -typedef enum _LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION -{ - MarshalDirectionMarshal, - MarshalDirectionUnmarshal -}LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION; - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcSystemHandleTypeSpecificWork ( - void * Handle, - unsigned char ActualType, - unsigned char IdlType, - LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION MarshalDirection - ); - -typedef -void -(__stdcall * PRPC_RUNDOWN) ( - void * AssociationContext - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcMonitorAssociation ( - RPC_BINDING_HANDLE Handle, - PRPC_RUNDOWN RundownRoutine, - void * Context - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcStopMonitorAssociation ( - RPC_BINDING_HANDLE Handle - ); - -__declspec(dllimport) -RPC_BINDING_HANDLE -__stdcall -I_RpcGetCurrentCallHandle( - void - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcGetAssociationContext ( - RPC_BINDING_HANDLE BindingHandle, - void * * AssociationContext - ); - -__declspec(dllimport) -void * -__stdcall -I_RpcGetServerContextList ( - RPC_BINDING_HANDLE BindingHandle - ); - -__declspec(dllimport) -void -__stdcall -I_RpcSetServerContextList ( - RPC_BINDING_HANDLE BindingHandle, - void * ServerContextList - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcNsInterfaceExported ( - unsigned long EntryNameSyntax, - unsigned short *EntryName, - RPC_SERVER_INTERFACE * RpcInterfaceInformation - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcNsInterfaceUnexported ( - unsigned long EntryNameSyntax, - unsigned short *EntryName, - RPC_SERVER_INTERFACE * RpcInterfaceInformation - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcBindingToStaticStringBindingW ( - RPC_BINDING_HANDLE Binding, - unsigned short **StringBinding - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcBindingInqSecurityContext ( - RPC_BINDING_HANDLE Binding, - void **SecurityContextHandle - ); - - -typedef struct _RPC_SEC_CONTEXT_KEY_INFO -{ - unsigned long EncryptAlgorithm; - unsigned long KeySize; - unsigned long SignatureAlgorithm; -} -RPC_SEC_CONTEXT_KEY_INFO, *PRPC_SEC_CONTEXT_KEY_INFO; - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcBindingInqSecurityContextKeyInfo ( - RPC_BINDING_HANDLE Binding, - void *KeyInfo - ); - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcBindingInqWireIdForSnego ( - RPC_BINDING_HANDLE Binding, - unsigned char * WireId - ); - - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcBindingInqMarshalledTargetInfo ( - RPC_BINDING_HANDLE Binding, - unsigned long * MarshalledTargetInfoSize, - RPC_CSTR * MarshalledTargetInfo - ); - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcBindingInqLocalClientPID ( - RPC_BINDING_HANDLE Binding, - unsigned long *Pid - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcBindingHandleToAsyncHandle ( - RPC_BINDING_HANDLE Binding, - void **AsyncHandle - ); - - - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcNsBindingSetEntryNameW ( - RPC_BINDING_HANDLE Binding, - unsigned long EntryNameSyntax, - RPC_WSTR EntryName - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcNsBindingSetEntryNameA ( - RPC_BINDING_HANDLE Binding, - unsigned long EntryNameSyntax, - RPC_CSTR EntryName - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcServerUseProtseqEp2A ( - RPC_CSTR NetworkAddress, - RPC_CSTR Protseq, - unsigned int MaxCalls, - RPC_CSTR Endpoint, - void * SecurityDescriptor, - void * Policy - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcServerUseProtseqEp2W ( - RPC_WSTR NetworkAddress, - RPC_WSTR Protseq, - unsigned int MaxCalls, - RPC_WSTR Endpoint, - void * SecurityDescriptor, - void * Policy - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcServerUseProtseq2W ( - RPC_WSTR NetworkAddress, - RPC_WSTR Protseq, - unsigned int MaxCalls, - void * SecurityDescriptor, - void * Policy - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcServerUseProtseq2A ( - RPC_CSTR NetworkAddress, - RPC_CSTR Protseq, - unsigned int MaxCalls, - void * SecurityDescriptor, - void * Policy - ); -# 683 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcServerStartService ( - RPC_WSTR Protseq, - RPC_WSTR Endpoint, - RPC_IF_HANDLE IfSpec - ); - - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcBindingInqDynamicEndpointW ( - RPC_BINDING_HANDLE Binding, - RPC_WSTR *DynamicEndpoint - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcBindingInqDynamicEndpointA ( - RPC_BINDING_HANDLE Binding, - RPC_CSTR *DynamicEndpoint - ); -# 732 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcServerCheckClientRestriction ( - RPC_BINDING_HANDLE Context - ); -# 746 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcBindingInqTransportType ( - RPC_BINDING_HANDLE Binding, - unsigned int * Type - ); - -typedef struct _RPC_TRANSFER_SYNTAX -{ - UUID Uuid; - unsigned short VersMajor; - unsigned short VersMinor; -} RPC_TRANSFER_SYNTAX; - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcIfInqTransferSyntaxes ( - RPC_IF_HANDLE RpcIfHandle, - RPC_TRANSFER_SYNTAX * TransferSyntaxes, - unsigned int TransferSyntaxSize, - unsigned int * TransferSyntaxCount - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_UuidCreate ( - UUID * Uuid - ); - -__declspec(dllimport) -void -__stdcall -I_RpcUninitializeNdrOle ( - void - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcBindingCopy ( - RPC_BINDING_HANDLE SourceBinding, - RPC_BINDING_HANDLE * DestinationBinding - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcBindingIsClientLocal ( - RPC_BINDING_HANDLE BindingHandle, - unsigned int * ClientLocalFlag - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcBindingInqConnId ( - RPC_BINDING_HANDLE Binding, - void **ConnId, - int *pfFirstCall - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcBindingCreateNP ( - RPC_WSTR ServerName, - RPC_WSTR ServiceName, - RPC_WSTR NetworkOptions, - RPC_BINDING_HANDLE *Binding - ); - -__declspec(dllimport) -void -__stdcall -I_RpcSsDontSerializeContext ( - void - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcLaunchDatagramReceiveThread( - void * pAddress - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcServerRegisterForwardFunction ( - RPC_FORWARD_FUNCTION * pForwardFunction - ); - -RPC_ADDRESS_CHANGE_FN * __stdcall -I_RpcServerInqAddressChangeFn( - void - ); - -RPC_STATUS __stdcall -I_RpcServerSetAddressChangeFn( - RPC_ADDRESS_CHANGE_FN * pAddressChangeFn - ); -# 864 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcServerInqLocalConnAddress ( - RPC_BINDING_HANDLE Binding, - void *Buffer, - unsigned long *BufferSize, - unsigned long *AddressFormat - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcServerInqRemoteConnAddress ( - RPC_BINDING_HANDLE Binding, - void *Buffer, - unsigned long *BufferSize, - unsigned long *AddressFormat - ); - -__declspec(dllimport) -void -__stdcall -I_RpcSessionStrictContextHandle ( - void - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcTurnOnEEInfoPropagation ( - void - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcConnectionInqSockBuffSize( - unsigned long * RecvBuffSize, - unsigned long * SendBuffSize - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcConnectionSetSockBuffSize( - unsigned long RecvBuffSize, - unsigned long SendBuffSize - ); - -typedef -void -(*RPCLT_PDU_FILTER_FUNC) ( - void *Buffer, - unsigned int BufferLength, - int fDatagram - ); - -typedef -void -(__cdecl *RPC_SETFILTER_FUNC) ( - RPCLT_PDU_FILTER_FUNC pfnFilter - ); - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcServerStartListening( - void * hWnd - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcServerStopListening( - void - ); - -typedef RPC_STATUS (*RPC_BLOCKING_FN) ( - void * hWnd, - void * Context, - void * hSyncEvent - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcBindingSetAsync( - RPC_BINDING_HANDLE Binding, - RPC_BLOCKING_FN BlockingFn, - unsigned long ServerTid - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcSetThreadParams( - int fClientFree, - void *Context, - void * hWndClient - ); - -__declspec(dllimport) -unsigned int -__stdcall -I_RpcWindowProc( - void * hWnd, - unsigned int Message, - unsigned int wParam, - unsigned long lParam - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcServerUnregisterEndpointA ( - RPC_CSTR Protseq, - RPC_CSTR Endpoint - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -I_RpcServerUnregisterEndpointW ( - RPC_WSTR Protseq, - RPC_WSTR Endpoint - ); -# 1009 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcServerInqTransportType( - unsigned int * Type - ); - -__declspec(dllimport) -long -__stdcall -I_RpcMapWin32Status ( - RPC_STATUS Status - ); - - - - - - - -typedef struct _RPC_C_OPT_COOKIE_AUTH_DESCRIPTOR -{ - unsigned long BufferSize; - char *Buffer; -} RPC_C_OPT_COOKIE_AUTH_DESCRIPTOR; - -typedef struct _RDR_CALLOUT_STATE -{ - - RPC_STATUS LastError; - void *LastEEInfo; - - RPC_HTTP_REDIRECTOR_STAGE LastCalledStage; - - - unsigned short *ServerName; - unsigned short *ServerPort; - unsigned short *RemoteUser; - unsigned short *AuthType; - unsigned char ResourceTypePresent; - unsigned char SessionIdPresent; - unsigned char InterfacePresent; - UUID ResourceType; - UUID SessionId; - RPC_SYNTAX_IDENTIFIER Interface; - void *CertContext; - - -} RDR_CALLOUT_STATE; - - - -typedef RPC_STATUS -(__stdcall *I_RpcProxyIsValidMachineFn) - ( - RPC_WSTR Machine, - RPC_WSTR DotMachine, - unsigned long PortNumber - ); - -typedef RPC_STATUS -(__stdcall *I_RpcProxyGetClientAddressFn) - ( - void *Context, - char *Buffer, - unsigned long *BufferLength - ); - -typedef RPC_STATUS -(__stdcall *I_RpcProxyGetConnectionTimeoutFn) - ( - unsigned long *ConnectionTimeout - ); - - -typedef RPC_STATUS -(__stdcall *I_RpcPerformCalloutFn) - ( - void *Context, - RDR_CALLOUT_STATE *CallOutState, - RPC_HTTP_REDIRECTOR_STAGE Stage - ); - -typedef void -(__stdcall *I_RpcFreeCalloutStateFn) - ( - RDR_CALLOUT_STATE *CallOutState - ); - -typedef RPC_STATUS -(__stdcall *I_RpcProxyGetClientSessionAndResourceUUID) - ( - void *Context, - int *SessionIdPresent, - UUID *SessionId, - int *ResourceIdPresent, - UUID *ResourceId - ); - - - - -typedef RPC_STATUS -(__stdcall *I_RpcProxyFilterIfFn) - ( - void *Context, - UUID *IfUuid, - unsigned short IfMajorVersion, - int *fAllow - ); - -typedef enum RpcProxyPerfCounters -{ - RpcCurrentUniqueUser = 1, - RpcBackEndConnectionAttempts, - RpcBackEndConnectionFailed, - RpcRequestsPerSecond, - RpcIncomingConnections, - RpcIncomingBandwidth, - RpcOutgoingBandwidth, - RpcAttemptedLbsDecisions, - RpcFailedLbsDecisions, - RpcAttemptedLbsMessages, - RpcFailedLbsMessages, - RpcLastCounter -} RpcPerfCounters; - -typedef void -(__stdcall *I_RpcProxyUpdatePerfCounterFn) - ( - RpcPerfCounters Counter, - int ModifyTrend, - unsigned long Size - ); - - typedef void -(__stdcall *I_RpcProxyUpdatePerfCounterBackendServerFn) - ( - unsigned short* MachineName, - int IsConnectEvent - ); - - - - - - - -typedef struct tagI_RpcProxyCallbackInterface -{ - I_RpcProxyIsValidMachineFn IsValidMachineFn; - I_RpcProxyGetClientAddressFn GetClientAddressFn; - I_RpcProxyGetConnectionTimeoutFn GetConnectionTimeoutFn; - I_RpcPerformCalloutFn PerformCalloutFn; - I_RpcFreeCalloutStateFn FreeCalloutStateFn; - I_RpcProxyGetClientSessionAndResourceUUID GetClientSessionAndResourceUUIDFn; - - I_RpcProxyFilterIfFn ProxyFilterIfFn; - I_RpcProxyUpdatePerfCounterFn RpcProxyUpdatePerfCounterFn; - I_RpcProxyUpdatePerfCounterBackendServerFn RpcProxyUpdatePerfCounterBackendServerFn; - -} I_RpcProxyCallbackInterface; - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcProxyNewConnection ( - unsigned long ConnectionType, - unsigned short *ServerAddress, - unsigned short *ServerPort, - unsigned short *MinConnTimeout, - void *ConnectionParameter, - RDR_CALLOUT_STATE *CallOutState, - I_RpcProxyCallbackInterface *ProxyCallbackInterface - ); -# 1209 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcReplyToClientWithStatus ( - void *ConnectionParameter, - RPC_STATUS RpcStatus - ); - -__declspec(dllimport) -void -__stdcall -I_RpcRecordCalloutFailure ( - RPC_STATUS RpcStatus, - RDR_CALLOUT_STATE *CallOutState, - unsigned short *DllName - ); - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcMgmtEnableDedicatedThreadPool ( - void - ); - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcGetDefaultSD( - void ** ppSecurityDescriptor - ); - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcOpenClientProcess( - RPC_BINDING_HANDLE Binding, - unsigned long DesiredAccess, - void** ClientProcess - ); - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcBindingIsServerLocal( - RPC_BINDING_HANDLE Binding, - unsigned int * ServerLocalFlag - ); - -RPC_STATUS __stdcall -I_RpcBindingSetPrivateOption ( - RPC_BINDING_HANDLE hBinding, - unsigned long option, - ULONG_PTR optionValue - ); -# 1279 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdcep.h" 3 -RPC_STATUS -__stdcall -I_RpcServerSubscribeForDisconnectNotification ( - RPC_BINDING_HANDLE Binding, - void *hEvent - ); - -RPC_STATUS -__stdcall -I_RpcServerGetAssociationID ( - RPC_BINDING_HANDLE Binding, - unsigned long *AssociationID - ); - -__declspec(dllimport) -long -__stdcall -I_RpcServerDisableExceptionFilter ( - void - ); - - - - -RPC_STATUS -__stdcall -I_RpcServerSubscribeForDisconnectNotification2 ( - RPC_BINDING_HANDLE Binding, - void *hEvent, - UUID *SubscriptionId - ); - -RPC_STATUS -__stdcall -I_RpcServerUnsubscribeForDisconnectNotification ( - RPC_BINDING_HANDLE Binding, - UUID SubscriptionId - ); - - - - - - - -#pragma warning(pop) -# 3359 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcdce.h" 2 3 -# 157 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 2 3 - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\rpcnsi.h" 1 3 -# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\rpcnsi.h" 3 -typedef void * RPC_NS_HANDLE; -# 44 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\rpcnsi.h" 3 -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsBindingExportA( - unsigned long EntryNameSyntax, - RPC_CSTR EntryName, - RPC_IF_HANDLE IfSpec, - RPC_BINDING_VECTOR *BindingVec, - UUID_VECTOR *ObjectUuidVec - ); - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsBindingUnexportA( - unsigned long EntryNameSyntax, - RPC_CSTR EntryName, - RPC_IF_HANDLE IfSpec, - UUID_VECTOR *ObjectUuidVec - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsBindingExportW( - unsigned long EntryNameSyntax, - RPC_WSTR EntryName, - RPC_IF_HANDLE IfSpec, - RPC_BINDING_VECTOR *BindingVec, - UUID_VECTOR *ObjectUuidVec - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsBindingUnexportW( - unsigned long EntryNameSyntax, - RPC_WSTR EntryName, - RPC_IF_HANDLE IfSpec, - UUID_VECTOR *ObjectUuidVec - ); - - - - - -RPC_STATUS __stdcall -RpcNsBindingExportPnPA( - unsigned long EntryNameSyntax, - RPC_CSTR EntryName, - RPC_IF_HANDLE IfSpec, - UUID_VECTOR *ObjectVector - ); - -RPC_STATUS __stdcall -RpcNsBindingUnexportPnPA( - unsigned long EntryNameSyntax, - RPC_CSTR EntryName, - RPC_IF_HANDLE IfSpec, - UUID_VECTOR *ObjectVector - ); - - - -RPC_STATUS __stdcall -RpcNsBindingExportPnPW( - unsigned long EntryNameSyntax, - RPC_WSTR EntryName, - RPC_IF_HANDLE IfSpec, - UUID_VECTOR *ObjectVector - ); - -RPC_STATUS __stdcall -RpcNsBindingUnexportPnPW( - unsigned long EntryNameSyntax, - RPC_WSTR EntryName, - RPC_IF_HANDLE IfSpec, - UUID_VECTOR *ObjectVector - ); - - - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsBindingLookupBeginA( - unsigned long EntryNameSyntax, - RPC_CSTR EntryName, - RPC_IF_HANDLE IfSpec, - UUID *ObjUuid, - unsigned long BindingMaxCount, - RPC_NS_HANDLE *LookupContext - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsBindingLookupBeginW( - unsigned long EntryNameSyntax, - RPC_WSTR EntryName, - RPC_IF_HANDLE IfSpec, - UUID *ObjUuid, - unsigned long BindingMaxCount, - RPC_NS_HANDLE *LookupContext - ); - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsBindingLookupNext( - RPC_NS_HANDLE LookupContext, - RPC_BINDING_VECTOR * * BindingVec - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsBindingLookupDone( - RPC_NS_HANDLE * LookupContext - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsGroupDeleteA( - unsigned long GroupNameSyntax, - RPC_CSTR GroupName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsGroupMbrAddA( - unsigned long GroupNameSyntax, - RPC_CSTR GroupName, - unsigned long MemberNameSyntax, - RPC_CSTR MemberName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsGroupMbrRemoveA( - unsigned long GroupNameSyntax, - RPC_CSTR GroupName, - unsigned long MemberNameSyntax, - RPC_CSTR MemberName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsGroupMbrInqBeginA( - unsigned long GroupNameSyntax, - RPC_CSTR GroupName, - unsigned long MemberNameSyntax, - RPC_NS_HANDLE *InquiryContext - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsGroupMbrInqNextA( - RPC_NS_HANDLE InquiryContext, - RPC_CSTR *MemberName - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsGroupDeleteW( - unsigned long GroupNameSyntax, - RPC_WSTR GroupName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsGroupMbrAddW( - unsigned long GroupNameSyntax, - RPC_WSTR GroupName, - unsigned long MemberNameSyntax, - RPC_WSTR MemberName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsGroupMbrRemoveW( - unsigned long GroupNameSyntax, - RPC_WSTR GroupName, - unsigned long MemberNameSyntax, - RPC_WSTR MemberName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsGroupMbrInqBeginW( - unsigned long GroupNameSyntax, - RPC_WSTR GroupName, - unsigned long MemberNameSyntax, - RPC_NS_HANDLE *InquiryContext - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsGroupMbrInqNextW( - RPC_NS_HANDLE InquiryContext, - RPC_WSTR *MemberName - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsGroupMbrInqDone( - RPC_NS_HANDLE * InquiryContext - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsProfileDeleteA( - unsigned long ProfileNameSyntax, - RPC_CSTR ProfileName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsProfileEltAddA( - unsigned long ProfileNameSyntax, - RPC_CSTR ProfileName, - RPC_IF_ID *IfId, - unsigned long MemberNameSyntax, - RPC_CSTR MemberName, - unsigned long Priority, - RPC_CSTR Annotation - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsProfileEltRemoveA( - unsigned long ProfileNameSyntax, - RPC_CSTR ProfileName, - RPC_IF_ID *IfId, - unsigned long MemberNameSyntax, - RPC_CSTR MemberName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsProfileEltInqBeginA( - unsigned long ProfileNameSyntax, - RPC_CSTR ProfileName, - unsigned long InquiryType, - RPC_IF_ID *IfId, - unsigned long VersOption, - unsigned long MemberNameSyntax, - RPC_CSTR MemberName, - RPC_NS_HANDLE *InquiryContext - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsProfileEltInqNextA( - RPC_NS_HANDLE InquiryContext, - RPC_IF_ID *IfId, - RPC_CSTR *MemberName, - unsigned long *Priority, - RPC_CSTR *Annotation - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsProfileDeleteW( - unsigned long ProfileNameSyntax, - RPC_WSTR ProfileName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsProfileEltAddW( - unsigned long ProfileNameSyntax, - RPC_WSTR ProfileName, - RPC_IF_ID *IfId, - unsigned long MemberNameSyntax, - RPC_WSTR MemberName, - unsigned long Priority, - RPC_WSTR Annotation - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsProfileEltRemoveW( - unsigned long ProfileNameSyntax, - RPC_WSTR ProfileName, - RPC_IF_ID *IfId, - unsigned long MemberNameSyntax, - RPC_WSTR MemberName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsProfileEltInqBeginW( - unsigned long ProfileNameSyntax, - RPC_WSTR ProfileName, - unsigned long InquiryType, - RPC_IF_ID *IfId, - unsigned long VersOption, - unsigned long MemberNameSyntax, - RPC_WSTR MemberName, - RPC_NS_HANDLE *InquiryContext - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsProfileEltInqNextW( - RPC_NS_HANDLE InquiryContext, - RPC_IF_ID *IfId, - RPC_WSTR *MemberName, - unsigned long *Priority, - RPC_WSTR *Annotation - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsProfileEltInqDone( - RPC_NS_HANDLE * InquiryContext - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsEntryObjectInqBeginA( - unsigned long EntryNameSyntax, - RPC_CSTR EntryName, - RPC_NS_HANDLE *InquiryContext - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsEntryObjectInqBeginW( - unsigned long EntryNameSyntax, - RPC_WSTR EntryName, - RPC_NS_HANDLE *InquiryContext - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsEntryObjectInqNext( - RPC_NS_HANDLE InquiryContext, - UUID * ObjUuid - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsEntryObjectInqDone( - RPC_NS_HANDLE * InquiryContext - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsEntryExpandNameA( - unsigned long EntryNameSyntax, - RPC_CSTR EntryName, - RPC_CSTR *ExpandedName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsMgmtBindingUnexportA( - unsigned long EntryNameSyntax, - RPC_CSTR EntryName, - RPC_IF_ID *IfId, - unsigned long VersOption, - UUID_VECTOR *ObjectUuidVec - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsMgmtEntryCreateA( - unsigned long EntryNameSyntax, - RPC_CSTR EntryName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsMgmtEntryDeleteA( - unsigned long EntryNameSyntax, - RPC_CSTR EntryName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsMgmtEntryInqIfIdsA( - unsigned long EntryNameSyntax, - RPC_CSTR EntryName, - RPC_IF_ID_VECTOR * *IfIdVec - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsMgmtHandleSetExpAge( - RPC_NS_HANDLE NsHandle, - unsigned long ExpirationAge - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsMgmtInqExpAge( - unsigned long * ExpirationAge - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsMgmtSetExpAge( - unsigned long ExpirationAge - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsEntryExpandNameW( - unsigned long EntryNameSyntax, - RPC_WSTR EntryName, - RPC_WSTR *ExpandedName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsMgmtBindingUnexportW( - unsigned long EntryNameSyntax, - RPC_WSTR EntryName, - RPC_IF_ID *IfId, - unsigned long VersOption, - UUID_VECTOR *ObjectUuidVec - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsMgmtEntryCreateW( - unsigned long EntryNameSyntax, - RPC_WSTR EntryName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsMgmtEntryDeleteW( - unsigned long EntryNameSyntax, - RPC_WSTR EntryName - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsMgmtEntryInqIfIdsW( - unsigned long EntryNameSyntax, - RPC_WSTR EntryName, - RPC_IF_ID_VECTOR * *IfIdVec - ); - - - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsBindingImportBeginA( - unsigned long EntryNameSyntax, - RPC_CSTR EntryName, - RPC_IF_HANDLE IfSpec, - UUID *ObjUuid, - RPC_NS_HANDLE *ImportContext - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsBindingImportBeginW( - unsigned long EntryNameSyntax, - RPC_WSTR EntryName, - RPC_IF_HANDLE IfSpec, - UUID *ObjUuid, - RPC_NS_HANDLE *ImportContext - ); - - - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsBindingImportNext( - RPC_NS_HANDLE ImportContext, - RPC_BINDING_HANDLE * Binding - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsBindingImportDone( - RPC_NS_HANDLE * ImportContext - ); - -__declspec(dllimport) RPC_STATUS __stdcall -RpcNsBindingSelect( - RPC_BINDING_VECTOR * BindingVec, - RPC_BINDING_HANDLE * Binding - ); -# 159 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 2 3 - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcnterr.h" 1 3 -# 25 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcnterr.h" 3 -#pragma warning(push) -#pragma warning(disable: 4668) -# 559 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcnterr.h" 3 -#pragma warning(pop) -# 161 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 2 3 -# 218 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 1 3 -# 26 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,8) -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 2 3 -# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - - - - -typedef -enum _RPC_NOTIFICATION_TYPES -{ - RpcNotificationTypeNone, - RpcNotificationTypeEvent, - - RpcNotificationTypeApc, - RpcNotificationTypeIoc, - RpcNotificationTypeHwnd, - - RpcNotificationTypeCallback -} RPC_NOTIFICATION_TYPES; - - -typedef -enum _RPC_ASYNC_EVENT { - RpcCallComplete, - RpcSendComplete, - RpcReceiveComplete, - RpcClientDisconnect, - RpcClientCancel - } RPC_ASYNC_EVENT; -# 92 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 -struct _RPC_ASYNC_STATE; - -typedef void __stdcall -RPCNOTIFICATION_ROUTINE ( - struct _RPC_ASYNC_STATE *pAsync, - void *Context, - RPC_ASYNC_EVENT Event); -typedef RPCNOTIFICATION_ROUTINE *PFN_RPCNOTIFICATION_ROUTINE; - -typedef union _RPC_ASYNC_NOTIFICATION_INFO { - - - - - struct { - PFN_RPCNOTIFICATION_ROUTINE NotificationRoutine; - HANDLE hThread; - } APC; - - - - - - - - struct { - HANDLE hIOPort; - DWORD dwNumberOfBytesTransferred; - DWORD_PTR dwCompletionKey; - LPOVERLAPPED lpOverlapped; - } IOC; - - - - - - - struct { - HWND hWnd; - UINT Msg; - } HWND; -# 142 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 - HANDLE hEvent; -# 155 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 - PFN_RPCNOTIFICATION_ROUTINE NotificationRoutine; -} RPC_ASYNC_NOTIFICATION_INFO, *PRPC_ASYNC_NOTIFICATION_INFO; - -typedef struct _RPC_ASYNC_STATE { - unsigned int Size; - unsigned long Signature; - long Lock; - unsigned long Flags; - void *StubInfo; - void *UserInfo; - void *RuntimeInfo; - RPC_ASYNC_EVENT Event; - - RPC_NOTIFICATION_TYPES NotificationType; - RPC_ASYNC_NOTIFICATION_INFO u; - - LONG_PTR Reserved[4]; - } RPC_ASYNC_STATE, *PRPC_ASYNC_STATE; -# 181 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcAsyncRegisterInfo ( - PRPC_ASYNC_STATE pAsync - ) ; - - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcAsyncInitializeHandle ( - PRPC_ASYNC_STATE pAsync, - unsigned int Size - ); - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcAsyncGetCallStatus ( - PRPC_ASYNC_STATE pAsync - ) ; - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcAsyncCompleteCall ( - PRPC_ASYNC_STATE pAsync, - void *Reply - ) ; - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcAsyncAbortCall ( - PRPC_ASYNC_STATE pAsync, - unsigned long ExceptionCode - ) ; - -__declspec(dllimport) - -RPC_STATUS -__stdcall -RpcAsyncCancelCall ( - PRPC_ASYNC_STATE pAsync, - BOOL fAbort - ) ; - - - - - - -typedef enum tagExtendedErrorParamTypes -{ - eeptAnsiString = 1, - eeptUnicodeString, - eeptLongVal, - eeptShortVal, - eeptPointerVal, - eeptNone, - eeptBinary -} ExtendedErrorParamTypes; - - - - -typedef struct tagBinaryParam -{ - void *Buffer; - short Size; -} BinaryParam; - -typedef struct tagRPC_EE_INFO_PARAM -{ - ExtendedErrorParamTypes ParameterType; - union - { - LPSTR AnsiString; - LPWSTR UnicodeString; - long LVal; - short SVal; - ULONGLONG PVal; - BinaryParam BVal; - } u; -} RPC_EE_INFO_PARAM; -# 282 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 -typedef struct tagRPC_EXTENDED_ERROR_INFO -{ - ULONG Version; - LPWSTR ComputerName; - ULONG ProcessID; - union - { - - SYSTEMTIME SystemTime; - FILETIME FileTime; - - - - } u; - ULONG GeneratingComponent; - ULONG Status; - USHORT DetectionLocation; - USHORT Flags; - int NumberOfParameters; - RPC_EE_INFO_PARAM Parameters[4]; -} RPC_EXTENDED_ERROR_INFO; - -typedef struct tagRPC_ERROR_ENUM_HANDLE -{ - ULONG Signature; - void *CurrentPos; - void *Head; -} RPC_ERROR_ENUM_HANDLE; - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcErrorStartEnumeration ( - RPC_ERROR_ENUM_HANDLE *EnumHandle - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcErrorGetNextRecord ( - RPC_ERROR_ENUM_HANDLE *EnumHandle, - BOOL CopyStrings, - RPC_EXTENDED_ERROR_INFO *ErrorInfo - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcErrorEndEnumeration ( - RPC_ERROR_ENUM_HANDLE *EnumHandle - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcErrorResetEnumeration ( - RPC_ERROR_ENUM_HANDLE *EnumHandle - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcErrorGetNumberOfRecords ( - RPC_ERROR_ENUM_HANDLE *EnumHandle, - int *Records - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcErrorSaveErrorInfo ( - RPC_ERROR_ENUM_HANDLE *EnumHandle, - PVOID *ErrorBlob, - size_t *BlobSize - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcErrorLoadErrorInfo ( - PVOID ErrorBlob, - size_t BlobSize, - RPC_ERROR_ENUM_HANDLE *EnumHandle - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcErrorAddRecord ( - RPC_EXTENDED_ERROR_INFO *ErrorInfo - ); - -__declspec(dllimport) -void -__stdcall -RpcErrorClearInformation ( - void - ); -# 391 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcAsyncCleanupThread ( - DWORD dwTimeout - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcGetAuthorizationContextForClient ( - RPC_BINDING_HANDLE ClientBinding, - BOOL ImpersonateOnReturn, - PVOID Reserved1, - PLARGE_INTEGER pExpirationTime, - LUID Reserved2, - DWORD Reserved3, - PVOID Reserved4, - PVOID *pAuthzClientContext - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcFreeAuthorizationContext ( - PVOID *pAuthzClientContext - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcSsContextLockExclusive ( - RPC_BINDING_HANDLE ServerBindingHandle, - PVOID UserContext - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcSsContextLockShared ( - RPC_BINDING_HANDLE ServerBindingHandle, - PVOID UserContext - ); - - -typedef enum tagRpcLocalAddressFormat -{ - rlafInvalid = 0, - rlafIPv4, - rlafIPv6 -} RpcLocalAddressFormat; - -typedef struct _RPC_CALL_LOCAL_ADDRESS_V1 -{ - unsigned int Version; - void *Buffer; - unsigned long BufferSize; - RpcLocalAddressFormat AddressFormat; -} RPC_CALL_LOCAL_ADDRESS_V1, *PRPC_CALL_LOCAL_ADDRESS_V1; -# 474 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 -typedef struct tagRPC_CALL_ATTRIBUTES_V1_W -{ - unsigned int Version; - unsigned long Flags; - unsigned long ServerPrincipalNameBufferLength; - unsigned short *ServerPrincipalName; - unsigned long ClientPrincipalNameBufferLength; - unsigned short *ClientPrincipalName; - unsigned long AuthenticationLevel; - unsigned long AuthenticationService; - BOOL NullSession; -} RPC_CALL_ATTRIBUTES_V1_W; - -typedef struct tagRPC_CALL_ATTRIBUTES_V1_A -{ - unsigned int Version; - unsigned long Flags; - unsigned long ServerPrincipalNameBufferLength; - unsigned char *ServerPrincipalName; - unsigned long ClientPrincipalNameBufferLength; - unsigned char *ClientPrincipalName; - unsigned long AuthenticationLevel; - unsigned long AuthenticationService; - BOOL NullSession; -} RPC_CALL_ATTRIBUTES_V1_A; - - - - - - -typedef enum tagRpcCallType -{ - rctInvalid = 0, - rctNormal, - rctTraining, - rctGuaranteed -} RpcCallType; - -typedef enum tagRpcCallClientLocality -{ - rcclInvalid = 0, - rcclLocal, - rcclRemote, - rcclClientUnknownLocality -} RpcCallClientLocality; - - -typedef struct tagRPC_CALL_ATTRIBUTES_V2_W -{ - unsigned int Version; - unsigned long Flags; - unsigned long ServerPrincipalNameBufferLength; - unsigned short *ServerPrincipalName; - unsigned long ClientPrincipalNameBufferLength; - unsigned short *ClientPrincipalName; - unsigned long AuthenticationLevel; - unsigned long AuthenticationService; - BOOL NullSession; - BOOL KernelModeCaller; - unsigned long ProtocolSequence; - RpcCallClientLocality IsClientLocal; - HANDLE ClientPID; - unsigned long CallStatus; - RpcCallType CallType; - RPC_CALL_LOCAL_ADDRESS_V1 *CallLocalAddress; - unsigned short OpNum; - UUID InterfaceUuid; -} RPC_CALL_ATTRIBUTES_V2_W; - -typedef struct tagRPC_CALL_ATTRIBUTES_V2_A -{ - unsigned int Version; - unsigned long Flags; - unsigned long ServerPrincipalNameBufferLength; - unsigned char *ServerPrincipalName; - unsigned long ClientPrincipalNameBufferLength; - unsigned char *ClientPrincipalName; - unsigned long AuthenticationLevel; - unsigned long AuthenticationService; - BOOL NullSession; - BOOL KernelModeCaller; - unsigned long ProtocolSequence; - unsigned long IsClientLocal; - HANDLE ClientPID; - unsigned long CallStatus; - RpcCallType CallType; - RPC_CALL_LOCAL_ADDRESS_V1 *CallLocalAddress; - unsigned short OpNum; - UUID InterfaceUuid; -} RPC_CALL_ATTRIBUTES_V2_A; - - - -typedef struct tagRPC_CALL_ATTRIBUTES_V3_W -{ - unsigned int Version; - unsigned long Flags; - unsigned long ServerPrincipalNameBufferLength; - unsigned short *ServerPrincipalName; - unsigned long ClientPrincipalNameBufferLength; - unsigned short *ClientPrincipalName; - unsigned long AuthenticationLevel; - unsigned long AuthenticationService; - BOOL NullSession; - BOOL KernelModeCaller; - unsigned long ProtocolSequence; - RpcCallClientLocality IsClientLocal; - HANDLE ClientPID; - unsigned long CallStatus; - RpcCallType CallType; - RPC_CALL_LOCAL_ADDRESS_V1 *CallLocalAddress; - unsigned short OpNum; - UUID InterfaceUuid; - unsigned long ClientIdentifierBufferLength; - unsigned char *ClientIdentifier; -} RPC_CALL_ATTRIBUTES_V3_W; - -typedef struct tagRPC_CALL_ATTRIBUTES_V3_A -{ - unsigned int Version; - unsigned long Flags; - unsigned long ServerPrincipalNameBufferLength; - unsigned char *ServerPrincipalName; - unsigned long ClientPrincipalNameBufferLength; - unsigned char *ClientPrincipalName; - unsigned long AuthenticationLevel; - unsigned long AuthenticationService; - BOOL NullSession; - BOOL KernelModeCaller; - unsigned long ProtocolSequence; - unsigned long IsClientLocal; - HANDLE ClientPID; - unsigned long CallStatus; - RpcCallType CallType; - RPC_CALL_LOCAL_ADDRESS_V1 *CallLocalAddress; - unsigned short OpNum; - UUID InterfaceUuid; - unsigned long ClientIdentifierBufferLength; - unsigned char *ClientIdentifier; -} RPC_CALL_ATTRIBUTES_V3_A; - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerInqCallAttributesW ( - RPC_BINDING_HANDLE ClientBinding, - void *RpcCallAttributes - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerInqCallAttributesA ( - RPC_BINDING_HANDLE ClientBinding, - void *RpcCallAttributes - ); -# 655 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 -typedef RPC_CALL_ATTRIBUTES_V3_A RPC_CALL_ATTRIBUTES; -# 664 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 -typedef enum _RPC_NOTIFICATIONS -{ - RpcNotificationCallNone = 0, - RpcNotificationClientDisconnect = 1, - RpcNotificationCallCancel = 2 -} RPC_NOTIFICATIONS; - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerSubscribeForNotification ( - RPC_BINDING_HANDLE Binding, - RPC_NOTIFICATIONS Notification, - RPC_NOTIFICATION_TYPES NotificationType, - RPC_ASYNC_NOTIFICATION_INFO *NotificationInfo - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcServerUnsubscribeForNotification ( - RPC_BINDING_HANDLE Binding, - RPC_NOTIFICATIONS Notification, - unsigned long *NotificationsQueued - ); -# 703 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcBindingBind ( - PRPC_ASYNC_STATE pAsync, - RPC_BINDING_HANDLE Binding, - RPC_IF_HANDLE IfSpec - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcBindingUnbind ( - RPC_BINDING_HANDLE Binding - ); -# 733 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 -RPC_STATUS __stdcall -I_RpcAsyncSetHandle ( - PRPC_MESSAGE Message, - PRPC_ASYNC_STATE pAsync - ); - - -RPC_STATUS __stdcall -I_RpcAsyncAbortCall ( - PRPC_ASYNC_STATE pAsync, - unsigned long ExceptionCode - ) ; - - -int -__stdcall -I_RpcExceptionFilter ( - unsigned long ExceptionCode - ); - - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcBindingInqClientTokenAttributes ( - RPC_BINDING_HANDLE Binding, - LUID * TokenId, - LUID * AuthenticationId, - LUID * ModifiedId - ); - - - - -#pragma warning(pop) -# 780 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 781 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcasync.h" 2 3 -# 219 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 2 3 - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 224 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpc.h" 2 3 -# 203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 1 3 -# 12 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -#pragma warning(push) -#pragma warning(disable: 4001) -#pragma warning(disable: 4201) -#pragma warning(disable: 4820) -# 68 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -extern __declspec(dllimport) LPWSTR * __stdcall CommandLineToArgvW( LPCWSTR lpCmdLine, int* pNumArgs); -# 79 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -struct HDROP__{int unused;}; typedef struct HDROP__ *HDROP; - - -extern __declspec(dllimport) UINT __stdcall DragQueryFileA( HDROP hDrop, UINT iFile, LPSTR lpszFile, UINT cch); - -extern __declspec(dllimport) UINT __stdcall DragQueryFileW( HDROP hDrop, UINT iFile, LPWSTR lpszFile, UINT cch); - - - - - -extern __declspec(dllimport) BOOL __stdcall DragQueryPoint( HDROP hDrop, POINT *ppt); -extern __declspec(dllimport) void __stdcall DragFinish( HDROP hDrop); -extern __declspec(dllimport) void __stdcall DragAcceptFiles( HWND hWnd, BOOL fAccept); - -extern __declspec(dllimport) HINSTANCE __stdcall ShellExecuteA( HWND hwnd, LPCSTR lpOperation, LPCSTR lpFile, LPCSTR lpParameters, - LPCSTR lpDirectory, INT nShowCmd); -extern __declspec(dllimport) HINSTANCE __stdcall ShellExecuteW( HWND hwnd, LPCWSTR lpOperation, LPCWSTR lpFile, LPCWSTR lpParameters, - LPCWSTR lpDirectory, INT nShowCmd); - - - - - - -extern __declspec(dllimport) HINSTANCE __stdcall FindExecutableA( LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResult); - -extern __declspec(dllimport) HINSTANCE __stdcall FindExecutableW( LPCWSTR lpFile, LPCWSTR lpDirectory, LPWSTR lpResult); - - - - - - -extern __declspec(dllimport) INT __stdcall ShellAboutA( HWND hWnd, LPCSTR szApp, LPCSTR szOtherStuff, HICON hIcon); -extern __declspec(dllimport) INT __stdcall ShellAboutW( HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff, HICON hIcon); - - - - - -extern __declspec(dllimport) HICON __stdcall DuplicateIcon( HINSTANCE hInst, HICON hIcon); -extern __declspec(dllimport) HICON __stdcall ExtractAssociatedIconA( HINSTANCE hInst, LPSTR pszIconPath, WORD *piIcon); -extern __declspec(dllimport) HICON __stdcall ExtractAssociatedIconW( HINSTANCE hInst, LPWSTR pszIconPath, WORD *piIcon); - - - - - -extern __declspec(dllimport) HICON __stdcall ExtractAssociatedIconExA( HINSTANCE hInst, LPSTR pszIconPath, WORD *piIconIndex, WORD *piIconId); -extern __declspec(dllimport) HICON __stdcall ExtractAssociatedIconExW( HINSTANCE hInst, LPWSTR pszIconPath, WORD *piIconIndex, WORD *piIconId); - - - - - -extern __declspec(dllimport) HICON __stdcall ExtractIconA( HINSTANCE hInst, LPCSTR pszExeFileName, UINT nIconIndex); -extern __declspec(dllimport) HICON __stdcall ExtractIconW( HINSTANCE hInst, LPCWSTR pszExeFileName, UINT nIconIndex); -# 145 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef struct _DRAGINFOA { - UINT uSize; - POINT pt; - BOOL fNC; - PZZSTR lpFileList; - DWORD grfKeyState; -} DRAGINFOA, *LPDRAGINFOA; -typedef struct _DRAGINFOW { - UINT uSize; - POINT pt; - BOOL fNC; - PZZWSTR lpFileList; - DWORD grfKeyState; -} DRAGINFOW, *LPDRAGINFOW; - - - - -typedef DRAGINFOA DRAGINFO; -typedef LPDRAGINFOA LPDRAGINFO; -# 207 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef struct _AppBarData -{ - DWORD cbSize; - HWND hWnd; - UINT uCallbackMessage; - UINT uEdge; - RECT rc; - LPARAM lParam; -} APPBARDATA, *PAPPBARDATA; - - -extern __declspec(dllimport) UINT_PTR __stdcall SHAppBarMessage( DWORD dwMessage, PAPPBARDATA pData); - - - - - -extern __declspec(dllimport) DWORD __stdcall DoEnvironmentSubstA( LPSTR pszSrc, UINT cchSrc); -extern __declspec(dllimport) DWORD __stdcall DoEnvironmentSubstW( LPWSTR pszSrc, UINT cchSrc); - - - - - - - -extern __declspec(dllimport) UINT __stdcall ExtractIconExA( LPCSTR lpszFile, int nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIcons); -extern __declspec(dllimport) UINT __stdcall ExtractIconExW( LPCWSTR lpszFile, int nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIcons); -# 271 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef WORD FILEOP_FLAGS; -# 284 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef WORD PRINTEROP_FLAGS; -# 293 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef struct _SHFILEOPSTRUCTA -{ - HWND hwnd; - UINT wFunc; - PCZZSTR pFrom; - PCZZSTR pTo; - FILEOP_FLAGS fFlags; - BOOL fAnyOperationsAborted; - LPVOID hNameMappings; - PCSTR lpszProgressTitle; -} SHFILEOPSTRUCTA, *LPSHFILEOPSTRUCTA; -typedef struct _SHFILEOPSTRUCTW -{ - HWND hwnd; - UINT wFunc; - PCZZWSTR pFrom; - PCZZWSTR pTo; - FILEOP_FLAGS fFlags; - BOOL fAnyOperationsAborted; - LPVOID hNameMappings; - PCWSTR lpszProgressTitle; -} SHFILEOPSTRUCTW, *LPSHFILEOPSTRUCTW; - - - - -typedef SHFILEOPSTRUCTA SHFILEOPSTRUCT; -typedef LPSHFILEOPSTRUCTA LPSHFILEOPSTRUCT; - - -extern __declspec(dllimport) int __stdcall SHFileOperationA( LPSHFILEOPSTRUCTA lpFileOp); -extern __declspec(dllimport) int __stdcall SHFileOperationW( LPSHFILEOPSTRUCTW lpFileOp); - - - - - -extern __declspec(dllimport) void __stdcall SHFreeNameMappings( HANDLE hNameMappings); - -typedef struct _SHNAMEMAPPINGA -{ - LPSTR pszOldPath; - LPSTR pszNewPath; - int cchOldPath; - int cchNewPath; -} SHNAMEMAPPINGA, *LPSHNAMEMAPPINGA; -typedef struct _SHNAMEMAPPINGW -{ - LPWSTR pszOldPath; - LPWSTR pszNewPath; - int cchOldPath; - int cchNewPath; -} SHNAMEMAPPINGW, *LPSHNAMEMAPPINGW; - - - - -typedef SHNAMEMAPPINGA SHNAMEMAPPING; -typedef LPSHNAMEMAPPINGA LPSHNAMEMAPPING; -# 445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef struct _SHELLEXECUTEINFOA -{ - DWORD cbSize; - ULONG fMask; - HWND hwnd; - LPCSTR lpVerb; - LPCSTR lpFile; - LPCSTR lpParameters; - LPCSTR lpDirectory; - int nShow; - HINSTANCE hInstApp; - void *lpIDList; - LPCSTR lpClass; - HKEY hkeyClass; - DWORD dwHotKey; - union - { - HANDLE hIcon; - - HANDLE hMonitor; - - } ; - HANDLE hProcess; -} SHELLEXECUTEINFOA, *LPSHELLEXECUTEINFOA; -typedef struct _SHELLEXECUTEINFOW -{ - DWORD cbSize; - ULONG fMask; - HWND hwnd; - LPCWSTR lpVerb; - LPCWSTR lpFile; - LPCWSTR lpParameters; - LPCWSTR lpDirectory; - int nShow; - HINSTANCE hInstApp; - void *lpIDList; - LPCWSTR lpClass; - HKEY hkeyClass; - DWORD dwHotKey; - union - { - HANDLE hIcon; - - HANDLE hMonitor; - - } ; - HANDLE hProcess; -} SHELLEXECUTEINFOW, *LPSHELLEXECUTEINFOW; - - - - -typedef SHELLEXECUTEINFOA SHELLEXECUTEINFO; -typedef LPSHELLEXECUTEINFOA LPSHELLEXECUTEINFO; - - -extern __declspec(dllimport) BOOL __stdcall ShellExecuteExA( SHELLEXECUTEINFOA *pExecInfo); -extern __declspec(dllimport) BOOL __stdcall ShellExecuteExW( SHELLEXECUTEINFOW *pExecInfo); -# 511 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef struct _SHCREATEPROCESSINFOW -{ - DWORD cbSize; - ULONG fMask; - HWND hwnd; - LPCWSTR pszFile; - LPCWSTR pszParameters; - LPCWSTR pszCurrentDirectory; - HANDLE hUserToken; - LPSECURITY_ATTRIBUTES lpProcessAttributes; - LPSECURITY_ATTRIBUTES lpThreadAttributes; - BOOL bInheritHandles; - DWORD dwCreationFlags; - LPSTARTUPINFOW lpStartupInfo; - LPPROCESS_INFORMATION lpProcessInformation; -} SHCREATEPROCESSINFOW, *PSHCREATEPROCESSINFOW; - -extern __declspec(dllimport) BOOL __stdcall SHCreateProcessAsUserW( PSHCREATEPROCESSINFOW pscpi); - - - - -extern __declspec(dllimport) HRESULT __stdcall SHEvaluateSystemCommandTemplate( PCWSTR pszCmdTemplate, PWSTR *ppszApplication, PWSTR *ppszCommandLine, PWSTR *ppszParameters); -# 869 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef enum ASSOCCLASS -{ - ASSOCCLASS_SHELL_KEY = 0, - ASSOCCLASS_PROGID_KEY, - ASSOCCLASS_PROGID_STR, - ASSOCCLASS_CLSID_KEY, - ASSOCCLASS_CLSID_STR, - ASSOCCLASS_APP_KEY, - ASSOCCLASS_APP_STR, - ASSOCCLASS_SYSTEM_STR, - ASSOCCLASS_FOLDER, - ASSOCCLASS_STAR, - - ASSOCCLASS_FIXED_PROGID_STR, - ASSOCCLASS_PROTOCOL_STR, - -} ASSOCCLASS; - -typedef struct ASSOCIATIONELEMENT -{ - ASSOCCLASS ac; - HKEY hkClass; - PCWSTR pszClass; -} ASSOCIATIONELEMENT; - - - -extern __declspec(dllimport) HRESULT __stdcall AssocCreateForClasses( const ASSOCIATIONELEMENT *rgClasses, ULONG cClasses, const IID * const riid, void **ppv); -# 942 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef struct _SHQUERYRBINFO { - DWORD cbSize; - - __int64 i64Size; - __int64 i64NumItems; - - - - -} SHQUERYRBINFO, *LPSHQUERYRBINFO; -# 961 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall SHQueryRecycleBinA( LPCSTR pszRootPath, LPSHQUERYRBINFO pSHQueryRBInfo); -extern __declspec(dllimport) HRESULT __stdcall SHQueryRecycleBinW( LPCWSTR pszRootPath, LPSHQUERYRBINFO pSHQueryRBInfo); - - - - - -extern __declspec(dllimport) HRESULT __stdcall SHEmptyRecycleBinA( HWND hwnd, LPCSTR pszRootPath, DWORD dwFlags); -extern __declspec(dllimport) HRESULT __stdcall SHEmptyRecycleBinW( HWND hwnd, LPCWSTR pszRootPath, DWORD dwFlags); -# 986 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef enum -{ - QUNS_NOT_PRESENT = 1, - QUNS_BUSY = 2, - QUNS_RUNNING_D3D_FULL_SCREEN = 3, - QUNS_PRESENTATION_MODE = 4, - QUNS_ACCEPTS_NOTIFICATIONS = 5, - - QUNS_QUIET_TIME = 6, - - - QUNS_APP = 7, - -} QUERY_USER_NOTIFICATION_STATE; - -extern __declspec(dllimport) HRESULT __stdcall SHQueryUserNotificationState( QUERY_USER_NOTIFICATION_STATE *pquns); - - - - -extern __declspec(dllimport) HRESULT __stdcall SHGetPropertyStoreForWindow( HWND hwnd, const IID * const riid, void** ppv); - - - -typedef struct _NOTIFYICONDATAA { - DWORD cbSize; - HWND hWnd; - UINT uID; - UINT uFlags; - UINT uCallbackMessage; - HICON hIcon; - - - - - CHAR szTip[128]; - DWORD dwState; - DWORD dwStateMask; - CHAR szInfo[256]; - - union { - UINT uTimeout; - UINT uVersion; - } ; - - CHAR szInfoTitle[64]; - DWORD dwInfoFlags; - - - GUID guidItem; - - - HICON hBalloonIcon; - -} NOTIFYICONDATAA, *PNOTIFYICONDATAA; -typedef struct _NOTIFYICONDATAW { - DWORD cbSize; - HWND hWnd; - UINT uID; - UINT uFlags; - UINT uCallbackMessage; - HICON hIcon; - - - - - WCHAR szTip[128]; - DWORD dwState; - DWORD dwStateMask; - WCHAR szInfo[256]; - - union { - UINT uTimeout; - UINT uVersion; - } ; - - WCHAR szInfoTitle[64]; - DWORD dwInfoFlags; - - - GUID guidItem; - - - HICON hBalloonIcon; - -} NOTIFYICONDATAW, *PNOTIFYICONDATAW; - - - - -typedef NOTIFYICONDATAA NOTIFYICONDATA; -typedef PNOTIFYICONDATAA PNOTIFYICONDATA; -# 1176 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef struct _NOTIFYICONIDENTIFIER { - DWORD cbSize; - HWND hWnd; - UINT uID; - GUID guidItem; -} NOTIFYICONIDENTIFIER, *PNOTIFYICONIDENTIFIER; - - -extern __declspec(dllimport) BOOL __stdcall Shell_NotifyIconA(DWORD dwMessage, PNOTIFYICONDATAA lpData); -extern __declspec(dllimport) BOOL __stdcall Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW lpData); - - - - - - - -extern __declspec(dllimport) HRESULT __stdcall Shell_NotifyIconGetRect( const NOTIFYICONIDENTIFIER* identifier, RECT* iconLocation); -# 1222 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef struct _SHFILEINFOA -{ - HICON hIcon; - int iIcon; - DWORD dwAttributes; - CHAR szDisplayName[260]; - CHAR szTypeName[80]; -} SHFILEINFOA; -typedef struct _SHFILEINFOW -{ - HICON hIcon; - int iIcon; - DWORD dwAttributes; - WCHAR szDisplayName[260]; - WCHAR szTypeName[80]; -} SHFILEINFOW; - - - -typedef SHFILEINFOA SHFILEINFO; -# 1271 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -extern __declspec(dllimport) DWORD_PTR __stdcall SHGetFileInfoA( LPCSTR pszPath, DWORD dwFileAttributes, SHFILEINFOA *psfi, - UINT cbFileInfo, UINT uFlags); -extern __declspec(dllimport) DWORD_PTR __stdcall SHGetFileInfoW( LPCWSTR pszPath, DWORD dwFileAttributes, SHFILEINFOW *psfi, - UINT cbFileInfo, UINT uFlags); - - - - - - - -typedef struct _SHSTOCKICONINFO -{ - DWORD cbSize; - HICON hIcon; - int iSysImageIndex; - int iIcon; - WCHAR szPath[260]; -} SHSTOCKICONINFO; -# 1303 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef enum SHSTOCKICONID -{ - SIID_DOCNOASSOC = 0, - SIID_DOCASSOC = 1, - SIID_APPLICATION = 2, - SIID_FOLDER = 3, - SIID_FOLDEROPEN = 4, - SIID_DRIVE525 = 5, - SIID_DRIVE35 = 6, - SIID_DRIVEREMOVE = 7, - SIID_DRIVEFIXED = 8, - SIID_DRIVENET = 9, - SIID_DRIVENETDISABLED = 10, - SIID_DRIVECD = 11, - SIID_DRIVERAM = 12, - SIID_WORLD = 13, - SIID_SERVER = 15, - SIID_PRINTER = 16, - SIID_MYNETWORK = 17, - SIID_FIND = 22, - SIID_HELP = 23, - SIID_SHARE = 28, - SIID_LINK = 29, - SIID_SLOWFILE = 30, - SIID_RECYCLER = 31, - SIID_RECYCLERFULL = 32, - SIID_MEDIACDAUDIO = 40, - SIID_LOCK = 47, - SIID_AUTOLIST = 49, - SIID_PRINTERNET = 50, - SIID_SERVERSHARE = 51, - SIID_PRINTERFAX = 52, - SIID_PRINTERFAXNET = 53, - SIID_PRINTERFILE = 54, - SIID_STACK = 55, - SIID_MEDIASVCD = 56, - SIID_STUFFEDFOLDER = 57, - SIID_DRIVEUNKNOWN = 58, - SIID_DRIVEDVD = 59, - SIID_MEDIADVD = 60, - SIID_MEDIADVDRAM = 61, - SIID_MEDIADVDRW = 62, - SIID_MEDIADVDR = 63, - SIID_MEDIADVDROM = 64, - SIID_MEDIACDAUDIOPLUS = 65, - SIID_MEDIACDRW = 66, - SIID_MEDIACDR = 67, - SIID_MEDIACDBURN = 68, - SIID_MEDIABLANKCD = 69, - SIID_MEDIACDROM = 70, - SIID_AUDIOFILES = 71, - SIID_IMAGEFILES = 72, - SIID_VIDEOFILES = 73, - SIID_MIXEDFILES = 74, - SIID_FOLDERBACK = 75, - SIID_FOLDERFRONT = 76, - SIID_SHIELD = 77, - SIID_WARNING = 78, - SIID_INFO = 79, - SIID_ERROR = 80, - SIID_KEY = 81, - SIID_SOFTWARE = 82, - SIID_RENAME = 83, - SIID_DELETE = 84, - SIID_MEDIAAUDIODVD = 85, - SIID_MEDIAMOVIEDVD = 86, - SIID_MEDIAENHANCEDCD = 87, - SIID_MEDIAENHANCEDDVD = 88, - SIID_MEDIAHDDVD = 89, - SIID_MEDIABLURAY = 90, - SIID_MEDIAVCD = 91, - SIID_MEDIADVDPLUSR = 92, - SIID_MEDIADVDPLUSRW = 93, - SIID_DESKTOPPC = 94, - SIID_MOBILEPC = 95, - SIID_USERS = 96, - SIID_MEDIASMARTMEDIA = 97, - SIID_MEDIACOMPACTFLASH = 98, - SIID_DEVICECELLPHONE = 99, - SIID_DEVICECAMERA = 100, - SIID_DEVICEVIDEOCAMERA = 101, - SIID_DEVICEAUDIOPLAYER = 102, - SIID_NETWORKCONNECT = 103, - SIID_INTERNET = 104, - SIID_ZIPFILE = 105, - SIID_SETTINGS = 106, - - - SIID_DRIVEHDDVD = 132, - SIID_DRIVEBD = 133, - SIID_MEDIAHDDVDROM = 134, - SIID_MEDIAHDDVDR = 135, - SIID_MEDIAHDDVDRAM = 136, - SIID_MEDIABDROM = 137, - SIID_MEDIABDR = 138, - SIID_MEDIABDRE = 139, - SIID_CLUSTEREDDRIVE = 140, - - SIID_MAX_ICONS = 181, -} SHSTOCKICONID; - - - -extern __declspec(dllimport) HRESULT __stdcall SHGetStockIconInfo(SHSTOCKICONID siid, UINT uFlags, SHSTOCKICONINFO *psii); - - - - - - - -extern __declspec(dllimport) BOOL __stdcall SHGetDiskFreeSpaceExA( LPCSTR pszDirectoryName, ULARGE_INTEGER* pulFreeBytesAvailableToCaller, - ULARGE_INTEGER* pulTotalNumberOfBytes, ULARGE_INTEGER* pulTotalNumberOfFreeBytes); -extern __declspec(dllimport) BOOL __stdcall SHGetDiskFreeSpaceExW( LPCWSTR pszDirectoryName, ULARGE_INTEGER* pulFreeBytesAvailableToCaller, - ULARGE_INTEGER* pulTotalNumberOfBytes, ULARGE_INTEGER* pulTotalNumberOfFreeBytes); - - - - - - -extern __declspec(dllimport) BOOL __stdcall SHGetNewLinkInfoA( LPCSTR pszLinkTo, LPCSTR pszDir, LPSTR pszName, BOOL *pfMustCopy, UINT uFlags); - -extern __declspec(dllimport) BOOL __stdcall SHGetNewLinkInfoW( LPCWSTR pszLinkTo, LPCWSTR pszDir, LPWSTR pszName, BOOL *pfMustCopy, UINT uFlags); -# 1458 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -extern __declspec(dllimport) BOOL __stdcall SHInvokePrinterCommandA( HWND hwnd, UINT uAction, LPCSTR lpBuf1, LPCSTR lpBuf2, BOOL fModal); -extern __declspec(dllimport) BOOL __stdcall SHInvokePrinterCommandW( HWND hwnd, UINT uAction, LPCWSTR lpBuf1, LPCWSTR lpBuf2, BOOL fModal); -# 1468 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef struct _OPEN_PRINTER_PROPS_INFOA -{ - DWORD dwSize; - LPSTR pszSheetName; - UINT uSheetIndex; - DWORD dwFlags; - BOOL bModal; -} OPEN_PRINTER_PROPS_INFOA, *POPEN_PRINTER_PROPS_INFOA; -typedef struct _OPEN_PRINTER_PROPS_INFOW -{ - DWORD dwSize; - LPWSTR pszSheetName; - UINT uSheetIndex; - DWORD dwFlags; - BOOL bModal; -} OPEN_PRINTER_PROPS_INFOW, *POPEN_PRINTER_PROPS_INFOW; - - - - -typedef OPEN_PRINTER_PROPS_INFOA OPEN_PRINTER_PROPS_INFO; -typedef POPEN_PRINTER_PROPS_INFOA POPEN_PRINTER_PROPS_INFO; -# 1511 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall SHLoadNonloadedIconOverlayIdentifiers(void); -# 1532 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall SHIsFileAvailableOffline( PCWSTR pwszPath, DWORD *pdwStatus); -# 1545 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall SHSetLocalizedName( PCWSTR pszPath, PCWSTR pszResModule, int idsRes); - - - - -extern __declspec(dllimport) HRESULT __stdcall SHRemoveLocalizedName( PCWSTR pszPath); - -extern __declspec(dllimport) HRESULT __stdcall SHGetLocalizedName( PCWSTR pszPath, PWSTR pszResModule, UINT cch, int *pidsRes); -# 1581 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -extern __declspec(dllimport) int __cdecl ShellMessageBoxA( - HINSTANCE hAppInst, - HWND hWnd, - LPCSTR lpcText, - LPCSTR lpcTitle, - UINT fuStyle, ...); -extern __declspec(dllimport) int __cdecl ShellMessageBoxW( - HINSTANCE hAppInst, - HWND hWnd, - LPCWSTR lpcText, - LPCWSTR lpcTitle, - UINT fuStyle, ...); - - - - - - - -extern __declspec(dllimport) BOOL __stdcall IsLFNDriveA( LPCSTR pszPath); -extern __declspec(dllimport) BOOL __stdcall IsLFNDriveW( LPCWSTR pszPath); -# 1612 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -extern HRESULT __stdcall SHEnumerateUnreadMailAccountsA( HKEY hKeyUser, DWORD dwIndex, LPSTR pszMailAddress, int cchMailAddress); -extern HRESULT __stdcall SHEnumerateUnreadMailAccountsW( HKEY hKeyUser, DWORD dwIndex, LPWSTR pszMailAddress, int cchMailAddress); - - - - - -extern HRESULT __stdcall SHGetUnreadMailCountA( HKEY hKeyUser, LPCSTR pszMailAddress, DWORD *pdwCount, FILETIME *pFileTime, LPSTR pszShellExecuteCommand, int cchShellExecuteCommand); -extern HRESULT __stdcall SHGetUnreadMailCountW( HKEY hKeyUser, LPCWSTR pszMailAddress, DWORD *pdwCount, FILETIME *pFileTime, LPWSTR pszShellExecuteCommand, int cchShellExecuteCommand); - - - - - -extern HRESULT __stdcall SHSetUnreadMailCountA( LPCSTR pszMailAddress, DWORD dwCount, LPCSTR pszShellExecuteCommand); -extern HRESULT __stdcall SHSetUnreadMailCountW( LPCWSTR pszMailAddress, DWORD dwCount, LPCWSTR pszShellExecuteCommand); -# 1637 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -extern BOOL __stdcall SHTestTokenMembership( HANDLE hToken, ULONG ulRID); - - - - - -extern __declspec(dllimport) HRESULT __stdcall SHGetImageList( int iImageList, const IID * const riid, void **ppvObj); -# 1665 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef HRESULT (__stdcall *PFNCANSHAREFOLDERW)( PCWSTR pszPath); -typedef HRESULT (__stdcall *PFNSHOWSHAREFOLDERUIW)( HWND hwndParent, PCWSTR pszPath); -# 1691 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -extern __declspec(dllimport) BOOL __stdcall InitNetworkAddressControl(void); -# 1704 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -typedef struct tagNC_ADDRESS -{ - struct NET_ADDRESS_INFO_ *pAddrInfo; - USHORT PortNumber; - BYTE PrefixLength; -} NC_ADDRESS, *PNC_ADDRESS; -# 1732 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -extern HRESULT __stdcall SHGetDriveMedia( PCWSTR pszDrive, DWORD *pdwMediaContent); -# 1746 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\shellapi.h" 3 -#pragma warning(pop) -# 205 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 1 3 -# 43 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,8) -# 51 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 2 3 -# 68 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 -typedef struct _PERF_DATA_BLOCK { - WCHAR Signature[4]; - DWORD LittleEndian; - DWORD Version; - - DWORD Revision; - - DWORD TotalByteLength; - DWORD HeaderLength; - DWORD NumObjectTypes; - - LONG DefaultObject; - - - - - SYSTEMTIME SystemTime; - - LARGE_INTEGER PerfTime; - - LARGE_INTEGER PerfFreq; - - LARGE_INTEGER PerfTime100nSec; - - DWORD SystemNameLength; - DWORD SystemNameOffset; - - -} PERF_DATA_BLOCK, *PPERF_DATA_BLOCK; -# 106 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 -typedef struct _PERF_OBJECT_TYPE { - DWORD TotalByteLength; - - - - - - - - DWORD DefinitionLength; - - - - - - - - DWORD HeaderLength; - - - - DWORD ObjectNameTitleIndex; - - - DWORD ObjectNameTitle; - - - - - - DWORD ObjectHelpTitleIndex; - - - DWORD ObjectHelpTitle; - - - - - - DWORD DetailLevel; - - - - DWORD NumCounters; - - - LONG DefaultCounter; - - - - LONG NumInstances; -# 183 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 - DWORD CodePage; - - - LARGE_INTEGER PerfTime; - - LARGE_INTEGER PerfFreq; - -} PERF_OBJECT_TYPE, *PPERF_OBJECT_TYPE; -# 574 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 -typedef struct _PERF_COUNTER_DEFINITION { - DWORD ByteLength; - DWORD CounterNameTitleIndex; - - - - DWORD CounterNameTitle; - - - - - - DWORD CounterHelpTitleIndex; - - - - DWORD CounterHelpTitle; - - - - - - LONG DefaultScale; - - - DWORD DetailLevel; - - DWORD CounterType; - DWORD CounterSize; - DWORD CounterOffset; - - -} PERF_COUNTER_DEFINITION, *PPERF_COUNTER_DEFINITION; -# 621 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 -typedef struct _PERF_INSTANCE_DEFINITION { - DWORD ByteLength; - - DWORD ParentObjectTitleIndex; - - - - - - DWORD ParentObjectInstance; - - - - LONG UniqueID; - - - DWORD NameOffset; - - - DWORD NameLength; - - - - - -} PERF_INSTANCE_DEFINITION, *PPERF_INSTANCE_DEFINITION; -# 660 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 -typedef struct _PERF_COUNTER_BLOCK { - DWORD ByteLength; - -} PERF_COUNTER_BLOCK, *PPERF_COUNTER_BLOCK; -# 688 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 -typedef DWORD (__stdcall PM_OPEN_PROC)( - LPWSTR pContext - ); -# 731 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 -typedef DWORD (__stdcall PM_COLLECT_PROC)( - LPWSTR pValueName, - - - - void** ppData, - DWORD* pcbTotalBytes, - DWORD* pNumObjectTypes - ); - - - - - - - -typedef DWORD (__stdcall PM_CLOSE_PROC)(void); -# 768 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 769 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winperf.h" 2 3 - - - - - -#pragma warning(pop) -# 207 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 1 3 -# 34 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - - - - - -typedef unsigned char u_char; -typedef unsigned short u_short; -typedef unsigned int u_int; -typedef unsigned long u_long; - - - - - - -typedef UINT_PTR SOCKET; -# 65 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 -typedef struct fd_set { - u_int fd_count; - SOCKET fd_array[64]; -} fd_set; - - - - - -extern int __stdcall __WSAFDIsSet(SOCKET, fd_set *); -# 108 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 -struct timeval { - long tv_sec; - long tv_usec; -}; -# 164 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 -struct hostent { - char * h_name; - char * * h_aliases; - short h_addrtype; - short h_length; - char * * h_addr_list; - -}; - - - - - -struct netent { - char * n_name; - char * * n_aliases; - short n_addrtype; - u_long n_net; -}; - -struct servent { - char * s_name; - char * * s_aliases; - - char * s_proto; - short s_port; - - - - -}; - -struct protoent { - char * p_name; - char * * p_aliases; - short p_proto; -}; -# 277 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\inaddr.h" 1 3 -# 25 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\inaddr.h" 3 -typedef struct in_addr { - union { - struct { UCHAR s_b1,s_b2,s_b3,s_b4; } S_un_b; - struct { USHORT s_w1,s_w2; } S_un_w; - ULONG S_addr; - } S_un; - - - - - - -} IN_ADDR, *PIN_ADDR, *LPIN_ADDR; -# 278 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 2 3 -# 309 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 -struct sockaddr_in { - short sin_family; - u_short sin_port; - struct in_addr sin_addr; - char sin_zero[8]; -}; - - - - -typedef struct WSAData { - WORD wVersion; - WORD wHighVersion; - - unsigned short iMaxSockets; - unsigned short iMaxUdpDg; - char * lpVendorInfo; - char szDescription[256 +1]; - char szSystemStatus[128 +1]; - - - - - - - -} WSADATA; - -typedef WSADATA *LPWSADATA; -# 360 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 -struct ip_mreq { - struct in_addr imr_multiaddr; - struct in_addr imr_interface; -}; -# 482 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 -struct sockaddr { - u_short sa_family; - char sa_data[14]; -}; - - - - - -struct sockproto { - u_short sp_family; - u_short sp_protocol; -}; -# 528 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 -struct linger { - u_short l_onoff; - u_short l_linger; -}; -# 739 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 -SOCKET __stdcall accept ( - SOCKET s, - struct sockaddr *addr, - int *addrlen); - -int __stdcall bind ( - SOCKET s, - const struct sockaddr *addr, - int namelen); - -int __stdcall closesocket ( SOCKET s); - -int __stdcall connect ( - SOCKET s, - const struct sockaddr *name, - int namelen); - -int __stdcall ioctlsocket ( - SOCKET s, - long cmd, - u_long *argp); - -int __stdcall getpeername ( - SOCKET s, - struct sockaddr *name, - int * namelen); - -int __stdcall getsockname ( - SOCKET s, - struct sockaddr *name, - int * namelen); - -int __stdcall getsockopt ( - SOCKET s, - int level, - int optname, - char * optval, - int *optlen); - -u_long __stdcall htonl ( u_long hostlong); - -u_short __stdcall htons ( u_short hostshort); - -unsigned long __stdcall inet_addr ( const char * cp); - -char * __stdcall inet_ntoa ( struct in_addr in); - -int __stdcall listen ( - SOCKET s, - int backlog); - -u_long __stdcall ntohl ( u_long netlong); - -u_short __stdcall ntohs ( u_short netshort); - -int __stdcall recv ( - SOCKET s, - char * buf, - int len, - int flags); - -int __stdcall recvfrom ( - SOCKET s, - char * buf, - int len, - int flags, - struct sockaddr * from, - int * fromlen); - -int __stdcall select ( - int nfds, - fd_set *readfds, - fd_set *writefds, - fd_set *exceptfds, - const struct timeval *timeout); - -int __stdcall send ( - SOCKET s, - const char * buf, - int len, - int flags); - -int __stdcall sendto ( - SOCKET s, - const char * buf, - int len, - int flags, - const struct sockaddr *to, - int tolen); - -int __stdcall setsockopt ( - SOCKET s, - int level, - int optname, - const char * optval, - int optlen); - -int __stdcall shutdown ( - SOCKET s, - int how); - -SOCKET __stdcall socket ( - int af, - int type, - int protocol); - - - -struct hostent * __stdcall gethostbyaddr( - const char * addr, - int len, - int type); - -struct hostent * __stdcall gethostbyname( const char * name); - -int __stdcall gethostname ( - char * name, - int namelen); - -struct servent * __stdcall getservbyport( - int port, - const char * proto); - -struct servent * __stdcall getservbyname( - const char * name, - const char * proto); - -struct protoent * __stdcall getprotobynumber( int proto); - -struct protoent * __stdcall getprotobyname( const char * name); - - - -int __stdcall WSAStartup( - WORD wVersionRequired, - LPWSADATA lpWSAData); - -int __stdcall WSACleanup(void); - -void __stdcall WSASetLastError( int iError); - -int __stdcall WSAGetLastError(void); - -BOOL __stdcall WSAIsBlocking(void); - -int __stdcall WSAUnhookBlockingHook(void); - -FARPROC __stdcall WSASetBlockingHook( FARPROC lpBlockFunc); - -int __stdcall WSACancelBlockingCall(void); - -HANDLE __stdcall WSAAsyncGetServByName( - HWND hWnd, - u_int wMsg, - const char * name, - const char * proto, - char * buf, - int buflen); - -HANDLE __stdcall WSAAsyncGetServByPort( - HWND hWnd, - u_int wMsg, - int port, - const char * proto, - char * buf, - int buflen); - -HANDLE __stdcall WSAAsyncGetProtoByName( - HWND hWnd, - u_int wMsg, - const char * name, - char * buf, - int buflen); - -HANDLE __stdcall WSAAsyncGetProtoByNumber( - HWND hWnd, - u_int wMsg, - int number, - char * buf, - int buflen); - -HANDLE __stdcall WSAAsyncGetHostByName( - HWND hWnd, - u_int wMsg, - const char * name, - char * buf, - int buflen); - -HANDLE __stdcall WSAAsyncGetHostByAddr( - HWND hWnd, - u_int wMsg, - const char * addr, - int len, - int type, - char * buf, - int buflen); - -int __stdcall WSACancelAsyncRequest( HANDLE hAsyncTaskHandle); - -int __stdcall WSAAsyncSelect( - SOCKET s, - HWND hWnd, - u_int wMsg, - long lEvent); - -int __stdcall WSARecvEx ( - SOCKET s, - char * buf, - int len, - int *flags); - -typedef struct _TRANSMIT_FILE_BUFFERS { - PVOID Head; - DWORD HeadLength; - PVOID Tail; - DWORD TailLength; -} TRANSMIT_FILE_BUFFERS, *PTRANSMIT_FILE_BUFFERS, *LPTRANSMIT_FILE_BUFFERS; - - - - - -BOOL -__stdcall -TransmitFile ( - SOCKET hSocket, - HANDLE hFile, - DWORD nNumberOfBytesToWrite, - DWORD nNumberOfBytesPerSend, - LPOVERLAPPED lpOverlapped, - LPTRANSMIT_FILE_BUFFERS lpTransmitBuffers, - DWORD dwReserved - ); - -BOOL -__stdcall -AcceptEx ( - SOCKET sListenSocket, - SOCKET sAcceptSocket, - - PVOID lpOutputBuffer, - DWORD dwReceiveDataLength, - DWORD dwLocalAddressLength, - DWORD dwRemoteAddressLength, - LPDWORD lpdwBytesReceived, - LPOVERLAPPED lpOverlapped - ); - -void -__stdcall -GetAcceptExSockaddrs ( - PVOID lpOutputBuffer, - DWORD dwReceiveDataLength, - DWORD dwLocalAddressLength, - DWORD dwRemoteAddressLength, - struct sockaddr **LocalSockaddr, - LPINT LocalSockaddrLength, - struct sockaddr **RemoteSockaddr, - LPINT RemoteSockaddrLength - ); - - - - - - -typedef struct sockaddr SOCKADDR; -typedef struct sockaddr *PSOCKADDR; -typedef struct sockaddr *LPSOCKADDR; - -typedef struct sockaddr_in SOCKADDR_IN; -typedef struct sockaddr_in *PSOCKADDR_IN; -typedef struct sockaddr_in *LPSOCKADDR_IN; - -typedef struct linger LINGER; -typedef struct linger *PLINGER; -typedef struct linger *LPLINGER; - -typedef struct fd_set FD_SET; -typedef struct fd_set *PFD_SET; -typedef struct fd_set *LPFD_SET; - -typedef struct hostent HOSTENT; -typedef struct hostent *PHOSTENT; -typedef struct hostent *LPHOSTENT; - -typedef struct servent SERVENT; -typedef struct servent *PSERVENT; -typedef struct servent *LPSERVENT; - -typedef struct protoent PROTOENT; -typedef struct protoent *PPROTOENT; -typedef struct protoent *LPPROTOENT; - -typedef struct timeval TIMEVAL; -typedef struct timeval *PTIMEVAL; -typedef struct timeval *LPTIMEVAL; -# 1082 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsock.h" 3 -#pragma warning(pop) -# 208 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 1 3 -# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -#pragma warning(push) -#pragma warning(disable: 4668) -#pragma warning(disable: 4820) - -#pragma warning(disable: 4201) -# 291 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef unsigned int ALG_ID; -# 380 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef ULONG_PTR HCRYPTPROV; -typedef ULONG_PTR HCRYPTKEY; -typedef ULONG_PTR HCRYPTHASH; -# 899 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMS_KEY_INFO { - DWORD dwVersion; - ALG_ID Algid; - BYTE *pbOID; - DWORD cbOID; -} CMS_KEY_INFO, *PCMS_KEY_INFO; - - -typedef struct _HMAC_Info { - ALG_ID HashAlgid; - BYTE *pbInnerString; - DWORD cbInnerString; - BYTE *pbOuterString; - DWORD cbOuterString; -} HMAC_INFO, *PHMAC_INFO; - - -typedef struct _SCHANNEL_ALG { - DWORD dwUse; - ALG_ID Algid; - DWORD cBits; - DWORD dwFlags; - DWORD dwReserved; -} SCHANNEL_ALG, *PSCHANNEL_ALG; -# 931 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _PROV_ENUMALGS { - ALG_ID aiAlgid; - DWORD dwBitLen; - DWORD dwNameLen; - CHAR szName[20]; -} PROV_ENUMALGS; - - -typedef struct _PROV_ENUMALGS_EX { - ALG_ID aiAlgid; - DWORD dwDefaultLen; - DWORD dwMinLen; - DWORD dwMaxLen; - DWORD dwProtocols; - DWORD dwNameLen; - CHAR szName[20]; - DWORD dwLongNameLen; - CHAR szLongName[40]; -} PROV_ENUMALGS_EX; - - -typedef struct _PUBLICKEYSTRUC { - BYTE bType; - BYTE bVersion; - WORD reserved; - ALG_ID aiKeyAlg; -} BLOBHEADER, PUBLICKEYSTRUC; - -typedef struct _RSAPUBKEY { - DWORD magic; - DWORD bitlen; - DWORD pubexp; - -} RSAPUBKEY; - -typedef struct _PUBKEY { - DWORD magic; - DWORD bitlen; -} DHPUBKEY, DSSPUBKEY, KEAPUBKEY, TEKPUBKEY; - -typedef struct _DSSSEED { - DWORD counter; - BYTE seed[20]; -} DSSSEED; - -typedef struct _PUBKEYVER3 { - DWORD magic; - DWORD bitlenP; - DWORD bitlenQ; - DWORD bitlenJ; - DSSSEED DSSSeed; -} DHPUBKEY_VER3, DSSPUBKEY_VER3; - -typedef struct _PRIVKEYVER3 { - DWORD magic; - DWORD bitlenP; - DWORD bitlenQ; - DWORD bitlenJ; - DWORD bitlenX; - DSSSEED DSSSeed; -} DHPRIVKEY_VER3, DSSPRIVKEY_VER3; - -typedef struct _KEY_TYPE_SUBTYPE { - DWORD dwKeySpec; - GUID Type; - GUID Subtype; -} KEY_TYPE_SUBTYPE, *PKEY_TYPE_SUBTYPE; - -typedef struct _CERT_FORTEZZA_DATA_PROP { - unsigned char SerialNumber[8]; - int CertIndex; - unsigned char CertLabel[36]; -} CERT_FORTEZZA_DATA_PROP; - - -typedef struct _CRYPT_RC4_KEY_STATE { - unsigned char Key[16]; - unsigned char SBox[256]; - unsigned char i; - unsigned char j; -} CRYPT_RC4_KEY_STATE, *PCRYPT_RC4_KEY_STATE; - -typedef struct _CRYPT_DES_KEY_STATE { - unsigned char Key[8]; - unsigned char IV[8]; - unsigned char Feedback[8]; -} CRYPT_DES_KEY_STATE, *PCRYPT_DES_KEY_STATE; - -typedef struct _CRYPT_3DES_KEY_STATE { - unsigned char Key[24]; - unsigned char IV[8]; - unsigned char Feedback[8]; -} CRYPT_3DES_KEY_STATE, *PCRYPT_3DES_KEY_STATE; - - - -typedef struct _CRYPT_AES_128_KEY_STATE { - unsigned char Key[16]; - unsigned char IV[16]; - unsigned char EncryptionState[11][16]; - unsigned char DecryptionState[11][16]; - unsigned char Feedback[16]; -} CRYPT_AES_128_KEY_STATE, *PCRYPT_AES_128_KEY_STATE; - -typedef struct _CRYPT_AES_256_KEY_STATE { - unsigned char Key[32]; - unsigned char IV[16]; - unsigned char EncryptionState[15][16]; - unsigned char DecryptionState[15][16]; - unsigned char Feedback[16]; -} CRYPT_AES_256_KEY_STATE, *PCRYPT_AES_256_KEY_STATE; -# 1050 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPTOAPI_BLOB { - DWORD cbData; - BYTE *pbData; -} CRYPT_INTEGER_BLOB, *PCRYPT_INTEGER_BLOB, -CRYPT_UINT_BLOB, *PCRYPT_UINT_BLOB, -CRYPT_OBJID_BLOB, *PCRYPT_OBJID_BLOB, -CERT_NAME_BLOB, *PCERT_NAME_BLOB, -CERT_RDN_VALUE_BLOB, *PCERT_RDN_VALUE_BLOB, -CERT_BLOB, *PCERT_BLOB, -CRL_BLOB, *PCRL_BLOB, -DATA_BLOB, *PDATA_BLOB, -CRYPT_DATA_BLOB, *PCRYPT_DATA_BLOB, -CRYPT_HASH_BLOB, *PCRYPT_HASH_BLOB, -CRYPT_DIGEST_BLOB, *PCRYPT_DIGEST_BLOB, -CRYPT_DER_BLOB, *PCRYPT_DER_BLOB, -CRYPT_ATTR_BLOB, *PCRYPT_ATTR_BLOB; - - - - -typedef struct _CMS_DH_KEY_INFO { - DWORD dwVersion; - ALG_ID Algid; - LPSTR pszContentEncObjId; - CRYPT_DATA_BLOB PubInfo; - void *pReserved; -} CMS_DH_KEY_INFO, *PCMS_DH_KEY_INFO; - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptAcquireContextA( - HCRYPTPROV *phProv, - LPCSTR szContainer, - LPCSTR szProvider, - DWORD dwProvType, - DWORD dwFlags - ); -__declspec(dllimport) -BOOL -__stdcall -CryptAcquireContextW( - HCRYPTPROV *phProv, - LPCWSTR szContainer, - LPCWSTR szProvider, - DWORD dwProvType, - DWORD dwFlags - ); -# 1116 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptReleaseContext( - HCRYPTPROV hProv, - DWORD dwFlags - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptGenKey( - HCRYPTPROV hProv, - ALG_ID Algid, - DWORD dwFlags, - HCRYPTKEY *phKey - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptDeriveKey( - HCRYPTPROV hProv, - ALG_ID Algid, - HCRYPTHASH hBaseData, - DWORD dwFlags, - HCRYPTKEY *phKey - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptDestroyKey( - HCRYPTKEY hKey - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptSetKeyParam( - HCRYPTKEY hKey, - DWORD dwParam, - const BYTE *pbData, - DWORD dwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptGetKeyParam( - HCRYPTKEY hKey, - DWORD dwParam, - BYTE *pbData, - DWORD *pdwDataLen, - DWORD dwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptSetHashParam( - HCRYPTHASH hHash, - DWORD dwParam, - const BYTE *pbData, - DWORD dwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptGetHashParam( - HCRYPTHASH hHash, - DWORD dwParam, - BYTE *pbData, - DWORD *pdwDataLen, - DWORD dwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptSetProvParam( - HCRYPTPROV hProv, - DWORD dwParam, - const BYTE *pbData, - DWORD dwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptGetProvParam( - HCRYPTPROV hProv, - DWORD dwParam, - BYTE *pbData, - DWORD *pdwDataLen, - DWORD dwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptGenRandom( - HCRYPTPROV hProv, - DWORD dwLen, - BYTE *pbBuffer - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptGetUserKey( - HCRYPTPROV hProv, - DWORD dwKeySpec, - HCRYPTKEY *phUserKey - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptExportKey( - HCRYPTKEY hKey, - HCRYPTKEY hExpKey, - DWORD dwBlobType, - DWORD dwFlags, - BYTE *pbData, - DWORD *pdwDataLen - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptImportKey( - HCRYPTPROV hProv, - const BYTE *pbData, - DWORD dwDataLen, - HCRYPTKEY hPubKey, - DWORD dwFlags, - HCRYPTKEY *phKey - ); - -__declspec(dllimport) - BOOL -__stdcall -CryptEncrypt( - HCRYPTKEY hKey, - HCRYPTHASH hHash, - BOOL Final, - DWORD dwFlags, - BYTE *pbData, - DWORD *pdwDataLen, - DWORD dwBufLen - ); - -__declspec(dllimport) - BOOL -__stdcall -CryptDecrypt( - HCRYPTKEY hKey, - HCRYPTHASH hHash, - BOOL Final, - DWORD dwFlags, - BYTE *pbData, - DWORD *pdwDataLen - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptCreateHash( - HCRYPTPROV hProv, - ALG_ID Algid, - HCRYPTKEY hKey, - DWORD dwFlags, - HCRYPTHASH *phHash - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptHashData( - HCRYPTHASH hHash, - const BYTE *pbData, - DWORD dwDataLen, - DWORD dwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptHashSessionKey( - HCRYPTHASH hHash, - HCRYPTKEY hKey, - DWORD dwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptDestroyHash( - HCRYPTHASH hHash - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptSignHashA( - HCRYPTHASH hHash, - DWORD dwKeySpec, - LPCSTR szDescription, - DWORD dwFlags, - BYTE *pbSignature, - DWORD *pdwSigLen - ); -__declspec(dllimport) -BOOL -__stdcall -CryptSignHashW( - HCRYPTHASH hHash, - DWORD dwKeySpec, - LPCWSTR szDescription, - DWORD dwFlags, - BYTE *pbSignature, - DWORD *pdwSigLen - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptVerifySignatureA( - HCRYPTHASH hHash, - const BYTE *pbSignature, - DWORD dwSigLen, - HCRYPTKEY hPubKey, - LPCSTR szDescription, - DWORD dwFlags - ); -__declspec(dllimport) -BOOL -__stdcall -CryptVerifySignatureW( - HCRYPTHASH hHash, - const BYTE *pbSignature, - DWORD dwSigLen, - HCRYPTKEY hPubKey, - LPCWSTR szDescription, - DWORD dwFlags - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptSetProviderA( - LPCSTR pszProvName, - DWORD dwProvType - ); -__declspec(dllimport) -BOOL -__stdcall -CryptSetProviderW( - LPCWSTR pszProvName, - DWORD dwProvType - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptSetProviderExA( - LPCSTR pszProvName, - DWORD dwProvType, - DWORD *pdwReserved, - DWORD dwFlags - ); -__declspec(dllimport) -BOOL -__stdcall -CryptSetProviderExW( - LPCWSTR pszProvName, - DWORD dwProvType, - DWORD *pdwReserved, - DWORD dwFlags - ); - - - - - - -__declspec(dllimport) - BOOL -__stdcall -CryptGetDefaultProviderA( - DWORD dwProvType, - DWORD *pdwReserved, - DWORD dwFlags, - LPSTR pszProvName, - DWORD *pcbProvName - ); -__declspec(dllimport) - BOOL -__stdcall -CryptGetDefaultProviderW( - DWORD dwProvType, - DWORD *pdwReserved, - DWORD dwFlags, - LPWSTR pszProvName, - DWORD *pcbProvName - ); - - - - - - -__declspec(dllimport) - BOOL -__stdcall -CryptEnumProviderTypesA( - DWORD dwIndex, - DWORD *pdwReserved, - DWORD dwFlags, - DWORD *pdwProvType, - LPSTR szTypeName, - DWORD *pcbTypeName - ); -__declspec(dllimport) - BOOL -__stdcall -CryptEnumProviderTypesW( - DWORD dwIndex, - DWORD *pdwReserved, - DWORD dwFlags, - DWORD *pdwProvType, - LPWSTR szTypeName, - DWORD *pcbTypeName - ); - - - - - - -__declspec(dllimport) - BOOL -__stdcall -CryptEnumProvidersA( - DWORD dwIndex, - DWORD *pdwReserved, - DWORD dwFlags, - DWORD *pdwProvType, - LPSTR szProvName, - DWORD *pcbProvName - ); -__declspec(dllimport) - BOOL -__stdcall -CryptEnumProvidersW( - DWORD dwIndex, - DWORD *pdwReserved, - DWORD dwFlags, - DWORD *pdwProvType, - LPWSTR szProvName, - DWORD *pcbProvName - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptContextAddRef( - HCRYPTPROV hProv, - DWORD *pdwReserved, - DWORD dwFlags - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptDuplicateKey( - HCRYPTKEY hKey, - DWORD *pdwReserved, - DWORD dwFlags, - HCRYPTKEY *phKey - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptDuplicateHash( - HCRYPTHASH hHash, - DWORD *pdwReserved, - DWORD dwFlags, - HCRYPTHASH *phHash - ); -# 1549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -BOOL -__cdecl -GetEncSChannel( - BYTE **pData, - DWORD *dwDecSize - ); -# 1570 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 1 3 -# 23 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) -# 39 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -typedef LONG NTSTATUS; -typedef NTSTATUS *PNTSTATUS; -# 196 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -typedef struct __BCRYPT_KEY_LENGTHS_STRUCT -{ - ULONG dwMinLength; - ULONG dwMaxLength; - ULONG dwIncrement; -} BCRYPT_KEY_LENGTHS_STRUCT; - -typedef BCRYPT_KEY_LENGTHS_STRUCT BCRYPT_AUTH_TAG_LENGTHS_STRUCT; - -typedef struct _BCRYPT_OID -{ - ULONG cbOID; - PUCHAR pbOID; -} BCRYPT_OID; - -typedef struct _BCRYPT_OID_LIST -{ - ULONG dwOIDCount; - BCRYPT_OID *pOIDs; -} BCRYPT_OID_LIST; - -typedef struct _BCRYPT_PKCS1_PADDING_INFO -{ - LPCWSTR pszAlgId; -} BCRYPT_PKCS1_PADDING_INFO; - -typedef struct _BCRYPT_PSS_PADDING_INFO -{ - LPCWSTR pszAlgId; - ULONG cbSalt; -} BCRYPT_PSS_PADDING_INFO; - -typedef struct _BCRYPT_OAEP_PADDING_INFO -{ - LPCWSTR pszAlgId; - PUCHAR pbLabel; - ULONG cbLabel; -} BCRYPT_OAEP_PADDING_INFO; - - - - - - -typedef struct _BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO -{ - ULONG cbSize; - ULONG dwInfoVersion; - PUCHAR pbNonce; - ULONG cbNonce; - PUCHAR pbAuthData; - ULONG cbAuthData; - PUCHAR pbTag; - ULONG cbTag; - PUCHAR pbMacContext; - ULONG cbMacContext; - ULONG cbAAD; - ULONGLONG cbData; - ULONG dwFlags; -} BCRYPT_AUTHENTICATED_CIPHER_MODE_INFO, *PBCRYPT_AUTHENTICATED_CIPHER_MODE_INFO; -# 395 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -typedef struct _BCryptBuffer { - ULONG cbBuffer; - ULONG BufferType; - PVOID pvBuffer; -} BCryptBuffer, * PBCryptBuffer; - -typedef struct _BCryptBufferDesc { - ULONG ulVersion; - ULONG cBuffers; - PBCryptBuffer pBuffers; -} BCryptBufferDesc, * PBCryptBufferDesc; - - - - - -typedef PVOID BCRYPT_HANDLE; -typedef PVOID BCRYPT_ALG_HANDLE; -typedef PVOID BCRYPT_KEY_HANDLE; -typedef PVOID BCRYPT_HASH_HANDLE; -typedef PVOID BCRYPT_SECRET_HANDLE; -# 424 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -typedef struct _BCRYPT_KEY_BLOB -{ - ULONG Magic; -} BCRYPT_KEY_BLOB; -# 446 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -typedef struct _BCRYPT_RSAKEY_BLOB -{ - ULONG Magic; - ULONG BitLength; - ULONG cbPublicExp; - ULONG cbModulus; - ULONG cbPrime1; - ULONG cbPrime2; -} BCRYPT_RSAKEY_BLOB; -# 512 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -typedef struct _BCRYPT_ECCKEY_BLOB -{ - ULONG dwMagic; - ULONG cbKey; -} BCRYPT_ECCKEY_BLOB, *PBCRYPT_ECCKEY_BLOB; - - - -typedef struct _SSL_ECCKEY_BLOB -{ - ULONG dwCurveType; - ULONG cbKey; -} SSL_ECCKEY_BLOB, *PSSL_ECCKEY_BLOB; - - - - -typedef enum -{ - BCRYPT_ECC_PRIME_SHORT_WEIERSTRASS_CURVE = 0x1, - BCRYPT_ECC_PRIME_TWISTED_EDWARDS_CURVE = 0x2, - BCRYPT_ECC_PRIME_MONTGOMERY_CURVE = 0x3 -} ECC_CURVE_TYPE_ENUM; - -typedef enum -{ - BCRYPT_NO_CURVE_GENERATION_ALG_ID = 0x0 -} ECC_CURVE_ALG_ID_ENUM; - - - -typedef struct _BCRYPT_ECCFULLKEY_BLOB -{ - ULONG dwMagic; - ULONG dwVersion; - ECC_CURVE_TYPE_ENUM dwCurveType; - ECC_CURVE_ALG_ID_ENUM dwCurveGenerationAlgId; - ULONG cbFieldLength; - ULONG cbSubgroupOrder; - ULONG cbCofactor; - ULONG cbSeed; -# 564 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -} BCRYPT_ECCFULLKEY_BLOB, *PBCRYPT_ECCFULLKEY_BLOB; -# 578 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -typedef struct _BCRYPT_DH_KEY_BLOB -{ - ULONG dwMagic; - ULONG cbKey; -} BCRYPT_DH_KEY_BLOB, *PBCRYPT_DH_KEY_BLOB; - - - - - - -typedef struct _BCRYPT_DH_PARAMETER_HEADER -{ - ULONG cbLength; - ULONG dwMagic; - ULONG cbKeyLength; -} BCRYPT_DH_PARAMETER_HEADER; -# 615 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -typedef struct _BCRYPT_DSA_KEY_BLOB -{ - ULONG dwMagic; - ULONG cbKey; - UCHAR Count[4]; - UCHAR Seed[20]; - UCHAR q[20]; -} BCRYPT_DSA_KEY_BLOB, *PBCRYPT_DSA_KEY_BLOB; - - -typedef enum -{ - DSA_HASH_ALGORITHM_SHA1, - DSA_HASH_ALGORITHM_SHA256, - DSA_HASH_ALGORITHM_SHA512 -} HASHALGORITHM_ENUM; - -typedef enum -{ - DSA_FIPS186_2, - DSA_FIPS186_3 -} DSAFIPSVERSION_ENUM; - -typedef struct _BCRYPT_DSA_KEY_BLOB_V2 -{ - ULONG dwMagic; - ULONG cbKey; - HASHALGORITHM_ENUM hashAlgorithm; - DSAFIPSVERSION_ENUM standardVersion; - ULONG cbSeedLength; - ULONG cbGroupSize; - UCHAR Count[4]; -} BCRYPT_DSA_KEY_BLOB_V2, *PBCRYPT_DSA_KEY_BLOB_V2; - - -typedef struct _BCRYPT_KEY_DATA_BLOB_HEADER -{ - ULONG dwMagic; - ULONG dwVersion; - ULONG cbKeyData; -} BCRYPT_KEY_DATA_BLOB_HEADER, *PBCRYPT_KEY_DATA_BLOB_HEADER; -# 670 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -typedef struct _BCRYPT_DSA_PARAMETER_HEADER -{ - ULONG cbLength; - ULONG dwMagic; - ULONG cbKeyLength; - UCHAR Count[4]; - UCHAR Seed[20]; - UCHAR q[20]; -} BCRYPT_DSA_PARAMETER_HEADER; - - -typedef struct _BCRYPT_DSA_PARAMETER_HEADER_V2 -{ - ULONG cbLength; - ULONG dwMagic; - ULONG cbKeyLength; - HASHALGORITHM_ENUM hashAlgorithm; - DSAFIPSVERSION_ENUM standardVersion; - ULONG cbSeedLength; - ULONG cbGroupSize; - UCHAR Count[4]; -} BCRYPT_DSA_PARAMETER_HEADER_V2; -# 702 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -typedef struct _BCRYPT_ECC_CURVE_NAMES -{ - ULONG dwEccCurveNames; - LPWSTR *pEccCurveNames; -} BCRYPT_ECC_CURVE_NAMES; -# 769 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -typedef enum { - BCRYPT_HASH_OPERATION_HASH_DATA = 1, - BCRYPT_HASH_OPERATION_FINISH_HASH = 2, -} BCRYPT_HASH_OPERATION_TYPE; - -typedef struct _BCRYPT_MULTI_HASH_OPERATION { - ULONG iHash; - BCRYPT_HASH_OPERATION_TYPE hashOperation; - PUCHAR pbBuffer; - ULONG cbBuffer; -} BCRYPT_MULTI_HASH_OPERATION; - - -typedef enum{ - BCRYPT_OPERATION_TYPE_HASH = 1, -} BCRYPT_MULTI_OPERATION_TYPE; - -typedef struct _BCRYPT_MULTI_OBJECT_LENGTH_STRUCT -{ - ULONG cbPerObject; - ULONG cbPerElement; -} BCRYPT_MULTI_OBJECT_LENGTH_STRUCT; -# 1036 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -NTSTATUS -__stdcall -BCryptOpenAlgorithmProvider( - BCRYPT_ALG_HANDLE *phAlgorithm, - LPCWSTR pszAlgId, - LPCWSTR pszImplementation, - ULONG dwFlags); -# 1061 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -typedef struct _BCRYPT_ALGORITHM_IDENTIFIER -{ - LPWSTR pszName; - ULONG dwClass; - ULONG dwFlags; - -} BCRYPT_ALGORITHM_IDENTIFIER; - - - -NTSTATUS -__stdcall -BCryptEnumAlgorithms( - ULONG dwAlgOperations, - ULONG *pAlgCount, - BCRYPT_ALGORITHM_IDENTIFIER **ppAlgList, - ULONG dwFlags); - -typedef struct _BCRYPT_PROVIDER_NAME -{ - LPWSTR pszProviderName; -} BCRYPT_PROVIDER_NAME; - - -NTSTATUS -__stdcall -BCryptEnumProviders( - LPCWSTR pszAlgId, - ULONG *pImplCount, - BCRYPT_PROVIDER_NAME **ppImplList, - ULONG dwFlags); -# 1100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -NTSTATUS -__stdcall -BCryptGetProperty( - BCRYPT_HANDLE hObject, - LPCWSTR pszProperty, - PUCHAR pbOutput, - ULONG cbOutput, - ULONG *pcbResult, - ULONG dwFlags); - - - -NTSTATUS -__stdcall -BCryptSetProperty( - BCRYPT_HANDLE hObject, - LPCWSTR pszProperty, - PUCHAR pbInput, - ULONG cbInput, - ULONG dwFlags); - - -NTSTATUS -__stdcall -BCryptCloseAlgorithmProvider( - BCRYPT_ALG_HANDLE hAlgorithm, - ULONG dwFlags); - - -void -__stdcall -BCryptFreeBuffer( - PVOID pvBuffer); - - - - - - -NTSTATUS -__stdcall -BCryptGenerateSymmetricKey( - BCRYPT_ALG_HANDLE hAlgorithm, - BCRYPT_KEY_HANDLE *phKey, - PUCHAR pbKeyObject, - ULONG cbKeyObject, - PUCHAR pbSecret, - ULONG cbSecret, - ULONG dwFlags); - - - -NTSTATUS -__stdcall -BCryptGenerateKeyPair( - BCRYPT_ALG_HANDLE hAlgorithm, - BCRYPT_KEY_HANDLE *phKey, - ULONG dwLength, - ULONG dwFlags); - - - -NTSTATUS -__stdcall -BCryptEncrypt( - BCRYPT_KEY_HANDLE hKey, - PUCHAR pbInput, - ULONG cbInput, - void *pPaddingInfo, - PUCHAR pbIV, - ULONG cbIV, - PUCHAR pbOutput, - ULONG cbOutput, - ULONG *pcbResult, - ULONG dwFlags); - - - -NTSTATUS -__stdcall -BCryptDecrypt( - BCRYPT_KEY_HANDLE hKey, - PUCHAR pbInput, - ULONG cbInput, - void *pPaddingInfo, - PUCHAR pbIV, - ULONG cbIV, - PUCHAR pbOutput, - ULONG cbOutput, - ULONG *pcbResult, - ULONG dwFlags); - - - -NTSTATUS -__stdcall -BCryptExportKey( - BCRYPT_KEY_HANDLE hKey, - BCRYPT_KEY_HANDLE hExportKey, - LPCWSTR pszBlobType, - PUCHAR pbOutput, - ULONG cbOutput, - ULONG *pcbResult, - ULONG dwFlags); - - - -NTSTATUS -__stdcall -BCryptImportKey( - BCRYPT_ALG_HANDLE hAlgorithm, - BCRYPT_KEY_HANDLE hImportKey, - LPCWSTR pszBlobType, - BCRYPT_KEY_HANDLE *phKey, - PUCHAR pbKeyObject, - ULONG cbKeyObject, - PUCHAR pbInput, - ULONG cbInput, - ULONG dwFlags); -# 1230 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -NTSTATUS -__stdcall -BCryptImportKeyPair( - BCRYPT_ALG_HANDLE hAlgorithm, - BCRYPT_KEY_HANDLE hImportKey, - LPCWSTR pszBlobType, - BCRYPT_KEY_HANDLE *phKey, - PUCHAR pbInput, - ULONG cbInput, - ULONG dwFlags); - - - -NTSTATUS -__stdcall -BCryptDuplicateKey( - BCRYPT_KEY_HANDLE hKey, - BCRYPT_KEY_HANDLE *phNewKey, - PUCHAR pbKeyObject, - ULONG cbKeyObject, - ULONG dwFlags); - - - -NTSTATUS -__stdcall -BCryptFinalizeKeyPair( - BCRYPT_KEY_HANDLE hKey, - ULONG dwFlags); - - -NTSTATUS -__stdcall -BCryptDestroyKey( - BCRYPT_KEY_HANDLE hKey); - - -NTSTATUS -__stdcall -BCryptDestroySecret( - BCRYPT_SECRET_HANDLE hSecret); - - - -NTSTATUS -__stdcall -BCryptSignHash( - BCRYPT_KEY_HANDLE hKey, - void *pPaddingInfo, - PUCHAR pbInput, - ULONG cbInput, - PUCHAR pbOutput, - ULONG cbOutput, - ULONG *pcbResult, - ULONG dwFlags); - - - -NTSTATUS -__stdcall -BCryptVerifySignature( - BCRYPT_KEY_HANDLE hKey, - void *pPaddingInfo, - PUCHAR pbHash, - ULONG cbHash, - PUCHAR pbSignature, - ULONG cbSignature, - ULONG dwFlags); - - - -NTSTATUS -__stdcall -BCryptSecretAgreement( - BCRYPT_KEY_HANDLE hPrivKey, - BCRYPT_KEY_HANDLE hPubKey, - BCRYPT_SECRET_HANDLE *phAgreedSecret, - ULONG dwFlags); - - - -NTSTATUS -__stdcall -BCryptDeriveKey( - BCRYPT_SECRET_HANDLE hSharedSecret, - LPCWSTR pwszKDF, - BCryptBufferDesc *pParameterList, - PUCHAR pbDerivedKey, - ULONG cbDerivedKey, - ULONG *pcbResult, - ULONG dwFlags); - - - - -NTSTATUS -__stdcall -BCryptKeyDerivation( - BCRYPT_KEY_HANDLE hKey, - BCryptBufferDesc *pParameterList, - PUCHAR pbDerivedKey, - ULONG cbDerivedKey, - ULONG *pcbResult, - ULONG dwFlags); - - - - - - - -NTSTATUS -__stdcall -BCryptCreateHash( - BCRYPT_ALG_HANDLE hAlgorithm, - BCRYPT_HASH_HANDLE *phHash, - PUCHAR pbHashObject, - ULONG cbHashObject, - PUCHAR pbSecret, - ULONG cbSecret, - ULONG dwFlags); - - - -NTSTATUS -__stdcall -BCryptHashData( - BCRYPT_HASH_HANDLE hHash, - PUCHAR pbInput, - ULONG cbInput, - ULONG dwFlags); - - - -NTSTATUS -__stdcall -BCryptFinishHash( - BCRYPT_HASH_HANDLE hHash, - PUCHAR pbOutput, - ULONG cbOutput, - ULONG dwFlags); - - - - -NTSTATUS -__stdcall -BCryptCreateMultiHash( - BCRYPT_ALG_HANDLE hAlgorithm, - BCRYPT_HASH_HANDLE *phHash, - ULONG nHashes, - PUCHAR pbHashObject, - ULONG cbHashObject, - PUCHAR pbSecret, - ULONG cbSecret, - ULONG dwFlags); - - -NTSTATUS -__stdcall -BCryptProcessMultiOperations( - BCRYPT_HANDLE hObject, - BCRYPT_MULTI_OPERATION_TYPE operationType, - PVOID pOperations, - ULONG cbOperations, - ULONG dwFlags ); - - - - -NTSTATUS -__stdcall -BCryptDuplicateHash( - BCRYPT_HASH_HANDLE hHash, - BCRYPT_HASH_HANDLE *phNewHash, - PUCHAR pbHashObject, - ULONG cbHashObject, - ULONG dwFlags); - - -NTSTATUS -__stdcall -BCryptDestroyHash( - BCRYPT_HASH_HANDLE hHash); - - - -NTSTATUS -__stdcall -BCryptHash( - BCRYPT_ALG_HANDLE hAlgorithm, - PUCHAR pbSecret, - ULONG cbSecret, - PUCHAR pbInput, - ULONG cbInput, - PUCHAR pbOutput, - ULONG cbOutput ); -# 1440 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -NTSTATUS -__stdcall -BCryptGenRandom( - BCRYPT_ALG_HANDLE hAlgorithm, - PUCHAR pbBuffer, - ULONG cbBuffer, - ULONG dwFlags); - - - - - - - -NTSTATUS -__stdcall -BCryptDeriveKeyCapi( - BCRYPT_HASH_HANDLE hHash, - BCRYPT_ALG_HANDLE hTargetAlg, - PUCHAR pbDerivedKey, - ULONG cbDerivedKey, - ULONG dwFlags); - - - - - -NTSTATUS -__stdcall -BCryptDeriveKeyPBKDF2( - BCRYPT_ALG_HANDLE hPrf, - PUCHAR pbPassword, - ULONG cbPassword, - PUCHAR pbSalt, - ULONG cbSalt, - ULONGLONG cIterations, - PUCHAR pbDerivedKey, - ULONG cbDerivedKey, - ULONG dwFlags); - - - - - - -typedef struct _BCRYPT_INTERFACE_VERSION -{ - USHORT MajorVersion; - USHORT MinorVersion; - -} BCRYPT_INTERFACE_VERSION, *PBCRYPT_INTERFACE_VERSION; -# 1575 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -typedef struct _CRYPT_INTERFACE_REG -{ - ULONG dwInterface; - ULONG dwFlags; - - ULONG cFunctions; - PWSTR *rgpszFunctions; -} -CRYPT_INTERFACE_REG, *PCRYPT_INTERFACE_REG; - -typedef struct _CRYPT_IMAGE_REG -{ - PWSTR pszImage; - - ULONG cInterfaces; - PCRYPT_INTERFACE_REG *rgpInterfaces; -} -CRYPT_IMAGE_REG, *PCRYPT_IMAGE_REG; - -typedef struct _CRYPT_PROVIDER_REG -{ - ULONG cAliases; - PWSTR *rgpszAliases; - - PCRYPT_IMAGE_REG pUM; - PCRYPT_IMAGE_REG pKM; -} -CRYPT_PROVIDER_REG, *PCRYPT_PROVIDER_REG; - -typedef struct _CRYPT_PROVIDERS -{ - ULONG cProviders; - PWSTR *rgpszProviders; -} -CRYPT_PROVIDERS, *PCRYPT_PROVIDERS; - - - - - -typedef struct _CRYPT_CONTEXT_CONFIG -{ - ULONG dwFlags; - ULONG dwReserved; -} -CRYPT_CONTEXT_CONFIG, *PCRYPT_CONTEXT_CONFIG; - -typedef struct _CRYPT_CONTEXT_FUNCTION_CONFIG -{ - ULONG dwFlags; - ULONG dwReserved; -} -CRYPT_CONTEXT_FUNCTION_CONFIG, *PCRYPT_CONTEXT_FUNCTION_CONFIG; - -typedef struct _CRYPT_CONTEXTS -{ - ULONG cContexts; - PWSTR *rgpszContexts; -} -CRYPT_CONTEXTS, *PCRYPT_CONTEXTS; - -typedef struct _CRYPT_CONTEXT_FUNCTIONS -{ - ULONG cFunctions; - PWSTR *rgpszFunctions; -} -CRYPT_CONTEXT_FUNCTIONS, *PCRYPT_CONTEXT_FUNCTIONS; - -typedef struct _CRYPT_CONTEXT_FUNCTION_PROVIDERS -{ - ULONG cProviders; - PWSTR *rgpszProviders; -} -CRYPT_CONTEXT_FUNCTION_PROVIDERS, *PCRYPT_CONTEXT_FUNCTION_PROVIDERS; - - - - - -typedef struct _CRYPT_PROPERTY_REF -{ - PWSTR pszProperty; - - ULONG cbValue; - PUCHAR pbValue; -} -CRYPT_PROPERTY_REF, *PCRYPT_PROPERTY_REF; - -typedef struct _CRYPT_IMAGE_REF -{ - PWSTR pszImage; - ULONG dwFlags; -} -CRYPT_IMAGE_REF, *PCRYPT_IMAGE_REF; - -typedef struct _CRYPT_PROVIDER_REF -{ - ULONG dwInterface; - PWSTR pszFunction; - PWSTR pszProvider; - - ULONG cProperties; - PCRYPT_PROPERTY_REF *rgpProperties; - - PCRYPT_IMAGE_REF pUM; - PCRYPT_IMAGE_REF pKM; -} -CRYPT_PROVIDER_REF, *PCRYPT_PROVIDER_REF; - -typedef struct _CRYPT_PROVIDER_REFS -{ - ULONG cProviders; - PCRYPT_PROVIDER_REF *rgpProviders; -} -CRYPT_PROVIDER_REFS, *PCRYPT_PROVIDER_REFS; -# 1705 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -NTSTATUS -__stdcall -BCryptQueryProviderRegistration( - LPCWSTR pszProvider, - ULONG dwMode, - ULONG dwInterface, - ULONG* pcbBuffer, - PCRYPT_PROVIDER_REG *ppBuffer); - - -NTSTATUS -__stdcall -BCryptEnumRegisteredProviders( - ULONG* pcbBuffer, - PCRYPT_PROVIDERS *ppBuffer); - - - - - -NTSTATUS -__stdcall -BCryptCreateContext( - ULONG dwTable, - LPCWSTR pszContext, - PCRYPT_CONTEXT_CONFIG pConfig); - - -NTSTATUS -__stdcall -BCryptDeleteContext( - ULONG dwTable, - LPCWSTR pszContext); - - -NTSTATUS -__stdcall -BCryptEnumContexts( - ULONG dwTable, - ULONG* pcbBuffer, - PCRYPT_CONTEXTS *ppBuffer); - - -NTSTATUS -__stdcall -BCryptConfigureContext( - ULONG dwTable, - LPCWSTR pszContext, - PCRYPT_CONTEXT_CONFIG pConfig); - - -NTSTATUS -__stdcall -BCryptQueryContextConfiguration( - ULONG dwTable, - LPCWSTR pszContext, - ULONG* pcbBuffer, - PCRYPT_CONTEXT_CONFIG *ppBuffer); - - -NTSTATUS -__stdcall -BCryptAddContextFunction( - ULONG dwTable, - LPCWSTR pszContext, - ULONG dwInterface, - LPCWSTR pszFunction, - ULONG dwPosition); - - -NTSTATUS -__stdcall -BCryptRemoveContextFunction( - ULONG dwTable, - LPCWSTR pszContext, - ULONG dwInterface, - LPCWSTR pszFunction); - - -NTSTATUS -__stdcall -BCryptEnumContextFunctions( - ULONG dwTable, - LPCWSTR pszContext, - ULONG dwInterface, - ULONG* pcbBuffer, - PCRYPT_CONTEXT_FUNCTIONS *ppBuffer); - - -NTSTATUS -__stdcall -BCryptConfigureContextFunction( - ULONG dwTable, - LPCWSTR pszContext, - ULONG dwInterface, - LPCWSTR pszFunction, - PCRYPT_CONTEXT_FUNCTION_CONFIG pConfig); - - -NTSTATUS -__stdcall -BCryptQueryContextFunctionConfiguration( - ULONG dwTable, - LPCWSTR pszContext, - ULONG dwInterface, - LPCWSTR pszFunction, - ULONG* pcbBuffer, - PCRYPT_CONTEXT_FUNCTION_CONFIG *ppBuffer); - - - -NTSTATUS -__stdcall -BCryptEnumContextFunctionProviders( - ULONG dwTable, - LPCWSTR pszContext, - ULONG dwInterface, - LPCWSTR pszFunction, - ULONG* pcbBuffer, - PCRYPT_CONTEXT_FUNCTION_PROVIDERS *ppBuffer); - - -NTSTATUS -__stdcall -BCryptSetContextFunctionProperty( - ULONG dwTable, - LPCWSTR pszContext, - ULONG dwInterface, - LPCWSTR pszFunction, - LPCWSTR pszProperty, - ULONG cbValue, - PUCHAR pbValue); - - -NTSTATUS -__stdcall -BCryptQueryContextFunctionProperty( - ULONG dwTable, - LPCWSTR pszContext, - ULONG dwInterface, - LPCWSTR pszFunction, - LPCWSTR pszProperty, - ULONG* pcbValue, - PUCHAR *ppbValue); -# 1865 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -NTSTATUS -__stdcall -BCryptRegisterConfigChangeNotify( - HANDLE *phEvent); -# 1878 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -NTSTATUS -__stdcall -BCryptUnregisterConfigChangeNotify( - HANDLE hEvent); - - - - - - -NTSTATUS __stdcall -BCryptResolveProviders( - LPCWSTR pszContext, - ULONG dwInterface, - LPCWSTR pszFunction, - LPCWSTR pszProvider, - ULONG dwMode, - ULONG dwFlags, - ULONG* pcbBuffer, - PCRYPT_PROVIDER_REFS *ppBuffer); -# 1908 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -NTSTATUS -__stdcall -BCryptGetFipsAlgorithmMode( - BOOLEAN *pfEnabled - ); - - - - - - - -BOOLEAN -CngGetFipsAlgorithmMode( - void - ); -# 1934 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\bcrypt.h" 3 -#pragma warning(pop) -# 1571 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 2 3 - - - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 1 3 -# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) -# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -typedef LONG SECURITY_STATUS; -# 61 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -typedef LPVOID (__stdcall *PFN_NCRYPT_ALLOC)( - SIZE_T cbSize - ); - -typedef void (__stdcall *PFN_NCRYPT_FREE)( - LPVOID pv - ); - -typedef struct NCRYPT_ALLOC_PARA { - DWORD cbSize; - PFN_NCRYPT_ALLOC pfnAlloc; - PFN_NCRYPT_FREE pfnFree; -} NCRYPT_ALLOC_PARA; -# 250 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -typedef BCryptBuffer NCryptBuffer; -typedef BCryptBuffer* PNCryptBuffer; -typedef BCryptBufferDesc NCryptBufferDesc; -typedef BCryptBufferDesc* PNCryptBufferDesc; - - - - - -typedef ULONG_PTR NCRYPT_HANDLE; -typedef ULONG_PTR NCRYPT_PROV_HANDLE; -typedef ULONG_PTR NCRYPT_KEY_HANDLE; -typedef ULONG_PTR NCRYPT_HASH_HANDLE; -typedef ULONG_PTR NCRYPT_SECRET_HANDLE; - - - -typedef -struct _NCRYPT_CIPHER_PADDING_INFO -{ - - ULONG cbSize; - - - DWORD dwFlags; - - - - - - - PUCHAR pbIV; - ULONG cbIV; -# 295 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 - PUCHAR pbOtherInfo; - ULONG cbOtherInfo; - -} NCRYPT_CIPHER_PADDING_INFO, *PNCRYPT_CIPHER_PADDING_INFO; -# 313 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -typedef struct _NCRYPT_PLATFORM_ATTEST_PADDING_INFO { - ULONG magic; - ULONG pcrMask; -} NCRYPT_PLATFORM_ATTEST_PADDING_INFO; - - - -typedef struct _NCRYPT_KEY_ATTEST_PADDING_INFO { - ULONG magic; - PUCHAR pbKeyBlob; - ULONG cbKeyBlob; - PUCHAR pbKeyAuth; - ULONG cbKeyAuth; -} NCRYPT_KEY_ATTEST_PADDING_INFO; -# 359 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -typedef struct _NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES -{ - ULONG Version; - ULONG Flags; - ULONG cbPublicKeyBlob; - -} NCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES, *PNCRYPT_ISOLATED_KEY_ATTESTED_ATTRIBUTES; - - - - -typedef struct _NCRYPT_VSM_KEY_ATTESTATION_STATEMENT -{ - ULONG Magic; - ULONG Version; - ULONG cbSignature; - ULONG cbReport; - ULONG cbAttributes; - - - -} NCRYPT_VSM_KEY_ATTESTATION_STATEMENT, *PNCRYPT_VSM_KEY_ATTESTATION_STATEMENT; - - - - - - -#pragma warning(disable: 4214) -typedef struct _NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS -{ - ULONG Version; - ULONGLONG TrustletId; - ULONG MinSvn; - ULONG FlagsMask; - ULONG FlagsExpected; - ULONG AllowDebugging : 1; - ULONG Reserved : 31; -} NCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS, *PNCRYPT_VSM_KEY_ATTESTATION_CLAIM_RESTRICTIONS; -#pragma warning(default: 4214) - - - - - - -#pragma warning(disable: 4214) -typedef struct _NCRYPT_EXPORTED_ISOLATED_KEY_HEADER -{ - ULONG Version; - ULONG KeyUsage; - ULONG PerBootKey : 1; - ULONG Reserved : 31; - ULONG cbAlgName; - ULONG cbNonce; - ULONG cbAuthTag; - ULONG cbWrappingKey; - ULONG cbIsolatedKey; -} NCRYPT_EXPORTED_ISOLATED_KEY_HEADER, *PNCRYPT_EXPORTED_ISOLATED_KEY_HEADER; -#pragma warning(default: 4214) - -typedef struct _NCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE -{ - NCRYPT_EXPORTED_ISOLATED_KEY_HEADER Header; - - - - - - -} NCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE, *PNCRYPT_EXPORTED_ISOLATED_KEY_ENVELOPE; - - - - - -typedef struct __NCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT -{ - UINT32 Magic; - UINT32 Version; - UINT32 HeaderSize; - UINT32 cbCertifyInfo; - UINT32 cbSignature; - UINT32 cbTpmPublic; - - - - -} NCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT,*PNCRYPT_PCP_TPM_WEB_AUTHN_ATTESTATION_STATEMENT; -# 456 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -typedef struct _NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT -{ - ULONG Magic; - ULONG Version; - ULONG pcrAlg; - ULONG cbSignature; - ULONG cbQuote; - ULONG cbPcrs; - - - -} NCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT, *PNCRYPT_TPM_PLATFORM_ATTESTATION_STATEMENT; -# 529 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -SECURITY_STATUS -__stdcall -NCryptOpenStorageProvider( - NCRYPT_PROV_HANDLE *phProvider, - LPCWSTR pszProviderName, - DWORD dwFlags); -# 551 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -typedef struct _NCryptAlgorithmName -{ - LPWSTR pszName; - DWORD dwClass; - DWORD dwAlgOperations; - DWORD dwFlags; -} NCryptAlgorithmName; - - - -SECURITY_STATUS -__stdcall -NCryptEnumAlgorithms( - NCRYPT_PROV_HANDLE hProvider, - DWORD dwAlgOperations, - DWORD * pdwAlgCount, - NCryptAlgorithmName **ppAlgList, - DWORD dwFlags); - - - - -SECURITY_STATUS -__stdcall -NCryptIsAlgSupported( - NCRYPT_PROV_HANDLE hProvider, - LPCWSTR pszAlgId, - DWORD dwFlags); - - - - - - -typedef struct NCryptKeyName -{ - LPWSTR pszName; - LPWSTR pszAlgid; - DWORD dwLegacyKeySpec; - DWORD dwFlags; -} NCryptKeyName; - - -SECURITY_STATUS -__stdcall -NCryptEnumKeys( - NCRYPT_PROV_HANDLE hProvider, - LPCWSTR pszScope, - NCryptKeyName **ppKeyName, - PVOID * ppEnumState, - DWORD dwFlags); - - - -typedef struct NCryptProviderName -{ - LPWSTR pszName; - LPWSTR pszComment; -} NCryptProviderName; - - - - - -SECURITY_STATUS -__stdcall -NCryptEnumStorageProviders( - DWORD * pdwProviderCount, - NCryptProviderName **ppProviderList, - DWORD dwFlags); - - - - - - -SECURITY_STATUS -__stdcall -NCryptFreeBuffer( - PVOID pvInput); -# 645 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -SECURITY_STATUS -__stdcall -NCryptOpenKey( - NCRYPT_PROV_HANDLE hProvider, - NCRYPT_KEY_HANDLE *phKey, - LPCWSTR pszKeyName, - DWORD dwLegacyKeySpec, - DWORD dwFlags); -# 661 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -SECURITY_STATUS -__stdcall -NCryptCreatePersistedKey( - NCRYPT_PROV_HANDLE hProvider, - NCRYPT_KEY_HANDLE *phKey, - LPCWSTR pszAlgId, - LPCWSTR pszKeyName, - DWORD dwLegacyKeySpec, - DWORD dwFlags); -# 971 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -typedef struct __NCRYPT_UI_POLICY -{ - DWORD dwVersion; - DWORD dwFlags; - LPCWSTR pszCreationTitle; - LPCWSTR pszFriendlyName; - LPCWSTR pszDescription; -} NCRYPT_UI_POLICY; - - - - -typedef struct __NCRYPT_KEY_ACCESS_POLICY_BLOB -{ - DWORD dwVersion; - DWORD dwPolicyFlags; - DWORD cbUserSid; - DWORD cbApplicationSid; - - -}NCRYPT_KEY_ACCESS_POLICY_BLOB; - - - -typedef struct __NCRYPT_SUPPORTED_LENGTHS -{ - DWORD dwMinLength; - DWORD dwMaxLength; - DWORD dwIncrement; - DWORD dwDefaultLength; -} NCRYPT_SUPPORTED_LENGTHS; - - - -typedef struct __NCRYPT_PCP_HMAC_AUTH_SIGNATURE_INFO -{ - DWORD dwVersion; - INT32 iExpiration; - BYTE pabNonce[32]; - BYTE pabPolicyRef[32]; - BYTE pabHMAC[32]; -} NCRYPT_PCP_HMAC_AUTH_SIGNATURE_INFO; - - - - -typedef struct __NCRYPT_PCP_TPM_FW_VERSION_INFO -{ - UINT16 major1; - UINT16 major2; - UINT16 minor1; - UINT16 minor2; -} NCRYPT_PCP_TPM_FW_VERSION_INFO; - - - - -typedef struct __NCRYPT_PCP_RAW_POLICYDIGEST -{ - DWORD dwVersion; - DWORD cbDigest; -} NCRYPT_PCP_RAW_POLICYDIGEST_INFO; - - - - - - - -SECURITY_STATUS -__stdcall -NCryptGetProperty( - NCRYPT_HANDLE hObject, - LPCWSTR pszProperty, - PBYTE pbOutput, - DWORD cbOutput, - DWORD * pcbResult, - DWORD dwFlags); -# 1057 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -SECURITY_STATUS -__stdcall -NCryptSetProperty( - NCRYPT_HANDLE hObject, - LPCWSTR pszProperty, - PBYTE pbInput, - DWORD cbInput, - DWORD dwFlags); - - - - - - - -SECURITY_STATUS -__stdcall -NCryptFinalizeKey( - NCRYPT_KEY_HANDLE hKey, - DWORD dwFlags); - - - - -SECURITY_STATUS -__stdcall -NCryptEncrypt( - NCRYPT_KEY_HANDLE hKey, - PBYTE pbInput, - DWORD cbInput, - void *pPaddingInfo, - PBYTE pbOutput, - DWORD cbOutput, - DWORD * pcbResult, - DWORD dwFlags); - - - - -SECURITY_STATUS -__stdcall -NCryptDecrypt( - NCRYPT_KEY_HANDLE hKey, - PBYTE pbInput, - DWORD cbInput, - void *pPaddingInfo, - PBYTE pbOutput, - DWORD cbOutput, - DWORD * pcbResult, - DWORD dwFlags); - - - - - -typedef struct _NCRYPT_KEY_BLOB_HEADER -{ - ULONG cbSize; - ULONG dwMagic; - ULONG cbAlgName; - ULONG cbKeyData; -} NCRYPT_KEY_BLOB_HEADER, *PNCRYPT_KEY_BLOB_HEADER; -# 1130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -typedef struct NCRYPT_TPM_LOADABLE_KEY_BLOB_HEADER -{ - DWORD magic; - DWORD cbHeader; - DWORD cbPublic; - DWORD cbPrivate; - DWORD cbName; -} NCRYPT_TPM_LOADABLE_KEY_BLOB_HEADER, *PNCRYPT_TPM_LOADABLE_KEY_BLOB_HEADER; -# 1157 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -SECURITY_STATUS -__stdcall -NCryptImportKey( - NCRYPT_PROV_HANDLE hProvider, - NCRYPT_KEY_HANDLE hImportKey, - LPCWSTR pszBlobType, - NCryptBufferDesc *pParameterList, - NCRYPT_KEY_HANDLE *phKey, - PBYTE pbData, - DWORD cbData, - DWORD dwFlags); - - - - -SECURITY_STATUS -__stdcall -NCryptExportKey( - NCRYPT_KEY_HANDLE hKey, - NCRYPT_KEY_HANDLE hExportKey, - LPCWSTR pszBlobType, - NCryptBufferDesc *pParameterList, - PBYTE pbOutput, - DWORD cbOutput, - DWORD * pcbResult, - DWORD dwFlags); - - - - -SECURITY_STATUS -__stdcall -NCryptSignHash( - NCRYPT_KEY_HANDLE hKey, - void *pPaddingInfo, - PBYTE pbHashValue, - DWORD cbHashValue, - PBYTE pbSignature, - DWORD cbSignature, - DWORD * pcbResult, - DWORD dwFlags); - - - - -SECURITY_STATUS -__stdcall -NCryptVerifySignature( - NCRYPT_KEY_HANDLE hKey, - void *pPaddingInfo, - PBYTE pbHashValue, - DWORD cbHashValue, - PBYTE pbSignature, - DWORD cbSignature, - DWORD dwFlags); - - - -SECURITY_STATUS -__stdcall -NCryptDeleteKey( - NCRYPT_KEY_HANDLE hKey, - DWORD dwFlags); - - - -SECURITY_STATUS -__stdcall -NCryptFreeObject( - NCRYPT_HANDLE hObject); - - - - - -BOOL -__stdcall -NCryptIsKeyHandle( - NCRYPT_KEY_HANDLE hKey); - - -SECURITY_STATUS -__stdcall -NCryptTranslateHandle( - NCRYPT_PROV_HANDLE *phProvider, - NCRYPT_KEY_HANDLE *phKey, - HCRYPTPROV hLegacyProv, - HCRYPTKEY hLegacyKey, - DWORD dwLegacyKeySpec, - DWORD dwFlags); -# 1261 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -SECURITY_STATUS -__stdcall -NCryptNotifyChangeKey( - NCRYPT_PROV_HANDLE hProvider, - HANDLE *phEvent, - DWORD dwFlags); - - - - - - - -SECURITY_STATUS -__stdcall -NCryptSecretAgreement( - NCRYPT_KEY_HANDLE hPrivKey, - NCRYPT_KEY_HANDLE hPubKey, - NCRYPT_SECRET_HANDLE *phAgreedSecret, - DWORD dwFlags); - - - - -SECURITY_STATUS -__stdcall -NCryptDeriveKey( - NCRYPT_SECRET_HANDLE hSharedSecret, - LPCWSTR pwszKDF, - NCryptBufferDesc *pParameterList, - PBYTE pbDerivedKey, - DWORD cbDerivedKey, - DWORD *pcbResult, - ULONG dwFlags); - - - - - - -SECURITY_STATUS -__stdcall -NCryptKeyDerivation( - NCRYPT_KEY_HANDLE hKey, - NCryptBufferDesc *pParameterList, - PUCHAR pbDerivedKey, - DWORD cbDerivedKey, - DWORD *pcbResult, - ULONG dwFlags); - - - - - - - -SECURITY_STATUS -__stdcall -NCryptCreateClaim( - NCRYPT_KEY_HANDLE hSubjectKey, - NCRYPT_KEY_HANDLE hAuthorityKey, - DWORD dwClaimType, - NCryptBufferDesc *pParameterList, - PBYTE pbClaimBlob, - DWORD cbClaimBlob, - DWORD *pcbResult, - DWORD dwFlags); - - - - - - - -SECURITY_STATUS -__stdcall -NCryptVerifyClaim( - NCRYPT_KEY_HANDLE hSubjectKey, - NCRYPT_KEY_HANDLE hAuthorityKey, - DWORD dwClaimType, - NCryptBufferDesc *pParameterList, - PBYTE pbClaimBlob, - DWORD cbClaimBlob, - NCryptBufferDesc *pOutput, - DWORD dwFlags); -# 1360 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ncrypt.h" 3 -#pragma warning(pop) -# 1579 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 2 3 - - - - -typedef ULONG_PTR HCRYPTPROV_OR_NCRYPT_KEY_HANDLE; - - - -typedef ULONG_PTR HCRYPTPROV_LEGACY; - - - - - - -typedef struct _CRYPT_BIT_BLOB { - DWORD cbData; - BYTE *pbData; - DWORD cUnusedBits; -} CRYPT_BIT_BLOB, *PCRYPT_BIT_BLOB; - - - - - - - -typedef struct _CRYPT_ALGORITHM_IDENTIFIER { - LPSTR pszObjId; - CRYPT_OBJID_BLOB Parameters; -} CRYPT_ALGORITHM_IDENTIFIER, *PCRYPT_ALGORITHM_IDENTIFIER; -# 1897 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_OBJID_TABLE { - DWORD dwAlgId; - LPCSTR pszObjId; -} CRYPT_OBJID_TABLE, *PCRYPT_OBJID_TABLE; - - - - - -typedef struct _CRYPT_HASH_INFO { - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; - CRYPT_HASH_BLOB Hash; -} CRYPT_HASH_INFO, *PCRYPT_HASH_INFO; - - - - - - - -typedef struct _CERT_EXTENSION { - LPSTR pszObjId; - BOOL fCritical; - CRYPT_OBJID_BLOB Value; -} CERT_EXTENSION, *PCERT_EXTENSION; -typedef const CERT_EXTENSION* PCCERT_EXTENSION; -# 1931 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_ATTRIBUTE_TYPE_VALUE { - LPSTR pszObjId; - CRYPT_OBJID_BLOB Value; -} CRYPT_ATTRIBUTE_TYPE_VALUE, *PCRYPT_ATTRIBUTE_TYPE_VALUE; -# 1943 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_ATTRIBUTE { - LPSTR pszObjId; - DWORD cValue; - PCRYPT_ATTR_BLOB rgValue; -} CRYPT_ATTRIBUTE, *PCRYPT_ATTRIBUTE; - -typedef struct _CRYPT_ATTRIBUTES { - DWORD cAttr; - PCRYPT_ATTRIBUTE rgAttr; -} CRYPT_ATTRIBUTES, *PCRYPT_ATTRIBUTES; -# 1961 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_RDN_ATTR { - LPSTR pszObjId; - DWORD dwValueType; - CERT_RDN_VALUE_BLOB Value; -} CERT_RDN_ATTR, *PCERT_RDN_ATTR; -# 2149 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_RDN { - DWORD cRDNAttr; - PCERT_RDN_ATTR rgRDNAttr; -} CERT_RDN, *PCERT_RDN; - - - - - -typedef struct _CERT_NAME_INFO { - DWORD cRDN; - PCERT_RDN rgRDN; -} CERT_NAME_INFO, *PCERT_NAME_INFO; - - - - - - - -typedef struct _CERT_NAME_VALUE { - DWORD dwValueType; - CERT_RDN_VALUE_BLOB Value; -} CERT_NAME_VALUE, *PCERT_NAME_VALUE; -# 2181 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_PUBLIC_KEY_INFO { - CRYPT_ALGORITHM_IDENTIFIER Algorithm; - CRYPT_BIT_BLOB PublicKey; -} CERT_PUBLIC_KEY_INFO, *PCERT_PUBLIC_KEY_INFO; -# 2194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_ECC_PRIVATE_KEY_INFO{ - DWORD dwVersion; - CRYPT_DER_BLOB PrivateKey; - LPSTR szCurveOid; - CRYPT_BIT_BLOB PublicKey; -} CRYPT_ECC_PRIVATE_KEY_INFO, *PCRYPT_ECC_PRIVATE_KEY_INFO; - - - - - - -typedef struct _CRYPT_PRIVATE_KEY_INFO{ - DWORD Version; - CRYPT_ALGORITHM_IDENTIFIER Algorithm; - CRYPT_DER_BLOB PrivateKey; - PCRYPT_ATTRIBUTES pAttributes; -} CRYPT_PRIVATE_KEY_INFO, *PCRYPT_PRIVATE_KEY_INFO; - - - - - -typedef struct _CRYPT_ENCRYPTED_PRIVATE_KEY_INFO{ - CRYPT_ALGORITHM_IDENTIFIER EncryptionAlgorithm; - CRYPT_DATA_BLOB EncryptedPrivateKey; -} CRYPT_ENCRYPTED_PRIVATE_KEY_INFO, *PCRYPT_ENCRYPTED_PRIVATE_KEY_INFO; -# 2238 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PCRYPT_DECRYPT_PRIVATE_KEY_FUNC)( - CRYPT_ALGORITHM_IDENTIFIER Algorithm, - CRYPT_DATA_BLOB EncryptedPrivateKey, - BYTE* pbClearTextKey, - DWORD* pcbClearTextKey, - LPVOID pVoidDecryptFunc); -# 2261 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PCRYPT_ENCRYPT_PRIVATE_KEY_FUNC)( - CRYPT_ALGORITHM_IDENTIFIER* pAlgorithm, - CRYPT_DATA_BLOB* pClearTextPrivateKey, - BYTE* pbEncryptedKey, - DWORD* pcbEncryptedKey, - LPVOID pVoidEncryptFunc); -# 2280 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PCRYPT_RESOLVE_HCRYPTPROV_FUNC)( - CRYPT_PRIVATE_KEY_INFO *pPrivateKeyInfo, - HCRYPTPROV *phCryptProv, - LPVOID pVoidResolveFunc); -# 2294 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_PKCS8_IMPORT_PARAMS{ - CRYPT_DIGEST_BLOB PrivateKey; - PCRYPT_RESOLVE_HCRYPTPROV_FUNC pResolvehCryptProvFunc; - LPVOID pVoidResolveFunc; - PCRYPT_DECRYPT_PRIVATE_KEY_FUNC pDecryptPrivateKeyFunc; - LPVOID pVoidDecryptFunc; -} CRYPT_PKCS8_IMPORT_PARAMS, *PCRYPT_PKCS8_IMPORT_PARAMS, CRYPT_PRIVATE_KEY_BLOB_AND_PARAMS, *PCRYPT_PRIVATE_KEY_BLOB_AND_PARAMS; -# 2310 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_PKCS8_EXPORT_PARAMS{ - HCRYPTPROV hCryptProv; - DWORD dwKeySpec; - LPSTR pszPrivateKeyObjId; - - PCRYPT_ENCRYPT_PRIVATE_KEY_FUNC pEncryptPrivateKeyFunc; - LPVOID pVoidEncryptFunc; -} CRYPT_PKCS8_EXPORT_PARAMS, *PCRYPT_PKCS8_EXPORT_PARAMS; -# 2326 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_INFO { - DWORD dwVersion; - CRYPT_INTEGER_BLOB SerialNumber; - CRYPT_ALGORITHM_IDENTIFIER SignatureAlgorithm; - CERT_NAME_BLOB Issuer; - FILETIME NotBefore; - FILETIME NotAfter; - CERT_NAME_BLOB Subject; - CERT_PUBLIC_KEY_INFO SubjectPublicKeyInfo; - CRYPT_BIT_BLOB IssuerUniqueId; - CRYPT_BIT_BLOB SubjectUniqueId; - DWORD cExtension; - PCERT_EXTENSION rgExtension; -} CERT_INFO, *PCERT_INFO; -# 2369 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRL_ENTRY { - CRYPT_INTEGER_BLOB SerialNumber; - FILETIME RevocationDate; - DWORD cExtension; - PCERT_EXTENSION rgExtension; -} CRL_ENTRY, *PCRL_ENTRY; - - - - - - - -typedef struct _CRL_INFO { - DWORD dwVersion; - CRYPT_ALGORITHM_IDENTIFIER SignatureAlgorithm; - CERT_NAME_BLOB Issuer; - FILETIME ThisUpdate; - FILETIME NextUpdate; - DWORD cCRLEntry; - PCRL_ENTRY rgCRLEntry; - DWORD cExtension; - PCERT_EXTENSION rgExtension; -} CRL_INFO, *PCRL_INFO; -# 2406 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_OR_CRL_BLOB { - DWORD dwChoice; - DWORD cbEncoded; - - BYTE *pbEncoded; -} CERT_OR_CRL_BLOB, * PCERT_OR_CRL_BLOB; - -typedef struct _CERT_OR_CRL_BUNDLE { - DWORD cItem; - - PCERT_OR_CRL_BLOB rgItem; -} CERT_OR_CRL_BUNDLE, *PCERT_OR_CRL_BUNDLE; - - - - - - - -typedef struct _CERT_REQUEST_INFO { - DWORD dwVersion; - CERT_NAME_BLOB Subject; - CERT_PUBLIC_KEY_INFO SubjectPublicKeyInfo; - DWORD cAttribute; - PCRYPT_ATTRIBUTE rgAttribute; -} CERT_REQUEST_INFO, *PCERT_REQUEST_INFO; -# 2441 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_KEYGEN_REQUEST_INFO { - DWORD dwVersion; - CERT_PUBLIC_KEY_INFO SubjectPublicKeyInfo; - LPWSTR pwszChallengeString; -} CERT_KEYGEN_REQUEST_INFO, *PCERT_KEYGEN_REQUEST_INFO; -# 2457 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_SIGNED_CONTENT_INFO { - CRYPT_DER_BLOB ToBeSigned; - CRYPT_ALGORITHM_IDENTIFIER SignatureAlgorithm; - CRYPT_BIT_BLOB Signature; -} CERT_SIGNED_CONTENT_INFO, *PCERT_SIGNED_CONTENT_INFO; -# 2471 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CTL_USAGE { - DWORD cUsageIdentifier; - LPSTR *rgpszUsageIdentifier; -} CTL_USAGE, *PCTL_USAGE, -CERT_ENHKEY_USAGE, *PCERT_ENHKEY_USAGE; -typedef const CTL_USAGE* PCCTL_USAGE; -typedef const CERT_ENHKEY_USAGE* PCCERT_ENHKEY_USAGE; - - - - - -typedef struct _CTL_ENTRY { - CRYPT_DATA_BLOB SubjectIdentifier; - DWORD cAttribute; - PCRYPT_ATTRIBUTE rgAttribute; -} CTL_ENTRY, *PCTL_ENTRY; - - - - -typedef struct _CTL_INFO { - DWORD dwVersion; - CTL_USAGE SubjectUsage; - CRYPT_DATA_BLOB ListIdentifier; - CRYPT_INTEGER_BLOB SequenceNumber; - FILETIME ThisUpdate; - FILETIME NextUpdate; - CRYPT_ALGORITHM_IDENTIFIER SubjectAlgorithm; - DWORD cCTLEntry; - PCTL_ENTRY rgCTLEntry; - DWORD cExtension; - PCERT_EXTENSION rgExtension; -} CTL_INFO, *PCTL_INFO; -# 2519 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_TIME_STAMP_REQUEST_INFO { - LPSTR pszTimeStampAlgorithm; - LPSTR pszContentType; - CRYPT_OBJID_BLOB Content; - DWORD cAttribute; - PCRYPT_ATTRIBUTE rgAttribute; -} CRYPT_TIME_STAMP_REQUEST_INFO, *PCRYPT_TIME_STAMP_REQUEST_INFO; - - - - -typedef struct _CRYPT_ENROLLMENT_NAME_VALUE_PAIR { - LPWSTR pwszName; - LPWSTR pwszValue; -} CRYPT_ENROLLMENT_NAME_VALUE_PAIR, * PCRYPT_ENROLLMENT_NAME_VALUE_PAIR; - - - - -typedef struct _CRYPT_CSP_PROVIDER { - DWORD dwKeySpec; - LPWSTR pwszProviderName; - CRYPT_BIT_BLOB Signature; -} CRYPT_CSP_PROVIDER, * PCRYPT_CSP_PROVIDER; -# 2586 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptFormatObject( - DWORD dwCertEncodingType, - DWORD dwFormatType, - DWORD dwFormatStrType, - void *pFormatStruct, - LPCSTR lpszStructType, - const BYTE *pbEncoded, - DWORD cbEncoded, - void *pbFormat, - DWORD *pcbFormat - ); -# 2669 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef LPVOID (__stdcall *PFN_CRYPT_ALLOC)( - size_t cbSize - ); - -typedef void (__stdcall *PFN_CRYPT_FREE)( - LPVOID pv - ); - - -typedef struct _CRYPT_ENCODE_PARA { - DWORD cbSize; - PFN_CRYPT_ALLOC pfnAlloc; - PFN_CRYPT_FREE pfnFree; -} CRYPT_ENCODE_PARA, *PCRYPT_ENCODE_PARA; - - -__declspec(dllimport) -BOOL -__stdcall -CryptEncodeObjectEx( - DWORD dwCertEncodingType, - LPCSTR lpszStructType, - const void *pvStructInfo, - DWORD dwFlags, - PCRYPT_ENCODE_PARA pEncodePara, - void *pvEncoded, - DWORD *pcbEncoded - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptEncodeObject( - DWORD dwCertEncodingType, - LPCSTR lpszStructType, - const void *pvStructInfo, - BYTE *pbEncoded, - DWORD *pcbEncoded - ); -# 2784 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_DECODE_PARA { - DWORD cbSize; - PFN_CRYPT_ALLOC pfnAlloc; - PFN_CRYPT_FREE pfnFree; -} CRYPT_DECODE_PARA, *PCRYPT_DECODE_PARA; - -__declspec(dllimport) -BOOL -__stdcall -CryptDecodeObjectEx( - DWORD dwCertEncodingType, - LPCSTR lpszStructType, - const BYTE *pbEncoded, - DWORD cbEncoded, - DWORD dwFlags, - PCRYPT_DECODE_PARA pDecodePara, - void *pvStructInfo, - DWORD *pcbStructInfo - ); - - -__declspec(dllimport) -BOOL -__stdcall -CryptDecodeObject( - DWORD dwCertEncodingType, - LPCSTR lpszStructType, - const BYTE *pbEncoded, - DWORD cbEncoded, - DWORD dwFlags, - void *pvStructInfo, - DWORD *pcbStructInfo - ); -# 3726 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_EXTENSIONS { - DWORD cExtension; - PCERT_EXTENSION rgExtension; -} CERT_EXTENSIONS, *PCERT_EXTENSIONS; -# 3893 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_AUTHORITY_KEY_ID_INFO { - CRYPT_DATA_BLOB KeyId; - CERT_NAME_BLOB CertIssuer; - CRYPT_INTEGER_BLOB CertSerialNumber; -} CERT_AUTHORITY_KEY_ID_INFO, *PCERT_AUTHORITY_KEY_ID_INFO; - - - - - - - -typedef struct _CERT_PRIVATE_KEY_VALIDITY { - FILETIME NotBefore; - FILETIME NotAfter; -} CERT_PRIVATE_KEY_VALIDITY, *PCERT_PRIVATE_KEY_VALIDITY; - -typedef struct _CERT_KEY_ATTRIBUTES_INFO { - CRYPT_DATA_BLOB KeyId; - CRYPT_BIT_BLOB IntendedKeyUsage; - PCERT_PRIVATE_KEY_VALIDITY pPrivateKeyUsagePeriod; -} CERT_KEY_ATTRIBUTES_INFO, *PCERT_KEY_ATTRIBUTES_INFO; -# 3937 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_POLICY_ID { - DWORD cCertPolicyElementId; - LPSTR *rgpszCertPolicyElementId; -} CERT_POLICY_ID, *PCERT_POLICY_ID; - -typedef struct _CERT_KEY_USAGE_RESTRICTION_INFO { - DWORD cCertPolicyId; - PCERT_POLICY_ID rgCertPolicyId; - CRYPT_BIT_BLOB RestrictedKeyUsage; -} CERT_KEY_USAGE_RESTRICTION_INFO, *PCERT_KEY_USAGE_RESTRICTION_INFO; -# 3961 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_OTHER_NAME { - LPSTR pszObjId; - CRYPT_OBJID_BLOB Value; -} CERT_OTHER_NAME, *PCERT_OTHER_NAME; - -typedef struct _CERT_ALT_NAME_ENTRY { - DWORD dwAltNameChoice; - union { - PCERT_OTHER_NAME pOtherName; - LPWSTR pwszRfc822Name; - LPWSTR pwszDNSName; - - CERT_NAME_BLOB DirectoryName; - - LPWSTR pwszURL; - CRYPT_DATA_BLOB IPAddress; - LPSTR pszRegisteredID; - } ; -} CERT_ALT_NAME_ENTRY, *PCERT_ALT_NAME_ENTRY; -# 3995 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_ALT_NAME_INFO { - DWORD cAltEntry; - PCERT_ALT_NAME_ENTRY rgAltEntry; -} CERT_ALT_NAME_INFO, *PCERT_ALT_NAME_INFO; -# 4030 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_BASIC_CONSTRAINTS_INFO { - CRYPT_BIT_BLOB SubjectType; - BOOL fPathLenConstraint; - DWORD dwPathLenConstraint; - DWORD cSubtreesConstraint; - CERT_NAME_BLOB *rgSubtreesConstraint; -} CERT_BASIC_CONSTRAINTS_INFO, *PCERT_BASIC_CONSTRAINTS_INFO; -# 4047 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_BASIC_CONSTRAINTS2_INFO { - BOOL fCA; - BOOL fPathLenConstraint; - DWORD dwPathLenConstraint; -} CERT_BASIC_CONSTRAINTS2_INFO, *PCERT_BASIC_CONSTRAINTS2_INFO; -# 4072 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_POLICY_QUALIFIER_INFO { - LPSTR pszPolicyQualifierId; - CRYPT_OBJID_BLOB Qualifier; -} CERT_POLICY_QUALIFIER_INFO, *PCERT_POLICY_QUALIFIER_INFO; - -typedef struct _CERT_POLICY_INFO { - LPSTR pszPolicyIdentifier; - DWORD cPolicyQualifier; - CERT_POLICY_QUALIFIER_INFO *rgPolicyQualifier; -} CERT_POLICY_INFO, *PCERT_POLICY_INFO; - -typedef struct _CERT_POLICIES_INFO { - DWORD cPolicyInfo; - CERT_POLICY_INFO *rgPolicyInfo; -} CERT_POLICIES_INFO, *PCERT_POLICIES_INFO; -# 4096 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_POLICY_QUALIFIER_NOTICE_REFERENCE { - LPSTR pszOrganization; - DWORD cNoticeNumbers; - int *rgNoticeNumbers; -} CERT_POLICY_QUALIFIER_NOTICE_REFERENCE, *PCERT_POLICY_QUALIFIER_NOTICE_REFERENCE; - -typedef struct _CERT_POLICY_QUALIFIER_USER_NOTICE { - CERT_POLICY_QUALIFIER_NOTICE_REFERENCE *pNoticeReference; - LPWSTR pszDisplayText; -} CERT_POLICY_QUALIFIER_USER_NOTICE, *PCERT_POLICY_QUALIFIER_USER_NOTICE; - - - - - - - -typedef struct _CPS_URLS { - LPWSTR pszURL; - CRYPT_ALGORITHM_IDENTIFIER *pAlgorithm; - CRYPT_DATA_BLOB *pDigest; -} CPS_URLS, *PCPS_URLS; - -typedef struct _CERT_POLICY95_QUALIFIER1 { - LPWSTR pszPracticesReference; - LPSTR pszNoticeIdentifier; - LPSTR pszNSINoticeIdentifier; - DWORD cCPSURLs; - CPS_URLS *rgCPSURLs; -} CERT_POLICY95_QUALIFIER1, *PCERT_POLICY95_QUALIFIER1; -# 4141 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_POLICY_MAPPING { - LPSTR pszIssuerDomainPolicy; - LPSTR pszSubjectDomainPolicy; -} CERT_POLICY_MAPPING, *PCERT_POLICY_MAPPING; - -typedef struct _CERT_POLICY_MAPPINGS_INFO { - DWORD cPolicyMapping; - PCERT_POLICY_MAPPING rgPolicyMapping; -} CERT_POLICY_MAPPINGS_INFO, *PCERT_POLICY_MAPPINGS_INFO; - - - - - - - -typedef struct _CERT_POLICY_CONSTRAINTS_INFO { - BOOL fRequireExplicitPolicy; - DWORD dwRequireExplicitPolicySkipCerts; - - BOOL fInhibitPolicyMapping; - DWORD dwInhibitPolicyMappingSkipCerts; -} CERT_POLICY_CONSTRAINTS_INFO, *PCERT_POLICY_CONSTRAINTS_INFO; -# 4249 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY { - LPSTR pszObjId; - DWORD cValue; - PCRYPT_DER_BLOB rgValue; -} CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY, *PCRYPT_CONTENT_INFO_SEQUENCE_OF_ANY; -# 4263 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_CONTENT_INFO { - LPSTR pszObjId; - CRYPT_DER_BLOB Content; -} CRYPT_CONTENT_INFO, *PCRYPT_CONTENT_INFO; -# 4321 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_SEQUENCE_OF_ANY { - DWORD cValue; - PCRYPT_DER_BLOB rgValue; -} CRYPT_SEQUENCE_OF_ANY, *PCRYPT_SEQUENCE_OF_ANY; -# 4338 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_AUTHORITY_KEY_ID2_INFO { - CRYPT_DATA_BLOB KeyId; - CERT_ALT_NAME_INFO AuthorityCertIssuer; - - CRYPT_INTEGER_BLOB AuthorityCertSerialNumber; -} CERT_AUTHORITY_KEY_ID2_INFO, *PCERT_AUTHORITY_KEY_ID2_INFO; -# 4374 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_ACCESS_DESCRIPTION { - LPSTR pszAccessMethod; - CERT_ALT_NAME_ENTRY AccessLocation; -} CERT_ACCESS_DESCRIPTION, *PCERT_ACCESS_DESCRIPTION; - - -typedef struct _CERT_AUTHORITY_INFO_ACCESS { - DWORD cAccDescr; - PCERT_ACCESS_DESCRIPTION rgAccDescr; -} CERT_AUTHORITY_INFO_ACCESS, *PCERT_AUTHORITY_INFO_ACCESS, - CERT_SUBJECT_INFO_ACCESS, *PCERT_SUBJECT_INFO_ACCESS; -# 4438 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRL_DIST_POINT_NAME { - DWORD dwDistPointNameChoice; - union { - CERT_ALT_NAME_INFO FullName; - - } ; -} CRL_DIST_POINT_NAME, *PCRL_DIST_POINT_NAME; - - - - - -typedef struct _CRL_DIST_POINT { - CRL_DIST_POINT_NAME DistPointName; - CRYPT_BIT_BLOB ReasonFlags; - CERT_ALT_NAME_INFO CRLIssuer; -} CRL_DIST_POINT, *PCRL_DIST_POINT; -# 4468 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRL_DIST_POINTS_INFO { - DWORD cDistPoint; - PCRL_DIST_POINT rgDistPoint; -} CRL_DIST_POINTS_INFO, *PCRL_DIST_POINTS_INFO; -# 4499 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CROSS_CERT_DIST_POINTS_INFO { - - DWORD dwSyncDeltaTime; - - DWORD cDistPoint; - PCERT_ALT_NAME_INFO rgDistPoint; -} CROSS_CERT_DIST_POINTS_INFO, *PCROSS_CERT_DIST_POINTS_INFO; -# 4527 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_PAIR { - CERT_BLOB Forward; - CERT_BLOB Reverse; -} CERT_PAIR, *PCERT_PAIR; -# 4560 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRL_ISSUING_DIST_POINT { - CRL_DIST_POINT_NAME DistPointName; - BOOL fOnlyContainsUserCerts; - BOOL fOnlyContainsCACerts; - CRYPT_BIT_BLOB OnlySomeReasonFlags; - BOOL fIndirectCRL; -} CRL_ISSUING_DIST_POINT, *PCRL_ISSUING_DIST_POINT; -# 4591 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_GENERAL_SUBTREE { - CERT_ALT_NAME_ENTRY Base; - DWORD dwMinimum; - BOOL fMaximum; - DWORD dwMaximum; -} CERT_GENERAL_SUBTREE, *PCERT_GENERAL_SUBTREE; - -typedef struct _CERT_NAME_CONSTRAINTS_INFO { - DWORD cPermittedSubtree; - PCERT_GENERAL_SUBTREE rgPermittedSubtree; - DWORD cExcludedSubtree; - PCERT_GENERAL_SUBTREE rgExcludedSubtree; -} CERT_NAME_CONSTRAINTS_INFO, *PCERT_NAME_CONSTRAINTS_INFO; -# 4692 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_DSS_PARAMETERS { - CRYPT_UINT_BLOB p; - CRYPT_UINT_BLOB q; - CRYPT_UINT_BLOB g; -} CERT_DSS_PARAMETERS, *PCERT_DSS_PARAMETERS; -# 4723 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_DH_PARAMETERS { - CRYPT_UINT_BLOB p; - CRYPT_UINT_BLOB g; -} CERT_DH_PARAMETERS, *PCERT_DH_PARAMETERS; -# 4736 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_ECC_SIGNATURE { - CRYPT_UINT_BLOB r; - CRYPT_UINT_BLOB s; -} CERT_ECC_SIGNATURE, *PCERT_ECC_SIGNATURE; -# 4748 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_X942_DH_VALIDATION_PARAMS { - CRYPT_BIT_BLOB seed; - DWORD pgenCounter; -} CERT_X942_DH_VALIDATION_PARAMS, *PCERT_X942_DH_VALIDATION_PARAMS; - -typedef struct _CERT_X942_DH_PARAMETERS { - CRYPT_UINT_BLOB p; - CRYPT_UINT_BLOB g; - CRYPT_UINT_BLOB q; - CRYPT_UINT_BLOB j; - PCERT_X942_DH_VALIDATION_PARAMS pValidationParams; -} CERT_X942_DH_PARAMETERS, *PCERT_X942_DH_PARAMETERS; -# 4771 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_X942_OTHER_INFO { - LPSTR pszContentEncryptionObjId; - BYTE rgbCounter[4]; - BYTE rgbKeyLength[4]; - CRYPT_DATA_BLOB PubInfo; -} CRYPT_X942_OTHER_INFO, *PCRYPT_X942_OTHER_INFO; -# 4787 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_ECC_CMS_SHARED_INFO { - CRYPT_ALGORITHM_IDENTIFIER Algorithm; - CRYPT_DATA_BLOB EntityUInfo; - BYTE rgbSuppPubInfo[4]; -} CRYPT_ECC_CMS_SHARED_INFO, *PCRYPT_ECC_CMS_SHARED_INFO; -# 4800 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_RC2_CBC_PARAMETERS { - DWORD dwVersion; - BOOL fIV; - BYTE rgbIV[8]; -} CRYPT_RC2_CBC_PARAMETERS, *PCRYPT_RC2_CBC_PARAMETERS; -# 4824 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_SMIME_CAPABILITY { - LPSTR pszObjId; - CRYPT_OBJID_BLOB Parameters; -} CRYPT_SMIME_CAPABILITY, *PCRYPT_SMIME_CAPABILITY; - -typedef struct _CRYPT_SMIME_CAPABILITIES { - DWORD cCapability; - PCRYPT_SMIME_CAPABILITY rgCapability; -} CRYPT_SMIME_CAPABILITIES, *PCRYPT_SMIME_CAPABILITIES; -# 4849 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_QC_STATEMENT { - LPSTR pszStatementId; - CRYPT_OBJID_BLOB StatementInfo; -} CERT_QC_STATEMENT, *PCERT_QC_STATEMENT; - -typedef struct _CERT_QC_STATEMENTS_EXT_INFO { - DWORD cStatement; - PCERT_QC_STATEMENT rgStatement; -} CERT_QC_STATEMENTS_EXT_INFO, *PCERT_QC_STATEMENTS_EXT_INFO; -# 4901 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_MASK_GEN_ALGORITHM { - LPSTR pszObjId; - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; -} CRYPT_MASK_GEN_ALGORITHM, *PCRYPT_MASK_GEN_ALGORITHM; - -typedef struct _CRYPT_RSA_SSA_PSS_PARAMETERS { - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; - CRYPT_MASK_GEN_ALGORITHM MaskGenAlgorithm; - DWORD dwSaltLength; - DWORD dwTrailerField; -} CRYPT_RSA_SSA_PSS_PARAMETERS, *PCRYPT_RSA_SSA_PSS_PARAMETERS; -# 4936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_PSOURCE_ALGORITHM { - LPSTR pszObjId; - CRYPT_DATA_BLOB EncodingParameters; -} CRYPT_PSOURCE_ALGORITHM, *PCRYPT_PSOURCE_ALGORITHM; - -typedef struct _CRYPT_RSAES_OAEP_PARAMETERS { - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; - CRYPT_MASK_GEN_ALGORITHM MaskGenAlgorithm; - CRYPT_PSOURCE_ALGORITHM PSourceAlgorithm; -} CRYPT_RSAES_OAEP_PARAMETERS, *PCRYPT_RSAES_OAEP_PARAMETERS; -# 5230 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMC_TAGGED_ATTRIBUTE { - DWORD dwBodyPartID; - CRYPT_ATTRIBUTE Attribute; -} CMC_TAGGED_ATTRIBUTE, *PCMC_TAGGED_ATTRIBUTE; - -typedef struct _CMC_TAGGED_CERT_REQUEST { - DWORD dwBodyPartID; - CRYPT_DER_BLOB SignedCertRequest; -} CMC_TAGGED_CERT_REQUEST, *PCMC_TAGGED_CERT_REQUEST; - -typedef struct _CMC_TAGGED_REQUEST { - DWORD dwTaggedRequestChoice; - union { - - PCMC_TAGGED_CERT_REQUEST pTaggedCertRequest; - } ; -} CMC_TAGGED_REQUEST, *PCMC_TAGGED_REQUEST; - - - -typedef struct _CMC_TAGGED_CONTENT_INFO { - DWORD dwBodyPartID; - CRYPT_DER_BLOB EncodedContentInfo; -} CMC_TAGGED_CONTENT_INFO, *PCMC_TAGGED_CONTENT_INFO; - -typedef struct _CMC_TAGGED_OTHER_MSG { - DWORD dwBodyPartID; - LPSTR pszObjId; - CRYPT_OBJID_BLOB Value; -} CMC_TAGGED_OTHER_MSG, *PCMC_TAGGED_OTHER_MSG; - - - -typedef struct _CMC_DATA_INFO { - DWORD cTaggedAttribute; - PCMC_TAGGED_ATTRIBUTE rgTaggedAttribute; - DWORD cTaggedRequest; - PCMC_TAGGED_REQUEST rgTaggedRequest; - DWORD cTaggedContentInfo; - PCMC_TAGGED_CONTENT_INFO rgTaggedContentInfo; - DWORD cTaggedOtherMsg; - PCMC_TAGGED_OTHER_MSG rgTaggedOtherMsg; -} CMC_DATA_INFO, *PCMC_DATA_INFO; - - - -typedef struct _CMC_RESPONSE_INFO { - DWORD cTaggedAttribute; - PCMC_TAGGED_ATTRIBUTE rgTaggedAttribute; - DWORD cTaggedContentInfo; - PCMC_TAGGED_CONTENT_INFO rgTaggedContentInfo; - DWORD cTaggedOtherMsg; - PCMC_TAGGED_OTHER_MSG rgTaggedOtherMsg; -} CMC_RESPONSE_INFO, *PCMC_RESPONSE_INFO; -# 5293 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMC_PEND_INFO { - CRYPT_DATA_BLOB PendToken; - FILETIME PendTime; -} CMC_PEND_INFO, *PCMC_PEND_INFO; - -typedef struct _CMC_STATUS_INFO { - DWORD dwStatus; - DWORD cBodyList; - DWORD *rgdwBodyList; - LPWSTR pwszStatusString; - DWORD dwOtherInfoChoice; - union { - - - - DWORD dwFailInfo; - - PCMC_PEND_INFO pPendInfo; - } ; -} CMC_STATUS_INFO, *PCMC_STATUS_INFO; -# 5390 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMC_ADD_EXTENSIONS_INFO { - DWORD dwCmcDataReference; - DWORD cCertReference; - DWORD *rgdwCertReference; - DWORD cExtension; - PCERT_EXTENSION rgExtension; -} CMC_ADD_EXTENSIONS_INFO, *PCMC_ADD_EXTENSIONS_INFO; -# 5407 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMC_ADD_ATTRIBUTES_INFO { - DWORD dwCmcDataReference; - DWORD cCertReference; - DWORD *rgdwCertReference; - DWORD cAttribute; - PCRYPT_ATTRIBUTE rgAttribute; -} CMC_ADD_ATTRIBUTES_INFO, *PCMC_ADD_ATTRIBUTES_INFO; -# 5423 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_TEMPLATE_EXT { - LPSTR pszObjId; - DWORD dwMajorVersion; - BOOL fMinorVersion; - DWORD dwMinorVersion; -} CERT_TEMPLATE_EXT, *PCERT_TEMPLATE_EXT; -# 5439 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_HASHED_URL { - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; - CRYPT_HASH_BLOB Hash; - LPWSTR pwszUrl; - -} CERT_HASHED_URL, *PCERT_HASHED_URL; - -typedef struct _CERT_LOGOTYPE_DETAILS { - LPWSTR pwszMimeType; - DWORD cHashedUrl; - PCERT_HASHED_URL rgHashedUrl; -} CERT_LOGOTYPE_DETAILS, *PCERT_LOGOTYPE_DETAILS; - -typedef struct _CERT_LOGOTYPE_REFERENCE { - DWORD cHashedUrl; - PCERT_HASHED_URL rgHashedUrl; -} CERT_LOGOTYPE_REFERENCE, *PCERT_LOGOTYPE_REFERENCE; - -typedef struct _CERT_LOGOTYPE_IMAGE_INFO { - - - DWORD dwLogotypeImageInfoChoice; - - DWORD dwFileSize; - DWORD dwXSize; - DWORD dwYSize; - - DWORD dwLogotypeImageResolutionChoice; - union { - - - - - DWORD dwNumBits; - - - DWORD dwTableSize; - } ; - LPWSTR pwszLanguage; - -} CERT_LOGOTYPE_IMAGE_INFO, *PCERT_LOGOTYPE_IMAGE_INFO; -# 5488 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_LOGOTYPE_IMAGE { - CERT_LOGOTYPE_DETAILS LogotypeDetails; - - PCERT_LOGOTYPE_IMAGE_INFO pLogotypeImageInfo; -} CERT_LOGOTYPE_IMAGE, *PCERT_LOGOTYPE_IMAGE; - - -typedef struct _CERT_LOGOTYPE_AUDIO_INFO { - DWORD dwFileSize; - DWORD dwPlayTime; - DWORD dwChannels; - DWORD dwSampleRate; - - LPWSTR pwszLanguage; - -} CERT_LOGOTYPE_AUDIO_INFO, *PCERT_LOGOTYPE_AUDIO_INFO; - -typedef struct _CERT_LOGOTYPE_AUDIO { - CERT_LOGOTYPE_DETAILS LogotypeDetails; - - PCERT_LOGOTYPE_AUDIO_INFO pLogotypeAudioInfo; -} CERT_LOGOTYPE_AUDIO, *PCERT_LOGOTYPE_AUDIO; - - -typedef struct _CERT_LOGOTYPE_DATA { - DWORD cLogotypeImage; - PCERT_LOGOTYPE_IMAGE rgLogotypeImage; - - DWORD cLogotypeAudio; - PCERT_LOGOTYPE_AUDIO rgLogotypeAudio; -} CERT_LOGOTYPE_DATA, *PCERT_LOGOTYPE_DATA; - - -typedef struct _CERT_LOGOTYPE_INFO { - DWORD dwLogotypeInfoChoice; - union { - - PCERT_LOGOTYPE_DATA pLogotypeDirectInfo; - - - PCERT_LOGOTYPE_REFERENCE pLogotypeIndirectInfo; - } ; -} CERT_LOGOTYPE_INFO, *PCERT_LOGOTYPE_INFO; - - - - -typedef struct _CERT_OTHER_LOGOTYPE_INFO { - LPSTR pszObjId; - CERT_LOGOTYPE_INFO LogotypeInfo; -} CERT_OTHER_LOGOTYPE_INFO, *PCERT_OTHER_LOGOTYPE_INFO; - - - - -typedef struct _CERT_LOGOTYPE_EXT_INFO { - DWORD cCommunityLogo; - PCERT_LOGOTYPE_INFO rgCommunityLogo; - PCERT_LOGOTYPE_INFO pIssuerLogo; - PCERT_LOGOTYPE_INFO pSubjectLogo; - DWORD cOtherLogo; - PCERT_OTHER_LOGOTYPE_INFO rgOtherLogo; -} CERT_LOGOTYPE_EXT_INFO, *PCERT_LOGOTYPE_EXT_INFO; -# 5562 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_BIOMETRIC_DATA { - DWORD dwTypeOfBiometricDataChoice; - union { - - DWORD dwPredefined; - - - LPSTR pszObjId; - } ; - - CERT_HASHED_URL HashedUrl; -} CERT_BIOMETRIC_DATA, *PCERT_BIOMETRIC_DATA; -# 5582 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_BIOMETRIC_EXT_INFO { - DWORD cBiometricData; - PCERT_BIOMETRIC_DATA rgBiometricData; -} CERT_BIOMETRIC_EXT_INFO, *PCERT_BIOMETRIC_EXT_INFO; -# 5602 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _OCSP_SIGNATURE_INFO { - CRYPT_ALGORITHM_IDENTIFIER SignatureAlgorithm; - CRYPT_BIT_BLOB Signature; - DWORD cCertEncoded; - PCERT_BLOB rgCertEncoded; -} OCSP_SIGNATURE_INFO, *POCSP_SIGNATURE_INFO; - -typedef struct _OCSP_SIGNED_REQUEST_INFO { - CRYPT_DER_BLOB ToBeSigned; - POCSP_SIGNATURE_INFO pOptionalSignatureInfo; -} OCSP_SIGNED_REQUEST_INFO, *POCSP_SIGNED_REQUEST_INFO; - - - - - - - -typedef struct _OCSP_CERT_ID { - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; - CRYPT_HASH_BLOB IssuerNameHash; - CRYPT_HASH_BLOB IssuerKeyHash; - CRYPT_INTEGER_BLOB SerialNumber; -} OCSP_CERT_ID, *POCSP_CERT_ID; - -typedef struct _OCSP_REQUEST_ENTRY { - OCSP_CERT_ID CertId; - DWORD cExtension; - PCERT_EXTENSION rgExtension; -} OCSP_REQUEST_ENTRY, *POCSP_REQUEST_ENTRY; - -typedef struct _OCSP_REQUEST_INFO { - DWORD dwVersion; - PCERT_ALT_NAME_ENTRY pRequestorName; - DWORD cRequestEntry; - POCSP_REQUEST_ENTRY rgRequestEntry; - DWORD cExtension; - PCERT_EXTENSION rgExtension; -} OCSP_REQUEST_INFO, *POCSP_REQUEST_INFO; -# 5649 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _OCSP_RESPONSE_INFO { - DWORD dwStatus; - LPSTR pszObjId; - CRYPT_OBJID_BLOB Value; -} OCSP_RESPONSE_INFO, *POCSP_RESPONSE_INFO; -# 5672 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _OCSP_BASIC_SIGNED_RESPONSE_INFO { - CRYPT_DER_BLOB ToBeSigned; - OCSP_SIGNATURE_INFO SignatureInfo; -} OCSP_BASIC_SIGNED_RESPONSE_INFO, *POCSP_BASIC_SIGNED_RESPONSE_INFO; - - - - - - - -typedef struct _OCSP_BASIC_REVOKED_INFO { - FILETIME RevocationDate; - - - DWORD dwCrlReasonCode; -} OCSP_BASIC_REVOKED_INFO, *POCSP_BASIC_REVOKED_INFO; - -typedef struct _OCSP_BASIC_RESPONSE_ENTRY { - OCSP_CERT_ID CertId; - DWORD dwCertStatus; - union { - - - - - - POCSP_BASIC_REVOKED_INFO pRevokedInfo; - - } ; - FILETIME ThisUpdate; - FILETIME NextUpdate; - - DWORD cExtension; - PCERT_EXTENSION rgExtension; -} OCSP_BASIC_RESPONSE_ENTRY, *POCSP_BASIC_RESPONSE_ENTRY; - - - - - - -typedef struct _OCSP_BASIC_RESPONSE_INFO { - DWORD dwVersion; - DWORD dwResponderIdChoice; - union { - - CERT_NAME_BLOB ByNameResponderId; - - CRYPT_HASH_BLOB ByKeyResponderId; - } ; - FILETIME ProducedAt; - DWORD cResponseEntry; - POCSP_BASIC_RESPONSE_ENTRY rgResponseEntry; - DWORD cExtension; - PCERT_EXTENSION rgExtension; -} OCSP_BASIC_RESPONSE_INFO, *POCSP_BASIC_RESPONSE_INFO; -# 5745 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_SUPPORTED_ALGORITHM_INFO { - CRYPT_ALGORITHM_IDENTIFIER Algorithm; - CRYPT_BIT_BLOB IntendedKeyUsage; - CERT_POLICIES_INFO IntendedCertPolicies; -} CERT_SUPPORTED_ALGORITHM_INFO, *PCERT_SUPPORTED_ALGORITHM_INFO; - - - - - - -typedef struct _CERT_TPM_SPECIFICATION_INFO { - LPWSTR pwszFamily; - DWORD dwLevel; - DWORD dwRevision; -} CERT_TPM_SPECIFICATION_INFO, *PCERT_TPM_SPECIFICATION_INFO; -# 5774 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef void *HCRYPTOIDFUNCSET; -typedef void *HCRYPTOIDFUNCADDR; -# 5851 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_OID_FUNC_ENTRY { - LPCSTR pszOID; - void *pvFuncAddr; -} CRYPT_OID_FUNC_ENTRY, *PCRYPT_OID_FUNC_ENTRY; -# 5873 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptInstallOIDFunctionAddress( - HMODULE hModule, - DWORD dwEncodingType, - LPCSTR pszFuncName, - DWORD cFuncEntry, - const CRYPT_OID_FUNC_ENTRY rgFuncEntry[], - DWORD dwFlags - ); - - - - - - - -__declspec(dllimport) -HCRYPTOIDFUNCSET -__stdcall -CryptInitOIDFunctionSet( - LPCSTR pszFuncName, - DWORD dwFlags - ); -# 5917 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CryptGetOIDFunctionAddress( - HCRYPTOIDFUNCSET hFuncSet, - DWORD dwEncodingType, - LPCSTR pszOID, - DWORD dwFlags, - void **ppvFuncAddr, - HCRYPTOIDFUNCADDR *phFuncAddr - ); -# 5940 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CryptGetDefaultOIDDllList( - HCRYPTOIDFUNCSET hFuncSet, - DWORD dwEncodingType, - WCHAR *pwszDllList, - DWORD *pcchDllList - ); -# 5974 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CryptGetDefaultOIDFunctionAddress( - HCRYPTOIDFUNCSET hFuncSet, - DWORD dwEncodingType, - LPCWSTR pwszDll, - DWORD dwFlags, - void **ppvFuncAddr, - HCRYPTOIDFUNCADDR *phFuncAddr - ); -# 6000 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptFreeOIDFunctionAddress( - HCRYPTOIDFUNCADDR hFuncAddr, - DWORD dwFlags - ); -# 6028 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptRegisterOIDFunction( - DWORD dwEncodingType, - LPCSTR pszFuncName, - LPCSTR pszOID, - LPCWSTR pwszDll, - LPCSTR pszOverrideFuncName - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptUnregisterOIDFunction( - DWORD dwEncodingType, - LPCSTR pszFuncName, - LPCSTR pszOID - ); -# 6066 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptRegisterDefaultOIDFunction( - DWORD dwEncodingType, - LPCSTR pszFuncName, - DWORD dwIndex, - LPCWSTR pwszDll - ); -# 6083 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptUnregisterDefaultOIDFunction( - DWORD dwEncodingType, - LPCSTR pszFuncName, - LPCWSTR pwszDll - ); -# 6100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptSetOIDFunctionValue( - DWORD dwEncodingType, - LPCSTR pszFuncName, - LPCSTR pszOID, - LPCWSTR pwszValueName, - DWORD dwValueType, - const BYTE *pbValueData, - DWORD cbValueData - ); -# 6128 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptGetOIDFunctionValue( - DWORD dwEncodingType, - LPCSTR pszFuncName, - LPCSTR pszOID, - LPCWSTR pwszValueName, - DWORD *pdwValueType, - BYTE *pbValueData, - DWORD *pcbValueData - ); - -typedef BOOL (__stdcall *PFN_CRYPT_ENUM_OID_FUNC)( - DWORD dwEncodingType, - LPCSTR pszFuncName, - LPCSTR pszOID, - DWORD cValue, - const DWORD rgdwValueType[], - LPCWSTR const rgpwszValueName[], - const BYTE * const rgpbValueData[], - const DWORD rgcbValueData[], - void *pvArg - ); -# 6166 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptEnumOIDFunction( - DWORD dwEncodingType, - LPCSTR pszFuncName, - LPCSTR pszOID, - DWORD dwFlags, - void *pvArg, - PFN_CRYPT_ENUM_OID_FUNC pfnEnumOIDFunc - ); -# 6212 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_OID_INFO { - DWORD cbSize; - LPCSTR pszOID; - LPCWSTR pwszName; - DWORD dwGroupId; - union { - DWORD dwValue; - ALG_ID Algid; - DWORD dwLength; - } ; - CRYPT_DATA_BLOB ExtraInfo; -# 6250 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -} CRYPT_OID_INFO, *PCRYPT_OID_INFO; -typedef const CRYPT_OID_INFO CCRYPT_OID_INFO, *PCCRYPT_OID_INFO; -# 6346 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCRYPT_OID_INFO -__stdcall -CryptFindOIDInfo( - DWORD dwKeyType, - void *pvKey, - DWORD dwGroupId - ); -# 6422 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptRegisterOIDInfo( - PCCRYPT_OID_INFO pInfo, - DWORD dwFlags - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptUnregisterOIDInfo( - PCCRYPT_OID_INFO pInfo - ); -# 6450 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CRYPT_ENUM_OID_INFO)( - PCCRYPT_OID_INFO pInfo, - void *pvArg - ); -# 6465 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptEnumOIDInfo( - DWORD dwGroupId, - DWORD dwFlags, - void *pvArg, - PFN_CRYPT_ENUM_OID_INFO pfnEnumOIDInfo - ); -# 6498 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -LPCWSTR -__stdcall -CryptFindLocalizedName( - LPCWSTR pwszCryptName - ); -# 6512 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_STRONG_SIGN_SERIALIZED_INFO { - DWORD dwFlags; - LPWSTR pwszCNGSignHashAlgids; - LPWSTR pwszCNGPubKeyMinBitLengths; -} CERT_STRONG_SIGN_SERIALIZED_INFO, *PCERT_STRONG_SIGN_SERIALIZED_INFO; -# 6540 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_STRONG_SIGN_PARA { - DWORD cbSize; - - DWORD dwInfoChoice; - union { - void *pvInfo; - - - PCERT_STRONG_SIGN_SERIALIZED_INFO pSerializedInfo; - - - LPSTR pszOID; - - } ; -} CERT_STRONG_SIGN_PARA, *PCERT_STRONG_SIGN_PARA; - -typedef const CERT_STRONG_SIGN_PARA *PCCERT_STRONG_SIGN_PARA; -# 6629 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef void *HCRYPTMSG; -# 6666 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_ISSUER_SERIAL_NUMBER { - CERT_NAME_BLOB Issuer; - CRYPT_INTEGER_BLOB SerialNumber; -} CERT_ISSUER_SERIAL_NUMBER, *PCERT_ISSUER_SERIAL_NUMBER; - - - - -typedef struct _CERT_ID { - DWORD dwIdChoice; - union { - - CERT_ISSUER_SERIAL_NUMBER IssuerSerialNumber; - - CRYPT_HASH_BLOB KeyId; - - CRYPT_HASH_BLOB HashId; - } ; -} CERT_ID, *PCERT_ID; -# 6738 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_SIGNER_ENCODE_INFO { - DWORD cbSize; - PCERT_INFO pCertInfo; - - - union { - HCRYPTPROV hCryptProv; - NCRYPT_KEY_HANDLE hNCryptKey; - - - - } ; - - - DWORD dwKeySpec; - - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; - void *pvHashAuxInfo; - DWORD cAuthAttr; - PCRYPT_ATTRIBUTE rgAuthAttr; - DWORD cUnauthAttr; - PCRYPT_ATTRIBUTE rgUnauthAttr; -# 6768 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -} CMSG_SIGNER_ENCODE_INFO, *PCMSG_SIGNER_ENCODE_INFO; - -typedef struct _CMSG_SIGNED_ENCODE_INFO { - DWORD cbSize; - DWORD cSigners; - PCMSG_SIGNER_ENCODE_INFO rgSigners; - DWORD cCertEncoded; - PCERT_BLOB rgCertEncoded; - DWORD cCrlEncoded; - PCRL_BLOB rgCrlEncoded; - - - - - -} CMSG_SIGNED_ENCODE_INFO, *PCMSG_SIGNED_ENCODE_INFO; -# 6828 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_RECIPIENT_ENCODE_INFO CMSG_RECIPIENT_ENCODE_INFO, - *PCMSG_RECIPIENT_ENCODE_INFO; - -typedef struct _CMSG_ENVELOPED_ENCODE_INFO { - DWORD cbSize; - HCRYPTPROV_LEGACY hCryptProv; - CRYPT_ALGORITHM_IDENTIFIER ContentEncryptionAlgorithm; - void *pvEncryptionAuxInfo; - DWORD cRecipients; - - - - - PCERT_INFO *rgpRecipients; -# 6856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -} CMSG_ENVELOPED_ENCODE_INFO, *PCMSG_ENVELOPED_ENCODE_INFO; -# 6879 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO { - DWORD cbSize; - CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; - void *pvKeyEncryptionAuxInfo; - HCRYPTPROV_LEGACY hCryptProv; - CRYPT_BIT_BLOB RecipientPublicKey; - CERT_ID RecipientId; -} CMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO, *PCMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO; -# 6928 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO { - DWORD cbSize; - CRYPT_BIT_BLOB RecipientPublicKey; - CERT_ID RecipientId; - - - - FILETIME Date; - PCRYPT_ATTRIBUTE_TYPE_VALUE pOtherAttr; -} CMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO, - *PCMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO; - -typedef struct _CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO { - DWORD cbSize; - CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; - void *pvKeyEncryptionAuxInfo; - CRYPT_ALGORITHM_IDENTIFIER KeyWrapAlgorithm; - void *pvKeyWrapAuxInfo; - - - - - - - - HCRYPTPROV_LEGACY hCryptProv; - DWORD dwKeySpec; - - DWORD dwKeyChoice; - union { - - - - PCRYPT_ALGORITHM_IDENTIFIER pEphemeralAlgorithm; - - - - - PCERT_ID pSenderId; - } ; - CRYPT_DATA_BLOB UserKeyingMaterial; - - DWORD cRecipientEncryptedKeys; - PCMSG_RECIPIENT_ENCRYPTED_KEY_ENCODE_INFO *rgpRecipientEncryptedKeys; -} CMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO, *PCMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO; -# 6996 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO { - DWORD cbSize; - CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; - void *pvKeyEncryptionAuxInfo; - HCRYPTPROV hCryptProv; - DWORD dwKeyChoice; - union { - - HCRYPTKEY hKeyEncryptionKey; - - void *pvKeyEncryptionKey; - } ; - CRYPT_DATA_BLOB KeyId; - - - FILETIME Date; - PCRYPT_ATTRIBUTE_TYPE_VALUE pOtherAttr; -} CMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO, *PCMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO; -# 7022 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -struct _CMSG_RECIPIENT_ENCODE_INFO { - DWORD dwRecipientChoice; - union { - - PCMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO pKeyTrans; - - PCMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO pKeyAgree; - - PCMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO pMailList; - } ; -}; -# 7054 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_RC2_AUX_INFO { - DWORD cbSize; - DWORD dwBitLen; -} CMSG_RC2_AUX_INFO, *PCMSG_RC2_AUX_INFO; -# 7072 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_SP3_COMPATIBLE_AUX_INFO { - DWORD cbSize; - DWORD dwFlags; -} CMSG_SP3_COMPATIBLE_AUX_INFO, *PCMSG_SP3_COMPATIBLE_AUX_INFO; -# 7094 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_RC4_AUX_INFO { - DWORD cbSize; - DWORD dwBitLen; -} CMSG_RC4_AUX_INFO, *PCMSG_RC4_AUX_INFO; -# 7108 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO { - DWORD cbSize; - CMSG_SIGNED_ENCODE_INFO SignedInfo; - CMSG_ENVELOPED_ENCODE_INFO EnvelopedInfo; -} CMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO, *PCMSG_SIGNED_AND_ENVELOPED_ENCODE_INFO; -# 7130 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_HASHED_ENCODE_INFO { - DWORD cbSize; - HCRYPTPROV_LEGACY hCryptProv; - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; - void *pvHashAuxInfo; -} CMSG_HASHED_ENCODE_INFO, *PCMSG_HASHED_ENCODE_INFO; -# 7147 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_ENCRYPTED_ENCODE_INFO { - DWORD cbSize; - CRYPT_ALGORITHM_IDENTIFIER ContentEncryptionAlgorithm; - void *pvEncryptionAuxInfo; -} CMSG_ENCRYPTED_ENCODE_INFO, *PCMSG_ENCRYPTED_ENCODE_INFO; -# 7168 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CMSG_STREAM_OUTPUT)( - const void *pvArg, - BYTE *pbData, - DWORD cbData, - BOOL fFinal - ); - - - -typedef struct _CMSG_STREAM_INFO { - DWORD cbContent; - PFN_CMSG_STREAM_OUTPUT pfnStreamOutput; - void *pvArg; -} CMSG_STREAM_INFO, *PCMSG_STREAM_INFO; -# 7221 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -HCRYPTMSG -__stdcall -CryptMsgOpenToEncode( - DWORD dwMsgEncodingType, - DWORD dwFlags, - DWORD dwMsgType, - void const *pvMsgEncodeInfo, - LPSTR pszInnerContentObjID, - PCMSG_STREAM_INFO pStreamInfo - ); -# 7241 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -DWORD -__stdcall -CryptMsgCalculateEncodedLength( - DWORD dwMsgEncodingType, - DWORD dwFlags, - DWORD dwMsgType, - void const *pvMsgEncodeInfo, - LPSTR pszInnerContentObjID, - DWORD cbData - ); -# 7265 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -HCRYPTMSG -__stdcall -CryptMsgOpenToDecode( - DWORD dwMsgEncodingType, - DWORD dwFlags, - DWORD dwMsgType, - HCRYPTPROV_LEGACY hCryptProv, - PCERT_INFO pRecipientInfo, - PCMSG_STREAM_INFO pStreamInfo - ); - - - - -__declspec(dllimport) -HCRYPTMSG -__stdcall -CryptMsgDuplicate( - HCRYPTMSG hCryptMsg - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptMsgClose( - HCRYPTMSG hCryptMsg - ); -# 7308 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptMsgUpdate( - HCRYPTMSG hCryptMsg, - const BYTE *pbData, - DWORD cbData, - BOOL fFinal - ); -# 7342 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptMsgGetParam( - HCRYPTMSG hCryptMsg, - DWORD dwParamType, - DWORD dwIndex, - void *pvData, - DWORD *pcbData - ); -# 7477 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_SIGNER_INFO { - DWORD dwVersion; - CERT_NAME_BLOB Issuer; - CRYPT_INTEGER_BLOB SerialNumber; - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; - - - CRYPT_ALGORITHM_IDENTIFIER HashEncryptionAlgorithm; - - CRYPT_DATA_BLOB EncryptedHash; - CRYPT_ATTRIBUTES AuthAttrs; - CRYPT_ATTRIBUTES UnauthAttrs; -} CMSG_SIGNER_INFO, *PCMSG_SIGNER_INFO; -# 7512 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_CMS_SIGNER_INFO { - DWORD dwVersion; - CERT_ID SignerId; - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; - - - CRYPT_ALGORITHM_IDENTIFIER HashEncryptionAlgorithm; - - CRYPT_DATA_BLOB EncryptedHash; - CRYPT_ATTRIBUTES AuthAttrs; - CRYPT_ATTRIBUTES UnauthAttrs; -} CMSG_CMS_SIGNER_INFO, *PCMSG_CMS_SIGNER_INFO; -# 7545 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef CRYPT_ATTRIBUTES CMSG_ATTR; -typedef CRYPT_ATTRIBUTES *PCMSG_ATTR; -# 7786 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_KEY_TRANS_RECIPIENT_INFO { - DWORD dwVersion; - - - CERT_ID RecipientId; - - CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; - CRYPT_DATA_BLOB EncryptedKey; -} CMSG_KEY_TRANS_RECIPIENT_INFO, *PCMSG_KEY_TRANS_RECIPIENT_INFO; - -typedef struct _CMSG_RECIPIENT_ENCRYPTED_KEY_INFO { - - CERT_ID RecipientId; - - CRYPT_DATA_BLOB EncryptedKey; - - - FILETIME Date; - PCRYPT_ATTRIBUTE_TYPE_VALUE pOtherAttr; -} CMSG_RECIPIENT_ENCRYPTED_KEY_INFO, *PCMSG_RECIPIENT_ENCRYPTED_KEY_INFO; - -typedef struct _CMSG_KEY_AGREE_RECIPIENT_INFO { - DWORD dwVersion; - DWORD dwOriginatorChoice; - union { - - CERT_ID OriginatorCertId; - - CERT_PUBLIC_KEY_INFO OriginatorPublicKeyInfo; - } ; - CRYPT_DATA_BLOB UserKeyingMaterial; - CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; - - DWORD cRecipientEncryptedKeys; - PCMSG_RECIPIENT_ENCRYPTED_KEY_INFO *rgpRecipientEncryptedKeys; -} CMSG_KEY_AGREE_RECIPIENT_INFO, *PCMSG_KEY_AGREE_RECIPIENT_INFO; - - - - - -typedef struct _CMSG_MAIL_LIST_RECIPIENT_INFO { - DWORD dwVersion; - CRYPT_DATA_BLOB KeyId; - CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; - CRYPT_DATA_BLOB EncryptedKey; - - - FILETIME Date; - PCRYPT_ATTRIBUTE_TYPE_VALUE pOtherAttr; -} CMSG_MAIL_LIST_RECIPIENT_INFO, *PCMSG_MAIL_LIST_RECIPIENT_INFO; - -typedef struct _CMSG_CMS_RECIPIENT_INFO { - DWORD dwRecipientChoice; - union { - - PCMSG_KEY_TRANS_RECIPIENT_INFO pKeyTrans; - - PCMSG_KEY_AGREE_RECIPIENT_INFO pKeyAgree; - - PCMSG_MAIL_LIST_RECIPIENT_INFO pMailList; - } ; -} CMSG_CMS_RECIPIENT_INFO, *PCMSG_CMS_RECIPIENT_INFO; -# 7880 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptMsgControl( - HCRYPTMSG hCryptMsg, - DWORD dwFlags, - DWORD dwCtrlType, - void const *pvCtrlPara - ); -# 7959 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA { - DWORD cbSize; - HCRYPTPROV_LEGACY hCryptProv; - DWORD dwSignerIndex; - DWORD dwSignerType; - void *pvSigner; -} CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA, *PCMSG_CTRL_VERIFY_SIGNATURE_EX_PARA; -# 8012 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_CTRL_DECRYPT_PARA { - DWORD cbSize; - - - union { - HCRYPTPROV hCryptProv; - NCRYPT_KEY_HANDLE hNCryptKey; - } ; - - - DWORD dwKeySpec; - - DWORD dwRecipientIndex; -} CMSG_CTRL_DECRYPT_PARA, *PCMSG_CTRL_DECRYPT_PARA; -# 8052 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_CTRL_KEY_TRANS_DECRYPT_PARA { - DWORD cbSize; - - union { - HCRYPTPROV hCryptProv; - NCRYPT_KEY_HANDLE hNCryptKey; - } ; - - - DWORD dwKeySpec; - - PCMSG_KEY_TRANS_RECIPIENT_INFO pKeyTrans; - DWORD dwRecipientIndex; -} CMSG_CTRL_KEY_TRANS_DECRYPT_PARA, *PCMSG_CTRL_KEY_TRANS_DECRYPT_PARA; -# 8096 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_CTRL_KEY_AGREE_DECRYPT_PARA { - DWORD cbSize; - - - union { - HCRYPTPROV hCryptProv; - NCRYPT_KEY_HANDLE hNCryptKey; - } ; - - - DWORD dwKeySpec; - - PCMSG_KEY_AGREE_RECIPIENT_INFO pKeyAgree; - DWORD dwRecipientIndex; - DWORD dwRecipientEncryptedKeyIndex; - CRYPT_BIT_BLOB OriginatorPublicKey; -} CMSG_CTRL_KEY_AGREE_DECRYPT_PARA, *PCMSG_CTRL_KEY_AGREE_DECRYPT_PARA; -# 8140 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_CTRL_MAIL_LIST_DECRYPT_PARA { - DWORD cbSize; - HCRYPTPROV hCryptProv; - PCMSG_MAIL_LIST_RECIPIENT_INFO pMailList; - DWORD dwRecipientIndex; - DWORD dwKeyChoice; - union { - - HCRYPTKEY hKeyEncryptionKey; - - void *pvKeyEncryptionKey; - } ; -} CMSG_CTRL_MAIL_LIST_DECRYPT_PARA, *PCMSG_CTRL_MAIL_LIST_DECRYPT_PARA; -# 8202 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA { - DWORD cbSize; - DWORD dwSignerIndex; - CRYPT_DATA_BLOB blob; -} CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA, *PCMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA; -# 8218 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA { - DWORD cbSize; - DWORD dwSignerIndex; - DWORD dwUnauthAttrIndex; -} CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA, *PCMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA; -# 8288 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -BOOL -__stdcall -CryptMsgVerifyCountersignatureEncoded( - HCRYPTPROV_LEGACY hCryptProv, - DWORD dwEncodingType, - PBYTE pbSignerInfo, - DWORD cbSignerInfo, - PBYTE pbSignerInfoCountersignature, - DWORD cbSignerInfoCountersignature, - PCERT_INFO pciCountersigner - ); -# 8311 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -BOOL -__stdcall -CryptMsgVerifyCountersignatureEncodedEx( - HCRYPTPROV_LEGACY hCryptProv, - DWORD dwEncodingType, - PBYTE pbSignerInfo, - DWORD cbSignerInfo, - PBYTE pbSignerInfoCountersignature, - DWORD cbSignerInfoCountersignature, - DWORD dwSignerType, - void *pvSigner, - DWORD dwFlags, - void *pvExtra - ); -# 8337 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -BOOL -__stdcall -CryptMsgCountersign( - HCRYPTMSG hCryptMsg, - DWORD dwIndex, - DWORD cCountersigners, - PCMSG_SIGNER_ENCODE_INFO rgCountersigners - ); - - - - - - - -BOOL -__stdcall -CryptMsgCountersignEncoded( - DWORD dwEncodingType, - PBYTE pbSignerInfo, - DWORD cbSignerInfo, - DWORD cCountersigners, - PCMSG_SIGNER_ENCODE_INFO rgCountersigners, - PBYTE pbCountersignature, - PDWORD pcbCountersignature - ); - - - - - -typedef void * (__stdcall *PFN_CMSG_ALLOC) ( - size_t cb - ); - -typedef void (__stdcall *PFN_CMSG_FREE)( - void *pv - ); -# 8389 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CMSG_GEN_ENCRYPT_KEY) ( - HCRYPTPROV *phCryptProv, - PCRYPT_ALGORITHM_IDENTIFIER paiEncrypt, - PVOID pvEncryptAuxInfo, - PCERT_PUBLIC_KEY_INFO pPublicKeyInfo, - PFN_CMSG_ALLOC pfnAlloc, - HCRYPTKEY *phEncryptKey, - PBYTE *ppbEncryptParameters, - PDWORD pcbEncryptParameters - ); - - -typedef BOOL (__stdcall *PFN_CMSG_EXPORT_ENCRYPT_KEY) ( - HCRYPTPROV hCryptProv, - HCRYPTKEY hEncryptKey, - PCERT_PUBLIC_KEY_INFO pPublicKeyInfo, - PBYTE pbData, - PDWORD pcbData - ); - - -typedef BOOL (__stdcall *PFN_CMSG_IMPORT_ENCRYPT_KEY) ( - HCRYPTPROV hCryptProv, - DWORD dwKeySpec, - PCRYPT_ALGORITHM_IDENTIFIER paiEncrypt, - PCRYPT_ALGORITHM_IDENTIFIER paiPubKey, - PBYTE pbEncodedKey, - DWORD cbEncodedKey, - HCRYPTKEY *phEncryptKey - ); -# 8443 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_CONTENT_ENCRYPT_INFO { - DWORD cbSize; - HCRYPTPROV_LEGACY hCryptProv; - CRYPT_ALGORITHM_IDENTIFIER ContentEncryptionAlgorithm; - void *pvEncryptionAuxInfo; - DWORD cRecipients; - PCMSG_RECIPIENT_ENCODE_INFO rgCmsRecipients; - PFN_CMSG_ALLOC pfnAlloc; - PFN_CMSG_FREE pfnFree; - DWORD dwEncryptFlags; - union { - - HCRYPTKEY hContentEncryptKey; - - BCRYPT_KEY_HANDLE hCNGContentEncryptKey; - } ; - DWORD dwFlags; - - BOOL fCNG; - - BYTE *pbCNGContentEncryptKeyObject; - BYTE *pbContentEncryptKey; - DWORD cbContentEncryptKey; -} CMSG_CONTENT_ENCRYPT_INFO, *PCMSG_CONTENT_ENCRYPT_INFO; -# 8531 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CMSG_GEN_CONTENT_ENCRYPT_KEY) ( - PCMSG_CONTENT_ENCRYPT_INFO pContentEncryptInfo, - DWORD dwFlags, - void *pvReserved - ); -# 8548 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_KEY_TRANS_ENCRYPT_INFO { - DWORD cbSize; - DWORD dwRecipientIndex; - CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; - CRYPT_DATA_BLOB EncryptedKey; - DWORD dwFlags; -} CMSG_KEY_TRANS_ENCRYPT_INFO, *PCMSG_KEY_TRANS_ENCRYPT_INFO; -# 8589 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CMSG_EXPORT_KEY_TRANS) ( - PCMSG_CONTENT_ENCRYPT_INFO pContentEncryptInfo, - PCMSG_KEY_TRANS_RECIPIENT_ENCODE_INFO pKeyTransEncodeInfo, - PCMSG_KEY_TRANS_ENCRYPT_INFO pKeyTransEncryptInfo, - DWORD dwFlags, - void *pvReserved - ); -# 8609 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_KEY_AGREE_KEY_ENCRYPT_INFO { - DWORD cbSize; - CRYPT_DATA_BLOB EncryptedKey; -} CMSG_KEY_AGREE_KEY_ENCRYPT_INFO, *PCMSG_KEY_AGREE_KEY_ENCRYPT_INFO; - - - - - - - -typedef struct _CMSG_KEY_AGREE_ENCRYPT_INFO { - DWORD cbSize; - DWORD dwRecipientIndex; - CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; - CRYPT_DATA_BLOB UserKeyingMaterial; - DWORD dwOriginatorChoice; - union { - - CERT_ID OriginatorCertId; - - CERT_PUBLIC_KEY_INFO OriginatorPublicKeyInfo; - } ; - DWORD cKeyAgreeKeyEncryptInfo; - PCMSG_KEY_AGREE_KEY_ENCRYPT_INFO *rgpKeyAgreeKeyEncryptInfo; - DWORD dwFlags; -} CMSG_KEY_AGREE_ENCRYPT_INFO, *PCMSG_KEY_AGREE_ENCRYPT_INFO; -# 8696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CMSG_EXPORT_KEY_AGREE) ( - PCMSG_CONTENT_ENCRYPT_INFO pContentEncryptInfo, - PCMSG_KEY_AGREE_RECIPIENT_ENCODE_INFO pKeyAgreeEncodeInfo, - PCMSG_KEY_AGREE_ENCRYPT_INFO pKeyAgreeEncryptInfo, - DWORD dwFlags, - void *pvReserved - ); -# 8715 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_MAIL_LIST_ENCRYPT_INFO { - DWORD cbSize; - DWORD dwRecipientIndex; - CRYPT_ALGORITHM_IDENTIFIER KeyEncryptionAlgorithm; - CRYPT_DATA_BLOB EncryptedKey; - DWORD dwFlags; -} CMSG_MAIL_LIST_ENCRYPT_INFO, *PCMSG_MAIL_LIST_ENCRYPT_INFO; -# 8757 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CMSG_EXPORT_MAIL_LIST) ( - PCMSG_CONTENT_ENCRYPT_INFO pContentEncryptInfo, - PCMSG_MAIL_LIST_RECIPIENT_ENCODE_INFO pMailListEncodeInfo, - PCMSG_MAIL_LIST_ENCRYPT_INFO pMailListEncryptInfo, - DWORD dwFlags, - void *pvReserved - ); -# 8786 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CMSG_IMPORT_KEY_TRANS) ( - PCRYPT_ALGORITHM_IDENTIFIER pContentEncryptionAlgorithm, - PCMSG_CTRL_KEY_TRANS_DECRYPT_PARA pKeyTransDecryptPara, - DWORD dwFlags, - void *pvReserved, - HCRYPTKEY *phContentEncryptKey - ); - - - -typedef BOOL (__stdcall *PFN_CMSG_IMPORT_KEY_AGREE) ( - PCRYPT_ALGORITHM_IDENTIFIER pContentEncryptionAlgorithm, - PCMSG_CTRL_KEY_AGREE_DECRYPT_PARA pKeyAgreeDecryptPara, - DWORD dwFlags, - void *pvReserved, - HCRYPTKEY *phContentEncryptKey - ); - - - -typedef BOOL (__stdcall *PFN_CMSG_IMPORT_MAIL_LIST) ( - PCRYPT_ALGORITHM_IDENTIFIER pContentEncryptionAlgorithm, - PCMSG_CTRL_MAIL_LIST_DECRYPT_PARA pMailListDecryptPara, - DWORD dwFlags, - void *pvReserved, - HCRYPTKEY *phContentEncryptKey - ); -# 8824 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CMSG_CNG_CONTENT_DECRYPT_INFO { - DWORD cbSize; - CRYPT_ALGORITHM_IDENTIFIER ContentEncryptionAlgorithm; - PFN_CMSG_ALLOC pfnAlloc; - PFN_CMSG_FREE pfnFree; - - - - - NCRYPT_KEY_HANDLE hNCryptKey; - - BYTE *pbContentEncryptKey; - DWORD cbContentEncryptKey; - - BCRYPT_KEY_HANDLE hCNGContentEncryptKey; - BYTE *pbCNGContentEncryptKeyObject; -} CMSG_CNG_CONTENT_DECRYPT_INFO, *PCMSG_CNG_CONTENT_DECRYPT_INFO; -# 8860 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CMSG_CNG_IMPORT_KEY_TRANS) ( - PCMSG_CNG_CONTENT_DECRYPT_INFO pCNGContentDecryptInfo, - PCMSG_CTRL_KEY_TRANS_DECRYPT_PARA pKeyTransDecryptPara, - DWORD dwFlags, - void *pvReserved - ); -# 8885 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CMSG_CNG_IMPORT_KEY_AGREE) ( - PCMSG_CNG_CONTENT_DECRYPT_INFO pCNGContentDecryptInfo, - PCMSG_CTRL_KEY_AGREE_DECRYPT_PARA pKeyAgreeDecryptPara, - DWORD dwFlags, - void *pvReserved - ); -# 8910 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CMSG_CNG_IMPORT_CONTENT_ENCRYPT_KEY) ( - PCMSG_CNG_CONTENT_DECRYPT_INFO pCNGContentDecryptInfo, - DWORD dwFlags, - void *pvReserved - ); -# 8990 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef void *HCERTSTORE; -# 9002 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_CONTEXT { - DWORD dwCertEncodingType; - BYTE *pbCertEncoded; - DWORD cbCertEncoded; - PCERT_INFO pCertInfo; - HCERTSTORE hCertStore; -} CERT_CONTEXT, *PCERT_CONTEXT; -typedef const CERT_CONTEXT *PCCERT_CONTEXT; -# 9021 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRL_CONTEXT { - DWORD dwCertEncodingType; - BYTE *pbCrlEncoded; - DWORD cbCrlEncoded; - PCRL_INFO pCrlInfo; - HCERTSTORE hCertStore; -} CRL_CONTEXT, *PCRL_CONTEXT; -typedef const CRL_CONTEXT *PCCRL_CONTEXT; -# 9040 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CTL_CONTEXT { - DWORD dwMsgAndCertEncodingType; - BYTE *pbCtlEncoded; - DWORD cbCtlEncoded; - PCTL_INFO pCtlInfo; - HCERTSTORE hCertStore; - HCRYPTMSG hCryptMsg; - BYTE *pbCtlContent; - DWORD cbCtlContent; -} CTL_CONTEXT, *PCTL_CONTEXT; -typedef const CTL_CONTEXT *PCCTL_CONTEXT; -# 9207 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef enum CertKeyType -{ - KeyTypeOther = 0, - KeyTypeVirtualSmartCard = 1, - KeyTypePhysicalSmartCard = 2, - KeyTypePassport = 3, - KeyTypePassportRemote = 4, - KeyTypePassportSmartCard = 5, - KeyTypeHardware = 6, - KeyTypeSoftware = 7, - KeyTypeSelfSigned = 8, -} CertKeyType; -# 9331 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_KEY_PROV_PARAM { - DWORD dwParam; - BYTE *pbData; - DWORD cbData; - DWORD dwFlags; -} CRYPT_KEY_PROV_PARAM, *PCRYPT_KEY_PROV_PARAM; - -typedef struct _CRYPT_KEY_PROV_INFO { - LPWSTR pwszContainerName; - LPWSTR pwszProvName; - DWORD dwProvType; - DWORD dwFlags; - DWORD cProvParam; - PCRYPT_KEY_PROV_PARAM rgProvParam; - DWORD dwKeySpec; -} CRYPT_KEY_PROV_INFO, *PCRYPT_KEY_PROV_INFO; -# 9371 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_KEY_CONTEXT { - DWORD cbSize; - union { - HCRYPTPROV hCryptProv; - - - NCRYPT_KEY_HANDLE hNCryptKey; - } ; - DWORD dwKeySpec; -} CERT_KEY_CONTEXT, *PCERT_KEY_CONTEXT; - - - - - - - -typedef struct _ROOT_INFO_LUID { - DWORD LowPart; - LONG HighPart; -} ROOT_INFO_LUID, *PROOT_INFO_LUID; - -typedef struct _CRYPT_SMART_CARD_ROOT_INFO { - BYTE rgbCardID [16]; - ROOT_INFO_LUID luid; -} CRYPT_SMART_CARD_ROOT_INFO, *PCRYPT_SMART_CARD_ROOT_INFO; -# 9497 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_SYSTEM_STORE_RELOCATE_PARA { - union { - HKEY hKeyBase; - void *pvBase; - } ; - union { - void *pvSystemStore; - LPCSTR pszSystemStore; - LPCWSTR pwszSystemStore; - } ; -} CERT_SYSTEM_STORE_RELOCATE_PARA, *PCERT_SYSTEM_STORE_RELOCATE_PARA; -# 9921 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_REGISTRY_STORE_CLIENT_GPT_PARA { - HKEY hKeyBase; - LPWSTR pwszRegPath; -} CERT_REGISTRY_STORE_CLIENT_GPT_PARA, *PCERT_REGISTRY_STORE_CLIENT_GPT_PARA; -# 9934 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_REGISTRY_STORE_ROAMING_PARA { - HKEY hKey; - LPWSTR pwszStoreDirectory; -} CERT_REGISTRY_STORE_ROAMING_PARA, *PCERT_REGISTRY_STORE_ROAMING_PARA; -# 10016 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_LDAP_STORE_OPENED_PARA { - void *pvLdapSessionHandle; - - LPCWSTR pwszLdapUrl; -} CERT_LDAP_STORE_OPENED_PARA, *PCERT_LDAP_STORE_OPENED_PARA; -# 10384 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -HCERTSTORE -__stdcall -CertOpenStore( - LPCSTR lpszStoreProvider, - DWORD dwEncodingType, - HCRYPTPROV_LEGACY hCryptProv, - DWORD dwFlags, - const void *pvPara - ); - - - - - - -typedef void *HCERTSTOREPROV; -# 10412 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_STORE_PROV_INFO { - DWORD cbSize; - DWORD cStoreProvFunc; - void **rgpvStoreProvFunc; - HCERTSTOREPROV hStoreProv; - DWORD dwStoreProvFlags; - HCRYPTOIDFUNCADDR hStoreProvFuncAddr2; -} CERT_STORE_PROV_INFO, *PCERT_STORE_PROV_INFO; -# 10428 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CERT_DLL_OPEN_STORE_PROV_FUNC)( - LPCSTR lpszStoreProvider, - DWORD dwEncodingType, - HCRYPTPROV_LEGACY hCryptProv, - DWORD dwFlags, - const void *pvPara, - HCERTSTORE hCertStore, - PCERT_STORE_PROV_INFO pStoreProvInfo - ); -# 10498 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef void (__stdcall *PFN_CERT_STORE_PROV_CLOSE)( - HCERTSTOREPROV hStoreProv, - DWORD dwFlags - ); - - - - - - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_READ_CERT)( - HCERTSTOREPROV hStoreProv, - PCCERT_CONTEXT pStoreCertContext, - DWORD dwFlags, - PCCERT_CONTEXT *ppProvCertContext - ); -# 10524 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_WRITE_CERT)( - HCERTSTOREPROV hStoreProv, - PCCERT_CONTEXT pCertContext, - DWORD dwFlags - ); - - - - - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_DELETE_CERT)( - HCERTSTOREPROV hStoreProv, - PCCERT_CONTEXT pCertContext, - DWORD dwFlags - ); -# 10548 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_SET_CERT_PROPERTY)( - HCERTSTOREPROV hStoreProv, - PCCERT_CONTEXT pCertContext, - DWORD dwPropId, - DWORD dwFlags, - const void *pvData - ); - - - - - - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_READ_CRL)( - HCERTSTOREPROV hStoreProv, - PCCRL_CONTEXT pStoreCrlContext, - DWORD dwFlags, - PCCRL_CONTEXT *ppProvCrlContext - ); -# 10575 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_WRITE_CRL)( - HCERTSTOREPROV hStoreProv, - PCCRL_CONTEXT pCrlContext, - DWORD dwFlags - ); - - - - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_DELETE_CRL)( - HCERTSTOREPROV hStoreProv, - PCCRL_CONTEXT pCrlContext, - DWORD dwFlags - ); -# 10598 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_SET_CRL_PROPERTY)( - HCERTSTOREPROV hStoreProv, - PCCRL_CONTEXT pCrlContext, - DWORD dwPropId, - DWORD dwFlags, - const void *pvData - ); - - - - - - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_READ_CTL)( - HCERTSTOREPROV hStoreProv, - PCCTL_CONTEXT pStoreCtlContext, - DWORD dwFlags, - PCCTL_CONTEXT *ppProvCtlContext - ); -# 10625 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_WRITE_CTL)( - HCERTSTOREPROV hStoreProv, - PCCTL_CONTEXT pCtlContext, - DWORD dwFlags - ); - - - - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_DELETE_CTL)( - HCERTSTOREPROV hStoreProv, - PCCTL_CONTEXT pCtlContext, - DWORD dwFlags - ); -# 10648 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_SET_CTL_PROPERTY)( - HCERTSTOREPROV hStoreProv, - PCCTL_CONTEXT pCtlContext, - DWORD dwPropId, - DWORD dwFlags, - const void *pvData - ); - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_CONTROL)( - HCERTSTOREPROV hStoreProv, - DWORD dwFlags, - DWORD dwCtrlType, - void const *pvCtrlPara - ); - -typedef struct _CERT_STORE_PROV_FIND_INFO { - DWORD cbSize; - DWORD dwMsgAndCertEncodingType; - DWORD dwFindFlags; - DWORD dwFindType; - const void *pvFindPara; -} CERT_STORE_PROV_FIND_INFO, *PCERT_STORE_PROV_FIND_INFO; -typedef const CERT_STORE_PROV_FIND_INFO CCERT_STORE_PROV_FIND_INFO, -*PCCERT_STORE_PROV_FIND_INFO; - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_FIND_CERT)( - HCERTSTOREPROV hStoreProv, - PCCERT_STORE_PROV_FIND_INFO pFindInfo, - PCCERT_CONTEXT pPrevCertContext, - DWORD dwFlags, - void **ppvStoreProvFindInfo, - PCCERT_CONTEXT *ppProvCertContext - ); - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_FREE_FIND_CERT)( - HCERTSTOREPROV hStoreProv, - PCCERT_CONTEXT pCertContext, - void *pvStoreProvFindInfo, - DWORD dwFlags - ); - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_GET_CERT_PROPERTY)( - HCERTSTOREPROV hStoreProv, - PCCERT_CONTEXT pCertContext, - DWORD dwPropId, - DWORD dwFlags, - void *pvData, - DWORD *pcbData - ); - - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_FIND_CRL)( - HCERTSTOREPROV hStoreProv, - PCCERT_STORE_PROV_FIND_INFO pFindInfo, - PCCRL_CONTEXT pPrevCrlContext, - DWORD dwFlags, - void **ppvStoreProvFindInfo, - PCCRL_CONTEXT *ppProvCrlContext - ); - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_FREE_FIND_CRL)( - HCERTSTOREPROV hStoreProv, - PCCRL_CONTEXT pCrlContext, - void *pvStoreProvFindInfo, - DWORD dwFlags - ); - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_GET_CRL_PROPERTY)( - HCERTSTOREPROV hStoreProv, - PCCRL_CONTEXT pCrlContext, - DWORD dwPropId, - DWORD dwFlags, - void *pvData, - DWORD *pcbData - ); - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_FIND_CTL)( - HCERTSTOREPROV hStoreProv, - PCCERT_STORE_PROV_FIND_INFO pFindInfo, - PCCTL_CONTEXT pPrevCtlContext, - DWORD dwFlags, - void **ppvStoreProvFindInfo, - PCCTL_CONTEXT *ppProvCtlContext - ); - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_FREE_FIND_CTL)( - HCERTSTOREPROV hStoreProv, - PCCTL_CONTEXT pCtlContext, - void *pvStoreProvFindInfo, - DWORD dwFlags - ); - -typedef BOOL (__stdcall *PFN_CERT_STORE_PROV_GET_CTL_PROPERTY)( - HCERTSTOREPROV hStoreProv, - PCCTL_CONTEXT pCtlContext, - DWORD dwPropId, - DWORD dwFlags, - void *pvData, - DWORD *pcbData - ); - - - - - -__declspec(dllimport) -HCERTSTORE -__stdcall -CertDuplicateStore( - HCERTSTORE hCertStore - ); -# 10822 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertSaveStore( - HCERTSTORE hCertStore, - DWORD dwEncodingType, - DWORD dwSaveAs, - DWORD dwSaveTo, - void *pvSaveToPara, - DWORD dwFlags - ); -# 10864 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertCloseStore( - HCERTSTORE hCertStore, - DWORD dwFlags - ); -# 10884 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCERT_CONTEXT -__stdcall -CertGetSubjectCertificateFromStore( - HCERTSTORE hCertStore, - DWORD dwCertEncodingType, - PCERT_INFO pCertId - - ); -# 10910 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCERT_CONTEXT -__stdcall -CertEnumCertificatesInStore( - HCERTSTORE hCertStore, - PCCERT_CONTEXT pPrevCertContext - ); -# 10942 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCERT_CONTEXT -__stdcall -CertFindCertificateInStore( - HCERTSTORE hCertStore, - DWORD dwCertEncodingType, - DWORD dwFindFlags, - DWORD dwFindType, - const void *pvFindPara, - PCCERT_CONTEXT pPrevCertContext - ); -# 11303 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCERT_CONTEXT -__stdcall -CertGetIssuerCertificateFromStore( - HCERTSTORE hCertStore, - PCCERT_CONTEXT pSubjectContext, - PCCERT_CONTEXT pPrevIssuerContext, - DWORD *pdwFlags - ); -# 11323 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertVerifySubjectCertificateContext( - PCCERT_CONTEXT pSubject, - PCCERT_CONTEXT pIssuer, - DWORD *pdwFlags - ); - - - - -__declspec(dllimport) -PCCERT_CONTEXT -__stdcall -CertDuplicateCertificateContext( - PCCERT_CONTEXT pCertContext - ); -# 11356 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCERT_CONTEXT -__stdcall -CertCreateCertificateContext( - DWORD dwCertEncodingType, - const BYTE *pbCertEncoded, - DWORD cbCertEncoded - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CertFreeCertificateContext( - PCCERT_CONTEXT pCertContext - ); -# 11519 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertSetCertificateContextProperty( - PCCERT_CONTEXT pCertContext, - DWORD dwPropId, - DWORD dwFlags, - const void *pvData - ); -# 11596 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertGetCertificateContextProperty( - PCCERT_CONTEXT pCertContext, - DWORD dwPropId, - void *pvData, - DWORD *pcbData - ); -# 11620 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -DWORD -__stdcall -CertEnumCertificateContextProperties( - PCCERT_CONTEXT pCertContext, - DWORD dwPropId - ); -# 11650 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CertCreateCTLEntryFromCertificateContextProperties( - PCCERT_CONTEXT pCertContext, - DWORD cOptAttr, - PCRYPT_ATTRIBUTE rgOptAttr, - DWORD dwFlags, - void *pvReserved, - PCTL_ENTRY pCtlEntry, - DWORD *pcbCtlEntry - ); -# 11679 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertSetCertificateContextPropertiesFromCTLEntry( - PCCERT_CONTEXT pCertContext, - PCTL_ENTRY pCtlEntry, - DWORD dwFlags - ); -# 11746 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCRL_CONTEXT -__stdcall -CertGetCRLFromStore( - HCERTSTORE hCertStore, - PCCERT_CONTEXT pIssuerContext, - PCCRL_CONTEXT pPrevCrlContext, - DWORD *pdwFlags - ); -# 11772 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCRL_CONTEXT -__stdcall -CertEnumCRLsInStore( - HCERTSTORE hCertStore, - PCCRL_CONTEXT pPrevCrlContext - ); -# 11803 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCRL_CONTEXT -__stdcall -CertFindCRLInStore( - HCERTSTORE hCertStore, - DWORD dwCertEncodingType, - DWORD dwFindFlags, - DWORD dwFindType, - const void *pvFindPara, - PCCRL_CONTEXT pPrevCrlContext - ); -# 11889 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRL_FIND_ISSUED_FOR_PARA { - PCCERT_CONTEXT pSubjectCert; - PCCERT_CONTEXT pIssuerCert; -} CRL_FIND_ISSUED_FOR_PARA, *PCRL_FIND_ISSUED_FOR_PARA; -# 11907 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCRL_CONTEXT -__stdcall -CertDuplicateCRLContext( - PCCRL_CONTEXT pCrlContext - ); -# 11928 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCRL_CONTEXT -__stdcall -CertCreateCRLContext( - DWORD dwCertEncodingType, - const BYTE *pbCrlEncoded, - DWORD cbCrlEncoded - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CertFreeCRLContext( - PCCRL_CONTEXT pCrlContext - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CertSetCRLContextProperty( - PCCRL_CONTEXT pCrlContext, - DWORD dwPropId, - DWORD dwFlags, - const void *pvData - ); -# 11973 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertGetCRLContextProperty( - PCCRL_CONTEXT pCrlContext, - DWORD dwPropId, - void *pvData, - DWORD *pcbData - ); -# 11993 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -DWORD -__stdcall -CertEnumCRLContextProperties( - PCCRL_CONTEXT pCrlContext, - DWORD dwPropId - ); -# 12014 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertFindCertificateInCRL( - PCCERT_CONTEXT pCert, - PCCRL_CONTEXT pCrlContext, - DWORD dwFlags, - void *pvReserved, - PCRL_ENTRY *ppCrlEntry - ); -# 12037 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertIsValidCRLForCertificate( - PCCERT_CONTEXT pCert, - PCCRL_CONTEXT pCrl, - DWORD dwFlags, - void *pvReserved - ); -# 12105 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CertAddEncodedCertificateToStore( - HCERTSTORE hCertStore, - DWORD dwCertEncodingType, - const BYTE *pbCertEncoded, - DWORD cbCertEncoded, - DWORD dwAddDisposition, - PCCERT_CONTEXT *ppCertContext - ); -# 12175 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CertAddCertificateContextToStore( - HCERTSTORE hCertStore, - PCCERT_CONTEXT pCertContext, - DWORD dwAddDisposition, - PCCERT_CONTEXT *ppStoreContext - ); -# 12229 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CertAddSerializedElementToStore( - HCERTSTORE hCertStore, - const BYTE *pbElement, - DWORD cbElement, - DWORD dwAddDisposition, - DWORD dwFlags, - DWORD dwContextTypeFlags, - DWORD *pdwContextType, - const void **ppvContext - ); -# 12259 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertDeleteCertificateFromStore( - PCCERT_CONTEXT pCertContext - ); -# 12282 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CertAddEncodedCRLToStore( - HCERTSTORE hCertStore, - DWORD dwCertEncodingType, - const BYTE *pbCrlEncoded, - DWORD cbCrlEncoded, - DWORD dwAddDisposition, - PCCRL_CONTEXT *ppCrlContext - ); -# 12315 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CertAddCRLContextToStore( - HCERTSTORE hCertStore, - PCCRL_CONTEXT pCrlContext, - DWORD dwAddDisposition, - PCCRL_CONTEXT *ppStoreContext - ); -# 12338 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertDeleteCRLFromStore( - PCCRL_CONTEXT pCrlContext - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -CertSerializeCertificateStoreElement( - PCCERT_CONTEXT pCertContext, - DWORD dwFlags, - BYTE *pbElement, - DWORD *pcbElement - ); - - - - - -__declspec(dllimport) -BOOL -__stdcall -CertSerializeCRLStoreElement( - PCCRL_CONTEXT pCrlContext, - DWORD dwFlags, - BYTE *pbElement, - DWORD *pcbElement - ); -# 12382 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCTL_CONTEXT -__stdcall -CertDuplicateCTLContext( - PCCTL_CONTEXT pCtlContext - ); -# 12403 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCTL_CONTEXT -__stdcall -CertCreateCTLContext( - DWORD dwMsgAndCertEncodingType, - const BYTE *pbCtlEncoded, - DWORD cbCtlEncoded - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CertFreeCTLContext( - PCCTL_CONTEXT pCtlContext - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CertSetCTLContextProperty( - PCCTL_CONTEXT pCtlContext, - DWORD dwPropId, - DWORD dwFlags, - const void *pvData - ); -# 12448 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertGetCTLContextProperty( - PCCTL_CONTEXT pCtlContext, - DWORD dwPropId, - void *pvData, - DWORD *pcbData - ); - - - - -__declspec(dllimport) -DWORD -__stdcall -CertEnumCTLContextProperties( - PCCTL_CONTEXT pCtlContext, - DWORD dwPropId - ); -# 12485 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCTL_CONTEXT -__stdcall -CertEnumCTLsInStore( - HCERTSTORE hCertStore, - PCCTL_CONTEXT pPrevCtlContext - ); -# 12511 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCTL_ENTRY -__stdcall -CertFindSubjectInCTL( - DWORD dwEncodingType, - DWORD dwSubjectType, - void *pvSubject, - PCCTL_CONTEXT pCtlContext, - DWORD dwFlags - ); - - - - - - - -typedef struct _CTL_ANY_SUBJECT_INFO { - CRYPT_ALGORITHM_IDENTIFIER SubjectAlgorithm; - CRYPT_DATA_BLOB SubjectIdentifier; -} CTL_ANY_SUBJECT_INFO, *PCTL_ANY_SUBJECT_INFO; -# 12556 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCTL_CONTEXT -__stdcall -CertFindCTLInStore( - HCERTSTORE hCertStore, - DWORD dwMsgAndCertEncodingType, - DWORD dwFindFlags, - DWORD dwFindType, - const void *pvFindPara, - PCCTL_CONTEXT pPrevCtlContext - ); -# 12575 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CTL_FIND_USAGE_PARA { - DWORD cbSize; - CTL_USAGE SubjectUsage; - CRYPT_DATA_BLOB ListIdentifier; - PCERT_INFO pSigner; -} CTL_FIND_USAGE_PARA, *PCTL_FIND_USAGE_PARA; - - - - - - - -typedef struct _CTL_FIND_SUBJECT_PARA { - DWORD cbSize; - PCTL_FIND_USAGE_PARA pUsagePara; - DWORD dwSubjectType; - void *pvSubject; -} CTL_FIND_SUBJECT_PARA, *PCTL_FIND_SUBJECT_PARA; -# 12661 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CertAddEncodedCTLToStore( - HCERTSTORE hCertStore, - DWORD dwMsgAndCertEncodingType, - const BYTE *pbCtlEncoded, - DWORD cbCtlEncoded, - DWORD dwAddDisposition, - PCCTL_CONTEXT *ppCtlContext - ); -# 12694 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CertAddCTLContextToStore( - HCERTSTORE hCertStore, - PCCTL_CONTEXT pCtlContext, - DWORD dwAddDisposition, - PCCTL_CONTEXT *ppStoreContext - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -CertSerializeCTLStoreElement( - PCCTL_CONTEXT pCtlContext, - DWORD dwFlags, - BYTE *pbElement, - DWORD *pcbElement - ); -# 12730 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertDeleteCTLFromStore( - PCCTL_CONTEXT pCtlContext - ); - - -__declspec(dllimport) - -BOOL -__stdcall -CertAddCertificateLinkToStore( - HCERTSTORE hCertStore, - PCCERT_CONTEXT pCertContext, - DWORD dwAddDisposition, - PCCERT_CONTEXT *ppStoreContext - ); - -__declspec(dllimport) - -BOOL -__stdcall -CertAddCRLLinkToStore( - HCERTSTORE hCertStore, - PCCRL_CONTEXT pCrlContext, - DWORD dwAddDisposition, - PCCRL_CONTEXT *ppStoreContext - ); - -__declspec(dllimport) - -BOOL -__stdcall -CertAddCTLLinkToStore( - HCERTSTORE hCertStore, - PCCTL_CONTEXT pCtlContext, - DWORD dwAddDisposition, - PCCTL_CONTEXT *ppStoreContext - ); - -__declspec(dllimport) -BOOL -__stdcall -CertAddStoreToCollection( - HCERTSTORE hCollectionStore, - HCERTSTORE hSiblingStore, - DWORD dwUpdateFlags, - DWORD dwPriority - ); - -__declspec(dllimport) -void -__stdcall -CertRemoveStoreFromCollection( - HCERTSTORE hCollectionStore, - HCERTSTORE hSiblingStore - ); - - -__declspec(dllimport) -BOOL -__stdcall -CertControlStore( - HCERTSTORE hCertStore, - DWORD dwFlags, - DWORD dwCtrlType, - void const *pvCtrlPara - ); -# 12926 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertSetStoreProperty( - HCERTSTORE hCertStore, - DWORD dwPropId, - DWORD dwFlags, - const void *pvData - ); -# 12949 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CertGetStoreProperty( - HCERTSTORE hCertStore, - DWORD dwPropId, - void *pvData, - DWORD *pcbData - ); -# 12971 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CERT_CREATE_CONTEXT_SORT_FUNC)( - DWORD cbTotalEncoded, - DWORD cbRemainEncoded, - DWORD cEntry, - void *pvSort - ); - -typedef struct _CERT_CREATE_CONTEXT_PARA { - DWORD cbSize; - PFN_CRYPT_FREE pfnFree; - void *pvFree; - - - - PFN_CERT_CREATE_CONTEXT_SORT_FUNC pfnSort; - void *pvSort; -} CERT_CREATE_CONTEXT_PARA, *PCERT_CREATE_CONTEXT_PARA; -# 13022 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -const void * -__stdcall -CertCreateContext( - DWORD dwContextType, - DWORD dwEncodingType, - const BYTE *pbEncoded, - DWORD cbEncoded, - DWORD dwFlags, - PCERT_CREATE_CONTEXT_PARA pCreatePara - ); -# 13082 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_SYSTEM_STORE_INFO { - DWORD cbSize; -} CERT_SYSTEM_STORE_INFO, *PCERT_SYSTEM_STORE_INFO; -# 13128 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_PHYSICAL_STORE_INFO { - DWORD cbSize; - LPSTR pszOpenStoreProvider; - DWORD dwOpenEncodingType; - DWORD dwOpenFlags; - CRYPT_DATA_BLOB OpenParameters; - DWORD dwFlags; - DWORD dwPriority; -} CERT_PHYSICAL_STORE_INFO, *PCERT_PHYSICAL_STORE_INFO; -# 13180 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertRegisterSystemStore( - const void *pvSystemStore, - DWORD dwFlags, - PCERT_SYSTEM_STORE_INFO pStoreInfo, - void *pvReserved - ); -# 13206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertRegisterPhysicalStore( - const void *pvSystemStore, - DWORD dwFlags, - LPCWSTR pwszStoreName, - PCERT_PHYSICAL_STORE_INFO pStoreInfo, - void *pvReserved - ); -# 13232 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertUnregisterSystemStore( - const void *pvSystemStore, - DWORD dwFlags - ); -# 13255 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertUnregisterPhysicalStore( - const void *pvSystemStore, - DWORD dwFlags, - LPCWSTR pwszStoreName - ); -# 13287 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CERT_ENUM_SYSTEM_STORE_LOCATION)( - LPCWSTR pwszStoreLocation, - DWORD dwFlags, - void *pvReserved, - void *pvArg - ); - -typedef BOOL (__stdcall *PFN_CERT_ENUM_SYSTEM_STORE)( - const void *pvSystemStore, - DWORD dwFlags, - PCERT_SYSTEM_STORE_INFO pStoreInfo, - void *pvReserved, - void *pvArg - ); - -typedef BOOL (__stdcall *PFN_CERT_ENUM_PHYSICAL_STORE)( - const void *pvSystemStore, - DWORD dwFlags, - LPCWSTR pwszStoreName, - PCERT_PHYSICAL_STORE_INFO pStoreInfo, - void *pvReserved, - void *pvArg - ); -# 13330 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertEnumSystemStoreLocation( - DWORD dwFlags, - void *pvArg, - PFN_CERT_ENUM_SYSTEM_STORE_LOCATION pfnEnum - ); -# 13370 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertEnumSystemStore( - DWORD dwFlags, - void *pvSystemStoreLocationPara, - void *pvArg, - PFN_CERT_ENUM_SYSTEM_STORE pfnEnum - ); -# 13396 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertEnumPhysicalStore( - const void *pvSystemStore, - DWORD dwFlags, - void *pvArg, - PFN_CERT_ENUM_PHYSICAL_STORE pfnEnum - ); -# 13458 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertGetEnhancedKeyUsage( - PCCERT_CONTEXT pCertContext, - DWORD dwFlags, - PCERT_ENHKEY_USAGE pUsage, - DWORD *pcbUsage - ); -# 13477 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertSetEnhancedKeyUsage( - PCCERT_CONTEXT pCertContext, - PCERT_ENHKEY_USAGE pUsage - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -CertAddEnhancedKeyUsageIdentifier( - PCCERT_CONTEXT pCertContext, - LPCSTR pszUsageIdentifier - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CertRemoveEnhancedKeyUsageIdentifier( - PCCERT_CONTEXT pCertContext, - LPCSTR pszUsageIdentifier - ); -# 13523 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CertGetValidUsages( - DWORD cCerts, - PCCERT_CONTEXT *rghCerts, - int *cNumOIDs, - LPSTR *rghOIDs, - DWORD *pcbOIDs); -# 13563 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CryptMsgGetAndVerifySigner( - HCRYPTMSG hCryptMsg, - DWORD cSignerStore, - HCERTSTORE *rghSignerStore, - DWORD dwFlags, - PCCERT_CONTEXT *ppSigner, - DWORD *pdwSignerIndex - ); -# 13595 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptMsgSignCTL( - DWORD dwMsgEncodingType, - BYTE *pbCtlContent, - DWORD cbCtlContent, - PCMSG_SIGNED_ENCODE_INFO pSignInfo, - DWORD dwFlags, - BYTE *pbEncoded, - DWORD *pcbEncoded - ); -# 13624 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptMsgEncodeAndSignCTL( - DWORD dwMsgEncodingType, - PCTL_INFO pCtlInfo, - PCMSG_SIGNED_ENCODE_INFO pSignInfo, - DWORD dwFlags, - BYTE *pbEncoded, - DWORD *pcbEncoded - ); -# 13651 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertFindSubjectInSortedCTL( - PCRYPT_DATA_BLOB pSubjectIdentifier, - PCCTL_CONTEXT pCtlContext, - DWORD dwFlags, - void *pvReserved, - PCRYPT_DER_BLOB pEncodedAttributes - ); -# 13675 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertEnumSubjectInSortedCTL( - PCCTL_CONTEXT pCtlContext, - void **ppvNextSubject, - PCRYPT_DER_BLOB pSubjectIdentifier, - PCRYPT_DER_BLOB pEncodedAttributes - ); -# 13696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CTL_VERIFY_USAGE_PARA { - DWORD cbSize; - CRYPT_DATA_BLOB ListIdentifier; - DWORD cCtlStore; - HCERTSTORE *rghCtlStore; - DWORD cSignerStore; - HCERTSTORE *rghSignerStore; -} CTL_VERIFY_USAGE_PARA, *PCTL_VERIFY_USAGE_PARA; - -typedef struct _CTL_VERIFY_USAGE_STATUS { - DWORD cbSize; - DWORD dwError; - DWORD dwFlags; - PCCTL_CONTEXT *ppCtl; - DWORD dwCtlEntryIndex; - PCCERT_CONTEXT *ppSigner; - DWORD dwSignerIndex; -} CTL_VERIFY_USAGE_STATUS, *PCTL_VERIFY_USAGE_STATUS; -# 13777 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertVerifyCTLUsage( - DWORD dwEncodingType, - DWORD dwSubjectType, - void *pvSubject, - PCTL_USAGE pSubjectUsage, - DWORD dwFlags, - PCTL_VERIFY_USAGE_PARA pVerifyUsagePara, - PCTL_VERIFY_USAGE_STATUS pVerifyUsageStatus - ); -# 13805 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_REVOCATION_CRL_INFO { - DWORD cbSize; - PCCRL_CONTEXT pBaseCrlContext; - PCCRL_CONTEXT pDeltaCrlContext; - - - - PCRL_ENTRY pCrlEntry; - BOOL fDeltaCrlEntry; -} CERT_REVOCATION_CRL_INFO, *PCERT_REVOCATION_CRL_INFO; -# 13825 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_REVOCATION_CHAIN_PARA - CERT_REVOCATION_CHAIN_PARA, - *PCERT_REVOCATION_CHAIN_PARA; -# 13846 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_REVOCATION_PARA { - DWORD cbSize; - PCCERT_CONTEXT pIssuerCert; - DWORD cCertStore; - HCERTSTORE *rgCertStore; - HCERTSTORE hCrlStore; - LPFILETIME pftTimeToUse; -# 13889 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -} CERT_REVOCATION_PARA, *PCERT_REVOCATION_PARA; -# 13907 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_REVOCATION_STATUS { - DWORD cbSize; - DWORD dwIndex; - DWORD dwError; - DWORD dwReason; -# 13921 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 - BOOL fHasFreshnessTime; - DWORD dwFreshnessTime; -} CERT_REVOCATION_STATUS, *PCERT_REVOCATION_STATUS; -# 14008 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertVerifyRevocation( - DWORD dwEncodingType, - DWORD dwRevType, - DWORD cContext, - PVOID rgpvContext[], - DWORD dwFlags, - PCERT_REVOCATION_PARA pRevPara, - PCERT_REVOCATION_STATUS pRevStatus - ); -# 14096 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -BOOL -__stdcall -CertCompareIntegerBlob( - PCRYPT_INTEGER_BLOB pInt1, - PCRYPT_INTEGER_BLOB pInt2 - ); -# 14111 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertCompareCertificate( - DWORD dwCertEncodingType, - PCERT_INFO pCertId1, - PCERT_INFO pCertId2 - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CertCompareCertificateName( - DWORD dwCertEncodingType, - PCERT_NAME_BLOB pCertName1, - PCERT_NAME_BLOB pCertName2 - ); -# 14158 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertIsRDNAttrsInCertificateName( - DWORD dwCertEncodingType, - DWORD dwFlags, - PCERT_NAME_BLOB pCertName, - PCERT_RDN pRDN - ); -# 14176 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertComparePublicKeyInfo( - DWORD dwCertEncodingType, - PCERT_PUBLIC_KEY_INFO pPublicKey1, - PCERT_PUBLIC_KEY_INFO pPublicKey2 - ); -# 14196 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -DWORD -__stdcall -CertGetPublicKeyLength( - DWORD dwCertEncodingType, - PCERT_PUBLIC_KEY_INFO pPublicKey - ); -# 14219 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CryptVerifyCertificateSignature( - HCRYPTPROV_LEGACY hCryptProv, - DWORD dwCertEncodingType, - const BYTE *pbEncoded, - DWORD cbEncoded, - PCERT_PUBLIC_KEY_INFO pPublicKey - ); -# 14256 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CryptVerifyCertificateSignatureEx( - HCRYPTPROV_LEGACY hCryptProv, - DWORD dwCertEncodingType, - DWORD dwSubjectType, - void *pvSubject, - DWORD dwIssuerType, - void *pvIssuer, - DWORD dwFlags, - void *pvExtra - ); -# 14336 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO { - - CRYPT_DATA_BLOB CertSignHashCNGAlgPropData; - - - CRYPT_DATA_BLOB CertIssuerPubKeyBitLengthPropData; -} CRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO, - *PCRYPT_VERIFY_CERT_SIGN_STRONG_PROPERTIES_INFO; - - -typedef struct _CRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO { - DWORD cCNGHashAlgid; - PCWSTR *rgpwszCNGHashAlgid; - - - - DWORD dwWeakIndex; -} CRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO, - *PCRYPT_VERIFY_CERT_SIGN_WEAK_HASH_INFO; -# 14378 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertIsStrongHashToSign( - PCCERT_STRONG_SIGN_PARA pStrongSignPara, - LPCWSTR pwszCNGHashAlgid, - PCCERT_CONTEXT pSigningCert - ); -# 14394 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptHashToBeSigned( - HCRYPTPROV_LEGACY hCryptProv, - DWORD dwCertEncodingType, - const BYTE *pbEncoded, - DWORD cbEncoded, - BYTE *pbComputedHash, - DWORD *pcbComputedHash - ); -# 14415 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptHashCertificate( - HCRYPTPROV_LEGACY hCryptProv, - ALG_ID Algid, - DWORD dwFlags, - const BYTE *pbEncoded, - DWORD cbEncoded, - BYTE *pbComputedHash, - DWORD *pcbComputedHash - ); -# 14439 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CryptHashCertificate2( - LPCWSTR pwszCNGHashAlgid, - DWORD dwFlags, - void *pvReserved, - const BYTE *pbEncoded, - DWORD cbEncoded, - BYTE *pbComputedHash, - DWORD *pcbComputedHash - ); -# 14472 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptSignCertificate( - - - - HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProvOrNCryptKey, - - DWORD dwKeySpec, - DWORD dwCertEncodingType, - const BYTE *pbEncodedToBeSigned, - DWORD cbEncodedToBeSigned, - PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, - const void *pvHashAuxInfo, - BYTE *pbSignature, - DWORD *pcbSignature - ); -# 14503 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptSignAndEncodeCertificate( - - - - HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProvOrNCryptKey, - - DWORD dwKeySpec, - DWORD dwCertEncodingType, - LPCSTR lpszStructType, - const void *pvStructInfo, - PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, - const void *pvHashAuxInfo, - BYTE *pbEncoded, - DWORD *pcbEncoded - ); -# 14547 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CRYPT_EXTRACT_ENCODED_SIGNATURE_PARAMETERS_FUNC)( - DWORD dwCertEncodingType, - PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, - void **ppvDecodedSignPara, - LPWSTR *ppwszCNGHashAlgid - ); - - - - -typedef BOOL (__stdcall *PFN_CRYPT_SIGN_AND_ENCODE_HASH_FUNC)( - NCRYPT_KEY_HANDLE hKey, - DWORD dwCertEncodingType, - PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, - void *pvDecodedSignPara, - LPCWSTR pwszCNGPubKeyAlgid, - LPCWSTR pwszCNGHashAlgid, - BYTE *pbComputedHash, - DWORD cbComputedHash, - BYTE *pbSignature, - DWORD *pcbSignature - ); - - - - - -typedef BOOL (__stdcall *PFN_CRYPT_VERIFY_ENCODED_SIGNATURE_FUNC)( - DWORD dwCertEncodingType, - PCERT_PUBLIC_KEY_INFO pPubKeyInfo, - PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, - void *pvDecodedSignPara, - LPCWSTR pwszCNGPubKeyAlgid, - LPCWSTR pwszCNGHashAlgid, - BYTE *pbComputedHash, - DWORD cbComputedHash, - BYTE *pbSignature, - DWORD cbSignature - ); -# 14596 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -LONG -__stdcall -CertVerifyTimeValidity( - LPFILETIME pTimeToVerify, - PCERT_INFO pCertInfo - ); -# 14618 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -LONG -__stdcall -CertVerifyCRLTimeValidity( - LPFILETIME pTimeToVerify, - PCRL_INFO pCrlInfo - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CertVerifyValidityNesting( - PCERT_INFO pSubjectInfo, - PCERT_INFO pIssuerInfo - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CertVerifyCRLRevocation( - DWORD dwCertEncodingType, - PCERT_INFO pCertId, - - DWORD cCrlInfo, - PCRL_INFO rgpCrlInfo[] - ); - - - - - - -__declspec(dllimport) -LPCSTR -__stdcall -CertAlgIdToOID( - DWORD dwAlgId - ); - - - - - - -__declspec(dllimport) -DWORD -__stdcall -CertOIDToAlgId( - LPCSTR pszObjId - ); -# 14691 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCERT_EXTENSION -__stdcall -CertFindExtension( - LPCSTR pszObjId, - DWORD cExtensions, - CERT_EXTENSION rgExtensions[] - ); - - - - - - -__declspec(dllimport) -PCRYPT_ATTRIBUTE -__stdcall -CertFindAttribute( - LPCSTR pszObjId, - DWORD cAttr, - CRYPT_ATTRIBUTE rgAttr[] - ); - - - - - - - -__declspec(dllimport) -PCERT_RDN_ATTR -__stdcall -CertFindRDNAttr( - LPCSTR pszObjId, - PCERT_NAME_INFO pName - ); -# 14736 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertGetIntendedKeyUsage( - DWORD dwCertEncodingType, - PCERT_INFO pCertInfo, - BYTE *pbKeyUsage, - DWORD cbKeyUsage - ); - -typedef void *HCRYPTDEFAULTCONTEXT; -# 14781 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptInstallDefaultContext( - HCRYPTPROV hCryptProv, - DWORD dwDefaultType, - const void *pvDefaultPara, - DWORD dwFlags, - void *pvReserved, - HCRYPTDEFAULTCONTEXT *phDefaultContext - ); -# 14821 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA { - DWORD cOID; - LPSTR *rgpszOID; -} CRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA, *PCRYPT_DEFAULT_CONTEXT_MULTI_OID_PARA; -# 14834 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptUninstallDefaultContext( - HCRYPTDEFAULTCONTEXT hDefaultContext, - DWORD dwFlags, - void *pvReserved - ); -# 14850 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptExportPublicKeyInfo( - HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProvOrNCryptKey, - DWORD dwKeySpec, - DWORD dwCertEncodingType, - PCERT_PUBLIC_KEY_INFO pInfo, - DWORD *pcbInfo - ); -# 14885 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptExportPublicKeyInfoEx( - HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProvOrNCryptKey, - DWORD dwKeySpec, - DWORD dwCertEncodingType, - LPSTR pszPublicKeyObjId, - DWORD dwFlags, - void *pvAuxInfo, - PCERT_PUBLIC_KEY_INFO pInfo, - DWORD *pcbInfo - ); -# 14908 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CRYPT_EXPORT_PUBLIC_KEY_INFO_EX2_FUNC) ( - NCRYPT_KEY_HANDLE hNCryptKey, - DWORD dwCertEncodingType, - LPSTR pszPublicKeyObjId, - DWORD dwFlags, - void *pvAuxInfo, - PCERT_PUBLIC_KEY_INFO pInfo, - DWORD *pcbInfo - ); -# 14940 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptExportPublicKeyInfoFromBCryptKeyHandle( - BCRYPT_KEY_HANDLE hBCryptKey, - DWORD dwCertEncodingType, - LPSTR pszPublicKeyObjId, - DWORD dwFlags, - void *pvAuxInfo, - PCERT_PUBLIC_KEY_INFO pInfo, - DWORD *pcbInfo - ); -# 14960 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CRYPT_EXPORT_PUBLIC_KEY_INFO_FROM_BCRYPT_HANDLE_FUNC) ( - BCRYPT_KEY_HANDLE hBCryptKey, - DWORD dwCertEncodingType, - LPSTR pszPublicKeyObjId, - DWORD dwFlags, - void *pvAuxInfo, - PCERT_PUBLIC_KEY_INFO pInfo, - DWORD *pcbInfo - ); -# 14979 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptImportPublicKeyInfo( - HCRYPTPROV hCryptProv, - DWORD dwCertEncodingType, - PCERT_PUBLIC_KEY_INFO pInfo, - HCRYPTKEY *phKey - ); -# 15005 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptImportPublicKeyInfoEx( - HCRYPTPROV hCryptProv, - DWORD dwCertEncodingType, - PCERT_PUBLIC_KEY_INFO pInfo, - ALG_ID aiKeyAlg, - DWORD dwFlags, - void *pvAuxInfo, - HCRYPTKEY *phKey - ); -# 15041 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptImportPublicKeyInfoEx2( - DWORD dwCertEncodingType, - PCERT_PUBLIC_KEY_INFO pInfo, - DWORD dwFlags, - void *pvAuxInfo, - BCRYPT_KEY_HANDLE *phKey - ); - - - - - - -typedef BOOL (__stdcall *PFN_IMPORT_PUBLIC_KEY_INFO_EX2_FUNC) ( - DWORD dwCertEncodingType, - PCERT_PUBLIC_KEY_INFO pInfo, - DWORD dwFlags, - void *pvAuxInfo, - BCRYPT_KEY_HANDLE *phKey - ); -# 15157 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptAcquireCertificatePrivateKey( - PCCERT_CONTEXT pCert, - DWORD dwFlags, - void *pvParameters, - HCRYPTPROV_OR_NCRYPT_KEY_HANDLE *phCryptProvOrNCryptKey, - DWORD *pdwKeySpec, - BOOL *pfCallerFreeProvOrNCryptKey - ); -# 15211 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptFindCertificateKeyProvInfo( - PCCERT_CONTEXT pCert, - DWORD dwFlags, - void *pvReserved - ); -# 15239 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_IMPORT_PRIV_KEY_FUNC) ( - HCRYPTPROV hCryptProv, - CRYPT_PRIVATE_KEY_INFO* pPrivateKeyInfo, - DWORD dwFlags, - void* pvAuxInfo - ); -# 15266 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptImportPKCS8( - CRYPT_PKCS8_IMPORT_PARAMS sPrivateKeyAndParams, - DWORD dwFlags, - HCRYPTPROV *phCryptProv, - void* pvAuxInfo - ); - - - - -typedef BOOL (__stdcall *PFN_EXPORT_PRIV_KEY_FUNC) ( - HCRYPTPROV hCryptProv, - DWORD dwKeySpec, - LPSTR pszPrivateKeyObjId, - DWORD dwFlags, - void* pvAuxInfo, - CRYPT_PRIVATE_KEY_INFO* pPrivateKeyInfo, - DWORD* pcbPrivateKeyInfo - ); -# 15297 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptExportPKCS8( - HCRYPTPROV hCryptProv, - DWORD dwKeySpec, - LPSTR pszPrivateKeyObjId, - DWORD dwFlags, - void* pvAuxInfo, - BYTE* pbPrivateKeyBlob, - DWORD *pcbPrivateKeyBlob - ); -# 15338 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptExportPKCS8Ex( - CRYPT_PKCS8_EXPORT_PARAMS* psExportParams, - DWORD dwFlags, - void* pvAuxInfo, - BYTE* pbPrivateKeyBlob, - DWORD* pcbPrivateKeyBlob - ); -# 15360 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptHashPublicKeyInfo( - HCRYPTPROV_LEGACY hCryptProv, - ALG_ID Algid, - DWORD dwFlags, - DWORD dwCertEncodingType, - PCERT_PUBLIC_KEY_INFO pInfo, - BYTE *pbComputedHash, - DWORD *pcbComputedHash - ); -# 15384 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -DWORD -__stdcall -CertRDNValueToStrA( - DWORD dwValueType, - PCERT_RDN_VALUE_BLOB pValue, - LPSTR psz, - DWORD csz - ); -# 15404 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -DWORD -__stdcall -CertRDNValueToStrW( - DWORD dwValueType, - PCERT_RDN_VALUE_BLOB pValue, - LPWSTR psz, - DWORD csz - ); -# 15516 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -DWORD -__stdcall -CertNameToStrA( - DWORD dwCertEncodingType, - PCERT_NAME_BLOB pName, - DWORD dwStrType, - LPSTR psz, - DWORD csz - ); -__declspec(dllimport) -DWORD -__stdcall -CertNameToStrW( - DWORD dwCertEncodingType, - PCERT_NAME_BLOB pName, - DWORD dwStrType, - LPWSTR psz, - DWORD csz - ); -# 15682 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertStrToNameA( - DWORD dwCertEncodingType, - LPCSTR pszX500, - DWORD dwStrType, - void *pvReserved, - BYTE *pbEncoded, - DWORD *pcbEncoded, - LPCSTR *ppszError - ); - - -__declspec(dllimport) -BOOL -__stdcall -CertStrToNameW( - DWORD dwCertEncodingType, - LPCWSTR pszX500, - DWORD dwStrType, - void *pvReserved, - BYTE *pbEncoded, - DWORD *pcbEncoded, - LPCWSTR *ppszError - ); -# 15807 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -DWORD -__stdcall -CertGetNameStringA( - PCCERT_CONTEXT pCertContext, - DWORD dwType, - DWORD dwFlags, - void *pvTypePara, - LPSTR pszNameString, - DWORD cchNameString - ); - - -__declspec(dllimport) -DWORD -__stdcall -CertGetNameStringW( - PCCERT_CONTEXT pCertContext, - DWORD dwType, - DWORD dwFlags, - void *pvTypePara, - LPWSTR pszNameString, - DWORD cchNameString - ); -# 15915 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef PCCERT_CONTEXT (__stdcall *PFN_CRYPT_GET_SIGNER_CERTIFICATE)( - void *pvGetArg, - DWORD dwCertEncodingType, - PCERT_INFO pSignerId, - - HCERTSTORE hMsgCertStore - ); -# 15974 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_SIGN_MESSAGE_PARA { - DWORD cbSize; - DWORD dwMsgEncodingType; - PCCERT_CONTEXT pSigningCert; - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; - void *pvHashAuxInfo; - DWORD cMsgCert; - PCCERT_CONTEXT *rgpMsgCert; - DWORD cMsgCrl; - PCCRL_CONTEXT *rgpMsgCrl; - DWORD cAuthAttr; - PCRYPT_ATTRIBUTE rgAuthAttr; - DWORD cUnauthAttr; - PCRYPT_ATTRIBUTE rgUnauthAttr; - DWORD dwFlags; - DWORD dwInnerContentType; - - - - - - -} CRYPT_SIGN_MESSAGE_PARA, *PCRYPT_SIGN_MESSAGE_PARA; -# 16026 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_VERIFY_MESSAGE_PARA { - DWORD cbSize; - DWORD dwMsgAndCertEncodingType; - HCRYPTPROV_LEGACY hCryptProv; - PFN_CRYPT_GET_SIGNER_CERTIFICATE pfnGetSignerCertificate; - void *pvGetArg; -# 16045 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -} CRYPT_VERIFY_MESSAGE_PARA, *PCRYPT_VERIFY_MESSAGE_PARA; -# 16086 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_ENCRYPT_MESSAGE_PARA { - DWORD cbSize; - DWORD dwMsgEncodingType; - HCRYPTPROV_LEGACY hCryptProv; - CRYPT_ALGORITHM_IDENTIFIER ContentEncryptionAlgorithm; - void *pvEncryptionAuxInfo; - DWORD dwFlags; - DWORD dwInnerContentType; -} CRYPT_ENCRYPT_MESSAGE_PARA, *PCRYPT_ENCRYPT_MESSAGE_PARA; -# 16120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_DECRYPT_MESSAGE_PARA { - DWORD cbSize; - DWORD dwMsgAndCertEncodingType; - DWORD cCertStore; - HCERTSTORE *rghCertStore; -# 16134 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -} CRYPT_DECRYPT_MESSAGE_PARA, *PCRYPT_DECRYPT_MESSAGE_PARA; -# 16147 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_HASH_MESSAGE_PARA { - DWORD cbSize; - DWORD dwMsgEncodingType; - HCRYPTPROV_LEGACY hCryptProv; - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; - void *pvHashAuxInfo; -} CRYPT_HASH_MESSAGE_PARA, *PCRYPT_HASH_MESSAGE_PARA; -# 16167 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_KEY_SIGN_MESSAGE_PARA { - DWORD cbSize; - DWORD dwMsgAndCertEncodingType; - - - union { - HCRYPTPROV hCryptProv; - NCRYPT_KEY_HANDLE hNCryptKey; - } ; - - - DWORD dwKeySpec; - - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; - void *pvHashAuxInfo; - - CRYPT_ALGORITHM_IDENTIFIER PubKeyAlgorithm; -} CRYPT_KEY_SIGN_MESSAGE_PARA, *PCRYPT_KEY_SIGN_MESSAGE_PARA; -# 16197 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_KEY_VERIFY_MESSAGE_PARA { - DWORD cbSize; - DWORD dwMsgEncodingType; - HCRYPTPROV_LEGACY hCryptProv; -} CRYPT_KEY_VERIFY_MESSAGE_PARA, *PCRYPT_KEY_VERIFY_MESSAGE_PARA; -# 16215 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptSignMessage( - PCRYPT_SIGN_MESSAGE_PARA pSignPara, - BOOL fDetachedSignature, - DWORD cToBeSigned, - const BYTE *rgpbToBeSigned[], - DWORD rgcbToBeSigned[], - BYTE *pbSignedBlob, - DWORD *pcbSignedBlob - ); -# 16264 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptVerifyMessageSignature( - PCRYPT_VERIFY_MESSAGE_PARA pVerifyPara, - DWORD dwSignerIndex, - const BYTE *pbSignedBlob, - DWORD cbSignedBlob, - BYTE *pbDecoded, - DWORD *pcbDecoded, - PCCERT_CONTEXT *ppSignerCert - ); - - - - - -__declspec(dllimport) -LONG -__stdcall -CryptGetMessageSignerCount( - DWORD dwMsgEncodingType, - const BYTE *pbSignedBlob, - DWORD cbSignedBlob - ); - - - - - -__declspec(dllimport) -HCERTSTORE -__stdcall -CryptGetMessageCertificates( - DWORD dwMsgAndCertEncodingType, - HCRYPTPROV_LEGACY hCryptProv, - DWORD dwFlags, - const BYTE *pbSignedBlob, - DWORD cbSignedBlob - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptVerifyDetachedMessageSignature( - PCRYPT_VERIFY_MESSAGE_PARA pVerifyPara, - DWORD dwSignerIndex, - const BYTE *pbDetachedSignBlob, - DWORD cbDetachedSignBlob, - DWORD cToBeSigned, - const BYTE *rgpbToBeSigned[], - DWORD rgcbToBeSigned[], - PCCERT_CONTEXT *ppSignerCert - ); - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptEncryptMessage( - PCRYPT_ENCRYPT_MESSAGE_PARA pEncryptPara, - DWORD cRecipientCert, - PCCERT_CONTEXT rgpRecipientCert[], - const BYTE *pbToBeEncrypted, - DWORD cbToBeEncrypted, - BYTE *pbEncryptedBlob, - DWORD *pcbEncryptedBlob - ); -# 16354 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptDecryptMessage( - PCRYPT_DECRYPT_MESSAGE_PARA pDecryptPara, - const BYTE *pbEncryptedBlob, - DWORD cbEncryptedBlob, - BYTE *pbDecrypted, - DWORD *pcbDecrypted, - PCCERT_CONTEXT *ppXchgCert - ); -# 16373 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptSignAndEncryptMessage( - PCRYPT_SIGN_MESSAGE_PARA pSignPara, - PCRYPT_ENCRYPT_MESSAGE_PARA pEncryptPara, - DWORD cRecipientCert, - PCCERT_CONTEXT rgpRecipientCert[], - const BYTE *pbToBeSignedAndEncrypted, - DWORD cbToBeSignedAndEncrypted, - BYTE *pbSignedAndEncryptedBlob, - DWORD *pcbSignedAndEncryptedBlob - ); -# 16414 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptDecryptAndVerifyMessageSignature( - PCRYPT_DECRYPT_MESSAGE_PARA pDecryptPara, - PCRYPT_VERIFY_MESSAGE_PARA pVerifyPara, - DWORD dwSignerIndex, - const BYTE *pbEncryptedBlob, - DWORD cbEncryptedBlob, - BYTE *pbDecrypted, - DWORD *pcbDecrypted, - PCCERT_CONTEXT *ppXchgCert, - PCCERT_CONTEXT *ppSignerCert - ); -# 16461 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptDecodeMessage( - DWORD dwMsgTypeFlags, - PCRYPT_DECRYPT_MESSAGE_PARA pDecryptPara, - PCRYPT_VERIFY_MESSAGE_PARA pVerifyPara, - DWORD dwSignerIndex, - const BYTE *pbEncodedBlob, - DWORD cbEncodedBlob, - DWORD dwPrevInnerContentType, - DWORD *pdwMsgType, - DWORD *pdwInnerContentType, - BYTE *pbDecoded, - DWORD *pcbDecoded, - PCCERT_CONTEXT *ppXchgCert, - PCCERT_CONTEXT *ppSignerCert - ); -# 16490 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptHashMessage( - PCRYPT_HASH_MESSAGE_PARA pHashPara, - BOOL fDetachedHash, - DWORD cToBeHashed, - const BYTE *rgpbToBeHashed[], - DWORD rgcbToBeHashed[], - BYTE *pbHashedBlob, - DWORD *pcbHashedBlob, - BYTE *pbComputedHash, - DWORD *pcbComputedHash - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptVerifyMessageHash( - PCRYPT_HASH_MESSAGE_PARA pHashPara, - BYTE *pbHashedBlob, - DWORD cbHashedBlob, - BYTE *pbToBeHashed, - DWORD *pcbToBeHashed, - BYTE *pbComputedHash, - DWORD *pcbComputedHash - ); -# 16532 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptVerifyDetachedMessageHash( - PCRYPT_HASH_MESSAGE_PARA pHashPara, - BYTE *pbDetachedHashBlob, - DWORD cbDetachedHashBlob, - DWORD cToBeHashed, - const BYTE *rgpbToBeHashed[], - DWORD rgcbToBeHashed[], - BYTE *pbComputedHash, - DWORD *pcbComputedHash - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptSignMessageWithKey( - PCRYPT_KEY_SIGN_MESSAGE_PARA pSignPara, - const BYTE *pbToBeSigned, - DWORD cbToBeSigned, - BYTE *pbSignedBlob, - DWORD *pcbSignedBlob - ); -# 16576 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptVerifyMessageSignatureWithKey( - PCRYPT_KEY_VERIFY_MESSAGE_PARA pVerifyPara, - PCERT_PUBLIC_KEY_INFO pPublicKeyInfo, - const BYTE *pbSignedBlob, - DWORD cbSignedBlob, - BYTE *pbDecoded, - DWORD *pcbDecoded - ); -# 16620 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -HCERTSTORE -__stdcall -CertOpenSystemStoreA( - HCRYPTPROV_LEGACY hProv, - LPCSTR szSubsystemProtocol - ); -__declspec(dllimport) -HCERTSTORE -__stdcall -CertOpenSystemStoreW( - HCRYPTPROV_LEGACY hProv, - LPCWSTR szSubsystemProtocol - ); -# 16646 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertAddEncodedCertificateToSystemStoreA( - LPCSTR szCertStoreName, - const BYTE * pbCertEncoded, - DWORD cbCertEncoded - ); -__declspec(dllimport) -BOOL -__stdcall -CertAddEncodedCertificateToSystemStoreW( - LPCWSTR szCertStoreName, - const BYTE * pbCertEncoded, - DWORD cbCertEncoded - ); -# 16685 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_CHAIN { - DWORD cCerts; - PCERT_BLOB certs; - - CRYPT_KEY_PROV_INFO keyLocatorInfo; -} CERT_CHAIN, *PCERT_CHAIN; - - - -HRESULT -__stdcall -FindCertsByIssuer( - PCERT_CHAIN pCertChains, - DWORD *pcbCertChains, - DWORD *pcCertChains, - BYTE* pbEncodedIssuerName, - DWORD cbEncodedIssuerName, - LPCWSTR pwszPurpose, - DWORD dwKeySpec - - ); -# 16843 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptQueryObject( - DWORD dwObjectType, - const void *pvObject, - DWORD dwExpectedContentTypeFlags, - DWORD dwExpectedFormatTypeFlags, - DWORD dwFlags, - DWORD *pdwMsgAndCertEncodingType, - DWORD *pdwContentType, - DWORD *pdwFormatType, - HCERTSTORE *phCertStore, - HCRYPTMSG *phMsg, - const void **ppvContext - ); -# 17030 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -LPVOID -__stdcall -CryptMemAlloc ( - ULONG cbSize - ); - -__declspec(dllimport) -LPVOID -__stdcall -CryptMemRealloc ( - LPVOID pv, - ULONG cbSize - ); - -__declspec(dllimport) -void -__stdcall -CryptMemFree ( - LPVOID pv - ); -# 17062 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef HANDLE HCRYPTASYNC, *PHCRYPTASYNC; - -typedef void (__stdcall *PFN_CRYPT_ASYNC_PARAM_FREE_FUNC) ( - LPSTR pszParamOid, - LPVOID pvParam - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptCreateAsyncHandle ( - DWORD dwFlags, - PHCRYPTASYNC phAsync - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptSetAsyncParam ( - HCRYPTASYNC hAsync, - LPSTR pszParamOid, - LPVOID pvParam, - PFN_CRYPT_ASYNC_PARAM_FREE_FUNC pfnFree - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptGetAsyncParam ( - HCRYPTASYNC hAsync, - LPSTR pszParamOid, - LPVOID* ppvParam, - PFN_CRYPT_ASYNC_PARAM_FREE_FUNC* ppfnFree - ); - -__declspec(dllimport) -BOOL -__stdcall -CryptCloseAsyncHandle ( - HCRYPTASYNC hAsync - ); -# 17124 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_BLOB_ARRAY { - DWORD cBlob; - PCRYPT_DATA_BLOB rgBlob; -} CRYPT_BLOB_ARRAY, *PCRYPT_BLOB_ARRAY; - -typedef struct _CRYPT_CREDENTIALS { - DWORD cbSize; - LPCSTR pszCredentialsOid; - LPVOID pvCredentials; -} CRYPT_CREDENTIALS, *PCRYPT_CREDENTIALS; -# 17144 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_PASSWORD_CREDENTIALSA { - DWORD cbSize; - LPSTR pszUsername; - LPSTR pszPassword; -} CRYPT_PASSWORD_CREDENTIALSA, *PCRYPT_PASSWORD_CREDENTIALSA; -typedef struct _CRYPT_PASSWORD_CREDENTIALSW { - DWORD cbSize; - LPWSTR pszUsername; - LPWSTR pszPassword; -} CRYPT_PASSWORD_CREDENTIALSW, *PCRYPT_PASSWORD_CREDENTIALSW; - - - - -typedef CRYPT_PASSWORD_CREDENTIALSA CRYPT_PASSWORD_CREDENTIALS; -typedef PCRYPT_PASSWORD_CREDENTIALSA PCRYPT_PASSWORD_CREDENTIALS; -# 17173 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef void (__stdcall *PFN_FREE_ENCODED_OBJECT_FUNC) ( - LPCSTR pszObjectOid, - PCRYPT_BLOB_ARRAY pObject, - LPVOID pvFreeContext - ); -# 17377 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPTNET_URL_CACHE_PRE_FETCH_INFO { - DWORD cbSize; - DWORD dwObjectType; - - - - - - - - DWORD dwError; - DWORD dwReserved; - - FILETIME ThisUpdateTime; - FILETIME NextUpdateTime; - FILETIME PublishTime; -} CRYPTNET_URL_CACHE_PRE_FETCH_INFO, *PCRYPTNET_URL_CACHE_PRE_FETCH_INFO; -# 17407 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPTNET_URL_CACHE_FLUSH_INFO { - DWORD cbSize; - - - - - DWORD dwExemptSeconds; - - - - - FILETIME ExpireTime; -} CRYPTNET_URL_CACHE_FLUSH_INFO, *PCRYPTNET_URL_CACHE_FLUSH_INFO; -# 17428 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPTNET_URL_CACHE_RESPONSE_INFO { - DWORD cbSize; - WORD wResponseType; - WORD wResponseFlags; - - - FILETIME LastModifiedTime; - DWORD dwMaxAge; - LPCWSTR pwszETag; - DWORD dwProxyId; -} CRYPTNET_URL_CACHE_RESPONSE_INFO, *PCRYPTNET_URL_CACHE_RESPONSE_INFO; -# 17455 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_RETRIEVE_AUX_INFO { - DWORD cbSize; - FILETIME *pLastSyncTime; - - - DWORD dwMaxUrlRetrievalByteCount; - - - - - - PCRYPTNET_URL_CACHE_PRE_FETCH_INFO pPreFetchInfo; - - - - - - PCRYPTNET_URL_CACHE_FLUSH_INFO pFlushInfo; - - - - - - PCRYPTNET_URL_CACHE_RESPONSE_INFO *ppResponseInfo; - - - - LPWSTR pwszCacheFileNamePrefix; - - - - - - LPFILETIME pftCacheResync; - - - - - - BOOL fProxyCacheRetrieval; -# 17504 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 - DWORD dwHttpStatusCode; - - - - - - LPWSTR *ppwszErrorResponseHeaders; - - - - - PCRYPT_DATA_BLOB *ppErrorContentBlob; -} CRYPT_RETRIEVE_AUX_INFO, *PCRYPT_RETRIEVE_AUX_INFO; -# 17527 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CryptRetrieveObjectByUrlA ( - LPCSTR pszUrl, - LPCSTR pszObjectOid, - DWORD dwRetrievalFlags, - DWORD dwTimeout, - LPVOID* ppvObject, - HCRYPTASYNC hAsyncRetrieve, - PCRYPT_CREDENTIALS pCredentials, - LPVOID pvVerify, - PCRYPT_RETRIEVE_AUX_INFO pAuxInfo - ); -__declspec(dllimport) - -BOOL -__stdcall -CryptRetrieveObjectByUrlW ( - LPCWSTR pszUrl, - LPCSTR pszObjectOid, - DWORD dwRetrievalFlags, - DWORD dwTimeout, - LPVOID* ppvObject, - HCRYPTASYNC hAsyncRetrieve, - PCRYPT_CREDENTIALS pCredentials, - LPVOID pvVerify, - PCRYPT_RETRIEVE_AUX_INFO pAuxInfo - ); -# 17574 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CRYPT_CANCEL_RETRIEVAL)( - DWORD dwFlags, - void *pvArg - ); -# 17587 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptInstallCancelRetrieval( - PFN_CRYPT_CANCEL_RETRIEVAL pfnCancel, - const void *pvArg, - DWORD dwFlags, - void *pvReserved -); - - -__declspec(dllimport) -BOOL -__stdcall -CryptUninstallCancelRetrieval( - DWORD dwFlags, - void *pvReserved - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptCancelAsyncRetrieval ( - HCRYPTASYNC hAsyncRetrieval - ); -# 17630 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef void (__stdcall *PFN_CRYPT_ASYNC_RETRIEVAL_COMPLETION_FUNC) ( - LPVOID pvCompletion, - DWORD dwCompletionCode, - LPCSTR pszUrl, - LPSTR pszObjectOid, - LPVOID pvObject - ); - -typedef struct _CRYPT_ASYNC_RETRIEVAL_COMPLETION { - PFN_CRYPT_ASYNC_RETRIEVAL_COMPLETION_FUNC pfnCompletion; - LPVOID pvCompletion; -} CRYPT_ASYNC_RETRIEVAL_COMPLETION, *PCRYPT_ASYNC_RETRIEVAL_COMPLETION; -# 17650 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CANCEL_ASYNC_RETRIEVAL_FUNC) ( - HCRYPTASYNC hAsyncRetrieve - ); -# 17668 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_URL_ARRAY { - DWORD cUrl; - LPWSTR* rgwszUrl; -} CRYPT_URL_ARRAY, *PCRYPT_URL_ARRAY; - -typedef struct _CRYPT_URL_INFO { - DWORD cbSize; - - - DWORD dwSyncDeltaTime; - - - - - DWORD cGroup; - DWORD *rgcGroupEntry; -} CRYPT_URL_INFO, *PCRYPT_URL_INFO; - -__declspec(dllimport) -BOOL -__stdcall -CryptGetObjectUrl ( - LPCSTR pszUrlOid, - LPVOID pvPara, - DWORD dwFlags, - PCRYPT_URL_ARRAY pUrlArray, - DWORD* pcbUrlArray, - PCRYPT_URL_INFO pUrlInfo, - DWORD* pcbUrlInfo, - LPVOID pvReserved - ); -# 17822 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_CRL_CONTEXT_PAIR { - PCCERT_CONTEXT pCertContext; - PCCRL_CONTEXT pCrlContext; -} CERT_CRL_CONTEXT_PAIR, *PCERT_CRL_CONTEXT_PAIR; -typedef const CERT_CRL_CONTEXT_PAIR *PCCERT_CRL_CONTEXT_PAIR; -# 17845 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO { - DWORD cbSize; - - - - int iDeltaCrlIndicator; - - - - LPFILETIME pftCacheResync; - - - LPFILETIME pLastSyncTime; - - - - - LPFILETIME pMaxAgeTime; - - - - PCERT_REVOCATION_CHAIN_PARA pChainPara; - - - - PCRYPT_INTEGER_BLOB pDeltaCrlIndicator; - -} CRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO, - *PCRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO; - -__declspec(dllimport) - -BOOL -__stdcall -CryptGetTimeValidObject ( - LPCSTR pszTimeValidOid, - LPVOID pvPara, - PCCERT_CONTEXT pIssuer, - LPFILETIME pftValidFor, - DWORD dwFlags, - DWORD dwTimeout, - LPVOID* ppvObject, - PCRYPT_CREDENTIALS pCredentials, - PCRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO pExtraInfo - ); -# 17926 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptFlushTimeValidObject ( - LPCSTR pszFlushTimeValidOid, - LPVOID pvPara, - PCCERT_CONTEXT pIssuer, - DWORD dwFlags, - LPVOID pvReserved - ); -# 18019 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCERT_CONTEXT -__stdcall -CertCreateSelfSignCertificate( - HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProvOrNCryptKey, - PCERT_NAME_BLOB pSubjectIssuerBlob, - DWORD dwFlags, - PCRYPT_KEY_PROV_INFO pKeyProvInfo, - PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm, - PSYSTEMTIME pStartTime, - PSYSTEMTIME pEndTime, - PCERT_EXTENSIONS pExtensions - ); -# 18071 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptGetKeyIdentifierProperty( - const CRYPT_HASH_BLOB *pKeyIdentifier, - DWORD dwPropId, - DWORD dwFlags, - LPCWSTR pwszComputerName, - void *pvReserved, - void *pvData, - DWORD *pcbData - ); -# 18112 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptSetKeyIdentifierProperty( - const CRYPT_HASH_BLOB *pKeyIdentifier, - DWORD dwPropId, - DWORD dwFlags, - LPCWSTR pwszComputerName, - void *pvReserved, - const void *pvData - ); -# 18139 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CRYPT_ENUM_KEYID_PROP)( - const CRYPT_HASH_BLOB *pKeyIdentifier, - DWORD dwFlags, - void *pvReserved, - void *pvArg, - DWORD cProp, - DWORD *rgdwPropId, - void **rgpvData, - DWORD *rgcbData - ); -# 18164 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptEnumKeyIdentifierProperties( - const CRYPT_HASH_BLOB *pKeyIdentifier, - DWORD dwPropId, - DWORD dwFlags, - LPCWSTR pwszComputerName, - void *pvReserved, - void *pvArg, - PFN_CRYPT_ENUM_KEYID_PROP pfnEnum - ); -# 18188 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptCreateKeyIdentifierFromCSP( - DWORD dwCertEncodingType, - LPCSTR pszPubKeyOID, - const PUBLICKEYSTRUC *pPubKeyStruc, - DWORD cbPubKeyStruc, - DWORD dwFlags, - void *pvReserved, - BYTE *pbHash, - DWORD *pcbHash - ); -# 19179 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef HANDLE HCERTCHAINENGINE; -# 19266 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_CHAIN_ENGINE_CONFIG { - - DWORD cbSize; - HCERTSTORE hRestrictedRoot; - HCERTSTORE hRestrictedTrust; - HCERTSTORE hRestrictedOther; - DWORD cAdditionalStore; - HCERTSTORE* rghAdditionalStore; - DWORD dwFlags; - DWORD dwUrlRetrievalTimeout; - DWORD MaximumCachedCertificates; - DWORD CycleDetectionModulus; - - - HCERTSTORE hExclusiveRoot; - HCERTSTORE hExclusiveTrustedPeople; - - - - DWORD dwExclusiveFlags; - - -} CERT_CHAIN_ENGINE_CONFIG, *PCERT_CHAIN_ENGINE_CONFIG; -# 19300 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CertCreateCertificateChainEngine ( - PCERT_CHAIN_ENGINE_CONFIG pConfig, - HCERTCHAINENGINE* phChainEngine - ); - - - - - -__declspec(dllimport) -void -__stdcall -CertFreeCertificateChainEngine ( - HCERTCHAINENGINE hChainEngine - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CertResyncCertificateChainEngine ( - HCERTCHAINENGINE hChainEngine - ); -# 19346 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_TRUST_STATUS { - - DWORD dwErrorStatus; - DWORD dwInfoStatus; - -} CERT_TRUST_STATUS, *PCERT_TRUST_STATUS; -# 19459 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_REVOCATION_INFO { - - DWORD cbSize; - DWORD dwRevocationResult; - LPCSTR pszRevocationOid; - LPVOID pvOidSpecificInfo; - - - - BOOL fHasFreshnessTime; - DWORD dwFreshnessTime; - - - PCERT_REVOCATION_CRL_INFO pCrlInfo; - -} CERT_REVOCATION_INFO, *PCERT_REVOCATION_INFO; - - - - - -typedef struct _CERT_TRUST_LIST_INFO { - - DWORD cbSize; - PCTL_ENTRY pCtlEntry; - PCCTL_CONTEXT pCtlContext; - -} CERT_TRUST_LIST_INFO, *PCERT_TRUST_LIST_INFO; - - - - - -typedef struct _CERT_CHAIN_ELEMENT { - - DWORD cbSize; - PCCERT_CONTEXT pCertContext; - CERT_TRUST_STATUS TrustStatus; - PCERT_REVOCATION_INFO pRevocationInfo; - - PCERT_ENHKEY_USAGE pIssuanceUsage; - PCERT_ENHKEY_USAGE pApplicationUsage; - - LPCWSTR pwszExtendedErrorInfo; -} CERT_CHAIN_ELEMENT, *PCERT_CHAIN_ELEMENT; -typedef const CERT_CHAIN_ELEMENT* PCCERT_CHAIN_ELEMENT; -# 19515 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_SIMPLE_CHAIN { - - DWORD cbSize; - CERT_TRUST_STATUS TrustStatus; - DWORD cElement; - PCERT_CHAIN_ELEMENT* rgpElement; - PCERT_TRUST_LIST_INFO pTrustListInfo; - - - - - - - - BOOL fHasRevocationFreshnessTime; - DWORD dwRevocationFreshnessTime; - -} CERT_SIMPLE_CHAIN, *PCERT_SIMPLE_CHAIN; -typedef const CERT_SIMPLE_CHAIN* PCCERT_SIMPLE_CHAIN; -# 19545 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_CHAIN_CONTEXT CERT_CHAIN_CONTEXT, *PCERT_CHAIN_CONTEXT; -typedef const CERT_CHAIN_CONTEXT *PCCERT_CHAIN_CONTEXT; - -struct _CERT_CHAIN_CONTEXT { - DWORD cbSize; - CERT_TRUST_STATUS TrustStatus; - DWORD cChain; - PCERT_SIMPLE_CHAIN* rgpChain; - - - - DWORD cLowerQualityChainContext; - PCCERT_CHAIN_CONTEXT* rgpLowerQualityChainContext; - - - - - - - - BOOL fHasRevocationFreshnessTime; - DWORD dwRevocationFreshnessTime; - - - DWORD dwCreateFlags; - - - GUID ChainId; -}; -# 19586 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_USAGE_MATCH { - - DWORD dwType; - CERT_ENHKEY_USAGE Usage; - -} CERT_USAGE_MATCH, *PCERT_USAGE_MATCH; - -typedef struct _CTL_USAGE_MATCH { - - DWORD dwType; - CTL_USAGE Usage; - -} CTL_USAGE_MATCH, *PCTL_USAGE_MATCH; - -typedef struct _CERT_CHAIN_PARA { - - DWORD cbSize; - CERT_USAGE_MATCH RequestedUsage; -# 19636 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -} CERT_CHAIN_PARA, *PCERT_CHAIN_PARA; -# 19763 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CertGetCertificateChain ( - HCERTCHAINENGINE hChainEngine, - PCCERT_CONTEXT pCertContext, - LPFILETIME pTime, - HCERTSTORE hAdditionalStore, - PCERT_CHAIN_PARA pChainPara, - DWORD dwFlags, - LPVOID pvReserved, - PCCERT_CHAIN_CONTEXT* ppChainContext - ); - - - - - -__declspec(dllimport) -void -__stdcall -CertFreeCertificateChain ( - PCCERT_CHAIN_CONTEXT pChainContext - ); - - - - - -__declspec(dllimport) -PCCERT_CHAIN_CONTEXT -__stdcall -CertDuplicateCertificateChain ( - PCCERT_CHAIN_CONTEXT pChainContext - ); - - - - - - - -struct _CERT_REVOCATION_CHAIN_PARA { - DWORD cbSize; - HCERTCHAINENGINE hChainEngine; - HCERTSTORE hAdditionalStore; - DWORD dwChainFlags; - DWORD dwUrlRetrievalTimeout; - LPFILETIME pftCurrentTime; - LPFILETIME pftCacheResync; - - - - DWORD cbMaxUrlRetrievalByteCount; -}; -# 19838 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRL_REVOCATION_INFO { - - PCRL_ENTRY pCrlEntry; - PCCRL_CONTEXT pCrlContext; - PCCERT_CHAIN_CONTEXT pCrlIssuerChain; - -} CRL_REVOCATION_INFO, *PCRL_REVOCATION_INFO; -# 19873 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCERT_CHAIN_CONTEXT -__stdcall -CertFindChainInStore( - HCERTSTORE hCertStore, - DWORD dwCertEncodingType, - DWORD dwFindFlags, - DWORD dwFindType, - const void *pvFindPara, - PCCERT_CHAIN_CONTEXT pPrevChainContext - ); -# 19937 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CERT_CHAIN_FIND_BY_ISSUER_CALLBACK)( - PCCERT_CONTEXT pCert, - void *pvFindArg - ); - -typedef struct _CERT_CHAIN_FIND_BY_ISSUER_PARA { - DWORD cbSize; - - - LPCSTR pszUsageIdentifier; - - - DWORD dwKeySpec; - - - - - - - DWORD dwAcquirePrivateKeyFlags; - - - - DWORD cIssuer; - CERT_NAME_BLOB *rgIssuer; - - - - - PFN_CERT_CHAIN_FIND_BY_ISSUER_CALLBACK pfnFindCallback; - void *pvFindArg; -# 19989 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -} CERT_CHAIN_FIND_ISSUER_PARA, *PCERT_CHAIN_FIND_ISSUER_PARA, - CERT_CHAIN_FIND_BY_ISSUER_PARA, *PCERT_CHAIN_FIND_BY_ISSUER_PARA; -# 20028 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_CHAIN_POLICY_PARA { - DWORD cbSize; - DWORD dwFlags; - void *pvExtraPolicyPara; -} CERT_CHAIN_POLICY_PARA, *PCERT_CHAIN_POLICY_PARA; - - - - - - -typedef struct _CERT_CHAIN_POLICY_STATUS { - DWORD cbSize; - DWORD dwError; - LONG lChainIndex; - LONG lElementIndex; - void *pvExtraPolicyStatus; -} CERT_CHAIN_POLICY_STATUS, *PCERT_CHAIN_POLICY_STATUS; -# 20107 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertVerifyCertificateChainPolicy( - LPCSTR pszPolicyOID, - PCCERT_CHAIN_CONTEXT pChainContext, - PCERT_CHAIN_POLICY_PARA pPolicyPara, - PCERT_CHAIN_POLICY_STATUS pPolicyStatus - ); -# 20160 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA { - DWORD cbSize; - DWORD dwRegPolicySettings; - PCMSG_SIGNER_INFO pSignerInfo; -} AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA, - *PAUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_PARA; - -typedef struct _AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS { - DWORD cbSize; - BOOL fCommercial; -} AUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS, - *PAUTHENTICODE_EXTRA_CERT_CHAIN_POLICY_STATUS; -# 20185 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _AUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA { - DWORD cbSize; - DWORD dwRegPolicySettings; - BOOL fCommercial; -} AUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA, - *PAUTHENTICODE_TS_EXTRA_CERT_CHAIN_POLICY_PARA; -# 20203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _HTTPSPolicyCallbackData -{ - union { - DWORD cbStruct; - DWORD cbSize; - } ; - - DWORD dwAuthType; - - - - DWORD fdwChecks; - - WCHAR *pwszServerName; - -} HTTPSPolicyCallbackData, *PHTTPSPolicyCallbackData, - SSL_EXTRA_CERT_CHAIN_POLICY_PARA, *PSSL_EXTRA_CERT_CHAIN_POLICY_PARA; -# 20324 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _EV_EXTRA_CERT_CHAIN_POLICY_PARA { - DWORD cbSize; - DWORD dwRootProgramQualifierFlags; -} EV_EXTRA_CERT_CHAIN_POLICY_PARA, - *PEV_EXTRA_CERT_CHAIN_POLICY_PARA; - -typedef struct _EV_EXTRA_CERT_CHAIN_POLICY_STATUS { - DWORD cbSize; - DWORD dwQualifiers; - DWORD dwIssuanceUsageIndex; -} EV_EXTRA_CERT_CHAIN_POLICY_STATUS, *PEV_EXTRA_CERT_CHAIN_POLICY_STATUS; -# 20356 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _SSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS { - DWORD cbSize; - DWORD dwErrorLevel; - DWORD dwErrorCategory; - DWORD dwReserved; - WCHAR wszErrorText[256]; -} SSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS, *PSSL_F12_EXTRA_CERT_CHAIN_POLICY_STATUS; -# 20429 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _SSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA { - DWORD cbSize; - DWORD dwReserved; - LPWSTR pwszServerName; - - - LPSTR rgpszHpkpValue[2]; -} SSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA, - *PSSL_HPKP_HEADER_EXTRA_CERT_CHAIN_POLICY_PARA; -# 20488 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA { - DWORD cbSize; - DWORD dwReserved; - PCWSTR pwszServerName; -} SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA, *PSSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_PARA; - - -typedef struct _SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS { - DWORD cbSize; - LONG lError; - WCHAR wszErrorText[512]; -} SSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS, *PSSL_KEY_PIN_EXTRA_CERT_CHAIN_POLICY_STATUS; -# 20521 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptStringToBinaryA( - LPCSTR pszString, - DWORD cchString, - DWORD dwFlags, - BYTE *pbBinary, - DWORD *pcbBinary, - DWORD *pdwSkip, - DWORD *pdwFlags - ); -# 20543 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptStringToBinaryW( - LPCWSTR pszString, - DWORD cchString, - DWORD dwFlags, - BYTE *pbBinary, - DWORD *pcbBinary, - DWORD *pdwSkip, - DWORD *pdwFlags - ); -# 20568 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CryptBinaryToStringA( - const BYTE *pbBinary, - DWORD cbBinary, - DWORD dwFlags, - LPSTR pszString, - DWORD *pcchString - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CryptBinaryToStringW( - const BYTE *pbBinary, - DWORD cbBinary, - DWORD dwFlags, - LPWSTR pszString, - DWORD *pcchString - ); -# 20685 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_PKCS12_PBE_PARAMS -{ - int iIterations; - ULONG cbSalt; -} -CRYPT_PKCS12_PBE_PARAMS; -# 20740 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -HCERTSTORE -__stdcall -PFXImportCertStore( - CRYPT_DATA_BLOB* pPFX, - LPCWSTR szPassword, - DWORD dwFlags); -# 20782 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -PFXIsPFXBlob( - CRYPT_DATA_BLOB* pPFX); -# 20798 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -PFXVerifyPassword( - CRYPT_DATA_BLOB* pPFX, - LPCWSTR szPassword, - DWORD dwFlags); -# 20864 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -PFXExportCertStoreEx( - HCERTSTORE hStore, - CRYPT_DATA_BLOB* pPFX, - LPCWSTR szPassword, - void* pvPara, - DWORD dwFlags); -# 20899 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _PKCS12_PBES2_EXPORT_PARAMS -{ - DWORD dwSize; - PVOID hNcryptDescriptor; - LPWSTR pwszPbes2Alg; -} PKCS12_PBES2_EXPORT_PARAMS, *PPKCS12_PBES2_EXPORT_PARAMS; -# 20936 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -PFXExportCertStore( - HCERTSTORE hStore, - CRYPT_DATA_BLOB* pPFX, - LPCWSTR szPassword, - DWORD dwFlags); -# 20964 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef void *HCERT_SERVER_OCSP_RESPONSE; - - - - -typedef struct _CERT_SERVER_OCSP_RESPONSE_CONTEXT - CERT_SERVER_OCSP_RESPONSE_CONTEXT, - *PCERT_SERVER_OCSP_RESPONSE_CONTEXT; -typedef const CERT_SERVER_OCSP_RESPONSE_CONTEXT - *PCCERT_SERVER_OCSP_RESPONSE_CONTEXT; - -struct _CERT_SERVER_OCSP_RESPONSE_CONTEXT { - DWORD cbSize; - BYTE *pbEncodedOcspResponse; - DWORD cbEncodedOcspResponse; -}; - - - - - - - -typedef void (__stdcall *PFN_CERT_SERVER_OCSP_RESPONSE_UPDATE_CALLBACK)( - PCCERT_CHAIN_CONTEXT pChainContext, - PCCERT_SERVER_OCSP_RESPONSE_CONTEXT pServerOcspResponseContext, - PCCRL_CONTEXT pNewCrlContext, - PCCRL_CONTEXT pPrevCrlContext, - PVOID pvArg, - DWORD dwWriteOcspFileError - ); - - - - - -typedef struct _CERT_SERVER_OCSP_RESPONSE_OPEN_PARA { - DWORD cbSize; - DWORD dwFlags; - - - - - DWORD *pcbUsedSize; -# 21017 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 - PWSTR pwszOcspDirectory; - - - - PFN_CERT_SERVER_OCSP_RESPONSE_UPDATE_CALLBACK pfnUpdateCallback; - PVOID pvUpdateCallbackArg; -} CERT_SERVER_OCSP_RESPONSE_OPEN_PARA, *PCERT_SERVER_OCSP_RESPONSE_OPEN_PARA; -# 21055 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -HCERT_SERVER_OCSP_RESPONSE -__stdcall -CertOpenServerOcspResponse( - PCCERT_CHAIN_CONTEXT pChainContext, - DWORD dwFlags, - PCERT_SERVER_OCSP_RESPONSE_OPEN_PARA pOpenPara - ); -# 21073 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -void -__stdcall -CertAddRefServerOcspResponse( - HCERT_SERVER_OCSP_RESPONSE hServerOcspResponse - ); - - - - - - - -__declspec(dllimport) -void -__stdcall -CertCloseServerOcspResponse( - HCERT_SERVER_OCSP_RESPONSE hServerOcspResponse, - DWORD dwFlags - ); -# 21107 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -PCCERT_SERVER_OCSP_RESPONSE_CONTEXT -__stdcall -CertGetServerOcspResponseContext( - HCERT_SERVER_OCSP_RESPONSE hServerOcspResponse, - DWORD dwFlags, - LPVOID pvReserved - ); - - - - - - -__declspec(dllimport) -void -__stdcall -CertAddRefServerOcspResponseContext( - PCCERT_SERVER_OCSP_RESPONSE_CONTEXT pServerOcspResponseContext - ); - - - - - -__declspec(dllimport) -void -__stdcall -CertFreeServerOcspResponseContext( - PCCERT_SERVER_OCSP_RESPONSE_CONTEXT pServerOcspResponseContext - ); -# 21189 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CertRetrieveLogoOrBiometricInfo( - PCCERT_CONTEXT pCertContext, - LPCSTR lpszLogoOrBiometricType, - DWORD dwRetrievalFlags, - DWORD dwTimeout, - DWORD dwFlags, - void *pvReserved, - BYTE **ppbData, - DWORD *pcbData, - LPWSTR *ppwszMimeType - ); -# 21231 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CERT_SELECT_CHAIN_PARA -{ - HCERTCHAINENGINE hChainEngine; - PFILETIME pTime; - HCERTSTORE hAdditionalStore; - PCERT_CHAIN_PARA pChainPara; - DWORD dwFlags; -} -CERT_SELECT_CHAIN_PARA, *PCERT_SELECT_CHAIN_PARA; -typedef const CERT_SELECT_CHAIN_PARA* PCCERT_SELECT_CHAIN_PARA; - - - -typedef struct _CERT_SELECT_CRITERIA -{ - DWORD dwType; - DWORD cPara; - void** ppPara; -} -CERT_SELECT_CRITERIA, *PCERT_SELECT_CRITERIA; -typedef const CERT_SELECT_CRITERIA* PCCERT_SELECT_CRITERIA; -# 21293 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) - -BOOL -__stdcall -CertSelectCertificateChains( - LPCGUID pSelectionContext, - DWORD dwFlags, - PCCERT_SELECT_CHAIN_PARA pChainParameters, - DWORD cCriteria, - PCCERT_SELECT_CRITERIA rgpCriteria, - HCERTSTORE hStore, - PDWORD pcSelection, - PCCERT_CHAIN_CONTEXT** pprgpSelection - ); - - - - - - -__declspec(dllimport) -void -__stdcall -CertFreeCertificateChainList( - PCCERT_CHAIN_CONTEXT* prgpSelection - ); -# 21334 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_TIMESTAMP_REQUEST -{ - DWORD dwVersion; - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; - CRYPT_DER_BLOB HashedMessage; - LPSTR pszTSAPolicyId; - CRYPT_INTEGER_BLOB Nonce; - BOOL fCertReq; - DWORD cExtension; - - PCERT_EXTENSION rgExtension; -} CRYPT_TIMESTAMP_REQUEST, *PCRYPT_TIMESTAMP_REQUEST; - - - - - -typedef struct _CRYPT_TIMESTAMP_RESPONSE -{ - DWORD dwStatus; - DWORD cFreeText; - - LPWSTR* rgFreeText; - CRYPT_BIT_BLOB FailureInfo; - CRYPT_DER_BLOB ContentInfo; -} CRYPT_TIMESTAMP_RESPONSE, *PCRYPT_TIMESTAMP_RESPONSE; -# 21381 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_TIMESTAMP_ACCURACY -{ - DWORD dwSeconds; - DWORD dwMillis; - DWORD dwMicros; -} CRYPT_TIMESTAMP_ACCURACY, *PCRYPT_TIMESTAMP_ACCURACY; - - - - - -typedef struct _CRYPT_TIMESTAMP_INFO -{ - DWORD dwVersion; - LPSTR pszTSAPolicyId; - CRYPT_ALGORITHM_IDENTIFIER HashAlgorithm; - CRYPT_DER_BLOB HashedMessage; - CRYPT_INTEGER_BLOB SerialNumber; - FILETIME ftTime; - PCRYPT_TIMESTAMP_ACCURACY pvAccuracy; - BOOL fOrdering; - CRYPT_DER_BLOB Nonce; - CRYPT_DER_BLOB Tsa; - DWORD cExtension; - - PCERT_EXTENSION rgExtension; -} CRYPT_TIMESTAMP_INFO, *PCRYPT_TIMESTAMP_INFO; - - - - - -typedef struct _CRYPT_TIMESTAMP_CONTEXT -{ - DWORD cbEncoded; - - BYTE *pbEncoded; - PCRYPT_TIMESTAMP_INFO pTimeStamp; -} CRYPT_TIMESTAMP_CONTEXT, *PCRYPT_TIMESTAMP_CONTEXT; -# 21440 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef struct _CRYPT_TIMESTAMP_PARA -{ - LPCSTR pszTSAPolicyId; - BOOL fRequestCerts; - CRYPT_INTEGER_BLOB Nonce; - DWORD cExtension; - - PCERT_EXTENSION rgExtension; -} CRYPT_TIMESTAMP_PARA, *PCRYPT_TIMESTAMP_PARA; -# 21494 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -BOOL -__stdcall -CryptRetrieveTimeStamp( - LPCWSTR wszUrl, - DWORD dwRetrievalFlags, - DWORD dwTimeout, - LPCSTR pszHashId, - const CRYPT_TIMESTAMP_PARA *pPara, - - const BYTE *pbData, - DWORD cbData, - PCRYPT_TIMESTAMP_CONTEXT *ppTsContext, - PCCERT_CONTEXT *ppTsSigner, - HCERTSTORE *phStore - ); -# 21558 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -BOOL -__stdcall -CryptVerifyTimeStampSignature ( - - const BYTE *pbTSContentInfo, - DWORD cbTSContentInfo, - - const BYTE *pbData, - DWORD cbData, - HCERTSTORE hAdditionalStore, - PCRYPT_TIMESTAMP_CONTEXT *ppTsContext, - PCCERT_CONTEXT *ppTsSigner, - HCERTSTORE *phStore - ); -# 21633 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FLUSH)( - LPVOID pContext, - PCERT_NAME_BLOB *rgIdentifierOrNameList, - DWORD dwIdentifierOrNameListCount); -# 21668 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_GET)( - LPVOID pPluginContext, - PCRYPT_DATA_BLOB pIdentifier, - DWORD dwNameType, - PCERT_NAME_BLOB pNameBlob, - PBYTE *ppbContent, - DWORD *pcbContent, - PCWSTR *ppwszPassword, - PCRYPT_DATA_BLOB *ppIdentifier); -# 21694 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef void (__stdcall * PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_RELEASE)( - DWORD dwReason, - LPVOID pPluginContext); -# 21711 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef void (__stdcall *PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_PASSWORD)( - LPVOID pPluginContext, - PCWSTR pwszPassword -); -# 21728 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef void (__stdcall *PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE)( - LPVOID pPluginContext, - PBYTE pbData -); -# 21749 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef void (__stdcall *PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_IDENTIFIER)( - LPVOID pPluginContext, - PCRYPT_DATA_BLOB pIdentifier); - - -typedef struct _CRYPT_OBJECT_LOCATOR_PROVIDER_TABLE -{ - DWORD cbSize; - PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_GET pfnGet; - PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_RELEASE pfnRelease; - PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_PASSWORD pfnFreePassword; - PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE pfnFree; - PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FREE_IDENTIFIER pfnFreeIdentifier; -} CRYPT_OBJECT_LOCATOR_PROVIDER_TABLE, *PCRYPT_OBJECT_LOCATOR_PROVIDER_TABLE; -# 21792 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -typedef BOOL (__stdcall *PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_INITIALIZE)( - PFN_CRYPT_OBJECT_LOCATOR_PROVIDER_FLUSH pfnFlush, - LPVOID pContext, - DWORD *pdwExpectedObjectCount, - PCRYPT_OBJECT_LOCATOR_PROVIDER_TABLE *ppFuncTable, - void **ppPluginContext); -# 21820 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -__declspec(dllimport) -BOOL -__stdcall -CertIsWeakHash( - DWORD dwHashUseType, - LPCWSTR pwszCNGHashAlgid, - DWORD dwChainFlags, - PCCERT_CHAIN_CONTEXT pSignerChainContext, - LPFILETIME pTimeStamp, - LPCWSTR pwszFileName - ); - -typedef __declspec(dllimport) BOOL (__stdcall *PFN_CERT_IS_WEAK_HASH)( - DWORD dwHashUseType, - LPCWSTR pwszCNGHashAlgid, - DWORD dwChainFlags, - PCCERT_CHAIN_CONTEXT pSignerChainContext, - LPFILETIME pTimeStamp, - LPCWSTR pwszFileName - ); -# 21864 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -#pragma warning(pop) -# 21882 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dpapi.h" 1 3 -# 91 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dpapi.h" 3 -typedef struct _CRYPTPROTECT_PROMPTSTRUCT -{ - DWORD cbSize; - DWORD dwPromptFlags; - HWND hwndApp; - LPCWSTR szPrompt; -} CRYPTPROTECT_PROMPTSTRUCT, *PCRYPTPROTECT_PROMPTSTRUCT; -# 182 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dpapi.h" 3 -BOOL -__stdcall -CryptProtectData( - DATA_BLOB* pDataIn, - LPCWSTR szDataDescr, - DATA_BLOB* pOptionalEntropy, - PVOID pvReserved, - CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, - DWORD dwFlags, - DATA_BLOB* pDataOut - ); - - -BOOL -__stdcall -CryptUnprotectData( - DATA_BLOB* pDataIn, - LPWSTR* ppszDataDescr, - DATA_BLOB* pOptionalEntropy, - PVOID pvReserved, - CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, - DWORD dwFlags, - DATA_BLOB* pDataOut - ); -# 214 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dpapi.h" 3 -BOOL -__stdcall -CryptProtectDataNoUI( - DATA_BLOB* pDataIn, - LPCWSTR szDataDescr, - DATA_BLOB* pOptionalEntropy, - PVOID pvReserved, - CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, - DWORD dwFlags, - - const BYTE *pbOptionalPassword, - DWORD cbOptionalPassword, - DATA_BLOB* pDataOut - ); - -BOOL -__stdcall -CryptUnprotectDataNoUI( - DATA_BLOB* pDataIn, - LPWSTR* ppszDataDescr, - DATA_BLOB* pOptionalEntropy, - PVOID pvReserved, - CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, - DWORD dwFlags, - - const BYTE *pbOptionalPassword, - DWORD cbOptionalPassword, - DATA_BLOB* pDataOut - ); -# 254 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dpapi.h" 3 -BOOL -__stdcall -CryptUpdateProtectedState( - PSID pOldSid, - LPCWSTR pwszOldPassword, - DWORD dwFlags, - DWORD *pdwSuccessCount, - DWORD *pdwFailureCount); -# 310 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\dpapi.h" 3 -BOOL -__stdcall -CryptProtectMemory( - LPVOID pDataIn, - DWORD cbDataIn, - DWORD dwFlags - ); - - -BOOL -__stdcall -CryptUnprotectMemory( - LPVOID pDataIn, - DWORD cbDataIn, - DWORD dwFlags - ); -# 21883 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\wincrypt.h" 2 3 -# 211 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 1 3 -# 25 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) -# 61 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 -typedef struct _CERTIFICATE_BLOB { - - DWORD dwCertEncodingType; - - - - - - DWORD cbData; - - - - - PBYTE pbData; - -} EFS_CERTIFICATE_BLOB, *PEFS_CERTIFICATE_BLOB; - - - - - -typedef struct _EFS_HASH_BLOB { - - - - - DWORD cbData; - - - - - PBYTE pbData; - -} EFS_HASH_BLOB, *PEFS_HASH_BLOB; -# 104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 -typedef struct _EFS_RPC_BLOB { - - - - - DWORD cbData; - - - - - PBYTE pbData; - -} EFS_RPC_BLOB, *PEFS_RPC_BLOB; - - - - - - -typedef struct _EFS_PIN_BLOB { - - - - - DWORD cbPadding; - - - - - DWORD cbData; - - - - - PBYTE pbData; - -} EFS_PIN_BLOB, *PEFS_PIN_BLOB; - - - - - - - -typedef struct _EFS_KEY_INFO { - - DWORD dwVersion; - ULONG Entropy; - ALG_ID Algorithm; - ULONG KeyLength; - -} EFS_KEY_INFO, *PEFS_KEY_INFO; - - - - - - -typedef struct _EFS_COMPATIBILITY_INFO { - - DWORD EfsVersion; - -} EFS_COMPATIBILITY_INFO, *PEFS_COMPATIBILITY_INFO; -# 191 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 -typedef struct _EFS_VERSION_INFO { - DWORD EfsVersion; - DWORD SubVersion; -} EFS_VERSION_INFO, *PEFS_VERSION_INFO; -# 206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 -typedef struct _EFS_DECRYPTION_STATUS_INFO { - - DWORD dwDecryptionError; - DWORD dwHashOffset; - DWORD cbHash; - -} EFS_DECRYPTION_STATUS_INFO, *PEFS_DECRYPTION_STATUS_INFO; - -typedef struct _EFS_ENCRYPTION_STATUS_INFO { - - BOOL bHasCurrentKey; - DWORD dwEncryptionError; - -} EFS_ENCRYPTION_STATUS_INFO, *PEFS_ENCRYPTION_STATUS_INFO; - - - - - - - -typedef struct _ENCRYPTION_CERTIFICATE { - DWORD cbTotalLength; - SID * pUserSid; - PEFS_CERTIFICATE_BLOB pCertBlob; -} ENCRYPTION_CERTIFICATE, *PENCRYPTION_CERTIFICATE; - - - - -typedef struct _ENCRYPTION_CERTIFICATE_HASH { - DWORD cbTotalLength; - SID * pUserSid; - PEFS_HASH_BLOB pHash; - - - - - LPWSTR lpDisplayInformation; - -} ENCRYPTION_CERTIFICATE_HASH, *PENCRYPTION_CERTIFICATE_HASH; - -typedef struct _ENCRYPTION_CERTIFICATE_HASH_LIST { - - - - DWORD nCert_Hash; - - - - PENCRYPTION_CERTIFICATE_HASH * pUsers; -} ENCRYPTION_CERTIFICATE_HASH_LIST, *PENCRYPTION_CERTIFICATE_HASH_LIST; - - - -typedef struct _ENCRYPTION_CERTIFICATE_LIST { - - - - DWORD nUsers; - - - - PENCRYPTION_CERTIFICATE * pUsers; -} ENCRYPTION_CERTIFICATE_LIST, *PENCRYPTION_CERTIFICATE_LIST; -# 280 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 -typedef struct _ENCRYPTED_FILE_METADATA_SIGNATURE { - - DWORD dwEfsAccessType; - PENCRYPTION_CERTIFICATE_HASH_LIST pCertificatesAdded; - PENCRYPTION_CERTIFICATE pEncryptionCertificate; - PEFS_RPC_BLOB pEfsStreamSignature; - -} ENCRYPTED_FILE_METADATA_SIGNATURE, *PENCRYPTED_FILE_METADATA_SIGNATURE; - - - - - -typedef struct _ENCRYPTION_PROTECTOR{ - DWORD cbTotalLength; - SID * pUserSid; - - - - LPWSTR lpProtectorDescriptor; -} ENCRYPTION_PROTECTOR, *PENCRYPTION_PROTECTOR; - -typedef struct _ENCRYPTION_PROTECTOR_LIST { - DWORD nProtectors; - - - - PENCRYPTION_PROTECTOR *pProtectors; -} ENCRYPTION_PROTECTOR_LIST, *PENCRYPTION_PROTECTOR_LIST; -# 321 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 -__declspec(dllimport) -DWORD -__stdcall -QueryUsersOnEncryptedFile( - LPCWSTR lpFileName, - PENCRYPTION_CERTIFICATE_HASH_LIST *pUsers - ); - - -__declspec(dllimport) -DWORD -__stdcall -QueryRecoveryAgentsOnEncryptedFile( - LPCWSTR lpFileName, - PENCRYPTION_CERTIFICATE_HASH_LIST *pRecoveryAgents - ); - - -__declspec(dllimport) -DWORD -__stdcall -RemoveUsersFromEncryptedFile( - LPCWSTR lpFileName, - PENCRYPTION_CERTIFICATE_HASH_LIST pHashes - ); - -__declspec(dllimport) -DWORD -__stdcall -AddUsersToEncryptedFile( - LPCWSTR lpFileName, - PENCRYPTION_CERTIFICATE_LIST pEncryptionCertificates - ); - - - - - - - -__declspec(dllimport) -DWORD -__stdcall -SetUserFileEncryptionKey( - PENCRYPTION_CERTIFICATE pEncryptionCertificate - ); -# 382 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 -__declspec(dllimport) -DWORD -__stdcall -SetUserFileEncryptionKeyEx( - PENCRYPTION_CERTIFICATE pEncryptionCertificate, - DWORD dwCapabilities, - DWORD dwFlags, - LPVOID pvReserved - ); - - - -__declspec(dllimport) -void -__stdcall -FreeEncryptionCertificateHashList( - PENCRYPTION_CERTIFICATE_HASH_LIST pUsers - ); - -__declspec(dllimport) -BOOL -__stdcall -EncryptionDisable( - LPCWSTR DirPath, - BOOL Disable - ); - - - - - - - -__declspec(dllimport) -DWORD -__stdcall -DuplicateEncryptionInfoFile( - LPCWSTR SrcFileName, - LPCWSTR DstFileName, - DWORD dwCreationDistribution, - DWORD dwAttributes, - const LPSECURITY_ATTRIBUTES lpSecurityAttributes - ); -# 447 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 -__declspec(deprecated) -__declspec(dllimport) -DWORD -__stdcall -GetEncryptedFileMetadata( - LPCWSTR lpFileName, - PDWORD pcbMetadata, - PBYTE *ppbMetadata - ); - -__declspec(deprecated) -__declspec(dllimport) -DWORD -__stdcall -SetEncryptedFileMetadata( - LPCWSTR lpFileName, - PBYTE pbOldMetadata, - PBYTE pbNewMetadata, - PENCRYPTION_CERTIFICATE_HASH pOwnerHash, - DWORD dwOperation, - PENCRYPTION_CERTIFICATE_HASH_LIST pCertificatesAdded - ); - -__declspec(deprecated) -__declspec(dllimport) -void -__stdcall -FreeEncryptedFileMetadata( - PBYTE pbMetadata - ); -# 489 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winefs.h" 3 -#pragma warning(pop) -# 212 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 1 3 -# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 1 3 -# 22 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 1 3 -# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -#pragma warning(push) -#pragma warning(disable: 4001) -#pragma warning(disable: 4255) -#pragma warning(disable: 4668) -#pragma warning(disable: 4820) -# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,8) -# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 2 3 - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\rpcnsip.h" 1 3 -# 32 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\rpcnsip.h" 3 -typedef struct -{ - RPC_NS_HANDLE LookupContext; - RPC_BINDING_HANDLE ProposedHandle; - RPC_BINDING_VECTOR * Bindings; - -} RPC_IMPORT_CONTEXT_P, * PRPC_IMPORT_CONTEXT_P; - - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcNsGetBuffer( - PRPC_MESSAGE Message - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcNsSendReceive( - PRPC_MESSAGE Message, - RPC_BINDING_HANDLE * Handle - ); - -__declspec(dllimport) - -void -__stdcall -I_RpcNsRaiseException( - PRPC_MESSAGE Message, - RPC_STATUS Status - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_RpcReBindBuffer( - PRPC_MESSAGE Message - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_NsServerBindSearch( - void - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -I_NsClientBindSearch( - void - ); - -__declspec(dllimport) -void -__stdcall -I_NsClientBindDone( - void - ); -# 51 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 2 3 - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\rpcsal.h" 1 3 -# 54 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 2 3 -# 202 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -typedef unsigned char byte; -typedef byte cs_byte; -typedef unsigned char boolean; -# 249 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -void * __stdcall MIDL_user_allocate( size_t size); -void __stdcall MIDL_user_free( void * ); - - - -void * __stdcall I_RpcDefaultAllocate( - handle_t bh, size_t size, void * (* RealAlloc)(size_t) ); - -void __stdcall I_RpcDefaultFree( - handle_t bh, void *, void (*RealFree)(void *) ); -# 284 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -typedef void * NDR_CCONTEXT; - -typedef struct _NDR_SCONTEXT - { - void * pad[2]; - void * userContext; - } * NDR_SCONTEXT; - - - - - -typedef void (__stdcall * NDR_RUNDOWN)(void * context); - -typedef void (__stdcall * NDR_NOTIFY_ROUTINE)(void); - -typedef void (__stdcall * NDR_NOTIFY2_ROUTINE)(boolean flag); - -typedef struct _SCONTEXT_QUEUE { - unsigned long NumberOfObjects; - NDR_SCONTEXT * ArrayOfObjects; - } SCONTEXT_QUEUE, * PSCONTEXT_QUEUE; - -__declspec(dllimport) -RPC_BINDING_HANDLE -__stdcall -NDRCContextBinding ( - NDR_CCONTEXT CContext - ); - -__declspec(dllimport) -void -__stdcall -NDRCContextMarshall ( - NDR_CCONTEXT CContext, - void *pBuff - ); - -__declspec(dllimport) -void -__stdcall -NDRCContextUnmarshall ( - NDR_CCONTEXT * pCContext, - RPC_BINDING_HANDLE hBinding, - void * pBuff, - unsigned long DataRepresentation - ); - -__declspec(dllimport) -void -__stdcall -NDRCContextUnmarshall2 ( - NDR_CCONTEXT * pCContext, - RPC_BINDING_HANDLE hBinding, - void * pBuff, - unsigned long DataRepresentation - ); - -__declspec(dllimport) -void -__stdcall -NDRSContextMarshall ( - NDR_SCONTEXT CContext, - void * pBuff, - NDR_RUNDOWN userRunDownIn - ); - -__declspec(dllimport) -NDR_SCONTEXT -__stdcall -NDRSContextUnmarshall ( - void * pBuff, - unsigned long DataRepresentation - ); - -__declspec(dllimport) -void -__stdcall -NDRSContextMarshallEx ( - RPC_BINDING_HANDLE BindingHandle, - NDR_SCONTEXT CContext, - void * pBuff, - NDR_RUNDOWN userRunDownIn - ); - -__declspec(dllimport) -void -__stdcall -NDRSContextMarshall2 ( - RPC_BINDING_HANDLE BindingHandle, - NDR_SCONTEXT CContext, - void * pBuff, - NDR_RUNDOWN userRunDownIn, - void * CtxGuard, - unsigned long Flags - ); - -__declspec(dllimport) -NDR_SCONTEXT -__stdcall -NDRSContextUnmarshallEx ( - RPC_BINDING_HANDLE BindingHandle, - void * pBuff, - unsigned long DataRepresentation - ); - -__declspec(dllimport) -NDR_SCONTEXT -__stdcall -NDRSContextUnmarshall2( - RPC_BINDING_HANDLE BindingHandle, - void * pBuff, - unsigned long DataRepresentation, - void * CtxGuard, - unsigned long Flags - ); - -__declspec(dllimport) -void -__stdcall -RpcSsDestroyClientContext ( - void * * ContextHandle - ); -# 477 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -typedef unsigned long error_status_t; -# 560 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -struct _MIDL_STUB_MESSAGE; -struct _MIDL_STUB_DESC; -struct _FULL_PTR_XLAT_TABLES; - -typedef unsigned char * RPC_BUFPTR; -typedef unsigned long RPC_LENGTH; - - -typedef void (__stdcall * EXPR_EVAL)( struct _MIDL_STUB_MESSAGE * ); - -typedef const unsigned char * PFORMAT_STRING; - - - - -typedef struct - { - long Dimension; - - - unsigned long * BufferConformanceMark; - unsigned long * BufferVarianceMark; - - - unsigned long * MaxCountArray; - unsigned long * OffsetArray; - unsigned long * ActualCountArray; - } ARRAY_INFO, *PARRAY_INFO; - - -typedef struct _NDR_ASYNC_MESSAGE * PNDR_ASYNC_MESSAGE; -typedef struct _NDR_CORRELATION_INFO *PNDR_CORRELATION_INFO; - - - - - -typedef const unsigned char * PFORMAT_STRING; -typedef struct _MIDL_SYNTAX_INFO MIDL_SYNTAX_INFO, *PMIDL_SYNTAX_INFO; - -struct NDR_ALLOC_ALL_NODES_CONTEXT; -struct NDR_POINTER_QUEUE_STATE; -struct _NDR_PROC_CONTEXT; - -typedef struct _MIDL_STUB_MESSAGE - { - - PRPC_MESSAGE RpcMsg; - - - unsigned char * Buffer; - - - - - - unsigned char * BufferStart; - unsigned char * BufferEnd; -# 626 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 - unsigned char * BufferMark; - - - unsigned long BufferLength; - - - unsigned long MemorySize; - - - unsigned char * Memory; - - - unsigned char IsClient; - unsigned char Pad; - unsigned short uFlags2; - - - int ReuseBuffer; - - - struct NDR_ALLOC_ALL_NODES_CONTEXT *pAllocAllNodesContext; - struct NDR_POINTER_QUEUE_STATE *pPointerQueueState; - - - - - - - int IgnoreEmbeddedPointers; - - - - - - unsigned char * PointerBufferMark; - - - - - unsigned char CorrDespIncrement; - - unsigned char uFlags; - unsigned short UniquePtrCount; - - - - - - ULONG_PTR MaxCount; - - - - - - unsigned long Offset; - - - - - - unsigned long ActualCount; - - - void * ( __stdcall * pfnAllocate)( size_t ); - void ( __stdcall * pfnFree)(void *); - - - - - - - - unsigned char * StackTop; - - - - - - unsigned char * pPresentedType; - unsigned char * pTransmitType; -# 715 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 - handle_t SavedHandle; - - - - - const struct _MIDL_STUB_DESC * StubDesc; - - - - - struct _FULL_PTR_XLAT_TABLES * FullPtrXlatTables; - unsigned long FullPtrRefId; - - unsigned long PointerLength; - - int fInDontFree :1; - int fDontCallFreeInst :1; - int fUnused1 :1; - int fHasReturn :1; - int fHasExtensions :1; - int fHasNewCorrDesc :1; - int fIsIn :1; - int fIsOut :1; - int fIsOicf :1; - int fBufferValid :1; - int fHasMemoryValidateCallback: 1; - int fInFree :1; - int fNeedMCCP :1; - int fUnused2 :3; - int fUnused3 :16; - - - unsigned long dwDestContext; - void * pvDestContext; - - NDR_SCONTEXT * SavedContextHandles; - - long ParamNumber; - - struct IRpcChannelBuffer * pRpcChannelBuffer; - - PARRAY_INFO pArrayInfo; - unsigned long * SizePtrCountArray; - unsigned long * SizePtrOffsetArray; - unsigned long * SizePtrLengthArray; - - - - - void * pArgQueue; - - unsigned long dwStubPhase; - - void * LowStackMark; - - - - - PNDR_ASYNC_MESSAGE pAsyncMsg; - PNDR_CORRELATION_INFO pCorrInfo; - unsigned char * pCorrMemory; - - void * pMemoryList; -# 788 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 - INT_PTR pCSInfo; - - unsigned char * ConformanceMark; - unsigned char * VarianceMark; - - INT_PTR Unused; - - struct _NDR_PROC_CONTEXT * pContext; -# 807 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 - void * ContextHandleHash; - void * pUserMarshalList; - INT_PTR Reserved51_3; - INT_PTR Reserved51_4; - INT_PTR Reserved51_5; - - - - - - } MIDL_STUB_MESSAGE, *PMIDL_STUB_MESSAGE; - - -typedef struct _MIDL_STUB_MESSAGE MIDL_STUB_MESSAGE, *PMIDL_STUB_MESSAGE; - - - - -typedef void * - ( __stdcall * GENERIC_BINDING_ROUTINE) - (void *); -typedef void - ( __stdcall * GENERIC_UNBIND_ROUTINE) - (void *, unsigned char *); - -typedef struct _GENERIC_BINDING_ROUTINE_PAIR - { - GENERIC_BINDING_ROUTINE pfnBind; - GENERIC_UNBIND_ROUTINE pfnUnbind; - } GENERIC_BINDING_ROUTINE_PAIR, *PGENERIC_BINDING_ROUTINE_PAIR; - -typedef struct __GENERIC_BINDING_INFO - { - void * pObj; - unsigned int Size; - GENERIC_BINDING_ROUTINE pfnBind; - GENERIC_UNBIND_ROUTINE pfnUnbind; - } GENERIC_BINDING_INFO, *PGENERIC_BINDING_INFO; -# 858 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -typedef void ( __stdcall * XMIT_HELPER_ROUTINE) - ( PMIDL_STUB_MESSAGE ); - -typedef struct _XMIT_ROUTINE_QUINTUPLE - { - XMIT_HELPER_ROUTINE pfnTranslateToXmit; - XMIT_HELPER_ROUTINE pfnTranslateFromXmit; - XMIT_HELPER_ROUTINE pfnFreeXmit; - XMIT_HELPER_ROUTINE pfnFreeInst; - } XMIT_ROUTINE_QUINTUPLE, *PXMIT_ROUTINE_QUINTUPLE; - -typedef unsigned long -( __stdcall * USER_MARSHAL_SIZING_ROUTINE) - (unsigned long *, - unsigned long, - void * ); - -typedef unsigned char * -( __stdcall * USER_MARSHAL_MARSHALLING_ROUTINE) - (unsigned long *, - unsigned char * , - void * ); - -typedef unsigned char * -( __stdcall * USER_MARSHAL_UNMARSHALLING_ROUTINE) - (unsigned long *, - unsigned char *, - void * ); - -typedef void ( __stdcall * USER_MARSHAL_FREEING_ROUTINE) - (unsigned long *, - void * ); - -typedef struct _USER_MARSHAL_ROUTINE_QUADRUPLE - { - USER_MARSHAL_SIZING_ROUTINE pfnBufferSize; - USER_MARSHAL_MARSHALLING_ROUTINE pfnMarshall; - USER_MARSHAL_UNMARSHALLING_ROUTINE pfnUnmarshall; - USER_MARSHAL_FREEING_ROUTINE pfnFree; - } USER_MARSHAL_ROUTINE_QUADRUPLE; - - - -typedef enum _USER_MARSHAL_CB_TYPE -{ - USER_MARSHAL_CB_BUFFER_SIZE, - USER_MARSHAL_CB_MARSHALL, - USER_MARSHAL_CB_UNMARSHALL, - USER_MARSHAL_CB_FREE -} USER_MARSHAL_CB_TYPE; - -typedef struct _USER_MARSHAL_CB -{ - unsigned long Flags; - PMIDL_STUB_MESSAGE pStubMsg; - PFORMAT_STRING pReserve; - unsigned long Signature; - USER_MARSHAL_CB_TYPE CBType; - PFORMAT_STRING pFormat; - PFORMAT_STRING pTypeFormat; -} USER_MARSHAL_CB; -# 928 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -typedef struct _MALLOC_FREE_STRUCT - { - void * ( __stdcall * pfnAllocate)(size_t); - void ( __stdcall * pfnFree)(void *); - } MALLOC_FREE_STRUCT; - -typedef struct _COMM_FAULT_OFFSETS - { - short CommOffset; - short FaultOffset; - } COMM_FAULT_OFFSETS; - - - - - -typedef enum _IDL_CS_CONVERT - { - IDL_CS_NO_CONVERT, - IDL_CS_IN_PLACE_CONVERT, - IDL_CS_NEW_BUFFER_CONVERT - } IDL_CS_CONVERT; - -typedef void -( __stdcall * CS_TYPE_NET_SIZE_ROUTINE) - (RPC_BINDING_HANDLE hBinding, - unsigned long ulNetworkCodeSet, - unsigned long ulLocalBufferSize, - IDL_CS_CONVERT * conversionType, - unsigned long * pulNetworkBufferSize, - error_status_t * pStatus); - -typedef void -( __stdcall * CS_TYPE_LOCAL_SIZE_ROUTINE) - (RPC_BINDING_HANDLE hBinding, - unsigned long ulNetworkCodeSet, - unsigned long ulNetworkBufferSize, - IDL_CS_CONVERT * conversionType, - unsigned long * pulLocalBufferSize, - error_status_t * pStatus); - -typedef void -( __stdcall * CS_TYPE_TO_NETCS_ROUTINE) - (RPC_BINDING_HANDLE hBinding, - unsigned long ulNetworkCodeSet, - void * pLocalData, - unsigned long ulLocalDataLength, - byte * pNetworkData, - unsigned long * pulNetworkDataLength, - error_status_t * pStatus); - -typedef void -( __stdcall * CS_TYPE_FROM_NETCS_ROUTINE) - (RPC_BINDING_HANDLE hBinding, - unsigned long ulNetworkCodeSet, - byte * pNetworkData, - unsigned long ulNetworkDataLength, - unsigned long ulLocalBufferSize, - void * pLocalData, - unsigned long * pulLocalDataLength, - error_status_t * pStatus); - -typedef void -( __stdcall * CS_TAG_GETTING_ROUTINE) - (RPC_BINDING_HANDLE hBinding, - int fServerSide, - unsigned long * pulSendingTag, - unsigned long * pulDesiredReceivingTag, - unsigned long * pulReceivingTag, - error_status_t * pStatus); - -void __stdcall -RpcCsGetTags( - RPC_BINDING_HANDLE hBinding, - int fServerSide, - unsigned long * pulSendingTag, - unsigned long * pulDesiredReceivingTag, - unsigned long * pulReceivingTag, - error_status_t * pStatus); - -typedef struct _NDR_CS_SIZE_CONVERT_ROUTINES - { - CS_TYPE_NET_SIZE_ROUTINE pfnNetSize; - CS_TYPE_TO_NETCS_ROUTINE pfnToNetCs; - CS_TYPE_LOCAL_SIZE_ROUTINE pfnLocalSize; - CS_TYPE_FROM_NETCS_ROUTINE pfnFromNetCs; - } NDR_CS_SIZE_CONVERT_ROUTINES; - -typedef struct _NDR_CS_ROUTINES - { - NDR_CS_SIZE_CONVERT_ROUTINES *pSizeConvertRoutines; - CS_TAG_GETTING_ROUTINE *pTagGettingRoutines; - } NDR_CS_ROUTINES; - -typedef struct _NDR_EXPR_DESC -{ - const unsigned short * pOffset; - PFORMAT_STRING pFormatExpr; -} NDR_EXPR_DESC; - - - - -typedef struct _MIDL_STUB_DESC - { - void * RpcInterfaceInformation; - - void * ( __stdcall * pfnAllocate)(size_t); - void ( __stdcall * pfnFree)(void *); - - union - { - handle_t * pAutoHandle; - handle_t * pPrimitiveHandle; - PGENERIC_BINDING_INFO pGenericBindingInfo; - } IMPLICIT_HANDLE_INFO; - - const NDR_RUNDOWN * apfnNdrRundownRoutines; - const GENERIC_BINDING_ROUTINE_PAIR * aGenericBindingRoutinePairs; - const EXPR_EVAL * apfnExprEval; - const XMIT_ROUTINE_QUINTUPLE * aXmitQuintuple; - - const unsigned char * pFormatTypes; - - int fCheckBounds; - - - unsigned long Version; - - MALLOC_FREE_STRUCT * pMallocFreeStruct; - - long MIDLVersion; - - const COMM_FAULT_OFFSETS * CommFaultOffsets; - - - const USER_MARSHAL_ROUTINE_QUADRUPLE * aUserMarshalQuadruple; - - - const NDR_NOTIFY_ROUTINE * NotifyRoutineTable; - - - - - - ULONG_PTR mFlags; - - - const NDR_CS_ROUTINES * CsRoutineTables; - - void * ProxyServerInfo; - const NDR_EXPR_DESC * pExprInfo; - - - - } MIDL_STUB_DESC; - - -typedef const MIDL_STUB_DESC * PMIDL_STUB_DESC; - -typedef void * PMIDL_XMIT_TYPE; - - - - - - - -#pragma warning(push) - -#pragma warning(disable: 4200) - -typedef struct _MIDL_FORMAT_STRING - { - short Pad; - unsigned char Format[]; - } MIDL_FORMAT_STRING; - - -#pragma warning(pop) -# 1117 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -typedef void ( __stdcall * STUB_THUNK)( PMIDL_STUB_MESSAGE ); - - -typedef long ( __stdcall * SERVER_ROUTINE)(); - - - - - - - -typedef struct _MIDL_METHOD_PROPERTY -{ - unsigned long Id; - ULONG_PTR Value; -} MIDL_METHOD_PROPERTY, *PMIDL_METHOD_PROPERTY; - -typedef struct _MIDL_METHOD_PROPERTY_MAP -{ - unsigned long Count; - const MIDL_METHOD_PROPERTY *Properties; -} MIDL_METHOD_PROPERTY_MAP, *PMIDL_METHOD_PROPERTY_MAP; - -typedef struct _MIDL_INTERFACE_METHOD_PROPERTIES -{ - unsigned short MethodCount; - const MIDL_METHOD_PROPERTY_MAP* const *MethodProperties; -} MIDL_INTERFACE_METHOD_PROPERTIES; - - - - -typedef struct _MIDL_SERVER_INFO_ - { - PMIDL_STUB_DESC pStubDesc; - const SERVER_ROUTINE * DispatchTable; - PFORMAT_STRING ProcString; - const unsigned short * FmtStringOffset; - const STUB_THUNK * ThunkTable; - PRPC_SYNTAX_IDENTIFIER pTransferSyntax; - ULONG_PTR nCount; - PMIDL_SYNTAX_INFO pSyntaxInfo; - } MIDL_SERVER_INFO, *PMIDL_SERVER_INFO; - - - - - - -typedef struct _MIDL_STUBLESS_PROXY_INFO - { - PMIDL_STUB_DESC pStubDesc; - PFORMAT_STRING ProcFormatString; - const unsigned short * FormatStringOffset; - PRPC_SYNTAX_IDENTIFIER pTransferSyntax; - ULONG_PTR nCount; - PMIDL_SYNTAX_INFO pSyntaxInfo; - } MIDL_STUBLESS_PROXY_INFO; - -typedef MIDL_STUBLESS_PROXY_INFO * PMIDL_STUBLESS_PROXY_INFO; - - - - -typedef struct _MIDL_SYNTAX_INFO -{ -RPC_SYNTAX_IDENTIFIER TransferSyntax; -RPC_DISPATCH_TABLE * DispatchTable; -PFORMAT_STRING ProcString; -const unsigned short * FmtStringOffset; -PFORMAT_STRING TypeString; -const void * aUserMarshalQuadruple; -const MIDL_INTERFACE_METHOD_PROPERTIES *pMethodProperties; -ULONG_PTR pReserved2; -} MIDL_SYNTAX_INFO, *PMIDL_SYNTAX_INFO; - -typedef unsigned short * PARAM_OFFSETTABLE, *PPARAM_OFFSETTABLE; - - - - - -typedef union _CLIENT_CALL_RETURN - { - void * Pointer; - LONG_PTR Simple; - } CLIENT_CALL_RETURN; - - -typedef enum - { - XLAT_SERVER = 1, - XLAT_CLIENT - } XLAT_SIDE; - -typedef struct _FULL_PTR_XLAT_TABLES -{ - void * RefIdToPointer; - void * PointerToRefId; - unsigned long NextRefId; - XLAT_SIDE XlatSide; -} FULL_PTR_XLAT_TABLES, *PFULL_PTR_XLAT_TABLES; - - - - - -typedef enum _system_handle_t -{ - SYSTEM_HANDLE_FILE = 0, - SYSTEM_HANDLE_SEMAPHORE = 1, - SYSTEM_HANDLE_EVENT = 2, - SYSTEM_HANDLE_MUTEX = 3, - SYSTEM_HANDLE_PROCESS = 4, - SYSTEM_HANDLE_TOKEN = 5, - SYSTEM_HANDLE_SECTION = 6, - SYSTEM_HANDLE_REG_KEY = 7, - SYSTEM_HANDLE_THREAD = 8, - SYSTEM_HANDLE_COMPOSITION_OBJECT = 9, - SYSTEM_HANDLE_SOCKET = 10, - SYSTEM_HANDLE_JOB = 11, - SYSTEM_HANDLE_PIPE = 12, - SYSTEM_HANDLE_MAX = 12, - SYSTEM_HANDLE_INVALID = 0xFF, -} system_handle_t; - - - - - -enum { - MidlInterceptionInfoVersionOne = 1 -}; - -enum { - MidlWinrtTypeSerializationInfoVersionOne = 1 -}; - - - -typedef struct _MIDL_INTERCEPTION_INFO -{ - unsigned long Version; - PFORMAT_STRING ProcString; - const unsigned short *ProcFormatOffsetTable; - unsigned long ProcCount; - PFORMAT_STRING TypeString; -} MIDL_INTERCEPTION_INFO, *PMIDL_INTERCEPTION_INFO; - -typedef struct _MIDL_WINRT_TYPE_SERIALIZATION_INFO -{ - unsigned long Version; - PFORMAT_STRING TypeFormatString; - unsigned short FormatStringSize; - unsigned short TypeOffset; - PMIDL_STUB_DESC StubDesc; -} MIDL_WINRT_TYPE_SERIALIZATION_INFO, *PMIDL_WINRT_TYPE_SERIALIZATION_INFO; - - - - - -RPC_STATUS __stdcall -NdrClientGetSupportedSyntaxes( - RPC_CLIENT_INTERFACE * pInf, - unsigned long * pCount, - MIDL_SYNTAX_INFO ** pArr ); - - -RPC_STATUS __stdcall -NdrServerGetSupportedSyntaxes( - RPC_SERVER_INTERFACE * pInf, - unsigned long * pCount, - MIDL_SYNTAX_INFO ** pArr, - unsigned long * pPreferSyntaxIndex); - - - - -#pragma warning(push) - -#pragma warning(disable: 28740) - -__declspec(dllimport) -void -__stdcall -NdrSimpleTypeMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - unsigned char FormatChar - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrPointerMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrCsArrayMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrCsTagMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrSimpleStructMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrConformantStructMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrConformantVaryingStructMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrComplexStructMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrFixedArrayMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrConformantArrayMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrConformantVaryingArrayMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrVaryingArrayMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrComplexArrayMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrNonConformantStringMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrConformantStringMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrEncapsulatedUnionMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrNonEncapsulatedUnionMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrByteCountPointerMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrXmitOrRepAsMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrUserMarshalMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrInterfacePointerMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrClientContextMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - NDR_CCONTEXT ContextHandle, - int fCheck - ); - -__declspec(dllimport) -void -__stdcall -NdrServerContextMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - NDR_SCONTEXT ContextHandle, - NDR_RUNDOWN RundownRoutine - ); - -__declspec(dllimport) -void -__stdcall -NdrServerContextNewMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - NDR_SCONTEXT ContextHandle, - NDR_RUNDOWN RundownRoutine, - PFORMAT_STRING pFormat - ); - - - - - -__declspec(dllimport) -void -__stdcall -NdrSimpleTypeUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - unsigned char FormatChar - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrCsArrayUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char ** ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrCsTagUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char ** ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrRangeUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char ** ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - -__declspec(dllimport) -void -__stdcall -NdrCorrelationInitialize( - PMIDL_STUB_MESSAGE pStubMsg, - void * pMemory, - unsigned long CacheSize, - unsigned long flags - ); - -__declspec(dllimport) -void -__stdcall -NdrCorrelationPass( - PMIDL_STUB_MESSAGE pStubMsg - ); - -__declspec(dllimport) -void -__stdcall -NdrCorrelationFree( - PMIDL_STUB_MESSAGE pStubMsg - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrPointerUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrSimpleStructUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrConformantStructUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrConformantVaryingStructUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrComplexStructUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrFixedArrayUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrConformantArrayUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrConformantVaryingArrayUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrVaryingArrayUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrComplexArrayUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrNonConformantStringUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrConformantStringUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrEncapsulatedUnionUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrNonEncapsulatedUnionUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrByteCountPointerUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrXmitOrRepAsUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrUserMarshalUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - - - -__declspec(dllimport) -unsigned char * -__stdcall -NdrInterfacePointerUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * * ppMemory, - PFORMAT_STRING pFormat, - unsigned char fMustAlloc - ); - - - -__declspec(dllimport) -void -__stdcall -NdrClientContextUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - NDR_CCONTEXT * pContextHandle, - RPC_BINDING_HANDLE BindHandle - ); - -__declspec(dllimport) -NDR_SCONTEXT -__stdcall -NdrServerContextUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg - ); - - - -__declspec(dllimport) -NDR_SCONTEXT -__stdcall -NdrContextHandleInitialize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -NDR_SCONTEXT -__stdcall -NdrServerContextNewUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - - - - - -__declspec(dllimport) -void -__stdcall -NdrPointerBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrCsArrayBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrCsTagBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrSimpleStructBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrConformantStructBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrConformantVaryingStructBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrComplexStructBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrFixedArrayBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrConformantArrayBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrConformantVaryingArrayBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrVaryingArrayBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrComplexArrayBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrConformantStringBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrNonConformantStringBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrEncapsulatedUnionBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrNonEncapsulatedUnionBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrByteCountPointerBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrXmitOrRepAsBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrUserMarshalBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrInterfacePointerBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrContextHandleSize( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - - - -__declspec(dllimport) -unsigned long -__stdcall -NdrPointerMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned long -__stdcall -NdrContextHandleMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - - - - -__declspec(dllimport) -unsigned long -__stdcall -NdrCsArrayMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned long -__stdcall -NdrCsTagMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned long -__stdcall -NdrSimpleStructMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned long -__stdcall -NdrConformantStructMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned long -__stdcall -NdrConformantVaryingStructMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned long -__stdcall -NdrComplexStructMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned long -__stdcall -NdrFixedArrayMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned long -__stdcall -NdrConformantArrayMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned long -__stdcall -NdrConformantVaryingArrayMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned long -__stdcall -NdrVaryingArrayMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned long -__stdcall -NdrComplexArrayMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned long -__stdcall -NdrConformantStringMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned long -__stdcall -NdrNonConformantStringMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned long -__stdcall -NdrEncapsulatedUnionMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -unsigned long -__stdcall -NdrNonEncapsulatedUnionMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned long -__stdcall -NdrXmitOrRepAsMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned long -__stdcall -NdrUserMarshalMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -unsigned long -__stdcall -NdrInterfacePointerMemorySize( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - - - - - -__declspec(dllimport) -void -__stdcall -NdrPointerFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrCsArrayFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrSimpleStructFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrConformantStructFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrConformantVaryingStructFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrComplexStructFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrFixedArrayFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrConformantArrayFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrConformantVaryingArrayFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrVaryingArrayFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrComplexArrayFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrEncapsulatedUnionFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - -__declspec(dllimport) -void -__stdcall -NdrNonEncapsulatedUnionFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrByteCountPointerFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrXmitOrRepAsFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrUserMarshalFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -void -__stdcall -NdrInterfacePointerFree( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pMemory, - PFORMAT_STRING pFormat - ); - - - - - -__declspec(dllimport) -void -__stdcall -NdrConvert2( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat, - long NumberParams - ); - -__declspec(dllimport) -void -__stdcall -NdrConvert( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); -# 2431 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -__declspec(dllimport) -unsigned char * -__stdcall -NdrUserMarshalSimpleTypeConvert( - unsigned long * pFlags, - unsigned char * pBuffer, - unsigned char FormatChar - ); - - - - - -__declspec(dllimport) -void -__stdcall -NdrClientInitializeNew( - PRPC_MESSAGE pRpcMsg, - PMIDL_STUB_MESSAGE pStubMsg, - PMIDL_STUB_DESC pStubDescriptor, - unsigned int ProcNum - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrServerInitializeNew( - PRPC_MESSAGE pRpcMsg, - PMIDL_STUB_MESSAGE pStubMsg, - PMIDL_STUB_DESC pStubDescriptor - ); - -__declspec(dllimport) -void -__stdcall -NdrServerInitializePartial( - PRPC_MESSAGE pRpcMsg, - PMIDL_STUB_MESSAGE pStubMsg, - PMIDL_STUB_DESC pStubDescriptor, - unsigned long RequestedBufferSize - ); - -__declspec(dllimport) -void -__stdcall -NdrClientInitialize( - PRPC_MESSAGE pRpcMsg, - PMIDL_STUB_MESSAGE pStubMsg, - PMIDL_STUB_DESC pStubDescriptor, - unsigned int ProcNum - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrServerInitialize( - PRPC_MESSAGE pRpcMsg, - PMIDL_STUB_MESSAGE pStubMsg, - PMIDL_STUB_DESC pStubDescriptor - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrServerInitializeUnmarshall ( - PMIDL_STUB_MESSAGE pStubMsg, - PMIDL_STUB_DESC pStubDescriptor, - PRPC_MESSAGE pRpcMsg - ); - -__declspec(dllimport) -void -__stdcall -NdrServerInitializeMarshall ( - PRPC_MESSAGE pRpcMsg, - PMIDL_STUB_MESSAGE pStubMsg - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrGetBuffer( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned long BufferLength, - RPC_BINDING_HANDLE Handle - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrNsGetBuffer( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned long BufferLength, - RPC_BINDING_HANDLE Handle - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrSendReceive( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pBufferEnd - ); - -__declspec(dllimport) -unsigned char * -__stdcall -NdrNsSendReceive( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned char * pBufferEnd, - RPC_BINDING_HANDLE * pAutoHandle - ); - -__declspec(dllimport) -void -__stdcall -NdrFreeBuffer( - PMIDL_STUB_MESSAGE pStubMsg - ); - -__declspec(dllimport) -HRESULT -__stdcall -NdrGetDcomProtocolVersion( - PMIDL_STUB_MESSAGE pStubMsg, - RPC_VERSION * pVersion ); - -#pragma warning(pop) - - - - - - - -CLIENT_CALL_RETURN __cdecl -NdrClientCall2( - PMIDL_STUB_DESC pStubDescriptor, - PFORMAT_STRING pFormat, - ... - ); - -CLIENT_CALL_RETURN __cdecl -NdrClientCall( - PMIDL_STUB_DESC pStubDescriptor, - PFORMAT_STRING pFormat, - ... - ); - -CLIENT_CALL_RETURN __cdecl -NdrAsyncClientCall( - PMIDL_STUB_DESC pStubDescriptor, - PFORMAT_STRING pFormat, - ... - ); -# 2619 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -CLIENT_CALL_RETURN __cdecl -NdrDcomAsyncClientCall( - PMIDL_STUB_DESC pStubDescriptor, - PFORMAT_STRING pFormat, - ... - ); -# 2644 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -typedef enum { - STUB_UNMARSHAL, - STUB_CALL_SERVER, - STUB_MARSHAL, - STUB_CALL_SERVER_NO_HRESULT -}STUB_PHASE; - -typedef enum { - PROXY_CALCSIZE, - PROXY_GETBUFFER, - PROXY_MARSHAL, - PROXY_SENDRECEIVE, - PROXY_UNMARSHAL -}PROXY_PHASE; - -struct IRpcStubBuffer; - - - -__declspec(dllimport) -void -__stdcall -NdrAsyncServerCall( - PRPC_MESSAGE pRpcMsg - ); - - -__declspec(dllimport) -long -__stdcall -NdrAsyncStubCall( - struct IRpcStubBuffer * pThis, - struct IRpcChannelBuffer * pChannel, - PRPC_MESSAGE pRpcMsg, - unsigned long * pdwStubPhase - ); -# 2688 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -__declspec(dllimport) -long -__stdcall -NdrDcomAsyncStubCall( - struct IRpcStubBuffer * pThis, - struct IRpcChannelBuffer * pChannel, - PRPC_MESSAGE pRpcMsg, - unsigned long * pdwStubPhase - ); - - - - - - - -__declspec(dllimport) -long -__stdcall -NdrStubCall2( - void * pThis, - void * pChannel, - PRPC_MESSAGE pRpcMsg, - unsigned long * pdwStubPhase - ); - -__declspec(dllimport) -void -__stdcall -NdrServerCall2( - PRPC_MESSAGE pRpcMsg - ); - -__declspec(dllimport) -long -__stdcall -NdrStubCall ( - void * pThis, - void * pChannel, - PRPC_MESSAGE pRpcMsg, - unsigned long * pdwStubPhase - ); - -__declspec(dllimport) -void -__stdcall -NdrServerCall( - PRPC_MESSAGE pRpcMsg - ); - -__declspec(dllimport) -int -__stdcall -NdrServerUnmarshall( - void * pChannel, - PRPC_MESSAGE pRpcMsg, - PMIDL_STUB_MESSAGE pStubMsg, - PMIDL_STUB_DESC pStubDescriptor, - PFORMAT_STRING pFormat, - void * pParamList - ); - -__declspec(dllimport) -void -__stdcall -NdrServerMarshall( - void * pThis, - void * pChannel, - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat - ); - - - -__declspec(dllimport) -RPC_STATUS -__stdcall -NdrMapCommAndFaultStatus( - PMIDL_STUB_MESSAGE pStubMsg, - unsigned long * pCommStatus, - unsigned long * pFaultStatus, - RPC_STATUS Status - ); - - - - - - - -typedef void * RPC_SS_THREAD_HANDLE; - -typedef void * __stdcall -RPC_CLIENT_ALLOC ( - size_t Size - ); - -typedef void __stdcall -RPC_CLIENT_FREE ( - void * Ptr - ); - - - - - -__declspec(dllimport) -void * -__stdcall -RpcSsAllocate ( - size_t Size - ); - -__declspec(dllimport) -void -__stdcall -RpcSsDisableAllocate ( - void - ); - -__declspec(dllimport) -void -__stdcall -RpcSsEnableAllocate ( - void - ); - -__declspec(dllimport) -void -__stdcall -RpcSsFree ( - void * NodeToFree - ); - -__declspec(dllimport) -RPC_SS_THREAD_HANDLE -__stdcall -RpcSsGetThreadHandle ( - void - ); - -__declspec(dllimport) -void -__stdcall -RpcSsSetClientAllocFree ( - RPC_CLIENT_ALLOC * ClientAlloc, - RPC_CLIENT_FREE * ClientFree - ); - -__declspec(dllimport) -void -__stdcall -RpcSsSetThreadHandle ( - RPC_SS_THREAD_HANDLE Id - ); - -__declspec(dllimport) -void -__stdcall -RpcSsSwapClientAllocFree ( - RPC_CLIENT_ALLOC * ClientAlloc, - RPC_CLIENT_FREE * ClientFree, - RPC_CLIENT_ALLOC * * OldClientAlloc, - RPC_CLIENT_FREE * * OldClientFree - ); - - - - - -__declspec(dllimport) -void * -__stdcall -RpcSmAllocate ( - size_t Size, - RPC_STATUS * pStatus - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcSmClientFree ( - void * pNodeToFree - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcSmDestroyClientContext ( - void * * ContextHandle - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcSmDisableAllocate ( - void - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcSmEnableAllocate ( - void - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcSmFree ( - void * NodeToFree - ); - -__declspec(dllimport) -RPC_SS_THREAD_HANDLE -__stdcall -RpcSmGetThreadHandle ( - RPC_STATUS * pStatus - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcSmSetClientAllocFree ( - RPC_CLIENT_ALLOC * ClientAlloc, - RPC_CLIENT_FREE * ClientFree - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcSmSetThreadHandle ( - RPC_SS_THREAD_HANDLE Id - ); - -__declspec(dllimport) -RPC_STATUS -__stdcall -RpcSmSwapClientAllocFree ( - RPC_CLIENT_ALLOC * ClientAlloc, - RPC_CLIENT_FREE * ClientFree, - RPC_CLIENT_ALLOC * * OldClientAlloc, - RPC_CLIENT_FREE * * OldClientFree - ); - - - - - -__declspec(dllimport) -void -__stdcall -NdrRpcSsEnableAllocate( - PMIDL_STUB_MESSAGE pMessage ); - -__declspec(dllimport) -void -__stdcall -NdrRpcSsDisableAllocate( - PMIDL_STUB_MESSAGE pMessage ); - -__declspec(dllimport) -void -__stdcall -NdrRpcSmSetClientToOsf( - PMIDL_STUB_MESSAGE pMessage ); - -__declspec(dllimport) -void * -__stdcall -NdrRpcSmClientAllocate ( - size_t Size - ); - -__declspec(dllimport) -void -__stdcall -NdrRpcSmClientFree ( - void * NodeToFree - ); - -__declspec(dllimport) -void * -__stdcall -NdrRpcSsDefaultAllocate ( - size_t Size - ); - -__declspec(dllimport) -void -__stdcall -NdrRpcSsDefaultFree ( - void * NodeToFree - ); -# 2991 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -__declspec(dllimport) -PFULL_PTR_XLAT_TABLES -__stdcall -NdrFullPointerXlatInit( - unsigned long NumberOfPointers, - XLAT_SIDE XlatSide - ); - -__declspec(dllimport) -void -__stdcall -NdrFullPointerXlatFree( - PFULL_PTR_XLAT_TABLES pXlatTables - ); - - -__declspec(dllimport) -void * -__stdcall -NdrAllocate( - PMIDL_STUB_MESSAGE pStubMsg, - size_t Len - ); - -__declspec(dllimport) -void -__stdcall -NdrClearOutParameters( - PMIDL_STUB_MESSAGE pStubMsg, - PFORMAT_STRING pFormat, - void * ArgAddr - ); - - - - - - -__declspec(dllimport) -void * -__stdcall -NdrOleAllocate ( - size_t Size - ); - -__declspec(dllimport) -void -__stdcall -NdrOleFree ( - void * NodeToFree - ); -# 3124 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -typedef struct _NDR_USER_MARSHAL_INFO_LEVEL1 -{ - void * Buffer; - unsigned long BufferSize; - void *(__stdcall * pfnAllocate)(size_t); - void (__stdcall * pfnFree)(void *); - struct IRpcChannelBuffer * pRpcChannelBuffer; - ULONG_PTR Reserved[5]; -} NDR_USER_MARSHAL_INFO_LEVEL1; - - - -#pragma warning(push) - -#pragma warning(disable: 4201) - - -typedef struct _NDR_USER_MARSHAL_INFO -{ - unsigned long InformationLevel; - union { - NDR_USER_MARSHAL_INFO_LEVEL1 Level1; - } ; -} NDR_USER_MARSHAL_INFO; - - - -#pragma warning(pop) - - - - - - -RPC_STATUS -__stdcall -NdrGetUserMarshalInfo ( - unsigned long * pFlags, - unsigned long InformationLevel, - NDR_USER_MARSHAL_INFO * pMarshalInfo - ); - - - - -RPC_STATUS __stdcall -NdrCreateServerInterfaceFromStub( - struct IRpcStubBuffer* pStub, - RPC_SERVER_INTERFACE *pServerIf ); - - - - -CLIENT_CALL_RETURN __cdecl -NdrClientCall3( - MIDL_STUBLESS_PROXY_INFO *pProxyInfo, - unsigned long nProcNum, - void * pReturnValue, - ... - ); - -CLIENT_CALL_RETURN __cdecl -Ndr64AsyncClientCall( - MIDL_STUBLESS_PROXY_INFO *pProxyInfo, - unsigned long nProcNum, - void * pReturnValue, - ... - ); - - - - - - - -CLIENT_CALL_RETURN __cdecl -Ndr64DcomAsyncClientCall( - MIDL_STUBLESS_PROXY_INFO *pProxyInfo, - unsigned long nProcNum, - void * pReturnValue, - ... - ); - -__declspec(dllimport) -void -__stdcall -Ndr64AsyncServerCall( - PRPC_MESSAGE pRpcMsg - ); - - - - - - - -struct IRpcStubBuffer; - -__declspec(dllimport) -void -__stdcall -Ndr64AsyncServerCall64( - PRPC_MESSAGE pRpcMsg - ); - -__declspec(dllimport) -void -__stdcall -Ndr64AsyncServerCallAll( - PRPC_MESSAGE pRpcMsg - ); - -__declspec(dllimport) -long -__stdcall -Ndr64AsyncStubCall( - struct IRpcStubBuffer * pThis, - struct IRpcChannelBuffer * pChannel, - PRPC_MESSAGE pRpcMsg, - unsigned long * pdwStubPhase - ); -# 3253 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -__declspec(dllimport) -long -__stdcall -Ndr64DcomAsyncStubCall( - struct IRpcStubBuffer * pThis, - struct IRpcChannelBuffer * pChannel, - PRPC_MESSAGE pRpcMsg, - unsigned long * pdwStubPhase - ); - - - - - - - -__declspec(dllimport) -long -__stdcall -NdrStubCall3 ( - void * pThis, - void * pChannel, - PRPC_MESSAGE pRpcMsg, - unsigned long * pdwStubPhase - ); - -__declspec(dllimport) -void -__stdcall -NdrServerCallAll( - PRPC_MESSAGE pRpcMsg - ); - -__declspec(dllimport) -void -__stdcall -NdrServerCallNdr64( - PRPC_MESSAGE pRpcMsg - ); - - -__declspec(dllimport) -void -__stdcall -NdrServerCall3( - PRPC_MESSAGE pRpcMsg - ); - - - -__declspec(dllimport) -void -__stdcall -NdrPartialIgnoreClientMarshall( - PMIDL_STUB_MESSAGE pStubMsg, - void * pMemory - ); - -__declspec(dllimport) -void -__stdcall -NdrPartialIgnoreServerUnmarshall( - PMIDL_STUB_MESSAGE pStubMsg, - void ** ppMemory - ); - -__declspec(dllimport) -void -__stdcall -NdrPartialIgnoreClientBufferSize( - PMIDL_STUB_MESSAGE pStubMsg, - void * pMemory - ); - -__declspec(dllimport) -void -__stdcall -NdrPartialIgnoreServerInitialize( - PMIDL_STUB_MESSAGE pStubMsg, - void ** ppMemory, - PFORMAT_STRING pFormat - ); - - -void __stdcall -RpcUserFree( handle_t AsyncHandle, void * pBuffer ); -# 3347 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 3348 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/rpcndr.h" 2 3 - - - - -#pragma warning(pop) -# 23 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 2 3 -# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 1 3 -# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\guiddef.h" 1 3 -# 49 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 2 3 -# 68 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - - - -extern RPC_IF_HANDLE __MIDL_itf_wtypesbase_0000_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_wtypesbase_0000_0000_v0_0_s_ifspec; -# 125 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 -typedef WCHAR OLECHAR; - -typedef OLECHAR *LPOLESTR; - -typedef const OLECHAR *LPCOLESTR; -# 150 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 -typedef unsigned char UCHAR; - -typedef short SHORT; - -typedef unsigned short USHORT; - -typedef DWORD ULONG; - -typedef double DOUBLE; -# 270 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 -typedef struct _COAUTHIDENTITY - { - USHORT *User; - ULONG UserLength; - USHORT *Domain; - ULONG DomainLength; - USHORT *Password; - ULONG PasswordLength; - ULONG Flags; - } COAUTHIDENTITY; - -typedef struct _COAUTHINFO - { - DWORD dwAuthnSvc; - DWORD dwAuthzSvc; - LPWSTR pwszServerPrincName; - DWORD dwAuthnLevel; - DWORD dwImpersonationLevel; - COAUTHIDENTITY *pAuthIdentityData; - DWORD dwCapabilities; - } COAUTHINFO; - -typedef LONG SCODE; - -typedef SCODE *PSCODE; -# 324 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 -typedef -enum tagMEMCTX - { - MEMCTX_TASK = 1, - MEMCTX_SHARED = 2, - MEMCTX_MACSYSTEM = 3, - MEMCTX_UNKNOWN = -1, - MEMCTX_SAME = -2 - } MEMCTX; -# 365 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 -typedef -enum tagCLSCTX - { - CLSCTX_INPROC_SERVER = 0x1, - CLSCTX_INPROC_HANDLER = 0x2, - CLSCTX_LOCAL_SERVER = 0x4, - CLSCTX_INPROC_SERVER16 = 0x8, - CLSCTX_REMOTE_SERVER = 0x10, - CLSCTX_INPROC_HANDLER16 = 0x20, - CLSCTX_RESERVED1 = 0x40, - CLSCTX_RESERVED2 = 0x80, - CLSCTX_RESERVED3 = 0x100, - CLSCTX_RESERVED4 = 0x200, - CLSCTX_NO_CODE_DOWNLOAD = 0x400, - CLSCTX_RESERVED5 = 0x800, - CLSCTX_NO_CUSTOM_MARSHAL = 0x1000, - CLSCTX_ENABLE_CODE_DOWNLOAD = 0x2000, - CLSCTX_NO_FAILURE_LOG = 0x4000, - CLSCTX_DISABLE_AAA = 0x8000, - CLSCTX_ENABLE_AAA = 0x10000, - CLSCTX_FROM_DEFAULT_CONTEXT = 0x20000, - CLSCTX_ACTIVATE_X86_SERVER = 0x40000, - CLSCTX_ACTIVATE_32_BIT_SERVER = CLSCTX_ACTIVATE_X86_SERVER, - CLSCTX_ACTIVATE_64_BIT_SERVER = 0x80000, - CLSCTX_ENABLE_CLOAKING = 0x100000, - CLSCTX_APPCONTAINER = 0x400000, - CLSCTX_ACTIVATE_AAA_AS_IU = 0x800000, - CLSCTX_RESERVED6 = 0x1000000, - CLSCTX_ACTIVATE_ARM32_SERVER = 0x2000000, - CLSCTX_ALLOW_LOWER_TRUST_REGISTRATION = 0x4000000, - CLSCTX_PS_DLL = 0x80000000 - } CLSCTX; -# 420 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 -typedef -enum tagMSHLFLAGS - { - MSHLFLAGS_NORMAL = 0, - MSHLFLAGS_TABLESTRONG = 1, - MSHLFLAGS_TABLEWEAK = 2, - MSHLFLAGS_NOPING = 4, - MSHLFLAGS_RESERVED1 = 8, - MSHLFLAGS_RESERVED2 = 16, - MSHLFLAGS_RESERVED3 = 32, - MSHLFLAGS_RESERVED4 = 64 - } MSHLFLAGS; - -typedef -enum tagMSHCTX - { - MSHCTX_LOCAL = 0, - MSHCTX_NOSHAREDMEM = 1, - MSHCTX_DIFFERENTMACHINE = 2, - MSHCTX_INPROC = 3, - MSHCTX_CROSSCTX = 4, - MSHCTX_CONTAINER = 5 - } MSHCTX; - -typedef struct _BYTE_BLOB - { - ULONG clSize; - byte abData[ 1 ]; - } BYTE_BLOB; - -typedef BYTE_BLOB *UP_BYTE_BLOB; - -typedef struct _WORD_BLOB - { - ULONG clSize; - unsigned short asData[ 1 ]; - } WORD_BLOB; - -typedef WORD_BLOB *UP_WORD_BLOB; - -typedef struct _DWORD_BLOB - { - ULONG clSize; - ULONG alData[ 1 ]; - } DWORD_BLOB; - -typedef DWORD_BLOB *UP_DWORD_BLOB; - -typedef struct _FLAGGED_BYTE_BLOB - { - ULONG fFlags; - ULONG clSize; - byte abData[ 1 ]; - } FLAGGED_BYTE_BLOB; - -typedef FLAGGED_BYTE_BLOB *UP_FLAGGED_BYTE_BLOB; - -typedef struct _FLAGGED_WORD_BLOB - { - ULONG fFlags; - ULONG clSize; - unsigned short asData[ 1 ]; - } FLAGGED_WORD_BLOB; - -typedef FLAGGED_WORD_BLOB *UP_FLAGGED_WORD_BLOB; - -typedef struct _BYTE_SIZEDARR - { - ULONG clSize; - byte *pData; - } BYTE_SIZEDARR; - -typedef struct _SHORT_SIZEDARR - { - ULONG clSize; - unsigned short *pData; - } WORD_SIZEDARR; - -typedef struct _LONG_SIZEDARR - { - ULONG clSize; - ULONG *pData; - } DWORD_SIZEDARR; - -typedef struct _HYPER_SIZEDARR - { - ULONG clSize; - __int64 *pData; - } HYPER_SIZEDARR; - - - -extern RPC_IF_HANDLE IWinTypesBase_v0_1_c_ifspec; -extern RPC_IF_HANDLE IWinTypesBase_v0_1_s_ifspec; - - - - - -typedef boolean BOOLEAN; - - - - - -typedef struct tagBLOB - { - ULONG cbSize; - BYTE *pBlobData; - } BLOB; - -typedef struct tagBLOB *LPBLOB; -# 566 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/wtypesbase.h" 3 -#pragma warning(pop) - - - -extern RPC_IF_HANDLE __MIDL_itf_wtypesbase_0000_0001_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_wtypesbase_0000_0001_v0_0_s_ifspec; -# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 2 3 -# 67 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - - - -extern RPC_IF_HANDLE __MIDL_itf_wtypes_0000_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_wtypes_0000_0000_v0_0_s_ifspec; - - - - - - - -typedef struct tagRemHGLOBAL - { - LONG fNullHGlobal; - ULONG cbData; - byte data[ 1 ]; - } RemHGLOBAL; - -typedef struct tagRemHMETAFILEPICT - { - LONG mm; - LONG xExt; - LONG yExt; - ULONG cbData; - byte data[ 1 ]; - } RemHMETAFILEPICT; - -typedef struct tagRemHENHMETAFILE - { - ULONG cbData; - byte data[ 1 ]; - } RemHENHMETAFILE; - -typedef struct tagRemHBITMAP - { - ULONG cbData; - byte data[ 1 ]; - } RemHBITMAP; - -typedef struct tagRemHPALETTE - { - ULONG cbData; - byte data[ 1 ]; - } RemHPALETTE; - -typedef struct tagRemBRUSH - { - ULONG cbData; - byte data[ 1 ]; - } RemHBRUSH; -# 353 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 -typedef -enum tagDVASPECT - { - DVASPECT_CONTENT = 1, - DVASPECT_THUMBNAIL = 2, - DVASPECT_ICON = 4, - DVASPECT_DOCPRINT = 8 - } DVASPECT; - -typedef -enum tagSTGC - { - STGC_DEFAULT = 0, - STGC_OVERWRITE = 1, - STGC_ONLYIFCURRENT = 2, - STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4, - STGC_CONSOLIDATE = 8 - } STGC; - -typedef -enum tagSTGMOVE - { - STGMOVE_MOVE = 0, - STGMOVE_COPY = 1, - STGMOVE_SHALLOWCOPY = 2 - } STGMOVE; - -typedef -enum tagSTATFLAG - { - STATFLAG_DEFAULT = 0, - STATFLAG_NONAME = 1, - STATFLAG_NOOPEN = 2 - } STATFLAG; - -typedef void *HCONTEXT; - - - -typedef DWORD LCID; - - - - -typedef USHORT LANGID; -# 406 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 -typedef struct _userCLIPFORMAT - { - LONG fContext; - union __MIDL_IWinTypes_0001 - { - DWORD dwValue; - wchar_t *pwszName; - } u; - } userCLIPFORMAT; - -typedef userCLIPFORMAT *wireCLIPFORMAT; - -typedef WORD CLIPFORMAT; - -typedef struct _GDI_NONREMOTE - { - LONG fContext; - union __MIDL_IWinTypes_0002 - { - LONG hInproc; - DWORD_BLOB *hRemote; - } u; - } GDI_NONREMOTE; - -typedef struct _userHGLOBAL - { - LONG fContext; - union __MIDL_IWinTypes_0003 - { - LONG hInproc; - FLAGGED_BYTE_BLOB *hRemote; - __int64 hInproc64; - } u; - } userHGLOBAL; - -typedef userHGLOBAL *wireHGLOBAL; - -typedef struct _userHMETAFILE - { - LONG fContext; - union __MIDL_IWinTypes_0004 - { - LONG hInproc; - BYTE_BLOB *hRemote; - __int64 hInproc64; - } u; - } userHMETAFILE; - -typedef struct _remoteMETAFILEPICT - { - LONG mm; - LONG xExt; - LONG yExt; - userHMETAFILE *hMF; - } remoteMETAFILEPICT; - -typedef struct _userHMETAFILEPICT - { - LONG fContext; - union __MIDL_IWinTypes_0005 - { - LONG hInproc; - remoteMETAFILEPICT *hRemote; - __int64 hInproc64; - } u; - } userHMETAFILEPICT; - -typedef struct _userHENHMETAFILE - { - LONG fContext; - union __MIDL_IWinTypes_0006 - { - LONG hInproc; - BYTE_BLOB *hRemote; - __int64 hInproc64; - } u; - } userHENHMETAFILE; - -typedef struct _userBITMAP - { - LONG bmType; - LONG bmWidth; - LONG bmHeight; - LONG bmWidthBytes; - WORD bmPlanes; - WORD bmBitsPixel; - ULONG cbSize; - byte pBuffer[ 1 ]; - } userBITMAP; - -typedef struct _userHBITMAP - { - LONG fContext; - union __MIDL_IWinTypes_0007 - { - LONG hInproc; - userBITMAP *hRemote; - __int64 hInproc64; - } u; - } userHBITMAP; - -typedef struct _userHPALETTE - { - LONG fContext; - union __MIDL_IWinTypes_0008 - { - LONG hInproc; - LOGPALETTE *hRemote; - __int64 hInproc64; - } u; - } userHPALETTE; - -typedef struct _RemotableHandle - { - LONG fContext; - union __MIDL_IWinTypes_0009 - { - LONG hInproc; - LONG hRemote; - } u; - } RemotableHandle; - -typedef RemotableHandle *wireHWND; - -typedef RemotableHandle *wireHMENU; - -typedef RemotableHandle *wireHACCEL; - -typedef RemotableHandle *wireHBRUSH; - -typedef RemotableHandle *wireHFONT; - -typedef RemotableHandle *wireHDC; - -typedef RemotableHandle *wireHICON; - -typedef RemotableHandle *wireHRGN; - -typedef RemotableHandle *wireHMONITOR; -# 622 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 -typedef userHBITMAP *wireHBITMAP; - -typedef userHPALETTE *wireHPALETTE; - -typedef userHENHMETAFILE *wireHENHMETAFILE; - -typedef userHMETAFILE *wireHMETAFILE; - -typedef userHMETAFILEPICT *wireHMETAFILEPICT; -# 646 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 -typedef void *HMETAFILEPICT; - - - -extern RPC_IF_HANDLE IWinTypes_v0_1_c_ifspec; -extern RPC_IF_HANDLE IWinTypes_v0_1_s_ifspec; - - - - - - - -#pragma warning(push) - -#pragma warning(disable: 4201) - -typedef double DATE; -# 678 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 -typedef union tagCY { - struct { - ULONG Lo; - LONG Hi; - } ; - LONGLONG int64; -} CY; - - -typedef CY *LPCY; -# 703 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 -typedef struct tagDEC { - USHORT wReserved; - union { - struct { - BYTE scale; - BYTE sign; - } ; - USHORT signscale; - } ; - ULONG Hi32; - union { - struct { - ULONG Lo32; - ULONG Mid32; - } ; - ULONGLONG Lo64; - } ; -} DECIMAL; - - - - -typedef DECIMAL *LPDECIMAL; - - - -#pragma warning(pop) - - - - -typedef FLAGGED_WORD_BLOB *wireBSTR; - - -typedef OLECHAR *BSTR; - - - - -typedef BSTR *LPBSTR; - - -typedef short VARIANT_BOOL; - - - - - - -typedef struct tagBSTRBLOB - { - ULONG cbSize; - BYTE *pData; - } BSTRBLOB; - -typedef struct tagBSTRBLOB *LPBSTRBLOB; - - - - -typedef struct tagCLIPDATA - { - ULONG cbSize; - LONG ulClipFmt; - BYTE *pClipData; - } CLIPDATA; - - - -typedef unsigned short VARTYPE; -# 833 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\wtypes.h" 3 -enum VARENUM - { - VT_EMPTY = 0, - VT_NULL = 1, - VT_I2 = 2, - VT_I4 = 3, - VT_R4 = 4, - VT_R8 = 5, - VT_CY = 6, - VT_DATE = 7, - VT_BSTR = 8, - VT_DISPATCH = 9, - VT_ERROR = 10, - VT_BOOL = 11, - VT_VARIANT = 12, - VT_UNKNOWN = 13, - VT_DECIMAL = 14, - VT_I1 = 16, - VT_UI1 = 17, - VT_UI2 = 18, - VT_UI4 = 19, - VT_I8 = 20, - VT_UI8 = 21, - VT_INT = 22, - VT_UINT = 23, - VT_VOID = 24, - VT_HRESULT = 25, - VT_PTR = 26, - VT_SAFEARRAY = 27, - VT_CARRAY = 28, - VT_USERDEFINED = 29, - VT_LPSTR = 30, - VT_LPWSTR = 31, - VT_RECORD = 36, - VT_INT_PTR = 37, - VT_UINT_PTR = 38, - VT_FILETIME = 64, - VT_BLOB = 65, - VT_STREAM = 66, - VT_STORAGE = 67, - VT_STREAMED_OBJECT = 68, - VT_STORED_OBJECT = 69, - VT_BLOB_OBJECT = 70, - VT_CF = 71, - VT_CLSID = 72, - VT_VERSIONED_STREAM = 73, - VT_BSTR_BLOB = 0xfff, - VT_VECTOR = 0x1000, - VT_ARRAY = 0x2000, - VT_BYREF = 0x4000, - VT_RESERVED = 0x8000, - VT_ILLEGAL = 0xffff, - VT_ILLEGALMASKED = 0xfff, - VT_TYPEMASK = 0xfff - } ; -typedef ULONG PROPID; - - - -typedef struct _tagpropertykey - { - GUID fmtid; - DWORD pid; - } PROPERTYKEY; - - -typedef struct tagCSPLATFORM - { - DWORD dwPlatformId; - DWORD dwVersionHi; - DWORD dwVersionLo; - DWORD dwProcessorArch; - } CSPLATFORM; - -typedef struct tagQUERYCONTEXT - { - DWORD dwContext; - CSPLATFORM Platform; - LCID Locale; - DWORD dwVersionHi; - DWORD dwVersionLo; - } QUERYCONTEXT; - -typedef -enum tagTYSPEC - { - TYSPEC_CLSID = 0, - TYSPEC_FILEEXT = ( TYSPEC_CLSID + 1 ) , - TYSPEC_MIMETYPE = ( TYSPEC_FILEEXT + 1 ) , - TYSPEC_FILENAME = ( TYSPEC_MIMETYPE + 1 ) , - TYSPEC_PROGID = ( TYSPEC_FILENAME + 1 ) , - TYSPEC_PACKAGENAME = ( TYSPEC_PROGID + 1 ) , - TYSPEC_OBJECTID = ( TYSPEC_PACKAGENAME + 1 ) - } TYSPEC; - -typedef struct __MIDL___MIDL_itf_wtypes_0000_0001_0001 - { - DWORD tyspec; - union __MIDL___MIDL_itf_wtypes_0000_0001_0005 - { - CLSID clsid; - LPOLESTR pFileExt; - LPOLESTR pMimeType; - LPOLESTR pProgId; - LPOLESTR pFileName; - struct - { - LPOLESTR pPackageName; - GUID PolicyId; - } ByName; - struct - { - GUID ObjectId; - GUID PolicyId; - } ByObjectId; - } tagged_union; - } uCLSSPEC; - - -#pragma warning(pop) - - - -extern RPC_IF_HANDLE __MIDL_itf_wtypes_0000_0001_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_wtypes_0000_0001_v0_0_s_ifspec; -# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 1 3 -# 39 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -extern const GUID GUID_DEVINTERFACE_DISK; -extern const GUID GUID_DEVINTERFACE_CDROM; -extern const GUID GUID_DEVINTERFACE_PARTITION; -extern const GUID GUID_DEVINTERFACE_TAPE; -extern const GUID GUID_DEVINTERFACE_WRITEONCEDISK; -extern const GUID GUID_DEVINTERFACE_VOLUME; -extern const GUID GUID_DEVINTERFACE_MEDIUMCHANGER; -extern const GUID GUID_DEVINTERFACE_FLOPPY; -extern const GUID GUID_DEVINTERFACE_CDCHANGER; -extern const GUID GUID_DEVINTERFACE_STORAGEPORT; -extern const GUID GUID_DEVINTERFACE_VMLUN; -extern const GUID GUID_DEVINTERFACE_SES; -extern const GUID GUID_DEVINTERFACE_ZNSDISK; -# 60 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -extern const GUID GUID_DEVINTERFACE_SERVICE_VOLUME; -extern const GUID GUID_DEVINTERFACE_HIDDEN_VOLUME; - - - - - -extern const GUID GUID_DEVINTERFACE_UNIFIED_ACCESS_RPMB; - - - - - - -extern const GUID GUID_DEVINTERFACE_SCM_PHYSICAL_DEVICE; -# 83 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -extern const GUID GUID_SCM_PD_HEALTH_NOTIFICATION; - - - - - - -extern const GUID GUID_SCM_PD_PASSTHROUGH_INVDIMM; - - -extern const GUID GUID_DEVINTERFACE_COMPORT; - -extern const GUID GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR; -# 150 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma warning(push) -#pragma warning(disable: 4201) -#pragma warning(disable: 4820) -# 329 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) -# 543 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_HOTPLUG_INFO { - DWORD Size; - BOOLEAN MediaRemovable; - BOOLEAN MediaHotplug; - BOOLEAN DeviceHotplug; - BOOLEAN WriteCacheEnableOverride; -} STORAGE_HOTPLUG_INFO, *PSTORAGE_HOTPLUG_INFO; -# 562 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_DEVICE_NUMBER { - - - - - - DWORD DeviceType; - - - - - - DWORD DeviceNumber; - - - - - - - DWORD PartitionNumber; -} STORAGE_DEVICE_NUMBER, *PSTORAGE_DEVICE_NUMBER; - -typedef struct _STORAGE_DEVICE_NUMBERS { - - - - - - - DWORD Version; - - - - - - DWORD Size; - - DWORD NumberOfDevices; - - STORAGE_DEVICE_NUMBER Devices[1]; - -} STORAGE_DEVICE_NUMBERS, *PSTORAGE_DEVICE_NUMBERS; -# 634 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_DEVICE_NUMBER_EX { - - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - - - DWORD Flags; - - - - - - - DWORD DeviceType; - - - - - - DWORD DeviceNumber; -# 692 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - GUID DeviceGuid; - - - - - - - DWORD PartitionNumber; -} STORAGE_DEVICE_NUMBER_EX, *PSTORAGE_DEVICE_NUMBER_EX; - - - - - - -typedef struct _STORAGE_BUS_RESET_REQUEST { - BYTE PathId; -} STORAGE_BUS_RESET_REQUEST, *PSTORAGE_BUS_RESET_REQUEST; - - - - - - -typedef struct STORAGE_BREAK_RESERVATION_REQUEST { - DWORD Length; - BYTE _unused; - BYTE PathId; - BYTE TargetId; - BYTE Lun; -} STORAGE_BREAK_RESERVATION_REQUEST, *PSTORAGE_BREAK_RESERVATION_REQUEST; -# 735 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _PREVENT_MEDIA_REMOVAL { - BOOLEAN PreventMediaRemoval; -} PREVENT_MEDIA_REMOVAL, *PPREVENT_MEDIA_REMOVAL; - - - - - - - -typedef struct _CLASS_MEDIA_CHANGE_CONTEXT { - DWORD MediaChangeCount; - DWORD NewState; -} CLASS_MEDIA_CHANGE_CONTEXT, *PCLASS_MEDIA_CHANGE_CONTEXT; - - - - -typedef struct _TAPE_STATISTICS { - DWORD Version; - DWORD Flags; - LARGE_INTEGER RecoveredWrites; - LARGE_INTEGER UnrecoveredWrites; - LARGE_INTEGER RecoveredReads; - LARGE_INTEGER UnrecoveredReads; - BYTE CompressionRatioReads; - BYTE CompressionRatioWrites; -} TAPE_STATISTICS, *PTAPE_STATISTICS; -# 771 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _TAPE_GET_STATISTICS { - DWORD Operation; -} TAPE_GET_STATISTICS, *PTAPE_GET_STATISTICS; -# 784 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_MEDIA_TYPE { -# 814 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DDS_4mm = 0x20, - MiniQic, - Travan, - QIC, - MP_8mm, - AME_8mm, - AIT1_8mm, - DLT, - NCTP, - IBM_3480, - IBM_3490E, - IBM_Magstar_3590, - IBM_Magstar_MP, - STK_DATA_D3, - SONY_DTF, - DV_6mm, - DMI, - SONY_D2, - CLEANER_CARTRIDGE, - CD_ROM, - CD_R, - CD_RW, - DVD_ROM, - DVD_R, - DVD_RW, - MO_3_RW, - MO_5_WO, - MO_5_RW, - MO_5_LIMDOW, - PC_5_WO, - PC_5_RW, - PD_5_RW, - ABL_5_WO, - PINNACLE_APEX_5_RW, - SONY_12_WO, - PHILIPS_12_WO, - HITACHI_12_WO, - CYGNET_12_WO, - KODAK_14_WO, - MO_NFR_525, - NIKON_12_RW, - IOMEGA_ZIP, - IOMEGA_JAZ, - SYQUEST_EZ135, - SYQUEST_EZFLYER, - SYQUEST_SYJET, - AVATAR_F2, - MP2_8mm, - DST_S, - DST_M, - DST_L, - VXATape_1, - VXATape_2, - - - - STK_9840, - - LTO_Ultrium, - LTO_Accelis, - DVD_RAM, - AIT_8mm, - ADR_1, - ADR_2, - STK_9940, - SAIT, - VXATape -}STORAGE_MEDIA_TYPE, *PSTORAGE_MEDIA_TYPE; -# 896 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_BUS_TYPE { - BusTypeUnknown = 0x00, - BusTypeScsi, - BusTypeAtapi, - BusTypeAta, - BusType1394, - BusTypeSsa, - BusTypeFibre, - BusTypeUsb, - BusTypeRAID, - BusTypeiScsi, - BusTypeSas, - BusTypeSata, - BusTypeSd, - BusTypeMmc, - BusTypeVirtual, - BusTypeFileBackedVirtual, - BusTypeSpaces, - BusTypeNvme, - BusTypeSCM, - BusTypeUfs, - BusTypeMax, - BusTypeMaxReserved = 0x7F -} STORAGE_BUS_TYPE, *PSTORAGE_BUS_TYPE; -# 933 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_MEDIA_INFO { - union { - struct { - LARGE_INTEGER Cylinders; - STORAGE_MEDIA_TYPE MediaType; - DWORD TracksPerCylinder; - DWORD SectorsPerTrack; - DWORD BytesPerSector; - DWORD NumberMediaSides; - DWORD MediaCharacteristics; - } DiskInfo; - - struct { - LARGE_INTEGER Cylinders; - STORAGE_MEDIA_TYPE MediaType; - DWORD TracksPerCylinder; - DWORD SectorsPerTrack; - DWORD BytesPerSector; - DWORD NumberMediaSides; - DWORD MediaCharacteristics; - } RemovableDiskInfo; - - struct { - STORAGE_MEDIA_TYPE MediaType; - DWORD MediaCharacteristics; - DWORD CurrentBlockSize; - STORAGE_BUS_TYPE BusType; - - - - - - union { - struct { - BYTE MediumType; - BYTE DensityCode; - } ScsiInformation; - } BusSpecificData; - - } TapeInfo; - } DeviceSpecific; -} DEVICE_MEDIA_INFO, *PDEVICE_MEDIA_INFO; - -typedef struct _GET_MEDIA_TYPES { - DWORD DeviceType; - DWORD MediaInfoCount; - DEVICE_MEDIA_INFO MediaInfo[1]; -} GET_MEDIA_TYPES, *PGET_MEDIA_TYPES; -# 995 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_PREDICT_FAILURE -{ - DWORD PredictFailure; - BYTE VendorSpecific[512]; -} STORAGE_PREDICT_FAILURE, *PSTORAGE_PREDICT_FAILURE; -# 1012 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_FAILURE_PREDICTION_CONFIG { - DWORD Version; - DWORD Size; - BOOLEAN Set; - BOOLEAN Enabled; - WORD Reserved; -} STORAGE_FAILURE_PREDICTION_CONFIG, *PSTORAGE_FAILURE_PREDICTION_CONFIG; -# 1050 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_QUERY_TYPE { - PropertyStandardQuery = 0, - PropertyExistsQuery, - PropertyMaskQuery, - PropertyQueryMaxDefined -} STORAGE_QUERY_TYPE, *PSTORAGE_QUERY_TYPE; -# 1077 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_SET_TYPE { - PropertyStandardSet = 0, - PropertyExistsSet, - PropertySetMaxDefined -} STORAGE_SET_TYPE, *PSTORAGE_SET_TYPE; - - - - - -typedef enum _STORAGE_PROPERTY_ID { - StorageDeviceProperty = 0, - StorageAdapterProperty, - StorageDeviceIdProperty, - StorageDeviceUniqueIdProperty, - StorageDeviceWriteCacheProperty, - StorageMiniportProperty, - StorageAccessAlignmentProperty, - StorageDeviceSeekPenaltyProperty, - StorageDeviceTrimProperty, - StorageDeviceWriteAggregationProperty, - StorageDeviceDeviceTelemetryProperty, - StorageDeviceLBProvisioningProperty, - StorageDevicePowerProperty, - StorageDeviceCopyOffloadProperty, - StorageDeviceResiliencyProperty, - StorageDeviceMediumProductType, - StorageAdapterRpmbProperty, - StorageAdapterCryptoProperty, - StorageDeviceIoCapabilityProperty = 48, - StorageAdapterProtocolSpecificProperty, - StorageDeviceProtocolSpecificProperty, - StorageAdapterTemperatureProperty, - StorageDeviceTemperatureProperty, - StorageAdapterPhysicalTopologyProperty, - StorageDevicePhysicalTopologyProperty, - StorageDeviceAttributesProperty, - StorageDeviceManagementStatus, - StorageAdapterSerialNumberProperty, - StorageDeviceLocationProperty, - StorageDeviceNumaProperty, - StorageDeviceZonedDeviceProperty, - StorageDeviceUnsafeShutdownCount, - StorageDeviceEnduranceProperty, - StorageDeviceLedStateProperty, - StorageDeviceSelfEncryptionProperty = 64, - StorageFruIdProperty, -} STORAGE_PROPERTY_ID, *PSTORAGE_PROPERTY_ID; - - - - - - - -typedef struct _STORAGE_PROPERTY_QUERY { - - - - - - STORAGE_PROPERTY_ID PropertyId; - - - - - - STORAGE_QUERY_TYPE QueryType; - - - - - - BYTE AdditionalParameters[1]; - -} STORAGE_PROPERTY_QUERY, *PSTORAGE_PROPERTY_QUERY; - - - - - - -typedef struct _STORAGE_PROPERTY_SET { - - - - - - STORAGE_PROPERTY_ID PropertyId; - - - - - - STORAGE_SET_TYPE SetType; - - - - - - BYTE AdditionalParameters[1]; - -} STORAGE_PROPERTY_SET, *PSTORAGE_PROPERTY_SET; - - - - - - -typedef struct _STORAGE_DESCRIPTOR_HEADER { - - DWORD Version; - - DWORD Size; - -} STORAGE_DESCRIPTOR_HEADER, *PSTORAGE_DESCRIPTOR_HEADER; -# 1202 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_DEVICE_DESCRIPTOR { - - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - - BYTE DeviceType; - - - - - - BYTE DeviceTypeModifier; - - - - - - - BOOLEAN RemovableMedia; - - - - - - - - BOOLEAN CommandQueueing; - - - - - - - DWORD VendorIdOffset; - - - - - - - DWORD ProductIdOffset; - - - - - - - - DWORD ProductRevisionOffset; - - - - - - - DWORD SerialNumberOffset; - - - - - - - - STORAGE_BUS_TYPE BusType; - - - - - - - DWORD RawPropertiesLength; - - - - - - BYTE RawDeviceProperties[1]; - -} STORAGE_DEVICE_DESCRIPTOR, *PSTORAGE_DEVICE_DESCRIPTOR; -# 1305 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_ADAPTER_DESCRIPTOR { - - DWORD Version; - - DWORD Size; - - DWORD MaximumTransferLength; - - DWORD MaximumPhysicalPages; - - DWORD AlignmentMask; - - BOOLEAN AdapterUsesPio; - - BOOLEAN AdapterScansDown; - - BOOLEAN CommandQueueing; - - BOOLEAN AcceleratedTransfer; - - - - - BYTE BusType; - - - WORD BusMajorVersion; - - WORD BusMinorVersion; - - - - BYTE SrbType; - - BYTE AddressType; - - -} STORAGE_ADAPTER_DESCRIPTOR, *PSTORAGE_ADAPTER_DESCRIPTOR; -# 1364 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR { - - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - - DWORD BytesPerCacheLine; - - - - - - DWORD BytesOffsetForCacheAlignment; - - - - - - DWORD BytesPerLogicalSector; - - - - - - DWORD BytesPerPhysicalSector; - - - - - - DWORD BytesOffsetForSectorAlignment; - -} STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR, *PSTORAGE_ACCESS_ALIGNMENT_DESCRIPTOR; - -typedef struct _STORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR { - - - - - - DWORD Version; - - - - - - DWORD Size; - - - - - - DWORD MediumProductType; - -} STORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR, *PSTORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR; - - -typedef enum _STORAGE_PORT_CODE_SET { - StoragePortCodeSetReserved = 0, - StoragePortCodeSetStorport = 1, - StoragePortCodeSetSCSIport = 2, - StoragePortCodeSetSpaceport = 3, - StoragePortCodeSetATAport = 4, - StoragePortCodeSetUSBport = 5, - StoragePortCodeSetSBP2port = 6, - StoragePortCodeSetSDport = 7 -} STORAGE_PORT_CODE_SET, *PSTORAGE_PORT_CODE_SET; - - - - - -#pragma warning(push) -#pragma warning(disable: 4201) -#pragma warning(disable: 4214) - -typedef struct _STORAGE_MINIPORT_DESCRIPTOR { - - DWORD Version; - - DWORD Size; - - STORAGE_PORT_CODE_SET Portdriver; - - BOOLEAN LUNResetSupported; - - BOOLEAN TargetResetSupported; - - - WORD IoTimeoutValue; - - - - BOOLEAN ExtraIoInfoSupported; - - - - union { - struct { - BYTE LogicalPoFxForDisk : 1; - BYTE Reserved : 7; - } ; - BYTE AsBYTE ; - } Flags; - - BYTE Reserved0[2]; - - - - - - DWORD Reserved1; - - -} STORAGE_MINIPORT_DESCRIPTOR, *PSTORAGE_MINIPORT_DESCRIPTOR; - -#pragma warning(pop) - - - - - - - -typedef enum _STORAGE_IDENTIFIER_CODE_SET { - StorageIdCodeSetReserved = 0, - StorageIdCodeSetBinary = 1, - StorageIdCodeSetAscii = 2, - StorageIdCodeSetUtf8 = 3 -} STORAGE_IDENTIFIER_CODE_SET, *PSTORAGE_IDENTIFIER_CODE_SET; - -typedef enum _STORAGE_IDENTIFIER_TYPE { - StorageIdTypeVendorSpecific = 0, - StorageIdTypeVendorId = 1, - StorageIdTypeEUI64 = 2, - StorageIdTypeFCPHName = 3, - StorageIdTypePortRelative = 4, - StorageIdTypeTargetPortGroup = 5, - StorageIdTypeLogicalUnitGroup = 6, - StorageIdTypeMD5LogicalUnitIdentifier = 7, - StorageIdTypeScsiNameString = 8 -} STORAGE_IDENTIFIER_TYPE, *PSTORAGE_IDENTIFIER_TYPE; - - - - - -typedef enum _STORAGE_ID_NAA_FORMAT { - StorageIdNAAFormatIEEEExtended = 2, - StorageIdNAAFormatIEEERegistered = 3, - StorageIdNAAFormatIEEEERegisteredExtended = 5 -} STORAGE_ID_NAA_FORMAT, *PSTORAGE_ID_NAA_FORMAT; - -typedef enum _STORAGE_ASSOCIATION_TYPE { - StorageIdAssocDevice = 0, - StorageIdAssocPort = 1, - StorageIdAssocTarget = 2 -} STORAGE_ASSOCIATION_TYPE, *PSTORAGE_ASSOCIATION_TYPE; - -typedef struct _STORAGE_IDENTIFIER { - - STORAGE_IDENTIFIER_CODE_SET CodeSet; - - STORAGE_IDENTIFIER_TYPE Type; - - WORD IdentifierSize; - - WORD NextOffset; - - - - - - - STORAGE_ASSOCIATION_TYPE Association; - - - - - - BYTE Identifier[1]; - -} STORAGE_IDENTIFIER, *PSTORAGE_IDENTIFIER; - -typedef struct _STORAGE_DEVICE_ID_DESCRIPTOR { - - DWORD Version; - - DWORD Size; - - - - - - DWORD NumberOfIdentifiers; - - - - - - - - BYTE Identifiers[1]; - -} STORAGE_DEVICE_ID_DESCRIPTOR, *PSTORAGE_DEVICE_ID_DESCRIPTOR; - - -typedef struct _DEVICE_SEEK_PENALTY_DESCRIPTOR { - - DWORD Version; - - DWORD Size; - - BOOLEAN IncursSeekPenalty; - -} DEVICE_SEEK_PENALTY_DESCRIPTOR, *PDEVICE_SEEK_PENALTY_DESCRIPTOR; - - -typedef struct _DEVICE_WRITE_AGGREGATION_DESCRIPTOR { - DWORD Version; - DWORD Size; - - BOOLEAN BenefitsFromWriteAggregation; -} DEVICE_WRITE_AGGREGATION_DESCRIPTOR, *PDEVICE_WRITE_AGGREGATION_DESCRIPTOR; - - -typedef struct _DEVICE_TRIM_DESCRIPTOR { - - DWORD Version; - - DWORD Size; - - BOOLEAN TrimEnabled; - -} DEVICE_TRIM_DESCRIPTOR, *PDEVICE_TRIM_DESCRIPTOR; - -#pragma warning(push) -#pragma warning(disable: 4214) - - - -typedef struct _DEVICE_LB_PROVISIONING_DESCRIPTOR { - - DWORD Version; - - DWORD Size; - - BYTE ThinProvisioningEnabled : 1; - - BYTE ThinProvisioningReadZeros : 1; - - BYTE AnchorSupported : 3; - - BYTE UnmapGranularityAlignmentValid : 1; - - BYTE GetFreeSpaceSupported : 1; - - BYTE MapSupported : 1; - - BYTE Reserved1[7]; - - DWORDLONG OptimalUnmapGranularity; - - DWORDLONG UnmapGranularityAlignment; - - - - DWORD MaxUnmapLbaCount; - - DWORD MaxUnmapBlockDescriptorCount; - - -} DEVICE_LB_PROVISIONING_DESCRIPTOR, *PDEVICE_LB_PROVISIONING_DESCRIPTOR; -# 1663 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_LB_PROVISIONING_MAP_RESOURCES { - DWORD Size; - DWORD Version; - BYTE AvailableMappingResourcesValid : 1; - BYTE UsedMappingResourcesValid : 1; - BYTE Reserved0 : 6; - BYTE Reserved1[3]; - BYTE AvailableMappingResourcesScope : 2; - BYTE UsedMappingResourcesScope : 2; - BYTE Reserved2 : 4; - BYTE Reserved3[3]; - DWORDLONG AvailableMappingResources; - DWORDLONG UsedMappingResources; -} STORAGE_LB_PROVISIONING_MAP_RESOURCES, *PSTORAGE_LB_PROVISIONING_MAP_RESOURCES; - -#pragma warning(pop) - - -typedef struct _DEVICE_POWER_DESCRIPTOR { - DWORD Version; - DWORD Size; - - BOOLEAN DeviceAttentionSupported; - BOOLEAN AsynchronousNotificationSupported; - BOOLEAN IdlePowerManagementEnabled; - BOOLEAN D3ColdEnabled; - BOOLEAN D3ColdSupported; - BOOLEAN NoVerifyDuringIdlePower; - BYTE Reserved[2]; - DWORD IdleTimeoutInMS; -} DEVICE_POWER_DESCRIPTOR, *PDEVICE_POWER_DESCRIPTOR; - - - - -typedef struct _DEVICE_COPY_OFFLOAD_DESCRIPTOR { - DWORD Version; - DWORD Size; - - DWORD MaximumTokenLifetime; - DWORD DefaultTokenLifetime; - DWORDLONG MaximumTransferSize; - DWORDLONG OptimalTransferCount; - DWORD MaximumDataDescriptors; - DWORD MaximumTransferLengthPerDescriptor; - DWORD OptimalTransferLengthPerDescriptor; - WORD OptimalTransferLengthGranularity; - BYTE Reserved[2]; -} DEVICE_COPY_OFFLOAD_DESCRIPTOR, *PDEVICE_COPY_OFFLOAD_DESCRIPTOR; - - - - - -typedef struct _STORAGE_DEVICE_RESILIENCY_DESCRIPTOR { - - - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - - - DWORD NameOffset; - - - - - - - DWORD NumberOfLogicalCopies; - - - - - - - DWORD NumberOfPhysicalCopies; - - - - - - - DWORD PhysicalDiskRedundancy; - - - - - - - DWORD NumberOfColumns; - - - - - - - DWORD Interleave; - -} STORAGE_DEVICE_RESILIENCY_DESCRIPTOR, *PSTORAGE_DEVICE_RESILIENCY_DESCRIPTOR; - - - - - -typedef enum _STORAGE_RPMB_FRAME_TYPE { - - StorageRpmbFrameTypeUnknown = 0, - StorageRpmbFrameTypeStandard, - StorageRpmbFrameTypeMax, - -} STORAGE_RPMB_FRAME_TYPE, *PSTORAGE_RPMB_FRAME_TYPE; - - - - - -typedef struct _STORAGE_RPMB_DESCRIPTOR { - - - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - - - - DWORD SizeInBytes; -# 1824 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD MaxReliableWriteSizeInBytes; - - - - - - - - STORAGE_RPMB_FRAME_TYPE FrameFormat; - -} STORAGE_RPMB_DESCRIPTOR, *PSTORAGE_RPMB_DESCRIPTOR; - - - - - -typedef enum _STORAGE_CRYPTO_ALGORITHM_ID { - - StorageCryptoAlgorithmUnknown = 0, - StorageCryptoAlgorithmXTSAES = 1, - StorageCryptoAlgorithmBitlockerAESCBC, - StorageCryptoAlgorithmAESECB, - StorageCryptoAlgorithmESSIVAESCBC, - StorageCryptoAlgorithmMax - -} STORAGE_CRYPTO_ALGORITHM_ID, *PSTORAGE_CRYPTO_ALGORITHM_ID; - -typedef enum _STORAGE_CRYPTO_KEY_SIZE { - - StorageCryptoKeySizeUnknown = 0, - StorageCryptoKeySize128Bits = 1, - StorageCryptoKeySize192Bits, - StorageCryptoKeySize256Bits, - StorageCryptoKeySize512Bits - -} STORAGE_CRYPTO_KEY_SIZE, *PSTORAGE_CRYPTO_KEY_SIZE; - - - -typedef struct _STORAGE_CRYPTO_CAPABILITY { - - - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - - DWORD CryptoCapabilityIndex; - - - - - - STORAGE_CRYPTO_ALGORITHM_ID AlgorithmId; - - - - - - STORAGE_CRYPTO_KEY_SIZE KeySize; - - - - - - - - DWORD DataUnitSizeBitmask; - -} STORAGE_CRYPTO_CAPABILITY, *PSTORAGE_CRYPTO_CAPABILITY; - - - -typedef struct _STORAGE_CRYPTO_DESCRIPTOR { - - - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - - DWORD NumKeysSupported; - - - - - - - DWORD NumCryptoCapabilities; - - - - - - STORAGE_CRYPTO_CAPABILITY CryptoCapabilities[1]; - -} STORAGE_CRYPTO_DESCRIPTOR, *PSTORAGE_CRYPTO_DESCRIPTOR; -# 1962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_TIER_MEDIA_TYPE { - - StorageTierMediaTypeUnspecified = 0, - StorageTierMediaTypeDisk = 1, - StorageTierMediaTypeSsd = 2, - StorageTierMediaTypeScm = 4, - StorageTierMediaTypeMax - -} STORAGE_TIER_MEDIA_TYPE, *PSTORAGE_TIER_MEDIA_TYPE; - -typedef enum _STORAGE_TIER_CLASS { - - StorageTierClassUnspecified = 0, - StorageTierClassCapacity, - StorageTierClassPerformance, - StorageTierClassMax - -} STORAGE_TIER_CLASS, *PSTORAGE_TIER_CLASS; - -typedef struct _STORAGE_TIER { - - - - - - GUID Id; - - - - - - WCHAR Name[(256)]; - - - - - - WCHAR Description[(256)]; - - - - - - DWORDLONG Flags; - - - - - - DWORDLONG ProvisionedCapacity; - - - - - - STORAGE_TIER_MEDIA_TYPE MediaType; - - - - - - STORAGE_TIER_CLASS Class; - -} STORAGE_TIER, *PSTORAGE_TIER; - - - - - - -typedef struct _STORAGE_DEVICE_TIERING_DESCRIPTOR { - - - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - - - DWORD Flags; - - - - - - DWORD TotalNumberOfTiers; - - - - - - DWORD NumberOfTiersReturned; - - - - - - STORAGE_TIER Tiers[1]; - -} STORAGE_DEVICE_TIERING_DESCRIPTOR, *PSTORAGE_DEVICE_TIERING_DESCRIPTOR; - - - - - -typedef struct _STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR { - - - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - - DWORD NumberOfFaultDomains; - - - - - - - GUID FaultDomainIds[1]; - -} STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR, *PSTORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR; -# 2119 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_PROTOCOL_TYPE { - ProtocolTypeUnknown = 0x00, - ProtocolTypeScsi, - ProtocolTypeAta, - ProtocolTypeNvme, - ProtocolTypeSd, - ProtocolTypeUfs, - ProtocolTypeProprietary = 0x7E, - ProtocolTypeMaxReserved = 0x7F -} STORAGE_PROTOCOL_TYPE, *PSTORAGE_PROTOCOL_TYPE; - - -typedef enum _STORAGE_PROTOCOL_NVME_DATA_TYPE { - NVMeDataTypeUnknown = 0, - - NVMeDataTypeIdentify, -# 2143 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - NVMeDataTypeLogPage, - - - - - - - NVMeDataTypeFeature, - - - -} STORAGE_PROTOCOL_NVME_DATA_TYPE, *PSTORAGE_PROTOCOL_NVME_DATA_TYPE; - -typedef enum _STORAGE_PROTOCOL_ATA_DATA_TYPE { - AtaDataTypeUnknown = 0, - AtaDataTypeIdentify, - AtaDataTypeLogPage, -} STORAGE_PROTOCOL_ATA_DATA_TYPE, *PSTORAGE_PROTOCOL_ATA_DATA_TYPE; - -typedef enum _STORAGE_PROTOCOL_UFS_DATA_TYPE { - UfsDataTypeUnknown = 0, - UfsDataTypeQueryDescriptor, - UfsDataTypeQueryAttribute, - UfsDataTypeQueryFlag, - UfsDataTypeQueryDmeAttribute, - UfsDataTypeQueryDmePeerAttribute, - UfsDataTypeMax, -} STORAGE_PROTOCOL_UFS_DATA_TYPE, *PSTORAGE_PROTOCOL_UFS_DATA_TYPE; - - - - - - -#pragma warning(push) -#pragma warning(disable: 4201) -#pragma warning(disable: 4214) - -typedef union _STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE { - - struct { - - DWORD RetainAsynEvent : 1; - - DWORD LogSpecificField : 4; - - DWORD Reserved : 27; - - } ; - - DWORD AsUlong; - -} STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE, *PSTORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE; - -#pragma warning(pop) - - - - - - -typedef struct _STORAGE_PROTOCOL_SPECIFIC_DATA { - - STORAGE_PROTOCOL_TYPE ProtocolType; - DWORD DataType; - - DWORD ProtocolDataRequestValue; - DWORD ProtocolDataRequestSubValue; - - DWORD ProtocolDataOffset; - DWORD ProtocolDataLength; - - DWORD FixedProtocolReturnData; - DWORD ProtocolDataRequestSubValue2; - - DWORD ProtocolDataRequestSubValue3; - DWORD ProtocolDataRequestSubValue4; - -} STORAGE_PROTOCOL_SPECIFIC_DATA, *PSTORAGE_PROTOCOL_SPECIFIC_DATA; - - - - - - - -typedef struct _STORAGE_PROTOCOL_SPECIFIC_DATA_EXT { - - STORAGE_PROTOCOL_TYPE ProtocolType; - DWORD DataType; - - DWORD ProtocolDataValue; - DWORD ProtocolDataSubValue; - - DWORD ProtocolDataOffset; - DWORD ProtocolDataLength; - - DWORD FixedProtocolReturnData; - DWORD ProtocolDataSubValue2; - - DWORD ProtocolDataSubValue3; - DWORD ProtocolDataSubValue4; - - DWORD ProtocolDataSubValue5; - DWORD Reserved[5]; -} STORAGE_PROTOCOL_SPECIFIC_DATA_EXT, *PSTORAGE_PROTOCOL_SPECIFIC_DATA_EXT; -# 2259 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_PROTOCOL_DATA_DESCRIPTOR { - - DWORD Version; - DWORD Size; - - STORAGE_PROTOCOL_SPECIFIC_DATA ProtocolSpecificData; - -} STORAGE_PROTOCOL_DATA_DESCRIPTOR, *PSTORAGE_PROTOCOL_DATA_DESCRIPTOR; -# 2277 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT { - - DWORD Version; - DWORD Size; - - STORAGE_PROTOCOL_SPECIFIC_DATA_EXT ProtocolSpecificData; - -} STORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT, *PSTORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT; -# 2303 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_TEMPERATURE_INFO { - - WORD Index; - SHORT Temperature; - SHORT OverThreshold; - SHORT UnderThreshold; - - BOOLEAN OverThresholdChangable; - BOOLEAN UnderThresholdChangable; - BOOLEAN EventGenerated; - BYTE Reserved0; - DWORD Reserved1; - -} STORAGE_TEMPERATURE_INFO, *PSTORAGE_TEMPERATURE_INFO; - -typedef struct _STORAGE_TEMPERATURE_DATA_DESCRIPTOR { - - DWORD Version; - DWORD Size; - - - - - - SHORT CriticalTemperature; - - - - - - SHORT WarningTemperature; - - WORD InfoCount; - - BYTE Reserved0[2]; - - DWORD Reserved1[2]; - - STORAGE_TEMPERATURE_INFO TemperatureInfo[1]; - -} STORAGE_TEMPERATURE_DATA_DESCRIPTOR, *PSTORAGE_TEMPERATURE_DATA_DESCRIPTOR; -# 2356 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_TEMPERATURE_THRESHOLD { - - DWORD Version; - DWORD Size; - - WORD Flags; - WORD Index; - - SHORT Threshold; - BOOLEAN OverThreshold; - BYTE Reserved; - -} STORAGE_TEMPERATURE_THRESHOLD, *PSTORAGE_TEMPERATURE_THRESHOLD; -# 2393 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_DEVICE_FORM_FACTOR { - FormFactorUnknown = 0, - - FormFactor3_5, - FormFactor2_5, - FormFactor1_8, - FormFactor1_8Less, - - FormFactorEmbedded, - FormFactorMemoryCard, - FormFactormSata, - FormFactorM_2, - FormFactorPCIeBoard, - FormFactorDimm, - -} STORAGE_DEVICE_FORM_FACTOR, *PSTORAGE_DEVICE_FORM_FACTOR; - - -typedef enum _STORAGE_COMPONENT_HEALTH_STATUS { - HealthStatusUnknown = 0, - HealthStatusNormal, - HealthStatusThrottled, - HealthStatusWarning, - HealthStatusDisabled, - HealthStatusFailed, -} STORAGE_COMPONENT_HEALTH_STATUS, *PSTORAGE_COMPONENT_HEALTH_STATUS; - -#pragma warning(push) -#pragma warning(disable: 4201) - -typedef union _STORAGE_SPEC_VERSION { - - struct { - union { - struct { - BYTE SubMinor; - BYTE Minor; - } ; - - WORD AsUshort; - - } MinorVersion; - - WORD MajorVersion; - } ; - - DWORD AsUlong; - -} STORAGE_SPEC_VERSION, *PSTORAGE_SPEC_VERSION; - -#pragma warning(pop) - - -typedef struct _STORAGE_PHYSICAL_DEVICE_DATA { - - DWORD DeviceId; - DWORD Role; - - STORAGE_COMPONENT_HEALTH_STATUS HealthStatus; - STORAGE_PROTOCOL_TYPE CommandProtocol; - STORAGE_SPEC_VERSION SpecVersion; - STORAGE_DEVICE_FORM_FACTOR FormFactor; - - BYTE Vendor[8]; - BYTE Model[40]; - BYTE FirmwareRevision[16]; - - DWORDLONG Capacity; - - BYTE PhysicalLocation[32]; - - DWORD Reserved[2]; - -} STORAGE_PHYSICAL_DEVICE_DATA, *PSTORAGE_PHYSICAL_DEVICE_DATA; - - -typedef struct _STORAGE_PHYSICAL_ADAPTER_DATA { - - DWORD AdapterId; - STORAGE_COMPONENT_HEALTH_STATUS HealthStatus; - STORAGE_PROTOCOL_TYPE CommandProtocol; - STORAGE_SPEC_VERSION SpecVersion; - - BYTE Vendor[8]; - BYTE Model[40]; - BYTE FirmwareRevision[16]; - - BYTE PhysicalLocation[32]; - - BOOLEAN ExpanderConnected; - BYTE Reserved0[3]; - DWORD Reserved1[3]; - -} STORAGE_PHYSICAL_ADAPTER_DATA, *PSTORAGE_PHYSICAL_ADAPTER_DATA; - - -typedef struct _STORAGE_PHYSICAL_NODE_DATA { - - DWORD NodeId; - - DWORD AdapterCount; - DWORD AdapterDataLength; - DWORD AdapterDataOffset; - - DWORD DeviceCount; - DWORD DeviceDataLength; - DWORD DeviceDataOffset; - - DWORD Reserved[3]; - -} STORAGE_PHYSICAL_NODE_DATA, *PSTORAGE_PHYSICAL_NODE_DATA; - - -typedef struct _STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR { - - DWORD Version; - DWORD Size; - - DWORD NodeCount; - DWORD Reserved; - - STORAGE_PHYSICAL_NODE_DATA Node[1]; - -} STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR, *PSTORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR; - - - - - - -typedef struct _STORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR { - - - - - - - DWORD Version; - - - - - - DWORD Size; - - - - - - DWORD LunMaxIoCount; - - - - - - DWORD AdapterMaxIoCount; - -} STORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR, *PSTORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR; - - - - - -typedef struct _STORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR { - - - - - - - DWORD Version; - - - - - - DWORD Size; - - - - - - DWORD64 Attributes; - -} STORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR, *PSTORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR; -# 2594 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_DISK_HEALTH_STATUS { - DiskHealthUnknown = 0, - DiskHealthUnhealthy, - DiskHealthWarning, - DiskHealthHealthy, - DiskHealthMax -} STORAGE_DISK_HEALTH_STATUS, *PSTORAGE_DISK_HEALTH_STATUS; - - - - -typedef enum _STORAGE_DISK_OPERATIONAL_STATUS { - DiskOpStatusNone = 0, - DiskOpStatusUnknown, - DiskOpStatusOk, - DiskOpStatusPredictingFailure, - DiskOpStatusInService, - DiskOpStatusHardwareError, - DiskOpStatusNotUsable, - DiskOpStatusTransientError, - DiskOpStatusMissing, -} STORAGE_DISK_OPERATIONAL_STATUS, *PSTORAGE_DISK_OPERATIONAL_STATUS; - - - - -typedef enum _STORAGE_OPERATIONAL_STATUS_REASON { - DiskOpReasonUnknown = 0, - DiskOpReasonScsiSenseCode, - DiskOpReasonMedia, - DiskOpReasonIo, - DiskOpReasonThresholdExceeded, - DiskOpReasonLostData, - DiskOpReasonEnergySource, - DiskOpReasonConfiguration, - DiskOpReasonDeviceController, - DiskOpReasonMediaController, - DiskOpReasonComponent, - DiskOpReasonNVDIMM_N, - DiskOpReasonBackgroundOperation, - DiskOpReasonInvalidFirmware, - DiskOpReasonHealthCheck, - DiskOpReasonLostDataPersistence, - DiskOpReasonDisabledByPlatform, - DiskOpReasonLostWritePersistence, - DiskOpReasonDataPersistenceLossImminent, - DiskOpReasonWritePersistenceLossImminent, - DiskOpReasonMax -} STORAGE_OPERATIONAL_STATUS_REASON, *PSTORAGE_OPERATIONAL_STATUS_REASON; - -typedef struct _STORAGE_OPERATIONAL_REASON { - DWORD Version; - DWORD Size; - STORAGE_OPERATIONAL_STATUS_REASON Reason; - - union { - - - - - struct { - BYTE SenseKey; - BYTE ASC; - BYTE ASCQ; - BYTE Reserved; - } ScsiSenseKey; - - - - - struct { - BYTE CriticalHealth; - BYTE ModuleHealth[2]; - BYTE ErrorThresholdStatus; - } NVDIMM_N; - - DWORD AsUlong; - } RawBytes; -} STORAGE_OPERATIONAL_REASON, *PSTORAGE_OPERATIONAL_REASON; - - - - - - - -typedef struct _STORAGE_DEVICE_MANAGEMENT_STATUS { - - - - - - - DWORD Version; - - - - - - - - DWORD Size; - - - - - - STORAGE_DISK_HEALTH_STATUS Health; - - - - - - DWORD NumberOfOperationalStatus; - - - - - - DWORD NumberOfAdditionalReasons; - - - - - - - STORAGE_DISK_OPERATIONAL_STATUS OperationalStatus[16]; - - - - - - STORAGE_OPERATIONAL_REASON AdditionalReasons[1]; - -} STORAGE_DEVICE_MANAGEMENT_STATUS, *PSTORAGE_DEVICE_MANAGEMENT_STATUS; -# 2744 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_ADAPTER_SERIAL_NUMBER { - - DWORD Version; - - DWORD Size; - - - - - - WCHAR SerialNumber[(128)]; - -} STORAGE_ADAPTER_SERIAL_NUMBER, *PSTORAGE_ADAPTER_SERIAL_NUMBER; -# 2765 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_ZONED_DEVICE_TYPES { - ZonedDeviceTypeUnknown = 0, - ZonedDeviceTypeHostManaged, - ZonedDeviceTypeHostAware, - ZonedDeviceTypeDeviceManaged, -} STORAGE_ZONED_DEVICE_TYPES, *PSTORAGE_ZONED_DEVICE_TYPES; - -typedef enum _STORAGE_ZONE_TYPES { - ZoneTypeUnknown = 0, - ZoneTypeConventional = 1, - ZoneTypeSequentialWriteRequired = 2, - ZoneTypeSequentialWritePreferred = 3, - ZoneTypeMax -} STORAGE_ZONE_TYPES, *PSTORAGE_ZONE_TYPES; - -typedef struct _STORAGE_ZONE_GROUP { - - DWORD ZoneCount; - - STORAGE_ZONE_TYPES ZoneType; - - DWORDLONG ZoneSize; - -} STORAGE_ZONE_GROUP, *PSTORAGE_ZONE_GROUP; - -typedef struct _STORAGE_ZONED_DEVICE_DESCRIPTOR { - - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - - STORAGE_ZONED_DEVICE_TYPES DeviceType; - - - - - - DWORD ZoneCount; - - - - - - union { - struct { - - DWORD MaxOpenZoneCount; - - BOOLEAN UnrestrictedRead; - - BYTE Reserved[3]; - - } SequentialRequiredZone; - - struct { - - DWORD OptimalOpenZoneCount; - - DWORD Reserved; - - } SequentialPreferredZone; - - } ZoneAttributes; - - - - - - - DWORD ZoneGroupCount; - - STORAGE_ZONE_GROUP ZoneGroup[1]; - -} STORAGE_ZONED_DEVICE_DESCRIPTOR, *PSTORAGE_ZONED_DEVICE_DESCRIPTOR; - - - - - - -#pragma warning(push) -#pragma warning(disable: 4201) -typedef struct _DEVICE_LOCATION { - - DWORD Socket; - - DWORD Slot; - - DWORD Adapter; - - DWORD Port; - - union { - - struct { - - DWORD Channel; - - DWORD Device; - - } ; - - struct { - - DWORD Target; - - DWORD Lun; - - } ; - - } ; - -} DEVICE_LOCATION, *PDEVICE_LOCATION; -#pragma warning(pop) - -typedef struct _STORAGE_DEVICE_LOCATION_DESCRIPTOR { - - DWORD Version; - - DWORD Size; - - DEVICE_LOCATION Location; - - DWORD StringOffset; - -} STORAGE_DEVICE_LOCATION_DESCRIPTOR, *PSTORAGE_DEVICE_LOCATION_DESCRIPTOR; -# 2914 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_DEVICE_NUMA_PROPERTY { - DWORD Version; - DWORD Size; - DWORD NumaNode; -} STORAGE_DEVICE_NUMA_PROPERTY, *PSTORAGE_DEVICE_NUMA_PROPERTY; -# 2929 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT { - DWORD Version; - DWORD Size; - DWORD UnsafeShutdownCount; -} STORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT, *PSTORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT; - -#pragma warning(push) -#pragma warning(disable: 4214) -#pragma warning(disable: 4201) -# 2953 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_HW_ENDURANCE_INFO { - DWORD ValidFields; - - - DWORD GroupId; - - struct { - DWORD Shared:1; - - DWORD Reserved:31; - } Flags; - - DWORD LifePercentage; - - BYTE BytesReadCount[16]; - - BYTE ByteWriteCount[16]; - -} STORAGE_HW_ENDURANCE_INFO, *PSTORAGE_HW_ENDURANCE_INFO; - -typedef struct _STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR { - DWORD Version; - - DWORD Size; - - STORAGE_HW_ENDURANCE_INFO EnduranceInfo; - -} STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR, *PSTORAGE_HW_ENDURANCE_DATA_DESCRIPTOR; - -#pragma warning(pop) - - - - -typedef struct _STORAGE_DEVICE_LED_STATE_DESCRIPTOR { - - DWORD Version; - - DWORD Size; - - DWORDLONG State; - -} STORAGE_DEVICE_LED_STATE_DESCRIPTOR, *PSTORAGE_DEVICE_LED_STATE_DESCRIPTOR; -# 3006 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY { - - DWORD Version; - - DWORD Size; - - BOOLEAN SupportsSelfEncryption; - -} STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY, *PSTORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY; - - -typedef enum _STORAGE_ENCRYPTION_TYPE { - - StorageEncryptionTypeUnknown = 0x00, - StorageEncryptionTypeEDrive = 0x01, - StorageEncryptionTypeTcgOpal = 0x02, - -} STORAGE_ENCRYPTION_TYPE, *PSTORAGE_ENCRYPTION_TYPE; - - - - - -typedef struct _STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2 { - - DWORD Version; - - DWORD Size; - - BOOLEAN SupportsSelfEncryption; - - STORAGE_ENCRYPTION_TYPE EncryptionType; - -} STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2, *PSTORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY_V2; - - - - -typedef struct _STORAGE_FRU_ID_DESCRIPTOR { - - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - - DWORD IdentifierSize; - BYTE Identifier[1]; - -} STORAGE_FRU_ID_DESCRIPTOR, *PSTORAGE_FRU_ID_DESCRIPTOR; -# 3084 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef DWORD DEVICE_DATA_MANAGEMENT_SET_ACTION, DEVICE_DSM_ACTION; -# 3144 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DATA_SET_RANGE { - - - - - - - LONGLONG StartingOffset; - DWORDLONG LengthInBytes; - -} DEVICE_DATA_SET_RANGE, *PDEVICE_DATA_SET_RANGE, - DEVICE_DSM_RANGE, *PDEVICE_DSM_RANGE; - -typedef struct _DEVICE_MANAGE_DATA_SET_ATTRIBUTES { - - - - - - - DWORD Size; - - DEVICE_DSM_ACTION Action; - DWORD Flags; - - - - - - DWORD ParameterBlockOffset; - DWORD ParameterBlockLength; - - - - - - DWORD DataSetRangesOffset; - DWORD DataSetRangesLength; - -} DEVICE_MANAGE_DATA_SET_ATTRIBUTES, *PDEVICE_MANAGE_DATA_SET_ATTRIBUTES, - DEVICE_DSM_INPUT, *PDEVICE_DSM_INPUT; - -typedef struct _DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT { - - - - - - - DWORD Size; - - DEVICE_DSM_ACTION Action; - DWORD Flags; - - DWORD OperationStatus; - DWORD ExtendedError; - DWORD TargetDetailedError; - DWORD ReservedStatus; - - - - - - DWORD OutputBlockOffset; - DWORD OutputBlockLength; - -} DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT, *PDEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT, - DEVICE_DSM_OUTPUT, *PDEVICE_DSM_OUTPUT; - -typedef struct _DEVICE_DSM_DEFINITION { - - DEVICE_DSM_ACTION Action; - - BOOLEAN SingleRange; - - DWORD ParameterBlockAlignment; - DWORD ParameterBlockLength; - - BOOLEAN HasOutput; - - DWORD OutputBlockAlignment; - DWORD OutputBlockLength; - -} DEVICE_DSM_DEFINITION, *PDEVICE_DSM_DEFINITION; -# 3315 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DSM_NOTIFICATION_PARAMETERS { - - DWORD Size; - - DWORD Flags; - - DWORD NumFileTypeIDs; - GUID FileTypeID[1]; - -} DEVICE_DSM_NOTIFICATION_PARAMETERS, *PDEVICE_DSM_NOTIFICATION_PARAMETERS; -# 3351 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma warning(push) -#pragma warning(disable: 4201) - -typedef struct _STORAGE_OFFLOAD_TOKEN { - - BYTE TokenType[4]; - BYTE Reserved[2]; - BYTE TokenIdLength[2]; - union { - struct { - BYTE Reserved2[0x1F8]; - } StorageOffloadZeroDataToken; - BYTE Token[0x1F8]; - } ; - -} STORAGE_OFFLOAD_TOKEN, *PSTORAGE_OFFLOAD_TOKEN; - -#pragma warning(pop) -# 3388 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DSM_OFFLOAD_READ_PARAMETERS { - - - - - - DWORD Flags; - - - - - - - DWORD TimeToLive; - - DWORD Reserved[2]; - -} DEVICE_DSM_OFFLOAD_READ_PARAMETERS, *PDEVICE_DSM_OFFLOAD_READ_PARAMETERS; -# 3423 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_OFFLOAD_READ_OUTPUT { - - DWORD OffloadReadFlags; - DWORD Reserved; - - - - - - - - DWORDLONG LengthProtected; - - DWORD TokenLength; - STORAGE_OFFLOAD_TOKEN Token; - -} STORAGE_OFFLOAD_READ_OUTPUT, *PSTORAGE_OFFLOAD_READ_OUTPUT; -# 3462 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS { - - - - - - DWORD Flags; - DWORD Reserved; - - - - - - - DWORDLONG TokenOffset; - - STORAGE_OFFLOAD_TOKEN Token; - -} DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS, *PDEVICE_DSM_OFFLOAD_WRITE_PARAMETERS; -# 3489 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_OFFLOAD_WRITE_OUTPUT { - - DWORD OffloadWriteFlags; - DWORD Reserved; - - - - - - - DWORDLONG LengthCopied; - -} STORAGE_OFFLOAD_WRITE_OUTPUT, *PSTORAGE_OFFLOAD_WRITE_OUTPUT; -# 3530 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DATA_SET_LBP_STATE_PARAMETERS { - - DWORD Version; - DWORD Size; - - - - - - DWORD Flags; - - - - - - - DWORD OutputVersion; - -} DEVICE_DATA_SET_LBP_STATE_PARAMETERS, *PDEVICE_DATA_SET_LBP_STATE_PARAMETERS, - DEVICE_DSM_ALLOCATION_PARAMETERS, *PDEVICE_DSM_ALLOCATION_PARAMETERS; - - - - -typedef struct _DEVICE_DATA_SET_LB_PROVISIONING_STATE { - - DWORD Size; - DWORD Version; - - DWORDLONG SlabSizeInBytes; - - - - - - - - DWORD SlabOffsetDeltaInBytes; - - - - - - DWORD SlabAllocationBitMapBitCount; - - - - - - DWORD SlabAllocationBitMapLength; - - - - - - DWORD SlabAllocationBitMap[1]; - -} DEVICE_DATA_SET_LB_PROVISIONING_STATE, *PDEVICE_DATA_SET_LB_PROVISIONING_STATE, - DEVICE_DSM_ALLOCATION_OUTPUT, *PDEVICE_DSM_ALLOCATION_OUTPUT; - - - - -typedef struct _DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2 { - - DWORD Size; - DWORD Version; - - DWORDLONG SlabSizeInBytes; - - - - - - - - DWORDLONG SlabOffsetDeltaInBytes; - - - - - - DWORD SlabAllocationBitMapBitCount; - - - - - - DWORD SlabAllocationBitMapLength; - - - - - - DWORD SlabAllocationBitMap[1]; - -} DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2, *PDEVICE_DATA_SET_LB_PROVISIONING_STATE_V2, - DEVICE_DSM_ALLOCATION_OUTPUT2, *PDEVICE_DSM_ALLOCATION_OUTPUT2; -# 3659 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DATA_SET_REPAIR_PARAMETERS { - - DWORD NumberOfRepairCopies; - DWORD SourceCopy; - DWORD RepairCopies[1]; -# 3674 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -} DEVICE_DATA_SET_REPAIR_PARAMETERS, *PDEVICE_DATA_SET_REPAIR_PARAMETERS, - DEVICE_DSM_REPAIR_PARAMETERS, *PDEVICE_DSM_REPAIR_PARAMETERS; -# 3689 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DATA_SET_REPAIR_OUTPUT { - - - - - - DEVICE_DSM_RANGE ParityExtent; - -} DEVICE_DATA_SET_REPAIR_OUTPUT, *PDEVICE_DATA_SET_REPAIR_OUTPUT, - DEVICE_DSM_REPAIR_OUTPUT, *PDEVICE_DSM_REPAIR_OUTPUT; -# 3727 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DATA_SET_SCRUB_OUTPUT { - - DWORDLONG BytesProcessed; - DWORDLONG BytesRepaired; - DWORDLONG BytesFailed; - -} DEVICE_DATA_SET_SCRUB_OUTPUT, *PDEVICE_DATA_SET_SCRUB_OUTPUT, - DEVICE_DSM_SCRUB_OUTPUT, *PDEVICE_DSM_SCRUB_OUTPUT; - - - - - - - -typedef struct _DEVICE_DATA_SET_SCRUB_EX_OUTPUT { - - DWORDLONG BytesProcessed; - DWORDLONG BytesRepaired; - DWORDLONG BytesFailed; - - - - - - DEVICE_DSM_RANGE ParityExtent; - - DWORDLONG BytesScrubbed; - -} DEVICE_DATA_SET_SCRUB_EX_OUTPUT, *PDEVICE_DATA_SET_SCRUB_EX_OUTPUT, - DEVICE_DSM_SCRUB_OUTPUT2, *PDEVICE_DSM_SCRUB_OUTPUT2; -# 3843 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DSM_TIERING_QUERY_INPUT { - - DWORD Version; - DWORD Size; - - - - - - DWORD Flags; - - DWORD NumberOfTierIds; - GUID TierIds[1]; - -} DEVICE_DSM_TIERING_QUERY_INPUT, *PDEVICE_DSM_TIERING_QUERY_INPUT, - DEVICE_DSM_TIERING_QUERY_PARAMETERS, *PDEVICE_DSM_TIERING_QUERY_PARAMETERS; - -typedef struct _STORAGE_TIER_REGION { - - GUID TierId; - - DWORDLONG Offset; - DWORDLONG Length; - -} STORAGE_TIER_REGION, *PSTORAGE_TIER_REGION; - -typedef struct _DEVICE_DSM_TIERING_QUERY_OUTPUT { - - DWORD Version; - DWORD Size; - - - - - - DWORD Flags; - DWORD Reserved; - - - - - - - - DWORDLONG Alignment; - - - - - - - DWORD TotalNumberOfRegions; - - DWORD NumberOfRegionsReturned; - STORAGE_TIER_REGION Regions[1]; - -} DEVICE_DSM_TIERING_QUERY_OUTPUT, *PDEVICE_DSM_TIERING_QUERY_OUTPUT; -# 3964 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS { - - DWORD Size; - - BYTE TargetPriority; - BYTE Reserved[3]; - -} DEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS, *PDEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS; -# 4014 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT { - - - - - - - - DWORDLONG TopologyRangeBytes; - - - - - - BYTE TopologyId[16]; - -} DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT, *PDEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT, - DEVICE_DSM_TOPOLOGY_ID_QUERY_OUTPUT, *PDEVICE_DSM_TOPOLOGY_ID_QUERY_OUTPUT; -# 4081 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_STORAGE_ADDRESS_RANGE { - - LONGLONG StartAddress; - DWORDLONG LengthInBytes; - -} DEVICE_STORAGE_ADDRESS_RANGE, *PDEVICE_STORAGE_ADDRESS_RANGE; - -typedef struct _DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT { - - DWORD Version; - - - - - - DWORD Flags; -# 4106 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD TotalNumberOfRanges; -# 4116 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD NumberOfRangesReturned; - DEVICE_STORAGE_ADDRESS_RANGE Ranges[1]; - -} DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT, *PDEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT; -# 4166 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DSM_REPORT_ZONES_PARAMETERS { - - DWORD Size; - - BYTE ReportOption; - - - - - - - BYTE Partial; - - BYTE Reserved[2]; - -} DEVICE_DSM_REPORT_ZONES_PARAMETERS, *PDEVICE_DSM_REPORT_ZONES_PARAMETERS; - -typedef enum _STORAGE_ZONES_ATTRIBUTES { - - ZonesAttributeTypeAndLengthMayDifferent = 0, - ZonesAttributeTypeSameLengthSame = 1, - ZonesAttributeTypeSameLastZoneLengthDifferent = 2, - ZonesAttributeTypeMayDifferentLengthSame = 3, - -} STORAGE_ZONES_ATTRIBUTES, *PSTORAGE_ZONES_ATTRIBUTES; - -typedef enum _STORAGE_ZONE_CONDITION { - - ZoneConditionConventional = 0x00, - ZoneConditionEmpty = 0x01, - ZoneConditionImplicitlyOpened = 0x02, - ZoneConditionExplicitlyOpened = 0x03, - ZoneConditionClosed = 0x04, - - ZoneConditionReadOnly = 0x0D, - ZoneConditionFull = 0x0E, - ZoneConditionOffline = 0x0F, - -} STORAGE_ZONE_CONDITION, *PSTORAGE_ZONE_CONDITION; - -typedef struct _STORAGE_ZONE_DESCRIPTOR { - - DWORD Size; - - STORAGE_ZONE_TYPES ZoneType; - STORAGE_ZONE_CONDITION ZoneCondition; - - BOOLEAN ResetWritePointerRecommend; - BYTE Reserved0[3]; - - - - - - DWORDLONG ZoneSize; - DWORDLONG WritePointerOffset; - -} STORAGE_ZONE_DESCRIPTOR, *PSTORAGE_ZONE_DESCRIPTOR; - -typedef struct _DEVICE_DSM_REPORT_ZONES_DATA { - - DWORD Size; - - DWORD ZoneCount; - STORAGE_ZONES_ATTRIBUTES Attributes; - - DWORD Reserved0; - - STORAGE_ZONE_DESCRIPTOR ZoneDescriptors[1]; - -} DEVICE_DSM_REPORT_ZONES_DATA, *PDEVICE_DSM_REPORT_ZONES_DATA, - DEVICE_DSM_REPORT_ZONES_OUTPUT, *PDEVICE_DSM_REPORT_ZONES_OUTPUT; -# 4344 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma warning(push) -#pragma warning(disable: 4201) -#pragma warning(disable: 4214) - -typedef struct _DEVICE_STORAGE_RANGE_ATTRIBUTES { - - - - - - - DWORDLONG LengthInBytes; - - union { - - DWORD AllFlags; - - struct { - - - - - - DWORD IsRangeBad : 1; - } ; - } ; - - DWORD Reserved; - -} DEVICE_STORAGE_RANGE_ATTRIBUTES, *PDEVICE_STORAGE_RANGE_ATTRIBUTES; - -#pragma warning(pop) - - - - - - - -typedef struct _DEVICE_DSM_RANGE_ERROR_INFO { - - DWORD Version; - - DWORD Flags; -# 4397 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD TotalNumberOfRanges; -# 4414 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD NumberOfRangesReturned; - DEVICE_STORAGE_RANGE_ATTRIBUTES Ranges[1]; - -} DEVICE_DSM_RANGE_ERROR_INFO, *PDEVICE_DSM_RANGE_ERROR_INFO, - DEVICE_DSM_RANGE_ERROR_OUTPUT, *PDEVICE_DSM_RANGE_ERROR_OUTPUT; -# 4468 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DSM_LOST_QUERY_PARAMETERS { - - - - - - - DWORD Version; - - DWORDLONG Granularity; - -} DEVICE_DSM_LOST_QUERY_PARAMETERS, *PDEVICE_DSM_LOST_QUERY_PARAMETERS; - -typedef struct _DEVICE_DSM_LOST_QUERY_OUTPUT { - - - - - - - DWORD Version; - - - - - - - - DWORD Size; - - - - - - - - DWORDLONG Alignment; - - - - - - DWORD NumberOfBits; - DWORD BitMap[1]; - -} DEVICE_DSM_LOST_QUERY_OUTPUT, *PDEVICE_DSM_LOST_QUERY_OUTPUT; -# 4536 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DSM_FREE_SPACE_OUTPUT { - - - - - - - DWORD Version; - - - - - - DWORDLONG FreeSpace; - -} DEVICE_DSM_FREE_SPACE_OUTPUT, *PDEVICE_DSM_FREE_SPACE_OUTPUT; -# 4574 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICE_DSM_CONVERSION_OUTPUT { - - - - - - - DWORD Version; - - - - - - - GUID Source; - -} DEVICE_DSM_CONVERSION_OUTPUT, *PDEVICE_DSM_CONVERSION_OUTPUT; -# 4638 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -__forceinline -PVOID -DeviceDsmParameterBlock ( - PDEVICE_DSM_INPUT Input - ) -{ - return (PVOID) - ((DWORD_PTR)Input + - Input->ParameterBlockOffset); -} - - -__forceinline -PDEVICE_DSM_RANGE -DeviceDsmDataSetRanges ( - PDEVICE_DSM_INPUT Input - ) -{ - return (PDEVICE_DSM_RANGE) - ((DWORD_PTR)Input + - Input->DataSetRangesOffset); -} - - -__forceinline -DWORD -DeviceDsmNumberOfDataSetRanges ( - PDEVICE_DSM_INPUT Input - ) -{ - return Input->DataSetRangesLength / - sizeof(DEVICE_DSM_RANGE); -} - - -__forceinline -DWORD -DeviceDsmGetInputLength ( - PDEVICE_DSM_DEFINITION Definition, - DWORD ParameterBlockLength, - DWORD NumberOfDataSetRanges - ) -{ - DWORD Bytes = sizeof(DEVICE_DSM_INPUT); - - if (ParameterBlockLength != 0) { - - Bytes = (((Bytes) + ((Definition->ParameterBlockAlignment) - 1)) / (Definition->ParameterBlockAlignment) * (Definition->ParameterBlockAlignment)); - Bytes += ParameterBlockLength; - } - - if (NumberOfDataSetRanges != 0) { - - Bytes = (((Bytes) + ((__alignof(DEVICE_DSM_RANGE)) - 1)) / (__alignof(DEVICE_DSM_RANGE)) * (__alignof(DEVICE_DSM_RANGE))); - Bytes += sizeof(DEVICE_DSM_RANGE) * NumberOfDataSetRanges; - } - - return Bytes; -} - - -__forceinline -DWORD -DeviceDsmGetNumberOfDataSetRanges ( - PDEVICE_DSM_DEFINITION Definition, - DWORD InputLength, - DWORD ParameterBlockLength - ) -{ - DWORD Bytes = sizeof(DEVICE_DSM_INPUT); - - if (ParameterBlockLength != 0) { - - Bytes = (((Bytes) + ((Definition->ParameterBlockAlignment) - 1)) / (Definition->ParameterBlockAlignment) * (Definition->ParameterBlockAlignment)); - Bytes += ParameterBlockLength; - } - - Bytes = (((Bytes) + ((__alignof(DEVICE_DSM_RANGE)) - 1)) / (__alignof(DEVICE_DSM_RANGE)) * (__alignof(DEVICE_DSM_RANGE))); - Bytes = InputLength - Bytes; - - return Bytes / sizeof(DEVICE_DSM_RANGE); -} - - -__forceinline -void -DeviceDsmInitializeInput ( - PDEVICE_DSM_DEFINITION Definition, - PDEVICE_DSM_INPUT Input, - DWORD InputLength, - DWORD Flags, - PVOID Parameters, - DWORD ParameterBlockLength - ) -{ - DWORD Bytes = sizeof(DEVICE_DSM_INPUT); - - memset((Input),0,(InputLength)); - - Input->Size = Bytes; - Input->Action = Definition->Action; - Input->Flags = Flags; - - if (ParameterBlockLength == 0) { - goto Cleanup; - } - - Bytes = (((Bytes) + ((Definition->ParameterBlockAlignment) - 1)) / (Definition->ParameterBlockAlignment) * (Definition->ParameterBlockAlignment)); - - Input->ParameterBlockOffset = Bytes; - Input->ParameterBlockLength = ParameterBlockLength; - - if (!Parameters) { - goto Cleanup; - } - - memcpy((DeviceDsmParameterBlock(Input)),(Parameters),(Input->ParameterBlockLength)); - - - -Cleanup: - - return; -} - - -__forceinline -BOOLEAN -DeviceDsmAddDataSetRange ( - PDEVICE_DSM_INPUT Input, - DWORD InputLength, - LONGLONG Offset, - DWORDLONG Length - ) -{ - DWORD Bytes = 0; - DWORD Index = 0; - PDEVICE_DSM_RANGE Ranges = ((void *)0); - BOOLEAN Return = 0; - - if (Input->Flags & 0x00000001) { - goto Cleanup; - } - - if (Input->DataSetRangesLength == 0) { - - if (Input->ParameterBlockLength == 0) { - - Bytes = sizeof(DEVICE_DSM_INPUT); - - } else { - - Bytes = Input->ParameterBlockOffset + - Input->ParameterBlockLength; - } - - Bytes = (((Bytes) + ((__alignof(DEVICE_DSM_RANGE)) - 1)) / (__alignof(DEVICE_DSM_RANGE)) * (__alignof(DEVICE_DSM_RANGE))); - - } else { - - Bytes = Input->DataSetRangesOffset + - Input->DataSetRangesLength; - } - - if ((InputLength - Bytes) < sizeof(DEVICE_DSM_RANGE)) { - goto Cleanup; - } - - if (Input->DataSetRangesOffset == 0) { - Input->DataSetRangesOffset = Bytes; - } - - Ranges = DeviceDsmDataSetRanges(Input); - Index = DeviceDsmNumberOfDataSetRanges(Input); - - Ranges[Index].StartingOffset = Offset; - Ranges[Index].LengthInBytes = Length; - - Input->DataSetRangesLength += sizeof(DEVICE_DSM_RANGE); - - Return = 1; - -Cleanup: - - return Return; -} - - -__forceinline -BOOLEAN -DeviceDsmValidateInput ( - PDEVICE_DSM_DEFINITION Definition, - PDEVICE_DSM_INPUT Input, - DWORD InputLength - ) -{ - DWORD Max = 0; - DWORD Min = 0; - BOOLEAN Valid = 0; - - if (Definition->Action != Input->Action) { - goto Cleanup; - } - - if (Definition->ParameterBlockLength != 0) { - - Min = sizeof(*Input); - Max = InputLength; - - if (Input->ParameterBlockOffset < Min || - Input->ParameterBlockOffset > Max || - Input->ParameterBlockOffset % Definition->ParameterBlockAlignment) { - goto Cleanup; - } - - Min = Definition->ParameterBlockLength; - Max = InputLength - Input->ParameterBlockOffset; - - if (Input->ParameterBlockLength < Min || - Input->ParameterBlockLength > Max) { - goto Cleanup; - } - } - - if (!(Input->Flags & 0x00000001)) { - - Min = sizeof(*Input); - Max = InputLength; - - if (Input->DataSetRangesOffset < Min || - Input->DataSetRangesOffset > Max || - Input->DataSetRangesOffset % __alignof(DEVICE_DSM_RANGE)) { - goto Cleanup; - } - - Min = sizeof(DEVICE_DSM_RANGE); - Max = InputLength - Input->DataSetRangesOffset; - - if (Input->DataSetRangesLength < Min || - Input->DataSetRangesLength > Max || - Input->DataSetRangesLength % Min) { - goto Cleanup; - } - - if (Definition->SingleRange && - Input->DataSetRangesLength != Min) { - goto Cleanup; - } - - } else { - - if (Input->DataSetRangesOffset != 0 || - Input->DataSetRangesLength != 0) { - goto Cleanup; - } - } - - if (Input->ParameterBlockOffset < Input->DataSetRangesOffset && - Input->ParameterBlockOffset + - Input->ParameterBlockLength > Input->DataSetRangesOffset) { - goto Cleanup; - } - - if (Input->DataSetRangesOffset < Input->ParameterBlockOffset && - Input->DataSetRangesOffset + - Input->DataSetRangesLength > Input->ParameterBlockOffset) { - goto Cleanup; - } - - Valid = 1; - -Cleanup: - - return Valid; -} - - -__forceinline -PVOID -DeviceDsmOutputBlock ( - PDEVICE_DSM_OUTPUT Output - ) -{ - return (PVOID) - ((DWORD_PTR)Output + Output->OutputBlockOffset); -} - - -__forceinline -DWORD -DeviceDsmGetOutputLength ( - PDEVICE_DSM_DEFINITION Definition, - DWORD OutputBlockLength - ) -{ - DWORD Bytes = 0; - - if (!Definition->HasOutput) { - goto Cleanup; - } - - Bytes = sizeof(DEVICE_DSM_OUTPUT); - - if (Definition->OutputBlockLength == 0) { - goto Cleanup; - } - - if (Definition->OutputBlockLength > OutputBlockLength) { - OutputBlockLength = Definition->OutputBlockLength; - } - - Bytes = (((Bytes) + ((Definition->OutputBlockAlignment) - 1)) / (Definition->OutputBlockAlignment) * (Definition->OutputBlockAlignment)); - Bytes += OutputBlockLength; - -Cleanup: - - return Bytes; -} - - -__forceinline -BOOLEAN -DeviceDsmValidateOutputLength ( - PDEVICE_DSM_DEFINITION Definition, - DWORD OutputLength - ) -{ - DWORD Bytes = DeviceDsmGetOutputLength(Definition, - 0); - - return (OutputLength >= Bytes); -} - - -__forceinline -DWORD -DeviceDsmGetOutputBlockLength ( - PDEVICE_DSM_DEFINITION Definition, - DWORD OutputLength - ) -{ - DWORD Bytes = 0; - - if (Definition->OutputBlockLength == 0) { - goto Cleanup; - } - - Bytes = sizeof(DEVICE_DSM_OUTPUT); - Bytes = (((Bytes) + ((Definition->OutputBlockAlignment) - 1)) / (Definition->OutputBlockAlignment) * (Definition->OutputBlockAlignment)); - Bytes = OutputLength - Bytes; - -Cleanup: - - return Bytes; -} - - -__forceinline -void -DeviceDsmInitializeOutput ( - PDEVICE_DSM_DEFINITION Definition, - PDEVICE_DSM_OUTPUT Output, - DWORD OutputLength, - DWORD Flags - ) -{ - DWORD Bytes = sizeof(DEVICE_DSM_OUTPUT); - - memset((Output),0,(OutputLength)); - - Output->Size = Bytes; - Output->Action = Definition->Action; - Output->Flags = Flags; - - if (Definition->OutputBlockLength != 0) { - - Bytes = (((Bytes) + ((Definition->OutputBlockAlignment) - 1)) / (Definition->OutputBlockAlignment) * (Definition->OutputBlockAlignment)); - - Output->OutputBlockOffset = Bytes; - Output->OutputBlockLength = OutputLength - Bytes; - } - - return; -} - - -__forceinline -BOOLEAN -DeviceDsmValidateOutput ( - PDEVICE_DSM_DEFINITION Definition, - PDEVICE_DSM_OUTPUT Output, - DWORD OutputLength - ) -{ - DWORD Max = 0; - DWORD Min = 0; - BOOLEAN Valid = 0; - - if (Definition->Action != Output->Action) { - goto Cleanup; - } - - if (!Definition->HasOutput) { - goto Cleanup; - } - - if (Definition->OutputBlockLength != 0) { - - Min = sizeof(*Output); - Max = OutputLength; - - if (Output->OutputBlockOffset < Min || - Output->OutputBlockOffset > Max || - Output->OutputBlockOffset % Definition->OutputBlockAlignment) { - goto Cleanup; - } - - Min = Definition->OutputBlockLength; - Max = OutputLength - Output->OutputBlockOffset; - - if (Output->OutputBlockLength < Min || - Output->OutputBlockLength > Max) { - goto Cleanup; - } - - } else { - - if (Output->OutputBlockOffset != 0 || - Output->OutputBlockLength != 0) { - goto Cleanup; - } - } - - Valid = 1; - -Cleanup: - - return Valid; -} -# 5099 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_GET_BC_PROPERTIES_OUTPUT { - - - - - - DWORD MaximumRequestsPerPeriod; - - - - - - DWORD MinimumPeriod; - - - - - - - - DWORDLONG MaximumRequestSize; - - - - - - - DWORD EstimatedTimePerRequest; -# 5135 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD NumOutStandingRequests; - - - - - - - DWORDLONG RequestSize; - -} STORAGE_GET_BC_PROPERTIES_OUTPUT, *PSTORAGE_GET_BC_PROPERTIES_OUTPUT; -# 5163 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_ALLOCATE_BC_STREAM_INPUT { - - - - - DWORD Version; - - - - - - DWORD RequestsPerPeriod; - - - - - - DWORD Period; - - - - - - BOOLEAN RetryFailures; - - - - - - BOOLEAN Discardable; - - - - - BOOLEAN Reserved1[2]; - - - - - - DWORD AccessType; - - - - - - DWORD AccessMode; - -} STORAGE_ALLOCATE_BC_STREAM_INPUT, *PSTORAGE_ALLOCATE_BC_STREAM_INPUT; - -typedef struct _STORAGE_ALLOCATE_BC_STREAM_OUTPUT { - - - - - - DWORDLONG RequestSize; - - - - - - - DWORD NumOutStandingRequests; - -} STORAGE_ALLOCATE_BC_STREAM_OUTPUT, *PSTORAGE_ALLOCATE_BC_STREAM_OUTPUT; -# 5252 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_PRIORITY_HINT_SUPPORT { - DWORD SupportFlags; -} STORAGE_PRIORITY_HINT_SUPPORT, *PSTORAGE_PRIORITY_HINT_SUPPORT; -# 5265 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_DIAGNOSTIC_LEVEL { - StorageDiagnosticLevelDefault = 0, - StorageDiagnosticLevelMax -} STORAGE_DIAGNOSTIC_LEVEL, *PSTORAGE_DIAGNOSTIC_LEVEL; - -typedef enum _STORAGE_DIAGNOSTIC_TARGET_TYPE { - - StorageDiagnosticTargetTypeUndefined = 0, - StorageDiagnosticTargetTypePort, - StorageDiagnosticTargetTypeMiniport, - StorageDiagnosticTargetTypeHbaFirmware, - StorageDiagnosticTargetTypeMax - -} STORAGE_DIAGNOSTIC_TARGET_TYPE, *PSTORAGE_DIAGNOSTIC_TARGET_TYPE; -# 5290 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_DIAGNOSTIC_REQUEST { - - - DWORD Version; - - - - DWORD Size; - - - DWORD Flags; - - - STORAGE_DIAGNOSTIC_TARGET_TYPE TargetType; - - - STORAGE_DIAGNOSTIC_LEVEL Level; - -} STORAGE_DIAGNOSTIC_REQUEST, *PSTORAGE_DIAGNOSTIC_REQUEST; - - - - - -typedef struct _STORAGE_DIAGNOSTIC_DATA { - - - DWORD Version; - - - DWORD Size; - - - GUID ProviderId; - - - - - - DWORD BufferSize; - - - DWORD Reserved; - - - BYTE DiagnosticDataBuffer[1]; - -} STORAGE_DIAGNOSTIC_DATA, *PSTORAGE_DIAGNOSTIC_DATA; -# 5348 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _PHYSICAL_ELEMENT_STATUS_REQUEST { - - DWORD Version; - DWORD Size; - - DWORD StartingElement; - BYTE Filter; - BYTE ReportType; - BYTE Reserved[2]; - -} PHYSICAL_ELEMENT_STATUS_REQUEST, *PPHYSICAL_ELEMENT_STATUS_REQUEST; - -typedef struct _PHYSICAL_ELEMENT_STATUS_DESCRIPTOR { - - DWORD Version; - DWORD Size; - - DWORD ElementIdentifier; - BYTE PhysicalElementType; - BYTE PhysicalElementHealth; - BYTE Reserved1[2]; - - - DWORDLONG AssociatedCapacity; - - DWORD Reserved2[4]; - -} PHYSICAL_ELEMENT_STATUS_DESCRIPTOR, *PPHYSICAL_ELEMENT_STATUS_DESCRIPTOR; - -typedef struct _PHYSICAL_ELEMENT_STATUS { - - DWORD Version; - DWORD Size; - - DWORD DescriptorCount; - DWORD ReturnedDescriptorCount; - - DWORD ElementIdentifierBeingDepoped; - DWORD Reserved; - - PHYSICAL_ELEMENT_STATUS_DESCRIPTOR Descriptors[1]; - -} PHYSICAL_ELEMENT_STATUS, *PPHYSICAL_ELEMENT_STATUS; -# 5399 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _REMOVE_ELEMENT_AND_TRUNCATE_REQUEST { - - DWORD Version; - DWORD Size; - - - DWORDLONG RequestCapacity; - - DWORD ElementIdentifier; - DWORD Reserved; - -} REMOVE_ELEMENT_AND_TRUNCATE_REQUEST, *PREMOVE_ELEMENT_AND_TRUNCATE_REQUEST; -# 5423 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE { - DeviceInternalStatusDataRequestTypeUndefined = 0, - DeviceCurrentInternalStatusDataHeader, - DeviceCurrentInternalStatusData, - DeviceSavedInternalStatusDataHeader, - DeviceSavedInternalStatusData -} DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE, *PDEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE; - -typedef enum _DEVICE_INTERNAL_STATUS_DATA_SET { - DeviceStatusDataSetUndefined = 0, - DeviceStatusDataSet1, - DeviceStatusDataSet2, - DeviceStatusDataSet3, - DeviceStatusDataSet4, - DeviceStatusDataSetMax -} DEVICE_INTERNAL_STATUS_DATA_SET, *PDEVICE_INTERNAL_STATUS_DATA_SET; - -typedef struct _GET_DEVICE_INTERNAL_STATUS_DATA_REQUEST { - - DWORD Version; - DWORD Size; - - DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE RequestDataType; - DEVICE_INTERNAL_STATUS_DATA_SET RequestDataSet; - -} GET_DEVICE_INTERNAL_STATUS_DATA_REQUEST, *PGET_DEVICE_INTERNAL_STATUS_DATA_REQUEST; - -typedef struct _DEVICE_INTERNAL_STATUS_DATA { - - - DWORD Version; - - - DWORD Size; - - DWORDLONG T10VendorId; - - DWORD DataSet1Length; - DWORD DataSet2Length; - DWORD DataSet3Length; - DWORD DataSet4Length; - - BYTE StatusDataVersion; - BYTE Reserved[3]; - BYTE ReasonIdentifier[128]; - DWORD StatusDataLength; - BYTE StatusData[1]; - -} DEVICE_INTERNAL_STATUS_DATA, *PDEVICE_INTERNAL_STATUS_DATA; -# 5482 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_SANITIZE_METHOD { - StorageSanitizeMethodDefault = 0, - StorageSanitizeMethodBlockErase, - StorageSanitizeMethodCryptoErase -} STORAGE_SANITIZE_METHOD, *PSTORAGE_SANITIZE_METHOD; - -#pragma warning(push) -#pragma warning(disable: 4214) - -typedef struct _STORAGE_REINITIALIZE_MEDIA { - - DWORD Version; - - DWORD Size; - - DWORD TimeoutInSeconds; - - - - - struct { - - - - - DWORD SanitizeMethod : 4; - - - - - - DWORD DisallowUnrestrictedSanitizeExit : 1; - - DWORD Reserved : 27; - } SanitizeOption; - -} STORAGE_REINITIALIZE_MEDIA, *PSTORAGE_REINITIALIZE_MEDIA; - -#pragma warning(pop) - - -#pragma warning(push) -#pragma warning(disable: 4200) - - - -typedef struct _STORAGE_MEDIA_SERIAL_NUMBER_DATA { - - WORD Reserved; - - - - - - - - WORD SerialNumberLength; -# 5547 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - BYTE SerialNumber[0]; - - -} STORAGE_MEDIA_SERIAL_NUMBER_DATA, *PSTORAGE_MEDIA_SERIAL_NUMBER_DATA; - - - -typedef struct _STORAGE_READ_CAPACITY { - - - - - DWORD Version; - - - - - DWORD Size; - - - - - - DWORD BlockLength; - - - - - - - LARGE_INTEGER NumberOfBlocks; - - - - - - LARGE_INTEGER DiskLength; - -} STORAGE_READ_CAPACITY, *PSTORAGE_READ_CAPACITY; - -#pragma warning(pop) - - - - - - - - -typedef enum _WRITE_CACHE_TYPE { - WriteCacheTypeUnknown, - WriteCacheTypeNone, - WriteCacheTypeWriteBack, - WriteCacheTypeWriteThrough -} WRITE_CACHE_TYPE; - -typedef enum _WRITE_CACHE_ENABLE { - WriteCacheEnableUnknown, - WriteCacheDisabled, - WriteCacheEnabled -} WRITE_CACHE_ENABLE; - -typedef enum _WRITE_CACHE_CHANGE { - WriteCacheChangeUnknown, - WriteCacheNotChangeable, - WriteCacheChangeable -} WRITE_CACHE_CHANGE; - -typedef enum _WRITE_THROUGH { - WriteThroughUnknown, - WriteThroughNotSupported, - WriteThroughSupported -} WRITE_THROUGH; - -typedef struct _STORAGE_WRITE_CACHE_PROPERTY { - - - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - - WRITE_CACHE_TYPE WriteCacheType; - - - - - - WRITE_CACHE_ENABLE WriteCacheEnabled; - - - - - - WRITE_CACHE_CHANGE WriteCacheChangeable; - - - - - - WRITE_THROUGH WriteThroughSupported; - - - - - - BOOLEAN FlushCacheSupported; - - - - - - BOOLEAN UserDefinedPowerProtection; - - - - - - BOOLEAN NVCacheEnabled; - -} STORAGE_WRITE_CACHE_PROPERTY, *PSTORAGE_WRITE_CACHE_PROPERTY; - -#pragma warning(push) -#pragma warning(disable: 4200) -#pragma warning(disable: 4201) -#pragma warning(disable: 4214) - - - - -typedef struct _PERSISTENT_RESERVE_COMMAND { - - DWORD Version; - DWORD Size; - - union { - - struct { - - - - - - BYTE ServiceAction : 5; - BYTE Reserved1 : 3; - - - - - - WORD AllocationLength; - - } PR_IN; - - struct { - - - - - - BYTE ServiceAction : 5; - BYTE Reserved1 : 3; - - - - - - BYTE Type : 4; - BYTE Scope : 4; - - - - - - - BYTE ParameterList[0]; - - - } PR_OUT; - } ; - -} PERSISTENT_RESERVE_COMMAND, *PPERSISTENT_RESERVE_COMMAND; - - -#pragma warning(pop) -# 5754 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma warning(push) -# 5778 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _DEVICEDUMP_COLLECTION_TYPE { - TCCollectionBugCheck = 1, - TCCollectionApplicationRequested, - TCCollectionDeviceRequested -} DEVICEDUMP_COLLECTION_TYPEIDE_NOTIFICATION_TYPE, *PDEVICEDUMP_COLLECTION_TYPE; -# 5796 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,1) -# 5797 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 -# 5815 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICEDUMP_SUBSECTION_POINTER { - DWORD dwSize; - DWORD dwFlags; - DWORD dwOffset; -} DEVICEDUMP_SUBSECTION_POINTER,*PDEVICEDUMP_SUBSECTION_POINTER; - - - - -typedef struct _DEVICEDUMP_STRUCTURE_VERSION { - - - - DWORD dwSignature; - - - - - DWORD dwVersion; - - - - - DWORD dwSize; - -} DEVICEDUMP_STRUCTURE_VERSION, *PDEVICEDUMP_STRUCTURE_VERSION; - - - - -typedef struct _DEVICEDUMP_SECTION_HEADER { - - - - GUID guidDeviceDataId; -# 5861 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - BYTE sOrganizationID[16]; - - - - - DWORD dwFirmwareRevision; - - - - - BYTE sModelNumber[32]; - - - - - BYTE szDeviceManufacturingID[32]; - - - - - - - DWORD dwFlags; - - - - - DWORD bRestrictedPrivateDataVersion; - - - - - - DWORD dwFirmwareIssueId; - - - - - BYTE szIssueDescriptionString[132]; - -} DEVICEDUMP_SECTION_HEADER, *PDEVICEDUMP_SECTION_HEADER; -# 5928 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _GP_LOG_PAGE_DESCRIPTOR { - WORD LogAddress; - WORD LogSectors; -} GP_LOG_PAGE_DESCRIPTOR,*PGP_LOG_PAGE_DESCRIPTOR; - -typedef struct _DEVICEDUMP_PUBLIC_SUBSECTION { - DWORD dwFlags; - GP_LOG_PAGE_DESCRIPTOR GPLogTable[16]; - CHAR szDescription[16]; - BYTE bData[1]; -} DEVICEDUMP_PUBLIC_SUBSECTION, *PDEVICEDUMP_PUBLIC_SUBSECTION; - - - - -typedef struct _DEVICEDUMP_RESTRICTED_SUBSECTION { - - BYTE bData[1]; - -} DEVICEDUMP_RESTRICTED_SUBSECTION, *PDEVICEDUMP_RESTRICTED_SUBSECTION; - - - - -typedef struct _DEVICEDUMP_PRIVATE_SUBSECTION { - - DWORD dwFlags; - GP_LOG_PAGE_DESCRIPTOR GPLogId; - - BYTE bData[1]; - -} DEVICEDUMP_PRIVATE_SUBSECTION, *PDEVICEDUMP_PRIVATE_SUBSECTION; - - - - -typedef struct _DEVICEDUMP_STORAGEDEVICE_DATA { - - - - - DEVICEDUMP_STRUCTURE_VERSION Descriptor; - - - - - DEVICEDUMP_SECTION_HEADER SectionHeader; - - - - - DWORD dwBufferSize; - - - - - DWORD dwReasonForCollection; - - - - - DEVICEDUMP_SUBSECTION_POINTER PublicData; - DEVICEDUMP_SUBSECTION_POINTER RestrictedData; - DEVICEDUMP_SUBSECTION_POINTER PrivateData; - -} DEVICEDUMP_STORAGEDEVICE_DATA, *PDEVICEDUMP_STORAGEDEVICE_DATA; -# 6013 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD { - - BYTE Cdb[16]; - - - BYTE Command[16]; - - - DWORDLONG StartTime; - - - DWORDLONG EndTime; - - - DWORD OperationStatus; - - - DWORD OperationError; - - - union { - struct { - DWORD dwReserved; - } ExternalStack; - - struct { - DWORD dwAtaPortSpecific; - } AtaPort; - - struct { - DWORD SrbTag ; - } StorPort; - - } StackSpecific; - -} DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD,*PDEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD; - - -typedef struct _DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP { - - - - - DEVICEDUMP_STRUCTURE_VERSION Descriptor; - - - - - DWORD dwReasonForCollection; - - - - - BYTE cDriverName[16]; - - - - - - DWORD uiNumRecords; - - DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD RecordArray[1]; - -} DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP,*PDEVICEDUMP_STORAGESTACK_PUBLIC_DUMP; - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 6080 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 -# 6091 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma warning(push) -#pragma warning(disable: 4214) -# 6104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_IDLE_POWER { - DWORD Version; - DWORD Size; - DWORD WakeCapableHint : 1; - DWORD D3ColdSupported : 1; - DWORD Reserved : 30; - DWORD D3IdleTimeout; -} STORAGE_IDLE_POWER, *PSTORAGE_IDLE_POWER; - -#pragma warning(pop) -# 6124 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_POWERUP_REASON_TYPE { - StoragePowerupUnknown = 0, - StoragePowerupIO, - StoragePowerupDeviceAttention -} STORAGE_POWERUP_REASON_TYPE, *PSTORAGE_POWERUP_REASON_TYPE; - -typedef struct _STORAGE_IDLE_POWERUP_REASON { - DWORD Version; - DWORD Size; - STORAGE_POWERUP_REASON_TYPE PowerupReason; -} STORAGE_IDLE_POWERUP_REASON, *PSTORAGE_IDLE_POWERUP_REASON; -# 6164 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_DEVICE_POWER_CAP_UNITS { - StorageDevicePowerCapUnitsPercent, - StorageDevicePowerCapUnitsMilliwatts -} STORAGE_DEVICE_POWER_CAP_UNITS, *PSTORAGE_DEVICE_POWER_CAP_UNITS; - -typedef struct _STORAGE_DEVICE_POWER_CAP { - DWORD Version; - DWORD Size; - STORAGE_DEVICE_POWER_CAP_UNITS Units; - DWORDLONG MaxPower; -} STORAGE_DEVICE_POWER_CAP, *PSTORAGE_DEVICE_POWER_CAP; -# 6193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma pack(push) -#pragma pack(1) - - - - - - - -typedef struct _STORAGE_RPMB_DATA_FRAME { - - - - - BYTE Stuff[196]; - - - - - BYTE KeyOrMAC[32]; - - - - - BYTE Data[256]; - - - - - BYTE Nonce[16]; - - - - - BYTE WriteCounter[4]; - - - - - BYTE Address[2]; - - - - - BYTE BlockCount[2]; - - - - - BYTE OperationResult[2]; - - - - - BYTE RequestOrResponseType[2]; - -} STORAGE_RPMB_DATA_FRAME, *PSTORAGE_RPMB_DATA_FRAME; - - - - - -typedef enum _STORAGE_RPMB_COMMAND_TYPE { - StorRpmbProgramAuthKey = 0x00000001, - StorRpmbQueryWriteCounter = 0x00000002, - StorRpmbAuthenticatedWrite = 0x00000003, - StorRpmbAuthenticatedRead = 0x00000004, - StorRpmbReadResultRequest = 0x00000005, - StorRpmbAuthenticatedDeviceConfigWrite = 0x00000006, - StorRpmbAuthenticatedDeviceConfigRead = 0x00000007, -} STORAGE_RPMB_COMMAND_TYPE, *PSTORAGE_RPMB_COMMAND_TYPE; - -#pragma pack(pop) -# 6276 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_EVENT_NOTIFICATION { - DWORD Version; - DWORD Size; - DWORDLONG Events; -} STORAGE_EVENT_NOTIFICATION, *PSTORAGE_EVENT_NOTIFICATION; -# 6290 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma warning(pop) -# 6329 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_COUNTER_TYPE { - - StorageCounterTypeUnknown = 0, - - StorageCounterTypeTemperatureCelsius, - StorageCounterTypeTemperatureCelsiusMax, - StorageCounterTypeReadErrorsTotal, - StorageCounterTypeReadErrorsCorrected, - StorageCounterTypeReadErrorsUncorrected, - StorageCounterTypeWriteErrorsTotal, - StorageCounterTypeWriteErrorsCorrected, - StorageCounterTypeWriteErrorsUncorrected, - StorageCounterTypeManufactureDate, - StorageCounterTypeStartStopCycleCount, - StorageCounterTypeStartStopCycleCountMax, - StorageCounterTypeLoadUnloadCycleCount, - StorageCounterTypeLoadUnloadCycleCountMax, - StorageCounterTypeWearPercentage, - StorageCounterTypeWearPercentageWarning, - StorageCounterTypeWearPercentageMax, - StorageCounterTypePowerOnHours, - StorageCounterTypeReadLatency100NSMax, - StorageCounterTypeWriteLatency100NSMax, - StorageCounterTypeFlushLatency100NSMax, - - StorageCounterTypeMax - -} STORAGE_COUNTER_TYPE, *PSTORAGE_COUNTER_TYPE; - -typedef struct _STORAGE_COUNTER { - - STORAGE_COUNTER_TYPE Type; - - union { - - struct { - - - - DWORD Week; - - - - - DWORD Year; - } ManufactureDate; - - DWORDLONG AsUlonglong; - } Value; - -} STORAGE_COUNTER, *PSTORAGE_COUNTER; - -typedef struct _STORAGE_COUNTERS { - - - - - DWORD Version; - - - - - DWORD Size; - - DWORD NumberOfCounters; - - STORAGE_COUNTER Counters[1]; - -} STORAGE_COUNTERS, *PSTORAGE_COUNTERS; -# 6437 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_HW_FIRMWARE_INFO_QUERY { - DWORD Version; - DWORD Size; - DWORD Flags; - DWORD Reserved; -} STORAGE_HW_FIRMWARE_INFO_QUERY, *PSTORAGE_HW_FIRMWARE_INFO_QUERY; -# 6456 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma warning(push) -#pragma warning(disable: 4214) - - - -typedef struct _STORAGE_HW_FIRMWARE_SLOT_INFO { - - DWORD Version; - - DWORD Size; - - BYTE SlotNumber; - - BYTE ReadOnly : 1; - - BYTE Reserved0 : 7; - - BYTE Reserved1[6]; - - BYTE Revision[16]; - -} STORAGE_HW_FIRMWARE_SLOT_INFO, *PSTORAGE_HW_FIRMWARE_SLOT_INFO; - -typedef struct _STORAGE_HW_FIRMWARE_INFO { - - DWORD Version; - - DWORD Size; - - BYTE SupportUpgrade : 1; - - BYTE Reserved0 : 7; - - BYTE SlotCount; - - BYTE ActiveSlot; - - BYTE PendingActivateSlot; - - BOOLEAN FirmwareShared; - - BYTE Reserved[3]; - - DWORD ImagePayloadAlignment; - - DWORD ImagePayloadMaxSize; - - STORAGE_HW_FIRMWARE_SLOT_INFO Slot[1]; - -} STORAGE_HW_FIRMWARE_INFO, *PSTORAGE_HW_FIRMWARE_INFO; -#pragma warning(pop) - - - - - -#pragma warning(push) -#pragma warning(disable: 4200) - -typedef struct _STORAGE_HW_FIRMWARE_DOWNLOAD { - - DWORD Version; - DWORD Size; - - DWORD Flags; - BYTE Slot; - BYTE Reserved[3]; - - DWORDLONG Offset; - DWORDLONG BufferSize; - - BYTE ImageBuffer[1]; - -} STORAGE_HW_FIRMWARE_DOWNLOAD, *PSTORAGE_HW_FIRMWARE_DOWNLOAD; - -typedef struct _STORAGE_HW_FIRMWARE_DOWNLOAD_V2 { - - DWORD Version; - DWORD Size; - - DWORD Flags; - BYTE Slot; - BYTE Reserved[3]; - - DWORDLONG Offset; - DWORDLONG BufferSize; - - DWORD ImageSize; - DWORD Reserved2; - - BYTE ImageBuffer[1]; - -} STORAGE_HW_FIRMWARE_DOWNLOAD_V2, *PSTORAGE_HW_FIRMWARE_DOWNLOAD_V2; - -#pragma warning(pop) - - - - -typedef struct _STORAGE_HW_FIRMWARE_ACTIVATE { - - DWORD Version; - DWORD Size; - - DWORD Flags; - BYTE Slot; - BYTE Reserved0[3]; - -} STORAGE_HW_FIRMWARE_ACTIVATE, *PSTORAGE_HW_FIRMWARE_ACTIVATE; - - - - - - - -typedef struct _STORAGE_PROTOCOL_COMMAND { - - DWORD Version; - DWORD Length; - - STORAGE_PROTOCOL_TYPE ProtocolType; - DWORD Flags; - - DWORD ReturnStatus; - DWORD ErrorCode; - - DWORD CommandLength; - DWORD ErrorInfoLength; - DWORD DataToDeviceTransferLength; - DWORD DataFromDeviceTransferLength; - - DWORD TimeOutValue; - - DWORD ErrorInfoOffset; - DWORD DataToDeviceBufferOffset; - DWORD DataFromDeviceBufferOffset; - - DWORD CommandSpecific; - DWORD Reserved0; - - DWORD FixedProtocolReturnData; - DWORD Reserved1[3]; - - BYTE Command[1]; - -} STORAGE_PROTOCOL_COMMAND, *PSTORAGE_PROTOCOL_COMMAND; -# 6673 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_ATTRIBUTE_MGMT_ACTION { - StorAttributeMgmt_ClearAttribute = 0, - StorAttributeMgmt_SetAttribute = 1, - StorAttributeMgmt_ResetAttribute = 2 -} STORAGE_ATTRIBUTE_MGMT_ACTION, *PSTORAGE_ATTRIBUTE_MGMT_ACTION; -# 6697 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STORAGE_ATTRIBUTE_MGMT { - - - - - - DWORD Version; - - - - - - DWORD Size; - - - - - STORAGE_ATTRIBUTE_MGMT_ACTION Action; - - - - - - DWORD Attribute; - -} STORAGE_ATTRIBUTE_MGMT, *PSTORAGE_ATTRIBUTE_MGMT; - - - - -#pragma warning(pop) -# 6739 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma warning(push) -#pragma warning(disable: 4201) -#pragma warning(disable: 4214) -# 6801 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SCM_PD_HEALTH_NOTIFICATION_DATA { - - - - - - - GUID DeviceGuid; - -} SCM_PD_HEALTH_NOTIFICATION_DATA, *PSCM_PD_HEALTH_NOTIFICATION_DATA; -# 6828 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SCM_LOGICAL_DEVICE_INSTANCE { - - - - - DWORD Version; - - - - - DWORD Size; - - - - - GUID DeviceGuid; - - - - - WCHAR SymbolicLink[256]; - -} SCM_LOGICAL_DEVICE_INSTANCE, *PSCM_LOGICAL_DEVICE_INSTANCE; - -typedef struct _SCM_LOGICAL_DEVICES { - - - - - DWORD Version; - - - - - - DWORD Size; - - - - - DWORD DeviceCount; - - - - - SCM_LOGICAL_DEVICE_INSTANCE Devices[1]; - -} SCM_LOGICAL_DEVICES, *PSCM_LOGICAL_DEVICES; -# 6889 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SCM_PHYSICAL_DEVICE_INSTANCE { - - - - - DWORD Version; - - - - - DWORD Size; - - - - - DWORD NfitHandle; - - - - - WCHAR SymbolicLink[256]; - -} SCM_PHYSICAL_DEVICE_INSTANCE, *PSCM_PHYSICAL_DEVICE_INSTANCE; - -typedef struct _SCM_PHYSICAL_DEVICES { - - - - - DWORD Version; - - - - - - DWORD Size; - - - - - DWORD DeviceCount; - - - - - SCM_PHYSICAL_DEVICE_INSTANCE Devices[1]; - -} SCM_PHYSICAL_DEVICES, *PSCM_PHYSICAL_DEVICES; -# 6954 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _SCM_REGION_FLAG { - ScmRegionFlagNone = 0x0, - - - - - ScmRegionFlagLabel = 0x1 - -} SCM_REGION_FLAG, *PSCM_REGION_FLAG; - - - -typedef struct _SCM_REGION { - - - - - DWORD Version; - - - - - DWORD Size; - - - - - DWORD Flags; - - - - - DWORD NfitHandle; - - - - - GUID LogicalDeviceGuid; - - - - - GUID AddressRangeType; - - - - - - DWORD AssociatedId; - - - - - DWORD64 Length; - - - - - - DWORD64 StartingDPA; - - - - - DWORD64 BaseSPA; - - - - - - - DWORD64 SPAOffset; - - - - - - DWORD64 RegionOffset; - -} SCM_REGION, *PSCM_REGION; - -typedef struct _SCM_REGIONS { - - - - - DWORD Version; - - - - - - DWORD Size; - - - - - DWORD RegionCount; - - - - - SCM_REGION Regions[1]; - -} SCM_REGIONS, *PSCM_REGIONS; -# 7080 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _SCM_BUS_QUERY_TYPE { - ScmBusQuery_Descriptor = 0, - ScmBusQuery_IsSupported, - - ScmBusQuery_Max -} SCM_BUS_QUERY_TYPE, *PSCM_BUS_QUERY_TYPE; -# 7108 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _SCM_BUS_SET_TYPE { - ScmBusSet_Descriptor = 0, - ScmBusSet_IsSupported, - - ScmBusSet_Max -} SCM_BUS_SET_TYPE, *PSCM_BUS_SET_TYPE; - - -typedef enum _SCM_BUS_PROPERTY_ID { - - - - - ScmBusProperty_RuntimeFwActivationInfo = 0, - - - - - ScmBusProperty_DedicatedMemoryInfo = 1, - - - - - ScmBusProperty_DedicatedMemoryState = 2, - - ScmBusProperty_Max -} SCM_BUS_PROPERTY_ID, *PSCM_BUS_PROPERTY_ID; - - - - - - -typedef struct _SCM_BUS_PROPERTY_QUERY { - - - - - DWORD Version; - - - - - - DWORD Size; - - - - - SCM_BUS_PROPERTY_ID PropertyId; - - - - - SCM_BUS_QUERY_TYPE QueryType; - - - - - BYTE AdditionalParameters[1]; - -} SCM_BUS_PROPERTY_QUERY, *PSCM_BUS_PROPERTY_QUERY; -# 7178 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _SCM_BUS_FIRMWARE_ACTIVATION_STATE { - ScmBusFirmwareActivationState_Idle = 0, - ScmBusFirmwareActivationState_Armed = 1, - ScmBusFirmwareActivationState_Busy = 2 - -} SCM_BUS_FIRMWARE_ACTIVATION_STATE, *PSCM_BUS_FIRMWARE_ACTIVATION_STATE; - -typedef struct _SCM_BUS_RUNTIME_FW_ACTIVATION_INFO { - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - BOOLEAN RuntimeFwActivationSupported; - - - - - - SCM_BUS_FIRMWARE_ACTIVATION_STATE FirmwareActivationState; - - - - - struct { - - - - - DWORD FwManagedIoQuiesceFwActivationSupported : 1; - - - - - DWORD OsManagedIoQuiesceFwActivationSupported : 1; - - - - - DWORD WarmResetBasedFwActivationSupported : 1; - - DWORD Reserved : 29; - } FirmwareActivationCapability; - - - - - DWORDLONG EstimatedFirmwareActivationTimeInUSecs; - - - - - - DWORDLONG EstimatedProcessorAccessQuiesceTimeInUSecs; - - - - - - DWORDLONG EstimatedIOAccessQuiesceTimeInUSecs; - - - - - - DWORDLONG PlatformSupportedMaxIOAccessQuiesceTimeInUSecs; - -} SCM_BUS_RUNTIME_FW_ACTIVATION_INFO, *PSCM_BUS_RUNTIME_FW_ACTIVATION_INFO; - - - - -typedef struct _SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO { - - - - - GUID DeviceGuid; - - - - - DWORD DeviceNumber; - - struct { - - - - - DWORD ForcedByRegistry : 1; - - - - - DWORD Initialized : 1; - - DWORD Reserved : 30; - } Flags; - - - - - DWORDLONG DeviceSize; - -} SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO, *PSCM_BUS_DEDICATED_MEMORY_DEVICE_INFO; - -typedef struct _SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO { - - - - - DWORD Version; - - - - - - DWORD Size; - - - - - DWORD DeviceCount; - - - - - SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO Devices[1]; - -} SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO, *PSCM_BUS_DEDICATED_MEMORY_DEVICES_INFO; - - - - - - - -typedef struct _SCM_BUS_PROPERTY_SET { - - - - - DWORD Version; - - - - - - DWORD Size; - - - - - SCM_BUS_PROPERTY_ID PropertyId; - - - - - SCM_BUS_SET_TYPE SetType; - - - - - BYTE AdditionalParameters[1]; - -} SCM_BUS_PROPERTY_SET, *PSCM_BUS_PROPERTY_SET; - - - - - -typedef struct _SCM_BUS_DEDICATED_MEMORY_STATE { - - - - - BOOLEAN ActivateState; -} SCM_BUS_DEDICATED_MEMORY_STATE, *PSCM_BUS_DEDICATED_MEMORY_STATE; -# 7386 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SCM_INTERLEAVED_PD_INFO { - - - - - - DWORD DeviceHandle; - - - - - GUID DeviceGuid; - -} SCM_INTERLEAVED_PD_INFO, *PSCM_INTERLEAVED_PD_INFO; - -typedef struct _SCM_LD_INTERLEAVE_SET_INFO { - - - - - DWORD Version; - - - - - - - - DWORD Size; - - - - - DWORD InterleaveSetSize; - - - - - - SCM_INTERLEAVED_PD_INFO InterleaveSet[1]; - -} SCM_LD_INTERLEAVE_SET_INFO, *PSCM_LD_INTERLEAVE_SET_INFO; -# 7454 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _SCM_PD_QUERY_TYPE { - ScmPhysicalDeviceQuery_Descriptor = 0, - ScmPhysicalDeviceQuery_IsSupported, - - ScmPhysicalDeviceQuery_Max -} SCM_PD_QUERY_TYPE, *PSCM_PD_QUERY_TYPE; -# 7482 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _SCM_PD_SET_TYPE { - ScmPhysicalDeviceSet_Descriptor = 0, - ScmPhysicalDeviceSet_IsSupported, - - ScmPhysicalDeviceSet_Max -} SCM_PD_SET_TYPE, *PSCM_PD_SET_TYPE; - - -typedef enum _SCM_PD_PROPERTY_ID { - - - - - ScmPhysicalDeviceProperty_DeviceInfo = 0, - - - - - ScmPhysicalDeviceProperty_ManagementStatus, - - - - - ScmPhysicalDeviceProperty_FirmwareInfo, - - - - - - ScmPhysicalDeviceProperty_LocationString, - - - - - - ScmPhysicalDeviceProperty_DeviceSpecificInfo, - - - - - - ScmPhysicalDeviceProperty_DeviceHandle, - - - - - - ScmPhysicalDeviceProperty_FruIdString, - - - - - ScmPhysicalDeviceProperty_RuntimeFwActivationInfo, - - - - - ScmPhysicalDeviceProperty_RuntimeFwActivationArmState, - - ScmPhysicalDeviceProperty_Max -} SCM_PD_PROPERTY_ID, *PSCM_PD_PROPERTY_ID; - - - - - - - -typedef struct _SCM_PD_PROPERTY_QUERY { - - - - - DWORD Version; - - - - - - DWORD Size; - - - - - SCM_PD_PROPERTY_ID PropertyId; - - - - - SCM_PD_QUERY_TYPE QueryType; - - - - - BYTE AdditionalParameters[1]; - -} SCM_PD_PROPERTY_QUERY, *PSCM_PD_PROPERTY_QUERY; - - - - - - -typedef struct _SCM_PD_PROPERTY_SET { - - - - - DWORD Version; - - - - - - DWORD Size; - - - - - SCM_PD_PROPERTY_ID PropertyId; - - - - - SCM_PD_SET_TYPE SetType; - - - - - BYTE AdditionalParameters[1]; - -} SCM_PD_PROPERTY_SET, *PSCM_PD_PROPERTY_SET; - - - - - -typedef struct _SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE { - - - - - BOOLEAN ArmState; -} SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE, *PSCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE; - - - - - - -typedef struct _SCM_PD_DESCRIPTOR_HEADER { - - - - - DWORD Version; - - - - - DWORD Size; -} SCM_PD_DESCRIPTOR_HEADER, *PSCM_PD_DESCRIPTOR_HEADER; -# 7653 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SCM_PD_DEVICE_HANDLE { - - - - - DWORD Version; - - - - - DWORD Size; - - - - - GUID DeviceGuid; - - - - - - DWORD DeviceHandle; - -} SCM_PD_DEVICE_HANDLE, *PSCM_PD_DEVICE_HANDLE; -# 7687 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SCM_PD_DEVICE_INFO { - - - - - DWORD Version; - - - - - - - - DWORD Size; - - - - - GUID DeviceGuid; - - - - - - DWORD UnsafeShutdownCount; - - - - - - DWORD64 PersistentMemorySizeInBytes; - - - - - - DWORD64 VolatileMemorySizeInBytes; - - - - - - - DWORD64 TotalMemorySizeInBytes; - - - - - DWORD SlotNumber; - - - - - - DWORD DeviceHandle; - - - - - WORD PhysicalId; - - - - - - BYTE NumberOfFormatInterfaceCodes; - WORD FormatInterfaceCodes[8]; - - - - - DWORD VendorId; - DWORD ProductId; - DWORD SubsystemDeviceId; - DWORD SubsystemVendorId; - BYTE ManufacturingLocation; - BYTE ManufacturingWeek; - BYTE ManufacturingYear; - DWORD SerialNumber4Byte; - - - - - DWORD SerialNumberLengthInChars; - CHAR SerialNumber[1]; -} SCM_PD_DEVICE_INFO, *PSCM_PD_DEVICE_INFO; -# 7784 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SCM_PD_DEVICE_SPECIFIC_PROPERTY { - - WCHAR Name[128]; - LONGLONG Value; -} SCM_PD_DEVICE_SPECIFIC_PROPERTY, *PSCM_PD_DEVICE_SPECIFIC_PROPERTY; - - - - -typedef struct _SCM_PD_DEVICE_SPECIFIC_INFO { - - - - DWORD Version; - - - - - - - - DWORD Size; - - - - - DWORD NumberOfProperties; - - - - - SCM_PD_DEVICE_SPECIFIC_PROPERTY DeviceSpecificProperties[1]; -} SCM_PD_DEVICE_SPECIFIC_INFO, *PSCM_PD_DEVICE_SPECIFIC_INFO; - -typedef struct _SCM_PD_FIRMWARE_SLOT_INFO { - - - - - DWORD Version; - - - - - DWORD Size; - - BYTE SlotNumber; - BYTE ReadOnly : 1; - BYTE Reserved0 : 7; - BYTE Reserved1[6]; - - BYTE Revision[32]; - -} SCM_PD_FIRMWARE_SLOT_INFO, *PSCM_PD_FIRMWARE_SLOT_INFO; - - - - - -typedef struct _SCM_PD_FIRMWARE_INFO { - - - - - DWORD Version; - - - - - - - - DWORD Size; - - - - - - BYTE ActiveSlot; - - - - - - BYTE NextActiveSlot; - - BYTE SlotCount; - - SCM_PD_FIRMWARE_SLOT_INFO Slots[1]; - -} SCM_PD_FIRMWARE_INFO, *PSCM_PD_FIRMWARE_INFO; -# 7885 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _SCM_PD_HEALTH_STATUS { - ScmPhysicalDeviceHealth_Unknown = 0, - ScmPhysicalDeviceHealth_Unhealthy, - ScmPhysicalDeviceHealth_Warning, - ScmPhysicalDeviceHealth_Healthy, - - ScmPhysicalDeviceHealth_Max -} SCM_PD_HEALTH_STATUS, *PSCM_PD_HEALTH_STATUS; - - - - -typedef enum _SCM_PD_OPERATIONAL_STATUS { - ScmPhysicalDeviceOpStatus_Unknown = 0, - ScmPhysicalDeviceOpStatus_Ok, - ScmPhysicalDeviceOpStatus_PredictingFailure, - ScmPhysicalDeviceOpStatus_InService, - ScmPhysicalDeviceOpStatus_HardwareError, - ScmPhysicalDeviceOpStatus_NotUsable, - ScmPhysicalDeviceOpStatus_TransientError, - ScmPhysicalDeviceOpStatus_Missing, - - ScmPhysicalDeviceOpStatus_Max -} SCM_PD_OPERATIONAL_STATUS, *PSCM_PD_OPERATIONAL_STATUS; - - - - -typedef enum _SCM_PD_OPERATIONAL_STATUS_REASON { - ScmPhysicalDeviceOpReason_Unknown = 0, - ScmPhysicalDeviceOpReason_Media, - ScmPhysicalDeviceOpReason_ThresholdExceeded, - ScmPhysicalDeviceOpReason_LostData, - ScmPhysicalDeviceOpReason_EnergySource, - ScmPhysicalDeviceOpReason_Configuration, - ScmPhysicalDeviceOpReason_DeviceController, - ScmPhysicalDeviceOpReason_MediaController, - ScmPhysicalDeviceOpReason_Component, - ScmPhysicalDeviceOpReason_BackgroundOperation, - ScmPhysicalDeviceOpReason_InvalidFirmware, - ScmPhysicalDeviceOpReason_HealthCheck, - ScmPhysicalDeviceOpReason_LostDataPersistence, - ScmPhysicalDeviceOpReason_DisabledByPlatform, - ScmPhysicalDeviceOpReason_PermanentError, - ScmPhysicalDeviceOpReason_LostWritePersistence, - ScmPhysicalDeviceOpReason_FatalError, - ScmPhysicalDeviceOpReason_DataPersistenceLossImminent, - ScmPhysicalDeviceOpReason_WritePersistenceLossImminent, - ScmPhysicalDeviceOpReason_MediaRemainingSpareBlock, - ScmPhysicalDeviceOpReason_PerformanceDegradation, - ScmPhysicalDeviceOpReason_ExcessiveTemperature, - ScmPhysicalDeviceOpReason_InternalFailure, - - ScmPhysicalDeviceOpReason_Max -} SCM_PD_OPERATIONAL_STATUS_REASON, *PSCM_PD_OPERATIONAL_STATUS_REASON; - - - - - - - -typedef struct _SCM_PD_MANAGEMENT_STATUS { - - - - - DWORD Version; - - - - - - - - DWORD Size; - - - - - SCM_PD_HEALTH_STATUS Health; - - - - - DWORD NumberOfOperationalStatus; - - - - - DWORD NumberOfAdditionalReasons; - - - - - - SCM_PD_OPERATIONAL_STATUS OperationalStatus[16]; - - - - - SCM_PD_OPERATIONAL_STATUS_REASON AdditionalReasons[1]; - -} SCM_PD_MANAGEMENT_STATUS, *PSCM_PD_MANAGEMENT_STATUS; - - - - -typedef struct _SCM_PD_LOCATION_STRING { - - - - - DWORD Version; - - - - - - - - DWORD Size; - - - - - WCHAR Location[1]; - -} SCM_PD_LOCATION_STRING, *PSCM_PD_LOCATION_STRING; - - - - -typedef struct _SCM_PD_FRU_ID_STRING { - - - - - DWORD Version; - - - - - - - - DWORD Size; - - - - - DWORD IdentifierSize; - BYTE Identifier[1]; - -} SCM_PD_FRU_ID_STRING, *PSCM_PD_FRU_ID_STRING; -# 8055 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SCM_PD_FIRMWARE_DOWNLOAD { - - - - - DWORD Version; - - - - - DWORD Size; - - - - - - DWORD Flags; - - - - - BYTE Slot; - - BYTE Reserved[3]; - - - - - DWORD64 Offset; - - - - - DWORD FirmwareImageSizeInBytes; - - - - - BYTE FirmwareImage[1]; - -} SCM_PD_FIRMWARE_DOWNLOAD, *PSCM_PD_FIRMWARE_DOWNLOAD; - - - - -typedef struct _SCM_PD_FIRMWARE_ACTIVATE { - - - - - DWORD Version; - - - - - DWORD Size; - - - - - DWORD Flags; - - - - - BYTE Slot; - -} SCM_PD_FIRMWARE_ACTIVATE, *PSCM_PD_FIRMWARE_ACTIVATE; -# 8131 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _SCM_PD_LAST_FW_ACTIVATION_STATUS { - ScmPdLastFwActivationStatus_None = 0, - ScmPdLastFwActivationStatus_Success = 1, - ScmPdLastFwActivationStatus_FwNotFound = 2, - ScmPdLastFwActivationStatus_ColdRebootRequired = 3, - ScmPdLastFwActivaitonStatus_ActivationInProgress = 4, - ScmPdLastFwActivaitonStatus_Retry = 5, - ScmPdLastFwActivaitonStatus_FwUnsupported = 6, - ScmPdLastFwActivaitonStatus_UnknownError = 7 - -} SCM_PD_LAST_FW_ACTIVATION_STATUS, *PSCM_PD_LAST_FW_ACTIVATION_STATUS; - - - - -typedef enum _SCM_PD_FIRMWARE_ACTIVATION_STATE { - ScmPdFirmwareActivationState_Idle = 0, - ScmPdFirmwareActivationState_Armed = 1, - ScmPdFirmwareActivationState_Busy = 2 - -} SCM_PD_FIRMWARE_ACTIVATION_STATE, *PSCM_PD_FIRMWARE_ACTIVATION_STATE; - -typedef struct _SCM_PD_RUNTIME_FW_ACTIVATION_INFO { - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - SCM_PD_LAST_FW_ACTIVATION_STATUS LastFirmwareActivationStatus; - - - - - SCM_PD_FIRMWARE_ACTIVATION_STATE FirmwareActivationState; - -} SCM_PD_RUNTIME_FW_ACTIVATION_INFO, *PSCM_PD_RUNTIME_FW_ACTIVATION_INFO; -# 8194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SCM_PD_PASSTHROUGH_INPUT { - - - - - DWORD Version; - - - - - DWORD Size; - - - - - - - GUID ProtocolGuid; - - - - - DWORD DataSize; - - - - - BYTE Data[1]; -} SCM_PD_PASSTHROUGH_INPUT, *PSCM_PD_PASSTHROUGH_INPUT; - -typedef struct _SCM_PD_PASSTHROUGH_OUTPUT { - - - - - DWORD Version; -# 8238 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD Size; - - - - - - GUID ProtocolGuid; - - - - - DWORD DataSize; - - - - - BYTE Data[1]; -} SCM_PD_PASSTHROUGH_OUTPUT, *PSCM_PD_PASSTHROUGH_OUTPUT; -# 8265 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SCM_PD_PASSTHROUGH_INVDIMM_INPUT { - - - - - DWORD Opcode; - - - - - - - DWORD OpcodeParametersLength; - - - - - BYTE OpcodeParameters[1]; -} SCM_PD_PASSTHROUGH_INVDIMM_INPUT, *PSCM_PD_PASSTHROUGH_INVDIMM_INPUT; - - - - - - -typedef struct _SCM_PD_PASSTHROUGH_INVDIMM_OUTPUT { - - - - - WORD GeneralStatus; - - - - - WORD ExtendedStatus; - - - - - - DWORD OutputDataLength; - - - - - BYTE OutputData[1]; -} SCM_PD_PASSTHROUGH_INVDIMM_OUTPUT, *PSCM_PD_PASSTHROUGH_INVDIMM_OUTPUT; -# 8326 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SCM_PD_REINITIALIZE_MEDIA_INPUT { - - - - - DWORD Version; - - - - - DWORD Size; - - - - - - - - struct { - DWORD Overwrite : 1; - } Options; -} SCM_PD_REINITIALIZE_MEDIA_INPUT, *PSCM_PD_REINITIALIZE_MEDIA_INPUT; - -typedef enum _SCM_PD_MEDIA_REINITIALIZATION_STATUS { - - - - - ScmPhysicalDeviceReinit_Success = 0, - - - - - ScmPhysicalDeviceReinit_RebootNeeded, - - - - - ScmPhysicalDeviceReinit_ColdBootNeeded, - - ScmPhysicalDeviceReinit_Max -} SCM_PD_MEDIA_REINITIALIZATION_STATUS, *PSCM_PD_MEDIA_REINITIALIZATION_STATUS; - -typedef struct _SCM_PD_REINITIALIZE_MEDIA_OUTPUT { - - - - - DWORD Version; - - - - - DWORD Size; - - - - - - - SCM_PD_MEDIA_REINITIALIZATION_STATUS Status; -} SCM_PD_REINITIALIZE_MEDIA_OUTPUT, *PSCM_PD_REINITIALIZE_MEDIA_OUTPUT; - - - - -#pragma warning(pop) -# 8410 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma warning(push) -#pragma warning(disable: 4201) -#pragma warning(disable: 4214) -#pragma warning(disable: 4820) -# 8696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _MEDIA_TYPE { - Unknown, - F5_1Pt2_512, - F3_1Pt44_512, - F3_2Pt88_512, - F3_20Pt8_512, - F3_720_512, - F5_360_512, - F5_320_512, - F5_320_1024, - F5_180_512, - F5_160_512, - RemovableMedia, - FixedMedia, - F3_120M_512, - F3_640_512, - F5_640_512, - F5_720_512, - F3_1Pt2_512, - F3_1Pt23_1024, - F5_1Pt23_1024, - F3_128Mb_512, - F3_230Mb_512, - F8_256_128, - F3_200Mb_512, - F3_240M_512, - F3_32M_512 -} MEDIA_TYPE, *PMEDIA_TYPE; - - - - - - -typedef struct _FORMAT_PARAMETERS { - MEDIA_TYPE MediaType; - DWORD StartCylinderNumber; - DWORD EndCylinderNumber; - DWORD StartHeadNumber; - DWORD EndHeadNumber; -} FORMAT_PARAMETERS, *PFORMAT_PARAMETERS; -# 8745 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef WORD BAD_TRACK_NUMBER; -typedef WORD *PBAD_TRACK_NUMBER; - - - - - - -typedef struct _FORMAT_EX_PARAMETERS { - MEDIA_TYPE MediaType; - DWORD StartCylinderNumber; - DWORD EndCylinderNumber; - DWORD StartHeadNumber; - DWORD EndHeadNumber; - WORD FormatGapLength; - WORD SectorsPerTrack; - WORD SectorNumber[1]; -} FORMAT_EX_PARAMETERS, *PFORMAT_EX_PARAMETERS; - - - - - - - -typedef struct _DISK_GEOMETRY { - - LARGE_INTEGER Cylinders; - - MEDIA_TYPE MediaType; - - DWORD TracksPerCylinder; - - DWORD SectorsPerTrack; - - DWORD BytesPerSector; - -} DISK_GEOMETRY, *PDISK_GEOMETRY; -# 8799 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _PARTITION_INFORMATION { - LARGE_INTEGER StartingOffset; - LARGE_INTEGER PartitionLength; - DWORD HiddenSectors; - DWORD PartitionNumber; - BYTE PartitionType; - BOOLEAN BootIndicator; - BOOLEAN RecognizedPartition; - BOOLEAN RewritePartition; -} PARTITION_INFORMATION, *PPARTITION_INFORMATION; - - - - - - - -typedef struct _SET_PARTITION_INFORMATION { - BYTE PartitionType; -} SET_PARTITION_INFORMATION, *PSET_PARTITION_INFORMATION; - - - - - - -typedef struct _DRIVE_LAYOUT_INFORMATION { - DWORD PartitionCount; - DWORD Signature; - PARTITION_INFORMATION PartitionEntry[1]; -} DRIVE_LAYOUT_INFORMATION, *PDRIVE_LAYOUT_INFORMATION; - - - - - - -typedef struct _VERIFY_INFORMATION { - LARGE_INTEGER StartingOffset; - DWORD Length; -} VERIFY_INFORMATION, *PVERIFY_INFORMATION; - - - - - - -typedef struct _REASSIGN_BLOCKS { - WORD Reserved; - WORD Count; - DWORD BlockNumber[1]; -} REASSIGN_BLOCKS, *PREASSIGN_BLOCKS; - - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,1) -# 8858 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 -typedef struct _REASSIGN_BLOCKS_EX { - WORD Reserved; - WORD Count; - LARGE_INTEGER BlockNumber[1]; -} REASSIGN_BLOCKS_EX, *PREASSIGN_BLOCKS_EX; -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 8864 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 -# 8880 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _PARTITION_STYLE { - PARTITION_STYLE_MBR, - PARTITION_STYLE_GPT, - PARTITION_STYLE_RAW -} PARTITION_STYLE; - - - - - - - -typedef struct _PARTITION_INFORMATION_GPT { - - GUID PartitionType; - - GUID PartitionId; - - DWORD64 Attributes; - - WCHAR Name [36]; - -} PARTITION_INFORMATION_GPT, *PPARTITION_INFORMATION_GPT; -# 8938 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _PARTITION_INFORMATION_MBR { - - BYTE PartitionType; - - BOOLEAN BootIndicator; - - BOOLEAN RecognizedPartition; - - DWORD HiddenSectors; - - - GUID PartitionId; - - -} PARTITION_INFORMATION_MBR, *PPARTITION_INFORMATION_MBR; -# 8963 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef SET_PARTITION_INFORMATION SET_PARTITION_INFORMATION_MBR; -typedef PARTITION_INFORMATION_GPT SET_PARTITION_INFORMATION_GPT; - - -typedef struct _SET_PARTITION_INFORMATION_EX { - PARTITION_STYLE PartitionStyle; - union { - SET_PARTITION_INFORMATION_MBR Mbr; - SET_PARTITION_INFORMATION_GPT Gpt; - } ; -} SET_PARTITION_INFORMATION_EX, *PSET_PARTITION_INFORMATION_EX; - - - - - - - -typedef struct _CREATE_DISK_GPT { - GUID DiskId; - DWORD MaxPartitionCount; -} CREATE_DISK_GPT, *PCREATE_DISK_GPT; - - - - - - -typedef struct _CREATE_DISK_MBR { - DWORD Signature; -} CREATE_DISK_MBR, *PCREATE_DISK_MBR; - - -typedef struct _CREATE_DISK { - PARTITION_STYLE PartitionStyle; - union { - CREATE_DISK_MBR Mbr; - CREATE_DISK_GPT Gpt; - } ; -} CREATE_DISK, *PCREATE_DISK; -# 9011 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _GET_LENGTH_INFORMATION { - LARGE_INTEGER Length; -} GET_LENGTH_INFORMATION, *PGET_LENGTH_INFORMATION; - - - - - - - -typedef struct _PARTITION_INFORMATION_EX { - - PARTITION_STYLE PartitionStyle; - - LARGE_INTEGER StartingOffset; - - LARGE_INTEGER PartitionLength; - - DWORD PartitionNumber; - - BOOLEAN RewritePartition; - - - BOOLEAN IsServicePartition; - - - union { - - PARTITION_INFORMATION_MBR Mbr; - - PARTITION_INFORMATION_GPT Gpt; - - } ; - -} PARTITION_INFORMATION_EX, *PPARTITION_INFORMATION_EX; - - - - - - -typedef struct _DRIVE_LAYOUT_INFORMATION_GPT { - - GUID DiskId; - - LARGE_INTEGER StartingUsableOffset; - - LARGE_INTEGER UsableLength; - - DWORD MaxPartitionCount; - -} DRIVE_LAYOUT_INFORMATION_GPT, *PDRIVE_LAYOUT_INFORMATION_GPT; - - - - - - -typedef struct _DRIVE_LAYOUT_INFORMATION_MBR { - - DWORD Signature; - - - DWORD CheckSum; - - -} DRIVE_LAYOUT_INFORMATION_MBR, *PDRIVE_LAYOUT_INFORMATION_MBR; - - - - - - -typedef struct _DRIVE_LAYOUT_INFORMATION_EX { - - DWORD PartitionStyle; - - DWORD PartitionCount; - - union { - - DRIVE_LAYOUT_INFORMATION_MBR Mbr; - - DRIVE_LAYOUT_INFORMATION_GPT Gpt; - - } ; - - PARTITION_INFORMATION_EX PartitionEntry[1]; - -} DRIVE_LAYOUT_INFORMATION_EX, *PDRIVE_LAYOUT_INFORMATION_EX; -# 9113 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _DETECTION_TYPE { - DetectNone, - DetectInt13, - DetectExInt13 -} DETECTION_TYPE; - -typedef struct _DISK_INT13_INFO { - WORD DriveSelect; - DWORD MaxCylinders; - WORD SectorsPerTrack; - WORD MaxHeads; - WORD NumberDrives; -} DISK_INT13_INFO, *PDISK_INT13_INFO; - -typedef struct _DISK_EX_INT13_INFO { - WORD ExBufferSize; - WORD ExFlags; - DWORD ExCylinders; - DWORD ExHeads; - DWORD ExSectorsPerTrack; - DWORD64 ExSectorsPerDrive; - WORD ExSectorSize; - WORD ExReserved; -} DISK_EX_INT13_INFO, *PDISK_EX_INT13_INFO; - - -#pragma warning(push) -#pragma warning(disable: 4201) - - -typedef struct _DISK_DETECTION_INFO { - DWORD SizeOfDetectInfo; - DETECTION_TYPE DetectionType; - union { - struct { - - - - - - - DISK_INT13_INFO Int13; - - - - - - - DISK_EX_INT13_INFO ExInt13; - } ; - } ; -} DISK_DETECTION_INFO, *PDISK_DETECTION_INFO; - - -typedef struct _DISK_PARTITION_INFO { - DWORD SizeOfPartitionInfo; - PARTITION_STYLE PartitionStyle; - union { - struct { - DWORD Signature; - DWORD CheckSum; - } Mbr; - struct { - GUID DiskId; - } Gpt; - } ; -} DISK_PARTITION_INFO, *PDISK_PARTITION_INFO; - - -#pragma warning(pop) -# 9206 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DISK_GEOMETRY_EX { - DISK_GEOMETRY Geometry; - LARGE_INTEGER DiskSize; - BYTE Data[1]; -} DISK_GEOMETRY_EX, *PDISK_GEOMETRY_EX; -# 9221 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DISK_CONTROLLER_NUMBER { - DWORD ControllerNumber; - DWORD DiskNumber; -} DISK_CONTROLLER_NUMBER, *PDISK_CONTROLLER_NUMBER; -# 9251 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum { - EqualPriority, - KeepPrefetchedData, - KeepReadData -} DISK_CACHE_RETENTION_PRIORITY; -# 9265 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DISK_CACHE_INFORMATION { - - - - - - - - BOOLEAN ParametersSavable; - - - - - - BOOLEAN ReadCacheEnabled; - BOOLEAN WriteCacheEnabled; -# 9289 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DISK_CACHE_RETENTION_PRIORITY ReadRetentionPriority; - DISK_CACHE_RETENTION_PRIORITY WriteRetentionPriority; - - - - - - - WORD DisablePrefetchTransferLength; - - - - - - - - BOOLEAN PrefetchScalar; -# 9315 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - union { - struct { - WORD Minimum; - WORD Maximum; - - - - - - - WORD MaximumBlocks; - } ScalarPrefetch; - - struct { - WORD Minimum; - WORD Maximum; - } BlockPrefetch; - } ; - -} DISK_CACHE_INFORMATION, *PDISK_CACHE_INFORMATION; -# 9343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DISK_GROW_PARTITION { - DWORD PartitionNumber; - LARGE_INTEGER BytesToGrow; -} DISK_GROW_PARTITION, *PDISK_GROW_PARTITION; -# 9367 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _HISTOGRAM_BUCKET { - DWORD Reads; - DWORD Writes; -} HISTOGRAM_BUCKET, *PHISTOGRAM_BUCKET; - - - -typedef struct _DISK_HISTOGRAM { - LARGE_INTEGER DiskSize; - LARGE_INTEGER Start; - LARGE_INTEGER End; - LARGE_INTEGER Average; - LARGE_INTEGER AverageRead; - LARGE_INTEGER AverageWrite; - DWORD Granularity; - DWORD Size; - DWORD ReadCount; - DWORD WriteCount; - PHISTOGRAM_BUCKET Histogram; -} DISK_HISTOGRAM, *PDISK_HISTOGRAM; -# 9410 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DISK_PERFORMANCE { - LARGE_INTEGER BytesRead; - LARGE_INTEGER BytesWritten; - LARGE_INTEGER ReadTime; - LARGE_INTEGER WriteTime; - LARGE_INTEGER IdleTime; - DWORD ReadCount; - DWORD WriteCount; - DWORD QueueDepth; - DWORD SplitCount; - LARGE_INTEGER QueryTime; - DWORD StorageDeviceNumber; - WCHAR StorageManagerName[8]; -} DISK_PERFORMANCE, *PDISK_PERFORMANCE; - - - - - - - -typedef struct _DISK_RECORD { - LARGE_INTEGER ByteOffset; - LARGE_INTEGER StartTime; - LARGE_INTEGER EndTime; - PVOID VirtualAddress; - DWORD NumberOfBytes; - BYTE DeviceNumber; - BOOLEAN ReadRequest; -} DISK_RECORD, *PDISK_RECORD; - - - - - - -typedef struct _DISK_LOGGING { - BYTE Function; - PVOID BufferAddress; - DWORD BufferSize; -} DISK_LOGGING, *PDISK_LOGGING; -# 9488 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _BIN_TYPES { - RequestSize, - RequestLocation -} BIN_TYPES; - - - - - -typedef struct _BIN_RANGE { - LARGE_INTEGER StartValue; - LARGE_INTEGER Length; -} BIN_RANGE, *PBIN_RANGE; - - - - - -typedef struct _PERF_BIN { - DWORD NumberOfBins; - DWORD TypeOfBin; - BIN_RANGE BinsRanges[1]; -} PERF_BIN, *PPERF_BIN ; - - - - - -typedef struct _BIN_COUNT { - BIN_RANGE BinRange; - DWORD BinCount; -} BIN_COUNT, *PBIN_COUNT; - - - - - -typedef struct _BIN_RESULTS { - DWORD NumberOfBins; - BIN_COUNT BinCounts[1]; -} BIN_RESULTS, *PBIN_RESULTS; -# 9538 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,1) -# 9539 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 -typedef struct _GETVERSIONINPARAMS { - BYTE bVersion; - BYTE bRevision; - BYTE bReserved; - BYTE bIDEDeviceMap; - DWORD fCapabilities; - DWORD dwReserved[4]; -} GETVERSIONINPARAMS, *PGETVERSIONINPARAMS, *LPGETVERSIONINPARAMS; -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 9548 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 -# 9561 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,1) -# 9562 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 -typedef struct _IDEREGS { - BYTE bFeaturesReg; - BYTE bSectorCountReg; - BYTE bSectorNumberReg; - BYTE bCylLowReg; - BYTE bCylHighReg; - BYTE bDriveHeadReg; - BYTE bCommandReg; - BYTE bReserved; -} IDEREGS, *PIDEREGS, *LPIDEREGS; -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 9573 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 -# 9597 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,1) -# 9598 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 -typedef struct _SENDCMDINPARAMS { - DWORD cBufferSize; - IDEREGS irDriveRegs; - BYTE bDriveNumber; - - BYTE bReserved[3]; - DWORD dwReserved[4]; - BYTE bBuffer[1]; -} SENDCMDINPARAMS, *PSENDCMDINPARAMS, *LPSENDCMDINPARAMS; -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 9608 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,1) -# 9614 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 -typedef struct _DRIVERSTATUS { - BYTE bDriverError; - - BYTE bIDEError; - - - BYTE bReserved[2]; - DWORD dwReserved[2]; -} DRIVERSTATUS, *PDRIVERSTATUS, *LPDRIVERSTATUS; -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 9624 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 -# 9652 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack1.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,1) -# 9653 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 -typedef struct _SENDCMDOUTPARAMS { - DWORD cBufferSize; - DRIVERSTATUS DriverStatus; - BYTE bBuffer[1]; -} SENDCMDOUTPARAMS, *PSENDCMDOUTPARAMS, *LPSENDCMDOUTPARAMS; -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 9659 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 2 3 -# 9704 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _GET_DISK_ATTRIBUTES { - - - - - - DWORD Version; - - - - - DWORD Reserved1; - - - - - - DWORDLONG Attributes; - -} GET_DISK_ATTRIBUTES, *PGET_DISK_ATTRIBUTES; -# 9735 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SET_DISK_ATTRIBUTES { - - - - - - DWORD Version; - - - - - - - BOOLEAN Persist; - - - - - BYTE Reserved1[3]; - - - - - DWORDLONG Attributes; - - - - - - DWORDLONG AttributesMask; - - - - - DWORD Reserved2[4]; - -} SET_DISK_ATTRIBUTES, *PSET_DISK_ATTRIBUTES; - - - - - - -#pragma warning(pop) -# 9817 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _ELEMENT_TYPE { - AllElements, - ChangerTransport, - ChangerSlot, - ChangerIEPort, - ChangerDrive, - ChangerDoor, - ChangerKeypad, - ChangerMaxElement -} ELEMENT_TYPE, *PELEMENT_TYPE; - -typedef struct _CHANGER_ELEMENT { - ELEMENT_TYPE ElementType; - DWORD ElementAddress; -} CHANGER_ELEMENT, *PCHANGER_ELEMENT; - -typedef struct _CHANGER_ELEMENT_LIST { - CHANGER_ELEMENT Element; - DWORD NumberOfElements; -} CHANGER_ELEMENT_LIST , *PCHANGER_ELEMENT_LIST; -# 9927 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _GET_CHANGER_PARAMETERS { - - - - - - DWORD Size; - - - - - - WORD NumberTransportElements; - WORD NumberStorageElements; - WORD NumberCleanerSlots; - WORD NumberIEElements; - WORD NumberDataTransferElements; - - - - - - WORD NumberOfDoors; - - - - - - - WORD FirstSlotNumber; - WORD FirstDriveNumber; - WORD FirstTransportNumber; - WORD FirstIEPortNumber; - WORD FirstCleanerSlotAddress; - - - - - - WORD MagazineSize; - - - - - - - DWORD DriveCleanTimeout; - - - - - - DWORD Features0; - DWORD Features1; - - - - - - - BYTE MoveFromTransport; - BYTE MoveFromSlot; - BYTE MoveFromIePort; - BYTE MoveFromDrive; - - - - - - - BYTE ExchangeFromTransport; - BYTE ExchangeFromSlot; - BYTE ExchangeFromIePort; - BYTE ExchangeFromDrive; - - - - - - - BYTE LockUnlockCapabilities; - - - - - - - BYTE PositionCapabilities; - - - - - - BYTE Reserved1[2]; - DWORD Reserved2[2]; - -} GET_CHANGER_PARAMETERS, * PGET_CHANGER_PARAMETERS; - - - - - - -typedef struct _CHANGER_PRODUCT_DATA { - - - - - - BYTE VendorId[8]; - - - - - - BYTE ProductId[16]; - - - - - - BYTE Revision[4]; - - - - - - - BYTE SerialNumber[32]; - - - - - - BYTE DeviceType; - -} CHANGER_PRODUCT_DATA, *PCHANGER_PRODUCT_DATA; -# 10075 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _CHANGER_SET_ACCESS { - - - - - - CHANGER_ELEMENT Element; - - - - - - DWORD Control; -} CHANGER_SET_ACCESS, *PCHANGER_SET_ACCESS; -# 10099 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _CHANGER_READ_ELEMENT_STATUS { - - - - - - CHANGER_ELEMENT_LIST ElementList; - - - - - - BOOLEAN VolumeTagInfo; -} CHANGER_READ_ELEMENT_STATUS, *PCHANGER_READ_ELEMENT_STATUS; - - - - - -typedef struct _CHANGER_ELEMENT_STATUS { - - - - - - CHANGER_ELEMENT Element; - - - - - - - - CHANGER_ELEMENT SrcElementAddress; - - - - - - DWORD Flags; - - - - - - DWORD ExceptionCode; - - - - - - - BYTE TargetId; - - - - - - - BYTE Lun; - WORD Reserved; - - - - - - - BYTE PrimaryVolumeID[36]; - - - - - - - - BYTE AlternateVolumeID[36]; - -} CHANGER_ELEMENT_STATUS, *PCHANGER_ELEMENT_STATUS; - - - - - - - -typedef struct _CHANGER_ELEMENT_STATUS_EX { - - - - - - CHANGER_ELEMENT Element; - - - - - - - - CHANGER_ELEMENT SrcElementAddress; - - - - - - DWORD Flags; - - - - - - DWORD ExceptionCode; - - - - - - - BYTE TargetId; - - - - - - - BYTE Lun; - WORD Reserved; - - - - - - - BYTE PrimaryVolumeID[36]; - - - - - - - - BYTE AlternateVolumeID[36]; - - - - - BYTE VendorIdentification[8]; - - - - - BYTE ProductIdentification[16]; - - - - - BYTE SerialNumber[32]; - -} CHANGER_ELEMENT_STATUS_EX, *PCHANGER_ELEMENT_STATUS_EX; -# 10298 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _CHANGER_INITIALIZE_ELEMENT_STATUS { - - - - - - CHANGER_ELEMENT_LIST ElementList; - - - - - - - BOOLEAN BarCodeScan; -} CHANGER_INITIALIZE_ELEMENT_STATUS, *PCHANGER_INITIALIZE_ELEMENT_STATUS; - - - - - - -typedef struct _CHANGER_SET_POSITION { - - - - - - - CHANGER_ELEMENT Transport; - - - - - - CHANGER_ELEMENT Destination; - - - - - - BOOLEAN Flip; -} CHANGER_SET_POSITION, *PCHANGER_SET_POSITION; - - - - - - -typedef struct _CHANGER_EXCHANGE_MEDIUM { - - - - - - CHANGER_ELEMENT Transport; - - - - - - CHANGER_ELEMENT Source; - - - - - - CHANGER_ELEMENT Destination1; - - - - - - CHANGER_ELEMENT Destination2; - - - - - - BOOLEAN Flip1; - BOOLEAN Flip2; -} CHANGER_EXCHANGE_MEDIUM, *PCHANGER_EXCHANGE_MEDIUM; - - - - - - -typedef struct _CHANGER_MOVE_MEDIUM { - - - - - - CHANGER_ELEMENT Transport; - - - - - - CHANGER_ELEMENT Source; - - - - - - CHANGER_ELEMENT Destination; - - - - - - BOOLEAN Flip; -} CHANGER_MOVE_MEDIUM, *PCHANGER_MOVE_MEDIUM; -# 10422 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _CHANGER_SEND_VOLUME_TAG_INFORMATION { - - - - - - CHANGER_ELEMENT StartingElement; - - - - - - DWORD ActionCode; - - - - - - BYTE VolumeIDTemplate[40]; -} CHANGER_SEND_VOLUME_TAG_INFORMATION, *PCHANGER_SEND_VOLUME_TAG_INFORMATION; - - - - - - -typedef struct _READ_ELEMENT_ADDRESS_INFO { - - - - - - DWORD NumberOfElements; - - - - - - - CHANGER_ELEMENT_STATUS ElementStatus[1]; -} READ_ELEMENT_ADDRESS_INFO, *PREAD_ELEMENT_ADDRESS_INFO; -# 10489 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _CHANGER_DEVICE_PROBLEM_TYPE { - DeviceProblemNone, - DeviceProblemHardware, - DeviceProblemCHMError, - DeviceProblemDoorOpen, - DeviceProblemCalibrationError, - DeviceProblemTargetFailure, - DeviceProblemCHMMoveError, - DeviceProblemCHMZeroError, - DeviceProblemCartridgeInsertError, - DeviceProblemPositionError, - DeviceProblemSensorError, - DeviceProblemCartridgeEjectError, - DeviceProblemGripperError, - DeviceProblemDriveError -} CHANGER_DEVICE_PROBLEM_TYPE, *PCHANGER_DEVICE_PROBLEM_TYPE; -# 10990 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _PATHNAME_BUFFER { - - DWORD PathNameLength; - WCHAR Name[1]; - -} PATHNAME_BUFFER, *PPATHNAME_BUFFER; - - - - - - - -typedef struct _FSCTL_QUERY_FAT_BPB_BUFFER { - - BYTE First0x24BytesOfBootSector[0x24]; - -} FSCTL_QUERY_FAT_BPB_BUFFER, *PFSCTL_QUERY_FAT_BPB_BUFFER; -# 11020 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - - LARGE_INTEGER VolumeSerialNumber; - LARGE_INTEGER NumberSectors; - LARGE_INTEGER TotalClusters; - LARGE_INTEGER FreeClusters; - LARGE_INTEGER TotalReserved; - DWORD BytesPerSector; - DWORD BytesPerCluster; - DWORD BytesPerFileRecordSegment; - DWORD ClustersPerFileRecordSegment; - LARGE_INTEGER MftValidDataLength; - LARGE_INTEGER MftStartLcn; - LARGE_INTEGER Mft2StartLcn; - LARGE_INTEGER MftZoneStart; - LARGE_INTEGER MftZoneEnd; - -} NTFS_VOLUME_DATA_BUFFER, *PNTFS_VOLUME_DATA_BUFFER; - -typedef struct { - - DWORD ByteCount; - - WORD MajorVersion; - WORD MinorVersion; - - DWORD BytesPerPhysicalSector; - - WORD LfsMajorVersion; - WORD LfsMinorVersion; - - - DWORD MaxDeviceTrimExtentCount; - DWORD MaxDeviceTrimByteCount; - - DWORD MaxVolumeTrimExtentCount; - DWORD MaxVolumeTrimByteCount; - - -} NTFS_EXTENDED_VOLUME_DATA, *PNTFS_EXTENDED_VOLUME_DATA; -# 11070 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - - DWORD ByteCount; - DWORD MajorVersion; - DWORD MinorVersion; - - DWORD BytesPerPhysicalSector; - - LARGE_INTEGER VolumeSerialNumber; - LARGE_INTEGER NumberSectors; - LARGE_INTEGER TotalClusters; - LARGE_INTEGER FreeClusters; - LARGE_INTEGER TotalReserved; - DWORD BytesPerSector; - DWORD BytesPerCluster; - LARGE_INTEGER MaximumSizeOfResidentFile; - - WORD FastTierDataFillRatio; - WORD SlowTierDataFillRatio; - - DWORD DestagesFastTierToSlowTierRate; - - LARGE_INTEGER Reserved[9]; - -} REFS_VOLUME_DATA_BUFFER, *PREFS_VOLUME_DATA_BUFFER; -# 11105 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - - LARGE_INTEGER StartingLcn; - -} STARTING_LCN_INPUT_BUFFER, *PSTARTING_LCN_INPUT_BUFFER; - - - - - -typedef struct { - - LARGE_INTEGER StartingLcn; - DWORD Flags; - -} STARTING_LCN_INPUT_BUFFER_EX, *PSTARTING_LCN_INPUT_BUFFER_EX; - - - -typedef struct { - - LARGE_INTEGER StartingLcn; - LARGE_INTEGER BitmapSize; - BYTE Buffer[1]; - -} VOLUME_BITMAP_BUFFER, *PVOLUME_BITMAP_BUFFER; -# 11140 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - - LARGE_INTEGER StartingVcn; - -} STARTING_VCN_INPUT_BUFFER, *PSTARTING_VCN_INPUT_BUFFER; - -typedef struct RETRIEVAL_POINTERS_BUFFER { - - DWORD ExtentCount; - LARGE_INTEGER StartingVcn; - struct { - LARGE_INTEGER NextVcn; - LARGE_INTEGER Lcn; - } Extents[1]; - -} RETRIEVAL_POINTERS_BUFFER, *PRETRIEVAL_POINTERS_BUFFER; -# 11169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER { - - DWORD ExtentCount; - LARGE_INTEGER StartingVcn; - struct { - LARGE_INTEGER NextVcn; - LARGE_INTEGER Lcn; - DWORD ReferenceCount; - } Extents[1]; - -} RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER, *PRETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER; -# 11193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct RETRIEVAL_POINTER_COUNT { - - DWORD ExtentCount; - -} RETRIEVAL_POINTER_COUNT, *PRETRIEVAL_POINTER_COUNT; -# 11207 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - - LARGE_INTEGER FileReferenceNumber; - -} NTFS_FILE_RECORD_INPUT_BUFFER, *PNTFS_FILE_RECORD_INPUT_BUFFER; - -typedef struct { - - LARGE_INTEGER FileReferenceNumber; - DWORD FileRecordLength; - BYTE FileRecordBuffer[1]; - -} NTFS_FILE_RECORD_OUTPUT_BUFFER, *PNTFS_FILE_RECORD_OUTPUT_BUFFER; -# 11229 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - - HANDLE FileHandle; - LARGE_INTEGER StartingVcn; - LARGE_INTEGER StartingLcn; - DWORD ClusterCount; - -} MOVE_FILE_DATA, *PMOVE_FILE_DATA; - -typedef struct { - - HANDLE FileHandle; - LARGE_INTEGER SourceFileRecord; - LARGE_INTEGER TargetFileRecord; - -} MOVE_FILE_RECORD_DATA, *PMOVE_FILE_RECORD_DATA; - - - - - - -typedef struct _MOVE_FILE_DATA32 { - - UINT32 FileHandle; - LARGE_INTEGER StartingVcn; - LARGE_INTEGER StartingLcn; - DWORD ClusterCount; - -} MOVE_FILE_DATA32, *PMOVE_FILE_DATA32; -# 11269 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - DWORD Restart; - SID Sid; -} FIND_BY_SID_DATA, *PFIND_BY_SID_DATA; - -typedef struct { - DWORD NextEntryOffset; - DWORD FileIndex; - DWORD FileNameLength; - WCHAR FileName[1]; -} FIND_BY_SID_OUTPUT, *PFIND_BY_SID_OUTPUT; -# 11294 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - - DWORDLONG StartFileReferenceNumber; - USN LowUsn; - USN HighUsn; - -} MFT_ENUM_DATA_V0, *PMFT_ENUM_DATA_V0; - -typedef struct { - - DWORDLONG StartFileReferenceNumber; - USN LowUsn; - USN HighUsn; - WORD MinMajorVersion; - WORD MaxMajorVersion; - -} MFT_ENUM_DATA_V1, *PMFT_ENUM_DATA_V1; - - -typedef MFT_ENUM_DATA_V1 MFT_ENUM_DATA, *PMFT_ENUM_DATA; -# 11324 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - - DWORDLONG MaximumSize; - DWORDLONG AllocationDelta; - -} CREATE_USN_JOURNAL_DATA, *PCREATE_USN_JOURNAL_DATA; -# 11343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - - WORD MinMajorVersion; - WORD MaxMajorVersion; - -} READ_FILE_USN_DATA, *PREAD_FILE_USN_DATA; - - - - - - - -typedef struct { - - USN StartUsn; - DWORD ReasonMask; - DWORD ReturnOnlyOnClose; - DWORDLONG Timeout; - DWORDLONG BytesToWaitFor; - DWORDLONG UsnJournalID; - -} READ_USN_JOURNAL_DATA_V0, *PREAD_USN_JOURNAL_DATA_V0; - -typedef struct { - - USN StartUsn; - DWORD ReasonMask; - DWORD ReturnOnlyOnClose; - DWORDLONG Timeout; - DWORDLONG BytesToWaitFor; - DWORDLONG UsnJournalID; - WORD MinMajorVersion; - WORD MaxMajorVersion; - -} READ_USN_JOURNAL_DATA_V1, *PREAD_USN_JOURNAL_DATA_V1; - - -typedef READ_USN_JOURNAL_DATA_V1 READ_USN_JOURNAL_DATA, *PREAD_USN_JOURNAL_DATA; -# 11392 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - DWORD Flags; - DWORD Unused; - DWORDLONG ChunkSize; - LONGLONG FileSizeThreshold; -} USN_TRACK_MODIFIED_RANGES, *PUSN_TRACK_MODIFIED_RANGES; - -typedef struct { - USN Usn; -} USN_RANGE_TRACK_OUTPUT, *PUSN_RANGE_TRACK_OUTPUT; -# 11425 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - - DWORD RecordLength; - WORD MajorVersion; - WORD MinorVersion; - DWORDLONG FileReferenceNumber; - DWORDLONG ParentFileReferenceNumber; - USN Usn; - LARGE_INTEGER TimeStamp; - DWORD Reason; - DWORD SourceInfo; - DWORD SecurityId; - DWORD FileAttributes; - WORD FileNameLength; - WORD FileNameOffset; - WCHAR FileName[1]; - -} USN_RECORD_V2, *PUSN_RECORD_V2; - -typedef struct { - - DWORD RecordLength; - WORD MajorVersion; - WORD MinorVersion; - FILE_ID_128 FileReferenceNumber; - FILE_ID_128 ParentFileReferenceNumber; - USN Usn; - LARGE_INTEGER TimeStamp; - DWORD Reason; - DWORD SourceInfo; - DWORD SecurityId; - DWORD FileAttributes; - WORD FileNameLength; - WORD FileNameOffset; - WCHAR FileName[1]; - -} USN_RECORD_V3, *PUSN_RECORD_V3; - -typedef USN_RECORD_V2 USN_RECORD, *PUSN_RECORD; - -typedef struct { - DWORD RecordLength; - WORD MajorVersion; - WORD MinorVersion; -} USN_RECORD_COMMON_HEADER, *PUSN_RECORD_COMMON_HEADER; - -typedef struct { - LONGLONG Offset; - LONGLONG Length; -} USN_RECORD_EXTENT, *PUSN_RECORD_EXTENT; - -typedef struct { - USN_RECORD_COMMON_HEADER Header; - FILE_ID_128 FileReferenceNumber; - FILE_ID_128 ParentFileReferenceNumber; - USN Usn; - DWORD Reason; - DWORD SourceInfo; - DWORD RemainingExtents; - WORD NumberOfExtents; - WORD ExtentSize; - USN_RECORD_EXTENT Extents[1]; -} USN_RECORD_V4, *PUSN_RECORD_V4; - -typedef union { - USN_RECORD_COMMON_HEADER Header; - USN_RECORD_V2 V2; - USN_RECORD_V3 V3; - USN_RECORD_V4 V4; -} USN_RECORD_UNION, *PUSN_RECORD_UNION; -# 11529 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - - DWORDLONG UsnJournalID; - USN FirstUsn; - USN NextUsn; - USN LowestValidUsn; - USN MaxUsn; - DWORDLONG MaximumSize; - DWORDLONG AllocationDelta; - -} USN_JOURNAL_DATA_V0, *PUSN_JOURNAL_DATA_V0; - -typedef struct { - - DWORDLONG UsnJournalID; - USN FirstUsn; - USN NextUsn; - USN LowestValidUsn; - USN MaxUsn; - DWORDLONG MaximumSize; - DWORDLONG AllocationDelta; - WORD MinSupportedMajorVersion; - WORD MaxSupportedMajorVersion; - -} USN_JOURNAL_DATA_V1, *PUSN_JOURNAL_DATA_V1; - -typedef struct { - - DWORDLONG UsnJournalID; - USN FirstUsn; - USN NextUsn; - USN LowestValidUsn; - USN MaxUsn; - DWORDLONG MaximumSize; - DWORDLONG AllocationDelta; - WORD MinSupportedMajorVersion; - WORD MaxSupportedMajorVersion; - DWORD Flags; - DWORDLONG RangeTrackChunkSize; - LONGLONG RangeTrackFileSizeThreshold; - -} USN_JOURNAL_DATA_V2, *PUSN_JOURNAL_DATA_V2; - - -typedef USN_JOURNAL_DATA_V1 USN_JOURNAL_DATA, *PUSN_JOURNAL_DATA; -# 11584 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - - DWORDLONG UsnJournalID; - DWORD DeleteFlags; - -} DELETE_USN_JOURNAL_DATA, *PDELETE_USN_JOURNAL_DATA; -# 11607 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma warning(push) - -#pragma warning(disable: 4201) - -typedef struct _MARK_HANDLE_INFO { - - - union { - DWORD UsnSourceInfo; - DWORD CopyNumber; - } ; - - - - - HANDLE VolumeHandle; - DWORD HandleInfo; - -} MARK_HANDLE_INFO, *PMARK_HANDLE_INFO; - - - - - - -typedef struct _MARK_HANDLE_INFO32 { - - - union { - DWORD UsnSourceInfo; - DWORD CopyNumber; - } ; - - - - UINT32 VolumeHandle; - DWORD HandleInfo; - -} MARK_HANDLE_INFO32, *PMARK_HANDLE_INFO32; - - - -#pragma warning(pop) -# 11810 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct { - - ACCESS_MASK DesiredAccess; - DWORD SecurityIds[1]; - -} BULK_SECURITY_TEST_DATA, *PBULK_SECURITY_TEST_DATA; -# 11838 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FILE_PREFETCH { - DWORD Type; - DWORD Count; - DWORDLONG Prefetch[1]; -} FILE_PREFETCH, *PFILE_PREFETCH; - -typedef struct _FILE_PREFETCH_EX { - DWORD Type; - DWORD Count; - PVOID Context; - DWORDLONG Prefetch[1]; -} FILE_PREFETCH_EX, *PFILE_PREFETCH_EX; -# 11868 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FILESYSTEM_STATISTICS { - - WORD FileSystemType; - WORD Version; - - DWORD SizeOfCompleteStructure; - - DWORD UserFileReads; - DWORD UserFileReadBytes; - DWORD UserDiskReads; - DWORD UserFileWrites; - DWORD UserFileWriteBytes; - DWORD UserDiskWrites; - - DWORD MetaDataReads; - DWORD MetaDataReadBytes; - DWORD MetaDataDiskReads; - DWORD MetaDataWrites; - DWORD MetaDataWriteBytes; - DWORD MetaDataDiskWrites; - - - - - -} FILESYSTEM_STATISTICS, *PFILESYSTEM_STATISTICS; -# 11906 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FAT_STATISTICS { - DWORD CreateHits; - DWORD SuccessfulCreates; - DWORD FailedCreates; - - DWORD NonCachedReads; - DWORD NonCachedReadBytes; - DWORD NonCachedWrites; - DWORD NonCachedWriteBytes; - - DWORD NonCachedDiskReads; - DWORD NonCachedDiskWrites; -} FAT_STATISTICS, *PFAT_STATISTICS; - -typedef struct _EXFAT_STATISTICS { - DWORD CreateHits; - DWORD SuccessfulCreates; - DWORD FailedCreates; - - DWORD NonCachedReads; - DWORD NonCachedReadBytes; - DWORD NonCachedWrites; - DWORD NonCachedWriteBytes; - - DWORD NonCachedDiskReads; - DWORD NonCachedDiskWrites; -} EXFAT_STATISTICS, *PEXFAT_STATISTICS; - -typedef struct _NTFS_STATISTICS { - - DWORD LogFileFullExceptions; - DWORD OtherExceptions; - - - - - - DWORD MftReads; - DWORD MftReadBytes; - DWORD MftWrites; - DWORD MftWriteBytes; - struct { - WORD Write; - WORD Create; - WORD SetInfo; - WORD Flush; - } MftWritesUserLevel; - - WORD MftWritesFlushForLogFileFull; - WORD MftWritesLazyWriter; - WORD MftWritesUserRequest; - - DWORD Mft2Writes; - DWORD Mft2WriteBytes; - struct { - WORD Write; - WORD Create; - WORD SetInfo; - WORD Flush; - } Mft2WritesUserLevel; - - WORD Mft2WritesFlushForLogFileFull; - WORD Mft2WritesLazyWriter; - WORD Mft2WritesUserRequest; - - DWORD RootIndexReads; - DWORD RootIndexReadBytes; - DWORD RootIndexWrites; - DWORD RootIndexWriteBytes; - - DWORD BitmapReads; - DWORD BitmapReadBytes; - DWORD BitmapWrites; - DWORD BitmapWriteBytes; - - WORD BitmapWritesFlushForLogFileFull; - WORD BitmapWritesLazyWriter; - WORD BitmapWritesUserRequest; - - struct { - WORD Write; - WORD Create; - WORD SetInfo; - } BitmapWritesUserLevel; - - DWORD MftBitmapReads; - DWORD MftBitmapReadBytes; - DWORD MftBitmapWrites; - DWORD MftBitmapWriteBytes; - - WORD MftBitmapWritesFlushForLogFileFull; - WORD MftBitmapWritesLazyWriter; - WORD MftBitmapWritesUserRequest; - - struct { - WORD Write; - WORD Create; - WORD SetInfo; - WORD Flush; - } MftBitmapWritesUserLevel; - - DWORD UserIndexReads; - DWORD UserIndexReadBytes; - DWORD UserIndexWrites; - DWORD UserIndexWriteBytes; - - - - - - DWORD LogFileReads; - DWORD LogFileReadBytes; - DWORD LogFileWrites; - DWORD LogFileWriteBytes; - - struct { - DWORD Calls; - DWORD Clusters; - DWORD Hints; - - DWORD RunsReturned; - - DWORD HintsHonored; - DWORD HintsClusters; - DWORD Cache; - DWORD CacheClusters; - DWORD CacheMiss; - DWORD CacheMissClusters; - } Allocate; - - - - - - DWORD DiskResourcesExhausted; - - - - - -} NTFS_STATISTICS, *PNTFS_STATISTICS; - -typedef struct _FILESYSTEM_STATISTICS_EX { - - WORD FileSystemType; - WORD Version; - - DWORD SizeOfCompleteStructure; - - DWORDLONG UserFileReads; - DWORDLONG UserFileReadBytes; - DWORDLONG UserDiskReads; - DWORDLONG UserFileWrites; - DWORDLONG UserFileWriteBytes; - DWORDLONG UserDiskWrites; - - DWORDLONG MetaDataReads; - DWORDLONG MetaDataReadBytes; - DWORDLONG MetaDataDiskReads; - DWORDLONG MetaDataWrites; - DWORDLONG MetaDataWriteBytes; - DWORDLONG MetaDataDiskWrites; - - - - - -} FILESYSTEM_STATISTICS_EX, *PFILESYSTEM_STATISTICS_EX; - -typedef struct _NTFS_STATISTICS_EX { - - DWORD LogFileFullExceptions; - DWORD OtherExceptions; - - - - - - DWORDLONG MftReads; - DWORDLONG MftReadBytes; - DWORDLONG MftWrites; - DWORDLONG MftWriteBytes; - struct { - DWORD Write; - DWORD Create; - DWORD SetInfo; - DWORD Flush; - } MftWritesUserLevel; - - DWORD MftWritesFlushForLogFileFull; - DWORD MftWritesLazyWriter; - DWORD MftWritesUserRequest; - - DWORDLONG Mft2Writes; - DWORDLONG Mft2WriteBytes; - struct { - DWORD Write; - DWORD Create; - DWORD SetInfo; - DWORD Flush; - } Mft2WritesUserLevel; - - DWORD Mft2WritesFlushForLogFileFull; - DWORD Mft2WritesLazyWriter; - DWORD Mft2WritesUserRequest; - - DWORDLONG RootIndexReads; - DWORDLONG RootIndexReadBytes; - DWORDLONG RootIndexWrites; - DWORDLONG RootIndexWriteBytes; - - DWORDLONG BitmapReads; - DWORDLONG BitmapReadBytes; - DWORDLONG BitmapWrites; - DWORDLONG BitmapWriteBytes; - - DWORD BitmapWritesFlushForLogFileFull; - DWORD BitmapWritesLazyWriter; - DWORD BitmapWritesUserRequest; - - struct { - DWORD Write; - DWORD Create; - DWORD SetInfo; - DWORD Flush; - } BitmapWritesUserLevel; - - DWORDLONG MftBitmapReads; - DWORDLONG MftBitmapReadBytes; - DWORDLONG MftBitmapWrites; - DWORDLONG MftBitmapWriteBytes; - - DWORD MftBitmapWritesFlushForLogFileFull; - DWORD MftBitmapWritesLazyWriter; - DWORD MftBitmapWritesUserRequest; - - struct { - DWORD Write; - DWORD Create; - DWORD SetInfo; - DWORD Flush; - } MftBitmapWritesUserLevel; - - DWORDLONG UserIndexReads; - DWORDLONG UserIndexReadBytes; - DWORDLONG UserIndexWrites; - DWORDLONG UserIndexWriteBytes; - - - - - - DWORDLONG LogFileReads; - DWORDLONG LogFileReadBytes; - DWORDLONG LogFileWrites; - DWORDLONG LogFileWriteBytes; - - struct { - DWORD Calls; - DWORD RunsReturned; - DWORD Hints; - DWORD HintsHonored; - DWORD Cache; - DWORD CacheMiss; - - DWORDLONG Clusters; - DWORDLONG HintsClusters; - DWORDLONG CacheClusters; - DWORDLONG CacheMissClusters; - } Allocate; - - - - - - DWORD DiskResourcesExhausted; - - - - - - DWORDLONG VolumeTrimCount; - DWORDLONG VolumeTrimTime; - DWORDLONG VolumeTrimByteCount; - - DWORDLONG FileLevelTrimCount; - DWORDLONG FileLevelTrimTime; - DWORDLONG FileLevelTrimByteCount; - - DWORDLONG VolumeTrimSkippedCount; - DWORDLONG VolumeTrimSkippedByteCount; - - - - - - DWORDLONG NtfsFillStatInfoFromMftRecordCalledCount; - DWORDLONG NtfsFillStatInfoFromMftRecordBailedBecauseOfAttributeListCount; - DWORDLONG NtfsFillStatInfoFromMftRecordBailedBecauseOfNonResReparsePointCount; - -} NTFS_STATISTICS_EX, *PNTFS_STATISTICS_EX; -# 12220 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma warning(push) - -#pragma warning(disable: 4201) - -typedef struct _FILE_OBJECTID_BUFFER { - - - - - - BYTE ObjectId[16]; - - - - - - - union { - struct { - BYTE BirthVolumeId[16]; - BYTE BirthObjectId[16]; - BYTE DomainId[16]; - } ; - BYTE ExtendedInfo[48]; - } ; - -} FILE_OBJECTID_BUFFER, *PFILE_OBJECTID_BUFFER; - - -#pragma warning(pop) -# 12264 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FILE_SET_SPARSE_BUFFER { - BOOLEAN SetSparse; -} FILE_SET_SPARSE_BUFFER, *PFILE_SET_SPARSE_BUFFER; -# 12278 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FILE_ZERO_DATA_INFORMATION { - - LARGE_INTEGER FileOffset; - LARGE_INTEGER BeyondFinalZero; - -} FILE_ZERO_DATA_INFORMATION, *PFILE_ZERO_DATA_INFORMATION; - - - - - -typedef struct _FILE_ZERO_DATA_INFORMATION_EX { - - LARGE_INTEGER FileOffset; - LARGE_INTEGER BeyondFinalZero; - DWORD Flags; - -} FILE_ZERO_DATA_INFORMATION_EX, *PFILE_ZERO_DATA_INFORMATION_EX; -# 12321 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FILE_ALLOCATED_RANGE_BUFFER { - - LARGE_INTEGER FileOffset; - LARGE_INTEGER Length; - -} FILE_ALLOCATED_RANGE_BUFFER, *PFILE_ALLOCATED_RANGE_BUFFER; -# 12345 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _ENCRYPTION_BUFFER { - - DWORD EncryptionOperation; - BYTE Private[1]; - -} ENCRYPTION_BUFFER, *PENCRYPTION_BUFFER; -# 12364 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DECRYPTION_STATUS_BUFFER { - - BOOLEAN NoEncryptedStreams; - -} DECRYPTION_STATUS_BUFFER, *PDECRYPTION_STATUS_BUFFER; -# 12378 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _REQUEST_RAW_ENCRYPTED_DATA { -# 12387 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - LONGLONG FileOffset; - DWORD Length; - -} REQUEST_RAW_ENCRYPTED_DATA, *PREQUEST_RAW_ENCRYPTED_DATA; -# 12416 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _ENCRYPTED_DATA_INFO { -# 12425 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORDLONG StartingFileOffset; -# 12435 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD OutputBufferOffset; -# 12446 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD BytesWithinFileSize; -# 12457 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD BytesWithinValidDataLength; -# 12466 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - WORD CompressionFormat; -# 12487 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - BYTE DataUnitShift; - BYTE ChunkShift; - BYTE ClusterShift; - - - - - - BYTE EncryptionFormat; - - - - - - - WORD NumberOfDataBlocks; -# 12530 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD DataBlockSize[1]; - -} ENCRYPTED_DATA_INFO, *PENCRYPTED_DATA_INFO; -# 12547 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _EXTENDED_ENCRYPTED_DATA_INFO { -# 12556 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD ExtendedCode; - - - - - - DWORD Length; - - - - - - DWORD Flags; - DWORD Reserved; - -} EXTENDED_ENCRYPTED_DATA_INFO, *PEXTENDED_ENCRYPTED_DATA_INFO; -# 12585 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _PLEX_READ_DATA_REQUEST { -# 12597 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - LARGE_INTEGER ByteOffset; - DWORD ByteLength; - DWORD PlexNumber; - -} PLEX_READ_DATA_REQUEST, *PPLEX_READ_DATA_REQUEST; -# 12616 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SI_COPYFILE { - DWORD SourceFileNameLength; - DWORD DestinationFileNameLength; - DWORD Flags; - WCHAR FileNameBuffer[1]; -} SI_COPYFILE, *PSI_COPYFILE; -# 12637 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FILE_MAKE_COMPATIBLE_BUFFER { - BOOLEAN CloseDisc; -} FILE_MAKE_COMPATIBLE_BUFFER, *PFILE_MAKE_COMPATIBLE_BUFFER; - - - - - - - -typedef struct _FILE_SET_DEFECT_MGMT_BUFFER { - BOOLEAN Disable; -} FILE_SET_DEFECT_MGMT_BUFFER, *PFILE_SET_DEFECT_MGMT_BUFFER; - - - - - - - -typedef struct _FILE_QUERY_SPARING_BUFFER { - DWORD SparingUnitBytes; - BOOLEAN SoftwareSparing; - DWORD TotalSpareBlocks; - DWORD FreeSpareBlocks; -} FILE_QUERY_SPARING_BUFFER, *PFILE_QUERY_SPARING_BUFFER; - - - - - - - -typedef struct _FILE_QUERY_ON_DISK_VOL_INFO_BUFFER { - LARGE_INTEGER DirectoryCount; - LARGE_INTEGER FileCount; - WORD FsFormatMajVersion; - WORD FsFormatMinVersion; - WCHAR FsFormatName[ 12]; - LARGE_INTEGER FormatTime; - LARGE_INTEGER LastUpdateTime; - WCHAR CopyrightInfo[ 34]; - WCHAR AbstractInfo[ 34]; - WCHAR FormattingImplementationInfo[ 34]; - WCHAR LastModifyingImplementationInfo[ 34]; -} FILE_QUERY_ON_DISK_VOL_INFO_BUFFER, *PFILE_QUERY_ON_DISK_VOL_INFO_BUFFER; -# 12748 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef DWORDLONG CLSN; - -typedef struct _FILE_INITIATE_REPAIR_OUTPUT_BUFFER { - DWORDLONG Hint1; - DWORDLONG Hint2; - CLSN Clsn; - DWORD Status; -} FILE_INITIATE_REPAIR_OUTPUT_BUFFER, *PFILE_INITIATE_REPAIR_OUTPUT_BUFFER; - - - - - - - -typedef enum _SHRINK_VOLUME_REQUEST_TYPES -{ - ShrinkPrepare = 1, - ShrinkCommit, - ShrinkAbort - -} SHRINK_VOLUME_REQUEST_TYPES, *PSHRINK_VOLUME_REQUEST_TYPES; - -typedef struct _SHRINK_VOLUME_INFORMATION -{ - SHRINK_VOLUME_REQUEST_TYPES ShrinkRequestType; - DWORDLONG Flags; - LONGLONG NewNumberOfSectors; - -} SHRINK_VOLUME_INFORMATION, *PSHRINK_VOLUME_INFORMATION; -# 12848 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _TXFS_MODIFY_RM { - - - - - - DWORD Flags; - - - - - - DWORD LogContainerCountMax; - - - - - - DWORD LogContainerCountMin; - - - - - - DWORD LogContainerCount; - - - - - - - - DWORD LogGrowthIncrement; - - - - - - - DWORD LogAutoShrinkPercentage; - - - - - - DWORDLONG Reserved; - - - - - - - WORD LoggingMode; - -} TXFS_MODIFY_RM, - *PTXFS_MODIFY_RM; -# 12950 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _TXFS_QUERY_RM_INFORMATION { - - - - - - - DWORD BytesRequired; - - - - - - DWORDLONG TailLsn; - - - - - - DWORDLONG CurrentLsn; - - - - - - DWORDLONG ArchiveTailLsn; - - - - - - DWORDLONG LogContainerSize; - - - - - - LARGE_INTEGER HighestVirtualClock; - - - - - - DWORD LogContainerCount; - - - - - - DWORD LogContainerCountMax; - - - - - - DWORD LogContainerCountMin; - - - - - - - - DWORD LogGrowthIncrement; - - - - - - - - DWORD LogAutoShrinkPercentage; - - - - - - - DWORD Flags; - - - - - - WORD LoggingMode; - - - - - - WORD Reserved; - - - - - - DWORD RmState; - - - - - - DWORDLONG LogCapacity; - - - - - - DWORDLONG LogFree; - - - - - - DWORDLONG TopsSize; - - - - - - DWORDLONG TopsUsed; - - - - - - DWORDLONG TransactionCount; - - - - - - DWORDLONG OnePCCount; - - - - - - DWORDLONG TwoPCCount; - - - - - - DWORDLONG NumberLogFileFull; - - - - - - DWORDLONG OldestTransactionAge; - - - - - - GUID RMName; - - - - - - - DWORD TmLogPathOffset; - -} TXFS_QUERY_RM_INFORMATION, - *PTXFS_QUERY_RM_INFORMATION; -# 13131 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _TXFS_ROLLFORWARD_REDO_INFORMATION { - LARGE_INTEGER LastVirtualClock; - DWORDLONG LastRedoLsn; - DWORDLONG HighestRecoveryLsn; - DWORD Flags; -} TXFS_ROLLFORWARD_REDO_INFORMATION, - *PTXFS_ROLLFORWARD_REDO_INFORMATION; - - - -#pragma deprecated(TXFS_ROLLFORWARD_REDO_INFORMATION) -#pragma deprecated(PTXFS_ROLLFORWARD_REDO_INFORMATION) -# 13197 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _TXFS_START_RM_INFORMATION { - - - - - - DWORD Flags; - - - - - - DWORDLONG LogContainerSize; - - - - - - DWORD LogContainerCountMin; - - - - - - DWORD LogContainerCountMax; - - - - - - - - DWORD LogGrowthIncrement; - - - - - - DWORD LogAutoShrinkPercentage; - - - - - - - - DWORD TmLogPathOffset; - - - - - - - WORD TmLogPathLength; - - - - - - - - WORD LoggingMode; - - - - - - - WORD LogPathLength; - - - - - - WORD Reserved; - - - - - - - WCHAR LogPath[1]; - -} TXFS_START_RM_INFORMATION, - *PTXFS_START_RM_INFORMATION; - - - -#pragma deprecated(TXFS_START_RM_INFORMATION) -#pragma deprecated(PTXFS_START_RM_INFORMATION) -# 13296 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _TXFS_GET_METADATA_INFO_OUT { - - - - - - struct { - LONGLONG LowPart; - LONGLONG HighPart; - } TxfFileId; - - - - - - GUID LockingTransaction; - - - - - - DWORDLONG LastLsn; - - - - - - DWORD TransactionState; - -} TXFS_GET_METADATA_INFO_OUT, *PTXFS_GET_METADATA_INFO_OUT; -# 13346 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY { - - - - - - - DWORDLONG Offset; - - - - - - - DWORD NameFlags; - - - - - - LONGLONG FileId; - - - - - - DWORD Reserved1; - DWORD Reserved2; - LONGLONG Reserved3; - - - - - - WCHAR FileName[1]; -} TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY, *PTXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY; - -typedef struct _TXFS_LIST_TRANSACTION_LOCKED_FILES { - - - - - - GUID KtmTransaction; - - - - - - DWORDLONG NumberOfFiles; - - - - - - - DWORDLONG BufferSizeRequired; - - - - - - - DWORDLONG Offset; -} TXFS_LIST_TRANSACTION_LOCKED_FILES, *PTXFS_LIST_TRANSACTION_LOCKED_FILES; - - - - - - - -typedef struct _TXFS_LIST_TRANSACTIONS_ENTRY { - - - - - - GUID TransactionId; - - - - - - DWORD TransactionState; - - - - - - DWORD Reserved1; - DWORD Reserved2; - LONGLONG Reserved3; -} TXFS_LIST_TRANSACTIONS_ENTRY, *PTXFS_LIST_TRANSACTIONS_ENTRY; - -typedef struct _TXFS_LIST_TRANSACTIONS { - - - - - - DWORDLONG NumberOfTransactions; - - - - - - - - DWORDLONG BufferSizeRequired; -} TXFS_LIST_TRANSACTIONS, *PTXFS_LIST_TRANSACTIONS; - - - - - - - - -#pragma warning(push) - -#pragma warning(disable: 4201) - -typedef struct _TXFS_READ_BACKUP_INFORMATION_OUT { - union { - - - - - - DWORD BufferLength; - - - - - - BYTE Buffer[1]; - } ; -} TXFS_READ_BACKUP_INFORMATION_OUT, *PTXFS_READ_BACKUP_INFORMATION_OUT; - - -#pragma warning(pop) -# 13498 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _TXFS_WRITE_BACKUP_INFORMATION { - - - - - - - BYTE Buffer[1]; -} TXFS_WRITE_BACKUP_INFORMATION, *PTXFS_WRITE_BACKUP_INFORMATION; -# 13517 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _TXFS_GET_TRANSACTED_VERSION { - - - - - - - - DWORD ThisBaseVersion; - - - - - - DWORD LatestVersion; - - - - - - - WORD ThisMiniVersion; - - - - - - - WORD FirstMiniVersion; - - - - - - - WORD LatestMiniVersion; - -} TXFS_GET_TRANSACTED_VERSION, *PTXFS_GET_TRANSACTED_VERSION; -# 13591 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _TXFS_SAVEPOINT_INFORMATION { - - - - - - HANDLE KtmTransaction; - - - - - - DWORD ActionCode; -# 13615 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD SavepointId; - -} TXFS_SAVEPOINT_INFORMATION, *PTXFS_SAVEPOINT_INFORMATION; - - - -#pragma deprecated(TXFS_SAVEPOINT_INFORMATION) -#pragma deprecated(PTXFS_SAVEPOINT_INFORMATION) -# 13634 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _TXFS_CREATE_MINIVERSION_INFO { - - WORD StructureVersion; - - WORD StructureLength; - - - - - - DWORD BaseVersion; - - - - - - WORD MiniVersion; - -} TXFS_CREATE_MINIVERSION_INFO, *PTXFS_CREATE_MINIVERSION_INFO; - - - -#pragma deprecated(TXFS_CREATE_MINIVERSION_INFO) -#pragma deprecated(PTXFS_CREATE_MINIVERSION_INFO) -# 13667 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _TXFS_TRANSACTION_ACTIVE_INFO { - - - - - - BOOLEAN TransactionsActiveAtSnapshot; - -} TXFS_TRANSACTION_ACTIVE_INFO, *PTXFS_TRANSACTION_ACTIVE_INFO; -# 13687 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _BOOT_AREA_INFO { - - DWORD BootSectorCount; - struct { - LARGE_INTEGER Offset; - } BootSectors[2]; - -} BOOT_AREA_INFO, *PBOOT_AREA_INFO; - - - - - - - -typedef struct _RETRIEVAL_POINTER_BASE { - - LARGE_INTEGER FileAreaOffset; -} RETRIEVAL_POINTER_BASE, *PRETRIEVAL_POINTER_BASE; -# 13715 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FILE_FS_PERSISTENT_VOLUME_INFORMATION { - - DWORD VolumeFlags; - DWORD FlagMask; - DWORD Version; - DWORD Reserved; - -} FILE_FS_PERSISTENT_VOLUME_INFORMATION, *PFILE_FS_PERSISTENT_VOLUME_INFORMATION; -# 13833 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FILE_SYSTEM_RECOGNITION_INFORMATION { - - CHAR FileSystem[9]; - -} FILE_SYSTEM_RECOGNITION_INFORMATION, *PFILE_SYSTEM_RECOGNITION_INFORMATION; -# 13855 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _REQUEST_OPLOCK_INPUT_BUFFER { - - - - - - WORD StructureVersion; - - WORD StructureLength; - - - - - - DWORD RequestedOplockLevel; - - - - - - DWORD Flags; - -} REQUEST_OPLOCK_INPUT_BUFFER, *PREQUEST_OPLOCK_INPUT_BUFFER; - - - - -typedef struct _REQUEST_OPLOCK_OUTPUT_BUFFER { - - - - - - WORD StructureVersion; - - WORD StructureLength; - - - - - - - DWORD OriginalOplockLevel; - - - - - - - - DWORD NewOplockLevel; - - - - - - DWORD Flags; - - - - - - - - ACCESS_MASK AccessMode; - - WORD ShareMode; - -} REQUEST_OPLOCK_OUTPUT_BUFFER, *PREQUEST_OPLOCK_OUTPUT_BUFFER; - - - - - - - -typedef struct _VIRTUAL_STORAGE_TYPE -{ - DWORD DeviceId; - GUID VendorId; -} VIRTUAL_STORAGE_TYPE, *PVIRTUAL_STORAGE_TYPE; - - - - - - -typedef struct _STORAGE_QUERY_DEPENDENT_VOLUME_REQUEST { - DWORD RequestLevel; - DWORD RequestFlags; -} STORAGE_QUERY_DEPENDENT_VOLUME_REQUEST, *PSTORAGE_QUERY_DEPENDENT_VOLUME_REQUEST; - - - - -typedef struct _STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY { - DWORD EntryLength; - DWORD DependencyTypeFlags; - DWORD ProviderSpecificFlags; - VIRTUAL_STORAGE_TYPE VirtualStorageType; -} STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY, *PSTORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY; - -typedef struct _STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY { - DWORD EntryLength; - DWORD DependencyTypeFlags; - DWORD ProviderSpecificFlags; - VIRTUAL_STORAGE_TYPE VirtualStorageType; - DWORD AncestorLevel; - DWORD HostVolumeNameOffset; - DWORD HostVolumeNameSize; - DWORD DependentVolumeNameOffset; - DWORD DependentVolumeNameSize; - DWORD RelativePathOffset; - DWORD RelativePathSize; - DWORD DependentDeviceNameOffset; - DWORD DependentDeviceNameSize; -} STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY, *PSTORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY; - - - - -#pragma warning(push) -#pragma warning(disable: 4200) - - -typedef struct _STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE { - DWORD ResponseLevel; - DWORD NumberEntries; - union { - STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY Lev1Depends[]; - STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY Lev2Depends[]; - } ; -} STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE, *PSTORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE; - - -#pragma warning(pop) -# 14013 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SD_CHANGE_MACHINE_SID_INPUT { -# 14023 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - WORD CurrentMachineSIDOffset; - WORD CurrentMachineSIDLength; -# 14034 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - WORD NewMachineSIDOffset; - WORD NewMachineSIDLength; - -} SD_CHANGE_MACHINE_SID_INPUT, *PSD_CHANGE_MACHINE_SID_INPUT; - -typedef struct _SD_CHANGE_MACHINE_SID_OUTPUT { - - - - - - DWORDLONG NumSDChangedSuccess; - - - - - - DWORDLONG NumSDChangedFail; - - - - - - DWORDLONG NumSDUnused; - - - - - - DWORDLONG NumSDTotal; - - - - - - DWORDLONG NumMftSDChangedSuccess; - - - - - - DWORDLONG NumMftSDChangedFail; - - - - - - DWORDLONG NumMftSDTotal; - -} SD_CHANGE_MACHINE_SID_OUTPUT, *PSD_CHANGE_MACHINE_SID_OUTPUT; - - - - - -typedef struct _SD_QUERY_STATS_INPUT { - - DWORD Reserved; - -} SD_QUERY_STATS_INPUT, *PSD_QUERY_STATS_INPUT; - -typedef struct _SD_QUERY_STATS_OUTPUT { - - - - - - - DWORDLONG SdsStreamSize; - DWORDLONG SdsAllocationSize; - - - - - - - DWORDLONG SiiStreamSize; - DWORDLONG SiiAllocationSize; - - - - - - - DWORDLONG SdhStreamSize; - DWORDLONG SdhAllocationSize; - - - - - - - DWORDLONG NumSDTotal; - - - - - - - DWORDLONG NumSDUnused; - -} SD_QUERY_STATS_OUTPUT, *PSD_QUERY_STATS_OUTPUT; - - - - - -typedef struct _SD_ENUM_SDS_INPUT { -# 14153 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORDLONG StartingOffset; - - - - - - - - DWORDLONG MaxSDEntriesToReturn; - -} SD_ENUM_SDS_INPUT, *PSD_ENUM_SDS_INPUT; - -typedef struct _SD_ENUM_SDS_ENTRY { - - - - - - DWORD Hash; - - - - - - DWORD SecurityId; - - - - - - - DWORDLONG Offset; - - - - - - - DWORD Length; - - - - - - BYTE Descriptor[1]; - -} SD_ENUM_SDS_ENTRY, *PSD_ENUM_SDS_ENTRY; - -typedef struct _SD_ENUM_SDS_OUTPUT { -# 14211 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORDLONG NextOffset; - - - - - - DWORDLONG NumSDEntriesReturned; - - - - - - DWORDLONG NumSDBytesReturned; -# 14233 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - SD_ENUM_SDS_ENTRY SDEntry[1]; - -} SD_ENUM_SDS_OUTPUT, *PSD_ENUM_SDS_OUTPUT; - - - - - - -#pragma warning(push) - -#pragma warning(disable: 4201) - -typedef struct _SD_GLOBAL_CHANGE_INPUT -{ - - - - - DWORD Flags; - - - - - - - DWORD ChangeType; - - union { - - SD_CHANGE_MACHINE_SID_INPUT SdChange; - SD_QUERY_STATS_INPUT SdQueryStats; - SD_ENUM_SDS_INPUT SdEnumSds; - } ; - -} SD_GLOBAL_CHANGE_INPUT, *PSD_GLOBAL_CHANGE_INPUT; - -typedef struct _SD_GLOBAL_CHANGE_OUTPUT -{ - - - - - - DWORD Flags; - - - - - - DWORD ChangeType; - - union { - - SD_CHANGE_MACHINE_SID_OUTPUT SdChange; - SD_QUERY_STATS_OUTPUT SdQueryStats; - SD_ENUM_SDS_OUTPUT SdEnumSds; - } ; - -} SD_GLOBAL_CHANGE_OUTPUT, *PSD_GLOBAL_CHANGE_OUTPUT; - - -#pragma warning(pop) - - - - - - - - -typedef struct _LOOKUP_STREAM_FROM_CLUSTER_INPUT { - - - - - DWORD Flags; - - - - - - - DWORD NumberOfClusters; - - - - - LARGE_INTEGER Cluster[1]; -} LOOKUP_STREAM_FROM_CLUSTER_INPUT, *PLOOKUP_STREAM_FROM_CLUSTER_INPUT; - -typedef struct _LOOKUP_STREAM_FROM_CLUSTER_OUTPUT { - - - - - DWORD Offset; - - - - - - - DWORD NumberOfMatches; - - - - - - DWORD BufferSizeRequired; -} LOOKUP_STREAM_FROM_CLUSTER_OUTPUT, *PLOOKUP_STREAM_FROM_CLUSTER_OUTPUT; -# 14355 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _LOOKUP_STREAM_FROM_CLUSTER_ENTRY { - - - - - DWORD OffsetToNext; - - - - - DWORD Flags; - - - - - LARGE_INTEGER Reserved; - - - - - - LARGE_INTEGER Cluster; - - - - - - - - WCHAR FileName[1]; -} LOOKUP_STREAM_FROM_CLUSTER_ENTRY, *PLOOKUP_STREAM_FROM_CLUSTER_ENTRY; -# 14395 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FILE_TYPE_NOTIFICATION_INPUT { - - - - - - - DWORD Flags; - - - - - - DWORD NumFileTypeIDs; - - - - - - GUID FileTypeID[1]; - -} FILE_TYPE_NOTIFICATION_INPUT, *PFILE_TYPE_NOTIFICATION_INPUT; -# 14429 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -extern const GUID FILE_TYPE_NOTIFICATION_GUID_PAGE_FILE; -extern const GUID FILE_TYPE_NOTIFICATION_GUID_HIBERNATION_FILE; -extern const GUID FILE_TYPE_NOTIFICATION_GUID_CRASHDUMP_FILE; - - - - - -typedef struct _CSV_MGMT_LOCK { - DWORD Flags; -}CSV_MGMT_LOCK, *PCSV_MGMT_LOCK; - - - - - - - -typedef struct _CSV_NAMESPACE_INFO { - - DWORD Version; - DWORD DeviceNumber; - LARGE_INTEGER StartingOffset; - DWORD SectorSize; - -} CSV_NAMESPACE_INFO, *PCSV_NAMESPACE_INFO; -# 14463 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _CSV_CONTROL_OP { - CsvControlStartRedirectFile = 0x02, - CsvControlStopRedirectFile = 0x03, - CsvControlQueryRedirectState = 0x04, - CsvControlQueryFileRevision = 0x06, - CsvControlQueryMdsPath = 0x08, - CsvControlQueryFileRevisionFileId128 = 0x09, - CsvControlQueryVolumeRedirectState = 0x0a, - CsvControlEnableUSNRangeModificationTracking = 0x0d, - CsvControlMarkHandleLocalVolumeMount = 0x0e, - CsvControlUnmarkHandleLocalVolumeMount = 0x0f, - CsvControlGetCsvFsMdsPathV2 = 0x12, - CsvControlDisableCaching = 0x13, - CsvControlEnableCaching = 0x14, - CsvControlStartForceDFO = 0x15, - CsvControlStopForceDFO = 0x16, - CsvControlQueryMdsPathNoPause = 0x17, - CsvControlSetVolumeId = 0x18, - CsvControlQueryVolumeId = 0x19, -} CSV_CONTROL_OP, *PCSV_CONTROL_OP; - -typedef struct _CSV_CONTROL_PARAM { - CSV_CONTROL_OP Operation; - LONGLONG Unused; -} CSV_CONTROL_PARAM, *PCSV_CONTROL_PARAM; - - - - -typedef struct _CSV_QUERY_REDIRECT_STATE { - DWORD MdsNodeId; - DWORD DsNodeId; - BOOLEAN FileRedirected; -} CSV_QUERY_REDIRECT_STATE, *PCSV_QUERY_REDIRECT_STATE; - - - - - - - -typedef struct _CSV_QUERY_FILE_REVISION { - - - - LONGLONG FileId; -# 14527 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - LONGLONG FileRevision[3]; - -} CSV_QUERY_FILE_REVISION, *PCSV_QUERY_FILE_REVISION; - - - - - - - -typedef struct _CSV_QUERY_FILE_REVISION_FILE_ID_128 { - - - - FILE_ID_128 FileId; -# 14560 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - LONGLONG FileRevision[3]; - -} CSV_QUERY_FILE_REVISION_FILE_ID_128, *PCSV_QUERY_FILE_REVISION_FILE_ID_128; - - - - - - -typedef struct _CSV_QUERY_MDS_PATH { - DWORD MdsNodeId; - DWORD DsNodeId; - DWORD PathLength; - WCHAR Path[1]; -} CSV_QUERY_MDS_PATH, *PCSV_QUERY_MDS_PATH; - -typedef enum _CSVFS_DISK_CONNECTIVITY -{ - CsvFsDiskConnectivityNone = 0, - CsvFsDiskConnectivityMdsNodeOnly = 1, - CsvFsDiskConnectivitySubsetOfNodes = 2, - CsvFsDiskConnectivityAllNodes = 3 -} CSVFS_DISK_CONNECTIVITY, *PCSVFS_DISK_CONNECTIVITY; - - - - -typedef struct _CSV_QUERY_VOLUME_REDIRECT_STATE { - DWORD MdsNodeId; - DWORD DsNodeId; - BOOLEAN IsDiskConnected; - BOOLEAN ClusterEnableDirectIo; - CSVFS_DISK_CONNECTIVITY DiskConnectivity; -} CSV_QUERY_VOLUME_REDIRECT_STATE, *PCSV_QUERY_VOLUME_REDIRECT_STATE; -# 14607 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _CSV_QUERY_MDS_PATH_V2 { - - - - - LONGLONG Version; - - - - - DWORD RequiredSize; - - - - - - DWORD MdsNodeId; - DWORD DsNodeId; - - - - DWORD Flags; - - - - CSVFS_DISK_CONNECTIVITY DiskConnectivity; - - - - GUID VolumeId; - - - - - - DWORD IpAddressOffset; - DWORD IpAddressLength; - - - - - - DWORD PathOffset; - DWORD PathLength; - -} CSV_QUERY_MDS_PATH_V2, *PCSV_QUERY_MDS_PATH_V2; - - - - -typedef struct _CSV_SET_VOLUME_ID { - GUID VolumeId; -} CSV_SET_VOLUME_ID, *PCSV_SET_VOLUME_ID; - - - - -typedef struct _CSV_QUERY_VOLUME_ID { - GUID VolumeId; -} CSV_QUERY_VOLUME_ID, *PCSV_QUERY_VOLUME_ID; - - - - - -typedef enum _LMR_QUERY_INFO_CLASS { - LMRQuerySessionInfo = 1, -} LMR_QUERY_INFO_CLASS, *PLMR_QUERY_INFO_CLASS; - -typedef struct _LMR_QUERY_INFO_PARAM { - LMR_QUERY_INFO_CLASS Operation; -} LMR_QUERY_INFO_PARAM, *PLMR_QUERY_INFO_PARAM; - - - - -typedef struct _LMR_QUERY_SESSION_INFO { - UINT64 SessionId; -} LMR_QUERY_SESSION_INFO, *PLMR_QUERY_SESSION_INFO; -# 14697 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _CSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT { - DWORDLONG VetoedFromAltitudeIntegral; - DWORDLONG VetoedFromAltitudeDecimal; - WCHAR Reason[256]; -} CSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT, *PCSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT; -# 14710 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _STORAGE_RESERVE_ID { - - StorageReserveIdNone = 0, - StorageReserveIdHard, - StorageReserveIdSoft, - StorageReserveIdUpdateScratch, - - StorageReserveIdMax - -} STORAGE_RESERVE_ID, *PSTORAGE_RESERVE_ID; -# 14728 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _CSV_IS_OWNED_BY_CSVFS { - BOOLEAN OwnedByCSVFS; -}CSV_IS_OWNED_BY_CSVFS, *PCSV_IS_OWNED_BY_CSVFS; - - - - - - - -typedef struct _FILE_LEVEL_TRIM_RANGE { - - - - - - DWORDLONG Offset; - - - - - - DWORDLONG Length; -} FILE_LEVEL_TRIM_RANGE, *PFILE_LEVEL_TRIM_RANGE; - - - - - -typedef struct _FILE_LEVEL_TRIM { - - - - - - - DWORD Key; - - - - - - DWORD NumRanges; - - - - - - FILE_LEVEL_TRIM_RANGE Ranges[1]; - -} FILE_LEVEL_TRIM, *PFILE_LEVEL_TRIM; - - - - - -typedef struct _FILE_LEVEL_TRIM_OUTPUT { - - - - - - - DWORD NumRangesProcessed; - -} FILE_LEVEL_TRIM_OUTPUT, *PFILE_LEVEL_TRIM_OUTPUT; -# 14902 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _QUERY_FILE_LAYOUT_FILTER_TYPE { - - QUERY_FILE_LAYOUT_FILTER_TYPE_NONE = 0, - QUERY_FILE_LAYOUT_FILTER_TYPE_CLUSTERS = 1, - QUERY_FILE_LAYOUT_FILTER_TYPE_FILEID = 2, - - QUERY_FILE_LAYOUT_FILTER_TYPE_STORAGE_RESERVE_ID = 3, - - - QUERY_FILE_LAYOUT_NUM_FILTER_TYPES - -} QUERY_FILE_LAYOUT_FILTER_TYPE; - -typedef struct _CLUSTER_RANGE { - - - - - - LARGE_INTEGER StartingCluster; - - - - - LARGE_INTEGER ClusterCount; - -} CLUSTER_RANGE, *PCLUSTER_RANGE; - -typedef struct _FILE_REFERENCE_RANGE { - - - - - - DWORDLONG StartingFileReferenceNumber; - - - - - - DWORDLONG EndingFileReferenceNumber; - -} FILE_REFERENCE_RANGE, *PFILE_REFERENCE_RANGE; - -typedef struct _QUERY_FILE_LAYOUT_INPUT { -# 14958 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - union { - DWORD FilterEntryCount; - DWORD NumberOfPairs; - } ; - - - - - DWORD Flags; - - - - - - QUERY_FILE_LAYOUT_FILTER_TYPE FilterType; - - - - - - DWORD Reserved; - - - - - - - union { -# 14994 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - CLUSTER_RANGE ClusterRanges[1]; -# 15003 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - FILE_REFERENCE_RANGE FileReferenceRanges[1]; -# 15013 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - STORAGE_RESERVE_ID StorageReserveIds[1]; - - - } Filter; - -} QUERY_FILE_LAYOUT_INPUT, *PQUERY_FILE_LAYOUT_INPUT; - - - - - - - -typedef struct _QUERY_FILE_LAYOUT_OUTPUT { - - - - - - - DWORD FileEntryCount; - - - - - - DWORD FirstFileOffset; - - - - - - DWORD Flags; - - - - - DWORD Reserved; - -} QUERY_FILE_LAYOUT_OUTPUT, *PQUERY_FILE_LAYOUT_OUTPUT; - -typedef struct _FILE_LAYOUT_ENTRY { - - - - - - DWORD Version; - - - - - - DWORD NextFileOffset; - - - - - - DWORD Flags; - - - - - DWORD FileAttributes; - - - - - DWORDLONG FileReferenceNumber; - - - - - - - DWORD FirstNameOffset; - - - - - - - DWORD FirstStreamOffset; - - - - - - - - DWORD ExtraInfoOffset; -# 15126 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD ExtraInfoLength; -# 15136 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -} FILE_LAYOUT_ENTRY, *PFILE_LAYOUT_ENTRY; -# 15145 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FILE_LAYOUT_NAME_ENTRY { - - - - - - DWORD NextNameOffset; - - - - - DWORD Flags; - - - - - DWORDLONG ParentFileReferenceNumber; - - - - - DWORD FileNameLength; - - - - - DWORD Reserved; - - - - - - - WCHAR FileName[1]; - -} FILE_LAYOUT_NAME_ENTRY, *PFILE_LAYOUT_NAME_ENTRY; - -typedef struct _FILE_LAYOUT_INFO_ENTRY { - - - - - struct { - LARGE_INTEGER CreationTime; - LARGE_INTEGER LastAccessTime; - LARGE_INTEGER LastWriteTime; - LARGE_INTEGER ChangeTime; - DWORD FileAttributes; - } BasicInformation; - - - - - DWORD OwnerId; - - - - - DWORD SecurityId; - - - - - USN Usn; - - - - - - STORAGE_RESERVE_ID StorageReserveId; - - -} FILE_LAYOUT_INFO_ENTRY, *PFILE_LAYOUT_INFO_ENTRY; -# 15245 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STREAM_LAYOUT_ENTRY { - - - - - DWORD Version; - - - - - DWORD NextStreamOffset; - - - - - DWORD Flags; - - - - - - - - DWORD ExtentInformationOffset; - - - - - - LARGE_INTEGER AllocationSize; - - - - - LARGE_INTEGER EndOfFile; - - - - - - DWORD StreamInformationOffset; - - - - - DWORD AttributeTypeCode; - - - - - DWORD AttributeFlags; - - - - - DWORD StreamIdentifierLength; - - - - - - - WCHAR StreamIdentifier[1]; - -} STREAM_LAYOUT_ENTRY, *PSTREAM_LAYOUT_ENTRY; -# 15324 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STREAM_EXTENT_ENTRY { - - - - - DWORD Flags; - - union { - - - - - - - RETRIEVAL_POINTERS_BUFFER RetrievalPointers; - - } ExtentInformation; - -} STREAM_EXTENT_ENTRY, *PSTREAM_EXTENT_ENTRY; -# 15358 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER { - WORD ChecksumAlgorithm; - WORD Reserved; - DWORD Flags; - DWORD ChecksumChunkSizeInBytes; - DWORD ClusterSizeInBytes; -} FSCTL_GET_INTEGRITY_INFORMATION_BUFFER, *PFSCTL_GET_INTEGRITY_INFORMATION_BUFFER; - -typedef struct _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER { - WORD ChecksumAlgorithm; - WORD Reserved; - DWORD Flags; -} FSCTL_SET_INTEGRITY_INFORMATION_BUFFER, *PFSCTL_SET_INTEGRITY_INFORMATION_BUFFER; - - - - - - -typedef struct _FSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX { - BYTE EnableIntegrity; - BYTE KeepIntegrityStateUnchanged; - WORD Reserved; - DWORD Flags; - BYTE Version; - BYTE Reserved2[7]; -} FSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX, *PFSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX; -# 15393 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FSCTL_OFFLOAD_READ_INPUT { - DWORD Size; - DWORD Flags; - DWORD TokenTimeToLive; - DWORD Reserved; - DWORDLONG FileOffset; - DWORDLONG CopyLength; -} FSCTL_OFFLOAD_READ_INPUT, *PFSCTL_OFFLOAD_READ_INPUT; - -typedef struct _FSCTL_OFFLOAD_READ_OUTPUT { - DWORD Size; - DWORD Flags; - DWORDLONG TransferLength; - BYTE Token[512]; -} FSCTL_OFFLOAD_READ_OUTPUT, *PFSCTL_OFFLOAD_READ_OUTPUT; -# 15417 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FSCTL_OFFLOAD_WRITE_INPUT { - DWORD Size; - DWORD Flags; - DWORDLONG FileOffset; - DWORDLONG CopyLength; - DWORDLONG TransferOffset; - BYTE Token[512]; -} FSCTL_OFFLOAD_WRITE_INPUT, *PFSCTL_OFFLOAD_WRITE_INPUT; - -typedef struct _FSCTL_OFFLOAD_WRITE_OUTPUT { - DWORD Size; - DWORD Flags; - DWORDLONG LengthWritten; -} FSCTL_OFFLOAD_WRITE_OUTPUT, *PFSCTL_OFFLOAD_WRITE_OUTPUT; - - - - - - - -typedef struct _SET_PURGE_FAILURE_MODE_INPUT { - DWORD Flags; -} SET_PURGE_FAILURE_MODE_INPUT, *PSET_PURGE_FAILURE_MODE_INPUT; -# 15450 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _REPAIR_COPIES_INPUT { - - DWORD Size; - - DWORD Flags; - - LARGE_INTEGER FileOffset; - - DWORD Length; - - DWORD SourceCopy; - - DWORD NumberOfRepairCopies; - - DWORD RepairCopies[1]; - -} REPAIR_COPIES_INPUT, *PREPAIR_COPIES_INPUT; - -typedef struct _REPAIR_COPIES_OUTPUT { - - DWORD Size; - - DWORD Status; - - LARGE_INTEGER ResumeFileOffset; - -} REPAIR_COPIES_OUTPUT, *PREPAIR_COPIES_OUTPUT; -# 15503 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FILE_REGION_INFO { - LONGLONG FileOffset; - LONGLONG Length; - DWORD Usage; - DWORD Reserved; -} FILE_REGION_INFO, *PFILE_REGION_INFO; - -typedef struct _FILE_REGION_OUTPUT { - DWORD Flags; - DWORD TotalRegionEntryCount; - DWORD RegionEntryCount; - DWORD Reserved; - FILE_REGION_INFO Region[1]; -} FILE_REGION_OUTPUT, *PFILE_REGION_OUTPUT; - - - - - - -typedef struct _FILE_REGION_INPUT { - - LONGLONG FileOffset; - LONGLONG Length; - DWORD DesiredUsage; - -} FILE_REGION_INPUT, *PFILE_REGION_INPUT; -# 15548 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _WRITE_USN_REASON_INPUT { - - DWORD Flags; - DWORD UsnReasonToWrite; - -} WRITE_USN_REASON_INPUT, *PWRITE_USN_REASON_INPUT; -# 15589 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _FILE_STORAGE_TIER_MEDIA_TYPE { - - FileStorageTierMediaTypeUnspecified = 0, - FileStorageTierMediaTypeDisk = 1, - FileStorageTierMediaTypeSsd = 2, - FileStorageTierMediaTypeScm = 4, - FileStorageTierMediaTypeMax - -} FILE_STORAGE_TIER_MEDIA_TYPE, *PFILE_STORAGE_TIER_MEDIA_TYPE; - -typedef enum _FILE_STORAGE_TIER_CLASS { - - FileStorageTierClassUnspecified = 0, - FileStorageTierClassCapacity, - FileStorageTierClassPerformance, - FileStorageTierClassMax - -} FILE_STORAGE_TIER_CLASS, *PFILE_STORAGE_TIER_CLASS; - -typedef struct _FILE_STORAGE_TIER { - - - - - - GUID Id; - - - - - - WCHAR Name[(256)]; - - - - - - WCHAR Description[(256)]; - - - - - - DWORDLONG Flags; - - - - - - DWORDLONG ProvisionedCapacity; - - - - - - FILE_STORAGE_TIER_MEDIA_TYPE MediaType; - - - - - - FILE_STORAGE_TIER_CLASS Class; - -} FILE_STORAGE_TIER, *PFILE_STORAGE_TIER; -# 15669 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FSCTL_QUERY_STORAGE_CLASSES_OUTPUT { - - - - - - - DWORD Version; - - - - - - - DWORD Size; - - - - - - DWORD Flags; - - - - - - DWORD TotalNumberOfTiers; - - - - - - DWORD NumberOfTiersReturned; - - - - - - FILE_STORAGE_TIER Tiers[1]; - -} FSCTL_QUERY_STORAGE_CLASSES_OUTPUT, *PFSCTL_QUERY_STORAGE_CLASSES_OUTPUT; -# 15724 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STREAM_INFORMATION_ENTRY { - - - - - DWORD Version; - - - - - DWORD Flags; - - - - - - union _StreamInformation { - - - - - - struct _DesiredStorageClass { - - - - - - FILE_STORAGE_TIER_CLASS Class; - - - - - - DWORD Flags; - - } DesiredStorageClass; - - - struct _DataStream { - - - - - - WORD Length; - - - - - - WORD Flags; - - - - - - DWORD Reserved; - - - - - - DWORDLONG Vdl; - - } DataStream; - - struct _Reparse { - - - - - - WORD Length; - - - - - - WORD Flags; - - - - - - DWORD ReparseDataSize; - - - - - - DWORD ReparseDataOffset; - - } Reparse; - - struct _Ea { - - - - - - WORD Length; - - - - - - WORD Flags; - - - - - - DWORD EaSize; - - - - - - DWORD EaInformationOffset; - - } Ea; - - - } StreamInformation; - -} STREAM_INFORMATION_ENTRY, *PSTREAM_INFORMATION_ENTRY; -# 15861 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FSCTL_QUERY_REGION_INFO_INPUT { - - DWORD Version; - DWORD Size; - - DWORD Flags; - - DWORD NumberOfTierIds; - GUID TierIds[1]; - -} FSCTL_QUERY_REGION_INFO_INPUT, *PFSCTL_QUERY_REGION_INFO_INPUT; - - - - - - - -typedef struct _FILE_STORAGE_TIER_REGION { - - GUID TierId; - - DWORDLONG Offset; - DWORDLONG Length; - -} FILE_STORAGE_TIER_REGION, *PFILE_STORAGE_TIER_REGION; -# 15895 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FSCTL_QUERY_REGION_INFO_OUTPUT { - - DWORD Version; - DWORD Size; - - DWORD Flags; - DWORD Reserved; - - DWORDLONG Alignment; - - DWORD TotalNumberOfRegions; - DWORD NumberOfRegionsReturned; - - FILE_STORAGE_TIER_REGION Regions[1]; - -} FSCTL_QUERY_REGION_INFO_OUTPUT, *PFSCTL_QUERY_REGION_INFO_OUTPUT; - - - - - - - -typedef struct _FILE_DESIRED_STORAGE_CLASS_INFORMATION { - - - - - - FILE_STORAGE_TIER_CLASS Class; - - - - - - DWORD Flags; - -} FILE_DESIRED_STORAGE_CLASS_INFORMATION, *PFILE_DESIRED_STORAGE_CLASS_INFORMATION; -# 15947 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DUPLICATE_EXTENTS_DATA { - HANDLE FileHandle; - LARGE_INTEGER SourceFileOffset; - LARGE_INTEGER TargetFileOffset; - LARGE_INTEGER ByteCount; -} DUPLICATE_EXTENTS_DATA, *PDUPLICATE_EXTENTS_DATA; - - - - - - - -typedef struct _DUPLICATE_EXTENTS_DATA32 { - UINT32 FileHandle; - LARGE_INTEGER SourceFileOffset; - LARGE_INTEGER TargetFileOffset; - LARGE_INTEGER ByteCount; -} DUPLICATE_EXTENTS_DATA32, *PDUPLICATE_EXTENTS_DATA32; -# 15982 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DUPLICATE_EXTENTS_DATA_EX { - SIZE_T Size; - HANDLE FileHandle; - LARGE_INTEGER SourceFileOffset; - LARGE_INTEGER TargetFileOffset; - LARGE_INTEGER ByteCount; - DWORD Flags; -} DUPLICATE_EXTENTS_DATA_EX, *PDUPLICATE_EXTENTS_DATA_EX; - - - - - - - -typedef struct _DUPLICATE_EXTENTS_DATA_EX32 { - DWORD32 Size; - DWORD32 FileHandle; - LARGE_INTEGER SourceFileOffset; - LARGE_INTEGER TargetFileOffset; - LARGE_INTEGER ByteCount; - DWORD Flags; -} DUPLICATE_EXTENTS_DATA_EX32, *PDUPLICATE_EXTENTS_DATA_EX32; -# 16016 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _DUPLICATE_EXTENTS_STATE { - - FileSnapStateInactive = 0, - FileSnapStateSource, - FileSnapStateTarget, - -} DUPLICATE_EXTENTS_STATE, *PDUPLICATE_EXTENTS_STATE; - -typedef struct _ASYNC_DUPLICATE_EXTENTS_STATUS { - - DWORD Version; - - DUPLICATE_EXTENTS_STATE State; - - DWORDLONG SourceFileOffset; - DWORDLONG TargetFileOffset; - DWORDLONG ByteCount; - - DWORDLONG BytesDuplicated; - -} ASYNC_DUPLICATE_EXTENTS_STATUS, *PASYNC_DUPLICATE_EXTENTS_STATUS; -# 16051 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _REFS_SMR_VOLUME_GC_STATE { - - SmrGcStateInactive = 0, - SmrGcStatePaused = 1, - SmrGcStateActive = 2, - SmrGcStateActiveFullSpeed = 3, - -} REFS_SMR_VOLUME_GC_STATE, *PREFS_SMR_VOLUME_GC_STATE; - -typedef struct _REFS_SMR_VOLUME_INFO_OUTPUT { - - DWORD Version; - DWORD Flags; - - LARGE_INTEGER SizeOfRandomlyWritableTier; - LARGE_INTEGER FreeSpaceInRandomlyWritableTier; - LARGE_INTEGER SizeofSMRTier; - LARGE_INTEGER FreeSpaceInSMRTier; - LARGE_INTEGER UsableFreeSpaceInSMRTier; - - REFS_SMR_VOLUME_GC_STATE VolumeGcState; - DWORD VolumeGcLastStatus; - - - - - - DWORD CurrentGcBandFillPercentage; - - DWORDLONG Unused[6]; - -} REFS_SMR_VOLUME_INFO_OUTPUT, *PREFS_SMR_VOLUME_INFO_OUTPUT; - - - - - - - -typedef enum _REFS_SMR_VOLUME_GC_ACTION { - - SmrGcActionStart = 1, - SmrGcActionStartFullSpeed = 2, - SmrGcActionPause = 3, - SmrGcActionStop = 4, - -} REFS_SMR_VOLUME_GC_ACTION, *PREFS_SMR_VOLUME_GC_ACTION; - -typedef enum _REFS_SMR_VOLUME_GC_METHOD { - - SmrGcMethodCompaction = 1, - SmrGcMethodCompression = 2, - SmrGcMethodRotation = 3, - -} REFS_SMR_VOLUME_GC_METHOD, *PREFS_SMR_VOLUME_GC_METHOD; - -typedef struct _REFS_SMR_VOLUME_GC_PARAMETERS { - - DWORD Version; - DWORD Flags; - - REFS_SMR_VOLUME_GC_ACTION Action; - REFS_SMR_VOLUME_GC_METHOD Method; - - DWORD IoGranularity; - DWORD CompressionFormat; - - DWORDLONG Unused[8]; - -} REFS_SMR_VOLUME_GC_PARAMETERS, *PREFS_SMR_VOLUME_GC_PARAMETERS; -# 16133 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER { - - DWORD OptimalWriteSize; - DWORD StreamGranularitySize; - DWORD StreamIdMin; - DWORD StreamIdMax; - -} STREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER, *PSTREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER; -# 16149 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _STREAMS_ASSOCIATE_ID_INPUT_BUFFER { - - DWORD Flags; - DWORD StreamId; - -} STREAMS_ASSOCIATE_ID_INPUT_BUFFER, *PSTREAMS_ASSOCIATE_ID_INPUT_BUFFER; - - - - - -typedef struct _STREAMS_QUERY_ID_OUTPUT_BUFFER { - - DWORD StreamId; - -} STREAMS_QUERY_ID_OUTPUT_BUFFER, *PSTREAMS_QUERY_ID_OUTPUT_BUFFER; -# 16174 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _QUERY_BAD_RANGES_INPUT_RANGE { - - - - - - DWORDLONG StartOffset; - - - - - - DWORDLONG LengthInBytes; - -} QUERY_BAD_RANGES_INPUT_RANGE, *PQUERY_BAD_RANGES_INPUT_RANGE; - - - - - - - -typedef struct _QUERY_BAD_RANGES_INPUT { - - DWORD Flags; - - - - - - DWORD NumRanges; -# 16214 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - QUERY_BAD_RANGES_INPUT_RANGE Ranges[1]; - -} QUERY_BAD_RANGES_INPUT, *PQUERY_BAD_RANGES_INPUT; - -typedef struct _QUERY_BAD_RANGES_OUTPUT_RANGE { - - - - - - DWORD Flags; - - DWORD Reserved; - - - - - - DWORDLONG StartOffset; - - - - - - DWORDLONG LengthInBytes; - -} QUERY_BAD_RANGES_OUTPUT_RANGE, *PQUERY_BAD_RANGES_OUTPUT_RANGE; - - - - - -typedef struct _QUERY_BAD_RANGES_OUTPUT { - - DWORD Flags; - - - - - - - DWORD NumBadRanges; -# 16265 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORDLONG NextOffsetToLookUp; - - - - - - - QUERY_BAD_RANGES_OUTPUT_RANGE BadRanges[1]; - -} QUERY_BAD_RANGES_OUTPUT, *PQUERY_BAD_RANGES_OUTPUT; -# 16292 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT { - - DWORD Flags; -# 16305 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD AlignmentShift; -# 16315 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORDLONG FileOffsetToAlign; -# 16325 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - DWORD FallbackAlignmentShift; - - -} SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT, *PSET_DAX_ALLOC_ALIGNMENT_HINT_INPUT; -# 16357 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _VIRTUAL_STORAGE_BEHAVIOR_CODE { - - VirtualStorageBehaviorUndefined = 0, - VirtualStorageBehaviorCacheWriteThrough = 1, - VirtualStorageBehaviorCacheWriteBack = 2, - VirtualStorageBehaviorStopIoProcessing = 3, - VirtualStorageBehaviorRestartIoProcessing = 4 - -} VIRTUAL_STORAGE_BEHAVIOR_CODE, *PVIRTUAL_STORAGE_BEHAVIOR_CODE; - -typedef struct _VIRTUAL_STORAGE_SET_BEHAVIOR_INPUT { - - DWORD Size; - VIRTUAL_STORAGE_BEHAVIOR_CODE BehaviorCode; - -} VIRTUAL_STORAGE_SET_BEHAVIOR_INPUT, *PVIRTUAL_STORAGE_SET_BEHAVIOR_INPUT; - - - - - -typedef struct _ENCRYPTION_KEY_CTRL_INPUT { - - DWORD HeaderSize; - - DWORD StructureSize; - - WORD KeyOffset; - - - WORD KeySize; - - - DWORD DplLock; - - DWORDLONG DplUserId; - - DWORDLONG DplCredentialId; - -} ENCRYPTION_KEY_CTRL_INPUT, *PENCRYPTION_KEY_CTRL_INPUT; -# 16412 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _WOF_EXTERNAL_INFO { - DWORD Version; - DWORD Provider; -} WOF_EXTERNAL_INFO, *PWOF_EXTERNAL_INFO; - -typedef struct _WOF_EXTERNAL_FILE_ID { - FILE_ID_128 FileId; -} WOF_EXTERNAL_FILE_ID, *PWOF_EXTERNAL_FILE_ID; - -typedef struct _WOF_VERSION_INFO { - DWORD WofVersion; -} WOF_VERSION_INFO, *PWOF_VERSION_INFO; -# 16438 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _WIM_PROVIDER_EXTERNAL_INFO { - DWORD Version; - DWORD Flags; - LARGE_INTEGER DataSourceId; - BYTE ResourceHash[20]; -} WIM_PROVIDER_EXTERNAL_INFO, *PWIM_PROVIDER_EXTERNAL_INFO; -# 16458 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _WIM_PROVIDER_ADD_OVERLAY_INPUT { - DWORD WimType; - DWORD WimIndex; - DWORD WimFileNameOffset; - DWORD WimFileNameLength; -} WIM_PROVIDER_ADD_OVERLAY_INPUT, *PWIM_PROVIDER_ADD_OVERLAY_INPUT; - -typedef struct _WIM_PROVIDER_UPDATE_OVERLAY_INPUT { - LARGE_INTEGER DataSourceId; - DWORD WimFileNameOffset; - DWORD WimFileNameLength; -} WIM_PROVIDER_UPDATE_OVERLAY_INPUT, *PWIM_PROVIDER_UPDATE_OVERLAY_INPUT; - -typedef struct _WIM_PROVIDER_REMOVE_OVERLAY_INPUT { - LARGE_INTEGER DataSourceId; -} WIM_PROVIDER_REMOVE_OVERLAY_INPUT, *PWIM_PROVIDER_REMOVE_OVERLAY_INPUT; - -typedef struct _WIM_PROVIDER_SUSPEND_OVERLAY_INPUT { - LARGE_INTEGER DataSourceId; -} WIM_PROVIDER_SUSPEND_OVERLAY_INPUT, *PWIM_PROVIDER_SUSPEND_OVERLAY_INPUT; - -typedef struct _WIM_PROVIDER_OVERLAY_ENTRY { - DWORD NextEntryOffset; - LARGE_INTEGER DataSourceId; - GUID WimGuid; - DWORD WimFileNameOffset; - DWORD WimType; - DWORD WimIndex; - DWORD Flags; -} WIM_PROVIDER_OVERLAY_ENTRY, *PWIM_PROVIDER_OVERLAY_ENTRY; -# 16510 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _FILE_PROVIDER_EXTERNAL_INFO_V0 { - DWORD Version; - DWORD Algorithm; -} FILE_PROVIDER_EXTERNAL_INFO_V0, *PFILE_PROVIDER_EXTERNAL_INFO_V0; - -typedef struct _FILE_PROVIDER_EXTERNAL_INFO_V1 { - DWORD Version; - DWORD Algorithm; - DWORD Flags; -} FILE_PROVIDER_EXTERNAL_INFO_V1, *PFILE_PROVIDER_EXTERNAL_INFO_V1; - -typedef FILE_PROVIDER_EXTERNAL_INFO_V1 FILE_PROVIDER_EXTERNAL_INFO; -typedef PFILE_PROVIDER_EXTERNAL_INFO_V1 PFILE_PROVIDER_EXTERNAL_INFO; - - - - - -typedef struct _CONTAINER_VOLUME_STATE { - DWORD Flags; -} CONTAINER_VOLUME_STATE, *PCONTAINER_VOLUME_STATE; - - - -typedef struct _CONTAINER_ROOT_INFO_INPUT { - DWORD Flags; -} CONTAINER_ROOT_INFO_INPUT, *PCONTAINER_ROOT_INFO_INPUT; - -typedef struct _CONTAINER_ROOT_INFO_OUTPUT { - WORD ContainerRootIdLength; - BYTE ContainerRootId[1]; -} CONTAINER_ROOT_INFO_OUTPUT, *PCONTAINER_ROOT_INFO_OUTPUT; -# 16561 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _VIRTUALIZATION_INSTANCE_INFO_INPUT { - DWORD NumberOfWorkerThreads; - DWORD Flags; -} VIRTUALIZATION_INSTANCE_INFO_INPUT, *PVIRTUALIZATION_INSTANCE_INFO_INPUT; - - - -typedef struct _VIRTUALIZATION_INSTANCE_INFO_INPUT_EX { - WORD HeaderSize; - DWORD Flags; - DWORD NotificationInfoSize; - WORD NotificationInfoOffset; - WORD ProviderMajorVersion; -} VIRTUALIZATION_INSTANCE_INFO_INPUT_EX, *PVIRTUALIZATION_INSTANCE_INFO_INPUT_EX; - -typedef struct _VIRTUALIZATION_INSTANCE_INFO_OUTPUT { - GUID VirtualizationInstanceID; -} VIRTUALIZATION_INSTANCE_INFO_OUTPUT, *PVIRTUALIZATION_INSTANCE_INFO_OUTPUT; - - - - - -typedef struct _GET_FILTER_FILE_IDENTIFIER_INPUT { - WORD AltitudeLength; - WCHAR Altitude[1]; -} GET_FILTER_FILE_IDENTIFIER_INPUT, *PGET_FILTER_FILE_IDENTIFIER_INPUT; - -typedef struct _GET_FILTER_FILE_IDENTIFIER_OUTPUT { - WORD FilterFileIdentifierLength; - BYTE FilterFileIdentifier[1]; -} GET_FILTER_FILE_IDENTIFIER_OUTPUT, *PGET_FILTER_FILE_IDENTIFIER_OUTPUT; - - - - - - - - -#pragma warning(push) -#pragma warning(disable: 4201) -# 16615 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef enum _FS_BPIO_OPERATIONS { -# 16643 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - FS_BPIO_OP_ENABLE = 1, -# 16662 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - FS_BPIO_OP_DISABLE = 2, -# 16672 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - FS_BPIO_OP_QUERY = 3, -# 16690 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - FS_BPIO_OP_VOLUME_STACK_PAUSE = 4, -# 16704 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - FS_BPIO_OP_VOLUME_STACK_RESUME = 5, -# 16718 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - FS_BPIO_OP_STREAM_PAUSE = 6, -# 16730 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - FS_BPIO_OP_STREAM_RESUME = 7, - - - - - - - FS_BPIO_OP_GET_INFO = 8, - - - - - - FS_BPIO_OP_MAX_OPERATION - -} FS_BPIO_OPERATIONS; - - - - - -typedef enum _FS_BPIO_INFLAGS { - - FSBPIO_INFL_None = 0, - - - - - - - - FSBPIO_INFL_SKIP_STORAGE_STACK_QUERY = 1, - -} FS_BPIO_INFLAGS; - - - - - - -typedef struct _FS_BPIO_INPUT { - - - - - - FS_BPIO_OPERATIONS Operation; - - - - - - FS_BPIO_INFLAGS InFlags; - - - - - - DWORDLONG Reserved1; - DWORDLONG Reserved2; - -} FS_BPIO_INPUT, *PFS_BPIO_INPUT; - - - - - -typedef enum _FS_BPIO_OUTFLAGS { - - FSBPIO_OUTFL_None = 0, - - - - - - FSBPIO_OUTFL_VOLUME_STACK_BYPASS_PAUSED = 0x00000001, - - - - - - FSBPIO_OUTFL_STREAM_BYPASS_PAUSED = 0x00000002, - - - - - - - - FSBPIO_OUTFL_FILTER_ATTACH_BLOCKED = 0x00000004, - - - - - - - FSBPIO_OUTFL_COMPATIBLE_STORAGE_DRIVER = 0x00000008, - -} FS_BPIO_OUTFLAGS; - - - - - - - -typedef struct _FS_BPIO_RESULTS { - - - - - - - - DWORD OpStatus; -# 16856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - WORD FailingDriverNameLen; - WCHAR FailingDriverName[32]; -# 16870 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 - WORD FailureReasonLen; - WCHAR FailureReason[128]; - -} FS_BPIO_RESULTS, *PFS_BPIO_RESULTS; - - - - - - -typedef struct _FS_BPIO_INFO { - - - - - - DWORD ActiveBypassIoCount; - - - - - - WORD StorageDriverNameLen; - WCHAR StorageDriverName[32]; - -} FS_BPIO_INFO, *PFS_BPIO_INFO; - - - - - -typedef struct _FS_BPIO_OUTPUT { - - - - - - - FS_BPIO_OPERATIONS Operation; - - - - - - FS_BPIO_OUTFLAGS OutFlags; - - - - - - DWORDLONG Reserved1; - DWORDLONG Reserved2; - - - - - - union { - FS_BPIO_RESULTS Enable; - FS_BPIO_RESULTS Query; - FS_BPIO_RESULTS VolumeStackResume; - FS_BPIO_RESULTS StreamResume; - FS_BPIO_INFO GetInfo; - }; - -} FS_BPIO_OUTPUT, *PFS_BPIO_OUTPUT; -# 16950 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma warning(pop) -# 17028 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _SMB_SHARE_FLUSH_AND_PURGE_INPUT { - - WORD Version; -} SMB_SHARE_FLUSH_AND_PURGE_INPUT, *PSMB_SHARE_FLUSH_AND_PURGE_INPUT; -typedef struct _SMB_SHARE_FLUSH_AND_PURGE_INPUT const *PCSMB_SHARE_FLUSH_AND_PURGE_INPUT; - -typedef struct _SMB_SHARE_FLUSH_AND_PURGE_OUTPUT { - - DWORD cEntriesPurged; -} SMB_SHARE_FLUSH_AND_PURGE_OUTPUT, *PSMB_SHARE_FLUSH_AND_PURGE_OUTPUT; -typedef struct _SMB_SHARE_FLUSH_AND_PURGE_OUTPUT const *PCSMB_SHARE_FLUSH_AND_PURGE_OUTPUT; -# 17064 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _DISK_EXTENT { - - - - - - DWORD DiskNumber; - - - - - - - LARGE_INTEGER StartingOffset; - LARGE_INTEGER ExtentLength; - -} DISK_EXTENT, *PDISK_EXTENT; - -typedef struct _VOLUME_DISK_EXTENTS { - - - - - - DWORD NumberOfDiskExtents; - DISK_EXTENT Extents[1]; - -} VOLUME_DISK_EXTENTS, *PVOLUME_DISK_EXTENTS; -# 17152 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _VOLUME_GET_GPT_ATTRIBUTES_INFORMATION { - - - - - - DWORDLONG GptAttributes; - -} VOLUME_GET_GPT_ATTRIBUTES_INFORMATION, *PVOLUME_GET_GPT_ATTRIBUTES_INFORMATION; -# 17175 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -struct _IO_IRP_EXT_TRACK_OFFSET_HEADER; - -typedef void -(*PIO_IRP_EXT_PROCESS_TRACKED_OFFSET_CALLBACK)( - struct _IO_IRP_EXT_TRACK_OFFSET_HEADER *SourceContext, - struct _IO_IRP_EXT_TRACK_OFFSET_HEADER *TargetContext, - LONGLONG RelativeOffset - ); -# 17193 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -typedef struct _IO_IRP_EXT_TRACK_OFFSET_HEADER { - - WORD Validation; - - - - WORD Flags; - - PIO_IRP_EXT_PROCESS_TRACKED_OFFSET_CALLBACK TrackedOffsetCallback; - -} IO_IRP_EXT_TRACK_OFFSET_HEADER, *PIO_IRP_EXT_TRACK_OFFSET_HEADER; -# 17219 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winioctl.h" 3 -#pragma warning(pop) -# 32 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winsmcrd.h" 1 3 -# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winsmcrd.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - - - -typedef DWORD ULONG; -typedef WORD UWORD; -typedef BYTE UCHAR; -# 59 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winsmcrd.h" 3 -extern const GUID GUID_DEVINTERFACE_SMARTCARD_READER; -# 270 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winsmcrd.h" 3 -typedef struct _SCARD_IO_REQUEST{ - DWORD dwProtocol; - DWORD cbPciLength; -} SCARD_IO_REQUEST, *PSCARD_IO_REQUEST, *LPSCARD_IO_REQUEST; -typedef const SCARD_IO_REQUEST *LPCSCARD_IO_REQUEST; - - - - - - -typedef struct _SCARD_T0_COMMAND { - BYTE - bCla, - bIns, - bP1, - bP2, - bP3; -} SCARD_T0_COMMAND, *LPSCARD_T0_COMMAND; - -typedef struct _SCARD_T0_REQUEST { - SCARD_IO_REQUEST ioRequest; - BYTE - bSw1, - bSw2; -#pragma warning(push) -#pragma warning(disable: 4201) - union - { - SCARD_T0_COMMAND CmdBytes; - BYTE rgbHeader[5]; - } ; -#pragma warning(pop) -} SCARD_T0_REQUEST; - -typedef SCARD_T0_REQUEST *PSCARD_T0_REQUEST, *LPSCARD_T0_REQUEST; - - - - - - -typedef struct _SCARD_T1_REQUEST { - SCARD_IO_REQUEST ioRequest; -} SCARD_T1_REQUEST; -typedef SCARD_T1_REQUEST *PSCARD_T1_REQUEST, *LPSCARD_T1_REQUEST; -# 352 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\winsmcrd.h" 3 -#pragma warning(pop) -# 33 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 2 3 -# 43 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - - - - - - - -typedef const BYTE *LPCBYTE; - - - -typedef const void *LPCVOID; -# 71 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -__declspec(dllimport) extern const SCARD_IO_REQUEST - g_rgSCardT0Pci, - g_rgSCardT1Pci, - g_rgSCardRawPci; -# 89 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -typedef ULONG_PTR SCARDCONTEXT; -typedef SCARDCONTEXT *PSCARDCONTEXT, *LPSCARDCONTEXT; - -typedef ULONG_PTR SCARDHANDLE; -typedef SCARDHANDLE *PSCARDHANDLE, *LPSCARDHANDLE; -# 111 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -SCardEstablishContext( - DWORD dwScope, - LPCVOID pvReserved1, - LPCVOID pvReserved2, - LPSCARDCONTEXT phContext); - -extern LONG __stdcall -SCardReleaseContext( - SCARDCONTEXT hContext); - -extern LONG __stdcall -SCardIsValidContext( - SCARDCONTEXT hContext); -# 149 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -SCardListReaderGroupsA( - SCARDCONTEXT hContext, - LPSTR mszGroups, - LPDWORD pcchGroups); -extern LONG __stdcall -SCardListReaderGroupsW( - SCARDCONTEXT hContext, - LPWSTR mszGroups, - LPDWORD pcchGroups); - - - - - - - -extern LONG __stdcall -SCardListReadersA( - SCARDCONTEXT hContext, - LPCSTR mszGroups, - - - LPSTR mszReaders, - LPDWORD pcchReaders); - -extern LONG __stdcall -SCardListReadersW( - SCARDCONTEXT hContext, - LPCWSTR mszGroups, - - - LPWSTR mszReaders, - LPDWORD pcchReaders); - - - - - - - -extern LONG __stdcall -SCardListCardsA( - SCARDCONTEXT hContext, - LPCBYTE pbAtr, - LPCGUID rgquidInterfaces, - DWORD cguidInterfaceCount, - - - CHAR *mszCards, - LPDWORD pcchCards); - -extern LONG __stdcall -SCardListCardsW( - SCARDCONTEXT hContext, - LPCBYTE pbAtr, - LPCGUID rgquidInterfaces, - DWORD cguidInterfaceCount, - - - WCHAR *mszCards, - LPDWORD pcchCards); -# 232 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -SCardListInterfacesA( - SCARDCONTEXT hContext, - LPCSTR szCard, - LPGUID pguidInterfaces, - LPDWORD pcguidInterfaces); -extern LONG __stdcall -SCardListInterfacesW( - SCARDCONTEXT hContext, - LPCWSTR szCard, - LPGUID pguidInterfaces, - LPDWORD pcguidInterfaces); - - - - - - -extern LONG __stdcall -SCardGetProviderIdA( - SCARDCONTEXT hContext, - LPCSTR szCard, - LPGUID pguidProviderId); -extern LONG __stdcall -SCardGetProviderIdW( - SCARDCONTEXT hContext, - LPCWSTR szCard, - LPGUID pguidProviderId); -# 271 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -SCardGetCardTypeProviderNameA( - SCARDCONTEXT hContext, - LPCSTR szCardName, - DWORD dwProviderId, - - - CHAR *szProvider, - LPDWORD pcchProvider); - -extern LONG __stdcall -SCardGetCardTypeProviderNameW( - SCARDCONTEXT hContext, - LPCWSTR szCardName, - DWORD dwProviderId, - - - WCHAR *szProvider, - LPDWORD pcchProvider); -# 304 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -SCardIntroduceReaderGroupA( - SCARDCONTEXT hContext, - LPCSTR szGroupName); -extern LONG __stdcall -SCardIntroduceReaderGroupW( - SCARDCONTEXT hContext, - LPCWSTR szGroupName); - - - - - - -extern LONG __stdcall -SCardForgetReaderGroupA( - SCARDCONTEXT hContext, - LPCSTR szGroupName); -extern LONG __stdcall -SCardForgetReaderGroupW( - SCARDCONTEXT hContext, - LPCWSTR szGroupName); - - - - - - -extern LONG __stdcall -SCardIntroduceReaderA( - SCARDCONTEXT hContext, - LPCSTR szReaderName, - LPCSTR szDeviceName); -extern LONG __stdcall -SCardIntroduceReaderW( - SCARDCONTEXT hContext, - LPCWSTR szReaderName, - LPCWSTR szDeviceName); - - - - - - -extern LONG __stdcall -SCardForgetReaderA( - SCARDCONTEXT hContext, - LPCSTR szReaderName); -extern LONG __stdcall -SCardForgetReaderW( - SCARDCONTEXT hContext, - LPCWSTR szReaderName); - - - - - - -extern LONG __stdcall -SCardAddReaderToGroupA( - SCARDCONTEXT hContext, - LPCSTR szReaderName, - LPCSTR szGroupName); -extern LONG __stdcall -SCardAddReaderToGroupW( - SCARDCONTEXT hContext, - LPCWSTR szReaderName, - LPCWSTR szGroupName); - - - - - - -extern LONG __stdcall -SCardRemoveReaderFromGroupA( - SCARDCONTEXT hContext, - LPCSTR szReaderName, - LPCSTR szGroupName); -extern LONG __stdcall -SCardRemoveReaderFromGroupW( - SCARDCONTEXT hContext, - LPCWSTR szReaderName, - LPCWSTR szGroupName); - - - - - - -extern LONG __stdcall -SCardIntroduceCardTypeA( - SCARDCONTEXT hContext, - LPCSTR szCardName, - LPCGUID pguidPrimaryProvider, - LPCGUID rgguidInterfaces, - DWORD dwInterfaceCount, - LPCBYTE pbAtr, - LPCBYTE pbAtrMask, - DWORD cbAtrLen); -extern LONG __stdcall -SCardIntroduceCardTypeW( - SCARDCONTEXT hContext, - LPCWSTR szCardName, - LPCGUID pguidPrimaryProvider, - LPCGUID rgguidInterfaces, - DWORD dwInterfaceCount, - LPCBYTE pbAtr, - LPCBYTE pbAtrMask, - DWORD cbAtrLen); -# 438 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -SCardSetCardTypeProviderNameA( - SCARDCONTEXT hContext, - LPCSTR szCardName, - DWORD dwProviderId, - LPCSTR szProvider); -extern LONG __stdcall -SCardSetCardTypeProviderNameW( - SCARDCONTEXT hContext, - LPCWSTR szCardName, - DWORD dwProviderId, - LPCWSTR szProvider); -# 459 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -SCardForgetCardTypeA( - SCARDCONTEXT hContext, - LPCSTR szCardName); -extern LONG __stdcall -SCardForgetCardTypeW( - SCARDCONTEXT hContext, - LPCWSTR szCardName); -# 483 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -SCardFreeMemory( - SCARDCONTEXT hContext, - LPCVOID pvMem); - - -extern HANDLE __stdcall -SCardAccessStartedEvent(void); - -extern void __stdcall -SCardReleaseStartedEvent(void); -# 504 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -typedef struct { - LPCSTR szReader; - LPVOID pvUserData; - DWORD dwCurrentState; - DWORD dwEventState; - DWORD cbAtr; - BYTE rgbAtr[36]; -} SCARD_READERSTATEA, *PSCARD_READERSTATEA, *LPSCARD_READERSTATEA; -typedef struct { - LPCWSTR szReader; - LPVOID pvUserData; - DWORD dwCurrentState; - DWORD dwEventState; - DWORD cbAtr; - BYTE rgbAtr[36]; -} SCARD_READERSTATEW, *PSCARD_READERSTATEW, *LPSCARD_READERSTATEW; - - - - - -typedef SCARD_READERSTATEA SCARD_READERSTATE; -typedef PSCARD_READERSTATEA PSCARD_READERSTATE; -typedef LPSCARD_READERSTATEA LPSCARD_READERSTATE; -# 600 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -SCardLocateCardsA( - SCARDCONTEXT hContext, - LPCSTR mszCards, - LPSCARD_READERSTATEA rgReaderStates, - DWORD cReaders); -extern LONG __stdcall -SCardLocateCardsW( - SCARDCONTEXT hContext, - LPCWSTR mszCards, - LPSCARD_READERSTATEW rgReaderStates, - DWORD cReaders); - - - - - - - -typedef struct _SCARD_ATRMASK { - DWORD cbAtr; - BYTE rgbAtr[36]; - BYTE rgbMask[36]; -} SCARD_ATRMASK, *PSCARD_ATRMASK, *LPSCARD_ATRMASK; - - -extern LONG __stdcall -SCardLocateCardsByATRA( - SCARDCONTEXT hContext, - LPSCARD_ATRMASK rgAtrMasks, - DWORD cAtrs, - LPSCARD_READERSTATEA rgReaderStates, - DWORD cReaders); -extern LONG __stdcall -SCardLocateCardsByATRW( - SCARDCONTEXT hContext, - LPSCARD_ATRMASK rgAtrMasks, - DWORD cAtrs, - LPSCARD_READERSTATEW rgReaderStates, - DWORD cReaders); - - - - - - - -extern LONG __stdcall -SCardGetStatusChangeA( - SCARDCONTEXT hContext, - DWORD dwTimeout, - LPSCARD_READERSTATEA rgReaderStates, - DWORD cReaders); -extern LONG __stdcall -SCardGetStatusChangeW( - SCARDCONTEXT hContext, - DWORD dwTimeout, - LPSCARD_READERSTATEW rgReaderStates, - DWORD cReaders); - - - - - - -extern LONG __stdcall -SCardCancel( - SCARDCONTEXT hContext); -# 691 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -SCardConnectA( - SCARDCONTEXT hContext, - LPCSTR szReader, - DWORD dwShareMode, - DWORD dwPreferredProtocols, - LPSCARDHANDLE phCard, - LPDWORD pdwActiveProtocol); -extern LONG __stdcall -SCardConnectW( - SCARDCONTEXT hContext, - LPCWSTR szReader, - DWORD dwShareMode, - DWORD dwPreferredProtocols, - LPSCARDHANDLE phCard, - LPDWORD pdwActiveProtocol); - - - - - - -extern LONG __stdcall -SCardReconnect( - SCARDHANDLE hCard, - DWORD dwShareMode, - DWORD dwPreferredProtocols, - DWORD dwInitialization, - LPDWORD pdwActiveProtocol); - -extern LONG __stdcall -SCardDisconnect( - SCARDHANDLE hCard, - DWORD dwDisposition); - -extern LONG __stdcall -SCardBeginTransaction( - SCARDHANDLE hCard); - -extern LONG __stdcall -SCardEndTransaction( - SCARDHANDLE hCard, - DWORD dwDisposition); - -extern LONG __stdcall -SCardCancelTransaction( - SCARDHANDLE hCard); - - - - - - -extern LONG __stdcall -SCardState( - SCARDHANDLE hCard, - LPDWORD pdwState, - LPDWORD pdwProtocol, - LPBYTE pbAtr, - LPDWORD pcbAtrLen); - - - - - -extern LONG __stdcall -SCardStatusA( - SCARDHANDLE hCard, - - - LPSTR mszReaderNames, - LPDWORD pcchReaderLen, - LPDWORD pdwState, - LPDWORD pdwProtocol, - - - LPBYTE pbAtr, - LPDWORD pcbAtrLen); -extern LONG __stdcall -SCardStatusW( - SCARDHANDLE hCard, - - - LPWSTR mszReaderNames, - LPDWORD pcchReaderLen, - LPDWORD pdwState, - LPDWORD pdwProtocol, - - - LPBYTE pbAtr, - LPDWORD pcbAtrLen); - - - - - - -extern LONG __stdcall -SCardTransmit( - SCARDHANDLE hCard, - LPCSCARD_IO_REQUEST pioSendPci, - LPCBYTE pbSendBuffer, - DWORD cbSendLength, - LPSCARD_IO_REQUEST pioRecvPci, - LPBYTE pbRecvBuffer, - LPDWORD pcbRecvLength); - - -extern LONG __stdcall -SCardGetTransmitCount( - SCARDHANDLE hCard, - LPDWORD pcTransmitCount); -# 815 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -SCardControl( - SCARDHANDLE hCard, - DWORD dwControlCode, - LPCVOID lpInBuffer, - DWORD cbInBufferSize, - LPVOID lpOutBuffer, - DWORD cbOutBufferSize, - LPDWORD lpBytesReturned); - -extern LONG __stdcall -SCardGetAttrib( - SCARDHANDLE hCard, - DWORD dwAttrId, - LPBYTE pbAttr, - LPDWORD pcbAttrLen); -# 845 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -SCardSetAttrib( - SCARDHANDLE hCard, - DWORD dwAttrId, - LPCBYTE pbAttr, - DWORD cbAttrLen); -# 884 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -typedef SCARDHANDLE (__stdcall *LPOCNCONNPROCA) ( SCARDCONTEXT, LPSTR, LPSTR, PVOID); -typedef SCARDHANDLE (__stdcall *LPOCNCONNPROCW) ( SCARDCONTEXT, LPWSTR, LPWSTR, PVOID); - - - - - -typedef BOOL (__stdcall *LPOCNCHKPROC) ( SCARDCONTEXT, SCARDHANDLE, PVOID); -typedef void (__stdcall *LPOCNDSCPROC) ( SCARDCONTEXT, SCARDHANDLE, PVOID); -# 904 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -typedef struct { - DWORD dwStructSize; - LPSTR lpstrGroupNames; - DWORD nMaxGroupNames; - - LPCGUID rgguidInterfaces; - DWORD cguidInterfaces; - LPSTR lpstrCardNames; - DWORD nMaxCardNames; - LPOCNCHKPROC lpfnCheck; - LPOCNCONNPROCA lpfnConnect; - LPOCNDSCPROC lpfnDisconnect; - LPVOID pvUserData; - DWORD dwShareMode; - DWORD dwPreferredProtocols; -} OPENCARD_SEARCH_CRITERIAA, *POPENCARD_SEARCH_CRITERIAA, *LPOPENCARD_SEARCH_CRITERIAA; -typedef struct { - DWORD dwStructSize; - LPWSTR lpstrGroupNames; - DWORD nMaxGroupNames; - - LPCGUID rgguidInterfaces; - DWORD cguidInterfaces; - LPWSTR lpstrCardNames; - DWORD nMaxCardNames; - LPOCNCHKPROC lpfnCheck; - LPOCNCONNPROCW lpfnConnect; - LPOCNDSCPROC lpfnDisconnect; - LPVOID pvUserData; - DWORD dwShareMode; - DWORD dwPreferredProtocols; -} OPENCARD_SEARCH_CRITERIAW, *POPENCARD_SEARCH_CRITERIAW, *LPOPENCARD_SEARCH_CRITERIAW; - - - - - -typedef OPENCARD_SEARCH_CRITERIAA OPENCARD_SEARCH_CRITERIA; -typedef POPENCARD_SEARCH_CRITERIAA POPENCARD_SEARCH_CRITERIA; -typedef LPOPENCARD_SEARCH_CRITERIAA LPOPENCARD_SEARCH_CRITERIA; - - - - - - - -typedef struct { - DWORD dwStructSize; - SCARDCONTEXT hSCardContext; - HWND hwndOwner; - DWORD dwFlags; - LPCSTR lpstrTitle; - LPCSTR lpstrSearchDesc; - HICON hIcon; - POPENCARD_SEARCH_CRITERIAA pOpenCardSearchCriteria; - LPOCNCONNPROCA lpfnConnect; - LPVOID pvUserData; - DWORD dwShareMode; - DWORD dwPreferredProtocols; - - LPSTR lpstrRdr; - DWORD nMaxRdr; - LPSTR lpstrCard; - DWORD nMaxCard; - DWORD dwActiveProtocol; - SCARDHANDLE hCardHandle; -} OPENCARDNAME_EXA, *POPENCARDNAME_EXA, *LPOPENCARDNAME_EXA; -typedef struct { - DWORD dwStructSize; - SCARDCONTEXT hSCardContext; - HWND hwndOwner; - DWORD dwFlags; - LPCWSTR lpstrTitle; - LPCWSTR lpstrSearchDesc; - HICON hIcon; - POPENCARD_SEARCH_CRITERIAW pOpenCardSearchCriteria; - LPOCNCONNPROCW lpfnConnect; - LPVOID pvUserData; - DWORD dwShareMode; - DWORD dwPreferredProtocols; - - LPWSTR lpstrRdr; - DWORD nMaxRdr; - LPWSTR lpstrCard; - DWORD nMaxCard; - DWORD dwActiveProtocol; - SCARDHANDLE hCardHandle; -} OPENCARDNAME_EXW, *POPENCARDNAME_EXW, *LPOPENCARDNAME_EXW; - - - - - -typedef OPENCARDNAME_EXA OPENCARDNAME_EX; -typedef POPENCARDNAME_EXA POPENCARDNAME_EX; -typedef LPOPENCARDNAME_EXA LPOPENCARDNAME_EX; -# 1084 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -typedef enum { - RSR_MATCH_TYPE_READER_AND_CONTAINER = 1, - RSR_MATCH_TYPE_SERIAL_NUMBER, - RSR_MATCH_TYPE_ALL_CARDS -} READER_SEL_REQUEST_MATCH_TYPE; - -typedef struct { - DWORD dwShareMode; - DWORD dwPreferredProtocols; - READER_SEL_REQUEST_MATCH_TYPE MatchType; -#pragma warning(push) -#pragma warning(disable: 4201) - union { - struct { - DWORD cbReaderNameOffset; - DWORD cchReaderNameLength; - DWORD cbContainerNameOffset; - DWORD cchContainerNameLength; - DWORD dwDesiredCardModuleVersion; - DWORD dwCspFlags; - } ReaderAndContainerParameter; - struct { - DWORD cbSerialNumberOffset; - DWORD cbSerialNumberLength; - DWORD dwDesiredCardModuleVersion; - } SerialNumberParameter; - } ; -#pragma warning(pop) -} READER_SEL_REQUEST, *PREADER_SEL_REQUEST; -# 1133 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -typedef struct { - DWORD cbReaderNameOffset; - DWORD cchReaderNameLength; - DWORD cbCardNameOffset; - DWORD cchCardNameLength; -} READER_SEL_RESPONSE, *PREADER_SEL_RESPONSE; - - - - - - -extern LONG __stdcall -SCardUIDlgSelectCardA( - LPOPENCARDNAME_EXA); -extern LONG __stdcall -SCardUIDlgSelectCardW( - LPOPENCARDNAME_EXW); -# 1163 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -typedef struct { - DWORD dwStructSize; - HWND hwndOwner; - SCARDCONTEXT hSCardContext; - LPSTR lpstrGroupNames; - DWORD nMaxGroupNames; - LPSTR lpstrCardNames; - DWORD nMaxCardNames; - LPCGUID rgguidInterfaces; - DWORD cguidInterfaces; - LPSTR lpstrRdr; - DWORD nMaxRdr; - LPSTR lpstrCard; - DWORD nMaxCard; - LPCSTR lpstrTitle; - DWORD dwFlags; - LPVOID pvUserData; - DWORD dwShareMode; - DWORD dwPreferredProtocols; - DWORD dwActiveProtocol; - LPOCNCONNPROCA lpfnConnect; - LPOCNCHKPROC lpfnCheck; - LPOCNDSCPROC lpfnDisconnect; - SCARDHANDLE hCardHandle; -} OPENCARDNAMEA, *POPENCARDNAMEA, *LPOPENCARDNAMEA; -typedef struct { - DWORD dwStructSize; - HWND hwndOwner; - SCARDCONTEXT hSCardContext; - LPWSTR lpstrGroupNames; - DWORD nMaxGroupNames; - LPWSTR lpstrCardNames; - DWORD nMaxCardNames; - LPCGUID rgguidInterfaces; - DWORD cguidInterfaces; - LPWSTR lpstrRdr; - DWORD nMaxRdr; - LPWSTR lpstrCard; - DWORD nMaxCard; - LPCWSTR lpstrTitle; - DWORD dwFlags; - LPVOID pvUserData; - DWORD dwShareMode; - DWORD dwPreferredProtocols; - DWORD dwActiveProtocol; - LPOCNCONNPROCW lpfnConnect; - LPOCNCHKPROC lpfnCheck; - LPOCNDSCPROC lpfnDisconnect; - SCARDHANDLE hCardHandle; -} OPENCARDNAMEW, *POPENCARDNAMEW, *LPOPENCARDNAMEW; - - - - - -typedef OPENCARDNAMEA OPENCARDNAME; -typedef POPENCARDNAMEA POPENCARDNAME; -typedef LPOPENCARDNAMEA LPOPENCARDNAME; -# 1231 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -GetOpenCardNameA( - LPOPENCARDNAMEA); -extern LONG __stdcall -GetOpenCardNameW( - LPOPENCARDNAMEW); - - - - - - -extern LONG __stdcall -SCardDlgExtendedError (void); - - - - - - - -extern LONG __stdcall -SCardReadCacheA( - SCARDCONTEXT hContext, - UUID *CardIdentifier, - DWORD FreshnessCounter, - LPSTR LookupName, - PBYTE Data, - DWORD *DataLen); -extern LONG __stdcall -SCardReadCacheW( - SCARDCONTEXT hContext, - UUID *CardIdentifier, - DWORD FreshnessCounter, - LPWSTR LookupName, - PBYTE Data, - DWORD *DataLen); - - - - - - -extern LONG __stdcall -SCardWriteCacheA( - SCARDCONTEXT hContext, - UUID *CardIdentifier, - DWORD FreshnessCounter, - LPSTR LookupName, - PBYTE Data, - DWORD DataLen); -extern LONG __stdcall -SCardWriteCacheW( - SCARDCONTEXT hContext, - UUID *CardIdentifier, - DWORD FreshnessCounter, - LPWSTR LookupName, - PBYTE Data, - DWORD DataLen); -# 1301 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -SCardGetReaderIconA( - SCARDCONTEXT hContext, - LPCSTR szReaderName, - - - LPBYTE pbIcon, - LPDWORD pcbIcon); - -extern LONG __stdcall -SCardGetReaderIconW( - SCARDCONTEXT hContext, - LPCWSTR szReaderName, - - - LPBYTE pbIcon, - LPDWORD pcbIcon); - - - - - - - -extern LONG __stdcall -SCardGetDeviceTypeIdA( - SCARDCONTEXT hContext, - LPCSTR szReaderName, - LPDWORD pdwDeviceTypeId); - -extern LONG __stdcall -SCardGetDeviceTypeIdW( - SCARDCONTEXT hContext, - LPCWSTR szReaderName, - LPDWORD pdwDeviceTypeId); - - - - - - - -extern LONG __stdcall -SCardGetReaderDeviceInstanceIdA( - SCARDCONTEXT hContext, - LPCSTR szReaderName, - - - LPSTR szDeviceInstanceId, - LPDWORD pcchDeviceInstanceId); - -extern LONG __stdcall -SCardGetReaderDeviceInstanceIdW( - SCARDCONTEXT hContext, - LPCWSTR szReaderName, - - - LPWSTR szDeviceInstanceId, - LPDWORD pcchDeviceInstanceId); - - - - - - - -extern LONG __stdcall -SCardListReadersWithDeviceInstanceIdA( - SCARDCONTEXT hContext, - LPCSTR szDeviceInstanceId, - - - LPSTR mszReaders, - LPDWORD pcchReaders); - -extern LONG __stdcall -SCardListReadersWithDeviceInstanceIdW( - SCARDCONTEXT hContext, - LPCWSTR szDeviceInstanceId, - - - LPWSTR mszReaders, - LPDWORD pcchReaders); -# 1403 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winscard.h" 3 -extern LONG __stdcall -SCardAudit( - SCARDCONTEXT hContext, - DWORD dwEvent); - - - - - - - -#pragma warning(pop) -# 213 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 1 3 -# 23 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 1 3 -# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -#pragma warning(push) -#pragma warning(disable: 4001) -#pragma warning(disable: 4201) -#pragma warning(disable: 4820) -# 56 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,8) -# 57 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 2 3 -# 96 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -struct _PSP; -typedef struct _PSP * HPROPSHEETPAGE; - - -struct _PROPSHEETPAGEA; -struct _PROPSHEETPAGEW; - - -typedef UINT (__stdcall *LPFNPSPCALLBACKA)(HWND hwnd, UINT uMsg, struct _PROPSHEETPAGEA *ppsp); -typedef UINT (__stdcall *LPFNPSPCALLBACKW)(HWND hwnd, UINT uMsg, struct _PROPSHEETPAGEW *ppsp); -# 140 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -typedef LPCDLGTEMPLATE PROPSHEETPAGE_RESOURCE; -# 196 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -typedef struct _PROPSHEETPAGEA_V1 -{ - DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCSTR pszIcon; } ; LPCSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKA pfnCallback; UINT *pcRefParent; -} PROPSHEETPAGEA_V1, *LPPROPSHEETPAGEA_V1; -typedef const PROPSHEETPAGEA_V1 *LPCPROPSHEETPAGEA_V1; - -typedef struct _PROPSHEETPAGEA_V2 -{ - DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCSTR pszIcon; } ; LPCSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKA pfnCallback; UINT *pcRefParent; - - LPCSTR pszHeaderTitle; - LPCSTR pszHeaderSubTitle; -} PROPSHEETPAGEA_V2, *LPPROPSHEETPAGEA_V2; -typedef const PROPSHEETPAGEA_V2 *LPCPROPSHEETPAGEA_V2; - -typedef struct _PROPSHEETPAGEA_V3 -{ - DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCSTR pszIcon; } ; LPCSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKA pfnCallback; UINT *pcRefParent; - - LPCSTR pszHeaderTitle; - LPCSTR pszHeaderSubTitle; - - HANDLE hActCtx; -} PROPSHEETPAGEA_V3, *LPPROPSHEETPAGEA_V3; -typedef const PROPSHEETPAGEA_V3 *LPCPROPSHEETPAGEA_V3; - - -typedef struct _PROPSHEETPAGEA -{ - DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCSTR pszIcon; } ; LPCSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKA pfnCallback; UINT *pcRefParent; - - LPCSTR pszHeaderTitle; - LPCSTR pszHeaderSubTitle; - - HANDLE hActCtx; - - union - { - HBITMAP hbmHeader; - LPCSTR pszbmHeader; - } ; - -} PROPSHEETPAGEA_V4, *LPPROPSHEETPAGEA_V4; -typedef const PROPSHEETPAGEA_V4 *LPCPROPSHEETPAGEA_V4; - - -typedef struct _PROPSHEETPAGEW_V1 -{ - DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCWSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCWSTR pszIcon; } ; LPCWSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKW pfnCallback; UINT *pcRefParent; -} PROPSHEETPAGEW_V1, *LPPROPSHEETPAGEW_V1; -typedef const PROPSHEETPAGEW_V1 *LPCPROPSHEETPAGEW_V1; - -typedef struct _PROPSHEETPAGEW_V2 -{ - DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCWSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCWSTR pszIcon; } ; LPCWSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKW pfnCallback; UINT *pcRefParent; - - LPCWSTR pszHeaderTitle; - LPCWSTR pszHeaderSubTitle; -} PROPSHEETPAGEW_V2, *LPPROPSHEETPAGEW_V2; -typedef const PROPSHEETPAGEW_V2 *LPCPROPSHEETPAGEW_V2; - -typedef struct _PROPSHEETPAGEW_V3 -{ - DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCWSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCWSTR pszIcon; } ; LPCWSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKW pfnCallback; UINT *pcRefParent; - - LPCWSTR pszHeaderTitle; - LPCWSTR pszHeaderSubTitle; - - HANDLE hActCtx; -} PROPSHEETPAGEW_V3, *LPPROPSHEETPAGEW_V3; -typedef const PROPSHEETPAGEW_V3 *LPCPROPSHEETPAGEW_V3; - - -typedef struct _PROPSHEETPAGEW -{ - DWORD dwSize; DWORD dwFlags; HINSTANCE hInstance; union { LPCWSTR pszTemplate; PROPSHEETPAGE_RESOURCE pResource; } ; union { HICON hIcon; LPCWSTR pszIcon; } ; LPCWSTR pszTitle; DLGPROC pfnDlgProc; LPARAM lParam; LPFNPSPCALLBACKW pfnCallback; UINT *pcRefParent; - - LPCWSTR pszHeaderTitle; - LPCWSTR pszHeaderSubTitle; - - HANDLE hActCtx; - - union - { - HBITMAP hbmHeader; - LPCWSTR pszbmHeader; - } ; - -} PROPSHEETPAGEW_V4, *LPPROPSHEETPAGEW_V4; -typedef const PROPSHEETPAGEW_V4 *LPCPROPSHEETPAGEW_V4; -# 304 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -typedef PROPSHEETPAGEA_V4 PROPSHEETPAGEA_LATEST; -typedef PROPSHEETPAGEW_V4 PROPSHEETPAGEW_LATEST; -typedef LPPROPSHEETPAGEA_V4 LPPROPSHEETPAGEA_LATEST; -typedef LPPROPSHEETPAGEW_V4 LPPROPSHEETPAGEW_LATEST; -typedef LPCPROPSHEETPAGEA_V4 LPCPROPSHEETPAGEA_LATEST; -typedef LPCPROPSHEETPAGEW_V4 LPCPROPSHEETPAGEW_LATEST; -# 321 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -typedef PROPSHEETPAGEA_V4 PROPSHEETPAGEA; -typedef PROPSHEETPAGEW_V4 PROPSHEETPAGEW; -typedef LPPROPSHEETPAGEA_V4 LPPROPSHEETPAGEA; -typedef LPPROPSHEETPAGEW_V4 LPPROPSHEETPAGEW; -typedef LPCPROPSHEETPAGEA_V4 LPCPROPSHEETPAGEA; -typedef LPCPROPSHEETPAGEW_V4 LPCPROPSHEETPAGEW; -# 445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -typedef int (__stdcall *PFNPROPSHEETCALLBACK)(HWND, UINT, LPARAM); -# 471 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -typedef struct _PROPSHEETHEADERA_V1 -{ - DWORD dwSize; DWORD dwFlags; HWND hwndParent; HINSTANCE hInstance; union { HICON hIcon; LPCSTR pszIcon; } ; LPCSTR pszCaption; UINT nPages; union { UINT nStartPage; LPCSTR pStartPage; } ; union { LPCPROPSHEETPAGEA ppsp; HPROPSHEETPAGE *phpage; } ; PFNPROPSHEETCALLBACK pfnCallback; -} PROPSHEETHEADERA_V1, *LPPROPSHEETHEADERA_V1; -typedef const PROPSHEETHEADERA_V1 *LPCPROPSHEETHEADERA_V1; - -typedef struct _PROPSHEETHEADERA_V2 -{ - DWORD dwSize; DWORD dwFlags; HWND hwndParent; HINSTANCE hInstance; union { HICON hIcon; LPCSTR pszIcon; } ; LPCSTR pszCaption; UINT nPages; union { UINT nStartPage; LPCSTR pStartPage; } ; union { LPCPROPSHEETPAGEA ppsp; HPROPSHEETPAGE *phpage; } ; PFNPROPSHEETCALLBACK pfnCallback; - union - { - HBITMAP hbmWatermark; - LPCSTR pszbmWatermark; - } ; - HPALETTE hplWatermark; - union - { - HBITMAP hbmHeader; - LPCSTR pszbmHeader; - } ; -} PROPSHEETHEADERA_V2, *LPPROPSHEETHEADERA_V2; -typedef const PROPSHEETHEADERA_V2 *LPCPROPSHEETHEADERA_V2; -# 518 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -typedef struct _PROPSHEETHEADERW_V1 -{ - DWORD dwSize; DWORD dwFlags; HWND hwndParent; HINSTANCE hInstance; union { HICON hIcon; LPCWSTR pszIcon; } ; LPCWSTR pszCaption; UINT nPages; union { UINT nStartPage; LPCWSTR pStartPage; } ; union { LPCPROPSHEETPAGEW ppsp; HPROPSHEETPAGE *phpage; } ; PFNPROPSHEETCALLBACK pfnCallback; -} PROPSHEETHEADERW_V1, *LPPROPSHEETHEADERW_V1; -typedef const PROPSHEETHEADERW_V1 *LPCPROPSHEETHEADERW_V1; - -typedef struct _PROPSHEETHEADERW_V2 -{ - DWORD dwSize; DWORD dwFlags; HWND hwndParent; HINSTANCE hInstance; union { HICON hIcon; LPCWSTR pszIcon; } ; LPCWSTR pszCaption; UINT nPages; union { UINT nStartPage; LPCWSTR pStartPage; } ; union { LPCPROPSHEETPAGEW ppsp; HPROPSHEETPAGE *phpage; } ; PFNPROPSHEETCALLBACK pfnCallback; - union - { - HBITMAP hbmWatermark; - LPCWSTR pszbmWatermark; - } ; - HPALETTE hplWatermark; - union - { - HBITMAP hbmHeader; - LPCWSTR pszbmHeader; - } ; -} PROPSHEETHEADERW_V2, *LPPROPSHEETHEADERW_V2; -typedef const PROPSHEETHEADERW_V2 *LPCPROPSHEETHEADERW_V2; -# 549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -typedef PROPSHEETHEADERA_V2 PROPSHEETHEADERA; -typedef PROPSHEETHEADERW_V2 PROPSHEETHEADERW; -typedef LPPROPSHEETHEADERA_V2 LPPROPSHEETHEADERA; -typedef LPPROPSHEETHEADERW_V2 LPPROPSHEETHEADERW; -typedef LPCPROPSHEETHEADERA_V2 LPCPROPSHEETHEADERA; -typedef LPCPROPSHEETHEADERW_V2 LPCPROPSHEETHEADERW; -# 585 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -__declspec(dllimport) HPROPSHEETPAGE __stdcall CreatePropertySheetPageA(LPCPROPSHEETPAGEA constPropSheetPagePointer); -__declspec(dllimport) HPROPSHEETPAGE __stdcall CreatePropertySheetPageW(LPCPROPSHEETPAGEW constPropSheetPagePointer); -__declspec(dllimport) BOOL __stdcall DestroyPropertySheetPage(HPROPSHEETPAGE); - -__declspec(dllimport) INT_PTR __stdcall PropertySheetA(LPCPROPSHEETHEADERA); - -__declspec(dllimport) INT_PTR __stdcall PropertySheetW(LPCPROPSHEETHEADERW); -# 603 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -typedef BOOL (__stdcall *LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM); -typedef BOOL (__stdcall *LPFNADDPROPSHEETPAGES)(LPVOID, LPFNADDPROPSHEETPAGE, LPARAM); - - -typedef struct _PSHNOTIFY -{ - NMHDR hdr; - LPARAM lParam; -} PSHNOTIFY, *LPPSHNOTIFY; -# 902 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 903 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 2 3 - - - - - - -#pragma warning(pop) -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 2 3 - - - - - - - -#pragma warning(push) -#pragma warning(disable: 4820) - - - - - - -typedef struct _PRINTER_INFO_1A { - DWORD Flags; - LPSTR pDescription; - LPSTR pName; - LPSTR pComment; -} PRINTER_INFO_1A, *PPRINTER_INFO_1A, *LPPRINTER_INFO_1A; -typedef struct _PRINTER_INFO_1W { - DWORD Flags; - LPWSTR pDescription; - LPWSTR pName; - LPWSTR pComment; -} PRINTER_INFO_1W, *PPRINTER_INFO_1W, *LPPRINTER_INFO_1W; - - - - - -typedef PRINTER_INFO_1A PRINTER_INFO_1; -typedef PPRINTER_INFO_1A PPRINTER_INFO_1; -typedef LPPRINTER_INFO_1A LPPRINTER_INFO_1; - - -typedef struct _PRINTER_INFO_2A { - LPSTR pServerName; - LPSTR pPrinterName; - LPSTR pShareName; - LPSTR pPortName; - LPSTR pDriverName; - LPSTR pComment; - LPSTR pLocation; - LPDEVMODEA pDevMode; - LPSTR pSepFile; - LPSTR pPrintProcessor; - LPSTR pDatatype; - LPSTR pParameters; - PSECURITY_DESCRIPTOR pSecurityDescriptor; - DWORD Attributes; - DWORD Priority; - DWORD DefaultPriority; - DWORD StartTime; - DWORD UntilTime; - DWORD Status; - DWORD cJobs; - DWORD AveragePPM; -} PRINTER_INFO_2A, *PPRINTER_INFO_2A, *LPPRINTER_INFO_2A; -typedef struct _PRINTER_INFO_2W { - LPWSTR pServerName; - LPWSTR pPrinterName; - LPWSTR pShareName; - LPWSTR pPortName; - LPWSTR pDriverName; - LPWSTR pComment; - LPWSTR pLocation; - LPDEVMODEW pDevMode; - LPWSTR pSepFile; - LPWSTR pPrintProcessor; - LPWSTR pDatatype; - LPWSTR pParameters; - PSECURITY_DESCRIPTOR pSecurityDescriptor; - DWORD Attributes; - DWORD Priority; - DWORD DefaultPriority; - DWORD StartTime; - DWORD UntilTime; - DWORD Status; - DWORD cJobs; - DWORD AveragePPM; -} PRINTER_INFO_2W, *PPRINTER_INFO_2W, *LPPRINTER_INFO_2W; - - - - - -typedef PRINTER_INFO_2A PRINTER_INFO_2; -typedef PPRINTER_INFO_2A PPRINTER_INFO_2; -typedef LPPRINTER_INFO_2A LPPRINTER_INFO_2; - - -typedef struct _PRINTER_INFO_3 { - PSECURITY_DESCRIPTOR pSecurityDescriptor; -} PRINTER_INFO_3, *PPRINTER_INFO_3, *LPPRINTER_INFO_3; - -typedef struct _PRINTER_INFO_4A { - LPSTR pPrinterName; - LPSTR pServerName; - DWORD Attributes; -} PRINTER_INFO_4A, *PPRINTER_INFO_4A, *LPPRINTER_INFO_4A; -typedef struct _PRINTER_INFO_4W { - LPWSTR pPrinterName; - LPWSTR pServerName; - DWORD Attributes; -} PRINTER_INFO_4W, *PPRINTER_INFO_4W, *LPPRINTER_INFO_4W; - - - - - -typedef PRINTER_INFO_4A PRINTER_INFO_4; -typedef PPRINTER_INFO_4A PPRINTER_INFO_4; -typedef LPPRINTER_INFO_4A LPPRINTER_INFO_4; - - -typedef struct _PRINTER_INFO_5A { - LPSTR pPrinterName; - LPSTR pPortName; - DWORD Attributes; - DWORD DeviceNotSelectedTimeout; - DWORD TransmissionRetryTimeout; -} PRINTER_INFO_5A, *PPRINTER_INFO_5A, *LPPRINTER_INFO_5A; -typedef struct _PRINTER_INFO_5W { - LPWSTR pPrinterName; - LPWSTR pPortName; - DWORD Attributes; - DWORD DeviceNotSelectedTimeout; - DWORD TransmissionRetryTimeout; -} PRINTER_INFO_5W, *PPRINTER_INFO_5W, *LPPRINTER_INFO_5W; - - - - - -typedef PRINTER_INFO_5A PRINTER_INFO_5; -typedef PPRINTER_INFO_5A PPRINTER_INFO_5; -typedef LPPRINTER_INFO_5A LPPRINTER_INFO_5; - - -typedef struct _PRINTER_INFO_6 { - DWORD dwStatus; -} PRINTER_INFO_6, *PPRINTER_INFO_6, *LPPRINTER_INFO_6; - - -typedef struct _PRINTER_INFO_7A { - LPSTR pszObjectGUID; - DWORD dwAction; -} PRINTER_INFO_7A, *PPRINTER_INFO_7A, *LPPRINTER_INFO_7A; -typedef struct _PRINTER_INFO_7W { - LPWSTR pszObjectGUID; - DWORD dwAction; -} PRINTER_INFO_7W, *PPRINTER_INFO_7W, *LPPRINTER_INFO_7W; - - - - - -typedef PRINTER_INFO_7A PRINTER_INFO_7; -typedef PPRINTER_INFO_7A PPRINTER_INFO_7; -typedef LPPRINTER_INFO_7A LPPRINTER_INFO_7; -# 194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -typedef struct _PRINTER_INFO_8A { - LPDEVMODEA pDevMode; -} PRINTER_INFO_8A, *PPRINTER_INFO_8A, *LPPRINTER_INFO_8A; -typedef struct _PRINTER_INFO_8W { - LPDEVMODEW pDevMode; -} PRINTER_INFO_8W, *PPRINTER_INFO_8W, *LPPRINTER_INFO_8W; - - - - - -typedef PRINTER_INFO_8A PRINTER_INFO_8; -typedef PPRINTER_INFO_8A PPRINTER_INFO_8; -typedef LPPRINTER_INFO_8A LPPRINTER_INFO_8; - - -typedef struct _PRINTER_INFO_9A { - LPDEVMODEA pDevMode; -} PRINTER_INFO_9A, *PPRINTER_INFO_9A, *LPPRINTER_INFO_9A; -typedef struct _PRINTER_INFO_9W { - LPDEVMODEW pDevMode; -} PRINTER_INFO_9W, *PPRINTER_INFO_9W, *LPPRINTER_INFO_9W; - - - - - -typedef PRINTER_INFO_9A PRINTER_INFO_9; -typedef PPRINTER_INFO_9A PPRINTER_INFO_9; -typedef LPPRINTER_INFO_9A LPPRINTER_INFO_9; -# 332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -typedef struct _JOB_INFO_1A { - DWORD JobId; - LPSTR pPrinterName; - LPSTR pMachineName; - LPSTR pUserName; - LPSTR pDocument; - LPSTR pDatatype; - LPSTR pStatus; - DWORD Status; - DWORD Priority; - DWORD Position; - DWORD TotalPages; - DWORD PagesPrinted; - SYSTEMTIME Submitted; -} JOB_INFO_1A, *PJOB_INFO_1A, *LPJOB_INFO_1A; -typedef struct _JOB_INFO_1W { - DWORD JobId; - LPWSTR pPrinterName; - LPWSTR pMachineName; - LPWSTR pUserName; - LPWSTR pDocument; - LPWSTR pDatatype; - LPWSTR pStatus; - DWORD Status; - DWORD Priority; - DWORD Position; - DWORD TotalPages; - DWORD PagesPrinted; - SYSTEMTIME Submitted; -} JOB_INFO_1W, *PJOB_INFO_1W, *LPJOB_INFO_1W; - - - - - -typedef JOB_INFO_1A JOB_INFO_1; -typedef PJOB_INFO_1A PJOB_INFO_1; -typedef LPJOB_INFO_1A LPJOB_INFO_1; - - -typedef struct _JOB_INFO_2A { - DWORD JobId; - LPSTR pPrinterName; - LPSTR pMachineName; - LPSTR pUserName; - LPSTR pDocument; - LPSTR pNotifyName; - LPSTR pDatatype; - LPSTR pPrintProcessor; - LPSTR pParameters; - LPSTR pDriverName; - LPDEVMODEA pDevMode; - LPSTR pStatus; - PSECURITY_DESCRIPTOR pSecurityDescriptor; - DWORD Status; - DWORD Priority; - DWORD Position; - DWORD StartTime; - DWORD UntilTime; - DWORD TotalPages; - DWORD Size; - SYSTEMTIME Submitted; - DWORD Time; - DWORD PagesPrinted; -} JOB_INFO_2A, *PJOB_INFO_2A, *LPJOB_INFO_2A; -typedef struct _JOB_INFO_2W { - DWORD JobId; - LPWSTR pPrinterName; - LPWSTR pMachineName; - LPWSTR pUserName; - LPWSTR pDocument; - LPWSTR pNotifyName; - LPWSTR pDatatype; - LPWSTR pPrintProcessor; - LPWSTR pParameters; - LPWSTR pDriverName; - LPDEVMODEW pDevMode; - LPWSTR pStatus; - PSECURITY_DESCRIPTOR pSecurityDescriptor; - DWORD Status; - DWORD Priority; - DWORD Position; - DWORD StartTime; - DWORD UntilTime; - DWORD TotalPages; - DWORD Size; - SYSTEMTIME Submitted; - DWORD Time; - DWORD PagesPrinted; -} JOB_INFO_2W, *PJOB_INFO_2W, *LPJOB_INFO_2W; - - - - - -typedef JOB_INFO_2A JOB_INFO_2; -typedef PJOB_INFO_2A PJOB_INFO_2; -typedef LPJOB_INFO_2A LPJOB_INFO_2; - - -typedef struct _JOB_INFO_3 { - DWORD JobId; - DWORD NextJobId; - DWORD Reserved; -} JOB_INFO_3, *PJOB_INFO_3, *LPJOB_INFO_3; - -typedef struct _JOB_INFO_4A { - DWORD JobId; - LPSTR pPrinterName; - LPSTR pMachineName; - LPSTR pUserName; - LPSTR pDocument; - LPSTR pNotifyName; - LPSTR pDatatype; - LPSTR pPrintProcessor; - LPSTR pParameters; - LPSTR pDriverName; - LPDEVMODEA pDevMode; - LPSTR pStatus; - PSECURITY_DESCRIPTOR pSecurityDescriptor; - DWORD Status; - DWORD Priority; - DWORD Position; - DWORD StartTime; - DWORD UntilTime; - DWORD TotalPages; - DWORD Size; - SYSTEMTIME Submitted; - DWORD Time; - DWORD PagesPrinted; - LONG SizeHigh; -} JOB_INFO_4A, *PJOB_INFO_4A, *LPJOB_INFO_4A; -typedef struct _JOB_INFO_4W { - DWORD JobId; - LPWSTR pPrinterName; - LPWSTR pMachineName; - LPWSTR pUserName; - LPWSTR pDocument; - LPWSTR pNotifyName; - LPWSTR pDatatype; - LPWSTR pPrintProcessor; - LPWSTR pParameters; - LPWSTR pDriverName; - LPDEVMODEW pDevMode; - LPWSTR pStatus; - PSECURITY_DESCRIPTOR pSecurityDescriptor; - DWORD Status; - DWORD Priority; - DWORD Position; - DWORD StartTime; - DWORD UntilTime; - DWORD TotalPages; - DWORD Size; - SYSTEMTIME Submitted; - DWORD Time; - DWORD PagesPrinted; - LONG SizeHigh; -} JOB_INFO_4W, *PJOB_INFO_4W, *LPJOB_INFO_4W; - - - - - -typedef JOB_INFO_4A JOB_INFO_4; -typedef PJOB_INFO_4A PJOB_INFO_4; -typedef LPJOB_INFO_4A LPJOB_INFO_4; -# 541 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -typedef struct _ADDJOB_INFO_1A { - LPSTR Path; - DWORD JobId; -} ADDJOB_INFO_1A, *PADDJOB_INFO_1A, *LPADDJOB_INFO_1A; -typedef struct _ADDJOB_INFO_1W { - LPWSTR Path; - DWORD JobId; -} ADDJOB_INFO_1W, *PADDJOB_INFO_1W, *LPADDJOB_INFO_1W; - - - - - -typedef ADDJOB_INFO_1A ADDJOB_INFO_1; -typedef PADDJOB_INFO_1A PADDJOB_INFO_1; -typedef LPADDJOB_INFO_1A LPADDJOB_INFO_1; - - - -typedef struct _DRIVER_INFO_1A { - LPSTR pName; -} DRIVER_INFO_1A, *PDRIVER_INFO_1A, *LPDRIVER_INFO_1A; -typedef struct _DRIVER_INFO_1W { - LPWSTR pName; -} DRIVER_INFO_1W, *PDRIVER_INFO_1W, *LPDRIVER_INFO_1W; - - - - - -typedef DRIVER_INFO_1A DRIVER_INFO_1; -typedef PDRIVER_INFO_1A PDRIVER_INFO_1; -typedef LPDRIVER_INFO_1A LPDRIVER_INFO_1; - - -typedef struct _DRIVER_INFO_2A { - DWORD cVersion; - LPSTR pName; - LPSTR pEnvironment; - LPSTR pDriverPath; - LPSTR pDataFile; - LPSTR pConfigFile; -} DRIVER_INFO_2A, *PDRIVER_INFO_2A, *LPDRIVER_INFO_2A; -typedef struct _DRIVER_INFO_2W { - DWORD cVersion; - LPWSTR pName; - LPWSTR pEnvironment; - LPWSTR pDriverPath; - LPWSTR pDataFile; - LPWSTR pConfigFile; -} DRIVER_INFO_2W, *PDRIVER_INFO_2W, *LPDRIVER_INFO_2W; - - - - - -typedef DRIVER_INFO_2A DRIVER_INFO_2; -typedef PDRIVER_INFO_2A PDRIVER_INFO_2; -typedef LPDRIVER_INFO_2A LPDRIVER_INFO_2; - - -typedef struct _DRIVER_INFO_3A { - DWORD cVersion; - LPSTR pName; - LPSTR pEnvironment; - LPSTR pDriverPath; - LPSTR pDataFile; - LPSTR pConfigFile; - LPSTR pHelpFile; - LPSTR pDependentFiles; - LPSTR pMonitorName; - LPSTR pDefaultDataType; -} DRIVER_INFO_3A, *PDRIVER_INFO_3A, *LPDRIVER_INFO_3A; -typedef struct _DRIVER_INFO_3W { - DWORD cVersion; - LPWSTR pName; - LPWSTR pEnvironment; - LPWSTR pDriverPath; - LPWSTR pDataFile; - LPWSTR pConfigFile; - LPWSTR pHelpFile; - LPWSTR pDependentFiles; - LPWSTR pMonitorName; - LPWSTR pDefaultDataType; -} DRIVER_INFO_3W, *PDRIVER_INFO_3W, *LPDRIVER_INFO_3W; - - - - - -typedef DRIVER_INFO_3A DRIVER_INFO_3; -typedef PDRIVER_INFO_3A PDRIVER_INFO_3; -typedef LPDRIVER_INFO_3A LPDRIVER_INFO_3; - - -typedef struct _DRIVER_INFO_4A { - DWORD cVersion; - LPSTR pName; - LPSTR pEnvironment; - LPSTR pDriverPath; - LPSTR pDataFile; - LPSTR pConfigFile; - LPSTR pHelpFile; - LPSTR pDependentFiles; - LPSTR pMonitorName; - LPSTR pDefaultDataType; - LPSTR pszzPreviousNames; -} DRIVER_INFO_4A, *PDRIVER_INFO_4A, *LPDRIVER_INFO_4A; -typedef struct _DRIVER_INFO_4W { - DWORD cVersion; - LPWSTR pName; - LPWSTR pEnvironment; - LPWSTR pDriverPath; - LPWSTR pDataFile; - LPWSTR pConfigFile; - LPWSTR pHelpFile; - LPWSTR pDependentFiles; - LPWSTR pMonitorName; - LPWSTR pDefaultDataType; - LPWSTR pszzPreviousNames; -} DRIVER_INFO_4W, *PDRIVER_INFO_4W, *LPDRIVER_INFO_4W; - - - - - -typedef DRIVER_INFO_4A DRIVER_INFO_4; -typedef PDRIVER_INFO_4A PDRIVER_INFO_4; -typedef LPDRIVER_INFO_4A LPDRIVER_INFO_4; - - -typedef struct _DRIVER_INFO_5A { - DWORD cVersion; - LPSTR pName; - LPSTR pEnvironment; - LPSTR pDriverPath; - LPSTR pDataFile; - LPSTR pConfigFile; - DWORD dwDriverAttributes; - DWORD dwConfigVersion; - DWORD dwDriverVersion; -} DRIVER_INFO_5A, *PDRIVER_INFO_5A, *LPDRIVER_INFO_5A; -typedef struct _DRIVER_INFO_5W { - DWORD cVersion; - LPWSTR pName; - LPWSTR pEnvironment; - LPWSTR pDriverPath; - LPWSTR pDataFile; - LPWSTR pConfigFile; - DWORD dwDriverAttributes; - DWORD dwConfigVersion; - DWORD dwDriverVersion; -} DRIVER_INFO_5W, *PDRIVER_INFO_5W, *LPDRIVER_INFO_5W; - - - - - -typedef DRIVER_INFO_5A DRIVER_INFO_5; -typedef PDRIVER_INFO_5A PDRIVER_INFO_5; -typedef LPDRIVER_INFO_5A LPDRIVER_INFO_5; - - -typedef struct _DRIVER_INFO_6A { - DWORD cVersion; - LPSTR pName; - LPSTR pEnvironment; - LPSTR pDriverPath; - LPSTR pDataFile; - LPSTR pConfigFile; - LPSTR pHelpFile; - LPSTR pDependentFiles; - LPSTR pMonitorName; - LPSTR pDefaultDataType; - LPSTR pszzPreviousNames; - FILETIME ftDriverDate; - DWORDLONG dwlDriverVersion; - LPSTR pszMfgName; - LPSTR pszOEMUrl; - LPSTR pszHardwareID; - LPSTR pszProvider; -} DRIVER_INFO_6A, *PDRIVER_INFO_6A, *LPDRIVER_INFO_6A; -typedef struct _DRIVER_INFO_6W { - DWORD cVersion; - LPWSTR pName; - LPWSTR pEnvironment; - LPWSTR pDriverPath; - LPWSTR pDataFile; - LPWSTR pConfigFile; - LPWSTR pHelpFile; - LPWSTR pDependentFiles; - LPWSTR pMonitorName; - LPWSTR pDefaultDataType; - LPWSTR pszzPreviousNames; - FILETIME ftDriverDate; - DWORDLONG dwlDriverVersion; - LPWSTR pszMfgName; - LPWSTR pszOEMUrl; - LPWSTR pszHardwareID; - LPWSTR pszProvider; -} DRIVER_INFO_6W, *PDRIVER_INFO_6W, *LPDRIVER_INFO_6W; - - - - - -typedef DRIVER_INFO_6A DRIVER_INFO_6; -typedef PDRIVER_INFO_6A PDRIVER_INFO_6; -typedef LPDRIVER_INFO_6A LPDRIVER_INFO_6; -# 767 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -typedef struct _DRIVER_INFO_8A { - DWORD cVersion; - LPSTR pName; - LPSTR pEnvironment; - LPSTR pDriverPath; - LPSTR pDataFile; - LPSTR pConfigFile; - LPSTR pHelpFile; - LPSTR pDependentFiles; - LPSTR pMonitorName; - LPSTR pDefaultDataType; - LPSTR pszzPreviousNames; - FILETIME ftDriverDate; - DWORDLONG dwlDriverVersion; - LPSTR pszMfgName; - LPSTR pszOEMUrl; - LPSTR pszHardwareID; - LPSTR pszProvider; - LPSTR pszPrintProcessor; - LPSTR pszVendorSetup; - LPSTR pszzColorProfiles; - LPSTR pszInfPath; - DWORD dwPrinterDriverAttributes; - LPSTR pszzCoreDriverDependencies; - FILETIME ftMinInboxDriverVerDate; - DWORDLONG dwlMinInboxDriverVerVersion; -} DRIVER_INFO_8A, *PDRIVER_INFO_8A, *LPDRIVER_INFO_8A; -typedef struct _DRIVER_INFO_8W { - DWORD cVersion; - LPWSTR pName; - LPWSTR pEnvironment; - LPWSTR pDriverPath; - LPWSTR pDataFile; - LPWSTR pConfigFile; - LPWSTR pHelpFile; - LPWSTR pDependentFiles; - LPWSTR pMonitorName; - LPWSTR pDefaultDataType; - LPWSTR pszzPreviousNames; - FILETIME ftDriverDate; - DWORDLONG dwlDriverVersion; - LPWSTR pszMfgName; - LPWSTR pszOEMUrl; - LPWSTR pszHardwareID; - LPWSTR pszProvider; - LPWSTR pszPrintProcessor; - LPWSTR pszVendorSetup; - LPWSTR pszzColorProfiles; - LPWSTR pszInfPath; - DWORD dwPrinterDriverAttributes; - LPWSTR pszzCoreDriverDependencies; - FILETIME ftMinInboxDriverVerDate; - DWORDLONG dwlMinInboxDriverVerVersion; -} DRIVER_INFO_8W, *PDRIVER_INFO_8W, *LPDRIVER_INFO_8W; - - - - - -typedef DRIVER_INFO_8A DRIVER_INFO_8; -typedef PDRIVER_INFO_8A PDRIVER_INFO_8; -typedef LPDRIVER_INFO_8A LPDRIVER_INFO_8; -# 854 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -typedef struct _DOC_INFO_1A { - LPSTR pDocName; - LPSTR pOutputFile; - LPSTR pDatatype; -} DOC_INFO_1A, *PDOC_INFO_1A, *LPDOC_INFO_1A; -typedef struct _DOC_INFO_1W { - LPWSTR pDocName; - LPWSTR pOutputFile; - LPWSTR pDatatype; -} DOC_INFO_1W, *PDOC_INFO_1W, *LPDOC_INFO_1W; - - - - - -typedef DOC_INFO_1A DOC_INFO_1; -typedef PDOC_INFO_1A PDOC_INFO_1; -typedef LPDOC_INFO_1A LPDOC_INFO_1; - - -typedef struct _FORM_INFO_1A { - DWORD Flags; - LPSTR pName; - SIZEL Size; - RECTL ImageableArea; -} FORM_INFO_1A, *PFORM_INFO_1A, *LPFORM_INFO_1A; -typedef struct _FORM_INFO_1W { - DWORD Flags; - LPWSTR pName; - SIZEL Size; - RECTL ImageableArea; -} FORM_INFO_1W, *PFORM_INFO_1W, *LPFORM_INFO_1W; - - - - - -typedef FORM_INFO_1A FORM_INFO_1; -typedef PFORM_INFO_1A PFORM_INFO_1; -typedef LPFORM_INFO_1A LPFORM_INFO_1; -# 903 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 - typedef struct _FORM_INFO_2A { - DWORD Flags; - LPCSTR pName; - SIZEL Size; - RECTL ImageableArea; - LPCSTR pKeyword; - DWORD StringType; - LPCSTR pMuiDll; - DWORD dwResourceId; - LPCSTR pDisplayName; - LANGID wLangId; - } FORM_INFO_2A, *PFORM_INFO_2A, *LPFORM_INFO_2A; - typedef struct _FORM_INFO_2W { - DWORD Flags; - LPCWSTR pName; - SIZEL Size; - RECTL ImageableArea; - LPCSTR pKeyword; - DWORD StringType; - LPCWSTR pMuiDll; - DWORD dwResourceId; - LPCWSTR pDisplayName; - LANGID wLangId; - } FORM_INFO_2W, *PFORM_INFO_2W, *LPFORM_INFO_2W; - - - - - -typedef FORM_INFO_2A FORM_INFO_2; -typedef PFORM_INFO_2A PFORM_INFO_2; -typedef LPFORM_INFO_2A LPFORM_INFO_2; - - - -typedef struct _DOC_INFO_2A { - LPSTR pDocName; - LPSTR pOutputFile; - LPSTR pDatatype; - DWORD dwMode; - DWORD JobId; -} DOC_INFO_2A, *PDOC_INFO_2A, *LPDOC_INFO_2A; -typedef struct _DOC_INFO_2W { - LPWSTR pDocName; - LPWSTR pOutputFile; - LPWSTR pDatatype; - DWORD dwMode; - DWORD JobId; -} DOC_INFO_2W, *PDOC_INFO_2W, *LPDOC_INFO_2W; - - - - - -typedef DOC_INFO_2A DOC_INFO_2; -typedef PDOC_INFO_2A PDOC_INFO_2; -typedef LPDOC_INFO_2A LPDOC_INFO_2; - - - - - - - -typedef struct _DOC_INFO_3A { - LPSTR pDocName; - LPSTR pOutputFile; - LPSTR pDatatype; - DWORD dwFlags; -} DOC_INFO_3A, *PDOC_INFO_3A, *LPDOC_INFO_3A; -typedef struct _DOC_INFO_3W { - LPWSTR pDocName; - LPWSTR pOutputFile; - LPWSTR pDatatype; - DWORD dwFlags; -} DOC_INFO_3W, *PDOC_INFO_3W, *LPDOC_INFO_3W; - - - - - -typedef DOC_INFO_3A DOC_INFO_3; -typedef PDOC_INFO_3A PDOC_INFO_3; -typedef LPDOC_INFO_3A LPDOC_INFO_3; -# 995 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -typedef struct _PRINTPROCESSOR_INFO_1A { - LPSTR pName; -} PRINTPROCESSOR_INFO_1A, *PPRINTPROCESSOR_INFO_1A, *LPPRINTPROCESSOR_INFO_1A; -typedef struct _PRINTPROCESSOR_INFO_1W { - LPWSTR pName; -} PRINTPROCESSOR_INFO_1W, *PPRINTPROCESSOR_INFO_1W, *LPPRINTPROCESSOR_INFO_1W; - - - - - -typedef PRINTPROCESSOR_INFO_1A PRINTPROCESSOR_INFO_1; -typedef PPRINTPROCESSOR_INFO_1A PPRINTPROCESSOR_INFO_1; -typedef LPPRINTPROCESSOR_INFO_1A LPPRINTPROCESSOR_INFO_1; - - - - typedef struct _PRINTPROCESSOR_CAPS_1 { - DWORD dwLevel; - DWORD dwNupOptions; - DWORD dwPageOrderFlags; - DWORD dwNumberOfCopies; - } PRINTPROCESSOR_CAPS_1, *PPRINTPROCESSOR_CAPS_1; - - - - - - - typedef struct _PRINTPROCESSOR_CAPS_2 { - DWORD dwLevel; - DWORD dwNupOptions; - DWORD dwPageOrderFlags; - DWORD dwNumberOfCopies; - - - DWORD dwDuplexHandlingCaps; - DWORD dwNupDirectionCaps; - DWORD dwNupBorderCaps; - DWORD dwBookletHandlingCaps; - DWORD dwScalingCaps; - - } PRINTPROCESSOR_CAPS_2, *PPRINTPROCESSOR_CAPS_2; -# 1064 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -typedef struct _PORT_INFO_1A { - LPSTR pName; -} PORT_INFO_1A, *PPORT_INFO_1A, *LPPORT_INFO_1A; -typedef struct _PORT_INFO_1W { - LPWSTR pName; -} PORT_INFO_1W, *PPORT_INFO_1W, *LPPORT_INFO_1W; - - - - - -typedef PORT_INFO_1A PORT_INFO_1; -typedef PPORT_INFO_1A PPORT_INFO_1; -typedef LPPORT_INFO_1A LPPORT_INFO_1; - - -typedef struct _PORT_INFO_2A { - LPSTR pPortName; - LPSTR pMonitorName; - LPSTR pDescription; - DWORD fPortType; - DWORD Reserved; -} PORT_INFO_2A, *PPORT_INFO_2A, *LPPORT_INFO_2A; -typedef struct _PORT_INFO_2W { - LPWSTR pPortName; - LPWSTR pMonitorName; - LPWSTR pDescription; - DWORD fPortType; - DWORD Reserved; -} PORT_INFO_2W, *PPORT_INFO_2W, *LPPORT_INFO_2W; - - - - - -typedef PORT_INFO_2A PORT_INFO_2; -typedef PPORT_INFO_2A PPORT_INFO_2; -typedef LPPORT_INFO_2A LPPORT_INFO_2; - - - - - - - -typedef struct _PORT_INFO_3A { - DWORD dwStatus; - LPSTR pszStatus; - DWORD dwSeverity; -} PORT_INFO_3A, *PPORT_INFO_3A, *LPPORT_INFO_3A; -typedef struct _PORT_INFO_3W { - DWORD dwStatus; - LPWSTR pszStatus; - DWORD dwSeverity; -} PORT_INFO_3W, *PPORT_INFO_3W, *LPPORT_INFO_3W; - - - - - -typedef PORT_INFO_3A PORT_INFO_3; -typedef PPORT_INFO_3A PPORT_INFO_3; -typedef LPPORT_INFO_3A LPPORT_INFO_3; -# 1149 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -typedef struct _MONITOR_INFO_1A{ - LPSTR pName; -} MONITOR_INFO_1A, *PMONITOR_INFO_1A, *LPMONITOR_INFO_1A; -typedef struct _MONITOR_INFO_1W{ - LPWSTR pName; -} MONITOR_INFO_1W, *PMONITOR_INFO_1W, *LPMONITOR_INFO_1W; - - - - - -typedef MONITOR_INFO_1A MONITOR_INFO_1; -typedef PMONITOR_INFO_1A PMONITOR_INFO_1; -typedef LPMONITOR_INFO_1A LPMONITOR_INFO_1; - - -typedef struct _MONITOR_INFO_2A{ - LPSTR pName; - LPSTR pEnvironment; - LPSTR pDLLName; -} MONITOR_INFO_2A, *PMONITOR_INFO_2A, *LPMONITOR_INFO_2A; -typedef struct _MONITOR_INFO_2W{ - LPWSTR pName; - LPWSTR pEnvironment; - LPWSTR pDLLName; -} MONITOR_INFO_2W, *PMONITOR_INFO_2W, *LPMONITOR_INFO_2W; - - - - - -typedef MONITOR_INFO_2A MONITOR_INFO_2; -typedef PMONITOR_INFO_2A PMONITOR_INFO_2; -typedef LPMONITOR_INFO_2A LPMONITOR_INFO_2; - - -typedef struct _DATATYPES_INFO_1A{ - LPSTR pName; -} DATATYPES_INFO_1A, *PDATATYPES_INFO_1A, *LPDATATYPES_INFO_1A; -typedef struct _DATATYPES_INFO_1W{ - LPWSTR pName; -} DATATYPES_INFO_1W, *PDATATYPES_INFO_1W, *LPDATATYPES_INFO_1W; - - - - - -typedef DATATYPES_INFO_1A DATATYPES_INFO_1; -typedef PDATATYPES_INFO_1A PDATATYPES_INFO_1; -typedef LPDATATYPES_INFO_1A LPDATATYPES_INFO_1; - - -typedef struct _PRINTER_DEFAULTSA{ - LPSTR pDatatype; - LPDEVMODEA pDevMode; - ACCESS_MASK DesiredAccess; -} PRINTER_DEFAULTSA, *PPRINTER_DEFAULTSA, *LPPRINTER_DEFAULTSA; -typedef struct _PRINTER_DEFAULTSW{ - LPWSTR pDatatype; - LPDEVMODEW pDevMode; - ACCESS_MASK DesiredAccess; -} PRINTER_DEFAULTSW, *PPRINTER_DEFAULTSW, *LPPRINTER_DEFAULTSW; - - - - - -typedef PRINTER_DEFAULTSA PRINTER_DEFAULTS; -typedef PPRINTER_DEFAULTSA PPRINTER_DEFAULTS; -typedef LPPRINTER_DEFAULTSA LPPRINTER_DEFAULTS; - - -typedef struct _PRINTER_ENUM_VALUESA { - LPSTR pValueName; - DWORD cbValueName; - DWORD dwType; - LPBYTE pData; - DWORD cbData; -} PRINTER_ENUM_VALUESA, *PPRINTER_ENUM_VALUESA, *LPPRINTER_ENUM_VALUESA; -typedef struct _PRINTER_ENUM_VALUESW { - LPWSTR pValueName; - DWORD cbValueName; - DWORD dwType; - LPBYTE pData; - DWORD cbData; -} PRINTER_ENUM_VALUESW, *PPRINTER_ENUM_VALUESW, *LPPRINTER_ENUM_VALUESW; - - - - - -typedef PRINTER_ENUM_VALUESA PRINTER_ENUM_VALUES; -typedef PPRINTER_ENUM_VALUESA PPRINTER_ENUM_VALUES; -typedef LPPRINTER_ENUM_VALUESA LPPRINTER_ENUM_VALUES; - - - -BOOL -__stdcall -EnumPrintersA( - DWORD Flags, - LPSTR Name, - DWORD Level, - - LPBYTE pPrinterEnum, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); - -BOOL -__stdcall -EnumPrintersW( - DWORD Flags, - LPWSTR Name, - DWORD Level, - - LPBYTE pPrinterEnum, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); -# 1307 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -HANDLE -__stdcall -GetSpoolFileHandle( - HANDLE hPrinter -); - -HANDLE -__stdcall -CommitSpoolData( - HANDLE hPrinter, - HANDLE hSpoolFile, - DWORD cbCommit -); - -BOOL -__stdcall -CloseSpoolFileHandle( - HANDLE hPrinter, - HANDLE hSpoolFile -); - -BOOL -__stdcall -OpenPrinterA( - LPSTR pPrinterName, - LPHANDLE phPrinter, - LPPRINTER_DEFAULTSA pDefault -); -BOOL -__stdcall -OpenPrinterW( - LPWSTR pPrinterName, - LPHANDLE phPrinter, - LPPRINTER_DEFAULTSW pDefault -); - - - - - - -BOOL -__stdcall -ResetPrinterA( - HANDLE hPrinter, - LPPRINTER_DEFAULTSA pDefault -); -BOOL -__stdcall -ResetPrinterW( - HANDLE hPrinter, - LPPRINTER_DEFAULTSW pDefault -); - - - - - - -BOOL -__stdcall -SetJobA( - HANDLE hPrinter, - DWORD JobId, - DWORD Level, - - - - - - LPBYTE pJob, - DWORD Command -); -BOOL -__stdcall -SetJobW( - HANDLE hPrinter, - DWORD JobId, - DWORD Level, - - - - - - LPBYTE pJob, - DWORD Command -); - - - - - - -BOOL -__stdcall -GetJobA( - HANDLE hPrinter, - DWORD JobId, - DWORD Level, - - LPBYTE pJob, - DWORD cbBuf, - LPDWORD pcbNeeded -); -BOOL -__stdcall -GetJobW( - HANDLE hPrinter, - DWORD JobId, - DWORD Level, - - LPBYTE pJob, - DWORD cbBuf, - LPDWORD pcbNeeded -); - - - - - - -BOOL -__stdcall -EnumJobsA( - HANDLE hPrinter, - DWORD FirstJob, - DWORD NoJobs, - DWORD Level, - - LPBYTE pJob, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); -BOOL -__stdcall -EnumJobsW( - HANDLE hPrinter, - DWORD FirstJob, - DWORD NoJobs, - DWORD Level, - - LPBYTE pJob, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); - - - - - - -HANDLE -__stdcall -AddPrinterA( - LPSTR pName, - - DWORD Level, - - - LPBYTE pPrinter -); -HANDLE -__stdcall -AddPrinterW( - LPWSTR pName, - - DWORD Level, - - - LPBYTE pPrinter -); - - - - - - -BOOL -__stdcall -DeletePrinter( - HANDLE hPrinter -); - -BOOL -__stdcall -SetPrinterA( - HANDLE hPrinter, - DWORD Level, -# 1508 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 - LPBYTE pPrinter, - DWORD Command - ); -BOOL -__stdcall -SetPrinterW( - HANDLE hPrinter, - DWORD Level, -# 1527 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 - LPBYTE pPrinter, - DWORD Command - ); - - - - - - -BOOL -__stdcall -GetPrinterA( - HANDLE hPrinter, - DWORD Level, - - LPBYTE pPrinter, - DWORD cbBuf, - LPDWORD pcbNeeded -); -BOOL -__stdcall -GetPrinterW( - HANDLE hPrinter, - DWORD Level, - - LPBYTE pPrinter, - DWORD cbBuf, - LPDWORD pcbNeeded -); - - - - - - -BOOL -__stdcall -AddPrinterDriverA( - LPSTR pName, - DWORD Level, - LPBYTE pDriverInfo -); -BOOL -__stdcall -AddPrinterDriverW( - LPWSTR pName, - DWORD Level, - LPBYTE pDriverInfo -); - - - - - - -BOOL -__stdcall -AddPrinterDriverExA( - LPSTR pName, - DWORD Level, - - - - - - PBYTE lpbDriverInfo, - DWORD dwFileCopyFlags -); -BOOL -__stdcall -AddPrinterDriverExW( - LPWSTR pName, - DWORD Level, - - - - - - PBYTE lpbDriverInfo, - DWORD dwFileCopyFlags -); - - - - - - -BOOL -__stdcall -EnumPrinterDriversA( - LPSTR pName, - LPSTR pEnvironment, - DWORD Level, - - LPBYTE pDriverInfo, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); -BOOL -__stdcall -EnumPrinterDriversW( - LPWSTR pName, - LPWSTR pEnvironment, - DWORD Level, - - LPBYTE pDriverInfo, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); - - - - - - -BOOL -__stdcall -GetPrinterDriverA( - HANDLE hPrinter, - LPSTR pEnvironment, - DWORD Level, - - LPBYTE pDriverInfo, - DWORD cbBuf, - LPDWORD pcbNeeded -); -BOOL -__stdcall -GetPrinterDriverW( - HANDLE hPrinter, - LPWSTR pEnvironment, - DWORD Level, - - LPBYTE pDriverInfo, - DWORD cbBuf, - LPDWORD pcbNeeded -); - - - - - - -BOOL -__stdcall -GetPrinterDriverDirectoryA( - LPSTR pName, - LPSTR pEnvironment, - DWORD Level, - - LPBYTE pDriverDirectory, - DWORD cbBuf, - LPDWORD pcbNeeded -); -BOOL -__stdcall -GetPrinterDriverDirectoryW( - LPWSTR pName, - LPWSTR pEnvironment, - DWORD Level, - - LPBYTE pDriverDirectory, - DWORD cbBuf, - LPDWORD pcbNeeded -); - - - - - - -BOOL -__stdcall -DeletePrinterDriverA( - LPSTR pName, - LPSTR pEnvironment, - LPSTR pDriverName -); -BOOL -__stdcall -DeletePrinterDriverW( - LPWSTR pName, - LPWSTR pEnvironment, - LPWSTR pDriverName -); - - - - - - -BOOL -__stdcall -DeletePrinterDriverExA( - LPSTR pName, - LPSTR pEnvironment, - LPSTR pDriverName, - DWORD dwDeleteFlag, - DWORD dwVersionFlag -); -BOOL -__stdcall -DeletePrinterDriverExW( - LPWSTR pName, - LPWSTR pEnvironment, - LPWSTR pDriverName, - DWORD dwDeleteFlag, - DWORD dwVersionFlag -); -# 1746 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -BOOL -__stdcall -AddPrintProcessorA( - LPSTR pName, - LPSTR pEnvironment, - LPSTR pPathName, - LPSTR pPrintProcessorName -); -BOOL -__stdcall -AddPrintProcessorW( - LPWSTR pName, - LPWSTR pEnvironment, - LPWSTR pPathName, - LPWSTR pPrintProcessorName -); - - - - - - -BOOL -__stdcall -EnumPrintProcessorsA( - LPSTR pName, - LPSTR pEnvironment, - DWORD Level, - - LPBYTE pPrintProcessorInfo, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); -BOOL -__stdcall -EnumPrintProcessorsW( - LPWSTR pName, - LPWSTR pEnvironment, - DWORD Level, - - LPBYTE pPrintProcessorInfo, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); -# 1800 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -BOOL -__stdcall -GetPrintProcessorDirectoryA( - LPSTR pName, - LPSTR pEnvironment, - DWORD Level, - - LPBYTE pPrintProcessorInfo, - DWORD cbBuf, - LPDWORD pcbNeeded -); -BOOL -__stdcall -GetPrintProcessorDirectoryW( - LPWSTR pName, - LPWSTR pEnvironment, - DWORD Level, - - LPBYTE pPrintProcessorInfo, - DWORD cbBuf, - LPDWORD pcbNeeded -); - - - - - - - -BOOL -__stdcall -EnumPrintProcessorDatatypesA( - LPSTR pName, - LPSTR pPrintProcessorName, - DWORD Level, - - LPBYTE pDatatypes, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); - -BOOL -__stdcall -EnumPrintProcessorDatatypesW( - LPWSTR pName, - LPWSTR pPrintProcessorName, - DWORD Level, - - LPBYTE pDatatypes, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); - - - - - - -BOOL -__stdcall -DeletePrintProcessorA( - LPSTR pName, - LPSTR pEnvironment, - LPSTR pPrintProcessorName -); -BOOL -__stdcall -DeletePrintProcessorW( - LPWSTR pName, - LPWSTR pEnvironment, - LPWSTR pPrintProcessorName -); - - - - - - -DWORD -__stdcall -StartDocPrinterA( - HANDLE hPrinter, - DWORD Level, - - - LPBYTE pDocInfo -); -DWORD -__stdcall -StartDocPrinterW( - HANDLE hPrinter, - DWORD Level, - - - LPBYTE pDocInfo -); - - - - - - -BOOL -__stdcall -StartPagePrinter( - HANDLE hPrinter -); - -BOOL -__stdcall -WritePrinter( - HANDLE hPrinter, - - LPVOID pBuf, - DWORD cbBuf, - LPDWORD pcWritten -); - - -BOOL -__stdcall -FlushPrinter( - HANDLE hPrinter, - - LPVOID pBuf, - DWORD cbBuf, - LPDWORD pcWritten, - DWORD cSleep -); - -BOOL -__stdcall -EndPagePrinter( - HANDLE hPrinter -); - -BOOL -__stdcall -AbortPrinter( - HANDLE hPrinter -); - -BOOL -__stdcall -ReadPrinter( - HANDLE hPrinter, - - LPVOID pBuf, - DWORD cbBuf, - LPDWORD pNoBytesRead -); - -BOOL -__stdcall -EndDocPrinter( - HANDLE hPrinter - ); - -BOOL -__stdcall -AddJobA( - HANDLE hPrinter, - DWORD Level, - - LPBYTE pData, - DWORD cbBuf, - LPDWORD pcbNeeded -); -BOOL -__stdcall -AddJobW( - HANDLE hPrinter, - DWORD Level, - - LPBYTE pData, - DWORD cbBuf, - LPDWORD pcbNeeded -); - - - - - - -BOOL -__stdcall -ScheduleJob( - HANDLE hPrinter, - DWORD JobId -); - -BOOL -__stdcall -PrinterProperties( - HWND hWnd, - HANDLE hPrinter -); - - -LONG -__stdcall -DocumentPropertiesA( - HWND hWnd, - HANDLE hPrinter, - LPSTR pDeviceName, - PDEVMODEA pDevModeOutput, - PDEVMODEA pDevModeInput, - DWORD fMode -); - -LONG -__stdcall -DocumentPropertiesW( - HWND hWnd, - HANDLE hPrinter, - LPWSTR pDeviceName, - PDEVMODEW pDevModeOutput, - PDEVMODEW pDevModeInput, - DWORD fMode -); - - - - - - -LONG -__stdcall -AdvancedDocumentPropertiesA( - HWND hWnd, - HANDLE hPrinter, - LPSTR pDeviceName, - PDEVMODEA pDevModeOutput, - PDEVMODEA pDevModeInput -); -LONG -__stdcall -AdvancedDocumentPropertiesW( - HWND hWnd, - HANDLE hPrinter, - LPWSTR pDeviceName, - PDEVMODEW pDevModeOutput, - PDEVMODEW pDevModeInput -); - - - - - - - - LONG - ExtDeviceMode( - HWND hWnd, - HANDLE hInst, - LPDEVMODEA pDevModeOutput, - LPSTR pDeviceName, - LPSTR pPort, - LPDEVMODEA pDevModeInput, - LPSTR pProfile, - DWORD fMode - ); - - - -DWORD -__stdcall -GetPrinterDataA( - HANDLE hPrinter, - LPSTR pValueName, - LPDWORD pType, - - LPBYTE pData, - DWORD nSize, - LPDWORD pcbNeeded -); -DWORD -__stdcall -GetPrinterDataW( - HANDLE hPrinter, - LPWSTR pValueName, - LPDWORD pType, - - LPBYTE pData, - DWORD nSize, - LPDWORD pcbNeeded -); - - - - - - -DWORD -__stdcall -GetPrinterDataExA( - HANDLE hPrinter, - LPCSTR pKeyName, - LPCSTR pValueName, - LPDWORD pType, - - LPBYTE pData, - DWORD nSize, - LPDWORD pcbNeeded -); -DWORD -__stdcall -GetPrinterDataExW( - HANDLE hPrinter, - LPCWSTR pKeyName, - LPCWSTR pValueName, - LPDWORD pType, - - LPBYTE pData, - DWORD nSize, - LPDWORD pcbNeeded -); - - - - - - -DWORD -__stdcall -EnumPrinterDataA( - HANDLE hPrinter, - DWORD dwIndex, - - LPSTR pValueName, - DWORD cbValueName, - LPDWORD pcbValueName, - LPDWORD pType, - - LPBYTE pData, - DWORD cbData, - - LPDWORD pcbData -); -DWORD -__stdcall -EnumPrinterDataW( - HANDLE hPrinter, - DWORD dwIndex, - - LPWSTR pValueName, - DWORD cbValueName, - LPDWORD pcbValueName, - LPDWORD pType, - - LPBYTE pData, - DWORD cbData, - - LPDWORD pcbData -); - - - - - - -DWORD -__stdcall -EnumPrinterDataExA( - HANDLE hPrinter, - LPCSTR pKeyName, - - LPBYTE pEnumValues, - DWORD cbEnumValues, - LPDWORD pcbEnumValues, - LPDWORD pnEnumValues -); -DWORD -__stdcall -EnumPrinterDataExW( - HANDLE hPrinter, - LPCWSTR pKeyName, - - LPBYTE pEnumValues, - DWORD cbEnumValues, - LPDWORD pcbEnumValues, - LPDWORD pnEnumValues -); - - - - - - -DWORD -__stdcall -EnumPrinterKeyA( - HANDLE hPrinter, - LPCSTR pKeyName, - - LPSTR pSubkey, - DWORD cbSubkey, - LPDWORD pcbSubkey -); -DWORD -__stdcall -EnumPrinterKeyW( - HANDLE hPrinter, - LPCWSTR pKeyName, - - LPWSTR pSubkey, - DWORD cbSubkey, - LPDWORD pcbSubkey -); - - - - - - - -DWORD -__stdcall -SetPrinterDataA( - HANDLE hPrinter, - LPSTR pValueName, - DWORD Type, - - LPBYTE pData, - DWORD cbData -); -DWORD -__stdcall -SetPrinterDataW( - HANDLE hPrinter, - LPWSTR pValueName, - DWORD Type, - - LPBYTE pData, - DWORD cbData -); - - - - - - - -DWORD -__stdcall -SetPrinterDataExA( - HANDLE hPrinter, - LPCSTR pKeyName, - LPCSTR pValueName, - DWORD Type, - - LPBYTE pData, - DWORD cbData -); -DWORD -__stdcall -SetPrinterDataExW( - HANDLE hPrinter, - LPCWSTR pKeyName, - LPCWSTR pValueName, - DWORD Type, - - LPBYTE pData, - DWORD cbData -); -# 2275 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -DWORD -__stdcall -DeletePrinterDataA( - HANDLE hPrinter, - LPSTR pValueName -); -DWORD -__stdcall -DeletePrinterDataW( - HANDLE hPrinter, - LPWSTR pValueName -); - - - - - - - -DWORD -__stdcall -DeletePrinterDataExA( - HANDLE hPrinter, - LPCSTR pKeyName, - LPCSTR pValueName -); -DWORD -__stdcall -DeletePrinterDataExW( - HANDLE hPrinter, - LPCWSTR pKeyName, - LPCWSTR pValueName -); - - - - - - - -DWORD -__stdcall -DeletePrinterKeyA( - HANDLE hPrinter, - LPCSTR pKeyName -); -DWORD -__stdcall -DeletePrinterKeyW( - HANDLE hPrinter, - LPCWSTR pKeyName -); -# 2409 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -typedef struct _PRINTER_NOTIFY_OPTIONS_TYPE { - WORD Type; - WORD Reserved0; - DWORD Reserved1; - DWORD Reserved2; - DWORD Count; - PWORD pFields; -} PRINTER_NOTIFY_OPTIONS_TYPE, *PPRINTER_NOTIFY_OPTIONS_TYPE, *LPPRINTER_NOTIFY_OPTIONS_TYPE; - - - - -typedef struct _PRINTER_NOTIFY_OPTIONS { - DWORD Version; - DWORD Flags; - DWORD Count; - PPRINTER_NOTIFY_OPTIONS_TYPE pTypes; -} PRINTER_NOTIFY_OPTIONS, *PPRINTER_NOTIFY_OPTIONS, *LPPRINTER_NOTIFY_OPTIONS; - - - - - -typedef struct _PRINTER_NOTIFY_INFO_DATA { - WORD Type; - WORD Field; - DWORD Reserved; - DWORD Id; - union { - DWORD adwData[2]; - struct { - DWORD cbBuf; - LPVOID pBuf; - } Data; - } NotifyData; -} PRINTER_NOTIFY_INFO_DATA, *PPRINTER_NOTIFY_INFO_DATA, *LPPRINTER_NOTIFY_INFO_DATA; - -typedef struct _PRINTER_NOTIFY_INFO { - DWORD Version; - DWORD Flags; - DWORD Count; - PRINTER_NOTIFY_INFO_DATA aData[1]; -} PRINTER_NOTIFY_INFO, *PPRINTER_NOTIFY_INFO, *LPPRINTER_NOTIFY_INFO; - - - typedef struct _BINARY_CONTAINER{ - DWORD cbBuf; - LPBYTE pData; - } BINARY_CONTAINER, *PBINARY_CONTAINER; - - - typedef struct _BIDI_DATA{ - DWORD dwBidiType; - union { - BOOL bData; - LONG iData; - LPWSTR sData; - FLOAT fData; - BINARY_CONTAINER biData; - }u; - } BIDI_DATA, *PBIDI_DATA, *LPBIDI_DATA; - - - typedef struct _BIDI_REQUEST_DATA{ - DWORD dwReqNumber; - LPWSTR pSchema; - BIDI_DATA data; - } BIDI_REQUEST_DATA , *PBIDI_REQUEST_DATA , *LPBIDI_REQUEST_DATA; - - - typedef struct _BIDI_REQUEST_CONTAINER{ - DWORD Version; - DWORD Flags; - DWORD Count; - BIDI_REQUEST_DATA aData[ 1 ]; - }BIDI_REQUEST_CONTAINER, *PBIDI_REQUEST_CONTAINER, *LPBIDI_REQUEST_CONTAINER; - - typedef struct _BIDI_RESPONSE_DATA{ - DWORD dwResult; - DWORD dwReqNumber; - LPWSTR pSchema; - BIDI_DATA data; - } BIDI_RESPONSE_DATA, *PBIDI_RESPONSE_DATA, *LPBIDI_RESPONSE_DATA; - - typedef struct _BIDI_RESPONSE_CONTAINER{ - DWORD Version; - DWORD Flags; - DWORD Count; - BIDI_RESPONSE_DATA aData[ 1 ]; - } BIDI_RESPONSE_CONTAINER, *PBIDI_RESPONSE_CONTAINER, *LPBIDI_RESPONSE_CONTAINER; - - - - - - - - typedef enum { - BIDI_NULL = 0, - BIDI_INT = 1, - BIDI_FLOAT = 2, - BIDI_BOOL = 3, - BIDI_STRING = 4, - BIDI_TEXT = 5, - BIDI_ENUM = 6, - BIDI_BLOB = 7 - } BIDI_TYPE; -# 2549 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -DWORD -__stdcall -WaitForPrinterChange( - HANDLE hPrinter, - DWORD Flags -); - -HANDLE -__stdcall -FindFirstPrinterChangeNotification( - HANDLE hPrinter, - DWORD fdwFilter, - DWORD fdwOptions, - PVOID pPrinterNotifyOptions - ); - - -BOOL -__stdcall -FindNextPrinterChangeNotification( - HANDLE hChange, - PDWORD pdwChange, - LPVOID pvReserved, - LPVOID *ppPrinterNotifyInfo - ); - -BOOL -__stdcall -FreePrinterNotifyInfo( - PPRINTER_NOTIFY_INFO pPrinterNotifyInfo - ); - -BOOL -__stdcall -FindClosePrinterChangeNotification( - HANDLE hChange - ); -# 2623 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -DWORD -__stdcall -PrinterMessageBoxA( - HANDLE hPrinter, - DWORD Error, - HWND hWnd, - LPSTR pText, - LPSTR pCaption, - DWORD dwType -); -DWORD -__stdcall -PrinterMessageBoxW( - HANDLE hPrinter, - DWORD Error, - HWND hWnd, - LPWSTR pText, - LPWSTR pCaption, - DWORD dwType -); -# 2659 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -BOOL -__stdcall -ClosePrinter( - HANDLE hPrinter -); - -BOOL -__stdcall -AddFormA( - HANDLE hPrinter, - DWORD Level, - - - LPBYTE pForm -); -BOOL -__stdcall -AddFormW( - HANDLE hPrinter, - DWORD Level, - - - LPBYTE pForm -); - - - - - - -BOOL -__stdcall -DeleteFormA( - HANDLE hPrinter, - LPSTR pFormName -); -BOOL -__stdcall -DeleteFormW( - HANDLE hPrinter, - LPWSTR pFormName -); -# 2709 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -BOOL -__stdcall -GetFormA( - HANDLE hPrinter, - LPSTR pFormName, - DWORD Level, - - LPBYTE pForm, - DWORD cbBuf, - LPDWORD pcbNeeded -); -BOOL -__stdcall -GetFormW( - HANDLE hPrinter, - LPWSTR pFormName, - DWORD Level, - - LPBYTE pForm, - DWORD cbBuf, - LPDWORD pcbNeeded -); -# 2739 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -BOOL -__stdcall -SetFormA( - HANDLE hPrinter, - LPSTR pFormName, - DWORD Level, - - - LPBYTE pForm -); -BOOL -__stdcall -SetFormW( - HANDLE hPrinter, - LPWSTR pFormName, - DWORD Level, - - - LPBYTE pForm -); - - - - - - -BOOL -__stdcall -EnumFormsA( - HANDLE hPrinter, - DWORD Level, - - LPBYTE pForm, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); -BOOL -__stdcall -EnumFormsW( - HANDLE hPrinter, - DWORD Level, - - LPBYTE pForm, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); - - - - - - - -BOOL -__stdcall -EnumMonitorsA( - LPSTR pName, - DWORD Level, - - LPBYTE pMonitor, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); -BOOL -__stdcall -EnumMonitorsW( - LPWSTR pName, - DWORD Level, - - LPBYTE pMonitor, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); -# 2824 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -BOOL -__stdcall -AddMonitorA( - LPSTR pName, - DWORD Level, - - LPBYTE pMonitors -); -BOOL -__stdcall -AddMonitorW( - LPWSTR pName, - DWORD Level, - - LPBYTE pMonitors -); -# 2848 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -BOOL -__stdcall -DeleteMonitorA( - LPSTR pName, - LPSTR pEnvironment, - LPSTR pMonitorName -); -BOOL -__stdcall -DeleteMonitorW( - LPWSTR pName, - LPWSTR pEnvironment, - LPWSTR pMonitorName -); -# 2870 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -BOOL -__stdcall -EnumPortsA( - LPSTR pName, - DWORD Level, - - LPBYTE pPort, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); -BOOL -__stdcall -EnumPortsW( - LPWSTR pName, - DWORD Level, - - LPBYTE pPort, - DWORD cbBuf, - LPDWORD pcbNeeded, - LPDWORD pcReturned -); - - - - - - - -BOOL -__stdcall -AddPortA( - LPSTR pName, - HWND hWnd, - LPSTR pMonitorName -); -BOOL -__stdcall -AddPortW( - LPWSTR pName, - HWND hWnd, - LPWSTR pMonitorName -); -# 2921 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -BOOL -__stdcall -ConfigurePortA( - LPSTR pName, - HWND hWnd, - LPSTR pPortName -); -BOOL -__stdcall -ConfigurePortW( - LPWSTR pName, - HWND hWnd, - LPWSTR pPortName -); - - - - - - -BOOL -__stdcall -DeletePortA( - LPSTR pName, - HWND hWnd, - LPSTR pPortName -); -BOOL -__stdcall -DeletePortW( - LPWSTR pName, - HWND hWnd, - LPWSTR pPortName -); - - - - - - -BOOL -__stdcall -XcvDataW( - HANDLE hXcv, - PCWSTR pszDataName, - - PBYTE pInputData, - DWORD cbInputData, - - PBYTE pOutputData, - DWORD cbOutputData, - PDWORD pcbOutputNeeded, - PDWORD pdwStatus -); - - -BOOL -__stdcall -GetDefaultPrinterA( - LPSTR pszBuffer, - LPDWORD pcchBuffer - ); -BOOL -__stdcall -GetDefaultPrinterW( - LPWSTR pszBuffer, - LPDWORD pcchBuffer - ); - - - - - - -BOOL -__stdcall -SetDefaultPrinterA( - LPCSTR pszPrinter - ); -BOOL -__stdcall -SetDefaultPrinterW( - LPCWSTR pszPrinter - ); - - - - - - - -BOOL -__stdcall -SetPortA( - LPSTR pName, - LPSTR pPortName, - DWORD dwLevel, - - LPBYTE pPortInfo -); -BOOL -__stdcall -SetPortW( - LPWSTR pName, - LPWSTR pPortName, - DWORD dwLevel, - - LPBYTE pPortInfo -); -# 3038 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -BOOL -__stdcall -AddPrinterConnectionA( - LPSTR pName -); -BOOL -__stdcall -AddPrinterConnectionW( - LPWSTR pName -); -# 3056 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -BOOL -__stdcall -DeletePrinterConnectionA( - LPSTR pName -); -BOOL -__stdcall -DeletePrinterConnectionW( - LPWSTR pName -); -# 3074 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -HANDLE -__stdcall -ConnectToPrinterDlg( - HWND hwnd, - DWORD Flags -); - -typedef struct _PROVIDOR_INFO_1A{ - LPSTR pName; - LPSTR pEnvironment; - LPSTR pDLLName; -} PROVIDOR_INFO_1A, *PPROVIDOR_INFO_1A, *LPPROVIDOR_INFO_1A; -typedef struct _PROVIDOR_INFO_1W{ - LPWSTR pName; - LPWSTR pEnvironment; - LPWSTR pDLLName; -} PROVIDOR_INFO_1W, *PPROVIDOR_INFO_1W, *LPPROVIDOR_INFO_1W; - - - - - -typedef PROVIDOR_INFO_1A PROVIDOR_INFO_1; -typedef PPROVIDOR_INFO_1A PPROVIDOR_INFO_1; -typedef LPPROVIDOR_INFO_1A LPPROVIDOR_INFO_1; - - -typedef struct _PROVIDOR_INFO_2A{ - LPSTR pOrder; -} PROVIDOR_INFO_2A, *PPROVIDOR_INFO_2A, *LPPROVIDOR_INFO_2A; -typedef struct _PROVIDOR_INFO_2W{ - LPWSTR pOrder; -} PROVIDOR_INFO_2W, *PPROVIDOR_INFO_2W, *LPPROVIDOR_INFO_2W; - - - - - -typedef PROVIDOR_INFO_2A PROVIDOR_INFO_2; -typedef PPROVIDOR_INFO_2A PPROVIDOR_INFO_2; -typedef LPPROVIDOR_INFO_2A LPPROVIDOR_INFO_2; - - -BOOL -__stdcall -AddPrintProvidorA( - LPSTR pName, - DWORD Level, - - - LPBYTE pProvidorInfo -); -BOOL -__stdcall -AddPrintProvidorW( - LPWSTR pName, - DWORD Level, - - - LPBYTE pProvidorInfo -); - - - - - - -BOOL -__stdcall -DeletePrintProvidorA( - LPSTR pName, - LPSTR pEnvironment, - LPSTR pPrintProvidorName -); -BOOL -__stdcall -DeletePrintProvidorW( - LPWSTR pName, - LPWSTR pEnvironment, - LPWSTR pPrintProvidorName -); - - - - - - - - BOOL - __stdcall - IsValidDevmodeA( - PDEVMODEA pDevmode, - size_t DevmodeSize - ); - BOOL - __stdcall - IsValidDevmodeW( - PDEVMODEW pDevmode, - size_t DevmodeSize - ); -# 3399 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 - typedef enum _PRINTER_OPTION_FLAGS - { - PRINTER_OPTION_NO_CACHE = 1 << 0, - PRINTER_OPTION_CACHE = 1 << 1, - PRINTER_OPTION_CLIENT_CHANGE = 1 << 2, - PRINTER_OPTION_NO_CLIENT_DATA = 1 << 3, - } PRINTER_OPTION_FLAGS; - - - typedef struct _PRINTER_OPTIONSA - { - UINT cbSize; - DWORD dwFlags; - } PRINTER_OPTIONSA, *PPRINTER_OPTIONSA, *LPPRINTER_OPTIONSA; - typedef struct _PRINTER_OPTIONSW - { - UINT cbSize; - DWORD dwFlags; - } PRINTER_OPTIONSW, *PPRINTER_OPTIONSW, *LPPRINTER_OPTIONSW; - - - - - -typedef PRINTER_OPTIONSA PRINTER_OPTIONS; -typedef PPRINTER_OPTIONSA PPRINTER_OPTIONS; -typedef LPPRINTER_OPTIONSA LPPRINTER_OPTIONS; - - - BOOL - __stdcall - OpenPrinter2A( - LPCSTR pPrinterName, - LPHANDLE phPrinter, - PPRINTER_DEFAULTSA pDefault, - PPRINTER_OPTIONSA pOptions - ); - BOOL - __stdcall - OpenPrinter2W( - LPCWSTR pPrinterName, - LPHANDLE phPrinter, - PPRINTER_DEFAULTSW pDefault, - PPRINTER_OPTIONSW pOptions - ); -# 3453 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 - typedef struct _PRINTER_CONNECTION_INFO_1A - { - DWORD dwFlags; - LPSTR pszDriverName; - } PRINTER_CONNECTION_INFO_1A, *PPRINTER_CONNECTION_INFO_1A; - typedef struct _PRINTER_CONNECTION_INFO_1W - { - DWORD dwFlags; - LPWSTR pszDriverName; - } PRINTER_CONNECTION_INFO_1W, *PPRINTER_CONNECTION_INFO_1W; - - - - -typedef PRINTER_CONNECTION_INFO_1A PRINTER_CONNECTION_INFO_1; -typedef PPRINTER_CONNECTION_INFO_1A PPRINTER_CONNECTION_INFO_1; - - - BOOL - __stdcall - AddPrinterConnection2A( - HWND hWnd, - LPCSTR pszName, - DWORD dwLevel, - PVOID pConnectionInfo - ); - BOOL - __stdcall - AddPrinterConnection2W( - HWND hWnd, - LPCWSTR pszName, - DWORD dwLevel, - PVOID pConnectionInfo - ); -# 3500 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 - HRESULT - __stdcall - InstallPrinterDriverFromPackageA( - LPCSTR pszServer, - LPCSTR pszInfPath, - LPCSTR pszDriverName, - LPCSTR pszEnvironment, - DWORD dwFlags - ); - HRESULT - __stdcall - InstallPrinterDriverFromPackageW( - LPCWSTR pszServer, - LPCWSTR pszInfPath, - LPCWSTR pszDriverName, - LPCWSTR pszEnvironment, - DWORD dwFlags - ); -# 3529 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 - HRESULT - __stdcall - UploadPrinterDriverPackageA( - LPCSTR pszServer, - LPCSTR pszInfPath, - LPCSTR pszEnvironment, - DWORD dwFlags, - HWND hwnd, - - LPSTR pszDestInfPath, - PULONG pcchDestInfPath - ); - HRESULT - __stdcall - UploadPrinterDriverPackageW( - LPCWSTR pszServer, - LPCWSTR pszInfPath, - LPCWSTR pszEnvironment, - DWORD dwFlags, - HWND hwnd, - - LPWSTR pszDestInfPath, - PULONG pcchDestInfPath - ); - - - - - - - typedef struct _CORE_PRINTER_DRIVERA - { - GUID CoreDriverGUID; - FILETIME ftDriverDate; - DWORDLONG dwlDriverVersion; - CHAR szPackageID[260]; - } CORE_PRINTER_DRIVERA, *PCORE_PRINTER_DRIVERA; - typedef struct _CORE_PRINTER_DRIVERW - { - GUID CoreDriverGUID; - FILETIME ftDriverDate; - DWORDLONG dwlDriverVersion; - WCHAR szPackageID[260]; - } CORE_PRINTER_DRIVERW, *PCORE_PRINTER_DRIVERW; - - - - -typedef CORE_PRINTER_DRIVERA CORE_PRINTER_DRIVER; -typedef PCORE_PRINTER_DRIVERA PCORE_PRINTER_DRIVER; - - - HRESULT - __stdcall - GetCorePrinterDriversA( - LPCSTR pszServer, - LPCSTR pszEnvironment, - LPCSTR pszzCoreDriverDependencies, - DWORD cCorePrinterDrivers, - PCORE_PRINTER_DRIVERA pCorePrinterDrivers - ); - HRESULT - __stdcall - GetCorePrinterDriversW( - LPCWSTR pszServer, - LPCWSTR pszEnvironment, - LPCWSTR pszzCoreDriverDependencies, - DWORD cCorePrinterDrivers, - PCORE_PRINTER_DRIVERW pCorePrinterDrivers - ); - - - - - - - HRESULT - __stdcall - CorePrinterDriverInstalledA( - LPCSTR pszServer, - LPCSTR pszEnvironment, - GUID CoreDriverGUID, - FILETIME ftDriverDate, - DWORDLONG dwlDriverVersion, - BOOL *pbDriverInstalled - ); - HRESULT - __stdcall - CorePrinterDriverInstalledW( - LPCWSTR pszServer, - LPCWSTR pszEnvironment, - GUID CoreDriverGUID, - FILETIME ftDriverDate, - DWORDLONG dwlDriverVersion, - BOOL *pbDriverInstalled - ); - - - - - - - HRESULT - __stdcall - GetPrinterDriverPackagePathA( - LPCSTR pszServer, - LPCSTR pszEnvironment, - LPCSTR pszLanguage, - LPCSTR pszPackageID, - LPSTR pszDriverPackageCab, - DWORD cchDriverPackageCab, - LPDWORD pcchRequiredSize - ); - HRESULT - __stdcall - GetPrinterDriverPackagePathW( - LPCWSTR pszServer, - LPCWSTR pszEnvironment, - LPCWSTR pszLanguage, - LPCWSTR pszPackageID, - LPWSTR pszDriverPackageCab, - DWORD cchDriverPackageCab, - LPDWORD pcchRequiredSize - ); - - - - - - - HRESULT - __stdcall - DeletePrinterDriverPackageA( - LPCSTR pszServer, - LPCSTR pszInfPath, - LPCSTR pszEnvironment - ); - HRESULT - __stdcall - DeletePrinterDriverPackageW( - LPCWSTR pszServer, - LPCWSTR pszInfPath, - LPCWSTR pszEnvironment - ); - - - - - - - typedef enum - { - kPropertyTypeString = 1, - kPropertyTypeInt32, - kPropertyTypeInt64, - kPropertyTypeByte, - kPropertyTypeTime, - kPropertyTypeDevMode, - kPropertyTypeSD, - kPropertyTypeNotificationReply, - kPropertyTypeNotificationOptions, - kPropertyTypeBuffer - - } EPrintPropertyType; - - typedef enum - { - kAddingDocumentSequence = 0, - kDocumentSequenceAdded = 1, - kAddingFixedDocument = 2, - kFixedDocumentAdded = 3, - kAddingFixedPage = 4, - kFixedPageAdded = 5, - kResourceAdded = 6, - kFontAdded = 7, - kImageAdded = 8, - kXpsDocumentCommitted = 9 - - } EPrintXPSJobProgress; - - typedef enum - { - kJobProduction = 1, - kJobConsumption - - } EPrintXPSJobOperation; - - typedef struct - { - EPrintPropertyType ePropertyType; - union - { - BYTE propertyByte; - PWSTR propertyString; - LONG propertyInt32; - LONGLONG propertyInt64; - struct { - DWORD cbBuf; - LPVOID pBuf; - } propertyBlob; - } value; - - }PrintPropertyValue; - - typedef struct - { - WCHAR* propertyName; - PrintPropertyValue propertyValue; - - }PrintNamedProperty; - - typedef struct - { - ULONG numberOfProperties; - PrintNamedProperty* propertiesCollection; - - }PrintPropertiesCollection; - - HRESULT - __stdcall - ReportJobProcessingProgress( - HANDLE printerHandle, - ULONG jobId, - EPrintXPSJobOperation jobOperation, - EPrintXPSJobProgress jobProgress - ); - - BOOL - __stdcall - GetPrinterDriver2A( - HWND hWnd, - HANDLE hPrinter, - LPSTR pEnvironment, - DWORD Level, - - LPBYTE pDriverInfo, - DWORD cbBuf, - LPDWORD pcbNeeded - ); - BOOL - __stdcall - GetPrinterDriver2W( - HWND hWnd, - HANDLE hPrinter, - LPWSTR pEnvironment, - DWORD Level, - - LPBYTE pDriverInfo, - DWORD cbBuf, - LPDWORD pcbNeeded - ); -# 3791 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -typedef enum -{ - PRINT_EXECUTION_CONTEXT_APPLICATION = 0, - PRINT_EXECUTION_CONTEXT_SPOOLER_SERVICE = 1, - PRINT_EXECUTION_CONTEXT_SPOOLER_ISOLATION_HOST = 2, - PRINT_EXECUTION_CONTEXT_FILTER_PIPELINE = 3, - PRINT_EXECUTION_CONTEXT_WOW64 = 4 -} -PRINT_EXECUTION_CONTEXT; - -typedef struct -{ - PRINT_EXECUTION_CONTEXT context; - DWORD clientAppPID; -} -PRINT_EXECUTION_DATA; - -BOOL -__stdcall -GetPrintExecutionData( - PRINT_EXECUTION_DATA *pData - ); - - - - - - -DWORD -__stdcall -GetJobNamedPropertyValue( - HANDLE hPrinter, - DWORD JobId, - PCWSTR pszName, - PrintPropertyValue *pValue - ); - -void -__stdcall -FreePrintPropertyValue( - PrintPropertyValue *pValue - ); - -void -__stdcall -FreePrintNamedPropertyArray( - DWORD cProperties, - - - PrintNamedProperty **ppProperties - ); - -DWORD -__stdcall -SetJobNamedProperty( - HANDLE hPrinter, - DWORD JobId, - const PrintNamedProperty *pProperty - ); - -DWORD -__stdcall -DeleteJobNamedProperty( - HANDLE hPrinter, - DWORD JobId, - PCWSTR pszName - ); - -DWORD -__stdcall -EnumJobNamedProperties( - HANDLE hPrinter, - DWORD JobId, - DWORD *pcProperties, - - PrintNamedProperty **ppProperties - ); - -HRESULT -__stdcall -GetPrintOutputInfo( - HWND hWnd, - PCWSTR pszPrinter, - HANDLE *phFile, - PWSTR *ppszOutputFile - ); -# 3893 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winspool.h" 3 -#pragma warning(pop) -# 218 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 1 3 - - - - -#pragma warning(push) -#pragma warning(disable: 4001) -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,8) -# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 2 3 -# 37 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 1 3 -# 26 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,8) -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 1 3 -# 43 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,8) -# 44 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 2 3 -# 275 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 1 3 -# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 1 3 -# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 3 -#pragma warning(push) -#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) -#pragma clang diagnostic push -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 3 -#pragma clang diagnostic ignored "-Wdeprecated-declarations" -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 3 -#pragma clang diagnostic ignored "-Wignored-attributes" -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 3 -#pragma clang diagnostic ignored "-Wignored-pragma-optimize" -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 3 -#pragma clang diagnostic ignored "-Wunknown-pragmas" - -#pragma pack(push, 8) -# 58 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 3 - __declspec(allocator) __declspec(restrict) -void* __cdecl _calloc_base( - size_t _Count, - size_t _Size - ); - - - __declspec(allocator) __declspec(restrict) -void* __cdecl calloc( - size_t _Count, - size_t _Size - ); - - - int __cdecl _callnewh( - size_t _Size - ); - - - __declspec(allocator) -void* __cdecl _expand( - void* _Block, - size_t _Size - ); - - -void __cdecl _free_base( - void* _Block - ); - - -void __cdecl free( - void* _Block - ); - - - __declspec(allocator) __declspec(restrict) -void* __cdecl _malloc_base( - size_t _Size - ); - - - __declspec(allocator) __declspec(restrict) -void* __cdecl malloc( - size_t _Size - ); - - - -size_t __cdecl _msize_base( - void* _Block - ) ; - - - -size_t __cdecl _msize( - void* _Block - ); - - - __declspec(allocator) __declspec(restrict) -void* __cdecl _realloc_base( - void* _Block, - size_t _Size - ); - - - __declspec(allocator) __declspec(restrict) -void* __cdecl realloc( - void* _Block, - size_t _Size - ); - - - __declspec(allocator) __declspec(restrict) -void* __cdecl _recalloc_base( - void* _Block, - size_t _Count, - size_t _Size - ); - - - __declspec(allocator) __declspec(restrict) -void* __cdecl _recalloc( - void* _Block, - size_t _Count, - size_t _Size - ); - - -void __cdecl _aligned_free( - void* _Block - ); - - - __declspec(allocator) __declspec(restrict) -void* __cdecl _aligned_malloc( - size_t _Size, - size_t _Alignment - ); - - - __declspec(allocator) __declspec(restrict) -void* __cdecl _aligned_offset_malloc( - size_t _Size, - size_t _Alignment, - size_t _Offset - ); - - - -size_t __cdecl _aligned_msize( - void* _Block, - size_t _Alignment, - size_t _Offset - ); - - - __declspec(allocator) __declspec(restrict) -void* __cdecl _aligned_offset_realloc( - void* _Block, - size_t _Size, - size_t _Alignment, - size_t _Offset - ); - - - __declspec(allocator) __declspec(restrict) -void* __cdecl _aligned_offset_recalloc( - void* _Block, - size_t _Count, - size_t _Size, - size_t _Alignment, - size_t _Offset - ); - - - __declspec(allocator) __declspec(restrict) -void* __cdecl _aligned_realloc( - void* _Block, - size_t _Size, - size_t _Alignment - ); - - - __declspec(allocator) __declspec(restrict) -void* __cdecl _aligned_recalloc( - void* _Block, - size_t _Count, - size_t _Size, - size_t _Alignment - ); -# 232 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_malloc.h" 3 -#pragma pack(pop) -#pragma clang diagnostic pop -#pragma warning(pop) -# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 1 3 -# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 3 -# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stddef.h" 1 3 -# 35 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stddef.h" 3 -typedef long long int ptrdiff_t; -# 46 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stddef.h" 3 -typedef long long unsigned int size_t; -# 74 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stddef.h" 3 -typedef unsigned short wchar_t; -# 109 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stddef.h" 3 -# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include/__stddef_max_align_t.h" 1 3 -# 14 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include/__stddef_max_align_t.h" 3 -typedef double max_align_t; -# 110 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stddef.h" 2 3 -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 2 3 - -#pragma warning(push) -#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) -#pragma clang diagnostic push -# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 3 -#pragma clang diagnostic ignored "-Wdeprecated-declarations" -# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 3 -#pragma clang diagnostic ignored "-Wignored-attributes" -# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 3 -#pragma clang diagnostic ignored "-Wignored-pragma-optimize" -# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 3 -#pragma clang diagnostic ignored "-Wunknown-pragmas" - -#pragma pack(push, 8) - - - typedef int (__cdecl* _CoreCrtSecureSearchSortCompareFunction)(void*, void const*, void const*); - typedef int (__cdecl* _CoreCrtNonSecureSearchSortCompareFunction)(void const*, void const*); - - - - - - void* __cdecl bsearch_s( - void const* _Key, - void const* _Base, - rsize_t _NumOfElements, - rsize_t _SizeOfElements, - _CoreCrtSecureSearchSortCompareFunction _CompareFunction, - void* _Context - ); - - void __cdecl qsort_s( - void* _Base, - rsize_t _NumOfElements, - rsize_t _SizeOfElements, - _CoreCrtSecureSearchSortCompareFunction _CompareFunction, - void* _Context - ); - - - - - - - void* __cdecl bsearch( - void const* _Key, - void const* _Base, - size_t _NumOfElements, - size_t _SizeOfElements, - _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction - ); - - void __cdecl qsort( - void* _Base, - size_t _NumOfElements, - size_t _SizeOfElements, - _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction - ); - - - void* __cdecl _lfind_s( - void const* _Key, - void const* _Base, - unsigned int* _NumOfElements, - size_t _SizeOfElements, - _CoreCrtSecureSearchSortCompareFunction _CompareFunction, - void* _Context - ); - - - void* __cdecl _lfind( - void const* _Key, - void const* _Base, - unsigned int* _NumOfElements, - unsigned int _SizeOfElements, - _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction - ); - - - void* __cdecl _lsearch_s( - void const* _Key, - void* _Base, - unsigned int* _NumOfElements, - size_t _SizeOfElements, - _CoreCrtSecureSearchSortCompareFunction _CompareFunction, - void* _Context - ); - - - void* __cdecl _lsearch( - void const* _Key, - void* _Base, - unsigned int* _NumOfElements, - unsigned int _SizeOfElements, - _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction - ); -# 194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_search.h" 3 - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_lfind" ". See online help for details.")) - void* __cdecl lfind( - void const* _Key, - void const* _Base, - unsigned int* _NumOfElements, - unsigned int _SizeOfElements, - _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_lsearch" ". See online help for details.")) - void* __cdecl lsearch( - void const* _Key, - void* _Base, - unsigned int* _NumOfElements, - unsigned int _SizeOfElements, - _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction - ); - - - - - -#pragma pack(pop) -#pragma clang diagnostic pop -#pragma warning(pop) -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 1 3 -# 13 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 -#pragma warning(push) -#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) -#pragma clang diagnostic push -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 -#pragma clang diagnostic ignored "-Wdeprecated-declarations" -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 -#pragma clang diagnostic ignored "-Wignored-attributes" -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 -#pragma clang diagnostic ignored "-Wignored-pragma-optimize" -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 -#pragma clang diagnostic ignored "-Wunknown-pragmas" - -#pragma pack(push, 8) -# 54 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 - errno_t __cdecl _itow_s( - int _Value, - wchar_t* _Buffer, - size_t _BufferCount, - int _Radix - ); -# 68 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 - __declspec(deprecated("This function or variable may be unsafe. Consider using " "_itow_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _itow(int _Value, wchar_t *_Buffer, int _Radix); -# 77 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 - errno_t __cdecl _ltow_s( - long _Value, - wchar_t* _Buffer, - size_t _BufferCount, - int _Radix - ); -# 91 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 - __declspec(deprecated("This function or variable may be unsafe. Consider using " "_ltow_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _ltow(long _Value, wchar_t *_Buffer, int _Radix); - - - - - - - - errno_t __cdecl _ultow_s( - unsigned long _Value, - wchar_t* _Buffer, - size_t _BufferCount, - int _Radix - ); -# 113 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 - __declspec(deprecated("This function or variable may be unsafe. Consider using " "_ultow_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t* __cdecl _ultow(unsigned long _Value, wchar_t *_Buffer, int _Radix); - - - - - - - - double __cdecl wcstod( - wchar_t const* _String, - wchar_t** _EndPtr - ); - - - double __cdecl _wcstod_l( - wchar_t const* _String, - wchar_t** _EndPtr, - _locale_t _Locale - ); - - - long __cdecl wcstol( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix - ); - - - long __cdecl _wcstol_l( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix, - _locale_t _Locale - ); - - - long long __cdecl wcstoll( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix - ); - - - long long __cdecl _wcstoll_l( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix, - _locale_t _Locale - ); - - - unsigned long __cdecl wcstoul( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix - ); - - - unsigned long __cdecl _wcstoul_l( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix, - _locale_t _Locale - ); - - - unsigned long long __cdecl wcstoull( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix - ); - - - unsigned long long __cdecl _wcstoull_l( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix, - _locale_t _Locale - ); - - - long double __cdecl wcstold( - wchar_t const* _String, - wchar_t** _EndPtr - ); - - - long double __cdecl _wcstold_l( - wchar_t const* _String, - wchar_t** _EndPtr, - _locale_t _Locale - ); - - - float __cdecl wcstof( - wchar_t const* _String, - wchar_t** _EndPtr - ); - - - float __cdecl _wcstof_l( - wchar_t const* _String, - wchar_t** _EndPtr, - _locale_t _Locale - ); - - - double __cdecl _wtof( - wchar_t const* _String - ); - - - double __cdecl _wtof_l( - wchar_t const* _String, - _locale_t _Locale - ); - - - int __cdecl _wtoi( - wchar_t const* _String - ); - - - int __cdecl _wtoi_l( - wchar_t const* _String, - _locale_t _Locale - ); - - - long __cdecl _wtol( - wchar_t const* _String - ); - - - long __cdecl _wtol_l( - wchar_t const* _String, - _locale_t _Locale - ); - - - long long __cdecl _wtoll( - wchar_t const* _String - ); - - - long long __cdecl _wtoll_l( - wchar_t const* _String, - _locale_t _Locale - ); - - - errno_t __cdecl _i64tow_s( - __int64 _Value, - wchar_t* _Buffer, - size_t _BufferCount, - int _Radix - ); - - __declspec(deprecated("This function or variable may be unsafe. Consider using " "_i64tow_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - wchar_t* __cdecl _i64tow( - __int64 _Value, - wchar_t* _Buffer, - int _Radix - ); - - - errno_t __cdecl _ui64tow_s( - unsigned __int64 _Value, - wchar_t* _Buffer, - size_t _BufferCount, - int _Radix - ); - - __declspec(deprecated("This function or variable may be unsafe. Consider using " "_ui64tow_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - wchar_t* __cdecl _ui64tow( - unsigned __int64 _Value, - wchar_t* _Buffer, - int _Radix - ); - - - __int64 __cdecl _wtoi64( - wchar_t const* _String - ); - - - __int64 __cdecl _wtoi64_l( - wchar_t const* _String, - _locale_t _Locale - ); - - - __int64 __cdecl _wcstoi64( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix - ); - - - __int64 __cdecl _wcstoi64_l( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix, - _locale_t _Locale - ); - - - unsigned __int64 __cdecl _wcstoui64( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix - ); - - - unsigned __int64 __cdecl _wcstoui64_l( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix, - _locale_t _Locale - ); - - - - - - - __declspec(allocator) wchar_t* __cdecl _wfullpath( - wchar_t* _Buffer, - wchar_t const* _Path, - size_t _BufferCount - ); - - - - - errno_t __cdecl _wmakepath_s( - wchar_t* _Buffer, - size_t _BufferCount, - wchar_t const* _Drive, - wchar_t const* _Dir, - wchar_t const* _Filename, - wchar_t const* _Ext - ); -# 366 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wmakepath_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) void __cdecl _wmakepath( wchar_t *_Buffer, wchar_t const* _Drive, wchar_t const* _Dir, wchar_t const* _Filename, wchar_t const* _Ext); -# 375 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 - void __cdecl _wperror( - wchar_t const* _ErrorMessage - ); - - __declspec(deprecated("This function or variable may be unsafe. Consider using " "_wsplitpath_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - void __cdecl _wsplitpath( - wchar_t const* _FullPath, - wchar_t* _Drive, - wchar_t* _Dir, - wchar_t* _Filename, - wchar_t* _Ext - ); - - errno_t __cdecl _wsplitpath_s( - wchar_t const* _FullPath, - wchar_t* _Drive, - size_t _DriveCount, - wchar_t* _Dir, - size_t _DirCount, - wchar_t* _Filename, - size_t _FilenameCount, - wchar_t* _Ext, - size_t _ExtCount - ); -# 409 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 - errno_t __cdecl _wdupenv_s( - wchar_t** _Buffer, - size_t* _BufferCount, - wchar_t const* _VarName - ); - - - - __declspec(deprecated("This function or variable may be unsafe. Consider using " "_wdupenv_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - wchar_t* __cdecl _wgetenv( - wchar_t const* _VarName - ); - - - - errno_t __cdecl _wgetenv_s( - size_t* _RequiredCount, - wchar_t* _Buffer, - size_t _BufferCount, - wchar_t const* _VarName - ); -# 440 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 - int __cdecl _wputenv( - wchar_t const* _EnvString - ); - - - errno_t __cdecl _wputenv_s( - wchar_t const* _Name, - wchar_t const* _Value - ); - - errno_t __cdecl _wsearchenv_s( - wchar_t const* _Filename, - wchar_t const* _VarName, - wchar_t* _Buffer, - size_t _BufferCount - ); -# 464 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\corecrt_wstdlib.h" 3 - __declspec(deprecated("This function or variable may be unsafe. Consider using " "_wsearchenv_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) void __cdecl _wsearchenv(wchar_t const* _Filename, wchar_t const* _VarName, wchar_t *_ResultPath); - - - - - - - int __cdecl _wsystem( - wchar_t const* _Command - ); - - - - - -#pragma pack(pop) -#pragma clang diagnostic pop -#pragma warning(pop) -# 16 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 2 3 -# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\limits.h" 1 3 -# 21 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\limits.h" 3 -# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\limits.h" 1 3 -# 13 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\limits.h" 3 -#pragma warning(push) -#pragma warning(disable: 4514 4820) - -#pragma pack(push, 8) -# 76 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\limits.h" 3 -#pragma pack(pop) - -#pragma warning(pop) -# 22 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\limits.h" 2 3 -# 17 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 2 3 - -#pragma warning(push) -#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) -#pragma clang diagnostic push -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -#pragma clang diagnostic ignored "-Wdeprecated-declarations" -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -#pragma clang diagnostic ignored "-Wignored-attributes" -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -#pragma clang diagnostic ignored "-Wignored-pragma-optimize" -# 20 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -#pragma clang diagnostic ignored "-Wunknown-pragmas" - -#pragma pack(push, 8) -# 38 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - void __cdecl _swab( - char* _Buf1, - char* _Buf2, - int _SizeInBytes - ); -# 56 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - __declspec(noreturn) void __cdecl exit( int _Code); - __declspec(noreturn) void __cdecl _exit( int _Code); - __declspec(noreturn) void __cdecl _Exit( int _Code); - __declspec(noreturn) void __cdecl quick_exit( int _Code); - __declspec(noreturn) void __cdecl abort(void); - - - - - - - unsigned int __cdecl _set_abort_behavior( - unsigned int _Flags, - unsigned int _Mask - ); - - - - - - - typedef int (__cdecl* _onexit_t)(void); -# 144 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - int __cdecl atexit(void (__cdecl*)(void)); - _onexit_t __cdecl _onexit( _onexit_t _Func); - - -int __cdecl at_quick_exit(void (__cdecl*)(void)); -# 159 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - typedef void (__cdecl* _purecall_handler)(void); - - - typedef void (__cdecl* _invalid_parameter_handler)( - wchar_t const*, - wchar_t const*, - wchar_t const*, - unsigned int, - uintptr_t - ); - - - _purecall_handler __cdecl _set_purecall_handler( - _purecall_handler _Handler - ); - - _purecall_handler __cdecl _get_purecall_handler(void); - - - _invalid_parameter_handler __cdecl _set_invalid_parameter_handler( - _invalid_parameter_handler _Handler - ); - - _invalid_parameter_handler __cdecl _get_invalid_parameter_handler(void); - - _invalid_parameter_handler __cdecl _set_thread_local_invalid_parameter_handler( - _invalid_parameter_handler _Handler - ); - - _invalid_parameter_handler __cdecl _get_thread_local_invalid_parameter_handler(void); -# 212 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - int __cdecl _set_error_mode( int _Mode); - - - - - int* __cdecl _errno(void); - - - errno_t __cdecl _set_errno( int _Value); - errno_t __cdecl _get_errno( int* _Value); - - unsigned long* __cdecl __doserrno(void); - - - errno_t __cdecl _set_doserrno( unsigned long _Value); - errno_t __cdecl _get_doserrno( unsigned long * _Value); - - - __declspec(deprecated("This function or variable may be unsafe. Consider using " "strerror" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char** __cdecl __sys_errlist(void); - - - __declspec(deprecated("This function or variable may be unsafe. Consider using " "strerror" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) int * __cdecl __sys_nerr(void); - - - void __cdecl perror( char const* _ErrMsg); - - - - - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_get_pgmptr" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char** __cdecl __p__pgmptr (void); -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_get_wpgmptr" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t** __cdecl __p__wpgmptr(void); -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_get_fmode" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) int* __cdecl __p__fmode (void); -# 259 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - errno_t __cdecl _get_pgmptr ( char** _Value); - - - errno_t __cdecl _get_wpgmptr( wchar_t** _Value); - - errno_t __cdecl _set_fmode ( int _Mode ); - - errno_t __cdecl _get_fmode ( int* _PMode); -# 275 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -typedef struct _div_t -{ - int quot; - int rem; -} div_t; - -typedef struct _ldiv_t -{ - long quot; - long rem; -} ldiv_t; - -typedef struct _lldiv_t -{ - long long quot; - long long rem; -} lldiv_t; - - int __cdecl abs ( int _Number); - long __cdecl labs ( long _Number); - long long __cdecl llabs ( long long _Number); - __int64 __cdecl _abs64( __int64 _Number); - - unsigned short __cdecl _byteswap_ushort( unsigned short _Number); - unsigned long __cdecl _byteswap_ulong ( unsigned long _Number); - unsigned __int64 __cdecl _byteswap_uint64( unsigned __int64 _Number); - - div_t __cdecl div ( int _Numerator, int _Denominator); - ldiv_t __cdecl ldiv ( long _Numerator, long _Denominator); - lldiv_t __cdecl lldiv( long long _Numerator, long long _Denominator); - - - -#pragma warning(push) -#pragma warning(disable: 6540) - -unsigned int __cdecl _rotl( - unsigned int _Value, - int _Shift - ); - - -unsigned long __cdecl _lrotl( - unsigned long _Value, - int _Shift - ); - -unsigned __int64 __cdecl _rotl64( - unsigned __int64 _Value, - int _Shift - ); - -unsigned int __cdecl _rotr( - unsigned int _Value, - int _Shift - ); - - -unsigned long __cdecl _lrotr( - unsigned long _Value, - int _Shift - ); - -unsigned __int64 __cdecl _rotr64( - unsigned __int64 _Value, - int _Shift - ); - -#pragma warning(pop) - - - - - - - void __cdecl srand( unsigned int _Seed); - - int __cdecl rand(void); -# 394 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -#pragma pack(push, 4) - typedef struct - { - unsigned char ld[10]; - } _LDOUBLE; -#pragma pack(pop) -# 415 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -typedef struct -{ - double x; -} _CRT_DOUBLE; - -typedef struct -{ - float f; -} _CRT_FLOAT; - - - - - -typedef struct -{ - long double x; -} _LONGDOUBLE; - - - -#pragma pack(push, 4) -typedef struct -{ - unsigned char ld12[12]; -} _LDBL12; -#pragma pack(pop) - - - - - - - - - double __cdecl atof ( char const* _String); - int __cdecl atoi ( char const* _String); - long __cdecl atol ( char const* _String); - long long __cdecl atoll ( char const* _String); - __int64 __cdecl _atoi64( char const* _String); - - double __cdecl _atof_l ( char const* _String, _locale_t _Locale); - int __cdecl _atoi_l ( char const* _String, _locale_t _Locale); - long __cdecl _atol_l ( char const* _String, _locale_t _Locale); - long long __cdecl _atoll_l ( char const* _String, _locale_t _Locale); - __int64 __cdecl _atoi64_l( char const* _String, _locale_t _Locale); - - int __cdecl _atoflt ( _CRT_FLOAT* _Result, char const* _String); - int __cdecl _atodbl ( _CRT_DOUBLE* _Result, char* _String); - int __cdecl _atoldbl( _LDOUBLE* _Result, char* _String); - - - int __cdecl _atoflt_l( - _CRT_FLOAT* _Result, - char const* _String, - _locale_t _Locale - ); - - - int __cdecl _atodbl_l( - _CRT_DOUBLE* _Result, - char* _String, - _locale_t _Locale - ); - - - - int __cdecl _atoldbl_l( - _LDOUBLE* _Result, - char* _String, - _locale_t _Locale - ); - - - float __cdecl strtof( - char const* _String, - char** _EndPtr - ); - - - float __cdecl _strtof_l( - char const* _String, - char** _EndPtr, - _locale_t _Locale - ); - - - double __cdecl strtod( - char const* _String, - char** _EndPtr - ); - - - double __cdecl _strtod_l( - char const* _String, - char** _EndPtr, - _locale_t _Locale - ); - - - long double __cdecl strtold( - char const* _String, - char** _EndPtr - ); - - - long double __cdecl _strtold_l( - char const* _String, - char** _EndPtr, - _locale_t _Locale - ); - - - long __cdecl strtol( - char const* _String, - char** _EndPtr, - int _Radix - ); - - - long __cdecl _strtol_l( - char const* _String, - char** _EndPtr, - int _Radix, - _locale_t _Locale - ); - - - long long __cdecl strtoll( - char const* _String, - char** _EndPtr, - int _Radix - ); - - - long long __cdecl _strtoll_l( - char const* _String, - char** _EndPtr, - int _Radix, - _locale_t _Locale - ); - - - unsigned long __cdecl strtoul( - char const* _String, - char** _EndPtr, - int _Radix - ); - - - unsigned long __cdecl _strtoul_l( - char const* _String, - char** _EndPtr, - int _Radix, - _locale_t _Locale - ); - - - unsigned long long __cdecl strtoull( - char const* _String, - char** _EndPtr, - int _Radix - ); - - - unsigned long long __cdecl _strtoull_l( - char const* _String, - char** _EndPtr, - int _Radix, - _locale_t _Locale - ); - - - __int64 __cdecl _strtoi64( - char const* _String, - char** _EndPtr, - int _Radix - ); - - - __int64 __cdecl _strtoi64_l( - char const* _String, - char** _EndPtr, - int _Radix, - _locale_t _Locale - ); - - - unsigned __int64 __cdecl _strtoui64( - char const* _String, - char** _EndPtr, - int _Radix - ); - - - unsigned __int64 __cdecl _strtoui64_l( - char const* _String, - char** _EndPtr, - int _Radix, - _locale_t _Locale - ); -# 626 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - errno_t __cdecl _itoa_s( - int _Value, - char* _Buffer, - size_t _BufferCount, - int _Radix - ); -# 641 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_itoa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _itoa(int _Value, char *_Buffer, int _Radix); -# 650 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - errno_t __cdecl _ltoa_s( - long _Value, - char* _Buffer, - size_t _BufferCount, - int _Radix - ); -# 664 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_ltoa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _ltoa(long _Value, char *_Buffer, int _Radix); -# 673 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - errno_t __cdecl _ultoa_s( - unsigned long _Value, - char* _Buffer, - size_t _BufferCount, - int _Radix - ); -# 687 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_ultoa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char* __cdecl _ultoa(unsigned long _Value, char *_Buffer, int _Radix); -# 696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - errno_t __cdecl _i64toa_s( - __int64 _Value, - char* _Buffer, - size_t _BufferCount, - int _Radix - ); - - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_i64toa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl _i64toa( - __int64 _Value, - char* _Buffer, - int _Radix - ); - - - - errno_t __cdecl _ui64toa_s( - unsigned __int64 _Value, - char* _Buffer, - size_t _BufferCount, - int _Radix - ); - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_ui64toa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl _ui64toa( - unsigned __int64 _Value, - char* _Buffer, - int _Radix - ); -# 741 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - errno_t __cdecl _ecvt_s( - char* _Buffer, - size_t _BufferCount, - double _Value, - int _DigitCount, - int* _PtDec, - int* _PtSign - ); -# 759 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - __declspec(deprecated("This function or variable may be unsafe. Consider using " "_ecvt_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl _ecvt( - double _Value, - int _DigitCount, - int* _PtDec, - int* _PtSign - ); - - - - errno_t __cdecl _fcvt_s( - char* _Buffer, - size_t _BufferCount, - double _Value, - int _FractionalDigitCount, - int* _PtDec, - int* _PtSign - ); -# 789 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - __declspec(deprecated("This function or variable may be unsafe. Consider using " "_fcvt_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl _fcvt( - double _Value, - int _FractionalDigitCount, - int* _PtDec, - int* _PtSign - ); - - - errno_t __cdecl _gcvt_s( - char* _Buffer, - size_t _BufferCount, - double _Value, - int _DigitCount - ); -# 813 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_gcvt_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl _gcvt( - double _Value, - int _DigitCount, - char* _Buffer - ); -# 852 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - int __cdecl mblen( - char const* _Ch, - size_t _MaxCount - ); - - - int __cdecl _mblen_l( - char const* _Ch, - size_t _MaxCount, - _locale_t _Locale - ); - - - - size_t __cdecl _mbstrlen( - char const* _String - ); - - - - size_t __cdecl _mbstrlen_l( - char const* _String, - _locale_t _Locale - ); - - - - size_t __cdecl _mbstrnlen( - char const* _String, - size_t _MaxCount - ); - - - - size_t __cdecl _mbstrnlen_l( - char const* _String, - size_t _MaxCount, - _locale_t _Locale - ); - - - int __cdecl mbtowc( - wchar_t* _DstCh, - char const* _SrcCh, - size_t _SrcSizeInBytes - ); - - - int __cdecl _mbtowc_l( - wchar_t* _DstCh, - char const* _SrcCh, - size_t _SrcSizeInBytes, - _locale_t _Locale - ); - - - errno_t __cdecl mbstowcs_s( - size_t* _PtNumOfCharConverted, - wchar_t* _DstBuf, - size_t _SizeInWords, - char const* _SrcBuf, - size_t _MaxCount - ); -# 924 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "mbstowcs_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) size_t __cdecl mbstowcs( wchar_t *_Dest, char const* _Source, size_t _MaxCount); - - - - - - - - errno_t __cdecl _mbstowcs_s_l( - size_t* _PtNumOfCharConverted, - wchar_t* _DstBuf, - size_t _SizeInWords, - char const* _SrcBuf, - size_t _MaxCount, - _locale_t _Locale - ); -# 950 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_mbstowcs_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) size_t __cdecl _mbstowcs_l( wchar_t *_Dest, char const* _Source, size_t _MaxCount, _locale_t _Locale); -# 962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "wctomb_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - int __cdecl wctomb( - char* _MbCh, - wchar_t _WCh - ); - -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wctomb_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - int __cdecl _wctomb_l( - char* _MbCh, - wchar_t _WCh, - _locale_t _Locale - ); - - - - - errno_t __cdecl wctomb_s( - int* _SizeConverted, - char* _MbCh, - rsize_t _SizeInBytes, - wchar_t _WCh - ); - - - - - errno_t __cdecl _wctomb_s_l( - int* _SizeConverted, - char* _MbCh, - size_t _SizeInBytes, - wchar_t _WCh, - _locale_t _Locale); - - - errno_t __cdecl wcstombs_s( - size_t* _PtNumOfCharConverted, - char* _Dst, - size_t _DstSizeInBytes, - wchar_t const* _Src, - size_t _MaxCountInBytes - ); -# 1012 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcstombs_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) size_t __cdecl wcstombs( char *_Dest, wchar_t const* _Source, size_t _MaxCount); - - - - - - - - errno_t __cdecl _wcstombs_s_l( - size_t* _PtNumOfCharConverted, - char* _Dst, - size_t _DstSizeInBytes, - wchar_t const* _Src, - size_t _MaxCountInBytes, - _locale_t _Locale - ); -# 1038 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcstombs_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) size_t __cdecl _wcstombs_l( char *_Dest, wchar_t const* _Source, size_t _MaxCount, _locale_t _Locale); -# 1068 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - __declspec(allocator) char* __cdecl _fullpath( - char* _Buffer, - char const* _Path, - size_t _BufferCount - ); - - - - - errno_t __cdecl _makepath_s( - char* _Buffer, - size_t _BufferCount, - char const* _Drive, - char const* _Dir, - char const* _Filename, - char const* _Ext - ); -# 1095 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_makepath_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) void __cdecl _makepath( char *_Buffer, char const* _Drive, char const* _Dir, char const* _Filename, char const* _Ext); -# 1104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -__declspec(deprecated("This function or variable may be unsafe. Consider using " "_splitpath_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - void __cdecl _splitpath( - char const* _FullPath, - char* _Drive, - char* _Dir, - char* _Filename, - char* _Ext - ); - - - errno_t __cdecl _splitpath_s( - char const* _FullPath, - char* _Drive, - size_t _DriveCount, - char* _Dir, - size_t _DirCount, - char* _Filename, - size_t _FilenameCount, - char* _Ext, - size_t _ExtCount - ); - - - - - - - - errno_t __cdecl getenv_s( - size_t* _RequiredCount, - char* _Buffer, - rsize_t _BufferCount, - char const* _VarName - ); - - - - - - - int* __cdecl __p___argc (void); - char*** __cdecl __p___argv (void); - wchar_t*** __cdecl __p___wargv(void); -# 1158 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - char*** __cdecl __p__environ (void); - wchar_t*** __cdecl __p__wenviron(void); -# 1183 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - __declspec(deprecated("This function or variable may be unsafe. Consider using " "_dupenv_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl getenv( - char const* _VarName - ); -# 1201 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - errno_t __cdecl _dupenv_s( - char** _Buffer, - size_t* _BufferCount, - char const* _VarName - ); - - - - - - int __cdecl system( - char const* _Command - ); - - - -#pragma warning(push) -#pragma warning(disable: 6540) - - - int __cdecl _putenv( - char const* _EnvString - ); - - - errno_t __cdecl _putenv_s( - char const* _Name, - char const* _Value - ); - -#pragma warning(pop) - - errno_t __cdecl _searchenv_s( - char const* _Filename, - char const* _VarName, - char* _Buffer, - size_t _BufferCount - ); -# 1247 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 - __declspec(deprecated("This function or variable may be unsafe. Consider using " "_searchenv_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) void __cdecl _searchenv(char const* _Filename, char const* _VarName, char *_Buffer); - - - - - - - - __declspec(deprecated("This function or variable has been superceded by newer library " "or operating system functionality. Consider using " "SetErrorMode" " " "instead. See online help for details.")) - void __cdecl _seterrormode( - int _Mode - ); - - __declspec(deprecated("This function or variable has been superceded by newer library " "or operating system functionality. Consider using " "Beep" " " "instead. See online help for details.")) - void __cdecl _beep( - unsigned _Frequency, - unsigned _Duration - ); - - __declspec(deprecated("This function or variable has been superceded by newer library " "or operating system functionality. Consider using " "Sleep" " " "instead. See online help for details.")) - void __cdecl _sleep( - unsigned long _Duration - ); -# 1289 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\stdlib.h" 3 -#pragma warning(push) -#pragma warning(disable: 4141) - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_ecvt" ". See online help for details.")) __declspec(deprecated("This function or variable may be unsafe. Consider using " "_ecvt_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl ecvt( - double _Value, - int _DigitCount, - int* _PtDec, - int* _PtSign - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_fcvt" ". See online help for details.")) __declspec(deprecated("This function or variable may be unsafe. Consider using " "_fcvt_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl fcvt( - double _Value, - int _FractionalDigitCount, - int* _PtDec, - int* _PtSign - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_gcvt" ". See online help for details.")) __declspec(deprecated("This function or variable may be unsafe. Consider using " "_fcvt_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl gcvt( - double _Value, - int _DigitCount, - char* _DstBuf - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_itoa" ". See online help for details.")) __declspec(deprecated("This function or variable may be unsafe. Consider using " "_itoa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl itoa( - int _Value, - char* _Buffer, - int _Radix - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_ltoa" ". See online help for details.")) __declspec(deprecated("This function or variable may be unsafe. Consider using " "_ltoa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl ltoa( - long _Value, - char* _Buffer, - int _Radix - ); - - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_swab" ". See online help for details.")) - void __cdecl swab( - char* _Buf1, - char* _Buf2, - int _SizeInBytes - ); - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_ultoa" ". See online help for details.")) __declspec(deprecated("This function or variable may be unsafe. Consider using " "_ultoa_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) - char* __cdecl ultoa( - unsigned long _Value, - char* _Buffer, - int _Radix - ); - - - - __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_putenv" ". See online help for details.")) - int __cdecl putenv( - char const* _EnvString - ); - -#pragma warning(pop) - - _onexit_t __cdecl onexit( _onexit_t _Func); - - - - - -#pragma pack(pop) -#pragma clang diagnostic pop -#pragma warning(pop) -# 276 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 2 3 -# 301 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -typedef enum tagREGCLS -{ - REGCLS_SINGLEUSE = 0, - REGCLS_MULTIPLEUSE = 1, - - REGCLS_MULTI_SEPARATE = 2, - - REGCLS_SUSPENDED = 4, - - REGCLS_SURROGATE = 8, - - - - REGCLS_AGILE = 0x10, -# 323 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -} REGCLS; - ; - - -typedef struct IRpcStubBuffer IRpcStubBuffer; -typedef struct IRpcChannelBuffer IRpcChannelBuffer; - - -typedef enum tagCOINITBASE -{ - - - - COINITBASE_MULTITHREADED = 0x0, - -} COINITBASE; - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 1 3 -# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 -typedef struct IUnknown IUnknown; - - - - - - -typedef struct AsyncIUnknown AsyncIUnknown; - - - - - - -typedef struct IClassFactory IClassFactory; -# 96 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0000_v0_0_s_ifspec; - - - - - - - -typedef IUnknown *LPUNKNOWN; -# 174 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 -extern const IID IID_IUnknown; -# 198 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 - typedef struct IUnknownVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IUnknown * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IUnknown * This); - - - ULONG ( __stdcall *Release )( - IUnknown * This); - - - } IUnknownVtbl; - - struct IUnknown - { - struct IUnknownVtbl *lpVtbl; - }; -# 246 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 -HRESULT __stdcall IUnknown_QueryInterface_Proxy( - IUnknown * This, - const IID * const riid, - - void **ppvObject); - - -void __stdcall IUnknown_QueryInterface_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -ULONG __stdcall IUnknown_AddRef_Proxy( - IUnknown * This); - - -void __stdcall IUnknown_AddRef_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - -ULONG __stdcall IUnknown_Release_Proxy( - IUnknown * This); - - -void __stdcall IUnknown_Release_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 296 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0001_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0001_v0_0_s_ifspec; -# 306 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 -extern const IID IID_AsyncIUnknown; -# 334 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 - typedef struct AsyncIUnknownVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - AsyncIUnknown * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - AsyncIUnknown * This); - - - ULONG ( __stdcall *Release )( - AsyncIUnknown * This); - - - HRESULT ( __stdcall *Begin_QueryInterface )( - AsyncIUnknown * This, - const IID * const riid); - - - HRESULT ( __stdcall *Finish_QueryInterface )( - AsyncIUnknown * This, - - void **ppvObject); - - - HRESULT ( __stdcall *Begin_AddRef )( - AsyncIUnknown * This); - - - ULONG ( __stdcall *Finish_AddRef )( - AsyncIUnknown * This); - - - HRESULT ( __stdcall *Begin_Release )( - AsyncIUnknown * This); - - - ULONG ( __stdcall *Finish_Release )( - AsyncIUnknown * This); - - - } AsyncIUnknownVtbl; - - struct AsyncIUnknown - { - struct AsyncIUnknownVtbl *lpVtbl; - }; -# 441 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0002_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0002_v0_0_s_ifspec; - - - - - - - -typedef IClassFactory *LPCLASSFACTORY; - - -extern const IID IID_IClassFactory; -# 477 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 - typedef struct IClassFactoryVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IClassFactory * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IClassFactory * This); - - - ULONG ( __stdcall *Release )( - IClassFactory * This); - - - HRESULT ( __stdcall *CreateInstance )( - IClassFactory * This, - - IUnknown *pUnkOuter, - - const IID * const riid, - - void **ppvObject); - - - HRESULT ( __stdcall *LockServer )( - IClassFactory * This, - BOOL fLock); - - - } IClassFactoryVtbl; - - struct IClassFactory - { - struct IClassFactoryVtbl *lpVtbl; - }; -# 547 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 - HRESULT __stdcall IClassFactory_RemoteCreateInstance_Proxy( - IClassFactory * This, - const IID * const riid, - IUnknown **ppvObject); - - -void __stdcall IClassFactory_RemoteCreateInstance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IClassFactory_RemoteLockServer_Proxy( - IClassFactory * This, - BOOL fLock); - - -void __stdcall IClassFactory_RemoteLockServer_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 583 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\unknwnbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0003_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_unknwnbase_0000_0003_v0_0_s_ifspec; - - - - HRESULT __stdcall IClassFactory_CreateInstance_Proxy( - IClassFactory * This, - - IUnknown *pUnkOuter, - - const IID * const riid, - - void **ppvObject); - - - HRESULT __stdcall IClassFactory_CreateInstance_Stub( - IClassFactory * This, - const IID * const riid, - IUnknown **ppvObject); - - HRESULT __stdcall IClassFactory_LockServer_Proxy( - IClassFactory * This, - BOOL fLock); - - - HRESULT __stdcall IClassFactory_LockServer_Stub( - IClassFactory * This, - BOOL fLock); -# 342 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 2 3 -# 363 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 1 3 -# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef struct IMarshal IMarshal; - - - - - - -typedef struct INoMarshal INoMarshal; - - - - - - -typedef struct IAgileObject IAgileObject; - - - - - - -typedef struct IActivationFilter IActivationFilter; - - - - - - -typedef struct IMarshal2 IMarshal2; - - - - - - -typedef struct IMalloc IMalloc; - - - - - - -typedef struct IStdMarshalInfo IStdMarshalInfo; - - - - - - -typedef struct IExternalConnection IExternalConnection; - - - - - - -typedef struct IMultiQI IMultiQI; - - - - - - -typedef struct AsyncIMultiQI AsyncIMultiQI; - - - - - - -typedef struct IInternalUnknown IInternalUnknown; - - - - - - -typedef struct IEnumUnknown IEnumUnknown; - - - - - - -typedef struct IEnumString IEnumString; - - - - - - -typedef struct ISequentialStream ISequentialStream; - - - - - - -typedef struct IStream IStream; - - - - - - -typedef struct IRpcChannelBuffer IRpcChannelBuffer; - - - - - - -typedef struct IRpcChannelBuffer2 IRpcChannelBuffer2; - - - - - - -typedef struct IAsyncRpcChannelBuffer IAsyncRpcChannelBuffer; - - - - - - -typedef struct IRpcChannelBuffer3 IRpcChannelBuffer3; - - - - - - -typedef struct IRpcSyntaxNegotiate IRpcSyntaxNegotiate; - - - - - - -typedef struct IRpcProxyBuffer IRpcProxyBuffer; - - - - - - -typedef struct IRpcStubBuffer IRpcStubBuffer; - - - - - - -typedef struct IPSFactoryBuffer IPSFactoryBuffer; - - - - - - -typedef struct IChannelHook IChannelHook; - - - - - - -typedef struct IClientSecurity IClientSecurity; - - - - - - -typedef struct IServerSecurity IServerSecurity; - - - - - - -typedef struct IRpcOptions IRpcOptions; - - - - - - -typedef struct IGlobalOptions IGlobalOptions; - - - - - - -typedef struct ISurrogate ISurrogate; - - - - - - -typedef struct IGlobalInterfaceTable IGlobalInterfaceTable; - - - - - - -typedef struct ISynchronize ISynchronize; - - - - - - -typedef struct ISynchronizeHandle ISynchronizeHandle; - - - - - - -typedef struct ISynchronizeEvent ISynchronizeEvent; - - - - - - -typedef struct ISynchronizeContainer ISynchronizeContainer; - - - - - - -typedef struct ISynchronizeMutex ISynchronizeMutex; - - - - - - -typedef struct ICancelMethodCalls ICancelMethodCalls; - - - - - - -typedef struct IAsyncManager IAsyncManager; - - - - - - -typedef struct ICallFactory ICallFactory; - - - - - - -typedef struct IRpcHelper IRpcHelper; - - - - - - -typedef struct IReleaseMarshalBuffers IReleaseMarshalBuffers; - - - - - - -typedef struct IWaitMultiple IWaitMultiple; - - - - - - -typedef struct IAddrTrackingControl IAddrTrackingControl; - - - - - - -typedef struct IAddrExclusionControl IAddrExclusionControl; - - - - - - -typedef struct IPipeByte IPipeByte; - - - - - - -typedef struct AsyncIPipeByte AsyncIPipeByte; - - - - - - -typedef struct IPipeLong IPipeLong; - - - - - - -typedef struct AsyncIPipeLong AsyncIPipeLong; - - - - - - -typedef struct IPipeDouble IPipeDouble; - - - - - - -typedef struct AsyncIPipeDouble AsyncIPipeDouble; - - - - - - -typedef struct IEnumContextProps IEnumContextProps; - - - - - - -typedef struct IContext IContext; - - - - - - -typedef struct IObjContext IObjContext; - - - - - - -typedef struct IComThreadingInfo IComThreadingInfo; - - - - - - -typedef struct IProcessInitControl IProcessInitControl; - - - - - - -typedef struct IFastRundown IFastRundown; - - - - - - -typedef struct IMarshalingStream IMarshalingStream; - - - - - - -typedef struct IAgileReference IAgileReference; - - - - - - -typedef struct IMachineGlobalObjectTable IMachineGlobalObjectTable; - - - - - - -typedef struct ISupportAllowLowerTrustActivation ISupportAllowLowerTrustActivation; -# 499 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -#pragma warning(push) - - - -#pragma warning(disable: 4820) - -#pragma warning(disable: 4201) -# 528 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef struct _COSERVERINFO - { - DWORD dwReserved1; - LPWSTR pwszName; - COAUTHINFO *pAuthInfo; - DWORD dwReserved2; - } COSERVERINFO; - - - - -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0000_v0_0_s_ifspec; - - - - - - - -typedef IMarshal *LPMARSHAL; - - -extern const IID IID_IMarshal; -# 622 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IMarshalVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IMarshal * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IMarshal * This); - - - ULONG ( __stdcall *Release )( - IMarshal * This); - - - HRESULT ( __stdcall *GetUnmarshalClass )( - IMarshal * This, - - const IID * const riid, - - void *pv, - - DWORD dwDestContext, - - void *pvDestContext, - - DWORD mshlflags, - - CLSID *pCid); - - - HRESULT ( __stdcall *GetMarshalSizeMax )( - IMarshal * This, - - const IID * const riid, - - void *pv, - - DWORD dwDestContext, - - void *pvDestContext, - - DWORD mshlflags, - - DWORD *pSize); - - - HRESULT ( __stdcall *MarshalInterface )( - IMarshal * This, - - IStream *pStm, - - const IID * const riid, - - void *pv, - - DWORD dwDestContext, - - void *pvDestContext, - - DWORD mshlflags); - - - HRESULT ( __stdcall *UnmarshalInterface )( - IMarshal * This, - - IStream *pStm, - - const IID * const riid, - - void **ppv); - - - HRESULT ( __stdcall *ReleaseMarshalData )( - IMarshal * This, - - IStream *pStm); - - - HRESULT ( __stdcall *DisconnectObject )( - IMarshal * This, - - DWORD dwReserved); - - - } IMarshalVtbl; - - struct IMarshal - { - struct IMarshalVtbl *lpVtbl; - }; -# 770 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_INoMarshal; -# 783 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct INoMarshalVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - INoMarshal * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - INoMarshal * This); - - - ULONG ( __stdcall *Release )( - INoMarshal * This); - - - } INoMarshalVtbl; - - struct INoMarshal - { - struct INoMarshalVtbl *lpVtbl; - }; -# 843 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IAgileObject; -# 856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IAgileObjectVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IAgileObject * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IAgileObject * This); - - - ULONG ( __stdcall *Release )( - IAgileObject * This); - - - } IAgileObjectVtbl; - - struct IAgileObject - { - struct IAgileObjectVtbl *lpVtbl; - }; -# 918 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0003_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0003_v0_0_s_ifspec; - - - - - - - -typedef -enum tagACTIVATIONTYPE - { - ACTIVATIONTYPE_UNCATEGORIZED = 0, - ACTIVATIONTYPE_FROM_MONIKER = 0x1, - ACTIVATIONTYPE_FROM_DATA = 0x2, - ACTIVATIONTYPE_FROM_STORAGE = 0x4, - ACTIVATIONTYPE_FROM_STREAM = 0x8, - ACTIVATIONTYPE_FROM_FILE = 0x10 - } ACTIVATIONTYPE; - - -extern const IID IID_IActivationFilter; -# 957 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IActivationFilterVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IActivationFilter * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IActivationFilter * This); - - - ULONG ( __stdcall *Release )( - IActivationFilter * This); - - - HRESULT ( __stdcall *HandleActivation )( - IActivationFilter * This, - DWORD dwActivationType, - const IID * const rclsid, - CLSID *pReplacementClsId); - - - } IActivationFilterVtbl; - - struct IActivationFilter - { - struct IActivationFilterVtbl *lpVtbl; - }; -# 1026 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef IMarshal2 *LPMARSHAL2; - - -extern const IID IID_IMarshal2; -# 1042 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IMarshal2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IMarshal2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IMarshal2 * This); - - - ULONG ( __stdcall *Release )( - IMarshal2 * This); - - - HRESULT ( __stdcall *GetUnmarshalClass )( - IMarshal2 * This, - - const IID * const riid, - - void *pv, - - DWORD dwDestContext, - - void *pvDestContext, - - DWORD mshlflags, - - CLSID *pCid); - - - HRESULT ( __stdcall *GetMarshalSizeMax )( - IMarshal2 * This, - - const IID * const riid, - - void *pv, - - DWORD dwDestContext, - - void *pvDestContext, - - DWORD mshlflags, - - DWORD *pSize); - - - HRESULT ( __stdcall *MarshalInterface )( - IMarshal2 * This, - - IStream *pStm, - - const IID * const riid, - - void *pv, - - DWORD dwDestContext, - - void *pvDestContext, - - DWORD mshlflags); - - - HRESULT ( __stdcall *UnmarshalInterface )( - IMarshal2 * This, - - IStream *pStm, - - const IID * const riid, - - void **ppv); - - - HRESULT ( __stdcall *ReleaseMarshalData )( - IMarshal2 * This, - - IStream *pStm); - - - HRESULT ( __stdcall *DisconnectObject )( - IMarshal2 * This, - - DWORD dwReserved); - - - } IMarshal2Vtbl; - - struct IMarshal2 - { - struct IMarshal2Vtbl *lpVtbl; - }; -# 1190 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef IMalloc *LPMALLOC; - - -extern const IID IID_IMalloc; -# 1230 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IMallocVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IMalloc * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IMalloc * This); - - - ULONG ( __stdcall *Release )( - IMalloc * This); - - - void *( __stdcall *Alloc )( - IMalloc * This, - - SIZE_T cb); - - - void *( __stdcall *Realloc )( - IMalloc * This, - - void *pv, - - SIZE_T cb); - - - void ( __stdcall *Free )( - IMalloc * This, - - void *pv); - - - SIZE_T ( __stdcall *GetSize )( - IMalloc * This, - - void *pv); - - - int ( __stdcall *DidAlloc )( - IMalloc * This, - - void *pv); - - - void ( __stdcall *HeapMinimize )( - IMalloc * This); - - - } IMallocVtbl; - - struct IMalloc - { - struct IMallocVtbl *lpVtbl; - }; -# 1343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef IStdMarshalInfo *LPSTDMARSHALINFO; - - -extern const IID IID_IStdMarshalInfo; -# 1367 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IStdMarshalInfoVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IStdMarshalInfo * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IStdMarshalInfo * This); - - - ULONG ( __stdcall *Release )( - IStdMarshalInfo * This); - - - HRESULT ( __stdcall *GetClassForHandler )( - IStdMarshalInfo * This, - - DWORD dwDestContext, - - void *pvDestContext, - - CLSID *pClsid); - - - } IStdMarshalInfoVtbl; - - struct IStdMarshalInfo - { - struct IStdMarshalInfoVtbl *lpVtbl; - }; -# 1439 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef IExternalConnection *LPEXTERNALCONNECTION; - -typedef -enum tagEXTCONN - { - EXTCONN_STRONG = 0x1, - EXTCONN_WEAK = 0x2, - EXTCONN_CALLABLE = 0x4 - } EXTCONN; - - -extern const IID IID_IExternalConnection; -# 1477 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IExternalConnectionVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IExternalConnection * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IExternalConnection * This); - - - ULONG ( __stdcall *Release )( - IExternalConnection * This); - - - DWORD ( __stdcall *AddConnection )( - IExternalConnection * This, - - DWORD extconn, - - DWORD reserved); - - - DWORD ( __stdcall *ReleaseConnection )( - IExternalConnection * This, - - DWORD extconn, - - DWORD reserved, - - BOOL fLastReleaseCloses); - - - } IExternalConnectionVtbl; - - struct IExternalConnection - { - struct IExternalConnectionVtbl *lpVtbl; - }; -# 1557 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef IMultiQI *LPMULTIQI; - - - - - -typedef struct tagMULTI_QI - { - const IID *pIID; - IUnknown *pItf; - HRESULT hr; - } MULTI_QI; - - - -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0008_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0008_v0_0_s_ifspec; -# 1582 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IMultiQI; -# 1601 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IMultiQIVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IMultiQI * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IMultiQI * This); - - - ULONG ( __stdcall *Release )( - IMultiQI * This); - - - HRESULT ( __stdcall *QueryMultipleInterfaces )( - IMultiQI * This, - - ULONG cMQIs, - - MULTI_QI *pMQIs); - - - } IMultiQIVtbl; - - struct IMultiQI - { - struct IMultiQIVtbl *lpVtbl; - }; -# 1672 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_AsyncIMultiQI; -# 1695 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct AsyncIMultiQIVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - AsyncIMultiQI * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - AsyncIMultiQI * This); - - - ULONG ( __stdcall *Release )( - AsyncIMultiQI * This); - - - HRESULT ( __stdcall *Begin_QueryMultipleInterfaces )( - AsyncIMultiQI * This, - - ULONG cMQIs, - - MULTI_QI *pMQIs); - - - HRESULT ( __stdcall *Finish_QueryMultipleInterfaces )( - AsyncIMultiQI * This, - - MULTI_QI *pMQIs); - - - } AsyncIMultiQIVtbl; - - struct AsyncIMultiQI - { - struct AsyncIMultiQIVtbl *lpVtbl; - }; -# 1777 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0009_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0009_v0_0_s_ifspec; -# 1787 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IInternalUnknown; -# 1806 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IInternalUnknownVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternalUnknown * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternalUnknown * This); - - - ULONG ( __stdcall *Release )( - IInternalUnknown * This); - - - HRESULT ( __stdcall *QueryInternalInterface )( - IInternalUnknown * This, - - const IID * const riid, - - void **ppv); - - - } IInternalUnknownVtbl; - - struct IInternalUnknown - { - struct IInternalUnknownVtbl *lpVtbl; - }; -# 1879 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0010_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0010_v0_0_s_ifspec; - - - - - - - -typedef IEnumUnknown *LPENUMUNKNOWN; - - -extern const IID IID_IEnumUnknown; -# 1920 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IEnumUnknownVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IEnumUnknown * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IEnumUnknown * This); - - - ULONG ( __stdcall *Release )( - IEnumUnknown * This); - - - HRESULT ( __stdcall *Next )( - IEnumUnknown * This, - - ULONG celt, - - IUnknown **rgelt, - - ULONG *pceltFetched); - - - HRESULT ( __stdcall *Skip )( - IEnumUnknown * This, - ULONG celt); - - - HRESULT ( __stdcall *Reset )( - IEnumUnknown * This); - - - HRESULT ( __stdcall *Clone )( - IEnumUnknown * This, - IEnumUnknown **ppenum); - - - } IEnumUnknownVtbl; - - struct IEnumUnknown - { - struct IEnumUnknownVtbl *lpVtbl; - }; -# 2005 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - HRESULT __stdcall IEnumUnknown_RemoteNext_Proxy( - IEnumUnknown * This, - ULONG celt, - IUnknown **rgelt, - ULONG *pceltFetched); - - -void __stdcall IEnumUnknown_RemoteNext_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 2029 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef IEnumString *LPENUMSTRING; - - -extern const IID IID_IEnumString; -# 2060 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IEnumStringVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IEnumString * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IEnumString * This); - - - ULONG ( __stdcall *Release )( - IEnumString * This); - - - HRESULT ( __stdcall *Next )( - IEnumString * This, - ULONG celt, - - LPOLESTR *rgelt, - - ULONG *pceltFetched); - - - HRESULT ( __stdcall *Skip )( - IEnumString * This, - ULONG celt); - - - HRESULT ( __stdcall *Reset )( - IEnumString * This); - - - HRESULT ( __stdcall *Clone )( - IEnumString * This, - IEnumString **ppenum); - - - } IEnumStringVtbl; - - struct IEnumString - { - struct IEnumStringVtbl *lpVtbl; - }; -# 2144 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - HRESULT __stdcall IEnumString_RemoteNext_Proxy( - IEnumString * This, - ULONG celt, - LPOLESTR *rgelt, - ULONG *pceltFetched); - - -void __stdcall IEnumString_RemoteNext_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 2169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_ISequentialStream; -# 2198 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct ISequentialStreamVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ISequentialStream * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ISequentialStream * This); - - - ULONG ( __stdcall *Release )( - ISequentialStream * This); - - - HRESULT ( __stdcall *Read )( - ISequentialStream * This, - - void *pv, - - ULONG cb, - - ULONG *pcbRead); - - - HRESULT ( __stdcall *Write )( - ISequentialStream * This, - - const void *pv, - - ULONG cb, - - ULONG *pcbWritten); - - - } ISequentialStreamVtbl; - - struct ISequentialStream - { - struct ISequentialStreamVtbl *lpVtbl; - }; -# 2273 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - HRESULT __stdcall ISequentialStream_RemoteRead_Proxy( - ISequentialStream * This, - byte *pv, - ULONG cb, - ULONG *pcbRead); - - -void __stdcall ISequentialStream_RemoteRead_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ISequentialStream_RemoteWrite_Proxy( - ISequentialStream * This, - const byte *pv, - ULONG cb, - ULONG *pcbWritten); - - -void __stdcall ISequentialStream_RemoteWrite_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 2311 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef IStream *LPSTREAM; - -typedef struct tagSTATSTG - { - LPOLESTR pwcsName; - DWORD type; - ULARGE_INTEGER cbSize; - FILETIME mtime; - FILETIME ctime; - FILETIME atime; - DWORD grfMode; - DWORD grfLocksSupported; - CLSID clsid; - DWORD grfStateBits; - DWORD reserved; - } STATSTG; - -typedef -enum tagSTGTY - { - STGTY_STORAGE = 1, - STGTY_STREAM = 2, - STGTY_LOCKBYTES = 3, - STGTY_PROPERTY = 4 - } STGTY; - -typedef -enum tagSTREAM_SEEK - { - STREAM_SEEK_SET = 0, - STREAM_SEEK_CUR = 1, - STREAM_SEEK_END = 2 - } STREAM_SEEK; - -typedef -enum tagLOCKTYPE - { - LOCK_WRITE = 1, - LOCK_EXCLUSIVE = 2, - LOCK_ONLYONCE = 4 - } LOCKTYPE; - - -extern const IID IID_IStream; -# 2407 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IStreamVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IStream * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IStream * This); - - - ULONG ( __stdcall *Release )( - IStream * This); - - - HRESULT ( __stdcall *Read )( - IStream * This, - - void *pv, - - ULONG cb, - - ULONG *pcbRead); - - - HRESULT ( __stdcall *Write )( - IStream * This, - - const void *pv, - - ULONG cb, - - ULONG *pcbWritten); - - - HRESULT ( __stdcall *Seek )( - IStream * This, - LARGE_INTEGER dlibMove, - DWORD dwOrigin, - - ULARGE_INTEGER *plibNewPosition); - - - HRESULT ( __stdcall *SetSize )( - IStream * This, - ULARGE_INTEGER libNewSize); - - - HRESULT ( __stdcall *CopyTo )( - IStream * This, - - IStream *pstm, - ULARGE_INTEGER cb, - - ULARGE_INTEGER *pcbRead, - - ULARGE_INTEGER *pcbWritten); - - - HRESULT ( __stdcall *Commit )( - IStream * This, - DWORD grfCommitFlags); - - - HRESULT ( __stdcall *Revert )( - IStream * This); - - - HRESULT ( __stdcall *LockRegion )( - IStream * This, - ULARGE_INTEGER libOffset, - ULARGE_INTEGER cb, - DWORD dwLockType); - - - HRESULT ( __stdcall *UnlockRegion )( - IStream * This, - ULARGE_INTEGER libOffset, - ULARGE_INTEGER cb, - DWORD dwLockType); - - - HRESULT ( __stdcall *Stat )( - IStream * This, - STATSTG *pstatstg, - DWORD grfStatFlag); - - - HRESULT ( __stdcall *Clone )( - IStream * This, - IStream **ppstm); - - - } IStreamVtbl; - - struct IStream - { - struct IStreamVtbl *lpVtbl; - }; -# 2568 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - HRESULT __stdcall IStream_RemoteSeek_Proxy( - IStream * This, - LARGE_INTEGER dlibMove, - DWORD dwOrigin, - ULARGE_INTEGER *plibNewPosition); - - -void __stdcall IStream_RemoteSeek_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IStream_RemoteCopyTo_Proxy( - IStream * This, - IStream *pstm, - ULARGE_INTEGER cb, - ULARGE_INTEGER *pcbRead, - ULARGE_INTEGER *pcbWritten); - - -void __stdcall IStream_RemoteCopyTo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 2607 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef ULONG RPCOLEDATAREP; - -typedef struct tagRPCOLEMESSAGE - { - void *reserved1; - RPCOLEDATAREP dataRepresentation; - void *Buffer; - ULONG cbBuffer; - ULONG iMethod; - void *reserved2[ 5 ]; - ULONG rpcFlags; - } RPCOLEMESSAGE; - -typedef RPCOLEMESSAGE *PRPCOLEMESSAGE; - - -extern const IID IID_IRpcChannelBuffer; -# 2660 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IRpcChannelBufferVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IRpcChannelBuffer * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IRpcChannelBuffer * This); - - - ULONG ( __stdcall *Release )( - IRpcChannelBuffer * This); - - - HRESULT ( __stdcall *GetBuffer )( - IRpcChannelBuffer * This, - - RPCOLEMESSAGE *pMessage, - - const IID * const riid); - - - HRESULT ( __stdcall *SendReceive )( - IRpcChannelBuffer * This, - - RPCOLEMESSAGE *pMessage, - - ULONG *pStatus); - - - HRESULT ( __stdcall *FreeBuffer )( - IRpcChannelBuffer * This, - - RPCOLEMESSAGE *pMessage); - - - HRESULT ( __stdcall *GetDestCtx )( - IRpcChannelBuffer * This, - - DWORD *pdwDestContext, - - void **ppvDestContext); - - - HRESULT ( __stdcall *IsConnected )( - IRpcChannelBuffer * This); - - - } IRpcChannelBufferVtbl; - - struct IRpcChannelBuffer - { - struct IRpcChannelBufferVtbl *lpVtbl; - }; -# 2771 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0015_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0015_v0_0_s_ifspec; -# 2781 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IRpcChannelBuffer2; -# 2798 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IRpcChannelBuffer2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IRpcChannelBuffer2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IRpcChannelBuffer2 * This); - - - ULONG ( __stdcall *Release )( - IRpcChannelBuffer2 * This); - - - HRESULT ( __stdcall *GetBuffer )( - IRpcChannelBuffer2 * This, - - RPCOLEMESSAGE *pMessage, - - const IID * const riid); - - - HRESULT ( __stdcall *SendReceive )( - IRpcChannelBuffer2 * This, - - RPCOLEMESSAGE *pMessage, - - ULONG *pStatus); - - - HRESULT ( __stdcall *FreeBuffer )( - IRpcChannelBuffer2 * This, - - RPCOLEMESSAGE *pMessage); - - - HRESULT ( __stdcall *GetDestCtx )( - IRpcChannelBuffer2 * This, - - DWORD *pdwDestContext, - - void **ppvDestContext); - - - HRESULT ( __stdcall *IsConnected )( - IRpcChannelBuffer2 * This); - - - HRESULT ( __stdcall *GetProtocolVersion )( - IRpcChannelBuffer2 * This, - - DWORD *pdwVersion); - - - } IRpcChannelBuffer2Vtbl; - - struct IRpcChannelBuffer2 - { - struct IRpcChannelBuffer2Vtbl *lpVtbl; - }; -# 2917 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IAsyncRpcChannelBuffer; -# 2952 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IAsyncRpcChannelBufferVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IAsyncRpcChannelBuffer * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IAsyncRpcChannelBuffer * This); - - - ULONG ( __stdcall *Release )( - IAsyncRpcChannelBuffer * This); - - - HRESULT ( __stdcall *GetBuffer )( - IAsyncRpcChannelBuffer * This, - - RPCOLEMESSAGE *pMessage, - - const IID * const riid); - - - HRESULT ( __stdcall *SendReceive )( - IAsyncRpcChannelBuffer * This, - - RPCOLEMESSAGE *pMessage, - - ULONG *pStatus); - - - HRESULT ( __stdcall *FreeBuffer )( - IAsyncRpcChannelBuffer * This, - - RPCOLEMESSAGE *pMessage); - - - HRESULT ( __stdcall *GetDestCtx )( - IAsyncRpcChannelBuffer * This, - - DWORD *pdwDestContext, - - void **ppvDestContext); - - - HRESULT ( __stdcall *IsConnected )( - IAsyncRpcChannelBuffer * This); - - - HRESULT ( __stdcall *GetProtocolVersion )( - IAsyncRpcChannelBuffer * This, - - DWORD *pdwVersion); - - - HRESULT ( __stdcall *Send )( - IAsyncRpcChannelBuffer * This, - - RPCOLEMESSAGE *pMsg, - - ISynchronize *pSync, - - ULONG *pulStatus); - - - HRESULT ( __stdcall *Receive )( - IAsyncRpcChannelBuffer * This, - - RPCOLEMESSAGE *pMsg, - - ULONG *pulStatus); - - - HRESULT ( __stdcall *GetDestCtxEx )( - IAsyncRpcChannelBuffer * This, - - RPCOLEMESSAGE *pMsg, - - DWORD *pdwDestContext, - - void **ppvDestContext); - - - } IAsyncRpcChannelBufferVtbl; - - struct IAsyncRpcChannelBuffer - { - struct IAsyncRpcChannelBufferVtbl *lpVtbl; - }; -# 3109 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IRpcChannelBuffer3; -# 3168 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IRpcChannelBuffer3Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IRpcChannelBuffer3 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IRpcChannelBuffer3 * This); - - - ULONG ( __stdcall *Release )( - IRpcChannelBuffer3 * This); - - - HRESULT ( __stdcall *GetBuffer )( - IRpcChannelBuffer3 * This, - - RPCOLEMESSAGE *pMessage, - - const IID * const riid); - - - HRESULT ( __stdcall *SendReceive )( - IRpcChannelBuffer3 * This, - - RPCOLEMESSAGE *pMessage, - - ULONG *pStatus); - - - HRESULT ( __stdcall *FreeBuffer )( - IRpcChannelBuffer3 * This, - - RPCOLEMESSAGE *pMessage); - - - HRESULT ( __stdcall *GetDestCtx )( - IRpcChannelBuffer3 * This, - - DWORD *pdwDestContext, - - void **ppvDestContext); - - - HRESULT ( __stdcall *IsConnected )( - IRpcChannelBuffer3 * This); - - - HRESULT ( __stdcall *GetProtocolVersion )( - IRpcChannelBuffer3 * This, - - DWORD *pdwVersion); - - - HRESULT ( __stdcall *Send )( - IRpcChannelBuffer3 * This, - - RPCOLEMESSAGE *pMsg, - - ULONG *pulStatus); - - - HRESULT ( __stdcall *Receive )( - IRpcChannelBuffer3 * This, - - RPCOLEMESSAGE *pMsg, - - ULONG ulSize, - - ULONG *pulStatus); - - - HRESULT ( __stdcall *Cancel )( - IRpcChannelBuffer3 * This, - - RPCOLEMESSAGE *pMsg); - - - HRESULT ( __stdcall *GetCallContext )( - IRpcChannelBuffer3 * This, - - RPCOLEMESSAGE *pMsg, - - const IID * const riid, - - void **pInterface); - - - HRESULT ( __stdcall *GetDestCtxEx )( - IRpcChannelBuffer3 * This, - - RPCOLEMESSAGE *pMsg, - - DWORD *pdwDestContext, - - void **ppvDestContext); - - - HRESULT ( __stdcall *GetState )( - IRpcChannelBuffer3 * This, - - RPCOLEMESSAGE *pMsg, - - DWORD *pState); - - - HRESULT ( __stdcall *RegisterAsync )( - IRpcChannelBuffer3 * This, - - RPCOLEMESSAGE *pMsg, - - IAsyncManager *pAsyncMgr); - - - } IRpcChannelBuffer3Vtbl; - - struct IRpcChannelBuffer3 - { - struct IRpcChannelBuffer3Vtbl *lpVtbl; - }; -# 3369 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IRpcSyntaxNegotiate; -# 3386 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IRpcSyntaxNegotiateVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IRpcSyntaxNegotiate * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IRpcSyntaxNegotiate * This); - - - ULONG ( __stdcall *Release )( - IRpcSyntaxNegotiate * This); - - - HRESULT ( __stdcall *NegotiateSyntax )( - IRpcSyntaxNegotiate * This, - - RPCOLEMESSAGE *pMsg); - - - } IRpcSyntaxNegotiateVtbl; - - struct IRpcSyntaxNegotiate - { - struct IRpcSyntaxNegotiateVtbl *lpVtbl; - }; -# 3455 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IRpcProxyBuffer; -# 3474 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IRpcProxyBufferVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IRpcProxyBuffer * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IRpcProxyBuffer * This); - - - ULONG ( __stdcall *Release )( - IRpcProxyBuffer * This); - - - HRESULT ( __stdcall *Connect )( - IRpcProxyBuffer * This, - - IRpcChannelBuffer *pRpcChannelBuffer); - - - void ( __stdcall *Disconnect )( - IRpcProxyBuffer * This); - - - } IRpcProxyBufferVtbl; - - struct IRpcProxyBuffer - { - struct IRpcProxyBufferVtbl *lpVtbl; - }; -# 3552 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0020_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0020_v0_0_s_ifspec; -# 3562 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IRpcStubBuffer; -# 3601 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IRpcStubBufferVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IRpcStubBuffer * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IRpcStubBuffer * This); - - - ULONG ( __stdcall *Release )( - IRpcStubBuffer * This); - - - HRESULT ( __stdcall *Connect )( - IRpcStubBuffer * This, - - IUnknown *pUnkServer); - - - void ( __stdcall *Disconnect )( - IRpcStubBuffer * This); - - - HRESULT ( __stdcall *Invoke )( - IRpcStubBuffer * This, - - RPCOLEMESSAGE *_prpcmsg, - - IRpcChannelBuffer *_pRpcChannelBuffer); - - - IRpcStubBuffer *( __stdcall *IsIIDSupported )( - IRpcStubBuffer * This, - - const IID * const riid); - - - ULONG ( __stdcall *CountRefs )( - IRpcStubBuffer * This); - - - HRESULT ( __stdcall *DebugServerQueryInterface )( - IRpcStubBuffer * This, - - void **ppv); - - - void ( __stdcall *DebugServerRelease )( - IRpcStubBuffer * This, - - void *pv); - - - } IRpcStubBufferVtbl; - - struct IRpcStubBuffer - { - struct IRpcStubBufferVtbl *lpVtbl; - }; -# 3722 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IPSFactoryBuffer; -# 3753 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IPSFactoryBufferVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IPSFactoryBuffer * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IPSFactoryBuffer * This); - - - ULONG ( __stdcall *Release )( - IPSFactoryBuffer * This); - - - HRESULT ( __stdcall *CreateProxy )( - IPSFactoryBuffer * This, - - IUnknown *pUnkOuter, - - const IID * const riid, - - IRpcProxyBuffer **ppProxy, - - void **ppv); - - - HRESULT ( __stdcall *CreateStub )( - IPSFactoryBuffer * This, - - const IID * const riid, - - IUnknown *pUnkServer, - - IRpcStubBuffer **ppStub); - - - } IPSFactoryBufferVtbl; - - struct IPSFactoryBuffer - { - struct IPSFactoryBufferVtbl *lpVtbl; - }; -# 3843 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef struct SChannelHookCallInfo - { - IID iid; - DWORD cbSize; - GUID uCausality; - DWORD dwServerPid; - DWORD iMethod; - void *pObject; - } SChannelHookCallInfo; - - - -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0022_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0022_v0_0_s_ifspec; -# 3865 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IChannelHook; -# 3944 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IChannelHookVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IChannelHook * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IChannelHook * This); - - - ULONG ( __stdcall *Release )( - IChannelHook * This); - - - void ( __stdcall *ClientGetSize )( - IChannelHook * This, - - const GUID * const uExtent, - - const IID * const riid, - - ULONG *pDataSize); - - - void ( __stdcall *ClientFillBuffer )( - IChannelHook * This, - - const GUID * const uExtent, - - const IID * const riid, - - ULONG *pDataSize, - - void *pDataBuffer); - - - void ( __stdcall *ClientNotify )( - IChannelHook * This, - - const GUID * const uExtent, - - const IID * const riid, - - ULONG cbDataSize, - - void *pDataBuffer, - - DWORD lDataRep, - - HRESULT hrFault); - - - void ( __stdcall *ServerNotify )( - IChannelHook * This, - - const GUID * const uExtent, - - const IID * const riid, - - ULONG cbDataSize, - - void *pDataBuffer, - - DWORD lDataRep); - - - void ( __stdcall *ServerGetSize )( - IChannelHook * This, - - const GUID * const uExtent, - - const IID * const riid, - - HRESULT hrFault, - - ULONG *pDataSize); - - - void ( __stdcall *ServerFillBuffer )( - IChannelHook * This, - - const GUID * const uExtent, - - const IID * const riid, - - ULONG *pDataSize, - - void *pDataBuffer, - - HRESULT hrFault); - - - } IChannelHookVtbl; - - struct IChannelHook - { - struct IChannelHookVtbl *lpVtbl; - }; -# 4105 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0023_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0023_v0_0_s_ifspec; - - - - - - - -typedef struct tagSOLE_AUTHENTICATION_SERVICE - { - DWORD dwAuthnSvc; - DWORD dwAuthzSvc; - OLECHAR *pPrincipalName; - HRESULT hr; - } SOLE_AUTHENTICATION_SERVICE; - -typedef SOLE_AUTHENTICATION_SERVICE *PSOLE_AUTHENTICATION_SERVICE; - -typedef -enum tagEOLE_AUTHENTICATION_CAPABILITIES - { - EOAC_NONE = 0, - EOAC_MUTUAL_AUTH = 0x1, - EOAC_STATIC_CLOAKING = 0x20, - EOAC_DYNAMIC_CLOAKING = 0x40, - EOAC_ANY_AUTHORITY = 0x80, - EOAC_MAKE_FULLSIC = 0x100, - EOAC_DEFAULT = 0x800, - EOAC_SECURE_REFS = 0x2, - EOAC_ACCESS_CONTROL = 0x4, - EOAC_APPID = 0x8, - EOAC_DYNAMIC = 0x10, - EOAC_REQUIRE_FULLSIC = 0x200, - EOAC_AUTO_IMPERSONATE = 0x400, - EOAC_DISABLE_AAA = 0x1000, - EOAC_NO_CUSTOM_MARSHAL = 0x2000, - EOAC_RESERVED1 = 0x4000 - } EOLE_AUTHENTICATION_CAPABILITIES; - - - - - -typedef struct tagSOLE_AUTHENTICATION_INFO - { - DWORD dwAuthnSvc; - DWORD dwAuthzSvc; - void *pAuthInfo; - } SOLE_AUTHENTICATION_INFO; - -typedef struct tagSOLE_AUTHENTICATION_INFO *PSOLE_AUTHENTICATION_INFO; - -typedef struct tagSOLE_AUTHENTICATION_LIST - { - DWORD cAuthInfo; - SOLE_AUTHENTICATION_INFO *aAuthInfo; - } SOLE_AUTHENTICATION_LIST; - -typedef struct tagSOLE_AUTHENTICATION_LIST *PSOLE_AUTHENTICATION_LIST; - - -extern const IID IID_IClientSecurity; -# 4222 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IClientSecurityVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IClientSecurity * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IClientSecurity * This); - - - ULONG ( __stdcall *Release )( - IClientSecurity * This); - - - HRESULT ( __stdcall *QueryBlanket )( - IClientSecurity * This, - - IUnknown *pProxy, - - DWORD *pAuthnSvc, - - DWORD *pAuthzSvc, - - OLECHAR **pServerPrincName, - - DWORD *pAuthnLevel, - - DWORD *pImpLevel, - - void **pAuthInfo, - - DWORD *pCapabilites); - - - HRESULT ( __stdcall *SetBlanket )( - IClientSecurity * This, - - IUnknown *pProxy, - - DWORD dwAuthnSvc, - - DWORD dwAuthzSvc, - - OLECHAR *pServerPrincName, - - DWORD dwAuthnLevel, - - DWORD dwImpLevel, - - void *pAuthInfo, - - DWORD dwCapabilities); - - - HRESULT ( __stdcall *CopyProxy )( - IClientSecurity * This, - - IUnknown *pProxy, - - IUnknown **ppCopy); - - - } IClientSecurityVtbl; - - struct IClientSecurity - { - struct IClientSecurityVtbl *lpVtbl; - }; -# 4341 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0024_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0024_v0_0_s_ifspec; -# 4351 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IServerSecurity; -# 4386 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IServerSecurityVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IServerSecurity * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IServerSecurity * This); - - - ULONG ( __stdcall *Release )( - IServerSecurity * This); - - - HRESULT ( __stdcall *QueryBlanket )( - IServerSecurity * This, - - DWORD *pAuthnSvc, - - DWORD *pAuthzSvc, - - OLECHAR **pServerPrincName, - - DWORD *pAuthnLevel, - - DWORD *pImpLevel, - - void **pPrivs, - - DWORD *pCapabilities); - - - HRESULT ( __stdcall *ImpersonateClient )( - IServerSecurity * This); - - - HRESULT ( __stdcall *RevertToSelf )( - IServerSecurity * This); - - - BOOL ( __stdcall *IsImpersonating )( - IServerSecurity * This); - - - } IServerSecurityVtbl; - - struct IServerSecurity - { - struct IServerSecurityVtbl *lpVtbl; - }; -# 4484 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef -enum tagRPCOPT_PROPERTIES - { - COMBND_RPCTIMEOUT = 0x1, - COMBND_SERVER_LOCALITY = 0x2, - COMBND_RESERVED1 = 0x4, - COMBND_RESERVED2 = 0x5, - COMBND_RESERVED3 = 0x8, - COMBND_RESERVED4 = 0x10 - } RPCOPT_PROPERTIES; - -typedef -enum tagRPCOPT_SERVER_LOCALITY_VALUES - { - SERVER_LOCALITY_PROCESS_LOCAL = 0, - SERVER_LOCALITY_MACHINE_LOCAL = 1, - SERVER_LOCALITY_REMOTE = 2 - } RPCOPT_SERVER_LOCALITY_VALUES; - - - -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0025_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0025_v0_0_s_ifspec; -# 4515 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IRpcOptions; -# 4544 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IRpcOptionsVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IRpcOptions * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IRpcOptions * This); - - - ULONG ( __stdcall *Release )( - IRpcOptions * This); - - - HRESULT ( __stdcall *Set )( - IRpcOptions * This, - - IUnknown *pPrx, - - RPCOPT_PROPERTIES dwProperty, - - ULONG_PTR dwValue); - - - HRESULT ( __stdcall *Query )( - IRpcOptions * This, - - IUnknown *pPrx, - - RPCOPT_PROPERTIES dwProperty, - - ULONG_PTR *pdwValue); - - - } IRpcOptionsVtbl; - - struct IRpcOptions - { - struct IRpcOptionsVtbl *lpVtbl; - }; -# 4630 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef -enum tagGLOBALOPT_PROPERTIES - { - COMGLB_EXCEPTION_HANDLING = 1, - COMGLB_APPID = 2, - COMGLB_RPC_THREADPOOL_SETTING = 3, - COMGLB_RO_SETTINGS = 4, - COMGLB_UNMARSHALING_POLICY = 5, - COMGLB_PROPERTIES_RESERVED1 = 6, - COMGLB_PROPERTIES_RESERVED2 = 7, - COMGLB_PROPERTIES_RESERVED3 = 8 - } GLOBALOPT_PROPERTIES; - -typedef -enum tagGLOBALOPT_EH_VALUES - { - COMGLB_EXCEPTION_HANDLE = 0, - COMGLB_EXCEPTION_DONOT_HANDLE_FATAL = 1, - COMGLB_EXCEPTION_DONOT_HANDLE = COMGLB_EXCEPTION_DONOT_HANDLE_FATAL, - COMGLB_EXCEPTION_DONOT_HANDLE_ANY = 2 - } GLOBALOPT_EH_VALUES; - -typedef -enum tagGLOBALOPT_RPCTP_VALUES - { - COMGLB_RPC_THREADPOOL_SETTING_DEFAULT_POOL = 0, - COMGLB_RPC_THREADPOOL_SETTING_PRIVATE_POOL = 1 - } GLOBALOPT_RPCTP_VALUES; - -typedef -enum tagGLOBALOPT_RO_FLAGS - { - COMGLB_STA_MODALLOOP_REMOVE_TOUCH_MESSAGES = 0x1, - COMGLB_STA_MODALLOOP_SHARED_QUEUE_REMOVE_INPUT_MESSAGES = 0x2, - COMGLB_STA_MODALLOOP_SHARED_QUEUE_DONOT_REMOVE_INPUT_MESSAGES = 0x4, - COMGLB_FAST_RUNDOWN = 0x8, - COMGLB_RESERVED1 = 0x10, - COMGLB_RESERVED2 = 0x20, - COMGLB_RESERVED3 = 0x40, - COMGLB_STA_MODALLOOP_SHARED_QUEUE_REORDER_POINTER_MESSAGES = 0x80, - COMGLB_RESERVED4 = 0x100, - COMGLB_RESERVED5 = 0x200, - COMGLB_RESERVED6 = 0x400 - } GLOBALOPT_RO_FLAGS; - -typedef -enum tagGLOBALOPT_UNMARSHALING_POLICY_VALUES - { - COMGLB_UNMARSHALING_POLICY_NORMAL = 0, - COMGLB_UNMARSHALING_POLICY_STRONG = 1, - COMGLB_UNMARSHALING_POLICY_HYBRID = 2 - } GLOBALOPT_UNMARSHALING_POLICY_VALUES; - - - -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0026_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0026_v0_0_s_ifspec; -# 4695 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IGlobalOptions; -# 4720 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IGlobalOptionsVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IGlobalOptions * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IGlobalOptions * This); - - - ULONG ( __stdcall *Release )( - IGlobalOptions * This); - - - HRESULT ( __stdcall *Set )( - IGlobalOptions * This, - - GLOBALOPT_PROPERTIES dwProperty, - - ULONG_PTR dwValue); - - - HRESULT ( __stdcall *Query )( - IGlobalOptions * This, - - GLOBALOPT_PROPERTIES dwProperty, - - ULONG_PTR *pdwValue); - - - } IGlobalOptionsVtbl; - - struct IGlobalOptions - { - struct IGlobalOptionsVtbl *lpVtbl; - }; -# 4805 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0027_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0027_v0_0_s_ifspec; - - - - - - - -typedef ISurrogate *LPSURROGATE; - - -extern const IID IID_ISurrogate; -# 4835 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct ISurrogateVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ISurrogate * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ISurrogate * This); - - - ULONG ( __stdcall *Release )( - ISurrogate * This); - - - HRESULT ( __stdcall *LoadDllServer )( - ISurrogate * This, - const IID * const Clsid); - - - HRESULT ( __stdcall *FreeSurrogate )( - ISurrogate * This); - - - } ISurrogateVtbl; - - struct ISurrogate - { - struct ISurrogateVtbl *lpVtbl; - }; -# 4909 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef IGlobalInterfaceTable *LPGLOBALINTERFACETABLE; - - -extern const IID IID_IGlobalInterfaceTable; -# 4945 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IGlobalInterfaceTableVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IGlobalInterfaceTable * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IGlobalInterfaceTable * This); - - - ULONG ( __stdcall *Release )( - IGlobalInterfaceTable * This); - - - HRESULT ( __stdcall *RegisterInterfaceInGlobal )( - IGlobalInterfaceTable * This, - - IUnknown *pUnk, - - const IID * const riid, - - DWORD *pdwCookie); - - - HRESULT ( __stdcall *RevokeInterfaceFromGlobal )( - IGlobalInterfaceTable * This, - - DWORD dwCookie); - - - HRESULT ( __stdcall *GetInterfaceFromGlobal )( - IGlobalInterfaceTable * This, - - DWORD dwCookie, - - const IID * const riid, - - void **ppv); - - - } IGlobalInterfaceTableVtbl; - - struct IGlobalInterfaceTable - { - struct IGlobalInterfaceTableVtbl *lpVtbl; - }; -# 5042 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0029_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0029_v0_0_s_ifspec; -# 5052 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_ISynchronize; -# 5073 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct ISynchronizeVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ISynchronize * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ISynchronize * This); - - - ULONG ( __stdcall *Release )( - ISynchronize * This); - - - HRESULT ( __stdcall *Wait )( - ISynchronize * This, - DWORD dwFlags, - DWORD dwMilliseconds); - - - HRESULT ( __stdcall *Signal )( - ISynchronize * This); - - - HRESULT ( __stdcall *Reset )( - ISynchronize * This); - - - } ISynchronizeVtbl; - - struct ISynchronize - { - struct ISynchronizeVtbl *lpVtbl; - }; -# 5156 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_ISynchronizeHandle; -# 5173 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct ISynchronizeHandleVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ISynchronizeHandle * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ISynchronizeHandle * This); - - - ULONG ( __stdcall *Release )( - ISynchronizeHandle * This); - - - HRESULT ( __stdcall *GetHandle )( - ISynchronizeHandle * This, - - HANDLE *ph); - - - } ISynchronizeHandleVtbl; - - struct ISynchronizeHandle - { - struct ISynchronizeHandleVtbl *lpVtbl; - }; -# 5242 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_ISynchronizeEvent; -# 5259 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct ISynchronizeEventVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ISynchronizeEvent * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ISynchronizeEvent * This); - - - ULONG ( __stdcall *Release )( - ISynchronizeEvent * This); - - - HRESULT ( __stdcall *GetHandle )( - ISynchronizeEvent * This, - - HANDLE *ph); - - - HRESULT ( __stdcall *SetEventHandle )( - ISynchronizeEvent * This, - - HANDLE *ph); - - - } ISynchronizeEventVtbl; - - struct ISynchronizeEvent - { - struct ISynchronizeEventVtbl *lpVtbl; - }; -# 5338 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_ISynchronizeContainer; -# 5363 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct ISynchronizeContainerVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ISynchronizeContainer * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ISynchronizeContainer * This); - - - ULONG ( __stdcall *Release )( - ISynchronizeContainer * This); - - - HRESULT ( __stdcall *AddSynchronize )( - ISynchronizeContainer * This, - - ISynchronize *pSync); - - - HRESULT ( __stdcall *WaitMultiple )( - ISynchronizeContainer * This, - - DWORD dwFlags, - - DWORD dwTimeOut, - - ISynchronize **ppSync); - - - } ISynchronizeContainerVtbl; - - struct ISynchronizeContainer - { - struct ISynchronizeContainerVtbl *lpVtbl; - }; -# 5445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_ISynchronizeMutex; -# 5460 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct ISynchronizeMutexVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ISynchronizeMutex * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ISynchronizeMutex * This); - - - ULONG ( __stdcall *Release )( - ISynchronizeMutex * This); - - - HRESULT ( __stdcall *Wait )( - ISynchronizeMutex * This, - DWORD dwFlags, - DWORD dwMilliseconds); - - - HRESULT ( __stdcall *Signal )( - ISynchronizeMutex * This); - - - HRESULT ( __stdcall *Reset )( - ISynchronizeMutex * This); - - - HRESULT ( __stdcall *ReleaseMutex )( - ISynchronizeMutex * This); - - - } ISynchronizeMutexVtbl; - - struct ISynchronizeMutex - { - struct ISynchronizeMutexVtbl *lpVtbl; - }; -# 5550 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef ICancelMethodCalls *LPCANCELMETHODCALLS; - - -extern const IID IID_ICancelMethodCalls; -# 5572 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct ICancelMethodCallsVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ICancelMethodCalls * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ICancelMethodCalls * This); - - - ULONG ( __stdcall *Release )( - ICancelMethodCalls * This); - - - HRESULT ( __stdcall *Cancel )( - ICancelMethodCalls * This, - - ULONG ulSeconds); - - - HRESULT ( __stdcall *TestCancel )( - ICancelMethodCalls * This); - - - } ICancelMethodCallsVtbl; - - struct ICancelMethodCalls - { - struct ICancelMethodCallsVtbl *lpVtbl; - }; -# 5647 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef -enum tagDCOM_CALL_STATE - { - DCOM_NONE = 0, - DCOM_CALL_COMPLETE = 0x1, - DCOM_CALL_CANCELED = 0x2 - } DCOM_CALL_STATE; - - -extern const IID IID_IAsyncManager; -# 5683 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IAsyncManagerVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IAsyncManager * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IAsyncManager * This); - - - ULONG ( __stdcall *Release )( - IAsyncManager * This); - - - HRESULT ( __stdcall *CompleteCall )( - IAsyncManager * This, - - HRESULT Result); - - - HRESULT ( __stdcall *GetCallContext )( - IAsyncManager * This, - - const IID * const riid, - - void **pInterface); - - - HRESULT ( __stdcall *GetState )( - IAsyncManager * This, - - ULONG *pulStateFlags); - - - } IAsyncManagerVtbl; - - struct IAsyncManager - { - struct IAsyncManagerVtbl *lpVtbl; - }; -# 5772 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_ICallFactory; -# 5795 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct ICallFactoryVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ICallFactory * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ICallFactory * This); - - - ULONG ( __stdcall *Release )( - ICallFactory * This); - - - HRESULT ( __stdcall *CreateCall )( - ICallFactory * This, - - const IID * const riid, - - IUnknown *pCtrlUnk, - - const IID * const riid2, - - IUnknown **ppv); - - - } ICallFactoryVtbl; - - struct ICallFactory - { - struct ICallFactoryVtbl *lpVtbl; - }; -# 5870 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IRpcHelper; -# 5893 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IRpcHelperVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IRpcHelper * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IRpcHelper * This); - - - ULONG ( __stdcall *Release )( - IRpcHelper * This); - - - HRESULT ( __stdcall *GetDCOMProtocolVersion )( - IRpcHelper * This, - - DWORD *pComVersion); - - - HRESULT ( __stdcall *GetIIDFromOBJREF )( - IRpcHelper * This, - - void *pObjRef, - - IID **piid); - - - } IRpcHelperVtbl; - - struct IRpcHelper - { - struct IRpcHelperVtbl *lpVtbl; - }; -# 5973 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IReleaseMarshalBuffers; -# 5994 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IReleaseMarshalBuffersVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IReleaseMarshalBuffers * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IReleaseMarshalBuffers * This); - - - ULONG ( __stdcall *Release )( - IReleaseMarshalBuffers * This); - - - HRESULT ( __stdcall *ReleaseMarshalBuffer )( - IReleaseMarshalBuffers * This, - - RPCOLEMESSAGE *pMsg, - - DWORD dwFlags, - - IUnknown *pChnl); - - - } IReleaseMarshalBuffersVtbl; - - struct IReleaseMarshalBuffers - { - struct IReleaseMarshalBuffersVtbl *lpVtbl; - }; -# 6067 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IWaitMultiple; -# 6090 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IWaitMultipleVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IWaitMultiple * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IWaitMultiple * This); - - - ULONG ( __stdcall *Release )( - IWaitMultiple * This); - - - HRESULT ( __stdcall *WaitMultiple )( - IWaitMultiple * This, - - DWORD timeout, - - ISynchronize **pSync); - - - HRESULT ( __stdcall *AddSynchronize )( - IWaitMultiple * This, - - ISynchronize *pSync); - - - } IWaitMultipleVtbl; - - struct IWaitMultiple - { - struct IWaitMultipleVtbl *lpVtbl; - }; -# 6169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef IAddrTrackingControl *LPADDRTRACKINGCONTROL; - - -extern const IID IID_IAddrTrackingControl; -# 6189 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IAddrTrackingControlVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IAddrTrackingControl * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IAddrTrackingControl * This); - - - ULONG ( __stdcall *Release )( - IAddrTrackingControl * This); - - - HRESULT ( __stdcall *EnableCOMDynamicAddrTracking )( - IAddrTrackingControl * This); - - - HRESULT ( __stdcall *DisableCOMDynamicAddrTracking )( - IAddrTrackingControl * This); - - - } IAddrTrackingControlVtbl; - - struct IAddrTrackingControl - { - struct IAddrTrackingControlVtbl *lpVtbl; - }; -# 6262 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef IAddrExclusionControl *LPADDREXCLUSIONCONTROL; - - -extern const IID IID_IAddrExclusionControl; -# 6288 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IAddrExclusionControlVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IAddrExclusionControl * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IAddrExclusionControl * This); - - - ULONG ( __stdcall *Release )( - IAddrExclusionControl * This); - - - HRESULT ( __stdcall *GetCurrentAddrExclusionList )( - IAddrExclusionControl * This, - - const IID * const riid, - - void **ppEnumerator); - - - HRESULT ( __stdcall *UpdateAddrExclusionList )( - IAddrExclusionControl * This, - - IUnknown *pEnumerator); - - - } IAddrExclusionControlVtbl; - - struct IAddrExclusionControl - { - struct IAddrExclusionControlVtbl *lpVtbl; - }; -# 6368 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IPipeByte; -# 6390 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IPipeByteVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IPipeByte * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IPipeByte * This); - - - ULONG ( __stdcall *Release )( - IPipeByte * This); - - - HRESULT ( __stdcall *Pull )( - IPipeByte * This, - BYTE *buf, - ULONG cRequest, - ULONG *pcReturned); - - - HRESULT ( __stdcall *Push )( - IPipeByte * This, - BYTE *buf, - ULONG cSent); - - - } IPipeByteVtbl; - - struct IPipeByte - { - struct IPipeByteVtbl *lpVtbl; - }; -# 6469 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_AsyncIPipeByte; -# 6495 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct AsyncIPipeByteVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - AsyncIPipeByte * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - AsyncIPipeByte * This); - - - ULONG ( __stdcall *Release )( - AsyncIPipeByte * This); - - - HRESULT ( __stdcall *Begin_Pull )( - AsyncIPipeByte * This, - ULONG cRequest); - - - HRESULT ( __stdcall *Finish_Pull )( - AsyncIPipeByte * This, - BYTE *buf, - ULONG *pcReturned); - - - HRESULT ( __stdcall *Begin_Push )( - AsyncIPipeByte * This, - BYTE *buf, - ULONG cSent); - - - HRESULT ( __stdcall *Finish_Push )( - AsyncIPipeByte * This); - - - } AsyncIPipeByteVtbl; - - struct AsyncIPipeByte - { - struct AsyncIPipeByteVtbl *lpVtbl; - }; -# 6588 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IPipeLong; -# 6610 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IPipeLongVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IPipeLong * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IPipeLong * This); - - - ULONG ( __stdcall *Release )( - IPipeLong * This); - - - HRESULT ( __stdcall *Pull )( - IPipeLong * This, - LONG *buf, - ULONG cRequest, - ULONG *pcReturned); - - - HRESULT ( __stdcall *Push )( - IPipeLong * This, - LONG *buf, - ULONG cSent); - - - } IPipeLongVtbl; - - struct IPipeLong - { - struct IPipeLongVtbl *lpVtbl; - }; -# 6689 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_AsyncIPipeLong; -# 6715 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct AsyncIPipeLongVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - AsyncIPipeLong * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - AsyncIPipeLong * This); - - - ULONG ( __stdcall *Release )( - AsyncIPipeLong * This); - - - HRESULT ( __stdcall *Begin_Pull )( - AsyncIPipeLong * This, - ULONG cRequest); - - - HRESULT ( __stdcall *Finish_Pull )( - AsyncIPipeLong * This, - LONG *buf, - ULONG *pcReturned); - - - HRESULT ( __stdcall *Begin_Push )( - AsyncIPipeLong * This, - LONG *buf, - ULONG cSent); - - - HRESULT ( __stdcall *Finish_Push )( - AsyncIPipeLong * This); - - - } AsyncIPipeLongVtbl; - - struct AsyncIPipeLong - { - struct AsyncIPipeLongVtbl *lpVtbl; - }; -# 6808 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IPipeDouble; -# 6830 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IPipeDoubleVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IPipeDouble * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IPipeDouble * This); - - - ULONG ( __stdcall *Release )( - IPipeDouble * This); - - - HRESULT ( __stdcall *Pull )( - IPipeDouble * This, - DOUBLE *buf, - ULONG cRequest, - ULONG *pcReturned); - - - HRESULT ( __stdcall *Push )( - IPipeDouble * This, - DOUBLE *buf, - ULONG cSent); - - - } IPipeDoubleVtbl; - - struct IPipeDouble - { - struct IPipeDoubleVtbl *lpVtbl; - }; -# 6909 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_AsyncIPipeDouble; -# 6935 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct AsyncIPipeDoubleVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - AsyncIPipeDouble * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - AsyncIPipeDouble * This); - - - ULONG ( __stdcall *Release )( - AsyncIPipeDouble * This); - - - HRESULT ( __stdcall *Begin_Pull )( - AsyncIPipeDouble * This, - ULONG cRequest); - - - HRESULT ( __stdcall *Finish_Pull )( - AsyncIPipeDouble * This, - DOUBLE *buf, - ULONG *pcReturned); - - - HRESULT ( __stdcall *Begin_Push )( - AsyncIPipeDouble * This, - DOUBLE *buf, - ULONG cSent); - - - HRESULT ( __stdcall *Finish_Push )( - AsyncIPipeDouble * This); - - - } AsyncIPipeDoubleVtbl; - - struct AsyncIPipeDouble - { - struct AsyncIPipeDoubleVtbl *lpVtbl; - }; -# 7523 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef -enum _APTTYPEQUALIFIER - { - APTTYPEQUALIFIER_NONE = 0, - APTTYPEQUALIFIER_IMPLICIT_MTA = 1, - APTTYPEQUALIFIER_NA_ON_MTA = 2, - APTTYPEQUALIFIER_NA_ON_STA = 3, - APTTYPEQUALIFIER_NA_ON_IMPLICIT_MTA = 4, - APTTYPEQUALIFIER_NA_ON_MAINSTA = 5, - APTTYPEQUALIFIER_APPLICATION_STA = 6, - APTTYPEQUALIFIER_RESERVED_1 = 7 - } APTTYPEQUALIFIER; - -typedef -enum _APTTYPE - { - APTTYPE_CURRENT = -1, - APTTYPE_STA = 0, - APTTYPE_MTA = 1, - APTTYPE_NA = 2, - APTTYPE_MAINSTA = 3 - } APTTYPE; - - - - - -typedef -enum _THDTYPE - { - THDTYPE_BLOCKMESSAGES = 0, - THDTYPE_PROCESSMESSAGES = 1 - } THDTYPE; - -typedef DWORD APARTMENTID; - - - -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0048_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0048_v0_0_s_ifspec; -# 7571 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IComThreadingInfo; -# 7600 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IComThreadingInfoVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IComThreadingInfo * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IComThreadingInfo * This); - - - ULONG ( __stdcall *Release )( - IComThreadingInfo * This); - - - HRESULT ( __stdcall *GetCurrentApartmentType )( - IComThreadingInfo * This, - - APTTYPE *pAptType); - - - HRESULT ( __stdcall *GetCurrentThreadType )( - IComThreadingInfo * This, - - THDTYPE *pThreadType); - - - HRESULT ( __stdcall *GetCurrentLogicalThreadId )( - IComThreadingInfo * This, - - GUID *pguidLogicalThreadId); - - - HRESULT ( __stdcall *SetCurrentLogicalThreadId )( - IComThreadingInfo * This, - - const GUID * const rguid); - - - } IComThreadingInfoVtbl; - - struct IComThreadingInfo - { - struct IComThreadingInfoVtbl *lpVtbl; - }; -# 7696 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IProcessInitControl; -# 7712 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IProcessInitControlVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IProcessInitControl * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IProcessInitControl * This); - - - ULONG ( __stdcall *Release )( - IProcessInitControl * This); - - - HRESULT ( __stdcall *ResetInitializerTimeout )( - IProcessInitControl * This, - DWORD dwSecondsRemaining); - - - } IProcessInitControlVtbl; - - struct IProcessInitControl - { - struct IProcessInitControlVtbl *lpVtbl; - }; -# 7780 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IFastRundown; -# 7793 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IFastRundownVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IFastRundown * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IFastRundown * This); - - - ULONG ( __stdcall *Release )( - IFastRundown * This); - - - } IFastRundownVtbl; - - struct IFastRundown - { - struct IFastRundownVtbl *lpVtbl; - }; -# 7849 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -typedef -enum CO_MARSHALING_CONTEXT_ATTRIBUTES - { - CO_MARSHALING_SOURCE_IS_APP_CONTAINER = 0, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_1 = 0x80000000, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_2 = 0x80000001, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_3 = 0x80000002, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_4 = 0x80000003, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_5 = 0x80000004, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_6 = 0x80000005, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_7 = 0x80000006, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_8 = 0x80000007, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_9 = 0x80000008, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_10 = 0x80000009, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_11 = 0x8000000a, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_12 = 0x8000000b, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_13 = 0x8000000c, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_14 = 0x8000000d, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_15 = 0x8000000e, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_16 = 0x8000000f, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_17 = 0x80000010, - CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_18 = 0x80000011 - } CO_MARSHALING_CONTEXT_ATTRIBUTES; - - - -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0051_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0051_v0_0_s_ifspec; -# 7885 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IMarshalingStream; -# 7902 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IMarshalingStreamVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IMarshalingStream * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IMarshalingStream * This); - - - ULONG ( __stdcall *Release )( - IMarshalingStream * This); - - - HRESULT ( __stdcall *Read )( - IMarshalingStream * This, - - void *pv, - - ULONG cb, - - ULONG *pcbRead); - - - HRESULT ( __stdcall *Write )( - IMarshalingStream * This, - - const void *pv, - - ULONG cb, - - ULONG *pcbWritten); - - - HRESULT ( __stdcall *Seek )( - IMarshalingStream * This, - LARGE_INTEGER dlibMove, - DWORD dwOrigin, - - ULARGE_INTEGER *plibNewPosition); - - - HRESULT ( __stdcall *SetSize )( - IMarshalingStream * This, - ULARGE_INTEGER libNewSize); - - - HRESULT ( __stdcall *CopyTo )( - IMarshalingStream * This, - - IStream *pstm, - ULARGE_INTEGER cb, - - ULARGE_INTEGER *pcbRead, - - ULARGE_INTEGER *pcbWritten); - - - HRESULT ( __stdcall *Commit )( - IMarshalingStream * This, - DWORD grfCommitFlags); - - - HRESULT ( __stdcall *Revert )( - IMarshalingStream * This); - - - HRESULT ( __stdcall *LockRegion )( - IMarshalingStream * This, - ULARGE_INTEGER libOffset, - ULARGE_INTEGER cb, - DWORD dwLockType); - - - HRESULT ( __stdcall *UnlockRegion )( - IMarshalingStream * This, - ULARGE_INTEGER libOffset, - ULARGE_INTEGER cb, - DWORD dwLockType); - - - HRESULT ( __stdcall *Stat )( - IMarshalingStream * This, - STATSTG *pstatstg, - DWORD grfStatFlag); - - - HRESULT ( __stdcall *Clone )( - IMarshalingStream * This, - IStream **ppstm); - - - HRESULT ( __stdcall *GetMarshalingContextAttribute )( - IMarshalingStream * This, - CO_MARSHALING_CONTEXT_ATTRIBUTES attribute, - ULONG_PTR *pAttributeValue); - - - } IMarshalingStreamVtbl; - - struct IMarshalingStream - { - struct IMarshalingStreamVtbl *lpVtbl; - }; -# 8086 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0052_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0052_v0_0_s_ifspec; -# 8123 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IAgileReference; -# 8140 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IAgileReferenceVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IAgileReference * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IAgileReference * This); - - - ULONG ( __stdcall *Release )( - IAgileReference * This); - - - HRESULT ( __stdcall *Resolve )( - IAgileReference * This, - const IID * const riid, - void **ppvObjectReference); - - - } IAgileReferenceVtbl; - - struct IAgileReference - { - struct IAgileReferenceVtbl *lpVtbl; - }; -# 8210 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const GUID IID_ICallbackWithNoReentrancyToApplicationSTA; - - - - -typedef struct MachineGlobalObjectTableRegistrationToken__ - { - int unused; - } *MachineGlobalObjectTableRegistrationToken; - - - -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0053_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0053_v0_0_s_ifspec; -# 8232 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_IMachineGlobalObjectTable; -# 8260 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct IMachineGlobalObjectTableVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IMachineGlobalObjectTable * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IMachineGlobalObjectTable * This); - - - ULONG ( __stdcall *Release )( - IMachineGlobalObjectTable * This); - - - HRESULT ( __stdcall *RegisterObject )( - IMachineGlobalObjectTable * This, - const IID * const clsid, - LPCWSTR identifier, - IUnknown *object, - MachineGlobalObjectTableRegistrationToken *token); - - - HRESULT ( __stdcall *GetObjectA )( - IMachineGlobalObjectTable * This, - const IID * const clsid, - LPCWSTR identifier, - const IID * const riid, - void **ppv); - - - HRESULT ( __stdcall *RevokeObject )( - IMachineGlobalObjectTable * This, - MachineGlobalObjectTableRegistrationToken token); - - - } IMachineGlobalObjectTableVtbl; - - struct IMachineGlobalObjectTable - { - struct IMachineGlobalObjectTableVtbl *lpVtbl; - }; -# 8352 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0054_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0054_v0_0_s_ifspec; -# 8362 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -extern const IID IID_ISupportAllowLowerTrustActivation; -# 8375 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 - typedef struct ISupportAllowLowerTrustActivationVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ISupportAllowLowerTrustActivation * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ISupportAllowLowerTrustActivation * This); - - - ULONG ( __stdcall *Release )( - ISupportAllowLowerTrustActivation * This); - - - } ISupportAllowLowerTrustActivationVtbl; - - struct ISupportAllowLowerTrustActivation - { - struct ISupportAllowLowerTrustActivationVtbl *lpVtbl; - }; -# 8437 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidlbase.h" 3 -#pragma warning(pop) - - - - - - -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0055_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidlbase_0000_0055_v0_0_s_ifspec; - - - - HRESULT __stdcall IEnumUnknown_Next_Proxy( - IEnumUnknown * This, - - ULONG celt, - - IUnknown **rgelt, - - ULONG *pceltFetched); - - - HRESULT __stdcall IEnumUnknown_Next_Stub( - IEnumUnknown * This, - ULONG celt, - IUnknown **rgelt, - ULONG *pceltFetched); - - HRESULT __stdcall IEnumString_Next_Proxy( - IEnumString * This, - ULONG celt, - - LPOLESTR *rgelt, - - ULONG *pceltFetched); - - - HRESULT __stdcall IEnumString_Next_Stub( - IEnumString * This, - ULONG celt, - LPOLESTR *rgelt, - ULONG *pceltFetched); - - HRESULT __stdcall ISequentialStream_Read_Proxy( - ISequentialStream * This, - - void *pv, - - ULONG cb, - - ULONG *pcbRead); - - - HRESULT __stdcall ISequentialStream_Read_Stub( - ISequentialStream * This, - byte *pv, - ULONG cb, - ULONG *pcbRead); - - HRESULT __stdcall ISequentialStream_Write_Proxy( - ISequentialStream * This, - - const void *pv, - - ULONG cb, - - ULONG *pcbWritten); - - - HRESULT __stdcall ISequentialStream_Write_Stub( - ISequentialStream * This, - const byte *pv, - ULONG cb, - ULONG *pcbWritten); - - HRESULT __stdcall IStream_Seek_Proxy( - IStream * This, - LARGE_INTEGER dlibMove, - DWORD dwOrigin, - - ULARGE_INTEGER *plibNewPosition); - - - HRESULT __stdcall IStream_Seek_Stub( - IStream * This, - LARGE_INTEGER dlibMove, - DWORD dwOrigin, - ULARGE_INTEGER *plibNewPosition); - - HRESULT __stdcall IStream_CopyTo_Proxy( - IStream * This, - - IStream *pstm, - ULARGE_INTEGER cb, - - ULARGE_INTEGER *pcbRead, - - ULARGE_INTEGER *pcbWritten); - - - HRESULT __stdcall IStream_CopyTo_Stub( - IStream * This, - IStream *pstm, - ULARGE_INTEGER cb, - ULARGE_INTEGER *pcbRead, - ULARGE_INTEGER *pcbWritten); -# 364 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 2 3 - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\guiddef.h" 1 3 -# 366 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 2 3 - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\cguid.h" 1 3 -# 21 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\cguid.h" 3 -#pragma warning(push) - -#pragma warning(disable: 4001) -# 33 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\cguid.h" 3 -extern const IID GUID_NULL; -# 42 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\cguid.h" 3 -extern const IID CATID_MARSHALER; - - -extern const IID IID_IRpcChannel; -extern const IID IID_IRpcStub; -extern const IID IID_IStubManager; -extern const IID IID_IRpcProxy; -extern const IID IID_IProxyManager; -extern const IID IID_IPSFactory; -extern const IID IID_IInternalMoniker; -extern const IID IID_IDfReserved1; -extern const IID IID_IDfReserved2; -extern const IID IID_IDfReserved3; -extern const CLSID CLSID_StdMarshal; -extern const CLSID CLSID_AggStdMarshal; -extern const CLSID CLSID_StdAsyncActManager; -extern const IID IID_IStub; -extern const IID IID_IProxy; -extern const IID IID_IEnumGeneric; -extern const IID IID_IEnumHolder; -extern const IID IID_IEnumCallback; -extern const IID IID_IOleManager; -extern const IID IID_IOlePresObj; -extern const IID IID_IDebug; -extern const IID IID_IDebugStream; -extern const CLSID CLSID_PSGenObject; -extern const CLSID CLSID_PSClientSite; -extern const CLSID CLSID_PSClassObject; -extern const CLSID CLSID_PSInPlaceActive; -extern const CLSID CLSID_PSInPlaceFrame; -extern const CLSID CLSID_PSDragDrop; -extern const CLSID CLSID_PSBindCtx; -extern const CLSID CLSID_PSEnumerators; -extern const CLSID CLSID_StaticMetafile; -extern const CLSID CLSID_StaticDib; -extern const CLSID CID_CDfsVolume; -extern const CLSID CLSID_DCOMAccessControl; - - - - - - - -extern const CLSID CLSID_GlobalOptions; - - - - - - - -extern const CLSID CLSID_StdGlobalInterfaceTable; -extern const CLSID CLSID_MachineGlobalObjectTable; -extern const CLSID CLSID_ActivationCapabilities; - - - - - - - -extern const CLSID CLSID_ComBinding; -extern const CLSID CLSID_StdEvent; -extern const CLSID CLSID_ManualResetEvent; -extern const CLSID CLSID_SynchronizeContainer; - - -extern const CLSID CLSID_AddrControl; - - - -extern const CLSID CLSID_ContextSwitcher; -# 126 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\cguid.h" 3 -extern const CLSID CLSID_CCDFormKrnl; -extern const CLSID CLSID_CCDPropertyPage; -extern const CLSID CLSID_CCDFormDialog; - - - - -extern const CLSID CLSID_CCDCommandButton; -extern const CLSID CLSID_CCDComboBox; -extern const CLSID CLSID_CCDTextBox; -extern const CLSID CLSID_CCDCheckBox; -extern const CLSID CLSID_CCDLabel; -extern const CLSID CLSID_CCDOptionButton; -extern const CLSID CLSID_CCDListBox; -extern const CLSID CLSID_CCDScrollBar; -extern const CLSID CLSID_CCDGroupBox; - - - - -extern const CLSID CLSID_CCDGeneralPropertyPage; -extern const CLSID CLSID_CCDGenericPropertyPage; -extern const CLSID CLSID_CCDFontPropertyPage; -extern const CLSID CLSID_CCDColorPropertyPage; -extern const CLSID CLSID_CCDLabelPropertyPage; -extern const CLSID CLSID_CCDCheckBoxPropertyPage; -extern const CLSID CLSID_CCDTextBoxPropertyPage; -extern const CLSID CLSID_CCDOptionButtonPropertyPage; -extern const CLSID CLSID_CCDListBoxPropertyPage; -extern const CLSID CLSID_CCDCommandButtonPropertyPage; -extern const CLSID CLSID_CCDComboBoxPropertyPage; -extern const CLSID CLSID_CCDScrollBarPropertyPage; -extern const CLSID CLSID_CCDGroupBoxPropertyPage; -extern const CLSID CLSID_CCDXObjectPropertyPage; - -extern const CLSID CLSID_CStdPropertyFrame; - -extern const CLSID CLSID_CFormPropertyPage; -extern const CLSID CLSID_CGridPropertyPage; - -extern const CLSID CLSID_CWSJArticlePage; -extern const CLSID CLSID_CSystemPage; -extern const CLSID CLSID_IdentityUnmarshal; - - - - - - - -extern const CLSID CLSID_InProcFreeMarshaler; - - - - - - - -extern const CLSID CLSID_Picture_Metafile; -extern const CLSID CLSID_Picture_EnhMetafile; -extern const CLSID CLSID_Picture_Dib; - - - - -extern const GUID GUID_TRISTATE; -# 202 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\cguid.h" 3 -#pragma warning(pop) -# 370 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 2 3 -# 381 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoGetMalloc( - DWORD dwMemContext, - LPMALLOC * ppMalloc - ); -# 394 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CreateStreamOnHGlobal( - HGLOBAL hGlobal, - BOOL fDeleteOnRelease, - LPSTREAM * ppstm - ); - - -extern __declspec(dllimport) HRESULT __stdcall -GetHGlobalFromStream( - LPSTREAM pstm, - HGLOBAL * phglobal - ); - - - -extern __declspec(dllimport) void __stdcall -CoUninitialize( - void - ); - - - - - - - -extern __declspec(dllimport) DWORD __stdcall -CoGetCurrentProcess( - void - ); -# 436 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoInitializeEx( - LPVOID pvReserved, - DWORD dwCoInit - ); - - - - - - - -extern __declspec(dllimport) HRESULT __stdcall -CoGetCallerTID( - LPDWORD lpdwTID - ); - - - - - - - -extern __declspec(dllimport) HRESULT __stdcall -CoGetCurrentLogicalThreadId( - GUID* pguid - ); -# 475 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoGetContextToken( - ULONG_PTR* pToken - ); -# 487 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoGetDefaultContext( - APTTYPE aptType, - const IID * const riid, - void** ppv - ); -# 507 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoGetApartmentType( - APTTYPE* pAptType, - APTTYPEQUALIFIER* pAptQualifier - ); -# 525 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -typedef struct tagServerInformation -{ - DWORD dwServerPid; - DWORD dwServerTid; - UINT64 ui64ServerAddress; -} ServerInformation, *PServerInformation; -# 539 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoDecodeProxy( - DWORD dwClientPid, - UINT64 ui64ProxyAddress, - PServerInformation pServerInformation - ); - - - - - - - -struct CO_MTA_USAGE_COOKIE__{int unused;}; typedef struct CO_MTA_USAGE_COOKIE__ *CO_MTA_USAGE_COOKIE; - - -extern __declspec(dllimport) HRESULT __stdcall -CoIncrementMTAUsage( - CO_MTA_USAGE_COOKIE* pCookie - ); - -extern __declspec(dllimport) HRESULT __stdcall -CoDecrementMTAUsage( - CO_MTA_USAGE_COOKIE Cookie - ); - - - - - - - -extern __declspec(dllimport) HRESULT __stdcall -CoAllowUnmarshalerCLSID( - const IID * const clsid - ); -# 600 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoGetObjectContext( - const IID * const riid, - LPVOID * ppv - ); -# 615 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoGetClassObject( - const IID * const rclsid, - DWORD dwClsContext, - LPVOID pvReserved, - const IID * const riid, - LPVOID * ppv - ); - - - - - - - -extern __declspec(dllimport) HRESULT __stdcall -CoRegisterClassObject( - const IID * const rclsid, - LPUNKNOWN pUnk, - DWORD dwClsContext, - DWORD flags, - LPDWORD lpdwRegister - ); - -extern __declspec(dllimport) HRESULT __stdcall -CoRevokeClassObject( - DWORD dwRegister - ); - -extern __declspec(dllimport) HRESULT __stdcall -CoResumeClassObjects( - void - ); - -extern __declspec(dllimport) HRESULT __stdcall -CoSuspendClassObjects( - void - ); - - - - - - - -extern __declspec(dllimport) ULONG __stdcall -CoAddRefServerProcess( - void - ); - -extern __declspec(dllimport) ULONG __stdcall -CoReleaseServerProcess( - void - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoGetPSClsid( - const IID * const riid, - CLSID* pClsid - ); - -extern __declspec(dllimport) HRESULT __stdcall -CoRegisterPSClsid( - const IID * const riid, - const IID * const rclsid - ); - - - -extern __declspec(dllimport) HRESULT __stdcall -CoRegisterSurrogate( - LPSURROGATE pSurrogate - ); -# 699 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoGetMarshalSizeMax( - ULONG* pulSize, - const IID * const riid, - LPUNKNOWN pUnk, - DWORD dwDestContext, - LPVOID pvDestContext, - DWORD mshlflags - ); - -extern __declspec(dllimport) HRESULT __stdcall -CoMarshalInterface( - LPSTREAM pStm, - const IID * const riid, - LPUNKNOWN pUnk, - DWORD dwDestContext, - LPVOID pvDestContext, - DWORD mshlflags - ); - -extern __declspec(dllimport) HRESULT __stdcall -CoUnmarshalInterface( - LPSTREAM pStm, - const IID * const riid, - LPVOID * ppv - ); - - - - - - - -extern __declspec(dllimport) HRESULT __stdcall -CoMarshalHresult( - LPSTREAM pstm, - HRESULT hresult - ); - -extern __declspec(dllimport) HRESULT __stdcall -CoUnmarshalHresult( - LPSTREAM pstm, - HRESULT * phresult - ); -# 751 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoReleaseMarshalData( - LPSTREAM pStm - ); - -extern __declspec(dllimport) HRESULT __stdcall -CoDisconnectObject( - LPUNKNOWN pUnk, - DWORD dwReserved - ); -# 769 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoLockObjectExternal( - LPUNKNOWN pUnk, - BOOL fLock, - BOOL fLastUnlockReleases - ); -# 783 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoGetStandardMarshal( - const IID * const riid, - LPUNKNOWN pUnk, - DWORD dwDestContext, - LPVOID pvDestContext, - DWORD mshlflags, - LPMARSHAL * ppMarshal - ); -# 800 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoGetStdMarshalEx( - LPUNKNOWN pUnkOuter, - DWORD smexflags, - LPUNKNOWN * ppUnkInner - ); -# 814 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -typedef enum tagSTDMSHLFLAGS -{ - SMEXF_SERVER = 0x01, - SMEXF_HANDLER = 0x02 -} STDMSHLFLAGS; - - - - - - - -extern __declspec(dllimport) BOOL __stdcall -CoIsHandlerConnected( - LPUNKNOWN pUnk - ); -# 839 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoMarshalInterThreadInterfaceInStream( - const IID * const riid, - LPUNKNOWN pUnk, - LPSTREAM* ppStm - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoGetInterfaceAndReleaseStream( - LPSTREAM pStm, - const IID * const iid, - LPVOID * ppv - ); -# 861 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoCreateFreeThreadedMarshaler( - LPUNKNOWN punkOuter, - LPUNKNOWN* ppunkMarshal - ); - - - - - - - -extern __declspec(dllimport) void __stdcall -CoFreeUnusedLibraries( - void - ); - - -extern __declspec(dllimport) void __stdcall -CoFreeUnusedLibrariesEx( - DWORD dwUnloadDelay, - DWORD dwReserved - ); -# 895 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoDisconnectContext( - DWORD dwTimeout - ); -# 914 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoInitializeSecurity( - PSECURITY_DESCRIPTOR pSecDesc, - LONG cAuthSvc, - SOLE_AUTHENTICATION_SERVICE* asAuthSvc, - void* pReserved1, - DWORD dwAuthnLevel, - DWORD dwImpLevel, - void* pAuthList, - DWORD dwCapabilities, - void* pReserved3 - ); -# 934 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoGetCallContext( - const IID * const riid, - void** ppInterface - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoQueryProxyBlanket( - IUnknown* pProxy, - DWORD* pwAuthnSvc, - DWORD* pAuthzSvc, - LPOLESTR* pServerPrincName, - DWORD* pAuthnLevel, - DWORD* pImpLevel, - RPC_AUTH_IDENTITY_HANDLE* pAuthInfo, - DWORD* pCapabilites - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoSetProxyBlanket( - IUnknown* pProxy, - DWORD dwAuthnSvc, - DWORD dwAuthzSvc, - OLECHAR* pServerPrincName, - DWORD dwAuthnLevel, - DWORD dwImpLevel, - RPC_AUTH_IDENTITY_HANDLE pAuthInfo, - DWORD dwCapabilities - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoCopyProxy( - IUnknown* pProxy, - IUnknown** ppCopy - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoQueryClientBlanket( - DWORD* pAuthnSvc, - DWORD* pAuthzSvc, - LPOLESTR* pServerPrincName, - DWORD* pAuthnLevel, - DWORD* pImpLevel, - RPC_AUTHZ_HANDLE* pPrivs, - DWORD* pCapabilities - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoImpersonateClient( - void - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoRevertToSelf( - void - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoQueryAuthenticationServices( - DWORD* pcAuthSvc, - SOLE_AUTHENTICATION_SERVICE** asAuthSvc - ); -# 1011 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoSwitchCallContext( - IUnknown* pNewObject, - IUnknown** ppOldObject - ); -# 1036 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoCreateInstance( - const IID * const rclsid, - LPUNKNOWN pUnkOuter, - DWORD dwClsContext, - const IID * const riid, - LPVOID * ppv - ); -# 1055 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoCreateInstanceEx( - const IID * const Clsid, - IUnknown* punkOuter, - DWORD dwClsCtx, - COSERVERINFO* pServerInfo, - DWORD dwCount, - MULTI_QI* pResults - ); - - - - - - -extern __declspec(dllimport) HRESULT __stdcall -CoCreateInstanceFromApp( - const IID * const Clsid, - IUnknown* punkOuter, - DWORD dwClsCtx, - PVOID reserved, - DWORD dwCount, - MULTI_QI* pResults - ); -# 1088 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoRegisterActivationFilter( - IActivationFilter* pActivationFilter - ); -# 1104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoGetCancelObject( - DWORD dwThreadId, - const IID * const iid, - void** ppUnk - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoSetCancelObject( - IUnknown* pUnk - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoCancelCall( - DWORD dwThreadId, - ULONG ulTimeout - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoTestCancel( - void - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoEnableCallCancellation( - LPVOID pReserved - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoDisableCallCancellation( - LPVOID pReserved - ); -# 1153 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -StringFromCLSID( - const IID * const rclsid, - LPOLESTR * lplpsz - ); - -extern __declspec(dllimport) HRESULT __stdcall -CLSIDFromString( - LPCOLESTR lpsz, - LPCLSID pclsid - ); - -extern __declspec(dllimport) HRESULT __stdcall -StringFromIID( - const IID * const rclsid, - LPOLESTR * lplpsz - ); - -extern __declspec(dllimport) HRESULT __stdcall -IIDFromString( - LPCOLESTR lpsz, - LPIID lpiid - ); -# 1184 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -ProgIDFromCLSID( - const IID * const clsid, - LPOLESTR * lplpszProgID - ); - -extern __declspec(dllimport) HRESULT __stdcall -CLSIDFromProgID( - LPCOLESTR lpszProgID, - LPCLSID lpclsid - ); -# 1203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) int __stdcall -StringFromGUID2( - const GUID * const rguid, - LPOLESTR lpsz, - int cchMax - ); - - -extern __declspec(dllimport) HRESULT __stdcall -CoCreateGuid( - GUID * pguid - ); - - - -typedef struct tagPROPVARIANT PROPVARIANT; - - - -extern __declspec(dllimport) HRESULT __stdcall -PropVariantCopy( - PROPVARIANT* pvarDest, - const PROPVARIANT* pvarSrc - ); - -extern __declspec(dllimport) HRESULT __stdcall -PropVariantClear( - PROPVARIANT* pvar - ); - -extern __declspec(dllimport) HRESULT __stdcall -FreePropVariantArray( - ULONG cVariants, - PROPVARIANT* rgvars - ); -# 1261 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoWaitForMultipleHandles( - DWORD dwFlags, - DWORD dwTimeout, - ULONG cHandles, - LPHANDLE pHandles, - LPDWORD lpdwindex - ); - - - -typedef enum tagCOWAIT_FLAGS -{ - COWAIT_DEFAULT = 0, - COWAIT_WAITALL = 1, - COWAIT_ALERTABLE = 2, - COWAIT_INPUTAVAILABLE = 4, - COWAIT_DISPATCH_CALLS = 8, - COWAIT_DISPATCH_WINDOW_MESSAGES = 0x10, -}COWAIT_FLAGS; - ; - - - -typedef enum CWMO_FLAGS -{ - CWMO_DEFAULT = 0, - CWMO_DISPATCH_CALLS = 1, - CWMO_DISPATCH_WINDOW_MESSAGES = 2, -} CWMO_FLAGS; - ; - -extern __declspec(dllimport) HRESULT __stdcall -CoWaitForMultipleObjects( - DWORD dwFlags, - DWORD dwTimeout, - ULONG cHandles, - const HANDLE* pHandles, - LPDWORD lpdwindex - ); -# 1315 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoGetTreatAsClass( - const IID * const clsidOld, - LPCLSID pClsidNew - ); -# 1332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -CoInvalidateRemoteMachineBindings( - LPOLESTR pszMachineName - ); -# 1347 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -enum AgileReferenceOptions -{ - AGILEREFERENCE_DEFAULT = 0, - AGILEREFERENCE_DELAYEDMARSHAL = 1, -}; - - -extern __declspec(dllimport) HRESULT __stdcall -RoGetAgileReference( - enum AgileReferenceOptions options, - const IID * const riid, - IUnknown* pUnk, - IAgileReference** ppAgileReference - ); -# 1375 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 3 -typedef HRESULT (__stdcall * LPFNGETCLASSOBJECT) (const IID * const, const IID * const, LPVOID *); -typedef HRESULT (__stdcall * LPFNCANUNLOADNOW)(void); - - -extern HRESULT __stdcall DllGetClassObject( const IID * const rclsid, const IID * const riid, LPVOID * ppv); - - -extern HRESULT __stdcall DllCanUnloadNow(void); - - - -extern __declspec(dllimport) LPVOID __stdcall -CoTaskMemAlloc( - SIZE_T cb - ); - -extern __declspec(dllimport) LPVOID __stdcall -CoTaskMemRealloc( - LPVOID pv, - SIZE_T cb - ); - -extern __declspec(dllimport) void __stdcall -CoTaskMemFree( - LPVOID pv - ); - - - - - - - -extern __declspec(dllimport) HRESULT __stdcall -CoFileTimeNow( - FILETIME * lpFileTime - ); - -extern __declspec(dllimport) HRESULT __stdcall -CLSIDFromProgIDEx( - LPCOLESTR lpszProgID, - LPCLSID lpclsid - ); - - - - - - - -struct CO_DEVICE_CATALOG_COOKIE__{int unused;}; typedef struct CO_DEVICE_CATALOG_COOKIE__ *CO_DEVICE_CATALOG_COOKIE; - - - -extern __declspec(dllimport) HRESULT __stdcall -CoRegisterDeviceCatalog( - PCWSTR deviceInstanceId, - CO_DEVICE_CATALOG_COOKIE* cookie - ); - - - -extern __declspec(dllimport) HRESULT __stdcall -CoRevokeDeviceCatalog( - CO_DEVICE_CATALOG_COOKIE cookie - ); - - - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 1449 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\combaseapi.h" 2 3 -# 28 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\coml2api.h" 1 3 -# 23 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\coml2api.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 1 3 -# 465 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef struct IMallocSpy IMallocSpy; - - - - - - -typedef struct IBindCtx IBindCtx; - - - - - - -typedef struct IEnumMoniker IEnumMoniker; - - - - - - -typedef struct IRunnableObject IRunnableObject; - - - - - - -typedef struct IRunningObjectTable IRunningObjectTable; - - - - - - -typedef struct IPersist IPersist; - - - - - - -typedef struct IPersistStream IPersistStream; - - - - - - -typedef struct IMoniker IMoniker; - - - - - - -typedef struct IROTData IROTData; - - - - - - -typedef struct IEnumSTATSTG IEnumSTATSTG; - - - - - - -typedef struct IStorage IStorage; - - - - - - -typedef struct IPersistFile IPersistFile; - - - - - - -typedef struct IPersistStorage IPersistStorage; - - - - - - -typedef struct ILockBytes ILockBytes; - - - - - - -typedef struct IEnumFORMATETC IEnumFORMATETC; - - - - - - -typedef struct IEnumSTATDATA IEnumSTATDATA; - - - - - - -typedef struct IRootStorage IRootStorage; - - - - - - -typedef struct IAdviseSink IAdviseSink; - - - - - - -typedef struct AsyncIAdviseSink AsyncIAdviseSink; - - - - - - -typedef struct IAdviseSink2 IAdviseSink2; - - - - - - -typedef struct AsyncIAdviseSink2 AsyncIAdviseSink2; - - - - - - -typedef struct IDataObject IDataObject; - - - - - - -typedef struct IDataAdviseHolder IDataAdviseHolder; - - - - - - -typedef struct IMessageFilter IMessageFilter; - - - - - - -typedef struct IClassActivator IClassActivator; - - - - - - -typedef struct IFillLockBytes IFillLockBytes; - - - - - - -typedef struct IProgressNotify IProgressNotify; - - - - - - -typedef struct ILayoutStorage ILayoutStorage; - - - - - - -typedef struct IBlockingLock IBlockingLock; - - - - - - -typedef struct ITimeAndNoticeControl ITimeAndNoticeControl; - - - - - - -typedef struct IOplockStorage IOplockStorage; - - - - - - -typedef struct IDirectWriterLock IDirectWriterLock; - - - - - - -typedef struct IUrlMon IUrlMon; - - - - - - -typedef struct IForegroundTransfer IForegroundTransfer; - - - - - - -typedef struct IThumbnailExtractor IThumbnailExtractor; - - - - - - -typedef struct IDummyHICONIncluder IDummyHICONIncluder; - - - - - - -typedef struct IProcessLock IProcessLock; - - - - - - -typedef struct ISurrogateService ISurrogateService; - - - - - - -typedef struct IInitializeSpy IInitializeSpy; - - - - - - -typedef struct IApartmentShutdown IApartmentShutdown; - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/unknwn.h" 1 3 -# 96 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/unknwn.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0000_v0_0_s_ifspec; -# 296 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/unknwn.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0001_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0001_v0_0_s_ifspec; -# 441 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/unknwn.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0002_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0002_v0_0_s_ifspec; -# 583 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/unknwn.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0003_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_unknwn_0000_0003_v0_0_s_ifspec; - - - - HRESULT __stdcall IClassFactory_CreateInstance_Proxy( - IClassFactory * This, - - IUnknown *pUnkOuter, - - const IID * const riid, - - void **ppvObject); - - - HRESULT __stdcall IClassFactory_CreateInstance_Stub( - IClassFactory * This, - const IID * const riid, - IUnknown **ppvObject); - - HRESULT __stdcall IClassFactory_LockServer_Proxy( - IClassFactory * This, - BOOL fLock); - - - HRESULT __stdcall IClassFactory_LockServer_Stub( - IClassFactory * This, - BOOL fLock); -# 745 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 2 3 -# 779 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - -#pragma warning(disable: 4201) -# 812 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -#pragma warning(push) - - - -#pragma warning(disable: 4820) - -#pragma warning(disable: 4201) -# 8750 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -#pragma warning(pop) -# 8768 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0055_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0055_v0_0_s_ifspec; - - - - - - - -typedef IMallocSpy *LPMALLOCSPY; - - -extern const IID IID_IMallocSpy; -# 8857 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IMallocSpyVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IMallocSpy * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IMallocSpy * This); - - - ULONG ( __stdcall *Release )( - IMallocSpy * This); - - - SIZE_T ( __stdcall *PreAlloc )( - IMallocSpy * This, - - SIZE_T cbRequest); - - - void *( __stdcall *PostAlloc )( - IMallocSpy * This, - - void *pActual); - - - void *( __stdcall *PreFree )( - IMallocSpy * This, - - void *pRequest, - - BOOL fSpyed); - - - void ( __stdcall *PostFree )( - IMallocSpy * This, - - BOOL fSpyed); - - - SIZE_T ( __stdcall *PreRealloc )( - IMallocSpy * This, - - void *pRequest, - - SIZE_T cbRequest, - - void **ppNewRequest, - - BOOL fSpyed); - - - void *( __stdcall *PostRealloc )( - IMallocSpy * This, - - void *pActual, - - BOOL fSpyed); - - - void *( __stdcall *PreGetSize )( - IMallocSpy * This, - - void *pRequest, - - BOOL fSpyed); - - - SIZE_T ( __stdcall *PostGetSize )( - IMallocSpy * This, - - SIZE_T cbActual, - - BOOL fSpyed); - - - void *( __stdcall *PreDidAlloc )( - IMallocSpy * This, - - void *pRequest, - - BOOL fSpyed); - - - int ( __stdcall *PostDidAlloc )( - IMallocSpy * This, - - void *pRequest, - - BOOL fSpyed, - - int fActual); - - - void ( __stdcall *PreHeapMinimize )( - IMallocSpy * This); - - - void ( __stdcall *PostHeapMinimize )( - IMallocSpy * This); - - - } IMallocSpyVtbl; - - struct IMallocSpy - { - struct IMallocSpyVtbl *lpVtbl; - }; -# 9043 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0056_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0056_v0_0_s_ifspec; - - - - - - - -typedef IBindCtx *LPBC; - -typedef IBindCtx *LPBINDCTX; -# 9064 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef struct tagBIND_OPTS - { - DWORD cbStruct; - DWORD grfFlags; - DWORD grfMode; - DWORD dwTickCountDeadline; - } BIND_OPTS; - -typedef struct tagBIND_OPTS *LPBIND_OPTS; -# 9084 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef struct tagBIND_OPTS2 - { - DWORD cbStruct; - DWORD grfFlags; - DWORD grfMode; - DWORD dwTickCountDeadline; - DWORD dwTrackFlags; - DWORD dwClassContext; - LCID locale; - COSERVERINFO *pServerInfo; - } BIND_OPTS2; - -typedef struct tagBIND_OPTS2 *LPBIND_OPTS2; - - - - - - - -typedef struct tagBIND_OPTS3 - { - DWORD cbStruct; - DWORD grfFlags; - DWORD grfMode; - DWORD dwTickCountDeadline; - DWORD dwTrackFlags; - DWORD dwClassContext; - LCID locale; - COSERVERINFO *pServerInfo; - HWND hwnd; - } BIND_OPTS3; - -typedef struct tagBIND_OPTS3 *LPBIND_OPTS3; - - -typedef -enum tagBIND_FLAGS - { - BIND_MAYBOTHERUSER = 1, - BIND_JUSTTESTEXISTENCE = 2 - } BIND_FLAGS; - - -extern const IID IID_IBindCtx; -# 9174 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IBindCtxVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IBindCtx * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IBindCtx * This); - - - ULONG ( __stdcall *Release )( - IBindCtx * This); - - - HRESULT ( __stdcall *RegisterObjectBound )( - IBindCtx * This, - IUnknown *punk); - - - HRESULT ( __stdcall *RevokeObjectBound )( - IBindCtx * This, - IUnknown *punk); - - - HRESULT ( __stdcall *ReleaseBoundObjects )( - IBindCtx * This); - - - HRESULT ( __stdcall *SetBindOptions )( - IBindCtx * This, - - BIND_OPTS *pbindopts); - - - HRESULT ( __stdcall *GetBindOptions )( - IBindCtx * This, - - BIND_OPTS *pbindopts); - - - HRESULT ( __stdcall *GetRunningObjectTable )( - IBindCtx * This, - IRunningObjectTable **pprot); - - - HRESULT ( __stdcall *RegisterObjectParam )( - IBindCtx * This, - LPOLESTR pszKey, - IUnknown *punk); - - - HRESULT ( __stdcall *GetObjectParam )( - IBindCtx * This, - LPOLESTR pszKey, - IUnknown **ppunk); - - - HRESULT ( __stdcall *EnumObjectParam )( - IBindCtx * This, - IEnumString **ppenum); - - - HRESULT ( __stdcall *RevokeObjectParam )( - IBindCtx * This, - LPOLESTR pszKey); - - - } IBindCtxVtbl; - - struct IBindCtx - { - struct IBindCtxVtbl *lpVtbl; - }; -# 9306 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall IBindCtx_RemoteSetBindOptions_Proxy( - IBindCtx * This, - BIND_OPTS2 *pbindopts); - - -void __stdcall IBindCtx_RemoteSetBindOptions_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IBindCtx_RemoteGetBindOptions_Proxy( - IBindCtx * This, - BIND_OPTS2 *pbindopts); - - -void __stdcall IBindCtx_RemoteGetBindOptions_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 9340 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef IEnumMoniker *LPENUMMONIKER; - - -extern const IID IID_IEnumMoniker; -# 9371 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IEnumMonikerVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IEnumMoniker * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IEnumMoniker * This); - - - ULONG ( __stdcall *Release )( - IEnumMoniker * This); - - - HRESULT ( __stdcall *Next )( - IEnumMoniker * This, - ULONG celt, - - IMoniker **rgelt, - - ULONG *pceltFetched); - - - HRESULT ( __stdcall *Skip )( - IEnumMoniker * This, - ULONG celt); - - - HRESULT ( __stdcall *Reset )( - IEnumMoniker * This); - - - HRESULT ( __stdcall *Clone )( - IEnumMoniker * This, - IEnumMoniker **ppenum); - - - } IEnumMonikerVtbl; - - struct IEnumMoniker - { - struct IEnumMonikerVtbl *lpVtbl; - }; -# 9455 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall IEnumMoniker_RemoteNext_Proxy( - IEnumMoniker * This, - ULONG celt, - IMoniker **rgelt, - ULONG *pceltFetched); - - -void __stdcall IEnumMoniker_RemoteNext_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 9482 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0058_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0058_v0_0_s_ifspec; - - - - - - - -typedef IRunnableObject *LPRUNNABLEOBJECT; - - -extern const IID IID_IRunnableObject; -# 9522 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IRunnableObjectVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IRunnableObject * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IRunnableObject * This); - - - ULONG ( __stdcall *Release )( - IRunnableObject * This); - - - HRESULT ( __stdcall *GetRunningClass )( - IRunnableObject * This, - LPCLSID lpClsid); - - - HRESULT ( __stdcall *Run )( - IRunnableObject * This, - LPBINDCTX pbc); - - - BOOL ( __stdcall *IsRunning )( - IRunnableObject * This); - - - HRESULT ( __stdcall *LockRunning )( - IRunnableObject * This, - BOOL fLock, - BOOL fLastUnlockCloses); - - - HRESULT ( __stdcall *SetContainedObject )( - IRunnableObject * This, - BOOL fContained); - - - } IRunnableObjectVtbl; - - struct IRunnableObject - { - struct IRunnableObjectVtbl *lpVtbl; - }; -# 9611 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall IRunnableObject_RemoteIsRunning_Proxy( - IRunnableObject * This); - - -void __stdcall IRunnableObject_RemoteIsRunning_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 9632 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef IRunningObjectTable *LPRUNNINGOBJECTTABLE; - - -extern const IID IID_IRunningObjectTable; -# 9675 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IRunningObjectTableVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IRunningObjectTable * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IRunningObjectTable * This); - - - ULONG ( __stdcall *Release )( - IRunningObjectTable * This); - - - HRESULT ( __stdcall *Register )( - IRunningObjectTable * This, - DWORD grfFlags, - IUnknown *punkObject, - IMoniker *pmkObjectName, - DWORD *pdwRegister); - - - HRESULT ( __stdcall *Revoke )( - IRunningObjectTable * This, - DWORD dwRegister); - - - HRESULT ( __stdcall *IsRunning )( - IRunningObjectTable * This, - IMoniker *pmkObjectName); - - - HRESULT ( __stdcall *GetObjectA )( - IRunningObjectTable * This, - IMoniker *pmkObjectName, - IUnknown **ppunkObject); - - - HRESULT ( __stdcall *NoteChangeTime )( - IRunningObjectTable * This, - DWORD dwRegister, - FILETIME *pfiletime); - - - HRESULT ( __stdcall *GetTimeOfLastChange )( - IRunningObjectTable * This, - IMoniker *pmkObjectName, - FILETIME *pfiletime); - - - HRESULT ( __stdcall *EnumRunning )( - IRunningObjectTable * This, - IEnumMoniker **ppenumMoniker); - - - } IRunningObjectTableVtbl; - - struct IRunningObjectTable - { - struct IRunningObjectTableVtbl *lpVtbl; - }; -# 9799 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0060_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0060_v0_0_s_ifspec; - - - - - - - -typedef IPersist *LPPERSIST; - - -extern const IID IID_IPersist; -# 9827 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IPersistVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IPersist * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IPersist * This); - - - ULONG ( __stdcall *Release )( - IPersist * This); - - - HRESULT ( __stdcall *GetClassID )( - IPersist * This, - CLSID *pClassID); - - - } IPersistVtbl; - - struct IPersist - { - struct IPersistVtbl *lpVtbl; - }; -# 9894 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef IPersistStream *LPPERSISTSTREAM; - - -extern const IID IID_IPersistStream; -# 9922 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IPersistStreamVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IPersistStream * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IPersistStream * This); - - - ULONG ( __stdcall *Release )( - IPersistStream * This); - - - HRESULT ( __stdcall *GetClassID )( - IPersistStream * This, - CLSID *pClassID); - - - HRESULT ( __stdcall *IsDirty )( - IPersistStream * This); - - - HRESULT ( __stdcall *Load )( - IPersistStream * This, - IStream *pStm); - - - HRESULT ( __stdcall *Save )( - IPersistStream * This, - IStream *pStm, - BOOL fClearDirty); - - - HRESULT ( __stdcall *GetSizeMax )( - IPersistStream * This, - ULARGE_INTEGER *pcbSize); - - - } IPersistStreamVtbl; - - struct IPersistStream - { - struct IPersistStreamVtbl *lpVtbl; - }; -# 10022 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef IMoniker *LPMONIKER; - -typedef -enum tagMKSYS - { - MKSYS_NONE = 0, - MKSYS_GENERICCOMPOSITE = 1, - MKSYS_FILEMONIKER = 2, - MKSYS_ANTIMONIKER = 3, - MKSYS_ITEMMONIKER = 4, - MKSYS_POINTERMONIKER = 5, - MKSYS_CLASSMONIKER = 7, - MKSYS_OBJREFMONIKER = 8, - MKSYS_SESSIONMONIKER = 9, - MKSYS_LUAMONIKER = 10 - } MKSYS; - -typedef -enum tagMKREDUCE - { - MKRREDUCE_ONE = ( 3 << 16 ) , - MKRREDUCE_TOUSER = ( 2 << 16 ) , - MKRREDUCE_THROUGHUSER = ( 1 << 16 ) , - MKRREDUCE_ALL = 0 - } MKRREDUCE; - - -extern const IID IID_IMoniker; -# 10139 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IMonikerVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IMoniker * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IMoniker * This); - - - ULONG ( __stdcall *Release )( - IMoniker * This); - - - HRESULT ( __stdcall *GetClassID )( - IMoniker * This, - CLSID *pClassID); - - - HRESULT ( __stdcall *IsDirty )( - IMoniker * This); - - - HRESULT ( __stdcall *Load )( - IMoniker * This, - IStream *pStm); - - - HRESULT ( __stdcall *Save )( - IMoniker * This, - IStream *pStm, - BOOL fClearDirty); - - - HRESULT ( __stdcall *GetSizeMax )( - IMoniker * This, - ULARGE_INTEGER *pcbSize); - - - HRESULT ( __stdcall *BindToObject )( - IMoniker * This, - - IBindCtx *pbc, - - IMoniker *pmkToLeft, - - const IID * const riidResult, - - void **ppvResult); - - - HRESULT ( __stdcall *BindToStorage )( - IMoniker * This, - - IBindCtx *pbc, - - IMoniker *pmkToLeft, - - const IID * const riid, - - void **ppvObj); - - - HRESULT ( __stdcall *Reduce )( - IMoniker * This, - IBindCtx *pbc, - DWORD dwReduceHowFar, - IMoniker **ppmkToLeft, - IMoniker **ppmkReduced); - - - HRESULT ( __stdcall *ComposeWith )( - IMoniker * This, - IMoniker *pmkRight, - BOOL fOnlyIfNotGeneric, - IMoniker **ppmkComposite); - - - HRESULT ( __stdcall *Enum )( - IMoniker * This, - BOOL fForward, - IEnumMoniker **ppenumMoniker); - - - HRESULT ( __stdcall *IsEqual )( - IMoniker * This, - IMoniker *pmkOtherMoniker); - - - HRESULT ( __stdcall *Hash )( - IMoniker * This, - DWORD *pdwHash); - - - HRESULT ( __stdcall *IsRunning )( - IMoniker * This, - IBindCtx *pbc, - IMoniker *pmkToLeft, - IMoniker *pmkNewlyRunning); - - - HRESULT ( __stdcall *GetTimeOfLastChange )( - IMoniker * This, - IBindCtx *pbc, - IMoniker *pmkToLeft, - FILETIME *pFileTime); - - - HRESULT ( __stdcall *Inverse )( - IMoniker * This, - IMoniker **ppmk); - - - HRESULT ( __stdcall *CommonPrefixWith )( - IMoniker * This, - IMoniker *pmkOther, - IMoniker **ppmkPrefix); - - - HRESULT ( __stdcall *RelativePathTo )( - IMoniker * This, - IMoniker *pmkOther, - IMoniker **ppmkRelPath); - - - HRESULT ( __stdcall *GetDisplayName )( - IMoniker * This, - IBindCtx *pbc, - IMoniker *pmkToLeft, - LPOLESTR *ppszDisplayName); - - - HRESULT ( __stdcall *ParseDisplayName )( - IMoniker * This, - IBindCtx *pbc, - IMoniker *pmkToLeft, - LPOLESTR pszDisplayName, - ULONG *pchEaten, - IMoniker **ppmkOut); - - - HRESULT ( __stdcall *IsSystemMoniker )( - IMoniker * This, - DWORD *pdwMksys); - - - } IMonikerVtbl; - - struct IMoniker - { - struct IMonikerVtbl *lpVtbl; - }; -# 10382 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall IMoniker_RemoteBindToObject_Proxy( - IMoniker * This, - IBindCtx *pbc, - IMoniker *pmkToLeft, - const IID * const riidResult, - IUnknown **ppvResult); - - -void __stdcall IMoniker_RemoteBindToObject_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IMoniker_RemoteBindToStorage_Proxy( - IMoniker * This, - IBindCtx *pbc, - IMoniker *pmkToLeft, - const IID * const riid, - IUnknown **ppvObj); - - -void __stdcall IMoniker_RemoteBindToStorage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 10425 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0063_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0063_v0_0_s_ifspec; -# 10435 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_IROTData; -# 10453 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IROTDataVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IROTData * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IROTData * This); - - - ULONG ( __stdcall *Release )( - IROTData * This); - - - HRESULT ( __stdcall *GetComparisonData )( - IROTData * This, - byte *pbData, - ULONG cbMax, - ULONG *pcbData); - - - } IROTDataVtbl; - - struct IROTData - { - struct IROTDataVtbl *lpVtbl; - }; -# 10525 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0064_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0064_v0_0_s_ifspec; - - - - - - - -typedef IEnumSTATSTG *LPENUMSTATSTG; - - -extern const IID IID_IEnumSTATSTG; -# 10565 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IEnumSTATSTGVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IEnumSTATSTG * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IEnumSTATSTG * This); - - - ULONG ( __stdcall *Release )( - IEnumSTATSTG * This); - - - HRESULT ( __stdcall *Next )( - IEnumSTATSTG * This, - ULONG celt, - - STATSTG *rgelt, - - ULONG *pceltFetched); - - - HRESULT ( __stdcall *Skip )( - IEnumSTATSTG * This, - ULONG celt); - - - HRESULT ( __stdcall *Reset )( - IEnumSTATSTG * This); - - - HRESULT ( __stdcall *Clone )( - IEnumSTATSTG * This, - IEnumSTATSTG **ppenum); - - - } IEnumSTATSTGVtbl; - - struct IEnumSTATSTG - { - struct IEnumSTATSTGVtbl *lpVtbl; - }; -# 10649 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall IEnumSTATSTG_RemoteNext_Proxy( - IEnumSTATSTG * This, - ULONG celt, - STATSTG *rgelt, - ULONG *pceltFetched); - - -void __stdcall IEnumSTATSTG_RemoteNext_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 10673 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef IStorage *LPSTORAGE; - -typedef struct tagRemSNB - { - ULONG ulCntStr; - ULONG ulCntChar; - OLECHAR rgString[ 1 ]; - } RemSNB; - -typedef RemSNB *wireSNB; - - -typedef LPOLESTR *SNB; - - - -extern const IID IID_IStorage; -# 10788 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IStorageVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IStorage * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IStorage * This); - - - ULONG ( __stdcall *Release )( - IStorage * This); - - - HRESULT ( __stdcall *CreateStream )( - IStorage * This, - const OLECHAR *pwcsName, - DWORD grfMode, - DWORD reserved1, - DWORD reserved2, - IStream **ppstm); - - - HRESULT ( __stdcall *OpenStream )( - IStorage * This, - - const OLECHAR *pwcsName, - - void *reserved1, - DWORD grfMode, - DWORD reserved2, - - IStream **ppstm); - - - HRESULT ( __stdcall *CreateStorage )( - IStorage * This, - const OLECHAR *pwcsName, - DWORD grfMode, - DWORD reserved1, - DWORD reserved2, - IStorage **ppstg); - - - HRESULT ( __stdcall *OpenStorage )( - IStorage * This, - const OLECHAR *pwcsName, - IStorage *pstgPriority, - DWORD grfMode, - SNB snbExclude, - DWORD reserved, - IStorage **ppstg); - - - HRESULT ( __stdcall *CopyTo )( - IStorage * This, - DWORD ciidExclude, - - const IID *rgiidExclude, - - SNB snbExclude, - - IStorage *pstgDest); - - - HRESULT ( __stdcall *MoveElementTo )( - IStorage * This, - const OLECHAR *pwcsName, - IStorage *pstgDest, - const OLECHAR *pwcsNewName, - DWORD grfFlags); - - - HRESULT ( __stdcall *Commit )( - IStorage * This, - DWORD grfCommitFlags); - - - HRESULT ( __stdcall *Revert )( - IStorage * This); - - - HRESULT ( __stdcall *EnumElements )( - IStorage * This, - - DWORD reserved1, - - void *reserved2, - - DWORD reserved3, - - IEnumSTATSTG **ppenum); - - - HRESULT ( __stdcall *DestroyElement )( - IStorage * This, - const OLECHAR *pwcsName); - - - HRESULT ( __stdcall *RenameElement )( - IStorage * This, - const OLECHAR *pwcsOldName, - const OLECHAR *pwcsNewName); - - - HRESULT ( __stdcall *SetElementTimes )( - IStorage * This, - const OLECHAR *pwcsName, - const FILETIME *pctime, - const FILETIME *patime, - const FILETIME *pmtime); - - - HRESULT ( __stdcall *SetClass )( - IStorage * This, - const IID * const clsid); - - - HRESULT ( __stdcall *SetStateBits )( - IStorage * This, - DWORD grfStateBits, - DWORD grfMask); - - - HRESULT ( __stdcall *Stat )( - IStorage * This, - STATSTG *pstatstg, - DWORD grfStatFlag); - - - } IStorageVtbl; - - struct IStorage - { - struct IStorageVtbl *lpVtbl; - }; -# 10998 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall IStorage_RemoteOpenStream_Proxy( - IStorage * This, - const OLECHAR *pwcsName, - ULONG cbReserved1, - byte *reserved1, - DWORD grfMode, - DWORD reserved2, - IStream **ppstm); - - -void __stdcall IStorage_RemoteOpenStream_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IStorage_RemoteCopyTo_Proxy( - IStorage * This, - DWORD ciidExclude, - const IID *rgiidExclude, - SNB snbExclude, - IStorage *pstgDest); - - -void __stdcall IStorage_RemoteCopyTo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IStorage_RemoteEnumElements_Proxy( - IStorage * This, - DWORD reserved1, - ULONG cbReserved2, - byte *reserved2, - DWORD reserved3, - IEnumSTATSTG **ppenum); - - -void __stdcall IStorage_RemoteEnumElements_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 11059 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0066_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0066_v0_0_s_ifspec; - - - - - - - -typedef IPersistFile *LPPERSISTFILE; - - -extern const IID IID_IPersistFile; -# 11100 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IPersistFileVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IPersistFile * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IPersistFile * This); - - - ULONG ( __stdcall *Release )( - IPersistFile * This); - - - HRESULT ( __stdcall *GetClassID )( - IPersistFile * This, - CLSID *pClassID); - - - HRESULT ( __stdcall *IsDirty )( - IPersistFile * This); - - - HRESULT ( __stdcall *Load )( - IPersistFile * This, - LPCOLESTR pszFileName, - DWORD dwMode); - - - HRESULT ( __stdcall *Save )( - IPersistFile * This, - LPCOLESTR pszFileName, - BOOL fRemember); - - - HRESULT ( __stdcall *SaveCompleted )( - IPersistFile * This, - LPCOLESTR pszFileName); - - - HRESULT ( __stdcall *GetCurFile )( - IPersistFile * This, - LPOLESTR *ppszFileName); - - - } IPersistFileVtbl; - - struct IPersistFile - { - struct IPersistFileVtbl *lpVtbl; - }; -# 11209 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef IPersistStorage *LPPERSISTSTORAGE; - - -extern const IID IID_IPersistStorage; -# 11242 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IPersistStorageVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IPersistStorage * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IPersistStorage * This); - - - ULONG ( __stdcall *Release )( - IPersistStorage * This); - - - HRESULT ( __stdcall *GetClassID )( - IPersistStorage * This, - CLSID *pClassID); - - - HRESULT ( __stdcall *IsDirty )( - IPersistStorage * This); - - - HRESULT ( __stdcall *InitNew )( - IPersistStorage * This, - IStorage *pStg); - - - HRESULT ( __stdcall *Load )( - IPersistStorage * This, - IStorage *pStg); - - - HRESULT ( __stdcall *Save )( - IPersistStorage * This, - IStorage *pStgSave, - BOOL fSameAsLoad); - - - HRESULT ( __stdcall *SaveCompleted )( - IPersistStorage * This, - IStorage *pStgNew); - - - HRESULT ( __stdcall *HandsOffStorage )( - IPersistStorage * This); - - - } IPersistStorageVtbl; - - struct IPersistStorage - { - struct IPersistStorageVtbl *lpVtbl; - }; -# 11360 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0068_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0068_v0_0_s_ifspec; - - - - - - - -typedef ILockBytes *LPLOCKBYTES; - - -extern const IID IID_ILockBytes; -# 11420 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct ILockBytesVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ILockBytes * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ILockBytes * This); - - - ULONG ( __stdcall *Release )( - ILockBytes * This); - - - HRESULT ( __stdcall *ReadAt )( - ILockBytes * This, - ULARGE_INTEGER ulOffset, - - void *pv, - ULONG cb, - - ULONG *pcbRead); - - - HRESULT ( __stdcall *WriteAt )( - ILockBytes * This, - ULARGE_INTEGER ulOffset, - - const void *pv, - ULONG cb, - - ULONG *pcbWritten); - - - HRESULT ( __stdcall *Flush )( - ILockBytes * This); - - - HRESULT ( __stdcall *SetSize )( - ILockBytes * This, - ULARGE_INTEGER cb); - - - HRESULT ( __stdcall *LockRegion )( - ILockBytes * This, - ULARGE_INTEGER libOffset, - ULARGE_INTEGER cb, - DWORD dwLockType); - - - HRESULT ( __stdcall *UnlockRegion )( - ILockBytes * This, - ULARGE_INTEGER libOffset, - ULARGE_INTEGER cb, - DWORD dwLockType); - - - HRESULT ( __stdcall *Stat )( - ILockBytes * This, - STATSTG *pstatstg, - DWORD grfStatFlag); - - - } ILockBytesVtbl; - - struct ILockBytes - { - struct ILockBytesVtbl *lpVtbl; - }; -# 11539 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall ILockBytes_RemoteReadAt_Proxy( - ILockBytes * This, - ULARGE_INTEGER ulOffset, - byte *pv, - ULONG cb, - ULONG *pcbRead); - - -void __stdcall ILockBytes_RemoteReadAt_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ILockBytes_RemoteWriteAt_Proxy( - ILockBytes * This, - ULARGE_INTEGER ulOffset, - const byte *pv, - ULONG cb, - ULONG *pcbWritten); - - -void __stdcall ILockBytes_RemoteWriteAt_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 11579 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef IEnumFORMATETC *LPENUMFORMATETC; - - -typedef struct tagDVTARGETDEVICE - { - DWORD tdSize; - WORD tdDriverNameOffset; - WORD tdDeviceNameOffset; - WORD tdPortNameOffset; - WORD tdExtDevmodeOffset; - BYTE tdData[ 1 ]; - } DVTARGETDEVICE; - - -typedef CLIPFORMAT *LPCLIPFORMAT; - -typedef struct tagFORMATETC - { - CLIPFORMAT cfFormat; - DVTARGETDEVICE *ptd; - DWORD dwAspect; - LONG lindex; - DWORD tymed; - } FORMATETC; - -typedef struct tagFORMATETC *LPFORMATETC; - - -extern const IID IID_IEnumFORMATETC; -# 11635 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IEnumFORMATETCVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IEnumFORMATETC * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IEnumFORMATETC * This); - - - ULONG ( __stdcall *Release )( - IEnumFORMATETC * This); - - - HRESULT ( __stdcall *Next )( - IEnumFORMATETC * This, - ULONG celt, - - FORMATETC *rgelt, - - ULONG *pceltFetched); - - - HRESULT ( __stdcall *Skip )( - IEnumFORMATETC * This, - ULONG celt); - - - HRESULT ( __stdcall *Reset )( - IEnumFORMATETC * This); - - - HRESULT ( __stdcall *Clone )( - IEnumFORMATETC * This, - IEnumFORMATETC **ppenum); - - - } IEnumFORMATETCVtbl; - - struct IEnumFORMATETC - { - struct IEnumFORMATETCVtbl *lpVtbl; - }; -# 11719 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall IEnumFORMATETC_RemoteNext_Proxy( - IEnumFORMATETC * This, - ULONG celt, - FORMATETC *rgelt, - ULONG *pceltFetched); - - -void __stdcall IEnumFORMATETC_RemoteNext_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 11743 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef IEnumSTATDATA *LPENUMSTATDATA; - -typedef -enum tagADVF - { - ADVF_NODATA = 1, - ADVF_PRIMEFIRST = 2, - ADVF_ONLYONCE = 4, - ADVF_DATAONSTOP = 64, - ADVFCACHE_NOHANDLER = 8, - ADVFCACHE_FORCEBUILTIN = 16, - ADVFCACHE_ONSAVE = 32 - } ADVF; - -typedef struct tagSTATDATA - { - FORMATETC formatetc; - DWORD advf; - IAdviseSink *pAdvSink; - DWORD dwConnection; - } STATDATA; - -typedef STATDATA *LPSTATDATA; - - -extern const IID IID_IEnumSTATDATA; -# 11796 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IEnumSTATDATAVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IEnumSTATDATA * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IEnumSTATDATA * This); - - - ULONG ( __stdcall *Release )( - IEnumSTATDATA * This); - - - HRESULT ( __stdcall *Next )( - IEnumSTATDATA * This, - ULONG celt, - - STATDATA *rgelt, - - ULONG *pceltFetched); - - - HRESULT ( __stdcall *Skip )( - IEnumSTATDATA * This, - ULONG celt); - - - HRESULT ( __stdcall *Reset )( - IEnumSTATDATA * This); - - - HRESULT ( __stdcall *Clone )( - IEnumSTATDATA * This, - IEnumSTATDATA **ppenum); - - - } IEnumSTATDATAVtbl; - - struct IEnumSTATDATA - { - struct IEnumSTATDATAVtbl *lpVtbl; - }; -# 11880 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall IEnumSTATDATA_RemoteNext_Proxy( - IEnumSTATDATA * This, - ULONG celt, - STATDATA *rgelt, - ULONG *pceltFetched); - - -void __stdcall IEnumSTATDATA_RemoteNext_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 11904 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef IRootStorage *LPROOTSTORAGE; - - -extern const IID IID_IRootStorage; -# 11923 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IRootStorageVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IRootStorage * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IRootStorage * This); - - - ULONG ( __stdcall *Release )( - IRootStorage * This); - - - HRESULT ( __stdcall *SwitchToFile )( - IRootStorage * This, - LPOLESTR pszFile); - - - } IRootStorageVtbl; - - struct IRootStorage - { - struct IRootStorageVtbl *lpVtbl; - }; -# 11990 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef IAdviseSink *LPADVISESINK; - -typedef -enum tagTYMED - { - TYMED_HGLOBAL = 1, - TYMED_FILE = 2, - TYMED_ISTREAM = 4, - TYMED_ISTORAGE = 8, - TYMED_GDI = 16, - TYMED_MFPICT = 32, - TYMED_ENHMF = 64, - TYMED_NULL = 0 - } TYMED; - - - -#pragma warning(push) - -#pragma warning(disable: 4200) - -typedef struct tagRemSTGMEDIUM - { - DWORD tymed; - DWORD dwHandleType; - ULONG pData; - ULONG pUnkForRelease; - ULONG cbData; - byte data[ 1 ]; - } RemSTGMEDIUM; - - - -#pragma warning(pop) -# 12043 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef struct tagSTGMEDIUM - { - DWORD tymed; - union - { - HBITMAP hBitmap; - HMETAFILEPICT hMetaFilePict; - HENHMETAFILE hEnhMetaFile; - HGLOBAL hGlobal; - LPOLESTR lpszFileName; - IStream *pstm; - IStorage *pstg; - - } ; - IUnknown *pUnkForRelease; - } uSTGMEDIUM; - - -typedef struct _GDI_OBJECT - { - DWORD ObjectType; - union __MIDL_IAdviseSink_0002 - { - wireHBITMAP hBitmap; - wireHPALETTE hPalette; - wireHGLOBAL hGeneric; - } u; - } GDI_OBJECT; - -typedef struct _userSTGMEDIUM - { - struct _STGMEDIUM_UNION - { - DWORD tymed; - union __MIDL_IAdviseSink_0003 - { - - wireHMETAFILEPICT hMetaFilePict; - wireHENHMETAFILE hHEnhMetaFile; - GDI_OBJECT *hGdiHandle; - wireHGLOBAL hGlobal; - LPOLESTR lpszFileName; - BYTE_BLOB *pstm; - BYTE_BLOB *pstg; - } u; - } ; - IUnknown *pUnkForRelease; - } userSTGMEDIUM; - -typedef userSTGMEDIUM *wireSTGMEDIUM; - -typedef uSTGMEDIUM STGMEDIUM; - -typedef userSTGMEDIUM *wireASYNC_STGMEDIUM; - -typedef STGMEDIUM ASYNC_STGMEDIUM; - -typedef STGMEDIUM *LPSTGMEDIUM; - -typedef struct _userFLAG_STGMEDIUM - { - LONG ContextFlags; - LONG fPassOwnership; - userSTGMEDIUM Stgmed; - } userFLAG_STGMEDIUM; - -typedef userFLAG_STGMEDIUM *wireFLAG_STGMEDIUM; - -typedef struct _FLAG_STGMEDIUM - { - LONG ContextFlags; - LONG fPassOwnership; - STGMEDIUM Stgmed; - } FLAG_STGMEDIUM; - - -extern const IID IID_IAdviseSink; -# 12150 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IAdviseSinkVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IAdviseSink * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IAdviseSink * This); - - - ULONG ( __stdcall *Release )( - IAdviseSink * This); - - - void ( __stdcall *OnDataChange )( - IAdviseSink * This, - - FORMATETC *pFormatetc, - - STGMEDIUM *pStgmed); - - - void ( __stdcall *OnViewChange )( - IAdviseSink * This, - DWORD dwAspect, - LONG lindex); - - - void ( __stdcall *OnRename )( - IAdviseSink * This, - - IMoniker *pmk); - - - void ( __stdcall *OnSave )( - IAdviseSink * This); - - - void ( __stdcall *OnClose )( - IAdviseSink * This); - - - } IAdviseSinkVtbl; - - struct IAdviseSink - { - struct IAdviseSinkVtbl *lpVtbl; - }; -# 12242 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall IAdviseSink_RemoteOnDataChange_Proxy( - IAdviseSink * This, - FORMATETC *pFormatetc, - ASYNC_STGMEDIUM *pStgmed); - - -void __stdcall IAdviseSink_RemoteOnDataChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IAdviseSink_RemoteOnViewChange_Proxy( - IAdviseSink * This, - DWORD dwAspect, - LONG lindex); - - -void __stdcall IAdviseSink_RemoteOnViewChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IAdviseSink_RemoteOnRename_Proxy( - IAdviseSink * This, - IMoniker *pmk); - - -void __stdcall IAdviseSink_RemoteOnRename_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IAdviseSink_RemoteOnSave_Proxy( - IAdviseSink * This); - - -void __stdcall IAdviseSink_RemoteOnSave_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IAdviseSink_RemoteOnClose_Proxy( - IAdviseSink * This); - - -void __stdcall IAdviseSink_RemoteOnClose_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 12313 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_AsyncIAdviseSink; -# 12354 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct AsyncIAdviseSinkVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - AsyncIAdviseSink * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - AsyncIAdviseSink * This); - - - ULONG ( __stdcall *Release )( - AsyncIAdviseSink * This); - - - void ( __stdcall *Begin_OnDataChange )( - AsyncIAdviseSink * This, - - FORMATETC *pFormatetc, - - STGMEDIUM *pStgmed); - - - void ( __stdcall *Finish_OnDataChange )( - AsyncIAdviseSink * This); - - - void ( __stdcall *Begin_OnViewChange )( - AsyncIAdviseSink * This, - DWORD dwAspect, - LONG lindex); - - - void ( __stdcall *Finish_OnViewChange )( - AsyncIAdviseSink * This); - - - void ( __stdcall *Begin_OnRename )( - AsyncIAdviseSink * This, - - IMoniker *pmk); - - - void ( __stdcall *Finish_OnRename )( - AsyncIAdviseSink * This); - - - void ( __stdcall *Begin_OnSave )( - AsyncIAdviseSink * This); - - - void ( __stdcall *Finish_OnSave )( - AsyncIAdviseSink * This); - - - void ( __stdcall *Begin_OnClose )( - AsyncIAdviseSink * This); - - - void ( __stdcall *Finish_OnClose )( - AsyncIAdviseSink * This); - - - } AsyncIAdviseSinkVtbl; - - struct AsyncIAdviseSink - { - struct AsyncIAdviseSinkVtbl *lpVtbl; - }; -# 12481 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall AsyncIAdviseSink_Begin_RemoteOnDataChange_Proxy( - AsyncIAdviseSink * This, - FORMATETC *pFormatetc, - ASYNC_STGMEDIUM *pStgmed); - - -void __stdcall AsyncIAdviseSink_Begin_RemoteOnDataChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall AsyncIAdviseSink_Finish_RemoteOnDataChange_Proxy( - AsyncIAdviseSink * This); - - -void __stdcall AsyncIAdviseSink_Finish_RemoteOnDataChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall AsyncIAdviseSink_Begin_RemoteOnViewChange_Proxy( - AsyncIAdviseSink * This, - DWORD dwAspect, - LONG lindex); - - -void __stdcall AsyncIAdviseSink_Begin_RemoteOnViewChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall AsyncIAdviseSink_Finish_RemoteOnViewChange_Proxy( - AsyncIAdviseSink * This); - - -void __stdcall AsyncIAdviseSink_Finish_RemoteOnViewChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall AsyncIAdviseSink_Begin_RemoteOnRename_Proxy( - AsyncIAdviseSink * This, - IMoniker *pmk); - - -void __stdcall AsyncIAdviseSink_Begin_RemoteOnRename_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall AsyncIAdviseSink_Finish_RemoteOnRename_Proxy( - AsyncIAdviseSink * This); - - -void __stdcall AsyncIAdviseSink_Finish_RemoteOnRename_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall AsyncIAdviseSink_Begin_RemoteOnSave_Proxy( - AsyncIAdviseSink * This); - - -void __stdcall AsyncIAdviseSink_Begin_RemoteOnSave_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall AsyncIAdviseSink_Finish_RemoteOnSave_Proxy( - AsyncIAdviseSink * This); - - -void __stdcall AsyncIAdviseSink_Finish_RemoteOnSave_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall AsyncIAdviseSink_Begin_RemoteOnClose_Proxy( - AsyncIAdviseSink * This); - - -void __stdcall AsyncIAdviseSink_Begin_RemoteOnClose_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall AsyncIAdviseSink_Finish_RemoteOnClose_Proxy( - AsyncIAdviseSink * This); - - -void __stdcall AsyncIAdviseSink_Finish_RemoteOnClose_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 12609 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0073_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0073_v0_0_s_ifspec; - - - - - - - -typedef IAdviseSink2 *LPADVISESINK2; - - -extern const IID IID_IAdviseSink2; -# 12638 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IAdviseSink2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IAdviseSink2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IAdviseSink2 * This); - - - ULONG ( __stdcall *Release )( - IAdviseSink2 * This); - - - void ( __stdcall *OnDataChange )( - IAdviseSink2 * This, - - FORMATETC *pFormatetc, - - STGMEDIUM *pStgmed); - - - void ( __stdcall *OnViewChange )( - IAdviseSink2 * This, - DWORD dwAspect, - LONG lindex); - - - void ( __stdcall *OnRename )( - IAdviseSink2 * This, - - IMoniker *pmk); - - - void ( __stdcall *OnSave )( - IAdviseSink2 * This); - - - void ( __stdcall *OnClose )( - IAdviseSink2 * This); - - - void ( __stdcall *OnLinkSrcChange )( - IAdviseSink2 * This, - - IMoniker *pmk); - - - } IAdviseSink2Vtbl; - - struct IAdviseSink2 - { - struct IAdviseSink2Vtbl *lpVtbl; - }; -# 12740 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall IAdviseSink2_RemoteOnLinkSrcChange_Proxy( - IAdviseSink2 * This, - IMoniker *pmk); - - -void __stdcall IAdviseSink2_RemoteOnLinkSrcChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 12763 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_AsyncIAdviseSink2; -# 12782 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct AsyncIAdviseSink2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - AsyncIAdviseSink2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - AsyncIAdviseSink2 * This); - - - ULONG ( __stdcall *Release )( - AsyncIAdviseSink2 * This); - - - void ( __stdcall *Begin_OnDataChange )( - AsyncIAdviseSink2 * This, - - FORMATETC *pFormatetc, - - STGMEDIUM *pStgmed); - - - void ( __stdcall *Finish_OnDataChange )( - AsyncIAdviseSink2 * This); - - - void ( __stdcall *Begin_OnViewChange )( - AsyncIAdviseSink2 * This, - DWORD dwAspect, - LONG lindex); - - - void ( __stdcall *Finish_OnViewChange )( - AsyncIAdviseSink2 * This); - - - void ( __stdcall *Begin_OnRename )( - AsyncIAdviseSink2 * This, - - IMoniker *pmk); - - - void ( __stdcall *Finish_OnRename )( - AsyncIAdviseSink2 * This); - - - void ( __stdcall *Begin_OnSave )( - AsyncIAdviseSink2 * This); - - - void ( __stdcall *Finish_OnSave )( - AsyncIAdviseSink2 * This); - - - void ( __stdcall *Begin_OnClose )( - AsyncIAdviseSink2 * This); - - - void ( __stdcall *Finish_OnClose )( - AsyncIAdviseSink2 * This); - - - void ( __stdcall *Begin_OnLinkSrcChange )( - AsyncIAdviseSink2 * This, - - IMoniker *pmk); - - - void ( __stdcall *Finish_OnLinkSrcChange )( - AsyncIAdviseSink2 * This); - - - } AsyncIAdviseSink2Vtbl; - - struct AsyncIAdviseSink2 - { - struct AsyncIAdviseSink2Vtbl *lpVtbl; - }; -# 12926 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall AsyncIAdviseSink2_Begin_RemoteOnLinkSrcChange_Proxy( - AsyncIAdviseSink2 * This, - IMoniker *pmk); - - -void __stdcall AsyncIAdviseSink2_Begin_RemoteOnLinkSrcChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall AsyncIAdviseSink2_Finish_RemoteOnLinkSrcChange_Proxy( - AsyncIAdviseSink2 * This); - - -void __stdcall AsyncIAdviseSink2_Finish_RemoteOnLinkSrcChange_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 12962 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0074_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0074_v0_0_s_ifspec; - - - - - - - -typedef IDataObject *LPDATAOBJECT; - -typedef -enum tagDATADIR - { - DATADIR_GET = 1, - DATADIR_SET = 2 - } DATADIR; - - -extern const IID IID_IDataObject; -# 13036 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IDataObjectVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IDataObject * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IDataObject * This); - - - ULONG ( __stdcall *Release )( - IDataObject * This); - - - HRESULT ( __stdcall *GetData )( - IDataObject * This, - - FORMATETC *pformatetcIn, - - STGMEDIUM *pmedium); - - - HRESULT ( __stdcall *GetDataHere )( - IDataObject * This, - - FORMATETC *pformatetc, - - STGMEDIUM *pmedium); - - - HRESULT ( __stdcall *QueryGetData )( - IDataObject * This, - FORMATETC *pformatetc); - - - HRESULT ( __stdcall *GetCanonicalFormatEtc )( - IDataObject * This, - FORMATETC *pformatectIn, - FORMATETC *pformatetcOut); - - - HRESULT ( __stdcall *SetData )( - IDataObject * This, - - FORMATETC *pformatetc, - - STGMEDIUM *pmedium, - BOOL fRelease); - - - HRESULT ( __stdcall *EnumFormatEtc )( - IDataObject * This, - DWORD dwDirection, - IEnumFORMATETC **ppenumFormatEtc); - - - HRESULT ( __stdcall *DAdvise )( - IDataObject * This, - FORMATETC *pformatetc, - DWORD advf, - IAdviseSink *pAdvSink, - DWORD *pdwConnection); - - - HRESULT ( __stdcall *DUnadvise )( - IDataObject * This, - DWORD dwConnection); - - - HRESULT ( __stdcall *EnumDAdvise )( - IDataObject * This, - IEnumSTATDATA **ppenumAdvise); - - - } IDataObjectVtbl; - - struct IDataObject - { - struct IDataObjectVtbl *lpVtbl; - }; -# 13172 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall IDataObject_RemoteGetData_Proxy( - IDataObject * This, - FORMATETC *pformatetcIn, - STGMEDIUM *pRemoteMedium); - - -void __stdcall IDataObject_RemoteGetData_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IDataObject_RemoteGetDataHere_Proxy( - IDataObject * This, - FORMATETC *pformatetc, - STGMEDIUM *pRemoteMedium); - - -void __stdcall IDataObject_RemoteGetDataHere_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IDataObject_RemoteSetData_Proxy( - IDataObject * This, - FORMATETC *pformatetc, - FLAG_STGMEDIUM *pmedium, - BOOL fRelease); - - -void __stdcall IDataObject_RemoteSetData_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 13225 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0075_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0075_v0_0_s_ifspec; - - - - - - - -typedef IDataAdviseHolder *LPDATAADVISEHOLDER; - - -extern const IID IID_IDataAdviseHolder; -# 13278 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IDataAdviseHolderVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IDataAdviseHolder * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IDataAdviseHolder * This); - - - ULONG ( __stdcall *Release )( - IDataAdviseHolder * This); - - - HRESULT ( __stdcall *Advise )( - IDataAdviseHolder * This, - - IDataObject *pDataObject, - - FORMATETC *pFetc, - - DWORD advf, - - IAdviseSink *pAdvise, - - DWORD *pdwConnection); - - - HRESULT ( __stdcall *Unadvise )( - IDataAdviseHolder * This, - - DWORD dwConnection); - - - HRESULT ( __stdcall *EnumAdvise )( - IDataAdviseHolder * This, - - IEnumSTATDATA **ppenumAdvise); - - - HRESULT ( __stdcall *SendOnDataChange )( - IDataAdviseHolder * This, - - IDataObject *pDataObject, - - DWORD dwReserved, - - DWORD advf); - - - } IDataAdviseHolderVtbl; - - struct IDataAdviseHolder - { - struct IDataAdviseHolderVtbl *lpVtbl; - }; -# 13385 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef IMessageFilter *LPMESSAGEFILTER; - -typedef -enum tagCALLTYPE - { - CALLTYPE_TOPLEVEL = 1, - CALLTYPE_NESTED = 2, - CALLTYPE_ASYNC = 3, - CALLTYPE_TOPLEVEL_CALLPENDING = 4, - CALLTYPE_ASYNC_CALLPENDING = 5 - } CALLTYPE; - -typedef -enum tagSERVERCALL - { - SERVERCALL_ISHANDLED = 0, - SERVERCALL_REJECTED = 1, - SERVERCALL_RETRYLATER = 2 - } SERVERCALL; - -typedef -enum tagPENDINGTYPE - { - PENDINGTYPE_TOPLEVEL = 1, - PENDINGTYPE_NESTED = 2 - } PENDINGTYPE; - -typedef -enum tagPENDINGMSG - { - PENDINGMSG_CANCELCALL = 0, - PENDINGMSG_WAITNOPROCESS = 1, - PENDINGMSG_WAITDEFPROCESS = 2 - } PENDINGMSG; - -typedef struct tagINTERFACEINFO - { - IUnknown *pUnk; - IID iid; - WORD wMethod; - } INTERFACEINFO; - -typedef struct tagINTERFACEINFO *LPINTERFACEINFO; - - -extern const IID IID_IMessageFilter; -# 13469 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IMessageFilterVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IMessageFilter * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IMessageFilter * This); - - - ULONG ( __stdcall *Release )( - IMessageFilter * This); - - - DWORD ( __stdcall *HandleInComingCall )( - IMessageFilter * This, - - DWORD dwCallType, - - HTASK htaskCaller, - - DWORD dwTickCount, - - LPINTERFACEINFO lpInterfaceInfo); - - - DWORD ( __stdcall *RetryRejectedCall )( - IMessageFilter * This, - - HTASK htaskCallee, - - DWORD dwTickCount, - - DWORD dwRejectType); - - - DWORD ( __stdcall *MessagePending )( - IMessageFilter * This, - - HTASK htaskCallee, - - DWORD dwTickCount, - - DWORD dwPendingType); - - - } IMessageFilterVtbl; - - struct IMessageFilter - { - struct IMessageFilterVtbl *lpVtbl; - }; -# 13568 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const FMTID FMTID_SummaryInformation; - -extern const FMTID FMTID_DocSummaryInformation; - -extern const FMTID FMTID_UserDefinedProperties; - -extern const FMTID FMTID_DiscardableInformation; - -extern const FMTID FMTID_ImageSummaryInformation; - -extern const FMTID FMTID_AudioSummaryInformation; - -extern const FMTID FMTID_VideoSummaryInformation; - -extern const FMTID FMTID_MediaFileSummaryInformation; - - - -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0077_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0077_v0_0_s_ifspec; -# 13596 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_IClassActivator; -# 13616 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IClassActivatorVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IClassActivator * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IClassActivator * This); - - - ULONG ( __stdcall *Release )( - IClassActivator * This); - - - HRESULT ( __stdcall *GetClassObject )( - IClassActivator * This, - const IID * const rclsid, - DWORD dwClassContext, - LCID locale, - const IID * const riid, - void **ppv); - - - } IClassActivatorVtbl; - - struct IClassActivator - { - struct IClassActivatorVtbl *lpVtbl; - }; -# 13690 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0078_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0078_v0_0_s_ifspec; -# 13700 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_IFillLockBytes; -# 13737 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IFillLockBytesVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IFillLockBytes * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IFillLockBytes * This); - - - ULONG ( __stdcall *Release )( - IFillLockBytes * This); - - - HRESULT ( __stdcall *FillAppend )( - IFillLockBytes * This, - - const void *pv, - - ULONG cb, - - ULONG *pcbWritten); - - - HRESULT ( __stdcall *FillAt )( - IFillLockBytes * This, - - ULARGE_INTEGER ulOffset, - - const void *pv, - - ULONG cb, - - ULONG *pcbWritten); - - - HRESULT ( __stdcall *SetFillSize )( - IFillLockBytes * This, - ULARGE_INTEGER ulSize); - - - HRESULT ( __stdcall *Terminate )( - IFillLockBytes * This, - BOOL bCanceled); - - - } IFillLockBytesVtbl; - - struct IFillLockBytes - { - struct IFillLockBytesVtbl *lpVtbl; - }; -# 13830 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - HRESULT __stdcall IFillLockBytes_RemoteFillAppend_Proxy( - IFillLockBytes * This, - const byte *pv, - ULONG cb, - ULONG *pcbWritten); - - -void __stdcall IFillLockBytes_RemoteFillAppend_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IFillLockBytes_RemoteFillAt_Proxy( - IFillLockBytes * This, - ULARGE_INTEGER ulOffset, - const byte *pv, - ULONG cb, - ULONG *pcbWritten); - - -void __stdcall IFillLockBytes_RemoteFillAt_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 13872 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0079_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0079_v0_0_s_ifspec; -# 13882 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_IProgressNotify; -# 13901 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IProgressNotifyVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IProgressNotify * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IProgressNotify * This); - - - ULONG ( __stdcall *Release )( - IProgressNotify * This); - - - HRESULT ( __stdcall *OnProgress )( - IProgressNotify * This, - DWORD dwProgressCurrent, - DWORD dwProgressMaximum, - BOOL fAccurate, - BOOL fOwner); - - - } IProgressNotifyVtbl; - - struct IProgressNotify - { - struct IProgressNotifyVtbl *lpVtbl; - }; -# 13974 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0080_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0080_v0_0_s_ifspec; - - - - - - - -typedef struct tagStorageLayout - { - DWORD LayoutType; - OLECHAR *pwcsElementName; - LARGE_INTEGER cOffset; - LARGE_INTEGER cBytes; - } StorageLayout; - - -extern const IID IID_ILayoutStorage; -# 14025 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct ILayoutStorageVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ILayoutStorage * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ILayoutStorage * This); - - - ULONG ( __stdcall *Release )( - ILayoutStorage * This); - - - HRESULT ( __stdcall *LayoutScript )( - ILayoutStorage * This, - - StorageLayout *pStorageLayout, - - DWORD nEntries, - - DWORD glfInterleavedFlag); - - - HRESULT ( __stdcall *BeginMonitor )( - ILayoutStorage * This); - - - HRESULT ( __stdcall *EndMonitor )( - ILayoutStorage * This); - - - HRESULT ( __stdcall *ReLayoutDocfile )( - ILayoutStorage * This, - - OLECHAR *pwcsNewDfName); - - - HRESULT ( __stdcall *ReLayoutDocfileOnILockBytes )( - ILayoutStorage * This, - - ILockBytes *pILockBytes); - - - } ILayoutStorageVtbl; - - struct ILayoutStorage - { - struct ILayoutStorageVtbl *lpVtbl; - }; -# 14132 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0081_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0081_v0_0_s_ifspec; -# 14142 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_IBlockingLock; -# 14160 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IBlockingLockVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IBlockingLock * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IBlockingLock * This); - - - ULONG ( __stdcall *Release )( - IBlockingLock * This); - - - HRESULT ( __stdcall *Lock )( - IBlockingLock * This, - DWORD dwTimeout); - - - HRESULT ( __stdcall *Unlock )( - IBlockingLock * This); - - - } IBlockingLockVtbl; - - struct IBlockingLock - { - struct IBlockingLockVtbl *lpVtbl; - }; -# 14235 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_ITimeAndNoticeControl; -# 14252 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct ITimeAndNoticeControlVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ITimeAndNoticeControl * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ITimeAndNoticeControl * This); - - - ULONG ( __stdcall *Release )( - ITimeAndNoticeControl * This); - - - HRESULT ( __stdcall *SuppressChanges )( - ITimeAndNoticeControl * This, - DWORD res1, - DWORD res2); - - - } ITimeAndNoticeControlVtbl; - - struct ITimeAndNoticeControl - { - struct ITimeAndNoticeControlVtbl *lpVtbl; - }; -# 14321 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_IOplockStorage; -# 14350 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IOplockStorageVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOplockStorage * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOplockStorage * This); - - - ULONG ( __stdcall *Release )( - IOplockStorage * This); - - - HRESULT ( __stdcall *CreateStorageEx )( - IOplockStorage * This, - LPCWSTR pwcsName, - DWORD grfMode, - DWORD stgfmt, - DWORD grfAttrs, - const IID * const riid, - void **ppstgOpen); - - - HRESULT ( __stdcall *OpenStorageEx )( - IOplockStorage * This, - LPCWSTR pwcsName, - DWORD grfMode, - DWORD stgfmt, - DWORD grfAttrs, - const IID * const riid, - void **ppstgOpen); - - - } IOplockStorageVtbl; - - struct IOplockStorage - { - struct IOplockStorageVtbl *lpVtbl; - }; -# 14438 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0084_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0084_v0_0_s_ifspec; -# 14448 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_IDirectWriterLock; -# 14468 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IDirectWriterLockVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IDirectWriterLock * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IDirectWriterLock * This); - - - ULONG ( __stdcall *Release )( - IDirectWriterLock * This); - - - HRESULT ( __stdcall *WaitForWriteAccess )( - IDirectWriterLock * This, - DWORD dwTimeout); - - - HRESULT ( __stdcall *ReleaseWriteAccess )( - IDirectWriterLock * This); - - - HRESULT ( __stdcall *HaveWriteAccess )( - IDirectWriterLock * This); - - - } IDirectWriterLockVtbl; - - struct IDirectWriterLock - { - struct IDirectWriterLockVtbl *lpVtbl; - }; -# 14552 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0085_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0085_v0_0_s_ifspec; -# 14562 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_IUrlMon; -# 14587 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IUrlMonVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IUrlMon * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IUrlMon * This); - - - ULONG ( __stdcall *Release )( - IUrlMon * This); - - - HRESULT ( __stdcall *AsyncGetClassBits )( - IUrlMon * This, - const IID * const rclsid, - LPCWSTR pszTYPE, - LPCWSTR pszExt, - DWORD dwFileVersionMS, - DWORD dwFileVersionLS, - LPCWSTR pszCodeBase, - IBindCtx *pbc, - DWORD dwClassContext, - const IID * const riid, - DWORD flags); - - - } IUrlMonVtbl; - - struct IUrlMon - { - struct IUrlMonVtbl *lpVtbl; - }; -# 14664 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_IForegroundTransfer; -# 14681 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IForegroundTransferVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IForegroundTransfer * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IForegroundTransfer * This); - - - ULONG ( __stdcall *Release )( - IForegroundTransfer * This); - - - HRESULT ( __stdcall *AllowForegroundTransfer )( - IForegroundTransfer * This, - - void *lpvReserved); - - - } IForegroundTransferVtbl; - - struct IForegroundTransfer - { - struct IForegroundTransferVtbl *lpVtbl; - }; -# 14750 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_IThumbnailExtractor; -# 14774 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IThumbnailExtractorVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IThumbnailExtractor * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IThumbnailExtractor * This); - - - ULONG ( __stdcall *Release )( - IThumbnailExtractor * This); - - - HRESULT ( __stdcall *ExtractThumbnail )( - IThumbnailExtractor * This, - IStorage *pStg, - ULONG ulLength, - ULONG ulHeight, - ULONG *pulOutputLength, - ULONG *pulOutputHeight, - HBITMAP *phOutputBitmap); - - - HRESULT ( __stdcall *OnFileUpdated )( - IThumbnailExtractor * This, - IStorage *pStg); - - - } IThumbnailExtractorVtbl; - - struct IThumbnailExtractor - { - struct IThumbnailExtractorVtbl *lpVtbl; - }; -# 14855 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_IDummyHICONIncluder; -# 14872 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IDummyHICONIncluderVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IDummyHICONIncluder * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IDummyHICONIncluder * This); - - - ULONG ( __stdcall *Release )( - IDummyHICONIncluder * This); - - - HRESULT ( __stdcall *Dummy )( - IDummyHICONIncluder * This, - HICON h1, - HDC h2); - - - } IDummyHICONIncluderVtbl; - - struct IDummyHICONIncluder - { - struct IDummyHICONIncluderVtbl *lpVtbl; - }; -# 14937 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -typedef -enum tagApplicationType - { - ServerApplication = 0, - LibraryApplication = ( ServerApplication + 1 ) - } ApplicationType; - -typedef -enum tagShutdownType - { - IdleShutdown = 0, - ForcedShutdown = ( IdleShutdown + 1 ) - } ShutdownType; - - - -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0089_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0089_v0_0_s_ifspec; -# 14963 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_IProcessLock; -# 14980 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IProcessLockVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IProcessLock * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IProcessLock * This); - - - ULONG ( __stdcall *Release )( - IProcessLock * This); - - - ULONG ( __stdcall *AddRefOnProcess )( - IProcessLock * This); - - - ULONG ( __stdcall *ReleaseRefOnProcess )( - IProcessLock * This); - - - } IProcessLockVtbl; - - struct IProcessLock - { - struct IProcessLockVtbl *lpVtbl; - }; -# 15054 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_ISurrogateService; -# 15093 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct ISurrogateServiceVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ISurrogateService * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ISurrogateService * This); - - - ULONG ( __stdcall *Release )( - ISurrogateService * This); - - - HRESULT ( __stdcall *Init )( - ISurrogateService * This, - - const GUID * const rguidProcessID, - - IProcessLock *pProcessLock, - - BOOL *pfApplicationAware); - - - HRESULT ( __stdcall *ApplicationLaunch )( - ISurrogateService * This, - - const GUID * const rguidApplID, - - ApplicationType appType); - - - HRESULT ( __stdcall *ApplicationFree )( - ISurrogateService * This, - - const GUID * const rguidApplID); - - - HRESULT ( __stdcall *CatalogRefresh )( - ISurrogateService * This, - - ULONG ulReserved); - - - HRESULT ( __stdcall *ProcessShutdown )( - ISurrogateService * This, - - ShutdownType shutdownType); - - - } ISurrogateServiceVtbl; - - struct ISurrogateService - { - struct ISurrogateServiceVtbl *lpVtbl; - }; -# 15203 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0091_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0091_v0_0_s_ifspec; - - - - - - - -typedef IInitializeSpy *LPINITIALIZESPY; - - -extern const IID IID_IInitializeSpy; -# 15250 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IInitializeSpyVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInitializeSpy * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInitializeSpy * This); - - - ULONG ( __stdcall *Release )( - IInitializeSpy * This); - - - HRESULT ( __stdcall *PreInitialize )( - IInitializeSpy * This, - - DWORD dwCoInit, - - DWORD dwCurThreadAptRefs); - - - HRESULT ( __stdcall *PostInitialize )( - IInitializeSpy * This, - - HRESULT hrCoInit, - - DWORD dwCoInit, - - DWORD dwNewThreadAptRefs); - - - HRESULT ( __stdcall *PreUninitialize )( - IInitializeSpy * This, - - DWORD dwCurThreadAptRefs); - - - HRESULT ( __stdcall *PostUninitialize )( - IInitializeSpy * This, - - DWORD dwNewThreadAptRefs); - - - } IInitializeSpyVtbl; - - struct IInitializeSpy - { - struct IInitializeSpyVtbl *lpVtbl; - }; -# 15355 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0092_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0092_v0_0_s_ifspec; -# 15365 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -extern const IID IID_IApartmentShutdown; -# 15382 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 - typedef struct IApartmentShutdownVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IApartmentShutdown * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IApartmentShutdown * This); - - - ULONG ( __stdcall *Release )( - IApartmentShutdown * This); - - - void ( __stdcall *OnUninitialize )( - IApartmentShutdown * This, - - UINT64 ui64ApartmentIdentifier); - - - } IApartmentShutdownVtbl; - - struct IApartmentShutdown - { - struct IApartmentShutdownVtbl *lpVtbl; - }; -# 15451 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objidl.h" 3 -#pragma warning(pop) - - - - - - -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0093_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_objidl_0000_0093_v0_0_s_ifspec; - - - -unsigned long __stdcall ASYNC_STGMEDIUM_UserSize( unsigned long *, unsigned long , ASYNC_STGMEDIUM * ); -unsigned char * __stdcall ASYNC_STGMEDIUM_UserMarshal( unsigned long *, unsigned char *, ASYNC_STGMEDIUM * ); -unsigned char * __stdcall ASYNC_STGMEDIUM_UserUnmarshal( unsigned long *, unsigned char *, ASYNC_STGMEDIUM * ); -void __stdcall ASYNC_STGMEDIUM_UserFree( unsigned long *, ASYNC_STGMEDIUM * ); - -unsigned long __stdcall CLIPFORMAT_UserSize( unsigned long *, unsigned long , CLIPFORMAT * ); -unsigned char * __stdcall CLIPFORMAT_UserMarshal( unsigned long *, unsigned char *, CLIPFORMAT * ); -unsigned char * __stdcall CLIPFORMAT_UserUnmarshal( unsigned long *, unsigned char *, CLIPFORMAT * ); -void __stdcall CLIPFORMAT_UserFree( unsigned long *, CLIPFORMAT * ); - -unsigned long __stdcall FLAG_STGMEDIUM_UserSize( unsigned long *, unsigned long , FLAG_STGMEDIUM * ); -unsigned char * __stdcall FLAG_STGMEDIUM_UserMarshal( unsigned long *, unsigned char *, FLAG_STGMEDIUM * ); -unsigned char * __stdcall FLAG_STGMEDIUM_UserUnmarshal( unsigned long *, unsigned char *, FLAG_STGMEDIUM * ); -void __stdcall FLAG_STGMEDIUM_UserFree( unsigned long *, FLAG_STGMEDIUM * ); - -unsigned long __stdcall HBITMAP_UserSize( unsigned long *, unsigned long , HBITMAP * ); -unsigned char * __stdcall HBITMAP_UserMarshal( unsigned long *, unsigned char *, HBITMAP * ); -unsigned char * __stdcall HBITMAP_UserUnmarshal( unsigned long *, unsigned char *, HBITMAP * ); -void __stdcall HBITMAP_UserFree( unsigned long *, HBITMAP * ); - -unsigned long __stdcall HDC_UserSize( unsigned long *, unsigned long , HDC * ); -unsigned char * __stdcall HDC_UserMarshal( unsigned long *, unsigned char *, HDC * ); -unsigned char * __stdcall HDC_UserUnmarshal( unsigned long *, unsigned char *, HDC * ); -void __stdcall HDC_UserFree( unsigned long *, HDC * ); - -unsigned long __stdcall HICON_UserSize( unsigned long *, unsigned long , HICON * ); -unsigned char * __stdcall HICON_UserMarshal( unsigned long *, unsigned char *, HICON * ); -unsigned char * __stdcall HICON_UserUnmarshal( unsigned long *, unsigned char *, HICON * ); -void __stdcall HICON_UserFree( unsigned long *, HICON * ); - -unsigned long __stdcall SNB_UserSize( unsigned long *, unsigned long , SNB * ); -unsigned char * __stdcall SNB_UserMarshal( unsigned long *, unsigned char *, SNB * ); -unsigned char * __stdcall SNB_UserUnmarshal( unsigned long *, unsigned char *, SNB * ); -void __stdcall SNB_UserFree( unsigned long *, SNB * ); - -unsigned long __stdcall STGMEDIUM_UserSize( unsigned long *, unsigned long , STGMEDIUM * ); -unsigned char * __stdcall STGMEDIUM_UserMarshal( unsigned long *, unsigned char *, STGMEDIUM * ); -unsigned char * __stdcall STGMEDIUM_UserUnmarshal( unsigned long *, unsigned char *, STGMEDIUM * ); -void __stdcall STGMEDIUM_UserFree( unsigned long *, STGMEDIUM * ); - -unsigned long __stdcall ASYNC_STGMEDIUM_UserSize64( unsigned long *, unsigned long , ASYNC_STGMEDIUM * ); -unsigned char * __stdcall ASYNC_STGMEDIUM_UserMarshal64( unsigned long *, unsigned char *, ASYNC_STGMEDIUM * ); -unsigned char * __stdcall ASYNC_STGMEDIUM_UserUnmarshal64( unsigned long *, unsigned char *, ASYNC_STGMEDIUM * ); -void __stdcall ASYNC_STGMEDIUM_UserFree64( unsigned long *, ASYNC_STGMEDIUM * ); - -unsigned long __stdcall CLIPFORMAT_UserSize64( unsigned long *, unsigned long , CLIPFORMAT * ); -unsigned char * __stdcall CLIPFORMAT_UserMarshal64( unsigned long *, unsigned char *, CLIPFORMAT * ); -unsigned char * __stdcall CLIPFORMAT_UserUnmarshal64( unsigned long *, unsigned char *, CLIPFORMAT * ); -void __stdcall CLIPFORMAT_UserFree64( unsigned long *, CLIPFORMAT * ); - -unsigned long __stdcall FLAG_STGMEDIUM_UserSize64( unsigned long *, unsigned long , FLAG_STGMEDIUM * ); -unsigned char * __stdcall FLAG_STGMEDIUM_UserMarshal64( unsigned long *, unsigned char *, FLAG_STGMEDIUM * ); -unsigned char * __stdcall FLAG_STGMEDIUM_UserUnmarshal64( unsigned long *, unsigned char *, FLAG_STGMEDIUM * ); -void __stdcall FLAG_STGMEDIUM_UserFree64( unsigned long *, FLAG_STGMEDIUM * ); - -unsigned long __stdcall HBITMAP_UserSize64( unsigned long *, unsigned long , HBITMAP * ); -unsigned char * __stdcall HBITMAP_UserMarshal64( unsigned long *, unsigned char *, HBITMAP * ); -unsigned char * __stdcall HBITMAP_UserUnmarshal64( unsigned long *, unsigned char *, HBITMAP * ); -void __stdcall HBITMAP_UserFree64( unsigned long *, HBITMAP * ); - -unsigned long __stdcall HDC_UserSize64( unsigned long *, unsigned long , HDC * ); -unsigned char * __stdcall HDC_UserMarshal64( unsigned long *, unsigned char *, HDC * ); -unsigned char * __stdcall HDC_UserUnmarshal64( unsigned long *, unsigned char *, HDC * ); -void __stdcall HDC_UserFree64( unsigned long *, HDC * ); - -unsigned long __stdcall HICON_UserSize64( unsigned long *, unsigned long , HICON * ); -unsigned char * __stdcall HICON_UserMarshal64( unsigned long *, unsigned char *, HICON * ); -unsigned char * __stdcall HICON_UserUnmarshal64( unsigned long *, unsigned char *, HICON * ); -void __stdcall HICON_UserFree64( unsigned long *, HICON * ); - -unsigned long __stdcall SNB_UserSize64( unsigned long *, unsigned long , SNB * ); -unsigned char * __stdcall SNB_UserMarshal64( unsigned long *, unsigned char *, SNB * ); -unsigned char * __stdcall SNB_UserUnmarshal64( unsigned long *, unsigned char *, SNB * ); -void __stdcall SNB_UserFree64( unsigned long *, SNB * ); - -unsigned long __stdcall STGMEDIUM_UserSize64( unsigned long *, unsigned long , STGMEDIUM * ); -unsigned char * __stdcall STGMEDIUM_UserMarshal64( unsigned long *, unsigned char *, STGMEDIUM * ); -unsigned char * __stdcall STGMEDIUM_UserUnmarshal64( unsigned long *, unsigned char *, STGMEDIUM * ); -void __stdcall STGMEDIUM_UserFree64( unsigned long *, STGMEDIUM * ); - - HRESULT __stdcall IEnumUnknown_Next_Proxy( - IEnumUnknown * This, - - ULONG celt, - - IUnknown **rgelt, - - ULONG *pceltFetched); - - - HRESULT __stdcall IEnumUnknown_Next_Stub( - IEnumUnknown * This, - ULONG celt, - IUnknown **rgelt, - ULONG *pceltFetched); - - HRESULT __stdcall IEnumString_Next_Proxy( - IEnumString * This, - ULONG celt, - - LPOLESTR *rgelt, - - ULONG *pceltFetched); - - - HRESULT __stdcall IEnumString_Next_Stub( - IEnumString * This, - ULONG celt, - LPOLESTR *rgelt, - ULONG *pceltFetched); - - HRESULT __stdcall ISequentialStream_Read_Proxy( - ISequentialStream * This, - - void *pv, - - ULONG cb, - - ULONG *pcbRead); - - - HRESULT __stdcall ISequentialStream_Read_Stub( - ISequentialStream * This, - byte *pv, - ULONG cb, - ULONG *pcbRead); - - HRESULT __stdcall ISequentialStream_Write_Proxy( - ISequentialStream * This, - - const void *pv, - - ULONG cb, - - ULONG *pcbWritten); - - - HRESULT __stdcall ISequentialStream_Write_Stub( - ISequentialStream * This, - const byte *pv, - ULONG cb, - ULONG *pcbWritten); - - HRESULT __stdcall IStream_Seek_Proxy( - IStream * This, - LARGE_INTEGER dlibMove, - DWORD dwOrigin, - - ULARGE_INTEGER *plibNewPosition); - - - HRESULT __stdcall IStream_Seek_Stub( - IStream * This, - LARGE_INTEGER dlibMove, - DWORD dwOrigin, - ULARGE_INTEGER *plibNewPosition); - - HRESULT __stdcall IStream_CopyTo_Proxy( - IStream * This, - - IStream *pstm, - ULARGE_INTEGER cb, - - ULARGE_INTEGER *pcbRead, - - ULARGE_INTEGER *pcbWritten); - - - HRESULT __stdcall IStream_CopyTo_Stub( - IStream * This, - IStream *pstm, - ULARGE_INTEGER cb, - ULARGE_INTEGER *pcbRead, - ULARGE_INTEGER *pcbWritten); - - HRESULT __stdcall IBindCtx_SetBindOptions_Proxy( - IBindCtx * This, - - BIND_OPTS *pbindopts); - - - HRESULT __stdcall IBindCtx_SetBindOptions_Stub( - IBindCtx * This, - BIND_OPTS2 *pbindopts); - - HRESULT __stdcall IBindCtx_GetBindOptions_Proxy( - IBindCtx * This, - - BIND_OPTS *pbindopts); - - - HRESULT __stdcall IBindCtx_GetBindOptions_Stub( - IBindCtx * This, - BIND_OPTS2 *pbindopts); - - HRESULT __stdcall IEnumMoniker_Next_Proxy( - IEnumMoniker * This, - ULONG celt, - - IMoniker **rgelt, - - ULONG *pceltFetched); - - - HRESULT __stdcall IEnumMoniker_Next_Stub( - IEnumMoniker * This, - ULONG celt, - IMoniker **rgelt, - ULONG *pceltFetched); - - BOOL __stdcall IRunnableObject_IsRunning_Proxy( - IRunnableObject * This); - - - HRESULT __stdcall IRunnableObject_IsRunning_Stub( - IRunnableObject * This); - - HRESULT __stdcall IMoniker_BindToObject_Proxy( - IMoniker * This, - - IBindCtx *pbc, - - IMoniker *pmkToLeft, - - const IID * const riidResult, - - void **ppvResult); - - - HRESULT __stdcall IMoniker_BindToObject_Stub( - IMoniker * This, - IBindCtx *pbc, - IMoniker *pmkToLeft, - const IID * const riidResult, - IUnknown **ppvResult); - - HRESULT __stdcall IMoniker_BindToStorage_Proxy( - IMoniker * This, - - IBindCtx *pbc, - - IMoniker *pmkToLeft, - - const IID * const riid, - - void **ppvObj); - - - HRESULT __stdcall IMoniker_BindToStorage_Stub( - IMoniker * This, - IBindCtx *pbc, - IMoniker *pmkToLeft, - const IID * const riid, - IUnknown **ppvObj); - - HRESULT __stdcall IEnumSTATSTG_Next_Proxy( - IEnumSTATSTG * This, - ULONG celt, - - STATSTG *rgelt, - - ULONG *pceltFetched); - - - HRESULT __stdcall IEnumSTATSTG_Next_Stub( - IEnumSTATSTG * This, - ULONG celt, - STATSTG *rgelt, - ULONG *pceltFetched); - - HRESULT __stdcall IStorage_OpenStream_Proxy( - IStorage * This, - - const OLECHAR *pwcsName, - - void *reserved1, - DWORD grfMode, - DWORD reserved2, - - IStream **ppstm); - - - HRESULT __stdcall IStorage_OpenStream_Stub( - IStorage * This, - const OLECHAR *pwcsName, - ULONG cbReserved1, - byte *reserved1, - DWORD grfMode, - DWORD reserved2, - IStream **ppstm); - - HRESULT __stdcall IStorage_CopyTo_Proxy( - IStorage * This, - DWORD ciidExclude, - - const IID *rgiidExclude, - - SNB snbExclude, - - IStorage *pstgDest); - - - HRESULT __stdcall IStorage_CopyTo_Stub( - IStorage * This, - DWORD ciidExclude, - const IID *rgiidExclude, - SNB snbExclude, - IStorage *pstgDest); - - HRESULT __stdcall IStorage_EnumElements_Proxy( - IStorage * This, - - DWORD reserved1, - - void *reserved2, - - DWORD reserved3, - - IEnumSTATSTG **ppenum); - - - HRESULT __stdcall IStorage_EnumElements_Stub( - IStorage * This, - DWORD reserved1, - ULONG cbReserved2, - byte *reserved2, - DWORD reserved3, - IEnumSTATSTG **ppenum); - - HRESULT __stdcall ILockBytes_ReadAt_Proxy( - ILockBytes * This, - ULARGE_INTEGER ulOffset, - - void *pv, - ULONG cb, - - ULONG *pcbRead); - - - HRESULT __stdcall ILockBytes_ReadAt_Stub( - ILockBytes * This, - ULARGE_INTEGER ulOffset, - byte *pv, - ULONG cb, - ULONG *pcbRead); - - HRESULT __stdcall ILockBytes_WriteAt_Proxy( - ILockBytes * This, - ULARGE_INTEGER ulOffset, - - const void *pv, - ULONG cb, - - ULONG *pcbWritten); - - - HRESULT __stdcall ILockBytes_WriteAt_Stub( - ILockBytes * This, - ULARGE_INTEGER ulOffset, - const byte *pv, - ULONG cb, - ULONG *pcbWritten); - - HRESULT __stdcall IEnumFORMATETC_Next_Proxy( - IEnumFORMATETC * This, - ULONG celt, - - FORMATETC *rgelt, - - ULONG *pceltFetched); - - - HRESULT __stdcall IEnumFORMATETC_Next_Stub( - IEnumFORMATETC * This, - ULONG celt, - FORMATETC *rgelt, - ULONG *pceltFetched); - - HRESULT __stdcall IEnumSTATDATA_Next_Proxy( - IEnumSTATDATA * This, - ULONG celt, - - STATDATA *rgelt, - - ULONG *pceltFetched); - - - HRESULT __stdcall IEnumSTATDATA_Next_Stub( - IEnumSTATDATA * This, - ULONG celt, - STATDATA *rgelt, - ULONG *pceltFetched); - - void __stdcall IAdviseSink_OnDataChange_Proxy( - IAdviseSink * This, - - FORMATETC *pFormatetc, - - STGMEDIUM *pStgmed); - - - HRESULT __stdcall IAdviseSink_OnDataChange_Stub( - IAdviseSink * This, - FORMATETC *pFormatetc, - ASYNC_STGMEDIUM *pStgmed); - - void __stdcall IAdviseSink_OnViewChange_Proxy( - IAdviseSink * This, - DWORD dwAspect, - LONG lindex); - - - HRESULT __stdcall IAdviseSink_OnViewChange_Stub( - IAdviseSink * This, - DWORD dwAspect, - LONG lindex); - - void __stdcall IAdviseSink_OnRename_Proxy( - IAdviseSink * This, - - IMoniker *pmk); - - - HRESULT __stdcall IAdviseSink_OnRename_Stub( - IAdviseSink * This, - IMoniker *pmk); - - void __stdcall IAdviseSink_OnSave_Proxy( - IAdviseSink * This); - - - HRESULT __stdcall IAdviseSink_OnSave_Stub( - IAdviseSink * This); - - void __stdcall IAdviseSink_OnClose_Proxy( - IAdviseSink * This); - - - HRESULT __stdcall IAdviseSink_OnClose_Stub( - IAdviseSink * This); - - void __stdcall AsyncIAdviseSink_Begin_OnDataChange_Proxy( - AsyncIAdviseSink * This, - - FORMATETC *pFormatetc, - - STGMEDIUM *pStgmed); - - - HRESULT __stdcall AsyncIAdviseSink_Begin_OnDataChange_Stub( - AsyncIAdviseSink * This, - FORMATETC *pFormatetc, - ASYNC_STGMEDIUM *pStgmed); - - void __stdcall AsyncIAdviseSink_Finish_OnDataChange_Proxy( - AsyncIAdviseSink * This); - - - HRESULT __stdcall AsyncIAdviseSink_Finish_OnDataChange_Stub( - AsyncIAdviseSink * This); - - void __stdcall AsyncIAdviseSink_Begin_OnViewChange_Proxy( - AsyncIAdviseSink * This, - DWORD dwAspect, - LONG lindex); - - - HRESULT __stdcall AsyncIAdviseSink_Begin_OnViewChange_Stub( - AsyncIAdviseSink * This, - DWORD dwAspect, - LONG lindex); - - void __stdcall AsyncIAdviseSink_Finish_OnViewChange_Proxy( - AsyncIAdviseSink * This); - - - HRESULT __stdcall AsyncIAdviseSink_Finish_OnViewChange_Stub( - AsyncIAdviseSink * This); - - void __stdcall AsyncIAdviseSink_Begin_OnRename_Proxy( - AsyncIAdviseSink * This, - - IMoniker *pmk); - - - HRESULT __stdcall AsyncIAdviseSink_Begin_OnRename_Stub( - AsyncIAdviseSink * This, - IMoniker *pmk); - - void __stdcall AsyncIAdviseSink_Finish_OnRename_Proxy( - AsyncIAdviseSink * This); - - - HRESULT __stdcall AsyncIAdviseSink_Finish_OnRename_Stub( - AsyncIAdviseSink * This); - - void __stdcall AsyncIAdviseSink_Begin_OnSave_Proxy( - AsyncIAdviseSink * This); - - - HRESULT __stdcall AsyncIAdviseSink_Begin_OnSave_Stub( - AsyncIAdviseSink * This); - - void __stdcall AsyncIAdviseSink_Finish_OnSave_Proxy( - AsyncIAdviseSink * This); - - - HRESULT __stdcall AsyncIAdviseSink_Finish_OnSave_Stub( - AsyncIAdviseSink * This); - - void __stdcall AsyncIAdviseSink_Begin_OnClose_Proxy( - AsyncIAdviseSink * This); - - - HRESULT __stdcall AsyncIAdviseSink_Begin_OnClose_Stub( - AsyncIAdviseSink * This); - - void __stdcall AsyncIAdviseSink_Finish_OnClose_Proxy( - AsyncIAdviseSink * This); - - - HRESULT __stdcall AsyncIAdviseSink_Finish_OnClose_Stub( - AsyncIAdviseSink * This); - - void __stdcall IAdviseSink2_OnLinkSrcChange_Proxy( - IAdviseSink2 * This, - - IMoniker *pmk); - - - HRESULT __stdcall IAdviseSink2_OnLinkSrcChange_Stub( - IAdviseSink2 * This, - IMoniker *pmk); - - void __stdcall AsyncIAdviseSink2_Begin_OnLinkSrcChange_Proxy( - AsyncIAdviseSink2 * This, - - IMoniker *pmk); - - - HRESULT __stdcall AsyncIAdviseSink2_Begin_OnLinkSrcChange_Stub( - AsyncIAdviseSink2 * This, - IMoniker *pmk); - - void __stdcall AsyncIAdviseSink2_Finish_OnLinkSrcChange_Proxy( - AsyncIAdviseSink2 * This); - - - HRESULT __stdcall AsyncIAdviseSink2_Finish_OnLinkSrcChange_Stub( - AsyncIAdviseSink2 * This); - - HRESULT __stdcall IDataObject_GetData_Proxy( - IDataObject * This, - - FORMATETC *pformatetcIn, - - STGMEDIUM *pmedium); - - - HRESULT __stdcall IDataObject_GetData_Stub( - IDataObject * This, - FORMATETC *pformatetcIn, - STGMEDIUM *pRemoteMedium); - - HRESULT __stdcall IDataObject_GetDataHere_Proxy( - IDataObject * This, - - FORMATETC *pformatetc, - - STGMEDIUM *pmedium); - - - HRESULT __stdcall IDataObject_GetDataHere_Stub( - IDataObject * This, - FORMATETC *pformatetc, - STGMEDIUM *pRemoteMedium); - - HRESULT __stdcall IDataObject_SetData_Proxy( - IDataObject * This, - - FORMATETC *pformatetc, - - STGMEDIUM *pmedium, - BOOL fRelease); - - - HRESULT __stdcall IDataObject_SetData_Stub( - IDataObject * This, - FORMATETC *pformatetc, - FLAG_STGMEDIUM *pmedium, - BOOL fRelease); - - HRESULT __stdcall IFillLockBytes_FillAppend_Proxy( - IFillLockBytes * This, - - const void *pv, - - ULONG cb, - - ULONG *pcbWritten); - - - HRESULT __stdcall IFillLockBytes_FillAppend_Stub( - IFillLockBytes * This, - const byte *pv, - ULONG cb, - ULONG *pcbWritten); - - HRESULT __stdcall IFillLockBytes_FillAt_Proxy( - IFillLockBytes * This, - - ULARGE_INTEGER ulOffset, - - const void *pv, - - ULONG cb, - - ULONG *pcbWritten); - - - HRESULT __stdcall IFillLockBytes_FillAt_Stub( - IFillLockBytes * This, - ULARGE_INTEGER ulOffset, - const byte *pv, - ULONG cb, - ULONG *pcbWritten); -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\coml2api.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 1 3 -# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 -typedef struct IPropertyStorage IPropertyStorage; - - - - - - -typedef struct IPropertySetStorage IPropertySetStorage; - - - - - - -typedef struct IEnumSTATPROPSTG IEnumSTATPROPSTG; - - - - - - -typedef struct IEnumSTATPROPSETSTG IEnumSTATPROPSETSTG; - - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 1 3 -# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef struct ICreateTypeInfo ICreateTypeInfo; - - - - - - -typedef struct ICreateTypeInfo2 ICreateTypeInfo2; - - - - - - -typedef struct ICreateTypeLib ICreateTypeLib; - - - - - - -typedef struct ICreateTypeLib2 ICreateTypeLib2; - - - - - - -typedef struct IDispatch IDispatch; - - - - - - -typedef struct IEnumVARIANT IEnumVARIANT; - - - - - - -typedef struct ITypeComp ITypeComp; - - - - - - -typedef struct ITypeInfo ITypeInfo; - - - - - - -typedef struct ITypeInfo2 ITypeInfo2; - - - - - - -typedef struct ITypeLib ITypeLib; - - - - - - -typedef struct ITypeLib2 ITypeLib2; - - - - - - -typedef struct ITypeChangeEvents ITypeChangeEvents; - - - - - - -typedef struct IErrorInfo IErrorInfo; - - - - - - -typedef struct ICreateErrorInfo ICreateErrorInfo; - - - - - - -typedef struct ISupportErrorInfo ISupportErrorInfo; - - - - - - -typedef struct ITypeFactory ITypeFactory; - - - - - - -typedef struct ITypeMarshal ITypeMarshal; - - - - - - -typedef struct IRecordInfo IRecordInfo; - - - - - - -typedef struct IErrorLog IErrorLog; - - - - - - -typedef struct IPropertyBag IPropertyBag; - - - - - - -typedef struct ITypeLibRegistrationReader ITypeLibRegistrationReader; - - - - - - -typedef struct ITypeLibRegistration ITypeLibRegistration; -# 224 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - -#pragma warning(disable: 4201) -# 266 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0000_v0_0_s_ifspec; - - - - - - - -typedef CY CURRENCY; - -typedef struct tagSAFEARRAYBOUND - { - ULONG cElements; - LONG lLbound; - } SAFEARRAYBOUND; - -typedef struct tagSAFEARRAYBOUND *LPSAFEARRAYBOUND; - - -typedef struct _wireVARIANT *wireVARIANT; - -typedef struct _wireBRECORD *wireBRECORD; - -typedef struct _wireSAFEARR_BSTR - { - ULONG Size; - wireBSTR *aBstr; - } SAFEARR_BSTR; - -typedef struct _wireSAFEARR_UNKNOWN - { - ULONG Size; - IUnknown **apUnknown; - } SAFEARR_UNKNOWN; - -typedef struct _wireSAFEARR_DISPATCH - { - ULONG Size; - IDispatch **apDispatch; - } SAFEARR_DISPATCH; - -typedef struct _wireSAFEARR_VARIANT - { - ULONG Size; - wireVARIANT *aVariant; - } SAFEARR_VARIANT; - -typedef struct _wireSAFEARR_BRECORD - { - ULONG Size; - wireBRECORD *aRecord; - } SAFEARR_BRECORD; - -typedef struct _wireSAFEARR_HAVEIID - { - ULONG Size; - IUnknown **apUnknown; - IID iid; - } SAFEARR_HAVEIID; - -typedef -enum tagSF_TYPE - { - SF_ERROR = VT_ERROR, - SF_I1 = VT_I1, - SF_I2 = VT_I2, - SF_I4 = VT_I4, - SF_I8 = VT_I8, - SF_BSTR = VT_BSTR, - SF_UNKNOWN = VT_UNKNOWN, - SF_DISPATCH = VT_DISPATCH, - SF_VARIANT = VT_VARIANT, - SF_RECORD = VT_RECORD, - SF_HAVEIID = ( VT_UNKNOWN | VT_RESERVED ) - } SF_TYPE; - -typedef struct _wireSAFEARRAY_UNION - { - ULONG sfType; - union __MIDL_IOleAutomationTypes_0001 - { - SAFEARR_BSTR BstrStr; - SAFEARR_UNKNOWN UnknownStr; - SAFEARR_DISPATCH DispatchStr; - SAFEARR_VARIANT VariantStr; - SAFEARR_BRECORD RecordStr; - SAFEARR_HAVEIID HaveIidStr; - BYTE_SIZEDARR ByteStr; - WORD_SIZEDARR WordStr; - DWORD_SIZEDARR LongStr; - HYPER_SIZEDARR HyperStr; - } u; - } SAFEARRAYUNION; - -typedef struct _wireSAFEARRAY - { - USHORT cDims; - USHORT fFeatures; - ULONG cbElements; - ULONG cLocks; - SAFEARRAYUNION uArrayStructs; - SAFEARRAYBOUND rgsabound[ 1 ]; - } *wireSAFEARRAY; - -typedef wireSAFEARRAY *wirePSAFEARRAY; - -typedef struct tagSAFEARRAY - { - USHORT cDims; - USHORT fFeatures; - ULONG cbElements; - ULONG cLocks; - PVOID pvData; - SAFEARRAYBOUND rgsabound[ 1 ]; - } SAFEARRAY; - -typedef SAFEARRAY *LPSAFEARRAY; -# 474 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef struct tagVARIANT VARIANT; - -struct tagVARIANT - { - union - { - struct - { - VARTYPE vt; - WORD wReserved1; - WORD wReserved2; - WORD wReserved3; - union - { - LONGLONG llVal; - LONG lVal; - BYTE bVal; - SHORT iVal; - FLOAT fltVal; - DOUBLE dblVal; - VARIANT_BOOL boolVal; - VARIANT_BOOL __OBSOLETE__VARIANT_BOOL; - SCODE scode; - CY cyVal; - DATE date; - BSTR bstrVal; - IUnknown *punkVal; - IDispatch *pdispVal; - SAFEARRAY *parray; - BYTE *pbVal; - SHORT *piVal; - LONG *plVal; - LONGLONG *pllVal; - FLOAT *pfltVal; - DOUBLE *pdblVal; - VARIANT_BOOL *pboolVal; - VARIANT_BOOL *__OBSOLETE__VARIANT_PBOOL; - SCODE *pscode; - CY *pcyVal; - DATE *pdate; - BSTR *pbstrVal; - IUnknown **ppunkVal; - IDispatch **ppdispVal; - SAFEARRAY **pparray; - VARIANT *pvarVal; - PVOID byref; - CHAR cVal; - USHORT uiVal; - ULONG ulVal; - ULONGLONG ullVal; - INT intVal; - UINT uintVal; - DECIMAL *pdecVal; - CHAR *pcVal; - USHORT *puiVal; - ULONG *pulVal; - ULONGLONG *pullVal; - INT *pintVal; - UINT *puintVal; - struct - { - PVOID pvRecord; - IRecordInfo *pRecInfo; - } ; - } ; - } ; - DECIMAL decVal; - } ; - } ; -typedef VARIANT *LPVARIANT; - -typedef VARIANT VARIANTARG; - -typedef VARIANT *LPVARIANTARG; -# 566 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -struct _wireBRECORD - { - ULONG fFlags; - ULONG clSize; - IRecordInfo *pRecInfo; - byte *pRecord; - } ; -struct _wireVARIANT - { - DWORD clSize; - DWORD rpcReserved; - USHORT vt; - USHORT wReserved1; - USHORT wReserved2; - USHORT wReserved3; - union - { - LONGLONG llVal; - LONG lVal; - BYTE bVal; - SHORT iVal; - FLOAT fltVal; - DOUBLE dblVal; - VARIANT_BOOL boolVal; - SCODE scode; - CY cyVal; - DATE date; - wireBSTR bstrVal; - IUnknown *punkVal; - IDispatch *pdispVal; - wirePSAFEARRAY parray; - wireBRECORD brecVal; - BYTE *pbVal; - SHORT *piVal; - LONG *plVal; - LONGLONG *pllVal; - FLOAT *pfltVal; - DOUBLE *pdblVal; - VARIANT_BOOL *pboolVal; - SCODE *pscode; - CY *pcyVal; - DATE *pdate; - wireBSTR *pbstrVal; - IUnknown **ppunkVal; - IDispatch **ppdispVal; - wirePSAFEARRAY *pparray; - wireVARIANT *pvarVal; - CHAR cVal; - USHORT uiVal; - ULONG ulVal; - ULONGLONG ullVal; - INT intVal; - UINT uintVal; - DECIMAL decVal; - DECIMAL *pdecVal; - CHAR *pcVal; - USHORT *puiVal; - ULONG *pulVal; - ULONGLONG *pullVal; - INT *pintVal; - UINT *puintVal; - - - } ; - } ; -typedef LONG DISPID; - -typedef DISPID MEMBERID; - -typedef DWORD HREFTYPE; - -typedef -enum tagTYPEKIND - { - TKIND_ENUM = 0, - TKIND_RECORD = ( TKIND_ENUM + 1 ) , - TKIND_MODULE = ( TKIND_RECORD + 1 ) , - TKIND_INTERFACE = ( TKIND_MODULE + 1 ) , - TKIND_DISPATCH = ( TKIND_INTERFACE + 1 ) , - TKIND_COCLASS = ( TKIND_DISPATCH + 1 ) , - TKIND_ALIAS = ( TKIND_COCLASS + 1 ) , - TKIND_UNION = ( TKIND_ALIAS + 1 ) , - TKIND_MAX = ( TKIND_UNION + 1 ) - } TYPEKIND; - -typedef struct tagTYPEDESC - { - union - { - struct tagTYPEDESC *lptdesc; - struct tagARRAYDESC *lpadesc; - HREFTYPE hreftype; - - } ; - VARTYPE vt; - } TYPEDESC; - -typedef struct tagARRAYDESC - { - TYPEDESC tdescElem; - USHORT cDims; - SAFEARRAYBOUND rgbounds[ 1 ]; - } ARRAYDESC; - -typedef struct tagPARAMDESCEX - { - ULONG cBytes; - VARIANTARG varDefaultValue; - } PARAMDESCEX; - -typedef struct tagPARAMDESCEX *LPPARAMDESCEX; - -typedef struct tagPARAMDESC - { - LPPARAMDESCEX pparamdescex; - USHORT wParamFlags; - } PARAMDESC; - -typedef struct tagPARAMDESC *LPPARAMDESC; -# 702 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef struct tagIDLDESC - { - ULONG_PTR dwReserved; - USHORT wIDLFlags; - } IDLDESC; - -typedef struct tagIDLDESC *LPIDLDESC; -# 731 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef struct tagELEMDESC { - TYPEDESC tdesc; - union { - IDLDESC idldesc; - PARAMDESC paramdesc; - } ; -} ELEMDESC, * LPELEMDESC; - - - -typedef struct tagTYPEATTR - { - GUID guid; - LCID lcid; - DWORD dwReserved; - MEMBERID memidConstructor; - MEMBERID memidDestructor; - LPOLESTR lpstrSchema; - ULONG cbSizeInstance; - TYPEKIND typekind; - WORD cFuncs; - WORD cVars; - WORD cImplTypes; - WORD cbSizeVft; - WORD cbAlignment; - WORD wTypeFlags; - WORD wMajorVerNum; - WORD wMinorVerNum; - TYPEDESC tdescAlias; - IDLDESC idldescType; - } TYPEATTR; - -typedef struct tagTYPEATTR *LPTYPEATTR; - -typedef struct tagDISPPARAMS - { - VARIANTARG *rgvarg; - DISPID *rgdispidNamedArgs; - UINT cArgs; - UINT cNamedArgs; - } DISPPARAMS; -# 792 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef struct tagEXCEPINFO { - WORD wCode; - WORD wReserved; - BSTR bstrSource; - BSTR bstrDescription; - BSTR bstrHelpFile; - DWORD dwHelpContext; - PVOID pvReserved; - HRESULT (__stdcall *pfnDeferredFillIn)(struct tagEXCEPINFO *); - SCODE scode; -} EXCEPINFO, * LPEXCEPINFO; - - - -typedef -enum tagCALLCONV - { - CC_FASTCALL = 0, - CC_CDECL = 1, - CC_MSCPASCAL = ( CC_CDECL + 1 ) , - CC_PASCAL = CC_MSCPASCAL, - CC_MACPASCAL = ( CC_PASCAL + 1 ) , - CC_STDCALL = ( CC_MACPASCAL + 1 ) , - CC_FPFASTCALL = ( CC_STDCALL + 1 ) , - CC_SYSCALL = ( CC_FPFASTCALL + 1 ) , - CC_MPWCDECL = ( CC_SYSCALL + 1 ) , - CC_MPWPASCAL = ( CC_MPWCDECL + 1 ) , - CC_MAX = ( CC_MPWPASCAL + 1 ) - } CALLCONV; - -typedef -enum tagFUNCKIND - { - FUNC_VIRTUAL = 0, - FUNC_PUREVIRTUAL = ( FUNC_VIRTUAL + 1 ) , - FUNC_NONVIRTUAL = ( FUNC_PUREVIRTUAL + 1 ) , - FUNC_STATIC = ( FUNC_NONVIRTUAL + 1 ) , - FUNC_DISPATCH = ( FUNC_STATIC + 1 ) - } FUNCKIND; - -typedef -enum tagINVOKEKIND - { - INVOKE_FUNC = 1, - INVOKE_PROPERTYGET = 2, - INVOKE_PROPERTYPUT = 4, - INVOKE_PROPERTYPUTREF = 8 - } INVOKEKIND; - -typedef struct tagFUNCDESC - { - MEMBERID memid; - SCODE *lprgscode; - ELEMDESC *lprgelemdescParam; - FUNCKIND funckind; - INVOKEKIND invkind; - CALLCONV callconv; - SHORT cParams; - SHORT cParamsOpt; - SHORT oVft; - SHORT cScodes; - ELEMDESC elemdescFunc; - WORD wFuncFlags; - } FUNCDESC; - -typedef struct tagFUNCDESC *LPFUNCDESC; - -typedef -enum tagVARKIND - { - VAR_PERINSTANCE = 0, - VAR_STATIC = ( VAR_PERINSTANCE + 1 ) , - VAR_CONST = ( VAR_STATIC + 1 ) , - VAR_DISPATCH = ( VAR_CONST + 1 ) - } VARKIND; -# 876 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef struct tagVARDESC - { - MEMBERID memid; - LPOLESTR lpstrSchema; - union - { - ULONG oInst; - VARIANT *lpvarValue; - } ; - ELEMDESC elemdescVar; - WORD wVarFlags; - VARKIND varkind; - } VARDESC; - -typedef struct tagVARDESC *LPVARDESC; - -typedef -enum tagTYPEFLAGS - { - TYPEFLAG_FAPPOBJECT = 0x1, - TYPEFLAG_FCANCREATE = 0x2, - TYPEFLAG_FLICENSED = 0x4, - TYPEFLAG_FPREDECLID = 0x8, - TYPEFLAG_FHIDDEN = 0x10, - TYPEFLAG_FCONTROL = 0x20, - TYPEFLAG_FDUAL = 0x40, - TYPEFLAG_FNONEXTENSIBLE = 0x80, - TYPEFLAG_FOLEAUTOMATION = 0x100, - TYPEFLAG_FRESTRICTED = 0x200, - TYPEFLAG_FAGGREGATABLE = 0x400, - TYPEFLAG_FREPLACEABLE = 0x800, - TYPEFLAG_FDISPATCHABLE = 0x1000, - TYPEFLAG_FREVERSEBIND = 0x2000, - TYPEFLAG_FPROXY = 0x4000 - } TYPEFLAGS; - -typedef -enum tagFUNCFLAGS - { - FUNCFLAG_FRESTRICTED = 0x1, - FUNCFLAG_FSOURCE = 0x2, - FUNCFLAG_FBINDABLE = 0x4, - FUNCFLAG_FREQUESTEDIT = 0x8, - FUNCFLAG_FDISPLAYBIND = 0x10, - FUNCFLAG_FDEFAULTBIND = 0x20, - FUNCFLAG_FHIDDEN = 0x40, - FUNCFLAG_FUSESGETLASTERROR = 0x80, - FUNCFLAG_FDEFAULTCOLLELEM = 0x100, - FUNCFLAG_FUIDEFAULT = 0x200, - FUNCFLAG_FNONBROWSABLE = 0x400, - FUNCFLAG_FREPLACEABLE = 0x800, - FUNCFLAG_FIMMEDIATEBIND = 0x1000 - } FUNCFLAGS; - -typedef -enum tagVARFLAGS - { - VARFLAG_FREADONLY = 0x1, - VARFLAG_FSOURCE = 0x2, - VARFLAG_FBINDABLE = 0x4, - VARFLAG_FREQUESTEDIT = 0x8, - VARFLAG_FDISPLAYBIND = 0x10, - VARFLAG_FDEFAULTBIND = 0x20, - VARFLAG_FHIDDEN = 0x40, - VARFLAG_FRESTRICTED = 0x80, - VARFLAG_FDEFAULTCOLLELEM = 0x100, - VARFLAG_FUIDEFAULT = 0x200, - VARFLAG_FNONBROWSABLE = 0x400, - VARFLAG_FREPLACEABLE = 0x800, - VARFLAG_FIMMEDIATEBIND = 0x1000 - } VARFLAGS; - -typedef struct tagCLEANLOCALSTORAGE - { - IUnknown *pInterface; - PVOID pStorage; - DWORD flags; - } CLEANLOCALSTORAGE; - -typedef struct tagCUSTDATAITEM - { - GUID guid; - VARIANTARG varValue; - } CUSTDATAITEM; - -typedef struct tagCUSTDATAITEM *LPCUSTDATAITEM; - -typedef struct tagCUSTDATA - { - DWORD cCustData; - LPCUSTDATAITEM prgCustData; - } CUSTDATA; - -typedef struct tagCUSTDATA *LPCUSTDATA; - - - -extern RPC_IF_HANDLE IOleAutomationTypes_v1_0_c_ifspec; -extern RPC_IF_HANDLE IOleAutomationTypes_v1_0_s_ifspec; -# 986 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0001_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0001_v0_0_s_ifspec; - - - - - - - -typedef ICreateTypeInfo *LPCREATETYPEINFO; - - -extern const IID IID_ICreateTypeInfo; -# 1104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ICreateTypeInfoVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ICreateTypeInfo * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ICreateTypeInfo * This); - - - ULONG ( __stdcall *Release )( - ICreateTypeInfo * This); - - - HRESULT ( __stdcall *SetGuid )( - ICreateTypeInfo * This, - const GUID * const guid); - - - HRESULT ( __stdcall *SetTypeFlags )( - ICreateTypeInfo * This, - UINT uTypeFlags); - - - HRESULT ( __stdcall *SetDocString )( - ICreateTypeInfo * This, - - LPOLESTR pStrDoc); - - - HRESULT ( __stdcall *SetHelpContext )( - ICreateTypeInfo * This, - DWORD dwHelpContext); - - - HRESULT ( __stdcall *SetVersion )( - ICreateTypeInfo * This, - WORD wMajorVerNum, - WORD wMinorVerNum); - - - HRESULT ( __stdcall *AddRefTypeInfo )( - ICreateTypeInfo * This, - ITypeInfo *pTInfo, - HREFTYPE *phRefType); - - - HRESULT ( __stdcall *AddFuncDesc )( - ICreateTypeInfo * This, - UINT index, - FUNCDESC *pFuncDesc); - - - HRESULT ( __stdcall *AddImplType )( - ICreateTypeInfo * This, - UINT index, - HREFTYPE hRefType); - - - HRESULT ( __stdcall *SetImplTypeFlags )( - ICreateTypeInfo * This, - UINT index, - INT implTypeFlags); - - - HRESULT ( __stdcall *SetAlignment )( - ICreateTypeInfo * This, - WORD cbAlignment); - - - HRESULT ( __stdcall *SetSchema )( - ICreateTypeInfo * This, - - LPOLESTR pStrSchema); - - - HRESULT ( __stdcall *AddVarDesc )( - ICreateTypeInfo * This, - UINT index, - VARDESC *pVarDesc); - - - HRESULT ( __stdcall *SetFuncAndParamNames )( - ICreateTypeInfo * This, - UINT index, - - LPOLESTR *rgszNames, - UINT cNames); - - - HRESULT ( __stdcall *SetVarName )( - ICreateTypeInfo * This, - UINT index, - - LPOLESTR szName); - - - HRESULT ( __stdcall *SetTypeDescAlias )( - ICreateTypeInfo * This, - TYPEDESC *pTDescAlias); - - - HRESULT ( __stdcall *DefineFuncAsDllEntry )( - ICreateTypeInfo * This, - UINT index, - - LPOLESTR szDllName, - - LPOLESTR szProcName); - - - HRESULT ( __stdcall *SetFuncDocString )( - ICreateTypeInfo * This, - UINT index, - - LPOLESTR szDocString); - - - HRESULT ( __stdcall *SetVarDocString )( - ICreateTypeInfo * This, - UINT index, - - LPOLESTR szDocString); - - - HRESULT ( __stdcall *SetFuncHelpContext )( - ICreateTypeInfo * This, - UINT index, - DWORD dwHelpContext); - - - HRESULT ( __stdcall *SetVarHelpContext )( - ICreateTypeInfo * This, - UINT index, - DWORD dwHelpContext); - - - HRESULT ( __stdcall *SetMops )( - ICreateTypeInfo * This, - UINT index, - - BSTR bstrMops); - - - HRESULT ( __stdcall *SetTypeIdldesc )( - ICreateTypeInfo * This, - IDLDESC *pIdlDesc); - - - HRESULT ( __stdcall *LayOut )( - ICreateTypeInfo * This); - - - } ICreateTypeInfoVtbl; - - struct ICreateTypeInfo - { - struct ICreateTypeInfoVtbl *lpVtbl; - }; -# 1371 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef ICreateTypeInfo2 *LPCREATETYPEINFO2; - - -extern const IID IID_ICreateTypeInfo2; -# 1445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ICreateTypeInfo2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ICreateTypeInfo2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ICreateTypeInfo2 * This); - - - ULONG ( __stdcall *Release )( - ICreateTypeInfo2 * This); - - - HRESULT ( __stdcall *SetGuid )( - ICreateTypeInfo2 * This, - const GUID * const guid); - - - HRESULT ( __stdcall *SetTypeFlags )( - ICreateTypeInfo2 * This, - UINT uTypeFlags); - - - HRESULT ( __stdcall *SetDocString )( - ICreateTypeInfo2 * This, - - LPOLESTR pStrDoc); - - - HRESULT ( __stdcall *SetHelpContext )( - ICreateTypeInfo2 * This, - DWORD dwHelpContext); - - - HRESULT ( __stdcall *SetVersion )( - ICreateTypeInfo2 * This, - WORD wMajorVerNum, - WORD wMinorVerNum); - - - HRESULT ( __stdcall *AddRefTypeInfo )( - ICreateTypeInfo2 * This, - ITypeInfo *pTInfo, - HREFTYPE *phRefType); - - - HRESULT ( __stdcall *AddFuncDesc )( - ICreateTypeInfo2 * This, - UINT index, - FUNCDESC *pFuncDesc); - - - HRESULT ( __stdcall *AddImplType )( - ICreateTypeInfo2 * This, - UINT index, - HREFTYPE hRefType); - - - HRESULT ( __stdcall *SetImplTypeFlags )( - ICreateTypeInfo2 * This, - UINT index, - INT implTypeFlags); - - - HRESULT ( __stdcall *SetAlignment )( - ICreateTypeInfo2 * This, - WORD cbAlignment); - - - HRESULT ( __stdcall *SetSchema )( - ICreateTypeInfo2 * This, - - LPOLESTR pStrSchema); - - - HRESULT ( __stdcall *AddVarDesc )( - ICreateTypeInfo2 * This, - UINT index, - VARDESC *pVarDesc); - - - HRESULT ( __stdcall *SetFuncAndParamNames )( - ICreateTypeInfo2 * This, - UINT index, - - LPOLESTR *rgszNames, - UINT cNames); - - - HRESULT ( __stdcall *SetVarName )( - ICreateTypeInfo2 * This, - UINT index, - - LPOLESTR szName); - - - HRESULT ( __stdcall *SetTypeDescAlias )( - ICreateTypeInfo2 * This, - TYPEDESC *pTDescAlias); - - - HRESULT ( __stdcall *DefineFuncAsDllEntry )( - ICreateTypeInfo2 * This, - UINT index, - - LPOLESTR szDllName, - - LPOLESTR szProcName); - - - HRESULT ( __stdcall *SetFuncDocString )( - ICreateTypeInfo2 * This, - UINT index, - - LPOLESTR szDocString); - - - HRESULT ( __stdcall *SetVarDocString )( - ICreateTypeInfo2 * This, - UINT index, - - LPOLESTR szDocString); - - - HRESULT ( __stdcall *SetFuncHelpContext )( - ICreateTypeInfo2 * This, - UINT index, - DWORD dwHelpContext); - - - HRESULT ( __stdcall *SetVarHelpContext )( - ICreateTypeInfo2 * This, - UINT index, - DWORD dwHelpContext); - - - HRESULT ( __stdcall *SetMops )( - ICreateTypeInfo2 * This, - UINT index, - - BSTR bstrMops); - - - HRESULT ( __stdcall *SetTypeIdldesc )( - ICreateTypeInfo2 * This, - IDLDESC *pIdlDesc); - - - HRESULT ( __stdcall *LayOut )( - ICreateTypeInfo2 * This); - - - HRESULT ( __stdcall *DeleteFuncDesc )( - ICreateTypeInfo2 * This, - UINT index); - - - HRESULT ( __stdcall *DeleteFuncDescByMemId )( - ICreateTypeInfo2 * This, - MEMBERID memid, - INVOKEKIND invKind); - - - HRESULT ( __stdcall *DeleteVarDesc )( - ICreateTypeInfo2 * This, - UINT index); - - - HRESULT ( __stdcall *DeleteVarDescByMemId )( - ICreateTypeInfo2 * This, - MEMBERID memid); - - - HRESULT ( __stdcall *DeleteImplType )( - ICreateTypeInfo2 * This, - UINT index); - - - HRESULT ( __stdcall *SetCustData )( - ICreateTypeInfo2 * This, - const GUID * const guid, - VARIANT *pVarVal); - - - HRESULT ( __stdcall *SetFuncCustData )( - ICreateTypeInfo2 * This, - UINT index, - const GUID * const guid, - VARIANT *pVarVal); - - - HRESULT ( __stdcall *SetParamCustData )( - ICreateTypeInfo2 * This, - UINT indexFunc, - UINT indexParam, - const GUID * const guid, - VARIANT *pVarVal); - - - HRESULT ( __stdcall *SetVarCustData )( - ICreateTypeInfo2 * This, - UINT index, - const GUID * const guid, - VARIANT *pVarVal); - - - HRESULT ( __stdcall *SetImplTypeCustData )( - ICreateTypeInfo2 * This, - UINT index, - const GUID * const guid, - VARIANT *pVarVal); - - - HRESULT ( __stdcall *SetHelpStringContext )( - ICreateTypeInfo2 * This, - ULONG dwHelpStringContext); - - - HRESULT ( __stdcall *SetFuncHelpStringContext )( - ICreateTypeInfo2 * This, - UINT index, - ULONG dwHelpStringContext); - - - HRESULT ( __stdcall *SetVarHelpStringContext )( - ICreateTypeInfo2 * This, - UINT index, - ULONG dwHelpStringContext); - - - HRESULT ( __stdcall *Invalidate )( - ICreateTypeInfo2 * This); - - - HRESULT ( __stdcall *SetName )( - ICreateTypeInfo2 * This, - - LPOLESTR szName); - - - } ICreateTypeInfo2Vtbl; - - struct ICreateTypeInfo2 - { - struct ICreateTypeInfo2Vtbl *lpVtbl; - }; -# 1846 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef ICreateTypeLib *LPCREATETYPELIB; - - -extern const IID IID_ICreateTypeLib; -# 1898 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ICreateTypeLibVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ICreateTypeLib * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ICreateTypeLib * This); - - - ULONG ( __stdcall *Release )( - ICreateTypeLib * This); - - - HRESULT ( __stdcall *CreateTypeInfo )( - ICreateTypeLib * This, - - LPOLESTR szName, - TYPEKIND tkind, - ICreateTypeInfo **ppCTInfo); - - - HRESULT ( __stdcall *SetName )( - ICreateTypeLib * This, - - LPOLESTR szName); - - - HRESULT ( __stdcall *SetVersion )( - ICreateTypeLib * This, - WORD wMajorVerNum, - WORD wMinorVerNum); - - - HRESULT ( __stdcall *SetGuid )( - ICreateTypeLib * This, - const GUID * const guid); - - - HRESULT ( __stdcall *SetDocString )( - ICreateTypeLib * This, - - LPOLESTR szDoc); - - - HRESULT ( __stdcall *SetHelpFileName )( - ICreateTypeLib * This, - - LPOLESTR szHelpFileName); - - - HRESULT ( __stdcall *SetHelpContext )( - ICreateTypeLib * This, - DWORD dwHelpContext); - - - HRESULT ( __stdcall *SetLcid )( - ICreateTypeLib * This, - LCID lcid); - - - HRESULT ( __stdcall *SetLibFlags )( - ICreateTypeLib * This, - UINT uLibFlags); - - - HRESULT ( __stdcall *SaveAllChanges )( - ICreateTypeLib * This); - - - } ICreateTypeLibVtbl; - - struct ICreateTypeLib - { - struct ICreateTypeLibVtbl *lpVtbl; - }; -# 2043 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef ICreateTypeLib2 *LPCREATETYPELIB2; - - -extern const IID IID_ICreateTypeLib2; -# 2074 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ICreateTypeLib2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ICreateTypeLib2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ICreateTypeLib2 * This); - - - ULONG ( __stdcall *Release )( - ICreateTypeLib2 * This); - - - HRESULT ( __stdcall *CreateTypeInfo )( - ICreateTypeLib2 * This, - - LPOLESTR szName, - TYPEKIND tkind, - ICreateTypeInfo **ppCTInfo); - - - HRESULT ( __stdcall *SetName )( - ICreateTypeLib2 * This, - - LPOLESTR szName); - - - HRESULT ( __stdcall *SetVersion )( - ICreateTypeLib2 * This, - WORD wMajorVerNum, - WORD wMinorVerNum); - - - HRESULT ( __stdcall *SetGuid )( - ICreateTypeLib2 * This, - const GUID * const guid); - - - HRESULT ( __stdcall *SetDocString )( - ICreateTypeLib2 * This, - - LPOLESTR szDoc); - - - HRESULT ( __stdcall *SetHelpFileName )( - ICreateTypeLib2 * This, - - LPOLESTR szHelpFileName); - - - HRESULT ( __stdcall *SetHelpContext )( - ICreateTypeLib2 * This, - DWORD dwHelpContext); - - - HRESULT ( __stdcall *SetLcid )( - ICreateTypeLib2 * This, - LCID lcid); - - - HRESULT ( __stdcall *SetLibFlags )( - ICreateTypeLib2 * This, - UINT uLibFlags); - - - HRESULT ( __stdcall *SaveAllChanges )( - ICreateTypeLib2 * This); - - - HRESULT ( __stdcall *DeleteTypeInfo )( - ICreateTypeLib2 * This, - - LPOLESTR szName); - - - HRESULT ( __stdcall *SetCustData )( - ICreateTypeLib2 * This, - const GUID * const guid, - VARIANT *pVarVal); - - - HRESULT ( __stdcall *SetHelpStringContext )( - ICreateTypeLib2 * This, - ULONG dwHelpStringContext); - - - HRESULT ( __stdcall *SetHelpStringDll )( - ICreateTypeLib2 * This, - - LPOLESTR szFileName); - - - } ICreateTypeLib2Vtbl; - - struct ICreateTypeLib2 - { - struct ICreateTypeLib2Vtbl *lpVtbl; - }; -# 2258 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0005_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0005_v0_0_s_ifspec; - - - - - - - -typedef IDispatch *LPDISPATCH; -# 2301 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -extern const IID IID_IDispatch; -# 2347 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct IDispatchVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IDispatch * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IDispatch * This); - - - ULONG ( __stdcall *Release )( - IDispatch * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IDispatch * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IDispatch * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IDispatch * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IDispatch * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - } IDispatchVtbl; - - struct IDispatch - { - struct IDispatchVtbl *lpVtbl; - }; -# 2449 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - HRESULT __stdcall IDispatch_RemoteInvoke_Proxy( - IDispatch * This, - DISPID dispIdMember, - const IID * const riid, - LCID lcid, - DWORD dwFlags, - DISPPARAMS *pDispParams, - VARIANT *pVarResult, - EXCEPINFO *pExcepInfo, - UINT *pArgErr, - UINT cVarRef, - UINT *rgVarRefIdx, - VARIANTARG *rgVarRef); - - -void __stdcall IDispatch_RemoteInvoke_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 2481 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef IEnumVARIANT *LPENUMVARIANT; - - -extern const IID IID_IEnumVARIANT; -# 2510 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct IEnumVARIANTVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IEnumVARIANT * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IEnumVARIANT * This); - - - ULONG ( __stdcall *Release )( - IEnumVARIANT * This); - - - HRESULT ( __stdcall *Next )( - IEnumVARIANT * This, - ULONG celt, - VARIANT *rgVar, - ULONG *pCeltFetched); - - - HRESULT ( __stdcall *Skip )( - IEnumVARIANT * This, - ULONG celt); - - - HRESULT ( __stdcall *Reset )( - IEnumVARIANT * This); - - - HRESULT ( __stdcall *Clone )( - IEnumVARIANT * This, - IEnumVARIANT **ppEnum); - - - } IEnumVARIANTVtbl; - - struct IEnumVARIANT - { - struct IEnumVARIANTVtbl *lpVtbl; - }; -# 2592 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - HRESULT __stdcall IEnumVARIANT_RemoteNext_Proxy( - IEnumVARIANT * This, - ULONG celt, - VARIANT *rgVar, - ULONG *pCeltFetched); - - -void __stdcall IEnumVARIANT_RemoteNext_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 2616 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef ITypeComp *LPTYPECOMP; - -typedef -enum tagDESCKIND - { - DESCKIND_NONE = 0, - DESCKIND_FUNCDESC = ( DESCKIND_NONE + 1 ) , - DESCKIND_VARDESC = ( DESCKIND_FUNCDESC + 1 ) , - DESCKIND_TYPECOMP = ( DESCKIND_VARDESC + 1 ) , - DESCKIND_IMPLICITAPPOBJ = ( DESCKIND_TYPECOMP + 1 ) , - DESCKIND_MAX = ( DESCKIND_IMPLICITAPPOBJ + 1 ) - } DESCKIND; - -typedef union tagBINDPTR - { - FUNCDESC *lpfuncdesc; - VARDESC *lpvardesc; - ITypeComp *lptcomp; - } BINDPTR; - -typedef union tagBINDPTR *LPBINDPTR; - - -extern const IID IID_ITypeComp; -# 2668 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ITypeCompVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ITypeComp * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ITypeComp * This); - - - ULONG ( __stdcall *Release )( - ITypeComp * This); - - - HRESULT ( __stdcall *Bind )( - ITypeComp * This, - - LPOLESTR szName, - ULONG lHashVal, - WORD wFlags, - ITypeInfo **ppTInfo, - DESCKIND *pDescKind, - BINDPTR *pBindPtr); - - - HRESULT ( __stdcall *BindType )( - ITypeComp * This, - - LPOLESTR szName, - ULONG lHashVal, - ITypeInfo **ppTInfo, - ITypeComp **ppTComp); - - - } ITypeCompVtbl; - - struct ITypeComp - { - struct ITypeCompVtbl *lpVtbl; - }; -# 2743 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - HRESULT __stdcall ITypeComp_RemoteBind_Proxy( - ITypeComp * This, - LPOLESTR szName, - ULONG lHashVal, - WORD wFlags, - ITypeInfo **ppTInfo, - DESCKIND *pDescKind, - LPFUNCDESC *ppFuncDesc, - LPVARDESC *ppVarDesc, - ITypeComp **ppTypeComp, - CLEANLOCALSTORAGE *pDummy); - - -void __stdcall ITypeComp_RemoteBind_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeComp_RemoteBindType_Proxy( - ITypeComp * This, - LPOLESTR szName, - ULONG lHashVal, - ITypeInfo **ppTInfo); - - -void __stdcall ITypeComp_RemoteBindType_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 2790 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0008_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0008_v0_0_s_ifspec; - - - - - - - -typedef ITypeInfo *LPTYPEINFO; - - -extern const IID IID_ITypeInfo; -# 2910 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ITypeInfoVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ITypeInfo * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ITypeInfo * This); - - - ULONG ( __stdcall *Release )( - ITypeInfo * This); - - - HRESULT ( __stdcall *GetTypeAttr )( - ITypeInfo * This, - TYPEATTR **ppTypeAttr); - - - HRESULT ( __stdcall *GetTypeComp )( - ITypeInfo * This, - ITypeComp **ppTComp); - - - HRESULT ( __stdcall *GetFuncDesc )( - ITypeInfo * This, - UINT index, - FUNCDESC **ppFuncDesc); - - - HRESULT ( __stdcall *GetVarDesc )( - ITypeInfo * This, - UINT index, - VARDESC **ppVarDesc); - - - HRESULT ( __stdcall *GetNames )( - ITypeInfo * This, - MEMBERID memid, - - BSTR *rgBstrNames, - UINT cMaxNames, - - UINT *pcNames); - - - HRESULT ( __stdcall *GetRefTypeOfImplType )( - ITypeInfo * This, - UINT index, - HREFTYPE *pRefType); - - - HRESULT ( __stdcall *GetImplTypeFlags )( - ITypeInfo * This, - UINT index, - INT *pImplTypeFlags); - - - HRESULT ( __stdcall *GetIDsOfNames )( - ITypeInfo * This, - - LPOLESTR *rgszNames, - UINT cNames, - MEMBERID *pMemId); - - - HRESULT ( __stdcall *Invoke )( - ITypeInfo * This, - PVOID pvInstance, - MEMBERID memid, - WORD wFlags, - DISPPARAMS *pDispParams, - VARIANT *pVarResult, - EXCEPINFO *pExcepInfo, - UINT *puArgErr); - - - HRESULT ( __stdcall *GetDocumentation )( - ITypeInfo * This, - MEMBERID memid, - - BSTR *pBstrName, - - BSTR *pBstrDocString, - DWORD *pdwHelpContext, - - BSTR *pBstrHelpFile); - - - HRESULT ( __stdcall *GetDllEntry )( - ITypeInfo * This, - MEMBERID memid, - INVOKEKIND invKind, - - BSTR *pBstrDllName, - - BSTR *pBstrName, - WORD *pwOrdinal); - - - HRESULT ( __stdcall *GetRefTypeInfo )( - ITypeInfo * This, - HREFTYPE hRefType, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *AddressOfMember )( - ITypeInfo * This, - MEMBERID memid, - INVOKEKIND invKind, - PVOID *ppv); - - - HRESULT ( __stdcall *CreateInstance )( - ITypeInfo * This, - IUnknown *pUnkOuter, - const IID * const riid, - PVOID *ppvObj); - - - HRESULT ( __stdcall *GetMops )( - ITypeInfo * This, - MEMBERID memid, - BSTR *pBstrMops); - - - HRESULT ( __stdcall *GetContainingTypeLib )( - ITypeInfo * This, - ITypeLib **ppTLib, - UINT *pIndex); - - - void ( __stdcall *ReleaseTypeAttr )( - ITypeInfo * This, - TYPEATTR *pTypeAttr); - - - void ( __stdcall *ReleaseFuncDesc )( - ITypeInfo * This, - FUNCDESC *pFuncDesc); - - - void ( __stdcall *ReleaseVarDesc )( - ITypeInfo * This, - VARDESC *pVarDesc); - - - } ITypeInfoVtbl; - - struct ITypeInfo - { - struct ITypeInfoVtbl *lpVtbl; - }; -# 3149 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - HRESULT __stdcall ITypeInfo_RemoteGetTypeAttr_Proxy( - ITypeInfo * This, - LPTYPEATTR *ppTypeAttr, - CLEANLOCALSTORAGE *pDummy); - - -void __stdcall ITypeInfo_RemoteGetTypeAttr_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeInfo_RemoteGetFuncDesc_Proxy( - ITypeInfo * This, - UINT index, - LPFUNCDESC *ppFuncDesc, - CLEANLOCALSTORAGE *pDummy); - - -void __stdcall ITypeInfo_RemoteGetFuncDesc_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeInfo_RemoteGetVarDesc_Proxy( - ITypeInfo * This, - UINT index, - LPVARDESC *ppVarDesc, - CLEANLOCALSTORAGE *pDummy); - - -void __stdcall ITypeInfo_RemoteGetVarDesc_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeInfo_RemoteGetNames_Proxy( - ITypeInfo * This, - MEMBERID memid, - BSTR *rgBstrNames, - UINT cMaxNames, - UINT *pcNames); - - -void __stdcall ITypeInfo_RemoteGetNames_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeInfo_LocalGetIDsOfNames_Proxy( - ITypeInfo * This); - - -void __stdcall ITypeInfo_LocalGetIDsOfNames_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeInfo_LocalInvoke_Proxy( - ITypeInfo * This); - - -void __stdcall ITypeInfo_LocalInvoke_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeInfo_RemoteGetDocumentation_Proxy( - ITypeInfo * This, - MEMBERID memid, - DWORD refPtrFlags, - BSTR *pBstrName, - BSTR *pBstrDocString, - DWORD *pdwHelpContext, - BSTR *pBstrHelpFile); - - -void __stdcall ITypeInfo_RemoteGetDocumentation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeInfo_RemoteGetDllEntry_Proxy( - ITypeInfo * This, - MEMBERID memid, - INVOKEKIND invKind, - DWORD refPtrFlags, - BSTR *pBstrDllName, - BSTR *pBstrName, - WORD *pwOrdinal); - - -void __stdcall ITypeInfo_RemoteGetDllEntry_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeInfo_LocalAddressOfMember_Proxy( - ITypeInfo * This); - - -void __stdcall ITypeInfo_LocalAddressOfMember_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeInfo_RemoteCreateInstance_Proxy( - ITypeInfo * This, - const IID * const riid, - IUnknown **ppvObj); - - -void __stdcall ITypeInfo_RemoteCreateInstance_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeInfo_RemoteGetContainingTypeLib_Proxy( - ITypeInfo * This, - ITypeLib **ppTLib, - UINT *pIndex); - - -void __stdcall ITypeInfo_RemoteGetContainingTypeLib_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeInfo_LocalReleaseTypeAttr_Proxy( - ITypeInfo * This); - - -void __stdcall ITypeInfo_LocalReleaseTypeAttr_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeInfo_LocalReleaseFuncDesc_Proxy( - ITypeInfo * This); - - -void __stdcall ITypeInfo_LocalReleaseFuncDesc_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeInfo_LocalReleaseVarDesc_Proxy( - ITypeInfo * This); - - -void __stdcall ITypeInfo_LocalReleaseVarDesc_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 3341 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef ITypeInfo2 *LPTYPEINFO2; - - -extern const IID IID_ITypeInfo2; -# 3426 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ITypeInfo2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ITypeInfo2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ITypeInfo2 * This); - - - ULONG ( __stdcall *Release )( - ITypeInfo2 * This); - - - HRESULT ( __stdcall *GetTypeAttr )( - ITypeInfo2 * This, - TYPEATTR **ppTypeAttr); - - - HRESULT ( __stdcall *GetTypeComp )( - ITypeInfo2 * This, - ITypeComp **ppTComp); - - - HRESULT ( __stdcall *GetFuncDesc )( - ITypeInfo2 * This, - UINT index, - FUNCDESC **ppFuncDesc); - - - HRESULT ( __stdcall *GetVarDesc )( - ITypeInfo2 * This, - UINT index, - VARDESC **ppVarDesc); - - - HRESULT ( __stdcall *GetNames )( - ITypeInfo2 * This, - MEMBERID memid, - - BSTR *rgBstrNames, - UINT cMaxNames, - - UINT *pcNames); - - - HRESULT ( __stdcall *GetRefTypeOfImplType )( - ITypeInfo2 * This, - UINT index, - HREFTYPE *pRefType); - - - HRESULT ( __stdcall *GetImplTypeFlags )( - ITypeInfo2 * This, - UINT index, - INT *pImplTypeFlags); - - - HRESULT ( __stdcall *GetIDsOfNames )( - ITypeInfo2 * This, - - LPOLESTR *rgszNames, - UINT cNames, - MEMBERID *pMemId); - - - HRESULT ( __stdcall *Invoke )( - ITypeInfo2 * This, - PVOID pvInstance, - MEMBERID memid, - WORD wFlags, - DISPPARAMS *pDispParams, - VARIANT *pVarResult, - EXCEPINFO *pExcepInfo, - UINT *puArgErr); - - - HRESULT ( __stdcall *GetDocumentation )( - ITypeInfo2 * This, - MEMBERID memid, - - BSTR *pBstrName, - - BSTR *pBstrDocString, - DWORD *pdwHelpContext, - - BSTR *pBstrHelpFile); - - - HRESULT ( __stdcall *GetDllEntry )( - ITypeInfo2 * This, - MEMBERID memid, - INVOKEKIND invKind, - - BSTR *pBstrDllName, - - BSTR *pBstrName, - WORD *pwOrdinal); - - - HRESULT ( __stdcall *GetRefTypeInfo )( - ITypeInfo2 * This, - HREFTYPE hRefType, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *AddressOfMember )( - ITypeInfo2 * This, - MEMBERID memid, - INVOKEKIND invKind, - PVOID *ppv); - - - HRESULT ( __stdcall *CreateInstance )( - ITypeInfo2 * This, - IUnknown *pUnkOuter, - const IID * const riid, - PVOID *ppvObj); - - - HRESULT ( __stdcall *GetMops )( - ITypeInfo2 * This, - MEMBERID memid, - BSTR *pBstrMops); - - - HRESULT ( __stdcall *GetContainingTypeLib )( - ITypeInfo2 * This, - ITypeLib **ppTLib, - UINT *pIndex); - - - void ( __stdcall *ReleaseTypeAttr )( - ITypeInfo2 * This, - TYPEATTR *pTypeAttr); - - - void ( __stdcall *ReleaseFuncDesc )( - ITypeInfo2 * This, - FUNCDESC *pFuncDesc); - - - void ( __stdcall *ReleaseVarDesc )( - ITypeInfo2 * This, - VARDESC *pVarDesc); - - - HRESULT ( __stdcall *GetTypeKind )( - ITypeInfo2 * This, - TYPEKIND *pTypeKind); - - - HRESULT ( __stdcall *GetTypeFlags )( - ITypeInfo2 * This, - ULONG *pTypeFlags); - - - HRESULT ( __stdcall *GetFuncIndexOfMemId )( - ITypeInfo2 * This, - MEMBERID memid, - INVOKEKIND invKind, - UINT *pFuncIndex); - - - HRESULT ( __stdcall *GetVarIndexOfMemId )( - ITypeInfo2 * This, - MEMBERID memid, - UINT *pVarIndex); - - - HRESULT ( __stdcall *GetCustData )( - ITypeInfo2 * This, - const GUID * const guid, - VARIANT *pVarVal); - - - HRESULT ( __stdcall *GetFuncCustData )( - ITypeInfo2 * This, - UINT index, - const GUID * const guid, - VARIANT *pVarVal); - - - HRESULT ( __stdcall *GetParamCustData )( - ITypeInfo2 * This, - UINT indexFunc, - UINT indexParam, - const GUID * const guid, - VARIANT *pVarVal); - - - HRESULT ( __stdcall *GetVarCustData )( - ITypeInfo2 * This, - UINT index, - const GUID * const guid, - VARIANT *pVarVal); - - - HRESULT ( __stdcall *GetImplTypeCustData )( - ITypeInfo2 * This, - UINT index, - const GUID * const guid, - VARIANT *pVarVal); - - - HRESULT ( __stdcall *GetDocumentation2 )( - ITypeInfo2 * This, - MEMBERID memid, - LCID lcid, - - BSTR *pbstrHelpString, - DWORD *pdwHelpStringContext, - - BSTR *pbstrHelpStringDll); - - - HRESULT ( __stdcall *GetAllCustData )( - ITypeInfo2 * This, - CUSTDATA *pCustData); - - - HRESULT ( __stdcall *GetAllFuncCustData )( - ITypeInfo2 * This, - UINT index, - CUSTDATA *pCustData); - - - HRESULT ( __stdcall *GetAllParamCustData )( - ITypeInfo2 * This, - UINT indexFunc, - UINT indexParam, - CUSTDATA *pCustData); - - - HRESULT ( __stdcall *GetAllVarCustData )( - ITypeInfo2 * This, - UINT index, - CUSTDATA *pCustData); - - - HRESULT ( __stdcall *GetAllImplTypeCustData )( - ITypeInfo2 * This, - UINT index, - CUSTDATA *pCustData); - - - } ITypeInfo2Vtbl; - - struct ITypeInfo2 - { - struct ITypeInfo2Vtbl *lpVtbl; - }; -# 3810 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - HRESULT __stdcall ITypeInfo2_RemoteGetDocumentation2_Proxy( - ITypeInfo2 * This, - MEMBERID memid, - LCID lcid, - DWORD refPtrFlags, - BSTR *pbstrHelpString, - DWORD *pdwHelpStringContext, - BSTR *pbstrHelpStringDll); - - -void __stdcall ITypeInfo2_RemoteGetDocumentation2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 3840 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0010_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0010_v0_0_s_ifspec; - - - - - - - -typedef -enum tagSYSKIND - { - SYS_WIN16 = 0, - SYS_WIN32 = ( SYS_WIN16 + 1 ) , - SYS_MAC = ( SYS_WIN32 + 1 ) , - SYS_WIN64 = ( SYS_MAC + 1 ) - } SYSKIND; - -typedef -enum tagLIBFLAGS - { - LIBFLAG_FRESTRICTED = 0x1, - LIBFLAG_FCONTROL = 0x2, - LIBFLAG_FHIDDEN = 0x4, - LIBFLAG_FHASDISKIMAGE = 0x8 - } LIBFLAGS; - -typedef ITypeLib *LPTYPELIB; - -typedef struct tagTLIBATTR - { - GUID guid; - LCID lcid; - SYSKIND syskind; - WORD wMajorVerNum; - WORD wMinorVerNum; - WORD wLibFlags; - } TLIBATTR; - -typedef struct tagTLIBATTR *LPTLIBATTR; - - -extern const IID IID_ITypeLib; -# 3942 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ITypeLibVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ITypeLib * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ITypeLib * This); - - - ULONG ( __stdcall *Release )( - ITypeLib * This); - - - UINT ( __stdcall *GetTypeInfoCount )( - ITypeLib * This); - - - HRESULT ( __stdcall *GetTypeInfo )( - ITypeLib * This, - UINT index, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetTypeInfoType )( - ITypeLib * This, - UINT index, - TYPEKIND *pTKind); - - - HRESULT ( __stdcall *GetTypeInfoOfGuid )( - ITypeLib * This, - const GUID * const guid, - ITypeInfo **ppTinfo); - - - HRESULT ( __stdcall *GetLibAttr )( - ITypeLib * This, - TLIBATTR **ppTLibAttr); - - - HRESULT ( __stdcall *GetTypeComp )( - ITypeLib * This, - ITypeComp **ppTComp); - - - HRESULT ( __stdcall *GetDocumentation )( - ITypeLib * This, - INT index, - - BSTR *pBstrName, - - BSTR *pBstrDocString, - DWORD *pdwHelpContext, - - BSTR *pBstrHelpFile); - - - HRESULT ( __stdcall *IsName )( - ITypeLib * This, - - LPOLESTR szNameBuf, - ULONG lHashVal, - BOOL *pfName); - - - HRESULT ( __stdcall *FindName )( - ITypeLib * This, - - LPOLESTR szNameBuf, - ULONG lHashVal, - ITypeInfo **ppTInfo, - MEMBERID *rgMemId, - USHORT *pcFound); - - - void ( __stdcall *ReleaseTLibAttr )( - ITypeLib * This, - TLIBATTR *pTLibAttr); - - - } ITypeLibVtbl; - - struct ITypeLib - { - struct ITypeLibVtbl *lpVtbl; - }; -# 4088 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - HRESULT __stdcall ITypeLib_RemoteGetTypeInfoCount_Proxy( - ITypeLib * This, - UINT *pcTInfo); - - -void __stdcall ITypeLib_RemoteGetTypeInfoCount_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeLib_RemoteGetLibAttr_Proxy( - ITypeLib * This, - LPTLIBATTR *ppTLibAttr, - CLEANLOCALSTORAGE *pDummy); - - -void __stdcall ITypeLib_RemoteGetLibAttr_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeLib_RemoteGetDocumentation_Proxy( - ITypeLib * This, - INT index, - DWORD refPtrFlags, - BSTR *pBstrName, - BSTR *pBstrDocString, - DWORD *pdwHelpContext, - BSTR *pBstrHelpFile); - - -void __stdcall ITypeLib_RemoteGetDocumentation_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeLib_RemoteIsName_Proxy( - ITypeLib * This, - LPOLESTR szNameBuf, - ULONG lHashVal, - BOOL *pfName, - BSTR *pBstrLibName); - - -void __stdcall ITypeLib_RemoteIsName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeLib_RemoteFindName_Proxy( - ITypeLib * This, - LPOLESTR szNameBuf, - ULONG lHashVal, - ITypeInfo **ppTInfo, - MEMBERID *rgMemId, - USHORT *pcFound, - BSTR *pBstrLibName); - - -void __stdcall ITypeLib_RemoteFindName_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeLib_LocalReleaseTLibAttr_Proxy( - ITypeLib * This); - - -void __stdcall ITypeLib_LocalReleaseTLibAttr_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 4186 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0011_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0011_v0_0_s_ifspec; - - - - - - - -typedef ITypeLib2 *LPTYPELIB2; - - -extern const IID IID_ITypeLib2; -# 4231 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ITypeLib2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ITypeLib2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ITypeLib2 * This); - - - ULONG ( __stdcall *Release )( - ITypeLib2 * This); - - - UINT ( __stdcall *GetTypeInfoCount )( - ITypeLib2 * This); - - - HRESULT ( __stdcall *GetTypeInfo )( - ITypeLib2 * This, - UINT index, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetTypeInfoType )( - ITypeLib2 * This, - UINT index, - TYPEKIND *pTKind); - - - HRESULT ( __stdcall *GetTypeInfoOfGuid )( - ITypeLib2 * This, - const GUID * const guid, - ITypeInfo **ppTinfo); - - - HRESULT ( __stdcall *GetLibAttr )( - ITypeLib2 * This, - TLIBATTR **ppTLibAttr); - - - HRESULT ( __stdcall *GetTypeComp )( - ITypeLib2 * This, - ITypeComp **ppTComp); - - - HRESULT ( __stdcall *GetDocumentation )( - ITypeLib2 * This, - INT index, - - BSTR *pBstrName, - - BSTR *pBstrDocString, - DWORD *pdwHelpContext, - - BSTR *pBstrHelpFile); - - - HRESULT ( __stdcall *IsName )( - ITypeLib2 * This, - - LPOLESTR szNameBuf, - ULONG lHashVal, - BOOL *pfName); - - - HRESULT ( __stdcall *FindName )( - ITypeLib2 * This, - - LPOLESTR szNameBuf, - ULONG lHashVal, - ITypeInfo **ppTInfo, - MEMBERID *rgMemId, - USHORT *pcFound); - - - void ( __stdcall *ReleaseTLibAttr )( - ITypeLib2 * This, - TLIBATTR *pTLibAttr); - - - HRESULT ( __stdcall *GetCustData )( - ITypeLib2 * This, - const GUID * const guid, - VARIANT *pVarVal); - - - HRESULT ( __stdcall *GetLibStatistics )( - ITypeLib2 * This, - ULONG *pcUniqueNames, - ULONG *pcchUniqueNames); - - - HRESULT ( __stdcall *GetDocumentation2 )( - ITypeLib2 * This, - INT index, - LCID lcid, - - BSTR *pbstrHelpString, - DWORD *pdwHelpStringContext, - - BSTR *pbstrHelpStringDll); - - - HRESULT ( __stdcall *GetAllCustData )( - ITypeLib2 * This, - CUSTDATA *pCustData); - - - } ITypeLib2Vtbl; - - struct ITypeLib2 - { - struct ITypeLib2Vtbl *lpVtbl; - }; -# 4418 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - HRESULT __stdcall ITypeLib2_RemoteGetLibStatistics_Proxy( - ITypeLib2 * This, - ULONG *pcUniqueNames, - ULONG *pcchUniqueNames); - - -void __stdcall ITypeLib2_RemoteGetLibStatistics_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall ITypeLib2_RemoteGetDocumentation2_Proxy( - ITypeLib2 * This, - INT index, - LCID lcid, - DWORD refPtrFlags, - BSTR *pbstrHelpString, - DWORD *pdwHelpStringContext, - BSTR *pbstrHelpStringDll); - - -void __stdcall ITypeLib2_RemoteGetDocumentation2_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 4458 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef ITypeChangeEvents *LPTYPECHANGEEVENTS; - -typedef -enum tagCHANGEKIND - { - CHANGEKIND_ADDMEMBER = 0, - CHANGEKIND_DELETEMEMBER = ( CHANGEKIND_ADDMEMBER + 1 ) , - CHANGEKIND_SETNAMES = ( CHANGEKIND_DELETEMEMBER + 1 ) , - CHANGEKIND_SETDOCUMENTATION = ( CHANGEKIND_SETNAMES + 1 ) , - CHANGEKIND_GENERAL = ( CHANGEKIND_SETDOCUMENTATION + 1 ) , - CHANGEKIND_INVALIDATE = ( CHANGEKIND_GENERAL + 1 ) , - CHANGEKIND_CHANGEFAILED = ( CHANGEKIND_INVALIDATE + 1 ) , - CHANGEKIND_MAX = ( CHANGEKIND_CHANGEFAILED + 1 ) - } CHANGEKIND; - - -extern const IID IID_ITypeChangeEvents; -# 4500 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ITypeChangeEventsVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ITypeChangeEvents * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ITypeChangeEvents * This); - - - ULONG ( __stdcall *Release )( - ITypeChangeEvents * This); - - - HRESULT ( __stdcall *RequestTypeChange )( - ITypeChangeEvents * This, - CHANGEKIND changeKind, - ITypeInfo *pTInfoBefore, - - LPOLESTR pStrName, - INT *pfCancel); - - - HRESULT ( __stdcall *AfterTypeChange )( - ITypeChangeEvents * This, - CHANGEKIND changeKind, - ITypeInfo *pTInfoAfter, - - LPOLESTR pStrName); - - - } ITypeChangeEventsVtbl; - - struct ITypeChangeEvents - { - struct ITypeChangeEventsVtbl *lpVtbl; - }; -# 4582 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef IErrorInfo *LPERRORINFO; - - -extern const IID IID_IErrorInfo; -# 4613 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct IErrorInfoVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IErrorInfo * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IErrorInfo * This); - - - ULONG ( __stdcall *Release )( - IErrorInfo * This); - - - HRESULT ( __stdcall *GetGUID )( - IErrorInfo * This, - GUID *pGUID); - - - HRESULT ( __stdcall *GetSource )( - IErrorInfo * This, - BSTR *pBstrSource); - - - HRESULT ( __stdcall *GetDescription )( - IErrorInfo * This, - BSTR *pBstrDescription); - - - HRESULT ( __stdcall *GetHelpFile )( - IErrorInfo * This, - BSTR *pBstrHelpFile); - - - HRESULT ( __stdcall *GetHelpContext )( - IErrorInfo * This, - DWORD *pdwHelpContext); - - - } IErrorInfoVtbl; - - struct IErrorInfo - { - struct IErrorInfoVtbl *lpVtbl; - }; -# 4712 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef ICreateErrorInfo *LPCREATEERRORINFO; - - -extern const IID IID_ICreateErrorInfo; -# 4743 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ICreateErrorInfoVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ICreateErrorInfo * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ICreateErrorInfo * This); - - - ULONG ( __stdcall *Release )( - ICreateErrorInfo * This); - - - HRESULT ( __stdcall *SetGUID )( - ICreateErrorInfo * This, - const GUID * const rguid); - - - HRESULT ( __stdcall *SetSource )( - ICreateErrorInfo * This, - LPOLESTR szSource); - - - HRESULT ( __stdcall *SetDescription )( - ICreateErrorInfo * This, - LPOLESTR szDescription); - - - HRESULT ( __stdcall *SetHelpFile )( - ICreateErrorInfo * This, - LPOLESTR szHelpFile); - - - HRESULT ( __stdcall *SetHelpContext )( - ICreateErrorInfo * This, - DWORD dwHelpContext); - - - } ICreateErrorInfoVtbl; - - struct ICreateErrorInfo - { - struct ICreateErrorInfoVtbl *lpVtbl; - }; -# 4842 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef ISupportErrorInfo *LPSUPPORTERRORINFO; - - -extern const IID IID_ISupportErrorInfo; -# 4861 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ISupportErrorInfoVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ISupportErrorInfo * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ISupportErrorInfo * This); - - - ULONG ( __stdcall *Release )( - ISupportErrorInfo * This); - - - HRESULT ( __stdcall *InterfaceSupportsErrorInfo )( - ISupportErrorInfo * This, - const IID * const riid); - - - } ISupportErrorInfoVtbl; - - struct ISupportErrorInfo - { - struct ISupportErrorInfoVtbl *lpVtbl; - }; -# 4929 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -extern const IID IID_ITypeFactory; -# 4947 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ITypeFactoryVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ITypeFactory * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ITypeFactory * This); - - - ULONG ( __stdcall *Release )( - ITypeFactory * This); - - - HRESULT ( __stdcall *CreateFromTypeInfo )( - ITypeFactory * This, - ITypeInfo *pTypeInfo, - const IID * const riid, - IUnknown **ppv); - - - } ITypeFactoryVtbl; - - struct ITypeFactory - { - struct ITypeFactoryVtbl *lpVtbl; - }; -# 5017 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -extern const IID IID_ITypeMarshal; -# 5058 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ITypeMarshalVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ITypeMarshal * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ITypeMarshal * This); - - - ULONG ( __stdcall *Release )( - ITypeMarshal * This); - - - HRESULT ( __stdcall *Size )( - ITypeMarshal * This, - PVOID pvType, - DWORD dwDestContext, - PVOID pvDestContext, - ULONG *pSize); - - - HRESULT ( __stdcall *Marshal )( - ITypeMarshal * This, - PVOID pvType, - DWORD dwDestContext, - PVOID pvDestContext, - ULONG cbBufferLength, - - BYTE *pBuffer, - - ULONG *pcbWritten); - - - HRESULT ( __stdcall *Unmarshal )( - ITypeMarshal * This, - PVOID pvType, - DWORD dwFlags, - ULONG cbBufferLength, - - BYTE *pBuffer, - - ULONG *pcbRead); - - - HRESULT ( __stdcall *Free )( - ITypeMarshal * This, - PVOID pvType); - - - } ITypeMarshalVtbl; - - struct ITypeMarshal - { - struct ITypeMarshalVtbl *lpVtbl; - }; -# 5165 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef IRecordInfo *LPRECORDINFO; - - -extern const IID IID_IRecordInfo; -# 5244 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct IRecordInfoVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IRecordInfo * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IRecordInfo * This); - - - ULONG ( __stdcall *Release )( - IRecordInfo * This); - - - HRESULT ( __stdcall *RecordInit )( - IRecordInfo * This, - PVOID pvNew); - - - HRESULT ( __stdcall *RecordClear )( - IRecordInfo * This, - PVOID pvExisting); - - - HRESULT ( __stdcall *RecordCopy )( - IRecordInfo * This, - PVOID pvExisting, - PVOID pvNew); - - - HRESULT ( __stdcall *GetGuid )( - IRecordInfo * This, - GUID *pguid); - - - HRESULT ( __stdcall *GetName )( - IRecordInfo * This, - - BSTR *pbstrName); - - - HRESULT ( __stdcall *GetSize )( - IRecordInfo * This, - ULONG *pcbSize); - - - HRESULT ( __stdcall *GetTypeInfo )( - IRecordInfo * This, - ITypeInfo **ppTypeInfo); - - - HRESULT ( __stdcall *GetField )( - IRecordInfo * This, - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT *pvarField); - - - HRESULT ( __stdcall *GetFieldNoCopy )( - IRecordInfo * This, - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT *pvarField, - PVOID *ppvDataCArray); - - - HRESULT ( __stdcall *PutField )( - IRecordInfo * This, - ULONG wFlags, - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT *pvarField); - - - HRESULT ( __stdcall *PutFieldNoCopy )( - IRecordInfo * This, - ULONG wFlags, - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT *pvarField); - - - HRESULT ( __stdcall *GetFieldNames )( - IRecordInfo * This, - ULONG *pcNames, - - BSTR *rgBstrNames); - - - BOOL ( __stdcall *IsMatchingType )( - IRecordInfo * This, - IRecordInfo *pRecordInfo); - - - PVOID ( __stdcall *RecordCreate )( - IRecordInfo * This); - - - HRESULT ( __stdcall *RecordCreateCopy )( - IRecordInfo * This, - PVOID pvSource, - PVOID *ppvDest); - - - HRESULT ( __stdcall *RecordDestroy )( - IRecordInfo * This, - PVOID pvRecord); - - - } IRecordInfoVtbl; - - struct IRecordInfo - { - struct IRecordInfoVtbl *lpVtbl; - }; -# 5446 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef IErrorLog *LPERRORLOG; - - -extern const IID IID_IErrorLog; -# 5466 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct IErrorLogVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IErrorLog * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IErrorLog * This); - - - ULONG ( __stdcall *Release )( - IErrorLog * This); - - - HRESULT ( __stdcall *AddError )( - IErrorLog * This, - LPCOLESTR pszPropName, - EXCEPINFO *pExcepInfo); - - - } IErrorLogVtbl; - - struct IErrorLog - { - struct IErrorLogVtbl *lpVtbl; - }; -# 5534 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -typedef IPropertyBag *LPPROPERTYBAG; - - -extern const IID IID_IPropertyBag; -# 5559 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct IPropertyBagVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IPropertyBag * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IPropertyBag * This); - - - ULONG ( __stdcall *Release )( - IPropertyBag * This); - - - HRESULT ( __stdcall *Read )( - IPropertyBag * This, - LPCOLESTR pszPropName, - VARIANT *pVar, - IErrorLog *pErrorLog); - - - HRESULT ( __stdcall *Write )( - IPropertyBag * This, - LPCOLESTR pszPropName, - VARIANT *pVar); - - - } IPropertyBagVtbl; - - struct IPropertyBag - { - struct IPropertyBagVtbl *lpVtbl; - }; -# 5627 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - HRESULT __stdcall IPropertyBag_RemoteRead_Proxy( - IPropertyBag * This, - LPCOLESTR pszPropName, - VARIANT *pVar, - IErrorLog *pErrorLog, - DWORD varType, - IUnknown *pUnkObj); - - -void __stdcall IPropertyBag_RemoteRead_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 5654 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -extern const IID IID_ITypeLibRegistrationReader; -# 5670 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ITypeLibRegistrationReaderVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ITypeLibRegistrationReader * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ITypeLibRegistrationReader * This); - - - ULONG ( __stdcall *Release )( - ITypeLibRegistrationReader * This); - - - HRESULT ( __stdcall *EnumTypeLibRegistrations )( - ITypeLibRegistrationReader * This, - IEnumUnknown **ppEnumUnknown); - - - } ITypeLibRegistrationReaderVtbl; - - struct ITypeLibRegistrationReader - { - struct ITypeLibRegistrationReaderVtbl *lpVtbl; - }; -# 5738 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -extern const IID IID_ITypeLibRegistration; -# 5775 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 - typedef struct ITypeLibRegistrationVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ITypeLibRegistration * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ITypeLibRegistration * This); - - - ULONG ( __stdcall *Release )( - ITypeLibRegistration * This); - - - HRESULT ( __stdcall *GetGuid )( - ITypeLibRegistration * This, - GUID *pGuid); - - - HRESULT ( __stdcall *GetVersion )( - ITypeLibRegistration * This, - BSTR *pVersion); - - - HRESULT ( __stdcall *GetLcid )( - ITypeLibRegistration * This, - LCID *pLcid); - - - HRESULT ( __stdcall *GetWin32Path )( - ITypeLibRegistration * This, - BSTR *pWin32Path); - - - HRESULT ( __stdcall *GetWin64Path )( - ITypeLibRegistration * This, - BSTR *pWin64Path); - - - HRESULT ( __stdcall *GetDisplayName )( - ITypeLibRegistration * This, - BSTR *pDisplayName); - - - HRESULT ( __stdcall *GetFlags )( - ITypeLibRegistration * This, - DWORD *pFlags); - - - HRESULT ( __stdcall *GetHelpDir )( - ITypeLibRegistration * This, - BSTR *pHelpDir); - - - } ITypeLibRegistrationVtbl; - - struct ITypeLibRegistration - { - struct ITypeLibRegistrationVtbl *lpVtbl; - }; -# 5895 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oaidl.h" 3 -extern const CLSID CLSID_TypeLibRegistrationReader; - - - - -#pragma warning(pop) - - - - - - -extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0023_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_oaidl_0000_0023_v0_0_s_ifspec; - - - -unsigned long __stdcall BSTR_UserSize( unsigned long *, unsigned long , BSTR * ); -unsigned char * __stdcall BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * ); -unsigned char * __stdcall BSTR_UserUnmarshal( unsigned long *, unsigned char *, BSTR * ); -void __stdcall BSTR_UserFree( unsigned long *, BSTR * ); - -unsigned long __stdcall CLEANLOCALSTORAGE_UserSize( unsigned long *, unsigned long , CLEANLOCALSTORAGE * ); -unsigned char * __stdcall CLEANLOCALSTORAGE_UserMarshal( unsigned long *, unsigned char *, CLEANLOCALSTORAGE * ); -unsigned char * __stdcall CLEANLOCALSTORAGE_UserUnmarshal( unsigned long *, unsigned char *, CLEANLOCALSTORAGE * ); -void __stdcall CLEANLOCALSTORAGE_UserFree( unsigned long *, CLEANLOCALSTORAGE * ); - -unsigned long __stdcall VARIANT_UserSize( unsigned long *, unsigned long , VARIANT * ); -unsigned char * __stdcall VARIANT_UserMarshal( unsigned long *, unsigned char *, VARIANT * ); -unsigned char * __stdcall VARIANT_UserUnmarshal( unsigned long *, unsigned char *, VARIANT * ); -void __stdcall VARIANT_UserFree( unsigned long *, VARIANT * ); - -unsigned long __stdcall BSTR_UserSize64( unsigned long *, unsigned long , BSTR * ); -unsigned char * __stdcall BSTR_UserMarshal64( unsigned long *, unsigned char *, BSTR * ); -unsigned char * __stdcall BSTR_UserUnmarshal64( unsigned long *, unsigned char *, BSTR * ); -void __stdcall BSTR_UserFree64( unsigned long *, BSTR * ); - -unsigned long __stdcall CLEANLOCALSTORAGE_UserSize64( unsigned long *, unsigned long , CLEANLOCALSTORAGE * ); -unsigned char * __stdcall CLEANLOCALSTORAGE_UserMarshal64( unsigned long *, unsigned char *, CLEANLOCALSTORAGE * ); -unsigned char * __stdcall CLEANLOCALSTORAGE_UserUnmarshal64( unsigned long *, unsigned char *, CLEANLOCALSTORAGE * ); -void __stdcall CLEANLOCALSTORAGE_UserFree64( unsigned long *, CLEANLOCALSTORAGE * ); - -unsigned long __stdcall VARIANT_UserSize64( unsigned long *, unsigned long , VARIANT * ); -unsigned char * __stdcall VARIANT_UserMarshal64( unsigned long *, unsigned char *, VARIANT * ); -unsigned char * __stdcall VARIANT_UserUnmarshal64( unsigned long *, unsigned char *, VARIANT * ); -void __stdcall VARIANT_UserFree64( unsigned long *, VARIANT * ); - - HRESULT __stdcall IDispatch_Invoke_Proxy( - IDispatch * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT __stdcall IDispatch_Invoke_Stub( - IDispatch * This, - DISPID dispIdMember, - const IID * const riid, - LCID lcid, - DWORD dwFlags, - DISPPARAMS *pDispParams, - VARIANT *pVarResult, - EXCEPINFO *pExcepInfo, - UINT *pArgErr, - UINT cVarRef, - UINT *rgVarRefIdx, - VARIANTARG *rgVarRef); - - HRESULT __stdcall IEnumVARIANT_Next_Proxy( - IEnumVARIANT * This, - ULONG celt, - VARIANT *rgVar, - ULONG *pCeltFetched); - - - HRESULT __stdcall IEnumVARIANT_Next_Stub( - IEnumVARIANT * This, - ULONG celt, - VARIANT *rgVar, - ULONG *pCeltFetched); - - HRESULT __stdcall ITypeComp_Bind_Proxy( - ITypeComp * This, - - LPOLESTR szName, - ULONG lHashVal, - WORD wFlags, - ITypeInfo **ppTInfo, - DESCKIND *pDescKind, - BINDPTR *pBindPtr); - - - HRESULT __stdcall ITypeComp_Bind_Stub( - ITypeComp * This, - LPOLESTR szName, - ULONG lHashVal, - WORD wFlags, - ITypeInfo **ppTInfo, - DESCKIND *pDescKind, - LPFUNCDESC *ppFuncDesc, - LPVARDESC *ppVarDesc, - ITypeComp **ppTypeComp, - CLEANLOCALSTORAGE *pDummy); - - HRESULT __stdcall ITypeComp_BindType_Proxy( - ITypeComp * This, - - LPOLESTR szName, - ULONG lHashVal, - ITypeInfo **ppTInfo, - ITypeComp **ppTComp); - - - HRESULT __stdcall ITypeComp_BindType_Stub( - ITypeComp * This, - LPOLESTR szName, - ULONG lHashVal, - ITypeInfo **ppTInfo); - - HRESULT __stdcall ITypeInfo_GetTypeAttr_Proxy( - ITypeInfo * This, - TYPEATTR **ppTypeAttr); - - - HRESULT __stdcall ITypeInfo_GetTypeAttr_Stub( - ITypeInfo * This, - LPTYPEATTR *ppTypeAttr, - CLEANLOCALSTORAGE *pDummy); - - HRESULT __stdcall ITypeInfo_GetFuncDesc_Proxy( - ITypeInfo * This, - UINT index, - FUNCDESC **ppFuncDesc); - - - HRESULT __stdcall ITypeInfo_GetFuncDesc_Stub( - ITypeInfo * This, - UINT index, - LPFUNCDESC *ppFuncDesc, - CLEANLOCALSTORAGE *pDummy); - - HRESULT __stdcall ITypeInfo_GetVarDesc_Proxy( - ITypeInfo * This, - UINT index, - VARDESC **ppVarDesc); - - - HRESULT __stdcall ITypeInfo_GetVarDesc_Stub( - ITypeInfo * This, - UINT index, - LPVARDESC *ppVarDesc, - CLEANLOCALSTORAGE *pDummy); - - HRESULT __stdcall ITypeInfo_GetNames_Proxy( - ITypeInfo * This, - MEMBERID memid, - - BSTR *rgBstrNames, - UINT cMaxNames, - - UINT *pcNames); - - - HRESULT __stdcall ITypeInfo_GetNames_Stub( - ITypeInfo * This, - MEMBERID memid, - BSTR *rgBstrNames, - UINT cMaxNames, - UINT *pcNames); - - HRESULT __stdcall ITypeInfo_GetIDsOfNames_Proxy( - ITypeInfo * This, - - LPOLESTR *rgszNames, - UINT cNames, - MEMBERID *pMemId); - - - HRESULT __stdcall ITypeInfo_GetIDsOfNames_Stub( - ITypeInfo * This); - - HRESULT __stdcall ITypeInfo_Invoke_Proxy( - ITypeInfo * This, - PVOID pvInstance, - MEMBERID memid, - WORD wFlags, - DISPPARAMS *pDispParams, - VARIANT *pVarResult, - EXCEPINFO *pExcepInfo, - UINT *puArgErr); - - - HRESULT __stdcall ITypeInfo_Invoke_Stub( - ITypeInfo * This); - - HRESULT __stdcall ITypeInfo_GetDocumentation_Proxy( - ITypeInfo * This, - MEMBERID memid, - - BSTR *pBstrName, - - BSTR *pBstrDocString, - DWORD *pdwHelpContext, - - BSTR *pBstrHelpFile); - - - HRESULT __stdcall ITypeInfo_GetDocumentation_Stub( - ITypeInfo * This, - MEMBERID memid, - DWORD refPtrFlags, - BSTR *pBstrName, - BSTR *pBstrDocString, - DWORD *pdwHelpContext, - BSTR *pBstrHelpFile); - - HRESULT __stdcall ITypeInfo_GetDllEntry_Proxy( - ITypeInfo * This, - MEMBERID memid, - INVOKEKIND invKind, - - BSTR *pBstrDllName, - - BSTR *pBstrName, - WORD *pwOrdinal); - - - HRESULT __stdcall ITypeInfo_GetDllEntry_Stub( - ITypeInfo * This, - MEMBERID memid, - INVOKEKIND invKind, - DWORD refPtrFlags, - BSTR *pBstrDllName, - BSTR *pBstrName, - WORD *pwOrdinal); - - HRESULT __stdcall ITypeInfo_AddressOfMember_Proxy( - ITypeInfo * This, - MEMBERID memid, - INVOKEKIND invKind, - PVOID *ppv); - - - HRESULT __stdcall ITypeInfo_AddressOfMember_Stub( - ITypeInfo * This); - - HRESULT __stdcall ITypeInfo_CreateInstance_Proxy( - ITypeInfo * This, - IUnknown *pUnkOuter, - const IID * const riid, - PVOID *ppvObj); - - - HRESULT __stdcall ITypeInfo_CreateInstance_Stub( - ITypeInfo * This, - const IID * const riid, - IUnknown **ppvObj); - - HRESULT __stdcall ITypeInfo_GetContainingTypeLib_Proxy( - ITypeInfo * This, - ITypeLib **ppTLib, - UINT *pIndex); - - - HRESULT __stdcall ITypeInfo_GetContainingTypeLib_Stub( - ITypeInfo * This, - ITypeLib **ppTLib, - UINT *pIndex); - - void __stdcall ITypeInfo_ReleaseTypeAttr_Proxy( - ITypeInfo * This, - TYPEATTR *pTypeAttr); - - - HRESULT __stdcall ITypeInfo_ReleaseTypeAttr_Stub( - ITypeInfo * This); - - void __stdcall ITypeInfo_ReleaseFuncDesc_Proxy( - ITypeInfo * This, - FUNCDESC *pFuncDesc); - - - HRESULT __stdcall ITypeInfo_ReleaseFuncDesc_Stub( - ITypeInfo * This); - - void __stdcall ITypeInfo_ReleaseVarDesc_Proxy( - ITypeInfo * This, - VARDESC *pVarDesc); - - - HRESULT __stdcall ITypeInfo_ReleaseVarDesc_Stub( - ITypeInfo * This); - - HRESULT __stdcall ITypeInfo2_GetDocumentation2_Proxy( - ITypeInfo2 * This, - MEMBERID memid, - LCID lcid, - - BSTR *pbstrHelpString, - DWORD *pdwHelpStringContext, - - BSTR *pbstrHelpStringDll); - - - HRESULT __stdcall ITypeInfo2_GetDocumentation2_Stub( - ITypeInfo2 * This, - MEMBERID memid, - LCID lcid, - DWORD refPtrFlags, - BSTR *pbstrHelpString, - DWORD *pdwHelpStringContext, - BSTR *pbstrHelpStringDll); - - UINT __stdcall ITypeLib_GetTypeInfoCount_Proxy( - ITypeLib * This); - - - HRESULT __stdcall ITypeLib_GetTypeInfoCount_Stub( - ITypeLib * This, - UINT *pcTInfo); - - HRESULT __stdcall ITypeLib_GetLibAttr_Proxy( - ITypeLib * This, - TLIBATTR **ppTLibAttr); - - - HRESULT __stdcall ITypeLib_GetLibAttr_Stub( - ITypeLib * This, - LPTLIBATTR *ppTLibAttr, - CLEANLOCALSTORAGE *pDummy); - - HRESULT __stdcall ITypeLib_GetDocumentation_Proxy( - ITypeLib * This, - INT index, - - BSTR *pBstrName, - - BSTR *pBstrDocString, - DWORD *pdwHelpContext, - - BSTR *pBstrHelpFile); - - - HRESULT __stdcall ITypeLib_GetDocumentation_Stub( - ITypeLib * This, - INT index, - DWORD refPtrFlags, - BSTR *pBstrName, - BSTR *pBstrDocString, - DWORD *pdwHelpContext, - BSTR *pBstrHelpFile); - - HRESULT __stdcall ITypeLib_IsName_Proxy( - ITypeLib * This, - - LPOLESTR szNameBuf, - ULONG lHashVal, - BOOL *pfName); - - - HRESULT __stdcall ITypeLib_IsName_Stub( - ITypeLib * This, - LPOLESTR szNameBuf, - ULONG lHashVal, - BOOL *pfName, - BSTR *pBstrLibName); - - HRESULT __stdcall ITypeLib_FindName_Proxy( - ITypeLib * This, - - LPOLESTR szNameBuf, - ULONG lHashVal, - ITypeInfo **ppTInfo, - MEMBERID *rgMemId, - USHORT *pcFound); - - - HRESULT __stdcall ITypeLib_FindName_Stub( - ITypeLib * This, - LPOLESTR szNameBuf, - ULONG lHashVal, - ITypeInfo **ppTInfo, - MEMBERID *rgMemId, - USHORT *pcFound, - BSTR *pBstrLibName); - - void __stdcall ITypeLib_ReleaseTLibAttr_Proxy( - ITypeLib * This, - TLIBATTR *pTLibAttr); - - - HRESULT __stdcall ITypeLib_ReleaseTLibAttr_Stub( - ITypeLib * This); - - HRESULT __stdcall ITypeLib2_GetLibStatistics_Proxy( - ITypeLib2 * This, - ULONG *pcUniqueNames, - ULONG *pcchUniqueNames); - - - HRESULT __stdcall ITypeLib2_GetLibStatistics_Stub( - ITypeLib2 * This, - ULONG *pcUniqueNames, - ULONG *pcchUniqueNames); - - HRESULT __stdcall ITypeLib2_GetDocumentation2_Proxy( - ITypeLib2 * This, - INT index, - LCID lcid, - - BSTR *pbstrHelpString, - DWORD *pdwHelpStringContext, - - BSTR *pbstrHelpStringDll); - - - HRESULT __stdcall ITypeLib2_GetDocumentation2_Stub( - ITypeLib2 * This, - INT index, - LCID lcid, - DWORD refPtrFlags, - BSTR *pbstrHelpString, - DWORD *pdwHelpStringContext, - BSTR *pbstrHelpStringDll); - - HRESULT __stdcall IPropertyBag_Read_Proxy( - IPropertyBag * This, - LPCOLESTR pszPropName, - VARIANT *pVar, - IErrorLog *pErrorLog); - - - HRESULT __stdcall IPropertyBag_Read_Stub( - IPropertyBag * This, - LPCOLESTR pszPropName, - VARIANT *pVar, - IErrorLog *pErrorLog, - DWORD varType, - IUnknown *pUnkObj); -# 81 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 2 3 -# 99 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - -#pragma warning(disable: 4201) -#pragma warning(disable: 4237) -# 114 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 -typedef struct tagVersionedStream - { - GUID guidVersion; - IStream *pStream; - } VERSIONEDSTREAM; - -typedef struct tagVersionedStream *LPVERSIONEDSTREAM; -# 146 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 -typedef struct tagPROPVARIANT PROPVARIANT; - -typedef struct tagCAC - { - ULONG cElems; - CHAR *pElems; - } CAC; - -typedef struct tagCAUB - { - ULONG cElems; - UCHAR *pElems; - } CAUB; - -typedef struct tagCAI - { - ULONG cElems; - SHORT *pElems; - } CAI; - -typedef struct tagCAUI - { - ULONG cElems; - USHORT *pElems; - } CAUI; - -typedef struct tagCAL - { - ULONG cElems; - LONG *pElems; - } CAL; - -typedef struct tagCAUL - { - ULONG cElems; - ULONG *pElems; - } CAUL; - -typedef struct tagCAFLT - { - ULONG cElems; - FLOAT *pElems; - } CAFLT; - -typedef struct tagCADBL - { - ULONG cElems; - DOUBLE *pElems; - } CADBL; - -typedef struct tagCACY - { - ULONG cElems; - CY *pElems; - } CACY; - -typedef struct tagCADATE - { - ULONG cElems; - DATE *pElems; - } CADATE; - -typedef struct tagCABSTR - { - ULONG cElems; - BSTR *pElems; - } CABSTR; - -typedef struct tagCABSTRBLOB - { - ULONG cElems; - BSTRBLOB *pElems; - } CABSTRBLOB; - -typedef struct tagCABOOL - { - ULONG cElems; - VARIANT_BOOL *pElems; - } CABOOL; - -typedef struct tagCASCODE - { - ULONG cElems; - SCODE *pElems; - } CASCODE; - -typedef struct tagCAPROPVARIANT - { - ULONG cElems; - PROPVARIANT *pElems; - } CAPROPVARIANT; - -typedef struct tagCAH - { - ULONG cElems; - LARGE_INTEGER *pElems; - } CAH; - -typedef struct tagCAUH - { - ULONG cElems; - ULARGE_INTEGER *pElems; - } CAUH; - -typedef struct tagCALPSTR - { - ULONG cElems; - LPSTR *pElems; - } CALPSTR; - -typedef struct tagCALPWSTR - { - ULONG cElems; - LPWSTR *pElems; - } CALPWSTR; - -typedef struct tagCAFILETIME - { - ULONG cElems; - FILETIME *pElems; - } CAFILETIME; - -typedef struct tagCACLIPDATA - { - ULONG cElems; - CLIPDATA *pElems; - } CACLIPDATA; - -typedef struct tagCACLSID - { - ULONG cElems; - CLSID *pElems; - } CACLSID; -# 290 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 -typedef WORD PROPVAR_PAD1; -typedef WORD PROPVAR_PAD2; -typedef WORD PROPVAR_PAD3; -# 302 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 -struct tagPROPVARIANT { - union { - -struct - { - VARTYPE vt; - PROPVAR_PAD1 wReserved1; - PROPVAR_PAD2 wReserved2; - PROPVAR_PAD3 wReserved3; - union - { - - CHAR cVal; - UCHAR bVal; - SHORT iVal; - USHORT uiVal; - LONG lVal; - ULONG ulVal; - INT intVal; - UINT uintVal; - LARGE_INTEGER hVal; - ULARGE_INTEGER uhVal; - FLOAT fltVal; - DOUBLE dblVal; - VARIANT_BOOL boolVal; - VARIANT_BOOL __OBSOLETE__VARIANT_BOOL; - SCODE scode; - CY cyVal; - DATE date; - FILETIME filetime; - CLSID *puuid; - CLIPDATA *pclipdata; - BSTR bstrVal; - BSTRBLOB bstrblobVal; - BLOB blob; - LPSTR pszVal; - LPWSTR pwszVal; - IUnknown *punkVal; - IDispatch *pdispVal; - IStream *pStream; - IStorage *pStorage; - LPVERSIONEDSTREAM pVersionedStream; - LPSAFEARRAY parray; - CAC cac; - CAUB caub; - CAI cai; - CAUI caui; - CAL cal; - CAUL caul; - CAH cah; - CAUH cauh; - CAFLT caflt; - CADBL cadbl; - CABOOL cabool; - CASCODE cascode; - CACY cacy; - CADATE cadate; - CAFILETIME cafiletime; - CACLSID cauuid; - CACLIPDATA caclipdata; - CABSTR cabstr; - CABSTRBLOB cabstrblob; - CALPSTR calpstr; - CALPWSTR calpwstr; - CAPROPVARIANT capropvar; - CHAR *pcVal; - UCHAR *pbVal; - SHORT *piVal; - USHORT *puiVal; - LONG *plVal; - ULONG *pulVal; - INT *pintVal; - UINT *puintVal; - FLOAT *pfltVal; - DOUBLE *pdblVal; - VARIANT_BOOL *pboolVal; - DECIMAL *pdecVal; - SCODE *pscode; - CY *pcyVal; - DATE *pdate; - BSTR *pbstrVal; - IUnknown **ppunkVal; - IDispatch **ppdispVal; - LPSAFEARRAY *pparray; - PROPVARIANT *pvarVal; - } ; - } ; - - DECIMAL decVal; - }; -}; -# 406 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 -typedef struct tagPROPVARIANT * LPPROPVARIANT; -# 449 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 -typedef struct tagPROPSPEC - { - ULONG ulKind; - union - { - PROPID propid; - LPOLESTR lpwstr; - - } ; - } PROPSPEC; - -typedef struct tagSTATPROPSTG - { - LPOLESTR lpwstrName; - PROPID propid; - VARTYPE vt; - } STATPROPSTG; - - - - - - -typedef struct tagSTATPROPSETSTG - { - FMTID fmtid; - CLSID clsid; - DWORD grfFlags; - FILETIME mtime; - FILETIME ctime; - FILETIME atime; - DWORD dwOSVersion; - } STATPROPSETSTG; - - - -extern RPC_IF_HANDLE __MIDL_itf_propidlbase_0000_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_propidlbase_0000_0000_v0_0_s_ifspec; -# 495 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 -extern const IID IID_IPropertyStorage; -# 556 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 - typedef struct IPropertyStorageVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IPropertyStorage * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IPropertyStorage * This); - - - ULONG ( __stdcall *Release )( - IPropertyStorage * This); - - - HRESULT ( __stdcall *ReadMultiple )( - IPropertyStorage * This, - ULONG cpspec, - const PROPSPEC rgpspec[ ], - PROPVARIANT rgpropvar[ ]); - - - HRESULT ( __stdcall *WriteMultiple )( - IPropertyStorage * This, - ULONG cpspec, - const PROPSPEC rgpspec[ ], - const PROPVARIANT rgpropvar[ ], - PROPID propidNameFirst); - - - HRESULT ( __stdcall *DeleteMultiple )( - IPropertyStorage * This, - ULONG cpspec, - const PROPSPEC rgpspec[ ]); - - - HRESULT ( __stdcall *ReadPropertyNames )( - IPropertyStorage * This, - ULONG cpropid, - const PROPID rgpropid[ ], - LPOLESTR rglpwstrName[ ]); - - - HRESULT ( __stdcall *WritePropertyNames )( - IPropertyStorage * This, - ULONG cpropid, - const PROPID rgpropid[ ], - const LPOLESTR rglpwstrName[ ]); - - - HRESULT ( __stdcall *DeletePropertyNames )( - IPropertyStorage * This, - ULONG cpropid, - const PROPID rgpropid[ ]); - - - HRESULT ( __stdcall *Commit )( - IPropertyStorage * This, - DWORD grfCommitFlags); - - - HRESULT ( __stdcall *Revert )( - IPropertyStorage * This); - - - HRESULT ( __stdcall *Enum )( - IPropertyStorage * This, - IEnumSTATPROPSTG **ppenum); - - - HRESULT ( __stdcall *SetTimes )( - IPropertyStorage * This, - const FILETIME *pctime, - const FILETIME *patime, - const FILETIME *pmtime); - - - HRESULT ( __stdcall *SetClass )( - IPropertyStorage * This, - const IID * const clsid); - - - HRESULT ( __stdcall *Stat )( - IPropertyStorage * This, - STATPROPSETSTG *pstatpsstg); - - - } IPropertyStorageVtbl; - - struct IPropertyStorage - { - struct IPropertyStorageVtbl *lpVtbl; - }; -# 723 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 -typedef IPropertySetStorage *LPPROPERTYSETSTORAGE; - - -extern const IID IID_IPropertySetStorage; -# 757 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 - typedef struct IPropertySetStorageVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IPropertySetStorage * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IPropertySetStorage * This); - - - ULONG ( __stdcall *Release )( - IPropertySetStorage * This); - - - HRESULT ( __stdcall *Create )( - IPropertySetStorage * This, - const IID * const rfmtid, - const CLSID *pclsid, - DWORD grfFlags, - DWORD grfMode, - IPropertyStorage **ppprstg); - - - HRESULT ( __stdcall *Open )( - IPropertySetStorage * This, - const IID * const rfmtid, - DWORD grfMode, - IPropertyStorage **ppprstg); - - - HRESULT ( __stdcall *Delete )( - IPropertySetStorage * This, - const IID * const rfmtid); - - - HRESULT ( __stdcall *Enum )( - IPropertySetStorage * This, - IEnumSTATPROPSETSTG **ppenum); - - - } IPropertySetStorageVtbl; - - struct IPropertySetStorage - { - struct IPropertySetStorageVtbl *lpVtbl; - }; -# 854 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 -typedef IEnumSTATPROPSTG *LPENUMSTATPROPSTG; - - -extern const IID IID_IEnumSTATPROPSTG; -# 885 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 - typedef struct IEnumSTATPROPSTGVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IEnumSTATPROPSTG * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IEnumSTATPROPSTG * This); - - - ULONG ( __stdcall *Release )( - IEnumSTATPROPSTG * This); - - - HRESULT ( __stdcall *Next )( - IEnumSTATPROPSTG * This, - ULONG celt, - - STATPROPSTG *rgelt, - - ULONG *pceltFetched); - - - HRESULT ( __stdcall *Skip )( - IEnumSTATPROPSTG * This, - ULONG celt); - - - HRESULT ( __stdcall *Reset )( - IEnumSTATPROPSTG * This); - - - HRESULT ( __stdcall *Clone )( - IEnumSTATPROPSTG * This, - IEnumSTATPROPSTG **ppenum); - - - } IEnumSTATPROPSTGVtbl; - - struct IEnumSTATPROPSTG - { - struct IEnumSTATPROPSTGVtbl *lpVtbl; - }; -# 969 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 - HRESULT __stdcall IEnumSTATPROPSTG_RemoteNext_Proxy( - IEnumSTATPROPSTG * This, - ULONG celt, - STATPROPSTG *rgelt, - ULONG *pceltFetched); - - -void __stdcall IEnumSTATPROPSTG_RemoteNext_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 993 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 -typedef IEnumSTATPROPSETSTG *LPENUMSTATPROPSETSTG; - - -extern const IID IID_IEnumSTATPROPSETSTG; -# 1024 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 - typedef struct IEnumSTATPROPSETSTGVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IEnumSTATPROPSETSTG * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IEnumSTATPROPSETSTG * This); - - - ULONG ( __stdcall *Release )( - IEnumSTATPROPSETSTG * This); - - - HRESULT ( __stdcall *Next )( - IEnumSTATPROPSETSTG * This, - ULONG celt, - - STATPROPSETSTG *rgelt, - - ULONG *pceltFetched); - - - HRESULT ( __stdcall *Skip )( - IEnumSTATPROPSETSTG * This, - ULONG celt); - - - HRESULT ( __stdcall *Reset )( - IEnumSTATPROPSETSTG * This); - - - HRESULT ( __stdcall *Clone )( - IEnumSTATPROPSETSTG * This, - IEnumSTATPROPSETSTG **ppenum); - - - } IEnumSTATPROPSETSTGVtbl; - - struct IEnumSTATPROPSETSTG - { - struct IEnumSTATPROPSETSTGVtbl *lpVtbl; - }; -# 1108 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 - HRESULT __stdcall IEnumSTATPROPSETSTG_RemoteNext_Proxy( - IEnumSTATPROPSETSTG * This, - ULONG celt, - STATPROPSETSTG *rgelt, - ULONG *pceltFetched); - - -void __stdcall IEnumSTATPROPSETSTG_RemoteNext_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 1129 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidlbase.h" 3 -typedef IPropertyStorage *LPPROPERTYSTORAGE; - - - - - - - -#pragma warning(pop) - - - - - - -extern RPC_IF_HANDLE __MIDL_itf_propidlbase_0000_0004_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_propidlbase_0000_0004_v0_0_s_ifspec; - - - -unsigned long __stdcall BSTR_UserSize( unsigned long *, unsigned long , BSTR * ); -unsigned char * __stdcall BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * ); -unsigned char * __stdcall BSTR_UserUnmarshal( unsigned long *, unsigned char *, BSTR * ); -void __stdcall BSTR_UserFree( unsigned long *, BSTR * ); - -unsigned long __stdcall LPSAFEARRAY_UserSize( unsigned long *, unsigned long , LPSAFEARRAY * ); -unsigned char * __stdcall LPSAFEARRAY_UserMarshal( unsigned long *, unsigned char *, LPSAFEARRAY * ); -unsigned char * __stdcall LPSAFEARRAY_UserUnmarshal( unsigned long *, unsigned char *, LPSAFEARRAY * ); -void __stdcall LPSAFEARRAY_UserFree( unsigned long *, LPSAFEARRAY * ); - -unsigned long __stdcall BSTR_UserSize64( unsigned long *, unsigned long , BSTR * ); -unsigned char * __stdcall BSTR_UserMarshal64( unsigned long *, unsigned char *, BSTR * ); -unsigned char * __stdcall BSTR_UserUnmarshal64( unsigned long *, unsigned char *, BSTR * ); -void __stdcall BSTR_UserFree64( unsigned long *, BSTR * ); - -unsigned long __stdcall LPSAFEARRAY_UserSize64( unsigned long *, unsigned long , LPSAFEARRAY * ); -unsigned char * __stdcall LPSAFEARRAY_UserMarshal64( unsigned long *, unsigned char *, LPSAFEARRAY * ); -unsigned char * __stdcall LPSAFEARRAY_UserUnmarshal64( unsigned long *, unsigned char *, LPSAFEARRAY * ); -void __stdcall LPSAFEARRAY_UserFree64( unsigned long *, LPSAFEARRAY * ); - - HRESULT __stdcall IEnumSTATPROPSTG_Next_Proxy( - IEnumSTATPROPSTG * This, - ULONG celt, - - STATPROPSTG *rgelt, - - ULONG *pceltFetched); - - - HRESULT __stdcall IEnumSTATPROPSTG_Next_Stub( - IEnumSTATPROPSTG * This, - ULONG celt, - STATPROPSTG *rgelt, - ULONG *pceltFetched); - - HRESULT __stdcall IEnumSTATPROPSETSTG_Next_Proxy( - IEnumSTATPROPSETSTG * This, - ULONG celt, - - STATPROPSETSTG *rgelt, - - ULONG *pceltFetched); - - - HRESULT __stdcall IEnumSTATPROPSETSTG_Next_Stub( - IEnumSTATPROPSETSTG * This, - ULONG celt, - STATPROPSETSTG *rgelt, - ULONG *pceltFetched); -# 25 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\coml2api.h" 2 3 -# 66 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\coml2api.h" 3 -typedef DWORD STGFMT; -# 86 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\coml2api.h" 3 -extern __declspec(dllimport) HRESULT __stdcall -StgCreateDocfile( - const WCHAR* pwcsName, - DWORD grfMode, - DWORD reserved, - IStorage** ppstgOpen - ); - - - -extern __declspec(dllimport) HRESULT __stdcall -StgCreateDocfileOnILockBytes( - ILockBytes* plkbyt, - DWORD grfMode, - DWORD reserved, - IStorage** ppstgOpen - ); - - - -extern __declspec(dllimport) HRESULT __stdcall -StgOpenStorage( - const WCHAR* pwcsName, - IStorage* pstgPriority, - DWORD grfMode, - SNB snbExclude, - DWORD reserved, - IStorage** ppstgOpen - ); - - - -extern __declspec(dllimport) HRESULT __stdcall -StgOpenStorageOnILockBytes( - ILockBytes* plkbyt, - IStorage* pstgPriority, - DWORD grfMode, - SNB snbExclude, - DWORD reserved, - IStorage** ppstgOpen - ); - - - -extern __declspec(dllimport) HRESULT __stdcall -StgIsStorageFile( - const WCHAR* pwcsName - ); - - - -extern __declspec(dllimport) HRESULT __stdcall -StgIsStorageILockBytes( - ILockBytes* plkbyt - ); - - - -extern __declspec(dllimport) HRESULT __stdcall -StgSetTimes( - const WCHAR* lpszName, - const FILETIME* pctime, - const FILETIME* patime, - const FILETIME* pmtime - ); -# 161 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\coml2api.h" 3 -typedef struct tagSTGOPTIONS -{ - USHORT usVersion; - USHORT reserved; - ULONG ulSectorSize; - - const WCHAR *pwcsTemplateFile; - -} STGOPTIONS; - - - -extern __declspec(dllimport) HRESULT __stdcall -StgCreateStorageEx( - const WCHAR* pwcsName, - DWORD grfMode, - DWORD stgfmt, - DWORD grfAttrs, - STGOPTIONS* pStgOptions, - PSECURITY_DESCRIPTOR pSecurityDescriptor, - const IID * const riid, - void** ppObjectOpen - ); - - - -extern __declspec(dllimport) HRESULT __stdcall -StgOpenStorageEx( - const WCHAR* pwcsName, - DWORD grfMode, - DWORD stgfmt, - DWORD grfAttrs, - STGOPTIONS* pStgOptions, - PSECURITY_DESCRIPTOR pSecurityDescriptor, - const IID * const riid, - void** ppObjectOpen - ); - - - - - -extern __declspec(dllimport) HRESULT __stdcall -StgCreatePropStg( - IUnknown* pUnk, - const IID * const fmtid, - const CLSID* pclsid, - DWORD grfFlags, - DWORD dwReserved, - IPropertyStorage** ppPropStg - ); - - - -extern __declspec(dllimport) HRESULT __stdcall -StgOpenPropStg( - IUnknown* pUnk, - const IID * const fmtid, - DWORD grfFlags, - DWORD dwReserved, - IPropertyStorage** ppPropStg - ); - - - -extern __declspec(dllimport) HRESULT __stdcall -StgCreatePropSetStg( - IStorage* pStorage, - DWORD dwReserved, - IPropertySetStorage** ppPropSetStg - ); - - - - - -extern __declspec(dllimport) HRESULT __stdcall -FmtIdToPropStgName( - const FMTID* pfmtid, - LPOLESTR oszName - ); - - - -extern __declspec(dllimport) HRESULT __stdcall -PropStgNameToFmtId( - const LPOLESTR oszName, - FMTID* pfmtid - ); - - - - - -extern __declspec(dllimport) HRESULT __stdcall -ReadClassStg( - LPSTORAGE pStg, - CLSID * pclsid - ); - -extern __declspec(dllimport) HRESULT __stdcall -WriteClassStg( - LPSTORAGE pStg, - const IID * const rclsid - ); - -extern __declspec(dllimport) HRESULT __stdcall -ReadClassStm( - LPSTREAM pStm, - CLSID * pclsid - ); - -extern __declspec(dllimport) HRESULT __stdcall -WriteClassStm( - LPSTREAM pStm, - const IID * const rclsid - ); - - - - -extern __declspec(dllimport) HRESULT __stdcall -GetHGlobalFromILockBytes( - LPLOCKBYTES plkbyt, - HGLOBAL * phglobal - ); - - - -extern __declspec(dllimport) HRESULT __stdcall -CreateILockBytesOnHGlobal( - HGLOBAL hGlobal, - BOOL fDeleteOnRelease, - LPLOCKBYTES * pplkbyt - ); - - - -extern __declspec(dllimport) HRESULT __stdcall -GetConvertStg( - LPSTORAGE pStg - ); -# 29 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 2 3 - - -typedef enum tagCOINIT -{ - COINIT_APARTMENTTHREADED = 0x2, - - - - COINIT_MULTITHREADED = COINITBASE_MULTITHREADED, - COINIT_DISABLE_OLE1DDE = 0x4, - COINIT_SPEED_OVER_MEMORY = 0x8, - -} COINIT; -# 76 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 3 -extern __declspec(dllimport) DWORD __stdcall CoBuildVersion( void ); - - - - extern __declspec(dllimport) HRESULT __stdcall CoInitialize( LPVOID pvReserved); - - - extern __declspec(dllimport) HRESULT __stdcall CoRegisterMallocSpy( LPMALLOCSPY pMallocSpy); - extern __declspec(dllimport) HRESULT __stdcall CoRevokeMallocSpy(void); -extern __declspec(dllimport) HRESULT __stdcall CoCreateStandardMalloc( DWORD memctx, IMalloc * * ppMalloc); - - - - - extern __declspec(dllimport) HRESULT __stdcall CoRegisterInitializeSpy( IInitializeSpy *pSpy, ULARGE_INTEGER *puliCookie); - extern __declspec(dllimport) HRESULT __stdcall CoRevokeInitializeSpy( ULARGE_INTEGER uliCookie); - - - -typedef enum tagCOMSD -{ - SD_LAUNCHPERMISSIONS = 0, - SD_ACCESSPERMISSIONS = 1, - SD_LAUNCHRESTRICTIONS = 2, - SD_ACCESSRESTRICTIONS = 3 - -} COMSD; - extern __declspec(dllimport) HRESULT __stdcall CoGetSystemSecurityPermissions(COMSD comSDType, PSECURITY_DESCRIPTOR *ppSD); - - - - - -extern __declspec(dllimport) HINSTANCE __stdcall CoLoadLibrary( LPOLESTR lpszLibName, BOOL bAutoFree); -extern __declspec(dllimport) void __stdcall CoFreeLibrary( HINSTANCE hInst); -extern __declspec(dllimport) void __stdcall CoFreeAllLibraries(void); - - - - - - extern __declspec(dllimport) HRESULT __stdcall CoGetInstanceFromFile( - COSERVERINFO * pServerInfo, - CLSID * pClsid, - IUnknown * punkOuter, - DWORD dwClsCtx, - DWORD grfMode, - OLECHAR * pwszName, - DWORD dwCount, - MULTI_QI * pResults ); - - - extern __declspec(dllimport) HRESULT __stdcall CoGetInstanceFromIStorage( - COSERVERINFO * pServerInfo, - CLSID * pClsid, - IUnknown * punkOuter, - DWORD dwClsCtx, - struct IStorage * pstg, - DWORD dwCount, - MULTI_QI * pResults ); - - - - - - - -extern __declspec(dllimport) HRESULT __stdcall CoAllowSetForegroundWindow( IUnknown *pUnk, LPVOID lpvReserved); - - -extern __declspec(dllimport) HRESULT __stdcall DcomChannelSetHResult( LPVOID pvReserved, ULONG* pulReserved, HRESULT appsHR); - - - - -extern __declspec(dllimport) BOOL __stdcall CoIsOle1Class( const IID * const rclsid); - extern __declspec(dllimport) HRESULT __stdcall CLSIDFromProgIDEx ( LPCOLESTR lpszProgID, LPCLSID lpclsid); - -extern __declspec(dllimport) BOOL __stdcall CoFileTimeToDosDateTime( - FILETIME * lpFileTime, LPWORD lpDosDate, LPWORD lpDosTime); -extern __declspec(dllimport) BOOL __stdcall CoDosDateTimeToFileTime( - WORD nDosDate, WORD nDosTime, FILETIME * lpFileTime); -extern __declspec(dllimport) HRESULT __stdcall CoFileTimeNow( FILETIME * lpFileTime ); - - extern __declspec(dllimport) HRESULT __stdcall CoRegisterMessageFilter( LPMESSAGEFILTER lpMessageFilter, - LPMESSAGEFILTER * lplpMessageFilter ); - - - -extern __declspec(dllimport) HRESULT __stdcall CoRegisterChannelHook( const GUID * const ExtensionUuid, IChannelHook *pChannelHook ); - - - - - - extern __declspec(dllimport) HRESULT __stdcall CoTreatAsClass( const IID * const clsidOld, const IID * const clsidNew); - - - - -extern __declspec(dllimport) HRESULT __stdcall CreateDataAdviseHolder( LPDATAADVISEHOLDER * ppDAHolder); - -extern __declspec(dllimport) HRESULT __stdcall CreateDataCache( LPUNKNOWN pUnkOuter, const IID * const rclsid, - const IID * const iid, LPVOID * ppv); - - - - - - extern __declspec(dllimport) HRESULT __stdcall StgOpenAsyncDocfileOnIFillLockBytes( IFillLockBytes *pflb, - DWORD grfMode, - DWORD asyncFlags, - IStorage** ppstgOpen); - - extern __declspec(dllimport) HRESULT __stdcall StgGetIFillLockBytesOnILockBytes( ILockBytes *pilb, - IFillLockBytes** ppflb); - - extern __declspec(dllimport) HRESULT __stdcall StgGetIFillLockBytesOnFile( OLECHAR const *pwcsName, - IFillLockBytes** ppflb); - - extern __declspec(dllimport) HRESULT __stdcall StgOpenLayoutDocfile( OLECHAR const *pwcsDfName, - DWORD grfMode, - DWORD reserved, - IStorage** ppstgOpen); - - - - - - - -extern __declspec(dllimport) HRESULT __stdcall CoInstall( - IBindCtx * pbc, - DWORD dwFlags, - uCLSSPEC * pClassSpec, - QUERYCONTEXT * pQuery, - LPWSTR pszCodeBase); -# 224 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 3 - extern __declspec(dllimport) HRESULT __stdcall BindMoniker( LPMONIKER pmk, DWORD grfOpt, const IID * const iidResult, LPVOID * ppvResult); - - extern __declspec(dllimport) HRESULT __stdcall CoGetObject( LPCWSTR pszName, BIND_OPTS *pBindOptions, const IID * const riid, void **ppv); - extern __declspec(dllimport) HRESULT __stdcall MkParseDisplayName( LPBC pbc, LPCOLESTR szUserName, - ULONG * pchEaten, LPMONIKER * ppmk); - extern __declspec(dllimport) HRESULT __stdcall MonikerRelativePathTo( LPMONIKER pmkSrc, LPMONIKER pmkDest, LPMONIKER - * ppmkRelPath, BOOL dwReserved); - extern __declspec(dllimport) HRESULT __stdcall MonikerCommonPrefixWith( LPMONIKER pmkThis, LPMONIKER pmkOther, - LPMONIKER * ppmkCommon); - extern __declspec(dllimport) HRESULT __stdcall CreateBindCtx( DWORD reserved, LPBC * ppbc); - extern __declspec(dllimport) HRESULT __stdcall CreateGenericComposite( LPMONIKER pmkFirst, LPMONIKER pmkRest, - LPMONIKER * ppmkComposite); - extern __declspec(dllimport) HRESULT __stdcall GetClassFile ( LPCOLESTR szFilename, CLSID * pclsid); - - extern __declspec(dllimport) HRESULT __stdcall CreateClassMoniker( const IID * const rclsid, LPMONIKER * ppmk); - - extern __declspec(dllimport) HRESULT __stdcall CreateFileMoniker( LPCOLESTR lpszPathName, LPMONIKER * ppmk); - - extern __declspec(dllimport) HRESULT __stdcall CreateItemMoniker( LPCOLESTR lpszDelim, LPCOLESTR lpszItem, - LPMONIKER * ppmk); - extern __declspec(dllimport) HRESULT __stdcall CreateAntiMoniker( LPMONIKER * ppmk); - extern __declspec(dllimport) HRESULT __stdcall CreatePointerMoniker( LPUNKNOWN punk, LPMONIKER * ppmk); - extern __declspec(dllimport) HRESULT __stdcall CreateObjrefMoniker( LPUNKNOWN punk, LPMONIKER * ppmk); - - - - - - - - extern __declspec(dllimport) HRESULT __stdcall GetRunningObjectTable( DWORD reserved, LPRUNNINGOBJECTTABLE * pprot); - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 1 3 -# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -typedef struct IPersistMoniker IPersistMoniker; - - - - - - -typedef struct IMonikerProp IMonikerProp; - - - - - - -typedef struct IBindProtocol IBindProtocol; - - - - - - -typedef struct IBinding IBinding; - - - - - - -typedef struct IBindStatusCallback IBindStatusCallback; - - - - - - -typedef struct IBindStatusCallbackEx IBindStatusCallbackEx; - - - - - - -typedef struct IAuthenticate IAuthenticate; - - - - - - -typedef struct IAuthenticateEx IAuthenticateEx; - - - - - - -typedef struct IHttpNegotiate IHttpNegotiate; - - - - - - -typedef struct IHttpNegotiate2 IHttpNegotiate2; - - - - - - -typedef struct IHttpNegotiate3 IHttpNegotiate3; - - - - - - -typedef struct IWinInetFileStream IWinInetFileStream; - - - - - - -typedef struct IWindowForBindingUI IWindowForBindingUI; - - - - - - -typedef struct ICodeInstall ICodeInstall; - - - - - - -typedef struct IUri IUri; - - - - - - -typedef struct IUriContainer IUriContainer; - - - - - - -typedef struct IUriBuilder IUriBuilder; - - - - - - -typedef struct IUriBuilderFactory IUriBuilderFactory; - - - - - - -typedef struct IWinInetInfo IWinInetInfo; - - - - - - -typedef struct IHttpSecurity IHttpSecurity; - - - - - - -typedef struct IWinInetHttpInfo IWinInetHttpInfo; - - - - - - -typedef struct IWinInetHttpTimeouts IWinInetHttpTimeouts; - - - - - - -typedef struct IWinInetCacheHints IWinInetCacheHints; - - - - - - -typedef struct IWinInetCacheHints2 IWinInetCacheHints2; - - - - - - -typedef struct IBindHost IBindHost; - - - - - - -typedef struct IInternet IInternet; - - - - - - -typedef struct IInternetBindInfo IInternetBindInfo; - - - - - - -typedef struct IInternetBindInfoEx IInternetBindInfoEx; - - - - - - -typedef struct IInternetProtocolRoot IInternetProtocolRoot; - - - - - - -typedef struct IInternetProtocol IInternetProtocol; - - - - - - -typedef struct IInternetProtocolEx IInternetProtocolEx; - - - - - - -typedef struct IInternetProtocolSink IInternetProtocolSink; - - - - - - -typedef struct IInternetProtocolSinkStackable IInternetProtocolSinkStackable; - - - - - - -typedef struct IInternetSession IInternetSession; - - - - - - -typedef struct IInternetThreadSwitch IInternetThreadSwitch; - - - - - - -typedef struct IInternetPriority IInternetPriority; - - - - - - -typedef struct IInternetProtocolInfo IInternetProtocolInfo; - - - - - - -typedef struct IInternetSecurityMgrSite IInternetSecurityMgrSite; - - - - - - -typedef struct IInternetSecurityManager IInternetSecurityManager; - - - - - - -typedef struct IInternetSecurityManagerEx IInternetSecurityManagerEx; - - - - - - -typedef struct IInternetSecurityManagerEx2 IInternetSecurityManagerEx2; - - - - - - -typedef struct IZoneIdentifier IZoneIdentifier; - - - - - - -typedef struct IZoneIdentifier2 IZoneIdentifier2; - - - - - - -typedef struct IInternetHostSecurityManager IInternetHostSecurityManager; - - - - - - -typedef struct IInternetZoneManager IInternetZoneManager; - - - - - - -typedef struct IInternetZoneManagerEx IInternetZoneManagerEx; - - - - - - -typedef struct IInternetZoneManagerEx2 IInternetZoneManagerEx2; - - - - - - -typedef struct ISoftDistExt ISoftDistExt; - - - - - - -typedef struct ICatalogFileInfo ICatalogFileInfo; - - - - - - -typedef struct IDataFilter IDataFilter; - - - - - - -typedef struct IEncodingFilterFactory IEncodingFilterFactory; - - - - - - -typedef struct IWrappedProtocol IWrappedProtocol; - - - - - - -typedef struct IGetBindHandle IGetBindHandle; - - - - - - -typedef struct IBindCallbackRedirect IBindCallbackRedirect; - - - - - - -typedef struct IBindHttpSecurity IBindHttpSecurity; - - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 1 3 -# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef struct IOleAdviseHolder IOleAdviseHolder; - - - - - - -typedef struct IOleCache IOleCache; - - - - - - -typedef struct IOleCache2 IOleCache2; - - - - - - -typedef struct IOleCacheControl IOleCacheControl; - - - - - - -typedef struct IParseDisplayName IParseDisplayName; - - - - - - -typedef struct IOleContainer IOleContainer; - - - - - - -typedef struct IOleClientSite IOleClientSite; - - - - - - -typedef struct IOleObject IOleObject; - - - - - - -typedef struct IOleWindow IOleWindow; - - - - - - -typedef struct IOleLink IOleLink; - - - - - - -typedef struct IOleItemContainer IOleItemContainer; - - - - - - -typedef struct IOleInPlaceUIWindow IOleInPlaceUIWindow; - - - - - - -typedef struct IOleInPlaceActiveObject IOleInPlaceActiveObject; - - - - - - -typedef struct IOleInPlaceFrame IOleInPlaceFrame; - - - - - - -typedef struct IOleInPlaceObject IOleInPlaceObject; - - - - - - -typedef struct IOleInPlaceSite IOleInPlaceSite; - - - - - - -typedef struct IContinue IContinue; - - - - - - -typedef struct IViewObject IViewObject; - - - - - - -typedef struct IViewObject2 IViewObject2; - - - - - - -typedef struct IDropSource IDropSource; - - - - - - -typedef struct IDropTarget IDropTarget; - - - - - - -typedef struct IDropSourceNotify IDropSourceNotify; - - - - - - -typedef struct IEnterpriseDropTarget IEnterpriseDropTarget; - - - - - - -typedef struct IEnumOLEVERB IEnumOLEVERB; -# 240 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - - - - - - - -extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0000_v0_0_s_ifspec; - - - - - - - -typedef IOleAdviseHolder *LPOLEADVISEHOLDER; - - -extern const IID IID_IOleAdviseHolder; -# 295 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleAdviseHolderVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleAdviseHolder * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleAdviseHolder * This); - - - ULONG ( __stdcall *Release )( - IOleAdviseHolder * This); - - - HRESULT ( __stdcall *Advise )( - IOleAdviseHolder * This, - - IAdviseSink *pAdvise, - - DWORD *pdwConnection); - - - HRESULT ( __stdcall *Unadvise )( - IOleAdviseHolder * This, - DWORD dwConnection); - - - HRESULT ( __stdcall *EnumAdvise )( - IOleAdviseHolder * This, - - IEnumSTATDATA **ppenumAdvise); - - - HRESULT ( __stdcall *SendOnRename )( - IOleAdviseHolder * This, - - IMoniker *pmk); - - - HRESULT ( __stdcall *SendOnSave )( - IOleAdviseHolder * This); - - - HRESULT ( __stdcall *SendOnClose )( - IOleAdviseHolder * This); - - - } IOleAdviseHolderVtbl; - - struct IOleAdviseHolder - { - struct IOleAdviseHolderVtbl *lpVtbl; - }; -# 408 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0001_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0001_v0_0_s_ifspec; - - - - - - - -typedef IOleCache *LPOLECACHE; - - -extern const IID IID_IOleCache; -# 452 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleCacheVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleCache * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleCache * This); - - - ULONG ( __stdcall *Release )( - IOleCache * This); - - - HRESULT ( __stdcall *Cache )( - IOleCache * This, - FORMATETC *pformatetc, - DWORD advf, - DWORD *pdwConnection); - - - HRESULT ( __stdcall *Uncache )( - IOleCache * This, - DWORD dwConnection); - - - HRESULT ( __stdcall *EnumCache )( - IOleCache * This, - IEnumSTATDATA **ppenumSTATDATA); - - - HRESULT ( __stdcall *InitCache )( - IOleCache * This, - IDataObject *pDataObject); - - - HRESULT ( __stdcall *SetData )( - IOleCache * This, - FORMATETC *pformatetc, - STGMEDIUM *pmedium, - BOOL fRelease); - - - } IOleCacheVtbl; - - struct IOleCache - { - struct IOleCacheVtbl *lpVtbl; - }; -# 555 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IOleCache2 *LPOLECACHE2; -# 575 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef -enum tagDISCARDCACHE - { - DISCARDCACHE_SAVEIFDIRTY = 0, - DISCARDCACHE_NOSAVE = 1 - } DISCARDCACHE; - - -extern const IID IID_IOleCache2; -# 607 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleCache2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleCache2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleCache2 * This); - - - ULONG ( __stdcall *Release )( - IOleCache2 * This); - - - HRESULT ( __stdcall *Cache )( - IOleCache2 * This, - FORMATETC *pformatetc, - DWORD advf, - DWORD *pdwConnection); - - - HRESULT ( __stdcall *Uncache )( - IOleCache2 * This, - DWORD dwConnection); - - - HRESULT ( __stdcall *EnumCache )( - IOleCache2 * This, - IEnumSTATDATA **ppenumSTATDATA); - - - HRESULT ( __stdcall *InitCache )( - IOleCache2 * This, - IDataObject *pDataObject); - - - HRESULT ( __stdcall *SetData )( - IOleCache2 * This, - FORMATETC *pformatetc, - STGMEDIUM *pmedium, - BOOL fRelease); - - - HRESULT ( __stdcall *UpdateCache )( - IOleCache2 * This, - - LPDATAOBJECT pDataObject, - - DWORD grfUpdf, - - LPVOID pReserved); - - - HRESULT ( __stdcall *DiscardCache )( - IOleCache2 * This, - DWORD dwDiscardOptions); - - - } IOleCache2Vtbl; - - struct IOleCache2 - { - struct IOleCache2Vtbl *lpVtbl; - }; -# 722 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - HRESULT __stdcall IOleCache2_RemoteUpdateCache_Proxy( - IOleCache2 * This, - LPDATAOBJECT pDataObject, - DWORD grfUpdf, - LONG_PTR pReserved); - - -void __stdcall IOleCache2_RemoteUpdateCache_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 749 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0003_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0003_v0_0_s_ifspec; - - - - - - - -typedef IOleCacheControl *LPOLECACHECONTROL; - - -extern const IID IID_IOleCacheControl; -# 779 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleCacheControlVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleCacheControl * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleCacheControl * This); - - - ULONG ( __stdcall *Release )( - IOleCacheControl * This); - - - HRESULT ( __stdcall *OnRun )( - IOleCacheControl * This, - LPDATAOBJECT pDataObject); - - - HRESULT ( __stdcall *OnStop )( - IOleCacheControl * This); - - - } IOleCacheControlVtbl; - - struct IOleCacheControl - { - struct IOleCacheControlVtbl *lpVtbl; - }; -# 853 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IParseDisplayName *LPPARSEDISPLAYNAME; - - -extern const IID IID_IParseDisplayName; -# 875 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IParseDisplayNameVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IParseDisplayName * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IParseDisplayName * This); - - - ULONG ( __stdcall *Release )( - IParseDisplayName * This); - - - HRESULT ( __stdcall *ParseDisplayName )( - IParseDisplayName * This, - IBindCtx *pbc, - LPOLESTR pszDisplayName, - ULONG *pchEaten, - IMoniker **ppmkOut); - - - } IParseDisplayNameVtbl; - - struct IParseDisplayName - { - struct IParseDisplayNameVtbl *lpVtbl; - }; -# 945 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IOleContainer *LPOLECONTAINER; - - -extern const IID IID_IOleContainer; -# 968 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleContainerVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleContainer * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleContainer * This); - - - ULONG ( __stdcall *Release )( - IOleContainer * This); - - - HRESULT ( __stdcall *ParseDisplayName )( - IOleContainer * This, - IBindCtx *pbc, - LPOLESTR pszDisplayName, - ULONG *pchEaten, - IMoniker **ppmkOut); - - - HRESULT ( __stdcall *EnumObjects )( - IOleContainer * This, - DWORD grfFlags, - IEnumUnknown **ppenum); - - - HRESULT ( __stdcall *LockContainer )( - IOleContainer * This, - BOOL fLock); - - - } IOleContainerVtbl; - - struct IOleContainer - { - struct IOleContainerVtbl *lpVtbl; - }; -# 1056 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IOleClientSite *LPOLECLIENTSITE; - - -extern const IID IID_IOleClientSite; -# 1089 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleClientSiteVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleClientSite * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleClientSite * This); - - - ULONG ( __stdcall *Release )( - IOleClientSite * This); - - - HRESULT ( __stdcall *SaveObject )( - IOleClientSite * This); - - - HRESULT ( __stdcall *GetMoniker )( - IOleClientSite * This, - DWORD dwAssign, - DWORD dwWhichMoniker, - IMoniker **ppmk); - - - HRESULT ( __stdcall *GetContainer )( - IOleClientSite * This, - IOleContainer **ppContainer); - - - HRESULT ( __stdcall *ShowObject )( - IOleClientSite * This); - - - HRESULT ( __stdcall *OnShowWindow )( - IOleClientSite * This, - BOOL fShow); - - - HRESULT ( __stdcall *RequestNewObjectLayout )( - IOleClientSite * This); - - - } IOleClientSiteVtbl; - - struct IOleClientSite - { - struct IOleClientSiteVtbl *lpVtbl; - }; -# 1195 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IOleObject *LPOLEOBJECT; - -typedef -enum tagOLEGETMONIKER - { - OLEGETMONIKER_ONLYIFTHERE = 1, - OLEGETMONIKER_FORCEASSIGN = 2, - OLEGETMONIKER_UNASSIGN = 3, - OLEGETMONIKER_TEMPFORUSER = 4 - } OLEGETMONIKER; - -typedef -enum tagOLEWHICHMK - { - OLEWHICHMK_CONTAINER = 1, - OLEWHICHMK_OBJREL = 2, - OLEWHICHMK_OBJFULL = 3 - } OLEWHICHMK; - -typedef -enum tagUSERCLASSTYPE - { - USERCLASSTYPE_FULL = 1, - USERCLASSTYPE_SHORT = 2, - USERCLASSTYPE_APPNAME = 3 - } USERCLASSTYPE; - -typedef -enum tagOLEMISC - { - OLEMISC_RECOMPOSEONRESIZE = 0x1, - OLEMISC_ONLYICONIC = 0x2, - OLEMISC_INSERTNOTREPLACE = 0x4, - OLEMISC_STATIC = 0x8, - OLEMISC_CANTLINKINSIDE = 0x10, - OLEMISC_CANLINKBYOLE1 = 0x20, - OLEMISC_ISLINKOBJECT = 0x40, - OLEMISC_INSIDEOUT = 0x80, - OLEMISC_ACTIVATEWHENVISIBLE = 0x100, - OLEMISC_RENDERINGISDEVICEINDEPENDENT = 0x200, - OLEMISC_INVISIBLEATRUNTIME = 0x400, - OLEMISC_ALWAYSRUN = 0x800, - OLEMISC_ACTSLIKEBUTTON = 0x1000, - OLEMISC_ACTSLIKELABEL = 0x2000, - OLEMISC_NOUIACTIVATE = 0x4000, - OLEMISC_ALIGNABLE = 0x8000, - OLEMISC_SIMPLEFRAME = 0x10000, - OLEMISC_SETCLIENTSITEFIRST = 0x20000, - OLEMISC_IMEMODE = 0x40000, - OLEMISC_IGNOREACTIVATEWHENVISIBLE = 0x80000, - OLEMISC_WANTSTOMENUMERGE = 0x100000, - OLEMISC_SUPPORTSMULTILEVELUNDO = 0x200000 - } OLEMISC; - -typedef -enum tagOLECLOSE - { - OLECLOSE_SAVEIFDIRTY = 0, - OLECLOSE_NOSAVE = 1, - OLECLOSE_PROMPTSAVE = 2 - } OLECLOSE; - - -extern const IID IID_IOleObject; -# 1349 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleObjectVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleObject * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleObject * This); - - - ULONG ( __stdcall *Release )( - IOleObject * This); - - - HRESULT ( __stdcall *SetClientSite )( - IOleObject * This, - IOleClientSite *pClientSite); - - - HRESULT ( __stdcall *GetClientSite )( - IOleObject * This, - IOleClientSite **ppClientSite); - - - HRESULT ( __stdcall *SetHostNames )( - IOleObject * This, - LPCOLESTR szContainerApp, - LPCOLESTR szContainerObj); - - - HRESULT ( __stdcall *Close )( - IOleObject * This, - DWORD dwSaveOption); - - - HRESULT ( __stdcall *SetMoniker )( - IOleObject * This, - DWORD dwWhichMoniker, - IMoniker *pmk); - - - HRESULT ( __stdcall *GetMoniker )( - IOleObject * This, - DWORD dwAssign, - DWORD dwWhichMoniker, - IMoniker **ppmk); - - - HRESULT ( __stdcall *InitFromData )( - IOleObject * This, - IDataObject *pDataObject, - BOOL fCreation, - DWORD dwReserved); - - - HRESULT ( __stdcall *GetClipboardData )( - IOleObject * This, - DWORD dwReserved, - IDataObject **ppDataObject); - - - HRESULT ( __stdcall *DoVerb )( - IOleObject * This, - LONG iVerb, - LPMSG lpmsg, - IOleClientSite *pActiveSite, - LONG lindex, - HWND hwndParent, - LPCRECT lprcPosRect); - - - HRESULT ( __stdcall *EnumVerbs )( - IOleObject * This, - IEnumOLEVERB **ppEnumOleVerb); - - - HRESULT ( __stdcall *Update )( - IOleObject * This); - - - HRESULT ( __stdcall *IsUpToDate )( - IOleObject * This); - - - HRESULT ( __stdcall *GetUserClassID )( - IOleObject * This, - CLSID *pClsid); - - - HRESULT ( __stdcall *GetUserType )( - IOleObject * This, - DWORD dwFormOfType, - LPOLESTR *pszUserType); - - - HRESULT ( __stdcall *SetExtent )( - IOleObject * This, - DWORD dwDrawAspect, - SIZEL *psizel); - - - HRESULT ( __stdcall *GetExtent )( - IOleObject * This, - DWORD dwDrawAspect, - SIZEL *psizel); - - - HRESULT ( __stdcall *Advise )( - IOleObject * This, - IAdviseSink *pAdvSink, - DWORD *pdwConnection); - - - HRESULT ( __stdcall *Unadvise )( - IOleObject * This, - DWORD dwConnection); - - - HRESULT ( __stdcall *EnumAdvise )( - IOleObject * This, - IEnumSTATDATA **ppenumAdvise); - - - HRESULT ( __stdcall *GetMiscStatus )( - IOleObject * This, - DWORD dwAspect, - DWORD *pdwStatus); - - - HRESULT ( __stdcall *SetColorScheme )( - IOleObject * This, - LOGPALETTE *pLogpal); - - - } IOleObjectVtbl; - - struct IOleObject - { - struct IOleObjectVtbl *lpVtbl; - }; -# 1591 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef -enum tagOLERENDER - { - OLERENDER_NONE = 0, - OLERENDER_DRAW = 1, - OLERENDER_FORMAT = 2, - OLERENDER_ASIS = 3 - } OLERENDER; - -typedef OLERENDER *LPOLERENDER; - -typedef struct tagOBJECTDESCRIPTOR - { - ULONG cbSize; - CLSID clsid; - DWORD dwDrawAspect; - SIZEL sizel; - POINTL pointl; - DWORD dwStatus; - DWORD dwFullUserTypeName; - DWORD dwSrcOfCopy; - } OBJECTDESCRIPTOR; - -typedef struct tagOBJECTDESCRIPTOR *POBJECTDESCRIPTOR; - -typedef struct tagOBJECTDESCRIPTOR *LPOBJECTDESCRIPTOR; - -typedef struct tagOBJECTDESCRIPTOR LINKSRCDESCRIPTOR; - -typedef struct tagOBJECTDESCRIPTOR *PLINKSRCDESCRIPTOR; - -typedef struct tagOBJECTDESCRIPTOR *LPLINKSRCDESCRIPTOR; - - - -extern RPC_IF_HANDLE IOLETypes_v0_0_c_ifspec; -extern RPC_IF_HANDLE IOLETypes_v0_0_s_ifspec; -# 1636 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IOleWindow *LPOLEWINDOW; - - -extern const IID IID_IOleWindow; -# 1658 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleWindowVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleWindow * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleWindow * This); - - - ULONG ( __stdcall *Release )( - IOleWindow * This); - - - HRESULT ( __stdcall *GetWindow )( - IOleWindow * This, - HWND *phwnd); - - - HRESULT ( __stdcall *ContextSensitiveHelp )( - IOleWindow * This, - BOOL fEnterMode); - - - } IOleWindowVtbl; - - struct IOleWindow - { - struct IOleWindowVtbl *lpVtbl; - }; -# 1733 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IOleLink *LPOLELINK; - -typedef -enum tagOLEUPDATE - { - OLEUPDATE_ALWAYS = 1, - OLEUPDATE_ONCALL = 3 - } OLEUPDATE; - -typedef OLEUPDATE *LPOLEUPDATE; - -typedef OLEUPDATE *POLEUPDATE; - -typedef -enum tagOLELINKBIND - { - OLELINKBIND_EVENIFCLASSDIFF = 1 - } OLELINKBIND; - - -extern const IID IID_IOleLink; -# 1799 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleLinkVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleLink * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleLink * This); - - - ULONG ( __stdcall *Release )( - IOleLink * This); - - - HRESULT ( __stdcall *SetUpdateOptions )( - IOleLink * This, - DWORD dwUpdateOpt); - - - HRESULT ( __stdcall *GetUpdateOptions )( - IOleLink * This, - DWORD *pdwUpdateOpt); - - - HRESULT ( __stdcall *SetSourceMoniker )( - IOleLink * This, - IMoniker *pmk, - const IID * const rclsid); - - - HRESULT ( __stdcall *GetSourceMoniker )( - IOleLink * This, - IMoniker **ppmk); - - - HRESULT ( __stdcall *SetSourceDisplayName )( - IOleLink * This, - LPCOLESTR pszStatusText); - - - HRESULT ( __stdcall *GetSourceDisplayName )( - IOleLink * This, - LPOLESTR *ppszDisplayName); - - - HRESULT ( __stdcall *BindToSource )( - IOleLink * This, - DWORD bindflags, - IBindCtx *pbc); - - - HRESULT ( __stdcall *BindIfRunning )( - IOleLink * This); - - - HRESULT ( __stdcall *GetBoundSource )( - IOleLink * This, - IUnknown **ppunk); - - - HRESULT ( __stdcall *UnbindSource )( - IOleLink * This); - - - HRESULT ( __stdcall *Update )( - IOleLink * This, - IBindCtx *pbc); - - - } IOleLinkVtbl; - - struct IOleLink - { - struct IOleLinkVtbl *lpVtbl; - }; -# 1946 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IOleItemContainer *LPOLEITEMCONTAINER; - -typedef -enum tagBINDSPEED - { - BINDSPEED_INDEFINITE = 1, - BINDSPEED_MODERATE = 2, - BINDSPEED_IMMEDIATE = 3 - } BINDSPEED; - -typedef -enum tagOLECONTF - { - OLECONTF_EMBEDDINGS = 1, - OLECONTF_LINKS = 2, - OLECONTF_OTHERS = 4, - OLECONTF_ONLYUSER = 8, - OLECONTF_ONLYIFRUNNING = 16 - } OLECONTF; - - -extern const IID IID_IOleItemContainer; -# 1996 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleItemContainerVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleItemContainer * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleItemContainer * This); - - - ULONG ( __stdcall *Release )( - IOleItemContainer * This); - - - HRESULT ( __stdcall *ParseDisplayName )( - IOleItemContainer * This, - IBindCtx *pbc, - LPOLESTR pszDisplayName, - ULONG *pchEaten, - IMoniker **ppmkOut); - - - HRESULT ( __stdcall *EnumObjects )( - IOleItemContainer * This, - DWORD grfFlags, - IEnumUnknown **ppenum); - - - HRESULT ( __stdcall *LockContainer )( - IOleItemContainer * This, - BOOL fLock); - - - HRESULT ( __stdcall *GetObjectA )( - IOleItemContainer * This, - LPOLESTR pszItem, - DWORD dwSpeedNeeded, - IBindCtx *pbc, - const IID * const riid, - void **ppvObject); - - - HRESULT ( __stdcall *GetObjectStorage )( - IOleItemContainer * This, - LPOLESTR pszItem, - IBindCtx *pbc, - const IID * const riid, - void **ppvStorage); - - - HRESULT ( __stdcall *IsRunning )( - IOleItemContainer * This, - LPOLESTR pszItem); - - - } IOleItemContainerVtbl; - - struct IOleItemContainer - { - struct IOleItemContainerVtbl *lpVtbl; - }; -# 2116 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IOleInPlaceUIWindow *LPOLEINPLACEUIWINDOW; - -typedef RECT BORDERWIDTHS; - -typedef LPRECT LPBORDERWIDTHS; - -typedef LPCRECT LPCBORDERWIDTHS; - - -extern const IID IID_IOleInPlaceUIWindow; -# 2151 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleInPlaceUIWindowVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleInPlaceUIWindow * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleInPlaceUIWindow * This); - - - ULONG ( __stdcall *Release )( - IOleInPlaceUIWindow * This); - - - HRESULT ( __stdcall *GetWindow )( - IOleInPlaceUIWindow * This, - HWND *phwnd); - - - HRESULT ( __stdcall *ContextSensitiveHelp )( - IOleInPlaceUIWindow * This, - BOOL fEnterMode); - - - HRESULT ( __stdcall *GetBorder )( - IOleInPlaceUIWindow * This, - LPRECT lprectBorder); - - - HRESULT ( __stdcall *RequestBorderSpace )( - IOleInPlaceUIWindow * This, - LPCBORDERWIDTHS pborderwidths); - - - HRESULT ( __stdcall *SetBorderSpace )( - IOleInPlaceUIWindow * This, - LPCBORDERWIDTHS pborderwidths); - - - HRESULT ( __stdcall *SetActiveObject )( - IOleInPlaceUIWindow * This, - IOleInPlaceActiveObject *pActiveObject, - LPCOLESTR pszObjName); - - - } IOleInPlaceUIWindowVtbl; - - struct IOleInPlaceUIWindow - { - struct IOleInPlaceUIWindowVtbl *lpVtbl; - }; -# 2260 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IOleInPlaceActiveObject *LPOLEINPLACEACTIVEOBJECT; - - -extern const IID IID_IOleInPlaceActiveObject; -# 2297 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleInPlaceActiveObjectVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleInPlaceActiveObject * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleInPlaceActiveObject * This); - - - ULONG ( __stdcall *Release )( - IOleInPlaceActiveObject * This); - - - HRESULT ( __stdcall *GetWindow )( - IOleInPlaceActiveObject * This, - HWND *phwnd); - - - HRESULT ( __stdcall *ContextSensitiveHelp )( - IOleInPlaceActiveObject * This, - BOOL fEnterMode); - - - HRESULT ( __stdcall *TranslateAcceleratorA )( - IOleInPlaceActiveObject * This, - - LPMSG lpmsg); - - - HRESULT ( __stdcall *OnFrameWindowActivate )( - IOleInPlaceActiveObject * This, - BOOL fActivate); - - - HRESULT ( __stdcall *OnDocWindowActivate )( - IOleInPlaceActiveObject * This, - BOOL fActivate); - - - HRESULT ( __stdcall *ResizeBorder )( - IOleInPlaceActiveObject * This, - - LPCRECT prcBorder, - - IOleInPlaceUIWindow *pUIWindow, - - BOOL fFrameWindow); - - - HRESULT ( __stdcall *EnableModeless )( - IOleInPlaceActiveObject * This, - BOOL fEnable); - - - } IOleInPlaceActiveObjectVtbl; - - struct IOleInPlaceActiveObject - { - struct IOleInPlaceActiveObjectVtbl *lpVtbl; - }; -# 2409 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - HRESULT __stdcall IOleInPlaceActiveObject_RemoteTranslateAccelerator_Proxy( - IOleInPlaceActiveObject * This); - - -void __stdcall IOleInPlaceActiveObject_RemoteTranslateAccelerator_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IOleInPlaceActiveObject_RemoteResizeBorder_Proxy( - IOleInPlaceActiveObject * This, - LPCRECT prcBorder, - const IID * const riid, - IOleInPlaceUIWindow *pUIWindow, - BOOL fFrameWindow); - - -void __stdcall IOleInPlaceActiveObject_RemoteResizeBorder_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 2445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IOleInPlaceFrame *LPOLEINPLACEFRAME; - -typedef struct tagOIFI - { - UINT cb; - BOOL fMDIApp; - HWND hwndFrame; - HACCEL haccel; - UINT cAccelEntries; - } OLEINPLACEFRAMEINFO; - -typedef struct tagOIFI *LPOLEINPLACEFRAMEINFO; - -typedef struct tagOleMenuGroupWidths - { - LONG width[ 6 ]; - } OLEMENUGROUPWIDTHS; - -typedef struct tagOleMenuGroupWidths *LPOLEMENUGROUPWIDTHS; - -typedef HGLOBAL HOLEMENU; - - -extern const IID IID_IOleInPlaceFrame; -# 2503 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleInPlaceFrameVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleInPlaceFrame * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleInPlaceFrame * This); - - - ULONG ( __stdcall *Release )( - IOleInPlaceFrame * This); - - - HRESULT ( __stdcall *GetWindow )( - IOleInPlaceFrame * This, - HWND *phwnd); - - - HRESULT ( __stdcall *ContextSensitiveHelp )( - IOleInPlaceFrame * This, - BOOL fEnterMode); - - - HRESULT ( __stdcall *GetBorder )( - IOleInPlaceFrame * This, - LPRECT lprectBorder); - - - HRESULT ( __stdcall *RequestBorderSpace )( - IOleInPlaceFrame * This, - LPCBORDERWIDTHS pborderwidths); - - - HRESULT ( __stdcall *SetBorderSpace )( - IOleInPlaceFrame * This, - LPCBORDERWIDTHS pborderwidths); - - - HRESULT ( __stdcall *SetActiveObject )( - IOleInPlaceFrame * This, - IOleInPlaceActiveObject *pActiveObject, - LPCOLESTR pszObjName); - - - HRESULT ( __stdcall *InsertMenus )( - IOleInPlaceFrame * This, - HMENU hmenuShared, - LPOLEMENUGROUPWIDTHS lpMenuWidths); - - - HRESULT ( __stdcall *SetMenu )( - IOleInPlaceFrame * This, - HMENU hmenuShared, - HOLEMENU holemenu, - HWND hwndActiveObject); - - - HRESULT ( __stdcall *RemoveMenus )( - IOleInPlaceFrame * This, - HMENU hmenuShared); - - - HRESULT ( __stdcall *SetStatusText )( - IOleInPlaceFrame * This, - LPCOLESTR pszStatusText); - - - HRESULT ( __stdcall *EnableModeless )( - IOleInPlaceFrame * This, - BOOL fEnable); - - - HRESULT ( __stdcall *TranslateAcceleratorA )( - IOleInPlaceFrame * This, - LPMSG lpmsg, - WORD wID); - - - } IOleInPlaceFrameVtbl; - - struct IOleInPlaceFrame - { - struct IOleInPlaceFrameVtbl *lpVtbl; - }; -# 2665 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IOleInPlaceObject *LPOLEINPLACEOBJECT; - - -extern const IID IID_IOleInPlaceObject; -# 2691 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleInPlaceObjectVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleInPlaceObject * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleInPlaceObject * This); - - - ULONG ( __stdcall *Release )( - IOleInPlaceObject * This); - - - HRESULT ( __stdcall *GetWindow )( - IOleInPlaceObject * This, - HWND *phwnd); - - - HRESULT ( __stdcall *ContextSensitiveHelp )( - IOleInPlaceObject * This, - BOOL fEnterMode); - - - HRESULT ( __stdcall *InPlaceDeactivate )( - IOleInPlaceObject * This); - - - HRESULT ( __stdcall *UIDeactivate )( - IOleInPlaceObject * This); - - - HRESULT ( __stdcall *SetObjectRects )( - IOleInPlaceObject * This, - LPCRECT lprcPosRect, - LPCRECT lprcClipRect); - - - HRESULT ( __stdcall *ReactivateAndUndo )( - IOleInPlaceObject * This); - - - } IOleInPlaceObjectVtbl; - - struct IOleInPlaceObject - { - struct IOleInPlaceObjectVtbl *lpVtbl; - }; -# 2797 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IOleInPlaceSite *LPOLEINPLACESITE; - - -extern const IID IID_IOleInPlaceSite; -# 2841 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IOleInPlaceSiteVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IOleInPlaceSite * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IOleInPlaceSite * This); - - - ULONG ( __stdcall *Release )( - IOleInPlaceSite * This); - - - HRESULT ( __stdcall *GetWindow )( - IOleInPlaceSite * This, - HWND *phwnd); - - - HRESULT ( __stdcall *ContextSensitiveHelp )( - IOleInPlaceSite * This, - BOOL fEnterMode); - - - HRESULT ( __stdcall *CanInPlaceActivate )( - IOleInPlaceSite * This); - - - HRESULT ( __stdcall *OnInPlaceActivate )( - IOleInPlaceSite * This); - - - HRESULT ( __stdcall *OnUIActivate )( - IOleInPlaceSite * This); - - - HRESULT ( __stdcall *GetWindowContext )( - IOleInPlaceSite * This, - IOleInPlaceFrame **ppFrame, - IOleInPlaceUIWindow **ppDoc, - LPRECT lprcPosRect, - LPRECT lprcClipRect, - LPOLEINPLACEFRAMEINFO lpFrameInfo); - - - HRESULT ( __stdcall *Scroll )( - IOleInPlaceSite * This, - SIZE scrollExtant); - - - HRESULT ( __stdcall *OnUIDeactivate )( - IOleInPlaceSite * This, - BOOL fUndoable); - - - HRESULT ( __stdcall *OnInPlaceDeactivate )( - IOleInPlaceSite * This); - - - HRESULT ( __stdcall *DiscardUndoState )( - IOleInPlaceSite * This); - - - HRESULT ( __stdcall *DeactivateAndUndo )( - IOleInPlaceSite * This); - - - HRESULT ( __stdcall *OnPosRectChange )( - IOleInPlaceSite * This, - LPCRECT lprcPosRect); - - - } IOleInPlaceSiteVtbl; - - struct IOleInPlaceSite - { - struct IOleInPlaceSiteVtbl *lpVtbl; - }; -# 2996 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -extern const IID IID_IContinue; -# 3011 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IContinueVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IContinue * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IContinue * This); - - - ULONG ( __stdcall *Release )( - IContinue * This); - - - HRESULT ( __stdcall *FContinue )( - IContinue * This); - - - } IContinueVtbl; - - struct IContinue - { - struct IContinueVtbl *lpVtbl; - }; -# 3077 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IViewObject *LPVIEWOBJECT; - - -extern const IID IID_IViewObject; -# 3156 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IViewObjectVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IViewObject * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IViewObject * This); - - - ULONG ( __stdcall *Release )( - IViewObject * This); - - - HRESULT ( __stdcall *Draw )( - IViewObject * This, - - DWORD dwDrawAspect, - - LONG lindex, - - void *pvAspect, - - DVTARGETDEVICE *ptd, - - HDC hdcTargetDev, - - HDC hdcDraw, - - LPCRECTL lprcBounds, - - LPCRECTL lprcWBounds, - - BOOL ( __stdcall *pfnContinue )( - ULONG_PTR dwContinue), - - ULONG_PTR dwContinue); - - - HRESULT ( __stdcall *GetColorSet )( - IViewObject * This, - - DWORD dwDrawAspect, - - LONG lindex, - - void *pvAspect, - - DVTARGETDEVICE *ptd, - - HDC hicTargetDev, - - LOGPALETTE **ppColorSet); - - - HRESULT ( __stdcall *Freeze )( - IViewObject * This, - - DWORD dwDrawAspect, - - LONG lindex, - - void *pvAspect, - - DWORD *pdwFreeze); - - - HRESULT ( __stdcall *Unfreeze )( - IViewObject * This, - DWORD dwFreeze); - - - HRESULT ( __stdcall *SetAdvise )( - IViewObject * This, - DWORD aspects, - DWORD advf, - IAdviseSink *pAdvSink); - - - HRESULT ( __stdcall *GetAdvise )( - IViewObject * This, - - DWORD *pAspects, - - DWORD *pAdvf, - - IAdviseSink **ppAdvSink); - - - } IViewObjectVtbl; - - struct IViewObject - { - struct IViewObjectVtbl *lpVtbl; - }; -# 3298 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - HRESULT __stdcall IViewObject_RemoteDraw_Proxy( - IViewObject * This, - DWORD dwDrawAspect, - LONG lindex, - ULONG_PTR pvAspect, - DVTARGETDEVICE *ptd, - HDC hdcTargetDev, - HDC hdcDraw, - LPCRECTL lprcBounds, - LPCRECTL lprcWBounds, - IContinue *pContinue); - - -void __stdcall IViewObject_RemoteDraw_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IViewObject_RemoteGetColorSet_Proxy( - IViewObject * This, - DWORD dwDrawAspect, - LONG lindex, - ULONG_PTR pvAspect, - DVTARGETDEVICE *ptd, - ULONG_PTR hicTargetDev, - LOGPALETTE **ppColorSet); - - -void __stdcall IViewObject_RemoteGetColorSet_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IViewObject_RemoteFreeze_Proxy( - IViewObject * This, - DWORD dwDrawAspect, - LONG lindex, - ULONG_PTR pvAspect, - DWORD *pdwFreeze); - - -void __stdcall IViewObject_RemoteFreeze_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IViewObject_RemoteGetAdvise_Proxy( - IViewObject * This, - DWORD *pAspects, - DWORD *pAdvf, - IAdviseSink **ppAdvSink); - - -void __stdcall IViewObject_RemoteGetAdvise_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 3374 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IViewObject2 *LPVIEWOBJECT2; - - -extern const IID IID_IViewObject2; -# 3396 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IViewObject2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IViewObject2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IViewObject2 * This); - - - ULONG ( __stdcall *Release )( - IViewObject2 * This); - - - HRESULT ( __stdcall *Draw )( - IViewObject2 * This, - - DWORD dwDrawAspect, - - LONG lindex, - - void *pvAspect, - - DVTARGETDEVICE *ptd, - - HDC hdcTargetDev, - - HDC hdcDraw, - - LPCRECTL lprcBounds, - - LPCRECTL lprcWBounds, - - BOOL ( __stdcall *pfnContinue )( - ULONG_PTR dwContinue), - - ULONG_PTR dwContinue); - - - HRESULT ( __stdcall *GetColorSet )( - IViewObject2 * This, - - DWORD dwDrawAspect, - - LONG lindex, - - void *pvAspect, - - DVTARGETDEVICE *ptd, - - HDC hicTargetDev, - - LOGPALETTE **ppColorSet); - - - HRESULT ( __stdcall *Freeze )( - IViewObject2 * This, - - DWORD dwDrawAspect, - - LONG lindex, - - void *pvAspect, - - DWORD *pdwFreeze); - - - HRESULT ( __stdcall *Unfreeze )( - IViewObject2 * This, - DWORD dwFreeze); - - - HRESULT ( __stdcall *SetAdvise )( - IViewObject2 * This, - DWORD aspects, - DWORD advf, - IAdviseSink *pAdvSink); - - - HRESULT ( __stdcall *GetAdvise )( - IViewObject2 * This, - - DWORD *pAspects, - - DWORD *pAdvf, - - IAdviseSink **ppAdvSink); - - - HRESULT ( __stdcall *GetExtent )( - IViewObject2 * This, - DWORD dwDrawAspect, - LONG lindex, - DVTARGETDEVICE *ptd, - LPSIZEL lpsizel); - - - } IViewObject2Vtbl; - - struct IViewObject2 - { - struct IViewObject2Vtbl *lpVtbl; - }; -# 3560 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IDropSource *LPDROPSOURCE; - - -extern const IID IID_IDropSource; -# 3586 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IDropSourceVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IDropSource * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IDropSource * This); - - - ULONG ( __stdcall *Release )( - IDropSource * This); - - - HRESULT ( __stdcall *QueryContinueDrag )( - IDropSource * This, - - BOOL fEscapePressed, - - DWORD grfKeyState); - - - HRESULT ( __stdcall *GiveFeedback )( - IDropSource * This, - - DWORD dwEffect); - - - } IDropSourceVtbl; - - struct IDropSource - { - struct IDropSourceVtbl *lpVtbl; - }; -# 3665 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -typedef IDropTarget *LPDROPTARGET; -# 3700 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -extern const IID IID_IDropTarget; -# 3732 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IDropTargetVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IDropTarget * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IDropTarget * This); - - - ULONG ( __stdcall *Release )( - IDropTarget * This); - - - HRESULT ( __stdcall *DragEnter )( - IDropTarget * This, - IDataObject *pDataObj, - DWORD grfKeyState, - POINTL pt, - DWORD *pdwEffect); - - - HRESULT ( __stdcall *DragOver )( - IDropTarget * This, - DWORD grfKeyState, - POINTL pt, - DWORD *pdwEffect); - - - HRESULT ( __stdcall *DragLeave )( - IDropTarget * This); - - - HRESULT ( __stdcall *Drop )( - IDropTarget * This, - IDataObject *pDataObj, - DWORD grfKeyState, - POINTL pt, - DWORD *pdwEffect); - - - } IDropTargetVtbl; - - struct IDropTarget - { - struct IDropTargetVtbl *lpVtbl; - }; -# 3831 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -extern const IID IID_IDropSourceNotify; -# 3850 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IDropSourceNotifyVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IDropSourceNotify * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IDropSourceNotify * This); - - - ULONG ( __stdcall *Release )( - IDropSourceNotify * This); - - - HRESULT ( __stdcall *DragEnterTarget )( - IDropSourceNotify * This, - - HWND hwndTarget); - - - HRESULT ( __stdcall *DragLeaveTarget )( - IDropSourceNotify * This); - - - } IDropSourceNotifyVtbl; - - struct IDropSourceNotify - { - struct IDropSourceNotifyVtbl *lpVtbl; - }; -# 3926 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -extern const IID IID_IEnterpriseDropTarget; -# 3945 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IEnterpriseDropTargetVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IEnterpriseDropTarget * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IEnterpriseDropTarget * This); - - - ULONG ( __stdcall *Release )( - IEnterpriseDropTarget * This); - - - HRESULT ( __stdcall *SetDropSourceEnterpriseId )( - IEnterpriseDropTarget * This, - LPCWSTR identity); - - - HRESULT ( __stdcall *IsEvaluatingEdpPolicy )( - IEnterpriseDropTarget * This, - BOOL *value); - - - } IEnterpriseDropTargetVtbl; - - struct IEnterpriseDropTarget - { - struct IEnterpriseDropTargetVtbl *lpVtbl; - }; -# 4024 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0024_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0024_v0_0_s_ifspec; - - - - - - - -typedef IEnumOLEVERB *LPENUMOLEVERB; - -typedef struct tagOLEVERB - { - LONG lVerb; - LPOLESTR lpszVerbName; - DWORD fuFlags; - DWORD grfAttribs; - } OLEVERB; - -typedef struct tagOLEVERB *LPOLEVERB; - -typedef -enum tagOLEVERBATTRIB - { - OLEVERBATTRIB_NEVERDIRTIES = 1, - OLEVERBATTRIB_ONCONTAINERMENU = 2 - } OLEVERBATTRIB; - - -extern const IID IID_IEnumOLEVERB; -# 4082 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - typedef struct IEnumOLEVERBVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IEnumOLEVERB * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IEnumOLEVERB * This); - - - ULONG ( __stdcall *Release )( - IEnumOLEVERB * This); - - - HRESULT ( __stdcall *Next )( - IEnumOLEVERB * This, - - ULONG celt, - - LPOLEVERB rgelt, - - ULONG *pceltFetched); - - - HRESULT ( __stdcall *Skip )( - IEnumOLEVERB * This, - ULONG celt); - - - HRESULT ( __stdcall *Reset )( - IEnumOLEVERB * This); - - - HRESULT ( __stdcall *Clone )( - IEnumOLEVERB * This, - IEnumOLEVERB **ppenum); - - - } IEnumOLEVERBVtbl; - - struct IEnumOLEVERB - { - struct IEnumOLEVERBVtbl *lpVtbl; - }; -# 4167 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 - HRESULT __stdcall IEnumOLEVERB_RemoteNext_Proxy( - IEnumOLEVERB * This, - ULONG celt, - LPOLEVERB rgelt, - ULONG *pceltFetched); - - -void __stdcall IEnumOLEVERB_RemoteNext_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 4191 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/oleidl.h" 3 -#pragma warning(pop) - - - -extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0025_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_oleidl_0000_0025_v0_0_s_ifspec; - - - -unsigned long __stdcall CLIPFORMAT_UserSize( unsigned long *, unsigned long , CLIPFORMAT * ); -unsigned char * __stdcall CLIPFORMAT_UserMarshal( unsigned long *, unsigned char *, CLIPFORMAT * ); -unsigned char * __stdcall CLIPFORMAT_UserUnmarshal( unsigned long *, unsigned char *, CLIPFORMAT * ); -void __stdcall CLIPFORMAT_UserFree( unsigned long *, CLIPFORMAT * ); - -unsigned long __stdcall HACCEL_UserSize( unsigned long *, unsigned long , HACCEL * ); -unsigned char * __stdcall HACCEL_UserMarshal( unsigned long *, unsigned char *, HACCEL * ); -unsigned char * __stdcall HACCEL_UserUnmarshal( unsigned long *, unsigned char *, HACCEL * ); -void __stdcall HACCEL_UserFree( unsigned long *, HACCEL * ); - -unsigned long __stdcall HDC_UserSize( unsigned long *, unsigned long , HDC * ); -unsigned char * __stdcall HDC_UserMarshal( unsigned long *, unsigned char *, HDC * ); -unsigned char * __stdcall HDC_UserUnmarshal( unsigned long *, unsigned char *, HDC * ); -void __stdcall HDC_UserFree( unsigned long *, HDC * ); - -unsigned long __stdcall HGLOBAL_UserSize( unsigned long *, unsigned long , HGLOBAL * ); -unsigned char * __stdcall HGLOBAL_UserMarshal( unsigned long *, unsigned char *, HGLOBAL * ); -unsigned char * __stdcall HGLOBAL_UserUnmarshal( unsigned long *, unsigned char *, HGLOBAL * ); -void __stdcall HGLOBAL_UserFree( unsigned long *, HGLOBAL * ); - -unsigned long __stdcall HMENU_UserSize( unsigned long *, unsigned long , HMENU * ); -unsigned char * __stdcall HMENU_UserMarshal( unsigned long *, unsigned char *, HMENU * ); -unsigned char * __stdcall HMENU_UserUnmarshal( unsigned long *, unsigned char *, HMENU * ); -void __stdcall HMENU_UserFree( unsigned long *, HMENU * ); - -unsigned long __stdcall HWND_UserSize( unsigned long *, unsigned long , HWND * ); -unsigned char * __stdcall HWND_UserMarshal( unsigned long *, unsigned char *, HWND * ); -unsigned char * __stdcall HWND_UserUnmarshal( unsigned long *, unsigned char *, HWND * ); -void __stdcall HWND_UserFree( unsigned long *, HWND * ); - -unsigned long __stdcall STGMEDIUM_UserSize( unsigned long *, unsigned long , STGMEDIUM * ); -unsigned char * __stdcall STGMEDIUM_UserMarshal( unsigned long *, unsigned char *, STGMEDIUM * ); -unsigned char * __stdcall STGMEDIUM_UserUnmarshal( unsigned long *, unsigned char *, STGMEDIUM * ); -void __stdcall STGMEDIUM_UserFree( unsigned long *, STGMEDIUM * ); - -unsigned long __stdcall CLIPFORMAT_UserSize64( unsigned long *, unsigned long , CLIPFORMAT * ); -unsigned char * __stdcall CLIPFORMAT_UserMarshal64( unsigned long *, unsigned char *, CLIPFORMAT * ); -unsigned char * __stdcall CLIPFORMAT_UserUnmarshal64( unsigned long *, unsigned char *, CLIPFORMAT * ); -void __stdcall CLIPFORMAT_UserFree64( unsigned long *, CLIPFORMAT * ); - -unsigned long __stdcall HACCEL_UserSize64( unsigned long *, unsigned long , HACCEL * ); -unsigned char * __stdcall HACCEL_UserMarshal64( unsigned long *, unsigned char *, HACCEL * ); -unsigned char * __stdcall HACCEL_UserUnmarshal64( unsigned long *, unsigned char *, HACCEL * ); -void __stdcall HACCEL_UserFree64( unsigned long *, HACCEL * ); - -unsigned long __stdcall HDC_UserSize64( unsigned long *, unsigned long , HDC * ); -unsigned char * __stdcall HDC_UserMarshal64( unsigned long *, unsigned char *, HDC * ); -unsigned char * __stdcall HDC_UserUnmarshal64( unsigned long *, unsigned char *, HDC * ); -void __stdcall HDC_UserFree64( unsigned long *, HDC * ); - -unsigned long __stdcall HGLOBAL_UserSize64( unsigned long *, unsigned long , HGLOBAL * ); -unsigned char * __stdcall HGLOBAL_UserMarshal64( unsigned long *, unsigned char *, HGLOBAL * ); -unsigned char * __stdcall HGLOBAL_UserUnmarshal64( unsigned long *, unsigned char *, HGLOBAL * ); -void __stdcall HGLOBAL_UserFree64( unsigned long *, HGLOBAL * ); - -unsigned long __stdcall HMENU_UserSize64( unsigned long *, unsigned long , HMENU * ); -unsigned char * __stdcall HMENU_UserMarshal64( unsigned long *, unsigned char *, HMENU * ); -unsigned char * __stdcall HMENU_UserUnmarshal64( unsigned long *, unsigned char *, HMENU * ); -void __stdcall HMENU_UserFree64( unsigned long *, HMENU * ); - -unsigned long __stdcall HWND_UserSize64( unsigned long *, unsigned long , HWND * ); -unsigned char * __stdcall HWND_UserMarshal64( unsigned long *, unsigned char *, HWND * ); -unsigned char * __stdcall HWND_UserUnmarshal64( unsigned long *, unsigned char *, HWND * ); -void __stdcall HWND_UserFree64( unsigned long *, HWND * ); - -unsigned long __stdcall STGMEDIUM_UserSize64( unsigned long *, unsigned long , STGMEDIUM * ); -unsigned char * __stdcall STGMEDIUM_UserMarshal64( unsigned long *, unsigned char *, STGMEDIUM * ); -unsigned char * __stdcall STGMEDIUM_UserUnmarshal64( unsigned long *, unsigned char *, STGMEDIUM * ); -void __stdcall STGMEDIUM_UserFree64( unsigned long *, STGMEDIUM * ); - - HRESULT __stdcall IOleCache2_UpdateCache_Proxy( - IOleCache2 * This, - - LPDATAOBJECT pDataObject, - - DWORD grfUpdf, - - LPVOID pReserved); - - - HRESULT __stdcall IOleCache2_UpdateCache_Stub( - IOleCache2 * This, - LPDATAOBJECT pDataObject, - DWORD grfUpdf, - LONG_PTR pReserved); - - HRESULT __stdcall IOleInPlaceActiveObject_TranslateAccelerator_Proxy( - IOleInPlaceActiveObject * This, - - LPMSG lpmsg); - - - HRESULT __stdcall IOleInPlaceActiveObject_TranslateAccelerator_Stub( - IOleInPlaceActiveObject * This); - - HRESULT __stdcall IOleInPlaceActiveObject_ResizeBorder_Proxy( - IOleInPlaceActiveObject * This, - - LPCRECT prcBorder, - - IOleInPlaceUIWindow *pUIWindow, - - BOOL fFrameWindow); - - - HRESULT __stdcall IOleInPlaceActiveObject_ResizeBorder_Stub( - IOleInPlaceActiveObject * This, - LPCRECT prcBorder, - const IID * const riid, - IOleInPlaceUIWindow *pUIWindow, - BOOL fFrameWindow); - - HRESULT __stdcall IViewObject_Draw_Proxy( - IViewObject * This, - - DWORD dwDrawAspect, - - LONG lindex, - - void *pvAspect, - - DVTARGETDEVICE *ptd, - - HDC hdcTargetDev, - - HDC hdcDraw, - - LPCRECTL lprcBounds, - - LPCRECTL lprcWBounds, - - BOOL ( __stdcall *pfnContinue )( - ULONG_PTR dwContinue), - - ULONG_PTR dwContinue); - - - HRESULT __stdcall IViewObject_Draw_Stub( - IViewObject * This, - DWORD dwDrawAspect, - LONG lindex, - ULONG_PTR pvAspect, - DVTARGETDEVICE *ptd, - HDC hdcTargetDev, - HDC hdcDraw, - LPCRECTL lprcBounds, - LPCRECTL lprcWBounds, - IContinue *pContinue); - - HRESULT __stdcall IViewObject_GetColorSet_Proxy( - IViewObject * This, - - DWORD dwDrawAspect, - - LONG lindex, - - void *pvAspect, - - DVTARGETDEVICE *ptd, - - HDC hicTargetDev, - - LOGPALETTE **ppColorSet); - - - HRESULT __stdcall IViewObject_GetColorSet_Stub( - IViewObject * This, - DWORD dwDrawAspect, - LONG lindex, - ULONG_PTR pvAspect, - DVTARGETDEVICE *ptd, - ULONG_PTR hicTargetDev, - LOGPALETTE **ppColorSet); - - HRESULT __stdcall IViewObject_Freeze_Proxy( - IViewObject * This, - - DWORD dwDrawAspect, - - LONG lindex, - - void *pvAspect, - - DWORD *pdwFreeze); - - - HRESULT __stdcall IViewObject_Freeze_Stub( - IViewObject * This, - DWORD dwDrawAspect, - LONG lindex, - ULONG_PTR pvAspect, - DWORD *pdwFreeze); - - HRESULT __stdcall IViewObject_GetAdvise_Proxy( - IViewObject * This, - - DWORD *pAspects, - - DWORD *pAdvf, - - IAdviseSink **ppAdvSink); - - - HRESULT __stdcall IViewObject_GetAdvise_Stub( - IViewObject * This, - DWORD *pAspects, - DWORD *pAdvf, - IAdviseSink **ppAdvSink); - - HRESULT __stdcall IEnumOLEVERB_Next_Proxy( - IEnumOLEVERB * This, - - ULONG celt, - - LPOLEVERB rgelt, - - ULONG *pceltFetched); - - - HRESULT __stdcall IEnumOLEVERB_Next_Stub( - IEnumOLEVERB * This, - ULONG celt, - LPOLEVERB rgelt, - ULONG *pceltFetched); -# 438 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 1 3 -# 52 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 3 -typedef struct IServiceProvider IServiceProvider; -# 79 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 3 -#pragma comment(lib,"uuid.lib") -# 90 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_servprov_0000_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_servprov_0000_0000_v0_0_s_ifspec; - - - - - - - -typedef IServiceProvider *LPSERVICEPROVIDER; -# 136 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 3 -extern const IID IID_IServiceProvider; -# 157 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 3 - typedef struct IServiceProviderVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IServiceProvider * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IServiceProvider * This); - - - ULONG ( __stdcall *Release )( - IServiceProvider * This); - - - HRESULT ( __stdcall *QueryService )( - IServiceProvider * This, - - const GUID * const guidService, - - const IID * const riid, - - void **ppvObject); - - - } IServiceProviderVtbl; - - struct IServiceProvider - { - struct IServiceProviderVtbl *lpVtbl; - }; -# 219 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 3 - HRESULT __stdcall IServiceProvider_RemoteQueryService_Proxy( - IServiceProvider * This, - const GUID * const guidService, - const IID * const riid, - IUnknown **ppvObject); - - -void __stdcall IServiceProvider_RemoteQueryService_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 245 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/servprov.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_servprov_0000_0001_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_servprov_0000_0001_v0_0_s_ifspec; - - - - HRESULT __stdcall IServiceProvider_QueryService_Proxy( - IServiceProvider * This, - - const GUID * const guidService, - - const IID * const riid, - - void **ppvObject); - - - HRESULT __stdcall IServiceProvider_QueryService_Stub( - IServiceProvider * This, - const GUID * const guidService, - const IID * const riid, - IUnknown **ppvObject); -# 439 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 1 3 -# 48 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -typedef struct IXMLDOMImplementation IXMLDOMImplementation; - - - - - - -typedef struct IXMLDOMNode IXMLDOMNode; - - - - - - -typedef struct IXMLDOMDocumentFragment IXMLDOMDocumentFragment; - - - - - - -typedef struct IXMLDOMDocument IXMLDOMDocument; - - - - - - -typedef struct IXMLDOMNodeList IXMLDOMNodeList; - - - - - - -typedef struct IXMLDOMNamedNodeMap IXMLDOMNamedNodeMap; - - - - - - -typedef struct IXMLDOMCharacterData IXMLDOMCharacterData; - - - - - - -typedef struct IXMLDOMAttribute IXMLDOMAttribute; - - - - - - -typedef struct IXMLDOMElement IXMLDOMElement; - - - - - - -typedef struct IXMLDOMText IXMLDOMText; - - - - - - -typedef struct IXMLDOMComment IXMLDOMComment; - - - - - - -typedef struct IXMLDOMProcessingInstruction IXMLDOMProcessingInstruction; - - - - - - -typedef struct IXMLDOMCDATASection IXMLDOMCDATASection; - - - - - - -typedef struct IXMLDOMDocumentType IXMLDOMDocumentType; - - - - - - -typedef struct IXMLDOMNotation IXMLDOMNotation; - - - - - - -typedef struct IXMLDOMEntity IXMLDOMEntity; - - - - - - -typedef struct IXMLDOMEntityReference IXMLDOMEntityReference; - - - - - - -typedef struct IXMLDOMParseError IXMLDOMParseError; - - - - - - -typedef struct IXTLRuntime IXTLRuntime; - - - - - - -typedef struct XMLDOMDocumentEvents XMLDOMDocumentEvents; -# 192 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -typedef struct DOMDocument DOMDocument; -# 204 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -typedef struct DOMFreeThreadedDocument DOMFreeThreadedDocument; - - - - - - - -typedef struct IXMLHttpRequest IXMLHttpRequest; -# 223 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -typedef struct XMLHTTPRequest XMLHTTPRequest; - - - - - - - -typedef struct IXMLDSOControl IXMLDSOControl; -# 242 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -typedef struct XMLDSOControl XMLDSOControl; - - - - - - - -typedef struct IXMLElementCollection IXMLElementCollection; - - - - - - -typedef struct IXMLDocument IXMLDocument; - - - - - - -typedef struct IXMLDocument2 IXMLDocument2; - - - - - - -typedef struct IXMLElement IXMLElement; - - - - - - -typedef struct IXMLElement2 IXMLElement2; - - - - - - -typedef struct IXMLAttribute IXMLAttribute; - - - - - - -typedef struct IXMLError IXMLError; -# 303 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -typedef struct XMLDocument XMLDocument; -# 328 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -#pragma warning(push) -#pragma warning(disable: 4001) - -#pragma warning(push) -#pragma warning(disable: 4001) - -#pragma warning(pop) -#pragma warning(pop) - - - - -#pragma warning(push) -#pragma warning(disable: 4820) - - - -typedef struct _xml_error - { - unsigned int _nLine; - BSTR _pchBuf; - unsigned int _cchBuf; - unsigned int _ich; - BSTR _pszFound; - BSTR _pszExpected; - DWORD _reserved1; - DWORD _reserved2; - } XML_ERROR; - - - -extern RPC_IF_HANDLE __MIDL_itf_msxml_0000_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_msxml_0000_0000_v0_0_s_ifspec; -# 401 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -typedef -enum tagDOMNodeType - { - NODE_INVALID = 0, - NODE_ELEMENT = ( NODE_INVALID + 1 ) , - NODE_ATTRIBUTE = ( NODE_ELEMENT + 1 ) , - NODE_TEXT = ( NODE_ATTRIBUTE + 1 ) , - NODE_CDATA_SECTION = ( NODE_TEXT + 1 ) , - NODE_ENTITY_REFERENCE = ( NODE_CDATA_SECTION + 1 ) , - NODE_ENTITY = ( NODE_ENTITY_REFERENCE + 1 ) , - NODE_PROCESSING_INSTRUCTION = ( NODE_ENTITY + 1 ) , - NODE_COMMENT = ( NODE_PROCESSING_INSTRUCTION + 1 ) , - NODE_DOCUMENT = ( NODE_COMMENT + 1 ) , - NODE_DOCUMENT_TYPE = ( NODE_DOCUMENT + 1 ) , - NODE_DOCUMENT_FRAGMENT = ( NODE_DOCUMENT_TYPE + 1 ) , - NODE_NOTATION = ( NODE_DOCUMENT_FRAGMENT + 1 ) - } DOMNodeType; -# 445 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -typedef -enum tagXMLEMEM_TYPE - { - XMLELEMTYPE_ELEMENT = 0, - XMLELEMTYPE_TEXT = ( XMLELEMTYPE_ELEMENT + 1 ) , - XMLELEMTYPE_COMMENT = ( XMLELEMTYPE_TEXT + 1 ) , - XMLELEMTYPE_DOCUMENT = ( XMLELEMTYPE_COMMENT + 1 ) , - XMLELEMTYPE_DTD = ( XMLELEMTYPE_DOCUMENT + 1 ) , - XMLELEMTYPE_PI = ( XMLELEMTYPE_DTD + 1 ) , - XMLELEMTYPE_OTHER = ( XMLELEMTYPE_PI + 1 ) - } XMLELEM_TYPE; - - -extern const IID LIBID_MSXML; -# 467 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMImplementation; -# 485 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMImplementationVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMImplementation * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMImplementation * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMImplementation * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMImplementation * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMImplementation * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMImplementation * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMImplementation * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *hasFeature )( - IXMLDOMImplementation * This, - BSTR feature, - BSTR version, - VARIANT_BOOL *hasFeature); - - - } IXMLDOMImplementationVtbl; - - struct IXMLDOMImplementation - { - struct IXMLDOMImplementationVtbl *lpVtbl; - }; -# 609 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMNode; -# 741 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMNodeVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMNode * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMNode * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMNode * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMNode * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMNode * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMNode * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMNode * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXMLDOMNode * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXMLDOMNode * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXMLDOMNode * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXMLDOMNode * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXMLDOMNode * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXMLDOMNode * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXMLDOMNode * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXMLDOMNode * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXMLDOMNode * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXMLDOMNode * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXMLDOMNode * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXMLDOMNode * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXMLDOMNode * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXMLDOMNode * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXMLDOMNode * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXMLDOMNode * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXMLDOMNode * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXMLDOMNode * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXMLDOMNode * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXMLDOMNode * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXMLDOMNode * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXMLDOMNode * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXMLDOMNode * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXMLDOMNode * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXMLDOMNode * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXMLDOMNode * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXMLDOMNode * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXMLDOMNode * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXMLDOMNode * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXMLDOMNode * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXMLDOMNode * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXMLDOMNode * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXMLDOMNode * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXMLDOMNode * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXMLDOMNode * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXMLDOMNode * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - } IXMLDOMNodeVtbl; - - struct IXMLDOMNode - { - struct IXMLDOMNodeVtbl *lpVtbl; - }; -# 1154 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMDocumentFragment; -# 1167 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMDocumentFragmentVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMDocumentFragment * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMDocumentFragment * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMDocumentFragment * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMDocumentFragment * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMDocumentFragment * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMDocumentFragment * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMDocumentFragment * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXMLDOMDocumentFragment * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXMLDOMDocumentFragment * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXMLDOMDocumentFragment * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXMLDOMDocumentFragment * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXMLDOMDocumentFragment * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXMLDOMDocumentFragment * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXMLDOMDocumentFragment * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXMLDOMDocumentFragment * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXMLDOMDocumentFragment * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXMLDOMDocumentFragment * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXMLDOMDocumentFragment * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXMLDOMDocumentFragment * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXMLDOMDocumentFragment * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXMLDOMDocumentFragment * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXMLDOMDocumentFragment * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXMLDOMDocumentFragment * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXMLDOMDocumentFragment * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXMLDOMDocumentFragment * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXMLDOMDocumentFragment * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXMLDOMDocumentFragment * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXMLDOMDocumentFragment * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXMLDOMDocumentFragment * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXMLDOMDocumentFragment * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXMLDOMDocumentFragment * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXMLDOMDocumentFragment * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXMLDOMDocumentFragment * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXMLDOMDocumentFragment * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXMLDOMDocumentFragment * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXMLDOMDocumentFragment * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXMLDOMDocumentFragment * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXMLDOMDocumentFragment * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXMLDOMDocumentFragment * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXMLDOMDocumentFragment * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXMLDOMDocumentFragment * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXMLDOMDocumentFragment * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXMLDOMDocumentFragment * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - } IXMLDOMDocumentFragmentVtbl; - - struct IXMLDOMDocumentFragment - { - struct IXMLDOMDocumentFragmentVtbl *lpVtbl; - }; -# 1581 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMDocument; -# 1707 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMDocumentVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMDocument * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMDocument * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMDocument * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMDocument * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMDocument * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMDocument * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMDocument * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXMLDOMDocument * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXMLDOMDocument * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXMLDOMDocument * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXMLDOMDocument * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXMLDOMDocument * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXMLDOMDocument * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXMLDOMDocument * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXMLDOMDocument * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXMLDOMDocument * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXMLDOMDocument * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXMLDOMDocument * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXMLDOMDocument * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXMLDOMDocument * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXMLDOMDocument * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXMLDOMDocument * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXMLDOMDocument * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXMLDOMDocument * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXMLDOMDocument * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXMLDOMDocument * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXMLDOMDocument * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXMLDOMDocument * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXMLDOMDocument * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXMLDOMDocument * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXMLDOMDocument * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXMLDOMDocument * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXMLDOMDocument * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXMLDOMDocument * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXMLDOMDocument * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXMLDOMDocument * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXMLDOMDocument * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXMLDOMDocument * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXMLDOMDocument * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXMLDOMDocument * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXMLDOMDocument * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXMLDOMDocument * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXMLDOMDocument * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - HRESULT ( __stdcall *get_doctype )( - IXMLDOMDocument * This, - IXMLDOMDocumentType **documentType); - - - HRESULT ( __stdcall *get_implementation )( - IXMLDOMDocument * This, - IXMLDOMImplementation **impl); - - - HRESULT ( __stdcall *get_documentElement )( - IXMLDOMDocument * This, - IXMLDOMElement **DOMElement); - - - HRESULT ( __stdcall *putref_documentElement )( - IXMLDOMDocument * This, - IXMLDOMElement *DOMElement); - - - HRESULT ( __stdcall *createElement )( - IXMLDOMDocument * This, - BSTR tagName, - IXMLDOMElement **element); - - - HRESULT ( __stdcall *createDocumentFragment )( - IXMLDOMDocument * This, - IXMLDOMDocumentFragment **docFrag); - - - HRESULT ( __stdcall *createTextNode )( - IXMLDOMDocument * This, - BSTR data, - IXMLDOMText **text); - - - HRESULT ( __stdcall *createComment )( - IXMLDOMDocument * This, - BSTR data, - IXMLDOMComment **comment); - - - HRESULT ( __stdcall *createCDATASection )( - IXMLDOMDocument * This, - BSTR data, - IXMLDOMCDATASection **cdata); - - - HRESULT ( __stdcall *createProcessingInstruction )( - IXMLDOMDocument * This, - BSTR target, - BSTR data, - IXMLDOMProcessingInstruction **pi); - - - HRESULT ( __stdcall *createAttribute )( - IXMLDOMDocument * This, - BSTR name, - IXMLDOMAttribute **attribute); - - - HRESULT ( __stdcall *createEntityReference )( - IXMLDOMDocument * This, - BSTR name, - IXMLDOMEntityReference **entityRef); - - - HRESULT ( __stdcall *getElementsByTagName )( - IXMLDOMDocument * This, - BSTR tagName, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *createNode )( - IXMLDOMDocument * This, - VARIANT Type, - BSTR name, - BSTR namespaceURI, - IXMLDOMNode **node); - - - HRESULT ( __stdcall *nodeFromID )( - IXMLDOMDocument * This, - BSTR idString, - IXMLDOMNode **node); - - - HRESULT ( __stdcall *load )( - IXMLDOMDocument * This, - VARIANT xmlSource, - VARIANT_BOOL *isSuccessful); - - - HRESULT ( __stdcall *get_readyState )( - IXMLDOMDocument * This, - long *value); - - - HRESULT ( __stdcall *get_parseError )( - IXMLDOMDocument * This, - IXMLDOMParseError **errorObj); - - - HRESULT ( __stdcall *get_url )( - IXMLDOMDocument * This, - BSTR *urlString); - - - HRESULT ( __stdcall *get_async )( - IXMLDOMDocument * This, - VARIANT_BOOL *isAsync); - - - HRESULT ( __stdcall *put_async )( - IXMLDOMDocument * This, - VARIANT_BOOL isAsync); - - - HRESULT ( __stdcall *abort )( - IXMLDOMDocument * This); - - - HRESULT ( __stdcall *loadXML )( - IXMLDOMDocument * This, - BSTR bstrXML, - VARIANT_BOOL *isSuccessful); - - - HRESULT ( __stdcall *save )( - IXMLDOMDocument * This, - VARIANT destination); - - - HRESULT ( __stdcall *get_validateOnParse )( - IXMLDOMDocument * This, - VARIANT_BOOL *isValidating); - - - HRESULT ( __stdcall *put_validateOnParse )( - IXMLDOMDocument * This, - VARIANT_BOOL isValidating); - - - HRESULT ( __stdcall *get_resolveExternals )( - IXMLDOMDocument * This, - VARIANT_BOOL *isResolving); - - - HRESULT ( __stdcall *put_resolveExternals )( - IXMLDOMDocument * This, - VARIANT_BOOL isResolving); - - - HRESULT ( __stdcall *get_preserveWhiteSpace )( - IXMLDOMDocument * This, - VARIANT_BOOL *isPreserving); - - - HRESULT ( __stdcall *put_preserveWhiteSpace )( - IXMLDOMDocument * This, - VARIANT_BOOL isPreserving); - - - HRESULT ( __stdcall *put_onreadystatechange )( - IXMLDOMDocument * This, - VARIANT readystatechangeSink); - - - HRESULT ( __stdcall *put_ondataavailable )( - IXMLDOMDocument * This, - VARIANT ondataavailableSink); - - - HRESULT ( __stdcall *put_ontransformnode )( - IXMLDOMDocument * This, - VARIANT ontransformnodeSink); - - - } IXMLDOMDocumentVtbl; - - struct IXMLDOMDocument - { - struct IXMLDOMDocumentVtbl *lpVtbl; - }; -# 2399 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMNodeList; -# 2427 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMNodeListVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMNodeList * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMNodeList * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMNodeList * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMNodeList * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMNodeList * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMNodeList * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMNodeList * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_item )( - IXMLDOMNodeList * This, - long index, - IXMLDOMNode **listItem); - - - HRESULT ( __stdcall *get_length )( - IXMLDOMNodeList * This, - long *listLength); - - - HRESULT ( __stdcall *nextNode )( - IXMLDOMNodeList * This, - IXMLDOMNode **nextItem); - - - HRESULT ( __stdcall *reset )( - IXMLDOMNodeList * This); - - - HRESULT ( __stdcall *get__newEnum )( - IXMLDOMNodeList * This, - IUnknown **ppUnk); - - - } IXMLDOMNodeListVtbl; - - struct IXMLDOMNodeList - { - struct IXMLDOMNodeListVtbl *lpVtbl; - }; -# 2581 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMNamedNodeMap; -# 2631 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMNamedNodeMapVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMNamedNodeMap * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMNamedNodeMap * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMNamedNodeMap * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMNamedNodeMap * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMNamedNodeMap * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMNamedNodeMap * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMNamedNodeMap * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *getNamedItem )( - IXMLDOMNamedNodeMap * This, - BSTR name, - IXMLDOMNode **namedItem); - - - HRESULT ( __stdcall *setNamedItem )( - IXMLDOMNamedNodeMap * This, - IXMLDOMNode *newItem, - IXMLDOMNode **nameItem); - - - HRESULT ( __stdcall *removeNamedItem )( - IXMLDOMNamedNodeMap * This, - BSTR name, - IXMLDOMNode **namedItem); - - - HRESULT ( __stdcall *get_item )( - IXMLDOMNamedNodeMap * This, - long index, - IXMLDOMNode **listItem); - - - HRESULT ( __stdcall *get_length )( - IXMLDOMNamedNodeMap * This, - long *listLength); - - - HRESULT ( __stdcall *getQualifiedItem )( - IXMLDOMNamedNodeMap * This, - BSTR baseName, - BSTR namespaceURI, - IXMLDOMNode **qualifiedItem); - - - HRESULT ( __stdcall *removeQualifiedItem )( - IXMLDOMNamedNodeMap * This, - BSTR baseName, - BSTR namespaceURI, - IXMLDOMNode **qualifiedItem); - - - HRESULT ( __stdcall *nextNode )( - IXMLDOMNamedNodeMap * This, - IXMLDOMNode **nextItem); - - - HRESULT ( __stdcall *reset )( - IXMLDOMNamedNodeMap * This); - - - HRESULT ( __stdcall *get__newEnum )( - IXMLDOMNamedNodeMap * This, - IUnknown **ppUnk); - - - } IXMLDOMNamedNodeMapVtbl; - - struct IXMLDOMNamedNodeMap - { - struct IXMLDOMNamedNodeMapVtbl *lpVtbl; - }; -# 2832 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMCharacterData; -# 2875 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMCharacterDataVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMCharacterData * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMCharacterData * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMCharacterData * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMCharacterData * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMCharacterData * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMCharacterData * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMCharacterData * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXMLDOMCharacterData * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXMLDOMCharacterData * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXMLDOMCharacterData * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXMLDOMCharacterData * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXMLDOMCharacterData * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXMLDOMCharacterData * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXMLDOMCharacterData * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXMLDOMCharacterData * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXMLDOMCharacterData * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXMLDOMCharacterData * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXMLDOMCharacterData * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXMLDOMCharacterData * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXMLDOMCharacterData * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXMLDOMCharacterData * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXMLDOMCharacterData * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXMLDOMCharacterData * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXMLDOMCharacterData * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXMLDOMCharacterData * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXMLDOMCharacterData * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXMLDOMCharacterData * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXMLDOMCharacterData * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXMLDOMCharacterData * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXMLDOMCharacterData * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXMLDOMCharacterData * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXMLDOMCharacterData * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXMLDOMCharacterData * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXMLDOMCharacterData * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXMLDOMCharacterData * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXMLDOMCharacterData * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXMLDOMCharacterData * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXMLDOMCharacterData * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXMLDOMCharacterData * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXMLDOMCharacterData * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXMLDOMCharacterData * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXMLDOMCharacterData * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXMLDOMCharacterData * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - HRESULT ( __stdcall *get_data )( - IXMLDOMCharacterData * This, - BSTR *data); - - - HRESULT ( __stdcall *put_data )( - IXMLDOMCharacterData * This, - BSTR data); - - - HRESULT ( __stdcall *get_length )( - IXMLDOMCharacterData * This, - long *dataLength); - - - HRESULT ( __stdcall *substringData )( - IXMLDOMCharacterData * This, - long offset, - long count, - BSTR *data); - - - HRESULT ( __stdcall *appendData )( - IXMLDOMCharacterData * This, - BSTR data); - - - HRESULT ( __stdcall *insertData )( - IXMLDOMCharacterData * This, - long offset, - BSTR data); - - - HRESULT ( __stdcall *deleteData )( - IXMLDOMCharacterData * This, - long offset, - long count); - - - HRESULT ( __stdcall *replaceData )( - IXMLDOMCharacterData * This, - long offset, - long count, - BSTR data); - - - } IXMLDOMCharacterDataVtbl; - - struct IXMLDOMCharacterData - { - struct IXMLDOMCharacterDataVtbl *lpVtbl; - }; -# 3359 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMAttribute; -# 3381 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMAttributeVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMAttribute * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMAttribute * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMAttribute * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMAttribute * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMAttribute * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMAttribute * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMAttribute * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXMLDOMAttribute * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXMLDOMAttribute * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXMLDOMAttribute * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXMLDOMAttribute * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXMLDOMAttribute * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXMLDOMAttribute * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXMLDOMAttribute * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXMLDOMAttribute * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXMLDOMAttribute * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXMLDOMAttribute * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXMLDOMAttribute * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXMLDOMAttribute * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXMLDOMAttribute * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXMLDOMAttribute * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXMLDOMAttribute * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXMLDOMAttribute * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXMLDOMAttribute * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXMLDOMAttribute * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXMLDOMAttribute * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXMLDOMAttribute * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXMLDOMAttribute * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXMLDOMAttribute * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXMLDOMAttribute * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXMLDOMAttribute * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXMLDOMAttribute * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXMLDOMAttribute * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXMLDOMAttribute * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXMLDOMAttribute * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXMLDOMAttribute * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXMLDOMAttribute * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXMLDOMAttribute * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXMLDOMAttribute * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXMLDOMAttribute * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXMLDOMAttribute * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXMLDOMAttribute * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXMLDOMAttribute * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - HRESULT ( __stdcall *get_name )( - IXMLDOMAttribute * This, - BSTR *attributeName); - - - HRESULT ( __stdcall *get_value )( - IXMLDOMAttribute * This, - VARIANT *attributeValue); - - - HRESULT ( __stdcall *put_value )( - IXMLDOMAttribute * This, - VARIANT attributeValue); - - - } IXMLDOMAttributeVtbl; - - struct IXMLDOMAttribute - { - struct IXMLDOMAttributeVtbl *lpVtbl; - }; -# 3819 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMElement; -# 3864 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMElementVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMElement * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMElement * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMElement * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMElement * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMElement * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMElement * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMElement * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXMLDOMElement * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXMLDOMElement * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXMLDOMElement * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXMLDOMElement * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXMLDOMElement * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXMLDOMElement * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXMLDOMElement * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXMLDOMElement * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXMLDOMElement * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXMLDOMElement * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXMLDOMElement * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXMLDOMElement * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXMLDOMElement * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXMLDOMElement * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXMLDOMElement * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXMLDOMElement * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXMLDOMElement * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXMLDOMElement * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXMLDOMElement * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXMLDOMElement * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXMLDOMElement * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXMLDOMElement * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXMLDOMElement * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXMLDOMElement * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXMLDOMElement * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXMLDOMElement * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXMLDOMElement * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXMLDOMElement * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXMLDOMElement * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXMLDOMElement * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXMLDOMElement * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXMLDOMElement * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXMLDOMElement * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXMLDOMElement * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXMLDOMElement * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXMLDOMElement * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - HRESULT ( __stdcall *get_tagName )( - IXMLDOMElement * This, - BSTR *tagName); - - - HRESULT ( __stdcall *getAttribute )( - IXMLDOMElement * This, - BSTR name, - VARIANT *value); - - - HRESULT ( __stdcall *setAttribute )( - IXMLDOMElement * This, - BSTR name, - VARIANT value); - - - HRESULT ( __stdcall *removeAttribute )( - IXMLDOMElement * This, - BSTR name); - - - HRESULT ( __stdcall *getAttributeNode )( - IXMLDOMElement * This, - BSTR name, - IXMLDOMAttribute **attributeNode); - - - HRESULT ( __stdcall *setAttributeNode )( - IXMLDOMElement * This, - IXMLDOMAttribute *DOMAttribute, - IXMLDOMAttribute **attributeNode); - - - HRESULT ( __stdcall *removeAttributeNode )( - IXMLDOMElement * This, - IXMLDOMAttribute *DOMAttribute, - IXMLDOMAttribute **attributeNode); - - - HRESULT ( __stdcall *getElementsByTagName )( - IXMLDOMElement * This, - BSTR tagName, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *normalize )( - IXMLDOMElement * This); - - - } IXMLDOMElementVtbl; - - struct IXMLDOMElement - { - struct IXMLDOMElementVtbl *lpVtbl; - }; -# 4355 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMText; -# 4372 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMTextVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMText * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMText * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMText * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMText * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMText * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMText * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMText * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXMLDOMText * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXMLDOMText * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXMLDOMText * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXMLDOMText * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXMLDOMText * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXMLDOMText * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXMLDOMText * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXMLDOMText * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXMLDOMText * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXMLDOMText * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXMLDOMText * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXMLDOMText * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXMLDOMText * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXMLDOMText * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXMLDOMText * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXMLDOMText * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXMLDOMText * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXMLDOMText * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXMLDOMText * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXMLDOMText * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXMLDOMText * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXMLDOMText * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXMLDOMText * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXMLDOMText * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXMLDOMText * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXMLDOMText * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXMLDOMText * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXMLDOMText * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXMLDOMText * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXMLDOMText * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXMLDOMText * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXMLDOMText * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXMLDOMText * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXMLDOMText * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXMLDOMText * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXMLDOMText * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - HRESULT ( __stdcall *get_data )( - IXMLDOMText * This, - BSTR *data); - - - HRESULT ( __stdcall *put_data )( - IXMLDOMText * This, - BSTR data); - - - HRESULT ( __stdcall *get_length )( - IXMLDOMText * This, - long *dataLength); - - - HRESULT ( __stdcall *substringData )( - IXMLDOMText * This, - long offset, - long count, - BSTR *data); - - - HRESULT ( __stdcall *appendData )( - IXMLDOMText * This, - BSTR data); - - - HRESULT ( __stdcall *insertData )( - IXMLDOMText * This, - long offset, - BSTR data); - - - HRESULT ( __stdcall *deleteData )( - IXMLDOMText * This, - long offset, - long count); - - - HRESULT ( __stdcall *replaceData )( - IXMLDOMText * This, - long offset, - long count, - BSTR data); - - - HRESULT ( __stdcall *splitText )( - IXMLDOMText * This, - long offset, - IXMLDOMText **rightHandTextNode); - - - } IXMLDOMTextVtbl; - - struct IXMLDOMText - { - struct IXMLDOMTextVtbl *lpVtbl; - }; -# 4866 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMComment; -# 4879 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMCommentVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMComment * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMComment * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMComment * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMComment * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMComment * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMComment * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMComment * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXMLDOMComment * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXMLDOMComment * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXMLDOMComment * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXMLDOMComment * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXMLDOMComment * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXMLDOMComment * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXMLDOMComment * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXMLDOMComment * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXMLDOMComment * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXMLDOMComment * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXMLDOMComment * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXMLDOMComment * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXMLDOMComment * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXMLDOMComment * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXMLDOMComment * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXMLDOMComment * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXMLDOMComment * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXMLDOMComment * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXMLDOMComment * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXMLDOMComment * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXMLDOMComment * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXMLDOMComment * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXMLDOMComment * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXMLDOMComment * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXMLDOMComment * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXMLDOMComment * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXMLDOMComment * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXMLDOMComment * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXMLDOMComment * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXMLDOMComment * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXMLDOMComment * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXMLDOMComment * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXMLDOMComment * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXMLDOMComment * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXMLDOMComment * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXMLDOMComment * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - HRESULT ( __stdcall *get_data )( - IXMLDOMComment * This, - BSTR *data); - - - HRESULT ( __stdcall *put_data )( - IXMLDOMComment * This, - BSTR data); - - - HRESULT ( __stdcall *get_length )( - IXMLDOMComment * This, - long *dataLength); - - - HRESULT ( __stdcall *substringData )( - IXMLDOMComment * This, - long offset, - long count, - BSTR *data); - - - HRESULT ( __stdcall *appendData )( - IXMLDOMComment * This, - BSTR data); - - - HRESULT ( __stdcall *insertData )( - IXMLDOMComment * This, - long offset, - BSTR data); - - - HRESULT ( __stdcall *deleteData )( - IXMLDOMComment * This, - long offset, - long count); - - - HRESULT ( __stdcall *replaceData )( - IXMLDOMComment * This, - long offset, - long count, - BSTR data); - - - } IXMLDOMCommentVtbl; - - struct IXMLDOMComment - { - struct IXMLDOMCommentVtbl *lpVtbl; - }; -# 5364 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMProcessingInstruction; -# 5386 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMProcessingInstructionVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMProcessingInstruction * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMProcessingInstruction * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMProcessingInstruction * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMProcessingInstruction * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMProcessingInstruction * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMProcessingInstruction * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMProcessingInstruction * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXMLDOMProcessingInstruction * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXMLDOMProcessingInstruction * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXMLDOMProcessingInstruction * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXMLDOMProcessingInstruction * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXMLDOMProcessingInstruction * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXMLDOMProcessingInstruction * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXMLDOMProcessingInstruction * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXMLDOMProcessingInstruction * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXMLDOMProcessingInstruction * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXMLDOMProcessingInstruction * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXMLDOMProcessingInstruction * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXMLDOMProcessingInstruction * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXMLDOMProcessingInstruction * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXMLDOMProcessingInstruction * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXMLDOMProcessingInstruction * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXMLDOMProcessingInstruction * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXMLDOMProcessingInstruction * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXMLDOMProcessingInstruction * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXMLDOMProcessingInstruction * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXMLDOMProcessingInstruction * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXMLDOMProcessingInstruction * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXMLDOMProcessingInstruction * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXMLDOMProcessingInstruction * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXMLDOMProcessingInstruction * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXMLDOMProcessingInstruction * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXMLDOMProcessingInstruction * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXMLDOMProcessingInstruction * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXMLDOMProcessingInstruction * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXMLDOMProcessingInstruction * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXMLDOMProcessingInstruction * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXMLDOMProcessingInstruction * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXMLDOMProcessingInstruction * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXMLDOMProcessingInstruction * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXMLDOMProcessingInstruction * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXMLDOMProcessingInstruction * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXMLDOMProcessingInstruction * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - HRESULT ( __stdcall *get_target )( - IXMLDOMProcessingInstruction * This, - BSTR *name); - - - HRESULT ( __stdcall *get_data )( - IXMLDOMProcessingInstruction * This, - BSTR *value); - - - HRESULT ( __stdcall *put_data )( - IXMLDOMProcessingInstruction * This, - BSTR value); - - - } IXMLDOMProcessingInstructionVtbl; - - struct IXMLDOMProcessingInstruction - { - struct IXMLDOMProcessingInstructionVtbl *lpVtbl; - }; -# 5824 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMCDATASection; -# 5837 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMCDATASectionVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMCDATASection * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMCDATASection * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMCDATASection * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMCDATASection * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMCDATASection * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMCDATASection * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMCDATASection * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXMLDOMCDATASection * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXMLDOMCDATASection * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXMLDOMCDATASection * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXMLDOMCDATASection * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXMLDOMCDATASection * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXMLDOMCDATASection * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXMLDOMCDATASection * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXMLDOMCDATASection * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXMLDOMCDATASection * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXMLDOMCDATASection * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXMLDOMCDATASection * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXMLDOMCDATASection * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXMLDOMCDATASection * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXMLDOMCDATASection * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXMLDOMCDATASection * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXMLDOMCDATASection * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXMLDOMCDATASection * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXMLDOMCDATASection * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXMLDOMCDATASection * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXMLDOMCDATASection * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXMLDOMCDATASection * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXMLDOMCDATASection * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXMLDOMCDATASection * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXMLDOMCDATASection * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXMLDOMCDATASection * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXMLDOMCDATASection * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXMLDOMCDATASection * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXMLDOMCDATASection * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXMLDOMCDATASection * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXMLDOMCDATASection * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXMLDOMCDATASection * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXMLDOMCDATASection * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXMLDOMCDATASection * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXMLDOMCDATASection * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXMLDOMCDATASection * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXMLDOMCDATASection * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - HRESULT ( __stdcall *get_data )( - IXMLDOMCDATASection * This, - BSTR *data); - - - HRESULT ( __stdcall *put_data )( - IXMLDOMCDATASection * This, - BSTR data); - - - HRESULT ( __stdcall *get_length )( - IXMLDOMCDATASection * This, - long *dataLength); - - - HRESULT ( __stdcall *substringData )( - IXMLDOMCDATASection * This, - long offset, - long count, - BSTR *data); - - - HRESULT ( __stdcall *appendData )( - IXMLDOMCDATASection * This, - BSTR data); - - - HRESULT ( __stdcall *insertData )( - IXMLDOMCDATASection * This, - long offset, - BSTR data); - - - HRESULT ( __stdcall *deleteData )( - IXMLDOMCDATASection * This, - long offset, - long count); - - - HRESULT ( __stdcall *replaceData )( - IXMLDOMCDATASection * This, - long offset, - long count, - BSTR data); - - - HRESULT ( __stdcall *splitText )( - IXMLDOMCDATASection * This, - long offset, - IXMLDOMText **rightHandTextNode); - - - } IXMLDOMCDATASectionVtbl; - - struct IXMLDOMCDATASection - { - struct IXMLDOMCDATASectionVtbl *lpVtbl; - }; -# 6332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMDocumentType; -# 6354 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMDocumentTypeVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMDocumentType * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMDocumentType * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMDocumentType * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMDocumentType * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMDocumentType * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMDocumentType * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMDocumentType * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXMLDOMDocumentType * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXMLDOMDocumentType * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXMLDOMDocumentType * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXMLDOMDocumentType * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXMLDOMDocumentType * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXMLDOMDocumentType * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXMLDOMDocumentType * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXMLDOMDocumentType * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXMLDOMDocumentType * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXMLDOMDocumentType * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXMLDOMDocumentType * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXMLDOMDocumentType * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXMLDOMDocumentType * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXMLDOMDocumentType * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXMLDOMDocumentType * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXMLDOMDocumentType * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXMLDOMDocumentType * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXMLDOMDocumentType * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXMLDOMDocumentType * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXMLDOMDocumentType * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXMLDOMDocumentType * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXMLDOMDocumentType * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXMLDOMDocumentType * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXMLDOMDocumentType * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXMLDOMDocumentType * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXMLDOMDocumentType * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXMLDOMDocumentType * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXMLDOMDocumentType * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXMLDOMDocumentType * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXMLDOMDocumentType * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXMLDOMDocumentType * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXMLDOMDocumentType * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXMLDOMDocumentType * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXMLDOMDocumentType * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXMLDOMDocumentType * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXMLDOMDocumentType * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - HRESULT ( __stdcall *get_name )( - IXMLDOMDocumentType * This, - BSTR *rootName); - - - HRESULT ( __stdcall *get_entities )( - IXMLDOMDocumentType * This, - IXMLDOMNamedNodeMap **entityMap); - - - HRESULT ( __stdcall *get_notations )( - IXMLDOMDocumentType * This, - IXMLDOMNamedNodeMap **notationMap); - - - } IXMLDOMDocumentTypeVtbl; - - struct IXMLDOMDocumentType - { - struct IXMLDOMDocumentTypeVtbl *lpVtbl; - }; -# 6792 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMNotation; -# 6811 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMNotationVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMNotation * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMNotation * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMNotation * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMNotation * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMNotation * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMNotation * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMNotation * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXMLDOMNotation * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXMLDOMNotation * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXMLDOMNotation * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXMLDOMNotation * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXMLDOMNotation * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXMLDOMNotation * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXMLDOMNotation * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXMLDOMNotation * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXMLDOMNotation * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXMLDOMNotation * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXMLDOMNotation * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXMLDOMNotation * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXMLDOMNotation * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXMLDOMNotation * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXMLDOMNotation * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXMLDOMNotation * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXMLDOMNotation * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXMLDOMNotation * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXMLDOMNotation * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXMLDOMNotation * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXMLDOMNotation * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXMLDOMNotation * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXMLDOMNotation * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXMLDOMNotation * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXMLDOMNotation * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXMLDOMNotation * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXMLDOMNotation * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXMLDOMNotation * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXMLDOMNotation * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXMLDOMNotation * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXMLDOMNotation * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXMLDOMNotation * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXMLDOMNotation * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXMLDOMNotation * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXMLDOMNotation * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXMLDOMNotation * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - HRESULT ( __stdcall *get_publicId )( - IXMLDOMNotation * This, - VARIANT *publicID); - - - HRESULT ( __stdcall *get_systemId )( - IXMLDOMNotation * This, - VARIANT *systemID); - - - } IXMLDOMNotationVtbl; - - struct IXMLDOMNotation - { - struct IXMLDOMNotationVtbl *lpVtbl; - }; -# 7241 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMEntity; -# 7263 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMEntityVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMEntity * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMEntity * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMEntity * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMEntity * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMEntity * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMEntity * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMEntity * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXMLDOMEntity * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXMLDOMEntity * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXMLDOMEntity * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXMLDOMEntity * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXMLDOMEntity * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXMLDOMEntity * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXMLDOMEntity * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXMLDOMEntity * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXMLDOMEntity * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXMLDOMEntity * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXMLDOMEntity * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXMLDOMEntity * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXMLDOMEntity * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXMLDOMEntity * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXMLDOMEntity * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXMLDOMEntity * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXMLDOMEntity * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXMLDOMEntity * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXMLDOMEntity * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXMLDOMEntity * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXMLDOMEntity * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXMLDOMEntity * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXMLDOMEntity * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXMLDOMEntity * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXMLDOMEntity * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXMLDOMEntity * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXMLDOMEntity * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXMLDOMEntity * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXMLDOMEntity * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXMLDOMEntity * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXMLDOMEntity * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXMLDOMEntity * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXMLDOMEntity * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXMLDOMEntity * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXMLDOMEntity * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXMLDOMEntity * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - HRESULT ( __stdcall *get_publicId )( - IXMLDOMEntity * This, - VARIANT *publicID); - - - HRESULT ( __stdcall *get_systemId )( - IXMLDOMEntity * This, - VARIANT *systemID); - - - HRESULT ( __stdcall *get_notationName )( - IXMLDOMEntity * This, - BSTR *name); - - - } IXMLDOMEntityVtbl; - - struct IXMLDOMEntity - { - struct IXMLDOMEntityVtbl *lpVtbl; - }; -# 7701 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMEntityReference; -# 7714 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMEntityReferenceVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMEntityReference * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMEntityReference * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMEntityReference * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMEntityReference * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMEntityReference * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMEntityReference * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMEntityReference * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXMLDOMEntityReference * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXMLDOMEntityReference * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXMLDOMEntityReference * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXMLDOMEntityReference * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXMLDOMEntityReference * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXMLDOMEntityReference * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXMLDOMEntityReference * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXMLDOMEntityReference * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXMLDOMEntityReference * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXMLDOMEntityReference * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXMLDOMEntityReference * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXMLDOMEntityReference * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXMLDOMEntityReference * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXMLDOMEntityReference * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXMLDOMEntityReference * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXMLDOMEntityReference * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXMLDOMEntityReference * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXMLDOMEntityReference * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXMLDOMEntityReference * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXMLDOMEntityReference * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXMLDOMEntityReference * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXMLDOMEntityReference * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXMLDOMEntityReference * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXMLDOMEntityReference * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXMLDOMEntityReference * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXMLDOMEntityReference * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXMLDOMEntityReference * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXMLDOMEntityReference * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXMLDOMEntityReference * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXMLDOMEntityReference * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXMLDOMEntityReference * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXMLDOMEntityReference * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXMLDOMEntityReference * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXMLDOMEntityReference * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXMLDOMEntityReference * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXMLDOMEntityReference * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - } IXMLDOMEntityReferenceVtbl; - - struct IXMLDOMEntityReference - { - struct IXMLDOMEntityReferenceVtbl *lpVtbl; - }; -# 8128 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDOMParseError; -# 8162 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDOMParseErrorVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDOMParseError * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDOMParseError * This); - - - ULONG ( __stdcall *Release )( - IXMLDOMParseError * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDOMParseError * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDOMParseError * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDOMParseError * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDOMParseError * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_errorCode )( - IXMLDOMParseError * This, - long *errorCode); - - - HRESULT ( __stdcall *get_url )( - IXMLDOMParseError * This, - BSTR *urlString); - - - HRESULT ( __stdcall *get_reason )( - IXMLDOMParseError * This, - BSTR *reasonString); - - - HRESULT ( __stdcall *get_srcText )( - IXMLDOMParseError * This, - BSTR *sourceString); - - - HRESULT ( __stdcall *get_line )( - IXMLDOMParseError * This, - long *lineNumber); - - - HRESULT ( __stdcall *get_linepos )( - IXMLDOMParseError * This, - long *linePosition); - - - HRESULT ( __stdcall *get_filepos )( - IXMLDOMParseError * This, - long *filePosition); - - - } IXMLDOMParseErrorVtbl; - - struct IXMLDOMParseError - { - struct IXMLDOMParseErrorVtbl *lpVtbl; - }; -# 8332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXTLRuntime; -# 8388 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXTLRuntimeVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXTLRuntime * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXTLRuntime * This); - - - ULONG ( __stdcall *Release )( - IXTLRuntime * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXTLRuntime * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXTLRuntime * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXTLRuntime * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXTLRuntime * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_nodeName )( - IXTLRuntime * This, - BSTR *name); - - - HRESULT ( __stdcall *get_nodeValue )( - IXTLRuntime * This, - VARIANT *value); - - - HRESULT ( __stdcall *put_nodeValue )( - IXTLRuntime * This, - VARIANT value); - - - HRESULT ( __stdcall *get_nodeType )( - IXTLRuntime * This, - DOMNodeType *type); - - - HRESULT ( __stdcall *get_parentNode )( - IXTLRuntime * This, - IXMLDOMNode **parent); - - - HRESULT ( __stdcall *get_childNodes )( - IXTLRuntime * This, - IXMLDOMNodeList **childList); - - - HRESULT ( __stdcall *get_firstChild )( - IXTLRuntime * This, - IXMLDOMNode **firstChild); - - - HRESULT ( __stdcall *get_lastChild )( - IXTLRuntime * This, - IXMLDOMNode **lastChild); - - - HRESULT ( __stdcall *get_previousSibling )( - IXTLRuntime * This, - IXMLDOMNode **previousSibling); - - - HRESULT ( __stdcall *get_nextSibling )( - IXTLRuntime * This, - IXMLDOMNode **nextSibling); - - - HRESULT ( __stdcall *get_attributes )( - IXTLRuntime * This, - IXMLDOMNamedNodeMap **attributeMap); - - - HRESULT ( __stdcall *insertBefore )( - IXTLRuntime * This, - IXMLDOMNode *newChild, - VARIANT refChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *replaceChild )( - IXTLRuntime * This, - IXMLDOMNode *newChild, - IXMLDOMNode *oldChild, - IXMLDOMNode **outOldChild); - - - HRESULT ( __stdcall *removeChild )( - IXTLRuntime * This, - IXMLDOMNode *childNode, - IXMLDOMNode **oldChild); - - - HRESULT ( __stdcall *appendChild )( - IXTLRuntime * This, - IXMLDOMNode *newChild, - IXMLDOMNode **outNewChild); - - - HRESULT ( __stdcall *hasChildNodes )( - IXTLRuntime * This, - VARIANT_BOOL *hasChild); - - - HRESULT ( __stdcall *get_ownerDocument )( - IXTLRuntime * This, - IXMLDOMDocument **XMLDOMDocument); - - - HRESULT ( __stdcall *cloneNode )( - IXTLRuntime * This, - VARIANT_BOOL deep, - IXMLDOMNode **cloneRoot); - - - HRESULT ( __stdcall *get_nodeTypeString )( - IXTLRuntime * This, - BSTR *nodeType); - - - HRESULT ( __stdcall *get_text )( - IXTLRuntime * This, - BSTR *text); - - - HRESULT ( __stdcall *put_text )( - IXTLRuntime * This, - BSTR text); - - - HRESULT ( __stdcall *get_specified )( - IXTLRuntime * This, - VARIANT_BOOL *isSpecified); - - - HRESULT ( __stdcall *get_definition )( - IXTLRuntime * This, - IXMLDOMNode **definitionNode); - - - HRESULT ( __stdcall *get_nodeTypedValue )( - IXTLRuntime * This, - VARIANT *typedValue); - - - HRESULT ( __stdcall *put_nodeTypedValue )( - IXTLRuntime * This, - VARIANT typedValue); - - - HRESULT ( __stdcall *get_dataType )( - IXTLRuntime * This, - VARIANT *dataTypeName); - - - HRESULT ( __stdcall *put_dataType )( - IXTLRuntime * This, - BSTR dataTypeName); - - - HRESULT ( __stdcall *get_xml )( - IXTLRuntime * This, - BSTR *xmlString); - - - HRESULT ( __stdcall *transformNode )( - IXTLRuntime * This, - IXMLDOMNode *stylesheet, - BSTR *xmlString); - - - HRESULT ( __stdcall *selectNodes )( - IXTLRuntime * This, - BSTR queryString, - IXMLDOMNodeList **resultList); - - - HRESULT ( __stdcall *selectSingleNode )( - IXTLRuntime * This, - BSTR queryString, - IXMLDOMNode **resultNode); - - - HRESULT ( __stdcall *get_parsed )( - IXTLRuntime * This, - VARIANT_BOOL *isParsed); - - - HRESULT ( __stdcall *get_namespaceURI )( - IXTLRuntime * This, - BSTR *namespaceURI); - - - HRESULT ( __stdcall *get_prefix )( - IXTLRuntime * This, - BSTR *prefixString); - - - HRESULT ( __stdcall *get_baseName )( - IXTLRuntime * This, - BSTR *nameString); - - - HRESULT ( __stdcall *transformNodeToObject )( - IXTLRuntime * This, - IXMLDOMNode *stylesheet, - VARIANT outputObject); - - - HRESULT ( __stdcall *uniqueID )( - IXTLRuntime * This, - IXMLDOMNode *pNode, - long *pID); - - - HRESULT ( __stdcall *depth )( - IXTLRuntime * This, - IXMLDOMNode *pNode, - long *pDepth); - - - HRESULT ( __stdcall *childNumber )( - IXTLRuntime * This, - IXMLDOMNode *pNode, - long *pNumber); - - - HRESULT ( __stdcall *ancestorChildNumber )( - IXTLRuntime * This, - BSTR bstrNodeName, - IXMLDOMNode *pNode, - long *pNumber); - - - HRESULT ( __stdcall *absoluteChildNumber )( - IXTLRuntime * This, - IXMLDOMNode *pNode, - long *pNumber); - - - HRESULT ( __stdcall *formatIndex )( - IXTLRuntime * This, - long lIndex, - BSTR bstrFormat, - BSTR *pbstrFormattedString); - - - HRESULT ( __stdcall *formatNumber )( - IXTLRuntime * This, - double dblNumber, - BSTR bstrFormat, - BSTR *pbstrFormattedString); - - - HRESULT ( __stdcall *formatDate )( - IXTLRuntime * This, - VARIANT varDate, - BSTR bstrFormat, - VARIANT varDestLocale, - BSTR *pbstrFormattedString); - - - HRESULT ( __stdcall *formatTime )( - IXTLRuntime * This, - VARIANT varTime, - BSTR bstrFormat, - VARIANT varDestLocale, - BSTR *pbstrFormattedString); - - - } IXTLRuntimeVtbl; - - struct IXTLRuntime - { - struct IXTLRuntimeVtbl *lpVtbl; - }; -# 8890 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID DIID_XMLDOMDocumentEvents; -# 8901 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct XMLDOMDocumentEventsVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - XMLDOMDocumentEvents * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - XMLDOMDocumentEvents * This); - - - ULONG ( __stdcall *Release )( - XMLDOMDocumentEvents * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - XMLDOMDocumentEvents * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - XMLDOMDocumentEvents * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - XMLDOMDocumentEvents * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - XMLDOMDocumentEvents * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - } XMLDOMDocumentEventsVtbl; - - struct XMLDOMDocumentEvents - { - struct XMLDOMDocumentEventsVtbl *lpVtbl; - }; -# 9005 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const CLSID CLSID_DOMDocument; - - - - - - - -extern const CLSID CLSID_DOMFreeThreadedDocument; -# 9028 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLHttpRequest; -# 9088 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLHttpRequestVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLHttpRequest * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLHttpRequest * This); - - - ULONG ( __stdcall *Release )( - IXMLHttpRequest * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLHttpRequest * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLHttpRequest * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLHttpRequest * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLHttpRequest * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *open )( - IXMLHttpRequest * This, - BSTR bstrMethod, - BSTR bstrUrl, - VARIANT varAsync, - VARIANT bstrUser, - VARIANT bstrPassword); - - - HRESULT ( __stdcall *setRequestHeader )( - IXMLHttpRequest * This, - BSTR bstrHeader, - BSTR bstrValue); - - - HRESULT ( __stdcall *getResponseHeader )( - IXMLHttpRequest * This, - BSTR bstrHeader, - BSTR *pbstrValue); - - - HRESULT ( __stdcall *getAllResponseHeaders )( - IXMLHttpRequest * This, - BSTR *pbstrHeaders); - - - HRESULT ( __stdcall *send )( - IXMLHttpRequest * This, - VARIANT varBody); - - - HRESULT ( __stdcall *abort )( - IXMLHttpRequest * This); - - - HRESULT ( __stdcall *get_status )( - IXMLHttpRequest * This, - long *plStatus); - - - HRESULT ( __stdcall *get_statusText )( - IXMLHttpRequest * This, - BSTR *pbstrStatus); - - - HRESULT ( __stdcall *get_responseXML )( - IXMLHttpRequest * This, - IDispatch **ppBody); - - - HRESULT ( __stdcall *get_responseText )( - IXMLHttpRequest * This, - BSTR *pbstrBody); - - - HRESULT ( __stdcall *get_responseBody )( - IXMLHttpRequest * This, - VARIANT *pvarBody); - - - HRESULT ( __stdcall *get_responseStream )( - IXMLHttpRequest * This, - VARIANT *pvarBody); - - - HRESULT ( __stdcall *get_readyState )( - IXMLHttpRequest * This, - long *plState); - - - HRESULT ( __stdcall *put_onreadystatechange )( - IXMLHttpRequest * This, - IDispatch *pReadyStateSink); - - - } IXMLHttpRequestVtbl; - - struct IXMLHttpRequest - { - struct IXMLHttpRequestVtbl *lpVtbl; - }; -# 9312 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const CLSID CLSID_XMLHTTPRequest; -# 9327 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDSOControl; -# 9355 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDSOControlVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDSOControl * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDSOControl * This); - - - ULONG ( __stdcall *Release )( - IXMLDSOControl * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDSOControl * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDSOControl * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDSOControl * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDSOControl * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_XMLDocument )( - IXMLDSOControl * This, - IXMLDOMDocument **ppDoc); - - - HRESULT ( __stdcall *put_XMLDocument )( - IXMLDSOControl * This, - IXMLDOMDocument *ppDoc); - - - HRESULT ( __stdcall *get_JavaDSOCompatible )( - IXMLDSOControl * This, - BOOL *fJavaDSOCompatible); - - - HRESULT ( __stdcall *put_JavaDSOCompatible )( - IXMLDSOControl * This, - BOOL fJavaDSOCompatible); - - - HRESULT ( __stdcall *get_readyState )( - IXMLDSOControl * This, - long *state); - - - } IXMLDSOControlVtbl; - - struct IXMLDSOControl - { - struct IXMLDSOControlVtbl *lpVtbl; - }; -# 9502 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const CLSID CLSID_XMLDSOControl; -# 9517 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLElementCollection; -# 9544 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLElementCollectionVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLElementCollection * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLElementCollection * This); - - - ULONG ( __stdcall *Release )( - IXMLElementCollection * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLElementCollection * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLElementCollection * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLElementCollection * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLElementCollection * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *put_length )( - IXMLElementCollection * This, - long v); - - - HRESULT ( __stdcall *get_length )( - IXMLElementCollection * This, - long *p); - - - HRESULT ( __stdcall *get__newEnum )( - IXMLElementCollection * This, - IUnknown **ppUnk); - - - HRESULT ( __stdcall *item )( - IXMLElementCollection * This, - VARIANT var1, - VARIANT var2, - IDispatch **ppDisp); - - - } IXMLElementCollectionVtbl; - - struct IXMLElementCollection - { - struct IXMLElementCollectionVtbl *lpVtbl; - }; -# 9692 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDocument; -# 9749 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDocumentVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDocument * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDocument * This); - - - ULONG ( __stdcall *Release )( - IXMLDocument * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDocument * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDocument * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDocument * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDocument * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_root )( - IXMLDocument * This, - IXMLElement **p); - - - HRESULT ( __stdcall *get_fileSize )( - IXMLDocument * This, - BSTR *p); - - - HRESULT ( __stdcall *get_fileModifiedDate )( - IXMLDocument * This, - BSTR *p); - - - HRESULT ( __stdcall *get_fileUpdatedDate )( - IXMLDocument * This, - BSTR *p); - - - HRESULT ( __stdcall *get_URL )( - IXMLDocument * This, - BSTR *p); - - - HRESULT ( __stdcall *put_URL )( - IXMLDocument * This, - BSTR p); - - - HRESULT ( __stdcall *get_mimeType )( - IXMLDocument * This, - BSTR *p); - - - HRESULT ( __stdcall *get_readyState )( - IXMLDocument * This, - long *pl); - - - HRESULT ( __stdcall *get_charset )( - IXMLDocument * This, - BSTR *p); - - - HRESULT ( __stdcall *put_charset )( - IXMLDocument * This, - BSTR p); - - - HRESULT ( __stdcall *get_version )( - IXMLDocument * This, - BSTR *p); - - - HRESULT ( __stdcall *get_doctype )( - IXMLDocument * This, - BSTR *p); - - - HRESULT ( __stdcall *get_dtdURL )( - IXMLDocument * This, - BSTR *p); - - - HRESULT ( __stdcall *createElement )( - IXMLDocument * This, - VARIANT vType, - VARIANT var1, - IXMLElement **ppElem); - - - } IXMLDocumentVtbl; - - struct IXMLDocument - { - struct IXMLDocumentVtbl *lpVtbl; - }; -# 9977 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLDocument2; -# 10040 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLDocument2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLDocument2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLDocument2 * This); - - - ULONG ( __stdcall *Release )( - IXMLDocument2 * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLDocument2 * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLDocument2 * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLDocument2 * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLDocument2 * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_root )( - IXMLDocument2 * This, - IXMLElement2 **p); - - - HRESULT ( __stdcall *get_fileSize )( - IXMLDocument2 * This, - BSTR *p); - - - HRESULT ( __stdcall *get_fileModifiedDate )( - IXMLDocument2 * This, - BSTR *p); - - - HRESULT ( __stdcall *get_fileUpdatedDate )( - IXMLDocument2 * This, - BSTR *p); - - - HRESULT ( __stdcall *get_URL )( - IXMLDocument2 * This, - BSTR *p); - - - HRESULT ( __stdcall *put_URL )( - IXMLDocument2 * This, - BSTR p); - - - HRESULT ( __stdcall *get_mimeType )( - IXMLDocument2 * This, - BSTR *p); - - - HRESULT ( __stdcall *get_readyState )( - IXMLDocument2 * This, - long *pl); - - - HRESULT ( __stdcall *get_charset )( - IXMLDocument2 * This, - BSTR *p); - - - HRESULT ( __stdcall *put_charset )( - IXMLDocument2 * This, - BSTR p); - - - HRESULT ( __stdcall *get_version )( - IXMLDocument2 * This, - BSTR *p); - - - HRESULT ( __stdcall *get_doctype )( - IXMLDocument2 * This, - BSTR *p); - - - HRESULT ( __stdcall *get_dtdURL )( - IXMLDocument2 * This, - BSTR *p); - - - HRESULT ( __stdcall *createElement )( - IXMLDocument2 * This, - VARIANT vType, - VARIANT var1, - IXMLElement2 **ppElem); - - - HRESULT ( __stdcall *get_async )( - IXMLDocument2 * This, - VARIANT_BOOL *pf); - - - HRESULT ( __stdcall *put_async )( - IXMLDocument2 * This, - VARIANT_BOOL f); - - - } IXMLDocument2Vtbl; - - struct IXMLDocument2 - { - struct IXMLDocument2Vtbl *lpVtbl; - }; -# 10284 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLElement; -# 10337 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLElementVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLElement * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLElement * This); - - - ULONG ( __stdcall *Release )( - IXMLElement * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLElement * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLElement * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLElement * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLElement * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_tagName )( - IXMLElement * This, - BSTR *p); - - - HRESULT ( __stdcall *put_tagName )( - IXMLElement * This, - BSTR p); - - - HRESULT ( __stdcall *get_parent )( - IXMLElement * This, - IXMLElement **ppParent); - - - HRESULT ( __stdcall *setAttribute )( - IXMLElement * This, - BSTR strPropertyName, - VARIANT PropertyValue); - - - HRESULT ( __stdcall *getAttribute )( - IXMLElement * This, - BSTR strPropertyName, - VARIANT *PropertyValue); - - - HRESULT ( __stdcall *removeAttribute )( - IXMLElement * This, - BSTR strPropertyName); - - - HRESULT ( __stdcall *get_children )( - IXMLElement * This, - IXMLElementCollection **pp); - - - HRESULT ( __stdcall *get_type )( - IXMLElement * This, - long *plType); - - - HRESULT ( __stdcall *get_text )( - IXMLElement * This, - BSTR *p); - - - HRESULT ( __stdcall *put_text )( - IXMLElement * This, - BSTR p); - - - HRESULT ( __stdcall *addChild )( - IXMLElement * This, - IXMLElement *pChildElem, - long lIndex, - long lReserved); - - - HRESULT ( __stdcall *removeChild )( - IXMLElement * This, - IXMLElement *pChildElem); - - - } IXMLElementVtbl; - - struct IXMLElement - { - struct IXMLElementVtbl *lpVtbl; - }; -# 10551 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLElement2; -# 10607 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLElement2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLElement2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLElement2 * This); - - - ULONG ( __stdcall *Release )( - IXMLElement2 * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLElement2 * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLElement2 * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLElement2 * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLElement2 * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_tagName )( - IXMLElement2 * This, - BSTR *p); - - - HRESULT ( __stdcall *put_tagName )( - IXMLElement2 * This, - BSTR p); - - - HRESULT ( __stdcall *get_parent )( - IXMLElement2 * This, - IXMLElement2 **ppParent); - - - HRESULT ( __stdcall *setAttribute )( - IXMLElement2 * This, - BSTR strPropertyName, - VARIANT PropertyValue); - - - HRESULT ( __stdcall *getAttribute )( - IXMLElement2 * This, - BSTR strPropertyName, - VARIANT *PropertyValue); - - - HRESULT ( __stdcall *removeAttribute )( - IXMLElement2 * This, - BSTR strPropertyName); - - - HRESULT ( __stdcall *get_children )( - IXMLElement2 * This, - IXMLElementCollection **pp); - - - HRESULT ( __stdcall *get_type )( - IXMLElement2 * This, - long *plType); - - - HRESULT ( __stdcall *get_text )( - IXMLElement2 * This, - BSTR *p); - - - HRESULT ( __stdcall *put_text )( - IXMLElement2 * This, - BSTR p); - - - HRESULT ( __stdcall *addChild )( - IXMLElement2 * This, - IXMLElement2 *pChildElem, - long lIndex, - long lReserved); - - - HRESULT ( __stdcall *removeChild )( - IXMLElement2 * This, - IXMLElement2 *pChildElem); - - - HRESULT ( __stdcall *get_attributes )( - IXMLElement2 * This, - IXMLElementCollection **pp); - - - } IXMLElement2Vtbl; - - struct IXMLElement2 - { - struct IXMLElement2Vtbl *lpVtbl; - }; -# 10829 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLAttribute; -# 10848 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLAttributeVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLAttribute * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLAttribute * This); - - - ULONG ( __stdcall *Release )( - IXMLAttribute * This); - - - HRESULT ( __stdcall *GetTypeInfoCount )( - IXMLAttribute * This, - UINT *pctinfo); - - - HRESULT ( __stdcall *GetTypeInfo )( - IXMLAttribute * This, - UINT iTInfo, - LCID lcid, - ITypeInfo **ppTInfo); - - - HRESULT ( __stdcall *GetIDsOfNames )( - IXMLAttribute * This, - const IID * const riid, - LPOLESTR *rgszNames, - UINT cNames, - LCID lcid, - DISPID *rgDispId); - - - HRESULT ( __stdcall *Invoke )( - IXMLAttribute * This, - - DISPID dispIdMember, - - const IID * const riid, - - LCID lcid, - - WORD wFlags, - - DISPPARAMS *pDispParams, - - VARIANT *pVarResult, - - EXCEPINFO *pExcepInfo, - - UINT *puArgErr); - - - HRESULT ( __stdcall *get_name )( - IXMLAttribute * This, - BSTR *n); - - - HRESULT ( __stdcall *get_value )( - IXMLAttribute * This, - BSTR *v); - - - } IXMLAttributeVtbl; - - struct IXMLAttribute - { - struct IXMLAttributeVtbl *lpVtbl; - }; -# 10978 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const IID IID_IXMLError; -# 10994 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 - typedef struct IXMLErrorVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IXMLError * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IXMLError * This); - - - ULONG ( __stdcall *Release )( - IXMLError * This); - - - HRESULT ( __stdcall *GetErrorInfo )( - IXMLError * This, - XML_ERROR *pErrorReturn); - - - } IXMLErrorVtbl; - - struct IXMLError - { - struct IXMLErrorVtbl *lpVtbl; - }; -# 11055 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -extern const CLSID CLSID_XMLDocument; -# 11070 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um/msxml.h" 3 -#pragma warning(pop) - - - -extern RPC_IF_HANDLE __MIDL_itf_msxml_0000_0001_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_msxml_0000_0001_v0_0_s_ifspec; -# 440 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 2 3 -# 460 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -#pragma comment(lib,"uuid.lib") - - - - - - -#pragma warning(push) - - - -#pragma warning(disable: 4820) -# 490 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID CLSID_SBS_StdURLMoniker; -extern const IID CLSID_SBS_HttpProtocol; -extern const IID CLSID_SBS_FtpProtocol; -extern const IID CLSID_SBS_GopherProtocol; -extern const IID CLSID_SBS_HttpSProtocol; -extern const IID CLSID_SBS_FileProtocol; -extern const IID CLSID_SBS_MkProtocol; -extern const IID CLSID_SBS_UrlMkBindCtx; -extern const IID CLSID_SBS_SoftDistExt; -extern const IID CLSID_SBS_CdlProtocol; -extern const IID CLSID_SBS_ClassInstallFilter; -extern const IID CLSID_SBS_InternetSecurityManager; -extern const IID CLSID_SBS_InternetZoneManager; - - - - - - - -extern const IID IID_IAsyncMoniker; -extern const IID CLSID_StdURLMoniker; -extern const IID CLSID_HttpProtocol; -extern const IID CLSID_FtpProtocol; -extern const IID CLSID_GopherProtocol; -extern const IID CLSID_HttpSProtocol; -extern const IID CLSID_FileProtocol; -extern const IID CLSID_ResProtocol; -extern const IID CLSID_AboutProtocol; -extern const IID CLSID_JSProtocol; -extern const IID CLSID_MailtoProtocol; -extern const IID CLSID_IE4_PROTOCOLS; -extern const IID CLSID_MkProtocol; -extern const IID CLSID_StdURLProtocol; -extern const IID CLSID_TBAuthProtocol; -extern const IID CLSID_UrlMkBindCtx; -extern const IID CLSID_CdlProtocol; -extern const IID CLSID_ClassInstallFilter; -extern const IID IID_IAsyncBindCtx; -# 537 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern HRESULT __stdcall CreateURLMoniker( LPMONIKER pMkCtx, LPCWSTR szURL, LPMONIKER * ppmk); -extern HRESULT __stdcall CreateURLMonikerEx( LPMONIKER pMkCtx, LPCWSTR szURL, LPMONIKER * ppmk, DWORD dwFlags); -extern HRESULT __stdcall GetClassURL( LPCWSTR szURL, CLSID *pClsID); -extern HRESULT __stdcall CreateAsyncBindCtx(DWORD reserved, IBindStatusCallback *pBSCb, - IEnumFORMATETC *pEFetc, IBindCtx **ppBC); - -extern HRESULT __stdcall CreateURLMonikerEx2( LPMONIKER pMkCtx, IUri* pUri, LPMONIKER * ppmk, DWORD dwFlags); - -extern HRESULT __stdcall CreateAsyncBindCtxEx( IBindCtx *pbc, DWORD dwOptions, IBindStatusCallback *pBSCb, IEnumFORMATETC *pEnum, - IBindCtx **ppBC, DWORD reserved); -extern HRESULT __stdcall MkParseDisplayNameEx( IBindCtx *pbc, LPCWSTR szDisplayName, ULONG *pchEaten, - LPMONIKER *ppmk); -extern HRESULT __stdcall RegisterBindStatusCallback( LPBC pBC, IBindStatusCallback *pBSCb, - IBindStatusCallback** ppBSCBPrev, DWORD dwReserved); -extern HRESULT __stdcall RevokeBindStatusCallback( LPBC pBC, IBindStatusCallback *pBSCb); -extern HRESULT __stdcall GetClassFileOrMime( LPBC pBC, LPCWSTR szFilename, LPVOID pBuffer, DWORD cbSize, LPCWSTR szMime, DWORD dwReserved, CLSID *pclsid); -extern HRESULT __stdcall IsValidURL( LPBC pBC, LPCWSTR szURL, DWORD dwReserved); -extern HRESULT __stdcall CoGetClassObjectFromURL( const IID * const rCLASSID, - LPCWSTR szCODE, DWORD dwFileVersionMS, - DWORD dwFileVersionLS, LPCWSTR szTYPE, - LPBINDCTX pBindCtx, DWORD dwClsContext, - LPVOID pvReserved, const IID * const riid, LPVOID * ppv); -extern HRESULT __stdcall IEInstallScope( LPDWORD pdwScope); -extern HRESULT __stdcall FaultInIEFeature( HWND hWnd, - uCLSSPEC *pClassSpec, - QUERYCONTEXT *pQuery, DWORD dwFlags); -extern HRESULT __stdcall GetComponentIDFromCLSSPEC( uCLSSPEC *pClassspec, - LPSTR * ppszComponentID); -# 575 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern HRESULT __stdcall IsAsyncMoniker( IMoniker* pmk); -extern HRESULT __stdcall CreateURLBinding(LPCWSTR lpszUrl, IBindCtx *pbc, IBinding **ppBdg); - -extern HRESULT __stdcall RegisterMediaTypes( UINT ctypes, const LPCSTR* rgszTypes, CLIPFORMAT* rgcfTypes); -extern HRESULT __stdcall FindMediaType( LPCSTR rgszTypes, CLIPFORMAT* rgcfTypes); -extern HRESULT __stdcall CreateFormatEnumerator( UINT cfmtetc, FORMATETC* rgfmtetc, IEnumFORMATETC** ppenumfmtetc); -extern HRESULT __stdcall RegisterFormatEnumerator( LPBC pBC, IEnumFORMATETC *pEFetc, DWORD reserved); -extern HRESULT __stdcall RevokeFormatEnumerator( LPBC pBC, IEnumFORMATETC *pEFetc); -extern HRESULT __stdcall RegisterMediaTypeClass( LPBC pBC, UINT ctypes, const LPCSTR* rgszTypes, CLSID *rgclsID, DWORD reserved); -extern HRESULT __stdcall FindMediaTypeClass( LPBC pBC, LPCSTR szType, CLSID *pclsID, DWORD reserved); - - - - -extern HRESULT __stdcall UrlMkSetSessionOption(DWORD dwOption, LPVOID pBuffer, DWORD dwBufferLength, DWORD dwReserved); -extern HRESULT __stdcall UrlMkGetSessionOption(DWORD dwOption, LPVOID pBuffer, DWORD dwBufferLength, DWORD *pdwBufferLengthOut, DWORD dwReserved); - - - - -extern HRESULT __stdcall FindMimeFromData( - LPBC pBC, - LPCWSTR pwzUrl, - LPVOID pBuffer, - DWORD cbSize, - LPCWSTR pwzMimeProposed, - DWORD dwMimeFlags, - LPWSTR *ppwzMimeOut, - DWORD dwReserved); -# 616 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern HRESULT __stdcall ObtainUserAgentString( - DWORD dwOption, - LPSTR pszUAOut, - DWORD *cbSize); -extern HRESULT __stdcall CompareSecurityIds( BYTE* pbSecurityId1, DWORD dwLen1, BYTE* pbSecurityId2, DWORD dwLen2, DWORD dwReserved); -extern HRESULT __stdcall CompatFlagsFromClsid( CLSID *pclsid, LPDWORD pdwCompatFlags, LPDWORD pdwMiscStatusFlags); - - - - -typedef enum IEObjectType -{ - IE_EPM_OBJECT_EVENT, - IE_EPM_OBJECT_MUTEX, - IE_EPM_OBJECT_SEMAPHORE, - IE_EPM_OBJECT_SHARED_MEMORY, - IE_EPM_OBJECT_WAITABLE_TIMER, - IE_EPM_OBJECT_FILE, - IE_EPM_OBJECT_NAMED_PIPE, - IE_EPM_OBJECT_REGISTRY, -} IEObjectType; - -extern HRESULT __stdcall SetAccessForIEAppContainer( - HANDLE hObject, - IEObjectType ieObjectType, - DWORD dwAccessMask - ); -# 788 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0000_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0000_v0_0_s_ifspec; - - - - - - - -typedef IPersistMoniker *LPPERSISTMONIKER; - - -extern const IID IID_IPersistMoniker; -# 836 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IPersistMonikerVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IPersistMoniker * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IPersistMoniker * This); - - - ULONG ( __stdcall *Release )( - IPersistMoniker * This); - - - HRESULT ( __stdcall *GetClassID )( - IPersistMoniker * This, - CLSID *pClassID); - - - HRESULT ( __stdcall *IsDirty )( - IPersistMoniker * This); - - - HRESULT ( __stdcall *Load )( - IPersistMoniker * This, - BOOL fFullyAvailable, - IMoniker *pimkName, - LPBC pibc, - DWORD grfMode); - - - HRESULT ( __stdcall *Save )( - IPersistMoniker * This, - IMoniker *pimkName, - LPBC pbc, - BOOL fRemember); - - - HRESULT ( __stdcall *SaveCompleted )( - IPersistMoniker * This, - IMoniker *pimkName, - LPBC pibc); - - - HRESULT ( __stdcall *GetCurMoniker )( - IPersistMoniker * This, - IMoniker **ppimkName); - - - } IPersistMonikerVtbl; - - struct IPersistMoniker - { - struct IPersistMonikerVtbl *lpVtbl; - }; -# 950 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0001_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0001_v0_0_s_ifspec; - - - - - - - -typedef IMonikerProp *LPMONIKERPROP; - -typedef -enum __MIDL_IMonikerProp_0001 - { - MIMETYPEPROP = 0, - USE_SRC_URL = 0x1, - CLASSIDPROP = 0x2, - TRUSTEDDOWNLOADPROP = 0x3, - POPUPLEVELPROP = 0x4 - } MONIKERPROPERTY; - - -extern const IID IID_IMonikerProp; -# 989 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IMonikerPropVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IMonikerProp * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IMonikerProp * This); - - - ULONG ( __stdcall *Release )( - IMonikerProp * This); - - - HRESULT ( __stdcall *PutProperty )( - IMonikerProp * This, - MONIKERPROPERTY mkp, - LPCWSTR val); - - - } IMonikerPropVtbl; - - struct IMonikerProp - { - struct IMonikerPropVtbl *lpVtbl; - }; -# 1059 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0002_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0002_v0_0_s_ifspec; - - - - - - - -typedef IBindProtocol *LPBINDPROTOCOL; - - -extern const IID IID_IBindProtocol; -# 1089 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IBindProtocolVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IBindProtocol * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IBindProtocol * This); - - - ULONG ( __stdcall *Release )( - IBindProtocol * This); - - - HRESULT ( __stdcall *CreateBinding )( - IBindProtocol * This, - LPCWSTR szUrl, - IBindCtx *pbc, - IBinding **ppb); - - - } IBindProtocolVtbl; - - struct IBindProtocol - { - struct IBindProtocolVtbl *lpVtbl; - }; -# 1160 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0003_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0003_v0_0_s_ifspec; - - - - - - - -typedef IBinding *LPBINDING; - - -extern const IID IID_IBinding; -# 1204 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IBindingVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IBinding * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IBinding * This); - - - ULONG ( __stdcall *Release )( - IBinding * This); - - - HRESULT ( __stdcall *Abort )( - IBinding * This); - - - HRESULT ( __stdcall *Suspend )( - IBinding * This); - - - HRESULT ( __stdcall *Resume )( - IBinding * This); - - - HRESULT ( __stdcall *SetPriority )( - IBinding * This, - LONG nPriority); - - - HRESULT ( __stdcall *GetPriority )( - IBinding * This, - LONG *pnPriority); - - - HRESULT ( __stdcall *GetBindResult )( - IBinding * This, - CLSID *pclsidProtocol, - DWORD *pdwResult, - - LPOLESTR *pszResult, - DWORD *pdwReserved); - - - } IBindingVtbl; - - struct IBinding - { - struct IBindingVtbl *lpVtbl; - }; -# 1302 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - HRESULT __stdcall IBinding_RemoteGetBindResult_Proxy( - IBinding * This, - CLSID *pclsidProtocol, - DWORD *pdwResult, - LPOLESTR *pszResult, - DWORD dwReserved); - - -void __stdcall IBinding_RemoteGetBindResult_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 1333 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0004_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0004_v0_0_s_ifspec; - - - - - - - -typedef IBindStatusCallback *LPBINDSTATUSCALLBACK; - -typedef -enum __MIDL_IBindStatusCallback_0001 - { - BINDVERB_GET = 0, - BINDVERB_POST = 0x1, - BINDVERB_PUT = 0x2, - BINDVERB_CUSTOM = 0x3, - BINDVERB_RESERVED1 = 0x4 - } BINDVERB; - -typedef -enum __MIDL_IBindStatusCallback_0002 - { - BINDINFOF_URLENCODESTGMEDDATA = 0x1, - BINDINFOF_URLENCODEDEXTRAINFO = 0x2 - } BINDINFOF; - -typedef -enum __MIDL_IBindStatusCallback_0003 - { - BINDF_ASYNCHRONOUS = 0x1, - BINDF_ASYNCSTORAGE = 0x2, - BINDF_NOPROGRESSIVERENDERING = 0x4, - BINDF_OFFLINEOPERATION = 0x8, - BINDF_GETNEWESTVERSION = 0x10, - BINDF_NOWRITECACHE = 0x20, - BINDF_NEEDFILE = 0x40, - BINDF_PULLDATA = 0x80, - BINDF_IGNORESECURITYPROBLEM = 0x100, - BINDF_RESYNCHRONIZE = 0x200, - BINDF_HYPERLINK = 0x400, - BINDF_NO_UI = 0x800, - BINDF_SILENTOPERATION = 0x1000, - BINDF_PRAGMA_NO_CACHE = 0x2000, - BINDF_GETCLASSOBJECT = 0x4000, - BINDF_RESERVED_1 = 0x8000, - BINDF_FREE_THREADED = 0x10000, - BINDF_DIRECT_READ = 0x20000, - BINDF_FORMS_SUBMIT = 0x40000, - BINDF_GETFROMCACHE_IF_NET_FAIL = 0x80000, - BINDF_FROMURLMON = 0x100000, - BINDF_FWD_BACK = 0x200000, - BINDF_PREFERDEFAULTHANDLER = 0x400000, - BINDF_ENFORCERESTRICTED = 0x800000, - BINDF_RESERVED_2 = 0x80000000, - BINDF_RESERVED_3 = 0x1000000, - BINDF_RESERVED_4 = 0x2000000, - BINDF_RESERVED_5 = 0x4000000, - BINDF_RESERVED_6 = 0x8000000, - BINDF_RESERVED_7 = 0x40000000, - BINDF_RESERVED_8 = 0x20000000 - } BINDF; - -typedef -enum __MIDL_IBindStatusCallback_0004 - { - URL_ENCODING_NONE = 0, - URL_ENCODING_ENABLE_UTF8 = 0x10000000, - URL_ENCODING_DISABLE_UTF8 = 0x20000000 - } URL_ENCODING; - -typedef struct _tagBINDINFO - { - ULONG cbSize; - LPWSTR szExtraInfo; - STGMEDIUM stgmedData; - DWORD grfBindInfoF; - DWORD dwBindVerb; - LPWSTR szCustomVerb; - DWORD cbstgmedData; - DWORD dwOptions; - DWORD dwOptionsFlags; - DWORD dwCodePage; - SECURITY_ATTRIBUTES securityAttributes; - IID iid; - IUnknown *pUnk; - DWORD dwReserved; - } BINDINFO; - -typedef struct _REMSECURITY_ATTRIBUTES - { - DWORD nLength; - DWORD lpSecurityDescriptor; - BOOL bInheritHandle; - } REMSECURITY_ATTRIBUTES; - -typedef struct _REMSECURITY_ATTRIBUTES *PREMSECURITY_ATTRIBUTES; - -typedef struct _REMSECURITY_ATTRIBUTES *LPREMSECURITY_ATTRIBUTES; - -typedef struct _tagRemBINDINFO - { - ULONG cbSize; - LPWSTR szExtraInfo; - DWORD grfBindInfoF; - DWORD dwBindVerb; - LPWSTR szCustomVerb; - DWORD cbstgmedData; - DWORD dwOptions; - DWORD dwOptionsFlags; - DWORD dwCodePage; - REMSECURITY_ATTRIBUTES securityAttributes; - IID iid; - IUnknown *pUnk; - DWORD dwReserved; - } RemBINDINFO; - -typedef struct tagRemFORMATETC - { - DWORD cfFormat; - DWORD ptd; - DWORD dwAspect; - LONG lindex; - DWORD tymed; - } RemFORMATETC; - -typedef struct tagRemFORMATETC *LPREMFORMATETC; - -typedef -enum __MIDL_IBindStatusCallback_0005 - { - BINDINFO_OPTIONS_WININETFLAG = 0x10000, - BINDINFO_OPTIONS_ENABLE_UTF8 = 0x20000, - BINDINFO_OPTIONS_DISABLE_UTF8 = 0x40000, - BINDINFO_OPTIONS_USE_IE_ENCODING = 0x80000, - BINDINFO_OPTIONS_BINDTOOBJECT = 0x100000, - BINDINFO_OPTIONS_SECURITYOPTOUT = 0x200000, - BINDINFO_OPTIONS_IGNOREMIMETEXTPLAIN = 0x400000, - BINDINFO_OPTIONS_USEBINDSTRINGCREDS = 0x800000, - BINDINFO_OPTIONS_IGNOREHTTPHTTPSREDIRECTS = 0x1000000, - BINDINFO_OPTIONS_IGNORE_SSLERRORS_ONCE = 0x2000000, - BINDINFO_WPC_DOWNLOADBLOCKED = 0x8000000, - BINDINFO_WPC_LOGGING_ENABLED = 0x10000000, - BINDINFO_OPTIONS_ALLOWCONNECTDATA = 0x20000000, - BINDINFO_OPTIONS_DISABLEAUTOREDIRECTS = 0x40000000, - BINDINFO_OPTIONS_SHDOCVW_NAVIGATE = ( int )0x80000000 - } BINDINFO_OPTIONS; - -typedef -enum __MIDL_IBindStatusCallback_0006 - { - BSCF_FIRSTDATANOTIFICATION = 0x1, - BSCF_INTERMEDIATEDATANOTIFICATION = 0x2, - BSCF_LASTDATANOTIFICATION = 0x4, - BSCF_DATAFULLYAVAILABLE = 0x8, - BSCF_AVAILABLEDATASIZEUNKNOWN = 0x10, - BSCF_SKIPDRAINDATAFORFILEURLS = 0x20, - BSCF_64BITLENGTHDOWNLOAD = 0x40 - } BSCF; - -typedef -enum tagBINDSTATUS - { - BINDSTATUS_FINDINGRESOURCE = 1, - BINDSTATUS_CONNECTING = ( BINDSTATUS_FINDINGRESOURCE + 1 ) , - BINDSTATUS_REDIRECTING = ( BINDSTATUS_CONNECTING + 1 ) , - BINDSTATUS_BEGINDOWNLOADDATA = ( BINDSTATUS_REDIRECTING + 1 ) , - BINDSTATUS_DOWNLOADINGDATA = ( BINDSTATUS_BEGINDOWNLOADDATA + 1 ) , - BINDSTATUS_ENDDOWNLOADDATA = ( BINDSTATUS_DOWNLOADINGDATA + 1 ) , - BINDSTATUS_BEGINDOWNLOADCOMPONENTS = ( BINDSTATUS_ENDDOWNLOADDATA + 1 ) , - BINDSTATUS_INSTALLINGCOMPONENTS = ( BINDSTATUS_BEGINDOWNLOADCOMPONENTS + 1 ) , - BINDSTATUS_ENDDOWNLOADCOMPONENTS = ( BINDSTATUS_INSTALLINGCOMPONENTS + 1 ) , - BINDSTATUS_USINGCACHEDCOPY = ( BINDSTATUS_ENDDOWNLOADCOMPONENTS + 1 ) , - BINDSTATUS_SENDINGREQUEST = ( BINDSTATUS_USINGCACHEDCOPY + 1 ) , - BINDSTATUS_CLASSIDAVAILABLE = ( BINDSTATUS_SENDINGREQUEST + 1 ) , - BINDSTATUS_MIMETYPEAVAILABLE = ( BINDSTATUS_CLASSIDAVAILABLE + 1 ) , - BINDSTATUS_CACHEFILENAMEAVAILABLE = ( BINDSTATUS_MIMETYPEAVAILABLE + 1 ) , - BINDSTATUS_BEGINSYNCOPERATION = ( BINDSTATUS_CACHEFILENAMEAVAILABLE + 1 ) , - BINDSTATUS_ENDSYNCOPERATION = ( BINDSTATUS_BEGINSYNCOPERATION + 1 ) , - BINDSTATUS_BEGINUPLOADDATA = ( BINDSTATUS_ENDSYNCOPERATION + 1 ) , - BINDSTATUS_UPLOADINGDATA = ( BINDSTATUS_BEGINUPLOADDATA + 1 ) , - BINDSTATUS_ENDUPLOADDATA = ( BINDSTATUS_UPLOADINGDATA + 1 ) , - BINDSTATUS_PROTOCOLCLASSID = ( BINDSTATUS_ENDUPLOADDATA + 1 ) , - BINDSTATUS_ENCODING = ( BINDSTATUS_PROTOCOLCLASSID + 1 ) , - BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE = ( BINDSTATUS_ENCODING + 1 ) , - BINDSTATUS_CLASSINSTALLLOCATION = ( BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE + 1 ) , - BINDSTATUS_DECODING = ( BINDSTATUS_CLASSINSTALLLOCATION + 1 ) , - BINDSTATUS_LOADINGMIMEHANDLER = ( BINDSTATUS_DECODING + 1 ) , - BINDSTATUS_CONTENTDISPOSITIONATTACH = ( BINDSTATUS_LOADINGMIMEHANDLER + 1 ) , - BINDSTATUS_FILTERREPORTMIMETYPE = ( BINDSTATUS_CONTENTDISPOSITIONATTACH + 1 ) , - BINDSTATUS_CLSIDCANINSTANTIATE = ( BINDSTATUS_FILTERREPORTMIMETYPE + 1 ) , - BINDSTATUS_IUNKNOWNAVAILABLE = ( BINDSTATUS_CLSIDCANINSTANTIATE + 1 ) , - BINDSTATUS_DIRECTBIND = ( BINDSTATUS_IUNKNOWNAVAILABLE + 1 ) , - BINDSTATUS_RAWMIMETYPE = ( BINDSTATUS_DIRECTBIND + 1 ) , - BINDSTATUS_PROXYDETECTING = ( BINDSTATUS_RAWMIMETYPE + 1 ) , - BINDSTATUS_ACCEPTRANGES = ( BINDSTATUS_PROXYDETECTING + 1 ) , - BINDSTATUS_COOKIE_SENT = ( BINDSTATUS_ACCEPTRANGES + 1 ) , - BINDSTATUS_COMPACT_POLICY_RECEIVED = ( BINDSTATUS_COOKIE_SENT + 1 ) , - BINDSTATUS_COOKIE_SUPPRESSED = ( BINDSTATUS_COMPACT_POLICY_RECEIVED + 1 ) , - BINDSTATUS_COOKIE_STATE_UNKNOWN = ( BINDSTATUS_COOKIE_SUPPRESSED + 1 ) , - BINDSTATUS_COOKIE_STATE_ACCEPT = ( BINDSTATUS_COOKIE_STATE_UNKNOWN + 1 ) , - BINDSTATUS_COOKIE_STATE_REJECT = ( BINDSTATUS_COOKIE_STATE_ACCEPT + 1 ) , - BINDSTATUS_COOKIE_STATE_PROMPT = ( BINDSTATUS_COOKIE_STATE_REJECT + 1 ) , - BINDSTATUS_COOKIE_STATE_LEASH = ( BINDSTATUS_COOKIE_STATE_PROMPT + 1 ) , - BINDSTATUS_COOKIE_STATE_DOWNGRADE = ( BINDSTATUS_COOKIE_STATE_LEASH + 1 ) , - BINDSTATUS_POLICY_HREF = ( BINDSTATUS_COOKIE_STATE_DOWNGRADE + 1 ) , - BINDSTATUS_P3P_HEADER = ( BINDSTATUS_POLICY_HREF + 1 ) , - BINDSTATUS_SESSION_COOKIE_RECEIVED = ( BINDSTATUS_P3P_HEADER + 1 ) , - BINDSTATUS_PERSISTENT_COOKIE_RECEIVED = ( BINDSTATUS_SESSION_COOKIE_RECEIVED + 1 ) , - BINDSTATUS_SESSION_COOKIES_ALLOWED = ( BINDSTATUS_PERSISTENT_COOKIE_RECEIVED + 1 ) , - BINDSTATUS_CACHECONTROL = ( BINDSTATUS_SESSION_COOKIES_ALLOWED + 1 ) , - BINDSTATUS_CONTENTDISPOSITIONFILENAME = ( BINDSTATUS_CACHECONTROL + 1 ) , - BINDSTATUS_MIMETEXTPLAINMISMATCH = ( BINDSTATUS_CONTENTDISPOSITIONFILENAME + 1 ) , - BINDSTATUS_PUBLISHERAVAILABLE = ( BINDSTATUS_MIMETEXTPLAINMISMATCH + 1 ) , - BINDSTATUS_DISPLAYNAMEAVAILABLE = ( BINDSTATUS_PUBLISHERAVAILABLE + 1 ) , - BINDSTATUS_SSLUX_NAVBLOCKED = ( BINDSTATUS_DISPLAYNAMEAVAILABLE + 1 ) , - BINDSTATUS_SERVER_MIMETYPEAVAILABLE = ( BINDSTATUS_SSLUX_NAVBLOCKED + 1 ) , - BINDSTATUS_SNIFFED_CLASSIDAVAILABLE = ( BINDSTATUS_SERVER_MIMETYPEAVAILABLE + 1 ) , - BINDSTATUS_64BIT_PROGRESS = ( BINDSTATUS_SNIFFED_CLASSIDAVAILABLE + 1 ) , - BINDSTATUS_LAST = BINDSTATUS_64BIT_PROGRESS, - BINDSTATUS_RESERVED_0 = ( BINDSTATUS_LAST + 1 ) , - BINDSTATUS_RESERVED_1 = ( BINDSTATUS_RESERVED_0 + 1 ) , - BINDSTATUS_RESERVED_2 = ( BINDSTATUS_RESERVED_1 + 1 ) , - BINDSTATUS_RESERVED_3 = ( BINDSTATUS_RESERVED_2 + 1 ) , - BINDSTATUS_RESERVED_4 = ( BINDSTATUS_RESERVED_3 + 1 ) , - BINDSTATUS_RESERVED_5 = ( BINDSTATUS_RESERVED_4 + 1 ) , - BINDSTATUS_RESERVED_6 = ( BINDSTATUS_RESERVED_5 + 1 ) , - BINDSTATUS_RESERVED_7 = ( BINDSTATUS_RESERVED_6 + 1 ) , - BINDSTATUS_RESERVED_8 = ( BINDSTATUS_RESERVED_7 + 1 ) , - BINDSTATUS_RESERVED_9 = ( BINDSTATUS_RESERVED_8 + 1 ) , - BINDSTATUS_RESERVED_A = ( BINDSTATUS_RESERVED_9 + 1 ) , - BINDSTATUS_RESERVED_B = ( BINDSTATUS_RESERVED_A + 1 ) , - BINDSTATUS_RESERVED_C = ( BINDSTATUS_RESERVED_B + 1 ) , - BINDSTATUS_RESERVED_D = ( BINDSTATUS_RESERVED_C + 1 ) , - BINDSTATUS_RESERVED_E = ( BINDSTATUS_RESERVED_D + 1 ) , - BINDSTATUS_RESERVED_F = ( BINDSTATUS_RESERVED_E + 1 ) , - BINDSTATUS_RESERVED_10 = ( BINDSTATUS_RESERVED_F + 1 ) , - BINDSTATUS_RESERVED_11 = ( BINDSTATUS_RESERVED_10 + 1 ) , - BINDSTATUS_RESERVED_12 = ( BINDSTATUS_RESERVED_11 + 1 ) , - BINDSTATUS_RESERVED_13 = ( BINDSTATUS_RESERVED_12 + 1 ) , - BINDSTATUS_RESERVED_14 = ( BINDSTATUS_RESERVED_13 + 1 ) , - BINDSTATUS_LAST_PRIVATE = BINDSTATUS_RESERVED_14 - } BINDSTATUS; - - -extern const IID IID_IBindStatusCallback; -# 1626 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IBindStatusCallbackVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IBindStatusCallback * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IBindStatusCallback * This); - - - ULONG ( __stdcall *Release )( - IBindStatusCallback * This); - - - HRESULT ( __stdcall *OnStartBinding )( - IBindStatusCallback * This, - DWORD dwReserved, - IBinding *pib); - - - HRESULT ( __stdcall *GetPriority )( - IBindStatusCallback * This, - LONG *pnPriority); - - - HRESULT ( __stdcall *OnLowResource )( - IBindStatusCallback * This, - DWORD reserved); - - - HRESULT ( __stdcall *OnProgress )( - IBindStatusCallback * This, - ULONG ulProgress, - ULONG ulProgressMax, - ULONG ulStatusCode, - LPCWSTR szStatusText); - - - HRESULT ( __stdcall *OnStopBinding )( - IBindStatusCallback * This, - HRESULT hresult, - LPCWSTR szError); - - - HRESULT ( __stdcall *GetBindInfo )( - IBindStatusCallback * This, - DWORD *grfBINDF, - BINDINFO *pbindinfo); - - - HRESULT ( __stdcall *OnDataAvailable )( - IBindStatusCallback * This, - DWORD grfBSCF, - DWORD dwSize, - FORMATETC *pformatetc, - STGMEDIUM *pstgmed); - - - HRESULT ( __stdcall *OnObjectAvailable )( - IBindStatusCallback * This, - const IID * const riid, - IUnknown *punk); - - - } IBindStatusCallbackVtbl; - - struct IBindStatusCallback - { - struct IBindStatusCallbackVtbl *lpVtbl; - }; -# 1749 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - HRESULT __stdcall IBindStatusCallback_RemoteGetBindInfo_Proxy( - IBindStatusCallback * This, - DWORD *grfBINDF, - RemBINDINFO *pbindinfo, - RemSTGMEDIUM *pstgmed); - - -void __stdcall IBindStatusCallback_RemoteGetBindInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IBindStatusCallback_RemoteOnDataAvailable_Proxy( - IBindStatusCallback * This, - DWORD grfBSCF, - DWORD dwSize, - RemFORMATETC *pformatetc, - RemSTGMEDIUM *pstgmed); - - -void __stdcall IBindStatusCallback_RemoteOnDataAvailable_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 1794 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0005_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0005_v0_0_s_ifspec; - - - - - - - -typedef IBindStatusCallbackEx *LPBINDSTATUSCALLBACKEX; - -typedef -enum __MIDL_IBindStatusCallbackEx_0001 - { - BINDF2_DISABLEBASICOVERHTTP = 0x1, - BINDF2_DISABLEAUTOCOOKIEHANDLING = 0x2, - BINDF2_READ_DATA_GREATER_THAN_4GB = 0x4, - BINDF2_DISABLE_HTTP_REDIRECT_XSECURITYID = 0x8, - BINDF2_SETDOWNLOADMODE = 0x20, - BINDF2_DISABLE_HTTP_REDIRECT_CACHING = 0x40, - BINDF2_KEEP_CALLBACK_MODULE_LOADED = 0x80, - BINDF2_ALLOW_PROXY_CRED_PROMPT = 0x100, - BINDF2_RESERVED_17 = 0x200, - BINDF2_RESERVED_16 = 0x400, - BINDF2_RESERVED_15 = 0x800, - BINDF2_RESERVED_14 = 0x1000, - BINDF2_RESERVED_13 = 0x2000, - BINDF2_RESERVED_12 = 0x4000, - BINDF2_RESERVED_11 = 0x8000, - BINDF2_RESERVED_10 = 0x10000, - BINDF2_RESERVED_F = 0x20000, - BINDF2_RESERVED_E = 0x40000, - BINDF2_RESERVED_D = 0x80000, - BINDF2_RESERVED_C = 0x100000, - BINDF2_RESERVED_B = 0x200000, - BINDF2_RESERVED_A = 0x400000, - BINDF2_RESERVED_9 = 0x800000, - BINDF2_RESERVED_8 = 0x1000000, - BINDF2_RESERVED_7 = 0x2000000, - BINDF2_RESERVED_6 = 0x4000000, - BINDF2_RESERVED_5 = 0x8000000, - BINDF2_RESERVED_4 = 0x10000000, - BINDF2_RESERVED_3 = 0x20000000, - BINDF2_RESERVED_2 = 0x40000000, - BINDF2_RESERVED_1 = 0x80000000 - } BINDF2; - - -extern const IID IID_IBindStatusCallbackEx; -# 1861 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IBindStatusCallbackExVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IBindStatusCallbackEx * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IBindStatusCallbackEx * This); - - - ULONG ( __stdcall *Release )( - IBindStatusCallbackEx * This); - - - HRESULT ( __stdcall *OnStartBinding )( - IBindStatusCallbackEx * This, - DWORD dwReserved, - IBinding *pib); - - - HRESULT ( __stdcall *GetPriority )( - IBindStatusCallbackEx * This, - LONG *pnPriority); - - - HRESULT ( __stdcall *OnLowResource )( - IBindStatusCallbackEx * This, - DWORD reserved); - - - HRESULT ( __stdcall *OnProgress )( - IBindStatusCallbackEx * This, - ULONG ulProgress, - ULONG ulProgressMax, - ULONG ulStatusCode, - LPCWSTR szStatusText); - - - HRESULT ( __stdcall *OnStopBinding )( - IBindStatusCallbackEx * This, - HRESULT hresult, - LPCWSTR szError); - - - HRESULT ( __stdcall *GetBindInfo )( - IBindStatusCallbackEx * This, - DWORD *grfBINDF, - BINDINFO *pbindinfo); - - - HRESULT ( __stdcall *OnDataAvailable )( - IBindStatusCallbackEx * This, - DWORD grfBSCF, - DWORD dwSize, - FORMATETC *pformatetc, - STGMEDIUM *pstgmed); - - - HRESULT ( __stdcall *OnObjectAvailable )( - IBindStatusCallbackEx * This, - const IID * const riid, - IUnknown *punk); - - - HRESULT ( __stdcall *GetBindInfoEx )( - IBindStatusCallbackEx * This, - DWORD *grfBINDF, - BINDINFO *pbindinfo, - DWORD *grfBINDF2, - DWORD *pdwReserved); - - - } IBindStatusCallbackExVtbl; - - struct IBindStatusCallbackEx - { - struct IBindStatusCallbackExVtbl *lpVtbl; - }; -# 1996 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - HRESULT __stdcall IBindStatusCallbackEx_RemoteGetBindInfoEx_Proxy( - IBindStatusCallbackEx * This, - DWORD *grfBINDF, - RemBINDINFO *pbindinfo, - RemSTGMEDIUM *pstgmed, - DWORD *grfBINDF2, - DWORD *pdwReserved); - - -void __stdcall IBindStatusCallbackEx_RemoteGetBindInfoEx_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 2024 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0006_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0006_v0_0_s_ifspec; - - - - - - - -typedef IAuthenticate *LPAUTHENTICATION; - - -extern const IID IID_IAuthenticate; -# 2054 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IAuthenticateVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IAuthenticate * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IAuthenticate * This); - - - ULONG ( __stdcall *Release )( - IAuthenticate * This); - - - HRESULT ( __stdcall *Authenticate )( - IAuthenticate * This, - HWND *phwnd, - LPWSTR *pszUsername, - LPWSTR *pszPassword); - - - } IAuthenticateVtbl; - - struct IAuthenticate - { - struct IAuthenticateVtbl *lpVtbl; - }; -# 2125 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0007_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0007_v0_0_s_ifspec; - - - - - - - -typedef IAuthenticateEx *LPAUTHENTICATIONEX; - -typedef -enum __MIDL_IAuthenticateEx_0001 - { - AUTHENTICATEF_PROXY = 0x1, - AUTHENTICATEF_BASIC = 0x2, - AUTHENTICATEF_HTTP = 0x4 - } AUTHENTICATEF; - -typedef struct _tagAUTHENTICATEINFO - { - DWORD dwFlags; - DWORD dwReserved; - } AUTHENTICATEINFO; - - -extern const IID IID_IAuthenticateEx; -# 2170 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IAuthenticateExVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IAuthenticateEx * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IAuthenticateEx * This); - - - ULONG ( __stdcall *Release )( - IAuthenticateEx * This); - - - HRESULT ( __stdcall *Authenticate )( - IAuthenticateEx * This, - HWND *phwnd, - LPWSTR *pszUsername, - LPWSTR *pszPassword); - - - HRESULT ( __stdcall *AuthenticateEx )( - IAuthenticateEx * This, - HWND *phwnd, - LPWSTR *pszUsername, - LPWSTR *pszPassword, - AUTHENTICATEINFO *pauthinfo); - - - } IAuthenticateExVtbl; - - struct IAuthenticateEx - { - struct IAuthenticateExVtbl *lpVtbl; - }; -# 2253 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0008_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0008_v0_0_s_ifspec; - - - - - - - -typedef IHttpNegotiate *LPHTTPNEGOTIATE; - - -extern const IID IID_IHttpNegotiate; -# 2290 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IHttpNegotiateVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IHttpNegotiate * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IHttpNegotiate * This); - - - ULONG ( __stdcall *Release )( - IHttpNegotiate * This); - - - HRESULT ( __stdcall *BeginningTransaction )( - IHttpNegotiate * This, - LPCWSTR szURL, - LPCWSTR szHeaders, - DWORD dwReserved, - LPWSTR *pszAdditionalHeaders); - - - HRESULT ( __stdcall *OnResponse )( - IHttpNegotiate * This, - DWORD dwResponseCode, - LPCWSTR szResponseHeaders, - LPCWSTR szRequestHeaders, - LPWSTR *pszAdditionalRequestHeaders); - - - } IHttpNegotiateVtbl; - - struct IHttpNegotiate - { - struct IHttpNegotiateVtbl *lpVtbl; - }; -# 2373 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0009_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0009_v0_0_s_ifspec; - - - - - - - -typedef IHttpNegotiate2 *LPHTTPNEGOTIATE2; - - -extern const IID IID_IHttpNegotiate2; -# 2403 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IHttpNegotiate2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IHttpNegotiate2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IHttpNegotiate2 * This); - - - ULONG ( __stdcall *Release )( - IHttpNegotiate2 * This); - - - HRESULT ( __stdcall *BeginningTransaction )( - IHttpNegotiate2 * This, - LPCWSTR szURL, - LPCWSTR szHeaders, - DWORD dwReserved, - LPWSTR *pszAdditionalHeaders); - - - HRESULT ( __stdcall *OnResponse )( - IHttpNegotiate2 * This, - DWORD dwResponseCode, - LPCWSTR szResponseHeaders, - LPCWSTR szRequestHeaders, - LPWSTR *pszAdditionalRequestHeaders); - - - HRESULT ( __stdcall *GetRootSecurityId )( - IHttpNegotiate2 * This, - BYTE *pbSecurityId, - DWORD *pcbSecurityId, - DWORD_PTR dwReserved); - - - } IHttpNegotiate2Vtbl; - - struct IHttpNegotiate2 - { - struct IHttpNegotiate2Vtbl *lpVtbl; - }; -# 2497 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0010_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0010_v0_0_s_ifspec; - - - - - - - -typedef IHttpNegotiate3 *LPHTTPNEGOTIATE3; - - -extern const IID IID_IHttpNegotiate3; -# 2526 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IHttpNegotiate3Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IHttpNegotiate3 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IHttpNegotiate3 * This); - - - ULONG ( __stdcall *Release )( - IHttpNegotiate3 * This); - - - HRESULT ( __stdcall *BeginningTransaction )( - IHttpNegotiate3 * This, - LPCWSTR szURL, - LPCWSTR szHeaders, - DWORD dwReserved, - LPWSTR *pszAdditionalHeaders); - - - HRESULT ( __stdcall *OnResponse )( - IHttpNegotiate3 * This, - DWORD dwResponseCode, - LPCWSTR szResponseHeaders, - LPCWSTR szRequestHeaders, - LPWSTR *pszAdditionalRequestHeaders); - - - HRESULT ( __stdcall *GetRootSecurityId )( - IHttpNegotiate3 * This, - BYTE *pbSecurityId, - DWORD *pcbSecurityId, - DWORD_PTR dwReserved); - - - HRESULT ( __stdcall *GetSerializedClientCertContext )( - IHttpNegotiate3 * This, - BYTE **ppbCert, - DWORD *pcbCert); - - - } IHttpNegotiate3Vtbl; - - struct IHttpNegotiate3 - { - struct IHttpNegotiate3Vtbl *lpVtbl; - }; -# 2630 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0011_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0011_v0_0_s_ifspec; - - - - - - - -typedef IWinInetFileStream *LPWININETFILESTREAM; - - -extern const IID IID_IWinInetFileStream; -# 2662 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IWinInetFileStreamVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IWinInetFileStream * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IWinInetFileStream * This); - - - ULONG ( __stdcall *Release )( - IWinInetFileStream * This); - - - HRESULT ( __stdcall *SetHandleForUnlock )( - IWinInetFileStream * This, - DWORD_PTR hWinInetLockHandle, - DWORD_PTR dwReserved); - - - HRESULT ( __stdcall *SetDeleteFile )( - IWinInetFileStream * This, - DWORD_PTR dwReserved); - - - } IWinInetFileStreamVtbl; - - struct IWinInetFileStream - { - struct IWinInetFileStreamVtbl *lpVtbl; - }; -# 2740 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0012_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0012_v0_0_s_ifspec; - - - - - - - -typedef IWindowForBindingUI *LPWINDOWFORBINDINGUI; - - -extern const IID IID_IWindowForBindingUI; -# 2769 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IWindowForBindingUIVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IWindowForBindingUI * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IWindowForBindingUI * This); - - - ULONG ( __stdcall *Release )( - IWindowForBindingUI * This); - - - HRESULT ( __stdcall *GetWindow )( - IWindowForBindingUI * This, - const GUID * const rguidReason, - HWND *phwnd); - - - } IWindowForBindingUIVtbl; - - struct IWindowForBindingUI - { - struct IWindowForBindingUIVtbl *lpVtbl; - }; -# 2839 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0013_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0013_v0_0_s_ifspec; - - - - - - - -typedef ICodeInstall *LPCODEINSTALL; - -typedef -enum __MIDL_ICodeInstall_0001 - { - CIP_DISK_FULL = 0, - CIP_ACCESS_DENIED = ( CIP_DISK_FULL + 1 ) , - CIP_NEWER_VERSION_EXISTS = ( CIP_ACCESS_DENIED + 1 ) , - CIP_OLDER_VERSION_EXISTS = ( CIP_NEWER_VERSION_EXISTS + 1 ) , - CIP_NAME_CONFLICT = ( CIP_OLDER_VERSION_EXISTS + 1 ) , - CIP_TRUST_VERIFICATION_COMPONENT_MISSING = ( CIP_NAME_CONFLICT + 1 ) , - CIP_EXE_SELF_REGISTERATION_TIMEOUT = ( CIP_TRUST_VERIFICATION_COMPONENT_MISSING + 1 ) , - CIP_UNSAFE_TO_ABORT = ( CIP_EXE_SELF_REGISTERATION_TIMEOUT + 1 ) , - CIP_NEED_REBOOT = ( CIP_UNSAFE_TO_ABORT + 1 ) , - CIP_NEED_REBOOT_UI_PERMISSION = ( CIP_NEED_REBOOT + 1 ) - } CIP_STATUS; - - -extern const IID IID_ICodeInstall; -# 2885 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct ICodeInstallVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ICodeInstall * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ICodeInstall * This); - - - ULONG ( __stdcall *Release )( - ICodeInstall * This); - - - HRESULT ( __stdcall *GetWindow )( - ICodeInstall * This, - const GUID * const rguidReason, - HWND *phwnd); - - - HRESULT ( __stdcall *OnCodeInstallProblem )( - ICodeInstall * This, - ULONG ulStatusCode, - LPCWSTR szDestination, - LPCWSTR szSource, - DWORD dwReserved); - - - } ICodeInstallVtbl; - - struct ICodeInstall - { - struct ICodeInstallVtbl *lpVtbl; - }; -# 2972 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0014_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0014_v0_0_s_ifspec; - - - - - - - -typedef -enum __MIDL_IUri_0001 - { - Uri_PROPERTY_ABSOLUTE_URI = 0, - Uri_PROPERTY_STRING_START = Uri_PROPERTY_ABSOLUTE_URI, - Uri_PROPERTY_AUTHORITY = 1, - Uri_PROPERTY_DISPLAY_URI = 2, - Uri_PROPERTY_DOMAIN = 3, - Uri_PROPERTY_EXTENSION = 4, - Uri_PROPERTY_FRAGMENT = 5, - Uri_PROPERTY_HOST = 6, - Uri_PROPERTY_PASSWORD = 7, - Uri_PROPERTY_PATH = 8, - Uri_PROPERTY_PATH_AND_QUERY = 9, - Uri_PROPERTY_QUERY = 10, - Uri_PROPERTY_RAW_URI = 11, - Uri_PROPERTY_SCHEME_NAME = 12, - Uri_PROPERTY_USER_INFO = 13, - Uri_PROPERTY_USER_NAME = 14, - Uri_PROPERTY_STRING_LAST = Uri_PROPERTY_USER_NAME, - Uri_PROPERTY_HOST_TYPE = 15, - Uri_PROPERTY_DWORD_START = Uri_PROPERTY_HOST_TYPE, - Uri_PROPERTY_PORT = 16, - Uri_PROPERTY_SCHEME = 17, - Uri_PROPERTY_ZONE = 18, - Uri_PROPERTY_DWORD_LAST = Uri_PROPERTY_ZONE - } Uri_PROPERTY; - -typedef -enum __MIDL_IUri_0002 - { - Uri_HOST_UNKNOWN = 0, - Uri_HOST_DNS = ( Uri_HOST_UNKNOWN + 1 ) , - Uri_HOST_IPV4 = ( Uri_HOST_DNS + 1 ) , - Uri_HOST_IPV6 = ( Uri_HOST_IPV4 + 1 ) , - Uri_HOST_IDN = ( Uri_HOST_IPV6 + 1 ) - } Uri_HOST_TYPE; - - -extern const IID IID_IUri; -# 3116 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IUriVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IUri * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IUri * This); - - - ULONG ( __stdcall *Release )( - IUri * This); - - - HRESULT ( __stdcall *GetPropertyBSTR )( - IUri * This, - Uri_PROPERTY uriProp, - BSTR *pbstrProperty, - DWORD dwFlags); - - - HRESULT ( __stdcall *GetPropertyLength )( - IUri * This, - Uri_PROPERTY uriProp, - DWORD *pcchProperty, - DWORD dwFlags); - - - HRESULT ( __stdcall *GetPropertyDWORD )( - IUri * This, - Uri_PROPERTY uriProp, - DWORD *pdwProperty, - DWORD dwFlags); - - - HRESULT ( __stdcall *HasProperty )( - IUri * This, - Uri_PROPERTY uriProp, - BOOL *pfHasProperty); - - - HRESULT ( __stdcall *GetAbsoluteUri )( - IUri * This, - BSTR *pbstrAbsoluteUri); - - - HRESULT ( __stdcall *GetAuthority )( - IUri * This, - BSTR *pbstrAuthority); - - - HRESULT ( __stdcall *GetDisplayUri )( - IUri * This, - BSTR *pbstrDisplayString); - - - HRESULT ( __stdcall *GetDomain )( - IUri * This, - BSTR *pbstrDomain); - - - HRESULT ( __stdcall *GetExtension )( - IUri * This, - BSTR *pbstrExtension); - - - HRESULT ( __stdcall *GetFragment )( - IUri * This, - BSTR *pbstrFragment); - - - HRESULT ( __stdcall *GetHost )( - IUri * This, - BSTR *pbstrHost); - - - HRESULT ( __stdcall *GetPassword )( - IUri * This, - BSTR *pbstrPassword); - - - HRESULT ( __stdcall *GetPath )( - IUri * This, - BSTR *pbstrPath); - - - HRESULT ( __stdcall *GetPathAndQuery )( - IUri * This, - BSTR *pbstrPathAndQuery); - - - HRESULT ( __stdcall *GetQuery )( - IUri * This, - BSTR *pbstrQuery); - - - HRESULT ( __stdcall *GetRawUri )( - IUri * This, - BSTR *pbstrRawUri); - - - HRESULT ( __stdcall *GetSchemeName )( - IUri * This, - BSTR *pbstrSchemeName); - - - HRESULT ( __stdcall *GetUserInfo )( - IUri * This, - BSTR *pbstrUserInfo); - - - HRESULT ( __stdcall *GetUserNameA )( - IUri * This, - BSTR *pbstrUserName); - - - HRESULT ( __stdcall *GetHostType )( - IUri * This, - DWORD *pdwHostType); - - - HRESULT ( __stdcall *GetPort )( - IUri * This, - DWORD *pdwPort); - - - HRESULT ( __stdcall *GetScheme )( - IUri * This, - DWORD *pdwScheme); - - - HRESULT ( __stdcall *GetZone )( - IUri * This, - DWORD *pdwZone); - - - HRESULT ( __stdcall *GetProperties )( - IUri * This, - LPDWORD pdwFlags); - - - HRESULT ( __stdcall *IsEqual )( - IUri * This, - IUri *pUri, - BOOL *pfEqual); - - - } IUriVtbl; - - struct IUri - { - struct IUriVtbl *lpVtbl; - }; -# 3380 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern HRESULT __stdcall CreateUri( LPCWSTR pwzURI, - DWORD dwFlags, - DWORD_PTR dwReserved, - IUri** ppURI); - -extern HRESULT __stdcall CreateUriWithFragment( - LPCWSTR pwzURI, - LPCWSTR pwzFragment, - DWORD dwFlags, - DWORD_PTR dwReserved, - IUri** ppURI); - - - - - - -extern HRESULT __stdcall CreateUriFromMultiByteString( - LPCSTR pszANSIInputUri, - DWORD dwEncodingFlags, - DWORD dwCodePage, - DWORD dwCreateFlags, - DWORD_PTR dwReserved, - IUri** ppUri); -# 3480 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0015_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0015_v0_0_s_ifspec; -# 3490 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IUriContainer; -# 3506 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IUriContainerVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IUriContainer * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IUriContainer * This); - - - ULONG ( __stdcall *Release )( - IUriContainer * This); - - - HRESULT ( __stdcall *GetIUri )( - IUriContainer * This, - IUri **ppIUri); - - - } IUriContainerVtbl; - - struct IUriContainer - { - struct IUriContainerVtbl *lpVtbl; - }; -# 3574 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IUriBuilder; -# 3703 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IUriBuilderVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IUriBuilder * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IUriBuilder * This); - - - ULONG ( __stdcall *Release )( - IUriBuilder * This); - - - HRESULT ( __stdcall *CreateUriSimple )( - IUriBuilder * This, - DWORD dwAllowEncodingPropertyMask, - DWORD_PTR dwReserved, - - IUri **ppIUri); - - - HRESULT ( __stdcall *CreateUri )( - IUriBuilder * This, - DWORD dwCreateFlags, - DWORD dwAllowEncodingPropertyMask, - DWORD_PTR dwReserved, - - IUri **ppIUri); - - - HRESULT ( __stdcall *CreateUriWithFlags )( - IUriBuilder * This, - DWORD dwCreateFlags, - DWORD dwUriBuilderFlags, - DWORD dwAllowEncodingPropertyMask, - DWORD_PTR dwReserved, - - IUri **ppIUri); - - - HRESULT ( __stdcall *GetIUri )( - IUriBuilder * This, - - IUri **ppIUri); - - - HRESULT ( __stdcall *SetIUri )( - IUriBuilder * This, - - IUri *pIUri); - - - HRESULT ( __stdcall *GetFragment )( - IUriBuilder * This, - - DWORD *pcchFragment, - - LPCWSTR *ppwzFragment); - - - HRESULT ( __stdcall *GetHost )( - IUriBuilder * This, - - DWORD *pcchHost, - - LPCWSTR *ppwzHost); - - - HRESULT ( __stdcall *GetPassword )( - IUriBuilder * This, - - DWORD *pcchPassword, - - LPCWSTR *ppwzPassword); - - - HRESULT ( __stdcall *GetPath )( - IUriBuilder * This, - - DWORD *pcchPath, - - LPCWSTR *ppwzPath); - - - HRESULT ( __stdcall *GetPort )( - IUriBuilder * This, - - BOOL *pfHasPort, - - DWORD *pdwPort); - - - HRESULT ( __stdcall *GetQuery )( - IUriBuilder * This, - - DWORD *pcchQuery, - - LPCWSTR *ppwzQuery); - - - HRESULT ( __stdcall *GetSchemeName )( - IUriBuilder * This, - - DWORD *pcchSchemeName, - - LPCWSTR *ppwzSchemeName); - - - HRESULT ( __stdcall *GetUserNameA )( - IUriBuilder * This, - - DWORD *pcchUserName, - - LPCWSTR *ppwzUserName); - - - HRESULT ( __stdcall *SetFragment )( - IUriBuilder * This, - - LPCWSTR pwzNewValue); - - - HRESULT ( __stdcall *SetHost )( - IUriBuilder * This, - - LPCWSTR pwzNewValue); - - - HRESULT ( __stdcall *SetPassword )( - IUriBuilder * This, - - LPCWSTR pwzNewValue); - - - HRESULT ( __stdcall *SetPath )( - IUriBuilder * This, - - LPCWSTR pwzNewValue); - - - HRESULT ( __stdcall *SetPortA )( - IUriBuilder * This, - BOOL fHasPort, - DWORD dwNewValue); - - - HRESULT ( __stdcall *SetQuery )( - IUriBuilder * This, - - LPCWSTR pwzNewValue); - - - HRESULT ( __stdcall *SetSchemeName )( - IUriBuilder * This, - - LPCWSTR pwzNewValue); - - - HRESULT ( __stdcall *SetUserName )( - IUriBuilder * This, - - LPCWSTR pwzNewValue); - - - HRESULT ( __stdcall *RemoveProperties )( - IUriBuilder * This, - DWORD dwPropertyMask); - - - HRESULT ( __stdcall *HasBeenModified )( - IUriBuilder * This, - - BOOL *pfModified); - - - } IUriBuilderVtbl; - - struct IUriBuilder - { - struct IUriBuilderVtbl *lpVtbl; - }; -# 3994 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IUriBuilderFactory; -# 4023 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IUriBuilderFactoryVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IUriBuilderFactory * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IUriBuilderFactory * This); - - - ULONG ( __stdcall *Release )( - IUriBuilderFactory * This); - - - HRESULT ( __stdcall *CreateIUriBuilder )( - IUriBuilderFactory * This, - - DWORD dwFlags, - - DWORD_PTR dwReserved, - - IUriBuilder **ppIUriBuilder); - - - HRESULT ( __stdcall *CreateInitializedIUriBuilder )( - IUriBuilderFactory * This, - - DWORD dwFlags, - - DWORD_PTR dwReserved, - - IUriBuilder **ppIUriBuilder); - - - } IUriBuilderFactoryVtbl; - - struct IUriBuilderFactory - { - struct IUriBuilderFactoryVtbl *lpVtbl; - }; -# 4105 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern HRESULT __stdcall CreateIUriBuilder( - IUri *pIUri, - DWORD dwFlags, - DWORD_PTR dwReserved, - IUriBuilder **ppIUriBuilder - ); -# 4120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0018_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0018_v0_0_s_ifspec; - - - - - - - -typedef IWinInetInfo *LPWININETINFO; - - -extern const IID IID_IWinInetInfo; -# 4150 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IWinInetInfoVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IWinInetInfo * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IWinInetInfo * This); - - - ULONG ( __stdcall *Release )( - IWinInetInfo * This); - - - HRESULT ( __stdcall *QueryOption )( - IWinInetInfo * This, - DWORD dwOption, - LPVOID pBuffer, - DWORD *pcbBuf); - - - } IWinInetInfoVtbl; - - struct IWinInetInfo - { - struct IWinInetInfoVtbl *lpVtbl; - }; -# 4209 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - HRESULT __stdcall IWinInetInfo_RemoteQueryOption_Proxy( - IWinInetInfo * This, - DWORD dwOption, - BYTE *pBuffer, - DWORD *pcbBuf); - - -void __stdcall IWinInetInfo_RemoteQueryOption_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 4236 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0019_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0019_v0_0_s_ifspec; - - - - - - - -typedef IHttpSecurity *LPHTTPSECURITY; - - -extern const IID IID_IHttpSecurity; -# 4264 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IHttpSecurityVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IHttpSecurity * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IHttpSecurity * This); - - - ULONG ( __stdcall *Release )( - IHttpSecurity * This); - - - HRESULT ( __stdcall *GetWindow )( - IHttpSecurity * This, - const GUID * const rguidReason, - HWND *phwnd); - - - HRESULT ( __stdcall *OnSecurityProblem )( - IHttpSecurity * This, - DWORD dwProblem); - - - } IHttpSecurityVtbl; - - struct IHttpSecurity - { - struct IHttpSecurityVtbl *lpVtbl; - }; -# 4343 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0020_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0020_v0_0_s_ifspec; - - - - - - - -typedef IWinInetHttpInfo *LPWININETHTTPINFO; - - -extern const IID IID_IWinInetHttpInfo; -# 4375 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IWinInetHttpInfoVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IWinInetHttpInfo * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IWinInetHttpInfo * This); - - - ULONG ( __stdcall *Release )( - IWinInetHttpInfo * This); - - - HRESULT ( __stdcall *QueryOption )( - IWinInetHttpInfo * This, - DWORD dwOption, - LPVOID pBuffer, - DWORD *pcbBuf); - - - HRESULT ( __stdcall *QueryInfo )( - IWinInetHttpInfo * This, - DWORD dwOption, - LPVOID pBuffer, - DWORD *pcbBuf, - DWORD *pdwFlags, - DWORD *pdwReserved); - - - } IWinInetHttpInfoVtbl; - - struct IWinInetHttpInfo - { - struct IWinInetHttpInfoVtbl *lpVtbl; - }; -# 4447 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - HRESULT __stdcall IWinInetHttpInfo_RemoteQueryInfo_Proxy( - IWinInetHttpInfo * This, - DWORD dwOption, - BYTE *pBuffer, - DWORD *pcbBuf, - DWORD *pdwFlags, - DWORD *pdwReserved); - - -void __stdcall IWinInetHttpInfo_RemoteQueryInfo_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 4475 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0021_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0021_v0_0_s_ifspec; -# 4485 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IWinInetHttpTimeouts; -# 4506 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IWinInetHttpTimeoutsVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IWinInetHttpTimeouts * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IWinInetHttpTimeouts * This); - - - ULONG ( __stdcall *Release )( - IWinInetHttpTimeouts * This); - - - HRESULT ( __stdcall *GetRequestTimeouts )( - IWinInetHttpTimeouts * This, - - DWORD *pdwConnectTimeout, - - DWORD *pdwSendTimeout, - - DWORD *pdwReceiveTimeout); - - - } IWinInetHttpTimeoutsVtbl; - - struct IWinInetHttpTimeouts - { - struct IWinInetHttpTimeoutsVtbl *lpVtbl; - }; -# 4581 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0022_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0022_v0_0_s_ifspec; - - - - - - - -typedef IWinInetCacheHints *LPWININETCACHEHINTS; - - -extern const IID IID_IWinInetCacheHints; -# 4613 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IWinInetCacheHintsVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IWinInetCacheHints * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IWinInetCacheHints * This); - - - ULONG ( __stdcall *Release )( - IWinInetCacheHints * This); - - - HRESULT ( __stdcall *SetCacheExtension )( - IWinInetCacheHints * This, - LPCWSTR pwzExt, - LPVOID pszCacheFile, - DWORD *pcbCacheFile, - DWORD *pdwWinInetError, - DWORD *pdwReserved); - - - } IWinInetCacheHintsVtbl; - - struct IWinInetCacheHints - { - struct IWinInetCacheHintsVtbl *lpVtbl; - }; -# 4688 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0023_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0023_v0_0_s_ifspec; - - - - - - - -typedef IWinInetCacheHints2 *LPWININETCACHEHINTS2; - - -extern const IID IID_IWinInetCacheHints2; -# 4721 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IWinInetCacheHints2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IWinInetCacheHints2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IWinInetCacheHints2 * This); - - - ULONG ( __stdcall *Release )( - IWinInetCacheHints2 * This); - - - HRESULT ( __stdcall *SetCacheExtension )( - IWinInetCacheHints2 * This, - LPCWSTR pwzExt, - LPVOID pszCacheFile, - DWORD *pcbCacheFile, - DWORD *pdwWinInetError, - DWORD *pdwReserved); - - - HRESULT ( __stdcall *SetCacheExtension2 )( - IWinInetCacheHints2 * This, - LPCWSTR pwzExt, - - WCHAR *pwzCacheFile, - DWORD *pcchCacheFile, - DWORD *pdwWinInetError, - DWORD *pdwReserved); - - - } IWinInetCacheHints2Vtbl; - - struct IWinInetCacheHints2 - { - struct IWinInetCacheHints2Vtbl *lpVtbl; - }; -# 4809 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const GUID SID_BindHost; - - -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0024_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0024_v0_0_s_ifspec; - - - - - - - -typedef IBindHost *LPBINDHOST; - - -extern const IID IID_IBindHost; -# 4857 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IBindHostVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IBindHost * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IBindHost * This); - - - ULONG ( __stdcall *Release )( - IBindHost * This); - - - HRESULT ( __stdcall *CreateMoniker )( - IBindHost * This, - LPOLESTR szName, - IBindCtx *pBC, - IMoniker **ppmk, - DWORD dwReserved); - - - HRESULT ( __stdcall *MonikerBindToStorage )( - IBindHost * This, - IMoniker *pMk, - IBindCtx *pBC, - IBindStatusCallback *pBSC, - const IID * const riid, - void **ppvObj); - - - HRESULT ( __stdcall *MonikerBindToObject )( - IBindHost * This, - IMoniker *pMk, - IBindCtx *pBC, - IBindStatusCallback *pBSC, - const IID * const riid, - void **ppvObj); - - - } IBindHostVtbl; - - struct IBindHost - { - struct IBindHostVtbl *lpVtbl; - }; -# 4941 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - HRESULT __stdcall IBindHost_RemoteMonikerBindToStorage_Proxy( - IBindHost * This, - IMoniker *pMk, - IBindCtx *pBC, - IBindStatusCallback *pBSC, - const IID * const riid, - IUnknown **ppvObj); - - -void __stdcall IBindHost_RemoteMonikerBindToStorage_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); - - - HRESULT __stdcall IBindHost_RemoteMonikerBindToObject_Proxy( - IBindHost * This, - IMoniker *pMk, - IBindCtx *pBC, - IBindStatusCallback *pBSC, - const IID * const riid, - IUnknown **ppvObj); - - -void __stdcall IBindHost_RemoteMonikerBindToObject_Stub( - IRpcStubBuffer *This, - IRpcChannelBuffer *_pRpcChannelBuffer, - PRPC_MESSAGE _pRpcMessage, - DWORD *_pdwStubPhase); -# 4989 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -struct IBindStatusCallback; -extern HRESULT __stdcall HlinkSimpleNavigateToString( - LPCWSTR szTarget, - LPCWSTR szLocation, - LPCWSTR szTargetFrameName, - IUnknown *pUnk, - IBindCtx *pbc, - IBindStatusCallback *, - DWORD grfHLNF, - DWORD dwReserved -); - -extern HRESULT __stdcall HlinkSimpleNavigateToMoniker( - IMoniker *pmkTarget, - LPCWSTR szLocation, - LPCWSTR szTargetFrameName, - IUnknown *pUnk, - IBindCtx *pbc, - IBindStatusCallback *, - DWORD grfHLNF, - DWORD dwReserved -); - -extern HRESULT __stdcall URLOpenStreamA( LPUNKNOWN, LPCSTR,DWORD, LPBINDSTATUSCALLBACK); -extern HRESULT __stdcall URLOpenStreamW( LPUNKNOWN, LPCWSTR,DWORD, LPBINDSTATUSCALLBACK); -extern HRESULT __stdcall URLOpenPullStreamA( LPUNKNOWN, LPCSTR,DWORD, LPBINDSTATUSCALLBACK); -extern HRESULT __stdcall URLOpenPullStreamW( LPUNKNOWN, LPCWSTR,DWORD, LPBINDSTATUSCALLBACK); -extern HRESULT __stdcall URLDownloadToFileA( LPUNKNOWN, LPCSTR, LPCSTR,DWORD, LPBINDSTATUSCALLBACK); -extern HRESULT __stdcall URLDownloadToFileW( LPUNKNOWN, LPCWSTR, LPCWSTR,DWORD, LPBINDSTATUSCALLBACK); -extern HRESULT __stdcall URLDownloadToCacheFileA( LPUNKNOWN, LPCSTR, LPSTR, DWORD cchFileName, DWORD, LPBINDSTATUSCALLBACK); -extern HRESULT __stdcall URLDownloadToCacheFileW( LPUNKNOWN, LPCWSTR, LPWSTR, DWORD cchFileName, DWORD, LPBINDSTATUSCALLBACK); -extern HRESULT __stdcall URLOpenBlockingStreamA( LPUNKNOWN, LPCSTR, LPSTREAM*,DWORD, LPBINDSTATUSCALLBACK); -extern HRESULT __stdcall URLOpenBlockingStreamW( LPUNKNOWN, LPCWSTR, LPSTREAM*,DWORD, LPBINDSTATUSCALLBACK); -# 5038 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern HRESULT __stdcall HlinkGoBack( IUnknown *pUnk); -extern HRESULT __stdcall HlinkGoForward( IUnknown *pUnk); -extern HRESULT __stdcall HlinkNavigateString( IUnknown *pUnk, LPCWSTR szTarget); -extern HRESULT __stdcall HlinkNavigateMoniker( IUnknown *pUnk, IMoniker *pmkTarget); -# 5058 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0025_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0025_v0_0_s_ifspec; - - - - - - - -typedef IInternet *LPIINTERNET; - - -extern const IID IID_IInternet; -# 5083 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternet * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternet * This); - - - ULONG ( __stdcall *Release )( - IInternet * This); - - - } IInternetVtbl; - - struct IInternet - { - struct IInternetVtbl *lpVtbl; - }; -# 5144 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0026_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0026_v0_0_s_ifspec; - - - - - - - -typedef IInternetBindInfo *LPIINTERNETBINDINFO; - -typedef -enum tagBINDSTRING - { - BINDSTRING_HEADERS = 1, - BINDSTRING_ACCEPT_MIMES = ( BINDSTRING_HEADERS + 1 ) , - BINDSTRING_EXTRA_URL = ( BINDSTRING_ACCEPT_MIMES + 1 ) , - BINDSTRING_LANGUAGE = ( BINDSTRING_EXTRA_URL + 1 ) , - BINDSTRING_USERNAME = ( BINDSTRING_LANGUAGE + 1 ) , - BINDSTRING_PASSWORD = ( BINDSTRING_USERNAME + 1 ) , - BINDSTRING_UA_PIXELS = ( BINDSTRING_PASSWORD + 1 ) , - BINDSTRING_UA_COLOR = ( BINDSTRING_UA_PIXELS + 1 ) , - BINDSTRING_OS = ( BINDSTRING_UA_COLOR + 1 ) , - BINDSTRING_USER_AGENT = ( BINDSTRING_OS + 1 ) , - BINDSTRING_ACCEPT_ENCODINGS = ( BINDSTRING_USER_AGENT + 1 ) , - BINDSTRING_POST_COOKIE = ( BINDSTRING_ACCEPT_ENCODINGS + 1 ) , - BINDSTRING_POST_DATA_MIME = ( BINDSTRING_POST_COOKIE + 1 ) , - BINDSTRING_URL = ( BINDSTRING_POST_DATA_MIME + 1 ) , - BINDSTRING_IID = ( BINDSTRING_URL + 1 ) , - BINDSTRING_FLAG_BIND_TO_OBJECT = ( BINDSTRING_IID + 1 ) , - BINDSTRING_PTR_BIND_CONTEXT = ( BINDSTRING_FLAG_BIND_TO_OBJECT + 1 ) , - BINDSTRING_XDR_ORIGIN = ( BINDSTRING_PTR_BIND_CONTEXT + 1 ) , - BINDSTRING_DOWNLOADPATH = ( BINDSTRING_XDR_ORIGIN + 1 ) , - BINDSTRING_ROOTDOC_URL = ( BINDSTRING_DOWNLOADPATH + 1 ) , - BINDSTRING_INITIAL_FILENAME = ( BINDSTRING_ROOTDOC_URL + 1 ) , - BINDSTRING_PROXY_USERNAME = ( BINDSTRING_INITIAL_FILENAME + 1 ) , - BINDSTRING_PROXY_PASSWORD = ( BINDSTRING_PROXY_USERNAME + 1 ) , - BINDSTRING_ENTERPRISE_ID = ( BINDSTRING_PROXY_PASSWORD + 1 ) , - BINDSTRING_DOC_URL = ( BINDSTRING_ENTERPRISE_ID + 1 ) , - BINDSTRING_SAMESITE_COOKIE_LEVEL = ( BINDSTRING_DOC_URL + 1 ) - } BINDSTRING; - - -extern const IID IID_IInternetBindInfo; -# 5211 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetBindInfoVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetBindInfo * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetBindInfo * This); - - - ULONG ( __stdcall *Release )( - IInternetBindInfo * This); - - - HRESULT ( __stdcall *GetBindInfo )( - IInternetBindInfo * This, - DWORD *grfBINDF, - BINDINFO *pbindinfo); - - - HRESULT ( __stdcall *GetBindString )( - IInternetBindInfo * This, - ULONG ulStringType, - - LPOLESTR *ppwzStr, - ULONG cEl, - ULONG *pcElFetched); - - - } IInternetBindInfoVtbl; - - struct IInternetBindInfo - { - struct IInternetBindInfoVtbl *lpVtbl; - }; -# 5293 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0027_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0027_v0_0_s_ifspec; - - - - - - - -typedef IInternetBindInfoEx *LPIINTERNETBINDINFOEX; - - -extern const IID IID_IInternetBindInfoEx; -# 5324 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetBindInfoExVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetBindInfoEx * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetBindInfoEx * This); - - - ULONG ( __stdcall *Release )( - IInternetBindInfoEx * This); - - - HRESULT ( __stdcall *GetBindInfo )( - IInternetBindInfoEx * This, - DWORD *grfBINDF, - BINDINFO *pbindinfo); - - - HRESULT ( __stdcall *GetBindString )( - IInternetBindInfoEx * This, - ULONG ulStringType, - - LPOLESTR *ppwzStr, - ULONG cEl, - ULONG *pcElFetched); - - - HRESULT ( __stdcall *GetBindInfoEx )( - IInternetBindInfoEx * This, - DWORD *grfBINDF, - BINDINFO *pbindinfo, - DWORD *grfBINDF2, - DWORD *pdwReserved); - - - } IInternetBindInfoExVtbl; - - struct IInternetBindInfoEx - { - struct IInternetBindInfoExVtbl *lpVtbl; - }; -# 5418 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0028_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0028_v0_0_s_ifspec; - - - - - - - -typedef IInternetProtocolRoot *LPIINTERNETPROTOCOLROOT; - -typedef -enum _tagPI_FLAGS - { - PI_PARSE_URL = 0x1, - PI_FILTER_MODE = 0x2, - PI_FORCE_ASYNC = 0x4, - PI_USE_WORKERTHREAD = 0x8, - PI_MIMEVERIFICATION = 0x10, - PI_CLSIDLOOKUP = 0x20, - PI_DATAPROGRESS = 0x40, - PI_SYNCHRONOUS = 0x80, - PI_APARTMENTTHREADED = 0x100, - PI_CLASSINSTALL = 0x200, - PI_PASSONBINDCTX = 0x2000, - PI_NOMIMEHANDLER = 0x8000, - PI_LOADAPPDIRECT = 0x4000, - PD_FORCE_SWITCH = 0x10000, - PI_PREFERDEFAULTHANDLER = 0x20000 - } PI_FLAGS; - -typedef struct _tagPROTOCOLDATA - { - DWORD grfFlags; - DWORD dwState; - LPVOID pData; - ULONG cbData; - } PROTOCOLDATA; - -typedef struct _tagStartParam - { - IID iid; - IBindCtx *pIBindCtx; - IUnknown *pItf; - } StartParam; - - -extern const IID IID_IInternetProtocolRoot; -# 5499 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetProtocolRootVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetProtocolRoot * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetProtocolRoot * This); - - - ULONG ( __stdcall *Release )( - IInternetProtocolRoot * This); - - - HRESULT ( __stdcall *Start )( - IInternetProtocolRoot * This, - LPCWSTR szUrl, - IInternetProtocolSink *pOIProtSink, - IInternetBindInfo *pOIBindInfo, - DWORD grfPI, - HANDLE_PTR dwReserved); - - - HRESULT ( __stdcall *Continue )( - IInternetProtocolRoot * This, - PROTOCOLDATA *pProtocolData); - - - HRESULT ( __stdcall *Abort )( - IInternetProtocolRoot * This, - HRESULT hrReason, - DWORD dwOptions); - - - HRESULT ( __stdcall *Terminate )( - IInternetProtocolRoot * This, - DWORD dwOptions); - - - HRESULT ( __stdcall *Suspend )( - IInternetProtocolRoot * This); - - - HRESULT ( __stdcall *Resume )( - IInternetProtocolRoot * This); - - - } IInternetProtocolRootVtbl; - - struct IInternetProtocolRoot - { - struct IInternetProtocolRootVtbl *lpVtbl; - }; -# 5611 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0029_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0029_v0_0_s_ifspec; - - - - - - - -typedef IInternetProtocol *LPIINTERNETPROTOCOL; - - -extern const IID IID_IInternetProtocol; -# 5651 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetProtocolVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetProtocol * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetProtocol * This); - - - ULONG ( __stdcall *Release )( - IInternetProtocol * This); - - - HRESULT ( __stdcall *Start )( - IInternetProtocol * This, - LPCWSTR szUrl, - IInternetProtocolSink *pOIProtSink, - IInternetBindInfo *pOIBindInfo, - DWORD grfPI, - HANDLE_PTR dwReserved); - - - HRESULT ( __stdcall *Continue )( - IInternetProtocol * This, - PROTOCOLDATA *pProtocolData); - - - HRESULT ( __stdcall *Abort )( - IInternetProtocol * This, - HRESULT hrReason, - DWORD dwOptions); - - - HRESULT ( __stdcall *Terminate )( - IInternetProtocol * This, - DWORD dwOptions); - - - HRESULT ( __stdcall *Suspend )( - IInternetProtocol * This); - - - HRESULT ( __stdcall *Resume )( - IInternetProtocol * This); - - - HRESULT ( __stdcall *Read )( - IInternetProtocol * This, - void *pv, - ULONG cb, - ULONG *pcbRead); - - - HRESULT ( __stdcall *Seek )( - IInternetProtocol * This, - LARGE_INTEGER dlibMove, - DWORD dwOrigin, - ULARGE_INTEGER *plibNewPosition); - - - HRESULT ( __stdcall *LockRequest )( - IInternetProtocol * This, - DWORD dwOptions); - - - HRESULT ( __stdcall *UnlockRequest )( - IInternetProtocol * This); - - - } IInternetProtocolVtbl; - - struct IInternetProtocol - { - struct IInternetProtocolVtbl *lpVtbl; - }; -# 5800 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0030_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0030_v0_0_s_ifspec; -# 5810 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IInternetProtocolEx; -# 5830 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetProtocolExVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetProtocolEx * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetProtocolEx * This); - - - ULONG ( __stdcall *Release )( - IInternetProtocolEx * This); - - - HRESULT ( __stdcall *Start )( - IInternetProtocolEx * This, - LPCWSTR szUrl, - IInternetProtocolSink *pOIProtSink, - IInternetBindInfo *pOIBindInfo, - DWORD grfPI, - HANDLE_PTR dwReserved); - - - HRESULT ( __stdcall *Continue )( - IInternetProtocolEx * This, - PROTOCOLDATA *pProtocolData); - - - HRESULT ( __stdcall *Abort )( - IInternetProtocolEx * This, - HRESULT hrReason, - DWORD dwOptions); - - - HRESULT ( __stdcall *Terminate )( - IInternetProtocolEx * This, - DWORD dwOptions); - - - HRESULT ( __stdcall *Suspend )( - IInternetProtocolEx * This); - - - HRESULT ( __stdcall *Resume )( - IInternetProtocolEx * This); - - - HRESULT ( __stdcall *Read )( - IInternetProtocolEx * This, - void *pv, - ULONG cb, - ULONG *pcbRead); - - - HRESULT ( __stdcall *Seek )( - IInternetProtocolEx * This, - LARGE_INTEGER dlibMove, - DWORD dwOrigin, - ULARGE_INTEGER *plibNewPosition); - - - HRESULT ( __stdcall *LockRequest )( - IInternetProtocolEx * This, - DWORD dwOptions); - - - HRESULT ( __stdcall *UnlockRequest )( - IInternetProtocolEx * This); - - - HRESULT ( __stdcall *StartEx )( - IInternetProtocolEx * This, - IUri *pUri, - IInternetProtocolSink *pOIProtSink, - IInternetBindInfo *pOIBindInfo, - DWORD grfPI, - HANDLE_PTR dwReserved); - - - } IInternetProtocolExVtbl; - - struct IInternetProtocolEx - { - struct IInternetProtocolExVtbl *lpVtbl; - }; -# 5992 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0031_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0031_v0_0_s_ifspec; - - - - - - - -typedef IInternetProtocolSink *LPIINTERNETPROTOCOLSINK; - - -extern const IID IID_IInternetProtocolSink; -# 6034 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetProtocolSinkVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetProtocolSink * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetProtocolSink * This); - - - ULONG ( __stdcall *Release )( - IInternetProtocolSink * This); - - - HRESULT ( __stdcall *Switch )( - IInternetProtocolSink * This, - PROTOCOLDATA *pProtocolData); - - - HRESULT ( __stdcall *ReportProgress )( - IInternetProtocolSink * This, - ULONG ulStatusCode, - LPCWSTR szStatusText); - - - HRESULT ( __stdcall *ReportData )( - IInternetProtocolSink * This, - DWORD grfBSCF, - ULONG ulProgress, - ULONG ulProgressMax); - - - HRESULT ( __stdcall *ReportResult )( - IInternetProtocolSink * This, - HRESULT hrResult, - DWORD dwError, - LPCWSTR szResult); - - - } IInternetProtocolSinkVtbl; - - struct IInternetProtocolSink - { - struct IInternetProtocolSinkVtbl *lpVtbl; - }; -# 6132 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0032_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0032_v0_0_s_ifspec; - - - - - - - -typedef IInternetProtocolSinkStackable *LPIINTERNETPROTOCOLSINKStackable; - - -extern const IID IID_IInternetProtocolSinkStackable; -# 6164 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetProtocolSinkStackableVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetProtocolSinkStackable * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetProtocolSinkStackable * This); - - - ULONG ( __stdcall *Release )( - IInternetProtocolSinkStackable * This); - - - HRESULT ( __stdcall *SwitchSink )( - IInternetProtocolSinkStackable * This, - IInternetProtocolSink *pOIProtSink); - - - HRESULT ( __stdcall *CommitSwitch )( - IInternetProtocolSinkStackable * This); - - - HRESULT ( __stdcall *RollbackSwitch )( - IInternetProtocolSinkStackable * This); - - - } IInternetProtocolSinkStackableVtbl; - - struct IInternetProtocolSinkStackable - { - struct IInternetProtocolSinkStackableVtbl *lpVtbl; - }; -# 6247 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0033_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0033_v0_0_s_ifspec; - - - - - - - -typedef IInternetSession *LPIINTERNETSESSION; - -typedef -enum _tagOIBDG_FLAGS - { - OIBDG_APARTMENTTHREADED = 0x100, - OIBDG_DATAONLY = 0x1000 - } OIBDG_FLAGS; - - -extern const IID IID_IInternetSession; -# 6320 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetSessionVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetSession * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetSession * This); - - - ULONG ( __stdcall *Release )( - IInternetSession * This); - - - HRESULT ( __stdcall *RegisterNameSpace )( - IInternetSession * This, - IClassFactory *pCF, - const IID * const rclsid, - LPCWSTR pwzProtocol, - ULONG cPatterns, - const LPCWSTR *ppwzPatterns, - DWORD dwReserved); - - - HRESULT ( __stdcall *UnregisterNameSpace )( - IInternetSession * This, - IClassFactory *pCF, - LPCWSTR pszProtocol); - - - HRESULT ( __stdcall *RegisterMimeFilter )( - IInternetSession * This, - IClassFactory *pCF, - const IID * const rclsid, - LPCWSTR pwzType); - - - HRESULT ( __stdcall *UnregisterMimeFilter )( - IInternetSession * This, - IClassFactory *pCF, - LPCWSTR pwzType); - - - HRESULT ( __stdcall *CreateBinding )( - IInternetSession * This, - LPBC pBC, - LPCWSTR szUrl, - IUnknown *pUnkOuter, - IUnknown **ppUnk, - IInternetProtocol **ppOInetProt, - DWORD dwOption); - - - HRESULT ( __stdcall *SetSessionOption )( - IInternetSession * This, - DWORD dwOption, - LPVOID pBuffer, - DWORD dwBufferLength, - DWORD dwReserved); - - - HRESULT ( __stdcall *GetSessionOption )( - IInternetSession * This, - DWORD dwOption, - LPVOID pBuffer, - DWORD *pdwBufferLength, - DWORD dwReserved); - - - } IInternetSessionVtbl; - - struct IInternetSession - { - struct IInternetSessionVtbl *lpVtbl; - }; -# 6457 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0034_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0034_v0_0_s_ifspec; - - - - - - - -typedef IInternetThreadSwitch *LPIINTERNETTHREADSWITCH; - - -extern const IID IID_IInternetThreadSwitch; -# 6486 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetThreadSwitchVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetThreadSwitch * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetThreadSwitch * This); - - - ULONG ( __stdcall *Release )( - IInternetThreadSwitch * This); - - - HRESULT ( __stdcall *Prepare )( - IInternetThreadSwitch * This); - - - HRESULT ( __stdcall *Continue )( - IInternetThreadSwitch * This); - - - } IInternetThreadSwitchVtbl; - - struct IInternetThreadSwitch - { - struct IInternetThreadSwitchVtbl *lpVtbl; - }; -# 6561 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0035_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0035_v0_0_s_ifspec; - - - - - - - -typedef IInternetPriority *LPIINTERNETPRIORITY; - - -extern const IID IID_IInternetPriority; -# 6592 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetPriorityVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetPriority * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetPriority * This); - - - ULONG ( __stdcall *Release )( - IInternetPriority * This); - - - HRESULT ( __stdcall *SetPriority )( - IInternetPriority * This, - LONG nPriority); - - - HRESULT ( __stdcall *GetPriority )( - IInternetPriority * This, - LONG *pnPriority); - - - } IInternetPriorityVtbl; - - struct IInternetPriority - { - struct IInternetPriorityVtbl *lpVtbl; - }; -# 6669 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0036_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0036_v0_0_s_ifspec; - - - - - - - -typedef IInternetProtocolInfo *LPIINTERNETPROTOCOLINFO; - -typedef -enum _tagPARSEACTION - { - PARSE_CANONICALIZE = 1, - PARSE_FRIENDLY = ( PARSE_CANONICALIZE + 1 ) , - PARSE_SECURITY_URL = ( PARSE_FRIENDLY + 1 ) , - PARSE_ROOTDOCUMENT = ( PARSE_SECURITY_URL + 1 ) , - PARSE_DOCUMENT = ( PARSE_ROOTDOCUMENT + 1 ) , - PARSE_ANCHOR = ( PARSE_DOCUMENT + 1 ) , - PARSE_ENCODE_IS_UNESCAPE = ( PARSE_ANCHOR + 1 ) , - PARSE_DECODE_IS_ESCAPE = ( PARSE_ENCODE_IS_UNESCAPE + 1 ) , - PARSE_PATH_FROM_URL = ( PARSE_DECODE_IS_ESCAPE + 1 ) , - PARSE_URL_FROM_PATH = ( PARSE_PATH_FROM_URL + 1 ) , - PARSE_MIME = ( PARSE_URL_FROM_PATH + 1 ) , - PARSE_SERVER = ( PARSE_MIME + 1 ) , - PARSE_SCHEMA = ( PARSE_SERVER + 1 ) , - PARSE_SITE = ( PARSE_SCHEMA + 1 ) , - PARSE_DOMAIN = ( PARSE_SITE + 1 ) , - PARSE_LOCATION = ( PARSE_DOMAIN + 1 ) , - PARSE_SECURITY_DOMAIN = ( PARSE_LOCATION + 1 ) , - PARSE_ESCAPE = ( PARSE_SECURITY_DOMAIN + 1 ) , - PARSE_UNESCAPE = ( PARSE_ESCAPE + 1 ) - } PARSEACTION; - -typedef -enum _tagPSUACTION - { - PSU_DEFAULT = 1, - PSU_SECURITY_URL_ONLY = ( PSU_DEFAULT + 1 ) - } PSUACTION; - -typedef -enum _tagQUERYOPTION - { - QUERY_EXPIRATION_DATE = 1, - QUERY_TIME_OF_LAST_CHANGE = ( QUERY_EXPIRATION_DATE + 1 ) , - QUERY_CONTENT_ENCODING = ( QUERY_TIME_OF_LAST_CHANGE + 1 ) , - QUERY_CONTENT_TYPE = ( QUERY_CONTENT_ENCODING + 1 ) , - QUERY_REFRESH = ( QUERY_CONTENT_TYPE + 1 ) , - QUERY_RECOMBINE = ( QUERY_REFRESH + 1 ) , - QUERY_CAN_NAVIGATE = ( QUERY_RECOMBINE + 1 ) , - QUERY_USES_NETWORK = ( QUERY_CAN_NAVIGATE + 1 ) , - QUERY_IS_CACHED = ( QUERY_USES_NETWORK + 1 ) , - QUERY_IS_INSTALLEDENTRY = ( QUERY_IS_CACHED + 1 ) , - QUERY_IS_CACHED_OR_MAPPED = ( QUERY_IS_INSTALLEDENTRY + 1 ) , - QUERY_USES_CACHE = ( QUERY_IS_CACHED_OR_MAPPED + 1 ) , - QUERY_IS_SECURE = ( QUERY_USES_CACHE + 1 ) , - QUERY_IS_SAFE = ( QUERY_IS_SECURE + 1 ) , - QUERY_USES_HISTORYFOLDER = ( QUERY_IS_SAFE + 1 ) , - QUERY_IS_CACHED_AND_USABLE_OFFLINE = ( QUERY_USES_HISTORYFOLDER + 1 ) - } QUERYOPTION; - - -extern const IID IID_IInternetProtocolInfo; -# 6780 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetProtocolInfoVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetProtocolInfo * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetProtocolInfo * This); - - - ULONG ( __stdcall *Release )( - IInternetProtocolInfo * This); - - - HRESULT ( __stdcall *ParseUrl )( - IInternetProtocolInfo * This, - LPCWSTR pwzUrl, - PARSEACTION ParseAction, - DWORD dwParseFlags, - - LPWSTR pwzResult, - DWORD cchResult, - DWORD *pcchResult, - DWORD dwReserved); - - - HRESULT ( __stdcall *CombineUrl )( - IInternetProtocolInfo * This, - LPCWSTR pwzBaseUrl, - LPCWSTR pwzRelativeUrl, - DWORD dwCombineFlags, - - LPWSTR pwzResult, - DWORD cchResult, - DWORD *pcchResult, - DWORD dwReserved); - - - HRESULT ( __stdcall *CompareUrl )( - IInternetProtocolInfo * This, - LPCWSTR pwzUrl1, - LPCWSTR pwzUrl2, - DWORD dwCompareFlags); - - - HRESULT ( __stdcall *QueryInfo )( - IInternetProtocolInfo * This, - LPCWSTR pwzUrl, - QUERYOPTION OueryOption, - DWORD dwQueryFlags, - LPVOID pBuffer, - DWORD cbBuffer, - DWORD *pcbBuf, - DWORD dwReserved); - - - } IInternetProtocolInfoVtbl; - - struct IInternetProtocolInfo - { - struct IInternetProtocolInfoVtbl *lpVtbl; - }; -# 6939 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern HRESULT __stdcall CoInternetParseUrl( - LPCWSTR pwzUrl, - PARSEACTION ParseAction, - DWORD dwFlags, - LPWSTR pszResult, - DWORD cchResult, - DWORD *pcchResult, - DWORD dwReserved - ); - -extern HRESULT __stdcall CoInternetParseIUri( - IUri *pIUri, - PARSEACTION ParseAction, - DWORD dwFlags, - LPWSTR pwzResult, - DWORD cchResult, - DWORD *pcchResult, - DWORD_PTR dwReserved - ); - -extern HRESULT __stdcall CoInternetCombineUrl( - LPCWSTR pwzBaseUrl, - LPCWSTR pwzRelativeUrl, - DWORD dwCombineFlags, - LPWSTR pszResult, - DWORD cchResult, - DWORD *pcchResult, - DWORD dwReserved - ); - -extern HRESULT __stdcall CoInternetCombineUrlEx( - IUri *pBaseUri, - LPCWSTR pwzRelativeUrl, - DWORD dwCombineFlags, - IUri **ppCombinedUri, - DWORD_PTR dwReserved - ); -extern HRESULT __stdcall CoInternetCombineIUri ( - IUri *pBaseUri, - IUri *pRelativeUri, - DWORD dwCombineFlags, - IUri **ppCombinedUri, - DWORD_PTR dwReserved - ); - -extern HRESULT __stdcall CoInternetCompareUrl( - LPCWSTR pwzUrl1, - LPCWSTR pwzUrl2, - DWORD dwFlags - ); -extern HRESULT __stdcall CoInternetGetProtocolFlags( - LPCWSTR pwzUrl, - DWORD *pdwFlags, - DWORD dwReserved - ); -extern HRESULT __stdcall CoInternetQueryInfo( - LPCWSTR pwzUrl, - QUERYOPTION QueryOptions, - DWORD dwQueryFlags, - LPVOID pvBuffer, - DWORD cbBuffer, - DWORD *pcbBuffer, - DWORD dwReserved - ); -extern HRESULT __stdcall CoInternetGetSession( - DWORD dwSessionMode, - IInternetSession **ppIInternetSession, - DWORD dwReserved - ); -extern HRESULT __stdcall CoInternetGetSecurityUrl( - LPCWSTR pwszUrl, - LPWSTR *ppwszSecUrl, - PSUACTION psuAction, - DWORD dwReserved - ); -extern HRESULT __stdcall AsyncInstallDistributionUnit( - LPCWSTR szDistUnit, - LPCWSTR szTYPE, - LPCWSTR szExt, - DWORD dwFileVersionMS, - DWORD dwFileVersionLS, - LPCWSTR szURL, - IBindCtx *pbc, - LPVOID pvReserved, - DWORD flags - ); - -extern HRESULT __stdcall CoInternetGetSecurityUrlEx( - IUri *pUri, - IUri **ppSecUri, - PSUACTION psuAction, - DWORD_PTR dwReserved - ); - - - - -typedef -enum _tagINTERNETFEATURELIST - { - FEATURE_OBJECT_CACHING = 0, - FEATURE_ZONE_ELEVATION = ( FEATURE_OBJECT_CACHING + 1 ) , - FEATURE_MIME_HANDLING = ( FEATURE_ZONE_ELEVATION + 1 ) , - FEATURE_MIME_SNIFFING = ( FEATURE_MIME_HANDLING + 1 ) , - FEATURE_WINDOW_RESTRICTIONS = ( FEATURE_MIME_SNIFFING + 1 ) , - FEATURE_WEBOC_POPUPMANAGEMENT = ( FEATURE_WINDOW_RESTRICTIONS + 1 ) , - FEATURE_BEHAVIORS = ( FEATURE_WEBOC_POPUPMANAGEMENT + 1 ) , - FEATURE_DISABLE_MK_PROTOCOL = ( FEATURE_BEHAVIORS + 1 ) , - FEATURE_LOCALMACHINE_LOCKDOWN = ( FEATURE_DISABLE_MK_PROTOCOL + 1 ) , - FEATURE_SECURITYBAND = ( FEATURE_LOCALMACHINE_LOCKDOWN + 1 ) , - FEATURE_RESTRICT_ACTIVEXINSTALL = ( FEATURE_SECURITYBAND + 1 ) , - FEATURE_VALIDATE_NAVIGATE_URL = ( FEATURE_RESTRICT_ACTIVEXINSTALL + 1 ) , - FEATURE_RESTRICT_FILEDOWNLOAD = ( FEATURE_VALIDATE_NAVIGATE_URL + 1 ) , - FEATURE_ADDON_MANAGEMENT = ( FEATURE_RESTRICT_FILEDOWNLOAD + 1 ) , - FEATURE_PROTOCOL_LOCKDOWN = ( FEATURE_ADDON_MANAGEMENT + 1 ) , - FEATURE_HTTP_USERNAME_PASSWORD_DISABLE = ( FEATURE_PROTOCOL_LOCKDOWN + 1 ) , - FEATURE_SAFE_BINDTOOBJECT = ( FEATURE_HTTP_USERNAME_PASSWORD_DISABLE + 1 ) , - FEATURE_UNC_SAVEDFILECHECK = ( FEATURE_SAFE_BINDTOOBJECT + 1 ) , - FEATURE_GET_URL_DOM_FILEPATH_UNENCODED = ( FEATURE_UNC_SAVEDFILECHECK + 1 ) , - FEATURE_TABBED_BROWSING = ( FEATURE_GET_URL_DOM_FILEPATH_UNENCODED + 1 ) , - FEATURE_SSLUX = ( FEATURE_TABBED_BROWSING + 1 ) , - FEATURE_DISABLE_NAVIGATION_SOUNDS = ( FEATURE_SSLUX + 1 ) , - FEATURE_DISABLE_LEGACY_COMPRESSION = ( FEATURE_DISABLE_NAVIGATION_SOUNDS + 1 ) , - FEATURE_FORCE_ADDR_AND_STATUS = ( FEATURE_DISABLE_LEGACY_COMPRESSION + 1 ) , - FEATURE_XMLHTTP = ( FEATURE_FORCE_ADDR_AND_STATUS + 1 ) , - FEATURE_DISABLE_TELNET_PROTOCOL = ( FEATURE_XMLHTTP + 1 ) , - FEATURE_FEEDS = ( FEATURE_DISABLE_TELNET_PROTOCOL + 1 ) , - FEATURE_BLOCK_INPUT_PROMPTS = ( FEATURE_FEEDS + 1 ) , - FEATURE_ENTRY_COUNT = ( FEATURE_BLOCK_INPUT_PROMPTS + 1 ) - } INTERNETFEATURELIST; -# 7096 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern HRESULT __stdcall CoInternetSetFeatureEnabled( - INTERNETFEATURELIST FeatureEntry, - DWORD dwFlags, - BOOL fEnable - ); -extern HRESULT __stdcall CoInternetIsFeatureEnabled( - INTERNETFEATURELIST FeatureEntry, - DWORD dwFlags - ); -extern HRESULT __stdcall CoInternetIsFeatureEnabledForUrl( - INTERNETFEATURELIST FeatureEntry, - DWORD dwFlags, - LPCWSTR szURL, - IInternetSecurityManager *pSecMgr - ); -extern HRESULT __stdcall CoInternetIsFeatureEnabledForIUri( - INTERNETFEATURELIST FeatureEntry, - DWORD dwFlags, - IUri * pIUri, - IInternetSecurityManagerEx2 *pSecMgr - ); -extern HRESULT __stdcall CoInternetIsFeatureZoneElevationEnabled( - LPCWSTR szFromURL, - LPCWSTR szToURL, - IInternetSecurityManager *pSecMgr, - DWORD dwFlags - ); - - -extern HRESULT __stdcall CopyStgMedium( const STGMEDIUM * pcstgmedSrc, - STGMEDIUM * pstgmedDest); -extern HRESULT __stdcall CopyBindInfo( const BINDINFO * pcbiSrc, - BINDINFO * pbiDest ); -extern void __stdcall ReleaseBindInfo( BINDINFO * pbindinfo ); -# 7152 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern PWSTR __stdcall IEGetUserPrivateNamespaceName(void); - - - -extern HRESULT __stdcall CoInternetCreateSecurityManager( IServiceProvider *pSP, IInternetSecurityManager **ppSM, DWORD dwReserved); - -extern HRESULT __stdcall CoInternetCreateZoneManager( IServiceProvider *pSP, IInternetZoneManager **ppZM, DWORD dwReserved); - - - -extern const IID CLSID_InternetSecurityManager; -extern const IID CLSID_InternetZoneManager; - -extern const IID CLSID_PersistentZoneIdentifier; -# 7184 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0037_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0037_v0_0_s_ifspec; -# 7194 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IInternetSecurityMgrSite; -# 7213 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetSecurityMgrSiteVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetSecurityMgrSite * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetSecurityMgrSite * This); - - - ULONG ( __stdcall *Release )( - IInternetSecurityMgrSite * This); - - - HRESULT ( __stdcall *GetWindow )( - IInternetSecurityMgrSite * This, - HWND *phwnd); - - - HRESULT ( __stdcall *EnableModeless )( - IInternetSecurityMgrSite * This, - BOOL fEnable); - - - } IInternetSecurityMgrSiteVtbl; - - struct IInternetSecurityMgrSite - { - struct IInternetSecurityMgrSiteVtbl *lpVtbl; - }; -# 7290 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0038_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0038_v0_0_s_ifspec; -# 7313 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -typedef -enum __MIDL_IInternetSecurityManager_0001 - { - PUAF_DEFAULT = 0, - PUAF_NOUI = 0x1, - PUAF_ISFILE = 0x2, - PUAF_WARN_IF_DENIED = 0x4, - PUAF_FORCEUI_FOREGROUND = 0x8, - PUAF_CHECK_TIFS = 0x10, - PUAF_DONTCHECKBOXINDIALOG = 0x20, - PUAF_TRUSTED = 0x40, - PUAF_ACCEPT_WILDCARD_SCHEME = 0x80, - PUAF_ENFORCERESTRICTED = 0x100, - PUAF_NOSAVEDFILECHECK = 0x200, - PUAF_REQUIRESAVEDFILECHECK = 0x400, - PUAF_DONT_USE_CACHE = 0x1000, - PUAF_RESERVED1 = 0x2000, - PUAF_RESERVED2 = 0x4000, - PUAF_LMZ_UNLOCKED = 0x10000, - PUAF_LMZ_LOCKED = 0x20000, - PUAF_DEFAULTZONEPOL = 0x40000, - PUAF_NPL_USE_LOCKED_IF_RESTRICTED = 0x80000, - PUAF_NOUIIFLOCKED = 0x100000, - PUAF_DRAGPROTOCOLCHECK = 0x200000 - } PUAF; - -typedef -enum __MIDL_IInternetSecurityManager_0002 - { - PUAFOUT_DEFAULT = 0, - PUAFOUT_ISLOCKZONEPOLICY = 0x1 - } PUAFOUT; -# 7364 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -typedef -enum __MIDL_IInternetSecurityManager_0003 - { - SZM_CREATE = 0, - SZM_DELETE = 0x1 - } SZM_FLAGS; -# 7386 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IInternetSecurityManager; -# 7449 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetSecurityManagerVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetSecurityManager * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetSecurityManager * This); - - - ULONG ( __stdcall *Release )( - IInternetSecurityManager * This); - - - HRESULT ( __stdcall *SetSecuritySite )( - IInternetSecurityManager * This, - IInternetSecurityMgrSite *pSite); - - - HRESULT ( __stdcall *GetSecuritySite )( - IInternetSecurityManager * This, - IInternetSecurityMgrSite **ppSite); - - - HRESULT ( __stdcall *MapUrlToZone )( - IInternetSecurityManager * This, - LPCWSTR pwszUrl, - DWORD *pdwZone, - DWORD dwFlags); - - - HRESULT ( __stdcall *GetSecurityId )( - IInternetSecurityManager * This, - - LPCWSTR pwszUrl, - - BYTE *pbSecurityId, - - DWORD *pcbSecurityId, - - DWORD_PTR dwReserved); - - - HRESULT ( __stdcall *ProcessUrlAction )( - IInternetSecurityManager * This, - LPCWSTR pwszUrl, - DWORD dwAction, - BYTE *pPolicy, - DWORD cbPolicy, - BYTE *pContext, - DWORD cbContext, - DWORD dwFlags, - DWORD dwReserved); - - - HRESULT ( __stdcall *QueryCustomPolicy )( - IInternetSecurityManager * This, - LPCWSTR pwszUrl, - const GUID * const guidKey, - BYTE **ppPolicy, - DWORD *pcbPolicy, - BYTE *pContext, - DWORD cbContext, - DWORD dwReserved); - - - HRESULT ( __stdcall *SetZoneMapping )( - IInternetSecurityManager * This, - DWORD dwZone, - LPCWSTR lpszPattern, - DWORD dwFlags); - - - HRESULT ( __stdcall *GetZoneMappings )( - IInternetSecurityManager * This, - DWORD dwZone, - IEnumString **ppenumString, - DWORD dwFlags); - - - } IInternetSecurityManagerVtbl; - - struct IInternetSecurityManager - { - struct IInternetSecurityManagerVtbl *lpVtbl; - }; -# 7601 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0039_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0039_v0_0_s_ifspec; -# 7617 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IInternetSecurityManagerEx; -# 7641 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetSecurityManagerExVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetSecurityManagerEx * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetSecurityManagerEx * This); - - - ULONG ( __stdcall *Release )( - IInternetSecurityManagerEx * This); - - - HRESULT ( __stdcall *SetSecuritySite )( - IInternetSecurityManagerEx * This, - IInternetSecurityMgrSite *pSite); - - - HRESULT ( __stdcall *GetSecuritySite )( - IInternetSecurityManagerEx * This, - IInternetSecurityMgrSite **ppSite); - - - HRESULT ( __stdcall *MapUrlToZone )( - IInternetSecurityManagerEx * This, - LPCWSTR pwszUrl, - DWORD *pdwZone, - DWORD dwFlags); - - - HRESULT ( __stdcall *GetSecurityId )( - IInternetSecurityManagerEx * This, - - LPCWSTR pwszUrl, - - BYTE *pbSecurityId, - - DWORD *pcbSecurityId, - - DWORD_PTR dwReserved); - - - HRESULT ( __stdcall *ProcessUrlAction )( - IInternetSecurityManagerEx * This, - LPCWSTR pwszUrl, - DWORD dwAction, - BYTE *pPolicy, - DWORD cbPolicy, - BYTE *pContext, - DWORD cbContext, - DWORD dwFlags, - DWORD dwReserved); - - - HRESULT ( __stdcall *QueryCustomPolicy )( - IInternetSecurityManagerEx * This, - LPCWSTR pwszUrl, - const GUID * const guidKey, - BYTE **ppPolicy, - DWORD *pcbPolicy, - BYTE *pContext, - DWORD cbContext, - DWORD dwReserved); - - - HRESULT ( __stdcall *SetZoneMapping )( - IInternetSecurityManagerEx * This, - DWORD dwZone, - LPCWSTR lpszPattern, - DWORD dwFlags); - - - HRESULT ( __stdcall *GetZoneMappings )( - IInternetSecurityManagerEx * This, - DWORD dwZone, - IEnumString **ppenumString, - DWORD dwFlags); - - - HRESULT ( __stdcall *ProcessUrlActionEx )( - IInternetSecurityManagerEx * This, - LPCWSTR pwszUrl, - DWORD dwAction, - BYTE *pPolicy, - DWORD cbPolicy, - BYTE *pContext, - DWORD cbContext, - DWORD dwFlags, - DWORD dwReserved, - DWORD *pdwOutFlags); - - - } IInternetSecurityManagerExVtbl; - - struct IInternetSecurityManagerEx - { - struct IInternetSecurityManagerExVtbl *lpVtbl; - }; -# 7811 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0040_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0040_v0_0_s_ifspec; -# 7824 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IInternetSecurityManagerEx2; -# 7879 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetSecurityManagerEx2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetSecurityManagerEx2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetSecurityManagerEx2 * This); - - - ULONG ( __stdcall *Release )( - IInternetSecurityManagerEx2 * This); - - - HRESULT ( __stdcall *SetSecuritySite )( - IInternetSecurityManagerEx2 * This, - IInternetSecurityMgrSite *pSite); - - - HRESULT ( __stdcall *GetSecuritySite )( - IInternetSecurityManagerEx2 * This, - IInternetSecurityMgrSite **ppSite); - - - HRESULT ( __stdcall *MapUrlToZone )( - IInternetSecurityManagerEx2 * This, - LPCWSTR pwszUrl, - DWORD *pdwZone, - DWORD dwFlags); - - - HRESULT ( __stdcall *GetSecurityId )( - IInternetSecurityManagerEx2 * This, - - LPCWSTR pwszUrl, - - BYTE *pbSecurityId, - - DWORD *pcbSecurityId, - - DWORD_PTR dwReserved); - - - HRESULT ( __stdcall *ProcessUrlAction )( - IInternetSecurityManagerEx2 * This, - LPCWSTR pwszUrl, - DWORD dwAction, - BYTE *pPolicy, - DWORD cbPolicy, - BYTE *pContext, - DWORD cbContext, - DWORD dwFlags, - DWORD dwReserved); - - - HRESULT ( __stdcall *QueryCustomPolicy )( - IInternetSecurityManagerEx2 * This, - LPCWSTR pwszUrl, - const GUID * const guidKey, - BYTE **ppPolicy, - DWORD *pcbPolicy, - BYTE *pContext, - DWORD cbContext, - DWORD dwReserved); - - - HRESULT ( __stdcall *SetZoneMapping )( - IInternetSecurityManagerEx2 * This, - DWORD dwZone, - LPCWSTR lpszPattern, - DWORD dwFlags); - - - HRESULT ( __stdcall *GetZoneMappings )( - IInternetSecurityManagerEx2 * This, - DWORD dwZone, - IEnumString **ppenumString, - DWORD dwFlags); - - - HRESULT ( __stdcall *ProcessUrlActionEx )( - IInternetSecurityManagerEx2 * This, - LPCWSTR pwszUrl, - DWORD dwAction, - BYTE *pPolicy, - DWORD cbPolicy, - BYTE *pContext, - DWORD cbContext, - DWORD dwFlags, - DWORD dwReserved, - DWORD *pdwOutFlags); - - - HRESULT ( __stdcall *MapUrlToZoneEx2 )( - IInternetSecurityManagerEx2 * This, - - IUri *pUri, - DWORD *pdwZone, - DWORD dwFlags, - - LPWSTR *ppwszMappedUrl, - - DWORD *pdwOutFlags); - - - HRESULT ( __stdcall *ProcessUrlActionEx2 )( - IInternetSecurityManagerEx2 * This, - - IUri *pUri, - DWORD dwAction, - BYTE *pPolicy, - DWORD cbPolicy, - BYTE *pContext, - DWORD cbContext, - DWORD dwFlags, - DWORD_PTR dwReserved, - DWORD *pdwOutFlags); - - - HRESULT ( __stdcall *GetSecurityIdEx2 )( - IInternetSecurityManagerEx2 * This, - - IUri *pUri, - - BYTE *pbSecurityId, - - DWORD *pcbSecurityId, - - DWORD_PTR dwReserved); - - - HRESULT ( __stdcall *QueryCustomPolicyEx2 )( - IInternetSecurityManagerEx2 * This, - - IUri *pUri, - const GUID * const guidKey, - BYTE **ppPolicy, - DWORD *pcbPolicy, - BYTE *pContext, - DWORD cbContext, - DWORD_PTR dwReserved); - - - } IInternetSecurityManagerEx2Vtbl; - - struct IInternetSecurityManagerEx2 - { - struct IInternetSecurityManagerEx2Vtbl *lpVtbl; - }; -# 8110 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0041_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0041_v0_0_s_ifspec; -# 8120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IZoneIdentifier; -# 8141 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IZoneIdentifierVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IZoneIdentifier * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IZoneIdentifier * This); - - - ULONG ( __stdcall *Release )( - IZoneIdentifier * This); - - - HRESULT ( __stdcall *GetId )( - IZoneIdentifier * This, - DWORD *pdwZone); - - - HRESULT ( __stdcall *SetId )( - IZoneIdentifier * This, - DWORD dwZone); - - - HRESULT ( __stdcall *Remove )( - IZoneIdentifier * This); - - - } IZoneIdentifierVtbl; - - struct IZoneIdentifier - { - struct IZoneIdentifierVtbl *lpVtbl; - }; -# 8224 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0042_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0042_v0_0_s_ifspec; -# 8234 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IZoneIdentifier2; -# 8263 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IZoneIdentifier2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IZoneIdentifier2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IZoneIdentifier2 * This); - - - ULONG ( __stdcall *Release )( - IZoneIdentifier2 * This); - - - HRESULT ( __stdcall *GetId )( - IZoneIdentifier2 * This, - DWORD *pdwZone); - - - HRESULT ( __stdcall *SetId )( - IZoneIdentifier2 * This, - DWORD dwZone); - - - HRESULT ( __stdcall *Remove )( - IZoneIdentifier2 * This); - - - HRESULT ( __stdcall *GetLastWriterPackageFamilyName )( - IZoneIdentifier2 * This, - LPWSTR *packageFamilyName); - - - HRESULT ( __stdcall *SetLastWriterPackageFamilyName )( - IZoneIdentifier2 * This, - LPCWSTR packageFamilyName); - - - HRESULT ( __stdcall *RemoveLastWriterPackageFamilyName )( - IZoneIdentifier2 * This); - - - HRESULT ( __stdcall *GetAppZoneId )( - IZoneIdentifier2 * This, - DWORD *zone); - - - HRESULT ( __stdcall *SetAppZoneId )( - IZoneIdentifier2 * This, - DWORD zone); - - - HRESULT ( __stdcall *RemoveAppZoneId )( - IZoneIdentifier2 * This); - - - } IZoneIdentifier2Vtbl; - - struct IZoneIdentifier2 - { - struct IZoneIdentifier2Vtbl *lpVtbl; - }; -# 8397 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0043_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0043_v0_0_s_ifspec; -# 8408 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IInternetHostSecurityManager; -# 8450 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetHostSecurityManagerVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetHostSecurityManager * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetHostSecurityManager * This); - - - ULONG ( __stdcall *Release )( - IInternetHostSecurityManager * This); - - - HRESULT ( __stdcall *GetSecurityId )( - IInternetHostSecurityManager * This, - - BYTE *pbSecurityId, - - DWORD *pcbSecurityId, - DWORD_PTR dwReserved); - - - HRESULT ( __stdcall *ProcessUrlAction )( - IInternetHostSecurityManager * This, - DWORD dwAction, - - BYTE *pPolicy, - DWORD cbPolicy, - - BYTE *pContext, - DWORD cbContext, - DWORD dwFlags, - DWORD dwReserved); - - - HRESULT ( __stdcall *QueryCustomPolicy )( - IInternetHostSecurityManager * This, - const GUID * const guidKey, - - BYTE **ppPolicy, - - DWORD *pcbPolicy, - - BYTE *pContext, - DWORD cbContext, - DWORD dwReserved); - - - } IInternetHostSecurityManagerVtbl; - - struct IInternetHostSecurityManager - { - struct IInternetHostSecurityManagerVtbl *lpVtbl; - }; -# 8815 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const GUID GUID_CUSTOM_LOCALMACHINEZONEUNLOCKED; - - - - - -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0044_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0044_v0_0_s_ifspec; - - - - - - - -typedef IInternetZoneManager *LPURLZONEMANAGER; - -typedef -enum tagURLZONE - { - URLZONE_INVALID = -1, - URLZONE_PREDEFINED_MIN = 0, - URLZONE_LOCAL_MACHINE = 0, - URLZONE_INTRANET = ( URLZONE_LOCAL_MACHINE + 1 ) , - URLZONE_TRUSTED = ( URLZONE_INTRANET + 1 ) , - URLZONE_INTERNET = ( URLZONE_TRUSTED + 1 ) , - URLZONE_UNTRUSTED = ( URLZONE_INTERNET + 1 ) , - URLZONE_PREDEFINED_MAX = 999, - URLZONE_USER_MIN = 1000, - URLZONE_USER_MAX = 10000 - } URLZONE; - - - -typedef -enum tagURLTEMPLATE - { - URLTEMPLATE_CUSTOM = 0, - URLTEMPLATE_PREDEFINED_MIN = 0x10000, - URLTEMPLATE_LOW = 0x10000, - URLTEMPLATE_MEDLOW = 0x10500, - URLTEMPLATE_MEDIUM = 0x11000, - URLTEMPLATE_MEDHIGH = 0x11500, - URLTEMPLATE_HIGH = 0x12000, - URLTEMPLATE_PREDEFINED_MAX = 0x20000 - } URLTEMPLATE; - - -enum __MIDL_IInternetZoneManager_0001 - { - MAX_ZONE_PATH = 260, - MAX_ZONE_DESCRIPTION = 200 - } ; -typedef -enum __MIDL_IInternetZoneManager_0002 - { - ZAFLAGS_CUSTOM_EDIT = 0x1, - ZAFLAGS_ADD_SITES = 0x2, - ZAFLAGS_REQUIRE_VERIFICATION = 0x4, - ZAFLAGS_INCLUDE_PROXY_OVERRIDE = 0x8, - ZAFLAGS_INCLUDE_INTRANET_SITES = 0x10, - ZAFLAGS_NO_UI = 0x20, - ZAFLAGS_SUPPORTS_VERIFICATION = 0x40, - ZAFLAGS_UNC_AS_INTRANET = 0x80, - ZAFLAGS_DETECT_INTRANET = 0x100, - ZAFLAGS_USE_LOCKED_ZONES = 0x10000, - ZAFLAGS_VERIFY_TEMPLATE_SETTINGS = 0x20000, - ZAFLAGS_NO_CACHE = 0x40000 - } ZAFLAGS; - -typedef struct _ZONEATTRIBUTES - { - ULONG cbSize; - WCHAR szDisplayName[ 260 ]; - WCHAR szDescription[ 200 ]; - WCHAR szIconPath[ 260 ]; - DWORD dwTemplateMinLevel; - DWORD dwTemplateRecommended; - DWORD dwTemplateCurrentLevel; - DWORD dwFlags; - } ZONEATTRIBUTES; - -typedef struct _ZONEATTRIBUTES *LPZONEATTRIBUTES; -# 8915 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -typedef -enum _URLZONEREG - { - URLZONEREG_DEFAULT = 0, - URLZONEREG_HKLM = ( URLZONEREG_DEFAULT + 1 ) , - URLZONEREG_HKCU = ( URLZONEREG_HKLM + 1 ) - } URLZONEREG; -# 8954 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IInternetZoneManager; -# 9041 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetZoneManagerVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetZoneManager * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetZoneManager * This); - - - ULONG ( __stdcall *Release )( - IInternetZoneManager * This); - - - HRESULT ( __stdcall *GetZoneAttributes )( - IInternetZoneManager * This, - DWORD dwZone, - - ZONEATTRIBUTES *pZoneAttributes); - - - HRESULT ( __stdcall *SetZoneAttributes )( - IInternetZoneManager * This, - DWORD dwZone, - - ZONEATTRIBUTES *pZoneAttributes); - - - HRESULT ( __stdcall *GetZoneCustomPolicy )( - IInternetZoneManager * This, - DWORD dwZone, - const GUID * const guidKey, - - BYTE **ppPolicy, - - DWORD *pcbPolicy, - URLZONEREG urlZoneReg); - - - HRESULT ( __stdcall *SetZoneCustomPolicy )( - IInternetZoneManager * This, - DWORD dwZone, - const GUID * const guidKey, - - BYTE *pPolicy, - DWORD cbPolicy, - URLZONEREG urlZoneReg); - - - HRESULT ( __stdcall *GetZoneActionPolicy )( - IInternetZoneManager * This, - DWORD dwZone, - DWORD dwAction, - - BYTE *pPolicy, - DWORD cbPolicy, - URLZONEREG urlZoneReg); - - - HRESULT ( __stdcall *SetZoneActionPolicy )( - IInternetZoneManager * This, - DWORD dwZone, - DWORD dwAction, - - BYTE *pPolicy, - DWORD cbPolicy, - URLZONEREG urlZoneReg); - - - HRESULT ( __stdcall *PromptAction )( - IInternetZoneManager * This, - DWORD dwAction, - HWND hwndParent, - LPCWSTR pwszUrl, - LPCWSTR pwszText, - DWORD dwPromptFlags); - - - HRESULT ( __stdcall *LogAction )( - IInternetZoneManager * This, - DWORD dwAction, - LPCWSTR pwszUrl, - LPCWSTR pwszText, - DWORD dwLogFlags); - - - HRESULT ( __stdcall *CreateZoneEnumerator )( - IInternetZoneManager * This, - DWORD *pdwEnum, - DWORD *pdwCount, - DWORD dwFlags); - - - HRESULT ( __stdcall *GetZoneAt )( - IInternetZoneManager * This, - DWORD dwEnum, - DWORD dwIndex, - DWORD *pdwZone); - - - HRESULT ( __stdcall *DestroyZoneEnumerator )( - IInternetZoneManager * This, - DWORD dwEnum); - - - HRESULT ( __stdcall *CopyTemplatePoliciesToZone )( - IInternetZoneManager * This, - DWORD dwTemplate, - DWORD dwZone, - DWORD dwReserved); - - - } IInternetZoneManagerVtbl; - - struct IInternetZoneManager - { - struct IInternetZoneManagerVtbl *lpVtbl; - }; -# 9237 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0045_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0045_v0_0_s_ifspec; -# 9255 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IInternetZoneManagerEx; -# 9286 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetZoneManagerExVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetZoneManagerEx * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetZoneManagerEx * This); - - - ULONG ( __stdcall *Release )( - IInternetZoneManagerEx * This); - - - HRESULT ( __stdcall *GetZoneAttributes )( - IInternetZoneManagerEx * This, - DWORD dwZone, - - ZONEATTRIBUTES *pZoneAttributes); - - - HRESULT ( __stdcall *SetZoneAttributes )( - IInternetZoneManagerEx * This, - DWORD dwZone, - - ZONEATTRIBUTES *pZoneAttributes); - - - HRESULT ( __stdcall *GetZoneCustomPolicy )( - IInternetZoneManagerEx * This, - DWORD dwZone, - const GUID * const guidKey, - - BYTE **ppPolicy, - - DWORD *pcbPolicy, - URLZONEREG urlZoneReg); - - - HRESULT ( __stdcall *SetZoneCustomPolicy )( - IInternetZoneManagerEx * This, - DWORD dwZone, - const GUID * const guidKey, - - BYTE *pPolicy, - DWORD cbPolicy, - URLZONEREG urlZoneReg); - - - HRESULT ( __stdcall *GetZoneActionPolicy )( - IInternetZoneManagerEx * This, - DWORD dwZone, - DWORD dwAction, - - BYTE *pPolicy, - DWORD cbPolicy, - URLZONEREG urlZoneReg); - - - HRESULT ( __stdcall *SetZoneActionPolicy )( - IInternetZoneManagerEx * This, - DWORD dwZone, - DWORD dwAction, - - BYTE *pPolicy, - DWORD cbPolicy, - URLZONEREG urlZoneReg); - - - HRESULT ( __stdcall *PromptAction )( - IInternetZoneManagerEx * This, - DWORD dwAction, - HWND hwndParent, - LPCWSTR pwszUrl, - LPCWSTR pwszText, - DWORD dwPromptFlags); - - - HRESULT ( __stdcall *LogAction )( - IInternetZoneManagerEx * This, - DWORD dwAction, - LPCWSTR pwszUrl, - LPCWSTR pwszText, - DWORD dwLogFlags); - - - HRESULT ( __stdcall *CreateZoneEnumerator )( - IInternetZoneManagerEx * This, - DWORD *pdwEnum, - DWORD *pdwCount, - DWORD dwFlags); - - - HRESULT ( __stdcall *GetZoneAt )( - IInternetZoneManagerEx * This, - DWORD dwEnum, - DWORD dwIndex, - DWORD *pdwZone); - - - HRESULT ( __stdcall *DestroyZoneEnumerator )( - IInternetZoneManagerEx * This, - DWORD dwEnum); - - - HRESULT ( __stdcall *CopyTemplatePoliciesToZone )( - IInternetZoneManagerEx * This, - DWORD dwTemplate, - DWORD dwZone, - DWORD dwReserved); - - - HRESULT ( __stdcall *GetZoneActionPolicyEx )( - IInternetZoneManagerEx * This, - DWORD dwZone, - DWORD dwAction, - - BYTE *pPolicy, - DWORD cbPolicy, - URLZONEREG urlZoneReg, - DWORD dwFlags); - - - HRESULT ( __stdcall *SetZoneActionPolicyEx )( - IInternetZoneManagerEx * This, - DWORD dwZone, - DWORD dwAction, - - BYTE *pPolicy, - DWORD cbPolicy, - URLZONEREG urlZoneReg, - DWORD dwFlags); - - - } IInternetZoneManagerExVtbl; - - struct IInternetZoneManagerEx - { - struct IInternetZoneManagerExVtbl *lpVtbl; - }; -# 9514 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0046_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0046_v0_0_s_ifspec; -# 9527 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IInternetZoneManagerEx2; -# 9559 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IInternetZoneManagerEx2Vtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IInternetZoneManagerEx2 * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IInternetZoneManagerEx2 * This); - - - ULONG ( __stdcall *Release )( - IInternetZoneManagerEx2 * This); - - - HRESULT ( __stdcall *GetZoneAttributes )( - IInternetZoneManagerEx2 * This, - DWORD dwZone, - - ZONEATTRIBUTES *pZoneAttributes); - - - HRESULT ( __stdcall *SetZoneAttributes )( - IInternetZoneManagerEx2 * This, - DWORD dwZone, - - ZONEATTRIBUTES *pZoneAttributes); - - - HRESULT ( __stdcall *GetZoneCustomPolicy )( - IInternetZoneManagerEx2 * This, - DWORD dwZone, - const GUID * const guidKey, - - BYTE **ppPolicy, - - DWORD *pcbPolicy, - URLZONEREG urlZoneReg); - - - HRESULT ( __stdcall *SetZoneCustomPolicy )( - IInternetZoneManagerEx2 * This, - DWORD dwZone, - const GUID * const guidKey, - - BYTE *pPolicy, - DWORD cbPolicy, - URLZONEREG urlZoneReg); - - - HRESULT ( __stdcall *GetZoneActionPolicy )( - IInternetZoneManagerEx2 * This, - DWORD dwZone, - DWORD dwAction, - - BYTE *pPolicy, - DWORD cbPolicy, - URLZONEREG urlZoneReg); - - - HRESULT ( __stdcall *SetZoneActionPolicy )( - IInternetZoneManagerEx2 * This, - DWORD dwZone, - DWORD dwAction, - - BYTE *pPolicy, - DWORD cbPolicy, - URLZONEREG urlZoneReg); - - - HRESULT ( __stdcall *PromptAction )( - IInternetZoneManagerEx2 * This, - DWORD dwAction, - HWND hwndParent, - LPCWSTR pwszUrl, - LPCWSTR pwszText, - DWORD dwPromptFlags); - - - HRESULT ( __stdcall *LogAction )( - IInternetZoneManagerEx2 * This, - DWORD dwAction, - LPCWSTR pwszUrl, - LPCWSTR pwszText, - DWORD dwLogFlags); - - - HRESULT ( __stdcall *CreateZoneEnumerator )( - IInternetZoneManagerEx2 * This, - DWORD *pdwEnum, - DWORD *pdwCount, - DWORD dwFlags); - - - HRESULT ( __stdcall *GetZoneAt )( - IInternetZoneManagerEx2 * This, - DWORD dwEnum, - DWORD dwIndex, - DWORD *pdwZone); - - - HRESULT ( __stdcall *DestroyZoneEnumerator )( - IInternetZoneManagerEx2 * This, - DWORD dwEnum); - - - HRESULT ( __stdcall *CopyTemplatePoliciesToZone )( - IInternetZoneManagerEx2 * This, - DWORD dwTemplate, - DWORD dwZone, - DWORD dwReserved); - - - HRESULT ( __stdcall *GetZoneActionPolicyEx )( - IInternetZoneManagerEx2 * This, - DWORD dwZone, - DWORD dwAction, - - BYTE *pPolicy, - DWORD cbPolicy, - URLZONEREG urlZoneReg, - DWORD dwFlags); - - - HRESULT ( __stdcall *SetZoneActionPolicyEx )( - IInternetZoneManagerEx2 * This, - DWORD dwZone, - DWORD dwAction, - - BYTE *pPolicy, - DWORD cbPolicy, - URLZONEREG urlZoneReg, - DWORD dwFlags); - - - HRESULT ( __stdcall *GetZoneAttributesEx )( - IInternetZoneManagerEx2 * This, - DWORD dwZone, - ZONEATTRIBUTES *pZoneAttributes, - DWORD dwFlags); - - - HRESULT ( __stdcall *GetZoneSecurityState )( - IInternetZoneManagerEx2 * This, - DWORD dwZoneIndex, - BOOL fRespectPolicy, - LPDWORD pdwState, - BOOL *pfPolicyEncountered); - - - HRESULT ( __stdcall *GetIESecurityState )( - IInternetZoneManagerEx2 * This, - BOOL fRespectPolicy, - LPDWORD pdwState, - BOOL *pfPolicyEncountered, - BOOL fNoCache); - - - HRESULT ( __stdcall *FixUnsecureSettings )( - IInternetZoneManagerEx2 * This); - - - } IInternetZoneManagerEx2Vtbl; - - struct IInternetZoneManagerEx2 - { - struct IInternetZoneManagerEx2Vtbl *lpVtbl; - }; -# 9820 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID CLSID_SoftDistExt; -# 9835 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -typedef struct _tagCODEBASEHOLD - { - ULONG cbSize; - LPWSTR szDistUnit; - LPWSTR szCodeBase; - DWORD dwVersionMS; - DWORD dwVersionLS; - DWORD dwStyle; - } CODEBASEHOLD; - -typedef struct _tagCODEBASEHOLD *LPCODEBASEHOLD; - -typedef struct _tagSOFTDISTINFO - { - ULONG cbSize; - DWORD dwFlags; - DWORD dwAdState; - LPWSTR szTitle; - LPWSTR szAbstract; - LPWSTR szHREF; - DWORD dwInstalledVersionMS; - DWORD dwInstalledVersionLS; - DWORD dwUpdateVersionMS; - DWORD dwUpdateVersionLS; - DWORD dwAdvertisedVersionMS; - DWORD dwAdvertisedVersionLS; - DWORD dwReserved; - } SOFTDISTINFO; - -typedef struct _tagSOFTDISTINFO *LPSOFTDISTINFO; - - - -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0047_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0047_v0_0_s_ifspec; -# 9878 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_ISoftDistExt; -# 9912 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct ISoftDistExtVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ISoftDistExt * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ISoftDistExt * This); - - - ULONG ( __stdcall *Release )( - ISoftDistExt * This); - - - HRESULT ( __stdcall *ProcessSoftDist )( - ISoftDistExt * This, - LPCWSTR szCDFURL, - IXMLElement *pSoftDistElement, - LPSOFTDISTINFO lpsdi); - - - HRESULT ( __stdcall *GetFirstCodeBase )( - ISoftDistExt * This, - - LPWSTR *szCodeBase, - LPDWORD dwMaxSize); - - - HRESULT ( __stdcall *GetNextCodeBase )( - ISoftDistExt * This, - - LPWSTR *szCodeBase, - LPDWORD dwMaxSize); - - - HRESULT ( __stdcall *AsyncInstallDistributionUnit )( - ISoftDistExt * This, - IBindCtx *pbc, - LPVOID pvReserved, - DWORD flags, - LPCODEBASEHOLD lpcbh); - - - } ISoftDistExtVtbl; - - struct ISoftDistExt - { - struct ISoftDistExtVtbl *lpVtbl; - }; -# 10009 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern HRESULT __stdcall GetSoftwareUpdateInfo( LPCWSTR szDistUnit, LPSOFTDISTINFO psdi ); -extern HRESULT __stdcall SetSoftwareUpdateAdvertisementState( LPCWSTR szDistUnit, DWORD dwAdState, DWORD dwAdvertisedVersionMS, DWORD dwAdvertisedVersionLS ); - - - - - -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0048_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0048_v0_0_s_ifspec; - - - - - - - -typedef ICatalogFileInfo *LPCATALOGFILEINFO; - - -extern const IID IID_ICatalogFileInfo; -# 10048 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct ICatalogFileInfoVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - ICatalogFileInfo * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - ICatalogFileInfo * This); - - - ULONG ( __stdcall *Release )( - ICatalogFileInfo * This); - - - HRESULT ( __stdcall *GetCatalogFile )( - ICatalogFileInfo * This, - - LPSTR *ppszCatalogFile); - - - HRESULT ( __stdcall *GetJavaTrust )( - ICatalogFileInfo * This, - void **ppJavaTrust); - - - } ICatalogFileInfoVtbl; - - struct ICatalogFileInfo - { - struct ICatalogFileInfoVtbl *lpVtbl; - }; -# 10126 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0049_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0049_v0_0_s_ifspec; - - - - - - - -typedef IDataFilter *LPDATAFILTER; - - -extern const IID IID_IDataFilter; -# 10176 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IDataFilterVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IDataFilter * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IDataFilter * This); - - - ULONG ( __stdcall *Release )( - IDataFilter * This); - - - HRESULT ( __stdcall *DoEncode )( - IDataFilter * This, - DWORD dwFlags, - LONG lInBufferSize, - BYTE *pbInBuffer, - LONG lOutBufferSize, - BYTE *pbOutBuffer, - LONG lInBytesAvailable, - LONG *plInBytesRead, - LONG *plOutBytesWritten, - DWORD dwReserved); - - - HRESULT ( __stdcall *DoDecode )( - IDataFilter * This, - DWORD dwFlags, - LONG lInBufferSize, - BYTE *pbInBuffer, - LONG lOutBufferSize, - BYTE *pbOutBuffer, - LONG lInBytesAvailable, - LONG *plInBytesRead, - LONG *plOutBytesWritten, - DWORD dwReserved); - - - HRESULT ( __stdcall *SetEncodingLevel )( - IDataFilter * This, - DWORD dwEncLevel); - - - } IDataFilterVtbl; - - struct IDataFilter - { - struct IDataFilterVtbl *lpVtbl; - }; -# 10275 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -typedef struct _tagPROTOCOLFILTERDATA - { - DWORD cbSize; - IInternetProtocolSink *pProtocolSink; - IInternetProtocol *pProtocol; - IUnknown *pUnk; - DWORD dwFilterFlags; - } PROTOCOLFILTERDATA; - - - -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0050_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0050_v0_0_s_ifspec; - - - - - - - -typedef IEncodingFilterFactory *LPENCODINGFILTERFACTORY; - -typedef struct _tagDATAINFO - { - ULONG ulTotalSize; - ULONG ulavrPacketSize; - ULONG ulConnectSpeed; - ULONG ulProcessorSpeed; - } DATAINFO; - - -extern const IID IID_IEncodingFilterFactory; -# 10330 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IEncodingFilterFactoryVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IEncodingFilterFactory * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IEncodingFilterFactory * This); - - - ULONG ( __stdcall *Release )( - IEncodingFilterFactory * This); - - - HRESULT ( __stdcall *FindBestFilter )( - IEncodingFilterFactory * This, - LPCWSTR pwzCodeIn, - LPCWSTR pwzCodeOut, - DATAINFO info, - IDataFilter **ppDF); - - - HRESULT ( __stdcall *GetDefaultFilter )( - IEncodingFilterFactory * This, - LPCWSTR pwzCodeIn, - LPCWSTR pwzCodeOut, - IDataFilter **ppDF); - - - } IEncodingFilterFactoryVtbl; - - struct IEncodingFilterFactory - { - struct IEncodingFilterFactoryVtbl *lpVtbl; - }; -# 10411 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -BOOL __stdcall IsLoggingEnabledA( LPCSTR pszUrl); -BOOL __stdcall IsLoggingEnabledW( LPCWSTR pwszUrl); - - - - - -typedef struct _tagHIT_LOGGING_INFO - { - DWORD dwStructSize; - LPSTR lpszLoggedUrlName; - SYSTEMTIME StartTime; - SYSTEMTIME EndTime; - LPSTR lpszExtendedInfo; - } HIT_LOGGING_INFO; - -typedef struct _tagHIT_LOGGING_INFO *LPHIT_LOGGING_INFO; - -BOOL __stdcall WriteHitLogging( LPHIT_LOGGING_INFO lpLogginginfo); - -struct CONFIRMSAFETY - { - CLSID clsid; - IUnknown *pUnk; - DWORD dwFlags; - } ; -extern const GUID GUID_CUSTOM_CONFIRMOBJECTSAFETY; - - - - - -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0051_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0051_v0_0_s_ifspec; - - - - - - - -typedef IWrappedProtocol *LPIWRAPPEDPROTOCOL; - - -extern const IID IID_IWrappedProtocol; -# 10472 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IWrappedProtocolVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IWrappedProtocol * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IWrappedProtocol * This); - - - ULONG ( __stdcall *Release )( - IWrappedProtocol * This); - - - HRESULT ( __stdcall *GetWrapperCode )( - IWrappedProtocol * This, - LONG *pnCode, - DWORD_PTR dwReserved); - - - } IWrappedProtocolVtbl; - - struct IWrappedProtocol - { - struct IWrappedProtocolVtbl *lpVtbl; - }; -# 10542 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0052_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0052_v0_0_s_ifspec; - - - - - - - -typedef IGetBindHandle *LPGETBINDHANDLE; - -typedef -enum __MIDL_IGetBindHandle_0001 - { - BINDHANDLETYPES_APPCACHE = 0, - BINDHANDLETYPES_DEPENDENCY = 0x1, - BINDHANDLETYPES_COUNT = ( BINDHANDLETYPES_DEPENDENCY + 1 ) - } BINDHANDLETYPES; - - -extern const IID IID_IGetBindHandle; -# 10579 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IGetBindHandleVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IGetBindHandle * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IGetBindHandle * This); - - - ULONG ( __stdcall *Release )( - IGetBindHandle * This); - - - HRESULT ( __stdcall *GetBindHandle )( - IGetBindHandle * This, - BINDHANDLETYPES enumRequestedHandle, - HANDLE *pRetHandle); - - - } IGetBindHandleVtbl; - - struct IGetBindHandle - { - struct IGetBindHandleVtbl *lpVtbl; - }; -# 10647 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -typedef struct _tagPROTOCOL_ARGUMENT - { - LPCWSTR szMethod; - LPCWSTR szTargetUrl; - } PROTOCOL_ARGUMENT; - -typedef struct _tagPROTOCOL_ARGUMENT *LPPROTOCOL_ARGUMENT; - - - - - - -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0053_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0053_v0_0_s_ifspec; - - - - - - - -typedef IBindCallbackRedirect *LPBINDCALLBACKREDIRECT; - - -extern const IID IID_IBindCallbackRedirect; -# 10689 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IBindCallbackRedirectVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IBindCallbackRedirect * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IBindCallbackRedirect * This); - - - ULONG ( __stdcall *Release )( - IBindCallbackRedirect * This); - - - HRESULT ( __stdcall *Redirect )( - IBindCallbackRedirect * This, - LPCWSTR lpcUrl, - VARIANT_BOOL *vbCancel); - - - } IBindCallbackRedirectVtbl; - - struct IBindCallbackRedirect - { - struct IBindCallbackRedirectVtbl *lpVtbl; - }; -# 10759 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0054_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0054_v0_0_s_ifspec; -# 10769 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -extern const IID IID_IBindHttpSecurity; -# 10785 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 - typedef struct IBindHttpSecurityVtbl - { - - - - HRESULT ( __stdcall *QueryInterface )( - IBindHttpSecurity * This, - const IID * const riid, - - void **ppvObject); - - - ULONG ( __stdcall *AddRef )( - IBindHttpSecurity * This); - - - ULONG ( __stdcall *Release )( - IBindHttpSecurity * This); - - - HRESULT ( __stdcall *GetIgnoreCertMask )( - IBindHttpSecurity * This, - DWORD *pdwIgnoreCertMask); - - - } IBindHttpSecurityVtbl; - - struct IBindHttpSecurity - { - struct IBindHttpSecurityVtbl *lpVtbl; - }; -# 10853 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\urlmon.h" 3 -#pragma warning(pop) - - - -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0055_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_urlmon_0000_0055_v0_0_s_ifspec; - - - -unsigned long __stdcall BSTR_UserSize( unsigned long *, unsigned long , BSTR * ); -unsigned char * __stdcall BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * ); -unsigned char * __stdcall BSTR_UserUnmarshal( unsigned long *, unsigned char *, BSTR * ); -void __stdcall BSTR_UserFree( unsigned long *, BSTR * ); - -unsigned long __stdcall HWND_UserSize( unsigned long *, unsigned long , HWND * ); -unsigned char * __stdcall HWND_UserMarshal( unsigned long *, unsigned char *, HWND * ); -unsigned char * __stdcall HWND_UserUnmarshal( unsigned long *, unsigned char *, HWND * ); -void __stdcall HWND_UserFree( unsigned long *, HWND * ); - -unsigned long __stdcall BSTR_UserSize64( unsigned long *, unsigned long , BSTR * ); -unsigned char * __stdcall BSTR_UserMarshal64( unsigned long *, unsigned char *, BSTR * ); -unsigned char * __stdcall BSTR_UserUnmarshal64( unsigned long *, unsigned char *, BSTR * ); -void __stdcall BSTR_UserFree64( unsigned long *, BSTR * ); - -unsigned long __stdcall HWND_UserSize64( unsigned long *, unsigned long , HWND * ); -unsigned char * __stdcall HWND_UserMarshal64( unsigned long *, unsigned char *, HWND * ); -unsigned char * __stdcall HWND_UserUnmarshal64( unsigned long *, unsigned char *, HWND * ); -void __stdcall HWND_UserFree64( unsigned long *, HWND * ); - - HRESULT __stdcall IBinding_GetBindResult_Proxy( - IBinding * This, - CLSID *pclsidProtocol, - DWORD *pdwResult, - - LPOLESTR *pszResult, - DWORD *pdwReserved); - - - HRESULT __stdcall IBinding_GetBindResult_Stub( - IBinding * This, - CLSID *pclsidProtocol, - DWORD *pdwResult, - LPOLESTR *pszResult, - DWORD dwReserved); - - HRESULT __stdcall IBindStatusCallback_GetBindInfo_Proxy( - IBindStatusCallback * This, - DWORD *grfBINDF, - BINDINFO *pbindinfo); - - - HRESULT __stdcall IBindStatusCallback_GetBindInfo_Stub( - IBindStatusCallback * This, - DWORD *grfBINDF, - RemBINDINFO *pbindinfo, - RemSTGMEDIUM *pstgmed); - - HRESULT __stdcall IBindStatusCallback_OnDataAvailable_Proxy( - IBindStatusCallback * This, - DWORD grfBSCF, - DWORD dwSize, - FORMATETC *pformatetc, - STGMEDIUM *pstgmed); - - - HRESULT __stdcall IBindStatusCallback_OnDataAvailable_Stub( - IBindStatusCallback * This, - DWORD grfBSCF, - DWORD dwSize, - RemFORMATETC *pformatetc, - RemSTGMEDIUM *pstgmed); - - HRESULT __stdcall IBindStatusCallbackEx_GetBindInfoEx_Proxy( - IBindStatusCallbackEx * This, - DWORD *grfBINDF, - BINDINFO *pbindinfo, - DWORD *grfBINDF2, - DWORD *pdwReserved); - - - HRESULT __stdcall IBindStatusCallbackEx_GetBindInfoEx_Stub( - IBindStatusCallbackEx * This, - DWORD *grfBINDF, - RemBINDINFO *pbindinfo, - RemSTGMEDIUM *pstgmed, - DWORD *grfBINDF2, - DWORD *pdwReserved); - - HRESULT __stdcall IWinInetInfo_QueryOption_Proxy( - IWinInetInfo * This, - DWORD dwOption, - LPVOID pBuffer, - DWORD *pcbBuf); - - - HRESULT __stdcall IWinInetInfo_QueryOption_Stub( - IWinInetInfo * This, - DWORD dwOption, - BYTE *pBuffer, - DWORD *pcbBuf); - - HRESULT __stdcall IWinInetHttpInfo_QueryInfo_Proxy( - IWinInetHttpInfo * This, - DWORD dwOption, - LPVOID pBuffer, - DWORD *pcbBuf, - DWORD *pdwFlags, - DWORD *pdwReserved); - - - HRESULT __stdcall IWinInetHttpInfo_QueryInfo_Stub( - IWinInetHttpInfo * This, - DWORD dwOption, - BYTE *pBuffer, - DWORD *pcbBuf, - DWORD *pdwFlags, - DWORD *pdwReserved); - - HRESULT __stdcall IBindHost_MonikerBindToStorage_Proxy( - IBindHost * This, - IMoniker *pMk, - IBindCtx *pBC, - IBindStatusCallback *pBSC, - const IID * const riid, - void **ppvObj); - - - HRESULT __stdcall IBindHost_MonikerBindToStorage_Stub( - IBindHost * This, - IMoniker *pMk, - IBindCtx *pBC, - IBindStatusCallback *pBSC, - const IID * const riid, - IUnknown **ppvObj); - - HRESULT __stdcall IBindHost_MonikerBindToObject_Proxy( - IBindHost * This, - IMoniker *pMk, - IBindCtx *pBC, - IBindStatusCallback *pBSC, - const IID * const riid, - void **ppvObj); - - - HRESULT __stdcall IBindHost_MonikerBindToObject_Stub( - IBindHost * This, - IMoniker *pMk, - IBindCtx *pBC, - IBindStatusCallback *pBSC, - const IID * const riid, - IUnknown **ppvObj); -# 260 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidl.h" 1 3 -# 98 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidl.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - -#pragma warning(disable: 4201) -#pragma warning(disable: 4237) -# 1198 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidl.h" 3 -enum PIDMSI_STATUS_VALUE - { - PIDMSI_STATUS_NORMAL = 0, - PIDMSI_STATUS_NEW = ( PIDMSI_STATUS_NORMAL + 1 ) , - PIDMSI_STATUS_PRELIM = ( PIDMSI_STATUS_NEW + 1 ) , - PIDMSI_STATUS_DRAFT = ( PIDMSI_STATUS_PRELIM + 1 ) , - PIDMSI_STATUS_INPROGRESS = ( PIDMSI_STATUS_DRAFT + 1 ) , - PIDMSI_STATUS_EDIT = ( PIDMSI_STATUS_INPROGRESS + 1 ) , - PIDMSI_STATUS_REVIEW = ( PIDMSI_STATUS_EDIT + 1 ) , - PIDMSI_STATUS_PROOF = ( PIDMSI_STATUS_REVIEW + 1 ) , - PIDMSI_STATUS_FINAL = ( PIDMSI_STATUS_PROOF + 1 ) , - PIDMSI_STATUS_OTHER = 0x7fff - } ; - - - - - extern __declspec(dllimport) HRESULT __stdcall PropVariantCopy( - PROPVARIANT* pvarDest, - const PROPVARIANT * pvarSrc); - -extern __declspec(dllimport) HRESULT __stdcall PropVariantClear( PROPVARIANT* pvar); - -extern __declspec(dllimport) HRESULT __stdcall FreePropVariantArray( - ULONG cVariants, - PROPVARIANT* rgvars); -# 1255 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidl.h" 3 -typedef struct tagSERIALIZEDPROPERTYVALUE -{ - DWORD dwType; - BYTE rgb[1]; -} SERIALIZEDPROPERTYVALUE; - - -extern - -SERIALIZEDPROPERTYVALUE* __stdcall -StgConvertVariantToProperty( - const PROPVARIANT* pvar, - USHORT CodePage, - SERIALIZEDPROPERTYVALUE* pprop, - ULONG* pcb, - PROPID pid, - BOOLEAN fReserved, - ULONG* pcIndirect); -# 1291 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\propidl.h" 3 -#pragma warning(pop) - - - - - - -extern RPC_IF_HANDLE __MIDL_itf_propidl_0000_0004_v0_0_c_ifspec; -extern RPC_IF_HANDLE __MIDL_itf_propidl_0000_0004_v0_0_s_ifspec; - - - -unsigned long __stdcall BSTR_UserSize( unsigned long *, unsigned long , BSTR * ); -unsigned char * __stdcall BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * ); -unsigned char * __stdcall BSTR_UserUnmarshal( unsigned long *, unsigned char *, BSTR * ); -void __stdcall BSTR_UserFree( unsigned long *, BSTR * ); - -unsigned long __stdcall LPSAFEARRAY_UserSize( unsigned long *, unsigned long , LPSAFEARRAY * ); -unsigned char * __stdcall LPSAFEARRAY_UserMarshal( unsigned long *, unsigned char *, LPSAFEARRAY * ); -unsigned char * __stdcall LPSAFEARRAY_UserUnmarshal( unsigned long *, unsigned char *, LPSAFEARRAY * ); -void __stdcall LPSAFEARRAY_UserFree( unsigned long *, LPSAFEARRAY * ); - -unsigned long __stdcall BSTR_UserSize64( unsigned long *, unsigned long , BSTR * ); -unsigned char * __stdcall BSTR_UserMarshal64( unsigned long *, unsigned char *, BSTR * ); -unsigned char * __stdcall BSTR_UserUnmarshal64( unsigned long *, unsigned char *, BSTR * ); -void __stdcall BSTR_UserFree64( unsigned long *, BSTR * ); - -unsigned long __stdcall LPSAFEARRAY_UserSize64( unsigned long *, unsigned long , LPSAFEARRAY * ); -unsigned char * __stdcall LPSAFEARRAY_UserMarshal64( unsigned long *, unsigned char *, LPSAFEARRAY * ); -unsigned char * __stdcall LPSAFEARRAY_UserUnmarshal64( unsigned long *, unsigned char *, LPSAFEARRAY * ); -void __stdcall LPSAFEARRAY_UserFree64( unsigned long *, LPSAFEARRAY * ); - - HRESULT __stdcall IEnumSTATPROPSTG_Next_Proxy( - IEnumSTATPROPSTG * This, - ULONG celt, - - STATPROPSTG *rgelt, - - ULONG *pceltFetched); - - - HRESULT __stdcall IEnumSTATPROPSTG_Next_Stub( - IEnumSTATPROPSTG * This, - ULONG celt, - STATPROPSTG *rgelt, - ULONG *pceltFetched); - - HRESULT __stdcall IEnumSTATPROPSETSTG_Next_Proxy( - IEnumSTATPROPSETSTG * This, - ULONG celt, - - STATPROPSETSTG *rgelt, - - ULONG *pceltFetched); - - - HRESULT __stdcall IEnumSTATPROPSETSTG_Next_Stub( - IEnumSTATPROPSETSTG * This, - ULONG celt, - STATPROPSETSTG *rgelt, - ULONG *pceltFetched); -# 261 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 2 3 - - - - - - - -extern __declspec(dllimport) HRESULT __stdcall CreateStdProgressIndicator( HWND hwndParent, - LPCOLESTR pszTitle, - IBindStatusCallback * pIbscCaller, - IBindStatusCallback ** ppIbsc); - - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 279 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\objbase.h" 2 3 -# 38 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 2 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 1 3 - - - -#pragma warning(push) -#pragma warning(disable: 4001) -#pragma warning(disable: 4820) -# 29 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 1 3 -# 24 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/pshpack8.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(push,8) -# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 2 3 -# 42 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern const IID IID_StdOle; -# 74 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) BSTR __stdcall SysAllocString( const OLECHAR * psz); -extern __declspec(dllimport) INT __stdcall SysReAllocString( BSTR* pbstr, const OLECHAR* psz); -extern __declspec(dllimport) BSTR __stdcall SysAllocStringLen( const OLECHAR * strIn, UINT ui); - extern __declspec(dllimport) INT __stdcall SysReAllocStringLen( BSTR* pbstr, const OLECHAR* psz, unsigned int len); -extern __declspec(dllimport) HRESULT __stdcall SysAddRefString( BSTR bstrString); -extern __declspec(dllimport) void __stdcall SysReleaseString( BSTR bstrString); -extern __declspec(dllimport) void __stdcall SysFreeString( BSTR bstrString); -extern __declspec(dllimport) UINT __stdcall SysStringLen( BSTR pbstr); - - -extern __declspec(dllimport) UINT __stdcall SysStringByteLen( BSTR bstr); -extern __declspec(dllimport) BSTR __stdcall SysAllocStringByteLen( LPCSTR psz, UINT len); -# 99 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) INT __stdcall DosDateTimeToVariantTime( USHORT wDosDate, USHORT wDosTime, DOUBLE * pvtime); - -extern __declspec(dllimport) INT __stdcall VariantTimeToDosDateTime( DOUBLE vtime, USHORT * pwDosDate, USHORT * pwDosTime); -# 111 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) INT __stdcall SystemTimeToVariantTime( LPSYSTEMTIME lpSystemTime, DOUBLE *pvtime); -extern __declspec(dllimport) INT __stdcall VariantTimeToSystemTime( DOUBLE vtime, LPSYSTEMTIME lpSystemTime); -# 127 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) HRESULT __stdcall SafeArrayAllocDescriptor( UINT cDims, SAFEARRAY ** ppsaOut); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayAllocDescriptorEx( VARTYPE vt, UINT cDims, SAFEARRAY ** ppsaOut); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayAllocData( SAFEARRAY * psa); -extern __declspec(dllimport) SAFEARRAY * __stdcall SafeArrayCreate( VARTYPE vt, UINT cDims, SAFEARRAYBOUND * rgsabound); -extern __declspec(dllimport) SAFEARRAY * __stdcall SafeArrayCreateEx( VARTYPE vt, UINT cDims, SAFEARRAYBOUND * rgsabound, PVOID pvExtra); - -extern __declspec(dllimport) HRESULT __stdcall SafeArrayCopyData( SAFEARRAY *psaSource, SAFEARRAY *psaTarget); -extern __declspec(dllimport) void __stdcall SafeArrayReleaseDescriptor( SAFEARRAY * psa); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayDestroyDescriptor( SAFEARRAY * psa); -extern __declspec(dllimport) void __stdcall SafeArrayReleaseData( PVOID pData); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayDestroyData( SAFEARRAY * psa); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayAddRef( SAFEARRAY * psa, PVOID *ppDataToRelease); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayDestroy( SAFEARRAY * psa); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayRedim( SAFEARRAY * psa, SAFEARRAYBOUND * psaboundNew); -extern __declspec(dllimport) UINT __stdcall SafeArrayGetDim( SAFEARRAY * psa); -extern __declspec(dllimport) UINT __stdcall SafeArrayGetElemsize( SAFEARRAY * psa); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayGetUBound( SAFEARRAY * psa, UINT nDim, LONG * plUbound); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayGetLBound( SAFEARRAY * psa, UINT nDim, LONG * plLbound); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayLock( SAFEARRAY * psa); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayUnlock( SAFEARRAY * psa); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayAccessData( SAFEARRAY * psa, void ** ppvData); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayUnaccessData( SAFEARRAY * psa); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayGetElement( SAFEARRAY * psa, LONG * rgIndices, void * pv); - -extern __declspec(dllimport) HRESULT __stdcall SafeArrayPutElement( SAFEARRAY * psa, LONG * rgIndices, void * pv); - -extern __declspec(dllimport) HRESULT __stdcall SafeArrayCopy( SAFEARRAY * psa, SAFEARRAY ** ppsaOut); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayPtrOfIndex( SAFEARRAY * psa, LONG * rgIndices, void ** ppvData); -extern __declspec(dllimport) HRESULT __stdcall SafeArraySetRecordInfo( SAFEARRAY * psa, IRecordInfo * prinfo); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayGetRecordInfo( SAFEARRAY * psa, IRecordInfo ** prinfo); -extern __declspec(dllimport) HRESULT __stdcall SafeArraySetIID( SAFEARRAY * psa, const GUID * const guid); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayGetIID( SAFEARRAY * psa, GUID * pguid); -extern __declspec(dllimport) HRESULT __stdcall SafeArrayGetVartype( SAFEARRAY * psa, VARTYPE * pvt); -extern __declspec(dllimport) SAFEARRAY * __stdcall SafeArrayCreateVector( VARTYPE vt, LONG lLbound, ULONG cElements); -extern __declspec(dllimport) SAFEARRAY * __stdcall SafeArrayCreateVectorEx( VARTYPE vt, LONG lLbound, ULONG cElements, PVOID pvExtra); -# 174 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) void __stdcall VariantInit( VARIANTARG * pvarg); -extern __declspec(dllimport) HRESULT __stdcall VariantClear( VARIANTARG * pvarg); - -extern __declspec(dllimport) HRESULT __stdcall VariantCopy( VARIANTARG * pvargDest, const VARIANTARG * pvargSrc); - -extern __declspec(dllimport) HRESULT __stdcall VariantCopyInd( VARIANT * pvarDest, const VARIANTARG * pvargSrc); - -extern __declspec(dllimport) HRESULT __stdcall VariantChangeType( VARIANTARG * pvargDest, - const VARIANTARG * pvarSrc, USHORT wFlags, VARTYPE vt); - -extern __declspec(dllimport) HRESULT __stdcall VariantChangeTypeEx( VARIANTARG * pvargDest, - const VARIANTARG * pvarSrc, LCID lcid, USHORT wFlags, VARTYPE vt); -# 213 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) HRESULT __stdcall VectorFromBstr ( BSTR bstr, SAFEARRAY ** ppsa); - -extern __declspec(dllimport) HRESULT __stdcall BstrFromVector ( SAFEARRAY *psa, BSTR *pbstr); -# 291 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromI2(SHORT sIn, BYTE * pbOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromI4(LONG lIn, BYTE * pbOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromI8(LONG64 i64In, BYTE * pbOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromR4(FLOAT fltIn, BYTE * pbOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromR8(DOUBLE dblIn, BYTE * pbOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromCy(CY cyIn, BYTE * pbOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromDate(DATE dateIn, BYTE * pbOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, BYTE * pbOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromDisp(IDispatch * pdispIn, LCID lcid, BYTE * pbOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromBool(VARIANT_BOOL boolIn, BYTE * pbOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromI1(CHAR cIn, BYTE *pbOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromUI2(USHORT uiIn, BYTE *pbOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromUI4(ULONG ulIn, BYTE *pbOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromUI8(ULONG64 ui64In, BYTE * pbOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI1FromDec( const DECIMAL *pdecIn, BYTE *pbOut); - -extern __declspec(dllimport) HRESULT __stdcall VarI2FromUI1(BYTE bIn, SHORT * psOut); -extern __declspec(dllimport) HRESULT __stdcall VarI2FromI4(LONG lIn, SHORT * psOut); -extern __declspec(dllimport) HRESULT __stdcall VarI2FromI8(LONG64 i64In, SHORT * psOut); -extern __declspec(dllimport) HRESULT __stdcall VarI2FromR4(FLOAT fltIn, SHORT * psOut); -extern __declspec(dllimport) HRESULT __stdcall VarI2FromR8(DOUBLE dblIn, SHORT * psOut); -extern __declspec(dllimport) HRESULT __stdcall VarI2FromCy(CY cyIn, SHORT * psOut); -extern __declspec(dllimport) HRESULT __stdcall VarI2FromDate(DATE dateIn, SHORT * psOut); -extern __declspec(dllimport) HRESULT __stdcall VarI2FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, SHORT * psOut); -extern __declspec(dllimport) HRESULT __stdcall VarI2FromDisp(IDispatch * pdispIn, LCID lcid, SHORT * psOut); -extern __declspec(dllimport) HRESULT __stdcall VarI2FromBool(VARIANT_BOOL boolIn, SHORT * psOut); -extern __declspec(dllimport) HRESULT __stdcall VarI2FromI1(CHAR cIn, SHORT *psOut); -extern __declspec(dllimport) HRESULT __stdcall VarI2FromUI2(USHORT uiIn, SHORT *psOut); -extern __declspec(dllimport) HRESULT __stdcall VarI2FromUI4(ULONG ulIn, SHORT *psOut); -extern __declspec(dllimport) HRESULT __stdcall VarI2FromUI8(ULONG64 ui64In, SHORT * psOut); -extern __declspec(dllimport) HRESULT __stdcall VarI2FromDec( const DECIMAL *pdecIn, SHORT *psOut); - -extern __declspec(dllimport) HRESULT __stdcall VarI4FromUI1(BYTE bIn, LONG * plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromI2(SHORT sIn, LONG * plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromI8(LONG64 i64In, LONG * plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromR4(FLOAT fltIn, LONG * plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromR8(DOUBLE dblIn, LONG * plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromCy(CY cyIn, LONG * plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromDate(DATE dateIn, LONG * plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, LONG * plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromDisp(IDispatch * pdispIn, LCID lcid, LONG * plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromBool(VARIANT_BOOL boolIn, LONG * plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromI1(CHAR cIn, LONG *plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromUI2(USHORT uiIn, LONG *plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromUI4(ULONG ulIn, LONG *plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromUI8(ULONG64 ui64In, LONG * plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromDec( const DECIMAL *pdecIn, LONG *plOut); - - - -extern __declspec(dllimport) HRESULT __stdcall VarI8FromUI1(BYTE bIn, LONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarI8FromI2(SHORT sIn, LONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarI8FromR4(FLOAT fltIn, LONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarI8FromR8(DOUBLE dblIn, LONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarI8FromCy( CY cyIn, LONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarI8FromDate(DATE dateIn, LONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarI8FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, LONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarI8FromDisp(IDispatch * pdispIn, LCID lcid, LONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarI8FromBool(VARIANT_BOOL boolIn, LONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarI8FromI1(CHAR cIn, LONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarI8FromUI2(USHORT uiIn, LONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarI8FromUI4(ULONG ulIn, LONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarI8FromUI8(ULONG64 ui64In, LONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarI8FromDec( const DECIMAL *pdecIn, LONG64 * pi64Out); - - - - - -extern __declspec(dllimport) HRESULT __stdcall VarR4FromUI1(BYTE bIn, FLOAT * pfltOut); -extern __declspec(dllimport) HRESULT __stdcall VarR4FromI2(SHORT sIn, FLOAT * pfltOut); -extern __declspec(dllimport) HRESULT __stdcall VarR4FromI4(LONG lIn, FLOAT * pfltOut); -extern __declspec(dllimport) HRESULT __stdcall VarR4FromI8(LONG64 i64In, FLOAT * pfltOut); -extern __declspec(dllimport) HRESULT __stdcall VarR4FromR8(DOUBLE dblIn, FLOAT * pfltOut); -extern __declspec(dllimport) HRESULT __stdcall VarR4FromCy(CY cyIn, FLOAT * pfltOut); -extern __declspec(dllimport) HRESULT __stdcall VarR4FromDate(DATE dateIn, FLOAT * pfltOut); -extern __declspec(dllimport) HRESULT __stdcall VarR4FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, FLOAT *pfltOut); -extern __declspec(dllimport) HRESULT __stdcall VarR4FromDisp(IDispatch * pdispIn, LCID lcid, FLOAT * pfltOut); -extern __declspec(dllimport) HRESULT __stdcall VarR4FromBool(VARIANT_BOOL boolIn, FLOAT * pfltOut); -extern __declspec(dllimport) HRESULT __stdcall VarR4FromI1(CHAR cIn, FLOAT *pfltOut); -extern __declspec(dllimport) HRESULT __stdcall VarR4FromUI2(USHORT uiIn, FLOAT *pfltOut); -extern __declspec(dllimport) HRESULT __stdcall VarR4FromUI4(ULONG ulIn, FLOAT *pfltOut); -extern __declspec(dllimport) HRESULT __stdcall VarR4FromUI8(ULONG64 ui64In, FLOAT * pfltOut); -extern __declspec(dllimport) HRESULT __stdcall VarR4FromDec( const DECIMAL *pdecIn, FLOAT *pfltOut); - -extern __declspec(dllimport) HRESULT __stdcall VarR8FromUI1(BYTE bIn, DOUBLE * pdblOut); -extern __declspec(dllimport) HRESULT __stdcall VarR8FromI2(SHORT sIn, DOUBLE * pdblOut); -extern __declspec(dllimport) HRESULT __stdcall VarR8FromI4(LONG lIn, DOUBLE * pdblOut); -extern __declspec(dllimport) HRESULT __stdcall VarR8FromI8(LONG64 i64In, DOUBLE * pdblOut); -extern __declspec(dllimport) HRESULT __stdcall VarR8FromR4(FLOAT fltIn, DOUBLE * pdblOut); -extern __declspec(dllimport) HRESULT __stdcall VarR8FromCy(CY cyIn, DOUBLE * pdblOut); -extern __declspec(dllimport) HRESULT __stdcall VarR8FromDate(DATE dateIn, DOUBLE * pdblOut); -extern __declspec(dllimport) HRESULT __stdcall VarR8FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, DOUBLE *pdblOut); -extern __declspec(dllimport) HRESULT __stdcall VarR8FromDisp(IDispatch * pdispIn, LCID lcid, DOUBLE * pdblOut); -extern __declspec(dllimport) HRESULT __stdcall VarR8FromBool(VARIANT_BOOL boolIn, DOUBLE * pdblOut); -extern __declspec(dllimport) HRESULT __stdcall VarR8FromI1(CHAR cIn, DOUBLE *pdblOut); -extern __declspec(dllimport) HRESULT __stdcall VarR8FromUI2(USHORT uiIn, DOUBLE *pdblOut); -extern __declspec(dllimport) HRESULT __stdcall VarR8FromUI4(ULONG ulIn, DOUBLE *pdblOut); -extern __declspec(dllimport) HRESULT __stdcall VarR8FromUI8(ULONG64 ui64In, DOUBLE * pdblOut); -extern __declspec(dllimport) HRESULT __stdcall VarR8FromDec( const DECIMAL *pdecIn, DOUBLE *pdblOut); - -extern __declspec(dllimport) HRESULT __stdcall VarDateFromUI1(BYTE bIn, DATE * pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromI2(SHORT sIn, DATE * pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromI4(LONG lIn, DATE * pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromI8(LONG64 i64In, DATE * pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromR4(FLOAT fltIn, DATE * pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromR8(DOUBLE dblIn, DATE * pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromCy(CY cyIn, DATE * pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, DATE *pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromDisp(IDispatch * pdispIn, LCID lcid, DATE * pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromBool(VARIANT_BOOL boolIn, DATE * pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromI1(CHAR cIn, DATE *pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromUI2(USHORT uiIn, DATE *pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromUI4(ULONG ulIn, DATE *pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromUI8(ULONG64 ui64In, DATE * pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromDec( const DECIMAL *pdecIn, DATE *pdateOut); - -extern __declspec(dllimport) HRESULT __stdcall VarCyFromUI1(BYTE bIn, CY * pcyOut); -extern __declspec(dllimport) HRESULT __stdcall VarCyFromI2(SHORT sIn, CY * pcyOut); -extern __declspec(dllimport) HRESULT __stdcall VarCyFromI4(LONG lIn, CY * pcyOut); -extern __declspec(dllimport) HRESULT __stdcall VarCyFromI8(LONG64 i64In, CY * pcyOut); -extern __declspec(dllimport) HRESULT __stdcall VarCyFromR4(FLOAT fltIn, CY * pcyOut); -extern __declspec(dllimport) HRESULT __stdcall VarCyFromR8(DOUBLE dblIn, CY * pcyOut); -extern __declspec(dllimport) HRESULT __stdcall VarCyFromDate(DATE dateIn, CY * pcyOut); -extern __declspec(dllimport) HRESULT __stdcall VarCyFromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, CY * pcyOut); -extern __declspec(dllimport) HRESULT __stdcall VarCyFromDisp( IDispatch * pdispIn, LCID lcid, CY * pcyOut); -extern __declspec(dllimport) HRESULT __stdcall VarCyFromBool(VARIANT_BOOL boolIn, CY * pcyOut); -extern __declspec(dllimport) HRESULT __stdcall VarCyFromI1(CHAR cIn, CY *pcyOut); -extern __declspec(dllimport) HRESULT __stdcall VarCyFromUI2(USHORT uiIn, CY *pcyOut); -extern __declspec(dllimport) HRESULT __stdcall VarCyFromUI4(ULONG ulIn, CY *pcyOut); -extern __declspec(dllimport) HRESULT __stdcall VarCyFromUI8(ULONG64 ui64In, CY * pcyOut); -extern __declspec(dllimport) HRESULT __stdcall VarCyFromDec( const DECIMAL *pdecIn, CY *pcyOut); - -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromUI1(BYTE bVal, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromI2(SHORT iVal, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromI4(LONG lIn, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromI8(LONG64 i64In, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromR4(FLOAT fltIn, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromR8(DOUBLE dblIn, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromCy(CY cyIn, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromDate( DATE dateIn, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromDisp(IDispatch * pdispIn, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromBool(VARIANT_BOOL boolIn, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromI1(CHAR cIn, LCID lcid, ULONG dwFlags, BSTR *pbstrOut); -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromUI2(USHORT uiIn, LCID lcid, ULONG dwFlags, BSTR *pbstrOut); -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromUI4(ULONG ulIn, LCID lcid, ULONG dwFlags, BSTR *pbstrOut); -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromUI8(ULONG64 ui64In, LCID lcid, ULONG dwFlags, BSTR * pbstrOut); -extern __declspec(dllimport) HRESULT __stdcall VarBstrFromDec( const DECIMAL *pdecIn, LCID lcid, ULONG dwFlags, BSTR *pbstrOut); - -extern __declspec(dllimport) HRESULT __stdcall VarBoolFromUI1(BYTE bIn, VARIANT_BOOL * pboolOut); - extern __declspec(dllimport) HRESULT __stdcall VarBoolFromI2( SHORT sIn, VARIANT_BOOL * pboolOut); -extern __declspec(dllimport) HRESULT __stdcall VarBoolFromI4(LONG lIn, VARIANT_BOOL * pboolOut); -extern __declspec(dllimport) HRESULT __stdcall VarBoolFromI8(LONG64 i64In, VARIANT_BOOL * pboolOut); -extern __declspec(dllimport) HRESULT __stdcall VarBoolFromR4(FLOAT fltIn, VARIANT_BOOL * pboolOut); -extern __declspec(dllimport) HRESULT __stdcall VarBoolFromR8(DOUBLE dblIn, VARIANT_BOOL * pboolOut); -extern __declspec(dllimport) HRESULT __stdcall VarBoolFromDate(DATE dateIn, VARIANT_BOOL * pboolOut); -extern __declspec(dllimport) HRESULT __stdcall VarBoolFromCy(CY cyIn, VARIANT_BOOL * pboolOut); -extern __declspec(dllimport) HRESULT __stdcall VarBoolFromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, VARIANT_BOOL * pboolOut); -extern __declspec(dllimport) HRESULT __stdcall VarBoolFromDisp(IDispatch * pdispIn, LCID lcid, VARIANT_BOOL * pboolOut); -extern __declspec(dllimport) HRESULT __stdcall VarBoolFromI1(CHAR cIn, VARIANT_BOOL *pboolOut); -extern __declspec(dllimport) HRESULT __stdcall VarBoolFromUI2(USHORT uiIn, VARIANT_BOOL *pboolOut); -extern __declspec(dllimport) HRESULT __stdcall VarBoolFromUI4(ULONG ulIn, VARIANT_BOOL *pboolOut); -extern __declspec(dllimport) HRESULT __stdcall VarBoolFromUI8(ULONG64 i64In, VARIANT_BOOL * pboolOut); -extern __declspec(dllimport) HRESULT __stdcall VarBoolFromDec( const DECIMAL *pdecIn, VARIANT_BOOL *pboolOut); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromUI1( - BYTE bIn, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromI2( - SHORT uiIn, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromI4( - LONG lIn, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromI8( - LONG64 i64In, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromR4( - FLOAT fltIn, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromR8( - DOUBLE dblIn, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromDate( - DATE dateIn, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromCy( - CY cyIn, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromStr( - LPCOLESTR strIn, - LCID lcid, - ULONG dwFlags, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromDisp( - IDispatch *pdispIn, - LCID lcid, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromBool( - VARIANT_BOOL boolIn, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromUI2( - USHORT uiIn, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromUI4( - ULONG ulIn, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromUI8( - ULONG64 i64In, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall -VarI1FromDec( - const DECIMAL *pdecIn, - CHAR *pcOut - ); - -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromUI1(BYTE bIn, USHORT *puiOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromI2(SHORT uiIn, USHORT *puiOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromI4(LONG lIn, USHORT *puiOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromI8(LONG64 i64In, USHORT *puiOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromR4(FLOAT fltIn, USHORT *puiOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromR8(DOUBLE dblIn, USHORT *puiOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromDate(DATE dateIn, USHORT *puiOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromCy(CY cyIn, USHORT *puiOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, USHORT *puiOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromDisp( IDispatch *pdispIn, LCID lcid, USHORT *puiOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromBool(VARIANT_BOOL boolIn, USHORT *puiOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromI1(CHAR cIn, USHORT *puiOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromUI4(ULONG ulIn, USHORT *puiOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromUI8(ULONG64 i64In, USHORT *puiOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI2FromDec( const DECIMAL *pdecIn, USHORT *puiOut); - -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromUI1(BYTE bIn, ULONG *pulOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromI2( SHORT uiIn, ULONG *pulOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromI4(LONG lIn, ULONG *pulOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromI8(LONG64 i64In, ULONG *plOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromR4(FLOAT fltIn, ULONG *pulOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromR8(DOUBLE dblIn, ULONG *pulOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromDate(DATE dateIn, ULONG *pulOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromCy(CY cyIn, ULONG *pulOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, ULONG *pulOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromDisp( IDispatch *pdispIn, LCID lcid, ULONG *pulOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromBool(VARIANT_BOOL boolIn, ULONG *pulOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromI1(CHAR cIn, ULONG *pulOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromUI2(USHORT uiIn, ULONG *pulOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromUI8(ULONG64 ui64In, ULONG *plOut); -extern __declspec(dllimport) HRESULT __stdcall VarUI4FromDec( const DECIMAL *pdecIn, ULONG *pulOut); - - - -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromUI1(BYTE bIn, ULONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromI2(SHORT sIn, ULONG64 * pi64Out); - - - - - - - -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromI4(LONG lIn, ULONG64 * pi64Out); - - - - - - - -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromI8(LONG64 ui64In, ULONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromR4(FLOAT fltIn, ULONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromR8(DOUBLE dblIn, ULONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromCy(CY cyIn, ULONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromDate(DATE dateIn, ULONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, ULONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromDisp( IDispatch * pdispIn, LCID lcid, ULONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromBool(VARIANT_BOOL boolIn, ULONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromI1(CHAR cIn, ULONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromUI2(USHORT uiIn, ULONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromUI4(ULONG ulIn, ULONG64 * pi64Out); -extern __declspec(dllimport) HRESULT __stdcall VarUI8FromDec( const DECIMAL *pdecIn, ULONG64 * pi64Out); - - - - - - -extern __declspec(dllimport) HRESULT __stdcall VarDecFromUI1( BYTE bIn, DECIMAL *pdecOut); -extern __declspec(dllimport) HRESULT __stdcall VarDecFromI2( SHORT uiIn, DECIMAL *pdecOut); -extern __declspec(dllimport) HRESULT __stdcall VarDecFromI4( LONG lIn, DECIMAL *pdecOut); -extern __declspec(dllimport) HRESULT __stdcall VarDecFromI8(LONG64 i64In, DECIMAL *pdecOut); -extern __declspec(dllimport) HRESULT __stdcall VarDecFromR4( FLOAT fltIn, DECIMAL *pdecOut); -extern __declspec(dllimport) HRESULT __stdcall VarDecFromR8( DOUBLE dblIn, DECIMAL *pdecOut); -extern __declspec(dllimport) HRESULT __stdcall VarDecFromDate( DATE dateIn, DECIMAL *pdecOut); -extern __declspec(dllimport) HRESULT __stdcall VarDecFromCy( CY cyIn, DECIMAL *pdecOut); -extern __declspec(dllimport) HRESULT __stdcall VarDecFromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, DECIMAL *pdecOut); -extern __declspec(dllimport) HRESULT __stdcall VarDecFromDisp( IDispatch *pdispIn, LCID lcid, DECIMAL *pdecOut); -extern __declspec(dllimport) HRESULT __stdcall VarDecFromBool( VARIANT_BOOL boolIn, DECIMAL *pdecOut); -extern __declspec(dllimport) HRESULT __stdcall VarDecFromI1( CHAR cIn, DECIMAL *pdecOut); -extern __declspec(dllimport) HRESULT __stdcall VarDecFromUI2( USHORT uiIn, DECIMAL *pdecOut); -extern __declspec(dllimport) HRESULT __stdcall VarDecFromUI4( ULONG ulIn, DECIMAL *pdecOut); -extern __declspec(dllimport) HRESULT __stdcall VarDecFromUI8(ULONG64 ui64In, DECIMAL *pdecOut); -# 644 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) HRESULT __stdcall VarI4FromI8(LONG64 i64In, LONG *plOut); -extern __declspec(dllimport) HRESULT __stdcall VarI4FromUI8(ULONG64 ui64In, LONG *plOut); -# 735 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -typedef struct { - INT cDig; - ULONG dwInFlags; - ULONG dwOutFlags; - INT cchUsed; - INT nBaseShift; - INT nPwr10; -} NUMPARSE; -# 786 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) HRESULT __stdcall VarParseNumFromStr( LPCOLESTR strIn, LCID lcid, ULONG dwFlags, - NUMPARSE * pnumprs, BYTE * rgbDig); - - -extern __declspec(dllimport) HRESULT __stdcall VarNumFromParseNum( NUMPARSE * pnumprs, BYTE * rgbDig, - ULONG dwVtBits, VARIANT * pvar); -# 803 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern HRESULT __stdcall VarAdd( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); -extern HRESULT __stdcall VarAnd( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); -extern HRESULT __stdcall VarCat( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); -extern HRESULT __stdcall VarDiv( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); -extern HRESULT __stdcall VarEqv( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); -extern HRESULT __stdcall VarIdiv( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); -extern HRESULT __stdcall VarImp( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); -extern HRESULT __stdcall VarMod( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); -extern HRESULT __stdcall VarMul( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); -extern HRESULT __stdcall VarOr( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); -extern HRESULT __stdcall VarPow( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); -extern HRESULT __stdcall VarSub( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); -extern HRESULT __stdcall VarXor( LPVARIANT pvarLeft, LPVARIANT pvarRight, LPVARIANT pvarResult); - -extern HRESULT __stdcall VarAbs( LPVARIANT pvarIn, LPVARIANT pvarResult); -extern HRESULT __stdcall VarFix( LPVARIANT pvarIn, LPVARIANT pvarResult); -extern HRESULT __stdcall VarInt( LPVARIANT pvarIn, LPVARIANT pvarResult); -extern HRESULT __stdcall VarNeg( LPVARIANT pvarIn, LPVARIANT pvarResult); -extern HRESULT __stdcall VarNot( LPVARIANT pvarIn, LPVARIANT pvarResult); - -extern HRESULT __stdcall VarRound( LPVARIANT pvarIn, int cDecimals, LPVARIANT pvarResult); - - -extern HRESULT __stdcall VarCmp( LPVARIANT pvarLeft, LPVARIANT pvarRight, LCID lcid, ULONG dwFlags); -# 860 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern HRESULT __stdcall VarDecAdd( LPDECIMAL pdecLeft, LPDECIMAL pdecRight, LPDECIMAL pdecResult); -extern HRESULT __stdcall VarDecDiv( LPDECIMAL pdecLeft, LPDECIMAL pdecRight, LPDECIMAL pdecResult); -extern HRESULT __stdcall VarDecMul( LPDECIMAL pdecLeft, LPDECIMAL pdecRight, LPDECIMAL pdecResult); -extern HRESULT __stdcall VarDecSub( LPDECIMAL pdecLeft, LPDECIMAL pdecRight, LPDECIMAL pdecResult); - -extern HRESULT __stdcall VarDecAbs( LPDECIMAL pdecIn, LPDECIMAL pdecResult); -extern HRESULT __stdcall VarDecFix( LPDECIMAL pdecIn, LPDECIMAL pdecResult); -extern HRESULT __stdcall VarDecInt( LPDECIMAL pdecIn, LPDECIMAL pdecResult); -extern HRESULT __stdcall VarDecNeg( LPDECIMAL pdecIn, LPDECIMAL pdecResult); - -extern HRESULT __stdcall VarDecRound( LPDECIMAL pdecIn, int cDecimals, LPDECIMAL pdecResult); - -extern HRESULT __stdcall VarDecCmp( LPDECIMAL pdecLeft, LPDECIMAL pdecRight); -extern HRESULT __stdcall VarDecCmpR8( LPDECIMAL pdecLeft, double dblRight); - - - - -extern HRESULT __stdcall VarCyAdd( CY cyLeft, CY cyRight, LPCY pcyResult); -extern HRESULT __stdcall VarCyMul( CY cyLeft, CY cyRight, LPCY pcyResult); -extern HRESULT __stdcall VarCyMulI4( CY cyLeft, LONG lRight, LPCY pcyResult); -extern HRESULT __stdcall VarCyMulI8( CY cyLeft, LONG64 lRight, LPCY pcyResult); -extern HRESULT __stdcall VarCySub( CY cyLeft, CY cyRight, LPCY pcyResult); - -extern HRESULT __stdcall VarCyAbs( CY cyIn, LPCY pcyResult); -extern HRESULT __stdcall VarCyFix( CY cyIn, LPCY pcyResult); -extern HRESULT __stdcall VarCyInt( CY cyIn, LPCY pcyResult); -extern HRESULT __stdcall VarCyNeg( CY cyIn, LPCY pcyResult); - -extern HRESULT __stdcall VarCyRound( CY cyIn, int cDecimals, LPCY pcyResult); - -extern HRESULT __stdcall VarCyCmp( CY cyLeft, CY cyRight); -extern HRESULT __stdcall VarCyCmpR8( CY cyLeft, double dblRight); - - - - -extern HRESULT __stdcall VarBstrCat( BSTR bstrLeft, BSTR bstrRight, LPBSTR pbstrResult); -extern HRESULT __stdcall VarBstrCmp( BSTR bstrLeft, BSTR bstrRight, LCID lcid, ULONG dwFlags); -extern HRESULT __stdcall VarR8Pow( double dblLeft, double dblRight, double *pdblResult); -extern HRESULT __stdcall VarR4CmpR8( float fltLeft, double dblRight); -extern HRESULT __stdcall VarR8Round( double dblIn, int cDecimals, double *pdblResult); -# 930 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -typedef struct { - SYSTEMTIME st; - USHORT wDayOfYear; -} UDATE; -# 944 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) HRESULT __stdcall VarDateFromUdate( UDATE *pudateIn, ULONG dwFlags, DATE *pdateOut); -extern __declspec(dllimport) HRESULT __stdcall VarDateFromUdateEx( UDATE *pudateIn, LCID lcid, ULONG dwFlags, DATE *pdateOut); - -extern __declspec(dllimport) HRESULT __stdcall VarUdateFromDate( DATE dateIn, ULONG dwFlags, UDATE *pudateOut); -# 959 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) HRESULT __stdcall GetAltMonthNames(LCID lcid, LPOLESTR * * prgp); -# 971 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) HRESULT __stdcall VarFormat( - LPVARIANT pvarIn, - LPOLESTR pstrFormat, - int iFirstDay, - int iFirstWeek, - ULONG dwFlags, - BSTR *pbstrOut - ); - -extern __declspec(dllimport) HRESULT __stdcall VarFormatDateTime( - LPVARIANT pvarIn, - int iNamedFormat, - ULONG dwFlags, - BSTR *pbstrOut - ); - -extern __declspec(dllimport) HRESULT __stdcall VarFormatNumber( - LPVARIANT pvarIn, - int iNumDig, - int iIncLead, - int iUseParens, - int iGroup, - ULONG dwFlags, - BSTR *pbstrOut - ); - -extern __declspec(dllimport) HRESULT __stdcall VarFormatPercent( - LPVARIANT pvarIn, - int iNumDig, - int iIncLead, - int iUseParens, - int iGroup, - ULONG dwFlags, - BSTR *pbstrOut - ); - -extern __declspec(dllimport) HRESULT __stdcall VarFormatCurrency( - LPVARIANT pvarIn, - int iNumDig, - int iIncLead, - int iUseParens, - int iGroup, - ULONG dwFlags, - BSTR *pbstrOut - ); - -extern __declspec(dllimport) HRESULT __stdcall VarWeekdayName( - int iWeekday, - int fAbbrev, - int iFirstDay, - ULONG dwFlags, - BSTR *pbstrOut - ); - -extern __declspec(dllimport) HRESULT __stdcall VarMonthName( - int iMonth, - int fAbbrev, - ULONG dwFlags, - BSTR *pbstrOut - ); - -extern __declspec(dllimport) HRESULT __stdcall VarFormatFromTokens( - LPVARIANT pvarIn, - LPOLESTR pstrFormat, - LPBYTE pbTokCur, - ULONG dwFlags, - BSTR *pbstrOut, - LCID lcid - ); - -extern __declspec(dllimport) HRESULT __stdcall VarTokenizeFormatString( - LPOLESTR pstrFormat, - LPBYTE rgbTok, - int cbTok, - int iFirstDay, - int iFirstWeek, - LCID lcid, - int *pcbActual - ); -# 1061 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -typedef ITypeLib *LPTYPELIB; - - - - - - - -typedef LONG DISPID; -typedef DISPID MEMBERID; -# 1093 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -typedef ITypeInfo *LPTYPEINFO; - - - - - - -typedef ITypeComp *LPTYPECOMP; - - - - - - -typedef ICreateTypeLib * LPCREATETYPELIB; - -typedef ICreateTypeInfo * LPCREATETYPEINFO; -# 1119 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) ULONG __stdcall LHashValOfNameSysA(SYSKIND syskind, LCID lcid, - LPCSTR szName); - - - -extern __declspec(dllimport) ULONG __stdcall -LHashValOfNameSys(SYSKIND syskind, LCID lcid, const OLECHAR * szName); -# 1138 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) HRESULT __stdcall LoadTypeLib( LPCOLESTR szFile, ITypeLib ** pptlib); - - - -typedef enum tagREGKIND -{ - REGKIND_DEFAULT, - REGKIND_REGISTER, - REGKIND_NONE -} REGKIND; -# 1157 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) HRESULT __stdcall LoadTypeLibEx(LPCOLESTR szFile, REGKIND regkind, - ITypeLib ** pptlib); - - - - -extern __declspec(dllimport) HRESULT __stdcall LoadRegTypeLib(const GUID * const rguid, WORD wVerMajor, WORD wVerMinor, - LCID lcid, ITypeLib ** pptlib); - - - -extern __declspec(dllimport) HRESULT __stdcall QueryPathOfRegTypeLib(const GUID * const guid, USHORT wMaj, USHORT wMin, - LCID lcid, LPBSTR lpbstrPathName); - - - - -extern __declspec(dllimport) HRESULT __stdcall RegisterTypeLib(ITypeLib * ptlib, LPCOLESTR szFullPath, - LPCOLESTR szHelpDir); - - - - - -extern __declspec(dllimport) HRESULT __stdcall UnRegisterTypeLib(const GUID * const libID, WORD wVerMajor, - WORD wVerMinor, LCID lcid, SYSKIND syskind); - - - -extern __declspec(dllimport) HRESULT __stdcall RegisterTypeLibForUser(ITypeLib *ptlib, OLECHAR *szFullPath, - OLECHAR *szHelpDir); - - - -extern __declspec(dllimport) HRESULT __stdcall UnRegisterTypeLibForUser( - const GUID * const libID, - WORD wMajorVerNum, - WORD wMinorVerNum, - LCID lcid, - SYSKIND syskind); - - -extern __declspec(dllimport) HRESULT __stdcall CreateTypeLib(SYSKIND syskind, LPCOLESTR szFile, - ICreateTypeLib ** ppctlib); - - -extern __declspec(dllimport) HRESULT __stdcall CreateTypeLib2(SYSKIND syskind, LPCOLESTR szFile, - ICreateTypeLib2 **ppctlib); - - - - - - -typedef IDispatch *LPDISPATCH; - -typedef struct tagPARAMDATA { - OLECHAR * szName; - VARTYPE vt; -} PARAMDATA, * LPPARAMDATA; - -typedef struct tagMETHODDATA { - OLECHAR * szName; - PARAMDATA * ppdata; - DISPID dispid; - UINT iMeth; - CALLCONV cc; - UINT cArgs; - WORD wFlags; - VARTYPE vtReturn; -} METHODDATA, * LPMETHODDATA; - -typedef struct tagINTERFACEDATA { - METHODDATA * pmethdata; - UINT cMembers; -} INTERFACEDATA, * LPINTERFACEDATA; - - - - - - - -extern __declspec(dllimport) HRESULT __stdcall DispGetParam( - DISPPARAMS * pdispparams, - UINT position, - VARTYPE vtTarg, - VARIANT * pvarResult, - UINT * puArgErr - ); - - - - extern __declspec(dllimport) HRESULT __stdcall DispGetIDsOfNames(ITypeInfo * ptinfo, LPOLESTR* rgszNames, - UINT cNames, DISPID * rgdispid); -# 1263 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) HRESULT __stdcall DispInvoke(void * _this, ITypeInfo * ptinfo, DISPID dispidMember, - WORD wFlags, DISPPARAMS * pparams, VARIANT * pvarResult, - EXCEPINFO * pexcepinfo, UINT * puArgErr); -# 1276 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) HRESULT __stdcall CreateDispTypeInfo(INTERFACEDATA * pidata, LCID lcid, - ITypeInfo ** pptinfo); - - - - - -extern __declspec(dllimport) HRESULT __stdcall CreateStdDispatch(IUnknown * punkOuter, void * pvThis, - ITypeInfo * ptinfo, IUnknown ** ppunkStdDisp); - - - - -extern __declspec(dllimport) HRESULT __stdcall DispCallFunc( void * pvInstance, ULONG_PTR oVft, CALLCONV cc, - VARTYPE vtReturn, UINT cActuals, VARTYPE * prgvt, - VARIANTARG ** prgpvarg, VARIANT * pvargResult); -# 1303 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -extern __declspec(dllimport) HRESULT __stdcall RegisterActiveObject(IUnknown * punk, const IID * const rclsid, - DWORD dwFlags, DWORD * pdwRegister); - -extern __declspec(dllimport) HRESULT __stdcall RevokeActiveObject(DWORD dwRegister, void * pvReserved); - -extern __declspec(dllimport) HRESULT __stdcall GetActiveObject(const IID * const rclsid, void * pvReserved, - IUnknown ** ppunk); - - - - - -extern __declspec(dllimport) HRESULT __stdcall SetErrorInfo( ULONG dwReserved, IErrorInfo * perrinfo); - -extern __declspec(dllimport) HRESULT __stdcall GetErrorInfo( ULONG dwReserved, IErrorInfo ** pperrinfo); - -extern __declspec(dllimport) HRESULT __stdcall CreateErrorInfo( ICreateErrorInfo ** pperrinfo); - - - - - -extern __declspec(dllimport) HRESULT __stdcall GetRecordInfoFromTypeInfo(ITypeInfo * pTypeInfo, - IRecordInfo ** ppRecInfo); - -extern __declspec(dllimport) HRESULT __stdcall GetRecordInfoFromGuids(const GUID * const rGuidTypeLib, - ULONG uVerMajor, ULONG uVerMinor, LCID lcid, - const GUID * const rGuidTypeInfo, IRecordInfo ** ppRecInfo); - - - - - -extern __declspec(dllimport) ULONG __stdcall OaBuildVersion(void); - -extern __declspec(dllimport) void __stdcall ClearCustData(LPCUSTDATA pCustData); - - -extern __declspec(dllimport) void __stdcall OaEnablePerUserTLibRegistration(void); -# 1429 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 1430 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\oleauto.h" 2 3 - - - - - -#pragma warning(pop) -# 39 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 2 3 -# 87 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 3 -extern __declspec(dllimport) HRESULT __stdcall CreateDataAdviseHolder( LPDATAADVISEHOLDER * ppDAHolder); - - - - -extern __declspec(dllimport) DWORD __stdcall OleBuildVersion( void ); - - extern __declspec(dllimport) HRESULT __stdcall WriteFmtUserTypeStg ( LPSTORAGE pstg, CLIPFORMAT cf, LPOLESTR lpszUserType); -extern __declspec(dllimport) HRESULT __stdcall ReadFmtUserTypeStg ( LPSTORAGE pstg, CLIPFORMAT * pcf, LPOLESTR * lplpszUserType); - - - - - extern __declspec(dllimport) HRESULT __stdcall OleInitialize( LPVOID pvReserved); -extern __declspec(dllimport) void __stdcall OleUninitialize(void); - - - - - -extern __declspec(dllimport) HRESULT __stdcall OleQueryLinkFromData( LPDATAOBJECT pSrcDataObject); -extern __declspec(dllimport) HRESULT __stdcall OleQueryCreateFromData( LPDATAOBJECT pSrcDataObject); - - - - -extern __declspec(dllimport) HRESULT __stdcall OleCreate( const IID * const rclsid, const IID * const riid, DWORD renderopt, - LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite, - LPSTORAGE pStg, LPVOID * ppvObj); - - -extern __declspec(dllimport) HRESULT __stdcall OleCreateEx( const IID * const rclsid, const IID * const riid, DWORD dwFlags, - DWORD renderopt, ULONG cFormats, DWORD* rgAdvf, - LPFORMATETC rgFormatEtc, IAdviseSink * lpAdviseSink, - DWORD * rgdwConnection, LPOLECLIENTSITE pClientSite, - LPSTORAGE pStg, LPVOID * ppvObj); - -extern __declspec(dllimport) HRESULT __stdcall OleCreateFromData( LPDATAOBJECT pSrcDataObj, const IID * const riid, - DWORD renderopt, LPFORMATETC pFormatEtc, - LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, - LPVOID * ppvObj); - - -extern __declspec(dllimport) HRESULT __stdcall OleCreateFromDataEx( LPDATAOBJECT pSrcDataObj, const IID * const riid, - DWORD dwFlags, DWORD renderopt, ULONG cFormats, DWORD* rgAdvf, - LPFORMATETC rgFormatEtc, IAdviseSink * lpAdviseSink, - DWORD * rgdwConnection, LPOLECLIENTSITE pClientSite, - LPSTORAGE pStg, LPVOID * ppvObj); - -extern __declspec(dllimport) HRESULT __stdcall OleCreateLinkFromData( LPDATAOBJECT pSrcDataObj, const IID * const riid, - DWORD renderopt, LPFORMATETC pFormatEtc, - LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, - LPVOID * ppvObj); - - -extern __declspec(dllimport) HRESULT __stdcall OleCreateLinkFromDataEx( LPDATAOBJECT pSrcDataObj, const IID * const riid, - DWORD dwFlags, DWORD renderopt, ULONG cFormats, DWORD* rgAdvf, - LPFORMATETC rgFormatEtc, IAdviseSink * lpAdviseSink, - DWORD * rgdwConnection, LPOLECLIENTSITE pClientSite, - LPSTORAGE pStg, LPVOID * ppvObj); - -extern __declspec(dllimport) HRESULT __stdcall OleCreateStaticFromData( LPDATAOBJECT pSrcDataObj, const IID * const iid, - DWORD renderopt, LPFORMATETC pFormatEtc, - LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, - LPVOID * ppvObj); - - -extern __declspec(dllimport) HRESULT __stdcall OleCreateLink( LPMONIKER pmkLinkSrc, const IID * const riid, - DWORD renderopt, LPFORMATETC lpFormatEtc, - LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID * ppvObj); - -extern __declspec(dllimport) HRESULT __stdcall OleCreateLinkEx( LPMONIKER pmkLinkSrc, const IID * const riid, - DWORD dwFlags, DWORD renderopt, ULONG cFormats, DWORD* rgAdvf, - LPFORMATETC rgFormatEtc, IAdviseSink * lpAdviseSink, - DWORD * rgdwConnection, LPOLECLIENTSITE pClientSite, - LPSTORAGE pStg, LPVOID * ppvObj); - -extern __declspec(dllimport) HRESULT __stdcall OleCreateLinkToFile( LPCOLESTR lpszFileName, const IID * const riid, - DWORD renderopt, LPFORMATETC lpFormatEtc, - LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID * ppvObj); - -extern __declspec(dllimport) HRESULT __stdcall OleCreateLinkToFileEx( LPCOLESTR lpszFileName, const IID * const riid, - DWORD dwFlags, DWORD renderopt, ULONG cFormats, DWORD* rgAdvf, - LPFORMATETC rgFormatEtc, IAdviseSink * lpAdviseSink, - DWORD * rgdwConnection, LPOLECLIENTSITE pClientSite, - LPSTORAGE pStg, LPVOID * ppvObj); - -extern __declspec(dllimport) HRESULT __stdcall OleCreateFromFile( const IID * const rclsid, LPCOLESTR lpszFileName, const IID * const riid, - DWORD renderopt, LPFORMATETC lpFormatEtc, - LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID * ppvObj); - - -extern __declspec(dllimport) HRESULT __stdcall OleCreateFromFileEx( const IID * const rclsid, LPCOLESTR lpszFileName, const IID * const riid, - DWORD dwFlags, DWORD renderopt, ULONG cFormats, DWORD* rgAdvf, - LPFORMATETC rgFormatEtc, IAdviseSink * lpAdviseSink, - DWORD * rgdwConnection, LPOLECLIENTSITE pClientSite, - LPSTORAGE pStg, LPVOID * ppvObj); - -extern __declspec(dllimport) HRESULT __stdcall OleLoad( LPSTORAGE pStg, const IID * const riid, LPOLECLIENTSITE pClientSite, - LPVOID * ppvObj); - -extern __declspec(dllimport) HRESULT __stdcall OleSave( LPPERSISTSTORAGE pPS, LPSTORAGE pStg, BOOL fSameAsLoad); - -extern __declspec(dllimport) HRESULT __stdcall OleLoadFromStream( LPSTREAM pStm, const IID * const iidInterface, LPVOID * ppvObj); -extern __declspec(dllimport) HRESULT __stdcall OleSaveToStream( LPPERSISTSTREAM pPStm, LPSTREAM pStm ); - - -extern __declspec(dllimport) HRESULT __stdcall OleSetContainedObject( LPUNKNOWN pUnknown, BOOL fContained); -extern __declspec(dllimport) HRESULT __stdcall OleNoteObjectVisible( LPUNKNOWN pUnknown, BOOL fVisible); - - - - -extern __declspec(dllimport) HRESULT __stdcall RegisterDragDrop( HWND hwnd, LPDROPTARGET pDropTarget); -extern __declspec(dllimport) HRESULT __stdcall RevokeDragDrop( HWND hwnd); -extern __declspec(dllimport) HRESULT __stdcall DoDragDrop( LPDATAOBJECT pDataObj, LPDROPSOURCE pDropSource, - DWORD dwOKEffects, LPDWORD pdwEffect); - - - -extern __declspec(dllimport) HRESULT __stdcall OleSetClipboard( LPDATAOBJECT pDataObj); -extern __declspec(dllimport) HRESULT __stdcall OleGetClipboard( LPDATAOBJECT * ppDataObj); - -extern __declspec(dllimport) HRESULT __stdcall OleGetClipboardWithEnterpriseInfo( IDataObject** dataObject, - PWSTR* dataEnterpriseId, - PWSTR* sourceDescription, - PWSTR* targetDescription, - PWSTR* dataDescription); - -extern __declspec(dllimport) HRESULT __stdcall OleFlushClipboard(void); -extern __declspec(dllimport) HRESULT __stdcall OleIsCurrentClipboard( LPDATAOBJECT pDataObj); - - - -extern __declspec(dllimport) HOLEMENU __stdcall OleCreateMenuDescriptor ( HMENU hmenuCombined, - LPOLEMENUGROUPWIDTHS lpMenuWidths); -extern __declspec(dllimport) HRESULT __stdcall OleSetMenuDescriptor ( HOLEMENU holemenu, HWND hwndFrame, - HWND hwndActiveObject, - LPOLEINPLACEFRAME lpFrame, - LPOLEINPLACEACTIVEOBJECT lpActiveObj); -extern __declspec(dllimport) HRESULT __stdcall OleDestroyMenuDescriptor ( HOLEMENU holemenu); - -extern __declspec(dllimport) HRESULT __stdcall OleTranslateAccelerator ( LPOLEINPLACEFRAME lpFrame, - LPOLEINPLACEFRAMEINFO lpFrameInfo, LPMSG lpmsg); - - - - -extern __declspec(dllimport) HANDLE __stdcall OleDuplicateData ( HANDLE hSrc, CLIPFORMAT cfFormat, - UINT uiFlags); - - - -extern __declspec(dllimport) HRESULT __stdcall OleDraw ( LPUNKNOWN pUnknown, DWORD dwAspect, HDC hdcDraw, - LPCRECT lprcBounds); - - extern __declspec(dllimport) HRESULT __stdcall OleRun( LPUNKNOWN pUnknown); -extern __declspec(dllimport) BOOL __stdcall OleIsRunning( LPOLEOBJECT pObject); -extern __declspec(dllimport) HRESULT __stdcall OleLockRunning( LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCloses); - -extern __declspec(dllimport) void __stdcall ReleaseStgMedium( LPSTGMEDIUM); - -extern __declspec(dllimport) HRESULT __stdcall CreateOleAdviseHolder( LPOLEADVISEHOLDER * ppOAHolder); - -extern __declspec(dllimport) HRESULT __stdcall OleCreateDefaultHandler( const IID * const clsid, LPUNKNOWN pUnkOuter, - const IID * const riid, LPVOID * lplpObj); - -extern __declspec(dllimport) HRESULT __stdcall OleCreateEmbeddingHelper( const IID * const clsid, LPUNKNOWN pUnkOuter, - DWORD flags, LPCLASSFACTORY pCF, - const IID * const riid, LPVOID * lplpObj); - -extern __declspec(dllimport) BOOL __stdcall IsAccelerator( HACCEL hAccel, int cAccelEntries, LPMSG lpMsg, - WORD * lpwCmd); - - -extern __declspec(dllimport) HGLOBAL __stdcall OleGetIconOfFile( LPOLESTR lpszPath, BOOL fUseFileAsLabel); - -extern __declspec(dllimport) HGLOBAL __stdcall OleGetIconOfClass( const IID * const rclsid, LPOLESTR lpszLabel, - BOOL fUseTypeAsLabel); - -extern __declspec(dllimport) HGLOBAL __stdcall OleMetafilePictFromIconAndLabel( HICON hIcon, LPOLESTR lpszLabel, - LPOLESTR lpszSourceFile, UINT iIconIndex); - - - - - - extern __declspec(dllimport) HRESULT __stdcall OleRegGetUserType ( const IID * const clsid, DWORD dwFormOfType, - LPOLESTR * pszUserType); - -extern __declspec(dllimport) HRESULT __stdcall OleRegGetMiscStatus ( const IID * const clsid, DWORD dwAspect, - DWORD * pdwStatus); - -extern __declspec(dllimport) HRESULT __stdcall OleRegEnumFormatEtc( const IID * const clsid, DWORD dwDirection, - LPENUMFORMATETC * ppenum); - -extern __declspec(dllimport) HRESULT __stdcall OleRegEnumVerbs ( const IID * const clsid, LPENUMOLEVERB * ppenum); - - - - - - -typedef struct _OLESTREAM * LPOLESTREAM; - -typedef struct _OLESTREAMVTBL -{ - DWORD (__stdcall* Get)(LPOLESTREAM, void *, DWORD); - DWORD (__stdcall* Put)(LPOLESTREAM, const void *, DWORD); -} OLESTREAMVTBL; -typedef OLESTREAMVTBL * LPOLESTREAMVTBL; - -typedef struct _OLESTREAM -{ - LPOLESTREAMVTBL lpstbl; -} OLESTREAM; - - -extern __declspec(dllimport) HRESULT __stdcall OleConvertOLESTREAMToIStorage - ( LPOLESTREAM lpolestream, - LPSTORAGE pstg, - const DVTARGETDEVICE * ptd); - -extern __declspec(dllimport) HRESULT __stdcall OleConvertIStorageToOLESTREAM - ( LPSTORAGE pstg, - LPOLESTREAM lpolestream); - - - - -extern __declspec(dllimport) HRESULT __stdcall OleDoAutoConvert( LPSTORAGE pStg, LPCLSID pClsidNew); -extern __declspec(dllimport) HRESULT __stdcall OleGetAutoConvert( const IID * const clsidOld, LPCLSID pClsidNew); -extern __declspec(dllimport) HRESULT __stdcall OleSetAutoConvert( const IID * const clsidOld, const IID * const clsidNew); - -extern __declspec(dllimport) HRESULT __stdcall SetConvertStg( LPSTORAGE pStg, BOOL fConvert); - - -extern __declspec(dllimport) HRESULT __stdcall OleConvertIStorageToOLESTREAMEx - ( LPSTORAGE pstg, - - CLIPFORMAT cfFormat, - LONG lWidth, - LONG lHeight, - DWORD dwSize, - LPSTGMEDIUM pmedium, - LPOLESTREAM polestm); - -extern __declspec(dllimport) HRESULT __stdcall OleConvertOLESTREAMToIStorageEx - ( LPOLESTREAM polestm, - LPSTORAGE pstg, - - CLIPFORMAT * pcfFormat, - LONG * plwWidth, - LONG * plHeight, - DWORD * pdwSize, - LPSTGMEDIUM pmedium); - - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 1 3 -# 27 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared/poppack.h" 3 -#pragma warning(disable: 4103) - -#pragma pack(pop) -# 349 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ole2.h" 2 3 - - - - - - -#pragma warning(pop) -# 222 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 1 3 -# 12 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -#pragma warning(push) -#pragma warning(disable: 4001) -#pragma warning(disable: 4820) -# 30 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -extern const GUID IID_IPrintDialogCallback; - - - - - - -extern const GUID IID_IPrintDialogServices; -# 46 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 1 3 -# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -#pragma warning(push) -#pragma warning(disable: 4001) -#pragma warning(disable: 4201) -#pragma warning(disable: 4820) -# 909 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\prsht.h" 3 -#pragma warning(pop) -# 47 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 2 3 -# 104 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -typedef UINT_PTR (__stdcall *LPOFNHOOKPROC) (HWND, UINT, WPARAM, LPARAM); -# 120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -typedef struct tagOFN_NT4A { - DWORD lStructSize; - HWND hwndOwner; - HINSTANCE hInstance; - LPCSTR lpstrFilter; - LPSTR lpstrCustomFilter; - DWORD nMaxCustFilter; - DWORD nFilterIndex; - LPSTR lpstrFile; - DWORD nMaxFile; - LPSTR lpstrFileTitle; - DWORD nMaxFileTitle; - LPCSTR lpstrInitialDir; - LPCSTR lpstrTitle; - DWORD Flags; - WORD nFileOffset; - WORD nFileExtension; - LPCSTR lpstrDefExt; - LPARAM lCustData; - LPOFNHOOKPROC lpfnHook; - LPCSTR lpTemplateName; -} OPENFILENAME_NT4A, *LPOPENFILENAME_NT4A; -typedef struct tagOFN_NT4W { - DWORD lStructSize; - HWND hwndOwner; - HINSTANCE hInstance; - LPCWSTR lpstrFilter; - LPWSTR lpstrCustomFilter; - DWORD nMaxCustFilter; - DWORD nFilterIndex; - LPWSTR lpstrFile; - DWORD nMaxFile; - LPWSTR lpstrFileTitle; - DWORD nMaxFileTitle; - LPCWSTR lpstrInitialDir; - LPCWSTR lpstrTitle; - DWORD Flags; - WORD nFileOffset; - WORD nFileExtension; - LPCWSTR lpstrDefExt; - LPARAM lCustData; - LPOFNHOOKPROC lpfnHook; - LPCWSTR lpTemplateName; -} OPENFILENAME_NT4W, *LPOPENFILENAME_NT4W; - - - - -typedef OPENFILENAME_NT4A OPENFILENAME_NT4; -typedef LPOPENFILENAME_NT4A LPOPENFILENAME_NT4; - - -typedef struct tagOFNA { - DWORD lStructSize; - HWND hwndOwner; - HINSTANCE hInstance; - LPCSTR lpstrFilter; - LPSTR lpstrCustomFilter; - DWORD nMaxCustFilter; - DWORD nFilterIndex; - LPSTR lpstrFile; - DWORD nMaxFile; - LPSTR lpstrFileTitle; - DWORD nMaxFileTitle; - LPCSTR lpstrInitialDir; - LPCSTR lpstrTitle; - DWORD Flags; - WORD nFileOffset; - WORD nFileExtension; - LPCSTR lpstrDefExt; - LPARAM lCustData; - LPOFNHOOKPROC lpfnHook; - LPCSTR lpTemplateName; - - - - - - void * pvReserved; - DWORD dwReserved; - DWORD FlagsEx; - -} OPENFILENAMEA, *LPOPENFILENAMEA; -typedef struct tagOFNW { - DWORD lStructSize; - HWND hwndOwner; - HINSTANCE hInstance; - LPCWSTR lpstrFilter; - LPWSTR lpstrCustomFilter; - DWORD nMaxCustFilter; - DWORD nFilterIndex; - LPWSTR lpstrFile; - DWORD nMaxFile; - LPWSTR lpstrFileTitle; - DWORD nMaxFileTitle; - LPCWSTR lpstrInitialDir; - LPCWSTR lpstrTitle; - DWORD Flags; - WORD nFileOffset; - WORD nFileExtension; - LPCWSTR lpstrDefExt; - LPARAM lCustData; - LPOFNHOOKPROC lpfnHook; - LPCWSTR lpTemplateName; - - - - - - void * pvReserved; - DWORD dwReserved; - DWORD FlagsEx; - -} OPENFILENAMEW, *LPOPENFILENAMEW; - - - - -typedef OPENFILENAMEA OPENFILENAME; -typedef LPOPENFILENAMEA LPOPENFILENAME; -# 253 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -__declspec(dllimport) BOOL __stdcall GetOpenFileNameA(LPOPENFILENAMEA); -__declspec(dllimport) BOOL __stdcall GetOpenFileNameW(LPOPENFILENAMEW); - - - - - -__declspec(dllimport) BOOL __stdcall GetSaveFileNameA(LPOPENFILENAMEA); -__declspec(dllimport) BOOL __stdcall GetSaveFileNameW(LPOPENFILENAMEW); - - - - - - - -__declspec(dllimport) short __stdcall GetFileTitleA(LPCSTR, LPSTR Buf, WORD cchSize); -__declspec(dllimport) short __stdcall GetFileTitleW(LPCWSTR, LPWSTR Buf, WORD cchSize); -# 329 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -typedef UINT_PTR (__stdcall *LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM); - - - -typedef struct _OFNOTIFYA -{ - NMHDR hdr; - LPOPENFILENAMEA lpOFN; - LPSTR pszFile; -} OFNOTIFYA, *LPOFNOTIFYA; - -typedef struct _OFNOTIFYW -{ - NMHDR hdr; - LPOPENFILENAMEW lpOFN; - LPWSTR pszFile; -} OFNOTIFYW, *LPOFNOTIFYW; - - - - -typedef OFNOTIFYA OFNOTIFY; -typedef LPOFNOTIFYA LPOFNOTIFY; - - - - -typedef struct _OFNOTIFYEXA -{ - NMHDR hdr; - LPOPENFILENAMEA lpOFN; - LPVOID psf; - LPVOID pidl; -} OFNOTIFYEXA, *LPOFNOTIFYEXA; - -typedef struct _OFNOTIFYEXW -{ - NMHDR hdr; - LPOPENFILENAMEW lpOFN; - LPVOID psf; - LPVOID pidl; -} OFNOTIFYEXW, *LPOFNOTIFYEXW; - - - - -typedef OFNOTIFYEXA OFNOTIFYEX; -typedef LPOFNOTIFYEXA LPOFNOTIFYEX; -# 473 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -typedef struct tagCHOOSECOLORA { - DWORD lStructSize; - HWND hwndOwner; - HWND hInstance; - COLORREF rgbResult; - COLORREF* lpCustColors; - DWORD Flags; - LPARAM lCustData; - LPCCHOOKPROC lpfnHook; - LPCSTR lpTemplateName; -} CHOOSECOLORA, *LPCHOOSECOLORA; -typedef struct tagCHOOSECOLORW { - DWORD lStructSize; - HWND hwndOwner; - HWND hInstance; - COLORREF rgbResult; - COLORREF* lpCustColors; - DWORD Flags; - LPARAM lCustData; - LPCCHOOKPROC lpfnHook; - LPCWSTR lpTemplateName; -} CHOOSECOLORW, *LPCHOOSECOLORW; - - - - -typedef CHOOSECOLORA CHOOSECOLOR; -typedef LPCHOOSECOLORA LPCHOOSECOLOR; -# 536 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -__declspec(dllimport) BOOL __stdcall ChooseColorA(LPCHOOSECOLORA); -__declspec(dllimport) BOOL __stdcall ChooseColorW(LPCHOOSECOLORW); -# 556 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -typedef UINT_PTR (__stdcall *LPFRHOOKPROC) (HWND, UINT, WPARAM, LPARAM); - -typedef struct tagFINDREPLACEA { - DWORD lStructSize; - HWND hwndOwner; - HINSTANCE hInstance; - - DWORD Flags; - LPSTR lpstrFindWhat; - LPSTR lpstrReplaceWith; - WORD wFindWhatLen; - WORD wReplaceWithLen; - LPARAM lCustData; - LPFRHOOKPROC lpfnHook; - LPCSTR lpTemplateName; -} FINDREPLACEA, *LPFINDREPLACEA; -typedef struct tagFINDREPLACEW { - DWORD lStructSize; - HWND hwndOwner; - HINSTANCE hInstance; - - DWORD Flags; - LPWSTR lpstrFindWhat; - LPWSTR lpstrReplaceWith; - WORD wFindWhatLen; - WORD wReplaceWithLen; - LPARAM lCustData; - LPFRHOOKPROC lpfnHook; - LPCWSTR lpTemplateName; -} FINDREPLACEW, *LPFINDREPLACEW; - - - - -typedef FINDREPLACEA FINDREPLACE; -typedef LPFINDREPLACEA LPFINDREPLACE; -# 623 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -__declspec(dllimport) HWND __stdcall FindTextA(LPFINDREPLACEA); -__declspec(dllimport) HWND __stdcall FindTextW(LPFINDREPLACEW); - - - - - - -__declspec(dllimport) HWND __stdcall ReplaceTextA(LPFINDREPLACEA); -__declspec(dllimport) HWND __stdcall ReplaceTextW(LPFINDREPLACEW); -# 668 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -typedef UINT_PTR (__stdcall *LPCFHOOKPROC) (HWND, UINT, WPARAM, LPARAM); - -typedef struct tagCHOOSEFONTA { - DWORD lStructSize; - HWND hwndOwner; - HDC hDC; - LPLOGFONTA lpLogFont; - INT iPointSize; - DWORD Flags; - COLORREF rgbColors; - LPARAM lCustData; - LPCFHOOKPROC lpfnHook; - LPCSTR lpTemplateName; - HINSTANCE hInstance; - - LPSTR lpszStyle; - - WORD nFontType; - - - WORD ___MISSING_ALIGNMENT__; - INT nSizeMin; - INT nSizeMax; - -} CHOOSEFONTA; -typedef struct tagCHOOSEFONTW { - DWORD lStructSize; - HWND hwndOwner; - HDC hDC; - LPLOGFONTW lpLogFont; - INT iPointSize; - DWORD Flags; - COLORREF rgbColors; - LPARAM lCustData; - LPCFHOOKPROC lpfnHook; - LPCWSTR lpTemplateName; - HINSTANCE hInstance; - - LPWSTR lpszStyle; - - WORD nFontType; - - - WORD ___MISSING_ALIGNMENT__; - INT nSizeMin; - INT nSizeMax; - -} CHOOSEFONTW; - - - -typedef CHOOSEFONTA CHOOSEFONT; - -typedef CHOOSEFONTA *LPCHOOSEFONTA; -typedef CHOOSEFONTW *LPCHOOSEFONTW; - - - -typedef LPCHOOSEFONTA LPCHOOSEFONT; - -typedef const CHOOSEFONTA *PCCHOOSEFONTA; -typedef const CHOOSEFONTW *PCCHOOSEFONTW; - - - - -typedef CHOOSEFONTA CHOOSEFONT; -typedef PCCHOOSEFONTA PCCHOOSEFONT; - - -__declspec(dllimport) BOOL __stdcall ChooseFontA(LPCHOOSEFONTA); -__declspec(dllimport) BOOL __stdcall ChooseFontW(LPCHOOSEFONTW); -# 856 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -typedef UINT_PTR (__stdcall *LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM); -typedef UINT_PTR (__stdcall *LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM); - -typedef struct tagPDA { - DWORD lStructSize; - HWND hwndOwner; - HGLOBAL hDevMode; - HGLOBAL hDevNames; - HDC hDC; - DWORD Flags; - WORD nFromPage; - WORD nToPage; - WORD nMinPage; - WORD nMaxPage; - WORD nCopies; - HINSTANCE hInstance; - LPARAM lCustData; - LPPRINTHOOKPROC lpfnPrintHook; - LPSETUPHOOKPROC lpfnSetupHook; - LPCSTR lpPrintTemplateName; - LPCSTR lpSetupTemplateName; - HGLOBAL hPrintTemplate; - HGLOBAL hSetupTemplate; -} PRINTDLGA, *LPPRINTDLGA; -typedef struct tagPDW { - DWORD lStructSize; - HWND hwndOwner; - HGLOBAL hDevMode; - HGLOBAL hDevNames; - HDC hDC; - DWORD Flags; - WORD nFromPage; - WORD nToPage; - WORD nMinPage; - WORD nMaxPage; - WORD nCopies; - HINSTANCE hInstance; - LPARAM lCustData; - LPPRINTHOOKPROC lpfnPrintHook; - LPSETUPHOOKPROC lpfnSetupHook; - LPCWSTR lpPrintTemplateName; - LPCWSTR lpSetupTemplateName; - HGLOBAL hPrintTemplate; - HGLOBAL hSetupTemplate; -} PRINTDLGW, *LPPRINTDLGW; - - - - -typedef PRINTDLGA PRINTDLG; -typedef LPPRINTDLGA LPPRINTDLG; - - -__declspec(dllimport) BOOL __stdcall PrintDlgA( LPPRINTDLGA pPD); -__declspec(dllimport) BOOL __stdcall PrintDlgW( LPPRINTDLGW pPD); -# 954 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -typedef struct IPrintDialogCallback { struct IPrintDialogCallbackVtbl * lpVtbl; } IPrintDialogCallback; typedef struct IPrintDialogCallbackVtbl IPrintDialogCallbackVtbl; struct IPrintDialogCallbackVtbl -{ - - HRESULT (__stdcall * QueryInterface) (IPrintDialogCallback * This, const IID * const riid, void **ppvObj) ; - ULONG (__stdcall * AddRef) (IPrintDialogCallback * This) ; - ULONG (__stdcall * Release)(IPrintDialogCallback * This) ; - - - HRESULT (__stdcall * InitDone) (IPrintDialogCallback * This) ; - HRESULT (__stdcall * SelectionChange) (IPrintDialogCallback * This) ; - HRESULT (__stdcall * HandleMessage) (IPrintDialogCallback * This, HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *pResult) ; -}; -# 986 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -typedef struct IPrintDialogServices { struct IPrintDialogServicesVtbl * lpVtbl; } IPrintDialogServices; typedef struct IPrintDialogServicesVtbl IPrintDialogServicesVtbl; struct IPrintDialogServicesVtbl -{ - - HRESULT (__stdcall * QueryInterface) (IPrintDialogServices * This, const IID * const riid, void **ppvObj) ; - ULONG (__stdcall * AddRef) (IPrintDialogServices * This) ; - ULONG (__stdcall * Release)(IPrintDialogServices * This) ; - - - HRESULT (__stdcall * GetCurrentDevMode) (IPrintDialogServices * This, LPDEVMODE pDevMode, UINT *pcbSize) ; - HRESULT (__stdcall * GetCurrentPrinterName) (IPrintDialogServices * This, LPWSTR pPrinterName, UINT *pcchSize) ; - HRESULT (__stdcall * GetCurrentPortName) (IPrintDialogServices * This, LPWSTR pPortName, UINT *pcchSize) ; -}; - - - - - -typedef struct tagPRINTPAGERANGE { - DWORD nFromPage; - DWORD nToPage; -} PRINTPAGERANGE; -typedef PRINTPAGERANGE *LPPRINTPAGERANGE; -typedef const PRINTPAGERANGE *PCPRINTPAGERANGE; - - - - - -typedef struct tagPDEXA { - DWORD lStructSize; - HWND hwndOwner; - HGLOBAL hDevMode; - HGLOBAL hDevNames; - HDC hDC; - DWORD Flags; - DWORD Flags2; - DWORD ExclusionFlags; - DWORD nPageRanges; - DWORD nMaxPageRanges; - LPPRINTPAGERANGE lpPageRanges; - DWORD nMinPage; - DWORD nMaxPage; - DWORD nCopies; - HINSTANCE hInstance; - LPCSTR lpPrintTemplateName; - LPUNKNOWN lpCallback; - DWORD nPropertyPages; - HPROPSHEETPAGE *lphPropertyPages; - DWORD nStartPage; - DWORD dwResultAction; -} PRINTDLGEXA, *LPPRINTDLGEXA; - - - -typedef struct tagPDEXW { - DWORD lStructSize; - HWND hwndOwner; - HGLOBAL hDevMode; - HGLOBAL hDevNames; - HDC hDC; - DWORD Flags; - DWORD Flags2; - DWORD ExclusionFlags; - DWORD nPageRanges; - DWORD nMaxPageRanges; - LPPRINTPAGERANGE lpPageRanges; - DWORD nMinPage; - DWORD nMaxPage; - DWORD nCopies; - HINSTANCE hInstance; - LPCWSTR lpPrintTemplateName; - LPUNKNOWN lpCallback; - DWORD nPropertyPages; - HPROPSHEETPAGE *lphPropertyPages; - DWORD nStartPage; - DWORD dwResultAction; -} PRINTDLGEXW, *LPPRINTDLGEXW; - - - - -typedef PRINTDLGEXA PRINTDLGEX; -typedef LPPRINTDLGEXA LPPRINTDLGEX; - - - - -__declspec(dllimport) HRESULT __stdcall PrintDlgExA( LPPRINTDLGEXA pPD); -__declspec(dllimport) HRESULT __stdcall PrintDlgExW( LPPRINTDLGEXW pPD); -# 1146 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -typedef struct tagDEVNAMES { - WORD wDriverOffset; - WORD wDeviceOffset; - WORD wOutputOffset; - WORD wDefault; -} DEVNAMES; -typedef DEVNAMES *LPDEVNAMES; -typedef const DEVNAMES *PCDEVNAMES; - - - - -__declspec(dllimport) DWORD __stdcall CommDlgExtendedError(void); -# 1169 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -typedef UINT_PTR (__stdcall* LPPAGEPAINTHOOK)( HWND, UINT, WPARAM, LPARAM ); -typedef UINT_PTR (__stdcall* LPPAGESETUPHOOK)( HWND, UINT, WPARAM, LPARAM ); - -typedef struct tagPSDA -{ - DWORD lStructSize; - HWND hwndOwner; - HGLOBAL hDevMode; - HGLOBAL hDevNames; - DWORD Flags; - POINT ptPaperSize; - RECT rtMinMargin; - RECT rtMargin; - HINSTANCE hInstance; - LPARAM lCustData; - LPPAGESETUPHOOK lpfnPageSetupHook; - LPPAGEPAINTHOOK lpfnPagePaintHook; - LPCSTR lpPageSetupTemplateName; - HGLOBAL hPageSetupTemplate; -} PAGESETUPDLGA, * LPPAGESETUPDLGA; -typedef struct tagPSDW -{ - DWORD lStructSize; - HWND hwndOwner; - HGLOBAL hDevMode; - HGLOBAL hDevNames; - DWORD Flags; - POINT ptPaperSize; - RECT rtMinMargin; - RECT rtMargin; - HINSTANCE hInstance; - LPARAM lCustData; - LPPAGESETUPHOOK lpfnPageSetupHook; - LPPAGEPAINTHOOK lpfnPagePaintHook; - LPCWSTR lpPageSetupTemplateName; - HGLOBAL hPageSetupTemplate; -} PAGESETUPDLGW, * LPPAGESETUPDLGW; - - - - -typedef PAGESETUPDLGA PAGESETUPDLG; -typedef LPPAGESETUPDLGA LPPAGESETUPDLG; - - -__declspec(dllimport) BOOL __stdcall PageSetupDlgA( LPPAGESETUPDLGA ); -__declspec(dllimport) BOOL __stdcall PageSetupDlgW( LPPAGESETUPDLGW ); -# 1266 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\commdlg.h" 3 -#pragma warning(pop) -# 225 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 1 3 -# 81 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 3 -#pragma warning(push) -#pragma warning(disable: 4127) -# 151 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 3 -LPUWSTR -__stdcall -uaw_CharUpperW( - LPUWSTR String - ); - -int -__stdcall -uaw_lstrcmpW( - PCUWSTR String1, - PCUWSTR String2 - ); - -int -__stdcall -uaw_lstrcmpiW( - PCUWSTR String1, - PCUWSTR String2 - ); - -int -__stdcall -uaw_lstrlenW( - LPCUWSTR String - ); - -PUWSTR -__cdecl -uaw_wcschr( - PCUWSTR String, - WCHAR Character - ); - -PUWSTR -__cdecl -uaw_wcscpy( - PUWSTR Destination, - PCUWSTR Source - ); - -int -__cdecl -uaw_wcsicmp( - PCUWSTR String1, - PCUWSTR String2 - ); - -size_t -__cdecl -uaw_wcslen( - PCUWSTR String - ); - -PUWSTR -__cdecl -uaw_wcsrchr( - PCUWSTR String, - WCHAR Character - ); -# 219 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 3 -__inline -LPUWSTR -static -ua_CharUpperW( - LPUWSTR String - ) -{ - if (1) { - return CharUpperW( (PWSTR)String ); - } else { - return uaw_CharUpperW( String ); - } -} - - - -__inline -int -static -ua_lstrcmpW( - LPCUWSTR String1, - LPCUWSTR String2 - ) -{ - if (1 && 1) { - return lstrcmpW( (LPCWSTR)String1, (LPCWSTR)String2); - } else { - return uaw_lstrcmpW( String1, String2 ); - } -} - - - -__inline -int -static -ua_lstrcmpiW( - LPCUWSTR String1, - LPCUWSTR String2 - ) -{ - if (1 && 1) { - return lstrcmpiW( (LPCWSTR)String1, (LPCWSTR)String2 ); - } else { - return uaw_lstrcmpiW( String1, String2 ); - } -} - - - -__inline -int -static -ua_lstrlenW( - LPCUWSTR String - ) -{ - if (1) { -#pragma warning(suppress: 28750) - return lstrlenW( (PCWSTR)String ); - } else { - return uaw_lstrlenW( String ); - } -} -# 316 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 3 -typedef WCHAR __unaligned *PUWSTR_C; -# 325 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 3 -__inline -PUWSTR_C -static -ua_wcschr( - PCUWSTR String, - WCHAR Character - ) -{ - if (1) { - return wcschr((PCWSTR)String, Character); - } else { - return (PUWSTR_C)uaw_wcschr(String, Character); - } -} - -__inline -PUWSTR_C -static -ua_wcsrchr( - PCUWSTR String, - WCHAR Character - ) -{ - if (1) { - return wcsrchr((PCWSTR)String, Character); - } else { - return (PUWSTR_C)uaw_wcsrchr(String, Character); - } -} -# 415 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 3 -__inline -PUWSTR -static -__declspec(deprecated) -ua_wcscpy( - PUWSTR Destination, - PCUWSTR Source - ) -{ - if (1 && 1) { -#pragma warning(push) -#pragma warning(disable: 4995) -#pragma warning(disable: 4996) - - - - return wcscpy( (PWSTR)Destination, (PCWSTR)Source ); -#pragma warning(pop) - } else { - return uaw_wcscpy( Destination, Source ); - } -} - - - -__inline -PUWSTR -static -ua_wcscpy_s( - PUWSTR Destination, - size_t DestinationSize, - PCUWSTR Source - ) -{ - if (1 && 1) { - return (wcscpy_s( (PWSTR)Destination, DestinationSize, (PCWSTR)Source ) == 0 ? Destination : ((void*)0)); - } else { - - return uaw_wcscpy( Destination, Source ); - } -} - - -__inline -size_t -static -ua_wcslen( - PCUWSTR String - ) -{ - if (1) { - return wcslen( (PCWSTR)String ); - } else { - return uaw_wcslen( String ); - } -} - - - -__inline -int -static -ua_wcsicmp( - PCUWSTR String1, - PCUWSTR String2 - ) -{ - if (1 && 1) { - return _wcsicmp( (LPCWSTR)String1, (LPCWSTR)String2 ); - } else { - return uaw_wcsicmp( String1, String2 ); - } -} -# 676 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\shared\\stralign.h" 3 -#pragma warning(pop) -# 229 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 -# 241 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 1 3 -# 36 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) -# 363 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -extern const GUID NETWORK_MANAGER_FIRST_IP_ADDRESS_ARRIVAL_GUID; - - - - - - - -extern const GUID NETWORK_MANAGER_LAST_IP_ADDRESS_REMOVAL_GUID; -# 382 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -extern const GUID DOMAIN_JOIN_GUID; - - - - - - - -extern const GUID DOMAIN_LEAVE_GUID; -# 402 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -extern const GUID FIREWALL_PORT_OPEN_GUID; - - - - - - - -extern const GUID FIREWALL_PORT_CLOSE_GUID; -# 422 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -extern const GUID MACHINE_POLICY_PRESENT_GUID; - - - - - - - -extern const GUID USER_POLICY_PRESENT_GUID; -# 442 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -extern const GUID RPC_INTERFACE_EVENT_GUID; - - - - - - - -extern const GUID NAMED_PIPE_EVENT_GUID; -# 461 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -extern const GUID CUSTOM_SYSTEM_STATE_CHANGE_EVENT_GUID; -# 472 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -typedef struct -{ - DWORD Data[2]; -} SERVICE_TRIGGER_CUSTOM_STATE_ID; - -typedef struct _SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM { - union { - SERVICE_TRIGGER_CUSTOM_STATE_ID CustomStateId; - struct { - DWORD DataOffset; - BYTE Data[1]; - } s; - } u; -} SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM, *LPSERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM; -# 502 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -typedef struct _SERVICE_DESCRIPTIONA { - LPSTR lpDescription; -} SERVICE_DESCRIPTIONA, *LPSERVICE_DESCRIPTIONA; - - - -typedef struct _SERVICE_DESCRIPTIONW { - LPWSTR lpDescription; -} SERVICE_DESCRIPTIONW, *LPSERVICE_DESCRIPTIONW; - - - - -typedef SERVICE_DESCRIPTIONA SERVICE_DESCRIPTION; -typedef LPSERVICE_DESCRIPTIONA LPSERVICE_DESCRIPTION; - - - - - -typedef enum _SC_ACTION_TYPE { - SC_ACTION_NONE = 0, - SC_ACTION_RESTART = 1, - SC_ACTION_REBOOT = 2, - SC_ACTION_RUN_COMMAND = 3, - SC_ACTION_OWN_RESTART = 4 -} SC_ACTION_TYPE; - -typedef struct _SC_ACTION { - SC_ACTION_TYPE Type; - DWORD Delay; -} SC_ACTION, *LPSC_ACTION; - -typedef struct _SERVICE_FAILURE_ACTIONSA { - DWORD dwResetPeriod; - LPSTR lpRebootMsg; - LPSTR lpCommand; - - - - DWORD cActions; - - - - SC_ACTION * lpsaActions; -} SERVICE_FAILURE_ACTIONSA, *LPSERVICE_FAILURE_ACTIONSA; -typedef struct _SERVICE_FAILURE_ACTIONSW { - DWORD dwResetPeriod; - LPWSTR lpRebootMsg; - LPWSTR lpCommand; - - - - DWORD cActions; - - - - SC_ACTION * lpsaActions; -} SERVICE_FAILURE_ACTIONSW, *LPSERVICE_FAILURE_ACTIONSW; - - - - -typedef SERVICE_FAILURE_ACTIONSA SERVICE_FAILURE_ACTIONS; -typedef LPSERVICE_FAILURE_ACTIONSA LPSERVICE_FAILURE_ACTIONS; - - - - - -typedef struct _SERVICE_DELAYED_AUTO_START_INFO { - BOOL fDelayedAutostart; -} SERVICE_DELAYED_AUTO_START_INFO, *LPSERVICE_DELAYED_AUTO_START_INFO; - - - - -typedef struct _SERVICE_FAILURE_ACTIONS_FLAG { - BOOL fFailureActionsOnNonCrashFailures; -} SERVICE_FAILURE_ACTIONS_FLAG, *LPSERVICE_FAILURE_ACTIONS_FLAG; - - - - -typedef struct _SERVICE_SID_INFO { - DWORD dwServiceSidType; -} SERVICE_SID_INFO, *LPSERVICE_SID_INFO; - - - - -typedef struct _SERVICE_REQUIRED_PRIVILEGES_INFOA { - LPSTR pmszRequiredPrivileges; -} SERVICE_REQUIRED_PRIVILEGES_INFOA, *LPSERVICE_REQUIRED_PRIVILEGES_INFOA; - - - -typedef struct _SERVICE_REQUIRED_PRIVILEGES_INFOW { - LPWSTR pmszRequiredPrivileges; -} SERVICE_REQUIRED_PRIVILEGES_INFOW, *LPSERVICE_REQUIRED_PRIVILEGES_INFOW; - - - - -typedef SERVICE_REQUIRED_PRIVILEGES_INFOA SERVICE_REQUIRED_PRIVILEGES_INFO; -typedef LPSERVICE_REQUIRED_PRIVILEGES_INFOA LPSERVICE_REQUIRED_PRIVILEGES_INFO; - - - - - -typedef struct _SERVICE_PRESHUTDOWN_INFO { - DWORD dwPreshutdownTimeout; -} SERVICE_PRESHUTDOWN_INFO, *LPSERVICE_PRESHUTDOWN_INFO; - - - - -typedef struct _SERVICE_TRIGGER_SPECIFIC_DATA_ITEM -{ - DWORD dwDataType; - - - - DWORD cbData; - - - - PBYTE pData; -} SERVICE_TRIGGER_SPECIFIC_DATA_ITEM, *PSERVICE_TRIGGER_SPECIFIC_DATA_ITEM; - - - - -typedef struct _SERVICE_TRIGGER -{ - DWORD dwTriggerType; - DWORD dwAction; - GUID * pTriggerSubtype; - - - - - - - DWORD cDataItems; - - - - PSERVICE_TRIGGER_SPECIFIC_DATA_ITEM pDataItems; -} SERVICE_TRIGGER, *PSERVICE_TRIGGER; - - - - -typedef struct _SERVICE_TRIGGER_INFO { - - - - DWORD cTriggers; - - - - PSERVICE_TRIGGER pTriggers; - PBYTE pReserved; -} SERVICE_TRIGGER_INFO, *PSERVICE_TRIGGER_INFO; - - - - - - -typedef struct _SERVICE_PREFERRED_NODE_INFO { - USHORT usPreferredNode; - BOOLEAN fDelete; -} SERVICE_PREFERRED_NODE_INFO, *LPSERVICE_PREFERRED_NODE_INFO; - - - - -typedef struct _SERVICE_TIMECHANGE_INFO { - LARGE_INTEGER liNewTime; - LARGE_INTEGER liOldTime; -} SERVICE_TIMECHANGE_INFO, *PSERVICE_TIMECHANGE_INFO; - - - - -typedef struct _SERVICE_LAUNCH_PROTECTED_INFO { - DWORD dwLaunchProtected; -} SERVICE_LAUNCH_PROTECTED_INFO, *PSERVICE_LAUNCH_PROTECTED_INFO; - - - - - -struct SC_HANDLE__{int unused;}; typedef struct SC_HANDLE__ *SC_HANDLE; -typedef SC_HANDLE *LPSC_HANDLE; - -struct SERVICE_STATUS_HANDLE__{int unused;}; typedef struct SERVICE_STATUS_HANDLE__ *SERVICE_STATUS_HANDLE; - - - - - -typedef enum _SC_STATUS_TYPE { - SC_STATUS_PROCESS_INFO = 0 -} SC_STATUS_TYPE; - - - - -typedef enum _SC_ENUM_TYPE { - SC_ENUM_PROCESS_INFO = 0 -} SC_ENUM_TYPE; - - - - - - -typedef struct _SERVICE_STATUS { - DWORD dwServiceType; - DWORD dwCurrentState; - DWORD dwControlsAccepted; - DWORD dwWin32ExitCode; - DWORD dwServiceSpecificExitCode; - DWORD dwCheckPoint; - DWORD dwWaitHint; -} SERVICE_STATUS, *LPSERVICE_STATUS; - -typedef struct _SERVICE_STATUS_PROCESS { - DWORD dwServiceType; - DWORD dwCurrentState; - DWORD dwControlsAccepted; - DWORD dwWin32ExitCode; - DWORD dwServiceSpecificExitCode; - DWORD dwCheckPoint; - DWORD dwWaitHint; - DWORD dwProcessId; - DWORD dwServiceFlags; -} SERVICE_STATUS_PROCESS, *LPSERVICE_STATUS_PROCESS; - - - - - - -typedef struct _ENUM_SERVICE_STATUSA { - LPSTR lpServiceName; - LPSTR lpDisplayName; - SERVICE_STATUS ServiceStatus; -} ENUM_SERVICE_STATUSA, *LPENUM_SERVICE_STATUSA; -typedef struct _ENUM_SERVICE_STATUSW { - LPWSTR lpServiceName; - LPWSTR lpDisplayName; - SERVICE_STATUS ServiceStatus; -} ENUM_SERVICE_STATUSW, *LPENUM_SERVICE_STATUSW; - - - - -typedef ENUM_SERVICE_STATUSA ENUM_SERVICE_STATUS; -typedef LPENUM_SERVICE_STATUSA LPENUM_SERVICE_STATUS; - - -typedef struct _ENUM_SERVICE_STATUS_PROCESSA { - LPSTR lpServiceName; - LPSTR lpDisplayName; - SERVICE_STATUS_PROCESS ServiceStatusProcess; -} ENUM_SERVICE_STATUS_PROCESSA, *LPENUM_SERVICE_STATUS_PROCESSA; -typedef struct _ENUM_SERVICE_STATUS_PROCESSW { - LPWSTR lpServiceName; - LPWSTR lpDisplayName; - SERVICE_STATUS_PROCESS ServiceStatusProcess; -} ENUM_SERVICE_STATUS_PROCESSW, *LPENUM_SERVICE_STATUS_PROCESSW; - - - - -typedef ENUM_SERVICE_STATUS_PROCESSA ENUM_SERVICE_STATUS_PROCESS; -typedef LPENUM_SERVICE_STATUS_PROCESSA LPENUM_SERVICE_STATUS_PROCESS; - - - - - - -typedef LPVOID SC_LOCK; - -typedef struct _QUERY_SERVICE_LOCK_STATUSA { - DWORD fIsLocked; - LPSTR lpLockOwner; - DWORD dwLockDuration; -} QUERY_SERVICE_LOCK_STATUSA, *LPQUERY_SERVICE_LOCK_STATUSA; -typedef struct _QUERY_SERVICE_LOCK_STATUSW { - DWORD fIsLocked; - LPWSTR lpLockOwner; - DWORD dwLockDuration; -} QUERY_SERVICE_LOCK_STATUSW, *LPQUERY_SERVICE_LOCK_STATUSW; - - - - -typedef QUERY_SERVICE_LOCK_STATUSA QUERY_SERVICE_LOCK_STATUS; -typedef LPQUERY_SERVICE_LOCK_STATUSA LPQUERY_SERVICE_LOCK_STATUS; -# 816 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -typedef struct _QUERY_SERVICE_CONFIGA { - DWORD dwServiceType; - DWORD dwStartType; - DWORD dwErrorControl; - LPSTR lpBinaryPathName; - LPSTR lpLoadOrderGroup; - DWORD dwTagId; - LPSTR lpDependencies; - LPSTR lpServiceStartName; - LPSTR lpDisplayName; -} QUERY_SERVICE_CONFIGA, *LPQUERY_SERVICE_CONFIGA; -typedef struct _QUERY_SERVICE_CONFIGW { - DWORD dwServiceType; - DWORD dwStartType; - DWORD dwErrorControl; - LPWSTR lpBinaryPathName; - LPWSTR lpLoadOrderGroup; - DWORD dwTagId; - LPWSTR lpDependencies; - LPWSTR lpServiceStartName; - LPWSTR lpDisplayName; -} QUERY_SERVICE_CONFIGW, *LPQUERY_SERVICE_CONFIGW; - - - - -typedef QUERY_SERVICE_CONFIGA QUERY_SERVICE_CONFIG; -typedef LPQUERY_SERVICE_CONFIGA LPQUERY_SERVICE_CONFIG; -# 852 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -typedef void __stdcall SERVICE_MAIN_FUNCTIONW ( - DWORD dwNumServicesArgs, - LPWSTR *lpServiceArgVectors - ); - -typedef void __stdcall SERVICE_MAIN_FUNCTIONA ( - DWORD dwNumServicesArgs, - LPTSTR *lpServiceArgVectors - ); - - - - - - - -typedef void (__stdcall *LPSERVICE_MAIN_FUNCTIONW)( - DWORD dwNumServicesArgs, - LPWSTR *lpServiceArgVectors - ); - -typedef void (__stdcall *LPSERVICE_MAIN_FUNCTIONA)( - DWORD dwNumServicesArgs, - LPSTR *lpServiceArgVectors - ); -# 889 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -typedef struct _SERVICE_TABLE_ENTRYA { - LPSTR lpServiceName; - LPSERVICE_MAIN_FUNCTIONA lpServiceProc; -}SERVICE_TABLE_ENTRYA, *LPSERVICE_TABLE_ENTRYA; -typedef struct _SERVICE_TABLE_ENTRYW { - LPWSTR lpServiceName; - LPSERVICE_MAIN_FUNCTIONW lpServiceProc; -}SERVICE_TABLE_ENTRYW, *LPSERVICE_TABLE_ENTRYW; - - - - -typedef SERVICE_TABLE_ENTRYA SERVICE_TABLE_ENTRY; -typedef LPSERVICE_TABLE_ENTRYA LPSERVICE_TABLE_ENTRY; - - - - - - -typedef void __stdcall HANDLER_FUNCTION ( - DWORD dwControl - ); - -typedef DWORD __stdcall HANDLER_FUNCTION_EX ( - DWORD dwControl, - DWORD dwEventType, - LPVOID lpEventData, - LPVOID lpContext - ); - -typedef void (__stdcall *LPHANDLER_FUNCTION)( - DWORD dwControl - ); - -typedef DWORD (__stdcall *LPHANDLER_FUNCTION_EX)( - DWORD dwControl, - DWORD dwEventType, - LPVOID lpEventData, - LPVOID lpContext - ); - - - - -typedef -void -( __stdcall * PFN_SC_NOTIFY_CALLBACK ) ( - PVOID pParameter - ); - - - - -typedef struct _SERVICE_NOTIFY_1 { - DWORD dwVersion; - PFN_SC_NOTIFY_CALLBACK pfnNotifyCallback; - PVOID pContext; - DWORD dwNotificationStatus; - SERVICE_STATUS_PROCESS ServiceStatus; -} SERVICE_NOTIFY_1, *PSERVICE_NOTIFY_1; - -typedef struct _SERVICE_NOTIFY_2A { - DWORD dwVersion; - PFN_SC_NOTIFY_CALLBACK pfnNotifyCallback; - PVOID pContext; - DWORD dwNotificationStatus; - SERVICE_STATUS_PROCESS ServiceStatus; - DWORD dwNotificationTriggered; - LPSTR pszServiceNames; -} SERVICE_NOTIFY_2A, *PSERVICE_NOTIFY_2A; -typedef struct _SERVICE_NOTIFY_2W { - DWORD dwVersion; - PFN_SC_NOTIFY_CALLBACK pfnNotifyCallback; - PVOID pContext; - DWORD dwNotificationStatus; - SERVICE_STATUS_PROCESS ServiceStatus; - DWORD dwNotificationTriggered; - LPWSTR pszServiceNames; -} SERVICE_NOTIFY_2W, *PSERVICE_NOTIFY_2W; - - - - -typedef SERVICE_NOTIFY_2A SERVICE_NOTIFY_2; -typedef PSERVICE_NOTIFY_2A PSERVICE_NOTIFY_2; - - -typedef SERVICE_NOTIFY_2A SERVICE_NOTIFYA, *PSERVICE_NOTIFYA; -typedef SERVICE_NOTIFY_2W SERVICE_NOTIFYW, *PSERVICE_NOTIFYW; - - - - -typedef SERVICE_NOTIFYA SERVICE_NOTIFY; -typedef PSERVICE_NOTIFYA PSERVICE_NOTIFY; - - - - - -typedef struct _SERVICE_CONTROL_STATUS_REASON_PARAMSA { - DWORD dwReason; - LPSTR pszComment; - SERVICE_STATUS_PROCESS ServiceStatus; -} SERVICE_CONTROL_STATUS_REASON_PARAMSA, *PSERVICE_CONTROL_STATUS_REASON_PARAMSA; - - - -typedef struct _SERVICE_CONTROL_STATUS_REASON_PARAMSW { - DWORD dwReason; - LPWSTR pszComment; - SERVICE_STATUS_PROCESS ServiceStatus; -} SERVICE_CONTROL_STATUS_REASON_PARAMSW, *PSERVICE_CONTROL_STATUS_REASON_PARAMSW; - - - - -typedef SERVICE_CONTROL_STATUS_REASON_PARAMSA SERVICE_CONTROL_STATUS_REASON_PARAMS; -typedef PSERVICE_CONTROL_STATUS_REASON_PARAMSA PSERVICE_CONTROL_STATUS_REASON_PARAMS; - - - - - -typedef struct _SERVICE_START_REASON { - DWORD dwReason; -} SERVICE_START_REASON, *PSERVICE_START_REASON; - - - - - -__declspec(dllimport) -BOOL -__stdcall -ChangeServiceConfigA( - SC_HANDLE hService, - DWORD dwServiceType, - DWORD dwStartType, - DWORD dwErrorControl, - LPCSTR lpBinaryPathName, - LPCSTR lpLoadOrderGroup, - LPDWORD lpdwTagId, - LPCSTR lpDependencies, - LPCSTR lpServiceStartName, - LPCSTR lpPassword, - LPCSTR lpDisplayName - ); -__declspec(dllimport) -BOOL -__stdcall -ChangeServiceConfigW( - SC_HANDLE hService, - DWORD dwServiceType, - DWORD dwStartType, - DWORD dwErrorControl, - LPCWSTR lpBinaryPathName, - LPCWSTR lpLoadOrderGroup, - LPDWORD lpdwTagId, - LPCWSTR lpDependencies, - LPCWSTR lpServiceStartName, - LPCWSTR lpPassword, - LPCWSTR lpDisplayName - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -ChangeServiceConfig2A( - SC_HANDLE hService, - DWORD dwInfoLevel, - LPVOID lpInfo - ); -__declspec(dllimport) -BOOL -__stdcall -ChangeServiceConfig2W( - SC_HANDLE hService, - DWORD dwInfoLevel, - LPVOID lpInfo - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -CloseServiceHandle( - SC_HANDLE hSCObject - ); - -__declspec(dllimport) -BOOL -__stdcall -ControlService( - SC_HANDLE hService, - DWORD dwControl, - LPSERVICE_STATUS lpServiceStatus - ); - - -__declspec(dllimport) -SC_HANDLE -__stdcall -CreateServiceA( - SC_HANDLE hSCManager, - LPCSTR lpServiceName, - LPCSTR lpDisplayName, - DWORD dwDesiredAccess, - DWORD dwServiceType, - DWORD dwStartType, - DWORD dwErrorControl, - LPCSTR lpBinaryPathName, - LPCSTR lpLoadOrderGroup, - LPDWORD lpdwTagId, - LPCSTR lpDependencies, - LPCSTR lpServiceStartName, - LPCSTR lpPassword - ); - -__declspec(dllimport) -SC_HANDLE -__stdcall -CreateServiceW( - SC_HANDLE hSCManager, - LPCWSTR lpServiceName, - LPCWSTR lpDisplayName, - DWORD dwDesiredAccess, - DWORD dwServiceType, - DWORD dwStartType, - DWORD dwErrorControl, - LPCWSTR lpBinaryPathName, - LPCWSTR lpLoadOrderGroup, - LPDWORD lpdwTagId, - LPCWSTR lpDependencies, - LPCWSTR lpServiceStartName, - LPCWSTR lpPassword - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -DeleteService( - SC_HANDLE hService - ); - - -__declspec(dllimport) -BOOL -__stdcall -EnumDependentServicesA( - SC_HANDLE hService, - DWORD dwServiceState, - - LPENUM_SERVICE_STATUSA lpServices, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded, - LPDWORD lpServicesReturned - ); - -__declspec(dllimport) -BOOL -__stdcall -EnumDependentServicesW( - SC_HANDLE hService, - DWORD dwServiceState, - - LPENUM_SERVICE_STATUSW lpServices, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded, - LPDWORD lpServicesReturned - ); -# 1188 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumServicesStatusA( - SC_HANDLE hSCManager, - DWORD dwServiceType, - DWORD dwServiceState, - - LPENUM_SERVICE_STATUSA lpServices, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded, - LPDWORD lpServicesReturned, - LPDWORD lpResumeHandle - ); - -__declspec(dllimport) -BOOL -__stdcall -EnumServicesStatusW( - SC_HANDLE hSCManager, - DWORD dwServiceType, - DWORD dwServiceState, - - LPENUM_SERVICE_STATUSW lpServices, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded, - LPDWORD lpServicesReturned, - LPDWORD lpResumeHandle - ); -# 1230 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -__declspec(dllimport) -BOOL -__stdcall -EnumServicesStatusExA( - SC_HANDLE hSCManager, - SC_ENUM_TYPE InfoLevel, - DWORD dwServiceType, - DWORD dwServiceState, - - LPBYTE lpServices, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded, - LPDWORD lpServicesReturned, - LPDWORD lpResumeHandle, - LPCSTR pszGroupName - ); - -__declspec(dllimport) -BOOL -__stdcall -EnumServicesStatusExW( - SC_HANDLE hSCManager, - SC_ENUM_TYPE InfoLevel, - DWORD dwServiceType, - DWORD dwServiceState, - - LPBYTE lpServices, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded, - LPDWORD lpServicesReturned, - LPDWORD lpResumeHandle, - LPCWSTR pszGroupName - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetServiceKeyNameA( - SC_HANDLE hSCManager, - LPCSTR lpDisplayName, - - LPSTR lpServiceName, - LPDWORD lpcchBuffer - ); - -__declspec(dllimport) -BOOL -__stdcall -GetServiceKeyNameW( - SC_HANDLE hSCManager, - LPCWSTR lpDisplayName, - - LPWSTR lpServiceName, - LPDWORD lpcchBuffer - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -GetServiceDisplayNameA( - SC_HANDLE hSCManager, - LPCSTR lpServiceName, - - LPSTR lpDisplayName, - LPDWORD lpcchBuffer - ); - -__declspec(dllimport) -BOOL -__stdcall -GetServiceDisplayNameW( - SC_HANDLE hSCManager, - LPCWSTR lpServiceName, - - LPWSTR lpDisplayName, - LPDWORD lpcchBuffer - ); -# 1331 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -__declspec(dllimport) -SC_LOCK -__stdcall -LockServiceDatabase( - SC_HANDLE hSCManager - ); - -__declspec(dllimport) -BOOL -__stdcall -NotifyBootConfigStatus( - BOOL BootAcceptable - ); -# 1352 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -__declspec(dllimport) -SC_HANDLE -__stdcall -OpenSCManagerA( - LPCSTR lpMachineName, - LPCSTR lpDatabaseName, - DWORD dwDesiredAccess - ); - -__declspec(dllimport) -SC_HANDLE -__stdcall -OpenSCManagerW( - LPCWSTR lpMachineName, - LPCWSTR lpDatabaseName, - DWORD dwDesiredAccess - ); - - - - - - - -__declspec(dllimport) -SC_HANDLE -__stdcall -OpenServiceA( - SC_HANDLE hSCManager, - LPCSTR lpServiceName, - DWORD dwDesiredAccess - ); - -__declspec(dllimport) -SC_HANDLE -__stdcall -OpenServiceW( - SC_HANDLE hSCManager, - LPCWSTR lpServiceName, - DWORD dwDesiredAccess - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -QueryServiceConfigA( - SC_HANDLE hService, - - LPQUERY_SERVICE_CONFIGA lpServiceConfig, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded - ); - -__declspec(dllimport) -BOOL -__stdcall -QueryServiceConfigW( - SC_HANDLE hService, - - LPQUERY_SERVICE_CONFIGW lpServiceConfig, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded - ); -# 1435 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -__declspec(dllimport) -BOOL -__stdcall -QueryServiceConfig2A( - SC_HANDLE hService, - DWORD dwInfoLevel, - - LPBYTE lpBuffer, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded - ); -# 1454 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -__declspec(dllimport) -BOOL -__stdcall -QueryServiceConfig2W( - SC_HANDLE hService, - DWORD dwInfoLevel, - - LPBYTE lpBuffer, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded - ); -# 1478 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -__declspec(dllimport) -BOOL -__stdcall -QueryServiceLockStatusA( - SC_HANDLE hSCManager, - - LPQUERY_SERVICE_LOCK_STATUSA lpLockStatus, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded - ); - -__declspec(dllimport) -BOOL -__stdcall -QueryServiceLockStatusW( - SC_HANDLE hSCManager, - - LPQUERY_SERVICE_LOCK_STATUSW lpLockStatus, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded - ); -# 1512 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -__declspec(dllimport) -BOOL -__stdcall -QueryServiceObjectSecurity( - SC_HANDLE hService, - SECURITY_INFORMATION dwSecurityInformation, - - PSECURITY_DESCRIPTOR lpSecurityDescriptor, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded - ); - - -__declspec(dllimport) -BOOL -__stdcall -QueryServiceStatus( - SC_HANDLE hService, - LPSERVICE_STATUS lpServiceStatus - ); - - -__declspec(dllimport) -BOOL -__stdcall -QueryServiceStatusEx( - SC_HANDLE hService, - SC_STATUS_TYPE InfoLevel, - - LPBYTE lpBuffer, - DWORD cbBufSize, - LPDWORD pcbBytesNeeded - ); - - -__declspec(dllimport) -SERVICE_STATUS_HANDLE -__stdcall -RegisterServiceCtrlHandlerA( - LPCSTR lpServiceName, - - LPHANDLER_FUNCTION lpHandlerProc - ); - -__declspec(dllimport) -SERVICE_STATUS_HANDLE -__stdcall -RegisterServiceCtrlHandlerW( - LPCWSTR lpServiceName, - - LPHANDLER_FUNCTION lpHandlerProc - ); - - - - - - - -__declspec(dllimport) -SERVICE_STATUS_HANDLE -__stdcall -RegisterServiceCtrlHandlerExA( - LPCSTR lpServiceName, - - LPHANDLER_FUNCTION_EX lpHandlerProc, - LPVOID lpContext - ); - -__declspec(dllimport) -SERVICE_STATUS_HANDLE -__stdcall -RegisterServiceCtrlHandlerExW( - LPCWSTR lpServiceName, - - LPHANDLER_FUNCTION_EX lpHandlerProc, - LPVOID lpContext - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -SetServiceObjectSecurity( - SC_HANDLE hService, - SECURITY_INFORMATION dwSecurityInformation, - PSECURITY_DESCRIPTOR lpSecurityDescriptor - ); - -__declspec(dllimport) -BOOL -__stdcall -SetServiceStatus( - SERVICE_STATUS_HANDLE hServiceStatus, - LPSERVICE_STATUS lpServiceStatus - ); - -__declspec(dllimport) -BOOL -__stdcall -StartServiceCtrlDispatcherA( - const SERVICE_TABLE_ENTRYA *lpServiceStartTable - ); -__declspec(dllimport) -BOOL -__stdcall -StartServiceCtrlDispatcherW( - const SERVICE_TABLE_ENTRYW *lpServiceStartTable - ); - - - - - - - -__declspec(dllimport) -BOOL -__stdcall -StartServiceA( - SC_HANDLE hService, - DWORD dwNumServiceArgs, - - LPCSTR *lpServiceArgVectors - ); -__declspec(dllimport) -BOOL -__stdcall -StartServiceW( - SC_HANDLE hService, - DWORD dwNumServiceArgs, - - LPCWSTR *lpServiceArgVectors - ); -# 1662 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -__declspec(dllimport) -BOOL -__stdcall -UnlockServiceDatabase( - SC_LOCK ScLock - ); -# 1677 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -__declspec(dllimport) -DWORD -__stdcall -NotifyServiceStatusChangeA ( - SC_HANDLE hService, - DWORD dwNotifyMask, - PSERVICE_NOTIFYA pNotifyBuffer - ); -__declspec(dllimport) -DWORD -__stdcall -NotifyServiceStatusChangeW ( - SC_HANDLE hService, - DWORD dwNotifyMask, - PSERVICE_NOTIFYW pNotifyBuffer - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -ControlServiceExA( - SC_HANDLE hService, - DWORD dwControl, - DWORD dwInfoLevel, - PVOID pControlParams - ); -__declspec(dllimport) -BOOL -__stdcall -ControlServiceExW( - SC_HANDLE hService, - DWORD dwControl, - DWORD dwInfoLevel, - PVOID pControlParams - ); - - - - - - -__declspec(dllimport) -BOOL -__stdcall -QueryServiceDynamicInformation ( - SERVICE_STATUS_HANDLE hServiceStatus, - DWORD dwInfoLevel, - PVOID * ppDynamicInfo - ); -# 1740 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -typedef enum _SC_EVENT_TYPE { - SC_EVENT_DATABASE_CHANGE, - SC_EVENT_PROPERTY_CHANGE, - SC_EVENT_STATUS_CHANGE -} SC_EVENT_TYPE, *PSC_EVENT_TYPE; - -typedef -void -__stdcall -SC_NOTIFICATION_CALLBACK ( - DWORD dwNotify, - PVOID pCallbackContext - ); -typedef SC_NOTIFICATION_CALLBACK* PSC_NOTIFICATION_CALLBACK; - -typedef struct _SC_NOTIFICATION_REGISTRATION* PSC_NOTIFICATION_REGISTRATION; - -__declspec(dllimport) -DWORD -__stdcall -SubscribeServiceChangeNotifications ( - SC_HANDLE hService, - SC_EVENT_TYPE eEventType, - PSC_NOTIFICATION_CALLBACK pCallback, - PVOID pCallbackContext, - PSC_NOTIFICATION_REGISTRATION* pSubscription - ); - -__declspec(dllimport) -void -__stdcall -UnsubscribeServiceChangeNotifications ( - PSC_NOTIFICATION_REGISTRATION pSubscription - ); - -__declspec(dllimport) -DWORD -__stdcall -WaitServiceState ( - SC_HANDLE hService, - DWORD dwNotify, - DWORD dwTimeout, - HANDLE hCancelEvent - ); -# 1793 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -typedef enum SERVICE_REGISTRY_STATE_TYPE { - ServiceRegistryStateParameters = 0, - ServiceRegistryStatePersistent = 1, - MaxServiceRegistryStateType = 2, -} SERVICE_REGISTRY_STATE_TYPE; - - -DWORD -__stdcall -GetServiceRegistryStateKey( - SERVICE_STATUS_HANDLE ServiceStatusHandle, - SERVICE_REGISTRY_STATE_TYPE StateType, - DWORD AccessMask, - HKEY *ServiceStateKey - ); - - - - - -typedef enum SERVICE_DIRECTORY_TYPE { - ServiceDirectoryPersistentState = 0, - ServiceDirectoryTypeMax = 1, -} SERVICE_DIRECTORY_TYPE; - - -DWORD -__stdcall -GetServiceDirectory( - SERVICE_STATUS_HANDLE hServiceStatus, - SERVICE_DIRECTORY_TYPE eDirectoryType, - PWCHAR lpPathBuffer, - DWORD cchPathBufferLength, - DWORD *lpcchRequiredBufferLength - ); - - - - - -typedef enum SERVICE_SHARED_REGISTRY_STATE_TYPE { - ServiceSharedRegistryPersistentState = 0 -} SERVICE_SHARED_REGISTRY_STATE_TYPE; - - -DWORD -__stdcall -GetSharedServiceRegistryStateKey( - SC_HANDLE ServiceHandle, - SERVICE_SHARED_REGISTRY_STATE_TYPE StateType, - DWORD AccessMask, - HKEY *ServiceStateKey - ); - -typedef enum SERVICE_SHARED_DIRECTORY_TYPE { - ServiceSharedDirectoryPersistentState = 0 -} SERVICE_SHARED_DIRECTORY_TYPE; - - -DWORD -__stdcall -GetSharedServiceDirectory( - SC_HANDLE ServiceHandle, - SERVICE_SHARED_DIRECTORY_TYPE DirectoryType, - PWCHAR PathBuffer, - DWORD PathBufferLength, - DWORD *RequiredBufferLength - ); -# 1872 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\winsvc.h" 3 -#pragma warning(pop) -# 242 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mcx.h" 1 3 -# 17 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mcx.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) - - -typedef struct _MODEMDEVCAPS { - DWORD dwActualSize; - DWORD dwRequiredSize; - DWORD dwDevSpecificOffset; - DWORD dwDevSpecificSize; - - - DWORD dwModemProviderVersion; - DWORD dwModemManufacturerOffset; - DWORD dwModemManufacturerSize; - DWORD dwModemModelOffset; - DWORD dwModemModelSize; - DWORD dwModemVersionOffset; - DWORD dwModemVersionSize; - - - DWORD dwDialOptions; - DWORD dwCallSetupFailTimer; - DWORD dwInactivityTimeout; - DWORD dwSpeakerVolume; - DWORD dwSpeakerMode; - DWORD dwModemOptions; - DWORD dwMaxDTERate; - DWORD dwMaxDCERate; - - - BYTE abVariablePortion [1]; -} MODEMDEVCAPS, *PMODEMDEVCAPS, *LPMODEMDEVCAPS; - -typedef struct _MODEMSETTINGS { - DWORD dwActualSize; - DWORD dwRequiredSize; - DWORD dwDevSpecificOffset; - DWORD dwDevSpecificSize; - - - DWORD dwCallSetupFailTimer; - DWORD dwInactivityTimeout; - DWORD dwSpeakerVolume; - DWORD dwSpeakerMode; - DWORD dwPreferredModemOptions; - - - DWORD dwNegotiatedModemOptions; - DWORD dwNegotiatedDCERate; - - - BYTE abVariablePortion [1]; -} MODEMSETTINGS, *PMODEMSETTINGS, *LPMODEMSETTINGS; -# 728 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\mcx.h" 3 -#pragma warning(pop) -# 247 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - - - -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 1 3 -# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 -#pragma warning(push) -#pragma warning(disable: 4820) -# 31 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 -struct HIMC__{int unused;}; typedef struct HIMC__ *HIMC; -struct HIMCC__{int unused;}; typedef struct HIMCC__ *HIMCC; -# 44 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 -typedef HKL *LPHKL; -typedef UINT *LPUINT; - - - - - - - -typedef struct tagCOMPOSITIONFORM { - DWORD dwStyle; - POINT ptCurrentPos; - RECT rcArea; -} COMPOSITIONFORM, *PCOMPOSITIONFORM, *NPCOMPOSITIONFORM, *LPCOMPOSITIONFORM; - - -typedef struct tagCANDIDATEFORM { - DWORD dwIndex; - DWORD dwStyle; - POINT ptCurrentPos; - RECT rcArea; -} CANDIDATEFORM, *PCANDIDATEFORM, *NPCANDIDATEFORM, *LPCANDIDATEFORM; -# 75 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 -typedef struct tagCANDIDATELIST { - DWORD dwSize; - DWORD dwStyle; - DWORD dwCount; - DWORD dwSelection; - DWORD dwPageStart; - DWORD dwPageSize; - DWORD dwOffset[1]; -} CANDIDATELIST, *PCANDIDATELIST, *NPCANDIDATELIST, *LPCANDIDATELIST; -# 92 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 -typedef struct tagREGISTERWORDA { - LPSTR lpReading; - LPSTR lpWord; -} REGISTERWORDA, *PREGISTERWORDA, *NPREGISTERWORDA, *LPREGISTERWORDA; -typedef struct tagREGISTERWORDW { - LPWSTR lpReading; - LPWSTR lpWord; -} REGISTERWORDW, *PREGISTERWORDW, *NPREGISTERWORDW, *LPREGISTERWORDW; - - - - - - -typedef REGISTERWORDA REGISTERWORD; -typedef PREGISTERWORDA PREGISTERWORD; -typedef NPREGISTERWORDA NPREGISTERWORD; -typedef LPREGISTERWORDA LPREGISTERWORD; -# 120 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 -typedef struct tagRECONVERTSTRING { - DWORD dwSize; - DWORD dwVersion; - DWORD dwStrLen; - DWORD dwStrOffset; - DWORD dwCompStrLen; - DWORD dwCompStrOffset; - DWORD dwTargetStrLen; - DWORD dwTargetStrOffset; -} RECONVERTSTRING, *PRECONVERTSTRING, *NPRECONVERTSTRING, *LPRECONVERTSTRING; -# 141 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 -typedef struct tagSTYLEBUFA { - DWORD dwStyle; - CHAR szDescription[32]; -} STYLEBUFA, *PSTYLEBUFA, *NPSTYLEBUFA, *LPSTYLEBUFA; -typedef struct tagSTYLEBUFW { - DWORD dwStyle; - WCHAR szDescription[32]; -} STYLEBUFW, *PSTYLEBUFW, *NPSTYLEBUFW, *LPSTYLEBUFW; - - - - - - -typedef STYLEBUFA STYLEBUF; -typedef PSTYLEBUFA PSTYLEBUF; -typedef NPSTYLEBUFA NPSTYLEBUF; -typedef LPSTYLEBUFA LPSTYLEBUF; -# 171 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 -typedef struct tagIMEMENUITEMINFOA { - UINT cbSize; - UINT fType; - UINT fState; - UINT wID; - HBITMAP hbmpChecked; - HBITMAP hbmpUnchecked; - DWORD dwItemData; - CHAR szString[80]; - HBITMAP hbmpItem; -} IMEMENUITEMINFOA, *PIMEMENUITEMINFOA, *NPIMEMENUITEMINFOA, *LPIMEMENUITEMINFOA; -typedef struct tagIMEMENUITEMINFOW { - UINT cbSize; - UINT fType; - UINT fState; - UINT wID; - HBITMAP hbmpChecked; - HBITMAP hbmpUnchecked; - DWORD dwItemData; - WCHAR szString[80]; - HBITMAP hbmpItem; -} IMEMENUITEMINFOW, *PIMEMENUITEMINFOW, *NPIMEMENUITEMINFOW, *LPIMEMENUITEMINFOW; - - - - - - -typedef IMEMENUITEMINFOA IMEMENUITEMINFO; -typedef PIMEMENUITEMINFOA PIMEMENUITEMINFO; -typedef NPIMEMENUITEMINFOA NPIMEMENUITEMINFO; -typedef LPIMEMENUITEMINFOA LPIMEMENUITEMINFO; - - -typedef struct tagIMECHARPOSITION { - DWORD dwSize; - DWORD dwCharPos; - POINT pt; - UINT cLineHeight; - RECT rcDocument; -} IMECHARPOSITION, *PIMECHARPOSITION, *NPIMECHARPOSITION, *LPIMECHARPOSITION; - -typedef BOOL (__stdcall* IMCENUMPROC)(HIMC, LPARAM); -# 227 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 -HKL __stdcall ImmInstallIMEA( LPCSTR lpszIMEFileName, LPCSTR lpszLayoutText); -HKL __stdcall ImmInstallIMEW( LPCWSTR lpszIMEFileName, LPCWSTR lpszLayoutText); - - - - - - -HWND __stdcall ImmGetDefaultIMEWnd( HWND); - -UINT __stdcall ImmGetDescriptionA( HKL, LPSTR lpszDescription, UINT uBufLen); -UINT __stdcall ImmGetDescriptionW( HKL, LPWSTR lpszDescription, UINT uBufLen); - - - - - - -UINT __stdcall ImmGetIMEFileNameA( HKL, LPSTR lpszFileName, UINT uBufLen); -UINT __stdcall ImmGetIMEFileNameW( HKL, LPWSTR lpszFileName, UINT uBufLen); - - - - - - -DWORD __stdcall ImmGetProperty( HKL, DWORD); - -BOOL __stdcall ImmIsIME( HKL); - -BOOL __stdcall ImmSimulateHotKey( HWND, DWORD); - -HIMC __stdcall ImmCreateContext(void); -BOOL __stdcall ImmDestroyContext( HIMC); -HIMC __stdcall ImmGetContext( HWND); -BOOL __stdcall ImmReleaseContext( HWND, HIMC); -HIMC __stdcall ImmAssociateContext( HWND, HIMC); - -BOOL __stdcall ImmAssociateContextEx( HWND, HIMC, DWORD); - - -LONG __stdcall ImmGetCompositionStringA( HIMC, DWORD, LPVOID lpBuf, DWORD dwBufLen); -LONG __stdcall ImmGetCompositionStringW( HIMC, DWORD, LPVOID lpBuf, DWORD dwBufLen); - - - - - - -BOOL __stdcall ImmSetCompositionStringA( HIMC, DWORD dwIndex, LPVOID lpComp, DWORD dwCompLen, LPVOID lpRead, DWORD dwReadLen); -BOOL __stdcall ImmSetCompositionStringW( HIMC, DWORD dwIndex, LPVOID lpComp, DWORD dwCompLen, LPVOID lpRead, DWORD dwReadLen); - - - - - - -DWORD __stdcall ImmGetCandidateListCountA( HIMC, LPDWORD lpdwListCount); -DWORD __stdcall ImmGetCandidateListCountW( HIMC, LPDWORD lpdwListCount); - - - - - - -DWORD __stdcall ImmGetCandidateListA( HIMC, DWORD deIndex, LPCANDIDATELIST lpCandList, DWORD dwBufLen); -DWORD __stdcall ImmGetCandidateListW( HIMC, DWORD deIndex, LPCANDIDATELIST lpCandList, DWORD dwBufLen); - - - - - - -DWORD __stdcall ImmGetGuideLineA( HIMC, DWORD dwIndex, LPSTR lpBuf, DWORD dwBufLen); -DWORD __stdcall ImmGetGuideLineW( HIMC, DWORD dwIndex, LPWSTR lpBuf, DWORD dwBufLen); - - - - - - -BOOL __stdcall ImmGetConversionStatus( HIMC, LPDWORD lpfdwConversion, LPDWORD lpfdwSentence); -BOOL __stdcall ImmSetConversionStatus( HIMC, DWORD, DWORD); -BOOL __stdcall ImmGetOpenStatus( HIMC); -BOOL __stdcall ImmSetOpenStatus( HIMC, BOOL); - - -BOOL __stdcall ImmGetCompositionFontA( HIMC, LPLOGFONTA lplf); -BOOL __stdcall ImmGetCompositionFontW( HIMC, LPLOGFONTW lplf); - - - - - - -BOOL __stdcall ImmSetCompositionFontA( HIMC, LPLOGFONTA lplf); -BOOL __stdcall ImmSetCompositionFontW( HIMC, LPLOGFONTW lplf); - - - - - - - -BOOL __stdcall ImmConfigureIMEA( HKL, HWND, DWORD, LPVOID); -BOOL __stdcall ImmConfigureIMEW( HKL, HWND, DWORD, LPVOID); - - - - - - -LRESULT __stdcall ImmEscapeA( HKL, HIMC, UINT, LPVOID); -LRESULT __stdcall ImmEscapeW( HKL, HIMC, UINT, LPVOID); - - - - - - -DWORD __stdcall ImmGetConversionListA( HKL, HIMC, LPCSTR lpSrc, LPCANDIDATELIST lpDst, DWORD dwBufLen, UINT uFlag); -DWORD __stdcall ImmGetConversionListW( HKL, HIMC, LPCWSTR lpSrc, LPCANDIDATELIST lpDst, DWORD dwBufLen, UINT uFlag); - - - - - - -BOOL __stdcall ImmNotifyIME( HIMC, DWORD dwAction, DWORD dwIndex, DWORD dwValue); - -BOOL __stdcall ImmGetStatusWindowPos( HIMC, LPPOINT lpptPos); -BOOL __stdcall ImmSetStatusWindowPos( HIMC, LPPOINT lpptPos); -BOOL __stdcall ImmGetCompositionWindow( HIMC, LPCOMPOSITIONFORM lpCompForm); -BOOL __stdcall ImmSetCompositionWindow( HIMC, LPCOMPOSITIONFORM lpCompForm); -BOOL __stdcall ImmGetCandidateWindow( HIMC, DWORD, LPCANDIDATEFORM lpCandidate); -BOOL __stdcall ImmSetCandidateWindow( HIMC, LPCANDIDATEFORM lpCandidate); - -BOOL __stdcall ImmIsUIMessageA( HWND, UINT, WPARAM, LPARAM); -BOOL __stdcall ImmIsUIMessageW( HWND, UINT, WPARAM, LPARAM); - - - - - - -UINT __stdcall ImmGetVirtualKey( HWND); - -typedef int (__stdcall *REGISTERWORDENUMPROCA)( LPCSTR lpszReading, DWORD, LPCSTR lpszString, LPVOID); -typedef int (__stdcall *REGISTERWORDENUMPROCW)( LPCWSTR lpszReading, DWORD, LPCWSTR lpszString, LPVOID); - - - - - - -BOOL __stdcall ImmRegisterWordA( HKL, LPCSTR lpszReading, DWORD, LPCSTR lpszRegister); -BOOL __stdcall ImmRegisterWordW( HKL, LPCWSTR lpszReading, DWORD, LPCWSTR lpszRegister); - - - - - - -BOOL __stdcall ImmUnregisterWordA( HKL, LPCSTR lpszReading, DWORD, LPCSTR lpszUnregister); -BOOL __stdcall ImmUnregisterWordW( HKL, LPCWSTR lpszReading, DWORD, LPCWSTR lpszUnregister); - - - - - - -UINT __stdcall ImmGetRegisterWordStyleA( HKL, UINT nItem, LPSTYLEBUFA lpStyleBuf); -UINT __stdcall ImmGetRegisterWordStyleW( HKL, UINT nItem, LPSTYLEBUFW lpStyleBuf); - - - - - - -UINT __stdcall ImmEnumRegisterWordA( HKL, REGISTERWORDENUMPROCA, LPCSTR lpszReading, DWORD, LPCSTR lpszRegister, LPVOID); -UINT __stdcall ImmEnumRegisterWordW( HKL, REGISTERWORDENUMPROCW, LPCWSTR lpszReading, DWORD, LPCWSTR lpszRegister, LPVOID); - - - - - - - -BOOL __stdcall ImmDisableIME( DWORD); -BOOL __stdcall ImmEnumInputContext(DWORD idThread, IMCENUMPROC lpfn, LPARAM lParam); -DWORD __stdcall ImmGetImeMenuItemsA( HIMC, DWORD, DWORD, LPIMEMENUITEMINFOA lpImeParentMenu, LPIMEMENUITEMINFOA lpImeMenu, DWORD dwSize); -DWORD __stdcall ImmGetImeMenuItemsW( HIMC, DWORD, DWORD, LPIMEMENUITEMINFOW lpImeParentMenu, LPIMEMENUITEMINFOW lpImeMenu, DWORD dwSize); - - - - - - -BOOL __stdcall ImmDisableTextFrameService(DWORD idThread); - - - -BOOL __stdcall ImmDisableLegacyIME(void); -# 635 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\ime_cmodes.h" 1 3 -# 636 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 2 3 -# 773 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\imm.h" 3 -#pragma warning(pop) -# 251 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\um\\Windows.h" 2 3 - - - - - - - -#pragma warning(pop) -# 18 "mat.h" 2 -# 34 "mat.h" -# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\inttypes.h" 1 3 -# 21 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\inttypes.h" 3 -# 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 1 3 -# 14 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 3 -# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stdint.h" 1 3 -# 52 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stdint.h" 3 -# 1 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\stdint.h" 1 3 -# 15 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\stdint.h" 3 -#pragma warning(push) -#pragma warning(disable: 4514 4820) - -typedef signed char int8_t; -typedef short int16_t; -typedef int int32_t; -typedef long long int64_t; -typedef unsigned char uint8_t; -typedef unsigned short uint16_t; -typedef unsigned int uint32_t; -typedef unsigned long long uint64_t; - -typedef signed char int_least8_t; -typedef short int_least16_t; -typedef int int_least32_t; -typedef long long int_least64_t; -typedef unsigned char uint_least8_t; -typedef unsigned short uint_least16_t; -typedef unsigned int uint_least32_t; -typedef unsigned long long uint_least64_t; - -typedef signed char int_fast8_t; -typedef int int_fast16_t; -typedef int int_fast32_t; -typedef long long int_fast64_t; -typedef unsigned char uint_fast8_t; -typedef unsigned int uint_fast16_t; -typedef unsigned int uint_fast32_t; -typedef unsigned long long uint_fast64_t; - -typedef long long intmax_t; -typedef unsigned long long uintmax_t; -# 136 "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\include\\stdint.h" 3 -#pragma warning(pop) -# 53 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stdint.h" 2 3 -# 15 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 2 3 - -#pragma warning(push) -#pragma warning(disable: 4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) -#pragma clang diagnostic push -# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 3 -#pragma clang diagnostic ignored "-Wdeprecated-declarations" -# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 3 -#pragma clang diagnostic ignored "-Wignored-attributes" -# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 3 -#pragma clang diagnostic ignored "-Wignored-pragma-optimize" -# 18 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 3 -#pragma clang diagnostic ignored "-Wunknown-pragmas" - -#pragma pack(push, 8) - - - - - - - - -typedef struct -{ - intmax_t quot; - intmax_t rem; -} _Lldiv_t; - -typedef _Lldiv_t imaxdiv_t; -# 45 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 3 - intmax_t __cdecl imaxabs( - intmax_t _Number - ); - - - imaxdiv_t __cdecl imaxdiv( - intmax_t _Numerator, - intmax_t _Denominator - ); - - intmax_t __cdecl strtoimax( - char const* _String, - char** _EndPtr, - int _Radix - ); - - intmax_t __cdecl _strtoimax_l( - char const* _String, - char** _EndPtr, - int _Radix, - _locale_t _Locale - ); - - uintmax_t __cdecl strtoumax( - char const* _String, - char** _EndPtr, - int _Radix - ); - - uintmax_t __cdecl _strtoumax_l( - char const* _String, - char** _EndPtr, - int _Radix, - _locale_t _Locale - ); - - intmax_t __cdecl wcstoimax( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix - ); - - intmax_t __cdecl _wcstoimax_l( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix, - _locale_t _Locale - ); - - uintmax_t __cdecl wcstoumax( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix - ); - - uintmax_t __cdecl _wcstoumax_l( - wchar_t const* _String, - wchar_t** _EndPtr, - int _Radix, - _locale_t _Locale - ); -# 332 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.22621.0\\ucrt\\inttypes.h" 3 -#pragma pack(pop) - - - - - - -#pragma clang diagnostic pop -#pragma warning(pop) -# 22 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\inttypes.h" 2 3 -# 35 "mat.h" 2 -# 1 "C:\\Program Files\\LLVM\\lib\\clang\\16\\include\\stdbool.h" 1 3 -# 36 "mat.h" 2 -# 48 "mat.h" - typedef enum evt_call_t - { - EVT_OP_LOAD = 0x00000001, - EVT_OP_UNLOAD = 0x00000002, - EVT_OP_OPEN = 0x00000003, - EVT_OP_CLOSE = 0x00000004, - EVT_OP_CONFIG = 0x00000005, - EVT_OP_LOG = 0x00000006, - EVT_OP_PAUSE = 0x00000007, - EVT_OP_RESUME = 0x00000008, - EVT_OP_UPLOAD = 0x00000009, - EVT_OP_FLUSH = 0x0000000A, - EVT_OP_VERSION = 0x0000000B, - EVT_OP_OPEN_WITH_PARAMS = 0x0000000C, - EVT_OP_FLUSHANDTEARDOWN = 0x0000000D, - EVT_OP_MAX = EVT_OP_FLUSHANDTEARDOWN + 1, - } evt_call_t; - - typedef enum evt_prop_t - { - - TYPE_STRING, - TYPE_INT64, - TYPE_DOUBLE, - TYPE_TIME, - TYPE_BOOLEAN, - TYPE_GUID, - - TYPE_STRING_ARRAY, - TYPE_INT64_ARRAY, - TYPE_DOUBLE_ARRAY, - TYPE_TIME_ARRAY, - TYPE_BOOL_ARRAY, - TYPE_GUID_ARRAY, - - TYPE_NULL - } evt_prop_t; - - typedef struct evt_guid_t - { - - - - - - uint32_t Data1; - - - - - - uint16_t Data2; - - - - - - - uint16_t Data3; - - - - - - - - uint8_t Data4[8]; - } evt_guid_t; - - typedef int64_t evt_handle_t; - typedef int32_t evt_status_t; - typedef struct evt_event evt_event; - - typedef struct evt_context_t - { - evt_call_t call; - evt_handle_t handle; - void* data; - evt_status_t result; - uint32_t size; - } evt_context_t; - - - - - - - - typedef enum evt_open_param_type_t - { - OPEN_PARAM_TYPE_HTTP_HANDLER_SEND = 0, - OPEN_PARAM_TYPE_HTTP_HANDLER_CANCEL = 1, - OPEN_PARAM_TYPE_TASK_DISPATCHER_QUEUE = 2, - OPEN_PARAM_TYPE_TASK_DISPATCHER_CANCEL = 3, - OPEN_PARAM_TYPE_TASK_DISPATCHER_JOIN = 4, - } evt_open_param_type_t; - - - - - - - typedef struct evt_open_param_t - { - evt_open_param_type_t type; - void* data; - } evt_open_param_t; - - - - - - - typedef struct evt_open_with_params_data_t - { - const char* config; - const evt_open_param_t* params; - int32_t paramsCount; - } evt_open_with_params_data_t; - - typedef union evt_prop_v - { - - uint64_t as_uint64; - const char* as_string; - int64_t as_int64; - double as_double; - _Bool as_bool; - evt_guid_t* as_guid; - uint64_t as_time; - - char** as_arr_string; - int64_t** as_arr_int64; - _Bool** as_arr_bool; - double** as_arr_double; - evt_guid_t** as_arr_guid; - uint64_t** as_arr_time; - } evt_prop_v; - - typedef struct evt_prop - { - const char* name; - evt_prop_t type; - evt_prop_v value; - uint32_t piiKind; - } evt_prop; - - - - - - - typedef enum http_request_type_t - { - HTTP_REQUEST_TYPE_GET = 0, - HTTP_REQUEST_TYPE_POST = 1, - } http_request_type_t; - - - - - - - typedef enum http_result_t - { - HTTP_RESULT_OK = 0, - HTTP_RESULT_CANCELLED = 1, - HTTP_RESULT_LOCAL_FAILURE = 2, - HTTP_RESULT_NETWORK_FAILURE = 3, - } http_result_t; - - - - - - - typedef struct http_header_t - { - const char* name; - const char* value; - } http_header_t; - - - - - - - typedef struct http_request_t - { - const char* id; - http_request_type_t type; - const char* url; - const uint8_t* body; - int32_t bodySize; - const http_header_t* headers; - int32_t headersCount; - } http_request_t; - - - - - - - typedef struct http_response_t - { - int32_t statusCode; - const uint8_t* body; - int32_t bodySize; - const http_header_t* headers; - int32_t headersCount; - } http_response_t; - - - typedef void (__cdecl *http_complete_fn_t)(const char* , http_result_t, http_response_t*); - typedef void (__cdecl *http_send_fn_t)(http_request_t*, http_complete_fn_t); - typedef void (__cdecl *http_cancel_fn_t)(const char* ); - - - - - - - typedef struct evt_task_t - { - const char* id; - int64_t delayMs; - const char* typeName; - } evt_task_t; - - - typedef void (__cdecl *task_callback_fn_t)(const char* ); - typedef void(__cdecl* task_dispatcher_queue_fn_t)(evt_task_t*, task_callback_fn_t); - typedef _Bool (__cdecl *task_dispatcher_cancel_fn_t)(const char* ); - typedef void (__cdecl *task_dispatcher_join_fn_t)(); -# 346 "mat.h" - typedef evt_status_t(__cdecl *evt_app_call_t)(evt_context_t *); -# 356 "mat.h" - __declspec(selectany) evt_app_call_t evt_api_call = ((void*)0); -# 369 "mat.h" - static inline evt_status_t evt_load(evt_handle_t handle) - { - - - evt_app_call_t impl = (evt_app_call_t)GetProcAddress((HMODULE)handle, "evt_api_call_default"); - if (impl != ((void*)0)) - { - evt_api_call = impl; - return 0; - } - - return -1; -# 391 "mat.h" - } -# 402 "mat.h" - static inline evt_status_t evt_unload(evt_handle_t handle) - { - evt_context_t ctx; - ctx.call = EVT_OP_UNLOAD; - ctx.handle = handle; - return evt_api_call(&ctx); - } -# 417 "mat.h" - static inline evt_handle_t evt_open(const char* config) - { - evt_context_t ctx; - ctx.call = EVT_OP_OPEN; - ctx.data = (void *)config; - evt_api_call(&ctx); - return ctx.handle; - } -# 435 "mat.h" - static inline evt_handle_t evt_open_with_params( - const char* config, - evt_open_param_t* params, - int32_t paramsCount) - { - evt_open_with_params_data_t data; - evt_context_t ctx; - - data.config = config; - data.params = params; - data.paramsCount = paramsCount; - - ctx.call = EVT_OP_OPEN_WITH_PARAMS; - ctx.data = (void *)(&data); - evt_api_call(&ctx); - return ctx.handle; - } -# 460 "mat.h" - static inline evt_status_t evt_close(evt_handle_t handle) - { - evt_context_t ctx; - ctx.call = EVT_OP_CLOSE; - ctx.handle = handle; - return evt_api_call(&ctx); - } -# 476 "mat.h" - static inline evt_status_t evt_configure(evt_handle_t handle, const char* config) - { - evt_context_t ctx; - ctx.call = EVT_OP_CONFIG; - ctx.handle = handle; - ctx.data = (void *)config; - return evt_api_call(&ctx); - } -# 494 "mat.h" - static inline evt_status_t evt_log_s(evt_handle_t handle, uint32_t size, evt_prop* evt) - { - evt_context_t ctx; - ctx.call = EVT_OP_LOG; - ctx.handle = handle; - ctx.data = (void *)evt; - ctx.size = size; - return evt_api_call(&ctx); - } -# 514 "mat.h" - static inline evt_status_t evt_log(evt_handle_t handle, evt_prop* evt) - { - evt_context_t ctx; - ctx.call = EVT_OP_LOG; - ctx.handle = handle; - ctx.data = (void *)evt; - ctx.size = 0; - return evt_api_call(&ctx); - } -# 542 "mat.h" - static inline evt_status_t evt_pause(evt_handle_t handle) - { - evt_context_t ctx; - ctx.call = EVT_OP_PAUSE; - ctx.handle = handle; - return evt_api_call(&ctx); - } -# 557 "mat.h" - static inline evt_status_t evt_resume(evt_handle_t handle) - { - evt_context_t ctx; - ctx.call = EVT_OP_RESUME; - ctx.handle = handle; - return evt_api_call(&ctx); - } -# 573 "mat.h" - static inline evt_status_t evt_upload(evt_handle_t handle) - { - evt_context_t ctx; - ctx.call = EVT_OP_UPLOAD; - ctx.handle = handle; - return evt_api_call(&ctx); - } -# 589 "mat.h" - static inline evt_status_t evt_flushAndTeardown(evt_handle_t handle) - { - evt_context_t ctx; - ctx.call = EVT_OP_FLUSHANDTEARDOWN; - ctx.handle = handle; - return evt_api_call(&ctx); - } - - - - - - - - static inline evt_status_t evt_flush(evt_handle_t handle) - { - evt_context_t ctx; - ctx.call = EVT_OP_FLUSH; - ctx.handle = handle; - return evt_api_call(&ctx); - } -# 620 "mat.h" - static inline const char * evt_version() - { - static const char * libSemver = "3.1.0"; - evt_context_t ctx; - ctx.call = EVT_OP_VERSION; - ctx.data = (void*)libSemver; - evt_api_call(&ctx); - return (const char *)(ctx.data); - } From 00c507fc0f861acbcfaa04d1bc61a83547d913ed Mon Sep 17 00:00:00 2001 From: Charlie Friend Date: Wed, 22 Nov 2023 16:09:17 -0800 Subject: [PATCH 09/14] Static link telemetry lib --- .../rust/cpp-client-telemetry-sys/build.rs | 12 ++- .../rust/cpp-client-telemetry-sys/src/lib.rs | 79 +++++++++++++++++-- 2 files changed, 84 insertions(+), 7 deletions(-) diff --git a/wrappers/rust/cpp-client-telemetry-sys/build.rs b/wrappers/rust/cpp-client-telemetry-sys/build.rs index 122080292..bd7ec7783 100644 --- a/wrappers/rust/cpp-client-telemetry-sys/build.rs +++ b/wrappers/rust/cpp-client-telemetry-sys/build.rs @@ -54,13 +54,21 @@ fn write_bindings(header_path: &PathBuf) { } fn main() { + let mat_h_location = PathBuf::from(PROJECT_ROOT).join("lib/include/public/mat.h"); + println!("cargo:rerun-if-changed={}", mat_h_location.to_string_lossy()); + + let out_dir = env::var("OUT_DIR").unwrap(); + std::fs::copy("../lib/ClientTelemetry.lib", PathBuf::from(&out_dir).join("ClientTelemetry.lib")) + .expect("Failed to copy native ClientTelemetry lib"); + // Tell cargo to look for shared libraries in the specified directory - println!("cargo:rustc-link-search=../lib"); + println!("cargo:rustc-link-search=native={}", out_dir); + println!("cargo:rustc-link-lib=ClientTelemetry"); // TODO use clang crate instead of invoking CLI directly let header_out = Exec::cmd("clang") .arg("-E") - .arg(PathBuf::from(PROJECT_ROOT).join("lib/include/public/mat.h")) + .arg(mat_h_location) .arg("-D") .arg("HAVE_DYNAMIC_C_LIB") .capture() diff --git a/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs b/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs index 7d12d9af8..a4ba43de2 100644 --- a/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs +++ b/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs @@ -1,5 +1,60 @@ -pub fn add(left: usize, right: usize) -> usize { - left + right +#![allow(non_upper_case_globals)] +#![allow(non_camel_case_types)] +#![allow(non_snake_case)] +include!(concat!(env!("OUT_DIR"), "/bindings.rs")); + +use std::{ffi::{c_void}, os::raw}; + +fn evt_api_call_wrapper(context_ptr: *mut evt_context_t) -> Option { + let mut result = -1; + unsafe { + if let Some(cb) = evt_api_call { + result = cb(context_ptr); + } + } + + if result == -1 { + return Option::None; + } + + // Box is now responsible for destroying the context + let context = unsafe { Box::from_raw(context_ptr) }; + + Some(context.handle.clone()) +} + +pub fn evt_open(config: *mut c_void) -> Option { + let context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_OPEN, + handle: 0, + data: config, + result: 0, + size: 0, + }); + + evt_api_call_wrapper(Box::into_raw(context)) +} + +pub fn evt_close(handle: &evt_handle_t) -> evt_status_t { + let context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_CLOSE, + handle: *handle, + data: std::ptr::null_mut(), + result: 0, + size: 0, + }); + + let raw_pointer = Box::into_raw(context); + + let mut result: evt_status_t = -1; + unsafe { + if let Some(cb) = evt_api_call { + result = cb(raw_pointer); + let _context = Box::from_raw(raw_pointer); + } + } + + result } #[cfg(test)] @@ -7,8 +62,22 @@ mod tests { use super::*; #[test] - fn it_works() { - let result = add(2, 2); - assert_eq!(result, 4); + fn test_open_close() { + let config = r#"{ + "eventCollectorUri": "http://localhost:64099/OneCollector/track", + "cacheFilePath":"hackathon_storage.db", + "config":{"host": "*"}, + "name":"Rust-API-Client-0", + "version":"1.0.0", + "primaryToken":"99999999999999999999999999999999-99999999-9999-9999-9999-999999999999-9999", + "maxTeardownUploadTimeInSec":5, + "hostMode":false, + "traceLevelMask": 4294967295, + "minimumTraceLevel":0, + "sdkmode":0, + "compat": {"customTypePrefix": "compat_event"} + }"#; + + let result = evt_open(config.as_ptr() as *mut c_void); } } From c6c6039ac5cb6519c2f66a597fe78d08d973ba82 Mon Sep 17 00:00:00 2001 From: Charlie Friend Date: Wed, 22 Nov 2023 17:27:50 -0800 Subject: [PATCH 10/14] Generate bindings from C++ --- .../rust/cpp-client-telemetry-sys/build.rs | 59 +++++++------------ .../rust/cpp-client-telemetry-sys/src/lib.rs | 54 +---------------- 2 files changed, 24 insertions(+), 89 deletions(-) diff --git a/wrappers/rust/cpp-client-telemetry-sys/build.rs b/wrappers/rust/cpp-client-telemetry-sys/build.rs index bd7ec7783..fe4b51b29 100644 --- a/wrappers/rust/cpp-client-telemetry-sys/build.rs +++ b/wrappers/rust/cpp-client-telemetry-sys/build.rs @@ -1,13 +1,9 @@ use std::env; -use std::fs; use std::path::PathBuf; -use subprocess::Exec; static PROJECT_ROOT: &str = "../../../"; -fn write_bindings(header_path: &PathBuf) { - let header_path_string = String::from(header_path.to_string_lossy()); - +fn write_bindings() { // The bindgen::Builder is the main entry point // to bindgen, and lets you build up options for // the resulting bindings. @@ -19,25 +15,14 @@ fn write_bindings(header_path: &PathBuf) { // .raw_line("#![allow(non_upper_case_globals)]") // .raw_line("#![allow(non_camel_case_types)]") // .raw_line("#![allow(non_snake_case)]") - .header(&header_path_string) - .allowlist_file(&header_path_string) - .c_naming(false) - .blocklist_type("struct_IMAGE_TLS_DIRECTORY") - .blocklist_type("struct_PIMAGE_TLS_DIRECTORY") - .blocklist_type("struct_IMAGE_TLS_DIRECTORY64") - .blocklist_type("struct_PIMAGE_TLS_DIRECTORY64") - .blocklist_type("struct__IMAGE_TLS_DIRECTORY64") - .blocklist_type("IMAGE_TLS_DIRECTORY") - .blocklist_type("PIMAGE_TLS_DIRECTORY") - .blocklist_type("IMAGE_TLS_DIRECTORY64") - .blocklist_type("PIMAGE_TLS_DIRECTORY64") - .blocklist_type("_IMAGE_TLS_DIRECTORY64") - .allowlist_type("evt_.*") - .allowlist_function("evt_.*") - .allowlist_var("evt_.*") - .allowlist_recursively(false) - .layout_tests(false) - .merge_extern_blocks(true) + .clang_arg(format!("-I{}", PathBuf::from(PROJECT_ROOT).join("lib/include").display())) + .header("./include/wrapper.hpp") + //.enable_cxx_namespaces() + .allowlist_type("Microsoft::Applications::Events::LogManagerProvider") + .allowlist_recursively(true) + // STL types must be marked as 'opaque' as bindgen can't handle the internals of these types. + .opaque_type("std::(.*)") + //.blocklist_function("std::*") // Tell cargo to invalidate the built crate whenever any of the // included header files changed. // .wrap_static_fns(true) @@ -65,20 +50,20 @@ fn main() { println!("cargo:rustc-link-search=native={}", out_dir); println!("cargo:rustc-link-lib=ClientTelemetry"); - // TODO use clang crate instead of invoking CLI directly - let header_out = Exec::cmd("clang") - .arg("-E") - .arg(mat_h_location) - .arg("-D") - .arg("HAVE_DYNAMIC_C_LIB") - .capture() - .expect("Failed to open clang process") - .stdout_str(); + // // TODO use clang crate instead of invoking CLI directly + // let header_out = Exec::cmd("clang") + // .arg("-E") + // .arg(mat_h_location) + // .arg("-D") + // .arg("HAVE_DYNAMIC_C_LIB") + // .capture() + // .expect("Failed to open clang process") + // .stdout_str(); - let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); - let mat_out_path = out_dir.join("mat.out.h"); + // let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); + // let mat_out_path = out_dir.join("mat.out.h"); - fs::write(&mat_out_path, header_out).unwrap(); + // fs::write(&mat_out_path, header_out).unwrap(); - write_bindings(&mat_out_path); + write_bindings(); } diff --git a/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs b/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs index a4ba43de2..3dc72f472 100644 --- a/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs +++ b/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs @@ -3,58 +3,7 @@ #![allow(non_snake_case)] include!(concat!(env!("OUT_DIR"), "/bindings.rs")); -use std::{ffi::{c_void}, os::raw}; - -fn evt_api_call_wrapper(context_ptr: *mut evt_context_t) -> Option { - let mut result = -1; - unsafe { - if let Some(cb) = evt_api_call { - result = cb(context_ptr); - } - } - - if result == -1 { - return Option::None; - } - - // Box is now responsible for destroying the context - let context = unsafe { Box::from_raw(context_ptr) }; - - Some(context.handle.clone()) -} - -pub fn evt_open(config: *mut c_void) -> Option { - let context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_OPEN, - handle: 0, - data: config, - result: 0, - size: 0, - }); - - evt_api_call_wrapper(Box::into_raw(context)) -} - -pub fn evt_close(handle: &evt_handle_t) -> evt_status_t { - let context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_CLOSE, - handle: *handle, - data: std::ptr::null_mut(), - result: 0, - size: 0, - }); - - let raw_pointer = Box::into_raw(context); - - let mut result: evt_status_t = -1; - unsafe { - if let Some(cb) = evt_api_call { - result = cb(raw_pointer); - let _context = Box::from_raw(raw_pointer); - } - } - - result +fn test_fn() { } #[cfg(test)] @@ -79,5 +28,6 @@ mod tests { }"#; let result = evt_open(config.as_ptr() as *mut c_void); + assert_eq!(result, Some(0)); } } From 6690e150c2a27ecf97a45358b543235668499a49 Mon Sep 17 00:00:00 2001 From: Charlie Friend Date: Thu, 23 Nov 2023 11:52:44 -0800 Subject: [PATCH 11/14] Copy correct bindings for static linkage --- .../rust/cpp-client-telemetry-sys/build.rs | 85 +++++++++++-------- .../rust/cpp-client-telemetry-sys/src/lib.rs | 44 +++++++++- 2 files changed, 91 insertions(+), 38 deletions(-) diff --git a/wrappers/rust/cpp-client-telemetry-sys/build.rs b/wrappers/rust/cpp-client-telemetry-sys/build.rs index fe4b51b29..af4468e30 100644 --- a/wrappers/rust/cpp-client-telemetry-sys/build.rs +++ b/wrappers/rust/cpp-client-telemetry-sys/build.rs @@ -1,9 +1,51 @@ use std::env; +use std::fs; use std::path::PathBuf; +use subprocess::Exec; static PROJECT_ROOT: &str = "../../../"; +fn copy_static_libs() { + // TODO add compatibility for x86 and ARM + let cpp_project_out = PathBuf::from(PROJECT_ROOT).join("Solutions/out/Release/x64"); + let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); + + std::fs::copy(cpp_project_out.join("win32-lib/ClientTelemetry.lib"), PathBuf::from(&out_dir).join("ClientTelemetry.lib")) + .expect("Failed to copy ClientTelemetry lib"); + std::fs::copy(cpp_project_out.join("sqlite/sqlite.lib"), out_dir.join("sqlite.lib")) + .expect("Failed to copy sqlite native library"); + std::fs::copy(cpp_project_out.join("zlib/zlib.lib"), out_dir.join("zlib.lib")) + .expect("Failed to copy zlib native library"); + + // Tell cargo to look for shared libraries in the specified directory + println!("cargo:rustc-link-search={}", out_dir.display()); + println!("cargo:rustc-link-lib=ClientTelemetry"); + println!("cargo:rustc-link-lib=wininet"); + println!("cargo:rustc-link-lib=crypt32"); + println!("cargo:rustc-link-lib=sqlite"); + println!("cargo:rustc-link-lib=zlib"); +} + fn write_bindings() { + // Precompile header with the appropriate preprocessor options + let mat_h_location = PathBuf::from(PROJECT_ROOT).join("lib/include/public/mat.h"); + println!("cargo:rerun-if-changed={}", mat_h_location.to_string_lossy()); + + // TODO use clang crate instead of invoking CLI directly + let header_out = Exec::cmd("clang") + .arg("-E") + .arg(mat_h_location) + .arg("-D") + .arg("MATSDK_STATIC_LIB=1") + .capture() + .expect("Failed to open clang process") + .stdout_str(); + + let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); + let mat_out_path = out_dir.join("mat.out.h"); + + fs::write(&mat_out_path, header_out).unwrap(); + // The bindgen::Builder is the main entry point // to bindgen, and lets you build up options for // the resulting bindings. @@ -15,17 +57,11 @@ fn write_bindings() { // .raw_line("#![allow(non_upper_case_globals)]") // .raw_line("#![allow(non_camel_case_types)]") // .raw_line("#![allow(non_snake_case)]") - .clang_arg(format!("-I{}", PathBuf::from(PROJECT_ROOT).join("lib/include").display())) - .header("./include/wrapper.hpp") - //.enable_cxx_namespaces() - .allowlist_type("Microsoft::Applications::Events::LogManagerProvider") - .allowlist_recursively(true) - // STL types must be marked as 'opaque' as bindgen can't handle the internals of these types. - .opaque_type("std::(.*)") - //.blocklist_function("std::*") - // Tell cargo to invalidate the built crate whenever any of the - // included header files changed. - // .wrap_static_fns(true) + //.clang_arg(format!("-I{}", PathBuf::from(PROJECT_ROOT).join("lib/include").display())) + .header(PathBuf::from(out_dir).join("mat.out.h").to_string_lossy()) + .allowlist_type("evt_.*") + .allowlist_function("evt_.*") + .allowlist_var("evt_.*") // Finish the builder and generate the bindings. .generate() // Unwrap the Result and panic on failure. @@ -39,31 +75,6 @@ fn write_bindings() { } fn main() { - let mat_h_location = PathBuf::from(PROJECT_ROOT).join("lib/include/public/mat.h"); - println!("cargo:rerun-if-changed={}", mat_h_location.to_string_lossy()); - - let out_dir = env::var("OUT_DIR").unwrap(); - std::fs::copy("../lib/ClientTelemetry.lib", PathBuf::from(&out_dir).join("ClientTelemetry.lib")) - .expect("Failed to copy native ClientTelemetry lib"); - - // Tell cargo to look for shared libraries in the specified directory - println!("cargo:rustc-link-search=native={}", out_dir); - println!("cargo:rustc-link-lib=ClientTelemetry"); - - // // TODO use clang crate instead of invoking CLI directly - // let header_out = Exec::cmd("clang") - // .arg("-E") - // .arg(mat_h_location) - // .arg("-D") - // .arg("HAVE_DYNAMIC_C_LIB") - // .capture() - // .expect("Failed to open clang process") - // .stdout_str(); - - // let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); - // let mat_out_path = out_dir.join("mat.out.h"); - - // fs::write(&mat_out_path, header_out).unwrap(); - write_bindings(); + copy_static_libs(); } diff --git a/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs b/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs index 3dc72f472..02de16bef 100644 --- a/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs +++ b/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs @@ -3,7 +3,49 @@ #![allow(non_snake_case)] include!(concat!(env!("OUT_DIR"), "/bindings.rs")); -fn test_fn() { +use std::ffi::c_void; + +fn evt_api_call_wrapper(evt_context: Box) -> (evt_status_t, Box) { + let raw_pointer = Box::into_raw(evt_context); + + let mut result: evt_status_t = -1; + unsafe { + result = evt_api_call_default(raw_pointer); + } + + let out_context = unsafe { Box::from_raw(raw_pointer) }; + (result, out_context) +} + +fn evt_open(config: *mut c_void) -> Option { + let context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_OPEN, + handle: 0, + data: config, + result: 0, + size: 0, + }); + + let (result, context) = evt_api_call_wrapper(context); + + if result == -1 { + return Option::None; + } + + return Some(context.handle.clone()); +} + +pub fn evt_close(handle: &evt_handle_t) -> evt_status_t { + let context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_CLOSE, + handle: *handle, + data: std::ptr::null_mut(), + result: 0, + size: 0, + }); + + let (result, _) = evt_api_call_wrapper(context); + result } #[cfg(test)] From e2417f9f860382d0e5324a7e9e5f7ef31fa2e024 Mon Sep 17 00:00:00 2001 From: Charlie Friend Date: Thu, 23 Nov 2023 13:29:03 -0800 Subject: [PATCH 12/14] Add remaining checks to cpp-client-telemetry-sys library --- .../rust/cpp-client-telemetry-sys/src/lib.rs | 69 +++++++++++-------- .../tests/sdk_tests.rs | 25 +++++++ 2 files changed, 67 insertions(+), 27 deletions(-) create mode 100644 wrappers/rust/cpp-client-telemetry-sys/tests/sdk_tests.rs diff --git a/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs b/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs index 02de16bef..9fc2cf306 100644 --- a/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs +++ b/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs @@ -3,7 +3,7 @@ #![allow(non_snake_case)] include!(concat!(env!("OUT_DIR"), "/bindings.rs")); -use std::ffi::c_void; +use std::ffi::*; fn evt_api_call_wrapper(evt_context: Box) -> (evt_status_t, Box) { let raw_pointer = Box::into_raw(evt_context); @@ -17,11 +17,13 @@ fn evt_api_call_wrapper(evt_context: Box) -> (evt_status_t, Box Option { +pub fn evt_open(config: CString) -> Option { + let config_bytes = config.to_bytes_with_nul().to_vec(); + let context: Box = Box::new(evt_context_t { call: evt_call_t_EVT_OP_OPEN, handle: 0, - data: config, + data: config_bytes.as_ptr() as *mut c_void, result: 0, size: 0, }); @@ -48,28 +50,41 @@ pub fn evt_close(handle: &evt_handle_t) -> evt_status_t { result } -#[cfg(test)] -mod tests { - use super::*; - - #[test] - fn test_open_close() { - let config = r#"{ - "eventCollectorUri": "http://localhost:64099/OneCollector/track", - "cacheFilePath":"hackathon_storage.db", - "config":{"host": "*"}, - "name":"Rust-API-Client-0", - "version":"1.0.0", - "primaryToken":"99999999999999999999999999999999-99999999-9999-9999-9999-999999999999-9999", - "maxTeardownUploadTimeInSec":5, - "hostMode":false, - "traceLevelMask": 4294967295, - "minimumTraceLevel":0, - "sdkmode":0, - "compat": {"customTypePrefix": "compat_event"} - }"#; - - let result = evt_open(config.as_ptr() as *mut c_void); - assert_eq!(result, Some(0)); - } +pub fn evt_upload(handle: &evt_handle_t) -> evt_status_t { + let context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_UPLOAD, + handle: *handle, + data: std::ptr::null_mut(), + result: 0, + size: 0, + }); + + evt_api_call_wrapper(context).0 +} + +pub fn evt_flush(handle: &evt_handle_t) -> evt_status_t { + let context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_FLUSH, + handle: *handle, + data: std::ptr::null_mut(), + result: 0, + size: 0, + }); + + evt_api_call_wrapper(context).0 +} + +pub fn evt_log(handle: &evt_handle_t, data: &mut [evt_prop]) -> evt_status_t { + let data_len = data.len() as u32; + let data_pointer = data.as_mut_ptr() as *mut c_void; + + let context: Box = Box::new(evt_context_t { + call: evt_call_t_EVT_OP_LOG, + handle: *handle, + data: data_pointer, + result: 0, + size: data_len, + }); + + evt_api_call_wrapper(context).0 } diff --git a/wrappers/rust/cpp-client-telemetry-sys/tests/sdk_tests.rs b/wrappers/rust/cpp-client-telemetry-sys/tests/sdk_tests.rs new file mode 100644 index 000000000..aa73c95ca --- /dev/null +++ b/wrappers/rust/cpp-client-telemetry-sys/tests/sdk_tests.rs @@ -0,0 +1,25 @@ +use cpp_client_telemetry_sys::*; +use std::ffi::CString; + +#[test] +fn test_open_close() { + // Simple sanity check to ensure the SDK was linked correctly. + let config = r#"{ + "eventCollectorUri": "http://localhost:64099/OneCollector/track", + "cacheFilePath":"hackathon_storage.db", + "config":{"host": "*"}, + "name":"Rust-API-Client-0", + "version":"1.0.0", + "primaryToken":"99999999999999999999999999999999-99999999-9999-9999-9999-999999999999-9999", + "maxTeardownUploadTimeInSec":5, + "hostMode":false, + "traceLevelMask": 4294967295, + "minimumTraceLevel":0, + "sdkmode":0, + "compat": {"customTypePrefix": "compat_event"} + }"#; + + let handle = evt_open(CString::new(config).unwrap()).expect("Failed to get SDK handle"); + + assert_eq!(evt_close(&handle), 0); +} \ No newline at end of file From 4ffe5a6afd2ac60d27488a6d50e95922d49f5180 Mon Sep 17 00:00:00 2001 From: Charlie Friend Date: Thu, 23 Nov 2023 14:04:38 -0800 Subject: [PATCH 13/14] Refactor: integration oneds-telemetry with cpp-client-telemetry-sys crate --- .../rust/cpp-client-telemetry-sys/build.rs | 4 - .../rust/cpp-client-telemetry-sys/src/lib.rs | 2 +- .../tests/sdk_tests.rs | 2 +- wrappers/rust/oneds-telemetry/Cargo.toml | 1 + wrappers/rust/oneds-telemetry/build.rs | 62 -------- .../oneds-telemetry/src/client_library.rs | 37 ----- wrappers/rust/oneds-telemetry/src/helpers.rs | 46 ------ .../rust/oneds-telemetry/src/internals.rs | 148 ------------------ wrappers/rust/oneds-telemetry/src/lib.rs | 36 +++-- wrappers/rust/oneds-telemetry/src/types.rs | 2 +- wrappers/rust/telemetry-sample/build.rs | 13 -- 11 files changed, 24 insertions(+), 329 deletions(-) delete mode 100644 wrappers/rust/oneds-telemetry/build.rs delete mode 100644 wrappers/rust/oneds-telemetry/src/client_library.rs delete mode 100644 wrappers/rust/oneds-telemetry/src/helpers.rs delete mode 100644 wrappers/rust/oneds-telemetry/src/internals.rs delete mode 100644 wrappers/rust/telemetry-sample/build.rs diff --git a/wrappers/rust/cpp-client-telemetry-sys/build.rs b/wrappers/rust/cpp-client-telemetry-sys/build.rs index af4468e30..0d244ebe6 100644 --- a/wrappers/rust/cpp-client-telemetry-sys/build.rs +++ b/wrappers/rust/cpp-client-telemetry-sys/build.rs @@ -54,10 +54,6 @@ fn write_bindings() { // bindings for. .parse_callbacks(Box::new(bindgen::CargoCallbacks)) .rust_target(bindgen::RustTarget::Stable_1_68) - // .raw_line("#![allow(non_upper_case_globals)]") - // .raw_line("#![allow(non_camel_case_types)]") - // .raw_line("#![allow(non_snake_case)]") - //.clang_arg(format!("-I{}", PathBuf::from(PROJECT_ROOT).join("lib/include").display())) .header(PathBuf::from(out_dir).join("mat.out.h").to_string_lossy()) .allowlist_type("evt_.*") .allowlist_function("evt_.*") diff --git a/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs b/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs index 9fc2cf306..7f8dcb4d6 100644 --- a/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs +++ b/wrappers/rust/cpp-client-telemetry-sys/src/lib.rs @@ -17,7 +17,7 @@ fn evt_api_call_wrapper(evt_context: Box) -> (evt_status_t, Box Option { +pub fn evt_open(config: &CString) -> Option { let config_bytes = config.to_bytes_with_nul().to_vec(); let context: Box = Box::new(evt_context_t { diff --git a/wrappers/rust/cpp-client-telemetry-sys/tests/sdk_tests.rs b/wrappers/rust/cpp-client-telemetry-sys/tests/sdk_tests.rs index aa73c95ca..d4d3aeaeb 100644 --- a/wrappers/rust/cpp-client-telemetry-sys/tests/sdk_tests.rs +++ b/wrappers/rust/cpp-client-telemetry-sys/tests/sdk_tests.rs @@ -19,7 +19,7 @@ fn test_open_close() { "compat": {"customTypePrefix": "compat_event"} }"#; - let handle = evt_open(CString::new(config).unwrap()).expect("Failed to get SDK handle"); + let handle = evt_open(&CString::new(config).unwrap()).expect("Failed to get SDK handle"); assert_eq!(evt_close(&handle), 0); } \ No newline at end of file diff --git a/wrappers/rust/oneds-telemetry/Cargo.toml b/wrappers/rust/oneds-telemetry/Cargo.toml index 3d88bc550..a65e6eb59 100644 --- a/wrappers/rust/oneds-telemetry/Cargo.toml +++ b/wrappers/rust/oneds-telemetry/Cargo.toml @@ -9,6 +9,7 @@ publish = false chrono = { version = "0.4.30" } log = { version = "0.4.20" } once_cell = "1.12.0" +cpp-client-telemetry-sys = { path = "../cpp-client-telemetry-sys" } [dev-dependencies] diff --git a/wrappers/rust/oneds-telemetry/build.rs b/wrappers/rust/oneds-telemetry/build.rs deleted file mode 100644 index c09a1e858..000000000 --- a/wrappers/rust/oneds-telemetry/build.rs +++ /dev/null @@ -1,62 +0,0 @@ -use std::env; -use std::path::PathBuf; - -fn main() { - // Tell cargo to look for shared libraries in the specified directory - println!("cargo:rustc-link-search=../lib"); - - // Tell cargo to tell rustc to link the system bzip2 - // shared library. - // println!("cargo:rustc-link-static-lib=mat"); - - // Tell cargo to invalidate the built crate whenever the wrapper changes - // println!("cargo:rerun-if-changed=../include"); - - // #![allow(non_upper_case_globals)] - // #![allow(non_camel_case_types)] - // #![allow(non_snake_case)] - - // The bindgen::Builder is the main entry point - // to bindgen, and lets you build up options for - // the resulting bindings. - let bindings = bindgen::Builder::default() - // The input header we would like to generate - // bindings for. - .parse_callbacks(Box::new(bindgen::CargoCallbacks)) - .rust_target(bindgen::RustTarget::Stable_1_68) - // .raw_line("#![allow(non_upper_case_globals)]") - // .raw_line("#![allow(non_camel_case_types)]") - // .raw_line("#![allow(non_snake_case)]") - .header("../include/mat.out.h") - .allowlist_file("../include/mat.out.h") - .c_naming(false) - .blocklist_type("struct_IMAGE_TLS_DIRECTORY") - .blocklist_type("struct_PIMAGE_TLS_DIRECTORY") - .blocklist_type("struct_IMAGE_TLS_DIRECTORY64") - .blocklist_type("struct_PIMAGE_TLS_DIRECTORY64") - .blocklist_type("struct__IMAGE_TLS_DIRECTORY64") - .blocklist_type("IMAGE_TLS_DIRECTORY") - .blocklist_type("PIMAGE_TLS_DIRECTORY") - .blocklist_type("IMAGE_TLS_DIRECTORY64") - .blocklist_type("PIMAGE_TLS_DIRECTORY64") - .blocklist_type("_IMAGE_TLS_DIRECTORY64") - .allowlist_type("evt_.*") - .allowlist_function("evt_.*") - .allowlist_var("evt_.*") - .allowlist_recursively(false) - .layout_tests(false) - .merge_extern_blocks(true) - // Tell cargo to invalidate the built crate whenever any of the - // included header files changed. - // .wrap_static_fns(true) - // Finish the builder and generate the bindings. - .generate() - // Unwrap the Result and panic on failure. - .expect("Unable to generate bindings"); - - // // Write the bindings to the $OUT_DIR/bindings.rs file. - let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()); - bindings - .write_to_file(out_path.join("bindings.rs")) - .expect("Couldn't write bindings!"); -} \ No newline at end of file diff --git a/wrappers/rust/oneds-telemetry/src/client_library.rs b/wrappers/rust/oneds-telemetry/src/client_library.rs deleted file mode 100644 index 99c3078d7..000000000 --- a/wrappers/rust/oneds-telemetry/src/client_library.rs +++ /dev/null @@ -1,37 +0,0 @@ -// https://fasterthanli.me/series/making-our-own-ping/part-4 -use std::{ - ffi::{c_void, CString}, - mem::transmute_copy, - os::raw::c_char, - ptr::NonNull, -}; - -type HModule = NonNull; -type FarProc = NonNull; - -extern "stdcall" { - fn LoadLibraryA(name: *const c_char) -> Option; - fn GetProcAddress(module: HModule, name: *const c_char) -> Option; -} - -pub struct Library { - module: HModule, -} - -impl Library { - pub fn new(name: &str) -> Option { - let name = CString::new(name).expect("invalid library name"); - let res = unsafe { LoadLibraryA(name.as_ptr()) }; - res.map(|module| Library { module }) - } - - // pub fn new(path: &Path) -> Option { - // let src = Path::join(&env::current_dir().unwrap(), "..\\lib\\ClientTelemetry.dll"); - // } - - pub unsafe fn get_proc(&self, name: &str) -> Option { - let name = CString::new(name).expect("invalid proc name"); - let res = GetProcAddress(self.module, name.as_ptr()); - res.map(|proc| transmute_copy(&proc)) - } -} diff --git a/wrappers/rust/oneds-telemetry/src/helpers.rs b/wrappers/rust/oneds-telemetry/src/helpers.rs deleted file mode 100644 index 8beb24637..000000000 --- a/wrappers/rust/oneds-telemetry/src/helpers.rs +++ /dev/null @@ -1,46 +0,0 @@ -use crate::*; -use std::ffi::CString; -use std::mem; - -/** - * This will convert a &str value to a c-string array that is compatible with - * the library; however, if improperly used this will run the risk of leaking - * memory as this uses mem::forget to ensure that the string data is not freed - * after making the conversion. This may mean that in order to pass the data - * from rust to c that we need some wraper structs that convert into the c - * structs so that the data is not lost in the call. - */ -pub fn to_leaky_c_str(value: &str) -> *const i8 { - let c_str = Box::new(CString::new(value.clone()).unwrap()); - let ptr = c_str.as_ptr() as *const i8; - mem::forget(c_str); - return ptr; -} - -pub fn string_prop(name: &str, value: &str, is_pii: bool) -> evt_prop { - let mut pii_kind = 0; - - if is_pii { - pii_kind = 1; - } - - evt_prop { - name: to_leaky_c_str(name), - type_: evt_prop_t_TYPE_STRING, - value: evt_prop_v { - as_string: to_leaky_c_str(value), - }, - piiKind: pii_kind, - } -} - -pub fn int_prop(name: &str, value: i64) -> evt_prop { - evt_prop { - name: to_leaky_c_str(name), - type_: evt_prop_t_TYPE_INT64, - value: evt_prop_v { - as_int64: value.clone(), - }, - piiKind: 0, - } -} diff --git a/wrappers/rust/oneds-telemetry/src/internals.rs b/wrappers/rust/oneds-telemetry/src/internals.rs deleted file mode 100644 index ae39a65b5..000000000 --- a/wrappers/rust/oneds-telemetry/src/internals.rs +++ /dev/null @@ -1,148 +0,0 @@ -use std::{ffi::CStr, mem, os::raw::c_void}; - -use crate::{client_library::Library, *}; - -type evt_api_call_t = extern "stdcall" fn(context: *mut evt_context_t) -> evt_status_t; - -pub fn evt_open(config: *mut c_void) -> Option { - let mut context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_OPEN, - handle: 0, - data: config, - result: 0, - size: 0, - }); - - let raw_pointer = Box::into_raw(context); - - let ct_lib = Library::new("ClientTelemetry.dll").unwrap(); - let evt_api_call_default: evt_api_call_t = - unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; - - let result = evt_api_call_default(raw_pointer); - - if result == -1 { - return Option::None; - } - - context = unsafe { Box::from_raw(raw_pointer) }; - - return Some(context.handle.clone()); -} - -pub fn evt_close(handle: &evt_handle_t) -> evt_status_t { - let context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_CLOSE, - handle: *handle, - data: std::ptr::null_mut(), - result: 0, - size: 0, - }); - - let raw_pointer = Box::into_raw(context); - - let ct_lib = Library::new("ClientTelemetry.dll").unwrap(); - let evt_api_call_default: evt_api_call_t = - unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; - - return evt_api_call_default(raw_pointer); -} - -pub fn evt_upload(handle: &evt_handle_t) -> evt_status_t { - let context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_UPLOAD, - handle: *handle, - data: std::ptr::null_mut(), - result: 0, - size: 0, - }); - - let raw_pointer = Box::into_raw(context); - - let ct_lib = Library::new("ClientTelemetry.dll").unwrap(); - let evt_api_call_default: evt_api_call_t = - unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; - - let status = evt_api_call_default(raw_pointer); - - println!("UPLOAD STATUS >> {}", status); - - status -} - -pub fn evt_flush(handle: &evt_handle_t) -> evt_status_t { - let context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_FLUSH, - handle: *handle, - data: std::ptr::null_mut(), - result: 0, - size: 0, - }); - - let raw_pointer = Box::into_raw(context); - - let ct_lib = Library::new("ClientTelemetry.dll").unwrap(); - let evt_api_call_default: evt_api_call_t = - unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; - - let status = evt_api_call_default(raw_pointer); - - println!("FLUSH STATUS >> {}", status); - - status -} - -pub fn evt_log_vec(handle: &evt_handle_t, data_box: &mut Box>) -> evt_status_t { - // Extract the inner vector from the Box - let data = &mut **data_box; - - let val = unsafe { CStr::from_ptr(data[0].name) }; - let val2 = unsafe { CStr::from_ptr(data[0].value.as_string) }; - println!( - "MAGIC >> [{}]:{}", - val.to_str().unwrap(), - val2.to_str().unwrap() - ); - - let data_pointer = data.as_mut_ptr() as *mut c_void; - let data_len = data.len() as u32; - - let context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_LOG, - handle: *handle, - data: data_pointer, - result: 0, - size: data_len, - }); - - let raw_pointer = Box::into_raw(context); - - let ct_lib = Library::new("ClientTelemetry.dll").unwrap(); - let evt_api_call_default: evt_api_call_t = - unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; - - let status = evt_api_call_default(raw_pointer); - - status -} - -pub fn evt_log(handle: &evt_handle_t, data: &mut [evt_prop]) -> evt_status_t { - let data_len = data.len() as u32; - let data_pointer = data.as_mut_ptr() as *mut c_void; - - let context: Box = Box::new(evt_context_t { - call: evt_call_t_EVT_OP_LOG, - handle: *handle, - data: data_pointer, - result: 0, - size: data_len, - }); - - let raw_pointer = Box::into_raw(context); - - let ct_lib = Library::new("ClientTelemetry.dll").unwrap(); - let evt_api_call_default: evt_api_call_t = - unsafe { ct_lib.get_proc("evt_api_call_default").unwrap() }; - - return evt_api_call_default(raw_pointer); -} diff --git a/wrappers/rust/oneds-telemetry/src/lib.rs b/wrappers/rust/oneds-telemetry/src/lib.rs index 91ffd1bc1..86477b581 100644 --- a/wrappers/rust/oneds-telemetry/src/lib.rs +++ b/wrappers/rust/oneds-telemetry/src/lib.rs @@ -4,21 +4,24 @@ use log::debug; use once_cell::sync::Lazy; -use std::{ffi::c_void, sync::RwLock}; +use std::{sync::RwLock, ffi::CString}; use types::{StringProperty, TelemetryItem, TelemetryProperty}; +use cpp_client_telemetry_sys::{ + evt_open, + evt_close, + evt_log, + evt_flush, + evt_upload, + evt_prop +}; pub mod appender; -mod client_library; -mod helpers; -mod internals; pub mod types; -include!(concat!(env!("OUT_DIR"), "/bindings.rs")); - #[derive(Clone)] pub struct LogManager { is_started: bool, - configuration: StringProperty, + configuration: CString, log_handle: Option, } @@ -63,7 +66,7 @@ impl LogManager { fn new() -> Self { LogManager { is_started: false, - configuration: StringProperty::new("{}"), + configuration: CString::new("{}").unwrap(), log_handle: Option::None, } } @@ -76,8 +79,7 @@ impl LogManager { return true; } - let config_ptr = self.configuration.as_ptr() as *mut c_void; - let handle = internals::evt_open(config_ptr); + let handle = evt_open(&self.configuration); if handle.is_none() { debug!("LogManager.start: failed"); @@ -98,11 +100,11 @@ impl LogManager { } let handle = self.log_handle.as_ref().unwrap(); - internals::evt_flush(handle); + evt_flush(handle); debug!("LogManager.flush(EVT_OP_FLUSH)"); if upload { - internals::evt_upload(handle); + evt_upload(handle); debug!("LogManager.flush(EVT_OP_UPLOAD)"); } } @@ -115,11 +117,11 @@ impl LogManager { self.flush(false); let handle = self.log_handle.as_ref().unwrap(); - internals::evt_close(handle); + evt_close(handle); } pub fn configure(&mut self, config: &str) { - self.configuration = StringProperty::new(config); + self.configuration = CString::new(config).unwrap(); debug!("LogManager.configure:\n{}", config); } @@ -143,7 +145,9 @@ impl LogManager { ); let handle = self.log_handle.clone().unwrap(); - internals::evt_log_vec(&handle, &mut event_props); + + // TODO + // evt_log_vec(&handle, &mut event_props); } pub fn track_evt(&self, mut event_props: &mut [evt_prop]) { @@ -153,6 +157,6 @@ impl LogManager { ); let handle = self.log_handle.clone().unwrap(); - internals::evt_log(&handle, &mut event_props); + evt_log(&handle, &mut event_props); } } diff --git a/wrappers/rust/oneds-telemetry/src/types.rs b/wrappers/rust/oneds-telemetry/src/types.rs index c1d25715c..376b63fd9 100644 --- a/wrappers/rust/oneds-telemetry/src/types.rs +++ b/wrappers/rust/oneds-telemetry/src/types.rs @@ -8,7 +8,7 @@ use chrono::{DateTime, Utc}; use log::{debug, error}; use once_cell::sync::Lazy; -use crate::{evt_prop, evt_prop_t_TYPE_STRING, evt_prop_t_TYPE_TIME, evt_prop_v}; +use cpp_client_telemetry_sys::{evt_prop, evt_prop_v, evt_prop_t_TYPE_STRING, evt_prop_t_TYPE_TIME}; #[derive(Clone, Debug)] pub struct StringProperty { diff --git a/wrappers/rust/telemetry-sample/build.rs b/wrappers/rust/telemetry-sample/build.rs deleted file mode 100644 index ccdc9d320..000000000 --- a/wrappers/rust/telemetry-sample/build.rs +++ /dev/null @@ -1,13 +0,0 @@ -use std::env; -use std::fs; -use std::path::Path; - -fn main() { - println!("cargo:rustc-link-search=../lib"); - // println!("cargo:rustc-link-search=native={}", libdir.display()); - - let out_dir = env::var("OUT_DIR").unwrap(); - let src = Path::join(&env::current_dir().unwrap(), "..\\lib\\ClientTelemetry.dll"); - let dest = Path::join(Path::new(&out_dir), Path::new("ClientTelemetry.dll")); - fs::copy(src, dest).unwrap(); -} \ No newline at end of file From 5c3a0efbab005d894d25ba371c5af90a31e87464 Mon Sep 17 00:00:00 2001 From: Charlie Friend Date: Thu, 23 Nov 2023 15:35:00 -0800 Subject: [PATCH 14/14] Implement string and integer properties --- wrappers/rust/oneds-telemetry/src/lib.rs | 11 +++++----- wrappers/rust/oneds-telemetry/src/types.rs | 25 ++++++++++++++++++---- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/wrappers/rust/oneds-telemetry/src/lib.rs b/wrappers/rust/oneds-telemetry/src/lib.rs index 86477b581..662569902 100644 --- a/wrappers/rust/oneds-telemetry/src/lib.rs +++ b/wrappers/rust/oneds-telemetry/src/lib.rs @@ -100,12 +100,12 @@ impl LogManager { } let handle = self.log_handle.as_ref().unwrap(); - evt_flush(handle); - debug!("LogManager.flush(EVT_OP_FLUSH)"); + let status = evt_flush(handle); + debug!("LogManager.flush(EVT_OP_FLUSH) returned: {}", status); if upload { - evt_upload(handle); - debug!("LogManager.flush(EVT_OP_UPLOAD)"); + let status = evt_upload(handle); + debug!("LogManager.flush(EVT_OP_UPLOAD) returned: {}", status); } } @@ -146,8 +146,7 @@ impl LogManager { let handle = self.log_handle.clone().unwrap(); - // TODO - // evt_log_vec(&handle, &mut event_props); + evt_log(&handle, &mut event_props); } pub fn track_evt(&self, mut event_props: &mut [evt_prop]) { diff --git a/wrappers/rust/oneds-telemetry/src/types.rs b/wrappers/rust/oneds-telemetry/src/types.rs index 376b63fd9..1cbcc0fb1 100644 --- a/wrappers/rust/oneds-telemetry/src/types.rs +++ b/wrappers/rust/oneds-telemetry/src/types.rs @@ -8,7 +8,7 @@ use chrono::{DateTime, Utc}; use log::{debug, error}; use once_cell::sync::Lazy; -use cpp_client_telemetry_sys::{evt_prop, evt_prop_v, evt_prop_t_TYPE_STRING, evt_prop_t_TYPE_TIME}; +use cpp_client_telemetry_sys::{evt_prop, evt_prop_v, evt_prop_t_TYPE_STRING, evt_prop_t_TYPE_TIME, evt_prop_t_TYPE_INT64}; #[derive(Clone, Debug)] pub struct StringProperty { @@ -107,9 +107,26 @@ impl TelemetryItem { for key in self.data.keys() { let value = self.data.get(key).expect("Unable to get value"); match value { - TelemetryProperty::String(value) => {} - TelemetryProperty::Int(value) => {} - _ => error!("Unknown TelemetryProperty Type: [{}]", key), + TelemetryProperty::String(value) => { + properties.push(evt_prop { + name: StringProperty::new(key).as_ptr(), + type_: evt_prop_t_TYPE_STRING, + value: evt_prop_v { + as_string: value.as_ptr() + }, + piiKind: 0 + }) + } + TelemetryProperty::Int(value) => { + properties.push(evt_prop { + name: StringProperty::new(key).as_ptr(), + type_: evt_prop_t_TYPE_INT64, + value: evt_prop_v { + as_int64: value.clone() + }, + piiKind: 0 + }) + } } }